|
|
!(function(){var sx=Object.defineProperty,ax=Object.defineProperties;var lx=Object.getOwnPropertyDescriptors;var vv=Object.getOwnPropertySymbols;var Cw=Object.prototype.hasOwnProperty,Bw=Object.prototype.propertyIsEnumerable;var Sw=(hi,Cn,Ft)=>Cn in hi?sx(hi,Cn,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):hi[Cn]=Ft,xg=(hi,Cn)=>{for(var Ft in Cn||(Cn={}))Cw.call(Cn,Ft)&&Sw(hi,Ft,Cn[Ft]);if(vv)for(var Ft of vv(Cn))Bw.call(Cn,Ft)&&Sw(hi,Ft,Cn[Ft]);return hi},Iy=(hi,Cn)=>ax(hi,lx(Cn));var Pw=(hi,Cn)=>{var Ft={};for(var Mt in hi)Cw.call(hi,Mt)&&Cn.indexOf(Mt)<0&&(Ft[Mt]=hi[Mt]);if(hi!=null&&vv)for(var Mt of vv(hi))Cn.indexOf(Mt)<0&&Bw.call(hi,Mt)&&(Ft[Mt]=hi[Mt]);return Ft};(self.webpackChunk=self.webpackChunk||[]).push([[342],{27812:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return jt}});var Mt=Ft(96663),ce=Ft(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"},Ie=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:oe,icon:Ie}))},Nt=ce.forwardRef(Vt),jt=Nt},89489:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return jt}});var Mt=Ft(96663),ce=Ft(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"},Ie=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:oe,icon:Ie}))},Nt=ce.forwardRef(Vt),jt=Nt},59477:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return jt}});var Mt=Ft(96663),ce=Ft(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"},Ie=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:oe,icon:Ie}))},Nt=ce.forwardRef(Vt),jt=Nt},40001:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return jt}});var Mt=Ft(96663),ce=Ft(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"},Ie=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:oe,icon:Ie}))},Nt=ce.forwardRef(Vt),jt=Nt},26227:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return jt}});var Mt=Ft(96663),ce=Ft(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"},Ie=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:oe,icon:Ie}))},Nt=ce.forwardRef(Vt),jt=Nt},49198:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return jt}});var Mt=Ft(96663),ce=Ft(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"},Ie=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:oe,icon:Ie}))},Nt=ce.forwardRef(Vt),jt=Nt},87169:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return jt}});var Mt=Ft(96663),ce=Ft(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"},Ie=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:oe,icon:Ie}))},Nt=ce.forwardRef(Vt),jt=Nt},73331:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return jt}});var Mt=Ft(96663),ce=Ft(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"},Ie=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:oe,icon:Ie}))},Nt=ce.forwardRef(Vt),jt=Nt},15277:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return jt}});var Mt=Ft(96663),ce=Ft(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"},Ie=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:oe,icon:Ie}))},Nt=ce.forwardRef(Vt),jt=Nt},52671:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return jt}});var Mt=Ft(96663),ce=Ft(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"},Ie=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:oe,icon:Ie}))},Nt=ce.forwardRef(Vt),jt=Nt},8657:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return jt}});var Mt=Ft(96663),ce=Ft(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"},Ie=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:oe,icon:Ie}))},Nt=ce.forwardRef(Vt),jt=Nt},56082:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return jt}});var Mt=Ft(96663),ce=Ft(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"},Ie=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:oe,icon:Ie}))},Nt=ce.forwardRef(Vt),jt=Nt},33853:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return jt}});var Mt=Ft(96663),ce=Ft(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"},Ie=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:oe,icon:Ie}))},Nt=ce.forwardRef(Vt),jt=Nt},15075:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return jt}});var Mt=Ft(96663),ce=Ft(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"},Ie=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:oe,icon:Ie}))},Nt=ce.forwardRef(Vt),jt=Nt},43531:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return jt}});var Mt=Ft(96663),ce=Ft(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"},Ie=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:oe,icon:Ie}))},Nt=ce.forwardRef(Vt),jt=Nt},61485:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return jt}});var Mt=Ft(96663),ce=Ft(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"},Ie=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:oe,icon:Ie}))},Nt=ce.forwardRef(Vt),jt=Nt},38819:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return jt}});var Mt=Ft(96663),ce=Ft(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"},Ie=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:oe,icon:Ie}))},Nt=ce.forwardRef(Vt),jt=Nt},47472:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return jt}});var Mt=Ft(96663),ce=Ft(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"},Ie=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:oe,icon:Ie}))},Nt=ce.forwardRef(Vt),jt=Nt},95869:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return jt}});var Mt=Ft(96663),ce=Ft(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"},Ie=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Mt.Z)({},Pt,{ref:oe,icon:Ie}))},Nt=ce.forwardRef(Vt),jt=Nt},37036:function(){"use strict"},95625:function(){"use strict"},88010:function(hi,Cn){"use strict";Cn.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 hi(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(hi.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(hi.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(hi.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(hi.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 hi))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 Cn=[];function Ft(Ct,et){var tt=Cn.pop();return tt===void 0?new go.Point(Ct,et):(tt.x=Ct,tt.y=et,tt)}function Mt(){var Ct=Cn.pop();return Ct===void 0?new go.Point:Ct}function ce(Ct){Cn.push(Ct)}function re(Ct,et,tt,lt,rt,ht,dt,xt,It){It||(It=new go.Point);var Ut=Ct-tt,Gt=rt-dt,se=NaN,ue=NaN;if(Ut===0)if(Gt===0)Ct===tt&&(se=Ct,ue=et);else{var Ae=(ht-xt)/Gt,Pe=ht-Ae*rt;se=Ct,ue=Ae*se+Pe}else if(Gt===0){var qt=(et-lt)/Ut,ze=et-qt*Ct;se=rt,ue=qt*se+ze}else{var qt=(et-lt)/Ut,Ae=(ht-xt)/Gt,ze=et-qt*Ct,Pe=ht-Ae*rt;se=(Pe-ze)/(qt-Ae),ue=qt*se+ze}return It.x=se,It.y=ue,It}function Ie(Ct,et,tt,lt,rt,ht,dt,xt,It,Ut,Gt,se,ue,Ae){var Pe=1-It,qt=It,ze=Ct*Pe+tt*qt,Wt=et*Pe+lt*qt,Ge=tt*Pe+rt*qt,_e=lt*Pe+ht*qt,Me=rt*Pe+dt*qt,We=ht*Pe+xt*qt,Re=ze*Pe+Ge*qt,ye=Wt*Pe+_e*qt,ne=Ge*Pe+Me*qt,Ce=_e*Pe+We*qt,bn=Re*Pe+ne*qt,Ln=ye*Pe+Ce*qt;Ut.x=ze,Ut.y=Wt,Gt.x=Re,Gt.y=ye,se.x=bn,se.y=Ln,ue.x=ne,ue.y=Ce,Ae.x=Me,Ae.y=We}var ee=new go.Spot(.156,.156),Vt=new go.Spot(.844,.844),Nt=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new hi("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*Nt,ht=new go.Geometry().add(new go.PathFigure(lt,0,!0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,lt,et-rt,0,et,rt)).add(new go.PathSegment(go.PathSegment.Line,et,tt-lt)).add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et,tt-rt,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,lt,tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt-lt,rt,tt,0,tt-rt)).add(new go.PathSegment(go.PathSegment.Line,0,lt)).add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,rt,rt,0).close()));return rt>1&&(ht.spot1=new go.Spot(0,0,rt,rt),ht.spot2=new go.Spot(1,1,-rt,-rt)),ht}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(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=Vt,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,Nt*et,0,et,(1-Nt)*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,Nt*tt,(1-Nt)*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,Nt*tt,Nt*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-Nt)*et,0,0,(1-Nt)*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 hi("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 ht=new go.Geometry(go.Geometry.Rectangle);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=tt,ht}else{var ht=new go.Geometry;return lt>0?ht.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ht.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rt<et/2&&ht.setSpots(rt/et,0,(et-rt)/et,1),ht}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new hi("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 ht=new go.Geometry(go.Geometry.Rectangle);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=tt,ht}else{var ht=new go.Geometry;return lt>0?ht.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ht.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rt<et/2&&ht.setSpots(rt/et,0,(et-rt)/et,1),ht}}),go.Shape.setFigureParameter("Trapezoid1",0,new hi("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 ht=new go.Geometry(go.Geometry.Rectangle);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=tt,ht}else{var ht=new go.Geometry;return lt>0?ht.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ht.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rt<et/2&&ht.setSpots(rt/et,0,(et-rt)/et,1),ht}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new hi("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 ht=new go.Geometry(go.Geometry.Rectangle);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=tt,ht}else{var ht=new go.Geometry;return lt>0?ht.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ht.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rt<et/2&&ht.setSpots(rt/et,0,(et-rt)/et,1),ht}}),go.Shape.setFigureParameter("ManualOperation",0,new hi("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 ht=new go.Geometry(go.Geometry.Rectangle);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=tt,ht}else{var ht=new go.Geometry;return lt>0?ht.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())):ht.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())),rt<et/2&&ht.setSpots(rt/et,0,(et-rt)/et,1),ht}});var jt=[];function te(){var Ct=jt.pop();return Ct===void 0?[]:Ct}function Pt(Ct){Ct.length=0,jt.push(Ct)}function oe(Ct){for(var et=te(),tt=.5,lt=.5,rt=Math.PI*1.5,ht=0,dt=0;dt<Ct;dt++)ht=2*Math.PI/Ct*dt+rt,et[dt]=new go.Point(lt+tt*Math.cos(ht),lt+tt*Math.sin(ht));return et.push(et[0]),et}function Kt(Ct){var et=$t(Ct),tt=te();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 $t(Ct){for(var et=oe(Ct),tt=te(),lt=Math.floor(et.length/2),rt=et.length-1,ht=Ct%2===0?2:1,dt=0;dt<rt;dt++){var xt=et[dt],It=et[dt+1],Ut=et[(lt+dt-1)%rt],Gt=et[(lt+dt+ht)%rt];tt[dt*2]=xt,tt[dt*2+1]=re(xt.x,xt.y,Ut.x,Ut.y,It.x,It.y,Gt.x,Gt.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,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<5;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),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,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<6;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),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,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<7;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),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,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<8;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),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,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<9;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),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,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<10;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),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,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<12;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),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=$t(5),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<10;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),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=$t(6),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<12;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),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=$t(7),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<14;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),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=$t(8),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<16;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),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=$t(9),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<18;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),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=$t(10),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<20;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),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=Kt(5),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<lt.length;dt+=3)ht.add(new go.PathSegment(go.PathSegment.Bezier,lt[dt+2].x*et,lt[dt+2].y*tt,lt[dt].x*et,lt[dt].y*tt,lt[dt+1].x*et,lt[dt+1].y*tt));return ht.segments.last().close(),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=Kt(6),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<lt.length;dt+=3)ht.add(new go.PathSegment(go.PathSegment.Bezier,lt[dt+2].x*et,lt[dt+2].y*tt,lt[dt].x*et,lt[dt].y*tt,lt[dt+1].x*et,lt[dt+1].y*tt));return ht.segments.last().close(),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=Kt(7),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<lt.length;dt+=3)ht.add(new go.PathSegment(go.PathSegment.Bezier,lt[dt+2].x*et,lt[dt+2].y*tt,lt[dt].x*et,lt[dt].y*tt,lt[dt+1].x*et,lt[dt+1].y*tt));return ht.segments.last().close(),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=Kt(8),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<lt.length;dt+=3)ht.add(new go.PathSegment(go.PathSegment.Bezier,lt[dt+2].x*et,lt[dt+2].y*tt,lt[dt].x*et,lt[dt].y*tt,lt[dt+1].x*et,lt[dt+1].y*tt));return ht.segments.last().close(),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=Kt(9),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<lt.length;dt+=3)ht.add(new go.PathSegment(go.PathSegment.Bezier,lt[dt+2].x*et,lt[dt+2].y*tt,lt[dt].x*et,lt[dt].y*tt,lt[dt+1].x*et,lt[dt+1].y*tt));return ht.segments.last().close(),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=Kt(10),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<lt.length;dt+=3)ht.add(new go.PathSegment(go.PathSegment.Bezier,lt[dt+2].x*et,lt[dt+2].y*tt,lt[dt].x*et,lt[dt].y*tt,lt[dt+1].x*et,lt[dt+1].y*tt));return ht.segments.last().close(),Pt(lt),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.setFigureParameter("FramedRectangle",0,new hi("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new hi("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 ht=new go.Geometry,dt=new go.PathFigure(0,0,!0);return ht.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt<et/2&&rt<tt/2&&(dt.add(new go.PathSegment(go.PathSegment.Move,lt,rt)),dt.add(new go.PathSegment(go.PathSegment.Line,lt,tt-rt)),dt.add(new go.PathSegment(go.PathSegment.Line,et-lt,tt-rt)),dt.add(new go.PathSegment(go.PathSegment.Line,et-lt,rt).close())),ht.setSpots(0,0,1,1,lt,rt,-lt,-rt),ht}),go.Shape.setFigureParameter("Ring",0,new hi("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,ht=new go.Geometry,dt=new go.PathFigure(et,et/2,!0);ht.add(dt),dt.add(new go.PathSegment(go.PathSegment.Arc,0,360,rt,rt,rt,rt).close());var xt=Math.max(rt-lt,0);return xt>0&&(dt.add(new go.PathSegment(go.PathSegment.Move,et/2+xt,et/2)),dt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,rt,rt,xt,xt).close())),ht.spot1=ee,ht.spot2=Vt,ht.defaultStretch=go.GraphObject.Uniform,ht}),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 hi("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new hi("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 ht=lt%360;ht<0&&(ht+=360);var dt=rt%360,xt=Math.min(et,tt)/2;return new go.Geometry().add(new go.PathFigure(xt,xt).add(new go.PathSegment(go.PathSegment.Arc,ht,dt,xt,xt,xt,xt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Ct,et,tt){var lt=Nt/Math.SQRT2*.5,rt=Math.SQRT2/2,ht=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(et,tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,rt*et,ht*tt,et,(1-lt)*tt,(rt+lt)*et,(ht+lt)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new hi("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,ht=et/2,dt=tt/2;return new go.Geometry().add(new go.PathFigure(ht-rt,0,!0).add(new go.PathSegment(go.PathSegment.Line,ht+rt,0)).add(new go.PathSegment(go.PathSegment.Line,ht+rt,dt-rt)).add(new go.PathSegment(go.PathSegment.Line,et,dt-rt)).add(new go.PathSegment(go.PathSegment.Line,et,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,ht+rt,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,ht+rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ht-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ht-rt,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,0,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,0,dt-rt)).add(new go.PathSegment(go.PathSegment.Line,ht-rt,dt-rt).close()))}),go.Shape.setFigureParameter("ThinCross",0,new hi("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,ht=et/2,dt=tt/2;return new go.Geometry().add(new go.PathFigure(ht-rt,0,!0).add(new go.PathSegment(go.PathSegment.Line,ht+rt,0)).add(new go.PathSegment(go.PathSegment.Line,ht+rt,dt-rt)).add(new go.PathSegment(go.PathSegment.Line,et,dt-rt)).add(new go.PathSegment(go.PathSegment.Line,et,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,ht+rt,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,ht+rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ht-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ht-rt,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,0,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,0,dt-rt)).add(new go.PathSegment(go.PathSegment.Line,ht-rt,dt-rt).close()))}),go.Shape.setFigureParameter("ThickX",0,new hi("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 ht=et/2,dt=tt/2,xt=Math.atan2(tt,et),It=lt-Math.min(Math.cos(xt)*lt/2,ht),Ut=lt-Math.min(Math.sin(xt)*lt/2,dt),rt=new go.Geometry,Gt=new go.PathFigure(It,0,!0);return rt.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,ht,.2*tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,et-It,0)),Gt.add(new go.PathSegment(go.PathSegment.Line,et,Ut)),Gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,dt)),Gt.add(new go.PathSegment(go.PathSegment.Line,et,tt-Ut)),Gt.add(new go.PathSegment(go.PathSegment.Line,et-It,tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,ht,.8*tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,It,tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,tt-Ut)),Gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,dt)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,Ut).close()),rt}}),go.Shape.setFigureParameter("ThinX",0,new hi("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,ht=new go.PathFigure(.1*et,0,!0);return rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.1*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.6*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.9*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt).close()),rt}),go.Shape.setFigureParameter("SquareIBeam",0,new hi("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,ht=new go.PathFigure(0,0,!0);return rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,lt*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(.5+lt/2)*et,lt*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(.5+lt/2)*et,(1-lt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,(1-lt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,(1-lt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(.5-lt/2)*et,(1-lt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(.5-lt/2)*et,lt*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,lt*tt).close()),rt}),go.Shape.setFigureParameter("RoundedIBeam",0,new hi("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,ht=new go.PathFigure(0,0,!0);return rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Bezier,et,tt,Math.abs(1-lt)*et,.25*tt,Math.abs(1-lt)*et,.75*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,0,0,lt*et,.75*tt,lt*et,.25*tt).close()),rt}),go.Shape.defineFigureGenerator("HalfEllipse",function(Ct,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,Nt*et,0,et,(.5-Nt/2)*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,(.5+Nt/2)*tt,Nt*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 ht=.2,dt=.3,xt=0,It=ht*Nt;return rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5+ht+xt)*tt,(.5-ht+dt)*et,(.5+It+xt)*tt,(.5-It+dt)*et,(.5+ht+xt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ht+dt)*et,(.5+xt)*tt,(.5+It+dt)*et,(.5+ht+xt)*tt,(.5+ht+dt)*et,(.5+It+xt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5-ht+xt)*tt,(1-.5+ht+dt)*et,(.5-It+xt)*tt,(.5+It+dt)*et,(.5-ht+xt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*tt,(.5-It+dt)*et,(.5-ht+xt)*tt,(.5-ht+dt+.05)*et,(.5-It+xt-.02)*tt)),ht=.2,dt=0,xt=-.3,It=ht*Nt,rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ht+dt)*et,(.5+xt)*tt,(.5+It+dt)*et,(.5+ht+xt)*tt,(.5+ht+dt)*et,(.5+It+xt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5-ht+xt)*tt,(1-.5+ht+dt)*et,(.5-It+xt)*tt,(.5+It+dt)*et,(.5-ht+xt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ht+dt)*et,(.5+xt)*tt,(.5-It+dt)*et,(.5-ht+xt)*tt,(.5-ht+dt)*et,(.5-It+xt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-It+dt)*et,(.5+ht+xt)*tt,(.5-ht+dt)*et,(.5+It+xt)*tt,(.5-It+dt)*et,(.5+ht+xt)*tt)),ht=.2,dt=-.3,xt=0,It=ht*Nt,rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5-ht+xt)*tt,(1-.5+ht+dt-.05)*et,(.5-It+xt-.02)*tt,(.5+It+dt)*et,(.5-ht+xt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ht+dt)*et,(.5+xt)*tt,(.5-It+dt)*et,(.5-ht+xt)*tt,(.5-ht+dt)*et,(.5-It+xt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5+ht+xt)*tt,(.5-ht+dt)*et,(.5+It+xt)*tt,(.5-It+dt)*et,(.5+ht+xt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*tt,(.5+It+dt)*et,(.5+ht+xt)*tt,(.5+ht+dt)*et,(.5+It+xt)*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 ht=.1,dt=.5,xt=.25;return rt.add(new go.PathSegment(go.PathSegment.Move,(dt+ht)*et,xt*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*dt,tt*xt,ht*et,ht*et).close()),rt=new go.PathFigure(et*.5,0,!1),lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*.5,et*.5,et*.5,et*.5)),xt=.75,rt=new go.PathFigure((dt+ht)*et,xt*tt,!0),lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*dt,tt*xt,ht*et,ht*et).close()),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Peace",function(Ct,et,tt){var lt=.8535533905932737,rt=.5*et,ht=.5*tt;return new go.Geometry().add(new go.PathFigure(rt,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,rt,ht,rt,ht)).add(new go.PathSegment(go.PathSegment.Line,rt,tt)).add(new go.PathSegment(go.PathSegment.Move,rt,ht)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Move,rt,ht)).add(new go.PathSegment(go.PathSegment.Line,lt*et,lt*tt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Ct,et,tt){var lt=new go.Geometry,rt=Nt*.5,ht=.5,dt=.5,xt=.5,It=new go.PathFigure(dt*et,(xt-ht)*tt);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,xt*tt,(dt-rt)*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+ht)*tt,(dt-ht)*et,(xt+rt)*tt,(dt-rt)*et,(xt+ht)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,xt*tt,(dt+rt)*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-ht)*tt,(dt+ht)*et,(xt-rt)*tt,(dt+rt)*et,(xt-ht)*tt)),ht=.4,rt=Nt*.4;var Ut=Mt(),Gt=Mt(),se=Mt(),ue=Mt();Ie(dt,xt-ht,dt+rt,xt-ht,dt+ht,xt-rt,dt+ht,xt,.42,Ut,Gt,se,ue,ue);var Ae=Mt(),Pe=Mt(),qt=Mt();Ie(dt,xt-ht,dt+rt,xt-ht,dt+ht,xt-rt,dt+ht,xt,.58,ue,ue,qt,Ae,Pe);var ze=Mt(),Wt=Mt(),Ge=Mt();Ie(dt,xt+ht,dt-rt,xt+ht,dt-ht,xt+rt,dt-ht,xt,.42,ze,Wt,Ge,ue,ue);var _e=Mt(),Me=Mt(),We=Mt();return Ie(dt,xt+ht,dt-rt,xt+ht,dt-ht,xt+rt,dt-ht,xt,.58,ue,ue,We,_e,Me),It.add(new go.PathSegment(go.PathSegment.Move,We.x*et,We.y*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,xt*tt,_e.x*et,_e.y*tt,Me.x*et,Me.y*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt,(dt-rt)*et,(xt-ht)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,se.x*et,se.y*tt,Ut.x*et,Ut.y*tt,Gt.x*et,Gt.y*tt)),It.add(new go.PathSegment(go.PathSegment.Line,We.x*et,We.y*tt).close()),It.add(new go.PathSegment(go.PathSegment.Move,Ge.x*et,Ge.y*tt)),It.add(new go.PathSegment(go.PathSegment.Line,qt.x*et,qt.y*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,xt*tt,Ae.x*et,Ae.y*tt,Pe.x*et,Pe.y*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,Ge.x*et,Ge.y*tt,ze.x*et,ze.y*tt,Wt.x*et,Wt.y*tt).close()),ce(Ut),ce(Gt),ce(se),ce(ue),ce(Ae),ce(Pe),ce(qt),ce(ze),ce(Wt),ce(Ge),ce(_e),ce(Me),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 hi("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,ht=rt+lt;return new go.Geometry().add(new go.PathFigure(ht,.5*tt).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(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=Nt*.4,ht=.4,dt=.5,xt=.5,It=Mt(),Ut=Mt(),Gt=Mt(),se=Mt(),ue=new go.PathFigure((dt-ht)*et,xt*tt,!1);lt.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt,(dt-rt)*et,(xt-ht)*tt)),Ie(dt,xt-ht,dt+rt,xt-ht,dt+ht,xt-rt,dt+ht,xt,.44,Gt,se,Ut,It,It),ue.add(new go.PathSegment(go.PathSegment.Bezier,Ut.x*et,Ut.y*tt,Gt.x*et,Gt.y*tt,se.x*et,se.y*tt));var Ae=Ft(Ut.x,Ut.y);Ie(dt,xt-ht,dt+rt,xt-ht,dt+ht,xt-rt,dt+ht,xt,.56,It,It,Ut,Gt,se);var Pe=Ft(Ut.x,Ut.y);ue.add(new go.PathSegment(go.PathSegment.Line,(Ae.x*.1+.95*.9)*et,Ae.y*.1*tt)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*et,Ae.y*.1*tt)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),ue.add(new go.PathSegment(go.PathSegment.Line,et,0)),ue.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),ue.add(new go.PathSegment(go.PathSegment.Line,(Pe.x*.1+.9)*et,.15*tt)),ue.add(new go.PathSegment(go.PathSegment.Line,(Pe.x*.1+.9)*et,(Pe.y*.1+.05*.9)*tt)),ue.add(new go.PathSegment(go.PathSegment.Line,Pe.x*et,Pe.y*tt)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,xt*tt,Gt.x*et,Gt.y*tt,se.x*et,se.y*tt)),ue.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,xt*tt,(dt-rt)*et,(xt+ht)*tt,(dt-ht)*et,(xt+rt)*tt)),ht=.35,rt=Nt*.35;var qt=new go.PathFigure(dt*et,(xt-ht)*tt,!1);lt.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,xt*tt,(dt-rt)*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+ht)*tt,(dt-ht)*et,(xt+rt)*tt,(dt-rt)*et,(xt+ht)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,xt*tt,(dt+rt)*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-ht)*tt,(dt+ht)*et,(xt-rt)*tt,(dt+rt)*et,(xt-ht)*tt));var ze=new go.PathFigure((dt-ht)*et,xt*tt,!1);return lt.add(ze),ce(It),ce(Ut),ce(Gt),ce(se),ce(Ae),ce(Pe),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,ht=0,dt=-.125,xt=rt*Nt,It=new go.PathFigure((.525+ht)*et,(.5+rt+dt)*tt,!1);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+rt+ht)*et,(.5+dt)*tt,(.5+xt+ht)*et,(.5+rt+dt)*tt,(.5+rt+ht)*et,(.5+xt+dt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ht)*et,(.5-rt+dt)*tt,(1-.5+rt+ht)*et,(.5-xt+dt)*tt,(.5+xt+ht)*et,(.5-rt+dt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ht)*et,(.5+dt)*tt,(.5-xt+ht)*et,(.5-rt+dt)*tt,(.5-rt+ht)*et,(.5-xt+dt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ht)*et,(.5+rt+dt)*tt,(.5-rt+ht)*et,(.5+xt+dt)*tt,(.5-xt+ht)*et,(.5+rt+dt)*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.475*et,.85*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.425*et,.85*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.425*et,.9*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.475*et,.9*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.475*et,tt)),It.add(new go.PathSegment(go.PathSegment.Line,.525*et,tt)),It.add(new go.PathSegment(go.PathSegment.Line,.525*et,.9*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.575*et,.9*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.575*et,.85*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*tt).close()),rt=.325,ht=0,dt=-.125,xt=rt*Nt;var It=new go.PathFigure((1-.5+rt+ht)*et,(.5+dt)*tt,!1);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ht)*et,(.5+rt+dt)*tt,(.5+rt+ht)*et,(.5+xt+dt)*tt,(.5+xt+ht)*et,(.5+rt+dt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ht)*et,(.5+dt)*tt,(.5-xt+ht)*et,(.5+rt+dt)*tt,(.5-rt+ht)*et,(.5+xt+dt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ht)*et,(.5-rt+dt)*tt,(.5-rt+ht)*et,(.5-xt+dt)*tt,(.5-xt+ht)*et,(.5-rt+dt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+rt+ht)*et,(.5+dt)*tt,(.5+xt+ht)*et,(.5-rt+dt)*tt,(1-.5+rt+ht)*et,(.5-xt+dt)*tt));var It=new go.PathFigure((.525+ht)*et,(.5+rt+dt)*tt,!1);return lt.add(It),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 hi("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new hi("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 ht=(1-lt)*et,dt=(.5-rt/2)*tt,xt=(.5+rt/2)*tt,It=new go.Geometry,Ut=new go.PathFigure(0,dt,!0);It.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,ht,dt)),Ut.add(new go.PathSegment(go.PathSegment.Line,ht,0)),Ut.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),Ut.add(new go.PathSegment(go.PathSegment.Line,ht,tt)),Ut.add(new go.PathSegment(go.PathSegment.Line,ht,xt)),Ut.add(new go.PathSegment(go.PathSegment.Line,0,xt).close()),It.spot1=new go.Spot(0,dt/tt);var Gt=re(0,xt/tt,1,xt/tt,ht/et,1,1,.5,Mt());return It.spot2=new go.Spot(Gt.x,Gt.y),ce(Gt),It}),go.Shape.setFigureParameter("Arrow2",0,new hi("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new hi("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 ht=et-lt,dt=(tt-rt)/2,xt=dt+rt,It=new go.Geometry,Ut=new go.PathFigure(0,dt,!0);It.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,ht,dt)),Ut.add(new go.PathSegment(go.PathSegment.Line,ht,0)),Ut.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),Ut.add(new go.PathSegment(go.PathSegment.Line,ht,tt)),Ut.add(new go.PathSegment(go.PathSegment.Line,ht,xt)),Ut.add(new go.PathSegment(go.PathSegment.Line,0,xt).close()),It.spot1=new go.Spot(0,dt/tt);var Gt=re(0,xt/tt,1,xt/tt,ht/et,1,1,.5,Mt());return It.spot2=new go.Spot(Gt.x,Gt.y),ce(Gt),It}),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 hi("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,ht=(.5+lt/2)*tt,dt=new go.Geometry,xt=new go.PathFigure(et,.5*tt,!0);dt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),xt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ht)),xt.add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)),xt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),xt.add(new go.PathSegment(go.PathSegment.Line,.3*et,rt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var It=re(0,.5,.3,0,0,rt/tt,.1,rt/tt,Mt());return dt.spot1=new go.Spot(It.x,It.y),It=re(.7,1,1,.5,0,ht/tt,1,ht/tt,It),dt.spot2=new go.Spot(It.x,It.y),ce(It),dt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new hi("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new hi("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 ht=(tt-lt)/2,dt=ht+lt,xt=(tt-rt)/2,It=xt+rt;(lt>tt||rt>tt)&&(rt>lt?(lt=lt*tt/rt,ht=(tt-lt)/2,dt=ht+lt,xt=0,It=tt):(ht=0,dt=tt,xt=0,It=tt));var Ut=new go.Geometry,Gt=new go.PathFigure(et,.5*tt,!0);Ut.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,It)),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,dt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.3*et,dt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.3*et,It)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.3*et,xt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ht)),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,xt).close());var se=re(0,.5,.3,xt/tt,0,ht/tt,1,ht/tt,Mt());return Ut.spot1=new go.Spot(se.x,se.y),se=re(.7,It/tt,1,.5,0,dt/tt,1,dt/tt,se),Ut.spot2=new go.Spot(se.x,se.y),ce(se),Ut}),go.Shape.setFigureParameter("IBeamArrow",0,new hi("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,ht=(.5+lt/2)*tt,dt=new go.Geometry,xt=new go.PathFigure(et,.5*tt,!0);dt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),xt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ht)),xt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),xt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),xt.add(new go.PathSegment(go.PathSegment.Line,0,0)),xt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),xt.add(new go.PathSegment(go.PathSegment.Line,.2*et,rt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),dt.spot1=new go.Spot(0,rt/tt);var It=re(.7,1,1,.5,0,ht/tt,1,ht/tt,Mt());return dt.spot2=new go.Spot(It.x,It.y),ce(It),dt}),go.Shape.setFigureParameter("IBeamArrow2",0,new hi("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new hi("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 ht=(tt-lt)/2,dt=ht+lt,xt=(tt-rt)/2,It=xt+rt;(lt>tt||rt>tt)&&(rt>lt?(lt=lt*tt/rt,ht=(tt-lt)/2,dt=ht+lt,xt=0,It=tt):(ht=0,dt=tt,xt=0,It=tt));var Ut=new go.Geometry,Gt=new go.PathFigure(et,.5*tt,!0);Ut.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,It)),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,dt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,dt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,It)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,It)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,xt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,xt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ht)),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,xt).close()),Ut.spot1=new go.Spot(0,ht/tt);var se=re(.7,It/tt,1,.5,0,dt/tt,1,dt/tt,Mt());return Ut.spot2=new go.Spot(se.x,se.y),ce(se),Ut}),go.Shape.setFigureParameter("Pointer",0,new hi("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,ht=new go.PathFigure(et,.5*tt,!0);rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,lt*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),rt.spot1=new go.Spot(lt,.35);var dt=re(.2,.65,1,.65,0,1,1,.5,Mt());return rt.spot2=new go.Spot(dt.x,dt.y),ce(dt),rt}),go.Shape.setFigureParameter("RoundedPointer",0,new hi("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,ht=new go.PathFigure(et,.5*tt,!0);rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,0,0,lt*et,.75*tt,lt*et,.25*tt).close()),rt.spot1=new go.Spot(lt,.35);var dt=re(0,.65,1,.65,0,1,1,.5,Mt());return rt.spot2=new go.Spot(dt.x,dt.y),ce(dt),rt}),go.Shape.setFigureParameter("SplitEndArrow",0,new hi("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,ht=(.5+lt/2)*tt,dt=new go.Geometry,xt=new go.PathFigure(et,.5*tt,!0);dt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),xt.add(new go.PathSegment(go.PathSegment.Line,0,ht)),xt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),xt.add(new go.PathSegment(go.PathSegment.Line,0,rt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),dt.spot1=new go.Spot(.2,.3);var It=re(.7,1,1,.5,0,ht/tt,1,ht/tt,Mt());return dt.spot2=new go.Spot(It.x,It.y),ce(It),dt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new hi("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,ht=rt+lt;lt>tt&&(rt=0,ht=tt);var dt=new go.Geometry,xt=new go.PathFigure(et,.5*tt,!0);dt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),xt.add(new go.PathSegment(go.PathSegment.Line,0,ht)),xt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),xt.add(new go.PathSegment(go.PathSegment.Line,0,rt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),dt.spot1=new go.Spot(.2,rt/tt);var It=re(.7,1,1,.5,0,ht/tt,1,ht/tt,Mt());return dt.spot2=new go.Spot(It.x,It.y),ce(It),dt}),go.Shape.setFigureParameter("SquareArrow",0,new hi("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,ht=new go.PathFigure(et,.5*tt,!0);return rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,lt*et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,0)),ht.add(new go.PathSegment(go.PathSegment.Line,lt*et,0).close()),rt.spot1=go.Spot.TopLeft,rt.spot2=new go.Spot(lt,1),rt}),go.Shape.defineFigureGenerator("Cone1",function(Ct,et,tt){var lt=new go.Geometry,rt=Nt*.5,ht=Nt*.1,dt=new go.PathFigure(0,.9*tt,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ht)*tt,(.5+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ht)*tt).close()),lt.spot1=new go.Spot(.25,.5),lt.spot2=new go.Spot(.75,.97),lt}),go.Shape.defineFigureGenerator("Cone2",function(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 ht=new go.PathFigure(0,.9*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*tt,(1-.85/.9)*et,.8*tt,.85/.9*et,.8*tt)),lt.spot1=new go.Spot(.25,.5),lt.spot2=new go.Spot(.75,.82),lt}),go.Shape.defineFigureGenerator("Cube1",function(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 ht=new go.PathFigure(.5*et,tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.15*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.5*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),lt.spot1=new go.Spot(0,.3),lt.spot2=new go.Spot(.5,.85),lt}),go.Shape.defineFigureGenerator("Cube2",function(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 ht=new go.PathFigure(0,.3*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.7*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Move,.7*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),lt.spot1=new go.Spot(0,.3),lt.spot2=new go.Spot(.7,1),lt}),go.Shape.defineFigureGenerator("Cylinder1",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,tt/3);var rt=new go.Geometry,ht=Nt*.5,dt=new go.PathFigure(0,lt,!0);rt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Nt*lt,(.5-ht)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,1*et,lt,(.5+ht)*et,0,1*et,Nt*lt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt-lt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,1*tt,1*et,tt-Nt*lt,(.5+ht)*et,1*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-lt,(.5-ht)*et,1*tt,0,tt-Nt*lt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,lt));var xt=new go.PathFigure(et,lt,!1);return rt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*lt,1*et,2*lt-Nt*lt,(.5+ht)*et,2*lt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,lt,(.5-ht)*et,2*lt,0,2*lt-Nt*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,ht=Nt*.5,dt=new go.PathFigure(0,tt-lt,!0);rt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Nt*lt,(.5-ht)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,lt,(.5+ht)*et,0,et,Nt*lt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt-lt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,tt-Nt*lt,(.5+ht)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-lt,(.5-ht)*et,tt,0,tt-Nt*lt));var xt=new go.PathFigure(0,tt-lt,!1);return rt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt-2*lt,0,tt-lt-Nt*lt,(.5-ht)*et,tt-2*lt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,et,tt-lt,(.5+ht)*et,tt-2*lt,et,tt-lt-Nt*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,ht=Nt*.5,dt=new go.PathFigure(lt,0,!0);rt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et-lt,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,et-Nt*lt,0,et,(.5-ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et,(.5+ht)*tt,et-Nt*lt,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,lt,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,Nt*lt,tt,0,(.5+ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,(.5-ht)*tt,Nt*lt,0));var xt=new go.PathFigure(lt,0,!1);return rt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,2*lt,.5*tt,lt+Nt*lt,0,2*lt,(.5-ht)*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,lt,tt,2*lt,(.5+ht)*tt,lt+Nt*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,ht=Nt*.5,dt=new go.PathFigure(et-lt,0,!0);rt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,et-Nt*lt,0,et,(.5-ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et,(.5+ht)*tt,et-Nt*lt,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,lt,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,Nt*lt,tt,0,(.5+ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,(.5-ht)*tt,Nt*lt,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et-lt,0));var xt=new go.PathFigure(et-lt,0,!1);return rt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,et-2*lt,.5*tt,et-lt-Nt*lt,0,et-2*lt,(.5-ht)*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et-2*lt,(.5+ht)*tt,et-lt-Nt*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 ht=new go.PathFigure(.25*et,.25*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),lt.spot1=new go.Spot(.408,.172),lt.spot2=new go.Spot(.833,.662),lt}),go.Shape.defineFigureGenerator("Prism2",function(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 ht=new go.PathFigure(0,tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,0,.25*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)),lt.spot1=new go.Spot(.25,.5),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("Pyramid1",function(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 ht=new go.PathFigure(.5*et,0,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),lt.spot1=new go.Spot(.25,.367),lt.spot2=new go.Spot(.75,.875),lt}),go.Shape.defineFigureGenerator("Pyramid2",function(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 ht=new go.PathFigure(.5*et,0,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),lt.spot1=new go.Spot(.25,.367),lt.spot2=new go.Spot(.75,.875),lt}),go.Shape.defineFigureGenerator("Actor",function(Ct,et,tt){var lt=new go.Geometry,rt=.2,ht=.1,dt=Nt*rt,xt=Nt*ht,It=.5,Ut=.1,Gt=new go.PathFigure(It*et,(Ut+ht)*tt,!0);lt.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(It-rt)*et,Ut*tt,(It-dt)*et,(Ut+ht)*tt,(It-rt)*et,(Ut+xt)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,It*et,(Ut-ht)*tt,(It-rt)*et,(Ut-xt)*tt,(It-dt)*et,(Ut-ht)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(It+rt)*et,Ut*tt,(It+dt)*et,(Ut-ht)*tt,(It+rt)*et,(Ut-xt)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,It*et,(Ut+ht)*tt,(It+rt)*et,(Ut+xt)*tt,(It+dt)*et,(Ut+ht)*tt));var se=.05,ue=Nt*se;It=.05,Ut=.25;var Ae=new go.PathFigure(.5*et,.2*tt,!0);return lt.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*tt)),It=.95,Ut=.25,Ae.add(new go.PathSegment(go.PathSegment.Bezier,(It+se)*et,Ut*tt,(It+ue)*et,(Ut-se)*tt,(It+se)*et,(Ut-ue)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*tt)),se=.025,ue=Nt*se,It=.825,Ut=.35,Ae.add(new go.PathSegment(go.PathSegment.Bezier,It*et,(Ut-se)*tt,(It+se)*et,(Ut-ue)*tt,(It+ue)*et,(Ut-se)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(It-se)*et,Ut*tt,(It-ue)*et,(Ut-se)*tt,(It-se)*et,(Ut-ue)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.55*et,tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt)),se=.05,ue=Nt*se,It=.5,Ut=.7,Ae.add(new go.PathSegment(go.PathSegment.Bezier,It*et,(Ut-se)*tt,(It+se)*et,(Ut-ue)*tt,(It+ue)*et,(Ut-se)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(It-se)*et,Ut*tt,(It-ue)*et,(Ut-se)*tt,(It-se)*et,(Ut-ue)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.45*et,tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*tt)),se=.025,ue=Nt*se,It=.175,Ut=.35,Ae.add(new go.PathSegment(go.PathSegment.Bezier,It*et,(Ut-se)*tt,(It+se)*et,(Ut-ue)*tt,(It+ue)*et,(Ut-se)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(It-se)*et,Ut*tt,(It-ue)*et,(Ut-se)*tt,(It-se)*et,(Ut-ue)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),se=.05,ue=Nt*se,It=.05,Ut=.25,Ae.add(new go.PathSegment(go.PathSegment.Bezier,It*et,(Ut-se)*tt,(It-se)*et,(Ut-ue)*tt,(It-ue)*et,(Ut-se)*tt)),Ae.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 hi("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,ht=new go.PathFigure(et,0,!0);return rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,lt*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,lt*et,0).close()),rt.spot1=new go.Spot(0,lt),rt.spot2=go.Spot.BottomRight,rt}),go.Shape.defineFigureGenerator("Collate",function(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 ht=new go.PathFigure(.5*et,.5*tt,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),lt.spot1=new go.Spot(.25,0),lt.spot2=new go.Spot(.75,.25),lt}),go.Shape.defineFigureGenerator("CreateRequest",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.1);var ht=new go.PathFigure(0,0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var dt=new go.PathFigure(0,rt*tt,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,0,(1-rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,(1-rt)*tt)),lt}),go.Shape.defineFigureGenerator("Database",function(Ct,et,tt){var lt=new go.Geometry,rt=Nt*.5,ht=Nt*.1,dt=new go.PathFigure(et,.1*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ht)*tt,(.5+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ht)*tt,(.5-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,(.5+rt)*et,0,et,(.1-ht)*tt));var xt=new go.PathFigure(et,.1*tt,!1);return lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ht)*tt,(.5+rt)*et,.2*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-rt)*et,.2*tt,0,(.1+ht)*tt)),xt.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ht)*tt,(.5+rt)*et,.3*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-rt)*et,.3*tt,0,(.2+ht)*tt)),xt.add(new go.PathSegment(go.PathSegment.Move,et,.3*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*tt,et,(.3+ht)*tt,(.5+rt)*et,.4*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*tt,(.5-rt)*et,.4*tt,0,(.3+ht)*tt)),lt.spot1=new go.Spot(0,.4),lt.spot2=new go.Spot(1,.9),lt}),go.Shape.defineFigureGenerator("DataStorage",function(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=Nt*.5,ht=Nt*.1,dt=new go.PathFigure(et,.1*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ht)*tt,(.5+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ht)*tt,(.5-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,(.5+rt)*et,0,et,(.1-ht)*tt));var xt=new go.PathFigure(et,.1*tt,!1);return lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ht)*tt,(.5+rt)*et,.2*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-rt)*et,.2*tt,0,(.1+ht)*tt)),xt.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ht)*tt,(.5+rt)*et,.3*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-rt)*et,.3*tt,0,(.2+ht)*tt)),lt.spot1=new go.Spot(0,.3),lt.spot2=new go.Spot(1,.9),lt}),go.Shape.defineFigureGenerator("Display",function(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 ht=Nt*.2,dt=new go.PathFigure(0,.2*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,0,(.2-ht)*tt,(.2-ht)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.2*tt,(.8+ht)*et,0,et,(.2-ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,tt,et,(.8+ht)*tt,(.8+ht)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*tt,(.2-ht)*et,tt,0,(.8+ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt));var xt=new go.PathFigure(0,rt*tt,!1);return lt.add(xt),xt.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 ht=new go.PathFigure(0,0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var dt=new go.PathFigure(0,rt*tt,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),lt}),go.Shape.defineFigureGenerator("Document",function(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 ht=new go.PathFigure(0,0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var dt=new go.PathFigure(rt*et,0,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,0,rt*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,et,rt*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Move,0,(1-rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Move,(1-rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,(1-rt)*tt)),lt}),go.Shape.defineFigureGenerator("ExternalProcess",function(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 ht=new go.PathFigure(.1*et,.4*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.9*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.6*et,.1*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.4*et,.1*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.4*et,.9*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.6*et,.9*tt)),lt.spot1=new go.Spot(.25,.25),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("File",function(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 ht=new go.PathFigure(.75*et,0,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),lt.spot1=new go.Spot(0,.25),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("Interrupt",function(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 ht=new go.PathFigure(et,.5*tt,!1);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt));var dt=new go.PathFigure(et,.5*tt,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.5,.75),lt}),go.Shape.defineFigureGenerator("InternalStorage",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN,ht=Ct?Ct.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ht)&&(ht=.1);var dt=new go.PathFigure(0,0,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var xt=new go.PathFigure(rt*et,0,!1);return lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),xt.add(new go.PathSegment(go.PathSegment.Move,0,ht*tt)),xt.add(new go.PathSegment(go.PathSegment.Line,et,ht*tt)),lt}),go.Shape.defineFigureGenerator("Junction",function(Ct,et,tt){var lt=new go.Geometry,rt=1/Math.SQRT2,ht=(1-1/Math.SQRT2)/2,dt=Nt*.5,xt=.5,It=new go.PathFigure(et,xt*tt,!0);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,xt*et,tt,et,(xt+dt)*tt,(xt+dt)*et,tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,0,xt*tt,(xt-dt)*et,tt,0,(xt+dt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,xt*et,0,0,(xt-dt)*tt,(xt-dt)*et,0)),It.add(new go.PathSegment(go.PathSegment.Bezier,et,xt*tt,(xt+dt)*et,0,et,(xt-dt)*tt));var Ut=new go.PathFigure((ht+rt)*et,(ht+rt)*tt,!1);return lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,ht*et,ht*tt)),Ut.add(new go.PathSegment(go.PathSegment.Move,ht*et,(ht+rt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Line,(ht+rt)*et,ht*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 ht=new go.PathFigure(.1*et,0,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.1*et,.75*tt)),lt.spot1=new go.Spot(.1,0),lt.spot2=new go.Spot(1,.6),lt}),go.Shape.defineFigureGenerator("LoopLimit",function(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=Nt*.5,ht=.5,dt=new go.PathFigure(.5*et,tt,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,ht*tt,(ht-rt)*et,tt,0,(ht+rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,ht*et,0,0,(ht-rt)*tt,(ht-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht*tt,(ht+rt)*et,0,et,(ht-rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(ht+.1)*et,.9*tt,et,(ht+rt)*tt,(ht+rt)*et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),lt.spot1=new go.Spot(.15,.15),lt.spot2=new go.Spot(.85,.8),lt}),go.Shape.defineFigureGenerator("ManualInput",function(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 ht=new go.PathFigure(0,0,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,rt*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=go.Spot.TopLeft,lt}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.25);var ht=new go.PathFigure(0,0,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,rt*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,(1-rt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("MicroformRecording",function(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 ht=new go.PathFigure(.1*et,.2*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.54*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,.44*tt)),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.8,.77),lt}),go.Shape.defineFigureGenerator("MultiProcess",function(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 ht=new go.PathFigure(.2*et,.1*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.1*et,.2*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*tt)),lt.spot1=new go.Spot(0,.2),lt.spot2=new go.Spot(.8,1),lt}),go.Shape.defineFigureGenerator("OfflineStorage",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.1);var ht=1-rt,dt=new go.PathFigure(0,0,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close());var xt=new go.PathFigure(.5*rt*et,rt*tt,!1);return lt.add(xt),xt.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=Nt*.5,ht=.5,dt=new go.PathFigure(et,ht*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,ht*et,tt,et,(ht+rt)*tt,(ht+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,ht*tt,(ht-rt)*et,tt,0,(ht+rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,ht*et,0,0,(ht-rt)*tt,(ht-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht*tt,(ht+rt)*et,0,et,(ht-rt)*tt));var xt=new go.PathFigure(et,.5*tt,!1);return lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),xt.add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)),xt.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,ht=Ct?Ct.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ht)&&(ht=.3);var dt=new go.PathFigure(0,0,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN,ht=Ct?Ct.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ht)&&(ht=.3);var dt=new go.PathFigure(0,0,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("Procedure",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.1);var ht=new go.PathFigure(0,0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var dt=new go.PathFigure((1-rt)*et,0,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Move,rt*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),lt}),go.Shape.defineFigureGenerator("Process",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.1);var ht=new go.PathFigure(0,0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var dt=new go.PathFigure(rt*et,0,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("Sort",function(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 ht=new go.PathFigure(0,.5*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),lt.spot1=new go.Spot(.25,.25),lt.spot2=new go.Spot(.75,.5),lt}),go.Shape.defineFigureGenerator("Start",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.25);var ht=new go.PathFigure(rt*et,0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*tt,.25*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*tt,.25*et,.5*tt));var dt=new go.PathFigure(rt*et,0,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Move,(1-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,tt)),lt.spot1=new go.Spot(rt,0),lt.spot2=new go.Spot(1-rt,1),lt}),go.Shape.defineFigureGenerator("Terminator",function(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 ht=new go.PathFigure(0,0,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.75*et,(1-rt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,(1-rt)*tt).close()),lt.spot1=go.Spot.TopLeft,lt}),go.Shape.defineFigureGenerator("AndGate",function(Ct,et,tt){var lt=new go.Geometry,rt=Nt*.5,ht=new go.PathFigure(0,0,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ht.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(.5+rt)*et,0,et,(.5-rt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.5+rt)*tt,(.5+rt)*et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(.55,1),lt}),go.Shape.defineFigureGenerator("Buffer",function(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=Nt*.5,ht=.5,dt=new go.PathFigure(et,ht*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,ht*et,tt,et,(ht+rt)*tt,(ht+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,ht*tt,(ht-rt)*et,tt,0,(ht+rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,ht*et,0,0,(ht-rt)*tt,(ht-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht*tt,(ht+rt)*et,0,et,(ht-rt)*tt));var xt=new go.PathFigure(et,ht*tt,!1);lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,et,ht*tt));var It=new go.PathFigure(.8*et,.75*tt,!1);return lt.add(It),It.add(new go.PathSegment(go.PathSegment.Line,.8*et,.25*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.6*et,.25*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.6*et,.75*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.4*et,.75*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.4*et,.25*tt)),It.add(new go.PathSegment(go.PathSegment.Line,.2*et,.25*tt)),It.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=Nt*.1,ht=.1,dt=.9,xt=.5,It=new go.PathFigure(.8*et,.5*tt,!0);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Line,0,tt)),It.add(new go.PathSegment(go.PathSegment.Line,0,0)),It.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt));var Ut=new go.PathFigure((dt+ht)*et,xt*tt,!0);return lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,xt*tt,(dt-rt)*et,(xt+ht)*tt,(dt-ht)*et,(xt+rt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt,(dt-rt)*et,(xt-ht)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,xt*tt,(dt+rt)*et,(xt-ht)*tt,(dt+ht)*et,(xt-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=Nt*.5,ht=Nt*.4,dt=Nt*.1,xt=.1,It=.9,Ut=.5,Gt=new go.PathFigure(.8*et,.5*tt,!0);lt.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,tt,.8*et,(.5+ht)*tt,(.4+rt)*et,tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(.4+rt)*et,0,.8*et,(.5-ht)*tt));var se=new go.PathFigure((It+xt)*et,Ut*tt,!0);return lt.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,It*et,(Ut+xt)*tt,(It+xt)*et,(Ut+dt)*tt,(It+dt)*et,(Ut+xt)*tt)),se.add(new go.PathSegment(go.PathSegment.Bezier,(It-xt)*et,Ut*tt,(It-dt)*et,(Ut+xt)*tt,(It-xt)*et,(Ut+dt)*tt)),se.add(new go.PathSegment(go.PathSegment.Bezier,It*et,(Ut-xt)*tt,(It-xt)*et,(Ut-dt)*tt,(It-dt)*et,(Ut-xt)*tt)),se.add(new go.PathSegment(go.PathSegment.Bezier,(It+xt)*et,Ut*tt,(It+dt)*et,(Ut-xt)*tt,(It+xt)*et,(Ut-dt)*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,ht=Nt*rt,dt=0,xt=.5,It=new go.PathFigure(.8*et,.5*tt,!0);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.7*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*tt,.25*et,.25*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(dt+ht)*et,(xt-rt)*tt,.7*et,(xt-ht)*tt)),rt=.1,ht=Nt*.1,dt=.9,xt=.5;var Ut=new go.PathFigure((dt-rt)*et,xt*tt,!0);return lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-rt)*tt,(dt-rt)*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,xt*tt,(dt+ht)*et,(xt-rt)*tt,(dt+rt)*et,(xt-ht)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,xt*tt,(dt-ht)*et,(xt+rt)*tt,(dt-rt)*et,(xt+ht)*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,ht=Nt*rt,dt=0,xt=.5,It=new go.PathFigure(0,0,!0);return lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(dt+ht+ht)*et,(xt-rt)*tt,.8*et,(xt-ht)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.8*et,(xt+ht)*tt,(dt+ht+ht)*et,(xt+rt)*tt)),It.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,ht=Nt*rt,dt=.2,xt=.5,It=new go.PathFigure(.1*et,0,!1);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,tt,.35*et,.25*tt,.35*et,.75*tt));var Ut=new go.PathFigure(.8*et,.5*tt,!0);lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.7*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*tt,.45*et,.25*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(dt+ht)*et,(xt-rt)*tt,.7*et,(xt-ht)*tt)),rt=.1,ht=Nt*.1,dt=.9,xt=.5;var Gt=new go.PathFigure((dt-rt)*et,xt*tt,!0);return lt.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-rt)*tt,(dt-rt)*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,xt*tt,(dt+ht)*et,(xt-rt)*tt,(dt+rt)*et,(xt-ht)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,xt*tt,(dt-ht)*et,(xt+rt)*tt,(dt-rt)*et,(xt+ht)*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,ht=Nt*rt,dt=.2,xt=.5,It=new go.PathFigure(.1*et,0,!1);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,tt,.35*et,.25*tt,.35*et,.75*tt));var Ut=new go.PathFigure(.2*et,0,!0);return lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(dt+ht)*et,(xt-rt)*tt,.9*et,(xt-ht)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.9*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),Ut.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=Nt*.1,ht=.1,dt=.1,xt=.5,It=new go.PathFigure((dt-rt*.5)*et,tt,!1);return lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,0,(dt-rt)*et,tt,(dt-ht)*et,0)),dt=.3,It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,tt,(dt+ht)*et,0,(dt+rt)*et,tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,0,(dt-rt)*et,tt,(dt-ht)*et,0)),dt=.5,It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,tt,(dt+ht)*et,0,(dt+rt)*et,tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,0,(dt-rt)*et,tt,(dt-ht)*et,0)),dt=.7,It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,tt,(dt+ht)*et,0,(dt+rt)*et,tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,0,(dt-rt)*et,tt,(dt-ht)*et,0)),dt=.9,It.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt*.5)*et,tt,(dt+ht)*et,0,(dt+rt)*et,tt)),lt}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Ct,et,tt){var lt=new go.Geometry,rt=Nt*.5,ht=.5,dt=.5,xt=.5,It=new go.PathFigure((dt-ht)*et,xt*tt,!1);return lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt,(dt-rt)*et,(xt-ht)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,xt*tt,(dt+rt)*et,(xt-ht)*tt,(dt+ht)*et,(xt-rt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,xt*tt,(dt-rt)*et,(xt+ht)*tt,(dt-ht)*et,(xt+rt)*tt)),It.add(new go.PathSegment(go.PathSegment.Move,(dt-ht+.1)*et,xt*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht-.1)*et,xt*tt,dt*et,(xt-ht)*tt,dt*et,(xt+ht)*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,ht=tt;et=et*.38,tt=tt*.6;var dt=Nt*.8,xt=.8,It=0,Ut=.5,Gt=(rt-et)/2,se=(ht-tt)/2,ue=new go.PathFigure(It*et+Gt,(Ut+xt)*tt+se,!0);lt.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(It-xt)*et+Gt,Ut*tt+se,(It-dt)*et+Gt,(Ut+xt)*tt+se,(It-xt)*et+Gt,(Ut+dt)*tt+se)),ue.add(new go.PathSegment(go.PathSegment.Bezier,It*et+Gt,(Ut-xt)*tt+se,(It-xt)*et+Gt,(Ut-dt)*tt+se,(It-dt)*et+Gt,(Ut-xt)*tt+se)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(It-xt+dt*.5)*et+Gt,Ut*tt+se,It*et+Gt,(Ut-xt)*tt+se,(It-xt+dt*.5)*et+Gt,(Ut-dt)*tt+se)),ue.add(new go.PathSegment(go.PathSegment.Bezier,It*et+Gt,(Ut+xt)*tt+se,(It-xt+dt*.5)*et+Gt,(Ut+dt)*tt+se,It*et+Gt,(Ut+xt)*tt+se).close()),dt=Nt*.4,xt=.4,It=.2,Ut=.5;var Ae=new go.PathFigure(It*et+Gt,(Ut+xt)*tt+se,!0);lt.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(It-xt)*et+Gt,Ut*tt+se,(It-dt)*et+Gt,(Ut+xt)*tt+se,(It-xt)*et+Gt,(Ut+dt)*tt+se)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,It*et+Gt,(Ut-xt)*tt+se,(It-xt)*et+Gt,(Ut-dt)*tt+se,(It-dt)*et+Gt,(Ut-xt)*tt+se)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(It-xt+dt*.5)*et+Gt,Ut*tt+se,It*et+Gt,(Ut-xt)*tt+se,(It-xt+dt*.5)*et+Gt,(Ut-dt)*tt+se)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,It*et+Gt,(Ut+xt)*tt+se,(It-xt+dt*.5)*et+Gt,(Ut+dt)*tt+se,It*et+Gt,(Ut+xt)*tt+se).close()),dt=Nt*.2,xt=.2,It=.5,Ut=.5;var Pe=new go.PathFigure((It-xt)*et+Gt,Ut*tt+se,!0);lt.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,It*et+Gt,(Ut-xt)*tt+se,(It-xt)*et+Gt,(Ut-dt)*tt+se,(It-dt)*et+Gt,(Ut-xt)*tt+se)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(It+xt)*et+Gt,Ut*tt+se,(It+dt)*et+Gt,(Ut-xt)*tt+se,(It+xt)*et+Gt,(Ut-dt)*tt+se)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,It*et+Gt,(Ut+xt)*tt+se,(It+xt)*et+Gt,(Ut+dt)*tt+se,(It+dt)*et+Gt,(Ut+xt)*tt+se)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(It-xt)*et+Gt,Ut*tt+se,(It-dt)*et+Gt,(Ut+xt)*tt+se,(It-xt)*et+Gt,(Ut+dt)*tt+se)),dt=Nt*.4,xt=.4,It=.8,Ut=.5;var qt=new go.PathFigure(It*et+Gt,(Ut-xt)*tt+se,!0);lt.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,(It+xt)*et+Gt,Ut*tt+se,(It+dt)*et+Gt,(Ut-xt)*tt+se,(It+xt)*et+Gt,(Ut-dt)*tt+se)),qt.add(new go.PathSegment(go.PathSegment.Bezier,It*et+Gt,(Ut+xt)*tt+se,(It+xt)*et+Gt,(Ut+dt)*tt+se,(It+dt)*et+Gt,(Ut+xt)*tt+se)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(It+xt-dt*.5)*et+Gt,Ut*tt+se,It*et+Gt,(Ut+xt)*tt+se,(It+xt-dt*.5)*et+Gt,(Ut+dt)*tt+se)),qt.add(new go.PathSegment(go.PathSegment.Bezier,It*et+Gt,(Ut-xt)*tt+se,(It+xt-dt*.5)*et+Gt,(Ut-dt)*tt+se,It*et+Gt,(Ut-xt)*tt+se).close()),dt=Nt*.8,xt=.8,It=1,Ut=.5;var ze=new go.PathFigure(It*et+Gt,(Ut-xt)*tt+se,!0);return lt.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,(It+xt)*et+Gt,Ut*tt+se,(It+dt)*et+Gt,(Ut-xt)*tt+se,(It+xt)*et+Gt,(Ut-dt)*tt+se)),ze.add(new go.PathSegment(go.PathSegment.Bezier,It*et+Gt,(Ut+xt)*tt+se,(It+xt)*et+Gt,(Ut+dt)*tt+se,(It+dt)*et+Gt,(Ut+xt)*tt+se)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(It+xt-dt*.5)*et+Gt,Ut*tt+se,It*et+Gt,(Ut+xt)*tt+se,(It+xt-dt*.5)*et+Gt,(Ut+dt)*tt+se)),ze.add(new go.PathSegment(go.PathSegment.Bezier,It*et+Gt,(Ut-xt)*tt+se,(It+xt-dt*.5)*et+Gt,(Ut-dt)*tt+se,It*et+Gt,(Ut-xt)*tt+se).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 ht=new go.PathFigure(0,0,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Move,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.45*et,.54*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.55*et,.54*tt)),lt}),go.Shape.defineFigureGenerator("Ethernet",function(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 ht=new go.PathFigure(.1*et,tt,!0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.4*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt).close());var dt=new go.PathFigure(.6*et,tt,!0,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.6*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt).close());var xt=new go.PathFigure(0,.5*tt,!1);return lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),xt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),xt.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*tt)),xt.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*tt)),xt.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=Nt*.4,ht=.4,dt=.5,xt=.5,It=Mt(),Ut=Mt(),Gt=Mt(),se=Mt();Ie(dt,xt-ht,dt+rt,xt-ht,dt+ht,xt-rt,dt+ht,xt,.5,It,It,Ut,Gt,se);var ue=Ft(Ut.x,Ut.y),Ae=new go.PathFigure(Ut.x*et,Ut.y*tt,!0);lt.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,xt*tt,Gt.x*et,Gt.y*tt,se.x*et,se.y*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,xt*tt,(dt-rt)*et,(xt+ht)*tt,(dt-ht)*et,(xt+rt)*tt)),Ie(dt-ht,xt,dt-ht,xt-rt,dt-rt,xt-ht,dt,xt-ht,.5,Gt,se,Ut,It,It),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ut.x*et,Ut.y*tt,Gt.x*et,Gt.y*tt,se.x*et,se.y*tt)),rt=Nt*.3,ht=.3,Ie(dt-ht,xt,dt-ht,xt-rt,dt-rt,xt-ht,dt,xt-ht,.5,Gt,se,Ut,It,It),Ae.add(new go.PathSegment(go.PathSegment.Line,Ut.x*et,Ut.y*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,xt*tt,se.x*et,se.y*tt,Gt.x*et,Gt.y*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+ht)*tt,(dt-ht)*et,(xt+rt)*tt,(dt-rt)*et,(xt+ht)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,xt*tt,(dt+rt)*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),Ie(dt,xt-ht,dt+rt,xt-ht,dt+ht,xt-rt,dt+ht,xt,.5,It,It,Ut,Gt,se),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ut.x*et,Ut.y*tt,se.x*et,se.y*tt,Gt.x*et,Gt.y*tt).close());var Ae=new go.PathFigure(.45*et,0,!0);return lt.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),ce(It),ce(Ut),ce(Gt),ce(se),ce(ue),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 ht(dt,xt,It){dt.add(new go.PathSegment(go.PathSegment.Move,(.3+xt)*et,(.8+It)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,(.5+xt)*et,(.5+It)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,(.1+xt)*et,(.5+It)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,(.3+xt)*et,(.8+It)*tt).close())}return ht(rt,0,0),ht(rt,.4,0),ht(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,ht=0,dt=0,xt=rt*Nt,It=.4*Math.SQRT2/2+.5,Ut=.5-.5*Math.SQRT2/2,Gt=1,se=.5,ue=.5,Ae=0,Pe=new go.PathFigure(It*et,(1-Ut)*tt,!1);return lt.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Gt*et,se*tt,Gt*et,.7*tt,Gt*et,se*tt)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ht)*et,(Ae+ht)*tt,(.5+rt+ht)*et,(.5-xt+ht)*tt,(.5+xt+ht)*et,(.5-rt+ht)*tt)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ht)*et,(.5+dt)*tt,(.5-xt+ht)*et,(.5-rt+dt)*tt,(.5-rt+ht)*et,(.5-xt+dt)*tt)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ht)*et,.9*tt,(.5-rt+ht)*et,(.5+xt+dt)*tt,(.5-xt+ht)*et,.9*tt)),Pe.add(new go.PathSegment(go.PathSegment.Move,(.25+ht)*et,.8*tt)),Pe.add(new go.PathSegment(go.PathSegment.Line,(.35+ht)*et,.9*tt)),Pe.add(new go.PathSegment(go.PathSegment.Line,(.2+ht)*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 ht=new go.PathFigure(et,tt,!1);lt.add(ht);var dt=new go.PathFigure(0,.5*tt,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*tt,.2*et,.35*tt,.3*et,.35*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.7*et,.65*tt,.8*et,.65*tt)),lt}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(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 ht=new go.PathFigure(.45*et,.73*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.7*et,.73*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.38*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.63*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.31*et,.27*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.56*et,.27*tt)),lt}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);lt.add(rt);var ht=new go.PathFigure(.335*et,(1-.555)*tt,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,et,.68*tt,(1-.12)*et,.46*tt,(1-.02)*et,.54*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.68*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,.335*et,(1-.555)*tt,.02*et,.54*tt,.12*et,.46*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.365*et,(1-.595)*tt));var dt=.5-.285,xt=.5,It=dt,Ut=Math.PI/4,Gt=4*(1-Math.cos(Ut))/(3*Math.sin(Ut)),se=Gt*.5,ue=dt,Ae=dt,Pe=Gt*ue,qt=Gt*Ae;ht.add(new go.PathSegment(go.PathSegment.Bezier,(xt-ue)*et,It*tt,(xt-(Pe+ue)/2)*et,(It+(Ae+qt)/2)*tt,(xt-ue)*et,(It+qt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,xt*et,(It-Ae)*tt,(xt-ue)*et,(It-qt)*tt,(xt-Pe)*et,(It-Ae)*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(xt+ue)*et,It*tt,(xt+Pe)*et,(It-Ae)*tt,(xt+ue)*et,(It-qt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*tt,(xt+ue)*et,(It+qt)*tt,(xt+(Pe+ue)/2)*et,(It+(Ae+qt)/2)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*et,(1-.595)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*tt));var ze=new go.PathFigure(.2*et,tt,!1);lt.add(ze),ze.add(new go.PathSegment(go.PathSegment.Line,.2*et,.8*tt));var Wt=new go.PathFigure(.8*et,tt,!1);return lt.add(Wt),Wt.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 ht=new go.PathFigure(.2*et,.2*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.2*et,.8*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*tt)),lt}),go.Shape.defineFigureGenerator("BpmnEventError",function(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 ht=new go.PathFigure(et,tt,!1);lt.add(ht);var dt=new go.PathFigure(.1*et,tt,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt).close()),lt}),go.Shape.defineFigureGenerator("Caution",function(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 ht=.05;return rt.add(new go.PathSegment(go.PathSegment.Move,(.5-ht)*et,.875*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*et,.875*tt,ht*et,ht*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.325*tt,.575*et,.725*tt,.625*et,.375*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.75*tt,.375*et,.375*tt,.425*et,.725*tt)),lt}),go.Shape.defineFigureGenerator("Recycle",function(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 ht=new go.PathFigure(.475*et,.2*tt,!1);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.4*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.225*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.275*et,.175*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.325*et,.05*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.05*tt,.35*et,0,.375*et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,.575*et,.375*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.525*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.75*et,.475*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.85*et,.315*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.32*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.65*et,.05*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,0,.65*et,.05*tt,.625*et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,.38*et,.0105*tt));var dt=new go.PathFigure(.675*et,.575*tt,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.875*et,.525*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.775*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.85*et,.95*tt,et,.8*tt,et,.85*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.95*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.65*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.85*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.725*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.775*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.775*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.775*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,.675*et,.575*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.775*et,.775*tt)),lt}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Ct,et,tt){var lt=new go.Geometry,rt=.5,ht=Nt*.5,dt=new go.PathFigure(et,rt*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,rt*et,tt,et,(rt+ht)*tt,(rt+ht)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,rt*tt,(rt-ht)*et,tt,0,(rt+ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,rt*et,0,0,(rt-ht)*tt,(rt-ht)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,rt*tt,(rt+ht)*et,0,et,(rt-ht)*tt));var xt=new go.PathFigure(rt*et,0,!1);return lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,rt*et,.15*tt)),xt.add(new go.PathSegment(go.PathSegment.Move,rt*et,tt)),xt.add(new go.PathSegment(go.PathSegment.Line,rt*et,.85*tt)),xt.add(new go.PathSegment(go.PathSegment.Move,0,rt*tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.15*et,rt*tt)),xt.add(new go.PathSegment(go.PathSegment.Move,et,rt*tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.85*et,rt*tt)),xt.add(new go.PathSegment(go.PathSegment.Move,rt*et,rt*tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*tt)),xt.add(new go.PathSegment(go.PathSegment.Move,rt*et,rt*tt)),xt.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 ht=new go.PathFigure(0,.15*tt,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,0,0)),ht.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,.65*et,.15*tt).close()),lt.spot1=new go.Spot(0,.1),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Class",function(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 ht=new go.PathFigure(0,.2*tt,!1);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt).close());var dt=new go.PathFigure(0,.5*tt,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt).close()),lt}),go.Shape.defineFigureGenerator("Component",function(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 ht=new go.PathFigure(0,.2*tt,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.45*et,.2*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt).close());var dt=new go.PathFigure(0,.6*tt,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.6*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.8*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt).close()),lt}),go.Shape.defineFigureGenerator("Boat Shipment",function(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 ht=new go.PathFigure(.15*et,.6*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),lt}),go.Shape.defineFigureGenerator("Customer/Supplier",function(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 ht=new go.PathFigure(et,.8*tt,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.6*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt).close());var dt=.1,xt=Nt*.1,It=.2,Ut=.9,Gt=new go.PathFigure((It-dt)*et,Ut*tt,!0);lt.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,It*et,(Ut-dt)*tt,(It-dt)*et,(Ut-xt)*tt,(It-xt)*et,(Ut-dt)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(It+dt)*et,Ut*tt,(It+xt)*et,(Ut-dt)*tt,(It+dt)*et,(Ut-xt)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,It*et,(Ut+dt)*tt,(It+dt)*et,(Ut+xt)*tt,(It+xt)*et,(Ut+dt)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(It-dt)*et,Ut*tt,(It-xt)*et,(Ut+dt)*tt,(It-dt)*et,(Ut+xt)*tt).close()),dt=.1,xt=Nt*.1,It=.8,Ut=.9;var se=new go.PathFigure((It-dt)*et,Ut*tt,!0);return lt.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,It*et,(Ut-dt)*tt,(It-dt)*et,(Ut-xt)*tt,(It-xt)*et,(Ut-dt)*tt)),se.add(new go.PathSegment(go.PathSegment.Bezier,(It+dt)*et,Ut*tt,(It+xt)*et,(Ut-dt)*tt,(It+dt)*et,(Ut-xt)*tt)),se.add(new go.PathSegment(go.PathSegment.Bezier,It*et,(Ut+dt)*tt,(It+dt)*et,(Ut+xt)*tt,(It+xt)*et,(Ut+dt)*tt)),se.add(new go.PathSegment(go.PathSegment.Bezier,(It-dt)*et,Ut*tt,(It-xt)*et,(Ut+dt)*tt,(It-dt)*et,(Ut+xt)*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 ht=new go.PathFigure(0,.5*tt,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var dt=new go.PathFigure(.5*et,.8*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.1*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.1*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.8*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*tt));var xt=new go.PathFigure(.5*et,.7*tt,!1);lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt));var It=.1,Ut=Nt*.1,Gt=.1,se=.9,ue=new go.PathFigure((Gt-It)*et,se*tt,!0);lt.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,Gt*et,(se-It)*tt,(Gt-It)*et,(se-Ut)*tt,(Gt-Ut)*et,(se-It)*tt)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(Gt+It)*et,se*tt,(Gt+Ut)*et,(se-It)*tt,(Gt+It)*et,(se-Ut)*tt)),ue.add(new go.PathSegment(go.PathSegment.Bezier,Gt*et,(se+It)*tt,(Gt+It)*et,(se+Ut)*tt,(Gt+Ut)*et,(se+It)*tt)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(Gt-It)*et,se*tt,(Gt-Ut)*et,(se+It)*tt,(Gt-It)*et,(se+Ut)*tt)),It=.1,Ut=Nt*.1,Gt=.4,se=.9;var Ae=new go.PathFigure((Gt-It)*et,se*tt,!0);return lt.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Gt*et,(se-It)*tt,(Gt-It)*et,(se-Ut)*tt,(Gt-Ut)*et,(se-It)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Gt+It)*et,se*tt,(Gt+Ut)*et,(se-It)*tt,(Gt+It)*et,(se-Ut)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Gt*et,(se+It)*tt,(Gt+It)*et,(se+Ut)*tt,(Gt+Ut)*et,(se+It)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Gt-It)*et,se*tt,(Gt-Ut)*et,(se+It)*tt,(Gt-It)*et,(se+Ut)*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 ht=new go.PathFigure(.45*et,.7*tt,!1);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt));var dt=new go.PathFigure(.55*et,.4*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.4*tt).close());var Gt=.05,se=Nt*.05,ue=.175,Ae=.95,xt=new go.PathFigure((ue-Gt)*et,Ae*tt,!0);lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,ue*et,(Ae-Gt)*tt,(ue-Gt)*et,(Ae-se)*tt,(ue-se)*et,(Ae-Gt)*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,(ue+Gt)*et,Ae*tt,(ue+se)*et,(Ae-Gt)*tt,(ue+Gt)*et,(Ae-se)*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,ue*et,(Ae+Gt)*tt,(ue+Gt)*et,(Ae+se)*tt,(ue+se)*et,(Ae+Gt)*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,(ue-Gt)*et,Ae*tt,(ue-se)*et,(Ae+Gt)*tt,(ue-Gt)*et,(Ae+se)*tt));var Gt=.05,se=Nt*.05,ue=.375,Ae=.95,It=new go.PathFigure((ue-Gt)*et,Ae*tt,!0);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,ue*et,(Ae-Gt)*tt,(ue-Gt)*et,(Ae-se)*tt,(ue-se)*et,(Ae-Gt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(ue+Gt)*et,Ae*tt,(ue+se)*et,(Ae-Gt)*tt,(ue+Gt)*et,(Ae-se)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,ue*et,(Ae+Gt)*tt,(ue+Gt)*et,(Ae+se)*tt,(ue+se)*et,(Ae+Gt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(ue-Gt)*et,Ae*tt,(ue-se)*et,(Ae+Gt)*tt,(ue-Gt)*et,(Ae+se)*tt));var Gt=.05,se=Nt*.05,ue=.625,Ae=.95,Ut=new go.PathFigure((ue-Gt)*et,Ae*tt,!0);lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,ue*et,(Ae-Gt)*tt,(ue-Gt)*et,(Ae-se)*tt,(ue-se)*et,(Ae-Gt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(ue+Gt)*et,Ae*tt,(ue+se)*et,(Ae-Gt)*tt,(ue+Gt)*et,(Ae-se)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,ue*et,(Ae+Gt)*tt,(ue+Gt)*et,(Ae+se)*tt,(ue+se)*et,(Ae+Gt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(ue-Gt)*et,Ae*tt,(ue-se)*et,(Ae+Gt)*tt,(ue-Gt)*et,(Ae+se)*tt));var Gt=.05,se=Nt*.05,ue=.825,Ae=.95,Pe=new go.PathFigure((ue-Gt)*et,Ae*tt,!0);lt.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ue*et,(Ae-Gt)*tt,(ue-Gt)*et,(Ae-se)*tt,(ue-se)*et,(Ae-Gt)*tt)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+Gt)*et,Ae*tt,(ue+se)*et,(Ae-Gt)*tt,(ue+Gt)*et,(Ae-se)*tt)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ue*et,(Ae+Gt)*tt,(ue+Gt)*et,(Ae+se)*tt,(ue+se)*et,(Ae+Gt)*tt)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-Gt)*et,Ae*tt,(ue-se)*et,(Ae+Gt)*tt,(ue-Gt)*et,(Ae+se)*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 ht=new go.PathFigure(0,.2*tt,!1);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt).close());var dt=new go.PathFigure(.15*et,tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt).close());var xt=.05,It=Nt*.05,Ut=.35,Gt=.775,se=new go.PathFigure((Ut-xt)*et,Gt*tt,!0);return lt.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,Ut*et,(Gt-xt)*tt,(Ut-xt)*et,(Gt-It)*tt,(Ut-It)*et,(Gt-xt)*tt)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Ut+xt)*et,Gt*tt,(Ut+It)*et,(Gt-xt)*tt,(Ut+xt)*et,(Gt-It)*tt)),se.add(new go.PathSegment(go.PathSegment.Bezier,Ut*et,(Gt+xt)*tt,(Ut+xt)*et,(Gt+It)*tt,(Ut+It)*et,(Gt+xt)*tt)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Ut-xt)*et,Gt*tt,(Ut-It)*et,(Gt+xt)*tt,(Ut-xt)*et,(Gt+It)*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,ht=Nt*.3,dt=.5,xt=.7,It=new go.PathFigure((dt-rt)*et,xt*tt,!0);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-rt)*tt,(dt-rt)*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,xt*tt,(dt+ht)*et,(xt-rt)*tt,(dt+rt)*et,(xt-ht)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,xt*tt,(dt-ht)*et,(xt+rt)*tt,(dt-rt)*et,(xt+ht)*tt));var Ut=new go.PathFigure(0,.7*tt,!1);return lt.add(Ut),Ut.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 ht=new go.PathFigure(0,.6*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Move,0,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),lt}),go.Shape.defineFigureGenerator("Delete",function(Ct,et,tt){var lt=new go.Geometry,rt=.5,ht=Nt*.5,dt=.5,xt=.5,It=new go.PathFigure((dt-rt)*et,xt*tt,!0);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-rt)*tt,(dt-rt)*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,xt*tt,(dt+ht)*et,(xt-rt)*tt,(dt+rt)*et,(xt-ht)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,xt*tt,(dt-ht)*et,(xt+rt)*tt,(dt-rt)*et,(xt+ht)*tt));var Ut=new go.PathFigure(.15*et,.5*tt,!1);return lt.add(Ut),Ut.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,ht=Nt*.5,dt=.5,xt=.5,It=new go.PathFigure((dt-rt)*et,xt*tt,!1);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-rt)*tt,(dt-rt)*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,xt*tt,(dt+ht)*et,(xt-rt)*tt,(dt+rt)*et,(xt-ht)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),It.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,xt*tt,(dt-ht)*et,(xt+rt)*tt,(dt-rt)*et,(xt+ht)*tt).close()),rt=.05,ht=Nt*.05,dt=.5,xt=.8;var Ut=new go.PathFigure((dt-rt)*et,xt*tt,!1);return lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-rt)*tt,(dt-rt)*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,xt*tt,(dt+ht)*et,(xt-rt)*tt,(dt+rt)*et,(xt-ht)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,xt*tt,(dt-ht)*et,(xt+rt)*tt,(dt-rt)*et,(xt+ht)*tt).close()),Ut.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,.75*et,.475*tt,.75*et,.225*tt)),Ut.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 ht=new go.PathFigure(.2*et,.5*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*tt,.25*et,0,.75*et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.3*tt)),lt}),go.Shape.defineFigureGenerator("Unlocked",function(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 ht=new go.PathFigure(.2*et,.5*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*tt,.25*et,0,.75*et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.35*tt)),lt}),go.Shape.defineFigureGenerator("Gear",function(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 ht=new go.PathFigure(0,tt*.6,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close()),lt}),go.Shape.defineFigureGenerator("Pencil",function(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 ht=new go.PathFigure(.126*et,.85*tt,!1);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.126*et,.45*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.322*et,.45*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.322*et,.85*tt).close());var dt=new go.PathFigure(.402*et,.85*tt,!1);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.402*et,.45*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.45*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.85*tt).close());var xt=new go.PathFigure(.678*et,.85*tt,!1);lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.85*tt).close());var It=new go.PathFigure(.5*et,.1*tt,!1);return lt.add(It),It.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*et,.3*tt)),It.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 ht=new go.PathFigure(et*.204,tt,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et*.204,tt*(1-.184))),ht.add(new go.PathSegment(go.PathSegment.Line,et*.388,tt*(1-.184*2))),ht.add(new go.PathSegment(go.PathSegment.Line,et*.388,tt*1).close());var dt=new go.PathFigure(et*.408,tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*.408,tt*(1-.184*2))),dt.add(new go.PathSegment(go.PathSegment.Line,et*.592,tt*(1-.184*3))),dt.add(new go.PathSegment(go.PathSegment.Line,et*.592,tt*1).close());var xt=new go.PathFigure(et*.612,tt,!0);lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,et*.612,tt*(1-.184*3))),xt.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*(1-.184*4))),xt.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*1).close());var It=new go.PathFigure(et*.816,tt,!0);return lt.add(It),It.add(new go.PathSegment(go.PathSegment.Line,et*.816,tt*(1-.184*4))),It.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-.184*5))),It.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 ht=new go.PathFigure(et*.055,.07*tt,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.07)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.1)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.1).close());var dt=new go.PathFigure(et*.055,.13*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.13)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.16)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.16).close());var xt=new go.PathFigure(et*.055,.18*tt,!0);lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.18)),xt.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.21)),xt.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.21).close());var It=new go.PathFigure(et*1,0,!0);return lt.add(It),It.add(new go.PathSegment(go.PathSegment.Line,et*.4,0)),It.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.65)),It.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 ht=new go.PathFigure(0,0,!1);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*0)),ht.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*1,et*.3,et*.055)),ht.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1));var dt=new go.PathFigure(et*.11,tt*.1,!1);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),tt*.1)),dt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),tt*.8)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.11,tt*.8).close());var xt=new go.PathFigure(et*(.11+.24133333*1+.028*1),tt*.1,!1);lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.1)),xt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.8)),xt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*1),tt*.8).close());var It=new go.PathFigure(et*(.11+.24133333*2+.028*2),tt*.1,!1);return lt.add(It),It.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),tt*.1)),It.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),tt*.8)),It.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,ht=rt*Nt,dt=new go.PathFigure(rt,0,!1);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*.86,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.14)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt-rt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et-rt,tt,et,tt-ht,et-ht,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,rt,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-rt,ht,tt,0,tt-ht)),dt.add(new go.PathSegment(go.PathSegment.Line,0,rt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,rt,0,0,ht,ht,0).close());var xt=new go.PathFigure(et*.83,0,!1);lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.3)),xt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.3)),xt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*0).close());var It=new go.PathFigure(et*.83,tt*1,!1);lt.add(It),It.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.5)),It.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.5)),It.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*1).close());var Ut=new go.PathFigure(et*.78,tt*.05,!1);return lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.05)),Ut.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.25)),Ut.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*Nt,ht=tt*.8,dt=new go.Geometry,xt=new go.PathFigure(lt,0,!0);return dt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,et-lt,0)),xt.add(new go.PathSegment(go.PathSegment.Bezier,et,lt,et-rt,0,et,rt)),xt.add(new go.PathSegment(go.PathSegment.Line,et,ht-lt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,ht,et,ht-rt,et-rt,ht)),xt.add(new go.PathSegment(go.PathSegment.Line,et*.7,ht)),xt.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt)),xt.add(new go.PathSegment(go.PathSegment.Line,et*.55,ht)),xt.add(new go.PathSegment(go.PathSegment.Line,lt,ht)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,ht-lt,rt,ht,0,ht-rt)),xt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,rt,rt,0).close()),rt>1?(dt.spot1=new go.Spot(0,0,rt,rt),dt.spot2=new go.Spot(1,.8,-rt,-rt)):(dt.spot1=go.Spot.TopLeft,dt.spot2=new go.Spot(1,.8)),dt}),go.Shape.defineFigureGenerator("Repeat",function(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 ht=new go.PathFigure(et*1,tt*.55,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*1)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.55)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*.55)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*.1)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.1)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*0)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.55).close()),lt}),go.Shape.defineFigureGenerator("Windows",function(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 ht=new go.PathFigure(et*.1,tt*.2,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.25)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.22,tt*.285)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.32)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.37)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.275,tt*.32)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.275,tt*.25).close());var dt=new go.PathFigure(et*.28,tt*.37,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.37)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.41)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.28,tt*.41).close()),lt}),go.Shape.defineFigureGenerator("Beaker",function(Ct,et,tt){var lt=new go.Geometry,rt=15,ht=rt*Nt,dt=new go.PathFigure(et*.62,tt*.475,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt-rt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et-rt,tt,et,tt-ht,et-ht,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,rt,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-rt,ht,tt,0,tt-ht)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.38,tt*.475)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.38,tt*.03)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*0)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*0)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.62,tt*.03).close()),ht>1?(lt.spot1=new go.Spot(0,0,ht,ht),lt.spot2=new go.Spot(1,1,-ht,-ht)):(lt.spot1=go.Spot.TopLeft,lt.spot2=go.Spot.BottomRight),lt}),go.Shape.defineFigureGenerator("Download",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);lt.add(rt);var ht=.1/.3;rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ht)).close());var dt=new go.PathFigure(et*.4,tt*0,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.44)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.26,tt*.44)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.66)),dt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.26),tt*.44)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.44)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*0).close()),lt}),go.Shape.defineFigureGenerator("Bin",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);lt.add(rt);var ht=.1/.3;return rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ht)).close()),lt}),go.Shape.defineFigureGenerator("Upload",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);lt.add(rt);var ht=.1/.3;rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ht)).close());var dt=new go.PathFigure(et*.5,tt*0,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*.26,tt*.25)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.25)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.63)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.63)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.25)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.74,tt*.25).close()),lt}),go.Shape.defineFigureGenerator("EmptyDrink",function(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 ht=new go.PathFigure(et*.235,tt*.28,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et*.765,tt*.28)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.655,tt*.97)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.345,tt*.97).close()),lt}),go.Shape.defineFigureGenerator("4Arrows",function(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 hi={},Cn="5.0",Ft={},Mt=null,ce=!1,re=!1,Ie=null,ee=!1,Vt=null,Nt=null,jt=0;jt<arguments.length;jt++){var te=arguments[jt];if(te!==null)switch(typeof te){case"number":Cn=te.toFixed(1);break;case"string":te.match(new RegExp("^[0-9]\\.[0-9]+$"))?Cn=te:Ie=te;break;case"object":typeof te.is3D!="undefined"?Mt=te:Ft=te;break;case"boolean":ce=te,re=!0;break}}Mt===null&&(Mt={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Ft.material_id!==void 0&&!re&&(ce=!0)),Ie!==null&&Ft.id===void 0&&(Ft.id=Ie);var Pt="",oe="",Kt=!1,$t=null,Ct=null,et=null,tt=!1,lt=null,rt=null,ht=null,dt=null,xt=null;Ft.height!==void 0&&(Ft.height=Math.round(Ft.height)),Ft.width!==void 0&&(Ft.width=Math.round(Ft.width));var It=function(Ze){return parseFloat(Ze)>4?parseFloat(Ze):5};hi.setHTML5Codebase=function(Ze,Mn){Nt=Ze,Ce(Ze,Mn)},hi.setJavaCodebase=hi.setJavaCodebaseVersion=hi.isCompiledInstalled=hi.setPreCompiledScriptPath=hi.setPreCompiledResourcePath=function(){},hi.setHTML5CodebaseVersion=function(Ze,Mn){var Vn=parseFloat(Ze);if(Vn!==NaN&&Vn<5){console.log("The GeoGebra HTML5 codebase version "+Vn+" is deprecated. Using version latest instead.");return}Vt=Ze,ne(Ze,Mn)},hi.getHTML5CodebaseVersion=function(){return Ct},hi.getParameters=function(){return Ft},hi.setFontsCSSURL=function(Ze){dt=Ze},hi.setGiacJSURL=function(Ze){},hi.setJNLPFile=function(Ze){Pt=Ze},hi.setJNLPBaseDir=function(Ze){},hi.inject=function(){function Ze(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Mn="auto",Vn=Ft.id,gi,Kn=!1,Bi=0;Bi<arguments.length;Bi++){var en=arguments[Bi];typeof en=="string"?(en=en.toLowerCase(),en.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Mn=en:Vn=arguments[Bi]):typeof en=="boolean"?Kn=en:en instanceof HTMLElement&&(gi=en)}Li();function Li(){if(!ee){setTimeout(Li,200);return}Mn=Re(Mn);var Oi=gi||document.getElementById(Vn);if(!Oi){console.log("possibly bug on ajax loading? ");return}if(hi.removeExistingApplet(Oi,!1),Ft.width===void 0&&Oi.clientWidth&&(Ft.width=Oi.clientWidth),Ft.height===void 0&&Oi.clientHeight&&(Ft.height=Oi.clientHeight),!(Ft.width&&Ft.height)&&Mn==="html5"&&(delete Ft.width,delete Ft.height),$t=Mn,Mn==="screenshot")Wt(Oi,Ft);else{var Lt=!1;Ft.hasOwnProperty("playButton")&&Ft.playButton||Ft.hasOwnProperty("clickToLoad")&&Ft.clickToLoad?Lt=!0:Ft.hasOwnProperty("playButtonAutoDecide")&&Ft.playButtonAutoDecide&&(Lt=(!Ut()||Ze())&&Gt()),Lt?($t="screenshot",_e(Oi,Ft,Kn,Mn)):ze(Oi,Ft,Kn)}}};function Ut(){try{return window.self!==window.top}catch(Ze){return!0}}function Gt(){return Ft.hasOwnProperty("screenshotGenerator")&&Ft.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}hi.getViews=function(){return Mt},hi.isJavaInstalled=function(){return!1};var se=function(Ze){var Mn=function(Bi){var en=JSON.parse(Bi),Li=function(Ot){return Ot.type=="G"||Ot.type=="E"},Oi=en.elements?en.elements.filter(Li)[0]:en;if(!Oi||!Oi.url){Vn();return}Ft.fileName=Oi.url,ue(Oi.settings||{}),Mt.is3D=!0;var Lt="https://www.geogebra.org/images/";hi.setPreviewImage(lt||Oi.previewUrl,Lt+"GeoGebra_loading.png",Lt+"applet_play.png"),Ze()},Vn=function(){Ft.onError&&Ft.onError(),bn("Error: Fetching material (id "+Ft.material_id+") failed.",Ft)},gi=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Kn="/materials/"+Ft.material_id+"?scope=basic";Ae("https://"+gi+"/api/proxy.php?path="+encodeURIComponent(Kn),Mn,Vn)};function ue(Ze){var Mn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Vn){Ze[Vn]=!!Ze[Vn]}),Mn.forEach(function(Vn){Ft[Vn]===void 0&&Ze[Vn]!==void 0&&(Ft[Vn]=Ze[Vn])}),Ft.showToolBarHelp===void 0&&(Ft.showToolBarHelp=Ft.showToolBar)}function Ae(Ze,Mn,Vn){var gi=new XMLHttpRequest;gi.open("GET",Ze),gi.onload=function(){Mn(gi.responseText)},gi.onerror=Vn,gi.send()}hi.isHTML5Installed=function(){return!0},hi.getLoadedAppletType=function(){return $t},hi.setPreviewImage=function(Ze,Mn,Vn){lt=Ze,rt=Mn,ht=Vn},hi.removeExistingApplet=function(Ze,Mn){var Vn;typeof Ze=="string"&&(Ze=document.getElementById(Ze)),$t=null;var gi=null;for(Vn=0;Vn<Ze.childNodes.length;Vn++){var Kn=Ze.childNodes[Vn],Bi=Kn.className;Bi==="applet_screenshot"?Mn?(Kn.style.display="block",$t="screenshot"):Kn.style.display="none":Bi!=="applet_scaler prerender"&&(Ze.removeChild(Kn),gi=Bi&&Bi.indexOf("appletParameters")!=-1?Kn.id:null,Vn--)}var en=Ft.id!==void 0?Ft.id:gi,Li=window[en];Li&&typeof Li.getBase64=="function"&&(Li.remove(),window[en]=null)},hi.refreshHitPoints=function(){if(It(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ze=hi.getAppletObject();return Ze&&typeof Ze.recalculateEnvironments=="function"?(Ze.recalculateEnvironments(),!0):!1},hi.startAnimation=function(){var Ze=hi.getAppletObject();return Ze&&typeof Ze.startAnimation=="function"?(Ze.startAnimation(),!0):!1},hi.stopAnimation=function(){var Ze=hi.getAppletObject();return Ze&&typeof Ze.stopAnimation=="function"?(Ze.stopAnimation(),!0):!1},hi.getAppletObject=function(){var Ze=Ft.id!==void 0?Ft.id:"ggbApplet";return window[Ze]},hi.resize=function(){};var Pe=function(Ze,Mn,Vn){var gi=document.createElement("param");gi.setAttribute("name",Mn),gi.setAttribute("value",Vn),Ze.appendChild(gi)},qt=function(Ze){return Ze&&Ze!=="false"},ze=function(Ze,Mn,Vn){It(Ct)<=4.2&&(Vn=!0);var gi=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ct||ggbHTML5LoadedCodebaseIsWebSimple&&!tt)&&(gi=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Kn=document.createElement("div");Kn.classList.add("appletParameters","notranslate");var Bi=Mn.width,en=Mn.height;if(Mn.disableAutoScale=Mn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Mn.disableAutoScale,Mn.width!==void 0)if(It(Ct)<=4.4)qt(Mn.showToolBar)&&(Mn.height-=7),qt(Mn.showAlgebraInput)&&(Mn.height-=37),Mn.width<605&&qt(Mn.showToolBar)&&(Mn.width=605,Bi=605);else{var Li=100;(qt(Mn.showToolBar)||qt(Mn.showMenuBar))&&(Mn.hasOwnProperty("customToolBar")&&(Mn.customToolbar=Mn.customToolBar),Li=qt(Mn.showMenuBar)?245:155),Bi<Li&&(Mn.width=Li,Bi=Li)}Kn.style.border="none",Kn.style.display="inline-block";for(var Oi in Mn)Mn.hasOwnProperty(Oi)&&Oi!=="appletOnLoad"&&Kn.setAttribute("data-param-"+Oi,Mn[Oi]);dt&&Kn.setAttribute("data-param-fontscssurl",dt),hi.resize=function(){GGBAppletUtils.responsiveResize(Ze,Mn)},window.addEventListener("resize",function(ke){hi.resize()});var Lt=typeof Mn.appletOnLoad=="function"?Mn.appletOnLoad:function(){};if(!Vn&&Mn.width!==void 0){Mn.hasOwnProperty("showSplash")||Kn.setAttribute("data-param-showSplash","false");var Ot=Ze.querySelector(".applet_scaler.prerender"),mt=Ot!==null;if(mt)var ft=Ot.querySelector(".ggb_preview");else{var ft=We(Bi,en,Mn.borderColor,!1);Ot=document.createElement("div"),Ot.className="applet_scaler",Ot.style.position="relative",Ot.style.display="block",Ot.style.width=Bi+"px",Ot.style.height=en+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ot,"66%"),It(Ct)>=5?(Mn.appletOnLoad=function(ke){var nn=Ze.querySelector(".ggb_preview");nn&&nn.parentNode.removeChild(nn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ot),window.GGBT_wsf_view&&$(window).trigger("resize"),Lt(ke)},mt||Ot.appendChild(ft)):Kn.appendChild(ft),Ot.appendChild(Kn),mt||Ze.appendChild(Ot),setTimeout(function(){hi.resize()},1)}else{var pt=document.createElement("div");pt.className="applet_scaler",pt.style.position="relative",pt.style.display="block",pt.appendChild(Kn),Ze.appendChild(pt),Mn.appletOnLoad=function(ke){hi.resize(),Lt(ke)}}function At(ke,nn){nn&&typeof nn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ke,nn.appletOnLoad):renderGGBElement(ke),bn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",nn)}function le(ke,nn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ke,params:nn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Wn){At(Wn.article,Wn.params)}),html5AppletsToProcess=null)},It(Ct)<5&&(ke.className+=" geogebraweb")):At(ke,nn)}if(gi){scriptLoadStarted=!0;for(var xe=0;xe<Kn.childNodes.length;xe++){var ae=Kn.childNodes[xe].tagName;ae==="TABLE"&&(Kn.removeChild(Kn.childNodes[xe]),xe--)}if(ggbHTML5LoadedScript!==null){var ve=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ve!=null&&ve.parentNode.removeChild(ve)}var Ue=document.createElement("script"),Te=function(){le(Kn,Mn)};Ue.src=oe+et,ggbHTML5LoadedCodebaseIsWebSimple=tt,ggbHTML5LoadedCodebaseVersion=Ct,ggbHTML5LoadedScript=Ue.src,bn("GeoGebra HTML5 codebase loaded: '"+oe+"'.",Mn),!Nt&&(!Vt||Vt=="5.0")?(tt?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Te()):oe.requirejs?__webpack_require__.e(4184).then(function(){var ke=[__webpack_require__(74620)];Te.apply(null,ke)}.bind(this)).catch(__webpack_require__.oe):(Ue.onload=Te,Ze.appendChild(Ue))}else le(Kn,Mn);Mn.height=en,Mn.width=Bi},Wt=function(Ze,Mn,Vn){var gi=We(Mn.width,Mn.height,Mn.borderColor,Vn),Kn=document.createElement("div");Kn.style.position="relative",Kn.style.display="block",Kn.style.width=Mn.width+"px",Kn.style.height=Mn.height+"px",Kn.className="applet_screenshot applet_scaler"+(Vn?" applet_screenshot_play":""),Kn.appendChild(gi);var Bi=GGBAppletUtils.getScale(Mn,Ze,Vn);Vn?(Ze.appendChild(Me()),window.GGBT_wsf_view||(Ze.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Kn,"66%"),Ze.appendChild(Kn),Bi!==1&&!isNaN(Bi)&&(GGBAppletUtils.scaleElement(Kn,Bi),Kn.style.width=Mn.width+"px",Kn.style.height=Mn.height+"px",Kn.parentNode.style.width=Mn.width*Bi+"px",Kn.parentNode.style.height=Mn.height*Bi+"px"),hi.resize=function(){Ge(Ze,gi,Kn,Vn)},window.addEventListener("resize",function(en){hi.resize()}),hi.resize()};function Ge(Ze,Mn,Vn,gi){if(Ze.contains(Mn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ze.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ze)}var Kn=GGBAppletUtils.getScale(Ft,Ze,gi);Vn.parentNode!==null&&(!isNaN(Kn)&&Kn!==1?(GGBAppletUtils.scaleElement(Vn,Kn),Vn.parentNode.style.width=Ft.width*Kn+"px",Vn.parentNode.style.height=Ft.height*Kn+"px"):(GGBAppletUtils.scaleElement(Vn,1),Vn.parentNode.style.width=Ft.width+"px",Vn.parentNode.style.height=Ft.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ze),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}hi.onExitFullscreen=function(Ze,Mn){Mn.appendChild(Ze)};var _e=function(Ze,Mn,Vn,gi){Wt(Ze,Mn,!0);for(var Kn=function(){var Li=[];for(en=0;en<Ze.childNodes.length;en++)Li.push(Ze.childNodes[en]);if(window.GGBT_wsf_view){var Oi=window.GGBT_wsf_view.renderFullScreen(Ze,Mn.id),Lt=document.getElementById("fullscreencontainer"),Ot=jQuery(Ze).find(".fullscreencontent");Ot.length>0?(Oi.remove(),Ot.attr("id","fullscreencontent").show(),jQuery(Lt).append(Ot),window.dispatchEvent(new Event("resize"))):ze(Oi,Mn,!1),window.GGBT_wsf_view.launchFullScreen(Lt)}else $t=gi,ze(Ze,Mn,!1);if(!window.GGBT_wsf_view)for(en=0;en<Li.length;en++)Ze.removeChild(Li[en])},Bi=Ze.getElementsByClassName("ggb_preview_play"),en=0;en<Bi.length;en++)Bi[en].addEventListener("click",Kn,!1),Bi[en].addEventListener("ontouchstart",Kn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ze),Gt()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Me=function(){var Ze=document.createElement("div");if(Ze.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");}',Vn=document.createElement("style");Vn.styleSheet?Vn.styleSheet.cssText=Mn:Vn.appendChild(document.createTextNode(Mn)),document.getElementsByTagName("head")[0].appendChild(Vn)}return Ze},We=function(Ze,Mn,Vn,gi){var Kn=document.createElement("div");Kn.className="ggb_preview",Kn.style.position="absolute",Kn.style.zIndex="90",Kn.style.width=Ze-2+"px",Kn.style.height=Mn-2+"px",Kn.style.top="0px",Kn.style.left="0px",Kn.style.overflow="hidden",Kn.style.backgroundColor="white";var Bi="lightgrey";Vn!==void 0&&(Vn==="none"?Bi="transparent":Bi=Vn),Kn.style.border="1px solid "+Bi;var en=document.createElement("img");if(en.style.position="relative",en.style.zIndex="1000",en.style.top="-1px",en.style.left="-1px",lt!==null&&en.setAttribute("src",lt),en.style.opacity=.7,rt!==null){var Li,Oi,Lt;if(!gi){Li=document.createElement("img"),Li.style.position="absolute",Li.style.zIndex="1001",Li.style.opacity=1,en.style.opacity=.3,Oi=360,Oi>Ze/4*3&&(Oi=Ze/4*3),Lt=Oi/5.8,Li.setAttribute("src",rt),Li.setAttribute("width",Oi),Li.setAttribute("height",Lt);var Ot=(Ze-Oi)/2,mt=(Mn-Lt)/2;Li.style.left=Ot+"px",Li.style.top=mt+"px",Kn.appendChild(Li)}}return Kn.appendChild(en),Kn},Re=function(Ze){return Ze=Ze.toLowerCase(),Ze==="html5"||Ze==="screenshot"?Ze:"html5"},ye=["web","webSimple","web3d","tablet","tablet3d","phone"],ne=function(Ze,Mn){if(Ct=Ze,Mn){Ce(Ct,!0);return}var Vn=!ce;if(Vn){var gi=It(Ct);!isNaN(gi)&&gi<4.4&&(Vn=!1)}var Kn,Bi;window.location.protocol.substr(0,4)==="http"?Kn=window.location.protocol:Kn="http:";var en=Ct.indexOf("//");en>0?Bi=Ct:en===0?Bi=Kn+Ct:Bi="https://www.geogebra.org/apps/5.2.814.0/";for(var Li in ye)if(Ct.slice(ye[Li].length*-1)===ye[Li]||Ct.slice((ye[Li].length+1)*-1)===ye[Li]+"/"){Ce(Bi,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Vn&&!Mt.is3D&&!Mt.AV&&!Mt.SV&&!Mt.CV&&!Mt.EV2&&!Mt.CP&&!Mt.PC&&!Mt.DA&&!Mt.FI&&!Mt.PV&&!qt(Ft.showToolBar)&&!qt(Ft.showMenuBar)&&!qt(Ft.showAlgebraInput)&&!qt(Ft.enableRightClick)&&(!Ft.appName||Ft.appName=="classic")?Bi+="webSimple/":Bi+="web3d/",Ce(Bi,!1)},Ce=function(Ze,Mn){if(Ze.requirejs){oe=Ze;return}Ze.slice(-1)!=="/"&&(Ze+="/"),oe=Ze,Mn===null&&(Mn=Ze.indexOf("http")===-1),Kt=Mn,et="web.nocache.js",tt=!1;var Vn=oe.split("/");Vn.length>1&&(!Mn&&Vn[Vn.length-2]==="webSimple"?(et="webSimple.nocache.js",tt=!0):ye.indexOf(Vn[Vn.length-2])>=0&&(et=Vn[Vn.length-2]+".nocache.js")),Vn=Ze.split("/"),Ct=Vn[Vn.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 gi=parseFloat(Ct);gi!==NaN&&gi<5&&Ze.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+gi+" is deprecated. Using version latest instead."),ne("5.0",Mn))},bn=function(Ze,Mn){window.console&&window.console.log&&(!Mn||typeof Mn.showLogging=="undefined"||Mn.showLogging&&Mn.showLogging!=="false")&&console.log(Ze)};Ft.material_id!==void 0?se(Ln):Ln();function Ln(){var Ze=Cn;Vt!==null?Ze=Vt:parseFloat(Ze)<5&&(Ze="5.0"),ne(Ze,!1),Nt!==null&&Ce(Nt,Kt),ee=!0}return hi},GGBAppletUtils=function(){"use strict";function hi(){return window.GGBT_wsf_edit!==void 0}function Cn(ee,Vt){Vt!=1?(ee.style.transformOrigin="0% 0% 0px",ee.style.webkitTransformOrigin="0% 0% 0px",ee.style.transform="scale("+Vt+","+Vt+")",ee.style.webkitTransform="scale("+Vt+","+Vt+")",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 Ft(ee,Vt,Nt,jt,te,Pt){var oe=null;if(Pt!=null&&Pt!="")for(var Kt=ee.parentNode;Kt!=null;)if((" "+Kt.className+" ").indexOf(" "+Pt+" ")>-1){oe=Kt;break}else Kt=Kt.parentNode;var $t=0,Ct=0,et=0,tt=0,lt=0,rt=0,ht=0;if(oe)$t=oe.offsetWidth,Ct=Math.max(jt?oe.offsetWidth:0,oe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?($t=Math.min(window.innerWidth,document.documentElement.clientWidth),Ct=Math.min(window.innerHeight,document.documentElement.clientHeight),et=$t):($t=window.innerWidth,Ct=window.innerHeight,et=window.innerWidth),ee){var dt=ee.getBoundingClientRect();dt.left>0&&dt.left<=$t&&(te===void 0||!te)&&(document.dir==="rtl"?(lt=$t-dt.width-dt.left,rt=et<=480?10:30):(rt=dt.left,lt=et<=480?10:30),tt=rt+lt)}if(ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var xt=ee.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(tt=40,ht=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(tt=0,ht=40)}}return ee&&((Nt===void 0||!Nt)&&Vt>0&&Vt+tt<$t?$t=Vt:$t-=tt,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Nt===void 0||!Nt)&&(Ct-=ht)),{width:$t,height:Ct}}function Mt(ee,Vt,Nt,jt,te){if(ee.isScreenshoGenerator)return 1;var Pt=jt!==void 0&&jt,oe=ee.noScaleMargin!=null&&ee.noScaleMargin,Kt=function(xt){return xt&&xt!=="false"},$t=Kt(ee.autoHeight),Ct=Ft(Vt,ee.width,Nt,$t,Pt&&window.GGBT_wsf_view||oe,te),et=parseInt(Ct.width),tt=ee.width,lt=ee.height;if(tt===void 0){var rt=Vt.querySelector(".appletParameters");rt&&(tt=rt.offsetWidth,lt=rt.offsetHeight)}var ht=et/tt,dt=Pt?1:Ct.height/lt;return Nt!==void 0&&!Nt&&(ht=Math.min(1,ht),dt=Math.min(1,dt)),Math.min(ht,dt)}function ce(ee,Vt,Nt){var jt=1,te,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)),Vt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Pt=!0),!(ee.hasOwnProperty("disableAutoScale")&&ee.disableAutoScale))te=Mt(ee,Vt,Pt,Nt,ee.scaleContainerClass);else return jt;return Pt&&(!ee.hasOwnProperty("scale")||jt===1)?te:Math.min(jt,te)}function re(ee){var Vt=Math.min(window.innerWidth,document.documentElement.clientWidth),Nt=Math.min(window.innerHeight,document.documentElement.clientHeight),jt=ee.getBoundingClientRect(),te=(Vt-jt.width)/2,Pt=(Nt-jt.height)/2;Pt<0&&(Pt=0),ee.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(te<40?ee.style.left="40px":ee.style.left=te+"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=te+"px")}function Ie(ee,Vt){var Nt=ee.querySelector(".appletParameters");if(Nt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Vt.id!==Nt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ee)}if(Nt.parentElement&&/fullscreen/.test(Nt.parentElement.className))return;var jt=ce(Vt,ee);hi()&&Nt.setAttribute("data-param-scale",jt);for(var te=null,Pt=0;Pt<ee.childNodes.length;Pt++)if(ee.childNodes[Pt].className!==void 0&&ee.childNodes[Pt].className.match(/^applet_scaler/)){te=ee.childNodes[Pt];break}if(te!==null&&te.querySelector(".noscale")!==null)return;var oe=Vt.id!==void 0?Vt.id:"ggbApplet",Kt=window[oe];(Kt==null||!Kt.recalculateEnvironments)&&te!==null&&!te.className.match(/fullscreen/)&&(te.parentNode.style.transform="",!isNaN(jt)&&jt!==1?(te.parentNode.style.width=Vt.width*jt+"px",te.parentNode.style.height=Vt.height*jt+"px",Cn(te,jt)):(Cn(te,1),te.parentNode.style.width=Vt.width+"px",te.parentNode.style.height=Vt.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($(Nt).parents(".content-added-content"))}}return{responsiveResize:Ie,isFlexibleWorksheetEditor:hi,positionCenter:re,getScale:ce,scaleElement:Cn}}();__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 hi=n.location.search;return hi.indexOf(J)!=-1||hi.indexOf(K)!=-1}function q(hi,Cn){}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(hi){var Cn=s[L].bindings;s[L].bindings=function(){for(var Ft=Cn?Cn():{},Mt=hi[webModule.__softPermutationId],ce=O;ce<Mt.length;ce++){var re=Mt[ce];Ft[re[O]]=re[P]}return Ft}};var t;function u(){return v(),t}function v(){if(!t){var hi=o.createElement(Q);if(hi.id=L,hi.style.cssText=R+S,hi.tabIndex=-1,o.body.appendChild(hi),t=hi.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Cn=document.compatMode==U?V:W;t.write(Cn+X),t.close()}}}function w(hi){function Cn(Mt){function ce(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var re=ce();if(re){Mt();return}function Ie(){if(!re){if(!ce())return;re=!0,Mt(),o.removeEventListener&&o.removeEventListener(Z,Ie,!1),ee&&clearInterval(ee)}}o.addEventListener&&o.addEventListener(Z,Ie,!1);var ee=setInterval(function(){Ie()},$)}function Ft(Mt){var ce=u(),re=ce.body,Ie=ce.createElement(_);Ie.language=ab,Ie.crossOrigin=W,Ie.src=Mt,webModule.__errFn&&(Ie.onerror=function(){webModule.__errFn(L,new Error(bb+Mt))}),re.appendChild(Ie)}Cn(function(){Ft(hi)})}webModule.__startLoadingFragment=function(hi){return C(hi)},webModule.__installRunAsyncCode=function(hi){var Cn=u(),Ft=Cn.body,Mt=Cn.createElement(_);Mt.language=ab,Mt.text=hi,Ft.appendChild(Mt),Ft.removeChild(Mt)};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(hi){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(hi){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(hi){var Cn=c[hi];return Cn==null?null:Cn},r=d,webModule.__errFn=e}function B(){function hi(ee){var Vt=ee.lastIndexOf(rb);Vt==-1&&(Vt=ee.length);var Nt=ee.indexOf(sb);Nt==-1&&(Nt=ee.length);var jt=ee.lastIndexOf(tb,Math.min(Nt,Vt));return jt>=O?ee.substring(O,jt+P):W}function Cn(ee){if(!ee.match(/^\w+:\/\//)){var Vt=o.createElement(ub);Vt.src=ee+vb,ee=hi(Vt.src)}return ee}function Ft(){var ee=__gwt_getMetaProperty(wb);return ee!=null?ee:W}function Mt(){for(var ee=o.getElementsByTagName(_),Vt=O;Vt<ee.length;++Vt)if(ee[Vt].src.indexOf(xb)!=-1)return hi(ee[Vt].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 Ie=Ft();return Ie==W&&(Ie=Mt()),Ie==W&&(Ie=ce()),Ie==W&&re()&&(Ie=hi(o.location.href)),Ie=Cn(Ie),Ie}function C(hi){return hi.match(/^\//)||hi.match(/^[a-zA-Z]+:\/\//)?hi:webModule.__moduleBase+hi}function D(){var hi=[],Cn=O,Ft=[],Mt=[];function ce(ee){var Vt=Mt[ee](),Nt=Ft[ee];if(Vt in Nt)return Vt;var jt=[];for(var te in Nt)jt[Nt[te]]=te;throw r&&r(ee,jt,Vt),null}if(__gwt_isKnownPropertyValue=function(ee,Vt){return Vt in Ft[ee]},webModule.__getPropMap=function(){var ee={};for(var Vt in Ft)Ft.hasOwnProperty(Vt)&&(ee[Vt]=ce(Vt));return ee},webModule.__computePropValue=ce,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var re;try{re=Cb;var Ie=re.indexOf(Db);Ie!=-1&&(Cn=parseInt(re.substring(Ie+P),$),re=re.substring(O,Ie))}catch(ee){}return webModule.__softPermutationId=Cn,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(hi,Cn,Ft){"use strict";Ft.d(Cn,{Ax:function(){return Ie},Ds:function(){return ee},KI:function(){return Nt},SI:function(){return re},f1:function(){return ce}});var Mt=Ft(3294);function ce(jt){let te=!0;if(jt.length>0){for(let Pt=0;Pt<jt.length;Pt++)if(jt[Pt].compile_success==0||!jt[Pt].compile_success){te=!1;break}}else te=!1;return te}function re(jt,te=""){let Pt=[];for(let oe=0;oe<jt.length;oe++){let Kt=jt[oe],$t=te?`${te}/${Kt.name}`:`${Kt.name}`;Pt.push({title:Kt.name,type:Kt.type,isLeaf:Kt.type!=="tree",key:$t})}return Pt}function Ie(jt,te,Pt){for(let oe=0;oe<jt.length;oe++){let Kt=jt[oe];if(Kt.key===te){Kt.children=Pt;break}Kt.children&&Ie(Kt.children,te,Pt)}return jt}function ee(jt,te,Pt){let oe;return function(){let Kt=this,$t=arguments,Ct=function(){oe=null,Pt||jt.apply(Kt,$t)},et=Pt&&!oe;clearTimeout(oe),oe=setTimeout(Ct,te),et&&jt.apply(Kt,$t)}}const Vt=!0,Nt=Mt.Z.API_SERVER},41069:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{ij:function(){return ht},_s:function(){return rt},Uf:function(){return lt},ZP:function(){return xt}});var Mt=Ft(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=Ft(92310),Ie=Ft.n(re),ee=Ft(42441),Vt=Ft(6848),Nt=Ft(61621),jt=Ft(71418),te=Ft(8797),Pt=Ft(3294),oe=Object.defineProperty,Kt=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,et=(It,Ut,Gt)=>Ut in It?oe(It,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):It[Ut]=Gt,tt=(It,Ut)=>{for(var Gt in Ut||(Ut={}))$t.call(Ut,Gt)&&et(It,Gt,Ut[Gt]);if(Kt)for(var Gt of Kt(Ut))Ct.call(Ut,Gt)&&et(It,Gt,Ut[Gt]);return It};const lt=(It={})=>{var Ut,Gt,se,ue;let Ae=(Ut=It==null?void 0:It.emotion)==null?void 0:Ut.map(Wt=>tt({value:Wt==null?void 0:Wt.rate},Wt)),Pe=(Gt=It==null?void 0:It.focus)==null?void 0:Gt.map(Wt=>tt({value:Wt==null?void 0:Wt.rate},Wt)),qt=(se=It==null?void 0:It.action)==null?void 0:se.map(Wt=>tt({value:Wt==null?void 0:Wt.rate},Wt)),ze=(ue=It==null?void 0:It.intention)==null?void 0:ue.map(Wt=>tt({value:Wt==null?void 0:Wt.rate},Wt));return[{title:"\u8868\u60C5\u5360\u6BD4",color:["#f7ca2e","#4ccf71","#3791ee","#f9ac95","#4f74ee","#f0e999"],data:Ae||[]},{title:"\u4E13\u6CE8\u5EA6\u5360\u6BD4",color:["#4f74ee","#f9ac95","#9cb5fe","#eaa170","#3791ee","#a39bed"],data:Pe||[]},{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:It,dataSource:Ut=[],col:Gt=4,right:se,bottom:ue=23,precision:Ae=0,wrapWidth:Pe=1200})=>{const qt=(Wt="",Ge,_e="--")=>Wt?(Wt==null?void 0:Wt.length)>Ge?(Wt==null?void 0:Wt.slice(0,Ge-1))+"...":Wt:_e,ze=Math.floor((Pe-(Gt-1)*se)/Gt);return Mt.createElement("div",{className:Ie()(ce.list,It)},!!(Ut!=null&&Ut.length)&&(Ut==null?void 0:Ut.map((Wt,Ge)=>{const{cover_pic:_e,created_at:Me,emotion:We,action:Re,intention:ye,focus:ne}=Wt;return Mt.createElement("div",{key:Ge,className:ce.wrap,style:{width:ze,marginRight:(1+Ge)%Gt===0?0:se+Ae,marginBottom:ue}},Mt.createElement("div",{className:ce.img},Mt.createElement("img",{src:`${Pt.Z.API_SERVER}${_e}`}),Mt.createElement("div",{className:ce.tips},Mt.createElement("div",null,Mt.createElement("i",{className:"iconfont icon-paisheshijian mr5 font14"})," \u62CD\u6444\u65F6\u95F4"),Mt.createElement("span",null,Me))),Mt.createElement("div",{className:ce.footer},Mt.createElement("ul",null,Mt.createElement("li",null,Mt.createElement("i",{className:"iconfont icon-biaoqing"}),Mt.createElement("span",null,"\u8868\u60C5\uFF1A",Mt.createElement(Vt.Z,{title:We},Mt.createElement("span",{className:"c-grey-333"},qt(We,4))))),Mt.createElement("li",null,Mt.createElement("i",{className:"iconfont icon-hangwei"}),Mt.createElement("span",null,"\u884C\u4E3A\uFF1A",Mt.createElement(Vt.Z,{title:Re},Mt.createElement("span",{className:"c-grey-333"},qt(Re,4)))))),Mt.createElement("ul",null,Mt.createElement("li",null,Mt.createElement("i",{className:"iconfont icon-yitu"}),Mt.createElement("span",null,"\u610F\u56FE\uFF1A",Mt.createElement(Vt.Z,{title:ye},Mt.createElement("span",{className:"c-grey-333"},qt(ye,4))))),Mt.createElement("li",null,Mt.createElement("i",{className:"iconfont icon-zhuangtai"}),Mt.createElement("span",null,"\u4E13\u6CE8\u5EA6\uFF1A",Mt.createElement(Vt.Z,{title:ne},Mt.createElement("span",{className:"c-grey-333"},qt(ne,3))))))))})))},ht=({className:It,style:Ut,title:Gt,hideBar:se=!1,children:ue,customText:Ae="",noDataText:Pe="",emptyData:qt=[],loading:ze,actionAnalysis:Wt})=>{var Ge,_e;const Me=((Ge=qt==null?void 0:qt[0])==null?void 0:Ge.every(Re=>{var ye;return!((ye=Re==null?void 0:Re.data)!=null&&ye.length)}))&&!((_e=qt==null?void 0:qt[1])!=null&&_e.length)||!Wt,We=Wt?Pe:Ae;return Mt.createElement(Nt.Z,{loading:ze,active:!0},Me&&Mt.createElement("div",{className:Ie()(ce.noData,It),style:Ut},!!Gt&&Mt.createElement("div",{className:ce.title},!se&&Mt.createElement("b",null),Mt.createElement("span",null,Gt)),Mt.createElement("div",{className:ce.itemWrap},Mt.createElement(te.Z,{customText:We}))),!Me&&ue)};var xt=({className:It,style:Ut,data:Gt=[],title:se,hideBar:ue=!1,loading:Ae=!1})=>Mt.createElement("div",{className:Ie()(ce.analysis,It),style:Ut},!!se&&Mt.createElement("div",{className:ce.title},!ue&&Mt.createElement("b",null),Mt.createElement("span",null,se)),Mt.createElement(jt.Z,{spinning:Ae},Mt.createElement("div",{className:ce.itemWrap},Gt==null?void 0:Gt.map((Pe,qt)=>Mt.createElement("div",{className:ce.item,key:qt},Mt.createElement(ee.Z,{option:{tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c}%"},title:{left:"center",bottom:15,text:Pe==null?void 0:Pe.title},legend:{top:10,right:10,orient:"vertical",show:!0,align:"left",icon:"circle",itemWidth:10,itemHeight:10,formatter:function(ze){for(let Wt in Pe==null?void 0:Pe.data)if(ze==(Pe==null?void 0:Pe.data[Wt].name))return ze+" "+(Pe==null?void 0:Pe.data[Wt].value)+"%"},textStyle:{color:"#767676",fontSize:12}},color:Pe==null?void 0:Pe.color,series:[{type:"pie",radius:["20%","35%"],center:["20%","40%"],avoidLabelOverlap:!1,label:{show:!1},labelLine:{show:!1},data:Pe==null?void 0:Pe.data}]},style:{height:145}}))))))},73524:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return oe}});var Mt=Ft(59301),ce={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},re=Ft(92310),Ie=Ft.n(re),ee=Ft(71418),Vt=Ft(2859),Nt=Ft(99064),jt=Ft(955),te=(Kt,$t,Ct)=>new Promise((et,tt)=>{var lt=dt=>{try{ht(Ct.next(dt))}catch(xt){tt(xt)}},rt=dt=>{try{ht(Ct.throw(dt))}catch(xt){tt(xt)}},ht=dt=>dt.done?et(dt.value):Promise.resolve(dt.value).then(lt,rt);ht((Ct=Ct.apply(Kt,$t)).next())}),oe=({data:Kt,className:$t,fullWidth:Ct,style:et={},onClose:tt,onOk:lt,showFullTools:rt,noAssociationId:ht})=>{const dt=(0,Mt.useRef)(null),xt=(0,Mt.useRef)(null),It=(0,Mt.useRef)(null),Ut=(0,Mt.useRef)(null),[Gt,se]=(0,Mt.useState)(!1),[ue,Ae]=(0,Mt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Mt.useEffect)(()=>(It.current||(It.current=document.createElement("style"),document.head.appendChild(It.current)),Kt!=null&&Kt.visible?(document.body.setAttribute("data-custom","y-hidden"),It.current.innerHTML=" html { overflow-y: hidden; }",Kt!=null&&Kt.src&&Pe()):(document.body.removeAttribute("data-custom"),It.current&&(document.head.removeChild(It.current),It.current=null)),()=>{document.body.removeAttribute("data-custom"),It.current&&(document.head.removeChild(It.current),It.current=null)}),[Kt==null?void 0:Kt.visible]);const Pe=()=>te(void 0,null,function*(){se(!0),Ae("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ge=yield(0,jt.ZJ)(Kt==null?void 0:Kt.src);dt.current.src="",dt.current.src=Ge,dt.current.onload=function(){Wt()},se(!1),Ae("")}),qt=Ge=>te(void 0,null,function*(){se(!0),Ae("\u6B63\u5728\u4FDD\u5B58\u4E2D");const _e=yield(0,Nt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Kt.title,file:Ge.dataUrl}});_e!=null&&_e.id&&!ht?(yield(0,Nt.ZP)(`/api/attachments/${Kt.id}/add_subitem.json`,{method:"post",body:{subitem_id:_e==null?void 0:_e.id,settings:JSON.stringify(Ge.state)}})).status===0&<():_e!=null&&_e.id&<(_e),se(!1),Ae("")}),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(Me=>{const We=document.querySelector(Me.name);We&&We.setAttribute("title",Me.title)})},Wt=()=>{xt.current=new Vt.hP(dt.current),xt.current.targetRoot=Ut.current,xt.current.addEventListener("render",qt),xt.current.addEventListener("beforeclose",tt),rt&&(xt.current.availableMarkerTypes=xt.current.ALL_MARKER_TYPES,xt.current.uiStyleSettings.redoButtonVisible=!0,xt.current.uiStyleSettings.notesButtonVisible=!0,xt.current.uiStyleSettings.zoomButtonVisible=!0,xt.current.uiStyleSettings.zoomOutButtonVisible=!0,xt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=xt.current.uiStyleSettings,xt.current.show(),Kt!=null&&Kt.snapshotData&&xt.current.restoreState(Kt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ze()},300)};return Mt.createElement(Mt.Fragment,null,(Kt==null?void 0:Kt.visible)&&Mt.createElement(ee.Z,{spinning:Gt,tip:ue,style:{position:"absolute",width:"100vw"}},Mt.createElement("div",{ref:Ut,className:Ie()(ce.imageDimensions,$t,Ct?ce.fullWidth:""),style:et},Mt.createElement("img",{className:ce.img,ref:dt}))))}},41588:function(hi,Cn,Ft){"use strict";var Mt=Ft(59301),ce=Ft(95237),re=Ft(43604),Ie=Ft(99313),ee=Ft(3113),Vt=Ft(85149),Nt=Ft(88010),jt=Ft(48136),te=Ft(59301);const Pt=(0,Mt.forwardRef)(({callback:oe,showSaveButton:Kt,value:$t=""},Ct)=>{const et=(0,Mt.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=xt=>{et.current.setValue(et.current.getValue()+" "+xt.value+" ")},ht=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:te.createElement(ce.Z,{className:Nt.Z.lists,gutter:[10,10]},tt.map((xt,It)=>te.createElement(re.Z,{flex:"110px",className:Nt.Z.item},te.createElement("div",null,te.createElement(Vt.Z,{value:`$$${xt.value}$$`}),xt.name),te.createElement("div",{className:Nt.Z.children},xt.children.map((Ut,Gt)=>te.createElement("div",{key:Gt},te.createElement("h1",null,Ut.name),te.createElement(ce.Z,{gutter:[10,10]},Ut.data.map((se,ue)=>te.createElement(re.Z,{key:ue,onClick:()=>rt(se),className:Nt.Z.diamond},te.createElement(Vt.Z,{value:"`$$"+se.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:te.createElement(ce.Z,{className:Nt.Z.lists,gutter:[10,10]},lt.map((xt,It)=>te.createElement(re.Z,{flex:"110px",className:Nt.Z.item},te.createElement("div",null,te.createElement(Vt.Z,{value:"`$$"+xt.value+"$$`"}),xt.name),te.createElement("div",{className:Nt.Z.children},xt.children.map((Ut,Gt)=>te.createElement("div",{key:Gt},Ut.name&&te.createElement("h1",null,Ut.name),te.createElement(ce.Z,{gutter:[10,10]},Ut.data.map((se,ue)=>te.createElement(re.Z,{key:ue,onClick:()=>rt(se),className:Nt.Z.diamond},te.createElement(Vt.Z,{value:"`$$"+se.value+"$$`"}))))))))))}],dt=()=>{var xt=document.createElement("div");xt.innerHTML=et.current.getValue();var It=xt.innerText;return oe&&oe(It),It};return(0,Mt.useImperativeHandle)(Ct,()=>({getData:dt})),te.createElement("div",{className:Nt.Z.mathWrap},te.createElement(Ie.default,{defaultActiveKey:"1",items:ht}),te.createElement("math-field",{locale:"zh_cn",className:Nt.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:et,style:{width:800,marginTop:30,fontSize:18}},$t||""),Kt&&te.createElement("div",{className:Nt.Z.button},te.createElement(ee.ZP,{size:"large",onClick:dt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Cn.Z=Pt},8797:function(hi,Cn,Ft){"use strict";var Mt=Ft(59301),ce=Ft(93314),re=Ft(3113),Ie=Object.defineProperty,ee=Object.defineProperties,Vt=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,Pt=(Ct,et,tt)=>et in Ct?Ie(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(Nt)for(var tt of Nt(et))te.call(et,tt)&&Pt(Ct,tt,et[tt]);return Ct},Kt=(Ct,et)=>ee(Ct,Vt(et));const $t=({img:Ct,buttonProps:et={},styles:tt={},customText:lt,ButtonText:rt,ButtonClick:ht,Buttonclass:dt,ButtonTwo:xt,imgStyles:It,loading:Ut=!1})=>Mt.createElement("section",{className:"tc animated fadeIn",style:oe(oe({},{color:"#999",margin:"100px auto",visibility:Ut?"hidden":"visible"}),tt)},Mt.createElement("img",{src:Ct||ce,style:Kt(oe({},It),{pointerEvents:"none",userSelect:"none"})}),Mt.createElement("p",{className:"mt20 font14"},lt||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),rt&&Mt.createElement(re.ZP,oe({className:dt,onClick:ht},et),rt),xt&&xt);Cn.Z=$t},23210:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return dt}});var Mt=Ft(59301),ce={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},re=Ft(3113),Ie=Ft(70557),ee=Ft(23954),Vt=Ft(6848),Nt=Ft(955),jt=Ft(94941),te=Ft(8797),Pt=Ft(3294),oe=Ft(19381),Kt=Ft(59301),$t=Object.defineProperty,Ct=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,lt=(xt,It,Ut)=>It in xt?$t(xt,It,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):xt[It]=Ut,rt=(xt,It)=>{for(var Ut in It||(It={}))et.call(It,Ut)&<(xt,Ut,It[Ut]);if(Ct)for(var Ut of Ct(It))tt.call(It,Ut)&<(xt,Ut,It[Ut]);return xt},ht=(xt,It,Ut)=>new Promise((Gt,se)=>{var ue=qt=>{try{Pe(Ut.next(qt))}catch(ze){se(ze)}},Ae=qt=>{try{Pe(Ut.throw(qt))}catch(ze){se(ze)}},Pe=qt=>qt.done?Gt(qt.value):Promise.resolve(qt.value).then(ue,Ae);Pe((Ut=Ut.apply(xt,It)).next())}),dt=({editOffice:xt="view",data:It,theme:Ut,type:Gt,filename:se,monacoEditor:ue,className:Ae,style:Pe,close:qt,onClose:ze,hasMask:Wt,disabledDownload:Ge,onImgDimensions:_e,showNodata:Me,recordInfo:We})=>{const[Re,ye]=(0,Mt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[ne,Ce]=(0,Mt.useState)(""),[bn,Ln]=(0,Mt.useState)(),Ze=window.ENV==="build"?"/react/build":"",Mn=location.host.startsWith("localhost")?Pt.Z.PROXY_SERVER:Pt.Z.API_SERVER,gi=10*(1024*1024),Kn=(0,Mt.useRef)();It!=null&&It.startsWith("/api")&&Gt!=="txt"&&(It=Pt.Z.API_SERVER+It);const Bi=Lt=>Lt.substring(Lt.lastIndexOf("/")+1).split(".").pop();se&&ue&&(ue.filename=se),(0,Mt.useEffect)(()=>{var Lt,Ot;const mt=(Ot=(Lt=document.cookie)==null?void 0:Lt.replace(/\s/g,""))==null?void 0:Ot.split(";");mt==null||mt.map(ft=>{let pt=ft.split("=");pt[0]==="_educoder_session"&&Ce(pt[1])})},[]),(0,Mt.useEffect)(()=>{Gt==="office"&&(It.indexOf("bigfilescdn.")>-1||It.indexOf("bigfiles1")>-1?Ln({url:It,fileType:Bi(It),model:It.indexOf("model=edit")?"edit":"view"}):en())},[Gt,It]);const en=()=>ht(void 0,null,function*(){console.log("data:",It);let Lt=It;It.startsWith("http")||(Lt=location.origin+Lt);let Ot=new URL(Lt).pathname.split("/").pop();const mt=yield(0,jt.gJ)({attachment_id:Ot});mt.url=Mn+mt.url,Ln(mt)}),Li=()=>{if(It.startsWith("http")||It.startsWith("blob:")){Oi();return}(0,Nt.Sv)(se||"educoder",It,se)},Oi=()=>{We&&(0,oe.fc)({id:We==null?void 0:We.id,watch_type:1,course_id:We==null?void 0:We.course_id}),(0,Nt.Nd)(se||"educoder",decodeURIComponent(It))};return Kt.createElement("div",{style:rt({},Pe||{}),className:`${Wt&&ce.bgBlack} ${Gt?ce.wrp:"hide"}`},qt&&Kt.createElement("div",{className:ce.close,ref:Kn},!!_e&&Kt.createElement(Vt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Kn.current},Kt.createElement("span",{onClick:()=>{ze(),_e()}},Kt.createElement("i",{className:"icon-yulanpizhu"}))),!Ge&&Kt.createElement(Vt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Kn.current},Kt.createElement("span",{onClick:Oi},Kt.createElement("i",{className:"icon-quxiaozhiding"}))),Kt.createElement(Vt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Kn.current},Kt.createElement("span",{className:"",onClick:ze},Kt.createElement("i",{className:"icon-guanbi1"})))),Kt.createElement("div",{className:`${ce[Ae]} ${Ae} ${ce.monaco} ${Gt==="txt"?"show":"hide"}`},Gt==="txt"&&Kt.createElement(Kt.Fragment,null,Kt.createElement(ee.ZP,rt({},ue)))),Gt==="audio"&&Kt.createElement("audio",{src:`${(It==null?void 0:It.indexOf("http://"))>-1||(It==null?void 0:It.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${It}`,autoPlay:!0}),Gt==="video"&&Kt.createElement(Kt.Fragment,null,(It==null?void 0:It.indexOf("http"))>-1?Kt.createElement("video",{controls:!0,src:`${It}`,autoPlay:!0}):Kt.createElement("video",{controls:!0,src:`data:video/mp4;base64,${It}`,autoPlay:!0})),Gt==="office"&&bn&&Kt.createElement("iframe",{src:`${Ze}/office.html?key=${bn.key}&url=${btoa(bn.url)}&callbackUrl=${Mn+(bn.callbackUrl||"")}&fileType=${bn.fileType}&title=${bn.title||""}&model=${xt}&officeServer=${Pt.Z.ONLYOFFICE}&disabledDownload=${!!Ge}`}),Gt==="html"&&Kt.createElement("iframe",{src:It+"&disposition=inline"}),Gt==="pdf"&&Kt.createElement("iframe",{src:`${Ze}/js/pdfview/index.html?filename=${se||"educoder.pdf"}&url=${encodeURIComponent(It)}&disabledDownload=${!!Ge}`}),Gt==="image"&&Kt.createElement("img",{src:`${(It==null?void 0:It.indexOf("http://"))>-1||(It==null?void 0:It.indexOf("https://"))>-1?"":"data:image/png;base64,"}${It}`}),(Gt==="other"||Gt==="download")&&Kt.createElement(Kt.Fragment,null,Me?Kt.createElement(te.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Kt.createElement(re.ZP,{icon:Kt.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Li,disabled:Ge},"\u4E0B\u8F7D")}):Kt.createElement(re.ZP,{type:"primary",size:"middle",onClick:Li,disabled:Ge},Kt.createElement(Ie.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{z:function(){return Gt},Z:function(){return se}});var Mt=Ft(59301),ce=Ft(50304),re=Ft(24768),Ie=Ft(64018),ee=Ft(40846),Vt=Ft(3294),Nt=Ft(955),jt=Ft(15342),te=Ft(1012),Pt=Ft(23210),oe=Ft(59301),$t=({html:ue})=>{const Ae=(0,Mt.useRef)(null),Pe=(0,Mt.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,Mt.useEffect)(()=>{const ze=Ae.current.attachShadow({mode:"open"});Pe.current=document.createElement("div"),Pe.current.className="markdown-body",Pe.current.innerHTML=ue,ze.appendChild(Pe.current);const Wt=document.createElement("style");return Wt.textContent=qt,ze.appendChild(Wt),()=>{ze.innerHTML=""}},[]),(0,Mt.useEffect)(()=>{Pe.current&&(Pe.current.innerHTML=ue)},[ue]),oe.createElement("div",{ref:Ae})},Ct=Object.defineProperty,et=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,rt=(ue,Ae,Pe)=>Ae in ue?Ct(ue,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ue[Ae]=Pe,ht=(ue,Ae)=>{for(var Pe in Ae||(Ae={}))tt.call(Ae,Pe)&&rt(ue,Pe,Ae[Pe]);if(et)for(var Pe of et(Ae))lt.call(Ae,Pe)&&rt(ue,Pe,Ae[Pe]);return ue};const dt="@\u2581\u2581@",xt="@\u2581@",It=/<pre[^>]*>/g;function Ut(ue){let Ae=document.createElement("div");return Ae.innerHTML=ue,Ae.childNodes.length===0?"":Ae.childNodes[0].nodeValue}const Gt=(ue,Ae)=>{ue=ue||"";const Pe=/(?: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,Wt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ae?ue.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Pe,(Ge,_e,Me,We,Re,ye,ne)=>{const Ce=_e||We||ye,bn=Me||Re||ne||"?";return Vt.Z.API_SERVER+"/api/attachments/"+Ce+bn+"&t="+(0,Nt.Jn)(Ce,Date.now())+(Ge.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ue=ue.replace(Wt,(Ge,_e,Me,We,Re,ye,ne)=>{const Ce=_e||We||ye,bn=Me||Re||ne||"?";return Vt.Z.API_SERVER+"/attachments/download/"+Ce+bn+"&t="+(0,Nt.Jn)(Ce,Date.now())+(Ge.indexOf(")")>-1?")":"&")}).replace(Pe,(Ge,_e,Me,We,Re,ye,ne)=>{const Ce=_e||We||ye,bn=Me||Re||ne||"?";return Vt.Z.API_SERVER+"/api/attachments/"+Ce+bn+"&t="+(0,Nt.Jn)(Ce,Date.now())+(Ge.indexOf(")")>-1?")":"&")}).replace(qt,(Ge,_e,Me,We,Re)=>{const ye=_e||We,ne=Me||Re||"";return'"'+Vt.Z.API_SERVER+"/api/attachments/"+ye+ne+ye+ne+"&t="+(0,Nt.Jn)(ye,Date.now())}).replace(ze,(Ge,_e,Me,We,Re)=>{const ye=_e||We,ne=Me||Re||"";return"("+Vt.Z.API_SERVER+"/files/uploads/"+ye+ne+ye+ne+"&t="+(0,Nt.Jn)(ye,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,`
|
|
|
`),ue)};var se=({value:ue="",className:Ae,showTextOnly:Pe,showLines:qt,style:ze={},stylesPrev:Wt={},highlightKeywords:Ge,showProgramFill:_e,isProgramFill:Me,disabledFill:We=!1,programFillValue:Re,onFillChange:ye=bn=>{},onFillBlur:ne=()=>{},onFillFocus:Ce=()=>{}})=>{let bn=String(ue);const[Ln,Ze]=(0,Mt.useState)(""),[Mn,Vn]=(0,Mt.useState)("office"),[gi,Kn]=(0,Mt.useState)([]),Bi=(0,Mt.useRef)("a"+(0,te.Z)()),en={},Li=(Ue,Te,ke)=>{const nn=document.createElement(Ue===xt?"input":"textarea");nn.style.width="100%",nn.style.height=Ue===xt?"40px":"151px",nn.rows=5,nn.spellcheck=!1,nn.name="edu-program-fill",nn.placeholder="\u8BF7\u8F93\u5165",nn.dataset.id=Te;const Wn=Object.keys(en).length;return en[Wn]=nn,`<span class="edu-program-fill-wrap ${Ue===xt?"":"show"}" style="width:${Ue===xt?"400px":"100%"}" title=${ke||""}><span>${nn.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Oi(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 Lt=Ue=>Ue.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Te,ke){let nn=ke.replace(/(\n|\r)/g,"").split("}"),Wn=[];return nn.map(an=>{an!=""&&Wn.push(`.${Bi.current} ${an}`)}),`<style>${Wn.join("}")}</style>`}),Ot=(0,Mt.useMemo)(()=>{try{const nn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Wn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,an=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,gn=/\(\/attachments\/download\//g;bn=bn.replace(gn,"("+Vt.Z.API_SERVER+"/attachments/download/").replace(nn,"("+Vt.Z.API_SERVER+"/api/attachments/").replace(Wn,'"'+Vt.Z.API_SERVER+"/api/attachments/").replace(an,'"'+Vt.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(nn){}if(_e){let nn=-1;return bn=bn.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Wn,an,gn){var Bn;return++nn,Li(Wn,nn,(Bn=Re==null?void 0:Re[nn])==null?void 0:Bn.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Lt(bn||"")}</pre>`}let Ue=Lt(bn);Ue=(0,re.ZP)(Ue);const Te=(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,(nn,Wn)=>{const{type:an,expression:gn}=Te[Wn];return(0,jt.renderToString)(Ut(gn)||"",{displayMode:an==="block",throwOnError:!1,output:"html"})}),Ue=Ue.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,re.AL)();const ke=document.createElement("div");if(ke.innerHTML=Ue,Pe)return ke.innerText;if(Ge){const nn=Ge.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return At(ke,nn),ke.innerHTML}return setTimeout(()=>ae(),500),ke.innerHTML},[bn,Ge]);(0,Mt.useEffect)(()=>{le.current&&le.current.querySelectorAll(["input","textarea"]).forEach(Te=>{Te.oninput=mt,Te.onblur=ft,Te.onfocus=pt})},[gi]),(0,Mt.useEffect)(()=>{var Ue,Te,ke,nn,Wn;if(Re!=null&&Re.length)try{const an=le.current.querySelectorAll(".edu-program-fill-score"),gn=le.current.querySelectorAll('[name="edu-program-fill"]');for(const[Bn,ti]of gn.entries())ti.value=((Ue=Re==null?void 0:Re[Bn])==null?void 0:Ue.value)||"",((Te=Re==null?void 0:Re[Bn])==null?void 0:Te.type)==="warning"?ti.className="program-fill-warning":((ke=Re==null?void 0:Re[Bn])==null?void 0:ke.type)==="success"?ti.className="program-fill-success":ti.className="";for(const[Bn,ti]of an.entries())ti.innerHTML=(nn=Re==null?void 0:Re[Bn])!=null&&nn.score?`${(Wn=Re==null?void 0:Re[Bn])==null?void 0:Wn.score}\u5206`:"";Kn(Re)}catch(an){console.log(an,"error")}},[Re]);const mt=Ue=>{gi[Ue.target.dataset.id]=gi[Ue.target.dataset.id]||{},gi[Ue.target.dataset.id].value=Ue.target.value,Kn([...gi]),ye(gi,Ue.target.dataset.id)},ft=Ue=>{gi[Ue.target.dataset.id]=gi[Ue.target.dataset.id]||{},gi[Ue.target.dataset.id].value=Ue.target.value,Kn([...gi]),ne(gi,Ue.target.dataset.id)},pt=Ue=>{gi[Ue.target.dataset.id]=gi[Ue.target.dataset.id]||{},gi[Ue.target.dataset.id].value=Ue.target.value,Kn([...gi]),Ce(gi,Ue.target.dataset.id)};function At(Ue,Te){return Ue.childNodes.forEach(ke=>{var nn;if(ke.childNodes.length>0)At(ke,Te);else if(ke.nodeName!=="IMG")if(ke.innerHTML)ke.innerHTML=(nn=ke.innerHTML)==null?void 0:nn.replace(new RegExp(Te,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Wn=document.createElement("span");Wn.innerHTML=ke.textContent.replace(new RegExp(Te,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),ke.replaceWith(Wn)}})}const le=(0,Mt.useRef)();re.jb.WebkitLineClamp=qt,qt&&(ze=ht(ht({},ze),re.jb));function xe(Ue){let Te=Ue.target;if(Te.tagName.toUpperCase()==="A"){let ke=Te.getAttribute("href");if(ke.indexOf("office")>-1)Ue.preventDefault(),Ze(ke),Vn("office");else if(ke.indexOf("application/pdf")>-1)Ue.preventDefault(),Ze(ke),Vn("pdf");else if(ke.indexOf("text/html")>-1)Ue.preventDefault(),Ze(ke),Vn("html");else if(ke.startsWith("#")){Ue.preventDefault();let nn=document.getElementById(ke.replace("#",""));nn&&nn.scrollIntoView(!0)}}}const ae=()=>{var Ue;const Te=(Ue=le.current)==null?void 0:Ue.querySelectorAll("video");Te==null||Te.forEach(ke=>{if(ke.oncontextmenu=()=>!1,ke.src.indexOf(".m3u8")>-1&&!ke.canPlayType("application/vnd.apple.mpegurl")){if(ee.ZP.isSupported()){var nn=new ee.ZP;nn.loadSource(ke.src),nn.attachMedia(ke)}}})};(0,Mt.useEffect)(()=>{if(le.current&&Ot&&Ot.match(It)&&window.PR.prettyPrint(),le.current)return le.current.addEventListener("click",xe),()=>{var Ue;(Ue=le.current)==null||Ue.removeEventListener("click",xe),(0,re.AL)(),(0,re.Iy)()}},[Ot,le.current,xe]),(0,Mt.useEffect)(()=>{var Ue;const Te=ke=>{ke.preventDefault(),ke.clipboardData.setData("text",window.getSelection().toString())};return(Ue=le.current)==null||Ue.addEventListener("copy",Te),()=>{var ke;(ke=le.current)==null||ke.removeEventListener("copy",Te)}},[le.current]);const ve=Ue=>/<style[\s\S]*?>/i.test(Ue||"");return Mt.createElement(Mt.Fragment,null,Pe&&Mt.createElement("div",{ref:le},Ot),!Pe&&!ve(Ot)&&Mt.createElement("div",{ref:le,style:ht({},ze),className:`${Ae||""} ${We?"disabled-fill":""} markdown-body ${Bi.current}`,dangerouslySetInnerHTML:{__html:Ot}}),!Pe&&ve(Ot)&&Mt.createElement($t,{html:Ot}),Mt.createElement(Pt.Z,{close:!0,data:Ln,type:Ln!=null&&Ln.length?Mn:"",style:ht({},Wt),onClose:()=>Ze("")}))}},30917:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return ze}});var Mt=Ft(59301),ce=Ft(89070),re=Ft(43418),Ie=Ft(78241),ee=Ft(8591),Vt=Ft(71418),Nt=Ft(17574),jt=Ft(95237),te=Ft(43604),Pt=Ft(6848),oe=Ft(92832),Kt={currentPrimary:"currentPrimary___NPWiR",currentDelete:"currentDelete___UEfhf",DirectoryTree:"DirectoryTree___xPxCY",EditDom:"EditDom___seNxC"},$t=Ft(83312),Ct=Ft(24780),et=Ft(8797),tt=Ft(85057),lt=Object.defineProperty,rt=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,Ut=(Wt,Ge,_e)=>Ge in Wt?lt(Wt,Ge,{enumerable:!0,configurable:!0,writable:!0,value:_e}):Wt[Ge]=_e,Gt=(Wt,Ge)=>{for(var _e in Ge||(Ge={}))xt.call(Ge,_e)&&Ut(Wt,_e,Ge[_e]);if(dt)for(var _e of dt(Ge))It.call(Ge,_e)&&Ut(Wt,_e,Ge[_e]);return Wt},se=(Wt,Ge)=>rt(Wt,ht(Ge)),ue=(Wt,Ge)=>{var _e={};for(var Me in Wt)xt.call(Wt,Me)&&Ge.indexOf(Me)<0&&(_e[Me]=Wt[Me]);if(Wt!=null&&dt)for(var Me of dt(Wt))Ge.indexOf(Me)<0&&It.call(Wt,Me)&&(_e[Me]=Wt[Me]);return _e},Ae=(Wt,Ge,_e)=>new Promise((Me,We)=>{var Re=Ce=>{try{ne(_e.next(Ce))}catch(bn){We(bn)}},ye=Ce=>{try{ne(_e.throw(Ce))}catch(bn){We(bn)}},ne=Ce=>Ce.done?Me(Ce.value):Promise.resolve(Ce.value).then(Re,ye);ne((_e=_e.apply(Wt,Ge)).next())});const Pe=(Wt=[])=>Wt==null?void 0:Wt.map(Ge=>se(Gt({},Ge),{title:(Ge==null?void 0:Ge.value)||"",key:Ge==null?void 0:Ge.id,isLeaf:!0})),qt=Wt=>{var Ge=Wt,{user:_e,children:Me,isShowComponent:We=!0,ModalProps:Re={},onDataSelect:ye}=Ge,ne=ue(Ge,["user","children","isShowComponent","ModalProps","onDataSelect"]);const[Ce,bn]=re.default.useModal(),[Ln]=Ie.default.useForm(),[Ze,Mn]=(0,Mt.useState)([]),[Vn,gi]=(0,Mt.useState)(!1),[Kn,Bi]=(0,Mt.useState)(!1),[,en,Li,Oi]=(0,$t.U)(Ct.qE,{page:1,limit:9999}),[,,Lt]=(0,$t.U)(Ct.V8,{}),[,,Ot]=(0,$t.U)(Ct.B$,{}),[,,mt]=(0,$t.U)(Ct.DH,{}),[,,ft]=(0,$t.U)(Ct.bJ,{}),pt=()=>{gi(!1),Ln.resetFields(),Bi(!1)},At=xe=>Ae(void 0,null,function*(){const{node:ae,dragNode:ve,event:Ue}=xe,Te=xe.node.pos.split("-"),ke=xe.dropPosition-Number(Te[Te.length-1]);if(ke==0){ee.ZP.warning("\u65E0\u6CD5\u79FB\u52A8\u5230\u5185\u90E8\u4F4D\u7F6E");return}if(ke==1&&(ve==null?void 0:ve.item_index)==(ae==null?void 0:ae.item_index)+1){ee.ZP.warning("\u672A\u79FB\u52A8\u4F4D\u7F6E");return}const nn=yield ft({id:ve==null?void 0:ve.key,position:ke==-1?1:(ve==null?void 0:ve.item_index)>(ae==null?void 0:ae.item_index)?(ae==null?void 0:ae.item_index)+1:ae==null?void 0:ae.item_index});(nn==null?void 0:nn.status)===0&&(ee.ZP.success("\u79FB\u52A8\u6210\u529F"),Li({},!0))}),le=xe=>Ae(void 0,null,function*(){let ae={};Kn?ae=yield Ot(Gt({},xe)):ae=yield mt(Gt({},xe)),(ae==null?void 0:ae.status)==0&&(ee.ZP.success((ae==null?void 0:ae.message)||(Kn?"\u6DFB\u52A0\u6210\u529F":"\u66F4\u65B0\u6210\u529F")),Li({},!0),pt())});return(0,Mt.useEffect)(()=>{Re!=null&&Re.open&&Li({},!0)},[Re==null?void 0:Re.open]),(0,Mt.useEffect)(()=>{var xe;Mn(Pe((xe=Oi==null?void 0:Oi.data)==null?void 0:xe.list))},[Oi]),We?Mt.createElement(Mt.Fragment,null,bn,Me,Mt.createElement(re.default,Gt({},Gt({title:"\u5E38\u7528\u8BC4\u8BED",width:640,centered:!0,footer:null,bodyStyle:{padding:"10px 5px 25px"}},Re)),Mt.createElement(Vt.Z,{spinning:en},(Ze==null?void 0:Ze.length)>0?Mt.createElement(Mt.Fragment,null,Mt.createElement(Nt.default.DirectoryTree,{height:500,className:Kt.DirectoryTree,multiple:!0,draggable:{icon:!1},defaultExpandAll:!0,switcherIcon:!1,showIcon:!1,onSelect:ye,treeData:Ze,onDrop:At,titleRender:xe=>Mt.createElement(Mt.Fragment,null,Mt.createElement("span",{className:"multi_ellipsis1",style:{flex:1,marginRight:"32px"}},xe==null?void 0:xe.title),Mt.createElement("div",{className:`${Kt.EditDom}`},Mt.createElement(jt.Z,{wrap:!1,align:"middle",gutter:16},Mt.createElement(te.Z,null,Mt.createElement(Pt.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F"},Mt.createElement("i",{className:`iconfont icon-tuodong1 font12 ${Kt.currentPrimary}`}))),Mt.createElement(te.Z,null,Mt.createElement(Pt.Z,{title:"\u7F16\u8F91"},Mt.createElement("i",{className:`iconfont icon-bianji11 font12 ${Kt.currentPrimary}`,onClick:ae=>{ae.stopPropagation(),Ln.setFieldsValue(Gt({},xe)),gi(!0)}}))),Mt.createElement(te.Z,null,Mt.createElement(Pt.Z,{title:"\u5220\u9664"},Mt.createElement("i",{className:`iconfont icon-shanchu14 font12 ${Kt.currentDelete}`,onClick:ae=>{ae.stopPropagation(),Ce.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:()=>Ae(void 0,null,function*(){const ve=yield Lt({id:xe==null?void 0:xe.key});(ve==null?void 0:ve.status)==0&&(ee.ZP.success((ve==null?void 0:ve.message)||"\u5220\u9664\u6210\u529F"),Li({},!0))})})}}))))))}),Mt.createElement(tt.op,{className:"ml20 mt20",icon:Mt.createElement("i",{className:"iconfont icon-xiaojiahao"}),style:{borderRadius:"4px"},onClick:()=>{Bi(!0),gi(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED")):Mt.createElement(et.Z,{styles:{margin:"30px auto"},customText:Mt.createElement("span",null,"\u6682\u65E0\u5E38\u7528\u8BC4\u8BED\uFF0C\u4F60\u53EF\u4EE5",Mt.createElement("a",{onClick:()=>{Bi(!0),gi(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED"))}))),Mt.createElement(re.default,{title:Kn?"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED":"\u7F16\u8F91\u5E38\u7528\u8BC4\u8BED",open:Vn,okText:Kn?"\u6DFB\u52A0":"\u786E\u5B9A",onCancel:()=>{pt()},onOk:()=>{Ln.submit()}},Mt.createElement(Ie.default,{form:Ln,onFinish:le},Kn&&Mt.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"),Mt.createElement(Ie.default.Item,{hidden:!0,name:"id"}),Mt.createElement(Ie.default.Item,{className:"mt10",name:"value"},Mt.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:Wt,user:Ge})=>({user:Ge,loading:Wt.effects}))(qt)},97692:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{h:function(){return xt}});var Mt=Ft(59301),ce=Ft(57809),re=Ft(78241),Ie=Ft(3113),ee=Ft(89780),Vt=Ft.n(ee),Nt=Ft(37036),jt=Ft(95625),te=Object.defineProperty,Pt=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,Kt=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,et=(It,Ut,Gt)=>Ut in It?te(It,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):It[Ut]=Gt,tt=(It,Ut)=>{for(var Gt in Ut||(Ut={}))$t.call(Ut,Gt)&&et(It,Gt,Ut[Gt]);if(Kt)for(var Gt of Kt(Ut))Ct.call(Ut,Gt)&&et(It,Gt,Ut[Gt]);return It},lt=(It,Ut)=>Pt(It,oe(Ut));const rt=ce.default.Option,ht={labelCol:{span:4},wrapperCol:{span:20}},dt={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"]};Cn.Z=({callback:It,onCancel:Ut})=>{const[Gt,se]=(0,Mt.useState)("python");function ue(Pe){se(dt[Pe][1])}function Ae(Pe){It(Pe)}return Mt.createElement(re.default,lt(tt({},ht),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ae,style:{width:500}}),Mt.createElement(re.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Mt.createElement(ce.default,{getPopupContainer:Pe=>Pe.parentNode,onChange:ue},Object.keys(dt).map(Pe=>Mt.createElement(rt,{key:Pe,value:Pe},dt[Pe][0])))),Mt.createElement(re.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Mt.createElement(xt,{mode:Gt})),Mt.createElement("div",{className:"flex-container flex-end"},Mt.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Mt.createElement(Ie.ZP,{type:"ghost",onClick:Ut},"\u53D6\u6D88")))};function xt({value:It,onChange:Ut,mode:Gt,options:se={}}){const ue=(0,Mt.useRef)(),[Ae,Pe]=(0,Mt.useState)();return(0,Mt.useEffect)(()=>{if(Ae){let qt=function(ze){const Wt=ze.getValue();Ut&&Ut(Wt)};return Ae.on("change",qt),()=>{Ae.off("change",qt)}}},[Ae,Ut]),(0,Mt.useEffect)(()=>{Ae&&Ae.setOption("mode",Gt)},[Ae,Gt]),(0,Mt.useEffect)(()=>{Ae&&(It!==Ae.getValue()||It==="")&&setTimeout(()=>{Ae.setValue(It||"")},300)},[Ae,It]),(0,Mt.useEffect)(()=>{if(ue.current&&!Ae){const qt=Vt().fromTextArea(ue.current,tt({mode:Gt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},se));Pe(qt)}},[ue.current,Ae]),Mt.createElement("div",{className:"my-codemirror-container"},Mt.createElement("textarea",{ref:ue}))}},12290:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return Dr}});var Mt=Ft(59301),ce=Ft(89780),re=Ft.n(ce),Ie=Ft(76374),ee=Ft(37036),Vt=Ft(6313),Nt=Ft(25717),jt=Ft(99498),te=Ft(25419),Pt=Ft(67549),oe=Ft(85149),Kt=({value:In="",className:Tn,showTextOnly:Oe,showLines:qn,style:xi={}})=>{const An=(0,Mt.useMemo)(()=>"",[In]);return Mt.createElement(Mt.Fragment,null,Mt.createElement("div",{dangerouslySetInnerHTML:{__html:An}}))},$t=Ft(59301),Ct=Object.defineProperty,et=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,dt=(In,Tn,Oe)=>Tn in In?Ct(In,Tn,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):In[Tn]=Oe,xt=(In,Tn)=>{for(var Oe in Tn||(Tn={}))rt.call(Tn,Oe)&&dt(In,Oe,Tn[Oe]);if(lt)for(var Oe of lt(Tn))ht.call(Tn,Oe)&&dt(In,Oe,Tn[Oe]);return In},It=(In,Tn)=>et(In,tt(Tn));let Ut=[{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 Gt({onActionCallback:In,title:Tn,icon:Oe,actionName:qn,className:xi="",children:An}){function Le(){In(qn)}return $t.createElement("a",{title:Tn,className:xi,onClick:Le},$t.createElement("i",{className:`${Oe}`}),An)}var se=({watch:In,showNullButton:Tn,showNullProgramButton:Oe,onActionCallback:qn,fullScreen:xi,insertTemp:An,hidetoolBar:Le,extraUse:wn})=>{const Qn=[...Ut,{title:`${In?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${In?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return $t.createElement("ul",{className:"markdown-toolbar-container"},!Le&&Qn.map((Si,Di)=>$t.createElement("li",{key:Di},Si.actionName?$t.createElement(Gt,It(xt({},Si),{onActionCallback:qn})):$t.createElement("span",{className:"v-line"}))),Tn?$t.createElement("li",null,$t.createElement(Gt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:qn},$t.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Oe?$t.createElement($t.Fragment,null,$t.createElement("li",null,$t.createElement(Gt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:qn},$t.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),$t.createElement("li",null,$t.createElement(Gt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:qn},$t.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,An&&$t.createElement("li",null,$t.createElement(Gt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${An}`,onActionCallback:qn},$t.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),wn&&$t.createElement("li",null,wn),$t.createElement("li",{className:"btn-full-screen"},$t.createElement(Gt,{icon:`${xi?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:xi?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:qn})))},ue=Ft(79346),Ae=Ft(78241),Pe=Ft(92832),qt=Ft(3113),ze=Object.defineProperty,Wt=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Re=(In,Tn,Oe)=>Tn in In?ze(In,Tn,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):In[Tn]=Oe,ye=(In,Tn)=>{for(var Oe in Tn||(Tn={}))Me.call(Tn,Oe)&&Re(In,Oe,Tn[Oe]);if(_e)for(var Oe of _e(Tn))We.call(Tn,Oe)&&Re(In,Oe,Tn[Oe]);return In},ne=(In,Tn)=>Wt(In,Ge(Tn));const Ce={labelCol:{span:4},wrapperCol:{span:20}};var bn=({callback:In,onCancel:Tn})=>{function Oe(qn){In(qn)}return Mt.createElement(Ae.default,ne(ye({},Ce),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Oe,style:{width:500}}),Mt.createElement(Ae.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Mt.createElement(Pe.default,null)),Mt.createElement(Ae.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Mt.createElement(Pe.default,null)),Mt.createElement("div",{className:"flex-container flex-end"},Mt.createElement(qt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Mt.createElement(qt.ZP,{type:"ghost",onClick:Tn},"\u53D6\u6D88")))},Ln=Ft(97692),Ze=Ft(28451),Mn=Ft(43418),Vn=Ft(95237),gi=Ft(73524),Kn=Ft(59301),Bi=({callback:In,onCancel:Tn})=>{const Oe=document.createElement("canvas"),qn=Oe.getContext("2d");Oe.width=1e3,Oe.height=800,qn.fillStyle="#ffffff",qn.fillRect(0,0,Oe.width,Oe.height);const xi=Oe.toDataURL("image/png");return Kn.createElement(Mn.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Kn.createElement(Vn.Z,{style:{height:"100vh"}},Kn.createElement(gi.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:xi,visible:!0,title:String(Date.now())},onOk:An=>{In({src:An.url})},onClose:Tn})))},en=Ft(12378);function Li(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Li,go.CommandHandler),Li.prototype.canAlignSelection=function(){var In=this.diagram;return!(In===null||In.isReadOnly||In.isModelReadOnly||In.selection.count<2)},Li.prototype.alignLeft=function(){var In=this.diagram;In.startTransaction("aligning left");var Tn=1/0;In.selection.each(function(Oe){Oe instanceof go.Link||(Tn=Math.min(Oe.position.x,Tn))}),In.selection.each(function(Oe){Oe instanceof go.Link||Oe.move(new go.Point(Tn,Oe.position.y))}),In.commitTransaction("aligning left")},Li.prototype.alignRight=function(){var In=this.diagram;In.startTransaction("aligning right");var Tn=-1/0;In.selection.each(function(Oe){if(!(Oe instanceof go.Link)){var qn=Oe.actualBounds.x+Oe.actualBounds.width;Tn=Math.max(qn,Tn)}}),In.selection.each(function(Oe){Oe instanceof go.Link||Oe.move(new go.Point(Tn-Oe.actualBounds.width,Oe.position.y))}),In.commitTransaction("aligning right")},Li.prototype.alignTop=function(){var In=this.diagram;In.startTransaction("alignTop");var Tn=1/0;In.selection.each(function(Oe){Oe instanceof go.Link||(Tn=Math.min(Oe.position.y,Tn))}),In.selection.each(function(Oe){Oe instanceof go.Link||Oe.move(new go.Point(Oe.position.x,Tn))}),In.commitTransaction("alignTop")},Li.prototype.alignBottom=function(){var In=this.diagram;In.startTransaction("aligning bottom");var Tn=-1/0;In.selection.each(function(Oe){if(!(Oe instanceof go.Link)){var qn=Oe.actualBounds.y+Oe.actualBounds.height;Tn=Math.max(qn,Tn)}}),In.selection.each(function(Oe){Oe instanceof go.Link||Oe.move(new go.Point(Oe.actualBounds.x,Tn-Oe.actualBounds.height))}),In.commitTransaction("aligning bottom")},Li.prototype.alignCenterX=function(){var In=this.diagram,Tn=In.selection.first();if(Tn){In.startTransaction("aligning Center X");var Oe=Tn.actualBounds.x+Tn.actualBounds.width/2;In.selection.each(function(qn){qn instanceof go.Link||qn.move(new go.Point(Oe-qn.actualBounds.width/2,qn.actualBounds.y))}),In.commitTransaction("aligning Center X")}},Li.prototype.alignCenterY=function(){var In=this.diagram,Tn=In.selection.first();if(Tn){In.startTransaction("aligning Center Y");var Oe=Tn.actualBounds.y+Tn.actualBounds.height/2;In.selection.each(function(qn){qn instanceof go.Link||qn.move(new go.Point(qn.actualBounds.x,Oe-qn.actualBounds.height/2))}),In.commitTransaction("aligning Center Y")}},Li.prototype.alignColumn=function(In){var Tn=this.diagram;Tn.startTransaction("align Column"),In===void 0&&(In=0),In=parseFloat(In);var Oe=new Array;Tn.selection.each(function(wn){wn instanceof go.Link||Oe.push(wn)});for(var qn=0;qn<Oe.length-1;qn++){var xi=Oe[qn],An=xi.actualBounds.y+xi.actualBounds.height+In,Le=Oe[qn+1];Le.move(new go.Point(xi.actualBounds.x,An))}Tn.commitTransaction("align Column")},Li.prototype.alignRow=function(In){In===void 0&&(In=0),In=parseFloat(In);var Tn=this.diagram;Tn.startTransaction("align Row");var Oe=new Array;Tn.selection.each(function(wn){wn instanceof go.Link||Oe.push(wn)});for(var qn=0;qn<Oe.length-1;qn++){var xi=Oe[qn],An=xi.actualBounds.x+xi.actualBounds.width+In,Le=Oe[qn+1];Le.move(new go.Point(An,xi.actualBounds.y))}Tn.commitTransaction("align Row")},Li.prototype.canRotate=function(In){var Tn=this.diagram;return!(Tn===null||Tn.isReadOnly||Tn.isModelReadOnly||Tn.selection.count<1)},Li.prototype.rotate=function(In){In===void 0&&(In=90);var Tn=this.diagram;Tn.startTransaction("rotate "+In.toString());var Tn=this.diagram;Tn.selection.each(function(Oe){Oe instanceof go.Link||Oe instanceof go.Group||(Oe.angle+=In)}),Tn.commitTransaction("rotate "+In.toString())},Li.prototype.pullToFront=function(){var In=this.diagram;In.startTransaction("pullToFront");var Tn=new go.Map;In.selection.each(function(Oe){Tn.set(Oe.layer,0)}),Tn.iteratorKeys.each(function(Oe){var qn=0;Oe.parts.each(function(xi){if(!xi.isSelected){var An=xi.zOrder;isNaN(An)?xi.zOrder=0:qn=Math.max(qn,An)}}),Tn.set(Oe,qn)}),In.selection.each(function(Oe){Li._assignZOrder(Oe,Tn.get(Oe.layer)+1)}),In.commitTransaction("pullToFront")},Li.prototype.pushToBack=function(){var In=this.diagram;In.startTransaction("pushToBack");var Tn=new go.Map;In.selection.each(function(Oe){Tn.set(Oe.layer,0)}),Tn.iteratorKeys.each(function(Oe){var qn=0;Oe.parts.each(function(xi){if(!xi.isSelected){var An=xi.zOrder;isNaN(An)?xi.zOrder=0:qn=Math.min(qn,An)}}),Tn.set(Oe,qn)}),In.selection.each(function(Oe){Li._assignZOrder(Oe,Tn.get(Oe.layer)-1-Li._findGroupDepth(Oe))}),In.commitTransaction("pushToBack")},Li._assignZOrder=function(In,Tn,Oe){Oe===void 0&&(Oe=In),In.layer===Oe.layer&&(In.zOrder=Tn),In instanceof go.Group&&In.memberParts.each(function(qn){Li._assignZOrder(qn,Tn+1,Oe)})},Li._findGroupDepth=function(In){if(In instanceof go.Group){var Tn=0;return In.memberParts.each(function(Oe){Tn=Math.max(Tn,Li._findGroupDepth(Oe))}),Tn+1}else return 0},Li.prototype.doKeyDown=function(){var In=this.diagram;if(In!==null){var Tn=In.lastInput;if(Tn.key==="Up"||Tn.key==="Down"||Tn.key==="Left"||Tn.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)}},Li.prototype._getAllParts=function(){var In=new Array;return this.diagram.nodes.each(function(Tn){In.push(Tn)}),this.diagram.parts.each(function(Tn){In.push(Tn)}),In},Li.prototype._arrowKeyMove=function(){var In=this.diagram,Tn=In.lastInput,Oe=0,qn=0;if(Tn.control||Tn.meta)Oe=1,qn=1;else if(In.grid!==null){var xi=In.grid.gridCellSize;qn=xi.width,Oe=xi.height}In.startTransaction("arrowKeyMove"),In.selection.each(function(An){Tn.key==="Up"?An.move(new go.Point(An.actualBounds.x,An.actualBounds.y-Oe)):Tn.key==="Down"?An.move(new go.Point(An.actualBounds.x,An.actualBounds.y+Oe)):Tn.key==="Left"?An.move(new go.Point(An.actualBounds.x-qn,An.actualBounds.y)):Tn.key==="Right"&&An.move(new go.Point(An.actualBounds.x+qn,An.actualBounds.y))}),In.commitTransaction("arrowKeyMove")},Li.prototype._arrowKeySelect=function(){var In=this.diagram,Tn=In.lastInput,Oe=null;Tn.key==="Up"?Oe=this._findNearestPartTowards(270):Tn.key==="Down"?Oe=this._findNearestPartTowards(90):Tn.key==="Left"?Oe=this._findNearestPartTowards(180):Tn.key==="Right"&&(Oe=this._findNearestPartTowards(0)),Oe!==null&&(Tn.shift?Oe.isSelected=!0:Tn.control||Tn.meta?Oe.isSelected=!Oe.isSelected:In.select(Oe))},Li.prototype._findNearestPartTowards=function(In){var Tn=this.diagram.selection.first();if(Tn===null)return null;for(var Oe=Tn.actualBounds.center,qn=this._getAllParts(),xi=1/0,An=Tn,Le=0;Le<qn.length;Le++){var wn=qn[Le];if(wn!==Tn&&wn.canSelect()){var Qn=wn.actualBounds.center,Si=Oe.directionPoint(Qn),Di=this._angleCloseness(Si,In);if(Di<=45){var qe=Oe.distanceSquaredPoint(Qn);qe*=1+Math.sin(Di*Math.PI/180),qe<xi&&(xi=qe,An=wn)}}}return An},Li.prototype._angleCloseness=function(In,Tn){return Math.min(Math.abs(Tn-In),Math.min(Math.abs(Tn+360-In),Math.abs(Tn-360-In)))},Li.prototype._arrowKeyTree=function(){var In=this.diagram,Tn=In.selection.first();if(Tn instanceof go.Node){var Oe=In.lastInput;if(Oe.key==="Right"){if(!Tn.isTreeLeaf)if(!Tn.isTreeExpanded)In.commandHandler.canExpandTree(Tn)&&In.commandHandler.expandTree(Tn);else{var qn=this._sortTreeChildrenByY(Tn).first();qn!==null&&In.select(qn)}}else if(Oe.key==="Left")if(!Tn.isTreeLeaf&&Tn.isTreeExpanded)In.commandHandler.canCollapseTree(Tn)&&In.commandHandler.collapseTree(Tn);else{var xi=Tn.findTreeParentNode();xi!==null&&In.select(xi)}else if(Oe.key==="Up"){var xi=Tn.findTreeParentNode();if(xi!==null){var An=this._sortTreeChildrenByY(xi),Le=An.indexOf(Tn);if(Le>0){for(var wn=An.elt(Le-1);wn!==null&&wn.isTreeExpanded&&!wn.isTreeLeaf;){var Qn=this._sortTreeChildrenByY(wn);wn=Qn.last()}wn!==null&&In.select(wn)}else In.select(xi)}}else if(Oe.key==="Down")if(Tn.isTreeExpanded&&!Tn.isTreeLeaf){var qn=this._sortTreeChildrenByY(Tn).first();qn!==null&&In.select(qn)}else for(;Tn!==null;){var xi=Tn.findTreeParentNode();if(xi===null)break;var An=this._sortTreeChildrenByY(xi),Le=An.indexOf(Tn);if(Le<An.length-1){In.select(An.elt(Le+1));break}else Tn=xi}var Si=In.selection.first();Si!==null&&In.scrollToRect(Si.actualBounds)}},Li.prototype._sortTreeChildrenByY=function(In){var Tn=new go.List().addAll(In.findTreeChildrenNodes());return Tn.sort(function(Oe,qn){var xi=Oe.location,An=qn.location;return xi.y<An.y?-1:xi.y>An.y?1:xi.x<An.x?-1:xi.x>An.x?1:0}),Tn},Li.prototype.copyToClipboard=function(In){go.CommandHandler.prototype.copyToClipboard.call(this,In),this._lastPasteOffset.set(this.pasteOffset)},Li.prototype.pasteFromClipboard=function(){var In=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(In,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),In},Object.defineProperty(Li.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(In){if(In!=="move"&&In!=="select"&&In!=="scroll"&&In!=="tree"&&In!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+In);this._arrowKeyBehavior=In}}),Object.defineProperty(Li.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(In){if(!(In instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+In);this._pasteOffset.set(In)}});var Oi=Li,Lt=Ft(74413),Ot=Ft(43604),mt=Ft(99064),ft={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},pt=Ft(24065),At=Ft(59301),le=(In,Tn,Oe)=>new Promise((qn,xi)=>{var An=Qn=>{try{wn(Oe.next(Qn))}catch(Si){xi(Si)}},Le=Qn=>{try{wn(Oe.throw(Qn))}catch(Si){xi(Si)}},wn=Qn=>Qn.done?qn(Qn.value):Promise.resolve(Qn.value).then(An,Le);wn((Oe=Oe.apply(In,Tn)).next())});function xe({onCancel:In,callback:Tn}){let Oe=(0,Mt.useRef)(),qn=(0,Mt.useRef)(),xi=(0,Mt.useRef)(),An=(0,Mt.useRef)(!1);const Le=(0,Mt.useRef)(!1),[wn,Qn]=(0,Mt.useState)(0);function Si(){const qe=en.bx.make,si={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 en.S0(qn.current,{padding:20,grid:qe(en.s_,"Grid",qe(en.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),qe(en.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:ur=>{var _r=ur.diagram.commandHandler.addTopLevelParts(ur.diagram.selection,!0);_r||ur.diagram.currentTool.doCancel()},commandHandler:qe(Oi),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:ur=>{var _r=ur.subject;_r.location=_r.location.copy().snapToGridPoint(ur.diagram.grid.gridOrigin,ur.diagram.grid.gridCellSize),setTimeout(()=>{ur.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:ur=>{var _r=ur.subject;setTimeout(()=>{ur.diagram.commandHandler.editTextBlock()})},LinkRelinked:ur=>{var _r=ur.parameter.part;_r.invalidateConnectedLinks();var so=ur.subject;ur.diagram.toolManager.linkingTool.isForwards?so.toNode.invalidateConnectedLinks():so.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Oe.current.nodeTemplate=qe(en.NB,"Auto",{locationSpot:en.z6.Center,locationObjectName:"SHAPE",desiredSize:new en.$u(120,60),minSize:new en.$u(40,40),resizable:!0,resizeCellSize:new en.$u(10,10),rotatable:!0},new en.KX("location","loc",en.E9.parse).makeTwoWay(en.E9.stringify),new en.KX("desiredSize","size",en.$u.parse).makeTwoWay(en.$u.stringify),qe(en.bn,{name:"SHAPE",fill:si.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:en.z6.AllSides,toSpot:en.z6.AllSides},new en.KX("figure"),new en.KX("fill"),new en.KX("stroke","borderColor"),new en.KX("strokeWidth","thickness"),new en.KX("strokeDashArray","dash")),qe(en.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),qe(en.al,{margin:1,textAlign:"center",overflow:en.al.OverflowEllipsis,editable:!0},new en.KX("text").makeTwoWay(),new en.KX("stroke","color"))),Oe.current.nodeTemplate.toolTip=qe("ToolTip",qe(en.s_,"Vertical",{maxSize:new en.$u(200,NaN)},qe(en.al,{font:"bold 10pt sans-serif",textAlign:"center"},new en.KX("text")),qe(en.al,{font:"10pt sans-serif",textAlign:"center"},new en.KX("text","details"))));function Ei(ur,_r){var so=(to,Fo)=>{to.handled=!0,to.diagram.model.commit(Ai=>{var yo=Fo.part.adornedPart,jr=new en.E9().setRectSpot(yo.actualBounds,ur);jr.subtract(yo.location),jr.scale(2,2),jr.x+=Math.sign(jr.x)*130,jr.y+=Math.sign(jr.y)*130,jr.add(yo.location),jr.snapToGridPoint(to.diagram.grid.gridOrigin,to.diagram.grid.gridCellSize);var Sr=Ai.copyNodeData(yo.data);Ai.setGroupKeyForNodeData(Sr,Ai.getGroupKeyForNodeData(yo.data)),Ai.addNodeData(Sr);var Pi={from:yo.key,to:Ai.getKeyForNodeData(Sr)};Ai.addLinkData(Pi);var wo=to.diagram.findNodeForData(Sr);wo.location=jr,to.diagram.select(wo),setTimeout(()=>{to.diagram.commandHandler.editTextBlock()},20)})};return qe(en.bn,{figure:_r,alignment:ur,alignmentFocus:ur.opposite(),width:ur.equals(en.z6.Top)||ur.equals(en.z6.Bottom)?25:18,height:ur.equals(en.z6.Top)||ur.equals(en.z6.Bottom)?18:25,fill:"orange",stroke:si.white,strokeWidth:4,mouseEnter:(to,Fo)=>Fo.fill="dodgerblue",mouseLeave:(to,Fo)=>Fo.fill="orange",isActionable:!0,click:so,contextClick:so})}function tr(ur){return qe(en.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:(_r,so)=>so.fill="dodgerblue",mouseLeave:(_r,so)=>so.fill="orange",click:(_r,so)=>{_r.diagram.commandHandler.showContextMenu(so.part.adornedPart)}},ur||{})}Oe.current.nodeTemplate.selectionAdornmentTemplate=qe(en.uz,"Spot",qe(en.Vm,{padding:10}),Ei(en.z6.Top,"TriangleUp"),Ei(en.z6.Left,"TriangleLeft"),Ei(en.z6.Right,"TriangleRight"),Ei(en.z6.Bottom,"TriangleDown"),tr({alignment:new en.z6(.75,0)}));function On(ur,_r){return(so,to)=>{so.handled=!0,so.diagram.model.commit(Fo=>{Fo.set(to.part.adornedPart.data,ur,_r)})}}function ui(ur,_r){return _r||(_r="color"),qe(en.bn,{width:16,height:16,stroke:"lightgray",fill:ur,margin:1,background:"transparent",mouseEnter:(so,to)=>to.stroke="dodgerblue",mouseLeave:(so,to)=>to.stroke="lightgray",click:On(_r,ur),contextClick:On(_r,ur)})}function Cr(){return[qe("ContextMenuButton",qe(en.s_,"Horizontal",ui(si.white,"fill"),ui(si.beige,"fill"),ui(si.extralightblue,"fill"),ui(si.extralightred,"fill"))),qe("ContextMenuButton",qe(en.s_,"Horizontal",ui(si.lightgray,"fill"),ui(si.lightgreen,"fill"),ui(si.lightblue,"fill"),ui(si.lightred,"fill")))]}function rr(){return[qe("ContextMenuButton",qe(en.s_,"Horizontal",ui(si.black),ui(si.green),ui(si.blue),ui(si.red))),qe("ContextMenuButton",qe(en.s_,"Horizontal",ui(si.white),ui(si.magenta),ui(si.purple),ui(si.orange)))]}function Gr(ur,_r){return _r||(_r="thickness"),qe(en.bn,"LineH",{width:16,height:16,strokeWidth:ur,margin:1,background:"transparent",mouseEnter:(so,to)=>to.background="dodgerblue",mouseLeave:(so,to)=>to.background="transparent",click:On(_r,ur),contextClick:On(_r,ur)})}function or(ur,_r){return _r||(_r="dash"),qe(en.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:ur,margin:1,background:"transparent",mouseEnter:(so,to)=>to.background="dodgerblue",mouseLeave:(so,to)=>to.background="transparent",click:On(_r,ur),contextClick:On(_r,ur)})}function Lr(){return[qe("ContextMenuButton",qe(en.s_,"Horizontal",Gr(1),Gr(2),Gr(3),Gr(4))),qe("ContextMenuButton",qe(en.s_,"Horizontal",or(null),or([2,4]),or([4,4])))]}function er(ur,_r){return _r||(_r="figure"),qe(en.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:ur,margin:1,background:"transparent",mouseEnter:(so,to)=>to.fill="dodgerblue",mouseLeave:(so,to)=>to.fill="lightgray",click:On(_r,ur),contextClick:On(_r,ur)})}Oe.current.nodeTemplate.contextMenu=qe("ContextMenu",qe("ContextMenuButton",qe(en.s_,"Horizontal",er("Rectangle"),er("RoundedRectangle"),er("Ellipse"),er("Diamond"))),qe("ContextMenuButton",qe(en.s_,"Horizontal",er("Parallelogram2"),er("ManualOperation"),er("Procedure"),er("Cylinder1"))),qe("ContextMenuButton",qe(en.s_,"Horizontal",er("Terminator"),er("CreateRequest"),er("Document"),er("TriangleDown"))),Cr(),rr(),Lr()),Oe.current.groupTemplate=qe(en.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:en.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(ur,_r)=>{var so=_r.addMembers(_r.diagram.selection,!0);so||_r.diagram.currentTool.doCancel()},avoidable:!1},new en.KX("location","loc",en.E9.parse).makeTwoWay(en.E9.stringify),qe(en.s_,"Auto",{name:"BODY"},qe(en.bn,{parameter1:10,fill:si.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:en.z6.AllSides,toSpot:en.z6.AllSides},new en.KX("fill"),new en.KX("stroke","color"),new en.KX("strokeWidth","thickness"),new en.KX("strokeDashArray","dash")),qe(en.Vm,{background:"transparent",margin:20})),qe(en.al,{alignment:en.z6.Top,alignmentFocus:en.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new en.KX("text"),new en.KX("stroke","color"))),Oe.current.groupTemplate.selectionAdornmentTemplate=qe(en.uz,"Spot",qe(en.s_,"Auto",qe(en.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),qe(en.Vm,{margin:1.5})),tr({alignment:en.z6.TopRight,alignmentFocus:en.z6.BottomRight})),Oe.current.groupTemplate.contextMenu=qe("ContextMenu",Cr(),rr(),Lr()),Oe.current.linkTemplate=qe(en.rU,{layerName:"Foreground",routing:en.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new en.KX("fromSpot","fromSpot",en.z6.parse),new en.KX("toSpot","toSpot",en.z6.parse),new en.KX("fromShortLength","dir",ur=>ur>=1?10:0),new en.KX("toShortLength","dir",ur=>ur>=1?10:0),new en.KX("points").makeTwoWay(),qe(en.bn,{strokeWidth:2},new en.KX("stroke","color"),new en.KX("strokeWidth","thickness"),new en.KX("strokeDashArray","dash")),qe(en.bn,{segmentIndex:0,segmentOffset:new en.E9(15,0),segmentOrientation:en.rU.OrientAlong,alignmentFocus:en.z6.Right,figure:"circle",width:10,strokeWidth:0},new en.KX("fill","color"),new en.KX("visible","dir",ur=>ur===1)),qe(en.bn,{segmentIndex:-1,segmentOffset:new en.E9(-10,6),segmentOrientation:en.rU.OrientPlus90,alignmentFocus:en.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new en.KX("fill","color"),new en.KX("visible","dir",ur=>ur>=1),new en.KX("width","thickness",ur=>7+3*ur),new en.KX("height","thickness",ur=>7+3*ur),new en.KX("segmentOffset","thickness",ur=>new en.E9(-15,4+1.5*ur))),qe(en.bn,{segmentIndex:0,segmentOffset:new en.E9(15,-6),segmentOrientation:en.rU.OrientMinus90,alignmentFocus:en.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new en.KX("fill","color"),new en.KX("visible","dir",ur=>ur===2),new en.KX("width","thickness",ur=>7+3*ur),new en.KX("height","thickness",ur=>7+3*ur),new en.KX("segmentOffset","thickness",ur=>new en.E9(-15,4+1.5*ur))),qe(en.al,{alignmentFocus:new en.z6(0,1,-4,0),editable:!0},new en.KX("text").makeTwoWay(),new en.KX("stroke","color"))),Oe.current.linkTemplate.selectionAdornmentTemplate=qe(en.uz,qe(en.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Pr(2)},new en.KX("pathPattern","thickness",Pr)),tr({alignmentFocus:new en.z6(0,0,-6,-4)}));function Pr(ur){return qe(en.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(ur+4).toString()+" H3"})}function io(ur){var _r="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return ur===0?_r="M0 0 M16 16 M0 8 L16 8":ur===2&&(_r="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),qe(en.bn,{geometryString:_r,margin:2,background:"transparent",mouseEnter:(so,to)=>to.background="dodgerblue",mouseLeave:(so,to)=>to.background="transparent",click:On("dir",ur),contextClick:On("dir",ur)})}function Oo(ur){var _r=(so,to)=>{so.handled=!0,so.diagram.model.commit(Fo=>{var Ai=to.part.adornedPart;Fo.set(Ai.data,ur?"toSpot":"fromSpot",en.z6.stringify(en.z6.AllSides)),(ur?Ai.toNode:Ai.fromNode).invalidateConnectedLinks()})};return qe(en.bn,{width:12,height:12,fill:"transparent",mouseEnter:(so,to)=>to.background="dodgerblue",mouseLeave:(so,to)=>to.background="transparent",click:_r,contextClick:_r})}function pi(ur,_r){var so=0,to=en.z6.RightSide;ur.equals(en.z6.Top)?(so=270,to=en.z6.TopSide):ur.equals(en.z6.Left)?(so=180,to=en.z6.LeftSide):ur.equals(en.z6.Bottom)&&(so=90,to=en.z6.BottomSide),_r||(so-=180);var Fo=(Ai,yo)=>{Ai.handled=!0,Ai.diagram.model.commit(jr=>{var Sr=yo.part.adornedPart;jr.set(Sr.data,_r?"toSpot":"fromSpot",en.z6.stringify(to)),(_r?Sr.toNode:Sr.fromNode).invalidateConnectedLinks()})};return qe(en.bn,{alignment:ur,alignmentFocus:ur.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:so,background:"transparent",mouseEnter:(Ai,yo)=>yo.background="dodgerblue",mouseLeave:(Ai,yo)=>yo.background="transparent",click:Fo,contextClick:Fo})}Oe.current.linkTemplate.contextMenu=qe("ContextMenu",rr(),Lr(),qe("ContextMenuButton",qe(en.s_,"Horizontal",io(0),io(1),io(2))),qe("ContextMenuButton",qe(en.s_,"Horizontal",qe(en.s_,"Spot",Oo(!1),pi(en.z6.Top,!1),pi(en.z6.Left,!1),pi(en.z6.Right,!1),pi(en.z6.Bottom,!1)),qe(en.s_,"Spot",{margin:new en.Zt(0,0,0,2)},Oo(!0),pi(en.z6.Top,!0),pi(en.z6.Left,!0),pi(en.z6.Right,!0),pi(en.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 ys=["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 Zo(ur){return console.log("shapeName:",ur),ys.indexOf(ur)>=0}var vi=new en.YI(xi.current,{maxSelectionCount:1,linkTemplate:qe(en.rU,{locationSpot:en.z6.Center,selectionAdornmentTemplate:qe(en.uz,"Link",{locationSpot:en.z6.Center},qe(en.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),qe(en.bn,{toArrow:"Standard",stroke:null}))},{routing:en.rU.AvoidsNodes,curve:en.rU.JumpOver,corner:5,toShortLength:4},new en.KX("points"),qe(en.bn,{isPanelMain:!0,strokeWidth:2}),qe(en.bn,{toArrow:"Standard",stroke:null})),model:new en.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...en.bn.getFigureGenerators().toArray().map(ur=>({text:"\u672A\u547D\u540D",size:"100 100",figure:ur.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Oe.current.addDiagramListener("TextEdited",function(ur){var _r;const so=ur.subject.part;var to=(_r=document.activeElement)==null?void 0:_r.value;typeof to=="string"&&to.trim()===""&&Oe.current.model.commit(function(Fo){Fo.set(so.data,"text","\u672A\u547D\u540D"),Oe.current.commandHandler.stopCommand()},"increment")}),vi.nodeTemplate=qe(en.NB,"Auto",{locationSpot:en.z6.Center},new en.KX("location","location",en.E9.parse).makeTwoWay(en.E9.stringify),qe(en.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 en.KX("stroke").makeTwoWay(),new en.KX("fill").makeTwoWay(),new en.KX("figure")),qe(en.al,{margin:new en.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new en.$u(16,16),maxSize:new en.$u(10,NaN),textAlign:"center",editable:!0},new en.KX("key").makeTwoWay())),setTimeout(()=>{Oe.current.grid=qe(en.s_,"Grid",qe(en.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),qe(en.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 Di=()=>le(this,null,function*(){var qe,si=Oe.current.makeImage();const Ei=yield(0,mt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:si.src,file_data:JSON.stringify({login:(qe=(0,pt.eY)())==null?void 0:qe.login,data:JSON.parse(Oe.current.model.toJson())})}});Tn({src:Ei.url})});return(0,Mt.useEffect)(()=>(setTimeout(()=>{Si()},500),Qn(wn+1),()=>{Oe.current=null}),[]),At.createElement("div",{ref:Le,className:An.current?`${ft.maxH60} body-overflow-initial`:"body-overflow-initial"},At.createElement(Mn.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!wn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:At.createElement(Vn.Z,null,At.createElement(Ot.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),At.createElement(Ot.Z,{onClick:()=>{var qe,si,Ei=Oe.current.selection.first();if(An.current=!An.current,document.activeElement&&Ei){let tr=(si=(qe=document.activeElement)==null?void 0:qe.value)==null?void 0:si.trim();typeof tr=="string"&&Oe.current.model.commit(function(On){On.set(Ei.data,"text",tr||"\u672A\u547D\u540D"),Oe.current.commandHandler.stopCommand()},"increment")}Qn(wn+1)}},At.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:In},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:xi})),At.createElement("div",{style:{flex:1,position:"relative"}},At.createElement("div",{ref:qn,style:{height:"80vh"}}))),At.createElement("div",{className:"tr"},At.createElement(qt.ZP,{size:"large",onClick:Di,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var ae=xe,ve=Ft(5112),Ue=Ft(5871);const Te=ve.ZP.Group,ke={margin:"0 8px"};var nn=({callback:In,onCancel:Tn})=>{function Oe(qn){In(qn)}return Mt.createElement(Ae.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Oe},Mt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Mt.createElement("span",{style:ke},"\u5355\u5143\u683C\u6570\uFF1A"),Mt.createElement("span",{style:ke},"\u884C\u6570"),Mt.createElement(Ae.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Mt.createElement(Ue.Z,null)),Mt.createElement("span",{style:ke},"\u5217\u6570"),Mt.createElement(Ae.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Mt.createElement(Ue.Z,null))),Mt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Mt.createElement("span",{style:ke},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Mt.createElement(Ae.default.Item,{name:"align"},Mt.createElement(Te,null,Mt.createElement(ve.ZP,{value:"default"},Mt.createElement("i",{className:"fa fa-align-justify"})),Mt.createElement(ve.ZP,{value:"left"},Mt.createElement("i",{className:"fa fa-align-left"})),Mt.createElement(ve.ZP,{value:"center"},Mt.createElement("i",{className:"fa fa-align-center"})),Mt.createElement(ve.ZP,{value:"right"},Mt.createElement("i",{className:"fa fa-align-right"}))))),Mt.createElement("div",{className:"flex-container flex-end"},Mt.createElement(qt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Mt.createElement(qt.ZP,{type:"ghost",onClick:Tn},"\u53D6\u6D88")))},Wn=Ft(78673),an=Ft(80727),gn=Ft.n(an),ti=(0,Mt.forwardRef)(({use3d:In,width:Tn,height:Oe,callback:qn,showSaveButton:xi},An)=>{const Le=(0,Mt.useRef)(),wn=(0,Mt.useRef)(),[Qn,Si]=(0,Mt.useState)(!1),Di=(0,Mt.useRef)({id:Le,appName:"graphing",width:Tn||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,Mt.useEffect)(()=>{wn.current=new(gn())(Di.current,!0),window.onload=function(){wn.current.inject("applet_container")}},[]);const qe=()=>{var si=window.ggbApplet.getPNGBase64(1,!0,72);return qn&&qn(si),si};return(0,Mt.useEffect)(()=>{Di.current.appName=Qn?"3D":"graphing",wn.current.inject("applet_container")},[Qn]),(0,Mt.useEffect)(()=>{Si(In)},[In]),(0,Mt.useImperativeHandle)(An,()=>({getImgData:qe})),Mt.createElement(Mt.Fragment,null,Mt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Le}),Mt.createElement(Vn.Z,{align:"middle"},Mt.createElement(Ot.Z,{flex:1},Mt.createElement(Wn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Qn,onChange:si=>Si(si)})),Mt.createElement(Ot.Z,null,Mt.createElement(qt.ZP,{size:"large",onClick:qe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Rn=Ft(41588),Ri=Ft(8591);const dr="link",Ji="upload-image",mr="add-flowchart",Mr="draw-image",ro="add-flowchart",Jr="code-block",$r="add-table",Tr="------------",Wr={default:Tr,left:`:${Tr}`,center:`:${Tr}:`,right:`${Tr}:`};var oo=Ft(58856);function Uo(){}let is=0;const uo=1e4,Ss="\u2581",To="@\u2581\u2581@",Xt="@\u2581@",ei=`
|
|
|
**\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`,Cs=["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 Os(In){return/^\d+$/.test(In)?`${In}px`:In}const va=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Ys={[va+"-B"]:"bold",[va+"-I"]:"italic"},Qr={[dr]:"\u6DFB\u52A0\u94FE\u63A5",[Jr]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ji]:"\u6DFB\u52A0\u56FE\u7247",[Mr]:"\u6DFB\u52A0\u753B\u56FE",[mr]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[$r]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Dr=({defaultValue:In="",onChange:Tn,width:Oe="100%",height:qn=400,miniToolbar:xi=!1,isFocus:An=!1,watch:Le,insertTemp:wn,mode:Qn="markdown",id:Si="markdown-editor-id",showResizeBar:Di=!1,noStorage:qe=!1,showNullButton:si=!1,showNullProgramButton:Ei=!1,hidetoolBar:tr=!1,fullScreen:On=!1,onBlur:ui,onCMBeforeChange:Cr,onFullScreen:rr,className:Gr="",disablePaste:or=!1,disabled:Lr=!1,disabledFill:er=!1,placeholder:Pr="",values:io="",extraUse:Oo})=>{const[pi,_o]=(0,Mt.useState)(null),[ys,Zo]=(0,Mt.useState)(In),[vi,ur]=(0,Mt.useState)(Le),[_r,so]=(0,Mt.useState)(On),[to,Fo]=(0,Mt.useState)(""),[Ai,yo]=(0,Mt.useState)(0),[jr,Sr]=(0,Mt.useState)(qn),[Pi,wo]=(0,Mt.useState)(!1),[Ci,Xo]=(0,Mt.useState)(0),[ua,xs]=(0,Mt.useState)(0),da=(0,Mt.useRef)(),Js=(0,Mt.useRef)(),Lo=(0,Mt.useRef)(),Do=(0,Mt.useRef)();(0,Mt.useEffect)(()=>{const ho=window.scrollY||window.pageYOffset;Zo(io),pi==null||pi.setValue(io),window.scrollTo(0,ho)},[io]),(0,Mt.useEffect)(()=>{rr==null||rr(_r)},[_r]),(0,Mt.useEffect)(()=>{if(da.current){let ho=function(Vi,Po){var Bs;if(or){Po.preventDefault();return}const ha=Po.clipboardData;if(ha){const sa=ha.types.toString(),Ro=ha.items;if(sa==="Files"||ha.types.indexOf("Files")>-1){if(Po.preventDefault(),Qn=="stex")return;try{let Ws=Ro[1];((Bs=Ro[0])==null?void 0:Bs.kind)==="file"&&(Ws=Ro[0]);const Na=Ws.getAsFile(),Ol=Na.name.split(".").pop();(0,Ze.I)(Na,Va=>{var bs,ai,Ia;Va.id?((bs=Na==null?void 0:Na.type)==null?void 0:bs.indexOf("image"))>-1?mo.replaceSelection(`<img width="100%" src="/api/attachments/${Va.id}?type=${Va.content_type})" alt="" />`):((ai=Na==null?void 0:Na.type)==null?void 0:ai.indexOf("video"))>-1?mo.replaceSelection(`<video width="100%" controls src="/api/attachments/${Va.id}"></video>`):((Ia=Na==null?void 0:Na.type)==null?void 0:Ia.indexOf("pdf"))>-1?mo.replaceSelection(`<a href="/api/attachments/${Va.id}?type=${Na.type}&disposition=inline" target="_blank">${Na.name}</a>`):Cs.includes(Ol)?mo.replaceSelection(`<a href="/api/attachments/${Va.id}?type=office&disposition=inline" target="_blank">${Na.name}</a>`):mo.replaceSelection(`[${Na.name}](/api/attachments/${Va.id}?type=${Va.content_type})`):(Va==null?void 0:Va.status)===401&&(document.location.href="/user/login")})}catch(Ws){Ri.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const mo=re().fromTextArea(da.current,{mode:Qn,lineNumbers:!xi,lineWrapping:!0,value:In,autoCloseTags:!0,autoCloseBrackets:!0});return mo.on("keyup",function(Vi,Po){Po.keyCode===8&&(Vi.getValue()==""?mo.setOption("placeholder",Pr):mo.setOption("placeholder",null))}),mo.on("keydown",function(Vi,Po){if(Po.keyCode===8){var Bs=hs(Vi);Bs&&Po.preventDefault()}}),An&&mo.focus(),mo.on("paste",ho),Lr&&mo.on("beforeChange",function(Vi,Po){(Po.origin==="paste"||Po.origin==="+input")&&Po.cancel()}),_o(mo),()=>{mo.off("paste",ho)}}},[]);const As=(0,Mt.useCallback)(()=>{if(Js.current)try{}catch(ho){console.log(ho,"---- to set md editor body height")}},[jr,Js,_r]);(0,Mt.useEffect)(()=>{function ho(){let mo=new Ie.Z(Vi=>{for(let Po of Vi)(Po.target.offsetHeight>0||Po.target.offsetWidth>0)&&(As(),pi.setSize("100%","100%"),pi.refresh())});return mo.observe(da.current.parentElement),mo}if(pi){const mo=ho();return()=>{var Vi,Po;(Vi=da.current)!=null&&Vi.parentElement&&mo.unobserve((Po=da.current)==null?void 0:Po.parentElement)}}},[pi,As]),(0,Mt.useEffect)(()=>{if(pi){let ho=[];for(const[mo,Vi]of Object.entries(Ys)){let Po={[mo]:()=>{wr(Vi)}};ho.push(Po),pi.addKeyMap(Po)}return()=>{for(let mo of ho)pi.removeKeyMap(mo)}}},[pi]),(0,Mt.useEffect)(()=>{On!==_r&&so(On)},[On]),(0,oo.Z)(()=>{if(!qe&&Ai>0){let ho=new Date().getTime(),mo=window.sessionStorage.getItem(Si);ho>=Ai+uo&&(!mo||mo!==ys)&&(window.sessionStorage.setItem(Si,ys),wo(!0))}},uo),(0,Mt.useEffect)(()=>{ur(Le)},[pi,Le]),(0,Mt.useEffect)(()=>{pi&&An&&pi.focus()},[pi,An]),(0,Mt.useEffect)(()=>{if(vi&&pi){let ho=function(Vi){let Po=Vi.target;if(Do.current){let Bs=Po.scrollTop/Po.scrollHeight;Do.current.scrollTop=Do.current.scrollHeight*Bs}};const mo=pi.getScrollerElement();return mo.addEventListener("scroll",ho),()=>{mo.removeEventListener("scroll",ho)}}},[pi,vi]),(0,Mt.useEffect)(()=>{if(pi&&Cr){let ho=function(mo,Vi){Cr(mo,Vi)};return pi.on("beforeChange",ho),()=>{pi.off("beforeChange",ho)}}},[pi,Cr]),(0,Mt.useEffect)(()=>{if(pi&&ui){let ho=function(){ui(pi.getValue())};return pi.on("blur",ho),()=>{pi.off("blur",ho)}}},[pi,ui]);function hs(ho,mo){var Vi=ho.getDoc(),Po=Vi.getCursor(),Bs=Vi.getLine(Po.line),ha=Bs.charAt(Po.ch-1),sa=Bs.lastIndexOf("@\u2581@",Po.ch),Ro=Bs.lastIndexOf("@\u2581\u2581@",Po.ch),Ws=sa>Ro?sa:Ro,Na=sa>Ro?3:4;if(To.indexOf(ha)===-1)return null;if(console.log("change1:",mo,ho,Bs,Po,Ws,sa,Ro,ha),Ws>=0&&Po.ch-Ws<5){var Ol=Ws+Na;return Vi.replaceRange("",{line:Po.line,ch:Ws},{line:Po.line,ch:Ol}),{line:Po.line,ch:Ol}}return null}(0,Mt.useEffect)(()=>{if(pi){let ho=function(mo,Vi){const Po=mo.getValue();Zo(Po),yo(new Date().getTime()),mo.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Tn&&(Ei?Tn(Po,Go(Po)):Tn(Po))};return pi.on("change",ho),()=>{pi.off("change",ho)}}},[pi,Tn]),(0,Mt.useEffect)(()=>{if(pi)if(In==null)pi.setValue(""),Zo("");else{const ho=window.scrollY||window.pageYOffset;In!==pi.getValue()&&(pi.setValue(In),Zo(In),pi.setCursor(Lr?1:pi.lineCount(),0),window.scrollTo(0,ho))}},[pi,In]);const wr=(0,Mt.useCallback)(ho=>{const mo=pi.getCursor(),Vi=pi.getSelection();let Po=Vi.split(`
|
|
|
`);switch(ho){case"bold":return pi.replaceSelection("**"+Vi+"**"),Vi===""&&pi.setCursor(mo.line,mo.ch+2),pi.focus();case"italic":return pi.replaceSelection("*"+Vi+"*"),Vi===""&&pi.setCursor(mo.line,mo.ch+1),pi.focus();case"code":return pi.replaceSelection("`"+Vi+"`"),Vi===""&&pi.setCursor(mo.line,mo.ch+1),pi.focus();case"inline-latex":return Fo("inline-latex"),pi.focus();case"latex":return pi.replaceSelection("```latex\n"+Vi+"\n```"),pi.setCursor(mo.line+1,Vi.length+1),pi.focus();case"line-break":return pi.replaceSelection(`<br/>
|
|
|
`),pi.focus();case"list-ul":return Vi===""?pi.replaceSelection("- "+Vi):pi.replaceSelection(Po.map(Bs=>Bs===""?"":`- ${Bs}`).join(`
|
|
|
`)),pi.focus();case"list-ol":return Vi===""?pi.replaceSelection("1. "+Vi):pi.replaceSelection(Po.map((Bs,ha)=>Bs===""?"":`${ha+1}. ${Bs}`).join(`
|
|
|
`)),pi.focus();case"add-null-ch":return Vi===""&&pi.setCursor(mo.line,mo.ch),pi.replaceSelection(Ss),pi.focus();case"add-signal":return Vi===""&&pi.setCursor(mo.line,mo.ch),pi.replaceSelection(Xt),pi.focus();case"add-multiple":return Vi===""&&pi.setCursor(mo.line,mo.ch),pi.replaceSelection(To),pi.focus();case"inster-template-1":return Vi===""&&pi.setCursor(mo.line,mo.ch),pi.replaceSelection(ei),pi.focus();case"eraser":return pi.setValue(""),pi.focus();case"trigger-watch":return ur(!vi),pi.focus();case"trigger-full-screen":return so(!_r),pi.focus();case dr:Fo(dr);return;case Jr:Fo(Jr);return;case Ji:Fo(Ji);return;case Mr:Fo(Mr);return;case"maths-latex":Fo("maths-latex");return;case mr:Fo(mr);return;case $r:Fo($r);return;default:throw new Error}},[pi,vi,_r]),Ne=(0,Mt.useCallback)((ho,mo)=>{var Vi,Po,Bs,ha,sa,Ro;switch(Fo(""),to){case dr:const{title:bs,link:ai}=ho;return pi.replaceSelection(`[${bs}](${ai})`),pi.focus();case Jr:const{language:Ia,content:Ac}=ho;return pi.replaceSelection(["```"+Ia,Ac,"```"].join(`
|
|
|
`)),pi.focus();case"maths-latex":for(var Ws=atob(ho),Na=new Uint8Array(Ws.length),Ol=0;Ol<Ws.length;Ol++)Na[Ol]=Ws.charCodeAt(Ol);var Va=new Blob([Na],{type:"image/png"});(0,Ze.I)(Va,Jo=>{Jo.id?pi.replaceSelection(``):(Jo==null?void 0:Jo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":pi.replaceSelection("`$$"+ho+"$$`");break;case Ji:case Mr:case ro:const{src:du,alt:Hh}=ho,Zr=mo,zs=(Bs=(Po=(Vi=Zr==null?void 0:Zr.name)==null?void 0:Vi.split("."))==null?void 0:Po.pop)==null?void 0:Bs.call(Po);return((ha=Zr==null?void 0:Zr.type)==null?void 0:ha.indexOf("image"))>-1||!(Zr!=null&&Zr.type)?Zr!=null&&Zr.align||Zr!=null&&Zr.width?pi.replaceSelection(`<p style="text-align:${Zr.align||"initial"}"><img width="${Zr.width?Zr.width+"%":"initial"}" src="${du}" alt="${Hh||""}" /></p>`):pi.replaceSelection(`<img width="100%" src="${du}" alt="${Hh||""}" />`):((sa=Zr==null?void 0:Zr.type)==null?void 0:sa.indexOf("video"))>-1?pi.replaceSelection(`<video width="100%" controls src="${du}"></video>`):((Ro=Zr==null?void 0:Zr.type)==null?void 0:Ro.indexOf("pdf"))>-1?pi.replaceSelection(`<a href="${du}?type=${Zr.type}&disposition=inline" target="_blank">${Zr.name}</a>`):Cs.includes(zs)?pi.replaceSelection(`<a href="${du}?type=office&disposition=inline" target="_blank">${Zr.name}</a>`):pi.replaceSelection(`[${Zr.name}](${du})`),pi.focus();case $r:const{row:Is,col:Es,align:Ks}=ho;let Au=`
|
|
|
`;for(let Jo=0;Jo<Is;Jo++){let Qs=[],ws=[];for(let Hr=0;Hr<Es;Hr++)Jo===1&&ws.push(Wr[Ks]),Qs.push(" ");Jo===1&&(Au+=`| ${ws.join(" | ")} |
|
|
|
`),Au+=`| ${Qs.join(Es===1?"":" | ")} |
|
|
|
`}return pi.replaceSelection(Au+`
|
|
|
`),pi.focus();default:throw new Error}},[pi,to]),ds=(0,Mt.useMemo)(()=>{switch(to){case dr:return Mt.createElement(bn,{callback:Ne,onCancel:ia});case Jr:return Mt.createElement(Ln.Z,{callback:Ne,onCancel:ia});case Ji:return Mt.createElement(Ze.Z,{callback:Ne,onCancel:ia});case mr:return Mt.createElement(ae,{callback:Ne,onCancel:ia});case $r:return Mt.createElement(nn,{callback:Ne,onCancel:ia});case"maths-latex":return Mt.createElement(ti,{showSaveButton:!0,callback:Ne});case"inline-latex":return Mt.createElement(Rn.Z,{showSaveButton:!0,callback:Ne});default:return null}},[to]);function ia(){Fo("")}(0,Mt.useEffect)(()=>{if(Lo.current){let ho=function(sa){Bs=!0,ha=sa.pageY},mo=function(){Bs=!1},Vi=function(sa){if(Bs){let Ro=sa.pageY-ha;Ro<0&&(Ro=0),Ro>300&&(Ro=300);let Ws=qn+Ro+"px";Sr(Ws)}},Po=Lo.current,Bs=!1,ha=0;return Po.addEventListener("mousedown",ho),document.addEventListener("mousemove",Vi),document.addEventListener("mouseup",mo),()=>{Po.removeEventListener("mousedown",ho),document.removeEventListener("mousemove",Vi),document.removeEventListener("mouseup",mo)}}},[pi,Lo]),(0,Mt.useEffect)(()=>{Sr(qn)},[qn]);const ll=Os(Oe),ul=Os(jr),Ml={width:ll,height:ul},ls=(0,Mt.useMemo)(()=>{if(Ai){let ho=new Date(Ai),mo=ho.getHours(),Vi=ho.getMinutes(),Po=ho.getSeconds();return mo=mo<10?"0"+mo:mo,Vi=Vi<10?"0"+Vi:Vi,Po=Po<10?"0"+Po:Po,`${mo}:${Vi}:${Po}`}return 0},[Ai]),Go=ho=>{const mo=[];if(Ei){let Vi=-1;ho=ho.replace(/(@▁▁@|@▁@)/g,function(Po,Bs,ha){mo.push({multiLine:Po!==Xt})})}return mo};function Ns(){window.sessionStorage.removeItem(Si),wo(!1),yo(0)}function Wo(){wo(!1),yo(0),pi.setValue(window.sessionStorage.getItem(Si))}(0,Mt.useEffect)(()=>{Qr[to]&&to!==Mr&&to!==mr&&setTimeout(()=>{const ho=document.getElementsByClassName("markdown-popup-form")[0],mo=window.innerWidth/2-ho.offsetWidth/2,Vi=window.innerHeight/2-ho.offsetHeight/2;Xo(mo),xs(Vi)},0)},[to]);const Gs=ho=>{ho.preventDefault();const mo=ho.clientX-Ci,Vi=ho.clientY-ua;document.body.onmousemove=Po=>{let Bs=Po.clientX-mo,ha=Po.clientY-Vi;const sa=document.getElementsByClassName("markdown-popup-form")[0],Ro=window.innerWidth-sa.offsetWidth,Ws=window.innerHeight-sa.offsetHeight;Bs=Math.max(0,Math.min(Bs,Ro)),ha=Math.max(0,Math.min(ha,Ws)),wl(Po.clientX,Po.clientY,mo,Vi)&&(Xo(Bs),xs(ha))},document.body.onmouseup=function(){document.body.onmousemove=null}},wl=(ho,mo,Vi,Po)=>{const Bs=document.body.clientHeight,ha=document.body.clientWidth;return ho<20&&Vi>ho||ho>ha-20&&Vi<ho||mo<20&&Po>mo||mo>Bs-20&&Po<mo?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Mt.createElement(Mt.Fragment,null,Mt.createElement("div",{className:"markdown-editor-wrapper",ref:Js},Mt.createElement("div",{className:`markdown-editor-container ${Gr} ${vi?"on-preview":""} ${xi?"mini":""} ${_r?"full-screen":""}`,style:Ml},Mt.createElement(se,{insertTemp:wn,watch:vi,fullScreen:_r,showNullButton:si,showNullProgramButton:Ei,onActionCallback:wr,hidetoolBar:tr,extraUse:Oo}),Mt.createElement("div",{className:"markdown-editor-body"},Mt.createElement("div",{className:"codemirror-container"},Mt.createElement("textarea",{ref:da,placeholder:Pr})),vi?Mt.createElement("div",{ref:Do,className:"preview-container"},Qn==="stex"&&Mt.createElement(Kt,{value:ys}),Qn!=="stex"&&Mt.createElement(oe.Z,{disabledFill:er,showProgramFill:Ei,value:ys})):null))),Di?Mt.createElement("a",{ref:Lo,className:"editor-resize"}):null,to===Mr&&Mt.createElement(Bi,{callback:Ne,onCancel:ia}),to===mr&&Mt.createElement(ae,{callback:Ne,onCancel:ia}),Mt.createElement(ue.Z,null,Qr[to]&&to!==Mr&&to!==mr?Mt.createElement(Mn.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Ci,top:ua},title:Mt.createElement("div",{style:{cursor:"move"},onMouseDown:Gs},Qr[to]),open:!0,onCancel:ia,footer:null,destroyOnClose:!0,width:to===mr?"1200px":null,height:to===mr?"80vh":null,className:"markdown-popup-form"},ds):null))}},28451:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return Ut},I:function(){return se}});var Mt=Ft(78241),ce=Ft(8591),re=Ft(92832),Ie=Ft(81327),ee=Ft(5871),Vt=Ft(5112),Nt=Ft(3113),jt=Ft(77903),te=Ft(59301),Pt=Ft(59301),oe=Object.defineProperty,Kt=Object.defineProperties,$t=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,lt=(ue,Ae,Pe)=>Ae in ue?oe(ue,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ue[Ae]=Pe,rt=(ue,Ae)=>{for(var Pe in Ae||(Ae={}))et.call(Ae,Pe)&<(ue,Pe,Ae[Pe]);if(Ct)for(var Pe of Ct(Ae))tt.call(Ae,Pe)&<(ue,Pe,Ae[Pe]);return ue},ht=(ue,Ae)=>Kt(ue,$t(Ae));const{useForm:dt}=Mt.default,xt={width:280,marginRight:10},It={labelCol:{span:5},wrapperCol:{span:19}};var Ut=({callback:ue,onCancel:Ae})=>{const[Pe]=dt();let qt=(0,te.useRef)();function ze(_e){qt.current.width=Pe.getFieldValue("width"),qt.current.align=Pe.getFieldValue("align"),ue(_e,qt.current)}function Wt(_e,Me){if(_e.status===-1){ce.ZP.error(_e.message);return}Pe.setFieldsValue({src:`/api/attachments/${_e.id}`,type:Me.type})}function Ge(_e){let Me=_e.target.files[0];qt.current=Me,se(Me,Wt)}return Pt.createElement(Mt.default,ht(rt({form:Pe},It),{className:"upload-image-panel",onFinish:ze,style:{width:470,overflow:"hidden"}}),Pt.createElement(Mt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Pt.createElement("div",{className:"flex-container"},Pt.createElement(Mt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Pt.createElement(re.default,{style:xt})),Pt.createElement(Gt,{onFileChange:Ge}))),Pt.createElement(Mt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Pt.createElement(re.default,{style:{width:264}})),Pt.createElement(Mt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Pt.createElement(Ie.Z,null,Pt.createElement(Mt.default.Item,{name:"width",style:{margin:0}},Pt.createElement(ee.Z,{style:{width:264}})),Pt.createElement("span",{className:"ml8"},"%"))),Pt.createElement(Mt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Pt.createElement(Vt.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(Mt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Pt.createElement(Nt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Pt.createElement(Nt.ZP,{type:"default",onClick:Ae},"\u53D6\u6D88"))))};function Gt({onFileChange:ue}){return Pt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Pt.createElement("input",{type:"file",onChange:ue}))}function se(ue,Ae){if(!ue)throw new String("\u6CA1\u6709\u6587\u4EF6");let Pe=new FormData;Pe.append("editormd-image-file",ue),Pe.append("file_param_name","editormd-image-file"),Pe.append("byxhr","true");var qt=new window.XMLHttpRequest;qt.withCredentials=!0,qt.addEventListener("load",function(ze){Ae(JSON.parse(ze.target.responseText),ue)},!1),qt.addEventListener("error",function(ze){console.error(ze)},!1),qt.open("POST",`${jt.KI}/api/attachments.json`),qt.send(Pe)}},79346:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return re}});var Mt=Ft(59301),ce=Ft(4676);class re extends Mt.Component{constructor(ee){super(ee);const Vt=window.document;this.node=Vt.createElement("div"),Vt.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(hi,Cn,Ft){"use strict";Ft.d(Cn,{SV:function(){return le},ZP:function(){return At}});var Mt=Ft(59301),ce=Ft(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"]},Ie={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(`
|
|
|
`)}]},Vt={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(`
|
|
|
`)}]},Nt={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=Ft(53184),te=Ft.n(jt),Pt=Object.defineProperty,oe=Object.defineProperties,Kt=Object.getOwnPropertyDescriptors,$t=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,tt=(xe,ae,ve)=>ae in xe?Pt(xe,ae,{enumerable:!0,configurable:!0,writable:!0,value:ve}):xe[ae]=ve,lt=(xe,ae)=>{for(var ve in ae||(ae={}))Ct.call(ae,ve)&&tt(xe,ve,ae[ve]);if($t)for(var ve of $t(ae))et.call(ae,ve)&&tt(xe,ve,ae[ve]);return xe},rt=(xe,ae)=>oe(xe,Kt(ae)),ht=(xe,ae,ve)=>new Promise((Ue,Te)=>{var ke=an=>{try{Wn(ve.next(an))}catch(gn){Te(gn)}},nn=an=>{try{Wn(ve.throw(an))}catch(gn){Te(gn)}},Wn=an=>an.done?Ue(an.value):Promise.resolve(an.value).then(ke,nn);Wn((ve=ve.apply(xe,ae)).next())});const dt={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},xt=(xe,ae)=>ae.map(ve=>({label:ve,kind:xe.languages.CompletionItemKind.Keyword,insertText:ve})),It=xe=>Object.keys(dt.tables).map(ae=>({label:ae,kind:xe.languages.CompletionItemKind.Variable,insertText:ae})),Ut=(xe,ae)=>{const ve=dt.tables[xe];return ve?ve.map(Ue=>({label:Ue,kind:ae.languages.CompletionItemKind.Field,insertText:Ue})):[]};function Gt(xe,ae,ve,Ue,Te){let ke=ae.getWordUntilPosition(ve),nn={startLineNumber:ve.lineNumber,endLineNumber:ve.lineNumber,startColumn:ke.startColumn,endColumn:ke.endColumn},Wn=Ue.map(an=>({label:an,kind:xe.languages.CompletionItemKind.Keyword,insertText:an,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:nn}));return Te.map(an=>{Wn.push(rt(lt({},an),{range:nn}))}),Wn}var se=xe=>{dt.languages.map(Te=>(xe.languages.registerDocumentFormattingEditProvider(Te,{provideDocumentFormattingEdits(ke,nn,Wn){return ht(this,null,function*(){const an=te()(ke.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:ke.getFullModelRange(),text:an}]})}}),Te));const ae=ee.quickKey.map(Te=>({label:Te.label,kind:xe.languages.CompletionItemKind.Method,insertText:Te.content,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ve=Vt.quickKey.map(Te=>({label:Te.label,kind:xe.languages.CompletionItemKind.Method,insertText:Te.content,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Ue=Ie.quickKey.map(Te=>({label:Te.label,kind:xe.languages.CompletionItemKind.Method,insertText:Te.content,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet}));xe.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Te,ke){var nn=Te.getWordUntilPosition(ke),Wn={startLineNumber:ke.lineNumber,endLineNumber:ke.lineNumber,startColumn:nn.startColumn,endColumn:nn.endColumn},an=Te.getLineContent(ke.lineNumber).substring(nn.startColumn-2,nn.endColumn);return{suggestions:[...ee.keywords.map(gn=>({label:gn,kind:xe.languages.CompletionItemKind.Function,documentation:gn,insertText:gn,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Wn})),...ee.quickKey.map(gn=>({label:gn.label,kind:xe.languages.CompletionItemKind.Function,documentation:gn.content,insertText:an.startsWith("#")?gn.content.replace(/#/,""):gn.content,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Wn}))]}}}),xe.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Te,ke){var nn=Te.getWordUntilPosition(ke),Wn={startLineNumber:ke.lineNumber,endLineNumber:ke.lineNumber,startColumn:nn.startColumn,endColumn:nn.endColumn};return{suggestions:[...re.keywords.map(an=>({label:an,kind:xe.languages.CompletionItemKind.Function,documentation:an,insertText:an,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Wn}))]}}}),xe.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Te,ke){var nn=Te.getWordUntilPosition(ke),Wn={startLineNumber:ke.lineNumber,endLineNumber:ke.lineNumber,startColumn:nn.startColumn,endColumn:nn.endColumn},an=Te.getLineContent(ke.lineNumber).substring(nn.startColumn-2,nn.endColumn);return{suggestions:[...Ie.keywords.map(gn=>({label:gn,kind:xe.languages.CompletionItemKind.Function,documentation:gn,insertText:gn,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Wn})),...Ie.quickKey.map(gn=>({label:gn.label,kind:xe.languages.CompletionItemKind.Function,documentation:gn.content,insertText:an.startsWith("#")?gn.content.replace(/#/,""):gn.content,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Wn}))]}}}),xe.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Te,ke){var nn=Te.getWordUntilPosition(ke),Wn={startLineNumber:ke.lineNumber,endLineNumber:ke.lineNumber,startColumn:nn.startColumn,endColumn:nn.endColumn},an=Te.getLineContent(ke.lineNumber).substring(nn.startColumn-2,nn.endColumn);return{suggestions:[...Nt.keywords.map(gn=>({label:gn,kind:xe.languages.CompletionItemKind.Function,documentation:gn,insertText:gn,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Wn})),...Nt.quickKey.map(gn=>({label:gn.label,kind:xe.languages.CompletionItemKind.Function,documentation:gn.content,insertText:an.startsWith("#")?gn.content.replace(/#/,""):gn.content,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Wn}))]}}}),xe.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Te,ke){var nn=Te.getWordUntilPosition(ke),Wn={startLineNumber:ke.lineNumber,endLineNumber:ke.lineNumber,startColumn:nn.startColumn,endColumn:nn.endColumn},an=Te.getLineContent(ke.lineNumber).substring(nn.startColumn-2,nn.endColumn);return{suggestions:[...Vt.keywords.map(gn=>({label:gn,kind:xe.languages.CompletionItemKind.Function,documentation:gn,insertText:gn,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Wn})),...Vt.quickKey.map(gn=>({label:gn.label,kind:xe.languages.CompletionItemKind.Function,documentation:gn.content,insertText:an.startsWith("#")?gn.content.replace(/#/,""):gn.content,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Wn}))]}}})};const ue="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ae=Object.defineProperty,Pe=(xe,ae,ve)=>ae in xe?Ae(xe,ae,{enumerable:!0,configurable:!0,writable:!0,value:ve}):xe[ae]=ve,qt=(xe,ae,ve)=>Pe(xe,typeof ae!="symbol"?ae+"":ae,ve);const ze=class bw{constructor(ae,ve,Ue){this.placeholder=ae,this.editor=ve,this.monaco=Ue,ve.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=Ft(96236),Me=Ft(8591),We=Ft(6848),Re=Ft(89392),ye=Ft(34604),ne=Ft(56102),Ce=Object.defineProperty,bn=Object.defineProperties,Ln=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,Mn=Object.prototype.hasOwnProperty,Vn=Object.prototype.propertyIsEnumerable,gi=(xe,ae,ve)=>ae in xe?Ce(xe,ae,{enumerable:!0,configurable:!0,writable:!0,value:ve}):xe[ae]=ve,Kn=(xe,ae)=>{for(var ve in ae||(ae={}))Mn.call(ae,ve)&&gi(xe,ve,ae[ve]);if(Ze)for(var ve of Ze(ae))Vn.call(ae,ve)&&gi(xe,ve,ae[ve]);return xe},Bi=(xe,ae)=>bn(xe,Ln(ae)),en=(xe,ae)=>{var ve={};for(var Ue in xe)Mn.call(xe,Ue)&&ae.indexOf(Ue)<0&&(ve[Ue]=xe[Ue]);if(xe!=null&&Ze)for(var Ue of Ze(xe))ae.indexOf(Ue)<0&&Vn.call(xe,Ue)&&(ve[Ue]=xe[Ue]);return ve},Li=(xe,ae,ve)=>new Promise((Ue,Te)=>{var ke=an=>{try{Wn(ve.next(an))}catch(gn){Te(gn)}},nn=an=>{try{Wn(ve.throw(an))}catch(gn){Te(gn)}},Wn=an=>an.done?Ue(an.value):Promise.resolve(an.value).then(ke,nn);Wn((ve=ve.apply(xe,ae)).next())});function Oi(xe){return/^\d+$/.test(xe)?`${xe}px`:xe}function Lt(){}let Ot=!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(xe=[]){let ae=xe;if(Array.isArray(xe)){for(let ve=0;ve<xe.length;ve++){let Ue=mt[xe[ve]];if(Ue)return Ue}return ae[0]}return mt[ae]||ae}let pt=null;var At=xe=>{var ae=xe,{width:ve="100%",height:Ue="100%",value:Te,language:ke="javascript",style:nn={},options:Wn={},overrideServices:an={},theme:gn="vs-dark",onEditBlur:Bn,isCopy:ti=!1,onSave:Rn,autoHeight:Ri=!1,forbidCopy:dr=!1,onChange:Ji=Lt,editorDidMount:mr=Lt,onFocus:Mr=Lt,onBreakPoint:ro=Lt,breakPointValue:Jr=[],filename:$r="educoder.txt",errorLine:Tr,errorContent:Wr="",highlightLine:oo,openBreakPoint:Uo=!1,placeholder:is=""}=ae,uo=en(ae,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const Ss=(0,Mt.useRef)(),To=(0,Mt.useRef)({}),Xt=(0,Mt.useRef)(),ei=(0,Mt.useRef)(),Cs=(0,Mt.useRef)([]),Os=(0,Mt.useRef)(!1),ma=(0,Mt.useRef)(),va=(0,Mt.useRef)(),Ys=(0,Mt.useRef)(!1),[Qr,Dr]=(0,Mt.useState)(!1);function In(){let On;return Ss.current&&(On=new ce.Z(ui=>{for(let Cr of ui)(Cr.target.offsetHeight>0||Cr.target.offsetWidth>0)&&To.current.instance.layout()}),On.observe(Ss.current)),On}function Tn(){Me.ZP.warning({content:decodeURIComponent(ue),key:"monaco-editor-tip"})}const Oe=()=>{let On=To.current.instance;if(Te!=null&&On&&Qr){const ui=On.getModel();ui&&Te!==ui.getValue()&&(Ot=!0,ui.setValue(Te),On.layout(),Ot=!1)}};(0,Mt.useEffect)(()=>{const On=ye.Z.subscribe("formatDocument",ui=>{var Cr;let rr=To.current.instance;(Cr=rr==null?void 0:rr.getAction)==null||Cr.call(rr,"editor.action.formatDocument").run()});return window.updateMonacoValue=ui=>{Ji(ui)},On},[]),(0,Mt.useEffect)(()=>{var On;let ui=To.current.instance;ei.current&&clearTimeout(ei.current),ei.current=setTimeout(()=>{Oe()},500),Te&&(Te!=null&&Te.length)&&((On=ui==null?void 0:ui.updateOptions)==null||On.call(ui,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Te.split(/\r\n|\r|\n/g).length))+3,5)}))},[Te,Qr,To.current]),(0,Mt.useEffect)(()=>{if(Tr&&To.current&&To.current.instance){let ui=To.current.instance;ui.changeViewZones(function(Cr){var rr=document.createElement("div");rr.style.padding="10px 20px",rr.style.width="calc(100% - 20px)",rr.className="my-error-line-wrp",rr.innerHTML=Wr,Cr.addZone({afterLineNumber:Tr||11,heightInLines:3,domNode:rr})});var On={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};ui.addOverlayWidget(On),ui.revealPositionInCenter({lineNumber:20,column:1})}},[Tr,To.current,Qr]);const qn=(On="",ui)=>{if(!On||On.trim()==="")return!0;const rr=To.current.instance.getModel().getLineTokens(ui);let Gr=!1;for(let or=0;or<2;or++)rr.getStandardTokenType(or)===1&&(Gr=!0);return Gr};(0,Mt.useEffect)(()=>{var On;const ui=(On=To.current)==null?void 0:On.instance;if(ui&&Qr&&dr){const Cr=ui.onDidBlurEditorWidget(()=>{Ys.current=!1}),rr=ui.onDidFocusEditorText(()=>{Ys.current=!0});return()=>{Cr.dispose(),rr.dispose()}}},[To.current,Qr,dr]),(0,Mt.useEffect)(()=>{var On;if((On=To.current)!=null&&On.instance&&Qr&&Uo){let ui=To.current.instance,Cr=ui.getModel();if(!Cr)return;(()=>{var Zo;let vi=[],ur=[];const _r=Cr.getAllDecorations();for(let to of _r)to.options.className==="highlighted-line"&&(vi.push((Zo=to==null?void 0:to.range)==null?void 0:Zo.startLineNumber),ur.push(to==null?void 0:to.id));if(oo===vi[0])return;Cr.deltaDecorations(ur,[]);const so=Cr.getLineCount();oo&&oo<=so&&(ui.deltaDecorations([],[{range:new pt.Range(oo,1,oo,Cr.getLineMaxColumn(oo)),options:{isWholeLine:!0,className:"highlighted-line"}}]),ui.revealLineInCenter(oo))})();const Gr=(Zo=!1)=>{var vi;let ur=[],_r=[];const so=Cr.getAllDecorations();for(let to of so)to.options.linesDecorationsClassName==="breakpoints-select"&&(ur.push((vi=to==null?void 0:to.range)==null?void 0:vi.startLineNumber),_r.push(to==null?void 0:to.id));if(Zo)return{lines:ur,ids:_r};ro(ur)},or=Zo=>Li(void 0,null,function*(){let vi={range:new pt.Range(Zo,1,Zo,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Cr.deltaDecorations([],[vi]),Gr()}),Lr=Zo=>Li(void 0,null,function*(){let vi=[];const ur=ui.getLineDecorations(Zo);for(let _r of ur)_r.options.linesDecorationsClassName==="breakpoints-select"&&vi.push(_r.id);yield Cr.deltaDecorations(vi,[]),Gr()}),er=Zo=>{let vi=ui.getLineDecorations(Zo);for(let ur of vi)if(ur.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Re.isEqual)(Jr,Gr(!0).lines)){Cr.deltaDecorations(Gr(!0).ids,[]);const Zo=Jr.map(vi=>({range:new pt.Range(vi,1,vi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Cr.deltaDecorations([],Zo)}const Pr=ui.onDidChangeModelContent(Zo=>{let vi=ui.getPosition();if(vi){let ur=vi.lineNumber;clearTimeout(va.current),va.current=setTimeout(()=>{qn(Cr.getLineContent(ur),ur)?Lr(ur):er(ur)?(Lr(ur),or(ur)):Gr()},100)}}),io=ui.onMouseDown(Zo=>{var vi,ur,_r;if(Zo.target.detail&&((_r=(ur=(vi=Zo.target)==null?void 0:vi.element)==null?void 0:ur.className)!=null&&_r.includes("line-numbers"))){let so=Zo.target.position.lineNumber;if(qn(Cr.getLineContent(so),so))return;er(so)?Lr(so):or(so)}}),Oo=Zo=>{let vi={range:new pt.Range(Zo,1,Zo,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Cs.current=ui.deltaDecorations(Cs.current,[vi])},pi=()=>{Cs.current=ui.deltaDecorations(Cs.current,[])},_o=ui.onMouseMove(Zo=>{var vi,ur,_r;if(pi(),Zo.target.detail&&((_r=(ur=(vi=Zo.target)==null?void 0:vi.element)==null?void 0:ur.className)!=null&&_r.includes("line-numbers"))){let so=Zo.target.position.lineNumber;if(qn(Cr.getLineContent(so),so))return;Oo(so)}}),ys=ui.onMouseLeave(()=>{pi()});return()=>{Pr.dispose(),io.dispose(),_o.dispose(),ys.dispose()}}},[To.current,Qr,Jr,oo,Uo,ke]),(0,Mt.useEffect)(()=>{var On;(On=To.current)!=null&&On.instance&&Uo&&To.current.instance.setPosition({lineNumber:0,column:0})},[oo]);function xi(){let On=To.current.instance;if(On){const ui=On.getSelection(),Cr=To.current.pastePos||{},rr=new pt.Range(Cr.startLineNumber||ui.endLineNumber,Cr.startColumn||ui.endColumn,Cr.endLineNumber||ui.endLineNumber,Cr.endColumn||ui.endColumn);setTimeout(()=>{On.executeEdits("",[{range:rr,text:""}])},300)}}function An(On){(window.navigator.platform.match("Mac")?On.metaKey:On.ctrlKey)&&On.keyCode==83&&(On.preventDefault(),Rn())}const Le=()=>{if(Ri&&To.current.instance){const On=To.current.instance.getContentHeight();Ei(On<Ue?Ue:On)}else Ei(Ue)};function wn(On){var ui=document.createEvent("MouseEvents");ui.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),On.dispatchEvent(ui)}const Qn=On=>{if(!Ys.current)return;const{keyCode:ui,ctrlKey:Cr,metaKey:rr,target:Gr,type:or}=On;return(or==="paste"||(ui===67||ui===86)&&(rr||Cr))&&Gr.nodeName==="TEXTAREA"&&(Tn(),On.preventDefault()),!1};function Si(On,ui){var Cr=window.URL||window.webkitURL||window,rr=new Blob([ui]),Gr=document.createElementNS("http://www.w3.org/1999/xhtml","a");Gr.href=Cr.createObjectURL(rr),Gr.download=On,wn(Gr)}(0,Mt.useEffect)(()=>{Le()},[Le]),(0,Mt.useEffect)(()=>{Ss.current&&!Qr&&Promise.all([Ft.e(8909),Ft.e(3267)]).then(Ft.bind(Ft,71448)).then(On=>{try{pt=On,To.current.instance=pt.editor.create(Ss.current,{value:Te,language:ft(ke),theme:gn,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},an);const ui=To.current.instance;let Gr=[..._e.BH._menuItems].find(Pr=>Pr[0]._debugName=="EditorContext")[1],or=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Lr=(Pr,io)=>{var Oo,pi;let _o=Pr._first;do io.includes((pi=(Oo=_o.element)==null?void 0:Oo.command)==null?void 0:pi.id)&&Pr._remove(_o);while(_o=_o.next)};if(mr(ui,pt),setTimeout(()=>{Le(),To.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Si($r||"educoder.txt",ui.getValue())}})},500),To.current.subscription=ui.onDidChangeModelContent(Pr=>{Os.current?clearTimeout(ma.current):(Le(),Ji(ui.getValue(),Pr)),ma.current=setTimeout(()=>{Os.current=!1},500)}),window.Monaco||se(pt,ft(ke)),dr&&(Lr(Gr,or),Ss.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Qn),window.removeEventListener("paste",Qn),window.addEventListener("keydown",Qn),window.addEventListener("paste",Qn)),window.Monaco=pt,Bn&&ui.onDidBlurEditorWidget(()=>{Bn(ui.getValue())}),Mr&&ui.onDidFocusEditorText(()=>{Mr(ui.getValue())}),dr)try{ui.onDidPaste(Pr=>{const io=ui.getSelection(),Oo=To.current.pastePos||{},pi=new pt.Range(Oo.startLineNumber||io.endLineNumber,Oo.startColumn||io.endColumn,Oo.endLineNumber||io.endLineNumber,Oo.endColumn||io.endColumn);ui.executeEdits("",[{range:Pr.range,text:""}])})}catch(Pr){}let er=In();return is&&typeof is=="string"&&new Ge(is,ui,pt),Dr(!0),()=>{const Pr=To.current.instance;Pr.dispose();const io=Pr.getModel();io&&io.dispose(),To.current.subscription&&To.current.subscription.dispose(),er.unobserve(Ss.current)}}catch(ui){}})},[]),(0,Mt.useEffect)(()=>{if(To.current.instance&&Qr)return document.addEventListener("keydown",An,!1),()=>{document.removeEventListener("keydown",An)}},[Rn,Qr]),(0,Mt.useEffect)(()=>{let On=To.current.instance;if(On&&Qr){let ui=ft(ke);pt.editor.setModelLanguage(On.getModel(),ui)}},[ke,Qr]),(0,Mt.useEffect)(()=>{To.current.instance&&Qr&&pt.editor.setTheme(gn)},[gn,Qr]),(0,Mt.useEffect)(()=>{let On=To.current.instance;Xt.current=Wn,On&&Qr&&(On.updateOptions(Kn({},Wn)),setTimeout(()=>{On.getModel().updateOptions(Kn({},Wn))},200))},[JSON.stringify(Wn),Qr]),(0,Mt.useEffect)(()=>{let On=To.current.instance;On&&Qr&&On.layout()},[ve,Ue,Qr]);const[Di,qe]=(0,Mt.useState)(Oi(ve)),[si,Ei]=(0,Mt.useState)(Oi(Ue)),tr=Bi(Kn({},nn),{width:Di,height:si,position:"relative"});return Mt.createElement("div",{className:"my-monaco-editor",ref:Ss,style:tr},ti&&Mt.createElement(ne.CopyToClipboard,{text:Te,onCopy:()=>Me.ZP.success("\u590D\u5236\u6210\u529F")},Mt.createElement(We.Z,{title:"\u590D\u5236\u4EE3\u7801"},Mt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Mt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function le({width:xe="100%",height:ae="100%",original:ve,modified:Ue,language:Te,options:ke={}}){const nn=(0,Mt.useRef)(),[Wn,an]=(0,Mt.useState)(null);function gn(Ri){let dr;return nn.current&&(dr=new ce.Z(Ji=>{for(let mr of Ji)(mr.target.offsetHeight>0||mr.target.offsetWidth>0)&&Ri.layout()}),dr.observe(nn.current)),dr}(0,Mt.useEffect)(()=>(nn.current&&Promise.all([Ft.e(8909),Ft.e(9404)]).then(Ft.bind(Ft,2550)).then(Ri=>{pt=Ri;const dr=pt.editor.createDiffEditor(nn.current,Bi(Kn({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},ke),{wordWrap:!0}));an(dr);let Ji=gn(dr);return()=>{dr.dispose();const mr=dr.getModel();mr&&mr.dispose(),Ji.unobserve(nn.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Mt.useEffect)(()=>{Wn&&Wn.setModel({original:pt.editor.createModel(ve,Te),modified:pt.editor.createModel(Ue,Te)})},[ve,Ue,Te,Wn]);const Bn=Oi(xe),ti=Oi(ae),Rn={width:Bn,height:ti};return Mt.createElement("div",{className:"my-diff-editor",ref:nn,style:Rn})}},85057:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{jL:function(){return ee},w9:function(){return Mn},QD:function(){return Ji},cQ:function(){return ne},op:function(){return gn},O5:function(){return Ys},_b:function(){return Tr},t7:function(){return rt},Gi:function(){return Li},YG:function(){return Bi},qp:function(){return oe},vr:function(){return ro},qE:function(){return Rn},Je:function(){return xt},wb:function(){return _e},cq:function(){return pt},tp:function(){return Ct}});var Mt=Ft(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:Qr=[],img:Dr,imgWidth:In=346,title:Tn,sunTitle:Oe,bannerExtraContent:qn})=>Mt.createElement("div",{className:ce.banner},Mt.createElement("div",{className:ce.content},Mt.createElement("aside",null,Mt.createElement("p",null,Mt.createElement("b",null,Tn),Mt.createElement("span",null,Oe)),Qr.length>0&&Mt.createElement("div",{className:ce.btns},Qr.map((xi,An)=>Mt.createElement("div",{key:An,onClick:xi.click},xi.name,xi.sign?Mt.createElement("img",{src:re,width:39}):null))),qn),Dr&&Mt.createElement("img",{style:{marginTop:33,marginRight:38},src:Dr,width:In}))),Vt={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"},Nt=Ft(92310),jt=Ft.n(Nt),te=Ft(89392),oe=({dataSource:Qr=[],value:Dr,onChange:In,onTitleChange:Tn,className:Oe,title:qn,titleWidth:xi=41,style:An={},fontColor:Le="#6A7283",showCount:wn})=>{const[Qn,Si]=(0,Mt.useState)(0),[Di,qe]=(0,Mt.useState)(!1),si=(0,Mt.useRef)(null),Ei=(0,Mt.useRef)(null);return(0,Mt.useEffect)(()=>{var tr;Qr.length!==0&&(((tr=si==null?void 0:si.current)==null?void 0:tr.clientHeight)>97?Si(1):Si(0)),Qr.length===0&&Si(0),qe(!1)},[Qr]),Mt.createElement("div",{className:jt()(Vt.row,Oe),style:An},Mt.createElement("div",{onClick:(0,te.throttle)(()=>Tn==null?void 0:Tn(),2e3),style:{width:xi,marginTop:Di?12:4},className:`${Vt.title} ${Tn?"current":""}`},qn),Mt.createElement("div",{className:Di?`${Vt.tagsWrap} ${Vt.tagsBorderWrap}`:Vt.tagsWrap},Mt.createElement("div",{className:Vt.bar,ref:Ei,style:Qn>0?{height:Qn===1?97:"auto",overflow:Qn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Mt.createElement("div",{className:Vt.tag,ref:si},Qr==null?void 0:Qr.map(tr=>Mt.createElement("span",{onClick:()=>In(tr.id),key:tr.id,style:{color:Le},className:Dr===tr.id?Vt.active:""},Mt.createElement("span",{title:tr.name,className:Vt.name},tr.name),!!wn&&Mt.createElement("span",{className:Vt.num},tr.count))))),!!Qn&&Mt.createElement(Mt.Fragment,null,Qn===1?Mt.createElement("div",{onClick:()=>{var tr;Si(2),((tr=si==null?void 0:si.current)==null?void 0:tr.clientHeight)>245?qe(!0):qe(!1)},className:Vt.action},"\u5C55\u5F00",Mt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Mt.createElement("div",{onClick:()=>{Ei.current.scrollTop=0,Si(1),qe(!1)},className:Vt.action},"\u6536\u8D77",Mt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Kt={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:Qr=[],value:Dr,onChange:In,className:Tn,style:Oe={}})=>Mt.createElement("div",{style:Oe,className:jt()(Kt.tabs,Tn)},Qr.map(qn=>Mt.createElement("span",{onClick:()=>In(qn.id),className:Dr===qn.id?Kt.active:"",key:qn.id},qn.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=Ft(92832),rt=({dataSource:Qr=[],value:Dr="",onChange:In,onInputChange:Tn=()=>{},className:Oe,style:qn={},placeholder:xi,allowClear:An=!1})=>{var Le;const[wn,Qn]=(0,Mt.useState)(""),[Si,Di]=(0,Mt.useState)("");(0,Mt.useEffect)(()=>{var Ei;let tr=Dr;(Ei=JSON.stringify(Dr))!=null&&Ei.includes("{")&&(Qn(Dr.id),tr=Dr.value||"");try{Di(decodeURIComponent(tr||""))}catch(On){Di(decodeURIComponent(tr||""))}},[Dr]);const qe=()=>{In(encodeURIComponent(Si),wn||null)},si=Ei=>{Ei!==wn&&(Qn(Ei),In(encodeURIComponent(Si),Ei))};return Mt.createElement("div",{className:jt()(et.input,Oe),style:qn},!!Qr.length&&Mt.createElement("div",{className:et.dropdown},Mt.createElement("div",{className:et.text},(Le=Qr.find(Ei=>Ei.id===wn))==null?void 0:Le.name,Mt.createElement("i",{className:"iconfont icon-zhankai4"}),Mt.createElement("b",{className:et.b1}),Mt.createElement("b",{className:et.b2})),Mt.createElement("div",{className:et.menu},Qr.map((Ei,tr)=>Mt.createElement("div",{key:tr,onClick:()=>si(Ei.id)},Ei.name)))),Mt.createElement(tt.default,{onPressEnter:qe,value:Si,onChange:Ei=>{Di(Ei.target.value),Tn(encodeURIComponent(Ei.target.value),wn||null)},bordered:!1,placeholder:xi}),Mt.createElement("i",{onClick:qe,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ht={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},xt=({value:Qr,onChange:Dr,className:In,total:Tn,pageSize:Oe,style:qn={}})=>{const xi=Qr<2,An=Qr>=Math.ceil(Tn/Oe);return Tn<=Oe?Mt.createElement(Mt.Fragment,null):Mt.createElement("div",{className:jt()(ht.quickPager,In),style:qn},Mt.createElement("div",{onClick:()=>{xi||Dr(Qr-1,"prev")},className:xi?ht.disabled:""},"\u4E0A\u4E00\u9875"),Mt.createElement("div",{onClick:()=>{An||Dr(Qr+1,"next")},className:An?ht.disabled:""},"\u4E0B\u4E00\u9875"))},It={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"},Ut=Ft(71418),Gt=Ft(6848),se=Ft(13570),ue=Ft(3294),Ae=Ft(955),Pe=Ft(96908),qt=Ft(57177),ze=Ft(81378),Wt=Ft(8797),_e=({className:Qr,dataSource:Dr=[],col:In=4,right:Tn,bottom:Oe=23,precision:qn=0,wrapWidth:xi=1200,trackEventItems:An,loading:Le})=>{const wn=Math.floor((xi-(In-1)*Tn)/In);return Mt.createElement(Ut.Z,{spinning:Le},Mt.createElement("div",{className:jt()(It.list,Qr)},!!Dr.length&&Dr.map((Qn,Si)=>{const{name:Di,id:qe,identifier:si,power:Ei,cover_image_id:tr,pic:On}=Qn;return Mt.createElement("div",{className:It.wrap,key:qe,style:{width:wn,marginRight:(1+Si)%In===0?0:Tn+qn,marginBottom:Oe}},Mt.createElement("a",{target:"_blank",href:`/shixuns/${si}/challenges`,className:It.li,onClick:ui=>{ui.preventDefault(),An&&(0,Ae.L9)([An]),Ei&&(0,Ae.xg)(`/shixuns/${si}/challenges`)}},Mt.createElement("div",{className:It.img},Mt.createElement("img",{className:It.cover,src:`${On}`}),Qn.is_jupyter&&Mt.createElement("img",{className:It.sign,src:Pe}),Qn.is_jupyter_lab&&Mt.createElement("img",{className:It.sign,src:qt}),Qn.is_unity_3d&&Mt.createElement("img",{className:It.sign,src:ze})),Mt.createElement("div",{className:It.name},Mt.createElement(Gt.Z,{title:Di||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Mt.createElement("span",{className:It.e},Di||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Mt.createElement("div",{className:It.tags},Mt.createElement(Gt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Mt.createElement("span",null,Mt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Mt.createElement("span",null,Qn.challenges_count))),!!Qn.myshixuns_count&&Mt.createElement(Gt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Mt.createElement("span",null,Mt.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Mt.createElement("span",null,Qn.myshixuns_count))),Mt.createElement(Gt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Mt.createElement("span",null,Mt.createElement("span",null,Qn.level))),Mt.createElement("div",{className:It.rate},Mt.createElement(se.Z,{allowHalf:!0,disabled:!0,defaultValue:Qn.score_info}),Mt.createElement("span",null,"\xA0",Qn.score_info?`${Qn.score_info}\u5206`:"5\u5206")))),!Ei&&Mt.createElement("div",{className:It.lockWrap},Mt.createElement("img",{src:`${ue.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Mt.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Dr.length&&Mt.createElement(Wt.Z,null)))},Me={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=Ft(24065),Re=Ft(59301),ne=({className:Qr,dataSource:Dr=[],col:In=4,right:Tn,bottom:Oe=23,precision:qn=0,wrapWidth:xi=1200,trackEventItems:An,loading:Le,onRemove:wn=()=>{},isCurrent:Qn=!0,showAlias:Si=!1})=>{const Di=Math.floor((xi-(In-1)*Tn)/In),qe=[{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(Ut.Z,{spinning:Le},Re.createElement("div",{className:jt()(Me.list,Qr)},!!(Dr!=null&&Dr.length)&&(Dr==null?void 0:Dr.map((si,Ei)=>{var tr;const{name:On,id:ui,identifier:Cr,featured:rr,school_name:Gr,image_url:or,excellent:Lr,is_plan:er}=si;return Re.createElement("div",{key:ui,className:Me.wrap,style:{width:Di,marginRight:(1+Ei)%In===0?0:Tn+qn,marginBottom:Oe}},Re.createElement("a",{className:Me.li,onClick:Pr=>{Pr.preventDefault(),Pr.stopPropagation(),An&&(0,Ae.L9)([An]),(0,Ae.xg)(`/paths/${Cr}`)}},Re.createElement("div",{className:Me.img},Re.createElement("img",{className:Me.cover,src:`${or}`}),Qn&&(0,We.bg)()&&(si==null?void 0:si.studying)&&Re.createElement("div",{className:`${Me.movebq} user-path-items`,onClick:Pr=>{Pr.stopPropagation(),wn(si)}},Re.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Re.createElement("span",{className:"c-red"},"\u79FB\u9664")),(tr=si==null?void 0:si.subject_tags)==null?void 0:tr.map((Pr,io)=>{var Oo,pi;if(io===0){const ys=(Oo=qe.find(Zo=>Zo.name==Pr))==null?void 0:Oo.swimg;return Re.createElement("img",{className:Me.sign,src:ys,style:{left:"-4px"}})}const _o=(pi=qe.find(ys=>ys.name==Pr))==null?void 0:pi.ptimg;return Re.createElement("img",{className:Me.sign,src:_o,style:{left:`${48+52*(io-1)+2*io}px`}})}),Re.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(si==null?void 0:si.excellent)&&Re.createElement("div",{className:Me.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Re.createElement("div",{className:Me.name},Re.createElement(Gt.Z,{title:Si&&(si!=null&&si.excellent_alias_name)?Re.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${On}`,Re.createElement("br",null),Re.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${si==null?void 0:si.excellent_alias_name}`)):On},Re.createElement("span",{className:Me.e},Si&&(si==null?void 0:si.excellent_alias_name)||On))),Re.createElement(Gt.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Gr}`},Re.createElement("div",{className:Me.unit},Re.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Gr)),Re.createElement("div",{className:Me.tags},Re.createElement("div",null,Re.createElement(Gt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Re.createElement("span",null,Re.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Re.createElement("span",null,si.stages_count))),Re.createElement(Gt.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,si.members_count)))))))})),!Dr.length&&Re.createElement(Wt.Z,null)))},Ce={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=Ft(59301),Mn=({className:Qr,dataSource:Dr=[],col:In=4,right:Tn,bottom:Oe=23,precision:qn=0,wrapWidth:xi=1200,trackEventItems:An,loading:Le,handleVery:wn=()=>!0})=>{const Qn=Math.floor((xi-(In-1)*Tn)/In);return Ln.createElement(Ut.Z,{spinning:Le},Ln.createElement("div",{className:jt()(Ce.list,Qr)},!!Dr.length&&Dr.map((Si,Di)=>{const{subject_identifier:qe,id:si,identifier:Ei,power:tr}=Si,On=Si.is_public!=0&&Si.is_public;return Ln.createElement("div",{className:Ce.wrap,key:si,style:{width:Qn,marginRight:(1+Di)%In===0?0:Tn+qn,marginBottom:Oe}},Ln.createElement("a",{className:Ce.li,onClick:ui=>{ui.preventDefault(),wn(Si==null?void 0:Si.first_category_url)&&(An&&(0,Ae.L9)([An]),(0,Ae.xg)(Si.first_category_url))}},Ln.createElement("div",{className:Ce.top},Ln.createElement(Gt.Z,{title:Si.name},Ln.createElement("div",{className:Ce.name},Si.name)),Ln.createElement("img",{className:Ce.img,src:ue.Z.IMG_SERVER+"/images/"+Si.avatar_url}),Ln.createElement("div",{className:Ce.text,title:Si.creator},Si.creator),qe&&Ln.createElement("div",{className:Ce.btns},Ln.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Ln.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),On&&Ln.createElement("div",{className:Ce.sign},"\u516C\u5F00")),Ln.createElement("div",{className:Ce.bottom},Si.visits>0&&Ln.createElement(Gt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Ln.createElement("span",null,Ln.createElement("i",{className:"iconfont icon-liulanyan"}),Ln.createElement("span",null,Si.visits))),Si.course_members_count>0&&Ln.createElement(Gt.Z,{title:"\u6210\u5458",placement:"bottom"},Ln.createElement("span",null,Ln.createElement("i",{className:"iconfont icon-chengyuan"}),Si.course_members_count)),Si.tasks_count>0&&Ln.createElement(Gt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Ln.createElement("span",null,Ln.createElement("i",{className:"iconfont icon-zuoye"}),Si.tasks_count)),Si.is_end?Ln.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Ln.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Si.is_accessible&&Ln.createElement("div",{className:Ce.lockWrap},Ln.createElement("img",{src:`${ue.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")))}),!Dr.length&&Ln.createElement(Wt.Z,null)))},Vn={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"},gi=Ft(89070),Bi=({dataSource:Qr=[],value:Dr,onChange:In,className:Tn,style:Oe={},tabBarExtraContent:qn})=>Mt.createElement("div",{className:jt()(Vn.tabs,Tn),style:Oe},Mt.createElement("div",{className:Vn.tabsWrap},Qr.map((xi,An)=>!(xi!=null&&xi.hide)&&Mt.createElement("aside",{className:Vn.tab,onClick:()=>{In(xi.id),xi.link&&gi.history.push(xi.link)},key:An},Mt.createElement("div",{className:Dr===xi.id?Vn.active:""},xi.name),(xi==null?void 0:xi.resetCount)==null&&(xi==null?void 0:xi.total)!==void 0&&Mt.createElement("span",null,"\uFF08",xi==null?void 0:xi.total,"\uFF09"),(xi==null?void 0:xi.resetCount)!==void 0&&(xi==null?void 0:xi.total)!==void 0&&Mt.createElement(Gt.Z,{title:(xi==null?void 0:xi.tip)!=null?xi==null?void 0:xi.tip:""},Mt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Mt.createElement("span",{style:{color:"#000"}},xi==null?void 0:xi.resetCount),"/",Mt.createElement("span",null,xi==null?void 0:xi.total),"\uFF09"))))),Mt.createElement("div",{className:Vn.tabBar},qn)),Li=({className:Qr,style:Dr={},children:In})=>Mt.createElement("div",{className:jt()(Qr),style:Dr},In),Oi={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"},Lt=Ft(38854),Ot=Ft(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:Qr,dropValue:Dr,className:In,onSort:Tn,onDrop:Oe,dataSource:qn=mt})=>{var xi;return Mt.createElement("div",{className:jt()(Oi.orderWrap,In)},Mt.createElement(Lt.Z,{dropdownRender:()=>Mt.createElement(Ot.default,null,qn.map((An,Le)=>Mt.createElement(Ot.default.Item,{key:Le,onClick:()=>Oe(An.id)},An.name)))},Mt.createElement("span",{className:Oi.orderTextWrap},(xi=qn.find(An=>Dr===An.id))==null?void 0:xi.name)),Mt.createElement("span",{className:Oi.orderIconWrap},Mt.createElement("span",{className:Oi.orderAsc},Mt.createElement("i",{className:Qr==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Oi.cursorPointer} ${Oi.active}`:`iconfont icon-sanjiaoxing-up font12 ${Oi.cursorPointer}`,onClick:()=>Tn(Qr==="asc"?"desc":"asc")})),Mt.createElement("span",{className:Oi.orderDesc},Mt.createElement("i",{className:Qr==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Oi.cursorPointer} ${Oi.active}`:`iconfont icon-sanjiaoxing-down font12 ${Oi.cursorPointer}`,onClick:()=>Tn(Qr==="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"},le=Ft(3113),xe=Object.defineProperty,ae=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,Te=(Qr,Dr,In)=>Dr in Qr?xe(Qr,Dr,{enumerable:!0,configurable:!0,writable:!0,value:In}):Qr[Dr]=In,ke=(Qr,Dr)=>{for(var In in Dr||(Dr={}))ve.call(Dr,In)&&Te(Qr,In,Dr[In]);if(ae)for(var In of ae(Dr))Ue.call(Dr,In)&&Te(Qr,In,Dr[In]);return Qr},nn=(Qr,Dr)=>{var In={};for(var Tn in Qr)ve.call(Qr,Tn)&&Dr.indexOf(Tn)<0&&(In[Tn]=Qr[Tn]);if(Qr!=null&&ae)for(var Tn of ae(Qr))Dr.indexOf(Tn)<0&&Ue.call(Qr,Tn)&&(In[Tn]=Qr[Tn]);return In},Wn=(Qr,Dr,In)=>new Promise((Tn,Oe)=>{var qn=Le=>{try{An(In.next(Le))}catch(wn){Oe(wn)}},xi=Le=>{try{An(In.throw(Le))}catch(wn){Oe(wn)}},An=Le=>Le.done?Tn(Le.value):Promise.resolve(Le.value).then(qn,xi);An((In=In.apply(Qr,Dr)).next())}),gn=Qr=>{var Dr=Qr,{className:In,style:Tn,children:Oe,loading:qn=!1,openLoading:xi,onClick:An=()=>{},size:Le="middle",shape:wn="round"}=Dr,Qn=nn(Dr,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Si,Di]=(0,Mt.useState)(!1);return Mt.createElement(le.ZP,ke({onClick:(0,te.throttle)(qe=>Wn(void 0,null,function*(){xi&&Di(!0);try{yield An(qe)}catch(si){console.log("error",si)}xi&&Di(!1)}),2e3,{leading:!0,trailing:!1}),className:jt()(At.btn,At[`${Le}-${wn}`],In),style:Tn,size:Le,shape:wn,loading:Si||qn},Qn),Oe)},Bn={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:Qr,style:Dr,children:In=null,onClick:Tn,title:Oe})=>Mt.createElement("div",{className:jt()(Bn.head,Qr),style:Dr},Mt.createElement("span",{className:"primary-hover",onClick:Tn},Mt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Mt.createElement("b",{title:Oe},Oe),Mt.createElement("div",{className:Bn.node},In)),Ri={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:Qr=!0,confirmTitle:Dr,confirmClick:In,cancelShow:Tn=!0,cancelTitle:Oe,cancelClick:qn,className:xi,style:An,confirmLoading:Le=!1})=>Mt.createElement("div",{className:jt()(Ri.btns,xi),style:An},Qr&&Mt.createElement(le.ZP,{loading:Le,onClick:In,type:"primary",className:Ri.confirm},Dr),Tn&&Mt.createElement(le.ZP,{onClick:qn,className:Ri.cancel},Oe)),mr={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"},ro=({className:Qr,style:Dr={},LeftContent:In,children:Tn,RightContent:Oe})=>Mt.createElement("div",{className:jt()(mr.fixedBottom,Qr),style:Dr},Mt.createElement("div",{className:mr.wrap},Mt.createElement("div",{className:mr.left},In),Mt.createElement("div",{className:mr.center},Tn),Mt.createElement("div",{className:mr.right},Oe))),Jr={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"},Tr=({className:Qr,style:Dr={},dataSource:In=[]})=>Mt.createElement("div",{className:jt()(Jr.crumbs,Qr),style:Dr},In.map((Tn,Oe)=>Oe<In.length-1?Mt.createElement(Mt.Fragment,{key:Oe},Tn.path||Tn.onClick?Mt.createElement("span",{className:Jr.hover,onClick:Tn!=null&&Tn.onClick?Tn.onClick:()=>gi.history.push(Tn.path)},Tn.name):Mt.createElement("span",null,Tn.name),Mt.createElement("span",null,"\xA0",">","\xA0")):Mt.createElement("span",{key:Oe,style:{color:"#5F6368"}},Tn.name))),Wr=Ft(31797),oo=Object.defineProperty,Uo=Object.defineProperties,is=Object.getOwnPropertyDescriptors,uo=Object.getOwnPropertySymbols,Ss=Object.prototype.hasOwnProperty,To=Object.prototype.propertyIsEnumerable,Xt=(Qr,Dr,In)=>Dr in Qr?oo(Qr,Dr,{enumerable:!0,configurable:!0,writable:!0,value:In}):Qr[Dr]=In,ei=(Qr,Dr)=>{for(var In in Dr||(Dr={}))Ss.call(Dr,In)&&Xt(Qr,In,Dr[In]);if(uo)for(var In of uo(Dr))To.call(Dr,In)&&Xt(Qr,In,Dr[In]);return Qr},Cs=(Qr,Dr)=>Uo(Qr,is(Dr)),Os=(Qr,Dr)=>{var In={};for(var Tn in Qr)Ss.call(Qr,Tn)&&Dr.indexOf(Tn)<0&&(In[Tn]=Qr[Tn]);if(Qr!=null&&uo)for(var Tn of uo(Qr))Dr.indexOf(Tn)<0&&To.call(Qr,Tn)&&(In[Tn]=Qr[Tn]);return In};const{Countdown:ma}=Wr.default;var Ys=Qr=>{var Dr=Qr,{onChange:In}=Dr,Tn=Os(Dr,["onChange"]);const[Oe,qn]=(0,Mt.useState)(null);(0,Mt.useEffect)(()=>{typeof Oe=="number"&&Oe>=0&&In(Oe)},[Oe]);const xi=An=>{const Le=Math.floor(An/1e3);qn(Le)};return Mt.createElement(ma,Cs(ei({},Tn),{onChange:xi}))}},58856:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return ce}});var Mt=Ft(59301);function ce(re,Ie){const ee=(0,Mt.useRef)();(0,Mt.useEffect)(()=>{ee.current=re}),(0,Mt.useEffect)(()=>{function Vt(){ee.current()}if(Ie!==null){let Nt=setInterval(Vt,Ie);return()=>clearInterval(Nt)}},[Ie])}},56575:function(hi,Cn,Ft){"use strict";Ft.r(Cn),Ft.d(Cn,{default:function(){return An}});var Mt=Ft(59301),ce=Ft(61186),re=Ft.n(ce),Ie=Ft(86129),ee=Ft.n(Ie),Vt=Ft(99064),Nt=Ft(89070),jt=Ft(43418),te=Ft(8591),Pt=Ft(61621),oe=Ft(66104),Kt=Ft(95237),$t=Ft(43604),Ct=Ft(3113),et=Ft(6848),tt=Ft(28103),lt=Ft(92832),rt=Ft(1710),ht=Ft(57809),dt=Ft(58421),xt=Ft(27812),It=Ft(95869),Ut=Ft(87169),Gt=Ft(26227),se=Ft(3294),ue=Ft(24065),Ae=Ft(955),Pe=Ft(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"},ze={normal:{opacity:.8,shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",color:"#2e65ad"}};const Wt=({shixunHomeworks:Le,data:wn,globalSetting:Qn,loading:Si,dispatch:Di})=>{var qe;const{shixunWorkReport:si}=Le;let Ei=((qe=wn==null?void 0:wn.efficiency_list)==null?void 0:qe.length)-parseInt(wn==null?void 0:wn.myself_eff[0]);const tr=()=>({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(ui){return ui.name===si.username?"\u59D3\u540D\uFF1A"+si.username+"<br/>\u5B66\u53F7\uFF1A "+si.user_id+"<br/>\u6548\u7387\uFF1A"+(wn==null?void 0:wn.myself_eff[1]):ui.name+":"+ui.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:wn==null?void 0:wn.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:si.username,xAxis:Ei,yAxis:wn==null?void 0:wn.myself_eff[1],value:wn==null?void 0:wn.myself_eff[1]}],itemStyle:{normal:{color:"#c23531"}}},markLine:{lineStyle:{normal:{type:"solid",color:"#ff6800"}},data:[{type:"average",name:"\u4E2D\u4F4D\u503C"}]}}]}),On=()=>({title:{text:"\u80FD\u529B\u503C",subtext:"\u80FD\u529B\u503C\uFF08\u5B9E\u8BAD\u83B7\u5F97\u7ECF\u9A8C\u503C/\u5B9E\u8BAD\u8BC4\u6D4B\u6B21\u6570\uFF09"},backgroundColor:"#fff",color:["#dd4444","#fec42c","#80F1BE"],grid:{x:"10%",x2:150,y:"18%",y2:"10%"},tooltip:{padding:10,backgroundColor:"#222",borderColor:"#777",borderWidth:1,formatter:function(ui){var Cr=ui.value;if(ui.name===si.username)return"\u59D3\u540D\uFF1A"+si.username+"<br/>\u5B66\u53F7\uFF1A "+si.user_id+"<br/>\u5F97\u5206\uFF1A"+(wn==null?void 0:wn.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:wn==null?void 0:wn.consume_list,symbolSize:function(ui){return Math.round(ui[2])},markPoint:{data:[{name:si.username,xAxis:wn==null?void 0:wn.myself_object[0],yAxis:wn==null?void 0:wn.myself_object[1],value:wn==null?void 0:wn.myself_object[1]}],itemStyle:{normal:{color:"#c23531"}}}}]});return Mt.createElement(Mt.Fragment,null,Mt.createElement("aside",{className:"ml60 pr30"},Mt.createElement(Kt.Z,null,Mt.createElement($t.Z,{flex:"800px"},Mt.createElement(Pe.Z,{style:{width:750,height:580},option:tr()})),Mt.createElement($t.Z,{flex:"1"},Mt.createElement("aside",{className:qt.rightInfo},Mt.createElement("ul",null,Mt.createElement("li",null,Mt.createElement("span",null,"\u59D3\u540D")," ",Mt.createElement("span",{className:"ml30"},si.username)),Mt.createElement("li",null,Mt.createElement("span",null,"\u5B66\u53F7")," ",Mt.createElement("span",{className:"ml30"},si.student_id||"--")),Mt.createElement("li",null,Mt.createElement("span",null,"\u5B66\u4E60\u6548\u7387")," ",Mt.createElement("span",{className:"ml30 c-orange"},wn==null?void 0:wn.myself_eff[1])),Mt.createElement("li",null,Mt.createElement("span",null,"\u5F53\u524D\u6392\u540D")," ",Mt.createElement("span",{className:"ml30 c-orange"},wn==null?void 0:wn.myself_eff[0]))),Mt.createElement("p",null,"1\u4E2A\u5C0F\u5706\u70B9\u4EE3\u88681\u4E2A\u5B66\u751F\u7684\u5B66\u4E60\u6548\u7387",Mt.createElement("br",null),"\u7EA2\u8272\u6C34\u6EF4\u8868\u793A\u5F53\u524D\u5B66\u751F\u7684\u5B66\u4E60\u6548\u7387\u503C",Mt.createElement("br",null),"\u5C0F\u5706\u70B9\u8D8A\u9AD8\uFF0C\u5B66\u4E60\u6548\u7387\u8D8A\u9AD8",Mt.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"))))),Mt.createElement("aside",{className:"ml60 pr30"},Mt.createElement(Kt.Z,null,Mt.createElement($t.Z,{flex:"800px"},Mt.createElement(Pe.Z,{style:{width:750,height:580},option:On()})),Mt.createElement($t.Z,{flex:"1"},Mt.createElement("aside",{className:qt.rightInfo},Mt.createElement("ul",null,Mt.createElement("li",null,Mt.createElement("span",null,"\u59D3\u540D")," ",Mt.createElement("span",{className:"ml30"},si.username)),Mt.createElement("li",null,Mt.createElement("span",null,"\u5B66\u53F7")," ",Mt.createElement("span",{className:"ml30"},si.student_id||"--")),Mt.createElement("li",null,Mt.createElement("span",null,"\u80FD\u529B")," ",Mt.createElement("span",{className:"ml30 c-orange"},wn==null?void 0:wn.myself_object[1]))),Mt.createElement("p",null,"1\u4E2A\u5C0F\u5706\u70B9\u4EE3\u88681\u4E2A\u5B66\u751F\u7684\u80FD\u529B\u503C",Mt.createElement("br",null),"\u7EA2\u8272\u6C34\u6EF4\u8868\u793A\u5F53\u524D\u5B66\u751F\u7684\u80FD\u529B\u503C",Mt.createElement("br",null),"\u5C0F\u5706\u5708\u8D8A\u5927\uFF0C\u8BC4\u6D4B\u6B21\u6570\u8D8A\u5C11",Mt.createElement("br",null)))))))};var Ge=(0,Nt.connect)(({shixunHomeworks:Le,loading:wn,globalSetting:Qn})=>({shixunHomeworks:Le,globalSetting:Qn,loading:wn.effects}))(Wt),_e=Ft(23954),Me=Ft(5871),We=({defaultValue:Le,onBlur:wn,max:Qn,className:Si="game-score"})=>{const[Di,qe]=(0,Mt.useState)(Le);(0,Mt.useEffect)(()=>{qe(Le)},[Le]);function si(tr){qe(tr)}function Ei(){Di!==Le&&wn(Di>Qn?Qn:Di)}return Mt.createElement(Me.Z,{max:Qn,min:0,className:Si,value:Di,onChange:si,onBlur:Ei})},Re=Ft(12290),ye={md:"md___TEmcT"},ne=Ft(59301),Ce=Object.defineProperty,bn=Object.defineProperties,Ln=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,Mn=Object.prototype.hasOwnProperty,Vn=Object.prototype.propertyIsEnumerable,gi=(Le,wn,Qn)=>wn in Le?Ce(Le,wn,{enumerable:!0,configurable:!0,writable:!0,value:Qn}):Le[wn]=Qn,Kn=(Le,wn)=>{for(var Qn in wn||(wn={}))Mn.call(wn,Qn)&&gi(Le,Qn,wn[Qn]);if(Ze)for(var Qn of Ze(wn))Vn.call(wn,Qn)&&gi(Le,Qn,wn[Qn]);return Le},Bi=(Le,wn)=>bn(Le,Ln(wn));const en=ht.default.Option,Li={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,enableSplitViewResizing:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1};var Oi=(Le=>(Le[Le.SET_PATH=0]="SET_PATH",Le[Le.GET_PASSED_CONTENT=1]="GET_PASSED_CONTENT",Le))(Oi||{});function Lt(Le,wn){switch(wn.type){case 0:return Bi(Kn({},Le),{selectedPath:wn.payload});case 1:return Bi(Kn({},Le),{passedContent:wn.payload});default:throw new Error}}var Ot=({path:Le,game_id:wn,onPathChange:Qn,autoHeight:Si,diff_code_count:Di,data:qe,game_codes_cn:si})=>{var Ei,tr,On,ui;const Cr=Le.split("\uFF1B").filter(io=>!!io),[rr,Gr]=(0,Mt.useReducer)(Lt,{selectedPath:Cr[0],passedContent:{language:"python",content:""}}),{selectedPath:or,passedContent:Lr}=rr;function er(io){Gr({type:0,payload:io})}const Pr={\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 ne.createElement(ne.Fragment,null,ne.createElement("h2",null," ",ne.createElement("span",null,si,ne.createElement(et.Z,{title:ne.createElement("div",null,ne.createElement("div",null,"\u4EE3\u7801\u5C55\u793A\u89C4\u5219\uFF1A"),ne.createElement("div",null,"1.\u5C55\u793A\u5B66\u5458\u5728\u4F5C\u4E1A\u622A\u6B62\u524D\u5F97\u5206\u6700\u9AD8\u7684\u4EE3\u7801\u7248\u672C\u3002"),ne.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"),ne.createElement("div",null," 3.\u4F5C\u4E1A\u622A\u6B62\u540E\u63D0\u4EA4\u7684\u4EE3\u7801\u5C06\u4E0D\u4E88\u5C55\u793A\u3002"))},ne.createElement("i",{style:{marginLeft:10,color:"#3061D0",fontSize:16},className:"iconfont icon-tishixiaowenhao"}))),Di&&ne.createElement("span",{style:{marginLeft:"50px"}},"\u4EE3\u7801\u4FEE\u6539\u884C\u6570 ",Di),ne.createElement("span",null,ne.createElement(ht.default,{style:{width:200},value:or,onChange:er}," ",Cr.map(io=>ne.createElement(en,{key:io,value:io},io))," "))," "),(or==null?void 0:or.split(".")[1])==="md"&&ne.createElement(Re.Z,{height:300,autoHeight:Si,defaultValue:((tr=(Ei=qe==null?void 0:qe.filter(io=>io.path===or))==null?void 0:Ei[0])==null?void 0:tr.content)||"",className:ye.md}),(or==null?void 0:or.split(".")[1])!=="md"&&ne.createElement(_e.ZP,{height:300,language:Lr.language,value:((ui=(On=qe==null?void 0:qe.filter(io=>io.path===or))==null?void 0:On[0])==null?void 0:ui.content)||"",autoHeight:Si,theme:"default",isCopy:!0,options:Li}))},mt=Ft(92365),ft=Ft(12911),pt=Ft.n(ft),At=Object.defineProperty,le=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,ve=(Le,wn,Qn)=>wn in Le?At(Le,wn,{enumerable:!0,configurable:!0,writable:!0,value:Qn}):Le[wn]=Qn,Ue=(Le,wn)=>{for(var Qn in wn||(wn={}))xe.call(wn,Qn)&&ve(Le,Qn,wn[Qn]);if(le)for(var Qn of le(wn))ae.call(wn,Qn)&&ve(Le,Qn,wn[Qn]);return Le},Te=(Le,wn,Qn)=>new Promise((Si,Di)=>{var qe=tr=>{try{Ei(Qn.next(tr))}catch(On){Di(On)}},si=tr=>{try{Ei(Qn.throw(tr))}catch(On){Di(On)}},Ei=tr=>tr.done?Si(tr.value):Promise.resolve(tr.value).then(qe,si);Ei((Qn=Qn.apply(Le,wn)).next())});const ke=({shixunHomeworks:Le,autoHeight:wn,classroomList:Qn,dispatch:Si})=>{var Di,qe,si,Ei,tr,On,ui;const{shixunWorkReport:Cr}=Le,{stage_list:rr,work_id:Gr}=Cr,[or,Lr]=(0,Mt.useState)(!1),[er,Pr]=(0,Mt.useState)(!0),[io,Oo]=(0,Mt.useState)({left:0,top:0,bottom:0,right:0}),pi=(0,Mt.useRef)(null),[_o,ys]=(0,Mt.useState)(!1),Zo=(jr,Sr)=>{var Pi;const{clientWidth:wo,clientHeight:Ci}=window.document.documentElement,Xo=(Pi=pi.current)==null?void 0:Pi.getBoundingClientRect();Xo&&Oo({left:-Xo.left+Sr.x,right:wo-(Xo.right-Sr.x),top:-Xo.top+Sr.y,bottom:Ci-(Xo.bottom-Sr.y)})},vi=(0,Nt.useParams)(),ur=(0,ue.GJ)(),_r={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};(0,Mt.useEffect)(()=>{console.log(vi)},[]);const so=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"position",width:"100px"},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"output_detail",render:(jr,Sr,Pi)=>Mt.createElement("div",null,jr,Sr.is_work_end_evaluate&&Mt.createElement(Ae.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:jr=>re()(jr).format("YYYY-MM-DD HH:mm")},{title:"\u64CD\u4F5C",width:"80px",dataIndex:"query_index",render:(jr,Sr)=>Mt.createElement("span",{className:"c-blue current",onClick:()=>Te(void 0,null,function*(){var Pi,wo;const Ci=yield(0,mt.Lk)(Sr.game_identifier,{path:(wo=(Pi=Sr.path)==null?void 0:Pi.replace(/\;/g,";"))==null?void 0:wo.split(";")[0],query_index:Sr.query_index,homework_common_id:vi.categoryId});(Ci==null?void 0:Ci.status)===0&&(ys(Ci),Lr(!0))})},Sr.query_index?"\u67E5\u770B\u4EE3\u7801":"")}],to=[{title:"\u8C03\u5206\u7528\u6237",dataIndex:["user","name"],width:350,render:(jr,Sr)=>{var Pi;return Mt.createElement("span",null,Mt.createElement("img",{width:30,height:30,style:{borderRadius:"50%",marginRight:"10px"},src:se.Z.IMG_SERVER+"/images/"+((Pi=Sr==null?void 0:Sr.user)==null?void 0:Pi.image_url)}),jr)}},{title:"\u8C03\u5206\u524D",dataIndex:"old_score",width:270,render:jr=>Mt.createElement("span",null,"\u4FEE\u6B63\u524D\u5206\u6570\uFF1A",jr,"\u5206")},{title:"\u8C03\u5206\u540E",dataIndex:"score",width:270,render:jr=>Mt.createElement("span",null,"\u4FEE\u6B63\u540E\u5206\u6570\uFF1A",jr,"\u5206")},{title:"\u8C03\u5206\u65F6\u95F4",dataIndex:"created_at",align:"right",render:jr=>Mt.createElement("span",null,"\u4FEE\u6B63\u65F6\u95F4\uFF1A",jr?re()(jr).format("YYYY-MM-DD HH:mm"):"--")}];function Fo(jr,Sr){return Te(this,null,function*(){const{challenge_id:Pi}=rr[jr],wo=yield Si({type:"shixunHomeworks/changeScore",payload:{categoryId:vi.homeworkId,type:"report",score:Sr,challenge_id:Pi}});yield Si({type:"shixunHomeworks/getShixunWorkReport",payload:Ue({},vi)}),wo.status===0&&te.ZP.success("\u64CD\u4F5C\u6210\u529F")})}function Ai(jr,Sr){return(0,Vt.U2)(`student_works/${Gr}/rep_passed_content.json`,{path:Sr,game_id:jr})}const yo=Cr.shixun_detail;return Mt.createElement(Mt.Fragment,null,yo==null?void 0:yo.map(function(jr,Sr){var Pi,wo;return Mt.createElement("div",{key:Sr},Mt.createElement("aside",{className:"pl30 pr30",key:Sr},Mt.createElement("div",{className:`${qt.shixunTitle} mt10`},Mt.createElement("div",null,Mt.createElement("span",{className:"fa fa-code "}),Mt.createElement("strong",{className:"c-black"},"\u7B2C",Sr+1,"\u5173 ",Mt.createElement(Nt.Link,{className:"c-black",target:"_blank",to:`/tasks/${vi.coursesId}/${vi.categoryId}/${jr.game_identifier}`},jr.subject))),ur?Mt.createElement("span",null,"\u8C03\u5206\uFF1A",Mt.createElement(We,{className:"game-score",max:rr[Sr].game_score_full,defaultValue:rr[Sr].game_score,onBlur:Ci=>{var Xo;if((0,ue.Rm)()&&!((Xo=Qn.AssistantObject.practice)!=null&&Xo.can_appraise)){te.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}Fo(Sr,Ci)}})):null),Mt.createElement("div",{className:"font16 mt10"},jr.st===0&&(jr.path?typeof(jr==null?void 0:jr.game_codes_cn)=="string"?Mt.createElement("aside",{className:qt.shixunWrp},Mt.createElement(Ot,{game_codes_cn:jr==null?void 0:jr.game_codes_cn,autoHeight:wn,path:jr.path,game_id:jr.id,data:jr.game_codes,diff_code_count:jr.diff_code_count,onPathChange:Ai})):Mt.createElement("div",{className:"font14",style:{border:"1px solid #d9d9d9",padding:"6px 10px"}}," \u63D0\u793A\uFF1A\u7EAF\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u7684\u5B9E\u8BAD\u4E0D\u5C55\u793A\u901A\u5173\u4EE3\u7801\uFF0C\u5982\u9700\u67E5\u770B\u5B66\u751F\u4EE3\u7801\u8BF7\u524D\u5F80\u4F5C\u4E1A\u5217\u8868\u5BFC\u51FA\u5B9E\u9A8C\u6587\u4EF6\u3002"):"\u76EE\u524D\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u3001Vscode\u7F16\u8F91\u5668\u3001\u9009\u62E9\u9898\u6A21\u5F0F\u7684\u5B9E\u9A8C\uFF0C\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u6B64\u529F\u80FD"),jr.st===1&&(jr.complete_status===0?"\u672C\u5173\u6682\u672A\u901A\u8FC7\uFF0C\u65E0\u901A\u5173\u4EE3\u7801":"\u76EE\u524D\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u3001Vscode\u7F16\u8F91\u5668\u3001\u9009\u62E9\u9898\u6A21\u5F0F\u7684\u5B9E\u9A8C\uFF0C\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u6B64\u529F\u80FD")),Mt.createElement("aside",{className:"mt10 font16"},(Pi=jr.outputs)!=null&&Pi.length?Mt.createElement(rt.default,{columns:so,pagination:{hideOnSinglePage:!0},dataSource:jr.outputs.map(Ci=>Ue(Ue({},jr),Ci))}):"\u672C\u5173\u65E0\u8BC4\u6D4B\u8BB0\u5F55"),Mt.createElement("aside",{className:"mt10 font16"},((wo=jr==null?void 0:jr.adjust_review_score_list)==null?void 0:wo.length)>0&&(0,ue.GJ)()&&Mt.createElement("div",null,Mt.createElement("strong",{className:"c-black font14"},"\u8C03\u5206\u8BB0\u5F55"),Mt.createElement(rt.default,{columns:to,pagination:{hideOnSinglePage:!0},dataSource:jr.adjust_review_score_list,showHeader:!1})))))}),Mt.createElement(jt.default,{open:or,width:900,okText:"\u5173\u95ED",cancelButtonProps:{style:{display:"none"}},onOk:()=>{ys({}),Lr(!1)},onCancel:()=>{ys({}),Lr(!1)},title:Mt.createElement("div",{style:{width:"100%",cursor:"move"},onMouseOver:()=>{er&&Pr(!1)},onMouseOut:()=>{Pr(!0)},onFocus:()=>{},onBlur:()=>{}},"\u4EE3\u7801\u5185\u5BB9"),modalRender:jr=>Mt.createElement(pt(),{disabled:er,bounds:io,nodeRef:pi,onStart:(Sr,Pi)=>Zo(Sr,Pi)},Mt.createElement("div",{ref:pi},jr))},Mt.createElement("div",{style:{background:"#F6F7F9",padding:"30px 20px",marginBottom:20}},Mt.createElement("div",{style:{display:"flex",alignItems:"center"}},((Di=_o==null?void 0:_o.data)==null?void 0:Di.output_detail)==="\u8BC4\u6D4B\u901A\u8FC7"?Mt.createElement("i",{style:{color:"#0B9953",fontSize:18,marginRight:10},className:"iconfont icon-duigou1"}):Mt.createElement("i",{style:{color:"#E21010",fontSize:18,marginRight:10},className:"iconfont icon-jinggao1"}),Mt.createElement("div",{style:{color:((qe=_o==null?void 0:_o.data)==null?void 0:qe.output_detail)==="\u8BC4\u6D4B\u901A\u8FC7"?"#0B9953":"#E21010",fontSize:16,fontWeight:600}},(si=_o==null?void 0:_o.data)==null?void 0:si.output_detail)),Mt.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginTop:20}},Mt.createElement("div",null,Mt.createElement("span",{style:{color:"#6A7283"}},"\u8BC4\u6D4B\u65F6\u95F4"),Mt.createElement("span",{style:{marginLeft:8,color:"#232B40"}},re()((Ei=_o==null?void 0:_o.data)==null?void 0:Ei.created_at).format("YYYY-MM-DD HH:mm:ss"))),Mt.createElement("div",null,Mt.createElement("span",{style:{color:"#6A7283"}},"\u7528\u65F6"),Mt.createElement("span",{style:{marginLeft:8,color:"#232B40"}},(tr=_o==null?void 0:_o.data)==null?void 0:tr.ts_time,"s")),Mt.createElement("div",null,Mt.createElement("span",{style:{color:"#6A7283"}},"\u5185\u5B58"),Mt.createElement("span",{style:{marginLeft:8,color:"#232B40"}},(On=_o==null?void 0:_o.data)==null?void 0:On.ts_mem,"mb")),Mt.createElement("div",null,Mt.createElement("span",{style:{color:"#6A7283"}},"\u7528\u4F8B\u901A\u8FC7\u7387"),Mt.createElement("span",{style:{marginLeft:8,color:"#232B40"}},((ui=_o==null?void 0:_o.data)==null?void 0:ui.test_set_passed_rate)*100,"%")))),Mt.createElement(_e.ZP,{height:500,autoHeight:wn,language:"python",theme:"default",isCopy:!0,value:decodeURIComponent(escape(window.atob((_o==null?void 0:_o.content)||""))),options:_r})))};var nn=(0,Nt.connect)(({shixunHomeworks:Le,loading:wn,globalSetting:Qn,classroomList:Si})=>({shixunHomeworks:Le,globalSetting:Qn,loading:wn.effects,classroomList:Si}))(ke),Wn=Ft(78241),an={greyText:"greyText___nOpNq",info:"info___nBB3c",label:"label___P6my8",blackContent:"blackContent___O4HnS",orangeContent:"orangeContent___JBF44",inputLabel:"inputLabel___B2GAs",tableTitle:"tableTitle___IqAxM",scoreTable:"scoreTable___RJvpU"},gn=Ft(30917),Bn=Ft(59301),ti=Object.defineProperty,Rn=Object.getOwnPropertySymbols,Ri=Object.prototype.hasOwnProperty,dr=Object.prototype.propertyIsEnumerable,Ji=(Le,wn,Qn)=>wn in Le?ti(Le,wn,{enumerable:!0,configurable:!0,writable:!0,value:Qn}):Le[wn]=Qn,mr=(Le,wn)=>{for(var Qn in wn||(wn={}))Ri.call(wn,Qn)&&Ji(Le,Qn,wn[Qn]);if(Rn)for(var Qn of Rn(wn))dr.call(wn,Qn)&&Ji(Le,Qn,wn[Qn]);return Le},Mr=(Le,wn,Qn)=>new Promise((Si,Di)=>{var qe=tr=>{try{Ei(Qn.next(tr))}catch(On){Di(On)}},si=tr=>{try{Ei(Qn.throw(tr))}catch(On){Di(On)}},Ei=tr=>tr.done?Si(tr.value):Promise.resolve(tr.value).then(qe,si);Ei((Qn=Qn.apply(Le,wn)).next())});const ro=({shixunHomeworks:Le,dispatch:wn,classroomList:Qn})=>{const{shixunWorkReport:Si}=Le,Di=(0,Nt.useParams)(),[qe,si]=(0,Mt.useState)(!1),[Ei]=Wn.default.useForm(),[tr,On]=jt.default.useModal(),[ui,Cr]=(0,Mt.useState)(!1),[rr,Gr]=(0,Mt.useState)(!1);(0,Mt.useEffect)(()=>{var er,Pr,io,Oo;Le.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4"&&Ei.setFieldsValue({comment:(Pr=(er=Le.actionTabs.selectArrs)==null?void 0:er.data)==null?void 0:Pr.work_comment,hidden_comment:(Oo=(io=Le.actionTabs.selectArrs)==null?void 0:io.data)==null?void 0:Oo.work_comment_hidden})},[Le.actionTabs.key]);const or=()=>Mr(void 0,null,function*(){const er=Ei.getFieldsValue();(yield(0,Vt.ZP)(`/api/student_works/${Di.homeworkId}/shixun_work_comment.json`,{method:"post",body:{hidden_comment:er.hidden_comment,comment:er.comment}})).status===0&&(te.ZP.success("\u8BC4\u9605\u6210\u529F"),Ei.resetFields(),wn({type:"shixunHomeworks/setActionTabs",payload:{}}),wn({type:"shixunHomeworks/getShixunWorkReport",payload:mr({},Di)}))}),Lr=[{title:"\u5173\u5361",dataIndex:"name",render:(er,Pr,io)=>io+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(er,Pr,io)=>Bn.createElement("div",null,er,Pr.complete_status===4&&Bn.createElement(Ae.vA,{status:Pr.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:er=>er?"\u662F":"\u5426"},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",align:"center",render:(er,Pr)=>Bn.createElement("div",null,Bn.createElement("span",{style:{color:parseFloat(Pr.game_score_full)!==parseFloat(er)?"#E30000":"#53C41B"}},er),"/",Pr.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",align:"center",fixed:"right",render:(er,Pr)=>(0,ue.GJ)()?Bn.createElement(We,{max:Pr.game_score_full,defaultValue:parseFloat(er),onBlur:io=>Mr(void 0,null,function*(){var Oo,pi;if((0,ue.Rm)()&&!((Oo=Qn.AssistantObject.practice)!=null&&Oo.can_appraise)){te.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 _o=yield wn({type:"shixunHomeworks/changeScore",payload:{categoryId:Di.homeworkId,type:"report",score:io,challenge_id:Pr.challenge_id}});(pi=Le==null?void 0:Le.actionTabs)==null||pi.fn(),yield wn({type:"shixunHomeworks/getShixunWorkReport",payload:mr({},Di)}),_o.status===0&&te.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):er}];return Bn.createElement(Bn.Fragment,null,On,Bn.createElement(jt.default,{centered:!0,width:1080,title:"\u70B9\u8BC4\u4F5C\u4E1A",open:Le.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Mr(void 0,null,function*(){var er;if((0,ue.Rm)()&&!((er=Qn.AssistantObject.practice)!=null&&er.can_appraise)){te.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 Pr=Ei.getFieldsValue();JSON.stringify(Pr)==="{}"||Pr.hidden_comment===""&&Pr.comment===""?si(!0):or()}),onCancel:()=>{wn({type:"shixunHomeworks/setActionTabs",payload:{}})}},Bn.createElement(Kt.Z,{justify:"space-between",className:an.info},Bn.createElement($t.Z,null,Bn.createElement("span",{className:`${an.label} ${an.greyText}`},"\u59D3\u540D"),Bn.createElement("span",{className:an.blackContent},Si==null?void 0:Si.username)),Bn.createElement($t.Z,null,Bn.createElement("span",{className:`${an.label} ${an.greyText}`},"\u5B66\u53F7"),Bn.createElement("span",{className:an.blackContent},(Si==null?void 0:Si.student_id)||"--")),Bn.createElement($t.Z,null,Bn.createElement("span",{className:`${an.label} ${an.greyText}`},"\u73ED\u7EA7"),Bn.createElement("span",{className:an.blackContent},(Si==null?void 0:Si.group_name)||"--")),Bn.createElement($t.Z,null,Bn.createElement("span",{className:`${an.label} ${an.greyText}`},"\u5173\u5361\u5F97\u5206"),Bn.createElement("span",{className:an.orangeContent},(Si==null?void 0:Si.challenge_score)||"--")),Bn.createElement($t.Z,null,Bn.createElement("span",{className:`${an.label} ${an.greyText}`},"\u6548\u7387\u5206"),Bn.createElement("span",{className:an.orangeContent},(Si==null?void 0:Si.eff_score)||"--")),Bn.createElement($t.Z,null,Bn.createElement("span",{className:`${an.label} ${an.greyText}`},"\u8865\u4EA4\u6263\u5206"),Bn.createElement("span",{className:an.orangeContent},(Si==null?void 0:Si.late_penalty)||"--")),Bn.createElement($t.Z,null,Bn.createElement("span",{className:`${an.label} ${an.greyText}`},"\u6700\u7EC8\u6210\u7EE9"),Bn.createElement("span",{className:an.orangeContent},(Si==null?void 0:Si.work_score)||"--"))),Bn.createElement(Wn.default,{form:Ei,onChange:()=>{qe&&si(!1)}},Bn.createElement(Kt.Z,{wrap:!1,align:"middle",justify:"space-between"},Bn.createElement($t.Z,null,Bn.createElement("div",{className:`${an.inputLabel} ${an.greyText}`},"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),Bn.createElement($t.Z,null,Bn.createElement(gn.Z,{isShowComponent:(0,ue.G5)(),ModalProps:{open:ui,onCancel:()=>{Cr(!1)}},onDataSelect:(er,Pr)=>Mr(void 0,[er,Pr],function*(io,{node:Oo}){const pi=()=>{Ei.setFieldsValue({comment:Oo==null?void 0:Oo.value}),Cr(!1)};if(Ei.getFieldValue("comment")){tr.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:pi});return}pi()})},Bn.createElement(Ct.ZP,{style:{padding:0,height:"auto"},icon:Bn.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:er=>{Cr(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),Bn.createElement(Wn.default.Item,{name:"comment"},Bn.createElement(lt.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3})),Bn.createElement(Kt.Z,{wrap:!1,align:"middle",justify:"space-between"},Bn.createElement($t.Z,null,Bn.createElement("div",{className:`${an.inputLabel} ${an.greyText}`},"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),Bn.createElement($t.Z,null,Bn.createElement(gn.Z,{isShowComponent:(0,ue.G5)(),ModalProps:{open:rr,onCancel:()=>{Gr(!1)}},onDataSelect:(er,Pr)=>Mr(void 0,[er,Pr],function*(io,{node:Oo}){const pi=()=>{Ei.setFieldsValue({hidden_comment:Oo==null?void 0:Oo.value}),Gr(!1)};if(Ei.getFieldValue("hidden_comment")){tr.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:pi});return}pi()})},Bn.createElement(Ct.ZP,{style:{padding:0,height:"auto"},icon:Bn.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:er=>{Gr(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),Bn.createElement(Wn.default.Item,{name:"hidden_comment"},Bn.createElement(lt.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3}))),qe&&Bn.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A"),Bn.createElement("div",{className:an.tableTitle},"\u5173\u5361\u6210\u7EE9"),Bn.createElement(rt.default,{className:an.scoreTable,dataSource:Si.stage_list,rowKey:"challenge_id",pagination:!1,columns:Lr,scroll:{x:"max-content"}})))};var Jr=(0,Nt.connect)(({shixunHomeworks:Le,classroomList:wn})=>({shixunHomeworks:Le,classroomList:wn}))(ro),$r=Ft(68971),Tr=Ft(85149),Wr=Ft(36708),oo=Ft(44164),Uo=Ft.n(oo),is={wrap:"wrap___LZOi9",line:"line___oju0L"},uo=Ft(41069),To=({detailData:Le})=>{var wn;return Mt.createElement("div",{className:is.wrap},Mt.createElement(uo.ij,{hideBar:!0,actionAnalysis:!0,loading:!1,emptyData:[(0,uo.Uf)(Le),(Le==null?void 0:Le.photos)||[]],title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",noDataText:"\u8BE5\u5B66\u751F\u65E0\u5B66\u4E60\u884C\u4E3A\u5206\u6790\u6570\u636E"},Mt.createElement(uo.ZP,{hideBar:!0,title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",data:(0,uo.Uf)(Le)}),!!((wn=Le==null?void 0:Le.photos)!=null&&wn.length)&&Mt.createElement(Mt.Fragment,null,Mt.createElement("div",{className:is.line}),Mt.createElement(uo._s,{dataSource:Le==null?void 0:Le.photos,right:21,col:4,wrapWidth:1140}))))},Xt=Ft(78297),ei=Ft(59301),Cs=Object.defineProperty,Os=Object.defineProperties,ma=Object.getOwnPropertyDescriptors,va=Object.getOwnPropertySymbols,Ys=Object.prototype.hasOwnProperty,Qr=Object.prototype.propertyIsEnumerable,Dr=(Le,wn,Qn)=>wn in Le?Cs(Le,wn,{enumerable:!0,configurable:!0,writable:!0,value:Qn}):Le[wn]=Qn,In=(Le,wn)=>{for(var Qn in wn||(wn={}))Ys.call(wn,Qn)&&Dr(Le,Qn,wn[Qn]);if(va)for(var Qn of va(wn))Qr.call(wn,Qn)&&Dr(Le,Qn,wn[Qn]);return Le},Tn=(Le,wn)=>Os(Le,ma(wn)),Oe=(Le,wn)=>{var Qn={};for(var Si in Le)Ys.call(Le,Si)&&wn.indexOf(Si)<0&&(Qn[Si]=Le[Si]);if(Le!=null&&va)for(var Si of va(Le))wn.indexOf(Si)<0&&Qr.call(Le,Si)&&(Qn[Si]=Le[Si]);return Qn},qn=(Le,wn,Qn)=>new Promise((Si,Di)=>{var qe=tr=>{try{Ei(Qn.next(tr))}catch(On){Di(On)}},si=tr=>{try{Ei(Qn.throw(tr))}catch(On){Di(On)}},Ei=tr=>tr.done?Si(tr.value):Promise.resolve(tr.value).then(qe,si);Ei((Qn=Qn.apply(Le,wn)).next())});const xi=Le=>{var wn=Le,{shixunHomeworks:Qn,classroomList:Si,globalSetting:Di,loading:qe,user:si,dispatch:Ei}=wn,tr=Oe(wn,["shixunHomeworks","classroomList","globalSetting","loading","user","dispatch"]),On,ui,Cr;const[rr,Gr]=(0,Mt.useState)(In({},(0,Nt.useParams)())),or=(0,Nt.useParams)(),[Lr,er]=(0,Mt.useState)({page:1,page_size:10}),Pr=(0,Nt.useLocation)(),[]=(0,Mt.useState)([]),[io,Oo]=(0,Mt.useState)(),pi=(0,Mt.useRef)(),_o=(0,Mt.useRef)(),[ys,Zo]=(0,Mt.useState)(!1),[vi,ur]=(0,Mt.useState)(!0),[_r,so]=(0,Mt.useState)(!1),[to,Fo]=(0,Mt.useState)(!1),{shixunWorkReport:Ai}=Qn,[yo,jr]=(0,Mt.useState)(),[Sr,Pi]=(0,Mt.useState)([]),[wo,Ci]=(0,Mt.useState)(),[Xo,ua]=(0,Mt.useState)("all"),xs=(0,ue.GJ)(),[da,Js]=(0,Mt.useState)(new(ee())),[Lo,Do]=(0,Mt.useState)(0),[As,hs]=(0,Mt.useState)(!1),[wr,Ne]=(0,Mt.useState)(!1),[ds,ia]=(0,Mt.useState)(!1),[ll,ul]=(0,Mt.useState)(""),[Ml,ls]=(0,Mt.useState)(!1),[Go,Ns]=(0,Mt.useState)(!0),[Wo,Gs]=(0,Mt.useState)(0),wl=(0,Mt.useRef)(JSON.parse(sessionStorage.all_student_works_params||"{}")),ho=(0,Mt.useRef)(),mo=()=>qn(void 0,null,function*(){(si.userInfo.is_teacher||si.userInfo.admin)&&(ls(!0),Ns(!1))});(0,Mt.useEffect)(()=>{var Zr;(0,ue.Rm)()&&Si.AssistantObject.practice&&!((Zr=Si.AssistantObject.practice)!=null&&Zr.can_view)&&Nt.history.replace("/403")},[(On=Si.AssistantObject.practice)==null?void 0:On.can_view]),(0,Mt.useEffect)(()=>{mo(),console.log("\u6253\u5370\u7684------",Ai),ho.current=Ai==null?void 0:Ai.next_student_work_id,ul(Ai.repeat_minus_score)},[Ai,si]),(0,Mt.useEffect)(()=>{console.log("\u89E6\u53D1\u8FD9",Ai.work_score),Gs(Ai.work_score)},[Ai.work_score,ll]),(0,Mt.useEffect)(()=>(Ei({type:"globalSetting/footerToggle",payload:!1}),()=>{Ei({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,Mt.useEffect)(()=>{var Zr;if(Ai){let zs=[];(Zr=Ai==null?void 0:Ai.target_test_sets)==null||Zr.map((Is,Es)=>{var Ks;(Ks=Is==null?void 0:Is.targets)==null||Ks.map((Au,Jo)=>{var Qs;Au.name=Is==null?void 0:Is.name,Au.total_target_score=Is==null?void 0:Is.total_target_score,Au.actual_target_score=Is==null?void 0:Is.actual_target_score,Au.rowSpan=Jo===0?(Qs=Is==null?void 0:Is.targets)==null?void 0:Qs.length:0,Au.order=Es+1,zs.push(Au)})}),jr(zs),(0,ue.Rm)()&&Ei({type:"classroomList/getAssistantPermissions",payload:{course_id:rr.coursesId}})}},[Ai]),(0,Mt.useEffect)(()=>{Qn.actionTabs.key==="\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"&&(Ai==null?void 0:Ai.students_count)>0&&!vi&&setTimeout(()=>{Na("all")},800)},[Ai==null?void 0:Ai.homework_common_id,vi]),(0,Mt.useEffect)(()=>{Gr(In({},or))},[Pr.pathname]);const Vi=()=>{document.body.scrollIntoView()},Po=Zr=>{Lr.page=Zr,er(In({},Lr)),Bs(Lr,Xo)},Bs=(Zr,zs)=>qn(void 0,null,function*(){so(!0);const Is=yield(0,Vt.ZP)(`/api/student_works/${rr==null?void 0:rr.homeworkId}/adjust_review_score_histories.json`,{method:"get",params:Tn(In({},Zr),{challenge_id:zs=="all"?null:zs})});(Is==null?void 0:Is.status)===0&&(Pi(Is==null?void 0:Is.list),Ci(Is==null?void 0:Is.count)),so(!1)});function ha(){return qn(this,null,function*(){wl.current=JSON.parse(sessionStorage.all_student_works_params||"{}")})}const sa=()=>{document.querySelectorAll("canvas").forEach(Zr=>{(!Zr.clientWidth||!Zr.clientHeight)&&Zr.remove()})},Ro=()=>{pi.current.offsetHeight>62e3?Fo(!1):Fo(!0)},Ws=Zr=>qn(void 0,null,function*(){const zs=yield(0,Wr.t1)({homeworkId:Zr||rr.homeworkId});Oo(zs==null?void 0:zs.data)}),Na=Zr=>qn(void 0,null,function*(){var zs,Is,Es,Ks;let Au=0,Jo;Jo=jt.default.info({width:460,title:ei.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A,",ei.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:ei.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",ei.createElement("span",{className:"c-blue"},Au+1),"/",Zr!=="all"?1:Ai==null?void 0:Ai.students_count,ei.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"),maskClosable:!1,className:qt.modal,onOk:()=>{}});const Qs={margin:[0,0],filename:`${Ai!=null&&Ai.student_id&&(Ai==null?void 0:Ai.student_id)!="--"?Ai==null?void 0:Ai.student_id:""}${Ai.username}.pdf`,html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}},ws=da.folder(Ai==null?void 0:Ai.shixun_name);function Hr(hl){return qn(this,null,function*(){yield Ws(hl||ho.current);const js=yield Ei({type:"shixunHomeworks/getShixunWorkReport",payload:In({homeworkId:hl||ho.current},wl.current||{})});ho.current=js==null?void 0:js.next_student_work_id,Vi(),Au++,setTimeout(()=>qn(this,null,function*(){var Su,zu,Xl,fr;sa();const rl=ws.folder(`${js==null?void 0:js.group_name}`).folder(`${js!=null&&js.student_id&&(js==null?void 0:js.student_id)!="--"?js.student_id+"+":""}${js==null?void 0:js.username}`),El=document.querySelector("#export-all").children;let ou=Uo()();for(let Ya=0;Ya<El.length;Ya++)yield ou.set(Qs).from(El[Ya]).toContainer().toCanvas().toPdf().get("pdf").then(bo=>qn(this,null,function*(){Ya<El.length-1&&(yield bo.addPage())}));if(rl.file(`${js!=null&&js.student_id&&(js==null?void 0:js.student_id)!="--"?js.student_id+"+":""}${js==null?void 0:js.username}.pdf`,ou.output("blob")),((Su=js==null?void 0:js.shixun_detail)==null?void 0:Su.length)>0&&((Xl=(zu=js==null?void 0:js.shixun_detail)==null?void 0:zu.filter(Ya=>{var bo;return((bo=Ya==null?void 0:Ya.game_codes)==null?void 0:bo.length)>0}))==null?void 0:Xl.length)>0){const Ya=rl.folder("\u4EE3\u7801\u6587\u4EF6");(fr=js==null?void 0:js.shixun_detail)==null||fr.map((bo,ja)=>{var Ja,su;if(((Ja=bo==null?void 0:bo.game_codes)==null?void 0:Ja.length)>0){const $l=Ya.folder(`\u7B2C${ja+1}\u5173-${bo.subject}-${bo.id}`);(su=bo==null?void 0:bo.game_codes)==null||su.map(Pu=>{$l.file(`${Pu.filename}.txt`,Pu==null?void 0:Pu.content)})}})}Jo.update({content:ei.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",ei.createElement("span",{className:"c-blue"},Au),"/",js==null?void 0:js.students_count,ei.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3")}),Au==(js==null?void 0:js.students_count)?(Jo.destroy(),Ol()):Hr()}),2200)})}if(Zr!=="all"||(Ai==null?void 0:Ai.students_count)<2){sa(),Vi();const hl=_o.current.children;let js=Uo()();const zu=ws.folder(`${Ai==null?void 0:Ai.group_name}`).folder(`${Ai!=null&&Ai.student_id&&(Ai==null?void 0:Ai.student_id)!="--"?(Ai==null?void 0:Ai.student_id)+"+":""}${Ai==null?void 0:Ai.username}`);for(let Xl=0;Xl<hl.length;Xl++)yield js.set(Qs).from(hl[Xl]).toContainer().toCanvas().toPdf().get("pdf").then(fr=>qn(void 0,null,function*(){Xl<hl.length-1&&(yield fr.addPage())}));if(Zo(!1),zu.file(`${Ai!=null&&Ai.student_id&&(Ai==null?void 0:Ai.student_id)!="--"?(Ai==null?void 0:Ai.student_id)+"+":""}${Ai.username}.pdf`,js.output("blob"),{base64:!1}),((zs=Ai==null?void 0:Ai.shixun_detail)==null?void 0:zs.length)>0&&((Es=(Is=Ai==null?void 0:Ai.shixun_detail)==null?void 0:Is.filter(Xl=>{var fr;return((fr=Xl==null?void 0:Xl.game_codes)==null?void 0:fr.length)>0}))==null?void 0:Es.length)>0){const Xl=zu.folder("\u4EE3\u7801\u6587\u4EF6");(Ks=Ai==null?void 0:Ai.shixun_detail)==null||Ks.map((fr,Za)=>{var rl,El;if(((rl=fr==null?void 0:fr.game_codes)==null?void 0:rl.length)>0){const ou=Xl.folder(`\u7B2C${Za+1}\u5173-${fr.subject}-${fr.id}`);(El=fr==null?void 0:fr.game_codes)==null||El.map(Ya=>{ou.file(`${Ya.filename}.txt`,Ya==null?void 0:Ya.content)})}})}Jo.destroy(),Ol();return}else Hr(Ai==null?void 0:Ai.first_student_work_id)}),Ol=()=>{da.generateAsync({type:"blob"}).then(function(Zr){console.log(Ai,"shixunWorkReport");const zs=document.createElement("a");zs.href=window.URL.createObjectURL(Zr),zs.download=(Ai==null?void 0:Ai.shixun_name)+".zip",document.body.appendChild(zs);const Is=document.createEvent("MouseEvents");Is.initEvent("click",!1,!1),zs.dispatchEvent(Is),document.body.removeChild(zs),Js(new(ee()))}),Fo(!1)};(0,Mt.useEffect)(()=>{Va()},[rr.homeworkId]);const Va=()=>qn(void 0,null,function*(){ur(!0),yield Ei({type:"shixunHomeworks/getShixunWorkReport",payload:In(In({},rr),wl.current||{})}),Ws(),(0,ue.GJ)()&&ha(),ur(!1)}),bs=[{title:"\u5173\u5361",dataIndex:"name",render:(Zr,zs,Is)=>Is+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(Zr,zs,Is)=>ei.createElement("div",null,Zr,zs.complete_status===4&&ei.createElement(Ae.vA,{status:zs.complete_status}))},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time"},{title:"\u4EE3\u7801\u4FEE\u6539\u884C\u6570",dataIndex:"diff_code_count",render:(Zr,zs,Is)=>Zr||"- -"},{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:Zr=>Zr?"\u662F":"\u5426"},{title:"\u7ECF\u9A8C\u503C",dataIndex:"experience",render:(Zr,zs)=>ei.createElement("div",null,ei.createElement("span",{style:{color:parseFloat(zs.myself_experience)!==parseFloat(Zr)?"red":"green"}},zs.myself_experience),"/",Zr)},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",render:(Zr,zs)=>ei.createElement("div",null,ei.createElement("span",{style:{color:parseFloat(zs.game_score_full)!==parseFloat(Zr)?"red":"green"}},Zr),"/",zs.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",render:(Zr,zs)=>xs?ei.createElement(We,{max:zs.game_score_full,defaultValue:parseFloat(Zr),onBlur:Is=>qn(void 0,null,function*(){var Es;if((0,ue.Rm)()&&!((Es=Si.AssistantObject.practice)!=null&&Es.can_appraise)){te.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const Ks=yield Ei({type:"shixunHomeworks/changeScore",payload:{categoryId:rr.homeworkId,type:"report",score:Is,challenge_id:zs.challenge_id}});Bs({page:1,page_size:10},"all"),yield Ei({type:"shixunHomeworks/getShixunWorkReport",payload:In(In({},rr),wl.current||{})}),Ks.status===0&&te.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):Zr}];let ai=[{title:"\u5173\u5361",dataIndex:"order",key:"order",render:(Zr,zs,Is)=>({children:Zr,props:{rowSpan:zs.rowSpan}})},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",render:(Zr,zs,Is)=>({children:Zr,props:{rowSpan:zs.rowSpan}})},{title:"\u6307\u6807\u540D\u79F0",dataIndex:"target_name",key:"target_name"},{title:"\u6307\u6807\u9884\u671F\u7ED3\u679C",dataIndex:"output",key:"output"},{title:"\u6307\u6807\u5B9E\u9645\u7ED3\u679C",dataIndex:"actual_output",key:"actual_output"},{title:"\u6307\u6807\u5F97\u5206",dataIndex:"test_score",key:"test_score",render:(Zr,zs,Is)=>ei.createElement("div",null,ei.createElement("span",{style:{color:parseFloat(zs.actual_test_score)!==parseFloat(Zr)?"red":"green"}},zs.actual_test_score),"/",Zr)},{title:"\u6307\u6807\u603B\u5206",render:(Zr,zs,Is)=>({children:ei.createElement("div",null,ei.createElement("span",{style:{color:parseFloat(zs.actual_target_score)!==parseFloat(Zr)?"red":"green"}},zs.actual_target_score),"/",Zr),props:{rowSpan:zs.rowSpan}}),dataIndex:"total_target_score",key:"total_target_score"}];const Ia=[{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:Zr=>ei.createElement("span",null,Zr?re()(Zr).format("YYYY-MM-DD HH:mm"):"--")}],Ac=Zr=>{Ei({type:"shixunHomeworks/setActionTabs",payload:{key:"",type:2}}),setTimeout(()=>{Zr==="next"?Nt.history.push(`/classrooms/${rr.coursesId}/shixun_homework/${rr.categoryId}/${Ai==null?void 0:Ai.next_student_work_id}/comment`):Nt.history.push(`/classrooms/${rr.coursesId}/shixun_homework/${rr.categoryId}/${Ai==null?void 0:Ai.pre_student_work_id}/comment`)},200)},du=Zr=>{ul(""),Zr.target.value&&(console.log("\u8FDB\u6765",Ai),Zr.target.value=Zr.target.value>Ai.repeat_setting_score?Ai.repeat_setting_score:Zr.target.value,ul(Zr.target.value))},Hh=()=>qn(void 0,null,function*(){const Zr=yield(0,Vt.ZP)(`/api/student_works/${Ai==null?void 0:Ai.work_id}/update_repeat_score`,{method:"put",body:{score:ll}});yield Ei({type:"shixunHomeworks/getShixunWorkReport",payload:In(In({},rr),wl.current||{})}),Zr.status===0&&te.ZP.info("\u64CD\u4F5C\u6210\u529F")});return ei.createElement("section",{className:"bg-fafafa",style:{position:"sticky",top:0}},ei.createElement("div",{className:"edu-container mt10",style:{paddingBottom:100}},ei.createElement(Pt.Z,{loading:qe["shixunHomeworks/getShixunWorkReport"],active:!0,avatar:{size:40},paragraph:{rows:5}},ei.createElement("div",{className:"edu-container"},Ai.course_id&&ei.createElement("section",{className:"animated fadeIn"},ei.createElement("aside",{className:""},Ai.category&&ei.createElement(oe.Z,{separator:">"},ei.createElement(oe.Z.Item,null,ei.createElement(Nt.Link,{to:`/classrooms/${Ai.course_id}/shixun_homework`},Ai.course_name)),ei.createElement(oe.Z.Item,null,ei.createElement(Nt.Link,{to:`/classrooms/${Ai.course_id}/shixun_homework/${Ai.category.main?"":Ai.category.category_id}`},Ai.category.category_name)),ei.createElement(oe.Z.Item,null,ei.createElement(Nt.Link,{to:`/classrooms/${Ai.course_id}/shixun_homework/${Ai.homework_common_id}/detail`},"\u4F5C\u4E1A\u8BE6\u60C5")),ei.createElement(oe.Z.Item,null,Ai.username))),ei.createElement("aside",{className:[qt.title1,"mt20"].join(" ")},ei.createElement(Kt.Z,{align:"middle"},ei.createElement($t.Z,{flex:1},ei.createElement(Nt.Link,{to:`/classrooms/${Ai.course_id}/shixun_homework/${Ai.homework_common_id}/detail`},ei.createElement(xt.Z,{className:"font16 c-black"})),ei.createElement("strong",{className:"font20 ml5"},Ai==null?void 0:Ai.homework_name),ei.createElement(Ae.VV,{temporary:!0,status:Ai.homework_status})),ei.createElement($t.Z,{className:qt.title1_right},Ai.view_tpi&&ei.createElement(Ct.ZP,{onClick:()=>{var Zr,zs;(0,Ae.xg)(`/tasks/${Ai==null?void 0:Ai.course_id}/${Ai==null?void 0:Ai.homework_common_id}/${(zs=(Zr=Ai==null?void 0:Ai.shixun_detail)==null?void 0:Zr[0])==null?void 0:zs.game_identifier}`)}},ei.createElement("span",{className:"iconfont icon-yijiandianping mr5"}),"\u67E5\u770B\u5B66\u5458\u5B9E\u8BAD"),(0,ue.GJ)()&&Ai.homework_end===!1&&!!Ai.myshixun_id&&ei.createElement(Ct.ZP,{className:"ml10",onClick:()=>qn(void 0,null,function*(){yield Ei({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",selectArrs:{myshixun_identifier:Ai.myshixun_identifier},homework_common_id:or.categoryId}})})},ei.createElement("span",{className:"iconfont icon-dahuizhongzuo3x mr5"}),"\u6253\u56DE\u91CD\u505A"),ei.createElement(Ct.ZP,{className:"ml10",onClick:()=>{var Zr;if((0,ue.Rm)()&&!((Zr=Si.AssistantObject.practice)!=null&&Zr.can_download)){te.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}Na("")},loading:ys},ei.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"),(0,ue.GJ)()&&(Ai==null?void 0:Ai.students_count)>1&&ei.createElement(Ct.ZP,{className:"ml10",onClick:()=>{var Zr;if((0,ue.Rm)()&&!((Zr=Si.AssistantObject.practice)!=null&&Zr.can_download)){te.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:ei.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:ei.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:()=>{Na("all")},onCancel:()=>{},cancelButtonProps:{onClick:()=>{(0,Xt.jj)({categoryId:rr.categoryId,coursesId:rr.coursesId},"shixun_report")}}})}},ei.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u5B9E\u8BAD\u62A5\u544A"))))),ei.createElement("aside",{className:"mt30 relative"})),ei.createElement("aside",{className:"edu-container bg-white",ref:pi},ei.createElement("div",{id:"export-all",ref:_o},ei.createElement("div",{id:"export-all-1"},ei.createElement("div",{className:qt.title},ei.createElement("h1",null,"\u603B\u4F53\u8BC4\u4EF7"),ei.createElement("div",null,(0,ue.GJ)()&&ei.createElement(Ct.ZP,{className:"mr20",type:"primary",onClick:()=>{Ei({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:Ai.user_id,data:In({},Ai)},fn:()=>Bs({page:1,page_size:10},"all")}})}},ei.createElement(It.Z,null),Ai.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u70B9\u8BC4\u4F5C\u4E1A"))),ei.createElement(tt.Z,{style:{marginTop:0}}),ei.createElement(Kt.Z,{className:"pl30 pr30"},ei.createElement($t.Z,null,ei.createElement("img",{className:qt.userPic,src:`${se.Z.IMG_SERVER}/images/${Ai.image_url}`,alt:Ai.username})),ei.createElement($t.Z,null,ei.createElement("span",{className:"font16 ml40"},Ai.username),ei.createElement(Ae.vA,{status:Ai.compelete_status}),ei.createElement("ul",{className:qt.userInfo},ei.createElement("li",null,"\u5B66\u53F7\uFF1A",Ai.student_id||"--"),ei.createElement("li",null,"\u5206\u73ED\uFF1A",Ai.group_name||"--"),ei.createElement("br",null),ei.createElement("li",null,"\u622A\u6B62\u524D\u5B8C\u6210\u5173\u5361\uFF1A",ei.createElement("span",{className:"c-red"},Ai.complete_count),"/",ei.createElement("span",{className:"c-red"},Ai.challenges_count)),ei.createElement("li",null,"\u6700\u65B0\u5B8C\u6210\u5173\u5361\uFF1A",ei.createElement("span",{className:"c-red"},Ai.current_complete_count||"-"),"/",ei.createElement("span",{className:"c-red"},Ai.challenges_count)),ei.createElement("li",null,"\u5B8C\u6210\u6548\u7387\uFF1A",Ai&&Ai.efficiency===null?"--":Ai&&Ai.efficiency),ei.createElement("li",null,"\u8BFE\u5802\u6700\u9AD8\u5B8C\u6210\u6548\u7387\uFF1A",Ai&&Ai.max_efficiency===null?"--":Ai&&Ai.max_efficiency))),ei.createElement("ul",{className:[qt.listItem,"mt10"].join(" ")},ei.createElement("li",null,ei.createElement("strong",null,"\u901A\u5173\u65F6\u95F4"),ei.createElement("div",{className:"c-light-black mt20"},Ai&&Ai.passed_time===null||Ai&&Ai.passed_time==="--"?"--":re()(Ai&&Ai.passed_time).format("YYYY-MM-DD HH:mm"))),ei.createElement("li",null,ei.createElement("strong",null,"\u8BA1\u65F6\u89C4\u5219",ei.createElement("i",{onClick:Zr=>{Zr.stopPropagation(),Zr.preventDefault(),hs(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),ei.createElement("div",{className:"c-light-black mt20"},Ai==null?void 0:Ai.human_training_time_rules)),ei.createElement("li",null,ei.createElement("strong",null,"\u5B9E\u8BAD\u603B\u8017\u65F6",ei.createElement("i",{onClick:Zr=>{Zr.stopPropagation(),Zr.preventDefault(),Ne(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),ei.createElement("div",{className:"c-light-black mt20"},Ai.time_consuming)),ei.createElement("li",null,ei.createElement("strong",null,"\u8BC4\u6D4B\u6B21\u6570"),ei.createElement("div",{className:"mt20"},Ai.evaluate_count)),(Ai==null?void 0:Ai.eff_score_full)&&ei.createElement(ei.Fragment,null,ei.createElement("li",null,ei.createElement("strong",null,"\u5173\u5361\u5F97\u5206"),ei.createElement("div",{className:"mt20"},ei.createElement("span",{className:"c-orange"},Ai.challenge_score),"/",ei.createElement("span",{className:"c-light-black"},Ai.challenge_score_full))),ei.createElement("li",null,ei.createElement("strong",null,"\u6548\u7387\u5206"),ei.createElement("div",{className:"mt20"},ei.createElement("span",{className:"c-orange"},Ai.eff_score),"/",ei.createElement("span",{className:"c-light-black"},Ai.eff_score_full)))),(Ai==null?void 0:Ai.have_repeat)&&(Ai==null?void 0:Ai.repeat_minus_score)!==0&&ei.createElement("li",{style:{position:"relative"}},ei.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},ei.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),ei.createElement("div",{style:{position:"absolute",fontSize:"10px",color:"white",left:"57px",width:"46px",bottom:"72px"}},Ai!=null&&Ai.review_rate?ei.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0",cursor:"pointer"},onClick:()=>{if(Ai!=null&&Ai.review_id&&Ml)localStorage.setItem("studentDetial",window.location.pathname),Nt.history.push({pathname:`/classrooms/:coursesId/shixun_homework/${rr.categoryId}/review_detail/${Ai==null?void 0:Ai.review_id}`});else return}},Ai.review_rate.toFixed(1),"%"):ei.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0"}},"- -"))),Ml?ei.createElement("div",{className:"mt20"},ei.createElement(lt.default,{style:{width:"45px",height:"22px"},value:ll,onChange:Zr=>{du(Zr)},onBlur:Hh,disabled:Go})," / ",Ai==null?void 0:Ai.repeat_setting_score):ei.createElement("div",{className:"mt20"},Ai==null?void 0:Ai.repeat_minus_score," / ",Ai==null?void 0:Ai.repeat_setting_score)),console.log("sssssssssssssssssssssss",Ai==null?void 0:Ai.have_repeat,Ai==null?void 0:Ai.repeat_minus_score),(Ai==null?void 0:Ai.have_repeat)&&(Ai==null?void 0:Ai.repeat_minus_score)===0&&ei.createElement("li",null,ei.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),ei.createElement("div",{className:"mt20"}," - -")),!(Ai!=null&&Ai.have_repeat)&&ei.createElement("li",null,ei.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),ei.createElement("div",{className:"mt20"}," - -")),ei.createElement("li",null,ei.createElement("strong",null,"\u8865\u4EA4\u6263\u5206"),ei.createElement("div",{className:"mt20"},ei.createElement("span",null,Ai.late_penalty||"- -"))),ei.createElement("li",null,ei.createElement("strong",null,"\u6700\u7EC8\u6210\u7EE9"),ei.createElement("div",{className:"mt20"},ei.createElement("span",{className:"c-orange"},Wo),"/",ei.createElement("span",{className:"c-light-black"},Ai.all_work_score))),ei.createElement("li",null,ei.createElement("strong",null,"\u603B\u8BC4"),ei.createElement("div",{className:"mt20"},ei.createElement("span",{className:"c-orange"},Ai.overall_appraisal))))),ei.createElement(tt.Z,{style:{margin:0}}),(Ai.work_comment_hidden||Ai.work_comment)&&ei.createElement("div",null,ei.createElement(Kt.Z,{align:"middle"},ei.createElement($t.Z,{flex:1},ei.createElement("h1",{className:qt.title},"\u70B9\u8BC4\u5185\u5BB9")),ei.createElement($t.Z,{className:"pr30"},(0,ue.GJ)()&&ei.createElement(Ct.ZP,{onClick:()=>qn(void 0,null,function*(){jt.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:ei.createElement(Ut.Z,null),content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",onOk(){return qn(this,null,function*(){(yield(0,Wr.gZ)({comment_id:Ai.comment_id,homeworkId:rr.homeworkId})).status===0&&(te.ZP.success("\u5220\u9664\u6210\u529F"),Ei({type:"shixunHomeworks/getShixunWorkReport",payload:In(In({},rr),wl.current||{})}))})}})})},ei.createElement(Gt.Z,null),"\u5220\u9664"))),ei.createElement(tt.Z,{style:{margin:0}}),Ai.work_comment&&ei.createElement("aside",{className:"pl30 pr30 mt20"},ei.createElement("span",{className:"c-light-black font12"},"# \u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),ei.createElement("br",null),ei.createElement(Tr.Z,{value:Ai.work_comment})),Ai.work_comment_hidden&&ei.createElement("aside",{className:"pl30 pr30 mt20"},ei.createElement("span",{className:"c-light-black font12"},"# \u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),ei.createElement("br",null),ei.createElement(Tr.Z,{value:Ai.work_comment_hidden}))),(Ai==null?void 0:Ai.action_analysis)&&ei.createElement(To,{detailData:Ai}),ei.createElement("div",{className:qt.score},ei.createElement("h1",{className:qt.title},"\u9636\u6BB5\u6210\u7EE9"),(Ai==null?void 0:Ai.adjust_review_score_count)>0&&(0,ue.GJ)()&&ei.createElement("div",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{ia(!0),Bs({page:1,page_size:10},"all")}},"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55\uFF08",Ai==null?void 0:Ai.adjust_review_score_count,"\u6B21\uFF09")),ei.createElement("aside",{className:"pl30 pr30"},ei.createElement(rt.default,{dataSource:Ai.stage_list,rowKey:Zr=>Zr==null?void 0:Zr.challenge_id,pagination:!1,columns:bs})),((ui=Ai==null?void 0:Ai.target_test_sets)==null?void 0:ui.length)>0&&ei.createElement("div",null,ei.createElement("h1",{className:qt.title},"\u6307\u6807\u6210\u7EE9"),ei.createElement("aside",{className:"pl30 pr30"},ei.createElement(rt.default,{dataSource:yo,rowKey:Zr=>Zr==null?void 0:Zr.challenge_id,pagination:!1,bordered:!0,columns:ai}))),(Ai==null?void 0:Ai.work_description)&&ei.createElement(ei.Fragment,null,ei.createElement("h1",{className:qt.title},"\u4E2A\u4EBA\u603B\u7ED3"),ei.createElement("aside",{className:"pl30 pr30"},ei.createElement(Tr.Z,{value:Ai==null?void 0:Ai.work_description}))),ei.createElement("h1",{className:qt.title},"\u56FE\u5F62\u7EDF\u8BA1"),ei.createElement(Ge,{data:io}),ei.createElement("h1",{className:qt.title},"\u5B9E\u8BAD\u8BE6\u60C5")),ei.createElement(nn,{autoHeight:to}))),(0,ue.GJ)()&&ei.createElement("aside",{className:`${qt.footerBar} ${ys?qt.footerBarStatic:""}`},ei.createElement("aside",{className:"edu-container"},ei.createElement(Kt.Z,{align:"middle"},ei.createElement($t.Z,{flex:"1"},ei.createElement(Nt.Link,{className:qt.exitComment,to:`/classrooms/${rr.coursesId}/shixun_homework/${rr.categoryId}/detail`},"\u8FD4\u56DE\u5217\u8868")),ei.createElement($t.Z,{flex:"1",className:"tr"},ei.createElement(Ct.ZP,{type:"default",disabled:!(Ai!=null&&Ai.pre_student_work_id),onClick:()=>Ac()},"\u4E0A\u4E00\u4E2A"),ei.createElement(Ct.ZP,{type:"default",style:{marginLeft:"20px",marginRight:"20px"},disabled:!(Ai!=null&&Ai.next_student_work_id),onClick:()=>Ac("next")},"\u4E0B\u4E00\u4E2A"),(0,ue.GJ)()&&ei.createElement(Ct.ZP,{type:"primary",onClick:()=>qn(void 0,null,function*(){Ei({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:Ai.user_id,data:In({},Ai)},fn:()=>Bs({page:1,page_size:10},"all")}})})},"\u70B9\u8BC4\u4F5C\u4E1A"))))))),ei.createElement(Jr,null),ei.createElement($r.Z,null),ei.createElement(jt.default,{open:As,width:860,centered:!0,onCancel:()=>{hs(!1)},title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",footer:null},ei.createElement("div",{style:{color:"#333333",fontWeight:400}},ei.createElement("span",{style:{fontWeight:500}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),ei.createElement("br",null),ei.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"),ei.createElement("br",null),ei.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"),ei.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 "),ei.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")),ei.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},ei.createElement("span",{style:{fontWeight:500}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),ei.createElement("br",null),ei.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 "),ei.createElement("br",null),ei.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"),ei.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 "),ei.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"),ei.createElement("br",null),ei.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")),ei.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},ei.createElement("span",{style:{fontWeight:500}},"3\u3001\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),ei.createElement("br",null),ei.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")),ei.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},ei.createElement("span",{style:{fontWeight:500}},"\u89C4\u5219\u76EE\u7684"),ei.createElement("br",null),ei.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"))),ei.createElement(jt.default,{open:wr,title:"\u5B9E\u8BAD\u603B\u8017\u65F6\u8BF4\u660E",centered:!0,footer:null,onCancel:()=>{Ne(!1)},width:600},ei.createElement("div",{style:{fontWeight:400,color:"#333333"}},ei.createElement("div",null,"1\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",ei.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"),ei.createElement("div",{style:{margin:"20px 0px"}},"2\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",ei.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"),ei.createElement("div",null,"3\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",ei.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"))),ei.createElement(jt.default,{open:ds,title:"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55",centered:!0,footer:null,onCancel:()=>{ua("all"),ia(!1)},destroyOnClose:!0,width:900},ei.createElement("div",{style:{fontWeight:400,color:"#333333"}},ei.createElement("div",null,ei.createElement("span",null,"\u5173\u5361\uFF1A"),ei.createElement(ht.default,{style:{width:300},value:Xo,placeholder:"\u8BF7\u9009\u62E9\u5173\u5361",defaultValue:"all",onChange:Zr=>qn(void 0,null,function*(){ua(Zr),Bs({page:1,page_size:10},Zr)})},ei.createElement(ht.default.Option,{value:"all"}," \u5168\u90E8 "),(Cr=Ai==null?void 0:Ai.stage_list)==null?void 0:Cr.map((Zr,zs)=>ei.createElement(ht.default.Option,{key:zs,value:Zr==null?void 0:Zr.challenge_id},"\u7B2C",(0,Ae.EM)(zs+1),"\u5173")))),ei.createElement("div",{className:"mt20"},ei.createElement(rt.default,{dataSource:Sr,rowKey:Zr=>Zr==null?void 0:Zr.id,pagination:!1,columns:Ia,loading:_r})),ei.createElement("div",{className:qt.footer},ei.createElement("div",null,ei.createElement("span",{style:{color:"#656F87"}},"\u5171",ei.createElement("span",{className:"c-light-primary"},wo),"\u6761\u6570\u636E")),ei.createElement(dt.Z,{defaultCurrent:1,defaultPageSize:10,current:(Lr==null?void 0:Lr.page)||1,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,total:wo,onChange:Po})))))};var An=(0,Nt.connect)(({shixunHomeworks:Le,classroomList:wn,loading:Qn,globalSetting:Si,user:Di})=>({shixunHomeworks:Le,classroomList:wn,globalSetting:Si,loading:Qn.effects,user:Di}))(xi)},68971:function(hi,Cn,Ft){"use strict";var Mt=Ft(43418),ce=Ft(8591),re=Ft(99064),Ie=Ft(89070),ee=Ft(24065),Vt=Ft(59301),Nt=(te,Pt,oe)=>new Promise((Kt,$t)=>{var Ct=lt=>{try{tt(oe.next(lt))}catch(rt){$t(rt)}},et=lt=>{try{tt(oe.throw(lt))}catch(rt){$t(rt)}},tt=lt=>lt.done?Kt(lt.value):Promise.resolve(lt.value).then(Ct,et);tt((oe=oe.apply(te,Pt)).next())});const jt=({shixunHomeworks:te,classroomList:Pt,dispatch:oe})=>{const Kt=(0,Ie.useParams)();return Vt.createElement(Mt.default,{centered:!0,title:"\u63D0\u793A",open:te.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Nt(void 0,null,function*(){var $t,Ct,et,tt;if((0,ee.Rm)()&&!(($t=Pt.AssistantObject.practice)!=null&&$t.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/${te.actionTabs.selectArrs.myshixun_identifier}/reset_my_game.json`,{method:"GET",params:{course_id:Kt.coursesId,homework_common_id:te.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(ht=>`${ht.homework_common_id}`===Kt.categoryId))==null?void 0:et.id;if((0,ee.Rm)()&&!((tt=Pt.AssistantObject.practice)!=null&&tt.can_view))return;Ie.history.replace(`/classrooms/${Kt.coursesId}/shixun_homework/${Kt.categoryId}/${rt}/comment`)}}),onCancel:()=>{oe({type:"shixunHomeworks/setActionTabs",payload:{}})}},Vt.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),Vt.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))};Cn.Z=(0,Ie.connect)(({shixunHomeworks:te,classroomList:Pt})=>({shixunHomeworks:te,classroomList:Pt}))(jt)},78297:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{AD:function(){return Ge},D9:function(){return ne},Hp:function(){return Ut},IM:function(){return bn},Iy:function(){return se},KM:function(){return Oi},MJ:function(){return Gt},Ne:function(){return Ce},ON:function(){return gi},Uj:function(){return en},VY:function(){return Mn},YO:function(){return Bi},YX:function(){return Kn},Zn:function(){return et},_g:function(){return dt},_k:function(){return Re},c6:function(){return ze},cr:function(){return tt},eV:function(){return Wt},fi:function(){return lt},gh:function(){return Pe},hS:function(){return Ln},iA:function(){return rt},j6:function(){return xt},je:function(){return We},jj:function(){return It},kS:function(){return Vn},o6:function(){return qt},pO:function(){return Li},rQ:function(){return _e},sA:function(){return Ae},xm:function(){return ye},xo:function(){return Ze},y8:function(){return Me},yd:function(){return ht}});var Mt=Ft(92365),ce=Ft(89070),re=Ft(955),Ie=Ft(8591),ee=Ft(3294),Vt=Object.defineProperty,Nt=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,Pt=(Lt,Ot,mt)=>Ot in Lt?Vt(Lt,Ot,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Lt[Ot]=mt,oe=(Lt,Ot)=>{for(var mt in Ot||(Ot={}))jt.call(Ot,mt)&&Pt(Lt,mt,Ot[mt]);if(Nt)for(var mt of Nt(Ot))te.call(Ot,mt)&&Pt(Lt,mt,Ot[mt]);return Lt},Kt=(Lt,Ot,mt)=>new Promise((ft,pt)=>{var At=ae=>{try{xe(mt.next(ae))}catch(ve){pt(ve)}},le=ae=>{try{xe(mt.throw(ae))}catch(ve){pt(ve)}},xe=ae=>ae.done?ft(ae.value):Promise.resolve(ae.value).then(At,le);xe((mt=mt.apply(Lt,Ot)).next())});const $t=()=>{(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=Lt=>Kt(void 0,null,function*(){$t(),(yield(0,Mt.YR)(oe({},Lt))).status===0&&(yield(0,re.QH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/courses/${Lt.coursesId}/export_couser_info.json`,query:Lt}))),Ct()}),tt=Lt=>Kt(void 0,null,function*(){const Ot=yield(0,Mt.yS)(oe({},Lt));if(Ot.status===0)Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/course_member_act_score`);else{if(Ot.status===-2)return Ot;Ot.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/course_member_act_score`))}}),lt=Lt=>Kt(void 0,null,function*(){const Ot=yield(0,Mt.W0)(oe({},Lt));if(Ot.status===0)Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/course_total_score`);else{if(Ot.status===-4)return Ot;Ot.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/course_total_score`))}}),rt=Lt=>Kt(void 0,null,function*(){const Ot=yield(0,Mt.Nl)(oe({},Lt));if(Ot.status===0)Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/course_total_exercise_and_other`);else{if(Ot.status===-4)return Ot;Ot.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/course_total_exercise_and_other`))}}),ht=Lt=>Kt(void 0,null,function*(){const Ot=yield(0,Mt.IU)(oe({},Lt));if(Ot.status===0)Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/export_star_user`);else{if(Ot.status===-4)return Ot;Ot.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/export_star_user`))}}),dt=Lt=>Kt(void 0,null,function*(){const Ot=yield(0,Mt.td)(oe({},Lt));if(Ot.status===0)Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/course_total_exercise_and_other`);else{if(Ot.status===-2)return Ot;if(Ot.status===-3)(0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/course_total_exercise_and_other`);else if(Ot.status===-4)return Ot}}),xt=Lt=>Kt(void 0,null,function*(){const Ot=yield(0,Mt.QX)(oe({},Lt));if(Ot.status===0)Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/course_total_homework`);else{if(Ot.status===-4)return Ot;Ot.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/course_total_homework`))}}),It=(Lt,Ot)=>Kt(void 0,null,function*(){const mt=yield(0,Mt.o_)(oe({},Lt));mt.status===0?(Ie.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/${Lt.coursesId}/exportlist/${Ot}`)):mt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/${Ot}`))}),Ut=(Lt,Ot)=>Kt(void 0,null,function*(){const mt=yield(0,Mt.ZL)(oe({},Lt));mt.status===0?(Ie.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/${Lt.coursesId}/exportlist/${Ot}`)):mt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/${Ot}`))}),Gt=(Lt,Ot)=>Kt(void 0,null,function*(){const mt=yield(0,Mt.vV)(oe({},Lt));mt.status===0?(Ie.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/${Lt.coursesId}/exportlist/${Ot}`)):mt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/${Ot}`))}),se=(Lt,Ot)=>Kt(void 0,null,function*(){const mt=yield(0,Mt.aP)(oe({},Lt));mt.status===0?(Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/${Ot}`)):mt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/${Ot}`))}),ue=Lt=>Kt(void 0,null,function*(){$t(),(yield exportCourseWorkListAppendix(oe({},Lt))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${Lt.categoryId}/works_list.zip`,query:Lt}))),Ct()}),Ae=Lt=>Kt(void 0,null,function*(){$t(),yield(0,re.QH)("",ee.Z.API_SERVER+`/api/polls/${Lt.categoryId}/commit_result.xlsx`),Ct()}),Pe=Lt=>Kt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/courses/${Lt.coursesId}/attendances/export_xlsx_data.xlsx`,query:Lt}))}),qt=Lt=>Kt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/courses/${Lt.coursesId}/video_study_statics.xlsx`,query:Lt}))}),ze=Lt=>Kt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/courses/${Lt.coursesId}/export_video_study.xlsx`,query:Lt}))}),Wt=Lt=>Kt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/courses/${Lt.coursesId}/export_course_students_info.xlsx`,query:Lt}))}),Ge=Lt=>Kt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+"/api/school_manages/students.xlsx",query:Lt}))}),_e=Lt=>Kt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+"/api/item_banks/export.xlsx",query:Lt}))}),Me=Lt=>Kt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:Lt}))}),We=Lt=>Kt(void 0,null,function*(){const Ot=yield(0,Mt.Uy)(oe({},Lt));Ot.status===0?(Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/exercise_score,export_exercise_users`)):Ot.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Lt.coursesId}/exportlist/exercise_score,export_exercise_users`))}),Re=Lt=>Kt(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/${Lt.id}.xlsx`,query:Lt}))}),ye=Lt=>Kt(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:Lt}))}),ne=Lt=>Kt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/courses/${Lt==null?void 0:Lt.coursesId}/${Lt.menuKey}_statistic.xlsx?${Lt.checkedList.map(Ot=>`course_group_id[]=${Ot}`).join("&")}`,query:Lt}))}),Ce=Lt=>Kt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/ec_years/${Lt==null?void 0:Lt.ec_year_id}/ec_training_objectives.xlsx`,query:Lt}))}),bn=Lt=>Kt(void 0,null,function*(){yield(0,re.FH)(Lt==null?void 0:Lt.name,(0,re.NY)({url:ee.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:Lt}))}),Ln=Lt=>Kt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/ec_years/${Lt==null?void 0:Lt.ec_year_id}/ec_courses.xlsx`,query:Lt}))}),Ze=Lt=>Kt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/ec_years/${Lt==null?void 0:Lt.ec_year_id}/ec_graduation_requirements.xlsx`,query:Lt}))}),Mn=Lt=>Kt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:Lt}))}),Vn=Lt=>Kt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:Lt}))}),gi=Lt=>Kt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/examination_banks/${Lt.id}.json`,query:Lt}))}),Kn=Lt=>Kt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/exercises/${Lt.categoryId}.json`,query:Lt}))}),Bi=Lt=>Kt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/polls/${Lt==null?void 0:Lt.id}/commit_result.json`,query:Lt}))}),en=Lt=>Kt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+"/api/paths/get_task_pass.json",query:Lt}))}),Li=(Lt,Ot)=>Kt(void 0,null,function*(){yield(0,re.FH)(Ot||"",(0,re.NY)({url:ee.Z.API_SERVER+`/api/exercises/${Lt==null?void 0:Lt.exercise_id}/consult_exercise.json`,query:Lt}))}),Oi=Lt=>Kt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/competitions/${Lt==null?void 0:Lt.identifier}/competition_commit_records/member_works.xlsx`,query:Lt}))})},83312:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{U:function(){return te}});var Mt=Ft(59301),ce=Object.defineProperty,re=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,Vt=(Pt,oe,Kt)=>oe in Pt?ce(Pt,oe,{enumerable:!0,configurable:!0,writable:!0,value:Kt}):Pt[oe]=Kt,Nt=(Pt,oe)=>{for(var Kt in oe||(oe={}))Ie.call(oe,Kt)&&Vt(Pt,Kt,oe[Kt]);if(re)for(var Kt of re(oe))ee.call(oe,Kt)&&Vt(Pt,Kt,oe[Kt]);return Pt},jt=(Pt,oe,Kt)=>new Promise(($t,Ct)=>{var et=rt=>{try{lt(Kt.next(rt))}catch(ht){Ct(ht)}},tt=rt=>{try{lt(Kt.throw(rt))}catch(ht){Ct(ht)}},lt=rt=>rt.done?$t(rt.value):Promise.resolve(rt.value).then(et,tt);lt((Kt=Kt.apply(Pt,oe)).next())});function te(Pt,oe){const[Kt,$t]=(0,Mt.useState)(oe),[Ct,et]=(0,Mt.useState)(!1),[tt,lt]=(0,Mt.useState)();return[Kt,Ct,(ht,dt=!1)=>jt(this,null,function*(){const xt=dt?oe:Nt(Nt({},Kt),ht);et(!0),$t(xt);const It=yield Pt(xt);return et(!1),lt(It),It}),tt,lt]}},24768:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{AL:function(){return xt},Iy:function(){return oe},Qv:function(){return Ct},ez:function(){return dt},jb:function(){return Kt}});var Mt=Ft(32834),ce=Ft.n(Mt),re=Ft(11690),Ie=Ft.n(re);let ee=1;function Vt(ue,Ae){const Pe=ue.match(/^(\s+)(?:```)/);if(Pe===null)return Ae;const qt=Pe[1];return Ae.split(`
|
|
|
`).map(ze=>{const Wt=ze.match(/^\s+/);if(Wt===null)return ze;const[Ge]=Wt;return Ge.length>=qt.length?ze.slice(qt.length):ze}).join(`
|
|
|
`)}let Nt=[],jt=["<ul>"];const te=new(ce()).Renderer,Pt=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function oe(){Nt.length=0,jt=["<ul>"]}const Kt={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function $t(ue,Ae,Pe,qt){if(Ae>=ue.length||ue[Ae].level<=Pe)return Ae;var ze=ue[Ae];qt.push("<li><a href='#"+ee+ze.anchor+"'>"+ze.text+"</a>"),Ae++;var Wt=[];return Ae=$t(ue,Ae,ze.level,Wt),Wt.length>0&&(qt.push("<ul>"),Wt.forEach(function(Ge){qt.push(Ge)}),qt.push("</ul>")),qt.push("</li>"),Ae=$t(ue,Ae,Pe,qt),Ae}function Ct(){return $t(Nt,0,0,jt),jt.push("</ul>"),jt.join("")}const et={heading(ue){const Ae=Pt.exec(ue);if(ee+=1,Ae)return{type:"heading",raw:Ae[0],depth:Ae[1].length,text:Ae[2]}},fences(ue){const Ae=this.rules.block.fences.exec(ue);if(Ae){const Pe=Ae[0];let qt=Vt(Pe,Ae[3]||"");const ze=Ae[2]?Ae[2].trim():Ae[2];if(["latex","katex","math"].indexOf(ze)>=0){const Wt=rt(),Ge=qt;qt=Wt,ht[Wt]={type:"block",expression:Ge}}return{type:"code",raw:Pe,lang:ze,text:qt}}}},tt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let lt=0;const rt=()=>`__special_katext_id_${lt++}__`;let ht={};function dt(){return ht}function xt(){lt=0,ht={}}function It(ue){return ue=ue.replace(tt,(Ae,Pe)=>{const qt=rt();return ht[qt]={type:"inline",expression:Pe},qt}),ue}const Ut=te.listitem;te.listitem=function(ue){return Ut(It(ue))};const Gt=te.paragraph;te.paragraph=function(ue){return Gt(It(ue))};const se=te.tablecell;te.tablecell=function(ue,Ae){return se(It(ue),Ae)},te.code=function(ue,Ae,Pe){const qt=(Ae||"").match(/\S*/)[0];return qt?["latex","katex","math"].indexOf(qt)>=0?`<p class='editormd-tex'>${ue}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ae}">${Pe?ue:(0,re.escape)(ue,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Pe?ue:(0,re.escape)(ue,!0))+"</code></pre>"},te.heading=function(ue,Ae,Pe){let qt=this.options.headerPrefix+Pe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Nt.push({anchor:qt,level:Ae,text:ue}),"<h"+Ae+' id="'+ee+qt+'">'+ue+"</h"+Ae+">"},ce().setOptions({silent:!0,gfm:!0,pedantic:!1}),ce().use({tokenizer:et,renderer:te}),Cn.ZP=ce()},50371:function(hi,Cn){"use strict";function Ft(){const Mt=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(Ie=>{const ee=re[Ie];ee!==void 0&&(Mt[Ie]=ee)})}return Mt}Cn.Z=Ft},13845:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{F:function(){return Mt},Z:function(){return ce}});function Mt(re){return re!=null&&re===re.window}function ce(re,Ie){var ee,Vt;if(typeof window=="undefined")return 0;const Nt=Ie?"scrollTop":"scrollLeft";let jt=0;return Mt(re)?jt=re[Ie?"pageYOffset":"pageXOffset"]:re instanceof Document?jt=re.documentElement[Nt]:(re instanceof HTMLElement||re)&&(jt=re[Nt]),re&&!Mt(re)&&typeof jt!="number"&&(jt=(Vt=((ee=re.ownerDocument)!==null&&ee!==void 0?ee:re).documentElement)===null||Vt===void 0?void 0:Vt[Nt]),jt}},56762:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return ce}});var Mt=Ft(59301);function ce(){const[,re]=Mt.useReducer(Ie=>Ie+1,0);return re}},68031:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return Ie}});var Mt=Ft(16089);function ce(ee,Vt,Nt,jt){const te=Nt-Vt;return ee/=jt/2,ee<1?te/2*ee*ee*ee+Vt:te/2*((ee-=2)*ee*ee+2)+Vt}var re=Ft(13845);function Ie(ee){let Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Nt=()=>window,callback:jt,duration:te=450}=Vt,Pt=Nt(),oe=(0,re.Z)(Pt,!0),Kt=Date.now(),$t=()=>{const et=Date.now()-Kt,tt=ce(et>te?te:et,oe,ee,te);(0,re.F)(Pt)?Pt.scrollTo(window.pageXOffset,tt):Pt instanceof Document||Pt.constructor.name==="HTMLDocument"?Pt.documentElement.scrollTop=tt:Pt.scrollTop=tt,et<te?(0,Mt.Z)($t):typeof jt=="function"&&jt()};(0,Mt.Z)($t)}},66104:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return Ge}});var Mt=Ft(92310),ce=Ft.n(Mt),re=Ft(11592),Ie=Ft(26112),ee=Ft(59301),Vt=Ft(92343),Nt=Ft(36355),jt=Ft(84105),te=Ft(91857);const Pt=_e=>{let{children:Me}=_e;const{getPrefixCls:We}=ee.useContext(Nt.E_),Re=We("breadcrumb");return ee.createElement("li",{className:`${Re}-separator`,"aria-hidden":"true"},Me===""?Me:Me||"/")};Pt.__ANT_BREADCRUMB_SEPARATOR=!0;var oe=Pt,Kt=function(_e,Me){var We={};for(var Re in _e)Object.prototype.hasOwnProperty.call(_e,Re)&&Me.indexOf(Re)<0&&(We[Re]=_e[Re]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,Re=Object.getOwnPropertySymbols(_e);ye<Re.length;ye++)Me.indexOf(Re[ye])<0&&Object.prototype.propertyIsEnumerable.call(_e,Re[ye])&&(We[Re[ye]]=_e[Re[ye]]);return We};function $t(_e,Me){if(_e.title===void 0||_e.title===null)return null;const We=Object.keys(Me).join("|");return typeof _e.title=="object"?_e.title:String(_e.title).replace(new RegExp(`:(${We})`,"g"),(Re,ye)=>Me[ye]||Re)}function Ct(_e,Me,We,Re){if(We==null)return null;const{className:ye,onClick:ne}=Me,Ce=Kt(Me,["className","onClick"]),bn=Object.assign(Object.assign({},(0,Ie.Z)(Ce,{data:!0,aria:!0})),{onClick:ne});return Re!==void 0?ee.createElement("a",Object.assign({},bn,{className:ce()(`${_e}-link`,ye),href:Re}),We):ee.createElement("span",Object.assign({},bn,{className:ce()(`${_e}-link`,ye)}),We)}function et(_e,Me){return(Re,ye,ne,Ce,bn)=>{if(Me)return Me(Re,ye,ne,Ce);const Ln=$t(Re,ye);return Ct(_e,Re,Ln,bn)}}var tt=function(_e,Me){var We={};for(var Re in _e)Object.prototype.hasOwnProperty.call(_e,Re)&&Me.indexOf(Re)<0&&(We[Re]=_e[Re]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,Re=Object.getOwnPropertySymbols(_e);ye<Re.length;ye++)Me.indexOf(Re[ye])<0&&Object.prototype.propertyIsEnumerable.call(_e,Re[ye])&&(We[Re[ye]]=_e[Re[ye]]);return We};const lt=_e=>{const{prefixCls:Me,separator:We="/",children:Re,menu:ye,overlay:ne,dropdownProps:Ce,href:bn}=_e,Ze=(Mn=>{if(ye||ne){const Vn=Object.assign({},Ce);if(ye){const gi=ye||{},{items:Kn}=gi,Bi=tt(gi,["items"]);Vn.menu=Object.assign(Object.assign({},Bi),{items:Kn==null?void 0:Kn.map((en,Li)=>{var{key:Oi,title:Lt,label:Ot,path:mt}=en,ft=tt(en,["key","title","label","path"]);let pt=Ot!=null?Ot:Lt;return mt&&(pt=ee.createElement("a",{href:`${bn}${mt}`},pt)),Object.assign(Object.assign({},ft),{key:Oi!=null?Oi:Li,label:pt})})})}else ne&&(Vn.overlay=ne);return ee.createElement(te.Z,Object.assign({placement:"bottom"},Vn),ee.createElement("span",{className:`${Me}-overlay-link`},Mn,ee.createElement(jt.Z,null)))}return Mn})(Re);return Ze!=null?ee.createElement(ee.Fragment,null,ee.createElement("li",null,Ze),We&&ee.createElement(oe,null,We)):null},rt=_e=>{const{prefixCls:Me,children:We,href:Re}=_e,ye=tt(_e,["prefixCls","children","href"]),{getPrefixCls:ne}=ee.useContext(Nt.E_),Ce=ne("breadcrumb",Me);return ee.createElement(lt,Object.assign({},ye,{prefixCls:Ce}),Ct(Ce,ye,We,Re))};rt.__ANT_BREADCRUMB_ITEM=!0;var ht=rt,dt=Ft(17313),xt=Ft(83116),It=Ft(37613);const Ut=_e=>{const{componentCls:Me,iconCls:We}=_e;return{[Me]:Object.assign(Object.assign({},(0,dt.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,dt.Qy)(_e)),"li:last-child":{color:_e.lastItemColor},[`${Me}-separator`]:{marginInline:_e.separatorMargin,color:_e.separatorColor},[`${Me}-link`]:{[`
|
|
|
> ${We} + span,
|
|
|
> ${We} + a
|
|
|
`]:{marginInlineStart:_e.marginXXS}},[`${Me}-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 Gt=(0,xt.Z)("Breadcrumb",_e=>{const Me=(0,It.TS)(_e,{});return[Ut(Me)]},_e=>({itemColor:_e.colorTextDescription,lastItemColor:_e.colorText,iconFontSize:_e.fontSize,linkColor:_e.colorTextDescription,linkHoverColor:_e.colorText,separatorColor:_e.colorTextDescription,separatorMargin:_e.marginXS})),se=function(_e,Me){var We={};for(var Re in _e)Object.prototype.hasOwnProperty.call(_e,Re)&&Me.indexOf(Re)<0&&(We[Re]=_e[Re]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,Re=Object.getOwnPropertySymbols(_e);ye<Re.length;ye++)Me.indexOf(Re[ye])<0&&Object.prototype.propertyIsEnumerable.call(_e,Re[ye])&&(We[Re[ye]]=_e[Re[ye]]);return We};function ue(_e){const{breadcrumbName:Me,children:We}=_e,Re=se(_e,["breadcrumbName","children"]),ye=Object.assign({title:Me},Re);return We&&(ye.menu={items:We.map(ne=>{var{breadcrumbName:Ce}=ne,bn=se(ne,["breadcrumbName"]);return Object.assign(Object.assign({},bn),{title:Ce})})}),ye}function Ae(_e,Me){return(0,ee.useMemo)(()=>_e||(Me?Me.map(ue):null),[_e,Me])}var Pe=function(_e,Me){var We={};for(var Re in _e)Object.prototype.hasOwnProperty.call(_e,Re)&&Me.indexOf(Re)<0&&(We[Re]=_e[Re]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,Re=Object.getOwnPropertySymbols(_e);ye<Re.length;ye++)Me.indexOf(Re[ye])<0&&Object.prototype.propertyIsEnumerable.call(_e,Re[ye])&&(We[Re[ye]]=_e[Re[ye]]);return We};const qt=(_e,Me)=>{if(Me===void 0)return Me;let We=(Me||"").replace(/^\//,"");return Object.keys(_e).forEach(Re=>{We=We.replace(`:${Re}`,_e[Re])}),We},ze=_e=>{const{prefixCls:Me,separator:We="/",style:Re,className:ye,rootClassName:ne,routes:Ce,items:bn,children:Ln,itemRender:Ze,params:Mn={}}=_e,Vn=Pe(_e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:gi,direction:Kn,breadcrumb:Bi}=ee.useContext(Nt.E_);let en;const Li=gi("breadcrumb",Me),[Oi,Lt]=Gt(Li),Ot=Ae(bn,Ce),mt=et(Li,Ze);if(Ot&&Ot.length>0){const At=[],le=bn||Ce;en=Ot.map((xe,ae)=>{const{path:ve,key:Ue,type:Te,menu:ke,overlay:nn,onClick:Wn,className:an,separator:gn,dropdownProps:Bn}=xe,ti=qt(Mn,ve);ti!==void 0&&At.push(ti);const Rn=Ue!=null?Ue:ae;if(Te==="separator")return ee.createElement(oe,{key:Rn},gn);const Ri={},dr=ae===Ot.length-1;ke?Ri.menu=ke:nn&&(Ri.overlay=nn);let{href:Ji}=xe;return At.length&&ti!==void 0&&(Ji=`#/${At.join("/")}`),ee.createElement(lt,Object.assign({key:Rn},Ri,(0,Ie.Z)(xe,{data:!0,aria:!0}),{className:an,dropdownProps:Bn,href:Ji,separator:dr?"":We,onClick:Wn,prefixCls:Li}),mt(xe,Mn,le,At,Ji))})}else if(Ln){const At=(0,re.Z)(Ln).length;en=(0,re.Z)(Ln).map((le,xe)=>{if(!le)return le;const ae=xe===At-1;return(0,Vt.Tm)(le,{separator:ae?"":We,key:xe})})}const ft=ce()(Li,Bi==null?void 0:Bi.className,{[`${Li}-rtl`]:Kn==="rtl"},ye,ne,Lt),pt=Object.assign(Object.assign({},Bi==null?void 0:Bi.style),Re);return Oi(ee.createElement("nav",Object.assign({className:ft,style:pt},Vn),ee.createElement("ol",null,en)))};ze.Item=ht,ze.Separator=oe;var Wt=ze,Ge=Wt},24905:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{default:function(){return Gt}});var Mt=Ft(92310),ce=Ft.n(Mt),re=Ft(5630),Ie=Ft(59301),ee=Ft(36355),Vt=Ft(1684),Nt=Ft(32441),te=Ie.createContext(null),Pt=Ft(98447),oe=Ft(14088),Kt=Ft(4572),$t=function(se,ue){var Ae={};for(var Pe in se)Object.prototype.hasOwnProperty.call(se,Pe)&&ue.indexOf(Pe)<0&&(Ae[Pe]=se[Pe]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qt=0,Pe=Object.getOwnPropertySymbols(se);qt<Pe.length;qt++)ue.indexOf(Pe[qt])<0&&Object.prototype.propertyIsEnumerable.call(se,Pe[qt])&&(Ae[Pe[qt]]=se[Pe[qt]]);return Ae};const Ct=(se,ue)=>{var Ae;const{prefixCls:Pe,className:qt,rootClassName:ze,children:Wt,indeterminate:Ge=!1,style:_e,onMouseEnter:Me,onMouseLeave:We,skipGroup:Re=!1,disabled:ye}=se,ne=$t(se,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ce,direction:bn,checkbox:Ln}=Ie.useContext(ee.E_),Ze=Ie.useContext(te),{isFormItemInput:Mn}=Ie.useContext(Nt.aM),Vn=Ie.useContext(Vt.Z),gi=(Ae=(Ze==null?void 0:Ze.disabled)||ye)!==null&&Ae!==void 0?Ae:Vn,Kn=Ie.useRef(ne.value);Ie.useEffect(()=>{Ze==null||Ze.registerValue(ne.value)},[]),Ie.useEffect(()=>{if(!Re)return ne.value!==Kn.current&&(Ze==null||Ze.cancelValue(Kn.current),Ze==null||Ze.registerValue(ne.value),Kn.current=ne.value),()=>Ze==null?void 0:Ze.cancelValue(ne.value)},[ne.value]);const Bi=Ce("checkbox",Pe),[en,Li]=(0,Pt.ZP)(Bi),Oi=Object.assign({},ne);Ze&&!Re&&(Oi.onChange=function(){ne.onChange&&ne.onChange.apply(ne,arguments),Ze.toggleOption&&Ze.toggleOption({label:Wt,value:ne.value})},Oi.name=Ze.name,Oi.checked=Ze.value.includes(ne.value));const Lt=ce()(`${Bi}-wrapper`,{[`${Bi}-rtl`]:bn==="rtl",[`${Bi}-wrapper-checked`]:Oi.checked,[`${Bi}-wrapper-disabled`]:gi,[`${Bi}-wrapper-in-form-item`]:Mn},Ln==null?void 0:Ln.className,qt,ze,Li),Ot=ce()({[`${Bi}-indeterminate`]:Ge},Kt.A,Li),mt=Ge?"mixed":void 0;return en(Ie.createElement(oe.Z,{component:"Checkbox",disabled:gi},Ie.createElement("label",{className:Lt,style:Object.assign(Object.assign({},Ln==null?void 0:Ln.style),_e),onMouseEnter:Me,onMouseLeave:We},Ie.createElement(re.Z,Object.assign({"aria-checked":mt},Oi,{prefixCls:Bi,className:Ot,disabled:gi,ref:ue})),Wt!==void 0&&Ie.createElement("span",null,Wt))))};var tt=Ie.forwardRef(Ct),lt=Ft(19127),rt=Ft(2738),ht=function(se,ue){var Ae={};for(var Pe in se)Object.prototype.hasOwnProperty.call(se,Pe)&&ue.indexOf(Pe)<0&&(Ae[Pe]=se[Pe]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qt=0,Pe=Object.getOwnPropertySymbols(se);qt<Pe.length;qt++)ue.indexOf(Pe[qt])<0&&Object.prototype.propertyIsEnumerable.call(se,Pe[qt])&&(Ae[Pe[qt]]=se[Pe[qt]]);return Ae};const dt=(se,ue)=>{const{defaultValue:Ae,children:Pe,options:qt=[],prefixCls:ze,className:Wt,rootClassName:Ge,style:_e,onChange:Me}=se,We=ht(se,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Re,direction:ye}=Ie.useContext(ee.E_),[ne,Ce]=Ie.useState(We.value||Ae||[]),[bn,Ln]=Ie.useState([]);Ie.useEffect(()=>{"value"in We&&Ce(We.value||[])},[We.value]);const Ze=Ie.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))},Vn=ft=>{Ln(pt=>[].concat((0,lt.Z)(pt),[ft]))},gi=ft=>{const pt=ne.indexOf(ft.value),At=(0,lt.Z)(ne);pt===-1?At.push(ft.value):At.splice(pt,1),"value"in We||Ce(At),Me==null||Me(At.filter(le=>bn.includes(le)).sort((le,xe)=>{const ae=Ze.findIndex(Ue=>Ue.value===le),ve=Ze.findIndex(Ue=>Ue.value===xe);return ae-ve}))},Kn=Re("checkbox",ze),Bi=`${Kn}-group`,[en,Li]=(0,Pt.ZP)(Kn),Oi=(0,rt.Z)(We,["value","disabled"]),Lt=qt.length?Ze.map(ft=>Ie.createElement(tt,{prefixCls:Kn,key:ft.value.toString(),disabled:"disabled"in ft?ft.disabled:We.disabled,value:ft.value,checked:ne.includes(ft.value),onChange:ft.onChange,className:`${Bi}-item`,style:ft.style,title:ft.title},ft.label)):Pe,Ot={toggleOption:gi,value:ne,disabled:We.disabled,name:We.name,registerValue:Vn,cancelValue:Mn},mt=ce()(Bi,{[`${Bi}-rtl`]:ye==="rtl"},Wt,Ge,Li);return en(Ie.createElement("div",Object.assign({className:mt,style:_e},Oi,{ref:ue}),Ie.createElement(te.Provider,{value:Ot},Lt)))},xt=Ie.forwardRef(dt);var It=Ie.memo(xt);const Ut=tt;Ut.Group=It,Ut.__ANT_CHECKBOX=!0;var Gt=Ut},98447:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{C2:function(){return ee}});var Mt=Ft(17313),ce=Ft(37613),re=Ft(83116);const Ie=Vt=>{const{checkboxCls:Nt}=Vt,jt=`${Nt}-wrapper`;return[{[`${Nt}-group`]:Object.assign(Object.assign({},(0,Mt.Wf)(Vt)),{display:"inline-flex",flexWrap:"wrap",columnGap:Vt.marginXS,[`> ${Vt.antCls}-row`]:{flex:1}}),[jt]:Object.assign(Object.assign({},(0,Mt.Wf)(Vt)),{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}}}),[Nt]:Object.assign(Object.assign({},(0,Mt.Wf)(Vt)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Vt.borderRadiusSM,alignSelf:"center",[`${Nt}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Nt}-inner`]:Object.assign({},(0,Mt.oN)(Vt))},[`${Nt}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Vt.checkboxSize,height:Vt.checkboxSize,direction:"ltr",backgroundColor:Vt.colorBgContainer,border:`${Vt.lineWidth}px ${Vt.lineType} ${Vt.colorBorder}`,borderRadius:Vt.borderRadiusSM,borderCollapse:"separate",transition:`all ${Vt.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Vt.checkboxSize/14*5,height:Vt.checkboxSize/14*8,border:`${Vt.lineWidthBold}px solid ${Vt.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Vt.motionDurationFast} ${Vt.motionEaseInBack}, opacity ${Vt.motionDurationFast}`}},"& + span":{paddingInlineStart:Vt.paddingXS,paddingInlineEnd:Vt.paddingXS}})},{[`
|
|
|
${jt}:not(${jt}-disabled),
|
|
|
${Nt}:not(${Nt}-disabled)
|
|
|
`]:{[`&:hover ${Nt}-inner`]:{borderColor:Vt.colorPrimary}},[`${jt}:not(${jt}-disabled)`]:{[`&:hover ${Nt}-checked:not(${Nt}-disabled) ${Nt}-inner`]:{backgroundColor:Vt.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Nt}-checked:not(${Nt}-disabled):after`]:{borderColor:Vt.colorPrimaryHover}}},{[`${Nt}-checked`]:{[`${Nt}-inner`]:{backgroundColor:Vt.colorPrimary,borderColor:Vt.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Vt.motionDurationMid} ${Vt.motionEaseOutBack} ${Vt.motionDurationFast}`}}},[`
|
|
|
${jt}-checked:not(${jt}-disabled),
|
|
|
${Nt}-checked:not(${Nt}-disabled)
|
|
|
`]:{[`&:hover ${Nt}-inner`]:{backgroundColor:Vt.colorPrimaryHover,borderColor:"transparent"}}},{[Nt]:{"&-indeterminate":{[`${Nt}-inner`]:{backgroundColor:Vt.colorBgContainer,borderColor:Vt.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Vt.fontSizeLG/2,height:Vt.fontSizeLG/2,backgroundColor:Vt.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${jt}-disabled`]:{cursor:"not-allowed"},[`${Nt}-disabled`]:{[`&, ${Nt}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Nt}-inner`]:{background:Vt.colorBgContainerDisabled,borderColor:Vt.colorBorder,"&:after":{borderColor:Vt.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Vt.colorTextDisabled},[`&${Nt}-indeterminate ${Nt}-inner::after`]:{background:Vt.colorTextDisabled}}}]};function ee(Vt,Nt){const jt=(0,ce.TS)(Nt,{checkboxCls:`.${Vt}`,checkboxSize:Nt.controlInteractiveSize});return[Ie(jt)]}Cn.ZP=(0,re.Z)("Checkbox",(Vt,Nt)=>{let{prefixCls:jt}=Nt;return[ee(jt,Vt)]})},93891:function(hi,Cn,Ft){"use strict";var Mt=Ft(59301),ce=Ft(36355),re=Ft(64165);const Ie=ee=>{const{componentName:Vt}=ee,{getPrefixCls:Nt}=(0,Mt.useContext)(ce.E_),jt=Nt("empty");switch(Vt){case"Table":case"List":return Mt.createElement(re.Z,{image:re.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Mt.createElement(re.Z,{image:re.Z.PRESENTED_IMAGE_SIMPLE,className:`${jt}-small`});default:return Mt.createElement(re.Z,null)}};Cn.Z=Ie},28103:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return Kt}});var Mt=Ft(92310),ce=Ft.n(Mt),re=Ft(59301),Ie=Ft(36355),ee=Ft(17313),Vt=Ft(83116),Nt=Ft(37613);const jt=$t=>{const{componentCls:Ct,sizePaddingEdgeHorizontal:et,colorSplit:tt,lineWidth:lt,textPaddingInline:rt,orientationMargin:ht,verticalMarginInline:dt}=$t;return{[Ct]:Object.assign(Object.assign({},(0,ee.Wf)($t)),{borderBlockStart:`${lt}px solid ${tt}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:dt,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${lt}px solid ${tt}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${$t.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${Ct}-with-text`]:{display:"flex",alignItems:"center",margin:`${$t.dividerHorizontalWithTextGutterMargin}px 0`,color:$t.colorTextHeading,fontWeight:500,fontSize:$t.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:`${ht*100}%`},"&::after":{width:`${100-ht*100}%`}},[`&-horizontal${Ct}-with-text-right`]:{"&::before":{width:`${100-ht*100}%`},"&::after":{width:`${ht*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:$t.colorText,fontWeight:"normal",fontSize:$t.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 te=(0,Vt.Z)("Divider",$t=>{const Ct=(0,Nt.TS)($t,{dividerHorizontalWithTextGutterMargin:$t.margin,dividerHorizontalGutterMargin:$t.marginLG,sizePaddingEdgeHorizontal:0});return[jt(Ct)]},$t=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:$t.marginXS})),Pt=function($t,Ct){var et={};for(var tt in $t)Object.prototype.hasOwnProperty.call($t,tt)&&Ct.indexOf(tt)<0&&(et[tt]=$t[tt]);if($t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,tt=Object.getOwnPropertySymbols($t);lt<tt.length;lt++)Ct.indexOf(tt[lt])<0&&Object.prototype.propertyIsEnumerable.call($t,tt[lt])&&(et[tt[lt]]=$t[tt[lt]]);return et},Kt=$t=>{const{getPrefixCls:Ct,direction:et,divider:tt}=re.useContext(Ie.E_),{prefixCls:lt,type:rt="horizontal",orientation:ht="center",orientationMargin:dt,className:xt,rootClassName:It,children:Ut,dashed:Gt,plain:se,style:ue}=$t,Ae=Pt($t,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Pe=Ct("divider",lt),[qt,ze]=te(Pe),Wt=ht.length>0?`-${ht}`:ht,Ge=!!Ut,_e=ht==="left"&&dt!=null,Me=ht==="right"&&dt!=null,We=ce()(Pe,tt==null?void 0:tt.className,ze,`${Pe}-${rt}`,{[`${Pe}-with-text`]:Ge,[`${Pe}-with-text${Wt}`]:Ge,[`${Pe}-dashed`]:!!Gt,[`${Pe}-plain`]:!!se,[`${Pe}-rtl`]:et==="rtl",[`${Pe}-no-default-orientation-margin-left`]:_e,[`${Pe}-no-default-orientation-margin-right`]:Me},xt,It),Re=re.useMemo(()=>typeof dt=="number"?dt:/^\d+$/.test(dt)?Number(dt):dt,[dt]),ye=Object.assign(Object.assign({},_e&&{marginLeft:Re}),Me&&{marginRight:Re});return qt(re.createElement("div",Object.assign({className:We,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),ue)},Ae,{role:"separator"}),Ut&&rt!=="vertical"&&re.createElement("span",{className:`${Pe}-inner-text`,style:ye},Ut)))}},91857:function(hi,Cn,Ft){"use strict";var Mt=Ft(59301),ce=Ft(38819),re=Ft(92310),Ie=Ft.n(re),ee=Ft(31561),Vt=Ft(70425),Nt=Ft(18929),jt=Ft(2738),te=Ft(79676),Pt=Ft(53487),oe=Ft(92343),Kt=Ft(36355),$t=Ft(20834),Ct=Ft(40875),et=Ft(88088),tt=Ft(47211);const lt=null,rt=It=>{const{menu:Ut,arrow:Gt,prefixCls:se,children:ue,trigger:Ae,disabled:Pe,dropdownRender:qt,getPopupContainer:ze,overlayClassName:Wt,rootClassName:Ge,open:_e,onOpenChange:Me,visible:We,onVisibleChange:Re,mouseEnterDelay:ye=.15,mouseLeaveDelay:ne=.1,autoAdjustOverflow:Ce=!0,placement:bn="",overlay:Ln,transitionName:Ze}=It,{getPopupContainer:Mn,getPrefixCls:Vn,direction:gi}=Mt.useContext(Kt.E_),Kn=Mt.useMemo(()=>{const ke=Vn();return Ze!==void 0?Ze:bn.includes("top")?`${ke}-slide-down`:`${ke}-slide-up`},[Vn,bn,Ze]),Bi=Mt.useMemo(()=>bn?bn.includes("Center")?bn.slice(0,bn.indexOf("Center")):bn:gi==="rtl"?"bottomRight":"bottomLeft",[bn,gi]),en=Vn("dropdown",se),[Li,Oi]=(0,tt.Z)(en),[,Lt]=(0,et.Z)(),Ot=Mt.Children.only(ue),mt=(0,oe.Tm)(Ot,{className:Ie()(`${en}-trigger`,{[`${en}-rtl`]:gi==="rtl"},Ot.props.className),disabled:Pe}),ft=Pe?[]:Ae;let pt;ft&&ft.includes("contextMenu")&&(pt=!0);const[At,le]=(0,Nt.Z)(!1,{value:_e!=null?_e:We}),xe=(0,Vt.useEvent)(ke=>{Me==null||Me(ke),Re==null||Re(ke),le(ke)}),ae=Ie()(Wt,Ge,Oi,{[`${en}-rtl`]:gi==="rtl"}),ve=(0,te.Z)({arrowPointAtCenter:typeof Gt=="object"&&Gt.pointAtCenter,autoAdjustOverflow:Ce,offset:Lt.marginXXS,arrowWidth:Gt?Lt.sizePopupArrow:0,borderRadius:Lt.borderRadius}),Ue=Mt.useCallback(()=>{le(!1)},[]),Te=()=>{let ke;return Ut!=null&&Ut.items?ke=Mt.createElement($t.default,Object.assign({},Ut)):typeof Ln=="function"?ke=Ln():ke=Ln,qt&&(ke=qt(ke)),ke=Mt.Children.only(typeof ke=="string"?Mt.createElement("span",null,ke):ke),Mt.createElement(Ct.J,{prefixCls:`${en}-menu`,expandIcon:Mt.createElement("span",{className:`${en}-menu-submenu-arrow`},Mt.createElement(ce.Z,{className:`${en}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ue,validator:nn=>{let{mode:Wn}=nn}},ke)};return Li(Mt.createElement(ee.Z,Object.assign({alignPoint:pt},(0,jt.Z)(It,["rootClassName"]),{mouseEnterDelay:ye,mouseLeaveDelay:ne,visible:At,builtinPlacements:ve,arrow:!!Gt,overlayClassName:ae,prefixCls:en,getPopupContainer:ze||Mn,transitionName:Kn,trigger:ft,overlay:Te,placement:Bi,onVisibleChange:xe}),mt))};function ht(It){return Object.assign(Object.assign({},It),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const dt=(0,Pt.Z)(rt,"dropdown",It=>It,ht),xt=It=>Mt.createElement(dt,Object.assign({},It),Mt.createElement("span",null));rt._InternalPanelDoNotUseOrYouWillBeFired=xt,Cn.Z=rt},38854:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return et}});var Mt=Ft(91857),ce=Ft(92310),re=Ft.n(ce),Ie=Ft(59301),ee=Ft(18785),Vt=Ft(3113),Nt=Ft(36355),jt=Ft(81327),te=Ft(33234),Pt=Ft(47211),oe=function(tt,lt){var rt={};for(var ht in tt)Object.prototype.hasOwnProperty.call(tt,ht)&<.indexOf(ht)<0&&(rt[ht]=tt[ht]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,ht=Object.getOwnPropertySymbols(tt);dt<ht.length;dt++)lt.indexOf(ht[dt])<0&&Object.prototype.propertyIsEnumerable.call(tt,ht[dt])&&(rt[ht[dt]]=tt[ht[dt]]);return rt};const Kt=tt=>{const{getPopupContainer:lt,getPrefixCls:rt,direction:ht}=Ie.useContext(Nt.E_),{prefixCls:dt,type:xt="default",danger:It,disabled:Ut,loading:Gt,onClick:se,htmlType:ue,children:Ae,className:Pe,menu:qt,arrow:ze,autoFocus:Wt,overlay:Ge,trigger:_e,align:Me,open:We,onOpenChange:Re,placement:ye,getPopupContainer:ne,href:Ce,icon:bn=Ie.createElement(ee.Z,null),title:Ln,buttonsRender:Ze=Te=>Te,mouseEnterDelay:Mn,mouseLeaveDelay:Vn,overlayClassName:gi,overlayStyle:Kn,destroyPopupOnHide:Bi,dropdownRender:en}=tt,Li=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"]),Oi=rt("dropdown",dt),Lt=`${Oi}-button`,[Ot,mt]=(0,Pt.Z)(Oi),ft={menu:qt,arrow:ze,autoFocus:Wt,align:Me,disabled:Ut,trigger:Ut?[]:_e,onOpenChange:Re,getPopupContainer:ne||lt,mouseEnterDelay:Mn,mouseLeaveDelay:Vn,overlayClassName:gi,overlayStyle:Kn,destroyPopupOnHide:Bi,dropdownRender:en},{compactSize:pt,compactItemClassnames:At}=(0,te.ri)(Oi,ht),le=re()(Lt,At,Pe,mt);"overlay"in tt&&(ft.overlay=Ge),"open"in tt&&(ft.open=We),"placement"in tt?ft.placement=ye:ft.placement=ht==="rtl"?"bottomLeft":"bottomRight";const xe=Ie.createElement(Vt.ZP,{type:xt,danger:It,disabled:Ut,loading:Gt,onClick:se,htmlType:ue,href:Ce,title:Ln},Ae),ae=Ie.createElement(Vt.ZP,{type:xt,danger:It,icon:bn}),[ve,Ue]=Ze([xe,ae]);return Ot(Ie.createElement(jt.Z.Compact,Object.assign({className:le,size:pt,block:!0},Li),ve,Ie.createElement(Mt.Z,Object.assign({},ft),Ue)))};Kt.__ANT_BUTTON=!0;var $t=Kt;const Ct=Mt.Z;Ct.Button=$t;var et=Ct},47211:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return oe}});var Mt=Ft(17313),ce=Ft(13826),re=Ft(92899),Ie=Ft(29878),ee=Ft(19447),Vt=Ft(83116),Nt=Ft(37613),te=Kt=>{const{componentCls:$t,menuCls:Ct,colorError:et,colorTextLightSolid:tt}=Kt,lt=`${Ct}-item`;return{[`${$t}, ${$t}-menu-submenu`]:{[`${Ct} ${lt}`]:{[`&${lt}-danger:not(${lt}-disabled)`]:{color:et,"&:hover":{color:tt,backgroundColor:et}}}}}};const Pt=Kt=>{const{componentCls:$t,menuCls:Ct,zIndexPopup:et,dropdownArrowDistance:tt,sizePopupArrow:lt,antCls:rt,iconCls:ht,motionDurationMid:dt,dropdownPaddingVertical:xt,fontSize:It,dropdownEdgeChildPadding:Ut,colorTextDisabled:Gt,fontSizeIcon:se,controlPaddingHorizontal:ue,colorBgElevated:Ae}=Kt;return[{[$t]:Object.assign(Object.assign({},(0,Mt.Wf)(Kt)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:et,display:"block","&::before":{position:"absolute",insetBlock:-tt+lt/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${rt}-btn`]:{[`& > ${ht}-down, & > ${rt}-btn-icon > ${ht}-down`]:{fontSize:se}},[`${$t}-wrap`]:{position:"relative",[`${rt}-btn > ${ht}-down`]:{fontSize:se},[`${ht}-down::before`]:{transition:`transform ${dt}`}},[`${$t}-wrap-open`]:{[`${ht}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${rt}-slide-down-enter${rt}-slide-down-enter-active${$t}-placement-bottomLeft,
|
|
|
&${rt}-slide-down-appear${rt}-slide-down-appear-active${$t}-placement-bottomLeft,
|
|
|
&${rt}-slide-down-enter${rt}-slide-down-enter-active${$t}-placement-bottom,
|
|
|
&${rt}-slide-down-appear${rt}-slide-down-appear-active${$t}-placement-bottom,
|
|
|
&${rt}-slide-down-enter${rt}-slide-down-enter-active${$t}-placement-bottomRight,
|
|
|
&${rt}-slide-down-appear${rt}-slide-down-appear-active${$t}-placement-bottomRight`]:{animationName:ce.fJ},[`&${rt}-slide-up-enter${rt}-slide-up-enter-active${$t}-placement-topLeft,
|
|
|
&${rt}-slide-up-appear${rt}-slide-up-appear-active${$t}-placement-topLeft,
|
|
|
&${rt}-slide-up-enter${rt}-slide-up-enter-active${$t}-placement-top,
|
|
|
&${rt}-slide-up-appear${rt}-slide-up-appear-active${$t}-placement-top,
|
|
|
&${rt}-slide-up-enter${rt}-slide-up-enter-active${$t}-placement-topRight,
|
|
|
&${rt}-slide-up-appear${rt}-slide-up-appear-active${$t}-placement-topRight`]:{animationName:ce.Qt},[`&${rt}-slide-down-leave${rt}-slide-down-leave-active${$t}-placement-bottomLeft,
|
|
|
&${rt}-slide-down-leave${rt}-slide-down-leave-active${$t}-placement-bottom,
|
|
|
&${rt}-slide-down-leave${rt}-slide-down-leave-active${$t}-placement-bottomRight`]:{animationName:ce.Uw},[`&${rt}-slide-up-leave${rt}-slide-up-leave-active${$t}-placement-topLeft,
|
|
|
&${rt}-slide-up-leave${rt}-slide-up-leave-active${$t}-placement-top,
|
|
|
&${rt}-slide-up-leave${rt}-slide-up-leave-active${$t}-placement-topRight`]:{animationName:ce.ly}})},(0,ee.ZP)(Kt,{colorBg:Ae,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${$t} ${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}},[`${$t}, ${$t}-menu-submenu`]:{[Ct]:Object.assign(Object.assign({padding:Ut,listStyleType:"none",backgroundColor:Ae,backgroundClip:"padding-box",borderRadius:Kt.borderRadiusLG,outline:"none",boxShadow:Kt.boxShadowSecondary},(0,Mt.Qy)(Kt)),{[`${Ct}-item-group-title`]:{padding:`${xt}px ${ue}px`,color:Kt.colorTextDescription,transition:`all ${dt}`},[`${Ct}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ct}-item-icon`]:{minWidth:It,marginInlineEnd:Kt.marginXS,fontSize:Kt.fontSizeSM},[`${Ct}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${dt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Ct}-item, ${Ct}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${xt}px ${ue}px`,color:Kt.colorText,fontWeight:"normal",fontSize:It,lineHeight:Kt.lineHeight,cursor:"pointer",transition:`all ${dt}`,borderRadius:Kt.borderRadiusSM,"&:hover, &-active":{backgroundColor:Kt.controlItemBgHover}},(0,Mt.Qy)(Kt)),{"&-selected":{color:Kt.colorPrimary,backgroundColor:Kt.controlItemBgActive,"&:hover, &-active":{backgroundColor:Kt.controlItemBgActiveHover}},"&-disabled":{color:Gt,cursor:"not-allowed","&:hover":{color:Gt,backgroundColor:Ae,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Kt.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Kt.colorSplit},[`${$t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Kt.paddingXS,[`${$t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Kt.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${Ct}-item-group-list`]:{margin:`0 ${Kt.marginXS}px`,padding:0,listStyle:"none"},[`${Ct}-submenu-title`]:{paddingInlineEnd:ue+Kt.fontSizeSM},[`${Ct}-submenu-vertical`]:{position:"relative"},[`${Ct}-submenu${Ct}-submenu-disabled ${$t}-menu-submenu-title`]:{[`&, ${$t}-menu-submenu-arrow-icon`]:{color:Gt,backgroundColor:Ae,cursor:"not-allowed"}},[`${Ct}-submenu-selected ${$t}-menu-submenu-title`]:{color:Kt.colorPrimary}})}},[(0,ce.oN)(Kt,"slide-up"),(0,ce.oN)(Kt,"slide-down"),(0,re.Fm)(Kt,"move-up"),(0,re.Fm)(Kt,"move-down"),(0,Ie._y)(Kt,"zoom-big")]]};var oe=(0,Vt.Z)("Dropdown",(Kt,$t)=>{let{rootPrefixCls:Ct}=$t;const{marginXXS:et,sizePopupArrow:tt,controlHeight:lt,fontSize:rt,lineHeight:ht,paddingXXS:dt,componentCls:xt,borderRadiusLG:It}=Kt,Ut=(lt-rt*ht)/2,{dropdownArrowOffset:Gt}=(0,ee.fS)({contentRadius:It}),se=(0,Nt.TS)(Kt,{menuCls:`${xt}-menu`,rootPrefixCls:Ct,dropdownArrowDistance:tt/2+et,dropdownArrowOffset:Gt,dropdownPaddingVertical:Ut,dropdownEdgeChildPadding:dt});return[Pt(se),te(se)]},Kt=>({zIndexPopup:Kt.zIndexPopupBase+50}))},64165:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return dt}});var Mt=Ft(92310),ce=Ft.n(Mt),re=Ft(59301),Ie=Ft(36355),ee=Ft(9763),Vt=Ft(64993),Nt=Ft(88088),te=()=>{const[,xt]=(0,Nt.Z)(),Ut=new Vt.C(xt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return re.createElement("svg",{style:Ut,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[,xt]=(0,Nt.Z)(),{colorFill:It,colorFillTertiary:Ut,colorFillQuaternary:Gt,colorBgContainer:se}=xt,{borderColor:ue,shadowColor:Ae,contentColor:Pe}=(0,re.useMemo)(()=>({borderColor:new Vt.C(It).onBackground(se).toHexShortString(),shadowColor:new Vt.C(Ut).onBackground(se).toHexShortString(),contentColor:new Vt.C(Gt).onBackground(se).toHexShortString()}),[It,Ut,Gt,se]);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:Ae,cx:"32",cy:"33",rx:"32",ry:"7"}),re.createElement("g",{fillRule:"nonzero",stroke:ue},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:Pe}))))},Kt=Ft(83116),$t=Ft(37613);const Ct=xt=>{const{componentCls:It,margin:Ut,marginXS:Gt,marginXL:se,fontSize:ue,lineHeight:Ae}=xt;return{[It]:{marginInline:Gt,fontSize:ue,lineHeight:Ae,textAlign:"center",[`${It}-image`]:{height:xt.emptyImgHeight,marginBottom:Gt,opacity:xt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${It}-description`]:{color:xt.colorText},[`${It}-footer`]:{marginTop:Ut},"&-normal":{marginBlock:se,color:xt.colorTextDisabled,[`${It}-description`]:{color:xt.colorTextDisabled},[`${It}-image`]:{height:xt.emptyImgHeightMD}},"&-small":{marginBlock:Gt,color:xt.colorTextDisabled,[`${It}-image`]:{height:xt.emptyImgHeightSM}}}}};var et=(0,Kt.Z)("Empty",xt=>{const{componentCls:It,controlHeightLG:Ut}=xt,Gt=(0,$t.TS)(xt,{emptyImgCls:`${It}-img`,emptyImgHeight:Ut*2.5,emptyImgHeightMD:Ut,emptyImgHeightSM:Ut*.875});return[Ct(Gt)]}),tt=function(xt,It){var Ut={};for(var Gt in xt)Object.prototype.hasOwnProperty.call(xt,Gt)&&It.indexOf(Gt)<0&&(Ut[Gt]=xt[Gt]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,Gt=Object.getOwnPropertySymbols(xt);se<Gt.length;se++)It.indexOf(Gt[se])<0&&Object.prototype.propertyIsEnumerable.call(xt,Gt[se])&&(Ut[Gt[se]]=xt[Gt[se]]);return Ut};const lt=re.createElement(te,null),rt=re.createElement(oe,null),ht=xt=>{var{className:It,rootClassName:Ut,prefixCls:Gt,image:se=lt,description:ue,children:Ae,imageStyle:Pe,style:qt}=xt,ze=tt(xt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Wt,direction:Ge,empty:_e}=re.useContext(Ie.E_),Me=Wt("empty",Gt),[We,Re]=et(Me),[ye]=(0,ee.Z)("Empty"),ne=typeof ue!="undefined"?ue:ye==null?void 0:ye.description,Ce=typeof ne=="string"?ne:"empty";let bn=null;return typeof se=="string"?bn=re.createElement("img",{alt:Ce,src:se}):bn=se,We(re.createElement("div",Object.assign({className:ce()(Re,Me,_e==null?void 0:_e.className,{[`${Me}-normal`]:se===rt,[`${Me}-rtl`]:Ge==="rtl"},It,Ut),style:Object.assign(Object.assign({},_e==null?void 0:_e.style),qt)},ze),re.createElement("div",{className:`${Me}-image`,style:Pe},bn),ne&&re.createElement("div",{className:`${Me}-description`},ne),Ae&&re.createElement("div",{className:`${Me}-footer`},Ae)))};ht.PRESENTED_IMAGE_DEFAULT=lt,ht.PRESENTED_IMAGE_SIMPLE=rt;var dt=ht},78241:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{default:function(){return Tn}});var Mt=Ft(19127),ce=Ft(92310),re=Ft.n(ce),Ie=Ft(77900),ee=Ft(59301),Vt=Ft(62892),Nt=Ft(32441);function jt(Oe){const[qn,xi]=ee.useState(Oe);return ee.useEffect(()=>{const An=setTimeout(()=>{xi(Oe)},Oe.length?0:10);return()=>{clearTimeout(An)}},[Oe]),qn}var te=Ft(17313),Pt=Ft(29878),oe=Ft(8378),Kt=Ft(37613),$t=Ft(83116),et=Oe=>{const{componentCls:qn}=Oe,xi=`${qn}-show-help`,An=`${qn}-show-help-item`;return{[xi]:{transition:`opacity ${Oe.motionDurationSlow} ${Oe.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[An]:{overflow:"hidden",transition:`height ${Oe.motionDurationSlow} ${Oe.motionEaseInOut},
|
|
|
opacity ${Oe.motionDurationSlow} ${Oe.motionEaseInOut},
|
|
|
transform ${Oe.motionDurationSlow} ${Oe.motionEaseInOut} !important`,[`&${An}-appear, &${An}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${An}-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,qn)=>{const{formItemCls:xi}=Oe;return{[xi]:{[`${xi}-label > label`]:{height:qn},[`${xi}-control-input`]:{minHeight:qn}}}},rt=Oe=>{const{componentCls:qn}=Oe;return{[Oe.componentCls]:Object.assign(Object.assign(Object.assign({},(0,te.Wf)(Oe)),tt(Oe)),{[`${qn}-text`]:{display:"inline-block",paddingInlineEnd:Oe.paddingSM},"&-small":Object.assign({},lt(Oe,Oe.controlHeightSM)),"&-large":Object.assign({},lt(Oe,Oe.controlHeightLG))})}},ht=Oe=>{const{formItemCls:qn,iconCls:xi,componentCls:An,rootPrefixCls:Le,labelRequiredMarkColor:wn,labelColor:Qn,labelFontSize:Si,labelHeight:Di,labelColonMarginInlineStart:qe,labelColonMarginInlineEnd:si,itemMarginBottom:Ei}=Oe;return{[qn]:Object.assign(Object.assign({},(0,te.Wf)(Oe)),{marginBottom:Ei,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Le}-row`]:{display:"none"},"&-has-warning":{[`${qn}-split`]:{color:Oe.colorError}},"&-has-error":{[`${qn}-split`]:{color:Oe.colorWarning}},[`${qn}-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:Di,color:Qn,fontSize:Si,[`> ${xi}`]:{fontSize:Oe.fontSize,verticalAlign:"top"},[`&${qn}-required:not(${qn}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Oe.marginXXS,color:wn,fontSize:Oe.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${An}-hide-required-mark &`]:{display:"none"}},[`${qn}-optional`]:{display:"inline-block",marginInlineStart:Oe.marginXXS,color:Oe.colorTextDescription,[`${An}-hide-required-mark &`]:{display:"none"}},[`${qn}-tooltip`]:{color:Oe.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Oe.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:qe,marginInlineEnd:si},[`&${qn}-no-colon::after`]:{content:'"\\a0"'}}},[`${qn}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Le}-col-'"]):not([class*="' ${Le}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Oe.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[qn]:{"&-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 ${qn}-explain`]:{height:"auto",opacity:1},[`${qn}-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}}})}},dt=Oe=>{const{componentCls:qn,formItemCls:xi}=Oe;return{[`${qn}-horizontal`]:{[`${xi}-label`]:{flexGrow:0},[`${xi}-control`]:{flex:"1 1 0",minWidth:0},[`${xi}-label[class$='-24'], ${xi}-label[class*='-24 ']`]:{[`& + ${xi}-control`]:{minWidth:"unset"}}}}},xt=Oe=>{const{componentCls:qn,formItemCls:xi}=Oe;return{[`${qn}-inline`]:{display:"flex",flexWrap:"wrap",[xi]:{flex:"none",marginInlineEnd:Oe.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${xi}-label,
|
|
|
> ${xi}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${xi}-label`]:{flex:"none"},[`${qn}-text`]:{display:"inline-block"},[`${xi}-has-feedback`]:{display:"inline-block"}}}}},It=Oe=>({padding:Oe.verticalLabelPadding,margin:Oe.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ut=Oe=>{const{componentCls:qn,formItemCls:xi,rootPrefixCls:An}=Oe;return{[`${xi} ${xi}-label`]:It(Oe),[qn]:{[xi]:{flexWrap:"wrap",[`${xi}-label, ${xi}-control`]:{[`&:not([class*=" ${An}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Gt=Oe=>{const{componentCls:qn,formItemCls:xi,rootPrefixCls:An}=Oe;return{[`${qn}-vertical`]:{[xi]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${qn}-item-control`]:{width:"100%"}}},[`${qn}-vertical ${xi}-label,
|
|
|
.${An}-col-24${xi}-label,
|
|
|
.${An}-col-xl-24${xi}-label`]:It(Oe),[`@media (max-width: ${Oe.screenXSMax}px)`]:[Ut(Oe),{[qn]:{[`.${An}-col-xs-24${xi}-label`]:It(Oe)}}],[`@media (max-width: ${Oe.screenSMMax}px)`]:{[qn]:{[`.${An}-col-sm-24${xi}-label`]:It(Oe)}},[`@media (max-width: ${Oe.screenMDMax}px)`]:{[qn]:{[`.${An}-col-md-24${xi}-label`]:It(Oe)}},[`@media (max-width: ${Oe.screenLGMax}px)`]:{[qn]:{[`.${An}-col-lg-24${xi}-label`]:It(Oe)}}}},se=(Oe,qn)=>(0,Kt.TS)(Oe,{formItemCls:`${Oe.componentCls}-item`,rootPrefixCls:qn});var ue=(0,$t.Z)("Form",(Oe,qn)=>{let{rootPrefixCls:xi}=qn;const An=se(Oe,xi);return[rt(An),ht(An),et(An),dt(An),xt(An),Gt(An),(0,oe.Z)(An),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 Ae=[];function Pe(Oe,qn,xi){let An=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Oe=="string"?Oe:`${qn}-${An}`,error:Oe,errorStatus:xi}}var ze=Oe=>{let{help:qn,helpStatus:xi,errors:An=Ae,warnings:Le=Ae,className:wn,fieldId:Qn,onVisibleChanged:Si}=Oe;const{prefixCls:Di}=ee.useContext(Nt.Rk),qe=`${Di}-item-explain`,[,si]=ue(Di),Ei=(0,ee.useMemo)(()=>(0,Vt.Z)(Di),[Di]),tr=jt(An),On=jt(Le),ui=ee.useMemo(()=>qn!=null?[Pe(qn,"help",xi)]:[].concat((0,Mt.Z)(tr.map((rr,Gr)=>Pe(rr,"error","error",Gr))),(0,Mt.Z)(On.map((rr,Gr)=>Pe(rr,"warning","warning",Gr)))),[qn,xi,tr,On]),Cr={};return Qn&&(Cr.id=`${Qn}_help`),ee.createElement(Ie.default,{motionDeadline:Ei.motionDeadline,motionName:`${Di}-show-help`,visible:!!ui.length,onVisibleChanged:Si},rr=>{const{className:Gr,style:or}=rr;return ee.createElement("div",Object.assign({},Cr,{className:re()(qe,Gr,wn,si),style:or,role:"alert"}),ee.createElement(Ie.CSSMotionList,Object.assign({keys:ui},(0,Vt.Z)(Di),{motionName:`${Di}-show-help-item`,component:!1}),Lr=>{const{key:er,error:Pr,errorStatus:io,className:Oo,style:pi}=Lr;return ee.createElement("div",{key:er,className:re()(Oo,{[`${qe}-${io}`]:io}),style:pi},Pr)}))})},Wt=Ft(95013),Ge=Ft(36355),_e=Ft(1684),Me=Ft(52946),We=Ft(19716),Re=Ft(16722);const ye=["parentNode"],ne="form_item";function Ce(Oe){return Oe===void 0||Oe===!1?[]:Array.isArray(Oe)?Oe:[Oe]}function bn(Oe,qn){if(!Oe.length)return;const xi=Oe.join("_");return qn?`${qn}_${xi}`:ye.includes(xi)?`${ne}_${xi}`:xi}function Ln(Oe,qn,xi,An,Le,wn){let Qn=An;return wn!==void 0?Qn=wn:xi.validating?Qn="validating":Oe.length?Qn="error":qn.length?Qn="warning":(xi.touched||Le&&xi.validated)&&(Qn="success"),Qn}function Ze(Oe){return Ce(Oe).join("_")}function Mn(Oe){const[qn]=(0,Wt.useForm)(),xi=ee.useRef({}),An=ee.useMemo(()=>Oe!=null?Oe:Object.assign(Object.assign({},qn),{__INTERNAL__:{itemRef:Le=>wn=>{const Qn=Ze(Le);wn?xi.current[Qn]=wn:delete xi.current[Qn]}},scrollToField:function(Le){let wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Qn=Ce(Le),Si=bn(Qn,An.__INTERNAL__.name),Di=Si?document.getElementById(Si):null;Di&&(0,Re.Z)(Di,Object.assign({scrollMode:"if-needed",block:"nearest"},wn))},getFieldInstance:Le=>{const wn=Ze(Le);return xi.current[wn]}}),[Oe,qn]);return[An]}var Vn=Ft(28726),gi=function(Oe,qn){var xi={};for(var An in Oe)Object.prototype.hasOwnProperty.call(Oe,An)&&qn.indexOf(An)<0&&(xi[An]=Oe[An]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,An=Object.getOwnPropertySymbols(Oe);Le<An.length;Le++)qn.indexOf(An[Le])<0&&Object.prototype.propertyIsEnumerable.call(Oe,An[Le])&&(xi[An[Le]]=Oe[An[Le]]);return xi};const Kn=(Oe,qn)=>{const xi=ee.useContext(_e.Z),{getPrefixCls:An,direction:Le,form:wn}=ee.useContext(Ge.E_),{prefixCls:Qn,className:Si,rootClassName:Di,size:qe,disabled:si=xi,form:Ei,colon:tr,labelAlign:On,labelWrap:ui,labelCol:Cr,wrapperCol:rr,hideRequiredMark:Gr,layout:or="horizontal",scrollToFirstError:Lr,requiredMark:er,onFinishFailed:Pr,name:io,style:Oo,feedbackIcons:pi}=Oe,_o=gi(Oe,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),ys=(0,We.Z)(qe),Zo=ee.useContext(Vn.Z),vi=(0,ee.useMemo)(()=>er!==void 0?er:wn&&wn.requiredMark!==void 0?wn.requiredMark:!Gr,[Gr,er,wn]),ur=tr!=null?tr:wn==null?void 0:wn.colon,_r=An("form",Qn),[so,to]=ue(_r),Fo=re()(_r,`${_r}-${or}`,{[`${_r}-hide-required-mark`]:vi===!1,[`${_r}-rtl`]:Le==="rtl",[`${_r}-${ys}`]:ys},to,wn==null?void 0:wn.className,Si,Di),[Ai]=Mn(Ei),{__INTERNAL__:yo}=Ai;yo.name=io;const jr=(0,ee.useMemo)(()=>({name:io,labelAlign:On,labelCol:Cr,labelWrap:ui,wrapperCol:rr,vertical:or==="vertical",colon:ur,requiredMark:vi,itemRef:yo.itemRef,form:Ai,feedbackIcons:pi}),[io,On,Cr,rr,or,ur,vi,Ai,pi]);ee.useImperativeHandle(qn,()=>Ai);const Sr=(wo,Ci)=>{if(wo){let Xo={block:"nearest"};typeof wo=="object"&&(Xo=wo),Ai.scrollToField(Ci,Xo)}},Pi=wo=>{if(Pr==null||Pr(wo),wo.errorFields.length){const Ci=wo.errorFields[0].name;if(Lr!==void 0){Sr(Lr,Ci);return}wn&&wn.scrollToFirstError!==void 0&&Sr(wn.scrollToFirstError,Ci)}};return so(ee.createElement(_e.n,{disabled:si},ee.createElement(Me.q,{size:ys},ee.createElement(Nt.RV,Object.assign({},{validateMessages:Zo}),ee.createElement(Nt.q3.Provider,{value:jr},ee.createElement(Wt.default,Object.assign({id:io},_o,{name:io,onFinishFailed:Pi,form:Ai,style:Object.assign(Object.assign({},wn==null?void 0:wn.style),Oo),className:Fo})))))))};var en=ee.forwardRef(Kn),Li=Ft(41799),Oi=Ft(8654),Lt=Ft(92343),Ot=Ft(11592);function mt(Oe){if(typeof Oe=="function")return Oe;const qn=(0,Ot.Z)(Oe);return qn.length<=1?qn[0]:qn}const ft=()=>{const{status:Oe,errors:qn=[],warnings:xi=[]}=(0,ee.useContext)(Nt.aM);return{status:Oe,errors:qn,warnings:xi}};ft.Context=Nt.aM;var pt=ft,At=Ft(16089);function le(Oe){const[qn,xi]=ee.useState(Oe),An=(0,ee.useRef)(null),Le=(0,ee.useRef)([]),wn=(0,ee.useRef)(!1);ee.useEffect(()=>(wn.current=!1,()=>{wn.current=!0,At.Z.cancel(An.current),An.current=null}),[]);function Qn(Si){wn.current||(An.current===null&&(Le.current=[],An.current=(0,At.Z)(()=>{An.current=null,xi(Di=>{let qe=Di;return Le.current.forEach(si=>{qe=si(qe)}),qe})})),Le.current.push(Si))}return[qn,Qn]}function xe(){const{itemRef:Oe}=ee.useContext(Nt.q3),qn=ee.useRef({});function xi(An,Le){const wn=Le&&typeof Le=="object"&&Le.ref,Qn=An.join("_");return(qn.current.name!==Qn||qn.current.originRef!==wn)&&(qn.current.name=Qn,qn.current.originRef=wn,qn.current.ref=(0,Oi.sQ)(Oe(An),wn)),qn.current.ref}return xi}var ae=Ft(29194),ve=Ft(34280),Ue=Ft(2738),Te=Ft(27382),ke=Ft(37028);const nn=Oe=>{const{formItemCls:qn}=Oe;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${qn}-control`]:{display:"flex"}}}};var Wn=(0,$t.b)(["Form","item-item"],(Oe,qn)=>{let{rootPrefixCls:xi}=qn;const An=se(Oe,xi);return[nn(An)]}),gn=Oe=>{const{prefixCls:qn,status:xi,wrapperCol:An,children:Le,errors:wn,warnings:Qn,_internalItemRender:Si,extra:Di,help:qe,fieldId:si,marginBottom:Ei,onErrorVisibleChanged:tr}=Oe,On=`${qn}-item`,ui=ee.useContext(Nt.q3),Cr=An||ui.wrapperCol||{},rr=re()(`${On}-control`,Cr.className),Gr=ee.useMemo(()=>Object.assign({},ui),[ui]);delete Gr.labelCol,delete Gr.wrapperCol;const or=ee.createElement("div",{className:`${On}-control-input`},ee.createElement("div",{className:`${On}-control-input-content`},Le)),Lr=ee.useMemo(()=>({prefixCls:qn,status:xi}),[qn,xi]),er=Ei!==null||wn.length||Qn.length?ee.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},ee.createElement(Nt.Rk.Provider,{value:Lr},ee.createElement(ze,{fieldId:si,errors:wn,warnings:Qn,help:qe,helpStatus:xi,className:`${On}-explain-connected`,onVisibleChanged:tr})),!!Ei&&ee.createElement("div",{style:{width:0,height:Ei}})):null,Pr={};si&&(Pr.id=`${si}_extra`);const io=Di?ee.createElement("div",Object.assign({},Pr,{className:`${On}-extra`}),Di):null,Oo=Si&&Si.mark==="pro_table_render"&&Si.render?Si.render(Oe,{input:or,errorList:er,extra:io}):ee.createElement(ee.Fragment,null,or,er,io);return ee.createElement(Nt.q3.Provider,{value:Gr},ee.createElement(ke.Z,Object.assign({},Cr,{className:rr}),Oo),ee.createElement(Wn,{prefixCls:qn}))},Bn=Ft(61485),ti=Ft(31724),Rn=Ft(9763),Ri=Ft(6848),dr=function(Oe,qn){var xi={};for(var An in Oe)Object.prototype.hasOwnProperty.call(Oe,An)&&qn.indexOf(An)<0&&(xi[An]=Oe[An]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,An=Object.getOwnPropertySymbols(Oe);Le<An.length;Le++)qn.indexOf(An[Le])<0&&Object.prototype.propertyIsEnumerable.call(Oe,An[Le])&&(xi[An[Le]]=Oe[An[Le]]);return xi};function Ji(Oe){return Oe?typeof Oe=="object"&&!ee.isValidElement(Oe)?Oe:{title:Oe}:null}var Mr=Oe=>{let{prefixCls:qn,label:xi,htmlFor:An,labelCol:Le,labelAlign:wn,colon:Qn,required:Si,requiredMark:Di,tooltip:qe}=Oe;var si;const[Ei]=(0,Rn.Z)("Form"),{vertical:tr,labelAlign:On,labelCol:ui,labelWrap:Cr,colon:rr}=ee.useContext(Nt.q3);if(!xi)return null;const Gr=Le||ui||{},or=wn||On,Lr=`${qn}-item-label`,er=re()(Lr,or==="left"&&`${Lr}-left`,Gr.className,{[`${Lr}-wrap`]:!!Cr});let Pr=xi;const io=Qn===!0||rr!==!1&&Qn!==!1;io&&!tr&&typeof xi=="string"&&xi.trim()!==""&&(Pr=xi.replace(/[:|:]\s*$/,""));const pi=Ji(qe);if(pi){const{icon:vi=ee.createElement(Bn.Z,null)}=pi,ur=dr(pi,["icon"]),_r=ee.createElement(Ri.Z,Object.assign({},ur),ee.cloneElement(vi,{className:`${qn}-item-tooltip`,title:""}));Pr=ee.createElement(ee.Fragment,null,Pr,_r)}const _o=Di==="optional",ys=typeof Di=="function";ys?Pr=Di(Pr,{required:!!Si}):_o&&!Si&&(Pr=ee.createElement(ee.Fragment,null,Pr,ee.createElement("span",{className:`${qn}-item-optional`,title:""},(Ei==null?void 0:Ei.optional)||((si=ti.Z.Form)===null||si===void 0?void 0:si.optional))));const Zo=re()({[`${qn}-item-required`]:Si,[`${qn}-item-required-mark-optional`]:_o||ys,[`${qn}-item-no-colon`]:!io});return ee.createElement(ke.Z,Object.assign({},Gr,{className:er}),ee.createElement("label",{htmlFor:An,className:Zo,title:typeof xi=="string"?xi:""},Pr))},ro=Ft(29679),Jr=Ft(19248),$r=Ft(96512),Tr=Ft(58617);const Wr={success:ro.Z,warning:$r.Z,error:Jr.Z,validating:Tr.Z};function oo(Oe){let{children:qn,errors:xi,warnings:An,hasFeedback:Le,validateStatus:wn,prefixCls:Qn,meta:Si,noStyle:Di}=Oe;const qe=`${Qn}-item`,{feedbackIcons:si}=ee.useContext(Nt.q3),Ei=Ln(xi,An,Si,null,!!Le,wn),{isFormItemInput:tr,status:On}=ee.useContext(Nt.aM),ui=ee.useMemo(()=>{var Cr;let rr;if(Le){const Lr=Le!==!0&&Le.icons||si,er=Ei&&((Cr=Lr==null?void 0:Lr({status:Ei,errors:xi,warnings:An}))===null||Cr===void 0?void 0:Cr[Ei]),Pr=Ei&&Wr[Ei];rr=er!==!1&&Pr?ee.createElement("span",{className:re()(`${qe}-feedback-icon`,`${qe}-feedback-icon-${Ei}`)},er||ee.createElement(Pr,null)):null}let Gr=!0,or=Ei||"";return Di&&(Gr=tr,or=(Ei!=null?Ei:On)||""),{status:or,errors:xi,warnings:An,hasFeedback:!!Le,feedbackIcon:rr,isFormItemInput:Gr}},[Ei,Le,Di,tr,On]);return ee.createElement(Nt.aM.Provider,{value:ui},qn)}var Uo=function(Oe,qn){var xi={};for(var An in Oe)Object.prototype.hasOwnProperty.call(Oe,An)&&qn.indexOf(An)<0&&(xi[An]=Oe[An]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,An=Object.getOwnPropertySymbols(Oe);Le<An.length;Le++)qn.indexOf(An[Le])<0&&Object.prototype.propertyIsEnumerable.call(Oe,An[Le])&&(xi[An[Le]]=Oe[An[Le]]);return xi};function is(Oe){const{prefixCls:qn,className:xi,rootClassName:An,style:Le,help:wn,errors:Qn,warnings:Si,validateStatus:Di,meta:qe,hasFeedback:si,hidden:Ei,children:tr,fieldId:On,required:ui,isRequired:Cr,onSubItemMetaChange:rr}=Oe,Gr=Uo(Oe,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),or=`${qn}-item`,{requiredMark:Lr}=ee.useContext(Nt.q3),er=ee.useRef(null),Pr=jt(Qn),io=jt(Si),Oo=wn!=null,pi=!!(Oo||Qn.length||Si.length),_o=!!er.current&&(0,ae.Z)(er.current),[ys,Zo]=ee.useState(null);(0,ve.Z)(()=>{if(pi&&er.current){const to=getComputedStyle(er.current);Zo(parseInt(to.marginBottom,10))}},[pi,_o]);const vi=to=>{to||Zo(null)},_r=function(){let to=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Fo=to?Pr:qe.errors,Ai=to?io:qe.warnings;return Ln(Fo,Ai,qe,"",!!si,Di)}(),so=re()(or,xi,An,{[`${or}-with-help`]:Oo||Pr.length||io.length,[`${or}-has-feedback`]:_r&&si,[`${or}-has-success`]:_r==="success",[`${or}-has-warning`]:_r==="warning",[`${or}-has-error`]:_r==="error",[`${or}-is-validating`]:_r==="validating",[`${or}-hidden`]:Ei});return ee.createElement("div",{className:so,style:Le,ref:er},ee.createElement(Te.Z,Object.assign({className:`${or}-row`},(0,Ue.Z)(Gr,["_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(Mr,Object.assign({htmlFor:On},Oe,{requiredMark:Lr,required:ui!=null?ui:Cr,prefixCls:qn})),ee.createElement(gn,Object.assign({},Oe,qe,{errors:Pr,warnings:io,prefixCls:qn,status:_r,help:wn,marginBottom:ys,onErrorVisibleChanged:vi}),ee.createElement(Nt.qI.Provider,{value:rr},ee.createElement(oo,{prefixCls:qn,meta:qe,errors:qe.errors,warnings:qe.warnings,hasFeedback:si,validateStatus:_r},tr)))),!!ys&&ee.createElement("div",{className:`${or}-margin-offset`,style:{marginBottom:-ys}}))}const uo="__SPLIT__",Ss=null,To=ee.memo(Oe=>{let{children:qn}=Oe;return qn},(Oe,qn)=>Oe.value===qn.value&&Oe.update===qn.update&&Oe.childProps.length===qn.childProps.length&&Oe.childProps.every((xi,An)=>xi===qn.childProps[An]));function Xt(Oe){return Oe!=null}function ei(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Cs(Oe){const{name:qn,noStyle:xi,className:An,dependencies:Le,prefixCls:wn,shouldUpdate:Qn,rules:Si,children:Di,required:qe,label:si,messageVariables:Ei,trigger:tr="onChange",validateTrigger:On,hidden:ui,help:Cr}=Oe,{getPrefixCls:rr}=ee.useContext(Ge.E_),{name:Gr}=ee.useContext(Nt.q3),or=mt(Di),Lr=typeof or=="function",er=ee.useContext(Nt.qI),{validateTrigger:Pr}=ee.useContext(Wt.FieldContext),io=On!==void 0?On:Pr,Oo=Xt(qn),pi=rr("form",wn),[_o,ys]=ue(pi),Zo=ee.useContext(Wt.ListContext),vi=ee.useRef(),[ur,_r]=le({}),[so,to]=(0,Li.Z)(()=>ei()),Fo=Ci=>{const Xo=Zo==null?void 0:Zo.getKey(Ci.name);if(to(Ci.destroy?ei():Ci,!0),xi&&Cr!==!1&&er){let ua=Ci.name;if(Ci.destroy)ua=vi.current||ua;else if(Xo!==void 0){const[xs,da]=Xo;ua=[xs].concat((0,Mt.Z)(da)),vi.current=ua}er(Ci,ua)}},Ai=(Ci,Xo)=>{_r(ua=>{const xs=Object.assign({},ua),Js=[].concat((0,Mt.Z)(Ci.name.slice(0,-1)),(0,Mt.Z)(Xo)).join(uo);return Ci.destroy?delete xs[Js]:xs[Js]=Ci,xs})},[yo,jr]=ee.useMemo(()=>{const Ci=(0,Mt.Z)(so.errors),Xo=(0,Mt.Z)(so.warnings);return Object.values(ur).forEach(ua=>{Ci.push.apply(Ci,(0,Mt.Z)(ua.errors||[])),Xo.push.apply(Xo,(0,Mt.Z)(ua.warnings||[]))}),[Ci,Xo]},[ur,so.errors,so.warnings]),Sr=xe();function Pi(Ci,Xo,ua){return xi&&!ui?ee.createElement(oo,{prefixCls:pi,hasFeedback:Oe.hasFeedback,validateStatus:Oe.validateStatus,meta:so,errors:yo,warnings:jr,noStyle:!0},Ci):ee.createElement(is,Object.assign({key:"row"},Oe,{className:re()(An,ys),prefixCls:pi,fieldId:Xo,isRequired:ua,errors:yo,warnings:jr,meta:so,onSubItemMetaChange:Ai}),Ci)}if(!Oo&&!Lr&&!Le)return _o(Pi(or));let wo={};return typeof si=="string"?wo.label=si:qn&&(wo.label=String(qn)),Ei&&(wo=Object.assign(Object.assign({},wo),Ei)),_o(ee.createElement(Wt.Field,Object.assign({},Oe,{messageVariables:wo,trigger:tr,validateTrigger:io,onMetaChange:Fo}),(Ci,Xo,ua)=>{const xs=Ce(qn).length&&Xo?Xo.name:[],da=bn(xs,Gr),Js=qe!==void 0?qe:!!(Si&&Si.some(As=>{if(As&&typeof As=="object"&&As.required&&!As.warningOnly)return!0;if(typeof As=="function"){const hs=As(ua);return hs&&hs.required&&!hs.warningOnly}return!1})),Lo=Object.assign({},Ci);let Do=null;if(Array.isArray(or)&&Oo)Do=or;else if(!(Lr&&(!(Qn||Le)||Oo))){if(!(Le&&!Lr&&!Oo))if((0,Lt.l$)(or)){const As=Object.assign(Object.assign({},or.props),Lo);if(As.id||(As.id=da),Cr||yo.length>0||jr.length>0||Oe.extra){const Ne=[];(Cr||yo.length>0)&&Ne.push(`${da}_help`),Oe.extra&&Ne.push(`${da}_extra`),As["aria-describedby"]=Ne.join(" ")}yo.length>0&&(As["aria-invalid"]="true"),Js&&(As["aria-required"]="true"),(0,Oi.Yr)(or)&&(As.ref=Sr(xs,or)),new Set([].concat((0,Mt.Z)(Ce(tr)),(0,Mt.Z)(Ce(io)))).forEach(Ne=>{As[Ne]=function(){for(var ds,ia,ll,ul,Ml,ls=arguments.length,Go=new Array(ls),Ns=0;Ns<ls;Ns++)Go[Ns]=arguments[Ns];(ll=Lo[Ne])===null||ll===void 0||(ds=ll).call.apply(ds,[Lo].concat(Go)),(Ml=(ul=or.props)[Ne])===null||Ml===void 0||(ia=Ml).call.apply(ia,[ul].concat(Go))}});const wr=[As["aria-required"],As["aria-invalid"],As["aria-describedby"]];Do=ee.createElement(To,{value:Lo[Oe.valuePropName||"value"],update:or,childProps:wr},(0,Lt.Tm)(or,As))}else Lr&&(Qn||Le)&&!Oo?Do=or(ua):Do=or}return Pi(Do,da,Js)}))}const Os=Cs;Os.useStatus=pt;var ma=Os,va=function(Oe,qn){var xi={};for(var An in Oe)Object.prototype.hasOwnProperty.call(Oe,An)&&qn.indexOf(An)<0&&(xi[An]=Oe[An]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,An=Object.getOwnPropertySymbols(Oe);Le<An.length;Le++)qn.indexOf(An[Le])<0&&Object.prototype.propertyIsEnumerable.call(Oe,An[Le])&&(xi[An[Le]]=Oe[An[Le]]);return xi},Qr=Oe=>{var{prefixCls:qn,children:xi}=Oe,An=va(Oe,["prefixCls","children"]);const{getPrefixCls:Le}=ee.useContext(Ge.E_),wn=Le("form",qn),Qn=ee.useMemo(()=>({prefixCls:wn,status:"error"}),[wn]);return ee.createElement(Wt.List,Object.assign({},An),(Si,Di,qe)=>ee.createElement(Nt.Rk.Provider,{value:Qn},xi(Si.map(si=>Object.assign(Object.assign({},si),{fieldKey:si.key})),Di,{errors:qe.errors,warnings:qe.warnings})))};function Dr(){const{form:Oe}=(0,ee.useContext)(Nt.q3);return Oe}const In=en;In.Item=ma,In.List=Qr,In.ErrorList=ze,In.useForm=Mn,In.useFormInstance=Dr,In.useWatch=Wt.useWatch,In.Provider=Nt.RV,In.create=()=>{};var Tn=In},8628:function(hi,Cn,Ft){"use strict";var Mt=Ft(59301),ce=Ft(34280),re=Ft(56762),Ie=Ft(69507);function ee(){let Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const Nt=(0,Mt.useRef)({}),jt=(0,re.Z)(),te=(0,Ie.ZP)();return(0,ce.Z)(()=>{const Pt=te.subscribe(oe=>{Nt.current=oe,Vt&&jt()});return()=>te.unsubscribe(Pt)},[]),Nt.current}Cn.Z=ee},9432:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return ht},n:function(){return lt}});var Mt=Ft(19248),ce=Ft(92310),re=Ft.n(ce),Ie=Ft(93681),ee=Ft(8654),Vt=Ft(59301),Nt=Ft(19080),jt=Ft(36355),te=Ft(1684),Pt=Ft(19716),oe=Ft(32441),Kt=Ft(33234),$t=Ft(59412),Ct=Ft(9937);function et(dt){return!!(dt.prefix||dt.suffix||dt.allowClear)}var tt=function(dt,xt){var It={};for(var Ut in dt)Object.prototype.hasOwnProperty.call(dt,Ut)&&xt.indexOf(Ut)<0&&(It[Ut]=dt[Ut]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,Ut=Object.getOwnPropertySymbols(dt);Gt<Ut.length;Gt++)xt.indexOf(Ut[Gt])<0&&Object.prototype.propertyIsEnumerable.call(dt,Ut[Gt])&&(It[Ut[Gt]]=dt[Ut[Gt]]);return It};function lt(dt,xt){if(!dt)return;dt.focus(xt);const{cursor:It}=xt||{};if(It){const Ut=dt.value.length;switch(It){case"start":dt.setSelectionRange(0,0);break;case"end":dt.setSelectionRange(Ut,Ut);break;default:dt.setSelectionRange(0,Ut);break}}}var ht=(0,Vt.forwardRef)((dt,xt)=>{var It;const{prefixCls:Ut,bordered:Gt=!0,status:se,size:ue,disabled:Ae,onBlur:Pe,onFocus:qt,suffix:ze,allowClear:Wt,addonAfter:Ge,addonBefore:_e,className:Me,style:We,styles:Re,rootClassName:ye,onChange:ne,classNames:Ce}=dt,bn=tt(dt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Ln,direction:Ze,input:Mn}=Vt.useContext(jt.E_),Vn=Ln("input",Ut),gi=(0,Vt.useRef)(null),[Kn,Bi]=(0,Ct.ZP)(Vn),{compactSize:en,compactItemClassnames:Li}=(0,Kt.ri)(Vn,Ze),Oi=(0,Pt.Z)(Wn=>{var an;return(an=ue!=null?ue:en)!==null&&an!==void 0?an:Wn}),Lt=Vt.useContext(te.Z),Ot=Ae!=null?Ae:Lt,{status:mt,hasFeedback:ft,feedbackIcon:pt}=(0,Vt.useContext)(oe.aM),At=(0,Nt.F)(mt,se),le=et(dt)||!!ft,xe=(0,Vt.useRef)(le);(0,Vt.useEffect)(()=>{var Wn;le&&xe.current,xe.current=le},[le]);const ae=(0,$t.Z)(gi,!0),ve=Wn=>{ae(),Pe==null||Pe(Wn)},Ue=Wn=>{ae(),qt==null||qt(Wn)},Te=Wn=>{ae(),ne==null||ne(Wn)},ke=(ft||ze)&&Vt.createElement(Vt.Fragment,null,ze,ft&&pt);let nn;return typeof Wt=="object"&&(Wt!=null&&Wt.clearIcon)?nn=Wt:Wt&&(nn={clearIcon:Vt.createElement(Mt.Z,null)}),Kn(Vt.createElement(Ie.default,Object.assign({ref:(0,ee.sQ)(xt,gi),prefixCls:Vn,autoComplete:Mn==null?void 0:Mn.autoComplete},bn,{disabled:Ot,onBlur:ve,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:ke,allowClear:nn,className:re()(Me,ye,Li,Mn==null?void 0:Mn.className),onChange:Te,addonAfter:Ge&&Vt.createElement(Kt.BR,null,Vt.createElement(oe.Ux,{override:!0,status:!0},Ge)),addonBefore:_e&&Vt.createElement(Kt.BR,null,Vt.createElement(oe.Ux,{override:!0,status:!0},_e)),classNames:Object.assign(Object.assign(Object.assign({},Ce),Mn==null?void 0:Mn.classNames),{input:re()({[`${Vn}-sm`]:Oi==="small",[`${Vn}-lg`]:Oi==="large",[`${Vn}-rtl`]:Ze==="rtl",[`${Vn}-borderless`]:!Gt},!le&&(0,Nt.Z)(Vn,At),Ce==null?void 0:Ce.input,(It=Mn==null?void 0:Mn.classNames)===null||It===void 0?void 0:It.input,Bi)}),classes:{affixWrapper:re()({[`${Vn}-affix-wrapper-sm`]:Oi==="small",[`${Vn}-affix-wrapper-lg`]:Oi==="large",[`${Vn}-affix-wrapper-rtl`]:Ze==="rtl",[`${Vn}-affix-wrapper-borderless`]:!Gt},(0,Nt.Z)(`${Vn}-affix-wrapper`,At,ft),Bi),wrapper:re()({[`${Vn}-group-rtl`]:Ze==="rtl"},Bi),group:re()({[`${Vn}-group-wrapper-sm`]:Oi==="small",[`${Vn}-group-wrapper-lg`]:Oi==="large",[`${Vn}-group-wrapper-rtl`]:Ze==="rtl",[`${Vn}-group-wrapper-disabled`]:Ot},(0,Nt.Z)(`${Vn}-group-wrapper`,At,ft),Bi)}})))})},1643:function(hi,Cn,Ft){"use strict";var Mt=Ft(19248),ce=Ft(92310),re=Ft.n(ce),Ie=Ft(9296),ee=Ft(59301),Vt=Ft(19080),Nt=Ft(36355),jt=Ft(1684),te=Ft(19716),Pt=Ft(32441),oe=Ft(9432),Kt=Ft(9937),$t=function(et,tt){var lt={};for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&tt.indexOf(rt)<0&&(lt[rt]=et[rt]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,rt=Object.getOwnPropertySymbols(et);ht<rt.length;ht++)tt.indexOf(rt[ht])<0&&Object.prototype.propertyIsEnumerable.call(et,rt[ht])&&(lt[rt[ht]]=et[rt[ht]]);return lt};const Ct=(0,ee.forwardRef)((et,tt)=>{const{prefixCls:lt,bordered:rt=!0,size:ht,disabled:dt,status:xt,allowClear:It,showCount:Ut,classNames:Gt,rootClassName:se,className:ue}=et,Ae=$t(et,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Pe,direction:qt}=ee.useContext(Nt.E_),ze=(0,te.Z)(ht),Wt=ee.useContext(jt.Z),Ge=dt!=null?dt:Wt,{status:_e,hasFeedback:Me,feedbackIcon:We}=ee.useContext(Pt.aM),Re=(0,Vt.F)(_e,xt),ye=ee.useRef(null);ee.useImperativeHandle(tt,()=>{var Ze;return{resizableTextArea:(Ze=ye.current)===null||Ze===void 0?void 0:Ze.resizableTextArea,focus:Mn=>{var Vn,gi;(0,oe.n)((gi=(Vn=ye.current)===null||Vn===void 0?void 0:Vn.resizableTextArea)===null||gi===void 0?void 0:gi.textArea,Mn)},blur:()=>{var Mn;return(Mn=ye.current)===null||Mn===void 0?void 0:Mn.blur()}}});const ne=Pe("input",lt);let Ce;typeof It=="object"&&(It!=null&&It.clearIcon)?Ce=It:It&&(Ce={clearIcon:ee.createElement(Mt.Z,null)});const[bn,Ln]=(0,Kt.ZP)(ne);return bn(ee.createElement(Ie.default,Object.assign({},Ae,{disabled:Ge,allowClear:Ce,className:re()(ue,se),classes:{affixWrapper:re()(`${ne}-textarea-affix-wrapper`,{[`${ne}-affix-wrapper-rtl`]:qt==="rtl",[`${ne}-affix-wrapper-borderless`]:!rt,[`${ne}-affix-wrapper-sm`]:ze==="small",[`${ne}-affix-wrapper-lg`]:ze==="large",[`${ne}-textarea-show-count`]:Ut},(0,Vt.Z)(`${ne}-affix-wrapper`,Re),Ln)},classNames:Object.assign(Object.assign({},Gt),{textarea:re()({[`${ne}-borderless`]:!rt,[`${ne}-sm`]:ze==="small",[`${ne}-lg`]:ze==="large"},(0,Vt.Z)(ne,Re),Ln,Gt==null?void 0:Gt.textarea)}),prefixCls:ne,suffix:Me&&ee.createElement("span",{className:`${ne}-textarea-suffix`},We),showCount:Ut,ref:ye})))});Cn.Z=Ct},59412:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return ce}});var Mt=Ft(59301);function ce(re,Ie){const ee=(0,Mt.useRef)([]),Vt=()=>{ee.current.push(setTimeout(()=>{var Nt,jt,te,Pt;!((Nt=re.current)===null||Nt===void 0)&&Nt.input&&((jt=re.current)===null||jt===void 0?void 0:jt.input.getAttribute("type"))==="password"&&(!((te=re.current)===null||te===void 0)&&te.input.hasAttribute("value"))&&((Pt=re.current)===null||Pt===void 0||Pt.input.removeAttribute("value"))}))};return(0,Mt.useEffect)(()=>(Ie&&Vt(),()=>ee.current.forEach(Nt=>{Nt&&clearTimeout(Nt)})),[]),Vt}},92832:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{default:function(){return ze}});var Mt=Ft(92310),ce=Ft.n(Mt),re=Ft(59301),Ie=Ft(36355),ee=Ft(32441),Vt=Ft(9937),jt=Wt=>{const{getPrefixCls:Ge,direction:_e}=(0,re.useContext)(Ie.E_),{prefixCls:Me,className:We}=Wt,Re=Ge("input-group",Me),ye=Ge("input"),[ne,Ce]=(0,Vt.ZP)(ye),bn=ce()(Re,{[`${Re}-lg`]:Wt.size==="large",[`${Re}-sm`]:Wt.size==="small",[`${Re}-compact`]:Wt.compact,[`${Re}-rtl`]:_e==="rtl"},Ce,We),Ln=(0,re.useContext)(ee.aM),Ze=(0,re.useMemo)(()=>Object.assign(Object.assign({},Ln),{isFormItemInput:!1}),[Ln]);return ne(re.createElement("span",{className:bn,style:Wt.style,onMouseEnter:Wt.onMouseEnter,onMouseLeave:Wt.onMouseLeave,onFocus:Wt.onFocus,onBlur:Wt.onBlur},re.createElement(ee.aM.Provider,{value:Ze},Wt.children)))},te=Ft(9432),Pt=Ft(73331),oe=Ft(15277),Kt=Ft(2738),$t=Ft(8654),Ct=Ft(59412),et=function(Wt,Ge){var _e={};for(var Me in Wt)Object.prototype.hasOwnProperty.call(Wt,Me)&&Ge.indexOf(Me)<0&&(_e[Me]=Wt[Me]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Me=Object.getOwnPropertySymbols(Wt);We<Me.length;We++)Ge.indexOf(Me[We])<0&&Object.prototype.propertyIsEnumerable.call(Wt,Me[We])&&(_e[Me[We]]=Wt[Me[We]]);return _e};const tt=Wt=>Wt?re.createElement(oe.Z,null):re.createElement(Pt.Z,null),lt={click:"onClick",hover:"onMouseOver"};var ht=re.forwardRef((Wt,Ge)=>{const{visibilityToggle:_e=!0}=Wt,Me=typeof _e=="object"&&_e.visible!==void 0,[We,Re]=(0,re.useState)(()=>Me?_e.visible:!1),ye=(0,re.useRef)(null);re.useEffect(()=>{Me&&Re(_e.visible)},[Me,_e]);const ne=(0,Ct.Z)(ye),Ce=()=>{const{disabled:Ot}=Wt;Ot||(We&&ne(),Re(mt=>{var ft;const pt=!mt;return typeof _e=="object"&&((ft=_e.onVisibleChange)===null||ft===void 0||ft.call(_e,pt)),pt}))},bn=Ot=>{const{action:mt="click",iconRender:ft=tt}=Wt,pt=lt[mt]||"",At=ft(We),le={[pt]:Ce,className:`${Ot}-icon`,key:"passwordIcon",onMouseDown:xe=>{xe.preventDefault()},onMouseUp:xe=>{xe.preventDefault()}};return re.cloneElement(re.isValidElement(At)?At:re.createElement("span",null,At),le)},{className:Ln,prefixCls:Ze,inputPrefixCls:Mn,size:Vn}=Wt,gi=et(Wt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Kn}=re.useContext(Ie.E_),Bi=Kn("input",Mn),en=Kn("input-password",Ze),Li=_e&&bn(en),Oi=ce()(en,Ln,{[`${en}-${Vn}`]:!!Vn}),Lt=Object.assign(Object.assign({},(0,Kt.Z)(gi,["suffix","iconRender","visibilityToggle"])),{type:We?"text":"password",className:Oi,prefixCls:Bi,suffix:Li});return Vn&&(Lt.size=Vn),re.createElement(te.Z,Object.assign({ref:(0,$t.sQ)(Ge,ye)},Lt))}),dt=Ft(47472),xt=Ft(92343),It=Ft(3113),Ut=Ft(19716),Gt=Ft(33234),se=function(Wt,Ge){var _e={};for(var Me in Wt)Object.prototype.hasOwnProperty.call(Wt,Me)&&Ge.indexOf(Me)<0&&(_e[Me]=Wt[Me]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Me=Object.getOwnPropertySymbols(Wt);We<Me.length;We++)Ge.indexOf(Me[We])<0&&Object.prototype.propertyIsEnumerable.call(Wt,Me[We])&&(_e[Me[We]]=Wt[Me[We]]);return _e},Ae=re.forwardRef((Wt,Ge)=>{const{prefixCls:_e,inputPrefixCls:Me,className:We,size:Re,suffix:ye,enterButton:ne=!1,addonAfter:Ce,loading:bn,disabled:Ln,onSearch:Ze,onChange:Mn,onCompositionStart:Vn,onCompositionEnd:gi}=Wt,Kn=se(Wt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Bi,direction:en}=re.useContext(Ie.E_),Li=re.useRef(!1),Oi=Bi("input-search",_e),Lt=Bi("input",Me),{compactSize:Ot}=(0,Gt.ri)(Oi,en),mt=(0,Ut.Z)(gn=>{var Bn;return(Bn=Re!=null?Re:Ot)!==null&&Bn!==void 0?Bn:gn}),ft=re.useRef(null),pt=gn=>{gn&&gn.target&&gn.type==="click"&&Ze&&Ze(gn.target.value,gn,{source:"clear"}),Mn&&Mn(gn)},At=gn=>{var Bn;document.activeElement===((Bn=ft.current)===null||Bn===void 0?void 0:Bn.input)&&gn.preventDefault()},le=gn=>{var Bn,ti;Ze&&Ze((ti=(Bn=ft.current)===null||Bn===void 0?void 0:Bn.input)===null||ti===void 0?void 0:ti.value,gn,{source:"input"})},xe=gn=>{Li.current||bn||le(gn)},ae=typeof ne=="boolean"?re.createElement(dt.Z,null):null,ve=`${Oi}-button`;let Ue;const Te=ne||{},ke=Te.type&&Te.type.__ANT_BUTTON===!0;ke||Te.type==="button"?Ue=(0,xt.Tm)(Te,Object.assign({onMouseDown:At,onClick:gn=>{var Bn,ti;(ti=(Bn=Te==null?void 0:Te.props)===null||Bn===void 0?void 0:Bn.onClick)===null||ti===void 0||ti.call(Bn,gn),le(gn)},key:"enterButton"},ke?{className:ve,size:mt}:{})):Ue=re.createElement(It.ZP,{className:ve,type:ne?"primary":void 0,size:mt,disabled:Ln,key:"enterButton",onMouseDown:At,onClick:le,loading:bn,icon:ae},ne),Ce&&(Ue=[Ue,(0,xt.Tm)(Ce,{key:"addonAfter"})]);const nn=ce()(Oi,{[`${Oi}-rtl`]:en==="rtl",[`${Oi}-${mt}`]:!!mt,[`${Oi}-with-button`]:!!ne},We),Wn=gn=>{Li.current=!0,Vn==null||Vn(gn)},an=gn=>{Li.current=!1,gi==null||gi(gn)};return re.createElement(te.Z,Object.assign({ref:(0,$t.sQ)(ft,Ge),onPressEnter:xe},Kn,{size:mt,onCompositionStart:Wn,onCompositionEnd:an,prefixCls:Lt,addonAfter:Ue,suffix:ye,onChange:pt,className:nn,disabled:Ln}))}),Pe=Ft(1643);const qt=te.Z;qt.Group=jt,qt.Search=Ae,qt.TextArea=Pe.Z,qt.Password=ht;var ze=qt},45818:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{D:function(){return dt},Z:function(){return Ut}});var Mt=Ft(96663),ce=Ft(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"},Ie=re,ee=Ft(7657),Vt=function(se,ue){return ce.createElement(ee.Z,(0,Mt.Z)({},se,{ref:ue,icon:Ie}))},Nt=ce.forwardRef(Vt),jt=Nt,te=Ft(33853),Pt=Ft(38819),oe=Ft(92310),Kt=Ft.n(oe),$t=Ft(2738),et=Gt=>!isNaN(parseFloat(Gt))&&isFinite(Gt),tt=Ft(36355),lt=Ft(84966),rt=function(Gt,se){var ue={};for(var Ae in Gt)Object.prototype.hasOwnProperty.call(Gt,Ae)&&se.indexOf(Ae)<0&&(ue[Ae]=Gt[Ae]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Ae=Object.getOwnPropertySymbols(Gt);Pe<Ae.length;Pe++)se.indexOf(Ae[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Gt,Ae[Pe])&&(ue[Ae[Pe]]=Gt[Ae[Pe]]);return ue};const ht={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},dt=ce.createContext({}),xt=(()=>{let Gt=0;return function(){let se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Gt+=1,`${se}${Gt}`}})();var Ut=ce.forwardRef((Gt,se)=>{const{prefixCls:ue,className:Ae,trigger:Pe,children:qt,defaultCollapsed:ze=!1,theme:Wt="dark",style:Ge={},collapsible:_e=!1,reverseArrow:Me=!1,width:We=200,collapsedWidth:Re=80,zeroWidthTriggerStyle:ye,breakpoint:ne,onCollapse:Ce,onBreakpoint:bn}=Gt,Ln=rt(Gt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ze}=(0,ce.useContext)(lt.Gs),[Mn,Vn]=(0,ce.useState)("collapsed"in Gt?Gt.collapsed:ze),[gi,Kn]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{"collapsed"in Gt&&Vn(Gt.collapsed)},[Gt.collapsed]);const Bi=(mt,ft)=>{"collapsed"in Gt||Vn(mt),Ce==null||Ce(mt,ft)},en=(0,ce.useRef)();en.current=mt=>{Kn(mt.matches),bn==null||bn(mt.matches),Mn!==mt.matches&&Bi(mt.matches,"responsive")},(0,ce.useEffect)(()=>{function mt(pt){return en.current(pt)}let ft;if(typeof window!="undefined"){const{matchMedia:pt}=window;if(pt&&ne&&ne in ht){ft=pt(`(max-width: ${ht[ne]})`);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)}}},[ne]),(0,ce.useEffect)(()=>{const mt=xt("ant-sider-");return Ze.addSider(mt),()=>Ze.removeSider(mt)},[]);const Li=()=>{Bi(!Mn,"clickTrigger")},{getPrefixCls:Oi}=(0,ce.useContext)(tt.E_),Lt=()=>{const mt=Oi("layout-sider",ue),ft=(0,$t.Z)(Ln,["collapsed"]),pt=Mn?Re:We,At=et(pt)?`${pt}px`:String(pt),le=parseFloat(String(Re||0))===0?ce.createElement("span",{onClick:Li,className:Kt()(`${mt}-zero-width-trigger`,`${mt}-zero-width-trigger-${Me?"right":"left"}`),style:ye},Pe||ce.createElement(jt,null)):null,ve={expanded:Me?ce.createElement(Pt.Z,null):ce.createElement(te.Z,null),collapsed:Me?ce.createElement(te.Z,null):ce.createElement(Pt.Z,null)}[Mn?"collapsed":"expanded"],Ue=Pe!==null?le||ce.createElement("div",{className:`${mt}-trigger`,onClick:Li,style:{width:At}},Pe||ve):null,Te=Object.assign(Object.assign({},Ge),{flex:`0 0 ${At}`,maxWidth:At,minWidth:At,width:At}),ke=Kt()(mt,`${mt}-${Wt}`,{[`${mt}-collapsed`]:!!Mn,[`${mt}-has-trigger`]:_e&&Pe!==null&&!le,[`${mt}-below`]:!!gi,[`${mt}-zero-width`]:parseFloat(At)===0},Ae);return ce.createElement("aside",Object.assign({className:ke},ft,{style:Te,ref:se}),ce.createElement("div",{className:`${mt}-children`},qt),_e||gi&&le?Ue:null)},Ot=ce.useMemo(()=>({siderCollapsed:Mn}),[Mn]);return ce.createElement(dt.Provider,{value:Ot},Lt())})},84966:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{VY:function(){return dt},$_:function(){return ht},h4:function(){return rt},Gs:function(){return $t},ZP:function(){return xt}});var Mt=Ft(19127),ce=Ft(92310),re=Ft.n(ce),Ie=Ft(2738),ee=Ft(59301),Vt=Ft(36355),Nt=Ft(83116),te=It=>{const{componentCls:Ut,bodyBg:Gt,lightSiderBg:se,lightTriggerBg:ue,lightTriggerColor:Ae}=It;return{[`${Ut}-sider-light`]:{background:se,[`${Ut}-sider-trigger`]:{color:Ae,background:ue},[`${Ut}-sider-zero-width-trigger`]:{color:Ae,background:ue,border:`1px solid ${Gt}`,borderInlineStart:0}}}};const Pt=It=>{const{antCls:Ut,componentCls:Gt,colorText:se,triggerColor:ue,footerBg:Ae,triggerBg:Pe,headerHeight:qt,headerPadding:ze,headerColor:Wt,footerPadding:Ge,triggerHeight:_e,zeroTriggerHeight:Me,zeroTriggerWidth:We,motionDurationMid:Re,motionDurationSlow:ye,fontSize:ne,borderRadius:Ce,bodyBg:bn,headerBg:Ln,siderBg:Ze}=It;return{[Gt]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:bn,"&, *":{boxSizing:"border-box"},[`&${Gt}-has-sider`]:{flexDirection:"row",[`> ${Gt}, > ${Gt}-content`]:{width:0}},[`${Gt}-header, &${Gt}-footer`]:{flex:"0 0 auto"},[`${Gt}-sider`]:{position:"relative",minWidth:0,background:Ze,transition:`all ${Re}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ut}-menu${Ut}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:_e},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:_e,color:ue,lineHeight:`${_e}px`,textAlign:"center",background:Pe,cursor:"pointer",transition:`all ${Re}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:qt,insetInlineEnd:-We,zIndex:1,width:We,height:Me,color:ue,fontSize:It.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ze,borderStartStartRadius:0,borderStartEndRadius:Ce,borderEndEndRadius:Ce,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ye} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ye}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-We,borderStartStartRadius:Ce,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ce}}}}},te(It)),{"&-rtl":{direction:"rtl"}}),[`${Gt}-header`]:{height:qt,padding:ze,color:Wt,lineHeight:`${qt}px`,background:Ln,[`${Ut}-menu`]:{lineHeight:"inherit"}},[`${Gt}-footer`]:{padding:Ge,color:se,fontSize:ne,background:Ae},[`${Gt}-content`]:{flex:"auto",minHeight:0}}};var oe=(0,Nt.Z)("Layout",It=>[Pt(It)],It=>{const{colorBgLayout:Ut,controlHeight:Gt,controlHeightLG:se,colorText:ue,controlHeightSM:Ae,marginXXS:Pe,colorTextLightSolid:qt,colorBgContainer:ze}=It,Wt=se*1.25;return{colorBgHeader:"#001529",colorBgBody:Ut,colorBgTrigger:"#002140",bodyBg:Ut,headerBg:"#001529",headerHeight:Gt*2,headerPadding:`0 ${Wt}px`,headerColor:ue,footerPadding:`${Ae}px ${Wt}px`,footerBg:Ut,siderBg:"#001529",triggerHeight:se+Pe*2,triggerBg:"#002140",triggerColor:qt,zeroTriggerWidth:se,zeroTriggerHeight:se,lightSiderBg:ze,lightTriggerBg:ze,lightTriggerColor:ue}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Kt=function(It,Ut){var Gt={};for(var se in It)Object.prototype.hasOwnProperty.call(It,se)&&Ut.indexOf(se)<0&&(Gt[se]=It[se]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,se=Object.getOwnPropertySymbols(It);ue<se.length;ue++)Ut.indexOf(se[ue])<0&&Object.prototype.propertyIsEnumerable.call(It,se[ue])&&(Gt[se[ue]]=It[se[ue]]);return Gt};const $t=ee.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Ct(It){let{suffixCls:Ut,tagName:Gt,displayName:se}=It;return ue=>ee.forwardRef((Pe,qt)=>ee.createElement(ue,Object.assign({ref:qt,suffixCls:Ut,tagName:Gt},Pe)))}const et=ee.forwardRef((It,Ut)=>{const{prefixCls:Gt,suffixCls:se,className:ue,tagName:Ae}=It,Pe=Kt(It,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:qt}=ee.useContext(Vt.E_),ze=qt("layout",Gt),[Wt,Ge]=oe(ze),_e=se?`${ze}-${se}`:ze;return Wt(ee.createElement(Ae,Object.assign({className:re()(Gt||_e,ue,Ge),ref:Ut},Pe)))}),tt=ee.forwardRef((It,Ut)=>{const{direction:Gt}=ee.useContext(Vt.E_),[se,ue]=ee.useState([]),{prefixCls:Ae,className:Pe,rootClassName:qt,children:ze,hasSider:Wt,tagName:Ge,style:_e}=It,Me=Kt(It,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),We=(0,Ie.Z)(Me,["suffixCls"]),{getPrefixCls:Re,layout:ye}=ee.useContext(Vt.E_),ne=Re("layout",Ae),[Ce,bn]=oe(ne),Ln=re()(ne,{[`${ne}-has-sider`]:typeof Wt=="boolean"?Wt:se.length>0,[`${ne}-rtl`]:Gt==="rtl"},ye==null?void 0:ye.className,Pe,qt,bn),Ze=ee.useMemo(()=>({siderHook:{addSider:Mn=>{ue(Vn=>[].concat((0,Mt.Z)(Vn),[Mn]))},removeSider:Mn=>{ue(Vn=>Vn.filter(gi=>gi!==Mn))}}}),[]);return Ce(ee.createElement($t.Provider,{value:Ze},ee.createElement(Ge,Object.assign({ref:Ut,className:Ln,style:Object.assign(Object.assign({},ye==null?void 0:ye.style),_e)},We),ze)))}),lt=Ct({tagName:"div",displayName:"Layout"})(tt),rt=Ct({suffixCls:"header",tagName:"header",displayName:"Header"})(et),ht=Ct({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(et),dt=Ct({suffixCls:"content",tagName:"main",displayName:"Content"})(et);var xt=lt},40875:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{J:function(){return Vt}});var Mt=Ft(59301),ce=Ft(33234),re=Ft(70425),Ie=function(Nt,jt){var te={};for(var Pt in Nt)Object.prototype.hasOwnProperty.call(Nt,Pt)&&jt.indexOf(Pt)<0&&(te[Pt]=Nt[Pt]);if(Nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,Pt=Object.getOwnPropertySymbols(Nt);oe<Pt.length;oe++)jt.indexOf(Pt[oe])<0&&Object.prototype.propertyIsEnumerable.call(Nt,Pt[oe])&&(te[Pt[oe]]=Nt[Pt[oe]]);return te};const ee=Mt.createContext(null),Vt=Mt.forwardRef((Nt,jt)=>{const{children:te}=Nt,Pt=Ie(Nt,["children"]),oe=Mt.useContext(ee),Kt=Mt.useMemo(()=>Object.assign(Object.assign({},oe),Pt),[oe,Pt.prefixCls,Pt.mode,Pt.selectable]);return Mt.createElement(ee.Provider,{value:Kt},Mt.createElement(ce.BR,null,(0,re.supportNodeRef)(te)?Mt.cloneElement(te,{ref:jt}):te))});Cn.Z=ee},20834:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{default:function(){return Ot}});var Mt=Ft(15285),ce=Ft(59301),re=Ft(45818),Ie=Ft(92310),ee=Ft.n(Ie),Vt=Ft(36355),Nt=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 le=0,At=Object.getOwnPropertySymbols(mt);le<At.length;le++)ft.indexOf(At[le])<0&&Object.prototype.propertyIsEnumerable.call(mt,At[le])&&(pt[At[le]]=mt[At[le]]);return pt},te=mt=>{const{prefixCls:ft,className:pt,dashed:At}=mt,le=Nt(mt,["prefixCls","className","dashed"]),{getPrefixCls:xe}=ce.useContext(Vt.E_),ae=xe("menu",ft),ve=ee()({[`${ae}-item-divider-dashed`]:!!At},pt);return ce.createElement(Mt.iz,Object.assign({className:ve},le))},Pt=Ft(11592),oe=Ft(2738),Kt=Ft(6848),$t=Ft(92343),et=(0,ce.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),lt=mt=>{var ft;const{className:pt,children:At,icon:le,title:xe,danger:ae}=mt,{prefixCls:ve,firstLevel:Ue,direction:Te,disableMenuItemTitleTooltip:ke,inlineCollapsed:nn}=ce.useContext(et),Wn=Ri=>{const dr=ce.createElement("span",{className:`${ve}-title-content`},At);return(!le||(0,$t.l$)(At)&&At.type==="span")&&At&&Ri&&Ue&&typeof At=="string"?ce.createElement("div",{className:`${ve}-inline-collapsed-noicon`},At.charAt(0)):dr},{siderCollapsed:an}=ce.useContext(re.D);let gn=xe;typeof xe=="undefined"?gn=Ue?At:"":xe===!1&&(gn="");const Bn={title:gn};!an&&!nn&&(Bn.title=null,Bn.open=!1);const ti=(0,Pt.Z)(At).length;let Rn=ce.createElement(Mt.ck,Object.assign({},(0,oe.Z)(mt,["title","icon","danger"]),{className:ee()({[`${ve}-item-danger`]:ae,[`${ve}-item-only-child`]:(le?ti+1:ti)===1},pt),title:typeof xe=="string"?xe:void 0}),(0,$t.Tm)(le,{className:ee()((0,$t.l$)(le)?(ft=le.props)===null||ft===void 0?void 0:ft.className:"",`${ve}-item-icon`)}),Wn(nn));return ke||(Rn=ce.createElement(Kt.Z,Object.assign({},Bn,{placement:Te==="rtl"?"left":"right",overlayClassName:`${ve}-inline-collapsed-tooltip`}),Rn)),Rn},ht=mt=>{var ft;const{popupClassName:pt,icon:At,title:le,theme:xe}=mt,ae=ce.useContext(et),{prefixCls:ve,inlineCollapsed:Ue,theme:Te}=ae,ke=(0,Mt.Xl)();let nn;if(!At)nn=Ue&&!ke.length&&le&&typeof le=="string"?ce.createElement("div",{className:`${ve}-inline-collapsed-noicon`},le.charAt(0)):ce.createElement("span",{className:`${ve}-title-content`},le);else{const an=(0,$t.l$)(le)&&le.type==="span";nn=ce.createElement(ce.Fragment,null,(0,$t.Tm)(At,{className:ee()((0,$t.l$)(At)?(ft=At.props)===null||ft===void 0?void 0:ft.className:"",`${ve}-item-icon`)}),an?le:ce.createElement("span",{className:`${ve}-title-content`},le))}const Wn=ce.useMemo(()=>Object.assign(Object.assign({},ae),{firstLevel:!1}),[ae]);return ce.createElement(et.Provider,{value:Wn},ce.createElement(Mt.Wd,Object.assign({},(0,oe.Z)(mt,["icon"]),{title:nn,popupClassName:ee()(ve,pt,`${ve}-${xe||Te}`)})))},dt=Ft(18785),xt=Ft(70425),It=Ft(62892),Ut=Ft(40875),Gt=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 le=0,At=Object.getOwnPropertySymbols(mt);le<At.length;le++)ft.indexOf(At[le])<0&&Object.prototype.propertyIsEnumerable.call(mt,At[le])&&(pt[At[le]]=mt[At[le]]);return pt};function se(mt){return(mt||[]).map((ft,pt)=>{if(ft&&typeof ft=="object"){const At=ft,{label:le,children:xe,key:ae,type:ve}=At,Ue=Gt(At,["label","children","key","type"]),Te=ae!=null?ae:`tmp-${pt}`;return xe||ve==="group"?ve==="group"?ce.createElement(Mt.BW,Object.assign({key:Te},Ue,{title:le}),se(xe)):ce.createElement(ht,Object.assign({key:Te},Ue,{title:le}),se(xe)):ve==="divider"?ce.createElement(te,Object.assign({key:Te},Ue)):ce.createElement(lt,Object.assign({key:Te},Ue),le)}return null}).filter(ft=>ft)}function ue(mt){return ce.useMemo(()=>mt&&se(mt),[mt])}var Ae=Ft(64993),Pe=Ft(17313),qt=Ft(8378),ze=Ft(13826),Wt=Ft(29878),Ge=Ft(83116),_e=Ft(37613),We=mt=>{const{componentCls:ft,motionDurationSlow:pt,horizontalLineHeight:At,colorSplit:le,lineWidth:xe,lineType:ae,itemPaddingInline:ve}=mt;return{[`${ft}-horizontal`]:{lineHeight:At,border:0,borderBottom:`${xe}px ${ae} ${le}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ft}-item, ${ft}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ve},[`> ${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"}}}},ye=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 ne=mt=>Object.assign({},(0,Pe.oN)(mt));var bn=(mt,ft)=>{const{componentCls:pt,itemColor:At,itemSelectedColor:le,groupTitleColor:xe,itemBg:ae,subMenuItemBg:ve,itemSelectedBg:Ue,activeBarHeight:Te,activeBarWidth:ke,activeBarBorderWidth:nn,motionDurationSlow:Wn,motionEaseInOut:an,motionEaseOut:gn,itemPaddingInline:Bn,motionDurationMid:ti,itemHoverColor:Rn,lineType:Ri,colorSplit:dr,itemDisabledColor:Ji,dangerItemColor:mr,dangerItemHoverColor:Mr,dangerItemSelectedColor:ro,dangerItemActiveBg:Jr,dangerItemSelectedBg:$r,itemHoverBg:Tr,itemActiveBg:Wr,menuSubMenuBg:oo,horizontalItemSelectedColor:Uo,horizontalItemSelectedBg:is,horizontalItemBorderRadius:uo,horizontalItemHoverBg:Ss,popupBg:To}=mt;return{[`${pt}-${ft}, ${pt}-${ft} > ${pt}`]:{color:At,background:ae,[`&${pt}-root:focus-visible`]:Object.assign({},ne(mt)),[`${pt}-item-group-title`]:{color:xe},[`${pt}-submenu-selected`]:{[`> ${pt}-submenu-title`]:{color:le}},[`${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:Tr},"&:active":{backgroundColor:Wr}},[`${pt}-submenu-title`]:{"&:hover":{backgroundColor:Tr},"&:active":{backgroundColor:Wr}}},[`${pt}-item-danger`]:{color:mr,[`&${pt}-item:hover`]:{[`&:not(${pt}-item-selected):not(${pt}-submenu-selected)`]:{color:Mr}},[`&${pt}-item:active`]:{background:Jr}},[`${pt}-item a`]:{"&, &:hover":{color:"inherit"}},[`${pt}-item-selected`]:{color:le,[`&${pt}-item-danger`]:{color:ro},"a, a:hover":{color:"inherit"}},[`& ${pt}-item-selected`]:{backgroundColor:Ue,[`&${pt}-item-danger`]:{backgroundColor:$r}},[`${pt}-item, ${pt}-submenu-title`]:{[`&:not(${pt}-item-disabled):focus-visible`]:Object.assign({},ne(mt))},[`&${pt}-submenu > ${pt}`]:{backgroundColor:oo},[`&${pt}-popup > ${pt}`]:{backgroundColor:To},[`&${pt}-horizontal`]:Object.assign(Object.assign({},ft==="dark"?{borderBottom:0}:{}),{[`> ${pt}-item, > ${pt}-submenu`]:{top:nn,marginTop:-nn,marginBottom:0,borderRadius:uo,"&::after":{position:"absolute",insetInline:Bn,bottom:0,borderBottom:`${Te}px solid transparent`,transition:`border-color ${Wn} ${an}`,content:'""'},"&:hover, &-active, &-open":{background:Ss,"&::after":{borderBottomWidth:Te,borderBottomColor:Uo}},"&-selected":{color:Uo,backgroundColor:is,"&:hover":{backgroundColor:is},"&::after":{borderBottomWidth:Te,borderBottomColor:Uo}}}}),[`&${pt}-root`]:{[`&${pt}-inline, &${pt}-vertical`]:{borderInlineEnd:`${nn}px ${Ri} ${dr}`}},[`&${pt}-inline`]:{[`${pt}-sub${pt}-inline`]:{background:ve},[`${pt}-item, ${pt}-submenu-title`]:nn&&ke?{width:`calc(100% + ${nn}px)`}:{},[`${pt}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ke}px solid ${le}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${ti} ${gn}`,`opacity ${ti} ${gn}`].join(","),content:'""'},[`&${pt}-item-danger`]:{"&::after":{borderInlineEndColor:ro}}},[`${pt}-selected, ${pt}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ti} ${an}`,`opacity ${ti} ${an}`].join(",")}}}}}};const Ln=mt=>{const{componentCls:ft,itemHeight:pt,itemMarginInline:At,padding:le,menuArrowSize:xe,marginXS:ae,itemMarginBlock:ve}=mt,Ue=le+xe+ae;return{[`${ft}-item`]:{position:"relative",overflow:"hidden"},[`${ft}-item, ${ft}-submenu-title`]:{height:pt,lineHeight:`${pt}px`,paddingInline:le,overflow:"hidden",textOverflow:"ellipsis",marginInline:At,marginBlock:ve,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:le,dropdownWidth:xe,controlHeightLG:ae,motionDurationMid:ve,motionEaseOut:Ue,paddingXL:Te,itemMarginInline:ke,fontSizeLG:nn,motionDurationSlow:Wn,paddingXS:an,boxShadowSecondary:gn,collapsedWidth:Bn,collapsedIconSize:ti}=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:gn})}},{[`${ft}-submenu-popup ${ft}-vertical${ft}-sub`]:{minWidth:xe,maxHeight:`calc(100vh - ${ae*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 ${Wn}`,`background ${Wn}`,`padding ${ve} ${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:Te}},[`${ft}-item`]:Rn}},{[`${ft}-inline-collapsed`]:{width:Bn,[`&${ft}-root`]:{[`${ft}-item, ${ft}-submenu ${ft}-submenu-title`]:{[`> ${ft}-inline-collapsed-noicon`]:{fontSize:nn,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% - ${nn/2}px - ${ke}px)`,textOverflow:"clip",[`
|
|
|
${ft}-submenu-arrow,
|
|
|
${ft}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${ft}-item-icon, ${pt}`]:{margin:0,fontSize:ti,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:le}},[`${ft}-item-group-title`]:Object.assign(Object.assign({},Pe.vS),{paddingInline:an})}}]};const Vn=mt=>{const{componentCls:ft,motionDurationSlow:pt,motionDurationMid:At,motionEaseInOut:le,motionEaseOut:xe,iconCls:ae,iconSize:ve,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} ${le}`].join(","),[`${ft}-item-icon, ${ae}`]:{minWidth:ve,fontSize:ve,transition:[`font-size ${At} ${xe}`,`margin ${pt} ${le}`,`color ${pt}`].join(","),"+ span":{marginInlineStart:Ue,opacity:1,transition:[`opacity ${pt} ${le}`,`margin ${pt}`,`color ${pt}`].join(",")}},[`${ft}-item-icon`]:Object.assign({},(0,Pe.Ro)()),[`&${ft}-item-only-child`]:{[`> ${ae}, > ${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"}}}},gi=mt=>{const{componentCls:ft,motionDurationSlow:pt,motionEaseInOut:At,borderRadius:le,menuArrowSize:xe,menuArrowOffset:ae}=mt;return{[`${ft}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:mt.margin,width:xe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${pt} ${At}, opacity ${pt}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:xe*.6,height:xe*.15,backgroundColor:"currentcolor",borderRadius:le,transition:[`background ${pt} ${At}`,`transform ${pt} ${At}`,`top ${pt} ${At}`,`color ${pt} ${At}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ae})`},"&::after":{transform:`rotate(-45deg) translateY(${ae})`}}}}},Kn=mt=>{const{antCls:ft,componentCls:pt,fontSize:At,motionDurationSlow:le,motionDurationMid:xe,motionEaseInOut:ae,paddingXS:ve,padding:Ue,colorSplit:Te,lineWidth:ke,zIndexPopup:nn,borderRadiusLG:Wn,subMenuItemBorderRadius:an,menuArrowSize:gn,menuArrowOffset:Bn,lineType:ti,menuPanelMaskInset:Rn,groupTitleLineHeight:Ri,groupTitleFontSize:dr}=mt;return[{"":{[`${pt}`]:Object.assign(Object.assign({},(0,Pe.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,Pe.Wf)(mt)),(0,Pe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:At,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${le} 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:`${ve}px ${Ue}px`,fontSize:dr,lineHeight:Ri,transition:`all ${le}`},[`&-horizontal ${pt}-submenu`]:{transition:[`border-color ${le} ${ae}`,`background ${le} ${ae}`].join(",")},[`${pt}-submenu, ${pt}-submenu-inline`]:{transition:[`border-color ${le} ${ae}`,`background ${le} ${ae}`,`padding ${xe} ${ae}`].join(",")},[`${pt}-submenu ${pt}-sub`]:{cursor:"initial",transition:[`background ${le} ${ae}`,`padding ${le} ${ae}`].join(",")},[`${pt}-title-content`]:{transition:`color ${le}`},[`${pt}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${pt}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Te,borderStyle:ti,borderWidth:0,borderTopWidth:ke,marginBlock:ke,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Vn(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:nn,borderRadius:Wn,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:Wn},Vn(mt)),gi(mt)),{[`${pt}-item, ${pt}-submenu > ${pt}-submenu-title`]:{borderRadius:an},[`${pt}-submenu-title::after`]:{transition:`transform ${le} ${ae}`}})}}),gi(mt)),{[`&-inline-collapsed ${pt}-submenu-arrow,
|
|
|
&-inline ${pt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Bn})`},"&::after":{transform:`rotate(45deg) translateX(-${Bn})`}},[`${pt}-submenu-open${pt}-submenu-inline > ${pt}-submenu-title > ${pt}-submenu-arrow`]:{transform:`translateY(-${gn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Bn})`},"&::before":{transform:`rotate(45deg) translateX(${Bn})`}}})},{[`${ft}-layout-header`]:{[pt]:{lineHeight:"inherit"}}}]};var Bi=(mt,ft)=>(0,Ge.Z)("Menu",At=>{if(ft===!1)return[];const{colorBgElevated:le,colorPrimary:xe,colorTextLightSolid:ae,controlHeightLG:ve,fontSize:Ue,darkItemColor:Te,darkDangerItemColor:ke,darkItemBg:nn,darkSubMenuItemBg:Wn,darkItemSelectedColor:an,darkItemSelectedBg:gn,darkDangerItemSelectedBg:Bn,darkItemHoverBg:ti,darkGroupTitleColor:Rn,darkItemHoverColor:Ri,darkItemDisabledColor:dr,darkDangerItemHoverColor:Ji,darkDangerItemSelectedColor:mr,darkDangerItemActiveBg:Mr}=At,ro=Ue/7*5,Jr=(0,_e.TS)(At,{menuArrowSize:ro,menuHorizontalHeight:ve*1.15,menuArrowOffset:`${ro*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:le}),$r=(0,_e.TS)(Jr,{itemColor:Te,itemHoverColor:Ri,groupTitleColor:Rn,itemSelectedColor:an,itemBg:nn,popupBg:nn,subMenuItemBg:Wn,itemActiveBg:"transparent",itemSelectedBg:gn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ti,itemDisabledColor:dr,dangerItemColor:ke,dangerItemHoverColor:Ji,dangerItemSelectedColor:mr,dangerItemActiveBg:Mr,dangerItemSelectedBg:Bn,menuSubMenuBg:Wn,horizontalItemSelectedColor:ae,horizontalItemSelectedBg:xe});return[Kn(Jr),We(Jr),Mn(Jr),bn(Jr,"light"),bn($r,"dark"),ye(Jr),(0,qt.Z)(Jr),(0,ze.oN)(Jr,"slide-up"),(0,ze.oN)(Jr,"slide-down"),(0,Wt._y)(Jr,"zoom-big")]},At=>{const{colorPrimary:le,colorError:xe,colorTextDisabled:ae,colorErrorBg:ve,colorText:Ue,colorTextDescription:Te,colorBgContainer:ke,colorFillAlter:nn,colorFillContent:Wn,lineWidth:an,lineWidthBold:gn,controlItemBgActive:Bn,colorBgTextHover:ti,controlHeightLG:Rn,lineHeight:Ri,colorBgElevated:dr,marginXXS:Ji,padding:mr,fontSize:Mr,controlHeightSM:ro,fontSizeLG:Jr,colorTextLightSolid:$r,colorErrorHover:Tr}=At,Wr=new Ae.C($r).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:le,horizontalItemHoverColor:le,colorGroupTitle:Te,groupTitleColor:Te,colorItemTextSelected:le,itemSelectedColor:le,colorItemTextSelectedHorizontal:le,horizontalItemSelectedColor:le,colorItemBg:ke,itemBg:ke,colorItemBgHover:ti,itemHoverBg:ti,colorItemBgActive:Wn,itemActiveBg:Bn,colorSubItemBg:nn,subMenuItemBg:nn,colorItemBgSelected:Bn,itemSelectedBg:Bn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:gn,activeBarHeight:gn,colorActiveBarBorderSize:an,activeBarBorderWidth:an,colorItemTextDisabled:ae,itemDisabledColor:ae,colorDangerItemText:xe,dangerItemColor:xe,colorDangerItemTextHover:xe,dangerItemHoverColor:xe,colorDangerItemTextSelected:xe,dangerItemSelectedColor:xe,colorDangerItemBgActive:ve,dangerItemActiveBg:ve,colorDangerItemBgSelected:ve,dangerItemSelectedBg:ve,itemMarginInline:At.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Rn,groupTitleLineHeight:Ri,collapsedWidth:Rn*2,popupBg:dr,itemMarginBlock:Ji,itemPaddingInline:mr,horizontalLineHeight:`${Rn*1.15}px`,iconSize:Mr,iconMarginInlineEnd:ro-Mr,collapsedIconSize:Jr,groupTitleFontSize:Mr,darkItemDisabledColor:new Ae.C($r).setAlpha(.25).toRgbString(),darkItemColor:Wr,darkDangerItemColor:xe,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$r,darkItemSelectedBg:le,darkDangerItemSelectedBg:xe,darkItemHoverBg:"transparent",darkGroupTitleColor:Wr,darkItemHoverColor:$r,darkDangerItemHoverColor:Tr,darkDangerItemSelectedColor:$r,darkDangerItemActiveBg:xe}},{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),en=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 le=0,At=Object.getOwnPropertySymbols(mt);le<At.length;le++)ft.indexOf(At[le])<0&&Object.prototype.propertyIsEnumerable.call(mt,At[le])&&(pt[At[le]]=mt[At[le]]);return pt},Oi=(0,ce.forwardRef)((mt,ft)=>{var pt,At;const le=ce.useContext(Ut.Z),xe=le||{},{getPrefixCls:ae,getPopupContainer:ve,direction:Ue,menu:Te}=ce.useContext(Vt.E_),ke=ae(),{prefixCls:nn,className:Wn,style:an,theme:gn="light",expandIcon:Bn,_internalDisableMenuItemTitleTooltip:ti,inlineCollapsed:Rn,siderCollapsed:Ri,items:dr,children:Ji,rootClassName:mr,mode:Mr,selectable:ro,onClick:Jr,overflowedIndicatorPopupClassName:$r}=mt,Tr=en(mt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Wr=(0,oe.Z)(Tr,["collapsedWidth"]),oo=ue(dr)||Ji;(pt=xe.validator)===null||pt===void 0||pt.call(xe,{mode:Mr});const Uo=(0,xt.useEvent)(function(){var Ys;Jr==null||Jr.apply(void 0,arguments),(Ys=xe.onClick)===null||Ys===void 0||Ys.call(xe)}),is=xe.mode||Mr,uo=ro!=null?ro:xe.selectable,Ss=ce.useMemo(()=>Ri!==void 0?Ri:Rn,[Rn,Ri]),To={horizontal:{motionName:`${ke}-slide-up`},inline:(0,It.Z)(ke),other:{motionName:`${ke}-zoom-big`}},Xt=ae("menu",nn||xe.prefixCls),[ei,Cs]=Bi(Xt,!le),Os=ee()(`${Xt}-${gn}`,Te==null?void 0:Te.className,Wn);let ma;if(typeof Bn=="function")ma=Bn;else if(Bn===null||Bn===!1)ma=null;else if(xe.expandIcon===null||xe.expandIcon===!1)ma=null;else{const Ys=Bn!=null?Bn:xe.expandIcon;ma=(0,$t.Tm)(Ys,{className:ee()(`${Xt}-submenu-expand-icon`,(0,$t.l$)(Ys)?(At=Ys.props)===null||At===void 0?void 0:At.className:"")})}const va=ce.useMemo(()=>({prefixCls:Xt,inlineCollapsed:Ss||!1,direction:Ue,firstLevel:!0,theme:gn,mode:is,disableMenuItemTitleTooltip:ti}),[Xt,Ss,Ue,ti,gn]);return ei(ce.createElement(Ut.Z.Provider,{value:null},ce.createElement(et.Provider,{value:va},ce.createElement(Mt.ZP,Object.assign({getPopupContainer:ve,overflowedIndicator:ce.createElement(dt.Z,null),overflowedIndicatorPopupClassName:ee()(Xt,`${Xt}-${gn}`,$r),mode:is,selectable:uo,onClick:Uo},Wr,{inlineCollapsed:Ss,style:Object.assign(Object.assign({},Te==null?void 0:Te.style),an),className:Os,prefixCls:Xt,direction:Ue,defaultMotions:To,expandIcon:ma,ref:ft,rootClassName:ee()(mr,Cs)}),oo))))});const Lt=(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:le=>{var xe;(xe=pt.current)===null||xe===void 0||xe.focus(le)}})),ce.createElement(Oi,Object.assign({ref:pt},mt,At))});Lt.Item=lt,Lt.SubMenu=ht,Lt.Divider=te,Lt.ItemGroup=Mt.BW;var Ot=Lt},58421:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return xe}});var Mt=Ft(96663),ce=Ft(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"},Ie=re,ee=Ft(7657),Vt=function(ve,Ue){return ce.createElement(ee.Z,(0,Mt.Z)({},ve,{ref:Ue,icon:Ie}))},Nt=ce.forwardRef(Vt),jt=Nt,te=Ft(49198),Pt=Ft(33853),oe=Ft(38819),Kt=Ft(92310),$t=Ft.n(Kt),Ct=Ft(90493),et=Ft(44127),tt=Ft(52884),lt=Ft(95727),rt=Ft(65711),ht=Ft(85745),dt=Ft(26112),xt={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},It=xt,Ut=Ft(91735),Gt=function(ae){(0,rt.Z)(Ue,ae);var ve=(0,ht.Z)(Ue);function Ue(){var Te;(0,tt.Z)(this,Ue);for(var ke=arguments.length,nn=new Array(ke),Wn=0;Wn<ke;Wn++)nn[Wn]=arguments[Wn];return Te=ve.call.apply(ve,[this].concat(nn)),Te.state={goInputText:""},Te.getValidValue=function(){var an=Te.state.goInputText;return!an||Number.isNaN(an)?void 0:Number(an)},Te.buildOptionText=function(an){return"".concat(an," ").concat(Te.props.locale.items_per_page)},Te.changeSize=function(an){Te.props.changeSize(Number(an))},Te.handleChange=function(an){Te.setState({goInputText:an.target.value})},Te.handleBlur=function(an){var gn=Te.props,Bn=gn.goButton,ti=gn.quickGo,Rn=gn.rootPrefixCls,Ri=Te.state.goInputText;Bn||Ri===""||(Te.setState({goInputText:""}),!(an.relatedTarget&&(an.relatedTarget.className.indexOf("".concat(Rn,"-item-link"))>=0||an.relatedTarget.className.indexOf("".concat(Rn,"-item"))>=0))&&ti(Te.getValidValue()))},Te.go=function(an){var gn=Te.state.goInputText;gn!==""&&(an.keyCode===It.ENTER||an.type==="click")&&(Te.setState({goInputText:""}),Te.props.quickGo(Te.getValidValue()))},Te}return(0,lt.Z)(Ue,[{key:"getPageSizeOptions",value:function(){var ke=this.props,nn=ke.pageSize,Wn=ke.pageSizeOptions;return Wn.some(function(an){return an.toString()===nn.toString()})?Wn:Wn.concat([nn.toString()]).sort(function(an,gn){var Bn=Number.isNaN(Number(an))?0:Number(an),ti=Number.isNaN(Number(gn))?0:Number(gn);return Bn-ti})}},{key:"render",value:function(){var ke=this,nn=this.props,Wn=nn.pageSize,an=nn.locale,gn=nn.rootPrefixCls,Bn=nn.changeSize,ti=nn.quickGo,Rn=nn.goButton,Ri=nn.selectComponentClass,dr=nn.buildOptionText,Ji=nn.selectPrefixCls,mr=nn.disabled,Mr=this.state.goInputText,ro="".concat(gn,"-options"),Jr=Ri,$r=null,Tr=null,Wr=null;if(!Bn&&!ti)return null;var oo=this.getPageSizeOptions();if(Bn&&Jr){var Uo=oo.map(function(is,uo){return ce.createElement(Jr.Option,{key:uo,value:is.toString()},(dr||ke.buildOptionText)(is))});$r=ce.createElement(Jr,{disabled:mr,prefixCls:Ji,showSearch:!1,className:"".concat(ro,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Wn||oo[0]).toString(),onChange:this.changeSize,getPopupContainer:function(uo){return uo.parentNode},"aria-label":an.page_size,defaultOpen:!1},Uo)}return ti&&(Rn&&(Wr=typeof Rn=="boolean"?ce.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:mr,className:"".concat(ro,"-quick-jumper-button")},an.jump_to_confirm):ce.createElement("span",{onClick:this.go,onKeyUp:this.go},Rn)),Tr=ce.createElement("div",{className:"".concat(ro,"-quick-jumper")},an.jump_to,ce.createElement("input",{disabled:mr,type:"text",value:Mr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":an.page}),an.page,Wr)),ce.createElement("li",{className:"".concat(ro)},$r,Tr)}}]),Ue}(ce.Component);Gt.defaultProps={pageSizeOptions:["10","20","50","100"]};var se=Gt,ue=function(ve){var Ue,Te=ve.rootPrefixCls,ke=ve.page,nn=ve.active,Wn=ve.className,an=ve.showTitle,gn=ve.onClick,Bn=ve.onKeyPress,ti=ve.itemRender,Rn="".concat(Te,"-item"),Ri=$t()(Rn,"".concat(Rn,"-").concat(ke),(Ue={},(0,Ct.Z)(Ue,"".concat(Rn,"-active"),nn),(0,Ct.Z)(Ue,"".concat(Rn,"-disabled"),!ke),(0,Ct.Z)(Ue,ve.className,Wn),Ue)),dr=function(){gn(ke)},Ji=function(ro){Bn(ro,gn,ke)},mr=ti(ke,"page",ce.createElement("a",{rel:"nofollow"},ke));return mr?ce.createElement("li",{title:an?ke.toString():null,className:Ri,onClick:dr,onKeyPress:Ji,tabIndex:0},mr):null},Ae=ue;function Pe(){}function qt(ae){var ve=Number(ae);return typeof ve=="number"&&!Number.isNaN(ve)&&isFinite(ve)&&Math.floor(ve)===ve}var ze=function(ve,Ue,Te){return Te};function Wt(ae,ve,Ue){var Te=typeof ae=="undefined"?ve.pageSize:ae;return Math.floor((Ue.total-1)/Te)+1}var Ge=function(ae){(0,rt.Z)(Ue,ae);var ve=(0,ht.Z)(Ue);function Ue(Te){var ke;(0,tt.Z)(this,Ue),ke=ve.call(this,Te),ke.paginationNode=ce.createRef(),ke.getJumpPrevPage=function(){return Math.max(1,ke.state.current-(ke.props.showLessItems?3:5))},ke.getJumpNextPage=function(){return Math.min(Wt(void 0,ke.state,ke.props),ke.state.current+(ke.props.showLessItems?3:5))},ke.getItemIcon=function(Bn,ti){var Rn=ke.props.prefixCls,Ri=Bn||ce.createElement("button",{type:"button","aria-label":ti,className:"".concat(Rn,"-item-link")});return typeof Bn=="function"&&(Ri=ce.createElement(Bn,(0,et.Z)({},ke.props))),Ri},ke.isValid=function(Bn){var ti=ke.props.total;return qt(Bn)&&Bn!==ke.state.current&&qt(ti)&&ti>0},ke.shouldDisplayQuickJumper=function(){var Bn=ke.props,ti=Bn.showQuickJumper,Rn=Bn.total,Ri=ke.state.pageSize;return Rn<=Ri?!1:ti},ke.handleKeyDown=function(Bn){(Bn.keyCode===It.ARROW_UP||Bn.keyCode===It.ARROW_DOWN)&&Bn.preventDefault()},ke.handleKeyUp=function(Bn){var ti=ke.getValidValue(Bn),Rn=ke.state.currentInputValue;ti!==Rn&&ke.setState({currentInputValue:ti}),Bn.keyCode===It.ENTER?ke.handleChange(ti):Bn.keyCode===It.ARROW_UP?ke.handleChange(ti-1):Bn.keyCode===It.ARROW_DOWN&&ke.handleChange(ti+1)},ke.handleBlur=function(Bn){var ti=ke.getValidValue(Bn);ke.handleChange(ti)},ke.changePageSize=function(Bn){var ti=ke.state.current,Rn=Wt(Bn,ke.state,ke.props);ti=ti>Rn?Rn:ti,Rn===0&&(ti=ke.state.current),typeof Bn=="number"&&("pageSize"in ke.props||ke.setState({pageSize:Bn}),"current"in ke.props||ke.setState({current:ti,currentInputValue:ti})),ke.props.onShowSizeChange(ti,Bn),"onChange"in ke.props&&ke.props.onChange&&ke.props.onChange(ti,Bn)},ke.handleChange=function(Bn){var ti=ke.props,Rn=ti.disabled,Ri=ti.onChange,dr=ke.state,Ji=dr.pageSize,mr=dr.current,Mr=dr.currentInputValue;if(ke.isValid(Bn)&&!Rn){var ro=Wt(void 0,ke.state,ke.props),Jr=Bn;return Bn>ro?Jr=ro:Bn<1&&(Jr=1),"current"in ke.props||ke.setState({current:Jr}),Jr!==Mr&&ke.setState({currentInputValue:Jr}),Ri(Jr,Ji),Jr}return mr},ke.prev=function(){ke.hasPrev()&&ke.handleChange(ke.state.current-1)},ke.next=function(){ke.hasNext()&&ke.handleChange(ke.state.current+1)},ke.jumpPrev=function(){ke.handleChange(ke.getJumpPrevPage())},ke.jumpNext=function(){ke.handleChange(ke.getJumpNextPage())},ke.hasPrev=function(){return ke.state.current>1},ke.hasNext=function(){return ke.state.current<Wt(void 0,ke.state,ke.props)},ke.runIfEnter=function(Bn,ti){if(Bn.key==="Enter"||Bn.charCode===13){for(var Rn=arguments.length,Ri=new Array(Rn>2?Rn-2:0),dr=2;dr<Rn;dr++)Ri[dr-2]=arguments[dr];ti.apply(void 0,Ri)}},ke.runIfEnterPrev=function(Bn){ke.runIfEnter(Bn,ke.prev)},ke.runIfEnterNext=function(Bn){ke.runIfEnter(Bn,ke.next)},ke.runIfEnterJumpPrev=function(Bn){ke.runIfEnter(Bn,ke.jumpPrev)},ke.runIfEnterJumpNext=function(Bn){ke.runIfEnter(Bn,ke.jumpNext)},ke.handleGoTO=function(Bn){(Bn.keyCode===It.ENTER||Bn.type==="click")&&ke.handleChange(ke.state.currentInputValue)},ke.renderPrev=function(Bn){var ti=ke.props,Rn=ti.prevIcon,Ri=ti.itemRender,dr=Ri(Bn,"prev",ke.getItemIcon(Rn,"prev page")),Ji=!ke.hasPrev();return(0,ce.isValidElement)(dr)?(0,ce.cloneElement)(dr,{disabled:Ji}):dr},ke.renderNext=function(Bn){var ti=ke.props,Rn=ti.nextIcon,Ri=ti.itemRender,dr=Ri(Bn,"next",ke.getItemIcon(Rn,"next page")),Ji=!ke.hasNext();return(0,ce.isValidElement)(dr)?(0,ce.cloneElement)(dr,{disabled:Ji}):dr};var nn=Te.onChange!==Pe,Wn="current"in Te;Wn&&!nn&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var an=Te.defaultCurrent;"current"in Te&&(an=Te.current);var gn=Te.defaultPageSize;return"pageSize"in Te&&(gn=Te.pageSize),an=Math.min(an,Wt(gn,void 0,Te)),ke.state={current:an,currentInputValue:an,pageSize:gn},ke}return(0,lt.Z)(Ue,[{key:"componentDidUpdate",value:function(ke,nn){var Wn=this.props.prefixCls;if(nn.current!==this.state.current&&this.paginationNode.current){var an=this.paginationNode.current.querySelector(".".concat(Wn,"-item-").concat(nn.current));if(an&&document.activeElement===an){var gn;an==null||(gn=an.blur)===null||gn===void 0||gn.call(an)}}}},{key:"getValidValue",value:function(ke){var nn=ke.target.value,Wn=Wt(void 0,this.state,this.props),an=this.state.currentInputValue,gn;return nn===""?gn=nn:Number.isNaN(Number(nn))?gn=an:nn>=Wn?gn=Wn:gn=Number(nn),gn}},{key:"getShowSizeChanger",value:function(){var ke=this.props,nn=ke.showSizeChanger,Wn=ke.total,an=ke.totalBoundaryShowSizeChanger;return typeof nn!="undefined"?nn:Wn>an}},{key:"render",value:function(){var ke=this.props,nn=ke.prefixCls,Wn=ke.className,an=ke.style,gn=ke.disabled,Bn=ke.hideOnSinglePage,ti=ke.total,Rn=ke.locale,Ri=ke.showQuickJumper,dr=ke.showLessItems,Ji=ke.showTitle,mr=ke.showTotal,Mr=ke.simple,ro=ke.itemRender,Jr=ke.showPrevNextJumpers,$r=ke.jumpPrevIcon,Tr=ke.jumpNextIcon,Wr=ke.selectComponentClass,oo=ke.selectPrefixCls,Uo=ke.pageSizeOptions,is=this.state,uo=is.current,Ss=is.pageSize,To=is.currentInputValue;if(Bn===!0&&ti<=Ss)return null;var Xt=Wt(void 0,this.state,this.props),ei=[],Cs=null,Os=null,ma=null,va=null,Ys=null,Qr=Ri&&Ri.goButton,Dr=dr?1:2,In=uo-1>0?uo-1:0,Tn=uo+1<Xt?uo+1:Xt,Oe=(0,dt.Z)(this.props,{aria:!0,data:!0}),qn=mr&&ce.createElement("li",{className:"".concat(nn,"-total-text")},mr(ti,[ti===0?0:(uo-1)*Ss+1,uo*Ss>ti?ti:uo*Ss]));if(Mr){Qr&&(typeof Qr=="boolean"?Ys=ce.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Rn.jump_to_confirm):Ys=ce.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Qr),Ys=ce.createElement("li",{title:Ji?"".concat(Rn.jump_to).concat(uo,"/").concat(Xt):null,className:"".concat(nn,"-simple-pager")},Ys));var xi=this.renderPrev(In);return ce.createElement("ul",(0,Mt.Z)({className:$t()(nn,"".concat(nn,"-simple"),(0,Ct.Z)({},"".concat(nn,"-disabled"),gn),Wn),style:an,ref:this.paginationNode},Oe),qn,xi?ce.createElement("li",{title:Ji?Rn.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:$t()("".concat(nn,"-prev"),(0,Ct.Z)({},"".concat(nn,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},xi):null,ce.createElement("li",{title:Ji?"".concat(uo,"/").concat(Xt):null,className:"".concat(nn,"-simple-pager")},ce.createElement("input",{type:"text",value:To,disabled:gn,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ce.createElement("span",{className:"".concat(nn,"-slash")},"/"),Xt),ce.createElement("li",{title:Ji?Rn.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:$t()("".concat(nn,"-next"),(0,Ct.Z)({},"".concat(nn,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Tn)),Ys)}if(Xt<=3+Dr*2){var An={locale:Rn,rootPrefixCls:nn,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Ji,itemRender:ro};Xt||ei.push(ce.createElement(Ae,(0,Mt.Z)({},An,{key:"noPager",page:1,className:"".concat(nn,"-item-disabled")})));for(var Le=1;Le<=Xt;Le+=1){var wn=uo===Le;ei.push(ce.createElement(Ae,(0,Mt.Z)({},An,{key:Le,page:Le,active:wn})))}}else{var Qn=dr?Rn.prev_3:Rn.prev_5,Si=dr?Rn.next_3:Rn.next_5,Di=ro(this.getJumpPrevPage(),"jump-prev",this.getItemIcon($r,"prev page")),qe=ro(this.getJumpNextPage(),"jump-next",this.getItemIcon(Tr,"next page"));Jr&&(Cs=Di?ce.createElement("li",{title:Ji?Qn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:$t()("".concat(nn,"-jump-prev"),(0,Ct.Z)({},"".concat(nn,"-jump-prev-custom-icon"),!!$r))},Di):null,Os=qe?ce.createElement("li",{title:Ji?Si:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:$t()("".concat(nn,"-jump-next"),(0,Ct.Z)({},"".concat(nn,"-jump-next-custom-icon"),!!Tr))},qe):null),va=ce.createElement(Ae,{locale:Rn,last:!0,rootPrefixCls:nn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Xt,page:Xt,active:!1,showTitle:Ji,itemRender:ro}),ma=ce.createElement(Ae,{locale:Rn,rootPrefixCls:nn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Ji,itemRender:ro});var si=Math.max(1,uo-Dr),Ei=Math.min(uo+Dr,Xt);uo-1<=Dr&&(Ei=1+Dr*2),Xt-uo<=Dr&&(si=Xt-Dr*2);for(var tr=si;tr<=Ei;tr+=1){var On=uo===tr;ei.push(ce.createElement(Ae,{locale:Rn,rootPrefixCls:nn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:tr,page:tr,active:On,showTitle:Ji,itemRender:ro}))}uo-1>=Dr*2&&uo!==3&&(ei[0]=(0,ce.cloneElement)(ei[0],{className:"".concat(nn,"-item-after-jump-prev")}),ei.unshift(Cs)),Xt-uo>=Dr*2&&uo!==Xt-2&&(ei[ei.length-1]=(0,ce.cloneElement)(ei[ei.length-1],{className:"".concat(nn,"-item-before-jump-next")}),ei.push(Os)),si!==1&&ei.unshift(ma),Ei!==Xt&&ei.push(va)}var ui=!this.hasPrev()||!Xt,Cr=!this.hasNext()||!Xt,rr=this.renderPrev(In),Gr=this.renderNext(Tn);return ce.createElement("ul",(0,Mt.Z)({className:$t()(nn,Wn,(0,Ct.Z)({},"".concat(nn,"-disabled"),gn)),style:an,ref:this.paginationNode},Oe),qn,rr?ce.createElement("li",{title:Ji?Rn.prev_page:null,onClick:this.prev,tabIndex:ui?null:0,onKeyPress:this.runIfEnterPrev,className:$t()("".concat(nn,"-prev"),(0,Ct.Z)({},"".concat(nn,"-disabled"),ui)),"aria-disabled":ui},rr):null,ei,Gr?ce.createElement("li",{title:Ji?Rn.next_page:null,onClick:this.next,tabIndex:Cr?null:0,onKeyPress:this.runIfEnterNext,className:$t()("".concat(nn,"-next"),(0,Ct.Z)({},"".concat(nn,"-disabled"),Cr)),"aria-disabled":Cr},Gr):null,ce.createElement(se,{disabled:gn,locale:Rn,rootPrefixCls:nn,selectComponentClass:Wr,selectPrefixCls:oo,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:uo,pageSize:Ss,pageSizeOptions:Uo,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Qr}))}}],[{key:"getDerivedStateFromProps",value:function(ke,nn){var Wn={};if("current"in ke&&(Wn.current=ke.current,ke.current!==nn.current&&(Wn.currentInputValue=Wn.current)),"pageSize"in ke&&ke.pageSize!==nn.pageSize){var an=nn.current,gn=Wt(ke.pageSize,nn,ke);an=an>gn?gn:an,"current"in ke||(Wn.current=an,Wn.currentInputValue=an),Wn.pageSize=ke.pageSize}return Wn}}]),Ue}(ce.Component);Ge.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Pe,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Pe,locale:Ut.Z,style:{},itemRender:ze,totalBoundaryShowSizeChanger:50};var _e=Ge,Me=Ft(22075),We=Ft(36355),Re=Ft(19716),ye=Ft(8628),ne=Ft(9763),Ce=Ft(57809);const bn=ae=>ce.createElement(Ce.default,Object.assign({},ae,{showSearch:!0,size:"small"})),Ln=ae=>ce.createElement(Ce.default,Object.assign({},ae,{showSearch:!0,size:"middle"}));bn.Option=Ce.default.Option,Ln.Option=Ce.default.Option;var Ze=Ft(9937),Mn=Ft(17313),Vn=Ft(83116),gi=Ft(37613);const Kn=ae=>{const{componentCls:ve}=ae;return{[`${ve}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${ve}-item-link`]:{color:ae.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${ve}-item-link`]:{color:ae.colorTextDisabled,cursor:"not-allowed"}}},[`&${ve}-disabled`]:{cursor:"not-allowed",[`${ve}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:ae.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:ae.colorBorder,backgroundColor:ae.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:ae.itemActiveBgDisabled},a:{color:ae.itemActiveColorDisabled}}},[`${ve}-item-link`]:{color:ae.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${ve}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${ve}-simple-pager`]:{color:ae.colorTextDisabled},[`${ve}-jump-prev, ${ve}-jump-next`]:{[`${ve}-item-link-icon`]:{opacity:0},[`${ve}-item-ellipsis`]:{opacity:1}}},[`&${ve}-simple`]:{[`${ve}-prev, ${ve}-next`]:{[`&${ve}-disabled ${ve}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Bi=ae=>{const{componentCls:ve}=ae;return{[`&${ve}-mini ${ve}-total-text, &${ve}-mini ${ve}-simple-pager`]:{height:ae.itemSizeSM,lineHeight:`${ae.itemSizeSM}px`},[`&${ve}-mini ${ve}-item`]:{minWidth:ae.itemSizeSM,height:ae.itemSizeSM,margin:0,lineHeight:`${ae.itemSizeSM-2}px`},[`&${ve}-mini:not(${ve}-disabled) ${ve}-item:not(${ve}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:ae.colorBgTextHover},"&:active":{backgroundColor:ae.colorBgTextActive}},[`&${ve}-mini ${ve}-prev, &${ve}-mini ${ve}-next`]:{minWidth:ae.itemSizeSM,height:ae.itemSizeSM,margin:0,lineHeight:`${ae.itemSizeSM}px`},[`&${ve}-mini:not(${ve}-disabled)`]:{[`${ve}-prev, ${ve}-next`]:{[`&:hover ${ve}-item-link`]:{backgroundColor:ae.colorBgTextHover},[`&:active ${ve}-item-link`]:{backgroundColor:ae.colorBgTextActive},[`&${ve}-disabled:hover ${ve}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${ve}-mini ${ve}-prev ${ve}-item-link,
|
|
|
&${ve}-mini ${ve}-next ${ve}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:ae.itemSizeSM,lineHeight:`${ae.itemSizeSM}px`}},[`&${ve}-mini ${ve}-jump-prev, &${ve}-mini ${ve}-jump-next`]:{height:ae.itemSizeSM,marginInlineEnd:0,lineHeight:`${ae.itemSizeSM}px`},[`&${ve}-mini ${ve}-options`]:{marginInlineStart:ae.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:ae.miniOptionsSizeChangerTop},"&-quick-jumper":{height:ae.itemSizeSM,lineHeight:`${ae.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Ze.x0)(ae)),{width:ae.paginationMiniQuickJumperInputWidth,height:ae.controlHeightSM})}}}},en=ae=>{const{componentCls:ve}=ae;return{[`
|
|
|
&${ve}-simple ${ve}-prev,
|
|
|
&${ve}-simple ${ve}-next
|
|
|
`]:{height:ae.itemSizeSM,lineHeight:`${ae.itemSizeSM}px`,verticalAlign:"top",[`${ve}-item-link`]:{height:ae.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:ae.colorBgTextHover},"&:active":{backgroundColor:ae.colorBgTextActive},"&::after":{height:ae.itemSizeSM,lineHeight:`${ae.itemSizeSM}px`}}},[`&${ve}-simple ${ve}-simple-pager`]:{display:"inline-block",height:ae.itemSizeSM,marginInlineEnd:ae.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:ae.marginXS,padding:`0 ${ae.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:ae.itemInputBg,border:`${ae.lineWidth}px ${ae.lineType} ${ae.colorBorder}`,borderRadius:ae.borderRadius,outline:"none",transition:`border-color ${ae.motionDurationMid}`,color:"inherit","&:hover":{borderColor:ae.colorPrimary},"&:focus":{borderColor:ae.colorPrimaryHover,boxShadow:`${ae.inputOutlineOffset}px 0 ${ae.controlOutlineWidth}px ${ae.controlOutline}`},"&[disabled]":{color:ae.colorTextDisabled,backgroundColor:ae.colorBgContainerDisabled,borderColor:ae.colorBorder,cursor:"not-allowed"}}}}},Li=ae=>{const{componentCls:ve}=ae;return{[`${ve}-jump-prev, ${ve}-jump-next`]:{outline:0,[`${ve}-item-container`]:{position:"relative",[`${ve}-item-link-icon`]:{color:ae.colorPrimary,fontSize:ae.fontSizeSM,opacity:0,transition:`all ${ae.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${ve}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:ae.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:ae.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:ae.paginationEllipsisTextIndent,opacity:1,transition:`all ${ae.motionDurationMid}`}},"&:hover":{[`${ve}-item-link-icon`]:{opacity:1},[`${ve}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${ve}-prev,
|
|
|
${ve}-jump-prev,
|
|
|
${ve}-jump-next
|
|
|
`]:{marginInlineEnd:ae.marginXS},[`
|
|
|
${ve}-prev,
|
|
|
${ve}-next,
|
|
|
${ve}-jump-prev,
|
|
|
${ve}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:ae.itemSize,height:ae.itemSize,color:ae.colorText,fontFamily:ae.fontFamily,lineHeight:`${ae.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:ae.borderRadius,cursor:"pointer",transition:`all ${ae.motionDurationMid}`},[`${ve}-prev, ${ve}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:ae.colorText,cursor:"pointer",userSelect:"none"},[`${ve}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:ae.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${ae.lineWidth}px ${ae.lineType} transparent`,borderRadius:ae.borderRadius,outline:"none",transition:`all ${ae.motionDurationMid}`},[`&:hover ${ve}-item-link`]:{backgroundColor:ae.colorBgTextHover},[`&:active ${ve}-item-link`]:{backgroundColor:ae.colorBgTextActive},[`&${ve}-disabled:hover`]:{[`${ve}-item-link`]:{backgroundColor:"transparent"}}},[`${ve}-slash`]:{marginInlineEnd:ae.paginationSlashMarginInlineEnd,marginInlineStart:ae.paginationSlashMarginInlineStart},[`${ve}-options`]:{display:"inline-block",marginInlineStart:ae.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:ae.controlHeight,marginInlineStart:ae.marginXS,lineHeight:`${ae.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Ze.ik)(ae)),{width:ae.controlHeightLG*1.25,height:ae.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:ae.marginXS,marginInlineEnd:ae.marginXS})}}}},Oi=ae=>{const{componentCls:ve}=ae;return{[`${ve}-item`]:{display:"inline-block",minWidth:ae.itemSize,height:ae.itemSize,marginInlineEnd:ae.marginXS,fontFamily:ae.fontFamily,lineHeight:`${ae.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${ae.lineWidth}px ${ae.lineType} transparent`,borderRadius:ae.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ae.paginationItemPaddingInline}px`,color:ae.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${ve}-item-active)`]:{"&:hover":{transition:`all ${ae.motionDurationMid}`,backgroundColor:ae.colorBgTextHover},"&:active":{backgroundColor:ae.colorBgTextActive}},"&-active":{fontWeight:ae.fontWeightStrong,backgroundColor:ae.itemActiveBg,borderColor:ae.colorPrimary,a:{color:ae.colorPrimary},"&:hover":{borderColor:ae.colorPrimaryHover},"&:hover a":{color:ae.colorPrimaryHover}}}}},Lt=ae=>{const{componentCls:ve}=ae;return{[ve]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Mn.Wf)(ae)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${ve}-total-text`]:{display:"inline-block",height:ae.itemSize,marginInlineEnd:ae.marginXS,lineHeight:`${ae.itemSize-2}px`,verticalAlign:"middle"}}),Oi(ae)),Li(ae)),en(ae)),Bi(ae)),Kn(ae)),{[`@media only screen and (max-width: ${ae.screenLG}px)`]:{[`${ve}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${ae.screenSM}px)`]:{[`${ve}-options`]:{display:"none"}}}),[`&${ae.componentCls}-rtl`]:{direction:"rtl"}}},Ot=ae=>{const{componentCls:ve}=ae;return{[`${ve}${ve}-disabled:not(${ve}-mini)`]:{"&, &:hover":{[`${ve}-item-link`]:{borderColor:ae.colorBorder}},"&:focus-visible":{[`${ve}-item-link`]:{borderColor:ae.colorBorder}},[`${ve}-item, ${ve}-item-link`]:{backgroundColor:ae.colorBgContainerDisabled,borderColor:ae.colorBorder,[`&:hover:not(${ve}-item-active)`]:{backgroundColor:ae.colorBgContainerDisabled,borderColor:ae.colorBorder,a:{color:ae.colorTextDisabled}},[`&${ve}-item-active`]:{backgroundColor:ae.itemActiveBgDisabled}},[`${ve}-prev, ${ve}-next`]:{"&:hover button":{backgroundColor:ae.colorBgContainerDisabled,borderColor:ae.colorBorder,color:ae.colorTextDisabled},[`${ve}-item-link`]:{backgroundColor:ae.colorBgContainerDisabled,borderColor:ae.colorBorder}}},[`${ve}:not(${ve}-mini)`]:{[`${ve}-prev, ${ve}-next`]:{"&:hover button":{borderColor:ae.colorPrimaryHover,backgroundColor:ae.itemBg},[`${ve}-item-link`]:{backgroundColor:ae.itemLinkBg,borderColor:ae.colorBorder},[`&:hover ${ve}-item-link`]:{borderColor:ae.colorPrimary,backgroundColor:ae.itemBg,color:ae.colorPrimary},[`&${ve}-disabled`]:{[`${ve}-item-link`]:{borderColor:ae.colorBorder,color:ae.colorTextDisabled}}},[`${ve}-item`]:{backgroundColor:ae.itemBg,border:`${ae.lineWidth}px ${ae.lineType} ${ae.colorBorder}`,[`&:hover:not(${ve}-item-active)`]:{borderColor:ae.colorPrimary,backgroundColor:ae.itemBg,a:{color:ae.colorPrimary}},"&-active":{borderColor:ae.colorPrimary}}}}},mt=ae=>{const{componentCls:ve}=ae;return{[`${ve}:not(${ve}-disabled)`]:{[`${ve}-item`]:Object.assign({},(0,Mn.Qy)(ae)),[`${ve}-jump-prev, ${ve}-jump-next`]:{"&:focus-visible":Object.assign({[`${ve}-item-link-icon`]:{opacity:1},[`${ve}-item-ellipsis`]:{opacity:0}},(0,Mn.oN)(ae))},[`${ve}-prev, ${ve}-next`]:{[`&:focus-visible ${ve}-item-link`]:Object.assign({},(0,Mn.oN)(ae))}}}};var ft=(0,Vn.Z)("Pagination",ae=>{const ve=(0,gi.TS)(ae,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:ae.marginXXS/2,paginationMiniQuickJumperInputWidth:ae.controlHeightLG*1.1,paginationItemPaddingInline:ae.marginXXS*1.5,paginationEllipsisLetterSpacing:ae.marginXXS/2,paginationSlashMarginInlineStart:ae.marginXXS,paginationSlashMarginInlineEnd:ae.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Ze.e5)(ae),(0,Ze.TM)(ae));return[Lt(ve),mt(ve),ae.wireframe&&Ot(ve)]},ae=>({itemBg:ae.colorBgContainer,itemSize:ae.controlHeight,itemSizeSM:ae.controlHeightSM,itemActiveBg:ae.colorBgContainer,itemLinkBg:ae.colorBgContainer,itemActiveColorDisabled:ae.colorTextDisabled,itemActiveBgDisabled:ae.controlItemBgActiveDisabled,itemInputBg:ae.colorBgContainer,miniOptionsSizeChangerTop:0})),pt=function(ae,ve){var Ue={};for(var Te in ae)Object.prototype.hasOwnProperty.call(ae,Te)&&ve.indexOf(Te)<0&&(Ue[Te]=ae[Te]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Te=Object.getOwnPropertySymbols(ae);ke<Te.length;ke++)ve.indexOf(Te[ke])<0&&Object.prototype.propertyIsEnumerable.call(ae,Te[ke])&&(Ue[Te[ke]]=ae[Te[ke]]);return Ue},le=ae=>{const{prefixCls:ve,selectPrefixCls:Ue,className:Te,rootClassName:ke,style:nn,size:Wn,locale:an,selectComponentClass:gn,responsive:Bn,showSizeChanger:ti}=ae,Rn=pt(ae,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Ri}=(0,ye.Z)(Bn),{getPrefixCls:dr,direction:Ji,pagination:mr={}}=ce.useContext(We.E_),Mr=dr("pagination",ve),[ro,Jr]=ft(Mr),$r=ti!=null?ti:mr.showSizeChanger,Tr=ce.useMemo(()=>{const Xt=ce.createElement("span",{className:`${Mr}-item-ellipsis`},"\u2022\u2022\u2022"),ei=ce.createElement("button",{className:`${Mr}-item-link`,type:"button",tabIndex:-1},Ji==="rtl"?ce.createElement(oe.Z,null):ce.createElement(Pt.Z,null)),Cs=ce.createElement("button",{className:`${Mr}-item-link`,type:"button",tabIndex:-1},Ji==="rtl"?ce.createElement(Pt.Z,null):ce.createElement(oe.Z,null)),Os=ce.createElement("a",{className:`${Mr}-item-link`},ce.createElement("div",{className:`${Mr}-item-container`},Ji==="rtl"?ce.createElement(te.Z,{className:`${Mr}-item-link-icon`}):ce.createElement(jt,{className:`${Mr}-item-link-icon`}),Xt)),ma=ce.createElement("a",{className:`${Mr}-item-link`},ce.createElement("div",{className:`${Mr}-item-container`},Ji==="rtl"?ce.createElement(jt,{className:`${Mr}-item-link-icon`}):ce.createElement(te.Z,{className:`${Mr}-item-link-icon`}),Xt));return{prevIcon:ei,nextIcon:Cs,jumpPrevIcon:Os,jumpNextIcon:ma}},[Ji,Mr]),[Wr]=(0,ne.Z)("Pagination",Me.Z),oo=Object.assign(Object.assign({},Wr),an),Uo=(0,Re.Z)(Wn),is=Uo==="small"||!!(Ri&&!Uo&&Bn),uo=dr("select",Ue),Ss=$t()({[`${Mr}-mini`]:is,[`${Mr}-rtl`]:Ji==="rtl"},mr==null?void 0:mr.className,Te,ke,Jr),To=Object.assign(Object.assign({},mr==null?void 0:mr.style),nn);return ro(ce.createElement(_e,Object.assign({},Tr,Rn,{style:To,prefixCls:Mr,selectPrefixCls:uo,className:Ss,selectComponentClass:gn||(is?bn:Ln),locale:oo,showSizeChanger:$r})))},xe=le},13570:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return ne}});var Mt=Ft(96663),ce=Ft(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"},Ie=re,ee=Ft(7657),Vt=function(bn,Ln){return ce.createElement(ee.Z,(0,Mt.Z)({},bn,{ref:Ln,icon:Ie}))},Nt=ce.forwardRef(Vt),jt=Nt,te=Ft(92310),Pt=Ft.n(te),oe=Ft(90493),Kt=Ft(72071),$t=Ft(6620),Ct=Ft(18929),et=Ft(10228),tt=Ft(26112);function lt(Ce,bn){var Ln=Ce.disabled,Ze=Ce.prefixCls,Mn=Ce.character,Vn=Ce.characterRender,gi=Ce.index,Kn=Ce.count,Bi=Ce.value,en=Ce.allowHalf,Li=Ce.focused,Oi=Ce.onHover,Lt=Ce.onClick,Ot=function(ve){Oi(ve,gi)},mt=function(ve){Lt(ve,gi)},ft=function(ve){ve.keyCode===et.Z.ENTER&&Lt(ve,gi)},pt=gi+1,At=new Set([Ze]);Bi===0&&gi===0&&Li?At.add("".concat(Ze,"-focused")):en&&Bi+.5>=pt&&Bi<pt?(At.add("".concat(Ze,"-half")),At.add("".concat(Ze,"-active")),Li&&At.add("".concat(Ze,"-focused"))):(pt<=Bi?At.add("".concat(Ze,"-full")):At.add("".concat(Ze,"-zero")),pt===Bi&&Li&&At.add("".concat(Ze,"-focused")));var le=typeof Mn=="function"?Mn(Ce):Mn,xe=ce.createElement("li",{className:Pt()(Array.from(At)),ref:bn},ce.createElement("div",{onClick:Ln?null:mt,onKeyDown:Ln?null:ft,onMouseMove:Ln?null:Ot,role:"radio","aria-checked":Bi>gi?"true":"false","aria-posinset":gi+1,"aria-setsize":Kn,tabIndex:Ln?-1:0},ce.createElement("div",{className:"".concat(Ze,"-first")},le),ce.createElement("div",{className:"".concat(Ze,"-second")},le)));return Vn&&(xe=Vn(xe,Ce)),xe}var rt=ce.forwardRef(lt);function ht(){var Ce=ce.useRef({});function bn(Ze){return Ce.current[Ze]}function Ln(Ze){return function(Mn){Ce.current[Ze]=Mn}}return[bn,Ln]}function dt(Ce){var bn=Ce.pageXOffset,Ln="scrollLeft";if(typeof bn!="number"){var Ze=Ce.document;bn=Ze.documentElement[Ln],typeof bn!="number"&&(bn=Ze.body[Ln])}return bn}function xt(Ce){var bn,Ln,Ze=Ce.ownerDocument,Mn=Ze.body,Vn=Ze&&Ze.documentElement,gi=Ce.getBoundingClientRect();return bn=gi.left,Ln=gi.top,bn-=Vn.clientLeft||Mn.clientLeft||0,Ln-=Vn.clientTop||Mn.clientTop||0,{left:bn,top:Ln}}function It(Ce){var bn=xt(Ce),Ln=Ce.ownerDocument,Ze=Ln.defaultView||Ln.parentWindow;return bn.left+=dt(Ze),bn.left}var Ut=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Gt(Ce,bn){var Ln,Ze=Ce.prefixCls,Mn=Ze===void 0?"rc-rate":Ze,Vn=Ce.className,gi=Ce.defaultValue,Kn=Ce.value,Bi=Ce.count,en=Bi===void 0?5:Bi,Li=Ce.allowHalf,Oi=Li===void 0?!1:Li,Lt=Ce.allowClear,Ot=Lt===void 0?!0:Lt,mt=Ce.character,ft=mt===void 0?"\u2605":mt,pt=Ce.characterRender,At=Ce.disabled,le=Ce.direction,xe=le===void 0?"ltr":le,ae=Ce.tabIndex,ve=ae===void 0?0:ae,Ue=Ce.autoFocus,Te=Ce.onHoverChange,ke=Ce.onChange,nn=Ce.onFocus,Wn=Ce.onBlur,an=Ce.onKeyDown,gn=Ce.onMouseLeave,Bn=(0,$t.Z)(Ce,Ut),ti=ht(),Rn=(0,Kt.Z)(ti,2),Ri=Rn[0],dr=Rn[1],Ji=ce.useRef(null),mr=function(){if(!At){var Le;(Le=Ji.current)===null||Le===void 0||Le.focus()}};ce.useImperativeHandle(bn,function(){return{focus:mr,blur:function(){if(!At){var Le;(Le=Ji.current)===null||Le===void 0||Le.blur()}}}});var Mr=(0,Ct.Z)(gi||0,{value:Kn}),ro=(0,Kt.Z)(Mr,2),Jr=ro[0],$r=ro[1],Tr=(0,Ct.Z)(null),Wr=(0,Kt.Z)(Tr,2),oo=Wr[0],Uo=Wr[1],is=function(Le,wn){var Qn=xe==="rtl",Si=Le+1;if(Oi){var Di=Ri(Le),qe=It(Di),si=Di.clientWidth;(Qn&&wn-qe>si/2||!Qn&&wn-qe<si/2)&&(Si-=.5)}return Si},uo=function(Le){$r(Le),ke==null||ke(Le)},Ss=ce.useState(!1),To=(0,Kt.Z)(Ss,2),Xt=To[0],ei=To[1],Cs=function(){ei(!0),nn==null||nn()},Os=function(){ei(!1),Wn==null||Wn()},ma=ce.useState(null),va=(0,Kt.Z)(ma,2),Ys=va[0],Qr=va[1],Dr=function(Le,wn){var Qn=is(wn,Le.pageX);Qn!==oo&&(Qr(Qn),Uo(null)),Te==null||Te(Qn)},In=function(Le){At||(Qr(null),Uo(null),Te==null||Te(void 0)),Le&&(gn==null||gn(Le))},Tn=function(Le,wn){var Qn=is(wn,Le.pageX),Si=!1;Ot&&(Si=Qn===Jr),In(),uo(Si?0:Qn),Uo(Si?Qn:null)},Oe=function(Le){var wn=Le.keyCode,Qn=xe==="rtl",Si=Jr;wn===et.Z.RIGHT&&Si<en&&!Qn?(Oi?Si+=.5:Si+=1,uo(Si),Le.preventDefault()):wn===et.Z.LEFT&&Si>0&&!Qn||wn===et.Z.RIGHT&&Si>0&&Qn?(Oi?Si-=.5:Si-=1,uo(Si),Le.preventDefault()):wn===et.Z.LEFT&&Si<en&&Qn&&(Oi?Si+=.5:Si+=1,uo(Si),Le.preventDefault()),an==null||an(Le)};ce.useEffect(function(){Ue&&!At&&mr()},[]);var qn=new Array(en).fill(0).map(function(An,Le){return ce.createElement(rt,{ref:dr(Le),index:Le,count:en,disabled:At,prefixCls:"".concat(Mn,"-star"),allowHalf:Oi,value:Ys===null?Jr:Ys,onClick:Tn,onHover:Dr,key:An||Le,character:ft,characterRender:pt,focused:Xt})}),xi=Pt()(Mn,Vn,(Ln={},(0,oe.Z)(Ln,"".concat(Mn,"-disabled"),At),(0,oe.Z)(Ln,"".concat(Mn,"-rtl"),xe==="rtl"),Ln));return ce.createElement("ul",(0,Mt.Z)({className:xi,onMouseLeave:In,tabIndex:At?-1:ve,onFocus:At?null:Cs,onBlur:At?null:Os,onKeyDown:At?null:Oe,ref:Ji,role:"radiogroup"},(0,tt.Z)(Bn,{aria:!0,data:!0,attr:!0})),qn)}var se=ce.forwardRef(Gt),ue=se,Ae=Ft(36355),Pe=Ft(6848),qt=Ft(17313),ze=Ft(83116),Wt=Ft(37613);const Ge=Ce=>{const{componentCls:bn}=Ce;return{[`${bn}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Ce.marginXS},"> div":{transition:`all ${Ce.motionDurationMid}, outline 0s`,"&:hover":{transform:Ce.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Ce.lineWidth}px dashed ${Ce.starColor}`,transform:Ce.starHoverScale}},"&-first, &-second":{color:Ce.starBg,transition:`all ${Ce.motionDurationMid}`,userSelect:"none",[Ce.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=Ce=>({[`&-rtl${Ce.componentCls}`]:{direction:"rtl"}}),Me=Ce=>{const{componentCls:bn}=Ce;return{[bn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,qt.Wf)(Ce)),{display:"inline-block",margin:0,padding:0,color:Ce.starColor,fontSize:Ce.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${bn} ${bn}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ge(Ce)),{[`+ ${bn}-text`]:{display:"inline-block",marginInlineStart:Ce.marginXS,fontSize:Ce.fontSize}}),_e(Ce))}};var We=(0,ze.Z)("Rate",Ce=>{const bn=(0,Wt.TS)(Ce,{});return[Me(bn)]},Ce=>({starColor:Ce.yellow6,starSize:Ce.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Ce.colorFillContent})),Re=function(Ce,bn){var Ln={};for(var Ze in Ce)Object.prototype.hasOwnProperty.call(Ce,Ze)&&bn.indexOf(Ze)<0&&(Ln[Ze]=Ce[Ze]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mn=0,Ze=Object.getOwnPropertySymbols(Ce);Mn<Ze.length;Mn++)bn.indexOf(Ze[Mn])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Ze[Mn])&&(Ln[Ze[Mn]]=Ce[Ze[Mn]]);return Ln},ne=ce.forwardRef((Ce,bn)=>{const{prefixCls:Ln,className:Ze,rootClassName:Mn,style:Vn,tooltips:gi,character:Kn=ce.createElement(jt,null)}=Ce,Bi=Re(Ce,["prefixCls","className","rootClassName","style","tooltips","character"]),en=(At,le)=>{let{index:xe}=le;return gi?ce.createElement(Pe.Z,{title:gi[xe]},At):At},{getPrefixCls:Li,direction:Oi,rate:Lt}=ce.useContext(Ae.E_),Ot=Li("rate",Ln),[mt,ft]=We(Ot),pt=Object.assign(Object.assign({},Lt==null?void 0:Lt.style),Vn);return mt(ce.createElement(ue,Object.assign({ref:bn,character:Kn,characterRender:en},Bi,{className:Pt()(Ze,Mn,ft,Lt==null?void 0:Lt.className),style:pt,prefixCls:Ot,direction:Oi})))})},57809:function(hi,Cn,Ft){"use strict";var Mt=Ft(92310),ce=Ft.n(Mt),re=Ft(77861),Ie=Ft(2738),ee=Ft(59301),Vt=Ft(53487),Nt=Ft(62892),jt=Ft(19080),te=Ft(36355),Pt=Ft(1684),oe=Ft(93891),Kt=Ft(19716),$t=Ft(32441),Ct=Ft(33234),et=Ft(14154),tt=Ft(58582),lt=Ft(84443),rt=Ft(66339),ht=function(Gt,se){var ue={};for(var Ae in Gt)Object.prototype.hasOwnProperty.call(Gt,Ae)&&se.indexOf(Ae)<0&&(ue[Ae]=Gt[Ae]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Ae=Object.getOwnPropertySymbols(Gt);Pe<Ae.length;Pe++)se.indexOf(Ae[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Gt,Ae[Pe])&&(ue[Ae[Pe]]=Gt[Ae[Pe]]);return ue};const dt="SECRET_COMBOBOX_MODE_DO_NOT_USE",xt=(Gt,se)=>{var ue,{prefixCls:Ae,bordered:Pe=!0,className:qt,rootClassName:ze,getPopupContainer:Wt,popupClassName:Ge,dropdownClassName:_e,listHeight:Me=256,placement:We,listItemHeight:Re=24,size:ye,disabled:ne,notFoundContent:Ce,status:bn,builtinPlacements:Ln,dropdownMatchSelectWidth:Ze,popupMatchSelectWidth:Mn,direction:Vn,style:gi,allowClear:Kn}=Gt,Bi=ht(Gt,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:en,getPrefixCls:Li,renderEmpty:Oi,direction:Lt,virtual:Ot,popupMatchSelectWidth:mt,popupOverflow:ft,select:pt}=ee.useContext(te.E_),At=Li("select",Ae),le=Li(),xe=Vn!=null?Vn:Lt,{compactSize:ae,compactItemClassnames:ve}=(0,Ct.ri)(At,xe),[Ue,Te]=(0,et.Z)(At),ke=ee.useMemo(()=>{const{mode:To}=Bi;if(To!=="combobox")return To===dt?"combobox":To},[Bi.mode]),nn=ke==="multiple"||ke==="tags",Wn=(0,lt.Z)(Bi.suffixIcon,Bi.showArrow),an=(ue=Mn!=null?Mn:Ze)!==null&&ue!==void 0?ue:mt,{status:gn,hasFeedback:Bn,isFormItemInput:ti,feedbackIcon:Rn}=ee.useContext($t.aM),Ri=(0,jt.F)(gn,bn);let dr;Ce!==void 0?dr=Ce:ke==="combobox"?dr=null:dr=(Oi==null?void 0:Oi("Select"))||ee.createElement(oe.Z,{componentName:"Select"});const{suffixIcon:Ji,itemIcon:mr,removeIcon:Mr,clearIcon:ro}=(0,rt.Z)(Object.assign(Object.assign({},Bi),{multiple:nn,hasFeedback:Bn,feedbackIcon:Rn,showSuffixIcon:Wn,prefixCls:At,showArrow:Bi.showArrow,componentName:"Select"})),Jr=Kn===!0?{clearIcon:ro}:Kn,$r=(0,Ie.Z)(Bi,["suffixIcon","itemIcon"]),Tr=ce()(Ge||_e,{[`${At}-dropdown-${xe}`]:xe==="rtl"},ze,Te),Wr=(0,Kt.Z)(To=>{var Xt;return(Xt=ye!=null?ye:ae)!==null&&Xt!==void 0?Xt:To}),oo=ee.useContext(Pt.Z),Uo=ne!=null?ne:oo,is=ce()({[`${At}-lg`]:Wr==="large",[`${At}-sm`]:Wr==="small",[`${At}-rtl`]:xe==="rtl",[`${At}-borderless`]:!Pe,[`${At}-in-form-item`]:ti},(0,jt.Z)(At,Ri,Bn),ve,pt==null?void 0:pt.className,qt,ze,Te),uo=ee.useMemo(()=>We!==void 0?We:xe==="rtl"?"bottomRight":"bottomLeft",[We,xe]),Ss=(0,tt.Z)(Ln,ft);return Ue(ee.createElement(re.ZP,Object.assign({ref:se,virtual:Ot,showSearch:pt==null?void 0:pt.showSearch},$r,{style:Object.assign(Object.assign({},pt==null?void 0:pt.style),gi),dropdownMatchSelectWidth:an,builtinPlacements:Ss,transitionName:(0,Nt.m)(le,"slide-up",Bi.transitionName),listHeight:Me,listItemHeight:Re,mode:ke,prefixCls:At,placement:uo,direction:xe,suffixIcon:Ji,menuItemSelectedIcon:mr,removeIcon:Mr,allowClear:Jr,notFoundContent:dr,className:is,getPopupContainer:Wt||en,dropdownClassName:Tr,disabled:Uo})))},It=ee.forwardRef(xt),Ut=(0,Vt.Z)(It);It.SECRET_COMBOBOX_MODE_DO_NOT_USE=dt,It.Option=re.Wx,It.OptGroup=re.Xo,It._InternalPanelDoNotUseOrYouWillBeFired=Ut,Cn.default=It},14154:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return It}});var Mt=Ft(17313),ce=Ft(74207),re=Ft(37613),Ie=Ft(83116),ee=Ft(13826),Vt=Ft(92899);const Nt=Ut=>{const{optionHeight:Gt,optionFontSize:se,optionLineHeight:ue,optionPadding:Ae}=Ut;return{position:"relative",display:"block",minHeight:Gt,padding:Ae,color:Ut.colorText,fontWeight:"normal",fontSize:se,lineHeight:ue,boxSizing:"border-box"}};var te=Ut=>{const{antCls:Gt,componentCls:se}=Ut,ue=`${se}-item`,Ae=`&${Gt}-slide-up-enter${Gt}-slide-up-enter-active`,Pe=`&${Gt}-slide-up-appear${Gt}-slide-up-appear-active`,qt=`&${Gt}-slide-up-leave${Gt}-slide-up-leave-active`,ze=`${se}-dropdown-placement-`;return[{[`${se}-dropdown`]:Object.assign(Object.assign({},(0,Mt.Wf)(Ut)),{position:"absolute",top:-9999,zIndex:Ut.zIndexPopup,boxSizing:"border-box",padding:Ut.paddingXXS,overflow:"hidden",fontSize:Ut.fontSize,fontVariant:"initial",backgroundColor:Ut.colorBgElevated,borderRadius:Ut.borderRadiusLG,outline:"none",boxShadow:Ut.boxShadowSecondary,[`
|
|
|
${Ae}${ze}bottomLeft,
|
|
|
${Pe}${ze}bottomLeft
|
|
|
`]:{animationName:ee.fJ},[`
|
|
|
${Ae}${ze}topLeft,
|
|
|
${Pe}${ze}topLeft,
|
|
|
${Ae}${ze}topRight,
|
|
|
${Pe}${ze}topRight
|
|
|
`]:{animationName:ee.Qt},[`${qt}${ze}bottomLeft`]:{animationName:ee.Uw},[`
|
|
|
${qt}${ze}topLeft,
|
|
|
${qt}${ze}topRight
|
|
|
`]:{animationName:ee.ly},"&-hidden":{display:"none"},[`${ue}`]:Object.assign(Object.assign({},Nt(Ut)),{cursor:"pointer",transition:`background ${Ut.motionDurationSlow} ease`,borderRadius:Ut.borderRadiusSM,"&-group":{color:Ut.colorTextDescription,fontSize:Ut.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Mt.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${ue}-option-disabled)`]:{backgroundColor:Ut.optionActiveBg},[`&-selected:not(${ue}-option-disabled)`]:{color:Ut.optionSelectedColor,fontWeight:Ut.optionSelectedFontWeight,backgroundColor:Ut.optionSelectedBg,[`${ue}-option-state`]:{color:Ut.colorPrimary}},"&-disabled":{[`&${ue}-option-selected`]:{backgroundColor:Ut.colorBgContainerDisabled},color:Ut.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Ut.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,ee.oN)(Ut,"slide-up"),(0,ee.oN)(Ut,"slide-down"),(0,Vt.Fm)(Ut,"move-up"),(0,Vt.Fm)(Ut,"move-down")]};const Pt=2,oe=Ut=>{let{controlHeightSM:Gt,controlHeight:se,lineWidth:ue}=Ut;const Ae=(se-Gt)/2-ue,Pe=Math.ceil(Ae/2);return[Ae,Pe]};function Kt(Ut,Gt){const{componentCls:se,iconCls:ue}=Ut,Ae=`${se}-selection-overflow`,Pe=Ut.multipleSelectItemHeight,[qt]=oe(Ut),ze=Gt?`${se}-${Gt}`:"";return{[`${se}-multiple${ze}`]:{fontSize:Ut.fontSize,[Ae]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${se}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${qt-Pt}px ${Pt*2}px`,borderRadius:Ut.borderRadius,[`${se}-show-search&`]:{cursor:"text"},[`${se}-disabled&`]:{background:Ut.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Pt}px 0`,lineHeight:`${Pe}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${se}-show-arrow ${se}-selector,
|
|
|
&${se}-allow-clear ${se}-selector
|
|
|
`]:{paddingInlineEnd:Ut.fontSizeIcon+Ut.controlPaddingHorizontal},[`${se}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Pe,marginTop:Pt,marginBottom:Pt,lineHeight:`${Pe-Ut.lineWidth*2}px`,background:Ut.multipleItemBg,border:`${Ut.lineWidth}px ${Ut.lineType} ${Ut.multipleItemBorderColor}`,borderRadius:Ut.borderRadiusSM,cursor:"default",transition:`font-size ${Ut.motionDurationSlow}, line-height ${Ut.motionDurationSlow}, height ${Ut.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Pt*2,paddingInlineStart:Ut.paddingXS,paddingInlineEnd:Ut.paddingXS/2,[`${se}-disabled&`]:{color:Ut.multipleItemColorDisabled,borderColor:Ut.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Ut.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Mt.Ro)()),{display:"inline-flex",alignItems:"center",color:Ut.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${ue}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ut.colorIconHover}})},[`${Ae}-item + ${Ae}-item`]:{[`${se}-selection-search`]:{marginInlineStart:0}},[`${se}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Ut.inputPaddingHorizontalBase-qt,"\n &-input,\n &-mirror\n ":{height:Pe,fontFamily:Ut.fontFamily,lineHeight:`${Pe}px`,transition:`all ${Ut.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${se}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Ut.inputPaddingHorizontalBase,insetInlineEnd:Ut.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Ut.motionDurationSlow}`}}}}var Ct=Ut=>{const{componentCls:Gt}=Ut,se=(0,re.TS)(Ut,{controlHeight:Ut.controlHeightSM,multipleSelectItemHeight:Ut.controlHeightXS,borderRadius:Ut.borderRadiusSM,borderRadiusSM:Ut.borderRadiusXS}),ue=(0,re.TS)(Ut,{fontSize:Ut.fontSizeLG,controlHeight:Ut.controlHeightLG,multipleSelectItemHeight:Ut.multipleItemHeightLG,borderRadius:Ut.borderRadiusLG,borderRadiusSM:Ut.borderRadius}),[,Ae]=oe(Ut);return[Kt(Ut),Kt(se,"sm"),{[`${Gt}-multiple${Gt}-sm`]:{[`${Gt}-selection-placeholder`]:{insetInline:Ut.controlPaddingHorizontalSM-Ut.lineWidth},[`${Gt}-selection-search`]:{marginInlineStart:Ae}}},Kt(ue,"lg")]};function et(Ut,Gt){const{componentCls:se,inputPaddingHorizontalBase:ue,borderRadius:Ae}=Ut,Pe=Ut.controlHeight-Ut.lineWidth*2,qt=Math.ceil(Ut.fontSize*1.25),ze=Gt?`${se}-${Gt}`:"";return{[`${se}-single${ze}`]:{fontSize:Ut.fontSize,[`${se}-selector`]:Object.assign(Object.assign({},(0,Mt.Wf)(Ut)),{display:"flex",borderRadius:Ae,[`${se}-selection-search`]:{position:"absolute",top:0,insetInlineStart:ue,insetInlineEnd:ue,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${se}-selection-item,
|
|
|
${se}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Pe}px`,transition:`all ${Ut.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Pe}px`}},[`${se}-selection-item`]:{position:"relative",userSelect:"none"},[`${se}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${se}-selection-item:after`,`${se}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${se}-show-arrow ${se}-selection-item,
|
|
|
&${se}-show-arrow ${se}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:qt},[`&${se}-open ${se}-selection-item`]:{color:Ut.colorTextPlaceholder},[`&:not(${se}-customize-input)`]:{[`${se}-selector`]:{width:"100%",height:Ut.controlHeight,padding:`0 ${ue}px`,[`${se}-selection-search-input`]:{height:Pe},"&:after":{lineHeight:`${Pe}px`}}},[`&${se}-customize-input`]:{[`${se}-selector`]:{"&:after":{display:"none"},[`${se}-selection-search`]:{position:"static",width:"100%"},[`${se}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ue}px`,"&:after":{display:"none"}}}}}}}function tt(Ut){const{componentCls:Gt}=Ut,se=Ut.controlPaddingHorizontalSM-Ut.lineWidth;return[et(Ut),et((0,re.TS)(Ut,{controlHeight:Ut.controlHeightSM,borderRadius:Ut.borderRadiusSM}),"sm"),{[`${Gt}-single${Gt}-sm`]:{[`&:not(${Gt}-customize-input)`]:{[`${Gt}-selection-search`]:{insetInlineStart:se,insetInlineEnd:se},[`${Gt}-selector`]:{padding:`0 ${se}px`},[`&${Gt}-show-arrow ${Gt}-selection-search`]:{insetInlineEnd:se+Ut.fontSize*1.5},[`
|
|
|
&${Gt}-show-arrow ${Gt}-selection-item,
|
|
|
&${Gt}-show-arrow ${Gt}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Ut.fontSize*1.5}}}},et((0,re.TS)(Ut,{controlHeight:Ut.singleItemHeightLG,fontSize:Ut.fontSizeLG,borderRadius:Ut.borderRadiusLG}),"lg")]}const lt=Ut=>{const{componentCls:Gt,selectorBg:se}=Ut;return{position:"relative",backgroundColor:se,border:`${Ut.lineWidth}px ${Ut.lineType} ${Ut.colorBorder}`,transition:`all ${Ut.motionDurationMid} ${Ut.motionEaseInOut}`,input:{cursor:"pointer"},[`${Gt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Gt}-disabled&`]:{color:Ut.colorTextDisabled,background:Ut.colorBgContainerDisabled,cursor:"not-allowed",[`${Gt}-multiple&`]:{background:Ut.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},rt=function(Ut,Gt){let se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:ue,borderHoverColor:Ae,outlineColor:Pe,antCls:qt}=Gt,ze=se?{[`${ue}-selector`]:{borderColor:Ae}}:{};return{[Ut]:{[`&:not(${ue}-disabled):not(${ue}-customize-input):not(${qt}-pagination-size-changer)`]:Object.assign(Object.assign({},ze),{[`${ue}-focused& ${ue}-selector`]:{borderColor:Ae,boxShadow:`0 0 0 ${Gt.controlOutlineWidth}px ${Pe}`,outline:0},[`&:hover ${ue}-selector`]:{borderColor:Ae}})}}},ht=Ut=>{const{componentCls:Gt}=Ut;return{[`${Gt}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},dt=Ut=>{const{componentCls:Gt,inputPaddingHorizontalBase:se,iconCls:ue}=Ut;return{[Gt]:Object.assign(Object.assign({},(0,Mt.Wf)(Ut)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Gt}-customize-input) ${Gt}-selector`]:Object.assign(Object.assign({},lt(Ut)),ht(Ut)),[`${Gt}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},Mt.vS),[`${Gt}-selection-placeholder`]:Object.assign(Object.assign({},Mt.vS),{flex:1,color:Ut.colorTextPlaceholder,pointerEvents:"none"}),[`${Gt}-arrow`]:Object.assign(Object.assign({},(0,Mt.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:se,height:Ut.fontSizeIcon,marginTop:-Ut.fontSizeIcon/2,color:Ut.colorTextQuaternary,fontSize:Ut.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[ue]:{verticalAlign:"top",transition:`transform ${Ut.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Gt}-suffix)`]:{pointerEvents:"auto"}},[`${Gt}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Gt}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:se,zIndex:1,display:"inline-block",width:Ut.fontSizeIcon,height:Ut.fontSizeIcon,marginTop:-Ut.fontSizeIcon/2,color:Ut.colorTextQuaternary,fontSize:Ut.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Ut.clearBg,cursor:"pointer",opacity:0,transition:`color ${Ut.motionDurationMid} ease, opacity ${Ut.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Ut.colorTextTertiary}},"&:hover":{[`${Gt}-clear`]:{opacity:1}}}),[`${Gt}-has-feedback`]:{[`${Gt}-clear`]:{insetInlineEnd:se+Ut.fontSize+Ut.paddingXS}}}},xt=Ut=>{const{componentCls:Gt}=Ut;return[{[Gt]:{[`&-borderless ${Gt}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Gt}-in-form-item`]:{width:"100%"}}},dt(Ut),tt(Ut),Ct(Ut),te(Ut),{[`${Gt}-rtl`]:{direction:"rtl"}},rt(Gt,(0,re.TS)(Ut,{borderHoverColor:Ut.colorPrimaryHover,outlineColor:Ut.controlOutline})),rt(`${Gt}-status-error`,(0,re.TS)(Ut,{borderHoverColor:Ut.colorErrorHover,outlineColor:Ut.colorErrorOutline}),!0),rt(`${Gt}-status-warning`,(0,re.TS)(Ut,{borderHoverColor:Ut.colorWarningHover,outlineColor:Ut.colorWarningOutline}),!0),(0,ce.c)(Ut,{borderElCls:`${Gt}-selector`,focusElCls:`${Gt}-focused`})]};var It=(0,Ie.Z)("Select",(Ut,Gt)=>{let{rootPrefixCls:se}=Gt;const ue=(0,re.TS)(Ut,{rootPrefixCls:se,inputPaddingHorizontalBase:Ut.paddingSM-1,multipleSelectItemHeight:Ut.multipleItemHeight});return[xt(ue)]},Ut=>{const{fontSize:Gt,lineHeight:se,controlHeight:ue,controlPaddingHorizontal:Ae,zIndexPopupBase:Pe,colorText:qt,fontWeightStrong:ze,controlItemBgActive:Wt,controlItemBgHover:Ge,colorBgContainer:_e,colorFillSecondary:Me,controlHeightLG:We,controlHeightSM:Re,colorBgContainerDisabled:ye,colorTextDisabled:ne}=Ut;return{zIndexPopup:Pe+50,optionSelectedColor:qt,optionSelectedFontWeight:ze,optionSelectedBg:Wt,optionActiveBg:Ge,optionPadding:`${(ue-Gt*se)/2}px ${Ae}px`,optionFontSize:Gt,optionLineHeight:se,optionHeight:ue,selectorBg:_e,clearBg:_e,singleItemHeightLG:We,multipleItemBg:Me,multipleItemBorderColor:"transparent",multipleItemHeight:Re,multipleItemHeightLG:ue,multipleSelectorBgDisabled:ye,multipleItemColorDisabled:ne,multipleItemBorderColorDisabled:"transparent"}})},58582:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return ce}});const Mt=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,Ie){return re||Mt(Ie)}},84443:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return Mt}});function Mt(ce,re){return re!==void 0?re:ce!==null}},66339:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return jt}});var Mt=Ft(40001),ce=Ft(19248),re=Ft(99267),Ie=Ft(84105),ee=Ft(58617),Vt=Ft(47472),Nt=Ft(59301);function jt(te){let{suffixIcon:Pt,clearIcon:oe,menuItemSelectedIcon:Kt,removeIcon:$t,loading:Ct,multiple:et,hasFeedback:tt,prefixCls:lt,showSuffixIcon:rt,feedbackIcon:ht,showArrow:dt,componentName:xt}=te;const It=oe!=null?oe:Nt.createElement(ce.Z,null),Ut=Ae=>Pt===null&&!tt&&!dt?null:Nt.createElement(Nt.Fragment,null,rt!==!1&&Ae,tt&&ht);let Gt=null;if(Pt!==void 0)Gt=Ut(Pt);else if(Ct)Gt=Ut(Nt.createElement(ee.Z,{spin:!0}));else{const Ae=`${lt}-suffix`;Gt=Pe=>{let{open:qt,showSearch:ze}=Pe;return Ut(qt&&ze?Nt.createElement(Vt.Z,{className:Ae}):Nt.createElement(Ie.Z,{className:Ae}))}}let se=null;Kt!==void 0?se=Kt:et?se=Nt.createElement(Mt.Z,null):se=null;let ue=null;return $t!==void 0?ue=$t:ue=Nt.createElement(re.Z,null),{clearIcon:It,suffixIcon:Gt,itemIcon:se,removeIcon:ue}}},61621:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return ft}});var Mt=Ft(92310),ce=Ft.n(Mt),re=Ft(59301),Ie=Ft(36355),ee=Ft(2738),Nt=pt=>{const{prefixCls:At,className:le,style:xe,size:ae,shape:ve}=pt,Ue=ce()({[`${At}-lg`]:ae==="large",[`${At}-sm`]:ae==="small"}),Te=ce()({[`${At}-circle`]:ve==="circle",[`${At}-square`]:ve==="square",[`${At}-round`]:ve==="round"}),ke=re.useMemo(()=>typeof ae=="number"?{width:ae,height:ae,lineHeight:`${ae}px`}:{},[ae]);return re.createElement("span",{className:ce()(At,Ue,Te,le),style:Object.assign(Object.assign({},ke),xe)})},jt=Ft(93083),te=Ft(83116),Pt=Ft(37613);const oe=new jt.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Kt=pt=>({height:pt,lineHeight:`${pt}px`}),$t=pt=>Object.assign({width:pt},Kt(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},Kt(pt)),tt=pt=>{const{skeletonAvatarCls:At,gradientFromColor:le,controlHeight:xe,controlHeightLG:ae,controlHeightSM:ve}=pt;return{[`${At}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:le},$t(xe)),[`${At}${At}-circle`]:{borderRadius:"50%"},[`${At}${At}-lg`]:Object.assign({},$t(ae)),[`${At}${At}-sm`]:Object.assign({},$t(ve))}},lt=pt=>{const{controlHeight:At,borderRadiusSM:le,skeletonInputCls:xe,controlHeightLG:ae,controlHeightSM:ve,gradientFromColor:Ue}=pt;return{[`${xe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ue,borderRadius:le},et(At)),[`${xe}-lg`]:Object.assign({},et(ae)),[`${xe}-sm`]:Object.assign({},et(ve))}},rt=pt=>Object.assign({width:pt},Kt(pt)),ht=pt=>{const{skeletonImageCls:At,imageSizeBase:le,gradientFromColor:xe,borderRadiusSM:ae}=pt;return{[`${At}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:xe,borderRadius:ae},rt(le*2)),{[`${At}-path`]:{fill:"#bfbfbf"},[`${At}-svg`]:Object.assign(Object.assign({},rt(le)),{maxWidth:le*4,maxHeight:le*4}),[`${At}-svg${At}-svg-circle`]:{borderRadius:"50%"}}),[`${At}${At}-circle`]:{borderRadius:"50%"}}},dt=(pt,At,le)=>{const{skeletonButtonCls:xe}=pt;return{[`${le}${xe}-circle`]:{width:At,minWidth:At,borderRadius:"50%"},[`${le}${xe}-round`]:{borderRadius:At}}},xt=pt=>Object.assign({width:pt*2,minWidth:pt*2},Kt(pt)),It=pt=>{const{borderRadiusSM:At,skeletonButtonCls:le,controlHeight:xe,controlHeightLG:ae,controlHeightSM:ve,gradientFromColor:Ue}=pt;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ue,borderRadius:At,width:xe*2,minWidth:xe*2},xt(xe))},dt(pt,xe,le)),{[`${le}-lg`]:Object.assign({},xt(ae))}),dt(pt,ae,`${le}-lg`)),{[`${le}-sm`]:Object.assign({},xt(ve))}),dt(pt,ve,`${le}-sm`))},Ut=pt=>{const{componentCls:At,skeletonAvatarCls:le,skeletonTitleCls:xe,skeletonParagraphCls:ae,skeletonButtonCls:ve,skeletonInputCls:Ue,skeletonImageCls:Te,controlHeight:ke,controlHeightLG:nn,controlHeightSM:Wn,gradientFromColor:an,padding:gn,marginSM:Bn,borderRadius:ti,titleHeight:Rn,blockRadius:Ri,paragraphLiHeight:dr,controlHeightXS:Ji,paragraphMarginTop:mr}=pt;return{[`${At}`]:{display:"table",width:"100%",[`${At}-header`]:{display:"table-cell",paddingInlineEnd:gn,verticalAlign:"top",[`${le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:an},$t(ke)),[`${le}-circle`]:{borderRadius:"50%"},[`${le}-lg`]:Object.assign({},$t(nn)),[`${le}-sm`]:Object.assign({},$t(Wn))},[`${At}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${xe}`]:{width:"100%",height:Rn,background:an,borderRadius:Ri,[`+ ${ae}`]:{marginBlockStart:Wn}},[`${ae}`]:{padding:0,"> li":{width:"100%",height:dr,listStyle:"none",background:an,borderRadius:Ri,"+ li":{marginBlockStart:Ji}}},[`${ae}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${At}-content`]:{[`${xe}, ${ae} > li`]:{borderRadius:ti}}},[`${At}-with-avatar ${At}-content`]:{[`${xe}`]:{marginBlockStart:Bn,[`+ ${ae}`]:{marginBlockStart:mr}}},[`${At}${At}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},It(pt)),tt(pt)),lt(pt)),ht(pt)),[`${At}${At}-block`]:{width:"100%",[`${ve}`]:{width:"100%"},[`${Ue}`]:{width:"100%"}},[`${At}${At}-active`]:{[`
|
|
|
${xe},
|
|
|
${ae} > li,
|
|
|
${le},
|
|
|
${ve},
|
|
|
${Ue},
|
|
|
${Te}
|
|
|
`]:Object.assign({},Ct(pt))}}};var Gt=(0,te.Z)("Skeleton",pt=>{const{componentCls:At}=pt,le=(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[Ut(le)]},pt=>{const{colorFillContent:At,colorFill:le}=pt,xe=At,ae=le;return{color:xe,colorGradientEnd:ae,gradientFromColor:xe,gradientToColor:ae,titleHeight:pt.controlHeight/2,blockRadius:pt.borderRadiusSM,paragraphMarginTop:pt.marginLG+pt.marginXXS,paragraphLiHeight:pt.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ue=pt=>{const{prefixCls:At,className:le,rootClassName:xe,active:ae,shape:ve="circle",size:Ue="default"}=pt,{getPrefixCls:Te}=re.useContext(Ie.E_),ke=Te("skeleton",At),[nn,Wn]=Gt(ke),an=(0,ee.Z)(pt,["prefixCls","className"]),gn=ce()(ke,`${ke}-element`,{[`${ke}-active`]:ae},le,xe,Wn);return nn(re.createElement("div",{className:gn},re.createElement(Nt,Object.assign({prefixCls:`${ke}-avatar`,shape:ve,size:Ue},an))))},Pe=pt=>{const{prefixCls:At,className:le,rootClassName:xe,active:ae,block:ve=!1,size:Ue="default"}=pt,{getPrefixCls:Te}=re.useContext(Ie.E_),ke=Te("skeleton",At),[nn,Wn]=Gt(ke),an=(0,ee.Z)(pt,["prefixCls"]),gn=ce()(ke,`${ke}-element`,{[`${ke}-active`]:ae,[`${ke}-block`]:ve},le,xe,Wn);return nn(re.createElement("div",{className:gn},re.createElement(Nt,Object.assign({prefixCls:`${ke}-button`,size:Ue},an))))};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 Wt=pt=>{const{prefixCls:At,className:le,rootClassName:xe,style:ae,active:ve}=pt,{getPrefixCls:Ue}=re.useContext(Ie.E_),Te=Ue("skeleton",At),[ke,nn]=Gt(Te),Wn=ce()(Te,`${Te}-element`,{[`${Te}-active`]:ve},le,xe,nn);return ke(re.createElement("div",{className:Wn},re.createElement("div",{className:ce()(`${Te}-image`,le),style:ae},re.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Te}-image-svg`},re.createElement("path",{d:qt,className:`${Te}-image-path`})))))},_e=pt=>{const{prefixCls:At,className:le,rootClassName:xe,active:ae,block:ve,size:Ue="default"}=pt,{getPrefixCls:Te}=re.useContext(Ie.E_),ke=Te("skeleton",At),[nn,Wn]=Gt(ke),an=(0,ee.Z)(pt,["prefixCls"]),gn=ce()(ke,`${ke}-element`,{[`${ke}-active`]:ae,[`${ke}-block`]:ve},le,xe,Wn);return nn(re.createElement("div",{className:gn},re.createElement(Nt,Object.assign({prefixCls:`${ke}-input`,size:Ue},an))))},Me=Ft(96663),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,ye=Ft(7657),ne=function(At,le){return re.createElement(ye.Z,(0,Me.Z)({},At,{ref:le,icon:Re}))},Ce=re.forwardRef(ne),bn=Ce,Ze=pt=>{const{prefixCls:At,className:le,rootClassName:xe,style:ae,active:ve,children:Ue}=pt,{getPrefixCls:Te}=re.useContext(Ie.E_),ke=Te("skeleton",At),[nn,Wn]=Gt(ke),an=ce()(ke,`${ke}-element`,{[`${ke}-active`]:ve},Wn,le,xe),gn=Ue!=null?Ue:re.createElement(bn,null);return nn(re.createElement("div",{className:an},re.createElement("div",{className:ce()(`${ke}-image`,le),style:ae},gn)))},Mn=Ft(19127),gi=pt=>{const At=Te=>{const{width:ke,rows:nn=2}=pt;if(Array.isArray(ke))return ke[Te];if(nn-1===Te)return ke},{prefixCls:le,className:xe,style:ae,rows:ve}=pt,Ue=(0,Mn.Z)(Array(ve)).map((Te,ke)=>re.createElement("li",{key:ke,style:{width:At(ke)}}));return re.createElement("ul",{className:ce()(le,xe),style:ae},Ue)},Bi=pt=>{let{prefixCls:At,className:le,width:xe,style:ae}=pt;return re.createElement("h3",{className:ce()(At,le),style:Object.assign({width:xe},ae)})};function en(pt){return pt&&typeof pt=="object"?pt:{}}function Li(pt,At){return pt&&!At?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Oi(pt,At){return!pt&&At?{width:"38%"}:pt&&At?{width:"50%"}:{}}function Lt(pt,At){const le={};return(!pt||!At)&&(le.width="61%"),!pt&&At?le.rows=3:le.rows=2,le}const Ot=pt=>{const{prefixCls:At,loading:le,className:xe,rootClassName:ae,style:ve,children:Ue,avatar:Te=!1,title:ke=!0,paragraph:nn=!0,active:Wn,round:an}=pt,{getPrefixCls:gn,direction:Bn,skeleton:ti}=re.useContext(Ie.E_),Rn=gn("skeleton",At),[Ri,dr]=Gt(Rn);if(le||!("loading"in pt)){const Ji=!!Te,mr=!!ke,Mr=!!nn;let ro;if(Ji){const Tr=Object.assign(Object.assign({prefixCls:`${Rn}-avatar`},Li(mr,Mr)),en(Te));ro=re.createElement("div",{className:`${Rn}-header`},re.createElement(Nt,Object.assign({},Tr)))}let Jr;if(mr||Mr){let Tr;if(mr){const oo=Object.assign(Object.assign({prefixCls:`${Rn}-title`},Oi(Ji,Mr)),en(ke));Tr=re.createElement(Bi,Object.assign({},oo))}let Wr;if(Mr){const oo=Object.assign(Object.assign({prefixCls:`${Rn}-paragraph`},Lt(Ji,mr)),en(nn));Wr=re.createElement(gi,Object.assign({},oo))}Jr=re.createElement("div",{className:`${Rn}-content`},Tr,Wr)}const $r=ce()(Rn,{[`${Rn}-with-avatar`]:Ji,[`${Rn}-active`]:Wn,[`${Rn}-rtl`]:Bn==="rtl",[`${Rn}-round`]:an},ti==null?void 0:ti.className,xe,ae,dr);return Ri(re.createElement("div",{className:$r,style:Object.assign(Object.assign({},ti==null?void 0:ti.style),ve)},ro,Jr))}return typeof Ue!="undefined"?Ue:null};Ot.Button=Pe,Ot.Avatar=ue,Ot.Input=_e,Ot.Image=Wt,Ot.Node=Ze;var mt=Ot,ft=mt},81327:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return lt}});var Mt=Ft(59301),ce=Ft(92310),re=Ft.n(ce),Ie=Ft(11592),ee=Ft(36355),Vt=Ft(33234);const Nt=Mt.createContext({latestIndex:0}),jt=Nt.Provider;var Pt=rt=>{let{className:ht,index:dt,children:xt,split:It,style:Ut}=rt;const{latestIndex:Gt}=Mt.useContext(Nt);return xt==null?null:Mt.createElement(Mt.Fragment,null,Mt.createElement("div",{className:ht,style:Ut},xt),dt<Gt&&It&&Mt.createElement("span",{className:`${ht}-split`},It))},oe=Ft(2856);function Kt(rt){return["small","middle","large"].includes(rt)}function $t(rt){return rt?typeof rt=="number"&&!Number.isNaN(rt):!1}var Ct=function(rt,ht){var dt={};for(var xt in rt)Object.prototype.hasOwnProperty.call(rt,xt)&&ht.indexOf(xt)<0&&(dt[xt]=rt[xt]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,xt=Object.getOwnPropertySymbols(rt);It<xt.length;It++)ht.indexOf(xt[It])<0&&Object.prototype.propertyIsEnumerable.call(rt,xt[It])&&(dt[xt[It]]=rt[xt[It]]);return dt};const tt=Mt.forwardRef((rt,ht)=>{var dt,xt;const{getPrefixCls:It,space:Ut,direction:Gt}=Mt.useContext(ee.E_),{size:se=(Ut==null?void 0:Ut.size)||"small",align:ue,className:Ae,rootClassName:Pe,children:qt,direction:ze="horizontal",prefixCls:Wt,split:Ge,style:_e,wrap:Me=!1,classNames:We,styles:Re}=rt,ye=Ct(rt,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[ne,Ce]=Array.isArray(se)?se:[se,se],bn=Kt(Ce),Ln=Kt(ne),Ze=$t(Ce),Mn=$t(ne),Vn=(0,Ie.Z)(qt,{keepEmpty:!0}),gi=ue===void 0&&ze==="horizontal"?"center":ue,Kn=It("space",Wt),[Bi,en]=(0,oe.Z)(Kn),Li=re()(Kn,Ut==null?void 0:Ut.className,en,`${Kn}-${ze}`,{[`${Kn}-rtl`]:Gt==="rtl",[`${Kn}-align-${gi}`]:gi,[`${Kn}-gap-row-${Ce}`]:bn,[`${Kn}-gap-col-${ne}`]:Ln},Ae,Pe),Oi=re()(`${Kn}-item`,(dt=We==null?void 0:We.item)!==null&&dt!==void 0?dt:(xt=Ut==null?void 0:Ut.classNames)===null||xt===void 0?void 0:xt.item);let Lt=0;const Ot=Vn.map((pt,At)=>{var le,xe;pt!=null&&(Lt=At);const ae=pt&&pt.key||`${Oi}-${At}`;return Mt.createElement(Pt,{className:Oi,key:ae,index:At,split:Ge,style:(le=Re==null?void 0:Re.item)!==null&&le!==void 0?le:(xe=Ut==null?void 0:Ut.styles)===null||xe===void 0?void 0:xe.item},pt)}),mt=Mt.useMemo(()=>({latestIndex:Lt}),[Lt]);if(Vn.length===0)return null;const ft={};return Me&&(ft.flexWrap="wrap"),!Ln&&Mn&&(ft.columnGap=ne),!bn&&Ze&&(ft.rowGap=Ce),Bi(Mt.createElement("div",Object.assign({ref:ht,className:Li,style:Object.assign(Object.assign(Object.assign({},ft),Ut==null?void 0:Ut.style),_e)},ye),Mt.createElement(jt,{value:mt},Ot)))});tt.Compact=Vt.ZP;var lt=tt},31797:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{default:function(){return Gt}});var Mt=Ft(59301),ce=Ft(56762),re=Ft(92343),Ie=Ft(92310),ee=Ft.n(Ie),Vt=Ft(36355),Nt=Ft(61621),te=se=>{const{value:ue,formatter:Ae,precision:Pe,decimalSeparator:qt,groupSeparator:ze="",prefixCls:Wt}=se;let Ge;if(typeof Ae=="function")Ge=Ae(ue);else{const _e=String(ue),Me=_e.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Me||_e==="-")Ge=_e;else{const We=Me[1];let Re=Me[2]||"0",ye=Me[4]||"";Re=Re.replace(/\B(?=(\d{3})+(?!\d))/g,ze),typeof Pe=="number"&&(ye=ye.padEnd(Pe,"0").slice(0,Pe>0?Pe:0)),ye&&(ye=`${qt}${ye}`),Ge=[Mt.createElement("span",{key:"int",className:`${Wt}-content-value-int`},We,Re),ye&&Mt.createElement("span",{key:"decimal",className:`${Wt}-content-value-decimal`},ye)]}}return Mt.createElement("span",{className:`${Wt}-content-value`},Ge)},Pt=Ft(17313),oe=Ft(83116),Kt=Ft(37613);const $t=se=>{const{componentCls:ue,marginXXS:Ae,padding:Pe,colorTextDescription:qt,titleFontSize:ze,colorTextHeading:Wt,contentFontSize:Ge,fontFamily:_e}=se;return{[`${ue}`]:Object.assign(Object.assign({},(0,Pt.Wf)(se)),{[`${ue}-title`]:{marginBottom:Ae,color:qt,fontSize:ze},[`${ue}-skeleton`]:{paddingTop:Pe},[`${ue}-content`]:{color:Wt,fontSize:Ge,fontFamily:_e,[`${ue}-content-value`]:{display:"inline-block",direction:"ltr"},[`${ue}-content-prefix, ${ue}-content-suffix`]:{display:"inline-block"},[`${ue}-content-prefix`]:{marginInlineEnd:Ae},[`${ue}-content-suffix`]:{marginInlineStart:Ae}}})}};var Ct=(0,oe.Z)("Statistic",se=>{const ue=(0,Kt.TS)(se,{});return[$t(ue)]},se=>{const{fontSizeHeading3:ue,fontSize:Ae}=se;return{titleFontSize:Ae,contentFontSize:ue}}),tt=se=>{const{prefixCls:ue,className:Ae,rootClassName:Pe,style:qt,valueStyle:ze,value:Wt=0,title:Ge,valueRender:_e,prefix:Me,suffix:We,loading:Re=!1,onMouseEnter:ye,onMouseLeave:ne,decimalSeparator:Ce=".",groupSeparator:bn=","}=se,{getPrefixCls:Ln,direction:Ze,statistic:Mn}=Mt.useContext(Vt.E_),Vn=Ln("statistic",ue),[gi,Kn]=Ct(Vn),Bi=Mt.createElement(te,Object.assign({decimalSeparator:Ce,groupSeparator:bn,prefixCls:Vn},se,{value:Wt})),en=ee()(Vn,{[`${Vn}-rtl`]:Ze==="rtl"},Mn==null?void 0:Mn.className,Ae,Pe,Kn);return gi(Mt.createElement("div",{className:en,style:Object.assign(Object.assign({},Mn==null?void 0:Mn.style),qt),onMouseEnter:ye,onMouseLeave:ne},Ge&&Mt.createElement("div",{className:`${Vn}-title`},Ge),Mt.createElement(Nt.Z,{paragraph:!1,loading:Re,className:`${Vn}-skeleton`},Mt.createElement("div",{style:ze,className:`${Vn}-content`},Me&&Mt.createElement("span",{className:`${Vn}-content-prefix`},Me),_e?_e(Bi):Bi,We&&Mt.createElement("span",{className:`${Vn}-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(se,ue){let Ae=se;const Pe=/\[[^\]]*]/g,qt=(ue.match(Pe)||[]).map(_e=>_e.slice(1,-1)),ze=ue.replace(Pe,"[]"),Wt=lt.reduce((_e,Me)=>{let[We,Re]=Me;if(_e.includes(We)){const ye=Math.floor(Ae/Re);return Ae-=ye*Re,_e.replace(new RegExp(`${We}+`,"g"),ne=>{const Ce=ne.length;return ye.toString().padStart(Ce,"0")})}return _e},ze);let Ge=0;return Wt.replace(Pe,()=>{const _e=qt[Ge];return Ge+=1,_e})}function ht(se,ue){const{format:Ae=""}=ue,Pe=new Date(se).getTime(),qt=Date.now(),ze=Math.max(Pe-qt,0);return rt(ze,Ae)}const dt=1e3/30;function xt(se){return new Date(se).getTime()}const It=se=>{const{value:ue,format:Ae="HH:mm:ss",onChange:Pe,onFinish:qt}=se,ze=(0,ce.Z)(),Wt=Mt.useRef(null),Ge=()=>{qt==null||qt(),Wt.current&&(clearInterval(Wt.current),Wt.current=null)},_e=()=>{const Re=xt(ue);Re>=Date.now()&&(Wt.current=setInterval(()=>{ze(),Pe==null||Pe(Re-Date.now()),Re<Date.now()&&Ge()},dt))};Mt.useEffect(()=>(_e(),()=>{Wt.current&&(clearInterval(Wt.current),Wt.current=null)}),[ue]);const Me=(Re,ye)=>ht(Re,Object.assign(Object.assign({},ye),{format:Ae})),We=Re=>(0,re.Tm)(Re,{title:void 0});return Mt.createElement(tt,Object.assign({},se,{valueRender:We,formatter:Me}))};var Ut=Mt.memo(It);tt.Countdown=Ut;var Gt=tt},15969:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{N:function(){return Mt}});const Mt=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(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return ze}});var Mt=Ft(58617),ce=Ft(92310),re=Ft.n(ce),Ie=Ft(96663),ee=Ft(90493),Vt=Ft(72071),Nt=Ft(6620),jt=Ft(59301),te=Ft(18929),Pt=Ft(10228),oe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Kt=jt.forwardRef(function(Wt,Ge){var _e,Me=Wt.prefixCls,We=Me===void 0?"rc-switch":Me,Re=Wt.className,ye=Wt.checked,ne=Wt.defaultChecked,Ce=Wt.disabled,bn=Wt.loadingIcon,Ln=Wt.checkedChildren,Ze=Wt.unCheckedChildren,Mn=Wt.onClick,Vn=Wt.onChange,gi=Wt.onKeyDown,Kn=(0,Nt.Z)(Wt,oe),Bi=(0,te.Z)(!1,{value:ye,defaultValue:ne}),en=(0,Vt.Z)(Bi,2),Li=en[0],Oi=en[1];function Lt(pt,At){var le=Li;return Ce||(le=pt,Oi(le),Vn==null||Vn(le,At)),le}function Ot(pt){pt.which===Pt.Z.LEFT?Lt(!1,pt):pt.which===Pt.Z.RIGHT&&Lt(!0,pt),gi==null||gi(pt)}function mt(pt){var At=Lt(!Li,pt);Mn==null||Mn(At,pt)}var ft=re()(We,Re,(_e={},(0,ee.Z)(_e,"".concat(We,"-checked"),Li),(0,ee.Z)(_e,"".concat(We,"-disabled"),Ce),_e));return jt.createElement("button",(0,Ie.Z)({},Kn,{type:"button",role:"switch","aria-checked":Li,disabled:Ce,className:ft,ref:Ge,onKeyDown:Ot,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")},Ze)))});Kt.displayName="Switch";var $t=Kt,Ct=Ft(14088),et=Ft(36355),tt=Ft(1684),lt=Ft(19716),rt=Ft(64993),ht=Ft(17313),dt=Ft(83116),xt=Ft(37613);const It=Wt=>{const{componentCls:Ge,trackHeightSM:_e,trackPadding:Me,trackMinWidthSM:We,innerMinMarginSM:Re,innerMaxMarginSM:ye,handleSizeSM:ne}=Wt,Ce=`${Ge}-inner`;return{[Ge]:{[`&${Ge}-small`]:{minWidth:We,height:_e,lineHeight:`${_e}px`,[`${Ge}-inner`]:{paddingInlineStart:ye,paddingInlineEnd:Re,[`${Ce}-checked`]:{marginInlineStart:`calc(-100% + ${ne+Me*2}px - ${ye*2}px)`,marginInlineEnd:`calc(100% - ${ne+Me*2}px + ${ye*2}px)`},[`${Ce}-unchecked`]:{marginTop:-_e,marginInlineStart:0,marginInlineEnd:0}},[`${Ge}-handle`]:{width:ne,height:ne},[`${Ge}-loading-icon`]:{top:(ne-Wt.switchLoadingIconSize)/2,fontSize:Wt.switchLoadingIconSize},[`&${Ge}-checked`]:{[`${Ge}-inner`]:{paddingInlineStart:Re,paddingInlineEnd:ye,[`${Ce}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ce}-unchecked`]:{marginInlineStart:`calc(100% - ${ne+Me*2}px + ${ye*2}px)`,marginInlineEnd:`calc(-100% + ${ne+Me*2}px - ${ye*2}px)`}},[`${Ge}-handle`]:{insetInlineStart:`calc(100% - ${ne+Me}px)`}},[`&:not(${Ge}-disabled):active`]:{[`&:not(${Ge}-checked) ${Ce}`]:{[`${Ce}-unchecked`]:{marginInlineStart:Wt.marginXXS/2,marginInlineEnd:-Wt.marginXXS/2}},[`&${Ge}-checked ${Ce}`]:{[`${Ce}-checked`]:{marginInlineStart:-Wt.marginXXS/2,marginInlineEnd:Wt.marginXXS/2}}}}}}},Ut=Wt=>{const{componentCls:Ge,handleSize:_e}=Wt;return{[Ge]:{[`${Ge}-loading-icon${Wt.iconCls}`]:{position:"relative",top:(_e-Wt.fontSize)/2,color:Wt.switchLoadingIconColor,verticalAlign:"top"},[`&${Ge}-checked ${Ge}-loading-icon`]:{color:Wt.switchColor}}}},Gt=Wt=>{const{componentCls:Ge,motion:_e,trackPadding:Me,handleBg:We,handleShadow:Re,handleSize:ye}=Wt,ne=`${Ge}-handle`;return{[Ge]:{[ne]:{position:"absolute",top:Me,insetInlineStart:Me,width:ye,height:ye,transition:`all ${Wt.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:We,borderRadius:ye/2,boxShadow:Re,transition:`all ${Wt.switchDuration} ease-in-out`,content:'""'}},[`&${Ge}-checked ${ne}`]:{insetInlineStart:`calc(100% - ${ye+Me}px)`},[`&:not(${Ge}-disabled):active`]:_e?{[`${ne}::before`]:{insetInlineEnd:Wt.switchHandleActiveInset,insetInlineStart:0},[`&${Ge}-checked ${ne}::before`]:{insetInlineEnd:0,insetInlineStart:Wt.switchHandleActiveInset}}:{}}}},se=Wt=>{const{componentCls:Ge,trackHeight:_e,trackPadding:Me,innerMinMargin:We,innerMaxMargin:Re,handleSize:ye}=Wt,ne=`${Ge}-inner`;return{[Ge]:{[ne]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Re,paddingInlineEnd:We,transition:`padding-inline-start ${Wt.switchDuration} ease-in-out, padding-inline-end ${Wt.switchDuration} ease-in-out`,[`${ne}-checked, ${ne}-unchecked`]:{display:"block",color:Wt.colorTextLightSolid,fontSize:Wt.fontSizeSM,transition:`margin-inline-start ${Wt.switchDuration} ease-in-out, margin-inline-end ${Wt.switchDuration} ease-in-out`,pointerEvents:"none"},[`${ne}-checked`]:{marginInlineStart:`calc(-100% + ${ye+Me*2}px - ${Re*2}px)`,marginInlineEnd:`calc(100% - ${ye+Me*2}px + ${Re*2}px)`},[`${ne}-unchecked`]:{marginTop:-_e,marginInlineStart:0,marginInlineEnd:0}},[`&${Ge}-checked ${ne}`]:{paddingInlineStart:We,paddingInlineEnd:Re,[`${ne}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ne}-unchecked`]:{marginInlineStart:`calc(100% - ${ye+Me*2}px + ${Re*2}px)`,marginInlineEnd:`calc(-100% + ${ye+Me*2}px - ${Re*2}px)`}},[`&:not(${Ge}-disabled):active`]:{[`&:not(${Ge}-checked) ${ne}`]:{[`${ne}-unchecked`]:{marginInlineStart:Me*2,marginInlineEnd:-Me*2}},[`&${Ge}-checked ${ne}`]:{[`${ne}-checked`]:{marginInlineStart:-Me*2,marginInlineEnd:Me*2}}}}}},ue=Wt=>{const{componentCls:Ge,trackHeight:_e,trackMinWidth:Me}=Wt;return{[Ge]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ht.Wf)(Wt)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Me,height:_e,lineHeight:`${_e}px`,verticalAlign:"middle",background:Wt.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Wt.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ge}-disabled)`]:{background:Wt.colorTextTertiary}}),(0,ht.Qy)(Wt)),{[`&${Ge}-checked`]:{background:Wt.switchColor,[`&:hover:not(${Ge}-disabled)`]:{background:Wt.colorPrimaryHover}},[`&${Ge}-loading, &${Ge}-disabled`]:{cursor:"not-allowed",opacity:Wt.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ge}-rtl`]:{direction:"rtl"}})}};var Ae=(0,dt.Z)("Switch",Wt=>{const Ge=(0,xt.TS)(Wt,{switchDuration:Wt.motionDurationMid,switchColor:Wt.colorPrimary,switchDisabledOpacity:Wt.opacityLoading,switchLoadingIconSize:Wt.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Wt.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ue(Ge),se(Ge),Gt(Ge),Ut(Ge),It(Ge)]},Wt=>{const{fontSize:Ge,lineHeight:_e,controlHeight:Me,colorWhite:We}=Wt,Re=Ge*_e,ye=Me/2,ne=2,Ce=Re-ne*2,bn=ye-ne*2;return{trackHeight:Re,trackHeightSM:ye,trackMinWidth:Ce*2+ne*4,trackMinWidthSM:bn*2+ne*2,trackPadding:ne,handleBg:We,handleSize:Ce,handleSizeSM:bn,handleShadow:`0 2px 4px 0 ${new rt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Ce/2,innerMaxMargin:Ce+ne+ne*2,innerMinMarginSM:bn/2,innerMaxMarginSM:bn+ne+ne*2}}),Pe=function(Wt,Ge){var _e={};for(var Me in Wt)Object.prototype.hasOwnProperty.call(Wt,Me)&&Ge.indexOf(Me)<0&&(_e[Me]=Wt[Me]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Me=Object.getOwnPropertySymbols(Wt);We<Me.length;We++)Ge.indexOf(Me[We])<0&&Object.prototype.propertyIsEnumerable.call(Wt,Me[We])&&(_e[Me[We]]=Wt[Me[We]]);return _e};const qt=jt.forwardRef((Wt,Ge)=>{const{prefixCls:_e,size:Me,disabled:We,loading:Re,className:ye,rootClassName:ne,style:Ce}=Wt,bn=Pe(Wt,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Ln,direction:Ze,switch:Mn}=jt.useContext(et.E_),Vn=jt.useContext(tt.Z),gi=(We!=null?We:Vn)||Re,Kn=Ln("switch",_e),Bi=jt.createElement("div",{className:`${Kn}-handle`},Re&&jt.createElement(Mt.Z,{className:`${Kn}-loading-icon`})),[en,Li]=Ae(Kn),Oi=(0,lt.Z)(Me),Lt=re()(Mn==null?void 0:Mn.className,{[`${Kn}-small`]:Oi==="small",[`${Kn}-loading`]:Re,[`${Kn}-rtl`]:Ze==="rtl"},ye,ne,Li),Ot=Object.assign(Object.assign({},Mn==null?void 0:Mn.style),Ce);return en(jt.createElement(Ct.Z,{component:"Switch"},jt.createElement($t,Object.assign({},bn,{prefixCls:Kn,className:Lt,style:Ot,disabled:gi,ref:Ge,loadingIcon:Bi}))))});qt.__ANT_SWITCH=!0;var ze=qt},1710:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{default:function(){return ri}});var Mt={},ce="rc-table-internal-hook",re=Ft(72071),Ie=Ft(6089),ee=Ft(34280),Vt=Ft(13697),Nt=Ft(59301),jt=Ft(4676);function te(pe){var me=Nt.createContext(void 0),Xe=function(vn){var rn=vn.value,kn=vn.children,jn=Nt.useRef(rn);jn.current=rn;var Yn=Nt.useState(function(){return{getValue:function(){return jn.current},listeners:new Set}}),Qe=(0,re.Z)(Yn,1),un=Qe[0];return(0,ee.Z)(function(){(0,jt.unstable_batchedUpdates)(function(){un.listeners.forEach(function(mn){mn(rn)})})},[rn]),Nt.createElement(me.Provider,{value:un},kn)};return{Context:me,Provider:Xe,defaultValue:pe}}function Pt(pe,me){var Xe=(0,Ie.Z)(typeof me=="function"?me:function(mn){if(me===void 0)return mn;if(!Array.isArray(me))return mn[me];var Hn={};return me.forEach(function(Zn){Hn[Zn]=mn[Zn]}),Hn}),Je=Nt.useContext(pe==null?void 0:pe.Context),vn=Je||{},rn=vn.listeners,kn=vn.getValue,jn=Nt.useRef();jn.current=Xe(Je?kn():pe==null?void 0:pe.defaultValue);var Yn=Nt.useState({}),Qe=(0,re.Z)(Yn,2),un=Qe[1];return(0,ee.Z)(function(){if(!Je)return;function mn(Hn){var Zn=Xe(Hn);(0,Vt.Z)(jn.current,Zn,!0)||un({})}return rn.add(mn),function(){rn.delete(mn)}},[Je]),jn.current}var oe=Ft(96663),Kt=Ft(8654);function $t(){var pe=Nt.createContext(null);function me(){return Nt.useContext(pe)}function Xe(vn,rn){var kn=(0,Kt.Yr)(vn),jn=function(Qe,un){var mn=kn?{ref:un}:{},Hn=Nt.useRef(0),Zn=Nt.useRef(Qe),ii=me();return ii!==null?Nt.createElement(vn,(0,oe.Z)({},Qe,mn)):((!rn||rn(Zn.current,Qe))&&(Hn.current+=1),Zn.current=Qe,Nt.createElement(pe.Provider,{value:Hn.current},Nt.createElement(vn,(0,oe.Z)({},Qe,mn))))};return kn?Nt.forwardRef(jn):jn}function Je(vn,rn){var kn=(0,Kt.Yr)(vn),jn=function(Qe,un){var mn=kn?{ref:un}:{};return me(),Nt.createElement(vn,(0,oe.Z)({},Qe,mn))};return kn?Nt.memo(Nt.forwardRef(jn),rn):Nt.memo(jn,rn)}return{makeImmutable:Xe,responseImmutable:Je,useImmutableMark:me}}var Ct=$t(),et=Ct.makeImmutable,tt=Ct.responseImmutable,lt=Ct.useImmutableMark,rt=$t(),ht=rt.makeImmutable,dt=rt.responseImmutable,xt=rt.useImmutableMark,It=te(),Ut=It;function Gt(pe,me){var Xe=Nt.useRef(0);Xe.current+=1;var Je=Nt.useRef(pe),vn=[];Object.keys(pe||{}).map(function(kn){var jn;(pe==null?void 0:pe[kn])!==((jn=Je.current)===null||jn===void 0?void 0:jn[kn])&&vn.push(kn)}),Je.current=pe;var rn=Nt.useRef([]);return vn.length&&(rn.current=vn),Nt.useDebugValue(Xe.current),Nt.useDebugValue(rn.current.join(", ")),me&&console.log("".concat(me,":"),Xe.current,rn.current),Xe.current}var se=null,ue=Nt.memo(function(){var pe=Gt();return Nt.createElement("h1",null,"Render Times: ",pe)});ue.displayName="RenderBlock";var Ae=Ft(20135),Pe=Ft(44127),qt=Ft(90493),ze=Ft(92310),Wt=Ft.n(ze),Ge=Ft(80547),_e=Ft(97938),Me=Ft(48736),We=Nt.createContext({renderWithProps:!1}),Re=We,ye="RC_TABLE_KEY";function ne(pe){return pe==null?[]:Array.isArray(pe)?pe:[pe]}function Ce(pe){var me=[],Xe={};return pe.forEach(function(Je){for(var vn=Je||{},rn=vn.key,kn=vn.dataIndex,jn=rn||ne(kn).join("-")||ye;Xe[jn];)jn="".concat(jn,"_next");Xe[jn]=!0,me.push(jn)}),me}function bn(pe){return pe!=null}function Ln(pe){return pe&&(0,Ae.Z)(pe)==="object"&&!Array.isArray(pe)&&!Nt.isValidElement(pe)}function Ze(pe,me,Xe,Je,vn,rn){var kn=Nt.useContext(Re),jn=xt(),Yn=(0,Ge.Z)(function(){if(bn(Je))return[Je];var Qe=me==null||me===""?[]:Array.isArray(me)?me:[me],un=(0,_e.Z)(pe,Qe),mn=un,Hn=void 0;if(vn){var Zn=vn(un,pe,Xe);Ln(Zn)?(mn=Zn.children,Hn=Zn.props,kn.renderWithProps=!0):mn=Zn}return[mn,Hn]},[jn,pe,Je,me,vn,Xe],function(Qe,un){if(rn){var mn=(0,re.Z)(Qe,2),Hn=mn[1],Zn=(0,re.Z)(un,2),ii=Zn[1];return rn(ii,Hn)}return kn.renderWithProps?!0:!(0,Vt.Z)(Qe,un,!0)});return Yn}function Mn(pe,me,Xe,Je){var vn=pe+me-1;return pe<=Je&&vn>=Xe}function Vn(pe,me){return Pt(Ut,function(Xe){var Je=Mn(pe,me||1,Xe.hoverStartRow,Xe.hoverEndRow);return[Je,Xe.onHover]})}var gi=function(me){var Xe=me.ellipsis,Je=me.rowType,vn=me.children,rn,kn=Xe===!0?{showTitle:!0}:Xe;return kn&&(kn.showTitle||Je==="header")&&(typeof vn=="string"||typeof vn=="number"?rn=vn.toString():Nt.isValidElement(vn)&&typeof vn.props.children=="string"&&(rn=vn.props.children)),rn};function Kn(pe){var me,Xe,Je,vn,rn,kn,jn,Yn,Qe=pe.component,un=pe.children,mn=pe.ellipsis,Hn=pe.scope,Zn=pe.prefixCls,ii=pe.className,Fi=pe.align,li=pe.record,Xi=pe.render,Zi=pe.dataIndex,Ar=pe.renderIndex,br=pe.shouldCellUpdate,eo=pe.index,Ii=pe.rowType,Xn=pe.colSpan,Co=pe.rowSpan,Br=pe.fixLeft,sr=pe.fixRight,ar=pe.firstFixLeft,qi=pe.lastFixLeft,pr=pe.firstFixRight,Vr=pe.lastFixRight,co=pe.appendNode,fo=pe.additionalProps,Rr=fo===void 0?{}:fo,jo=pe.isSticky,us="".concat(Zn,"-cell"),qo=Pt(Ut,["supportSticky","allColumnsFixedLeft"]),ns=qo.supportSticky,xo=qo.allColumnsFixedLeft,wa=Ze(li,Zi,Ar,un,Xi,br),$o=(0,re.Z)(wa,2),rs=$o[0],Ps=$o[1],qs={},Ua=typeof Br=="number"&&ns,Xs=typeof sr=="number"&&ns;Ua&&(qs.position="sticky",qs.left=Br),Xs&&(qs.position="sticky",qs.right=sr);var zo=(me=(Xe=(Je=Ps==null?void 0:Ps.colSpan)!==null&&Je!==void 0?Je:Rr.colSpan)!==null&&Xe!==void 0?Xe:Xn)!==null&&me!==void 0?me:1,Ko=(vn=(rn=(kn=Ps==null?void 0:Ps.rowSpan)!==null&&kn!==void 0?kn:Rr.rowSpan)!==null&&rn!==void 0?rn:Co)!==null&&vn!==void 0?vn:1,fs=Vn(eo,Ko),es=(0,re.Z)(fs,2),Ds=es[0],no=es[1],Vo=function(Ao){var Ra;li&&no(eo,eo+Ko-1),Rr==null||(Ra=Rr.onMouseEnter)===null||Ra===void 0||Ra.call(Rr,Ao)},aa=function(Ao){var Ra;li&&no(-1,-1),Rr==null||(Ra=Rr.onMouseLeave)===null||Ra===void 0||Ra.call(Rr,Ao)};if(zo===0||Ko===0)return null;var Rs=(jn=Rr.title)!==null&&jn!==void 0?jn:gi({rowType:Ii,ellipsis:mn,children:rs}),Ql=Wt()(us,ii,(Yn={},(0,qt.Z)(Yn,"".concat(us,"-fix-left"),Ua&&ns),(0,qt.Z)(Yn,"".concat(us,"-fix-left-first"),ar&&ns),(0,qt.Z)(Yn,"".concat(us,"-fix-left-last"),qi&&ns),(0,qt.Z)(Yn,"".concat(us,"-fix-left-all"),qi&&xo&&ns),(0,qt.Z)(Yn,"".concat(us,"-fix-right"),Xs&&ns),(0,qt.Z)(Yn,"".concat(us,"-fix-right-first"),pr&&ns),(0,qt.Z)(Yn,"".concat(us,"-fix-right-last"),Vr&&ns),(0,qt.Z)(Yn,"".concat(us,"-ellipsis"),mn),(0,qt.Z)(Yn,"".concat(us,"-with-append"),co),(0,qt.Z)(Yn,"".concat(us,"-fix-sticky"),(Ua||Xs)&&jo&&ns),(0,qt.Z)(Yn,"".concat(us,"-row-hover"),!Ps&&Ds),Yn),Rr.className,Ps==null?void 0:Ps.className),Ll={};Fi&&(Ll.textAlign=Fi);var Fs=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},qs),Rr.style),Ll),Ps==null?void 0:Ps.style),ca=rs;return(0,Ae.Z)(ca)==="object"&&!Array.isArray(ca)&&!Nt.isValidElement(ca)&&(ca=null),mn&&(qi||pr)&&(ca=Nt.createElement("span",{className:"".concat(us,"-content")},ca)),Nt.createElement(Qe,(0,oe.Z)({},Ps,Rr,{className:Ql,style:Fs,title:Rs,scope:Hn,onMouseEnter:Vo,onMouseLeave:aa,colSpan:zo!==1?zo:null,rowSpan:Ko!==1?Ko:null}),co,ca)}var Bi=Nt.memo(Kn);function en(pe,me,Xe,Je,vn,rn){var kn=Xe[pe]||{},jn=Xe[me]||{},Yn,Qe;kn.fixed==="left"?Yn=Je.left[vn==="rtl"?me:pe]:jn.fixed==="right"&&(Qe=Je.right[vn==="rtl"?pe:me]);var un=!1,mn=!1,Hn=!1,Zn=!1,ii=Xe[me+1],Fi=Xe[pe-1],li=!(rn!=null&&rn.children);if(vn==="rtl"){if(Yn!==void 0){var Xi=Fi&&Fi.fixed==="left";Zn=!Xi&&li}else if(Qe!==void 0){var Zi=ii&&ii.fixed==="right";Hn=!Zi&&li}}else if(Yn!==void 0){var Ar=ii&&ii.fixed==="left";un=!Ar&&li}else if(Qe!==void 0){var br=Fi&&Fi.fixed==="right";mn=!br&&li}return{fixLeft:Yn,fixRight:Qe,lastFixLeft:un,firstFixRight:mn,lastFixRight:Hn,firstFixLeft:Zn,isSticky:Je.isSticky}}var Li=Nt.createContext({}),Oi=Li;function Lt(pe){var me=pe.className,Xe=pe.index,Je=pe.children,vn=pe.colSpan,rn=vn===void 0?1:vn,kn=pe.rowSpan,jn=pe.align,Yn=Pt(Ut,["prefixCls","direction"]),Qe=Yn.prefixCls,un=Yn.direction,mn=Nt.useContext(Oi),Hn=mn.scrollColumnIndex,Zn=mn.stickyOffsets,ii=mn.flattenColumns,Fi=mn.columns,li=Xe+rn-1,Xi=li+1===Hn?rn+1:rn,Zi=en(Xe,Xe+Xi-1,ii,Zn,un,Fi==null?void 0:Fi[Xe]);return Nt.createElement(Bi,(0,oe.Z)({className:me,index:Xe,component:"td",prefixCls:Qe,record:null,dataIndex:null,align:jn,colSpan:Xi,rowSpan:kn,render:function(){return Je}},Zi))}var Ot=Ft(6620),mt=["children"];function ft(pe){var me=pe.children,Xe=(0,Ot.Z)(pe,mt);return Nt.createElement("tr",Xe,me)}function pt(pe){var me=pe.children;return me}pt.Row=ft,pt.Cell=Lt;var At=pt;function le(pe){var me=pe.children,Xe=pe.stickyOffsets,Je=pe.flattenColumns,vn=pe.columns,rn=Pt(Ut,"prefixCls"),kn=Je.length-1,jn=Je[kn],Yn=Nt.useMemo(function(){return{stickyOffsets:Xe,flattenColumns:Je,scrollColumnIndex:jn!=null&&jn.scrollbar?kn:null,columns:vn}},[jn,Je,kn,Xe,vn]);return Nt.createElement(Oi.Provider,{value:Yn},Nt.createElement("tfoot",{className:"".concat(rn,"-summary")},me))}var xe=dt(le),ae=At,ve=Ft(70425),Ue=Ft(29301),Te=Ft(29194),ke=Ft(24514),nn=Ft(75152),Wn=Ft(26112);function an(pe,me,Xe,Je,vn,rn,kn){pe.push({record:me,indent:Xe,index:kn});var jn=rn(me),Yn=vn==null?void 0:vn.has(jn);if(me&&Array.isArray(me[Je])&&Yn)for(var Qe=0;Qe<me[Je].length;Qe+=1)an(pe,me[Je][Qe],Xe+1,Je,vn,rn,Qe)}function gn(pe,me,Xe,Je){var vn=Nt.useMemo(function(){if(Xe!=null&&Xe.size){for(var rn=[],kn=0;kn<(pe==null?void 0:pe.length);kn+=1){var jn=pe[kn];an(rn,jn,0,me,Xe,Je,kn)}return rn}return pe==null?void 0:pe.map(function(Yn,Qe){return{record:Yn,indent:0,index:Qe}})},[pe,me,Xe,Je]);return vn}function Bn(pe){var me=pe.prefixCls,Xe=pe.children,Je=pe.component,vn=pe.cellComponent,rn=pe.className,kn=pe.expanded,jn=pe.colSpan,Yn=pe.isEmpty,Qe=Pt(Ut,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),un=Qe.scrollbarSize,mn=Qe.fixHeader,Hn=Qe.fixColumn,Zn=Qe.componentWidth,ii=Qe.horizonScroll,Fi=Xe;return(Yn?ii&&Zn:Hn)&&(Fi=Nt.createElement("div",{style:{width:Zn-(mn?un:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(me,"-expanded-row-fixed")},Fi)),Nt.createElement(Je,{className:rn,style:{display:kn?null:"none"}},Nt.createElement(Bi,{component:vn,prefixCls:me,colSpan:jn},Fi))}var ti=Bn;function Rn(pe,me,Xe,Je){var vn=Pt(Ut,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),rn=vn.flattenColumns,kn=vn.expandableType,jn=vn.expandedKeys,Yn=vn.childrenColumnName,Qe=vn.onTriggerExpand,un=vn.rowExpandable,mn=vn.onRow,Hn=vn.expandRowByClick,Zn=vn.rowClassName,ii=kn==="nest",Fi=kn==="row"&&(!un||un(pe)),li=Fi||ii,Xi=jn&&jn.has(me),Zi=Yn&&pe&&pe[Yn],Ar=(0,ve.useEvent)(Qe),br=mn==null?void 0:mn(pe,Xe),eo=br==null?void 0:br.onClick,Ii=function(sr){Hn&&li&&Qe(pe,sr);for(var ar=arguments.length,qi=new Array(ar>1?ar-1:0),pr=1;pr<ar;pr++)qi[pr-1]=arguments[pr];eo==null||eo.apply(void 0,[sr].concat(qi))},Xn;typeof Zn=="string"?Xn=Zn:typeof Zn=="function"&&(Xn=Zn(pe,Xe,Je));var Co=Ce(rn);return(0,Pe.Z)((0,Pe.Z)({},vn),{},{columnsKey:Co,nestExpandable:ii,expanded:Xi,hasNestChildren:Zi,record:pe,onTriggerExpand:Ar,rowSupportExpand:Fi,expandable:li,rowProps:(0,Pe.Z)((0,Pe.Z)({},br),{},{className:Wt()(Xn,br==null?void 0:br.className),onClick:Ii})})}function Ri(pe,me,Xe,Je,vn){var rn=pe.record,kn=pe.prefixCls,jn=pe.columnsKey,Yn=pe.fixedInfoList,Qe=pe.expandIconColumnIndex,un=pe.nestExpandable,mn=pe.indentSize,Hn=pe.expandIcon,Zn=pe.expanded,ii=pe.hasNestChildren,Fi=pe.onTriggerExpand,li=jn[Xe],Xi=Yn[Xe],Zi;Xe===(Qe||0)&&un&&(Zi=Nt.createElement(Nt.Fragment,null,Nt.createElement("span",{style:{paddingLeft:"".concat(mn*Je,"px")},className:"".concat(kn,"-row-indent indent-level-").concat(Je)}),Hn({prefixCls:kn,expanded:Zn,expandable:ii,record:rn,onExpand:Fi})));var Ar;return me.onCell&&(Ar=me.onCell(rn,vn)),{key:li,fixedInfo:Xi,appendCellNode:Zi,additionalCellProps:Ar||{}}}function dr(pe){var me=pe.className,Xe=pe.style,Je=pe.record,vn=pe.index,rn=pe.renderIndex,kn=pe.rowKey,jn=pe.indent,Yn=jn===void 0?0:jn,Qe=pe.rowComponent,un=pe.cellComponent,mn=pe.scopeCellComponent,Hn=Rn(Je,kn,vn,Yn),Zn=Hn.prefixCls,ii=Hn.flattenColumns,Fi=Hn.expandedRowClassName,li=Hn.expandedRowRender,Xi=Hn.rowProps,Zi=Hn.expanded,Ar=Hn.rowSupportExpand,br=Nt.useState(!1),eo=(0,re.Z)(br,2),Ii=eo[0],Xn=eo[1];Nt.useEffect(function(){Zi&&Xn(!0)},[Zi]);var Co=Nt.createElement(Qe,(0,oe.Z)({},Xi,{"data-row-key":kn,className:Wt()(me,"".concat(Zn,"-row"),"".concat(Zn,"-row-level-").concat(Yn),Xi==null?void 0:Xi.className),style:(0,Pe.Z)((0,Pe.Z)({},Xe),Xi==null?void 0:Xi.style)}),ii.map(function(qi,pr){var Vr=qi.render,co=qi.dataIndex,fo=qi.className,Rr=Ri(Hn,qi,pr,Yn,vn),jo=Rr.key,us=Rr.fixedInfo,qo=Rr.appendCellNode,ns=Rr.additionalCellProps;return Nt.createElement(Bi,(0,oe.Z)({className:fo,ellipsis:qi.ellipsis,align:qi.align,scope:qi.rowScope,component:qi.rowScope?mn:un,prefixCls:Zn,key:jo,record:Je,index:vn,renderIndex:rn,dataIndex:co,render:Vr,shouldCellUpdate:qi.shouldCellUpdate},us,{appendNode:qo,additionalProps:ns}))})),Br;if(Ar&&(Ii||Zi)){var sr=li(Je,vn,Yn+1,Zi),ar=Fi&&Fi(Je,vn,Yn);Br=Nt.createElement(ti,{expanded:Zi,className:Wt()("".concat(Zn,"-expanded-row"),"".concat(Zn,"-expanded-row-level-").concat(Yn+1),ar),prefixCls:Zn,component:Qe,cellComponent:un,colSpan:ii.length,isEmpty:!1},sr)}return Nt.createElement(Nt.Fragment,null,Co,Br)}dr.displayName="BodyRow";var Ji=dt(dr);function mr(pe){var me=pe.columnKey,Xe=pe.onColumnResize,Je=Nt.useRef();return Nt.useEffect(function(){Je.current&&Xe(me,Je.current.offsetWidth)},[]),Nt.createElement(Ue.Z,{data:me},Nt.createElement("td",{ref:Je,style:{padding:0,border:0,height:0}},Nt.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Mr(pe){var me=pe.prefixCls,Xe=pe.columnsKey,Je=pe.onColumnResize;return Nt.createElement("tr",{"aria-hidden":"true",className:"".concat(me,"-measure-row"),style:{height:0,fontSize:0}},Nt.createElement(Ue.Z.Collection,{onBatchResize:function(rn){rn.forEach(function(kn){var jn=kn.data,Yn=kn.size;Je(jn,Yn.offsetWidth)})}},Xe.map(function(vn){return Nt.createElement(mr,{key:vn,columnKey:vn,onColumnResize:Je})})))}function ro(pe){var me=pe.data,Xe=pe.measureColumnWidth,Je=Pt(Ut,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),vn=Je.prefixCls,rn=Je.getComponent,kn=Je.onColumnResize,jn=Je.flattenColumns,Yn=Je.getRowKey,Qe=Je.expandedKeys,un=Je.childrenColumnName,mn=Je.emptyNode,Hn=gn(me,un,Qe,Yn),Zn=Nt.useRef({renderWithProps:!1}),ii=rn(["body","wrapper"],"tbody"),Fi=rn(["body","row"],"tr"),li=rn(["body","cell"],"td"),Xi=rn(["body","cell"],"th"),Zi;me.length?Zi=Hn.map(function(br,eo){var Ii=br.record,Xn=br.indent,Co=br.index,Br=Yn(Ii,eo);return Nt.createElement(Ji,{key:Br,rowKey:Br,record:Ii,index:eo,renderIndex:Co,rowComponent:Fi,cellComponent:li,scopeCellComponent:Xi,getRowKey:Yn,indent:Xn})}):Zi=Nt.createElement(ti,{expanded:!0,className:"".concat(vn,"-placeholder"),prefixCls:vn,component:Fi,cellComponent:li,colSpan:jn.length,isEmpty:!0},mn);var Ar=Ce(jn);return Nt.createElement(Re.Provider,{value:Zn.current},Nt.createElement(ii,{className:"".concat(vn,"-tbody")},Xe&&Nt.createElement(Mr,{prefixCls:vn,columnsKey:Ar,onColumnResize:kn}),Zi))}ro.displayName="Body";var Jr=dt(ro),$r=["expandable"],Tr="RC_TABLE_INTERNAL_COL_DEFINE";function Wr(pe){var me=pe.expandable,Xe=(0,Ot.Z)(pe,$r),Je;return"expandable"in pe?Je=(0,Pe.Z)((0,Pe.Z)({},Xe),me):Je=Xe,Je.showExpandColumn===!1&&(Je.expandIconColumnIndex=-1),Je}var oo=["columnType"];function Uo(pe){for(var me=pe.colWidths,Xe=pe.columns,Je=pe.columCount,vn=[],rn=Je||Xe.length,kn=!1,jn=rn-1;jn>=0;jn-=1){var Yn=me[jn],Qe=Xe&&Xe[jn],un=Qe&&Qe[Tr];if(Yn||un||kn){var mn=un||{},Hn=mn.columnType,Zn=(0,Ot.Z)(mn,oo);vn.unshift(Nt.createElement("col",(0,oe.Z)({key:jn,style:{width:Yn}},Zn))),kn=!0}}return Nt.createElement("colgroup",null,vn)}var is=Uo,uo=Ft(19127),Ss=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function To(pe,me){return(0,Nt.useMemo)(function(){for(var Xe=[],Je=0;Je<me;Je+=1){var vn=pe[Je];if(vn!==void 0)Xe[Je]=vn;else return null}return Xe},[pe.join("_"),me])}var Xt=Nt.forwardRef(function(pe,me){var Xe=pe.className,Je=pe.noData,vn=pe.columns,rn=pe.flattenColumns,kn=pe.colWidths,jn=pe.columCount,Yn=pe.stickyOffsets,Qe=pe.direction,un=pe.fixHeader,mn=pe.stickyTopOffset,Hn=pe.stickyBottomOffset,Zn=pe.stickyClassName,ii=pe.onScroll,Fi=pe.maxContentScroll,li=pe.children,Xi=(0,Ot.Z)(pe,Ss),Zi=Pt(Ut,["prefixCls","scrollbarSize","isSticky"]),Ar=Zi.prefixCls,br=Zi.scrollbarSize,eo=Zi.isSticky,Ii=eo&&!un?0:br,Xn=Nt.useRef(null),Co=Nt.useCallback(function(fo){(0,Kt.mH)(me,fo),(0,Kt.mH)(Xn,fo)},[]);Nt.useEffect(function(){var fo;function Rr(jo){var us=jo,qo=us.currentTarget,ns=us.deltaX;ns&&(ii({currentTarget:qo,scrollLeft:qo.scrollLeft+ns}),jo.preventDefault())}return(fo=Xn.current)===null||fo===void 0||fo.addEventListener("wheel",Rr),function(){var jo;(jo=Xn.current)===null||jo===void 0||jo.removeEventListener("wheel",Rr)}},[]);var Br=Nt.useMemo(function(){return rn.every(function(fo){return fo.width})},[rn]),sr=rn[rn.length-1],ar={fixed:sr?sr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Ar,"-cell-scrollbar")}}},qi=(0,Nt.useMemo)(function(){return Ii?[].concat((0,uo.Z)(vn),[ar]):vn},[Ii,vn]),pr=(0,Nt.useMemo)(function(){return Ii?[].concat((0,uo.Z)(rn),[ar]):rn},[Ii,rn]),Vr=(0,Nt.useMemo)(function(){var fo=Yn.right,Rr=Yn.left;return(0,Pe.Z)((0,Pe.Z)({},Yn),{},{left:Qe==="rtl"?[].concat((0,uo.Z)(Rr.map(function(jo){return jo+Ii})),[0]):Rr,right:Qe==="rtl"?fo:[].concat((0,uo.Z)(fo.map(function(jo){return jo+Ii})),[0]),isSticky:eo})},[Ii,Yn,eo]),co=To(kn,jn);return Nt.createElement("div",{style:(0,Pe.Z)({overflow:"hidden"},eo?{top:mn,bottom:Hn}:{}),ref:Co,className:Wt()(Xe,(0,qt.Z)({},Zn,!!Zn))},Nt.createElement("table",{style:{tableLayout:"fixed",visibility:Je||co?null:"hidden"}},(!Je||!Fi||Br)&&Nt.createElement(is,{colWidths:co?[].concat((0,uo.Z)(co),[Ii]):[],columCount:jn+1,columns:pr}),li((0,Pe.Z)((0,Pe.Z)({},Xi),{},{stickyOffsets:Vr,columns:qi,flattenColumns:pr}))))});Xt.displayName="FixedHolder";var ei=Nt.memo(Xt);function Cs(pe){var me=pe.cells,Xe=pe.stickyOffsets,Je=pe.flattenColumns,vn=pe.rowComponent,rn=pe.cellComponent,kn=pe.tdCellComponent,jn=pe.onHeaderRow,Yn=pe.index,Qe=Pt(Ut,["prefixCls","direction"]),un=Qe.prefixCls,mn=Qe.direction,Hn;jn&&(Hn=jn(me.map(function(ii){return ii.column}),Yn));var Zn=Ce(me.map(function(ii){return ii.column}));return Nt.createElement(vn,Hn,me.map(function(ii,Fi){var li=ii.column,Xi=en(ii.colStart,ii.colEnd,Je,Xe,mn,li),Zi;return li&&li.onHeaderCell&&(Zi=ii.column.onHeaderCell(li)),Nt.createElement(Bi,(0,oe.Z)({},ii,{scope:li.title?ii.colSpan>1?"colgroup":"col":null,ellipsis:li.ellipsis,align:li.align,component:li.title?rn:kn,prefixCls:un,key:Zn[Fi]},Xi,{additionalProps:Zi,rowType:"header"}))}))}Cs.displayName="HeaderRow";var Os=Cs;function ma(pe){var me=[];function Xe(kn,jn){var Yn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;me[Yn]=me[Yn]||[];var Qe=jn,un=kn.filter(Boolean).map(function(mn){var Hn={key:mn.key,className:mn.className||"",children:mn.title,column:mn,colStart:Qe},Zn=1,ii=mn.children;return ii&&ii.length>0&&(Zn=Xe(ii,Qe,Yn+1).reduce(function(Fi,li){return Fi+li},0),Hn.hasSubColumns=!0),"colSpan"in mn&&(Zn=mn.colSpan),"rowSpan"in mn&&(Hn.rowSpan=mn.rowSpan),Hn.colSpan=Zn,Hn.colEnd=Hn.colStart+Zn-1,me[Yn].push(Hn),Qe+=Zn,Zn});return un}Xe(pe,0);for(var Je=me.length,vn=function(jn){me[jn].forEach(function(Yn){!("rowSpan"in Yn)&&!Yn.hasSubColumns&&(Yn.rowSpan=Je-jn)})},rn=0;rn<Je;rn+=1)vn(rn);return me}function va(pe){var me=pe.stickyOffsets,Xe=pe.columns,Je=pe.flattenColumns,vn=pe.onHeaderRow,rn=Pt(Ut,["prefixCls","getComponent"]),kn=rn.prefixCls,jn=rn.getComponent,Yn=Nt.useMemo(function(){return ma(Xe)},[Xe]),Qe=jn(["header","wrapper"],"thead"),un=jn(["header","row"],"tr"),mn=jn(["header","cell"],"th"),Hn=jn(["header","cell"],"td");return Nt.createElement(Qe,{className:"".concat(kn,"-thead")},Yn.map(function(Zn,ii){var Fi=Nt.createElement(Os,{key:ii,flattenColumns:Je,cells:Zn,stickyOffsets:me,rowComponent:un,cellComponent:mn,tdCellComponent:Hn,onHeaderRow:vn,index:ii});return Fi}))}var Ys=dt(va),Qr=Ft(11592);function Dr(pe){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof me=="number"?me:me.endsWith("%")?pe*parseFloat(me)/100:null}function In(pe,me){return Nt.useMemo(function(){if(me&&me>0){var Xe=0,Je=0;pe.forEach(function(Qe){var un=Dr(me,Qe.width);un?Xe+=un:Je+=1});var vn=me-Xe,rn=Je,kn=vn/Je,jn=0,Yn=pe.map(function(Qe){var un=(0,Pe.Z)({},Qe),mn=Dr(me,un.width);if(mn)un.width=mn;else{var Hn=Math.floor(kn);un.width=rn===1?vn:Hn,vn-=Hn,rn-=1}return jn+=un.width,un});return[Yn,jn]}return[pe,me]},[pe,me])}var Tn=["children"],Oe=["fixed"];function qn(pe){return(0,Qr.Z)(pe).filter(function(me){return Nt.isValidElement(me)}).map(function(me){var Xe=me.key,Je=me.props,vn=Je.children,rn=(0,Ot.Z)(Je,Tn),kn=(0,Pe.Z)({key:Xe},rn);return vn&&(kn.children=qn(vn)),kn})}function xi(pe){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return pe.filter(function(Xe){return Xe&&(0,Ae.Z)(Xe)==="object"}).reduce(function(Xe,Je,vn){var rn=Je.fixed,kn=rn===!0?"left":rn,jn="".concat(me,"-").concat(vn),Yn=Je.children;return Yn&&Yn.length>0?[].concat((0,uo.Z)(Xe),(0,uo.Z)(xi(Yn,jn).map(function(Qe){return(0,Pe.Z)({fixed:kn},Qe)}))):[].concat((0,uo.Z)(Xe),[(0,Pe.Z)((0,Pe.Z)({key:jn},Je),{},{fixed:kn})])},[])}function An(pe){for(var me=!0,Xe=0;Xe<pe.length;Xe+=1){var Je=pe[Xe];if(me&&Je.fixed!=="left")me=!1;else if(!me&&Je.fixed==="left"){warning(!1,"Index ".concat(Xe-1," of `columns` missing `fixed='left'` prop."));break}}for(var vn=!0,rn=pe.length-1;rn>=0;rn-=1){var kn=pe[rn];if(vn&&kn.fixed!=="right")vn=!1;else if(!vn&&kn.fixed==="right"){warning(!1,"Index ".concat(rn+1," of `columns` missing `fixed='right'` prop."));break}}}function Le(pe){return pe.map(function(me){var Xe=me.fixed,Je=(0,Ot.Z)(me,Oe),vn=Xe;return Xe==="left"?vn="right":Xe==="right"&&(vn="left"),(0,Pe.Z)({fixed:vn},Je)})}function wn(pe,me){var Xe=pe.prefixCls,Je=pe.columns,vn=pe.children,rn=pe.expandable,kn=pe.expandedKeys,jn=pe.columnTitle,Yn=pe.getRowKey,Qe=pe.onTriggerExpand,un=pe.expandIcon,mn=pe.rowExpandable,Hn=pe.expandIconColumnIndex,Zn=pe.direction,ii=pe.expandRowByClick,Fi=pe.columnWidth,li=pe.fixed,Xi=pe.scrollWidth,Zi=Nt.useMemo(function(){return Je||qn(vn)},[Je,vn]),Ar=Nt.useMemo(function(){if(rn){var sr,ar=Zi.slice();if(!ar.includes(Mt)){var qi=Hn||0;qi>=0&&ar.splice(qi,0,Mt)}var pr=ar.indexOf(Mt);ar=ar.filter(function(Rr,jo){return Rr!==Mt||jo===pr});var Vr=Zi[pr],co;(li==="left"||li)&&!Hn?co="left":(li==="right"||li)&&Hn===Zi.length?co="right":co=Vr?Vr.fixed:null;var fo=(sr={},(0,qt.Z)(sr,Tr,{className:"".concat(Xe,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,qt.Z)(sr,"title",jn),(0,qt.Z)(sr,"fixed",co),(0,qt.Z)(sr,"className","".concat(Xe,"-row-expand-icon-cell")),(0,qt.Z)(sr,"width",Fi),(0,qt.Z)(sr,"render",function(jo,us,qo){var ns=Yn(us,qo),xo=kn.has(ns),wa=mn?mn(us):!0,$o=un({prefixCls:Xe,expanded:xo,expandable:wa,record:us,onExpand:Qe});return ii?Nt.createElement("span",{onClick:function(Ps){return Ps.stopPropagation()}},$o):$o}),sr);return ar.map(function(Rr){return Rr===Mt?fo:Rr})}return Zi.filter(function(Rr){return Rr!==Mt})},[rn,Zi,Yn,kn,un,Zn]),br=Nt.useMemo(function(){var sr=Ar;return me&&(sr=me(sr)),sr.length||(sr=[{render:function(){return null}}]),sr},[me,Ar,Zn]),eo=Nt.useMemo(function(){return Zn==="rtl"?Le(xi(br)):xi(br)},[br,Zn,Xi]),Ii=In(eo,Xi),Xn=(0,re.Z)(Ii,2),Co=Xn[0],Br=Xn[1];return[br,Co,Br]}var Qn=wn;function Si(pe){var me,Xe=pe.prefixCls,Je=pe.record,vn=pe.onExpand,rn=pe.expanded,kn=pe.expandable,jn="".concat(Xe,"-row-expand-icon");if(!kn)return Nt.createElement("span",{className:Wt()(jn,"".concat(Xe,"-row-spaced"))});var Yn=function(un){vn(Je,un),un.stopPropagation()};return Nt.createElement("span",{className:Wt()(jn,(me={},(0,qt.Z)(me,"".concat(Xe,"-row-expanded"),rn),(0,qt.Z)(me,"".concat(Xe,"-row-collapsed"),!rn),me)),onClick:Yn})}function Di(pe,me,Xe){var Je=[];function vn(rn){(rn||[]).forEach(function(kn,jn){Je.push(me(kn,jn)),vn(kn[Xe])})}return vn(pe),Je}function qe(pe,me,Xe){var Je=Wr(pe),vn=Je.expandIcon,rn=Je.expandedRowKeys,kn=Je.defaultExpandedRowKeys,jn=Je.defaultExpandAllRows,Yn=Je.expandedRowRender,Qe=Je.onExpand,un=Je.onExpandedRowsChange,mn=Je.childrenColumnName,Hn=vn||Si,Zn=mn||"children",ii=Nt.useMemo(function(){return Yn?"row":pe.expandable&&pe.internalHooks===ce&&pe.expandable.__PARENT_RENDER_ICON__||me.some(function(eo){return eo&&(0,Ae.Z)(eo)==="object"&&eo[Zn]})?"nest":!1},[!!Yn,me]),Fi=Nt.useState(function(){return kn||(jn?Di(me,Xe,Zn):[])}),li=(0,re.Z)(Fi,2),Xi=li[0],Zi=li[1],Ar=Nt.useMemo(function(){return new Set(rn||Xi||[])},[rn,Xi]),br=Nt.useCallback(function(eo){var Ii=Xe(eo,me.indexOf(eo)),Xn,Co=Ar.has(Ii);Co?(Ar.delete(Ii),Xn=(0,uo.Z)(Ar)):Xn=[].concat((0,uo.Z)(Ar),[Ii]),Zi(Xn),Qe&&Qe(!Co,eo),un&&un(Xn)},[Xe,Ar,me,Qe,un]);return[Je,ii,Ar,Hn,Zn,br]}function si(pe,me,Xe,Je){var vn=pe.map(function(rn,kn){return en(kn,kn,pe,me,Xe,Je==null?void 0:Je[kn])});return(0,Ge.Z)(function(){return vn},[vn],function(rn,kn){return!(0,Vt.Z)(rn,kn)})}function Ei(pe){var me=(0,Nt.useRef)(pe),Xe=(0,Nt.useState)({}),Je=(0,re.Z)(Xe,2),vn=Je[1],rn=(0,Nt.useRef)(null),kn=(0,Nt.useRef)([]);function jn(Yn){kn.current.push(Yn);var Qe=Promise.resolve();rn.current=Qe,Qe.then(function(){if(rn.current===Qe){var un=kn.current,mn=me.current;kn.current=[],un.forEach(function(Hn){me.current=Hn(me.current)}),rn.current=null,mn!==me.current&&vn({})}})}return(0,Nt.useEffect)(function(){return function(){rn.current=null}},[]),[me.current,jn]}function tr(pe){var me=(0,Nt.useRef)(pe||null),Xe=(0,Nt.useRef)();function Je(){window.clearTimeout(Xe.current)}function vn(kn){me.current=kn,Je(),Xe.current=window.setTimeout(function(){me.current=null,Xe.current=void 0},100)}function rn(){return me.current}return(0,Nt.useEffect)(function(){return Je},[]),[vn,rn]}function On(){var pe=Nt.useState(-1),me=(0,re.Z)(pe,2),Xe=me[0],Je=me[1],vn=Nt.useState(-1),rn=(0,re.Z)(vn,2),kn=rn[0],jn=rn[1],Yn=Nt.useCallback(function(Qe,un){Je(Qe),jn(un)},[]);return[Xe,kn,Yn]}var ui=Ft(47273),Cr=(0,ui.Z)()?window:null;function rr(pe,me){var Xe=(0,Ae.Z)(pe)==="object"?pe:{},Je=Xe.offsetHeader,vn=Je===void 0?0:Je,rn=Xe.offsetSummary,kn=rn===void 0?0:rn,jn=Xe.offsetScroll,Yn=jn===void 0?0:jn,Qe=Xe.getContainer,un=Qe===void 0?function(){return Cr}:Qe,mn=un()||Cr;return Nt.useMemo(function(){var Hn=!!pe;return{isSticky:Hn,stickyClassName:Hn?"".concat(me,"-sticky-holder"):"",offsetHeader:vn,offsetSummary:kn,offsetScroll:Yn,container:mn}},[Yn,vn,kn,me,mn])}function Gr(pe,me,Xe){var Je=(0,Nt.useMemo)(function(){for(var vn=[],rn=[],kn=0,jn=0,Yn=0;Yn<me;Yn+=1)if(Xe==="rtl"){rn[Yn]=jn,jn+=pe[Yn]||0;var Qe=me-Yn-1;vn[Qe]=kn,kn+=pe[Qe]||0}else{vn[Yn]=kn,kn+=pe[Yn]||0;var un=me-Yn-1;rn[un]=jn,jn+=pe[un]||0}return{left:vn,right:rn}},[pe,me,Xe]);return Je}var or=Gr;function Lr(pe){var me=pe.className,Xe=pe.children;return Nt.createElement("div",{className:me},Xe)}var er=Lr,Pr=Ft(8224),io=Ft(55468),Oo=function(me,Xe){var Je,vn,rn=me.scrollBodyRef,kn=me.onScroll,jn=me.offsetScroll,Yn=me.container,Qe=Pt(Ut,"prefixCls"),un=((Je=rn.current)===null||Je===void 0?void 0:Je.scrollWidth)||0,mn=((vn=rn.current)===null||vn===void 0?void 0:vn.clientWidth)||0,Hn=un&&mn*(mn/un),Zn=Nt.useRef(),ii=Ei({scrollLeft:0,isHiddenScrollBar:!1}),Fi=(0,re.Z)(ii,2),li=Fi[0],Xi=Fi[1],Zi=Nt.useRef({delta:0,x:0}),Ar=Nt.useState(!1),br=(0,re.Z)(Ar,2),eo=br[0],Ii=br[1],Xn=function(){Ii(!1)},Co=function(pr){pr.persist(),Zi.current.delta=pr.pageX-li.scrollLeft,Zi.current.x=0,Ii(!0),pr.preventDefault()},Br=function(pr){var Vr,co=pr||((Vr=window)===null||Vr===void 0?void 0:Vr.event),fo=co.buttons;if(!eo||fo===0){eo&&Ii(!1);return}var Rr=Zi.current.x+pr.pageX-Zi.current.x-Zi.current.delta;Rr<=0&&(Rr=0),Rr+Hn>=mn&&(Rr=mn-Hn),kn({scrollLeft:Rr/mn*(un+2)}),Zi.current.x=pr.pageX},sr=function(){if(rn.current){var pr=(0,io.os)(rn.current).top,Vr=pr+rn.current.offsetHeight,co=Yn===window?document.documentElement.scrollTop+window.innerHeight:(0,io.os)(Yn).top+Yn.clientHeight;Vr-(0,nn.Z)()<=co||pr>=co-jn?Xi(function(fo){return(0,Pe.Z)((0,Pe.Z)({},fo),{},{isHiddenScrollBar:!0})}):Xi(function(fo){return(0,Pe.Z)((0,Pe.Z)({},fo),{},{isHiddenScrollBar:!1})})}},ar=function(pr){Xi(function(Vr){return(0,Pe.Z)((0,Pe.Z)({},Vr),{},{scrollLeft:pr/un*mn||0})})};return Nt.useImperativeHandle(Xe,function(){return{setScrollLeft:ar}}),Nt.useEffect(function(){var qi=(0,Pr.Z)(document.body,"mouseup",Xn,!1),pr=(0,Pr.Z)(document.body,"mousemove",Br,!1);return sr(),function(){qi.remove(),pr.remove()}},[Hn,eo]),Nt.useEffect(function(){var qi=(0,Pr.Z)(Yn,"scroll",sr,!1),pr=(0,Pr.Z)(window,"resize",sr,!1);return function(){qi.remove(),pr.remove()}},[Yn]),Nt.useEffect(function(){li.isHiddenScrollBar||Xi(function(qi){var pr=rn.current;return pr?(0,Pe.Z)((0,Pe.Z)({},qi),{},{scrollLeft:pr.scrollLeft/pr.scrollWidth*pr.clientWidth}):qi})},[li.isHiddenScrollBar]),un<=mn||!Hn||li.isHiddenScrollBar?null:Nt.createElement("div",{style:{height:(0,nn.Z)(),width:mn,bottom:jn},className:"".concat(Qe,"-sticky-scroll")},Nt.createElement("div",{onMouseDown:Co,ref:Zn,className:Wt()("".concat(Qe,"-sticky-scroll-bar"),(0,qt.Z)({},"".concat(Qe,"-sticky-scroll-bar-active"),eo)),style:{width:"".concat(Hn,"px"),transform:"translate3d(".concat(li.scrollLeft,"px, 0, 0)")}}))},pi=Nt.forwardRef(Oo);function _o(pe){return null}var ys=_o;function Zo(pe){return null}var vi=Zo,ur="rc-table",_r=[],so={};function to(){return"No Data"}function Fo(pe){var me,Xe=(0,Pe.Z)({rowKey:"key",prefixCls:ur,emptyText:to},pe),Je=Xe.prefixCls,vn=Xe.className,rn=Xe.rowClassName,kn=Xe.style,jn=Xe.data,Yn=Xe.rowKey,Qe=Xe.scroll,un=Xe.tableLayout,mn=Xe.direction,Hn=Xe.title,Zn=Xe.footer,ii=Xe.summary,Fi=Xe.caption,li=Xe.id,Xi=Xe.showHeader,Zi=Xe.components,Ar=Xe.emptyText,br=Xe.onRow,eo=Xe.onHeaderRow,Ii=Xe.internalHooks,Xn=Xe.transformColumns,Co=Xe.internalRefs,Br=Xe.tailor,sr=Xe.sticky,ar=jn||_r,qi=!!ar.length,pr=Ii===ce,Vr=Nt.useCallback(function(Oa,$a){return(0,_e.Z)(Zi,Oa)||$a},[Zi]),co=Nt.useMemo(function(){return typeof Yn=="function"?Yn:function(Oa){var $a=Oa&&Oa[Yn];return $a}},[Yn]),fo=Vr(["body"]),Rr=On(),jo=(0,re.Z)(Rr,3),us=jo[0],qo=jo[1],ns=jo[2],xo=qe(Xe,ar,co),wa=(0,re.Z)(xo,6),$o=wa[0],rs=wa[1],Ps=wa[2],qs=wa[3],Ua=wa[4],Xs=wa[5],zo=Qe==null?void 0:Qe.x,Ko=Nt.useState(0),fs=(0,re.Z)(Ko,2),es=fs[0],Ds=fs[1],no=Qn((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},Xe),$o),{},{expandable:!!$o.expandedRowRender,columnTitle:$o.columnTitle,expandedKeys:Ps,getRowKey:co,onTriggerExpand:Xs,expandIcon:qs,expandIconColumnIndex:$o.expandIconColumnIndex,direction:mn,scrollWidth:pr&&Br&&typeof zo=="number"?zo:null}),pr?Xn:null),Vo=(0,re.Z)(no,3),aa=Vo[0],Rs=Vo[1],Ql=Vo[2],Ll=Ql!=null?Ql:zo,Fs=Nt.useMemo(function(){return{columns:aa,flattenColumns:Rs}},[aa,Rs]),ca=Nt.useRef(),jl=Nt.useRef(),Ao=Nt.useRef(),Ra=Nt.useRef(),Kl=Nt.useRef(),ta=Nt.useState(!1),la=(0,re.Z)(ta,2),ka=la[0],Xa=la[1],al=Nt.useState(!1),_s=(0,re.Z)(al,2),Ta=_s[0],Sl=_s[1],pu=Ei(new Map),au=(0,re.Z)(pu,2),Uu=au[0],Xu=au[1],dh=Ce(Rs),$u=dh.map(function(Oa){return Uu.get(Oa)}),_a=Nt.useMemo(function(){return $u},[$u.join("_")]),Bu=or(_a,Rs.length,mn),Ul=Qe&&bn(Qe.y),nl=Qe&&bn(Ll)||!!$o.fixed,ph=nl&&Rs.some(function(Oa){var $a=Oa.fixed;return $a}),Cc=Nt.useRef(),mh=rr(sr,Je),ic=mh.isSticky,rc=mh.offsetHeader,vh=mh.offsetSummary,fa=mh.offsetScroll,Cl=mh.stickyClassName,Ba=mh.container,pl=Nt.useMemo(function(){return ii==null?void 0:ii(ar)},[ii,ar]),ga=(Ul||ic)&&Nt.isValidElement(pl)&&pl.type===At&&pl.props.fixed,lu,Fu,zh;Ul&&(Fu={overflowY:"scroll",maxHeight:Qe.y}),nl&&(lu={overflowX:"auto"},Ul||(Fu={overflowY:"hidden"}),zh={width:Ll===!0?"auto":Ll,minWidth:"100%"});var Ih=Nt.useCallback(function(Oa,$a){(0,Te.Z)(ca.current)&&Xu(function(Mu){if(Mu.get(Oa)!==$a){var Ah=new Map(Mu);return Ah.set(Oa,$a),Ah}return Mu})},[]),_n=tr(null),Ru=(0,re.Z)(_n,2),kh=Ru[0],lA=Ru[1];function nd(Oa,$a){$a&&(typeof $a=="function"?$a(Oa):$a.scrollLeft!==Oa&&($a.scrollLeft=Oa,$a.scrollLeft!==Oa&&setTimeout(function(){$a.scrollLeft=Oa},0)))}var gc=(0,Ie.Z)(function(Oa){var $a=Oa.currentTarget,Mu=Oa.scrollLeft,Ah=mn==="rtl",Ph=typeof Mu=="number"?Mu:$a.scrollLeft,Zd=$a||so;if(!lA()||lA()===Zd){var Bc;kh(Zd),nd(Ph,jl.current),nd(Ph,Ao.current),nd(Ph,Kl.current),nd(Ph,(Bc=Cc.current)===null||Bc===void 0?void 0:Bc.setScrollLeft)}var Pd=$a||jl.current;if(Pd){var Vu=Pd.scrollWidth,yh=Pd.clientWidth;if(Vu===yh){Xa(!1),Sl(!1);return}Ah?(Xa(-Ph<Vu-yh),Sl(-Ph>0)):(Xa(Ph>0),Sl(Ph<Vu-yh))}}),xd=function(){nl&&Ao.current?gc({currentTarget:Ao.current}):(Xa(!1),Sl(!1))},SA=function($a){var Mu=$a.width;Mu!==es&&(xd(),Ds(ca.current?ca.current.offsetWidth:Mu))},Lu=Nt.useRef(!1);Nt.useEffect(function(){Lu.current&&xd()},[nl,jn,aa.length]),Nt.useEffect(function(){Lu.current=!0},[]);var jc=Nt.useState(0),Kd=(0,re.Z)(jc,2),id=Kd[0],CA=Kd[1],Uc=Nt.useState(!0),Sd=(0,re.Z)(Uc,2),Yu=Sd[0],sh=Sd[1];Nt.useEffect(function(){(!Br||!pr)&&(Ao.current instanceof Element?CA((0,nn.o)(Ao.current).width):CA((0,nn.o)(Ra.current).width)),sh((0,ke.G)("position","sticky"))},[]),Nt.useEffect(function(){pr&&Co&&(Co.body.current=Ao.current)});var Wu=Nt.useCallback(function(Oa){return Nt.createElement(Nt.Fragment,null,Nt.createElement(Ys,Oa),ga==="top"&&Nt.createElement(xe,Oa,pl))},[ga,pl]),BA=Nt.useCallback(function(Oa){return Nt.createElement(xe,Oa,pl)},[pl]),Kh=Vr(["table"],"table"),na=Nt.useMemo(function(){return un||(ph?Ll==="max-content"?"auto":"fixed":Ul||ic||Rs.some(function(Oa){var $a=Oa.ellipsis;return $a})?"fixed":"auto")},[Ul,ph,Rs,un,ic]),Cd,rd={colWidths:_a,columCount:Rs.length,stickyOffsets:Bu,onHeaderRow:eo,fixHeader:Ul,scroll:Qe},mu=Nt.useMemo(function(){return qi?null:typeof Ar=="function"?Ar():Ar},[qi,Ar]),Gd=Nt.createElement(Jr,{data:ar,measureColumnWidth:Ul||nl||ic}),Wd=Nt.createElement(is,{colWidths:Rs.map(function(Oa){var $a=Oa.width;return $a}),columns:Rs}),Ju=Fi!=null?Nt.createElement("caption",{className:"".concat(Je,"-caption")},Fi):void 0,Rc=(0,Wn.Z)(Xe,{data:!0}),Bd=(0,Wn.Z)(Xe,{aria:!0});if(Ul||ic){var Vd;typeof fo=="function"?(Vd=fo(ar,{scrollbarSize:id,ref:Ao,onScroll:gc}),rd.colWidths=Rs.map(function(Oa,$a){var Mu=Oa.width,Ah=$a===Rs.length-1?Mu-id:Mu;return typeof Ah=="number"&&!Number.isNaN(Ah)?Ah:0})):Vd=Nt.createElement("div",{style:(0,Pe.Z)((0,Pe.Z)({},lu),Fu),onScroll:gc,ref:Ao,className:Wt()("".concat(Je,"-body"))},Nt.createElement(Kh,(0,oe.Z)({style:(0,Pe.Z)((0,Pe.Z)({},zh),{},{tableLayout:na})},Bd),Ju,Wd,Gd,!ga&&pl&&Nt.createElement(xe,{stickyOffsets:Bu,flattenColumns:Rs,columns:aa},pl)));var uu=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({noData:!ar.length,maxContentScroll:nl&&Ll==="max-content"},rd),Fs),{},{direction:mn,stickyClassName:Cl,onScroll:gc});Cd=Nt.createElement(Nt.Fragment,null,Xi!==!1&&Nt.createElement(ei,(0,oe.Z)({},uu,{stickyTopOffset:rc,className:"".concat(Je,"-header"),ref:jl}),Wu),Vd,ga&&ga!=="top"&&Nt.createElement(ei,(0,oe.Z)({},uu,{stickyBottomOffset:vh,className:"".concat(Je,"-summary"),ref:Kl}),BA),ic&&Nt.createElement(pi,{ref:Cc,offsetScroll:fa,scrollBodyRef:Ao,onScroll:gc,container:Ba}))}else Cd=Nt.createElement("div",{style:(0,Pe.Z)((0,Pe.Z)({},lu),Fu),className:Wt()("".concat(Je,"-content")),onScroll:gc,ref:Ao},Nt.createElement(Kh,(0,oe.Z)({style:(0,Pe.Z)((0,Pe.Z)({},zh),{},{tableLayout:na})},Bd),Ju,Wd,Xi!==!1&&Nt.createElement(Ys,(0,oe.Z)({},rd,Fs)),Gd,pl&&Nt.createElement(xe,{stickyOffsets:Bu,flattenColumns:Rs,columns:aa},pl)));var vu=Nt.createElement("div",(0,oe.Z)({className:Wt()(Je,vn,(me={},(0,qt.Z)(me,"".concat(Je,"-rtl"),mn==="rtl"),(0,qt.Z)(me,"".concat(Je,"-ping-left"),ka),(0,qt.Z)(me,"".concat(Je,"-ping-right"),Ta),(0,qt.Z)(me,"".concat(Je,"-layout-fixed"),un==="fixed"),(0,qt.Z)(me,"".concat(Je,"-fixed-header"),Ul),(0,qt.Z)(me,"".concat(Je,"-fixed-column"),ph),(0,qt.Z)(me,"".concat(Je,"-scroll-horizontal"),nl),(0,qt.Z)(me,"".concat(Je,"-has-fix-left"),Rs[0]&&Rs[0].fixed),(0,qt.Z)(me,"".concat(Je,"-has-fix-right"),Rs[Rs.length-1]&&Rs[Rs.length-1].fixed==="right"),me)),style:kn,id:li,ref:ca},Rc),Hn&&Nt.createElement(er,{className:"".concat(Je,"-title")},Hn(ar)),Nt.createElement("div",{ref:Ra,className:"".concat(Je,"-container")},Cd),Zn&&Nt.createElement(er,{className:"".concat(Je,"-footer")},Zn(ar)));nl&&(vu=Nt.createElement(Ue.Z,{onResize:SA},vu));var _c=si(Rs,Bu,mn,aa),Rl=Nt.useMemo(function(){return{scrollX:Ll,prefixCls:Je,getComponent:Vr,scrollbarSize:id,direction:mn,fixedInfoList:_c,isSticky:ic,supportSticky:Yu,componentWidth:es,fixHeader:Ul,fixColumn:ph,horizonScroll:nl,tableLayout:na,rowClassName:rn,expandedRowClassName:$o.expandedRowClassName,expandIcon:qs,expandableType:rs,expandRowByClick:$o.expandRowByClick,expandedRowRender:$o.expandedRowRender,onTriggerExpand:Xs,expandIconColumnIndex:$o.expandIconColumnIndex,indentSize:$o.indentSize,allColumnsFixedLeft:Rs.every(function(Oa){return Oa.fixed==="left"}),emptyNode:mu,columns:aa,flattenColumns:Rs,onColumnResize:Ih,hoverStartRow:us,hoverEndRow:qo,onHover:ns,rowExpandable:$o.rowExpandable,onRow:br,getRowKey:co,expandedKeys:Ps,childrenColumnName:Ua}},[Ll,Je,Vr,id,mn,_c,ic,Yu,es,Ul,ph,nl,na,rn,$o.expandedRowClassName,qs,rs,$o.expandRowByClick,$o.expandedRowRender,Xs,$o.expandIconColumnIndex,$o.indentSize,mu,aa,Rs,Ih,us,qo,ns,$o.rowExpandable,br,co,Ps,Ua]);return Nt.createElement(Ut.Provider,{value:Rl},vu)}function Ai(pe){return ht(Fo,pe)}var yo=Ai();yo.EXPAND_COLUMN=Mt,yo.INTERNAL_HOOKS=ce,yo.Column=ys,yo.ColumnGroup=vi,yo.Summary=ae;var jr=yo,Sr=Ft(24916),Pi=te(null),wo=te(null);function Ci(pe,me,Xe){var Je=me||1;return Xe[pe+Je]-(Xe[pe]||0)}function Xo(pe){var me=pe.rowInfo,Xe=pe.column,Je=pe.colIndex,vn=pe.indent,rn=pe.index,kn=pe.renderIndex,jn=pe.record,Yn=pe.style,Qe=pe.className,un=pe.inverse,mn=pe.getHeight,Hn=Xe.render,Zn=Xe.dataIndex,ii=Xe.className,Fi=Xe.width,li=Pt(wo,["columnsOffset"]),Xi=li.columnsOffset,Zi=Ri(me,Xe,Je,vn,rn),Ar=Zi.key,br=Zi.fixedInfo,eo=Zi.appendCellNode,Ii=Zi.additionalCellProps,Xn=Ii.style,Co=Ii.colSpan,Br=Co===void 0?1:Co,sr=Ii.rowSpan,ar=sr===void 0?1:sr,qi=Je-1,pr=Ci(qi,Br,Xi),Vr=Br>1?Fi-pr:0,co=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},Xn),Yn),{},{flex:"0 0 ".concat(pr,"px"),width:"".concat(pr,"px"),marginRight:Vr,pointerEvents:"auto"}),fo=Nt.useMemo(function(){return un?ar<=1:Br===0||ar===0||ar>1},[ar,Br,un]);fo?co.visibility="hidden":un&&(co.height=mn==null?void 0:mn(ar));var Rr=fo?function(){return null}:Hn,jo={};return(ar===0||Br===0)&&(jo.rowSpan=1,jo.colSpan=1),Nt.createElement(Bi,(0,oe.Z)({className:Wt()(ii,Qe),ellipsis:Xe.ellipsis,align:Xe.align,scope:Xe.rowScope,component:"div",prefixCls:me.prefixCls,key:Ar,record:jn,index:rn,renderIndex:kn,dataIndex:Zn,render:Rr,shouldCellUpdate:Xe.shouldCellUpdate},br,{appendNode:eo,additionalProps:(0,Pe.Z)((0,Pe.Z)({},Ii),{},{style:co},jo)}))}var ua=Xo,xs=["data","index","className","rowKey","style","extra","getHeight"],da=Nt.forwardRef(function(pe,me){var Xe=pe.data,Je=pe.index,vn=pe.className,rn=pe.rowKey,kn=pe.style,jn=pe.extra,Yn=pe.getHeight,Qe=(0,Ot.Z)(pe,xs),un=Xe.record,mn=Xe.indent,Hn=Xe.index,Zn=Pt(Ut,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),ii=Zn.scrollX,Fi=Zn.flattenColumns,li=Zn.prefixCls,Xi=Zn.fixColumn,Zi=Zn.componentWidth,Ar=Rn(un,rn,Je,mn),br=Ar.rowSupportExpand,eo=Ar.expanded,Ii=Ar.rowProps,Xn=Ar.expandedRowRender,Co=Ar.expandedRowClassName,Br;if(br&&eo){var sr=Xn(un,Je,mn+1,eo),ar=Co==null?void 0:Co(un,Je,mn),qi={};Xi&&(qi={style:(0,qt.Z)({},"--virtual-width","".concat(Zi,"px"))});var pr="".concat(li,"-expanded-row-cell");Br=Nt.createElement("div",{className:Wt()("".concat(li,"-expanded-row"),"".concat(li,"-expanded-row-level-").concat(mn+1),ar)},Nt.createElement(Bi,{component:"div",prefixCls:li,className:Wt()(pr,(0,qt.Z)({},"".concat(pr,"-fixed"),Xi)),additionalProps:qi},sr))}var Vr=(0,Pe.Z)((0,Pe.Z)({},kn),{},{width:ii});jn&&(Vr.position="absolute",Vr.pointerEvents="none");var co=Nt.createElement("div",(0,oe.Z)({},Ii,Qe,{ref:br?null:me,className:Wt()(vn,"".concat(li,"-row"),Ii==null?void 0:Ii.className,(0,qt.Z)({},"".concat(li,"-row-extra"),jn)),style:(0,Pe.Z)((0,Pe.Z)({},Vr),Ii==null?void 0:Ii.style)}),Fi.map(function(fo,Rr){return Nt.createElement(ua,{key:Rr,rowInfo:Ar,column:fo,colIndex:Rr,indent:mn,index:Je,renderIndex:Hn,record:un,inverse:jn,getHeight:Yn})}));return br?Nt.createElement("div",{ref:me},co,Br):co}),Js=dt(da),Lo=Js,Do=Nt.forwardRef(function(pe,me){var Xe=pe.data,Je=pe.onScroll,vn=Pt(Ut,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),rn=vn.flattenColumns,kn=vn.onColumnResize,jn=vn.getRowKey,Yn=vn.expandedKeys,Qe=vn.prefixCls,un=vn.childrenColumnName,mn=vn.emptyNode,Hn=vn.scrollX,Zn=Pt(Pi),ii=Zn.scrollY,Fi=Zn.listItemHeight,li=Nt.useRef(),Xi=gn(Xe,un,Yn,jn),Zi=Nt.useMemo(function(){var Br=0;return rn.map(function(sr){var ar=sr.width,qi=sr.key;return Br+=ar,[qi,ar,Br]})},[rn]),Ar=Nt.useMemo(function(){return Zi.map(function(Br){return Br[2]})},[Zi]);Nt.useEffect(function(){Zi.forEach(function(Br){var sr=(0,re.Z)(Br,2),ar=sr[0],qi=sr[1];kn(ar,qi)})},[Zi]),Nt.useImperativeHandle(me,function(){var Br={};return Object.defineProperty(Br,"scrollLeft",{get:function(){var ar;return((ar=li.current)===null||ar===void 0?void 0:ar.getScrollInfo().x)||0},set:function(ar){var qi;(qi=li.current)===null||qi===void 0||qi.scrollTo({left:ar})}}),Br});var br=function(sr,ar){var qi,pr=(qi=Xi[ar])===null||qi===void 0?void 0:qi.record,Vr=sr.onCell;if(Vr){var co,fo=Vr(pr,ar);return(co=fo==null?void 0:fo.rowSpan)!==null&&co!==void 0?co:1}return 1},eo=function(sr){var ar=sr.start,qi=sr.end,pr=sr.getSize,Vr=sr.offsetY;if(qi<0)return null;for(var co=rn.filter(function(zo){return br(zo,ar)===0}),fo=ar,Rr=function(Ko){if(co=co.filter(function(fs){return br(fs,Ko)===0}),!co.length)return fo=Ko,"break"},jo=ar;jo>=0;jo-=1){var us=Rr(jo);if(us==="break")break}for(var qo=rn.filter(function(zo){return br(zo,qi)!==1}),ns=qi,xo=function(Ko){if(qo=qo.filter(function(fs){return br(fs,Ko)!==1}),!qo.length)return ns=Math.max(Ko-1,qi),"break"},wa=qi;wa<Xi.length;wa+=1){var $o=xo(wa);if($o==="break")break}for(var rs=[],Ps=function(Ko){var fs=Xi[Ko];if(!fs)return"continue";rn.some(function(es){return br(es,Ko)>1})&&rs.push(Ko)},qs=fo;qs<=ns;qs+=1)var Ua=Ps(qs);var Xs=rs.map(function(zo){var Ko=Xi[zo],fs=jn(Ko.record,zo),es=function(Vo){var aa=zo+Vo-1,Rs=jn(Xi[aa].record,aa),Ql=pr(fs,Rs);return Ql.bottom-Ql.top},Ds=pr(fs);return Nt.createElement(Lo,{key:zo,data:Ko,rowKey:fs,index:zo,style:{top:-Vr+Ds.top},extra:!0,getHeight:es})});return Xs},Ii=Nt.useMemo(function(){return{columnsOffset:Ar}},[Ar]),Xn="".concat(Qe,"-tbody"),Co;return Xi.length?Co=Nt.createElement(Sr.Z,{fullHeight:!1,ref:li,className:Wt()(Xn,"".concat(Xn,"-virtual")),height:ii,itemHeight:Fi||24,data:Xi,itemKey:function(sr){return jn(sr.record)},scrollWidth:Hn,onVirtualScroll:function(sr){var ar=sr.x;Je({scrollLeft:ar})},extraRender:eo},function(Br,sr,ar){var qi=jn(Br.record,sr);return Nt.createElement(Lo,(0,oe.Z)({data:Br,rowKey:qi,index:sr},ar))}):Co=Nt.createElement("div",{className:Wt()("".concat(Qe,"-placeholder"))},Nt.createElement(Bi,{component:"div",prefixCls:Qe},mn)),Nt.createElement(wo.Provider,{value:Ii},Co)}),As=dt(Do),hs=As,wr=function(me,Xe){var Je=Xe.ref,vn=Xe.onScroll;return Nt.createElement(hs,{ref:Je,data:me,onScroll:vn})},Ne=100;function ds(pe){var me=pe.columns,Xe=pe.scroll,Je=pe.prefixCls,vn=Je===void 0?ur:Je,rn=pe.className,kn=pe.listItemHeight,jn=Xe||{},Yn=jn.x,Qe=jn.y;typeof Yn!="number"&&(Yn=((me||[]).length+1)*Ne),typeof Qe!="number"&&(Qe=500);var un=Nt.useMemo(function(){return{scrollY:Qe,listItemHeight:kn}},[Qe,kn]);return Nt.createElement(Pi.Provider,{value:un},Nt.createElement(jr,(0,oe.Z)({},pe,{className:Wt()(rn,"".concat(vn,"-virtual")),scroll:(0,Pe.Z)((0,Pe.Z)({},Xe),{},{x:Yn}),components:{body:wr},columns:me,internalHooks:ce,tailor:!0})))}function ia(pe){return ht(ds,pe)}var ll=ia(),ul=null;function Ml(pe){return null}var ls=Ml;function Go(pe){return null}var Ns=Go,Wo=Ft(2738),Gs=Ft(68031),wl=Ft(36355),ho=Ft(93891),mo=Ft(19716),Vi=Ft(8628),Po=Ft(31724),Bs=Ft(58421),ha=Ft(71418),sa=Ft(88088);function Ro(pe){return function(Xe){let{prefixCls:Je,onExpand:vn,record:rn,expanded:kn,expandable:jn}=Xe;const Yn=`${Je}-row-expand-icon`;return Nt.createElement("button",{type:"button",onClick:Qe=>{vn(rn,Qe),Qe.stopPropagation()},className:Wt()(Yn,{[`${Yn}-spaced`]:!jn,[`${Yn}-expanded`]:jn&&kn,[`${Yn}-collapsed`]:jn&&!kn}),"aria-label":kn?pe.collapse:pe.expand,"aria-expanded":kn})}}var Ws=Ro;function Na(pe,me){return"key"in pe&&pe.key!==void 0&&pe.key!==null?pe.key:pe.dataIndex?Array.isArray(pe.dataIndex)?pe.dataIndex.join("."):pe.dataIndex:me}function Ol(pe,me){return me?`${me}-${pe}`:`${pe}`}function Va(pe,me){return typeof pe=="function"?pe(me):pe}function bs(pe,me){const Xe=Va(pe,me);return Object.prototype.toString.call(Xe)==="[object Object]"?"":Xe}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"},Ia=ai,Ac=Ft(7657),du=function(me,Xe){return Nt.createElement(Ac.Z,(0,oe.Z)({},me,{ref:Xe,icon:Ia}))},Hh=Nt.forwardRef(du),Zr=Hh,zs=Ft(56762);function Is(pe){const me=Nt.useRef(pe),Xe=(0,zs.Z)();return[()=>me.current,Je=>{me.current=Je,Xe()}]}var Es=Ft(3113),Ks=Ft(24905),Au=Ft(38854),Jo=Ft(64165),Qs=Ft(20834),ws=Ft(40875),Hr=Ft(5112),hl=Ft(17574),js=Ft(47472),Su=Ft(92832);function zu(pe){let{value:me,onChange:Xe,filterSearch:Je,tablePrefixCls:vn,locale:rn}=pe;return Je?Nt.createElement("div",{className:`${vn}-filter-dropdown-search`},Nt.createElement(Su.default,{prefix:Nt.createElement(js.Z,null),placeholder:rn.filterSearchPlaceholder,onChange:Xe,value:me,htmlSize:1,className:`${vn}-filter-dropdown-search-input`})):null}var Xl=zu,fr=Ft(10228);const Za=pe=>{const{keyCode:me}=pe;me===fr.Z.ENTER&&pe.stopPropagation()};var El=Nt.forwardRef((pe,me)=>Nt.createElement("div",{className:pe.className,onClick:Xe=>Xe.stopPropagation(),onKeyDown:Za,ref:me},pe.children));function ou(pe){let me=[];return(pe||[]).forEach(Xe=>{let{value:Je,children:vn}=Xe;me.push(Je),vn&&(me=[].concat((0,uo.Z)(me),(0,uo.Z)(ou(vn))))}),me}function Ya(pe){return pe.some(me=>{let{children:Xe}=me;return Xe})}function bo(pe,me){return typeof me=="string"||typeof me=="number"?me==null?void 0:me.toString().toLowerCase().includes(pe.trim().toLowerCase()):!1}function ja(pe){let{filters:me,prefixCls:Xe,filteredKeys:Je,filterMultiple:vn,searchValue:rn,filterSearch:kn}=pe;return me.map((jn,Yn)=>{const Qe=String(jn.value);if(jn.children)return{key:Qe||Yn,label:jn.text,popupClassName:`${Xe}-dropdown-submenu`,children:ja({filters:jn.children,prefixCls:Xe,filteredKeys:Je,filterMultiple:vn,searchValue:rn,filterSearch:kn})};const un=vn?Ks.default:Hr.ZP,mn={key:jn.value!==void 0?Qe:Yn,label:Nt.createElement(Nt.Fragment,null,Nt.createElement(un,{checked:Je.includes(Qe)}),Nt.createElement("span",null,jn.text))};return rn.trim()?typeof kn=="function"?kn(rn,jn)?mn:null:bo(rn,jn.text)?mn:null:mn})}function Ja(pe){var me,Xe;const{tablePrefixCls:Je,prefixCls:vn,column:rn,dropdownPrefixCls:kn,columnKey:jn,filterMultiple:Yn,filterMode:Qe="menu",filterSearch:un=!1,filterState:mn,triggerFilter:Hn,locale:Zn,children:ii,getPopupContainer:Fi}=pe,{filterDropdownOpen:li,onFilterDropdownOpenChange:Xi,filterResetToDefaultFilteredValue:Zi,defaultFilteredValue:Ar,filterDropdownVisible:br,onFilterDropdownVisibleChange:eo}=rn,[Ii,Xn]=Nt.useState(!1),Co=!!(mn&&(!((me=mn.filteredKeys)===null||me===void 0)&&me.length||mn.forceFiltered)),Br=no=>{Xn(no),Xi==null||Xi(no),eo==null||eo(no)},sr=(Xe=li!=null?li:br)!==null&&Xe!==void 0?Xe:Ii,ar=mn==null?void 0:mn.filteredKeys,[qi,pr]=Is(ar||[]),Vr=no=>{let{selectedKeys:Vo}=no;pr(Vo)},co=(no,Vo)=>{let{node:aa,checked:Rs}=Vo;Vr(Yn?{selectedKeys:no}:{selectedKeys:Rs&&aa.key?[aa.key]:[]})};Nt.useEffect(()=>{Ii&&Vr({selectedKeys:ar||[]})},[ar]);const[fo,Rr]=Nt.useState([]),jo=no=>{Rr(no)},[us,qo]=Nt.useState(""),ns=no=>{const{value:Vo}=no.target;qo(Vo)};Nt.useEffect(()=>{Ii||qo("")},[Ii]);const xo=no=>{const Vo=no&&no.length?no:null;if(Vo===null&&(!mn||!mn.filteredKeys)||(0,Vt.Z)(Vo,mn==null?void 0:mn.filteredKeys,!0))return null;Hn({column:rn,key:jn,filteredKeys:Vo})},wa=()=>{Br(!1),xo(qi())},$o=function(){let{confirm:no,closeDropdown:Vo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};no&&xo([]),Vo&&Br(!1),qo(""),pr(Zi?(Ar||[]).map(aa=>String(aa)):[])},rs=function(){let{closeDropdown:no}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};no&&Br(!1),xo(qi())},Ps=no=>{no&&ar!==void 0&&pr(ar||[]),Br(no),!no&&!rn.filterDropdown&&wa()},qs=Wt()({[`${kn}-menu-without-submenu`]:!Ya(rn.filters||[])}),Ua=no=>{if(no.target.checked){const Vo=ou(rn==null?void 0:rn.filters).map(aa=>String(aa));pr(Vo)}else pr([])},Xs=no=>{let{filters:Vo}=no;return(Vo||[]).map((aa,Rs)=>{const Ql=String(aa.value),Ll={title:aa.text,key:aa.value!==void 0?Ql:Rs};return aa.children&&(Ll.children=Xs({filters:aa.children})),Ll})},zo=no=>{var Vo;return Object.assign(Object.assign({},no),{text:no.title,value:no.key,children:((Vo=no.children)===null||Vo===void 0?void 0:Vo.map(aa=>zo(aa)))||[]})};let Ko;if(typeof rn.filterDropdown=="function")Ko=rn.filterDropdown({prefixCls:`${kn}-custom`,setSelectedKeys:no=>Vr({selectedKeys:no}),selectedKeys:qi(),confirm:rs,clearFilters:$o,filters:rn.filters,visible:sr,close:()=>{Br(!1)}});else if(rn.filterDropdown)Ko=rn.filterDropdown;else{const no=qi()||[],Vo=()=>(rn.filters||[]).length===0?Nt.createElement(Jo.Z,{image:Jo.Z.PRESENTED_IMAGE_SIMPLE,description:Zn.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Qe==="tree"?Nt.createElement(Nt.Fragment,null,Nt.createElement(Xl,{filterSearch:un,value:us,onChange:ns,tablePrefixCls:Je,locale:Zn}),Nt.createElement("div",{className:`${Je}-filter-dropdown-tree`},Yn?Nt.createElement(Ks.default,{checked:no.length===ou(rn.filters).length,indeterminate:no.length>0&&no.length<ou(rn.filters).length,className:`${Je}-filter-dropdown-checkall`,onChange:Ua},Zn.filterCheckall):null,Nt.createElement(hl.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Yn,checkStrictly:!Yn,className:`${kn}-menu`,onCheck:co,checkedKeys:no,selectedKeys:no,showIcon:!1,treeData:Xs({filters:rn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:us.trim()?Rs=>typeof un=="function"?un(us,zo(Rs)):bo(us,Rs.title):void 0}))):Nt.createElement(Nt.Fragment,null,Nt.createElement(Xl,{filterSearch:un,value:us,onChange:ns,tablePrefixCls:Je,locale:Zn}),Nt.createElement(Qs.default,{selectable:!0,multiple:Yn,prefixCls:`${kn}-menu`,className:qs,onSelect:Vr,onDeselect:Vr,selectedKeys:no,getPopupContainer:Fi,openKeys:fo,onOpenChange:jo,items:ja({filters:rn.filters||[],filterSearch:un,prefixCls:vn,filteredKeys:qi(),filterMultiple:Yn,searchValue:us})})),aa=()=>Zi?(0,Vt.Z)((Ar||[]).map(Rs=>String(Rs)),no,!0):no.length===0;Ko=Nt.createElement(Nt.Fragment,null,Vo(),Nt.createElement("div",{className:`${vn}-dropdown-btns`},Nt.createElement(Es.ZP,{type:"link",size:"small",disabled:aa(),onClick:()=>$o()},Zn.filterReset),Nt.createElement(Es.ZP,{type:"primary",size:"small",onClick:wa},Zn.filterConfirm)))}rn.filterDropdown&&(Ko=Nt.createElement(ws.J,{selectable:void 0},Ko));const fs=()=>Nt.createElement(El,{className:`${vn}-dropdown`},Ko);let es;typeof rn.filterIcon=="function"?es=rn.filterIcon(Co):rn.filterIcon?es=rn.filterIcon:es=Nt.createElement(Zr,null);const{direction:Ds}=Nt.useContext(wl.E_);return Nt.createElement("div",{className:`${vn}-column`},Nt.createElement("span",{className:`${Je}-column-title`},ii),Nt.createElement(Au.Z,{dropdownRender:fs,trigger:["click"],open:sr,onOpenChange:Ps,getPopupContainer:Fi,placement:Ds==="rtl"?"bottomLeft":"bottomRight"},Nt.createElement("span",{role:"button",tabIndex:-1,className:Wt()(`${vn}-trigger`,{active:Co}),onClick:no=>{no.stopPropagation()}},es)))}var su=Ja;function $l(pe,me,Xe){let Je=[];return(pe||[]).forEach((vn,rn)=>{var kn;const jn=Ol(rn,Xe);if(vn.filters||"filterDropdown"in vn||"onFilter"in vn)if("filteredValue"in vn){let Yn=vn.filteredValue;"filterDropdown"in vn||(Yn=(kn=Yn==null?void 0:Yn.map(String))!==null&&kn!==void 0?kn:Yn),Je.push({column:vn,key:Na(vn,jn),filteredKeys:Yn,forceFiltered:vn.filtered})}else Je.push({column:vn,key:Na(vn,jn),filteredKeys:me&&vn.defaultFilteredValue?vn.defaultFilteredValue:void 0,forceFiltered:vn.filtered});"children"in vn&&(Je=[].concat((0,uo.Z)(Je),(0,uo.Z)($l(vn.children,me,jn))))}),Je}function Pu(pe,me,Xe,Je,vn,rn,kn,jn){return Xe.map((Yn,Qe)=>{const un=Ol(Qe,jn),{filterMultiple:mn=!0,filterMode:Hn,filterSearch:Zn}=Yn;let ii=Yn;if(ii.filters||ii.filterDropdown){const Fi=Na(ii,un),li=Je.find(Xi=>{let{key:Zi}=Xi;return Fi===Zi});ii=Object.assign(Object.assign({},ii),{title:Xi=>Nt.createElement(su,{tablePrefixCls:pe,prefixCls:`${pe}-filter`,dropdownPrefixCls:me,column:ii,columnKey:Fi,filterState:li,filterMultiple:mn,filterMode:Hn,filterSearch:Zn,triggerFilter:rn,locale:vn,getPopupContainer:kn},Va(Yn.title,Xi))})}return"children"in ii&&(ii=Object.assign(Object.assign({},ii),{children:Pu(pe,me,ii.children,Je,vn,rn,kn,un)})),ii})}function bu(pe){const me={};return pe.forEach(Xe=>{let{key:Je,filteredKeys:vn,column:rn}=Xe;const{filters:kn,filterDropdown:jn}=rn;if(jn)me[Je]=vn||null;else if(Array.isArray(vn)){const Yn=ou(kn);me[Je]=Yn.filter(Qe=>vn.includes(String(Qe)))}else me[Je]=null}),me}function fu(pe,me){return me.reduce((Xe,Je)=>{const{column:{onFilter:vn,filters:rn},filteredKeys:kn}=Je;return vn&&kn&&kn.length?Xe.filter(jn=>kn.some(Yn=>{const Qe=ou(rn),un=Qe.findIndex(Hn=>String(Hn)===String(Yn)),mn=un!==-1?Qe[un]:Yn;return vn(mn,jn)})):Xe},pe)}const eu=pe=>pe.flatMap(me=>"children"in me?[me].concat((0,uo.Z)(eu(me.children||[]))):[me]);function Qo(pe){let{prefixCls:me,dropdownPrefixCls:Xe,mergedColumns:Je,onFilterChange:vn,getPopupContainer:rn,locale:kn}=pe;const jn=Nt.useMemo(()=>eu(Je||[]),[Je]),[Yn,Qe]=Nt.useState(()=>$l(jn,!0)),un=Nt.useMemo(()=>{const ii=$l(jn,!1);if(ii.length===0)return ii;let Fi=!0,li=!0;if(ii.forEach(Xi=>{let{filteredKeys:Zi}=Xi;Zi!==void 0?Fi=!1:li=!1}),Fi){const Xi=(jn||[]).map((Zi,Ar)=>Na(Zi,Ol(Ar)));return Yn.filter(Zi=>{let{key:Ar}=Zi;return Xi.includes(Ar)}).map(Zi=>{const Ar=jn[Xi.findIndex(br=>br===Zi.key)];return Object.assign(Object.assign({},Zi),{column:Object.assign(Object.assign({},Zi.column),Ar),forceFiltered:Ar.filtered})})}return ii},[jn,Yn]),mn=Nt.useMemo(()=>bu(un),[un]),Hn=ii=>{const Fi=un.filter(li=>{let{key:Xi}=li;return Xi!==ii.key});Fi.push(ii),Qe(Fi),vn(bu(Fi),Fi)};return[ii=>Pu(me,Xe,ii,un,kn,Hn,rn),un,mn]}var Hd=Qo;function Eu(pe,me,Xe){const Je=Nt.useRef({});function vn(rn){if(!Je.current||Je.current.data!==pe||Je.current.childrenColumnName!==me||Je.current.getRowKey!==Xe){let jn=function(Yn){Yn.forEach((Qe,un)=>{const mn=Xe(Qe,un);kn.set(mn,Qe),Qe&&typeof Qe=="object"&&me in Qe&&jn(Qe[me]||[])})};const kn=new Map;jn(pe),Je.current={data:pe,childrenColumnName:me,kvMap:kn,getRowKey:Xe}}return Je.current.kvMap.get(rn)}return[vn]}var yd=Ft(50371),Nh=function(pe,me){var Xe={};for(var Je in pe)Object.prototype.hasOwnProperty.call(pe,Je)&&me.indexOf(Je)<0&&(Xe[Je]=pe[Je]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vn=0,Je=Object.getOwnPropertySymbols(pe);vn<Je.length;vn++)me.indexOf(Je[vn])<0&&Object.prototype.propertyIsEnumerable.call(pe,Je[vn])&&(Xe[Je[vn]]=pe[Je[vn]]);return Xe};const ec=10;function ol(pe,me){const Xe={current:pe.current,pageSize:pe.pageSize};return Object.keys(me&&typeof me=="object"?me:{}).forEach(vn=>{const rn=pe[vn];typeof rn!="function"&&(Xe[vn]=rn)}),Xe}function xh(pe,me,Xe){const Je=Xe&&typeof Xe=="object"?Xe:{},{total:vn=0}=Je,rn=Nh(Je,["total"]),[kn,jn]=(0,Nt.useState)(()=>({current:"defaultCurrent"in rn?rn.defaultCurrent:1,pageSize:"defaultPageSize"in rn?rn.defaultPageSize:ec})),Yn=(0,yd.Z)(kn,rn,{total:vn>0?vn:pe}),Qe=Math.ceil((vn||pe)/Yn.pageSize);Yn.current>Qe&&(Yn.current=Qe||1);const un=(Hn,Zn)=>{jn({current:Hn!=null?Hn:1,pageSize:Zn||Yn.pageSize})},mn=(Hn,Zn)=>{var ii;Xe&&((ii=Xe.onChange)===null||ii===void 0||ii.call(Xe,Hn,Zn)),un(Hn,Zn),me(Hn,Zn||(Yn==null?void 0:Yn.pageSize))};return Xe===!1?[{},()=>{}]:[Object.assign(Object.assign({},Yn),{onChange:mn}),un]}var Qd=xh,Oc=Ft(84105),Dc=Ft(35654),Ls=Ft(90782),ya=Ft(71430),ju=Ft(18929);const qa={},sl="SELECT_ALL",za="SELECT_INVERT",Aa="SELECT_NONE",tl=[],Dl=(pe,me)=>{let Xe=[];return(me||[]).forEach(Je=>{Xe.push(Je),Je&&typeof Je=="object"&&pe in Je&&(Xe=[].concat((0,uo.Z)(Xe),(0,uo.Z)(Dl(pe,Je[pe]))))}),Xe};var ch=(pe,me)=>{const{preserveSelectedRowKeys:Xe,selectedRowKeys:Je,defaultSelectedRowKeys:vn,getCheckboxProps:rn,onChange:kn,onSelect:jn,onSelectAll:Yn,onSelectInvert:Qe,onSelectNone:un,onSelectMultiple:mn,columnWidth:Hn,type:Zn,selections:ii,fixed:Fi,renderCell:li,hideSelectAll:Xi,checkStrictly:Zi=!0}=me||{},{prefixCls:Ar,data:br,pageData:eo,getRecordByKey:Ii,getRowKey:Xn,expandType:Co,childrenColumnName:Br,locale:sr,getPopupContainer:ar}=pe,[qi,pr]=(0,ju.Z)(Je||vn||tl,{value:Je}),Vr=Nt.useRef(new Map),co=(0,Nt.useCallback)(zo=>{if(Xe){const Ko=new Map;zo.forEach(fs=>{let es=Ii(fs);!es&&Vr.current.has(fs)&&(es=Vr.current.get(fs)),Ko.set(fs,es)}),Vr.current=Ko}},[Ii,Xe]);Nt.useEffect(()=>{co(qi)},[qi]);const{keyEntities:fo}=(0,Nt.useMemo)(()=>{if(Zi)return{keyEntities:null};let zo=br;if(Xe){const Ko=new Set(br.map((es,Ds)=>Xn(es,Ds))),fs=Array.from(Vr.current).reduce((es,Ds)=>{let[no,Vo]=Ds;return Ko.has(no)?es:es.concat(Vo)},[]);zo=[].concat((0,uo.Z)(zo),(0,uo.Z)(fs))}return(0,ya.I8)(zo,{externalGetKey:Xn,childrenPropName:Br})},[br,Xn,Zi,Br,Xe]),Rr=(0,Nt.useMemo)(()=>Dl(Br,eo),[Br,eo]),jo=(0,Nt.useMemo)(()=>{const zo=new Map;return Rr.forEach((Ko,fs)=>{const es=Xn(Ko,fs),Ds=(rn?rn(Ko):null)||{};zo.set(es,Ds)}),zo},[Rr,Xn,rn]),us=(0,Nt.useCallback)(zo=>{var Ko;return!!(!((Ko=jo.get(Xn(zo)))===null||Ko===void 0)&&Ko.disabled)},[jo,Xn]),[qo,ns]=(0,Nt.useMemo)(()=>{if(Zi)return[qi||[],[]];const{checkedKeys:zo,halfCheckedKeys:Ko}=(0,Ls.S)(qi,!0,fo,us);return[zo||[],Ko]},[qi,Zi,fo,us]),xo=(0,Nt.useMemo)(()=>{const zo=Zn==="radio"?qo.slice(0,1):qo;return new Set(zo)},[qo,Zn]),wa=(0,Nt.useMemo)(()=>Zn==="radio"?new Set:new Set(ns),[ns,Zn]),[$o,rs]=(0,Nt.useState)(null);Nt.useEffect(()=>{me||pr(tl)},[!!me]);const Ps=(0,Nt.useCallback)((zo,Ko)=>{let fs,es;co(zo),Xe?(fs=zo,es=zo.map(Ds=>Vr.current.get(Ds))):(fs=[],es=[],zo.forEach(Ds=>{const no=Ii(Ds);no!==void 0&&(fs.push(Ds),es.push(no))})),pr(fs),kn==null||kn(fs,es,{type:Ko})},[pr,Ii,kn,Xe]),qs=(0,Nt.useCallback)((zo,Ko,fs,es)=>{if(jn){const Ds=fs.map(no=>Ii(no));jn(Ii(zo),Ko,Ds,es)}Ps(fs,"single")},[jn,Ii,Ps]),Ua=(0,Nt.useMemo)(()=>!ii||Xi?null:(ii===!0?[sl,za,Aa]:ii).map(Ko=>Ko===sl?{key:"all",text:sr.selectionAll,onSelect(){Ps(br.map((fs,es)=>Xn(fs,es)).filter(fs=>{const es=jo.get(fs);return!(es!=null&&es.disabled)||xo.has(fs)}),"all")}}:Ko===za?{key:"invert",text:sr.selectInvert,onSelect(){const fs=new Set(xo);eo.forEach((Ds,no)=>{const Vo=Xn(Ds,no),aa=jo.get(Vo);aa!=null&&aa.disabled||(fs.has(Vo)?fs.delete(Vo):fs.add(Vo))});const es=Array.from(fs);Qe&&Qe(es),Ps(es,"invert")}}:Ko===Aa?{key:"none",text:sr.selectNone,onSelect(){un==null||un(),Ps(Array.from(xo).filter(fs=>{const es=jo.get(fs);return es==null?void 0:es.disabled}),"none")}}:Ko).map(Ko=>Object.assign(Object.assign({},Ko),{onSelect:function(){for(var fs,es,Ds=arguments.length,no=new Array(Ds),Vo=0;Vo<Ds;Vo++)no[Vo]=arguments[Vo];(es=Ko.onSelect)===null||es===void 0||(fs=es).call.apply(fs,[Ko].concat(no)),rs(null)}})),[ii,xo,eo,Xn,Qe,Ps]);return[(0,Nt.useCallback)(zo=>{var Ko;if(!me)return zo.filter(ta=>ta!==qa);let fs=(0,uo.Z)(zo);const es=new Set(xo),Ds=Rr.map(Xn).filter(ta=>!jo.get(ta).disabled),no=Ds.every(ta=>es.has(ta)),Vo=Ds.some(ta=>es.has(ta)),aa=()=>{const ta=[];no?Ds.forEach(ka=>{es.delete(ka),ta.push(ka)}):Ds.forEach(ka=>{es.has(ka)||(es.add(ka),ta.push(ka))});const la=Array.from(es);Yn==null||Yn(!no,la.map(ka=>Ii(ka)),ta.map(ka=>Ii(ka))),Ps(la,"all"),rs(null)};let Rs;if(Zn!=="radio"){let ta;if(Ua){const _s={getPopupContainer:ar,items:Ua.map((Ta,Sl)=>{const{key:pu,text:au,onSelect:Uu}=Ta;return{key:pu!=null?pu:Sl,onClick:()=>{Uu==null||Uu(Ds)},label:au}})};ta=Nt.createElement("div",{className:`${Ar}-selection-extra`},Nt.createElement(Au.Z,{menu:_s,getPopupContainer:ar},Nt.createElement("span",null,Nt.createElement(Oc.Z,null))))}const la=Rr.map((_s,Ta)=>{const Sl=Xn(_s,Ta),pu=jo.get(Sl)||{};return Object.assign({checked:es.has(Sl)},pu)}).filter(_s=>{let{disabled:Ta}=_s;return Ta}),ka=!!la.length&&la.length===Rr.length,Xa=ka&&la.every(_s=>{let{checked:Ta}=_s;return Ta}),al=ka&&la.some(_s=>{let{checked:Ta}=_s;return Ta});Rs=!Xi&&Nt.createElement("div",{className:`${Ar}-selection`},Nt.createElement(Ks.default,{checked:ka?Xa:!!Rr.length&&no,indeterminate:ka?!Xa&&al:!no&&Vo,onChange:aa,disabled:Rr.length===0||ka,"aria-label":ta?"Custom selection":"Select all",skipGroup:!0}),ta)}let Ql;Zn==="radio"?Ql=(ta,la,ka)=>{const Xa=Xn(la,ka),al=es.has(Xa);return{node:Nt.createElement(Hr.ZP,Object.assign({},jo.get(Xa),{checked:al,onClick:_s=>_s.stopPropagation(),onChange:_s=>{es.has(Xa)||qs(Xa,!0,[Xa],_s.nativeEvent)}})),checked:al}}:Ql=(ta,la,ka)=>{var Xa;const al=Xn(la,ka),_s=es.has(al),Ta=wa.has(al),Sl=jo.get(al);let pu;return Co==="nest"?pu=Ta:pu=(Xa=Sl==null?void 0:Sl.indeterminate)!==null&&Xa!==void 0?Xa:Ta,{node:Nt.createElement(Ks.default,Object.assign({},Sl,{indeterminate:pu,checked:_s,skipGroup:!0,onClick:au=>au.stopPropagation(),onChange:au=>{let{nativeEvent:Uu}=au;const{shiftKey:Xu}=Uu;let dh=-1,$u=-1;if(Xu&&Zi){const _a=new Set([$o,al]);Ds.some((Bu,Ul)=>{if(_a.has(Bu))if(dh===-1)dh=Ul;else return $u=Ul,!0;return!1})}if($u!==-1&&dh!==$u&&Zi){const _a=Ds.slice(dh,$u+1),Bu=[];_s?_a.forEach(nl=>{es.has(nl)&&(Bu.push(nl),es.delete(nl))}):_a.forEach(nl=>{es.has(nl)||(Bu.push(nl),es.add(nl))});const Ul=Array.from(es);mn==null||mn(!_s,Ul.map(nl=>Ii(nl)),Bu.map(nl=>Ii(nl))),Ps(Ul,"multiple")}else{const _a=qo;if(Zi){const Bu=_s?(0,Dc._5)(_a,al):(0,Dc.L0)(_a,al);qs(al,!_s,Bu,Uu)}else{const Bu=(0,Ls.S)([].concat((0,uo.Z)(_a),[al]),!0,fo,us),{checkedKeys:Ul,halfCheckedKeys:nl}=Bu;let ph=Ul;if(_s){const Cc=new Set(Ul);Cc.delete(al),ph=(0,Ls.S)(Array.from(Cc),{checked:!1,halfCheckedKeys:nl},fo,us).checkedKeys}qs(al,!_s,ph,Uu)}}rs(_s?null:al)}})),checked:_s}};const Ll=(ta,la,ka)=>{const{node:Xa,checked:al}=Ql(ta,la,ka);return li?li(al,la,ka,Xa):Xa};if(!fs.includes(qa))if(fs.findIndex(ta=>{var la;return((la=ta[Tr])===null||la===void 0?void 0:la.columnType)==="EXPAND_COLUMN"})===0){const[ta,...la]=fs;fs=[ta,qa].concat((0,uo.Z)(la))}else fs=[qa].concat((0,uo.Z)(fs));const Fs=fs.indexOf(qa);fs=fs.filter((ta,la)=>ta!==qa||la===Fs);const ca=fs[Fs-1],jl=fs[Fs+1];let Ao=Fi;Ao===void 0&&((jl==null?void 0:jl.fixed)!==void 0?Ao=jl.fixed:(ca==null?void 0:ca.fixed)!==void 0&&(Ao=ca.fixed)),Ao&&ca&&((Ko=ca[Tr])===null||Ko===void 0?void 0:Ko.columnType)==="EXPAND_COLUMN"&&ca.fixed===void 0&&(ca.fixed=Ao);const Ra=Wt()(`${Ar}-selection-col`,{[`${Ar}-selection-col-with-dropdown`]:ii&&Zn==="checkbox"}),Kl={fixed:Ao,width:Hn,className:`${Ar}-selection-column`,title:me.columnTitle||Rs,render:Ll,onCell:me.onCell,[Tr]:{className:Ra}};return fs.map(ta=>ta===qa?Kl:ta)},[Xn,Rr,me,qo,xo,wa,Hn,Ua,Co,$o,jo,mn,qs,us]),xo]},cl=Ft(89489),zd=Ft(59477),td=Ft(6848);const Sh="ascend",Ho="descend";function sA(pe){return typeof pe.sorter=="object"&&typeof pe.sorter.multiple=="number"?pe.sorter.multiple:!1}function En(pe){return typeof pe=="function"?pe:pe&&typeof pe=="object"&&pe.compare?pe.compare:!1}function Wi(pe,me){return me?pe[pe.indexOf(me)+1]:pe[0]}function aA(pe,me,Xe){let Je=[];function vn(rn,kn){Je.push({column:rn,key:Na(rn,kn),multiplePriority:sA(rn),sortOrder:rn.sortOrder})}return(pe||[]).forEach((rn,kn)=>{const jn=Ol(kn,Xe);rn.children?("sortOrder"in rn&&vn(rn,jn),Je=[].concat((0,uo.Z)(Je),(0,uo.Z)(aA(rn.children,me,jn)))):rn.sorter&&("sortOrder"in rn?vn(rn,jn):me&&rn.defaultSortOrder&&Je.push({column:rn,key:Na(rn,jn),multiplePriority:sA(rn),sortOrder:rn.defaultSortOrder}))}),Je}function nc(pe,me,Xe,Je,vn,rn,kn,jn){return(me||[]).map((Yn,Qe)=>{const un=Ol(Qe,jn);let mn=Yn;if(mn.sorter){const Hn=mn.sortDirections||vn,Zn=mn.showSorterTooltip===void 0?kn:mn.showSorterTooltip,ii=Na(mn,un),Fi=Xe.find(Co=>{let{key:Br}=Co;return Br===ii}),li=Fi?Fi.sortOrder:null,Xi=Wi(Hn,li);let Zi;if(Yn.sortIcon)Zi=Yn.sortIcon({sortOrder:li});else{const Co=Hn.includes(Sh)&&Nt.createElement(zd.Z,{className:Wt()(`${pe}-column-sorter-up`,{active:li===Sh})}),Br=Hn.includes(Ho)&&Nt.createElement(cl.Z,{className:Wt()(`${pe}-column-sorter-down`,{active:li===Ho})});Zi=Nt.createElement("span",{className:Wt()(`${pe}-column-sorter`,{[`${pe}-column-sorter-full`]:!!(Co&&Br)})},Nt.createElement("span",{className:`${pe}-column-sorter-inner`,"aria-hidden":"true"},Co,Br))}const{cancelSort:Ar,triggerAsc:br,triggerDesc:eo}=rn||{};let Ii=Ar;Xi===Ho?Ii=eo:Xi===Sh&&(Ii=br);const Xn=typeof Zn=="object"?Zn:{title:Ii};mn=Object.assign(Object.assign({},mn),{className:Wt()(mn.className,{[`${pe}-column-sort`]:li}),title:Co=>{const Br=Nt.createElement("div",{className:`${pe}-column-sorters`},Nt.createElement("span",{className:`${pe}-column-title`},Va(Yn.title,Co)),Zi);return Zn?Nt.createElement(td.Z,Object.assign({},Xn),Br):Br},onHeaderCell:Co=>{const Br=Yn.onHeaderCell&&Yn.onHeaderCell(Co)||{},sr=Br.onClick,ar=Br.onKeyDown;Br.onClick=Vr=>{Je({column:Yn,key:ii,sortOrder:Xi,multiplePriority:sA(Yn)}),sr==null||sr(Vr)},Br.onKeyDown=Vr=>{Vr.keyCode===fr.Z.ENTER&&(Je({column:Yn,key:ii,sortOrder:Xi,multiplePriority:sA(Yn)}),ar==null||ar(Vr))};const qi=bs(Yn.title,{}),pr=qi==null?void 0:qi.toString();return li?Br["aria-sort"]=li==="ascend"?"ascending":"descending":Br["aria-label"]=pr||"",Br.className=Wt()(Br.className,`${pe}-column-has-sorters`),Br.tabIndex=0,Yn.ellipsis&&(Br.title=(qi!=null?qi:"").toString()),Br}})}return"children"in mn&&(mn=Object.assign(Object.assign({},mn),{children:nc(pe,mn.children,Xe,Je,vn,rn,kn,un)})),mn})}function Ku(pe){const{column:me,sortOrder:Xe}=pe;return{column:me,order:Xe,field:me.dataIndex,columnKey:me.key}}function Gu(pe){const me=pe.filter(Xe=>{let{sortOrder:Je}=Xe;return Je}).map(Ku);return me.length===0&&pe.length?Object.assign(Object.assign({},Ku(pe[pe.length-1])),{column:void 0}):me.length<=1?me[0]||{}:me}function Ch(pe,me,Xe){const Je=me.slice().sort((kn,jn)=>jn.multiplePriority-kn.multiplePriority),vn=pe.slice(),rn=Je.filter(kn=>{let{column:{sorter:jn},sortOrder:Yn}=kn;return En(jn)&&Yn});return rn.length?vn.sort((kn,jn)=>{for(let Yn=0;Yn<rn.length;Yn+=1){const Qe=rn[Yn],{column:{sorter:un},sortOrder:mn}=Qe,Hn=En(un);if(Hn&&mn){const Zn=Hn(kn,jn,mn);if(Zn!==0)return mn===Sh?Zn:-Zn}}return 0}).map(kn=>{const jn=kn[Xe];return jn?Object.assign(Object.assign({},kn),{[Xe]:Ch(jn,me,Xe)}):kn}):vn}function zA(pe){let{prefixCls:me,mergedColumns:Xe,onSorterChange:Je,sortDirections:vn,tableLocale:rn,showSorterTooltip:kn}=pe;const[jn,Yn]=Nt.useState(aA(Xe,!0)),Qe=Nt.useMemo(()=>{let ii=!0;const Fi=aA(Xe,!1);if(!Fi.length)return jn;const li=[];function Xi(Ar){ii?li.push(Ar):li.push(Object.assign(Object.assign({},Ar),{sortOrder:null}))}let Zi=null;return Fi.forEach(Ar=>{Zi===null?(Xi(Ar),Ar.sortOrder&&(Ar.multiplePriority===!1?ii=!1:Zi=!0)):(Zi&&Ar.multiplePriority!==!1||(ii=!1),Xi(Ar))}),li},[Xe,jn]),un=Nt.useMemo(()=>{const ii=Qe.map(Fi=>{let{column:li,sortOrder:Xi}=Fi;return{column:li,order:Xi}});return{sortColumns:ii,sortColumn:ii[0]&&ii[0].column,sortOrder:ii[0]&&ii[0].order}},[Qe]);function mn(ii){let Fi;ii.multiplePriority===!1||!Qe.length||Qe[0].multiplePriority===!1?Fi=[ii]:Fi=[].concat((0,uo.Z)(Qe.filter(li=>{let{key:Xi}=li;return Xi!==ii.key})),[ii]),Yn(Fi),Je(Gu(Fi),Fi)}return[ii=>nc(me,ii,Qe,mn,vn,rn,kn),Qe,un,()=>Gu(Qe)]}function ed(pe,me){return pe.map(Xe=>{const Je=Object.assign({},Xe);return Je.title=Va(Xe.title,me),"children"in Je&&(Je.children=ed(Je.children,me)),Je})}function el(pe){return[Nt.useCallback(Xe=>ed(Xe,pe),[pe])]}var ms=Ai((pe,me)=>{const{_renderTimes:Xe}=pe,{_renderTimes:Je}=me;return Xe!==Je}),rh=ia((pe,me)=>{const{_renderTimes:Xe}=pe,{_renderTimes:Je}=me;return Xe!==Je}),Zu=Ft(64993),Fl=Ft(17313),ra=Ft(83116),gu=Ft(37613),xl=pe=>{const{componentCls:me}=pe,Xe=`${pe.lineWidth}px ${pe.lineType} ${pe.tableBorderColor}`,Je=(vn,rn,kn)=>({[`&${me}-${vn}`]:{[`> ${me}-container`]:{[`> ${me}-content, > ${me}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${me}-expanded-row-fixed`]:{margin:`-${rn}px -${kn+pe.lineWidth}px`}}}}}});return{[`${me}-wrapper`]:{[`${me}${me}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${me}-title`]:{border:Xe,borderBottom:0},[`> ${me}-container`]:{borderInlineStart:Xe,borderTop:Xe,[`
|
|
|
> ${me}-content,
|
|
|
> ${me}-header,
|
|
|
> ${me}-body,
|
|
|
> ${me}-summary
|
|
|
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:Xe},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Xe},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${me}-cell-fix-right-first::after`]:{borderInlineEnd:Xe}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${me}-expanded-row-fixed`]:{margin:`-${pe.tablePaddingVertical}px -${pe.tablePaddingHorizontal+pe.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:pe.lineWidth,bottom:0,borderInlineEnd:Xe,content:'""'}}}}}},[`&${me}-scroll-horizontal`]:{[`> ${me}-container > ${me}-body`]:{"> table > tbody":{[`
|
|
|
> tr${me}-expanded-row,
|
|
|
> tr${me}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Je("middle",pe.tablePaddingVerticalMiddle,pe.tablePaddingHorizontalMiddle)),Je("small",pe.tablePaddingVerticalSmall,pe.tablePaddingHorizontalSmall)),{[`> ${me}-footer`]:{border:Xe,borderTop:0}}),[`${me}-cell`]:{[`${me}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${pe.lineWidth}px 0 ${pe.lineWidth}px ${pe.tableHeaderBg}`}},[`${me}-bordered ${me}-cell-scrollbar`]:{borderInlineEnd:Xe}}}},Cu=pe=>{const{componentCls:me}=pe;return{[`${me}-wrapper`]:{[`${me}-cell-ellipsis`]:Object.assign(Object.assign({},Fl.vS),{wordBreak:"keep-all",[`
|
|
|
&${me}-cell-fix-left-last,
|
|
|
&${me}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${me}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${me}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Ea=pe=>{const{componentCls:me}=pe;return{[`${me}-wrapper`]:{[`${me}-tbody > tr${me}-placeholder`]:{textAlign:"center",color:pe.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:pe.colorBgContainer}}}}},oh=Ft(15969),gl=pe=>{const{componentCls:me,antCls:Xe,controlInteractiveSize:Je,motionDurationSlow:vn,lineWidth:rn,paddingXS:kn,lineType:jn,tableBorderColor:Yn,tableExpandIconBg:Qe,tableExpandColumnWidth:un,borderRadius:mn,fontSize:Hn,fontSizeSM:Zn,lineHeight:ii,tablePaddingVertical:Fi,tablePaddingHorizontal:li,tableExpandedRowBg:Xi,paddingXXS:Zi}=pe,Ar=Je/2-rn,br=Ar*2+rn*3,eo=`${rn}px ${jn} ${Yn}`,Ii=Zi-rn;return{[`${me}-wrapper`]:{[`${me}-expand-icon-col`]:{width:un},[`${me}-row-expand-icon-cell`]:{textAlign:"center",[`${me}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${me}-row-indent`]:{height:1,float:"left"},[`${me}-row-expand-icon`]:Object.assign(Object.assign({},(0,oh.N)(pe)),{position:"relative",float:"left",boxSizing:"border-box",width:br,height:br,padding:0,color:"inherit",lineHeight:`${br}px`,background:Qe,border:eo,borderRadius:mn,transform:`scale(${Je/br})`,transition:`all ${vn}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${vn} ease-out`,content:'""'},"&::before":{top:Ar,insetInlineEnd:Ii,insetInlineStart:Ii,height:rn},"&::after":{top:Ii,bottom:Ii,insetInlineStart:Ar,width:rn,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"}}),[`${me}-row-indent + ${me}-row-expand-icon`]:{marginTop:(Hn*ii-rn*3)/2-Math.ceil((Zn*1.4-rn*3)/2),marginInlineEnd:kn},[`tr${me}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Xi}},[`${Xe}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${me}-expanded-row-fixed`]:{position:"relative",margin:`-${Fi}px -${li}px`,padding:`${Fi}px ${li}px`}}}},Yl=pe=>{const{componentCls:me,antCls:Xe,iconCls:Je,tableFilterDropdownWidth:vn,tableFilterDropdownSearchWidth:rn,paddingXXS:kn,paddingXS:jn,colorText:Yn,lineWidth:Qe,lineType:un,tableBorderColor:mn,tableHeaderIconColor:Hn,fontSizeSM:Zn,tablePaddingHorizontal:ii,borderRadius:Fi,motionDurationSlow:li,colorTextDescription:Xi,colorPrimary:Zi,tableHeaderFilterActiveBg:Ar,colorTextDisabled:br,tableFilterDropdownBg:eo,tableFilterDropdownHeight:Ii,controlItemBgHover:Xn,controlItemBgActive:Co,boxShadowSecondary:Br,filterDropdownMenuBg:sr}=pe,ar=`${Xe}-dropdown`,qi=`${me}-filter-dropdown`,pr=`${Xe}-tree`,Vr=`${Qe}px ${un} ${mn}`;return[{[`${me}-wrapper`]:{[`${me}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${me}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-kn,marginInline:`${kn}px ${-ii/2}px`,padding:`0 ${kn}px`,color:Hn,fontSize:Zn,borderRadius:Fi,cursor:"pointer",transition:`all ${li}`,"&:hover":{color:Xi,background:Ar},"&.active":{color:Zi}}}},{[`${Xe}-dropdown`]:{[qi]:Object.assign(Object.assign({},(0,Fl.Wf)(pe)),{minWidth:vn,backgroundColor:eo,borderRadius:Fi,boxShadow:Br,overflow:"hidden",[`${ar}-menu`]:{maxHeight:Ii,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:sr,"&:empty::after":{display:"block",padding:`${jn}px 0`,color:br,fontSize:Zn,textAlign:"center",content:'"Not Found"'}},[`${qi}-tree`]:{paddingBlock:`${jn}px 0`,paddingInline:jn,[pr]:{padding:0},[`${pr}-treenode ${pr}-node-content-wrapper:hover`]:{backgroundColor:Xn},[`${pr}-treenode-checkbox-checked ${pr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Co}}},[`${qi}-search`]:{padding:jn,borderBottom:Vr,"&-input":{input:{minWidth:rn},[Je]:{color:br}}},[`${qi}-checkall`]:{width:"100%",marginBottom:kn,marginInlineStart:kn},[`${qi}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${jn-Qe}px ${jn}px`,overflow:"hidden",borderTop:Vr}})}},{[`${Xe}-dropdown ${qi}, ${qi}-submenu`]:{[`${Xe}-checkbox-wrapper + span`]:{paddingInlineStart:jn,color:Yn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},wt=pe=>{const{componentCls:me,lineWidth:Xe,colorSplit:Je,motionDurationSlow:vn,zIndexTableFixed:rn,tableBg:kn,zIndexTableSticky:jn}=pe,Yn=Je;return{[`${me}-wrapper`]:{[`
|
|
|
${me}-cell-fix-left,
|
|
|
${me}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:rn,background:kn},[`
|
|
|
${me}-cell-fix-left-first::after,
|
|
|
${me}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Xe,width:30,transform:"translateX(100%)",transition:`box-shadow ${vn}`,content:'""',pointerEvents:"none"},[`${me}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${me}-cell-fix-right-first::after,
|
|
|
${me}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-Xe,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${vn}`,content:'""',pointerEvents:"none"},[`${me}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:jn+1,width:30,transition:`box-shadow ${vn}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${me}-ping-left`]:{[`&:not(${me}-has-fix-left) ${me}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Yn}`}},[`
|
|
|
${me}-cell-fix-left-first::after,
|
|
|
${me}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${Yn}`},[`${me}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${me}-ping-right`]:{[`&:not(${me}-has-fix-right) ${me}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Yn}`}},[`
|
|
|
${me}-cell-fix-right-first::after,
|
|
|
${me}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${Yn}`}}}}},Ht=pe=>{const{componentCls:me,antCls:Xe}=pe;return{[`${me}-wrapper`]:{[`${me}-pagination${Xe}-pagination`]:{margin:`${pe.margin}px 0`},[`${me}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:pe.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Yt=pe=>{const{componentCls:me,tableRadius:Xe}=pe;return{[`${me}-wrapper`]:{[me]:{[`${me}-title, ${me}-header`]:{borderRadius:`${Xe}px ${Xe}px 0 0`},[`${me}-title + ${me}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${me}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Xe,borderStartEndRadius:Xe,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Xe},"> *:last-child":{borderStartEndRadius:Xe}}},"&-footer":{borderRadius:`0 0 ${Xe}px ${Xe}px`}}}}},we=pe=>{const{componentCls:me}=pe;return{[`${me}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${me}-pagination-left`]:{justifyContent:"flex-end"},[`${me}-pagination-right`]:{justifyContent:"flex-start"},[`${me}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${me}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${me}-row-indent`]:{float:"right"}}}}},$e=pe=>{const{componentCls:me,antCls:Xe,iconCls:Je,fontSizeIcon:vn,padding:rn,paddingXS:kn,tableHeaderIconColor:jn,tableHeaderIconColorHover:Yn,tableSelectionColumnWidth:Qe}=pe;return{[`${me}-wrapper`]:{[`${me}-selection-col`]:{width:Qe,[`&${me}-selection-col-with-dropdown`]:{width:Qe+vn+rn/4}},[`${me}-bordered ${me}-selection-col`]:{width:Qe+kn*2,[`&${me}-selection-col-with-dropdown`]:{width:Qe+vn+rn/4+kn*2}},[`
|
|
|
table tr th${me}-selection-column,
|
|
|
table tr td${me}-selection-column
|
|
|
`]:{paddingInlineEnd:pe.paddingXS,paddingInlineStart:pe.paddingXS,textAlign:"center",[`${Xe}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${me}-selection-column${me}-cell-fix-left`]:{zIndex:pe.zIndexTableFixed+1},[`table tr th${me}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${me}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${me}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${pe.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${pe.tablePaddingHorizontal/4}px`,[Je]:{color:jn,fontSize:vn,verticalAlign:"baseline","&:hover":{color:Yn}}}}}},fn=pe=>{const{componentCls:me}=pe,Xe=(Je,vn,rn,kn)=>({[`${me}${me}-${Je}`]:{fontSize:kn,[`
|
|
|
${me}-title,
|
|
|
${me}-footer,
|
|
|
${me}-cell,
|
|
|
${me}-thead > tr > th,
|
|
|
${me}-tbody > tr > th,
|
|
|
${me}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${vn}px ${rn}px`},[`${me}-filter-trigger`]:{marginInlineEnd:`-${rn/2}px`},[`${me}-expanded-row-fixed`]:{margin:`-${vn}px -${rn}px`},[`${me}-tbody`]:{[`${me}-wrapper:only-child ${me}`]:{marginBlock:`-${vn}px`,marginInline:`${pe.tableExpandColumnWidth-rn}px -${rn}px`}},[`${me}-selection-column`]:{paddingInlineStart:`${rn/4}px`}}});return{[`${me}-wrapper`]:Object.assign(Object.assign({},Xe("middle",pe.tablePaddingVerticalMiddle,pe.tablePaddingHorizontalMiddle,pe.tableFontSizeMiddle)),Xe("small",pe.tablePaddingVerticalSmall,pe.tablePaddingHorizontalSmall,pe.tableFontSizeSmall))}},Ke=pe=>{const{componentCls:me,marginXXS:Xe,fontSizeIcon:Je,tableHeaderIconColor:vn,tableHeaderIconColorHover:rn}=pe;return{[`${me}-wrapper`]:{[`${me}-thead th${me}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${pe.motionDurationSlow}`,"&:hover":{background:pe.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:pe.colorPrimary},[`
|
|
|
&${me}-cell-fix-left:hover,
|
|
|
&${me}-cell-fix-right:hover
|
|
|
`]:{background:pe.tableFixedHeaderSortActiveBg}},[`${me}-thead th${me}-column-sort`]:{background:pe.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${me}-column-sort`]:{background:pe.tableBodySortBg},[`${me}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${me}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${me}-column-sorter`]:{marginInlineStart:Xe,color:vn,fontSize:0,transition:`color ${pe.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Je,"&.active":{color:pe.colorPrimary}},[`${me}-column-sorter-up + ${me}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${me}-column-sorters:hover ${me}-column-sorter`]:{color:rn}}}},Jn=pe=>{const{componentCls:me,opacityLoading:Xe,tableScrollThumbBg:Je,tableScrollThumbBgHover:vn,tableScrollThumbSize:rn,tableScrollBg:kn,zIndexTableSticky:jn,stickyScrollBarBorderRadius:Yn}=pe,Qe=`${pe.lineWidth}px ${pe.lineType} ${pe.tableBorderColor}`;return{[`${me}-wrapper`]:{[`${me}-sticky`]:{"&-holder":{position:"sticky",zIndex:jn,background:pe.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${rn}px !important`,zIndex:jn,display:"flex",alignItems:"center",background:kn,borderTop:Qe,opacity:Xe,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:rn,backgroundColor:Je,borderRadius:Yn,transition:`all ${pe.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:vn}}}}}}},Un=pe=>{const{componentCls:me,lineWidth:Xe,tableBorderColor:Je}=pe,vn=`${Xe}px ${pe.lineType} ${Je}`;return{[`${me}-wrapper`]:{[`${me}-summary`]:{position:"relative",zIndex:pe.zIndexTableFixed,background:pe.tableBg,"> tr":{"> th, > td":{borderBottom:vn}}},[`div${me}-summary`]:{boxShadow:`0 -${Xe}px 0 ${Je}`}}}},Qi=pe=>{const{componentCls:me}=pe,Xe=`${pe.lineWidth}px ${pe.lineType} ${pe.tableBorderColor}`,Je=`${me}-expanded-row-cell`;return{[`${me}-wrapper`]:{[`${me}-tbody-virtual`]:{[`${me}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${me}-cell`]:{borderBottom:Xe},[`${me}-expanded-row`]:{[`${Je}${Je}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${pe.lineWidth}px)`,borderInlineEnd:"none"}}},[`${me}-bordered`]:{[`${me}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Xe,position:"absolute"},[`${me}-cell`]:{borderInlineEnd:Xe,[`&${me}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-pe.lineWidth,borderInlineStart:Xe}}}}}}};const ir=pe=>{const{componentCls:me,fontWeightStrong:Xe,tablePaddingVertical:Je,tablePaddingHorizontal:vn,lineWidth:rn,lineType:kn,tableBorderColor:jn,tableFontSize:Yn,tableBg:Qe,tableRadius:un,tableHeaderTextColor:mn,motionDurationMid:Hn,tableHeaderBg:Zn,tableHeaderCellSplitColor:ii,tableRowHoverBg:Fi,tableSelectedRowBg:li,tableSelectedRowHoverBg:Xi,tableFooterTextColor:Zi,tableFooterBg:Ar,paddingContentVerticalLG:br}=pe,eo=`${rn}px ${kn} ${jn}`;return{[`${me}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Fl.dF)()),{[me]:Object.assign(Object.assign({},(0,Fl.Wf)(pe)),{fontSize:Yn,background:Qe,borderRadius:`${un}px ${un}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${un}px ${un}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${me}-cell,
|
|
|
${me}-thead > tr > th,
|
|
|
${me}-tbody > tr > th,
|
|
|
${me}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${br}px ${vn}px`,overflowWrap:"break-word"},[`${me}-title`]:{padding:`${Je}px ${vn}px`},[`${me}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:mn,fontWeight:Xe,textAlign:"start",background:Zn,borderBottom:eo,transition:`background ${Hn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${me}-selection-column):not(${me}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:ii,transform:"translateY(-50%)",transition:`background-color ${Hn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${me}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Hn}, border-color ${Hn}`,borderBottom:eo,[`
|
|
|
> ${me}-wrapper:only-child,
|
|
|
> ${me}-expanded-row-fixed > ${me}-wrapper:only-child
|
|
|
`]:{[me]:{marginBlock:`-${Je}px`,marginInline:`${pe.tableExpandColumnWidth-vn}px -${vn}px`,[`${me}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:mn,fontWeight:Xe,textAlign:"start",background:Zn,borderBottom:eo,transition:`background ${Hn} ease`},[`
|
|
|
&${me}-row:hover > th,
|
|
|
&${me}-row:hover > td,
|
|
|
> th${me}-cell-row-hover,
|
|
|
> td${me}-cell-row-hover
|
|
|
`]:{background:Fi},[`&${me}-row-selected`]:{"> th, > td":{background:li},"&:hover > th, &:hover > td":{background:Xi}}}},[`${me}-footer`]:{padding:`${Je}px ${vn}px`,color:Zi,background:Ar}})}};var Er=(0,ra.Z)("Table",pe=>{const{colorTextHeading:me,colorSplit:Xe,colorIcon:Je,colorIconHover:vn,opacityLoading:rn,colorBgContainer:kn,controlInteractiveSize:jn,headerBg:Yn,headerColor:Qe,headerSortActiveBg:un,headerSortHoverBg:mn,bodySortBg:Hn,rowHoverBg:Zn,rowSelectedBg:ii,rowSelectedHoverBg:Fi,rowExpandedBg:li,cellPaddingBlock:Xi,cellPaddingInline:Zi,cellPaddingBlockMD:Ar,cellPaddingInlineMD:br,cellPaddingBlockSM:eo,cellPaddingInlineSM:Ii,borderColor:Xn,footerBg:Co,footerColor:Br,headerBorderRadius:sr,cellFontSize:ar,cellFontSizeMD:qi,cellFontSizeSM:pr,headerSplitColor:Vr,fixedHeaderSortActiveBg:co,headerFilterHoverBg:fo,filterDropdownBg:Rr,expandIconBg:jo,selectionColumnWidth:us,stickyScrollBarBg:qo}=pe,ns=new Zu.C(Je),xo=new Zu.C(vn),wa=2,$o=(0,gu.TS)(pe,{tableFontSize:ar,tableBg:kn,tableRadius:sr,tablePaddingVertical:Xi,tablePaddingHorizontal:Zi,tablePaddingVerticalMiddle:Ar,tablePaddingHorizontalMiddle:br,tablePaddingVerticalSmall:eo,tablePaddingHorizontalSmall:Ii,tableBorderColor:Xn,tableHeaderTextColor:Qe,tableHeaderBg:Yn,tableFooterTextColor:Br,tableFooterBg:Co,tableHeaderCellSplitColor:Vr,tableHeaderSortBg:un,tableHeaderSortHoverBg:mn,tableHeaderIconColor:ns.clone().setAlpha(ns.getAlpha()*rn).toRgbString(),tableHeaderIconColorHover:xo.clone().setAlpha(xo.getAlpha()*rn).toRgbString(),tableBodySortBg:Hn,tableFixedHeaderSortActiveBg:co,tableHeaderFilterActiveBg:fo,tableFilterDropdownBg:Rr,tableRowHoverBg:Zn,tableSelectedRowBg:ii,tableSelectedRowHoverBg:Fi,zIndexTableFixed:wa,zIndexTableSticky:wa+1,tableFontSizeMiddle:qi,tableFontSizeSmall:pr,tableSelectionColumnWidth:us,tableExpandIconBg:jo,tableExpandColumnWidth:jn+2*pe.padding,tableExpandedRowBg:li,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:qo,tableScrollThumbBgHover:me,tableScrollBg:Xe});return[ir($o),Ht($o),Un($o),Ke($o),Yl($o),xl($o),Yt($o),gl($o),Un($o),Ea($o),$e($o),wt($o),Jn($o),Cu($o),fn($o),we($o),Qi($o)]},pe=>{const{colorFillAlter:me,colorBgContainer:Xe,colorTextHeading:Je,colorFillSecondary:vn,colorFillContent:rn,controlItemBgActive:kn,controlItemBgActiveHover:jn,padding:Yn,paddingSM:Qe,paddingXS:un,colorBorderSecondary:mn,borderRadiusLG:Hn,fontSize:Zn,controlHeight:ii,colorTextPlaceholder:Fi}=pe,li=new Zu.C(vn).onBackground(Xe).toHexShortString(),Xi=new Zu.C(rn).onBackground(Xe).toHexShortString(),Zi=new Zu.C(me).onBackground(Xe).toHexShortString();return{headerBg:Zi,headerColor:Je,headerSortActiveBg:li,headerSortHoverBg:Xi,bodySortBg:Zi,rowHoverBg:Zi,rowSelectedBg:kn,rowSelectedHoverBg:jn,rowExpandedBg:me,cellPaddingBlock:Yn,cellPaddingInline:Yn,cellPaddingBlockMD:Qe,cellPaddingInlineMD:un,cellPaddingBlockSM:un,cellPaddingInlineSM:un,borderColor:mn,headerBorderRadius:Hn,footerBg:Zi,footerColor:Je,cellFontSize:Zn,cellFontSizeMD:Zn,cellFontSizeSM:Zn,headerSplitColor:mn,fixedHeaderSortActiveBg:li,headerFilterHoverBg:rn,filterDropdownMenuBg:Xe,filterDropdownBg:Xe,expandIconBg:Xe,selectionColumnWidth:ii,stickyScrollBarBg:Fi,stickyScrollBarBorderRadius:100}});const ao=[],gr=(pe,me)=>{const{prefixCls:Xe,className:Je,rootClassName:vn,style:rn,size:kn,bordered:jn,dropdownPrefixCls:Yn,dataSource:Qe,pagination:un,rowSelection:mn,rowKey:Hn="key",rowClassName:Zn,columns:ii,children:Fi,childrenColumnName:li,onChange:Xi,getPopupContainer:Zi,loading:Ar,expandIcon:br,expandable:eo,expandedRowRender:Ii,expandIconColumnIndex:Xn,indentSize:Co,scroll:Br,sortDirections:sr,locale:ar,showSorterTooltip:qi=!0,virtual:pr}=pe,Vr=Nt.useMemo(()=>ii||qn(Fi),[ii,Fi]),co=Nt.useMemo(()=>Vr.some(fa=>fa.responsive),[Vr]),fo=(0,Vi.Z)(co),Rr=Nt.useMemo(()=>{const fa=new Set(Object.keys(fo).filter(Cl=>fo[Cl]));return Vr.filter(Cl=>!Cl.responsive||Cl.responsive.some(Ba=>fa.has(Ba)))},[Vr,fo]),jo=(0,Wo.Z)(pe,["className","style","columns"]),{locale:us=Po.Z,direction:qo,table:ns,renderEmpty:xo,getPrefixCls:wa,getPopupContainer:$o}=Nt.useContext(wl.E_),rs=(0,mo.Z)(kn),Ps=Object.assign(Object.assign({},us.Table),ar),qs=Qe||ao,Ua=wa("table",Xe),Xs=wa("dropdown",Yn),zo=Object.assign({childrenColumnName:li,expandIconColumnIndex:Xn},eo),{childrenColumnName:Ko="children"}=zo,fs=Nt.useMemo(()=>qs.some(fa=>fa==null?void 0:fa[Ko])?"nest":Ii||eo&&eo.expandedRowRender?"row":null,[qs]),es={body:Nt.useRef()},Ds=Nt.useMemo(()=>typeof Hn=="function"?Hn:fa=>fa==null?void 0:fa[Hn],[Hn]),[no]=Eu(qs,Ko,Ds),Vo={},aa=function(fa,Cl){let Ba=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var pl,ga,lu;const Fu=Object.assign(Object.assign({},Vo),fa);Ba&&((pl=Vo.resetPagination)===null||pl===void 0||pl.call(Vo),!((ga=Fu.pagination)===null||ga===void 0)&&ga.current&&(Fu.pagination.current=1),un&&un.onChange&&un.onChange(1,(lu=Fu.pagination)===null||lu===void 0?void 0:lu.pageSize)),Br&&Br.scrollToFirstRowOnChange!==!1&&es.body.current&&(0,Gs.Z)(0,{getContainer:()=>es.body.current}),Xi==null||Xi(Fu.pagination,Fu.filters,Fu.sorter,{currentDataSource:fu(Ch(qs,Fu.sorterStates,Ko),Fu.filterStates),action:Cl})},Rs=(fa,Cl)=>{aa({sorter:fa,sorterStates:Cl},"sort",!1)},[Ql,Ll,Fs,ca]=zA({prefixCls:Ua,mergedColumns:Rr,onSorterChange:Rs,sortDirections:sr||["ascend","descend"],tableLocale:Ps,showSorterTooltip:qi}),jl=Nt.useMemo(()=>Ch(qs,Ll,Ko),[qs,Ll]);Vo.sorter=ca(),Vo.sorterStates=Ll;const Ao=(fa,Cl)=>{aa({filters:fa,filterStates:Cl},"filter",!0)},[Ra,Kl,ta]=Hd({prefixCls:Ua,locale:Ps,dropdownPrefixCls:Xs,mergedColumns:Rr,onFilterChange:Ao,getPopupContainer:Zi||$o}),la=fu(jl,Kl);Vo.filters=ta,Vo.filterStates=Kl;const ka=Nt.useMemo(()=>{const fa={};return Object.keys(ta).forEach(Cl=>{ta[Cl]!==null&&(fa[Cl]=ta[Cl])}),Object.assign(Object.assign({},Fs),{filters:fa})},[Fs,ta]),[Xa]=el(ka),al=(fa,Cl)=>{aa({pagination:Object.assign(Object.assign({},Vo.pagination),{current:fa,pageSize:Cl})},"paginate")},[_s,Ta]=Qd(la.length,al,un);Vo.pagination=un===!1?{}:ol(_s,un),Vo.resetPagination=Ta;const Sl=Nt.useMemo(()=>{if(un===!1||!_s.pageSize)return la;const{current:fa=1,total:Cl,pageSize:Ba=ec}=_s;return la.length<Cl?la.length>Ba?la.slice((fa-1)*Ba,fa*Ba):la:la.slice((fa-1)*Ba,fa*Ba)},[!!un,la,_s&&_s.current,_s&&_s.pageSize,_s&&_s.total]),[pu,au]=ch({prefixCls:Ua,data:la,pageData:Sl,getRowKey:Ds,getRecordByKey:no,expandType:fs,childrenColumnName:Ko,locale:Ps,getPopupContainer:Zi||$o},mn),Uu=(fa,Cl,Ba)=>{let pl;return typeof Zn=="function"?pl=Wt()(Zn(fa,Cl,Ba)):pl=Wt()(Zn),Wt()({[`${Ua}-row-selected`]:au.has(Ds(fa,Cl))},pl)};zo.__PARENT_RENDER_ICON__=zo.expandIcon,zo.expandIcon=zo.expandIcon||br||Ws(Ps),fs==="nest"&&zo.expandIconColumnIndex===void 0?zo.expandIconColumnIndex=mn?1:0:zo.expandIconColumnIndex>0&&mn&&(zo.expandIconColumnIndex-=1),typeof zo.indentSize!="number"&&(zo.indentSize=typeof Co=="number"?Co:15);const Xu=Nt.useCallback(fa=>Xa(pu(Ra(Ql(fa)))),[Ql,Ra,pu]);let dh,$u;if(un!==!1&&(_s!=null&&_s.total)){let fa;_s.size?fa=_s.size:fa=rs==="small"||rs==="middle"?"small":void 0;const Cl=ga=>Nt.createElement(Bs.Z,Object.assign({},_s,{className:Wt()(`${Ua}-pagination ${Ua}-pagination-${ga}`,_s.className),size:fa})),Ba=qo==="rtl"?"left":"right",{position:pl}=_s;if(pl!==null&&Array.isArray(pl)){const ga=pl.find(zh=>zh.includes("top")),lu=pl.find(zh=>zh.includes("bottom")),Fu=pl.every(zh=>`${zh}`=="none");!ga&&!lu&&!Fu&&($u=Cl(Ba)),ga&&(dh=Cl(ga.toLowerCase().replace("top",""))),lu&&($u=Cl(lu.toLowerCase().replace("bottom","")))}else $u=Cl(Ba)}let _a;typeof Ar=="boolean"?_a={spinning:Ar}:typeof Ar=="object"&&(_a=Object.assign({spinning:!0},Ar));const[Bu,Ul]=Er(Ua),[,nl]=(0,sa.Z)(),ph=Wt()(`${Ua}-wrapper`,ns==null?void 0:ns.className,{[`${Ua}-wrapper-rtl`]:qo==="rtl"},Je,vn,Ul),Cc=Object.assign(Object.assign({},ns==null?void 0:ns.style),rn),mh=ar&&ar.emptyText||(xo==null?void 0:xo("Table"))||Nt.createElement(ho.Z,{componentName:"Table"}),ic=pr?rh:ms,rc={},vh=Nt.useMemo(()=>{const{fontSize:fa,lineHeight:Cl,padding:Ba,paddingXS:pl,paddingSM:ga}=nl,lu=Math.floor(fa*Cl);switch(rs){case"large":return Ba*2+lu;case"small":return pl*2+lu;default:return ga*2+lu}},[nl,rs]);return pr&&(rc.listItemHeight=vh),Bu(Nt.createElement("div",{ref:me,className:ph,style:Cc},Nt.createElement(ha.Z,Object.assign({spinning:!1},_a),dh,Nt.createElement(ic,Object.assign({},rc,jo,{columns:Rr,direction:qo,expandable:zo,prefixCls:Ua,className:Wt()({[`${Ua}-middle`]:rs==="middle",[`${Ua}-small`]:rs==="small",[`${Ua}-bordered`]:jn,[`${Ua}-empty`]:qs.length===0}),data:Sl,rowKey:Ds,rowClassName:Uu,emptyText:mh,internalHooks:ce,internalRefs:es,transformColumns:Xu})),$u)))};var Ti=Nt.forwardRef(gr);const xr=(pe,me)=>{const Xe=Nt.useRef(0);return Xe.current+=1,Nt.createElement(Ti,Object.assign({},pe,{ref:me,_renderTimes:Xe.current}))},Ir=Nt.forwardRef(xr);Ir.SELECTION_COLUMN=qa,Ir.EXPAND_COLUMN=Mt,Ir.SELECTION_ALL=sl,Ir.SELECTION_INVERT=za,Ir.SELECTION_NONE=Aa,Ir.Column=ls,Ir.ColumnGroup=Ns,Ir.Summary=ae;var $n=Ir,ri=$n},17574:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{default:function(){return ye}});var Mt=Ft(43858),ce=Ft(19127),re=Ft(52671),Ie=Ft(8657),ee=Ft(96663),Vt=Ft(59301),Nt={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=Nt,te=Ft(7657),Pt=function(Ce,bn){return Vt.createElement(te.Z,(0,ee.Z)({},Ce,{ref:bn,icon:jt}))},oe=Vt.forwardRef(Pt),Kt=oe,$t=Ft(92310),Ct=Ft.n($t),et=Ft(35654),tt=Ft(71430),lt=Ft(36355),rt=Ft(56082),ht=Ft(62892),dt=Ft(20648);const xt=4;function It(ne){const{dropPosition:Ce,dropLevelOffset:bn,prefixCls:Ln,indent:Ze,direction:Mn="ltr"}=ne,Vn=Mn==="ltr"?"left":"right",gi=Mn==="ltr"?"right":"left",Kn={[Vn]:-bn*Ze+xt,[gi]:0};switch(Ce){case-1:Kn.top=-3;break;case 1:Kn.bottom=-3;break;default:Kn.bottom=-3,Kn[Vn]=Ze+xt;break}return Vt.createElement("div",{style:Kn,className:`${Ln}-drop-indicator`})}var Ut=Ft(71997),se=Vt.forwardRef((ne,Ce)=>{const{getPrefixCls:bn,direction:Ln,virtual:Ze,tree:Mn}=Vt.useContext(lt.E_),{prefixCls:Vn,className:gi,showIcon:Kn=!1,showLine:Bi,switcherIcon:en,blockNode:Li=!1,children:Oi,checkable:Lt=!1,selectable:Ot=!0,draggable:mt,motion:ft,style:pt}=ne,At=bn("tree",Vn),le=bn(),xe=ft!=null?ft:Object.assign(Object.assign({},(0,ht.Z)(le)),{motionAppear:!1}),ae=Object.assign(Object.assign({},ne),{checkable:Lt,selectable:Ot,showIcon:Kn,motion:xe,blockNode:Li,showLine:!!Bi,dropIndicatorRender:It}),[ve,Ue]=(0,dt.ZP)(At),Te=Vt.useMemo(()=>{if(!mt)return!1;let nn={};switch(typeof mt){case"function":nn.nodeDraggable=mt;break;case"object":nn=Object.assign({},mt);break;default:break}return nn.icon!==!1&&(nn.icon=nn.icon||Vt.createElement(rt.Z,null)),nn},[mt]),ke=nn=>Vt.createElement(Ut.Z,{prefixCls:At,switcherIcon:en,treeNodeProps:nn,showLine:Bi});return ve(Vt.createElement(Mt.Z,Object.assign({itemHeight:20,ref:Ce,virtual:Ze},ae,{style:Object.assign(Object.assign({},Mn==null?void 0:Mn.style),pt),prefixCls:At,className:Ct()({[`${At}-icon-hide`]:!Kn,[`${At}-block-node`]:Li,[`${At}-unselectable`]:!Ot,[`${At}-rtl`]:Ln==="rtl"},Mn==null?void 0:Mn.className,gi,Ue),direction:Ln,checkable:Lt&&Vt.createElement("span",{className:`${At}-checkbox-inner`}),selectable:Ot,switcherIcon:ke,draggable:Te}),Oi))}),ue;(function(ne){ne[ne.None=0]="None",ne[ne.Start=1]="Start",ne[ne.End=2]="End"})(ue||(ue={}));function Ae(ne,Ce){function bn(Ln){const{key:Ze,children:Mn}=Ln;Ce(Ze,Ln)!==!1&&Ae(Mn||[],Ce)}ne.forEach(bn)}function Pe(ne){let{treeData:Ce,expandedKeys:bn,startKey:Ln,endKey:Ze}=ne;const Mn=[];let Vn=ue.None;if(Ln&&Ln===Ze)return[Ln];if(!Ln||!Ze)return[];function gi(Kn){return Kn===Ln||Kn===Ze}return Ae(Ce,Kn=>{if(Vn===ue.End)return!1;if(gi(Kn)){if(Mn.push(Kn),Vn===ue.None)Vn=ue.Start;else if(Vn===ue.Start)return Vn=ue.End,!1}else Vn===ue.Start&&Mn.push(Kn);return bn.includes(Kn)}),Mn}function qt(ne,Ce){const bn=(0,ce.Z)(Ce),Ln=[];return Ae(ne,(Ze,Mn)=>{const Vn=bn.indexOf(Ze);return Vn!==-1&&(Ln.push(Mn),bn.splice(Vn,1)),!!bn.length}),Ln}var ze=function(ne,Ce){var bn={};for(var Ln in ne)Object.prototype.hasOwnProperty.call(ne,Ln)&&Ce.indexOf(Ln)<0&&(bn[Ln]=ne[Ln]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Ln=Object.getOwnPropertySymbols(ne);Ze<Ln.length;Ze++)Ce.indexOf(Ln[Ze])<0&&Object.prototype.propertyIsEnumerable.call(ne,Ln[Ze])&&(bn[Ln[Ze]]=ne[Ln[Ze]]);return bn};function Wt(ne){const{isLeaf:Ce,expanded:bn}=ne;return Ce?Vt.createElement(re.Z,null):bn?Vt.createElement(Ie.Z,null):Vt.createElement(Kt,null)}function Ge(ne){let{treeData:Ce,children:bn}=ne;return Ce||(0,tt.zn)(bn)}const _e=(ne,Ce)=>{var{defaultExpandAll:bn,defaultExpandParent:Ln,defaultExpandedKeys:Ze}=ne,Mn=ze(ne,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Vn=Vt.useRef(),gi=Vt.useRef(),Kn=()=>{const{keyEntities:Te}=(0,tt.I8)(Ge(Mn));let ke;return bn?ke=Object.keys(Te):Ln?ke=(0,et.r7)(Mn.expandedKeys||Ze||[],Te):ke=Mn.expandedKeys||Ze,ke},[Bi,en]=Vt.useState(Mn.selectedKeys||Mn.defaultSelectedKeys||[]),[Li,Oi]=Vt.useState(()=>Kn());Vt.useEffect(()=>{"selectedKeys"in Mn&&en(Mn.selectedKeys)},[Mn.selectedKeys]),Vt.useEffect(()=>{"expandedKeys"in Mn&&Oi(Mn.expandedKeys)},[Mn.expandedKeys]);const Lt=(Te,ke)=>{var nn;return"expandedKeys"in Mn||Oi(Te),(nn=Mn.onExpand)===null||nn===void 0?void 0:nn.call(Mn,Te,ke)},Ot=(Te,ke)=>{var nn;const{multiple:Wn}=Mn,{node:an,nativeEvent:gn}=ke,{key:Bn=""}=an,ti=Ge(Mn),Rn=Object.assign(Object.assign({},ke),{selected:!0}),Ri=(gn==null?void 0:gn.ctrlKey)||(gn==null?void 0:gn.metaKey),dr=gn==null?void 0:gn.shiftKey;let Ji;Wn&&Ri?(Ji=Te,Vn.current=Bn,gi.current=Ji,Rn.selectedNodes=qt(ti,Ji)):Wn&&dr?(Ji=Array.from(new Set([].concat((0,ce.Z)(gi.current||[]),(0,ce.Z)(Pe({treeData:ti,expandedKeys:Li,startKey:Bn,endKey:Vn.current}))))),Rn.selectedNodes=qt(ti,Ji)):(Ji=[Bn],Vn.current=Bn,gi.current=Ji,Rn.selectedNodes=qt(ti,Ji)),(nn=Mn.onSelect)===null||nn===void 0||nn.call(Mn,Ji,Rn),"selectedKeys"in Mn||en(Ji)},{getPrefixCls:mt,direction:ft}=Vt.useContext(lt.E_),{prefixCls:pt,className:At,showIcon:le=!0,expandAction:xe="click"}=Mn,ae=ze(Mn,["prefixCls","className","showIcon","expandAction"]),ve=mt("tree",pt),Ue=Ct()(`${ve}-directory`,{[`${ve}-directory-rtl`]:ft==="rtl"},At);return Vt.createElement(se,Object.assign({icon:Wt,ref:Ce,blockNode:!0},ae,{showIcon:le,expandAction:xe,prefixCls:ve,className:Ue,expandedKeys:Li,selectedKeys:Bi,onSelect:Ot,onExpand:Lt}))};var We=Vt.forwardRef(_e);const Re=se;Re.DirectoryTree=We,Re.TreeNode=Mt.O;var ye=Re},20648:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{TM:function(){return $t},Yk:function(){return Kt}});var Mt=Ft(93083),ce=Ft(98447),re=Ft(17313),Ie=Ft(8378),ee=Ft(37613),Vt=Ft(83116);const Nt=new Mt.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}`}}}),te=(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:ht,nodeSelectedBg:dt,nodeHoverBg:xt}=et,It=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:Nt,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:ht,lineHeight:`${ht}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${et.motionDurationSlow}`,[`${lt}:hover &`]:{opacity:.45}},[`&${lt}-disabled`]:{[`${tt}-draggable-icon`]:{visibility:"hidden"}}}},[`${tt}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:ht}},[`${tt}-draggable-icon`]:{visibility:"hidden"},[`${tt}-switcher`]:Object.assign(Object.assign({},jt(Ct,et)),{position:"relative",flex:"none",alignSelf:"stretch",width:ht,margin:0,lineHeight:`${ht}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${tt}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:et.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ht/2,bottom:-rt,marginInlineStart:-1,borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:ht/2*.8,height:ht/2,borderBottom:`1px solid ${et.colorBorder}`,content:'""'}}}),[`${tt}-checkbox`]:{top:"initial",marginInlineEnd:It},[`${tt}-node-content-wrapper, ${tt}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:ht,margin:0,padding:`0 ${et.paddingXS/2}px`,color:"inherit",lineHeight:`${ht}px`,background:"transparent",borderRadius:et.borderRadius,cursor:"pointer",transition:`all ${et.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:xt},[`&${tt}-node-selected`]:{backgroundColor:dt},[`${tt}-iconEle`]:{display:"inline-block",width:ht,height:ht,lineHeight:`${ht}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${tt}-unselectable ${tt}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${tt}-node-content-wrapper`]:Object.assign({lineHeight:`${ht}px`,userSelect:"none"},te(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:ht/2,bottom:-rt,borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${tt}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${lt}-leaf-last`]:{[`${tt}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${ht/2}px !important`}}}}})}},oe=Ct=>{const{treeCls:et,treeNodeCls:tt,treeNodePadding:lt,directoryNodeSelectedBg:rt,directoryNodeSelectedColor:ht}=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:ht,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:rt},[`${et}-switcher`]:{color:ht},[`${et}-node-content-wrapper`]:{color:ht,background:"transparent"}}}}}},Kt=(Ct,et)=>{const tt=`.${Ct}`,lt=`${tt}-treenode`,rt=et.paddingXS/2,ht=(0,ee.TS)(et,{treeCls:tt,treeNodeCls:lt,treeNodePadding:rt});return[Pt(Ct,ht),oe(ht)]},$t=Ct=>{const{controlHeightSM:et}=Ct;return{titleHeight:et,nodeHoverBg:Ct.controlItemBgHover,nodeSelectedBg:Ct.controlItemBgActive}};Cn.ZP=(0,Vt.Z)("Tree",(Ct,et)=>{let{prefixCls:tt}=et;return[{[Ct.componentCls]:(0,ce.C2)(`${tt}-checkbox`,Ct)},Kt(tt,Ct),(0,Ie.Z)(Ct)]},Ct=>{const{colorTextLightSolid:et,colorPrimary:tt}=Ct;return Object.assign(Object.assign({},$t(Ct)),{directoryNodeSelectedColor:et,directoryNodeSelectedBg:tt})})},71997:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return lt}});var Mt=Ft(96663),ce=Ft(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"},Ie=re,ee=Ft(7657),Vt=function(ht,dt){return ce.createElement(ee.Z,(0,Mt.Z)({},ht,{ref:dt,icon:Ie}))},Nt=ce.forwardRef(Vt),jt=Nt,te=Ft(52671),Pt=Ft(58617),oe=Ft(15075),Kt=Ft(43531),$t=Ft(92310),Ct=Ft.n($t),et=Ft(92343),lt=rt=>{const{prefixCls:ht,switcherIcon:dt,treeNodeProps:xt,showLine:It}=rt,{isLeaf:Ut,expanded:Gt,loading:se}=xt;if(se)return ce.createElement(Pt.Z,{className:`${ht}-switcher-loading-icon`});let ue;if(It&&typeof It=="object"&&(ue=It.showLeafIcon),Ut){if(!It)return null;if(typeof ue!="boolean"&&ue){const qt=typeof ue=="function"?ue(xt):ue,ze=`${ht}-switcher-line-custom-icon`;return(0,et.l$)(qt)?(0,et.Tm)(qt,{className:Ct()(qt.props.className||"",ze)}):qt}return ue?ce.createElement(te.Z,{className:`${ht}-switcher-line-icon`}):ce.createElement("span",{className:`${ht}-switcher-leaf-line`})}const Ae=`${ht}-switcher-icon`,Pe=typeof dt=="function"?dt(xt):dt;return(0,et.l$)(Pe)?(0,et.Tm)(Pe,{className:Ct()(Pe.props.className||"",Ae)}):Pe!==void 0?Pe:It?Gt?ce.createElement(oe.Z,{className:`${ht}-switcher-line-icon`}):ce.createElement(Kt.Z,{className:`${ht}-switcher-line-icon`}):ce.createElement(jt,{className:Ae})}},86251:function(hi,Cn){"use strict";Cn.byteLength=Nt,Cn.toByteArray=te,Cn.fromByteArray=Kt;for(var Ft=[],Mt=[],ce=typeof Uint8Array!="undefined"?Uint8Array:Array,re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ie=0,ee=re.length;Ie<ee;++Ie)Ft[Ie]=re[Ie],Mt[re.charCodeAt(Ie)]=Ie;Mt[45]=62,Mt[95]=63;function Vt($t){var Ct=$t.length;if(Ct%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var et=$t.indexOf("=");et===-1&&(et=Ct);var tt=et===Ct?0:4-et%4;return[et,tt]}function Nt($t){var Ct=Vt($t),et=Ct[0],tt=Ct[1];return(et+tt)*3/4-tt}function jt($t,Ct,et){return(Ct+et)*3/4-et}function te($t){var Ct,et=Vt($t),tt=et[0],lt=et[1],rt=new ce(jt($t,tt,lt)),ht=0,dt=lt>0?tt-4:tt,xt;for(xt=0;xt<dt;xt+=4)Ct=Mt[$t.charCodeAt(xt)]<<18|Mt[$t.charCodeAt(xt+1)]<<12|Mt[$t.charCodeAt(xt+2)]<<6|Mt[$t.charCodeAt(xt+3)],rt[ht++]=Ct>>16&255,rt[ht++]=Ct>>8&255,rt[ht++]=Ct&255;return lt===2&&(Ct=Mt[$t.charCodeAt(xt)]<<2|Mt[$t.charCodeAt(xt+1)]>>4,rt[ht++]=Ct&255),lt===1&&(Ct=Mt[$t.charCodeAt(xt)]<<10|Mt[$t.charCodeAt(xt+1)]<<4|Mt[$t.charCodeAt(xt+2)]>>2,rt[ht++]=Ct>>8&255,rt[ht++]=Ct&255),rt}function Pt($t){return Ft[$t>>18&63]+Ft[$t>>12&63]+Ft[$t>>6&63]+Ft[$t&63]}function oe($t,Ct,et){for(var tt,lt=[],rt=Ct;rt<et;rt+=3)tt=($t[rt]<<16&16711680)+($t[rt+1]<<8&65280)+($t[rt+2]&255),lt.push(Pt(tt));return lt.join("")}function Kt($t){for(var Ct,et=$t.length,tt=et%3,lt=[],rt=16383,ht=0,dt=et-tt;ht<dt;ht+=rt)lt.push(oe($t,ht,ht+rt>dt?dt:ht+rt));return tt===1?(Ct=$t[et-1],lt.push(Ft[Ct>>2]+Ft[Ct<<4&63]+"==")):tt===2&&(Ct=($t[et-2]<<8)+$t[et-1],lt.push(Ft[Ct>>10]+Ft[Ct>>4&63]+Ft[Ct<<2&63]+"=")),lt.join("")}},19208:function(hi,Cn,Ft){"use strict";var Mt;var ce=Ft(86251),re=Ft(67467),Ie=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Cn.lW=jt,Mt=ht,Cn.h2=50;var ee=2147483647;Mt=ee,jt.TYPED_ARRAY_SUPPORT=Vt(),!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 Vt(){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 Nt(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 Kt(mt)}return te(mt,ft,pt)}jt.poolSize=8192;function te(mt,ft,pt){if(typeof mt=="string")return $t(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(Oi(mt,ArrayBuffer)||mt&&Oi(mt.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Oi(mt,SharedArrayBuffer)||mt&&Oi(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 le=lt(mt);if(le)return le;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 te(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?Nt(mt):ft!==void 0?typeof pt=="string"?Nt(mt).fill(ft,pt):Nt(mt).fill(ft):Nt(mt)}jt.alloc=function(mt,ft,pt){return oe(mt,ft,pt)};function Kt(mt){return Pt(mt),Nt(mt<0?0:rt(mt)|0)}jt.allocUnsafe=function(mt){return Kt(mt)},jt.allocUnsafeSlow=function(mt){return Kt(mt)};function $t(mt,ft){if((typeof ft!="string"||ft==="")&&(ft="utf8"),!jt.isEncoding(ft))throw new TypeError("Unknown encoding: "+ft);var pt=dt(mt,ft)|0,At=Nt(pt),le=At.write(mt,ft);return le!==pt&&(At=At.slice(0,le)),At}function Ct(mt){for(var ft=mt.length<0?0:rt(mt.length)|0,pt=Nt(ft),At=0;At<ft;At+=1)pt[At]=mt[At]&255;return pt}function et(mt){if(Oi(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=Nt(ft);return pt.length===0||mt.copy(pt,0,0,ft),pt}if(mt.length!==void 0)return typeof mt.length!="number"||Lt(mt.length)?Nt(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 ht(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(Oi(ft,Uint8Array)&&(ft=jt.from(ft,ft.offset,ft.byteLength)),Oi(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,le=pt.length,xe=0,ae=Math.min(At,le);xe<ae;++xe)if(ft[xe]!==pt[xe]){At=ft[xe],le=pt[xe];break}return At<le?-1:le<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 le=jt.allocUnsafe(pt),xe=0;for(At=0;At<ft.length;++At){var ae=ft[At];if(Oi(ae,Uint8Array))xe+ae.length>le.length?jt.from(ae).copy(le,xe):Uint8Array.prototype.set.call(le,ae,xe);else if(jt.isBuffer(ae))ae.copy(le,xe);else throw new TypeError('"list" argument must be an Array of Buffers');xe+=ae.length}return le};function dt(mt,ft){if(jt.isBuffer(mt))return mt.length;if(ArrayBuffer.isView(mt)||Oi(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 le=!1;;)switch(ft){case"ascii":case"latin1":case"binary":return pt;case"utf8":case"utf-8":return gi(mt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pt*2;case"hex":return pt>>>1;case"base64":return en(mt).length;default:if(le)return At?-1:gi(mt).length;ft=(""+ft).toLowerCase(),le=!0}}jt.byteLength=dt;function xt(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 Wt(this,ft,pt);case"ascii":return Me(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 ye(this,ft,pt);default:if(At)throw new TypeError("Unknown encoding: "+mt);mt=(mt+"").toLowerCase(),At=!0}}jt.prototype._isBuffer=!0;function It(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)It(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)It(this,pt,pt+3),It(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)It(this,pt,pt+7),It(this,pt+1,pt+6),It(this,pt+2,pt+5),It(this,pt+3,pt+4);return this},jt.prototype.toString=function(){var ft=this.length;return ft===0?"":arguments.length===0?Wt(this,0,ft):xt.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=Cn.h2;return ft=this.toString("hex",0,pt).replace(/(.{2})/g,"$1 ").trim(),this.length>pt&&(ft+=" ... "),"<Buffer "+ft+">"},Ie&&(jt.prototype[Ie]=jt.prototype.inspect),jt.prototype.compare=function(ft,pt,At,le,xe){if(Oi(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),le===void 0&&(le=0),xe===void 0&&(xe=this.length),pt<0||At>ft.length||le<0||xe>this.length)throw new RangeError("out of range index");if(le>=xe&&pt>=At)return 0;if(le>=xe)return-1;if(pt>=At)return 1;if(pt>>>=0,At>>>=0,le>>>=0,xe>>>=0,this===ft)return 0;for(var ae=xe-le,ve=At-pt,Ue=Math.min(ae,ve),Te=this.slice(le,xe),ke=ft.slice(pt,At),nn=0;nn<Ue;++nn)if(Te[nn]!==ke[nn]){ae=Te[nn],ve=ke[nn];break}return ae<ve?-1:ve<ae?1:0};function Ut(mt,ft,pt,At,le){if(mt.length===0)return-1;if(typeof pt=="string"?(At=pt,pt=0):pt>2147483647?pt=2147483647:pt<-2147483648&&(pt=-2147483648),pt=+pt,Lt(pt)&&(pt=le?0:mt.length-1),pt<0&&(pt=mt.length+pt),pt>=mt.length){if(le)return-1;pt=mt.length-1}else if(pt<0)if(le)pt=0;else return-1;if(typeof ft=="string"&&(ft=jt.from(ft,At)),jt.isBuffer(ft))return ft.length===0?-1:Gt(mt,ft,pt,At,le);if(typeof ft=="number")return ft=ft&255,typeof Uint8Array.prototype.indexOf=="function"?le?Uint8Array.prototype.indexOf.call(mt,ft,pt):Uint8Array.prototype.lastIndexOf.call(mt,ft,pt):Gt(mt,[ft],pt,At,le);throw new TypeError("val must be string, number or Buffer")}function Gt(mt,ft,pt,At,le){var xe=1,ae=mt.length,ve=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;xe=2,ae/=2,ve/=2,pt/=2}function Ue(an,gn){return xe===1?an[gn]:an.readUInt16BE(gn*xe)}var Te;if(le){var ke=-1;for(Te=pt;Te<ae;Te++)if(Ue(mt,Te)===Ue(ft,ke===-1?0:Te-ke)){if(ke===-1&&(ke=Te),Te-ke+1===ve)return ke*xe}else ke!==-1&&(Te-=Te-ke),ke=-1}else for(pt+ve>ae&&(pt=ae-ve),Te=pt;Te>=0;Te--){for(var nn=!0,Wn=0;Wn<ve;Wn++)if(Ue(mt,Te+Wn)!==Ue(ft,Wn)){nn=!1;break}if(nn)return Te}return-1}jt.prototype.includes=function(ft,pt,At){return this.indexOf(ft,pt,At)!==-1},jt.prototype.indexOf=function(ft,pt,At){return Ut(this,ft,pt,At,!0)},jt.prototype.lastIndexOf=function(ft,pt,At){return Ut(this,ft,pt,At,!1)};function se(mt,ft,pt,At){pt=Number(pt)||0;var le=mt.length-pt;At?(At=Number(At),At>le&&(At=le)):At=le;var xe=ft.length;At>xe/2&&(At=xe/2);for(var ae=0;ae<At;++ae){var ve=parseInt(ft.substr(ae*2,2),16);if(Lt(ve))return ae;mt[pt+ae]=ve}return ae}function ue(mt,ft,pt,At){return Li(gi(ft,mt.length-pt),mt,pt,At)}function Ae(mt,ft,pt,At){return Li(Kn(ft),mt,pt,At)}function Pe(mt,ft,pt,At){return Li(en(ft),mt,pt,At)}function qt(mt,ft,pt,At){return Li(Bi(ft,mt.length-pt),mt,pt,At)}jt.prototype.write=function(ft,pt,At,le){if(pt===void 0)le="utf8",At=this.length,pt=0;else if(At===void 0&&typeof pt=="string")le=pt,At=this.length,pt=0;else if(isFinite(pt))pt=pt>>>0,isFinite(At)?(At=At>>>0,le===void 0&&(le="utf8")):(le=At,At=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var xe=this.length-pt;if((At===void 0||At>xe)&&(At=xe),ft.length>0&&(At<0||pt<0)||pt>this.length)throw new RangeError("Attempt to write outside buffer bounds");le||(le="utf8");for(var ae=!1;;)switch(le){case"hex":return se(this,ft,pt,At);case"utf8":case"utf-8":return ue(this,ft,pt,At);case"ascii":case"latin1":case"binary":return Ae(this,ft,pt,At);case"base64":return Pe(this,ft,pt,At);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qt(this,ft,pt,At);default:if(ae)throw new TypeError("Unknown encoding: "+le);le=(""+le).toLowerCase(),ae=!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 Wt(mt,ft,pt){pt=Math.min(mt.length,pt);for(var At=[],le=ft;le<pt;){var xe=mt[le],ae=null,ve=xe>239?4:xe>223?3:xe>191?2:1;if(le+ve<=pt){var Ue,Te,ke,nn;switch(ve){case 1:xe<128&&(ae=xe);break;case 2:Ue=mt[le+1],(Ue&192)===128&&(nn=(xe&31)<<6|Ue&63,nn>127&&(ae=nn));break;case 3:Ue=mt[le+1],Te=mt[le+2],(Ue&192)===128&&(Te&192)===128&&(nn=(xe&15)<<12|(Ue&63)<<6|Te&63,nn>2047&&(nn<55296||nn>57343)&&(ae=nn));break;case 4:Ue=mt[le+1],Te=mt[le+2],ke=mt[le+3],(Ue&192)===128&&(Te&192)===128&&(ke&192)===128&&(nn=(xe&15)<<18|(Ue&63)<<12|(Te&63)<<6|ke&63,nn>65535&&nn<1114112&&(ae=nn))}}ae===null?(ae=65533,ve=1):ae>65535&&(ae-=65536,At.push(ae>>>10&1023|55296),ae=56320|ae&1023),At.push(ae),le+=ve}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 Me(mt,ft,pt){var At="";pt=Math.min(mt.length,pt);for(var le=ft;le<pt;++le)At+=String.fromCharCode(mt[le]&127);return At}function We(mt,ft,pt){var At="";pt=Math.min(mt.length,pt);for(var le=ft;le<pt;++le)At+=String.fromCharCode(mt[le]);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 le="",xe=ft;xe<pt;++xe)le+=Ot[mt[xe]];return le}function ye(mt,ft,pt){for(var At=mt.slice(ft,pt),le="",xe=0;xe<At.length-1;xe+=2)le+=String.fromCharCode(At[xe]+At[xe+1]*256);return le}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 le=this.subarray(ft,pt);return Object.setPrototypeOf(le,jt.prototype),le};function ne(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||ne(ft,pt,this.length);for(var le=this[ft],xe=1,ae=0;++ae<pt&&(xe*=256);)le+=this[ft+ae]*xe;return le},jt.prototype.readUintBE=jt.prototype.readUIntBE=function(ft,pt,At){ft=ft>>>0,pt=pt>>>0,At||ne(ft,pt,this.length);for(var le=this[ft+--pt],xe=1;pt>0&&(xe*=256);)le+=this[ft+--pt]*xe;return le},jt.prototype.readUint8=jt.prototype.readUInt8=function(ft,pt){return ft=ft>>>0,pt||ne(ft,1,this.length),this[ft]},jt.prototype.readUint16LE=jt.prototype.readUInt16LE=function(ft,pt){return ft=ft>>>0,pt||ne(ft,2,this.length),this[ft]|this[ft+1]<<8},jt.prototype.readUint16BE=jt.prototype.readUInt16BE=function(ft,pt){return ft=ft>>>0,pt||ne(ft,2,this.length),this[ft]<<8|this[ft+1]},jt.prototype.readUint32LE=jt.prototype.readUInt32LE=function(ft,pt){return ft=ft>>>0,pt||ne(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||ne(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||ne(ft,pt,this.length);for(var le=this[ft],xe=1,ae=0;++ae<pt&&(xe*=256);)le+=this[ft+ae]*xe;return xe*=128,le>=xe&&(le-=Math.pow(2,8*pt)),le},jt.prototype.readIntBE=function(ft,pt,At){ft=ft>>>0,pt=pt>>>0,At||ne(ft,pt,this.length);for(var le=pt,xe=1,ae=this[ft+--le];le>0&&(xe*=256);)ae+=this[ft+--le]*xe;return xe*=128,ae>=xe&&(ae-=Math.pow(2,8*pt)),ae},jt.prototype.readInt8=function(ft,pt){return ft=ft>>>0,pt||ne(ft,1,this.length),this[ft]&128?(255-this[ft]+1)*-1:this[ft]},jt.prototype.readInt16LE=function(ft,pt){ft=ft>>>0,pt||ne(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||ne(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||ne(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||ne(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||ne(ft,4,this.length),re.read(this,ft,!0,23,4)},jt.prototype.readFloatBE=function(ft,pt){return ft=ft>>>0,pt||ne(ft,4,this.length),re.read(this,ft,!1,23,4)},jt.prototype.readDoubleLE=function(ft,pt){return ft=ft>>>0,pt||ne(ft,8,this.length),re.read(this,ft,!0,52,8)},jt.prototype.readDoubleBE=function(ft,pt){return ft=ft>>>0,pt||ne(ft,8,this.length),re.read(this,ft,!1,52,8)};function Ce(mt,ft,pt,At,le,xe){if(!jt.isBuffer(mt))throw new TypeError('"buffer" argument must be a Buffer instance');if(ft>le||ft<xe)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,le){if(ft=+ft,pt=pt>>>0,At=At>>>0,!le){var xe=Math.pow(2,8*At)-1;Ce(this,ft,pt,At,xe,0)}var ae=1,ve=0;for(this[pt]=ft&255;++ve<At&&(ae*=256);)this[pt+ve]=ft/ae&255;return pt+At},jt.prototype.writeUintBE=jt.prototype.writeUIntBE=function(ft,pt,At,le){if(ft=+ft,pt=pt>>>0,At=At>>>0,!le){var xe=Math.pow(2,8*At)-1;Ce(this,ft,pt,At,xe,0)}var ae=At-1,ve=1;for(this[pt+ae]=ft&255;--ae>=0&&(ve*=256);)this[pt+ae]=ft/ve&255;return pt+At},jt.prototype.writeUint8=jt.prototype.writeUInt8=function(ft,pt,At){return ft=+ft,pt=pt>>>0,At||Ce(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||Ce(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||Ce(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||Ce(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||Ce(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,le){if(ft=+ft,pt=pt>>>0,!le){var xe=Math.pow(2,8*At-1);Ce(this,ft,pt,At,xe-1,-xe)}var ae=0,ve=1,Ue=0;for(this[pt]=ft&255;++ae<At&&(ve*=256);)ft<0&&Ue===0&&this[pt+ae-1]!==0&&(Ue=1),this[pt+ae]=(ft/ve>>0)-Ue&255;return pt+At},jt.prototype.writeIntBE=function(ft,pt,At,le){if(ft=+ft,pt=pt>>>0,!le){var xe=Math.pow(2,8*At-1);Ce(this,ft,pt,At,xe-1,-xe)}var ae=At-1,ve=1,Ue=0;for(this[pt+ae]=ft&255;--ae>=0&&(ve*=256);)ft<0&&Ue===0&&this[pt+ae+1]!==0&&(Ue=1),this[pt+ae]=(ft/ve>>0)-Ue&255;return pt+At},jt.prototype.writeInt8=function(ft,pt,At){return ft=+ft,pt=pt>>>0,At||Ce(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||Ce(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||Ce(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||Ce(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||Ce(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,le,xe){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,le){return ft=+ft,pt=pt>>>0,le||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 Ze(mt,ft,pt,At,le){return ft=+ft,pt=pt>>>0,le||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 Ze(this,ft,pt,!0,At)},jt.prototype.writeDoubleBE=function(ft,pt,At){return Ze(this,ft,pt,!1,At)},jt.prototype.copy=function(ft,pt,At,le){if(!jt.isBuffer(ft))throw new TypeError("argument should be a Buffer");if(At||(At=0),!le&&le!==0&&(le=this.length),pt>=ft.length&&(pt=ft.length),pt||(pt=0),le>0&&le<At&&(le=At),le===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(le<0)throw new RangeError("sourceEnd out of bounds");le>this.length&&(le=this.length),ft.length-pt<le-At&&(le=ft.length-pt+At);var xe=le-At;return this===ft&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(pt,At,le):Uint8Array.prototype.set.call(ft,this.subarray(At,le),pt),xe},jt.prototype.fill=function(ft,pt,At,le){if(typeof ft=="string"){if(typeof pt=="string"?(le=pt,pt=0,At=this.length):typeof At=="string"&&(le=At,At=this.length),le!==void 0&&typeof le!="string")throw new TypeError("encoding must be a string");if(typeof le=="string"&&!jt.isEncoding(le))throw new TypeError("Unknown encoding: "+le);if(ft.length===1){var xe=ft.charCodeAt(0);(le==="utf8"&&xe<128||le==="latin1")&&(ft=xe)}}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 ae;if(typeof ft=="number")for(ae=pt;ae<At;++ae)this[ae]=ft;else{var ve=jt.isBuffer(ft)?ft:jt.from(ft,le),Ue=ve.length;if(Ue===0)throw new TypeError('The value "'+ft+'" is invalid for argument "value"');for(ae=0;ae<At-pt;++ae)this[ae+pt]=ve[ae%Ue]}return this};var Mn=/[^+/0-9A-Za-z-_]/g;function Vn(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 gi(mt,ft){ft=ft||1/0;for(var pt,At=mt.length,le=null,xe=[],ae=0;ae<At;++ae){if(pt=mt.charCodeAt(ae),pt>55295&&pt<57344){if(!le){if(pt>56319){(ft-=3)>-1&&xe.push(239,191,189);continue}else if(ae+1===At){(ft-=3)>-1&&xe.push(239,191,189);continue}le=pt;continue}if(pt<56320){(ft-=3)>-1&&xe.push(239,191,189),le=pt;continue}pt=(le-55296<<10|pt-56320)+65536}else le&&(ft-=3)>-1&&xe.push(239,191,189);if(le=null,pt<128){if((ft-=1)<0)break;xe.push(pt)}else if(pt<2048){if((ft-=2)<0)break;xe.push(pt>>6|192,pt&63|128)}else if(pt<65536){if((ft-=3)<0)break;xe.push(pt>>12|224,pt>>6&63|128,pt&63|128)}else if(pt<1114112){if((ft-=4)<0)break;xe.push(pt>>18|240,pt>>12&63|128,pt>>6&63|128,pt&63|128)}else throw new Error("Invalid code point")}return xe}function Kn(mt){for(var ft=[],pt=0;pt<mt.length;++pt)ft.push(mt.charCodeAt(pt)&255);return ft}function Bi(mt,ft){for(var pt,At,le,xe=[],ae=0;ae<mt.length&&!((ft-=2)<0);++ae)pt=mt.charCodeAt(ae),At=pt>>8,le=pt%256,xe.push(le),xe.push(At);return xe}function en(mt){return ce.toByteArray(Vn(mt))}function Li(mt,ft,pt,At){for(var le=0;le<At&&!(le+pt>=ft.length||le>=mt.length);++le)ft[le+pt]=mt[le];return le}function Oi(mt,ft){return mt instanceof ft||mt!=null&&mt.constructor!=null&&mt.constructor.name!=null&&mt.constructor.name===ft.name}function Lt(mt){return mt!==mt}var Ot=function(){for(var mt="0123456789abcdef",ft=new Array(256),pt=0;pt<16;++pt)for(var At=pt*16,le=0;le<16;++le)ft[At+le]=mt[pt]+mt[le];return ft}()},57780:function(hi,Cn,Ft){"use strict";Ft.r(Cn),Ft.d(Cn,{clsx:function(){return ce}});function Mt(re){var Ie,ee,Vt="";if(typeof re=="string"||typeof re=="number")Vt+=re;else if(typeof re=="object")if(Array.isArray(re))for(Ie=0;Ie<re.length;Ie++)re[Ie]&&(ee=Mt(re[Ie]))&&(Vt&&(Vt+=" "),Vt+=ee);else for(Ie in re)re[Ie]&&(Vt&&(Vt+=" "),Vt+=Ie);return Vt}function ce(){for(var re,Ie,ee=0,Vt="";ee<arguments.length;)(re=arguments[ee++])&&(Ie=Mt(re))&&(Vt&&(Vt+=" "),Vt+=Ie);return Vt}Cn.default=ce},99498:function(hi,Cn,Ft){(function(Mt){Mt(Ft(89780))})(function(Mt){Mt.defineOption("placeholder","",function(jt,te,Pt){var oe=Pt&&Pt!=Mt.Init;if(te&&!oe)jt.on("blur",ee),jt.on("change",Vt),jt.on("swapDoc",Vt),Mt.on(jt.getInputField(),"compositionupdate",jt.state.placeholderCompose=function(){Ie(jt)}),Vt(jt);else if(!te&&oe){jt.off("blur",ee),jt.off("change",Vt),jt.off("swapDoc",Vt),Mt.off(jt.getInputField(),"compositionupdate",jt.state.placeholderCompose),ce(jt);var Kt=jt.getWrapperElement();Kt.className=Kt.className.replace(" CodeMirror-empty","")}te&&!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 te=jt.state.placeholder=document.createElement("pre");te.style.cssText="height: 0; overflow: visible",te.style.direction=jt.getOption("direction"),te.className="CodeMirror-placeholder CodeMirror-line-like";var Pt=jt.getOption("placeholder");typeof Pt=="string"&&(Pt=document.createTextNode(Pt)),te.appendChild(Pt),jt.display.lineSpace.insertBefore(te,jt.display.lineSpace.firstChild)}function Ie(jt){setTimeout(function(){var te=!1,Pt=jt.getInputField();Pt.nodeName=="TEXTAREA"?te=!Pt.value:jt.lineCount()==1&&(te=!/[^\u200b]/.test(Pt.querySelector(".CodeMirror-line").textContent)),te?re(jt):ce(jt)},20)}function ee(jt){Nt(jt)&&re(jt)}function Vt(jt){var te=jt.getWrapperElement(),Pt=Nt(jt);te.className=te.className.replace(" CodeMirror-empty","")+(Pt?" CodeMirror-empty":""),Pt?re(jt):ce(jt)}function Nt(jt){return jt.lineCount()===1&&jt.getLine(0)===""}})},25717:function(hi,Cn,Ft){(function(Mt){Mt(Ft(89780))})(function(Mt){var ce={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},re=Mt.Pos;Mt.defineOption("autoCloseBrackets",!1,function(et,tt,lt){lt&<!=Mt.Init&&(et.removeKeyMap(ee),et.state.closeBrackets=null),tt&&(Vt(Ie(tt,"pairs")),et.state.closeBrackets=tt,et.addKeyMap(ee))});function Ie(et,tt){return tt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[tt]!=null?et[tt]:ce[tt]}var ee={Backspace:te,Enter:Pt};function Vt(et){for(var tt=0;tt<et.length;tt++){var lt=et.charAt(tt),rt="'"+lt+"'";ee[rt]||(ee[rt]=Nt(lt))}}Vt(ce.pairs+"`");function Nt(et){return function(tt){return Kt(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 te(et){var tt=jt(et);if(!tt||et.getOption("disableInput"))return Mt.Pass;for(var lt=Ie(tt,"pairs"),rt=et.listSelections(),ht=0;ht<rt.length;ht++){if(!rt[ht].empty())return Mt.Pass;var dt=$t(et,rt[ht].head);if(!dt||lt.indexOf(dt)%2!=0)return Mt.Pass}for(var ht=rt.length-1;ht>=0;ht--){var xt=rt[ht].head;et.replaceRange("",re(xt.line,xt.ch-1),re(xt.line,xt.ch+1),"+delete")}}function Pt(et){var tt=jt(et),lt=tt&&Ie(tt,"explode");if(!lt||et.getOption("disableInput"))return Mt.Pass;for(var rt=et.listSelections(),ht=0;ht<rt.length;ht++){if(!rt[ht].empty())return Mt.Pass;var dt=$t(et,rt[ht].head);if(!dt||lt.indexOf(dt)%2!=0)return Mt.Pass}et.operation(function(){var xt=et.lineSeparator()||`
|
|
|
`;et.replaceSelection(xt+xt,null),et.execCommand("goCharLeft"),rt=et.listSelections();for(var It=0;It<rt.length;It++){var Ut=rt[It].head.line;et.indentLine(Ut,null,!0),et.indentLine(Ut+1,null,!0)}})}function oe(et){var tt=Mt.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 Kt(et,tt){var lt=jt(et);if(!lt||et.getOption("disableInput"))return Mt.Pass;var rt=Ie(lt,"pairs"),ht=rt.indexOf(tt);if(ht==-1)return Mt.Pass;for(var dt=Ie(lt,"closeBefore"),xt=Ie(lt,"triples"),It=rt.charAt(ht+1)==tt,Ut=et.listSelections(),Gt=ht%2==0,se,ue=0;ue<Ut.length;ue++){var Ae=Ut[ue],Pe=Ae.head,qt,ze=et.getRange(Pe,re(Pe.line,Pe.ch+1));if(Gt&&!Ae.empty())qt="surround";else if((It||!Gt)&&ze==tt)It&&Ct(et,Pe)?qt="both":xt.indexOf(tt)>=0&&et.getRange(Pe,re(Pe.line,Pe.ch+3))==tt+tt+tt?qt="skipThree":qt="skip";else if(It&&Pe.ch>1&&xt.indexOf(tt)>=0&&et.getRange(re(Pe.line,Pe.ch-2),Pe)==tt+tt){if(Pe.ch>2&&/\bstring/.test(et.getTokenTypeAt(re(Pe.line,Pe.ch-2))))return Mt.Pass;qt="addFour"}else if(It){var Wt=Pe.ch==0?" ":et.getRange(re(Pe.line,Pe.ch-1),Pe);if(!Mt.isWordChar(ze)&&Wt!=tt&&!Mt.isWordChar(Wt))qt="both";else return Mt.Pass}else if(Gt&&(ze.length===0||/\s/.test(ze)||dt.indexOf(ze)>-1))qt="both";else return Mt.Pass;if(!se)se=qt;else if(se!=qt)return Mt.Pass}var Ge=ht%2?rt.charAt(ht-1):tt,_e=ht%2?tt:rt.charAt(ht+1);et.operation(function(){if(se=="skip")et.execCommand("goCharRight");else if(se=="skipThree")for(var Me=0;Me<3;Me++)et.execCommand("goCharRight");else if(se=="surround"){for(var We=et.getSelections(),Me=0;Me<We.length;Me++)We[Me]=Ge+We[Me]+_e;et.replaceSelections(We,"around"),We=et.listSelections().slice();for(var Me=0;Me<We.length;Me++)We[Me]=oe(We[Me]);et.setSelections(We)}else se=="both"?(et.replaceSelection(Ge+_e,null),et.triggerElectric(Ge+_e),et.execCommand("goCharLeft")):se=="addFour"&&(et.replaceSelection(Ge+Ge+Ge+Ge,"before"),et.execCommand("goCharRight"))})}function $t(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)&<.start==tt.ch&&(tt.ch==0||!/\bstring/.test(et.getTokenTypeAt(tt)))}})},6313:function(hi,Cn,Ft){(function(Mt){Mt(Ft(89780),Ft(32855))})(function(Mt){Mt.defineOption("autoCloseTags",!1,function(te,Pt,oe){if(oe!=Mt.Init&&oe&&te.removeKeyMap("autoCloseTags"),!!Pt){var Kt={name:"autoCloseTags"};(typeof Pt!="object"||Pt.whenClosing!==!1)&&(Kt["'/'"]=function($t){return Vt($t)}),(typeof Pt!="object"||Pt.whenOpening!==!1)&&(Kt["'>'"]=function($t){return Ie($t)}),te.addKeyMap(Kt)}});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 Ie(te){if(te.getOption("disableInput"))return Mt.Pass;for(var Pt=te.listSelections(),oe=[],Kt=te.getOption("autoCloseTags"),$t=0;$t<Pt.length;$t++){if(!Pt[$t].empty())return Mt.Pass;var Ct=Pt[$t].head,et=te.getTokenAt(Ct),tt=Mt.innerMode(te.getMode(),et.state),lt=tt.state,rt=tt.mode.xmlCurrentTag&&tt.mode.xmlCurrentTag(lt),ht=rt&&rt.name;if(!ht)return Mt.Pass;var dt=tt.mode.configuration=="html",xt=typeof Kt=="object"&&Kt.dontCloseTags||dt&&ce,It=typeof Kt=="object"&&Kt.indentTags||dt&&re;et.end>Ct.ch&&(ht=ht.slice(0,ht.length-et.end+Ct.ch));var Ut=ht.toLowerCase();if(!ht||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||xt&&Nt(xt,Ut)>-1||jt(te,tt.mode.xmlCurrentContext&&tt.mode.xmlCurrentContext(lt)||[],ht,Ct,!0))return Mt.Pass;var Gt=typeof Kt=="object"&&Kt.emptyTags;if(Gt&&Nt(Gt,ht)>-1){oe[$t]={text:"/>",newPos:Mt.Pos(Ct.line,Ct.ch+2)};continue}var se=It&&Nt(It,Ut)>-1;oe[$t]={indent:se,text:">"+(se?`
|
|
|
|
|
|
`:"")+"</"+ht+">",newPos:se?Mt.Pos(Ct.line+1,0):Mt.Pos(Ct.line,Ct.ch+1)}}for(var ue=typeof Kt=="object"&&Kt.dontIndentOnAutoClose,$t=Pt.length-1;$t>=0;$t--){var Ae=oe[$t];te.replaceRange(Ae.text,Pt[$t].head,Pt[$t].anchor,"+insert");var Pe=te.listSelections().slice(0);Pe[$t]={head:Ae.newPos,anchor:Ae.newPos},te.setSelections(Pe),!ue&&Ae.indent&&(te.indentLine(Ae.newPos.line,null,!0),te.indentLine(Ae.newPos.line+1,null,!0))}}function ee(te,Pt){for(var oe=te.listSelections(),Kt=[],$t=Pt?"/":"</",Ct=te.getOption("autoCloseTags"),et=typeof Ct=="object"&&Ct.dontIndentOnSlash,tt=0;tt<oe.length;tt++){if(!oe[tt].empty())return Mt.Pass;var lt=oe[tt].head,rt=te.getTokenAt(lt),ht=Mt.innerMode(te.getMode(),rt.state),dt=ht.state;if(Pt&&(rt.type=="string"||rt.string.charAt(0)!="<"||rt.start!=lt.ch-1))return Mt.Pass;var xt,It=ht.mode.name!="xml"&&te.getMode().name=="htmlmixed";if(It&&ht.mode.name=="javascript")xt=$t+"script";else if(It&&ht.mode.name=="css")xt=$t+"style";else{var Ut=ht.mode.xmlCurrentContext&&ht.mode.xmlCurrentContext(dt);if(!Ut||Ut.length&&jt(te,Ut,Ut[Ut.length-1],lt))return Mt.Pass;xt=$t+Ut[Ut.length-1]}te.getLine(lt.line).charAt(rt.end)!=">"&&(xt+=">"),Kt[tt]=xt}if(te.replaceSelections(Kt),oe=te.listSelections(),!et)for(var tt=0;tt<oe.length;tt++)(tt==oe.length-1||oe[tt].head.line<oe[tt+1].head.line)&&te.indentLine(oe[tt].head.line)}function Vt(te){return te.getOption("disableInput")?Mt.Pass:ee(te,!0)}Mt.commands.closeTag=function(te){return ee(te)};function Nt(te,Pt){if(te.indexOf)return te.indexOf(Pt);for(var oe=0,Kt=te.length;oe<Kt;++oe)if(te[oe]==Pt)return oe;return-1}function jt(te,Pt,oe,Kt,$t){if(!Mt.scanForClosingTag)return!1;var Ct=Math.min(te.lastLine()+1,Kt.line+500),et=Mt.scanForClosingTag(te,Kt,null,Ct);if(!et||et.tag!=oe)return!1;for(var tt=$t?1:0,lt=Pt.length-1;lt>=0&&Pt[lt]==oe;lt--)++tt;Kt=et.to;for(var lt=1;lt<tt;lt++){var rt=Mt.scanForClosingTag(te,Kt,null,Ct);if(!rt||rt.tag!=oe)return!1;Kt=rt.to}return!0}})},32855:function(hi,Cn,Ft){(function(Mt){Mt(Ft(89780))})(function(Mt){"use strict";var ce=Mt.Pos;function re(lt,rt){return lt.line-rt.line||lt.ch-rt.ch}var Ie="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=Ie+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Vt=new RegExp("<(/?)(["+Ie+"]["+ee+"]*)","g");function Nt(lt,rt,ht,dt){this.line=rt,this.ch=ht,this.cm=lt,this.text=lt.getLine(rt),this.min=dt?Math.max(dt.from,lt.firstLine()):lt.firstLine(),this.max=dt?Math.min(dt.to-1,lt.lastLine()):lt.lastLine()}function jt(lt,rt){var ht=lt.cm.getTokenTypeAt(ce(lt.line,rt));return ht&&/\btag\b/.test(ht)}function te(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(te(lt))continue;return}if(!jt(lt,rt+1)){lt.ch=rt+1;continue}var ht=lt.text.lastIndexOf("/",rt),dt=ht>-1&&!/\S/.test(lt.text.slice(ht+1,rt));return lt.ch=rt+1,dt?"selfClose":"regular"}}function Kt(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}Vt.lastIndex=rt,lt.ch=rt;var ht=Vt.exec(lt.text);if(ht&&ht.index==rt)return ht}}function $t(lt){for(;;){Vt.lastIndex=lt.ch;var rt=Vt.exec(lt.text);if(!rt){if(te(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 ht=lt.text.lastIndexOf("/",rt),dt=ht>-1&&!/\S/.test(lt.text.slice(ht+1,rt));return lt.ch=rt+1,dt?"selfClose":"regular"}}function et(lt,rt){for(var ht=[];;){var dt=$t(lt),xt,It=lt.line,Ut=lt.ch-(dt?dt[0].length:0);if(!dt||!(xt=oe(lt)))return;if(xt!="selfClose")if(dt[1]){for(var Gt=ht.length-1;Gt>=0;--Gt)if(ht[Gt]==dt[2]){ht.length=Gt;break}if(Gt<0&&(!rt||rt==dt[2]))return{tag:dt[2],from:ce(It,Ut),to:ce(lt.line,lt.ch)}}else ht.push(dt[2])}}function tt(lt,rt){for(var ht=[];;){var dt=Ct(lt);if(!dt)return;if(dt=="selfClose"){Kt(lt);continue}var xt=lt.line,It=lt.ch,Ut=Kt(lt);if(!Ut)return;if(Ut[1])ht.push(Ut[2]);else{for(var Gt=ht.length-1;Gt>=0;--Gt)if(ht[Gt]==Ut[2]){ht.length=Gt;break}if(Gt<0&&(!rt||rt==Ut[2]))return{tag:Ut[2],from:ce(lt.line,lt.ch),to:ce(xt,It)}}}}Mt.registerHelper("fold","xml",function(lt,rt){for(var ht=new Nt(lt,rt.line,0);;){var dt=$t(ht);if(!dt||ht.line!=rt.line)return;var xt=oe(ht);if(!xt)return;if(!dt[1]&&xt!="selfClose"){var It=ce(ht.line,ht.ch),Ut=et(ht,dt[2]);return Ut&&re(Ut.from,It)>0?{from:It,to:Ut.from}:null}}}),Mt.findMatchingTag=function(lt,rt,ht){var dt=new Nt(lt,rt.line,rt.ch,ht);if(!(dt.text.indexOf(">")==-1&&dt.text.indexOf("<")==-1)){var xt=oe(dt),It=xt&&ce(dt.line,dt.ch),Ut=xt&&Kt(dt);if(!(!xt||!Ut||re(dt,rt)>0)){var Gt={from:ce(dt.line,dt.ch),to:It,tag:Ut[2]};return xt=="selfClose"?{open:Gt,close:null,at:"open"}:Ut[1]?{open:tt(dt,Ut[2]),close:Gt,at:"close"}:(dt=new Nt(lt,It.line,It.ch,ht),{open:Gt,close:et(dt,Ut[2]),at:"open"})}}},Mt.findEnclosingTag=function(lt,rt,ht,dt){for(var xt=new Nt(lt,rt.line,rt.ch,ht);;){var It=tt(xt,dt);if(!It)break;var Ut=new Nt(lt,rt.line,rt.ch,ht),Gt=et(Ut,It.tag);if(Gt)return{open:It,close:Gt}}},Mt.scanForClosingTag=function(lt,rt,ht,dt){var xt=new Nt(lt,rt.line,rt.ch,dt?{from:0,to:dt}:null);return et(xt,ht)}})},89780:function(hi){(function(Cn,Ft){hi.exports=Ft()})(this,function(){"use strict";var Cn=navigator.userAgent,Ft=navigator.platform,Mt=/gecko\/\d/i.test(Cn),ce=/MSIE \d/.test(Cn),re=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Cn),Ie=/Edge\/(\d+)/.exec(Cn),ee=ce||re||Ie,Vt=ee&&(ce?document.documentMode||6:+(Ie||re)[1]),Nt=!Ie&&/WebKit\//.test(Cn),jt=Nt&&/Qt\/\d+\.\d+/.test(Cn),te=!Ie&&/Chrome\//.test(Cn),Pt=/Opera\//.test(Cn),oe=/Apple Computer/.test(navigator.vendor),Kt=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Cn),$t=/PhantomJS/.test(Cn),Ct=!Ie&&/AppleWebKit/.test(Cn)&&/Mobile\/\w+/.test(Cn),et=/Android/.test(Cn),tt=Ct||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Cn),lt=Ct||/Mac/.test(Ft),rt=/\bCrOS\b/.test(Cn),ht=/win/i.test(Ft),dt=Pt&&Cn.match(/Version\/(\d*\.\d*)/);dt&&(dt=Number(dt[1])),dt&&dt>=15&&(Pt=!1,Nt=!0);var xt=lt&&(jt||Pt&&(dt==null||dt<12.11)),It=Mt||ee&&Vt>=9;function Ut(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Gt=function(it,st){var vt=it.className,gt=Ut(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 se(it){for(var st=it.childNodes.length;st>0;--st)it.removeChild(it.firstChild);return it}function ue(it,st){return se(it).appendChild(st)}function Ae(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 Jt=0;Jt<st.length;++Jt)Bt.appendChild(st[Jt]);return Bt}function Pe(it,st,vt,gt){var Bt=Ae(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 Wt(){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;Ut(st).test(vt)||(it.className+=(vt?" ":"")+st)}function _e(it,st){for(var vt=it.split(" "),gt=0;gt<vt.length;gt++)vt[gt]&&!Ut(vt[gt]).test(st)&&(st+=" "+vt[gt]);return st}var Me=function(it){it.select()};Ct?Me=function(it){it.selectionStart=0,it.selectionEnd=it.value.length}:ee&&(Me=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 ye(it,st,vt,gt,Bt){st==null&&(st=it.search(/[^\s\u00a0]/),st==-1&&(st=it.length));for(var Jt=gt||0,Se=Bt||0;;){var je=it.indexOf(" ",Jt);if(je<0||je>=st)return Se+(st-Jt);Se+=je-Jt,Se+=vt-Se%vt,Jt=je+1}}var ne=function(){this.id=null,this.f=null,this.time=0,this.handler=We(this.onTimeout,this)};ne.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},ne.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 Ce(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"}},Ze={scroll:!1},Mn={origin:"*mouse"},Vn={origin:"+move"};function gi(it,st,vt){for(var gt=0,Bt=0;;){var Jt=it.indexOf(" ",gt);Jt==-1&&(Jt=it.length);var Se=Jt-gt;if(Jt==it.length||Bt+Se>=st)return gt+Math.min(Se,st-Bt);if(Bt+=Jt-gt,Bt+=vt-Bt%vt,gt=Jt+1,Bt>=st)return gt}}var Kn=[""];function Bi(it){for(;Kn.length<=it;)Kn.push(en(Kn)+" ");return Kn[it]}function en(it){return it[it.length-1]}function Li(it,st){for(var vt=[],gt=0;gt<it.length;gt++)vt[gt]=st(it[gt],gt);return vt}function Oi(it,st,vt){for(var gt=0,Bt=vt(st);gt<it.length&&vt(it[gt])<=Bt;)gt++;it.splice(gt,0,st)}function Lt(){}function Ot(it,st){var vt;return Object.create?vt=Object.create(it):(Lt.prototype=it,vt=new Lt),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 le=/[\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 xe(it){return it.charCodeAt(0)>=768&&le.test(it)}function ae(it,st,vt){for(;(vt<0?st>0:st<it.length)&&xe(it.charAt(st));)st+=vt;return st}function ve(it,st,vt){for(var gt=st>vt?-1:1;;){if(st==vt)return st;var Bt=(st+vt)/2,Jt=gt<0?Math.ceil(Bt):Math.floor(Bt);if(Jt==st)return it(Jt)?st:vt;it(Jt)?vt=Jt:st=Jt+gt}}function Ue(it,st,vt,gt){if(!it)return gt(st,vt,"ltr",0);for(var Bt=!1,Jt=0;Jt<it.length;++Jt){var Se=it[Jt];(Se.from<vt&&Se.to>st||st==vt&&Se.to==st)&&(gt(Math.max(Se.from,st),Math.min(Se.to,vt),Se.level==1?"rtl":"ltr",Jt),Bt=!0)}Bt||gt(st,vt,"ltr")}var Te=null;function ke(it,st,vt){var gt;Te=null;for(var Bt=0;Bt<it.length;++Bt){var Jt=it[Bt];if(Jt.from<st&&Jt.to>st)return Bt;Jt.to==st&&(Jt.from!=Jt.to&&vt=="before"?gt=Bt:Te=Bt),Jt.from==st&&(Jt.from!=Jt.to&&vt!="before"?gt=Bt:Te=Bt)}return gt!=null?gt:Te}var nn=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",st="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function vt(ln){return ln<=247?it.charAt(ln):1424<=ln&&ln<=1524?"R":1536<=ln&&ln<=1785?st.charAt(ln-1536):1774<=ln&&ln<=2220?"r":8192<=ln&&ln<=8203?"w":ln==8204?"b":"L"}var gt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Bt=/[stwN]/,Jt=/[LRr]/,Se=/[Lb1n]/,je=/[1n]/;function De(ln,oi,pn){this.level=ln,this.from=oi,this.to=pn}return function(ln,oi){var pn=oi=="ltr"?"L":"R";if(ln.length==0||oi=="ltr"&&!gt.test(ln))return!1;for(var ki=ln.length,bi=[],yr=0;yr<ki;++yr)bi.push(vt(ln.charCodeAt(yr)));for(var kr=0,qr=pn;kr<ki;++kr){var vo=bi[kr];vo=="m"?bi[kr]=qr:qr=vo}for(var Yo=0,Mo=pn;Yo<ki;++Yo){var ss=bi[Yo];ss=="1"&&Mo=="r"?bi[Yo]="n":Jt.test(ss)&&(Mo=ss,ss=="r"&&(bi[Yo]="R"))}for(var ks=1,No=bi[0];ks<ki-1;++ks){var ea=bi[ks];ea=="+"&&No=="1"&&bi[ks+1]=="1"?bi[ks]="1":ea==","&&No==bi[ks+1]&&(No=="1"||No=="n")&&(bi[ks]=No),No=ea}for(var Bl=0;Bl<ki;++Bl){var ku=bi[Bl];if(ku==",")bi[Bl]="N";else if(ku=="%"){var dl=void 0;for(dl=Bl+1;dl<ki&&bi[dl]=="%";++dl);for(var yu=Bl&&bi[Bl-1]=="!"||dl<ki&&bi[dl]=="1"?"1":"N",La=Bl;La<dl;++La)bi[La]=yu;Bl=dl-1}}for(var Sa=0,vl=pn;Sa<ki;++Sa){var yl=bi[Sa];vl=="L"&&yl=="1"?bi[Sa]="L":Jt.test(yl)&&(vl=yl)}for(var Bo=0;Bo<ki;++Bo)if(Bt.test(bi[Bo])){var Ca=void 0;for(Ca=Bo+1;Ca<ki&&Bt.test(bi[Ca]);++Ca);for(var Nl=(Bo?bi[Bo-1]:pn)=="L",Il=(Ca<ki?bi[Ca]:pn)=="L",lh=Nl==Il?Nl?"L":"R":pn,Da=Bo;Da<Ca;++Da)bi[Da]=lh;Bo=Ca-1}for(var Hs=[],wu,hu=0;hu<ki;)if(Se.test(bi[hu])){var ad=hu;for(++hu;hu<ki&&Se.test(bi[hu]);++hu);Hs.push(new De(0,ad,hu))}else{var lc=hu,uh=Hs.length,wh=oi=="rtl"?1:0;for(++hu;hu<ki&&bi[hu]!="L";++hu);for(var kl=lc;kl<hu;)if(je.test(bi[kl])){lc<kl&&(Hs.splice(uh,0,new De(1,lc,kl)),uh+=wh);var th=kl;for(++kl;kl<hu&&je.test(bi[kl]);++kl);Hs.splice(uh,0,new De(2,th,kl)),uh+=wh,lc=kl}else++kl;lc<hu&&Hs.splice(uh,0,new De(1,lc,hu))}return oi=="ltr"&&(Hs[0].level==1&&(wu=ln.match(/^\s+/))&&(Hs[0].from=wu[0].length,Hs.unshift(new De(0,0,wu[0].length))),en(Hs).level==1&&(wu=ln.match(/\s+$/))&&(en(Hs).to-=wu[0].length,Hs.push(new De(0,ki-wu[0].length,ki)))),oi=="rtl"?Hs.reverse():Hs}}();function Wn(it,st){var vt=it.order;return vt==null&&(vt=it.order=nn(it.text,st)),vt}var an=[],gn=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]||an).concat(vt)}};function Bn(it,st){return it._handlers&&it._handlers[st]||an}function ti(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&>[st];if(Bt){var Jt=Ce(Bt,vt);Jt>-1&&(gt[st]=Bt.slice(0,Jt).concat(Bt.slice(Jt+1)))}}}function Rn(it,st){var vt=Bn(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 Ri(it,st,vt){return typeof st=="string"&&(st={type:st,preventDefault:function(){this.defaultPrevented=!0}}),Rn(it,vt||st.type,it,st),Jr(st)||st.codemirrorIgnore}function dr(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)Ce(vt,st[gt])==-1&&vt.push(st[gt])}function Ji(it,st){return Bn(it,st).length>0}function mr(it){it.prototype.on=function(st,vt){gn(this,st,vt)},it.prototype.off=function(st,vt){ti(this,st,vt)}}function Mr(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function ro(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function Jr(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function $r(it){Mr(it),ro(it)}function Tr(it){return it.target||it.srcElement}function Wr(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 oo=function(){if(ee&&Vt<9)return!1;var it=Ae("div");return"draggable"in it||"dragDrop"in it}(),Uo;function is(it){if(Uo==null){var st=Ae("span","\u200B");ue(it,Ae("span",[st,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(Uo=st.offsetWidth<=1&&st.offsetHeight>2&&!(ee&&Vt<8))}var vt=Uo?Ae("span","\u200B"):Ae("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return vt.setAttribute("cm-text",""),vt}var uo;function Ss(it){if(uo!=null)return uo;var st=ue(it,document.createTextNode("A\u062EA")),vt=qt(st,0,1).getBoundingClientRect(),gt=qt(st,1,2).getBoundingClientRect();return se(it),!vt||vt.left==vt.right?!1:uo=gt.right-vt.right<3}var To=`
|
|
|
|
|
|
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 Jt=it.slice(st,it.charAt(Bt-1)=="\r"?Bt-1:Bt),Se=Jt.indexOf("\r");Se!=-1?(vt.push(Jt.slice(0,Se)),st+=Se+1):(vt.push(Jt),st=Bt+1)}return vt}:function(it){return it.split(/\r\n?|\n/)},Xt=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},ei=function(){var it=Ae("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),Cs=null;function Os(it){if(Cs!=null)return Cs;var st=ue(it,Ae("span","x")),vt=st.getBoundingClientRect(),gt=qt(st,0,1).getBoundingClientRect();return Cs=Math.abs(vt.left-gt.left)>1}var ma={},va={};function Ys(it,st){arguments.length>2&&(st.dependencies=Array.prototype.slice.call(arguments,2)),ma[it]=st}function Qr(it,st){va[it]=st}function Dr(it){if(typeof it=="string"&&va.hasOwnProperty(it))it=va[it];else if(it&&typeof it.name=="string"&&va.hasOwnProperty(it.name)){var st=va[it.name];typeof st=="string"&&(st={name:st}),it=Ot(st,it),it.name=st.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return Dr("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return Dr("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function In(it,st){st=Dr(st);var vt=ma[st.name];if(!vt)return In(it,"text/plain");var gt=vt(it,st);if(Tn.hasOwnProperty(st.name)){var Bt=Tn[st.name];for(var Jt in Bt)Bt.hasOwnProperty(Jt)&&(gt.hasOwnProperty(Jt)&&(gt["_"+Jt]=gt[Jt]),gt[Jt]=Bt[Jt])}if(gt.name=st.name,st.helperType&&(gt.helperType=st.helperType),st.modeProps)for(var Se in st.modeProps)gt[Se]=st.modeProps[Se];return gt}var Tn={};function Oe(it,st){var vt=Tn.hasOwnProperty(it)?Tn[it]:Tn[it]={};Re(st,vt)}function qn(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 xi(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 An(it,st,vt){return it.startState?it.startState(st,vt):!0}var Le=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};Le.prototype.eol=function(){return this.pos>=this.string.length},Le.prototype.sol=function(){return this.pos==this.lineStart},Le.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Le.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Le.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},Le.prototype.eatWhile=function(it){for(var st=this.pos;this.eat(it););return this.pos>st},Le.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},Le.prototype.skipToEnd=function(){this.pos=this.string.length},Le.prototype.skipTo=function(it){var st=this.string.indexOf(it,this.pos);if(st>-1)return this.pos=st,!0},Le.prototype.backUp=function(it){this.pos-=it},Le.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ye(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ye(this.string,this.lineStart,this.tabSize):0)},Le.prototype.indentation=function(){return ye(this.string,null,this.tabSize)-(this.lineStart?ye(this.string,this.lineStart,this.tabSize):0)},Le.prototype.match=function(it,st,vt){if(typeof it=="string"){var gt=function(Se){return vt?Se.toLowerCase():Se},Bt=this.string.substr(this.pos,it.length);if(gt(Bt)==gt(it))return st!==!1&&(this.pos+=it.length),!0}else{var Jt=this.string.slice(this.pos).match(it);return Jt&&Jt.index>0?null:(Jt&&st!==!1&&(this.pos+=Jt[0].length),Jt)}},Le.prototype.current=function(){return this.string.slice(this.start,this.pos)},Le.prototype.hideFirstChars=function(it,st){this.lineStart+=it;try{return st()}finally{this.lineStart-=it}},Le.prototype.lookAhead=function(it){var st=this.lineOracle;return st&&st.lookAhead(it)},Le.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function wn(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],Jt=Bt.chunkSize();if(st<Jt){vt=Bt;break}st-=Jt}return vt.lines[st]}function Qn(it,st,vt){var gt=[],Bt=st.line;return it.iter(st.line,vt.line+1,function(Jt){var Se=Jt.text;Bt==vt.line&&(Se=Se.slice(0,vt.ch)),Bt==st.line&&(Se=Se.slice(st.ch)),gt.push(Se),++Bt}),gt}function Si(it,st,vt){var gt=[];return it.iter(st,vt,function(Bt){gt.push(Bt.text)}),gt}function Di(it,st){var vt=st-it.height;if(vt)for(var gt=it;gt;gt=gt.parent)gt.height+=vt}function qe(it){if(it.parent==null)return null;for(var st=it.parent,vt=Ce(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 si(it,st){var vt=it.first;t:do{for(var gt=0;gt<it.children.length;++gt){var Bt=it.children[gt],Jt=Bt.height;if(st<Jt){it=Bt;continue t}st-=Jt,vt+=Bt.chunkSize()}return vt}while(!it.lines);for(var Se=0;Se<it.lines.length;++Se){var je=it.lines[Se],De=je.height;if(st<De)break;st-=De}return vt+Se}function Ei(it,st){return st>=it.first&&st<it.first+it.size}function tr(it,st){return String(it.lineNumberFormatter(st+it.firstLineNumber))}function On(it,st,vt){if(vt===void 0&&(vt=null),!(this instanceof On))return new On(it,st,vt);this.line=it,this.ch=st,this.sticky=vt}function ui(it,st){return it.line-st.line||it.ch-st.ch}function Cr(it,st){return it.sticky==st.sticky&&ui(it,st)==0}function rr(it){return On(it.line,it.ch)}function Gr(it,st){return ui(it,st)<0?st:it}function or(it,st){return ui(it,st)<0?it:st}function Lr(it,st){return Math.max(it.first,Math.min(st,it.first+it.size-1))}function er(it,st){if(st.line<it.first)return On(it.first,0);var vt=it.first+it.size-1;return st.line>vt?On(vt,wn(it,vt).text.length):Pr(st,wn(it,st.line).text.length)}function Pr(it,st){var vt=it.ch;return vt==null||vt>st?On(it.line,st):vt<0?On(it.line,0):it}function io(it,st){for(var vt=[],gt=0;gt<st.length;gt++)vt[gt]=er(it,st[gt]);return vt}var Oo=function(it,st){this.state=it,this.lookAhead=st},pi=function(it,st,vt,gt){this.state=st,this.doc=it,this.line=vt,this.maxLookAhead=gt||0,this.baseTokens=null,this.baseTokenPos=1};pi.prototype.lookAhead=function(it){var st=this.doc.getLine(this.line+it);return st!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),st},pi.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}},pi.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},pi.fromSaved=function(it,st,vt){return st instanceof Oo?new pi(it,qn(it.mode,st.state),vt,st.lookAhead):new pi(it,qn(it.mode,st),vt)},pi.prototype.save=function(it){var st=it!==!1?qn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Oo(st,this.maxLookAhead):st};function _o(it,st,vt,gt){var Bt=[it.state.modeGen],Jt={};Ai(it,st.text,it.doc.mode,vt,function(ln,oi){return Bt.push(ln,oi)},Jt,gt);for(var Se=vt.state,je=function(ln){vt.baseTokens=Bt;var oi=it.state.overlays[ln],pn=1,ki=0;vt.state=!0,Ai(it,st.text,oi.mode,vt,function(bi,yr){for(var kr=pn;ki<bi;){var qr=Bt[pn];qr>bi&&Bt.splice(pn,1,bi,Bt[pn+1],qr),pn+=2,ki=Math.min(bi,qr)}if(yr)if(oi.opaque)Bt.splice(kr,pn-kr,bi,"overlay "+yr),pn=kr+2;else for(;kr<pn;kr+=2){var vo=Bt[kr+1];Bt[kr+1]=(vo?vo+" ":"")+"overlay "+yr}},Jt),vt.state=Se,vt.baseTokens=null,vt.baseTokenPos=1},De=0;De<it.state.overlays.length;++De)je(De);return{styles:Bt,classes:Jt.bgClass||Jt.textClass?Jt:null}}function ys(it,st,vt){if(!st.styles||st.styles[0]!=it.state.modeGen){var gt=Zo(it,qe(st)),Bt=st.text.length>it.options.maxHighlightLength&&qn(it.doc.mode,gt.state),Jt=_o(it,st,gt);Bt&&(gt.state=Bt),st.stateAfter=gt.save(!Bt),st.styles=Jt.styles,Jt.classes?st.styleClasses=Jt.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 Zo(it,st,vt){var gt=it.doc,Bt=it.display;if(!gt.mode.startState)return new pi(gt,!0,st);var Jt=yo(it,st,vt),Se=Jt>gt.first&&wn(gt,Jt-1).stateAfter,je=Se?pi.fromSaved(gt,Se,Jt):new pi(gt,An(gt.mode),Jt);return gt.iter(Jt,st,function(De){vi(it,De.text,je);var ln=je.line;De.stateAfter=ln==st-1||ln%5==0||ln>=Bt.viewFrom&&ln<Bt.viewTo?je.save():null,je.nextLine()}),vt&&(gt.modeFrontier=je.line),je}function vi(it,st,vt,gt){var Bt=it.doc.mode,Jt=new Le(st,it.options.tabSize,vt);for(Jt.start=Jt.pos=gt||0,st==""&&ur(Bt,vt.state);!Jt.eol();)_r(Bt,Jt,vt.state),Jt.start=Jt.pos}function ur(it,st){if(it.blankLine)return it.blankLine(st);if(it.innerMode){var vt=xi(it,st);if(vt.mode.blankLine)return vt.mode.blankLine(vt.state)}}function _r(it,st,vt,gt){for(var Bt=0;Bt<10;Bt++){gt&&(gt[0]=xi(it,vt).mode);var Jt=it.token(st,vt);if(st.pos>st.start)return Jt}throw new Error("Mode "+it.name+" failed to advance stream.")}var so=function(it,st,vt){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=st||null,this.state=vt};function to(it,st,vt,gt){var Bt=it.doc,Jt=Bt.mode,Se;st=er(Bt,st);var je=wn(Bt,st.line),De=Zo(it,st.line,vt),ln=new Le(je.text,it.options.tabSize,De),oi;for(gt&&(oi=[]);(gt||ln.pos<st.ch)&&!ln.eol();)ln.start=ln.pos,Se=_r(Jt,ln,De.state),gt&&oi.push(new so(ln,Se,qn(Bt.mode,De.state)));return gt?oi:new so(ln,Se,De.state)}function Fo(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 Ai(it,st,vt,gt,Bt,Jt,Se){var je=vt.flattenSpans;je==null&&(je=it.options.flattenSpans);var De=0,ln=null,oi=new Le(st,it.options.tabSize,gt),pn,ki=it.options.addModeClass&&[null];for(st==""&&Fo(ur(vt,gt.state),Jt);!oi.eol();){if(oi.pos>it.options.maxHighlightLength?(je=!1,Se&&vi(it,st,gt,oi.pos),oi.pos=st.length,pn=null):pn=Fo(_r(vt,oi,gt.state,ki),Jt),ki){var bi=ki[0].name;bi&&(pn="m-"+(pn?bi+" "+pn:bi))}if(!je||ln!=pn){for(;De<oi.start;)De=Math.min(oi.start,De+5e3),Bt(De,ln);ln=pn}oi.start=oi.pos}for(;De<oi.pos;){var yr=Math.min(oi.pos,De+5e3);Bt(yr,ln),De=yr}}function yo(it,st,vt){for(var gt,Bt,Jt=it.doc,Se=vt?-1:st-(it.doc.mode.innerMode?1e3:100),je=st;je>Se;--je){if(je<=Jt.first)return Jt.first;var De=wn(Jt,je-1),ln=De.stateAfter;if(ln&&(!vt||je+(ln instanceof Oo?ln.lookAhead:0)<=Jt.modeFrontier))return je;var oi=ye(De.text,null,it.options.tabSize);(Bt==null||gt>oi)&&(Bt=je-1,gt=oi)}return Bt}function jr(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=wn(it,gt).stateAfter;if(Bt&&(!(Bt instanceof Oo)||gt+Bt.lookAhead<st)){vt=gt+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,vt)}}var Sr=!1,Pi=!1;function wo(){Sr=!0}function Ci(){Pi=!0}function Xo(it,st,vt){this.marker=it,this.from=st,this.to=vt}function ua(it,st){if(it)for(var vt=0;vt<it.length;++vt){var gt=it[vt];if(gt.marker==st)return gt}}function xs(it,st){for(var vt,gt=0;gt<it.length;++gt)it[gt]!=st&&(vt||(vt=[])).push(it[gt]);return vt}function da(it,st){it.markedSpans=it.markedSpans?it.markedSpans.concat([st]):[st],st.marker.attachLine(it)}function Js(it,st,vt){var gt;if(it)for(var Bt=0;Bt<it.length;++Bt){var Jt=it[Bt],Se=Jt.marker,je=Jt.from==null||(Se.inclusiveLeft?Jt.from<=st:Jt.from<st);if(je||Jt.from==st&&Se.type=="bookmark"&&(!vt||!Jt.marker.insertLeft)){var De=Jt.to==null||(Se.inclusiveRight?Jt.to>=st:Jt.to>st);(gt||(gt=[])).push(new Xo(Se,Jt.from,De?null:Jt.to))}}return gt}function Lo(it,st,vt){var gt;if(it)for(var Bt=0;Bt<it.length;++Bt){var Jt=it[Bt],Se=Jt.marker,je=Jt.to==null||(Se.inclusiveRight?Jt.to>=st:Jt.to>st);if(je||Jt.from==st&&Se.type=="bookmark"&&(!vt||Jt.marker.insertLeft)){var De=Jt.from==null||(Se.inclusiveLeft?Jt.from<=st:Jt.from<st);(gt||(gt=[])).push(new Xo(Se,De?null:Jt.from-st,Jt.to==null?null:Jt.to-st))}}return gt}function Do(it,st){if(st.full)return null;var vt=Ei(it,st.from.line)&&wn(it,st.from.line).markedSpans,gt=Ei(it,st.to.line)&&wn(it,st.to.line).markedSpans;if(!vt&&!gt)return null;var Bt=st.from.ch,Jt=st.to.ch,Se=ui(st.from,st.to)==0,je=Js(vt,Bt,Se),De=Lo(gt,Jt,Se),ln=st.text.length==1,oi=en(st.text).length+(ln?Bt:0);if(je)for(var pn=0;pn<je.length;++pn){var ki=je[pn];if(ki.to==null){var bi=ua(De,ki.marker);bi?ln&&(ki.to=bi.to==null?null:bi.to+oi):ki.to=Bt}}if(De)for(var yr=0;yr<De.length;++yr){var kr=De[yr];if(kr.to!=null&&(kr.to+=oi),kr.from==null){var qr=ua(je,kr.marker);qr||(kr.from=oi,ln&&(je||(je=[])).push(kr))}else kr.from+=oi,ln&&(je||(je=[])).push(kr)}je&&(je=As(je)),De&&De!=je&&(De=As(De));var vo=[je];if(!ln){var Yo=st.text.length-2,Mo;if(Yo>0&&je)for(var ss=0;ss<je.length;++ss)je[ss].to==null&&(Mo||(Mo=[])).push(new Xo(je[ss].marker,null,null));for(var ks=0;ks<Yo;++ks)vo.push(Mo);vo.push(De)}return vo}function As(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 hs(it,st,vt){var gt=null;if(it.iter(st.line,vt.line+1,function(bi){if(bi.markedSpans)for(var yr=0;yr<bi.markedSpans.length;++yr){var kr=bi.markedSpans[yr].marker;kr.readOnly&&(!gt||Ce(gt,kr)==-1)&&(gt||(gt=[])).push(kr)}}),!gt)return null;for(var Bt=[{from:st,to:vt}],Jt=0;Jt<gt.length;++Jt)for(var Se=gt[Jt],je=Se.find(0),De=0;De<Bt.length;++De){var ln=Bt[De];if(!(ui(ln.to,je.from)<0||ui(ln.from,je.to)>0)){var oi=[De,1],pn=ui(ln.from,je.from),ki=ui(ln.to,je.to);(pn<0||!Se.inclusiveLeft&&!pn)&&oi.push({from:ln.from,to:je.from}),(ki>0||!Se.inclusiveRight&&!ki)&&oi.push({from:je.to,to:ln.to}),Bt.splice.apply(Bt,oi),De+=oi.length-3}}return Bt}function wr(it){var st=it.markedSpans;if(st){for(var vt=0;vt<st.length;++vt)st[vt].marker.detachLine(it);it.markedSpans=null}}function Ne(it,st){if(st){for(var vt=0;vt<st.length;++vt)st[vt].marker.attachLine(it);it.markedSpans=st}}function ds(it){return it.inclusiveLeft?-1:0}function ia(it){return it.inclusiveRight?1:0}function ll(it,st){var vt=it.lines.length-st.lines.length;if(vt!=0)return vt;var gt=it.find(),Bt=st.find(),Jt=ui(gt.from,Bt.from)||ds(it)-ds(st);if(Jt)return-Jt;var Se=ui(gt.to,Bt.to)||ia(it)-ia(st);return Se||st.id-it.id}function ul(it,st){var vt=Pi&&it.markedSpans,gt;if(vt)for(var Bt=void 0,Jt=0;Jt<vt.length;++Jt)Bt=vt[Jt],Bt.marker.collapsed&&(st?Bt.from:Bt.to)==null&&(!gt||ll(gt,Bt.marker)<0)&&(gt=Bt.marker);return gt}function Ml(it){return ul(it,!0)}function ls(it){return ul(it,!1)}function Go(it,st){var vt=Pi&&it.markedSpans,gt;if(vt)for(var Bt=0;Bt<vt.length;++Bt){var Jt=vt[Bt];Jt.marker.collapsed&&(Jt.from==null||Jt.from<st)&&(Jt.to==null||Jt.to>st)&&(!gt||ll(gt,Jt.marker)<0)&&(gt=Jt.marker)}return gt}function Ns(it,st,vt,gt,Bt){var Jt=wn(it,st),Se=Pi&&Jt.markedSpans;if(Se)for(var je=0;je<Se.length;++je){var De=Se[je];if(De.marker.collapsed){var ln=De.marker.find(0),oi=ui(ln.from,vt)||ds(De.marker)-ds(Bt),pn=ui(ln.to,gt)||ia(De.marker)-ia(Bt);if(!(oi>=0&&pn<=0||oi<=0&&pn>=0)&&(oi<=0&&(De.marker.inclusiveRight&&Bt.inclusiveLeft?ui(ln.to,vt)>=0:ui(ln.to,vt)>0)||oi>=0&&(De.marker.inclusiveRight&&Bt.inclusiveLeft?ui(ln.from,gt)<=0:ui(ln.from,gt)<0)))return!0}}}function Wo(it){for(var st;st=Ml(it);)it=st.find(-1,!0).line;return it}function Gs(it){for(var st;st=ls(it);)it=st.find(1,!0).line;return it}function wl(it){for(var st,vt;st=ls(it);)it=st.find(1,!0).line,(vt||(vt=[])).push(it);return vt}function ho(it,st){var vt=wn(it,st),gt=Wo(vt);return vt==gt?st:qe(gt)}function mo(it,st){if(st>it.lastLine())return st;var vt=wn(it,st),gt;if(!Vi(it,vt))return st;for(;gt=ls(vt);)vt=gt.find(1,!0).line;return qe(vt)+1}function Vi(it,st){var vt=Pi&&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&>.from==0&>.marker.inclusiveLeft&&Po(it,st,gt))return!0}}}function Po(it,st,vt){if(vt.to==null){var gt=vt.marker.find(1,!0);return Po(it,gt.line,ua(gt.line.markedSpans,vt.marker))}if(vt.marker.inclusiveRight&&vt.to==st.text.length)return!0;for(var Bt=void 0,Jt=0;Jt<st.markedSpans.length;++Jt)if(Bt=st.markedSpans[Jt],Bt.marker.collapsed&&!Bt.marker.widgetNode&&Bt.from==vt.to&&(Bt.to==null||Bt.to!=vt.from)&&(Bt.marker.inclusiveLeft||vt.marker.inclusiveRight)&&Po(it,st,Bt))return!0}function Bs(it){it=Wo(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 Jt=vt.parent;Jt;vt=Jt,Jt=vt.parent)for(var Se=0;Se<Jt.children.length;++Se){var je=Jt.children[Se];if(je==vt)break;st+=je.height}return st}function ha(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=ls(gt);){var Jt=vt.find(0,!0);st-=gt.text.length-Jt.from.ch,gt=Jt.to.line,st+=gt.text.length-Jt.to.ch}return st}function sa(it){var st=it.display,vt=it.doc;st.maxLine=wn(vt,vt.first),st.maxLineLength=ha(st.maxLine),st.maxLineChanged=!0,vt.iter(function(gt){var Bt=ha(gt);Bt>st.maxLineLength&&(st.maxLineLength=Bt,st.maxLine=gt)})}var Ro=function(it,st,vt){this.text=it,Ne(this,st),this.height=vt?vt(this):1};Ro.prototype.lineNo=function(){return qe(this)},mr(Ro);function Ws(it,st,vt,gt){it.text=st,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),wr(it),Ne(it,vt);var Bt=gt?gt(it):1;Bt!=it.height&&Di(it,Bt)}function Na(it){it.parent=null,wr(it)}var Ol={},Va={};function bs(it,st){if(!it||/^\s*$/.test(it))return null;var vt=st.addModeClass?Va:Ol;return vt[it]||(vt[it]=it.replace(/\S+/g,"cm-$&"))}function ai(it,st){var vt=Pe("span",null,null,Nt?"padding-right: .1px":null),gt={pre:Pe("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 Jt=Bt?st.rest[Bt-1]:st.line,Se=void 0;gt.pos=0,gt.addToken=Ac,Ss(it.display.measure)&&(Se=Wn(Jt,it.doc.direction))&&(gt.addToken=Hh(gt.addToken,Se)),gt.map=[];var je=st!=it.display.externalMeasured&&qe(Jt);zs(Jt,gt,ys(it,Jt,je)),Jt.styleClasses&&(Jt.styleClasses.bgClass&&(gt.bgClass=_e(Jt.styleClasses.bgClass,gt.bgClass||"")),Jt.styleClasses.textClass&&(gt.textClass=_e(Jt.styleClasses.textClass,gt.textClass||""))),gt.map.length==0&>.map.push(0,0,gt.content.appendChild(is(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(Nt){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 Ia(it){var st=Ae("span","\u2022","cm-invalidchar");return st.title="\\u"+it.charCodeAt(0).toString(16),st.setAttribute("aria-label",st.title),st}function Ac(it,st,vt,gt,Bt,Jt,Se){if(st){var je=it.splitSpaces?du(st,it.trailingSpace):st,De=it.cm.state.specialChars,ln=!1,oi;if(!De.test(st))it.col+=st.length,oi=document.createTextNode(je),it.map.push(it.pos,it.pos+st.length,oi),ee&&Vt<9&&(ln=!0),it.pos+=st.length;else{oi=document.createDocumentFragment();for(var pn=0;;){De.lastIndex=pn;var ki=De.exec(st),bi=ki?ki.index-pn:st.length-pn;if(bi){var yr=document.createTextNode(je.slice(pn,pn+bi));ee&&Vt<9?oi.appendChild(Ae("span",[yr])):oi.appendChild(yr),it.map.push(it.pos,it.pos+bi,yr),it.col+=bi,it.pos+=bi}if(!ki)break;pn+=bi+1;var kr=void 0;if(ki[0]==" "){var qr=it.cm.options.tabSize,vo=qr-it.col%qr;kr=oi.appendChild(Ae("span",Bi(vo),"cm-tab")),kr.setAttribute("role","presentation"),kr.setAttribute("cm-text"," "),it.col+=vo}else ki[0]=="\r"||ki[0]==`
|
|
|
`?(kr=oi.appendChild(Ae("span",ki[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),kr.setAttribute("cm-text",ki[0]),it.col+=1):(kr=it.cm.options.specialCharPlaceholder(ki[0]),kr.setAttribute("cm-text",ki[0]),ee&&Vt<9?oi.appendChild(Ae("span",[kr])):oi.appendChild(kr),it.col+=1);it.map.push(it.pos,it.pos+1,kr),it.pos++}}if(it.trailingSpace=je.charCodeAt(st.length-1)==32,vt||gt||Bt||ln||Jt||Se){var Yo=vt||"";gt&&(Yo+=gt),Bt&&(Yo+=Bt);var Mo=Ae("span",[oi],Yo,Jt);if(Se)for(var ss in Se)Se.hasOwnProperty(ss)&&ss!="style"&&ss!="class"&&Mo.setAttribute(ss,Se[ss]);return it.content.appendChild(Mo)}it.content.appendChild(oi)}}function du(it,st){if(it.length>1&&!/ /.test(it))return it;for(var vt=st,gt="",Bt=0;Bt<it.length;Bt++){var Jt=it.charAt(Bt);Jt==" "&&vt&&(Bt==it.length-1||it.charCodeAt(Bt+1)==32)&&(Jt="\xA0"),gt+=Jt,vt=Jt==" "}return gt}function Hh(it,st){return function(vt,gt,Bt,Jt,Se,je,De){Bt=Bt?Bt+" cm-force-border":"cm-force-border";for(var ln=vt.pos,oi=ln+gt.length;;){for(var pn=void 0,ki=0;ki<st.length&&(pn=st[ki],!(pn.to>ln&&pn.from<=ln));ki++);if(pn.to>=oi)return it(vt,gt,Bt,Jt,Se,je,De);it(vt,gt.slice(0,pn.to-ln),Bt,Jt,null,je,De),Jt=null,gt=gt.slice(pn.to-ln),ln=pn.to}}}function Zr(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 zs(it,st,vt){var gt=it.markedSpans,Bt=it.text,Jt=0;if(!gt){for(var Se=1;Se<vt.length;Se+=2)st.addToken(st,Bt.slice(Jt,Jt=vt[Se]),bs(vt[Se+1],st.cm.options));return}for(var je=Bt.length,De=0,ln=1,oi="",pn,ki,bi=0,yr,kr,qr,vo,Yo;;){if(bi==De){yr=kr=qr=ki="",Yo=null,vo=null,bi=1/0;for(var Mo=[],ss=void 0,ks=0;ks<gt.length;++ks){var No=gt[ks],ea=No.marker;if(ea.type=="bookmark"&&No.from==De&&ea.widgetNode)Mo.push(ea);else if(No.from<=De&&(No.to==null||No.to>De||ea.collapsed&&No.to==De&&No.from==De)){if(No.to!=null&&No.to!=De&&bi>No.to&&(bi=No.to,kr=""),ea.className&&(yr+=" "+ea.className),ea.css&&(ki=(ki?ki+";":"")+ea.css),ea.startStyle&&No.from==De&&(qr+=" "+ea.startStyle),ea.endStyle&&No.to==bi&&(ss||(ss=[])).push(ea.endStyle,No.to),ea.title&&((Yo||(Yo={})).title=ea.title),ea.attributes)for(var Bl in ea.attributes)(Yo||(Yo={}))[Bl]=ea.attributes[Bl];ea.collapsed&&(!vo||ll(vo.marker,ea)<0)&&(vo=No)}else No.from>De&&bi>No.from&&(bi=No.from)}if(ss)for(var ku=0;ku<ss.length;ku+=2)ss[ku+1]==bi&&(kr+=" "+ss[ku]);if(!vo||vo.from==De)for(var dl=0;dl<Mo.length;++dl)Zr(st,0,Mo[dl]);if(vo&&(vo.from||0)==De){if(Zr(st,(vo.to==null?je+1:vo.to)-De,vo.marker,vo.from==null),vo.to==null)return;vo.to==De&&(vo=!1)}}if(De>=je)break;for(var yu=Math.min(je,bi);;){if(oi){var La=De+oi.length;if(!vo){var Sa=La>yu?oi.slice(0,yu-De):oi;st.addToken(st,Sa,pn?pn+yr:yr,qr,De+Sa.length==bi?kr:"",ki,Yo)}if(La>=yu){oi=oi.slice(yu-De),De=yu;break}De=La,qr=""}oi=Bt.slice(Jt,Jt=vt[ln++]),pn=bs(vt[ln++],st.cm.options)}}}function Is(it,st,vt){this.line=st,this.rest=wl(st),this.size=this.rest?qe(en(this.rest))-vt+1:1,this.node=this.text=null,this.hidden=Vi(it,st)}function Es(it,st,vt){for(var gt=[],Bt,Jt=st;Jt<vt;Jt=Bt){var Se=new Is(it.doc,wn(it.doc,Jt),Jt);Bt=Jt+Se.size,gt.push(Se)}return gt}var Ks=null;function Au(it){Ks?Ks.ops.push(it):it.ownsGroup=Ks={ops:[it],delayedCallbacks:[]}}function Jo(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 Qs(it,st){var vt=it.ownsGroup;if(vt)try{Jo(vt)}finally{Ks=null,st(vt)}}var ws=null;function Hr(it,st){var vt=Bn(it,st);if(vt.length){var gt=Array.prototype.slice.call(arguments,2),Bt;Ks?Bt=Ks.delayedCallbacks:ws?Bt=ws:(Bt=ws=[],setTimeout(hl,0));for(var Jt=function(je){Bt.push(function(){return vt[je].apply(null,gt)})},Se=0;Se<vt.length;++Se)Jt(Se)}}function hl(){var it=ws;ws=null;for(var st=0;st<it.length;++st)it[st]()}function js(it,st,vt,gt){for(var Bt=0;Bt<st.changes.length;Bt++){var Jt=st.changes[Bt];Jt=="text"?fr(it,st):Jt=="gutter"?rl(it,st,vt,gt):Jt=="class"?Za(it,st):Jt=="widget"&&El(it,st,gt)}st.changes=null}function Su(it){return it.node==it.text&&(it.node=Ae("div",null,null,"position: relative"),it.text.parentNode&&it.text.parentNode.replaceChild(it.node,it.text),it.node.appendChild(it.text),ee&&Vt<8&&(it.node.style.zIndex=2)),it.node}function zu(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=Su(st);st.background=gt.insertBefore(Ae("div",null,vt),gt.firstChild),it.display.input.setUneditable(st.background)}}function Xl(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 fr(it,st){var vt=st.text.className,gt=Xl(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,Za(it,st)):vt&&(st.text.className=vt)}function Za(it,st){zu(it,st),st.line.wrapClass?Su(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 rl(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=Su(st);st.gutterBackground=Ae("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 Jt=st.line.gutterMarkers;if(it.options.lineNumbers||Jt){var Se=Su(st),je=st.gutter=Ae("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?gt.fixedPos:-gt.gutterTotalWidth)+"px");if(it.display.input.setUneditable(je),Se.insertBefore(je,st.text),st.line.gutterClass&&(je.className+=" "+st.line.gutterClass),it.options.lineNumbers&&(!Jt||!Jt["CodeMirror-linenumbers"])&&(st.lineNumber=je.appendChild(Ae("div",tr(it.options,vt),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+gt.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),Jt)for(var De=0;De<it.display.gutterSpecs.length;++De){var ln=it.display.gutterSpecs[De].className,oi=Jt.hasOwnProperty(ln)&&Jt[ln];oi&&je.appendChild(Ae("div",[oi],"CodeMirror-gutter-elt","left: "+gt.gutterLeft[ln]+"px; width: "+gt.gutterWidth[ln]+"px"))}}}function El(it,st,vt){st.alignable&&(st.alignable=null);for(var gt=Ut("CodeMirror-linewidget"),Bt=st.node.firstChild,Jt=void 0;Bt;Bt=Jt)Jt=Bt.nextSibling,gt.test(Bt.className)&&st.node.removeChild(Bt);Ya(it,st,vt)}function ou(it,st,vt,gt){var Bt=Xl(it,st);return st.text=st.node=Bt.pre,Bt.bgClass&&(st.bgClass=Bt.bgClass),Bt.textClass&&(st.textClass=Bt.textClass),Za(it,st),rl(it,st,vt,gt),Ya(it,st,gt),st.node}function Ya(it,st,vt){if(bo(it,st.line,st,vt,!0),st.rest)for(var gt=0;gt<st.rest.length;gt++)bo(it,st.rest[gt],st,vt,!1)}function bo(it,st,vt,gt,Bt){if(st.widgets)for(var Jt=Su(vt),Se=0,je=st.widgets;Se<je.length;++Se){var De=je[Se],ln=Ae("div",[De.node],"CodeMirror-linewidget"+(De.className?" "+De.className:""));De.handleMouseEvents||ln.setAttribute("cm-ignore-events","true"),ja(De,ln,vt,gt),it.display.input.setUneditable(ln),Bt&&De.above?Jt.insertBefore(ln,vt.gutter||vt.text):Jt.appendChild(ln),Hr(De,"redraw")}}function ja(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 Ja(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;"),ue(st.display.measure,Ae("div",[it.node],null,vt))}return it.height=it.node.parentNode.offsetHeight}function su(it,st){for(var vt=Tr(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 $l(it){return it.lineSpace.offsetTop}function Pu(it){return it.mover.offsetHeight-it.lineSpace.offsetHeight}function bu(it){if(it.cachedPaddingH)return it.cachedPaddingH;var st=ue(it.measure,Ae("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 fu(it){return bn-it.display.nativeBarWidth}function eu(it){return it.display.scroller.clientWidth-fu(it)-it.display.barWidth}function Qo(it){return it.display.scroller.clientHeight-fu(it)-it.display.barHeight}function Hd(it,st,vt){var gt=it.options.lineWrapping,Bt=gt&&eu(it);if(!st.measure.heights||gt&&st.measure.width!=Bt){var Jt=st.measure.heights=[];if(gt){st.measure.width=Bt;for(var Se=st.text.firstChild.getClientRects(),je=0;je<Se.length-1;je++){var De=Se[je],ln=Se[je+1];Math.abs(De.bottom-ln.bottom)>2&&Jt.push((De.bottom+ln.top)/2-vt.top)}}Jt.push(vt.bottom-vt.top)}}function Eu(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(qe(it.rest[Bt])>vt)return{map:it.measure.maps[Bt],cache:it.measure.caches[Bt],before:!0}}function yd(it,st){st=Wo(st);var vt=qe(st),gt=it.display.externalMeasured=new Is(it.doc,st,vt);gt.lineN=vt;var Bt=gt.built=ai(it,gt);return gt.text=Bt.pre,ue(it.display.lineMeasure,Bt.pre),gt}function Nh(it,st,vt,gt){return xh(it,ol(it,st),vt,gt)}function ec(it,st){if(st>=it.display.viewFrom&&st<it.display.viewTo)return it.display.view[Zu(it,st)];var vt=it.display.externalMeasured;if(vt&&st>=vt.lineN&&st<vt.lineN+vt.size)return vt}function ol(it,st){var vt=qe(st),gt=ec(it,vt);gt&&!gt.text?gt=null:gt&>.changes&&(js(it,gt,vt,zA(it)),it.curOp.forceUpdate=!0),gt||(gt=yd(it,st));var Bt=Eu(gt,st,vt);return{line:st,view:gt,rect:null,map:Bt.map,cache:Bt.cache,before:Bt.before,hasHeights:!1}}function xh(it,st,vt,gt,Bt){st.before&&(vt=-1);var Jt=vt+(gt||""),Se;return st.cache.hasOwnProperty(Jt)?Se=st.cache[Jt]:(st.rect||(st.rect=st.view.text.getBoundingClientRect()),st.hasHeights||(Hd(it,st.view,st.rect),st.hasHeights=!0),Se=Ls(it,st,vt,gt),Se.bogus||(st.cache[Jt]=Se)),{left:Se.left,right:Se.right,top:Bt?Se.rtop:Se.top,bottom:Bt?Se.rbottom:Se.bottom}}var Qd={left:0,right:0,top:0,bottom:0};function Oc(it,st,vt){for(var gt,Bt,Jt,Se,je,De,ln=0;ln<it.length;ln+=3)if(je=it[ln],De=it[ln+1],st<je?(Bt=0,Jt=1,Se="left"):st<De?(Bt=st-je,Jt=Bt+1):(ln==it.length-3||st==De&&it[ln+3]>st)&&(Jt=De-je,Bt=Jt-1,st>=De&&(Se="right")),Bt!=null){if(gt=it[ln+2],je==De&&vt==(gt.insertLeft?"left":"right")&&(Se=vt),vt=="left"&&Bt==0)for(;ln&&it[ln-2]==it[ln-3]&&it[ln-1].insertLeft;)gt=it[(ln-=3)+2],Se="left";if(vt=="right"&&Bt==De-je)for(;ln<it.length-3&&it[ln+3]==it[ln+4]&&!it[ln+5].insertLeft;)gt=it[(ln+=3)+2],Se="right";break}return{node:gt,start:Bt,end:Jt,collapse:Se,coverStart:je,coverEnd:De}}function Dc(it,st){var vt=Qd;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 Ls(it,st,vt,gt){var Bt=Oc(st.map,vt,gt),Jt=Bt.node,Se=Bt.start,je=Bt.end,De=Bt.collapse,ln;if(Jt.nodeType==3){for(var oi=0;oi<4;oi++){for(;Se&&xe(st.line.text.charAt(Bt.coverStart+Se));)--Se;for(;Bt.coverStart+je<Bt.coverEnd&&xe(st.line.text.charAt(Bt.coverStart+je));)++je;if(ee&&Vt<9&&Se==0&&je==Bt.coverEnd-Bt.coverStart?ln=Jt.parentNode.getBoundingClientRect():ln=Dc(qt(Jt,Se,je).getClientRects(),gt),ln.left||ln.right||Se==0)break;je=Se,Se=Se-1,De="right"}ee&&Vt<11&&(ln=ya(it.display.measure,ln))}else{Se>0&&(De=gt="right");var pn;it.options.lineWrapping&&(pn=Jt.getClientRects()).length>1?ln=pn[gt=="right"?pn.length-1:0]:ln=Jt.getBoundingClientRect()}if(ee&&Vt<9&&!Se&&(!ln||!ln.left&&!ln.right)){var ki=Jt.parentNode.getClientRects()[0];ki?ln={left:ki.left,right:ki.left+Ch(it.display),top:ki.top,bottom:ki.bottom}:ln=Qd}for(var bi=ln.top-st.rect.top,yr=ln.bottom-st.rect.top,kr=(bi+yr)/2,qr=st.view.measure.heights,vo=0;vo<qr.length-1&&!(kr<qr[vo]);vo++);var Yo=vo?qr[vo-1]:0,Mo=qr[vo],ss={left:(De=="right"?ln.right:ln.left)-st.rect.left,right:(De=="left"?ln.left:ln.right)-st.rect.left,top:Yo,bottom:Mo};return!ln.left&&!ln.right&&(ss.bogus=!0),it.options.singleCursorHeightPerLine||(ss.rtop=bi,ss.rbottom=yr),ss}function ya(it,st){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Os(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 ju(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 qa(it){it.display.externalMeasure=null,se(it.display.lineMeasure);for(var st=0;st<it.display.view.length;st++)ju(it.display.view[st])}function sl(it){qa(it),it.display.cachedCharWidth=it.display.cachedTextHeight=it.display.cachedPaddingH=null,it.options.lineWrapping||(it.display.maxLineChanged=!0),it.display.lineNumChars=null}function za(){return te&&et?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Aa(){return te&&et?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function tl(it){var st=0;if(it.widgets)for(var vt=0;vt<it.widgets.length;++vt)it.widgets[vt].above&&(st+=Ja(it.widgets[vt]));return st}function Dl(it,st,vt,gt,Bt){if(!Bt){var Jt=tl(st);vt.top+=Jt,vt.bottom+=Jt}if(gt=="line")return vt;gt||(gt="local");var Se=Bs(st);if(gt=="local"?Se+=$l(it.display):Se-=it.display.viewOffset,gt=="page"||gt=="window"){var je=it.display.lineSpace.getBoundingClientRect();Se+=je.top+(gt=="window"?0:Aa());var De=je.left+(gt=="window"?0:za());vt.left+=De,vt.right+=De}return vt.top+=Se,vt.bottom+=Se,vt}function fc(it,st,vt){if(vt=="div")return st;var gt=st.left,Bt=st.top;if(vt=="page")gt-=za(),Bt-=Aa();else if(vt=="local"||!vt){var Jt=it.display.sizer.getBoundingClientRect();gt+=Jt.left,Bt+=Jt.top}var Se=it.display.lineSpace.getBoundingClientRect();return{left:gt-Se.left,top:Bt-Se.top}}function ch(it,st,vt,gt,Bt){return gt||(gt=wn(it.doc,st.line)),Dl(it,gt,Nh(it,gt,st.ch,Bt),vt)}function cl(it,st,vt,gt,Bt,Jt){gt=gt||wn(it.doc,st.line),Bt||(Bt=ol(it,gt));function Se(yr,kr){var qr=xh(it,Bt,yr,kr?"right":"left",Jt);return kr?qr.left=qr.right:qr.right=qr.left,Dl(it,gt,qr,vt)}var je=Wn(gt,it.doc.direction),De=st.ch,ln=st.sticky;if(De>=gt.text.length?(De=gt.text.length,ln="before"):De<=0&&(De=0,ln="after"),!je)return Se(ln=="before"?De-1:De,ln=="before");function oi(yr,kr,qr){var vo=je[kr],Yo=vo.level==1;return Se(qr?yr-1:yr,Yo!=qr)}var pn=ke(je,De,ln),ki=Te,bi=oi(De,pn,ln=="before");return ki!=null&&(bi.other=oi(De,ki,ln!="before")),bi}function zd(it,st){var vt=0;st=er(it.doc,st),it.options.lineWrapping||(vt=Ch(it.display)*st.ch);var gt=wn(it.doc,st.line),Bt=Bs(gt)+$l(it.display);return{left:vt,right:vt,top:Bt,bottom:Bt+gt.height}}function td(it,st,vt,gt,Bt){var Jt=On(it,st,vt);return Jt.xRel=Bt,gt&&(Jt.outside=gt),Jt}function Sh(it,st,vt){var gt=it.doc;if(vt+=it.display.viewOffset,vt<0)return td(gt.first,0,null,-1,-1);var Bt=si(gt,vt),Jt=gt.first+gt.size-1;if(Bt>Jt)return td(gt.first+gt.size-1,wn(gt,Jt).text.length,null,1,1);st<0&&(st=0);for(var Se=wn(gt,Bt);;){var je=Wi(it,Se,Bt,st,vt),De=Go(Se,je.ch+(je.xRel>0||je.outside>0?1:0));if(!De)return je;var ln=De.find(1);if(ln.line==Bt)return ln;Se=wn(gt,Bt=ln.line)}}function Ho(it,st,vt,gt){gt-=tl(st);var Bt=st.text.length,Jt=ve(function(Se){return xh(it,vt,Se-1).bottom<=gt},Bt,0);return Bt=ve(function(Se){return xh(it,vt,Se).top>gt},Jt,Bt),{begin:Jt,end:Bt}}function sA(it,st,vt,gt){vt||(vt=ol(it,st));var Bt=Dl(it,st,xh(it,vt,gt),"line").top;return Ho(it,st,vt,Bt)}function En(it,st,vt,gt){return it.bottom<=vt?!1:it.top>vt?!0:(gt?it.left:it.right)>st}function Wi(it,st,vt,gt,Bt){Bt-=Bs(st);var Jt=ol(it,st),Se=tl(st),je=0,De=st.text.length,ln=!0,oi=Wn(st,it.doc.direction);if(oi){var pn=(it.options.lineWrapping?nc:aA)(it,st,vt,Jt,oi,gt,Bt);ln=pn.level!=1,je=ln?pn.from:pn.to-1,De=ln?pn.to:pn.from-1}var ki=null,bi=null,yr=ve(function(ks){var No=xh(it,Jt,ks);return No.top+=Se,No.bottom+=Se,En(No,gt,Bt,!1)?(No.top<=Bt&&No.left<=gt&&(ki=ks,bi=No),!0):!1},je,De),kr,qr,vo=!1;if(bi){var Yo=gt-bi.left<bi.right-gt,Mo=Yo==ln;yr=ki+(Mo?0:1),qr=Mo?"after":"before",kr=Yo?bi.left:bi.right}else{!ln&&(yr==De||yr==je)&&yr++,qr=yr==0?"after":yr==st.text.length?"before":xh(it,Jt,yr-(ln?1:0)).bottom+Se<=Bt==ln?"after":"before";var ss=cl(it,On(vt,yr,qr),"line",st,Jt);kr=ss.left,vo=Bt<ss.top?-1:Bt>=ss.bottom?1:0}return yr=ae(st.text,yr,1),td(vt,yr,qr,vo,gt-kr)}function aA(it,st,vt,gt,Bt,Jt,Se){var je=ve(function(pn){var ki=Bt[pn],bi=ki.level!=1;return En(cl(it,On(vt,bi?ki.to:ki.from,bi?"before":"after"),"line",st,gt),Jt,Se,!0)},0,Bt.length-1),De=Bt[je];if(je>0){var ln=De.level!=1,oi=cl(it,On(vt,ln?De.from:De.to,ln?"after":"before"),"line",st,gt);En(oi,Jt,Se,!0)&&oi.top>Se&&(De=Bt[je-1])}return De}function nc(it,st,vt,gt,Bt,Jt,Se){var je=Ho(it,st,gt,Se),De=je.begin,ln=je.end;/\s/.test(st.text.charAt(ln-1))&&ln--;for(var oi=null,pn=null,ki=0;ki<Bt.length;ki++){var bi=Bt[ki];if(!(bi.from>=ln||bi.to<=De)){var yr=bi.level!=1,kr=xh(it,gt,yr?Math.min(ln,bi.to)-1:Math.max(De,bi.from)).right,qr=kr<Jt?Jt-kr+1e9:kr-Jt;(!oi||pn>qr)&&(oi=bi,pn=qr)}}return oi||(oi=Bt[Bt.length-1]),oi.from<De&&(oi={from:De,to:oi.to,level:oi.level}),oi.to>ln&&(oi={from:oi.from,to:ln,level:oi.level}),oi}var Ku;function Gu(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(Ku==null){Ku=Ae("pre",null,"CodeMirror-line-like");for(var st=0;st<49;++st)Ku.appendChild(document.createTextNode("x")),Ku.appendChild(Ae("br"));Ku.appendChild(document.createTextNode("x"))}ue(it.measure,Ku);var vt=Ku.offsetHeight/50;return vt>3&&(it.cachedTextHeight=vt),se(it.measure),vt||1}function Ch(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var st=Ae("span","xxxxxxxxxx"),vt=Ae("pre",[st],"CodeMirror-line-like");ue(it.measure,vt);var gt=st.getBoundingClientRect(),Bt=(gt.right-gt.left)/10;return Bt>2&&(it.cachedCharWidth=Bt),Bt||10}function zA(it){for(var st=it.display,vt={},gt={},Bt=st.gutters.clientLeft,Jt=st.gutters.firstChild,Se=0;Jt;Jt=Jt.nextSibling,++Se){var je=it.display.gutterSpecs[Se].className;vt[je]=Jt.offsetLeft+Jt.clientLeft+Bt,gt[je]=Jt.clientWidth}return{fixedPos:ed(st),gutterTotalWidth:st.gutters.offsetWidth,gutterLeft:vt,gutterWidth:gt,wrapperWidth:st.wrapper.clientWidth}}function ed(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function el(it){var st=Gu(it.display),vt=it.options.lineWrapping,gt=vt&&Math.max(5,it.display.scroller.clientWidth/Ch(it.display)-3);return function(Bt){if(Vi(it.doc,Bt))return 0;var Jt=0;if(Bt.widgets)for(var Se=0;Se<Bt.widgets.length;Se++)Bt.widgets[Se].height&&(Jt+=Bt.widgets[Se].height);return vt?Jt+(Math.ceil(Bt.text.length/gt)||1)*st:Jt+st}}function ms(it){var st=it.doc,vt=el(it);st.iter(function(gt){var Bt=vt(gt);Bt!=gt.height&&Di(gt,Bt)})}function rh(it,st,vt,gt){var Bt=it.display;if(!vt&&Tr(st).getAttribute("cm-not-content")=="true")return null;var Jt,Se,je=Bt.lineSpace.getBoundingClientRect();try{Jt=st.clientX-je.left,Se=st.clientY-je.top}catch(pn){return null}var De=Sh(it,Jt,Se),ln;if(gt&&De.xRel>0&&(ln=wn(it.doc,De.line).text).length==De.ch){var oi=ye(ln,ln.length,it.options.tabSize)-ln.length;De=On(De.line,Math.max(0,Math.round((Jt-bu(it.display).left)/Ch(it.display))-oi))}return De}function Zu(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 Fl(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)Pi&&ho(it.doc,st)<Bt.viewTo&&gu(it);else if(vt<=Bt.viewFrom)Pi&&mo(it.doc,vt+gt)>Bt.viewFrom?gu(it):(Bt.viewFrom+=gt,Bt.viewTo+=gt);else if(st<=Bt.viewFrom&&vt>=Bt.viewTo)gu(it);else if(st<=Bt.viewFrom){var Jt=Bh(it,vt,vt+gt,1);Jt?(Bt.view=Bt.view.slice(Jt.index),Bt.viewFrom=Jt.lineN,Bt.viewTo+=gt):gu(it)}else if(vt>=Bt.viewTo){var Se=Bh(it,st,st,-1);Se?(Bt.view=Bt.view.slice(0,Se.index),Bt.viewTo=Se.lineN):gu(it)}else{var je=Bh(it,st,st,-1),De=Bh(it,vt,vt+gt,1);je&&De?(Bt.view=Bt.view.slice(0,je.index).concat(Es(it,je.lineN,De.lineN)).concat(Bt.view.slice(De.index)),Bt.viewTo+=gt):gu(it)}var ln=Bt.externalMeasured;ln&&(vt<ln.lineN?ln.lineN+=gt:st<ln.lineN+ln.size&&(Bt.externalMeasured=null))}function ra(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 Jt=gt.view[Zu(it,st)];if(Jt.node!=null){var Se=Jt.changes||(Jt.changes=[]);Ce(Se,vt)==-1&&Se.push(vt)}}}function gu(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function Bh(it,st,vt,gt){var Bt=Zu(it,st),Jt,Se=it.display.view;if(!Pi||vt==it.doc.first+it.doc.size)return{index:Bt,lineN:vt};for(var je=it.display.viewFrom,De=0;De<Bt;De++)je+=Se[De].size;if(je!=st){if(gt>0){if(Bt==Se.length-1)return null;Jt=je+Se[Bt].size-st,Bt++}else Jt=je-st;st+=Jt,vt+=Jt}for(;ho(it.doc,vt)!=vt;){if(Bt==(gt<0?0:Se.length-1))return null;vt+=gt*Se[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=Es(it,st,vt),gt.viewFrom=st):(gt.viewFrom>st?gt.view=Es(it,st,gt.viewFrom).concat(gt.view):gt.viewFrom<st&&(gt.view=gt.view.slice(Zu(it,st))),gt.viewFrom=st,gt.viewTo<vt?gt.view=gt.view.concat(Es(it,gt.viewTo,vt)):gt.viewTo>vt&&(gt.view=gt.view.slice(0,Zu(it,vt)))),gt.viewTo=vt}function Qh(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 Cu(it){it.display.input.showSelection(it.display.input.prepareSelection())}function wd(it,st){st===void 0&&(st=!0);for(var vt=it.doc,gt={},Bt=gt.cursors=document.createDocumentFragment(),Jt=gt.selection=document.createDocumentFragment(),Se=0;Se<vt.sel.ranges.length;Se++)if(!(!st&&Se==vt.sel.primIndex)){var je=vt.sel.ranges[Se];if(!(je.from().line>=it.display.viewTo||je.to().line<it.display.viewFrom)){var De=je.empty();(De||it.options.showCursorWhenSelecting)&&Ea(it,je.head,Bt),De||Fa(it,je,Jt)}}return gt}function Ea(it,st,vt){var gt=cl(it,st,"div",null,null,!it.options.singleCursorHeightPerLine),Bt=vt.appendChild(Ae("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 Jt=vt.appendChild(Ae("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Jt.style.display="",Jt.style.left=gt.other.left+"px",Jt.style.top=gt.other.top+"px",Jt.style.height=(gt.other.bottom-gt.other.top)*.85+"px"}}function oh(it,st){return it.top-st.top||it.left-st.left}function Fa(it,st,vt){var gt=it.display,Bt=it.doc,Jt=document.createDocumentFragment(),Se=bu(it.display),je=Se.left,De=Math.max(gt.sizerWidth,eu(it)-gt.sizer.offsetLeft)-Se.right,ln=Bt.direction=="ltr";function oi(Mo,ss,ks,No){ss<0&&(ss=0),ss=Math.round(ss),No=Math.round(No),Jt.appendChild(Ae("div",null,"CodeMirror-selected","position: absolute; left: "+Mo+`px;
|
|
|
top: `+ss+"px; width: "+(ks==null?De-Mo:ks)+`px;
|
|
|
height: `+(No-ss)+"px"))}function pn(Mo,ss,ks){var No=wn(Bt,Mo),ea=No.text.length,Bl,ku;function dl(Sa,vl){return ch(it,On(Mo,Sa),"div",No,vl)}function yu(Sa,vl,yl){var Bo=sA(it,No,null,Sa),Ca=vl=="ltr"==(yl=="after")?"left":"right",Nl=yl=="after"?Bo.begin:Bo.end-(/\s/.test(No.text.charAt(Bo.end-1))?2:1);return dl(Nl,Ca)[Ca]}var La=Wn(No,Bt.direction);return Ue(La,ss||0,ks==null?ea:ks,function(Sa,vl,yl,Bo){var Ca=yl=="ltr",Nl=dl(Sa,Ca?"left":"right"),Il=dl(vl-1,Ca?"right":"left"),lh=ss==null&&Sa==0,Da=ks==null&&vl==ea,Hs=Bo==0,wu=!La||Bo==La.length-1;if(Il.top-Nl.top<=3){var hu=(ln?lh:Da)&&Hs,ad=(ln?Da:lh)&&wu,lc=hu?je:(Ca?Nl:Il).left,uh=ad?De:(Ca?Il:Nl).right;oi(lc,Nl.top,uh-lc,Nl.bottom)}else{var wh,kl,th,Wc;Ca?(wh=ln&&lh&&Hs?je:Nl.left,kl=ln?De:yu(Sa,yl,"before"),th=ln?je:yu(vl,yl,"after"),Wc=ln&&Da&&wu?De:Il.right):(wh=ln?yu(Sa,yl,"before"):je,kl=!ln&&lh&&Hs?De:Nl.right,th=!ln&&Da&&wu?je:Il.left,Wc=ln?yu(vl,yl,"after"):De),oi(wh,Nl.top,kl-wh,Nl.bottom),Nl.bottom<Il.top&&oi(je,Nl.bottom,null,Il.top),oi(th,Il.top,Wc-th,Il.bottom)}(!Bl||oh(Nl,Bl)<0)&&(Bl=Nl),oh(Il,Bl)<0&&(Bl=Il),(!ku||oh(Nl,ku)<0)&&(ku=Nl),oh(Il,ku)<0&&(ku=Il)}),{start:Bl,end:ku}}var ki=st.from(),bi=st.to();if(ki.line==bi.line)pn(ki.line,ki.ch,bi.ch);else{var yr=wn(Bt,ki.line),kr=wn(Bt,bi.line),qr=Wo(yr)==Wo(kr),vo=pn(ki.line,ki.ch,qr?yr.text.length+1:null).end,Yo=pn(bi.line,qr?0:null,bi.ch).start;qr&&(vo.top<Yo.top-2?(oi(vo.right,vo.top,null,vo.bottom),oi(je,Yo.top,Yo.left,Yo.bottom)):oi(vo.right,vo.top,Yo.left-vo.right,vo.bottom)),vo.bottom<Yo.top&&oi(je,vo.bottom,null,Yo.top)}vt.appendChild(Jt)}function gl(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()||wt(it),st.cursorDiv.style.visibility=(vt=!vt)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(st.cursorDiv.style.visibility="hidden")}}function Hl(it){it.state.focused||(it.display.input.focus(),Et(it))}function Yl(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,wt(it))},100)}function Et(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(),Nt&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),gl(it))}function wt(it,st){it.state.delayingBlurEvent||(it.state.focused&&(Rn(it,"blur",it,st),it.state.focused=!1,Gt(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function bt(it){for(var st=it.display,vt=st.lineDiv.offsetTop,gt=0;gt<st.view.length;gt++){var Bt=st.view[gt],Jt=it.options.lineWrapping,Se=void 0,je=0;if(!Bt.hidden){if(ee&&Vt<8){var De=Bt.node.offsetTop+Bt.node.offsetHeight;Se=De-vt,vt=De}else{var ln=Bt.node.getBoundingClientRect();Se=ln.bottom-ln.top,!Jt&&Bt.text.firstChild&&(je=Bt.text.firstChild.getBoundingClientRect().right-ln.left-1)}var oi=Bt.line.height-Se;if((oi>.005||oi<-.005)&&(Di(Bt.line,Se),Ht(Bt.line),Bt.rest))for(var pn=0;pn<Bt.rest.length;pn++)Ht(Bt.rest[pn]);if(je>it.display.sizerWidth){var ki=Math.ceil(je/Ch(it.display));ki>it.display.maxLineLength&&(it.display.maxLineLength=ki,it.display.maxLine=Bt.line,it.display.maxLineChanged=!0)}}}}function Ht(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 ie(it,st,vt){var gt=vt&&vt.top!=null?Math.max(0,vt.top):it.scroller.scrollTop;gt=Math.floor(gt-$l(it));var Bt=vt&&vt.bottom!=null?vt.bottom:gt+it.wrapper.clientHeight,Jt=si(st,gt),Se=si(st,Bt);if(vt&&vt.ensure){var je=vt.ensure.from.line,De=vt.ensure.to.line;je<Jt?(Jt=je,Se=si(st,Bs(wn(st,je))+it.wrapper.clientHeight)):Math.min(De,st.lastLine())>=Se&&(Jt=si(st,Bs(wn(st,De))-it.wrapper.clientHeight),Se=De)}return{from:Jt,to:Math.max(Se,Jt+1)}}function Yt(it,st){if(!Ri(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&&!$t){var Jt=Ae("div","\u200B",null,`position: absolute;
|
|
|
top: `+(st.top-vt.viewOffset-$l(it.display))+`px;
|
|
|
height: `+(st.bottom-st.top+fu(it)+vt.barHeight)+`px;
|
|
|
left: `+st.left+"px; width: "+Math.max(2,st.right-st.left)+"px;");it.display.lineSpace.appendChild(Jt),Jt.scrollIntoView(Bt),it.display.lineSpace.removeChild(Jt)}}}function ge(it,st,vt,gt){gt==null&&(gt=0);var Bt;!it.options.lineWrapping&&st==vt&&(st=st.ch?On(st.line,st.sticky=="before"?st.ch-1:st.ch,"after"):st,vt=st.sticky=="before"?On(st.line,st.ch+1,"before"):st);for(var Jt=0;Jt<5;Jt++){var Se=!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 ln=be(it,Bt),oi=it.doc.scrollTop,pn=it.doc.scrollLeft;if(ln.scrollTop!=null&&(Jn(it,ln.scrollTop),Math.abs(it.doc.scrollTop-oi)>1&&(Se=!0)),ln.scrollLeft!=null&&(Un(it,ln.scrollLeft),Math.abs(it.doc.scrollLeft-pn)>1&&(Se=!0)),!Se)break}return Bt}function we(it,st){var vt=be(it,st);vt.scrollTop!=null&&Jn(it,vt.scrollTop),vt.scrollLeft!=null&&Un(it,vt.scrollLeft)}function be(it,st){var vt=it.display,gt=Gu(it.display);st.top<0&&(st.top=0);var Bt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:vt.scroller.scrollTop,Jt=Qo(it),Se={};st.bottom-st.top>Jt&&(st.bottom=st.top+Jt);var je=it.doc.height+Pu(vt),De=st.top<gt,ln=st.bottom>je-gt;if(st.top<Bt)Se.scrollTop=De?0:st.top;else if(st.bottom>Bt+Jt){var oi=Math.min(st.top,(ln?je:st.bottom)-Jt);oi!=Bt&&(Se.scrollTop=oi)}var pn=it.options.fixedGutter?0:vt.gutters.offsetWidth,ki=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:vt.scroller.scrollLeft-pn,bi=eu(it)-vt.gutters.offsetWidth,yr=st.right-st.left>bi;return yr&&(st.right=st.left+bi),st.left<10?Se.scrollLeft=0:st.left<ki?Se.scrollLeft=Math.max(0,st.left+pn-(yr?0:10)):st.right>bi+ki-3&&(Se.scrollLeft=st.right+(yr?0:10)-bi),Se}function $e(it,st){st!=null&&(Ke(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+st)}function dn(it){Ke(it);var st=it.getCursor();it.curOp.scrollToPos={from:st,to:st,margin:it.options.cursorScrollMargin}}function fn(it,st,vt){(st!=null||vt!=null)&&Ke(it),st!=null&&(it.curOp.scrollLeft=st),vt!=null&&(it.curOp.scrollTop=vt)}function Pn(it,st){Ke(it),it.curOp.scrollToPos=st}function Ke(it){var st=it.curOp.scrollToPos;if(st){it.curOp.scrollToPos=null;var vt=zd(it,st.from),gt=zd(it,st.to);mi(it,vt,gt,st.margin)}}function mi(it,st,vt,gt){var Bt=be(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});fn(it,Bt.scrollLeft,Bt.scrollTop)}function Jn(it,st){Math.abs(it.doc.scrollTop-st)<2||(Mt||Xi(it,{top:st}),yi(it,st,!0),Mt&&Xi(it),Qe(it,100))}function yi(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 Un(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,eo(it),it.display.scroller.scrollLeft!=st&&(it.display.scroller.scrollLeft=st),it.display.scrollbars.setScrollLeft(st))}function di(it){var st=it.display,vt=st.gutters.offsetWidth,gt=Math.round(it.doc.height+Pu(it.display));return{clientHeight:st.scroller.clientHeight,viewHeight:st.wrapper.clientHeight,scrollWidth:st.scroller.scrollWidth,clientWidth:st.scroller.clientWidth,viewWidth:st.wrapper.clientWidth,barLeft:it.options.fixedGutter?vt:0,docHeight:gt,scrollHeight:gt+fu(it)+st.barHeight,nativeBarWidth:st.nativeBarWidth,gutterWidth:vt}}var Qi=function(it,st,vt){this.cm=vt;var gt=this.vert=Ae("div",[Ae("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Bt=this.horiz=Ae("div",[Ae("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");gt.tabIndex=Bt.tabIndex=-1,it(gt),it(Bt),gn(gt,"scroll",function(){gt.clientHeight&&st(gt.scrollTop,"vertical")}),gn(Bt,"scroll",function(){Bt.clientWidth&&st(Bt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ee&&Vt<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Qi.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 Jt=it.viewWidth-it.barLeft-(vt?gt:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+Jt)+"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}},Qi.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Qi.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Qi.prototype.zeroWidthHack=function(){var it=lt&&!Kt?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ne,this.disableVert=new ne},Qi.prototype.enableZeroWidthBar=function(it,st,vt){it.style.pointerEvents="auto";function gt(){var Bt=it.getBoundingClientRect(),Jt=vt=="vert"?document.elementFromPoint(Bt.right-1,(Bt.top+Bt.bottom)/2):document.elementFromPoint((Bt.right+Bt.left)/2,Bt.bottom-1);Jt!=it?it.style.pointerEvents="none":st.set(1e3,gt)}st.set(1e3,gt)},Qi.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 Er(it,st){st||(st=di(it));var vt=it.display.barWidth,gt=it.display.barHeight;ao(it,st);for(var Bt=0;Bt<4&&vt!=it.display.barWidth||gt!=it.display.barHeight;Bt++)vt!=it.display.barWidth&&it.options.lineWrapping&&bt(it),ao(it,di(it)),vt=it.display.barWidth,gt=it.display.barHeight}function ao(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&>.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 gr={native:Qi,null:ir};function Ti(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Gt(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new gr[it.options.scrollbarStyle](function(st){it.display.wrapper.insertBefore(st,it.display.scrollbarFiller),gn(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"?Un(it,st):Jn(it,st)},it),it.display.scrollbars.addClass&&Ge(it.display.wrapper,it.display.scrollbars.addClass)}var xr=0;function Ir(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:++xr},Au(it.curOp)}function $n(it){var st=it.curOp;st&&Qs(st,function(vt){for(var gt=0;gt<vt.ops.length;gt++)vt.ops[gt].cm.curOp=null;ri(vt)})}function ri(it){for(var st=it.ops,vt=0;vt<st.length;vt++)pe(st[vt]);for(var gt=0;gt<st.length;gt++)me(st[gt]);for(var Bt=0;Bt<st.length;Bt++)Xe(st[Bt]);for(var Jt=0;Jt<st.length;Jt++)Je(st[Jt]);for(var Se=0;Se<st.length;Se++)vn(st[Se])}function pe(it){var st=it.cm,vt=st.display;Hn(st),it.updateMaxLine&&sa(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 mn(st,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function me(it){it.updatedDisplay=it.mustUpdate&&Fi(it.cm,it.update)}function Xe(it){var st=it.cm,vt=st.display;it.updatedDisplay&&bt(st),it.barMeasure=di(st),vt.maxLineChanged&&!st.options.lineWrapping&&(it.adjustWidthTo=Nh(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+fu(st)+st.display.barWidth),it.maxScrollLeft=Math.max(0,vt.sizer.offsetLeft+it.adjustWidthTo-eu(st))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=vt.input.prepareSelection())}function Je(it){var st=it.cm;it.adjustWidthTo!=null&&(st.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft<st.doc.scrollLeft&&Un(st,Math.min(st.display.scroller.scrollLeft,it.maxScrollLeft),!0),st.display.maxLineChanged=!1);var vt=it.focus&&it.focus==Wt();it.preparedSelection&&st.display.input.showSelection(it.preparedSelection,vt),(it.updatedDisplay||it.startHeight!=st.doc.height)&&Er(st,it.barMeasure),it.updatedDisplay&&br(st,it.barMeasure),it.selectionChanged&&gl(st),st.state.focused&&it.updateInput&&st.display.input.reset(it.typing),vt&&Hl(it.cm)}function vn(it){var st=it.cm,vt=st.display,gt=st.doc;if(it.updatedDisplay&&li(st,it.update),vt.wheelStartX!=null&&(it.scrollTop!=null||it.scrollLeft!=null||it.scrollToPos)&&(vt.wheelStartX=vt.wheelStartY=null),it.scrollTop!=null&&yi(st,it.scrollTop,it.forceScroll),it.scrollLeft!=null&&Un(st,it.scrollLeft,!0,!0),it.scrollToPos){var Bt=ge(st,er(gt,it.scrollToPos.from),er(gt,it.scrollToPos.to),it.scrollToPos.margin);Yt(st,Bt)}var Jt=it.maybeHiddenMarkers,Se=it.maybeUnhiddenMarkers;if(Jt)for(var je=0;je<Jt.length;++je)Jt[je].lines.length||Rn(Jt[je],"hide");if(Se)for(var De=0;De<Se.length;++De)Se[De].lines.length&&Rn(Se[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 rn(it,st){if(it.curOp)return st();Ir(it);try{return st()}finally{$n(it)}}function kn(it,st){return function(){if(it.curOp)return st.apply(it,arguments);Ir(it);try{return st.apply(it,arguments)}finally{$n(it)}}}function jn(it){return function(){if(this.curOp)return it.apply(this,arguments);Ir(this);try{return it.apply(this,arguments)}finally{$n(this)}}}function Yn(it){return function(){var st=this.cm;if(!st||st.curOp)return it.apply(this,arguments);Ir(st);try{return it.apply(this,arguments)}finally{$n(st)}}}function Qe(it,st){it.doc.highlightFrontier<it.display.viewTo&&it.state.highlight.set(st,We(un,it))}function un(it){var st=it.doc;if(!(st.highlightFrontier>=it.display.viewTo)){var vt=+new Date+it.options.workTime,gt=Zo(it,st.highlightFrontier),Bt=[];st.iter(gt.line,Math.min(st.first+st.size,it.display.viewTo+500),function(Jt){if(gt.line>=it.display.viewFrom){var Se=Jt.styles,je=Jt.text.length>it.options.maxHighlightLength?qn(st.mode,gt.state):null,De=_o(it,Jt,gt,!0);je&&(gt.state=je),Jt.styles=De.styles;var ln=Jt.styleClasses,oi=De.classes;oi?Jt.styleClasses=oi:ln&&(Jt.styleClasses=null);for(var pn=!Se||Se.length!=Jt.styles.length||ln!=oi&&(!ln||!oi||ln.bgClass!=oi.bgClass||ln.textClass!=oi.textClass),ki=0;!pn&&ki<Se.length;++ki)pn=Se[ki]!=Jt.styles[ki];pn&&Bt.push(gt.line),Jt.stateAfter=gt.save(),gt.nextLine()}else Jt.text.length<=it.options.maxHighlightLength&&vi(it,Jt.text,gt),Jt.stateAfter=gt.line%5==0?gt.save():null,gt.nextLine();if(+new Date>vt)return Qe(it,it.options.workDelay),!0}),st.highlightFrontier=gt.line,st.modeFrontier=Math.max(st.modeFrontier,gt.line),Bt.length&&rn(it,function(){for(var Jt=0;Jt<Bt.length;Jt++)ra(it,Bt[Jt],"text")})}}var mn=function(it,st,vt){var gt=it.display;this.viewport=st,this.visible=ie(gt,it.doc,st),this.editorIsHidden=!gt.wrapper.offsetWidth,this.wrapperHeight=gt.wrapper.clientHeight,this.wrapperWidth=gt.wrapper.clientWidth,this.oldDisplayWidth=eu(it),this.force=vt,this.dims=zA(it),this.events=[]};mn.prototype.signal=function(it,st){Ji(it,st)&&this.events.push(arguments)},mn.prototype.finish=function(){for(var it=0;it<this.events.length;it++)Rn.apply(null,this.events[it])};function Hn(it){var st=it.display;!st.scrollbarsClipped&&st.scroller.offsetWidth&&(st.nativeBarWidth=st.scroller.offsetWidth-st.scroller.clientWidth,st.heightForcer.style.height=fu(it)+"px",st.sizer.style.marginBottom=-st.nativeBarWidth+"px",st.sizer.style.borderRightWidth=fu(it)+"px",st.scrollbarsClipped=!0)}function Zn(it){if(it.hasFocus())return null;var st=Wt();if(!st||!ze(it.display.lineDiv,st))return null;var vt={activeElt:st};if(window.getSelection){var gt=window.getSelection();gt.anchorNode&>.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 ii(it){if(!(!it||!it.activeElt||it.activeElt==Wt())&&(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 Fi(it,st){var vt=it.display,gt=it.doc;if(st.editorIsHidden)return gu(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&&Qh(it)==0)return!1;Ii(it)&&(gu(it),st.dims=zA(it));var Bt=gt.first+gt.size,Jt=Math.max(st.visible.from-it.options.viewportMargin,gt.first),Se=Math.min(Bt,st.visible.to+it.options.viewportMargin);vt.viewFrom<Jt&&Jt-vt.viewFrom<20&&(Jt=Math.max(gt.first,vt.viewFrom)),vt.viewTo>Se&&vt.viewTo-Se<20&&(Se=Math.min(Bt,vt.viewTo)),Pi&&(Jt=ho(it.doc,Jt),Se=mo(it.doc,Se));var je=Jt!=vt.viewFrom||Se!=vt.viewTo||vt.lastWrapHeight!=st.wrapperHeight||vt.lastWrapWidth!=st.wrapperWidth;xl(it,Jt,Se),vt.viewOffset=Bs(wn(it.doc,vt.viewFrom)),it.display.mover.style.top=vt.viewOffset+"px";var De=Qh(it);if(!je&&De==0&&!st.force&&vt.renderedView==vt.view&&(vt.updateLineNumbers==null||vt.updateLineNumbers>=vt.viewTo))return!1;var ln=Zn(it);return De>4&&(vt.lineDiv.style.display="none"),Zi(it,vt.updateLineNumbers,st.dims),De>4&&(vt.lineDiv.style.display=""),vt.renderedView=vt.view,ii(ln),se(vt.cursorDiv),se(vt.selectionDiv),vt.gutters.style.height=vt.sizer.style.minHeight=0,je&&(vt.lastWrapHeight=st.wrapperHeight,vt.lastWrapWidth=st.wrapperWidth,Qe(it,400)),vt.updateLineNumbers=null,!0}function li(it,st){for(var vt=st.viewport,gt=!0;;gt=!1){if(!gt||!it.options.lineWrapping||st.oldDisplayWidth==eu(it)){if(vt&&vt.top!=null&&(vt={top:Math.min(it.doc.height+Pu(it.display)-Qo(it),vt.top)}),st.visible=ie(it.display,it.doc,vt),st.visible.from>=it.display.viewFrom&&st.visible.to<=it.display.viewTo)break}else gt&&(st.visible=ie(it.display,it.doc,vt));if(!Fi(it,st))break;bt(it);var Bt=di(it);Cu(it),Er(it,Bt),br(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 Xi(it,st){var vt=new mn(it,st);if(Fi(it,vt)){bt(it),li(it,vt);var gt=di(it);Cu(it),Er(it,gt),br(it,gt),vt.finish()}}function Zi(it,st,vt){var gt=it.display,Bt=it.options.lineNumbers,Jt=gt.lineDiv,Se=Jt.firstChild;function je(yr){var kr=yr.nextSibling;return Nt&<&&it.display.currentWheelTarget==yr?yr.style.display="none":yr.parentNode.removeChild(yr),kr}for(var De=gt.view,ln=gt.viewFrom,oi=0;oi<De.length;oi++){var pn=De[oi];if(!pn.hidden)if(!pn.node||pn.node.parentNode!=Jt){var ki=ou(it,pn,ln,vt);Jt.insertBefore(ki,Se)}else{for(;Se!=pn.node;)Se=je(Se);var bi=Bt&&st!=null&&st<=ln&&pn.lineNumber;pn.changes&&(Ce(pn.changes,"gutter")>-1&&(bi=!1),js(it,pn,ln,vt)),bi&&(se(pn.lineNumber),pn.lineNumber.appendChild(document.createTextNode(tr(it.options,ln)))),Se=pn.node.nextSibling}ln+=pn.size}for(;Se;)Se=je(Se)}function Ar(it){var st=it.gutters.offsetWidth;it.sizer.style.marginLeft=st+"px"}function br(it,st){it.display.sizer.style.minHeight=st.docHeight+"px",it.display.heightForcer.style.top=st.docHeight+"px",it.display.gutters.style.height=st.docHeight+it.display.barHeight+fu(it)+"px"}function eo(it){var st=it.display,vt=st.view;if(!(!st.alignWidgets&&(!st.gutters.firstChild||!it.options.fixedGutter))){for(var gt=ed(st)-st.scroller.scrollLeft+it.doc.scrollLeft,Bt=st.gutters.offsetWidth,Jt=gt+"px",Se=0;Se<vt.length;Se++)if(!vt[Se].hidden){it.options.fixedGutter&&(vt[Se].gutter&&(vt[Se].gutter.style.left=Jt),vt[Se].gutterBackground&&(vt[Se].gutterBackground.style.left=Jt));var je=vt[Se].alignable;if(je)for(var De=0;De<je.length;De++)je[De].style.left=Jt}it.options.fixedGutter&&(st.gutters.style.left=gt+Bt+"px")}}function Ii(it){if(!it.options.lineNumbers)return!1;var st=it.doc,vt=tr(it.options,st.first+st.size-1),gt=it.display;if(vt.length!=gt.lineNumChars){var Bt=gt.measure.appendChild(Ae("div",[Ae("div",vt)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Jt=Bt.firstChild.offsetWidth,Se=Bt.offsetWidth-Jt;return gt.lineGutter.style.width="",gt.lineNumInnerWidth=Math.max(Jt,gt.lineGutter.offsetWidth-Se)+1,gt.lineNumWidth=gt.lineNumInnerWidth+Se,gt.lineNumChars=gt.lineNumInnerWidth?vt.length:-1,gt.lineGutter.style.width=gt.lineNumWidth+"px",Ar(it.display),!0}return!1}function Xn(it,st){for(var vt=[],gt=!1,Bt=0;Bt<it.length;Bt++){var Jt=it[Bt],Se=null;if(typeof Jt!="string"&&(Se=Jt.style,Jt=Jt.className),Jt=="CodeMirror-linenumbers")if(st)gt=!0;else continue;vt.push({className:Jt,style:Se})}return st&&!gt&&vt.push({className:"CodeMirror-linenumbers",style:null}),vt}function Co(it){var st=it.gutters,vt=it.gutterSpecs;se(st),it.lineGutter=null;for(var gt=0;gt<vt.length;++gt){var Bt=vt[gt],Jt=Bt.className,Se=Bt.style,je=st.appendChild(Ae("div",null,"CodeMirror-gutter "+Jt));Se&&(je.style.cssText=Se),Jt=="CodeMirror-linenumbers"&&(it.lineGutter=je,je.style.width=(it.lineNumWidth||1)+"px")}st.style.display=vt.length?"":"none",Ar(it)}function Br(it){Co(it.display),Fl(it),eo(it)}function sr(it,st,vt,gt){var Bt=this;this.input=vt,Bt.scrollbarFiller=Ae("div",null,"CodeMirror-scrollbar-filler"),Bt.scrollbarFiller.setAttribute("cm-not-content","true"),Bt.gutterFiller=Ae("div",null,"CodeMirror-gutter-filler"),Bt.gutterFiller.setAttribute("cm-not-content","true"),Bt.lineDiv=Pe("div",null,"CodeMirror-code"),Bt.selectionDiv=Ae("div",null,null,"position: relative; z-index: 1"),Bt.cursorDiv=Ae("div",null,"CodeMirror-cursors"),Bt.measure=Ae("div",null,"CodeMirror-measure"),Bt.lineMeasure=Ae("div",null,"CodeMirror-measure"),Bt.lineSpace=Pe("div",[Bt.measure,Bt.lineMeasure,Bt.selectionDiv,Bt.cursorDiv,Bt.lineDiv],null,"position: relative; outline: none");var Jt=Pe("div",[Bt.lineSpace],"CodeMirror-lines");Bt.mover=Ae("div",[Jt],null,"position: relative"),Bt.sizer=Ae("div",[Bt.mover],"CodeMirror-sizer"),Bt.sizerWidth=null,Bt.heightForcer=Ae("div",null,null,"position: absolute; height: "+bn+"px; width: 1px;"),Bt.gutters=Ae("div",null,"CodeMirror-gutters"),Bt.lineGutter=null,Bt.scroller=Ae("div",[Bt.sizer,Bt.heightForcer,Bt.gutters],"CodeMirror-scroll"),Bt.scroller.setAttribute("tabIndex","-1"),Bt.wrapper=Ae("div",[Bt.scrollbarFiller,Bt.gutterFiller,Bt.scroller],"CodeMirror"),ee&&Vt<8&&(Bt.gutters.style.zIndex=-1,Bt.scroller.style.paddingRight=0),!Nt&&!(Mt&&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=Xn(gt.gutters,gt.lineNumbers),Co(Bt),vt.init(Bt)}var ar=0,qi=null;ee?qi=-.53:Mt?qi=15:te?qi=-.7:oe&&(qi=-1/3);function pr(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 Vr(it){var st=pr(it);return st.x*=qi,st.y*=qi,st}function co(it,st){var vt=pr(st),gt=vt.x,Bt=vt.y,Jt=it.display,Se=Jt.scroller,je=Se.scrollWidth>Se.clientWidth,De=Se.scrollHeight>Se.clientHeight;if(gt&&je||Bt&&De){if(Bt&<&&Nt){t:for(var ln=st.target,oi=Jt.view;ln!=Se;ln=ln.parentNode)for(var pn=0;pn<oi.length;pn++)if(oi[pn].node==ln){it.display.currentWheelTarget=ln;break t}}if(gt&&!Mt&&!Pt&&qi!=null){Bt&&De&&Jn(it,Math.max(0,Se.scrollTop+Bt*qi)),Un(it,Math.max(0,Se.scrollLeft+gt*qi)),(!Bt||Bt&&De)&&Mr(st),Jt.wheelStartX=null;return}if(Bt&&qi!=null){var ki=Bt*qi,bi=it.doc.scrollTop,yr=bi+Jt.wrapper.clientHeight;ki<0?bi=Math.max(0,bi+ki-50):yr=Math.min(it.doc.height,yr+ki+50),Xi(it,{top:bi,bottom:yr})}ar<20&&(Jt.wheelStartX==null?(Jt.wheelStartX=Se.scrollLeft,Jt.wheelStartY=Se.scrollTop,Jt.wheelDX=gt,Jt.wheelDY=Bt,setTimeout(function(){if(Jt.wheelStartX!=null){var kr=Se.scrollLeft-Jt.wheelStartX,qr=Se.scrollTop-Jt.wheelStartY,vo=qr&&Jt.wheelDY&&qr/Jt.wheelDY||kr&&Jt.wheelDX&&kr/Jt.wheelDX;Jt.wheelStartX=Jt.wheelStartY=null,vo&&(qi=(qi*ar+vo)/(ar+1),++ar)}},200)):(Jt.wheelDX+=gt,Jt.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(!Cr(vt.anchor,gt.anchor)||!Cr(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 Rr(rr(this.ranges[st].anchor),rr(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(ui(st,gt.from())>=0&&ui(it,gt.to())<=0)return vt}return-1};var Rr=function(it,st){this.anchor=it,this.head=st};Rr.prototype.from=function(){return or(this.anchor,this.head)},Rr.prototype.to=function(){return Gr(this.anchor,this.head)},Rr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function jo(it,st,vt){var gt=it&&it.options.selectionsMayTouch,Bt=st[vt];st.sort(function(ki,bi){return ui(ki.from(),bi.from())}),vt=Ce(st,Bt);for(var Jt=1;Jt<st.length;Jt++){var Se=st[Jt],je=st[Jt-1],De=ui(je.to(),Se.from());if(gt&&!Se.empty()?De>0:De>=0){var ln=or(je.from(),Se.from()),oi=Gr(je.to(),Se.to()),pn=je.empty()?Se.from()==Se.head:je.from()==je.head;Jt<=vt&&--vt,st.splice(--Jt,2,new Rr(pn?oi:ln,pn?ln:oi))}}return new fo(st,vt)}function us(it,st){return new fo([new Rr(it,st||it)],0)}function qo(it){return it.text?On(it.from.line+it.text.length-1,en(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function ns(it,st){if(ui(it,st.from)<0)return it;if(ui(it,st.to)<=0)return qo(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+=qo(st).ch-st.to.ch),On(vt,gt)}function xo(it,st){for(var vt=[],gt=0;gt<it.sel.ranges.length;gt++){var Bt=it.sel.ranges[gt];vt.push(new Rr(ns(Bt.anchor,st),ns(Bt.head,st)))}return jo(it.cm,vt,it.sel.primIndex)}function wa(it,st,vt){return it.line==st.line?On(vt.line,it.ch-st.ch+vt.ch):On(vt.line+(it.line-st.line),it.ch)}function $o(it,st,vt){for(var gt=[],Bt=On(it.first,0),Jt=Bt,Se=0;Se<st.length;Se++){var je=st[Se],De=wa(je.from,Bt,Jt),ln=wa(qo(je),Bt,Jt);if(Bt=je.to,Jt=ln,vt=="around"){var oi=it.sel.ranges[Se],pn=ui(oi.head,oi.anchor)<0;gt[Se]=new Rr(pn?ln:De,pn?De:ln)}else gt[Se]=new Rr(De,De)}return new fo(gt,it.sel.primIndex)}function rs(it){it.doc.mode=In(it.options,it.doc.modeOption),Ps(it)}function Ps(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,Qe(it,100),it.state.modeGen++,it.curOp&&Fl(it)}function qs(it,st){return st.from.ch==0&&st.to.ch==0&&en(st.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function Ua(it,st,vt,gt){function Bt(Yo){return vt?vt[Yo]:null}function Jt(Yo,Mo,ss){Ws(Yo,Mo,ss,gt),Hr(Yo,"change",Yo,st)}function Se(Yo,Mo){for(var ss=[],ks=Yo;ks<Mo;++ks)ss.push(new Ro(ln[ks],Bt(ks),gt));return ss}var je=st.from,De=st.to,ln=st.text,oi=wn(it,je.line),pn=wn(it,De.line),ki=en(ln),bi=Bt(ln.length-1),yr=De.line-je.line;if(st.full)it.insert(0,Se(0,ln.length)),it.remove(ln.length,it.size-ln.length);else if(qs(it,st)){var kr=Se(0,ln.length-1);Jt(pn,pn.text,bi),yr&&it.remove(je.line,yr),kr.length&&it.insert(je.line,kr)}else if(oi==pn)if(ln.length==1)Jt(oi,oi.text.slice(0,je.ch)+ki+oi.text.slice(De.ch),bi);else{var qr=Se(1,ln.length-1);qr.push(new Ro(ki+oi.text.slice(De.ch),bi,gt)),Jt(oi,oi.text.slice(0,je.ch)+ln[0],Bt(0)),it.insert(je.line+1,qr)}else if(ln.length==1)Jt(oi,oi.text.slice(0,je.ch)+ln[0]+pn.text.slice(De.ch),Bt(0)),it.remove(je.line+1,yr);else{Jt(oi,oi.text.slice(0,je.ch)+ln[0],Bt(0)),Jt(pn,ki+pn.text.slice(De.ch),bi);var vo=Se(1,ln.length-1);yr>1&&it.remove(je.line+1,yr-1),it.insert(je.line+1,vo)}Hr(it,"change",it,st)}function Xs(it,st,vt){function gt(Bt,Jt,Se){if(Bt.linked)for(var je=0;je<Bt.linked.length;++je){var De=Bt.linked[je];if(De.doc!=Jt){var ln=Se&&De.sharedHist;vt&&!ln||(st(De.doc,ln),gt(De.doc,Bt,ln))}}}gt(it,null,!0)}function zo(it,st){if(st.cm)throw new Error("This document is already in use.");it.doc=st,st.cm=it,ms(it),rs(it),Ko(it),it.options.lineWrapping||sa(it),it.options.mode=st.modeOption,Fl(it)}function Ko(it){(it.doc.direction=="rtl"?Ge:Gt)(it.display.lineDiv,"CodeMirror-rtl")}function fs(it){rn(it,function(){Ko(it),Fl(it)})}function es(it){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=it||1}function Ds(it,st){var vt={from:rr(st.from),to:qo(st),text:Qn(it,st.from,st.to)};return Fs(it,vt,st.from.line,st.to.line+1),Xs(it,function(gt){return Fs(gt,vt,st.from.line,st.to.line+1)},!0),vt}function no(it){for(;it.length;){var st=en(it);if(st.ranges)it.pop();else break}}function Vo(it,st){if(st)return no(it.done),en(it.done);if(it.done.length&&!en(it.done).ranges)return en(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),en(it.done)}function aa(it,st,vt,gt){var Bt=it.history;Bt.undone.length=0;var Jt=+new Date,Se,je;if((Bt.lastOp==gt||Bt.lastOrigin==st.origin&&st.origin&&(st.origin.charAt(0)=="+"&&Bt.lastModTime>Jt-(it.cm?it.cm.options.historyEventDelay:500)||st.origin.charAt(0)=="*"))&&(Se=Vo(Bt,Bt.lastOp==gt)))je=en(Se.changes),ui(st.from,st.to)==0&&ui(st.from,je.to)==0?je.to=qo(st):Se.changes.push(Ds(it,st));else{var De=en(Bt.done);for((!De||!De.ranges)&&Ll(it.sel,Bt.done),Se={changes:[Ds(it,st)],generation:Bt.generation},Bt.done.push(Se);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=Jt,Bt.lastOp=Bt.lastSelOp=gt,Bt.lastOrigin=Bt.lastSelOrigin=st.origin,je||Rn(it,"historyAdded")}function Rs(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 Ql(it,st,vt,gt){var Bt=it.history,Jt=gt&>.origin;vt==Bt.lastSelOp||Jt&&Bt.lastSelOrigin==Jt&&(Bt.lastModTime==Bt.lastSelTime&&Bt.lastOrigin==Jt||Rs(it,Jt,en(Bt.done),st))?Bt.done[Bt.done.length-1]=st:Ll(st,Bt.done),Bt.lastSelTime=+new Date,Bt.lastSelOrigin=Jt,Bt.lastSelOp=vt,gt&>.clearRedo!==!1&&no(Bt.undone)}function Ll(it,st){var vt=en(st);vt&&vt.ranges&&vt.equals(it)||st.push(it)}function Fs(it,st,vt,gt){var Bt=st["spans_"+it.id],Jt=0;it.iter(Math.max(it.first,vt),Math.min(it.first+it.size,gt),function(Se){Se.markedSpans&&((Bt||(Bt=st["spans_"+it.id]={}))[Jt]=Se.markedSpans),++Jt})}function ca(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 jl(it,st){var vt=st["spans_"+it.id];if(!vt)return null;for(var gt=[],Bt=0;Bt<st.text.length;++Bt)gt.push(ca(vt[Bt]));return gt}function Ao(it,st){var vt=jl(it,st),gt=Do(it,st);if(!vt)return gt;if(!gt)return vt;for(var Bt=0;Bt<vt.length;++Bt){var Jt=vt[Bt],Se=gt[Bt];if(Jt&&Se)t:for(var je=0;je<Se.length;++je){for(var De=Se[je],ln=0;ln<Jt.length;++ln)if(Jt[ln].marker==De.marker)continue t;Jt.push(De)}else Se&&(vt[Bt]=Se)}return vt}function Ra(it,st,vt){for(var gt=[],Bt=0;Bt<it.length;++Bt){var Jt=it[Bt];if(Jt.ranges){gt.push(vt?fo.prototype.deepCopy.call(Jt):Jt);continue}var Se=Jt.changes,je=[];gt.push({changes:je});for(var De=0;De<Se.length;++De){var ln=Se[De],oi=void 0;if(je.push({from:ln.from,to:ln.to,text:ln.text}),st)for(var pn in ln)(oi=pn.match(/^spans_(\d+)$/))&&Ce(st,Number(oi[1]))>-1&&(en(je)[pn]=ln[pn],delete ln[pn])}}return gt}function Kl(it,st,vt,gt){if(gt){var Bt=it.anchor;if(vt){var Jt=ui(st,Bt)<0;Jt!=ui(vt,Bt)<0?(Bt=st,st=vt):Jt!=ui(st,vt)<0&&(st=vt)}return new Rr(Bt,st)}else return new Rr(vt||st,st)}function ta(it,st,vt,gt,Bt){Bt==null&&(Bt=it.cm&&(it.cm.display.shift||it.extend)),Ta(it,new fo([Kl(it.sel.primary(),st,vt,Bt)],0),gt)}function la(it,st,vt){for(var gt=[],Bt=it.cm&&(it.cm.display.shift||it.extend),Jt=0;Jt<it.sel.ranges.length;Jt++)gt[Jt]=Kl(it.sel.ranges[Jt],st[Jt],null,Bt);var Se=jo(it.cm,gt,it.sel.primIndex);Ta(it,Se,vt)}function ka(it,st,vt,gt){var Bt=it.sel.ranges.slice(0);Bt[st]=vt,Ta(it,jo(it.cm,Bt,it.sel.primIndex),gt)}function Xa(it,st,vt,gt){Ta(it,us(st,vt),gt)}function al(it,st,vt){var gt={ranges:st.ranges,update:function(Bt){this.ranges=[];for(var Jt=0;Jt<Bt.length;Jt++)this.ranges[Jt]=new Rr(er(it,Bt[Jt].anchor),er(it,Bt[Jt].head))},origin:vt&&vt.origin};return Rn(it,"beforeSelectionChange",it,gt),it.cm&&Rn(it.cm,"beforeSelectionChange",it.cm,gt),gt.ranges!=st.ranges?jo(it.cm,gt.ranges,gt.ranges.length-1):st}function _s(it,st,vt){var gt=it.history.done,Bt=en(gt);Bt&&Bt.ranges?(gt[gt.length-1]=st,Sl(it,st,vt)):Ta(it,st,vt)}function Ta(it,st,vt){Sl(it,st,vt),Ql(it,it.sel,it.cm?it.cm.curOp.id:NaN,vt)}function Sl(it,st,vt){(Ji(it,"beforeSelectionChange")||it.cm&&Ji(it.cm,"beforeSelectionChange"))&&(st=al(it,st,vt));var gt=vt&&vt.bias||(ui(st.primary().head,it.sel.primary().head)<0?-1:1);pu(it,Uu(it,st,gt,!0)),!(vt&&vt.scroll===!1)&&it.cm&&dn(it.cm)}function pu(it,st){st.equals(it.sel)||(it.sel=st,it.cm&&(it.cm.curOp.updateInput=1,it.cm.curOp.selectionChanged=!0,dr(it.cm)),Hr(it,"cursorActivity",it))}function au(it){pu(it,Uu(it,it.sel,null,!1))}function Uu(it,st,vt,gt){for(var Bt,Jt=0;Jt<st.ranges.length;Jt++){var Se=st.ranges[Jt],je=st.ranges.length==it.sel.ranges.length&&it.sel.ranges[Jt],De=dh(it,Se.anchor,je&&je.anchor,vt,gt),ln=dh(it,Se.head,je&&je.head,vt,gt);(Bt||De!=Se.anchor||ln!=Se.head)&&(Bt||(Bt=st.ranges.slice(0,Jt)),Bt[Jt]=new Rr(De,ln))}return Bt?jo(it.cm,Bt,st.primIndex):st}function Xu(it,st,vt,gt,Bt){var Jt=wn(it,st.line);if(Jt.markedSpans)for(var Se=0;Se<Jt.markedSpans.length;++Se){var je=Jt.markedSpans[Se],De=je.marker,ln="selectLeft"in De?!De.selectLeft:De.inclusiveLeft,oi="selectRight"in De?!De.selectRight:De.inclusiveRight;if((je.from==null||(ln?je.from<=st.ch:je.from<st.ch))&&(je.to==null||(oi?je.to>=st.ch:je.to>st.ch))){if(Bt&&(Rn(De,"beforeCursorEnter"),De.explicitlyCleared))if(Jt.markedSpans){--Se;continue}else break;if(!De.atomic)continue;if(vt){var pn=De.find(gt<0?1:-1),ki=void 0;if((gt<0?oi:ln)&&(pn=$u(it,pn,-gt,pn&&pn.line==st.line?Jt:null)),pn&&pn.line==st.line&&(ki=ui(pn,vt))&&(gt<0?ki<0:ki>0))return Xu(it,pn,st,gt,Bt)}var bi=De.find(gt<0?-1:1);return(gt<0?ln:oi)&&(bi=$u(it,bi,gt,bi.line==st.line?Jt:null)),bi?Xu(it,bi,st,gt,Bt):null}}return st}function dh(it,st,vt,gt,Bt){var Jt=gt||1,Se=Xu(it,st,vt,Jt,Bt)||!Bt&&Xu(it,st,vt,Jt,!0)||Xu(it,st,vt,-Jt,Bt)||!Bt&&Xu(it,st,vt,-Jt,!0);return Se||(it.cantEdit=!0,On(it.first,0))}function $u(it,st,vt,gt){return vt<0&&st.ch==0?st.line>it.first?er(it,On(st.line-1)):null:vt>0&&st.ch==(gt||wn(it,st.line)).text.length?st.line<it.first+it.size-1?On(st.line+1,0):null:new On(st.line,st.ch+vt)}function _a(it){it.setSelection(On(it.firstLine(),0),On(it.lastLine()),Ze)}function Bu(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,Jt,Se,je){Bt&&(gt.from=er(it,Bt)),Jt&&(gt.to=er(it,Jt)),Se&&(gt.text=Se),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 Ul(it,st,vt){if(it.cm){if(!it.cm.curOp)return kn(it.cm,Ul)(it,st,vt);if(it.cm.state.suppressEdits)return}if(!((Ji(it,"beforeChange")||it.cm&&Ji(it.cm,"beforeChange"))&&(st=Bu(it,st,!0),!st))){var gt=Sr&&!vt&&hs(it,st.from,st.to);if(gt)for(var Bt=gt.length-1;Bt>=0;--Bt)nl(it,{from:gt[Bt].from,to:gt[Bt].to,text:Bt?[""]:st.text,origin:st.origin});else nl(it,st)}}function nl(it,st){if(!(st.text.length==1&&st.text[0]==""&&ui(st.from,st.to)==0)){var vt=xo(it,st);aa(it,st,vt,it.cm?it.cm.curOp.id:NaN),mh(it,st,vt,Do(it,st));var gt=[];Xs(it,function(Bt,Jt){!Jt&&Ce(gt,Bt.history)==-1&&(Cl(Bt.history,st),gt.push(Bt.history)),mh(Bt,st,null,Do(Bt,st))})}}function ph(it,st,vt){var gt=it.cm&&it.cm.state.suppressEdits;if(!(gt&&!vt)){for(var Bt=it.history,Jt,Se=it.sel,je=st=="undo"?Bt.done:Bt.undone,De=st=="undo"?Bt.undone:Bt.done,ln=0;ln<je.length&&(Jt=je[ln],!(vt?Jt.ranges&&!Jt.equals(it.sel):!Jt.ranges));ln++);if(ln!=je.length){for(Bt.lastOrigin=Bt.lastSelOrigin=null;;)if(Jt=je.pop(),Jt.ranges){if(Ll(Jt,De),vt&&!Jt.equals(it.sel)){Ta(it,Jt,{clearRedo:!1});return}Se=Jt}else if(gt){je.push(Jt);return}else break;var oi=[];Ll(Se,De),De.push({changes:oi,generation:Bt.generation}),Bt.generation=Jt.generation||++Bt.maxGeneration;for(var pn=Ji(it,"beforeChange")||it.cm&&Ji(it.cm,"beforeChange"),ki=function(kr){var qr=Jt.changes[kr];if(qr.origin=st,pn&&!Bu(it,qr,!1))return je.length=0,{};oi.push(Ds(it,qr));var vo=kr?xo(it,qr):en(je);mh(it,qr,vo,Ao(it,qr)),!kr&&it.cm&&it.cm.scrollIntoView({from:qr.from,to:qo(qr)});var Yo=[];Xs(it,function(Mo,ss){!ss&&Ce(Yo,Mo.history)==-1&&(Cl(Mo.history,qr),Yo.push(Mo.history)),mh(Mo,qr,null,Ao(Mo,qr))})},bi=Jt.changes.length-1;bi>=0;--bi){var yr=ki(bi);if(yr)return yr.v}}}}function Cc(it,st){if(st!=0&&(it.first+=st,it.sel=new fo(Li(it.sel.ranges,function(Bt){return new Rr(On(Bt.anchor.line+st,Bt.anchor.ch),On(Bt.head.line+st,Bt.head.ch))}),it.sel.primIndex),it.cm)){Fl(it.cm,it.first,it.first-st,st);for(var vt=it.cm.display,gt=vt.viewFrom;gt<vt.viewTo;gt++)ra(it.cm,gt,"gutter")}}function mh(it,st,vt,gt){if(it.cm&&!it.cm.curOp)return kn(it.cm,mh)(it,st,vt,gt);if(st.to.line<it.first){Cc(it,st.text.length-1-(st.to.line-st.from.line));return}if(!(st.from.line>it.lastLine())){if(st.from.line<it.first){var Bt=st.text.length-1-(it.first-st.from.line);Cc(it,Bt),st={from:On(it.first,0),to:On(st.to.line+Bt,st.to.ch),text:[en(st.text)],origin:st.origin}}var Jt=it.lastLine();st.to.line>Jt&&(st={from:st.from,to:On(Jt,wn(it,Jt).text.length),text:[st.text[0]],origin:st.origin}),st.removed=Qn(it,st.from,st.to),vt||(vt=xo(it,st)),it.cm?ic(it.cm,st,gt):Ua(it,st,gt),Sl(it,vt,Ze),it.cantEdit&&dh(it,On(it.firstLine(),0))&&(it.cantEdit=!1)}}function ic(it,st,vt){var gt=it.doc,Bt=it.display,Jt=st.from,Se=st.to,je=!1,De=Jt.line;it.options.lineWrapping||(De=qe(Wo(wn(gt,Jt.line))),gt.iter(De,Se.line+1,function(bi){if(bi==Bt.maxLine)return je=!0,!0})),gt.sel.contains(st.from,st.to)>-1&&dr(it),Ua(gt,st,vt,el(it)),it.options.lineWrapping||(gt.iter(De,Jt.line+st.text.length,function(bi){var yr=ha(bi);yr>Bt.maxLineLength&&(Bt.maxLine=bi,Bt.maxLineLength=yr,Bt.maxLineChanged=!0,je=!1)}),je&&(it.curOp.updateMaxLine=!0)),jr(gt,Jt.line),Qe(it,400);var ln=st.text.length-(Se.line-Jt.line)-1;st.full?Fl(it):Jt.line==Se.line&&st.text.length==1&&!qs(it.doc,st)?ra(it,Jt.line,"text"):Fl(it,Jt.line,Se.line+1,ln);var oi=Ji(it,"changes"),pn=Ji(it,"change");if(pn||oi){var ki={from:Jt,to:Se,text:st.text,removed:st.removed,origin:st.origin};pn&&Hr(it,"change",it,ki),oi&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(ki)}it.display.selForContextMenu=null}function rc(it,st,vt,gt,Bt){var Jt;gt||(gt=vt),ui(gt,vt)<0&&(Jt=[gt,vt],vt=Jt[0],gt=Jt[1]),typeof st=="string"&&(st=it.splitLines(st)),Ul(it,{from:vt,to:gt,text:st,origin:Bt})}function vh(it,st,vt,gt){vt<it.line?it.line+=gt:st<it.line&&(it.line=st,it.ch=0)}function fa(it,st,vt,gt){for(var Bt=0;Bt<it.length;++Bt){var Jt=it[Bt],Se=!0;if(Jt.ranges){Jt.copied||(Jt=it[Bt]=Jt.deepCopy(),Jt.copied=!0);for(var je=0;je<Jt.ranges.length;je++)vh(Jt.ranges[je].anchor,st,vt,gt),vh(Jt.ranges[je].head,st,vt,gt);continue}for(var De=0;De<Jt.changes.length;++De){var ln=Jt.changes[De];if(vt<ln.from.line)ln.from=On(ln.from.line+gt,ln.from.ch),ln.to=On(ln.to.line+gt,ln.to.ch);else if(st<=ln.to.line){Se=!1;break}}Se||(it.splice(0,Bt+1),Bt=0)}}function Cl(it,st){var vt=st.from.line,gt=st.to.line,Bt=st.text.length-(gt-vt)-1;fa(it.done,vt,gt,Bt),fa(it.undone,vt,gt,Bt)}function Ba(it,st,vt,gt){var Bt=st,Jt=st;return typeof st=="number"?Jt=wn(it,Lr(it,st)):Bt=qe(st),Bt==null?null:(gt(Jt,Bt)&&it.cm&&ra(it.cm,Bt,vt),Jt)}function pl(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}pl.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,Na(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 Jt=Math.min(st,Bt-it),Se=gt.height;if(gt.removeInner(it,Jt),this.height-=Se-gt.height,Bt==Jt&&(this.children.splice(vt--,1),gt.parent=null),(st-=Jt)==0)break;it=0}else it-=Bt}if(this.size-st<25&&(this.children.length>1||!(this.children[0]instanceof pl))){var je=[];this.collapse(je),this.children=[new pl(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],Jt=Bt.chunkSize();if(it<=Jt){if(Bt.insertInner(it,st,vt),Bt.lines&&Bt.lines.length>50){for(var Se=Bt.lines.length%25+25,je=Se;je<Bt.lines.length;){var De=new pl(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,Se),this.maybeSpill()}break}it-=Jt}},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=Ce(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],Jt=Bt.chunkSize();if(it<Jt){var Se=Math.min(st,Jt-it);if(Bt.iterN(it,Se,vt))return!0;if((st-=Se)==0)break;it=0}else it-=Jt}}};var lu=function(it,st,vt){if(vt)for(var gt in vt)vt.hasOwnProperty(gt)&&(this[gt]=vt[gt]);this.doc=it,this.node=st};lu.prototype.clear=function(){var it=this.doc.cm,st=this.line.widgets,vt=this.line,gt=qe(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 Jt=Ja(this);Di(vt,Math.max(0,vt.height-Jt)),it&&(rn(it,function(){Fu(it,vt,-Jt),ra(it,gt,"widget")}),Hr(it,"lineWidgetCleared",it,this,gt))}},lu.prototype.changed=function(){var it=this,st=this.height,vt=this.doc.cm,gt=this.line;this.height=null;var Bt=Ja(this)-st;Bt&&(Vi(this.doc,gt)||Di(gt,gt.height+Bt),vt&&rn(vt,function(){vt.curOp.forceUpdate=!0,Fu(vt,gt,Bt),Hr(vt,"lineWidgetChanged",vt,it,qe(gt))}))},mr(lu);function Fu(it,st,vt){Bs(st)<(it.curOp&&it.curOp.scrollTop||it.doc.scrollTop)&&$e(it,vt)}function zh(it,st,vt,gt){var Bt=new lu(it,vt,gt),Jt=it.cm;return Jt&&Bt.noHScroll&&(Jt.display.alignWidgets=!0),Ba(it,st,"widget",function(Se){var je=Se.widgets||(Se.widgets=[]);if(Bt.insertAt==null?je.push(Bt):je.splice(Math.min(je.length-1,Math.max(0,Bt.insertAt)),0,Bt),Bt.line=Se,Jt&&!Vi(it,Se)){var De=Bs(Se)<it.scrollTop;Di(Se,Se.height+Ja(Bt)),De&&$e(Jt,Bt.height),Jt.curOp.forceUpdate=!0}return!0}),Jt&&Hr(Jt,"lineWidgetAdded",Jt,Bt,typeof st=="number"?st:qe(st)),Bt}var Ih=0,_n=function(it,st){this.lines=[],this.type=st,this.doc=it,this.id=++Ih};_n.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,st=it&&!it.curOp;if(st&&Ir(it),Ji(this,"clear")){var vt=this.find();vt&&Hr(this,"clear",vt.from,vt.to)}for(var gt=null,Bt=null,Jt=0;Jt<this.lines.length;++Jt){var Se=this.lines[Jt],je=ua(Se.markedSpans,this);it&&!this.collapsed?ra(it,qe(Se),"text"):it&&(je.to!=null&&(Bt=qe(Se)),je.from!=null&&(gt=qe(Se))),Se.markedSpans=xs(Se.markedSpans,je),je.from==null&&this.collapsed&&!Vi(this.doc,Se)&&it&&Di(Se,Gu(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var De=0;De<this.lines.length;++De){var ln=Wo(this.lines[De]),oi=ha(ln);oi>it.display.maxLineLength&&(it.display.maxLine=ln,it.display.maxLineLength=oi,it.display.maxLineChanged=!0)}gt!=null&&it&&this.collapsed&&Fl(it,gt,Bt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&au(it.doc)),it&&Hr(it,"markerCleared",it,this,gt,Bt),st&&$n(it),this.parent&&this.parent.clear()}},_n.prototype.find=function(it,st){it==null&&this.type=="bookmark"&&(it=1);for(var vt,gt,Bt=0;Bt<this.lines.length;++Bt){var Jt=this.lines[Bt],Se=ua(Jt.markedSpans,this);if(Se.from!=null&&(vt=On(st?Jt:qe(Jt),Se.from),it==-1))return vt;if(Se.to!=null&&(gt=On(st?Jt:qe(Jt),Se.to),it==1))return gt}return vt&&{from:vt,to:gt}},_n.prototype.changed=function(){var it=this,st=this.find(-1,!0),vt=this,gt=this.doc.cm;!st||!gt||rn(gt,function(){var Bt=st.line,Jt=qe(st.line),Se=ec(gt,Jt);if(Se&&(ju(Se),gt.curOp.selectionChanged=gt.curOp.forceUpdate=!0),gt.curOp.updateMaxLine=!0,!Vi(vt.doc,Bt)&&vt.height!=null){var je=vt.height;vt.height=null;var De=Ja(vt)-je;De&&Di(Bt,Bt.height+De)}Hr(gt,"markerChanged",gt,it)})},_n.prototype.attachLine=function(it){if(!this.lines.length&&this.doc.cm){var st=this.doc.cm.curOp;(!st.maybeHiddenMarkers||Ce(st.maybeHiddenMarkers,this)==-1)&&(st.maybeUnhiddenMarkers||(st.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(it)},_n.prototype.detachLine=function(it){if(this.lines.splice(Ce(this.lines,it),1),!this.lines.length&&this.doc.cm){var st=this.doc.cm.curOp;(st.maybeHiddenMarkers||(st.maybeHiddenMarkers=[])).push(this)}},mr(_n);function Ru(it,st,vt,gt,Bt){if(gt&>.shared)return lA(it,st,vt,gt,Bt);if(it.cm&&!it.cm.curOp)return kn(it.cm,Ru)(it,st,vt,gt,Bt);var Jt=new _n(it,Bt),Se=ui(st,vt);if(gt&&Re(gt,Jt,!1),Se>0||Se==0&&Jt.clearWhenEmpty!==!1)return Jt;if(Jt.replacedWith&&(Jt.collapsed=!0,Jt.widgetNode=Pe("span",[Jt.replacedWith],"CodeMirror-widget"),gt.handleMouseEvents||Jt.widgetNode.setAttribute("cm-ignore-events","true"),gt.insertLeft&&(Jt.widgetNode.insertLeft=!0)),Jt.collapsed){if(Ns(it,st.line,st,vt,Jt)||st.line!=vt.line&&Ns(it,vt.line,st,vt,Jt))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ci()}Jt.addToHistory&&aa(it,{from:st,to:vt,origin:"markText"},it.sel,NaN);var je=st.line,De=it.cm,ln;if(it.iter(je,vt.line+1,function(pn){De&&Jt.collapsed&&!De.options.lineWrapping&&Wo(pn)==De.display.maxLine&&(ln=!0),Jt.collapsed&&je!=st.line&&Di(pn,0),da(pn,new Xo(Jt,je==st.line?st.ch:null,je==vt.line?vt.ch:null)),++je}),Jt.collapsed&&it.iter(st.line,vt.line+1,function(pn){Vi(it,pn)&&Di(pn,0)}),Jt.clearOnEnter&&gn(Jt,"beforeCursorEnter",function(){return Jt.clear()}),Jt.readOnly&&(wo(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),Jt.collapsed&&(Jt.id=++Ih,Jt.atomic=!0),De){if(ln&&(De.curOp.updateMaxLine=!0),Jt.collapsed)Fl(De,st.line,vt.line+1);else if(Jt.className||Jt.startStyle||Jt.endStyle||Jt.css||Jt.attributes||Jt.title)for(var oi=st.line;oi<=vt.line;oi++)ra(De,oi,"text");Jt.atomic&&au(De.doc),Hr(De,"markerAdded",De,Jt)}return Jt}var kh=function(it,st){this.markers=it,this.primary=st;for(var vt=0;vt<it.length;++vt)it[vt].parent=this};kh.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")}},kh.prototype.find=function(it,st){return this.primary.find(it,st)},mr(kh);function lA(it,st,vt,gt,Bt){gt=Re(gt),gt.shared=!1;var Jt=[Ru(it,st,vt,gt,Bt)],Se=Jt[0],je=gt.widgetNode;return Xs(it,function(De){je&&(gt.widgetNode=je.cloneNode(!0)),Jt.push(Ru(De,er(De,st),er(De,vt),gt,Bt));for(var ln=0;ln<De.linked.length;++ln)if(De.linked[ln].isParent)return;Se=en(Jt)}),new kh(Jt,Se)}function nd(it){return it.findMarks(On(it.first,0),it.clipPos(On(it.lastLine())),function(st){return st.parent})}function gc(it,st){for(var vt=0;vt<st.length;vt++){var gt=st[vt],Bt=gt.find(),Jt=it.clipPos(Bt.from),Se=it.clipPos(Bt.to);if(ui(Jt,Se)){var je=Ru(it,Jt,Se,gt.primary,gt.primary.type);gt.markers.push(je),je.parent=gt}}}function xd(it){for(var st=function(gt){var Bt=it[gt],Jt=[Bt.primary.doc];Xs(Bt.primary.doc,function(De){return Jt.push(De)});for(var Se=0;Se<Bt.markers.length;Se++){var je=Bt.markers[Se];Ce(Jt,je.doc)==-1&&(je.parent=null,Bt.markers.splice(Se--,1))}},vt=0;vt<it.length;vt++)st(vt)}var SA=0,Lu=function(it,st,vt,gt,Bt){if(!(this instanceof Lu))return new Lu(it,st,vt,gt,Bt);vt==null&&(vt=0),ga.call(this,[new pl([new Ro("",null)])]),this.first=vt,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=vt;var Jt=On(vt,0);this.sel=us(Jt),this.history=new es(null),this.id=++SA,this.modeOption=st,this.lineSep=gt,this.direction=Bt=="rtl"?"rtl":"ltr",this.extend=!1,typeof it=="string"&&(it=this.splitLines(it)),Ua(this,{from:Jt,to:Jt,text:it}),Ta(this,us(Jt),Ze)};Lu.prototype=Ot(ga.prototype,{constructor:Lu,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=Si(this,this.first,this.first+this.size);return it===!1?st:st.join(it||this.lineSeparator())},setValue:Yn(function(it){var st=On(this.first,0),vt=this.first+this.size-1;Ul(this,{from:st,to:On(vt,wn(this,vt).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&fn(this.cm,0,0),Ta(this,us(st),Ze)}),replaceRange:function(it,st,vt,gt){st=er(this,st),vt=vt?er(this,vt):st,rc(this,it,st,vt,gt)},getRange:function(it,st,vt){var gt=Qn(this,er(this,it),er(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(Ei(this,it))return wn(this,it)},getLineNumber:function(it){return qe(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=wn(this,it)),Wo(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return er(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:Yn(function(it,st,vt){Xa(this,er(this,typeof it=="number"?On(it,st||0):it),null,vt)}),setSelection:Yn(function(it,st,vt){Xa(this,er(this,it),er(this,st||it),vt)}),extendSelection:Yn(function(it,st,vt){ta(this,er(this,it),st&&er(this,st),vt)}),extendSelections:Yn(function(it,st){la(this,io(this,it),st)}),extendSelectionsBy:Yn(function(it,st){var vt=Li(this.sel.ranges,it);la(this,io(this,vt),st)}),setSelections:Yn(function(it,st,vt){if(it.length){for(var gt=[],Bt=0;Bt<it.length;Bt++)gt[Bt]=new Rr(er(this,it[Bt].anchor),er(this,it[Bt].head));st==null&&(st=Math.min(it.length-1,this.sel.primIndex)),Ta(this,jo(this.cm,gt,st),vt)}}),addSelection:Yn(function(it,st,vt){var gt=this.sel.ranges.slice(0);gt.push(new Rr(er(this,it),er(this,st||it))),Ta(this,jo(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=Qn(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=Qn(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:Yn(function(it,st,vt){for(var gt=[],Bt=this.sel,Jt=0;Jt<Bt.ranges.length;Jt++){var Se=Bt.ranges[Jt];gt[Jt]={from:Se.from(),to:Se.to(),text:this.splitLines(it[Jt]),origin:vt}}for(var je=st&&st!="end"&&$o(this,gt,st),De=gt.length-1;De>=0;De--)Ul(this,gt[De]);je?_s(this,je):this.cm&&dn(this.cm)}),undo:Yn(function(){ph(this,"undo")}),redo:Yn(function(){ph(this,"redo")}),undoSelection:Yn(function(){ph(this,"undo",!0)}),redoSelection:Yn(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 es(this.history.maxGeneration),Xs(this,function(st){return st.history=it.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(it){return it&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(it){return this.history.generation==(it||this.cleanGeneration)},getHistory:function(){return{done:Ra(this.history.done),undone:Ra(this.history.undone)}},setHistory:function(it){var st=this.history=new es(this.history.maxGeneration);st.done=Ra(it.done.slice(0),null,!0),st.undone=Ra(it.undone.slice(0),null,!0)},setGutterMarker:Yn(function(it,st,vt){return Ba(this,it,"gutter",function(gt){var Bt=gt.gutterMarkers||(gt.gutterMarkers={});return Bt[st]=vt,!vt&&At(Bt)&&(gt.gutterMarkers=null),!0})}),clearGutter:Yn(function(it){var st=this;this.iter(function(vt){vt.gutterMarkers&&vt.gutterMarkers[it]&&Ba(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(!Ei(this,it)||(st=it,it=wn(this,it),!it))return null}else if(st=qe(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:Yn(function(it,st,vt){return Ba(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(Ut(vt).test(gt[Bt]))return!1;gt[Bt]+=" "+vt}return!0})}),removeLineClass:Yn(function(it,st,vt){return Ba(this,it,st=="gutter"?"gutter":"class",function(gt){var Bt=st=="text"?"textClass":st=="background"?"bgClass":st=="gutter"?"gutterClass":"wrapClass",Jt=gt[Bt];if(Jt)if(vt==null)gt[Bt]=null;else{var Se=Jt.match(Ut(vt));if(!Se)return!1;var je=Se.index+Se[0].length;gt[Bt]=Jt.slice(0,Se.index)+(!Se.index||je==Jt.length?"":" ")+Jt.slice(je)||null}else return!1;return!0})}),addLineWidget:Yn(function(it,st,vt){return zh(this,it,st,vt)}),removeLineWidget:function(it){it.clear()},markText:function(it,st,vt){return Ru(this,er(this,it),er(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=er(this,it),Ru(this,it,it,vt,"bookmark")},findMarksAt:function(it){it=er(this,it);var st=[],vt=wn(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=er(this,it),st=er(this,st);var gt=[],Bt=it.line;return this.iter(it.line,st.line+1,function(Jt){var Se=Jt.markedSpans;if(Se)for(var je=0;je<Se.length;je++){var De=Se[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))&>.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 Jt=Bt.text.length+gt;if(Jt>it)return st=it,!0;it-=Jt,++vt}),er(this,On(vt,st))},indexFromPos:function(it){it=er(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 Lu(Si(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 Lu(Si(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}],gc(gt,nd(this)),gt},unlinkDoc:function(it){if(it instanceof ps&&(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),xd(nd(this));break}}if(it.history==this.history){var gt=[it.id];Xs(it,function(Bt){return gt.push(Bt.id)},!0),it.history=new es(null),it.history.done=Ra(this.history.done,gt),it.history.undone=Ra(this.history.undone,gt)}},iterLinkedDocs:function(it){Xs(this,it)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(it){return this.lineSep?it.split(this.lineSep):To(it)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Yn(function(it){it!="rtl"&&(it="ltr"),it!=this.direction&&(this.direction=it,this.iter(function(st){return st.order=null}),this.cm&&fs(this.cm))})}),Lu.prototype.eachLine=Lu.prototype.iter;var jc=0;function Kd(it){var st=this;if(Uc(st),!(Ri(st,it)||su(st.display,it))){Mr(it),ee&&(jc=+new Date);var vt=rh(st,it,!0),gt=it.dataTransfer.files;if(!(!vt||st.isReadOnly()))if(gt&>.length&&window.FileReader&&window.File)for(var Bt=gt.length,Jt=Array(Bt),Se=0,je=function(){++Se==Bt&&kn(st,function(){vt=er(st.doc,vt);var bi={from:vt,to:vt,text:st.doc.splitLines(Jt.filter(function(yr){return yr!=null}).join(st.doc.lineSeparator())),origin:"paste"};Ul(st.doc,bi),_s(st.doc,us(er(st.doc,vt),er(st.doc,qo(bi))))})()},De=function(bi,yr){if(st.options.allowDropFileTypes&&Ce(st.options.allowDropFileTypes,bi.type)==-1){je();return}var kr=new FileReader;kr.onerror=function(){return je()},kr.onload=function(){var qr=kr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(qr)){je();return}Jt[yr]=qr,je()},kr.readAsText(bi)},ln=0;ln<gt.length;ln++)De(gt[ln],ln);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 oi=it.dataTransfer.getData("Text");if(oi){var pn;if(st.state.draggingText&&!st.state.draggingText.copy&&(pn=st.listSelections()),Sl(st.doc,us(vt,vt)),pn)for(var ki=0;ki<pn.length;++ki)rc(st.doc,"",pn[ki].anchor,pn[ki].head,"drag");st.replaceSelection(oi,"around","paste"),st.display.input.focus()}}catch(bi){}}}}function id(it,st){if(ee&&(!it.state.draggingText||+new Date-jc<100)){$r(st);return}if(!(Ri(it,st)||su(it.display,st))&&(st.dataTransfer.setData("Text",it.getSelection()),st.dataTransfer.effectAllowed="copyMove",st.dataTransfer.setDragImage&&!oe)){var vt=Ae("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 CA(it,st){var vt=rh(it,st);if(vt){var gt=document.createDocumentFragment();Ea(it,vt,gt),it.display.dragCursor||(it.display.dragCursor=Ae("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),it.display.lineSpace.insertBefore(it.display.dragCursor,it.display.cursorDiv)),ue(it.display.dragCursor,gt)}}function Uc(it){it.display.dragCursor&&(it.display.lineSpace.removeChild(it.display.dragCursor),it.display.dragCursor=null)}function Sd(it){if(document.getElementsByClassName){for(var st=document.getElementsByClassName("CodeMirror"),vt=[],gt=0;gt<st.length;gt++){var Bt=st[gt].CodeMirror;Bt&&vt.push(Bt)}vt.length&&vt[0].operation(function(){for(var Jt=0;Jt<vt.length;Jt++)it(vt[Jt])})}}var Yu=!1;function sh(){Yu||(Wu(),Yu=!0)}function Wu(){var it;gn(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,Sd(BA)},100))}),gn(window,"blur",function(){return Sd(wt)})}function BA(it){var st=it.display;st.cachedCharWidth=st.cachedTextHeight=st.cachedPaddingH=null,st.scrollbarsClipped=!1,it.setSize()}for(var Kh={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},na=0;na<10;na++)Kh[na+48]=Kh[na+96]=String(na);for(var Cd=65;Cd<=90;Cd++)Kh[Cd]=String.fromCharCode(Cd);for(var rd=1;rd<=12;rd++)Kh[rd+111]=Kh[rd+63235]="F"+rd;var mu={};mu.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},mu.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},mu.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},mu.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},mu.default=lt?mu.macDefault:mu.pcDefault;function Gd(it){var st=it.split(/-(?!$)/);it=st[st.length-1];for(var vt,gt,Bt,Jt,Se=0;Se<st.length-1;Se++){var je=st[Se];if(/^(cmd|meta|m)$/i.test(je))Jt=!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),Jt&&(it="Cmd-"+it),Bt&&(it="Shift-"+it),it}function Wd(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=Li(vt.split(" "),Gd),Jt=0;Jt<Bt.length;Jt++){var Se=void 0,je=void 0;Jt==Bt.length-1?(je=Bt.join(" "),Se=gt):(je=Bt.slice(0,Jt+1).join(" "),Se="...");var De=st[je];if(!De)st[je]=Se;else if(De!=Se)throw new Error("Inconsistent bindings for "+je)}delete it[vt]}for(var ln in st)it[ln]=st[ln];return it}function Ju(it,st,vt,gt){st=uu(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 Ju(it,st.fallthrough,vt,gt);for(var Jt=0;Jt<st.fallthrough.length;Jt++){var Se=Ju(it,st.fallthrough[Jt],vt,gt);if(Se)return Se}}}function Rc(it){var st=typeof it=="string"?it:Kh[it.keyCode];return st=="Ctrl"||st=="Alt"||st=="Shift"||st=="Mod"}function Bd(it,st,vt){var gt=it;return st.altKey&>!="Alt"&&(it="Alt-"+it),(xt?st.metaKey:st.ctrlKey)&>!="Ctrl"&&(it="Ctrl-"+it),(xt?st.ctrlKey:st.metaKey)&>!="Mod"&&(it="Cmd-"+it),!vt&&st.shiftKey&>!="Shift"&&(it="Shift-"+it),it}function Vd(it,st){if(Pt&&it.keyCode==34&&it.char)return!1;var vt=Kh[it.keyCode];return vt==null||it.altGraphKey?!1:(it.keyCode==3&&it.code&&(vt=it.code),Bd(vt,it,st))}function uu(it){return typeof it=="string"?mu[it]:it}function vu(it,st){for(var vt=it.doc.sel.ranges,gt=[],Bt=0;Bt<vt.length;Bt++){for(var Jt=st(vt[Bt]);gt.length&&ui(Jt.from,en(gt).to)<=0;){var Se=gt.pop();if(ui(Se.from,Jt.from)<0){Jt.from=Se.from;break}}gt.push(Jt)}rn(it,function(){for(var je=gt.length-1;je>=0;je--)rc(it.doc,"",gt[je].from,gt[je].to,"+delete");dn(it)})}function _c(it,st,vt){var gt=ae(it.text,st+vt,vt);return gt<0||gt>it.text.length?null:gt}function Rl(it,st,vt){var gt=_c(it,st.ch,vt);return gt==null?null:new On(st.line,gt,vt<0?"after":"before")}function Oa(it,st,vt,gt,Bt){if(it){st.doc.direction=="rtl"&&(Bt=-Bt);var Jt=Wn(vt,st.doc.direction);if(Jt){var Se=Bt<0?en(Jt):Jt[0],je=Bt<0==(Se.level==1),De=je?"after":"before",ln;if(Se.level>0||st.doc.direction=="rtl"){var oi=ol(st,vt);ln=Bt<0?vt.text.length-1:0;var pn=xh(st,oi,ln).top;ln=ve(function(ki){return xh(st,oi,ki).top==pn},Bt<0==(Se.level==1)?Se.from:Se.to-1,ln),De=="before"&&(ln=_c(vt,ln,1))}else ln=Bt<0?Se.to:Se.from;return new On(gt,ln,De)}}return new On(gt,Bt<0?vt.text.length:0,Bt<0?"before":"after")}function $a(it,st,vt,gt){var Bt=Wn(st,it.doc.direction);if(!Bt)return Rl(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 Jt=ke(Bt,vt.ch,vt.sticky),Se=Bt[Jt];if(it.doc.direction=="ltr"&&Se.level%2==0&&(gt>0?Se.to>vt.ch:Se.from<vt.ch))return Rl(st,vt,gt);var je=function(vo,Yo){return _c(st,vo instanceof On?vo.ch:vo,Yo)},De,ln=function(vo){return it.options.lineWrapping?(De=De||ol(it,st),sA(it,st,De,vo)):{begin:0,end:st.text.length}},oi=ln(vt.sticky=="before"?je(vt,-1):vt.ch);if(it.doc.direction=="rtl"||Se.level==1){var pn=Se.level==1==gt<0,ki=je(vt,pn?1:-1);if(ki!=null&&(pn?ki<=Se.to&&ki<=oi.end:ki>=Se.from&&ki>=oi.begin)){var bi=pn?"before":"after";return new On(vt.line,ki,bi)}}var yr=function(vo,Yo,Mo){for(var ss=function(Bl,ku){return ku?new On(vt.line,je(Bl,1),"before"):new On(vt.line,Bl,"after")};vo>=0&&vo<Bt.length;vo+=Yo){var ks=Bt[vo],No=Yo>0==(ks.level!=1),ea=No?Mo.begin:je(Mo.end,-1);if(ks.from<=ea&&ea<ks.to||(ea=No?ks.from:je(ks.to,-1),Mo.begin<=ea&&ea<Mo.end))return ss(ea,No)}},kr=yr(Jt+gt,gt,oi);if(kr)return kr;var qr=gt>0?oi.end:je(oi.begin,-1);return qr!=null&&!(gt>0&&qr==st.text.length)&&(kr=yr(gt>0?0:Bt.length-1,gt,ln(qr)),kr)?kr:null}var Mu={selectAll:_a,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),Ze)},killLine:function(it){return vu(it,function(st){if(st.empty()){var vt=wn(it.doc,st.head.line).text.length;return st.head.ch==vt&&st.head.line<it.lastLine()?{from:st.head,to:On(st.head.line+1,0)}:{from:st.head,to:On(st.head.line,vt)}}else return{from:st.from(),to:st.to()}})},deleteLine:function(it){return vu(it,function(st){return{from:On(st.from().line,0),to:er(it.doc,On(st.to().line+1,0))}})},delLineLeft:function(it){return vu(it,function(st){return{from:On(st.from().line,0),to:st.from()}})},delWrappedLineLeft:function(it){return vu(it,function(st){var 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 vu(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(On(it.firstLine(),0))},goDocEnd:function(it){return it.extendSelection(On(it.lastLine()))},goLineStart:function(it){return it.extendSelectionsBy(function(st){return Ah(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 Ph(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")},Vn)},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")},Vn)},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},Vn)},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 Jt=vt[Bt].from(),Se=ye(it.getLine(Jt.line),Jt.ch,gt);st.push(Bi(gt-Se%gt))}it.replaceSelections(st)},defaultTab:function(it){it.somethingSelected()?it.indentSelection("add"):it.execCommand("insertTab")},transposeChars:function(it){return rn(it,function(){for(var st=it.listSelections(),vt=[],gt=0;gt<st.length;gt++)if(st[gt].empty()){var Bt=st[gt].head,Jt=wn(it.doc,Bt.line).text;if(Jt){if(Bt.ch==Jt.length&&(Bt=new On(Bt.line,Bt.ch-1)),Bt.ch>0)Bt=new On(Bt.line,Bt.ch+1),it.replaceRange(Jt.charAt(Bt.ch-1)+Jt.charAt(Bt.ch-2),On(Bt.line,Bt.ch-2),Bt,"+transpose");else if(Bt.line>it.doc.first){var Se=wn(it.doc,Bt.line-1).text;Se&&(Bt=new On(Bt.line,1),it.replaceRange(Jt.charAt(0)+it.doc.lineSeparator()+Se.charAt(Se.length-1),On(Bt.line-1,Se.length-1),Bt,"+transpose"))}}vt.push(new Rr(Bt,Bt))}it.setSelections(vt)})},newlineAndIndent:function(it){return rn(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);dn(it)})},openLine:function(it){return it.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function Ah(it,st){var vt=wn(it.doc,st),gt=Wo(vt);return gt!=vt&&(st=qe(gt)),Oa(!0,it,gt,st,1)}function Ph(it,st){var vt=wn(it.doc,st),gt=Gs(vt);return gt!=vt&&(st=qe(gt)),Oa(!0,it,vt,st,-1)}function Zd(it,st){var vt=Ah(it,st.line),gt=wn(it.doc,vt.line),Bt=Wn(gt,it.doc.direction);if(!Bt||Bt[0].level==0){var Jt=Math.max(vt.ch,gt.text.search(/\S/)),Se=st.line==vt.line&&st.ch<=Jt&&st.ch;return On(vt.line,Se?0:Jt,vt.sticky)}return vt}function Bc(it,st,vt){if(typeof st=="string"&&(st=Mu[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 Pd(it,st,vt){for(var gt=0;gt<it.state.keyMaps.length;gt++){var Bt=Ju(st,it.state.keyMaps[gt],vt,it);if(Bt)return Bt}return it.options.extraKeys&&Ju(st,it.options.extraKeys,vt,it)||Ju(st,it.options.keyMap,vt,it)}var Vu=new ne;function yh(it,st,vt,gt){var Bt=it.state.keySeq;if(Bt){if(Rc(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())}),PA(it,Bt+" "+st,vt,gt))return!0}return PA(it,st,vt,gt)}function PA(it,st,vt,gt){var Bt=Pd(it,st,gt);return Bt=="multi"&&(it.state.keySeq=st),Bt=="handled"&&Hr(it,"keyHandled",it,st,vt),(Bt=="handled"||Bt=="multi")&&(Mr(vt),gl(it)),!!Bt}function Hc(it,st){var vt=Vd(st,!0);return vt?st.shiftKey&&!it.state.keySeq?yh(it,"Shift-"+vt,st,function(gt){return Bc(it,gt,!0)})||yh(it,vt,st,function(gt){if(typeof gt=="string"?/^go[A-Z]/.test(gt):gt.motion)return Bc(it,gt)}):yh(it,vt,st,function(gt){return Bc(it,gt)}):!1}function oc(it,st,vt){return yh(it,"'"+vt+"'",st,function(gt){return Bc(it,gt,!0)})}var Qc=null;function od(it){var st=this;if(!(it.target&&it.target!=st.display.input.getField())&&(st.curOp.focus=Wt(),!Ri(st,it))){ee&&Vt<11&&it.keyCode==27&&(it.returnValue=!1);var vt=it.keyCode;st.display.shift=vt==16||it.shiftKey;var gt=Hc(st,it);Pt&&(Qc=gt?vt:null,!gt&&vt==88&&!ei&&(lt?it.metaKey:it.ctrlKey)&&st.replaceSelection("",null,"cut")),Mt&&!lt&&!gt&&vt==46&&it.shiftKey&&!it.ctrlKey&&document.execCommand&&document.execCommand("cut"),vt==18&&!/\bCodeMirror-crosshair\b/.test(st.display.lineDiv.className)&&lf(st)}}function lf(it){var st=it.display.lineDiv;Ge(st,"CodeMirror-crosshair");function vt(gt){(gt.keyCode==18||!gt.altKey)&&(Gt(st,"CodeMirror-crosshair"),ti(document,"keyup",vt),ti(document,"mouseover",vt))}gn(document,"keyup",vt),gn(document,"mouseover",vt)}function uA(it){it.keyCode==16&&(this.doc.sel.shift=!1),Ri(this,it)}function Pc(it){var st=this;if(!(it.target&&it.target!=st.display.input.getField())&&!(su(st.display,it)||Ri(st,it)||it.ctrlKey&&!it.altKey||lt&&it.metaKey)){var vt=it.keyCode,gt=it.charCode;if(Pt&&vt==Qc){Qc=null,Mr(it);return}if(!(Pt&&(!it.which||it.which<10)&&Hc(st,it))){var Bt=String.fromCharCode(gt==null?vt:gt);Bt!="\b"&&(oc(st,it,Bt)||st.display.input.onKeyPress(it))}}}var KA=400,bd=function(it,st,vt){this.time=it,this.pos=st,this.button=vt};bd.prototype.compare=function(it,st,vt){return this.time+KA>it&&ui(st,this.pos)==0&&vt==this.button};var zc,Kc;function hA(it,st){var vt=+new Date;return Kc&&Kc.compare(vt,it,st)?(zc=Kc=null,"triple"):zc&&zc.compare(vt,it,st)?(Kc=new bd(vt,it,st),zc=null,"double"):(zc=new bd(vt,it,st),Kc=null,"single")}function Th(it){var st=this,vt=st.display;if(!(Ri(st,it)||vt.activeTouch&&vt.input.supportsTouch())){if(vt.input.ensurePolled(),vt.shift=it.shiftKey,su(vt,it)){Nt||(vt.scroller.draggable=!1,setTimeout(function(){return vt.scroller.draggable=!0},100));return}if(!yn(st,it)){var gt=rh(st,it),Bt=Wr(it),Jt=gt?hA(gt,Bt):"single";window.focus(),Bt==1&&st.state.selectingText&&st.state.selectingText(it),!(gt&&bA(st,Bt,gt,Jt,it))&&(Bt==1?gt?cA(st,gt,Jt,it):Tr(it)==vt.scroller&&Mr(it):Bt==2?(gt&&ta(st.doc,gt),setTimeout(function(){return vt.input.focus()},20)):Bt==3&&(It?st.display.input.onContextMenu(it):Yl(st)))}}}function bA(it,st,vt,gt,Bt){var Jt="Click";return gt=="double"?Jt="Double"+Jt:gt=="triple"&&(Jt="Triple"+Jt),Jt=(st==1?"Left":st==2?"Middle":"Right")+Jt,yh(it,Bd(Jt,Bt),Bt,function(Se){if(typeof Se=="string"&&(Se=Mu[Se]),!Se)return!1;var je=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),je=Se(it,vt)!=Ln}finally{it.state.suppressEdits=!1}return je})}function EA(it,st,vt){var gt=it.getOption("configureMouse"),Bt=gt?gt(it,st,vt):{};if(Bt.unit==null){var Jt=rt?vt.shiftKey&&vt.metaKey:vt.altKey;Bt.unit=Jt?"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 cA(it,st,vt,gt){ee?setTimeout(We(Hl,it),0):it.curOp.focus=Wt();var Bt=EA(it,vt,gt),Jt=it.doc.sel,Se;it.options.dragDrop&&oo&&!it.isReadOnly()&&vt=="single"&&(Se=Jt.contains(st))>-1&&(ui((Se=Jt.ranges[Se]).from(),st)<0||st.xRel>0)&&(ui(Se.to(),st)>0||st.xRel<0)?Xd(it,gt,st,Bt):$d(it,gt,st,Bt)}function Xd(it,st,vt,gt){var Bt=it.display,Jt=!1,Se=kn(it,function(ln){Nt&&(Bt.scroller.draggable=!1),it.state.draggingText=!1,ti(Bt.wrapper.ownerDocument,"mouseup",Se),ti(Bt.wrapper.ownerDocument,"mousemove",je),ti(Bt.scroller,"dragstart",De),ti(Bt.scroller,"drop",Se),Jt||(Mr(ln),gt.addNew||ta(it.doc,vt,null,null,gt.extend),Nt&&!oe||ee&&Vt==9?setTimeout(function(){Bt.wrapper.ownerDocument.body.focus({preventScroll:!0}),Bt.input.focus()},20):Bt.input.focus())}),je=function(ln){Jt=Jt||Math.abs(st.clientX-ln.clientX)+Math.abs(st.clientY-ln.clientY)>=10},De=function(){return Jt=!0};Nt&&(Bt.scroller.draggable=!0),it.state.draggingText=Se,Se.copy=!gt.moveOnDrag,Bt.scroller.dragDrop&&Bt.scroller.dragDrop(),gn(Bt.wrapper.ownerDocument,"mouseup",Se),gn(Bt.wrapper.ownerDocument,"mousemove",je),gn(Bt.scroller,"dragstart",De),gn(Bt.scroller,"drop",Se),Yl(it),setTimeout(function(){return Bt.input.focus()},20)}function Ed(it,st,vt){if(vt=="char")return new Rr(st,st);if(vt=="word")return it.findWordAt(st);if(vt=="line")return new Rr(On(st.line,0),er(it.doc,On(st.line+1,0)));var gt=vt(it,st);return new Rr(gt.from,gt.to)}function $d(it,st,vt,gt){var Bt=it.display,Jt=it.doc;Mr(st);var Se,je,De=Jt.sel,ln=De.ranges;if(gt.addNew&&!gt.extend?(je=Jt.sel.contains(vt),je>-1?Se=ln[je]:Se=new Rr(vt,vt)):(Se=Jt.sel.primary(),je=Jt.sel.primIndex),gt.unit=="rectangle")gt.addNew||(Se=new Rr(vt,vt)),vt=rh(it,st,!0,!0),je=-1;else{var oi=Ed(it,vt,gt.unit);gt.extend?Se=Kl(Se,oi.anchor,oi.head,gt.extend):Se=oi}gt.addNew?je==-1?(je=ln.length,Ta(Jt,jo(it,ln.concat([Se]),je),{scroll:!1,origin:"*mouse"})):ln.length>1&&ln[je].empty()&>.unit=="char"&&!gt.extend?(Ta(Jt,jo(it,ln.slice(0,je).concat(ln.slice(je+1)),0),{scroll:!1,origin:"*mouse"}),De=Jt.sel):ka(Jt,je,Se,Mn):(je=0,Ta(Jt,new fo([Se],0),Mn),De=Jt.sel);var pn=vt;function ki(Mo){if(ui(pn,Mo)!=0)if(pn=Mo,gt.unit=="rectangle"){for(var ss=[],ks=it.options.tabSize,No=ye(wn(Jt,vt.line).text,vt.ch,ks),ea=ye(wn(Jt,Mo.line).text,Mo.ch,ks),Bl=Math.min(No,ea),ku=Math.max(No,ea),dl=Math.min(vt.line,Mo.line),yu=Math.min(it.lastLine(),Math.max(vt.line,Mo.line));dl<=yu;dl++){var La=wn(Jt,dl).text,Sa=gi(La,Bl,ks);Bl==ku?ss.push(new Rr(On(dl,Sa),On(dl,Sa))):La.length>Sa&&ss.push(new Rr(On(dl,Sa),On(dl,gi(La,ku,ks))))}ss.length||ss.push(new Rr(vt,vt)),Ta(Jt,jo(it,De.ranges.slice(0,je).concat(ss),je),{origin:"*mouse",scroll:!1}),it.scrollIntoView(Mo)}else{var vl=Se,yl=Ed(it,Mo,gt.unit),Bo=vl.anchor,Ca;ui(yl.anchor,Bo)>0?(Ca=yl.head,Bo=or(vl.from(),yl.anchor)):(Ca=yl.anchor,Bo=Gr(vl.to(),yl.head));var Nl=De.ranges.slice(0);Nl[je]=FA(it,new Rr(er(Jt,Bo),Ca)),Ta(Jt,jo(it,Nl,je),Mn)}}var bi=Bt.wrapper.getBoundingClientRect(),yr=0;function kr(Mo){var ss=++yr,ks=rh(it,Mo,!0,gt.unit=="rectangle");if(ks)if(ui(ks,pn)!=0){it.curOp.focus=Wt(),ki(ks);var No=ie(Bt,Jt);(ks.line>=No.to||ks.line<No.from)&&setTimeout(kn(it,function(){yr==ss&&kr(Mo)}),150)}else{var ea=Mo.clientY<bi.top?-20:Mo.clientY>bi.bottom?20:0;ea&&setTimeout(kn(it,function(){yr==ss&&(Bt.scroller.scrollTop+=ea,kr(Mo))}),50)}}function qr(Mo){it.state.selectingText=!1,yr=1/0,Mo&&(Mr(Mo),Bt.input.focus()),ti(Bt.wrapper.ownerDocument,"mousemove",vo),ti(Bt.wrapper.ownerDocument,"mouseup",Yo),Jt.history.lastSelOrigin=null}var vo=kn(it,function(Mo){Mo.buttons===0||!Wr(Mo)?qr(Mo):kr(Mo)}),Yo=kn(it,qr);it.state.selectingText=Yo,gn(Bt.wrapper.ownerDocument,"mousemove",vo),gn(Bt.wrapper.ownerDocument,"mouseup",Yo)}function FA(it,st){var vt=st.anchor,gt=st.head,Bt=wn(it.doc,vt.line);if(ui(vt,gt)==0&&vt.sticky==gt.sticky)return st;var Jt=Wn(Bt);if(!Jt)return st;var Se=ke(Jt,vt.ch,vt.sticky),je=Jt[Se];if(je.from!=vt.ch&&je.to!=vt.ch)return st;var De=Se+(je.from==vt.ch==(je.level!=1)?0:1);if(De==0||De==Jt.length)return st;var ln;if(gt.line!=vt.line)ln=(gt.line-vt.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var oi=ke(Jt,gt.ch,gt.sticky),pn=oi-Se||(gt.ch-vt.ch)*(je.level==1?-1:1);oi==De-1||oi==De?ln=pn<0:ln=pn>0}var ki=Jt[De+(ln?-1:0)],bi=ln==(ki.level==1),yr=bi?ki.from:ki.to,kr=bi?"after":"before";return vt.ch==yr&&vt.sticky==kr?st:new Rr(new On(vt.line,yr,kr),gt)}function fe(it,st,vt,gt){var Bt,Jt;if(st.touches)Bt=st.touches[0].clientX,Jt=st.touches[0].clientY;else try{Bt=st.clientX,Jt=st.clientY}catch(ki){return!1}if(Bt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;gt&&Mr(st);var Se=it.display,je=Se.lineDiv.getBoundingClientRect();if(Jt>je.bottom||!Ji(it,vt))return Jr(st);Jt-=je.top-Se.viewOffset;for(var De=0;De<it.display.gutterSpecs.length;++De){var ln=Se.gutters.childNodes[De];if(ln&&ln.getBoundingClientRect().right>=Bt){var oi=si(it.doc,Jt),pn=it.display.gutterSpecs[De];return Rn(it,vt,it,oi,pn.className,st),Jr(st)}}}function yn(it,st){return fe(it,st,"gutterClick",!0)}function wi(it,st){su(it.display,st)||_i(it,st)||Ri(it,st,"contextmenu")||It||it.display.input.onContextMenu(st)}function _i(it,st){return Ji(it,"gutterContextMenu")?fe(it,st,"gutterContextMenu",!1):!1}function hr(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),sl(it)}var Ur={toString:function(){return"CodeMirror.Init"}},So={},gs={};function $s(it){var st=it.optionHandlers;function vt(gt,Bt,Jt,Se){it.defaults[gt]=Bt,Jt&&(st[gt]=Se?function(je,De,ln){ln!=Ur&&Jt(je,De,ln)}:Jt)}it.defineOption=vt,it.Init=Ur,vt("value","",function(gt,Bt){return gt.setValue(Bt)},!0),vt("mode",null,function(gt,Bt){gt.doc.modeOption=Bt,rs(gt)},!0),vt("indentUnit",2,rs,!0),vt("indentWithTabs",!1),vt("smartIndent",!0),vt("tabSize",4,function(gt){Ps(gt),sl(gt),Fl(gt)},!0),vt("lineSeparator",null,function(gt,Bt){if(gt.doc.lineSep=Bt,!!Bt){var Jt=[],Se=gt.doc.first;gt.doc.iter(function(De){for(var ln=0;;){var oi=De.text.indexOf(Bt,ln);if(oi==-1)break;ln=oi+Bt.length,Jt.push(On(Se,oi))}Se++});for(var je=Jt.length-1;je>=0;je--)rc(gt.doc,Bt,Jt[je],On(Jt[je].line,Jt[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,Jt){gt.state.specialChars=new RegExp(Bt.source+(Bt.test(" ")?"":"| "),"g"),Jt!=Ur&>.refresh()}),vt("specialCharPlaceholder",Ia,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",!ht),vt("wholeLineUpdateBefore",!0),vt("theme","default",function(gt){hr(gt),Br(gt)},!0),vt("keyMap","default",function(gt,Bt,Jt){var Se=uu(Bt),je=Jt!=Ur&&uu(Jt);je&&je.detach&&je.detach(gt,Se),Se.attach&&Se.attach(gt,je||null)}),vt("extraKeys",null),vt("configureMouse",null),vt("lineWrapping",!1,ba,!0),vt("gutters",[],function(gt,Bt){gt.display.gutterSpecs=Xn(Bt,gt.options.lineNumbers),Br(gt)},!0),vt("fixedGutter",!0,function(gt,Bt){gt.display.gutters.style.left=Bt?ed(gt.display)+"px":"0",gt.refresh()},!0),vt("coverGutterNextToScrollbar",!1,function(gt){return Er(gt)},!0),vt("scrollbarStyle","native",function(gt){Ti(gt),Er(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=Xn(gt.options.gutters,Bt),Br(gt)},!0),vt("firstLineNumber",1,Br,!0),vt("lineNumberFormatter",function(gt){return gt},Br,!0),vt("showCursorWhenSelecting",!1,Cu,!0),vt("resetSelectionOnContextMenu",!0),vt("lineWiseCopyCut",!0),vt("pasteLinesPerSelection",!0),vt("selectionsMayTouch",!1),vt("readOnly",!1,function(gt,Bt){Bt=="nocursor"&&(wt(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,Pa),vt("allowDropFileTypes",null),vt("cursorBlinkRate",530),vt("cursorScrollMargin",0),vt("cursorHeight",1,Cu,!0),vt("singleCursorHeightPerLine",!0,Cu,!0),vt("workTime",100),vt("workDelay",100),vt("flattenSpans",!0,Ps,!0),vt("addModeClass",!1,Ps,!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,Ps,!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 Pa(it,st,vt){var gt=vt&&vt!=Ur;if(!st!=!gt){var Bt=it.display.dragFunctions,Jt=st?gn:ti;Jt(it.display.scroller,"dragstart",Bt.start),Jt(it.display.scroller,"dragenter",Bt.enter),Jt(it.display.scroller,"dragover",Bt.over),Jt(it.display.scroller,"dragleave",Bt.leave),Jt(it.display.scroller,"drop",Bt.drop)}}function ba(it){it.options.lineWrapping?(Ge(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Gt(it.display.wrapper,"CodeMirror-wrap"),sa(it)),ms(it),Fl(it),sl(it),setTimeout(function(){return Er(it)},100)}function ps(it,st){var vt=this;if(!(this instanceof ps))return new ps(it,st);this.options=st=st?Re(st):{},Re(So,st,!1);var gt=st.value;typeof gt=="string"?gt=new Lu(gt,st.mode,null,st.lineSeparator,st.direction):st.mode&&(gt.modeOption=st.mode),this.doc=gt;var Bt=new ps.inputStyles[st.inputStyle](this),Jt=this.display=new sr(it,gt,Bt,st);Jt.wrapper.CodeMirror=this,hr(this),st.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ti(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 ne,keySeq:null,specialChars:null},st.autofocus&&!tt&&Jt.input.focus(),ee&&Vt<11&&setTimeout(function(){return vt.display.input.reset(!0)},20),nu(this),sh(),Ir(this),this.curOp.forceUpdate=!0,zo(this,gt),st.autofocus&&!tt||this.hasFocus()?setTimeout(function(){vt.hasFocus()&&!vt.state.focused&&Et(vt)},20):wt(this);for(var Se in gs)gs.hasOwnProperty(Se)&&gs[Se](this,st[Se],Ur);Ii(this),st.finishInit&&st.finishInit(this);for(var je=0;je<iu.length;++je)iu[je](this);$n(this),Nt&&st.lineWrapping&&getComputedStyle(Jt.lineDiv).textRendering=="optimizelegibility"&&(Jt.lineDiv.style.textRendering="auto")}ps.defaults=So,ps.optionHandlers=gs;function nu(it){var st=it.display;gn(st.scroller,"mousedown",kn(it,Th)),ee&&Vt<11?gn(st.scroller,"dblclick",kn(it,function(De){if(!Ri(it,De)){var ln=rh(it,De);if(!(!ln||yn(it,De)||su(it.display,De))){Mr(De);var oi=it.findWordAt(ln);ta(it.doc,oi.anchor,oi.head)}}})):gn(st.scroller,"dblclick",function(De){return Ri(it,De)||Mr(De)}),gn(st.scroller,"contextmenu",function(De){return wi(it,De)}),gn(st.input.getField(),"contextmenu",function(De){st.scroller.contains(De.target)||wi(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 Jt(De){if(De.touches.length!=1)return!1;var ln=De.touches[0];return ln.radiusX<=1&&ln.radiusY<=1}function Se(De,ln){if(ln.left==null)return!0;var oi=ln.left-De.left,pn=ln.top-De.top;return oi*oi+pn*pn>20*20}gn(st.scroller,"touchstart",function(De){if(!Ri(it,De)&&!Jt(De)&&!yn(it,De)){st.input.ensurePolled(),clearTimeout(vt);var ln=+new Date;st.activeTouch={start:ln,moved:!1,prev:ln-gt.end<=300?gt:null},De.touches.length==1&&(st.activeTouch.left=De.touches[0].pageX,st.activeTouch.top=De.touches[0].pageY)}}),gn(st.scroller,"touchmove",function(){st.activeTouch&&(st.activeTouch.moved=!0)}),gn(st.scroller,"touchend",function(De){var ln=st.activeTouch;if(ln&&!su(st,De)&&ln.left!=null&&!ln.moved&&new Date-ln.start<300){var oi=it.coordsChar(st.activeTouch,"page"),pn;!ln.prev||Se(ln,ln.prev)?pn=new Rr(oi,oi):!ln.prev.prev||Se(ln,ln.prev.prev)?pn=it.findWordAt(oi):pn=new Rr(On(oi.line,0),er(it.doc,On(oi.line+1,0))),it.setSelection(pn.anchor,pn.head),it.focus(),Mr(De)}Bt()}),gn(st.scroller,"touchcancel",Bt),gn(st.scroller,"scroll",function(){st.scroller.clientHeight&&(Jn(it,st.scroller.scrollTop),Un(it,st.scroller.scrollLeft,!0),Rn(it,"scroll",it))}),gn(st.scroller,"mousewheel",function(De){return co(it,De)}),gn(st.scroller,"DOMMouseScroll",function(De){return co(it,De)}),gn(st.wrapper,"scroll",function(){return st.wrapper.scrollTop=st.wrapper.scrollLeft=0}),st.dragFunctions={enter:function(De){Ri(it,De)||$r(De)},over:function(De){Ri(it,De)||(CA(it,De),$r(De))},start:function(De){return id(it,De)},drop:kn(it,Kd),leave:function(De){Ri(it,De)||Uc(it)}};var je=st.input.getField();gn(je,"keyup",function(De){return uA.call(it,De)}),gn(je,"keydown",kn(it,od)),gn(je,"keypress",kn(it,Pc)),gn(je,"focus",function(De){return Et(it,De)}),gn(je,"blur",function(De){return wt(it,De)})}var iu=[];ps.defineInitHook=function(it){return iu.push(it)};function Ka(it,st,vt,gt){var Bt=it.doc,Jt;vt==null&&(vt="add"),vt=="smart"&&(Bt.mode.indent?Jt=Zo(it,st).state:vt="prev");var Se=it.options.tabSize,je=wn(Bt,st),De=ye(je.text,null,Se);je.stateAfter&&(je.stateAfter=null);var ln=je.text.match(/^\s*/)[0],oi;if(!gt&&!/\S/.test(je.text))oi=0,vt="not";else if(vt=="smart"&&(oi=Bt.mode.indent(Jt,je.text.slice(ln.length),je.text),oi==Ln||oi>150)){if(!gt)return;vt="prev"}vt=="prev"?st>Bt.first?oi=ye(wn(Bt,st-1).text,null,Se):oi=0:vt=="add"?oi=De+it.options.indentUnit:vt=="subtract"?oi=De-it.options.indentUnit:typeof vt=="number"&&(oi=De+vt),oi=Math.max(0,oi);var pn="",ki=0;if(it.options.indentWithTabs)for(var bi=Math.floor(oi/Se);bi;--bi)ki+=Se,pn+=" ";if(ki<oi&&(pn+=Bi(oi-ki)),pn!=ln)return rc(Bt,pn,On(st,0),On(st,ln.length),"+input"),je.stateAfter=null,!0;for(var yr=0;yr<Bt.sel.ranges.length;yr++){var kr=Bt.sel.ranges[yr];if(kr.head.line==st&&kr.head.ch<ln.length){var qr=On(st,ln.length);ka(Bt,yr,new Rr(qr,qr));break}}}var zl=null;function Nu(it){zl=it}function sc(it,st,vt,gt,Bt){var Jt=it.doc;it.display.shift=!1,gt||(gt=Jt.sel);var Se=+new Date-200,je=Bt=="paste"||it.state.pasteIncoming>Se,De=To(st),ln=null;if(je&>.ranges.length>1)if(zl&&zl.text.join(`
|
|
|
`)==st){if(gt.ranges.length%zl.text.length==0){ln=[];for(var oi=0;oi<zl.text.length;oi++)ln.push(Jt.splitLines(zl.text[oi]))}}else De.length==gt.ranges.length&&it.options.pasteLinesPerSelection&&(ln=Li(De,function(vo){return[vo]}));for(var pn=it.curOp.updateInput,ki=gt.ranges.length-1;ki>=0;ki--){var bi=gt.ranges[ki],yr=bi.from(),kr=bi.to();bi.empty()&&(vt&&vt>0?yr=On(yr.line,yr.ch-vt):it.state.overwrite&&!je?kr=On(kr.line,Math.min(wn(Jt,kr.line).text.length,kr.ch+en(De).length)):je&&zl&&zl.lineWise&&zl.text.join(`
|
|
|
`)==De.join(`
|
|
|
`)&&(yr=kr=On(yr.line,0)));var qr={from:yr,to:kr,text:ln?ln[ki%ln.length]:De,origin:Bt||(je?"paste":it.state.cutIncoming>Se?"cut":"+input")};Ul(it.doc,qr),Hr(it,"inputRead",it,qr)}st&&!je&&ac(it,st),dn(it),it.curOp.updateInput<2&&(it.curOp.updateInput=pn),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function bh(it,st){var vt=it.clipboardData&&it.clipboardData.getData("Text");if(vt)return it.preventDefault(),!st.isReadOnly()&&!st.options.disableInput&&rn(st,function(){return sc(st,vt,0,null,"paste")}),!0}function ac(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 Jt=it.getModeAt(Bt.head),Se=!1;if(Jt.electricChars){for(var je=0;je<Jt.electricChars.length;je++)if(st.indexOf(Jt.electricChars.charAt(je))>-1){Se=Ka(it,Bt.head.line,"smart");break}}else Jt.electricInput&&Jt.electricInput.test(wn(it.doc,Bt.head.line).text.slice(0,Bt.head.ch))&&(Se=Ka(it,Bt.head.line,"smart"));Se&&Hr(it,"electricInput",it,Bt.head.line)}}}function LA(it){for(var st=[],vt=[],gt=0;gt<it.doc.sel.ranges.length;gt++){var Bt=it.doc.sel.ranges[gt].head.line,Jt={anchor:On(Bt,0),head:On(Bt+1,0)};vt.push(Jt),st.push(it.getRange(Jt.anchor,Jt.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 MA(){var it=Ae("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),st=Ae("div",[it],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Nt?it.style.width="1000px":it.setAttribute("wrap","off"),Ct&&(it.style.border="1px solid black"),dA(it),st}function pc(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 Jt=this.options,Se=Jt[gt];Jt[gt]==Bt&>!="mode"||(Jt[gt]=Bt,st.hasOwnProperty(gt)&&kn(this,st[gt])(this,Bt,Se),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"](uu(gt))},removeKeyMap:function(gt){for(var Bt=this.state.keyMaps,Jt=0;Jt<Bt.length;++Jt)if(Bt[Jt]==gt||Bt[Jt].name==gt)return Bt.splice(Jt,1),!0},addOverlay:jn(function(gt,Bt){var Jt=gt.token?gt:it.getMode(this.options,gt);if(Jt.startState)throw new Error("Overlays may not be stateful.");Oi(this.state.overlays,{mode:Jt,modeSpec:gt,opaque:Bt&&Bt.opaque,priority:Bt&&Bt.priority||0},function(Se){return Se.priority}),this.state.modeGen++,Fl(this)}),removeOverlay:jn(function(gt){for(var Bt=this.state.overlays,Jt=0;Jt<Bt.length;++Jt){var Se=Bt[Jt].modeSpec;if(Se==gt||typeof gt=="string"&&Se.name==gt){Bt.splice(Jt,1),this.state.modeGen++,Fl(this);return}}}),indentLine:jn(function(gt,Bt,Jt){typeof Bt!="string"&&typeof Bt!="number"&&(Bt==null?Bt=this.options.smartIndent?"smart":"prev":Bt=Bt?"add":"subtract"),Ei(this.doc,gt)&&Ka(this,gt,Bt,Jt)}),indentSelection:jn(function(gt){for(var Bt=this.doc.sel.ranges,Jt=-1,Se=0;Se<Bt.length;Se++){var je=Bt[Se];if(je.empty())je.head.line>Jt&&(Ka(this,je.head.line,gt,!0),Jt=je.head.line,Se==this.doc.sel.primIndex&&dn(this));else{var De=je.from(),ln=je.to(),oi=Math.max(Jt,De.line);Jt=Math.min(this.lastLine(),ln.line-(ln.ch?0:1))+1;for(var pn=oi;pn<Jt;++pn)Ka(this,pn,gt);var ki=this.doc.sel.ranges;De.ch==0&&Bt.length==ki.length&&ki[Se].from().ch>0&&ka(this.doc,Se,new Rr(De,ki[Se].to()),Ze)}}}),getTokenAt:function(gt,Bt){return to(this,gt,Bt)},getLineTokens:function(gt,Bt){return to(this,On(gt),Bt,!0)},getTokenTypeAt:function(gt){gt=er(this.doc,gt);var Bt=ys(this,wn(this.doc,gt.line)),Jt=0,Se=(Bt.length-1)/2,je=gt.ch,De;if(je==0)De=Bt[2];else for(;;){var ln=Jt+Se>>1;if((ln?Bt[ln*2-1]:0)>=je)Se=ln;else if(Bt[ln*2+1]<je)Jt=ln+1;else{De=Bt[ln*2+2];break}}var oi=De?De.indexOf("overlay "):-1;return oi<0?De:oi==0?null:De.slice(0,oi-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 Jt=[];if(!vt.hasOwnProperty(Bt))return Jt;var Se=vt[Bt],je=this.getModeAt(gt);if(typeof je[Bt]=="string")Se[je[Bt]]&&Jt.push(Se[je[Bt]]);else if(je[Bt])for(var De=0;De<je[Bt].length;De++){var ln=Se[je[Bt][De]];ln&&Jt.push(ln)}else je.helperType&&Se[je.helperType]?Jt.push(Se[je.helperType]):Se[je.name]&&Jt.push(Se[je.name]);for(var oi=0;oi<Se._global.length;oi++){var pn=Se._global[oi];pn.pred(je,this)&&Ce(Jt,pn.val)==-1&&Jt.push(pn.val)}return Jt},getStateAfter:function(gt,Bt){var Jt=this.doc;return gt=Lr(Jt,gt==null?Jt.first+Jt.size-1:gt),Zo(this,gt+1,Bt).state},cursorCoords:function(gt,Bt){var Jt,Se=this.doc.sel.primary();return gt==null?Jt=Se.head:typeof gt=="object"?Jt=er(this.doc,gt):Jt=gt?Se.from():Se.to(),cl(this,Jt,Bt||"page")},charCoords:function(gt,Bt){return ch(this,er(this.doc,gt),Bt||"page")},coordsChar:function(gt,Bt){return gt=fc(this,gt,Bt||"page"),Sh(this,gt.left,gt.top)},lineAtHeight:function(gt,Bt){return gt=fc(this,{top:gt,left:0},Bt||"page").top,si(this.doc,gt+this.display.viewOffset)},heightAtLine:function(gt,Bt,Jt){var Se=!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,Se=!0),je=wn(this.doc,gt)}else je=gt;return Dl(this,je,{top:0,left:0},Bt||"page",Jt||Se).top+(Se?this.doc.height-Bs(je):0)},defaultTextHeight:function(){return Gu(this.display)},defaultCharWidth:function(){return Ch(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(gt,Bt,Jt,Se,je){var De=this.display;gt=cl(this,er(this.doc,gt));var ln=gt.bottom,oi=gt.left;if(Bt.style.position="absolute",Bt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Bt),De.sizer.appendChild(Bt),Se=="over")ln=gt.top;else if(Se=="above"||Se=="near"){var pn=Math.max(De.wrapper.clientHeight,this.doc.height),ki=Math.max(De.sizer.clientWidth,De.lineSpace.clientWidth);(Se=="above"||gt.bottom+Bt.offsetHeight>pn)&>.top>Bt.offsetHeight?ln=gt.top-Bt.offsetHeight:gt.bottom+Bt.offsetHeight<=pn&&(ln=gt.bottom),oi+Bt.offsetWidth>ki&&(oi=ki-Bt.offsetWidth)}Bt.style.top=ln+"px",Bt.style.left=Bt.style.right="",je=="right"?(oi=De.sizer.clientWidth-Bt.offsetWidth,Bt.style.right="0px"):(je=="left"?oi=0:je=="middle"&&(oi=(De.sizer.clientWidth-Bt.offsetWidth)/2),Bt.style.left=oi+"px"),Jt&&we(this,{left:oi,top:ln,right:oi+Bt.offsetWidth,bottom:ln+Bt.offsetHeight})},triggerOnKeyDown:jn(od),triggerOnKeyPress:jn(Pc),triggerOnKeyUp:uA,triggerOnMouseDown:jn(Th),execCommand:function(gt){if(Mu.hasOwnProperty(gt))return Mu[gt].call(null,this)},triggerElectric:jn(function(gt){ac(this,gt)}),findPosH:function(gt,Bt,Jt,Se){var je=1;Bt<0&&(je=-1,Bt=-Bt);for(var De=er(this.doc,gt),ln=0;ln<Bt&&(De=Fd(this.doc,De,je,Jt,Se),!De.hitSide);++ln);return De},moveH:jn(function(gt,Bt){var Jt=this;this.extendSelectionsBy(function(Se){return Jt.display.shift||Jt.doc.extend||Se.empty()?Fd(Jt.doc,Se.head,gt,Bt,Jt.options.rtlMoveVisually):gt<0?Se.from():Se.to()},Vn)}),deleteH:jn(function(gt,Bt){var Jt=this.doc.sel,Se=this.doc;Jt.somethingSelected()?Se.replaceSelection("",null,"+delete"):vu(this,function(je){var De=Fd(Se,je.head,gt,Bt,!1);return gt<0?{from:De,to:je.head}:{from:je.head,to:De}})}),findPosV:function(gt,Bt,Jt,Se){var je=1,De=Se;Bt<0&&(je=-1,Bt=-Bt);for(var ln=er(this.doc,gt),oi=0;oi<Bt;++oi){var pn=cl(this,ln,"div");if(De==null?De=pn.left:pn.left=De,ln=Gc(this,pn,je,Jt),ln.hitSide)break}return ln},moveV:jn(function(gt,Bt){var Jt=this,Se=this.doc,je=[],De=!this.display.shift&&!Se.extend&&Se.sel.somethingSelected();if(Se.extendSelectionsBy(function(oi){if(De)return gt<0?oi.from():oi.to();var pn=cl(Jt,oi.head,"div");oi.goalColumn!=null&&(pn.left=oi.goalColumn),je.push(pn.left);var ki=Gc(Jt,pn,gt,Bt);return Bt=="page"&&oi==Se.sel.primary()&&$e(Jt,ch(Jt,ki,"div").top-pn.top),ki},Vn),je.length)for(var ln=0;ln<Se.sel.ranges.length;ln++)Se.sel.ranges[ln].goalColumn=je[ln]}),findWordAt:function(gt){var Bt=this.doc,Jt=wn(Bt,gt.line).text,Se=gt.ch,je=gt.ch;if(Jt){var De=this.getHelper(gt,"wordChars");(gt.sticky=="before"||je==Jt.length)&&Se?--Se:++je;for(var ln=Jt.charAt(Se),oi=pt(ln,De)?function(pn){return pt(pn,De)}:/\s/.test(ln)?function(pn){return/\s/.test(pn)}:function(pn){return!/\s/.test(pn)&&!pt(pn)};Se>0&&oi(Jt.charAt(Se-1));)--Se;for(;je<Jt.length&&oi(Jt.charAt(je));)++je}return new Rr(On(gt.line,Se),On(gt.line,je))},toggleOverwrite:function(gt){gt!=null&>==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ge(this.display.cursorDiv,"CodeMirror-overwrite"):Gt(this.display.cursorDiv,"CodeMirror-overwrite"),Rn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Wt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:jn(function(gt,Bt){fn(this,gt,Bt)}),getScrollInfo:function(){var gt=this.display.scroller;return{left:gt.scrollLeft,top:gt.scrollTop,height:gt.scrollHeight-fu(this)-this.display.barHeight,width:gt.scrollWidth-fu(this)-this.display.barWidth,clientHeight:Qo(this),clientWidth:eu(this)}},scrollIntoView:jn(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:On(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?Pn(this,gt):mi(this,gt.from,gt.to,gt.margin)}),setSize:jn(function(gt,Bt){var Jt=this,Se=function(De){return typeof De=="number"||/^\d+$/.test(String(De))?De+"px":De};gt!=null&&(this.display.wrapper.style.width=Se(gt)),Bt!=null&&(this.display.wrapper.style.height=Se(Bt)),this.options.lineWrapping&&qa(this);var je=this.display.viewFrom;this.doc.iter(je,this.display.viewTo,function(De){if(De.widgets){for(var ln=0;ln<De.widgets.length;ln++)if(De.widgets[ln].noHScroll){ra(Jt,je,"widget");break}}++je}),this.curOp.forceUpdate=!0,Rn(this,"refresh",this)}),operation:function(gt){return rn(this,gt)},startOperation:function(){return Ir(this)},endOperation:function(){return $n(this)},refresh:jn(function(){var gt=this.display.cachedTextHeight;Fl(this),this.curOp.forceUpdate=!0,sl(this),fn(this,this.doc.scrollLeft,this.doc.scrollTop),Ar(this.display),(gt==null||Math.abs(gt-Gu(this.display))>.5||this.options.lineWrapping)&&ms(this),Rn(this,"refresh",this)}),swapDoc:jn(function(gt){var Bt=this.doc;return Bt.cm=null,this.state.selectingText&&this.state.selectingText(),zo(this,gt),sl(this),this.display.input.reset(),fn(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}},mr(it),it.registerHelper=function(gt,Bt,Jt){vt.hasOwnProperty(gt)||(vt[gt]=it[gt]={_global:[]}),vt[gt][Bt]=Jt},it.registerGlobalHelper=function(gt,Bt,Jt,Se){it.registerHelper(gt,Bt,Se),vt[gt]._global.push({pred:Jt,val:Se})}}function Fd(it,st,vt,gt,Bt){var Jt=st,Se=vt,je=wn(it,st.line),De=Bt&&it.direction=="rtl"?-vt:vt;function ln(){var Yo=st.line+De;return Yo<it.first||Yo>=it.first+it.size?!1:(st=new On(Yo,st.ch,st.sticky),je=wn(it,Yo))}function oi(Yo){var Mo;if(gt=="codepoint"){var ss=je.text.charCodeAt(st.ch+(gt>0?0:-1));isNaN(ss)?Mo=null:Mo=new On(st.line,Math.max(0,Math.min(je.text.length,st.ch+vt*(ss>=55296&&ss<56320?2:1))),-vt)}else Bt?Mo=$a(it.cm,je,st,vt):Mo=Rl(je,st,vt);if(Mo==null)if(!Yo&&ln())st=Oa(Bt,it.cm,je,st.line,De);else return!1;else st=Mo;return!0}if(gt=="char"||gt=="codepoint")oi();else if(gt=="column")oi(!0);else if(gt=="word"||gt=="group")for(var pn=null,ki=gt=="group",bi=it.cm&&it.cm.getHelper(st,"wordChars"),yr=!0;!(vt<0&&!oi(!yr));yr=!1){var kr=je.text.charAt(st.ch)||`
|
|
|
`,qr=pt(kr,bi)?"w":ki&&kr==`
|
|
|
`?"n":!ki||/\s/.test(kr)?null:"p";if(ki&&!yr&&!qr&&(qr="s"),pn&&pn!=qr){vt<0&&(vt=1,oi(),st.sticky="after");break}if(qr&&(pn=qr),vt>0&&!oi(!yr))break}var vo=dh(it,st,Jt,Se,!0);return Cr(Jt,vo)&&(vo.hitSide=!0),vo}function Gc(it,st,vt,gt){var Bt=it.doc,Jt=st.left,Se;if(gt=="page"){var je=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),De=Math.max(je-.5*Gu(it.display),3);Se=(vt>0?st.bottom:st.top)+vt*De}else gt=="line"&&(Se=vt>0?st.bottom+3:st.top-3);for(var ln;ln=Sh(it,Jt,Se),!!ln.outside;){if(vt<0?Se<=0:Se>=Bt.height){ln.hitSide=!0;break}Se+=vt*5}return ln}var ml=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ne,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ml.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 Jt(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}gn(Bt,"paste",function(je){!Jt(je)||Ri(gt,je)||bh(je,gt)||Vt<=11&&setTimeout(kn(gt,function(){return st.updateFromDOM()}),20)}),gn(Bt,"compositionstart",function(je){st.composing={data:je.data,done:!1}}),gn(Bt,"compositionupdate",function(je){st.composing||(st.composing={data:je.data,done:!1})}),gn(Bt,"compositionend",function(je){st.composing&&(je.data!=st.composing.data&&st.readFromDOMSoon(),st.composing.done=!0)}),gn(Bt,"touchstart",function(){return vt.forceCompositionEnd()}),gn(Bt,"input",function(){st.composing||st.readFromDOMSoon()});function Se(je){if(!(!Jt(je)||Ri(gt,je))){if(gt.somethingSelected())Nu({lineWise:!1,text:gt.getSelections()}),je.type=="cut"&>.replaceSelection("",null,"cut");else if(gt.options.lineWiseCopyCut){var De=LA(gt);Nu({lineWise:!0,text:De.text}),je.type=="cut"&>.operation(function(){gt.setSelections(De.ranges,0,Ze),gt.replaceSelection("",null,"cut")})}else return;if(je.clipboardData){je.clipboardData.clearData();var ln=zl.text.join(`
|
|
|
`);if(je.clipboardData.setData("Text",ln),je.clipboardData.getData("Text")==ln){je.preventDefault();return}}var oi=MA(),pn=oi.firstChild;gt.display.lineSpace.insertBefore(oi,gt.display.lineSpace.firstChild),pn.value=zl.text.join(`
|
|
|
`);var ki=document.activeElement;Me(pn),setTimeout(function(){gt.display.lineSpace.removeChild(oi),ki.focus(),ki==Bt&&vt.showPrimarySelection()},50)}}gn(Bt,"copy",Se),gn(Bt,"cut",Se)},ml.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},ml.prototype.prepareSelection=function(){var it=wd(this.cm,!1);return it.focus=document.activeElement==this.div,it},ml.prototype.showSelection=function(it,st){!it||!this.cm.display.view.length||((it.focus||st)&&this.showPrimarySelection(),this.showMultipleSelections(it))},ml.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ml.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 Jt=mc(st,it.anchorNode,it.anchorOffset),Se=mc(st,it.focusNode,it.focusOffset);if(!(Jt&&!Jt.bad&&Se&&!Se.bad&&ui(or(Jt,Se),gt)==0&&ui(Gr(Jt,Se),Bt)==0)){var je=st.display.view,De=gt.line>=st.display.viewFrom&&Iu(st,gt)||{node:je[0].measure.map[2],offset:0},ln=Bt.line<st.display.viewTo&&Iu(st,Bt);if(!ln){var oi=je[je.length-1].measure,pn=oi.maps?oi.maps[oi.maps.length-1]:oi.map;ln={node:pn[pn.length-1],offset:pn[pn.length-2]-pn[pn.length-3]}}if(!De||!ln){it.removeAllRanges();return}var ki=it.rangeCount&&it.getRangeAt(0),bi;try{bi=qt(De.node,De.offset,ln.offset,ln.node)}catch(yr){}bi&&(!Mt&&st.state.focused?(it.collapse(De.node,De.offset),bi.collapsed||(it.removeAllRanges(),it.addRange(bi))):(it.removeAllRanges(),it.addRange(bi)),ki&&it.anchorNode==null?it.addRange(ki):Mt&&this.startGracePeriod()),this.rememberSelection()}},ml.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)},ml.prototype.showMultipleSelections=function(it){ue(this.cm.display.cursorDiv,it.cursors),ue(this.cm.display.selectionDiv,it.selection)},ml.prototype.rememberSelection=function(){var it=this.getSelection();this.lastAnchorNode=it.anchorNode,this.lastAnchorOffset=it.anchorOffset,this.lastFocusNode=it.focusNode,this.lastFocusOffset=it.focusOffset},ml.prototype.selectionInEditor=function(){var it=this.getSelection();if(!it.rangeCount)return!1;var st=it.getRangeAt(0).commonAncestorContainer;return ze(this.div,st)},ml.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ml.prototype.blur=function(){this.div.blur()},ml.prototype.getField=function(){return this.div},ml.prototype.supportsTouch=function(){return!0},ml.prototype.receivedFocus=function(){var it=this;this.selectionInEditor()?this.pollSelection():rn(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)},ml.prototype.selectionChanged=function(){var it=this.getSelection();return it.anchorNode!=this.lastAnchorNode||it.anchorOffset!=this.lastAnchorOffset||it.focusNode!=this.lastFocusNode||it.focusOffset!=this.lastFocusOffset},ml.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var it=this.getSelection(),st=this.cm;if(et&&te&&this.cm.display.gutterSpecs.length&&Yd(it.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var vt=mc(st,it.anchorNode,it.anchorOffset),gt=mc(st,it.focusNode,it.focusOffset);vt&>&&rn(st,function(){Ta(st.doc,us(vt,gt),Ze),(vt.bad||gt.bad)&&(st.curOp.selectionChanged=!0)})}}},ml.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&>.line>it.firstLine()&&(gt=On(gt.line-1,wn(it.doc,gt.line-1).length)),Bt.ch==wn(it.doc,Bt.line).text.length&&Bt.line<it.lastLine()&&(Bt=On(Bt.line+1,0)),gt.line<st.viewFrom||Bt.line>st.viewTo-1)return!1;var Jt,Se,je;gt.line==st.viewFrom||(Jt=Zu(it,gt.line))==0?(Se=qe(st.view[0].line),je=st.view[0].node):(Se=qe(st.view[Jt].line),je=st.view[Jt-1].node.nextSibling);var De=Zu(it,Bt.line),ln,oi;if(De==st.view.length-1?(ln=st.viewTo-1,oi=st.lineDiv.lastChild):(ln=qe(st.view[De+1].line)-1,oi=st.view[De+1].node.previousSibling),!je)return!1;for(var pn=it.doc.splitLines(Oh(it,je,oi,Se,ln)),ki=Qn(it.doc,On(Se,0),On(ln,wn(it.doc,ln).text.length));pn.length>1&&ki.length>1;)if(en(pn)==en(ki))pn.pop(),ki.pop(),ln--;else if(pn[0]==ki[0])pn.shift(),ki.shift(),Se++;else break;for(var bi=0,yr=0,kr=pn[0],qr=ki[0],vo=Math.min(kr.length,qr.length);bi<vo&&kr.charCodeAt(bi)==qr.charCodeAt(bi);)++bi;for(var Yo=en(pn),Mo=en(ki),ss=Math.min(Yo.length-(pn.length==1?bi:0),Mo.length-(ki.length==1?bi:0));yr<ss&&Yo.charCodeAt(Yo.length-yr-1)==Mo.charCodeAt(Mo.length-yr-1);)++yr;if(pn.length==1&&ki.length==1&&Se==gt.line)for(;bi&&bi>gt.ch&&Yo.charCodeAt(Yo.length-yr-1)==Mo.charCodeAt(Mo.length-yr-1);)bi--,yr++;pn[pn.length-1]=Yo.slice(0,Yo.length-yr).replace(/^\u200b+/,""),pn[0]=pn[0].slice(bi).replace(/\u200b+$/,"");var ks=On(Se,bi),No=On(ln,ki.length?en(ki).length-yr:0);if(pn.length>1||pn[0]||ui(ks,No))return rc(it.doc,pn,ks,No,"+input"),!0},ml.prototype.ensurePolled=function(){this.forceCompositionEnd()},ml.prototype.reset=function(){this.forceCompositionEnd()},ml.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ml.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))},ml.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&rn(this.cm,function(){return Fl(it.cm)})},ml.prototype.setUneditable=function(it){it.contentEditable="false"},ml.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||kn(this.cm,sc)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},ml.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},ml.prototype.onContextMenu=function(){},ml.prototype.resetPosition=function(){},ml.prototype.needsContentAttribute=!0;function Iu(it,st){var vt=ec(it,st.line);if(!vt||vt.hidden)return null;var gt=wn(it.doc,st.line),Bt=Eu(vt,gt,st.line),Jt=Wn(gt,it.doc.direction),Se="left";if(Jt){var je=ke(Jt,st.ch);Se=je%2?"right":"left"}var De=Oc(Bt.map,st.ch,Se);return De.offset=De.collapse=="right"?De.end:De.start,De}function Yd(it){for(var st=it;st;st=st.parentNode)if(/CodeMirror-gutter-wrapper/.test(st.className))return!0;return!1}function Gl(it,st){return st&&(it.bad=!0),it}function Oh(it,st,vt,gt,Bt){var Jt="",Se=!1,je=it.doc.lineSeparator(),De=!1;function ln(bi){return function(yr){return yr.id==bi}}function oi(){Se&&(Jt+=je,De&&(Jt+=je),Se=De=!1)}function pn(bi){bi&&(oi(),Jt+=bi)}function ki(bi){if(bi.nodeType==1){var yr=bi.getAttribute("cm-text");if(yr){pn(yr);return}var kr=bi.getAttribute("cm-marker"),qr;if(kr){var vo=it.findMarks(On(gt,0),On(Bt+1,0),ln(+kr));vo.length&&(qr=vo[0].find(0))&&pn(Qn(it.doc,qr.from,qr.to).join(je));return}if(bi.getAttribute("contenteditable")=="false")return;var Yo=/^(pre|div|p|li|table|br)$/i.test(bi.nodeName);if(!/^br$/i.test(bi.nodeName)&&bi.textContent.length==0)return;Yo&&oi();for(var Mo=0;Mo<bi.childNodes.length;Mo++)ki(bi.childNodes[Mo]);/^(pre|p)$/i.test(bi.nodeName)&&(De=!0),Yo&&(Se=!0)}else bi.nodeType==3&&pn(bi.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ki(st),st!=vt;)st=st.nextSibling,De=!1;return Jt}function mc(it,st,vt){var gt;if(st==it.display.lineDiv){if(gt=it.display.lineDiv.childNodes[vt],!gt)return Gl(it.clipPos(On(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&>.parentNode==it.display.lineDiv)break}for(var Bt=0;Bt<it.display.view.length;Bt++){var Jt=it.display.view[Bt];if(Jt.node==gt)return qu(Jt,st,vt)}}function qu(it,st,vt){var gt=it.text.firstChild,Bt=!1;if(!st||!ze(gt,st))return Gl(On(qe(it.line),0),!0);if(st==gt&&(Bt=!0,st=gt.childNodes[vt],vt=0,!st)){var Jt=it.rest?en(it.rest):it.line;return Gl(On(qe(Jt),Jt.text.length),Bt)}var Se=st.nodeType==3?st:null,je=st;for(!Se&&st.childNodes.length==1&&st.firstChild.nodeType==3&&(Se=st.firstChild,vt&&(vt=Se.nodeValue.length));je.parentNode!=gt;)je=je.parentNode;var De=it.measure,ln=De.maps;function oi(qr,vo,Yo){for(var Mo=-1;Mo<(ln?ln.length:0);Mo++)for(var ss=Mo<0?De.map:ln[Mo],ks=0;ks<ss.length;ks+=3){var No=ss[ks+2];if(No==qr||No==vo){var ea=qe(Mo<0?it.line:it.rest[Mo]),Bl=ss[ks]+Yo;return(Yo<0||No!=qr)&&(Bl=ss[ks+(Yo?1:0)]),On(ea,Bl)}}}var pn=oi(Se,je,vt);if(pn)return Gl(pn,Bt);for(var ki=je.nextSibling,bi=Se?Se.nodeValue.length-vt:0;ki;ki=ki.nextSibling){if(pn=oi(ki,ki.firstChild,0),pn)return Gl(On(pn.line,pn.ch-bi),Bt);bi+=ki.textContent.length}for(var yr=je.previousSibling,kr=vt;yr;yr=yr.previousSibling){if(pn=oi(yr,yr.firstChild,-1),pn)return Gl(On(pn.line,pn.ch+kr),Bt);kr+=yr.textContent.length}}var Wl=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new ne,this.hasSelection=!1,this.composing=null};Wl.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"),gn(Bt,"input",function(){ee&&Vt>=9&&st.hasSelection&&(st.hasSelection=null),vt.poll()}),gn(Bt,"paste",function(Se){Ri(gt,Se)||bh(Se,gt)||(gt.state.pasteIncoming=+new Date,vt.fastPoll())});function Jt(Se){if(!Ri(gt,Se)){if(gt.somethingSelected())Nu({lineWise:!1,text:gt.getSelections()});else if(gt.options.lineWiseCopyCut){var je=LA(gt);Nu({lineWise:!0,text:je.text}),Se.type=="cut"?gt.setSelections(je.ranges,null,Ze):(vt.prevInput="",Bt.value=je.text.join(`
|
|
|
`),Me(Bt))}else return;Se.type=="cut"&&(gt.state.cutIncoming=+new Date)}}gn(Bt,"cut",Jt),gn(Bt,"copy",Jt),gn(it.scroller,"paste",function(Se){if(!(su(it,Se)||Ri(gt,Se))){if(!Bt.dispatchEvent){gt.state.pasteIncoming=+new Date,vt.focus();return}var je=new Event("paste");je.clipboardData=Se.clipboardData,Bt.dispatchEvent(je)}}),gn(it.lineSpace,"selectstart",function(Se){su(it,Se)||Mr(Se)}),gn(Bt,"compositionstart",function(){var Se=gt.getCursor("from");vt.composing&&vt.composing.range.clear(),vt.composing={start:Se,range:gt.markText(Se,gt.getCursor("to"),{className:"CodeMirror-composing"})}}),gn(Bt,"compositionend",function(){vt.composing&&(vt.poll(),vt.composing.range.clear(),vt.composing=null)})},Wl.prototype.createField=function(it){this.wrapper=MA(),this.textarea=this.wrapper.firstChild},Wl.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},Wl.prototype.prepareSelection=function(){var it=this.cm,st=it.display,vt=it.doc,gt=wd(it);if(it.options.moveInputWithCursor){var Bt=cl(it,vt.sel.primary().head,"div"),Jt=st.wrapper.getBoundingClientRect(),Se=st.lineDiv.getBoundingClientRect();gt.teTop=Math.max(0,Math.min(st.wrapper.clientHeight-10,Bt.top+Se.top-Jt.top)),gt.teLeft=Math.max(0,Math.min(st.wrapper.clientWidth-10,Bt.left+Se.left-Jt.left))}return gt},Wl.prototype.showSelection=function(it){var st=this.cm,vt=st.display;ue(vt.cursorDiv,it.cursors),ue(vt.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},Wl.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&&Me(this.textarea),ee&&Vt>=9&&(this.hasSelection=vt)}else it||(this.prevInput=this.textarea.value="",ee&&Vt>=9&&(this.hasSelection=null))}},Wl.prototype.getField=function(){return this.textarea},Wl.prototype.supportsTouch=function(){return!1},Wl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!tt||Wt()!=this.textarea))try{this.textarea.focus()}catch(it){}},Wl.prototype.blur=function(){this.textarea.blur()},Wl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wl.prototype.receivedFocus=function(){this.slowPoll()},Wl.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},Wl.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)},Wl.prototype.poll=function(){var it=this,st=this.cm,vt=this.textarea,gt=this.prevInput;if(this.contextMenuPending||!st.state.focused||Xt(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&&Vt>=9&&this.hasSelection===Bt||lt&&/[\uf700-\uf7ff]/.test(Bt))return st.display.input.reset(),!1;if(st.doc.sel==st.display.selForContextMenu){var Jt=Bt.charCodeAt(0);if(Jt==8203&&!gt&&(gt="\u200B"),Jt==8666)return this.reset(),this.cm.execCommand("undo")}for(var Se=0,je=Math.min(gt.length,Bt.length);Se<je&>.charCodeAt(Se)==Bt.charCodeAt(Se);)++Se;return rn(st,function(){sc(st,Bt.slice(Se),gt.length-Se,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},Wl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wl.prototype.onKeyPress=function(){ee&&Vt>=9&&(this.hasSelection=null),this.fastPoll()},Wl.prototype.onContextMenu=function(it){var st=this,vt=st.cm,gt=vt.display,Bt=st.textarea;st.contextMenuPending&&st.contextMenuPending();var Jt=rh(vt,it),Se=gt.scroller.scrollTop;if(!Jt||Pt)return;var je=vt.options.resetSelectionOnContextMenu;je&&vt.doc.sel.contains(Jt)==-1&&kn(vt,Ta)(vt.doc,us(Jt),Ze);var De=Bt.style.cssText,ln=st.wrapper.style.cssText,oi=st.wrapper.offsetParent.getBoundingClientRect();st.wrapper.style.cssText="position: static",Bt.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(it.clientY-oi.top-5)+"px; left: "+(it.clientX-oi.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 pn;Nt&&(pn=window.scrollY),gt.input.focus(),Nt&&window.scrollTo(null,pn),gt.input.reset(),vt.somethingSelected()||(Bt.value=st.prevInput=" "),st.contextMenuPending=bi,gt.selForContextMenu=vt.doc.sel,clearTimeout(gt.detectingSelectAll);function ki(){if(Bt.selectionStart!=null){var kr=vt.somethingSelected(),qr="\u200B"+(kr?Bt.value:"");Bt.value="\u21DA",Bt.value=qr,st.prevInput=kr?"":"\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=ln,Bt.style.cssText=De,ee&&Vt<9&>.scrollbars.setScrollTop(gt.scroller.scrollTop=Se),Bt.selectionStart!=null)){(!ee||ee&&Vt<9)&&ki();var kr=0,qr=function(){gt.selForContextMenu==vt.doc.sel&&Bt.selectionStart==0&&Bt.selectionEnd>0&&st.prevInput=="\u200B"?kn(vt,_a)(vt):kr++<10?gt.detectingSelectAll=setTimeout(qr,500):(gt.selForContextMenu=null,gt.input.reset())};gt.detectingSelectAll=setTimeout(qr,200)}}if(ee&&Vt>=9&&ki(),It){$r(it);var yr=function(){ti(window,"mouseup",yr),setTimeout(bi,20)};gn(window,"mouseup",yr)}else setTimeout(bi,50)},Wl.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},Wl.prototype.setUneditable=function(){},Wl.prototype.needsContentAttribute=!1;function Ld(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=Wt();st.autofocus=vt==it||it.getAttribute("autofocus")!=null&&vt==document.body}function gt(){it.value=je.getValue()}var Bt;if(it.form&&(gn(it.form,"submit",gt),!st.leaveSubmitMethodAlone)){var Jt=it.form;Bt=Jt.submit;try{var Se=Jt.submit=function(){gt(),Jt.submit=Bt,Jt.submit(),Jt.submit=Se}}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&&(ti(it.form,"submit",gt),!st.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=Bt))}},it.style.display="none";var je=ps(function(De){return it.parentNode.insertBefore(De,it.nextSibling)},st);return je}function Dh(it){it.off=ti,it.on=gn,it.wheelEventPixels=Vr,it.Doc=Lu,it.splitLines=To,it.countColumn=ye,it.findColumn=gi,it.isWordChar=ft,it.Pass=Ln,it.signal=Rn,it.Line=Ro,it.changeEnd=qo,it.scrollbarModel=gr,it.Pos=On,it.cmpPos=ui,it.modes=ma,it.mimeModes=va,it.resolveMode=Dr,it.getMode=In,it.modeExtensions=Tn,it.extendMode=Oe,it.copyState=qn,it.startState=An,it.innerMode=xi,it.commands=Mu,it.keyMap=mu,it.keyName=Vd,it.isModifierKey=Rc,it.lookupKey=Ju,it.normalizeKeyMap=Wd,it.StringStream=Le,it.SharedTextMarker=kh,it.TextMarker=_n,it.LineWidget=lu,it.e_preventDefault=Mr,it.e_stopPropagation=ro,it.e_stop=$r,it.addClass=Ge,it.contains=ze,it.rmClass=Gt,it.keyNames=Kh}$s(ps),pc(ps);var ah="iter insert remove copy getEditor constructor".split(" ");for(var sd in Lu.prototype)Lu.prototype.hasOwnProperty(sd)&&Ce(ah,sd)<0&&(ps.prototype[sd]=function(it){return function(){return it.apply(this.doc,arguments)}}(Lu.prototype[sd]));return mr(Lu),ps.inputStyles={textarea:Wl,contenteditable:ml},ps.defineMode=function(it){!ps.defaults.mode&&it!="null"&&(ps.defaults.mode=it),Ys.apply(this,arguments)},ps.defineMIME=Qr,ps.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),ps.defineMIME("text/plain","null"),ps.defineExtension=function(it,st){ps.prototype[it]=st},ps.defineDocExtension=function(it,st){Lu.prototype[it]=st},ps.fromTextArea=Ld,Dh(ps),ps.version="5.58.2",ps})},25419:function(hi,Cn,Ft){(function(Mt){Mt(Ft(89780),Ft(15525),Ft(98101))})(function(Mt){"use strict";Mt.defineMode("markdown",function(ce,re){var Ie=Mt.getMode(ce,"text/html"),ee=Ie.name=="null";function Vt(ye){if(Mt.findModeByName){var ne=Mt.findModeByName(ye);ne&&(ye=ne.mime||ne.mimes[0])}var Ce=Mt.getMode(ce,ye);return Ce.name=="null"?null:Ce}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 Nt={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 Nt)Nt.hasOwnProperty(jt)&&re.tokenTypeOverrides[jt]&&(Nt[jt]=re.tokenTypeOverrides[jt]);var te=/^([*\-_])(?:\s*\1){2,}\s*$/,Pt=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,oe=/^\[(x| )\](?=\s)/i,Kt=re.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,$t=/^ {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 ht(ye,ne,Ce){return ne.f=ne.inline=Ce,Ce(ye,ne)}function dt(ye,ne,Ce){return ne.f=ne.block=Ce,Ce(ye,ne)}function xt(ye){return!ye||!/\S/.test(ye.string)}function It(ye){if(ye.linkTitle=!1,ye.linkHref=!1,ye.linkText=!1,ye.em=!1,ye.strong=!1,ye.strikethrough=!1,ye.quote=0,ye.indentedCode=!1,ye.f==Gt){var ne=ee;if(!ne){var Ce=Mt.innerMode(Ie,ye.htmlState);ne=Ce.mode.name=="xml"&&Ce.state.tagStart===null&&!Ce.state.context&&Ce.state.tokenize.isInText}ne&&(ye.f=Pe,ye.block=Ut,ye.htmlState=null)}return ye.trailingSpace=0,ye.trailingSpaceNewLine=!1,ye.prevLine=ye.thisLine,ye.thisLine={stream:null},null}function Ut(ye,ne){var Ce=ye.column()===ne.indentation,bn=xt(ne.prevLine.stream),Ln=ne.indentedCode,Ze=ne.prevLine.hr,Mn=ne.list!==!1,Vn=(ne.listStack[ne.listStack.length-1]||0)+3;ne.indentedCode=!1;var gi=ne.indentation;if(ne.indentationDiff===null&&(ne.indentationDiff=ne.indentation,Mn)){for(ne.list=null;gi<ne.listStack[ne.listStack.length-1];)ne.listStack.pop(),ne.listStack.length?ne.indentation=ne.listStack[ne.listStack.length-1]:ne.list=!1;ne.list!==!1&&(ne.indentationDiff=gi-ne.listStack[ne.listStack.length-1])}var Kn=!bn&&!Ze&&!ne.prevLine.header&&(!Mn||!Ln)&&!ne.prevLine.fencedCodeEnd,Bi=(ne.list===!1||Ze||bn)&&ne.indentation<=Vn&&ye.match(te),en=null;if(ne.indentationDiff>=4&&(Ln||ne.prevLine.fencedCodeEnd||ne.prevLine.header||bn))return ye.skipToEnd(),ne.indentedCode=!0,Nt.code;if(ye.eatSpace())return null;if(Ce&&ne.indentation<=Vn&&(en=ye.match(Kt))&&en[1].length<=6)return ne.quote=0,ne.header=en[1].length,ne.thisLine.header=!0,re.highlightFormatting&&(ne.formatting="header"),ne.f=ne.inline,ue(ne);if(ne.indentation<=Vn&&ye.eat(">"))return ne.quote=Ce?1:ne.quote+1,re.highlightFormatting&&(ne.formatting="quote"),ye.eatSpace(),ue(ne);if(!Bi&&!ne.setext&&Ce&&ne.indentation<=Vn&&(en=ye.match(Pt))){var Li=en[1]?"ol":"ul";return ne.indentation=gi+ye.current().length,ne.list=!0,ne.quote=0,ne.listStack.push(ne.indentation),ne.em=!1,ne.strong=!1,ne.code=!1,ne.strikethrough=!1,re.taskLists&&ye.match(oe,!1)&&(ne.taskList=!0),ne.f=ne.inline,re.highlightFormatting&&(ne.formatting=["list","list-"+Li]),ue(ne)}else{if(Ce&&ne.indentation<=Vn&&(en=ye.match(et,!0)))return ne.quote=0,ne.fencedEndRE=new RegExp(en[1]+"+ *$"),ne.localMode=re.fencedCodeBlockHighlighting&&Vt(en[2]||re.fencedCodeBlockDefaultMode),ne.localMode&&(ne.localState=Mt.startState(ne.localMode)),ne.f=ne.block=se,re.highlightFormatting&&(ne.formatting="code-block"),ne.code=-1,ue(ne);if(ne.setext||(!Kn||!Mn)&&!ne.quote&&ne.list===!1&&!ne.code&&!Bi&&!tt.test(ye.string)&&(en=ye.lookAhead(1))&&(en=en.match($t)))return ne.setext?(ne.header=ne.setext,ne.setext=0,ye.skipToEnd(),re.highlightFormatting&&(ne.formatting="header")):(ne.header=en[0].charAt(0)=="="?1:2,ne.setext=ne.header),ne.thisLine.header=!0,ne.f=ne.inline,ue(ne);if(Bi)return ye.skipToEnd(),ne.hr=!0,ne.thisLine.hr=!0,Nt.hr;if(ye.peek()==="[")return ht(ye,ne,_e)}return ht(ye,ne,ne.inline)}function Gt(ye,ne){var Ce=Ie.token(ye,ne.htmlState);if(!ee){var bn=Mt.innerMode(Ie,ne.htmlState);(bn.mode.name=="xml"&&bn.state.tagStart===null&&!bn.state.context&&bn.state.tokenize.isInText||ne.md_inside&&ye.current().indexOf(">")>-1)&&(ne.f=Pe,ne.block=Ut,ne.htmlState=null)}return Ce}function se(ye,ne){var Ce=ne.listStack[ne.listStack.length-1]||0,bn=ne.indentation<Ce,Ln=Ce+3;if(ne.fencedEndRE&&ne.indentation<=Ln&&(bn||ye.match(ne.fencedEndRE))){re.highlightFormatting&&(ne.formatting="code-block");var Ze;return bn||(Ze=ue(ne)),ne.localMode=ne.localState=null,ne.block=Ut,ne.f=Pe,ne.fencedEndRE=null,ne.code=0,ne.thisLine.fencedCodeEnd=!0,bn?dt(ye,ne,ne.block):Ze}else return ne.localMode?ne.localMode.token(ye,ne.localState):(ye.skipToEnd(),Nt.code)}function ue(ye){var ne=[];if(ye.formatting){ne.push(Nt.formatting),typeof ye.formatting=="string"&&(ye.formatting=[ye.formatting]);for(var Ce=0;Ce<ye.formatting.length;Ce++)ne.push(Nt.formatting+"-"+ye.formatting[Ce]),ye.formatting[Ce]==="header"&&ne.push(Nt.formatting+"-"+ye.formatting[Ce]+"-"+ye.header),ye.formatting[Ce]==="quote"&&(!re.maxBlockquoteDepth||re.maxBlockquoteDepth>=ye.quote?ne.push(Nt.formatting+"-"+ye.formatting[Ce]+"-"+ye.quote):ne.push("error"))}if(ye.taskOpen)return ne.push("meta"),ne.length?ne.join(" "):null;if(ye.taskClosed)return ne.push("property"),ne.length?ne.join(" "):null;if(ye.linkHref?ne.push(Nt.linkHref,"url"):(ye.strong&&ne.push(Nt.strong),ye.em&&ne.push(Nt.em),ye.strikethrough&&ne.push(Nt.strikethrough),ye.emoji&&ne.push(Nt.emoji),ye.linkText&&ne.push(Nt.linkText),ye.code&&ne.push(Nt.code),ye.image&&ne.push(Nt.image),ye.imageAltText&&ne.push(Nt.imageAltText,"link"),ye.imageMarker&&ne.push(Nt.imageMarker)),ye.header&&ne.push(Nt.header,Nt.header+"-"+ye.header),ye.quote&&(ne.push(Nt.quote),!re.maxBlockquoteDepth||re.maxBlockquoteDepth>=ye.quote?ne.push(Nt.quote+"-"+ye.quote):ne.push(Nt.quote+"-"+re.maxBlockquoteDepth)),ye.list!==!1){var bn=(ye.listStack.length-1)%3;bn?bn===1?ne.push(Nt.list2):ne.push(Nt.list3):ne.push(Nt.list1)}return ye.trailingSpaceNewLine?ne.push("trailing-space-new-line"):ye.trailingSpace&&ne.push("trailing-space-"+(ye.trailingSpace%2?"a":"b")),ne.length?ne.join(" "):null}function Ae(ye,ne){if(ye.match(Ct,!0))return ue(ne)}function Pe(ye,ne){var Ce=ne.text(ye,ne);if(typeof Ce!="undefined")return Ce;if(ne.list)return ne.list=null,ue(ne);if(ne.taskList){var bn=ye.match(oe,!0)[1]===" ";return bn?ne.taskOpen=!0:ne.taskClosed=!0,re.highlightFormatting&&(ne.formatting="task"),ne.taskList=!1,ue(ne)}if(ne.taskOpen=!1,ne.taskClosed=!1,ne.header&&ye.match(/^#+$/,!0))return re.highlightFormatting&&(ne.formatting="header"),ue(ne);var Ln=ye.next();if(ne.linkTitle){ne.linkTitle=!1;var Ze=Ln;Ln==="("&&(Ze=")"),Ze=(Ze+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Mn="^\\s*(?:[^"+Ze+"\\\\]+|\\\\\\\\|\\\\.)"+Ze;if(ye.match(new RegExp(Mn),!0))return Nt.linkHref}if(Ln==="`"){var Vn=ne.formatting;re.highlightFormatting&&(ne.formatting="code"),ye.eatWhile("`");var gi=ye.current().length;if(ne.code==0&&(!ne.quote||gi==1))return ne.code=gi,ue(ne);if(gi==ne.code){var Kn=ue(ne);return ne.code=0,Kn}else return ne.formatting=Vn,ue(ne)}else if(ne.code)return ue(ne);if(Ln==="\\"&&(ye.next(),re.highlightFormatting)){var Bi=ue(ne),en=Nt.formatting+"-escape";return Bi?Bi+" "+en:en}if(Ln==="!"&&ye.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ne.imageMarker=!0,ne.image=!0,re.highlightFormatting&&(ne.formatting="image"),ue(ne);if(Ln==="["&&ne.imageMarker&&ye.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ne.imageMarker=!1,ne.imageAltText=!0,re.highlightFormatting&&(ne.formatting="image"),ue(ne);if(Ln==="]"&&ne.imageAltText){re.highlightFormatting&&(ne.formatting="image");var Bi=ue(ne);return ne.imageAltText=!1,ne.image=!1,ne.inline=ne.f=ze,Bi}if(Ln==="["&&!ne.image)return ne.linkText&&ye.match(/^.*?\]/)||(ne.linkText=!0,re.highlightFormatting&&(ne.formatting="link")),ue(ne);if(Ln==="]"&&ne.linkText){re.highlightFormatting&&(ne.formatting="link");var Bi=ue(ne);return ne.linkText=!1,ne.inline=ne.f=ye.match(/\(.*?\)| ?\[.*?\]/,!1)?ze:Pe,Bi}if(Ln==="<"&&ye.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ne.f=ne.inline=qt,re.highlightFormatting&&(ne.formatting="link");var Bi=ue(ne);return Bi?Bi+=" ":Bi="",Bi+Nt.linkInline}if(Ln==="<"&&ye.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ne.f=ne.inline=qt,re.highlightFormatting&&(ne.formatting="link");var Bi=ue(ne);return Bi?Bi+=" ":Bi="",Bi+Nt.linkEmail}if(re.xml&&Ln==="<"&&ye.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Li=ye.string.indexOf(">",ye.pos);if(Li!=-1){var Oi=ye.string.substring(ye.start,Li);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Oi)&&(ne.md_inside=!0)}return ye.backUp(1),ne.htmlState=Mt.startState(Ie),dt(ye,ne,Gt)}if(re.xml&&Ln==="<"&&ye.match(/^\/\w*?>/))return ne.md_inside=!1,"tag";if(Ln==="*"||Ln==="_"){for(var Lt=1,Ot=ye.pos==1?" ":ye.string.charAt(ye.pos-2);Lt<3&&ye.eat(Ln);)Lt++;var mt=ye.peek()||" ",ft=!/\s/.test(mt)&&(!lt.test(mt)||/\s/.test(Ot)||lt.test(Ot)),pt=!/\s/.test(Ot)&&(!lt.test(Ot)||/\s/.test(mt)||lt.test(mt)),At=null,le=null;if(Lt%2&&(!ne.em&&ft&&(Ln==="*"||!pt||lt.test(Ot))?At=!0:ne.em==Ln&&pt&&(Ln==="*"||!ft||lt.test(mt))&&(At=!1)),Lt>1&&(!ne.strong&&ft&&(Ln==="*"||!pt||lt.test(Ot))?le=!0:ne.strong==Ln&&pt&&(Ln==="*"||!ft||lt.test(mt))&&(le=!1)),le!=null||At!=null){re.highlightFormatting&&(ne.formatting=At==null?"strong":le==null?"em":"strong em"),At===!0&&(ne.em=Ln),le===!0&&(ne.strong=Ln);var Kn=ue(ne);return At===!1&&(ne.em=!1),le===!1&&(ne.strong=!1),Kn}}else if(Ln===" "&&(ye.eat("*")||ye.eat("_"))){if(ye.peek()===" ")return ue(ne);ye.backUp(1)}if(re.strikethrough){if(Ln==="~"&&ye.eatWhile(Ln)){if(ne.strikethrough){re.highlightFormatting&&(ne.formatting="strikethrough");var Kn=ue(ne);return ne.strikethrough=!1,Kn}else if(ye.match(/^[^\s]/,!1))return ne.strikethrough=!0,re.highlightFormatting&&(ne.formatting="strikethrough"),ue(ne)}else if(Ln===" "&&ye.match(/^~~/,!0)){if(ye.peek()===" ")return ue(ne);ye.backUp(2)}}if(re.emoji&&Ln===":"&&ye.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ne.emoji=!0,re.highlightFormatting&&(ne.formatting="emoji");var xe=ue(ne);return ne.emoji=!1,xe}return Ln===" "&&(ye.match(/^ +$/,!1)?ne.trailingSpace++:ne.trailingSpace&&(ne.trailingSpaceNewLine=!0)),ue(ne)}function qt(ye,ne){var Ce=ye.next();if(Ce===">"){ne.f=ne.inline=Pe,re.highlightFormatting&&(ne.formatting="link");var bn=ue(ne);return bn?bn+=" ":bn="",bn+Nt.linkInline}return ye.match(/^[^>]+/,!0),Nt.linkInline}function ze(ye,ne){if(ye.eatSpace())return null;var Ce=ye.next();return Ce==="("||Ce==="["?(ne.f=ne.inline=Ge(Ce==="("?")":"]"),re.highlightFormatting&&(ne.formatting="link-string"),ne.linkHref=!0,ue(ne)):"error"}var Wt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ge(ye){return function(ne,Ce){var bn=ne.next();if(bn===ye){Ce.f=Ce.inline=Pe,re.highlightFormatting&&(Ce.formatting="link-string");var Ln=ue(Ce);return Ce.linkHref=!1,Ln}return ne.match(Wt[ye]),Ce.linkHref=!0,ue(Ce)}}function _e(ye,ne){return ye.match(/^([^\]\\]|\\.)*\]:/,!1)?(ne.f=Me,ye.next(),re.highlightFormatting&&(ne.formatting="link"),ne.linkText=!0,ue(ne)):ht(ye,ne,Pe)}function Me(ye,ne){if(ye.match(/^\]:/,!0)){ne.f=ne.inline=We,re.highlightFormatting&&(ne.formatting="link");var Ce=ue(ne);return ne.linkText=!1,Ce}return ye.match(/^([^\]\\]|\\.)+/,!0),Nt.linkText}function We(ye,ne){return ye.eatSpace()?null:(ye.match(/^[^\s]+/,!0),ye.peek()===void 0?ne.linkTitle=!0:ye.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ne.f=ne.inline=Pe,Nt.linkHref+" url")}var Re={startState:function(){return{f:Ut,prevLine:{stream:null},thisLine:{stream:null},block:Ut,htmlState:null,indentation:0,inline:Pe,text:Ae,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(ye){return{f:ye.f,prevLine:ye.prevLine,thisLine:ye.thisLine,block:ye.block,htmlState:ye.htmlState&&Mt.copyState(Ie,ye.htmlState),indentation:ye.indentation,localMode:ye.localMode,localState:ye.localMode?Mt.copyState(ye.localMode,ye.localState):null,inline:ye.inline,text:ye.text,formatting:!1,linkText:ye.linkText,linkTitle:ye.linkTitle,linkHref:ye.linkHref,code:ye.code,em:ye.em,strong:ye.strong,strikethrough:ye.strikethrough,emoji:ye.emoji,header:ye.header,setext:ye.setext,hr:ye.hr,taskList:ye.taskList,list:ye.list,listStack:ye.listStack.slice(0),quote:ye.quote,indentedCode:ye.indentedCode,trailingSpace:ye.trailingSpace,trailingSpaceNewLine:ye.trailingSpaceNewLine,md_inside:ye.md_inside,fencedEndRE:ye.fencedEndRE}},token:function(ye,ne){if(ne.formatting=!1,ye!=ne.thisLine.stream){if(ne.header=0,ne.hr=!1,ye.match(/^\s*$/,!0))return It(ne),null;if(ne.prevLine=ne.thisLine,ne.thisLine={stream:ye},ne.taskList=!1,ne.trailingSpace=0,ne.trailingSpaceNewLine=!1,!ne.localState&&(ne.f=ne.block,ne.f!=Gt)){var Ce=ye.match(/^\s*/,!0)[0].replace(/\t/g,rt).length;if(ne.indentation=Ce,ne.indentationDiff=null,Ce>0)return null}}return ne.f(ye,ne)},innerMode:function(ye){return ye.block==Gt?{state:ye.htmlState,mode:Ie}:ye.localState?{state:ye.localState,mode:ye.localMode}:{state:ye,mode:Re}},indent:function(ye,ne,Ce){return ye.block==Gt&&Ie.indent?Ie.indent(ye.htmlState,ne,Ce):ye.localState&&ye.localMode.indent?ye.localMode.indent(ye.localState,ne,Ce):Mt.Pass},blankLine:It,getType:ue,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Re},"xml"),Mt.defineMIME("text/markdown","markdown"),Mt.defineMIME("text/x-markdown","markdown")})},98101:function(hi,Cn,Ft){(function(Mt){Mt(Ft(89780))})(function(Mt){"use strict";Mt.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<Mt.modeInfo.length;ce++){var re=Mt.modeInfo[ce];re.mimes&&(re.mime=re.mimes[0])}Mt.findModeByMIME=function(Ie){Ie=Ie.toLowerCase();for(var ee=0;ee<Mt.modeInfo.length;ee++){var Vt=Mt.modeInfo[ee];if(Vt.mime==Ie)return Vt;if(Vt.mimes){for(var Nt=0;Nt<Vt.mimes.length;Nt++)if(Vt.mimes[Nt]==Ie)return Vt}}if(/\+xml$/.test(Ie))return Mt.findModeByMIME("application/xml");if(/\+json$/.test(Ie))return Mt.findModeByMIME("application/json")},Mt.findModeByExtension=function(Ie){Ie=Ie.toLowerCase();for(var ee=0;ee<Mt.modeInfo.length;ee++){var Vt=Mt.modeInfo[ee];if(Vt.ext){for(var Nt=0;Nt<Vt.ext.length;Nt++)if(Vt.ext[Nt]==Ie)return Vt}}},Mt.findModeByFileName=function(Ie){for(var ee=0;ee<Mt.modeInfo.length;ee++){var Vt=Mt.modeInfo[ee];if(Vt.file&&Vt.file.test(Ie))return Vt}var Nt=Ie.lastIndexOf("."),jt=Nt>-1&&Ie.substring(Nt+1,Ie.length);if(jt)return Mt.findModeByExtension(jt)},Mt.findModeByName=function(Ie){Ie=Ie.toLowerCase();for(var ee=0;ee<Mt.modeInfo.length;ee++){var Vt=Mt.modeInfo[ee];if(Vt.name.toLowerCase()==Ie)return Vt;if(Vt.alias){for(var Nt=0;Nt<Vt.alias.length;Nt++)if(Vt.alias[Nt].toLowerCase()==Ie)return Vt}}}})},67549:function(hi,Cn,Ft){(function(Mt){Mt(Ft(89780))})(function(Mt){"use strict";Mt.defineMode("stex",function(ce,re){"use strict";function Ie(Ct,et){Ct.cmdState.push(et)}function ee(Ct){return Ct.cmdState.length>0?Ct.cmdState[Ct.cmdState.length-1]:null}function Vt(Ct){var et=Ct.cmdState.pop();et&&et.closeBracket()}function Nt(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 te={};te.importmodule=jt("importmodule","tag",["string","builtin"]),te.documentclass=jt("documentclass","tag",["","atom"]),te.usepackage=jt("usepackage","tag",["atom"]),te.begin=jt("begin","tag",["atom"]),te.end=jt("end","tag",["atom"]),te.label=jt("label","tag",["atom"]),te.ref=jt("ref","tag",["atom"]),te.eqref=jt("eqref","tag",["atom"]),te.cite=jt("cite","tag",["atom"]),te.bibitem=jt("bibitem","tag",["atom"]),te.Bibitem=jt("Bibitem","tag",["atom"]),te.RBibitem=jt("RBibitem","tag",["atom"]),te.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=te.hasOwnProperty(lt)?te[lt]:te.DEFAULT,tt=new tt,Ie(et,tt),Pt(et,$t),tt.style}if(Ct.match(/^\\[$&%#{}_]/)||Ct.match(/^\\[,;!\/\\]/))return"tag";if(Ct.match("\\["))return Pt(et,function(ht,dt){return Kt(ht,dt,"\\]")}),"keyword";if(Ct.match("\\("))return Pt(et,function(ht,dt){return Kt(ht,dt,"\\)")}),"keyword";if(Ct.match("$$"))return Pt(et,function(ht,dt){return Kt(ht,dt,"$$")}),"keyword";if(Ct.match("$"))return Pt(et,function(ht,dt){return Kt(ht,dt,"$")}),"keyword";var rt=Ct.next();if(rt=="%")return Ct.skipToEnd(),"comment";if(rt=="}"||rt=="]"){if(tt=ee(et),tt)tt.closeBracket(rt),Pt(et,$t);else return"error";return"bracket"}else return rt=="{"||rt=="["?(tt=te.DEFAULT,tt=new tt,Ie(et,tt),"bracket"):/\d/.test(rt)?(Ct.eatWhile(/[\w.%]/),"atom"):(Ct.eatWhile(/[\w\-_]/),tt=Nt(et),tt.name=="begin"&&(tt.argument=Ct.current()),tt.styleIdentifier())}function Kt(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 $t(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),Vt(et),oe(Ct,et))}return{startState:function(){var Ct=re.inMathMode?function(et,tt){return Kt(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:"%"}}),Mt.defineMIME("text/x-stex","stex"),Mt.defineMIME("text/x-latex","stex")})},15525:function(hi,Cn,Ft){(function(Mt){Mt(Ft(89780))})(function(Mt){"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};Mt.defineMode("xml",function(Ie,ee){var Vt=Ie.indentUnit,Nt={},jt=ee.htmlMode?ce:re;for(var te in jt)Nt[te]=jt[te];for(var te in ee)Nt[te]=ee[te];var Pt,oe;function Kt(qt,ze){function Wt(Me){return ze.tokenize=Me,Me(qt,ze)}var Ge=qt.next();if(Ge=="<")return qt.eat("!")?qt.eat("[")?qt.match("CDATA[")?Wt(et("atom","]]>")):null:qt.match("--")?Wt(et("comment","-->")):qt.match("DOCTYPE",!0,!0)?(qt.eatWhile(/[\w\._\-]/),Wt(tt(1))):null:qt.eat("?")?(qt.eatWhile(/[\w\._\-]/),ze.tokenize=et("meta","?>"),"meta"):(Pt=qt.eat("/")?"closeTag":"openTag",ze.tokenize=$t,"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}Kt.isInText=!0;function $t(qt,ze){var Wt=qt.next();if(Wt==">"||Wt=="/"&&qt.eat(">"))return ze.tokenize=Kt,Pt=Wt==">"?"endTag":"selfcloseTag","tag bracket";if(Wt=="=")return Pt="equals",null;if(Wt=="<"){ze.tokenize=Kt,ze.state=dt,ze.tagName=ze.tagStart=null;var Ge=ze.tokenize(qt,ze);return Ge?Ge+" tag error":"tag error"}else return/[\'\"]/.test(Wt)?(ze.tokenize=Ct(Wt),ze.stringStartCol=qt.column(),ze.tokenize(qt,ze)):(qt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ct(qt){var ze=function(Wt,Ge){for(;!Wt.eol();)if(Wt.next()==qt){Ge.tokenize=$t;break}return"string"};return ze.isInAttribute=!0,ze}function et(qt,ze){return function(Wt,Ge){for(;!Wt.eol();){if(Wt.match(ze)){Ge.tokenize=Kt;break}Wt.next()}return qt}}function tt(qt){return function(ze,Wt){for(var Ge;(Ge=ze.next())!=null;){if(Ge=="<")return Wt.tokenize=tt(qt+1),Wt.tokenize(ze,Wt);if(Ge==">")if(qt==1){Wt.tokenize=Kt;break}else return Wt.tokenize=tt(qt-1),Wt.tokenize(ze,Wt)}return"meta"}}function lt(qt,ze,Wt){this.prev=qt.context,this.tagName=ze,this.indent=qt.indented,this.startOfLine=Wt,(Nt.doNotIndent.hasOwnProperty(ze)||qt.context&&qt.context.noIndent)&&(this.noIndent=!0)}function rt(qt){qt.context&&(qt.context=qt.context.prev)}function ht(qt,ze){for(var Wt;;){if(!qt.context||(Wt=qt.context.tagName,!Nt.contextGrabbers.hasOwnProperty(Wt)||!Nt.contextGrabbers[Wt].hasOwnProperty(ze)))return;rt(qt)}}function dt(qt,ze,Wt){return qt=="openTag"?(Wt.tagStart=ze.column(),xt):qt=="closeTag"?It:dt}function xt(qt,ze,Wt){return qt=="word"?(Wt.tagName=ze.current(),oe="tag",se):Nt.allowMissingTagName&&qt=="endTag"?(oe="tag bracket",se(qt,ze,Wt)):(oe="error",xt)}function It(qt,ze,Wt){if(qt=="word"){var Ge=ze.current();return Wt.context&&Wt.context.tagName!=Ge&&Nt.implicitlyClosed.hasOwnProperty(Wt.context.tagName)&&rt(Wt),Wt.context&&Wt.context.tagName==Ge||Nt.matchClosing===!1?(oe="tag",Ut):(oe="tag error",Gt)}else return Nt.allowMissingTagName&&qt=="endTag"?(oe="tag bracket",Ut(qt,ze,Wt)):(oe="error",Gt)}function Ut(qt,ze,Wt){return qt!="endTag"?(oe="error",Ut):(rt(Wt),dt)}function Gt(qt,ze,Wt){return oe="error",Ut(qt,ze,Wt)}function se(qt,ze,Wt){if(qt=="word")return oe="attribute",ue;if(qt=="endTag"||qt=="selfcloseTag"){var Ge=Wt.tagName,_e=Wt.tagStart;return Wt.tagName=Wt.tagStart=null,qt=="selfcloseTag"||Nt.autoSelfClosers.hasOwnProperty(Ge)?ht(Wt,Ge):(ht(Wt,Ge),Wt.context=new lt(Wt,Ge,_e==Wt.indented)),dt}return oe="error",se}function ue(qt,ze,Wt){return qt=="equals"?Ae:(Nt.allowMissing||(oe="error"),se(qt,ze,Wt))}function Ae(qt,ze,Wt){return qt=="string"?Pe:qt=="word"&&Nt.allowUnquoted?(oe="string",se):(oe="error",se(qt,ze,Wt))}function Pe(qt,ze,Wt){return qt=="string"?Pe:se(qt,ze,Wt)}return{startState:function(qt){var ze={tokenize:Kt,state:dt,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 Wt=ze.tokenize(qt,ze);return(Wt||Pt)&&Wt!="comment"&&(oe=null,ze.state=ze.state(Pt||Wt,qt,ze),oe&&(Wt=oe=="error"?Wt+" error":oe)),Wt},indent:function(qt,ze,Wt){var Ge=qt.context;if(qt.tokenize.isInAttribute)return qt.tagStart==qt.indented?qt.stringStartCol+1:qt.indented+Vt;if(Ge&&Ge.noIndent)return Mt.Pass;if(qt.tokenize!=$t&&qt.tokenize!=Kt)return Wt?Wt.match(/^(\s*)/)[0].length:0;if(qt.tagName)return Nt.multilineTagIndentPastTag!==!1?qt.tagStart+qt.tagName.length+2:qt.tagStart+Vt*(Nt.multilineTagIndentFactor||1);if(Nt.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(Nt.implicitlyClosed.hasOwnProperty(Ge.tagName))Ge=Ge.prev;else break;else if(_e)for(;Ge;){var Me=Nt.contextGrabbers[Ge.tagName];if(Me&&Me.hasOwnProperty(_e[2]))Ge=Ge.prev;else break}for(;Ge&&Ge.prev&&!Ge.startOfLine;)Ge=Ge.prev;return Ge?Ge.indent+Vt:qt.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Nt.htmlMode?"html":"xml",helperType:Nt.htmlMode?"html":"xml",skipAttribute:function(qt){qt.state==Ae&&(qt.state=se)},xmlCurrentTag:function(qt){return qt.tagName?{name:qt.tagName,close:qt.type=="closeTag"}:null},xmlCurrentContext:function(qt){for(var ze=[],Wt=qt.context;Wt;Wt=Wt.prev)Wt.tagName&&ze.push(Wt.tagName);return ze.reverse()}}}),Mt.defineMIME("text/xml","xml"),Mt.defineMIME("application/xml","xml"),Mt.mimeModes.hasOwnProperty("text/html")||Mt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},97774:function(hi,Cn,Ft){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=void 0;var Mt=Object.assign||function(tt){for(var lt=1;lt<arguments.length;lt++){var rt=arguments[lt];for(var ht in rt)Object.prototype.hasOwnProperty.call(rt,ht)&&(tt[ht]=rt[ht])}return tt},ce=function(){function tt(lt,rt){for(var ht=0;ht<rt.length;ht++){var dt=rt[ht];dt.enumerable=dt.enumerable||!1,dt.configurable=!0,"value"in dt&&(dt.writable=!0),Object.defineProperty(lt,dt.key,dt)}}return function(lt,rt,ht){return rt&&tt(lt.prototype,rt),ht&&tt(lt,ht),lt}}(),re=Ft(59301),Ie=oe(re),ee=Ft(12708),Vt=oe(ee),Nt=Ft(53291),jt=oe(Nt),te=Ft(47242),Pt=Ft(65429);function oe(tt){return tt&&tt.__esModule?tt:{default:tt}}function Kt(tt,lt){if(!(tt instanceof lt))throw new TypeError("Cannot call a class as a function")}function $t(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"&<!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof lt);tt.prototype=Object.create(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){Kt(this,lt);var ht=$t(this,(lt.__proto__||Object.getPrototypeOf(lt)).call(this,rt));return ht.getEchartsInstance=function(){return ht.echartsLib.getInstanceByDom(ht.echartsElement)||ht.echartsLib.init(ht.echartsElement,ht.props.theme,ht.props.opts)},ht.dispose=function(){if(ht.echartsElement){try{(0,te.clear)(ht.echartsElement)}catch(dt){console.warn(dt)}ht.echartsLib.dispose(ht.echartsElement)}},ht.rerender=function(){var dt=ht.props,xt=dt.onEvents,It=dt.onChartReady,Ut=ht.renderEchartDom();ht.bindEvents(Ut,xt||{}),typeof It=="function"&&ht.props.onChartReady(Ut),ht.echartsElement&&(0,te.bind)(ht.echartsElement,function(){try{Ut.resize()}catch(Gt){console.warn(Gt)}})},ht.bindEvents=function(dt,xt){var It=function(se,ue){typeof se=="string"&&typeof ue=="function"&&dt.on(se,function(Ae){ue(Ae,dt)})};for(var Ut in xt)Object.prototype.hasOwnProperty.call(xt,Ut)&&It(Ut,xt[Ut])},ht.renderEchartDom=function(){var dt=ht.getEchartsInstance();return dt.setOption(ht.props.option,ht.props.notMerge||!1,ht.props.lazyUpdate||!1),ht.props.showLoading?dt.showLoading(ht.props.loadingOption||null):dt.hideLoading(),dt},ht.echartsLib=rt.echarts,ht.echartsElement=null,ht}return ce(lt,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(ht){if(!(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(ht,this.props))){if(!(0,jt.default)(ht.theme,this.props.theme)||!(0,jt.default)(ht.opts,this.props.opts)||!(0,jt.default)(ht.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var dt=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if(!(0,jt.default)((0,Pt.pick)(this.props,dt),(0,Pt.pick)(ht,dt))){var xt=this.renderEchartDom();if(!(0,jt.default)(ht.style,this.props.style)||!(0,jt.default)(ht.className,this.props.className))try{xt.resize()}catch(It){console.warn(It)}}}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var ht=this,dt=this.props,xt=dt.style,It=dt.className,Ut=Mt({height:300},xt);return Ie.default.createElement("div",{ref:function(se){ht.echartsElement=se},style:Ut,className:"echarts-for-react "+It})}}]),lt}(re.Component);Cn.default=et,et.propTypes={option:Vt.default.object.isRequired,echarts:Vt.default.object,notMerge:Vt.default.bool,lazyUpdate:Vt.default.bool,style:Vt.default.object,className:Vt.default.string,theme:Vt.default.oneOfType([Vt.default.string,Vt.default.object]),onChartReady:Vt.default.func,showLoading:Vt.default.bool,loadingOption:Vt.default.object,onEvents:Vt.default.object,opts:Vt.default.shape({devicePixelRatio:Vt.default.number,renderer:Vt.default.oneOf(["canvas","svg"]),width:Vt.default.oneOfType([Vt.default.number,Vt.default.oneOf([null,void 0,"auto"])]),height:Vt.default.oneOfType([Vt.default.number,Vt.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:Vt.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(hi,Cn,Ft){"use strict";var Mt;Mt={value:!0},Cn.Z=void 0;var ce=Ft(76411),re=Vt(ce),Ie=Ft(97774),ee=Vt(Ie);function Vt(oe){return oe&&oe.__esModule?oe:{default:oe}}function Nt(oe,Kt){if(!(oe instanceof Kt))throw new TypeError("Cannot call a class as a function")}function jt(oe,Kt){if(!oe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Kt&&(typeof Kt=="object"||typeof Kt=="function")?Kt:oe}function te(oe,Kt){if(typeof Kt!="function"&&Kt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Kt);oe.prototype=Object.create(Kt&&Kt.prototype,{constructor:{value:oe,enumerable:!1,writable:!0,configurable:!0}}),Kt&&(Object.setPrototypeOf?Object.setPrototypeOf(oe,Kt):oe.__proto__=Kt)}var Pt=function(oe){te(Kt,oe);function Kt($t){Nt(this,Kt);var Ct=jt(this,(Kt.__proto__||Object.getPrototypeOf(Kt)).call(this,$t));return Ct.echartsLib=re.default,Ct}return Kt}(ee.default);Cn.Z=Pt},65429:function(hi,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});var Ft=Cn.pick=function(ce,re){var Ie={};return re.forEach(function(ee){Ie[ee]=ce[ee]}),Ie}},53291:function(hi){"use strict";var Cn=Array.isArray,Ft=Object.keys,Mt=Object.prototype.hasOwnProperty;hi.exports=function ce(re,Ie){if(re===Ie)return!0;if(re&&Ie&&typeof re=="object"&&typeof Ie=="object"){var ee=Cn(re),Vt=Cn(Ie),Nt,jt,te;if(ee&&Vt){if(jt=re.length,jt!=Ie.length)return!1;for(Nt=jt;Nt--!==0;)if(!ce(re[Nt],Ie[Nt]))return!1;return!0}if(ee!=Vt)return!1;var Pt=re instanceof Date,oe=Ie instanceof Date;if(Pt!=oe)return!1;if(Pt&&oe)return re.getTime()==Ie.getTime();var Kt=re instanceof RegExp,$t=Ie instanceof RegExp;if(Kt!=$t)return!1;if(Kt&&$t)return re.toString()==Ie.toString();var Ct=Ft(re);if(jt=Ct.length,jt!==Ft(Ie).length)return!1;for(Nt=jt;Nt--!==0;)if(!Mt.call(Ie,Ct[Nt]))return!1;for(Nt=jt;Nt--!==0;)if(te=Ct[Nt],!ce(re[te],Ie[te]))return!1;return!0}return re!==re&&Ie!==Ie}},12378:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{$u:function(){return te},BD:function(){return Lt},E9:function(){return jt},FF:function(){return Uo},FJ:function(){return dt},Hn:function(){return ht},KX:function(){return It},NB:function(){return Ue},S0:function(){return en},UL:function(){return Pt},Vk:function(){return rt},Vm:function(){return ke},YI:function(){return Li},ZA:function(){return re},Zt:function(){return oe},al:function(){return At},bn:function(){return pt},bx:function(){return Ot},g2:function(){return Oi},h1:function(){return Ae},hD:function(){return mr},l4:function(){return Vt},rU:function(){return Te},s_:function(){return mt},uz:function(){return ve},z6:function(){return Kt}}),hi=Ft.hmd(hi),function(){var Xt;function ei(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Cs(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:ei(a)}}function Os(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},va;if(typeof Object.setPrototypeOf=="function")va=Object.setPrototypeOf;else{var Ys;t:{var Qr={a:!0},Dr={};try{Dr.__proto__=Qr,Ys=Dr.a;break t}catch(a){}Ys=!1}va=Ys?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var In=va;function Tn(a,y){if(a.prototype=ma(y.prototype),a.prototype.constructor=a,In)In(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 Ft.g!="undefined"&&Ft.g!=null?Ft.g:self,qn=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},xi=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function An(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&&xi(x,a,{writable:!0,value:y})}}An("Object.assign",function(a){return a||qn}),An("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 Le=typeof globalThis=="object"&&globalThis||typeof Ft.g=="object"&&Ft.g.global===Ft.g&&Ft.g||typeof self=="object"&&self.self===self&&self||{};Le.requestAnimationFrame===void 0&&(Le.setImmediate===void 0?Le.requestAnimationFrame=function(a){Le.setTimeout(a,0)}:Le.requestAnimationFrame=Le.setImmediate);function wn(){}function Qn(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&Le.clearTimeout(x),x=Si(function(){x=-1,a.apply(b,E)},y)}}function Si(a,y){return Le.setTimeout(a,y)}function Di(a){return Le.document.createElement(a)}function qe(a){throw Error(a)}function si(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),qe(a)}function Ei(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),qe(x+" is not in the range "+y+": "+a)}function tr(a){Le.console&&Le.console.log(a)}function On(a){return typeof a=="object"&&a!==null}function ui(a){return Array.isArray(a)||Le.NodeList&&a instanceof Le.NodeList||Le.HTMLCollection&&a instanceof Le.HTMLCollection}function Cr(a){return Array.prototype.slice.call(a)}function rr(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):qe("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function Gr(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):qe("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function or(){var a=Zo.pop();return a===void 0?[]:a}function Lr(a){a.length=0,Zo.push(a)}function er(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(On(a)&&a.constructor)return er(a.constructor);return typeof a}function Pr(a){var y=a;return On(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function io(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 Oo(a,y,x){Object.defineProperty(ie.prototype,a,{get:y,set:x})}function pi(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=Le.navigator!==void 0&&0<Le.navigator.userAgent.indexOf("Trident/7"),ys=Le.navigator!==void 0&&Le.navigator.platform!==void 0&&Le.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Zo=[];Object.freeze([]),wn.className="Util",wn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",wn.adym="gojs.net",wn.vfo="28e645fdb266",wn.className="Util";function vi(a,y,x){Xo(this),this.j=a,this.xa=y,this.o=x}vi.prototype.toString=function(){return"EnumValue."+this.xa};function ur(a,y){return y==null||y===""?null:a[y]}Oe.Object.defineProperties(vi.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),vi.className="EnumValue";function _r(){this.ew=[]}_r.prototype.toString=function(){return this.ew.join("")},_r.prototype.add=function(a){a!==""&&this.ew.push(a)},_r.className="StringBuilder";function so(){}so.className="PropertyCollection";var to={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Le.console&&Le.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 Fo(){}Fo.prototype.reset=function(){},Fo.prototype.next=function(){return!1},Fo.prototype.Ad=function(){return!1},Fo.prototype.first=function(){return null},Fo.prototype.any=function(){return!1},Fo.prototype.all=function(){return!0},Fo.prototype.each=function(){return this},Fo.prototype.map=function(){return this},Fo.prototype.filter=function(){return this},Fo.prototype.de=function(){},Fo.prototype.toString=function(){return"EmptyIterator"},Oe.Object.defineProperties(Fo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Fo.prototype.first=Fo.prototype.first,Fo.prototype.hasNext=Fo.prototype.Ad,Fo.prototype.next=Fo.prototype.next,Fo.prototype.reset=Fo.prototype.reset;var Ai=null;Fo.className="EmptyIterator",Ai=new Fo;function yo(a){this.key=-1,this.value=a}yo.prototype.reset=function(){this.key=-1},yo.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},yo.prototype.Ad=function(){return this.next()},yo.prototype.first=function(){return this.key=0,this.value},yo.prototype.any=function(a){return this.key=-1,a(this.value)},yo.prototype.all=function(a){return this.key=-1,a(this.value)},yo.prototype.each=function(a){return this.key=-1,a(this.value),this},yo.prototype.map=function(a){return new yo(a(this.value))},yo.prototype.filter=function(a){return a(this.value)?new yo(this.value):Ai},yo.prototype.de=function(){this.value=null},yo.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Oe.Object.defineProperties(yo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),yo.prototype.first=yo.prototype.first,yo.prototype.hasNext=yo.prototype.Ad,yo.prototype.next=yo.prototype.next,yo.prototype.reset=yo.prototype.reset,yo.className="SingletonIterator";function jr(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}jr.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},jr.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},jr.prototype.Ad=function(){return this.next()},jr.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},jr.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},jr.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},jr.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},jr.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 Pi,a.s=x,a.xb(),a.iterator},jr.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 Pi,a.s=x,a.xb(),a.iterator},jr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},jr.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Oe.Object.defineProperties(jr.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}}}),jr.prototype.first=jr.prototype.first,jr.prototype.hasNext=jr.prototype.Ad,jr.prototype.next=jr.prototype.next,jr.prototype.reset=jr.prototype.reset,jr.className="ListIterator";function Sr(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Sr.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Sr.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)},Sr.prototype.Ad=function(){return this.next()},Sr.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},Sr.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},Sr.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},Sr.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},Sr.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 Pi,a.s=x,a.xb(),a.iterator},Sr.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 Pi,a.s=x,a.xb(),a.iterator},Sr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Sr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Oe.Object.defineProperties(Sr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Sr.prototype.first=Sr.prototype.first,Sr.prototype.hasNext=Sr.prototype.Ad,Sr.prototype.next=Sr.prototype.next,Sr.prototype.reset=Sr.prototype.reset,Sr.className="ListIteratorBackwards";function Pi(a){Xo(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&qe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Xt=Pi.prototype,Xt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Xt.freeze=function(){return this._isFrozen=!0,this},Xt.ka=function(){return this._isFrozen=!1,this},Xt.toString=function(){return"List()#"+xs(this)},Xt.add=function(a){return a===null?this:(this._isFrozen&&si(this,a),this.s.push(a),this.xb(),this)},Xt.push=function(a){this.add(a)},Xt.addAll=function(a){if(a===null)return this;this._isFrozen&&si(this);var y=this.s;if(ui(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},Xt.clear=function(){this._isFrozen&&si(this),this.s.length=0,this.xb()},Xt.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Xt.has=function(a){return this.contains(a)},Xt.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Xt.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Ei(a,"0 <= i < length",Pi,"elt:i"),y[a]},Xt.get=function(a){return this.M(a)},Xt.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Ei(a,"0 <= i < length",Pi,"setElt:i"),this._isFrozen&&si(this,a),x[a]=y},Xt.set=function(a,y){this.cd(a,y)},Xt.first=function(){var a=this.s;return a.length===0?null:a[0]},Xt.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Xt.pop=function(){this._isFrozen&&si(this);var a=this.s;return 0<a.length?a.pop():null},Pi.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},Pi.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},Pi.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},Pi.prototype.map=function(a){for(var y=new Pi,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},Pi.prototype.filter=function(a){for(var y=new Pi,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},Xt=Pi.prototype,Xt.Gb=function(a,y){0>a&&Ei(a,">= 0",Pi,"insertAt:i"),this._isFrozen&&si(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Xt.remove=function(a){if(a===null)return!1;this._isFrozen&&si(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)},Xt.delete=function(a){return this.remove(a)},Xt.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Ei(a,"0 <= i < length",Pi,"removeAt:i"),this._isFrozen&&si(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Xt.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&&si(this);for(var E=a,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},Pi.prototype.copy=function(){var a=new Pi,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Xt=Pi.prototype,Xt.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},Xt.Iv=function(){for(var a=new Ci,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},Xt.sort=function(a){return this._isFrozen&&si(this),this.s.sort(a),this.xb(),this},Xt.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&si(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&Ei(y,"0 <= from < length",Pi,"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},Xt.reverse=function(){return this._isFrozen&&si(this),this.s.reverse(),this.xb(),this},Oe.Object.defineProperties(Pi.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 Ai;var a=this.Sa;return a!==null?(a.reset(),a):new jr(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Ai;var a=this.Hg;return a!==null?(a.reset(),a):new Sr(this)}}}),Pi.prototype.reverse=Pi.prototype.reverse,Pi.prototype.sortRange=Pi.prototype.zi,Pi.prototype.sort=Pi.prototype.sort,Pi.prototype.toSet=Pi.prototype.Iv,Pi.prototype.toArray=Pi.prototype.Fa,Pi.prototype.removeRange=Pi.prototype.removeRange,Pi.prototype.removeAt=Pi.prototype.mb,Pi.prototype.delete=Pi.prototype.delete,Pi.prototype.remove=Pi.prototype.remove,Pi.prototype.insertAt=Pi.prototype.Gb,Pi.prototype.pop=Pi.prototype.pop,Pi.prototype.last=Pi.prototype.jc,Pi.prototype.first=Pi.prototype.first,Pi.prototype.set=Pi.prototype.set,Pi.prototype.setElt=Pi.prototype.cd,Pi.prototype.get=Pi.prototype.get,Pi.prototype.elt=Pi.prototype.M,Pi.prototype.indexOf=Pi.prototype.indexOf,Pi.prototype.has=Pi.prototype.has,Pi.prototype.contains=Pi.prototype.contains,Pi.prototype.clear=Pi.prototype.clear,Pi.prototype.addAll=Pi.prototype.addAll,Pi.prototype.push=Pi.prototype.push,Pi.prototype.add=Pi.prototype.add,Pi.prototype.thaw=Pi.prototype.ka,Pi.prototype.freeze=Pi.prototype.freeze,Pi.className="List";function wo(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}wo.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},wo.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)},wo.prototype.Ad=function(){return this.next()},wo.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},wo.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},wo.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},wo.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},wo.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Pi;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},wo.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Pi;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},wo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},wo.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Oe.Object.defineProperties(wo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),wo.prototype.first=wo.prototype.first,wo.prototype.hasNext=wo.prototype.Ad,wo.prototype.next=wo.prototype.next,wo.prototype.reset=wo.prototype.reset,wo.className="SetIterator";function Ci(a){Xo(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&qe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Xt=Ci.prototype,Xt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Xt.freeze=function(){return this._isFrozen=!0,this},Xt.ka=function(){return this._isFrozen=!1,this},Xt.toString=function(){return"Set()#"+xs(this)},Xt.add=function(a){if(a===null)return this;this._isFrozen&&si(this,a);var y=a;return On(a)&&(y=ua(a)),this.Tb[y]===void 0&&(this.Sb++,a=new As(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},Xt.addAll=function(a){if(a===null)return this;if(this._isFrozen&&si(this),ui(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},Xt.contains=function(a){if(a===null)return!1;var y=a;return On(a)&&(y=xs(a),y===void 0)?!1:this.Tb[y]!==void 0},Xt.has=function(a){return this.contains(a)},Xt.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Xt.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Xt.first=function(){var a=this.ea;return a===null?null:a.value},Ci.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Ci.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Ci.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Ci.prototype.map=function(a){for(var y=new Ci,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Ci.prototype.filter=function(a){for(var y=new Ci,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},Xt=Ci.prototype,Xt.remove=function(a){if(a===null)return!1;this._isFrozen&&si(this,a);var y=a;if(On(a)&&(y=xs(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},Xt.delete=function(a){return this.remove(a)},Xt.hp=function(a){if(a===null)return this;if(this._isFrozen&&si(this),ui(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},Xt.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&si(this);var y=new Ci;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},Xt.clear=function(){this._isFrozen&&si(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Ci.prototype.copy=function(){var a=new Ci,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Ci.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},Ci.prototype.Hv=function(){var a=new Pi,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function Xo(a){a.__gohashid=da++}function ua(a){var y=a.__gohashid;return y===void 0&&(y=da++,a.__gohashid=y),y}function xs(a){return a.__gohashid}Oe.Object.defineProperties(Ci.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Ai;var a=this.Sa;return a!==null?(a.reset(),a):new wo(this)}}}),Ci.prototype.toList=Ci.prototype.Hv,Ci.prototype.toArray=Ci.prototype.Fa,Ci.prototype.clear=Ci.prototype.clear,Ci.prototype.retainAll=Ci.prototype.pA,Ci.prototype.removeAll=Ci.prototype.hp,Ci.prototype.delete=Ci.prototype.delete,Ci.prototype.remove=Ci.prototype.remove,Ci.prototype.first=Ci.prototype.first,Ci.prototype.containsAny=Ci.prototype.Ty,Ci.prototype.containsAll=Ci.prototype.Sy,Ci.prototype.has=Ci.prototype.has,Ci.prototype.contains=Ci.prototype.contains,Ci.prototype.addAll=Ci.prototype.addAll,Ci.prototype.add=Ci.prototype.add,Ci.prototype.thaw=Ci.prototype.ka,Ci.prototype.freeze=Ci.prototype.freeze;var da=1;Ci.className="Set",Ci.uniqueHash=Xo,Ci.hashIdUnique=ua,Ci.hashId=xs;function Js(a){this.ma=a,this.qa=a.Ja,this.sa=null}Js.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Js.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)},Js.prototype.Ad=function(){return this.next()},Js.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},Js.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},Js.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},Js.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},Js.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Pi;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Js.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Pi;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},Js.prototype.de=function(){this.value=this.key=null,this.qa=-1},Js.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Oe.Object.defineProperties(Js.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Js.prototype.first=Js.prototype.first,Js.prototype.hasNext=Js.prototype.Ad,Js.prototype.next=Js.prototype.next,Js.prototype.reset=Js.prototype.reset,Js.className="MapKeySetIterator";function Lo(a){Ci.call(this),Xo(this),this._isFrozen=!0,this.ma=a}Tn(Lo,Ci),Xt=Lo.prototype,Xt.freeze=function(){return this},Xt.ka=function(){return this},Xt.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Xt.add=function(){qe("This Set is read-only: "+this.toString())},Xt.contains=function(a){return this.ma.contains(a)},Xt.has=function(a){return this.contains(a)},Xt.remove=function(){qe("This Set is read-only: "+this.toString())},Xt.delete=function(a){return this.remove(a)},Xt.clear=function(){qe("This Set is read-only: "+this.toString())},Xt.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Lo.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Lo.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Lo.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Lo.prototype.map=function(a){for(var y=new Ci,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Lo.prototype.filter=function(a){for(var y=new Ci,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},Lo.prototype.copy=function(){return new Lo(this.ma)},Lo.prototype.Iv=function(){var a=new Ci,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Lo.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},Lo.prototype.Hv=function(){var a=new Pi,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Oe.Object.defineProperties(Lo.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Ai:new Js(this.ma)}}}),Lo.prototype.toList=Lo.prototype.Hv,Lo.prototype.toArray=Lo.prototype.Fa,Lo.prototype.toSet=Lo.prototype.Iv,Lo.prototype.first=Lo.prototype.first,Lo.prototype.clear=Lo.prototype.clear,Lo.prototype.delete=Lo.prototype.delete,Lo.prototype.remove=Lo.prototype.remove,Lo.prototype.has=Lo.prototype.has,Lo.prototype.contains=Lo.prototype.contains,Lo.prototype.add=Lo.prototype.add,Lo.prototype.thaw=Lo.prototype.ka,Lo.prototype.freeze=Lo.prototype.freeze,Lo.className="MapKeySet";function Do(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Do.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Do.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)},Do.prototype.Ad=function(){return this.next()},Do.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},Do.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},Do.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},Do.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},Do.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Pi;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Do.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Pi;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Do.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Do.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Oe.Object.defineProperties(Do.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Do.prototype.first=Do.prototype.first,Do.prototype.hasNext=Do.prototype.Ad,Do.prototype.next=Do.prototype.next,Do.prototype.reset=Do.prototype.reset,Do.className="MapValueSetIterator";function As(a,y){this.key=a,this.value=y,this.ll=this.va=null}As.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},As.className="KeyValuePair";function hs(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}hs.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},hs.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)},hs.prototype.Ad=function(){return this.next()},hs.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},hs.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},hs.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},hs.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},hs.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Pi;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},hs.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Pi;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},hs.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},hs.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Oe.Object.defineProperties(hs.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),hs.prototype.first=hs.prototype.first,hs.prototype.hasNext=hs.prototype.Ad,hs.prototype.next=hs.prototype.next,hs.prototype.reset=hs.prototype.reset,hs.className="MapIterator";function wr(a){Xo(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&qe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Xt=wr.prototype,Xt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Xt.freeze=function(){return this._isFrozen=!0,this},Xt.ka=function(){return this._isFrozen=!1,this},Xt.toString=function(){return"Map()#"+xs(this)},Xt.add=function(a,y){this._isFrozen&&si(this,a);var x=a;On(a)&&(x=ua(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new As(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},Xt.set=function(a,y){return this.add(a,y)},Xt.addAll=function(a){if(a===null)return this;if(ui(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 wr)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},Xt.first=function(){return this.ea},wr.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},wr.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},wr.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},wr.prototype.map=function(a){for(var y=new wr,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},wr.prototype.filter=function(a){for(var y=new wr,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Xt=wr.prototype,Xt.contains=function(a){var y=a;return On(a)&&(y=xs(a),y===void 0)?!1:this.Tb[y]!==void 0},Xt.has=function(a){return this.contains(a)},Xt.I=function(a){var y=a;return On(a)&&(y=xs(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Xt.get=function(a){return this.I(a)},Xt.remove=function(a){if(a===null)return!1;this._isFrozen&&si(this,a);var y=a;if(On(a)&&(y=xs(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},Xt.delete=function(a){return this.remove(a)},Xt.clear=function(){this._isFrozen&&si(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()},wr.prototype.copy=function(){var a=new wr,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},wr.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 As(E.key,E.value),x++}return y},wr.prototype.Lf=function(){return new Lo(this)},Oe.Object.defineProperties(wr.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Ai;var a=this.Sa;return a!==null?(a.reset(),a):new hs(this)}},iteratorKeys:{get:function(){return 0>=this.count?Ai:new Js(this)}},iteratorValues:{get:function(){if(0>=this.count)return Ai;var a=this.jf;return a!==null?(a.reset(),a):new Do(this)}}}),wr.prototype.toKeySet=wr.prototype.Lf,wr.prototype.toArray=wr.prototype.Fa,wr.prototype.clear=wr.prototype.clear,wr.prototype.delete=wr.prototype.delete,wr.prototype.remove=wr.prototype.remove,wr.prototype.get=wr.prototype.get,wr.prototype.getValue=wr.prototype.I,wr.prototype.has=wr.prototype.has,wr.prototype.contains=wr.prototype.contains,wr.prototype.first=wr.prototype.first,wr.prototype.addAll=wr.prototype.addAll,wr.prototype.set=wr.prototype.set,wr.prototype.add=wr.prototype.add,wr.prototype.thaw=wr.prototype.ka,wr.prototype.freeze=wr.prototype.freeze,wr.className="Map";function Ne(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):qe("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var ds,ia,ll,ul,Ml;Ne.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Ne.prototype.h=function(a,y){return this.x=a,this.y=y,this},Ne.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Ne.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Ne.prototype.copy=function(){var a=new Ne;return a.x=this.x,a.y=this.y,a},Xt=Ne.prototype,Xt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Xt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Xt.freeze=function(){return this._isFrozen=!0,this},Xt.ka=function(){return Object.isFrozen(this)&&qe("cannot thaw constant: "+this),this._isFrozen=!1,this};function ls(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 Ne(x,E)}return new Ne}function Go(a){return a.x.toString()+" "+a.y.toString()}Xt.toString=function(){return"Point("+this.x+","+this.y+")"},Xt.D=function(a){return a instanceof Ne?this.x===a.x&&this.y===a.y:!1},Xt.hi=function(a,y){return this.x===a&&this.y===y},Xt.Xa=function(a){return En.B(this.x,a.x)&&En.B(this.y,a.y)},Xt.add=function(a){return this.x+=a.x,this.y+=a.y,this},Xt.re=function(a){return this.x-=a.x,this.y-=a.y,this},Xt.offset=function(a,y){return this.x+=a,this.y+=y,this},Ne.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},Xt=Ne.prototype,Xt.scale=function(a,y){return this.x*=a,this.y*=y,this},Xt.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Xt.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Xt.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},Xt.ab=function(a){return Ns(a.x-this.x,a.y-this.y)},Xt.direction=function(a,y){return Ns(a-this.x,y-this.y)};function Ns(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}Xt.Ry=function(a,y){return En.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Xt.fA=function(a,y,x,b){return En.qh(a,y,x,b,this.x,this.y,this),this},Xt.gA=function(a,y){return En.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Xt.uA=function(a,y,x,b){return En.No(this.x,this.y,a,y,x,b,this),this},Xt.vA=function(a,y){return En.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Xt.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},Xt.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},Xt.transform=function(a){return a.Ga(this),this};function Wo(a,y){return y.Cd(a),a}function Gs(a,y,x,b,E,z){var nt=E-x,ot=z-b,at=nt*nt+ot*ot;x-=a,b-=y;var ut=-x*nt-b*ot;return 0>=ut||ut>=at?(nt=E-a,ot=z-y,Math.min(x*x+b*b,nt*nt+ot*ot)):(a=nt*b-ot*x,a*a/at)}function wl(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function ho(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)}Xt.w=function(){return isFinite(this.x)&&isFinite(this.y)},Ne.alloc=function(){var a=mo.pop();return a===void 0?new Ne:a},Ne.allocAt=function(a,y){var x=mo.pop();return x===void 0?new Ne(a,y):(x.x=a,x.y=y,x)},Ne.free=function(a){mo.push(a)},Ne.prototype.isReal=Ne.prototype.w,Ne.prototype.setSpot=Ne.prototype.yi,Ne.prototype.setRectSpot=Ne.prototype.xi,Ne.prototype.snapToGridPoint=Ne.prototype.vA,Ne.prototype.snapToGrid=Ne.prototype.uA,Ne.prototype.projectOntoLineSegmentPoint=Ne.prototype.gA,Ne.prototype.projectOntoLineSegment=Ne.prototype.fA,Ne.intersectingLineSegments=function(a,y,x,b,E,z,nt,ot){return En.Rl(a,y,x,b,E,z,nt,ot)},Ne.prototype.compareWithLineSegmentPoint=Ne.prototype.Ry,Ne.compareWithLineSegment=function(a,y,x,b,E,z){return En.Fl(a,y,x,b,E,z)},Ne.prototype.direction=Ne.prototype.direction,Ne.prototype.directionPoint=Ne.prototype.ab,Ne.prototype.normalize=Ne.prototype.normalize,Ne.prototype.distanceSquared=Ne.prototype.zd,Ne.prototype.distanceSquaredPoint=Ne.prototype.Bf,Ne.prototype.scale=Ne.prototype.scale,Ne.prototype.rotate=Ne.prototype.rotate,Ne.prototype.offset=Ne.prototype.offset,Ne.prototype.subtract=Ne.prototype.re,Ne.prototype.add=Ne.prototype.add,Ne.prototype.equalsApprox=Ne.prototype.Xa,Ne.prototype.equalTo=Ne.prototype.hi,Ne.prototype.equals=Ne.prototype.D,Ne.prototype.set=Ne.prototype.set,Ne.prototype.setTo=Ne.prototype.sg;var mo=[];Ne.className="Point",Ne.parse=ls,Ne.stringify=Go,Ne.distanceLineSegmentSquared=Gs,Ne.distanceSquared=wl,Ne.direction=ho,Ne.Origin=ds=new Ne(0,0).ja(),Ne.InfiniteTopLeft=ia=new Ne(-1/0,-1/0).ja(),Ne.InfiniteBottomRight=ll=new Ne(1/0,1/0).ja(),Ne.SixPoint=ul=new Ne(6,6).ja(),Ne.NoPoint=Ml=new Ne(NaN,NaN).ja(),Ne.parse=ls,Ne.stringify=Go,Ne.distanceLineSegmentSquared=Gs,Ne.distanceSquared=wl,Ne.direction=ho;function Vi(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):qe("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Po,Bs,ha,sa,Ro,Ws,Na;Vi.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Vi.prototype.h=function(a,y){return this.width=a,this.height=y,this},Vi.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Vi.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Vi.prototype.copy=function(){var a=new Vi;return a.width=this.width,a.height=this.height,a},Xt=Vi.prototype,Xt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Xt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Xt.freeze=function(){return this._isFrozen=!0,this},Xt.ka=function(){return Object.isFrozen(this)&&qe("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ol(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 Vi(x,E)}return new Vi}function Va(a){return a.width.toString()+" "+a.height.toString()}Xt.toString=function(){return"Size("+this.width+","+this.height+")"},Xt.D=function(a){return a instanceof Vi?this.width===a.width&&this.height===a.height:!1},Xt.hi=function(a,y){return this.width===a&&this.height===y},Xt.Xa=function(a){return En.B(this.width,a.width)&&En.B(this.height,a.height)},Xt.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},Xt.w=function(){return isFinite(this.width)&&isFinite(this.height)},Vi.alloc=function(){var a=bs.pop();return a===void 0?new Vi:a},Vi.free=function(a){bs.push(a)},Vi.prototype.isReal=Vi.prototype.w,Vi.prototype.inflate=Vi.prototype.Bc,Vi.prototype.equalsApprox=Vi.prototype.Xa,Vi.prototype.equalTo=Vi.prototype.hi,Vi.prototype.equals=Vi.prototype.D,Vi.prototype.set=Vi.prototype.set,Vi.prototype.setTo=Vi.prototype.sg;var bs=[];Vi.className="Size",Vi.parse=Ol,Vi.stringify=Va,Vi.ZeroSize=Po=new Vi(0,0).ja(),Vi.OneSize=Bs=new Vi(1,1).ja(),Vi.SixSize=ha=new Vi(6,6).ja(),Vi.EightSize=sa=new Vi(8,8).ja(),Vi.TenSize=Ro=new Vi(10,10).ja(),Vi.InfiniteSize=Ws=new Vi(1/0,1/0).ja(),Vi.NoSize=Na=new Vi(NaN,NaN).ja(),Vi.parse=Ol,Vi.stringify=Va;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 Ne?(x=a.x,a=a.y,y instanceof Ne?(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 Vi?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):qe("Incorrect second argument supplied to Rect constructor "+y)):qe("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Xt=ai.prototype,Xt.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Xt.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function Ia(a,y,x){a.width=y,a.height=x}Xt.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},Xt.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Xt.dd=function(a){return this.x=a.x,this.y=a.y,this},Xt.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},Xt=ai.prototype,Xt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Xt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Xt.freeze=function(){return this._isFrozen=!0,this},Xt.ka=function(){return Object.isFrozen(this)&&qe("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ac(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 du(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Xt.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Xt.D=function(a){return a instanceof ai?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Xt.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},Xt.Xa=function(a){return En.B(this.x,a.x)&&En.B(this.y,a.y)&&En.B(this.width,a.width)&&En.B(this.height,a.height)};function Hh(a,y){return En.$(a.x,y.x)&&En.$(a.y,y.y)&&En.$(a.width,y.width)&&En.$(a.height,y.height)}Xt.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Xt.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},Xt.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},Xt.offset=function(a,y){return this.x+=a,this.y+=y,this},Xt.Bc=function(a,y){return Zr(this,y,a,y,a)},Xt.Co=function(a){return Zr(this,a.top,a.right,a.bottom,a.left)},Xt.Fv=function(a){return Zr(this,-a.top,-a.right,-a.bottom,-a.left)},Xt.Hz=function(a,y,x,b){return Zr(this,a,y,x,b)};function Zr(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}Xt.Ex=function(a){return zs(this,a.x,a.y,a.width,a.height)},Xt.Uu=function(a,y,x,b){return zs(this,a,y,x,b)};function zs(a,y,x,b,E){var z=Math.max(a.x,y),nt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+b),x=Math.min(a.y+a.height,x+E),a.x=z,a.y=nt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-nt),a}Xt.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Xt.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 Is(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))}Xt.Ye=function(a){return Es(this,a.x,a.y,0,0)},Xt.ed=function(a){return Es(this,a.x,a.y,a.width,a.height)},Xt.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),Es(this,a,y,x,b)};function Es(a,y,x,b,E){var z=Math.min(a.x,y),nt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+b),x=Math.max(a.y+a.height,x+E),a.x=z,a.y=nt,a.width=y-z,a.height=x-nt,a}Xt.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 Ks(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 Au(a,y,x,b,E,z,nt,ot){return a>nt+E||E>x+a?!1:!(y>ot+z||z>b+y)}Xt.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Xt.Mz=function(){return this.width===0&&this.height===0},ai.alloc=function(){var a=ws.pop();return a===void 0?new ai:a},ai.allocAt=function(a,y,x,b){var E=ws.pop();return E===void 0?new ai(a,y,x,b):E.h(a,y,x,b)},ai.free=function(a){ws.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 Ne(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Vi(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Ne(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 En.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 Jo=null,Qs=null,ws=[];ai.className="Rect",ai.parse=Ac,ai.stringify=du,ai.contains=Ks,ai.intersects=Au,ai.ZeroRect=Jo=new ai(0,0,0,0).ja(),ai.NoRect=Qs=new ai(NaN,NaN,NaN,NaN).ja(),ai.parse=Ac,ai.stringify=du,ai.contains=Ks,ai.intersects=Au;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):qe("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},Xt=Hr.prototype,Xt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Xt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Xt.freeze=function(){return this._isFrozen=!0,this},Xt.ka=function(){return Object.isFrozen(this)&&qe("cannot thaw constant: "+this),this._isFrozen=!1,this};function hl(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 js(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Xt.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Xt.D=function(a){return a instanceof Hr?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Xt.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},Xt.Xa=function(a){return En.B(this.top,a.top)&&En.B(this.right,a.right)&&En.B(this.bottom,a.bottom)&&En.B(this.left,a.left)},Xt.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Hr.alloc=function(){var a=Xl.pop();return a===void 0?new Hr:a},Hr.free=function(a){Xl.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 Su=null,zu=null,Xl=[];Hr.className="Margin",Hr.parse=hl,Hr.stringify=js,Hr.ZeroMargin=Su=new Hr(0,0,0,0).ja(),Hr.TwoMargin=zu=new Hr(2,2,2,2).ja(),Hr.parse=hl,Hr.stringify=js;function fr(a,y,x,b){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),b===void 0&&(b=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=b),this._isFrozen=!1}var Za,rl,El,ou,Ya,bo,ja,Ja,su,$l,Pu,bu,fu,eu,Qo,Hd,Eu,yd,Nh,ec,ol,xh,Qd,Oc,Dc,Ls,ya,ju,qa,sl,za,Aa,tl,Dl,fc,ch;fr.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},fr.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},fr.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},fr.prototype.copy=function(){var a=new fr;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Xt=fr.prototype,Xt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Xt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Xt.freeze=function(){return this._isFrozen=!0,this},Xt.ka=function(){return Object.isFrozen(this)&&qe("cannot thaw constant: "+this),this._isFrozen=!1,this};function cl(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function zd(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Za;if(a==="TopLeft")return rl;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return El;if(a==="TopRight")return ou;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Ya;if(a==="Center")return bo;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return ja;if(a==="BottomLeft")return Ja;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return su;if(a==="BottomRight")return $l;if(a==="TopSide")return Pu;if(a==="LeftSide")return bu;if(a==="RightSide")return fu;if(a==="BottomSide")return eu;if(a==="TopBottomSides")return Qo;if(a==="LeftRightSides")return Hd;if(a==="TopLeftSides")return Eu;if(a==="TopRightSides")return yd;if(a==="BottomLeftSides")return Nh;if(a==="BottomRightSides")return ec;if(a==="NotTopSide")return ol;if(a==="NotLeftSide")return xh;if(a==="NotRightSide")return Qd;if(a==="NotBottomSide")return Oc;if(a==="AllSides")return Dc;if(a==="Default")return Ls;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0<b.length&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(z=parseFloat(b));for(var nt=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(nt=parseFloat(b)),new fr(x,E,z,nt)}return new fr}function td(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Xt.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(Za)?"None":this.D(rl)?"TopLeft":this.D(El)?"Top":this.D(ou)?"TopRight":this.D(Ya)?"Left":this.D(bo)?"Center":this.D(ja)?"Right":this.D(Ja)?"BottomLeft":this.D(su)?"Bottom":this.D($l)?"BottomRight":this.D(Pu)?"TopSide":this.D(bu)?"LeftSide":this.D(fu)?"RightSide":this.D(eu)?"BottomSide":this.D(Qo)?"TopBottomSides":this.D(Hd)?"LeftRightSides":this.D(Eu)?"TopLeftSides":this.D(yd)?"TopRightSides":this.D(Nh)?"BottomLeftSides":this.D(ec)?"BottomRightSides":this.D(ol)?"NotTopSide":this.D(xh)?"NotLeftSide":this.D(Qd)?"NotRightSide":this.D(Oc)?"NotBottomSide":this.D(Dc)?"AllSides":this.D(Ls)?"Default":"None"},Xt.D=function(a){return a instanceof fr?(this.x===a.x||isNaN(this.x)&&isNaN(a.x))&&(this.y===a.y||isNaN(this.y)&&isNaN(a.y))&&this.offsetX===a.offsetX&&this.offsetY===a.offsetY:!1},Xt.gv=function(){return new fr(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Xt.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(ya))a=bu;else if(a.D(ju))a=fu;else if(a.D(qa))a=Pu;else if(a.D(sl))a=eu;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Xt.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Xt.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Xt.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Xt.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Xt.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},fr.alloc=function(){var a=Sh.pop();return a===void 0?new fr:a},fr.free=function(a){Sh.push(a)},fr.prototype.isDefault=fr.prototype.Xb,fr.prototype.isNone=fr.prototype.ys,fr.prototype.isSide=fr.prototype.$c,fr.prototype.isNoSpot=fr.prototype.Mc,fr.prototype.isSpot=fr.prototype.sb,fr.prototype.includesSide=fr.prototype.Hf,fr.prototype.opposite=fr.prototype.gv,fr.prototype.equals=fr.prototype.D,fr.prototype.set=fr.prototype.set,fr.prototype.setTo=fr.prototype.sg;var Sh=[];fr.className="Spot",fr.parse=zd,fr.stringify=td,fr.None=Za=cl(new fr(0,0,0,0),0).ja(),fr.Default=Ls=cl(new fr(0,0,-1,0),-1).ja(),fr.TopLeft=rl=new fr(0,0,0,0).ja(),fr.TopCenter=El=new fr(.5,0,0,0).ja(),fr.TopRight=ou=new fr(1,0,0,0).ja(),fr.LeftCenter=Ya=new fr(0,.5,0,0).ja(),fr.Center=bo=new fr(.5,.5,0,0).ja(),fr.RightCenter=ja=new fr(1,.5,0,0).ja(),fr.BottomLeft=Ja=new fr(0,1,0,0).ja(),fr.BottomCenter=su=new fr(.5,1,0,0).ja(),fr.BottomRight=$l=new fr(1,1,0,0).ja(),fr.MiddleTop=za=El,fr.MiddleLeft=Aa=Ya,fr.MiddleRight=tl=ja,fr.MiddleBottom=Dl=su,fr.Top=qa=El,fr.Left=ya=Ya,fr.Right=ju=ja,fr.Bottom=sl=su,fr.TopSide=Pu=cl(new fr(0,0,1,1),1).ja(),fr.LeftSide=bu=cl(new fr(0,0,1,2),1).ja(),fr.RightSide=fu=cl(new fr(0,0,1,4),1).ja(),fr.BottomSide=eu=cl(new fr(0,0,1,8),1).ja(),fr.TopBottomSides=Qo=cl(new fr(0,0,1,9),1).ja(),fr.LeftRightSides=Hd=cl(new fr(0,0,1,6),1).ja(),fr.TopLeftSides=Eu=cl(new fr(0,0,1,3),1).ja(),fr.TopRightSides=yd=cl(new fr(0,0,1,5),1).ja(),fr.BottomLeftSides=Nh=cl(new fr(0,0,1,10),1).ja(),fr.BottomRightSides=ec=cl(new fr(0,0,1,12),1).ja(),fr.NotTopSide=ol=cl(new fr(0,0,1,14),1).ja(),fr.NotLeftSide=xh=cl(new fr(0,0,1,13),1).ja(),fr.NotRightSide=Qd=cl(new fr(0,0,1,11),1).ja(),fr.NotBottomSide=Oc=cl(new fr(0,0,1,7),1).ja(),fr.AllSides=Dc=cl(new fr(0,0,1,15),1).ja(),fc=new fr(.156,.156).ja(),ch=new fr(.844,.844).ja(),fr.parse=zd,fr.stringify=td;function Ho(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Ho.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},Ho.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},Ho.prototype.copy=function(){var a=new Ho;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},Ho.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Ho.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},Ho.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Ho.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Ho.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},Ho.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},Ho.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},Ho.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},Xt=Ho.prototype,Xt.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Xt.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Xt.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)},Xt.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))},Xt.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))},Xt.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,z=this.m11,nt=this.m12,ot=this.m21,at=this.m22,ut=this.dx,ct=this.dy,yt=y*z+x*ot+ut,kt=y*nt+x*at+ct,zt=b*z+x*ot+ut,Zt=b*nt+x*at+ct;return x=y*z+E*ot+ut,y=y*nt+E*at+ct,z=b*z+E*ot+ut,b=b*nt+E*at+ct,E=Math.min(yt,zt),yt=Math.max(yt,zt),zt=Math.min(kt,Zt),kt=Math.max(kt,Zt),E=Math.min(E,x),yt=Math.max(yt,x),zt=Math.min(zt,y),kt=Math.max(kt,y),E=Math.min(E,z),yt=Math.max(yt,z),zt=Math.min(zt,b),kt=Math.max(kt,b),a.h(E,zt,yt-E,kt-zt),a},Ho.alloc=function(){var a=sA.pop();return a===void 0?new Ho:a},Ho.free=function(a){sA.push(a)},Ho.prototype.transformRect=Ho.prototype.pp,Ho.prototype.transformPoint=Ho.prototype.Ga,Ho.prototype.scale=Ho.prototype.scale,Ho.prototype.translate=Ho.prototype.translate,Ho.prototype.rotate=Ho.prototype.rotate,Ho.prototype.invert=Ho.prototype.Vj,Ho.prototype.multiplyInverted=Ho.prototype.bv,Ho.prototype.multiply=Ho.prototype.multiply,Ho.prototype.reset=Ho.prototype.reset,Ho.prototype.isIdentity=Ho.prototype.ws,Ho.prototype.equals=Ho.prototype.D,Ho.prototype.setTransform=Ho.prototype.setTransform,Ho.prototype.set=Ho.prototype.set;var sA=[];Ho.className="Transform",Ho.xF="54a702f3e53909c447824c6706603faf4c";var En={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=En.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);En.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5<a},$:function(a,y){return a-=y,5e-8>a&&-5e-8<a},Yb:function(a,y,x,b,E,z,nt){if(0>=E&&(E=1e-6),a<x)var ot=a,at=x;else ot=x,at=a;if(y<b)var ut=y,ct=b;else ut=b,ct=y;if(a===x)return ut<=nt&&nt<=ct&&a-E<=z&&z<=a+E;if(y===b)return ot<=z&&z<=at&&y-E<=nt&&nt<=y+E;if(at+=E,ot-=E,ot<=z&&z<=at&&(ct+=E,ut-=E,ut<=nt&&nt<=ct))if(at-ot>ct-ut)if(a-x>E||x-a>E){if(z=(b-y)/(x-a)*(z-a)+y,z-E<=nt&&nt<=z+E)return!0}else return!0;else if(y-b>E||b-y>E){if(nt=(x-a)/(b-y)*(nt-y)+a,nt-E<=z&&z<=nt+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,z,nt,ot,at,ut,ct,yt){if(En.Yb(a,y,nt,ot,yt,x,b)&&En.Yb(a,y,nt,ot,yt,E,z))return En.Yb(a,y,nt,ot,yt,ut,ct);var kt=(a+x)/2,zt=(y+b)/2,Zt=(x+E)/2,he=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(kt+Zt)/2,x=(zt+he)/2,Zt=(Zt+E)/2,he=(he+z)/2;var He=(b+Zt)/2,Fe=(x+he)/2;return En.cs(a,y,kt,zt,b,x,He,Fe,at,ut,ct,yt)||En.cs(He,Fe,Zt,he,E,z,nt,ot,at,ut,ct,yt)},ax:function(a,y,x,b,E,z,nt,ot,at){var ut=(x+E)/2,ct=(b+z)/2;return at.h((((a+x)/2+ut)/2+(ut+(E+nt)/2)/2)/2,(((y+b)/2+ct)/2+(ct+(z+ot)/2)/2)/2),at},My:function(a,y,x,b,E,z,nt,ot){var at=(x+E)/2,ut=(b+z)/2;return ho(((a+x)/2+at)/2,((y+b)/2+ut)/2,(at+(E+nt)/2)/2,(ut+(z+ot)/2)/2)},Dl:function(a,y,x,b,E,z,nt,ot,at,ut){if(En.Yb(a,y,nt,ot,at,x,b)&&En.Yb(a,y,nt,ot,at,E,z))Es(ut,a,y,0,0),Es(ut,nt,ot,0,0);else{var ct=(a+x)/2,yt=(y+b)/2,kt=(x+E)/2,zt=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(ct+kt)/2,x=(yt+zt)/2,kt=(kt+E)/2,zt=(zt+z)/2;var Zt=(b+kt)/2,he=(x+zt)/2;En.Dl(a,y,ct,yt,b,x,Zt,he,at,ut),En.Dl(Zt,he,kt,zt,E,z,nt,ot,at,ut)}return ut},Qe:function(a,y,x,b,E,z,nt,ot,at,ut){if(En.Yb(a,y,nt,ot,at,x,b)&&En.Yb(a,y,nt,ot,at,E,z))ut.length===0&&(ut.push(a),ut.push(y)),ut.push(nt),ut.push(ot);else{var ct=(a+x)/2,yt=(y+b)/2,kt=(x+E)/2,zt=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(ct+kt)/2,x=(yt+zt)/2,kt=(kt+E)/2,zt=(zt+z)/2;var Zt=(b+kt)/2,he=(x+zt)/2;En.Qe(a,y,ct,yt,b,x,Zt,he,at,ut),En.Qe(Zt,he,kt,zt,E,z,nt,ot,at,ut)}return ut},jv:function(a,y,x,b,E,z,nt,ot,at,ut){if(En.Yb(a,y,E,z,ut,x,b))return En.Yb(a,y,E,z,ut,ot,at);var ct=(a+x)/2,yt=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var kt=(ct+x)/2,zt=(yt+b)/2;return En.jv(a,y,ct,yt,kt,zt,nt,ot,at,ut)||En.jv(kt,zt,x,b,E,z,nt,ot,at,ut)},OA:function(a,y,x,b,E,z,nt){return nt.h(((a+x)/2+(x+E)/2)/2,((y+b)/2+(b+z)/2)/2),nt},iv:function(a,y,x,b,E,z,nt,ot){if(En.Yb(a,y,E,z,nt,x,b))Es(ot,a,y,0,0),Es(ot,E,z,0,0);else{var at=(a+x)/2,ut=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ct=(at+x)/2,yt=(ut+b)/2;En.iv(a,y,at,ut,ct,yt,nt,ot),En.iv(ct,yt,x,b,E,z,nt,ot)}return ot},ep:function(a,y,x,b,E,z,nt,ot){if(En.Yb(a,y,E,z,nt,x,b))ot.length===0&&(ot.push(a),ot.push(y)),ot.push(E),ot.push(z);else{var at=(a+x)/2,ut=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ct=(at+x)/2,yt=(ut+b)/2;En.ep(a,y,at,ut,ct,yt,nt,ot),En.ep(ct,yt,x,b,E,z,nt,ot)}return ot},Eo:function(a,y,x,b,E,z,nt,ot,at,ut,ct,yt,kt,zt){if(En.Yb(a,y,nt,ot,kt,x,b)&&En.Yb(a,y,nt,ot,kt,E,z))return!En.Rl(a,y,nt,ot,at,ut,ct,yt)||(kt=(a-nt)*(ut-yt)-(y-ot)*(at-ct),kt===0)?!1:(zt.h(((a*ot-y*nt)*(at-ct)-(a-nt)*(at*yt-ut*ct))/kt,((a*ot-y*nt)*(ut-yt)-(y-ot)*(at*yt-ut*ct))/kt),!0);var Zt=(a+x)/2,he=(y+b)/2,He=(x+E)/2,Fe=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(Zt+He)/2,x=(he+Fe)/2,He=(He+E)/2,Fe=(Fe+z)/2;var Ve=(b+He)/2,tn=(x+Fe)/2,on=1/0,Sn=!1,Gn=0,nr=0;return En.Eo(a,y,Zt,he,b,x,Ve,tn,at,ut,ct,yt,kt,zt)&&(a=(zt.x-at)*(zt.x-at)+(zt.y-ut)*(zt.y-ut),a<on&&(on=a,Sn=!0,Gn=zt.x,nr=zt.y)),En.Eo(Ve,tn,He,Fe,E,z,nt,ot,at,ut,ct,yt,kt,zt)&&(zt.x-at)*(zt.x-at)+(zt.y-ut)*(zt.y-ut)<on&&(Sn=!0,Gn=zt.x,nr=zt.y),Sn&&(zt.x=Gn,zt.y=nr),Sn},Fo:function(a,y,x,b,E,z,nt,ot,at,ut,ct,yt,kt){var zt=0;if(En.Yb(a,y,nt,ot,kt,x,b)&&En.Yb(a,y,nt,ot,kt,E,z)){if(kt=(a-nt)*(ut-yt)-(y-ot)*(at-ct),kt===0)return zt;var Zt=((a*ot-y*nt)*(at-ct)-(a-nt)*(at*yt-ut*ct))/kt,he=((a*ot-y*nt)*(ut-yt)-(y-ot)*(at*yt-ut*ct))/kt;if(Zt>=ct)return zt;if((at>ct?at-ct:ct-at)<(ut>yt?ut-yt:yt-ut)){if(y<ot?(at=y,a=ot):(at=ot,a=y),he<at||he>a)return zt}else if(a<nt?(at=a,a=nt):at=nt,Zt<at||Zt>a)return zt;0<kt?zt++:0>kt&&zt--}else{Zt=(a+x)/2,he=(y+b)/2;var He=(x+E)/2,Fe=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(Zt+He)/2,x=(he+Fe)/2,He=(He+E)/2,Fe=(Fe+z)/2;var Ve=(b+He)/2,tn=(x+Fe)/2;zt+=En.Fo(a,y,Zt,he,b,x,Ve,tn,at,ut,ct,yt,kt),zt+=En.Fo(Ve,tn,He,Fe,E,z,nt,ot,at,ut,ct,yt,kt)}return zt},qh:function(a,y,x,b,E,z,nt){return En.$(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)):En.$(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 En.B(a,x)&&En.B(y,b)?(at.h(a,y),!1):En.$(E,nt)?En.$(a,x)?(En.qh(a,y,x,b,E,z,at),!1):En.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,at):(ot=(ot-z)/(nt-E),En.$(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),En.$(ot,nt)?(En.qh(a,y,x,b,E,z,at),!1):(E=(nt*a-ot*E+z-y)/(nt-ot),En.$(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)):En.qh(a,y,x,b,E,nt*(E-a)+y,at))))},MA:function(a,y,x,b,E){return En.Ve(x.x,x.y,b.x,b.y,a.x,a.y,y.x,y.y,E)},KA:function(a,y,x,b,E,z,nt,ot,at,ut){function ct(He,Fe){var Ve=(He-a)*(He-a)+(Fe-y)*(Fe-y);Ve<yt&&(yt=Ve,at.h(He,Fe))}var yt=1/0;ct(at.x,at.y);var kt=0,zt=0,Zt=0,he=0;if(E<nt?(kt=E,zt=nt):(kt=nt,zt=E),z<ot?(Zt=E,he=nt):(Zt=nt,he=E),kt=(zt-kt)/2+ut,ut=(he-Zt)/2+ut,E=(E+nt)/2,z=(z+ot)/2,kt===0||ut===0)return at;if(.5>(x>a?x-a:a-x)){if(kt=1-(x-E)*(x-E)/(kt*kt),0>kt)return at;kt=Math.sqrt(kt),b=-ut*kt+z,ct(x,ut*kt+z),ct(x,b)}else{if(x=(b-y)/(x-a),b=1/(kt*kt)+x*x/(ut*ut),ot=2*x*(y-x*a)/(ut*ut)-2*x*z/(ut*ut)-2*E/(kt*kt),kt=ot*ot-4*b*(2*x*a*z/(ut*ut)-2*y*z/(ut*ut)+z*z/(ut*ut)+E*E/(kt*kt)-1+(y-x*a)*(y-x*a)/(ut*ut)),0>kt)return at;kt=Math.sqrt(kt),ut=(-ot+kt)/(2*b),ct(ut,x*ut-x*a+y),kt=(-ot-kt)/(2*b),ct(kt,x*kt-x*a+y)}return at},Ff:function(a,y,x,b,E,z,nt,ot,at){var ut=1e21,ct=a,yt=y;if(En.Ve(a,y,a,b,E,z,nt,ot,at)){var kt=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z);kt<ut&&(ut=kt,ct=at.x,yt=at.y)}return En.Ve(x,y,x,b,E,z,nt,ot,at)&&(kt=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),kt<ut&&(ut=kt,ct=at.x,yt=at.y)),En.Ve(a,y,x,y,E,z,nt,ot,at)&&(y=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),y<ut&&(ut=y,ct=at.x,yt=at.y)),En.Ve(a,b,x,b,E,z,nt,ot,at)&&(a=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),a<ut&&(ut=a,ct=at.x,yt=at.y)),at.h(ct,yt),1e21>ut},us:function(a,y,x){return En.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,E,z,nt,ot){var at=a+x,ut=y+b;return E===nt?(z<ot?(nt=z,z=ot):nt=ot,a<=E&&E<=at&&nt<=ut&&z>=y):z===ot?(E<nt?(ot=E,E=nt):ot=nt,y<=z&&z<=ut&&ot<=at&&E>=a):!!(Ks(a,y,x,b,E,z)||Ks(a,y,x,b,nt,ot)||En.Rl(a,y,at,y,E,z,nt,ot)||En.Rl(at,y,at,ut,E,z,nt,ot)||En.Rl(at,ut,a,ut,E,z,nt,ot)||En.Rl(a,ut,a,y,E,z,nt,ot))},Rl:function(a,y,x,b,E,z,nt,ot){return a===x&&y===b&&E===nt&&z===ot?a===E&&y===z:0>=En.Fl(a,y,x,b,E,z)*En.Fl(a,y,x,b,nt,ot)&&0>=En.Fl(E,z,nt,ot,a,y)*En.Fl(E,z,nt,ot,x,b)},Fl:function(a,y,x,b,E,z){return x-=a,b-=y,a=E-a,y=z-y,z=a*b-y*x,z===0&&(z=a*x+y*b,0<z&&(z=(a-x)*x+(y-b)*b,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,E,z){var nt=Math.PI;z||(b*=nt/180,E*=nt/180);var ot=b>E?-1:1;z=[];var at=nt/2,ut=b;if(b=Math.min(2*nt,Math.abs(E-b)),1e-5>b)return at=ut+ot*Math.min(b,at),ot=a+x*Math.cos(ut),ut=y+x*Math.sin(ut),a+=x*Math.cos(at),y+=x*Math.sin(at),x=(ot+a)/2,at=(ut+y)/2,z.push([ot,ut,x,at,x,at,a,y]),z;for(;1e-5<b;)E=ut+ot*Math.min(b,at),z.push(En.Vy(x,ut,E,a,y)),b-=Math.abs(E-ut),ut=E;return z},Vy:function(a,y,x,b,E){var z=(x-y)/2,nt=a*Math.cos(z),ot=a*Math.sin(z),at=-ot,ut=nt*nt+at*at,ct=ut+nt*nt+at*ot;return ut=4/3*(Math.sqrt(2*ut*ct)-ct)/(nt*ot-at*nt),ot=nt-ut*at,nt=at+ut*nt,at=-nt,ut=z+y,z=Math.cos(ut),ut=Math.sin(ut),[b+a*Math.cos(y),E+a*Math.sin(y),b+ot*z-nt*ut,E+ot*ut+nt*z,b+ot*z-at*ut,E+ot*ut+at*z,b+a*Math.cos(x),E+a*Math.sin(x)]},No:function(a,y,x,b,E,z,nt){x=Math.floor((a-x)/E)*E+x,b=Math.floor((y-b)/z)*z+b;var ot=x;return x+E-a<E/2&&(ot=x+E),a=b,b+z-y<z/2&&(a=b+z),nt.h(ot,a),nt},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var b;do y=x%a,x=b=a,a=y;while(0<y);return b},$y:function(a,y,x,b){var E=0>x,z=0>b;if(a<y)var nt=1,ot=0;else nt=0,ot=1;var at=nt===0?a:y,ut=nt===0?x:b;return(nt===0?E:z)&&(ut=-ut),nt=ot,x=nt===0?x:b,(nt===0?E:z)&&(x=-x),En.az(at,nt===0?a:y,ut,x,0,0)},az:function(a,y,x,b,E,z){if(0<b)if(0<x){E=a*a,z=y*y,a*=x;var nt=y*b,ot=-z+nt,at=-z+Math.sqrt(a*a+nt*nt);y=ot;for(var ut=0;9999999999>ut&&(y=.5*(ot+at),!(y===ot||y===at));++ut){var ct=a/(y+E),yt=nt/(y+z);if(ct=ct*ct+yt*yt-1,0<ct)ot=y;else if(0>ct)at=y;else break}x=E*x/(y+E)-x,b=z*b/(y+z)-b,x=Math.sqrt(x*x+b*b)}else x=Math.abs(b-y);else b=a*a-y*y,z=a*x,z<b?(b=z/b,z=y*Math.sqrt(Math.abs(1-b*b)),x=a*b-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new so,um:new so,Mf:new so,Nf:0,vm:100};En.za=En.AA;function Wi(a){Xo(this),this.l=2,a===void 0&&(a=Wi.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Wi.o?this.ee=new Pi:(Wi.V===null&&(Wi.V=new Pi().freeze()),this.ee=Wi.V),this.aq=this.ee.Ja,this.Ip=new ai().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=rl,this.gg=$l,this.Rk=this.Sk=NaN,this.Uf=ki}Wi.prototype.copy=function(){var a=new Wi;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===Wi.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},Wi.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Wi.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Wi.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},Wi.prototype.ka=function(){if(Object.isFrozen(this)&&qe("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Wi.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},Wi.prototype.Xa=function(a){if(!(a instanceof Wi))return!1;if(this.type!==a.type)return this.type===Wi.j&&a.type===Wi.o?aA(this,a):a.type===Wi.j&&this.type===Wi.o?aA(a,this):!1;if(this.type===Wi.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 En.B(this.startX,a.startX)&&En.B(this.startY,a.startY)&&En.B(this.endX,a.endX)&&En.B(this.endY,a.endY)};function aA(a,y){return a.type!==Wi.j||y.type!==Wi.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&En.B(a.startX,y.startX)&&En.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===ra&&En.B(a.endX,y.endX)&&En.B(a.endY,y.endY))))}Wi.ia=function(a){return a.toString()},Wi.prototype.qb=function(a){a.classType===Wi&&(this.type=a)},Wi.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Wi.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 Wi.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 Wi.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 Wi.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()}},Wi.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},Wi.parse=function(a,y){function x(){return he>=on-1?!0:ut[he+1].match(Sn)!==null}function b(){return he++,ut[he]}function E(Eo){var po=parseFloat(b()),Ts=parseFloat(b());He===He.toLowerCase()&&(po=tn.x+po,Ts=tn.y+Ts),Eo.h(po,Ts)}function z(){return E(tn),tn}function nt(){return E(Ve),Ve}function ot(){var Eo=Fe.toLowerCase();return Eo!=="c"&&Eo!=="s"&&Eo!=="q"&&Eo!=="t"?tn:new Ne(2*tn.x-Ve.x,2*tn.y-Ve.y)}y===void 0&&(y=!1);var at=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(at,"$1 $2"),a=a.replace(at,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var ut=a.split(" ");for(a=0;a<ut.length;a++){var ct=ut[a];if(ct.match(/(\.[0-9]*)(\.)/gm)!==null){at=or();for(var yt="",kt=!1,zt=0;zt<ct.length;zt++){var Zt=ct[zt];Zt!=="."||kt?Zt==="."?(at.push(yt),yt="."):yt+=Zt:(kt=!0,yt+=Zt)}for(at.push(yt),ut.splice(a,1),ct=0;ct<at.length;ct++)ut.splice(a+ct,0,at[ct]);a+=at.length-1,Lr(at)}}var he=-1,He="",Fe="";at=new Ne(0,0);var Ve=new Ne(0,0),tn=new Ne(0,0),on=ut.length;a=jy(null),kt=yt=ct=!1,zt=!0,Zt=null;for(var Sn=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(he>=on-1);)if(Fe=He,He=b(),He!=="")switch(He.toUpperCase()){case"X":zt=!0,yt=ct=!1;break;case"M":for(Zt=z(),a.mc===null||zt===!0?(Op(a,Zt.x,Zt.y,ct,!yt,kt),zt=!1):a.moveTo(Zt.x,Zt.y),at.assign(tn);!x();)Zt=z(),a.lineTo(Zt.x,Zt.y);break;case"L":for(;!x();)Zt=z(),a.lineTo(Zt.x,Zt.y);break;case"H":for(;!x();)tn=new Ne((He===He.toLowerCase()?tn.x:0)+parseFloat(b()),tn.y),a.lineTo(tn.x,tn.y);break;case"V":for(;!x();)tn=new Ne(tn.x,(He===He.toLowerCase()?tn.y:0)+parseFloat(b())),a.lineTo(tn.x,tn.y);break;case"C":for(;!x();){Zt=new Ne,E(Zt);var Gn=nt(),nr=z();Pf(a,Zt.x,Zt.y,Gn.x,Gn.y,nr.x,nr.y)}break;case"S":for(;!x();)Zt=ot(),Gn=nt(),nr=z(),Pf(a,Zt.x,Zt.y,Gn.x,Gn.y,nr.x,nr.y);break;case"Q":for(;!x();)Zt=nt(),Gn=z(),r0(a,Zt.x,Zt.y,Gn.x,Gn.y);break;case"T":for(;!x();)Ve=Zt=ot(),Gn=z(),r0(a,Zt.x,Zt.y,Gn.x,Gn.y);break;case"B":for(;!x();){Zt=parseFloat(b()),Gn=parseFloat(b()),nr=parseFloat(b());var Fr=parseFloat(b()),vr=parseFloat(b()),Ki=vr,Mi=!1;x()||(Ki=parseFloat(b()),x()||(Mi=parseFloat(b())!==0)),He===He.toLowerCase()&&(nr+=tn.x,Fr+=tn.y),a.arcTo(Zt,Gn,nr,Fr,vr,Ki,Mi)}break;case"A":for(;!x();)Zt=Math.abs(parseFloat(b())),Gn=Math.abs(parseFloat(b())),nr=parseFloat(b()),vr=Fr=!1,Mi=Ki=0,Ki=b(),Ki.length===1?(Fr=!!parseFloat(Ki),vr=!!parseFloat(b()),Ki=parseFloat(b())):Ki.length===2?(Fr=!!parseFloat(Ki[0]),vr=!!parseFloat(Ki[1]),Ki=parseFloat(b())):(Fr=!!parseFloat(Ki[0]),vr=!!parseFloat(Ki[1]),Ki=parseFloat(Ki.slice(2))),Mi=parseFloat(b()),He===He.toLowerCase()&&(Ki=tn.x+Ki,Mi=tn.y+Mi),tn.h(Ki,Mi),Lw(a,Zt,Gn,nr,Fr,vr,Ki,Mi);break;case"Z":Fw(a),tn.assign(at);break;case"F":for(Zt="",Gn=1;ut[he+Gn];)if(ut[he+Gn]==="0")kt=!0,Gn++;else if(ut[he+Gn].match(/[Uu]/)!==null)Gn++;else if(ut[he+Gn].match(Sn)===null)Gn++;else{Zt=ut[he+Gn];break}Zt.match(/[Mm]/)?ct=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Zt="",Gn=1;ut[he+Gn];)if(ut[he+Gn].match(/[Ff]/)!==null)Gn++;else if(ut[he+Gn].match(Sn)===null)Gn++;else{Zt=ut[he+Gn];break}Zt.match(/[Mm]/)?yt=!0:a.mc.isShadowed=!1}if(at=a.os,o0=a,y)for(y=at.figures.iterator;y.next();)y.value.isFilled=!0;return at},Wi.Ha=function(a,y){for(var x=a.length,b=Ne.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}Ne.free(b)},Wi.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Wi.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},Wi.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Wi.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),nc(this,a,!1),Es(a,0,0,0,0),a.freeze()},Wi.prototype.ix=function(){var a=new ai;return nc(this,a,!0),a};function nc(a,y,x){switch(a.type){case Wi.j:case Wi.u:case Wi.F:x?y.h(a.od,a.pd,0,0):Es(y,a.od,a.pd,0,0),Es(y,a.Dc,a.Ec,0,0);break;case Wi.o:var b=a.figures;a=b.s,b=b.length;for(var E=0;E<b;E++){var z=a[E];x&&E===0?y.h(z.startX,z.startY,0,0):Es(y,z.startX,z.startY,0,0);for(var nt=z.segments.s,ot=nt.length,at=z.startX,ut=z.startY,ct=0;ct<ot;ct++){var yt=nt[ct];switch(yt.type){case ra:case Fl:at=yt.endX,ut=yt.endY,Es(y,at,ut,0,0);break;case gu:En.Dl(at,ut,yt.point1X,yt.point1Y,yt.point2X,yt.point2Y,yt.endX,yt.endY,.5,y),at=yt.endX,ut=yt.endY;break;case Bh:En.iv(at,ut,yt.point1X,yt.point1Y,yt.endX,yt.endY,.5,y),at=yt.endX,ut=yt.endY;break;case xl:case Qh:var kt=yt.type===xl?rh(yt,z):Zu(yt,z,at,ut),zt=kt.length;if(zt===0){at=yt.type===xl?yt.centerX:yt.endX,ut=yt.type===xl?yt.centerY:yt.endY,Es(y,at,ut,0,0);break}yt=null;for(var Zt=0;Zt<zt;Zt++)yt=kt[Zt],En.Dl(yt[0],yt[1],yt[2],yt[3],yt[4],yt[5],yt[6],yt[7],.5,y);yt!==null&&(at=yt[6],ut=yt[7]);break;default:qe("Unknown Segment type: "+yt.type)}}}break;default:qe("Unknown Geometry type: "+a.type)}}Wi.prototype.normalize=function(){this._isFrozen&&si(this);var a=this.ix();return this.offset(-a.x,-a.y),new Ne(-a.x,-a.y)},Wi.prototype.offset=function(a,y){return this._isFrozen&&si(this),this.transform(1,0,0,1,a,y),this},Wi.prototype.scale=function(a,y){return this._isFrozen&&si(this),this.transform(a,0,0,y,0,0),this},Wi.prototype.rotate=function(a,y,x){this._isFrozen&&si(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=Ho.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),Ho.free(b),this},Xt=Wi.prototype,Xt.transform=function(a,y,x,b,E,z){switch(this.type){case Wi.j:case Wi.u:case Wi.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 Wi.o:for(var at=this.figures.s,ut=at.length,ct=0;ct<ut;ct++){var yt=at[ct];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 kt=yt.length,zt=0;zt<kt;zt++){var Zt=yt[zt];switch(Zt.type){case ra:case Fl:nt=Zt.endX,ot=Zt.endY,Zt.endX=nt*a+ot*x+E,Zt.endY=nt*y+ot*b+z;break;case gu:nt=Zt.point1X,ot=Zt.point1Y,Zt.point1X=nt*a+ot*x+E,Zt.point1Y=nt*y+ot*b+z,nt=Zt.point2X,ot=Zt.point2Y,Zt.point2X=nt*a+ot*x+E,Zt.point2Y=nt*y+ot*b+z,nt=Zt.endX,ot=Zt.endY,Zt.endX=nt*a+ot*x+E,Zt.endY=nt*y+ot*b+z;break;case Bh:nt=Zt.point1X,ot=Zt.point1Y,Zt.point1X=nt*a+ot*x+E,Zt.point1Y=nt*y+ot*b+z,nt=Zt.endX,ot=Zt.endY,Zt.endX=nt*a+ot*x+E,Zt.endY=nt*y+ot*b+z;break;case xl:nt=Zt.centerX,ot=Zt.centerY,Zt.centerX=nt*a+ot*x+E,Zt.centerY=nt*y+ot*b+z,y!==0&&(nt=180*Math.atan2(y,a)/Math.PI,0>nt&&(nt+=360),Zt.startAngle+=nt),0>a&&(Zt.startAngle=180-Zt.startAngle,Zt.sweepAngle=-Zt.sweepAngle),0>b&&(Zt.startAngle=-Zt.startAngle,Zt.sweepAngle=-Zt.sweepAngle),Zt.radiusX*=Math.sqrt(a*a+x*x),Zt.radiusY!==void 0&&(Zt.radiusY*=Math.sqrt(y*y+b*b));break;case Qh:if(nt=Zt.endX,ot=Zt.endY,Zt.endX=nt*a+ot*x+E,Zt.endY=nt*y+ot*b+z,Zt.radiusX===0||Zt.radiusY===0)break;y!==0&&(nt=180*Math.atan2(y,a)/Math.PI,0>nt&&(nt+=360),Zt.xAxisRotation+=nt),0>a&&(Zt.xAxisRotation=180-Zt.xAxisRotation,Zt.isClockwiseArc=!Zt.isClockwiseArc),0>b&&(Zt.xAxisRotation=-Zt.xAxisRotation,Zt.isClockwiseArc=!Zt.isClockwiseArc),Zt.radiusX*=Math.sqrt(a*a+x*x),Zt.radiusY*=Math.sqrt(y*y+b*b);break;default:qe("Unknown Segment type: "+Zt.type)}}}}return this._isInvalidBounds=!0,this},Xt.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 Wi.j:return En.Yb(x,b,E,z,y,a.x,a.y);case Wi.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 Wi.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 Wi.o:return Ku(this,a,y,!0,!1);default:return!1}};function Ku(a,y,x,b,E){var z=y.x;y=y.y;for(var nt=a.bounds.x-20,ot=0,at,ut,ct,yt,kt=a.figures.s,zt=kt.length,Zt=0;Zt<zt;Zt++){var he=kt[Zt],He=!he.isEvenOdd;if(he.isFilled){if(b&&he.ca(z,y,x))return!0;var Fe=he.segments;at=he.startX,ut=he.startY;for(var Ve=at,tn=ut,on=Fe.s,Sn=0;Sn<=Fe.length;Sn++){var Gn=void 0;if(Sn!==Fe.length){Gn=on[Sn];var nr=Gn.type;a=Gn.endX,yt=Gn.endY}else nr=ra,a=Ve,yt=tn;switch(nr){case Fl:if(Ve=Gu(z,y,nt,y,at,ut,Ve,tn),isNaN(Ve))return!0;ot+=Ve,Ve=a,tn=yt;break;case ra:if(at=Gu(z,y,nt,y,at,ut,a,yt),isNaN(at))return!0;ot+=at;break;case gu:ct=En.Fo(at,ut,Gn.point1X,Gn.point1Y,Gn.point2X,Gn.point2Y,a,yt,nt,y,z,y,.5),ot+=ct;break;case Bh:ct=En.Fo(at,ut,(at+2*Gn.point1X)/3,(ut+2*Gn.point1Y)/3,(2*Gn.point1X+a)/3,(2*Gn.point1Y+yt)/3,a,yt,nt,y,z,y,.5),ot+=ct;break;case xl:case Qh:nr=Gn.type===xl?rh(Gn,he):Zu(Gn,he,at,ut);var Fr=nr.length;if(Fr===0){if(at=Gu(z,y,nt,y,at,ut,Gn.type===xl?Gn.centerX:Gn.endX,Gn.type===xl?Gn.centerY:Gn.endY),isNaN(at))return!0;ot+=at;break}Gn=null;for(var vr=0;vr<Fr;vr++){if(Gn=nr[vr],vr===0){if(ct=Gu(z,y,nt,y,at,ut,Gn[0],Gn[1]),isNaN(ct))return!0;ot+=ct}ct=En.Fo(Gn[0],Gn[1],Gn[2],Gn[3],Gn[4],Gn[5],Gn[6],Gn[7],nt,y,z,y,.5),ot+=ct}Gn!==null&&(a=Gn[6],yt=Gn[7]);break;default:qe("Unknown Segment type: "+Gn.type)}at=a,ut=yt}if(He){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 Gu(a,y,x,b,E,z,nt,ot){if(En.Yb(E,z,nt,ot,.05,a,y))return NaN;var at=(a-x)*(z-ot);if(at===0)return 0;var ut=((a*b-y*x)*(E-nt)-(a-x)*(E*ot-z*nt))/at;if(y=(a*b-y*x)*(z-ot)/at,ut>=a)return 0;if((E>nt?E-nt:nt-E)<(z>ot?z-ot:ot-z)){if(z<ot){if(y<z||y>ot)return 0}else if(y<ot||y>z)return 0}else if(E<nt){if(ut<E||ut>nt)return 0}else if(ut<nt||ut>E)return 0;return 0<at?1:-1}function Ch(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}Xt.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Ne),this.type===Wi.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,nt=0,ot=0;ot<E;ot++){var at=b[ot],ut=at.length;for(a=0;a<ut;a++){var ct=at[a];if(nt+ct>=z)return b=z-nt,b=ct===0?0:b/ct,x=x[ot],ot=x[2*a],E=x[2*a+1],y.h(ot+(x[2*a+2]-ot)*b,E+(x[2*a+3]-E)*b),y;nt+=ct}}return y},Xt.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Wi.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,b=y.length,E=this.flattenedTotalLength*a,z=0,nt=0;nt<b;nt++){var ot=x[nt],at=ot.length;for(a=0;a<at;a++){var ut=ot[a];if(z+ut>=E)return E=y[nt],y=E[2*a],x=E[2*a+1],b=E[2*a+2],a=E[2*a+3],1>Math.abs(b-y)&&1>Math.abs(a-x)?0:1>Math.abs(b-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=b-y?0:180:180*Math.atan2(a-x,b-y)/Math.PI;z+=ut}}return NaN},Xt.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Wi.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,nt=0,ot=0;ot<E;ot++){var at=b[ot],ut=at.length;for(a=0;a<ut;a++){var ct=at[a];if(nt+ct>=z)return b=z-nt,b=ct===0?0:b/ct,ct=x[ot],x=ct[2*a],ot=ct[2*a+1],E=ct[2*a+2],a=ct[2*a+3],y[0]=x+(E-x)*b,y[1]=ot+(a-ot)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-ot)?0:1>Math.abs(E-x)?0<=a-ot?90:270:1>Math.abs(a-ot)?0<=E-x?0:180:180*Math.atan2(a-ot,E-x)/Math.PI,y;nt+=ct}}return y},Xt.xx=function(a){if(this.type===Wi.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=Ne.alloc();return En.qh(y,x,b,E,z,a,ot),a=ot.x,z=ot.y,Ne.free(ot),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/nt)}}else if(this.type===Wi.u){nt=this.startX,ot=this.startY;var at=this.endX;if(E=this.endY,nt!==at||ot!==E){y=at-nt,x=E-ot,z=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,nt),at),a=Math.min(Math.max(a,ot),E),nt=Math.abs(b-nt),at=Math.abs(b-at),ot=Math.abs(a-ot),E=Math.abs(a-E);var ut=Math.min(nt,at,ot,E);if(ut===ot)return b/z;if(ut===at)return(y+a)/z;if(ut===E)return(2*y+x-b)/z;if(ut===nt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,b=Ne.alloc(),E=1/0,ot=nt=0,at=y.length;for(var ct=ut=0,yt=0;yt<at;yt++)for(var kt=y[yt],zt=x[yt],Zt=kt.length,he=0;he<Zt;he+=2){var He=kt[he],Fe=kt[he+1];if(he!==0){En.qh(ut,ct,He,Fe,a.x,a.y,b);var Ve=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);Ve<E&&(E=Ve,nt=ot,nt+=Math.sqrt((b.x-ut)*(b.x-ut)+(b.y-ct)*(b.y-ct))),ot+=zt[(he-2)/2]}ut=He,ct=Fe}return Ne.free(b),a=nt/z,0>a?0:1<a?1:a}return 0};function zA(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===Wi.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===Wi.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===Wi.F){var z=new el;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var nt=new ms(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=rh(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];En.Qe(nt,z,at[2],at[3],at[4],at[5],at[6],at[7],.5,b),nt=at[6],z=at[7]}}y.push(b),x.push(ed(b))}else for(a=a.figures.iterator;a.next();){E=a.value,b=[],b.push(E.startX),b.push(E.startY),nt=E.startX,z=E.startY,ot=nt,at=z;for(var ut=E.segments.s,ct=ut.length,yt=0;yt<ct;yt++){var kt=ut[yt];switch(kt.type){case Fl:4<=b.length&&(y.push(b),x.push(ed(b))),b=[],b.push(kt.endX),b.push(kt.endY),nt=kt.endX,z=kt.endY,ot=nt,at=z;break;case ra:b.push(kt.endX),b.push(kt.endY),nt=kt.endX,z=kt.endY;break;case gu:En.Qe(nt,z,kt.point1X,kt.point1Y,kt.point2X,kt.point2Y,kt.endX,kt.endY,.5,b),nt=kt.endX,z=kt.endY;break;case Bh:En.ep(nt,z,kt.point1X,kt.point1Y,kt.endX,kt.endY,.5,b),nt=kt.endX,z=kt.endY;break;case xl:var zt=rh(kt,E),Zt=zt.length;if(Zt===0){b.push(kt.centerX),b.push(kt.centerY),nt=kt.centerX,z=kt.centerY;break}for(var he=0;he<Zt;he++){var He=zt[he];En.Qe(nt,z,He[2],He[3],He[4],He[5],He[6],He[7],.5,b),nt=He[6],z=He[7]}break;case Qh:if(zt=Zu(kt,E,nt,z),Zt=zt.length,he=kt.endX,He=kt.endY,Zt===0){b.push(he),b.push(He),nt=he,z=He;break}for(he=0;he<Zt;he++)He=zt[he],En.Qe(nt,z,He[2],He[3],He[4],He[5],He[6],He[7],.5,b),nt=He[6],z=He[7];break;default:qe("Segment not of valid type: "+kt.type)}kt.isClosed&&(b.push(ot),b.push(at))}4<=b.length&&(y.push(b),x.push(ed(b)))}}}function ed(a){for(var y=[],x=0,b=0,E=a.length,z=0;z<E;z+=2){var nt=a[z],ot=a[z+1];z!==0&&y.push(Math.sqrt(wl(x,b,nt,ot))),x=nt,b=ot}return y}Xt.add=function(a){return this.ee.add(a),this},Xt.pm=function(a,y,x,b,E,z,nt,ot){return this._isFrozen&&si(this),this.fg=new fr(a,y,E,z).freeze(),this.gg=new fr(x,b,nt,ot).freeze(),this},Oe.Object.defineProperties(Wi.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return zA(this),this.tk}},flattenedLengths:{get:function(){return zA(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Wi.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===Wi.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&&si(this,a),this.na=a,a===Wi.o?this.ee=new Pi:(Wi.V===null&&(Wi.V=new Pi().freeze()),this.ee=Wi.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&si(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&si(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&si(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&si(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&si(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&si(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&si(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&si(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Wi.prototype.setSpots=Wi.prototype.pm,Wi.prototype.add=Wi.prototype.add,Wi.prototype.getFractionForPoint=Wi.prototype.xx,Wi.prototype.getPointAndAngleAlongPath=Wi.prototype.Qu,Wi.prototype.getAngleAlongPath=Wi.prototype.wx,Wi.prototype.getPointAlongPath=Wi.prototype.Pu,Wi.prototype.containsPoint=Wi.prototype.ca,Wi.prototype.transform=Wi.prototype.transform,Wi.prototype.rotate=Wi.prototype.rotate,Wi.prototype.scale=Wi.prototype.scale,Wi.prototype.offset=Wi.prototype.offset,Wi.prototype.normalize=Wi.prototype.normalize,Wi.prototype.computeBoundsWithoutOrigin=Wi.prototype.ix,Wi.prototype.equalsApprox=Wi.prototype.Xa,Wi.className="Geometry",Wi.j=new vi(Wi,"Line",0),Wi.u=new vi(Wi,"Rectangle",1),Wi.F=new vi(Wi,"Ellipse",2),Wi.o=new vi(Wi,"Path",3),Wi.V=null,Wi.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Wi.className="Geometry",Wi.stringify=Wi.ia,Wi.fillPath=Wi.nb,Wi.parse=Wi.parse,Wi.Line=Wi.j,Wi.Rectangle=Wi.u,Wi.Ellipse=Wi.F,Wi.Path=Wi.o;function el(a,y,x,b,E){Xo(this),x===void 0&&(x=!0),b===void 0&&(b=!0),E===void 0&&(E=!1),this.l=2|(x?4:0)|(b?8:0)|(E?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new Pi,this.sr=this.pl.Ja,this.fw=null}el.prototype.copy=function(){var a=new el;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},Xt=el.prototype,Xt.Xa=function(a){if(!(a instanceof el&&En.B(this.startX,a.startX)&&En.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},Xt.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},Xt.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},Xt.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},Xt.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},Xt.add=function(a){return this.pl.add(a),this},Xt.ca=function(a,y,x){for(var b=this.startX,E=this.startY,z=b,nt=E,ot=this.segments.s,at=ot.length,ut=0;ut<at;ut++){var ct=ot[ut];switch(ct.type){case Fl:z=ct.endX,nt=ct.endY,b=ct.endX,E=ct.endY;break;case ra:if(En.Yb(b,E,ct.endX,ct.endY,x,a,y))return!0;b=ct.endX,E=ct.endY;break;case gu:if(En.cs(b,E,ct.point1X,ct.point1Y,ct.point2X,ct.point2Y,ct.endX,ct.endY,.5,a,y,x))return!0;b=ct.endX,E=ct.endY;break;case Bh:if(En.jv(b,E,ct.point1X,ct.point1Y,ct.endX,ct.endY,.5,a,y,x))return!0;b=ct.endX,E=ct.endY;break;case xl:case Qh:var yt=ct.type===xl?rh(ct,this):Zu(ct,this,b,E),kt=yt.length,zt=ct.type===xl?ct.centerX:ct.endX,Zt=ct.type===xl?ct.centerY:ct.endY;if(kt===0){if(En.Yb(b,E,zt,Zt,x,a,y))return!0;b=zt,E=Zt;break}for(zt=null,Zt=0;Zt<kt;Zt++)if(zt=yt[Zt],Zt===0&&En.Yb(b,E,zt[0],zt[1],x,a,y)||En.cs(zt[0],zt[1],zt[2],zt[3],zt[4],zt[5],zt[6],zt[7],.5,a,y,x))return!0;zt!==null&&(b=zt[6],E=zt[7]);break;default:qe("Unknown Segment type: "+ct.type)}if(ct.isClosed&&(b!==z||E!==nt)&&En.Yb(b,E,z,nt,x,a,y))return!0}return!1},Oe.Object.defineProperties(el.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&&si(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&si(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&si(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&si(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&si(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&si(this,a),this.pl=a,this._isInvalidBounds=!0}}}),el.prototype.add=el.prototype.add,el.prototype.equalsApprox=el.prototype.Xa,el.className="PathFigure";function ms(a,y,x,b,E,z,nt,ot){Xo(this),a===void 0&&(a=ra),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,b===void 0&&(b=0),E===void 0&&(E=0),z===void 0&&(z=0),nt===void 0&&(nt=0),a===Qh?(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}ms.prototype.copy=function(){var a=new ms;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},Xt=ms.prototype,Xt.Xa=function(a){if(!(a instanceof ms)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case Fl:case ra:return En.B(this.endX,a.endX)&&En.B(this.endY,a.endY);case gu:return En.B(this.endX,a.endX)&&En.B(this.endY,a.endY)&&En.B(this.point1X,a.point1X)&&En.B(this.point1Y,a.point1Y)&&En.B(this.point2X,a.point2X)&&En.B(this.point2Y,a.point2Y);case Bh:return En.B(this.endX,a.endX)&&En.B(this.endY,a.endY)&&En.B(this.point1X,a.point1X)&&En.B(this.point1Y,a.point1Y);case xl:return En.B(this.startAngle,a.startAngle)&&En.B(this.sweepAngle,a.sweepAngle)&&En.B(this.centerX,a.centerX)&&En.B(this.centerY,a.centerY)&&En.B(this.radiusX,a.radiusX)&&En.B(this.radiusY,a.radiusY);case Qh:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&En.B(this.xAxisRotation,a.xAxisRotation)&&En.B(this.endX,a.endX)&&En.B(this.endY,a.endY)&&En.B(this.radiusX,a.radiusX)&&En.B(this.radiusY,a.radiusY);default:return!1}},Xt.qb=function(a){a.classType===ms&&(this.type=a)},Xt.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Fl:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ra:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case gu:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Bh:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case xl:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case Qh: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":"")},Xt.freeze=function(){return this._isFrozen=!0,this},Xt.ka=function(){return this._isFrozen=!1,this},Xt.close=function(){return this.isClosed=!0,this};function rh(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=En.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var nt=Ho.alloc();nt.reset(),x<b?nt.scale(1,b/x):nt.scale(x/b,1),Wi.Ha(z,nt),Ho.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 Zu(a,y,x,b){function E(he,He,Fe,Ve){return(he*Ve<He*Fe?-1:1)*Math.acos((he*Fe+He*Ve)/(Math.sqrt(he*he+He*He)*Math.sqrt(Fe*Fe+Ve*Ve)))}if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;if(a.radiusX===0||a.radiusY===0)return a.ae=[],a.ae;y=a.Wh;var z=a.Pg;y===0&&(y=1e-4),z===0&&(z=1e-4);var nt=Math.PI/180*a.Ne,ot=a.isLargeArc,at=a.isClockwiseArc,ut=a.Dc,ct=a.Ec,yt=Math.cos(nt),kt=Math.sin(nt),zt=yt*(x-ut)/2+kt*(b-ct)/2;nt=-kt*(x-ut)/2+yt*(b-ct)/2;var Zt=zt*zt/(y*y)+nt*nt/(z*z);return 1<Zt&&(y*=Math.sqrt(Zt),z*=Math.sqrt(Zt)),Zt=(ot===at?-1:1)*Math.sqrt((y*y*z*z-y*y*nt*nt-z*z*zt*zt)/(y*y*nt*nt+z*z*zt*zt)),isNaN(Zt)&&(Zt=0),ot=Zt*y*nt/z,Zt=Zt*-z*zt/y,isNaN(ot)&&(ot=0),isNaN(Zt)&&(Zt=0),x=(x+ut)/2+yt*ot-kt*Zt,b=(b+ct)/2+kt*ot+yt*Zt,ct=E(1,0,(zt-ot)/y,(nt-Zt)/z),yt=(zt-ot)/y,ut=(nt-Zt)/z,zt=(-zt-ot)/y,ot=(-nt-Zt)/z,nt=E(yt,ut,zt,ot),zt=(yt*zt+ut*ot)/(Math.sqrt(yt*yt+ut*ut)*Math.sqrt(zt*zt+ot*ot)),-1>=zt?nt=Math.PI:1<=zt&&(nt=0),!at&&0<nt&&(nt-=2*Math.PI),at&&0>nt&&(nt+=2*Math.PI),at=y>z?1:y/z,zt=y>z?z/y:1,y=En.jx(0,0,y>z?y:z,ct,ct+nt,!0),z=Ho.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(at,zt),Wi.Ha(y,z),Ho.free(z),a.ae=y,a.ae}Oe.Object.defineProperties(ms.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&&si(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&si(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&si(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&si(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&si(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&si(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&si(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&si(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&si(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Ei(a,">= zero",ms,"radiusX"),this._isFrozen&&si(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Ei(a,">= zero",ms,"radiusY"),this._isFrozen&&si(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&si(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&&si(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&&si(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&&si(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&&si(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),ms.prototype.equalsApprox=ms.prototype.Xa;var Fl=new vi(ms,"Move",0),ra=new vi(ms,"Line",1),gu=new vi(ms,"Bezier",2),Bh=new vi(ms,"QuadraticBezier",3),xl=new vi(ms,"Arc",4),Qh=new vi(ms,"SvgArc",4);ms.className="PathSegment",ms.Move=Fl,ms.Line=ra,ms.Bezier=gu,ms.QuadraticBezier=Bh,ms.Arc=xl,ms.SvgArc=Qh;function Cu(){this.H=null,this.xu=new Ne(0,0).freeze(),this.mt=new Ne(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}Cu.prototype.copy=function(){var a=new Cu;return this.clone(a)},Cu.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},Cu.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},Cu.prototype.So=function(a,y){var x=this.diagram;return x===null||Bd(x,a,y),y},Cu.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Bd(x,a,y),y.assign(x.Ps(y))),y},Oe.Object.defineProperties(Cu.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),Cu.prototype.getMultiTouchDocumentPoint=Cu.prototype.Bz,Cu.prototype.getMultiTouchViewPoint=Cu.prototype.So,Cu.className="InputEvent";function wd(){this.H=null,this.xa="",this.ar=this.Lr=null}wd.prototype.copy=function(){var a=new wd;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},wd.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Oe.Object.defineProperties(wd.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),wd.className="DiagramEvent";function Ea(){this.Fm=Fa,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Ea.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Ea.prototype.copy=function(){var a=new Ea;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=On(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=On(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=On(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=On(y)&&typeof y.J=="function"?y.J():y,a},Ea.prototype.qb=function(a){a.classType===Ea&&(this.change=a)},Ea.prototype.toString=function(){var a="";return a=this.change===oh?a+"* ":this.change===Fa?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===oh?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Pr(this.object)),this.oldValue!==null&&(a+=" old: "+Pr(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Pr(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Ea.prototype.I=function(a){return a?this.oldValue:this.newValue},Ea.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Ea.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Ea.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Ea.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Ea.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Oe.Object.defineProperties(Ea.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===oh&&(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}}}),Ea.prototype.redo=Ea.prototype.redo,Ea.prototype.canRedo=Ea.prototype.canRedo,Ea.prototype.undo=Ea.prototype.undo,Ea.prototype.canUndo=Ea.prototype.canUndo,Ea.prototype.getParam=Ea.prototype.Dz,Ea.prototype.getValue=Ea.prototype.I,Ea.prototype.clear=Ea.prototype.clear;var oh=new vi(Ea,"Transaction",-1),Fa=new vi(Ea,"Property",0),gl=new vi(Ea,"Insert",1),Hl=new vi(Ea,"Remove",2);Ea.className="ChangedEvent",Ea.Transaction=oh,Ea.Property=Fa,Ea.Insert=gl,Ea.Remove=Hl;function Yl(){this.o=new Pi().freeze(),this.xa="",this.j=!1}Yl.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},Yl.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()},Yl.prototype.canUndo=function(){return this.isComplete},Yl.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()}},Yl.prototype.canRedo=function(){return this.isComplete},Yl.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()}},Yl.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new wr,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===Fa&&b.object){var E=y.get(b.object);E||(E=new wr,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(Yl.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}}}),Yl.prototype.optimize=Yl.prototype.ak,Yl.prototype.redo=Yl.prototype.redo,Yl.prototype.canRedo=Yl.prototype.canRedo,Yl.prototype.undo=Yl.prototype.undo,Yl.prototype.canUndo=Yl.prototype.canUndo,Yl.prototype.clear=Yl.prototype.clear,Yl.className="Transaction";function Et(){this.Pt=new Ci,this.Jd=!1,this.u=new Pi().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Pi().freeze(),this.hl=new Pi,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Et.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},Et.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},Et.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Xt=Et.prototype,Xt.Xw=function(a){this.Pt.add(a)},Xt.Rx=function(a){this.Pt.remove(a)},Xt.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},Xt.eb=function(a){return a===void 0&&(a=""),wt(this,!0,a)},Xt.Kf=function(){return wt(this,!1,"")};function wt(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&tr("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}Xt.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()}},Et.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Et.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){tr("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Et.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Et.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){tr("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Et.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new Ea;for(b.change=oh,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},Et.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Yl);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||tr("Change not within a transaction: "+x.toString()))}},Et.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(Et.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}}}),Et.prototype.handleChanged=Et.prototype.Tu,Et.prototype.redo=Et.prototype.redo,Et.prototype.undo=Et.prototype.undo,Et.prototype.canUndo=Et.prototype.canUndo,Et.prototype.discardHistoryAfterIndex=Et.prototype.lx,Et.prototype.rollbackTransaction=Et.prototype.Kf,Et.prototype.commitTransaction=Et.prototype.eb,Et.prototype.startTransaction=Et.prototype.Ea,Et.prototype.removeModel=Et.prototype.Rx,Et.prototype.addModel=Et.prototype.Xw,Et.prototype.clear=Et.prototype.clear,Et.className="UndoManager";function bt(){Xo(this),this.H=kh,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Cu,this.Zr=-1}bt.prototype.toString=function(){return this.name!==""?this.name+" Tool":er(this.constructor)},bt.prototype.updateAdornments=function(){},bt.prototype.canStart=function(){return this.isEnabled},bt.prototype.doStart=function(){},bt.prototype.doActivate=function(){this.isActive=!0},bt.prototype.doDeactivate=function(){this.isActive=!1},bt.prototype.doStop=function(){},bt.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},bt.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},bt.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},bt.prototype.doMouseMove=function(){},bt.prototype.doMouseUp=function(){this.stopTool()},bt.prototype.doMouseWheel=function(){},bt.prototype.canStartMultiTouch=function(){return!0},bt.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Ne.allocAt(NaN,NaN)),b=y.So(1,Ne.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}Ne.free(x),Ne.free(b)},bt.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Ne.allocAt(NaN,NaN)),b=y.So(1,Ne.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 Ne((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}Ne.free(x),Ne.free(b)},bt.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},bt.prototype.doKeyUp=function(){},bt.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},bt.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},bt.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(ys?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||(ys?y.meta:y.control)||y.shift||a.clearSelection()}},bt.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,Ht(a,b,x),b.handled};function Ht(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)}}}bt.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}},bt.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},bt.prototype.doCurrentObjectChanged=function(){},bt.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===we&&!y.shift||E===ge&&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===we&&y.shift||E===ge&&!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)}}},bt.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},bt.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=Si(function(){x.doWaitAfter(b)},a)},bt.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Le.clearTimeout(this.Zr),this.Zr=-1},bt.prototype.doWaitAfter=function(){},bt.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Ms);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},bt.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(bt.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof _n&&(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}}}),bt.prototype.startTransaction=bt.prototype.Ea,bt.className="Tool";function ie(){bt.call(this),this.name="ToolManager",this.hb=new Pi,this.ob=new Pi,this.Hb=new Pi,this.F=this.V=850,this.o=new Vi(2,2).ja(),this.Ha=5e3,this.ia=ge,this.u=$e,this.Mp=this.j=null,this.zj=-1}Tn(ie,bt),ie.prototype.initializeStandardTools=function(){},ie.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Ms&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},ie.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===dn&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===fn){y.bubbles=!0;return}if(this.gestureBehavior===dn)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===ge?this.mouseWheelBehavior=we:this.mouseWheelBehavior===we&&(this.mouseWheelBehavior=ge)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},ie.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===fn){y.bubbles=!0;return}if(this.gestureBehavior===dn)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}}Yt(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Yt(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}ie.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Ms&&(y===a||y.rg(a))||this.hideToolTip()},ie.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()))},ie.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)},ie.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 Ms)||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()},ie.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Ms){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 pr&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Le.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=Si(function(){E.hideToolTip()},a)}},ie.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}},ie.prototype.hideToolTip=function(){this.zj!==-1&&(Le.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Ms?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof pr&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},ie.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()},ie.prototype.doMouseWheel=function(){this.standardMouseWheel()},ie.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},ie.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},ie.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},ie.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},ie.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(ie.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 Ms?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}}}),ie.prototype.replaceStandardTool=ie.prototype.gb;var ge=new vi(ie,"WheelScroll",0),we=new vi(ie,"WheelZoom",1),be=new vi(ie,"WheelNone",2),$e=new vi(ie,"GestureZoom",3),dn=new vi(ie,"GestureCancel",4),fn=new vi(ie,"GestureNone",5);ie.className="ToolManager",ie.WheelScroll=ge,ie.WheelZoom=we,ie.WheelNone=be,ie.GestureZoom=$e,ie.GestureCancel=dn,ie.GestureNone=fn;function Pn(){bt.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 Ne(NaN,NaN),this.Fr=new Ne,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Ci().freeze(),this.ia=new st,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Ke;Tn(Pn,bt),Pn.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},Pn.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},Pn.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,(ys?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Pn.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),Je=null,this.isActive=!0,this.tl.set(a.position),mi(this,a.selection),this.Cg.length=0,a.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(a.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,a.Ns=!0,a.Gf("temporaryPixelRatio")===!0&&30<a.$w&&Lu(a),oc(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Je=this,vn=this.diagram,this.doSimulatedDragOut()))};function mi(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof Gi?(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 ii,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Pn.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Pn.prototype.Pd=function(a){return a===void 0?new ah(ds):this.isGridSnapEnabled?new ah(new Ne(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new ah(a.copy())},Pn.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),Jn(this),Qc(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Ke.count){for(var y=Ke,x=y.length,b=0;b<x;b++){var E=y.M(b);Qi(E),di(E),Jn(E),E.diagram.ug()}y.clear()}Qi(this),this.tl.h(NaN,NaN),vn!==null&&(vn.currentCursor=""),Je=vn=null,di(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),jc(a,!0)},Pn.prototype.stopTransaction=function(){var a=this.diagram,y=bt.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function Jn(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,gr(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function yi(){var a=Je;di(a),Er(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Pn.prototype.doCancel=function(){di(this),Er(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Pn.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Pn.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Un(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")):Er(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 wr,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 Gi&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,mi(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Ff(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function di(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 Gi&&(x.value.point=new Ne(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Qi(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=Ne.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),Ne.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(Lu(b),b.hk())}Pn.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&yh(b,a,y,this.dragOptions,x)};function Er(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 Gi&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),Ff(b,-E.x,-E.y)}y.bd()}}function ao(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),Ir(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=gr(a,E,b),!a.isActive&&Je===null)return;var ot=b!==null?b.part:null;if(ot===null||x.handlesDragDropForTopLevelParts&&ot.isTopLevel&&!(ot instanceof ko)){var at=x.mouseDragOver;at!==null&&(at(E),nt=!0)}if(!a.isActive&&Je===null||(a.doDragOver(y,b),!a.isActive&&Je===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)}Pn.prototype.findDragOverObject=function(a){var y=this;return Kh(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof Ms||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Pn.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 gr(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&&Je===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=Ti(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 Ti(a){var y=a.panel;return y!==null?y:a instanceof Xr&&!(a instanceof ko)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function xr(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(ut){return b.findValidLinkablePort(ut,x)});a=Ne.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(bo,a);at=y.Bf(at),at<z&&(nt=ot,z=at)}}return Ne.free(a),nt}function Ir(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=xr(a,x.i(0),!1),z!==null&&(nt=z.part));var ot=null,at=null;x.toNode===null&&(ot=xr(a,x.i(x.pointsCount-1),!0),ot!==null&&(at=ot.part)),E.isValidLink(nt,z,at,ot)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=nt,z!==null&&(x.fromPortId=z.portId),x.toNode=at,ot!==null&&(x.toPortId=ot.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):Fi(E,nt,z,at,ot):Fi(E,null,null,null,null)}}}}Pn.prototype.doDragOver=function(){};function $n(a,y){var x=a.diagram;a.dragsLink&&Ir(a,!0),Jn(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;ri(a,E,z),z=Ti(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||Je!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof cr&&z.linksConnected.each(function(ot){ot.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||Je!==null){for(a=ai.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof cr&&pe(x,b,a);ai.free(a)}}}function ri(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof ko||(x=a.mouseDrop,x!==null&&x(y))}function pe(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 Gi},!0,function(E){return E instanceof Gi},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Pn.prototype.doDropOnto=function(){},Pn.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()?(Un(this,!1),oc(a,this.copiedParts),ir(this,this.copiedParts,!1),Qc(a,this.copiedParts)):this.mayMove()?(di(this),ir(this,this.draggedParts,!0)):this.mayDragOut()?(Un(this,!1),ir(this,this.copiedParts,!1)):di(this),ao(this,a.lastInput.documentPoint))}},Pn.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?(di(this),Un(this,!0),oc(a,this.copiedParts),ir(this,this.copiedParts,!1),Qc(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0}))):(y=!0,di(this),this.mayMove()&&(ir(this,this.draggedParts,!0),ao(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&&me(this),a.Ya(),Qc(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Pn.prototype.simulatedMouseMove=function(a,y,x){if(Je===null)return!1;var b=Je.diagram;x instanceof _n||(x=null);var E=vn;return x!==E&&(E!==null&&E!==b&&(E.ug(),Je.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),vn=x,x!==null&&x!==b&&(yi(),E=x.toolManager.findTool("Dragging"),E!==null&&(Ke.contains(E)||Ke.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)},Pn.prototype.simulatedMouseUp=function(a,y,x){if(Je===null)return!1;var b=vn,E=Je.diagram;if(x===null)return Je.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),Je.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;vn=x,b=x.toolManager.findTool("Dragging"),b!==null&&(yi(),Ke.contains(b)||Ke.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 Ne),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=Je,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function me(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof cr&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Pn.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(ys?!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())},Pn.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())},Pn.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())},Pn.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Pn.prototype.Az=function(){return Je},Pn.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Je;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Pn.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),vu(a),a.animationManager.Cc(),a=Je,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Pn.prototype.doSimulatedDragLeave=function(){var a=Je;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Pn.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Je;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;Xe(this,y.draggedParts.Lf(),!1,a.firstInput),ir(this,this.copiedParts,!1),ao(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Pn.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Je;if(y!==null){var x=y.diagram;if(y.Ym=!0,di(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),Xe(this,y.draggedParts.Lf(),!0,a.lastInput),ir(this,this.copiedParts,!1);var b=new Ci;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 Xe(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 ut=at.value;if(ut.isVisible()){var ct=ut.location;ut=ct.x,ct=ct.y,isNaN(ut)||isNaN(ct)||(ut<b&&(b=ut),ct<E&&(E=ct),ut>nt&&(nt=ut),ct>ot&&(ot=ct))}}for(b===1/0?z.h(0,0,0,0):z.h(b,E,nt-b,ot-E),b=z.x+z.width/2,E=z.y+z.height/2,ai.free(z),z=a.Fr,nt=new wr,ot=Ne.alloc(),at=y.iterator;at.next();)ut=at.value,ut instanceof Gi&&ut.canCopy()&&(ct=x.I(ut),ct!==null&&(ct.points=ut.points,Ff(ct,z.x-b,z.y-E),ct.suspendsRouting=!0,nt.add(ct,a.Pd())));for(y=y.iterator;y.next();)ut=y.value,ut.Zc()&&ut.canCopy()&&(at=x.I(ut),at!==null&&(ut=ut.location,ot.h(z.x-(b-ut.x),z.y-(E-ut.y)),at.location=ot,at.Va(),nt.add(at,a.Pd(ot))));Ne.free(ot),a.copiedParts=nt,mi(a,nt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Ff(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Pn.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Pn.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Ne},Oe.Object.defineProperties(Pn.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}}}),Pn.prototype.getDraggingSource=Pn.prototype.Az;var Je=null,vn=null;Pn.className="DraggingTool",Ke=new Pi,Oo("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),ie.prototype.doCancel=function(){Je!==null&&Je.doCancel(),bt.prototype.doCancel.call(this)};function rn(){bt.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Gi,y=new Io;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Io,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new cr,y=new Io,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Bs,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new cr,y=new Io,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Bs,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 wr,this.Of=this.gj=this.Pf=null}Tn(rn,bt),rn.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},rn.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),nt=Vi.alloc();nt.width=y.naturalBounds.width*z,nt.height=y.naturalBounds.height*z,b.desiredSize=nt,Vi.free(nt),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=bo,z=Ne.alloc(),x.location=y.ga(bo,z),Ne.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},rn.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=Bs,y.fromSpot=Za,y.toSpot=Za),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},rn.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},rn.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof cr){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},rn.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof cr))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof cr)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},rn.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 cr){var at=nt.ga(bo,Ne.alloc()),ut=x.x-at.x,ct=x.y-at.y;Ne.free(at),at=ut*ut+ct*ct,at<b&&(ut=this.validPortsCache.I(nt),ut!==null?ut&&(y=nt,b=at):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,ot,nt)||!a&&this.isValidLink(ot,nt,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(nt,!0),y=nt,b=at):this.validPortsCache.add(nt,!1))}}return y!==null&&(x=y.part,x instanceof cr&&(x.layer===null||x.layer.allowLink))?y:null},rn.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},rn.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},rn.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},rn.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof cr))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof cr))return!1;for(y=y.portId,y===null&&(y=""),y=b.Sd(y);y.next();)if(b=y.value,b.fromNode===x&&b.fromPortId===a)return!0;return!1},rn.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)},rn.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 Ci;return b.add(a),kn(this,x,y,b)};function kn(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),kn(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),kn(a,y.labeledLink,x,b))))}rn.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!==sc){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!jn(this,a,y,x,!0)}if(b===MA){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=a.linksConnected;b.next();)if(E=b.value,E!==x&&E.isTreeLink&&E.fromNode===a)return!1;return!jn(this,a,y,x,!0)}if(b===bh)return a===y?a=!0:(b=new Ci,b.add(y),a=Yn(this,b,a,y,x)),!a;if(b===ac)return!jn(this,a,y,x,!1);if(b===LA)return a===y?a=!0:(b=new Ci,b.add(y),a=Qe(this,b,a,y,x)),!a}return!0};function jn(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&&jn(a,nt,x,b,E)))return!0}return!1}function Yn(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&&Yn(a,y,nt,b,E)))return!0}return!1}function Qe(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&&Qe(a,y,ot,b,E))return!0}}return!1}Oe.Object.defineProperties(rn.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}}}),rn.className="LinkingBaseTool";function un(){rn.call(this),this.name="Linking",this.V={},this.F=null,this.K=mn,this.Xd=null}Tn(un,rn),un.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},un.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof cr)))return null;var x=this.direction;if(x===mn||x===Hn){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===mn||x===Zn)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},un.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof cr&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof cr&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},un.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()},un.prototype.doStop=function(){rn.prototype.doStop.call(this),this.startObject=null},un.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,E=null,z=null;try{var nt=this.targetPort=this.findTargetPort(this.isForwards);if(nt!==null){var ot=nt.part;ot instanceof cr&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=ot,E=nt):(y=ot,x=nt,this.originalToNode!==null&&(b=this.originalToNode,E=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,E=this.originalToPort);y!==null||b!==null?(z=this.insertLink(y,x,b,E),z!==null?(nt===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,b,E)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},un.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Gi)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)},un.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},un.prototype.doNoLink=function(){},Oe.Object.defineProperties(un.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 mn=new vi(un,"Either",0),Hn=new vi(un,"ForwardsOnly",0),Zn=new vi(un,"BackwardsOnly",0);un.className="LinkingTool",un.Either=mn,un.ForwardsOnly=Hn,un.BackwardsOnly=Zn;function ii(){rn.call(this),this.name="Relinking";var a=new Io;a.figure="Diamond",a.desiredSize=sa,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Io,a.figure="Diamond",a.desiredSize=sa,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new ai}Tn(ii,rn),ii.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Gi){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)}},ii.prototype.makeAdornment=function(a,y){var x=new Ms;return x.type=ci.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},ii.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},ii.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 Ms&&x.adornedPart instanceof Gi))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=Po),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Po),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},ii.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Up||x===Lf)&&(x=Zh),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}},ii.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()},ii.prototype.doStop=function(){rn.prototype.doStop.call(this),this.handle=null},ii.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,b=this.originalToNode,E=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var nt=this.targetPort.part;nt instanceof cr&&(this.isForwards?(b=nt,E=this.targetPort):(y=nt,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?E=b=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?b:y,this.isForwards?E:x,this.isForwards),this.targetPort===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint,z.bb()),this.transactionResult=this.name,a.R("LinkRelinked",z,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},ii.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},ii.prototype.doNoRelink=function(){};function Fi(a,y,x,b,E){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),b!==null?(a.copyPortProperties(b,E,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}Oe.Object.defineProperties(ii.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 Ms))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),ii.className="RelinkingTool",Oo("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Oo("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function li(){bt.call(this),this.name="LinkReshaping";var a=new Io;a.figure="Rectangle",a.desiredSize=ha,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Io,a.figure="Diamond",a.desiredSize=sa,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Ne,this.Yq=new Pi}Tn(li,bt),li.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:Zi},li.prototype.om=function(a,y){a.reshapingBehavior=y},li.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Gi){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)}},li.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new Ms,E.type=ci.Link,x=y.firstPickIndex;var z=y.lastPickIndex,nt=b?1:0;if(y.resegmentable&&y.computeCurve()!==Yc)for(var ot=x+nt;ot<z-nt;ot++){var at=this.makeResegmentHandle(a,ot);at!==null&&(at.segmentIndex=ot,at.segmentFraction=.5,at.fromMaxLinks=999,E.add(at))}for(nt=x+1;nt<z;nt++)if(ot=this.makeHandle(a,nt),ot!==null){if(ot.segmentIndex=nt,nt!==x)if(nt===x+1&&b){at=y.i(x);var ut=y.i(x+1);En.B(at.x,ut.x)&&En.B(at.y,ut.y)&&(ut=y.i(x-1)),En.B(at.x,ut.x)?(this.om(ot,br),ot.cursor="n-resize"):En.B(at.y,ut.y)&&(this.om(ot,Ar),ot.cursor="w-resize")}else nt===z-1&&b?(at=y.i(z-1),ut=y.i(z),En.B(at.x,ut.x)&&En.B(at.y,ut.y)&&(at=y.i(z+1)),En.B(at.x,ut.x)?(this.om(ot,br),ot.cursor="n-resize"):En.B(at.y,ut.y)&&(this.om(ot,Ar),ot.cursor="w-resize")):nt!==z&&(this.om(ot,eo),ot.cursor="move");E.add(ot)}E.adornedObject=a}return E},li.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},li.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},li.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},li.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 Gi){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}}},li.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},li.prototype.stopTransaction=function(){var a=this.diagram,y=bt.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},li.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},li.prototype.getResegmentingPoint=function(){return this.handle.ga(bo)},li.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},li.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&&(Xi(this,nt,b,E,z,!0)||Xi(this,nt,b,E,z,!1))){var ot=y.points.copy();Xi(this,nt,b,E,z,!0)?(ot.cd(x-2,new Ne(nt.x,(z.y+nt.y)/2)),ot.cd(x+1,new Ne(z.x,(z.y+nt.y)/2))):(ot.cd(x-2,new Ne((z.x+nt.x)/2,nt.y)),ot.cd(x+1,new Ne((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&&(Xi(this,b,E,z,nt,!0)||Xi(this,b,E,z,nt,!1))&&(ot=y.points.copy(),Xi(this,b,E,z,nt,!0)?(ot.cd(x-1,new Ne(b.x,(b.y+nt.y)/2)),ot.cd(x+2,new Ne(nt.x,(b.y+nt.y)/2))):(ot.cd(x-1,new Ne((b.x+nt.x)/2,b.y)),ot.cd(x+2,new Ne((b.x+nt.x)/2,nt.y))),ot.mb(x+1),ot.mb(x),y.points=ot,y.Wb())}}else nt=Ne.alloc(),En.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()),Ne.free(nt)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Xi(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}li.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===br?(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===br?(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);En.B(z.x,E.x)&&En.B(E.y,nt.y)?(En.B(z.x,y.i(b-2).x)&&!En.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),En.B(nt.y,y.i(b+2).y)&&!En.B(nt.x,y.i(b+2).x)?y.m(b+1,nt.x,a.y):y.L(b+1,nt.x,a.y)):En.B(z.y,E.y)&&En.B(E.x,nt.x)?(En.B(z.y,y.i(b-2).y)&&!En.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),En.B(nt.x,y.i(b+2).x)&&!En.B(nt.y,y.i(b+2).y)?y.m(b+1,a.x,nt.y):y.L(b+1,a.x,nt.y)):En.B(z.x,E.x)&&En.B(E.x,nt.x)?(En.B(z.x,y.i(b-2).x)&&!En.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),En.B(nt.x,y.i(b+2).x)&&!En.B(nt.y,y.i(b+2).y)?y.m(b+1,a.x,nt.y):y.L(b+1,a.x,nt.y)):En.B(z.y,E.y)&&En.B(E.y,nt.y)&&(En.B(z.y,y.i(b-2).y)&&!En.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),En.B(nt.y,y.i(b+2).y)&&!En.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(bo,Ne.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,Ne.alloc()),y.L(0,b.x,b.y),Ne.free(z),Ne.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(bo,Ne.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,Ne.alloc()),y.L(y.pointsCount-1,a.x,a.y),Ne.free(x),Ne.free(a));y.zf()},li.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case eo:return a;case br:return new Ne(y.i(x).x,a.y);case Ar:return new Ne(a.x,y.i(x).y);default:case Zi:return y.i(x)}},Oe.Object.defineProperties(li.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 Ms))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}}}),li.prototype.setReshapingBehavior=li.prototype.om,li.prototype.getReshapingBehavior=li.prototype.Ru;var Zi=new vi(li,"None",0),Ar=new vi(li,"Horizontal",1),br=new vi(li,"Vertical",2),eo=new vi(li,"All",3);li.className="LinkReshapingTool",li.None=Zi,li.Horizontal=Ar,li.Vertical=br,li.All=eo,Oo("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function Ii(){bt.call(this),this.name="Resizing",this.o=new Vi(1,1).freeze(),this.j=new Vi(9999,9999).freeze(),this.yg=new Vi(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Io;a.alignmentFocus=bo,a.figure="Rectangle",a.desiredSize=ha,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Ne,this.Dw=new Vi,this.Tn=new Ne,this.rt=new Vi(0,0),this.qt=new Vi(1/0,1/0),this.pt=new Vi(1,1)}Tn(Ii,bt),Ii.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Gi)){if(a.isSelected&&!this.diagram.isReadOnly){var y=a.resizeObject,x=a.Pj(this.name);if(y!==null&&a.canResize()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed()&&((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null)){y=y.li(),eg(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},Ii.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Ms,y.type=ci.Spot,y.locationSpot=bo;var x=new Vh;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,rl)),y.add(this.makeHandle(a,ou)),y.add(this.makeHandle(a,$l)),y.add(this.makeHandle(a,Ja)),y.add(this.makeHandle(a,za)),y.add(this.makeHandle(a,tl)),y.add(this.makeHandle(a,Dl)),y.add(this.makeHandle(a,Aa))}else if(ru(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Ii.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},Ii.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=bo),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 ci)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Ii.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},Ii.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))},Ii.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Ii.prototype.stopTransaction=function(){var a=this.diagram,y=bt.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ii.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Ii.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,Ne.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),Ne.free(E)}},Ii.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,Ne.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),Ne.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Ii.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 ko){var b=new Pi;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()}},Ii.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=bo);var nt=this.adornedObject.naturalBounds,ot=nt.x,at=nt.y,ut=nt.x+nt.width,ct=nt.y+nt.height,yt=1;if(!z){yt=nt.width;var kt=nt.height;0>=yt&&(yt=1),0>=kt&&(kt=1),yt=kt/yt}return kt=Ne.alloc(),En.No(a.x,a.y,ot,at,E.width,E.height,kt),a=nt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(kt.x,ut-b.width),a.x=Math.min(a.x,ut-x.width),a.width=Math.max(ut-a.x,x.width),a.y=Math.max(kt.y,ct-b.height),a.y=Math.min(a.y,ct-x.height),a.height=Math.max(ct-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(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=ut-a.width,a.y=ct-a.height)):1<=y.y?(a.x=Math.max(kt.x,ut-b.width),a.x=Math.min(a.x,ut-x.width),a.width=Math.max(ut-a.x,x.width),a.height=Math.max(Math.min(kt.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=ut-a.width)):(a.x=Math.max(kt.x,ut-b.width),a.x=Math.min(a.x,ut-x.width),a.width=ut-a.x,z||(a.height=Math.max(Math.min(yt*a.width,b.height),x.height),a.width=a.height/yt,a.y=at+.5*(ct-at-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(kt.x-ot,b.width),x.width),a.y=Math.max(kt.y,ct-b.height),a.y=Math.min(a.y,ct-x.height),a.height=Math.max(ct-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(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=ct-a.height)):1<=y.y?(a.width=Math.max(Math.min(kt.x-ot,b.width),x.width),a.height=Math.max(Math.min(kt.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(kt.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*(ct-at-a.height))):0>=y.y?(a.y=Math.max(kt.y,ct-b.height),a.y=Math.min(a.y,ct-x.height),a.height=ct-a.y,z||(a.width=Math.max(Math.min(a.height/yt,b.width),x.width),a.height=yt*a.width,a.x=ot+.5*(ut-ot-a.width))):1<=y.y&&(a.height=Math.max(Math.min(kt.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*(ut-ot-a.width))),Ne.free(kt),a},Ii.prototype.computeReshape=function(){var a=bi;return this.adornedObject instanceof Io&&(a=Jg(this.adornedObject)),!(a===yr||this.diagram.lastInput.shift)},Ii.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},Ii.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},Ii.prototype.computeCellSize=function(){var a=new Vi(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(Ii.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 Ms))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 Ms)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}}}),Ii.className="ResizingTool",Oo("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Xn(){bt.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Ne,this.ue=null;var a=new Io;a.figure="Ellipse",a.desiredSize=sa,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Ne(NaN,NaN),this.u=0,this.F=50}Tn(Xn,bt),Xn.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)}},Xn.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Ms,y.type=ci.Position,y.locationSpot=bo;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(ru(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Xn.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},Xn.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)},Xn.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(bo)},Xn.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)},Xn.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Ne(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Xn.prototype.stopTransaction=function(){var a=this.diagram,y=bt.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Xn.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Xn.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Xn.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()},Xn.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()}},Xn.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(Xn.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 Ms))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 Ms)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}}}),Xn.className="RotatingTool",Oo("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Co(){bt.call(this),this.name="ClickSelecting"}Tn(Co,bt),Co.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Co.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Co.className="ClickSelectingTool";function Br(){bt.call(this),this.name="Action",this.pk=null}Tn(Br,bt),Br.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},Br.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},Br.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},Br.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},Br.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},Br.prototype.doStop=function(){this.pk=null},Br.className="ActionTool";function sr(){bt.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Ne(0,0)}Tn(sr,bt),sr.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)},sr.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},sr.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 Xr)x.Zc()&&(ru(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);On(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=Ne.allocAt(a.x,a.y);this.isGridSnapEnabled&&Hc(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Ne.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(sr.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}}}),sr.className="ClickCreatingTool";function ar(){bt.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Xr;a.layerName="Tool",a.selectable=!1;var y=new Io;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Tn(ar,bt),ar.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))},ar.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},ar.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},ar.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=Vi.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),Vi.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},ar.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()},ar.prototype.computeBoxBounds=function(){var a=this.diagram;return new ai(a.firstInput.documentPoint,a.lastInput.documentPoint)},ar.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),ys?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 Pi,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(ar.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}}}),ar.className="DragSelectingTool";function qi(){bt.call(this),this.name="Panning",this.Xt=new Ne,this.xy=new Ne,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Le.document,"scroll",a.Kw,!1),a.stopTool()}}Tn(qi,bt),qi.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())},qi.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Le.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},qi.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},qi.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},qi.prototype.doMouseMove=function(){this.move()},qi.prototype.doMouseUp=function(){this.move(),this.stopTool()},qi.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(qi.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),qi.className="PanningTool",Oo("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Oo("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Oo("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Oo("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Oo("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function pr(){this.F=this.u=this.j=this.o=null}Oe.Object.defineProperties(pr.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}}}),pr.className="HTMLInfo";function Vr(a,y,x){this.text=a,this.hx=y,this.visible=x}Vr.className="ContextMenuButtonInfo";function co(){bt.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Ne,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Tn(co,bt);function fo(a){var y=new pr;y.show=function(E,z,nt){nt.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},ns=y,a.tu=function(){a.stopTool()},y=Di("div");var x=Di("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=Di("style");Le.document.getElementsByTagName("head")[0].appendChild(b),b.sheet.insertRule(".goCXul { list-style: none; }",0),b.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),b.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),b=a.diagram,b!==null&&(b.addEventListener(y,"contextmenu",Rr,!1),b.addEventListener(y,"selectstart",Rr,!1),b.addEventListener(x,"contextmenu",Rr,!1)),y.className="goCXforeground",x.className="goCXbackground",Le.document.body&&(Le.document.body.appendChild(y),Le.document.body.appendChild(x)),$o=y,wa=x,xo=!0}function Rr(a){return a.preventDefault(),!1}co.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return this.isBeyondDragSize()||!a.lastInput.right||1<a.lastInput.clickCount?!1:!!(a.lastInput.isTouchEvent&&this.defaultTouchContextMenu!==null||this.findObjectWithContextMenu()!==null)},co.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},co.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},co.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof _n||(a instanceof pn?b=a:b=y.ic(x.documentPoint,null,function(E){return!E.layer.isTemporary})),b!==null){for(a=b;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return b.part}else if(y.contextMenu!==null)return y;return null},co.prototype.doActivate=function(){},co.prototype.doMouseDown=function(){if(bt.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Ms){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&jo(this)},co.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Ms){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}jo(this)};function jo(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof pr||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(us(a,!0),a.isActive||a.stopTool())}co.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function us(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=ns,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof pn?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Ms&&!a.currentContextMenu.visible&&a.stopTool()}}co.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},co.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Ms){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 pr&&a.show(y,x,this);this.currentContextMenu=a},co.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y+b.height>E.bottom&&(x.y-=b.height+5/y.scale),x.y<E.y&&(x.y=E.y),a.position=x}},co.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Ms?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof pr&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function qo(a){var y=new Pi;return y.add(new Vr("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Vr("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Vr("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Vr("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Vr("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Vr("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Vr("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Vr("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Vr("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Vr("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Vr("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Vr("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Vr("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}co.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=qo(this)),$o.innerHTML="",wa.addEventListener("pointerdown",this.tu,!1);var y=this,x=Di("ul");x.className="goCXul",$o.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=Di("li"),z.className="goCXli";var nt=Di("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)}}$o.style.display="block",wa.style.display="block"},co.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===ns){$o.style.display="none",wa.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(wa,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Oe.Object.defineProperties(co.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Ms?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return xo===!1&&ns===null&&ps&&fo(this),ns},set:function(a){a===null&&(xo=!0),ns=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var ns=null,xo=!1,wa=null,$o=null;co.className="ContextMenuTool",Oo("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function rs(){bt.call(this),this.name="TextEditing",this.Zh=new oa,this.ia=null,this.V=es,this.vj=null,this.qa=no,this.u=1,this.F=!0,this.o=null,this.j=new pr,this.kt=null,Ps(this,this.j)}Tn(rs,bt);function Ps(a,y){if(ps){var x=Di("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(Ko)):E==="Tab"?(a.acceptText(zo),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==no){var b=a.kt;a.qa===Vo&&(a.qa=aa),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==no){var b=a.kt;typeof b.focus=="function"&&b.focus(),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(b,E,z){if(b instanceof oa&&z instanceof rs)if(z.state===Ql)x.style.border="3px solid red",x.focus();else{var nt=b.ga(bo),ot=E.position,at=E.scale,ut=b.Df()*at;ut<z.minimumEditorScale&&(ut=z.minimumEditorScale);var ct=b.naturalBounds.width*ut+6,yt=b.naturalBounds.height*ut+2,kt=(nt.x-ot.x)*at;nt=(nt.y-ot.y)*at,ot=b.verticalAlignment,at=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*ut,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*ut+"%",x.style.lineHeight="normal",x.style.width=ct+"px",x.style.left=(kt-ct/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=ut,x.className="goTXarea",E.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(x)}}}rs.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Fs&&Fs!==this&&(Fs.acceptText(Xs),Fs&&Fs!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof oa&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===es&&!y.isSelected||this.starting===Ds&&2>a.lastInput.clickCount)):!1},rs.prototype.doStart=function(){Fs=this,this.textBlock!==null&&this.doActivate()},rs.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof oa&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Vo;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new ai(this.textBlock.ga(rl),this.textBlock.ga($l));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},rs.prototype.doCancel=function(){this.stopTool()},rs.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},rs.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Xs)},rs.prototype.acceptText=function(a){switch(a){case Xs:this.qa===Ll?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Vo||this.qa===Ql||this.qa===aa)&&(this.qa=Rs,qs(this));break;case Ua:case Ko:case zo:(Ko!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Vo||this.qa===Ql||this.qa===aa)&&(this.qa=Rs,qs(this))}};function qs(a){var y=a.textBlock,x=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var E=y.text,z="";b.valueFunction!==null&&(z=b.valueFunction()),a.isValidText(y,E,z)?(a.Ea(a.name),a.qa=Ll,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=Ql,a.doError(E,z))}}rs.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},rs.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},rs.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=no,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},rs.prototype.doStop=function(){Fs=null},rs.prototype.isValidText=function(a,y,x){var b=this.textValidation;return b!==null&&!b(a,y,x)?!1:(b=a.textValidation,!!(b===null||b(a,y,x)))},rs.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Oe.Object.defineProperties(rs.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),rs.prototype.measureTemporaryTextBlock=rs.prototype.Lx;var Ua=new vi(rs,"LostFocus",0),Xs=new vi(rs,"MouseDown",1),zo=new vi(rs,"Tab",2),Ko=new vi(rs,"Enter",3),fs=new vi(rs,"SingleClick",0),es=new vi(rs,"SingleClickSelected",1),Ds=new vi(rs,"DoubleClick",2),no=new vi(rs,"StateNone",0),Vo=new vi(rs,"StateActive",1),aa=new vi(rs,"StateEditing",2),Rs=new vi(rs,"StateValidating",3),Ql=new vi(rs,"StateInvalid",4),Ll=new vi(rs,"StateValidated",5),Fs=null;rs.className="TextEditingTool",rs.LostFocus=Ua,rs.MouseDown=Xs,rs.Tab=zo,rs.Enter=Ko,rs.SingleClick=fs,rs.SingleClickSelected=es,rs.DoubleClick=Ds,rs.StateNone=no,rs.StateActive=Vo,rs.StateEditing=aa,rs.StateValidating=Rs,rs.StateInvalid=Ql,rs.StateValidated=Ll,Oo("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function ca(a){Uu||(pu(),Uu=!0),this.H=kh,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Xu,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Ci,this.ce=new _a,this.ce.Yd=this,this.Ei=new Ci,this.pu=new Ci,this.Sr=new Ci,this.pr=new Ci,a&&Object.assign(this,a)}ca.prototype.Xe=function(a){this.H=a},ca.prototype.canStart=function(){return!0};function jl(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Rl(a.H),a.zb=!0)}function Ao(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===Xu?(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===$u&&y.vc.clear(),a.Qw=!!(a.Pk===dh&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),b&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),Bu(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==Ka&&b!==null&&(delete b.start.scale,delete b.end.scale),Le.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Lu(x),Kd(x),a.zb=!1,y.start(),y.bc&&(ka(a),x.Ya(),Cc(y,0),vu(x,!0),Xa(a),x.R("AnimationStarting",a)))}))}}function Ra(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Kl(a,y,x,b){a.isTicking||Ra(a)||y instanceof Gi&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}Xt=ca.prototype,Xt.fv=function(a){return this.ce.fv(a)},Xt.Xu=function(a){return this.ce.Xu(a)};function ta(a,y){function x(){if(0<E.Sr.count&&(b.addAll(E.Sr),E.Sr.clear(),E.bc=!0),E.bc!==!1&&b.count!==0){E.pu.addAll(b);for(var z=E.pu.iterator;z.next();){var nt=z.value;if(nt.bc!==!1){t:if(0<nt.yl.count)var ot=!0;else{for(ot=nt.vc.iterator;ot.next();){var at=ot.key;if(at instanceof pn&&at.diagram!==null||at instanceof _n){ot=!0;break t}}ot=!1}ot?ph(nt,!1):nt.Xk=!0}}E.pu.clear(),E.bc!==!1&&(ka(E),vu(E.H),Xa(E)),Le.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),Le.requestAnimationFrame(function(){x()}))}function la(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function ka(a){if(!a.vq){var y=a.H;a.Ow=y.skipsUndoManager,a.cw=y.skipsModelSourceBindings,y.skipsUndoManager=!0,y.skipsModelSourceBindings=!0,a.vq=!0}}function Xa(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Xt.Cc=function(a){var y=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<y.vc.count&&this.H.$b()),this.bc){if(y.Ml(!0),y.vc.clear(),Bu(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Bu(y,this.H)},Xt.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))},Xt.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Ta(this,a))},Xt.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Ul(this.ce,y,"position",y.position,y.position),Ta(this,a))};function al(a,y,x){!a.zb||y.D(x)||Ra(a)||(a.H.pi||(y=x.copy()),Ul(a.ce,a.H,"position",y,x))}function _s(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Ta(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Sl(a,y,x,b,E){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],nt=a[1],ot=a[2];a=a[3];var at=y[0],ut=y[1],ct=y[2];return y=y[3],ot===0||ot===100?(z=at,nt=ut):(ct===0||ct===100)&&(at=z,ut=nt),180<Math.abs(at-z)&&(at>z?z+=360:at+=360),z=E(x,z,at-z,b)%360,nt=E(x,nt,ut-nt,b),ot=E(x,ot,ct-ot,b),x=E(x,a,y-a,b),"hsla("+z+", "+nt+"%, "+ot+"%, "+x+")"}function pu(){function a(x,b,E,z,nt,ot){x.position=new Ne(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}var y=new wr;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 Ne(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 Ne(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 Ne(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}),y.add("position:nodeCollapse",function(x,b,E,z,nt,ot){var at=x.actualBounds,ut=E.actualBounds;E=ut.x+ut.width/2-at.width/2,at=ut.y+ut.height/2-at.height/2,nt<ot?x.mm(z(nt,b.x,E-b.x,ot),z(nt,b.y,at-b.y,ot),!1):x.position=new Ne(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=Sl(b,E,nt,ot,z)}),y.add("stroke",function(x,b,E,z,nt,ot){x.stroke=Sl(b,E,nt,ot,z)}),y.add("strokeWidth",function(x,b,E,z,nt,ot){x.strokeWidth=z(nt,b,E-b,ot)}),y.add("strokeDashOffset",function(x,b,E,z,nt,ot){x.strokeDashOffset=z(nt,b,E-b,ot)}),y.add("background",function(x,b,E,z,nt,ot){x.background=Sl(b,E,nt,ot,z)}),y.add("areaBackground",function(x,b,E,z,nt,ot){x.areaBackground=Sl(b,E,nt,ot,z)}),y.add("opacity",function(x,b,E,z,nt,ot){x.opacity=z(nt,b,E-b,ot)}),y.add("scale",function(x,b,E,z,nt,ot){x.scale=z(nt,b,E-b,ot)}),y.add("angle",function(x,b,E,z,nt,ot){x.angle=z(nt,b,E-b,ot)}),au=y}Oe.Object.defineProperties(ca.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&&Ei(a,">= 1",ca,"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}}}),ca.prototype.stopAnimation=ca.prototype.Cc;var au=null,Uu=!1,Xu=new vi(ca,"Default",1),dh=new vi(ca,"AnimateLocations",2),$u=new vi(ca,"None",3);ca.className="AnimationManager",ca.defineAnimationEffect=function(a,y){Uu||(pu(),Uu=!0),au.add(a,y)},ca.Default=Xu,ca.AnimateLocations=dh,ca.None=$u;function _a(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=mh,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=ds,this.vc=new wr,this.Tt=new wr,this.yl=new Ci,this.Ut=new Ci,this.dw=pc,a&&Object.assign(this,a)}_a.prototype.suspend=function(){this.Xk=!0},_a.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),ka(this.Yd),vu(this.H),Xa(this.Yd),this.H.redraw()};function Bu(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0<a.yl.count&&a.yl.clear(),0<a.Ut.count&&a.Ut.clear(),y!==null)for(a=y.links;a.next();)a.value.Tg=null}Xt=_a.prototype,Xt.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 _n?a=x:x instanceof pn&&(a=x.diagram))}if(a!==null)this.H=a,this.Yd=a.animationManager;else return this;return y=this.Yd,y.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?y.duration:this.Dg,this.Lp=this.ot,y.Ok&&y.Pk===Xu&&this===y.defaultAnimation&&(this.Lp=ic,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Fd),ka(y),this.yl.each(function(b){b.data=null,a.add(b)}),Xa(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,ta(y,this),this)},Xt.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Xt.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof _n?this.H=a:a instanceof pn&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Xr){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Ul(this,a,y,x,b,E),this};function Ul(a,y,x,b,E,z){var nt=a.vc;if(y instanceof _n&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(Fc(b),Vf(),b=[Ui.j,Ui.u,Ui.o,Ui.F],Fc(E),Vf(),E=[Ui.j,Ui.u,Ui.o,Ui.F]),nt.contains(y)){var ot=nt.I(y),at=ot.start,ut=ot.end;at[x]===void 0&&(at[x]=nl(b)),ut[x]=nl(E)}else at={},ut={},at[x]=nl(b),ut[x]=nl(E),ot=at.position,y instanceof pn&&ot instanceof Ne&&!ot.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&ot.assign(ut.position),ot=new rc(at,ut,z),nt.add(y,ot);nt=at[x],nt instanceof Ne&&!nt.w()&&nt.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof Xr?ot.Ku.location=nl(y.location):z&&(ot.Ku[x]=nl(b))}function nl(a){return a instanceof Ne||a instanceof Vi?a.copy():a}Xt.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Xt.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),ka(x),Cc(a,E),vu(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 Cc(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof pn&&z.diagram===null)){var nt=b.value,ot=E?nt.end:nt.start;nt=E?nt.start:nt.end;var at=au,ut;for(ut in nt)ut==="position"&&(nt["position:placeholder"]||nt["position:nodeCollapse"])||at.get(ut)===null||at.get(ut)(z,ot[ut],nt[ut],a.Lp,y,x,a)}}}Xt.stop=function(){return this.bc?(this.Ml(!0),this):this},Xt.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,ka(x);for(var b=this.vc,E=this.yl.iterator;E.next();)y.remove(E.value);for(E=this.Ut.iterator;E.next();)E.value.v();E=this.ho,b=b.iterator;for(var z=au;b.next();){var nt=b.key,ot=b.value,at=E?ot.end:ot.start,ut=E?ot.start:ot.end,ct=ot.Ku,yt;for(yt in ut)if(z.get(yt)!==null){var kt=yt;!ot.Hu||kt!=="position:nodeCollapse"&&kt!=="position:placeholder"||(kt="position"),z.get(kt)(nt,at[yt],ct[yt]!==void 0?ct[yt]:ot.Hu?at[yt]:ut[yt],this.Lp,this.Gd,this.Gd,this)}ot.Hu&&ct.location!==void 0&&nt instanceof Xr&&(nt.location=ct.location),ot.nv&&nt instanceof Xr&&nt.Zb(!1)}if(y.As.clear(),jc(y,!1),y.Ya(),y.N(),vu(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()}vu(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),Bu(this,null),x.Ml(this),y.$b())}},Xt.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof ko&&(b=y.placeholder),b!==null?(x=b.ga(rl),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Ne(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof ko)for(a=a.memberParts;a.next();)b=a.value,b instanceof cr&&this.Cj(b,y)},Xt.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof ko&&(x=y.placeholder),x!==null){var b=x.ga(rl);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 ko)for(a=a.memberParts;a.next();)b=a.value,b instanceof cr&&this.Aj(b,y)}},Xt.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Oe.Object.defineProperties(_a.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Ei(a,">= 1",_a,"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:qe("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}}}),_a.prototype.getTemporaryState=_a.prototype.Ez,_a.prototype.stop=_a.prototype.stop,_a.prototype.add=_a.prototype.add,_a.prototype.addTemporaryPart=_a.prototype.Iy;function mh(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function ic(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}_a.className="Animation",_a.EaseLinear=function(a,y,x,b){return x*a/b+y},_a.EaseInOutQuad=mh,_a.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},_a.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},_a.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},_a.EaseOutExpo=ic;function rc(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}rc.className="AnimationState";function vh(a,y,x){this.xd=null,this.rf=a,this.so=x||Cl,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Ba))}vh.prototype.copy=function(){var a=new vh(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 fa(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(vh.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var Cl=new vi(vh,"Default",1),Ba=new vi(vh,"Immediate",2),pl=new vi(vh,"Bundled",3);vh.className="AnimationTrigger",vh.Default=Cl,vh.Immediate=Ba,vh.Bundled=pl;function ga(a){Xo(this),this.H=null,this.Pa=new Pi,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)}Xt=ga.prototype,Xt.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Bo(x)}a.clear(),this.Zq.length=0},Xt.Xe=function(a){this.H=a},Xt.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 ko?E++:at instanceof cr?b++:at instanceof Gi?z++:at instanceof Ms?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&&xs(b)&&(ot+=" #"+xs(b)),x instanceof cr?ot+=" "+Pr(b):x instanceof Gi&&(ot+=" "+Pr(x.fromNode)+" "+Pr(x.toNode));return y+" "+this.Pa.count+": "+ot},Xt.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=Ne.alloc(),z=this.Pa.s,nt=z.length;nt--;){var ot=z[nt];if((b!==!0||eg(ot)!==!1)&&ot.isVisible()&&(E.assign(a),Wo(E,ot.oe),ot=ot.ic(E,y,x),ot!==null&&(y!==null&&(ot=y(ot)),ot!==null&&(x===null||x(ot)))))return Ne.free(E),ot}return Ne.free(E),null},Xt.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Pi||b instanceof Ci||(b=new Ci),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var z=Ne.alloc(),nt=this.Pa.s,ot=nt.length;ot--;){var at=nt[ot];if((E!==!0||eg(at)!==!1)&&at.isVisible()){z.assign(a),Wo(z,at.oe);var ut=at;at.ji(z,y,x,b)&&(y!==null&&(ut=y(ut)),ut===null||x!==null&&!x(ut)||b.add(ut))}}return Ne.free(z),b},Xt.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 Pi||E instanceof Ci||(E=new Ci),this.Uh===!1)return E;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var nt=this.Pa.s,ot=nt.length;ot--;){var at=nt[ot];if((z!==!0||eg(at)!==!1)&&at.isVisible()){var ut=at;at.Cf(a,y,x,b,E)&&(y!==null&&(ut=y(ut)),ut===null||x!==null&&!x(ut)||E.add(ut))}}return E},Xt.Nu=function(a,y,x,b,E,z,nt){if(this.Uh===!1)return E;for(var ot=this.Pa.s,at=ot.length;at--;){var ut=ot[at];if((nt!==!0||eg(ut)!==!1)&&z(ut)&&ut.isVisible()){var ct=ut;ut.Cf(a,y,x,b,E)&&(y!==null&&(ct=y(ct)),ct===null||x!==null&&!x(ct)||E.add(ct))}}return E},Xt.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 Pi||E instanceof Ci)&&(z=E),E=!0),z instanceof Pi||z instanceof Ci||(z=new Ci),this.Uh===!1)return z;var nt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(nt=!0);for(var ot=Ne.alloc(),at=Ne.alloc(),ut=this.Pa.s,ct=ut.length;ct--;){var yt=ut[ct];if((nt!==!0||eg(yt)!==!1)&&yt.isVisible()){ot.assign(a),Wo(ot,yt.oe),at.h(a.x+y,a.y),Wo(at,yt.oe);var kt=yt;yt.og(ot,at,x,b,E,z)&&(x!==null&&(kt=x(kt)),kt===null||b!==null&&!b(kt)||z.add(kt))}}return Ne.free(ot),Ne.free(at),z},Xt.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=or();for(var E=or(),z=0;z<b;z++){var nt=x[z];if(nt.vw=z,nt instanceof Gi){if(nt.fd===!1)continue}else if(nt instanceof Ms&&nt.adornedPart!==null)continue;var ot=nt.actualBounds;nt.isVisible()&&Is(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]);Lr(a),Lr(E)}}};function lu(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Xt.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=lu(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 Fu(a,y,x,b,E){if(a.visible&&a.pb!==0&&(E||!a.isTemporary)){E=a.Pa.s;var z=E.length;if(z!==0){var nt=lu(a,y),ot=a.Zq;ot.length=0;for(var at=x.scale,ut=ai.alloc(),ct=0;ct<z;ct++){var yt=E[ct];b.contains(yt)&&a.Oj(y,yt,x,ot,at,ut,!1)}ai.free(ut),y.globalAlpha=nt}}}Xt.Oj=function(a,y,x,b,E,z,nt){if(nt&&!eg(y))a.Hs(y);else{if(b!==null&&y instanceof Gi&&(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 eh?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))}},Xt.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(Fa,a,this,y,x,b,E)},Xt.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&Bo(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)),zh(this,a,y),a},Xt.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,Bo(y),a};function zh(a,y,x){if(y=Ih(a,y,x),x instanceof ko&&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&&zh(a,-1,y)}x.svg!==null&&x.svg.remove()}function Ih(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===""&&qe("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&qe("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)&&Ei(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 _n(a,y){if(qu||(Wl(),qu=!0),Xo(this),kh=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,ps){var x=this,b=function(){x.removeEventListener(Le.document,"DOMContentLoaded",b,!1),x.setRTL()};Le.document.body!==null?this.setRTL():x.addEventListener(Le.document,"DOMContentLoaded",b,!1)}this.ol=null,Pa.add("Model",Vs);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===Fa&&nt.updateDataBindings(z.object,z.propertyName)}finally{nt.diagram.aa=!0}}},this.Oc=function(z){E.partManager.doModelChanged(z)},this.hu=this.ku=null,lA(this),this.model=Xv(),this.Wg=!0,id(this),this.layout=new Wa,this.Wg=!1,this.ck=this.ek=this.fk=this.dk=this.ui=this.aA=this.$j=this.Ov=null,this.hk=function(){},this.preventDefault=null,this.rn=!1,this.Yf=new Ld,a!==void 0&&(typeof a=="string"||Le.Element&&a instanceof Element?xd(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var Ru,kh;function lA(a){a.Yd=new ca,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Pi,a.pj=new wr,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Ne(NaN,NaN).freeze(),a.du=new Ne(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Ne(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Ho,a.zu=new Ne(NaN,NaN).freeze(),a.ut=new ai(NaN,NaN,NaN,NaN).freeze(),a.rj=new Hr(0,0,0,0).freeze(),a.sj=pc,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Ka,a.zk=Ls,a.Fg=Ka,a.pq=Ls,a.yt=rl,a.Bt=rl,a.Fc=!0,a.pn=!1,a.De=new Ci,a.Eh=new wr,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 Cu,a.bq.diagram=a,a.Qg=new Cu,a.Qg.diagram=a,a.cj=new Cu,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,$d(a),a.ai=new Ci,a.Ht=!0,a.uu=Gc,a.pw=!1,a.wu=sc,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 wr,a.Xn=new Pi,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 Ci().freeze(),a.Nt=999999999,a.nw=new Ci().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 Ci,a.ow=new Ci,a.Xh=null,a.aw=new Vi(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Ne,bounds:new ai,Py:new Vi,bA:new Vi,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 Vi(NaN,NaN).freeze(),a.Sp=new ai(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new wr;var y=new cr,x=new oa;x.bind(new Jl("text","",Pr)),y.add(x),a.ny=y,a.Lg.add("",y),y=new cr,x=new oa,x.stroke="brown",x.bind(new Jl("text","",Pr)),y.add(x),a.Lg.add("Comment",y),y=new cr,y.selectable=!1,y.avoidable=!1,x=new Io,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Vi(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new wr,y=new ko,y.selectionObjectName="GROUPPANEL",y.type=ci.Vertical,x=new oa,x.font="bold 12pt sans-serif",x.bind(new Jl("text","",Pr)),y.add(x),x=new ci(ci.Auto),x.name="GROUPPANEL";var b=new Io;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new Vh,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 wr,y=new Gi,x=new Io,x.isPanelMain=!0,y.add(x),x=new Io,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new Gi,x=new Io,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Ms,y.type=ci.Auto,x=new Io,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Vh,x.margin=new Hr(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Ms,y.type=ci.Link,x=new Io,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 Vs,a.toolManager=new ie,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new st,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=gc(),a.eq=null,a.fq=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 Ne,a.zy=500,a.wp=new Ne,a.wq=!1}_n.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),nu=null,iu="",nd(this,!1),this.Xn.clear(),kp(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function nd(a,y){a.animationManager.Cc(!0),a.Hw=new Ci().freeze(),a.nw=new Ci().freeze();var x=a.skipsUndoManager,b=a.cc!==null&&a.cc!==void 0;b&&(a.skipsUndoManager=!0);var E=null;a.fe!==null&&(E=a.fe.part,E!==null&&a.remove(E));var z=[],nt=a.Wa.length;if(y){for(y=0;y<nt;y++)for(var ot=a.Wa.s[y].parts;ot.next();){var at=ot.value;at!==E&&at.data===null&&z.push(at)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<nt;y++)a.Wa.s[y].clear();return a.partManager.clear(),a.De.clear(),a.Eh.clear(),a.ai.clear(),a.Ck=null,a.Xn.clear(),kp(),a.Og.clear(),Zo=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function gc(){return null}_n.prototype.reset=function(){this.clear(),this.vb=!0,lA(this),Th(this),this.Wg=!0,id(this),this.layout=new Wa,this.Wg=!1,this.model=Xv(),this.model.undoManager=new Et,this.vb=this.rn=!1,this.N()},_n.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Le.document.body);var y=Di("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},_n.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Le.document.body);var y=0;if(ps){var x=ba;y=Ru,x===null&&(x=ba=Di("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=Ru=Di("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||ys||(y=11)}this.Db=y,this.Gw=!0},_n.prototype.qb=function(a){a.classType===_n&&(this.autoScale=a)},_n.prototype.toString=function(a){a===void 0&&(a=0);var y="";if(this.div&&this.div.id&&(y=this.div.id),y='Diagram "'+y+'"',0>=a)return y;for(var x=this.Wa.iterator;x.next();)y+=`
|
|
|
`+x.value.toString(a-1);return y};function xd(a,y){if(ps){if(y!=null||qe("Diagram setup requires an argument DIV."),a.Ka!==null&&qe("Diagram has already completed setup."),typeof y=="string"?a.Ka=Le.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:qe("No DIV or DIV id supplied: "+y),a.Ka===null&&qe("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&qe("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Le.ResizeObserver){var x=Qn(function(){a.$b()},250);a.ol=new Le.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Le.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=Le.go;var E=new Tu(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",Le.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),E.style.zIndex="2",E.style.userSelect="none",E.style.MozUserSelect="none",E.style.touchAction="none",E.style.letterSpacing="normal !important",E.style.wordSpacing="normal !important"),a.ta=E,a.ib=E.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Zd(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new Tu(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,ps){E=Di("div");var z=Di("div");E.style.position="absolute",E.style.overflow="auto",E.style.width=a.Aa+"px",E.style.height=a.ya+"px",E.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(E),E.appendChild(z),E.onscroll=Uc,E.addEventListener("pointerdown",Sd),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=Qn(function(){a.Yh=null,a.N()},300),a.Ov=Qn(function(){Kd(a)},250),a.preventDefault=function(nt){return nt.preventDefault(),!1},a.$j=function(nt){if(a.isEnabled){var ot=mu(a,nt,!0);ot.bubbles=!0;var at=0,ut=0;ot.delta=0,nt.deltaX!==void 0?(nt.deltaX!==0&&(at=0<nt.deltaX?1:-1),nt.deltaY!==0&&(ut=0<nt.deltaY?1:-1),ot.delta=Math.abs(nt.deltaX)>Math.abs(nt.deltaY)?-at:-ut):nt.wheelDeltaX!==void 0?(nt.wheelDeltaX!==0&&(at=0<nt.wheelDeltaX?-1:1),nt.wheelDeltaY!==0&&(ut=0<nt.wheelDeltaY?-1:1),ot.delta=Math.abs(nt.wheelDeltaX)>Math.abs(nt.wheelDeltaY)?-at:-ut):nt.wheelDelta!==void 0&&nt.wheelDelta!==0&&(ot.delta=0<nt.wheelDelta?1:-1),a.doMouseWheel(),Ju(ot,nt)}},a.aA=function(nt){a.isEnabled&&(a.Vk=!1,mu(a,nt,!0),nt=a.currentTool,nt.cancelWaitAfter(),nt.standardMouseOver())},a.ui=function(nt){if(a.isEnabled){a.Vk=!0;var ot=a.Yt;ot[nt.pointerId]===void 0&&(ot[nt.pointerId]=nt),ot=a.oj;var at=!1;if(ot[0]===null||ot[0].pointerId!==nt.pointerId&&ot[0].pointerType===nt.pointerType)if(ot[1]!==null&&ot[1].pointerId===nt.pointerId)ot[1]=nt,at=!0;else if(ot[0]===null)ot[0]=nt;else if(ot[1]===null)ot[1]=nt,at=!0;else{nt.preventDefault();return}else ot[0]=nt;(ot=nt.pointerType==="touch"||nt.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var ut=at;at=Wd(a,nt,!0,!1,!0,ut),Rc(a,nt,at),at.targetDiagram=Gd(nt,nt.target),at.targetObject=null,ut||at.clone(a.bq),ut=a.uw,ot=ot?25:10,nt.timeStamp-a.tw<a.zy&&!(Math.abs(ut.x-nt.screenX)>ot||Math.abs(ut.y-nt.screenY)>ot)?a.yq++:a.yq=1,at.clickCount=a.yq,a.tw=nt.timeStamp,a.uw.sg(nt.screenX,nt.screenY),a.doMouseDown(),nt.button===1?nt.preventDefault():Ju(at,nt)}},a.dk=function(nt){if(a.isEnabled){a.Vk=!0;var ot=a.oj;if(ot[0]===null||ot[0].pointerId!==nt.pointerId&&ot[0].pointerType===nt.pointerType){if(ot[1]!==null&&ot[1].pointerId===nt.pointerId){ot[1]=nt;return}if(ot[0]===null)ot[0]=nt;else return}else ot[0]=nt;if(ot[0].pointerId===nt.pointerId){ot=Wd(a,nt,!1,!1,!1,ot[1]!==null);var at=Le.document.elementFromPoint(nt.clientX,nt.clientY)||null;at!==null&&at.shadowRoot!==void 0&&at.shadowRoot!==null&&(at=at.shadowRoot.elementFromPoint(nt.clientX,nt.clientY));var ut=a,ct=nt;at&&at.H&&(ct=nt,ut=at.H),ot.targetDiagram=ut,Rc(a,ct,ot),ot.targetObject=null,a.doMouseMove(),Ju(ot,nt)}}},a.fk=function(nt){if(a.isEnabled){a.Vk=!0;var ot=nt.pointerType==="touch"||nt.pointerType==="pen",at=a.Yt;if(ot&&a.qu)delete at[nt.pointerId],nt.preventDefault();else if(at=a.oj,at[0]===null||at[0].pointerId!==nt.pointerId&&at[0].pointerType===nt.pointerType)at[1]!==null&&at[1].pointerId===nt.pointerId&&(at[1]=null);else{at[0]=null,at=Wd(a,nt,!1,!0,!0,!1);var ut=Le.document.elementFromPoint(nt.clientX,nt.clientY)||null;ut!==null&&ut.shadowRoot!==void 0&&ut.shadowRoot!==null&&(ut=ut.shadowRoot.elementFromPoint(nt.clientX,nt.clientY)),ut!==null&&ut.H instanceof _n&&ut.H!==a&&Rc(ut.H,nt,at),ut===null&&(ut=nt.target),Rc(a,nt,at),at.clickCount=a.yq,at.targetDiagram=Gd(nt,ut),at.targetObject=null,a.doMouseUp(),Ju(at,nt),ot&&(a.wq=!1)}}},a.ek=function(nt){if(a.isEnabled){a.Vk=!1;var ot=a.Yt;ot[nt.pointerId]&&delete ot[nt.pointerId],ot=a.oj,ot[0]!==null&&ot[0].pointerId===nt.pointerId&&(ot[0]=null),ot[1]!==null&&ot[1].pointerId===nt.pointerId&&(ot[1]=null),nt.pointerType!=="touch"&&nt.pointerType!=="pen"&&(nt=a.currentTool,nt.cancelWaitAfter(),nt.standardMouseOver())}},a.ck=function(nt){var ot=a.oj;ot[0]!==null&&ot[0].pointerId===nt.pointerId?(ot[0]=null,a.wq=!1):ot[1]!==null&&ot[1].pointerId===nt.pointerId&&(ot[1]=null)},a.Vp=b.Z["d"+sd[1]+sd[2]+"wI"+Oh.slice(1,5)]["b"+Rw.slice(1,y)](b.Z,mc,y,y),b.Vc(!0),SA(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}_n.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},_n.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function SA(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(Le,"resize",a.Ov,!1)}function Lu(a){30<a.Sq&&(a.Yh=1)}function jc(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),to&&to.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}_n.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Le.devicePixelRatio||1},_n.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},_n.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},_n.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},_n.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},_n.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},_n.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},_n.prototype.doFocus=function(){this.focus()},_n.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Le.scrollX||Le.pageXOffset,y=Le.scrollY||Le.pageYOffset;this.ta.focus(),Le.scrollTo(a,y)}},_n.prototype.Oy=function(){this.H.R("GainedFocus")},_n.prototype.Ny=function(){this.H.R("LostFocus")};function Kd(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var x=a.gf?a.Db:0,b=a.Be?a.Db:0,E=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==E&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+b)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===Ka&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function id(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 CA(a){var y=new ci(ci.Grid);y.name="GRID";var x=new Io;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Io,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Io,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Io,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Io,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Io,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Xr,x.add(y),x.layerName="Grid",x.zOrder=0,x.isInDocumentBounds=!1,x.isAnimated=!1,x.pickable=!1,x.locationObjectName="GRID",a.add(x),a.partManager.parts.remove(x),y.visible=!1,y}function Uc(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Bc(this.H)}function Sd(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Bc(this.H)}_n.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var b=this.documentBounds,E=this.viewportBounds,z=this.rj,nt=b.x-z.left,ot=b.y-z.top,at=b.width+z.left+z.right,ut=b.height+z.top+z.bottom,ct=b.right+z.right;z=b.bottom+z.bottom;var yt=E.x;b=E.y;var kt=E.width,zt=E.height,Zt=E.right,he=E.bottom;E=this.scale;var He=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":He=He+a.scrollWidth-a.clientWidth;break;case"reverse":He=a.scrollWidth-He-a.clientWidth}var Fe=He;kt<at||zt<ut?(He=Ne.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Fe&&(He.x=Fe/E+nt,this.ju=Fe),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(He.y=a.scrollTop/E+ot,this.lu=a.scrollTop),this.position=He,Ne.free(He),this.Ee=this.qr=!1):(He=Ne.alloc(),a.uy&&this.allowHorizontalScroll&&(nt<yt&&(this.position=He.h(Fe+nt,this.position.y)),ct>Zt&&(this.position=He.h(-(y.scrollWidth-this.Aa)+Fe-this.Aa/E+ct,this.position.y))),a.vy&&this.allowVerticalScroll&&(ot<b&&(this.position=He.h(this.position.x,a.scrollTop+ot)),z>he&&(this.position=He.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),Ne.free(He),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ct=b.right,Zt=E.right,z=b.bottom,he=E.bottom,nt=b.x,yt=E.x,ot=b.y,b=E.y,kt>=at&&nt>=yt&&ct<=Zt&&(x.style.width="1px"),zt>=ut&&ot>=b&&z<=he&&(x.style.height="1px"))}},_n.prototype.computeBounds=function(a){return a===void 0&&(a=new ai),Rl(this),Yu(this,a)};function Yu(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,b=a.Wa.s,E=b.length,z=0;z<E;z++){var nt=b[z];if(nt.visible&&nt.isInDocumentBounds){nt=nt.Pa.s;for(var ot=nt.length,at=0;at<ot;at++){var ut=nt[at];ut.isInDocumentBounds&&ut.isVisible()&&(ut=ut.actualBounds,ut.w()&&(x?(x=!1,y.assign(ut)):y.ed(ut)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}_n.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(ui(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof Gi||(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 Gi||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new ai(NaN,NaN,0,0):x};function sh(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=Ne.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=ai.allocAt(0,0,b.width,b.height);var E=Ne.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,ai.free(b),Ne.free(E),Ne.free(x)}x=a.yh,y&&a.Fg!==Ka&&(x=a.Fg);var z=x!==Ka?Wu(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()?bo:at),BA(a,a.documentBounds,E,nt,ot,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,En.B(z.x,x)&&En.B(z.y,b)&&En.B(z.width,E)&&En.B(z.height,nt)||a.onViewportBoundsChanged(new ai(x,b,E,nt),z,y,!1)}}function Wu(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===zl?(y=Math.min(at,ot),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Nu?(y=at>ot?(nt-a.Db)/b:(z-a.Db)/E,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}_n.prototype.zoomToFit=function(){var a=this.sj;this.sj=pc,this.scale=Wu(this,zl),a!==pc&&(sh(this,!1),BA(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Xt=_n.prototype,Xt.BA=function(a,y){y===void 0&&(y=zl);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===zl||y===Nu)if(isNaN(x))E=this.viewportBounds.height*this.scale/b;else if(isNaN(b))E=this.viewportBounds.width*this.scale/x;else{E=this.Aa;var z=this.ya;E=y===Nu?z/b>E/x?(z-(this.Be?this.Db:0))/b:(E-(this.gf?this.Db:0))/x:Math.min(z/b,E/x)}this.scale=E,this.position=new Ne(a.x,a.y)}},Xt.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Ne(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))},Xt.zz=function(a){if(a instanceof pn){this.eq=a;var y=Ne.alloc();this.fq=this.op(a.ga(rl,y)),Ne.free(y)}else this.eq=null,this.fq=Ml};function BA(a,y,x,b,E,z){var nt=Ne.allocAt(a.pa.x,a.pa.y),ot=nt.x,at=nt.y;if(a.eq!==null){var ut=Ne.alloc();ut=a.eq.ga(rl,ut),ot=ut.x-a.fq.x/a.scale,at=ut.y-a.fq.y/a.scale,E=Za,Ne.free(ut)}(z||a.scrollMode===pc)&&(E.sb()&&(x>y.width&&(ot=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(at=y.y+(E.y*y.height+E.offsetY)-(E.y*b-E.offsetY))),E=a.rj,z=x-y.width,x<y.width+E.left+E.right?(ot=Math.min(ot+x/2,y.right+Math.max(z,E.right)-x/2),ot=Math.max(ot,y.left-Math.max(z,E.left)+x/2),ot-=x/2):ot>y.left?ot=y.left:ot<y.right-x&&(ot=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(at=Math.min(at+b/2,y.bottom+Math.max(x,E.bottom)-b/2),at=Math.max(at,y.top-Math.max(x,E.top)+b/2),at-=b/2):at>y.top?at=y.top:at<y.bottom-b&&(at=y.bottom-b)),nt.x=isFinite(ot)?ot:-a.yb.left,nt.y=isFinite(at)?at:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,nt),nt.x=y.x,nt.y=y.y),al(a.Yd,a.pa,nt),a.pa.h(nt.x,nt.y),Th(a),Ne.free(nt)}Xt.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Kh(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof Xr)return a}else if(a=Kh(this,a,function(x){return x.part}),a instanceof Xr)return a;return null},Xt.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),Rl(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 Kh(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),Rl(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}Xt.lz=function(a,y,x){return y===void 0&&(y=!0),na(this,a,function(b){return b.part},y?function(b){return b instanceof Xr&&b.canSelect()}:null,x)};function na(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof Pi||E instanceof Ci||(E=new Ci),Rl(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,b,E)}return E}Xt.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Pi||b instanceof Ci||(b=new Ci),Rl(this);for(var E=this.Wa.iteratorBackwards;E.next();){var z=E.value;z.visible&&z.ji(a,y,x,b)}return b},Xt.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),Cd(this,a,function(E){return E instanceof Xr&&(!x||E.canSelect())},y,b)},Xt.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Pi||E instanceof Ci||(E=new Ci),Rl(this);for(var z=this.Wa.iteratorBackwards;z.next();){var nt=z.value;nt.visible&&nt.Cf(a,y,x,b,E)}return E},Xt.Nu=function(a,y,x,b,E,z){var nt=new Ci;Rl(this);for(var ot=this.Wa.iteratorBackwards;ot.next();){var at=ot.value;at.visible&&at.Nu(a,y,x,b,nt,E,z)}return nt};function Cd(a,y,x,b,E){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Pi||E instanceof Ci||(E=new Ci),Rl(a),a=a.Wa.iteratorBackwards;a.next();){var nt=a.value;nt.visible&&!nt.isTemporary&&nt.Cf(y,z,x,b,E)}return E}Xt.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),rd(this,a,y,function(z){return z instanceof Xr&&(!b||z.canSelect())},x,E)},Xt.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 Pi||E instanceof Ci)&&(z=E),E=!0),z instanceof Pi||z instanceof Ci||(z=new Ci),Rl(this);for(var nt=this.Wa.iteratorBackwards;nt.next();){var ot=nt.value;ot.visible&&ot.og(a,y,x,b,E,z)}return z};function rd(a,y,x,b,E,z){var nt=null;for(nt===void 0&&(nt=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Pi||E instanceof Ci)&&(z=E),E=!0),z instanceof Pi||z instanceof Ci||(z=new Ci),Rl(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}_n.prototype.acceptEvent=function(a){return mu(this,a,a instanceof MouseEvent)};function mu(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?Rc(a,y,b):(b.viewPoint=a.Qg.viewPoint,b.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),b.modifiers=a,b.button=y.button,y.buttons!==void 0&&(b.buttons=y.buttons),ys&&y.button===0&&y.ctrlKey&&(b.button=2),b.down=!1,b.up=!1,b.clickCount=1,b.delta=0,b.handled=!1,b.bubbles=!1,b.timestamp=y.timeStamp,b.isMultiTouch=!1,b.targetDiagram=Gd(y,y.target),b.targetObject=null,b}function Gd(a,y){return y===null?null:(y=y.H)?y:((y=a.path)||typeof a.composedPath!="function"||(y=a.composedPath()),y&&y[0]&&y[0].H?y[0].H:null)}function Wd(a,y,x,b,E,z){var nt=a.Qg;return a.Qg=a.cj,a.cj=nt,nt.diagram=a,nt.clickCount=1,a=nt.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),nt.modifiers=a,nt.event=y,nt.timestamp=y.timeStamp,nt.button=y.button,nt.buttons=y.buttons,ys&&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 Ju(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}_n.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=mu(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.down=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del";break;case 48:x.key="0";break;case 187:case 61:case 107:x.key="Add";break;case 189:case 173:case 109:x.key="Subtract";break;case 27:x.key="Esc"}return y.doKeyDown(),Ju(x,a)},_n.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=mu(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.up=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del"}return y.doKeyUp(),Ju(x,a)},_n.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=mu(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),Ju(x,a)},_n.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=mu(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),Ju(x,a)},_n.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Ne(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?Wo(new Ne(y,a),this.Ab):new Ne(y,a)};function Rc(a,y,x){var b=a.ta,E=a.Aa,z=a.ya,nt=0,ot=0;b!==null&&(b=b.getBoundingClientRect(),nt=y.clientX-E/b.width*b.left,ot=y.clientY-z/b.height*b.top),x.viewPoint.h(nt,ot),a.Ab!==null?(y=Ne.allocAt(nt,ot),a.Ab.Cd(y),x.documentPoint.assign(y),Ne.free(y)):x.documentPoint.h(nt,ot)}function Bd(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var b=a.ta;b!==null&&(b=b.getBoundingClientRect(),x.h(y.clientX-a.Aa/b.width*b.left,y.clientY-a.ya/b.height*b.top))}}_n.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function Vd(a){a.ld||Rl(a),a.Va()}_n.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Xt=_n.prototype,Xt.Pz=function(){return this.kg},Xt.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,vu(this),this.hf=!1,this.du=new Ne(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&Si(function(){b.ld=!1,jl(y,"Model"),a(b)},1)},Xt.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Le.requestAnimationFrame(function(){y.kg&&y.bd()})}},Xt.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),vu(this))};function uu(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Bc(a)||(y&&Rl(a),x&&sh(a,!1))}function vu(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,b=a.Xn;if(!x.isAnimating&&b.length!==0){for(var E=b.s,z=E.length,nt=0;nt<z;nt++){var ot=E[nt];kl(ot,!1),ot.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(at){at.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Kd(a),uu(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Pc(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),Rl(a),z=!1,(!a.hf||a.xh)&&(a.hf?Xd(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Xd(a,!1)),z=!0),a.Jk=!1,Rl(a),a.ou||Vd(a),uu(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,_c(a)),a.R("LayoutCompleted"),uu(a,!0,!1),ai.free(x)):x.Ok&&x.Qw&&(a.Fg!==Ka?a.scale=Wu(a,a.Fg):a.yh!==Ka?a.scale=Wu(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),sh(a,!0)),z&&nt&&a.eb("Initial Layout"),Rl(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function _c(a){if(a.Fg!==Ka)a.scale=Wu(a,a.Fg);else if(a.yh!==Ka)a.scale=Wu(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}sh(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Pc(a)}function Rl(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 Ci,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof ko&&b.U&65536&&(b.U=b.U^65536)})}}Xt.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof ko||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof ko&&x.isVisible()&&Oa(this,x);for(a.reset();a.next();)x=a.value,x instanceof Gi&&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 Ms&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Oa(a,y){for(var x=or(),b=or(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof ko?(wh(z)||th(z)||tg(z))&&Oa(a,z):z instanceof Gi?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(Lr(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();Lr(b)}Xt.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},Xt.gc=function(a){if(this.Ka!==null){if(this.ta===null&&qe("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){Ph(this);var x=this.Aa,b=this.ya;if(a.Gv.resize(x,b,x,b),x=this.Wa.s,b=x.length,this.Fd(x,b,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var E=this.Ca,z=Math.round(y.x*E)/E,nt=Math.round(y.y*E)/E,ot=this.Ab;for(ot.reset(),E!==1&&ot.scale(E),y.x===0&&y.y===0||ot.translate(-z,-nt),a.ti=null,Gf(a,ot.m11,ot.m12,ot.m21,ot.m22,ot.dx,ot.dy),this.pb!==1&&(a.globalAlpha=this.pb),Mu(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<b;y++)x[y].gc(a,this);a=!1,this.Yf?Dh(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Ho.prototype.Cd=Ho.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,Ph(this),this.Ka.style.opacity!=="0")){if(b=a!==this.ib,y=this.Wa.s,E=y.length,this.Fd(y,E,this,this.viewportBounds),b)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break t;z=this.Ab,z.reset(),nt=this.Mb,ot=this.pa;var at=this.Ca,ut=Math.round(ot.x*at)/at,ct=Math.round(ot.y*at)/at;for(at!==1&&z.scale(at),ot.x===0&&ot.y===0||z.translate(-ut,-ct),a.setTransform(nt,0,0,nt,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Mu(this,a),ot=0;ot<E;ot++)a.setTransform(nt,0,0,nt,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[ot].gc(a,this);if(y=!1,this.Yf?Dh(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Ho.prototype.Cd=Ho.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=to&&to.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 $a(a,y,x,b,E,z,nt,ot,at,ut){if(a.Ka!==null){a.ta===null&&qe("No canvas specified"),nt===void 0&&(nt=null),ot===void 0&&(ot=null),at===void 0&&(at=!1),ut===void 0&&(ut=!1),Ph(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ct=a.Ca;a.Ca=E;var yt=a.Wa.s,kt=yt.length;try{var zt=new ai(z.x,z.y,b.width/E,b.height/E),Zt=zt.copy();Zt.Co(x),Pc(a,Zt),Rl(a),a.Fd(yt,kt,a,zt),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),ot!==null&&ot!==""&&(y.fillStyle=ot,y.ox(0,0,b.width,b.height));var he=a.Mb;y.scale(he,he);var He=Ho.alloc();He.reset(),He.translate(x.left,x.top),He.scale(E),z.x===0&&z.y===0||He.translate(-z.x,-z.y),y.setTransform(He.m11,He.m12,He.m21,He.m22,He.dx,He.dy),y.yc(),y instanceof eh&&Gf(y,He.m11,He.m12,He.m21,He.m22,He.dx,He.dy),Ho.free(He),Mu(a,y),y.globalAlpha=a.pb;var Fe=a.Qj("Grid");if(nt){var Ve=new Ci,tn=nt.iterator;for(tn.reset();tn.next();){var on=tn.value;on instanceof Xr&&(ut||on.layer!==Fe)&&(on.Gj(),Ve.add(on))}for(ut=0;ut<kt;ut++)Fu(yt[ut],y,a,Ve,at);Ve.each(function(Gn){return Gn.Gj()})}else for(Ve=0;Ve<kt;Ve++){var Sn=yt[Ve];Sn===Fe?ut&&Sn.gc(y,a,!0):Sn.gc(y,a,at)}a.$i=!1,a.Yf&&Dh(a.Yf,a)&&a.Vp()}finally{a.Ca=ct,a.ib.Vc(!0),a.vd=!0,a.Fd(yt,kt,a,a.viewportBounds),Pc(a),a.ib instanceof eh&&(a.ib.Nj.PA(),a.redraw())}}}Xt.Gf=function(a){return this.Rg[a]},Xt.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Xt.Tx=function(){this.Rg=new so,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(ys||_o),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Mu(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Xt.Ql=function(a){return this.on[a]},Xt.sA=function(a,y){this.on[a]=y},Xt.Sx=function(){this.on=new so,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Xt.set=function(a){return Object.assign(this,a),this},Xt.Du=function(a){return this.nm(a)},Xt.nm=function(a){return Ah(this,a),this};function Ah(a,y){var x=a instanceof ci,b=a instanceof _n,E;for(E in y){E===""&&qe("Setting properties requires non-empty property names");var z=a,nt=E;if(x||b){var ot=E.indexOf(".");if(0<ot){var at=E.substring(0,ot);x?z=a.fb(at):(z=a[at],z==null&&(z=a.toolManager[at])),On(z)?nt=E.substr(ot+1):qe("Unable to find object named: "+at+" in "+a.toString()+" when trying to set property: "+E)}}if(nt[0]!=="_"&&!io(z,nt))if(b&&nt==="ModelChanged"){a.Yw(y[nt]);continue}else if(b&&nt==="Changed"){a.Pe(y[nt]);continue}else if(b&&io(a.toolManager,nt))z=a.toolManager;else if(b&&FA(a,nt)){a.Bj(nt,y[nt]);continue}else if(a instanceof Or&&nt==="Changed"){a.Pe(y[nt]);continue}else qe('Trying to set undefined property "'+nt+'" on object: '+z.toString());z[nt]=y[E],nt[0]==="_"&&z instanceof pn&&z.Vw(nt)}}Xt.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new wr,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Xt.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")},_n.prototype.invalidateViewport=function(a,y){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var x=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==Fd&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var b=this.scale,E=Math.max(a.y,y.y),z=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*b&&0<Math.max(0,z-E)*b){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(b=ai.alloc(),bA(this,this.computeBounds(b)),ai.free(b)),b=this.ta,b===null||b instanceof _u)))){var nt=this.Mb;E=this.Aa*nt;var ot=this.ya*nt,at=this.scale*nt;z=Math.round(Math.round(y.x*at)-Math.round(a.x*at)),y=Math.round(Math.round(y.y*at)-Math.round(a.y*at)),at=this.jw,a=this.oy,at.width!==E&&(at.width=E),at.height!==ot&&(at.height=ot),a.clearRect(0,0,E,ot),at=190*nt;var ut=70*nt,ct=Math.max(z,0),yt=Math.max(y,0),kt=Math.floor(E-ct),zt=Math.floor(ot-yt);a.drawImage(b.Oa,ct,yt,kt,zt,0,0,kt,zt),Dh(this.Yf,this)&&a.clearRect(0,0,at,ut),b=or(),a=or(),zt=Math.abs(z),kt=Math.abs(y);var Zt=ct===0?0:E-zt;ct=Ne.allocAt(Zt,0),zt=Ne.allocAt(zt+Zt,ot),a.push(new ai(Math.min(ct.x,zt.x),Math.min(ct.y,zt.y),Math.abs(ct.x-zt.x),Math.abs(ct.y-zt.y)));var 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),Wo(ct,he),Wo(zt,he),b.push(new ai(Math.min(ct.x,zt.x),Math.min(ct.y,zt.y),Math.abs(ct.x-zt.x),Math.abs(ct.y-zt.y))),Zt=yt===0?0:ot-kt,ct.h(0,Zt),zt.h(E,kt+Zt),a.push(new ai(Math.min(ct.x,zt.x),Math.min(ct.y,zt.y),Math.abs(ct.x-zt.x),Math.abs(ct.y-zt.y))),Wo(ct,he),Wo(zt,he),b.push(new ai(Math.min(ct.x,zt.x),Math.min(ct.y,zt.y),Math.abs(ct.x-zt.x),Math.abs(ct.y-zt.y))),Dh(this.Yf,this)&&(E=0<z?0:-z,ot=0<y?0:-y,ct.h(E,ot),zt.h(at+E,ut+ot),a.push(new ai(Math.min(ct.x,zt.x),Math.min(ct.y,zt.y),Math.abs(ct.x-zt.x),Math.abs(ct.y-zt.y))),Wo(ct,he),Wo(zt,he),b.push(new ai(Math.min(ct.x,zt.x),Math.min(ct.y,zt.y),Math.abs(ct.x-zt.x),Math.abs(ct.y-zt.y)))),Ne.free(ct),Ne.free(zt),uu(this,!1,!0),this.Ka===null&&qe("No div specified"),this.ta===null&&qe("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(Ph(this),ot=this.Mb,E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,this.Aa*ot,this.ya*ot),E.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,nt=this.Ca,at=Math.round(z.x*nt)/nt,ut=Math.round(z.y*nt)/nt,y=this.Ab,y.reset(),nt!==1&&y.scale(nt),z.x===0&&z.y===0||y.translate(-at,-ut),E.save(),E.beginPath(),z=a.length,nt=0;nt<z;nt++)at=a[nt],at.width!==0&&at.height!==0&&E.rect(Math.floor(at.x),Math.floor(at.y),Math.ceil(at.width),Math.ceil(at.height));for(E.clip(),E.setTransform(ot,0,0,ot,0,0),E.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),E.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),Mu(this,E),E.globalAlpha=this.pb,ot=0;ot<z;ot++)if(nt=y[ot],at=b,nt.visible&&nt.pb!==0){ut=lu(nt,E),yt=nt.Zq,yt.length=0,ct=this.scale,kt=ai.alloc(),zt=nt.Pa.s,he=zt.length,Zt=at.length;for(var He=0;He<he;He++){var Fe=zt[He],Ve=Ng(Fe,Fe.actualBounds);t:{for(var tn=2/ct,on=4/ct,Sn=0;Sn<Zt;Sn++){var Gn=at[Sn];if(Gn.width!==0&&Gn.height!==0&&Ve.Vu(Gn.x-tn,Gn.y-tn,Gn.width+on,Gn.height+on)){Ve=!0;break t}}Ve=!1}Ve&&nt.Oj(E,Fe,this,yt,ct,kt,!0)}ai.free(kt),E.globalAlpha=ut}E.restore(),E.Vc(!0),this.Yf&&Dh(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Lr(b),Lr(a),this.ld=!1}}else this.bd();x&&(Lu(this),this.bd(),jc(this,!0))}else x?(Lu(this),this.bd(),jc(this,!0)):this.bd()}};function Ph(a){a.pn!==!1&&(a.pn=!1,Zd(a,a.Aa,a.ya))}function Zd(a,y,x){Th(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Bc(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,b=a.ya,E=a.Ka,z=!1,nt=a.gf?a.Db:0,ot=a.Be?a.Db:0,at=E.clientWidth||x+nt,ut=E.clientHeight||b+ot,ct=a.viewportBounds;E=ct.x;var yt=ct.y,kt=ct.width,zt=ct.height;if((at!==x+nt||ut!==b+ot)&&(a.gf=!1,a.Be=!1,ot=nt=0,a.Aa=at,a.ya=ut,z=a.pn=!0,Th(a)),!a.hf||!a.viewportBounds.w())return!0;var Zt=a.ku,he=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var He=a.documentBounds,Fe=0,Ve=0,tn=0,on=0,Sn=ct.width,Gn=ct.height,nr=a.rj;a.contentAlignment.sb()?(He.width>Sn&&(Fe=nr.left,Ve=nr.right),He.height>Gn&&(tn=nr.top,on=nr.bottom)):(Fe=nr.left,Ve=nr.right,tn=nr.top,on=nr.bottom);var Fr=He.width+Fe+Ve,vr=He.height+tn+on;nr=a.scale;var Ki=Fr>at/nr,Mi=vr>ut/nr;if(!(z||a.gf||a.Be||Ki||Mi))return!0;Fe=He.x-Fe,at=ct.x,Ve=He.right+Ve,ut=ct.right+nt,tn=He.y-tn;var Eo=ct.y;He=He.bottom+on,ct=ct.bottom+ot;var po="1px";if(on="1px",a.scrollMode===pc&&(Ki||Mi)&&(Ki&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Ki=1,Fe+1<at&&(Ki=Math.max((at-Fe)*nr+a.Aa,Ki)),Ve>ut+1&&(Ki=Math.max((Ve-ut)*nr+a.Aa,Ki)),Sn+nt+1<Fr&&(Ki=Math.max((Fr-Sn)*nr+a.Aa,Ki)),po=Ki.toString()+"px"),Mi&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Ki=1,tn+1<Eo&&(Ki=Math.max((Eo-tn)*nr+a.ya,Ki)),He>ct+1&&(Ki=Math.max((He-ct)*nr+a.ya,Ki)),Gn+ot+1<vr&&(Ki=Math.max((vr-Gn)*nr+a.ya,Ki)),on=Ki.toString()+"px")),Ki=po!=="1px",Mi=on!=="1px",Ki&&Mi||!Ki&&!Mi||(Mi&&(ut-=a.Db),Ki&&(ct-=a.Db),Fr<Sn+nt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(nt=1,Fe+1<at&&(nt=Math.max((at-Fe)*nr+a.Aa,nt)),Ve>ut+1&&(nt=Math.max((Ve-ut)*nr+a.Aa,nt)),Sn+1<Fr&&(nt=Math.max((Fr-Sn)*nr+a.Aa,nt)),po=nt.toString()+"px"),Ki=po!=="1px",nt=a.ya,Ki!==a.Be&&(nt=Ki?a.ya-a.Db:a.ya+a.Db),vr<Gn+ot||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(ot=1,tn+1<Eo&&(ot=Math.max((Eo-tn)*nr+nt,ot)),He>ct+1&&(ot=Math.max((He-ct)*nr+nt,ot)),Gn+1<vr&&(ot=Math.max((vr-Gn)*nr+nt,ot)),on=ot.toString()+"px"),Mi=on!=="1px"),a.qr&&Ki===a.Be&&Mi===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(Ki!==a.Be&&(po==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Ki,he.style.width=po,Mi!==a.gf&&(on==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(ot=Ne.alloc(),Mi?(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)),Ne.free(ot))),z&&Th(a),a.gf=Mi,he.style.height=on,a.gu=!0,z&&(a.pn=!0),y=Zt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Sn+1<Fr?y=(a.position.x-Fe)*nr:Fe+1<at?y=Zt.scrollWidth-Zt.clientWidth:Ve>ut+1&&(y=a.position.x*nr)),a.tn)switch(a.bu){case"negative":y=-(Zt.scrollWidth-y-Zt.clientWidth);break;case"reverse":y=Zt.scrollWidth-y-Zt.clientWidth}return Zt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Gn+1<vr?Zt.scrollTop=(a.position.y-tn)*nr:tn+1<Eo?Zt.scrollTop=Zt.scrollHeight-Zt.clientHeight:He>ct+1&&(Zt.scrollTop=a.position.y*nr)),at=a.Aa,ut=a.ya,Zt.style.width=at+(a.gf?a.Db:0)+"px",Zt.style.height=ut+(a.Be?a.Db:0)+"px",x!==at||b!==ut||a.animationManager.zb?(x=ai.allocAt(E,yt,kt,zt),a.onViewportBoundsChanged(x,a.viewportBounds,nr,z),ai.free(x),!1):!0}Xt=_n.prototype,Xt.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&qe("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&&qe('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(gl,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Xt.oi=function(a){this.partManager.oi(a);var y=this;Al(a,function(x){zc(y,x)}),(a instanceof Ms||a instanceof ko&&a.placeholder!==null)&&a.v(),a.data!==null&&Al(a,function(x){Wv(y.partManager,x)}),th(a)!==!0&&tg(a)!==!0||this.De.add(a),Ky(a,!0,this),Wy(a)?(a.actualBounds.w()&&this.N(Ng(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ng(a,a.actualBounds)),this.$b()},Xt.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Al(a,function(x){Vv(y.partManager,x,y)}),this.De.remove(a),Wy(a)?(a.actualBounds.w()&&this.N(Ng(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ng(a,a.actualBounds)),this.$b()},Xt.remove=function(a){Pd(this,a,!0)};function Pd(a,y,x){var b=y.layer;b!==null&&b.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=b.pc(-1,y,!1),0<=x&&a.cb(Hl,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}Xt.Is=function(a,y){if(y===void 0&&(y=!1),ui(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 Ci,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},Xt.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},_n.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=PA(this)),this.toolManager!==null){var E=new wr;if(a!==null)if(ui(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)}yh(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=PA(a)),x instanceof cr){if(y.add(x,a.Pd(E,x,x.location)),x instanceof ko&&(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 Gi)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)Vu(a,y,x.value,b,E);else x instanceof Ms||y.add(x,a.Pd(E,x,x.location))}function yh(a,y,x,b,E){if(y!==null&&y.count!==0){var z=Ne.alloc(),nt=Ne.alloc();nt.assign(x),isNaN(nt.x)&&(nt.x=0),isNaN(nt.y)&&(nt.y=0),(x=a.Mr)||oc(a,y);for(var ot=or(),at=or(),ut=y.iterator,ct=Ne.alloc();ut.next();){var yt=ut.key,kt=ut.value;if(yt.Zc()){var zt=od(a,yt,y);zt!==null?ot.push(new it(yt,kt,zt)):(!E||yt.canMove())&&(zt=kt.point,z.assign(zt),a.computeMove(yt,z.add(nt),b,ct),yt.location=ct,kt.shifted===void 0&&(kt.shifted=new Ne),kt.shifted.assign(ct.re(zt)))}else ut.key instanceof Gi&&at.push(ut.sa)}for(Ne.free(ct),E=ot.length,ut=0;ut<E;ut++)yt=ot[ut],z.assign(yt.info.point),yt.Su.shifted===void 0&&(yt.Su.shifted=new Ne),yt.node.location=z.add(yt.Su.shifted);for(E=Ne.alloc(),ut=Ne.alloc(),yt=at.length,kt=0;kt<yt;kt++){var Zt=at[kt];if(zt=Zt.key,zt instanceof Gi)if(zt.suspendsRouting){zt.Tg=null,ct=zt.fromNode;var he=zt.toNode;if(a.draggedLink!==null&&b.dragsLink)if(he=Zt.value.point,zt.dragComputation===null)y.add(zt,a.Pd(b,zt,nt)),Ff(zt,nt.x-he.x,nt.y-he.y);else{Zt=Ne.allocAt(0,0),(ct=zt.i(0))&&ct.w()&&Zt.assign(ct);var He=ct=Ne.alloc().assign(Zt).add(nt);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(He=Ne.alloc(),Hc(a,zt,ct,He,b)),ct.assign(zt.dragComputation(zt,ct,He)).re(Zt),y.add(zt,a.Pd(b,zt,ct)),Ff(zt,ct.x-he.x,ct.y-he.y),Ne.free(Zt),Ne.free(ct),He!==ct&&Ne.free(He)}else ct!==null&&(E.assign(ct.location),He=y.I(ct),He!==null&&E.re(He.point)),he!==null&&(ut.assign(he.location),He=y.I(he),He!==null&&ut.re(He.point)),ct!==null&&he!==null?E.Xa(ut)?(ct=Zt.value.point,he=z,he.assign(E),he.re(ct),y.add(zt,a.Pd(b,zt,E)),Ff(zt,he.x,he.y)):(zt.suspendsRouting=!1,zt.bb()):(Zt=Zt.value.point,ct=ct!==null?E:he!==null?ut:nt,y.add(zt,a.Pd(b,zt,ct)),Ff(zt,ct.x-Zt.x,ct.y-Zt.y))}else(zt.fromNode===null||zt.toNode===null)&&(ct=Zt.value.point,y.add(zt,a.Pd(b,zt,nt)),Ff(zt,nt.x-ct.x,nt.y-ct.y))}Ne.free(z),Ne.free(nt),Ne.free(E),Ne.free(ut),Lr(ot),Lr(at),x||(Rl(a),Qc(a,y))}}_n.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new Ne),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=Ne.alloc(),Hc(this,a,y,E,x)),x=a.dragComputation!==null?a.dragComputation(a,y,E):E;var nt=a.minLocation,ot=nt.x;isNaN(ot)&&(ot=z?Math.round(1e3*a.location.x)/1e3:a.location.x),nt=nt.y,isNaN(nt)&&(nt=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var at=a.maxLocation,ut=at.x;return isNaN(ut)&&(ut=z?Math.round(1e3*a.location.x)/1e3:a.location.x),at=at.y,isNaN(at)&&(at=z?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(ot,Math.min(x.x,ut)),Math.max(nt,Math.min(x.y,at))),E!==y&&Ne.free(E),b};function PA(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function Hc(a,y,x,b,E){if(E===void 0&&(E=PA(a)),b.assign(x),y!==null){var z=a.grid;y=E.gridSnapCellSize,a=y.width,y=y.height;var nt=E.gridSnapOrigin,ot=nt.x;if(nt=nt.y,E=E.gridSnapCellSpot,z!==null){var at=z.gridCellSize;isNaN(a)&&(a=at.width),isNaN(y)&&(y=at.height),z=z.gridOrigin,isNaN(ot)&&(ot=z.x),isNaN(nt)&&(nt=z.y)}z=Ne.allocAt(0,0),z.yi(0,0,a,y,E),En.No(x.x,x.y,ot+z.x,nt+z.y,a,y,b),Ne.free(z)}}function oc(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Gi&&(y.suspendsRouting=!0)}function Qc(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof Gi&&(x.suspendsRouting=!1,Iv(x)&&x.bb())}a.Mr=!1}}function od(a,y,x){return y=y.containingGroup,y!==null&&(a=od(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}Xt=_n.prototype,Xt.Pd=function(a,y,x){if(x===void 0)return new ah(ds);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new ah(new Ne(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new ah(x.copy())};function lf(a,y,x){if(y.diagram!==null&&y.diagram!==a&&qe("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&qe("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&qe("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&qe("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&&qe("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Xt.Al=function(a){lf(this,a,null),a.Xe(this);var y=this.Wa,x=y.count-1;if(!a.isTemporary)for(;0<=x&&y.M(x).isTemporary;)x--;return y.Gb(x+1,a),this.cc!==null&&this.cb(gl,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Xt.Ww=function(a,y){lf(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Hl,"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(gl,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},Xt.Cy=function(a,y){lf(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Hl,"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(gl,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},Xt.kA=function(a){if(a.diagram!==this&&qe("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(Hl,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Xt.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Xt.Yw=function(a){return this.pf===null&&(this.pf=new Pi),this.pf.add(a),this.model.Pe(a),this},Xt.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Xt.Pe=function(a){return this.zg===null&&(this.zg=new Pi),this.zg.add(a),this},Xt.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Xt.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==oh&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},Xt.cb=function(a,y,x,b,E,z,nt){z===void 0&&(z=null),nt===void 0&&(nt=null);var ot=new Ea;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)},Xt.g=function(a,y,x,b,E){this.cb(Fa,a,this,y,x,b,E)},_n.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===Fa){var E=a.object;if(Qa(E,a.propertyName,a.I(y)),E instanceof pn){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===gl){var nt=a.object,ot=a.newParam,at=a.newValue;if(nt instanceof ci)if(typeof ot=="number"&&at instanceof pn){y?nt.pc(ot):nt.Gb(ot,at);var ut=nt.part;ut!==null&&ut.Wb()}else typeof ot=="number"&&at instanceof Vl&&(at.isRow?Vc(nt,ot,y?void 0:at):qd(nt,ot,y?void 0:at));else if(nt instanceof ga){var ct=a.oldParam===!0;typeof ot=="number"&&at instanceof Xr&&(y?(at.isSelected=!1,at.isHighlighted=!1,at.Wb(),nt.pc(ct?ot:-1,at,ct)):nt.oi(ot,at,ct))}else nt instanceof _n?typeof ot=="number"&&at instanceof ga&&(y?this.Wa.mb(ot):(at.Xe(this),this.Wa.Gb(ot,at))):qe("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===Hl){var yt=a.object,kt=a.oldParam,zt=a.oldValue;if(yt instanceof ci)typeof kt=="number"&&zt instanceof pn?y?yt.Gb(kt,zt):yt.pc(kt):typeof kt=="number"&&zt instanceof Vl&&(zt.isRow?Vc(yt,kt,y?zt:void 0):qd(yt,kt,y?zt:void 0));else if(yt instanceof ga){var Zt=a.newParam===!0;typeof kt=="number"&&zt instanceof Xr&&(y?0>yt.Pa.indexOf(zt)&&yt.oi(kt,zt,Zt):(zt.isSelected=!1,zt.isHighlighted=!1,zt.Wb(),yt.pc(Zt?kt:-1,zt,Zt)))}else yt instanceof _n?typeof kt=="number"&&zt instanceof ga&&(y?(zt.Xe(this),this.Wa.Gb(kt,zt)):this.Wa.mb(kt)):qe("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==oh&&qe("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},_n.prototype.Ea=function(a){return this.undoManager.Ea(a)},_n.prototype.eb=function(a){return this.undoManager.eb(a)},_n.prototype.Kf=function(){return this.undoManager.Kf()},_n.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}},_n.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},_n.prototype.rp=function(){this.partManager.rp()};function uA(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,Th(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,Th(a);else{a.vb=!0;var E=a.viewportBounds.copy(),z=a.Aa,nt=a.ya,ot=a.zoomPoint.x,at=a.zoomPoint.y,ut=a.contentAlignment;isNaN(ot)&&(ut.$c()?ut.Hf(bu)?ot=0:ut.Hf(fu)&&(ot=z-1):ot=ut.sb()?ut.x*(z-1):z/2),isNaN(at)&&(ut.$c()?ut.Hf(Pu)?at=0:ut.Hf(eu)&&(at=nt-1):at=ut.sb()?ut.y*(nt-1):nt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),x<a.minScale&&(x=a.minScale),x>a.maxScale&&(x=a.maxScale),z=Ne.allocAt(a.pa.x+ot/y-ot/x,a.pa.y+at/y-at/x),a.position=z,Ne.free(z),a.Ca=x,Th(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),sh(a,!1),b.zb&&(Ra(b)||b.ce.add(b.H,"scale",y,a.Ca))}}_n.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!==Ka||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof ie&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Yt(E,this)),this.vb||this.invalidateViewport(a,y),Pc(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=b,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Pc(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=Vi.alloc(),E=1,z=1,nt=x.O.s,ot=nt.length,at=0;at<ot;at++){var ut=nt[at],ct=Math.abs(ut.interval);2>ct||(Ga(ut.figure)?z=z*ct/En.vx(z,ct):E=E*ct/En.vx(E,ct))}if(nt=x.gridCellSize,b.h(z*nt.width,E*nt.height),y!==void 0)E=y.width,z=y.height,a=y.x,nt=y.y;else{if(y=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=Ne.alloc(),En.No(a,nt,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),Vi.free(b),x.part.location=y,Ne.free(y)}}_n.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)}},_n.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))},_n.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),ui(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof Xr||qe("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 Xr||qe("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},_n.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()}},Xt=_n.prototype,Xt.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Xt.Jz=function(a){a=new Ci().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 Xr||qe("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Xt.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=Ne.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)),Ne.free(z);return}qe("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):qe("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Ne.free(z)},Xt.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)},Xt.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Xt.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)},Xt.zA=function(a){var y=this.Ab,x=a.x,b=a.y,E=x+a.width,z=b+a.height,nt=y.m11,ot=y.m12,at=y.m21,ut=y.m22,ct=y.dx,yt=y.dy,kt=x*nt+b*at+ct;y=x*ot+b*ut+yt;var zt=E*nt+b*at+ct;return a=E*ot+b*ut+yt,b=x*nt+z*at+ct,x=x*ot+z*ut+yt,nt=E*nt+z*at+ct,E=E*ot+z*ut+yt,z=Math.min(kt,zt),kt=Math.max(kt,zt),zt=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),kt=Math.max(kt,b),zt=Math.min(zt,x),y=Math.max(y,x),z=Math.min(z,nt),kt=Math.max(kt,nt),zt=Math.min(zt,E),y=Math.max(y,E),new ai(z,zt,kt-z,y-zt)},Xt.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),Wo(a.copy(),this.Ab)};function KA(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function bd(a){return a=Pa.get(a),a!==null?new a:new Vs}_n.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===oh&&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===oh){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Rl(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||Ao(z),b==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),b!=="CommittedTransaction"&&b!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var nt=a.isTransactionFinished;if(nt&&(KA(this),this.As.clear(),la(this.animationManager)),!this.Rt&&nt&&this.lastInput.targetDiagram){this.Rt=!0;var ot=this;Si(function(){ot.currentTool.standardMouseOver(),ot.Rt=!1},10)}}}finally{this.aa=!0}}}};function zc(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)Kc(a,y[b])}function Kc(a,y){if(y instanceof hc){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof Ci&&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 hc){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 Ci&&x.Bg.remove(a),kp(b));break}}}}}_n.prototype.Wd=function(){this.partManager.Wd()},_n.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},_n.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},_n.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},_n.prototype.Vb=function(a){return this.partManager.Vb(a)},_n.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Xt=_n.prototype,Xt.Lc=function(a){return this.partManager.Lc(a)},Xt.ii=function(a){return this.partManager.ii(a)},Xt.Kc=function(a){return this.partManager.Kc(a)},Xt.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:Os(Cs(y)))},Xt.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:Os(Cs(y)))};function Th(a){var y=a.pa,x=a.Ca;a.Rw.h(y.x,y.y,Math.max(a.Aa,0)/x,Math.max(a.ya,0)/x),a.vd=!0}function bA(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),sh(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Xt.Va=function(){if(this.Zi){var a=ai.alloc();bA(this,this.computeBounds(a)),ai.free(a)}},Xt.rz=function(){for(var a=new Ci,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},Xt.qz=function(){return this.ai.iterator},Xt.Uz=function(a){Rl(this),a&&EA(this,!0),this.ld?Xd(this,!1):(this.Jk=!0,vu(this))};function EA(a,y){for(var x=a.ai.iterator;x.next();)cA(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function cA(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)cA(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Xd(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var b=a.undoManager.transactionLevel,E=a.layout,z=a.animationManager;try{b===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=b&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||jl(z,"Layout")),a.xh=!1;for(var nt=a.ai.iterator;nt.next();)Ed(a,nt.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),Rl(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||Ao(z),a.aa=x}}}function Ed(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)Ed(a,E.value,x,b);E=y.layout,E===null||E.isValidLayout||(!x||E.isRealtime||b===0?(y.rh=!y.location.w(),E.doLayout(y),y.C(32),Oa(a,y),E.isValidLayout=!0):a.xh=!0)}}Xt.yz=function(){for(var a=new Pi,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function $d(a){function y(E){var z=E.toLowerCase(),nt=new Pi;x.add(E,nt),x.add(z,nt),b.add(E,E),b.add(z,E)}var x=new wr,b=new wr;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=b}function FA(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function fe(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;qe("Unknown DiagramEvent name: "+y)}Xt.Bj=function(a,y){return a=fe(this,a),a!==null&&a.add(y),this},Xt.am=function(a,y){a=fe(this,a),a!==null&&a.remove(y)},Xt.R=function(a,y,x){var b=fe(this,a),E=new wd;if(E.diagram=this,a=FA(this,a),a!==null&&(E.name=a),y!==void 0&&(E.subject=y),x!==void 0&&(E.parameter=x),y=b.length,y===1)b.M(0)(E);else if(y!==0)for(b=b.Fa(),x=0;x<y;x++)(0,b[x])(E)};function yn(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Xt.Yj=function(a,y){return wi(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},_n.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Yu(this,a):a.assign(this.documentBounds)};function wi(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new bm(a.avoidanceCellSize)),E.vs||E.group!==x||E.Yx!==b){if(E.Hx=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),E.Ix=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=_i(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&&hr(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 cr&&hr(a,nt,b,y);ai.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&c1(E);return E}function _i(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?_i(a,y.containingGroup):null}function hr(a,y,x,b){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(b),a=a.Xh;var E=y.x,z=y.y;if(Rp(a,E,z))for(x=(z-a.Od)/a.sc|0,b=Math.min((E+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),E=(E-a.Nd)/a.rc|0;E<=b;E++)if(z=a.ac[E],z.fill)z.fill(Mf,x,y+1);else for(var nt=x;nt<=y;nt++)z[nt]=Mf}else if(y instanceof ko)for(y=y.memberParts;y.next();)E=y.value,E instanceof cr&&hr(a,E,x,b)}}function Ur(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}_n.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():So(this)};function So(a){a.vk===-1&&(a.vk=Si(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),bA(a,y),ai.free(y),a.Fc=!0,a.bd(),So(a))}},a.vp))}_n.prototype.ug=function(){this.vk!==-1&&(Le.clearTimeout(this.vk),this.vk=-1)},_n.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=Ne.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(ds)||(y=new Ne(y.x+z.x/E,y.y+z.y/E)),ai.free(b),Ne.free(z),y},Xt=_n.prototype,Xt.Cs=function(){return null},Xt.av=function(){return null},Xt.bs=function(a,y){this.pj.add(a,y)},Xt.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof ko&&(y.$p=null)})};function gs(a,y,x){function b(){var ct=+new Date;for(z=!0,nt.reset();nt.next();)if(!nt.value[0].al){z=!1;break}z||ct-ut>at?y(x,E,ot):Le.requestAnimationFrame(b)}for(var E=x.callback,z=!0,nt=a.Og.iterator;nt.next();)if(!nt.value[0].al){z=!1;break}if(typeof E!="function"||z)return y(x,E,a);var ot=a,at=x.callbackTimeout||300,ut=+new Date;return Le.requestAnimationFrame(function(){b()}),null}Xt.Wz=function(a){return ps?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Xt.Jx=function(a){return a===void 0&&(a={}),gs(this,this.Xz,a)},Xt.Xz=function(a,y,x){var b=$s(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 Oh+"data":E=b.getImageData(0,0,x.width,x.height);break;case Oh:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&qe('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 $s(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&qe("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 Vi(1/0,1/0):new Vi(2e3,2e3));var ot=y.position||null,at=y.parts||null,ut=y.padding===void 0?1:y.padding,ct=y.background||null,yt=y.omitTemporary;yt===void 0&&(yt=!0);var kt=y.document||document,zt=y.elementFinished||null,Zt=y.showTemporary;Zt===void 0&&(Zt=!yt),y=y.showGrid,y===void 0&&(y=Zt),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof ut=="number"?ut=new Hr(ut):ut instanceof Hr||qe("MakeImage padding must be a Margin or a number."),ut.left=Math.max(ut.left,0),ut.right=Math.max(ut.right,0),ut.top=Math.max(ut.top,0),ut.bottom=Math.max(ut.bottom,0),a.ib.Vc(!0),yt=new Tu(null,kt,void 0,!0);var he=yt.context;if(!(E||z||at||ot))return yt.width=a.Aa+Math.ceil(ut.left+ut.right),yt.height=a.ya+Math.ceil(ut.top+ut.bottom),x==="SVG"?b===null?null:(b.resize(yt.width,yt.height,yt.width,yt.height),b.ownerDocument=kt,b.hs=zt,$a(a,b.context,ut,new Vi(yt.width,yt.height),a.Ca,a.pa,at,ct,Zt,y),b.context):(a.Xm=!1,$a(a,he,ut,new Vi(yt.width,yt.height),a.Ca,a.pa,at,ct,Zt,y),a.Xm=!0,yt.context);var He=a.Pp,Fe=a.documentBounds.copy();if(Fe.Fv(a.yb),Zt)for(var Ve=a.Wa.s,tn=Ve.length,on=0;on<tn;on++){var Sn=Ve[on];if(Sn.visible&&Sn.isTemporary){Sn=Sn.Pa.s;for(var Gn=Sn.length,nr=0;nr<Gn;nr++){var Fr=Sn[nr];Fr.isInDocumentBounds&&Fr.isVisible()&&(Fr=Fr.actualBounds,Fr.w()&&Fe.ed(Fr))}}}if(Ve=new Ne(Fe.x,Fe.y),at!==null){for(tn=new ai(0,0,0,0),on=!0,Sn=at.iterator,Sn.reset();Sn.next();)Gn=Sn.value,Gn instanceof Xr&&(nr=Gn.layer,nr!==null&&!nr.visible||nr!==null&&!Zt&&nr.isTemporary||!Gn.isVisible()||(Gn=Gn.actualBounds,Gn.w()&&(on?(on=!1,tn.assign(Gn)):tn.ed(Gn))));Fe.width=tn.width,Fe.height=tn.height,Ve.x=tn.x,Ve.y=tn.y}return ot!==null&&ot.w()&&(Ve=ot,z||(z=He)),tn=ot=0,ut!==null&&(ot=ut.left+ut.right,tn=ut.top+ut.bottom),on=Sn=0,E!==null&&(Sn=E.width,on=E.height,isFinite(Sn)&&(Sn=Math.max(0,Sn-ot)),isFinite(on)&&(on=Math.max(0,on-tn))),E!==null&&z!==null?(z==="NaN"&&(z=He),E.w()?(E=Sn,Fe=on):isNaN(on)?(E=Sn,Fe=Fe.height*z):(E=Fe.width*z,Fe=on)):E!==null?E.w()?(z=Math.min(Sn/Fe.width,on/Fe.height),E=Sn,Fe=on):isNaN(on)?(z=Sn/Fe.width,E=Sn,Fe=Fe.height*z):(z=on/Fe.height,E=Fe.width*z,Fe=on):z!==null?z==="NaN"&&nt.w()?(z=Math.min((nt.width-ot)/Fe.width,(nt.height-tn)/Fe.height),z>He?(z=He,E=Fe.width,Fe=Fe.height):(E=nt.width,Fe=nt.height)):(E=Fe.width*z,Fe=Fe.height*z):(z=He,E=Fe.width,Fe=Fe.height),ut!==null?(E+=ot,Fe+=tn):ut=new Hr(0),nt!==null&&(He=nt.width,nt=nt.height,isNaN(He)&&(He=2e3),isNaN(nt)&&(nt=2e3),isFinite(He)&&(E=Math.min(E,He)),isFinite(nt)&&(Fe=Math.min(Fe,nt))),yt.width=Math.ceil(E),yt.height=Math.ceil(Fe),x==="SVG"?b===null?null:(b.resize(yt.width,yt.height,yt.width,yt.height),b.ownerDocument=kt,b.hs=zt,$a(a,b.context,ut,new Vi(Math.ceil(E),Math.ceil(Fe)),z,Ve,at,ct,Zt,y),b.context):(a.Xm=!1,$a(a,he,ut,new Vi(Math.ceil(E),Math.ceil(Fe)),z,Ve,at,ct,Zt,y),a.Xm=!0,yt.context)}Oe.Object.defineProperties(_n.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 _u(this,Le.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new _u(this,Le.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(Le,"resize",this.Ov,!1),this.removeEventListener(Le,"wheel",this.$j,!0),kh===this&&(kh=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),xd(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Ei(a,"0 <= value <= 1",_n,"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),sh(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),sh(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),sh(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),sh(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Ei(a,">= 0",_n,"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&&Ei(a,">= 0",_n,"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 Ei(a,">= 0",_n,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||KA(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&qe("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=nd(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,jl(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=bd(this.cc.type);for(var E=0;E<x.length;E++)this.add(x[E]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(z){return a.Pe(z)}),this.vb=b,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(Le,"pointermove",this.dk,!0),this.addEventListener(Le,"pointerdown",this.ui,!0),this.addEventListener(Le,"pointerup",this.fk,!0),this.addEventListener(Le,"pointerout",this.ek,!0),this.addEventListener(Le,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Le,"wheel",this.$j,!0),this.addEventListener(Le,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Le,"pointermove",this.dk,!0),this.removeEventListener(Le,"pointerdown",this.ui,!0),this.removeEventListener(Le,"pointerup",this.fk,!0),this.removeEventListener(Le,"pointerout",this.ek,!0),this.removeEventListener(Le,"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(Le,"wheel",this.$j,!0),this.removeEventListener(Le,"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=Ne.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),al(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Th(this):(this.vb=!0,a=this.scale,BA(this,this.Sp,this.Aa/a,this.ya/a,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(x,this.viewportBounds,this.Ca,!1)}Ne.free(y)}},initialPosition:{get:function(){return this.zt},set:function(a){this.zt.D(a)||(this.zt=a.J())}},initialScale:{get:function(){return this.At},set:function(a){this.At!==a&&(this.At=a)}},grid:{get:function(){return this.fe===null&&(this.fe=CA(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=CA(this)),a.type!==ci.Grid&&qe("Diagram.grid must be a Panel of type Panel.Grid");var x=y.panel;x!==null&&x.remove(y),this.fe=a,a.name="GRID",x!==null&&x.add(a),Pc(this),this.N(),this.g("grid",y,a)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(a){var y=this.viewSize;y.D(a)||(this.wo=a=a.J(),this.ya=this.Aa=0,a.w()?(this.Aa=a.width,this.ya=a.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),Th(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||qe("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===pc&&sh(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,sh(this,!1),this.g("positionComputation",y,a))}},scaleComputation:{get:function(){return this.fu},set:function(a){var y=this.fu;y!==a&&(this.fu=a,uA(this,this.scale,this.scale),this.g("scaleComputation",y,a))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(a){var y=this.It;y!==a&&(this.It=a,this.g("isVirtualized",y,a))}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&uA(this,y,a)}},defaultScale:{get:function(){return this.Pp},set:function(a){this.Pp=a}},autoScale:{get:function(){return this.yh},set:function(a){var y=this.yh;y!==a&&(this.yh=a,this.g("autoScale",y,a),a!==Ka&&sh(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()||qe("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()||qe("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)):Ei(a,"> 0",_n,"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)):Ei(a,"> 0",_n,"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),sh(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&&qe("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)pm(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Gc&&a!==ml&&a!==Iu&&qe("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 Vi(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(_n,{licenseKey:{get:function(){return Yd.jc()},set:function(a){Yd.add(a.replace(/\s/g,""))}},version:{get:function(){return Gl}}}),_n.prototype.makeImageData=_n.prototype.Jx,_n.prototype.makeImage=_n.prototype.Wz,_n.prototype.cacheGroupExternalLinks=_n.prototype.Fu,_n.prototype.addRenderer=_n.prototype.bs,_n.prototype.makeSVG=_n.prototype.av,_n.prototype.makeSvg=_n.prototype.Cs,_n.prototype.stopAutoScroll=_n.prototype.ug,_n.prototype.doAutoScroll=_n.prototype.gs,_n.prototype.isUnoccupied=_n.prototype.Yj,_n.prototype.raiseDiagramEvent=_n.prototype.R,_n.prototype.removeDiagramListener=_n.prototype.am,_n.prototype.addDiagramListener=_n.prototype.Bj,_n.prototype.findTreeRoots=_n.prototype.yz,_n.prototype.layoutDiagram=_n.prototype.Uz,_n.prototype.findTopLevelGroups=_n.prototype.qz,_n.prototype.findTopLevelNodesAndLinks=_n.prototype.rz,_n.prototype.ensureBounds=_n.prototype.Va,_n.prototype.findLinksByExample=_n.prototype.ls,_n.prototype.findNodesByExample=_n.prototype.ms,_n.prototype.findLinkForData=_n.prototype.Kc,_n.prototype.findNodeForData=_n.prototype.ii,_n.prototype.findPartForData=_n.prototype.Lc,_n.prototype.findLinkForKey=_n.prototype.findLinkForKey,_n.prototype.findNodeForKey=_n.prototype.Vb,_n.prototype.findPartForKey=_n.prototype.findPartForKey,_n.prototype.rebuildParts=_n.prototype.Wd,_n.prototype.transformViewToDoc=_n.prototype.Ps,_n.prototype.transformRectDocToView=_n.prototype.zA,_n.prototype.transformDocToView=_n.prototype.op,_n.prototype.centerRect=_n.prototype.es,_n.prototype.scrollToRect=_n.prototype.tv,_n.prototype.scroll=_n.prototype.scroll,_n.prototype.highlightCollection=_n.prototype.Jz,_n.prototype.highlight=_n.prototype.Iz,_n.prototype.selectCollection=_n.prototype.rA,_n.prototype.select=_n.prototype.select,_n.prototype.updateAllRelationshipsFromData=_n.prototype.rp,_n.prototype.updateAllTargetBindings=_n.prototype.updateAllTargetBindings,_n.prototype.commit=_n.prototype.commit,_n.prototype.rollbackTransaction=_n.prototype.Kf,_n.prototype.commitTransaction=_n.prototype.eb,_n.prototype.startTransaction=_n.prototype.Ea,_n.prototype.raiseChanged=_n.prototype.g,_n.prototype.raiseChangedEvent=_n.prototype.cb,_n.prototype.removeChangedListener=_n.prototype.ik,_n.prototype.addChangedListener=_n.prototype.Pe,_n.prototype.removeModelChangedListener=_n.prototype.mA,_n.prototype.addModelChangedListener=_n.prototype.Yw,_n.prototype.findLayer=_n.prototype.Qj,_n.prototype.removeLayer=_n.prototype.kA,_n.prototype.addLayerAfter=_n.prototype.Cy,_n.prototype.addLayerBefore=_n.prototype.Ww,_n.prototype.addLayer=_n.prototype.Al,_n.prototype.moveParts=_n.prototype.moveParts,_n.prototype.copyParts=_n.prototype.Kj,_n.prototype.removeParts=_n.prototype.Is,_n.prototype.remove=_n.prototype.remove,_n.prototype.add=_n.prototype.add,_n.prototype.clearDelayedGeometries=_n.prototype.bx,_n.prototype.setProperties=_n.prototype.nm,_n.prototype.attach=_n.prototype.Du,_n.prototype.set=_n.prototype.set,_n.prototype.resetInputOptions=_n.prototype.Sx,_n.prototype.setInputOption=_n.prototype.sA,_n.prototype.getInputOption=_n.prototype.Ql,_n.prototype.resetRenderingHints=_n.prototype.Tx,_n.prototype.setRenderingHint=_n.prototype.Xx,_n.prototype.getRenderingHint=_n.prototype.Gf,_n.prototype.maybeUpdate=_n.prototype.bd,_n.prototype.requestUpdate=_n.prototype.$b,_n.prototype.delayInitialization=_n.prototype.Xy,_n.prototype.isUpdateRequested=_n.prototype.Pz,_n.prototype.invalidateDocumentBounds=_n.prototype.Ya,_n.prototype.findObjectsNear=_n.prototype.og,_n.prototype.findPartsNear=_n.prototype.mz,_n.prototype.findObjectsIn=_n.prototype.Cf,_n.prototype.findPartsIn=_n.prototype.ux,_n.prototype.findObjectsAt=_n.prototype.ji,_n.prototype.findPartsAt=_n.prototype.lz,_n.prototype.findObjectAt=_n.prototype.ic,_n.prototype.findPartAt=_n.prototype.Ol,_n.prototype.focusObject=_n.prototype.zz,_n.prototype.alignDocument=_n.prototype.Jy,_n.prototype.zoomToRect=_n.prototype.BA,_n.prototype.zoomToFit=_n.prototype.zoomToFit,_n.prototype.diagramScroll=_n.prototype.kx,_n.prototype.focus=_n.prototype.focus;var Pa=new wr,ba=null,ps=Le.document!==void 0,nu=null,iu="",Ka=new vi(_n,"None",0),zl=new vi(_n,"Uniform",1),Nu=new vi(_n,"UniformToFill",2),sc=new vi(_n,"CycleAll",10),bh=new vi(_n,"CycleNotDirected",11),ac=new vi(_n,"CycleNotDirectedFast",12),LA=new vi(_n,"CycleNotUndirected",13),dA=new vi(_n,"CycleDestinationTree",14),MA=new vi(_n,"CycleSourceTree",15),pc=new vi(_n,"DocumentScroll",1),Fd=new vi(_n,"InfiniteScroll",2),Gc=new vi(_n,"TreeParentCollapsed",21),ml=new vi(_n,"AllParentsCollapsed",22),Iu=new vi(_n,"AnyParentsCollapsed",23),Yd=new Pi,Gl="2.3.10",Oh="image",mc=null,qu=!1;function Wl(){if(ps){var a=Le.document.createElement("canvas"),y=a.getContext("2d"),x=pi("7ca11abfd022028846");y[x]=pi("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",wn.Dx+"4ae6247590da4bb21c324ba3a84e385776",Ho.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",En.za],E=1;5>E;E++)y[pi("7ca11abfd7330390")](pi(b[E-1]),10,15*E);for(y[x]=pi("39f046ebb36e4b"),x=1;5>x;x++)y[pi("7ca11abfd7330390")](pi(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(Ho.prototype.Cd=Ho.prototype.Eu),mc=a}}_n.className="Diagram",_n.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Le.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof _n?y.H:null},_n.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},_n.useDOM=function(a){ps=a?Le.document!==void 0:!1},_n.isUsingDOM=function(){return ps},_n.None=Ka,_n.Uniform=zl,_n.UniformToFill=Nu,_n.CycleAll=sc,_n.CycleNotDirected=bh,_n.CycleNotDirectedFast=ac,_n.CycleNotUndirected=LA,_n.CycleDestinationTree=dA,_n.CycleSourceTree=MA,_n.DocumentScroll=pc,_n.InfiniteScroll=Fd,_n.TreeParentCollapsed=Gc,_n.AllParentsCollapsed=ml,_n.AnyParentsCollapsed=Iu;function Ld(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Dh(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=Le[pi("76a715b2f73f148a")][pi("72ba13b5")]||"";if(a.Rc=!0,ps){var b=_n[pi("76a115b6ed251eaf4692")];if(b)for(var E=Yd.iterator;E.next()&&(b=E.value,b=pi(b).split(pi("39e9")),!(6>b.length));){var z=pi(b[1]).split(".");if(b[4]!=="7da71ca0")break;var nt=pi(wn[pi("6cae19")]).split(".");if(z[0]>nt[0]||z[0]===nt[0]&&z[1]>=nt[1]){var ot=Le[pi("74a900bae4370f8b51")][pi("6fbb13a1c2311e8a57")].toLowerCase();if(nt=ot[pi("73a612b6fb191d")](pi("3aad1ab6e022098b4dc4")),z=pi(b[2]),-1<nt&&(ot=ot[pi("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<ot&&ot<nt),!a.Rc))break;for(nt=x[pi("76ad18b4f73e")],ot=x[pi("73a612b6fb191d")](pi("35e7"))+2;ot<nt;ot++)y+=x[ot];if(nt=y[pi("73a612b6fb191d")](z),0>nt&&z!==pi("7da71ca0ad381e90")&&(nt=y[pi("73a612b6fb191d")](pi("76a715b2ef3e149757"))),0>nt&&(nt=y[pi("73a612b6fb191d")](pi("76a715b2ef3e149757"))),0>nt&&(nt=y[pi("73a612b6fb191d")](pi("2bfa41fdb3784bca12"))),0>nt&&(nt=x[pi("73a612b6fb191d")](pi("7baa19a6f76c1988428554"))),a.Rc=!(0<=nt&&nt<y[pi("73a612b6fb191d")](pi("35"))||y[pi("73a612b6fb191d")](pi("35"))===-1),!a.Rc||x[pi("73a612b6fb191d")](pi("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[pi("73a612b6fb191d")](z)),!a.Rc)||(nt=Le[pi("76a715b2f73f148a")][pi("69ad17a1e03e")],ot=nt[pi("73a612b6fb191d")](pi("7fb002b6ed25128b4da25b2e")),-1<ot&&(a.Rc=!(nt[pi("73a612b6fb191d")](z)>ot),!a.Rc)))break;if(z[0]==="#"){nt=Le.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[pi("79a417a0f0181a8946")]=b,Le.document[pi("78a712aa")]){Le.document[pi("78a712aa")][pi("7bb806b6ed32388c4a875b")](nt),at=Le.getComputedStyle(nt).getPropertyValue(pi("78a704b7e62456904c9b12701b6532a8"));var ut=Le.getComputedStyle(nt).getPropertyValue(pi("75b817b0ea2202"));if(Le.document[pi("78a712aa")][pi("68ad1bbcf533388c4a875b")](nt),at){if(nt=Le[pi("77a902b0eb1b1e804a8a")],ut==="0."+parseInt(ot,10)%100||at.indexOf(parseInt(z[1]+z[2],16))!==-1&&at.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(nt&&nt(pi("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;z<document.styleSheets.length;z++){nt=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ct in nt)if(b===nt[ct].selectorText){a.Rc=!1;break t}}}}else a.Rc=null,a.Rc=!1}}}else{for(ct=x[pi("76ad18b4f73e")],E=x[pi("73a612b6fb191d")](pi("35e7"))+2;E<ct;E++)y+=x[E];x=y[pi("73a612b6fb191d")](pi("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[pi("73a612b6fb191d")](pi("35")))}}}return 0<a.Rc&&a!==a.wy}Ld.className="DiagramHelper";function ah(a){this.j=a===void 0?new Ne:a,this.o=new Ne}Oe.Object.defineProperties(ah.prototype,{point:{get:function(){return this.j},set:function(a){this.j=a}},shifted:{get:function(){return this.o},set:function(a){this.o=a}}});var sd="DraggingInfo";ah.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 Vi(NaN,NaN).freeze(),this.gridSnapCellSpot=rl,this.gridSnapOrigin=new Ne(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"||Le.Element&&a instanceof Element)var x=_n.call(this,a)||this;else x=_n.call(this)||this,y=a;return gt(x),y&&x.nm(y),x}Tn(vt,_n);function gt(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=El,a.layout=new nh}vt.prototype.reset=function(){_n.prototype.reset.call(this),gt(this)},vt.className="Palette";function Bt(a,y){if(typeof a=="string"||Le.Element&&a instanceof Element)var x=_n.call(this,a)||this;else x=_n.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 Xr;var E=new Io;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 Ne(ot.x-nt.width/2,ot.y-nt.height/2)}},x.Pf=function(){b.Ya(),Se(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&&Se(b)},x.autoScale=zl,x.vb=!1,y&&Object.assign(x,y),x}Tn(Bt,_n),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(Ph(this),this.ql===null){var x=new Tu(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),Jt(this)}finally{this.ta=a,this.ib=y}}}_n.prototype.redraw.call(this)},Bt.prototype.gc=function(){if(this.Ka===null&&qe("No div specified"),this.ta===null&&qe("No canvas specified"),!(this.ta instanceof _u)&&(wv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){Ph(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?Jt(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 Jt(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),Pc(y,E),ai.free(E),Rl(y));var z=a.Ab;z.reset(),a.scale!==1&&z.scale(a.scale),a.position.x===0&&a.position.y===0||z.translate(-a.position.x,-a.position.y),E=a.ib,E.scale(a.Mb,a.Mb),E.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),E.yc(),y=y.Wa.s,z=y.length;for(var nt=0;nt<z;nt++){var ot=y[nt],at=a;if(ot.visible&&ot.opacity!==0){var ut=ot.diagram.grid.part;if(!x&&ot.isTemporary)b&&ut.layer===ot&&(ot=lu(ot,E),ut.gc(E,at),E.globalAlpha=ot);else{for(var ct=lu(ot,E),yt=at.scale,kt=ai.alloc(),zt=ot.Pa.s,Zt=zt.length,he=0;he<Zt;he++){var He=zt[he];(b||He!==ut)&&ot.Oj(E,He,at,null,yt,kt,!1)}ai.free(kt),E.globalAlpha=ct}}}}}function Se(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=Vi.alloc();E.h(x.width,x.height),b.desiredSize=E,Vi.free(E),a=2/a.scale,b instanceof Io&&(b.strokeWidth=a),y.location=new Ne(x.x-a/2,x.y-a/2),y.isSelected=!0}}}Bt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Jo;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(),Se(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&&qe("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),Se(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),Se(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(){Pn.call(this),this.j=null}Tn(je,Pn),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 Ne(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Ne(a.x-this.j.x,a.y-this.j.y)),!0)},je.prototype.doActivate=function(){this.j=null,Pn.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 Ne(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new Ne(a.x-this.j.x,a.y-this.j.y)}}},je.className="OverviewDraggingTool";function De(){Xo(this),this.H=kh,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=Jo,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=ys?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 ie&&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 Ci,x=a.selection.iterator;x.next();)ng(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(b){return b.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},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 Ci;for(a=a.selection.iterator;a.next();)ng(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},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)nu=null,iu="";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 Pi,x.addAll(z),nu=x,iu=y.model.dataFormat}}y.R("ClipboardChanged",x)},De.prototype.pasteFromClipboard=function(){var a=new Ci,y=nu;if(y===null)return a;var x=this.diagram;if(iu!==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);yh(y,z,new Ne(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||nu===null||nu.count===0||iu!==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===Ka&&(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!==Ka?!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===Ka&&(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!==Ka?!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;jl(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=Jo):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Ao(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;jl(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=ln(this,a,[a]);if(E.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var at=E.pop();0<E.length&&at instanceof cr&&at.isTreeExpanded&&(!(at instanceof ko)||at.isSubGraphExpanded);)at=E.pop();0<E.length?(at instanceof Xr&&y.tv(at.actualBounds),at instanceof cr&&!at.isTreeExpanded&&(at.isTreeExpanded=!0),at instanceof ko&&!at.isSubGraphExpanded&&(at.isSubGraphExpanded=!0)):(at instanceof Xr&&y.es(at.actualBounds),y.am("LayoutCompleted",nt)),y.eb("Scroll To Part")},nt=function(){Si(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 ln(a,y,x){if(y.isVisible())return x;if(y instanceof Ms)ln(a,y.adornedPart,x);else if(y instanceof Gi){var b=y.fromNode;b!==null&&ln(a,b,x),y=y.toNode,y!==null&&ln(a,y,x)}else y instanceof cr&&(b=y.labeledLink,b!==null&&ln(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),ln(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),ln(a,y,x));return x}De.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Xr)?!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"),jl(y.animationManager,"Collapse Tree");var x=new Pi;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof cr&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},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 cr&&a.isTreeExpanded))return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof cr&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},De.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),jl(y.animationManager,"Expand Tree");var x=new Pi;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof cr&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},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 cr)||a.isTreeExpanded)return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof cr&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},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 Pi,z=a.selection.iterator;z.next();){var nt=z.value;nt.Zc()&&nt.canGroup()&&E.add(nt)}for(var ot=new Pi,at=E.iterator;at.next();){var ut=at.value;z=!1;for(var ct=E.iterator;ct.next();)if(ut.Td(ct.value)){z=!0;break}z||ot.add(ut)}if(0<ot.count){var yt=ot.first().containingGroup;if(yt!==null)for(;yt!==null;){E=!1;for(var kt=ot.iterator;kt.next();)if(!kt.value.Td(yt)){E=!0;break}if(E)yt=yt.containingGroup;else break}if(x instanceof ko)ru(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var zt=y.copyNodeData(x);On(zt)&&(y.xf(zt),b=a.ii(zt))}if(b!==null){yt!==null&&this.isValidMember(yt,b)&&(b.containingGroup=yt);for(var Zt=ot.iterator;Zt.next();){var he=Zt.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 oi(a){var y=or();for(a=a.iterator;a.next();){var x=a.value;x instanceof Gi||y.push(x)}a=new Ci,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 Lr(y),a}De.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Gi)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 Pi;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof ko&&z.canUngroup()&&b.add(z)}var nt=new Pi;if(0<b.count){y.clearSelection(!0);for(var ot=b.iterator;ot.next();){var at=ot.value;at.expandSubGraph();var ut=at.containingGroup,ct=ut!==null&&ut.data!==null?x.wa(ut.data):void 0;nt.addAll(at.memberParts);for(var yt=nt.iterator;yt.next();){var kt=yt.value;if(kt.isSelected=!0,!(kt instanceof Gi)){var zt=kt.data;zt!==null?x.mp(zt,ct):kt.containingGroup=ut}}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 ko))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ko&&y.canUngroup())return!0;return!1},De.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=oi(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"),jl(y.animationManager,"Collapse SubGraph");var x=new Pi;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 ko&&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 ko&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ko&&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"),jl(y.animationManager,"Expand SubGraph");var x=new Pi;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 ko&&!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 ko&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ko&&!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 oa&&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 oa))return!1;if(a=a.part,a!==null&&a.canEdit())return!0}else for(y=y.selection.iterator;y.next();)if(a=y.value,a.canEdit()&&(a=a.Nl(function(x){return x instanceof oa&&x.editable}),a!==null))return!0;return!1},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 pn?E=a.ga(bo):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new Ne(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,us(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 wr,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 Gi&&(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||qe("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",gc=function(){return new De};function pn(){Xo(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Ne(NaN,NaN).freeze(),this.jd=Na,this.Ab=new Ho,this.wh=new Ho,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Su,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=Ls,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 ki,bi,yr,kr,qr,vo,Yo,Mo,ss,ks;pn.prototype.cloneProtected=function(a){a.l=this.l|6144,a.pb=this.pb,a.bn=this.bn,a.Ma=this.Ma,a.pa.assign(this.pa),a.jd=this.jd.J(),this.Lb!==null?a.Lb=this.Lb.copy():a.Lb=null,a.Ca=this.Ca,a.Kb=this.Kb,a.Kg=this.Kg.J(),a.uc.assign(this.uc),a.Ib.assign(this.Ib),a.dc.assign(this.dc),a.Yn=this.Yn,this.ba!==null&&(a.ba=this.ba.copy()),a.Jb=this.Jb.J(),a.sk=this.sk.J(),a.io=this.io,a.Ag=this.Ag,this.Ua!==null&&(a.Ua=this.Ua.copy()),this.A!==null&&(a.A=this.A.nc?this.A:this.A.copy()),this.Dh!==null&&(a.Dh=Cr(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},pn.prototype.Vw=function(a){var y=this.Dh;if(ui(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},pn.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},pn.prototype.clone=function(){var a=new this.constructor;if(this.cloneProtected(a),this.Dh!==null)for(var y=0;y<this.Dh.length;y++){var x=this.Dh[y];a[x]=this[x]}return a},pn.prototype.copy=function(){return this.clone()},Xt=pn.prototype,Xt.qb=function(a){a.classType===Gi?a.name.indexOf("Orient")===0?this.segmentOrientation=a:qe("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===pn&&(this.stretch=a)},Xt.toString=function(){return er(this.constructor)+"#"+xs(this)},Xt.th=function(){this.A!==null&&(this.A.nc=!0)};function No(a){a.A===null?a.A=new GA:a.A.nc&&(a.A=a.A.copy())}Xt.Xc=function(){if(this.ba===null){var a=new Kf;a.Xi=Za,a.yj=Za,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Xt.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===Fa&&hu(this)&&ea(this,ot,y),z=this.diagram,this.animationTriggers===null||z===null||!z.pi||z.undoManager.isUndoingRedoing||z.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&z.animationManager.isEnabled&&!z.animationManager.isTicking&&(this.jo===null&&(this.jo=new wr),nt=z.undoManager.transactionLevel===0,a.startCondition===Ba?nt=!0:a.startCondition===pl&&(nt=!1),nt?(z=new _a,fa(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()):(jl(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof ci&&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 ci&&Al(ot,function(at){at.data!==null&&at.l&16777216&&at.La(y)})};function ea(a,y,x){var b=a.ih();if(b!==null)for(var E=a.localBindings.iterator;E.next();){var z=E.value,nt=null;if(z.sourceName!==null){if(nt=k1(z,b,a),nt===null)continue;z.sp(a,nt,x,null)}else if(z.isToModel){var ot=y.diagram;ot===null||ot.skipsModelSourceBindings||z.sp(a,ot.model.modelData,x,b)}else{if(ot=b.data,ot===null)continue;var at=y.diagram;at===null||at.skipsModelSourceBindings||z.sp(a,ot,x,b)}nt===a&&(ot=b.ks(z.Ai),ot!==null&&z.Mv(ot,nt,x))}}Xt.ks=function(a){return this.bindingId===a?this:null},Xt.g=function(a,y,x){this.cb(Fa,a,this,y,x)},Xt.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 Ho);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),z.pp(E)}};function Bl(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}Xt.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?Gs(a.x,a.y,0,0,0,b.height)<=y||Gs(a.x,a.y,0,b.height,b.width,b.height)<=y||Gs(a.x,a.y,b.width,b.height,b.width,0)<=y||Gs(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},Xt.se=function(){return!0},Xt.ca=function(a){var y=Ne.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Ne.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=Ks(x.x-nt*at,x.y-nt*at,x.width+z*at,x.height+z*at,y.x,y.y),Ne.free(y),a}return E=!1,(this instanceof Ms||this instanceof Io?Ks(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)),Ne.free(y),E},Xt.gh=function(a){var y=this.naturalBounds;return Ks(0,0,y.width,y.height,a.x,a.y)},Xt.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=Ne.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)))),Ne.free(E),ai.free(y),b},Xt.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=Ne.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)))),Ne.free(E),b},Xt.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=Ne.allocAt(0,0),E=Ne.allocAt(0,x.height),z=Ne.allocAt(x.width,x.height),nt=Ne.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=Ne.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)))),Ne.free(at),ai.free(x),!ot&&(En.us(a,b,E)||En.us(a,E,z)||En.us(a,z,nt)||En.us(a,nt,b))&&(ot=!0)}return Ne.free(b),Ne.free(E),Ne.free(z),Ne.free(nt),ot},Xt.ga=function(a,y){if(y===void 0&&(y=new Ne),a instanceof fr){var x=this.naturalBounds;y.h(a.x*x.width+a.offsetX,a.y*x.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Xt.mi=function(a){a===void 0&&(a=new ai);var y=this.naturalBounds,x=this.oe,b=Ne.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),Es(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),Es(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),Es(a,b.x,b.y,0,0),Ne.free(b),a},Xt.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},Xt.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Xt.qs=function(a,y){return y===void 0&&(y=new Ne),y.assign(a),this.oe.Cd(y),y},Xt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Xt.Sj=function(a,y,x,b,E){var z=this.transform,nt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*nt,at=-z.m12*nt,ut=-z.m21*nt,ct=z.m11*nt,yt=nt*(z.m21*z.dy-z.m22*z.dx),kt=nt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,En.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(nt=a*ot+y*ut+yt,a=a*at+y*ct+kt,y=x*ot+b*ut+yt,x=x*at+b*ct+kt,E.h(0,0),b=this.naturalBounds,x=En.Ff(0,0,b.width,b.height,nt,a,y,x,E),E.transform(z),x)},pn.prototype.measure=function(a,y,x,b){if(wh(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 ci;switch(lh(this,!0)){case bi:nt=E=0,ot&&(y=a=1/0);break;case ki:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(nt=y);break;case kr: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()||qe("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),kl(this,!1)}},pn.prototype.Wl=function(){},pn.prototype.Dd=function(){return!1},pn.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=ai.alloc();z.assign(this.Ib),this.Ib.ka(),th(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&&Tl(E)&&(E=E.panel),E!==null&&(E=E.dc,b=this.measuredBounds,this.areaBackground!==null&&(b=this.Ib),x=y+b.height,b=a+b.width,x=!(0<=a+.05&&b<=E.width+.05&&0<=y+.05&&x<=E.height+.05),this instanceof oa&&(a=this.naturalBounds,this.Lq>a.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||qe("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Wc(this,!1),ai.free(z)},Xt=pn.prototype,Xt.eh=function(){};function ku(a,y,x,b,E){if(a.Ib.h(y,x,b,E),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var nt=x.top+x.bottom;switch(x=z.width+y,z=z.height+nt,b+=y,E+=nt,y=lh(a,!0),x===b&&z===E&&(y=bi),y){case bi:(x>b||z>E)&&(kl(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case ki:kl(a,!0),a.measure(b,E,0,0);break;case kr:kl(a,!0),a.measure(b,z,0,0);break;case qr:kl(a,!0),a.measure(x,E,0,0)}}}Xt.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(),Hh(a,y)||(x.oh(),this.Pn(x)))},Xt.Pn=function(a){this.portId!==null&&(Cv(a,!0),a instanceof cr&&$y(a,this))},Xt.gc=function(a,y){if(!vl(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 ci&&Tl(this),nt=this.Ib;if(z){var ot=this.Ib,at=this.dc,ut=this.areaBackground,ct=this.Ma;ut===null&&ct===null||a.yc(),ut!==null&&(Ca(this,a,ut,!0,!0,at,ot),ut instanceof Us&&ut.type===Ee?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ut)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),ct!==null&&(Ca(this,a,ct,!0,!1,at,ot),ct instanceof Us&&ct.type===Ee?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ct)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),this.hh(a,y)}if(!z&&(z||nt.width!==0&&nt.height!==0&&!isNaN(nt.x)&&!isNaN(nt.y))){z=this.transform,ot=this.panel,this.l&4096&&Nl(this),ut=this.part,at=!1;var yt=0;ut&&y.Gf("drawShadows")&&(at=ut.isShadowed)&&(ct=ut.shadowOffset,yt=Math.max(ct.y,ct.x)*y.scale*y.Mb),ct=this.Dd();var kt;if(!(kt=y.$i||!ct)){var zt=this.naturalBounds;kt=this.wh;var Zt=kt.m11,he=kt.m21,He=kt.dx,Fe=kt.m12,Ve=kt.m22,tn=kt.dy,on,Sn=on=0;kt=on*Zt+Sn*he+He;var Gn=on*Fe+Sn*Ve+tn;on=zt.width+yt,Sn=0;var nr=on*Zt+Sn*he+He;on=on*Fe+Sn*Ve+tn,Sn=Math.min(kt,nr);var Fr=Math.min(Gn,on),vr=Math.max(kt+0,nr)-Sn,Ki=Math.max(Gn+0,on)-Fr;kt=Sn,Gn=Fr,on=zt.width+yt,Sn=zt.height+yt,nr=on*Zt+Sn*he+He,on=on*Fe+Sn*Ve+tn,Sn=Math.min(kt,nr),Fr=Math.min(Gn,on),vr=Math.max(kt+vr,nr)-Sn,Ki=Math.max(Gn+Ki,on)-Fr,kt=Sn,Gn=Fr,on=0,Sn=zt.height+yt,nr=on*Zt+Sn*he+He,on=on*Fe+Sn*Ve+tn,Sn=Math.min(kt,nr),Fr=Math.min(Gn,on),vr=Math.max(kt+vr,nr)-Sn,Ki=Math.max(Gn+Ki,on)-Fr,kt=Sn,Gn=Fr,yt=y.viewportBounds,zt=yt.x,Zt=yt.y,kt=!(kt>yt.width+zt||zt>vr+kt||Gn>yt.height+Zt||Zt>Ki+Gn)}if(kt){if(kt=(this.l&256)!==0,a.clipInsteadOfFill&&(kt=!1),this instanceof oa&&(a.font=this.font),kt){if(Gn=ot.se()?ot.naturalBounds:ot.actualBounds,vr=Math.max(nt.x,Gn.x),Ki=Math.max(nt.y,Gn.y),yt=Math.min(nt.right,Gn.right)-vr,zt=Math.min(nt.bottom,Gn.bottom)-Ki,Zt=this.tb,Zt!==null&&(vr=Zt.x,Ki=Zt.y,yt=Zt.width,zt=Zt.height),vr>nt.width+nt.x||nt.x>Gn.width+Gn.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(vr,Ki,yt,zt),a.clip()}if(ct){if(!ut.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}at&&(Gn=ut.shadowOffset,a.Ev(Gn.x*y.scale*this.scale*y.Mb,Gn.y*y.scale*this.scale*y.Mb,ut.shadowBlur),kd(a),a.shadowColor=ut.shadowColor)}at&&this.shadowVisible===!0?kd(a):at&&this.shadowVisible===!1&&ld(a),ut=this.naturalBounds,this.areaBackground!==null&&(a.yc(),yu(this,a,ut,nt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),at&&dl(this,ot)&&this.shadowVisible===null&&ld(a),this.Ma!==null&&(a.yc(),La(this,a,ut,nt)),at&&(this.Ma!==null||this.areaBackground!==null||dl(this,ot))?(wu(this,!0),this.shadowVisible===null&&ld(a)):wu(this,!1),this.hh(a,y),at&&this.l&512&&kd(a),ct&&at&&ld(a),kt&&(a.restore(),a.Vc(this instanceof ci)),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 dl(a,y){return y===null?!1:(Tl(y)&&(y=y.panel),(y.l&512)!==0||(y.type===ci.Auto||y.type===ci.Spot)&&y.Pb()!==a)}Xt.Dv=function(){};function yu(a,y,x,b){Ca(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof Us&&a.areaBackground.type===Ee?(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 La(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 Us&&a.Ma.type===Ee?(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 Sa(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===ci.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 vl(a,y,x){if(!(y instanceof eh))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&&Sa(a,b,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*x.scale*a.scale*x.Mb,z.y*x.scale*a.scale*x.Mb,a.shadowBlur),kd(y),y.shadowColor=a.shadowColor}a instanceof oa&&(y.font=a.font),y.yd=null;var nt=a.transform;z=a instanceof ci;var ot=a instanceof ci?Tl(a):!1;a.l&4096&&Nl(a);var at=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,z&&ot?(Ec(y,1,0,0,1,0,0),a.svg=y.ad):z?(Ec(y,nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy),a.svg=y.ad):Ec(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var ut=nt.copy().Vj();y.rb.ha=[ut.m11,ut.m12,ut.m21,ut.m22,ut.dx,ut.dy],yu(a,y,E,at),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy]),a.background!==null&&(z?(ot&&(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy]),La(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],La(a,y,E,at)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),nt=y.yd,E=a.part,ot=!1,E&&x.Gf("drawShadows")&&(ot=E.isShadowed),y.clipInsteadOfFill&&(ot=!1),a.Dd()&&ot&&kd(y),ot&&a.shadowVisible===!0?kd(y):ot&&a.shadowVisible===!1&&ld(y),E=a.panel,ot&&dl(a,E)&&a.shadowVisible===null&&ld(y),y.Il&&(ut=x.computePixelRatio(),ut="drop-shadow("+y.shadowOffsetX/ut+"px "+y.shadowOffsetY/ut+"px "+y.shadowBlur/ut/2+"px "+y.shadowColor+")",a.background!==null&&nt.Ma.setAttributeNS(null,"filter",ut),a.areaBackground!==null&&nt.gd.setAttributeNS(null,"filter",ut)),ot&&(a.Ma!==null||a.areaBackground!==null||dl(a,E))?(wu(a,!0),a.shadowVisible===null&&ld(y)):wu(a,!1),E=ot,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),nt=y.Gv.hs,ot=z?a.svg:y.yd,ut=a.svg,!z&&ut!==null&&ot!==ut&&ut.parentNode===a.panel.svg?(a.svg.replaceWith(ot),a.svg=ot,ot!==null&&a.$o(y,b,at,ot),yl(y,ut),!0):(a.svg=ot,nt!==null&&ot===null&&(Id(y),y.nh.pop()),ot===null||(a.$o(y,b,at,ot),y.Il&&(x=x.computePixelRatio(),a.Dv(ot,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),E&&a.l&512&&kd(y),a.Dd()&&ld(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&ot.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&ot.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(ot):y.Nj.prepend(ot),y.ti=ot):b!==null&&Sa(a,b,ot),nt!==null&&nt(a,ot)),!0)}Xt.$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"+da++,ot=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:nt,height:x}),this instanceof ci&&(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"),yl(a,b)};function yl(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Bo(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=Cs(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()}}Xt.hh=function(){},Xt.lv=function(){this.Uc=!0},Xt.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 ci?Tl(this):!1;if(!(this instanceof ci&&E))if(this instanceof hc){var z=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],z!==null&&Sp(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",zg(a)):y.setAttributeNS(null,"transform",zg(a))}else if(!x||this instanceof ci)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof Io){z=y.getElementsByTagName("path");for(var nt=0;nt<z.length;nt++)z[nt].setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");return z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(nt=b.copy().Vj(),a.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy],yu(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(nt=y.gd.getAttribute("filter"),nt!==null&&a.ad.setAttribute("filter",nt),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&Td(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(Td(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof ci))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),La(this,a,this.naturalBounds,this.actualBounds),y.Ma?(Td(a,y.Ma),x=y.Ma.getAttribute("filter"),x!==null&&a.ad.setAttribute("filter",x),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),z&&Td(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Xt.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===Qt)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var ut=a.kq();if(ot=z.width,at=z.height,E?(ot=nt.width,at=nt.height):b||(ot+=ut,at+=ut),(z=y instanceof XA)&&x.xe&&(x.type===sn||x.yk===ot&&x.ft===at))var ct=x.xe;else{var yt=0,kt=0,zt=0,Zt=0,he=0,He=0;if(He=he=0,E?(he=nt.x,He=nt.y):b||(he-=ut/2,He-=ut/2),yt=x.start.x*ot+x.start.offsetX,kt=x.start.y*at+x.start.offsetY,zt=x.end.x*ot+x.end.offsetX,Zt=x.end.y*at+x.end.offsetY,yt+=he,zt+=he,kt+=He,Zt+=He,x.type===de)ct=y.createLinearGradient(yt,kt,zt,Zt);else if(x.type===Ee)He=isNaN(x.endRadius)?Math.max(ot,at)/2:x.endRadius,isNaN(x.startRadius)?(he=0,He=Math.max(ot,at)/2):he=x.startRadius,ct=y.createRadialGradient(yt,kt,he,zt,Zt,He);else if(x.type===sn)try{ct=y.createPattern(x.pattern,"repeat")}catch(Ve){ct=null}if(x.type!==sn&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)ct.addColorStop(E.key,E.value);if(z&&(x.xe=ct,ct!==null&&(x.yk=ot,x.ft=at),ct===null&&x.type===sn&&x.yk!==-1)){x.yk=-1;var Fe=a.diagram;Fe!==null&&x.yk===-1&&Si(function(){Fe.redraw()},600)}}b?y.fillStyle=ct:y.strokeStyle=ct}}}Xt.rg=function(a){if(a instanceof ci)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},Xt.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Xt.If=function(){for(var a=this instanceof ci?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Nl(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){lc(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)}lc(a,!1),uh(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,uh(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,uh(a,!1)))}Xt.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Ne.alloc();z.yi(y,x,b,E,bo),a.rotate(this.Kb,z.x,z.y),Ne.free(z)}},Xt.v=function(a){if(!wh(this)){a===void 0&&(a=!1),kl(this,!0),Wc(this,!0);var y=this.panel;y===null||a||y.v()}},Xt.Uj=function(){wh(this)||(kl(this,!0),Wc(this,!0))};function Il(a){if(!th(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof cr&&a.Bd(),y.$b())),Wc(a,!0)}}Xt.Uk=function(){!(this.l&2048)&&(lc(this,!0),uh(this,!0))},Xt.Wu=function(){uh(this,!0)},Xt.N=function(){var a=this.part;a!==null&&a.N()};function lh(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===ci.Table?Da(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===ci.Auto&&b.Pb()===a?Hs(a,ki,y):x===vo?b!==null?b.type===ci.Spot&&b.Pb()===a?Hs(a,ki,y):(x=b.defaultStretch,x===vo?Hs(a,bi,y):Hs(a,x,y)):Hs(a,bi,y):Hs(a,x,y)}function Da(a,y,x,b){var E=a.stretch;if(E!==vo)return Hs(a,E,b);var z=E=null;switch(y.stretch){case qr:z=!0;break;case ki:z=!0}switch(x.stretch){case kr:E=!0;break;case ki:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===kr||y===ki),z===null&&(z=y===qr||y===ki),E===!0&&z===!0?Hs(a,ki,b):E===!0?Hs(a,kr,b):z===!0?Hs(a,qr,b):Hs(a,bi,b)}function Hs(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===kr)return bi;if(y===ki)return qr}else{if(y===qr)return bi;if(y===ki)return kr}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===qr)return bi;if(y===ki)return kr}else{if(y===kr)return bi;if(y===ki)return qr}return y}function wu(a,y){a.l=y?a.l|512:a.l&-513}function hu(a){return(a.l&1024)!==0}function ad(a,y){a.l=y?a.l|1024:a.l&-1025}function lc(a,y){a.l=y?a.l|2048:a.l&-2049}function uh(a,y){a.l=y?a.l|4096:a.l&-4097}function wh(a){return(a.l&8192)!==0}function kl(a,y){a.l=y?a.l|8192:a.l&-8193}function th(a){return(a.l&16384)!==0}function Wc(a,y){a.l=y?a.l|16384:a.l&-16385}Xt.Gj=function(){this.svg=null},Xt.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Xt.Av=function(){},Xt.zv=function(a){return this.pa=a,Il(this),!0},Xt.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Xt.kq=function(){return 0};function Jd(a){var y=a.part;if(y instanceof cr&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||$y(y,a)}}function zf(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof ci?a instanceof cr?a.Bd():a.qm(a,function(x){Jd(x)}):Jd(a))}Xt.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new Jl(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&TA(a)&&qe("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new Pi),this.localBindings.add(E),this},Xt.set=function(a){return Object.assign(this,a),this},Xt.Du=function(a){return Sg(this,a),this},Xt.apply=function(a){return a(this),this},Xt.nm=function(a){return Ah(this,a),this},Xt.pz=function(){return this.ih()},Xt.ih=function(){for(var a=this instanceof ci?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Xt.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new wr),this.animationTriggers.add(a.propertyName,a),this};function Eh(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var b=null,E=null;if(typeof a=="function")E=a;else if(typeof a=="string"){var z=wf.I(a);typeof z=="function"?(x=Cr(arguments),b=z(x),On(b)||qe('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=Le.go[a]}if(b===null&&(E!=null&&E.constructor||qe("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 _n&&1<x.length){z=b;var nt=x[1];(typeof nt=="string"||nt instanceof HTMLDivElement)&&(xd(z,nt),E++)}for(;E<x.length;E++)z=x[E],z===void 0?qe("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):Sg(b,z);return b}function Sg(a,y){if(typeof y=="string")if(a instanceof oa)a.text=y;else if(a instanceof Io)a.figure=y;else if(a instanceof hc)a.source=y;else if(a instanceof ci)y=hh.I(y),y!==null&&(a.type=y);else if(a instanceof Us){var x=ur(Us,y);x!==null?a.type=x:qe("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Wi?(y=ur(Wi,y),y!==null&&(a.type=y)):a instanceof ms&&(y=ur(ms,y),y!==null&&(a.type=y));else if(y instanceof pn)a instanceof ci||qe("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Vl){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 Vl?Xf(b,y):qe("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof vi)typeof a.qb=="function"&&a.qb(y);else if(y instanceof xn)a.type=y;else if(y instanceof Jl)a instanceof pn||a instanceof Vl?a.bind(y):qe("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof vh)a instanceof pn?a.Jv(y):qe("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof el)a instanceof Wi&&a.type===Wi.o?a.figures.add(y):qe("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof ms)a instanceof el?a.segments.add(y):qe("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Wa)a instanceof _n||a instanceof ko?a.layout=y:qe("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(x=0;x<y.length;x++)Sg(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof Us){x=new so;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);Ah(a,x)}else if(a instanceof Vl){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&qe("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)&&qe("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new so;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);Ah(a,E)}else Ah(a,y);else qe('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Md(a,y){wf.add(a,y)}function yf(a,y,x){x===void 0&&(x=null);var b=a[1];if(typeof x=="function"?x(b):typeof b=="string")return a.splice(1,1),b;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}Oe.Object.defineProperties(pn.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new GA),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new GA),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new GA),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(No(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&&(No(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Zh},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new NA),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Zh&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new NA),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1<a&&(a=1);var y=this.segmentFraction;y!==a&&(this.Ua===null&&(this.Ua=new NA),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:ds},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new NA),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:vo},set:function(a){var y=this.stretch;y!==a&&(No(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&&(No(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)&&Ei(a,"0 <= value <= 1",pn,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Ng(y,y.actualBounds)))}},filter:{get:function(){return this.bn},set:function(a){var y=this.bn;y!==a&&(this.bn=a,this.Uc=!0,this.g("filter",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Ng(y,y.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(a){var y=(this.l&1)!==0;y!==a&&(this.l^=1,this.g("visible",y,a),y=this.panel,y!==null?y.v():this.Dd()&&this.Zb(a),this.N(),zf(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(a){var y=(this.l&2)!==0;y!==a&&(this.l^=2,this.g("pickable",y,a))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(a){var y=(this.l&4)!==0;y!==a&&(this.l^=4,this.g("fromLinkableDuplicates",y,a))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(a){var y=(this.l&8)!==0;y!==a&&(this.l^=8,this.g("fromLinkableSelfNode",y,a))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(a){var y=(this.l&16)!==0;y!==a&&(this.l^=16,this.g("toLinkableDuplicates",y,a))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(a){var y=(this.l&32)!==0;y!==a&&(this.l^=32,this.g("toLinkableSelfNode",y,a))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(a){var y=(this.l&64)!==0;y!==a&&(this.l^=64,this.v(),this.g("isPanelMain",y,a))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(a){var y=(this.l&128)!==0;y!==a&&(this.l^=128,this.g("isActionable",y,a))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(a){var y=this.areaBackground;y!==a&&(a!==null&&_t(a,"GraphObject.areaBackground"),a instanceof Us&&a.freeze(),No(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&&_t(a,"GraphObject.background"),a instanceof Us&&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 Xr)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 Ne(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&&qe("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,zf(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,b=this.jd,E=b.width,z=b.height;(E===y||isNaN(E)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Io&&this.qc(),this.g("desiredSize",b,a),hu(this)&&(a=this.part,a!==null&&(ea(this,a,"width"),ea(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Vi(a,this.jd.height).freeze(),this.v(),this instanceof Io&&this.qc(),this.g("desiredSize",y,a),hu(this)&&(a=this.part,a!==null&&ea(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Vi(this.jd.width,a).freeze(),this.v(),this instanceof Io&&this.qc(),this.g("desiredSize",y,a),hu(this)&&(a=this.part,a!==null&&ea(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Po},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(),No(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Ws},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(),No(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&&Nl(this),this.Ab}},oe:{get:function(){return this.l&4096&&Nl(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(No(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:bi},set:function(a){this.reshapingBehavior!==a&&(No(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()&&qe("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Il(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&&Ei(a,">= 0",pn,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&Ei(a,">= 1",pn,"columnSpan"),No(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&&Ei(a,">= 0",pn,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&Ei(a,">= 1",pn,"rowSpan"),No(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&&(No(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof cr||qe("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:Za},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Jd(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Ei(a,">= 0",pn,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Jd(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),Jd(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&Ei(a,">= 0",pn,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Za},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Jd(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Ei(a,">= 0",pn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Jd(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),Jd(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&Ei(a,">= 0",pn,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(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&&(No(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),pn.prototype.trigger=pn.prototype.Jv,pn.prototype.findBindingPanel=pn.prototype.ih,pn.prototype.findTemplateBinder=pn.prototype.pz,pn.prototype.setProperties=pn.prototype.nm,pn.prototype.apply=pn.prototype.apply,pn.prototype.attach=pn.prototype.Du,pn.prototype.set=pn.prototype.set,pn.prototype.isEnabledObject=pn.prototype.If,pn.prototype.isVisibleObject=pn.prototype.Ed,pn.prototype.isContainedBy=pn.prototype.rg,pn.prototype.getNearestIntersectionPoint=pn.prototype.rs,pn.prototype.getLocalPoint=pn.prototype.qs,pn.prototype.getDocumentScale=pn.prototype.Df,pn.prototype.getDocumentAngle=pn.prototype.li,pn.prototype.getDocumentBounds=pn.prototype.mi,pn.prototype.getDocumentPoint=pn.prototype.ga,pn.prototype.intersectsRect=pn.prototype.Yc,pn.prototype.containedInRect=pn.prototype.fh,pn.prototype.containsRect=pn.prototype.Re,pn.prototype.containsPoint=pn.prototype.ca,pn.prototype.raiseChanged=pn.prototype.g,pn.prototype.raiseChangedEvent=pn.prototype.cb,pn.prototype.addCopyProperty=pn.prototype.Vw;var wf=null;pn.className="GraphObject",wf=new wr,Md("Button",function(){function a(x,b){return x.diagram.ic(x.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E},function(E){return E===b})!==null}var y=Eh(ci,ci.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof ci){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"},Eh(Io,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new fr(0,0,2.76142374915397,2.761423749153969),spot2:new fr(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,b){if(b.If()&&b instanceof ci&&(x=b.fb("ButtonBorder"),x instanceof Io)){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 ci&&(x=b.fb("ButtonBorder"),x instanceof Io&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof ci&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Io){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 ci&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Io){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 ci&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof Io){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 ci&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof Io))){var z=E.skipsUndoManager;E.skipsUndoManager=!0;var nt=b._buttonFillPressed;x.fill!==nt&&(x.fill=nt),nt=b._buttonStrokePressed,x.stroke!==nt&&(x.stroke=nt),E.skipsUndoManager=z}}},y}),Md("TreeExpanderButton",function(){var a=Eh("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Eh(Io,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:sa},new Jl("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Jl("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Ms&&(x=x.adornedPart),x instanceof cr){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isTreeExpanded){if(!b.canCollapseTree(x))return}else if(!b.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?b.collapseTree(x):b.expandTree(x)}}},a}),Md("SubGraphExpanderButton",function(){var a=Eh("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Eh(Io,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:sa},new Jl("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 Ms&&(x=x.adornedPart),x instanceof ko){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isSubGraphExpanded){if(!b.canCollapseSubGraph(x))return}else if(!b.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?b.collapseSubGraph(x):b.expandSubGraph(x)}}},a}),Md("ToolTip",function(){return Eh(Ms,ci.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ne(0,3),shadowBlur:5},Eh(Io,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new fr(0,0,4,6),spot2:new fr(1,1,-4,-4)}))}),Md("ContextMenu",function(){return Eh(Ms,ci.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ne(0,3),shadowBlur:5},new Jl("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Md("ContextMenuButton",function(){var a=Eh("Button");a.stretch=kr;var y=a.fb("ButtonBorder");return y instanceof Io&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new fr(0,0,2,3),y.spot2=new fr(1,1,-2,-2)),a}),Md("PanelExpanderButton",function(a){var y=yf(a,"COLLAPSIBLE"),x=Eh("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},Eh(Io,{name:"ButtonIcon",strokeWidth:2},new Jl("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Io&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,E){var z=E.diagram;if(z!==null&&!z.isReadOnly){var nt=E.ih();nt===null&&(nt=E.part),nt!==null&&(E=nt.fb(y),E!==null&&(b.handled=!0,z.Ea("Collapse/Expand Panel"),E.visible=!E.visible,z.eb("Collapse/Expand Panel")))}},x}),Md("CheckBoxButton",function(a){var y=yf(a);return a=Eh("Button",{desiredSize:new Vi(14,14)},Eh(Io,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:ki,geometryStretch:yr,visible:!1},y!==""?new Jl("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof ci){var E=x.diagram;if(!(E===null||E.isReadOnly||y!==""&&E.model.isReadOnly)){x.handled=!0;var z=b.fb("ButtonIcon");E.Ea("checkbox"),z.visible=!z.visible,typeof b._doClick=="function"&&b._doClick(x,b),E.eb("checkbox")}}},a}),Md("CheckBox",function(a){a=yf(a),a=Eh("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Hr(0,1,0,0)});var y=Eh(ci,"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}),pn.None=bi=new vi(pn,"None",0),pn.Default=vo=new vi(pn,"Default",0),pn.Vertical=qr=new vi(pn,"Vertical",4),pn.Horizontal=kr=new vi(pn,"Horizontal",5),pn.Fill=ki=new vi(pn,"Fill",3),pn.Uniform=yr=new vi(pn,"Uniform",1),pn.UniformToFill=Yo=new vi(pn,"UniformToFill",2),pn.FlipVertical=Mo=new vi(pn,"FlipVertical",1),pn.FlipHorizontal=ss=new vi(pn,"FlipHorizontal",2),pn.FlipBoth=ks=new vi(pn,"FlipBoth",3),pn.make=Eh,pn.getBuilders=function(){var a=new wr,y;for(y in wf)if(y!==y.toLowerCase()){var x=wf.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},pn.defineBuilder=Md,pn.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=wf.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof pn))return y&&b.set(y),b;qe('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},pn.takeBuilderArgument=yf;function GA(){this.nc=!1,this.xa="",this.zp=-1,this.nb=this.wm=this.te=null,this.j="",this.hb=this.Di=this.Hb=this.Ch=this.$h=this.F=this.Ha=this.ia=this.V=this.Lh=this.Xd=this.Of=this.Nh=this.Oh=this.Qh=this.Ph=this.Mh=this.Bh=this.Fh=this.zh=null,this.u=Po,this.o=Ws,this.hg=vo,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 NA(){this.u=-1/0,this.o=0,this.F=ds,this.rr=Zh,this.j=this.V="None"}NA.prototype.copy=function(){var a=new NA;return a.u=this.u,a.o=this.o,a.F=this.F.J(),a.rr=this.rr,a.V=this.V,a.j=this.j,a},NA.className="LinkElementSettings";function Kf(){this.yj=this.Xi=Ls,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}Kf.prototype.copy=function(){var a=new Kf;return a.Xi=this.Xi.J(),a.yj=this.yj.J(),a.Vi=this.Vi,a.wj=this.wj,a.Wi=this.Wi,a.xj=this.xj,a.hq=this.hq,a.Tr=this.Tr,a.iq=this.iq,a.Ur=this.Ur,a},Kf.className="LinkSettings";function WA(){this.ha=[1,0,0,1,0,0]}WA.prototype.copy=function(){var a=new WA;return a.ha[0]=this.ha[0],a.ha[1]=this.ha[1],a.ha[2]=this.ha[2],a.ha[3]=this.ha[3],a.ha[4]=this.ha[4],a.ha[5]=this.ha[5],a},WA.prototype.translate=function(a,y){this.ha[4]+=this.ha[0]*a+this.ha[2]*y,this.ha[5]+=this.ha[1]*a+this.ha[3]*y},WA.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},WA.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.ha[1]*a+this.ha[3]*b,z=this.ha[0]*-b+this.ha[2]*a,nt=this.ha[1]*-b+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*b,this.ha[1]=E,this.ha[2]=z,this.ha[3]=nt,this.translate(-y,-x)}},WA.className="STransform";function Nd(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Nd.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Nd.className="SGradient";function _u(a,y,x){this.ownerDocument=a=y===void 0?Le.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 eh(this,x)}_u.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",b+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+b),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",b+"px"),!0):!1},_u.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),On(y))for(var b in y)a.setAttributeNS(b==="href"?"http://www.w3.org/1999/xlink":"",b,y[b]);return x!==void 0&&(a.textContent=x),a},_u.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},_u.prototype.focus=function(){this.Oa.focus()},_u.prototype.mx=function(){this.ownerDocument=null},Oe.Object.defineProperties(_u.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),_u.className="SVGSurface";function eh(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new WA,this.j=Id(this),this.Nj=Id(this,"gojs-diagram"),this.Hl=this.ti=null;var x=da++,b=this.Ud("clipPath",{id:"mainClip"+x});b.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=b,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(b),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Gf(a,y,x,b,E,z,nt){a.Nj===void 0?Ec(a,y,x,b,E,z,nt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+nt+")")}Xt=eh.prototype,Xt.arc=function(a,y,x,b,E,z,nt,ot){var at=2*Math.PI,ut=at-1e-6,ct=x*Math.cos(b),yt=x*Math.sin(b),kt=a+ct,zt=y+yt,Zt=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(nt-kt)||1e-6<Math.abs(ot-zt))&&this.path.push(["L",kt,+zt]),0>b&&(b=b%at+at),b>ut?(this.path.push(["A",x,x,0,1,Zt,a-ct,y-yt]),this.path.push(["A",x,x,0,1,Zt,kt,zt])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),Zt,a+x*Math.cos(E),y+x*Math.sin(E)])},Xt.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Xt.Se=function(a){this.addPath(this.path,this.rb,a||0)},Xt.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},Xt.clearRect=function(){},Xt.clip=function(){this.Yl.clipPath=!0},Xt.closePath=function(){this.path.push(["z"])},Xt.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},Xt.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"+da++,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(Oh,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},Xt.createRadialGradient=function(a,y,x,b,E,z){var nt=new Nd("radial");return nt.x1=a,nt.y1=y,nt.r1=x,nt.x2=b,nt.y2=E,nt.r2=z,nt};function Sp(a,y,x,b,E,z,nt,ot,at){b=ot/b,E=at/E,z===0&&nt===0||a.rb.translate(z,nt),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}Xt.drawImage=function(a,y,x,b,E,z,nt,ot,at){var ut="";a instanceof HTMLCanvasElement&&(ut=a.toDataURL()),a instanceof HTMLImageElement&&(ut=a.getAttribute("src"));var ct=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,nt=x,ot=b=ct,at=E=a),b=b||0,E=E||0,ot=ot||0,at=at||0,Sp(this,y,x,b,E,z||0,nt||0,ot,at),z={x:0,y:0,width:ct||b,height:a||E,href:ut},En.$(b,ot)&&En.$(E,at)?ut.toLowerCase().indexOf(".svg")===-1&&ut.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||b!==ct||E!==a)&&(b+=y,E+=x,z["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),VA(this,Oh,z,this.rb),this.addElement(Oh,z)},Xt.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),ZA(this,this.Yl)},Xt.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Xt.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},VA(this,"fill",a,this.rb),this.addElement("rect",a)},Xt.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},VA(this,"fill",a,this.rb),ZA(this,a),this.svg.prepend(this.Ud("rect",a))},Xt.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},VA(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Xt.lineTo=function(a,y){this.path.push(["L",a,y])},Xt.moveTo=function(a,y){this.path.push(["M",a,y])},Xt.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},Xt.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"])},Xt.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},Xt.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())},Xt.setTransform=function(a,y,x,b,E,z){a===1&&y===0&&x===0&&b===1&&E===0&&z===0||Ec(this,a,y,x,b,E,z)};function zg(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Xt.scale=function(a,y){this.rb.scale(a,y)},Xt.translate=function(a,y){this.rb.translate(a,y)},Xt.transform=function(){},Xt.yc=function(){},Xt.stroke=function(){Cp(this,this.Yl)},Xt.jk=function(){this.clipInsteadOfFill||this.stroke()},Xt.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Xt.addElement=function(a,y,x){return a=this.Ud(a,y,x),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function VA(a,y,x,b){y==="fill"?ZA(a,x):y==="stroke"&&Cp(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function ZA(a,y){a.fillStyle instanceof Nd?y.fill=bc(a,a.fillStyle,!0):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.fill="rgb("+a[1]+","+a[2]+","+a[3]+")",y["fill-opacity"]=a[4]):y.fill=a.fillStyle}function Wf(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof Nd?y.setAttributeNS(null,"fill",bc(a,a.fillStyle,!0)):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.setAttributeNS(null,x,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,x+"-opacity",a[4])):y.setAttributeNS(null,x,a.fillStyle)}function Cp(a,y){if(a.strokeStyle instanceof Nd)y.stroke=bc(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var x=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+x[1]+","+x[2]+","+x[3]+")",y["stroke-opacity"]=x[4]}else y.stroke=a.strokeStyle;y["stroke-width"]=a.lineWidth,y["stroke-linecap"]=a.lineCap,y["stroke-linejoin"]=a.lineJoin,y["stroke-miterlimit"]=a.miterLimit,a.Ct&&(y["stroke-dasharray"]=a.Yg.toString(),y["stroke-dashoffset"]=a.uj)}function bc(a,y,x){var b="";if(b=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,b!==null&&b.indexOf("GRAD")!==-1?(b=b.split("#")[1].slice(0,-1),x=a.svg.getElementById(b),x!==null&&x.remove()):b="GRAD"+da++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:b,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")x=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:b});else throw Error("invalid gradient");var E=y.gx;y=E.length;for(var z=[],nt=0;nt<y;nt++){var ot=E[nt],at=ot.color;ot={offset:ot.offset,"stop-color":at},/^rgba\(/.test(at)&&(at=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(at),ot["stop-color"]="rgb("+at[1]+","+at[2]+","+at[3]+")",ot["stop-opacity"]=at[4]),z.push(ot)}for(z.sort(function(ut,ct){return ut.offset>ct.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",z[E]));return a.svg.appendChild(x),"url(#"+b+")"}Xt.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=Cr(a[E]),nt=[z.shift()];if(nt[0]==="A")nt.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)nt.push(z.shift()+","+z.shift());b.push(nt.join(" "))}if(b=b.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+b+'")');else if(a.d=b,VA(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var ot in a)ot!=="transform"&&y.setAttributeNS(null,ot,a[ot]);else{ot=y.getElementsByTagName("path");for(var at in a)at!=="transform"&&ot[x].setAttributeNS(null,at,a[at])}else this.addElement("path",a)};function Ec(a,y,x,b,E,z,nt){var ot=new WA;ot.ha=[y,x,b,E,z,nt],y={},VA(a,"g",y,ot),ot=a.addElement("g",y),a.nh.push(ot)}function Id(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}Xt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function ld(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function kd(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Xt.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Xt.fs=function(){this.Ct=!1},Xt.Vc=function(){},Xt.Wx=function(){},eh.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},eh.prototype.getImageData=function(){return null},eh.prototype.measureText=function(){return null};function Td(a,y){y=y.getAttribute("fill"),y!==null&&(y=y.split("#"),y.length!==1&&(y=a.svg.getElementById(y[1].slice(0,-1)),y!==null&&a.svg.innerHTML.match(new RegExp(y.id,"g")).length===1&&y.remove()))}eh.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},eh.className="SVGContext",_n.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new _u(this,Le.document));var y=new _u(this,Le.document,!0);a===void 0&&(a=new so);var x=this;return gs(this,function(b,E){return b=$s(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},_n.prototype.makeSvg=_n.prototype.Cs,_n.prototype.av=function(a){return this.Cs(a)},_n.prototype.makeSVG=_n.prototype.av;function Tu(a,y,x,b){this.ownerDocument=y=y===void 0?Le.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new XA(y,x,b),y.H=a}Tu.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",!0):!1},Tu.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},Tu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Tu.prototype.focus=function(){this.Oa.focus()},Tu.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},Oe.Object.defineProperties(Tu.prototype,{width:{get:function(){return this.Oa.width},set:function(a){this.Oa.width=a}},height:{get:function(){return this.Oa.height},set:function(a){this.Oa.height=a}},style:{get:function(){return this.Oa.style}}}),Tu.className="CanvasSurface";function XA(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&qe("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 Ho,this.isTemporary=!!x}Xt=XA.prototype,Xt.Wx=function(a){this.Z.imageSmoothingEnabled=a},Xt.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},Xt.beginPath=function(){this.Z.beginPath()},Xt.Se=function(){},Xt.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},Xt.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},Xt.clip=function(){this.Z.clip()},Xt.closePath=function(){this.Z.closePath()},Xt.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},Xt.createPattern=function(a,y){return this.Z.createPattern(a,y)},Xt.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},Xt.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)},Xt.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Xt.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Xt.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Xt.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Xt.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},Xt.lineTo=function(a,y){this.Z.lineTo(a,y)},Xt.measureText=function(a){return this.Z.measureText(a)},Xt.moveTo=function(a,y){this.Z.moveTo(a,y)},Xt.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},Xt.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},Xt.restore=function(){this.Z.restore()},Xt.save=function(){this.yc(),this.Z.save()},XA.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Xt=XA.prototype,Xt.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},Xt.scale=function(a,y){this.El.scale(a,y)},Xt.translate=function(a,y){this.El.translate(a,y)},Xt.stroke=function(){this.Z.stroke()},Xt.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}},Xt.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Xt.ng=function(a,y){if(a instanceof Us&&a.type===Ee){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)},Xt.jk=function(){this.Hm||this.stroke()},Xt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Xt.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Xt.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(lm),a.lineDashOffset=0)},Xt.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Xt.Hs=function(){},Oe.Object.defineProperties(XA.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var lm=Object.freeze([]);XA.className="CanvasSurfaceContext";function xf(){this.F=this.o=this.u=this.j=0}xf.className="ColorNumbers";function Us(a,y){St||(Rt(),St=!0),Xo(this),this._isFrozen=!1,a===void 0?(this.na=Qt,this.xk="black"):typeof a=="string"?(this.na=Qt,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===de?(this.Qd=El,this.Lk=su):this.Lk=a===Ee?this.Qd=bo:this.Qd=Za,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Us.prototype.copy=function(){var a=new Us;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},Xt=Us.prototype,Xt.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Xt.ka=function(){return Object.isFrozen(this)&&qe("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Xt.qb=function(a){a.classType===Us&&(this.type=a)},Xt.toString=function(){var a="Brush(";if(this.type===Qt)a+=this.color;else if(a=this.type===de?a+"Linear ":this.type===Ee?a+"Radial ":this.type===sn?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+")"},Xt.addColorStop=function(a,y){return this._isFrozen&&si(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Ei(a,"0 <= loc <= 1",Us,"addColorStop:loc"),this.we===null&&(this.we=new wr),this.we.add(a,y),this.na===Qt&&(this.type=de),this.xe=null,this},Xt.Vz=function(a,y){if(this._isFrozen&&si(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?hn:y,this.type===Qt)Fc(this.color),this.color=kA(a,y);else if((this.type===de||this.type===Ee)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Fc(x.value),this.addColorStop(x.key,kA(a,y));return this};function Kg(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?hn:x,Fc(a),kA(y,x)}Xt.Wy=function(a,y){if(this._isFrozen&&si(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?hn:y,this.type===Qt)Fc(this.color),this.color=kA(-a,y);else if((this.type===de||this.type===Ee)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Fc(x.value),this.addColorStop(x.key,kA(-a,y));return this};function Gg(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?hn:x,Fc(a),kA(-y,x)}function Wg(a,y,x){Fc(a),a=Dn.j;var b=Dn.u,E=Dn.o,z=Dn.F;return Fc(y),x===void 0&&(x=.5),"rgba("+Math.round((Dn.j-a)*x+a)+", "+Math.round((Dn.u-b)*x+b)+", "+Math.round((Dn.o-E)*x+E)+", "+Math.round((Dn.F-z)*x+z)+")"}Xt.Gx=function(){if(this.type===Qt)return IA(this.color);if((this.type===de||this.type===Ee)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Ee)return IA(a.first().value);if(a.get(.5)!==null)return IA(a.get(.5));if(a.count===2)return a=a.Fa(),IA(Wg(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,E=1,z=1;y.next();){var nt=y.key,ot=Math.abs(.5-y.key);E>z&&ot<E?(x=nt,E=ot):z>=E&&ot<z&&(b=nt,z=ot)}return x>b&&(z=x,x=b,b=z,z=E),E=b-x,IA(Wg(a.get(x),a.get(b),1-z/E))}return!1};function IA(a){return a?a instanceof Us?a.Gx():(Fc(a),128>(299*Dn.j+587*Dn.u+114*Dn.o)/1e3):!1}function kA(a,y){switch(y){case hn:y=100*Cg(Dn.j);var x=100*Cg(Dn.u),b=100*Cg(Dn.o);return zi.j=.4124564*y+.3575761*x+.1804375*b,zi.u=.2126729*y+.7151522*x+.072175*b,zi.o=.0193339*y+.119192*x+.9503041*b,zi.F=Dn.F,y=Dt(zi.j/Fn[0]),x=Dt(zi.u/Fn[1]),b=Dt(zi.o/Fn[2]),lr.j=116*x-16,lr.u=500*(y-x),lr.o=200*(x-b),lr.F=zi.F,lr.j=Math.min(100,Math.max(0,lr.j+100*a)),a=(lr.j+16)/116,y=a-lr.o/200,zi.j=Fn[0]*Tt(lr.u/500+a),zi.u=Fn[1]*(lr.j>Ye*Be?Math.pow(a,3):lr.j/Ye),zi.o=Fn[2]*Tt(y),zi.F=lr.F,a=-.969266*zi.j+1.8760108*zi.u+.041556*zi.o,y=.0556434*zi.j+-.2040259*zi.u+1.0572252*zi.o,Dn.j=255*Vg((3.2404542*zi.j+-1.5371385*zi.u+-.4985314*zi.o)/100),Dn.u=255*Vg(a/100),Dn.o=255*Vg(y/100),Dn.F=zi.F,Dn.j=Math.round(Dn.j),255<Dn.j?Dn.j=255:0>Dn.j&&(Dn.j=0),Dn.u=Math.round(Dn.u),255<Dn.u?Dn.u=255:0>Dn.u&&(Dn.u=0),Dn.o=Math.round(Dn.o),255<Dn.o?Dn.o=255:0>Dn.o&&(Dn.o=0),"rgba("+Dn.j+", "+Dn.u+", "+Dn.o+", "+Dn.F+")";case cn:return Vf(),Ui.o=Math.min(100,Math.max(0,Ui.o+100*a)),"hsla("+Ui.j+", "+Ui.u+"%, "+Ui.o+"%, "+Ui.F+")";default:qe("Unknown color space: "+y)}}function Fc(a){St||(Rt(),St=!0);var y=ni;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,Dn.j=a[0],Dn.u=a[1],Dn.o=a[2],Dn.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Dn.j=0,Dn.u=0,Dn.o=0,Dn.F=1)}}function Vf(){var a=Dn.j/255,y=Dn.u/255,x=Dn.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))}Ui.j=Math.round(nt),Ui.u=Math.round(100*a),Ui.o=Math.round(100*E),Ui.F=Dn.F}function Cg(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function Vg(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function Dt(a){return a>Be?Math.pow(a,1/3):(Ye*a+16)/116}function Tt(a){var y=a*a*a;return y>Be?y:(116*a-16)/Ye}function _t(a,y){typeof a!="string"&&(a instanceof Us||qe("Value for "+y+" must be a color string or a Brush, not "+a))}function Rt(){ni=ps?new Tu(null,void 0,{willReadFrequently:!0}).context:null}Oe.Object.defineProperties(Us.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&si(this,a),this.na=a,this.start.Mc()&&(a===de?this.start=El:a===Ee&&(this.start=bo)),this.end.Mc()&&(a===de?this.end=su:a===Ee&&(this.end=bo)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&si(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&si(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&si(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&si(this,a),0>a&&Ei(a,">= zero",Us,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&si(this,a),0>a&&Ei(a,">= zero",Us,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&si(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&si(this,a),this.cr=a,this.xe=null}}}),Us.prototype.isDark=Us.prototype.Gx,Us.prototype.darkenBy=Us.prototype.Wy,Us.prototype.lightenBy=Us.prototype.Vz,Us.prototype.addColorStop=Us.prototype.addColorStop;var Be=216/24389,Ye=24389/27,Fn=[95.047,100,108.883],ni=null,Dn=new xf,Ui=new xf,zi=new xf,lr=new xf,St=!1;Us.className="Brush";var Qt;Us.Solid=Qt=new vi(Us,"Solid",0);var de;Us.Linear=de=new vi(Us,"Linear",1);var Ee;Us.Radial=Ee=new vi(Us,"Radial",2);var sn;Us.Pattern=sn=new vi(Us,"Pattern",4);var hn;Us.Lab=hn=new vi(Us,"Lab",5);var cn;Us.HSL=cn=new vi(Us,"HSL",6),Us.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},Us.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;St||(Rt(),St=!0);var y=ni;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)},Us.lighten=function(a){return Kg(a)},Us.lightenBy=Kg,Us.darken=function(a){return Gg(a)},Us.darkenBy=Gg,Us.mix=Wg,Us.isDark=IA;function xn(){this.xa="Base"}xn.prototype.measure=function(){},xn.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},xn.prototype.arrange=function(){},xn.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},xn.prototype.iA=function(a){a.Uj()},xn.prototype.gc=function(){},Oe.Object.defineProperties(xn.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return ci}}}),xn.prototype.remeasureObject=xn.prototype.iA,xn.prototype.arrangeElement=xn.prototype.Ly,xn.prototype.measureElement=xn.prototype.Yz,xn.className="PanelLayout";function Nn(){this.xa="Base"}Tn(Nn,xn),Nn.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 ut=b[at];if(ut.visible||ut===a){var ct=ut.margin,yt=ct.right+ct.left;ct=ct.top+ct.bottom,ut.measure(y,x,z,nt);var kt=ut.measuredBounds;yt=Math.max(kt.width+yt,0),ct=Math.max(kt.height+ct,0),kt=ut.position.x;var zt=ut.position.y;isFinite(kt)||(kt=0),isFinite(zt)||(zt=0),ut instanceof Io&&ut.isGeometryPositioned&&(ut=ut.strokeWidth/2,kt-=ut,zt-=ut),Es(E,kt,zt,yt,ct)}}},Nn.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding;for(a=x.x-E.left,x=x.y-E.top,E=0;E<b;E++){var z=y[E],nt=z.measuredBounds,ot=z.margin,at=z.position.x,ut=z.position.y;if(at=isNaN(at)?-a:at-a,ut=isNaN(ut)?-x:ut-x,z instanceof Io&&z.isGeometryPositioned){var ct=z.strokeWidth/2;at-=ct,ut-=ct}z.visible&&z.arrange(at+ot.left,ut+ot.top,nt.width,nt.height)}};function zn(){this.xa="Base"}Tn(zn,xn),zn.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length;y=or(),z=Ha(a);for(var at=0;at<ot;at++){var ut=b[at];if(ut.visible||ut===z){var ct=lh(ut,!1);if(ct!==bi&&ct!==kr)y.push(ut);else{ut.measure(1/0,x,0,nt),ct=ut.margin,ut=ut.measuredBounds;var yt=Math.max(ut.height+ct.top+ct.bottom,0);E.width+=Math.max(ut.width+ct.right+ct.left,0),E.height=Math.max(E.height,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)&&(ct=at.margin,ot=ct.right+ct.left,ct=ct.top+ct.bottom,at.measure(1/0,x,0,nt),at=at.measuredBounds,ct=Math.max(at.height+ct,0),E.width+=Math.max(at.width+ot,0),E.height=Math.max(E.height,ct));Lr(y)},zn.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.top,nt=a.isOpposite,ot=nt?x.width:E.left,at=0;at<b;at++){var ut=z,ct=y[at];if(ct.visible){var yt=ct.measuredBounds,kt=ct.margin,zt=kt.top+kt.bottom,Zt=z+E.bottom,he=yt.height,He=lh(ct,!1);(isNaN(ct.desiredSize.height)&&He===ki||He===qr)&&(he=Math.max(x.height-zt-Zt,0)),zt=he+zt+Zt,Zt=ct.alignment,Zt.Xb()&&(Zt=a.defaultAlignment),Zt.sb()||(Zt=bo),nt&&(ot-=yt.width+kt.left+kt.right),ct.arrange(ot+Zt.offsetX+kt.left,ut+Zt.offsetY+kt.top+(x.height*Zt.y-zt*Zt.y),yt.width,he),nt||(ot+=yt.width+kt.left+kt.right)}}};function fi(){this.xa="Base"}Tn(fi,xn),fi.prototype.measure=function(a,y,x,b,E,z){var nt=b.length;x=or();for(var ot=Ha(a),at=0;at<nt;at++){var ut=b[at];if(ut.visible||ut===ot){var ct=lh(ut,!1);if(ct!==bi&&ct!==qr)x.push(ut);else{var yt=ut.margin;ct=yt.right+yt.left,yt=yt.top+yt.bottom,ut.measure(y,1/0,z,0),ut=ut.measuredBounds,Ia(E,Math.max(E.width,Math.max(ut.width+ct,0)),E.height+Math.max(ut.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)&&(ut=at.margin,nt=ut.right+ut.left,ut=ut.top+ut.bottom,at.measure(y,1/0,z,0),at=at.measuredBounds,ut=Math.max(at.height+ut,0),E.width=Math.max(E.width,Math.max(at.width+nt,0)),E.height+=ut);Lr(x)}},fi.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.left,nt=a.isOpposite,ot=nt?x.height:E.top,at=0;at<b;at++){var ut=z,ct=y[at];if(ct.visible){var yt=ct.measuredBounds,kt=ct.margin,zt=kt.left+kt.right,Zt=z+E.right,he=yt.width,He=lh(ct,!1);(isNaN(ct.desiredSize.width)&&He===ki||He===kr)&&(he=Math.max(x.width-zt-Zt,0)),zt=he+zt+Zt,Zt=ct.alignment,Zt.Xb()&&(Zt=a.defaultAlignment),Zt.sb()||(Zt=bo),nt&&(ot-=yt.height+kt.bottom+kt.top),ct.arrange(ut+Zt.offsetX+kt.left+(x.width*Zt.x-zt*Zt.x),ot+Zt.offsetY+kt.top,he,yt.height),nt||(ot+=yt.height+kt.bottom+kt.top)}}};function $i(){this.xa="Base"}Tn($i,xn),$i.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length,at=a.Pb(),ut=at.margin,ct=ut.right+ut.left,yt=ut.top+ut.bottom;at.measure(y,x,z,nt);var kt=at.measuredBounds;z=kt.width,nt=kt.height;var zt=Math.max(z+ct,0),Zt=Math.max(nt+yt,0),he=a.isClipping,He=ai.allocAt(-ut.left,-ut.top,zt,Zt),Fe=ai.allocAt(0,0,z,nt);Yi(at,Fe,!0),z=Fe.width,nt=Fe.height;for(var Ve=!0,tn=Ha(a),on=0;on<ot;on++){var Sn=b[on];kt=y;var Gn=x;if(Sn!==at&&(Sn.visible||Sn===tn)){ut=Sn.margin;var nr=ut.left,Fr=ut.top;switch(zt=ut.right+ut.left,Zt=ut.top+ut.bottom,ut=lh(Sn,!1),ut){case ki:kt=z,Gn=nt,Fr=nr=Zt=zt=0;break;case kr:kt=z,nr=zt=0;break;case qr:Gn=nt,Fr=Zt=0}Sn.measure(kt,Gn,0,0),kt=Sn.measuredBounds,zt=Math.max(kt.width+zt,0),Zt=Math.max(kt.height+Zt,0),ut=Sn.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=bo);var vr=Sn.alignmentFocus;if(vr.Xb()&&(vr=bo),Gn=null,Sn instanceof ci&&Sn.$e!==""&&(Gn=Sn.fb(Sn.$e),Gn===Sn&&(Gn=null)),nr=Fe.x-nr,Fr=Fe.y-Fr,Gn!==null){for(Sn.arrange(0,0,kt.width,kt.height),kt=Gn.actualBounds,kt=Ne.allocAt(kt.x+(vr.x*kt.width-vr.offsetX),kt.y+(vr.y*kt.height-vr.offsetY)),Gn=Gn.panel;Gn!==Sn;)Gn.transform.Ga(kt),Gn=Gn.panel;nr+=ut.x*z+ut.offsetX-kt.x,Fr+=ut.y*nt+ut.offsetY-kt.y,Ne.free(kt)}else nr+=ut.x*z+ut.offsetX-(vr.x*kt.width+vr.offsetX),Fr+=ut.y*nt+ut.offsetY-(vr.y*kt.height+vr.offsetY);Ve?(Ve=!1,E.h(nr,Fr,zt,Zt)):Es(E,nr,Fr,zt,Zt)}}switch(Ve?E.assign(He):he?E.Uu(Fe.x,Fe.y,Fe.width,Fe.height):Es(E,He.x,He.y,He.width,He.height),ai.free(He),ai.free(Fe),ut=at.stretch,ut===vo&&(ut=lh(at,!1)),ut){case bi:return;case ki:if(!isFinite(y)&&!isFinite(x))return;break;case kr:if(!isFinite(y))return;break;case qr:if(!isFinite(x))return}for(kt=at.measuredBounds,z=kt.width,nt=kt.height,zt=Math.max(z+ct,0),Zt=Math.max(nt+yt,0),ut=at.margin,Fe=ai.allocAt(-ut.left,-ut.top,zt,Zt),Yi(at,Fe,!0),z=Fe.width,nt=Fe.height,y=0;y<ot;y++)x=b[y],x===at||!x.visible&&x!==tn||(ut=x.margin,zt=ut.right+ut.left,Zt=ut.top+ut.bottom,kt=x.measuredBounds,zt=Math.max(kt.width+zt,0),Zt=Math.max(kt.height+Zt,0),ct=x.alignment,ct.Xb()&&(ct=a.defaultAlignment),ct.sb()||(ct=bo),x=x.alignmentFocus,x.Xb()&&(x=bo),Ve?(Ve=!1,E.h(ct.x*z+ct.offsetX-(x.x*kt.width+x.offsetX)-ut.left,ct.y*nt+ct.offsetY-(x.y*kt.height+x.offsetY)-ut.top,zt,Zt)):Es(E,ct.x*z+ct.offsetX-(x.x*kt.width+x.offsetX)-ut.left,ct.y*nt+ct.offsetY-(x.y*kt.height+x.offsetY)-ut.top,zt,Zt));Ve?E.assign(He):he?E.Uu(Fe.x,Fe.y,Fe.width,Fe.height):Es(E,He.x,He.y,He.width,He.height),ai.free(Fe)},$i.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),z=E.measuredBounds,nt=z.width,ot=z.height,at=a.padding;z=at.left,at=at.top;var ut=z-x.x,ct=at-x.y;for(E.arrange(ut,ct,nt,ot),nt=ai.allocAt(0,0,nt,ot),Yi(E,nt,!1),ot=0;ot<b;ot++){var yt=y[ot];if(yt!==E){ut=yt.measuredBounds;var kt=ut.width,zt=ut.height;ct=yt.alignment,ct.Xb()&&(ct=a.defaultAlignment),ct.sb()||(ct=bo);var Zt=yt.alignmentFocus;if(Zt.Xb()&&(Zt=bo),ut=null,yt instanceof ci&&yt.$e!==""&&(ut=yt.fb(yt.$e),ut===yt&&(ut=null)),ut!==null){var he=ut.actualBounds;for(Zt=Ne.allocAt(he.x+(Zt.x*he.width-Zt.offsetX),he.y+(Zt.y*he.height-Zt.offsetY)),ut=ut.panel;ut!==yt;)ut.transform.Ga(Zt),ut=ut.panel;ut=ct.x*nt.width+ct.offsetX-Zt.x,ct=ct.y*nt.height+ct.offsetY-Zt.y,Ne.free(Zt)}else ut=ct.x*nt.width+ct.offsetX-(Zt.x*kt+Zt.offsetX),ct=ct.y*nt.height+ct.offsetY-(Zt.y*zt+Zt.offsetY);ut+=nt.x-x.x,ct+=nt.y-x.y,yt.visible&&yt.arrange(z+ut,at+ct,kt,zt)}}ai.free(nt)};function Yi(a,y,x){var b=null;if(a instanceof ci&&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 Ni(){this.xa="Base"}Tn(Ni,xn),Ni.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length,at=a.Pb(),ut=at.margin,ct=y,yt=x,kt=ut.right+ut.left,zt=ut.top+ut.bottom;at.measure(y,x,z,nt),ut=at.measuredBounds;var Zt=0,he=null;at instanceof Io&&(he=at,Zt=he.strokeWidth*he.scale);var He=Math.max(ut.width+kt,0);ut=Math.max(ut.height+zt,0);var Fe=dd(at),Ve=Fe.x*He+Fe.offsetX;Fe=Fe.y*ut+Fe.offsetY;var tn=Wh(at),on=tn.x*He+tn.offsetX;for(tn=tn.y*ut+tn.offsetY,isFinite(y)&&(ct=Math.max(Math.abs(Ve-on)-Zt,0)),isFinite(x)&&(yt=Math.max(Math.abs(Fe-tn)-Zt,0)),Zt=Vi.alloc(),Zt.h(0,0),a=Ha(a),tn=0;tn<ot;tn++)Fe=b[tn],Fe===at||!Fe.visible&&Fe!==a||(ut=Fe.margin,He=ut.right+ut.left,Ve=ut.top+ut.bottom,Fe.measure(ct,yt,0,0),ut=Fe.measuredBounds,He=Math.max(ut.width+He,0),ut=Math.max(ut.height+Ve,0),Zt.h(Math.max(He,Zt.width),Math.max(ut,Zt.height)));if(ot===1)E.width=He,E.height=ut,Vi.free(Zt);else{switch(Fe=dd(at),tn=Wh(at),ot=b=0,tn.x!==Fe.x&&tn.y!==Fe.y&&(b=Zt.width/Math.abs(tn.x-Fe.x),ot=Zt.height/Math.abs(tn.y-Fe.y)),Vi.free(Zt),Zt=0,he!==null&&(Zt=he.strokeWidth*he.scale,Jg(he)===yr&&(b=ot=Math.max(b,ot))),b+=Math.abs(Fe.offsetX)+Math.abs(tn.offsetX)+Zt,ot+=Math.abs(Fe.offsetY)+Math.abs(tn.offsetY)+Zt,he=at.stretch,he===vo&&(he=lh(at,!1)),he){case bi:nt=z=0;break;case ki:isFinite(y)&&(b=y),isFinite(x)&&(ot=x);break;case kr: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+kt,E.height=at.measuredBounds.height+zt}},Ni.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,ut=at.left;at=at.top,b.arrange(ut+ot,at+nt,E.width,E.height);var ct=dd(b),yt=Wh(b),kt=ct.y*E.height+ct.offsetY,zt=yt.x*E.width+yt.offsetX;for(yt=yt.y*E.height+yt.offsetY,z.x=ct.x*E.width+ct.offsetX,z.y=kt,Es(z,zt,yt,0,0),z.x+=ot+ut,z.y+=nt+at,E=0;E<x;E++)ot=y[E],ot!==b&&(ut=ot.measuredBounds,nt=ot.margin,at=Math.max(ut.width+nt.right+nt.left,0),ct=Math.max(ut.height+nt.top+nt.bottom,0),kt=ot.alignment,kt.Xb()&&(kt=a.defaultAlignment),kt.sb()||(kt=bo),at=z.width*kt.x+kt.offsetX-at*kt.x+nt.left+z.x,nt=z.height*kt.y+kt.offsetY-ct*kt.y+nt.top+z.y,ot.visible&&(Ks(z.x,z.y,z.width,z.height,at,nt,ut.width,ut.height)?ot.arrange(at,nt,ut.width,ut.height):ot.arrange(at,nt,ut.width,ut.height,new ai(z.x,z.y,z.width,z.height))));ai.free(z)};function Kr(){this.xa="Base",this.name="Table"}Tn(Kr,xn),Kr.prototype.measure=function(a,y,x,b,E){for(var z=b.length,nt=or(),ot=or(),at=0;at<z;at++){var ut=b[at],ct=ut instanceof ci?ut:null;if(ct!==null&&Tl(ct)&&ut.visible){ot.push(ct);for(var yt=ct.O.s,kt=yt.length,zt=0;zt<kt;zt++){var Zt=yt[zt];ct.type===ci.TableRow?Zt.row=ut.row:ct.type===ci.TableColumn&&(Zt.column=ut.column),nt.push(Zt)}}else nt.push(ut)}z=nt.length,z===0&&(a.Fb(0),a.Eb(0));for(var he=[],He=0;He<z;He++){var Fe=nt[He];Fe.visible&&(kl(Fe,!0),Wc(Fe,!0),he[Fe.row]||(he[Fe.row]=[]),he[Fe.row][Fe.column]||(he[Fe.row][Fe.column]=[]),he[Fe.row][Fe.column].push(Fe))}Lr(nt);var Ve=or(),tn=or(),on=or(),Sn={count:0},Gn={count:0},nr=y,Fr=x,vr=a.rowDefs,Ki=a.colDefs,Mi=null;z=vr.length;for(var Eo=0;Eo<z;Eo++)Mi=vr[Eo],Mi!==void 0&&(Mi.actual=0);z=Ki.length;for(var po=0;po<z;po++)Mi=Ki[po],Mi!==void 0&&(Mi.actual=0);for(var Ts=he.length,pa=0,Ou=0;Ou<Ts;Ou++)he[Ou]&&(pa=Math.max(pa,he[Ou].length));var Qu=Math.min(a.topIndex,Ts-1),Uh=Math.min(a.leftIndex,pa-1),Du=0;Ts=he.length;for(var Tf=Ha(a),ql=0;ql<Ts;ql++)if(he[ql]){pa=he[ql].length;var mA=a.Fb(ql);mA.actual=0;for(var Rh=mA.oc=0;Rh<pa;Rh++)if(he[ql][Rh]){var Of=a.Eb(Rh);Ve[Rh]===void 0&&(Of.actual=0,Of.oc=0,Ve[Rh]=!0);for(var qc=he[ql][Rh],Ud=qc.length,Nc=0;Nc<Ud;Nc++){var yc=qc[Nc];if(yc.visible||yc===Tf){var Ag=1<yc.rowSpan||1<yc.columnSpan;Ag&&(ql<Qu||Rh<Uh||tn.push(yc));var vA=yc.margin,Jp=vA.right+vA.left,Ic=vA.top+vA.bottom,_h=Da(yc,mA,Of,!1),Zm=yc.desiredSize,fp=!isNaN(Zm.height),RA=!isNaN(Zm.width)&&fp;if(Ag||_h===bi||RA||ql<Qu||Rh<Uh||(Sn[Rh]!==void 0||_h!==ki&&_h!==kr||(Sn[Rh]=-1,Sn.count++),Gn[ql]!==void 0||_h!==ki&&_h!==qr||(Gn[ql]=-1,Gn.count++),on.push(yc)),yc.measure(1/0,1/0,0,0),!(ql<Qu||Rh<Uh)){var wc=yc.measuredBounds,Dg=Math.max(wc.width+Jp,0),kc=Math.max(wc.height+Ic,0);if(yc.rowSpan===1&&(_h===bi||_h===kr)){Mi=a.Fb(ql);var fg=Mi.Wc();Du=Math.max(kc-Mi.actual,0),Du+fg>Fr&&(Du=Math.max(Fr-fg,0));var av=Mi.oa===0;Mi.oc=Mi.oc+Du,Mi.actual=Mi.oa+Du,Fr=Math.max(Fr-(Du+(av?fg:0)),0)}if(yc.columnSpan===1&&(_h===bi||_h===qr)){Mi=a.Eb(Rh);var Xm=Mi.Wc();Du=Math.max(Dg-Mi.actual,0),Du+Xm>nr&&(Du=Math.max(nr-Xm,0));var Py=Mi.oa===0;Mi.oc=Mi.oc+Du,Mi.actual=Mi.oa+Du,nr=Math.max(nr-(Du+(Py?Xm:0)),0)}Ag&&yc.Uj()}}}}}Lr(Ve);var of=0,Af=0;z=a.columnCount;for(var gp=0;gp<z;gp++){var gg=Ki[gp];gg!==void 0&&(of+=isNaN(gg.Hc)?gg.oc:gg.Hc,gg.oc!==0&&(of+=gg.Wc()))}z=a.rowCount;for(var qp=0;qp<z;qp++){var pg=vr[qp];pg!==void 0&&(Af+=isNaN(pg.Hc)?pg.oc:pg.Hc,pg.oc!==0&&(Af+=pg.Wc()))}nr=Math.max(y-of,0);var sf=Fr=Math.max(x-Af,0),Df=nr;z=on.length;for(var xc=0;xc<z;xc++){var _A=on[xc],lv=a.Fb(_A.row),ff=a.Eb(_A.column),tm=_A.measuredBounds,yA=_A.margin,jg=yA.right+yA.left,HA=yA.top+yA.bottom;Sn[_A.column]=ff.oc===0&&Sn[_A.column]!==void 0?Math.max(tm.width+jg,Sn[_A.column]):null,Gn[_A.row]=lv.oc===0&&Gn[_A.row]!==void 0?Math.max(tm.height+HA,Gn[_A.row]):null}var pp=0,em=0,rA;for(rA in Gn)rA!=="count"&&(pp+=Gn[rA]);for(rA in Sn)rA!=="count"&&(em+=Sn[rA]);for(var ih=Vi.alloc(),$m=0;$m<z;$m++){var qh=on[$m];if(qh.visible||qh===Tf){var tu=a.Fb(qh.row),tc=a.Eb(qh.column),gf=0;isFinite(tc.width)?gf=tc.width:(isFinite(nr)&&Sn[qh.column]!==null?em===0?gf=tc.actual+nr:gf=Sn[qh.column]/em*Df:Sn[qh.column]!==null?gf=nr:gf=tc.actual||nr,gf=Math.max(0,gf-tc.Wc()));var jf=0;switch(isFinite(tu.height)?jf=tu.height:(isFinite(Fr)&&Gn[qh.row]!==null?pp===0?jf=tu.actual+Fr:jf=Gn[qh.row]/pp*sf:Gn[qh.row]!==null?jf=Fr:jf=tu.actual||Fr,jf=Math.max(0,jf-tu.Wc())),ih.h(Math.max(tc.minimum,Math.min(gf,tc.maximum)),Math.max(tu.minimum,Math.min(jf,tu.maximum))),_h=Da(qh,tu,tc,!1),_h){case kr:ih.height=Math.max(ih.height,tu.actual+Fr);break;case qr:ih.width=Math.max(ih.width,tc.actual+nr)}var Ug=qh.margin,by=Ug.right+Ug.left,uv=Ug.top+Ug.bottom;qh.Uj(),qh.measure(ih.width,ih.height,tc.minimum,tu.minimum);var nm=qh.measuredBounds,Rg=Math.max(nm.width+by,0),mp=Math.max(nm.height+uv,0);isFinite(nr)&&(Rg=Math.min(Rg,ih.width)),isFinite(Fr)&&(mp=Math.min(mp,ih.height));var Sc=0;Sc=tu.actual,tu.actual=Math.max(tu.actual,mp),tu.oc=Math.max(tu.oc,mp),Du=tu.actual-Sc,Fr=Math.max(Fr-Du,0),Gn[qh.row]===null&&(sf=Math.max(sf-Du,0)),Sc=tc.actual,tc.actual=Math.max(tc.actual,Rg),tc.oc=Math.max(tc.oc,Rg),Du=tc.actual-Sc,nr=Math.max(nr-Du,0),Sn[qh.column]===null&&(Df=Math.max(Df-Du,0))}}Lr(on);var pf=Vi.alloc(),wA=or(),vd=or();if(z=tn.length,z!==0){for(var mg=0;mg<Ts;mg++)if(he[mg]){pa=he[mg].length;var im=a.Fb(mg);wA[mg]=im.actual;for(var vg=0;vg<pa;vg++)if(he[mg][vg]){var hv=a.Eb(vg);vd[vg]=hv.actual}}}for(var rm=0;rm<z;rm++){var _l=tn[rm];if(_l.visible||_l===Tf){var oA=a.Fb(_l.row),Rd=a.Eb(_l.column);switch(ih.h(Math.max(Rd.minimum,Math.min(y,Rd.maximum)),Math.max(oA.minimum,Math.min(x,oA.maximum))),_h=Da(_l,oA,Rd,!1),_h){case ki:vd[Rd.index]!==0&&(ih.width=Math.min(ih.width,vd[Rd.index])),wA[oA.index]!==0&&(ih.height=Math.min(ih.height,wA[oA.index]));break;case kr:vd[Rd.index]!==0&&(ih.width=Math.min(ih.width,vd[Rd.index]));break;case qr:wA[oA.index]!==0&&(ih.height=Math.min(ih.height,wA[oA.index]))}isFinite(Rd.width)&&(ih.width=Rd.width),isFinite(oA.height)&&(ih.height=oA.height),pf.h(0,0);for(var cv=Rd.minimum,Tc=oA.minimum,Uf=1;Uf<_l.rowSpan&&!(_l.row+Uf>=a.rowCount);Uf++)Mi=a.Fb(_l.row+Uf),Du=0,Du=_h===ki||_h===qr?Math.max(Mi.minimum,wA[_l.row+Uf]===0?Mi.maximum:Math.min(wA[_l.row+Uf],Mi.maximum)):Math.max(Mi.minimum,isNaN(Mi.Hc)?Mi.maximum:Math.min(Mi.Hc,Mi.maximum)),pf.height+=Du,Tc+=Mi.minimum;for(var _d=1;_d<_l.columnSpan&&!(_l.column+_d>=a.columnCount);_d++)Mi=a.Eb(_l.column+_d),Du=0,Du=_h===ki||_h===kr?Math.max(Mi.minimum,vd[_l.column+_d]===0?Mi.maximum:Math.min(vd[_l.column+_d],Mi.maximum)):Math.max(Mi.minimum,isNaN(Mi.Hc)?Mi.maximum:Math.min(Mi.Hc,Mi.maximum)),pf.width+=Du,cv+=Mi.minimum;ih.width+=pf.width,ih.height+=pf.height;var om=_l.margin,yg=om.right+om.left,Ym=om.top+om.bottom;_l.measure(ih.width,ih.height,cv,Tc);for(var sm=_l.measuredBounds,QA=Math.max(sm.width+yg,0),_g=Math.max(sm.height+Ym,0),wg=0,am=0;am<_l.rowSpan&&!(_l.row+am>=a.rowCount);am++)Mi=a.Fb(_l.row+am),wg+=Mi.total||0;if(wg<_g){var Rf=_g-wg,af=_g-wg;if(_l.spanAllocation!==null)for(var _f=_l.spanAllocation,mf=0;mf<_l.rowSpan&&!(0>=Rf)&&!(_l.row+mf>=a.rowCount);mf++){Mi=a.Fb(_l.row+mf);var Hf=Mi.oa||0,Hg=_f(_l,Mi,af);Mi.actual=Math.min(Mi.maximum,Hf+Hg),Mi.oa!==Hf&&(Rf-=Mi.oa-Hf)}for(;0<Rf;){var xA=Mi.oa||0;if(isNaN(Mi.height)&&Mi.maximum>xA&&(Mi.actual=Math.min(Mi.maximum,xA+Rf),Mi.oa!==xA&&(Rf-=Mi.oa-xA)),Mi.index===0)break;Mi=a.Fb(Mi.index-1)}}for(var vp=0,Qf=0;Qf<_l.columnSpan&&!(_l.column+Qf>=a.columnCount);Qf++)Mi=a.Eb(_l.column+Qf),vp+=Mi.total||0;if(vp<QA){var yp=QA-vp,Ey=QA-vp;if(_l.spanAllocation!==null)for(var vf=_l.spanAllocation,Qg=0;Qg<_l.columnSpan&&!(0>=yp)&&!(_l.column+Qg>=a.columnCount);Qg++){Mi=a.Eb(_l.column+Qg);var Jm=Mi.oa||0,Fy=vf(_l,Mi,Ey);Mi.actual=Math.min(Mi.maximum,Jm+Fy),Mi.oa!==Jm&&(yp-=Mi.oa-Jm)}for(;0<yp;){var dv=Mi.oa||0;if(isNaN(Mi.width)&&Mi.maximum>dv&&(Mi.actual=Math.min(Mi.maximum,dv+yp),Mi.oa!==dv&&(yp-=Mi.oa-dv)),Mi.index===0)break;Mi=a.Eb(Mi.index-1)}}}}Lr(tn),Vi.free(pf),Vi.free(ih),wA!==void 0&&Lr(wA),vd!==void 0&&Lr(vd);var wp=0,xp=0,Av=a.desiredSize,xw=a.maxSize;_h=lh(a,!0);var qm=Af=of=0,t0=0;z=a.columnCount;for(var fv=0;fv<z;fv++)Ki[fv]!==void 0&&(Mi=a.Eb(fv),isFinite(Mi.width)?(qm+=Mi.width,qm+=Mi.Wc()):Yg(Mi)===$f?(qm+=Mi.oa,qm+=Mi.Wc()):Mi.oa!==0&&(of+=Mi.oa,of+=Mi.Wc()));isFinite(Av.width)?wp=Math.min(Av.width,xw.width):wp=_h!==bi&&isFinite(y)?y:of,wp=Math.max(wp,a.minSize.width),wp=Math.max(wp-qm,0);for(var rx=of===0?1:Math.max(wp/of,1),gv=0;gv<z;gv++)Ki[gv]!==void 0&&(Mi=a.Eb(gv),isFinite(Mi.width)||Yg(Mi)===$f||(Mi.actual=Mi.oa*rx),Mi.position=E.width,Mi.oa!==0&&(E.width+=Mi.oa,E.width+=Mi.Wc()));z=a.rowCount;for(var pv=0;pv<z;pv++)vr[pv]!==void 0&&(Mi=a.Fb(pv),isFinite(Mi.height)?(t0+=Mi.height,t0+=Mi.Wc()):Yg(Mi)===$f?(t0+=Mi.oa,t0+=Mi.Wc()):Mi.oa!==0&&(Af+=Mi.oa,Af+=Mi.Wc()));isFinite(Av.height)?xp=Math.min(Av.height,xw.height):xp=_h!==bi&&isFinite(x)?x:Af,xp=Math.max(xp,a.minSize.height),xp=Math.max(xp-t0,0);for(var ox=Af===0?1:Math.max(xp/Af,1),mv=0;mv<z;mv++)vr[mv]!==void 0&&(Mi=a.Fb(mv),isFinite(Mi.height)||Yg(Mi)===$f||(Mi.actual=Mi.oa*ox),Mi.position=E.height,Mi.oa!==0&&(E.height+=Mi.oa,E.height+=Mi.Wc()));z=ot.length;for(var Ly=0;Ly<z;Ly++){var e0=ot[Ly],My=0,Ny=0;e0.type===ci.TableRow?(My=E.width,Mi=a.Fb(e0.row),Ny=Mi.actual):(Mi=a.Eb(e0.column),My=Mi.actual,Ny=E.height),e0.measuredBounds.h(0,0,My,Ny),kl(e0,!1)}Lr(ot),a.inRowsCols=he},Kr.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding,z=E.left;E=E.top;var nt=a.inRowsCols;if(nt!==null){for(var ot,at,ut=nt.length,ct=0,yt=0;yt<ut;yt++)nt[yt]&&(ct=Math.max(ct,nt[yt].length));at=a.rowDefs,ot=a.colDefs;var kt=yt=0,zt=Math.min(a.topIndex,ut-1);if(0<at.length){for(;zt!==ut&&(at[zt]===void 0||at[zt].oa===0);)zt++;zt=Math.max(Math.min(zt,ut-1),0),yt=-at[zt].position}var Zt=Math.min(a.leftIndex,ct-1);if(0<ot.length){for(;Zt!==ct&&(ot[Zt]===void 0||ot[Zt].oa===0);)Zt++;Zt=Math.max(Math.min(Zt,ct-1),0),kt=-ot[Zt].position}for(var he=0,He=0;he!==ut&&at[he]===void 0;)he++;for(;He!==ut&&ot[He]===void 0;)He++;ct=a.part,a.Fb(he),a.Eb(He);for(var Fe=0;Fe<y.length;Fe++){var Ve=y[Fe];if(Ve instanceof ci&&Ve.visible&&Tl(Ve)){if(Ve.type===ci.TableRow){ot=a.Fb(Ve.row);var tn=a.Eb(He)}else ot=a.Fb(he),tn=a.Eb(Ve.column);at=ot.position+yt+E,ot.oa!==0&&(at+=ot.Io(Math.max(he,zt))),ot=tn.position+kt+z,tn.oa!==0&&(ot+=tn.Io(Math.max(He,Zt))),tn=Ve.measuredBounds,Ve.Uk(),Ve.actualBounds.ka();var on=Ve.actualBounds,Sn=ai.allocAt(on.x,on.y,on.width,on.height);on.x=Ve.type===ci.TableRow?z:ot,on.y=Ve.type===ci.TableColumn?E:at,on.width=tn.width,on.height=tn.height,Ve.actualBounds.freeze(),Wc(Ve,!1),Hh(Sn,on)||ct===null||(ct.oh(),Ve.Pn(ct)),ai.free(Sn)}}for(Fe=Vi.alloc(),Ve=0;Ve<ut;Ve++)if(nt[Ve]){for(ct=nt[Ve].length,tn=a.Fb(Ve),at=tn.position+yt+E,tn.oa!==0&&(at+=tn.Io(Math.max(he,zt))),on=0;on<ct;on++)if(nt[Ve][on]){Sn=a.Eb(on),ot=Sn.position+kt+z,Sn.oa!==0&&(ot+=Sn.Io(Math.max(He,Zt)));for(var Gn=nt[Ve][on],nr=Gn.length,Fr=0;Fr<nr;Fr++){var vr=Gn[Fr],Ki=vr.measuredBounds;Fe.h(0,0);for(var Mi=1;Mi<vr.rowSpan&&!(Ve+Mi>=a.rowCount);Mi++){var Eo=a.Fb(Ve+Mi);Eo.oa!==0&&(Fe.height+=Eo.total)}for(Mi=1;Mi<vr.columnSpan&&!(on+Mi>=a.columnCount);Mi++)Eo=a.Eb(on+Mi),Eo.oa!==0&&(Fe.width+=Eo.total);var po=Sn.oa+Fe.width,Ts=tn.oa+Fe.height;Mi=ot,Eo=at;var pa=po,Ou=Ts,Qu=ot,Uh=at,Du=po,Tf=Ts;ot+po>x.width&&(Du=Math.max(x.width-ot,0)),at+Ts>x.height&&(Tf=Math.max(x.height-at,0));var ql=vr.alignment;if(ql.Xb()){ql=a.defaultAlignment,ql.sb()||(ql=bo);var mA=ql.x,Rh=ql.y,Of=ql.offsetX;ql=ql.offsetY;var qc=Sn.alignment,Ud=tn.alignment;qc.sb()&&(mA=qc.x,Of=qc.offsetX),Ud.sb()&&(Rh=Ud.y,ql=Ud.offsetY)}else mA=ql.x,Rh=ql.y,Of=ql.offsetX,ql=ql.offsetY;(isNaN(mA)||isNaN(Rh))&&(Rh=mA=.5,ql=Of=0),qc=Ki.width,Ud=Ki.height;var Nc=vr.margin,yc=Nc.left+Nc.right,Ag=Nc.top+Nc.bottom,vA=Da(vr,tn,Sn,!1);!isNaN(vr.desiredSize.width)||vA!==ki&&vA!==kr||(qc=Math.max(po-yc,0)),!isNaN(vr.desiredSize.height)||vA!==ki&&vA!==qr||(Ud=Math.max(Ts-Ag,0)),po=vr.maxSize,Ts=vr.minSize,qc=Math.min(po.width,qc),Ud=Math.min(po.height,Ud),qc=Math.max(Ts.width,qc),Ud=Math.max(Ts.height,Ud),po=Ud+Ag,Mi+=pa*mA-(qc+yc)*mA+Of+Nc.left,Eo+=Ou*Rh-po*Rh+ql+Nc.top,vr.visible&&(Ks(Qu,Uh,Du,Tf,Mi,Eo,Ki.width,Ki.height)?vr.arrange(Mi,Eo,qc,Ud):vr.arrange(Mi,Eo,qc,Ud,new ai(Qu,Uh,Du,Tf)))}}}for(Vi.free(Fe),a=0;a<b;a++)x=y[a],z=x instanceof ci?x:null,z!==null&&Tl(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function Nr(){this.xa="Base"}Tn(Nr,xn),Nr.prototype.measure=function(){},Nr.prototype.arrange=function(){};function Hi(){this.xa="Base"}Tn(Hi,xn),Hi.prototype.measure=function(){},Hi.prototype.arrange=function(){};function ji(){this.xa="Base"}Tn(ji,xn),ji.prototype.measure=function(a,y,x,b,E,z,nt){1<b.length&&qe("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,z,nt);var ot=b.measuredBounds,at=b.margin,ut=at.right+at.left;if(at=at.top+at.bottom,isFinite(y)||isFinite(x)){var ct=b.scale,yt=ot.width;ot=ot.height;var kt=Math.max(y-ut,0),zt=Math.max(x-at,0),Zt=1;a.viewboxStretch===yr?yt!==0&&ot!==0&&(Zt=Math.min(kt/yt,zt/ot)):yt!==0&&ot!==0&&(Zt=Math.max(kt/yt,zt/ot)),Zt===0&&(Zt=1e-4),b.Ca*=Zt,ct!==b.scale&&(kl(b,!0),b.measure(1/0,1/0,z,nt))}ot=b.measuredBounds,E.width=isFinite(y)?y:Math.max(ot.width+ut,0),E.height=isFinite(x)?x:Math.max(ot.height+at,0)},ji.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=bo),y.arrange(x.width*nt.x-z*nt.x+nt.offsetX,x.height*nt.y-E*nt.y+nt.offsetY,b.width,b.height)};function zr(){this.xa="Base"}Tn(zr,xn),zr.prototype.measure=function(){},zr.prototype.arrange=function(){},zr.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var b=a.gridCellSize,E=b.width;b=b.height;var z=a.naturalBounds,nt=a.actualBounds,ot=z.width,at=z.height,ut=Math.ceil(ot/E),ct=Math.ceil(at/b),yt=a.gridOrigin,kt=yt.x;yt=yt.y,y.save(),y.beginPath(),y.rect(0,0,ot,at),y.clip(),y.Se();for(var zt=[],Zt=a.O.s,he=Zt.length,He=0;He<he;He++){var Fe=Zt[He],Ve=[];if(zt.push(Ve),Fe.visible){var tn=Fe.interval;if(!(0>tn)){Fe=Ga(Fe.figure);for(var on=0;on<he;on++)if(on!==He){var Sn=Zt[on];Sn.visible&&Ga(Sn.figure)===Fe&&(Sn=Sn.interval,Sn>tn&&Ve.push(Sn))}}}}for(Zt=a.O.s,he=Zt.length,He=0;He<he;He++){var Gn=Zt[He];if(Gn.visible&&(Ve=Gn.interval||1,Fe=Math.abs(Ve),!(2>E*Fe*x))){if(tn=Gn.segmentIndex,(!isFinite(tn)||isNaN(tn))&&(tn=0),0>tn&&(tn=Fe-Math.min(-tn,Fe)),tn=Math.round(tn%Fe),Fe=Gn.opacity,on=1,Fe!==1){if(Fe===0)continue;on=y.globalAlpha,y.globalAlpha=on*Fe}Sn=zt[He];var nr=!1,Fr=Gn.strokeDashArray;if(Fr!==null&&(nr=!0,y.js(Fr,Gn.strokeDashOffset)),Gn.figure==="LineV"&&Gn.stroke!==null&&0<Gn.strokeWidth){for(y.lineWidth=Gn.strokeWidth,Ca(a,y,Gn.stroke,!1,!1,z,nt),y.beginPath(),Fr=Gn=Math.floor((kt-E)/E);Fr<=Gn+ut;Fr++){var vr=Fr*E+kt;0<=vr&&vr<=ot&&lo(Fr,Ve,tn,Sn)&&(y.moveTo(vr,0),y.lineTo(vr,at))}y.stroke(),y.Se()}else if(Gn.figure==="LineH"&&Gn.stroke!==null&&0<Gn.strokeWidth){for(y.lineWidth=Gn.strokeWidth,Ca(a,y,Gn.stroke,!1,!1,z,nt),y.beginPath(),Fr=Gn=Math.floor((yt-b)/b);Fr<=Gn+ct;Fr++)vr=Fr*b+yt,0<=vr&&vr<=at&&lo(Fr,Ve,tn,Sn)&&(y.moveTo(0,vr),y.lineTo(ot,vr));y.stroke(),y.Se()}else if(Gn.figure==="BarV"&&Gn.fill!==null)for(Ca(a,y,Gn.fill,!0,!1,z,nt),Gn=Gn.width,isNaN(Gn)&&(Gn=E),vr=Fr=Math.floor((kt-E)/E);vr<=Fr+ut;vr++){var Ki=vr*E+kt;0<=Ki+Gn&&Ki<=ot&&lo(vr,Ve,tn,Sn)&&y.fillRect(Ki,0,Gn,at)}else if(Gn.figure==="BarH"&&Gn.fill!==null)for(Ca(a,y,Gn.fill,!0,!1,z,nt),Gn=Gn.height,isNaN(Gn)&&(Gn=b),vr=Fr=Math.floor((yt-b)/b);vr<=Fr+ct;vr++)Ki=vr*b+yt,0<=Ki+Gn&&Ki<=at&&lo(vr,Ve,tn,Sn)&&y.fillRect(0,Ki,ot,Gn);nr&&y.fs(),Fe!==1&&(y.globalAlpha=on)}}y.restore(),y.Vc(!1)};function lo(a,y,x,b){if(0>y)return a%y===x;if(a%y!==x)return!1;y=b.length;for(var E=0;E<y;E++)if(a%b[E]===x)return!1;return!0}function Yr(){this.xa="Base"}Tn(Yr,xn),Yr.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof Ms||a instanceof Gi){var nt=null,ot=null;if(a instanceof Gi&&(nt=a),a instanceof Ms&&(ot=a,nt=ot.adornedPart,a.j===null&&(a.j=[])),nt instanceof Gi){var at=nt;if(z===0)Ia(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var ut=a instanceof Ms?null:nt.path;y=nt.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ct=at.points,yt=nt.pointsCount;ot!==null?ot.Ul(!1):nt!==null&&nt.Ul(!1),ot=y.width;var kt=y.height,zt=a.j;if(zt.length=0,ut!==null){as(a,ot,kt,ut);var Zt=ut.measuredBounds;x.ed(Zt),zt.push(Zt)}Zt=Ho.alloc();for(var he=Ne.alloc(),He=Ne.alloc(),Fe=0;Fe<z;Fe++){var Ve=b[Fe];if(Ve!==ut)if(Ve.isPanelMain&&Ve instanceof Io){as(a,ot,kt,Ve);var tn=Ve.measuredBounds;x.ed(tn),zt.push(tn)}else if(2>yt)Ve.measure(1/0,1/0,0,0),tn=Ve.measuredBounds,x.ed(tn),zt.push(tn);else{var on=Ve.segmentIndex,Sn=Ve.segmentFraction,Gn=Ve.alignmentFocus;Gn.Mc()&&(Gn=bo);var nr=Ve.segmentOrientation,Fr=Ve.segmentOffset;if(isNaN(on)){var vr=at.ua;tn=or(),vr.Qu(Sn,tn);var Ki=Ne.allocAt(tn[0],tn[1]);if(Ki.add(at.i(0)),vr.type===Wi.j?Ki.offset(-vr.startX,-vr.startY):(vr=vr.figures.first(),vr!==null&&Ki.offset(-vr.startX,-vr.startY)),vr=tn[2],nr!==Zh){var Mi=at.computeAngle(Ve,nr,vr);Ve.Kb=Mi}Mi=Ki.x-y.x;var Eo=Ki.y-y.y;Ne.free(Ki),Lr(tn)}else if(on<-yt||on>=yt)tn=Ne.alloc(),at.vg(),at.computeMidPoint(tn),vr=at.midAngle,nr!==Zh&&(Mi=at.computeAngle(Ve,nr,vr),Ve.Kb=Mi),Mi=tn.x-y.x,Eo=tn.y-y.y,Ne.free(tn);else{if(Mi=0,0<=on?(Eo=ct.M(on),tn=on<yt-1?ct.M(on+1):Eo):(Mi=yt+on,Eo=ct.M(Mi),tn=0<Mi?ct.M(Mi-1):Eo),Eo.Xa(tn)){0<=on?(vr=0<on?ct.M(on-1):Eo,Mi=on<yt-2?ct.M(on+2):tn):(vr=Mi<yt-1?ct.M(Mi+1):Eo,Mi=1<Mi?ct.M(Mi-2):tn),Ki=vr.Bf(Eo);var po=tn.Bf(Mi);vr=Ki>po+10?0<=on?vr.ab(Eo):Eo.ab(vr):po>Ki+10?0<=on?tn.ab(Mi):Mi.ab(tn):0<=on?vr.ab(Mi):Mi.ab(vr)}else vr=0<=on?Eo.ab(tn):tn.ab(Eo);nr!==Zh&&(Mi=at.computeAngle(Ve,nr,vr),Ve.Kb=Mi),Mi=Eo.x+(tn.x-Eo.x)*Sn-y.x,Eo=Eo.y+(tn.y-Eo.y)*Sn-y.y}Ve.measure(1/0,1/0,0,0),tn=Ve.measuredBounds,Ki=Ve.naturalBounds;var Ts=0;Ve instanceof Io&&(Ts=Ve.strokeWidth),po=Ki.width+Ts;var pa=Ki.height+Ts;Zt.reset(),Zt.translate(-tn.x,-tn.y),Zt.scale(Ve.scale,Ve.scale),Zt.rotate(nr===Zh?Ve.angle:vr,po/2,pa/2),nr!==xm&&nr!==Cm||Zt.rotate(90,po/2,pa/2),nr!==Sm&&nr!==Bm||Zt.rotate(-90,po/2,pa/2),nr===y0&&(45<vr&&135>vr||225<vr&&315>vr)&&Zt.rotate(-vr,po/2,pa/2),Ki=new ai(0,0,po,pa),he.xi(Ki,Gn),Zt.Ga(he),Gn=-he.x+Ts/2*Ve.scale,Ve=-he.y+Ts/2*Ve.scale,He.assign(Fr),Ts=isNaN(Fr.x);var Ou=isNaN(Fr.y);if(Ts||Ou){po=po/2+3,pa=pa/2+3;var Qu=45<=vr&&135>=vr,Uh=225<=vr&&315>=vr;nr===Zh&&(Qu||Uh)?(He.x=Ou?po:Fr.y,He.y=Ts?pa:Fr.x,Qu?0<=on||isNaN(on)&&.5>Sn||!Ts||(He.y=-pa):Uh&&((0<=on||isNaN(on)&&.5>Sn)&&Ts&&(He.y=-pa),Ou&&(He.x=-po))):(Ts&&(He.x=0<=on||isNaN(on)&&.5>Sn?po:-po),Ou&&(He.y=-pa),He.rotate(vr))}else He.rotate(vr);Mi+=He.x,Eo+=He.y,Ki.set(tn),Ki.h(Mi+Gn,Eo+Ve,tn.width,tn.height),zt.push(Ki),x.ed(Ki)}}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),Ia(E,x.width||0,x.height||0),Ho.free(Zt),Ne.free(he),Ne.free(He)}}}},Yr.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Ms||a instanceof Gi){var b=a,E=null;a instanceof Ms&&(E=a,b=E.adornedPart);var z=a instanceof Ms?null:b.path,nt=a.j;if(nt.length!==0){var ot=0;if(z!==null&&ot<nt.length){var at=nt[ot];ot++,z.arrange(at.x-a.jg.x,at.y-a.jg.y,at.width,at.height)}for(at=0;at<x;at++){var ut=y[at];if(ut!==z&&ot<nt.length){var ct=nt[ot];ot++,ut.arrange(ct.x-a.jg.x,ct.y-a.jg.y,ct.width,ct.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof Gi)for(z=a.labelNodes;z.next();){var yt=a;nt=z.value,ot=nt.segmentIndex,at=nt.segmentFraction;var kt=nt.alignmentFocus;if(ut=nt.segmentOrientation,ct=nt.segmentOffset,isNaN(ot)){var zt=yt.ua,Zt=or();zt.Qu(at,Zt);var he=Ne.allocAt(Zt[0],Zt[1]);he.add(yt.i(0)),zt.type===Wi.j||(zt=zt.figures.first()),he.offset(-zt.startX,-zt.startY),zt=Zt[2],ut!==Zh&&(yt=yt.computeAngle(nt,ut,zt),nt.angle=yt),yt=he.x;var He=he.y;Ne.free(he),Lr(Zt)}else if(ot<-x||ot>=x)Zt=Ne.alloc(),zt=yt,He=Zt,zt.vg(),zt.computeMidPoint(He),zt=yt.midAngle,ut!==Zh&&(yt=yt.computeAngle(nt,ut,zt),nt.angle=yt),yt=Zt.x,He=Zt.y,Ne.free(Zt);else{if(he=0,0<=ot?(Zt=y.s[ot],He=ot<x-1?y.s[ot+1]:Zt):(he=x+ot,Zt=y.s[he],He=0<he?y.s[he-1]:Zt),Zt.Xa(He)){0<=ot?(zt=0<ot?y.s[ot-1]:Zt,he=ot<x-2?y.s[ot+2]:He):(zt=he<x-1?y.s[he+1]:Zt,he=1<he?y.s[he-2]:He);var Fe=zt.Bf(Zt),Ve=He.Bf(he);zt=Fe>Ve+10?0<=ot?zt.ab(Zt):Zt.ab(zt):Ve>Fe+10?0<=ot?He.ab(he):he.ab(He):0<=ot?zt.ab(he):he.ab(zt)}else zt=0<=ot?Zt.ab(He):He.ab(Zt);ut!==Zh&&(yt=yt.computeAngle(nt,ut,zt),nt.angle=yt),yt=Zt.x+(He.x-Zt.x)*at,He=Zt.y+(He.y-Zt.y)*at}if(kt.ys())nt.location=new Ne(yt,He);else{kt.Mc()&&(kt=bo),Zt=Ho.alloc(),Zt.reset(),Zt.scale(nt.scale,nt.scale),Zt.rotate(nt.angle,0,0);var tn=nt.naturalBounds;he=ai.allocAt(0,0,tn.width,tn.height),Fe=Ne.alloc(),Fe.xi(he,kt),Zt.Ga(Fe),kt=-Fe.x,Ve=-Fe.y;var on=tn.width,Sn=tn.height;tn=Ne.alloc(),tn.assign(ct);var Gn=isNaN(ct.x),nr=isNaN(ct.y);if(Gn||nr){on=on/2+3,Sn=Sn/2+3;var Fr=45<=zt&&135>=zt,vr=225<=zt&&315>=zt;ut===Zh&&(Fr||vr)?(tn.x=nr?on:ct.y,tn.y=Gn?Sn:ct.x,Fr?0<=ot||isNaN(ot)&&.5>at||!Gn||(tn.y=-Sn):vr&&((0<=ot||isNaN(ot)&&.5>at)&&Gn&&(tn.y=-Sn),nr&&(tn.x=-on))):(Gn&&(tn.x=0<=ot||isNaN(ot)&&.5>at?on:-on),nr&&(tn.y=-Sn),tn.rotate(zt))}else tn.rotate(zt);yt+=tn.x,He+=tn.y,Zt.pp(he),kt+=he.x,Ve+=he.y,ot=Ne.allocAt(yt+kt,He+Ve),nt.move(ot),Ne.free(ot),Ne.free(tn),Ne.free(Fe),ai.free(he),Ho.free(Zt)}}E!==null?E.Ul(!1):b.Ul(!1),b=Ry(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Ne.free(b)}};function as(a,y,x,b){if(wh(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof Ms&&a.type===ci.Link&&a.adornedObject instanceof Io&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof Gi&&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 Ms&&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),kl(b,!1)}}function ts(){this.xa="Base"}Tn(ts,xn),ts.prototype.measure=function(a,y,x,b,E,z,nt){var ot=a.Pb();a.graduatedBounds=[];var at=ot.margin,ut=at.right+at.left,ct=at.top+at.bottom;ot.measure(y,x,z,nt);var yt=ot.measuredBounds,kt=new ai(-at.left,-at.top,Math.max(yt.width+ut,0),Math.max(yt.height+ct,0));a.graduatedBounds.push(kt),E.assign(kt);for(var zt=ot.geometry,Zt=ot.strokeWidth,he=zt.flattenedSegments,He=zt.flattenedLengths,Fe=zt.flattenedTotalLength,Ve=he.length,tn=0,on=0,Sn=or(),Gn=0;Gn<Ve;Gn++){var nr=he[Gn],Fr=[];on=tn=0;for(var vr=nr.length,Ki=0;Ki<vr;Ki+=2){var Mi=nr[Ki],Eo=nr[Ki+1];if(Ki!==0){var po=180*Math.atan2(Eo-on,Mi-tn)/Math.PI;0>po&&(po+=360),Fr.push(po)}tn=Mi,on=Eo}Sn.push(Fr)}if(a.graduatedIntervals===null){for(var Ts=[],pa=a.O.s,Ou=pa.length,Qu=0;Qu<Ou;Qu++){var Uh=pa[Qu],Du=[];if(Ts.push(Du),Uh.visible){var Tf=Uh.interval;if(!(0>Tf)){for(var ql=0;ql<Ou;ql++)if(ql!==Qu){var mA=pa[ql];if(mA.visible&&Uh.constructor===mA.constructor){var Rh=mA.interval;Rh>Tf&&Du.push(Rh)}}}}}a.graduatedIntervals=Ts}var Of=a.graduatedIntervals,qc=a.O.s,Ud=qc.length,Nc=0,yc=0,Ag=Fe;a.graduatedMarks=[];for(var vA,Jp=0;Jp<Ud;Jp++){var Ic=qc[Jp];if(vA=[],Ic.visible&&Ic!==ot){var _h=Math.abs(Ic.interval),Zm=a.graduatedTickUnit;if(!(2>Zm*_h*Fe/a.graduatedRange&&Ic.graduatedSkip===null)){var fp=He[0][0],RA=0,wc=0;yc=Fe*Ic.graduatedStart-1e-4,Ag=Fe*Ic.graduatedEnd+1e-4;var Dg=Zm*_h,kc=a.graduatedTickBase;if(kc<a.graduatedMin){var fg=(a.graduatedMin-kc)/Dg;fg=fg%1===0?fg:Math.floor(fg+1),kc+=fg*Dg}else kc>a.graduatedMin+Dg&&(kc-=Math.floor((kc-a.graduatedMin)/Dg)*Dg);for(var av=Of[Jp],Xm=kc,Py=1e-6*a.graduatedMax,of=1;kc<=a.graduatedMax+Py;of++){t:{for(var Af=av.length,gp=0;gp<Af;gp++){var gg=(kc-a.graduatedTickBase)%(av[gp]*a.graduatedTickUnit),qp=1e-6*a.graduatedTickUnit;if(gg<qp&&gg>-qp){var pg=!1;break t}}pg=!0}if(pg&&(kc>a.graduatedMax&&(kc=a.graduatedMax),Ic.graduatedSkip===null||Ic instanceof oa&&!Ic.graduatedSkip(kc,Ic)||Ic instanceof Io&&!Ic.graduatedSkip(kc,Ic))&&(Nc=(kc-a.graduatedMin)*Fe/a.graduatedRange,Nc>Fe&&(Nc=Fe),yc<=Nc&&Nc<=Ag)){for(var sf=Sn[RA][wc],Df=He[RA][wc];RA<He.length;){for(;Nc>fp&&wc<He[RA].length-1;)wc++,sf=Sn[RA][wc],Df=He[RA][wc],fp+=Df;if(Nc<=fp)break;RA++,wc=0,sf=Sn[RA][wc],Df=He[RA][wc],fp+=Df}var xc=he[RA],_A=xc[2*wc],lv=xc[2*wc+1],ff=(Nc-(fp-Df))/Df,tm=new Ne(_A+(xc[2*wc+2]-_A)*ff+Zt/2-zt.bounds.x,lv+(xc[2*wc+3]-lv)*ff+Zt/2-zt.bounds.y);tm.scale(ot.scale,ot.scale);t:{var yA=sf,jg=Sn[RA];if(!(.5005>ff&&.4995<ff)){var HA=yA;if(.5>ff?0<wc?HA=jg[wc-1]:En.$(xc[0],xc[xc.length-2])&&En.$(xc[1],xc[xc.length-1])&&(HA=jg[jg.length-1]):.5<ff&&(wc+1<jg.length?HA=jg[wc+1]:En.$(xc[0],xc[xc.length-2])&&En.$(xc[1],xc[xc.length-1])&&(HA=jg[0])),yA!==HA){var pp=Math.abs(yA-HA);if(180<pp&&(yA<HA?yA+=360:HA+=360,pp=Math.abs(yA-HA)),5e-4>ff||.9995<ff){sf=(yA+HA)/2%360;break t}if(10>pp){var em=1-Math.abs(.5-ff);sf=(yA*em+HA*(1-em))%360;break t}}}sf=yA}if(Ic instanceof oa){var rA="";Ic.graduatedFunction!==null?(rA=Ic.graduatedFunction(kc,Ic),rA=rA!=null?rA.toString():""):rA=(+kc.toFixed(2)).toString(),rA!==""&&vA.push({$l:tm,angle:sf,text:rA})}else vA.push({$l:tm,angle:sf})}kc=Xm+of*Dg}}}a.graduatedMarks.push(vA)}Lr(Sn);var ih=a.graduatedMarks;if(ih!==null)for(var $m=b.length,qh=0;qh<$m;qh++){var tu=b[qh],tc=ih[qh];if(tu.visible&&tu!==ot&&tc.length!==0){if(tu instanceof Io){var gf=a,jf=E,Ug=tu.alignmentFocus;Ug.Mc()&&(Ug=El);var by=tu.angle;tu.Kb=0,tu.measure(1/0,1/0,0,0),tu.Kb=by;var uv=tu.measuredBounds,nm=uv.width,Rg=uv.height,mp=ai.allocAt(0,0,nm,Rg),Sc=Ne.alloc();Sc.xi(mp,Ug),ai.free(mp);for(var pf=-Sc.x,wA=-Sc.y,vd=new ai,mg=tc.length,im=0;im<mg;im++)for(var vg=tc[im],hv=vg.$l.x,rm=vg.$l.y,_l=vg.angle,oA=0;4>oA;oA++){switch(oA){case 0:Sc.h(pf,wA);break;case 1:Sc.h(pf+nm,wA);break;case 2:Sc.h(pf,wA+Rg);break;case 3:Sc.h(pf+nm,wA+Rg)}Sc.rotate(_l+tu.angle),Sc.offset(hv,rm),im===0&&oA===0?vd.h(Sc.x,Sc.y,0,0):vd.Ye(Sc),Sc.offset(-hv,-rm),Sc.rotate(-_l-tu.angle)}Ne.free(Sc),gf.graduatedBounds!==null&&gf.graduatedBounds.push(vd),Es(jf,vd.x,vd.y,vd.width,vd.height)}else if(tu instanceof oa){var Rd=a,cv=E;Rd.temporaryTextBlock===null&&(Rd.temporaryTextBlock=new oa);var Tc=Rd.temporaryTextBlock;Eg(Tc,tu);var Uf=tu.alignmentFocus;Uf.Mc()&&(Uf=El);for(var _d=tu.segmentOrientation,om=tu.segmentOffset,yg=new ai,Ym=0,sm=0,QA=0,_g=0,wg=0,am=tc.length,Rf=0;Rf<am;Rf++){var af=tc[Rf];Ym=af.$l.x,sm=af.$l.y,QA=af.angle,wg=_g=tu.angle,_d!==Zh&&(wg=_d===wm||_d===v0?QA+tu.angle:QA,_g=Gi.computeAngle(_d,wg)),Tc.Kb=_g,Tc.text=af.text||"",Tc.measure(1/0,1/0,0,0);var _f=Tc.measuredBounds,mf=Tc.naturalBounds,Hf=mf.width,Hg=mf.height,xA=Ho.alloc();xA.reset(),xA.translate(-_f.x,-_f.y),xA.scale(Tc.scale,Tc.scale),xA.rotate(wg,Hf/2,Hg/2),_d!==xm&&_d!==Cm||xA.rotate(90,Hf/2,Hg/2),_d!==Sm&&_d!==Bm||xA.rotate(-90,Hf/2,Hg/2),_d===y0&&(45<QA&&135>QA||225<QA&&315>QA)&&xA.rotate(-QA,Hf/2,Hg/2);var vp=ai.allocAt(0,0,Hf,Hg),Qf=Ne.alloc();Qf.xi(vp,Uf),xA.Ga(Qf);var yp=-Qf.x,Ey=-Qf.y,vf=Ne.alloc();vf.assign(om),isNaN(vf.x)&&(vf.x=Hf/2+3),isNaN(vf.y)&&(vf.y=-(Hg/2+3)),vf.rotate(QA),Ym+=vf.x+yp,sm+=vf.y+Ey;var Qg=new ai(Ym,sm,_f.width,_f.height),Jm=new ai(_f.x,_f.y,_f.width,_f.height),Fy=new ai(mf.x,mf.y,mf.width,mf.height);af.Sz=_g,af.lineCount=Tc.lineCount,af.lines=[Tc.Cb,Tc.Ih,Tc.df,Tc.Le,Tc.Qc,Tc.Qb,Tc.ze],af.actualBounds=Qg,af.measuredBounds=Jm,af.naturalBounds=Fy,Rf===0?yg.assign(Qg):yg.ed(Qg),Ne.free(vf),Ne.free(Qf),ai.free(vp),Ho.free(xA)}Rd.graduatedBounds!==null&&Rd.graduatedBounds.push(yg),Es(cv,yg.x,yg.y,yg.width,yg.height)}kl(tu,!1)}}},ts.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),E=a.graduatedMarks;if(E!==null){var z=a.graduatedBounds,nt=0,ot=z[nt];nt++,b!==null&&b.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height);for(var at=y.length,ut=0;ut<at;ut++){var ct=y[ut];ot=E[ut],ct.visible&&ct!==b&&ot.length!==0&&(ot=z[nt],nt++,ct.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height))}a.graduatedBounds=null}}},ts.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 eh,y.save(),y.beginPath(),y.rect(-1,-1,z+1,nt+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),nt=a.Df()*x.scale,0>=nt&&(nt=1);for(var ot=z.actualBounds,at=a.O.s,ut=a.graduatedMarks,ct=at.length,yt=0;yt<ct;yt++){var kt=at[yt],zt=ut[yt],Zt=zt.length;if(kt.visible&&kt!==z&&zt.length!==0){if(kt instanceof Io){if(!(2>a.graduatedTickUnit*kt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*nt&&kt.graduatedSkip===null)){var he=kt.measuredBounds,He=kt.strokeWidth*kt.scale,Fe=kt.alignmentFocus;Fe.Mc()&&(Fe=El);for(var Ve=0;Ve<Zt;Ve++){var tn=zt[Ve].$l,on=zt[Ve].angle,Sn=Fe,Gn=kt.Ab;Gn.reset(),Gn.translate(tn.x+ot.x,tn.y+ot.y),Gn.rotate(on+kt.angle,0,0),Gn.translate(-he.width*Sn.x+Sn.offsetX+He/2,-he.height*Sn.y+Sn.offsetY+He/2),Gn.scale(kt.scale,kt.scale),lc(kt,!1),kt.wh.set(kt.Ab),kt.Kk=kt.scale,uh(kt,!1),kt.gc(y,x),E&&(a.svg.appendChild(kt.svg),kt.svg=null),kt.Ab.reset()}}}else if(kt instanceof oa)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new oa),he=a.temporaryTextBlock,Eg(he,kt),He=0;He<Zt;He++)Fe=zt[He],Fe.actualBounds&&Fe.measuredBounds&&Fe.naturalBounds&&(he.ec=Fe.text||"",he.Kb=Fe.Sz||0,he.Gc=Fe.lineCount||0,Ve=Fe.lines,Ve!==void 0&&(he.Cb=Ve[0],he.Ih=Ve[1],he.df=Ve[2],he.Le=Ve[3],he.Qc=Ve[4],he.Qb=Ve[5],he.ze=Ve[6]),Fe.naturalBounds&&(he.dc=Fe.naturalBounds),Fe.actualBounds&&(Ve=Fe.actualBounds,he.arrange(Ve.x,Ve.y,Ve.width,Ve.height)),Ve=Fe.actualBounds,he.arrange(Ve.x,Ve.y,Ve.width,Ve.height),tn=Fe.measuredBounds,Fe=Fe.naturalBounds,on=he.Ab,on.reset(),on.translate(Ve.x+ot.x,Ve.y+ot.y),on.translate(-tn.x,-tn.y),he.no(on,Fe.x,Fe.y,Fe.width,Fe.height),lc(he,!1),he.wh.set(he.Ab),he.Kk=he.scale,uh(he,!1),he.Ng=kt.part,he.Me=kt.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 ci(a,y){if(pn.call(this),this.na=null,a===void 0)this.na=ci.Position;else if(typeof a=="string"){var x=hh.I(a);x!==null&&(this.na=x)}else a instanceof xn?this.na=a:a&&(this.na=ci.Position,y=a);this.na===null&&qe("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===ci.Grid?1048576:0),this.O=new Pi,this.yb=Su,this.Tm=Ls,this.Uf=vo,this.$g=null,this.$e="",this.jg=new ai(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=yr,this.jn=Ro,this.kn=ds,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Tn(ci,pn),ci.prototype.cloneProtected=function(a){pn.prototype.cloneProtected.call(this,a),a.na=this.na,a.yb=this.yb.J(),a.Tm=this.Tm.J(),a.Uf=this.Uf,a.$e=this.$e,a.jg.assign(this.jg),this.T!==null&&(a.T=this.T.copy(a)),a.xo=this.xo,a.jn=this.jn.J(),a.kn=this.kn.J(),this.ra!==null&&(a.ra=this.ra.copy()),a.ub=this.ub,a.zn=this.zn,a.Hh=this.Hh},ci.prototype.Af=function(a){pn.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,b=0;b<x;b++)y[b].Me=a;a.$g=null},ci.prototype.copy=function(){var a=pn.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].copy();E.wi(a),E.Ng=null;var z=a.O,nt=z.count;if(z.Gb(nt,E),z=a.part,z!==null){z.Rh=null,E.portId!==null&&z instanceof cr&&(z.Te=!0);var ot=a.diagram;ot!==null&&ot.undoManager.isUndoingRedoing||z.cb(gl,"elements",a,null,E,null,nt)}}return a}return null},Xt=ci.prototype,Xt.toString=function(){return"Panel("+this.type.name+")#"+xs(this)},Xt.Pn=function(a){pn.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},Xt.hh=function(a,y){if(this.na===ci.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===ci.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===ci.Table)if(a.yc(),a instanceof eh){var x=a.yd;a.yd=Id(a,"gojs-ts"),os(this,a),a.nh.pop(),a.yd=x}else os(this,a);(x=this.isClipping&&this.na===ci.Spot)&&a.save();for(var b=this.Pb(),E=this.O.s,z=E.length,nt=0;nt<z;nt++){var ot=E[nt];x&&ot===b&&(a.clipInsteadOfFill=!0),ot.gc(a,y),x&&ot===b&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function os(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&bl(a,y,!0,x,!0),b!==null&&bl(a,y,!1,b,!0),x!==null&&Pl(a,y,!0,x),b!==null&&Pl(a,y,!1,b),x!==null&&bl(a,y,!0,x,!1),b!==null&&bl(a,y,!1,b,!1)}function Pl(a,y,x,b){for(var E=b.length,z=a.actualBounds,nt=a.naturalBounds,ot=!0,at=0;at<E;at++){var ut=b[at];if(ut!==void 0&&ut.actual!==0)if(ot)ot=!1;else{if(x){if(ut.position>nt.height)continue}else if(ut.position>nt.width)continue;var ct=ut.separatorStrokeWidth;isNaN(ct)&&(ct=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var yt=ut.separatorStroke;if(yt===null&&(yt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ct!==0&&yt!==null){Ca(a,y,yt,!1,!1,nt,z),yt=!1;var kt=ut.separatorDashArray;kt===null&&(kt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),kt!==null&&(yt=!0,y.js(kt,0)),y.beginPath(),kt=ut.position+ct,x?kt>nt.height&&(ct-=kt-nt.height):kt>nt.width&&(ct-=kt-nt.width),ut=ut.position+ct/2,y.lineWidth=ct,ct=a.yb,x?(ut+=ct.top,kt=nt.width-ct.right,y.moveTo(ct.left,ut),y.lineTo(kt,ut)):(ut+=ct.left,kt=nt.height-ct.bottom,y.moveTo(ut,ct.top),y.lineTo(ut,kt)),y.stroke(),y.Se(),yt&&y.fs()}}}}function bl(a,y,x,b,E){for(var z=b.length,nt=a.actualBounds,ot=a.naturalBounds,at=il(a,!0),ut=il(a,!1),ct=0;ct<z;ct++){var yt=b[ct];if(yt!==void 0&&yt.background!==null&&yt.coversSeparators!==E&&yt.actual!==0){var kt=x?nt.height:nt.width;if(!(yt.position>kt)){var zt=yt.Wc(),Zt=yt.separatorStrokeWidth;isNaN(Zt)&&(Zt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var he=yt.separatorStroke;he===null&&(he=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(he===null||yt.index===(x?at:ut))&&(Zt=0),zt-=Zt,Zt=yt.position+Zt,zt+=yt.actual,Zt+zt>kt&&(zt=kt-Zt),0>=zt||(kt=a.yb,Ca(a,y,yt.background,!0,!1,ot,nt),x?y.fillRect(kt.left,Zt+kt.top,nt.width-(kt.left+kt.right),zt):y.fillRect(Zt+kt.left,kt.top,zt,nt.height-(kt.top+kt.bottom)))}}}}function il(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 Ga(a){return a==="LineV"||a==="BarV"}Xt.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Xt.kk=function(a,y,x){if(!pn.prototype.kk.call(this,a,y,x))return!1;if(this.type===ci.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,os(this,a),a.yd=null;else if(this.na===ci.Grid||this.na===ci.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},Xt.nk=function(){return!0},Xt.$o=function(a,y,x,b){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var E=0,z=0,nt=0;nt<y.length;nt++)if(y[nt].Ed()){var ot=y[nt].actualBounds;E=nt===0?ot.x:Math.min(ot.x,E),z=nt===0?ot.y:Math.min(ot.y,z)}b.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-E)+","+(a.y-x.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else pn.prototype.$o.call(this,a,y,x,b)},Xt.Sj=function(a,y,x,b,E){var z=this.se(),nt=this.transform,ot=1/(nt.m11*nt.m22-nt.m12*nt.m21),at=nt.m22*ot,ut=-nt.m12*ot,ct=-nt.m21*ot,yt=nt.m11*ot,kt=ot*(nt.m21*nt.dy-nt.m22*nt.dx),zt=ot*(nt.m12*nt.dx-nt.m11*nt.dy);if(this.areaBackground!==null)return nt=this.actualBounds,En.Ff(nt.left,nt.top,nt.right,nt.bottom,a,y,x,b,E);if(this.background!==null)return z=a*at+y*ct+kt,ot=a*ut+y*yt+zt,a=x*at+b*ct+kt,at=x*ut+b*yt+zt,E.h(0,0),x=this.naturalBounds,z=En.Ff(0,0,x.width,x.height,z,ot,a,at,E),E.transform(nt),z;z||(at=1,ct=ut=0,yt=1,zt=kt=0),ot=a*at+y*ct+kt,a=a*ut+y*yt+zt,at=x*at+b*ct+kt,x=x*ut+b*yt+zt,E.h(at,x),b=(at-ot)*(at-ot)+(x-a)*(x-a),ut=!1,yt=this.O.s,zt=yt.length,ct=Ne.alloc(),kt=null,y=1/0;var Zt=null,he=this.isClipping&&this.na===ci.Spot;he&&(Zt=Ne.alloc(),kt=this.Pb(),(ut=kt.Sj(ot,a,at,x,Zt))&&(y=(ot-Zt.x)*(ot-Zt.x)+(a-Zt.y)*(a-Zt.y)));for(var He=0;He<zt;He++){var Fe=yt[He];Fe.visible&&Fe!==kt&&Fe.Sj(ot,a,at,x,ct)&&(ut=!0,Fe=(ot-ct.x)*(ot-ct.x)+(a-ct.y)*(a-ct.y),Fe<b&&(b=Fe,E.set(ct)))}return he&&(y>b&&E.set(Zt),Ne.free(Zt)),Ne.free(ct),z&&E.transform(nt),ut},Xt.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();pn.prototype.Gj.call(this)},Xt.v=function(a){if(!wh(this)){pn.prototype.v.call(this,a),a=null,(this.na===ci.Auto||this.na===ci.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=lh(E,!1);(E instanceof Vh||E instanceof ci||E instanceof oa||z!==bi)&&E.v(!0)}}}},Xt.Uj=function(){if(!wh(this)){kl(this,!0),Wc(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Xt.Uk=function(){if(!(this.l&2048)){lc(this,!0),uh(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Xt.Wu=function(){uh(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Xt.Wl=function(a,y,x,b){var E=this.jg;E.h(0,0,0,0);var z=this.desiredSize,nt=this.minSize;x===void 0&&(x=nt.width,b=nt.height),x=Math.max(x,nt.width),b=Math.max(b,nt.height);var ot=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,ot.width)),isNaN(z.height)||(y=Math.min(z.height,ot.height)),a=Math.max(x,a),y=Math.max(b,y);var at=this.yb;a=Math.max(a-at.left-at.right,0),y=Math.max(y-at.top-at.bottom,0);var ut=this.O.s;ut.length!==0&&this.na.measure(this,a,y,ut,E,x,b),a=E.width+at.left+at.right,at=E.height+at.top+at.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(at=z.height),a=Math.min(ot.width,a),at=Math.min(ot.height,at),a=Math.max(nt.width,a),at=Math.max(nt.height,at),a=Math.max(x,a),at=Math.max(b,at),Ia(E,a,at),Ia(this.naturalBounds,a,at),this.Ge(0,0,a,at)},Xt.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}Xt.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=lh(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 ki:this.v(!0),this.measure(x+ot,b+nt,0,0);break;case kr: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)}},Xt.gh=function(a){var y=this.naturalBounds,x=Ha(this);if(Ks(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=Ne.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(Wo(E.set(a),z.transform),z.ca(E)))return Ne.free(E),!0}return Ne.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},Xt.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},Xt.qm=function(a,y){if(y(this,a),a instanceof ci){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function Al(a,y){Ma(a,a,y)}function Ma(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 ci&&Ma(a,z,x)}}function Gh(a,y){ud(a,a,y)}function ud(a,y,x){if(x(y),y instanceof ci){y=y.O.s;for(var b=y.length,E=0;E<b;E++)ud(a,y[E],x)}}Xt.Nl=function(a){return jh(this,this,a)};function jh(a,y,x){if(x(y))return y;if(y instanceof ci){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=jh(a,y[E],x);if(z!==null)return z}}return null}Xt.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=OA(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof ci){var z=E.fb(a);if(z!==null)return z}if(E.name===a)return E}return null};function hd(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof ci?x=Math.max(x,hd(E)):E instanceof Io&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}Xt.se=function(){return!(this.type===ci.TableRow||this.type===ci.TableColumn)};function Tl(a){return a.type===ci.TableRow||a.type===ci.TableColumn}Xt.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),th(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),nt=z?a:Wo(Ne.allocAt(a.x,a.y),this.transform),ot=this.diagram,at=10,ut=5;if(ot!==null&&(at=ot.Ql("extraTouchArea"),ut=at/2),Ks(-(ut*E),-(ut*E),b.width+at*E,b.height+at*E,nt.x,nt.y)){if(!this.isAtomic){E=this.O.s;var ct=E.length;if(ot=Ne.alloc(),ut=(at=this.isClipping&&this.na===ci.Spot)?this.Pb():null,at&&(ut.se()?Wo(ot.set(a),ut.transform):ot.set(a),!ut.ca(ot)))return Ne.free(ot),z||Ne.free(nt),null;for(var yt=Ha(this);ct--;){var kt=E[ct];if((kt.visible||kt===yt)&&(kt.se()?Wo(ot.set(a),kt.transform):ot.set(a),!at||kt!==ut)){var zt=null;if(kt instanceof ci?zt=kt.ic(ot,y,x):kt.pickable===!0&&kt.ca(ot)&&(zt=kt),zt!==null&&(y!==null&&(zt=y(zt)),zt!==null&&(x===null||x(zt))))return Ne.free(ot),z||Ne.free(nt),zt}}Ne.free(ot)}return this.background===null&&this.areaBackground===null?(z||Ne.free(nt),null):(a=Ks(0,0,b.width,b.height,nt.x,nt.y)?this:null,z||Ne.free(nt),a)}return z||Ne.free(nt),null},Xt.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:Wo(Ne.allocAt(a.x,a.y),this.transform);if(E=Ks(0,0,E.width,E.height,nt.x,nt.y),Tl(this)||E){if(!this.isAtomic){for(var ot=this.O.s,at=ot.length,ut=Ne.alloc(),ct=Ha(this);at--;){var yt=ot[at];if(yt.visible||yt===ct){yt.se()?Wo(ut.set(a),yt.transform):ut.set(a);var kt=yt;yt=yt instanceof ci?yt:null,(yt!==null?yt.ji(ut,y,x,b):kt.ca(ut))&&kt.pickable!==!1&&(y!==null&&(kt=y(kt)),kt===null||x!==null&&!x(kt)||b.add(kt))}}Ne.free(ut)}return z||Ne.free(nt),E&&(this.background!==null||this.areaBackground!==null)}return z||Ne.free(nt),!1},Xt.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=Ho.alloc(),nt.reset()),nt.multiply(this.transform),this.fh(a,nt))return cd(this,y,x,E),z===void 0&&Ho.free(nt),!0;if(this.Yc(a,nt)){if(!this.isAtomic)for(var ot=Ha(this),at=this.O.s,ut=at.length;ut--;){var ct=at[ut];if(ct.visible||ct===ot){var yt=ct.actualBounds,kt=this.naturalBounds;yt.x>kt.width||yt.y>kt.height||0>yt.x+yt.width||0>yt.y+yt.height||(yt=ct,ct=ct instanceof ci?ct:null,kt=Ho.alloc(),kt.set(nt),(ct!==null?ct.Cf(a,y,x,b,E,kt):Bl(yt,a,b,kt))&&(y!==null&&(yt=y(yt)),yt===null||x!==null&&!x(yt)||E.add(yt)),Ho.free(kt))}}return z===void 0&&Ho.free(nt),b}return z===void 0&&Ho.free(nt),!1};function cd(a,y,x,b){for(var E=a.O.s,z=E.length;z--;){var nt=E[z];if(nt.visible){var ot=nt.actualBounds,at=a.naturalBounds;ot.x>at.width||ot.y>at.height||0>ot.x+ot.width||0>ot.y+ot.height||(nt instanceof ci&&cd(nt,y,x,b),y!==null&&(nt=y(nt)),nt===null||x!==null&&!x(nt)||b.add(nt))}}}Xt.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:Wo(Ne.allocAt(a.x,a.y),this.transform),ut=ot?y:Wo(Ne.allocAt(y.x,y.y),this.transform),ct=at.Bf(ut),yt=0<at.x&&at.x<nt.width&&0<at.y&&at.y<nt.height||Gs(at.x,at.y,0,0,0,nt.height)<=ct||Gs(at.x,at.y,0,nt.height,nt.width,nt.height)<=ct||Gs(at.x,at.y,nt.width,nt.height,nt.width,0)<=ct||Gs(at.x,at.y,nt.width,0,0,0)<=ct;if(nt=at.zd(0,0)<=ct&&at.zd(0,nt.height)<=ct&&at.zd(nt.width,0)<=ct&&at.zd(nt.width,nt.height)<=ct,ot||(Ne.free(at),Ne.free(ut)),yt){if(!this.isAtomic){at=Ne.alloc(),ut=Ne.alloc(),ct=Ha(this);for(var kt=this.O.s,zt=kt.length;zt--;){var Zt=kt[zt];if(Zt.visible||Zt===ct){var he=Zt.actualBounds,He=this.naturalBounds;(!ot||!(he.x>He.width||he.y>He.height||0>he.x+he.width||0>he.y+he.height))&&(Zt.se()?(he=Zt.transform,Wo(at.set(a),he),Wo(ut.set(y),he)):(at.set(a),ut.set(y)),he=Zt,Zt=Zt instanceof ci?Zt:null,(Zt!==null?Zt.og(at,ut,x,b,E,z):he.tx(at,ut,E))&&(x!==null&&(he=x(he)),he===null||b!==null&&!b(he)||z.add(he)))}}Ne.free(at),Ne.free(ut)}return E?yt:nt}return!1};function dd(a){var y=null;return a instanceof Io&&(y=a.spot1,y===Ls&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=rl),y}function Wh(a){var y=null;return a instanceof Io&&(y=a.spot2,y===Ls&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=$l),y}Xt.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},Xt.M=function(a){return this.O.M(a)},Xt.Gb=function(a,y){y instanceof Xr&&qe("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&qe("Cannot make a Panel contain itself: "+this.toString()),qe("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&qe("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!==ci.Grid||y instanceof Io||qe("Can only add Shapes to a Grid Panel, not: "+y),this.na!==ci.Graduated||y instanceof Io||y instanceof oa||qe("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 wr),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 qe("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),wh(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof ci&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Xg(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof cr&&(x.Te=!0),x.Te&&x instanceof cr&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(Hl,"elements",this,y,null,b,null),x.cb(gl,"elements",this,null,y,null,a)))};function uc(a,y){a.l=y?a.l|16777216:a.l&-16777217}Xt.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)},Xt.mb=function(a){0<=a&&this.pc(a,!0)},Xt.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),kl(this,!1),this.v(),this.$g===b&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof cr&&(b instanceof ci?b.qm(b,function(nt,ot){Ev(z,ot,y)}):Ev(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(Hl,"elements",this,b,null,a,null))},Xt.Fb=function(a){0>a&&Ei(a,">= 0",ci,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Vl;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(gl,"rowdefs",this,null,x,null,a)}return y[a]},Xt.oA=function(a){if(0>a&&Ei(a,">= 0",ci,"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(Hl,"rowdefs",this,x,null,a,null),this.v()}}};function Vc(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Vl?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Xt.Eb=function(a){0>a&&Ei(a,">= 0",ci,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Vl;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(gl,"coldefs",this,null,x,null,a)}return y[a]},Xt.jA=function(a){if(0>a&&Ei(a,">= 0",ci,"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(Hl,"coldefs",this,x,null,a,null),this.v()}}};function qd(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Vl?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Xt.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Xf(y,a),this},Xt.Hy=function(a,y){return(a=this.Fb(a))&&Xf(a,new Vl(y)),this},Xt.By=function(a,y){return(a=this.Eb(a))&&Xf(a,new Vl(y)),this},Xt.nz=function(a){if(0>a||this.type!==ci.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},Xt.fz=function(a){if(0>a||this.type!==ci.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},Xt.Fz=function(a,y){if(y===void 0&&(y=new Ne(NaN,NaN)),this.type!==ci.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)},Xt.Gz=function(a){if(this.type!==ci.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function TA(a){return a=a.allBindings,a!==null&&a._isFrozen}function ru(a){var y=a.allBindings;if(y===null)a.data!==null&&qe("Template cannot have .data be non-null: "+a),a.allBindings=y=new Pi;else if(y._isFrozen)return;var x=new Pi;uc(a,!1),a.qm(a,function(ut,ct){ct.th();var yt=ct.localBindings;if(yt!==null)for(ad(ct,!1),yt=yt.iterator;yt.next();){var kt=yt.value;kt.mode===Im&&ad(ct,!0);var zt=kt.sourceName;zt!==null&&(zt==="/"&&uc(ut,!0),zt=k1(kt,ut,ct),zt!==null&&(x.add(zt),zt.srcBindings===null&&(zt.srcBindings=new Pi),zt.srcBindings.add(kt))),y.add(kt)}if(ct instanceof ci&&ct.type===ci.Table){if(0<ct.rowCount){for(ut=ct.rowDefs,yt=ut.length,kt=0;kt<yt;kt++)if(zt=ut[kt],zt!==void 0&&zt.be!==null)for(var Zt=zt.be.iterator;Zt.next();){var he=Zt.value;he.xd=zt,he.to=2,he.wl=zt.index,y.add(he)}}if(0<ct.columnCount){for(ct=ct.colDefs,ut=ct.length,yt=0;yt<ut;yt++)if(kt=ct[yt],kt!==void 0&&kt.be!==null)for(zt=kt.be.iterator;zt.next();)Zt=zt.value,Zt.xd=kt,Zt.to=1,Zt.wl=kt.index,y.add(Zt)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){ad(E,!0);for(var z=E.srcBindings.iterator;z.next();){var nt=z.value;E.localBindings===null&&(E.localBindings=new Pi),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 ci&&(nt=ot.substring(0,at),ot=ot.substr(at+1),at=z.fb(nt),at!==null?(z=at,E.targetProperty=ot):tr('Warning: unable to find GraphObject named "'+nt+'" for Binding: '+E.toString())),z instanceof Vl?(nt=xs(z.panel),E.Ai=nt===void 0?-1:nt,z.panel.bindingId=E.Ai):z instanceof pn?(nt=xs(z),E.Ai=nt===void 0?-1:nt,z.bindingId=E.Ai):qe("Unknown type of binding target: "+z)}y.freeze(),a instanceof Xr&&a.Zc()&&a.Va()}Xt.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return Gh(y,function(x){x instanceof ci&&(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&&ru(y),y},Xt.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 ci))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},Xt.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function uf(a,y){a=a.O.s;for(var x=a.length,b=y.length,E=0,z=null;E<x&&(z=a[E],!(z instanceof ci&&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 ci)||z.data!==y[nt])return!0;E++,nt++}return!1}function OA(a){if(a.type===ci.Spot||a.type===ci.Auto)return Math.min(a.O.length,1);if(a.type===ci.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof Io&&b.isPanelMain))break}return x}return a.type===ci.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof ci&&Tl(a))?1:0}Xt.mv=function(){for(var a=OA(this);this.O.length>a;)this.pc(this.O.length-1,!1);Zf(this,this.itemArray)};function Zf(a,y){var x=OA(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var b=0;b<x;b++)DA(a,y[b],b,!0)}else{b=x;for(var E=0;E<y.length;E++,b++){var z=y[E],nt=b<a.O.length?a.O.M(b):null;if(nt instanceof ci){if(nt.data!==z){var ot=Zg(a,nt.data),at=Zg(a,z),ut=at!==ot;ut||(ot=Bp(a,ot),ut=Bp(a,at)!==ot),ut?(a.pc(b,!1),DA(a,z,E,!1)):nt.data=z}}else DA(a,z,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,fh(a,x,0),wh(a)||a.v(),a.graduatedIntervals=null,a.If()||Xg(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof cr&&(y.Te=!0),y.Te&&y instanceof cr&&(y.wc=null))}}function DA(a,y,x,b){if(!(y==null||0>x)){var E=Zg(a,y);if(E=Bp(a,E),E!==null){if(ru(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&uc(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new wr),a.ge.add(y,E)),z=x+OA(a),a.Gb(z,E),b&&(E.ub=y,fh(a,z,x),E.ub=null),E.data=y}}}function fh(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof ci){var E=y,z=x;b.type===ci.TableRow?b.row=E:b.type===ci.TableColumn&&(b.column=E),b.itemIndex=z}y++,x++}}function Zg(a,y){if(y===null)return"";if(a=a.itemCategoryProperty,typeof a=="function")a=a(y);else if(typeof a=="string"&&typeof y=="object"){if(a==="")return"";a=Zl(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;qe("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Bp(a,y){var x=a.itemTemplateMap,b=null;return x!==null&&(b=x.I(y)),b===null&&(x!==null&&(b=x.I("")),b===null&&(Bg||(Bg=!0,tr('No item template Panel found for category "'+y+'" on '+a),tr(" Using default item template."),a=new ci,y=new oa,y.bind(new Jl("text","",Pr)),a.add(y),$g=a),b=$g)),b}function Xg(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof ci){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof ci&&!z.isEnabled||Xg(a,z,x)}}}function Zc(a,y){y.name=a,hh.add(a,y)}Oe.Object.defineProperties(ci.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===ci.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&&Ei(a,">= 0",ci,"padding"),a=new Hr(a)):(0>a.left&&Ei(a.left,">= 0",ci,"padding:value.left"),0>a.right&&Ei(a.right,">= 0",ci,"padding:value.right"),0>a.top&&Ei(a.top,">= 0",ci,"padding:value.top"),0>a.bottom&&Ei(a.bottom,">= 0",ci,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:Su},set:function(a){typeof a=="number"&&(a=new Hr(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Fh),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 Us)&&(a instanceof Us&&a.freeze(),this.T===null&&(this.T=new Fh),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 Fh),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)||qe("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 Fh),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 Us)&&(a instanceof Us&&a.freeze(),this.T===null&&(this.T=new Fh),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 Fh),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)||qe("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 Fh),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 Fh),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||qe("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Pc(x),this.N(),this.g("gridCellSize",y,a)}}},gridOrigin:{get:function(){return this.kn},set:function(a){var y=this.kn;if(!y.D(a)){a.w()||qe("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Pc(x),this.N(),this.g("gridOrigin",y,a)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(a){var y=this.graduatedMin;y!==a&&(this.ra===null&&(this.ra=new Xc),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),hu(this)&&(a=this.part,a!==null&&ea(this,a,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(a){var y=this.graduatedMax;y!==a&&(this.ra===null&&(this.ra=new Xc),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),hu(this)&&(a=this.part,a!==null&&ea(this,a,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(a){var y=this.graduatedTickUnit;y!==a&&0<a&&(this.ra===null&&(this.ra=new Xc),this.ra.ia=a,this.v(),this.g("graduatedTickUnit",y,a))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(a){var y=this.graduatedTickBase;y!==a&&(this.ra===null&&(this.ra=new Xc),this.ra.V=a,this.v(),this.g("graduatedTickBase",y,a))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(a){this.ra!==null?this.ra.u=a:a!==null&&(this.ra=new Xc,this.ra.u=a)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(a){this.ra!==null?this.ra.j=a:a!==null&&(this.ra=new Xc,this.ra.j=a)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(a){this.ra!==null?this.ra.o=a:a!==null&&(this.ra=new Xc,this.ra.o=a)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(a){this.ra!==null?this.ra.Zh=a:a!==null&&(this.ra=new Xc,this.ra.Zh=a)}},panelLayoutState:{get:function(){return this.F},set:function(a){this.F=a}},Te:{get:function(){return(this.l&8388608)!==0},set:function(a){(this.l&8388608)!==0!==a&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new Fh),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Fh),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Yf},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new Fh),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Yf},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new Fh),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)&&qe("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Fh),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)&&qe("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Fh),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 Xr&&!(this instanceof Ms);ru(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof Gi?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Xr&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),b!==null&&b.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new GA),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&uf(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&Vv(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&Wv(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||Zf(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new wr}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Xr||a.isPanelMain)&&qe("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(););No(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&&(No(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 ko&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&Xg(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),Oe.Object.defineProperties(ci,{Position:{get:function(){return hh.I("Position")}},Horizontal:{get:function(){return hh.I("Horizontal")}},Vertical:{get:function(){return hh.I("Vertical")}},Spot:{get:function(){return hh.I("Spot")}},Auto:{get:function(){return hh.I("Auto")}},Table:{get:function(){return hh.I("Table")}},Viewbox:{get:function(){return hh.I("Viewbox")}},TableRow:{get:function(){return hh.I("TableRow")}},TableColumn:{get:function(){return hh.I("TableColumn")}},Link:{get:function(){return hh.I("Link")}},Grid:{get:function(){return hh.I("Grid")}},Graduated:{get:function(){return hh.I("Graduated")}}}),ci.prototype.rebuildItemElements=ci.prototype.mv,ci.prototype.findItemPanelForData=ci.prototype.sx,ci.prototype.updateTargetBindings=ci.prototype.La,ci.prototype.copyTemplate=ci.prototype.Uy,ci.prototype.graduatedValueForPoint=ci.prototype.Gz,ci.prototype.graduatedPointForValue=ci.prototype.Fz,ci.prototype.findColumnForLocalX=ci.prototype.fz,ci.prototype.findRowForLocalY=ci.prototype.nz,ci.prototype.addColumnDefinition=ci.prototype.By,ci.prototype.addRowDefinition=ci.prototype.Hy,ci.prototype.addRowColumnDefinition=ci.prototype.Gy,ci.prototype.removeColumnDefinition=ci.prototype.jA,ci.prototype.getColumnDefinition=ci.prototype.Eb,ci.prototype.removeRowDefinition=ci.prototype.oA,ci.prototype.getRowDefinition=ci.prototype.Fb,ci.prototype.removeAt=ci.prototype.mb,ci.prototype.remove=ci.prototype.remove,ci.prototype.insertAt=ci.prototype.Gb,ci.prototype.elt=ci.prototype.M,ci.prototype.add=ci.prototype.add,ci.prototype.findObject=ci.prototype.fb,ci.prototype.findInVisualTree=ci.prototype.Nl,ci.prototype.walkVisualTreeFrom=ci.prototype.qm,ci.prototype.findMainElement=ci.prototype.Pb;var Bg=!1,$g=null,hh=new wr;ci.className="Panel",ci.definePanelLayout=Zc,Zc("Position",new Nn),Zc("Vertical",new fi),Zc("Auto",new Ni),Zc("Link",new Yr);function Xc(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}Xc.prototype.copy=function(){var a=new Xc;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},Xc.className="GradPanelSettings";function Fh(){this.Pc=[],this.Oc=[],this.j=this.ob=Yf,this.hb=this.Hb=0,this.Qp=Su,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Fh.prototype.copy=function(a){for(var y=new Fh,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},Fh.className="TablePanelSettings";function Vl(a){Xo(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Ls,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Pg,this.hg=vo,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,a&&(Object.assign(this,a),a.column!==void 0?(this.isRow=!1,this.index=a.column):a.row!==void 0&&(this.isRow=!0,this.index=a.row))}Vl.prototype.copy=function(){var a=new Vl;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=Cr(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Xf(a,y){y.isRow?a.height=y.height:a.width=y.width,a.minimum=y.minimum,a.maximum=y.maximum,a.alignment=y.alignment,a.stretch=y.stretch,a.sizing=y.sizing,a.dg=y.separatorPadding===null?null:y.separatorPadding.J(),a.separatorStroke=y.separatorStroke,a.separatorStrokeWidth=y.separatorStrokeWidth,a.tj=null,y.separatorDashArray&&(a.tj=Cr(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Xt=Vl.prototype,Xt.qb=function(a){a.classType===Vl&&(this.sizing=a)},Xt.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+xs(this)},Xt.wi=function(a){this.Me=a},Xt.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)},Xt.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===ci.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)},Xt.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(Fa,a,this,y,x,void 0,void 0),this.be!==null&&(y=b.diagram,y!==null&&!y.skipsModelSourceBindings&&(b=b.ih(),b!==null&&(y=b.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,b)};function Yg(a){if(a.sizing===Pg){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Xt.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new Jl(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&TA(y)&&qe("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new Pi),this.be.add(E),this},Oe.Object.defineProperties(Vl.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&&Ei(a,">= 0",Vl,"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&&Ei(a,">= 0",Vl,"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))&&Ei(a,">= 0",Vl,"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&&Ei(a,">= 0",Vl,"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&&_t(a,"RowColumnDefinition.separatorStroke"),a instanceof Us&&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)||qe("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&&_t(a,"RowColumnDefinition.background"),a instanceof Us&&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}}}),Vl.prototype.computeEffectiveSpacing=Vl.prototype.Wc,Vl.prototype.computeEffectiveSpacingTop=Vl.prototype.Io;var Pg=new vi(Vl,"Default",0),$f=new vi(Vl,"None",1),Yf=new vi(Vl,"ProportionalExtra",2);Vl.className="RowColumnDefinition",Vl.Default=Pg,Vl.None=$f,Vl.ProportionalExtra=Yf;function Io(a,y){pn.call(this),this.Rd=this.ua=null,this.an="None",this.xc=this.Ui="black",this.ig=1,this.Na=this.Yg=null,this.Vn=this.Un=NaN,this.fa=null,typeof a=="string"?this.figure=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}Tn(Io,pn),Io.prototype.cloneProtected=function(a){pn.prototype.cloneProtected.call(this,a),a.ua=this.ua,a.Rd=this.Rd,a.an=this.an,a.Ui=this.Ui,a.xc=this.xc,a.ig=this.ig,this.Yg!==null&&(a.Yg=Cr(this.Yg)),this.Na!==null&&(a.Na=this.Na.nc?this.Na:this.Na.copy()),a.Un=this.Un,a.Vn=this.Vn,this.fa!==null&&(a.fa=this.fa.copy())};function Sf(a){a.Na===null?a.Na=new Ep:a.Na.nc&&(a.Na=a.Na.copy())}Xt=Io.prototype,Xt.th=function(){pn.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Xt.qb=function(a){a===bi||a===yr||a===Yo||a===vo?this.geometryStretch=a:pn.prototype.qb.call(this,a)},Xt.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+xs(this)};function bg(a,y,x,b){var E=x.length;if(!(4>E)){var z=b.measuredBounds,nt=Math.max(1,z.width);z=z.height;for(var ot=x[0],at=x[1],ut,ct,yt,kt,zt,Zt,he=0,He=or(),Fe=2;Fe<E;Fe+=2)ut=x[Fe],ct=x[Fe+1],yt=ut-ot,ot=ct-at,yt===0&&(yt=.001),kt=ot/yt,zt=Math.atan2(ot,yt),Zt=Math.sqrt(yt*yt+ot*ot),He.push([yt,zt,kt,Zt]),he+=Zt,ot=ut,at=ct;ot=x[0],at=x[1],yt=b.measuredBounds.width,b instanceof Io&&(yt-=b.strokeWidth),1>yt&&(yt=1),E=x=yt,ut=nt/2,ct=ut!==0,Fe=0,Zt=He[Fe],yt=Zt[0],zt=Zt[1],kt=Zt[2],Zt=Zt[3];for(var Ve=0;.1<=he;){if(Ve===0&&(ct?(E=x,E-=ut,he-=ut,ct=!1):E=x,E===0&&(E=1)),E>he){Lr(He);return}E>Zt?(Ve=E-Zt,E=Zt):Ve=0;var tn=Math.sqrt(E*E/(1+kt*kt));if(0>yt&&(tn=-tn),ot+=tn,at+=kt*tn,a.translate(ot,at),a.rotate(zt),a.translate(-(nt/2),-(z/2)),Ve===0&&b.hh(a,y),a.translate(nt/2,z/2),a.rotate(-zt),a.translate(-ot,-at),he-=E,Zt-=E,Ve!==0){if(Fe++,Fe===He.length){Lr(He);return}Zt=He[Fe],yt=Zt[0],zt=Zt[1],kt=Zt[2],Zt=Zt[3],E=Ve}}Lr(He)}}Xt.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===ci.Link&&ot instanceof Ms&&ot.category==="Selection"&&ot.adornedObject instanceof Io&&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===Wi.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===Wi.u){var ut=E.startX;at=E.startY;var ct=E.endX,yt=E.endY;E=Math.min(ut,ct);var kt=Math.min(at,yt);ut=Math.abs(ct-ut),at=Math.abs(yt-at),a.beginPath(),a.rect(E,kt,ut,at),b!==null&&a.ng(b),x!==null&&(ot&&z&&ld(a),a.jk(),ot&&z&&kd(a)),a.Se()}else if(E.type===Wi.F)ut=E.startX,at=E.startY,ct=E.endX,yt=E.endY,E=Math.abs(ct-ut)/2,kt=Math.abs(yt-at)/2,ut=Math.min(ut,ct)+E,at=Math.min(at,yt)+kt,a.beginPath(),a.moveTo(ut,at-kt),a.bezierCurveTo(ut+En.wg*E,at-kt,ut+E,at-En.wg*kt,ut+E,at),a.bezierCurveTo(ut+E,at+En.wg*kt,ut+En.wg*E,at+kt,ut,at+kt),a.bezierCurveTo(ut-En.wg*E,at+kt,ut-E,at+En.wg*kt,ut-E,at),a.bezierCurveTo(ut-E,at-En.wg*kt,ut-En.wg*E,at-kt,ut,at-kt),a.closePath(),b!==null&&a.ng(b),x!==null&&(ot&&z&&ld(a),a.jk(),ot&&z&&kd(a)),a.Se();else if(E.type===Wi.o)for(E=E.figures,at=E.length,kt=0;kt<at;kt++){ut=E.s[kt],a.beginPath(),a.moveTo(ut.startX,ut.startY),ct=ut.segments.s,yt=ct.length;for(var zt=null,Zt=0;Zt<yt;Zt++){var he=ct[Zt];switch(he.type){case Fl:a.moveTo(he.endX,he.endY);break;case ra:a.lineTo(he.endX,he.endY);break;case gu:a.bezierCurveTo(he.point1X,he.point1Y,he.point2X,he.point2Y,he.endX,he.endY);break;case Bh:a.quadraticCurveTo(he.point1X,he.point1Y,he.endX,he.endY);break;case xl:if(he.radiusX===he.radiusY){var He=Math.PI/180;a.arc(he.point1X,he.point1Y,he.radiusX,he.startAngle*He,(he.startAngle+he.sweepAngle)*He,0>he.sweepAngle,zt!==null?zt.endX:ut.startX,zt!==null?zt.endY:ut.startY)}else if(zt=rh(he,ut),He=zt.length,He===0)a.lineTo(he.centerX,he.centerY);else for(var Fe=0;Fe<He;Fe++){var Ve=zt[Fe];Fe===0&&a.lineTo(Ve[0],Ve[1]),a.bezierCurveTo(Ve[2],Ve[3],Ve[4],Ve[5],Ve[6],Ve[7])}break;case Qh:if(Fe=He=0,zt!==null&&zt.type===xl){if(zt=rh(zt,ut),Ve=zt.length,Ve===0){a.lineTo(he.endX,he.endY);break}zt=zt[Ve-1]||null,zt!==null&&(He=zt[6],Fe=zt[7])}else He=zt!==null?zt.endX:ut.startX,Fe=zt!==null?zt.endY:ut.startY;if(zt=Zu(he,ut,He,Fe),He=zt.length,He===0){a.lineTo(he.endX,he.endY);break}for(Fe=0;Fe<He;Fe++)Ve=zt[Fe],a.bezierCurveTo(Ve[2],Ve[3],Ve[4],Ve[5],Ve[6],Ve[7]);break;default:qe("Segment not of valid type: "+he.type)}he.isClosed&&a.closePath(),zt=he}ct=ut.isFilled,z?ut.isShadowed?(ct===!0&&b!=="transparent"&&b!==null&&a.ng(b,ut.isEvenOdd),x!==null&&(ct&&ot&&ld(a),a.jk(),ct&&ot&&kd(a))):(ld(a),ct&&b!=="transparent"&&b!==null&&a.ng(b,ut.isEvenOdd),x!==null&&a.jk(),kd(a)):(ct&&b!==null&&a.ng(b,ut.isEvenOdd),x!==null&&a.jk()),a.Se(kt)}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=or(),z.type===Wi.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),bg(a,y,b,x);else if(z.type===Wi.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,kt=E,ut=ot.segments.s,ct=ut.length,yt=0;yt<ct;yt++){switch(Zt=ut[yt],Zt.type){case Fl:bg(a,y,b,x),b.length=0,b.push(Zt.endX),b.push(Zt.endY),nt=Zt.endX,E=Zt.endY,at=nt,kt=E;break;case ra:b.push(Zt.endX),b.push(Zt.endY),nt=Zt.endX,E=Zt.endY;break;case gu:En.Qe(nt,E,Zt.point1X,Zt.point1Y,Zt.point2X,Zt.point2Y,Zt.endX,Zt.endY,.5,b),nt=Zt.endX,E=Zt.endY;break;case Bh:En.ep(nt,E,Zt.point1X,Zt.point1Y,Zt.endX,Zt.endY,.5,b),nt=Zt.endX,E=Zt.endY;break;case xl:if(he=rh(Zt,ot),zt=he.length,zt===0){b.push(Zt.centerX),b.push(Zt.centerY),nt=Zt.centerX,E=Zt.centerY;break}for(He=0;He<zt;He++)Fe=he[He],En.Qe(nt,E,Fe[2],Fe[3],Fe[4],Fe[5],Fe[6],Fe[7],.5,b),nt=Fe[6],E=Fe[7];break;case Qh:if(he=Zu(Zt,ot,nt,E),zt=he.length,zt===0){b.push(Zt.endX),b.push(Zt.endY),nt=Zt.endX,E=Zt.endY;break}for(He=0;He<zt;He++)Fe=he[He],En.Qe(nt,E,Fe[2],Fe[3],Fe[4],Fe[5],Fe[6],Fe[7],.5,b),nt=Fe[6],E=Fe[7];break;default:qe("Segment not of valid type: "+Zt.type)}Zt.isClosed&&(b.push(at),b.push(kt),bg(a,y,b,x))}bg(a,y,b,x)}else if(z.type===Wi.u)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.startY),b.push(z.endX),b.push(z.endY),b.push(z.startX),b.push(z.endY),b.push(z.startX),b.push(z.startY),bg(a,y,b,x);else if(z.type===Wi.F){if(E=new el,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,nt=new ms(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=rh(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++)kt=z[at],En.Qe(nt,E,kt[2],kt[3],kt[4],kt[5],kt[6],kt[7],.5,b),nt=kt[6],E=kt[7];bg(a,y,b,x)}Lr(b),a.restore(),a.Vc(!1)}}}},Xt.kk=function(a,y,x){return!pn.prototype.kk.call(this,a,y,x)||this.xc===null&&this.Ui===null||this.ua===null||this.pathPattern!==null||this.geometry.figures.length!==this.svg.getElementsByTagName("path").length?!1:(a.Hl=this.svg,this.hh(a,y),a.Hl=null,!0)},Xt.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:pn.prototype.nk.call(this,a)},Xt.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)}},Xt.ga=function(a,y){if(y===void 0&&(y=new Ne),a instanceof fr){a.Mc()&&qe("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},Xt.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=Ne.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),Es(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),Es(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),Es(a,b.x,b.y,0,0),ai.free(y),Ne.free(b),a},Xt.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!==Wi.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===Wi.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),En.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===Wi.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===Wi.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===Wi.o)return ai.free(z),this.fill===null?Ch(x,a.x,a.y,E):Ku(x,a,E,1<this.strokeWidth,y);qe("Unknown Geometry type: "+x.type)},Xt.Wl=function(a,y,x,b){var E=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var nt=this.geometry.bounds;else{var ot=this.figure,at=bp[ot];if(at===void 0){var ut=En.Ze[ot];typeof ut=="string"&&(ut=En.Ze[ut]),typeof ut=="function"?(at=ut(null,100,100),bp[ot]=at):qe("Unsupported Figure: "+ot)}nt=at.bounds}ot=nt.width,at=nt.height,ut=nt.width;var ct=nt.height;switch(lh(this,!0)){case bi:b=x=0;break;case ki:ut=Math.max(a-z,0),ct=Math.max(y-z,0);break;case kr:ut=Math.max(a-z,0),b=0;break;case qr:x=0,ct=Math.max(y-z,0)}isFinite(E.width)&&(ut=E.width),isFinite(E.height)&&(ct=E.height);var yt=this.maxSize,kt=this.minSize;switch(x=Math.max(x-z,kt.width),b=Math.max(b-z,kt.height),ut=Math.min(yt.width,ut),ct=Math.min(yt.height,ct),ut=isFinite(ut)?Math.max(x,ut):Math.max(ot,x),ct=isFinite(ct)?Math.max(b,ct):Math.max(at,b),x=Jg(this),x){case bi:break;case ki:ot=ut,at=ct;break;case yr:x=Math.min(ut/ot,ct/at),isFinite(x)||(x=1),ot*=x,at*=x;break;default:qe(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&&En.$(this.ua.Sk,a-z)&&En.$(this.ua.Rk,y-z)||(this.ua=Io.makeGeometry(this,ot,at)),nt=this.ua.bounds,a===1/0||y===1/0?this.Ge(nt.x-z/2,nt.y-z/2,a===0&&ot===0?0:nt.width+z,y===0&&at===0?0:nt.height+z):this.Ge(-(z/2),-(z/2),ut+z,ct+z),E.w()?(ut=E.width,ct=E.height,ut=Math.min(yt.width,ut),ct=Math.min(yt.height,ct),ut=Math.max(kt.width,ut),ct=Math.max(kt.height,ct),this.dc.h(0,0,ut,ct)):this.dc.assign(nt)};function Jg(a){var y=a.geometryStretch;return a.Rd!==null?y===vo?ki:y:y===vo?bp[a.figure].defaultStretch:y}Xt.eh=function(a,y,x,b){ku(this,a,y,x,b)},Xt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Xt.Sj=function(a,y,x,b,E){var z=this.transform,nt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*nt,at=-z.m12*nt,ut=-z.m21*nt,ct=z.m11*nt,yt=nt*(z.m21*z.dy-z.m22*z.dx),kt=nt*(z.m12*z.dx-z.m11*z.dy);z=a*ot+y*ut+yt,nt=a*at+y*ct+kt,ot=x*ot+b*ut+yt,at=x*at+b*ct+kt,yt=this.ig/2,ut=this.ua,ut===null&&(this.measure(1/0,1/0),ut=this.ua);var zt=ut.bounds;if(ct=!1,ut.type===Wi.j)if(1.5>=this.strokeWidth)ct=En.Ve(ut.startX,ut.startY,ut.endX,ut.endY,z,nt,ot,at,E);else{if(ut.startX===ut.endX?(b=yt,ct=0):(y=(ut.endY-ut.startY)/(ut.endX-ut.startX),ct=yt/Math.sqrt(1+y*y),b=ct*y),y=or(),a=new Ne,En.Ve(ut.startX+b,ut.startY+ct,ut.endX+b,ut.endY+ct,z,nt,ot,at,a)&&y.push(a),a=new Ne,En.Ve(ut.startX-b,ut.startY-ct,ut.endX-b,ut.endY-ct,z,nt,ot,at,a)&&y.push(a),a=new Ne,En.Ve(ut.startX+b,ut.startY+ct,ut.startX-b,ut.startY-ct,z,nt,ot,at,a)&&y.push(a),a=new Ne,En.Ve(ut.endX+b,ut.endY+ct,ut.endX-b,ut.endY-ct,z,nt,ot,at,a)&&y.push(a),ot=y.length,ot===0)return Lr(y),!1;for(ct=!0,at=1/0,b=0;b<ot;b++)a=y[b],x=(a.x-z)*(a.x-z)+(a.y-nt)*(a.y-nt),x<at&&(at=x,E.x=a.x,E.y=a.y);Lr(y)}else if(ut.type===Wi.u)ct=En.Ff(zt.x-yt,zt.y-yt,zt.x+zt.width+yt,zt.y+zt.height+yt,z,nt,ot,at,E);else if(ut.type===Wi.F){y=ai.allocAt(zt.x,zt.y,zt.width,zt.height).Bc(yt,yt);t:if(y.width===0)ct=En.Ve(y.x,y.y,y.x,y.y+y.height,z,nt,ot,at,E);else if(y.height===0)ct=En.Ve(y.x,y.y,y.x+y.width,y.y,z,nt,ot,at,E);else{if(a=y.width/2,ut=y.height/2,b=y.x+a,ct=y.y+ut,x=9999,z!==ot&&(x=(nt-at)/(z-ot)),9999>Math.abs(x)){if(at=nt-ct-x*(z-b),0>a*a*x*x+ut*ut-at*at){E.x=NaN,E.y=NaN,ct=!1;break t}yt=Math.sqrt(a*a*x*x+ut*ut-at*at),ot=(-(a*a*x*at)+a*ut*yt)/(ut*ut+a*a*x*x)+b,a=(-(a*a*x*at)-a*ut*yt)/(ut*ut+a*a*x*x)+b,ut=x*(ot-b)+at+ct,at=x*(a-b)+at+ct,Math.abs((z-ot)*(z-ot))+Math.abs((nt-ut)*(nt-ut))<Math.abs((z-a)*(z-a))+Math.abs((nt-at)*(nt-at))?(E.x=ot,E.y=ut):(E.x=a,E.y=at)}else{if(ot=ut*ut,at=z-b,ot-=ot/(a*a)*at*at,0>ot){E.x=NaN,E.y=NaN,ct=!1;break t}at=Math.sqrt(ot),ot=ct+at,at=ct-at,Math.abs(ot-nt)<Math.abs(at-nt)?(E.x=z,E.y=ot):(E.x=z,E.y=at)}ct=!0}ai.free(y)}else if(ut.type===Wi.o){kt=Ne.alloc();var Zt=ot-z,he=at-nt,He=Zt*Zt+he*he,Fe=z,Ve=nt;if(0<He&&zt.contains(Fe,Ve)&&(kt.x=Fe,kt.y=Ve,this.ca(kt)))for(Zt!==0&&.5>Math.abs(Zt)?(he*=.5/Zt,Zt=.5):he!==0&&.5>Math.abs(he)&&(Zt*=.5/he,he=.5),Fe-=Zt,Ve-=he;zt.contains(Fe,Ve);)Fe-=Zt,Ve-=he;for(E.x=ot,E.y=at,he=0;he<ut.figures.count;he++){var tn=ut.figures.s[he],on=tn.isFilled?Fe:z,Sn=tn.isFilled?Ve:nt,Gn=tn.segments;zt=tn.startX,Zt=tn.startY;for(var nr=zt,Fr=Zt,vr=0;vr<Gn.count;vr++){var Ki=Gn.s[vr],Mi=Ki.type,Eo=Ki.endX,po=Ki.endY,Ts=!1;switch(Mi){case Fl:nr=Eo,Fr=po;break;case ra:Ts=Pp(zt,Zt,Eo,po,on,Sn,ot,at,kt);break;case gu:Ts=En.Eo(zt,Zt,Ki.point1X,Ki.point1Y,Ki.point2X,Ki.point2Y,Eo,po,on,Sn,ot,at,.6,kt);break;case Bh:Ts=En.Eo(zt,Zt,zt+2/3*(Ki.point1X-zt),Zt+2/3*(Ki.point1Y-Zt),Eo+2/3*(Ki.point1X-Eo),po+2/3*(Ki.point1Y-po),Eo,po,on,Sn,ot,at,.6,kt);break;case xl:case Qh:Mi=Ki.type===xl?rh(Ki,tn):Zu(Ki,tn,zt,Zt);var pa=Mi.length;if(pa===0){Ts=Pp(zt,Zt,Ki.type===xl?Ki.centerX:Ki.endX,Ki.type===xl?Ki.centerY:Ki.endY,on,Sn,ot,at,kt);break}for(po=null,Eo=0;Eo<pa;Eo++){if(po=Mi[Eo],Eo===0&&Pp(zt,Zt,po[0],po[1],on,Sn,ot,at,kt)){var Ou=jA(on,Sn,kt,He,E);Ou<He&&(He=Ou,ct=!0)}En.Eo(po[0],po[1],po[2],po[3],po[4],po[5],po[6],po[7],on,Sn,ot,at,.6,kt)&&(Ou=jA(on,Sn,kt,He,E),Ou<He&&(He=Ou,ct=!0))}Eo=po[6],po=po[7];break;default:qe("Unknown Segment type: "+Mi)}zt=Eo,Zt=po,Ts&&(Ts=jA(on,Sn,kt,He,E),Ts<He&&(He=Ts,ct=!0)),Ki.isClosed&&(Eo=nr,po=Fr,Pp(zt,Zt,Eo,po,on,Sn,ot,at,kt)&&(Ki=jA(on,Sn,kt,He,E),Ki<He&&(He=Ki,ct=!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,Ne.free(kt)}else qe("Unknown Geometry type: "+ut.type);return ct?(this.transform.Ga(E),!0):!1};function jA(a,y,x,b,E){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<b?(E.x=x.x,E.y=x.y,y):b}function Pp(a,y,x,b,E,z,nt,ot,at){if(En.$(a,x)&&En.$(y,b)||En.$(E,nt)&&En.$(z,ot))return!1;var ut=!1,ct=(E-nt)*(y-b)-(z-ot)*(a-x);return ct===0?!1:(at.x=((E*ot-z*nt)*(a-x)-(E-nt)*(a*b-y*x))/ct,at.y=((E*ot-z*nt)*(y-b)-(z-ot)*(a*b-y*x))/ct,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(at.y>a||En.$(at.y,a))&&(at.y<y||En.$(at.y,y))&&(ut=!0)):(y=a<x?a:x,a=a<x?x:a,(at.x>y||En.$(at.x,y))&&(at.x<a||En.$(at.x,a))&&(ut=!0)),ut)}Xt.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=Ne.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)))),Ne.free(z),E},Xt.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Ho.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var nt=Ne.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 Ne.free(nt),!0;var ot=Ne.alloc(),at=Ne.alloc();return x.set(y),x.bv(this.transform),x.Vj(),ot.x=E,ot.y=z,ot.transform(x),nt.x=b,nt.y=z,nt.transform(x),y=!1,Cf(this,nt,ot,at)?y=!0:(nt.x=E,nt.y=a,nt.transform(x),Cf(this,nt,ot,at)?y=!0:(ot.x=b,ot.y=a,ot.transform(x),Cf(this,nt,ot,at)?y=!0:(nt.x=b,nt.y=z,nt.transform(x),Cf(this,nt,ot,at)&&(y=!0)))),Ne.free(nt),Ho.free(x),Ne.free(ot),Ne.free(at),y};function Cf(a,y,x,b){if(!a.rs(y,x,b))return!1;a=y.x,y=y.y;var E=x.x,z=x.y;return x=b.x,b=b.y,a===E?(y<z?(a=y,y=z):a=z,b>=a&&b<=y):(a<E?(b=a,a=E):b=E,x>=b&&x<=a)}Xt.tx=function(a,y,x){function b(He,Fe){for(var Ve=He.length,tn=0;tn<Ve;tn+=2)if(Fe.zd(He[tn],He[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,ut=nt.x+nt.width;if(nt=nt.y+nt.height,wl(a.x,a.y,ot,at)<=E&&wl(a.x,a.y,ut,at)<=E&&wl(a.x,a.y,ot,nt)<=E&&wl(a.x,a.y,ut,nt)<=E)return!0}if(ot=y.startX,at=y.startY,ut=y.endX,nt=y.endY,y.type===Wi.j){if(x=(ot-ut)*(a.x-ut)+(at-nt)*(a.y-nt),Gs(a.x,a.y,ot,at,ut,nt)<=(0<=(ut-ot)*(a.x-ot)+(nt-at)*(a.y-at)&&0<=x?E:z))return!0}else{if(y.type===Wi.u)return y=!1,x&&(y=Gs(a.x,a.y,ot,at,ot,nt)<=E||Gs(a.x,a.y,ot,at,ut,at)<=E||Gs(a.x,a.y,ut,at,ut,nt)<=E||Gs(a.x,a.y,ot,nt,ut,nt)<=E),y;if(y.type===Wi.F){y=a.x-(ot+ut)/2,z=a.y-(at+nt)/2;var ct=Math.abs(ut-ot)/2,yt=Math.abs(nt-at)/2;if(ct===0||yt===0)return Gs(a.x,a.y,ot,at,ut,nt)<=E;if(x){if(a=En.$y(ct,yt,y,z),a*a<=E)return!0}else return!(wl(y,z,-ct,0)>=E||wl(y,z,0,-yt)>=E||wl(y,z,0,yt)>=E||wl(y,z,ct,0)>=E)}else if(y.type===Wi.o){if(ut=y.bounds,z=ut.x,ot=ut.y,at=ut.x+ut.width,ut=ut.y+ut.height,a.x>at&&a.x<z&&a.y>ut&&a.y<ot&&Gs(a.x,a.y,z,ot,z,ut)>E&&Gs(a.x,a.y,z,ot,at,ot)>E&&Gs(a.x,a.y,at,ut,z,ut)>E&&Gs(a.x,a.y,at,ut,at,ot)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?Ch(y,a.x,a.y,z):Ku(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],nt=z.startX,ct=z.startY,a.zd(nt,ct)>E)return!1;for(ot=z.segments.s,at=ot.length,ut=0;ut<at;ut++)switch(yt=ot[ut],yt.type){case Fl:case ra:if(nt=yt.endX,ct=yt.endY,a.zd(nt,ct)>E)return!1;break;case gu:var kt=or();if(En.Qe(nt,ct,yt.point1X,yt.point1Y,yt.point2X,yt.point2Y,yt.endX,yt.endY,.8,kt),nt=b(kt,a),Lr(kt),nt||(nt=yt.endX,ct=yt.endY,a.zd(nt,ct)>E))return!1;break;case Bh:if(kt=or(),En.ep(nt,ct,yt.point1X,yt.point1Y,yt.endX,yt.endY,.8,kt),nt=b(kt,a),Lr(kt),nt||(nt=yt.endX,ct=yt.endY,a.zd(nt,ct)>E))return!1;break;case xl:case Qh:kt=yt.type===xl?rh(yt,z):Zu(yt,z,nt,ct);var zt=kt.length;if(zt===0){if(nt=yt.type===xl?yt.centerX:yt.endX,ct=yt.type===xl?yt.centerY:yt.endY,a.zd(nt,ct)>E)return!1;break}yt=null;for(var Zt=or(),he=0;he<zt;he++)if(yt=kt[he],Zt.length=0,En.Qe(yt[0],yt[1],yt[2],yt[3],yt[4],yt[5],yt[6],yt[7],.8,Zt),b(Zt,a))return Lr(Zt),!1;Lr(Zt),yt!==null&&(nt=yt[6],ct=yt[7]);break;default:qe("Unknown Segment type: "+yt.type)}}return!0}}}return!1},Xt.qc=function(){this.ua=null},Xt.kq=function(){return this.ig};function n0(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=wm,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=tl):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new fr(1-tl.x,tl.y)))}Io.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=Ad[a.toArrow];else a.fromArrow!=="None"?b=Ad[a.fromArrow]:(b=En.Ze[a.figure],typeof b=="string"&&(b=En.Ze[b]),b===void 0&&qe("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=En.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function um(a){var y=Ad[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Ad[x],y===void 0){var b=null,E;for(E in En.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=Wi.parse(En.um[b],!1),Ad[b]=a,x!==b&&(Ad[x]=b),b}}return typeof y=="string"?y:y instanceof Wi?a:null}Oe.Object.defineProperties(Io.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),hu(this)&&(a=this.part,a!==null&&ea(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Wi.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Ne.allocAt(-y.x,-y.y),Ne.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&&_t(a,"Shape.fill"),a instanceof Us&&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&&_t(a,"Shape.stroke"),a instanceof Us&&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 Ei(a,"value >= 0",Io,"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"?Ei(a,'"butt", "round", or "square"',Io,"strokeCap"):(Sf(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?Ei(a,'"miter", "bevel", or "round"',Io,"strokeJoin"):(Sf(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){Sf(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];0<=z&&isFinite(z)||qe("strokeDashArray:value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(Sf(this),this.Na.uj=a,this.N(),this.g("strokeDashOffset",y,a))}},figure:{get:function(){return this.an},set:function(a){var y=this.an;if(y!==a){var x=En.Ze[a];typeof x=="function"?x=a:(x=En.Ze[a.toLowerCase()])||qe("Unknown Shape.figure: "+a),y!==x&&(a=this.part,a!==null&&(a.ag=NaN),this.an=x,this.Rd=null,this.qc(),this.v(),this.g("figure",y,x))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(a){var y=this.toArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=um(a);x===null?qe("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new NA),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),n0(this),this.g("toArrow",y,x))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(a){var y=this.fromArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=um(a);x===null?qe("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new NA),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),n0(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Ls},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Sf(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Ls},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Sf(this),this.Na.gg=a,this.v(),this.g("spot2",y,a))}},parameter1:{get:function(){return this.Un},set:function(a){var y=this.Un;y!==a&&(this.Un=a,this.qc(),this.v(),this.g("parameter1",y,a))}},parameter2:{get:function(){return this.Vn},set:function(a){var y=this.Vn;y!==a&&(this.Vn=a,this.qc(),this.v(),this.g("parameter2",y,a))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(a){var y=this.pathPattern;y!==a&&(Sf(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:vo},set:function(a){var y=this.geometryStretch;y!==a&&(Sf(this),this.Na.jq=a,this.v(),this.g("geometryStretch",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new Od),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&Pc(x),this.v(),x=this.panel,x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Od),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Od),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new Od),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Io.prototype.intersectsRect=Io.prototype.Yc,Io.prototype.containedInRect=Io.prototype.fh,Io.prototype.getNearestIntersectionPoint=Io.prototype.rs,Io.prototype.getDocumentBounds=Io.prototype.mi,Io.prototype.getDocumentPoint=Io.prototype.ga;var Ad=new so,bp=new so;Io.className="Shape",Io.getFigureGenerators=function(){var a=new wr,y;for(y in En.Ze)y!==y.toLowerCase()&&a.add(y,En.Ze[y]);return a.freeze(),a},Io.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=En.Ze;b[a]=y,b[x]=a},Io.getArrowheadGeometries=function(){var a=new wr;for(b in En.um)if(Ad[b]===void 0){var y=Wi.parse(En.um[b],!1);Ad[b]=y,y=b.toLowerCase(),y!==b&&(Ad[y]=b)}for(var x in Ad)if(x!==x.toLowerCase()){var b=Ad[x];b instanceof Wi&&a.add(x,b)}return a.freeze(),a},Io.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=Wi.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||qe("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=Ad;b[a]=x,b[y]=a};function Ep(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=vo,this.gg=this.fg=Ls}Ep.prototype.copy=function(){var a=new Ep;return a.Hr=this.Hr,a.Ir=this.Ir,a.Jr=this.Jr,a.uj=this.uj,a.br=this.br,a.jq=this.jq,a.fg=this.fg.J(),a.gg=this.gg.J(),a};function oa(a,y){return pn.call(this),Np||(Lh=ps?new Tu(null).context:null,Np=!0),this.l|=2097152,this.ec="",this.xc="black",this.Ae="13px sans-serif",this.Lq=this.Cb=this.Gc=0,this.da=this.fa=this.Gm=null,this.Ih=0,this.df=null,this.Le=0,this.ze=this.Qb=this.Qc=null,typeof a=="string"?this.text=a:a&&Object.assign(this,a),y&&Object.assign(this,y),this}Tn(oa,pn),oa.prototype.cloneProtected=function(a){pn.prototype.cloneProtected.call(this,a),a.ec=this.ec,a.xc=this.xc,a.Ae=this.Ae,a.Gc=this.Gc,a.Cb=this.Cb,a.Lq=this.Lq,a.Gm=this.Gm,this.fa!==null&&(a.fa=this.fa.copy()),this.da!==null&&(a.da=this.da.nc?this.da:this.da.copy()),a.Ih=this.Ih,a.df=this.df,a.Le=this.Le,a.Qc=this.Qc,a.Qb=this.Qb,a.ze=this.ze};function fd(a){a.da===null?a.da=new np:a.da.nc&&(a.da=a.da.copy())}Xt=oa.prototype,Xt.th=function(){pn.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function Eg(a,y){a.l=y.l|6144,a.pb=y.opacity,a.Ma=y.background,a.areaBackground=y.areaBackground,a.jd=y.desiredSize.J(),a.minSize=y.minSize.J(),a.maxSize=y.maxSize.J(),y.Lb!==null?a.Lb=y.Lb.copy():a.Lb=null,a.Ca=y.scale,a.Kb=y.angle,a.stretch=y.stretch,a.Kg=y.margin.J(),a.Jb=y.alignment.J(),a.sk=y.alignmentFocus.J(),a.segmentFraction=y.segmentFraction,a.segmentOffset=y.segmentOffset.J(),a.segmentOrientation=y.segmentOrientation,y.tb!==null&&(a.tb=y.tb.copy()),a.shadowVisible=y.shadowVisible,a.ec=y.ec,a.xc=y.xc,a.Ae=y.Ae,a.fa!==null&&(a.fa=y.fa.copy()),y.da!==null&&(a.da=y.da.nc?y.da:y.da.copy()),a.Ih=y.Ih}Xt.qb=function(a){a.classType===oa?this.wrap=a:pn.prototype.qb.call(this,a)},Xt.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Xt.v=function(){pn.prototype.v.call(this)},Xt.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,b=this.actualBounds,E=x.width,z=x.height,nt=Jf(this),ot=a.textAlign=this.textAlign,at=y.tn;ot==="start"?ot=at?"right":"left":ot==="end"&&(ot=at?"left":"right"),at=this.isUnderline;var ut=this.isStrikethrough;Ca(this,a,this.xc,!0,!1,x,b),(at||ut)&&Ca(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var ct=this.oe,yt=ct.dx-(nt*ct.m21+ct.dx);ct=ct.dy-(nt*ct.m22+ct.dy);var kt=y.scale;switch(8>(yt*yt+ct*ct)*kt*kt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof eh&&(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 Mo:a.translate(0,z),a.scale(1,-1);break;case ks:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),ct=this.Gc,kt=(y+nt+yt)*ct,z>kt&&(b=this.verticalAlignment,b=b.y*z-b.y*kt+b.offsetY),ct===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,ut);else if(this.Qc!==null&&this.Qb!==null)for(kt=0;kt<ct;kt++){var zt=this.Qc[kt];zt>E&&(zt=E),b+=y,this.Oj(this.Qb[kt],a,0,b,E,nt,zt,x,ot,at,ut),b+=nt+yt}switch(this.flip){case ss:a.scale(-1,1),a.translate(-E,0);break;case Mo:a.scale(1,-1),a.translate(0,-z);break;case ks:a.scale(-1,-1),a.translate(-E,-z)}}},Xt.Oj=function(a,y,x,b,E,z,nt,ot,at,ut,ct){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=qg!==null?qg(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),ut){ot=Fp!==null?Fp(this,z):.8*z,at=x+yt,ut=b+ot,E=x+yt+nt,ot=b+ot;var kt=a;y.beginPath(),y.lineWidth=kt,y.moveTo(at,ut),y.lineTo(E,ot),y.stroke(),y.Se(),y instanceof eh&&y.ad.classList.add("gojs-td")}ct&&(ct=b+z-z/2.2|0,a%2!==0&&(ct+=.5),b=x+yt,z=ct,x=x+yt+nt,nt=ct,yt=a,y.beginPath(),y.lineWidth=yt,y.moveTo(b,z),y.lineTo(x,nt),y.stroke(),y.Se(),y instanceof eh&&y.ad.classList.add("gojs-td"))}},Xt.kk=function(a,y,x){if(!pn.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++)Wf(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,Wf(a,y,!0);return!0},Xt.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:pn.prototype.nk.call(this,a)},Xt.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)}},Xt.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;Lh!==null&&Mp!==z&&(Mp=Lh.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var nt;if(isNaN(this.desiredSize.width)){if(z=this.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),z.length===0)z=8;else if(this.isMultiline){for(var ot=nt=0,at=!1;!at;){var ut=z.indexOf(`
|
|
|
`,ot);ut===-1&&(ut=z.length,at=!0),ot=z.substr(ot,ut-ot),this.formatting===ep&&(ot=ot.trim()),nt=Math.max(nt,$c(ot)),ot=ut+1}z=nt}else nt=z.indexOf(`
|
|
|
`,0),0<=nt&&(z=z.substr(0,nt)),z=$c(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),nt=cm(this,z),isNaN(this.desiredSize.height)?nt=Math.min(nt,y/this.scale):nt=this.desiredSize.height,at=nt,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===tp&&(y=this.Ae,y=this.overflow===tp?cf(y):0,ut=this.spacingAbove+this.spacingBelow,ut=Math.max(0,Jf(this)+ut),at=Math.min(this.maxLines-1,Math.max(Math.floor(at/ut+.01)-1,0)),!(at+1>=this.Qb.length))){for(this.l|=16777216,ut=this.Qb[at],y=Math.max(1,a-y);$c(ut)>y&&1<ut.length;)ut=ut.substr(0,ut.length-1);ut+=Bf,y=$c(ut),this.Qb[at]=ut,this.Qb=this.Qb.slice(0,at+1),this.Qc[at]=y,this.Qc=this.Qc.slice(0,at+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,y),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===qf||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),nt=Math.max(b,nt),Ia(this.dc,z,nt),this.Ge(0,0,z,nt),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},Xt.eh=function(a,y,x,b){ku(this,a,y,x,b)};function Fg(a,y,x){a.ze===null?(a.ze=y,a.Cb=x):((a.Qb===null||a.Qc===null)&&(a.Qb=[],a.Qc=[],a.Qb.push(a.ze),a.Qc.push(a.Cb)),a.Qb.push(y),a.Qc.push(x),a.Qb.length>a.maxLines&&(a.l|=16777216))}function hm(a,y,x,b){var E=a.formatting===ep;E&&(y=y.trim());var z=0,nt=a.Ae,ot=a.spacingAbove+a.spacingBelow;ot=Math.max(0,Jf(a)+ot);var at=a.overflow===tp?cf(nt):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,ot);else if(nt=y,a.wrap===Lp){a.Le=1;var ut=$c(y);if(at===0||ut<=x)a.Cb=Math.max(a.Cb,ut),Fg(a,y,a.Cb),b!==null&&b.h(ut,ot);else{for(z=hf(a,nt),nt=nt.substr(z.length),y=hf(a,nt),ut=$c(z+y);0<y.length&&ut<=x;)z+=y,nt=nt.substr(y.length),y=hf(a,nt),ut=z+y,E&&(ut=ut.trim()),ut=$c(ut);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-at);$c(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=Bf;var ct=$c(z);a.Cb=ct,Fg(a,z,ct),b!==null&&b.h(ct,ot)}}else{for(at=0,nt.length===0&&(at=1,Fg(a,nt,0));0<nt.length;){for(y=hf(a,nt),nt=nt.substr(y.length);$c(y)>x;){var yt=1;for(ut=$c(y.substr(0,yt)),ct=0;ut<=x;)yt++,ct=ut,ut=$c(y.substr(0,yt));if(yt===1){var kt=ut;z=Math.max(z,ut)}else kt=ct,z=Math.max(z,ct);if(yt--,1>yt&&(yt=1),Fg(a,y.substr(0,yt),kt),at++,y=y.substr(yt),a.Gc+at>a.maxLines)break}for(ct=hf(a,nt),ut=$c(y+ct);0<ct.length&&ut<=x;)y+=ct,nt=nt.substr(ct.length),ct=hf(a,nt),ut=y+ct,E&&(ut=ut.trim()),ut=$c(ut);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ct.length===0?(yt=ut,z=Math.max(z,ut)):(yt=ct=$c(y),z=Math.max(z,ct)),Fg(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 hf(a,y){if(a.wrap===Am)return y.substr(0,1);for(var x=y.length,b=0,E=gm;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===Lg&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function $c(a){return Lh===null?8*a.length:Lh.measureText(a).width}function Jf(a){if(a.df!==null)return a.df;var y=a.Ae;if(Lh===null){var x=16;return a.df=x}return Mg[y]!==void 0&&5e3>$A?x=Mg[y]:(x=1.3*Lh.measureText("M").width,Mg[y]=x,$A++),a.df=x}function cf(a){if(Lh===null)return 6;if(UA[a]!==void 0&&5e3>YA)var y=UA[a];else y=Lh.measureText(Bf).width,UA[a]=y,YA++;return y}function cm(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,Jf(a)+b),x.length===0)return a.Cb=0,a.Gc=1,b;if(!a.isMultiline){var E=x.indexOf(`
|
|
|
`,0);0<=E&&(x=x.substr(0,E))}E=0;for(var z=a.Gc=0,nt,ot=!1;!ot;){if(nt=x.indexOf(`
|
|
|
`,z),nt===-1&&(nt=x.length,ot=!0),z<=nt){if(z=x.substr(z,nt-z),a.wrap!==Lp){a.Le=0;var at=Vi.alloc();hm(a,z,y,at),E+=at.height,Vi.free(at),a.Gc+=a.Le}else hm(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(ot=!0)}z=nt+1}return a.Lq=E}Oe.Object.defineProperties(oa.prototype,{font:{get:function(){return this.Ae},set:function(a){var y=this.Ae;y!==a&&(this.Ae=a,this.df=null,this.v(),this.g("font",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;a!=null?a=a.toString():a="",y!==a&&(this.ec=a,this.v(),this.g("text",y,a),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(a){var y=this.textAlign;y===a||a!=="start"&&a!=="end"&&a!=="left"&&a!=="right"&&a!=="center"||(fd(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:bi},set:function(a){var y=this.flip;y!==a&&(fd(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:qa},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),fd(this),this.da.Yr=a,Il(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Vi.alloc();hm(this,this.ec,999999,a);var y=a.width;Vi.free(a),a=cm(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Ia(this.dc,y,a)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this.v(),this.g("isMultiline",y,a))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;y!==a&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",y,a))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(a){var y=(this.l&8388608)!==0;y!==a&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",y,a))}},wrap:{get:function(){return this.da!==null?this.da.$r:dm},set:function(a){var y=this.wrap;y!==a&&(fd(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:fm},set:function(a){var y=this.overflow;y!==a&&(fd(this),this.da.$q=a,this.v(),this.g("overflow",y,a))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&_t(a,"TextBlock.stroke"),a instanceof Us&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Jf(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("editable",y,a))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(a){var y=this.textEditor;y!==a&&(fd(this),this.da.Qr=a,this.g("textEditor",y,a))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(a){var y=this.errorFunction;y!==a&&(fd(this),this.da.Hd=a,this.g("errorFunction",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new Od),this.fa.Tk=a,this.v();var x=this.panel;x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Od),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Od),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(a){var y=this.graduatedFunction;y!==a&&(this.fa===null&&(this.fa=new Od),this.fa.F=a,this.v(),this.g("graduatedFunction",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new Od),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(a){var y=this.textValidation;y!==a&&(fd(this),this.da.vj=a,this.g("textValidation",y,a))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(a){var y=this.textEdited;y!==a&&(fd(this),this.da.Pr=a,this.g("textEdited",y,a))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(a){var y=this.spacingAbove;y!==a&&(fd(this),this.da.Dr=a,this.v(),this.g("spacingAbove",y,a))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(a){var y=this.spacingBelow;y!==a&&(fd(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:ep},set:function(a){var y=this.formatting;y!==a&&(fd(this),this.da.gq=a,this.v(),this.g("formatting",y,a))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(a){var y=this.maxLines;y!==a&&(a=Math.floor(a),0>=a&&Ei(a,"> 0",oa,"maxLines"),fd(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var qg=null,Fp=null,Lp=new vi(oa,"None",0),qf=new vi(oa,"WrapFit",1),dm=new vi(oa,"WrapDesiredSize",2),Am=new vi(oa,"WrapBreakAll",3),fm=new vi(oa,"OverflowClip",0),tp=new vi(oa,"OverflowEllipsis",1),ep=new vi(oa,"FormatTrim",0),Lg=new vi(oa,"FormatNone",0),gm=/[ \u200b\u00ad]/,Mg=new so,$A=0,UA=new so,YA=0,Bf="...",Mp="",Lh=null,Np=!1;oa.className="TextBlock";function np(){this.nc=!1,this.Hd=null,this.Xf=bi,this.gq=ep,this.Jq=1/0,this.$q=fm,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=qa,this.$r=dm}np.prototype.copy=function(){var a=new np;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},oa.getEllipsis=function(){return Bf},oa.setEllipsis=function(a){Bf=a,UA=new so,YA=0},oa.getBaseline=function(){return qg},oa.setBaseline=function(a){qg=a},oa.getUnderline=function(){return Fp},oa.setUnderline=function(a){Fp=a},oa.isValidFont=function(a){if(Np||(Lh=ps?new Tu(null).context:null,Np=!0),Lh===null)return!0;var y=Lh.font;if(a===y||a==="10px sans-serif")return!0;Lh.font="10px sans-serif",Lh.font=a;var x=Lh.font;if(x!=="10px sans-serif")return Lh.font=y,!0;Lh.font="19px serif";var b=Lh.font;return Lh.font=a,x=Lh.font,Lh.font=y,x!==b},oa.FormatNone=Lg,oa.FormatTrim=ep,oa.None=Lp,oa.OverflowClip=fm,oa.OverflowEllipsis=tp,oa.WrapBreakAll=Am,oa.WrapDesiredSize=dm,oa.WrapFit=qf;function Od(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Od.prototype.copy=function(){var a=new Od;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Od.className="GradElementSettings";function hc(a,y){pn.call(this),this.Eg=null,this.qo="",this.Xg=Qs,this.Nk=ki,this.Zg=this.Hd=null,this.Mk=bo,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 Ip;Tn(hc,pn),hc.prototype.cloneProtected=function(a){pn.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},hc.prototype.qb=function(a){a===bi||a===yr||a===Yo?this.imageStretch=a:pn.prototype.qb.call(this,a)},hc.prototype.toString=function(){return"Picture("+this.source+")#"+xs(this)};function kp(a){a===void 0&&(a=""),a!==""?Ip[a]&&(delete Ip[a],i0--):(Ip=new so,i0=0)}function ky(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value;E.N();var z=y.getAttribute("src")||"",nt=E.Og.I(z);if(nt!==null)for(var ot=nt.length,at=0;at<ot;at++)z=nt[at],E.Xn.add(z),z.Uc=!0,E.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(kl(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=or();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);Lr(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}hc.prototype.hA=function(){if(this.source!==""){kp(this.source);var a=this.source;this.source="",this.source=a}},hc.prototype.redraw=function(){this.N(),this.Uc=!0},hc.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var b=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(b===null||b==="")||x.ln instanceof Event&&a instanceof XA)){var E=a instanceof eh;b=this.naturalBounds;var z=0,nt=0,ot=this.qn,at=ot?+x.width:x.naturalWidth;if(ot=ot?+x.height:x.naturalHeight,at===void 0&&x.videoWidth&&(at=x.videoWidth),ot===void 0&&x.videoHeight&&(ot=x.videoHeight),at=at||b.width,ot=ot||b.height,at!==0&&ot!==0){var ut=at,ct=ot;this.sourceRect.w()&&(z=this.Xg.x,nt=this.Xg.y,at=this.Xg.width,ot=this.Xg.height);var yt=at,kt=ot,zt=this.Nk,Zt=this.Mk;switch(zt){case bi:if(this.sourceRect.w())break;yt>=b.width&&(z=z+Zt.offsetX+(yt*Zt.x-b.width*Zt.x)),kt>=b.height&&(nt=nt+Zt.offsetY+(kt*Zt.y-b.height*Zt.y)),at=Math.min(b.width,yt),ot=Math.min(b.height,kt);break;case ki:yt=b.width,kt=b.height;break;case yr:case Yo:zt===yr?(zt=Math.min(b.height/kt,b.width/yt),yt*=zt,kt*=zt):zt===Yo&&(zt=Math.max(b.height/kt,b.width/yt),yt*=zt,kt*=zt,yt>=b.width&&(z=(z+Zt.offsetX+(yt*Zt.x-b.width*Zt.x)/yt)*at),kt>=b.height&&(nt=(nt+Zt.offsetY+(kt*Zt.y-b.height*Zt.y)/kt)*ot),at*=1/(yt/b.width),ot*=1/(kt/b.height),yt=b.width,kt=b.height)}zt=this.Df()*y.scale;var he=yt*zt*kt*zt,He=at*ot/he,Fe=x.__goCache;zt=null;var Ve=Ew;if(!E){if(x.sq&&Fe!==void 0&&4<he&&He>Ve*Ve)for(Fe.gi===null&&(Oy(Fe,4,ut,ct,x),Oy(Fe,16,ut,ct,x)),E=Fe.gi,ut=E.length,ct=0;ct<ut&&E[ct].ratio*E[ct].ratio<He;ct++)zt=E[ct];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new Tu(null).context;try{E.drawImage(this.Eg,0,0)}catch(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?Zt.offsetX+(b.width*Zt.x-yt*Zt.x):0,Zt=kt<b.height?Zt.offsetY+(b.height*Zt.y-kt*Zt.y):0,this.flip){case ss:a.translate(Math.min(b.width,yt),0),a.scale(-1,1);break;case Mo:a.translate(0,Math.min(b.height,kt)),a.scale(1,-1);break;case ks:a.translate(Math.min(b.width,yt),Math.min(b.height,kt)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Fe!==void 0&&zt!==null&&zt.ratio!==1){a.save(),y=zt.ratio;try{a.drawImage(zt.source,z/y,nt/y,Math.min(zt.source.width,at/y),Math.min(zt.source.height,ot/y),E,Zt,Math.min(b.width,yt),Math.min(b.height,kt)),a instanceof eh&&(this.bt=[z/y,nt/y,Math.min(zt.source.width,at/y),Math.min(zt.source.height,ot/y),E,Zt,Math.min(b.width,yt),Math.min(b.height,kt)])}catch(tn){this.en=!1}a.restore()}else try{a.drawImage(x,z,nt,at,ot,E,Zt,Math.min(b.width,yt),Math.min(b.height,kt)),a instanceof eh&&(this.bt=[z,nt,at,ot,E,Zt,Math.min(b.width,yt),Math.min(b.height,kt)])}catch(tn){this.en=!1}switch(this.flip){case ss:a.scale(-1,1),a.translate(-Math.min(b.width,yt),0);break;case Mo:a.scale(1,-1),a.translate(0,-Math.min(b.height,kt));break;case ks:a.scale(-1,-1),a.translate(-Math.min(b.width,yt),-Math.min(b.height,kt))}}}}},hc.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=lh(this,!0),nt=this.Eg,ot=this.qn,at=0,ut=0;(ot||!this.al&&nt&&nt.complete)&&(this.al=!0),nt===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(at=ot?+nt.width:nt.naturalWidth,ut=ot?+nt.height:nt.naturalHeight),isFinite(E.width)||z===ki||z===kr?(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===ki||z===qr?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:nt!==null&&(y=ut)),b=0):nt!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:ut),isFinite(E.width)&&(a=E.width),isFinite(E.height)&&(y=E.height),E=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),b=Math.max(b||0,z.height),a=Math.min(E.width,a),y=Math.min(E.height,y),a=Math.max(x,a),y=Math.max(b,y),nt===null||nt.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),Ia(this.dc,a,y),this.Ge(0,0,a,y)},hc.prototype.eh=function(a,y,x,b){ku(this,a,y,x,b)},Oe.Object.defineProperties(hc.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||qe("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 Ci),b!==null&&x&&Kc(b,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||(kl(this,!1),this.v())):x&&ky(this,a)),this.g("element",y,a),this.N()}}},source:{get:function(){return this.qo},set:function(a){var y=this.qo;if(y!==a){this.Uc=!0,this.qo=a;var x=Ip;if(ps){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<i0&&(kp(),x=Ip),b=Di("img"),b.hn=!0,ky(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,i0++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new Ty),this.v(),this.N()}this.g("source",y,a)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(a){if(this.rl!==a&&(this.rl=a,this.element!==null)){var y=this.element.getAttribute("src");a===null&&typeof y=="string"?this.element.crossOrigin=null:a!==null&&(this.element.crossOrigin=a(this)),this.element.src=y}}},sourceRect:{get:function(){return this.Xg},set:function(a){var y=this.Xg;y.D(a)||(this.Xg=a=a.J(),this.N(),this.g("sourceRect",y,a))}},imageStretch:{get:function(){return this.Nk},set:function(a){var y=this.Nk;y!==a&&(this.Nk=a,this.N(),this.g("imageStretch",y,a))}},flip:{get:function(){return this.Xf},set:function(a){var y=this.Xf;y!==a&&(this.Xf=a,this.N(),this.g("flip",y,a))}},imageAlignment:{get:function(){return this.Mk},set:function(a){var y=this.Mk;y.D(a)||(this.Mk=a=a.J(),this.N(),this.g("imageAlignment",y,a))}},errorFunction:{get:function(){return this.Hd},set:function(a){var y=this.Hd;y!==a&&(this.Hd=a,this.g("errorFunction",y,a))}},successFunction:{get:function(){return this.Zg},set:function(a){var y=this.Zg;y!==a&&(this.Zg=a,this.g("successFunction",y,a))}},naturalBounds:{get:function(){return this.dc}}}),hc.prototype.redraw=hc.prototype.redraw,hc.prototype.reloadSource=hc.prototype.hA;var i0=0,Ew=4;hc.className="Picture",Ip=new so,hc.clearCache=kp;function Ty(){this.gi=null}function Oy(a,y,x,b,E){a.gi===null&&(a.gi=[]);var z=new Tu(null),nt=z.context,ot=1/y;z.width=x/y,z.height=b/y,z.width!==0&&z.height!==0&&(y=new Dy(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],E=x.source,x=x.ratio),nt.setTransform(ot*x,0,0,ot*x,0,0),nt.yc(),nt.drawImage(E,0,0),a.gi.push(y))}Ty.className="PictureCacheArray";function Dy(a,y){this.source=a,this.ratio=y}Dy.className="PictureCacheInstance";function Tp(){this.os=new Wi,this.mc=null}Tp.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Wi,this.mc=null};function Op(a,y,x,b,E,z){a.mc=new el,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=b,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),E!==void 0&&(a.mc.isShadowed=E)}function Fw(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}Tp.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new ms(Fl);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},Tp.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new ms(ra);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function Pf(a,y,x,b,E,z,nt){var ot;ot===void 0&&(ot=!1);var at=new ms(gu);at.point1X=y,at.point1Y=x,at.point2X=b,at.point2Y=E,at.endX=z,at.endY=nt,ot&&at.close(),a.mc.segments.add(at)}function r0(a,y,x,b,E){var z;z===void 0&&(z=!1);var nt=new ms(Bh);nt.point1X=y,nt.point1Y=x,nt.endX=b,nt.endY=E,z&&nt.close(),a.mc.segments.add(nt)}Tp.prototype.arcTo=function(a,y,x,b,E,z,nt){z===void 0&&(z=0),nt===void 0&&(nt=!1);var ot=new ms(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 ms(Qh,nt,ot,y,x,b,E,z),at&&y.close(),a.mc.segments.add(y)}function jy(a){var y=o0;return y!==null?(o0=null,y.reset(a),y):(y=new Tp,y.reset(a),y)}var o0=null;Tp.className="StreamGeometryContext";function Mh(a,y){var x=a.toLowerCase(),b=En.Ze;b[a]=y,b[x]=a}Mh("Rectangle",function(a,y,x){a="r"+y+","+x;var b=En.Mf[a];return b!==void 0||(b=new Wi(Wi.u),b.endX=y,b.endY=x,En.Nf<En.vm&&(En.Mf[a]=b,En.Nf++)),b}),Mh("Square",function(a,y,x){a="s"+y+","+x;var b=En.Mf[a];return b!==void 0||(b=new Wi(Wi.u),b.endX=y,b.endY=x,b.defaultStretch=yr,En.Nf<En.vm&&(En.Mf[a]=b,En.Nf++)),b}),Mh("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=En.Mf[b];if(E!==void 0)return E;var z=a*En.wg;return E=new Wi().add(new el(a,0,!0).add(new ms(ra,y-a,0)).add(new ms(gu,y,a,y-z,0,y,z)).add(new ms(ra,y,x-a)).add(new ms(gu,y-a,x,y,x-z,y-z,x)).add(new ms(ra,a,x)).add(new ms(gu,0,x-a,z,x,0,x-z)).add(new ms(ra,0,a)).add(new ms(gu,a,0,0,z,z,0).close())),1<z&&(E.spot1=new fr(0,0,z,z),E.spot2=new fr(1,1,-z,-z)),En.Nf<En.vm&&(En.Mf[b]=E,En.Nf++),E}),Mh("Border","RoundedRectangle"),Mh("Ellipse",function(a,y,x){a="e"+y+","+x;var b=En.Mf[a];return b!==void 0||(b=new Wi(Wi.F),b.endX=y,b.endY=x,b.spot1=fc,b.spot2=ch,En.Nf<En.vm&&(En.Mf[a]=b,En.Nf++)),b}),Mh("Circle",function(a,y,x){a="c"+y+","+x;var b=En.Mf[a];return b!==void 0||(b=new Wi(Wi.F),b.endX=y,b.endY=x,b.spot1=fc,b.spot2=ch,b.defaultStretch=yr,En.Nf<En.vm&&(En.Mf[a]=b,En.Nf++)),b}),Mh("TriangleRight",function(a,y,x){return new Wi().add(new el(0,0).add(new ms(ra,y,.5*x)).add(new ms(ra,0,x).close())).pm(0,.25,.5,.75)}),Mh("TriangleDown",function(a,y,x){return new Wi().add(new el(0,0).add(new ms(ra,y,0)).add(new ms(ra,.5*y,x).close())).pm(.25,0,.75,.5)}),Mh("TriangleLeft",function(a,y,x){return new Wi().add(new el(y,x).add(new ms(ra,0,.5*x)).add(new ms(ra,y,0).close())).pm(.5,.25,1,.75)}),Mh("TriangleUp",function(a,y,x){return new Wi().add(new el(y,x).add(new ms(ra,0,x)).add(new ms(ra,.5*y,0).close())).pm(.25,.5,.75,1)}),Mh("Triangle","TriangleUp"),Mh("Diamond",function(a,y,x){return new Wi().add(new el(.5*y,0).add(new ms(ra,0,.5*x)).add(new ms(ra,.5*y,x)).add(new ms(ra,y,.5*x).close())).pm(.25,.25,.75,.75)}),Mh("LineH",function(a,y,x){return a=new Wi(Wi.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),Mh("LineV",function(a,y,x){return a=new Wi(Wi.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),Mh("None","Rectangle"),Mh("BarH","Rectangle"),Mh("BarV","Rectangle"),Mh("MinusLine","LineH"),Mh("PlusLine",function(a,y,x){return new Wi().add(new el(0,x/2,!1).add(new ms(ra,y,x/2)).add(new ms(Fl,y/2,0)).add(new ms(ra,y/2,x)))}),Mh("XLine",function(a,y,x){return new Wi().add(new el(0,x,!1).add(new ms(ra,y,0)).add(new ms(Fl,0,0)).add(new ms(ra,y,x)))}),Mh("LineRight",function(a,y,x){return new Wi().add(new el(.25*y,0,!1).add(new ms(ra,.75*y,.5*x)).add(new ms(ra,.25*y,x)))}),Mh("LineDown",function(a,y,x){return new Wi().add(new el(0,.25*x,!1).add(new ms(ra,.5*y,.75*x)).add(new ms(ra,y,.25*x)))}),Mh("LineLeft",function(a,y,x){return new Wi().add(new el(.75*y,0,!1).add(new ms(ra,.25*y,.5*x)).add(new ms(ra,.75*y,x)))}),Mh("LineUp",function(a,y,x){return new Wi().add(new el(0,.75*x,!1).add(new ms(ra,.5*y,.25*x)).add(new ms(ra,y,.75*x)))}),En.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=Na,this.ir=null,this.jr="",this.lr=Ls,this.Gq="",this.Hq=rl,this.Pq=ia,this.Kq=ll,this.Up=null,this.Cq=127,this.zr=ul,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 Xr(a,y){a===void 0||a instanceof xn||typeof a=="string"?ci.call(this,a):(ci.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 Ne(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)}Tn(Xr,ci),Xr.prototype.cloneProtected=function(a){ci.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},Xt=Xr.prototype,Xt.Af=function(a){ci.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Xt.toString=function(){var a=er(this.constructor)+"#"+xs(this);return this.data!==null&&(a+="("+Pr(this.data)+")"),a};function cc(a){a.P===null?a.P=new yv:a.P.nc&&(a.P=a.P.copy())}Xt.th=function(){ci.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Xt.gk=function(a,y,x,b,E,z,nt){var ot=this.diagram;ot!==null&&(a===gl&&y==="elements"?E instanceof ci?Al(E,function(at){Wv(ot.partManager,at),zc(ot,at)}):Kc(ot,E):a===Hl&&y==="elements"&&(E instanceof ci?Al(E,function(at){Vv(ot.partManager,at,ot)}):hA(ot,E)),ot.cb(a,y,x,b,E,z,nt))},Xt.La=function(a){if(ci.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 ci&&Al(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Xr.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Xr.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Xr.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 wr),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)))}}},Xr.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)}},Xr.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=or();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);Lr(y)}},Xr.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 ko?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Ms))break t;ru(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=ci.Link),x.adornedObject=y)}if(x!==null){x.type===ci.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(Mw(this,a),y=this.adornments;y.next();)y.value.La()}},Xr.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function wv(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Mw(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function s0(a){if(tg(a)===!1){Sv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function Uy(a){if(a.G|=2097152,tg(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||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)}}Xr.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new Ho);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),this.Lb=z,z.ws()||z.pp(E)},Xr.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=bo;this.locationSpot.sb()&&(z=this.locationSpot);var nt=Ne.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),Ne.free(nt)}},Xr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Xr.prototype.moveTo=function(a,y,x){a=Ne.allocAt(a,y),this.move(a,x),Ne.free(a)},Xr.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())},Xr.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())},Xr.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new wr),y.I(a)!==null)return y.I(a);var x=ci.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function bf(a,y,x,b){b===void 0&&(b=new Ne),x=x.Mc()?bo: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}Xr.prototype.mi=function(a){return a===void 0&&(a=new ai),a.assign(this.actualBounds)},Xr.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function Ry(a){var y=Ne.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof Io?x.strokeWidth:0;if(y.yi(0,0,b.width+E,b.height+E,a.locationSpot),x!==a)for(y.offset(-E/2,-E/2),x.transform.Ga(y),x=x.panel;x!==null&&x!==a;)x.transform.Ga(y),x=x.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function Ng(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=hd(a));var b=a.ag,E=2*b;if(!a.isShadowed)return x.h(y.x-1-b,y.y-1-b,y.width+2+E,y.height+2+E),x;b=y.x,E=y.y;var z=y.width;y=y.height;var nt=a.shadowBlur;return a=a.shadowOffset,z+=nt,y+=nt,b-=nt/2,E-=nt/2,0<a.x?z+=a.x:(b+=a.x,z-=a.x),0<a.y?y+=a.y:(E+=a.y,y-=a.y),x.h(b-1,E-1,z+2,y+2),x}Xr.prototype.arrange=function(){if(th(this)===!1)Uy(this);else{Wc(this,!1);var a=this.Ib,y=ai.alloc();y.assign(a);var x=eg(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()||En.B(y.width,a.width)&&En.B(y.height,a.height)||0<=this.vw&&this.C(16),ai.free(y),Sv(this,!1)}},Xt=Xr.prototype,Xt.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()||Hh(a,y)||(this instanceof cr&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Xt.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 Ne(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),tg(this)===!1&&th(this)===!1&&(s0(this),Uy(this)),!0};function _y(a,y,x,b,E){y===null||a instanceof Ms||(y=y.animationManager,y.zb&&Kl(y,a,new Ne(b,E),x))}Xt.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;tg(this)||th(this)?E.h(NaN,NaN):E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}else{if(E.x===a&&E.y===y)return;b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}s0(this)},Xt.Av=function(){this.G&=-2097153,s0(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,Ne.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 Ms||Kl(x,a,new Ne(z,nt),y),b||y.x===z&&y.y===nt||a.g("position",new Ne(z,nt),y.copy()))}function zy(a,y,x,b,E){var z=x.copy();x.h(y.x+E.x,y.y+E.y),x.D(z)||b===null||a.g("location",z,x.copy())}function Ky(a,y,x){Cv(a,!1),a instanceof cr&&Ur(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?eg(a)?(Is(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Xt.si=function(){return!0},Xt.Zc=function(){return!0},Xt.ph=function(){return!1},Xt.Dd=function(){return!0};function xv(a,y,x,b){y.constructor===a.constructor||Vy||(Vy=!0,tr('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),tr(" Old class: "+er(a.constructor)+", new class: "+er(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var z=a.isSelected,nt=a.isHighlighted,ot=!0,at=!0,ut=!1;a instanceof cr&&(ot=a.isTreeLeaf,at=a.isTreeExpanded,ut=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=b,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,b=!0,y!==null&&(b=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=E,a.G=z?a.G|4096:a.G&-4097,a.G=nt?a.G|524288:a.G&-524289,a instanceof cr&&(a.U=ot?a.U|4:a.U&-5,a.U=at?a.U|1:a.U&-2,a.U=ut?a.U|2:a.U&-3),E!==null&&a.La(),E=a.layerName,E!==x&&(a.Jg=x,a.layerName=E),y!==null&&(y.skipsUndoManager=b),a.Zc()&&a.C(64)}Xr.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},Xr.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},Xr.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},Xr.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},Xr.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},Xr.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},Xr.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},Xr.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},Xr.prototype.canSelect=function(){if(!this.selectable)return!1;var a=this.layer;return a===null?!0:a.allowSelect?(a=a.diagram,a===null?!0:!!a.allowSelect):!1};function tg(a){return(a.G&32768)!==0}function Sv(a,y){a.G=y?a.G|32768:a.G&-32769}function Cv(a,y){a.G=y?a.G|65536:a.G&-65537}function eg(a){return(a.G&131072)!==0}Xt=Xr.prototype,Xt.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function a0(a,y){a.G=y?a.G|1048576:a.G&-1048577}Xt.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Xt.N=function(){var a=this.diagram;a!==null&&!th(this)&&!tg(this)&&this.isVisible()&&this.Ib.w()&&a.N(Ng(this,this.Ib))},Xt.v=function(){ci.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof cr&&this.labeledLink!==null&&Il(this.labeledLink),a.$b(!0))},Xt.Vo=function(a){a||(a=this.Ah,a!==null&&Lv(a,this))},Xt.Wo=function(a){a||(a=this.Ah,a!==null&&Mv(a,this))},Xt.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Xt.oz=function(){return Bv(this,this)};function Bv(a,y){var x=y.containingGroup;return x!==null?1+Bv(a,x):y instanceof cr&&(y=y.labeledLink,y!==null)?Bv(a,y):0}Xt.sz=function(){return Gy(this,this)};function Gy(a,y){var x=y.containingGroup;return x!==null||y instanceof cr&&(x=y.labeledLink,x!==null)?Gy(a,x):y}Xt.Td=function(a){return a instanceof ko?Pv(this,this,a):!1};function Pv(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!Pv(a,b,x)?y instanceof cr&&(y=y.labeledLink,y!==null)?Pv(a,y,x):!1:!0}Xt.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof ko&&a0(y,!0),y instanceof cr){var x=y.labeledLink;x!==null&&(y=x)}y=y.containingGroup}for(x=null,y=a;y!==null;){if(y.G&1048576){x=y;break}y instanceof cr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof ko&&a0(y,!1),y instanceof cr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},Xr.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof cr&&this.isLinkLabel)},Xr.prototype.C=function(a){if(a===void 0&&(a=16777215),this.isLayoutPositioned&&a&this.layoutConditions){var y=this.layer;y!==null&&y.isTemporary||this instanceof cr&&this.isLinkLabel?y=!1:(y=this.diagram,y=!(y!==null&&y.undoManager.isUndoingRedoing))}else y=!1;if(y)if(y=this.Ah,y!==null){var x=y.layout;x!==null?x.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function Wy(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function ng(a,y,x,b,E,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof Ms)){if(a.add(y),y instanceof cr){if(x&&y instanceof ko)for(var nt=y.memberParts;nt.next();)ng(a,nt.value,x,b,E,z);if(E!==!1)for(nt=y.linksConnected;nt.next();){var ot=nt.value;if(!a.contains(ot)){var at=ot.fromNode,ut=ot.toNode;at=at===null||a.contains(at),ut=ut===null||a.contains(ut),(E?at&&ut:at||ut)&&ng(a,ot,x,b,E,z)}}if(1<b)for(y=y.Ou();y.next();)ng(a,y.value,x,b-1,E,z)}else if(y instanceof Gi)for(y=y.labelNodes;y.next();)ng(a,y.value,x,b,E,z)}}Oe.Object.defineProperties(Xr.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Ai: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(Hl,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(gl,"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&&(cc(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&&zh(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 Ms?this.type!==ci.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:ia},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),cc(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:ll},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),cc(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&&(cc(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:rl},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),cc(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,th(this)===!1&&(s0(this),x=this.pa,x.w())){var E=this.diagram;if(E===null||E.animationManager.isTicking||!E.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-b.x),x.y+(y.y-b.y)),_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 Ms)){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 Ms?this instanceof Ms&&(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&&(ru(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&&(ru(x),x=x.copy(),x===null||x instanceof Gi||(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&&(cc(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&&(cc(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&&(cc(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 Gi?(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&&(cc(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&&(cc(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&&(cc(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:Na},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),cc(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&&(cc(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&&(cc(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:Ls},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),cc(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&&qe("Cannot make a Group a member of itself: "+this.toString()),qe("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 ko&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Lv(a,this):this instanceof ko&&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 ko){for(x=new Ci,ng(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof cr)for(b=b.linksConnected;b.next();)Dp(b.value)}if(this instanceof cr){for(x=this.linksConnected;x.next();)Dp(x.value);x=this.labeledLink,x!==null&&Dp(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&zh(y,-1,a))}}else qe("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&&(cc(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof cr&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(cc(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&&(cc(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:ul},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),cc(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&&(cc(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&&(cc(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Xr.prototype.invalidateLayout=Xr.prototype.C,Xr.prototype.findCommonContainingGroup=Xr.prototype.px,Xr.prototype.isMemberOf=Xr.prototype.Td,Xr.prototype.findTopLevelPart=Xr.prototype.sz,Xr.prototype.findSubGraphLevel=Xr.prototype.oz,Xr.prototype.ensureBounds=Xr.prototype.Va,Xr.prototype.getDocumentBounds=Xr.prototype.mi,Xr.prototype.findObject=Xr.prototype.fb,Xr.prototype.moveTo=Xr.prototype.moveTo,Xr.prototype.invalidateAdornments=Xr.prototype.Wb,Xr.prototype.clearAdornments=Xr.prototype.Ej,Xr.prototype.removeAdornment=Xr.prototype.Jf,Xr.prototype.addAdornment=Xr.prototype.bh,Xr.prototype.findAdornment=Xr.prototype.Pj,Xr.prototype.updateTargetBindings=Xr.prototype.La;var Vy=!1;Xr.className="Part",Xr.LayoutNone=0,Xr.LayoutAdded=1,Xr.LayoutRemoved=2,Xr.LayoutShown=4,Xr.LayoutHidden=8,Xr.LayoutNodeSized=16,Xr.LayoutGroupLayout=32,Xr.LayoutNodeReplaced=64,Xr.LayoutStandard=127,Xr.LayoutAll=16777215;function Ms(a,y){a===void 0||a instanceof xn||typeof a=="string"?Xr.call(this,a):(Xr.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)}Tn(Ms,Xr),Ms.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Ms.prototype.updateRelationshipsFromData=function(){},Ms.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Gi&&y instanceof Io){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 Io&&(E.ua=a)}}},Ms.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!th(a))},Ms.prototype.Zc=function(){return!1},Ms.prototype.gk=function(a,y,x,b,E,z,nt){if(a===gl&&y==="elements"){if(E instanceof Vh)this.$a===null&&(this.$a=E);else if(E instanceof ci){var ot=E.Nl(function(at){return at instanceof Vh});ot instanceof Vh&&this.$a===null&&(this.$a=ot)}}else a===Hl&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof ci&&this.$a.rg(b)&&(this.$a=null));Xr.prototype.gk.call(this,a,y,x,b,E,z,nt)},Ms.prototype.updateAdornments=function(){},Ms.prototype.Lj=function(){},Oe.Object.defineProperties(Ms.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}}}),Ms.className="Adornment";function bv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=zu,this.er=h0,this.Kr=this.ij=this.Nq=this.Mq=null}bv.prototype.copy=function(){var a=new bv;return a.Dq=this.Dq,a.Eq=this.Eq,a.gj=this.gj,a.Vr=this.Vr,a.yp=this.yp.J(),a.er=this.er,a.Mq=this.Mq,a.Nq=this.Nq,a.ij=this.ij,a.Kr=this.Kr,a};function cr(a,y){a===void 0||a instanceof xn||typeof a=="string"?Xr.call(this,a):(Xr.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Pi,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Tn(cr,Xr),cr.prototype.cloneProtected=function(a){Xr.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Xt=cr.prototype,Xt.Af=function(a){Xr.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Ef(a){a.Ba===null?a.Ba=new bv:a.Ba.nc&&(a.Ba=a.Ba.copy())}Xt.th=function(){Xr.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function Zy(a,y){y!==null&&(a.af===null&&(a.af=new Ci),a.af.add(y))}function Xy(a,y,x,b){if(y===null||a.af===null)return null;for(var E=a.af.iterator;E.next();){var z=E.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===b||z.Ds===y&&z.cv===a&&z.Ox===b&&z.Px===x)return z}return null}Xt.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=Xy(this,a,y,x),a!==null&&a.Sl()},Xt.gk=function(a,y,x,b,E,z,nt){a===gl&&y==="elements"?this.wc=null:a===Hl&&y==="elements"&&(this.wc=null),Xr.prototype.gk.call(this,a,y,x,b,E,z,nt)},Xt.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(Lc(x.fromPort),Lc(x.toPort),x.bb())}};function $y(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(Lc(x.fromPort),Lc(x.toPort),x.bb())}}function Lc(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Lc(y.port)}}Xt.si=function(){return!0},cr.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},cr.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},cr.prototype.isVisible=function(){if(!Xr.prototype.isVisible.call(this))return!1;var a=!0,y=Gc,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===Gc){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===ml){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===Iu&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(b){return!b.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},cr.prototype.Zb=function(a){Xr.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var b=x.To(this);b===null||b.Td(this.containingGroup)||x.bb()}x.Zb(a)}},cr.prototype.qx=function(){var a=new Ci,y=new Ci;return Yy(this,this,a,y),y.iterator};function Yy(a,y,x,b){if(y!==null&&!x.has(y)){x.add(y);var E=!0,z=a.diagram;z!==null&&(E=z.isTreePathToChildren),y.linksConnected.each(function(nt){nt.isTreeLink?(E?nt.fromNode===y:nt.toNode===y)&&Yy(a,E?nt.toNode:nt.fromNode,x,b):b.add(nt)})}}cr.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new jr(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},Xt=cr.prototype,Xt.Mo=function(a){a===void 0&&(a=null);var y=new jr(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},Xt.Sd=function(a){a===void 0&&(a=null);var y=new jr(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},Xt.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 Ci,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 Ci,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new yo(x):Ai},Xt.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 Ci,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new yo(x):Ai},Xt.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 Ci,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new yo(x):Ai},Xt.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new jr(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},Xt.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new jr(this.jb),E=this;return b.predicate=function(z){return!(z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},b};function l0(a,y,x){Lc(x);var b=a.jb.contains(y);if(b||a.jb.add(y),!b||y.fromNode===y.toNode){var E=a.linkConnected;if(E!==null){var z=!0,nt=a.diagram;nt!==null&&(z=nt.aa,nt.aa=!0),E(a,y,x),nt!==null&&(nt.aa=z)}}!b&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(b=!0,a=a.diagram,a!==null&&(b=a.isTreePathToChildren),E=b?y:x,z=b?x:y,E.ci||(E.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(b?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function u0(a,y,x){Lc(x);var b=a.jb.remove(y),E=null;if(b||y.toNode===y.fromNode){var z=a.linkDisconnected;if(E=a.diagram,z!==null){var nt=!0;E!==null&&(nt=E.aa,E.aa=!0),z(a,y,x),E!==null&&(E.aa=nt)}}b&&y.isTreeLink&&(x=!0,E!==null&&(x=E.isTreePathToChildren),a=x?y.toNode:y.fromNode,y=x?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,E!==null&&E.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):pm(y)))}function pm(a){if(a.ci=!1,a.jb.count!==0){var y=!0,x=a.diagram;if(x===null||!x.undoManager.isUndoingRedoing){for(x!==null&&(y=x.isTreePathToChildren),x=a.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink){if(y){if(b.fromNode===a){a.isTreeLeaf=!1;return}}else if(b.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}cr.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Xt=cr.prototype,Xt.Vo=function(a){Xr.prototype.Vo.call(this,a),a||(pm(this),a=this.Yk,a!==null&&s1(a,this))},Xt.Wo=function(a){Xr.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Xt.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,Xr.prototype.Lj.call(this)},Xt.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 wr: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=or()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);Lr(x)}}}Xt.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},Xt.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}},Xt.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)a0(y,!0),y=y.pg();var x=null;for(y=a;y!==null;){if(y.G&1048576){x=y;break}y=y.pg()}for(y=this;y!==null;)a0(y,!1),y=y.pg();return x},Xt.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},Xt.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof cr)return a;a=this.diagram,a=a!==null?a.isTreePathToChildren:!0;for(var y=this.jb.iterator;y.next();){var x=y.value;if(x.isTreeLink&&(x=a?x.fromNode:x.toNode,x!==this))return this.ci=x}return this.ci=null},Xt.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 Ci;return a(this,y),y},Xt.uz=function(){return t1(this,this)};function t1(a,y){return y=y.pg(),y===null?0:1+t1(a,y)}Xt.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new jr(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},Xt.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 Pi,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 Pi,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new yo(x):Ai},Xt.wz=function(a){a===void 0&&(a=1/0);var y=new Ci;return ng(y,this,!1,a,!0),y},cr.prototype.collapseTree=function(a){a===void 0&&(a=1),1>a&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Ci;x.add(this),e1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Gc),y.Ue=!1}};function e1(a,y,x,b,E,z,nt){if(1<b)for(var ot=x?a.Mo():a.Sd();ot.next();){var at=ot.value;at.isTreeLink&&(at=at.To(a),at===null||at===a||y.contains(at)||(y.add(at),e1(at,y,x,b-1,E,z,nt)))}else n1(a,y,x,E,z,nt)}function n1(a,y,x,b,E,z){for(var nt=E===a?!0:a.isTreeExpanded,ot=x?a.Mo():a.Sd(),at={};ot.next();){var ut=ot.value;if(ut.isTreeLink&&(ut=ut.To(a),ut!==null&&ut!==a)){var ct=y.contains(ut);if(ct||y.add(ut),nt){var yt=x?ut.Oo():ut.Po();at.uv=a,yt.all(function(kt){return function(zt){return zt===kt.uv||!zt.isTreeExpanded}}(at))&&b.Aj(ut,E),ut.oh(),ut.Zb(!1)}ut.isTreeExpanded&&(ut.wasTreeExpanded=ut.isTreeExpanded,ct||n1(ut,y,x,b,E,z))}at={uv:at.uv}}a.isTreeExpanded=!1}cr.prototype.expandTree=function(a){a===void 0&&(a=2),2>a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Ci;x.add(this),i1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Gc),y.Ue=!1}};function i1(a,y,x,b,E,z,nt){for(var ot=z===a?!1:a.isTreeExpanded,at=x?a.Mo():a.Sd(),ut={};at.next();){var ct=at.value;if(ct.isTreeLink&&(ot||ct.fd||ct.bb(),ct=ct.To(a),ct!==null&&ct!==a&&!y.contains(ct))){if(y.add(ct),!ot){ct.Zb(!0),ct.oh();var yt=x?ct.Oo():ct.Po();ut.vv=a,yt.all(function(kt){return function(zt){return zt===kt.vv||!zt.isTreeExpanded}}(ut))&&E.Cj(ct,z)}(2<b||ct.wasTreeExpanded)&&(ct.wasTreeExpanded=!1,i1(ct,y,x,b-1,E,z,nt))}ut={vv:ut.vv}}a.isTreeExpanded=!0}Oe.Object.defineProperties(cr.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:h0},set:function(a){var y=this.portSpreading;y!==a&&(Ef(this),this.Ba.er=a,this.g("portSpreading",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(a){var y=(this.U&8)!==0;if(y!==a){this.U^=8;var x=this.diagram;x!==null&&Ur(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:zu},set:function(a){typeof a=="number"&&(a=new Hr(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Ef(this),this.Ba.yp=a;var x=this.diagram;x!==null&&Ur(x,this),this.g("avoidableMargin",y,a)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(a){var y=this.linkConnected;y!==a&&(Ef(this),this.Ba.Dq=a,this.g("linkConnected",y,a))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(a){var y=this.linkDisconnected;y!==a&&(Ef(this),this.Ba.Eq=a,this.g("linkDisconnected",y,a))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(a){var y=this.linkValidation;y!==a&&(Ef(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var x=this.diagram,b=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&b!==null&&!x.undoManager.isUndoingRedoing){var E=y.data,z=x.model;if(E!==null&&z.ri()){var nt=z.wa(b);nt!==void 0&&z.Qx(E,nt)}}this.containingGroup=null}this.Yk=a,a!==null&&(s1(a,this),x===null||b===null||x.undoManager.isUndoingRedoing||(E=a.data,x=x.model,E!==null&&x.ri()&&(b=x.wa(b),b!==void 0&&x.Bu(E,b))),this.containingGroup=a.containingGroup),Il(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&Jy(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(a){var y=(this.U&1)!==0;if(y!==a){this.U^=1;var x=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?this.Zb(a):a?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(a){var y=(this.U&2)!==0;y!==a&&(this.U^=2,this.g("wasTreeExpanded",y,a))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(a){var y=this.treeExpandedChanged;y!==a&&(Ef(this),this.Ba.Vr=a,this.g("treeExpandedChanged",y,a))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(a){var y=(this.U&4)!==0;y!==a&&(this.U^=4,this.g("isTreeLeaf",y,a))}}}),cr.prototype.expandTree=cr.prototype.expandTree,cr.prototype.collapseTree=cr.prototype.collapseTree,cr.prototype.findTreeParts=cr.prototype.wz,cr.prototype.findTreeChildrenNodes=cr.prototype.Ou,cr.prototype.findTreeChildrenLinks=cr.prototype.Qo,cr.prototype.findTreeLevel=cr.prototype.uz,cr.prototype.findTreeParentChain=cr.prototype.vz,cr.prototype.findTreeParentNode=cr.prototype.pg,cr.prototype.findTreeParentLink=cr.prototype.kh,cr.prototype.findCommonTreeParent=cr.prototype.gz,cr.prototype.findTreeRoot=cr.prototype.xz,cr.prototype.isInTreeOf=cr.prototype.Nz,cr.prototype.findPort=cr.prototype.ns,cr.prototype.findLinksTo=cr.prototype.kz,cr.prototype.findLinksBetween=cr.prototype.jz,cr.prototype.findNodesInto=cr.prototype.Oo,cr.prototype.findNodesOutOf=cr.prototype.Po,cr.prototype.findNodesConnected=cr.prototype.Mu,cr.prototype.findLinksInto=cr.prototype.Sd,cr.prototype.findLinksOutOf=cr.prototype.Mo,cr.prototype.findExternalTreeLinksConnected=cr.prototype.qx,cr.prototype.invalidateConnectedLinks=cr.prototype.Bd,cr.prototype.invalidateLinkBundle=cr.prototype.Lz;var Nw=new vi(cr,"SpreadingNone",10),h0=new vi(cr,"SpreadingEvenly",11),Fv=new vi(cr,"SpreadingPacked",12);cr.className="Node",cr.SpreadingNone=Nw,cr.SpreadingEvenly=h0,cr.SpreadingPacked=Fv;function ko(a,y){a===void 0||a instanceof xn||typeof a=="string"?cr.call(this,a):(cr.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Ci,this.$a=null,this.Sc=new Wa,this.Sc.group=this,this.gl=new Ci,this.tb=this.$p=null,y&&Object.assign(this,y)}Tn(ko,cr),ko.prototype.cloneProtected=function(a){cr.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof Vh});y instanceof Vh?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())},Xt=ko.prototype,Xt.Af=function(a){cr.prototype.Af.call(this,a);var y=a.Rj();for(a=a.memberParts;a.next();){var x=a.value;if(x.v(),x.C(8),x.Ej(),x instanceof cr)x.Bd(y);else if(x instanceof Gi)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Xt.gk=function(a,y,x,b,E,z,nt){if(a===gl&&y==="elements"){if(E instanceof Vh)this.$a===null?this.$a=E:this.$a!==E&&qe("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof ci){var ot=E.Nl(function(at){return at instanceof Vh});ot instanceof Vh&&(this.$a===null?this.$a=ot:this.$a!==ot&&qe("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Hl&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof ci&&this.$a.rg(b)&&(this.$a=null));cr.prototype.gk.call(this,a,y,x,b,E,z,nt)},Xt.Xl=function(a,y){cr.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==ci.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof ci&&(a=a.Pb()),this.tb===null&&(this.tb=new ai),a.mi(this.tb),a instanceof Io&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Xt.eh=function(a,y,x,b){this.nf=this.$a,cr.prototype.eh.call(this,a,y,x,b)},Xt.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Gi||y.Va()}),cr.prototype.Va.call(this)},Xt.si=function(){if(!cr.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof cr){if(y.isVisible()&&th(y))return!1}else if(y instanceof Gi&&y.isVisible()&&th(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Lv(a,y){if(a.Gn.add(y)){y instanceof ko&&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 Gi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Mv(a,y){if(a.Gn.remove(y)){y instanceof ko&&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 Gi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Xt.Lj=function(){if(0<this.Gn.count){var a=this.diagram;if(a!==null)for(var y=this.Gn.copy().iterator;y.next();)a.remove(y.value)}cr.prototype.Lj.call(this)},ko.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=oi(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},ko.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=oi(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},ko.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))},Xt=ko.prototype,Xt.Bd=function(a){var y=(this.U&65536)!==0;if(cr.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var x=y.value;if(a===void 0||!a.contains(x)){var b=x.fromNode;b!==null&&b!==this&&b.Td(this)&&!b.isVisible()?(Lc(x.fromPort),Lc(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(Lc(x.fromPort),Lc(x.toPort),x.bb()))}}},Xt.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 Ci,b=y.iterator;b.next();){var E=b.value;if(E instanceof cr)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Xt.iz=function(){var a=this.Rj();a.add(this);for(var y=new Ci,x=a.iterator;x.next();){var b=x.value;if(b instanceof cr)for(b=b.linksConnected;b.next();){var E=b.value,z=E.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),E=E.toNode,E===null||a.contains(E)&&E!==this||y.add(E)}}return y.iterator},Xt.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new Ci;return a(this,y),y},Xt.Rj=function(){var a=new Ci;return ng(a,this,!0,0,!0),a.remove(this),a},Xt.Zb=function(a){cr.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},ko.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 ko&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,r1(z,y,x,b)),z instanceof cr)z.Bd(y),x.Aj(z,b);else if(z instanceof Gi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}ko.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 ko&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,o1(z,y,x,b)),z instanceof cr)z.Bd(y),x.Cj(z,b);else if(z instanceof Gi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}ko.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=Ne.alloc(),cr.prototype.move.call(this,a,y),a=new Ci,y=this.Rj().iterator;y.next();)E=y.value,E instanceof Gi&&(E.suspendsRouting&&a.add(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(E.suspendsRouting=!0);for(y.reset();y.next();)if(E=y.value,!(E.ph()||E instanceof cr&&E.isLinkLabel)){var nt=E.position,ot=E.location;nt.w()?(z.x=nt.x+b,z.y=nt.y+x,E.position=z):ot.w()&&(z.x=ot.x+b,z.y=ot.y+x,E.location=z)}for(y.reset();y.next();)E=y.value,E instanceof Gi&&(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());Ne.free(z)}},Oe.Object.defineProperties(ko.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&&qe("A layout cannot be both the Diagram.layout and a Group.layout: "+a),y!==null&&(y.diagram=null,y.group=null),this.Sc=a;var x=this.diagram;a!==null&&(a.diagram=x,a.group=this),x!==null&&(x.xh=!0),this.g("layout",y,a),x!==null&&x.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(a){var y=this.memberAdded;y!==a&&(Ef(this),this.Ba.Mq=a,this.g("memberAdded",y,a))}},memberRemoved:{get:function(){return this.Ba!==null?this.Ba.Nq:null},set:function(a){var y=this.memberRemoved;y!==a&&(Ef(this),this.Ba.Nq=a,this.g("memberRemoved",y,a))}},memberValidation:{get:function(){return this.Ba!==null?this.Ba.ij:null},set:function(a){var y=this.memberValidation;y!==a&&(Ef(this),this.Ba.ij=a,this.g("memberValidation",y,a))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(a){var y=(this.U&256)!==0;y!==a&&(this.U^=256,this.g("ungroupable",y,a))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(a){var y=(this.U&512)!==0;if(y!==a){this.U^=512;var x=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(E){E.updateAdornments()})):a?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(a){var y=(this.U&1024)!==0;y!==a&&(this.U^=1024,this.g("wasSubGraphExpanded",y,a))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(a){var y=this.subGraphExpandedChanged;y!==a&&(Ef(this),this.Ba.Kr=a,this.g("subGraphExpandedChanged",y,a))}},rh:{get:function(){return(this.U&32768)!==0},set:function(a){(this.U&32768)!==0!==a&&(this.U^=32768)}}}),ko.prototype.expandSubGraph=ko.prototype.expandSubGraph,ko.prototype.collapseSubGraph=ko.prototype.collapseSubGraph,ko.prototype.findSubGraphParts=ko.prototype.Rj,ko.prototype.findContainingGroupChain=ko.prototype.hz,ko.prototype.findExternalNodesConnected=ko.prototype.iz,ko.prototype.findExternalLinksConnected=ko.prototype.Lu,ko.prototype.ensureBounds=ko.prototype.Va,ko.className="Group";function Vh(a){pn.call(this),this.yb=Su,this.ko=new ai(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Tn(Vh,pn),Vh.prototype.cloneProtected=function(a){pn.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Vh.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Ks(0,0,y.width,y.height,a.x,a.y)},Vh.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof ko||a instanceof Ms)||qe("Placeholder is not inside a Group or Adornment."),a instanceof ko){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(Ia(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=Ne.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Ne.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 Io&&(nt=z.strokeWidth);var ot=z.Df(),at=z.naturalBounds,ut=(at.width+nt)*ot;nt=(at.height+nt)*ot,a.type!==ci.Link&&(ot=z.ga(a.category==="Selection"?rl:a.locationSpot,Ne.alloc()),a.location=ot,Ne.free(ot)),isNaN(ut)||isNaN(nt)?(a=z.ga(rl,Ne.alloc()),ut=ai.allocAt(a.x,a.y,0,0),ut.Ye(z.ga($l,a)),ut.Ye(z.ga(ou,a)),ut.Ye(z.ga(Ja,a)),Ia(y,ut.width+b||0,ut.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),Ne.free(a),ai.free(ut)):(Ia(y,ut+b||0,nt+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},Vh.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},Vh.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof ko&&!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 ko&&!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 ko&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Vh.prototype.computeMemberBounds=function(a){if(!(this.part instanceof ko))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 Gi&&(!y.computesBoundsIncludingLinks||wh(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(Vh.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())}}}),Vh.className="Placeholder";function Gi(a){Xr.call(this,ci.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Zh,this.Om=0,this.Qm=Zh,this.Rm=NaN,this.qj=Ov,this.po=.5,this.wd=null,this.Nb=new Pi().freeze(),this.Tg=this.Mg=null,this.ml=new ai,this.ua=new Wi,this.u=this.o=this.Sf=this.Wf=null,this.su=new Ne,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Tn(Gi,Xr),Gi.prototype.cloneProtected=function(a){Xr.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())},Xt=Gi.prototype,Xt.Af=function(a){Xr.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&Lc(y),a=a.toPort,a!==null&&Lc(a)},Xt.qb=function(a){a.classType===Gi?(a.value&2)===2?this.routing=a:a===Yc||a===Lf||a===Up?this.curve=a:a===ym||a===p0||a===m0?this.adjusting=a:a!==Ov&&a!==Zh&&qe("Unknown Link enum value for a Link property: "+a):Xr.prototype.qb.call(this,a)},Xt.Xc=function(){this.ba===null&&(this.ba=new Kf)},Xt.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),th(a)||tg(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),th(a)||tg(a)))},Xt.zv=function(){return!1},Xt.Av=function(){},Xt.Zc=function(){return!1},Gi.prototype.computeAngle=function(a,y,x){return Gi.computeAngle(y,x)},Gi.computeAngle=function(a,y){switch(a){default:case Zh:a=0;break;case wm:a=y;break;case xm:a=y+90;break;case Sm:a=y-90;break;case Dv:a=y+180;break;case v0:a=En.bp(y),90<a&&270>a&&(a-=180);break;case Cm:a=En.bp(y+90),90<a&&270>a&&(a-=180);break;case Bm:a=En.bp(y-90),90<a&&270>a&&(a-=180);break;case y0:if(a=En.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return En.bp(a)};function Dp(a){var y=a.fromNode,x=a.toNode,b=null;if(y!==null?b=x!==null?y.px(x):y.containingGroup:x!==null?b=x.containingGroup:b=null,y=b,x=a.Ah,x!==y){x!==null&&Mv(x,a),a.Ah=y,y!==null&&Lv(y,a);var E=a.containingGroupChanged;if(E!==null){var z=!0,nt=a.diagram;nt!==null&&(z=nt.aa,nt.aa=!0),E(a,x,y),nt!==null&&(nt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}Xt=Gi.prototype,Xt.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Xr.prototype.oh.call(this)},Xt.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Xt.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function s1(a,y){a.wd===null&&(a.wd=new Ci),a.wd.add(y),a.v()}Xt.Vo=function(a){if(Xr.prototype.Vo.call(this,a),Ig(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,l0(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||l0(x,this,b)}mm(this)}},Xt.Wo=function(a){if(Xr.prototype.Wo.call(this,a),Ig(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,u0(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||u0(x,this,b)}vm(this)}},Xt.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))},Gi.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Gi.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?Xr.prototype.move.call(this,a,!1):(a=Ne.allocAt(x.x+b,x.y+E),Xr.prototype.move.call(this,a,!1),Ne.free(a)),Ff(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},Gi.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},Gi.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},Gi.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()===Yc))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===Yc){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return En.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),En.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},Gi.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Yc))return this.ua.wx(.5);if(this.computeCurve()===Yc&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var b=this.i(x+2);return x=this.i(x+3),En.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)},Xt=Gi.prototype,Xt.i=function(a){return this.Nb.s[a]},Xt.dd=function(a,y){this.Nb.cd(a,y)},Xt.L=function(a,y,x){this.Nb.cd(a,new Ne(y,x))},Xt.Kz=function(a,y){this.Nb.Gb(a,y)},Xt.m=function(a,y,x){this.Nb.Gb(a,new Ne(y,x))},Xt.ne=function(a){this.Nb.add(a)},Xt.yf=function(a,y){this.Nb.add(new Ne(a,y))},Xt.pv=function(a){this.Nb.mb(a)},Xt.Fj=function(){this.Nb.clear()};function Ff(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var b=a.fd,E=new Pi,z=a.Nb.iterator;z.next();){var nt=z.value;E.add(new Ne(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),Il(a)),b?c0(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),nt!==null&&nt.animationManager.zb&&_s(nt.animationManager,a,E),a.g("points",z,E)}}Xt.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Xt.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,E=a.s,z=E.length,nt=0;nt<z;nt++){var ot=E[nt];x=Math.min(ot.x,x),b=Math.min(ot.y,b)}ot=nt=1/0;for(var at=y.s,ut=at.length,ct=0;ct<ut;ct++){var yt=at[ct];nt=Math.min(yt.x,nt),ot=Math.min(yt.y,ot),yt.freeze()}if(y.freeze(),ut===z){for(z=0;z<ut;z++)if(ct=E[z],yt=at[z],ct.x-x!==yt.x-nt||ct.y-b!==yt.y-ot){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&_s(x.animationManager,this,y),c0(this),this.g("points",a,y)}},Xt.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function c0(a){a.Nb.count===0?a.fd=!1:(a.fd=!0,a.cq=null,a.vt=NaN,a.defaultFromPoint=a.i(0),a.defaultToPoint=a.i(a.pointsCount-1),g0(a,!1))}Xt.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())}},Xt.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()}}},Gi.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(op||(op=new cr,op.desiredSize=Po,op.Va()),this.defaultFromPoint&&(op.location=this.defaultFromPoint,op.Va(),y=a=op)):y=this.fromPort,y!==null&&!a.isVisible()){var x=a.findVisibleNode();x!==null&&x!==a?(a=x,y=x.port):a=x}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var b=this.toNode,E=null;if(b===null?(sp||(sp=new cr,sp.desiredSize=Po,sp.Va()),this.defaultToPoint&&(sp.location=this.defaultToPoint,sp.Va(),E=b=sp)):E=this.toPort,E===null||b.isVisible()||(x=b.findVisibleNode(),x!==null&&x!==b?(b=x,E=x.port):b=x),this.Mw=b,b===null||!b.location.w())return!1;for(;!(E===null||E.actualBounds.w()&&E.Ed());)E=E.panel;if(E===null)return!1;var z=this.pointsCount,nt=this.computeSpot(!0,y);x=this.computeSpot(!1,E);var ot=jp(nt),at=jp(x),ut=y===E&&y!==null,ct=this.isOrthogonal,yt=this.curve===Yc;this.Wf=ut&&!ct?yt=!0:!1;var kt=this.computeAdjusting()===Zh||ut;if(!ct&&!ut&&ot&&at){if(ot=!1,!kt&&3<=z&&(kt=this.getLinkPoint(a,y,nt,!0,!1,b,E),at=this.getLinkPoint(b,E,x,!1,!1,a,y),ot=this.adjustPoints(0,kt,z-1,at))&&(kt=this.getLinkPoint(a,y,nt,!0,!1,b,E),at=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,kt,z-1,at)),!ot)if(this.Fj(),yt){z=this.getLinkPoint(a,y,nt,!0,!1,b,E),kt=this.getLinkPoint(b,E,x,!1,!1,a,y),ot=kt.x-z.x,at=kt.y-z.y,ut=this.computeCurviness(),yt=ct=0;var zt=z.x+ot/3,Zt=z.y+at/3,he=zt,He=Zt;En.B(at,0)?He=0<ot?He-ut:He+ut:(ct=-ot/at,yt=Math.sqrt(ut*ut/(ct*ct+1)),0>ut&&(yt=-yt),he=(0>at?-1:1)*yt+zt,He=ct*(he-zt)+Zt),zt=z.x+2*ot/3,Zt=z.y+2*at/3;var Fe=zt,Ve=Zt;En.B(at,0)?Ve=0<ot?Ve-ut:Ve+ut:(Fe=(0>at?-1:1)*yt+zt,Ve=ct*(Fe-zt)+Zt),this.Fj(),this.ne(z),this.yf(he,He),this.yf(Fe,Ve),this.ne(kt),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,kt=E,b=this.getLinkPoint(a,y,nt,!0,!1,z,kt),E=this.getLinkPoint(z,kt,x,!1,!1,a,y),this.hasCurviness()?(kt=E.x-b.x,x=E.y-b.y,nt=this.computeCurviness(),a=b.x+kt/2,y=b.y+x/2,z=a,ot=y,En.B(x,0)?ot=0<kt?ot-nt:ot+nt:(kt=-kt/x,z=Math.sqrt(nt*nt/(kt*kt+1)),0>nt&&(z=-z),z=(0>x?-1:1)*z+a,ot=kt*(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),kt.mi(ot),ut=ot.ca(b),(at||ut)&&(nt=y.ga(A0(nt),new Ne),this.dd(0,this.getLinkPointFromPoint(a,y,nt,E,!0,nt)),x=kt.ga(A0(x),new Ne),this.dd(1,this.getLinkPointFromPoint(z,kt,x,b,!1,x))),ai.free(ot))}else{yt=this.isAvoiding,kt&&(ct&&yt||ut)&&this.Fj();var tn=ut?this.computeCurviness():0;yt=this.getLinkPoint(a,y,nt,!0,ct,b,E),zt=he=Zt=0,(ct||!ot||ut)&&(He=this.computeEndSegmentLength(a,y,nt,!0),zt=this.getLinkDirection(a,y,yt,nt,!0,ct,b,E),ut&&(ot||nt.D(x)||!ct&&nt.x+x.x===1&&nt.y+x.y===1)&&(zt-=ct?90:30,0>tn&&(zt-=180)),0>zt?zt+=360:360<=zt&&(zt-=360),ut&&(He+=Math.abs(tn)*(ct?1:2)),zt===0?Zt=He:zt===90?he=He:zt===180?Zt=-He:zt===270?he=-He:(Zt=He*Math.cos(zt*Math.PI/180),he=He*Math.sin(zt*Math.PI/180)),nt.Mc()&&ut&&(He=y.ga(bo,Ne.alloc()),Fe=Ne.allocAt(He.x+1e3*Zt,He.y+1e3*he),this.getLinkPointFromPoint(a,y,He,Fe,!0,yt),Ne.free(He),Ne.free(Fe))),He=this.getLinkPoint(b,E,x,!1,ct,a,y);var on=Ve=Fe=0;if(ct||!at||ut){var Sn=this.computeEndSegmentLength(b,E,x,!1);on=this.getLinkDirection(b,E,He,x,!1,ct,a,y),ut&&(at||nt.D(x)||!ct&&nt.x+x.x===1&&nt.y+x.y===1)&&(on+=ct?0:30,0>tn&&(on+=180)),0>on?on+=360:360<=on&&(on-=360),ut&&(Sn+=Math.abs(tn)*(ct?1:2)),on===0?Fe=Sn:on===90?Ve=Sn:on===180?Fe=-Sn:on===270?Ve=-Sn:(Fe=Sn*Math.cos(on*Math.PI/180),Ve=Sn*Math.sin(on*Math.PI/180)),x.Mc()&&ut&&(x=E.ga(bo,Ne.alloc()),nt=Ne.allocAt(x.x+1e3*Fe,x.y+1e3*Ve),this.getLinkPointFromPoint(b,E,x,nt,!1,He),Ne.free(x),Ne.free(nt))}x=yt,(ct||!ot||ut)&&(x=new Ne(yt.x+Zt,yt.y+he)),nt=He,(ct||!at||ut)&&(nt=new Ne(He.x+Fe,He.y+Ve)),!kt&&!ct&&ot&&3<z&&this.adjustPoints(0,yt,z-2,nt)?this.dd(z-1,He):!kt&&!ct&&at&&3<z&&this.adjustPoints(1,x,z-1,He)?this.dd(0,yt):!kt&&(ct?6<=z:4<z)&&this.adjustPoints(1,x,z-2,nt)?(this.dd(0,yt),this.dd(z-1,He)):(this.Fj(),this.ne(yt),(ct||!ot||ut)&&this.ne(x),ct&&this.addOrthoPoints(x,zt,nt,on,a,b),(ct||!at||ut)&&this.ne(nt),this.ne(He))}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}Gi.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new Ne),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(E=a.findVisibleNode(),E!==null&&E!==a&&(y=E.port)),a=null,E=y.panel,E===null||E.se()||(E=E.panel),E===null){E=b.x,b=b.y;var nt=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),nt=a.m22*E;var ot=-a.m12*E,at=-a.m21*E,ut=a.m11*E,ct=E*(a.m21*a.dy-a.m22*a.dx),yt=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*nt+b.y*at+ct,b=b.x*ot+b.y*ut+yt,nt=x.x*nt+x.y*at+ct,x=x.x*ot+x.y*ut+yt}return y.Sj(E,b,nt,x,z),a!==null&&z.transform(a),z};function d0(a,y){var x=y.Zn;return x===null&&(x=new ap,x.port=y,x.node=y.part,y.Zn=x),f1(x,a)}Gi.prototype.getLinkPoint=function(a,y,x,b,E,z,nt,ot){if(ot===void 0&&(ot=new Ne),x.sb()&&!jp(x))return y.ga(x,ot),ot;if(x.$c()){var at=d0(this,y);if(at!==null){if(ot.assign(at.Zo),E&&this.routing===l1){var ut=d0(this,nt);if(ut!==null&&at.Gl<ut.Gl){at=Ne.alloc(),ut=Ne.alloc();var ct=new ai(y.ga(rl,at),y.ga($l,ut)),yt=this.computeSpot(!b,nt);a=this.getLinkPoint(z,nt,yt,!b,E,a,y,ut),(x.Hf(bu)||x.Hf(fu))&&a.y>=ct.y&&a.y<=ct.y+ct.height?ot.y=a.y:(x.Hf(Pu)||x.Hf(eu))&&a.x>=ct.x&&a.x<=ct.x+ct.width&&(ot.x=a.x),Ne.free(at),Ne.free(ut)}}return ot}}return x=y.ga(A0(x),Ne.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=Ne.alloc(),nt=nt.ga(A0(at),z),E&&(nt=Nv(x,nt)),Ne.free(z)),this.getLinkPointFromPoint(a,y,x,nt,b,ot),Ne.free(x),ot},Gi.prototype.getLinkDirection=function(a,y,x,b,E,z,nt,ot){t:if(b.sb())var at=b.x>b.y?b.x>1-b.y?0:b.x<1-b.y?270:315:b.x<b.y?b.x>1-b.y?90:b.x<1-b.y?180:135:.5>b.x?225:.5<b.x?45:0;else{if(b.$c()&&(at=d0(this,y),at!==null))switch(at.Nc){case 1:at=270;break t;case 2:at=180;break t;default:case 4:at=0;break t;case 8:at=90;break t}at=y.ga(bo,Ne.alloc()),this.pointsCount>(z?6:2)?(ot=E?this.i(1):this.i(this.pointsCount-2),ot=z?Nv(at,ot.copy()):x):(x=Ne.alloc(),ot=ot.ga(bo,x),Ne.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,Ne.free(at),at=x}return b.Mc()&&nt.Td(a)&&(at+=180,360<=at&&(at-=360)),jp(b)||(a=y.li(),a===0)||(45<=a&&135>a?at+=90:135<=a&&225>a?at+=180:225<=a&&315>a&&(at+=270),360<=at&&(at-=360)),at},Gi.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=d0(this,y),a!==null)?a.Ju:(a=b?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=b?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},Gi.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=bo:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Ls?Za:y)):(a=y||this.toPort,a===null?a=bo:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Ls?Za:y)),a};function jp(a){return a===Za||a.x===.5&&a.y===.5}function A0(a){return a.x===.5&&a.y===.5?a:bo}Gi.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Zh&&4<this.pointsCount?this.computeMidPoint(new Ne):(a=y.Zn,a=a!==null?f1(a,this):null,a!==null?a.Zo:y.ga(bo))},Gi.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},Gi.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=Ho.alloc(),nt.reset()),nt.multiply(this.transform),this.fh(a,nt))return cd(this,y,x,E),z===void 0&&Ho.free(nt),!0;if(this.Yc(a,nt)){var ot=!1;if(!this.isAtomic)for(var at=this.O.s,ut=at.length;ut--;){var ct=at[ut];if(ct.visible||ct===this.locationObject){var yt=ct.actualBounds,kt=this.naturalBounds;if(!(yt.x>kt.width||yt.y>kt.height||0>yt.x+yt.width||0>yt.y+yt.height)){if(yt=Ho.alloc(),yt.set(nt),ct instanceof ci)ot=ct.Cf(a,y,x,b,E,yt);else if(this.path===ct){if(ct instanceof Io)if(ot=a,kt=b,ct.pickable===!1)ot=!1;else if(yt.multiply(ct.transform),kt)t:{var zt=ot,Zt=yt;if(ct.fh(zt,Zt))ot=!0;else{if(Zt===void 0&&(Zt=ct.transform,zt.Re(ct.actualBounds))){ot=!0;break t}ot=zt.left,kt=zt.right;var he=zt.top;zt=zt.bottom;var He=Ne.alloc(),Fe=Ne.alloc(),Ve=Ne.alloc(),tn=Ho.alloc();tn.set(Zt),tn.bv(ct.transform),tn.Vj(),Fe.x=kt,Fe.y=he,Fe.transform(tn),He.x=ot,He.y=he,He.transform(tn),Zt=!1,Cf(ct,He,Fe,Ve)?Zt=!0:(He.x=kt,He.y=zt,He.transform(tn),Cf(ct,He,Fe,Ve)?Zt=!0:(Fe.x=ot,Fe.y=zt,Fe.transform(tn),Cf(ct,He,Fe,Ve)?Zt=!0:(He.x=ot,He.y=he,He.transform(tn),Cf(ct,He,Fe,Ve)&&(Zt=!0)))),Ho.free(tn),Ne.free(He),Ne.free(Fe),Ne.free(Ve),ot=Zt}}else ot=ct.fh(ot,yt)}else ot=Bl(ct,a,b,yt);ot&&(kt=ct,y!==null&&(kt=y(ct)),kt&&(x===null||x(kt))&&E.add(kt)),Ho.free(yt)}}}return z===void 0&&Ho.free(nt),ot||this.background!==null||this.areaBackground!==null}return z===void 0&&Ho.free(nt),!1},Gi.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?Yc:this.curve},Gi.prototype.computeCorner=function(){if(this.curve===Yc)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Gi.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},Gi.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=h1;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var b=this.findMidLabel();if(b!==null){var E=b.naturalBounds,z=b.margin,nt=isNaN(E.width)?30:E.width*b.scale+z.left+z.right;E=isNaN(E.height)?14:E.height*b.scale+z.top+z.bottom,b=b.segmentOrientation,b===wm||b===v0||b===Dv?a=Math.max(a,E):b===Sm||b===Bm||b===xm||b===Cm?a=Math.max(a,nt):(y=y.ga(bo).ab(x.ga(bo))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*nt)+Math.abs(Math.cos(y)*E)+1)),this.curve===Yc&&(a*=1.333)}}return a},Gi.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Zh&&x.bb()}},Gi.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=u1;var y=this.Sf;if(y!==null){for(var x=or(),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),Lr(x)}}return a},Gi.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Gi.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Gi.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===p0)return!1;E===m0&&(E=ym)}switch(E){case p0:var z=this.i(a),nt=this.i(x);if(!z.Xa(y)||!nt.Xa(b)){E=z.x,z=z.y;var ot=nt.x-E,at=nt.y-z,ut=Math.sqrt(ot*ot+at*at);if(!En.$(ut,0)){if(En.$(ot,0))var ct=0>at?-Math.PI/2:Math.PI/2;else ct=Math.atan(at/Math.abs(ot)),0>ot&&(ct=Math.PI-ct);nt=y.x;var yt=y.y;ot=b.x-nt;var kt=b.y-yt;for(at=Math.sqrt(ot*ot+kt*kt),En.$(ot,0)?kt=0>kt?-Math.PI/2:Math.PI/2:(kt=Math.atan(kt/Math.abs(ot)),0>ot&&(kt=Math.PI-kt)),ut=at/ut,ct=kt-ct,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),ot=y.x-E,at=y.y-z,y=Math.sqrt(ot*ot+at*at),En.$(y,0)||(En.$(ot,0)?at=0>at?-Math.PI/2:Math.PI/2:(at=Math.atan(at/Math.abs(ot)),0>ot&&(at=Math.PI-at)),ot=at+ct,y*=ut,this.L(a,nt+y*Math.cos(ot),yt+y*Math.sin(ot)));this.dd(x,b)}}return!0;case m0: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,ut=(nt-E)*(nt-E)+(yt-z)*(yt-z),ot=y.x,ct=y.y,at=b.x,kt=b.y;var zt=1;if(at-ot!==0){var Zt=(kt-ct)/(at-ot);zt=Math.sqrt(1+1/(Zt*Zt))}else Zt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var he=y.x,He=y.y,Fe=.5;ut!==0&&(Fe=((E-he)*(E-nt)+(z-He)*(z-yt))/ut);var Ve=E+Fe*(nt-E),tn=z+Fe*(yt-z);y=Math.sqrt((he-Ve)*(he-Ve)+(He-tn)*(He-tn)),He<Zt*(he-Ve)+tn&&(y=-y),0<Zt&&(y=-y),he=ot+Fe*(at-ot),Fe=ct+Fe*(kt-ct),Zt!==0?(y=he+y/zt,this.L(a,y,Fe-(y-he)/Zt)):this.L(a,he,Fe+y)}this.dd(x,b)}return!0;case ym:t:{if(this.isOrthogonal&&(E=this.i(a),z=this.i(a+1),nt=this.i(a+2),ot=z.x,ct=z.y,yt=ot,ut=ct,En.B(E.y,z.y)?En.B(z.x,nt.x)?ct=y.y:En.B(z.y,nt.y)&&(ot=y.x):En.B(E.x,z.x)&&(En.B(z.y,nt.y)?ot=y.x:En.B(z.x,nt.x)&&(ct=y.y)),this.L(a+1,ot,ct),E=this.i(x),z=this.i(x-1),nt=this.i(x-2),ot=z.x,ct=z.y,at=ot,kt=ct,En.B(E.y,z.y)?En.B(z.x,nt.x)?ct=b.y:En.B(z.y,nt.y)&&(ot=b.x):En.B(E.x,z.x)&&(En.B(z.y,nt.y)?ot=b.x:En.B(z.x,nt.x)&&(ct=b.y)),this.L(x-1,ot,ct),Iv(this))){this.L(a+1,yt,ut),this.L(x-1,at,kt),x=!1;break t}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},Gi.prototype.addOrthoPoints=function(a,y,x,b,E,z){0>y?y+=360:360<=y&&(y-=360),0>b?b+=360:360<=b&&(b-=360);var nt=b;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,b=315<=b||45>b?0:45<=b&&135>b?90:135<=b&&225>b?180:270;var ot=E.actualBounds.copy(),at=z.actualBounds.copy();if(ot.w()&&at.w()){ot.Bc(Pm,Pm),at.Bc(Pm,Pm),ot.Ye(a),at.Ye(x);var ut=Ne.alloc(),ct=Ne.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&at.right>a.x||b===90&&x.y>a.y&&at.right>a.x?(ut.h(x.x,a.y),ct.h(x.x,(a.y+x.y)/2),b===180?(ut.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ct.x=ut.x,ct.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ut.x=a.x<at.left?this.computeMidOrthoPosition(a.x,a.y,at.left,x.y,!1):a.x<at.right&&(b===270&&a.y<at.top||b===90&&a.y>at.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):at.right,ct.x=ut.x,ct.y=x.y):b===0&&a.x<at.left&&a.y>at.top&&a.y<at.bottom&&(ut.x=a.x,ut.y=a.y<x.y?Math.min(x.y,at.top):Math.max(x.y,at.bottom),ct.y=ut.y)):(ut.h(a.x,x.y),ct.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<ot.top||b===270&&x.y>ot.bottom)&&(b===180&&(at.ca(a)||ot.ca(x))?ut.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?ut.y=this.computeMidOrthoPosition(a.x,ot.top,x.x,Math.max(x.y,at.bottom),!0):x.y>a.y&&(b===180||b===270)&&(ut.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,at.top),!0)),ct.x=x.x,ct.y=ut.y),ut.y>ot.top&&ut.y<ot.bottom&&(x.x>=ot.left&&x.x<=a.x||a.x<=at.right&&a.x>=x.x?(b===90||b===270)&&(ut.h(Math.max((a.x+x.x)/2,a.x),a.y),ct.h(ut.x,x.y)):(ut.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?ot.top:Math.min(ot.top,at.top)):Math.max(x.y,b===0?ot.bottom:Math.max(ot.bottom,at.bottom)),ct.x=x.x,ct.y=ut.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&at.left<a.x||b===90&&x.y>a.y&&at.left<a.x?(ut.h(x.x,a.y),ct.h(x.x,(a.y+x.y)/2),b===0?(ut.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ct.x=ut.x,ct.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ut.x=a.x>at.right?this.computeMidOrthoPosition(a.x,a.y,at.right,x.y,!1):a.x>at.left&&(b===270&&a.y<at.top||b===90&&a.y>at.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):at.left,ct.x=ut.x,ct.y=x.y):b===180&&a.x>at.right&&a.y>at.top&&a.y<at.bottom&&(ut.x=a.x,ut.y=a.y<x.y?Math.min(x.y,at.top):Math.max(x.y,at.bottom),ct.y=ut.y)):(ut.h(a.x,x.y),ct.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<ot.top||b===270&&x.y>ot.bottom)&&(b===0&&(at.ca(a)||ot.ca(x))?ut.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?ut.y=this.computeMidOrthoPosition(a.x,ot.top,x.x,Math.max(x.y,at.bottom),!0):x.y>a.y&&(b===0||b===270)&&(ut.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,at.top),!0)),ct.x=x.x,ct.y=ut.y),ut.y>ot.top&&ut.y<ot.bottom&&(x.x<=ot.right&&x.x>=a.x||a.x>=at.left&&a.x<=x.x?(b===90||b===270)&&(ut.h(Math.min((a.x+x.x)/2,a.x),a.y),ct.h(ut.x,x.y)):(ut.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?ot.top:Math.min(ot.top,at.top)):Math.max(x.y,b===180?ot.bottom:Math.max(ot.bottom,at.bottom)),ct.x=x.x,ct.y=ut.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&at.bottom>a.y||b===0&&x.x>a.x&&at.bottom>a.y?(ut.h(a.x,x.y),ct.h((a.x+x.x)/2,x.y),b===270?(ut.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ct.x=x.x,ct.y=ut.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(ut.y=a.y<at.top?this.computeMidOrthoPosition(a.x,a.y,x.x,at.top,!0):a.y<at.bottom&&(b===180&&a.x<at.left||b===0&&a.x>at.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):at.bottom,ct.x=x.x,ct.y=ut.y):b===90&&a.y<at.top&&a.x>at.left&&a.x<at.right&&(ut.x=a.x<x.x?Math.min(x.x,at.left):Math.max(x.x,at.right),ut.y=a.y,ct.x=ut.x)):(ut.h(x.x,a.y),ct.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<ot.left||b===180&&x.x>ot.right)&&(b===270&&(at.ca(a)||ot.ca(x))?ut.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?ut.x=this.computeMidOrthoPosition(ot.left,a.y,Math.max(x.x,at.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(ut.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,at.left),x.y,!1)),ct.x=ut.x,ct.y=x.y),ut.x>ot.left&&ut.x<ot.right&&(x.y>=ot.top&&x.y<=a.y||a.y<=at.bottom&&a.y>=x.y?(b===0||b===180)&&(ut.h(a.x,Math.max((a.y+x.y)/2,a.y)),ct.h(x.x,ut.y)):(ut.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?ot.left:Math.min(ot.left,at.left)):Math.max(x.x,b===90?ot.right:Math.max(ot.right,at.right)),ct.x=ut.x,ct.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&at.top<a.y||b===0&&x.x>a.x&&at.top<a.y?(ut.h(a.x,x.y),ct.h((a.x+x.x)/2,x.y),b===90?(ut.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ct.x=x.x,ct.y=ut.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(ut.y=a.y>at.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,at.bottom,!0):a.y>at.top&&(b===180&&a.x<at.left||b===0&&a.x>at.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):at.top,ct.x=x.x,ct.y=ut.y):b===270&&a.y>at.bottom&&a.x>at.left&&a.x<at.right&&(ut.x=a.x<x.x?Math.min(x.x,at.left):Math.max(x.x,at.right),ut.y=a.y,ct.x=ut.x)):(ut.h(x.x,a.y),ct.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<ot.left||b===180&&x.x>ot.right)&&(b===90&&(at.ca(a)||ot.ca(x))?ut.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?ut.x=this.computeMidOrthoPosition(ot.left,a.y,Math.max(x.x,at.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(ut.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,at.left),x.y,!1)),ct.x=ut.x,ct.y=x.y),ut.x>ot.left&&ut.x<ot.right&&(x.y<=ot.bottom&&x.y>=a.y||a.y>=at.top&&a.y<=x.y?(b===0||b===180)&&(ut.h(a.x,Math.min((a.y+x.y)/2,a.y)),ct.h(x.x,ut.y)):(ut.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?ot.left:Math.min(ot.left,at.left)):Math.max(x.x,b===270?ot.right:Math.max(ot.right,at.right)),ct.x=ut.x,ct.y=x.y)));var yt=x;if(this.isAvoiding){var kt=this.diagram;if(kt===null||E===z||this.layer.isTemporary||!yn(kt)||ot.ca(yt)&&!z.Td(E)||at.ca(a)&&!E.Td(z))y=!1;else{var zt=wi(kt,!0,this.containingGroup,null);if(this.segmentIndex!==17&&zt.Yj(Math.min(a.x,ut.x),Math.min(a.y,ut.y),Math.abs(a.x-ut.x),Math.abs(a.y-ut.y))&&zt.Yj(Math.min(ut.x,ct.x),Math.min(ut.y,ct.y),Math.abs(ut.x-ct.x),Math.abs(ut.y-ct.y))&&zt.Yj(Math.min(ct.x,yt.x),Math.min(ct.y,yt.y),Math.abs(ct.x-yt.x),Math.abs(ct.y-yt.y)))y=!1;else{E=a,z=yt;var Zt=x=null;if(kt.isVirtualized){kt=zt.bounds.copy(),kt.Bc(-zt.Ho,-zt.Go);var he=Ne.alloc();Rp(zt,a.x,a.y)||(En.Ff(kt.x,kt.y,kt.x+kt.width,kt.y+kt.height,a.x,a.y,ut.x,ut.y,he)?(x=a=he.copy(),y=he.ab(ut)):En.Ff(kt.x,kt.y,kt.x+kt.width,kt.y+kt.height,ut.x,ut.y,ct.x,ct.y,he)?(x=a=he.copy(),y=he.ab(ct)):En.Ff(kt.x,kt.y,kt.x+kt.width,kt.y+kt.height,ct.x,ct.y,yt.x,yt.y,he)&&(x=a=he.copy(),y=he.ab(yt))),Rp(zt,yt.x,yt.y)||(En.Ff(kt.x,kt.y,kt.x+kt.width,kt.y+kt.height,yt.x,yt.y,ct.x,ct.y,he)?(Zt=yt=he.copy(),b=ct.ab(he)):En.Ff(kt.x,kt.y,kt.x+kt.width,kt.y+kt.height,ct.x,ct.y,ut.x,ut.y,he)?(Zt=yt=he.copy(),b=ut.ab(he)):En.Ff(kt.x,kt.y,kt.x+kt.width,kt.y+kt.height,ut.x,ut.y,a.x,a.y,he)&&(Zt=yt=he.copy(),b=a.ab(he))),Ne.free(he)}ot=ot.copy().ed(at),ot.Bc(zt.Ho*zt.Os,zt.Go*zt.Os),d1(zt,a,y,yt,b,ot,!0),at=JA(zt,yt.x,yt.y),!zt.abort&&at>=_p&&(c1(zt),ot.Bc(zt.Ho*zt.Hx,zt.Go*zt.Ix),d1(zt,a,y,yt,b,ot,!1),at=JA(zt,yt.x,yt.y)),!zt.abort&&at<_p&&JA(zt,yt.x,yt.y)!==Mf?(kv(this,zt,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?En.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)):En.B(ot.y,nt.y)?(Math.abs(a.y-ot.y)<=zt.Go/2&&(this.L(2,ot.x,a.y),this.L(3,nt.x,a.y)),this.m(2,ot.x,a.y)):this.L(2,a.x,ot.y):(y===90||y===270)&&(En.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)):En.B(ot.x,nt.x)?(Math.abs(a.x-ot.x)<=zt.Ho/2&&(this.L(2,a.x,ot.y),this.L(3,a.x,nt.y)),this.m(2,a.x,ot.y)):this.L(2,ot.x,a.y))),x!==null&&(a=this.i(1),nt=this.i(2),a.x!==nt.x&&a.y!==nt.y?y===0||y===180?this.m(2,a.x,nt.y):this.m(2,nt.x,a.y):y===0||y===180?this.m(2,E.x,x.y):this.m(2,x.x,E.y)),Zt!==null&&(b===0||b===180?this.yf(z.x,Zt.y):this.yf(Zt.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(ut.copy()),this.ne(ct.copy())),Ne.free(ut),Ne.free(ct)}},Gi.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||!yn(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=wi(a.diagram,!0,a.containingGroup,null);for(var b=1;b<x-2;b++){var E=y[b],z=y[b+1];if(!a.Yj(Math.min(E.x,z.x),Math.min(E.y,z.y),Math.abs(E.x-z.x),Math.abs(E.y-z.y)))return!0}return!1}function kv(a,y,x,b,E,z,nt){var ot=y.Ho,at=y.Go,ut=JA(y,x,b),ct=x,yt=b;for(E===0?ct+=ot:E===90?yt+=at:E===180?ct-=ot:yt-=at,E!==nt&&ut>kg&&JA(y,ct,yt)!==ut-1&&(JA(y,x-ot,b)===ut-1?(E=180,ct=x-ot,yt=b):JA(y,x+ot,b)===ut-1?(E=0,ct=x+ot,yt=b):JA(y,x,b-at)===ut-1?(E=270,ct=x,yt=b-at):JA(y,x,b+at)===ut-1&&(E=90,ct=x,yt=b+at));ut>kg&&JA(y,ct,yt)===ut-1;)x=ct,b=yt,E===0?ct+=ot:E===90?yt+=at:E===180?ct-=ot:yt-=at,--ut;z?ut>kg&&(E===180||E===0?x=Math.floor(x/ot)*ot+ot/2:(E===90||E===270)&&(b=Math.floor(b/at)*at+at/2)):(x=Math.floor(x/ot)*ot+ot/2,b=Math.floor(b/at)*at+at/2),ut>kg&&(z=E,nt=x,ct=b,E===0?(z=90,ct+=at):E===90?(z=180,nt-=ot):E===180?(z=270,ct-=at):E===270&&(z=0,nt+=ot),JA(y,nt,ct)===ut-1?kv(a,y,nt,ct,z,!1,z):(nt=x,ct=b,E===0?(z=270,ct-=at):E===90?(z=0,nt+=ot):E===180?(z=90,ct+=at):E===270&&(z=180,nt-=ot),JA(y,nt,ct)===ut-1&&kv(a,y,nt,ct,z,!1,z))),a.yf(x,b)}Gi.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=Gs(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=Gs(y,a,b.x,b.y,x.x,x.y);b=x,ot<E&&(z=nt,E=ot)}return z},Gi.prototype.qc=function(){this.lk=!1,this.v()},Gi.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 Io&&(E.ua=this.ua)}}},Gi.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&Ig(this)&&b.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(b.animationManager.isAnimating||b.currentTool!==b.toolManager)&&(x=!0);var E=this.i(0).copy(),z=E.copy();b=this.Nb.s;var nt=this.computeCurve();if(nt===Yc&&3<=y&&!En.$(this.smoothness,0))if(y===3){var ot=this.i(1);b=Math.min(E.x,ot.x);var at=Math.min(E.y,ot.y);ot=this.i(2),b=Math.min(b,ot.x),at=Math.min(at,ot.y)}else{if(this.isOrthogonal)for(at=0;at<y;at++)ot=b[at],z.x=Math.min(ot.x,z.x),z.y=Math.min(ot.y,z.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),at=this.i(b),z.x=Math.min(at.x,z.x),z.y=Math.min(at.y,z.y);b=z.x,at=z.y}else{for(at=0;at<y;at++)ot=b[at],z.x=Math.min(ot.x,z.x),z.y=Math.min(ot.y,z.y);b=z.x,at=z.y}if(b-=this.su.x,at-=this.su.y,E.x-=b,E.y-=at,y!==2||Ig(this)){if(a.type=Wi.o,ot=jy(a),this.computeShortLength(!0)!==0&&(E=ip(this,E,!0,z)),Op(ot,E.x,E.y,!1),nt===Yc&&3<=y&&!En.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-at,E=this.i(2).copy(),E.x-=b,E.y-=at,this.computeShortLength(!1)!==0&&(E=ip(this,E,!1,z)),Pf(ot,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=Ne.allocAt(b,at),x=Ne.alloc(),x.assign(this.i(1)),z=Ne.allocAt(b,at),E=Ne.allocAt(b,at),nt=this.i(0);for(var ut,ct=this.smoothness/3,yt=1;yt<this.pointsCount-1;yt++){ut=this.i(yt);var kt=nt,zt=ut,Zt=this.i(Tv(this,ut,yt,!1));if((!En.$(kt.x,zt.x)||!En.$(zt.x,Zt.x))&&(!En.$(kt.y,zt.y)||!En.$(zt.y,Zt.y))){var he=ct;isNaN(he)&&(he=this.smoothness/3);var He=kt.x;kt=kt.y;var Fe=zt.x;zt=zt.y;var Ve=Zt.x;Zt=Zt.y;var tn=he*f0(He,kt,Fe,zt);he*=f0(Fe,zt,Ve,Zt),En.$(kt,zt)&&En.$(Fe,Ve)&&(Fe>He?Zt>zt?(z.x=Fe-tn,z.y=zt-tn,E.x=Fe+he,E.y=zt+he):(z.x=Fe-tn,z.y=zt+tn,E.x=Fe+he,E.y=zt-he):Zt>zt?(z.x=Fe+tn,z.y=zt-tn,E.x=Fe-he,E.y=zt+he):(z.x=Fe+tn,z.y=zt+tn,E.x=Fe-he,E.y=zt-he)),En.$(He,Fe)&&En.$(zt,Zt)&&(zt>kt?(Ve>Fe?(z.x=Fe-tn,z.y=zt-tn,E.x=Fe+he):(z.x=Fe+tn,z.y=zt-tn,E.x=Fe-he),E.y=zt+he):(Ve>Fe?(z.x=Fe-tn,z.y=zt+tn,E.x=Fe+he):(z.x=Fe+tn,z.y=zt+tn,E.x=Fe-he),E.y=zt-he)),(En.$(He,Fe)&&En.$(Fe,Ve)||En.$(kt,zt)&&En.$(zt,Zt))&&(He=.5*(He+Ve),kt=.5*(kt+Zt),z.x=He,z.y=kt,E.x=He,E.y=kt),(yt===1||yt===2&&En.$(nt.x,this.i(0).x)&&En.$(nt.y,this.i(0).y))&&(x.x=.5*(nt.x+ut.x),x.y=.5*(nt.y+ut.y)),Pf(ot,x.x-b,x.y-at,z.x-b,z.y-at,ut.x-b,ut.y-at),y.set(z),x.set(E),nt=ut}}ut=nt.x,nt=nt.y,ct=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ct=ip(this,ct.copy(),!1,ds)),ut=.5*(ut+ct.x),nt=.5*(nt+ct.y),Pf(ot,E.x-b,E.y-at,ut-b,nt-at,ct.x-b,ct.y-at),Ne.free(y),Ne.free(x),Ne.free(z),Ne.free(E)}else for(x=3;x<y;x+=3)z=this.i(x-2),x+3>=y&&(x=y-1),E=this.i(x-1),nt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(nt=ip(this,nt.copy(),!1,ds)),Pf(ot,z.x-b,z.y-at,E.x-b,E.y-at,nt.x-b,nt.y-at);else{for(z=Ne.alloc(),z.assign(this.i(0)),E=Ne.alloc(),E.assign(z),nt=this.computeCorner(),yt=1,ut=0;yt<y;){if(yt=Tv(this,z,yt,1<yt),ct=this.i(yt),yt>=y-1){if(!z.D(ct))this.computeShortLength(!1)!==0&&(ct=ip(this,ct.copy(),!1,ds)),rp(this,ot,-b,-at,z,ct,x);else if(ut===0)for(yt=1;yt<y;)E.assign(z),ct=this.i(yt++),rp(this,ot,-b,-at,z,ct,x),z.assign(ct);break}if(ut=Tv(this,ct,yt+1,yt<y-3),yt=-b,He=-at,kt=ct,Fe=this.i(ut),he=x,En.B(z.y,kt.y)&&En.B(kt.x,Fe.x))if(Zt=Math.min(nt,Math.abs(kt.x-E.x)/2),Zt=tn=Math.min(Zt,Math.abs(Fe.y-kt.y)/2),En.B(Zt,0))rp(this,ot,yt,He,z,kt,he),z.assign(kt);else{var on=kt.x,Sn=kt.y;zt=on,Ve=Sn,kt.x>z.x?on=kt.x-Zt:on=kt.x+Zt,Fe.y>kt.y?Ve=kt.y+tn:Ve=kt.y-tn,Fe=Ne.allocAt(on,Sn),rp(this,ot,yt,He,z,Fe,he),Ne.free(Fe),r0(ot,kt.x+yt,kt.y+He,zt+yt,Ve+He),z.h(zt,Ve)}else En.B(z.x,kt.x)&&En.B(kt.y,Fe.y)?(Zt=Math.min(nt,Math.abs(kt.y-E.y)/2),Zt=tn=Math.min(Zt,Math.abs(Fe.x-kt.x)/2),En.B(tn,0)?(rp(this,ot,yt,He,z,kt,he),z.assign(kt)):(on=kt.x,Sn=kt.y,zt=on,Ve=Sn,kt.y>z.y?Sn=kt.y-Zt:Sn=kt.y+Zt,Fe.x>kt.x?zt=kt.x+tn:zt=kt.x-tn,Fe=Ne.allocAt(on,Sn),rp(this,ot,yt,He,z,Fe,he),Ne.free(Fe),r0(ot,kt.x+yt,kt.y+He,zt+yt,Ve+He),z.h(zt,Ve))):(rp(this,ot,yt,He,z,kt,he),z.assign(kt));E.assign(ct),yt=ut}Ne.free(z)}o0=ot}else ot=this.i(1).copy(),ot.x-=b,ot.y-=at,this.computeShortLength(!0)!==0&&(E=ip(this,E,!0,z)),this.computeShortLength(!1)!==0&&(ot=ip(this,ot,!1,z)),a.type=Wi.j,a.startX=E.x,a.startY=E.y,a.endX=ot.x,a.endY=ot.y;return this.lk=!0,a};function f0(a,y,x,b){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=b-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),En.$(a,0)?y:En.$(y,0)?a:Math.sqrt(a*a+y*y)))}function ip(a,y,x,b){var E=a.pointsCount;if(2>E)return y;if(x){var z=a.i(1);if(x=z.x-b.x,z=z.y-b.y,b=f0(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!0),a>E&&(a=E),E=a*(z-y.y)/b,y.x+=a*(x-y.x)/b,y.y+=E}else{if(z=a.i(E-2),x=z.x-b.x,z=z.y-b.y,b=f0(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!1),a>E&&(a=E),E=a*(y.y-z)/b,y.x-=a*(y.x-x)/b,y.y-=E}return y}function Tv(a,y,x,b){for(var E=a.pointsCount,z=y;En.$(y.x,z.x)&&En.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!En.$(y.x,z.x)&&!En.$(y.y,z.y))return x-1;for(var nt=z;En.$(y.x,z.x)&&En.$(z.x,nt.x)&&(!b||(y.y>=z.y?z.y>=nt.y:z.y<=nt.y))||En.$(y.y,z.y)&&En.$(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}Gi.prototype.computeJumpLength=function(){return 10};function rp(a,y,x,b,E,z,nt){if(!nt&&Ig(a)){nt=a.computeJumpLength();var ot=nt/2,at=[],ut=0;if(a.isVisible()&&(ut=Iw(a,E,z,at)),0<ut){if(En.B(E.y,z.y))if(E.x<z.x)for(var ct=0;ct<ut;){var yt=Math.max(E.x,Math.min(at[ct++]-ot,z.x-nt));y.lineTo(yt+x,z.y+b);for(var kt=yt+x,zt=Math.min(yt+nt,z.x);ct<ut&&(yt=at[ct],yt<zt+nt);)ct++,zt=Math.min(yt+ot,z.x);yt=z.y-nt+b,zt+=x;var Zt=z.y+b;a.curve===Lf?Op(y,zt,Zt,!1):Pf(y,kt,yt,zt,yt,zt,Zt)}else for(--ut;0<=ut;){for(ct=Math.min(E.x,Math.max(at[ut--]+ot,z.x+nt)),y.lineTo(ct+x,z.y+b),kt=ct+x,yt=Math.max(ct-nt,z.x);0<=ut&&(ct=at[ut],ct>yt-nt);)ut--,yt=Math.max(ct-ot,z.x);ct=z.y-nt+b,yt+=x,zt=z.y+b,a.curve===Lf?Op(y,yt,zt,!1):Pf(y,kt,ct,yt,ct,yt,zt)}else if(En.B(E.x,z.x))if(E.y<z.y)for(ct=0;ct<ut;){for(yt=Math.max(E.y,Math.min(at[ct++]-ot,z.y-nt)),y.lineTo(z.x+x,yt+b),kt=yt+b,yt=Math.min(yt+nt,z.y);ct<ut&&(zt=at[ct],zt<yt+nt);)ct++,yt=Math.min(zt+ot,z.y);zt=z.x-nt+x,Zt=z.x+x,yt+=b,a.curve===Lf?Op(y,Zt,yt,!1):Pf(y,zt,kt,zt,yt,Zt,yt)}else for(--ut;0<=ut;){for(ct=Math.min(E.y,Math.max(at[ut--]+ot,z.y+nt)),y.lineTo(z.x+x,ct+b),kt=ct+b,ct=Math.max(ct-nt,z.y);0<=ut&&(yt=at[ut],yt>ct-nt);)ut--,ct=Math.max(yt-ot,z.y);yt=z.x-nt+x,zt=z.x+x,ct+=b,a.curve===Lf?Op(y,zt,ct,!1):Pf(y,yt,kt,yt,ct,zt,ct)}}}y.lineTo(z.x+x,z.y+b)}function Iw(a,y,x,b){var E=a.diagram;if(E===null||y.D(x))return 0;for(E=E.layers;E.next();){var z=E.value;if(z!==null&&z.visible){z=z.Pa.s;for(var nt=z.length,ot=0;ot<nt;ot++){var at=z[ot];if(at instanceof Gi){if(at===a)return 0<b.length&&b.sort(function(ct,yt){return ct-yt}),b.length;if(at.isVisible()&&Ig(at)){var ut=at.routeBounds;ut.w()&&a.routeBounds.Yc(ut)&&!a.usesSamePort(at)&&(ut=at.path,ut!==null&&ut.Ed()&&kw(y,x,b,at))}}}}}return 0<b.length&&b.sort(function(ct,yt){return ct-yt}),b.length}function kw(a,y,x,b){for(var E=En.B(a.y,y.y),z=b.pointsCount,nt=b.i(0),ot=Ne.alloc(),at=1;at<z;at++){var ut=b.i(at);if(at<z-1){var ct=b.i(at+1);if(nt.y===ut.y&&ut.y===ct.y){if(ut.x>nt.x&&ct.x>=ut.x||ut.x<nt.x&&ct.x<=ut.x)continue}else if(nt.x===ut.x&&ut.x===ct.x&&(ut.y>nt.y&&ct.y>=ut.y||ut.y<nt.y&&ct.y<=ut.y))continue}t:{ct=a.x;var yt=a.y,kt=y.x,zt=y.y,Zt=nt.x;nt=nt.y;var he=ut.x,He=ut.y;if(En.B(ct,kt)){if(!En.B(yt,zt)&&En.B(nt,He)&&Math.min(yt,zt)<nt&&Math.max(yt,zt)>nt&&Math.min(Zt,he)<ct&&Math.max(Zt,he)>ct&&!En.B(Zt,he)){ot.x=ct,ot.y=nt,ct=!0;break t}}else if(En.B(yt,zt)&&En.B(Zt,he)&&Math.min(ct,kt)<Zt&&Math.max(ct,kt)>Zt&&Math.min(nt,He)<yt&&Math.max(nt,He)>yt&&!En.B(nt,He)){ot.x=Zt,ot.y=yt,ct=!0;break t}ot.x=0,ot.y=0,ct=!1}ct&&(E?x.push(ot.x):x.push(ot.y)),nt=ut}Ne.free(ot)}function Ig(a){return a=a.curve,a===Up||a===Lf}function g0(a,y){(y||Ig(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}Gi.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 Gi&&(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 Gi&&a1(this,ot,a)}}}}};function a1(a,y,x){if(y!==null&&y.lk&&y.fd&&Ig(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}Gi.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},Gi.prototype.isVisible=function(){if(!Xr.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},Gi.prototype.Zb=function(a){if(Xr.prototype.Zb.call(this,a),a&&g0(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},Gi.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?ym:this.qk};function mm(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var b=a.ff,E=a.vf,z=a=null,nt=y.jb.s,ot=nt.length,at=0;at<ot;at++){var ut=nt[at];(ut.ef===y&&ut.ff===b&&ut.uf===x&&ut.vf===E||ut.ef===x&&ut.ff===E&&ut.uf===y&&ut.vf===b)&&(z===null?z=ut:(a===null&&(a=[],a.push(z)),a.push(ut)))}if(a!==null){for(z=Xy(y,x,b,E),z===null&&(z=new w0(y,b,x,E),Zy(y,z),Zy(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function vm(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(Gr(y.links,a),y.Sl()))}Gi.prototype.ph=function(){return!0},Oe.Object.defineProperties(Gi.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var x=this.fromPort;y!==null&&(this.uf!==y&&u0(y,this,x),vm(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setFromNodeForLink(this,a,y);var E=this.fromPort,z=this.fromPortChanged;if(z!==null){var nt=!0;b!==null&&(nt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=nt)}a!==null&&(this.uf!==a&&l0(a,this,E),mm(this),this.C(1)),this.g("fromNode",y,a),Dp(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&Lc(x),vm(this),this.ff=a;var b=this.fromPort;b!==null&&Lc(b);var E=this.diagram;if(E!==null){var z=this.data,nt=E.model;z!==null&&nt.ri()&&nt.xv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(nt=!0,E!==null&&(nt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=nt))),mm(this),this.g("fromPortId",y,a)}}},fromPort:{get:function(){var a=this.ef;return a===null?null:a.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(a){var y=this.gn;y!==a&&(this.gn=a,this.g("fromPortChanged",y,a))}},toNode:{get:function(){return this.uf},set:function(a){var y=this.uf;if(y!==a){var x=this.toPort;y!==null&&(this.ef!==y&&u0(y,this,x),vm(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setToNodeForLink(this,a,y);var E=this.toPort,z=this.toPortChanged;if(z!==null){var nt=!0;b!==null&&(nt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=nt)}a!==null&&(this.ef!==a&&l0(a,this,E),mm(this),this.C(1)),this.g("toNode",y,a),Dp(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&Lc(x),vm(this),this.vf=a;var b=this.toPort;b!==null&&Lc(b);var E=this.diagram;if(E!==null){var z=this.data,nt=E.model;z!==null&&nt.ri()&&nt.Cv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(nt=!0,E!==null&&(nt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=nt))),mm(this),this.g("toPortId",y,a)}}},toPort:{get:function(){var a=this.uf;return a===null?null:a.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(a){var y=this.uo;y!==a&&(this.uo=a,this.g("toPortChanged",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Ls},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),(y.$c()||a.$c())&&this.fromNode!==null&&Lc(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:NaN},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Ei(a,">= 0",Gi,"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:Ls},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&Lc(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Ei(a,">= 0",Gi,"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?Ai:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(a){var y=(this.Qa&1)!==0;y!==a&&(this.Qa^=1,this.g("relinkableFrom",y,a),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(a){var y=(this.Qa&2)!==0;y!==a&&(this.Qa^=2,this.g("relinkableTo",y,a),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(a){var y=(this.Qa&4)!==0;y!==a&&(this.Qa^=4,this.g("resegmentable",y,a),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(a){var y=(this.Qa&8)!==0;y!==a&&(this.Qa^=8,this.g("isTreeLink",y,a),this.fromNode!==null&&pm(this.fromNode),this.toNode!==null&&pm(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Io?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,b=this.pointsCount;if(b===0)a.h(NaN,NaN,0,0);else{if(b===1)b=this.i(0),y=Math.min(b.x,y),x=Math.min(b.y,x),a.h(b.x,b.y,0,0);else if(b===2){b=this.i(0);var E=this.i(1);y=Math.min(b.x,E.x),x=Math.min(b.y,E.y),a.h(b.x,b.y,0,0),a.Ye(E)}else if(this.computeCurve()===Yc&&3<=b&&!this.isOrthogonal)if(E=this.i(0),y=E.x,x=E.y,a.h(y,x,0,0),b===3){b=this.i(1),y=Math.min(b.x,y),x=Math.min(b.y,x);var z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),En.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);En.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 Ne)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||c0(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var b=this.i(x),E=this.i(x+1);En.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):En.$(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 Pi,b=0;b<a.length/2;b++)E=new Ne(a[2*b],a[2*b+1]).freeze(),x.add(E);else{for(b=!0,E=0;E<a.length;E++){var z=a[E];if(!On(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(x=new Pi,b=0;b<a.length;b++)E=a[b],x.add(new Ne(E.x,E.y).freeze())}}else if(a instanceof Pi)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else qe("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),c0(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&_s(a.animationManager,this,x)),this.g("points",y,x)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(a){(this.Qa&16)!==0!==a&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(a){(this.Qa&32)!==0!==a&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(a){(this.Qa&64)!==0!==a&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(a){this.o=a.copy()}},defaultToPoint:{get:function(){return this.u},set:function(a){this.u=a.copy()}},isOrthogonal:{get:function(){return(this.qj.value&2)===2}},isAvoiding:{get:function(){return(this.qj.value&4)===4}},lk:{get:function(){return(this.Qa&128)!==0},set:function(a){(this.Qa&128)!==0!==a&&(this.Qa^=128)}},geometry:{get:function(){if(!this.lk){if(this.vg(),2>this.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!jp(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!jp(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),g0(this,y===Lf||y===Up||a===Lf||a===Up),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),g0(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),Gi.prototype.invalidateOtherJumpOvers=Gi.prototype.Xo,Gi.prototype.findClosestSegment=Gi.prototype.ez,Gi.prototype.updateRoute=Gi.prototype.vg,Gi.prototype.invalidateRoute=Gi.prototype.bb,Gi.prototype.rollbackRoute=Gi.prototype.rv,Gi.prototype.commitRoute=Gi.prototype.zf,Gi.prototype.startRoute=Gi.prototype.uh,Gi.prototype.clearPoints=Gi.prototype.Fj,Gi.prototype.removePoint=Gi.prototype.pv,Gi.prototype.addPointAt=Gi.prototype.yf,Gi.prototype.addPoint=Gi.prototype.ne,Gi.prototype.insertPointAt=Gi.prototype.m,Gi.prototype.insertPoint=Gi.prototype.Kz,Gi.prototype.setPointAt=Gi.prototype.L,Gi.prototype.setPoint=Gi.prototype.dd,Gi.prototype.getPoint=Gi.prototype.i,Gi.prototype.getOtherPort=Gi.prototype.Cz,Gi.prototype.getOtherNode=Gi.prototype.To;var op=null,sp=null,Ov=new vi(Gi,"Normal",1),Tw=new vi(Gi,"Orthogonal",2),Ow=new vi(Gi,"AvoidsNodes",6),l1=new vi(Gi,"AvoidsNodesStraight",7),Zh=new vi(Gi,"None",0),Yc=new vi(Gi,"Bezier",9),Lf=new vi(Gi,"JumpGap",10),Up=new vi(Gi,"JumpOver",11),ym=new vi(Gi,"End",17),p0=new vi(Gi,"Scale",18),m0=new vi(Gi,"Stretch",19),wm=new vi(Gi,"OrientAlong",21),xm=new vi(Gi,"OrientPlus90",22),Sm=new vi(Gi,"OrientMinus90",23),Dv=new vi(Gi,"OrientOpposite",24),v0=new vi(Gi,"OrientUpright",25),Cm=new vi(Gi,"OrientPlus90Upright",26),Bm=new vi(Gi,"OrientMinus90Upright",27),y0=new vi(Gi,"OrientUpright45",28),u1=16,h1=14,Pm=8;Gi.className="Link",Gi.Normal=Ov,Gi.Orthogonal=Tw,Gi.AvoidsNodes=Ow,Gi.AvoidsNodesStraight=l1,Gi.None=Zh,Gi.Bezier=Yc,Gi.JumpGap=Lf,Gi.JumpOver=Up,Gi.End=ym,Gi.Scale=p0,Gi.Stretch=m0,Gi.OrientAlong=wm,Gi.OrientPlus90=xm,Gi.OrientMinus90=Sm,Gi.OrientOpposite=Dv,Gi.OrientUpright=v0,Gi.OrientPlus90Upright=Cm,Gi.OrientMinus90Upright=Bm,Gi.OrientUpright45=y0,Gi.EndSegmentStep=8,Gi.CurvinessStart=u1,Gi.SpacingMin=h1,Gi.OrthoShortCut=Pm;function w0(a,y,x,b){Xo(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}w0.prototype.Sl=function(){if(!this.qq){var a=this.links;0<a.length&&(a=a[0].diagram,a!==null&&(a.ow.add(this),this.Fe=a.undoManager.isUndoingRedoing))}this.qq=!0},w0.prototype.Nv=function(){if(this.qq){this.qq=!1;var a=this.links;if(0<a.length){var y=a[0],x=y.diagram;x=x===null||x.pi&&!this.Fe,this.Fe=!1,y.arrangeBundledLinks(a,x),a.length===1&&(y.Sf=null,a.length=0)}a.length===0&&(a=this.Ds,this!==null&&a.af!==null&&a.af.remove(this),a=this.cv,this!==null&&a.af!==null&&a.af.remove(this))}},w0.className="LinkBundle";function bm(a){Xo(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=a.width,this.sc=a.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}bm.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,b=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((b+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(x=[],b=0;b<=a;b++)x[b]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=jv,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(b=0;b<=this.ei;b++)x[b]=a}};function Rp(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function JA(a,y,x){return Rp(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):jv}function c1(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],b=0;b<=a.ei;b++)x[b]>=kg&&(x[b]=jv)}bm.prototype.Yj=function(a,y,x,b){if(a>this.En||a+x<this.Nd||y>this.Fn||y+b<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,x=Math.max(0,x)/this.rc+1|0;var E=Math.max(0,b)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(E+=y,y=0),0>x||0>E)return!0;for(b=Math.min(a+x-1,this.di)|0,x=Math.min(y+E-1,this.ei)|0;a<=b;a++){E=this.ac[a];for(var z=y;z<=x;z++)if(E[z]===Mf)return!1}return!0};function qA(a,y,x,b,E,z,nt,ot,at){if(!(y<z||y>nt||x<ot||x>at)){var ut=y|0,ct=x|0,yt=a.ac[ut][ct];if(yt>=kg&&yt<_p)for(E?ct+=b:ut+=b,yt+=1;z<=ut&&ut<=nt&&ot<=ct&&ct<=at&&!(yt>=a.ac[ut][ct]);)a.ac[ut][ct]=yt,yt+=1,E?ct+=b:ut+=b;if(ut=E?ct:ut,E)if(0<b)for(x+=b;x<ut;x+=b)qA(a,y,x,1,!E,z,nt,ot,at),qA(a,y,x,-1,!E,z,nt,ot,at);else for(x+=b;x>ut;x+=b)qA(a,y,x,1,!E,z,nt,ot,at),qA(a,y,x,-1,!E,z,nt,ot,at);else if(0<b)for(y+=b;y<ut;y+=b)qA(a,y,x,1,!E,z,nt,ot,at),qA(a,y,x,-1,!E,z,nt,ot,at);else for(y+=b;y>ut;y+=b)qA(a,y,x,1,!E,z,nt,ot,at),qA(a,y,x,-1,!E,z,nt,ot,at)}}function x0(a,y,x,b,E,z,nt,ot,at){y|=0,x|=0;var ut=Mf,ct=kg;for(a.ac[y][x]=ct;ut===Mf&&y>z&&y<nt&&x>ot&&x<at;)ct+=1,a.ac[y][x]=ct,E?x+=b:y+=b,ut=a.ac[y][x]}function S0(a,y,x,b,E,z,nt,ot,at){y|=0,x|=0;var ut=Mf,ct=_p;for(a.ac[y][x]=ct;ut===Mf&&y>z&&y<nt&&x>ot&&x<at;)a.ac[y][x]=ct,E?x+=b:y+=b,ut=a.ac[y][x]}function d1(a,y,x,b,E,z,nt){if(a.ac!==null){a.abort=!1;var ot=y.x,at=y.y;if(Rp(a,ot,at)){ot-=a.Nd,ot/=a.rc,at-=a.Od,at/=a.sc;var ut=b.x,ct=b.y;if(Rp(a,ut,ct))if(ut-=a.Nd,ut/=a.rc,ct-=a.Od,ct/=a.sc,1>=Math.abs(ot-ut)&&1>=Math.abs(at-ct))a.abort=!0;else{var yt=z.x;b=z.y,y=z.x+z.width;var kt=z.y+z.height;yt-=a.Nd,yt/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,kt-=a.Od,kt/=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)),kt=Math.min(a.ei,Math.max(0,kt|0)),b=a.ac,ot|=0,at|=0,ut|=0,ct|=0;var zt=x===0||x===90?1:-1;if(x=x===90||x===270,b[ot][at]===Mf?(x0(a,ot,at,zt,x,z,y,yt,kt),x0(a,ot,at,1,!x,z,y,yt,kt),x0(a,ot,at,-1,!x,z,y,yt,kt)):x0(a,ot,at,zt,x,ot,at,ot,at),b[ut][ct]===Mf?(S0(a,ut,ct,E===0||E===90?1:-1,E===90||E===270,z,y,yt,kt),S0(a,ut,ct,1,!(E===90||E===270),z,y,yt,kt),S0(a,ut,ct,-1,!(E===90||E===270),z,y,yt,kt)):S0(a,ut,ct,zt,x,ut,ct,ut,ct),x=or(),nt&&A1(a,ut,ct,E,ot,at,x))for((x[0]!==ut||x[1]!==ct)&&(x.unshift(ct),x.unshift(ut)),(x[x.length-2]!==ot||x[x.length-1]!==at)&&(x.push(ot),x.push(at)),a=kg,E=x[x.length-2],nt=x[x.length-1],b[E][nt]=a++,z=x.length-4;0<=z;z-=2)for(E=x[z+2],nt=x[z+3],y=x[z],ut=x[z+1];y>E?E++:y<E?E--:ut>nt?nt++:ut<nt&&nt--,b[E][nt]=a++,E!==y||nt!==ut;);else qA(a,ot,at,1,!1,z,y,yt,kt),qA(a,ot,at,-1,!1,z,y,yt,kt),qA(a,ot,at,1,!0,z,y,yt,kt),qA(a,ot,at,-1,!0,z,y,yt,kt);Lr(x)}}}}function A1(a,y,x,b,E,z,nt){for(var ot=a.ac,at=y,ut=x;;){if(at===E&&ut===z)return!0;var ct=at,yt=ut;if(b===0)if(ct<E)ct++;else break;else if(b===90)if(yt<z)yt++;else break;else if(b===180)if(ct>E)ct--;else break;else if(yt>z)yt--;else break;var kt=ot[ct][yt];if(kt===0||kt===Uv)break;at=ct,ut=yt}for(;;){if(ct=b,yt=at,kt=ut,b===0?kt<z?(ct=90,kt++):kt>z&&(ct=270,kt--):b===90?yt<E?(ct=0,yt++):yt>E&&(ct=180,yt--):b===180?kt<z?(ct=90,kt++):kt>z&&(ct=270,kt--):yt<E?(ct=0,yt++):yt>E&&(ct=180,yt--),yt=ot[yt][kt],ct!==b&&yt!==0&&yt!==Uv){if(nt.push(at),nt.push(ut),A1(a,at,ut,ct,E,z,nt))return!0;nt.pop(),nt.pop()}if(ot[at][ut]=Uv,b===0){if(at===y)return!1;at--}else if(b===90){if(ut===x)return!1;ut--}else if(b===180){if(at===y)return!1;at++}else{if(ut===x)return!1;ut++}}}Oe.Object.defineProperties(bm.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 Mf=0,kg=1,_p=999999,jv=_p+1,Uv=_p+2;bm.className="PositionArray";function ap(){Xo(this),this.port=this.node=null,this.pe=[],this.ap=!1}ap.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var b=a[x];b!==null&&(y+=`
|
|
|
`+b.toString())}return y};function Dw(a,y,x,b){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<x?270:90;case 6:return 90<x&&270>=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90<x&&x<=180+a?180:x>180+a&&x<=360-a?270:0;case 13:return 180<x&&x<=360-a?270:x>a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return b&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}ap.prototype.Sl=function(){this.pe.length=0};function f1(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var b=null,E=a.node,z=E instanceof ko?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(rl,Ne.alloc()),at=a.port.ga($l,Ne.alloc());for(E=ai.allocAt(ot.x,ot.y,0,0),E.Ye(at),Ne.free(ot),Ne.free(at),ot=Ne.allocAt(E.x+E.width/2,E.y+E.height/2),at=a.port.li(),nt=nt.iterator;nt.next();){var ut=nt.value;if(ut.isVisible()&&ut.fromPort!==ut.toPort){var ct=ut.fromPort===a.port||ut.fromNode!==null&&ut.fromNode.Td(b),yt=ut.computeSpot(ct,a.port);if(yt.$c()&&(ct=ct?ut.toPort:ut.fromPort,ct!==null)){var kt=ct.part;if(kt!==null){var zt=kt.findVisibleNode();zt!==null&&zt!==kt&&(kt=zt,ct=kt.port),ct=ut.computeOtherPoint(kt,ct),kt=ot.ab(ct),kt-=at,0>kt?kt+=360:360<=kt&&(kt-=360),yt=Dw(E,yt,kt,ut.isOrthogonal),yt===0?(yt=4,180<kt&&(kt-=360)):yt===90?(yt=8,270<kt&&(kt-=360)):yt===180?yt=2:(yt=1,90>kt&&(kt+=360)),zt=a.pe[z],zt===void 0?(zt=new Rv(ut,kt,yt),a.pe[z]=zt):(zt.link=ut,zt.angle=kt,zt.Nc=yt),zt.hv.set(ct),z++}}}}for(Ne.free(ot),a.pe.sort(ap.prototype.j),at=a.pe.length,b=-1,z=ot=0;z<at;z++)nt=a.pe[z],nt!==void 0&&(nt.Nc!==b&&(b=nt.Nc,ot=0),nt.Uo=ot,ot++);for(b=-1,ot=0,z=at-1;0<=z;z--)at=a.pe[z],at!==void 0&&(at.Nc!==b&&(b=at.Nc,ot=at.Uo+1),at.Gl=ot);if(z=a.pe,yt=a.port,b=a.node.portSpreading,ot=Ne.alloc(),at=Ne.alloc(),nt=Ne.alloc(),ut=Ne.alloc(),yt.ga(rl,ot),yt.ga(ou,at),yt.ga($l,nt),yt.ga(Ja,ut),zt=kt=ct=yt=0,b===Fv)for(var Zt=0;Zt<z.length;Zt++){var he=z[Zt];if(he!==null){var He=he.link.computeThickness();switch(he.Nc){case 8:kt+=He;break;case 2:zt+=He;break;case 1:yt+=He;break;default:case 4:ct+=He}}}var Fe=Zt=0,Ve=1,tn=he=0;for(He=0;He<z.length;He++){var on=z[He];if(on!==null){if(Zt!==on.Nc){switch(Zt=on.Nc,Zt){case 8:var Sn=nt;Fe=ut;break;case 2:Sn=ut,Fe=ot;break;case 1:Sn=ot,Fe=at;break;default:case 4:Sn=at,Fe=nt}switch(he=Fe.x-Sn.x,tn=Fe.y-Sn.y,Zt){case 8:kt>Math.abs(he)?(Ve=Math.abs(he)/kt,kt=Math.abs(he)):Ve=1;break;case 2:zt>Math.abs(tn)?(Ve=Math.abs(tn)/zt,zt=Math.abs(tn)):Ve=1;break;case 1:yt>Math.abs(he)?(Ve=Math.abs(he)/yt,yt=Math.abs(he)):Ve=1;break;default:case 4:ct>Math.abs(tn)?(Ve=Math.abs(tn)/ct,ct=Math.abs(tn)):Ve=1}Fe=0}var Gn=on.Zo;if(b===Fv){switch(on=on.link.computeThickness(),on*=Ve,Gn.set(Sn),Zt){case 8:Gn.x=Sn.x+he/2+kt/2-Fe-on/2;break;case 2:Gn.y=Sn.y+tn/2+zt/2-Fe-on/2;break;case 1:Gn.x=Sn.x+he/2-yt/2+Fe+on/2;break;default:case 4:Gn.y=Sn.y+tn/2-ct/2+Fe+on/2}Fe+=on}else{var nr=.5;b===h0&&(nr=(on.Uo+1)/(on.Gl+1)),Gn.x=Sn.x+he*nr,Gn.y=Sn.y+tn*nr}}}for(Ne.free(ot),Ne.free(at),Ne.free(nt),Ne.free(ut),Sn=a.pe,z=0;z<Sn.length;z++)b=Sn[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}ap.prototype.j=function(a,y){return a===y?0:a===null?-1:y===null?1:a.Nc<y.Nc?-1:a.Nc>y.Nc?1:a.angle<y.angle?-1:a.angle>y.angle?1:0},ap.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Za,y.fromPort===this.port),b=a.Uo;if(0>b)return x;var E=a.Gl;if(1>=E||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=E-1-b),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*b:(a?y.y===z.y:y.x===z.x)?x:x+8*(E-1-b)},ap.className="Knot";function Rv(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Ne,this.Gl=this.Uo=0,this.Zo=new Ne,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 Wa(a){Xo(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Ne(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Wa.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},Wa.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Wa.prototype.qb=function(){},Wa.prototype.toString=function(){var a=er(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Wa.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())}}},Wa.prototype.createNetwork=function(){return new xa(this)},Wa.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof _n?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof ko?y.lg(a.memberParts):y.lg(a.iterator),y},Wa.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")}},Wa.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()}},Wa.prototype.doLayout=function(a){var y=new Ci;a instanceof _n?(ig(this,y,a.nodes,!0,this.rh,!0,!1,!0),ig(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof ko?ig(this,y,a.memberParts,!1,this.rh,!0,!1,!0):y.addAll(a.iterator),0<y.count&&(a=this.diagram,a!==null&&a.Ea("Layout"),this.doMinimalNoNetworkLayout(y),a!==null&&a.eb("Layout")),this.isValidLayout=!0},Wa.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,b=x,E=this.arrangementOrigin.y,z=0,nt=0;for(a=a.iterator;a.next();){var ot=a.value;Em(ot);var at=ot.measuredBounds,ut=at.width;at=at.height,ot.moveTo(b,E),ot instanceof ko&&(ot.rh=!1),b+=Math.max(ut,50)+20,nt=Math.max(nt,Math.max(at,50)),z>=y-1?(z=0,b=x,E+=nt+20,nt=0):z++}},Wa.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 Gi)&&(Em(ot),this.rh(ot))){var at=ot.measuredBounds,ut=at.width;at=at.height,ot.moveTo(x,b),ot instanceof ko&&(ot.rh=!1),x+=Math.max(ut,50)+20,z=Math.max(z,Math.max(at,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},Wa.prototype.rh=function(a){return!!(!a.location.w()||a instanceof ko&&a.rh)};function ig(a,y,x,b,E,z,nt,ot){for(x=x.iterator;x.next();){var at=x.value;b&&!at.isTopLevel||E!==null&&!E(at)||!at.canLayout()||(z&&at instanceof cr?at.isLinkLabel||(at instanceof ko&&at.layout===null?ig(a,y,at.memberParts,!1,E,z,nt,ot):(Em(at),y.add(at))):nt&&at instanceof Gi?y.add(at):!ot||!at.Zc()||at instanceof cr||(Em(at),y.add(at)))}}function Em(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Wa.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},Wa.prototype.ex=function(a){var y=new Ci;return a instanceof _n?(ig(this,y,a.nodes,!0,null,!0,!0,!0),ig(this,y,a.links,!0,null,!0,!0,!0),ig(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof ko?ig(this,y,a.memberParts,!1,null,!0,!0,!0):ig(this,y,a.iterator,!1,null,!0,!0,!0),y},Wa.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(rl),(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(Wa.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())}}}),Wa.prototype.collectParts=Wa.prototype.ex,Wa.prototype.getLayoutBounds=Wa.prototype.ni,Wa.prototype.invalidateLayout=Wa.prototype.C,Wa.className="Layout";function xa(a){Xo(this),this.Sc=a,this.wf=new Ci,this.ye=new Ci,this.Es=new wr,this.zs=new wr}xa.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 Ci,this.ye=new Ci,this.Es=new wr,this.zs=new wr},xa.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},xa.prototype.createVertex=function(){return new xu(this)},xa.prototype.createEdge=function(){return new Mc(this)},xa.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(nt){if(nt instanceof cr)return!nt.isLinkLabel;if(nt instanceof Gi){var ot=nt.fromNode;return ot===null||ot.isLinkLabel?!1:(nt=nt.toNode,!(nt===null||nt.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof cr&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof ko&&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 Gi&&(!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))}}},xa.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},Xt=xa.prototype,Xt.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Xt.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},Xt.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}Xt.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Xt.ki=function(a){return a===null?null:this.Es.I(a)},Xt.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}}Xt.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},Xt.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))}Xt.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Xt.Lo=function(a){return a===null?null:this.zs.I(a)},Xt.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},Xt.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))}},Xt.Ko=function(){for(var a=or(),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]);Lr(a)},xa.prototype.deleteArtificialVertexes=function(){for(var a=or(),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=or(),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]);Lr(a),Lr(y)};function jw(a){for(var y=or(),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]);Lr(y)}xa.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),jw(this),this.Ko()),a=new Pi;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))}}xa.prototype.dz=function(){for(var a=new Ci,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(xa.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}}}),xa.prototype.findAllParts=xa.prototype.dz,xa.prototype.splitIntoSubNetworks=xa.prototype.Zx,xa.prototype.deleteSelfEdges=xa.prototype.Ko,xa.prototype.reverseEdge=xa.prototype.gm,xa.prototype.linkVertexes=xa.prototype.Zj,xa.prototype.findEdge=xa.prototype.Lo,xa.prototype.deleteLink=xa.prototype.Yy,xa.prototype.deleteEdge=xa.prototype.Mj,xa.prototype.addLink=xa.prototype.Dy,xa.prototype.addEdge=xa.prototype.Bo,xa.prototype.findVertex=xa.prototype.ki,xa.prototype.deleteNode=xa.prototype.Zy,xa.prototype.deleteVertex=xa.prototype.Iu,xa.prototype.addNode=xa.prototype.Bl,xa.prototype.addVertex=xa.prototype.dh,xa.prototype.addParts=xa.prototype.lg,xa.className="LayoutNetwork";function xu(a){Xo(this),this.ob=a,this.j=new ai(0,0,10,10).freeze(),this.o=new Ne(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Pi,this.mg=new Pi}xu.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Pi,this.mg=new Pi},xu.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+xs(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,b=this.tg.iterator;b.next();){var E=b.value;x?x=!1:a+=",",a+=E.toString(0)}for(E="",x=!0,b=this.mg.iterator;b.next();){var z=b.value;x?x=!1:E+=",",E+=z.toString(0)}y+=" sources: "+a+" destinations: "+E}return y},xu.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;On(x)?(x.x=y.x,x.y=y.y,x.width=y.width,x.height=y.height):a.bounds=y.copy()}else if(a=this.node,a!==null){if(y=this.bounds,!(a instanceof ko)){x=ai.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(bo);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 ko)&&(a=a.locationObject.ga(bo),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 Ci,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Ci,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Ci,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 Pi,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),xu.prototype.deleteDestinationEdge=xu.prototype.Jl,xu.prototype.addDestinationEdge=xu.prototype.zl,xu.prototype.deleteSourceEdge=xu.prototype.Kl,xu.prototype.addSourceEdge=xu.prototype.Cl,xu.className="LayoutVertex",xu.standardComparer=zv,xu.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x<y.length;x++)if(a[x]!==""&&a[x]!==void 0){var b=parseFloat(y[x]),E=parseFloat(a[x]);if(isNaN(b))if(isNaN(E)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(y[x]!=="")return 1;return a[x]!==""&&a[x]!==void 0?-1:0}return 1}return x!==null?-1:0}return 1}return y!==null?-1:0};function Mc(a){Xo(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Mc.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Mc.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+xs(this);return 0<a&&(y+=this.$k!==null?"("+this.$k.toString()+")":"",1<a&&(y+=" "+(this.kd?this.kd.toString():"null")+" --> "+(this.qd?this.qd.toString():"null"))),y},Mc.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Mc.prototype.commit=function(){},Mc.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},Oe.Object.defineProperties(Mc.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),Mc.prototype.getOtherVertex=Mc.prototype.Ax,Mc.className="LayoutEdge";function nh(a){Wa.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Vi(NaN,NaN).freeze(),this.tf=new Vi(10,10).freeze(),this.Jb=Fm,this.Rb=B0,this.nd=Lm,this.hd=p1,a&&Object.assign(this,a)}Tn(nh,Wa),nh.prototype.cloneProtected=function(a){Wa.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},nh.prototype.qb=function(a){a.classType===nh?a===Lm||a===b0||a===Kv||a===P0?this.sorting=a:a===B0||a===AA?this.arrangement=a:a===Fm||a===C0?this.alignment=a:qe("Unknown enum value: "+a):Wa.prototype.qb.call(this,a)},nh.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 ko)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var E=y.Fa();if(E.length!==0){switch(this.sorting){case P0:E.reverse();break;case Lm:E.sort(this.comparer);break;case b0:E.sort(this.comparer),E.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var nt=this.wrappingWidth;switch(isNaN(nt)&&a!==null?(y=a.padding,nt=Math.max(a.viewportBounds.width-y.left-y.right,0)):nt=Math.max(this.wrappingWidth,0),0>=z&&0>=nt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),b=[],this.alignment){case C0:var ot=y,at=x,ut=ai.alloc(),ct=Math.max(this.cellSize.width,1);if(!isFinite(ct))for(var yt=ct=0;yt<E.length;yt++){var kt=this.ni(E[yt],ut);ct=Math.max(ct,kt.width)}if(ct=Math.max(ct+ot,1),yt=Math.max(this.cellSize.height,1),!isFinite(yt))for(kt=yt=0;kt<E.length;kt++){var zt=this.ni(E[kt],ut);yt=Math.max(yt,zt.height)}yt=Math.max(yt+at,1),kt=this.arrangement;for(var Zt=zt=this.arrangementOrigin.x,he=this.arrangementOrigin.y,He=0,Fe=0,Ve=0;Ve<E.length;Ve++){var tn=E[Ve],on=this.ni(tn,ut),Sn=Math.ceil((on.width+ot)/ct)*ct,Gn=Math.ceil((on.height+at)/yt)*yt;switch(kt){case AA:var nr=Math.abs(Zt-on.width);break;default:nr=Zt+on.width}switch((0<z&&He>z-1||0<nt&&0<He&&nr-zt>nt)&&(b.push(new ai(0,he,nt+ot,Fe)),He=0,Zt=zt,he+=Fe,Fe=0),Fe=Math.max(Fe,Gn),kt){case AA:on=-on.width;break;default:on=0}switch(tn.moveTo(Zt+on,he),kt){case AA:Zt-=Sn;break;default:Zt+=Sn}He++}b.push(new ai(0,he,nt+ot,Fe)),ai.free(ut);break;case Fm:for(at=nt,ct=z,yt=y,kt=x,nt=ai.alloc(),zt=Math.max(this.cellSize.width,1),z=he=ut=0,ot=Ne.alloc(),Zt=0;Zt<E.length;Zt++)Fe=E[Zt],He=this.ni(Fe,nt),Fe=bf(Fe,Fe.locationObject,Fe.locationSpot,ot),ut=Math.max(ut,Fe.x),he=Math.max(he,He.width-Fe.x),z=Math.max(z,Fe.y);switch(Zt=this.arrangement,Zt){case AA:ut+=yt;break;default:he+=yt}zt=isFinite(zt)?Math.max(zt+yt,1):Math.max(ut+he,1);var Fr=Fe=this.arrangementOrigin.x;for(Ve=this.arrangementOrigin.y,he=0,at>=ut&&(at-=ut),ut=tn=0,Sn=Math.max(this.cellSize.height,1),on=z=0,Gn=!0,He=Ne.alloc(),nr=0;nr<E.length;nr++){var vr=E[nr],Ki=this.ni(vr,nt),Mi=bf(vr,vr.locationObject,vr.locationSpot,ot);if(0<he)switch(Zt){case AA:Fr=(Fr-Fe-(Ki.width-Mi.x))/zt,Fr=En.$(Math.round(Fr),Fr)?Math.round(Fr):Math.floor(Fr),Fr=Fr*zt+Fe;break;default:Fr=(Fr-Fe+Mi.x)/zt,Fr=En.$(Math.round(Fr),Fr)?Math.round(Fr):Math.ceil(Fr),Fr=Fr*zt+Fe}else switch(Zt){case AA:tn=Fr+Mi.x+Ki.width;break;default:tn=Fr-Mi.x}switch(Zt){case AA:var Eo=-(Fr+Mi.x)+tn;break;default:Eo=Fr+Ki.width-Mi.x-tn}if(0<ct&&he>ct-1||0<at&&0<he&&Eo>at){for(b.push(new ai(0,Gn?Ve-z:Ve,at+yt,on+z+kt)),Fr=0;Fr<he&&nr!==he;Fr++){Eo=E[nr-he+Fr];var po=bf(Eo,Eo.locationObject,Eo.locationSpot,He);Eo.moveTo(Eo.position.x,Eo.position.y+z-po.y)}on+=kt,Ve=Gn?Ve+on:Ve+(on+z),he=on=z=0,Fr=Fe,Gn=!1}switch(Fr===Fe&&(ut=Zt===AA?Math.max(ut,Ki.width-Mi.x):Math.min(ut,-Mi.x)),z=Math.max(z,Mi.y),on=Math.max(on,Ki.height-Mi.y),isFinite(Sn)&&(on=Math.max(on,Math.max(Ki.height,Sn)-Mi.y)),Gn?vr.moveTo(Fr-Mi.x,Ve-Mi.y):vr.moveTo(Fr-Mi.x,Ve),Zt){case AA:Fr-=Mi.x+yt;break;default:Fr+=Ki.width-Mi.x+yt}he++}if(b.push(new ai(0,Ve,at+yt,(Gn?on:on+z)+kt)),E.length!==he)for(at=0;at<he;at++)ct=E[E.length-he+at],yt=bf(ct,ct.locationObject,ct.locationSpot,ot),ct.moveTo(ct.position.x,ct.position.y+z-yt.y);if(Ne.free(ot),Ne.free(He),Zt===AA)for(E=0;E<b.length;E++)z=b[E],z.width+=ut,z.x-=ut;else for(E=0;E<b.length;E++)z=b[E],z.x>ut&&(z.width+=z.x-ut,z.x=ut);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===AA?this.commitLayers(b,new Ne(E+y/2-(z+E),nt-x/2)):this.commitLayers(b,new Ne(E-y/2,nt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},nh.prototype.commitLayers=function(){};function p1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}Oe.Object.defineProperties(nh.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0<a||isNaN(a))&&(this.zo=a,this.isViewportSized=isNaN(a),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(a){this.yo!==a&&(0<a||isNaN(a))&&(this.yo=a,this.C())}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||(this.yg.assign(a),this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf.D(a)||(this.tf.assign(a),this.C())}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb===a||a!==Fm&&a!==C0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==B0&&a!==AA||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==Kv&&a!==P0&&a!==Lm&&a!==b0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var C0=new vi(nh,"Position",0),Fm=new vi(nh,"Location",1),B0=new vi(nh,"LeftToRight",2),AA=new vi(nh,"RightToLeft",3),Kv=new vi(nh,"Forward",4),P0=new vi(nh,"Reverse",5),Lm=new vi(nh,"Ascending",6),b0=new vi(nh,"Descending",7);nh.className="GridLayout",nh.standardComparer=p1,nh.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},nh.Position=C0,nh.Location=Fm,nh.LeftToRight=B0,nh.RightToLeft=AA,nh.Forward=Kv,nh.Reverse=P0,nh.Ascending=Lm,nh.Descending=b0;function Vs(){this.On=new Ci,this.Dn=new Ci,this.Pa=new Ci,this.cf=new wr,this.bf=new wr,this.aj=new wr,this.H=null,this.tp=!1}Xt=Vs.prototype,Xt.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Xt.Xe=function(a){this.H=a},Xt.oi=function(a){if(a instanceof cr){if(this.On.add(a),a instanceof ko){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 Gi?this.Dn.add(a):a instanceof Ms||this.Pa.add(a);y=a.data,y===null||a instanceof Ms||(a instanceof Gi?this.bf.add(y,a):this.cf.add(y,a))},Xt.pc=function(a){if(a.Ej(),a instanceof cr){if(this.On.remove(a),a instanceof ko){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 Gi?this.Dn.remove(a):a instanceof Ms||this.Pa.remove(a);y=a.data,y===null||a instanceof Ms||(a instanceof Gi?this.bf.remove(y):this.cf.remove(y))},Xt.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 ko)&&qe('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 ko||qe('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 Gi||qe('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=or(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=or(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=or(),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]);Lr(y),Lr(x),Lr(a)}},Vs.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Vs.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(E){b.lb(E)&&m1(x,E,!1)}),a.forEach(function(E){b.lb(E)&&x.resolveReferencesForData(E)}),y!==!1&&EA(this.diagram,!1)};function m1(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);t:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var b=a.Ro(y),E=v1(a,y,b);if(E!==null&&(ru(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)}}Vs.prototype.insertLink=function(){return null},Vs.prototype.resolveReferencesForData=function(){},Vs.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,tr('No Group template found for category "'+x+'"'),tr(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(w1||(w1=!0,tr('No Node template found for category "'+x+'"'),tr(" Using default node template")),y=a.ny))),y}Vs.prototype.getLinkCategoryForData=function(){return""},Vs.prototype.setLinkCategoryForData=function(){},Vs.prototype.setFromNodeForLink=function(){},Vs.prototype.setToNodeForLink=function(){},Vs.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,tr('No Link template found for category "'+a+'"'),tr(" Using default link template")),x=y.my)),x},Vs.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Vs.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},Vs.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Pd(this.diagram,a,!1),this.unresolveReferencesForPart(a))},Vs.prototype.unresolveReferencesForPart=function(){},Vs.prototype.removeDataForLink=function(){},Vs.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},Vs.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof cr?a:null)},Vs.prototype.findLinkForKey=function(){return null},Xt=Vs.prototype,Xt.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Xt.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof cr?a:null)},Xt.Kc=function(a){return a===null?null:this.bf.I(a)},Xt.ms=function(a){for(var y=0;y<arguments.length;++y);y=new Ci;for(var x=this.On.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var nt=arguments[z];if(On(nt)&&Gv(this,E,nt)){y.add(b);break}}}return y.iterator},Xt.ls=function(a){for(var y=0;y<arguments.length;++y);y=new Ci;for(var x=this.Dn.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var nt=arguments[z];if(On(nt)&&Gv(this,E,nt)){y.add(b);break}}}return y.iterator};function Gv(a,y,x){for(var b in x){var E=y[b],z=x[b];if(ui(z)){if(!ui(E)||E.length<z.length)return!1;for(var nt=0;nt<E.length;nt++){var ot=z[nt];if(ot!==void 0&&!y1(a,E[nt],ot))return!1}}else if(!y1(a,E,z))return!1}return!0}function y1(a,y,x){if(typeof x=="function"){if(!x(y))return!1}else if(x instanceof RegExp){if(!y||!x.test(y.toString()))return!1}else if(On(y)&&On(x)){if(!Gv(a,y,x))return!1}else if(y!==x)return!1;return!0}Vs.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===Fa){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===gl){var nt=a.newValue;b==="nodeDataArray"&&On(nt)&&m1(this,nt),y.isModified=!0}else if(x===Hl){var ot=a.oldValue;b==="nodeDataArray"&&On(ot)&&this.ip(ot),y.isModified=!0}else x===oh&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===Fa){var at=a.propertyName,ut=a.object;ut===y.model?(at==="nodeKeyProperty"||at==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(ut,at),y.isModified=!0}else if(x===gl||x===Hl){var ct=a.change===gl,yt=ct?a.newParam:a.oldParam,kt=ct?a.newValue:a.oldValue,zt=this.aj.I(a.object);if(Array.isArray(zt))for(a=0;a<zt.length;a++){var Zt=zt[a];if(ct)DA(Zt,kt,yt,!0);else if(!(0>yt)){var he=yt+OA(Zt);Zt.pc(he,!0),fh(Zt,he,yt)}}y.isModified=!0}}finally{y.aa=!0}}}}},Vs.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)},Vs.prototype.rp=function(){for(var a=this.H.model,y=new Ci,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()},Vs.prototype.refreshDataBoundLinks=function(){},Vs.prototype.updateRelationshipsFromData=function(){},Vs.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=or()),x.push(nt))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);Lr(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function Wv(a,y){var x=y.Hh;if(ui(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){Al(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(ui(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}}}}Vs.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new wr;if(ui(a))for(var E=0;E<a.length;E++)E0(this,a[E],y,b,x);else for(a=a.iterator;a.next();)E0(this,a.value,y,b,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,E=new Ci;for(var z=new wr,nt=b.iterator;nt.next();){var ot=nt.value;if(ot instanceof Gi)a||ot.fromNode!==null&&ot.toNode!==null||E.add(ot);else if(ot instanceof cr&&ot.data!==null&&x.Tl()){var at=ot;ot=nt.key;var ut=ot.pg();ut!==null&&(ut=b.I(ut),ut!==null?(x.qe(at.data,x.wa(ut.data)),at=y.Kc(at.data),ot=ot.kh(),ot!==null&&at!==null&&z.add(ot,at)):x.qe(at.data,void 0))}}if(0<E.count&&y.Is(E,!1),0<z.count)for(x=z.iterator;x.next();)b.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var ct=new wr;b.each(function(yt){yt.key.data!==null&&ct.add(yt.key.data,yt.value.data)}),x(ct,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function E0(a,y,x,b,E){if(y===null||E&&!y.canCopy())return null;if(b.contains(y))return b.I(y);var z=a.copyPartData(y,x);if(!(z instanceof Xr))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof cr){for(var nt=y.linksConnected;nt.next();){var ot=nt.value;if(ot.fromNode===y){var at=b.I(ot);at!==null&&(at.fromNode=z)}ot.toNode===y&&(ot=b.I(ot),ot!==null&&(ot.toNode=z))}if(y instanceof ko&&z instanceof ko)for(y=y.memberParts;y.next();)nt=E0(a,y.value,x,b,E),nt instanceof Gi||nt===null||(nt.containingGroup=z)}else if(y instanceof Gi&&z instanceof Gi)for(nt=y.fromNode,nt!==null&&(nt=b.I(nt),nt!==null&&(z.fromNode=nt)),nt=y.toNode,nt!==null&&(nt=b.I(nt),nt!==null&&(z.toNode=nt)),y=y.labelNodes;y.next();)nt=E0(a,y.value,x,b,E),nt!==null&&nt instanceof cr&&(nt.labeledLink=z);return z}Vs.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof Gi||(b=E.copyNodeData(b),On(b)&&(E.xf(b),x=y.Lc(b)))}else ru(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 Gi||(E=y.copyNodeData(b)),On(E)&&(x.data=E)));return x},Oe.Object.defineProperties(Vs.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}}}),Vs.prototype.updateAllRelationshipsFromData=Vs.prototype.rp,Vs.prototype.findLinksByExample=Vs.prototype.ls,Vs.prototype.findNodesByExample=Vs.prototype.ms,Vs.prototype.findLinkForData=Vs.prototype.Kc,Vs.prototype.findNodeForData=Vs.prototype.ii,Vs.prototype.findPartForData=Vs.prototype.Lc,Vs.prototype.findNodeForKey=Vs.prototype.Vb,Vs.prototype.removeModeledPart=Vs.prototype.ip,Vs.prototype.removeModeledParts=Vs.prototype.Gs,Vs.prototype.rebuildParts=Vs.prototype.Wd;var w1=!1,x1=!1,S1=!1;Vs.className="PartManager";function Hu(a){Vs.apply(this,arguments)}Tn(Hu,Vs),Hu.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),C1(this,a.linkDataArray)},Hu.prototype.addModeledParts=function(a){for(Vs.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Dp(a.value);EA(this.diagram,!1)};function C1(a,y){y.forEach(function(x){B1(a,x)}),EA(a.diagram,!1)}function B1(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),b=a.findLinkTemplateForCategory(x);if(b!==null){ru(b);var E=b.copy();if(E!==null){b=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,E.Tf=x,E.ub=y,x=a.diagram.model;var z=N0(x,y,!0);z!==""&&(E.fromPortId=z),z=Jc(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof cr&&(E.fromNode=z)),z=N0(x,y,!1),z!==""&&(E.toPortId=z),z=Jc(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof cr&&(E.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(nt){nt=a.Vb(nt),nt!==null&&(nt.labeledLink=E)}),a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=b}}}}Hu.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)})}Hu.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},Hu.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},Hu.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},Hu.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},Hu.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},Hu.prototype.findPartForKey=function(a){var y=Vs.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},Hu.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},Hu.prototype.doModelChanged=function(a){var y=this;if(Vs.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===Fa){if(E==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var nt=this.Vb(a.newValue);z.fromNode=nt}}else if(E==="linkToKey"){var ot=this.Kc(a.object);if(ot!==null){var at=this.Vb(a.newValue);ot.toNode=at}}else if(E==="linkFromPortId"){var ut=this.Kc(a.object);if(ut!==null){var ct=a.newValue;typeof ct=="string"&&(ut.fromPortId=ct)}}else if(E==="linkToPortId"){var yt=this.Kc(a.object);if(yt!==null){var kt=a.newValue;typeof kt=="string"&&(yt.toPortId=kt)}}else if(E==="nodeGroupKey"){var zt=this.Lc(a.object);if(zt!==null){var Zt=a.newValue;if(Zt!==void 0){var he=this.Vb(Zt);he instanceof ko?zt.containingGroup=he:zt.containingGroup=null}else zt.containingGroup=null}}else if(E==="linkLabelKeys"){var He=this.Kc(a.object);if(He!==null){var Fe=a.oldValue,Ve=a.newValue;Array.isArray(Fe)&&Fe.forEach(function(Mi){0<=Ve.indexOf(Mi)||(Mi=y.Vb(Mi),Mi!==null&&(Mi.labeledLink=null))}),Array.isArray(Ve)&&Ve.forEach(function(Mi){Mi=y.Vb(Mi),Mi!==null&&(Mi.labeledLink=He)})}}else if(E==="linkCategory"){var tn=this.Kc(a.object),on=a.newValue;tn!==null&&typeof on=="string"&&(tn.category=on)}else E==="linkDataArray"&&(P1(this,a.oldValue),C1(this,a.newValue));x.isModified=!0}else if(b===gl){var Sn=a.newValue;if(E==="linkDataArray"&&typeof Sn=="object"&&Sn!==null)B1(this,Sn);else if(E==="linkLabelKeys"&&og(Sn)){var Gn=this.Kc(a.object),nr=this.Vb(Sn);Gn!==null&&nr!==null&&(nr.labeledLink=Gn)}x.isModified=!0}else if(b===Hl){var Fr=a.oldValue;if(E==="linkDataArray"&&typeof Fr=="object"&&Fr!==null)this.ip(Fr);else if(E==="linkLabelKeys"&&og(Fr)){var vr=this.Vb(Fr);vr!==null&&(vr.labeledLink=null)}x.isModified=!0}}else if(b===Fa){var Ki=a.propertyName;a.object!==x.model||Ki!=="linkFromKeyProperty"&&Ki!=="linkToKeyProperty"&&Ki!=="linkFromPortIdProperty"&&Ki!=="linkToPortIdProperty"&&Ki!=="linkLabelKeysProperty"&&Ki!=="nodeIsGroupProperty"&&Ki!=="nodeGroupKeyProperty"&&Ki!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},Hu.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new Ci,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)})},Hu.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 Gi){var E=Jc(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=Jc(b,y,!1),E=x.Vb(E),a.toNode=E,y=b.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){E=y[0];var z=a.labelNodes.first();if(b.wa(z.data)===E)return}E=new Ci().addAll(y);var nt=new Ci;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 Ms)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof ko)&&(a.containingGroup=y)}}},Hu.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=Mm(y,x),E=this.Lc(a);if(b!==null&&E!==null){b=b.iterator;for(var z={};b.next();){var nt=b.value;y.lb(nt)?E instanceof ko&&y.lh(nt)===x&&(nt=this.Lc(nt),nt!==null&&(nt.containingGroup=E)):(z.link=this.Kc(nt),z.link!==null&&E instanceof cr&&(Jc(y,nt,!0)===x&&(z.link.fromNode=E),Jc(y,nt,!1)===x&&(z.link.toNode=E),nt=y.Ef(nt),Array.isArray(nt)&&nt.some(function(ot){return function(at){return at===x?(E.labeledLink=ot.link,!0):!1}}(z)))),z={link:z.link}}gA(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof ko&&(E.containingGroup=a))}},Hu.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof cr){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)fA(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&fA(y,x,b.data)),a instanceof ko)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&fA(y,x,b)}}},Hu.prototype.copyPartData=function(a,y){var x=Vs.prototype.copyPartData.call(this,a,y);if(a instanceof Gi)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},Hu.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 Gi){if(ru(b),z=b.copy(),z!==null)return z.fromNode=a,z.fromPortId=ot,z.toNode=x,z.toPortId=y,E.add(z),a=nt.archetypeLabelNodeData,a instanceof cr&&(ru(a),a=a.copy(),a!==null&&(a.labeledLink=z,E.add(a))),z}else if(b!==null&&(b=z.Jo(b),typeof b=="object"&&b!==null))return a!==null&&Qp(z,b,z.wa(a.data),!0),zp(z,b,ot,!0),x!==null&&Qp(z,b,z.wa(x.data),!1),zp(z,b,y,!1),z.fi(b),a=nt.archetypeLabelNodeData,a===null||a instanceof cr||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(b,a))),E.Kc(b);return null},Hu.prototype.findLinkForKey=Hu.prototype.findLinkForKey,Hu.prototype.findPartForKey=Hu.prototype.findPartForKey,Hu.prototype.removeAllModeledParts=Hu.prototype.removeAllModeledParts,Hu.prototype.addModeledParts=Hu.prototype.addModeledParts,Hu.prototype.addAllModeledParts=Hu.prototype.addAllModeledParts,Hu.className="GraphLinksPartManager";function gd(){Vs.apply(this,arguments),this.Sg=null}Tn(gd,Vs);function F0(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var b=a.diagram.toolManager.findTool("Linking"),E=y,z=x;if(a.diagram.isTreePathToChildren||(E=x,z=y),(b===null||!jn(b,E,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(ru(b),b=b.copy(),b!==null))){var nt=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=y,b.ub=x.data,b.fromNode=E,b.toNode=z,a.diagram.add(b),b.ub=null,b.data=x.data,a.diagram.skipsModelSourceBindings=nt}}}gd.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},gd.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},gd.prototype.setFromNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)b.qe(a.data,b.wa(y));else{var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=E}},gd.prototype.setToNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=E}else b.qe(a.data,b.wa(y))},gd.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},gd.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},gd.prototype.doModelChanged=function(a){if(Vs.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===Fa){if(b==="nodeParentKey"){var E=a.object,z=this.Vb(a.newValue),nt=this.ii(E);if(this.Sg!==null)z!==null&&(this.Sg.data=E,this.Sg.category=this.getLinkCategoryForData(E));else if(nt!==null){var ot=nt.kh();ot!==null?z===null?y.remove(ot):y.isTreePathToChildren?ot.fromNode=z:ot.toNode=z:F0(this,z,nt)}}else if(b==="parentLinkCategory"){var at=this.ii(a.object),ut=a.newValue;if(at!==null&&typeof ut=="string"){var ct=at.kh();ct!==null&&(ct.category=ut)}}y.isModified=!0}}else if(x===Fa){var yt=a.propertyName;a.object===y.model&&yt==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},gd.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof cr&&(y=b.mh(y),y=x.Vb(y),b=a.pg(),y!==b&&(b=a.kh(),y!==null?b!==null?x.isTreePathToChildren?b.fromNode=y:b.toNode=y:F0(this,y,a):b!==null&&Pd(x,b,!1)))}}},gd.prototype.updateDataBindings=function(a,y){Vs.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},gd.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=Mm(y,x),E=this.Lc(a);if(b!==null&&E!==null){for(b=b.iterator;b.next();){var z=b.value;y.lb(z)&&E instanceof cr&&y.mh(z)===x&&F0(this,E,this.ii(z))}gA(y,x)}a=y.mh(a),a!==void 0&&E instanceof cr&&(a=this.Vb(a),F0(this,a,E))}},gd.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof cr){var x=y.wa(a.data),b=this.Kc(a.data);if(b!==null){b.isSelected=!1,b.isHighlighted=!1;var E=b.layer;if(E!==null){var z=E.pc(-1,b,!1);0<=z&&this.diagram.cb(Hl,"parts",E,b,null,z,null),z=b.layerChanged,z!==null&&z(b,E,null)}}for(b=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)E=a.value,E=(b?E.toNode:E.fromNode).data,y.lb(E)&&fA(y,x,E)}},gd.prototype.insertLink=function(a,y,x){y=this.diagram.model;var b=a,E=x;return this.diagram.isTreePathToChildren||(b=x,E=a),b!==null&&E!==null?(y.qe(E.data,y.wa(b.data)),E.kh()):null},gd.prototype.findLinkForKey=gd.prototype.findLinkForKey,gd.className="TreePartManager";function Or(a,y){this.kl=new Ci,this.il=new Ci,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,Xo(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new wr,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 wr,this.Lt=new Pi,this.Wg=!1,this.o=null,this.undoManager=new Et,a!==void 0&&(ui(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Or.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},Or.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Or.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Or.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)+":"+Pr(E)}}return y},Or.prototype.xA=function(a){a.change!==oh&&qe("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Yl?(E1(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Or.prototype.Qv=function(a,y){var x=this,b=!1,E=new Ci,z=new Ci,nt=new Ci,ot=this.vh;a.changes.each(function(yt){yt.model===x&&(yt.modelChange==="nodeDataArray"?yt.change===gl?E.add(yt.newValue):yt.change===Hl&&nt.add(yt.oldValue):x.lb(yt.object)?z.add(yt.object):yt.change!==Fa||x.modelData!==yt.object&&yt.propertyName!=="modelData"?yt.object!==null&&(ot&&ot.contains(yt.object)?ot.get(yt.object).each(function(kt){x.lb(kt)&&z.add(kt)}):yt.object instanceof Or||x.ri()&&x.Jc(yt.object)||F1(x,yt.object).each(function(kt){z.add(kt)})):b=!0)});var at=this.il;at.clear(),E.each(function(yt){at.add(x.wa(yt)),y||z.add(yt)});var ut=this.kl;ut.clear(),nt.each(function(yt){ut.add(x.wa(yt)),y&&z.add(yt)}),a=x.cloneDeep(z.Fa());var ct=null;return b&&(ct===null&&(ct={}),ct.modelData=this.cloneDeep(this.modelData)),0<at.count&&(ct===null&&(ct={}),y?ct.removedNodeKeys=at.Fa():ct.insertedNodeKeys=at.Fa()),0<a.length&&(ct===null&&(ct={}),ct.modifiedNodeData=a),0<ut.count&&(ct===null&&(ct={}),y?ct.insertedNodeKeys=ut.Fa():ct.removedNodeKeys=ut.Fa()),ut.clear(),at.clear(),ct},Or.prototype.cloneDeep=function(a){return Hp(this,a,!0)};function Hp(a,y,x,b,E,z){function nt(yt,kt){ot?(yt.__gohashid===void 0&&z.push(yt),b.set(yt,kt)):(yt=da++,b.set(yt,kt),E.set(yt,y))}if(!On(y))return y;z||(z=[]);var ot=Object.isExtensible(y);if(b||(b=new wr),ot){var at=b.get(y);if(at)return at}else for(E||(E=new wr),at=E.iterator;at.next();){var ut=at.key;if(at.value===y&&(ut=b.get(ut)))return ut}if(Array.isArray(y)){at=[],nt(y,at);for(var ct=0;ct<y.length;ct++)at.push(Hp(a,y[ct],!1,b,E,z))}else if(y instanceof Ne||y instanceof Vi||y instanceof ai||y instanceof Hr||y instanceof fr)at=y.copy(),nt(y,at);else{if(y instanceof Us||y instanceof Wi||y instanceof vi)return y;if(y instanceof Pi)at=new Pi().addAll(Hp(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof Ci)at=new Ci().addAll(Hp(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof wr)at=new wr().addAll(Hp(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof Date)at=new Date(y.getTime()),nt(y,at);else if(y instanceof RegExp)at=new RegExp(y),nt(y,at),at.lastIndex=y.lastIndex;else if(typeof y.copy=="function")at=y.copy(),nt(y,at);else for(ct in at={},nt(y,at),y)ct!=="__gohashid"&&(at[ct]=Hp(a,y[ct],!1,b,E,z))}return x&&z.forEach(function(yt){delete yt.__gohashid}),at}Xt=Or.prototype,Xt.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Xt.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},Xt.gp=function(a){a.name&&(this.name=a.name),a.dataFormat&&(this.dataFormat=a.dataFormat),a.isReadOnly&&(this.isReadOnly=!0),a.nodeKeyProperty&&(this.nodeKeyProperty=a.nodeKeyProperty),a.copiesArrays&&(this.copiesArrays=!0),a.copiesArrayObjects&&(this.copiesArrayObjects=!0),a.copiesKey===!1&&(this.copiesKey=!1),a.nodeCategoryProperty&&(this.nodeCategoryProperty=a.nodeCategoryProperty)};function b1(a,y){y=y.modelData,On(y)&&(a.dm(y),a.modelData=y)}Xt.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!L1(x,a[x])){y=!0;break}return a="",y&&(a=`,
|
|
|
"modelData": `+Zv(this,this.modelData)),a+`,
|
|
|
"nodeDataArray": `+rg(this,this.nodeDataArray,!0)},Xt.kv=function(a){b1(this,a),a=a.nodeDataArray,ui(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 Ci,nt.add(z),b.add(E,nt)):nt.add(z)}}var b=a.vh;b===null&&(b=new wr,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===Fa?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===gl||z===Hl)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function F1(a,y){for(var x=new Ci,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];L0(a,y,E,E,x)}return x}function L0(a,y,x,b,E){if(Array.isArray(x))for(var z=0;z<x.length;z++){var nt=x[z];if(nt===y)return E.add(b),!0;if(L0(a,y,nt,b,E))return!0}else if(On(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(nt=x[z],nt===y)return E.add(b),!0;if(L0(a,y,nt,b,E))return!0}return!1}Xt.Pv=function(a,y){var x=this,b=!1,E=new Ci,z=new Ci,nt=new Ci,ot=this.vh;a.changes.each(function(ct){ct.model===x&&(ct.modelChange==="nodeDataArray"?ct.change===gl?E.add(ct.newValue):ct.change===Hl&&nt.add(ct.oldValue):x.lb(ct.object)?z.add(ct.object):ct.change!==Fa||x.modelData!==ct.object&&ct.propertyName!=="modelData"?ct.object!==null&&(ot&&ot.contains(ct.object)?ot.get(ct.object).each(function(yt){x.lb(yt)&&z.add(yt)}):ct.object instanceof Or||x.ri()&&x.Jc(ct.object)||F1(x,ct.object).each(function(yt){z.add(yt)})):b=!0)});var at=this.il;at.clear(),E.each(function(ct){at.add(x.wa(ct)),y||z.add(ct)});var ut=this.kl;return ut.clear(),nt.each(function(ct){ut.add(x.wa(ct)),y&&z.add(ct)}),a="",b&&(a+=`,
|
|
|
"modelData": `+Zv(this,this.modelData)),0<at.count&&(a+=(y?this.Yv:this.Wv)+rg(this,at.Fa(),!0)),0<z.count&&(a+=this.jy+rg(this,z.Fa(),!0)),0<ut.count&&(a+=(y?this.Wv:this.Yv)+rg(this,ut.Fa(),!0)),ut.clear(),at.clear(),a},Xt.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)&&qe("applyIncrementalJson cannot change Model properties"),b1(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new wr;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)},Xt.$x=function(a,y){a.change!==oh&&qe("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Yl?(y===void 0&&(y=Nm(this,this)),E1(this,x),a=this.Pv(x,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},Xt.yA=function(a,y){return this.$x(a,y)},Xt.np=function(a){return a===void 0&&(a=Nm(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Xt.toJSON=function(a){return this.np(a)},Xt.Zw=function(a){var y=null;if(typeof a=="string")try{y=Le.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:qe("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&qe("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Xt.Ky=function(a){return this.Zw(a)},Or.constructGraphLinksModel=function(){return new Or},Xt=Or.prototype,Xt.dm=function(a){if(ui(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(On(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:qe("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(On(a)){for(y in a)if(x=a[y],On(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(E=x.length%2===0,b=0;b<x.length;b++)if(typeof x[b]!="number"){E=!1;break}if(E){for(E=new Pi,b=0;b<x.length/2;b++)E.add(new Ne(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Uw(a)}return a},Xt.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()):ui(a)?rg(this,a):On(a)?Zv(this,a):typeof a=="function"?"null":a.toString()};function rg(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new _r;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 Xh(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function Zv(a,y){var x=y;if(x instanceof Ne)y={class:"go.Point",x:Xh(x.x),y:Xh(x.y)};else if(x instanceof Vi)y={class:"go.Size",width:Xh(x.width),height:Xh(x.height)};else if(x instanceof ai)y={class:"go.Rect",x:Xh(x.x),y:Xh(x.y),width:Xh(x.width),height:Xh(x.height)};else if(x instanceof Hr)y={class:"go.Margin",top:Xh(x.top),right:Xh(x.right),bottom:Xh(x.bottom),left:Xh(x.left)};else if(x instanceof fr)x.sb()?y={class:"go.Spot",x:Xh(x.x),y:Xh(x.y),offsetX:Xh(x.offsetX),offsetY:Xh(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof Us){if(y={class:"go.Brush",type:x.type.name},x.type===Qt?y.color=x.color:(x.type===de||x.type===Ee)&&(y.start=x.start,y.end=x.end,x.type===Ee&&(x.startRadius!==0&&(y.startRadius=Xh(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Xh(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 Wi?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Xh(x.startX)),x.startY!==0&&(y.startY=Xh(x.startY)),x.endX!==0&&(y.endX=Xh(x.endX)),x.endY!==0&&(y.endY=Xh(x.endY)),x.spot1.D(rl)||(y.spot1=x.spot1),x.spot2.D($l)||(y.spot2=x.spot2),x.type===Wi.o&&(y.path=Wi.ia(x))):x instanceof vi&&(y={class:"go.EnumValue",classType:Nm(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=Zl(y,E);if(!L1(E,z))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&z instanceof Pi){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 $h(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 Ne($h(a.x),$h(a.y));else if(y==="Size")x=new Vi($h(a.width),$h(a.height));else if(y==="Rect")x=new ai($h(a.x),$h(a.y),$h(a.width),$h(a.height));else if(y==="Margin")x=new Hr($h(a.top),$h(a.right),$h(a.bottom),$h(a.left));else if(y==="Spot")typeof a.enum=="string"?x=zd(a.enum):x=new fr($h(a.x),$h(a.y),$h(a.offsetX),$h(a.offsetY));else if(y==="Brush"){if(x=new Us,x.type=ur(Us,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof fr&&(x.start=a.start),a.end instanceof fr&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=$h(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=$h(a.endRadius)),a=a.colorStops,On(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=Wi.parse(a.path):x=new Wi,x.type=ur(Wi,a.type),typeof a.startX=="number"&&(x.startX=$h(a.startX)),typeof a.startY=="number"&&(x.startY=$h(a.startY)),typeof a.endX=="number"&&(x.endX=$h(a.endX)),typeof a.endY=="number"&&(x.endY=$h(a.endY)),a.spot1 instanceof fr&&(x.spot1=a.spot1),a.spot2 instanceof fr&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=$v(b),typeof b=="function"&&(x=ur(b,a.name)));return x}Xt.Pe=function(a){return this.Lt.add(a),this},Xt.ik=function(a){this.Lt.remove(a)},Xt.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)},Xt.cb=function(a,y,x,b,E,z,nt){cu(this,"",a,y,x,b,E,z,nt)},Xt.g=function(a,y,x,b,E){cu(this,"",Fa,a,this,y,x,b,E)},Xt.Fs=function(a,y,x,b,E,z){cu(this,"",Fa,y,a,x,b,E,z)};function cu(a,y,x,b,E,z,nt,ot,at){ot===void 0&&(ot=null),at===void 0&&(at=null);var ut=new Ea;ut.model=a,ut.change=x,ut.modelChange=y,ut.propertyName=b,ut.object=E,ut.oldValue=z,ut.oldParam=ot,ut.newValue=nt,ut.newParam=at,a.ds(ut)}Or.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Fa){var x=a.object,b=a.propertyName,E=a.I(y);b===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),E!==void 0&&this.kb.add(E,x)),Qa(x,b,E)}else a.change===gl?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,On(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&Gr(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&rr(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!ui(b)&&a.propertyName&&(b=Zl(a.object,a.propertyName)),ui(b)&&typeof x=="number"&&(a=a.newValue,y?Gr(b,x):rr(b,x,a))):qe("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Hl?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,On(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&rr(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&Gr(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!ui(b)&&a.propertyName&&(b=Zl(a.object,a.propertyName)),ui(b)&&typeof x=="number"&&(a=a.oldValue,y?rr(b,x,a):Gr(b,x))):qe("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==oh&&qe("unknown ChangedEvent: "+a.toString())},Or.prototype.Ea=function(a){return this.undoManager.Ea(a)},Or.prototype.eb=function(a){return this.undoManager.eb(a)},Or.prototype.Kf=function(){return this.undoManager.Kf()},Or.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}},Xt=Or.prototype,Xt.La=function(a,y){y===void 0&&(y=""),cu(this,"SourceChanged",oh,y,a,null,null)},Xt.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=Zl(a,y),y!==void 0)){if(og(y))return y;qe("Key value for node data "+a+" is not a number or a string: "+y)}}},Xt.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=Zl(a,x);b!==y&&this.hc(y)===null&&(Qa(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),cu(this,"nodeKey",Fa,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else Qa(a,x,y)}};function og(a){return typeof a=="number"||typeof a=="string"}Xt.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Xt.hc=function(a){return a===null&&qe("Model.findNodeDataForKey:key must not be null"),a!==void 0&&og(a)?this.kb.I(a):null},Xt.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var x=this.wa(a);if(x===void 0||this.kb.contains(x)){var b=this.bl;if(b!==null&&(x=b(this,a),x!=null&&!this.kb.contains(x))){Qa(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;Qa(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Qa(a,y,x)}}}}},Xt.xf=function(a){a!==null&&(ua(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&&qe("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,rr(a.Tc,b,y)),cu(a,"nodeDataArray",gl,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}Xt.Fy=function(a){if(ui(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)},Xt.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;Gr(a.Tc,b)}cu(a,"nodeDataArray",Hl,"nodeDataArray",a,y,null,b,null),a.qp(y)}Xt.nA=function(a){if(ui(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)},Xt.$z=function(a){if(a!==this.nodeDataArray&&ui(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()}},Xt.jp=function(a,y){y!==void 0&&(a=Mm(this,a),a instanceof Ci&&this.Vf.add(y,a))},Xt.Lv=function(){},Xt.fm=function(){},Xt.em=function(){},Xt.qp=function(){};function fA(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new Ci,a.Vf.add(y,b)),b.add(x)}}function gA(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof Ci&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function Mm(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof Ci?a:null)}Xt.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Or.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):M0(this,a,!0),On(a)&&Xo(a),a};function M0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=M0(a,y[x],a.copiesArrayObjects);b.push(E)}return Xo(b),b}if(x&&On(y)){x=(x=y.constructor)?new x:{},E=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(b in y)if(b==="__gohashid")x.__gohashid=void 0;else if(b===E)x[E]=void 0;else{var z=Zl(y,b),nt=Nm(a,z);nt==="GraphObject"||nt==="Diagram"||nt==="Layer"||nt==="RowColumnDefinition"||nt==="AnimationManager"||nt==="Tool"||nt==="CommandHandler"||nt==="Layout"||nt==="InputEvent"||nt==="DiagramEvent"||z instanceof Or||z instanceof Et||z instanceof Yl||z instanceof Ea||(z=M0(a,z,!1)),Qa(x,b,z)}return Xo(x),x}return y instanceof Ne||y instanceof Vi||y instanceof ai||y instanceof fr||y instanceof Hr?y.copy():y}Or.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}}else!I1&&a instanceof pn&&(I1=!0,tr('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),tr(" Is that really your intent?"));var b=Zl(a,y);b!==x&&(Qa(a,y,x),this.Fs(a,y,b,x))},Xt=Or.prototype,Xt.set=function(a,y,x){this.setDataProperty(a,y,x)},Xt.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])}},Xt.Ay=function(a,y){this.ts(a,-1,y)},Xt.ts=function(a,y,x){0>y&&(y=a.length),rr(a,y,x),cu(this,"",gl,"",a,null,x,null,y)},Xt.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&qe("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Gr(a,y),cu(this,"",Hl,"",a,x,null,y,null)},Xt.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Zl(a,y),y===void 0))return"";if(typeof y=="string")return y;qe("getCategoryForNodeData found a non-string category for "+a+": "+y)},Xt.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=Zl(a,x);b===void 0&&(b=""),b!==y&&(Qa(a,x,y),cu(this,"nodeCategory",Fa,x,a,b,y))}else Qa(a,x,y)}},Xt.lm=function(a,y){this.jm(y,this.Ro(a))},Xt.Tl=function(){return!1},Xt.Wj=function(){return!1},Xt.ri=function(){return!1},Xt.xs=function(){return!1},Xt.Xj=function(){return!1};function Xv(){return new Or}function Nm(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return Nm(a,y.constructor);return typeof y}function $v(a){return tA[a]?tA[a]:Le.go!==void 0&&Le.go[a]?Le.go[a]:null}function Zl(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(b){}return x}function Qa(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(b){}}Oe.Object.defineProperties(Or.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===""&&qe("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&qe("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=a,this.g("nodeKeyProperty",y,a))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(a){var y=this.bl;y!==a&&(this.bl=a,this.g("makeUniqueKeyFunction",y,a))}},nodeDataArray:{get:function(){return this.Tc},set:function(a){var y=this.Tc;if(y!==a){this.kb.clear(),this.Lv();for(var x=a.length,b=0;b<x;b++){var E=a[b];On(E)||qe("Model.nodeDataArray must only contain Objects, not: "+E),ua(E)}for(this.Tc=a,b=new Pi,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(cu(this,"nodeDataArray",Fa,"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"}}}),Or.prototype.setCategoryForNodeData=Or.prototype.jm,Or.prototype.getCategoryForNodeData=Or.prototype.Ro,Or.prototype.removeArrayItem=Or.prototype.ov,Or.prototype.insertArrayItem=Or.prototype.ts,Or.prototype.addArrayItem=Or.prototype.Ay,Or.prototype.assignAllDataProperties=Or.prototype.Do,Or.prototype.set=Or.prototype.set,Or.prototype.clearUnresolvedReferences=Or.prototype.Qy,Or.prototype.mergeNodeDataArray=Or.prototype.$z,Or.prototype.removeNodeDataCollection=Or.prototype.nA,Or.prototype.removeNodeData=Or.prototype.cm,Or.prototype.addNodeDataCollection=Or.prototype.Fy,Or.prototype.addNodeData=Or.prototype.xf,Or.prototype.makeNodeDataKeyUnique=Or.prototype.$u,Or.prototype.findNodeDataForKey=Or.prototype.hc,Or.prototype.containsNodeData=Or.prototype.lb,Or.prototype.setKeyForNodeData=Or.prototype.km,Or.prototype.getKeyForNodeData=Or.prototype.wa,Or.prototype.updateTargetBindings=Or.prototype.La,Or.prototype.commit=Or.prototype.commit,Or.prototype.rollbackTransaction=Or.prototype.Kf,Or.prototype.commitTransaction=Or.prototype.eb,Or.prototype.startTransaction=Or.prototype.Ea,Or.prototype.raiseDataChanged=Or.prototype.Fs,Or.prototype.raiseChanged=Or.prototype.g,Or.prototype.raiseChangedEvent=Or.prototype.cb,Or.prototype.removeChangedListener=Or.prototype.ik,Or.prototype.addChangedListener=Or.prototype.Pe,Or.prototype.writeJsonValue=Or.prototype.sm,Or.prototype.replaceJsonObjects=Or.prototype.dm,Or.prototype.applyIncrementalJSON=Or.prototype.Ky,Or.prototype.applyIncrementalJson=Or.prototype.Zw,Or.prototype.toJSON=Or.prototype.toJSON,Or.prototype.toJson=Or.prototype.np,Or.prototype.toIncrementalJSON=Or.prototype.yA,Or.prototype.toIncrementalJson=Or.prototype.$x,Or.prototype.toIncrementalData=Or.prototype.xA,Or.prototype.clear=Or.prototype.clear;var I1=!1,tA={};Or.className="Model",Or.fromJSON=Or.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Le.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:qe("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=Le[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof Or?y=a:qe("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Or.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Or.safePropertyValue=Zl,Or.safePropertySet=Qa,tA.Brush=Us,tA.ChangedEvent=Ea,tA.Geometry=Wi,tA.Margin=Hr,tA.Panel=ci,tA.Point=Ne,tA.Rect=ai,tA.Size=Vi,tA.Spot=fr,tA.Transaction=Yl,tA.UndoManager=Et;function Jl(a,y,x,b){Xo(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),x===void 0&&(x=null),this.j=-1,this.xd=null,this.xl=a,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=y,this.Im=x,b===void 0?(this.el=T1,this.wk=null):(this.el=Im,this.wk=b),this.st=new Ci}Jl.prototype.copy=function(){var a=new Jl;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},Xt=Jl.prototype,Xt.qb=function(a){a.classType===Jl&&(this.mode=a)},Xt.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Xt.freeze=function(){return this._isFrozen=!0,this},Xt.ka=function(){return this._isFrozen=!1,this},Xt.Kx=function(a){return a===void 0&&(a=null),this.mode=Im,this.backConverter=a,this},Xt.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Xt.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function k1(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}Xt.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==="")tr("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=Zl(y,b)),z!==void 0)if(E===null)x!==""&&Qa(a,x,z);else try{if(x!==""){var nt=E(z,a);Qa(a,x,nt)}else E(z,a)}catch(ot){}}}},Xt.sp=function(a,y,x,b){if(this.el===Im){var E=this.xl;if(x===void 0||E===x){x=this.sl;var z=this.wk,nt=a;if(E!==""&&(nt=Zl(a,E)),nt!==void 0&&!this.st.contains(a))try{this.st.add(a);var ot=b!==null?b.diagram:null,at=ot!==null?ot.model:null;if(z===null){if(x!=="")at!==null?at.setDataProperty(y,x,nt):Qa(y,x,nt);else if(at!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var ut=b.itemIndex,ct=b.panel.itemArray;at.ov(ct,ut),at.ts(ct,ut,nt)}}else try{if(x!==""){var yt=z(nt,y,at);at!==null?at.setDataProperty(y,x,yt):Qa(y,x,yt)}else{var kt=z(nt,y,at);if(kt!==void 0&&at!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var zt=b.itemIndex,Zt=b.panel.itemArray;at.ov(Zt,zt),at.ts(Zt,zt,kt)}}}catch(he){}}finally{this.st.remove(a)}}}},Oe.Object.defineProperties(Jl.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&si(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&si(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&si(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&si(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&si(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&si(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&si(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&si(this),this.el=a}}}),Jl.prototype.updateSource=Jl.prototype.sp,Jl.prototype.updateTarget=Jl.prototype.Mv,Jl.prototype.ofModel=Jl.prototype.dA,Jl.prototype.ofObject=Jl.prototype.cp,Jl.prototype.makeTwoWay=Jl.prototype.Kx;var Rw="Binding",T1=new vi(Jl,"OneWay",1),Im=new vi(Jl,"TwoWay",2);Jl.className="Binding",Jl.parseEnum=function(a,y){return function(x){return x=ur(a,x),x===null?y:x}},Jl.toString=Pr,Jl.OneWay=T1,Jl.TwoWay=Im;function vs(a,y,x){Or.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new Ci,this.wb=new wr,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&&(ui(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Tn(vs,Or),vs.constructGraphLinksModel=Or.constructGraphLinksModel,vs.prototype.cloneProtected=function(a){Or.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},Xt=vs.prototype,Xt.clear=function(){Or.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Xt.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)+":"+Pr(E)}for(y+=`
|
|
|
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+Jc(this,E,!0)+"-->"+Jc(this,E,!1)}return y},Xt.Qv=function(a,y){this.linkKeyProperty===""&&qe("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Or.prototype.Qv.call(this,a,y),b=this,E=new Ci,z=new Ci,nt=new Ci,ot=this.vh;a.changes.each(function(ct){ct.model===b&&(ct.modelChange==="linkDataArray"?ct.change===gl?E.add(ct.newValue):ct.change===Hl&&nt.add(ct.oldValue):b.Jc(ct.object)?z.add(ct.object):ct.object!==null&&(ct.object!==null&&ot&&ot.contains(ct.object)?ot.get(ct.object).each(function(yt){b.Jc(yt)&&z.add(yt)}):ct.object instanceof Or||b.lb(ct.object)||O1(b,ct.object).each(function(yt){z.add(yt)})))});var at=this.il;at.clear(),E.each(function(ct){at.add(b.Ac(ct)),y||z.add(ct)});var ut=this.kl;return ut.clear(),nt.each(function(ct){ut.add(b.Ac(ct)),y&&z.add(ct)}),a=b.cloneDeep(z.Fa()),0<at.count&&(x===null&&(x={}),y?x.removedLinkKeys=at.Fa():x.insertedLinkKeys=at.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<ut.count&&(x===null&&(x={}),y?x.insertedLinkKeys=ut.Fa():x.removedLinkKeys=ut.Fa()),ut.clear(),at.clear(),x},Xt.rm=function(){var a=Or.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},Xt.gp=function(a){Or.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)},Xt.Rv=function(){var a=Or.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+rg(this,this.linkDataArray,!0);return a+y},Xt.kv=function(a){Or.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 Ci,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];L0(a,y,E,E,x)}return x}Xt.Pv=function(a,y){this.linkKeyProperty===""&&qe("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Or.prototype.Pv.call(this,a,y),b=this,E=new Ci,z=new Ci,nt=new Ci,ot=this.vh;a.changes.each(function(ct){ct.model===b&&(ct.modelChange==="linkDataArray"?ct.change===gl?E.add(ct.newValue):ct.change===Hl&&nt.add(ct.oldValue):b.Jc(ct.object)?z.add(ct.object):ct.object!==null&&(ct.object!==null&&ot&&ot.contains(ct.object)?ot.get(ct.object).each(function(yt){b.Jc(yt)&&z.add(yt)}):ct.object instanceof Or||b.lb(ct.object)||O1(b,ct.object).each(function(yt){z.add(yt)})))});var at=this.il;at.clear(),E.each(function(ct){at.add(b.Ac(ct)),y||z.add(ct)});var ut=this.kl;return ut.clear(),nt.each(function(ct){ut.add(b.Ac(ct)),y&&z.add(ct)}),a=x,0<at.count&&(a+=(y?this.Xv:this.Vv)+rg(this,at.Fa(),!0)),0<z.count&&(a+=this.iy+rg(this,z.Fa(),!0)),0<ut.count&&(a+=(y?this.Vv:this.Xv)+rg(this,ut.Fa(),!0)),ut.clear(),at.clear(),a},Xt.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)&&qe("applyIncrementalJson cannot change Model properties"),Or.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)},vs.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Fa){var x=a.object,b=a.propertyName;if(b===this.linkKeyProperty&&this.Jc(x)){var E=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),E!==void 0&&this.wb.add(E,x),Qa(x,b,E);return}}else if(a.change===gl){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,On(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)):0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue));return}}else if(a.change===Hl){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,On(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue):(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)));return}}Or.prototype.changeState.call(this,a,y)}},Xt=vs.prototype,Xt.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),Qa(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Xt.yx=function(a){return Jc(this,a,!0)},Xt.wv=function(a,y){Qp(this,a,y,!0)},Xt.Bx=function(a){return Jc(this,a,!1)},Xt.Bv=function(a,y){Qp(this,a,y,!1)};function Jc(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=Zl(y,a),a!==void 0))){if(og(a))return a;qe((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Qp(a,y,x,b){if(x===null&&(x=void 0),y!==null){var E=b?a.lf:a.mf;if(E!=="")if(x=a.Vl(x),a.Jc(y)){var z=Zl(y,E);z!==x&&(gA(a,z,y),Qa(y,E,x),a.hc(x)===null&&fA(a,x,y),cu(a,b?"linkFromKey":"linkToKey",Fa,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Qa(y,E,x)}}Xt.zx=function(a){return N0(this,a,!0)},Xt.xv=function(a,y){zp(this,a,y,!0)},Xt.Cx=function(a){return N0(this,a,!1)},Xt.Cv=function(a,y){zp(this,a,y,!1)};function N0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=Zl(y,a),y===void 0?"":y)}function zp(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var z=Zl(y,E);z===void 0&&(z=""),z!==x&&(Qa(y,E,x),cu(a,b?"linkFromPortId":"linkToPortId",Fa,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Qa(y,E,x)}}Xt.Ef=function(a){if(a===null)return I0;var y=this.je;return y===""?I0:(a=Zl(a,y),a===void 0?I0:a)},Xt.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=Zl(a,x);if(b===void 0&&(b=I0),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)gA(this,b[z],a);for(Qa(a,x,y),E=y.length,z=0;z<E;z++){var nt=y[z];this.hc(nt)===null&&fA(this,nt,a)}cu(this,"linkLabelKeys",Fa,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else Qa(a,x,y)}},Xt.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=Zl(a,x);if(b===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(b)){var E=b.indexOf(y);0<=E||(E=b.length,b.push(y),this.Jc(a)&&(this.hc(y)===null&&fA(this,y,a),cu(this,"linkLabelKeys",gl,x,a,null,y,null,E)))}else qe(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Xt.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=Zl(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(gA(this,y,a),cu(this,"linkLabelKeys",Hl,x,a,y,null,E,null)))}else b!==void 0&&qe(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Xt.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Zl(a,y),y!==void 0)){if(og(y))return y;qe("Key value for link data "+a+" is not a number or a string: "+y)}}},Xt.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=Zl(a,x);b!==y&&this.jh(y)===null&&(Qa(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),cu(this,"linkKey",Fa,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Qa(a,x,y)}},Xt.jh=function(a){return a===null&&qe("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&og(a)?this.wb.I(a):null},Xt.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var b=this.cl;if(b!==null&&(x=b(this,a),x!=null&&!this.wb.contains(x))){Qa(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Qa(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Qa(a,y,x)}}}}},Xt.Jc=function(a){return a===null?!1:this.$f.contains(a)},Xt.fi=function(a){a!==null&&(ua(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&&qe("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)),cu(a,"linkDataArray",gl,"linkDataArray",a,null,y,null,b),Yv(a,y)}Xt.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)},Xt.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(cu(a,"linkDataArray",Hl,"linkDataArray",a,y,null,b,null),x=Jc(a,y,!0),gA(a,x,y),x=Jc(a,y,!1),gA(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],gA(a,x,y)}Xt.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)},Xt.Zz=function(a){if(this.linkKeyProperty===""&&qe("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&ui(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],nt=this.Ac(z);if(nt!==void 0){x.add(nt);var ot=this.jh(nt);ot!==z&&(ot!==null?(this.Do(ot,z),U1(this,z,ot)):(z=this.cloneDeep(z),this.Ks(z,nt),this.fi(z)))}else nt=this.cloneDeep(z),this.fi(nt),x.add(this.Ac(nt))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),x.clear()}};function Yv(a,y){var x=Jc(a,y,!0);x=a.Vl(x),a.hc(x)===null&&fA(a,x,y),x=Jc(a,y,!1),x=a.Vl(x),a.hc(x)===null&&fA(a,x,y);var b=a.Ef(y);if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],a.hc(x)===null&&fA(a,x,y)}Xt.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):M0(this,a,!0),On(a)&&(Xo(a),this.lf!==""&&Qa(a,this.lf,void 0),this.mf!==""&&Qa(a,this.mf,void 0),this.je!==""&&Qa(a,this.je,[])),a},Xt.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!Zl(a,y)},Xt.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=Zl(a,y),y!==void 0)){if(og(y))return y;qe("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Xt.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=Zl(a,x);b!==y&&(gA(this,b,a),Qa(a,x,y),this.hc(y)===null&&fA(this,y,a),cu(this,"nodeGroupKey",Fa,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Qa(a,x,y)}},vs.prototype.copyNodeData=function(a){return a===null?null:(a=Or.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||Zl(a,this.Je)===void 0||Qa(a,this.Je,void 0),a)},vs.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeGroupKeyProperty){this.mp(a,x);return}}else if(this.Jc(a)){if(y===this.linkFromKeyProperty){Qp(this,a,x,!0);return}if(y===this.linkToKeyProperty){Qp(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){zp(this,a,x,!0);return}if(y===this.linkToPortIdProperty){zp(this,a,x,!1);return}if(y===this.linkKeyProperty){this.Ks(a,x);return}if(y===this.linkCategoryProperty){this.lp(a,x);return}if(y===this.linkLabelKeysProperty){this.Ls(a,x);return}}var b=Zl(a,y);b!==x&&(Qa(a,y,x),this.Fs(a,y,b,x))},Xt=vs.prototype,Xt.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&&Zl(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},Xt.jp=function(a,y){Or.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y);for(x=this.$f.iterator;x.next();){var b=x.value,E=a,z=y;if(Jc(this,b,!0)===E){var nt=this.lf;Qa(b,nt,z),cu(this,"linkFromKey",Fa,nt,b,E,z),typeof nt=="string"&&this.La(b,nt)}if(Jc(this,b,!1)===E&&(nt=this.mf,Qa(b,nt,z),cu(this,"linkToKey",Fa,nt,b,E,z),typeof nt=="string"&&this.La(b,nt)),nt=this.Ef(b),Array.isArray(nt))for(var ot=nt.length,at=this.je,ut=0;ut<ot;ut++)nt[ut]===E&&(nt[ut]=z,cu(this,"linkLabelKeys",gl,at,b,E,z,ut,ut))}},Xt.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;Qa(a,b,x),cu(this,"nodeGroupKey",Fa,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Xt.Lv=function(){Or.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)Yv(this,a[x])},Xt.fm=function(a){Or.prototype.fm.call(this,a),a=this.wa(a);var y=Mm(this,a);if(y!==null){var x=or();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;cu(this,"nodeGroupKey",Fa,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(Jc(this,b,!0)===a&&(E=this.lf,cu(this,"linkFromKey",Fa,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),Jc(this,b,!1)===a&&(E=this.mf,cu(this,"linkToKey",Fa,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&&(cu(this,"linkLabelKeys",gl,nt,b,a,a,ot,ot),x.push(b))}for(y=0;y<x.length;y++)gA(this,a,x[y]);Lr(x)}},Xt.em=function(a){Or.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&fA(this,y,a)},Xt.qp=function(a){Or.prototype.qp.call(this,a);var y=this.lh(a);gA(this,y,a)},Xt.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=Zl(a,y),y===void 0))return"";if(typeof y=="string")return y;qe("getCategoryForLinkData found a non-string category for "+a+": "+y)},vs.prototype.getLinkCategoryForData=function(a){return this.ps(a)},vs.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=Zl(a,x);b===void 0&&(b=""),b!==y&&(Qa(a,x,y),cu(this,"linkCategory",Fa,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Qa(a,x,y)}},vs.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Xt=vs.prototype,Xt.lm=function(a,y){Or.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))}Xt.Wj=function(){return!0},Xt.ri=function(){return!0},Xt.xs=function(){return!0},Xt.Xj=function(){return!0},Oe.Object.defineProperties(vs.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var x=a.length,b=0;b<x;b++){var E=a[b];On(E)||qe("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),ua(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new Pi,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 Ci,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,cu(this,"linkDataArray",Fa,"linkDataArray",this,y,a),y=0;y<x;y++)Yv(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var x=this.linkDataArray.length,b=0;b<x;b++){var E=this.linkDataArray[b],z=this.Ac(E);z===void 0&&(this.Bs(E),z=this.Ac(E)),z!==void 0&&this.wb.add(z,E)}this.g("linkKeyProperty",y,a)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(a){var y=this.cl;y!==a&&(this.cl=a,this.g("makeUniqueLinkKeyFunction",y,a))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(a){var y=this.Ak;y!==a&&(this.Ak=a,this.g("copyLinkDataFunction",y,a))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(a){var y=this.jl;y!==a&&(this.jl=a,this.g("nodeIsGroupProperty",y,a))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(a){var y=this.Je;y!==a&&(this.Je=a,this.g("nodeGroupKeyProperty",y,a))}},Ij:{get:function(){return this.Lm},set:function(a){this.Lm!==a&&(this.Lm=a)}},linkCategoryProperty:{get:function(){return this.dj},set:function(a){var y=this.dj;y!==a&&(this.dj=a,this.g("linkCategoryProperty",y,a))}},type:{get:function(){return"GraphLinksModel"}}}),vs.prototype.setCategoryForLinkData=vs.prototype.lp,vs.prototype.getCategoryForLinkData=vs.prototype.ps,vs.prototype.assignAllDataProperties=vs.prototype.Do,vs.prototype.setGroupKeyForNodeData=vs.prototype.mp,vs.prototype.getGroupKeyForNodeData=vs.prototype.lh,vs.prototype.isGroupForNodeData=vs.prototype.Yu,vs.prototype.copyLinkData=vs.prototype.Jo,vs.prototype.mergeLinkDataArray=vs.prototype.Zz,vs.prototype.removeLinkDataCollection=vs.prototype.lA,vs.prototype.removeLinkData=vs.prototype.bm,vs.prototype.addLinkDataCollection=vs.prototype.Ey,vs.prototype.addLinkData=vs.prototype.fi,vs.prototype.containsLinkData=vs.prototype.Jc,vs.prototype.makeLinkDataKeyUnique=vs.prototype.Bs,vs.prototype.findLinkDataForKey=vs.prototype.jh,vs.prototype.setKeyForLinkData=vs.prototype.Ks,vs.prototype.getKeyForLinkData=vs.prototype.Ac,vs.prototype.removeLabelKeyForLinkData=vs.prototype.Qx,vs.prototype.addLabelKeyForLinkData=vs.prototype.Bu,vs.prototype.setLabelKeysForLinkData=vs.prototype.Ls,vs.prototype.getLabelKeysForLinkData=vs.prototype.Ef,vs.prototype.setToPortIdForLinkData=vs.prototype.Cv,vs.prototype.getToPortIdForLinkData=vs.prototype.Cx,vs.prototype.setFromPortIdForLinkData=vs.prototype.xv,vs.prototype.getFromPortIdForLinkData=vs.prototype.zx,vs.prototype.setToKeyForLinkData=vs.prototype.Bv,vs.prototype.getToKeyForLinkData=vs.prototype.Bx,vs.prototype.setFromKeyForLinkData=vs.prototype.wv,vs.prototype.getFromKeyForLinkData=vs.prototype.yx,vs.prototype.clear=vs.prototype.clear;var I0=Object.freeze([]);vs.className="GraphLinksModel",tA.GraphLinksModel=vs,Or.constructGraphLinksModel=Or.constructGraphLinksModel=function(){return new vs},Or.initDiagramModel=Xv=function(){return new vs};function Yh(a,y){Or.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(ui(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Tn(Yh,Or),Yh.constructGraphLinksModel=Or.constructGraphLinksModel,Yh.prototype.cloneProtected=function(a){Or.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Xt=Yh.prototype,Xt.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)+":"+Pr(E)}}return y},Xt.rm=function(){var a=Or.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Xt.gp=function(a){Or.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Xt.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&qe("applyIncrementalJson cannot change Model properties"),Or.prototype.fp.call(this,a)},Xt.Vl=function(a){return a},Xt.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=Zl(a,y),y!==void 0)){if(og(y))return y;qe("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Xt.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=Zl(a,x);b!==y&&(gA(this,b,a),Qa(a,x,y),this.hc(y)===null&&fA(this,y,a),cu(this,"nodeParentKey",Fa,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Qa(a,x,y)}},Xt.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=Zl(a,y),y===void 0)?"":typeof y=="string"?y:(qe("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Yh.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Yh.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=Zl(a,x);b===void 0&&(b=""),b!==y&&(Qa(a,x,y),cu(this,"parentLinkCategory",Fa,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Qa(a,x,y)}},Yh.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Yh.prototype.copyNodeData=function(a){return a===null?null:(a=Or.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||Zl(a,this.Ke)===void 0||Qa(a,this.Ke,void 0),a)},Yh.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=Zl(a,y);b!==x&&(Qa(a,y,x),this.Fs(a,y,b,x))},Xt=Yh.prototype,Xt.jp=function(a,y){Or.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Xt.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;Qa(a,b,x),cu(this,"nodeParentKey",Fa,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Xt.fm=function(a){Or.prototype.fm.call(this,a),a=this.wa(a);var y=Mm(this,a);if(y!==null){var x=or();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;cu(this,"nodeParentKey",Fa,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)gA(this,a,x[y]);Lr(x)}},Xt.em=function(a){Or.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&fA(this,y,a)},Xt.qp=function(a){Or.prototype.qp.call(this,a);var y=this.mh(a);gA(this,y,a)},Xt.lm=function(a,y){Or.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Xt.Tl=function(){return!0},Xt.xs=function(){return!0},Oe.Object.defineProperties(Yh.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"}}}),Yh.prototype.setParentLinkCategoryForNodeData=Yh.prototype.Ms,Yh.prototype.getParentLinkCategoryForNodeData=Yh.prototype.ss,Yh.prototype.setParentKeyForNodeData=Yh.prototype.qe,Yh.prototype.getParentKeyForNodeData=Yh.prototype.mh,Yh.className="TreeModel",tA.TreeModel=Yh;function fl(a){Wa.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=eA,this.Ti=0,this.Zv=new Ne,this.Jp=this.me=0,this.Xr=new Dm,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=eA,this.K=Jh,this.nd=Gp,this.hd=zv,this.tf=6,this.Nn=R0,a&&Object.assign(this,a)}Tn(fl,Wa),fl.prototype.cloneProtected=function(a){Wa.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},fl.prototype.qb=function(a){a.classType===fl?a===j0||a===U0||a===O0||a===D0||a===Gp?this.sorting=a:a===Tg||a===Kp||a===Jh||a===ag?this.direction=a:a===Nf||a===sg||a===eA||a===nA?this.arrangement=a:(a===lp||a===R0)&&(this.nodeDiameterFormula=a):Wa.prototype.qb.call(this,a)},fl.prototype.createNetwork=function(){return new Wp(this)},fl.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 Pi;y.addAll(a.iterator),a=new Pi;var x=new Pi,b=this.sort(y),E,z,nt=this.Jp,ot=this.arrangement,at=this.nodeDiameterFormula,ut=this.radius;(!isFinite(ut)||0>=ut)&&(ut=NaN);var ct=this.aspectRatio;(!isFinite(ct)||0>=ct)&&(ct=1);var yt=this.startAngle;isFinite(yt)||(yt=0);var kt=this.sweepAngle;if((!isFinite(kt)||360<kt||1>kt)&&(kt=360),y=this.spacing,isFinite(y)||(y=NaN),ot===nA&&at===lp?ot=eA:ot===nA&&at!==lp&&(ot=this.arrangement),(this.direction===Tg||this.direction===Kp)&&this.sorting!==Gp){for(at=0;!(at>=b.length)&&(a.add(b.M(at)),!(at+1>=b.length));at+=2)x.add(b.M(at+1));this.direction===Tg?(this.arrangement===nA&&a.reverse(),b=new Pi,b.addAll(a),b.addAll(x)):(this.arrangement===nA&&x.reverse(),b=new Pi,b.addAll(x),b.addAll(a))}at=b.length;for(var zt=z=E=0;zt<b.length;zt++){var Zt=yt+kt*z*(this.direction===Jh?1:-1)/at,he=b.M(zt).diameter;isNaN(he)&&(he=lg(b.M(zt),Zt)),360>kt&&(zt===0||zt===b.length-1)&&(he/=2),E+=he,z++}if(isNaN(ut)||ot===nA){if(isNaN(y)&&(y=6),ot!==eA&&ot!==nA){for(z=-1/0,nt=0;nt<at;nt++)zt=b.M(nt),E=b.M(nt===at-1?0:nt+1),isNaN(zt.diameter)&&lg(zt,0),isNaN(E.diameter)&&lg(E,0),z=Math.max(z,(zt.diameter+E.diameter)/2);nt=z+y,ot===Nf?ut=(z+y)/(2*Math.PI/at):ut=k0(this,nt*(360<=kt?at:at-1),ct,yt*Math.PI/180,kt*Math.PI/180)}else ut=k0(this,E+(360<=kt?at:at-1)*(ot!==nA?y:1.6*y),ct,yt*Math.PI/180,kt*Math.PI/180);z=ut*ct}else if(z=ut*ct,zt=Jv(this,ut,z,yt*Math.PI/180,kt*Math.PI/180),isNaN(y))(ot===eA||ot===nA)&&(y=(zt-E)/(360<=kt?at:at-1));else if(ot===eA||ot===nA)zt=(zt-E)/(360<=kt?at:at-1),zt<y?(ut=k0(this,E+y*(360<=kt?at:at-1),ct,yt*Math.PI/180,kt*Math.PI/180),z=ut*ct):y=zt;else{for(nt=-1/0,E=0;E<at;E++)Zt=b.M(E),he=b.M(E===at-1?0:E+1),isNaN(Zt.diameter)&&lg(Zt,0),isNaN(he.diameter)&&lg(he,0),nt=Math.max(nt,(Zt.diameter+he.diameter)/2);nt+=y,E=k0(this,nt*(360<=kt?at:at-1),ct,yt*Math.PI/180,kt*Math.PI/180),E>ut?(ut=E,z=ut*ct):nt=zt/(360<=kt?at:at-1)}if(this.kw=ot,this.lc=ut,this.Zm=ct,this.lw=yt,this.Wp=kt,this.Ti=y,this.me=z,this.Jp=nt,y=b,b=this.kw,ot=this.lc,ut=this.lw,ct=this.Wp,yt=this.Ti,kt=this.me,at=this.Jp,this.direction!==Tg&&this.direction!==Kp||b!==nA)if(this.direction===Tg||this.direction===Kp){switch(nt=0,b){case sg:nt=180*T0(this,ot,kt,ut,at)/Math.PI;break;case eA:at=y=0,nt=a.first(),nt!==null&&(y=lg(nt,Math.PI/2)),nt=x.first(),nt!==null&&(at=lg(nt,Math.PI/2)),nt=180*T0(this,ot,kt,ut,yt+(y+at)/2)/Math.PI;break;case Nf:nt=ct/y.length}if(this.direction===Tg){switch(b){case sg:Om(this,a,ut,ag);break;case eA:Tm(this,a,ut,ag);break;case Nf:km(this,a,ct/2,ut,ag)}switch(b){case sg:Om(this,x,ut+nt,Jh);break;case eA:Tm(this,x,ut+nt,Jh);break;case Nf:km(this,x,ct/2,ut+nt,Jh)}}else{switch(b){case sg:Om(this,x,ut,ag);break;case eA:Tm(this,x,ut,ag);break;case Nf:km(this,x,ct/2,ut,ag)}switch(b){case sg:Om(this,a,ut+nt,Jh);break;case eA:Tm(this,a,ut+nt,Jh);break;case Nf:km(this,a,ct/2,ut+nt,Jh)}}}else switch(b){case sg:Om(this,y,ut,this.direction);break;case eA:Tm(this,y,ut,this.direction);break;case Nf:km(this,y,ct,ut,this.direction);break;case nA:R1(this,y,ct,ut,this.direction)}else R1(this,y,ct,ut-ct/2,Jh)}this.updateParts(),this.network=null,this.isValidLayout=!0};function km(a,y,x,b,E){var z=a.Wp,nt=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var ot=y.length,at=0;at<ot;at++){var ut=b+(E===Jh?at*x/(360<=z?ot:ot-1):-(at*x)/ot),ct=y.M(at),yt=nt*Math.tan(ut)/a;yt=Math.sqrt((nt*nt+a*a*yt*yt)/(1+yt*yt)),ct.centerX=yt*Math.cos(ut),ct.centerY=yt*Math.sin(ut),ct.actualAngle=180*ut/Math.PI}}function Tm(a,y,x,b){var E=a.lc,z=a.me,nt=a.Ti;x=x*Math.PI/180;for(var ot=y.length,at=0;at<ot;at++){var ut=y.M(at),ct=y.M(at===ot-1?0:at+1),yt=z*Math.sin(x);ut.centerX=E*Math.cos(x),ut.centerY=yt,ut.actualAngle=180*x/Math.PI,isNaN(ut.diameter)&&lg(ut,0),isNaN(ct.diameter)&&lg(ct,0),ut=T0(a,E,z,b===Jh?x:-x,(ut.diameter+ct.diameter)/2+nt),x+=b===Jh?ut:-ut}}function Om(a,y,x,b){var E=a.lc,z=a.me,nt=a.Jp;x=x*Math.PI/180;for(var ot=y.length,at=0;at<ot;at++){var ut=y.M(at);ut.centerX=E*Math.cos(x),ut.centerY=z*Math.sin(x),ut.actualAngle=180*x/Math.PI,ut=T0(a,E,z,b===Jh?x:-x,nt),x+=b===Jh?ut:-ut}}function R1(a,y,x,b,E){var z=a.Wp;if(a.mj=0,a.Xr=new Dm,360>x){for(z=b+(E===Jh?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),ut=a.me*Math.sin(b*Math.PI/180),ct=y.Fa();if(ct.length===3)ct[0].centerX=z,ct[0].centerY=0,ct[1].centerX=ct[0].centerX-ct[0].width/2-ct[1].width/2-nt,ct[1].y=ct[0].y,ct[2].centerX=(ct[0].centerX+ct[1].centerX)/2,ct[2].y=ct[0].y-ct[2].height-nt;else if(ct.length===4)ct[0].centerX=z,ct[0].centerY=0,ct[2].centerX=-ct[0].centerX,ct[2].centerY=ct[0].centerY,ct[1].centerX=0,ct[1].y=Math.min(ct[0].y,ct[2].y)-ct[1].height-nt,ct[3].centerX=0,ct[3].y=Math.max(ct[0].y+ct[0].height+nt,ct[2].y+ct[2].height+nt);else{z=Ne.alloc();for(var yt=0;yt<ct.length&&(ct[yt].centerX=at,ct[yt].centerY=ut,!(yt>=ct.length-1));yt++)Q1(a,at,ut,ct,yt,E,z)||z1(a,at,ut,ct,yt,E,z),at=z.x,ut=z.y;if(Ne.free(z),a.mj++,!(23<a.mj)){at=ct[0].centerX,ut=ct[0].centerY,z=ct[ct.length-1].centerX,yt=ct[ct.length-1].centerY;var kt=Math.abs(at-z)-((ct[0].width+ct[ct.length-1].width)/2+nt),zt=Math.abs(ut-yt)-((ct[0].height+ct[ct.length-1].height)/2+nt);nt=0,1>Math.abs(zt)?Math.abs(at-z)<(ct[0].width+ct[ct.length-1].width)/2&&(nt=0):nt=0<zt?zt:1>Math.abs(kt)?0:kt,at=Math.abs(z)>Math.abs(yt)?0<z!=ut>yt:0<yt!=at<z,(at=E===Jh?at:!at)&&(nt=-Math.abs(nt),nt=Math.min(nt,-ct[ct.length-1].width),nt=Math.min(nt,-ct[ct.length-1].height)),a.Xr.compare(nt,ct),1<Math.abs(nt)&&(a.lc=8>a.mj?a.lc-nt/(2*Math.PI):5>ct.length&&10<nt?a.lc/2:a.lc-(0<nt?1.7:-2.3),a.me=a.lc*ot,_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),ut=nt*Math.sin(b*Math.PI/180),ct=Ne.alloc(),yt=y.Fa(),kt=0;kt<yt.length&&(yt[kt].centerX=at,yt[kt].centerY=ut,!(kt>=yt.length-1));kt++)Q1(a,at,ut,yt,kt,E,ct)||z1(a,at,ut,yt,kt,E,ct),at=ct.x,ut=ct.y;if(Ne.free(ct),a.mj++,!(23<a.mj)){if(at=Math.atan2(ut,at),at=E===Jh?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,ut=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var ct=!1;if(0<=x!=(z===Jh)){if(z=y+a,z>ot){if(z=y-a,z<-ot)return nt.x=z,nt.y=ut,!1;ct=!0}}else if(z=y-a,z<-ot){if(z=y+a,z>ot)return nt.x=z,nt.y=ut,!1;ct=!0}return ut=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*at,0>x!==ct&&(ut=-ut),Math.abs(x-ut)>(b[E].height+b[E+1].height)/2?(nt.x=z,nt.y=ut,!1):(nt.x=z,nt.y=ut,!0)}function z1(a,y,x,b,E,z,nt){var ot=a.lc,at=a.me,ut=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===Jh)){if(z=x-a,z<-at){if(z=x+a,z>at){nt.x=ut,nt.y=z;return}b=!0}}else if(z=x+a,z>at){if(z=x-a,z<-at){nt.x=ut,nt.y=z;return}b=!0}ut=Math.sqrt(1-Math.min(1,z*z/(at*at)))*ot,0>y!==b&&(ut=-ut),nt.x=ut,nt.y=z}fl.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},fl.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 Ne(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))},fl.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function Jv(a,y,x,b,E){var z=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&E!==void 0?E*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var nt=0,ot=b!==void 0&&E!==void 0?E/(z+1):Math.PI/(2*(z+1)),at=0,ut=0;ut<=z;ut++){b!==void 0&&E!==void 0?at=b+ut*E/z:at=ut*Math.PI/(2*z);var ct=Math.sin(at);nt+=Math.sqrt(1-a*a*ct*ct)*ot}return b!==void 0&&E!==void 0?(y>x?y:x)*nt:4*(y>x?y:x)*nt}function k0(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?Jv(a,1,x,b,E):Jv(a,1,x))}function T0(a,y,x,b,E){if(.001>Math.abs(a.Zm-1))return E/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,nt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var ot=0;;ot++){var at=Math.sin(b+ot*a);if(nt+=(y>x?y:x)*Math.sqrt(1-z*z*at*at)*a,nt>=E)return ot*a}}fl.prototype.sort=function(a){switch(this.sorting){case O0:break;case D0:a.reverse();break;case j0:a.sort(this.comparer);break;case U0:a.sort(this.comparer),a.reverse();break;case Gp:return this.ak(_w(a));default:qe("Invalid sorting type.")}return a};function _w(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new Pi;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}fl.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 Pi;for(var at=0,ut=0;ut<y.length;ut++){var ct=y[ut].length;if(ct===1)b.push(ut);else if(ct===0)E.add(a.M(ut));else{if(at===0)x.push(ut);else{for(var yt=ct=1/0,kt=-1,zt=[],Zt=0;Zt<x.length;Zt++)0>y[x[Zt]].indexOf(x[Zt===x.length-1?0:Zt+1])&&zt.push(Zt===x.length-1?0:Zt+1);if(zt.length===0)for(Zt=0;Zt<x.length;Zt++)zt.push(Zt);for(Zt=0;Zt<zt.length;Zt++){for(var he=zt[Zt],He=y[ut],Fe=0,Ve=0;Ve<nt.length;Ve++){var tn=z[nt[Ve]],on=z[ot[Ve]];if(tn<on){var Sn=tn;tn=on}else Sn=on;if(Sn<he&&he<=tn)for(on=0;on<He.length;on++){var Gn=He[on];0>x.indexOf(Gn)||Sn<z[Gn]&&z[Gn]<tn||Sn===z[Gn]||tn===z[Gn]||Fe++}else for(on=0;on<He.length;on++)Gn=He[on],0>x.indexOf(Gn)||Sn<z[Gn]&&z[Gn]<tn&&Sn!==z[Gn]&&tn!==z[Gn]&&Fe++}for(He=Fe,Ve=Fe=0;Ve<y[ut].length;Ve++)Sn=x.indexOf(y[ut][Ve]),0<=Sn&&(Sn=Math.abs(he-(Sn>=he?Sn+1:Sn)),Fe+=Sn<x.length+1-Sn?Sn:x.length+1-Sn);for(Ve=0;Ve<nt.length;Ve++)Sn=z[nt[Ve]],tn=z[ot[Ve]],Sn>=he&&Sn++,tn>=he&&tn++,Sn>tn&&(on=tn,tn=Sn,Sn=on),tn-Sn<(x.length+2)/2==(Sn<he&&he<=tn)&&Fe++;(He<ct||He===ct&&Fe<yt)&&(ct=He,yt=Fe,kt=he)}for(x.splice(kt,0,ut),ct=0;ct<x.length;ct++)z[x[ct]]=ct;for(ct=0;ct<y[ut].length;ct++)yt=y[ut][ct],0<=x.indexOf(yt)&&(nt.push(ut),ot.push(yt))}at++}}for(nt=x.length;;){for(z=!0,ot=0;ot<b.length;ot++)if(at=b[ot],ut=y[at][0],ct=x.indexOf(ut),0<=ct){for(kt=yt=0;kt<y[ut].length;kt++)zt=x.indexOf(y[ut][kt]),0>zt||zt===ct||(Zt=zt>ct?zt-ct:ct-zt,yt+=zt<ct!=Zt>nt-Zt?1:-1);x.splice(0>yt?ct:ct+1,0,at),b.splice(ot,1),ot--}else z=!1;if(z)break;x.push(b[0]),b.splice(0,1)}for(y=0;y<x.length;y++)E.add(a.M(x[y]));return E},Oe.Object.defineProperties(fl.prototype,{radius:{get:function(){return this.eo},set:function(a){this.eo!==a&&(0<a||isNaN(a))&&(this.eo=a,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(a){this.Cm!==a&&0<a&&(this.Cm=a,this.C())}},startAngle:{get:function(){return this.ro},set:function(a){this.ro!==a&&(this.ro=a,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(a){this.ul!==a&&(0<a&&360>=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==nA&&a!==eA&&a!==sg&&a!==Nf||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Jh&&a!==ag&&a!==Tg&&a!==Kp||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==O0&&a!==D0&&a!==j0&&!U0&&a!==Gp||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==R0&&a!==lp||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var eA=new vi(fl,"ConstantSpacing",0),sg=new vi(fl,"ConstantDistance",1),Nf=new vi(fl,"ConstantAngle",2),nA=new vi(fl,"Packed",3),Jh=new vi(fl,"Clockwise",4),ag=new vi(fl,"Counterclockwise",5),Tg=new vi(fl,"BidirectionalLeft",6),Kp=new vi(fl,"BidirectionalRight",7),O0=new vi(fl,"Forwards",8),D0=new vi(fl,"Reverse",9),j0=new vi(fl,"Ascending",10),U0=new vi(fl,"Descending",11),Gp=new vi(fl,"Optimized",12),R0=new vi(fl,"Pythagorean",13),lp=new vi(fl,"Circular",14);fl.className="CircularLayout",fl.ConstantSpacing=eA,fl.ConstantDistance=sg,fl.ConstantAngle=Nf,fl.Packed=nA,fl.Clockwise=Jh,fl.Counterclockwise=ag,fl.BidirectionalLeft=Tg,fl.BidirectionalRight=Kp,fl.Forwards=O0,fl.Reverse=D0,fl.Ascending=j0,fl.Descending=U0,fl.Optimized=Gp,fl.Pythagorean=R0,fl.Circular=lp;function Dm(){this.Pl=-1/0,this.tm=this.mk=null}Dm.prototype.compare=function(a,y){if(0<a&&0>this.Pl||Math.abs(a)<Math.abs(this.Pl)&&!(0>a&&0<this.Pl))for(this.Pl=a,this.mk=[],this.tm=[],a=0;a<y.length;a++)this.mk[a]=y[a].bounds.x,this.tm[a]=y[a].bounds.y},Dm.prototype.commit=function(a){if(this.mk!==null&&this.tm!==null)for(var y=0;y<this.mk.length;y++){var x=a.M(y);x.x=this.mk[y],x.y=this.tm[y]}},Dm.className="VertexArrangement";function Wp(a){xa.call(this,a)}Tn(Wp,xa),Wp.prototype.createVertex=function(){return new jm(this)},Wp.prototype.createEdge=function(){return new _0(this)},Wp.className="CircularNetwork";function jm(a){xu.call(this,a),this.u=this.Si=NaN}Tn(jm,xu);function lg(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===nA)if(x.nodeDiameterFormula===lp)a.Si=Math.max(a.width,a.height);else{if(x=Math.abs(Math.sin(y)),y=Math.abs(Math.cos(y)),x===0)return a.width;if(y===0)return a.height;a.Si=Math.min(a.height/x,a.width/y)}else a.Si=x.nodeDiameterFormula===lp?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}Oe.Object.defineProperties(jm.prototype,{diameter:{get:function(){return this.Si},set:function(a){this.Si!==a&&(this.Si=a)}},actualAngle:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}}}),jm.className="CircularVertex";function _0(a){Mc.call(this,a)}Tn(_0,Mc),_0.className="CircularEdge";function gh(a){Wa.call(this),this.ah=null,this.An=0,this.$d=new Vi(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)}Tn(gh,Wa),gh.prototype.cloneProtected=function(a){Wa.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},gh.prototype.createNetwork=function(){return new up(this)},gh.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;x.charge=this.electricalCharge(x),x.mass=this.gravitationalMass(x)}for(y=this.network.edges.iterator;y.next();)x=y.value,x.stiffness=this.springStiffness(x),x.length=this.springLength(x);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,x=y.Zx();for(var b=x.iterator;b.next();){this.network=b.value;for(var E=this.network.vertexes.iterator;E.next();){var z=E.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}K1(this,0,a)}this.network=y;var nt=b=x.iterator;b=this.arrangementSpacing;var ot=nt.count,at=!0;z=E=0;for(var ut=or(),ct=0;ct<ot+y.vertexes.count+2;ct++)ut[ct]=null;ot=0,nt.reset();for(var yt=ai.alloc();nt.next();)if(ct=nt.value,this.computeBounds(ct,yt),at)at=!1,E=yt.x+yt.width/2,z=yt.y+yt.height/2,ut[0]=new Ne(yt.x+yt.width+b.width,yt.y),ut[1]=new Ne(yt.x,yt.y+yt.height+b.height),ot=2;else{var kt=G1(ut,ot,E,z,yt.width,yt.height,b),zt=ut[kt],Zt=new Ne(zt.x+yt.width+b.width,zt.y),he=new Ne(zt.x,zt.y+yt.height+b.height);for(kt+1<ot&&ut.splice(kt+1,0,null),ut[kt]=Zt,ut[kt+1]=he,ot++,kt=zt.x-yt.x,zt=zt.y-yt.y,ct=ct.vertexes.iterator;ct.next();)Zt=ct.value,Zt.centerX+=kt,Zt.centerY+=zt}for(ai.free(yt),ct=y.vertexes.iterator;ct.next();)nt=ct.value,kt=nt.bounds,2>ot?(E=kt.x+kt.width/2,z=kt.y+kt.height/2,ut[0]=new Ne(kt.x+kt.width+b.width,kt.y),ut[1]=new Ne(kt.x,kt.y+kt.height+b.height),ot=2):(at=G1(ut,ot,E,z,kt.width,kt.height,b),yt=ut[at],zt=new Ne(yt.x+kt.width+b.width,yt.y),kt=new Ne(yt.x,yt.y+kt.height+b.height),at+1<ot&&ut.splice(at+1,0,null),ut[at]=zt,ut[at+1]=kt,ot++,nt.centerX=yt.x+nt.width/2,nt.centerY=yt.y+nt.height/2);for(Lr(ut),b=x.iterator;b.next();){for(x=b.value,E=x.vertexes.iterator;E.next();)y.dh(E.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}V1(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},gh.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},gh.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 up(a),E=0;E<a.ah.length;E++){var z=a.ah[E];if(1<z.Vd){b.dh(z);var nt=new Z1;nt.Rs=z.Vd,nt.Ss=z.width,nt.Qs=z.height,nt.Sv=z.focus.x,nt.Tv=z.focus.y,z.We===null&&(z.We=new Pi),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 Pi,E.Hj=ot),ot.add(nt),E.Vd--,E.sh+=nt.sh):nt.network===b&&(ot=nt.Hj,ot===null&&(ot=new Pi,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,En.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var at=E.Hj;if(at!==null&&0<at.count&&(nt=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=nt))){for(var ut=ot=0,ct=at.count-nt;ct<at.count;ct++){var yt=at.M(ct),kt=null;for(z=yt.edges.iterator;z.next();){var zt=z.value;if(zt.Ax(yt)===E){kt=zt;break}}kt!==null&&(ut+=kt.length,ot+=yt.width*yt.height)}z=E.centerX,at=E.centerY,ct=E.width,yt=E.height,kt=E.focus,zt=ct*yt,1>zt&&(zt=1),ot=En.sqrt((ot+zt+ut*ut*4/(nt*nt))/zt),nt=(ot-1)*ct/2,ot=(ot-1)*yt/2,E.bounds=new ai(z-kt.x-nt,at-kt.y-ot,ct+2*nt,yt+2*ot),E.focus=new Ne(kt.x+nt,kt.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 Ne(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=En.sqrt(z*z+nt*nt)/2;for(var ot=!1,at=nt=0,ut=0,ct=y.vertexes.iterator;ct.next();){var yt=ct.value;1>=yt.Vd?at++:(ot=!0,ut++,nt+=Math.atan2(y.centerY-yt.centerY,y.centerX-yt.centerX))}if(at!==0){for(0<ut&&(nt/=ut),ut=y=0,y=ot?2*Math.PI/(at+1):2*Math.PI/at,at%2===0&&(ut=y/2),1<x.count&&x.sort(function(zt,Zt){return zt===null||Zt===null||zt===Zt?0:Zt.width*Zt.height-zt.width*zt.height}),ot=at%2===0?0:1,x=x.iterator;x.next();)if(at=x.value,!(1<at.Vd||a.isFixed(at))){for(ct=null,yt=at.edges.iterator;yt.next();){ct=yt.value;break}yt=at.width;var kt=at.height;yt=En.sqrt(yt*yt+kt*kt)/2,ct=z+ct.length+yt,yt=nt+(y*(ot/2>>1)+ut)*(ot%2===0?1:-1),at.centerX=b+ct*Math.cos(yt),at.centerY=E+ct*Math.sin(yt),ot++}}}}function G1(a,y,x,b,E,z,nt){var ot=9e19,at=-1,ut=0;t:for(;ut<y;ut++){var ct=a[ut],yt=ct.x-x,kt=ct.y-b;if(yt=yt*yt+kt*kt,yt<ot){for(kt=ut-1;0<=kt;kt--)if(a[kt].y>ct.y&&a[kt].x-ct.x<E+nt.width)continue t;for(kt=ut+1;kt<y;kt++)if(a[kt].x>ct.x&&a[kt].y-ct.y<z+nt.height)continue t;at=ut,ot=yt}}return at}gh.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},gh.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,En.sqrt(x*x+a*a)):a+x<y?(b=b+E-nt,a=a+x-y,En.sqrt(b*b+a*a)):nt-(b+E):b>nt+ot?a>y+z?(x=b-nt-ot,a=a-y-z,En.sqrt(x*x+a*a)):a+x<y?(b=b-nt-ot,a=a+x-y,En.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,He){return he===null||He===null||he===He?0:he.centerX-He.centerX}):y.sort(function(he,He){return he===null||He===null||he===He?0:he.centerY-He.centerY}),x=a.Zf;var ut=b=ot=0;for(z=0;z<y.length;z++){nt=y[z],b=nt.bounds,ot=nt.focus,at=b.x+ot.x;var ct=b.y+ot.y;b=nt.charge*a.electricalFieldX(at,ct),ut=nt.charge*a.electricalFieldY(at,ct),b+=nt.mass*a.gravitationalFieldX(at,ct),ut+=nt.mass*a.gravitationalFieldY(at,ct),nt.forceX+=b,nt.forceY+=ut;for(var yt=z+1;yt<y.length;yt++){var kt=y[yt];if(kt!==nt){b=kt.bounds,ot=kt.focus,ut=b.x+ot.x;var zt=b.y+ot.y;if(at-ut>x||ut-at>x){if(E)break}else if(ct-zt>x||zt-ct>x){if(!E)break}else{var Zt=W1(nt,kt);1>Zt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new H0),Zt=b.random(),ot=b.random(),at>ut?(b=Math.abs(kt.bounds.right-nt.bounds.x),b=(1+b)*Zt):at<ut?(b=Math.abs(kt.bounds.x-nt.bounds.right),b=-(1+b)*Zt):(b=Math.max(kt.width,nt.width),b=(1+b)*Zt-b/2),ct>zt?(ut=Math.abs(kt.bounds.bottom-nt.bounds.y),ut=(1+ut)*ot):at<ut?(ut=Math.abs(kt.bounds.y-nt.bounds.bottom),ut=-(1+ut)*ot):(ut=Math.max(kt.height,nt.height),ut=(1+ut)*ot-ut/2)):(ot=-(nt.charge*kt.charge)/(Zt*Zt),b=(ut-at)/Zt*ot,ut=(zt-ct)/Zt*ot),nt.forceX+=b,nt.forceY+=ut,kt.forceX-=b,kt.forceY-=ut}}}}for(E=a.network.edges.iterator;E.next();)ot=E.value,x=ot.fromVertex,z=ot.toVertex,nt=x.bounds,at=x.focus,b=nt.x+at.x,nt=nt.y+at.y,ct=z.bounds,yt=z.focus,at=ct.x+yt.x,ct=ct.y+yt.y,yt=W1(x,z),1>yt?(yt=a.randomNumberGenerator,yt===null&&(a.randomNumberGenerator=yt=new H0),ot=yt.random(),yt=yt.random(),b=(b>at?1:-1)*(1+(z.width>x.width?z.width:x.width))*ot,ut=(nt>ct?1:-1)*(1+(z.height>x.height?z.height:x.height))*yt):(ot=ot.stiffness*(yt-ot.length),b=(at-b)/yt*ot,ut=(ct-nt)/yt*ot),x.forceX+=b,x.forceY+=ut,z.forceX-=b,z.forceY-=ut;for(E=b=0;E<y.length;E++)x=y[E],a.isFixed(x)?a.moveFixedVertex(x):b=Math.max(b,a.moveVertex(x)||0);return b>a.epsilonDistance*a.epsilonDistance}gh.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},gh.prototype.moveFixedVertex=function(){},gh.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},gh.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Ls,y.toSpot=Ls)}},gh.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)},gh.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},gh.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},gh.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},gh.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},gh.prototype.electricalFieldX=function(){return 0},gh.prototype.electricalFieldY=function(){return 0},gh.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},gh.prototype.gravitationalFieldX=function(){return 0},gh.prototype.gravitationalFieldY=function(){return 0},gh.prototype.isFixed=function(a){return a.isFixed},Oe.Object.defineProperties(gh.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"&&qe('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())}}}),gh.className="ForceDirectedLayout";function Z1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}Z1.className="ForceDirectedSubnet";function up(a){xa.call(this,a)}Tn(up,xa),up.prototype.createVertex=function(){return new Um(this)},up.prototype.createEdge=function(){return new Rm(this)},up.className="ForceDirectedNetwork";function Um(a){xu.call(this,a),this.ia=!1,this.Ha=this.u=NaN,this.sh=this.Vd=this.V=this.F=0,this.We=this.Hj=null,this.sv=0}Tn(Um,xu),Oe.Object.defineProperties(Um.prototype,{isFixed:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},charge:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},mass:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},forceX:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},forceY:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}}}),Um.className="ForceDirectedVertex";function Rm(a){Mc.call(this,a),this.j=this.o=NaN}Tn(Rm,Mc),Oe.Object.defineProperties(Rm.prototype,{stiffness:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},length:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}}}),Rm.className="ForceDirectedEdge";function H0(){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()}H0.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},H0.className="RandomNumberGenerator";function Zs(a){Wa.call(this),this.kc=this.ie=25,this.K=0,this.Dk=W0,this.Zk=V0,this.Qk=Z0,this.bj=4,this.rk=X0,this.bg=15,this.sf=!0,this.Cn=4,this.Ra=this.Iq=this.Ia=-1,this.Md=this.Hn=0,this.Ta=this.Kd=this.Ld=this.he=this.tc=null,this.Kn=0,this.Jn=this.kj=null,this.le=0,this.fl=null,this.Rf=new Ne,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Tn(Zs,Wa),Zs.prototype.cloneProtected=function(a){Wa.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},Zs.prototype.qb=function(a){a.classType===Zs?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:qe("Unknown enum value: "+a):Wa.prototype.qb.call(this,a)},Zs.prototype.createNetwork=function(){return new Zp(this)},Zs.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!==Hm&&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===Hm&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var b=x.value;b.valid=!1,y.push(b)}for(x=0;x<y.length;x++){b=y[x];var E=b.fromVertex,z=b.toVertex;if(!(b.valid||(E.node===null&&E.data===null||z.node===null&&z.data===null)&&E.layer===z.layer)){var nt=0,ot=0,at=0,ut=0;if(b.link!==null){if(ot=b.link,ot===null)continue;var ct=E.node;if(nt=z.node,ct===null||nt===null)continue;var yt=ot.fromNode;at=ot.toNode;for(var kt=ot.fromPort;kt!==null&&!kt.Ed();)kt=kt.panel;for(ot=ot.toPort;ot!==null&&!ot.Ed();)ot=ot.panel;if(b.rev){ut=yt;var zt=kt;yt=at,kt=ot,at=ut,ot=zt}var Zt=E.focus;ut=z.focus;var he=b.rev?z.bounds:E.bounds;zt=Ne.alloc(),ct!==yt?he.w()&&yt.isVisible()?yt.actualBounds.w()?(bf(yt,kt,bo,zt),zt.x+=yt.actualBounds.x-he.x,zt.y+=yt.actualBounds.y-he.y):(bf(yt,kt,bo,zt),zt.w()||zt.assign(Zt)):zt.assign(Zt):he.w()?(bf(yt,kt,bo,zt),zt.w()||zt.assign(Zt)):zt.assign(Zt),yt=b.rev?E.bounds:z.bounds,ct=Ne.alloc(),nt!==at?yt.w()&&at.isVisible()?at.actualBounds.w()?(bf(at,ot,bo,ct),ct.x+=at.actualBounds.x-yt.x,ct.y+=at.actualBounds.y-yt.y):(bf(at,ot,bo,ct),ct.w()||ct.assign(ut)):ct.assign(ut):yt.w()?(bf(at,ot,bo,ct),ct.w()||ct.assign(ut)):ct.assign(ut),this.K===90||this.K===270?(nt=Math.round((zt.x-Zt.x)/this.kc),at=zt.x,ot=Math.round((ct.x-ut.x)/this.kc),ut=ct.x):(nt=Math.round((zt.y-Zt.y)/this.kc),at=zt.y,ot=Math.round((ct.y-ut.y)/this.kc),ut=ct.y),Ne.free(zt),Ne.free(ct),b.portFromColOffset=nt,b.portFromPos=at,b.portToColOffset=ot,b.portToPos=ut}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(zt=E.layer,ct=z.layer,yt=0,he=b.link,he!==null){var He=he.fromPort,Fe=he.toPort;if(He!==null&&Fe!==null){var Ve=he.fromNode;if(kt=he.toNode,Ve!==null&&kt!==null){var tn=G0(this,!0),on=G0(this,!1),Sn=this.setsPortSpots?tn:he.computeSpot(!0,He);Zt=this.setsPortSpots?on:he.computeSpot(!1,Fe);var Gn=he.isOrthogonal;Sn.$c()&&Sn.Hf(on)&&Zt.$c()&&Zt.Hf(tn)?yt=0:(tn=he.getLinkPoint(Ve,He,Sn,!0,Gn,kt,Fe,Ne.alloc()),on=he.getLinkDirection(Ve,He,tn,Sn,!0,Gn,kt,Fe),Ne.free(tn),Sn.ys()||on!==iw(this,b,!0)?this.setsPortSpots&&Ve!==null&&Ve.ports.count===1&&b.rev&&(yt+=1):yt+=1,Sn=he.getLinkPoint(kt,Fe,Zt,!1,Gn,Ve,He,Ne.alloc()),he=he.getLinkDirection(kt,Fe,Sn,Zt,!1,Gn,Ve,He),Ne.free(Sn),Zt.ys()||he!==iw(this,b,!1)?this.setsPortSpots&&kt!==null&&kt.ports.count===1&&b.rev&&(yt+=2):yt+=2)}}}if(kt=yt,yt=kt===1||kt===3,(kt=kt===2||kt===3)&&(Zt=a.createVertex(),Zt.node=null,Zt.Dj=1,Zt.layer=zt,Zt.near=E,a.dh(Zt),E=a.Zj(E,Zt,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=nt,E.portToColOffset=0,E.portFromPos=at,E.portToPos=0,E=Zt),he=1,yt&&he--,zt-ct>he&&0<zt){for(b.valid=!1,Zt=a.createVertex(),Zt.node=null,Zt.Dj=2,Zt.layer=zt-1,a.dh(Zt),E=a.Zj(E,Zt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=kt?0:nt,E.portToColOffset=0,E.portFromPos=kt?0:at,E.portToPos=0,E=Zt,zt--;zt-ct>he&&0<zt;)Zt=a.createVertex(),Zt.node=null,Zt.Dj=3,Zt.layer=zt-1,a.dh(Zt),E=a.Zj(E,Zt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=Zt,zt--;E=a.Zj(Zt,z,b.link),E.valid=!yt,yt&&(Zt.near=z),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=ot,E.portFromPos=0,E.portToPos=ut}else b.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,x=this.Md=this.Hn=0;x<=this.Ia;x++)a[x]>a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]<a[this.Hn]&&(this.Hn=x);for(this.fl=[],x=0;x<a.length;x++)this.fl[x]=[];for(y.reset();y.next();)a=y.value,this.fl[a.layer][a.index]=a;for(this.Ra=-1,a=0;a<=this.Ia;a++){for(y=ug(this,a),x=0,b=this.tc[a],z=0;z<b;z++)E=y[z],x+=this.nodeMinColumnSpace(E,!0),E.column=x,x+=1,x+=this.nodeMinColumnSpace(E,!1);this.Ra=Math.max(this.Ra,x-1),hg(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Zs.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}Zs.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},Zs.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 dc(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var b=x.value;a.kj[y]=b.layer,y++,a.kj[y]=b.column,y++,a.kj[y]=b.index,y++}return a.kj}function pd(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var b=a.value;b.layer=y[x],x++,b.column=y[x],x++,b.index=y[x],x++}}function X1(a,y,x){var b=ug(a,y),E=a.tc[y];(a.Jn===null||a.Jn.length<E*E)&&(a.Jn=[]);for(var z=a.Jn,nt=0;nt<E;nt++){var ot=0,at=b[nt],ut=at.near;if(ut!==null&&ut.layer===at.layer)if(at=ut.index,at>nt)for(var ct=nt+1;ct<at;ct++){var yt=b[ct];yt.near===ut&&yt.Dj===ut.Dj||ot++}else for(ct=nt-1;ct>at;ct--)yt=b[ct],yt.near===ut&&yt.Dj===ut.Dj||ot++;var kt;if(0<=x)for(at=b[nt].sourceEdgesArrayAccess,ut=0;ut<at.length;ut++){var zt=at[ut];if(zt.valid&&zt.fromVertex.layer!==y)for(yt=zt.fromVertex.index,ct=zt.portToPos,zt=zt.portFromPos,kt=ut+1;kt<at.length;kt++){var Zt=at[kt];if(Zt.valid&&Zt.fromVertex.layer!==y){var he=Zt.fromVertex.index,He=Zt.portToPos;Zt=Zt.portFromPos,ct<He&&(yt>he||yt===he&&zt>Zt)&&ot++,He<ct&&(he>yt||he===yt&&Zt>zt)&&ot++}}}if(0>=x){for(at=b[nt].destinationEdgesArrayAccess,ut=0;ut<at.length;ut++)if(zt=at[ut],zt.valid&&zt.toVertex.layer!==y)for(yt=zt.toVertex.index,ct=zt.portToPos,zt=zt.portFromPos,kt=ut+1;kt<at.length;kt++)Zt=at[kt],Zt.valid&&Zt.toVertex.layer!==y&&(he=Zt.toVertex.index,He=Zt.portToPos,Zt=Zt.portFromPos,zt<Zt&&(yt>he||yt===he&&ct>He)&&ot++,Zt<zt&&(he>yt||he===yt&&He>ct)&&ot++)}for(z[nt*E+nt]=ot,at=nt+1;at<E;at++){var Fe=0,Ve=0;if(0<=x){ot=b[nt].sourceEdgesArrayAccess;var tn=b[at].sourceEdgesArrayAccess;for(ut=0;ut<ot.length;ut++)if(zt=ot[ut],zt.valid&&zt.fromVertex.layer!==y)for(yt=zt.fromVertex.index,zt=zt.portFromPos,kt=0;kt<tn.length;kt++)Zt=tn[kt],Zt.valid&&Zt.fromVertex.layer!==y&&(he=Zt.fromVertex.index,Zt=Zt.portFromPos,(yt<he||yt===he&&zt<Zt)&&Ve++,(he<yt||he===yt&&Zt<zt)&&Fe++)}if(0>=x){for(ot=b[nt].destinationEdgesArrayAccess,tn=b[at].destinationEdgesArrayAccess,ut=0;ut<ot.length;ut++)if(zt=ot[ut],zt.valid&&zt.toVertex.layer!==y)for(yt=zt.toVertex.index,ct=zt.portToPos,kt=0;kt<tn.length;kt++)Zt=tn[kt],Zt.valid&&Zt.toVertex.layer!==y&&(he=Zt.toVertex.index,He=Zt.portToPos,(yt<he||yt===he&&ct<He)&&Ve++,(he<yt||he===yt&&He<ct)&&Fe++)}z[nt*E+at]=Fe,z[at*E+nt]=Ve}}return hg(a,y,b),z}Zs.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=X1(this,y,1),b=this.tc[y],E=0;E<b;E++)for(var z=E;z<b;z++)a+=x[E*b+z];return a};function Q0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,z=ug(b,E),nt=b.tc[E],ot=0,at=0;at<nt;at++){var ut=z[at].destinationEdgesArrayAccess;if(ut!==null)for(var ct=0;ct<ut.length;ct++){var yt=ut[ct];if(yt.valid&&yt.toVertex.layer!==E){var kt=yt.fromVertex.column+yt.portFromColOffset,zt=yt.toVertex.column+yt.portToColOffset;ot+=(Math.abs(kt-zt)+1)*qv(yt)}}}hg(b,E,z),y+=ot}return y}Zs.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;a=Math.min(a,x.column-this.nodeMinColumnSpace(x,!0)),this.Ra=Math.max(this.Ra,x.column+this.nodeMinColumnSpace(x,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function ty(a,y,x){for(var b=ug(a,y),E=a.tc[y],z=[],nt=0;nt<E;nt++){var ot=b[nt],at=null;0>=x&&(at=ot.sourceEdgesArrayAccess);var ut=null;0<=x&&(ut=ot.destinationEdgesArrayAccess);var ct=0,yt=0,kt=ot.near;if(kt!==null&&kt.layer===ot.layer&&(ct+=kt.column-1,yt++),at!==null)for(kt=0;kt<at.length;kt++){ot=at[kt];var zt=ot.fromVertex;ot.valid&&!ot.rev&&zt.layer!==y&&(ct+=zt.column,yt++)}if(ut!==null)for(at=0;at<ut.length;at++)ot=ut[at],kt=ot.toVertex,ot.valid&&!ot.rev&&kt.layer!==y&&(ct+=kt.column,yt++);z[nt]=yt===0?-1:ct/yt}return hg(a,y,b),z}function $1(a,y,x){for(var b=ug(a,y),E=a.tc[y],z=[],nt=0;nt<E;nt++){var ot=b[nt],at=null;0>=x&&(at=ot.sourceEdgesArrayAccess);var ut=null;0<=x&&(ut=ot.destinationEdgesArrayAccess);var ct=0,yt=[],kt=ot.near;if(kt!==null&&kt.layer===ot.layer&&(yt[ct]=kt.column-1,ct++),ot=void 0,at!==null)for(kt=0;kt<at.length;kt++){ot=at[kt];var zt=ot.fromVertex;ot.valid&&!ot.rev&&zt.layer!==y&&(yt[ct]=zt.column+ot.portFromColOffset,ct++)}if(ut!==null)for(at=0;at<ut.length;at++)ot=ut[at],kt=ot.toVertex,ot.valid&&!ot.rev&&kt.layer!==y&&(yt[ct]=kt.column+ot.portToColOffset,ct++);ct===0?z[nt]=-1:(yt.sort(function(Zt,he){return Zt-he}),ut=ct>>1,z[nt]=ct&1?yt[ut]:yt[ut-1]+yt[ut]>>1)}return hg(a,y,b),z}function _m(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var nt=y.destinationEdges;nt.next();){var ot=nt.value,at=ot.toVertex,ut=y.layer-at.layer;ot=a.linkMinLength(ot),ut===ot&&_m(a,at,x,b,E,z)}if(z)for(nt=y.sourceEdges;nt.next();)ot=nt.value,at=ot.fromVertex,ut=at.layer-y.layer,ot=a.linkMinLength(ot),ut===ot&&_m(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)}}Zs.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case ry:a=this.network;var y=0,x=a.vertexes.count-1,b=[];b.length=x+1;for(var E=a.vertexes.iterator;E.next();)E.value.valid=!0;for(;Ww(a)!==null;){for(E=Y1(a);E!==null;)b[x]=E,x--,E.valid=!1,E=Y1(a);for(E=J1(a);E!==null;)b[y]=E,y++,E.valid=!1,E=J1(a);E=null;for(var z=0,nt=this.network.vertexes.iterator;nt.next();){var ot=nt.value;if(ot.valid){for(var at=0,ut=ot.destinationEdges;ut.next();)ut.value.toVertex.valid&&at++;ut=0;for(var ct=ot.sourceEdges;ct.next();)ct.value.fromVertex.valid&&ut++;(E===null||z<at-ut)&&(E=ot,z=at-ut)}}E!==null&&(b[y]=E,y++,E.valid=!1)}for(y=0;y<a.vertexes.count;y++)b[y].index=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case W0:for(b=this.network.vertexes.iterator;b.next();)a=b.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,b.reset();b.next();)y=b.value,y.sourceEdges.count===0&&ny(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&ny(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,E=b.toVertex,z=E.finish,E.Ll<y.Ll&&x<z&&(this.network.gm(b),b.rev=!0));break;case Hm:for(a=this.network,y=a.vertexes.iterator,b=1/0;y.next();)b=Math.min(b,y.value.layer);if(1/0>b){if(0>b)for(y.reset();y.next();)y.value.layer-=b;for(b=[],y.reset();y.next();)x=y.value,E=b[x.layer],E===void 0?b[x.layer]=[x]:E.push(x);for(x=y=0;x<b.length;x++)if(E=b[x],!E||E.length===0)y++;else if(0<x)for(z=0;z<E.length;z++)E[z].layer-=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function Ww(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function Y1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.destinationEdges;b.next();)if(b.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function J1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.sourceEdges;b.next();)if(b.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function ny(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var b=x.value,E=b.toVertex;E.Ll===-1&&(b.forest=!0,ny(a,E))}y.finish=a.Kn,a.Kn++}Zs.prototype.assignLayers=function(){switch(this.Zk){case oy:q1(this);break;case sy:for(var a,y=this.network.vertexes.iterator;y.next();)a=ew(this,y.value),this.Ia=Math.max(a,this.Ia);for(y.reset();y.next();)a=y.value,a.layer=this.Ia-a.layer;break;default:case V0:for(q1(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&nw(this,a);for(a=1/0,y.reset();y.next();)a=Math.min(a,y.value.layer);for(this.Ia=-1,y.reset();y.next();){var x=y.value;x.layer-=a,this.Ia=Math.max(this.Ia,x.layer)}}};function q1(a){for(var y=a.network.vertexes.iterator;y.next();){var x=tw(a,y.value);a.Ia=Math.max(x,a.Ia)}}function tw(a,y){var x=0;if(y.layer===-1){for(var b=y.destinationEdges;b.next();){var E=b.value,z=E.toVertex;E=a.linkMinLength(E),x=Math.max(x,tw(a,z)+E)}y.layer=x}else x=y.layer;return x}function ew(a,y){var x=0;if(y.layer===-1){for(var b=y.sourceEdges;b.next();){var E=b.value,z=E.fromVertex;E=a.linkMinLength(E),x=Math.max(x,ew(a,z)+E)}y.layer=x}else x=y.layer;return x}function nw(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)nw(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var b=y.sourceEdgesArrayAccess,E=b.length,z=0;z<E;z++){var nt=b[z],ot=nt.fromVertex,at=nt.toVertex;nt=a.linkMinLength(nt),ot.layer-at.layer>nt&&_m(a,ot,0,-1,!0,!1)}for(_m(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,ot=0,at=null,nt=a.network.vertexes.iterator;nt.next();){var ut=nt.value;if(ut.component===1){var ct=0,yt=!1,kt=ut.sourceEdgesArrayAccess;E=kt.length;for(var zt=0;zt<E;zt++){var Zt=kt[zt],he=Zt.fromVertex;ct+=1,he.component!==1&&(z+=1,he=he.layer-ut.layer,Zt=a.linkMinLength(Zt),b=Math.min(b,he-Zt))}for(kt=ut.destinationEdgesArrayAccess,E=kt.length,zt=0;zt<E;zt++)Zt=kt[zt].toVertex,--ct,Zt.component!==1?--z:yt=!0;(at===null||ct<ot)&&!yt&&(at=ut,ot=ct)}}if(0<z){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else at.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(_m(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,z=0,ot=null,at=a.network.vertexes.iterator;at.next();)if(nt=at.value,nt.component===1){for(ut=0,ct=!1,kt=nt.sourceEdgesArrayAccess,yt=kt.length,zt=0;zt<yt;zt++)Zt=kt[zt].fromVertex,ut+=1,Zt.component!==1?b+=1:ct=!0;for(kt=nt.destinationEdgesArrayAccess,yt=kt.length,zt=0;zt<yt;zt++)Zt=kt[zt],he=Zt.toVertex,--ut,he.component!==1&&(--b,he=nt.layer-he.layer,Zt=a.linkMinLength(Zt),E=Math.min(E,he-Zt));(ot===null||ut>z)&&!ct&&(ot=nt,z=ut)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else ot.component=0}}}function iw(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}Zs.prototype.initializeIndices=function(){switch(this.Qk){default:case ly:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case Z0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&rw(this,x);break;case ay:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&ow(this,x)}};function rw(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var b=0;b<y.length-1;b++){var E=y[b],z=y[b+1];E.portFromColOffset>z.portFromColOffset&&(x=!0,y[b]=z,y[b+1]=E)}}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.toVertex,b.index===-1&&rw(a,b))}function ow(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var b=!0;b;)for(b=!1,x=0;x<y.length-1;x++){var E=y[x],z=y[x+1];E.portToColOffset>z.portToColOffset&&(b=!0,y[x]=z,y[x+1]=E)}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.fromVertex,b.index===-1&&ow(a,b))}Zs.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=dc(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)z0(this,b,1),Dd(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=dc(this)),b=this.Ia;0<=b;b--)z0(this,b,-1),Dd(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=dc(this))}for(pd(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)z0(this,b,0),Dd(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=dc(this)),b=this.Ia;0<=b;b--)z0(this,b,0),Dd(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=dc(this))}pd(this,y);var z,nt,ot;switch(this.rk){case uy:break;case hy:for(ot=a+1;(b=this.countCrossings())<ot;)for(ot=b,x=this.Ia;0<=x;x--)for(nt=0;nt<=x;nt++){for(z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Dd(this,b,-1)||z;for(E=this.countCrossings(),E>=a?pd(this,y):(a=E,y=dc(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Dd(this,b,1)||z;for(E=this.countCrossings(),E>=a?pd(this,y):(a=E,y=dc(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Dd(this,b,1)||z;for(E>=a?pd(this,y):(a=E,y=dc(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Dd(this,b,-1)||z;for(E>=a?pd(this,y):(a=E,y=dc(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Dd(this,b,0)||z;for(E>=a?pd(this,y):(a=E,y=dc(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Dd(this,b,0)||z;E>=a?pd(this,y):(a=E,y=dc(this))}break;default:case X0:for(x=this.Ia,nt=0,ot=a+1;(b=this.countCrossings())<ot;){for(ot=b,z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Dd(this,b,-1)||z;for(E=this.countCrossings(),E>=a?pd(this,y):(a=E,y=dc(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Dd(this,b,1)||z;for(E=this.countCrossings(),E>=a?pd(this,y):(a=E,y=dc(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Dd(this,b,1)||z;for(E>=a?pd(this,y):(a=E,y=dc(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Dd(this,b,-1)||z;for(E>=a?pd(this,y):(a=E,y=dc(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Dd(this,b,0)||z;for(E>=a?pd(this,y):(a=E,y=dc(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Dd(this,b,0)||z;E>=a?pd(this,y):(a=E,y=dc(this))}}pd(this,y)};function z0(a,y,x){var b=ug(a,y),E=a.tc[y],z=$1(a,y,x),nt=ty(a,y,x);for(x=0;x<E;x++)nt[x]===-1&&(nt[x]=b[x].column),z[x]===-1&&(z[x]=b[x].column);for(var ot=!0,at;ot;)for(ot=!1,x=0;x<E-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&nt[x+1]<nt[x])&&(ot=!0,at=z[x],z[x]=z[x+1],z[x+1]=at,at=nt[x],nt[x]=nt[x+1],nt[x+1]=at,at=b[x],b[x]=b[x+1],b[x+1]=at);for(x=z=0;x<E;x++)at=b[x],at.index=x,z+=a.nodeMinColumnSpace(at,!0),at.column=z,z+=1,z+=a.nodeMinColumnSpace(at,!1);hg(a,y,b)}function Dd(a,y,x){var b=ug(a,y),E=a.tc[y];x=X1(a,y,x);var z,nt=[];for(z=0;z<E;z++)nt[z]=-1;var ot=[];for(z=0;z<E;z++)ot[z]=-1;for(var at=!1,ut=!0;ut;)for(ut=!1,z=0;z<E-1;z++){var ct=x[b[z].index*E+b[z+1].index],yt=x[b[z+1].index*E+b[z].index],kt=0,zt=0,Zt=b[z].column,he=b[z+1].column,He=a.nodeMinColumnSpace(b[z],!0),Fe=a.nodeMinColumnSpace(b[z],!1),Ve=a.nodeMinColumnSpace(b[z+1],!0),tn=a.nodeMinColumnSpace(b[z+1],!1);He=Zt-He+Ve,Fe=he-Fe+tn;var on=b[z].sourceEdges.iterator;for(on.reset();on.next();)if(Ve=on.value,tn=Ve.fromVertex,Ve.valid&&tn.layer===y){for(Ve=0;b[Ve]!==tn;)Ve++;Ve<z&&(kt+=2*(z-Ve),zt+=2*(z+1-Ve)),Ve===z+1&&(kt+=1),Ve>z+1&&(kt+=4*(Ve-z),zt+=4*(Ve-(z+1)))}for(on=b[z].destinationEdges.iterator,on.reset();on.next();)if(Ve=on.value,tn=Ve.toVertex,Ve.valid&&tn.layer===y){for(Ve=0;b[Ve]!==tn;)Ve++;Ve===z+1&&(zt+=1)}for(on=b[z+1].sourceEdges.iterator,on.reset();on.next();)if(Ve=on.value,tn=Ve.fromVertex,Ve.valid&&tn.layer===y){for(Ve=0;b[Ve]!==tn;)Ve++;Ve<z&&(kt+=2*(z+1-Ve),zt+=2*(z-Ve)),Ve===z&&(zt+=1),Ve>z+1&&(kt+=4*(Ve-(z+1)),zt+=4*(Ve-z))}for(on=b[z+1].destinationEdges.iterator,on.reset();on.next();)if(Ve=on.value,tn=Ve.toVertex,Ve.valid&&tn.layer===y){for(Ve=0;b[Ve]!==tn;)Ve++;Ve===z&&(kt+=1)}Ve=tn=0,on=nt[b[z].index];var Sn=ot[b[z].index],Gn=nt[b[z+1].index],nr=ot[b[z+1].index];on!==-1&&(tn+=Math.abs(on-Zt),Ve+=Math.abs(on-Fe)),Sn!==-1&&(tn+=Math.abs(Sn-Zt),Ve+=Math.abs(Sn-Fe)),Gn!==-1&&(tn+=Math.abs(Gn-he),Ve+=Math.abs(Gn-He)),nr!==-1&&(tn+=Math.abs(nr-he),Ve+=Math.abs(nr-He)),(zt<kt-.5||zt===kt&&yt<ct-.5||zt===kt&&yt===ct&&Ve<tn-.5)&&(ut=at=!0,b[z].column=Fe,b[z+1].column=He,ct=b[z],b[z]=b[z+1],b[z+1]=ct)}for(z=0;z<E;z++)b[z].index=z;return hg(a,y,b),at}Zs.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&tx)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var x=[];for(y=0;y<=this.Ia;y++)x[y]=0;for(var b,E=this.network.vertexes.iterator;E.next();){var z=E.value;y=z.layer,b=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],b+z)}for(E.reset();E.next();)z=E.value,y=z.layer,b=z.column,z.column=(8*(this.Ra-x[y])>>1)+8*b;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Vp(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Vp(this,y,-1)||x;x=Vp(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)iy(this,y,1);for(y=this.Md-1;0<=y;y--)iy(this,y,-1);iy(this,this.Md,0)}if(a&&(sw(this,-1),sw(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Vp(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Vp(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Vp(this,y,0)||x}}else $w(this)};function Vp(a,y,x){for(var b=!1;Vw(a,y,x);)b=!0;return b}function Vw(a,y,x){var b,E=ug(a,y),z=a.tc[y],nt=ty(a,y,-1);if(0<x)for(b=0;b<z;b++)nt[b]=-1;var ot=ty(a,y,1);if(0>x)for(b=0;b<z;b++)ot[b]=-1;for(var at=!1,ut=!0;ut;)for(ut=!1,b=0;b<z;b++){var ct=E[b].column,yt=a.nodeMinColumnSpace(E[b],!0),kt=a.nodeMinColumnSpace(E[b],!1),zt=0;0>b-1||ct-E[b-1].column-1>yt+a.nodeMinColumnSpace(E[b-1],!1)?zt=ct-1:zt=ct,yt=b+1>=z||E[b+1].column-ct-1>kt+a.nodeMinColumnSpace(E[b+1],!0)?ct+1:ct;var Zt=kt=0,he=0;if(0>=x)for(var He=E[b].sourceEdges.iterator;He.next();){var Fe=He.value,Ve=Fe.fromVertex;if(Fe.valid&&Ve.layer!==y){var tn=qv(Fe),on=Fe.portFromColOffset;Fe=Fe.portToColOffset,Ve=Ve.column,kt+=(Math.abs(ct+Fe-(Ve+on))+1)*tn,Zt+=(Math.abs(zt+Fe-(Ve+on))+1)*tn,he+=(Math.abs(yt+Fe-(Ve+on))+1)*tn}}if(0<=x)for(He=E[b].destinationEdges.iterator;He.next();)Fe=He.value,Ve=Fe.toVertex,Fe.valid&&Ve.layer!==y&&(tn=qv(Fe),on=Fe.portFromColOffset,Fe=Fe.portToColOffset,Ve=Ve.column,kt+=(Math.abs(ct+on-(Ve+Fe))+1)*tn,Zt+=(Math.abs(zt+on-(Ve+Fe))+1)*tn,he+=(Math.abs(yt+on-(Ve+Fe))+1)*tn);Fe=on=tn=0,He=nt[E[b].index],Ve=ot[E[b].index],He!==-1&&(tn+=Math.abs(He-ct),on+=Math.abs(He-zt),Fe+=Math.abs(He-yt)),Ve!==-1&&(tn+=Math.abs(Ve-ct),on+=Math.abs(Ve-zt),Fe+=Math.abs(Ve-yt)),Zt<kt||Zt===kt&&on<tn?(ut=at=!0,E[b].column=zt):(he<kt||he===kt&&Fe<tn)&&(ut=at=!0,E[b].column=yt)}return hg(a,y,E),a.normalize(),at}function iy(a,y,x){var b=ug(a,y),E=a.tc[y],z=$1(a,y,x),nt=[];for(x=0;x<E;x++)nt[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<E;x++){var ot=b[x].column,at=a.nodeMinColumnSpace(b[x],!0),ut=a.nodeMinColumnSpace(b[x],!1),ct=0;if(nt[x]===-1)if(x===0&&x===E-1)ct=ot;else if(x===0){var yt=b[x+1].column;yt-ot===ut+a.nodeMinColumnSpace(b[x+1],!0)?ct=ot-1:ct=ot}else x===E-1?(yt=b[x-1].column,ct=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,ut=yt-a.nodeMinColumnSpace(b[x+1],!0)-ut-1,ct=(at+ut)/2|0);else x===0&&x===E-1?ct=nt[x]:x===0?(yt=b[x+1].column,ut=yt-a.nodeMinColumnSpace(b[x+1],!0)-ut-1,ct=Math.min(nt[x],ut)):x===E-1?(yt=b[x-1].column,at=yt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,ct=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,ut=yt-a.nodeMinColumnSpace(b[x+1],!0)-ut-1,at<nt[x]&&nt[x]<ut?ct=nt[x]:at>=nt[x]?ct=at:ut<=nt[x]&&(ct=ut));ct!==ot&&(z=!0,b[x].column=ct)}hg(a,y,b),a.normalize()}function Zw(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var E=b.value,z=a.nodeMinColumnSpace(E,!0),nt=a.nodeMinColumnSpace(E,!1);if(E.column-z<=y&&E.column+nt>=y){x=!1;break}}if(a=!1,x)for(b.reset();b.next();)x=b.value,x.column>y&&(--x.column,a=!0);return a}function Xw(a,y){var x=y+1,b,E=[],z=[];for(b=0;b<=a.Ia;b++)E[b]=!1,z[b]=!1;for(var nt=a.network.vertexes.iterator;nt.next();){b=nt.value;var ot=b.column-a.nodeMinColumnSpace(b,!0),at=b.column+a.nodeMinColumnSpace(b,!1);ot<=y&&at>=y&&(E[b.layer]=!0),ot<=x&&at>=x&&(z[b.layer]=!0)}for(ot=!0,x=!1,b=0;b<=a.Ia;b++)ot=ot&&!(E[b]&&z[b]);if(ot)for(nt.reset();nt.next();)a=nt.value,a.column>y&&(--a.column,x=!0);return x}function sw(a,y){for(var x=0;x<=a.Ra;x++)for(;Zw(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Xw(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=dc(a),z=Q0(a);for(b=z+1;z<b;){b=z,aw(a,x,1);var nt=Q0(a);nt>z?pd(a,E):nt<z&&(z=nt,E=dc(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=dc(a),z=Q0(a),b=z+1;z<b;)b=z,aw(a,x,-1),nt=Q0(a),nt>z?pd(a,E):nt<z&&(z=nt,E=dc(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=or(),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 Ci,Yw(y,x);var z=null,nt=null,ot=null,at=null,ut=(a.ve&1)!==0,ct=(a.ve&2)!==0,yt=(a.ve&4)!==0,kt=(a.ve&8)!==0;for(ut&&(a.verticalAlignment(y,x,!0),z=K0(a,y,!0,!1)),y.reverse(),yt&&(a.verticalAlignment(y,x,!1),ot=K0(a,y,!1,!1)),b=Cs(y),E=b.next();!E.done;E=b.next())E.value.reverse();kt&&(a.verticalAlignment(y,x,!1),at=K0(a,y,!1,!0)),y.reverse(),ct&&(a.verticalAlignment(y,x,!0),nt=K0(a,y,!0,!0)),Lr(y),a.u(z,nt,ot,at),a.network.vertexes.each(function(zt){var Zt=or();ut&&Zt.push(z.get(zt)),ct&&Zt.push(nt.get(zt)),yt&&Zt.push(ot.get(zt)),kt&&Zt.push(at.get(zt)),Zt.sort(function(He,Fe){return He-Fe});var he=Zt.length;he=(Zt[Math.floor((he-1)/2)]+Zt[Math.ceil((he-1)/2)])/2,Lr(Zt),zt.zc=he})}function Yw(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var E=0,z=0,nt=a[b],ot=a[b+1],at=0;z<ot.length;at++){var ut=ot[at];t:{if(ut.node===null){var ct=cy(ut);if(0<ct.length){ct=ct[0].node===null;break t}}ct=!1}var yt=ct;if(at===ot.length-1||yt){for(ct=nt.length-1,yt&&(ct=cy(ut)[0].index);z<=at;){if(ut=ot[z],!ut.bo){yt=[];for(var kt=Cs(ut.sourceEdgesArrayAccess),zt=kt.next();!zt.done;zt=kt.next())zt=zt.value,zt.valid&&yt.push(zt);ut.bo=yt}for(ut=Cs(ut.bo),yt=ut.next();!yt.done;yt=ut.next())yt=yt.value,kt=yt.fromVertex.index,(kt<E||kt>ct)&&y.add(yt);z++}E=ct}}}Zs.prototype.verticalAlignment=function(a,y,x){Jw(a),a=Cs(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=Cs(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var nt=x?cy(z):ex(z),ot=nt.length;if(0<ot){nt.sort(function(yt,kt){return yt.vi-kt.vi});var at=(ot-1)/2;for(ot=Math.floor(at),at=Math.ceil(at);ot<=at;ot++)if(z.align===z){var ut=nt[ot],ct=void 0;ct=x?$0(ut,z):$0(z,ut),!y.contains(ct)&&E<ut.vi&&(ut.align=z,z.root=ut.root,z.align=ut.root,E=ut.vi)}}}}};function Jw(a){for(var y=0;y<a.length;y++)for(var x=a[y],b=0;b<x.length;b++){var E=x[b];E.root=E,E.align=E,E.Tz=y,E.vi=b}}function K0(a,y,x,b){for(var E=a.K===90||a.K===270,z=Cs(y),nt=z.next();!nt.done;nt=z.next()){var ot=Cs(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=Cs(y),ot=z.next();!ot.done;ot=z.next()){ot=Cs(ot.value);for(var at=ot.next();!at.done;at=ot.next())if(at=at.value,at.root===at){for(var ut=0,ct=at;ct.align!==at;){var yt=ct.align,kt=nt?ct.width:ct.height,zt=nt?yt.width:yt.height;if(x){var Zt=$0(ct,yt),he=Zt.portFromPos,He=Zt.portToPos;Zt.link!==null&&(ct.node&&ct.node!==Zt.link.fromNode&&(he=nt?ct.focusX:ct.focusY),yt.node&&yt.node!==Zt.link.toNode&&(He=nt?yt.focusX:yt.focusY))}else Zt=$0(yt,ct),he=Zt.portToPos,He=Zt.portFromPos,Zt.link!==null&&(ct.node&&ct.node!==Zt.link.toNode&&(he=nt?ct.focusX:ct.focusY),yt.node&&yt.node!==Zt.link.fromNode&&(He=nt?yt.focusX:yt.focusY));kt=b?ct.qg+(kt-he)-(zt-He):ct.qg+he-He,yt.qg=kt,ut=Math.min(ut,kt),ct=ct.align}ct=at;do ct.qg=ct.qg-ut,ct=ct.align;while(ct!==at)}}for(x=Cs(y),nt=x.next();!nt.done;nt=x.next())for(z=Cs(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 wr,y=Cs(y),nt=y.next();!nt.done;nt=y.next())for(x=Cs(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&&qe("Could not determine previous vertex in layer"),y[x][a-1]}Zs.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=or(),E=or(),z=1/0,nt=0;4>nt;nt++)if(y[nt]){var ot=qw(this,y[nt],b,E,nt);ot<z&&(x=nt,z=ot)}for(z={},nt=0;4>nt;z={delta:z.delta},nt++)y[nt]&&(z.delta=nt===0||nt===2?b[x]-b[nt]:E[x]-E[nt],z.delta!==0&&y[nt].each(function(at){return function(ut){ut.value+=at.delta}}(z)));Lr(b),Lr(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}Zs.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=G0(this,!0),y=G0(this,!1),x=this.network.edges.iterator;x.next();){var b=x.value.link;b!==null&&(b.fromSpot=a,b.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function G0(a,y){return a.K===270?y?za:Dl:a.K===90?y?Dl:za:a.K===180?y?Aa:tl:y?tl:Aa}Zs.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var b=0;b<=this.Ia;b++){var E=x;0>=this.he[b]+this.Ld[b]&&(E=0),0<b&&(y+=E/2),this.K===90||this.K===0?(y+=this.Ld[b],this.Kd[b]=y,y+=this.he[b]):(y+=this.he[b],this.Kd[b]=y,y+=this.Ld[b]),b<this.Ia&&(y+=E/2),this.Ta[b]=y}for(x=y,y=this.arrangementOrigin,b=0;b<=this.Ia;b++)this.K===270?this.Kd[b]=y.y+this.Kd[b]:this.K===90?(this.Kd[b]=y.y+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]):this.K===180?this.Kd[b]=y.x+this.Kd[b]:(this.Kd[b]=y.x+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]);x=this.ve!==0,a.reset(),b=this.K===270||this.K===90;for(var z=1/0,nt=E=1/0,ot=-1/0;a.next();){var at=a.value,ut=at.layer,ct=at.column|0;b?(nt=y.x+this.kc*ct,ut=this.Kd[ut]):(nt=this.Kd[ut],ut=y.y+this.kc*ct),at.centerX=nt,at.centerY=ut,x&&isFinite(at.zc)&&(b?at.node?at.x=y.x+at.zc:at.centerX=y.x+at.zc:at.node?at.y=y.y+at.zc:at.centerY=y.y+at.zc),z=Math.min(at.x,z),E=Math.min(at.y,E),b?(nt=z,ot=Math.max(ot,at.bounds.right)):(nt=E,ot=Math.max(ot,at.bounds.bottom))}for(this.xw=ot-nt,z=y.x-z,y=y.y-E,this.Rf=new Ne(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},Zs.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)},Zs.prototype.commitLayers=function(){},Zs.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var x=a.value;if(y=x.link,y!==null){y.uh();var b=y,E=b.fromNode,z=b.toNode,nt=b.fromPort,ot=b.toPort;if(E!==null){var at=E.findVisibleNode();at!==null&&at!==E&&(E=at,nt=at.port)}z!==null&&(at=z.findVisibleNode(),at!==null&&at!==z&&(z=at,ot=at.port));var ut=y.computeSpot(!0,nt);at=y.computeSpot(!1,ot);var ct=x.fromVertex,yt=x.toVertex;if(x.valid)y.curve===Yc&&y.pointsCount===4&&(ct.column===yt.column&&this.alignOption===0?(x=y.getLinkPoint(E,nt,ut,!0,!1,z,ot),ot=y.getLinkPoint(z,ot,at,!1,!1,E,nt),x.w()||x.set(E.actualBounds.center),ot.w()||ot.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+ot.x)/3,(2*x.y+ot.y)/3),y.yf((x.x+2*ot.x)/3,(x.y+2*ot.y)/3),y.yf(ot.x,ot.y)):(x=b=!1,nt!==null&&ut===Za&&(b=!0),ot!==null&&at===Za&&(x=!0),(b||x)&&(at=null,b&&(at=y.getLinkPointFromPoint(E,nt,nt.ga(bo),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(bo),y.i(0),!1),E.w()||E.set(z.actualBounds.center),y.L(3,E.x,E.y)),at&&(z=y.i(2),y.L(1,(2*at.x+z.x)/3,(2*at.y+z.y)/3)),E&&(z=y.i(1),y.L(2,(2*E.x+z.x)/3,(2*E.y+z.y)/3))))),y.zf();else if(ct.layer===yt.layer)y.zf();else{var kt=!1,zt=!1,Zt=this.ie,he=y.firstPickIndex+1;if(y.isOrthogonal){zt=!0;var He=y.pointsCount;4<He&&y.points.removeRange(2,He-3)}else if(y.curve===Yc)kt=!0,He=y.pointsCount,4<He&&y.points.removeRange(2,He-3),He===4&&(he=2);else{He=y.pointsCount;var Fe=ut===Za,Ve=at===Za;2<He&&Fe&&Ve?y.points.removeRange(1,He-2):3<He&&Fe&&!Ve?y.points.removeRange(1,He-3):3<He&&!Fe&&Ve?y.points.removeRange(2,He-2):4<He&&!Fe&&!Ve&&y.points.removeRange(2,He-3)}if(x.rev){for(;yt!==null&&ct!==yt;){var tn=He=null;for(Fe=yt.sourceEdges.iterator;Fe.next()&&(Ve=Fe.value,Ve.link!==x.link||(He=Ve.fromVertex,tn=Ve.toVertex,He.node!==null)););if(He===null)break;if(He!==ct){Fe=y.i(he-1).x,Ve=y.i(he-1).y;var on=He.centerX,Sn=He.centerY;if(zt)this.K===180||this.K===0?he===y.firstPickIndex+1?(y.m(he++,Fe,Ve),y.m(he++,Fe,Sn)):(tn!==null?tn.centerY:Ve)!==Sn&&(tn=this.Ta[He.layer-1]+this.Rf.x,y.m(he++,tn,Ve),y.m(he++,tn,Sn)):he===y.firstPickIndex+1?(y.m(he++,Fe,Ve),y.m(he++,on,Ve)):(tn!==null?tn.centerX:Fe)!==on&&(tn=this.Ta[He.layer-1]+this.Rf.y,y.m(he++,Fe,tn),y.m(he++,on,tn));else if(he===y.firstPickIndex+1){tn=Math.max(10,this.he[yt.layer]);var Gn=Math.max(10,this.Ld[yt.layer]);if(kt)this.K===180?on<=yt.bounds.x?(yt=yt.bounds.x,y.m(he++,yt-tn,Sn),y.m(he++,yt,Sn),y.m(he++,yt+Gn,Sn)):(y.m(he++,on-tn,Sn),y.m(he++,on,Sn),y.m(he++,on+Gn,Sn)):this.K===90?Sn>=yt.bounds.bottom?(yt=yt.bounds.y+yt.bounds.height,y.m(he++,on,yt+Gn),y.m(he++,on,yt),y.m(he++,on,yt-tn)):(y.m(he++,on,Sn+Gn),y.m(he++,on,Sn),y.m(he++,on,Sn-tn)):this.K===270?Sn<=yt.bounds.y?(yt=yt.bounds.y,y.m(he++,on,yt-tn),y.m(he++,on,yt),y.m(he++,on,yt+Gn)):(y.m(he++,on,Sn-tn),y.m(he++,on,Sn),y.m(he++,on,Sn+Gn)):this.K===0&&(on>=yt.bounds.right?(yt=yt.bounds.x+yt.bounds.width,y.m(he++,yt+Gn,Sn),y.m(he++,yt,Sn),y.m(he++,yt-tn,Sn)):(y.m(he++,on+Gn,Sn),y.m(he++,on,Sn),y.m(he++,on-tn,Sn)));else{y.m(he++,Fe,Ve);var nr=0;this.K===180||this.K===0?((this.K===180?on>=yt.bounds.right:on<=yt.bounds.x)&&(nr=(this.K===0?-tn:Gn)/2),y.m(he++,Fe+nr,Sn)):((this.K===270?Sn>=yt.bounds.bottom:Sn<=yt.bounds.y)&&(nr=(this.K===90?-tn:Gn)/2),y.m(he++,on,Ve+nr)),y.m(he++,on,Sn)}}else tn=Math.max(10,this.he[He.layer]),Gn=Math.max(10,this.Ld[He.layer]),kt?this.K===180?(y.m(he++,on-tn-Zt,Sn),y.m(he++,Math.min(on-tn+Zt/2,on),Sn),y.m(he++,on,Sn),y.m(he++,on,Sn),y.m(he++,Math.max(on+Gn-Zt/2,on),Sn),y.m(he++,on+Gn+Zt,Sn)):this.K===90?(y.m(he++,on,Sn+Gn+Zt),y.m(he++,on,Math.max(Sn+Gn-Zt/2,Sn)),y.m(he++,on,Sn),y.m(he++,on,Sn),y.m(he++,on,Math.min(Sn-tn+Zt/2,Sn)),y.m(he++,on,Sn-tn-Zt)):this.K===270?(y.m(he++,on,Sn-tn-Zt),y.m(he++,on,Math.min(Sn-tn+Zt/2,Sn)),y.m(he++,on,Sn),y.m(he++,on,Sn),y.m(he++,on,Math.max(Sn+Gn-Zt/2,Sn)),y.m(he++,on,Sn+Gn+Zt)):(y.m(he++,on+Gn+Zt,Sn),y.m(he++,Math.max(on+Gn-Zt/2,on),Sn),y.m(he++,on,Sn),y.m(he++,on,Sn),y.m(he++,Math.min(on-tn+Zt/2,on),Sn),y.m(he++,on-tn-Zt,Sn)):y.m(he++,on,Sn)}yt=He}(ot===null||ut!==Za||zt)&&(Fe=y.i(he-1).x,Ve=y.i(he-1).y,on=y.i(he).x,Sn=y.i(he).y,zt?(Zt=this.Ld[ct.layer],this.K===180||this.K===0?(zt=Ve,zt>=ct.bounds.y&&zt<=ct.bounds.bottom&&(this.K===180?on>=ct.bounds.x:on<=ct.bounds.right)&&(yt=ct.centerX+(this.K===180?-Zt:Zt),zt<ct.bounds.y+ct.bounds.height/2?zt=ct.bounds.y-this.kc/2:zt=ct.bounds.bottom+this.kc/2,y.m(he++,yt,Ve),y.m(he++,yt,zt)),y.m(he++,on,zt)):(zt=Fe,zt>=ct.bounds.x&&zt<=ct.bounds.right&&(this.K===270?Sn>=ct.bounds.y:Sn<=ct.bounds.bottom)&&(yt=ct.centerY+(this.K===270?-Zt:Zt),zt<ct.bounds.x+ct.bounds.width/2?zt=ct.bounds.x-this.kc/2:zt=ct.bounds.right+this.kc/2,y.m(he++,Fe,yt),y.m(he++,zt,yt)),y.m(he++,zt,Sn)),y.m(he++,on,Sn)):kt?(tn=Math.max(10,this.he[ct.layer]),Gn=Math.max(10,this.Ld[ct.layer]),this.K===180&&on>=ct.bounds.x?(yt=ct.bounds.x+ct.bounds.width,y.L(he-2,yt,Ve),y.L(he-1,yt+Gn,Ve)):this.K===90&&Sn<=ct.bounds.bottom?(yt=ct.bounds.y,y.L(he-2,Fe,yt),y.L(he-1,Fe,yt-tn)):this.K===270&&Sn>=ct.bounds.y?(yt=ct.bounds.y+ct.bounds.height,y.L(he-2,Fe,yt),y.L(he-1,Fe,yt+Gn)):this.K===0&&on<=ct.bounds.right&&(yt=ct.bounds.x,y.L(he-2,yt,Ve),y.L(he-1,yt-tn,Ve))):(tn=Math.max(10,this.he[ct.layer]),Gn=Math.max(10,this.Ld[ct.layer]),zt=0,this.K===180||this.K===0?((this.K===180?on<=ct.bounds.x:on>=ct.bounds.right)&&(zt=(this.K===0?Gn:-tn)/2),y.m(he++,on+zt,Ve)):((this.K===270?Sn<=ct.bounds.y:Sn>=ct.bounds.bottom)&&(zt=(this.K===90?Gn:-tn)/2),y.m(he++,Fe,Sn+zt)),y.m(he++,on,Sn)))}else{for(;ct!==null&&ct!==yt;){for(tn=He=null,ct=ct.destinationEdges.iterator;ct.next()&&(Fe=ct.value,Fe.link!==x.link||(He=Fe.toVertex,tn=Fe.fromVertex,tn.node!==null&&(tn=null),He.node!==null)););if(He===null)break;He!==yt&&(Fe=y.i(he-1).x,Ve=y.i(he-1).y,on=He.centerX,Sn=He.centerY,zt?this.K===180||this.K===0?(tn!==null?tn.centerY:Ve)!==Sn&&(tn=this.Ta[He.layer]+this.Rf.x,he===y.firstPickIndex+1&&(tn=this.K===0?Math.max(tn,Fe):Math.min(tn,Fe)),y.m(he++,tn,Ve),y.m(he++,tn,Sn)):(tn!==null?tn.centerX:Fe)!==on&&(tn=this.Ta[He.layer]+this.Rf.y,he===y.firstPickIndex+1&&(tn=this.K===90?Math.max(tn,Ve):Math.min(tn,Ve)),y.m(he++,Fe,tn),y.m(he++,on,tn)):(tn=Math.max(10,this.he[He.layer]),Gn=Math.max(10,this.Ld[He.layer]),kt?this.K===180?(y.m(he++,on+Gn+Zt,Sn),y.m(he++,Math.max(on+Gn-Zt/2,on),Sn),y.m(he++,on,Sn),y.m(he++,on,Sn),y.m(he++,Math.min(on-tn+Zt/2,on),Sn),y.m(he++,on-tn-Zt,Sn)):this.K===90?(y.m(he++,on,Sn-tn-Zt),y.m(he++,on,Math.min(Sn-tn+Zt/2,Sn)),y.m(he++,on,Sn),y.m(he++,on,Sn),y.m(he++,on,Math.max(Sn+Gn-Zt/2,Sn)),y.m(he++,on,Sn+Gn+Zt)):this.K===270?(y.m(he++,on,Sn+Gn+Zt),y.m(he++,on,Math.max(Sn+Gn-Zt/2,Sn)),y.m(he++,on,Sn),y.m(he++,on,Sn),y.m(he++,on,Math.min(Sn-tn+Zt/2,Sn)),y.m(he++,on,Sn-tn-Zt)):(y.m(he++,on-tn-Zt,Sn),y.m(he++,Math.min(on-tn+Zt/2,on),Sn),y.m(he++,on,Sn),y.m(he++,on,Sn),y.m(he++,Math.max(on+Gn-Zt/2,on),Sn),y.m(he++,on+Gn+Zt,Sn)):this.K===180?(y.m(he++,on+Gn,Sn),y.m(he++,on-tn,Sn)):this.K===90?(y.m(he++,on,Sn-tn),y.m(he++,on,Sn+Gn)):this.K===270?(y.m(he++,on,Sn+Gn),y.m(he++,on,Sn-tn)):(y.m(he++,on-tn,Sn),y.m(he++,on+Gn,Sn)))),ct=He}zt&&(Fe=y.i(he-1).x,Ve=y.i(he-1).y,on=y.i(he).x,Sn=y.i(he).y,this.K===180||this.K===0?Ve!==Sn&&(tn=this.K===0?Math.min(Math.max((on+Fe)/2,this.Ta[yt.layer]+this.Rf.x),on):Math.max(Math.min((on+Fe)/2,this.Ta[yt.layer]+this.Rf.x),on),y.m(he++,tn,Ve),y.m(he++,tn,Sn)):Fe!==on&&(tn=this.K===90?Math.min(Math.max((Sn+Ve)/2,this.Ta[yt.layer]+this.Rf.y),Sn):Math.max(Math.min((Sn+Ve)/2,this.Ta[yt.layer]+this.Rf.y),Sn),y.m(he++,Fe,tn),y.m(he++,on,tn)))}b!==null&&kt&&4<=y.pointsCount&&(nt!==null&&(nt=ut===Za?y.getLinkPointFromPoint(E,nt,nt.ga(bo),y.i(3),!0):y.i(0),ut===Za&&(ut=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(nt.x+ut.x)/2,ut.y),y.L(2,b.x,(ut.y+b.y)/2)):(y.L(1,ut.x,(nt.y+ut.y)/2),y.L(2,(ut.x+b.x)/2,b.y))),nt.w()||nt.set(E.actualBounds.center),y.L(0,nt.x,nt.y)),ot!==null&&(E=at===Za?y.getLinkPointFromPoint(z,ot,ot.ga(bo),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),at===Za&&(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()},Zs.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Pi,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,x=[],a=a.iterator;a.next();){var b=a.value;if(b!==null&&b.isOrthogonal)for(var E=2;E<b.pointsCount-3;E++){var z=b.i(E),nt=b.i(E+1);if(this.B(z.y,nt.y)&&!this.B(z.x,nt.x)){var ot=new cg;ot.layer=Math.floor(z.y/2);var at=b.i(0),ut=b.i(b.pointsCount-1);if(ot.first=at.x*at.x+at.y,ot.jc=ut.x*ut.x+ut.y,ot.rd=Math.min(z.x,nt.x),ot.Ic=Math.max(z.x,nt.x),ot.index=E,ot.link=b,E+2<b.pointsCount){at=b.i(E-1),ut=b.i(E+2);var ct=0;at.y<z.y?ct=ut.y<z.y?3:z.x<nt.x?2:1:at.y>z.y&&(ct=ut.y>z.y?0:nt.x<z.x?2:1),ot.j=ct}x.push(ot)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(nt=x[z].Ic,E=a+1;E<b&&x[E].rd<nt;)nt=Math.max(nt,x[E].Ic),E++;if(nt=E-z,1<nt){for(this.zi(x,this.Js,z,z+nt),ct=1,ot=x[z].jc,at=z;at<E;at++)ut=x[at],ut.jc!==ot&&(ct++,ot=ut.jc);this.zi(x,this.Ux,z,z+nt);var yt=1;for(ot=x[z].first,at=z;at<E;at++)ut=x[at],ut.first!==ot&&(yt++,ot=ut.first);for(at=!0,ut=yt,ct<yt?(at=!1,ut=ct,ot=x[z].jc,this.zi(x,this.Js,z,z+nt)):ot=x[z].first,ct=0,yt=z;yt<E;yt++){var kt=x[yt];(at?kt.first:kt.jc)!==ot&&(ct++,ot=at?kt.first:kt.jc);var zt=kt.link;z=zt.i(kt.index),nt=zt.i(kt.index+1);var Zt=this.linkSpacing*(ct-(ut-1)/2);y++,zt.uh(),zt.L(kt.index,z.x,z.y+Zt),zt.L(kt.index+1,nt.x,nt.y+Zt),zt.zf()}}z=E}a=b}}else{for(y=0,x=[],a=a.iterator;a.next();)if(b=a.value,b!==null&&b.isOrthogonal)for(E=2;E<b.pointsCount-3;E++)z=b.i(E),nt=b.i(E+1),this.B(z.x,nt.x)&&!this.B(z.y,nt.y)&&(ot=new cg,ot.layer=Math.floor(z.x/2),at=b.i(0),ut=b.i(b.pointsCount-1),ot.first=at.x+at.y*at.y,ot.jc=ut.x+ut.y*ut.y,ot.rd=Math.min(z.y,nt.y),ot.Ic=Math.max(z.y,nt.y),ot.index=E,ot.link=b,E+2<b.pointsCount&&(at=b.i(E-1),ut=b.i(E+2),ct=0,at.x<z.x?ct=ut.x<z.x?3:z.y<nt.y?2:1:at.x>z.x&&(ct=ut.x>z.x?0:nt.y<z.y?2:1),ot.j=ct),x.push(ot));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(nt=x[z].Ic,E=a+1;E<b&&x[E].rd<nt;)nt=Math.max(nt,x[E].Ic),E++;if(nt=E-z,1<nt){for(this.zi(x,this.Js,z,z+nt),ct=1,ot=x[z].jc,at=z;at<E;at++)ut=x[at],ut.jc!==ot&&(ct++,ot=ut.jc);for(this.zi(x,this.Ux,z,z+nt),yt=1,ot=x[z].first,at=z;at<E;at++)ut=x[at],ut.first!==ot&&(yt++,ot=ut.first);for(at=!0,ut=yt,ct<yt?(at=!1,ut=ct,ot=x[z].jc,this.zi(x,this.Js,z,z+nt)):ot=x[z].first,ct=0,yt=z;yt<E;yt++)kt=x[yt],(at?kt.first:kt.jc)!==ot&&(ct++,ot=at?kt.first:kt.jc),zt=kt.link,z=zt.i(kt.index),nt=zt.i(kt.index+1),Zt=this.linkSpacing*(ct-(ut-1)/2),y++,zt.uh(),zt.L(kt.index,z.x+Zt,z.y),zt.L(kt.index+1,nt.x+Zt,nt.y),zt.zf()}z=E}a=b}}}},Xt=Zs.prototype,Xt.Vx=function(a,y){return a instanceof cg&&y instanceof cg&&a!==y?a.layer<y.layer?-1:a.layer>y.layer?1:a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Xt.Ux=function(a,y){return a instanceof cg&&y instanceof cg&&a!==y?a.first<y.first?-1:a.first>y.first||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Xt.Js=function(a,y){return a instanceof cg&&y instanceof cg&&a!==y?a.jc<y.jc?-1:a.jc>y.jc||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Xt.B=function(a,y){return a-=y,-1<a&&1>a},Xt.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&qe("not in range 0 <= from < length: "+x),z===2)b=a[x],E=a[x+1],0<y(b,E)&&(a[x]=E,a[x+1]=b);else if(x===0)if(b>=E)a.sort(y);else for(x=a.slice(0,b),x.sort(y),y=0;y<b;y++)a[y]=x[y];else if(b>=E)for(b=a.slice(x),b.sort(y),y=x;y<E;y++)a[y]=b[y-x];else for(E=a.slice(x,b),E.sort(y),y=x;y<b;y++)a[y]=E[y-x]};function ug(a,y){var x=a.tc[y];if(x>=a.He.length){for(var b=[],E=0;E<a.He.length;E++)b[E]=a.He[E];a.He=b}for(a.He[x]===void 0||a.He[x]===null?b=[]:(b=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],b[x.index]=x;return b}function hg(a,y,x){a.He[a.tc[y]]=x}Oe.Object.defineProperties(Zs.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()):qe("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==ry&&a!==W0&&a!==Hm||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==V0&&a!==oy&&a!==sy||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==Z0&&a!==ay&&a!==ly||(this.Qk=a,this.C())}},iterations:{get:function(){return this.bj},set:function(a){this.bj!==a&&0<=a&&(this.bj=a,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(a){this.rk===a||a!==uy&&a!==X0&&a!==hy||(this.rk=a,this.C())}},packOption:{get:function(){return this.bg},set:function(a){this.bg!==a&&0<=a&&8>a&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var W0=new vi(Zs,"CycleDepthFirst",0),ry=new vi(Zs,"CycleGreedy",1),Hm=new vi(Zs,"CycleFromLayers",2),V0=new vi(Zs,"LayerOptimalLinkLength",0),oy=new vi(Zs,"LayerLongestPathSink",1),sy=new vi(Zs,"LayerLongestPathSource",2),Z0=new vi(Zs,"InitDepthFirstOut",0),ay=new vi(Zs,"InitDepthFirstIn",1),ly=new vi(Zs,"InitNaive",2),uy=new vi(Zs,"AggressiveNone",0),X0=new vi(Zs,"AggressiveLess",1),hy=new vi(Zs,"AggressiveMore",2),tx=8;Zs.className="LayeredDigraphLayout",Zs.CycleDepthFirst=W0,Zs.CycleGreedy=ry,Zs.CycleFromLayers=Hm,Zs.LayerOptimalLinkLength=V0,Zs.LayerLongestPathSink=oy,Zs.LayerLongestPathSource=sy,Zs.InitDepthFirstOut=Z0,Zs.InitDepthFirstIn=ay,Zs.InitNaive=ly,Zs.AggressiveNone=uy,Zs.AggressiveLess=X0,Zs.AggressiveMore=hy,Zs.PackNone=0,Zs.PackExpand=1,Zs.PackStraighten=2,Zs.PackMedian=4,Zs.PackAll=15,Zs.AlignNone=0,Zs.AlignUpperLeft=1,Zs.AlignUpperRight=2,Zs.AlignLowerLeft=4,Zs.AlignLowerRight=8,Zs.AlignAll=15;function cg(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}cg.className="SegInfo";function Zp(a){xa.call(this,a)}Tn(Zp,xa),Zp.prototype.createVertex=function(){return new md(this)},Zp.prototype.createEdge=function(){return new Qm(this)},Zp.className="LayeredDigraphNetwork";function md(a){xu.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}Tn(md,xu);function hw(a,y){return a.index-y.index}function $0(a,y){if(!a.$n){for(var x=[],b=Cs(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=Cs(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;qe("Unable to find destination edge to given vertex")}function cy(a){if(!a.co){for(var y=[],x=Cs(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(hw),a.co=y}return a.co}function ex(a){if(!a.ao){for(var y=[],x=Cs(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(hw),a.ao=y}return a.ao}md.prototype.Cl=function(a){xu.prototype.Cl.call(this,a),this.bo=this.co=null},md.prototype.Kl=function(a){xu.prototype.Kl.call(this,a),this.bo=this.co=null},md.prototype.zl=function(a){xu.prototype.zl.call(this,a),this.$n=this.ao=null},md.prototype.Jl=function(a){xu.prototype.Jl.call(this,a),this.$n=this.ao=null},Oe.Object.defineProperties(md.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),md.prototype.deleteDestinationEdge=md.prototype.Jl,md.prototype.addDestinationEdge=md.prototype.zl,md.prototype.deleteSourceEdge=md.prototype.Kl,md.prototype.addSourceEdge=md.prototype.Cl,md.className="LayeredDigraphVertex";function Qm(a){Mc.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Tn(Qm,Mc),Oe.Object.defineProperties(Qm.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),Qm.className="LayeredDigraphEdge";function cs(a){Wa.call(this),this.Ub=new Ci,this.Wn=tv,this.ud=tf,this.vo=nv,this.Bq=Sy,this.$v=[],this.td=!0,this.Rb=iv,this.$d=new Vi(10,10).freeze();var y=new Ap(this);this.W=new jd(y),this.Y=new jd(y),this.ru=[],a&&Object.assign(this,a)}Tn(cs,Wa),cs.prototype.cloneProtected=function(a){Wa.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)},cs.prototype.qb=function(a){a.classType===cs?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:qe("Unknown enum value: "+a):Wa.prototype.qb.call(this,a)},cs.prototype.createNetwork=function(){return new Ap(this)},cs.prototype.makeNetwork=function(a){function y(b){if(b instanceof cr)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof Gi){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 _n?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof ko?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},cs.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 _n&&(y=a),this.path===tv&&y!==null?this.ud=y.isTreePathToChildren?tf:cp:this.ud=this.path===tv?tf:this.path,0<this.network.vertexes.count){for(this.network.Ko(),a=this.network.vertexes.iterator;a.next();)y=a.value,y.initialized=!1,y.level=0,y.parent=null,y.children=[];if(0<this.Ub.count){for(a=new Ci,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof cr?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof jd&&a.add(x)}this.Ub=a}for(this.Ub.count===0&&this.findRoots(),a=this.Ub.copy().iterator;a.next();)y=a.value,y.initialized||(y.initialized=!0,dy(this,y));for(y=this.network.vertexes,a=null;a=nx(y),0<a.count;)y=cw(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,dy(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof jd&&Aw(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof jd&&fw(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof jd&&gw(this,y);if(this.Cu(),this.layerStyle===ov){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var b=x.parent;b===null&&(b=x),b=b.angle===0||b.angle===180;var E=a[x.level];E===void 0&&(E=0),a[x.level]=Math.max(E,b?x.width:x.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)x=y.value,b=x.parent,b===null&&(b=x),b.angle===0||b.angle===180?(b.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(b.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===Cy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,b=-1,E=0;E<y.children.length;E++){var z=y.children[E];b=Math.max(b,x?z.width:z.height)}if(0<=b)for(E=0;E<y.children.length;E++)z=y.children[E],x?(y.angle===180&&(z.focusX+=b-z.width),z.width=b):(y.angle===270&&(z.focusY+=b-z.height),z.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof jd&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Ci,this.isValidLayout=!0};function nx(a){var y=new Ci;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}cs.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case tf:x.sourceEdges.count===0&&this.Ub.add(x);break;case cp:x.destinationEdges.count===0&&this.Ub.add(x);break;default:qe("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=cw(this,a),a!==null&&this.Ub.add(a))};function cw(a,y){var x=999999,b=null;for(y=y.iterator;y.next();){var E=y.value;switch(a.ud){case tf:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case cp:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:qe("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 Pi,b=y.destinationVertexes;b.next();){var E=b.value;dw(a,y,E)&&x.add(E)}0<x.count&&(y.children=x.Fa())}break;case cp:if(0<y.sourceEdges.count){for(x=new Pi,b=y.sourceVertexes;b.next();)E=b.value,dw(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:qe("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}cs.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,b=0,E=0;E<x.length;E++)x[E]===y&&b++;if(0<b){b=Array(x.length-b);for(var z=E=0;z<x.length;z++)x[z]!==y&&(b[E++]=x[z]);a.children=b}}};function Aw(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===rf&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,z=y.children,nt=z.length,ot=0;ot<nt;ot++){var at=z[ot];Aw(a,at),x+=at.descendantCount+1,b=Math.max(b,at.maxChildrenCount),E=Math.max(E,at.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function ix(a,y){switch(a.vo){default:case nv:return y.parent!==null?y.parent:a.W;case wy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case yy:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case vy:var x=!0;if(y.childrenCount===0)x=!1;else for(var b=y.children,E=b.length,z=0;z<E;z++)if(0<b[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}cs.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(ix(this,a)),a.parent!==null&&a.parent.alignment===rf){for(var y=a.angle,x=a.parent.children,b=0;b<x.length&&a!==x[b];)b++;b%2===0?b!==x.length-1&&(y=y===90?180:y===180?270:y===270?180:270):y=y===90?0:y===180?90:y===270?0:90,a.angle=y}a.initialized=!0};function fw(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,b=0;b<x;b++)fw(a,y[b])}}cs.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])}}cs.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Xp:break;case Km:a.children.reverse();break;case Gm:a.children.sort(a.comparer);break;case Wm:a.children.sort(a.comparer),a.children.reverse();break;default:qe("Unhandled sorting value "+a.sorting.toString())}},cs.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},cs.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=dg(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var z=0,nt=0,ot=0,at=a.commentSpacing;if(a.node!==null)for(var ut=a.node.Mu();ut.next();){var ct=ut.value;ct.category==="Comment"&&ct.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ct),ct.Va(),ct=ct.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(z=Math.max(z,ct.width),nt+=ct.height+Math.abs(ot)):(z+=ct.width+Math.abs(ot),nt=Math.max(nt,ct.height)),ot=at)}a.comments!==null&&(y&&!x||!E&&!b&&x||E&&b&&x?(z+=Math.abs(a.commentMargin),nt=Math.max(0,nt-a.height)):(nt+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),E=ai.allocAt(0,0,a.bounds.width+z,a.bounds.height+nt),a.bounds=E,ai.free(E))};function dg(a){return a===If||a===rf||a===kf||a===df}function zm(a){return a===If||a===rf}function Ay(a){var y=a.parent;if(y!==null){var x=y.alignment;if(dg(x)){if(zm(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===kf)return!0}}return!1}cs.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,b=a.angle,E=0,z=!1;x!==null&&(E=x.angle,z=x.alignment,z=dg(z)),b=b===90||b===270,x=E===90||E===270;for(var nt=a.childrenCount===0,ot=Ay(a),at=0,ut=a.comments,ct=ut.length,yt=Ne.alloc(),kt=0;kt<ct;kt++){var zt=ut[kt],Zt=zt.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-Zt.width,a.bounds.y+at),zt.move(yt),zt=zt.Sd();zt.next();){var he=zt.value;he.fromSpot=Aa,he.toSpot=tl}else for(yt.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+at),zt.move(yt),zt=zt.Sd();zt.next();)he=zt.value,he.fromSpot=tl,he.toSpot=Aa;else if(0<=a.commentMargin)for(yt.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+at),zt.move(yt),zt=zt.Sd();zt.next();)he=zt.value,he.fromSpot=tl,he.toSpot=Aa;else for(yt.h(a.bounds.x+a.commentMargin-Zt.width,a.bounds.y+at),zt.move(yt),zt=zt.Sd();zt.next();)he=zt.value,he.fromSpot=Aa,he.toSpot=tl;at=0<=a.commentSpacing?at+(Zt.height+a.commentSpacing):at+(a.commentSpacing-Zt.height)}else{if(135<E&&!z||!x&&ot)if(0<=a.commentMargin)for(yt.h(a.bounds.x+at,a.bounds.y-a.commentMargin-Zt.height),zt.move(yt),zt=zt.Sd();zt.next();)he=zt.value,he.fromSpot=za,he.toSpot=Dl;else for(yt.h(a.bounds.x+at,a.bounds.y+2*a.focus.y-a.commentMargin),zt.move(yt),zt=zt.Sd();zt.next();)he=zt.value,he.fromSpot=Dl,he.toSpot=za;else if(0<=a.commentMargin)for(yt.h(a.bounds.x+at,a.bounds.y+2*a.focus.y+a.commentMargin),zt.move(yt),zt=zt.Sd();zt.next();)he=zt.value,he.fromSpot=Dl,he.toSpot=za;else for(yt.h(a.bounds.x+at,a.bounds.y+a.commentMargin-Zt.height),zt.move(yt),zt=zt.Sd();zt.next();)he=zt.value,he.fromSpot=za,he.toSpot=Dl;at=0<=a.commentSpacing?at+(Zt.width+a.commentSpacing):at+(a.commentSpacing-Zt.width)}}if(Ne.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)}},cs.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,b=0;b<x;b++)this.layoutTree(y[b]);switch(a.compaction){case ev:pw(this,a);break;case Vm:if(a.alignment===rf)pw(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=dg(x)),b=Ay(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!b?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&b?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var E=iA(a);y=E===90||E===270;var z=0,nt=a.children,ot=nt.length;for(x=0;x<ot;x++)b=nt[x],z=Math.max(z,y?b.Da.width:b.Da.height);var at=a.alignment;b=at===ef;var ut=at===nf,ct=dg(at),yt=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var kt=a.nodeSpacing,zt=this.computeNodeIndent(a),Zt=a.rowSpacing,he=0;(b||ut||a.hm||a.im&&a.maxGenerationCount===1)&&(he=Math.max(0,a.rowIndent)),b=a.width;var He=a.height,Fe=0,Ve=0,tn=0,on=null,Sn=null,Gn=0,nr=0,Fr=0,vr=0,Ki=0,Mi=0,Eo=0,po=0;if(ct&&!zm(at)&&135<E&&nt.reverse(),zm(at))if(1<ot)for(var Ts=0;Ts<ot;Ts++)Ts%2===0&&Ts!==ot-1&&(po=Math.max(po,y?nt[Ts].Da.width:nt[Ts].Da.height));else ot===1&&(po=y?nt[0].Da.width:nt[0].Da.height);if(ct){switch(at){case If:Ve=135>E?mw(this,a,nt,po,Fe,Ve):vw(this,a,nt,po,Fe,Ve),po=Ve.x,Fe=Ve.width,Ve=Ve.height;break;case kf:for(on=0;on<ot;on++)Sn=nt[on],yt=Sn.Da,tn=Mi===0?0:Zt,y?(Sn.S.h(z-yt.width,vr+tn),Fe=Math.max(Fe,yt.width),Ve=Math.max(Ve,vr+tn+yt.height),vr+=tn+yt.height):(Sn.S.h(Fr+tn,z-yt.height),Fe=Math.max(Fe,Fr+tn+yt.width),Ve=Math.max(Ve,yt.height),Fr+=tn+yt.width),Mi++;break;case df:for(on=0;on<ot;on++)Sn=nt[on],z=Sn.Da,yt=Mi===0?0:Zt,y?(Sn.S.h(kt/2+a.focus.x,vr+yt),Fe=Math.max(Fe,z.width),Ve=Math.max(Ve,vr+yt+z.height),vr+=yt+z.height):(Sn.S.h(Fr+yt,kt/2+a.focus.y),Fe=Math.max(Fe,Fr+yt+z.width),Ve=Math.max(Ve,z.height),Fr+=yt+z.width),Mi++}on=vc(this,2),Sn=vc(this,2),y?(on[0].h(0,0),on[1].h(0,Ve),Sn[0].h(Fe,0)):(on[0].h(0,0),on[1].h(Fe,0),Sn[0].h(0,Ve)),Sn[1].h(Fe,Ve)}else for(Ts=0;Ts<ot;Ts++){var pa=nt[Ts],Ou=pa.Da;if(y){0<yt&&0<Mi&&Fr+kt+Ou.width>yt&&(Fr<z&&Og(a,at,z-Fr,0,Eo,Ts-1),Ki++,Mi=0,Eo=Ts,tn=Ve,Fr=0,vr=135<E?-Ve-Zt:Ve+Zt),J0(this,pa,0,vr);var Qu=0;if(Mi===0)on=pa.Yo,Sn=pa.kp,Gn=Ou.width,nr=Ou.height,(on===null||Sn===null||E!==iA(pa))&&(on=vc(this,2),Sn=vc(this,2),on[0].h(0,0),on[1].h(0,nr),Sn[0].h(Gn,0),Sn[1].h(Gn,nr));else{var Uh=or();nr=yw(this,a,pa,on,Sn,Gn,nr,Uh),Qu=nr.x,on=Uh[0],Sn=Uh[1],Gn=nr.width,nr=nr.height,Lr(Uh),Fr<Ou.width&&0>Qu&&(hp(a,-Qu,0,Eo,Ts-1),q0(on,-Qu,0),q0(Sn,-Qu,0),Qu=0)}pa.S.h(Qu,vr),Fe=Math.max(Fe,Gn),Ve=Math.max(Ve,tn+(Ki===0?0:Zt)+Ou.height),Fr=Gn}else 0<yt&&0<Mi&&vr+kt+Ou.height>yt&&(vr<z&&Og(a,at,0,z-vr,Eo,Ts-1),Ki++,Mi=0,Eo=Ts,tn=Fe,vr=0,Fr=135<E?-Fe-Zt:Fe+Zt),J0(this,pa,Fr,0),Qu=0,Mi===0?(on=pa.Yo,Sn=pa.kp,Gn=Ou.width,nr=Ou.height,(on===null||Sn===null||E!==iA(pa))&&(on=vc(this,2),Sn=vc(this,2),on[0].h(0,0),on[1].h(Gn,0),Sn[0].h(0,nr),Sn[1].h(Gn,nr))):(Uh=or(),nr=yw(this,a,pa,on,Sn,Gn,nr,Uh),Qu=nr.x,on=Uh[0],Sn=Uh[1],Gn=nr.width,nr=nr.height,Lr(Uh),vr<Ou.height&&0>Qu&&(hp(a,0,-Qu,Eo,Ts-1),q0(on,0,-Qu),q0(Sn,0,-Qu),Qu=0)),pa.S.h(Fr,Qu),Ve=Math.max(Ve,nr),Fe=Math.max(Fe,tn+(Ki===0?0:Zt)+Ou.width),vr=nr;Mi++}switch(0<Ki&&(y?(Ve+=Math.max(0,x),Fr<Fe&&Og(a,at,Fe-Fr,0,Eo,ot-1),0<he&&(ut||hp(a,he,0,0,ot-1),Fe+=he)):(Fe+=Math.max(0,x),vr<Ve&&Og(a,at,0,Ve-vr,Eo,ot-1),0<he&&(ut||hp(a,0,he,0,ot-1),Ve+=he))),he=ut=0,at){case $p:y?ut+=Fe/2-a.focus.x-zt/2:he+=Ve/2-a.focus.y-zt/2;break;case dp:0<Ki?y?ut+=Fe/2-a.focus.x-zt/2:he+=Ve/2-a.focus.y-zt/2:y?(po=nt[0].S.x+nt[0].la.x,ut+=po+(nt[ot-1].S.x+nt[ot-1].la.x+2*nt[ot-1].focus.x-po)/2-a.focus.x-zt/2):(po=nt[0].S.y+nt[0].la.y,he+=po+(nt[ot-1].S.y+nt[ot-1].la.y+2*nt[ot-1].focus.y-po)/2-a.focus.y-zt/2);break;case ef:y?(ut-=zt,Fe+=zt):(he-=zt,Ve+=zt);break;case nf:y?(ut+=Fe-a.width+zt,Fe+=zt):(he+=Ve-a.height+zt,Ve+=zt);break;case If:y?1<ot?ut+=po+kt/2-a.focus.x:ut+=nt[0].focus.x-a.focus.x+nt[0].la.x:1<ot?he+=po+kt/2-a.focus.y:he+=nt[0].focus.y-a.focus.y+nt[0].la.y;break;case kf:y?ut+=Fe+kt/2-a.focus.x:he+=Ve+kt/2-a.focus.y;break;case df:break;default:Ve=this.customAlignment(a,ut,he,Fe,Ve),ut=Ve[0],he=Ve[1],Fe=Ve[2],Ve=Ve[3]}for(zt=0;zt<ot;zt++)po=nt[zt],y?po.S.h(po.S.x+po.la.x-ut,po.S.y+(135<E?(ct?-Ve:-po.Da.height)+po.la.y-x:He+x+po.la.y)):po.S.h(po.S.x+(135<E?(ct?-Fe:-po.Da.width)+po.la.x-x:b+x+po.la.x),po.S.y+po.la.y-he);if(ot=nt=0,ct?y?(Fe=fy(a,Fe,ut),0>ut&&(ut=0),135<E&&(he+=Ve+x),Ve+=He+x,at===df&&(nt+=kt/2+a.focus.x),ot+=He+x):(135<E&&(ut+=Fe+x),Fe+=b+x,Ve=gy(a,Ve,he),0>he&&(he=0),at===df&&(ot+=kt/2+a.focus.y),nt+=b+x):y?(a.comments===null?b>Fe&&(Fe=py(at,b-Fe,0),nt=Fe.x,ot=Fe.y,Fe=b,ut=0):Fe=fy(a,Fe,ut),0>ut&&(nt-=ut,ut=0),135<E&&(he+=Ve+x),Ve=Math.max(Math.max(Ve,He),Ve+He+x),ot+=He+x):(135<E&&(ut+=Fe+x),Fe=Math.max(Math.max(Fe,b),Fe+b+x),a.comments===null?He>Ve&&(Ve=py(at,0,He-Ve),nt=Ve.x,ot=Ve.y,Ve=He,he=0):Ve=gy(a,Ve,he),0>he&&(ot-=he,he=0),nt+=b+x),0<Ki)E=vc(this,4),Ki=vc(this,4),y?(E[2].h(0,He+x),E[3].h(E[2].x,Ve),Ki[2].h(Fe,E[2].y),Ki[3].h(Ki[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Fe,E[2].y),Ki[2].h(E[2].x,Ve),Ki[3].h(E[3].x,Ki[2].y));else{for(E=vc(this,on.length+2),Ki=vc(this,Sn.length+2),at=0;at<on.length;at++)ct=on[at],E[at+2].h(ct.x+nt,ct.y+ot);for(at=0;at<Sn.length;at++)ct=Sn[at],Ki[at+2].h(ct.x+nt,ct.y+ot)}y?(E[0].h(ut,0),E[1].h(E[0].x,He),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])),Ki[0].h(ut+b,0),Ki[1].h(Ki[0].x,He),Ki[2].y<Ki[1].y&&(Ki[2].x<Ki[0].x?Ki[2].assign(Ki[1]):Ki[1].assign(Ki[2])),Ki[3].y<Ki[2].y&&(Ki[3].x<Ki[0].x?Ki[3].assign(Ki[2]):Ki[2].assign(Ki[3])),E[2].y-=x/2,Ki[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])),Ki[0].h(0,he+He),Ki[1].h(b,Ki[0].y),Ki[2].x<Ki[1].x&&(Ki[2].y<Ki[0].y?Ki[2].assign(Ki[1]):Ki[1].assign(Ki[2])),Ki[3].x<Ki[2].x&&(Ki[3].y<Ki[0].y?Ki[3].assign(Ki[2]):Ki[2].assign(Ki[3])),E[2].x-=x/2,Ki[2].x-=x/2),pA(this,on),pA(this,Sn),a.Yo=E,a.kp=Ki,a.la.h(ut,he),a.Da.h(Fe,Ve)}break;default:qe("Unhandled compaction value "+a.compaction.toString())}}};function pw(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=dg(x));var E=Ay(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(b!==180&&b!==270||x)&&!E?y.la.h(0,0):b===180&&!x||(b===90||b===270)&&E?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{b=iA(y),x=b===90||b===270;var z=0;E=y.children;for(var nt=E.length,ot=0;ot<nt;ot++){var at=E[ot];z=Math.max(z,x?at.Da.width:at.Da.height)}var ut=y.alignment,ct=ut===ef,yt=ut===nf;ot=dg(ut);var kt=Math.max(0,y.breadthLimit);at=a.computeLayerSpacing(y);var zt=y.nodeSpacing,Zt=a.computeNodeIndent(y),he=ct||yt?0:Zt/2,He=y.rowSpacing,Fe=0;(ct||yt||y.hm||y.im&&y.maxGenerationCount===1)&&(Fe=Math.max(0,y.rowIndent)),ct=y.width;var Ve=y.height,tn=0,on=0,Sn=0,Gn=0,nr=0,Fr=0,vr=0,Ki=0,Mi=0,Eo=0;if(ot&&!zm(ut)&&135<b&&E.reverse(),zm(ut))if(1<nt)for(var po=0;po<nt;po++){var Ts=E[po],pa=Ts.Da;po%2===0&&po!==nt-1?Mi=Math.max(Mi,(x?pa.width:pa.height)+a.computeBusNodeSpacing(Ts)-zt):po%2!==0&&(Eo=Math.max(Eo,(x?pa.width:pa.height)+a.computeBusNodeSpacing(Ts)-zt))}else nt===1&&(Mi=x?E[0].Da.width:E[0].Da.height);if(ot)switch(ut){case If:case rf:on=135>b?mw(a,y,E,Mi,tn,on):vw(a,y,E,Mi,tn,on),Mi=on.x,tn=on.width,on=on.height;break;case kf:for(kt=0;kt<nt;kt++)he=E[kt],Sn=he.Da,Eo=vr===0?0:He,x?(he.S.h(z-Sn.width,nr+Eo),tn=Math.max(tn,Sn.width),on=Math.max(on,nr+Eo+Sn.height),nr+=Eo+Sn.height):(he.S.h(Gn+Eo,z-Sn.height),tn=Math.max(tn,Gn+Eo+Sn.width),on=Math.max(on,Sn.height),Gn+=Eo+Sn.width),vr++;break;case df:for(z=0;z<nt;z++)kt=E[z],he=kt.Da,Sn=vr===0?0:He,x?(kt.S.h(zt/2+y.focus.x,nr+Sn),tn=Math.max(tn,he.width),on=Math.max(on,nr+Sn+he.height),nr+=Sn+he.height):(kt.S.h(Gn+Sn,zt/2+y.focus.y),tn=Math.max(tn,Gn+Sn+he.width),on=Math.max(on,he.height),Gn+=Sn+he.width),vr++}else for(Eo=0;Eo<nt;Eo++)po=E[Eo],Ts=po.Da,x?(0<kt&&0<vr&&Gn+zt+Ts.width>kt&&(Gn<z&&Og(y,ut,z-Gn,0,Ki,Eo-1),Fr++,vr=0,Ki=Eo,Sn=on,Gn=0,nr=135<b?-on-He:on+He),pa=vr===0?he:zt,J0(a,po,0,nr),po.S.h(Gn+pa,nr),tn=Math.max(tn,Gn+pa+Ts.width),on=Math.max(on,Sn+(Fr===0?0:He)+Ts.height),Gn+=pa+Ts.width):(0<kt&&0<vr&&nr+zt+Ts.height>kt&&(nr<z&&Og(y,ut,0,z-nr,Ki,Eo-1),Fr++,vr=0,Ki=Eo,Sn=tn,nr=0,Gn=135<b?-tn-He:tn+He),pa=vr===0?he:zt,J0(a,po,Gn,0),po.S.h(Gn,nr+pa),on=Math.max(on,nr+pa+Ts.height),tn=Math.max(tn,Sn+(Fr===0?0:He)+Ts.width),nr+=pa+Ts.height),vr++;switch(0<Fr&&(x?(on+=Math.max(0,at),Gn<tn&&Og(y,ut,tn-Gn,0,Ki,nt-1),0<Fe&&(yt||hp(y,Fe,0,0,nt-1),tn+=Fe)):(tn+=Math.max(0,at),nr<on&&Og(y,ut,0,on-nr,Ki,nt-1),0<Fe&&(yt||hp(y,0,Fe,0,nt-1),on+=Fe))),Fe=yt=0,ut){case $p:x?yt+=tn/2-y.focus.x-Zt/2:Fe+=on/2-y.focus.y-Zt/2;break;case dp:0<Fr?x?yt+=tn/2-y.focus.x-Zt/2:Fe+=on/2-y.focus.y-Zt/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-Zt/2):(a=E[0].S.y+E[0].la.y,Fe+=a+(E[nt-1].S.y+E[nt-1].la.y+2*E[nt-1].focus.y-a)/2-y.focus.y-Zt/2);break;case ef:x?(yt-=Zt,tn+=Zt):(Fe-=Zt,on+=Zt);break;case nf:x?(yt+=tn-y.width+Zt,tn+=Zt):(Fe+=on-y.height+Zt,on+=Zt);break;case If:case rf:x?1<nt?yt+=Mi+zt/2-y.focus.x:yt+=E[0].focus.x-y.focus.x+E[0].la.x:1<nt?Fe+=Mi+zt/2-y.focus.y:Fe+=E[0].focus.y-y.focus.y+E[0].la.y;break;case kf:x?yt+=tn+zt/2-y.focus.x:Fe+=on+zt/2-y.focus.y;break;case df:break;default:a=a.customAlignment(y,yt,Fe,tn,on),yt=a[0],Fe=a[1],tn=a[2],on=a[3]}for(a=0;a<nt;a++)Zt=E[a],x?Zt.S.h(Zt.S.x+Zt.la.x-yt,Zt.S.y+(135<b?(ot?-on:-Zt.Da.height)+Zt.la.y-at:Ve+at+Zt.la.y)):Zt.S.h(Zt.S.x+(135<b?(ot?-tn:-Zt.Da.width)+Zt.la.x-at:ct+at+Zt.la.x),Zt.S.y+Zt.la.y-Fe);x?(tn=fy(y,tn,yt),0>yt&&(yt=0),135<b&&(Fe+=on+at),on=Math.max(Math.max(on,Ve),on+Ve+at)):(135<b&&(yt+=tn+at),tn=Math.max(Math.max(tn,ct),tn+ct+at),on=gy(y,on,Fe),0>Fe&&(Fe=0)),y.la.h(yt,Fe),y.Da.h(tn,on)}}cs.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,ut=iA(y)===90,ct=0,yt=0,kt=0,zt=0;zt<nt;zt++)if(!(zt%2!==0||1<nt&&zt===nt-1)){var Zt=x[zt],he=Zt.Da,He=ct===0?0:at;if(ut){var Fe=a.computeBusNodeSpacing(Zt)-ot;Zt.S.h(b-(he.width+Fe),kt+He),E=Math.max(E,he.width+Fe),z=Math.max(z,kt+He+he.height),kt+=He+he.height}else Fe=a.computeBusNodeSpacing(Zt)-ot,Zt.S.h(yt+He,b-(he.height+Fe)),z=Math.max(z,he.height+Fe),E=Math.max(E,yt+He+he.width),yt+=He+he.width;ct++}for(ct=0,Zt=yt,zt=kt,ut?(yt=b+ot,kt=0):(yt=0,kt=b+ot),he=0;he<nt;he++)if(he%2!==0){He=x[he],Fe=He.Da;var Ve=ct===0?0:at;if(ut){var tn=a.computeBusNodeSpacing(He)-ot;He.S.h(yt+tn,kt+Ve),E=Math.max(E,yt+Fe.width+tn),z=Math.max(z,kt+Ve+Fe.height),kt+=Ve+Fe.height}else tn=a.computeBusNodeSpacing(He)-ot,He.S.h(yt+Ve,kt+tn),E=Math.max(E,yt+Ve+Fe.width),z=Math.max(z,kt+Fe.height+tn),yt+=Ve+Fe.width;ct++}return 1<nt&&nt%2===1&&(x=x[nt-1],nt=x.Da,a=a.computeBusLastRowSpacing(x,ut?Math.max(Math.abs(zt),Math.abs(kt)):Math.max(Math.abs(Zt),Math.abs(yt))),ut?(x.S.h(b+ot/2-x.focus.x-x.la.x,z+a),ut=b+ot/2-x.focus.x-x.la.x,E=Math.max(E,ut+nt.width),0>ut&&(E-=ut),z=Math.max(z,Math.max(zt,kt)+a+nt.height),0>x.S.x&&(b=Y0(y,x.S.x,!1,b,ot))):(x.S.h(E+a,b+ot/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(Zt,yt)+a+nt.width),kt=b+ot/2-x.focus.y-x.la.y,z=Math.max(z,kt+nt.height),0>kt&&(z-=kt),0>x.S.y&&(b=Y0(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,ut=iA(y)===270,ct=0,yt=0,kt=0,zt=0;zt<nt;zt++)if(!(zt%2!==0||1<nt&&zt===nt-1)){var Zt=x[zt],he=Zt.Da,He=ct===0?0:at;if(ut){var Fe=a.computeBusNodeSpacing(Zt)-ot;kt-=He+he.height,Zt.S.h(b-(he.width+Fe),kt),E=Math.max(E,he.width+Fe),z=Math.max(z,Math.abs(kt))}else Fe=a.computeBusNodeSpacing(Zt)-ot,yt-=He+he.width,Zt.S.h(yt,b-(he.height+Fe)),z=Math.max(z,he.height+Fe),E=Math.max(E,Math.abs(yt));ct++}for(ct=0,Zt=yt,zt=kt,ut?(yt=b+ot,kt=0):(yt=0,kt=b+ot),he=0;he<nt;he++)if(he%2!==0){He=x[he],Fe=He.Da;var Ve=ct===0?0:at;if(ut){var tn=a.computeBusNodeSpacing(He)-ot;kt-=Ve+Fe.height,He.S.h(yt+tn,kt),E=Math.max(E,yt+Fe.width+tn),z=Math.max(z,Math.abs(kt))}else tn=a.computeBusNodeSpacing(He)-ot,yt-=Ve+Fe.width,He.S.h(yt,kt+tn),z=Math.max(z,kt+Fe.height+tn),E=Math.max(E,Math.abs(yt));ct++}for(1<nt&&nt%2===1&&(at=x[nt-1],ct=at.Da,a=a.computeBusLastRowSpacing(at,ut?Math.max(Math.abs(zt),Math.abs(kt)):Math.max(Math.abs(Zt),Math.abs(yt))),ut?(at.S.h(b+ot/2-at.focus.x-at.la.x,-z-ct.height-a),yt=b+ot/2-at.focus.x-at.la.x,E=Math.max(E,yt+ct.width),0>yt&&(E-=yt),z=Math.max(z,Math.abs(Math.min(zt,kt))+a+ct.height),0>at.S.x&&(b=Y0(y,at.S.x,!1,b,ot))):(at.S.h(-E-ct.width-a,b+ot/2-at.focus.y-at.la.y),E=Math.max(E,Math.abs(Math.min(Zt,yt))+a+ct.width),kt=b+ot/2-at.focus.y-at.la.y,z=Math.max(z,kt+ct.height),0>kt&&(z-=kt),0>at.S.y&&(b=Y0(y,at.S.y,!0,b,ot)))),y=0;y<nt;y++)ot=x[y],ut?ot.S.h(ot.S.x,ot.S.y+z):ot.S.h(ot.S.x+E,ot.S.y);return new ai(b,0,E,z)}cs.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},cs.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function Y0(a,y,x,b,E){a=a.children;for(var z=a.length,nt=0;nt<z;nt++)x?a[nt].S.h(a[nt].S.x,a[nt].S.y-y):a[nt].S.h(a[nt].S.x-y,a[nt].S.y);return y=a[z-1],Math.max(b,x?y.la.y+y.focus.y-E/2:y.la.x+y.focus.x-E/2)}function fy(a,y,x){switch(a.alignment){case dp:case $p:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case ef:return a.width>y?a.width:y;case nf:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case If:case rf:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case kf:return a.width-a.focus.x+a.nodeSpacing/2+y;case df:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function gy(a,y,x){switch(a.alignment){case dp:case $p:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case ef:return a.height>y?a.height:y;case nf:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case If:case rf:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case kf:return a.height-a.focus.y+a.nodeSpacing/2+y;case df:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function py(a,y,x){switch(a){case $p:y/=2,x/=2;break;case dp:y/=2,x/=2;break;case ef:x=y=0;break;case nf:break;default:qe("Unhandled alignment value "+a.toString())}return new Ne(y,x)}function Og(a,y,x,b,E,z){y=py(y,x,b),hp(a,y.x,y.y,E,z)}function hp(a,y,x,b,E){if(y!==0||x!==0)for(a=a.children;b<=E;b++){var z=a[b].S;z.x+=y,z.y+=x}}function J0(a,y,x,b){var E=y.parent;switch(a.ud){case tf:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case cp:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:qe("Unhandled path value "+a.ud.toString())}}function q0(a,y,x){for(var b=0;b<a.length;b++){var E=a[b];E.x+=y,E.y+=x}}function yw(a,y,x,b,E,z,nt,ot){var at=iA(y),ut=at===90||at===270,ct=y.nodeSpacing;y=b;var yt=E;b=z;var kt=nt,zt=x.Yo,Zt=x.kp;nt=x.Da;var he=ut?Math.max(kt,nt.height):Math.max(b,nt.width);if((zt===null||at!==iA(x))&&(zt=vc(a,2),Zt=vc(a,2),ut?(zt[0].h(0,0),zt[1].h(0,nt.height),Zt[0].h(nt.width,0),Zt[1].h(Zt[0].x,zt[1].y)):(zt[0].h(0,0),zt[1].h(nt.width,0),Zt[0].h(0,nt.height),Zt[1].h(zt[1].x,Zt[0].y))),ut){if(kt=9999999,!(yt===null||2>yt.length||zt===null||2>zt.length))for(E=x=0;x<yt.length&&E<zt.length;){z=yt[x];var He=zt[E];at=He.x,ut=He.y,at+=b;var Fe=z;x+1<yt.length&&(Fe=yt[x+1]);var Ve=He;He=Ve.x,Ve=Ve.y,E+1<zt.length&&(Ve=zt[E+1],He=Ve.x,Ve=Ve.y,He+=b);var tn=kt;z.y===ut?tn=at-z.x:z.y>ut&&z.y<Ve?tn=at+(z.y-ut)/(Ve-ut)*(He-at)-z.x:ut>z.y&&ut<Fe.y&&(tn=at-(z.x+(ut-z.y)/(Fe.y-z.y)*(Fe.x-z.x))),tn<kt&&(kt=tn),Fe.y<=z.y?x++:Ve<=ut?E++:(Fe.y<=Ve&&x++,Ve<=Fe.y&&E++)}if(kt=b-kt,kt+=ct,x=zt,E=kt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ct=vc(a,y.length+x.length),b=z=at=0;z<x.length&&x[z].y<y[0].y;)ut=x[z++],ct[b++].h(ut.x+E,ut.y);for(;at<y.length;)ut=y[at++],ct[b++].h(ut.x,ut.y);for(at=y[y.length-1].y;z<x.length&&x[z].y<=at;)z++;for(;z<x.length&&x[z].y>at;)ut=x[z++],ct[b++].h(ut.x+E,ut.y);for(x=vc(a,b),at=0;at<b;at++)x[at].assign(ct[at]);pA(a,ct),b=x}if(z=Zt,at=kt,yt===null||2>yt.length||z===null||2>z.length)E=null;else{for(ct=vc(a,yt.length+z.length),E=ut=x=0;x<yt.length&&yt[x].y<z[0].y;)Fe=yt[x++],ct[E++].h(Fe.x,Fe.y);for(;ut<z.length;)Fe=z[ut++],ct[E++].h(Fe.x+at,Fe.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++],ct[E++].h(at.x,at.y);for(z=vc(a,E),x=0;x<E;x++)z[x].assign(ct[x]);pA(a,ct),E=z}return z=Math.max(0,kt)+nt.width,nt=he,pA(a,y),pA(a,zt),pA(a,yt),pA(a,Zt),ot[0]=b,ot[1]=E,new ai(kt,0,z,nt)}if(b=9999999,!(yt===null||2>yt.length||zt===null||2>zt.length))for(E=x=0;x<yt.length&&E<zt.length;)z=yt[x],He=zt[E],at=He.x,ut=He.y,ut+=kt,Fe=z,x+1<yt.length&&(Fe=yt[x+1]),Ve=He,He=Ve.x,Ve=Ve.y,E+1<zt.length&&(Ve=zt[E+1],He=Ve.x,Ve=Ve.y,Ve+=kt),tn=b,z.x===at?tn=ut-z.y:z.x>at&&z.x<He?tn=ut+(z.x-at)/(He-at)*(Ve-ut)-z.y:at>z.x&&at<Fe.x&&(tn=ut-(z.y+(at-z.x)/(Fe.x-z.x)*(Fe.y-z.y))),tn<b&&(b=tn),Fe.x<=z.x?x++:He<=at?E++:(Fe.x<=He&&x++,He<=Fe.x&&E++);if(kt-=b,kt+=ct,x=zt,E=kt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ct=vc(a,y.length+x.length),b=z=at=0;z<x.length&&x[z].x<y[0].x;)ut=x[z++],ct[b++].h(ut.x,ut.y+E);for(;at<y.length;)ut=y[at++],ct[b++].h(ut.x,ut.y);for(at=y[y.length-1].x;z<x.length&&x[z].x<=at;)z++;for(;z<x.length&&x[z].x>at;)ut=x[z++],ct[b++].h(ut.x,ut.y+E);for(x=vc(a,b),at=0;at<b;at++)x[at].assign(ct[at]);pA(a,ct),b=x}if(z=Zt,at=kt,yt===null||2>yt.length||z===null||2>z.length)E=null;else{for(ct=vc(a,yt.length+z.length),E=ut=x=0;x<yt.length&&yt[x].x<z[0].x;)Fe=yt[x++],ct[E++].h(Fe.x,Fe.y);for(;ut<z.length;)Fe=z[ut++],ct[E++].h(Fe.x,Fe.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++],ct[E++].h(at.x,at.y);for(z=vc(a,E),x=0;x<E;x++)z[x].assign(ct[x]);pA(a,ct),E=z}return z=he,nt=Math.max(0,kt)+nt.height,pA(a,y),pA(a,zt),pA(a,yt),pA(a,Zt),ot[0]=b,ot[1]=E,new ai(kt,0,z,nt)}function vc(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var x=0;x<y;x++)a[x]=new Ne;return a}function pA(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}cs.prototype.arrangeTrees=function(){if(this.Rb===rv)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof jd){var x=y.node;if(x!==null){var b=x.position;x=b.x,b=b.y,isFinite(x)||(x=0),isFinite(b)||(b=0),my(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof jd&&a.push(x);switch(this.sorting){case Xp:break;case Km:a.reverse();break;case Gm:a.sort(this.comparer);break;case Wm:a.sort(this.comparer),a.reverse();break;default:qe("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:qe("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)}}}cs.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},cs.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},cs.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 Ne(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new Ne(-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)}},cs.prototype.commitLayers=function(){},cs.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},cs.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof jd&&ww(this,y)}};function ww(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)ww(a,y[b])}}cs.prototype.setPortSpots=function(a){var y=a.alignment;if(dg(y)){var x=this.ud===tf,b=iA(a);switch(b){case 0:var E=tl;break;case 90:E=Dl;break;case 180:E=Aa;break;default:E=za}var z=a.children,nt=z.length;switch(y){case If:case rf:for(y=0;y<nt;y++){var ot=z[y];if(ot=(x?ot.sourceEdges:ot.destinationEdges).first(),ot!==null&&(ot=ot.link,ot!==null)){var at=b===90||b===270?Aa:za;if(nt===1||y===nt-1&&nt%2===1)switch(b){case 0:at=Aa;break;case 90:at=za;break;case 180:at=tl;break;default:at=Dl}else y%2===0&&(at=b===90||b===270?tl:Dl);x?(a.setsPortSpot&&(ot.fromSpot=E),a.setsChildPortSpot&&(ot.toSpot=at)):(a.setsPortSpot&&(ot.fromSpot=at),a.setsChildPortSpot&&(ot.toSpot=E))}}break;case kf:for(b=b===90||b===270?tl: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:za,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=tl;break;case 90:b.fromSpot=Dl;break;case 180:b.fromSpot=Aa;break;default:b.fromSpot=za}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=Aa;break;case 90:b.toSpot=za;break;case 180:b.toSpot=tl;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=tl;break;case 90:b.toSpot=Dl;break;case 180:b.toSpot=Aa;break;default:b.toSpot=za}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=Aa;break;case 90:b.fromSpot=za;break;case 180:b.fromSpot=tl;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}cs.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},cs.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(cs.prototype,{roots:{get:function(){return this.Ub},set:function(a){this.Ub!==a&&(this.Ub=a,this.C())}},path:{get:function(){return this.Wn},set:function(a){this.Wn!==a&&(this.Wn=a,this.C())}},treeStyle:{get:function(){return this.vo},set:function(a){this.Rb===a||a!==nv&&a!==yy&&a!==vy&&a!==wy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Sy&&a!==Cy&&a!==ov||(this.Bq=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==iv&&a!==xy&&a!==rv||(this.Rb=a,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},rootDefaults:{get:function(){return this.W},set:function(a){this.W!==a&&(this.W=a,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(a){this.Y!==a&&(this.Y=a,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(a){this.W.sorting===a||a!==Xp&&a!==Km&&a!==Gm&&!Wm||(this.W.sorting=a,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(a){this.W.comparer!==a&&(this.W.comparer=a,this.C())}},angle:{get:function(){return this.W.angle},set:function(a){this.W.angle!==a&&(a===0||a===90||a===180||a===270?(this.W.angle=a,this.C()):qe("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(a){this.W.alignment!==a&&(this.W.alignment=a,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(a){this.W.nodeIndent!==a&&0<=a&&(this.W.nodeIndent=a,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(a){this.W.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==ev&&a!==Vm||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==Xp&&a!==Km&&a!==Gm&&!Wm||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==ev&&a!==Vm||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var tv=new vi(cs,"PathDefault",-1),tf=new vi(cs,"PathDestination",0),cp=new vi(cs,"PathSource",1),Xp=new vi(cs,"SortingForwards",10),Km=new vi(cs,"SortingReverse",11),Gm=new vi(cs,"SortingAscending",12),Wm=new vi(cs,"SortingDescending",13),$p=new vi(cs,"AlignmentCenterSubtrees",20),dp=new vi(cs,"AlignmentCenterChildren",21),ef=new vi(cs,"AlignmentStart",22),nf=new vi(cs,"AlignmentEnd",23),If=new vi(cs,"AlignmentBus",24),rf=new vi(cs,"AlignmentBusBranching",25),kf=new vi(cs,"AlignmentTopLeftBus",26),df=new vi(cs,"AlignmentBottomRightBus",27),ev=new vi(cs,"CompactionNone",30),Vm=new vi(cs,"CompactionBlock",31),nv=new vi(cs,"StyleLayered",40),vy=new vi(cs,"StyleLastParents",41),yy=new vi(cs,"StyleAlternating",42),wy=new vi(cs,"StyleRootOnly",43),iv=new vi(cs,"ArrangementVertical",50),xy=new vi(cs,"ArrangementHorizontal",51),rv=new vi(cs,"ArrangementFixedRoots",52),Sy=new vi(cs,"LayerIndividual",60),Cy=new vi(cs,"LayerSiblings",61),ov=new vi(cs,"LayerUniform",62);cs.className="TreeLayout",cs.PathDefault=tv,cs.PathDestination=tf,cs.PathSource=cp,cs.SortingForwards=Xp,cs.SortingReverse=Km,cs.SortingAscending=Gm,cs.SortingDescending=Wm,cs.AlignmentCenterSubtrees=$p,cs.AlignmentCenterChildren=dp,cs.AlignmentStart=ef,cs.AlignmentEnd=nf,cs.AlignmentBus=If,cs.AlignmentBusBranching=rf,cs.AlignmentTopLeftBus=kf,cs.AlignmentBottomRightBus=df,cs.CompactionNone=ev,cs.CompactionBlock=Vm,cs.StyleLayered=nv,cs.StyleLastParents=vy,cs.StyleAlternating=yy,cs.StyleRootOnly=wy,cs.ArrangementVertical=iv,cs.ArrangementHorizontal=xy,cs.ArrangementFixedRoots=rv,cs.LayerIndividual=Sy,cs.LayerSiblings=Cy,cs.LayerUniform=ov;function Ap(a){xa.call(this,a)}Tn(Ap,xa),Ap.prototype.createVertex=function(){return new jd(this)},Ap.prototype.createEdge=function(){return new Yp(this)},Ap.className="TreeNetwork";function jd(a){xu.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new Ne(0,0),this.Da=new Vi(0,0),this.la=new Ne(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Xp,this.hd=zv,this.Kb=0,this.Jb=dp,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Vm,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Ls,this.wr=!0,this.Dp=Ls}Tn(jd,xu),jd.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},Oe.Object.defineProperties(jd.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.u=a}}},level:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},descendantCount:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},maxChildrenCount:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},maxGenerationCount:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a)}},comments:{get:function(){return this.td},set:function(a){if(this.td!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.td=a}}},sorting:{get:function(){return this.nd},set:function(a){this.nd!==a&&(this.nd=a)}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a)}},angle:{get:function(){return this.Kb},set:function(a){this.Kb!==a&&(this.Kb=a)}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb!==a&&(this.Jb=a)}},nodeIndent:{get:function(){return this.Uq},set:function(a){this.Uq!==a&&(this.Uq=a)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(a){this.Vq!==a&&(this.Vq=a)}},nodeSpacing:{get:function(){return this.Wq},set:function(a){this.Wq!==a&&(this.Wq=a)}},layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&(this.ie=a)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(a){this.Aq!==a&&(this.Aq=a)}},compaction:{get:function(){return this.Hp},set:function(a){this.Hp!==a&&(this.Hp=a)}},breadthLimit:{get:function(){return this.Ap},set:function(a){this.Ap!==a&&(this.Ap=a)}},rowSpacing:{get:function(){return this.nr},set:function(a){this.nr!==a&&(this.nr=a)}},rowIndent:{get:function(){return this.mr},set:function(a){this.mr!==a&&(this.mr=a)}},commentSpacing:{get:function(){return this.Gp},set:function(a){this.Gp!==a&&(this.Gp=a)}},commentMargin:{get:function(){return this.Fp},set:function(a){this.Fp!==a&&(this.Fp=a)}},setsPortSpot:{get:function(){return this.xr},set:function(a){this.xr!==a&&(this.xr=a)}},portSpot:{get:function(){return this.dr},set:function(a){this.dr.D(a)||(this.dr=a)}},setsChildPortSpot:{get:function(){return this.wr},set:function(a){this.wr!==a&&(this.wr=a)}},childPortSpot:{get:function(){return this.Dp},set:function(a){this.Dp.D(a)||(this.Dp=a)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(a){this.S.set(a)}},subtreeSize:{get:function(){return this.Da},set:function(a){this.Da.set(a)}},subtreeOffset:{get:function(){return this.la},set:function(a){this.la.set(a)}}}),jd.className="TreeVertex";function Yp(a){Mc.call(this,a),this.$t=new Ne(0,0)}Tn(Yp,Mc),Yp.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,b=null;switch(y.ud){case tf:x=this.fromVertex,b=this.toVertex;break;case cp:x=this.toVertex,b=this.fromVertex;break;default:qe("Unhandled path value "+y.ud.toString())}if(x!==null&&b!==null){var E=this.$t;if(E.x!==0||E.y!==0||x.qA){b=x.bounds;var z=iA(x),nt=y.computeLayerSpacing(x),ot=x.rowSpacing;a.vg();var at=a.curve===Yc,ut=a.isOrthogonal,ct;if(a.uh(),ut||at){for(ct=2;4<a.pointsCount;)a.pv(2);var yt=a.i(1),kt=a.i(2)}else{for(ct=1;3<a.pointsCount;)a.pv(1);yt=a.i(0),kt=a.i(a.pointsCount-1)}var zt=a.i(a.pointsCount-1);z===0?(x.alignment===nf?(z=b.bottom+E.y,E.y===0&&yt.y>zt.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<zt.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(ct,yt.x,z),ct++,a.m(ct,b.right+nt,z),ct++,a.m(ct,b.right+nt+(E.x-ot)/3,z),ct++,a.m(ct,b.right+nt+2*(E.x-ot)/3,z),ct++,a.m(ct,b.right+nt+(E.x-ot),z),ct++,a.m(ct,kt.x,z)):(ut&&(a.m(ct,b.right+nt/2,yt.y),ct++),a.m(ct,b.right+nt/2,z),ct++,a.m(ct,b.right+nt+E.x-(ut?ot/2:ot),z),ct++,ut&&a.m(ct,a.i(ct-1).x,kt.y))):z===90?(x.alignment===nf?(z=b.right+E.x,E.x===0&&yt.x>zt.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<zt.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(ct,z,yt.y),ct++,a.m(ct,z,b.bottom+nt),ct++,a.m(ct,z,b.bottom+nt+(E.y-ot)/3),ct++,a.m(ct,z,b.bottom+nt+2*(E.y-ot)/3),ct++,a.m(ct,z,b.bottom+nt+(E.y-ot)),ct++,a.m(ct,z,kt.y)):(ut&&(a.m(ct,yt.x,b.bottom+nt/2),ct++),a.m(ct,z,b.bottom+nt/2),ct++,a.m(ct,z,b.bottom+nt+E.y-(ut?ot/2:ot)),ct++,ut&&a.m(ct,kt.x,a.i(ct-1).y))):z===180?(x.alignment===nf?(z=b.bottom+E.y,E.y===0&&yt.y>zt.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<zt.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(ct,yt.x,z),ct++,a.m(ct,b.left-nt,z),ct++,a.m(ct,b.left-nt+(E.x+ot)/3,z),ct++,a.m(ct,b.left-nt+2*(E.x+ot)/3,z),ct++,a.m(ct,b.left-nt+(E.x+ot),z),ct++,a.m(ct,kt.x,z)):(ut&&(a.m(ct,b.left-nt/2,yt.y),ct++),a.m(ct,b.left-nt/2,z),ct++,a.m(ct,b.left-nt+E.x+(ut?ot/2:ot),z),ct++,ut&&a.m(ct,a.i(ct-1).x,kt.y))):z===270?(x.alignment===nf?(z=b.right+E.x,E.x===0&&yt.x>zt.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<zt.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(ct,z,yt.y),ct++,a.m(ct,z,b.top-nt),ct++,a.m(ct,z,b.top-nt+(E.y+ot)/3),ct++,a.m(ct,z,b.top-nt+2*(E.y+ot)/3),ct++,a.m(ct,z,b.top-nt+(E.y+ot)),ct++,a.m(ct,z,kt.y)):(ut&&(a.m(ct,yt.x,b.top-nt/2),ct++),a.m(ct,z,b.top-nt/2),ct++,a.m(ct,z,b.top-nt+E.y+(ut?ot/2:ot)),ct++,ut&&a.m(ct,kt.x,a.i(ct-1).y))):qe("Invalid angle "+z),a.zf()}else E=b,a=this.link,b=this.network.layout,y=iA(x),y!==iA(E)&&(nt=b.computeLayerSpacing(x),ot=x.bounds,x=E.bounds,y===0&&x.left-ot.right<nt+1||y===90&&x.top-ot.bottom<nt+1||y===180&&ot.left-x.right<nt+1||y===270&&ot.top-x.bottom<nt+1||(a.vg(),x=a.curve===Yc,E=a.isOrthogonal,b=dg(this.fromVertex.alignment),a.uh(),y===0?(y=ot.right+nt/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,x),a.m(3,y,x),a.m(4,y+20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=ot.bottom+nt/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,x,y-20),a.m(3,x,y),a.m(4,x,y+20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=ot.left-nt/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,x),a.m(3,y,x),a.m(4,y-20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=ot.top-nt/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,x,y+20),a.m(3,x,y),a.m(4,x,y-20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},Oe.Object.defineProperties(Yp.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},relativePoint:{get:function(){return this.$t},set:function(a){this.$t.set(a)}}}),Yp.className="TreeEdge",ie.prototype.initializeStandardTools=function(){this.gb("Action",new Br,this.mouseDownTools),this.gb("Relinking",new ii,this.mouseDownTools),this.gb("LinkReshaping",new li,this.mouseDownTools),this.gb("Rotating",new Xn,this.mouseDownTools),this.gb("Resizing",new Ii,this.mouseDownTools),this.gb("Linking",new un,this.mouseMoveTools),this.gb("Dragging",new Pn,this.mouseMoveTools),this.gb("DragSelecting",new ar,this.mouseMoveTools),this.gb("Panning",new qi,this.mouseMoveTools),this.gb("ContextMenu",new co,this.mouseUpTools),this.gb("TextEditing",new rs,this.mouseUpTools),this.gb("ClickCreating",new sr,this.mouseUpTools),this.gb("ClickSelecting",new Co,this.mouseUpTools)},Zc("Horizontal",new zn),Zc("Spot",new $i),Zc("Table",new Kr),Zc("Viewbox",new ji),Zc("TableRow",new Nr),Zc("TableColumn",new Hi),Zc("Graduated",new ts),Zc("Grid",new zr),Pa.add("GraphLinksModel",Hu),Pa.add("TreeModel",gd);var sv=Le.go,By={get licenseKey(){return _n.licenseKey},set licenseKey(a){_n.licenseKey=a},get version(){return _n.version},Group:ko,EnumValue:vi,List:Pi,Set:Ci,Map:wr,Point:Ne,Size:Vi,Rect:ai,Margin:Hr,Spot:fr,Geometry:Wi,PathFigure:el,PathSegment:ms,InputEvent:Cu,DiagramEvent:wd,ChangedEvent:Ea,Model:Or,GraphLinksModel:vs,TreeModel:Yh,Binding:Jl,Transaction:Yl,UndoManager:Et,CommandHandler:De,Tool:bt,DraggingTool:Pn,DraggingInfo:ah,DraggingOptions:st,LinkingBaseTool:rn,LinkingTool:un,RelinkingTool:ii,LinkReshapingTool:li,ResizingTool:Ii,RotatingTool:Xn,ClickSelectingTool:Co,ActionTool:Br,ClickCreatingTool:sr,HTMLInfo:pr,ContextMenuTool:co,DragSelectingTool:ar,PanningTool:qi,TextEditingTool:rs,ToolManager:ie,Animation:_a,AnimationManager:ca,AnimationTrigger:vh,Layer:ga,Diagram:_n,Palette:vt,Overview:Bt,Brush:Us,GraphObject:pn,Panel:ci,RowColumnDefinition:Vl,Shape:Io,TextBlock:oa,Picture:hc,Part:Xr,Adornment:Ms,Node:cr,Link:Gi,Placeholder:Vh,Layout:Wa,LayoutNetwork:xa,LayoutVertex:xu,LayoutEdge:Mc,GridLayout:nh,PanelLayout:xn,CircularLayout:fl,CircularNetwork:Wp,CircularVertex:jm,CircularEdge:_0,ForceDirectedLayout:gh,ForceDirectedNetwork:up,ForceDirectedVertex:Um,ForceDirectedEdge:Rm,LayeredDigraphLayout:Zs,LayeredDigraphNetwork:Zp,LayeredDigraphVertex:md,LayeredDigraphEdge:Qm,TreeLayout:cs,TreeNetwork:Ap,TreeVertex:jd,TreeEdge:Yp};typeof sv=="object"&&sv.version&&tr("WARNING: a `go` object on the root object is already defined. "+("Debug"in sv?"debug ":"")+"version: "+sv.version+", replaced with version: "+By.version),_n.prototype.go=By,Le.go=By,typeof hi.exports=="object"&&(hi.exports=typeof Ft.g!="undefined"?Ft.g.go:self.go)}();var Mt=typeof Ft.g!="undefined"?Ft.g.go:self.go;const ce=typeof Ft.g!="undefined"?Ft.g.go:self.go,re=ce.Group,Ie=ce.EnumValue,ee=ce.List,Vt=ce.Set,Nt=ce.Map,jt=ce.Point,te=ce.Size,Pt=ce.Rect,oe=ce.Margin,Kt=ce.Spot,$t=ce.Geometry,Ct=ce.PathFigure,et=ce.PathSegment,tt=ce.InputEvent,lt=ce.DiagramEvent,rt=ce.ChangedEvent,ht=ce.Model,dt=ce.GraphLinksModel,xt=ce.TreeModel,It=ce.Binding,Ut=ce.Transaction,Gt=ce.UndoManager,se=ce.CommandHandler,ue=ce.Tool,Ae=ce.DraggingTool,Pe=ce.DraggingInfo,qt=ce.LinkingBaseTool,ze=ce.LinkingTool,Wt=ce.RelinkingTool,Ge=ce.LinkReshapingTool,_e=ce.ResizingTool,Me=ce.RotatingTool,We=ce.ClickSelectingTool,Re=ce.ActionTool,ye=ce.ClickCreatingTool,ne=ce.HTMLInfo,Ce=ce.ContextMenuTool,bn=ce.DragSelectingTool,Ln=ce.PanningTool,Ze=ce.TextEditingTool,Mn=ce.ToolManager,Vn=ce.Animation,gi=ce.AnimationManager,Kn=ce.AnimationTrigger,Bi=ce.Layer,en=ce.Diagram,Li=ce.Palette,Oi=ce.Overview,Lt=ce.Brush,Ot=ce.GraphObject,mt=ce.Panel,ft=ce.RowColumnDefinition,pt=ce.Shape,At=ce.TextBlock,le=ce.TextBlockMetrics,xe=ce.Picture,ae=ce.Part,ve=ce.Adornment,Ue=ce.Node,Te=ce.Link,ke=ce.Placeholder,nn=ce.Layout,Wn=ce.LayoutNetwork,an=ce.LayoutVertex,gn=ce.LayoutEdge,Bn=ce.GridLayout,ti=ce.PanelLayout,Rn=ce.CircularLayout,Ri=ce.CircularNetwork,dr=ce.CircularVertex,Ji=ce.CircularEdge,mr=ce.ForceDirectedLayout,Mr=ce.ForceDirectedNetwork,ro=ce.ForceDirectedVertex,Jr=ce.ForceDirectedEdge,$r=ce.LayeredDigraphLayout,Tr=ce.LayeredDigraphNetwork,Wr=ce.LayeredDigraphVertex,oo=ce.LayeredDigraphEdge,Uo=ce.TreeLayout,is=ce.TreeNetwork,uo=ce.TreeVertex,Ss=ce.TreeEdge,To=ce.version},64270:function(hi){(function(Cn,Ft){hi.exports=Ft()})(this,function(){"use strict";var Cn=function(Dt,Tt){return Cn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_t,Rt){_t.__proto__=Rt}||function(_t,Rt){for(var Be in Rt)Object.prototype.hasOwnProperty.call(Rt,Be)&&(_t[Be]=Rt[Be])},Cn(Dt,Tt)};function Ft(Dt,Tt){if(typeof Tt!="function"&&Tt!==null)throw new TypeError("Class extends value "+String(Tt)+" is not a constructor or null");Cn(Dt,Tt);function _t(){this.constructor=Dt}Dt.prototype=Tt===null?Object.create(Tt):(_t.prototype=Tt.prototype,new _t)}var Mt=function(){return Mt=Object.assign||function(Tt){for(var _t,Rt=1,Be=arguments.length;Rt<Be;Rt++){_t=arguments[Rt];for(var Ye in _t)Object.prototype.hasOwnProperty.call(_t,Ye)&&(Tt[Ye]=_t[Ye])}return Tt},Mt.apply(this,arguments)};function ce(Dt,Tt,_t,Rt){function Be(Ye){return Ye instanceof _t?Ye:new _t(function(Fn){Fn(Ye)})}return new(_t||(_t=Promise))(function(Ye,Fn){function ni(zi){try{Ui(Rt.next(zi))}catch(lr){Fn(lr)}}function Dn(zi){try{Ui(Rt.throw(zi))}catch(lr){Fn(lr)}}function Ui(zi){zi.done?Ye(zi.value):Be(zi.value).then(ni,Dn)}Ui((Rt=Rt.apply(Dt,Tt||[])).next())})}function re(Dt,Tt){var _t={label:0,sent:function(){if(Ye[0]&1)throw Ye[1];return Ye[1]},trys:[],ops:[]},Rt,Be,Ye,Fn;return Fn={next:ni(0),throw:ni(1),return:ni(2)},typeof Symbol=="function"&&(Fn[Symbol.iterator]=function(){return this}),Fn;function ni(Ui){return function(zi){return Dn([Ui,zi])}}function Dn(Ui){if(Rt)throw new TypeError("Generator is already executing.");for(;_t;)try{if(Rt=1,Be&&(Ye=Ui[0]&2?Be.return:Ui[0]?Be.throw||((Ye=Be.return)&&Ye.call(Be),0):Be.next)&&!(Ye=Ye.call(Be,Ui[1])).done)return Ye;switch(Be=0,Ye&&(Ui=[Ui[0]&2,Ye.value]),Ui[0]){case 0:case 1:Ye=Ui;break;case 4:return _t.label++,{value:Ui[1],done:!1};case 5:_t.label++,Be=Ui[1],Ui=[0];continue;case 7:Ui=_t.ops.pop(),_t.trys.pop();continue;default:if(Ye=_t.trys,!(Ye=Ye.length>0&&Ye[Ye.length-1])&&(Ui[0]===6||Ui[0]===2)){_t=0;continue}if(Ui[0]===3&&(!Ye||Ui[1]>Ye[0]&&Ui[1]<Ye[3])){_t.label=Ui[1];break}if(Ui[0]===6&&_t.label<Ye[1]){_t.label=Ye[1],Ye=Ui;break}if(Ye&&_t.label<Ye[2]){_t.label=Ye[2],_t.ops.push(Ui);break}Ye[2]&&_t.ops.pop(),_t.trys.pop();continue}Ui=Tt.call(Dt,_t)}catch(zi){Ui=[6,zi],Be=0}finally{Rt=Ye=0}if(Ui[0]&5)throw Ui[1];return{value:Ui[0]?Ui[1]:void 0,done:!0}}}function Ie(Dt,Tt,_t){if(_t||arguments.length===2)for(var Rt=0,Be=Tt.length,Ye;Rt<Be;Rt++)(Ye||!(Rt in Tt))&&(Ye||(Ye=Array.prototype.slice.call(Tt,0,Rt)),Ye[Rt]=Tt[Rt]);return Dt.concat(Ye||Tt)}for(var ee=function(){function Dt(Tt,_t,Rt,Be){this.left=Tt,this.top=_t,this.width=Rt,this.height=Be}return Dt.prototype.add=function(Tt,_t,Rt,Be){return new Dt(this.left+Tt,this.top+_t,this.width+Rt,this.height+Be)},Dt.fromClientRect=function(Tt,_t){return new Dt(_t.left+Tt.windowBounds.left,_t.top+Tt.windowBounds.top,_t.width,_t.height)},Dt.fromDOMRectList=function(Tt,_t){var Rt=Array.from(_t).find(function(Be){return Be.width!==0});return Rt?new Dt(Rt.left+Tt.windowBounds.left,Rt.top+Tt.windowBounds.top,Rt.width,Rt.height):Dt.EMPTY},Dt.EMPTY=new Dt(0,0,0,0),Dt}(),Vt=function(Dt,Tt){return ee.fromClientRect(Dt,Tt.getBoundingClientRect())},Nt=function(Dt){var Tt=Dt.body,_t=Dt.documentElement;if(!Tt||!_t)throw new Error("Unable to get document size");var Rt=Math.max(Math.max(Tt.scrollWidth,_t.scrollWidth),Math.max(Tt.offsetWidth,_t.offsetWidth),Math.max(Tt.clientWidth,_t.clientWidth)),Be=Math.max(Math.max(Tt.scrollHeight,_t.scrollHeight),Math.max(Tt.offsetHeight,_t.offsetHeight),Math.max(Tt.clientHeight,_t.clientHeight));return new ee(0,0,Rt,Be)},jt=function(Dt){for(var Tt=[],_t=0,Rt=Dt.length;_t<Rt;){var Be=Dt.charCodeAt(_t++);if(Be>=55296&&Be<=56319&&_t<Rt){var Ye=Dt.charCodeAt(_t++);(Ye&64512)===56320?Tt.push(((Be&1023)<<10)+(Ye&1023)+65536):(Tt.push(Be),_t--)}else Tt.push(Be)}return Tt},te=function(){for(var Dt=[],Tt=0;Tt<arguments.length;Tt++)Dt[Tt]=arguments[Tt];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Dt);var _t=Dt.length;if(!_t)return"";for(var Rt=[],Be=-1,Ye="";++Be<_t;){var Fn=Dt[Be];Fn<=65535?Rt.push(Fn):(Fn-=65536,Rt.push((Fn>>10)+55296,Fn%1024+56320)),(Be+1===_t||Rt.length>16384)&&(Ye+=String.fromCharCode.apply(String,Rt),Rt.length=0)}return Ye},Pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",oe=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Kt=0;Kt<Pt.length;Kt++)oe[Pt.charCodeAt(Kt)]=Kt;for(var $t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ct=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),et=0;et<$t.length;et++)Ct[$t.charCodeAt(et)]=et;for(var tt=function(Dt){var Tt=Dt.length*.75,_t=Dt.length,Rt,Be=0,Ye,Fn,ni,Dn;Dt[Dt.length-1]==="="&&(Tt--,Dt[Dt.length-2]==="="&&Tt--);var Ui=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Tt):new Array(Tt),zi=Array.isArray(Ui)?Ui:new Uint8Array(Ui);for(Rt=0;Rt<_t;Rt+=4)Ye=Ct[Dt.charCodeAt(Rt)],Fn=Ct[Dt.charCodeAt(Rt+1)],ni=Ct[Dt.charCodeAt(Rt+2)],Dn=Ct[Dt.charCodeAt(Rt+3)],zi[Be++]=Ye<<2|Fn>>4,zi[Be++]=(Fn&15)<<4|ni>>2,zi[Be++]=(ni&3)<<6|Dn&63;return Ui},lt=function(Dt){for(var Tt=Dt.length,_t=[],Rt=0;Rt<Tt;Rt+=2)_t.push(Dt[Rt+1]<<8|Dt[Rt]);return _t},rt=function(Dt){for(var Tt=Dt.length,_t=[],Rt=0;Rt<Tt;Rt+=4)_t.push(Dt[Rt+3]<<24|Dt[Rt+2]<<16|Dt[Rt+1]<<8|Dt[Rt]);return _t},ht=5,dt=11,xt=2,It=dt-ht,Ut=65536>>ht,Gt=1<<ht,se=Gt-1,ue=1024>>ht,Ae=Ut+ue,Pe=Ae,qt=32,ze=Pe+qt,Wt=65536>>dt,Ge=1<<It,_e=Ge-1,Me=function(Dt,Tt,_t){return Dt.slice?Dt.slice(Tt,_t):new Uint16Array(Array.prototype.slice.call(Dt,Tt,_t))},We=function(Dt,Tt,_t){return Dt.slice?Dt.slice(Tt,_t):new Uint32Array(Array.prototype.slice.call(Dt,Tt,_t))},Re=function(Dt,Tt){var _t=tt(Dt),Rt=Array.isArray(_t)?rt(_t):new Uint32Array(_t),Be=Array.isArray(_t)?lt(_t):new Uint16Array(_t),Ye=24,Fn=Me(Be,Ye/2,Rt[4]/2),ni=Rt[5]===2?Me(Be,(Ye+Rt[4])/2):We(Rt,Math.ceil((Ye+Rt[4])/4));return new ye(Rt[0],Rt[1],Rt[2],Rt[3],Fn,ni)},ye=function(){function Dt(Tt,_t,Rt,Be,Ye,Fn){this.initialValue=Tt,this.errorValue=_t,this.highStart=Rt,this.highValueIndex=Be,this.index=Ye,this.data=Fn}return Dt.prototype.get=function(Tt){var _t;if(Tt>=0){if(Tt<55296||Tt>56319&&Tt<=65535)return _t=this.index[Tt>>ht],_t=(_t<<xt)+(Tt&se),this.data[_t];if(Tt<=65535)return _t=this.index[Ut+(Tt-55296>>ht)],_t=(_t<<xt)+(Tt&se),this.data[_t];if(Tt<this.highStart)return _t=ze-Wt+(Tt>>dt),_t=this.index[_t],_t+=Tt>>ht&_e,_t=this.index[_t],_t=(_t<<xt)+(Tt&se),this.data[_t];if(Tt<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Dt}(),ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ce=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),bn=0;bn<ne.length;bn++)Ce[ne.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==",Ze=50,Mn=1,Vn=2,gi=3,Kn=4,Bi=5,en=7,Li=8,Oi=9,Lt=10,Ot=11,mt=12,ft=13,pt=14,At=15,le=16,xe=17,ae=18,ve=19,Ue=20,Te=21,ke=22,nn=23,Wn=24,an=25,gn=26,Bn=27,ti=28,Rn=29,Ri=30,dr=31,Ji=32,mr=33,Mr=34,ro=35,Jr=36,$r=37,Tr=38,Wr=39,oo=40,Uo=41,is=42,uo=43,Ss=[9001,65288],To="!",Xt="\xD7",ei="\xF7",Cs=Re(Ln),Os=[Ri,Jr],ma=[Mn,Vn,gi,Bi],va=[Lt,Li],Ys=[Bn,gn],Qr=ma.concat(va),Dr=[Tr,Wr,oo,Mr,ro],In=[At,ft],Tn=function(Dt,Tt){Tt===void 0&&(Tt="strict");var _t=[],Rt=[],Be=[];return Dt.forEach(function(Ye,Fn){var ni=Cs.get(Ye);if(ni>Ze?(Be.push(!0),ni-=Ze):Be.push(!1),["normal","auto","loose"].indexOf(Tt)!==-1&&[8208,8211,12316,12448].indexOf(Ye)!==-1)return Rt.push(Fn),_t.push(le);if(ni===Kn||ni===Ot){if(Fn===0)return Rt.push(Fn),_t.push(Ri);var Dn=_t[Fn-1];return Qr.indexOf(Dn)===-1?(Rt.push(Rt[Fn-1]),_t.push(Dn)):(Rt.push(Fn),_t.push(Ri))}if(Rt.push(Fn),ni===dr)return _t.push(Tt==="strict"?Te:$r);if(ni===is||ni===Rn)return _t.push(Ri);if(ni===uo)return Ye>=131072&&Ye<=196605||Ye>=196608&&Ye<=262141?_t.push($r):_t.push(Ri);_t.push(ni)}),[Rt,_t,Be]},Oe=function(Dt,Tt,_t,Rt){var Be=Rt[_t];if(Array.isArray(Dt)?Dt.indexOf(Be)!==-1:Dt===Be)for(var Ye=_t;Ye<=Rt.length;){Ye++;var Fn=Rt[Ye];if(Fn===Tt)return!0;if(Fn!==Lt)break}if(Be===Lt)for(var Ye=_t;Ye>0;){Ye--;var ni=Rt[Ye];if(Array.isArray(Dt)?Dt.indexOf(ni)!==-1:Dt===ni)for(var Dn=_t;Dn<=Rt.length;){Dn++;var Fn=Rt[Dn];if(Fn===Tt)return!0;if(Fn!==Lt)break}if(ni!==Lt)break}return!1},qn=function(Dt,Tt){for(var _t=Dt;_t>=0;){var Rt=Tt[_t];if(Rt===Lt)_t--;else return Rt}return 0},xi=function(Dt,Tt,_t,Rt,Be){if(_t[Rt]===0)return Xt;var Ye=Rt-1;if(Array.isArray(Be)&&Be[Ye]===!0)return Xt;var Fn=Ye-1,ni=Ye+1,Dn=Tt[Ye],Ui=Fn>=0?Tt[Fn]:0,zi=Tt[ni];if(Dn===Vn&&zi===gi)return Xt;if(ma.indexOf(Dn)!==-1)return To;if(ma.indexOf(zi)!==-1||va.indexOf(zi)!==-1)return Xt;if(qn(Ye,Tt)===Li)return ei;if(Cs.get(Dt[Ye])===Ot||(Dn===Ji||Dn===mr)&&Cs.get(Dt[ni])===Ot||Dn===en||zi===en||Dn===Oi||[Lt,ft,At].indexOf(Dn)===-1&&zi===Oi||[xe,ae,ve,Wn,ti].indexOf(zi)!==-1||qn(Ye,Tt)===ke||Oe(nn,ke,Ye,Tt)||Oe([xe,ae],Te,Ye,Tt)||Oe(mt,mt,Ye,Tt))return Xt;if(Dn===Lt)return ei;if(Dn===nn||zi===nn)return Xt;if(zi===le||Dn===le)return ei;if([ft,At,Te].indexOf(zi)!==-1||Dn===pt||Ui===Jr&&In.indexOf(Dn)!==-1||Dn===ti&&zi===Jr||zi===Ue||Os.indexOf(zi)!==-1&&Dn===an||Os.indexOf(Dn)!==-1&&zi===an||Dn===Bn&&[$r,Ji,mr].indexOf(zi)!==-1||[$r,Ji,mr].indexOf(Dn)!==-1&&zi===gn||Os.indexOf(Dn)!==-1&&Ys.indexOf(zi)!==-1||Ys.indexOf(Dn)!==-1&&Os.indexOf(zi)!==-1||[Bn,gn].indexOf(Dn)!==-1&&(zi===an||[ke,At].indexOf(zi)!==-1&&Tt[ni+1]===an)||[ke,At].indexOf(Dn)!==-1&&zi===an||Dn===an&&[an,ti,Wn].indexOf(zi)!==-1)return Xt;if([an,ti,Wn,xe,ae].indexOf(zi)!==-1)for(var lr=Ye;lr>=0;){var St=Tt[lr];if(St===an)return Xt;if([ti,Wn].indexOf(St)!==-1)lr--;else break}if([Bn,gn].indexOf(zi)!==-1)for(var lr=[xe,ae].indexOf(Dn)!==-1?Fn:Ye;lr>=0;){var St=Tt[lr];if(St===an)return Xt;if([ti,Wn].indexOf(St)!==-1)lr--;else break}if(Tr===Dn&&[Tr,Wr,Mr,ro].indexOf(zi)!==-1||[Wr,Mr].indexOf(Dn)!==-1&&[Wr,oo].indexOf(zi)!==-1||[oo,ro].indexOf(Dn)!==-1&&zi===oo||Dr.indexOf(Dn)!==-1&&[Ue,gn].indexOf(zi)!==-1||Dr.indexOf(zi)!==-1&&Dn===Bn||Os.indexOf(Dn)!==-1&&Os.indexOf(zi)!==-1||Dn===Wn&&Os.indexOf(zi)!==-1||Os.concat(an).indexOf(Dn)!==-1&&zi===ke&&Ss.indexOf(Dt[ni])===-1||Os.concat(an).indexOf(zi)!==-1&&Dn===ae)return Xt;if(Dn===Uo&&zi===Uo){for(var Qt=_t[Ye],de=1;Qt>0&&(Qt--,Tt[Qt]===Uo);)de++;if(de%2!==0)return Xt}return Dn===Ji&&zi===mr?Xt:ei},An=function(Dt,Tt){Tt||(Tt={lineBreak:"normal",wordBreak:"normal"});var _t=Tn(Dt,Tt.lineBreak),Rt=_t[0],Be=_t[1],Ye=_t[2];(Tt.wordBreak==="break-all"||Tt.wordBreak==="break-word")&&(Be=Be.map(function(ni){return[an,Ri,is].indexOf(ni)!==-1?$r:ni}));var Fn=Tt.wordBreak==="keep-all"?Ye.map(function(ni,Dn){return ni&&Dt[Dn]>=19968&&Dt[Dn]<=40959}):void 0;return[Rt,Be,Fn]},Le=function(){function Dt(Tt,_t,Rt,Be){this.codePoints=Tt,this.required=_t===To,this.start=Rt,this.end=Be}return Dt.prototype.slice=function(){return te.apply(void 0,this.codePoints.slice(this.start,this.end))},Dt}(),wn=function(Dt,Tt){var _t=jt(Dt),Rt=An(_t,Tt),Be=Rt[0],Ye=Rt[1],Fn=Rt[2],ni=_t.length,Dn=0,Ui=0;return{next:function(){if(Ui>=ni)return{done:!0,value:null};for(var zi=Xt;Ui<ni&&(zi=xi(_t,Ye,Be,++Ui,Fn))===Xt;);if(zi!==Xt||Ui===ni){var lr=new Le(_t,zi,Dn,Ui);return Dn=Ui,{value:lr,done:!1}}return{done:!0,value:null}}}},Qn=1,Si=2,Di=4,qe=8,si=10,Ei=47,tr=92,On=9,ui=32,Cr=34,rr=61,Gr=35,or=36,Lr=37,er=39,Pr=40,io=41,Oo=95,pi=45,_o=33,ys=60,Zo=62,vi=64,ur=91,_r=93,so=61,to=123,Fo=63,Ai=125,yo=124,jr=126,Sr=128,Pi=65533,wo=42,Ci=43,Xo=44,ua=58,xs=59,da=46,Js=0,Lo=8,Do=11,As=14,hs=31,wr=127,Ne=-1,ds=48,ia=97,ll=101,ul=102,Ml=117,ls=122,Go=65,Ns=69,Wo=70,Gs=85,wl=90,ho=function(Dt){return Dt>=ds&&Dt<=57},mo=function(Dt){return Dt>=55296&&Dt<=57343},Vi=function(Dt){return ho(Dt)||Dt>=Go&&Dt<=Wo||Dt>=ia&&Dt<=ul},Po=function(Dt){return Dt>=ia&&Dt<=ls},Bs=function(Dt){return Dt>=Go&&Dt<=wl},ha=function(Dt){return Po(Dt)||Bs(Dt)},sa=function(Dt){return Dt>=Sr},Ro=function(Dt){return Dt===si||Dt===On||Dt===ui},Ws=function(Dt){return ha(Dt)||sa(Dt)||Dt===Oo},Na=function(Dt){return Ws(Dt)||ho(Dt)||Dt===pi},Ol=function(Dt){return Dt>=Js&&Dt<=Lo||Dt===Do||Dt>=As&&Dt<=hs||Dt===wr},Va=function(Dt,Tt){return Dt!==tr?!1:Tt!==si},bs=function(Dt,Tt,_t){return Dt===pi?Ws(Tt)||Va(Tt,_t):Ws(Dt)?!0:!!(Dt===tr&&Va(Dt,Tt))},ai=function(Dt,Tt,_t){return Dt===Ci||Dt===pi?ho(Tt)?!0:Tt===da&&ho(_t):ho(Dt===da?Tt:Dt)},Ia=function(Dt){var Tt=0,_t=1;(Dt[Tt]===Ci||Dt[Tt]===pi)&&(Dt[Tt]===pi&&(_t=-1),Tt++);for(var Rt=[];ho(Dt[Tt]);)Rt.push(Dt[Tt++]);var Be=Rt.length?parseInt(te.apply(void 0,Rt),10):0;Dt[Tt]===da&&Tt++;for(var Ye=[];ho(Dt[Tt]);)Ye.push(Dt[Tt++]);var Fn=Ye.length,ni=Fn?parseInt(te.apply(void 0,Ye),10):0;(Dt[Tt]===Ns||Dt[Tt]===ll)&&Tt++;var Dn=1;(Dt[Tt]===Ci||Dt[Tt]===pi)&&(Dt[Tt]===pi&&(Dn=-1),Tt++);for(var Ui=[];ho(Dt[Tt]);)Ui.push(Dt[Tt++]);var zi=Ui.length?parseInt(te.apply(void 0,Ui),10):0;return _t*(Be+ni*Math.pow(10,-Fn))*Math.pow(10,Dn*zi)},Ac={type:2},du={type:3},Hh={type:4},Zr={type:13},zs={type:8},Is={type:21},Es={type:9},Ks={type:10},Au={type:11},Jo={type:12},Qs={type:14},ws={type:23},Hr={type:1},hl={type:25},js={type:24},Su={type:26},zu={type:27},Xl={type:28},fr={type:29},Za={type:31},rl={type:32},El=function(){function Dt(){this._value=[]}return Dt.prototype.write=function(Tt){this._value=this._value.concat(jt(Tt))},Dt.prototype.read=function(){for(var Tt=[],_t=this.consumeToken();_t!==rl;)Tt.push(_t),_t=this.consumeToken();return Tt},Dt.prototype.consumeToken=function(){var Tt=this.consumeCodePoint();switch(Tt){case Cr:return this.consumeStringToken(Cr);case Gr:var _t=this.peekCodePoint(0),Rt=this.peekCodePoint(1),Be=this.peekCodePoint(2);if(Na(_t)||Va(Rt,Be)){var Ye=bs(_t,Rt,Be)?Si:Qn,Fn=this.consumeName();return{type:5,value:Fn,flags:Ye}}break;case or:if(this.peekCodePoint(0)===rr)return this.consumeCodePoint(),Zr;break;case er:return this.consumeStringToken(er);case Pr:return Ac;case io:return du;case wo:if(this.peekCodePoint(0)===rr)return this.consumeCodePoint(),Qs;break;case Ci:if(ai(Tt,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(Tt),this.consumeNumericToken();break;case Xo:return Hh;case pi:var ni=Tt,Dn=this.peekCodePoint(0),Ui=this.peekCodePoint(1);if(ai(ni,Dn,Ui))return this.reconsumeCodePoint(Tt),this.consumeNumericToken();if(bs(ni,Dn,Ui))return this.reconsumeCodePoint(Tt),this.consumeIdentLikeToken();if(Dn===pi&&Ui===Zo)return this.consumeCodePoint(),this.consumeCodePoint(),js;break;case da:if(ai(Tt,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(Tt),this.consumeNumericToken();break;case Ei:if(this.peekCodePoint(0)===wo)for(this.consumeCodePoint();;){var zi=this.consumeCodePoint();if(zi===wo&&(zi=this.consumeCodePoint(),zi===Ei))return this.consumeToken();if(zi===Ne)return this.consumeToken()}break;case ua:return Su;case xs:return zu;case ys:if(this.peekCodePoint(0)===_o&&this.peekCodePoint(1)===pi&&this.peekCodePoint(2)===pi)return this.consumeCodePoint(),this.consumeCodePoint(),hl;break;case vi:var lr=this.peekCodePoint(0),St=this.peekCodePoint(1),Qt=this.peekCodePoint(2);if(bs(lr,St,Qt)){var Fn=this.consumeName();return{type:7,value:Fn}}break;case ur:return Xl;case tr:if(Va(Tt,this.peekCodePoint(0)))return this.reconsumeCodePoint(Tt),this.consumeIdentLikeToken();break;case _r:return fr;case so:if(this.peekCodePoint(0)===rr)return this.consumeCodePoint(),zs;break;case to:return Au;case Ai:return Jo;case Ml:case Gs:var de=this.peekCodePoint(0),Ee=this.peekCodePoint(1);return de===Ci&&(Vi(Ee)||Ee===Fo)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(Tt),this.consumeIdentLikeToken();case yo:if(this.peekCodePoint(0)===rr)return this.consumeCodePoint(),Es;if(this.peekCodePoint(0)===yo)return this.consumeCodePoint(),Is;break;case jr:if(this.peekCodePoint(0)===rr)return this.consumeCodePoint(),Ks;break;case Ne:return rl}return Ro(Tt)?(this.consumeWhiteSpace(),Za):ho(Tt)?(this.reconsumeCodePoint(Tt),this.consumeNumericToken()):Ws(Tt)?(this.reconsumeCodePoint(Tt),this.consumeIdentLikeToken()):{type:6,value:te(Tt)}},Dt.prototype.consumeCodePoint=function(){var Tt=this._value.shift();return typeof Tt=="undefined"?-1:Tt},Dt.prototype.reconsumeCodePoint=function(Tt){this._value.unshift(Tt)},Dt.prototype.peekCodePoint=function(Tt){return Tt>=this._value.length?-1:this._value[Tt]},Dt.prototype.consumeUnicodeRangeToken=function(){for(var Tt=[],_t=this.consumeCodePoint();Vi(_t)&&Tt.length<6;)Tt.push(_t),_t=this.consumeCodePoint();for(var Rt=!1;_t===Fo&&Tt.length<6;)Tt.push(_t),_t=this.consumeCodePoint(),Rt=!0;if(Rt){var Be=parseInt(te.apply(void 0,Tt.map(function(Dn){return Dn===Fo?ds:Dn})),16),Ye=parseInt(te.apply(void 0,Tt.map(function(Dn){return Dn===Fo?Wo:Dn})),16);return{type:30,start:Be,end:Ye}}var Fn=parseInt(te.apply(void 0,Tt),16);if(this.peekCodePoint(0)===pi&&Vi(this.peekCodePoint(1))){this.consumeCodePoint(),_t=this.consumeCodePoint();for(var ni=[];Vi(_t)&&ni.length<6;)ni.push(_t),_t=this.consumeCodePoint();var Ye=parseInt(te.apply(void 0,ni),16);return{type:30,start:Fn,end:Ye}}else return{type:30,start:Fn,end:Fn}},Dt.prototype.consumeIdentLikeToken=function(){var Tt=this.consumeName();return Tt.toLowerCase()==="url"&&this.peekCodePoint(0)===Pr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Pr?(this.consumeCodePoint(),{type:19,value:Tt}):{type:20,value:Tt}},Dt.prototype.consumeUrlToken=function(){var Tt=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ne)return{type:22,value:""};var _t=this.peekCodePoint(0);if(_t===er||_t===Cr){var Rt=this.consumeStringToken(this.consumeCodePoint());return Rt.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ne||this.peekCodePoint(0)===io)?(this.consumeCodePoint(),{type:22,value:Rt.value}):(this.consumeBadUrlRemnants(),ws)}for(;;){var Be=this.consumeCodePoint();if(Be===Ne||Be===io)return{type:22,value:te.apply(void 0,Tt)};if(Ro(Be))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ne||this.peekCodePoint(0)===io?(this.consumeCodePoint(),{type:22,value:te.apply(void 0,Tt)}):(this.consumeBadUrlRemnants(),ws);if(Be===Cr||Be===er||Be===Pr||Ol(Be))return this.consumeBadUrlRemnants(),ws;if(Be===tr)if(Va(Be,this.peekCodePoint(0)))Tt.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ws;else Tt.push(Be)}},Dt.prototype.consumeWhiteSpace=function(){for(;Ro(this.peekCodePoint(0));)this.consumeCodePoint()},Dt.prototype.consumeBadUrlRemnants=function(){for(;;){var Tt=this.consumeCodePoint();if(Tt===io||Tt===Ne)return;Va(Tt,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},Dt.prototype.consumeStringSlice=function(Tt){for(var _t=5e4,Rt="";Tt>0;){var Be=Math.min(_t,Tt);Rt+=te.apply(void 0,this._value.splice(0,Be)),Tt-=Be}return this._value.shift(),Rt},Dt.prototype.consumeStringToken=function(Tt){var _t="",Rt=0;do{var Be=this._value[Rt];if(Be===Ne||Be===void 0||Be===Tt)return _t+=this.consumeStringSlice(Rt),{type:0,value:_t};if(Be===si)return this._value.splice(0,Rt),Hr;if(Be===tr){var Ye=this._value[Rt+1];Ye!==Ne&&Ye!==void 0&&(Ye===si?(_t+=this.consumeStringSlice(Rt),Rt=-1,this._value.shift()):Va(Be,Ye)&&(_t+=this.consumeStringSlice(Rt),_t+=te(this.consumeEscapedCodePoint()),Rt=-1))}Rt++}while(!0)},Dt.prototype.consumeNumber=function(){var Tt=[],_t=Di,Rt=this.peekCodePoint(0);for((Rt===Ci||Rt===pi)&&Tt.push(this.consumeCodePoint());ho(this.peekCodePoint(0));)Tt.push(this.consumeCodePoint());Rt=this.peekCodePoint(0);var Be=this.peekCodePoint(1);if(Rt===da&&ho(Be))for(Tt.push(this.consumeCodePoint(),this.consumeCodePoint()),_t=qe;ho(this.peekCodePoint(0));)Tt.push(this.consumeCodePoint());Rt=this.peekCodePoint(0),Be=this.peekCodePoint(1);var Ye=this.peekCodePoint(2);if((Rt===Ns||Rt===ll)&&((Be===Ci||Be===pi)&&ho(Ye)||ho(Be)))for(Tt.push(this.consumeCodePoint(),this.consumeCodePoint()),_t=qe;ho(this.peekCodePoint(0));)Tt.push(this.consumeCodePoint());return[Ia(Tt),_t]},Dt.prototype.consumeNumericToken=function(){var Tt=this.consumeNumber(),_t=Tt[0],Rt=Tt[1],Be=this.peekCodePoint(0),Ye=this.peekCodePoint(1),Fn=this.peekCodePoint(2);if(bs(Be,Ye,Fn)){var ni=this.consumeName();return{type:15,number:_t,flags:Rt,unit:ni}}return Be===Lr?(this.consumeCodePoint(),{type:16,number:_t,flags:Rt}):{type:17,number:_t,flags:Rt}},Dt.prototype.consumeEscapedCodePoint=function(){var Tt=this.consumeCodePoint();if(Vi(Tt)){for(var _t=te(Tt);Vi(this.peekCodePoint(0))&&_t.length<6;)_t+=te(this.consumeCodePoint());Ro(this.peekCodePoint(0))&&this.consumeCodePoint();var Rt=parseInt(_t,16);return Rt===0||mo(Rt)||Rt>1114111?Pi:Rt}return Tt===Ne?Pi:Tt},Dt.prototype.consumeName=function(){for(var Tt="";;){var _t=this.consumeCodePoint();if(Na(_t))Tt+=te(_t);else if(Va(_t,this.peekCodePoint(0)))Tt+=te(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(_t),Tt}},Dt}(),ou=function(){function Dt(Tt){this._tokens=Tt}return Dt.create=function(Tt){var _t=new El;return _t.write(Tt),new Dt(_t.read())},Dt.parseValue=function(Tt){return Dt.create(Tt).parseComponentValue()},Dt.parseValues=function(Tt){return Dt.create(Tt).parseComponentValues()},Dt.prototype.parseComponentValue=function(){for(var Tt=this.consumeToken();Tt.type===31;)Tt=this.consumeToken();if(Tt.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(Tt);var _t=this.consumeComponentValue();do Tt=this.consumeToken();while(Tt.type===31);if(Tt.type===32)return _t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},Dt.prototype.parseComponentValues=function(){for(var Tt=[];;){var _t=this.consumeComponentValue();if(_t.type===32)return Tt;Tt.push(_t),Tt.push()}},Dt.prototype.consumeComponentValue=function(){var Tt=this.consumeToken();switch(Tt.type){case 11:case 28:case 2:return this.consumeSimpleBlock(Tt.type);case 19:return this.consumeFunction(Tt)}return Tt},Dt.prototype.consumeSimpleBlock=function(Tt){for(var _t={type:Tt,values:[]},Rt=this.consumeToken();;){if(Rt.type===32||fu(Rt,Tt))return _t;this.reconsumeToken(Rt),_t.values.push(this.consumeComponentValue()),Rt=this.consumeToken()}},Dt.prototype.consumeFunction=function(Tt){for(var _t={name:Tt.value,values:[],type:18};;){var Rt=this.consumeToken();if(Rt.type===32||Rt.type===3)return _t;this.reconsumeToken(Rt),_t.values.push(this.consumeComponentValue())}},Dt.prototype.consumeToken=function(){var Tt=this._tokens.shift();return typeof Tt=="undefined"?rl:Tt},Dt.prototype.reconsumeToken=function(Tt){this._tokens.unshift(Tt)},Dt}(),Ya=function(Dt){return Dt.type===15},bo=function(Dt){return Dt.type===17},ja=function(Dt){return Dt.type===20},Ja=function(Dt){return Dt.type===0},su=function(Dt,Tt){return ja(Dt)&&Dt.value===Tt},$l=function(Dt){return Dt.type!==31},Pu=function(Dt){return Dt.type!==31&&Dt.type!==4},bu=function(Dt){var Tt=[],_t=[];return Dt.forEach(function(Rt){if(Rt.type===4){if(_t.length===0)throw new Error("Error parsing function args, zero tokens for arg");Tt.push(_t),_t=[];return}Rt.type!==31&&_t.push(Rt)}),_t.length&&Tt.push(_t),Tt},fu=function(Dt,Tt){return Tt===11&&Dt.type===12||Tt===28&&Dt.type===29?!0:Tt===2&&Dt.type===3},eu=function(Dt){return Dt.type===17||Dt.type===15},Qo=function(Dt){return Dt.type===16||eu(Dt)},Hd=function(Dt){return Dt.length>1?[Dt[0],Dt[1]]:[Dt[0]]},Eu={type:17,number:0,flags:Di},yd={type:16,number:50,flags:Di},Nh={type:16,number:100,flags:Di},ec=function(Dt,Tt,_t){var Rt=Dt[0],Be=Dt[1];return[ol(Rt,Tt),ol(typeof Be!="undefined"?Be:Rt,_t)]},ol=function(Dt,Tt){if(Dt.type===16)return Dt.number/100*Tt;if(Ya(Dt))switch(Dt.unit){case"rem":case"em":return 16*Dt.number;case"px":default:return Dt.number}return Dt.number},xh="deg",Qd="grad",Oc="rad",Dc="turn",Ls={name:"angle",parse:function(Dt,Tt){if(Tt.type===15)switch(Tt.unit){case xh:return Math.PI*Tt.number/180;case Qd:return Math.PI/200*Tt.number;case Oc:return Tt.number;case Dc:return Math.PI*2*Tt.number}throw new Error("Unsupported angle type")}},ya=function(Dt){return Dt.type===15&&(Dt.unit===xh||Dt.unit===Qd||Dt.unit===Oc||Dt.unit===Dc)},ju=function(Dt){var Tt=Dt.filter(ja).map(function(_t){return _t.value}).join(" ");switch(Tt){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Eu,Eu];case"to top":case"bottom":return qa(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Eu,Nh];case"to right":case"left":return qa(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Nh,Nh];case"to bottom":case"top":return qa(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Nh,Eu];case"to left":case"right":return qa(270)}return 0},qa=function(Dt){return Math.PI*Dt/180},sl={name:"color",parse:function(Dt,Tt){if(Tt.type===18){var _t=zd[Tt.name];if(typeof _t=="undefined")throw new Error('Attempting to parse an unsupported color function "'+Tt.name+'"');return _t(Dt,Tt.values)}if(Tt.type===5){if(Tt.value.length===3){var Rt=Tt.value.substring(0,1),Be=Tt.value.substring(1,2),Ye=Tt.value.substring(2,3);return tl(parseInt(Rt+Rt,16),parseInt(Be+Be,16),parseInt(Ye+Ye,16),1)}if(Tt.value.length===4){var Rt=Tt.value.substring(0,1),Be=Tt.value.substring(1,2),Ye=Tt.value.substring(2,3),Fn=Tt.value.substring(3,4);return tl(parseInt(Rt+Rt,16),parseInt(Be+Be,16),parseInt(Ye+Ye,16),parseInt(Fn+Fn,16)/255)}if(Tt.value.length===6){var Rt=Tt.value.substring(0,2),Be=Tt.value.substring(2,4),Ye=Tt.value.substring(4,6);return tl(parseInt(Rt,16),parseInt(Be,16),parseInt(Ye,16),1)}if(Tt.value.length===8){var Rt=Tt.value.substring(0,2),Be=Tt.value.substring(2,4),Ye=Tt.value.substring(4,6),Fn=Tt.value.substring(6,8);return tl(parseInt(Rt,16),parseInt(Be,16),parseInt(Ye,16),parseInt(Fn,16)/255)}}if(Tt.type===20){var ni=Sh[Tt.value.toUpperCase()];if(typeof ni!="undefined")return ni}return Sh.TRANSPARENT}},za=function(Dt){return(255&Dt)===0},Aa=function(Dt){var Tt=255&Dt,_t=255&Dt>>8,Rt=255&Dt>>16,Be=255&Dt>>24;return Tt<255?"rgba("+Be+","+Rt+","+_t+","+Tt/255+")":"rgb("+Be+","+Rt+","+_t+")"},tl=function(Dt,Tt,_t,Rt){return(Dt<<24|Tt<<16|_t<<8|Math.round(Rt*255)<<0)>>>0},Dl=function(Dt,Tt){if(Dt.type===17)return Dt.number;if(Dt.type===16){var _t=Tt===3?1:255;return Tt===3?Dt.number/100*_t:Math.round(Dt.number/100*_t)}return 0},fc=function(Dt,Tt){var _t=Tt.filter(Pu);if(_t.length===3){var Rt=_t.map(Dl),Be=Rt[0],Ye=Rt[1],Fn=Rt[2];return tl(Be,Ye,Fn,1)}if(_t.length===4){var ni=_t.map(Dl),Be=ni[0],Ye=ni[1],Fn=ni[2],Dn=ni[3];return tl(Be,Ye,Fn,Dn)}return 0};function ch(Dt,Tt,_t){return _t<0&&(_t+=1),_t>=1&&(_t-=1),_t<1/6?(Tt-Dt)*_t*6+Dt:_t<1/2?Tt:_t<2/3?(Tt-Dt)*6*(2/3-_t)+Dt:Dt}var cl=function(Dt,Tt){var _t=Tt.filter(Pu),Rt=_t[0],Be=_t[1],Ye=_t[2],Fn=_t[3],ni=(Rt.type===17?qa(Rt.number):Ls.parse(Dt,Rt))/(Math.PI*2),Dn=Qo(Be)?Be.number/100:0,Ui=Qo(Ye)?Ye.number/100:0,zi=typeof Fn!="undefined"&&Qo(Fn)?ol(Fn,1):1;if(Dn===0)return tl(Ui*255,Ui*255,Ui*255,1);var lr=Ui<=.5?Ui*(Dn+1):Ui+Dn-Ui*Dn,St=Ui*2-lr,Qt=ch(St,lr,ni+1/3),de=ch(St,lr,ni),Ee=ch(St,lr,ni-1/3);return tl(Qt*255,de*255,Ee*255,zi)},zd={hsl:cl,hsla:cl,rgb:fc,rgba:fc},td=function(Dt,Tt){return sl.parse(Dt,ou.create(Tt).parseComponentValue())},Sh={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},Ho={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(Dt,Tt){return Tt.map(function(_t){if(ja(_t))switch(_t.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"},En=function(Dt,Tt){var _t=sl.parse(Dt,Tt[0]),Rt=Tt[1];return Rt&&Qo(Rt)?{color:_t,stop:Rt}:{color:_t,stop:null}},Wi=function(Dt,Tt){var _t=Dt[0],Rt=Dt[Dt.length-1];_t.stop===null&&(_t.stop=Eu),Rt.stop===null&&(Rt.stop=Nh);for(var Be=[],Ye=0,Fn=0;Fn<Dt.length;Fn++){var ni=Dt[Fn].stop;if(ni!==null){var Dn=ol(ni,Tt);Dn>Ye?Be.push(Dn):Be.push(Ye),Ye=Dn}else Be.push(null)}for(var Ui=null,Fn=0;Fn<Be.length;Fn++){var zi=Be[Fn];if(zi===null)Ui===null&&(Ui=Fn);else if(Ui!==null){for(var lr=Fn-Ui,St=Be[Ui-1],Qt=(zi-St)/(lr+1),de=1;de<=lr;de++)Be[Ui+de-1]=Qt*de;Ui=null}}return Dt.map(function(Ee,sn){var hn=Ee.color;return{color:hn,stop:Math.max(Math.min(1,Be[sn]/Tt),0)}})},aA=function(Dt,Tt,_t){var Rt=Tt/2,Be=_t/2,Ye=ol(Dt[0],Tt)-Rt,Fn=Be-ol(Dt[1],_t);return(Math.atan2(Fn,Ye)+Math.PI*2)%(Math.PI*2)},nc=function(Dt,Tt,_t){var Rt=typeof Dt=="number"?Dt:aA(Dt,Tt,_t),Be=Math.abs(Tt*Math.sin(Rt))+Math.abs(_t*Math.cos(Rt)),Ye=Tt/2,Fn=_t/2,ni=Be/2,Dn=Math.sin(Rt-Math.PI/2)*ni,Ui=Math.cos(Rt-Math.PI/2)*ni;return[Be,Ye-Ui,Ye+Ui,Fn-Dn,Fn+Dn]},Ku=function(Dt,Tt){return Math.sqrt(Dt*Dt+Tt*Tt)},Gu=function(Dt,Tt,_t,Rt,Be){var Ye=[[0,0],[0,Tt],[Dt,0],[Dt,Tt]];return Ye.reduce(function(Fn,ni){var Dn=ni[0],Ui=ni[1],zi=Ku(_t-Dn,Rt-Ui);return(Be?zi<Fn.optimumDistance:zi>Fn.optimumDistance)?{optimumCorner:ni,optimumDistance:zi}:Fn},{optimumDistance:Be?1/0:-1/0,optimumCorner:null}).optimumCorner},Ch=function(Dt,Tt,_t,Rt,Be){var Ye=0,Fn=0;switch(Dt.size){case 0:Dt.shape===0?Ye=Fn=Math.min(Math.abs(Tt),Math.abs(Tt-Rt),Math.abs(_t),Math.abs(_t-Be)):Dt.shape===1&&(Ye=Math.min(Math.abs(Tt),Math.abs(Tt-Rt)),Fn=Math.min(Math.abs(_t),Math.abs(_t-Be)));break;case 2:if(Dt.shape===0)Ye=Fn=Math.min(Ku(Tt,_t),Ku(Tt,_t-Be),Ku(Tt-Rt,_t),Ku(Tt-Rt,_t-Be));else if(Dt.shape===1){var ni=Math.min(Math.abs(_t),Math.abs(_t-Be))/Math.min(Math.abs(Tt),Math.abs(Tt-Rt)),Dn=Gu(Rt,Be,Tt,_t,!0),Ui=Dn[0],zi=Dn[1];Ye=Ku(Ui-Tt,(zi-_t)/ni),Fn=ni*Ye}break;case 1:Dt.shape===0?Ye=Fn=Math.max(Math.abs(Tt),Math.abs(Tt-Rt),Math.abs(_t),Math.abs(_t-Be)):Dt.shape===1&&(Ye=Math.max(Math.abs(Tt),Math.abs(Tt-Rt)),Fn=Math.max(Math.abs(_t),Math.abs(_t-Be)));break;case 3:if(Dt.shape===0)Ye=Fn=Math.max(Ku(Tt,_t),Ku(Tt,_t-Be),Ku(Tt-Rt,_t),Ku(Tt-Rt,_t-Be));else if(Dt.shape===1){var ni=Math.max(Math.abs(_t),Math.abs(_t-Be))/Math.max(Math.abs(Tt),Math.abs(Tt-Rt)),lr=Gu(Rt,Be,Tt,_t,!1),Ui=lr[0],zi=lr[1];Ye=Ku(Ui-Tt,(zi-_t)/ni),Fn=ni*Ye}break}return Array.isArray(Dt.size)&&(Ye=ol(Dt.size[0],Rt),Fn=Dt.size.length===2?ol(Dt.size[1],Be):Ye),[Ye,Fn]},zA=function(Dt,Tt){var _t=qa(180),Rt=[];return bu(Tt).forEach(function(Be,Ye){if(Ye===0){var Fn=Be[0];if(Fn.type===20&&Fn.value==="to"){_t=ju(Be);return}else if(ya(Fn)){_t=Ls.parse(Dt,Fn);return}}var ni=En(Dt,Be);Rt.push(ni)}),{angle:_t,stops:Rt,type:1}},ed=function(Dt,Tt){var _t=qa(180),Rt=[];return bu(Tt).forEach(function(Be,Ye){if(Ye===0){var Fn=Be[0];if(Fn.type===20&&["top","left","right","bottom"].indexOf(Fn.value)!==-1){_t=ju(Be);return}else if(ya(Fn)){_t=(Ls.parse(Dt,Fn)+qa(270))%qa(360);return}}var ni=En(Dt,Be);Rt.push(ni)}),{angle:_t,stops:Rt,type:1}},el=function(Dt,Tt){var _t=qa(180),Rt=[],Be=1,Ye=0,Fn=3,ni=[];return bu(Tt).forEach(function(Dn,Ui){var zi=Dn[0];if(Ui===0){if(ja(zi)&&zi.value==="linear"){Be=1;return}else if(ja(zi)&&zi.value==="radial"){Be=2;return}}if(zi.type===18){if(zi.name==="from"){var lr=sl.parse(Dt,zi.values[0]);Rt.push({stop:Eu,color:lr})}else if(zi.name==="to"){var lr=sl.parse(Dt,zi.values[0]);Rt.push({stop:Nh,color:lr})}else if(zi.name==="color-stop"){var St=zi.values.filter(Pu);if(St.length===2){var lr=sl.parse(Dt,St[1]),Qt=St[0];bo(Qt)&&Rt.push({stop:{type:16,number:Qt.number*100,flags:Qt.flags},color:lr})}}}}),Be===1?{angle:(_t+qa(180))%qa(360),stops:Rt,type:Be}:{size:Fn,shape:Ye,stops:Rt,position:ni,type:Be}},ms="closest-side",rh="farthest-side",Zu="closest-corner",Fl="farthest-corner",ra="circle",gu="ellipse",Bh="cover",xl="contain",Qh=function(Dt,Tt){var _t=0,Rt=3,Be=[],Ye=[];return bu(Tt).forEach(function(Fn,ni){var Dn=!0;if(ni===0){var Ui=!1;Dn=Fn.reduce(function(lr,St){if(Ui)if(ja(St))switch(St.value){case"center":return Ye.push(yd),lr;case"top":case"left":return Ye.push(Eu),lr;case"right":case"bottom":return Ye.push(Nh),lr}else(Qo(St)||eu(St))&&Ye.push(St);else if(ja(St))switch(St.value){case ra:return _t=0,!1;case gu:return _t=1,!1;case"at":return Ui=!0,!1;case ms:return Rt=0,!1;case Bh:case rh:return Rt=1,!1;case xl:case Zu:return Rt=2,!1;case Fl:return Rt=3,!1}else if(eu(St)||Qo(St))return Array.isArray(Rt)||(Rt=[]),Rt.push(St),!1;return lr},Dn)}if(Dn){var zi=En(Dt,Fn);Be.push(zi)}}),{size:Rt,shape:_t,stops:Be,position:Ye,type:2}},Cu=function(Dt,Tt){var _t=0,Rt=3,Be=[],Ye=[];return bu(Tt).forEach(function(Fn,ni){var Dn=!0;if(ni===0?Dn=Fn.reduce(function(zi,lr){if(ja(lr))switch(lr.value){case"center":return Ye.push(yd),!1;case"top":case"left":return Ye.push(Eu),!1;case"right":case"bottom":return Ye.push(Nh),!1}else if(Qo(lr)||eu(lr))return Ye.push(lr),!1;return zi},Dn):ni===1&&(Dn=Fn.reduce(function(zi,lr){if(ja(lr))switch(lr.value){case ra:return _t=0,!1;case gu:return _t=1,!1;case xl:case ms:return Rt=0,!1;case rh:return Rt=1,!1;case Zu:return Rt=2,!1;case Bh:case Fl:return Rt=3,!1}else if(eu(lr)||Qo(lr))return Array.isArray(Rt)||(Rt=[]),Rt.push(lr),!1;return zi},Dn)),Dn){var Ui=En(Dt,Fn);Be.push(Ui)}}),{size:Rt,shape:_t,stops:Be,position:Ye,type:2}},wd=function(Dt){return Dt.type===1},Ea=function(Dt){return Dt.type===2},oh={name:"image",parse:function(Dt,Tt){if(Tt.type===22){var _t={url:Tt.value,type:0};return Dt.cache.addImage(Tt.value),_t}if(Tt.type===18){var Rt=gl[Tt.name];if(typeof Rt=="undefined")throw new Error('Attempting to parse an unsupported image function "'+Tt.name+'"');return Rt(Dt,Tt.values)}throw new Error("Unsupported image type "+Tt.type)}};function Fa(Dt){return!(Dt.type===20&&Dt.value==="none")&&(Dt.type!==18||!!gl[Dt.name])}var gl={"linear-gradient":zA,"-moz-linear-gradient":ed,"-ms-linear-gradient":ed,"-o-linear-gradient":ed,"-webkit-linear-gradient":ed,"radial-gradient":Qh,"-moz-radial-gradient":Cu,"-ms-radial-gradient":Cu,"-o-radial-gradient":Cu,"-webkit-radial-gradient":Cu,"-webkit-gradient":el},Hl={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(Dt,Tt){if(Tt.length===0)return[];var _t=Tt[0];return _t.type===20&&_t.value==="none"?[]:Tt.filter(function(Rt){return Pu(Rt)&&Fa(Rt)}).map(function(Rt){return oh.parse(Dt,Rt)})}},Yl={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(Dt,Tt){return Tt.map(function(_t){if(ja(_t))switch(_t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Et={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(Dt,Tt){return bu(Tt).map(function(_t){return _t.filter(Qo)}).map(Hd)}},wt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(Dt,Tt){return bu(Tt).map(function(_t){return _t.filter(ja).map(function(Rt){return Rt.value}).join(" ")}).map(bt)}},bt=function(Dt){switch(Dt){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}},Ht;(function(Dt){Dt.AUTO="auto",Dt.CONTAIN="contain",Dt.COVER="cover"})(Ht||(Ht={}));var ie={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(Dt,Tt){return bu(Tt).map(function(_t){return _t.filter(Yt)})}},Yt=function(Dt){return ja(Dt)||Qo(Dt)},ge=function(Dt){return{name:"border-"+Dt+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},we=ge("top"),be=ge("right"),$e=ge("bottom"),dn=ge("left"),fn=function(Dt){return{name:"border-radius-"+Dt,initialValue:"0 0",prefix:!1,type:1,parse:function(Tt,_t){return Hd(_t.filter(Qo))}}},Pn=fn("top-left"),Ke=fn("top-right"),mi=fn("bottom-right"),Jn=fn("bottom-left"),yi=function(Dt){return{name:"border-"+Dt+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(Tt,_t){switch(_t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Un=yi("top"),di=yi("right"),Qi=yi("bottom"),ir=yi("left"),Er=function(Dt){return{name:"border-"+Dt+"-width",initialValue:"0",type:0,prefix:!1,parse:function(Tt,_t){return Ya(_t)?_t.number:0}}},ao=Er("top"),gr=Er("right"),Ti=Er("bottom"),xr=Er("left"),Ir={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},$n={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(Dt,Tt){switch(Tt){case"rtl":return 1;case"ltr":default:return 0}}},ri={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(Dt,Tt){return Tt.filter(ja).reduce(function(_t,Rt){return _t|pe(Rt.value)},0)}},pe=function(Dt){switch(Dt){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},me={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(Dt,Tt){switch(Tt){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Xe={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(Dt,Tt){return Tt.type===20&&Tt.value==="normal"?0:Tt.type===17||Tt.type===15?Tt.number:0}},Je;(function(Dt){Dt.NORMAL="normal",Dt.STRICT="strict"})(Je||(Je={}));var vn={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(Dt,Tt){switch(Tt){case"strict":return Je.STRICT;case"normal":default:return Je.NORMAL}}},rn={name:"line-height",initialValue:"normal",prefix:!1,type:4},kn=function(Dt,Tt){return ja(Dt)&&Dt.value==="normal"?1.2*Tt:Dt.type===17?Tt*Dt.number:Qo(Dt)?ol(Dt,Tt):Tt},jn={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(Dt,Tt){return Tt.type===20&&Tt.value==="none"?null:oh.parse(Dt,Tt)}},Yn={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(Dt,Tt){switch(Tt){case"inside":return 0;case"outside":default:return 1}}},Qe={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(Dt,Tt){switch(Tt){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}}},un=function(Dt){return{name:"margin-"+Dt,initialValue:"0",prefix:!1,type:4}},mn=un("top"),Hn=un("right"),Zn=un("bottom"),ii=un("left"),Fi={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(Dt,Tt){return Tt.filter(ja).map(function(_t){switch(_t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},li={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(Dt,Tt){switch(Tt){case"break-word":return"break-word";case"normal":default:return"normal"}}},Xi=function(Dt){return{name:"padding-"+Dt,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Zi=Xi("top"),Ar=Xi("right"),br=Xi("bottom"),eo=Xi("left"),Ii={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(Dt,Tt){switch(Tt){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Xn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(Dt,Tt){switch(Tt){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Co={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Dt,Tt){return Tt.length===1&&su(Tt[0],"none")?[]:bu(Tt).map(function(_t){for(var Rt={color:Sh.TRANSPARENT,offsetX:Eu,offsetY:Eu,blur:Eu},Be=0,Ye=0;Ye<_t.length;Ye++){var Fn=_t[Ye];eu(Fn)?(Be===0?Rt.offsetX=Fn:Be===1?Rt.offsetY=Fn:Rt.blur=Fn,Be++):Rt.color=sl.parse(Dt,Fn)}return Rt})}},Br={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(Dt,Tt){switch(Tt){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},sr={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(Dt,Tt){if(Tt.type===20&&Tt.value==="none")return null;if(Tt.type===18){var _t=pr[Tt.name];if(typeof _t=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+Tt.name+'"');return _t(Tt.values)}return null}},ar=function(Dt){var Tt=Dt.filter(function(_t){return _t.type===17}).map(function(_t){return _t.number});return Tt.length===6?Tt:null},qi=function(Dt){var Tt=Dt.filter(function(Dn){return Dn.type===17}).map(function(Dn){return Dn.number}),_t=Tt[0],Rt=Tt[1];Tt[2],Tt[3];var Be=Tt[4],Ye=Tt[5];Tt[6],Tt[7],Tt[8],Tt[9],Tt[10],Tt[11];var Fn=Tt[12],ni=Tt[13];return Tt[14],Tt[15],Tt.length===16?[_t,Rt,Be,Ye,Fn,ni]:null},pr={matrix:ar,matrix3d:qi},Vr={type:16,number:50,flags:Di},co=[Vr,Vr],fo={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(Dt,Tt){var _t=Tt.filter(Qo);return _t.length!==2?co:[_t[0],_t[1]]}},Rr={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(Dt,Tt){switch(Tt){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},jo;(function(Dt){Dt.NORMAL="normal",Dt.BREAK_ALL="break-all",Dt.KEEP_ALL="keep-all"})(jo||(jo={}));for(var us={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(Dt,Tt){switch(Tt){case"break-all":return jo.BREAK_ALL;case"keep-all":return jo.KEEP_ALL;case"normal":default:return jo.NORMAL}}},qo={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(Dt,Tt){if(Tt.type===20)return{auto:!0,order:0};if(bo(Tt))return{auto:!1,order:Tt.number};throw new Error("Invalid z-index number parsed")}},ns={name:"time",parse:function(Dt,Tt){if(Tt.type===15)switch(Tt.unit.toLowerCase()){case"s":return 1e3*Tt.number;case"ms":return Tt.number}throw new Error("Unsupported time type")}},xo={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(Dt,Tt){return bo(Tt)?Tt.number:1}},wa={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},$o={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(Dt,Tt){return Tt.filter(ja).map(function(_t){switch(_t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(_t){return _t!==0})}},rs={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(Dt,Tt){var _t=[],Rt=[];return Tt.forEach(function(Be){switch(Be.type){case 20:case 0:_t.push(Be.value);break;case 17:_t.push(Be.number.toString());break;case 4:Rt.push(_t.join(" ")),_t.length=0;break}}),_t.length&&Rt.push(_t.join(" ")),Rt.map(function(Be){return Be.indexOf(" ")===-1?Be:"'"+Be+"'"})}},Ps={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},qs={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(Dt,Tt){if(bo(Tt))return Tt.number;if(ja(Tt))switch(Tt.value){case"bold":return 700;case"normal":default:return 400}return 400}},Ua={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(Dt,Tt){return Tt.filter(ja).map(function(_t){return _t.value})}},Xs={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(Dt,Tt){switch(Tt){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},zo=function(Dt,Tt){return(Dt&Tt)!==0},Ko={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(Dt,Tt){if(Tt.length===0)return[];var _t=Tt[0];return _t.type===20&&_t.value==="none"?[]:Tt}},fs={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(Dt,Tt){if(Tt.length===0)return null;var _t=Tt[0];if(_t.type===20&&_t.value==="none")return null;for(var Rt=[],Be=Tt.filter($l),Ye=0;Ye<Be.length;Ye++){var Fn=Be[Ye],ni=Be[Ye+1];if(Fn.type===20){var Dn=ni&&bo(ni)?ni.number:1;Rt.push({counter:Fn.value,increment:Dn})}}return Rt}},es={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(Dt,Tt){if(Tt.length===0)return[];for(var _t=[],Rt=Tt.filter($l),Be=0;Be<Rt.length;Be++){var Ye=Rt[Be],Fn=Rt[Be+1];if(ja(Ye)&&Ye.value!=="none"){var ni=Fn&&bo(Fn)?Fn.number:0;_t.push({counter:Ye.value,reset:ni})}}return _t}},Ds={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(Dt,Tt){return Tt.filter(Ya).map(function(_t){return ns.parse(Dt,_t)})}},no={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(Dt,Tt){if(Tt.length===0)return null;var _t=Tt[0];if(_t.type===20&&_t.value==="none")return null;var Rt=[],Be=Tt.filter(Ja);if(Be.length%2!==0)return null;for(var Ye=0;Ye<Be.length;Ye+=2){var Fn=Be[Ye].value,ni=Be[Ye+1].value;Rt.push({open:Fn,close:ni})}return Rt}},Vo=function(Dt,Tt,_t){if(!Dt)return"";var Rt=Dt[Math.min(Tt,Dt.length-1)];return Rt?_t?Rt.open:Rt.close:""},aa={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Dt,Tt){return Tt.length===1&&su(Tt[0],"none")?[]:bu(Tt).map(function(_t){for(var Rt={color:255,offsetX:Eu,offsetY:Eu,blur:Eu,spread:Eu,inset:!1},Be=0,Ye=0;Ye<_t.length;Ye++){var Fn=_t[Ye];su(Fn,"inset")?Rt.inset=!0:eu(Fn)?(Be===0?Rt.offsetX=Fn:Be===1?Rt.offsetY=Fn:Be===2?Rt.blur=Fn:Rt.spread=Fn,Be++):Rt.color=sl.parse(Dt,Fn)}return Rt})}},Rs={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(Dt,Tt){var _t=[0,1,2],Rt=[];return Tt.filter(ja).forEach(function(Be){switch(Be.value){case"stroke":Rt.push(1);break;case"fill":Rt.push(0);break;case"markers":Rt.push(2);break}}),_t.forEach(function(Be){Rt.indexOf(Be)===-1&&Rt.push(Be)}),Rt}},Ql={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Ll={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(Dt,Tt){return Ya(Tt)?Tt.number:0}},Fs=function(){function Dt(Tt,_t){var Rt,Be;this.animationDuration=Ao(Tt,Ds,_t.animationDuration),this.backgroundClip=Ao(Tt,Ho,_t.backgroundClip),this.backgroundColor=Ao(Tt,sA,_t.backgroundColor),this.backgroundImage=Ao(Tt,Hl,_t.backgroundImage),this.backgroundOrigin=Ao(Tt,Yl,_t.backgroundOrigin),this.backgroundPosition=Ao(Tt,Et,_t.backgroundPosition),this.backgroundRepeat=Ao(Tt,wt,_t.backgroundRepeat),this.backgroundSize=Ao(Tt,ie,_t.backgroundSize),this.borderTopColor=Ao(Tt,we,_t.borderTopColor),this.borderRightColor=Ao(Tt,be,_t.borderRightColor),this.borderBottomColor=Ao(Tt,$e,_t.borderBottomColor),this.borderLeftColor=Ao(Tt,dn,_t.borderLeftColor),this.borderTopLeftRadius=Ao(Tt,Pn,_t.borderTopLeftRadius),this.borderTopRightRadius=Ao(Tt,Ke,_t.borderTopRightRadius),this.borderBottomRightRadius=Ao(Tt,mi,_t.borderBottomRightRadius),this.borderBottomLeftRadius=Ao(Tt,Jn,_t.borderBottomLeftRadius),this.borderTopStyle=Ao(Tt,Un,_t.borderTopStyle),this.borderRightStyle=Ao(Tt,di,_t.borderRightStyle),this.borderBottomStyle=Ao(Tt,Qi,_t.borderBottomStyle),this.borderLeftStyle=Ao(Tt,ir,_t.borderLeftStyle),this.borderTopWidth=Ao(Tt,ao,_t.borderTopWidth),this.borderRightWidth=Ao(Tt,gr,_t.borderRightWidth),this.borderBottomWidth=Ao(Tt,Ti,_t.borderBottomWidth),this.borderLeftWidth=Ao(Tt,xr,_t.borderLeftWidth),this.boxShadow=Ao(Tt,aa,_t.boxShadow),this.color=Ao(Tt,Ir,_t.color),this.direction=Ao(Tt,$n,_t.direction),this.display=Ao(Tt,ri,_t.display),this.float=Ao(Tt,me,_t.cssFloat),this.fontFamily=Ao(Tt,rs,_t.fontFamily),this.fontSize=Ao(Tt,Ps,_t.fontSize),this.fontStyle=Ao(Tt,Xs,_t.fontStyle),this.fontVariant=Ao(Tt,Ua,_t.fontVariant),this.fontWeight=Ao(Tt,qs,_t.fontWeight),this.letterSpacing=Ao(Tt,Xe,_t.letterSpacing),this.lineBreak=Ao(Tt,vn,_t.lineBreak),this.lineHeight=Ao(Tt,rn,_t.lineHeight),this.listStyleImage=Ao(Tt,jn,_t.listStyleImage),this.listStylePosition=Ao(Tt,Yn,_t.listStylePosition),this.listStyleType=Ao(Tt,Qe,_t.listStyleType),this.marginTop=Ao(Tt,mn,_t.marginTop),this.marginRight=Ao(Tt,Hn,_t.marginRight),this.marginBottom=Ao(Tt,Zn,_t.marginBottom),this.marginLeft=Ao(Tt,ii,_t.marginLeft),this.opacity=Ao(Tt,xo,_t.opacity);var Ye=Ao(Tt,Fi,_t.overflow);this.overflowX=Ye[0],this.overflowY=Ye[Ye.length>1?1:0],this.overflowWrap=Ao(Tt,li,_t.overflowWrap),this.paddingTop=Ao(Tt,Zi,_t.paddingTop),this.paddingRight=Ao(Tt,Ar,_t.paddingRight),this.paddingBottom=Ao(Tt,br,_t.paddingBottom),this.paddingLeft=Ao(Tt,eo,_t.paddingLeft),this.paintOrder=Ao(Tt,Rs,_t.paintOrder),this.position=Ao(Tt,Xn,_t.position),this.textAlign=Ao(Tt,Ii,_t.textAlign),this.textDecorationColor=Ao(Tt,wa,(Rt=_t.textDecorationColor)!==null&&Rt!==void 0?Rt:_t.color),this.textDecorationLine=Ao(Tt,$o,(Be=_t.textDecorationLine)!==null&&Be!==void 0?Be:_t.textDecoration),this.textShadow=Ao(Tt,Co,_t.textShadow),this.textTransform=Ao(Tt,Br,_t.textTransform),this.transform=Ao(Tt,sr,_t.transform),this.transformOrigin=Ao(Tt,fo,_t.transformOrigin),this.visibility=Ao(Tt,Rr,_t.visibility),this.webkitTextStrokeColor=Ao(Tt,Ql,_t.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ao(Tt,Ll,_t.webkitTextStrokeWidth),this.wordBreak=Ao(Tt,us,_t.wordBreak),this.zIndex=Ao(Tt,qo,_t.zIndex)}return Dt.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},Dt.prototype.isTransparent=function(){return za(this.backgroundColor)},Dt.prototype.isTransformed=function(){return this.transform!==null},Dt.prototype.isPositioned=function(){return this.position!==0},Dt.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},Dt.prototype.isFloating=function(){return this.float!==0},Dt.prototype.isInlineLevel=function(){return zo(this.display,4)||zo(this.display,33554432)||zo(this.display,268435456)||zo(this.display,536870912)||zo(this.display,67108864)||zo(this.display,134217728)},Dt}(),ca=function(){function Dt(Tt,_t){this.content=Ao(Tt,Ko,_t.content),this.quotes=Ao(Tt,no,_t.quotes)}return Dt}(),jl=function(){function Dt(Tt,_t){this.counterIncrement=Ao(Tt,fs,_t.counterIncrement),this.counterReset=Ao(Tt,es,_t.counterReset)}return Dt}(),Ao=function(Dt,Tt,_t){var Rt=new El,Be=_t!==null&&typeof _t!="undefined"?_t.toString():Tt.initialValue;Rt.write(Be);var Ye=new ou(Rt.read());switch(Tt.type){case 2:var Fn=Ye.parseComponentValue();return Tt.parse(Dt,ja(Fn)?Fn.value:Tt.initialValue);case 0:return Tt.parse(Dt,Ye.parseComponentValue());case 1:return Tt.parse(Dt,Ye.parseComponentValues());case 4:return Ye.parseComponentValue();case 3:switch(Tt.format){case"angle":return Ls.parse(Dt,Ye.parseComponentValue());case"color":return sl.parse(Dt,Ye.parseComponentValue());case"image":return oh.parse(Dt,Ye.parseComponentValue());case"length":var ni=Ye.parseComponentValue();return eu(ni)?ni:Eu;case"length-percentage":var Dn=Ye.parseComponentValue();return Qo(Dn)?Dn:Eu;case"time":return ns.parse(Dt,Ye.parseComponentValue())}break}},Ra="data-html2canvas-debug",Kl=function(Dt){var Tt=Dt.getAttribute(Ra);switch(Tt){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ta=function(Dt,Tt){var _t=Kl(Dt);return _t===1||Tt===_t},la=function(){function Dt(Tt,_t){if(this.context=Tt,this.textNodes=[],this.elements=[],this.flags=0,ta(_t,3))debugger;this.styles=new Fs(Tt,window.getComputedStyle(_t,null)),hr(_t)&&(this.styles.animationDuration.some(function(Rt){return Rt>0})&&(_t.style.animationDuration="0s"),this.styles.transform!==null&&(_t.style.transform="none")),this.bounds=Vt(this.context,_t),ta(_t,4)&&(this.flags|=16)}return Dt}(),ka="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Xa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",al=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),_s=0;_s<Xa.length;_s++)al[Xa.charCodeAt(_s)]=_s;for(var Ta=function(Dt){var Tt=Dt.length*.75,_t=Dt.length,Rt,Be=0,Ye,Fn,ni,Dn;Dt[Dt.length-1]==="="&&(Tt--,Dt[Dt.length-2]==="="&&Tt--);var Ui=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Tt):new Array(Tt),zi=Array.isArray(Ui)?Ui:new Uint8Array(Ui);for(Rt=0;Rt<_t;Rt+=4)Ye=al[Dt.charCodeAt(Rt)],Fn=al[Dt.charCodeAt(Rt+1)],ni=al[Dt.charCodeAt(Rt+2)],Dn=al[Dt.charCodeAt(Rt+3)],zi[Be++]=Ye<<2|Fn>>4,zi[Be++]=(Fn&15)<<4|ni>>2,zi[Be++]=(ni&3)<<6|Dn&63;return Ui},Sl=function(Dt){for(var Tt=Dt.length,_t=[],Rt=0;Rt<Tt;Rt+=2)_t.push(Dt[Rt+1]<<8|Dt[Rt]);return _t},pu=function(Dt){for(var Tt=Dt.length,_t=[],Rt=0;Rt<Tt;Rt+=4)_t.push(Dt[Rt+3]<<24|Dt[Rt+2]<<16|Dt[Rt+1]<<8|Dt[Rt]);return _t},au=5,Uu=11,Xu=2,dh=Uu-au,$u=65536>>au,_a=1<<au,Bu=_a-1,Ul=1024>>au,nl=$u+Ul,ph=nl,Cc=32,mh=ph+Cc,ic=65536>>Uu,rc=1<<dh,vh=rc-1,fa=function(Dt,Tt,_t){return Dt.slice?Dt.slice(Tt,_t):new Uint16Array(Array.prototype.slice.call(Dt,Tt,_t))},Cl=function(Dt,Tt,_t){return Dt.slice?Dt.slice(Tt,_t):new Uint32Array(Array.prototype.slice.call(Dt,Tt,_t))},Ba=function(Dt,Tt){var _t=Ta(Dt),Rt=Array.isArray(_t)?pu(_t):new Uint32Array(_t),Be=Array.isArray(_t)?Sl(_t):new Uint16Array(_t),Ye=24,Fn=fa(Be,Ye/2,Rt[4]/2),ni=Rt[5]===2?fa(Be,(Ye+Rt[4])/2):Cl(Rt,Math.ceil((Ye+Rt[4])/4));return new pl(Rt[0],Rt[1],Rt[2],Rt[3],Fn,ni)},pl=function(){function Dt(Tt,_t,Rt,Be,Ye,Fn){this.initialValue=Tt,this.errorValue=_t,this.highStart=Rt,this.highValueIndex=Be,this.index=Ye,this.data=Fn}return Dt.prototype.get=function(Tt){var _t;if(Tt>=0){if(Tt<55296||Tt>56319&&Tt<=65535)return _t=this.index[Tt>>au],_t=(_t<<Xu)+(Tt&Bu),this.data[_t];if(Tt<=65535)return _t=this.index[$u+(Tt-55296>>au)],_t=(_t<<Xu)+(Tt&Bu),this.data[_t];if(Tt<this.highStart)return _t=mh-ic+(Tt>>Uu),_t=this.index[_t],_t+=Tt>>au&vh,_t=this.index[_t],_t=(_t<<Xu)+(Tt&Bu),this.data[_t];if(Tt<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Dt}(),ga="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lu=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Fu=0;Fu<ga.length;Fu++)lu[ga.charCodeAt(Fu)]=Fu;var zh=1,Ih=2,_n=3,Ru=4,kh=5,lA=7,nd=8,gc=9,xd=10,SA=11,Lu=12,jc=13,Kd=14,id=15,CA=function(Dt){for(var Tt=[],_t=0,Rt=Dt.length;_t<Rt;){var Be=Dt.charCodeAt(_t++);if(Be>=55296&&Be<=56319&&_t<Rt){var Ye=Dt.charCodeAt(_t++);(Ye&64512)===56320?Tt.push(((Be&1023)<<10)+(Ye&1023)+65536):(Tt.push(Be),_t--)}else Tt.push(Be)}return Tt},Uc=function(){for(var Dt=[],Tt=0;Tt<arguments.length;Tt++)Dt[Tt]=arguments[Tt];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Dt);var _t=Dt.length;if(!_t)return"";for(var Rt=[],Be=-1,Ye="";++Be<_t;){var Fn=Dt[Be];Fn<=65535?Rt.push(Fn):(Fn-=65536,Rt.push((Fn>>10)+55296,Fn%1024+56320)),(Be+1===_t||Rt.length>16384)&&(Ye+=String.fromCharCode.apply(String,Rt),Rt.length=0)}return Ye},Sd=Ba(ka),Yu="\xD7",sh="\xF7",Wu=function(Dt){return Sd.get(Dt)},BA=function(Dt,Tt,_t){var Rt=_t-2,Be=Tt[Rt],Ye=Tt[_t-1],Fn=Tt[_t];if(Ye===Ih&&Fn===_n)return Yu;if(Ye===Ih||Ye===_n||Ye===Ru||Fn===Ih||Fn===_n||Fn===Ru)return sh;if(Ye===nd&&[nd,gc,SA,Lu].indexOf(Fn)!==-1||(Ye===SA||Ye===gc)&&(Fn===gc||Fn===xd)||(Ye===Lu||Ye===xd)&&Fn===xd||Fn===jc||Fn===kh||Fn===lA||Ye===zh)return Yu;if(Ye===jc&&Fn===Kd){for(;Be===kh;)Be=Tt[--Rt];if(Be===Kd)return Yu}if(Ye===id&&Fn===id){for(var ni=0;Be===id;)ni++,Be=Tt[--Rt];if(ni%2===0)return Yu}return sh},Kh=function(Dt){var Tt=CA(Dt),_t=Tt.length,Rt=0,Be=0,Ye=Tt.map(Wu);return{next:function(){if(Rt>=_t)return{done:!0,value:null};for(var Fn=Yu;Rt<_t&&(Fn=BA(Tt,Ye,++Rt))===Yu;);if(Fn!==Yu||Rt===_t){var ni=Uc.apply(null,Tt.slice(Be,Rt));return Be=Rt,{value:ni,done:!1}}return{done:!0,value:null}}}},na=function(Dt){for(var Tt=Kh(Dt),_t=[],Rt;!(Rt=Tt.next()).done;)Rt.value&&_t.push(Rt.value.slice());return _t},Cd=function(Dt){var Tt=123;if(Dt.createRange){var _t=Dt.createRange();if(_t.getBoundingClientRect){var Rt=Dt.createElement("boundtest");Rt.style.height=Tt+"px",Rt.style.display="block",Dt.body.appendChild(Rt),_t.selectNode(Rt);var Be=_t.getBoundingClientRect(),Ye=Math.round(Be.height);if(Dt.body.removeChild(Rt),Ye===Tt)return!0}}return!1},rd=function(Dt){var Tt=Dt.createElement("boundtest");Tt.style.width="50px",Tt.style.display="block",Tt.style.fontSize="12px",Tt.style.letterSpacing="0px",Tt.style.wordSpacing="0px",Dt.body.appendChild(Tt);var _t=Dt.createRange();Tt.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var Rt=Tt.firstChild,Be=jt(Rt.data).map(function(Dn){return te(Dn)}),Ye=0,Fn={},ni=Be.every(function(Dn,Ui){_t.setStart(Rt,Ye),_t.setEnd(Rt,Ye+Dn.length);var zi=_t.getBoundingClientRect();Ye+=Dn.length;var lr=zi.x>Fn.x||zi.y>Fn.y;return Fn=zi,Ui===0?!0:lr});return Dt.body.removeChild(Tt),ni},mu=function(){return typeof new Image().crossOrigin!="undefined"},Gd=function(){return typeof new XMLHttpRequest().responseType=="string"},Wd=function(Dt){var Tt=new Image,_t=Dt.createElement("canvas"),Rt=_t.getContext("2d");if(!Rt)return!1;Tt.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{Rt.drawImage(Tt,0,0),_t.toDataURL()}catch(Be){return!1}return!0},Ju=function(Dt){return Dt[0]===0&&Dt[1]===255&&Dt[2]===0&&Dt[3]===255},Rc=function(Dt){var Tt=Dt.createElement("canvas"),_t=100;Tt.width=_t,Tt.height=_t;var Rt=Tt.getContext("2d");if(!Rt)return Promise.reject(!1);Rt.fillStyle="rgb(0, 255, 0)",Rt.fillRect(0,0,_t,_t);var Be=new Image,Ye=Tt.toDataURL();Be.src=Ye;var Fn=Bd(_t,_t,0,0,Be);return Rt.fillStyle="red",Rt.fillRect(0,0,_t,_t),Vd(Fn).then(function(ni){Rt.drawImage(ni,0,0);var Dn=Rt.getImageData(0,0,_t,_t).data;Rt.fillStyle="red",Rt.fillRect(0,0,_t,_t);var Ui=Dt.createElement("div");return Ui.style.backgroundImage="url("+Ye+")",Ui.style.height=_t+"px",Ju(Dn)?Vd(Bd(_t,_t,0,0,Ui)):Promise.reject(!1)}).then(function(ni){return Rt.drawImage(ni,0,0),Ju(Rt.getImageData(0,0,_t,_t).data)}).catch(function(){return!1})},Bd=function(Dt,Tt,_t,Rt,Be){var Ye="http://www.w3.org/2000/svg",Fn=document.createElementNS(Ye,"svg"),ni=document.createElementNS(Ye,"foreignObject");return Fn.setAttributeNS(null,"width",Dt.toString()),Fn.setAttributeNS(null,"height",Tt.toString()),ni.setAttributeNS(null,"width","100%"),ni.setAttributeNS(null,"height","100%"),ni.setAttributeNS(null,"x",_t.toString()),ni.setAttributeNS(null,"y",Rt.toString()),ni.setAttributeNS(null,"externalResourcesRequired","true"),Fn.appendChild(ni),ni.appendChild(Be),Fn},Vd=function(Dt){return new Promise(function(Tt,_t){var Rt=new Image;Rt.onload=function(){return Tt(Rt)},Rt.onerror=_t,Rt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Dt))})},uu={get SUPPORT_RANGE_BOUNDS(){var Dt=Cd(document);return Object.defineProperty(uu,"SUPPORT_RANGE_BOUNDS",{value:Dt}),Dt},get SUPPORT_WORD_BREAKING(){var Dt=uu.SUPPORT_RANGE_BOUNDS&&rd(document);return Object.defineProperty(uu,"SUPPORT_WORD_BREAKING",{value:Dt}),Dt},get SUPPORT_SVG_DRAWING(){var Dt=Wd(document);return Object.defineProperty(uu,"SUPPORT_SVG_DRAWING",{value:Dt}),Dt},get SUPPORT_FOREIGNOBJECT_DRAWING(){var Dt=typeof Array.from=="function"&&typeof window.fetch=="function"?Rc(document):Promise.resolve(!1);return Object.defineProperty(uu,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:Dt}),Dt},get SUPPORT_CORS_IMAGES(){var Dt=mu();return Object.defineProperty(uu,"SUPPORT_CORS_IMAGES",{value:Dt}),Dt},get SUPPORT_RESPONSE_TYPE(){var Dt=Gd();return Object.defineProperty(uu,"SUPPORT_RESPONSE_TYPE",{value:Dt}),Dt},get SUPPORT_CORS_XHR(){var Dt="withCredentials"in new XMLHttpRequest;return Object.defineProperty(uu,"SUPPORT_CORS_XHR",{value:Dt}),Dt},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var Dt=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(uu,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:Dt}),Dt}},vu=function(){function Dt(Tt,_t){this.text=Tt,this.bounds=_t}return Dt}(),_c=function(Dt,Tt,_t,Rt){var Be=Ah(Tt,_t),Ye=[],Fn=0;return Be.forEach(function(ni){if(_t.textDecorationLine.length||ni.trim().length>0)if(uu.SUPPORT_RANGE_BOUNDS){var Dn=Oa(Rt,Fn,ni.length).getClientRects();if(Dn.length>1){var Ui=$a(ni),zi=0;Ui.forEach(function(St){Ye.push(new vu(St,ee.fromDOMRectList(Dt,Oa(Rt,zi+Fn,St.length).getClientRects()))),zi+=St.length})}else Ye.push(new vu(ni,ee.fromDOMRectList(Dt,Dn)))}else{var lr=Rt.splitText(ni.length);Ye.push(new vu(ni,Rl(Dt,Rt))),Rt=lr}else uu.SUPPORT_RANGE_BOUNDS||(Rt=Rt.splitText(ni.length));Fn+=ni.length}),Ye},Rl=function(Dt,Tt){var _t=Tt.ownerDocument;if(_t){var Rt=_t.createElement("html2canvaswrapper");Rt.appendChild(Tt.cloneNode(!0));var Be=Tt.parentNode;if(Be){Be.replaceChild(Rt,Tt);var Ye=Vt(Dt,Rt);return Rt.firstChild&&Be.replaceChild(Rt.firstChild,Rt),Ye}}return ee.EMPTY},Oa=function(Dt,Tt,_t){var Rt=Dt.ownerDocument;if(!Rt)throw new Error("Node has no owner document");var Be=Rt.createRange();return Be.setStart(Dt,Tt),Be.setEnd(Dt,Tt+_t),Be},$a=function(Dt){if(uu.SUPPORT_NATIVE_TEXT_SEGMENTATION){var Tt=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(Tt.segment(Dt)).map(function(_t){return _t.segment})}return na(Dt)},Mu=function(Dt,Tt){if(uu.SUPPORT_NATIVE_TEXT_SEGMENTATION){var _t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(_t.segment(Dt)).map(function(Rt){return Rt.segment})}return Zd(Dt,Tt)},Ah=function(Dt,Tt){return Tt.letterSpacing!==0?$a(Dt):Mu(Dt,Tt)},Ph=[32,160,4961,65792,65793,4153,4241],Zd=function(Dt,Tt){for(var _t=wn(Dt,{lineBreak:Tt.lineBreak,wordBreak:Tt.overflowWrap==="break-word"?"break-word":Tt.wordBreak}),Rt=[],Be,Ye=function(){if(Be.value){var Fn=Be.value.slice(),ni=jt(Fn),Dn="";ni.forEach(function(Ui){Ph.indexOf(Ui)===-1?Dn+=te(Ui):(Dn.length&&Rt.push(Dn),Rt.push(te(Ui)),Dn="")}),Dn.length&&Rt.push(Dn)}};!(Be=_t.next()).done;)Ye();return Rt},Bc=function(){function Dt(Tt,_t,Rt){this.text=Pd(_t.data,Rt.textTransform),this.textBounds=_c(Tt,this.text,Rt,_t)}return Dt}(),Pd=function(Dt,Tt){switch(Tt){case 1:return Dt.toLowerCase();case 3:return Dt.replace(Vu,yh);case 2:return Dt.toUpperCase();default:return Dt}},Vu=/(^|\s|:|-|\(|\))([a-z])/g,yh=function(Dt,Tt,_t){return Dt.length>0?Tt+_t.toUpperCase():Dt},PA=function(Dt){Ft(Tt,Dt);function Tt(_t,Rt){var Be=Dt.call(this,_t,Rt)||this;return Be.src=Rt.currentSrc||Rt.src,Be.intrinsicWidth=Rt.naturalWidth,Be.intrinsicHeight=Rt.naturalHeight,Be.context.cache.addImage(Be.src),Be}return Tt}(la),Hc=function(Dt){Ft(Tt,Dt);function Tt(_t,Rt){var Be=Dt.call(this,_t,Rt)||this;return Be.canvas=Rt,Be.intrinsicWidth=Rt.width,Be.intrinsicHeight=Rt.height,Be}return Tt}(la),oc=function(Dt){Ft(Tt,Dt);function Tt(_t,Rt){var Be=Dt.call(this,_t,Rt)||this,Ye=new XMLSerializer,Fn=Vt(_t,Rt);return Rt.setAttribute("width",Fn.width+"px"),Rt.setAttribute("height",Fn.height+"px"),Be.svg="data:image/svg+xml,"+encodeURIComponent(Ye.serializeToString(Rt)),Be.intrinsicWidth=Rt.width.baseVal.value,Be.intrinsicHeight=Rt.height.baseVal.value,Be.context.cache.addImage(Be.svg),Be}return Tt}(la),Qc=function(Dt){Ft(Tt,Dt);function Tt(_t,Rt){var Be=Dt.call(this,_t,Rt)||this;return Be.value=Rt.value,Be}return Tt}(la),od=function(Dt){Ft(Tt,Dt);function Tt(_t,Rt){var Be=Dt.call(this,_t,Rt)||this;return Be.start=Rt.start,Be.reversed=typeof Rt.reversed=="boolean"&&Rt.reversed===!0,Be}return Tt}(la),lf=[{type:15,flags:0,unit:"px",number:3}],uA=[{type:16,flags:0,number:50}],Pc=function(Dt){return Dt.width>Dt.height?new ee(Dt.left+(Dt.width-Dt.height)/2,Dt.top,Dt.height,Dt.height):Dt.width<Dt.height?new ee(Dt.left,Dt.top+(Dt.height-Dt.width)/2,Dt.width,Dt.width):Dt},KA=function(Dt){var Tt=Dt.type===Kc?new Array(Dt.value.length+1).join("\u2022"):Dt.value;return Tt.length===0?Dt.placeholder||"":Tt},bd="checkbox",zc="radio",Kc="password",hA=707406591,Th=function(Dt){Ft(Tt,Dt);function Tt(_t,Rt){var Be=Dt.call(this,_t,Rt)||this;switch(Be.type=Rt.type.toLowerCase(),Be.checked=Rt.checked,Be.value=KA(Rt),(Be.type===bd||Be.type===zc)&&(Be.styles.backgroundColor=3739148031,Be.styles.borderTopColor=Be.styles.borderRightColor=Be.styles.borderBottomColor=Be.styles.borderLeftColor=2779096575,Be.styles.borderTopWidth=Be.styles.borderRightWidth=Be.styles.borderBottomWidth=Be.styles.borderLeftWidth=1,Be.styles.borderTopStyle=Be.styles.borderRightStyle=Be.styles.borderBottomStyle=Be.styles.borderLeftStyle=1,Be.styles.backgroundClip=[0],Be.styles.backgroundOrigin=[0],Be.bounds=Pc(Be.bounds)),Be.type){case bd:Be.styles.borderTopRightRadius=Be.styles.borderTopLeftRadius=Be.styles.borderBottomRightRadius=Be.styles.borderBottomLeftRadius=lf;break;case zc:Be.styles.borderTopRightRadius=Be.styles.borderTopLeftRadius=Be.styles.borderBottomRightRadius=Be.styles.borderBottomLeftRadius=uA;break}return Be}return Tt}(la),bA=function(Dt){Ft(Tt,Dt);function Tt(_t,Rt){var Be=Dt.call(this,_t,Rt)||this,Ye=Rt.options[Rt.selectedIndex||0];return Be.value=Ye&&Ye.text||"",Be}return Tt}(la),EA=function(Dt){Ft(Tt,Dt);function Tt(_t,Rt){var Be=Dt.call(this,_t,Rt)||this;return Be.value=Rt.value,Be}return Tt}(la),cA=function(Dt){Ft(Tt,Dt);function Tt(_t,Rt){var Be=Dt.call(this,_t,Rt)||this;Be.src=Rt.src,Be.width=parseInt(Rt.width,10)||0,Be.height=parseInt(Rt.height,10)||0,Be.backgroundColor=Be.styles.backgroundColor;try{if(Rt.contentWindow&&Rt.contentWindow.document&&Rt.contentWindow.document.documentElement){Be.tree=FA(_t,Rt.contentWindow.document.documentElement);var Ye=Rt.contentWindow.document.documentElement?td(_t,getComputedStyle(Rt.contentWindow.document.documentElement).backgroundColor):Sh.TRANSPARENT,Fn=Rt.contentWindow.document.body?td(_t,getComputedStyle(Rt.contentWindow.document.body).backgroundColor):Sh.TRANSPARENT;Be.backgroundColor=za(Ye)?za(Fn)?Be.styles.backgroundColor:Fn:Ye}}catch(ni){}return Be}return Tt}(la),Xd=["OL","UL","MENU"],Ed=function(Dt,Tt,_t,Rt){for(var Be=Tt.firstChild,Ye=void 0;Be;Be=Ye)if(Ye=Be.nextSibling,wi(Be)&&Be.data.trim().length>0)_t.textNodes.push(new Bc(Dt,Be,_t.styles));else if(_i(Be))if(LA(Be)&&Be.assignedNodes)Be.assignedNodes().forEach(function(ni){return Ed(Dt,ni,_t,Rt)});else{var Fn=$d(Dt,Be);Fn.styles.isVisible()&&(fe(Be,Fn,Rt)?Fn.flags|=4:yn(Fn.styles)&&(Fn.flags|=2),Xd.indexOf(Be.tagName)!==-1&&(Fn.flags|=8),_t.elements.push(Fn),Be.slot,Be.shadowRoot?Ed(Dt,Be.shadowRoot,Fn,Rt):!bh(Be)&&!ba(Be)&&!ac(Be)&&Ed(Dt,Be,Fn,Rt))}},$d=function(Dt,Tt){return Ka(Tt)?new PA(Dt,Tt):nu(Tt)?new Hc(Dt,Tt):ba(Tt)?new oc(Dt,Tt):So(Tt)?new Qc(Dt,Tt):gs(Tt)?new od(Dt,Tt):$s(Tt)?new Th(Dt,Tt):ac(Tt)?new bA(Dt,Tt):bh(Tt)?new EA(Dt,Tt):zl(Tt)?new cA(Dt,Tt):new la(Dt,Tt)},FA=function(Dt,Tt){var _t=$d(Dt,Tt);return _t.flags|=4,Ed(Dt,Tt,_t,_t),_t},fe=function(Dt,Tt,_t){return Tt.styles.isPositionedWithZIndex()||Tt.styles.opacity<1||Tt.styles.isTransformed()||ps(Dt)&&_t.styles.isTransparent()},yn=function(Dt){return Dt.isPositioned()||Dt.isFloating()},wi=function(Dt){return Dt.nodeType===Node.TEXT_NODE},_i=function(Dt){return Dt.nodeType===Node.ELEMENT_NODE},hr=function(Dt){return _i(Dt)&&typeof Dt.style!="undefined"&&!Ur(Dt)},Ur=function(Dt){return typeof Dt.className=="object"},So=function(Dt){return Dt.tagName==="LI"},gs=function(Dt){return Dt.tagName==="OL"},$s=function(Dt){return Dt.tagName==="INPUT"},Pa=function(Dt){return Dt.tagName==="HTML"},ba=function(Dt){return Dt.tagName==="svg"},ps=function(Dt){return Dt.tagName==="BODY"},nu=function(Dt){return Dt.tagName==="CANVAS"},iu=function(Dt){return Dt.tagName==="VIDEO"},Ka=function(Dt){return Dt.tagName==="IMG"},zl=function(Dt){return Dt.tagName==="IFRAME"},Nu=function(Dt){return Dt.tagName==="STYLE"},sc=function(Dt){return Dt.tagName==="SCRIPT"},bh=function(Dt){return Dt.tagName==="TEXTAREA"},ac=function(Dt){return Dt.tagName==="SELECT"},LA=function(Dt){return Dt.tagName==="SLOT"},dA=function(Dt){return Dt.tagName.indexOf("-")>0},MA=function(){function Dt(){this.counters={}}return Dt.prototype.getCounterValue=function(Tt){var _t=this.counters[Tt];return _t&&_t.length?_t[_t.length-1]:1},Dt.prototype.getCounterValues=function(Tt){var _t=this.counters[Tt];return _t||[]},Dt.prototype.pop=function(Tt){var _t=this;Tt.forEach(function(Rt){return _t.counters[Rt].pop()})},Dt.prototype.parse=function(Tt){var _t=this,Rt=Tt.counterIncrement,Be=Tt.counterReset,Ye=!0;Rt!==null&&Rt.forEach(function(ni){var Dn=_t.counters[ni.counter];Dn&&ni.increment!==0&&(Ye=!1,Dn.length||Dn.push(1),Dn[Math.max(0,Dn.length-1)]+=ni.increment)});var Fn=[];return Ye&&Be.forEach(function(ni){var Dn=_t.counters[ni.counter];Fn.push(ni.counter),Dn||(Dn=_t.counters[ni.counter]=[]),Dn.push(ni.reset)}),Fn},Dt}(),pc={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Fd={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Gc={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},ml={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},Iu=function(Dt,Tt,_t,Rt,Be,Ye){return Dt<Tt||Dt>_t?vt(Dt,Be,Ye.length>0):Rt.integers.reduce(function(Fn,ni,Dn){for(;Dt>=ni;)Dt-=ni,Fn+=Rt.values[Dn];return Fn},"")+Ye},Yd=function(Dt,Tt,_t,Rt){var Be="";do _t||Dt--,Be=Rt(Dt)+Be,Dt/=Tt;while(Dt*Tt>=Tt);return Be},Gl=function(Dt,Tt,_t,Rt,Be){var Ye=_t-Tt+1;return(Dt<0?"-":"")+(Yd(Math.abs(Dt),Ye,Rt,function(Fn){return te(Math.floor(Fn%Ye)+Tt)})+Be)},Oh=function(Dt,Tt,_t){_t===void 0&&(_t=". ");var Rt=Tt.length;return Yd(Math.abs(Dt),Rt,!1,function(Be){return Tt[Math.floor(Be%Rt)]})+_t},mc=1,qu=2,Wl=4,Ld=8,Dh=function(Dt,Tt,_t,Rt,Be,Ye){if(Dt<-9999||Dt>9999)return vt(Dt,4,Be.length>0);var Fn=Math.abs(Dt),ni=Be;if(Fn===0)return Tt[0]+ni;for(var Dn=0;Fn>0&&Dn<=4;Dn++){var Ui=Fn%10;Ui===0&&zo(Ye,mc)&&ni!==""?ni=Tt[Ui]+ni:Ui>1||Ui===1&&Dn===0||Ui===1&&Dn===1&&zo(Ye,qu)||Ui===1&&Dn===1&&zo(Ye,Wl)&&Dt>100||Ui===1&&Dn>1&&zo(Ye,Ld)?ni=Tt[Ui]+(Dn>0?_t[Dn-1]:"")+ni:Ui===1&&Dn>0&&(ni=_t[Dn-1]+ni),Fn=Math.floor(Fn/10)}return(Dt<0?Rt:"")+ni},ah="\u5341\u767E\u5343\u842C",sd="\u62FE\u4F70\u4EDF\u842C",it="\u30DE\u30A4\u30CA\u30B9",st="\uB9C8\uC774\uB108\uC2A4",vt=function(Dt,Tt,_t){var Rt=_t?". ":"",Be=_t?"\u3001":"",Ye=_t?", ":"",Fn=_t?" ":"";switch(Tt){case 0:return"\u2022"+Fn;case 1:return"\u25E6"+Fn;case 2:return"\u25FE"+Fn;case 5:var ni=Gl(Dt,48,57,!0,Rt);return ni.length<4?"0"+ni:ni;case 4:return Oh(Dt,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Be);case 6:return Iu(Dt,1,3999,pc,3,Rt).toLowerCase();case 7:return Iu(Dt,1,3999,pc,3,Rt);case 8:return Gl(Dt,945,969,!1,Rt);case 9:return Gl(Dt,97,122,!1,Rt);case 10:return Gl(Dt,65,90,!1,Rt);case 11:return Gl(Dt,1632,1641,!0,Rt);case 12:case 49:return Iu(Dt,1,9999,Fd,3,Rt);case 35:return Iu(Dt,1,9999,Fd,3,Rt).toLowerCase();case 13:return Gl(Dt,2534,2543,!0,Rt);case 14:case 30:return Gl(Dt,6112,6121,!0,Rt);case 15:return Oh(Dt,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",Be);case 16:return Oh(Dt,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",Be);case 17:case 48:return Dh(Dt,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",ah,"\u8CA0",Be,qu|Wl|Ld);case 47:return Dh(Dt,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",sd,"\u8CA0",Be,mc|qu|Wl|Ld);case 42:return Dh(Dt,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",ah,"\u8D1F",Be,qu|Wl|Ld);case 41:return Dh(Dt,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",sd,"\u8D1F",Be,mc|qu|Wl|Ld);case 26:return Dh(Dt,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",it,Be,0);case 25:return Dh(Dt,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",it,Be,mc|qu|Wl);case 31:return Dh(Dt,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",st,Ye,mc|qu|Wl);case 33:return Dh(Dt,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",st,Ye,0);case 32:return Dh(Dt,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",st,Ye,mc|qu|Wl);case 18:return Gl(Dt,2406,2415,!0,Rt);case 20:return Iu(Dt,1,19999,ml,3,Rt);case 21:return Gl(Dt,2790,2799,!0,Rt);case 22:return Gl(Dt,2662,2671,!0,Rt);case 22:return Iu(Dt,1,10999,Gc,3,Rt);case 23:return Oh(Dt,"\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 Oh(Dt,"\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 Gl(Dt,3302,3311,!0,Rt);case 28:return Oh(Dt,"\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",Be);case 29:return Oh(Dt,"\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",Be);case 34:return Gl(Dt,3792,3801,!0,Rt);case 37:return Gl(Dt,6160,6169,!0,Rt);case 38:return Gl(Dt,4160,4169,!0,Rt);case 39:return Gl(Dt,2918,2927,!0,Rt);case 40:return Gl(Dt,1776,1785,!0,Rt);case 43:return Gl(Dt,3046,3055,!0,Rt);case 44:return Gl(Dt,3174,3183,!0,Rt);case 45:return Gl(Dt,3664,3673,!0,Rt);case 46:return Gl(Dt,3872,3881,!0,Rt);case 3:default:return Gl(Dt,48,57,!0,Rt)}},gt="data-html2canvas-ignore",Bt=function(){function Dt(Tt,_t,Rt){if(this.context=Tt,this.options=Rt,this.scrolledElements=[],this.referenceElement=_t,this.counters=new MA,this.quoteDepth=0,!_t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(_t.ownerDocument.documentElement,!1)}return Dt.prototype.toIFrame=function(Tt,_t){var Rt=this,Be=Se(Tt,_t);if(!Be.contentWindow)return Promise.reject("Unable to find iframe window");var Ye=Tt.defaultView.pageXOffset,Fn=Tt.defaultView.pageYOffset,ni=Be.contentWindow,Dn=ni.document,Ui=ln(Be).then(function(){return ce(Rt,void 0,void 0,function(){var zi,lr;return re(this,function(St){switch(St.label){case 0:return this.scrolledElements.forEach(yr),ni&&(ni.scrollTo(_t.left,_t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(ni.scrollY!==_t.top||ni.scrollX!==_t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(ni.scrollX-_t.left,ni.scrollY-_t.top,0,0))),zi=this.options.onclone,lr=this.clonedReferenceElement,typeof lr=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:Dn.fonts&&Dn.fonts.ready?[4,Dn.fonts.ready]:[3,2];case 1:St.sent(),St.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,De(Dn)]:[3,4];case 3:St.sent(),St.label=4;case 4:return typeof zi=="function"?[2,Promise.resolve().then(function(){return zi(Dn,lr)}).then(function(){return Be})]:[2,Be]}})})});return Dn.open(),Dn.write(ki(document.doctype)+"<html></html>"),bi(this.referenceElement.ownerDocument,Ye,Fn),Dn.replaceChild(Dn.adoptNode(this.documentElement),Dn.documentElement),Dn.close(),Ui},Dt.prototype.createElementClone=function(Tt){if(ta(Tt,2))debugger;if(nu(Tt))return this.createCanvasClone(Tt);if(iu(Tt))return this.createVideoClone(Tt);if(Nu(Tt))return this.createStyleClone(Tt);var _t=Tt.cloneNode(!1);return Ka(_t)&&(Ka(Tt)&&Tt.currentSrc&&Tt.currentSrc!==Tt.src&&(_t.src=Tt.currentSrc,_t.srcset=""),_t.loading==="lazy"&&(_t.loading="eager")),dA(_t)?this.createCustomElementClone(_t):_t},Dt.prototype.createCustomElementClone=function(Tt){var _t=document.createElement("html2canvascustomelement");return pn(Tt.style,_t),_t},Dt.prototype.createStyleClone=function(Tt){try{var _t=Tt.sheet;if(_t&&_t.cssRules){var Rt=[].slice.call(_t.cssRules,0).reduce(function(Ye,Fn){return Fn&&typeof Fn.cssText=="string"?Ye+Fn.cssText:Ye},""),Be=Tt.cloneNode(!1);return Be.textContent=Rt,Be}}catch(Ye){if(this.context.logger.error("Unable to access cssRules property",Ye),Ye.name!=="SecurityError")throw Ye}return Tt.cloneNode(!1)},Dt.prototype.createCanvasClone=function(Tt){var _t;if(this.options.inlineImages&&Tt.ownerDocument){var Rt=Tt.ownerDocument.createElement("img");try{return Rt.src=Tt.toDataURL(),Rt}catch(Ui){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",Tt)}}var Be=Tt.cloneNode(!1);try{Be.width=Tt.width,Be.height=Tt.height;var Ye=Tt.getContext("2d"),Fn=Be.getContext("2d");if(Fn)if(!this.options.allowTaint&&Ye)Fn.putImageData(Ye.getImageData(0,0,Tt.width,Tt.height),0,0);else{var ni=(_t=Tt.getContext("webgl2"))!==null&&_t!==void 0?_t:Tt.getContext("webgl");if(ni){var Dn=ni.getContextAttributes();(Dn==null?void 0:Dn.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",Tt)}Fn.drawImage(Tt,0,0)}return Be}catch(Ui){this.context.logger.info("Unable to clone canvas as it is tainted",Tt)}return Be},Dt.prototype.createVideoClone=function(Tt){var _t=Tt.ownerDocument.createElement("canvas");_t.width=Tt.offsetWidth,_t.height=Tt.offsetHeight;var Rt=_t.getContext("2d");try{return Rt&&(Rt.drawImage(Tt,0,0,_t.width,_t.height),this.options.allowTaint||Rt.getImageData(0,0,_t.width,_t.height)),_t}catch(Ye){this.context.logger.info("Unable to clone video as it is tainted",Tt)}var Be=Tt.ownerDocument.createElement("canvas");return Be.width=Tt.offsetWidth,Be.height=Tt.offsetHeight,Be},Dt.prototype.appendChildNode=function(Tt,_t,Rt){(!_i(_t)||!sc(_t)&&!_t.hasAttribute(gt)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(_t)))&&(!this.options.copyStyles||!_i(_t)||!Nu(_t))&&Tt.appendChild(this.cloneNode(_t,Rt))},Dt.prototype.cloneChildNodes=function(Tt,_t,Rt){for(var Be=this,Ye=Tt.shadowRoot?Tt.shadowRoot.firstChild:Tt.firstChild;Ye;Ye=Ye.nextSibling)if(_i(Ye)&&LA(Ye)&&typeof Ye.assignedNodes=="function"){var Fn=Ye.assignedNodes();Fn.length&&Fn.forEach(function(ni){return Be.appendChildNode(_t,ni,Rt)})}else this.appendChildNode(_t,Ye,Rt)},Dt.prototype.cloneNode=function(Tt,_t){if(wi(Tt))return document.createTextNode(Tt.data);if(!Tt.ownerDocument)return Tt.cloneNode(!1);var Rt=Tt.ownerDocument.defaultView;if(Rt&&_i(Tt)&&(hr(Tt)||Ur(Tt))){var Be=this.createElementClone(Tt);Be.style.transitionProperty="none";var Ye=Rt.getComputedStyle(Tt),Fn=Rt.getComputedStyle(Tt,":before"),ni=Rt.getComputedStyle(Tt,":after");this.referenceElement===Tt&&hr(Be)&&(this.clonedReferenceElement=Be),ps(Be)&&ss(Be);var Dn=this.counters.parse(new jl(this.context,Ye)),Ui=this.resolvePseudoContent(Tt,Be,Fn,Jt.BEFORE);dA(Tt)&&(_t=!0),iu(Tt)||this.cloneChildNodes(Tt,Be,_t),Ui&&Be.insertBefore(Ui,Be.firstChild);var zi=this.resolvePseudoContent(Tt,Be,ni,Jt.AFTER);return zi&&Be.appendChild(zi),this.counters.pop(Dn),(Ye&&(this.options.copyStyles||Ur(Tt))&&!zl(Tt)||_t)&&pn(Ye,Be),(Tt.scrollTop!==0||Tt.scrollLeft!==0)&&this.scrolledElements.push([Be,Tt.scrollLeft,Tt.scrollTop]),(bh(Tt)||ac(Tt))&&(bh(Be)||ac(Be))&&(Be.value=Tt.value),Be}return Tt.cloneNode(!1)},Dt.prototype.resolvePseudoContent=function(Tt,_t,Rt,Be){var Ye=this;if(Rt){var Fn=Rt.content,ni=_t.ownerDocument;if(!(!ni||!Fn||Fn==="none"||Fn==="-moz-alt-content"||Rt.display==="none")){this.counters.parse(new jl(this.context,Rt));var Dn=new ca(this.context,Rt),Ui=ni.createElement("html2canvaspseudoelement");pn(Rt,Ui),Dn.content.forEach(function(lr){if(lr.type===0)Ui.appendChild(ni.createTextNode(lr.value));else if(lr.type===22){var St=ni.createElement("img");St.src=lr.value,St.style.opacity="1",Ui.appendChild(St)}else if(lr.type===18){if(lr.name==="attr"){var Qt=lr.values.filter(ja);Qt.length&&Ui.appendChild(ni.createTextNode(Tt.getAttribute(Qt[0].value)||""))}else if(lr.name==="counter"){var de=lr.values.filter(Pu),Ee=de[0],sn=de[1];if(Ee&&ja(Ee)){var hn=Ye.counters.getCounterValue(Ee.value),cn=sn&&ja(sn)?Qe.parse(Ye.context,sn.value):3;Ui.appendChild(ni.createTextNode(vt(hn,cn,!1)))}}else if(lr.name==="counters"){var xn=lr.values.filter(Pu),Ee=xn[0],Nn=xn[1],sn=xn[2];if(Ee&&ja(Ee)){var zn=Ye.counters.getCounterValues(Ee.value),fi=sn&&ja(sn)?Qe.parse(Ye.context,sn.value):3,$i=Nn&&Nn.type===0?Nn.value:"",Yi=zn.map(function(Nr){return vt(Nr,fi,!1)}).join($i);Ui.appendChild(ni.createTextNode(Yi))}}}else if(lr.type===20)switch(lr.value){case"open-quote":Ui.appendChild(ni.createTextNode(Vo(Dn.quotes,Ye.quoteDepth++,!0)));break;case"close-quote":Ui.appendChild(ni.createTextNode(Vo(Dn.quotes,--Ye.quoteDepth,!1)));break;default:Ui.appendChild(ni.createTextNode(lr.value))}}),Ui.className=vo+" "+Yo;var zi=Be===Jt.BEFORE?" "+vo:" "+Yo;return Ur(_t)?_t.className.baseValue+=zi:_t.className+=zi,Ui}}},Dt.destroy=function(Tt){return Tt.parentNode?(Tt.parentNode.removeChild(Tt),!0):!1},Dt}(),Jt;(function(Dt){Dt[Dt.BEFORE=0]="BEFORE",Dt[Dt.AFTER=1]="AFTER"})(Jt||(Jt={}));var Se=function(Dt,Tt){var _t=Dt.createElement("iframe");return _t.className="html2canvas-container",_t.style.visibility="hidden",_t.style.position="fixed",_t.style.left="-10000px",_t.style.top="0px",_t.style.border="0",_t.width=Tt.width.toString(),_t.height=Tt.height.toString(),_t.scrolling="no",_t.setAttribute(gt,"true"),Dt.body.appendChild(_t),_t},je=function(Dt){return new Promise(function(Tt){if(Dt.complete){Tt();return}if(!Dt.src){Tt();return}Dt.onload=Tt,Dt.onerror=Tt})},De=function(Dt){return Promise.all([].slice.call(Dt.images,0).map(je))},ln=function(Dt){return new Promise(function(Tt,_t){var Rt=Dt.contentWindow;if(!Rt)return _t("No window assigned for iframe");var Be=Rt.document;Rt.onload=Dt.onload=function(){Rt.onload=Dt.onload=null;var Ye=setInterval(function(){Be.body.childNodes.length>0&&Be.readyState==="complete"&&(clearInterval(Ye),Tt(Dt))},50)}})},oi=["all","d","content"],pn=function(Dt,Tt){for(var _t=Dt.length-1;_t>=0;_t--){var Rt=Dt.item(_t);oi.indexOf(Rt)===-1&&Tt.style.setProperty(Rt,Dt.getPropertyValue(Rt))}return Tt},ki=function(Dt){var Tt="";return Dt&&(Tt+="<!DOCTYPE ",Dt.name&&(Tt+=Dt.name),Dt.internalSubset&&(Tt+=Dt.internalSubset),Dt.publicId&&(Tt+='"'+Dt.publicId+'"'),Dt.systemId&&(Tt+='"'+Dt.systemId+'"'),Tt+=">"),Tt},bi=function(Dt,Tt,_t){Dt&&Dt.defaultView&&(Tt!==Dt.defaultView.pageXOffset||_t!==Dt.defaultView.pageYOffset)&&Dt.defaultView.scrollTo(Tt,_t)},yr=function(Dt){var Tt=Dt[0],_t=Dt[1],Rt=Dt[2];Tt.scrollLeft=_t,Tt.scrollTop=Rt},kr=":before",qr=":after",vo="___html2canvas___pseudoelement_before",Yo="___html2canvas___pseudoelement_after",Mo=`{
|
|
|
content: "" !important;
|
|
|
display: none !important;
|
|
|
}`,ss=function(Dt){ks(Dt,"."+vo+kr+Mo+`
|
|
|
.`+Yo+qr+Mo)},ks=function(Dt,Tt){var _t=Dt.ownerDocument;if(_t){var Rt=_t.createElement("style");Rt.textContent=Tt,Dt.appendChild(Rt)}},No=function(){function Dt(){}return Dt.getOrigin=function(Tt){var _t=Dt._link;return _t?(_t.href=Tt,_t.href=_t.href,_t.protocol+_t.hostname+_t.port):"about:blank"},Dt.isSameOrigin=function(Tt){return Dt.getOrigin(Tt)===Dt._origin},Dt.setContext=function(Tt){Dt._link=Tt.document.createElement("a"),Dt._origin=Dt.getOrigin(Tt.location.href)},Dt._origin="about:blank",Dt}(),ea=function(){function Dt(Tt,_t){this.context=Tt,this._options=_t,this._cache={}}return Dt.prototype.addImage=function(Tt){var _t=Promise.resolve();return this.has(Tt)||(vl(Tt)||yu(Tt))&&(this._cache[Tt]=this.loadImage(Tt)).catch(function(){}),_t},Dt.prototype.match=function(Tt){return this._cache[Tt]},Dt.prototype.loadImage=function(Tt){return ce(this,void 0,void 0,function(){var _t,Rt,Be,Ye,Fn=this;return re(this,function(ni){switch(ni.label){case 0:return _t=No.isSameOrigin(Tt),Rt=!La(Tt)&&this._options.useCORS===!0&&uu.SUPPORT_CORS_IMAGES&&!_t,Be=!La(Tt)&&!_t&&!vl(Tt)&&typeof this._options.proxy=="string"&&uu.SUPPORT_CORS_XHR&&!Rt,!_t&&this._options.allowTaint===!1&&!La(Tt)&&!vl(Tt)&&!Be&&!Rt?[2]:(Ye=Tt,Be?[4,this.proxy(Ye)]:[3,2]);case 1:Ye=ni.sent(),ni.label=2;case 2:return this.context.logger.debug("Added image "+Tt.substring(0,256)),[4,new Promise(function(Dn,Ui){var zi=new Image;zi.onload=function(){return Dn(zi)},zi.onerror=Ui,(Sa(Ye)||Rt)&&(zi.crossOrigin="anonymous"),zi.src=Ye,zi.complete===!0&&setTimeout(function(){return Dn(zi)},500),Fn._options.imageTimeout>0&&setTimeout(function(){return Ui("Timed out ("+Fn._options.imageTimeout+"ms) loading image")},Fn._options.imageTimeout)})];case 3:return[2,ni.sent()]}})})},Dt.prototype.has=function(Tt){return typeof this._cache[Tt]!="undefined"},Dt.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Dt.prototype.proxy=function(Tt){var _t=this,Rt=this._options.proxy;if(!Rt)throw new Error("No proxy defined");var Be=Tt.substring(0,256);return new Promise(function(Ye,Fn){var ni=uu.SUPPORT_RESPONSE_TYPE?"blob":"text",Dn=new XMLHttpRequest;Dn.onload=function(){if(Dn.status===200)if(ni==="text")Ye(Dn.response);else{var lr=new FileReader;lr.addEventListener("load",function(){return Ye(lr.result)},!1),lr.addEventListener("error",function(St){return Fn(St)},!1),lr.readAsDataURL(Dn.response)}else Fn("Failed to proxy resource "+Be+" with status code "+Dn.status)},Dn.onerror=Fn;var Ui=Rt.indexOf("?")>-1?"&":"?";if(Dn.open("GET",""+Rt+Ui+"url="+encodeURIComponent(Tt)+"&responseType="+ni),ni!=="text"&&Dn instanceof XMLHttpRequest&&(Dn.responseType=ni),_t._options.imageTimeout){var zi=_t._options.imageTimeout;Dn.timeout=zi,Dn.ontimeout=function(){return Fn("Timed out ("+zi+"ms) proxying "+Be)}}Dn.send()})},Dt}(),Bl=/^data:image\/svg\+xml/i,ku=/^data:image\/.*;base64,/i,dl=/^data:image\/.*/i,yu=function(Dt){return uu.SUPPORT_SVG_DRAWING||!yl(Dt)},La=function(Dt){return dl.test(Dt)},Sa=function(Dt){return ku.test(Dt)},vl=function(Dt){return Dt.substr(0,4)==="blob"},yl=function(Dt){return Dt.substr(-3).toLowerCase()==="svg"||Bl.test(Dt)},Bo=function(){function Dt(Tt,_t){this.type=0,this.x=Tt,this.y=_t}return Dt.prototype.add=function(Tt,_t){return new Dt(this.x+Tt,this.y+_t)},Dt}(),Ca=function(Dt,Tt,_t){return new Bo(Dt.x+(Tt.x-Dt.x)*_t,Dt.y+(Tt.y-Dt.y)*_t)},Nl=function(){function Dt(Tt,_t,Rt,Be){this.type=1,this.start=Tt,this.startControl=_t,this.endControl=Rt,this.end=Be}return Dt.prototype.subdivide=function(Tt,_t){var Rt=Ca(this.start,this.startControl,Tt),Be=Ca(this.startControl,this.endControl,Tt),Ye=Ca(this.endControl,this.end,Tt),Fn=Ca(Rt,Be,Tt),ni=Ca(Be,Ye,Tt),Dn=Ca(Fn,ni,Tt);return _t?new Dt(this.start,Rt,Fn,Dn):new Dt(Dn,ni,Ye,this.end)},Dt.prototype.add=function(Tt,_t){return new Dt(this.start.add(Tt,_t),this.startControl.add(Tt,_t),this.endControl.add(Tt,_t),this.end.add(Tt,_t))},Dt.prototype.reverse=function(){return new Dt(this.end,this.endControl,this.startControl,this.start)},Dt}(),Il=function(Dt){return Dt.type===1},lh=function(){function Dt(Tt){var _t=Tt.styles,Rt=Tt.bounds,Be=ec(_t.borderTopLeftRadius,Rt.width,Rt.height),Ye=Be[0],Fn=Be[1],ni=ec(_t.borderTopRightRadius,Rt.width,Rt.height),Dn=ni[0],Ui=ni[1],zi=ec(_t.borderBottomRightRadius,Rt.width,Rt.height),lr=zi[0],St=zi[1],Qt=ec(_t.borderBottomLeftRadius,Rt.width,Rt.height),de=Qt[0],Ee=Qt[1],sn=[];sn.push((Ye+Dn)/Rt.width),sn.push((de+lr)/Rt.width),sn.push((Fn+Ee)/Rt.height),sn.push((Ui+St)/Rt.height);var hn=Math.max.apply(Math,sn);hn>1&&(Ye/=hn,Fn/=hn,Dn/=hn,Ui/=hn,lr/=hn,St/=hn,de/=hn,Ee/=hn);var cn=Rt.width-Dn,xn=Rt.height-St,Nn=Rt.width-lr,zn=Rt.height-Ee,fi=_t.borderTopWidth,$i=_t.borderRightWidth,Yi=_t.borderBottomWidth,Ni=_t.borderLeftWidth,Kr=ol(_t.paddingTop,Tt.bounds.width),Nr=ol(_t.paddingRight,Tt.bounds.width),Hi=ol(_t.paddingBottom,Tt.bounds.width),ji=ol(_t.paddingLeft,Tt.bounds.width);this.topLeftBorderDoubleOuterBox=Ye>0||Fn>0?Hs(Rt.left+Ni/3,Rt.top+fi/3,Ye-Ni/3,Fn-fi/3,Da.TOP_LEFT):new Bo(Rt.left+Ni/3,Rt.top+fi/3),this.topRightBorderDoubleOuterBox=Ye>0||Fn>0?Hs(Rt.left+cn,Rt.top+fi/3,Dn-$i/3,Ui-fi/3,Da.TOP_RIGHT):new Bo(Rt.left+Rt.width-$i/3,Rt.top+fi/3),this.bottomRightBorderDoubleOuterBox=lr>0||St>0?Hs(Rt.left+Nn,Rt.top+xn,lr-$i/3,St-Yi/3,Da.BOTTOM_RIGHT):new Bo(Rt.left+Rt.width-$i/3,Rt.top+Rt.height-Yi/3),this.bottomLeftBorderDoubleOuterBox=de>0||Ee>0?Hs(Rt.left+Ni/3,Rt.top+zn,de-Ni/3,Ee-Yi/3,Da.BOTTOM_LEFT):new Bo(Rt.left+Ni/3,Rt.top+Rt.height-Yi/3),this.topLeftBorderDoubleInnerBox=Ye>0||Fn>0?Hs(Rt.left+Ni*2/3,Rt.top+fi*2/3,Ye-Ni*2/3,Fn-fi*2/3,Da.TOP_LEFT):new Bo(Rt.left+Ni*2/3,Rt.top+fi*2/3),this.topRightBorderDoubleInnerBox=Ye>0||Fn>0?Hs(Rt.left+cn,Rt.top+fi*2/3,Dn-$i*2/3,Ui-fi*2/3,Da.TOP_RIGHT):new Bo(Rt.left+Rt.width-$i*2/3,Rt.top+fi*2/3),this.bottomRightBorderDoubleInnerBox=lr>0||St>0?Hs(Rt.left+Nn,Rt.top+xn,lr-$i*2/3,St-Yi*2/3,Da.BOTTOM_RIGHT):new Bo(Rt.left+Rt.width-$i*2/3,Rt.top+Rt.height-Yi*2/3),this.bottomLeftBorderDoubleInnerBox=de>0||Ee>0?Hs(Rt.left+Ni*2/3,Rt.top+zn,de-Ni*2/3,Ee-Yi*2/3,Da.BOTTOM_LEFT):new Bo(Rt.left+Ni*2/3,Rt.top+Rt.height-Yi*2/3),this.topLeftBorderStroke=Ye>0||Fn>0?Hs(Rt.left+Ni/2,Rt.top+fi/2,Ye-Ni/2,Fn-fi/2,Da.TOP_LEFT):new Bo(Rt.left+Ni/2,Rt.top+fi/2),this.topRightBorderStroke=Ye>0||Fn>0?Hs(Rt.left+cn,Rt.top+fi/2,Dn-$i/2,Ui-fi/2,Da.TOP_RIGHT):new Bo(Rt.left+Rt.width-$i/2,Rt.top+fi/2),this.bottomRightBorderStroke=lr>0||St>0?Hs(Rt.left+Nn,Rt.top+xn,lr-$i/2,St-Yi/2,Da.BOTTOM_RIGHT):new Bo(Rt.left+Rt.width-$i/2,Rt.top+Rt.height-Yi/2),this.bottomLeftBorderStroke=de>0||Ee>0?Hs(Rt.left+Ni/2,Rt.top+zn,de-Ni/2,Ee-Yi/2,Da.BOTTOM_LEFT):new Bo(Rt.left+Ni/2,Rt.top+Rt.height-Yi/2),this.topLeftBorderBox=Ye>0||Fn>0?Hs(Rt.left,Rt.top,Ye,Fn,Da.TOP_LEFT):new Bo(Rt.left,Rt.top),this.topRightBorderBox=Dn>0||Ui>0?Hs(Rt.left+cn,Rt.top,Dn,Ui,Da.TOP_RIGHT):new Bo(Rt.left+Rt.width,Rt.top),this.bottomRightBorderBox=lr>0||St>0?Hs(Rt.left+Nn,Rt.top+xn,lr,St,Da.BOTTOM_RIGHT):new Bo(Rt.left+Rt.width,Rt.top+Rt.height),this.bottomLeftBorderBox=de>0||Ee>0?Hs(Rt.left,Rt.top+zn,de,Ee,Da.BOTTOM_LEFT):new Bo(Rt.left,Rt.top+Rt.height),this.topLeftPaddingBox=Ye>0||Fn>0?Hs(Rt.left+Ni,Rt.top+fi,Math.max(0,Ye-Ni),Math.max(0,Fn-fi),Da.TOP_LEFT):new Bo(Rt.left+Ni,Rt.top+fi),this.topRightPaddingBox=Dn>0||Ui>0?Hs(Rt.left+Math.min(cn,Rt.width-$i),Rt.top+fi,cn>Rt.width+$i?0:Math.max(0,Dn-$i),Math.max(0,Ui-fi),Da.TOP_RIGHT):new Bo(Rt.left+Rt.width-$i,Rt.top+fi),this.bottomRightPaddingBox=lr>0||St>0?Hs(Rt.left+Math.min(Nn,Rt.width-Ni),Rt.top+Math.min(xn,Rt.height-Yi),Math.max(0,lr-$i),Math.max(0,St-Yi),Da.BOTTOM_RIGHT):new Bo(Rt.left+Rt.width-$i,Rt.top+Rt.height-Yi),this.bottomLeftPaddingBox=de>0||Ee>0?Hs(Rt.left+Ni,Rt.top+Math.min(zn,Rt.height-Yi),Math.max(0,de-Ni),Math.max(0,Ee-Yi),Da.BOTTOM_LEFT):new Bo(Rt.left+Ni,Rt.top+Rt.height-Yi),this.topLeftContentBox=Ye>0||Fn>0?Hs(Rt.left+Ni+ji,Rt.top+fi+Kr,Math.max(0,Ye-(Ni+ji)),Math.max(0,Fn-(fi+Kr)),Da.TOP_LEFT):new Bo(Rt.left+Ni+ji,Rt.top+fi+Kr),this.topRightContentBox=Dn>0||Ui>0?Hs(Rt.left+Math.min(cn,Rt.width+Ni+ji),Rt.top+fi+Kr,cn>Rt.width+Ni+ji?0:Dn-Ni+ji,Ui-(fi+Kr),Da.TOP_RIGHT):new Bo(Rt.left+Rt.width-($i+Nr),Rt.top+fi+Kr),this.bottomRightContentBox=lr>0||St>0?Hs(Rt.left+Math.min(Nn,Rt.width-(Ni+ji)),Rt.top+Math.min(xn,Rt.height+fi+Kr),Math.max(0,lr-($i+Nr)),St-(Yi+Hi),Da.BOTTOM_RIGHT):new Bo(Rt.left+Rt.width-($i+Nr),Rt.top+Rt.height-(Yi+Hi)),this.bottomLeftContentBox=de>0||Ee>0?Hs(Rt.left+Ni+ji,Rt.top+zn,Math.max(0,de-(Ni+ji)),Ee-(Yi+Hi),Da.BOTTOM_LEFT):new Bo(Rt.left+Ni+ji,Rt.top+Rt.height-(Yi+Hi))}return Dt}(),Da;(function(Dt){Dt[Dt.TOP_LEFT=0]="TOP_LEFT",Dt[Dt.TOP_RIGHT=1]="TOP_RIGHT",Dt[Dt.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",Dt[Dt.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Da||(Da={}));var Hs=function(Dt,Tt,_t,Rt,Be){var Ye=4*((Math.sqrt(2)-1)/3),Fn=_t*Ye,ni=Rt*Ye,Dn=Dt+_t,Ui=Tt+Rt;switch(Be){case Da.TOP_LEFT:return new Nl(new Bo(Dt,Ui),new Bo(Dt,Ui-ni),new Bo(Dn-Fn,Tt),new Bo(Dn,Tt));case Da.TOP_RIGHT:return new Nl(new Bo(Dt,Tt),new Bo(Dt+Fn,Tt),new Bo(Dn,Ui-ni),new Bo(Dn,Ui));case Da.BOTTOM_RIGHT:return new Nl(new Bo(Dn,Tt),new Bo(Dn,Tt+ni),new Bo(Dt+Fn,Ui),new Bo(Dt,Ui));case Da.BOTTOM_LEFT:default:return new Nl(new Bo(Dn,Ui),new Bo(Dn-Fn,Ui),new Bo(Dt,Tt+ni),new Bo(Dt,Tt))}},wu=function(Dt){return[Dt.topLeftBorderBox,Dt.topRightBorderBox,Dt.bottomRightBorderBox,Dt.bottomLeftBorderBox]},hu=function(Dt){return[Dt.topLeftContentBox,Dt.topRightContentBox,Dt.bottomRightContentBox,Dt.bottomLeftContentBox]},ad=function(Dt){return[Dt.topLeftPaddingBox,Dt.topRightPaddingBox,Dt.bottomRightPaddingBox,Dt.bottomLeftPaddingBox]},lc=function(){function Dt(Tt,_t,Rt){this.offsetX=Tt,this.offsetY=_t,this.matrix=Rt,this.type=0,this.target=6}return Dt}(),uh=function(){function Dt(Tt,_t){this.path=Tt,this.target=_t,this.type=1}return Dt}(),wh=function(){function Dt(Tt){this.opacity=Tt,this.type=2,this.target=6}return Dt}(),kl=function(Dt){return Dt.type===0},th=function(Dt){return Dt.type===1},Wc=function(Dt){return Dt.type===2},Jd=function(Dt,Tt){return Dt.length===Tt.length?Dt.some(function(_t,Rt){return _t===Tt[Rt]}):!1},zf=function(Dt,Tt,_t,Rt,Be){return Dt.map(function(Ye,Fn){switch(Fn){case 0:return Ye.add(Tt,_t);case 1:return Ye.add(Tt+Rt,_t);case 2:return Ye.add(Tt+Rt,_t+Be);case 3:return Ye.add(Tt,_t+Be)}return Ye})},Eh=function(){function Dt(Tt){this.element=Tt,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return Dt}(),Sg=function(){function Dt(Tt,_t){if(this.container=Tt,this.parent=_t,this.effects=[],this.curves=new lh(this.container),this.container.styles.opacity<1&&this.effects.push(new wh(this.container.styles.opacity)),this.container.styles.transform!==null){var Rt=this.container.bounds.left+this.container.styles.transformOrigin[0].number,Be=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Ye=this.container.styles.transform;this.effects.push(new lc(Rt,Be,Ye))}if(this.container.styles.overflowX!==0){var Fn=wu(this.curves),ni=ad(this.curves);Jd(Fn,ni)?this.effects.push(new uh(Fn,6)):(this.effects.push(new uh(Fn,2)),this.effects.push(new uh(ni,4)))}}return Dt.prototype.getEffects=function(Tt){for(var _t=[2,3].indexOf(this.container.styles.position)===-1,Rt=this.parent,Be=this.effects.slice(0);Rt;){var Ye=Rt.effects.filter(function(Dn){return!th(Dn)});if(_t||Rt.container.styles.position!==0||!Rt.parent){if(Be.unshift.apply(Be,Ye),_t=[2,3].indexOf(Rt.container.styles.position)===-1,Rt.container.styles.overflowX!==0){var Fn=wu(Rt.curves),ni=ad(Rt.curves);Jd(Fn,ni)||Be.unshift(new uh(ni,6))}}else Be.unshift.apply(Be,Ye);Rt=Rt.parent}return Be.filter(function(Dn){return zo(Dn.target,Tt)})},Dt}(),Md=function(Dt,Tt,_t,Rt){Dt.container.elements.forEach(function(Be){var Ye=zo(Be.flags,4),Fn=zo(Be.flags,2),ni=new Sg(Be,Dt);zo(Be.styles.display,2048)&&Rt.push(ni);var Dn=zo(Be.flags,8)?[]:Rt;if(Ye||Fn){var Ui=Ye||Be.styles.isPositioned()?_t:Tt,zi=new Eh(ni);if(Be.styles.isPositioned()||Be.styles.opacity<1||Be.styles.isTransformed()){var lr=Be.styles.zIndex.order;if(lr<0){var St=0;Ui.negativeZIndex.some(function(de,Ee){return lr>de.element.container.styles.zIndex.order?(St=Ee,!1):St>0}),Ui.negativeZIndex.splice(St,0,zi)}else if(lr>0){var Qt=0;Ui.positiveZIndex.some(function(de,Ee){return lr>=de.element.container.styles.zIndex.order?(Qt=Ee+1,!1):Qt>0}),Ui.positiveZIndex.splice(Qt,0,zi)}else Ui.zeroOrAutoZIndexOrTransformedOrOpacity.push(zi)}else Be.styles.isFloating()?Ui.nonPositionedFloats.push(zi):Ui.nonPositionedInlineLevel.push(zi);Md(ni,zi,Ye?zi:_t,Dn)}else Be.styles.isInlineLevel()?Tt.inlineLevel.push(ni):Tt.nonInlineLevel.push(ni),Md(ni,Tt,_t,Dn);zo(Be.flags,8)&&yf(Be,Dn)})},yf=function(Dt,Tt){for(var _t=Dt instanceof od?Dt.start:1,Rt=Dt instanceof od?Dt.reversed:!1,Be=0;Be<Tt.length;Be++){var Ye=Tt[Be];Ye.container instanceof Qc&&typeof Ye.container.value=="number"&&Ye.container.value!==0&&(_t=Ye.container.value),Ye.listValue=vt(_t,Ye.container.styles.listStyleType,!0),_t+=Rt?-1:1}},wf=function(Dt){var Tt=new Sg(Dt,null),_t=new Eh(Tt),Rt=[];return Md(Tt,_t,_t,Rt),yf(Tt.container,Rt),_t},GA=function(Dt,Tt){switch(Tt){case 0:return _u(Dt.topLeftBorderBox,Dt.topLeftPaddingBox,Dt.topRightBorderBox,Dt.topRightPaddingBox);case 1:return _u(Dt.topRightBorderBox,Dt.topRightPaddingBox,Dt.bottomRightBorderBox,Dt.bottomRightPaddingBox);case 2:return _u(Dt.bottomRightBorderBox,Dt.bottomRightPaddingBox,Dt.bottomLeftBorderBox,Dt.bottomLeftPaddingBox);case 3:default:return _u(Dt.bottomLeftBorderBox,Dt.bottomLeftPaddingBox,Dt.topLeftBorderBox,Dt.topLeftPaddingBox)}},NA=function(Dt,Tt){switch(Tt){case 0:return _u(Dt.topLeftBorderBox,Dt.topLeftBorderDoubleOuterBox,Dt.topRightBorderBox,Dt.topRightBorderDoubleOuterBox);case 1:return _u(Dt.topRightBorderBox,Dt.topRightBorderDoubleOuterBox,Dt.bottomRightBorderBox,Dt.bottomRightBorderDoubleOuterBox);case 2:return _u(Dt.bottomRightBorderBox,Dt.bottomRightBorderDoubleOuterBox,Dt.bottomLeftBorderBox,Dt.bottomLeftBorderDoubleOuterBox);case 3:default:return _u(Dt.bottomLeftBorderBox,Dt.bottomLeftBorderDoubleOuterBox,Dt.topLeftBorderBox,Dt.topLeftBorderDoubleOuterBox)}},Kf=function(Dt,Tt){switch(Tt){case 0:return _u(Dt.topLeftBorderDoubleInnerBox,Dt.topLeftPaddingBox,Dt.topRightBorderDoubleInnerBox,Dt.topRightPaddingBox);case 1:return _u(Dt.topRightBorderDoubleInnerBox,Dt.topRightPaddingBox,Dt.bottomRightBorderDoubleInnerBox,Dt.bottomRightPaddingBox);case 2:return _u(Dt.bottomRightBorderDoubleInnerBox,Dt.bottomRightPaddingBox,Dt.bottomLeftBorderDoubleInnerBox,Dt.bottomLeftPaddingBox);case 3:default:return _u(Dt.bottomLeftBorderDoubleInnerBox,Dt.bottomLeftPaddingBox,Dt.topLeftBorderDoubleInnerBox,Dt.topLeftPaddingBox)}},WA=function(Dt,Tt){switch(Tt){case 0:return Nd(Dt.topLeftBorderStroke,Dt.topRightBorderStroke);case 1:return Nd(Dt.topRightBorderStroke,Dt.bottomRightBorderStroke);case 2:return Nd(Dt.bottomRightBorderStroke,Dt.bottomLeftBorderStroke);case 3:default:return Nd(Dt.bottomLeftBorderStroke,Dt.topLeftBorderStroke)}},Nd=function(Dt,Tt){var _t=[];return Il(Dt)?_t.push(Dt.subdivide(.5,!1)):_t.push(Dt),Il(Tt)?_t.push(Tt.subdivide(.5,!0)):_t.push(Tt),_t},_u=function(Dt,Tt,_t,Rt){var Be=[];return Il(Dt)?Be.push(Dt.subdivide(.5,!1)):Be.push(Dt),Il(_t)?Be.push(_t.subdivide(.5,!0)):Be.push(_t),Il(Rt)?Be.push(Rt.subdivide(.5,!0).reverse()):Be.push(Rt),Il(Tt)?Be.push(Tt.subdivide(.5,!1).reverse()):Be.push(Tt),Be},eh=function(Dt){var Tt=Dt.bounds,_t=Dt.styles;return Tt.add(_t.borderLeftWidth,_t.borderTopWidth,-(_t.borderRightWidth+_t.borderLeftWidth),-(_t.borderTopWidth+_t.borderBottomWidth))},Gf=function(Dt){var Tt=Dt.styles,_t=Dt.bounds,Rt=ol(Tt.paddingLeft,_t.width),Be=ol(Tt.paddingRight,_t.width),Ye=ol(Tt.paddingTop,_t.width),Fn=ol(Tt.paddingBottom,_t.width);return _t.add(Rt+Tt.borderLeftWidth,Ye+Tt.borderTopWidth,-(Tt.borderRightWidth+Tt.borderLeftWidth+Rt+Be),-(Tt.borderTopWidth+Tt.borderBottomWidth+Ye+Fn))},Sp=function(Dt,Tt){return Dt===0?Tt.bounds:Dt===2?Gf(Tt):eh(Tt)},zg=function(Dt,Tt){return Dt===0?Tt.bounds:Dt===2?Gf(Tt):eh(Tt)},VA=function(Dt,Tt,_t){var Rt=Sp(bc(Dt.styles.backgroundOrigin,Tt),Dt),Be=zg(bc(Dt.styles.backgroundClip,Tt),Dt),Ye=Cp(bc(Dt.styles.backgroundSize,Tt),_t,Rt),Fn=Ye[0],ni=Ye[1],Dn=ec(bc(Dt.styles.backgroundPosition,Tt),Rt.width-Fn,Rt.height-ni),Ui=Ec(bc(Dt.styles.backgroundRepeat,Tt),Dn,Ye,Rt,Be),zi=Math.round(Rt.left+Dn[0]),lr=Math.round(Rt.top+Dn[1]);return[Ui,zi,lr,Fn,ni]},ZA=function(Dt){return ja(Dt)&&Dt.value===Ht.AUTO},Wf=function(Dt){return typeof Dt=="number"},Cp=function(Dt,Tt,_t){var Rt=Tt[0],Be=Tt[1],Ye=Tt[2],Fn=Dt[0],ni=Dt[1];if(!Fn)return[0,0];if(Qo(Fn)&&ni&&Qo(ni))return[ol(Fn,_t.width),ol(ni,_t.height)];var Dn=Wf(Ye);if(ja(Fn)&&(Fn.value===Ht.CONTAIN||Fn.value===Ht.COVER)){if(Wf(Ye)){var Ui=_t.width/_t.height;return Ui<Ye!=(Fn.value===Ht.COVER)?[_t.width,_t.width/Ye]:[_t.height*Ye,_t.height]}return[_t.width,_t.height]}var zi=Wf(Rt),lr=Wf(Be),St=zi||lr;if(ZA(Fn)&&(!ni||ZA(ni))){if(zi&&lr)return[Rt,Be];if(!Dn&&!St)return[_t.width,_t.height];if(St&&Dn){var Qt=zi?Rt:Be*Ye,de=lr?Be:Rt/Ye;return[Qt,de]}var Ee=zi?Rt:_t.width,sn=lr?Be:_t.height;return[Ee,sn]}if(Dn){var hn=0,cn=0;return Qo(Fn)?hn=ol(Fn,_t.width):Qo(ni)&&(cn=ol(ni,_t.height)),ZA(Fn)?hn=cn*Ye:(!ni||ZA(ni))&&(cn=hn/Ye),[hn,cn]}var xn=null,Nn=null;if(Qo(Fn)?xn=ol(Fn,_t.width):ni&&Qo(ni)&&(Nn=ol(ni,_t.height)),xn!==null&&(!ni||ZA(ni))&&(Nn=zi&&lr?xn/Rt*Be:_t.height),Nn!==null&&ZA(Fn)&&(xn=zi&&lr?Nn/Be*Rt:_t.width),xn!==null&&Nn!==null)return[xn,Nn];throw new Error("Unable to calculate background-size for element")},bc=function(Dt,Tt){var _t=Dt[Tt];return typeof _t=="undefined"?Dt[0]:_t},Ec=function(Dt,Tt,_t,Rt,Be){var Ye=Tt[0],Fn=Tt[1],ni=_t[0],Dn=_t[1];switch(Dt){case 2:return[new Bo(Math.round(Rt.left),Math.round(Rt.top+Fn)),new Bo(Math.round(Rt.left+Rt.width),Math.round(Rt.top+Fn)),new Bo(Math.round(Rt.left+Rt.width),Math.round(Dn+Rt.top+Fn)),new Bo(Math.round(Rt.left),Math.round(Dn+Rt.top+Fn))];case 3:return[new Bo(Math.round(Rt.left+Ye),Math.round(Rt.top)),new Bo(Math.round(Rt.left+Ye+ni),Math.round(Rt.top)),new Bo(Math.round(Rt.left+Ye+ni),Math.round(Rt.height+Rt.top)),new Bo(Math.round(Rt.left+Ye),Math.round(Rt.height+Rt.top))];case 1:return[new Bo(Math.round(Rt.left+Ye),Math.round(Rt.top+Fn)),new Bo(Math.round(Rt.left+Ye+ni),Math.round(Rt.top+Fn)),new Bo(Math.round(Rt.left+Ye+ni),Math.round(Rt.top+Fn+Dn)),new Bo(Math.round(Rt.left+Ye),Math.round(Rt.top+Fn+Dn))];default:return[new Bo(Math.round(Be.left),Math.round(Be.top)),new Bo(Math.round(Be.left+Be.width),Math.round(Be.top)),new Bo(Math.round(Be.left+Be.width),Math.round(Be.height+Be.top)),new Bo(Math.round(Be.left),Math.round(Be.height+Be.top))]}},Id="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ld="Hidden Text",kd=function(){function Dt(Tt){this._data={},this._document=Tt}return Dt.prototype.parseMetrics=function(Tt,_t){var Rt=this._document.createElement("div"),Be=this._document.createElement("img"),Ye=this._document.createElement("span"),Fn=this._document.body;Rt.style.visibility="hidden",Rt.style.fontFamily=Tt,Rt.style.fontSize=_t,Rt.style.margin="0",Rt.style.padding="0",Rt.style.whiteSpace="nowrap",Fn.appendChild(Rt),Be.src=Id,Be.width=1,Be.height=1,Be.style.margin="0",Be.style.padding="0",Be.style.verticalAlign="baseline",Ye.style.fontFamily=Tt,Ye.style.fontSize=_t,Ye.style.margin="0",Ye.style.padding="0",Ye.appendChild(this._document.createTextNode(ld)),Rt.appendChild(Ye),Rt.appendChild(Be);var ni=Be.offsetTop-Ye.offsetTop+2;Rt.removeChild(Ye),Rt.appendChild(this._document.createTextNode(ld)),Rt.style.lineHeight="normal",Be.style.verticalAlign="super";var Dn=Be.offsetTop-Rt.offsetTop+2;return Fn.removeChild(Rt),{baseline:ni,middle:Dn}},Dt.prototype.getMetrics=function(Tt,_t){var Rt=Tt+" "+_t;return typeof this._data[Rt]=="undefined"&&(this._data[Rt]=this.parseMetrics(Tt,_t)),this._data[Rt]},Dt}(),Td=function(){function Dt(Tt,_t){this.context=Tt,this.options=_t}return Dt}(),Tu=1e4,XA=function(Dt){Ft(Tt,Dt);function Tt(_t,Rt){var Be=Dt.call(this,_t,Rt)||this;return Be._activeEffects=[],Be.canvas=Rt.canvas?Rt.canvas:document.createElement("canvas"),Be.ctx=Be.canvas.getContext("2d"),Rt.canvas||(Be.canvas.width=Math.floor(Rt.width*Rt.scale),Be.canvas.height=Math.floor(Rt.height*Rt.scale),Be.canvas.style.width=Rt.width+"px",Be.canvas.style.height=Rt.height+"px"),Be.fontMetrics=new kd(document),Be.ctx.scale(Be.options.scale,Be.options.scale),Be.ctx.translate(-Rt.x,-Rt.y),Be.ctx.textBaseline="bottom",Be._activeEffects=[],Be.context.logger.debug("Canvas renderer initialized ("+Rt.width+"x"+Rt.height+") with scale "+Rt.scale),Be}return Tt.prototype.applyEffects=function(_t){for(var Rt=this;this._activeEffects.length;)this.popEffect();_t.forEach(function(Be){return Rt.applyEffect(Be)})},Tt.prototype.applyEffect=function(_t){this.ctx.save(),Wc(_t)&&(this.ctx.globalAlpha=_t.opacity),kl(_t)&&(this.ctx.translate(_t.offsetX,_t.offsetY),this.ctx.transform(_t.matrix[0],_t.matrix[1],_t.matrix[2],_t.matrix[3],_t.matrix[4],_t.matrix[5]),this.ctx.translate(-_t.offsetX,-_t.offsetY)),th(_t)&&(this.path(_t.path),this.ctx.clip()),this._activeEffects.push(_t)},Tt.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},Tt.prototype.renderStack=function(_t){return ce(this,void 0,void 0,function(){var Rt;return re(this,function(Be){switch(Be.label){case 0:return Rt=_t.element.container.styles,Rt.isVisible()?[4,this.renderStackContent(_t)]:[3,2];case 1:Be.sent(),Be.label=2;case 2:return[2]}})})},Tt.prototype.renderNode=function(_t){return ce(this,void 0,void 0,function(){return re(this,function(Rt){switch(Rt.label){case 0:if(zo(_t.container.flags,16))debugger;return _t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(_t)]:[3,3];case 1:return Rt.sent(),[4,this.renderNodeContent(_t)];case 2:Rt.sent(),Rt.label=3;case 3:return[2]}})})},Tt.prototype.renderTextWithLetterSpacing=function(_t,Rt,Be){var Ye=this;if(Rt===0)this.ctx.fillText(_t.text,_t.bounds.left,_t.bounds.top+Be);else{var Fn=$a(_t.text);Fn.reduce(function(ni,Dn){return Ye.ctx.fillText(Dn,ni,_t.bounds.top+Be),ni+Ye.ctx.measureText(Dn).width},_t.bounds.left)}},Tt.prototype.createFontStyle=function(_t){var Rt=_t.fontVariant.filter(function(Fn){return Fn==="normal"||Fn==="small-caps"}).join(""),Be=Gg(_t.fontFamily).join(", "),Ye=Ya(_t.fontSize)?""+_t.fontSize.number+_t.fontSize.unit:_t.fontSize.number+"px";return[[_t.fontStyle,Rt,_t.fontWeight,Ye,Be].join(" "),Be,Ye]},Tt.prototype.renderTextNode=function(_t,Rt){return ce(this,void 0,void 0,function(){var Be,Ye,Fn,ni,Dn,Ui,zi,lr,St=this;return re(this,function(Qt){return Be=this.createFontStyle(Rt),Ye=Be[0],Fn=Be[1],ni=Be[2],this.ctx.font=Ye,this.ctx.direction=Rt.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",Dn=this.fontMetrics.getMetrics(Fn,ni),Ui=Dn.baseline,zi=Dn.middle,lr=Rt.paintOrder,_t.textBounds.forEach(function(de){lr.forEach(function(Ee){switch(Ee){case 0:St.ctx.fillStyle=Aa(Rt.color),St.renderTextWithLetterSpacing(de,Rt.letterSpacing,Ui);var sn=Rt.textShadow;sn.length&&de.text.trim().length&&(sn.slice(0).reverse().forEach(function(hn){St.ctx.shadowColor=Aa(hn.color),St.ctx.shadowOffsetX=hn.offsetX.number*St.options.scale,St.ctx.shadowOffsetY=hn.offsetY.number*St.options.scale,St.ctx.shadowBlur=hn.blur.number,St.renderTextWithLetterSpacing(de,Rt.letterSpacing,Ui)}),St.ctx.shadowColor="",St.ctx.shadowOffsetX=0,St.ctx.shadowOffsetY=0,St.ctx.shadowBlur=0),Rt.textDecorationLine.length&&(St.ctx.fillStyle=Aa(Rt.textDecorationColor||Rt.color),Rt.textDecorationLine.forEach(function(hn){switch(hn){case 1:St.ctx.fillRect(de.bounds.left,Math.round(de.bounds.top+Ui),de.bounds.width,1);break;case 2:St.ctx.fillRect(de.bounds.left,Math.round(de.bounds.top),de.bounds.width,1);break;case 3:St.ctx.fillRect(de.bounds.left,Math.ceil(de.bounds.top+zi),de.bounds.width,1);break}}));break;case 1:Rt.webkitTextStrokeWidth&&de.text.trim().length&&(St.ctx.strokeStyle=Aa(Rt.webkitTextStrokeColor),St.ctx.lineWidth=Rt.webkitTextStrokeWidth,St.ctx.lineJoin=window.chrome?"miter":"round",St.ctx.strokeText(de.text,de.bounds.left,de.bounds.top+Ui)),St.ctx.strokeStyle="",St.ctx.lineWidth=0,St.ctx.lineJoin="miter";break}})}),[2]})})},Tt.prototype.renderReplacedElement=function(_t,Rt,Be){if(Be&&_t.intrinsicWidth>0&&_t.intrinsicHeight>0){var Ye=Gf(_t),Fn=ad(Rt);this.path(Fn),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(Be,0,0,_t.intrinsicWidth,_t.intrinsicHeight,Ye.left,Ye.top,Ye.width,Ye.height),this.ctx.restore()}},Tt.prototype.renderNodeContent=function(_t){return ce(this,void 0,void 0,function(){var Rt,Be,Ye,Fn,ni,Dn,cn,cn,Ui,zi,lr,St,Nn,Qt,de,zn,Ee,sn,hn,cn,xn,Nn,zn;return re(this,function(fi){switch(fi.label){case 0:this.applyEffects(_t.getEffects(4)),Rt=_t.container,Be=_t.curves,Ye=Rt.styles,Fn=0,ni=Rt.textNodes,fi.label=1;case 1:return Fn<ni.length?(Dn=ni[Fn],[4,this.renderTextNode(Dn,Ye)]):[3,4];case 2:fi.sent(),fi.label=3;case 3:return Fn++,[3,1];case 4:if(!(Rt instanceof PA))return[3,8];fi.label=5;case 5:return fi.trys.push([5,7,,8]),[4,this.context.cache.match(Rt.src)];case 6:return cn=fi.sent(),this.renderReplacedElement(Rt,Be,cn),[3,8];case 7:return fi.sent(),this.context.logger.error("Error loading image "+Rt.src),[3,8];case 8:if(Rt instanceof Hc&&this.renderReplacedElement(Rt,Be,Rt.canvas),!(Rt instanceof oc))return[3,12];fi.label=9;case 9:return fi.trys.push([9,11,,12]),[4,this.context.cache.match(Rt.svg)];case 10:return cn=fi.sent(),this.renderReplacedElement(Rt,Be,cn),[3,12];case 11:return fi.sent(),this.context.logger.error("Error loading svg "+Rt.svg.substring(0,255)),[3,12];case 12:return Rt instanceof cA&&Rt.tree?(Ui=new Tt(this.context,{scale:this.options.scale,backgroundColor:Rt.backgroundColor,x:0,y:0,width:Rt.width,height:Rt.height}),[4,Ui.render(Rt.tree)]):[3,14];case 13:zi=fi.sent(),Rt.width&&Rt.height&&this.ctx.drawImage(zi,0,0,Rt.width,Rt.height,Rt.bounds.left,Rt.bounds.top,Rt.bounds.width,Rt.bounds.height),fi.label=14;case 14:if(Rt instanceof Th&&(lr=Math.min(Rt.bounds.width,Rt.bounds.height),Rt.type===bd?Rt.checked&&(this.ctx.save(),this.path([new Bo(Rt.bounds.left+lr*.39363,Rt.bounds.top+lr*.79),new Bo(Rt.bounds.left+lr*.16,Rt.bounds.top+lr*.5549),new Bo(Rt.bounds.left+lr*.27347,Rt.bounds.top+lr*.44071),new Bo(Rt.bounds.left+lr*.39694,Rt.bounds.top+lr*.5649),new Bo(Rt.bounds.left+lr*.72983,Rt.bounds.top+lr*.23),new Bo(Rt.bounds.left+lr*.84,Rt.bounds.top+lr*.34085),new Bo(Rt.bounds.left+lr*.39363,Rt.bounds.top+lr*.79)]),this.ctx.fillStyle=Aa(hA),this.ctx.fill(),this.ctx.restore()):Rt.type===zc&&Rt.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(Rt.bounds.left+lr/2,Rt.bounds.top+lr/2,lr/4,0,Math.PI*2,!0),this.ctx.fillStyle=Aa(hA),this.ctx.fill(),this.ctx.restore())),lm(Rt)&&Rt.value.length){switch(St=this.createFontStyle(Ye),Nn=St[0],Qt=St[1],de=this.fontMetrics.getMetrics(Nn,Qt).baseline,this.ctx.font=Nn,this.ctx.fillStyle=Aa(Ye.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Us(Rt.styles.textAlign),zn=Gf(Rt),Ee=0,Rt.styles.textAlign){case 1:Ee+=zn.width/2;break;case 2:Ee+=zn.width;break}sn=zn.add(Ee,0,0,-zn.height/2+1),this.ctx.save(),this.path([new Bo(zn.left,zn.top),new Bo(zn.left+zn.width,zn.top),new Bo(zn.left+zn.width,zn.top+zn.height),new Bo(zn.left,zn.top+zn.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new vu(Rt.value,sn),Ye.letterSpacing,de),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!zo(Rt.styles.display,2048))return[3,20];if(Rt.styles.listStyleImage===null)return[3,19];if(hn=Rt.styles.listStyleImage,hn.type!==0)return[3,18];cn=void 0,xn=hn.url,fi.label=15;case 15:return fi.trys.push([15,17,,18]),[4,this.context.cache.match(xn)];case 16:return cn=fi.sent(),this.ctx.drawImage(cn,Rt.bounds.left-(cn.width+10),Rt.bounds.top),[3,18];case 17:return fi.sent(),this.context.logger.error("Error loading list-style-image "+xn),[3,18];case 18:return[3,20];case 19:_t.listValue&&Rt.styles.listStyleType!==-1&&(Nn=this.createFontStyle(Ye)[0],this.ctx.font=Nn,this.ctx.fillStyle=Aa(Ye.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",zn=new ee(Rt.bounds.left,Rt.bounds.top+ol(Rt.styles.paddingTop,Rt.bounds.width),Rt.bounds.width,kn(Ye.lineHeight,Ye.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new vu(_t.listValue,zn),Ye.letterSpacing,kn(Ye.lineHeight,Ye.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),fi.label=20;case 20:return[2]}})})},Tt.prototype.renderStackContent=function(_t){return ce(this,void 0,void 0,function(){var Rt,Be,hn,Ye,Fn,hn,ni,Dn,hn,Ui,zi,hn,lr,St,hn,Qt,de,hn,Ee,sn,hn;return re(this,function(cn){switch(cn.label){case 0:if(zo(_t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(_t.element)];case 1:cn.sent(),Rt=0,Be=_t.negativeZIndex,cn.label=2;case 2:return Rt<Be.length?(hn=Be[Rt],[4,this.renderStack(hn)]):[3,5];case 3:cn.sent(),cn.label=4;case 4:return Rt++,[3,2];case 5:return[4,this.renderNodeContent(_t.element)];case 6:cn.sent(),Ye=0,Fn=_t.nonInlineLevel,cn.label=7;case 7:return Ye<Fn.length?(hn=Fn[Ye],[4,this.renderNode(hn)]):[3,10];case 8:cn.sent(),cn.label=9;case 9:return Ye++,[3,7];case 10:ni=0,Dn=_t.nonPositionedFloats,cn.label=11;case 11:return ni<Dn.length?(hn=Dn[ni],[4,this.renderStack(hn)]):[3,14];case 12:cn.sent(),cn.label=13;case 13:return ni++,[3,11];case 14:Ui=0,zi=_t.nonPositionedInlineLevel,cn.label=15;case 15:return Ui<zi.length?(hn=zi[Ui],[4,this.renderStack(hn)]):[3,18];case 16:cn.sent(),cn.label=17;case 17:return Ui++,[3,15];case 18:lr=0,St=_t.inlineLevel,cn.label=19;case 19:return lr<St.length?(hn=St[lr],[4,this.renderNode(hn)]):[3,22];case 20:cn.sent(),cn.label=21;case 21:return lr++,[3,19];case 22:Qt=0,de=_t.zeroOrAutoZIndexOrTransformedOrOpacity,cn.label=23;case 23:return Qt<de.length?(hn=de[Qt],[4,this.renderStack(hn)]):[3,26];case 24:cn.sent(),cn.label=25;case 25:return Qt++,[3,23];case 26:Ee=0,sn=_t.positiveZIndex,cn.label=27;case 27:return Ee<sn.length?(hn=sn[Ee],[4,this.renderStack(hn)]):[3,30];case 28:cn.sent(),cn.label=29;case 29:return Ee++,[3,27];case 30:return[2]}})})},Tt.prototype.mask=function(_t){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(_t.slice(0).reverse()),this.ctx.closePath()},Tt.prototype.path=function(_t){this.ctx.beginPath(),this.formatPath(_t),this.ctx.closePath()},Tt.prototype.formatPath=function(_t){var Rt=this;_t.forEach(function(Be,Ye){var Fn=Il(Be)?Be.start:Be;Ye===0?Rt.ctx.moveTo(Fn.x,Fn.y):Rt.ctx.lineTo(Fn.x,Fn.y),Il(Be)&&Rt.ctx.bezierCurveTo(Be.startControl.x,Be.startControl.y,Be.endControl.x,Be.endControl.y,Be.end.x,Be.end.y)})},Tt.prototype.renderRepeat=function(_t,Rt,Be,Ye){this.path(_t),this.ctx.fillStyle=Rt,this.ctx.translate(Be,Ye),this.ctx.fill(),this.ctx.translate(-Be,-Ye)},Tt.prototype.resizeImage=function(_t,Rt,Be){var Ye;if(_t.width===Rt&&_t.height===Be)return _t;var Fn=(Ye=this.canvas.ownerDocument)!==null&&Ye!==void 0?Ye:document,ni=Fn.createElement("canvas");ni.width=Math.max(1,Rt),ni.height=Math.max(1,Be);var Dn=ni.getContext("2d");return Dn.drawImage(_t,0,0,_t.width,_t.height,0,0,Rt,Be),ni},Tt.prototype.renderBackgroundImage=function(_t){return ce(this,void 0,void 0,function(){var Rt,Be,Ye,Fn,ni,Dn;return re(this,function(Ui){switch(Ui.label){case 0:Rt=_t.styles.backgroundImage.length-1,Be=function(zi){var lr,St,Qt,Kr,Yr,as,ji,zr,Yi,de,Kr,Yr,as,ji,zr,Ee,sn,hn,cn,xn,Nn,zn,fi,$i,Yi,Ni,Kr,Nr,Hi,ji,zr,lo,Yr,as,ts,ci,os,Pl,bl,il,Ga,Ha;return re(this,function(Al){switch(Al.label){case 0:if(zi.type!==0)return[3,5];lr=void 0,St=zi.url,Al.label=1;case 1:return Al.trys.push([1,3,,4]),[4,Ye.context.cache.match(St)];case 2:return lr=Al.sent(),[3,4];case 3:return Al.sent(),Ye.context.logger.error("Error loading background-image "+St),[3,4];case 4:return lr&&(Qt=VA(_t,Rt,[lr.width,lr.height,lr.width/lr.height]),Kr=Qt[0],Yr=Qt[1],as=Qt[2],ji=Qt[3],zr=Qt[4],Yi=Ye.ctx.createPattern(Ye.resizeImage(lr,ji,zr),"repeat"),Ye.renderRepeat(Kr,Yi,Yr,as)),[3,6];case 5:wd(zi)?(de=VA(_t,Rt,[null,null,null]),Kr=de[0],Yr=de[1],as=de[2],ji=de[3],zr=de[4],Ee=nc(zi.angle,ji,zr),sn=Ee[0],hn=Ee[1],cn=Ee[2],xn=Ee[3],Nn=Ee[4],zn=document.createElement("canvas"),zn.width=ji,zn.height=zr,fi=zn.getContext("2d"),$i=fi.createLinearGradient(hn,xn,cn,Nn),Wi(zi.stops,sn).forEach(function(Ma){return $i.addColorStop(Ma.stop,Aa(Ma.color))}),fi.fillStyle=$i,fi.fillRect(0,0,ji,zr),ji>0&&zr>0&&(Yi=Ye.ctx.createPattern(zn,"repeat"),Ye.renderRepeat(Kr,Yi,Yr,as))):Ea(zi)&&(Ni=VA(_t,Rt,[null,null,null]),Kr=Ni[0],Nr=Ni[1],Hi=Ni[2],ji=Ni[3],zr=Ni[4],lo=zi.position.length===0?[yd]:zi.position,Yr=ol(lo[0],ji),as=ol(lo[lo.length-1],zr),ts=Ch(zi,Yr,as,ji,zr),ci=ts[0],os=ts[1],ci>0&&os>0&&(Pl=Ye.ctx.createRadialGradient(Nr+Yr,Hi+as,0,Nr+Yr,Hi+as,ci),Wi(zi.stops,ci*2).forEach(function(Ma){return Pl.addColorStop(Ma.stop,Aa(Ma.color))}),Ye.path(Kr),Ye.ctx.fillStyle=Pl,ci!==os?(bl=_t.bounds.left+.5*_t.bounds.width,il=_t.bounds.top+.5*_t.bounds.height,Ga=os/ci,Ha=1/Ga,Ye.ctx.save(),Ye.ctx.translate(bl,il),Ye.ctx.transform(1,0,0,Ga,0,0),Ye.ctx.translate(-bl,-il),Ye.ctx.fillRect(Nr,Ha*(Hi-il)+il,ji,zr*Ha),Ye.ctx.restore()):Ye.ctx.fill())),Al.label=6;case 6:return Rt--,[2]}})},Ye=this,Fn=0,ni=_t.styles.backgroundImage.slice(0).reverse(),Ui.label=1;case 1:return Fn<ni.length?(Dn=ni[Fn],[5,Be(Dn)]):[3,4];case 2:Ui.sent(),Ui.label=3;case 3:return Fn++,[3,1];case 4:return[2]}})})},Tt.prototype.renderSolidBorder=function(_t,Rt,Be){return ce(this,void 0,void 0,function(){return re(this,function(Ye){return this.path(GA(Be,Rt)),this.ctx.fillStyle=Aa(_t),this.ctx.fill(),[2]})})},Tt.prototype.renderDoubleBorder=function(_t,Rt,Be,Ye){return ce(this,void 0,void 0,function(){var Fn,ni;return re(this,function(Dn){switch(Dn.label){case 0:return Rt<3?[4,this.renderSolidBorder(_t,Be,Ye)]:[3,2];case 1:return Dn.sent(),[2];case 2:return Fn=NA(Ye,Be),this.path(Fn),this.ctx.fillStyle=Aa(_t),this.ctx.fill(),ni=Kf(Ye,Be),this.path(ni),this.ctx.fill(),[2]}})})},Tt.prototype.renderNodeBackgroundAndBorders=function(_t){return ce(this,void 0,void 0,function(){var Rt,Be,Ye,Fn,ni,Dn,Ui,zi,lr=this;return re(this,function(St){switch(St.label){case 0:return this.applyEffects(_t.getEffects(2)),Rt=_t.container.styles,Be=!za(Rt.backgroundColor)||Rt.backgroundImage.length,Ye=[{style:Rt.borderTopStyle,color:Rt.borderTopColor,width:Rt.borderTopWidth},{style:Rt.borderRightStyle,color:Rt.borderRightColor,width:Rt.borderRightWidth},{style:Rt.borderBottomStyle,color:Rt.borderBottomColor,width:Rt.borderBottomWidth},{style:Rt.borderLeftStyle,color:Rt.borderLeftColor,width:Rt.borderLeftWidth}],Fn=xf(bc(Rt.backgroundClip,0),_t.curves),Be||Rt.boxShadow.length?(this.ctx.save(),this.path(Fn),this.ctx.clip(),za(Rt.backgroundColor)||(this.ctx.fillStyle=Aa(Rt.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(_t.container)]):[3,2];case 1:St.sent(),this.ctx.restore(),Rt.boxShadow.slice(0).reverse().forEach(function(Qt){lr.ctx.save();var de=wu(_t.curves),Ee=Qt.inset?0:Tu,sn=zf(de,-Ee+(Qt.inset?1:-1)*Qt.spread.number,(Qt.inset?1:-1)*Qt.spread.number,Qt.spread.number*(Qt.inset?-2:2),Qt.spread.number*(Qt.inset?-2:2));Qt.inset?(lr.path(de),lr.ctx.clip(),lr.mask(sn)):(lr.mask(de),lr.ctx.clip(),lr.path(sn)),lr.ctx.shadowOffsetX=Qt.offsetX.number+Ee,lr.ctx.shadowOffsetY=Qt.offsetY.number,lr.ctx.shadowColor=Aa(Qt.color),lr.ctx.shadowBlur=Qt.blur.number,lr.ctx.fillStyle=Qt.inset?Aa(Qt.color):"rgba(0,0,0,1)",lr.ctx.fill(),lr.ctx.restore()}),St.label=2;case 2:ni=0,Dn=0,Ui=Ye,St.label=3;case 3:return Dn<Ui.length?(zi=Ui[Dn],zi.style!==0&&!za(zi.color)&&zi.width>0?zi.style!==2?[3,5]:[4,this.renderDashedDottedBorder(zi.color,zi.width,ni,_t.curves,2)]:[3,11]):[3,13];case 4:return St.sent(),[3,11];case 5:return zi.style!==3?[3,7]:[4,this.renderDashedDottedBorder(zi.color,zi.width,ni,_t.curves,3)];case 6:return St.sent(),[3,11];case 7:return zi.style!==4?[3,9]:[4,this.renderDoubleBorder(zi.color,zi.width,ni,_t.curves)];case 8:return St.sent(),[3,11];case 9:return[4,this.renderSolidBorder(zi.color,ni,_t.curves)];case 10:St.sent(),St.label=11;case 11:ni++,St.label=12;case 12:return Dn++,[3,3];case 13:return[2]}})})},Tt.prototype.renderDashedDottedBorder=function(_t,Rt,Be,Ye,Fn){return ce(this,void 0,void 0,function(){var ni,Dn,Ui,zi,lr,St,Qt,de,Ee,sn,hn,cn,xn,Nn,zn,fi,zn,fi;return re(this,function($i){return this.ctx.save(),ni=WA(Ye,Be),Dn=GA(Ye,Be),Fn===2&&(this.path(Dn),this.ctx.clip()),Il(Dn[0])?(Ui=Dn[0].start.x,zi=Dn[0].start.y):(Ui=Dn[0].x,zi=Dn[0].y),Il(Dn[1])?(lr=Dn[1].end.x,St=Dn[1].end.y):(lr=Dn[1].x,St=Dn[1].y),Be===0||Be===2?Qt=Math.abs(Ui-lr):Qt=Math.abs(zi-St),this.ctx.beginPath(),Fn===3?this.formatPath(ni):this.formatPath(Dn.slice(0,2)),de=Rt<3?Rt*3:Rt*2,Ee=Rt<3?Rt*2:Rt,Fn===3&&(de=Rt,Ee=Rt),sn=!0,Qt<=de*2?sn=!1:Qt<=de*2+Ee?(hn=Qt/(2*de+Ee),de*=hn,Ee*=hn):(cn=Math.floor((Qt+Ee)/(de+Ee)),xn=(Qt-cn*de)/(cn-1),Nn=(Qt-(cn+1)*de)/cn,Ee=Nn<=0||Math.abs(Ee-xn)<Math.abs(Ee-Nn)?xn:Nn),sn&&(Fn===3?this.ctx.setLineDash([0,de+Ee]):this.ctx.setLineDash([de,Ee])),Fn===3?(this.ctx.lineCap="round",this.ctx.lineWidth=Rt):this.ctx.lineWidth=Rt*2+1.1,this.ctx.strokeStyle=Aa(_t),this.ctx.stroke(),this.ctx.setLineDash([]),Fn===2&&(Il(Dn[0])&&(zn=Dn[3],fi=Dn[0],this.ctx.beginPath(),this.formatPath([new Bo(zn.end.x,zn.end.y),new Bo(fi.start.x,fi.start.y)]),this.ctx.stroke()),Il(Dn[1])&&(zn=Dn[1],fi=Dn[2],this.ctx.beginPath(),this.formatPath([new Bo(zn.end.x,zn.end.y),new Bo(fi.start.x,fi.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},Tt.prototype.render=function(_t){return ce(this,void 0,void 0,function(){var Rt;return re(this,function(Be){switch(Be.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)),Rt=wf(_t),[4,this.renderStack(Rt)];case 1:return Be.sent(),this.applyEffects([]),[2,this.canvas]}})})},Tt}(Td),lm=function(Dt){return Dt instanceof EA||Dt instanceof bA?!0:Dt instanceof Th&&Dt.type!==zc&&Dt.type!==bd},xf=function(Dt,Tt){switch(Dt){case 0:return wu(Tt);case 2:return hu(Tt);case 1:default:return ad(Tt)}},Us=function(Dt){switch(Dt){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Kg=["-apple-system","system-ui"],Gg=function(Dt){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?Dt.filter(function(Tt){return Kg.indexOf(Tt)===-1}):Dt},Wg=function(Dt){Ft(Tt,Dt);function Tt(_t,Rt){var Be=Dt.call(this,_t,Rt)||this;return Be.canvas=Rt.canvas?Rt.canvas:document.createElement("canvas"),Be.ctx=Be.canvas.getContext("2d"),Be.options=Rt,Be.canvas.width=Math.floor(Rt.width*Rt.scale),Be.canvas.height=Math.floor(Rt.height*Rt.scale),Be.canvas.style.width=Rt.width+"px",Be.canvas.style.height=Rt.height+"px",Be.ctx.scale(Be.options.scale,Be.options.scale),Be.ctx.translate(-Rt.x,-Rt.y),Be.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+Rt.width+"x"+Rt.height+" at "+Rt.x+","+Rt.y+") with scale "+Rt.scale),Be}return Tt.prototype.render=function(_t){return ce(this,void 0,void 0,function(){var Rt,Be;return re(this,function(Ye){switch(Ye.label){case 0:return Rt=Bd(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,_t),[4,IA(Rt)];case 1:return Be=Ye.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(Be,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},Tt}(Td),IA=function(Dt){return new Promise(function(Tt,_t){var Rt=new Image;Rt.onload=function(){Tt(Rt)},Rt.onerror=_t,Rt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Dt))})},kA=function(){function Dt(Tt){var _t=Tt.id,Rt=Tt.enabled;this.id=_t,this.enabled=Rt,this.start=Date.now()}return Dt.prototype.debug=function(){for(var Tt=[],_t=0;_t<arguments.length;_t++)Tt[_t]=arguments[_t];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Ie([this.id,this.getTime()+"ms"],Tt)):this.info.apply(this,Tt))},Dt.prototype.getTime=function(){return Date.now()-this.start},Dt.prototype.info=function(){for(var Tt=[],_t=0;_t<arguments.length;_t++)Tt[_t]=arguments[_t];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Ie([this.id,this.getTime()+"ms"],Tt))},Dt.prototype.warn=function(){for(var Tt=[],_t=0;_t<arguments.length;_t++)Tt[_t]=arguments[_t];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Ie([this.id,this.getTime()+"ms"],Tt)):this.info.apply(this,Tt))},Dt.prototype.error=function(){for(var Tt=[],_t=0;_t<arguments.length;_t++)Tt[_t]=arguments[_t];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Ie([this.id,this.getTime()+"ms"],Tt)):this.info.apply(this,Tt))},Dt.instances={},Dt}(),Fc=function(){function Dt(Tt,_t){var Rt;this.windowBounds=_t,this.instanceName="#"+Dt.instanceCount++,this.logger=new kA({id:this.instanceName,enabled:Tt.logging}),this.cache=(Rt=Tt.cache)!==null&&Rt!==void 0?Rt:new ea(this,Tt)}return Dt.instanceCount=1,Dt}(),Vf=function(Dt,Tt){return Tt===void 0&&(Tt={}),Cg(Dt,Tt)};typeof window!="undefined"&&No.setContext(window);var Cg=function(Dt,Tt){return ce(void 0,void 0,void 0,function(){var _t,Rt,Be,Ye,Fn,ni,Dn,Ui,zi,lr,St,Qt,de,Ee,sn,hn,cn,xn,Nn,zn,$i,fi,$i,Yi,Ni,Kr,Nr,Hi,ji,zr,lo,Yr,as,ts,ci,os,Pl,bl,il,Ga;return re(this,function(Ha){switch(Ha.label){case 0:if(!Dt||typeof Dt!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(_t=Dt.ownerDocument,!_t)throw new Error("Element is not attached to a Document");if(Rt=_t.defaultView,!Rt)throw new Error("Document is not attached to a Window");return Be={allowTaint:(Yi=Tt.allowTaint)!==null&&Yi!==void 0?Yi:!1,imageTimeout:(Ni=Tt.imageTimeout)!==null&&Ni!==void 0?Ni:15e3,proxy:Tt.proxy,useCORS:(Kr=Tt.useCORS)!==null&&Kr!==void 0?Kr:!1},Ye=Mt({logging:(Nr=Tt.logging)!==null&&Nr!==void 0?Nr:!0,cache:Tt.cache},Be),Fn={windowWidth:(Hi=Tt.windowWidth)!==null&&Hi!==void 0?Hi:Rt.innerWidth,windowHeight:(ji=Tt.windowHeight)!==null&&ji!==void 0?ji:Rt.innerHeight,scrollX:(zr=Tt.scrollX)!==null&&zr!==void 0?zr:Rt.pageXOffset,scrollY:(lo=Tt.scrollY)!==null&&lo!==void 0?lo:Rt.pageYOffset},ni=new ee(Fn.scrollX,Fn.scrollY,Fn.windowWidth,Fn.windowHeight),Dn=new Fc(Ye,ni),Ui=(Yr=Tt.foreignObjectRendering)!==null&&Yr!==void 0?Yr:!1,zi={allowTaint:(as=Tt.allowTaint)!==null&&as!==void 0?as:!1,onclone:Tt.onclone,ignoreElements:Tt.ignoreElements,inlineImages:Ui,copyStyles:Ui},Dn.logger.debug("Starting document clone with size "+ni.width+"x"+ni.height+" scrolled to "+-ni.left+","+-ni.top),lr=new Bt(Dn,Dt,zi),St=lr.clonedReferenceElement,St?[4,lr.toIFrame(_t,ni)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return Qt=Ha.sent(),de=ps(St)||Pa(St)?Nt(St.ownerDocument):Vt(Dn,St),Ee=de.width,sn=de.height,hn=de.left,cn=de.top,xn=Vg(Dn,St,Tt.backgroundColor),Nn={canvas:Tt.canvas,backgroundColor:xn,scale:(ci=(ts=Tt.scale)!==null&&ts!==void 0?ts:Rt.devicePixelRatio)!==null&&ci!==void 0?ci:1,x:((os=Tt.x)!==null&&os!==void 0?os:0)+hn,y:((Pl=Tt.y)!==null&&Pl!==void 0?Pl:0)+cn,width:(bl=Tt.width)!==null&&bl!==void 0?bl:Math.ceil(Ee),height:(il=Tt.height)!==null&&il!==void 0?il:Math.ceil(sn)},Ui?(Dn.logger.debug("Document cloned, using foreign object rendering"),$i=new Wg(Dn,Nn),[4,$i.render(St)]):[3,3];case 2:return zn=Ha.sent(),[3,5];case 3:return Dn.logger.debug("Document cloned, element located at "+hn+","+cn+" with size "+Ee+"x"+sn+" using computed rendering"),Dn.logger.debug("Starting DOM parsing"),fi=FA(Dn,St),xn===fi.styles.backgroundColor&&(fi.styles.backgroundColor=Sh.TRANSPARENT),Dn.logger.debug("Starting renderer for element at "+Nn.x+","+Nn.y+" with size "+Nn.width+"x"+Nn.height),$i=new XA(Dn,Nn),[4,$i.render(fi)];case 4:zn=Ha.sent(),Ha.label=5;case 5:return(!((Ga=Tt.removeContainer)!==null&&Ga!==void 0)||Ga)&&(Bt.destroy(Qt)||Dn.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),Dn.logger.debug("Finished rendering"),[2,zn]}})})},Vg=function(Dt,Tt,_t){var Rt=Tt.ownerDocument,Be=Rt.documentElement?td(Dt,getComputedStyle(Rt.documentElement).backgroundColor):Sh.TRANSPARENT,Ye=Rt.body?td(Dt,getComputedStyle(Rt.body).backgroundColor):Sh.TRANSPARENT,Fn=typeof _t=="string"?td(Dt,_t):_t===null?Sh.TRANSPARENT:4294967295;return Tt===Rt.documentElement?za(Be)?za(Ye)?Fn:Ye:Be:Fn};return Vf})},44164:function(hi,Cn,Ft){var Mt=Ft(97671);(function(re,Ie){hi.exports=Ie(Ft(73207),Ft(64270))})(self,function(ce,re){return function(){var Ie={"./src/plugin/hyperlinks.js":function(jt,te,Pt){"use strict";Pt.r(te);var oe=Pt("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Kt=Pt.n(oe),$t=Pt("./node_modules/core-js/modules/es.string.link.js"),Ct=Pt.n($t),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 xt=this.prop.container,It=xt.querySelectorAll("a"),Ut=(0,tt.unitConvert)(xt.getBoundingClientRect(),this.prop.pageSize.k);lt=[],Array.prototype.forEach.call(It,function(Gt){for(var se=Gt.getClientRects(),ue=0;ue<se.length;ue++){var Ae=(0,tt.unitConvert)(se[ue],this.prop.pageSize.k);Ae.left-=Ut.left,Ae.top-=Ut.top;var Pe=Math.floor(Ae.top/this.prop.pageSize.inner.height)+1,qt=this.opt.margin[0]+Ae.top%this.prop.pageSize.inner.height,ze=this.opt.margin[1]+Ae.left;lt.push({page:Pe,top:qt,left:ze,clientRect:Ae,link:Gt})}},this)}})},et.default.prototype.toPdf=function(){return rt.toPdf.call(this).then(function(){if(this.opt.enableLinks){lt.forEach(function(It){this.prop.pdf.setPage(It.page),this.prop.pdf.link(It.left,It.top,It.clientRect.width,It.clientRect.height,{url:It.link.href})},this);var xt=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(xt)}})}},"./src/plugin/jspdf-plugin.js":function(jt,te,Pt){"use strict";Pt.r(te);var oe=Pt("./node_modules/core-js/modules/es.symbol.js"),Kt=Pt.n(oe),$t=Pt("./node_modules/core-js/modules/es.symbol.description.js"),Ct=Pt.n($t),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),ht=Pt("./node_modules/core-js/modules/es.array.iterator.js"),dt=Pt.n(ht),xt=Pt("./node_modules/core-js/modules/es.string.iterator.js"),It=Pt.n(xt),Ut=Pt("./node_modules/core-js/modules/web.dom-collections.iterator.js"),Gt=Pt.n(Ut),se=Pt("jspdf"),ue=Pt.n(se);function Ae(Pe){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ae=function(ze){return typeof ze}:Ae=function(ze){return ze&&typeof Symbol=="function"&&ze.constructor===Symbol&&ze!==Symbol.prototype?"symbol":typeof ze},Ae(Pe)}se.jsPDF.getPageSize=function(Pe,qt,ze){if(Ae(Pe)==="object"){var Wt=Pe;Pe=Wt.orientation,qt=Wt.unit||qt,ze=Wt.format||ze}qt=qt||"mm",ze=ze||"a4",Pe=(""+(Pe||"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 Me=1;break;case"mm":var Me=72/25.4;break;case"cm":var Me=72/2.54;break;case"in":var Me=72;break;case"px":var Me=72/96;break;case"pc":var Me=12;break;case"em":var Me=12;break;case"ex":var Me=6;break;default:throw"Invalid unit: "+qt}if(_e.hasOwnProperty(Ge))var We=_e[Ge][1]/Me,Re=_e[Ge][0]/Me;else try{var We=ze[1],Re=ze[0]}catch(Ce){throw new Error("Invalid format: "+ze)}if(Pe==="p"||Pe==="portrait"){if(Pe="p",Re>We){var ye=Re;Re=We,We=ye}}else if(Pe==="l"||Pe==="landscape"){if(Pe="l",We>Re){var ye=Re;Re=We,We=ye}}else throw"Invalid orientation: "+Pe;var ne={width:Re,height:We,unit:qt,k:Me};return ne},te.default=se.jsPDF},"./src/plugin/pagebreaks.js":function(jt,te,Pt){"use strict";Pt.r(te);var oe=Pt("./node_modules/core-js/modules/es.array.concat.js"),Kt=Pt.n(oe),$t=Pt("./node_modules/core-js/modules/es.array.slice.js"),Ct=Pt.n($t),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),ht=Pt("./node_modules/core-js/modules/es.object.keys.js"),dt=Pt.n(ht),xt=Pt("./src/worker.js"),It=Pt("./src/utils.js"),Ut={toContainer:xt.default.prototype.toContainer};xt.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},xt.default.prototype.toContainer=function(){return Ut.toContainer.call(this).then(function(){var ue=this.prop.container,Ae=this.prop.pageSize.inner.px.height,Pe=[].concat(this.opt.pagebreak.mode),qt={avoidAll:Pe.indexOf("avoid-all")!==-1,css:Pe.indexOf("css")!==-1,legacy:Pe.indexOf("legacy")!==-1},ze={},Wt=this;["before","after","avoid"].forEach(function(Me){var We=qt.avoidAll&&Me==="avoid";ze[Me]=We?[]:[].concat(Wt.opt.pagebreak[Me]||[]),ze[Me].length>0&&(ze[Me]=Array.prototype.slice.call(ue.querySelectorAll(ze[Me].join(", "))))});var Ge=ue.querySelectorAll(".html2pdf__page-break");Ge=Array.prototype.slice.call(Ge);var _e=ue.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 ye=window.getComputedStyle(We),ne=["always","page","left","right"],Ce=["avoid","avoid-page"];Re={before:Re.before||ne.indexOf(ye.breakBefore||ye.pageBreakBefore)!==-1,after:Re.after||ne.indexOf(ye.breakAfter||ye.pageBreakAfter)!==-1,avoid:Re.avoid||Ce.indexOf(ye.breakInside||ye.pageBreakInside)!==-1}}Object.keys(Re).forEach(function(gi){Re[gi]=Re[gi]||ze[gi].indexOf(We)!==-1});var bn=We.getBoundingClientRect();if(Re.avoid&&!Re.before){var Ln=Math.floor(bn.top/Ae),Ze=Math.floor(bn.bottom/Ae),Mn=Math.abs(bn.bottom-bn.top)/Ae;Ze!==Ln&&Mn<=1&&(Re.before=!0)}if(Re.before){var Vn=(0,It.createElement)("div",{style:{display:"block",height:Ae-bn.top%Ae+"px"}});We.parentNode.insertBefore(Vn,We)}if(Re.after){var Vn=(0,It.createElement)("div",{style:{display:"block",height:Ae-bn.bottom%Ae+"px"}});We.parentNode.insertBefore(Vn,We.nextSibling)}})})}},"./src/utils.js":function(jt,te,Pt){"use strict";Pt.r(te),Pt.d(te,{objType:function(){return Pe},createElement:function(){return qt},cloneNode:function(){return ze},unitConvert:function(){return Wt},toPx:function(){return Ge}});var oe=Pt("./node_modules/core-js/modules/es.number.constructor.js"),Kt=Pt.n(oe),$t=Pt("./node_modules/core-js/modules/es.symbol.js"),Ct=Pt.n($t),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),ht=Pt("./node_modules/core-js/modules/es.symbol.iterator.js"),dt=Pt.n(ht),xt=Pt("./node_modules/core-js/modules/es.array.iterator.js"),It=Pt.n(xt),Ut=Pt("./node_modules/core-js/modules/es.string.iterator.js"),Gt=Pt.n(Ut),se=Pt("./node_modules/core-js/modules/web.dom-collections.iterator.js"),ue=Pt.n(se);function Ae(_e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ae=function(We){return typeof We}:Ae=function(We){return We&&typeof Symbol=="function"&&We.constructor===Symbol&&We!==Symbol.prototype?"symbol":typeof We},Ae(_e)}var Pe=function(Me){var We=Ae(Me);return We==="undefined"?"undefined":We==="string"||Me instanceof String?"string":We==="number"||Me instanceof Number?"number":We==="function"||Me instanceof Function?"function":Me&&Me.constructor===Array?"array":Me&&Me.nodeType===1?"element":We==="object"?"object":"unknown"},qt=function(Me,We){var Re=document.createElement(Me);if(We.className&&(Re.className=We.className),We.innerHTML){Re.innerHTML=We.innerHTML;for(var ye=Re.getElementsByTagName("script"),ne=ye.length;ne-- >0;null)ye[ne].parentNode.removeChild(ye[ne])}for(var Ce in We.style)Re.style[Ce]=We.style[Ce];return Re},ze=function _e(Me,We){for(var Re=Me.nodeType===3?document.createTextNode(Me.nodeValue):Me.cloneNode(!1),ye=Me.firstChild;ye;ye=ye.nextSibling)(We===!0||ye.nodeType!==1||ye.nodeName!=="SCRIPT")&&Re.appendChild(_e(ye,We));return Me.nodeType===1&&(Me.nodeName==="CANVAS"?(Re.width=Me.width,Re.height=Me.height,Re.getContext("2d").drawImage(Me,0,0)):(Me.nodeName==="TEXTAREA"||Me.nodeName==="SELECT")&&(Re.value=Me.value),Re.addEventListener("load",function(){Re.scrollTop=Me.scrollTop,Re.scrollLeft=Me.scrollLeft},!0)),Re},Wt=function(Me,We){if(Pe(Me)==="number")return Me*72/96/We;var Re={};for(var ye in Me)Re[ye]=Me[ye]*72/96/We;return Re},Ge=function(Me,We){return Math.floor(Me*We/72*96)}},"./src/worker.js":function(jt,te,Pt){"use strict";Pt.r(te);var oe=Pt("./node_modules/core-js/modules/es.object.assign.js"),Kt=Pt.n(oe),$t=Pt("./node_modules/core-js/modules/es.array.map.js"),Ct=Pt.n($t),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),ht=Pt("./node_modules/core-js/modules/es.object.to-string.js"),dt=Pt.n(ht),xt=Pt("./node_modules/core-js/modules/es.regexp.to-string.js"),It=Pt.n(xt),Ut=Pt("./node_modules/core-js/modules/es.function.name.js"),Gt=Pt.n(Ut),se=Pt("./node_modules/core-js/modules/web.dom-collections.for-each.js"),ue=Pt.n(se),Ae=Pt("jspdf"),Pe=Pt.n(Ae),qt=Pt("html2canvas"),ze=Pt.n(qt),Wt=Pt("./src/utils.js"),Ge=Pt("./node_modules/es6-promise/dist/es6-promise.js"),_e=Pt.n(Ge),Me=_e().Promise,We=function Re(ye){var ne=Object.assign(Re.convert(Me.resolve()),JSON.parse(JSON.stringify(Re.template))),Ce=Re.convert(Me.resolve(),ne);return Ce=Ce.setProgress(1,Re,1,[Re]),Ce=Ce.set(ye),Ce};We.prototype=Object.create(Me.prototype),We.prototype.constructor=We,We.convert=function(ye,ne){return ye.__proto__=ne||We.prototype,ye},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(ye,ne){function Ce(bn){switch((0,Wt.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(ne=ne||Ce(ye),ne){case"string":return this.set({src:(0,Wt.createElement)("div",{innerHTML:ye})});case"element":return this.set({src:ye});case"canvas":return this.set({canvas:ye});case"img":return this.set({img:ye});default:return this.error("Unknown source type.")}})},We.prototype.to=function(ye){switch(ye){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 ye=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(ye).then(function(){var Ce={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"};Ce.opacity=0;var Ln=(0,Wt.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,Wt.createElement)("div",{className:"html2pdf__overlay",style:Ce}),this.prop.container=(0,Wt.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 ye=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ye).then(function(){var Ce=Object.assign({},this.opt.html2canvas);return delete Ce.onrendered,qt(this.prop.container,Ce)}).then(function(Ce){var bn=this.opt.html2canvas.onrendered||function(){};bn(Ce),this.prop.canvas=Ce,document.body.removeChild(this.prop.overlay)})},We.prototype.toImg=function(){var ye=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(ye).then(function(){var Ce=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Ce})},We.prototype.toPdf=function(){var ye=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(ye).then(function(){var Ce=this.prop.canvas,bn=this.opt,Ln=Ce.height,Ze=Math.floor(Ce.width*this.prop.pageSize.inner.ratio),Mn=Math.ceil(Ln/Ze),Vn=this.prop.pageSize.inner.height,gi=document.createElement("canvas"),Kn=gi.getContext("2d");gi.width=Ce.width,gi.height=Ze,this.prop.pdf=this.prop.pdf||new Ae.jsPDF(bn.jsPDF);for(var Bi=0;Bi<Mn;Bi++){Bi===Mn-1&&Ln%Ze!==0&&(gi.height=Ln%Ze,Vn=gi.height*this.prop.pageSize.inner.width/gi.width);var en=gi.width,Li=gi.height;Kn.fillStyle="white",Kn.fillRect(0,0,en,Li),Kn.drawImage(Ce,0,Bi*Ze,en,Li,0,0,en,Li),Bi&&this.prop.pdf.addPage();var Oi=gi.toDataURL("image/"+bn.image.type,bn.image.quality);this.prop.pdf.addImage(Oi,bn.image.type,bn.margin[1],bn.margin[0],this.prop.pageSize.inner.width,Vn)}})},We.prototype.output=function(ye,ne,Ce){return Ce=Ce||"pdf",Ce.toLowerCase()==="img"||Ce.toLowerCase()==="image"?this.outputImg(ye,ne):this.outputPdf(ye,ne)},We.prototype.outputPdf=function(ye,ne){var Ce=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(Ce).then(function(){return this.prop.pdf.output(ye,ne)})},We.prototype.outputImg=function(ye,ne){var Ce=[function(){return this.prop.img||this.toImg()}];return this.thenList(Ce).then(function(){switch(ye){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 "'+ye+'" is not supported.'}})},We.prototype.save=function(ye){var ne=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(ne).set(ye?{filename:ye}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},We.prototype.set=function(ye){if((0,Wt.objType)(ye)!=="object")return this;var ne=Object.keys(ye||{}).map(function(Ce){switch(Ce){case"margin":return this.setMargin.bind(this,ye.margin);case"jsPDF":return function(){return this.opt.jsPDF=ye.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,ye.pageSize);default:return Ce in We.template.prop?function(){this.prop[Ce]=ye[Ce]}:function(){this.opt[Ce]=ye[Ce]}}},this);return this.then(function(){return this.thenList(ne)})},We.prototype.get=function(ye,ne){return this.then(function(){var bn=ye in We.template.prop?this.prop[ye]:this.opt[ye];return ne?ne(bn):bn})},We.prototype.setMargin=function(ye){return this.then(function(){switch((0,Wt.objType)(ye)){case"number":ye=[ye,ye,ye,ye];case"array":if(ye.length===2&&(ye=[ye[0],ye[1],ye[0],ye[1]]),ye.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=ye}).then(this.setPageSize)},We.prototype.setPageSize=function(ye){return this.then(function(){ye=ye||Ae.jsPDF.getPageSize(this.opt.jsPDF),ye.hasOwnProperty("inner")||(ye.inner={width:ye.width-this.opt.margin[1]-this.opt.margin[3],height:ye.height-this.opt.margin[0]-this.opt.margin[2]},ye.inner.px={width:(0,Wt.toPx)(ye.inner.width,ye.k),height:(0,Wt.toPx)(ye.inner.height,ye.k)},ye.inner.ratio=ye.inner.height/ye.inner.width),this.prop.pageSize=ye})},We.prototype.setProgress=function(ye,ne,Ce,bn){return ye!=null&&(this.progress.val=ye),ne!=null&&(this.progress.state=ne),Ce!=null&&(this.progress.n=Ce),bn!=null&&(this.progress.stack=bn),this.progress.ratio=this.progress.val/this.progress.state,this},We.prototype.updateProgress=function(ye,ne,Ce,bn){return this.setProgress(ye?this.progress.val+ye:null,ne||null,Ce?this.progress.n+Ce:null,bn?this.progress.stack.concat(bn):null)},We.prototype.then=function(ye,ne){var Ce=this;return this.thenCore(ye,ne,function(Ln,Ze){return Ce.updateProgress(null,null,1,[Ln]),Me.prototype.then.call(this,function(Vn){return Ce.updateProgress(null,Ln),Vn}).then(Ln,Ze).then(function(Vn){return Ce.updateProgress(1),Vn})})},We.prototype.thenCore=function(ye,ne,Ce){Ce=Ce||Me.prototype.then;var bn=this;ye&&(ye=ye.bind(bn)),ne&&(ne=ne.bind(bn));var Ln=Me.toString().indexOf("[native code]")!==-1&&Me.name==="Promise",Ze=Ln?bn:We.convert(Object.assign({},bn),Me.prototype),Mn=Ce.call(Ze,ye,ne);return We.convert(Mn,bn.__proto__)},We.prototype.thenExternal=function(ye,ne){return Me.prototype.then.call(this,ye,ne)},We.prototype.thenList=function(ye){var ne=this;return ye.forEach(function(bn){ne=ne.thenCore(bn)}),ne},We.prototype.catch=function(Re){Re&&(Re=Re.bind(this));var ye=Me.prototype.catch.call(this,Re);return We.convert(ye,this)},We.prototype.catchExternal=function(ye){return Me.prototype.catch.call(this,ye)},We.prototype.error=function(ye){return this.then(function(){throw new Error(ye)})},We.prototype.using=We.prototype.set,We.prototype.saveAs=We.prototype.save,We.prototype.export=We.prototype.output,We.prototype.run=We.prototype.then,te.default=We},"./node_modules/core-js/internals/a-function.js":function(jt){jt.exports=function(te){if(typeof te!="function")throw TypeError(String(te)+" is not a function");return te}},"./node_modules/core-js/internals/a-possible-prototype.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/is-object.js");jt.exports=function(Kt){if(!oe(Kt)&&Kt!==null)throw TypeError("Can't set "+String(Kt)+" as a prototype");return Kt}},"./node_modules/core-js/internals/add-to-unscopables.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/well-known-symbol.js"),Kt=Pt("./node_modules/core-js/internals/object-create.js"),$t=Pt("./node_modules/core-js/internals/object-define-property.js"),Ct=oe("unscopables"),et=Array.prototype;et[Ct]==null&&$t.f(et,Ct,{configurable:!0,value:Kt(null)}),jt.exports=function(tt){et[Ct][tt]=!0}},"./node_modules/core-js/internals/an-object.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/is-object.js");jt.exports=function(Kt){if(!oe(Kt))throw TypeError(String(Kt)+" is not an object");return Kt}},"./node_modules/core-js/internals/array-for-each.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/array-iteration.js").forEach,Kt=Pt("./node_modules/core-js/internals/array-method-is-strict.js"),$t=Kt("forEach");jt.exports=$t?[].forEach:function(et){return oe(this,et,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/to-indexed-object.js"),Kt=Pt("./node_modules/core-js/internals/to-length.js"),$t=Pt("./node_modules/core-js/internals/to-absolute-index.js"),Ct=function(et){return function(tt,lt,rt){var ht=oe(tt),dt=Kt(ht.length),xt=$t(rt,dt),It;if(et&<!=lt){for(;dt>xt;)if(It=ht[xt++],It!=It)return!0}else for(;dt>xt;xt++)if((et||xt in ht)&&ht[xt]===lt)return et||xt||0;return!et&&-1}};jt.exports={includes:Ct(!0),indexOf:Ct(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/function-bind-context.js"),Kt=Pt("./node_modules/core-js/internals/indexed-object.js"),$t=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 ht=rt==1,dt=rt==2,xt=rt==3,It=rt==4,Ut=rt==6,Gt=rt==7,se=rt==5||Ut;return function(ue,Ae,Pe,qt){for(var ze=$t(ue),Wt=Kt(ze),Ge=oe(Ae,Pe,3),_e=Ct(Wt.length),Me=0,We=qt||et,Re=ht?We(ue,_e):dt||Gt?We(ue,0):void 0,ye,ne;_e>Me;Me++)if((se||Me in Wt)&&(ye=Wt[Me],ne=Ge(ye,Me,ze),rt))if(ht)Re[Me]=ne;else if(ne)switch(rt){case 3:return!0;case 5:return ye;case 6:return Me;case 2:tt.call(Re,ye)}else switch(rt){case 4:return!1;case 7:tt.call(Re,ye)}return Ut?-1:xt||It?It: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,te,Pt){var oe=Pt("./node_modules/core-js/internals/fails.js"),Kt=Pt("./node_modules/core-js/internals/well-known-symbol.js"),$t=Pt("./node_modules/core-js/internals/engine-v8-version.js"),Ct=Kt("species");jt.exports=function(et){return $t>=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,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/fails.js");jt.exports=function(Kt,$t){var Ct=[][Kt];return!!Ct&&oe(function(){Ct.call(null,$t||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/is-object.js"),Kt=Pt("./node_modules/core-js/internals/is-array.js"),$t=Pt("./node_modules/core-js/internals/well-known-symbol.js"),Ct=$t("species");jt.exports=function(et){var tt;return Kt(et)&&(tt=et.constructor,typeof tt=="function"&&(tt===Array||Kt(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,te,Pt){var oe=Pt("./node_modules/core-js/internals/array-species-constructor.js");jt.exports=function(Kt,$t){return new(oe(Kt))($t===0?0:$t)}},"./node_modules/core-js/internals/classof-raw.js":function(jt){var te={}.toString;jt.exports=function(Pt){return te.call(Pt).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/to-string-tag-support.js"),Kt=Pt("./node_modules/core-js/internals/classof-raw.js"),$t=Pt("./node_modules/core-js/internals/well-known-symbol.js"),Ct=$t("toStringTag"),et=Kt(function(){return arguments}())=="Arguments",tt=function(lt,rt){try{return lt[rt]}catch(ht){}};jt.exports=oe?Kt:function(lt){var rt,ht,dt;return lt===void 0?"Undefined":lt===null?"Null":typeof(ht=tt(rt=Object(lt),Ct))=="string"?ht:et?Kt(rt):(dt=Kt(rt))=="Object"&&typeof rt.callee=="function"?"Arguments":dt}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/has.js"),Kt=Pt("./node_modules/core-js/internals/own-keys.js"),$t=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=Kt(tt),rt=Ct.f,ht=$t.f,dt=0;dt<lt.length;dt++){var xt=lt[dt];oe(et,xt)||rt(et,xt,ht(tt,xt))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/fails.js");jt.exports=!oe(function(){function Kt(){}return Kt.prototype.constructor=null,Object.getPrototypeOf(new Kt)!==Kt.prototype})},"./node_modules/core-js/internals/create-html.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/require-object-coercible.js"),Kt=Pt("./node_modules/core-js/internals/to-string.js"),$t=/"/g;jt.exports=function(Ct,et,tt,lt){var rt=Kt(oe(Ct)),ht="<"+et;return tt!==""&&(ht+=" "+tt+'="'+Kt(lt).replace($t,""")+'"'),ht+">"+rt+"</"+et+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,Kt=Pt("./node_modules/core-js/internals/object-create.js"),$t=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,ht){var dt=rt+" Iterator";return lt.prototype=Kt(oe,{next:$t(1,ht)}),Ct(lt,dt,!1,!0),et[dt]=tt,lt}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/descriptors.js"),Kt=Pt("./node_modules/core-js/internals/object-define-property.js"),$t=Pt("./node_modules/core-js/internals/create-property-descriptor.js");jt.exports=oe?function(Ct,et,tt){return Kt.f(Ct,et,$t(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(te,Pt){return{enumerable:!(te&1),configurable:!(te&2),writable:!(te&4),value:Pt}}},"./node_modules/core-js/internals/create-property.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/to-property-key.js"),Kt=Pt("./node_modules/core-js/internals/object-define-property.js"),$t=Pt("./node_modules/core-js/internals/create-property-descriptor.js");jt.exports=function(Ct,et,tt){var lt=oe(et);lt in Ct?Kt.f(Ct,lt,$t(0,tt)):Ct[lt]=tt}},"./node_modules/core-js/internals/define-iterator.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/create-iterator-constructor.js"),$t=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"),ht=Pt("./node_modules/core-js/internals/is-pure.js"),dt=Pt("./node_modules/core-js/internals/iterators.js"),xt=Pt("./node_modules/core-js/internals/iterators-core.js"),It=xt.IteratorPrototype,Ut=xt.BUGGY_SAFARI_ITERATORS,Gt=rt("iterator"),se="keys",ue="values",Ae="entries",Pe=function(){return this};jt.exports=function(qt,ze,Wt,Ge,_e,Me,We){Kt(Wt,ze,Ge);var Re=function(Kn){if(Kn===_e&&Ln)return Ln;if(!Ut&&Kn in Ce)return Ce[Kn];switch(Kn){case se:return function(){return new Wt(this,Kn)};case ue:return function(){return new Wt(this,Kn)};case Ae:return function(){return new Wt(this,Kn)}}return function(){return new Wt(this)}},ye=ze+" Iterator",ne=!1,Ce=qt.prototype,bn=Ce[Gt]||Ce["@@iterator"]||_e&&Ce[_e],Ln=!Ut&&bn||Re(_e),Ze=ze=="Array"&&Ce.entries||bn,Mn,Vn,gi;if(Ze&&(Mn=$t(Ze.call(new qt)),It!==Object.prototype&&Mn.next&&(!ht&&$t(Mn)!==It&&(Ct?Ct(Mn,It):typeof Mn[Gt]!="function"&&tt(Mn,Gt,Pe)),et(Mn,ye,!0,!0),ht&&(dt[ye]=Pe))),_e==ue&&bn&&bn.name!==ue&&(ne=!0,Ln=function(){return bn.call(this)}),(!ht||We)&&Ce[Gt]!==Ln&&tt(Ce,Gt,Ln),dt[ze]=Ln,_e)if(Vn={values:Re(ue),keys:Me?Ln:Re(se),entries:Re(Ae)},We)for(gi in Vn)(Ut||ne||!(gi in Ce))&<(Ce,gi,Vn[gi]);else oe({target:ze,proto:!0,forced:Ut||ne},Vn);return Vn}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/path.js"),Kt=Pt("./node_modules/core-js/internals/has.js"),$t=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={});Kt(tt,et)||Ct(tt,et,{value:$t.f(et)})}},"./node_modules/core-js/internals/descriptors.js":function(jt,te,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,te,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/is-object.js"),$t=oe.document,Ct=Kt($t)&&Kt($t.createElement);jt.exports=function(et){return Ct?$t.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,te,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,te,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/engine-user-agent.js"),$t=oe.process,Ct=oe.Deno,et=$t&&$t.versions||Ct&&Ct.version,tt=et&&et.v8,lt,rt;tt?(lt=tt.split("."),rt=lt[0]<4?1:lt[0]+lt[1]):Kt&&(lt=Kt.match(/Edge\/(\d+)/),(!lt||lt[1]>=74)&&(lt=Kt.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,te,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,$t=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,ht){var dt=rt.target,xt=rt.global,It=rt.stat,Ut,Gt,se,ue,Ae,Pe;if(xt?Gt=oe:It?Gt=oe[dt]||et(dt,{}):Gt=(oe[dt]||{}).prototype,Gt)for(se in ht){if(Ae=ht[se],rt.noTargetGet?(Pe=Kt(Gt,se),ue=Pe&&Pe.value):ue=Gt[se],Ut=lt(xt?se:dt+(It?".":"#")+se,rt.forced),!Ut&&ue!==void 0){if(typeof Ae==typeof ue)continue;tt(Ae,ue)}(rt.sham||ue&&ue.sham)&&$t(Ae,"sham",!0),Ct(Gt,se,Ae,rt)}}},"./node_modules/core-js/internals/fails.js":function(jt){jt.exports=function(te){try{return!!te()}catch(Pt){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/a-function.js");jt.exports=function(Kt,$t,Ct){if(oe(Kt),$t===void 0)return Kt;switch(Ct){case 0:return function(){return Kt.call($t)};case 1:return function(et){return Kt.call($t,et)};case 2:return function(et,tt){return Kt.call($t,et,tt)};case 3:return function(et,tt,lt){return Kt.call($t,et,tt,lt)}}return function(){return Kt.apply($t,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),Kt=function($t){return typeof $t=="function"?$t:void 0};jt.exports=function($t,Ct){return arguments.length<2?Kt(oe[$t]):oe[$t]&&oe[$t][Ct]}},"./node_modules/core-js/internals/global.js":function(jt){var te=function(Pt){return Pt&&Pt.Math==Math&&Pt};jt.exports=te(typeof globalThis=="object"&&globalThis)||te(typeof window=="object"&&window)||te(typeof self=="object"&&self)||te(typeof Ft.g=="object"&&Ft.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/to-object.js"),Kt={}.hasOwnProperty;jt.exports=Object.hasOwn||function(Ct,et){return Kt.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,te,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,te,Pt){var oe=Pt("./node_modules/core-js/internals/descriptors.js"),Kt=Pt("./node_modules/core-js/internals/fails.js"),$t=Pt("./node_modules/core-js/internals/document-create-element.js");jt.exports=!oe&&!Kt(function(){return Object.defineProperty($t("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/fails.js"),Kt=Pt("./node_modules/core-js/internals/classof-raw.js"),$t="".split;jt.exports=oe(function(){return!Object("z").propertyIsEnumerable(0)})?function(Ct){return Kt(Ct)=="String"?$t.call(Ct,""):Object(Ct)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/is-object.js"),Kt=Pt("./node_modules/core-js/internals/object-set-prototype-of.js");jt.exports=function($t,Ct,et){var tt,lt;return Kt&&typeof(tt=Ct.constructor)=="function"&&tt!==et&&oe(lt=tt.prototype)&<!==et.prototype&&Kt($t,lt),$t}},"./node_modules/core-js/internals/inspect-source.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/shared-store.js"),Kt=Function.toString;typeof oe.inspectSource!="function"&&(oe.inspectSource=function($t){return Kt.call($t)}),jt.exports=oe.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/native-weak-map.js"),Kt=Pt("./node_modules/core-js/internals/global.js"),$t=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"),ht="Object already initialized",dt=Kt.WeakMap,xt,It,Ut,Gt=function(Wt){return Ut(Wt)?It(Wt):xt(Wt,{})},se=function(Wt){return function(Ge){var _e;if(!$t(Ge)||(_e=It(Ge)).type!==Wt)throw TypeError("Incompatible receiver, "+Wt+" required");return _e}};if(oe||tt.state){var ue=tt.state||(tt.state=new dt),Ae=ue.get,Pe=ue.has,qt=ue.set;xt=function(Wt,Ge){if(Pe.call(ue,Wt))throw new TypeError(ht);return Ge.facade=Wt,qt.call(ue,Wt,Ge),Ge},It=function(Wt){return Ae.call(ue,Wt)||{}},Ut=function(Wt){return Pe.call(ue,Wt)}}else{var ze=lt("state");rt[ze]=!0,xt=function(Wt,Ge){if(et(Wt,ze))throw new TypeError(ht);return Ge.facade=Wt,Ct(Wt,ze,Ge),Ge},It=function(Wt){return et(Wt,ze)?Wt[ze]:{}},Ut=function(Wt){return et(Wt,ze)}}jt.exports={set:xt,get:It,has:Ut,enforce:Gt,getterFor:se}},"./node_modules/core-js/internals/is-array.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/classof-raw.js");jt.exports=Array.isArray||function($t){return oe($t)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/fails.js"),Kt=/#|\.prototype\./,$t=function(rt,ht){var dt=et[Ct(rt)];return dt==lt?!0:dt==tt?!1:typeof ht=="function"?oe(ht):!!ht},Ct=$t.normalize=function(rt){return String(rt).replace(Kt,".").toLowerCase()},et=$t.data={},tt=$t.NATIVE="N",lt=$t.POLYFILL="P";jt.exports=$t},"./node_modules/core-js/internals/is-object.js":function(jt){jt.exports=function(te){return typeof te=="object"?te!==null:typeof te=="function"}},"./node_modules/core-js/internals/is-pure.js":function(jt){jt.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/get-built-in.js"),Kt=Pt("./node_modules/core-js/internals/use-symbol-as-uid.js");jt.exports=Kt?function($t){return typeof $t=="symbol"}:function($t){var Ct=oe("Symbol");return typeof Ct=="function"&&Object($t)instanceof Ct}},"./node_modules/core-js/internals/iterators-core.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/fails.js"),Kt=Pt("./node_modules/core-js/internals/object-get-prototype-of.js"),$t=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,ht=function(){return this},dt,xt,It;[].keys&&(It=[].keys(),"next"in It?(xt=Kt(Kt(It)),xt!==Object.prototype&&(dt=xt)):rt=!0);var Ut=dt==null||oe(function(){var Gt={};return dt[lt].call(Gt)!==Gt});Ut&&(dt={}),(!tt||Ut)&&!Ct(dt,lt)&&$t(dt,lt,ht),jt.exports={IteratorPrototype:dt,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,te,Pt){var oe=Pt("./node_modules/core-js/internals/engine-v8-version.js"),Kt=Pt("./node_modules/core-js/internals/fails.js");jt.exports=!!Object.getOwnPropertySymbols&&!Kt(function(){var $t=Symbol();return!String($t)||!(Object($t)instanceof Symbol)||!Symbol.sham&&oe&&oe<41})},"./node_modules/core-js/internals/native-weak-map.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/inspect-source.js"),$t=oe.WeakMap;jt.exports=typeof $t=="function"&&/native code/.test(Kt($t))},"./node_modules/core-js/internals/object-assign.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/descriptors.js"),Kt=Pt("./node_modules/core-js/internals/fails.js"),$t=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,ht=Object.defineProperty;jt.exports=!rt||Kt(function(){if(oe&&rt({b:1},rt(ht({},"a",{enumerable:!0,get:function(){ht(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var dt={},xt={},It=Symbol(),Ut="abcdefghijklmnopqrst";return dt[It]=7,Ut.split("").forEach(function(Gt){xt[Gt]=Gt}),rt({},dt)[It]!=7||$t(rt({},xt)).join("")!=Ut})?function(xt,It){for(var Ut=tt(xt),Gt=arguments.length,se=1,ue=Ct.f,Ae=et.f;Gt>se;)for(var Pe=lt(arguments[se++]),qt=ue?$t(Pe).concat(ue(Pe)):$t(Pe),ze=qt.length,Wt=0,Ge;ze>Wt;)Ge=qt[Wt++],(!oe||Ae.call(Pe,Ge))&&(Ut[Ge]=Pe[Ge]);return Ut}:rt},"./node_modules/core-js/internals/object-create.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/an-object.js"),Kt=Pt("./node_modules/core-js/internals/object-define-properties.js"),$t=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=">",ht="<",dt="prototype",xt="script",It=lt("IE_PROTO"),Ut=function(){},Gt=function(qt){return ht+xt+rt+qt+ht+"/"+xt+rt},se=function(qt){qt.write(Gt("")),qt.close();var ze=qt.parentWindow.Object;return qt=null,ze},ue=function(){var qt=tt("iframe"),ze="java"+xt+":",Wt;if(qt.style)return qt.style.display="none",et.appendChild(qt),qt.src=String(ze),Wt=qt.contentWindow.document,Wt.open(),Wt.write(Gt("document.F=Object")),Wt.close(),Wt.F},Ae,Pe=function(){try{Ae=new ActiveXObject("htmlfile")}catch(ze){}Pe=document.domain&&Ae?se(Ae):ue()||se(Ae);for(var qt=$t.length;qt--;)delete Pe[dt][$t[qt]];return Pe()};Ct[It]=!0,jt.exports=Object.create||function(ze,Wt){var Ge;return ze!==null?(Ut[dt]=oe(ze),Ge=new Ut,Ut[dt]=null,Ge[It]=ze):Ge=Pe(),Wt===void 0?Ge:Kt(Ge,Wt)}},"./node_modules/core-js/internals/object-define-properties.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/descriptors.js"),Kt=Pt("./node_modules/core-js/internals/object-define-property.js"),$t=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){$t(tt);for(var rt=Ct(lt),ht=rt.length,dt=0,xt;ht>dt;)Kt.f(tt,xt=rt[dt++],lt[xt]);return tt}},"./node_modules/core-js/internals/object-define-property.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/descriptors.js"),Kt=Pt("./node_modules/core-js/internals/ie8-dom-define.js"),$t=Pt("./node_modules/core-js/internals/an-object.js"),Ct=Pt("./node_modules/core-js/internals/to-property-key.js"),et=Object.defineProperty;te.f=oe?et:function(lt,rt,ht){if($t(lt),rt=Ct(rt),$t(ht),Kt)try{return et(lt,rt,ht)}catch(dt){}if("get"in ht||"set"in ht)throw TypeError("Accessors not supported");return"value"in ht&&(lt[rt]=ht.value),lt}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/descriptors.js"),Kt=Pt("./node_modules/core-js/internals/object-property-is-enumerable.js"),$t=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;te.f=oe?rt:function(dt,xt){if(dt=Ct(dt),xt=et(xt),lt)try{return rt(dt,xt)}catch(It){}if(tt(dt,xt))return $t(!Kt.f.call(dt,xt),dt[xt])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/to-indexed-object.js"),Kt=Pt("./node_modules/core-js/internals/object-get-own-property-names.js").f,$t={}.toString,Ct=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],et=function(tt){try{return Kt(tt)}catch(lt){return Ct.slice()}};jt.exports.f=function(lt){return Ct&&$t.call(lt)=="[object Window]"?et(lt):Kt(oe(lt))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/object-keys-internal.js"),Kt=Pt("./node_modules/core-js/internals/enum-bug-keys.js"),$t=Kt.concat("length","prototype");te.f=Object.getOwnPropertyNames||function(et){return oe(et,$t)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(jt,te){te.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/has.js"),Kt=Pt("./node_modules/core-js/internals/to-object.js"),$t=Pt("./node_modules/core-js/internals/shared-key.js"),Ct=Pt("./node_modules/core-js/internals/correct-prototype-getter.js"),et=$t("IE_PROTO"),tt=Object.prototype;jt.exports=Ct?Object.getPrototypeOf:function(lt){return lt=Kt(lt),oe(lt,et)?lt[et]:typeof lt.constructor=="function"&< instanceof lt.constructor?lt.constructor.prototype:lt instanceof Object?tt:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/has.js"),Kt=Pt("./node_modules/core-js/internals/to-indexed-object.js"),$t=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=Kt(et),rt=0,ht=[],dt;for(dt in lt)!oe(Ct,dt)&&oe(lt,dt)&&ht.push(dt);for(;tt.length>rt;)oe(lt,dt=tt[rt++])&&(~$t(ht,dt)||ht.push(dt));return ht}},"./node_modules/core-js/internals/object-keys.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/object-keys-internal.js"),Kt=Pt("./node_modules/core-js/internals/enum-bug-keys.js");jt.exports=Object.keys||function(Ct){return oe(Ct,Kt)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(jt,te){"use strict";var Pt={}.propertyIsEnumerable,oe=Object.getOwnPropertyDescriptor,Kt=oe&&!Pt.call({1:2},1);te.f=Kt?function(Ct){var et=oe(this,Ct);return!!et&&et.enumerable}:Pt},"./node_modules/core-js/internals/object-set-prototype-of.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/an-object.js"),Kt=Pt("./node_modules/core-js/internals/a-possible-prototype.js");jt.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var $t=!1,Ct={},et;try{et=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,et.call(Ct,[]),$t=Ct instanceof Array}catch(tt){}return function(lt,rt){return oe(lt),Kt(rt),$t?et.call(lt,rt):lt.__proto__=rt,lt}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/to-string-tag-support.js"),Kt=Pt("./node_modules/core-js/internals/classof.js");jt.exports=oe?{}.toString:function(){return"[object "+Kt(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/is-object.js");jt.exports=function(Kt,$t){var Ct,et;if($t==="string"&&typeof(Ct=Kt.toString)=="function"&&!oe(et=Ct.call(Kt))||typeof(Ct=Kt.valueOf)=="function"&&!oe(et=Ct.call(Kt))||$t!=="string"&&typeof(Ct=Kt.toString)=="function"&&!oe(et=Ct.call(Kt)))return et;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/get-built-in.js"),Kt=Pt("./node_modules/core-js/internals/object-get-own-property-names.js"),$t=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=Kt.f(Ct(tt)),rt=$t.f;return rt?lt.concat(rt(tt)):lt}},"./node_modules/core-js/internals/path.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/global.js");jt.exports=oe},"./node_modules/core-js/internals/redefine.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js"),$t=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,ht=String(String).split("String");(jt.exports=function(dt,xt,It,Ut){var Gt=Ut?!!Ut.unsafe:!1,se=Ut?!!Ut.enumerable:!1,ue=Ut?!!Ut.noTargetGet:!1,Ae;if(typeof It=="function"&&(typeof xt=="string"&&!$t(It,"name")&&Kt(It,"name",xt),Ae=rt(It),Ae.source||(Ae.source=ht.join(typeof xt=="string"?xt:""))),dt===oe){se?dt[xt]=It:Ct(xt,It);return}else Gt?!ue&&dt[xt]&&(se=!0):delete dt[xt];se?dt[xt]=It:Kt(dt,xt,It)})(Function.prototype,"toString",function(){return typeof this=="function"&<(this).source||et(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/an-object.js");jt.exports=function(){var Kt=oe(this),$t="";return Kt.global&&($t+="g"),Kt.ignoreCase&&($t+="i"),Kt.multiline&&($t+="m"),Kt.dotAll&&($t+="s"),Kt.unicode&&($t+="u"),Kt.sticky&&($t+="y"),$t}},"./node_modules/core-js/internals/require-object-coercible.js":function(jt){jt.exports=function(te){if(te==null)throw TypeError("Can't call method on "+te);return te}},"./node_modules/core-js/internals/set-global.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/global.js");jt.exports=function(Kt,$t){try{Object.defineProperty(oe,Kt,{value:$t,configurable:!0,writable:!0})}catch(Ct){oe[Kt]=$t}return $t}},"./node_modules/core-js/internals/set-to-string-tag.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/object-define-property.js").f,Kt=Pt("./node_modules/core-js/internals/has.js"),$t=Pt("./node_modules/core-js/internals/well-known-symbol.js"),Ct=$t("toStringTag");jt.exports=function(et,tt,lt){et&&!Kt(et=lt?et:et.prototype,Ct)&&oe(et,Ct,{configurable:!0,value:tt})}},"./node_modules/core-js/internals/shared-key.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/shared.js"),Kt=Pt("./node_modules/core-js/internals/uid.js"),$t=oe("keys");jt.exports=function(Ct){return $t[Ct]||($t[Ct]=Kt(Ct))}},"./node_modules/core-js/internals/shared-store.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/set-global.js"),$t="__core-js_shared__",Ct=oe[$t]||Kt($t,{});jt.exports=Ct},"./node_modules/core-js/internals/shared.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/is-pure.js"),Kt=Pt("./node_modules/core-js/internals/shared-store.js");(jt.exports=function($t,Ct){return Kt[$t]||(Kt[$t]=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,te,Pt){var oe=Pt("./node_modules/core-js/internals/fails.js");jt.exports=function(Kt){return oe(function(){var $t=""[Kt]('"');return $t!==$t.toLowerCase()||$t.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/to-integer.js"),Kt=Pt("./node_modules/core-js/internals/to-string.js"),$t=Pt("./node_modules/core-js/internals/require-object-coercible.js"),Ct=function(et){return function(tt,lt){var rt=Kt($t(tt)),ht=oe(lt),dt=rt.length,xt,It;return ht<0||ht>=dt?et?"":void 0:(xt=rt.charCodeAt(ht),xt<55296||xt>56319||ht+1===dt||(It=rt.charCodeAt(ht+1))<56320||It>57343?et?rt.charAt(ht):xt:et?rt.slice(ht,ht+2):(xt-55296<<10)+(It-56320)+65536)}};jt.exports={codeAt:Ct(!1),charAt:Ct(!0)}},"./node_modules/core-js/internals/string-trim.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/require-object-coercible.js"),Kt=Pt("./node_modules/core-js/internals/to-string.js"),$t=Pt("./node_modules/core-js/internals/whitespaces.js"),Ct="["+$t+"]",et=RegExp("^"+Ct+Ct+"*"),tt=RegExp(Ct+Ct+"*$"),lt=function(rt){return function(ht){var dt=Kt(oe(ht));return rt&1&&(dt=dt.replace(et,"")),rt&2&&(dt=dt.replace(tt,"")),dt}};jt.exports={start:lt(1),end:lt(2),trim:lt(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/to-integer.js"),Kt=Math.max,$t=Math.min;jt.exports=function(Ct,et){var tt=oe(Ct);return tt<0?Kt(tt+et,0):$t(tt,et)}},"./node_modules/core-js/internals/to-indexed-object.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/indexed-object.js"),Kt=Pt("./node_modules/core-js/internals/require-object-coercible.js");jt.exports=function($t){return oe(Kt($t))}},"./node_modules/core-js/internals/to-integer.js":function(jt){var te=Math.ceil,Pt=Math.floor;jt.exports=function(oe){return isNaN(oe=+oe)?0:(oe>0?Pt:te)(oe)}},"./node_modules/core-js/internals/to-length.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/to-integer.js"),Kt=Math.min;jt.exports=function($t){return $t>0?Kt(oe($t),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/require-object-coercible.js");jt.exports=function(Kt){return Object(oe(Kt))}},"./node_modules/core-js/internals/to-primitive.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/is-object.js"),Kt=Pt("./node_modules/core-js/internals/is-symbol.js"),$t=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)||Kt(tt))return tt;var rt=tt[et],ht;if(rt!==void 0){if(lt===void 0&&(lt="default"),ht=rt.call(tt,lt),!oe(ht)||Kt(ht))return ht;throw TypeError("Can't convert object to primitive value")}return lt===void 0&&(lt="number"),$t(tt,lt)}},"./node_modules/core-js/internals/to-property-key.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/to-primitive.js"),Kt=Pt("./node_modules/core-js/internals/is-symbol.js");jt.exports=function($t){var Ct=oe($t,"string");return Kt(Ct)?Ct:String(Ct)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/well-known-symbol.js"),Kt=oe("toStringTag"),$t={};$t[Kt]="z",jt.exports=String($t)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/is-symbol.js");jt.exports=function(Kt){if(oe(Kt))throw TypeError("Cannot convert a Symbol value to a string");return String(Kt)}},"./node_modules/core-js/internals/uid.js":function(jt){var te=0,Pt=Math.random();jt.exports=function(oe){return"Symbol("+String(oe===void 0?"":oe)+")_"+(++te+Pt).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(jt,te,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,te,Pt){var oe=Pt("./node_modules/core-js/internals/well-known-symbol.js");te.f=oe},"./node_modules/core-js/internals/well-known-symbol.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/shared.js"),$t=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=Kt("wks"),rt=oe.Symbol,ht=tt?rt:rt&&rt.withoutSetter||Ct;jt.exports=function(dt){return(!$t(lt,dt)||!(et||typeof lt[dt]=="string"))&&(et&&$t(rt,dt)?lt[dt]=rt[dt]:lt[dt]=ht("Symbol."+dt)),lt[dt]}},"./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,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/fails.js"),$t=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"),ht=Pt("./node_modules/core-js/internals/array-method-has-species-support.js"),dt=Pt("./node_modules/core-js/internals/well-known-symbol.js"),xt=Pt("./node_modules/core-js/internals/engine-v8-version.js"),It=dt("isConcatSpreadable"),Ut=9007199254740991,Gt="Maximum allowed index exceeded",se=xt>=51||!Kt(function(){var qt=[];return qt[It]=!1,qt.concat()[0]!==qt}),ue=ht("concat"),Ae=function(qt){if(!Ct(qt))return!1;var ze=qt[It];return ze!==void 0?!!ze:$t(qt)},Pe=!se||!ue;oe({target:"Array",proto:!0,forced:Pe},{concat:function(ze){var Wt=et(this),Ge=rt(Wt,0),_e=0,Me,We,Re,ye,ne;for(Me=-1,Re=arguments.length;Me<Re;Me++)if(ne=Me===-1?Wt:arguments[Me],Ae(ne)){if(ye=tt(ne.length),_e+ye>Ut)throw TypeError(Gt);for(We=0;We<ye;We++,_e++)We in ne&<(Ge,_e,ne[We])}else{if(_e>=Ut)throw TypeError(Gt);lt(Ge,_e++,ne)}return Ge.length=_e,Ge}})},"./node_modules/core-js/modules/es.array.iterator.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/to-indexed-object.js"),Kt=Pt("./node_modules/core-js/internals/add-to-unscopables.js"),$t=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(ht,dt){lt(this,{type:tt,target:oe(ht),index:0,kind:dt})},function(){var ht=rt(this),dt=ht.target,xt=ht.kind,It=ht.index++;return!dt||It>=dt.length?(ht.target=void 0,{value:void 0,done:!0}):xt=="keys"?{value:It,done:!1}:xt=="values"?{value:dt[It],done:!1}:{value:[It,dt[It]],done:!1}},"values"),$t.Arguments=$t.Array,Kt("keys"),Kt("values"),Kt("entries")},"./node_modules/core-js/modules/es.array.join.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/indexed-object.js"),$t=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=Kt!=Object,lt=Ct("join",",");oe({target:"Array",proto:!0,forced:tt||!lt},{join:function(ht){return et.call($t(this),ht===void 0?",":ht)}})},"./node_modules/core-js/modules/es.array.map.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/array-iteration.js").map,$t=Pt("./node_modules/core-js/internals/array-method-has-species-support.js"),Ct=$t("map");oe({target:"Array",proto:!0,forced:!Ct},{map:function(tt){return Kt(this,tt,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/is-object.js"),$t=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"),ht=Pt("./node_modules/core-js/internals/array-method-has-species-support.js"),dt=ht("slice"),xt=rt("species"),It=[].slice,Ut=Math.max;oe({target:"Array",proto:!0,forced:!dt},{slice:function(se,ue){var Ae=tt(this),Pe=et(Ae.length),qt=Ct(se,Pe),ze=Ct(ue===void 0?Pe:ue,Pe),Wt,Ge,_e;if($t(Ae)&&(Wt=Ae.constructor,typeof Wt=="function"&&(Wt===Array||$t(Wt.prototype))?Wt=void 0:Kt(Wt)&&(Wt=Wt[xt],Wt===null&&(Wt=void 0)),Wt===Array||Wt===void 0))return It.call(Ae,qt,ze);for(Ge=new(Wt===void 0?Array:Wt)(Ut(ze-qt,0)),_e=0;qt<ze;qt++,_e++)qt in Ae&<(Ge,_e,Ae[qt]);return Ge.length=_e,Ge}})},"./node_modules/core-js/modules/es.function.name.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/descriptors.js"),Kt=Pt("./node_modules/core-js/internals/object-define-property.js").f,$t=Function.prototype,Ct=$t.toString,et=/^\s*function ([^ (]*)/,tt="name";oe&&!(tt in $t)&&Kt($t,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,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/descriptors.js"),Kt=Pt("./node_modules/core-js/internals/global.js"),$t=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"),ht=Pt("./node_modules/core-js/internals/to-primitive.js"),dt=Pt("./node_modules/core-js/internals/fails.js"),xt=Pt("./node_modules/core-js/internals/object-create.js"),It=Pt("./node_modules/core-js/internals/object-get-own-property-names.js").f,Ut=Pt("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,Gt=Pt("./node_modules/core-js/internals/object-define-property.js").f,se=Pt("./node_modules/core-js/internals/string-trim.js").trim,ue="Number",Ae=Kt[ue],Pe=Ae.prototype,qt=tt(xt(Pe))==ue,ze=function(We){if(rt(We))throw TypeError("Cannot convert a Symbol value to a number");var Re=ht(We,"number"),ye,ne,Ce,bn,Ln,Ze,Mn,Vn;if(typeof Re=="string"&&Re.length>2){if(Re=se(Re),ye=Re.charCodeAt(0),ye===43||ye===45){if(ne=Re.charCodeAt(2),ne===88||ne===120)return NaN}else if(ye===48){switch(Re.charCodeAt(1)){case 66:case 98:Ce=2,bn=49;break;case 79:case 111:Ce=8,bn=55;break;default:return+Re}for(Ln=Re.slice(2),Ze=Ln.length,Mn=0;Mn<Ze;Mn++)if(Vn=Ln.charCodeAt(Mn),Vn<48||Vn>bn)return NaN;return parseInt(Ln,Ce)}}return+Re};if($t(ue,!Ae(" 0o1")||!Ae("0b1")||Ae("+0x1"))){for(var Wt=function(Re){var ye=arguments.length<1?0:Re,ne=this;return ne instanceof Wt&&(qt?dt(function(){Pe.valueOf.call(ne)}):tt(ne)!=ue)?lt(new Ae(ze(ye)),ne,Wt):ze(ye)},Ge=oe?It(Ae):"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,Me;Ge.length>_e;_e++)et(Ae,Me=Ge[_e])&&!et(Wt,Me)&&Gt(Wt,Me,Ut(Ae,Me));Wt.prototype=Pe,Pe.constructor=Wt,Ct(Kt,ue,Wt)}},"./node_modules/core-js/modules/es.object.assign.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/object-assign.js");oe({target:"Object",stat:!0,forced:Object.assign!==Kt},{assign:Kt})},"./node_modules/core-js/modules/es.object.keys.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/to-object.js"),$t=Pt("./node_modules/core-js/internals/object-keys.js"),Ct=Pt("./node_modules/core-js/internals/fails.js"),et=Ct(function(){$t(1)});oe({target:"Object",stat:!0,forced:et},{keys:function(lt){return $t(Kt(lt))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/to-string-tag-support.js"),Kt=Pt("./node_modules/core-js/internals/redefine.js"),$t=Pt("./node_modules/core-js/internals/object-to-string.js");oe||Kt(Object.prototype,"toString",$t,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/redefine.js"),Kt=Pt("./node_modules/core-js/internals/an-object.js"),$t=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],ht=Ct(function(){return rt.call({source:"a",flags:"b"})!="/a/b"}),dt=rt.name!=tt;(ht||dt)&&oe(RegExp.prototype,tt,function(){var It=Kt(this),Ut=$t(It.source),Gt=It.flags,se=$t(Gt===void 0&&It instanceof RegExp&&!("flags"in lt)?et.call(It):Gt);return"/"+Ut+"/"+se},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/string-multibyte.js").charAt,Kt=Pt("./node_modules/core-js/internals/to-string.js"),$t=Pt("./node_modules/core-js/internals/internal-state.js"),Ct=Pt("./node_modules/core-js/internals/define-iterator.js"),et="String Iterator",tt=$t.set,lt=$t.getterFor(et);Ct(String,"String",function(rt){tt(this,{type:et,string:Kt(rt),index:0})},function(){var ht=lt(this),dt=ht.string,xt=ht.index,It;return xt>=dt.length?{value:void 0,done:!0}:(It=oe(dt,xt),ht.index+=It.length,{value:It,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/create-html.js"),$t=Pt("./node_modules/core-js/internals/string-html-forced.js");oe({target:"String",proto:!0,forced:$t("link")},{link:function(et){return Kt(this,"a","href",et)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/descriptors.js"),$t=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=$t.Symbol;if(Kt&&typeof rt=="function"&&(!("description"in rt.prototype)||rt().description!==void 0)){var ht={},dt=function(){var ue=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),Ae=this instanceof dt?new rt(ue):ue===void 0?rt():rt(ue);return ue===""&&(ht[Ae]=!0),Ae};lt(dt,rt);var xt=dt.prototype=rt.prototype;xt.constructor=dt;var It=xt.toString,Ut=String(rt("test"))=="Symbol(test)",Gt=/^Symbol\((.*)\)[^)]+$/;tt(xt,"description",{configurable:!0,get:function(){var ue=et(this)?this.valueOf():this,Ae=It.call(ue);if(Ct(ht,ue))return"";var Pe=Ut?Ae.slice(7,-1):Ae.replace(Gt,"$1");return Pe===""?void 0:Pe}}),oe({global:!0,forced:!0},{Symbol:dt})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(jt,te,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,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/global.js"),$t=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"),ht=Pt("./node_modules/core-js/internals/is-array.js"),dt=Pt("./node_modules/core-js/internals/is-object.js"),xt=Pt("./node_modules/core-js/internals/is-symbol.js"),It=Pt("./node_modules/core-js/internals/an-object.js"),Ut=Pt("./node_modules/core-js/internals/to-object.js"),Gt=Pt("./node_modules/core-js/internals/to-indexed-object.js"),se=Pt("./node_modules/core-js/internals/to-property-key.js"),ue=Pt("./node_modules/core-js/internals/to-string.js"),Ae=Pt("./node_modules/core-js/internals/create-property-descriptor.js"),Pe=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"),Wt=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"),Me=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"),ye=Pt("./node_modules/core-js/internals/redefine.js"),ne=Pt("./node_modules/core-js/internals/shared.js"),Ce=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"),Ze=Pt("./node_modules/core-js/internals/well-known-symbol.js"),Mn=Pt("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Vn=Pt("./node_modules/core-js/internals/define-well-known-symbol.js"),gi=Pt("./node_modules/core-js/internals/set-to-string-tag.js"),Kn=Pt("./node_modules/core-js/internals/internal-state.js"),Bi=Pt("./node_modules/core-js/internals/array-iteration.js").forEach,en=Ce("hidden"),Li="Symbol",Oi="prototype",Lt=Ze("toPrimitive"),Ot=Kn.set,mt=Kn.getterFor(Li),ft=Object[Oi],pt=Kt.Symbol,At=$t("JSON","stringify"),le=_e.f,xe=Me.f,ae=Wt.f,ve=We.f,Ue=ne("symbols"),Te=ne("op-symbols"),ke=ne("string-to-symbol-registry"),nn=ne("symbol-to-string-registry"),Wn=ne("wks"),an=Kt.QObject,gn=!an||!an[Oi]||!an[Oi].findChild,Bn=et&<(function(){return Pe(xe({},"a",{get:function(){return xe(this,"a",{value:7}).a}})).a!=7})?function($r,Tr,Wr){var oo=le(ft,Tr);oo&&delete ft[Tr],xe($r,Tr,Wr),oo&&$r!==ft&&xe(ft,Tr,oo)}:xe,ti=function($r,Tr){var Wr=Ue[$r]=Pe(pt[Oi]);return Ot(Wr,{type:Li,tag:$r,description:Tr}),et||(Wr.description=Tr),Wr},Rn=function(Tr,Wr,oo){Tr===ft&&Rn(Te,Wr,oo),It(Tr);var Uo=se(Wr);return It(oo),rt(Ue,Uo)?(oo.enumerable?(rt(Tr,en)&&Tr[en][Uo]&&(Tr[en][Uo]=!1),oo=Pe(oo,{enumerable:Ae(0,!1)})):(rt(Tr,en)||xe(Tr,en,Ae(1,{})),Tr[en][Uo]=!0),Bn(Tr,Uo,oo)):xe(Tr,Uo,oo)},Ri=function(Tr,Wr){It(Tr);var oo=Gt(Wr),Uo=qt(oo).concat(ro(oo));return Bi(Uo,function(is){(!et||Ji.call(oo,is))&&Rn(Tr,is,oo[is])}),Tr},dr=function(Tr,Wr){return Wr===void 0?Pe(Tr):Ri(Pe(Tr),Wr)},Ji=function(Tr){var Wr=se(Tr),oo=ve.call(this,Wr);return this===ft&&rt(Ue,Wr)&&!rt(Te,Wr)?!1:oo||!rt(this,Wr)||!rt(Ue,Wr)||rt(this,en)&&this[en][Wr]?oo:!0},mr=function(Tr,Wr){var oo=Gt(Tr),Uo=se(Wr);if(!(oo===ft&&rt(Ue,Uo)&&!rt(Te,Uo))){var is=le(oo,Uo);return is&&rt(Ue,Uo)&&!(rt(oo,en)&&oo[en][Uo])&&(is.enumerable=!0),is}},Mr=function(Tr){var Wr=ae(Gt(Tr)),oo=[];return Bi(Wr,function(Uo){!rt(Ue,Uo)&&!rt(bn,Uo)&&oo.push(Uo)}),oo},ro=function(Tr){var Wr=Tr===ft,oo=ae(Wr?Te:Gt(Tr)),Uo=[];return Bi(oo,function(is){rt(Ue,is)&&(!Wr||rt(ft,is))&&Uo.push(Ue[is])}),Uo};if(tt||(pt=function(){if(this instanceof pt)throw TypeError("Symbol is not a constructor");var Tr=!arguments.length||arguments[0]===void 0?void 0:ue(arguments[0]),Wr=Ln(Tr),oo=function(Uo){this===ft&&oo.call(Te,Uo),rt(this,en)&&rt(this[en],Wr)&&(this[en][Wr]=!1),Bn(this,Wr,Ae(1,Uo))};return et&&gn&&Bn(ft,Wr,{configurable:!0,set:oo}),ti(Wr,Tr)},ye(pt[Oi],"toString",function(){return mt(this).tag}),ye(pt,"withoutSetter",function($r){return ti(Ln($r),$r)}),We.f=Ji,Me.f=Rn,_e.f=mr,ze.f=Wt.f=Mr,Ge.f=ro,Mn.f=function($r){return ti(Ze($r),$r)},et&&(xe(pt[Oi],"description",{configurable:!0,get:function(){return mt(this).description}}),Ct||ye(ft,"propertyIsEnumerable",Ji,{unsafe:!0}))),oe({global:!0,wrap:!0,forced:!tt,sham:!tt},{Symbol:pt}),Bi(qt(Wn),function($r){Vn($r)}),oe({target:Li,stat:!0,forced:!tt},{for:function($r){var Tr=ue($r);if(rt(ke,Tr))return ke[Tr];var Wr=pt(Tr);return ke[Tr]=Wr,nn[Wr]=Tr,Wr},keyFor:function(Tr){if(!xt(Tr))throw TypeError(Tr+" is not a symbol");if(rt(nn,Tr))return nn[Tr]},useSetter:function(){gn=!0},useSimple:function(){gn=!1}}),oe({target:"Object",stat:!0,forced:!tt,sham:!et},{create:dr,defineProperty:Rn,defineProperties:Ri,getOwnPropertyDescriptor:mr}),oe({target:"Object",stat:!0,forced:!tt},{getOwnPropertyNames:Mr,getOwnPropertySymbols:ro}),oe({target:"Object",stat:!0,forced:lt(function(){Ge.f(1)})},{getOwnPropertySymbols:function(Tr){return Ge.f(Ut(Tr))}}),At){var Jr=!tt||lt(function(){var $r=pt();return At([$r])!="[null]"||At({a:$r})!="{}"||At(Object($r))!="{}"});oe({target:"JSON",stat:!0,forced:Jr},{stringify:function(Tr,Wr,oo){for(var Uo=[Tr],is=1,uo;arguments.length>is;)Uo.push(arguments[is++]);if(uo=Wr,!(!dt(Wr)&&Tr===void 0||xt(Tr)))return ht(Wr)||(Wr=function(Ss,To){if(typeof uo=="function"&&(To=uo.call(this,Ss,To)),!xt(To))return To}),Uo[1]=Wr,At.apply(null,Uo)}})}pt[Oi][Lt]||Re(pt[Oi],Lt,pt[Oi].valueOf),gi(pt,Li),bn[en]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/dom-iterables.js"),$t=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 Kt){var tt=oe[et],lt=tt&&tt.prototype;if(lt&<.forEach!==$t)try{Ct(lt,"forEach",$t)}catch(rt){lt.forEach=$t}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/dom-iterables.js"),$t=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=$t.values;for(var ht in Kt){var dt=oe[ht],xt=dt&&dt.prototype;if(xt){if(xt[tt]!==rt)try{Ct(xt,tt,rt)}catch(Ut){xt[tt]=rt}if(xt[lt]||Ct(xt,lt,ht),Kt[ht]){for(var It in $t)if(xt[It]!==$t[It])try{Ct(xt,It,$t[It])}catch(Ut){xt[It]=$t[It]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(jt){(function(te,Pt){jt.exports=Pt()})(this,function(){"use strict";function te(an){var gn=typeof an;return an!==null&&(gn==="object"||gn==="function")}function Pt(an){return typeof an=="function"}var oe=void 0;Array.isArray?oe=Array.isArray:oe=function(an){return Object.prototype.toString.call(an)==="[object Array]"};var Kt=oe,$t=0,Ct=void 0,et=void 0,tt=function(gn,Bn){qt[$t]=gn,qt[$t+1]=Bn,$t+=2,$t===2&&(et?et(ze):Ge())};function lt(an){et=an}function rt(an){tt=an}var ht=typeof window!="undefined"?window:void 0,dt=ht||{},xt=dt.MutationObserver||dt.WebKitMutationObserver,It=typeof self=="undefined"&&typeof Mt!="undefined"&&{}.toString.call(Mt)==="[object process]",Ut=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function Gt(){return function(){return Mt.nextTick(ze)}}function se(){return typeof Ct!="undefined"?function(){Ct(ze)}:Pe()}function ue(){var an=0,gn=new xt(ze),Bn=document.createTextNode("");return gn.observe(Bn,{characterData:!0}),function(){Bn.data=an=++an%2}}function Ae(){var an=new MessageChannel;return an.port1.onmessage=ze,function(){return an.port2.postMessage(0)}}function Pe(){var an=setTimeout;return function(){return an(ze,1)}}var qt=new Array(1e3);function ze(){for(var an=0;an<$t;an+=2){var gn=qt[an],Bn=qt[an+1];gn(Bn),qt[an]=void 0,qt[an+1]=void 0}$t=0}function Wt(){try{var an=Function("return this")().require("vertx");return Ct=an.runOnLoop||an.runOnContext,se()}catch(gn){return Pe()}}var Ge=void 0;It?Ge=Gt():xt?Ge=ue():Ut?Ge=Ae():ht===void 0?Ge=Wt():Ge=Pe();function _e(an,gn){var Bn=this,ti=new this.constructor(Re);ti[We]===void 0&&At(ti);var Rn=Bn._state;if(Rn){var Ri=arguments[Rn-1];tt(function(){return Ot(Rn,ti,Ri,Bn._result)})}else Oi(Bn,ti,an,gn);return ti}function Me(an){var gn=this;if(an&&typeof an=="object"&&an.constructor===gn)return an;var Bn=new gn(Re);return Kn(Bn,an),Bn}var We=Math.random().toString(36).substring(2);function Re(){}var ye=void 0,ne=1,Ce=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 Ze(an,gn,Bn,ti){try{an.call(gn,Bn,ti)}catch(Rn){return Rn}}function Mn(an,gn,Bn){tt(function(ti){var Rn=!1,Ri=Ze(Bn,gn,function(dr){Rn||(Rn=!0,gn!==dr?Kn(ti,dr):en(ti,dr))},function(dr){Rn||(Rn=!0,Li(ti,dr))},"Settle: "+(ti._label||" unknown promise"));!Rn&&Ri&&(Rn=!0,Li(ti,Ri))},an)}function Vn(an,gn){gn._state===ne?en(an,gn._result):gn._state===Ce?Li(an,gn._result):Oi(gn,void 0,function(Bn){return Kn(an,Bn)},function(Bn){return Li(an,Bn)})}function gi(an,gn,Bn){gn.constructor===an.constructor&&Bn===_e&&gn.constructor.resolve===Me?Vn(an,gn):Bn===void 0?en(an,gn):Pt(Bn)?Mn(an,gn,Bn):en(an,gn)}function Kn(an,gn){if(an===gn)Li(an,bn());else if(te(gn)){var Bn=void 0;try{Bn=gn.then}catch(ti){Li(an,ti);return}gi(an,gn,Bn)}else en(an,gn)}function Bi(an){an._onerror&&an._onerror(an._result),Lt(an)}function en(an,gn){an._state===ye&&(an._result=gn,an._state=ne,an._subscribers.length!==0&&tt(Lt,an))}function Li(an,gn){an._state===ye&&(an._state=Ce,an._result=gn,tt(Bi,an))}function Oi(an,gn,Bn,ti){var Rn=an._subscribers,Ri=Rn.length;an._onerror=null,Rn[Ri]=gn,Rn[Ri+ne]=Bn,Rn[Ri+Ce]=ti,Ri===0&&an._state&&tt(Lt,an)}function Lt(an){var gn=an._subscribers,Bn=an._state;if(gn.length!==0){for(var ti=void 0,Rn=void 0,Ri=an._result,dr=0;dr<gn.length;dr+=3)ti=gn[dr],Rn=gn[dr+Bn],ti?Ot(Bn,ti,Rn,Ri):Rn(Ri);an._subscribers.length=0}}function Ot(an,gn,Bn,ti){var Rn=Pt(Bn),Ri=void 0,dr=void 0,Ji=!0;if(Rn){try{Ri=Bn(ti)}catch(mr){Ji=!1,dr=mr}if(gn===Ri){Li(gn,Ln());return}}else Ri=ti;gn._state!==ye||(Rn&&Ji?Kn(gn,Ri):Ji===!1?Li(gn,dr):an===ne?en(gn,Ri):an===Ce&&Li(gn,Ri))}function mt(an,gn){try{gn(function(ti){Kn(an,ti)},function(ti){Li(an,ti)})}catch(Bn){Li(an,Bn)}}var ft=0;function pt(){return ft++}function At(an){an[We]=ft++,an._state=void 0,an._result=void 0,an._subscribers=[]}function le(){return new Error("Array Methods must be provided an Array")}var xe=function(){function an(gn,Bn){this._instanceConstructor=gn,this.promise=new gn(Re),this.promise[We]||At(this.promise),Kt(Bn)?(this.length=Bn.length,this._remaining=Bn.length,this._result=new Array(this.length),this.length===0?en(this.promise,this._result):(this.length=this.length||0,this._enumerate(Bn),this._remaining===0&&en(this.promise,this._result))):Li(this.promise,le())}return an.prototype._enumerate=function(Bn){for(var ti=0;this._state===ye&&ti<Bn.length;ti++)this._eachEntry(Bn[ti],ti)},an.prototype._eachEntry=function(Bn,ti){var Rn=this._instanceConstructor,Ri=Rn.resolve;if(Ri===Me){var dr=void 0,Ji=void 0,mr=!1;try{dr=Bn.then}catch(ro){mr=!0,Ji=ro}if(dr===_e&&Bn._state!==ye)this._settledAt(Bn._state,ti,Bn._result);else if(typeof dr!="function")this._remaining--,this._result[ti]=Bn;else if(Rn===nn){var Mr=new Rn(Re);mr?Li(Mr,Ji):gi(Mr,Bn,dr),this._willSettleAt(Mr,ti)}else this._willSettleAt(new Rn(function(ro){return ro(Bn)}),ti)}else this._willSettleAt(Ri(Bn),ti)},an.prototype._settledAt=function(Bn,ti,Rn){var Ri=this.promise;Ri._state===ye&&(this._remaining--,Bn===Ce?Li(Ri,Rn):this._result[ti]=Rn),this._remaining===0&&en(Ri,this._result)},an.prototype._willSettleAt=function(Bn,ti){var Rn=this;Oi(Bn,void 0,function(Ri){return Rn._settledAt(ne,ti,Ri)},function(Ri){return Rn._settledAt(Ce,ti,Ri)})},an}();function ae(an){return new xe(this,an).promise}function ve(an){var gn=this;return Kt(an)?new gn(function(Bn,ti){for(var Rn=an.length,Ri=0;Ri<Rn;Ri++)gn.resolve(an[Ri]).then(Bn,ti)}):new gn(function(Bn,ti){return ti(new TypeError("You must pass an array to race."))})}function Ue(an){var gn=this,Bn=new gn(Re);return Li(Bn,an),Bn}function Te(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ke(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var nn=function(){function an(gn){this[We]=pt(),this._result=this._state=void 0,this._subscribers=[],Re!==gn&&(typeof gn!="function"&&Te(),this instanceof an?mt(this,gn):ke())}return an.prototype.catch=function(Bn){return this.then(null,Bn)},an.prototype.finally=function(Bn){var ti=this,Rn=ti.constructor;return Pt(Bn)?ti.then(function(Ri){return Rn.resolve(Bn()).then(function(){return Ri})},function(Ri){return Rn.resolve(Bn()).then(function(){throw Ri})}):ti.then(Bn,Bn)},an}();nn.prototype.then=_e,nn.all=ae,nn.race=ve,nn.resolve=Me,nn.reject=Ue,nn._setScheduler=lt,nn._setAsap=rt,nn._asap=tt;function Wn(){var an=void 0;if(typeof Ft.g!="undefined")an=Ft.g;else if(typeof self!="undefined")an=self;else try{an=Function("return this")()}catch(ti){throw new Error("polyfill failed because global object is unavailable in this environment")}var gn=an.Promise;if(gn){var Bn=null;try{Bn=Object.prototype.toString.call(gn.resolve())}catch(ti){}if(Bn==="[object Promise]"&&!gn.cast)return}an.Promise=nn}return nn.polyfill=Wn,nn.Promise=nn,nn})},html2canvas:function(jt){"use strict";jt.exports=re},jspdf:function(jt){"use strict";jt.exports=ce}},ee={};function Vt(jt){var te=ee[jt];if(te!==void 0)return te.exports;var Pt=ee[jt]={exports:{}};return Ie[jt].call(Pt.exports,Pt,Pt.exports,Vt),Pt.exports}(function(){Vt.n=function(jt){var te=jt&&jt.__esModule?function(){return jt.default}:function(){return jt};return Vt.d(te,{a:te}),te}})(),function(){Vt.d=function(jt,te){for(var Pt in te)Vt.o(te,Pt)&&!Vt.o(jt,Pt)&&Object.defineProperty(jt,Pt,{enumerable:!0,get:te[Pt]})}}(),function(){Vt.o=function(jt,te){return Object.prototype.hasOwnProperty.call(jt,te)}}(),function(){Vt.r=function(jt){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(jt,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(jt,"__esModule",{value:!0})}}();var Nt={};return function(){"use strict";Vt.r(Nt);var jt=Vt("./src/worker.js"),te=Vt("./src/plugin/jspdf-plugin.js"),Pt=Vt("./src/plugin/pagebreaks.js"),oe=Vt("./src/plugin/hyperlinks.js"),Kt=function $t(Ct,et){var tt=new $t.Worker(et);return Ct?tt.from(Ct).save():tt};Kt.Worker=jt.default,Nt.default=Kt}(),Nt=Nt.default,Nt}()})},67467:function(hi,Cn){Cn.read=function(Ft,Mt,ce,re,Ie){var ee,Vt,Nt=Ie*8-re-1,jt=(1<<Nt)-1,te=jt>>1,Pt=-7,oe=ce?Ie-1:0,Kt=ce?-1:1,$t=Ft[Mt+oe];for(oe+=Kt,ee=$t&(1<<-Pt)-1,$t>>=-Pt,Pt+=Nt;Pt>0;ee=ee*256+Ft[Mt+oe],oe+=Kt,Pt-=8);for(Vt=ee&(1<<-Pt)-1,ee>>=-Pt,Pt+=re;Pt>0;Vt=Vt*256+Ft[Mt+oe],oe+=Kt,Pt-=8);if(ee===0)ee=1-te;else{if(ee===jt)return Vt?NaN:($t?-1:1)*(1/0);Vt=Vt+Math.pow(2,re),ee=ee-te}return($t?-1:1)*Vt*Math.pow(2,ee-re)},Cn.write=function(Ft,Mt,ce,re,Ie,ee){var Vt,Nt,jt,te=ee*8-Ie-1,Pt=(1<<te)-1,oe=Pt>>1,Kt=Ie===23?Math.pow(2,-24)-Math.pow(2,-77):0,$t=re?0:ee-1,Ct=re?1:-1,et=Mt<0||Mt===0&&1/Mt<0?1:0;for(Mt=Math.abs(Mt),isNaN(Mt)||Mt===1/0?(Nt=isNaN(Mt)?1:0,Vt=Pt):(Vt=Math.floor(Math.log(Mt)/Math.LN2),Mt*(jt=Math.pow(2,-Vt))<1&&(Vt--,jt*=2),Vt+oe>=1?Mt+=Kt/jt:Mt+=Kt*Math.pow(2,1-oe),Mt*jt>=2&&(Vt++,jt/=2),Vt+oe>=Pt?(Nt=0,Vt=Pt):Vt+oe>=1?(Nt=(Mt*jt-1)*Math.pow(2,Ie),Vt=Vt+oe):(Nt=Mt*Math.pow(2,oe-1)*Math.pow(2,Ie),Vt=0));Ie>=8;Ft[ce+$t]=Nt&255,$t+=Ct,Nt/=256,Ie-=8);for(Vt=Vt<<Ie|Nt,te+=Ie;te>0;Ft[ce+$t]=Vt&255,$t+=Ct,Vt/=256,te-=8);Ft[ce+$t-Ct]|=et*128}},73207:function(hi,Cn,Ft){"use strict";Ft.r(Cn),Ft.d(Cn,{AcroForm:function(){return Eu},AcroFormAppearance:function(){return Qo},AcroFormButton:function(){return Ja},AcroFormCheckBox:function(){return bu},AcroFormChoiceField:function(){return ou},AcroFormComboBox:function(){return bo},AcroFormEditBox:function(){return ja},AcroFormListBox:function(){return Ya},AcroFormPasswordField:function(){return eu},AcroFormPushButton:function(){return su},AcroFormRadioButton:function(){return $l},AcroFormTextField:function(){return fu},GState:function(){return Po},ShadingPattern:function(){return ha},TilingPattern:function(){return sa},default:function(){return Yl},jsPDF:function(){return Ro}});var Mt=Ft(20135),ce={},re=function(Et,wt,bt,Ht,ie){var Yt=new Worker(ce[wt]||(ce[wt]=URL.createObjectURL(new Blob([Et+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return Yt.onmessage=function(ge){var we=ge.data,be=we.$e$;if(be){var $e=new Error(be[0]);$e.code=be[1],$e.stack=be[2],ie($e,null)}else ie(null,we)},Yt.postMessage(bt,Ht),Yt},Ie=Uint8Array,ee=Uint16Array,Vt=Int32Array,Nt=new Ie([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 Ie([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]),te=new Ie([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Pt=function(Et,wt){for(var bt=new ee(31),Ht=0;Ht<31;++Ht)bt[Ht]=wt+=1<<Et[Ht-1];for(var ie=new Vt(bt[30]),Ht=1;Ht<30;++Ht)for(var Yt=bt[Ht];Yt<bt[Ht+1];++Yt)ie[Yt]=Yt-bt[Ht]<<5|Ht;return{b:bt,r:ie}},oe=Pt(Nt,2),Kt=oe.b,$t=oe.r;Kt[28]=258,$t[258]=28;for(var Ct=Pt(jt,0),et=Ct.b,tt=Ct.r,lt=new ee(32768),rt=0;rt<32768;++rt){var ht=(rt&43690)>>1|(rt&21845)<<1;ht=(ht&52428)>>2|(ht&13107)<<2,ht=(ht&61680)>>4|(ht&3855)<<4,lt[rt]=((ht&65280)>>8|(ht&255)<<8)>>1}for(var dt=function(Et,wt,bt){for(var Ht=Et.length,ie=0,Yt=new ee(wt);ie<Ht;++ie)Et[ie]&&++Yt[Et[ie]-1];var ge=new ee(wt);for(ie=1;ie<wt;++ie)ge[ie]=ge[ie-1]+Yt[ie-1]<<1;var we;if(bt){we=new ee(1<<wt);var be=15-wt;for(ie=0;ie<Ht;++ie)if(Et[ie])for(var $e=ie<<4|Et[ie],dn=wt-Et[ie],fn=ge[Et[ie]-1]++<<dn,Pn=fn|(1<<dn)-1;fn<=Pn;++fn)we[lt[fn]>>be]=$e}else for(we=new ee(Ht),ie=0;ie<Ht;++ie)Et[ie]&&(we[ie]=lt[ge[Et[ie]-1]++]>>15-Et[ie]);return we},xt=new Ie(288),rt=0;rt<144;++rt)xt[rt]=8;for(var rt=144;rt<256;++rt)xt[rt]=9;for(var rt=256;rt<280;++rt)xt[rt]=7;for(var rt=280;rt<288;++rt)xt[rt]=8;for(var It=new Ie(32),rt=0;rt<32;++rt)It[rt]=5;var Ut=dt(xt,9,0),Gt=dt(xt,9,1),se=dt(It,5,0),ue=dt(It,5,1),Ae=function(Et){for(var wt=Et[0],bt=1;bt<Et.length;++bt)Et[bt]>wt&&(wt=Et[bt]);return wt},Pe=function(Et,wt,bt){var Ht=wt/8|0;return(Et[Ht]|Et[Ht+1]<<8)>>(wt&7)&bt},qt=function(Et,wt){var bt=wt/8|0;return(Et[bt]|Et[bt+1]<<8|Et[bt+2]<<16)>>(wt&7)},ze=function(Et){return(Et+7)/8|0},Wt=function(Et,wt,bt){return(wt==null||wt<0)&&(wt=0),(bt==null||bt>Et.length)&&(bt=Et.length),new Ie(Et.subarray(wt,bt))},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"],Me=function(Et,wt,bt){var Ht=new Error(wt||_e[Et]);if(Ht.code=Et,Error.captureStackTrace&&Error.captureStackTrace(Ht,Me),!bt)throw Ht;return Ht},We=function(Et,wt,bt,Ht){var ie=Et.length,Yt=Ht?Ht.length:0;if(!ie||wt.f&&!wt.l)return bt||new Ie(0);var ge=!bt,we=ge||wt.i!=2,be=wt.i;ge&&(bt=new Ie(ie*3));var $e=function(Zi){var Ar=bt.length;if(Zi>Ar){var br=new Ie(Math.max(Ar*2,Zi));br.set(bt),bt=br}},dn=wt.f||0,fn=wt.p||0,Pn=wt.b||0,Ke=wt.l,mi=wt.d,Jn=wt.m,yi=wt.n,Un=ie*8;do{if(!Ke){dn=Pe(Et,fn,1);var di=Pe(Et,fn+1,3);if(fn+=3,di)if(di==1)Ke=Gt,mi=ue,Jn=9,yi=5;else if(di==2){var ao=Pe(Et,fn,31)+257,gr=Pe(Et,fn+10,15)+4,Ti=ao+Pe(Et,fn+5,31)+1;fn+=14;for(var xr=new Ie(Ti),Ir=new Ie(19),$n=0;$n<gr;++$n)Ir[te[$n]]=Pe(Et,fn+$n*3,7);fn+=gr*3;for(var ri=Ae(Ir),pe=(1<<ri)-1,me=dt(Ir,ri,1),$n=0;$n<Ti;){var Xe=me[Pe(Et,fn,pe)];fn+=Xe&15;var Qi=Xe>>4;if(Qi<16)xr[$n++]=Qi;else{var Je=0,vn=0;for(Qi==16?(vn=3+Pe(Et,fn,3),fn+=2,Je=xr[$n-1]):Qi==17?(vn=3+Pe(Et,fn,7),fn+=3):Qi==18&&(vn=11+Pe(Et,fn,127),fn+=7);vn--;)xr[$n++]=Je}}var rn=xr.subarray(0,ao),kn=xr.subarray(ao);Jn=Ae(rn),yi=Ae(kn),Ke=dt(rn,Jn,1),mi=dt(kn,yi,1)}else Me(1);else{var Qi=ze(fn)+4,ir=Et[Qi-4]|Et[Qi-3]<<8,Er=Qi+ir;if(Er>ie){be&&Me(0);break}we&&$e(Pn+ir),bt.set(Et.subarray(Qi,Er),Pn),wt.b=Pn+=ir,wt.p=fn=Er*8,wt.f=dn;continue}if(fn>Un){be&&Me(0);break}}we&&$e(Pn+131072);for(var jn=(1<<Jn)-1,Yn=(1<<yi)-1,Qe=fn;;Qe=fn){var Je=Ke[qt(Et,fn)&jn],un=Je>>4;if(fn+=Je&15,fn>Un){be&&Me(0);break}if(Je||Me(2),un<256)bt[Pn++]=un;else if(un==256){Qe=fn,Ke=null;break}else{var mn=un-254;if(un>264){var $n=un-257,Hn=Nt[$n];mn=Pe(Et,fn,(1<<Hn)-1)+Kt[$n],fn+=Hn}var Zn=mi[qt(Et,fn)&Yn],ii=Zn>>4;Zn||Me(3),fn+=Zn&15;var kn=et[ii];if(ii>3){var Hn=jt[ii];kn+=qt(Et,fn)&(1<<Hn)-1,fn+=Hn}if(fn>Un){be&&Me(0);break}we&&$e(Pn+131072);var Fi=Pn+mn;if(Pn<kn){var li=Yt-kn,Xi=Math.min(kn,Fi);for(li+Pn<0&&Me(3);Pn<Xi;++Pn)bt[Pn]=Ht[li+Pn]}for(;Pn<Fi;++Pn)bt[Pn]=bt[Pn-kn]}}wt.l=Ke,wt.p=Qe,wt.b=Pn,wt.f=dn,Ke&&(dn=1,wt.m=Jn,wt.d=mi,wt.n=yi)}while(!dn);return Pn!=bt.length&&ge?Wt(bt,0,Pn):bt.subarray(0,Pn)},Re=function(Et,wt,bt){bt<<=wt&7;var Ht=wt/8|0;Et[Ht]|=bt,Et[Ht+1]|=bt>>8},ye=function(Et,wt,bt){bt<<=wt&7;var Ht=wt/8|0;Et[Ht]|=bt,Et[Ht+1]|=bt>>8,Et[Ht+2]|=bt>>16},ne=function(Et,wt){for(var bt=[],Ht=0;Ht<Et.length;++Ht)Et[Ht]&&bt.push({s:Ht,f:Et[Ht]});var ie=bt.length,Yt=bt.slice();if(!ie)return{t:gi,l:0};if(ie==1){var ge=new Ie(bt[0].s+1);return ge[bt[0].s]=1,{t:ge,l:1}}bt.sort(function(Er,ao){return Er.f-ao.f}),bt.push({s:-1,f:25001});var we=bt[0],be=bt[1],$e=0,dn=1,fn=2;for(bt[0]={s:-1,f:we.f+be.f,l:we,r:be};dn!=ie-1;)we=bt[bt[$e].f<bt[fn].f?$e++:fn++],be=bt[$e!=dn&&bt[$e].f<bt[fn].f?$e++:fn++],bt[dn++]={s:-1,f:we.f+be.f,l:we,r:be};for(var Pn=Yt[0].s,Ht=1;Ht<ie;++Ht)Yt[Ht].s>Pn&&(Pn=Yt[Ht].s);var Ke=new ee(Pn+1),mi=Ce(bt[dn-1],Ke,0);if(mi>wt){var Ht=0,Jn=0,yi=mi-wt,Un=1<<yi;for(Yt.sort(function(ao,gr){return Ke[gr.s]-Ke[ao.s]||ao.f-gr.f});Ht<ie;++Ht){var di=Yt[Ht].s;if(Ke[di]>wt)Jn+=Un-(1<<mi-Ke[di]),Ke[di]=wt;else break}for(Jn>>=yi;Jn>0;){var Qi=Yt[Ht].s;Ke[Qi]<wt?Jn-=1<<wt-Ke[Qi]++-1:++Ht}for(;Ht>=0&&Jn;--Ht){var ir=Yt[Ht].s;Ke[ir]==wt&&(--Ke[ir],++Jn)}mi=wt}return{t:new Ie(Ke),l:mi}},Ce=function(Et,wt,bt){return Et.s==-1?Math.max(Ce(Et.l,wt,bt+1),Ce(Et.r,wt,bt+1)):wt[Et.s]=bt},bn=function(Et){for(var wt=Et.length;wt&&!Et[--wt];);for(var bt=new ee(++wt),Ht=0,ie=Et[0],Yt=1,ge=function(be){bt[Ht++]=be},we=1;we<=wt;++we)if(Et[we]==ie&&we!=wt)++Yt;else{if(!ie&&Yt>2){for(;Yt>138;Yt-=138)ge(32754);Yt>2&&(ge(Yt>10?Yt-11<<5|28690:Yt-3<<5|12305),Yt=0)}else if(Yt>3){for(ge(ie),--Yt;Yt>6;Yt-=6)ge(8304);Yt>2&&(ge(Yt-3<<5|8208),Yt=0)}for(;Yt--;)ge(ie);Yt=1,ie=Et[we]}return{c:bt.subarray(0,Ht),n:wt}},Ln=function(Et,wt){for(var bt=0,Ht=0;Ht<wt.length;++Ht)bt+=Et[Ht]*wt[Ht];return bt},Ze=function(Et,wt,bt){var Ht=bt.length,ie=ze(wt+2);Et[ie]=Ht&255,Et[ie+1]=Ht>>8,Et[ie+2]=Et[ie]^255,Et[ie+3]=Et[ie+1]^255;for(var Yt=0;Yt<Ht;++Yt)Et[ie+Yt+4]=bt[Yt];return(ie+4+Ht)*8},Mn=function(Et,wt,bt,Ht,ie,Yt,ge,we,be,$e,dn){Re(wt,dn++,bt),++ie[256];for(var fn=ne(ie,15),Pn=fn.t,Ke=fn.l,mi=ne(Yt,15),Jn=mi.t,yi=mi.l,Un=bn(Pn),di=Un.c,Qi=Un.n,ir=bn(Jn),Er=ir.c,ao=ir.n,gr=new ee(19),Ti=0;Ti<di.length;++Ti)++gr[di[Ti]&31];for(var Ti=0;Ti<Er.length;++Ti)++gr[Er[Ti]&31];for(var xr=ne(gr,7),Ir=xr.t,$n=xr.l,ri=19;ri>4&&!Ir[te[ri-1]];--ri);var pe=$e+5<<3,me=Ln(ie,xt)+Ln(Yt,It)+ge,Xe=Ln(ie,Pn)+Ln(Yt,Jn)+ge+14+3*ri+Ln(gr,Ir)+2*gr[16]+3*gr[17]+7*gr[18];if(be>=0&&pe<=me&&pe<=Xe)return Ze(wt,dn,Et.subarray(be,be+$e));var Je,vn,rn,kn;if(Re(wt,dn,1+(Xe<me)),dn+=2,Xe<me){Je=dt(Pn,Ke,0),vn=Pn,rn=dt(Jn,yi,0),kn=Jn;var jn=dt(Ir,$n,0);Re(wt,dn,Qi-257),Re(wt,dn+5,ao-1),Re(wt,dn+10,ri-4),dn+=14;for(var Ti=0;Ti<ri;++Ti)Re(wt,dn+3*Ti,Ir[te[Ti]]);dn+=3*ri;for(var Yn=[di,Er],Qe=0;Qe<2;++Qe)for(var un=Yn[Qe],Ti=0;Ti<un.length;++Ti){var mn=un[Ti]&31;Re(wt,dn,jn[mn]),dn+=Ir[mn],mn>15&&(Re(wt,dn,un[Ti]>>5&127),dn+=un[Ti]>>12)}}else Je=Ut,vn=xt,rn=se,kn=It;for(var Ti=0;Ti<we;++Ti){var Hn=Ht[Ti];if(Hn>255){var mn=Hn>>18&31;ye(wt,dn,Je[mn+257]),dn+=vn[mn+257],mn>7&&(Re(wt,dn,Hn>>23&31),dn+=Nt[mn]);var Zn=Hn&31;ye(wt,dn,rn[Zn]),dn+=kn[Zn],Zn>3&&(ye(wt,dn,Hn>>5&8191),dn+=jt[Zn])}else ye(wt,dn,Je[Hn]),dn+=vn[Hn]}return ye(wt,dn,Je[256]),dn+vn[256]},Vn=new Vt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),gi=new Ie(0),Kn=function(Et,wt,bt,Ht,ie,Yt){var ge=Yt.z||Et.length,we=new Ie(Ht+ge+5*(1+Math.ceil(ge/7e3))+ie),be=we.subarray(Ht,we.length-ie),$e=Yt.l,dn=(Yt.r||0)&7;if(wt){dn&&(be[0]=Yt.r>>3);for(var fn=Vn[wt-1],Pn=fn>>13,Ke=fn&8191,mi=(1<<bt)-1,Jn=Yt.p||new ee(32768),yi=Yt.h||new ee(mi+1),Un=Math.ceil(bt/3),di=2*Un,Qi=function(eo){return(Et[eo]^Et[eo+1]<<Un^Et[eo+2]<<di)&mi},ir=new Vt(25e3),Er=new ee(288),ao=new ee(32),gr=0,Ti=0,xr=Yt.i||0,Ir=0,$n=Yt.w||0,ri=0;xr+2<ge;++xr){var pe=Qi(xr),me=xr&32767,Xe=yi[pe];if(Jn[me]=Xe,yi[pe]=me,$n<=xr){var Je=ge-xr;if((gr>7e3||Ir>24576)&&(Je>423||!$e)){dn=Mn(Et,be,0,ir,Er,ao,Ti,Ir,ri,xr-ri,dn),Ir=gr=Ti=0,ri=xr;for(var vn=0;vn<286;++vn)Er[vn]=0;for(var vn=0;vn<30;++vn)ao[vn]=0}var rn=2,kn=0,jn=Ke,Yn=me-Xe&32767;if(Je>2&&pe==Qi(xr-Yn))for(var Qe=Math.min(Pn,Je)-1,un=Math.min(32767,xr),mn=Math.min(258,Je);Yn<=un&&--jn&&me!=Xe;){if(Et[xr+rn]==Et[xr+rn-Yn]){for(var Hn=0;Hn<mn&&Et[xr+Hn]==Et[xr+Hn-Yn];++Hn);if(Hn>rn){if(rn=Hn,kn=Yn,Hn>Qe)break;for(var Zn=Math.min(Yn,Hn-2),ii=0,vn=0;vn<Zn;++vn){var Fi=xr-Yn+vn&32767,li=Jn[Fi],Xi=Fi-li&32767;Xi>ii&&(ii=Xi,Xe=Fi)}}}me=Xe,Xe=Jn[me],Yn+=me-Xe&32767}if(kn){ir[Ir++]=268435456|$t[rn]<<18|tt[kn];var Zi=$t[rn]&31,Ar=tt[kn]&31;Ti+=Nt[Zi]+jt[Ar],++Er[257+Zi],++ao[Ar],$n=xr+rn,++gr}else ir[Ir++]=Et[xr],++Er[Et[xr]]}}for(xr=Math.max(xr,$n);xr<ge;++xr)ir[Ir++]=Et[xr],++Er[Et[xr]];dn=Mn(Et,be,$e,ir,Er,ao,Ti,Ir,ri,xr-ri,dn),$e||(Yt.r=dn&7|be[dn/8|0]<<3,dn-=7,Yt.h=yi,Yt.p=Jn,Yt.i=xr,Yt.w=$n)}else{for(var xr=Yt.w||0;xr<ge+$e;xr+=65535){var br=xr+65535;br>=ge&&(be[dn/8|0]=$e,br=ge),dn=Ze(be,dn+1,Et.subarray(xr,br))}Yt.i=ge}return Wt(we,0,Ht+ze(dn)+ie)},Bi=null,en=function(){var Et=-1;return{p:function(wt){for(var bt=Et,Ht=0;Ht<wt.length;++Ht)bt=Bi[bt&255^wt[Ht]]^bt>>>8;Et=bt},d:function(){return~Et}}},Li=function(){var Et=1,wt=0;return{p:function(bt){for(var Ht=Et,ie=wt,Yt=bt.length|0,ge=0;ge!=Yt;){for(var we=Math.min(ge+2655,Yt);ge<we;++ge)ie+=Ht+=bt[ge];Ht=(Ht&65535)+15*(Ht>>16),ie=(ie&65535)+15*(ie>>16)}Et=Ht,wt=ie},d:function(){return Et%=65521,wt%=65521,(Et&255)<<24|(Et&65280)<<8|(wt&255)<<8|wt>>8}}},Oi=function(Et,wt,bt,Ht,ie){if(!ie&&(ie={l:1},wt.dictionary)){var Yt=wt.dictionary.subarray(-32768),ge=new Ie(Yt.length+Et.length);ge.set(Yt),ge.set(Et,Yt.length),Et=ge,ie.w=Yt.length}return Kn(Et,wt.level==null?6:wt.level,wt.mem==null?ie.l?Math.ceil(Math.max(8,Math.min(13,Math.log(Et.length)))*1.5):20:12+wt.mem,bt,Ht,ie)},Lt=function(Et,wt){var bt={};for(var Ht in Et)bt[Ht]=Et[Ht];for(var Ht in wt)bt[Ht]=wt[Ht];return bt},Ot=function(Et,wt,bt){for(var Ht=Et(),ie=Et.toString(),Yt=ie.slice(ie.indexOf("[")+1,ie.lastIndexOf("]")).replace(/\s+/g,"").split(","),ge=0;ge<Ht.length;++ge){var we=Ht[ge],be=Yt[ge];if(typeof we=="function"){wt+=";"+be+"=";var $e=we.toString();if(we.prototype)if($e.indexOf("[native code]")!=-1){var dn=$e.indexOf(" ",8)+1;wt+=$e.slice(dn,$e.indexOf("(",dn))}else{wt+=$e;for(var fn in we.prototype)wt+=";"+be+".prototype."+fn+"="+we.prototype[fn].toString()}else wt+=$e}else bt[be]=we}return wt},mt=null,ft=function(Et){var wt=[];for(var bt in Et)Et[bt].buffer&&wt.push((Et[bt]=new Et[bt].constructor(Et[bt])).buffer);return wt},pt=function(Et,wt,bt,Ht){if(!mt[bt]){for(var ie="",Yt={},ge=Et.length-1,we=0;we<ge;++we)ie=Ot(Et[we],ie,Yt);mt[bt]={c:Ot(Et[ge],ie,Yt),e:Yt}}var be=Lt({},mt[bt].e);return re(mt[bt].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+wt.toString()+"}",bt,be,ft(be),Ht)},At=function(){return[Ie,ee,Vt,Nt,jt,te,Kt,et,Gt,ue,lt,_e,dt,Ae,Pe,qt,ze,Wt,Me,We,Ss,Te,ke]},le=function(){return[Ie,ee,Vt,Nt,jt,te,$t,tt,Ut,xt,se,It,lt,Vn,gi,dt,Re,ye,ne,Ce,bn,Ln,Ze,Mn,ze,Wt,Kn,Oi,oo,Te]},xe=function(){return[Ri,mr,Rn,en,Bi]},ae=function(){return[dr,Ji]},ve=function(){return[Mr,Rn,Li]},Ue=function(){return[ro]},Te=function(Et){return postMessage(Et,[Et.buffer])},ke=function(Et){return Et&&{out:Et.size&&new Ie(Et.size),dictionary:Et.dictionary}},nn=function(Et,wt,bt,Ht,ie,Yt){var ge=pt(bt,Ht,ie,function(we,be){ge.terminate(),Yt(we,be)});return ge.postMessage([Et,wt],wt.consume?[Et.buffer]:[]),function(){ge.terminate()}},Wn=function(Et){return Et.ondata=function(wt,bt){return postMessage([wt,bt],[wt.buffer])},function(wt){wt.data.length?(Et.push(wt.data[0],wt.data[1]),postMessage([wt.data[0].length])):Et.flush()}},an=function(Et,wt,bt,Ht,ie,Yt,ge){var we,be=pt(Et,Ht,ie,function($e,dn){$e?(be.terminate(),wt.ondata.call(wt,$e)):Array.isArray(dn)?dn.length==1?(wt.queuedSize-=dn[0],wt.ondrain&&wt.ondrain(dn[0])):(dn[1]&&be.terminate(),wt.ondata.call(wt,$e,dn[0],dn[1])):ge(dn)});be.postMessage(bt),wt.queuedSize=0,wt.push=function($e,dn){wt.ondata||Me(5),we&&wt.ondata(Me(4,0,1),null,!!dn),wt.queuedSize+=$e.length,be.postMessage([$e,we=dn],[$e.buffer])},wt.terminate=function(){be.terminate()},Yt&&(wt.flush=function(){be.postMessage([])})},gn=function(Et,wt){return Et[wt]|Et[wt+1]<<8},Bn=function(Et,wt){return(Et[wt]|Et[wt+1]<<8|Et[wt+2]<<16|Et[wt+3]<<24)>>>0},ti=function(Et,wt){return Bn(Et,wt)+Bn(Et,wt+4)*4294967296},Rn=function(Et,wt,bt){for(;bt;++wt)Et[wt]=bt,bt>>>=8},Ri=function(Et,wt){var bt=wt.filename;if(Et[0]=31,Et[1]=139,Et[2]=8,Et[8]=wt.level<2?4:wt.level==9?2:0,Et[9]=3,wt.mtime!=0&&Rn(Et,4,Math.floor(new Date(wt.mtime||Date.now())/1e3)),bt){Et[3]=8;for(var Ht=0;Ht<=bt.length;++Ht)Et[Ht+10]=bt.charCodeAt(Ht)}},dr=function(Et){(Et[0]!=31||Et[1]!=139||Et[2]!=8)&&Me(6,"invalid gzip data");var wt=Et[3],bt=10;wt&4&&(bt+=(Et[10]|Et[11]<<8)+2);for(var Ht=(wt>>3&1)+(wt>>4&1);Ht>0;Ht-=!Et[bt++]);return bt+(wt&2)},Ji=function(Et){var wt=Et.length;return(Et[wt-4]|Et[wt-3]<<8|Et[wt-2]<<16|Et[wt-1]<<24)>>>0},mr=function(Et){return 10+(Et.filename?Et.filename.length+1:0)},Mr=function(Et,wt){var bt=wt.level,Ht=bt==0?0:bt<6?1:bt==9?3:2;if(Et[0]=120,Et[1]=Ht<<6|(wt.dictionary&&32),Et[1]|=31-(Et[0]<<8|Et[1])%31,wt.dictionary){var ie=Li();ie.p(wt.dictionary),Rn(Et,2,ie.d())}},ro=function(Et,wt){return((Et[0]&15)!=8||Et[0]>>4>7||(Et[0]<<8|Et[1])%31)&&Me(6,"invalid zlib data"),(Et[1]>>5&1)==+!wt&&Me(6,"invalid zlib data: "+(Et[1]&32?"need":"unexpected")+" dictionary"),(Et[1]>>3&4)+2};function Jr(Et,wt){return typeof Et=="function"&&(wt=Et,Et={}),this.ondata=wt,Et}var $r=null,Tr=null;function Wr(Et,wt,bt){return bt||(bt=wt,wt={}),typeof bt!="function"&&Me(7),nn(Et,wt,[le],function(Ht){return Te(oo(Ht.data[0],Ht.data[1]))},0,bt)}function oo(Et,wt){return Oi(Et,wt||{},0,0)}var Uo=null,is=null;function uo(Et,wt,bt){return bt||(bt=wt,wt={}),typeof bt!="function"&&Me(7),nn(Et,wt,[At],function(Ht){return Te(Ss(Ht.data[0],ke(Ht.data[1])))},1,bt)}function Ss(Et,wt){return We(Et,{i:2},wt&&wt.out,wt&&wt.dictionary)}var To=null,Xt=null;function ei(Et,wt,bt){return bt||(bt=wt,wt={}),typeof bt!="function"&&Me(7),nn(Et,wt,[le,xe,function(){return[Cs]}],function(Ht){return Te(Cs(Ht.data[0],Ht.data[1]))},2,bt)}function Cs(Et,wt){wt||(wt={});var bt=en(),Ht=Et.length;bt.p(Et);var ie=Oi(Et,wt,mr(wt),8),Yt=ie.length;return Ri(ie,wt),Rn(ie,Yt-8,bt.d()),Rn(ie,Yt-4,Ht),ie}var Os=null,ma=null;function va(Et,wt,bt){return bt||(bt=wt,wt={}),typeof bt!="function"&&Me(7),nn(Et,wt,[At,ae,function(){return[Ys]}],function(Ht){return Te(Ys(Ht.data[0],Ht.data[1]))},3,bt)}function Ys(Et,wt){var bt=dr(Et);return bt+8>Et.length&&Me(6,"invalid gzip data"),We(Et.subarray(bt,-8),{i:2},wt&&wt.out||new Ie(Ji(Et)),wt&&wt.dictionary)}var Qr=null,Dr=null;function In(Et,wt,bt){return bt||(bt=wt,wt={}),typeof bt!="function"&&Me(7),nn(Et,wt,[le,ve,function(){return[Tn]}],function(Ht){return Te(Tn(Ht.data[0],Ht.data[1]))},4,bt)}function Tn(Et,wt){wt||(wt={});var bt=Li();bt.p(Et);var Ht=Oi(Et,wt,wt.dictionary?6:2,4);return Mr(Ht,wt),Rn(Ht,Ht.length-4,bt.d()),Ht}var Oe=null,qn=null;function xi(Et,wt,bt){return bt||(bt=wt,wt={}),typeof bt!="function"&&Me(7),nn(Et,wt,[At,Ue,function(){return[An]}],function(Ht){return Te(An(Ht.data[0],ke(Ht.data[1])))},5,bt)}function An(Et,wt){return We(Et.subarray(ro(Et,wt&&wt.dictionary),-4),{i:2},wt&&wt.out,wt&&wt.dictionary)}var Le=null,wn=null;function Qn(Et,wt,bt){return bt||(bt=wt,wt={}),typeof bt!="function"&&Me(7),Et[0]==31&&Et[1]==139&&Et[2]==8?va(Et,wt,bt):(Et[0]&15)!=8||Et[0]>>4>7||(Et[0]<<8|Et[1])%31?uo(Et,wt,bt):xi(Et,wt,bt)}function Si(Et,wt){return Et[0]==31&&Et[1]==139&&Et[2]==8?Ys(Et,wt):(Et[0]&15)!=8||Et[0]>>4>7||(Et[0]<<8|Et[1])%31?Ss(Et,wt):An(Et,wt)}var Di=function(Et,wt,bt,Ht){for(var ie in Et){var Yt=Et[ie],ge=wt+ie,we=Ht;Array.isArray(Yt)&&(we=Lt(Ht,Yt[1]),Yt=Yt[0]),Yt instanceof Ie?bt[ge]=[Yt,we]:(bt[ge+="/"]=[new Ie(0),we],Di(Yt,ge,bt,Ht))}},qe=typeof TextEncoder!="undefined"&&new TextEncoder,si=typeof TextDecoder!="undefined"&&new TextDecoder,Ei=0;try{si.decode(gi,{stream:!0}),Ei=1}catch(Et){}var tr=function(Et){for(var wt="",bt=0;;){var Ht=Et[bt++],ie=(Ht>127)+(Ht>223)+(Ht>239);if(bt+ie>Et.length)return{s:wt,r:Wt(Et,bt-1)};ie?ie==3?(Ht=((Ht&15)<<18|(Et[bt++]&63)<<12|(Et[bt++]&63)<<6|Et[bt++]&63)-65536,wt+=String.fromCharCode(55296|Ht>>10,56320|Ht&1023)):ie&1?wt+=String.fromCharCode((Ht&31)<<6|Et[bt++]&63):wt+=String.fromCharCode((Ht&15)<<12|(Et[bt++]&63)<<6|Et[bt++]&63):wt+=String.fromCharCode(Ht)}},On=null,ui=null;function Cr(Et,wt){if(wt){for(var bt=new Ie(Et.length),Ht=0;Ht<Et.length;++Ht)bt[Ht]=Et.charCodeAt(Ht);return bt}if(qe)return qe.encode(Et);for(var ie=Et.length,Yt=new Ie(Et.length+(Et.length>>1)),ge=0,we=function(dn){Yt[ge++]=dn},Ht=0;Ht<ie;++Ht){if(ge+5>Yt.length){var be=new Ie(ge+8+(ie-Ht<<1));be.set(Yt),Yt=be}var $e=Et.charCodeAt(Ht);$e<128||wt?we($e):$e<2048?(we(192|$e>>6),we(128|$e&63)):$e>55295&&$e<57344?($e=65536+($e&1047552)|Et.charCodeAt(++Ht)&1023,we(240|$e>>18),we(128|$e>>12&63),we(128|$e>>6&63),we(128|$e&63)):(we(224|$e>>12),we(128|$e>>6&63),we(128|$e&63))}return Wt(Yt,0,ge)}function rr(Et,wt){if(wt){for(var bt="",Ht=0;Ht<Et.length;Ht+=16384)bt+=String.fromCharCode.apply(null,Et.subarray(Ht,Ht+16384));return bt}else{if(si)return si.decode(Et);var ie=tr(Et),Yt=ie.s,bt=ie.r;return bt.length&&Me(8),Yt}}var Gr=function(Et){return Et==1?3:Et<6?2:Et==9?1:0},or=function(Et,wt){return wt+30+gn(Et,wt+26)+gn(Et,wt+28)},Lr=function(Et,wt,bt){var Ht=gn(Et,wt+28),ie=rr(Et.subarray(wt+46,wt+46+Ht),!(gn(Et,wt+8)&2048)),Yt=wt+46+Ht,ge=Bn(Et,wt+20),we=bt&&ge==4294967295?er(Et,Yt):[ge,Bn(Et,wt+24),Bn(Et,wt+42)],be=we[0],$e=we[1],dn=we[2];return[gn(Et,wt+10),be,$e,ie,Yt+gn(Et,wt+30)+gn(Et,wt+32),dn]},er=function(Et,wt){for(;gn(Et,wt)!=1;wt+=4+gn(Et,wt+2));return[ti(Et,wt+12),ti(Et,wt+4),ti(Et,wt+20)]},Pr=function(Et){var wt=0;if(Et)for(var bt in Et){var Ht=Et[bt].length;Ht>65535&&Me(9),wt+=Ht+4}return wt},io=function(Et,wt,bt,Ht,ie,Yt,ge,we){var be=Ht.length,$e=bt.extra,dn=we&&we.length,fn=Pr($e);Rn(Et,wt,ge!=null?33639248:67324752),wt+=4,ge!=null&&(Et[wt++]=20,Et[wt++]=bt.os),Et[wt]=20,wt+=2,Et[wt++]=bt.flag<<1|(Yt<0&&8),Et[wt++]=ie&&8,Et[wt++]=bt.compression&255,Et[wt++]=bt.compression>>8;var Pn=new Date(bt.mtime==null?Date.now():bt.mtime),Ke=Pn.getFullYear()-1980;if((Ke<0||Ke>119)&&Me(10),Rn(Et,wt,Ke<<25|Pn.getMonth()+1<<21|Pn.getDate()<<16|Pn.getHours()<<11|Pn.getMinutes()<<5|Pn.getSeconds()>>1),wt+=4,Yt!=-1&&(Rn(Et,wt,bt.crc),Rn(Et,wt+4,Yt<0?-Yt-2:Yt),Rn(Et,wt+8,bt.size)),Rn(Et,wt+12,be),Rn(Et,wt+14,fn),wt+=16,ge!=null&&(Rn(Et,wt,dn),Rn(Et,wt+6,bt.attrs),Rn(Et,wt+10,ge),wt+=14),Et.set(Ht,wt),wt+=be,fn)for(var mi in $e){var Jn=$e[mi],yi=Jn.length;Rn(Et,wt,+mi),Rn(Et,wt+2,yi),Et.set(Jn,wt+4),wt+=4+yi}return dn&&(Et.set(we,wt),wt+=dn),wt},Oo=function(Et,wt,bt,Ht,ie){Rn(Et,wt,101010256),Rn(Et,wt+8,bt),Rn(Et,wt+10,bt),Rn(Et,wt+12,Ht),Rn(Et,wt+16,ie)},pi=null,_o=null,ys=null,Zo=null;function vi(Et,wt,bt){bt||(bt=wt,wt={}),typeof bt!="function"&&Me(7);var Ht={};Di(Et,"",Ht,wt);var ie=Object.keys(Ht),Yt=ie.length,ge=0,we=0,be=Yt,$e=new Array(Yt),dn=[],fn=function(){for(var yi=0;yi<dn.length;++yi)dn[yi]()},Pn=function(yi,Un){Ai(function(){bt(yi,Un)})};Ai(function(){Pn=bt});var Ke=function(){var yi=new Ie(we+22),Un=ge,di=we-ge;we=0;for(var Qi=0;Qi<be;++Qi){var ir=$e[Qi];try{var Er=ir.c.length;io(yi,we,ir,ir.f,ir.u,Er);var ao=30+ir.f.length+Pr(ir.extra),gr=we+ao;yi.set(ir.c,gr),io(yi,ge,ir,ir.f,ir.u,Er,we,ir.m),ge+=16+ao+(ir.m?ir.m.length:0),we=gr+Er}catch(Ti){return Pn(Ti,null)}}Oo(yi,ge,$e.length,di,Un),Pn(null,yi)};Yt||Ke();for(var mi=function(yi){var Un=ie[yi],di=Ht[Un],Qi=di[0],ir=di[1],Er=en(),ao=Qi.length;Er.p(Qi);var gr=Cr(Un),Ti=gr.length,xr=ir.comment,Ir=xr&&Cr(xr),$n=Ir&&Ir.length,ri=Pr(ir.extra),pe=ir.level==0?0:8,me=function(Xe,Je){if(Xe)fn(),Pn(Xe,null);else{var vn=Je.length;$e[yi]=Lt(ir,{size:ao,crc:Er.d(),c:Je,f:gr,m:Ir,u:Ti!=Un.length||Ir&&xr.length!=$n,compression:pe}),ge+=30+Ti+ri+vn,we+=76+2*(Ti+ri)+($n||0)+vn,--Yt||Ke()}};if(Ti>65535&&me(Me(11,0,1),null),!pe)me(null,Qi);else if(ao<16e4)try{me(null,oo(Qi,ir))}catch(Xe){me(Xe,null)}else dn.push(Wr(Qi,ir,me))},Jn=0;Jn<be;++Jn)mi(Jn);return fn}function ur(Et,wt){wt||(wt={});var bt={},Ht=[];Di(Et,"",bt,wt);var ie=0,Yt=0;for(var ge in bt){var we=bt[ge],be=we[0],$e=we[1],dn=$e.level==0?0:8,fn=Cr(ge),Pn=fn.length,Ke=$e.comment,mi=Ke&&Cr(Ke),Jn=mi&&mi.length,yi=Pr($e.extra);Pn>65535&&Me(11);var Un=dn?oo(be,$e):be,di=Un.length,Qi=en();Qi.p(be),Ht.push(Lt($e,{size:be.length,crc:Qi.d(),c:Un,f:fn,m:mi,u:Pn!=ge.length||mi&&Ke.length!=Jn,o:ie,compression:dn})),ie+=30+Pn+yi+di,Yt+=76+2*(Pn+yi)+(Jn||0)+di}for(var ir=new Ie(Yt+22),Er=ie,ao=Yt-ie,gr=0;gr<Ht.length;++gr){var fn=Ht[gr];io(ir,fn.o,fn,fn.f,fn.u,fn.c.length);var Ti=30+fn.f.length+Pr(fn.extra);ir.set(fn.c,fn.o+Ti),io(ir,ie,fn,fn.f,fn.u,fn.c.length,fn.o,fn.m),ie+=16+Ti+(fn.m?fn.m.length:0)}return Oo(ir,ie,Ht.length,ao,Er),ir}var _r=null,so=null,to=null,Fo=null,Ai=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(Et){Et()};function yo(Et,wt,bt){bt||(bt=wt,wt={}),typeof bt!="function"&&Me(7);var Ht=[],ie=function(){for(var yi=0;yi<Ht.length;++yi)Ht[yi]()},Yt={},ge=function(yi,Un){Ai(function(){bt(yi,Un)})};Ai(function(){ge=bt});for(var we=Et.length-22;Bn(Et,we)!=101010256;--we)if(!we||Et.length-we>65558)return ge(Me(13,0,1),null),ie;var be=gn(Et,we+8);if(be){var $e=be,dn=Bn(Et,we+16),fn=dn==4294967295||$e==65535;if(fn){var Pn=Bn(Et,we-12);fn=Bn(Et,Pn)==101075792,fn&&($e=be=Bn(Et,Pn+32),dn=Bn(Et,Pn+48))}for(var Ke=wt&&wt.filter,mi=function(yi){var Un=Lr(Et,dn,fn),di=Un[0],Qi=Un[1],ir=Un[2],Er=Un[3],ao=Un[4],gr=Un[5],Ti=or(Et,gr);dn=ao;var xr=function($n,ri){$n?(ie(),ge($n,null)):(ri&&(Yt[Er]=ri),--be||ge(null,Yt))};if(!Ke||Ke({name:Er,size:Qi,originalSize:ir,compression:di}))if(!di)xr(null,Wt(Et,Ti,Ti+Qi));else if(di==8){var Ir=Et.subarray(Ti,Ti+Qi);if(ir<524288||Qi>.8*ir)try{xr(null,Ss(Ir,{out:new Ie(ir)}))}catch($n){xr($n,null)}else Ht.push(uo(Ir,{size:ir},xr))}else xr(Me(14,"unknown compression type "+di,1),null);else xr(null,null)},Jn=0;Jn<$e;++Jn)mi(Jn)}else ge(null,{});return ie}function jr(Et,wt){for(var bt={},Ht=Et.length-22;Bn(Et,Ht)!=101010256;--Ht)(!Ht||Et.length-Ht>65558)&&Me(13);var ie=gn(Et,Ht+8);if(!ie)return{};var Yt=Bn(Et,Ht+16),ge=Yt==4294967295||ie==65535;if(ge){var we=Bn(Et,Ht-12);ge=Bn(Et,we)==101075792,ge&&(ie=Bn(Et,we+32),Yt=Bn(Et,we+48))}for(var be=wt&&wt.filter,$e=0;$e<ie;++$e){var dn=Lr(Et,Yt,ge),fn=dn[0],Pn=dn[1],Ke=dn[2],mi=dn[3],Jn=dn[4],yi=dn[5],Un=or(Et,yi);Yt=Jn,(!be||be({name:mi,size:Pn,originalSize:Ke,compression:fn}))&&(fn?fn==8?bt[mi]=Ss(Et.subarray(Un,Un+Pn),{out:new Ie(Ke)}):Me(14,"unknown compression type "+fn):bt[mi]=Wt(Et,Un,Un+Pn))}return bt}var Sr=function(){return typeof window!="undefined"?window:typeof Ft.g!="undefined"?Ft.g:typeof self!="undefined"?self:this}();function Pi(){Sr.console&&typeof Sr.console.log=="function"&&Sr.console.log.apply(Sr.console,arguments)}var wo={log:Pi,warn:function(Et){Sr.console&&(typeof Sr.console.warn=="function"?Sr.console.warn.apply(Sr.console,arguments):Pi.call(null,arguments))},error:function(Et){Sr.console&&(typeof Sr.console.error=="function"?Sr.console.error.apply(Sr.console,arguments):Pi(Et))}};function Ci(Et,wt,bt){var Ht=new XMLHttpRequest;Ht.open("GET",Et),Ht.responseType="blob",Ht.onload=function(){Js(Ht.response,wt,bt)},Ht.onerror=function(){wo.error("could not download file")},Ht.send()}function Xo(Et){var wt=new XMLHttpRequest;wt.open("HEAD",Et,!1);try{wt.send()}catch(bt){}return wt.status>=200&&wt.status<=299}function ua(Et){try{Et.dispatchEvent(new MouseEvent("click"))}catch(bt){var wt=document.createEvent("MouseEvents");wt.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Et.dispatchEvent(wt)}}var xs,da,Js=Sr.saveAs||((typeof window=="undefined"?"undefined":(0,Mt.Z)(window))!=="object"||window!==Sr?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(Et,wt,bt){var Ht=Sr.URL||Sr.webkitURL,ie=document.createElement("a");wt=wt||Et.name||"download",ie.download=wt,ie.rel="noopener",typeof Et=="string"?(ie.href=Et,ie.origin!==location.origin?Xo(ie.href)?Ci(Et,wt,bt):ua(ie,ie.target="_blank"):ua(ie)):(ie.href=Ht.createObjectURL(Et),setTimeout(function(){Ht.revokeObjectURL(ie.href)},4e4),setTimeout(function(){ua(ie)},0))}:"msSaveOrOpenBlob"in navigator?function(Et,wt,bt){if(wt=wt||Et.name||"download",typeof Et=="string")if(Xo(Et))Ci(Et,wt,bt);else{var Ht=document.createElement("a");Ht.href=Et,Ht.target="_blank",setTimeout(function(){ua(Ht)})}else navigator.msSaveOrOpenBlob(function(ie,Yt){return Yt===void 0?Yt={autoBom:!1}:(0,Mt.Z)(Yt)!=="object"&&(wo.warn("Deprecated: Expected third argument to be a object"),Yt={autoBom:!Yt}),Yt.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ie.type)?new Blob(["\uFEFF",ie],{type:ie.type}):ie}(Et,bt),wt)}:function(Et,wt,bt,Ht){if((Ht=Ht||open("","_blank"))&&(Ht.document.title=Ht.document.body.innerText="downloading..."),typeof Et=="string")return Ci(Et,wt,bt);var ie=Et.type==="application/octet-stream",Yt=/constructor/i.test(Sr.HTMLElement)||Sr.safari,ge=/CriOS\/[\d]+/.test(navigator.userAgent);if((ge||ie&&Yt)&&(typeof FileReader=="undefined"?"undefined":(0,Mt.Z)(FileReader))==="object"){var we=new FileReader;we.onloadend=function(){var dn=we.result;dn=ge?dn:dn.replace(/^data:[^;]*;/,"data:attachment/file;"),Ht?Ht.location.href=dn:location=dn,Ht=null},we.readAsDataURL(Et)}else{var be=Sr.URL||Sr.webkitURL,$e=be.createObjectURL(Et);Ht?Ht.location=$e:location.href=$e,Ht=null,setTimeout(function(){be.revokeObjectURL($e)},4e4)}});function Lo(Et){var wt;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 bt=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(we){return[parseInt(we[1]),parseInt(we[2]),parseInt(we[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(we){return[parseInt(we[1],16),parseInt(we[2],16),parseInt(we[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(we){return[parseInt(we[1]+we[1],16),parseInt(we[2]+we[2],16),parseInt(we[3]+we[3],16)]}}],Ht=0;Ht<bt.length;Ht++){var ie=bt[Ht].re,Yt=bt[Ht].process,ge=ie.exec(Et);ge&&(wt=Yt(ge),this.r=wt[0],this.g=wt[1],this.b=wt[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 we=this.r.toString(16),be=this.g.toString(16),$e=this.b.toString(16);return we.length==1&&(we="0"+we),be.length==1&&(be="0"+be),$e.length==1&&($e="0"+$e),"#"+we+be+$e}}function Do(Et,wt){var bt=Et[0],Ht=Et[1],ie=Et[2],Yt=Et[3];bt=hs(bt,Ht,ie,Yt,wt[0],7,-680876936),Yt=hs(Yt,bt,Ht,ie,wt[1],12,-389564586),ie=hs(ie,Yt,bt,Ht,wt[2],17,606105819),Ht=hs(Ht,ie,Yt,bt,wt[3],22,-1044525330),bt=hs(bt,Ht,ie,Yt,wt[4],7,-176418897),Yt=hs(Yt,bt,Ht,ie,wt[5],12,1200080426),ie=hs(ie,Yt,bt,Ht,wt[6],17,-1473231341),Ht=hs(Ht,ie,Yt,bt,wt[7],22,-45705983),bt=hs(bt,Ht,ie,Yt,wt[8],7,1770035416),Yt=hs(Yt,bt,Ht,ie,wt[9],12,-1958414417),ie=hs(ie,Yt,bt,Ht,wt[10],17,-42063),Ht=hs(Ht,ie,Yt,bt,wt[11],22,-1990404162),bt=hs(bt,Ht,ie,Yt,wt[12],7,1804603682),Yt=hs(Yt,bt,Ht,ie,wt[13],12,-40341101),ie=hs(ie,Yt,bt,Ht,wt[14],17,-1502002290),bt=wr(bt,Ht=hs(Ht,ie,Yt,bt,wt[15],22,1236535329),ie,Yt,wt[1],5,-165796510),Yt=wr(Yt,bt,Ht,ie,wt[6],9,-1069501632),ie=wr(ie,Yt,bt,Ht,wt[11],14,643717713),Ht=wr(Ht,ie,Yt,bt,wt[0],20,-373897302),bt=wr(bt,Ht,ie,Yt,wt[5],5,-701558691),Yt=wr(Yt,bt,Ht,ie,wt[10],9,38016083),ie=wr(ie,Yt,bt,Ht,wt[15],14,-660478335),Ht=wr(Ht,ie,Yt,bt,wt[4],20,-405537848),bt=wr(bt,Ht,ie,Yt,wt[9],5,568446438),Yt=wr(Yt,bt,Ht,ie,wt[14],9,-1019803690),ie=wr(ie,Yt,bt,Ht,wt[3],14,-187363961),Ht=wr(Ht,ie,Yt,bt,wt[8],20,1163531501),bt=wr(bt,Ht,ie,Yt,wt[13],5,-1444681467),Yt=wr(Yt,bt,Ht,ie,wt[2],9,-51403784),ie=wr(ie,Yt,bt,Ht,wt[7],14,1735328473),bt=Ne(bt,Ht=wr(Ht,ie,Yt,bt,wt[12],20,-1926607734),ie,Yt,wt[5],4,-378558),Yt=Ne(Yt,bt,Ht,ie,wt[8],11,-2022574463),ie=Ne(ie,Yt,bt,Ht,wt[11],16,1839030562),Ht=Ne(Ht,ie,Yt,bt,wt[14],23,-35309556),bt=Ne(bt,Ht,ie,Yt,wt[1],4,-1530992060),Yt=Ne(Yt,bt,Ht,ie,wt[4],11,1272893353),ie=Ne(ie,Yt,bt,Ht,wt[7],16,-155497632),Ht=Ne(Ht,ie,Yt,bt,wt[10],23,-1094730640),bt=Ne(bt,Ht,ie,Yt,wt[13],4,681279174),Yt=Ne(Yt,bt,Ht,ie,wt[0],11,-358537222),ie=Ne(ie,Yt,bt,Ht,wt[3],16,-722521979),Ht=Ne(Ht,ie,Yt,bt,wt[6],23,76029189),bt=Ne(bt,Ht,ie,Yt,wt[9],4,-640364487),Yt=Ne(Yt,bt,Ht,ie,wt[12],11,-421815835),ie=Ne(ie,Yt,bt,Ht,wt[15],16,530742520),bt=ds(bt,Ht=Ne(Ht,ie,Yt,bt,wt[2],23,-995338651),ie,Yt,wt[0],6,-198630844),Yt=ds(Yt,bt,Ht,ie,wt[7],10,1126891415),ie=ds(ie,Yt,bt,Ht,wt[14],15,-1416354905),Ht=ds(Ht,ie,Yt,bt,wt[5],21,-57434055),bt=ds(bt,Ht,ie,Yt,wt[12],6,1700485571),Yt=ds(Yt,bt,Ht,ie,wt[3],10,-1894986606),ie=ds(ie,Yt,bt,Ht,wt[10],15,-1051523),Ht=ds(Ht,ie,Yt,bt,wt[1],21,-2054922799),bt=ds(bt,Ht,ie,Yt,wt[8],6,1873313359),Yt=ds(Yt,bt,Ht,ie,wt[15],10,-30611744),ie=ds(ie,Yt,bt,Ht,wt[6],15,-1560198380),Ht=ds(Ht,ie,Yt,bt,wt[13],21,1309151649),bt=ds(bt,Ht,ie,Yt,wt[4],6,-145523070),Yt=ds(Yt,bt,Ht,ie,wt[11],10,-1120210379),ie=ds(ie,Yt,bt,Ht,wt[2],15,718787259),Ht=ds(Ht,ie,Yt,bt,wt[9],21,-343485551),Et[0]=Wo(bt,Et[0]),Et[1]=Wo(Ht,Et[1]),Et[2]=Wo(ie,Et[2]),Et[3]=Wo(Yt,Et[3])}function As(Et,wt,bt,Ht,ie,Yt){return wt=Wo(Wo(wt,Et),Wo(Ht,Yt)),Wo(wt<<ie|wt>>>32-ie,bt)}function hs(Et,wt,bt,Ht,ie,Yt,ge){return As(wt&bt|~wt&Ht,Et,wt,ie,Yt,ge)}function wr(Et,wt,bt,Ht,ie,Yt,ge){return As(wt&Ht|bt&~Ht,Et,wt,ie,Yt,ge)}function Ne(Et,wt,bt,Ht,ie,Yt,ge){return As(wt^bt^Ht,Et,wt,ie,Yt,ge)}function ds(Et,wt,bt,Ht,ie,Yt,ge){return As(bt^(wt|~Ht),Et,wt,ie,Yt,ge)}function ia(Et){var wt,bt=Et.length,Ht=[1732584193,-271733879,-1732584194,271733878];for(wt=64;wt<=Et.length;wt+=64)Do(Ht,ll(Et.substring(wt-64,wt)));Et=Et.substring(wt-64);var ie=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(wt=0;wt<Et.length;wt++)ie[wt>>2]|=Et.charCodeAt(wt)<<(wt%4<<3);if(ie[wt>>2]|=128<<(wt%4<<3),wt>55)for(Do(Ht,ie),wt=0;wt<16;wt++)ie[wt]=0;return ie[14]=8*bt,Do(Ht,ie),Ht}function ll(Et){var wt,bt=[];for(wt=0;wt<64;wt+=4)bt[wt>>2]=Et.charCodeAt(wt)+(Et.charCodeAt(wt+1)<<8)+(Et.charCodeAt(wt+2)<<16)+(Et.charCodeAt(wt+3)<<24);return bt}xs=Sr.atob.bind(Sr),da=Sr.btoa.bind(Sr);var ul="0123456789abcdef".split("");function Ml(Et){for(var wt="",bt=0;bt<4;bt++)wt+=ul[Et>>8*bt+4&15]+ul[Et>>8*bt&15];return wt}function ls(Et){return String.fromCharCode((255&Et)>>0,(65280&Et)>>8,(16711680&Et)>>16,(4278190080&Et)>>24)}function Go(Et){return ia(Et).map(ls).join("")}var Ns=function(Et){for(var wt=0;wt<Et.length;wt++)Et[wt]=Ml(Et[wt]);return Et.join("")}(ia("hello"))!="5d41402abc4b2a76b9719d911017c592";function Wo(Et,wt){if(Ns){var bt=(65535&Et)+(65535&wt);return(Et>>16)+(wt>>16)+(bt>>16)<<16|65535&bt}return Et+wt&4294967295}function Gs(Et,wt){var bt,Ht,ie,Yt;if(Et!==bt){for(var ge=(ie=Et,Yt=1+(256/Et.length>>0),new Array(Yt+1).join(ie)),we=[],be=0;be<256;be++)we[be]=be;var $e=0;for(be=0;be<256;be++){var dn=we[be];$e=($e+dn+ge.charCodeAt(be))%256,we[be]=we[$e],we[$e]=dn}bt=Et,Ht=we}else we=Ht;var fn=wt.length,Pn=0,Ke=0,mi="";for(be=0;be<fn;be++)Ke=(Ke+(dn=we[Pn=(Pn+1)%256]))%256,we[Pn]=we[Ke],we[Ke]=dn,ge=we[(we[Pn]+we[Ke])%256],mi+=String.fromCharCode(wt.charCodeAt(be)^ge);return mi}var wl={print:4,modify:8,copy:16,"annot-forms":32};function ho(Et,wt,bt,Ht){this.v=1,this.r=2;var ie=192;Et.forEach(function(we){if(wl.perm!==void 0)throw new Error("Invalid permission: "+we);ie+=wl[we]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var Yt=(wt+this.padding).substr(0,32),ge=(bt+this.padding).substr(0,32);this.O=this.processOwnerPassword(Yt,ge),this.P=-(1+(255^ie)),this.encryptionKey=Go(Yt+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(Ht)).substr(0,5),this.U=Gs(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 wt="",bt=Et.length,Ht=0;Ht<bt;Ht++){var ie=Et.charCodeAt(Ht);ie<33||ie===35||ie===37||ie===40||ie===41||ie===47||ie===60||ie===62||ie===91||ie===93||ie===123||ie===125||ie>126?wt+="#"+("0"+ie.toString(16)).slice(-2):wt+=Et[Ht]}return wt}function Vi(Et){if((0,Mt.Z)(Et)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var wt={};this.subscribe=function(bt,Ht,ie){if(ie=ie||!1,typeof bt!="string"||typeof Ht!="function"||typeof ie!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");wt.hasOwnProperty(bt)||(wt[bt]={});var Yt=Math.random().toString(35);return wt[bt][Yt]=[Ht,!!ie],Yt},this.unsubscribe=function(bt){for(var Ht in wt)if(wt[Ht][bt])return delete wt[Ht][bt],Object.keys(wt[Ht]).length===0&&delete wt[Ht],!0;return!1},this.publish=function(bt){if(wt.hasOwnProperty(bt)){var Ht=Array.prototype.slice.call(arguments,1),ie=[];for(var Yt in wt[bt]){var ge=wt[bt][Yt];try{ge[0].apply(Et,Ht)}catch(we){Sr.console&&wo.error("jsPDF PubSub Error",we.message,we)}ge[1]&&ie.push(Yt)}ie.length&&ie.forEach(this.unsubscribe)}},this.getTopics=function(){return wt}}function Po(Et){if(!(this instanceof Po))return new Po(Et);var wt="opacity,stroke-opacity".split(",");for(var bt in Et)Et.hasOwnProperty(bt)&&wt.indexOf(bt)>=0&&(this[bt]=Et[bt]);this.id="",this.objectNumber=-1}function Bs(Et,wt){this.gState=Et,this.matrix=wt,this.id="",this.objectNumber=-1}function ha(Et,wt,bt,Ht,ie){if(!(this instanceof ha))return new ha(Et,wt,bt,Ht,ie);this.type=Et==="axial"?2:3,this.coords=wt,this.colors=bt,Bs.call(this,Ht,ie)}function sa(Et,wt,bt,Ht,ie){if(!(this instanceof sa))return new sa(Et,wt,bt,Ht,ie);this.boundingBox=Et,this.xStep=wt,this.yStep=bt,this.stream="",this.cloneIndex=0,Bs.call(this,Ht,ie)}function Ro(Et){var wt,bt=typeof arguments[0]=="string"?arguments[0]:"p",Ht=arguments[1],ie=arguments[2],Yt=arguments[3],ge=[],we=1,be=16,$e="S",dn=null;(0,Mt.Z)(Et=Et||{})==="object"&&(bt=Et.orientation,Ht=Et.unit||Ht,ie=Et.format||ie,Yt=Et.compress||Et.compressPdf||Yt,(dn=Et.encryption||null)!==null&&(dn.userPassword=dn.userPassword||"",dn.ownerPassword=dn.ownerPassword||"",dn.userPermissions=dn.userPermissions||[]),we=typeof Et.userUnit=="number"?Math.abs(Et.userUnit):1,Et.precision!==void 0&&(wt=Et.precision),Et.floatPrecision!==void 0&&(be=Et.floatPrecision),$e=Et.defaultPathOperation||"S"),ge=Et.filters||(Yt===!0?["FlateEncode"]:ge),Ht=Ht||"mm",bt=(""+(bt||"P")).toLowerCase();var fn=Et.putOnlyUsedFonts||!1,Pn={},Ke={internal:{},__private__:{}};Ke.__private__.PubSub=Vi;var mi="1.3",Jn=Ke.__private__.getPdfVersion=function(){return mi};Ke.__private__.setPdfVersion=function(fe){mi=fe};var yi={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]};Ke.__private__.getPageFormats=function(){return yi};var Un=Ke.__private__.getPageFormat=function(fe){return yi[fe]};ie=ie||"a4";var di={COMPAT:"compat",ADVANCED:"advanced"},Qi=di.COMPAT;function ir(){this.saveGraphicsState(),Xn(new Fs(xo,0,0,-xo,0,$d()*xo).toString()+" cm"),this.setFontSize(this.getFontSize()/xo),$e="n",Qi=di.ADVANCED}function Er(){this.restoreGraphicsState(),$e="S",Qi=di.COMPAT}var ao=Ke.__private__.combineFontStyleAndFontWeight=function(fe,yn){if(fe=="bold"&&yn=="normal"||fe=="bold"&&yn==400||fe=="normal"&&yn=="italic"||fe=="bold"&&yn=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return yn&&(fe=yn==400||yn==="normal"?fe==="italic"?"italic":"normal":yn!=700&&yn!=="bold"||fe!=="normal"?(yn==700?"bold":yn)+""+fe:"bold"),fe};Ke.advancedAPI=function(fe){var yn=Qi===di.COMPAT;return yn&&ir.call(this),typeof fe!="function"||(fe(this),yn&&Er.call(this)),this},Ke.compatAPI=function(fe){var yn=Qi===di.ADVANCED;return yn&&Er.call(this),typeof fe!="function"||(fe(this),yn&&ir.call(this)),this},Ke.isAdvancedAPI=function(){return Qi===di.ADVANCED};var gr,Ti=function(fe){if(Qi!==di.ADVANCED)throw new Error(fe+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},xr=Ke.roundToPrecision=Ke.__private__.roundToPrecision=function(fe,yn){var wi=wt||yn;if(isNaN(fe)||isNaN(wi))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return fe.toFixed(wi).replace(/0+$/,"")};gr=Ke.hpf=Ke.__private__.hpf=typeof be=="number"?function(fe){if(isNaN(fe))throw new Error("Invalid argument passed to jsPDF.hpf");return xr(fe,be)}:be==="smart"?function(fe){if(isNaN(fe))throw new Error("Invalid argument passed to jsPDF.hpf");return xr(fe,fe>-1&&fe<1?16:5)}:function(fe){if(isNaN(fe))throw new Error("Invalid argument passed to jsPDF.hpf");return xr(fe,16)};var Ir=Ke.f2=Ke.__private__.f2=function(fe){if(isNaN(fe))throw new Error("Invalid argument passed to jsPDF.f2");return xr(fe,2)},$n=Ke.__private__.f3=function(fe){if(isNaN(fe))throw new Error("Invalid argument passed to jsPDF.f3");return xr(fe,3)},ri=Ke.scale=Ke.__private__.scale=function(fe){if(isNaN(fe))throw new Error("Invalid argument passed to jsPDF.scale");return Qi===di.COMPAT?fe*xo:Qi===di.ADVANCED?fe:void 0},pe=function(fe){return Qi===di.COMPAT?$d()-fe:Qi===di.ADVANCED?fe:void 0},me=function(fe){return ri(pe(fe))};Ke.__private__.setPrecision=Ke.setPrecision=function(fe){typeof parseInt(fe,10)=="number"&&(wt=parseInt(fe,10))};var Xe,Je="00000000000000000000000000000000",vn=Ke.__private__.getFileId=function(){return Je},rn=Ke.__private__.setFileId=function(fe){return Je=fe!==void 0&&/^[a-fA-F0-9]{32}$/.test(fe)?fe.toUpperCase():Je.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),dn!==null&&(Wu=new ho(dn.userPermissions,dn.userPassword,dn.ownerPassword,Je)),Je};Ke.setFileId=function(fe){return rn(fe),this},Ke.getFileId=function(){return vn()};var kn=Ke.__private__.convertDateToPDFDate=function(fe){var yn=fe.getTimezoneOffset(),wi=yn<0?"+":"-",_i=Math.floor(Math.abs(yn/60)),hr=Math.abs(yn%60),Ur=[wi,mn(_i),"'",mn(hr),"'"].join("");return["D:",fe.getFullYear(),mn(fe.getMonth()+1),mn(fe.getDate()),mn(fe.getHours()),mn(fe.getMinutes()),mn(fe.getSeconds()),Ur].join("")},jn=Ke.__private__.convertPDFDateToDate=function(fe){var yn=parseInt(fe.substr(2,4),10),wi=parseInt(fe.substr(6,2),10)-1,_i=parseInt(fe.substr(8,2),10),hr=parseInt(fe.substr(10,2),10),Ur=parseInt(fe.substr(12,2),10),So=parseInt(fe.substr(14,2),10);return new Date(yn,wi,_i,hr,Ur,So,0)},Yn=Ke.__private__.setCreationDate=function(fe){var yn;if(fe===void 0&&(fe=new Date),fe instanceof Date)yn=kn(fe);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(fe))throw new Error("Invalid argument passed to jsPDF.setCreationDate");yn=fe}return Xe=yn},Qe=Ke.__private__.getCreationDate=function(fe){var yn=Xe;return fe==="jsDate"&&(yn=jn(Xe)),yn};Ke.setCreationDate=function(fe){return Yn(fe),this},Ke.getCreationDate=function(fe){return Qe(fe)};var un,mn=Ke.__private__.padd2=function(fe){return("0"+parseInt(fe)).slice(-2)},Hn=Ke.__private__.padd2Hex=function(fe){return("00"+(fe=fe.toString())).substr(fe.length)},Zn=0,ii=[],Fi=[],li=0,Xi=[],Zi=[],Ar=!1,br=Fi,eo=function(){Zn=0,li=0,Fi=[],ii=[],Xi=[],ka=Kl(),Xa=Kl()};Ke.__private__.setCustomOutputDestination=function(fe){Ar=!0,br=fe};var Ii=function(fe){Ar||(br=fe)};Ke.__private__.resetCustomOutputDestination=function(){Ar=!1,br=Fi};var Xn=Ke.__private__.out=function(fe){return fe=fe.toString(),li+=fe.length+1,br.push(fe),br},Co=Ke.__private__.write=function(fe){return Xn(arguments.length===1?fe.toString():Array.prototype.join.call(arguments," "))},Br=Ke.__private__.getArrayBuffer=function(fe){for(var yn=fe.length,wi=new ArrayBuffer(yn),_i=new Uint8Array(wi);yn--;)_i[yn]=fe.charCodeAt(yn);return wi},sr=[["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]];Ke.__private__.getStandardFonts=function(){return sr};var ar=Et.fontSize||16;Ke.__private__.setFontSize=Ke.setFontSize=function(fe){return ar=Qi===di.ADVANCED?fe/xo:fe,this};var qi,pr=Ke.__private__.getFontSize=Ke.getFontSize=function(){return Qi===di.COMPAT?ar:ar*xo},Vr=Et.R2L||!1;Ke.__private__.setR2L=Ke.setR2L=function(fe){return Vr=fe,this},Ke.__private__.getR2L=Ke.getR2L=function(){return Vr};var co,fo=Ke.__private__.setZoomMode=function(fe){var yn=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(fe))qi=fe;else if(isNaN(fe)){if(yn.indexOf(fe)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+fe+'" is not recognized.');qi=fe}else qi=parseInt(fe,10)};Ke.__private__.getZoomMode=function(){return qi};var Rr,jo=Ke.__private__.setPageMode=function(fe){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(fe)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+fe+'" is not recognized.');co=fe};Ke.__private__.getPageMode=function(){return co};var us=Ke.__private__.setLayoutMode=function(fe){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(fe)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+fe+'" is not recognized.');Rr=fe};Ke.__private__.getLayoutMode=function(){return Rr},Ke.__private__.setDisplayMode=Ke.setDisplayMode=function(fe,yn,wi){return fo(fe),us(yn),jo(wi),this};var qo={title:"",subject:"",author:"",keywords:"",creator:""};Ke.__private__.getDocumentProperty=function(fe){if(Object.keys(qo).indexOf(fe)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return qo[fe]},Ke.__private__.getDocumentProperties=function(){return qo},Ke.__private__.setDocumentProperties=Ke.setProperties=Ke.setDocumentProperties=function(fe){for(var yn in qo)qo.hasOwnProperty(yn)&&fe[yn]&&(qo[yn]=fe[yn]);return this},Ke.__private__.setDocumentProperty=function(fe,yn){if(Object.keys(qo).indexOf(fe)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return qo[fe]=yn};var ns,xo,wa,$o,rs,Ps={},qs={},Ua=[],Xs={},zo={},Ko={},fs={},es=null,Ds=0,no=[],Vo=new Vi(Ke),aa=Et.hotfixes||[],Rs={},Ql={},Ll=[],Fs=function fe(yn,wi,_i,hr,Ur,So){if(!(this instanceof fe))return new fe(yn,wi,_i,hr,Ur,So);isNaN(yn)&&(yn=1),isNaN(wi)&&(wi=0),isNaN(_i)&&(_i=0),isNaN(hr)&&(hr=1),isNaN(Ur)&&(Ur=0),isNaN(So)&&(So=0),this._matrix=[yn,wi,_i,hr,Ur,So]};Object.defineProperty(Fs.prototype,"sx",{get:function(){return this._matrix[0]},set:function(fe){this._matrix[0]=fe}}),Object.defineProperty(Fs.prototype,"shy",{get:function(){return this._matrix[1]},set:function(fe){this._matrix[1]=fe}}),Object.defineProperty(Fs.prototype,"shx",{get:function(){return this._matrix[2]},set:function(fe){this._matrix[2]=fe}}),Object.defineProperty(Fs.prototype,"sy",{get:function(){return this._matrix[3]},set:function(fe){this._matrix[3]=fe}}),Object.defineProperty(Fs.prototype,"tx",{get:function(){return this._matrix[4]},set:function(fe){this._matrix[4]=fe}}),Object.defineProperty(Fs.prototype,"ty",{get:function(){return this._matrix[5]},set:function(fe){this._matrix[5]=fe}}),Object.defineProperty(Fs.prototype,"a",{get:function(){return this._matrix[0]},set:function(fe){this._matrix[0]=fe}}),Object.defineProperty(Fs.prototype,"b",{get:function(){return this._matrix[1]},set:function(fe){this._matrix[1]=fe}}),Object.defineProperty(Fs.prototype,"c",{get:function(){return this._matrix[2]},set:function(fe){this._matrix[2]=fe}}),Object.defineProperty(Fs.prototype,"d",{get:function(){return this._matrix[3]},set:function(fe){this._matrix[3]=fe}}),Object.defineProperty(Fs.prototype,"e",{get:function(){return this._matrix[4]},set:function(fe){this._matrix[4]=fe}}),Object.defineProperty(Fs.prototype,"f",{get:function(){return this._matrix[5]},set:function(fe){this._matrix[5]=fe}}),Object.defineProperty(Fs.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Fs.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Fs.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Fs.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Fs.prototype.join=function(fe){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(gr).join(fe)},Fs.prototype.multiply=function(fe){var yn=fe.sx*this.sx+fe.shy*this.shx,wi=fe.sx*this.shy+fe.shy*this.sy,_i=fe.shx*this.sx+fe.sy*this.shx,hr=fe.shx*this.shy+fe.sy*this.sy,Ur=fe.tx*this.sx+fe.ty*this.shx+this.tx,So=fe.tx*this.shy+fe.ty*this.sy+this.ty;return new Fs(yn,wi,_i,hr,Ur,So)},Fs.prototype.decompose=function(){var fe=this.sx,yn=this.shy,wi=this.shx,_i=this.sy,hr=this.tx,Ur=this.ty,So=Math.sqrt(fe*fe+yn*yn),gs=(fe/=So)*wi+(yn/=So)*_i;wi-=fe*gs,_i-=yn*gs;var $s=Math.sqrt(wi*wi+_i*_i);return gs/=$s,fe*(_i/=$s)<yn*(wi/=$s)&&(fe=-fe,yn=-yn,gs=-gs,So=-So),{scale:new Fs(So,0,0,$s,0,0),translate:new Fs(1,0,0,1,hr,Ur),rotate:new Fs(fe,yn,-yn,fe,0,0),skew:new Fs(1,0,gs,1,0,0)}},Fs.prototype.toString=function(fe){return this.join(" ")},Fs.prototype.inversed=function(){var fe=this.sx,yn=this.shy,wi=this.shx,_i=this.sy,hr=this.tx,Ur=this.ty,So=1/(fe*_i-yn*wi),gs=_i*So,$s=-yn*So,Pa=-wi*So,ba=fe*So;return new Fs(gs,$s,Pa,ba,-gs*hr-Pa*Ur,-$s*hr-ba*Ur)},Fs.prototype.applyToPoint=function(fe){var yn=fe.x*this.sx+fe.y*this.shx+this.tx,wi=fe.x*this.shy+fe.y*this.sy+this.ty;return new Kc(yn,wi)},Fs.prototype.applyToRectangle=function(fe){var yn=this.applyToPoint(fe),wi=this.applyToPoint(new Kc(fe.x+fe.w,fe.y+fe.h));return new hA(yn.x,yn.y,wi.x-yn.x,wi.y-yn.y)},Fs.prototype.clone=function(){var fe=this.sx,yn=this.shy,wi=this.shx,_i=this.sy,hr=this.tx,Ur=this.ty;return new Fs(fe,yn,wi,_i,hr,Ur)},Ke.Matrix=Fs;var ca=Ke.matrixMult=function(fe,yn){return yn.multiply(fe)},jl=new Fs(1,0,0,1,0,0);Ke.unitMatrix=Ke.identityMatrix=jl;var Ao=function(fe,yn){if(!zo[fe]){var wi=(yn instanceof ha?"Sh":"P")+(Object.keys(Xs).length+1).toString(10);yn.id=wi,zo[fe]=wi,Xs[wi]=yn,Vo.publish("addPattern",yn)}};Ke.ShadingPattern=ha,Ke.TilingPattern=sa,Ke.addShadingPattern=function(fe,yn){return Ti("addShadingPattern()"),Ao(fe,yn),this},Ke.beginTilingPattern=function(fe){Ti("beginTilingPattern()"),bA(fe.boundingBox[0],fe.boundingBox[1],fe.boundingBox[2]-fe.boundingBox[0],fe.boundingBox[3]-fe.boundingBox[1],fe.matrix)},Ke.endTilingPattern=function(fe,yn){Ti("endTilingPattern()"),yn.stream=Zi[un].join(`
|
|
|
`),Ao(fe,yn),Vo.publish("endTilingPattern",yn),Ll.pop().restore()};var Ra=Ke.__private__.newObject=function(){var fe=Kl();return ta(fe,!0),fe},Kl=Ke.__private__.newObjectDeferred=function(){return Zn++,ii[Zn]=function(){return li},Zn},ta=function(fe,yn){return yn=typeof yn=="boolean"&&yn,ii[fe]=li,yn&&Xn(fe+" 0 obj"),fe},la=Ke.__private__.newAdditionalObject=function(){var fe={objId:Kl(),content:""};return Xi.push(fe),fe},ka=Kl(),Xa=Kl(),al=Ke.__private__.decodeColorString=function(fe){var yn=fe.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 wi=parseFloat(yn[0]);yn=[wi,wi,wi,"r"]}for(var _i="#",hr=0;hr<3;hr++)_i+=("0"+Math.floor(255*parseFloat(yn[hr])).toString(16)).slice(-2);return _i},_s=Ke.__private__.encodeColorString=function(fe){var yn;typeof fe=="string"&&(fe={ch1:fe});var wi=fe.ch1,_i=fe.ch2,hr=fe.ch3,Ur=fe.ch4,So=fe.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof wi=="string"&&wi.charAt(0)!=="#"){var gs=new Lo(wi);if(gs.ok)wi=gs.toHex();else if(!/^\d*\.?\d*$/.test(wi))throw new Error('Invalid color "'+wi+'" passed to jsPDF.encodeColorString.')}if(typeof wi=="string"&&/^#[0-9A-Fa-f]{3}$/.test(wi)&&(wi="#"+wi[1]+wi[1]+wi[2]+wi[2]+wi[3]+wi[3]),typeof wi=="string"&&/^#[0-9A-Fa-f]{6}$/.test(wi)){var $s=parseInt(wi.substr(1),16);wi=$s>>16&255,_i=$s>>8&255,hr=255&$s}if(_i===void 0||Ur===void 0&&wi===_i&&_i===hr)if(typeof wi=="string")yn=wi+" "+So[0];else switch(fe.precision){case 2:yn=Ir(wi/255)+" "+So[0];break;case 3:default:yn=$n(wi/255)+" "+So[0]}else if(Ur===void 0||(0,Mt.Z)(Ur)==="object"){if(Ur&&!isNaN(Ur.a)&&Ur.a===0)return yn=["1.","1.","1.",So[1]].join(" ");if(typeof wi=="string")yn=[wi,_i,hr,So[1]].join(" ");else switch(fe.precision){case 2:yn=[Ir(wi/255),Ir(_i/255),Ir(hr/255),So[1]].join(" ");break;default:case 3:yn=[$n(wi/255),$n(_i/255),$n(hr/255),So[1]].join(" ")}}else if(typeof wi=="string")yn=[wi,_i,hr,Ur,So[2]].join(" ");else switch(fe.precision){case 2:yn=[Ir(wi),Ir(_i),Ir(hr),Ir(Ur),So[2]].join(" ");break;case 3:default:yn=[$n(wi),$n(_i),$n(hr),$n(Ur),So[2]].join(" ")}return yn},Ta=Ke.__private__.getFilters=function(){return ge},Sl=Ke.__private__.putStream=function(fe){var yn=(fe=fe||{}).data||"",wi=fe.filters||Ta(),_i=fe.alreadyAppliedFilters||[],hr=fe.addLength1||!1,Ur=yn.length,So=fe.objectId,gs=function(zl){return zl};if(dn!==null&&So===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");dn!==null&&(gs=Wu.encryptor(So,0));var $s={};wi===!0&&(wi=["FlateEncode"]);var Pa=fe.additionalKeyValues||[],ba=($s=Ro.API.processDataByFilters!==void 0?Ro.API.processDataByFilters(yn,wi):{data:yn,reverseChain:[]}).reverseChain+(Array.isArray(_i)?_i.join(" "):_i.toString());if($s.data.length!==0&&(Pa.push({key:"Length",value:$s.data.length}),hr===!0&&Pa.push({key:"Length1",value:Ur})),ba.length!=0)if(ba.split("/").length-1==1)Pa.push({key:"Filter",value:ba});else{Pa.push({key:"Filter",value:"["+ba+"]"});for(var ps=0;ps<Pa.length;ps+=1)if(Pa[ps].key==="DecodeParms"){for(var nu=[],iu=0;iu<$s.reverseChain.split("/").length-1;iu+=1)nu.push("null");nu.push(Pa[ps].value),Pa[ps].value="["+nu.join(" ")+"]"}}Xn("<<");for(var Ka=0;Ka<Pa.length;Ka++)Xn("/"+Pa[Ka].key+" "+Pa[Ka].value);Xn(">>"),$s.data.length!==0&&(Xn("stream"),Xn(gs($s.data)),Xn("endstream"))},pu=Ke.__private__.putPage=function(fe){var yn=fe.number,wi=fe.data,_i=fe.objId,hr=fe.contentsObjId;ta(_i,!0),Xn("<</Type /Page"),Xn("/Parent "+fe.rootDictionaryObjId+" 0 R"),Xn("/Resources "+fe.resourceDictionaryObjId+" 0 R"),Xn("/MediaBox ["+parseFloat(gr(fe.mediaBox.bottomLeftX))+" "+parseFloat(gr(fe.mediaBox.bottomLeftY))+" "+gr(fe.mediaBox.topRightX)+" "+gr(fe.mediaBox.topRightY)+"]"),fe.cropBox!==null&&Xn("/CropBox ["+gr(fe.cropBox.bottomLeftX)+" "+gr(fe.cropBox.bottomLeftY)+" "+gr(fe.cropBox.topRightX)+" "+gr(fe.cropBox.topRightY)+"]"),fe.bleedBox!==null&&Xn("/BleedBox ["+gr(fe.bleedBox.bottomLeftX)+" "+gr(fe.bleedBox.bottomLeftY)+" "+gr(fe.bleedBox.topRightX)+" "+gr(fe.bleedBox.topRightY)+"]"),fe.trimBox!==null&&Xn("/TrimBox ["+gr(fe.trimBox.bottomLeftX)+" "+gr(fe.trimBox.bottomLeftY)+" "+gr(fe.trimBox.topRightX)+" "+gr(fe.trimBox.topRightY)+"]"),fe.artBox!==null&&Xn("/ArtBox ["+gr(fe.artBox.bottomLeftX)+" "+gr(fe.artBox.bottomLeftY)+" "+gr(fe.artBox.topRightX)+" "+gr(fe.artBox.topRightY)+"]"),typeof fe.userUnit=="number"&&fe.userUnit!==1&&Xn("/UserUnit "+fe.userUnit),Vo.publish("putPage",{objId:_i,pageContext:no[yn],pageNumber:yn,page:wi}),Xn("/Contents "+hr+" 0 R"),Xn(">>"),Xn("endobj");var Ur=wi.join(`
|
|
|
`);return Qi===di.ADVANCED&&(Ur+=`
|
|
|
Q`),ta(hr,!0),Sl({data:Ur,filters:Ta(),objectId:hr}),Xn("endobj"),_i},au=Ke.__private__.putPages=function(){var fe,yn,wi=[];for(fe=1;fe<=Ds;fe++)no[fe].objId=Kl(),no[fe].contentsObjId=Kl();for(fe=1;fe<=Ds;fe++)wi.push(pu({number:fe,data:Zi[fe],objId:no[fe].objId,contentsObjId:no[fe].contentsObjId,mediaBox:no[fe].mediaBox,cropBox:no[fe].cropBox,bleedBox:no[fe].bleedBox,trimBox:no[fe].trimBox,artBox:no[fe].artBox,userUnit:no[fe].userUnit,rootDictionaryObjId:ka,resourceDictionaryObjId:Xa}));ta(ka,!0),Xn("<</Type /Pages");var _i="/Kids [";for(yn=0;yn<Ds;yn++)_i+=wi[yn]+" 0 R ";Xn(_i+"]"),Xn("/Count "+Ds),Xn(">>"),Xn("endobj"),Vo.publish("postPutPages")},Uu=function(fe){Vo.publish("putFont",{font:fe,out:Xn,newObject:Ra,putStream:Sl}),fe.isAlreadyPutted!==!0&&(fe.objectNumber=Ra(),Xn("<<"),Xn("/Type /Font"),Xn("/BaseFont /"+mo(fe.postScriptName)),Xn("/Subtype /Type1"),typeof fe.encoding=="string"&&Xn("/Encoding /"+fe.encoding),Xn("/FirstChar 32"),Xn("/LastChar 255"),Xn(">>"),Xn("endobj"))},Xu=function(){for(var fe in Ps)Ps.hasOwnProperty(fe)&&(fn===!1||fn===!0&&Pn.hasOwnProperty(fe))&&Uu(Ps[fe])},dh=function(fe){fe.objectNumber=Ra();var yn=[];yn.push({key:"Type",value:"/XObject"}),yn.push({key:"Subtype",value:"/Form"}),yn.push({key:"BBox",value:"["+[gr(fe.x),gr(fe.y),gr(fe.x+fe.width),gr(fe.y+fe.height)].join(" ")+"]"}),yn.push({key:"Matrix",value:"["+fe.matrix.toString()+"]"});var wi=fe.pages[1].join(`
|
|
|
`);Sl({data:wi,additionalKeyValues:yn,objectId:fe.objectNumber}),Xn("endobj")},$u=function(){for(var fe in Rs)Rs.hasOwnProperty(fe)&&dh(Rs[fe])},_a=function(fe,yn){var wi,_i=[],hr=1/(yn-1);for(wi=0;wi<1;wi+=hr)_i.push(wi);if(_i.push(1),fe[0].offset!=0){var Ur={offset:0,color:fe[0].color};fe.unshift(Ur)}if(fe[fe.length-1].offset!=1){var So={offset:1,color:fe[fe.length-1].color};fe.push(So)}for(var gs="",$s=0,Pa=0;Pa<_i.length;Pa++){for(wi=_i[Pa];wi>fe[$s+1].offset;)$s++;var ba=fe[$s].offset,ps=(wi-ba)/(fe[$s+1].offset-ba),nu=fe[$s].color,iu=fe[$s+1].color;gs+=Hn(Math.round((1-ps)*nu[0]+ps*iu[0]).toString(16))+Hn(Math.round((1-ps)*nu[1]+ps*iu[1]).toString(16))+Hn(Math.round((1-ps)*nu[2]+ps*iu[2]).toString(16))}return gs.trim()},Bu=function(fe,yn){yn||(yn=21);var wi=Ra(),_i=_a(fe.colors,yn),hr=[];hr.push({key:"FunctionType",value:"0"}),hr.push({key:"Domain",value:"[0.0 1.0]"}),hr.push({key:"Size",value:"["+yn+"]"}),hr.push({key:"BitsPerSample",value:"8"}),hr.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),hr.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Sl({data:_i,additionalKeyValues:hr,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:wi}),Xn("endobj"),fe.objectNumber=Ra(),Xn("<< /ShadingType "+fe.type),Xn("/ColorSpace /DeviceRGB");var Ur="/Coords ["+gr(parseFloat(fe.coords[0]))+" "+gr(parseFloat(fe.coords[1]))+" ";fe.type===2?Ur+=gr(parseFloat(fe.coords[2]))+" "+gr(parseFloat(fe.coords[3])):Ur+=gr(parseFloat(fe.coords[2]))+" "+gr(parseFloat(fe.coords[3]))+" "+gr(parseFloat(fe.coords[4]))+" "+gr(parseFloat(fe.coords[5])),Xn(Ur+="]"),fe.matrix&&Xn("/Matrix ["+fe.matrix.toString()+"]"),Xn("/Function "+wi+" 0 R"),Xn("/Extend [true true]"),Xn(">>"),Xn("endobj")},Ul=function(fe,yn){var wi=Kl(),_i=Ra();yn.push({resourcesOid:wi,objectOid:_i}),fe.objectNumber=_i;var hr=[];hr.push({key:"Type",value:"/Pattern"}),hr.push({key:"PatternType",value:"1"}),hr.push({key:"PaintType",value:"1"}),hr.push({key:"TilingType",value:"1"}),hr.push({key:"BBox",value:"["+fe.boundingBox.map(gr).join(" ")+"]"}),hr.push({key:"XStep",value:gr(fe.xStep)}),hr.push({key:"YStep",value:gr(fe.yStep)}),hr.push({key:"Resources",value:wi+" 0 R"}),fe.matrix&&hr.push({key:"Matrix",value:"["+fe.matrix.toString()+"]"}),Sl({data:fe.stream,additionalKeyValues:hr,objectId:fe.objectNumber}),Xn("endobj")},nl=function(fe){var yn;for(yn in Xs)Xs.hasOwnProperty(yn)&&(Xs[yn]instanceof ha?Bu(Xs[yn]):Xs[yn]instanceof sa&&Ul(Xs[yn],fe))},ph=function(fe){for(var yn in fe.objectNumber=Ra(),Xn("<<"),fe)switch(yn){case"opacity":Xn("/ca "+Ir(fe[yn]));break;case"stroke-opacity":Xn("/CA "+Ir(fe[yn]))}Xn(">>"),Xn("endobj")},Cc=function(){var fe;for(fe in Ko)Ko.hasOwnProperty(fe)&&ph(Ko[fe])},mh=function(){for(var fe in Xn("/XObject <<"),Rs)Rs.hasOwnProperty(fe)&&Rs[fe].objectNumber>=0&&Xn("/"+fe+" "+Rs[fe].objectNumber+" 0 R");Vo.publish("putXobjectDict"),Xn(">>")},ic=function(){Wu.oid=Ra(),Xn("<<"),Xn("/Filter /Standard"),Xn("/V "+Wu.v),Xn("/R "+Wu.r),Xn("/U <"+Wu.toHexString(Wu.U)+">"),Xn("/O <"+Wu.toHexString(Wu.O)+">"),Xn("/P "+Wu.P),Xn(">>"),Xn("endobj")},rc=function(){for(var fe in Xn("/Font <<"),Ps)Ps.hasOwnProperty(fe)&&(fn===!1||fn===!0&&Pn.hasOwnProperty(fe))&&Xn("/"+fe+" "+Ps[fe].objectNumber+" 0 R");Xn(">>")},vh=function(){if(Object.keys(Xs).length>0){for(var fe in Xn("/Shading <<"),Xs)Xs.hasOwnProperty(fe)&&Xs[fe]instanceof ha&&Xs[fe].objectNumber>=0&&Xn("/"+fe+" "+Xs[fe].objectNumber+" 0 R");Vo.publish("putShadingPatternDict"),Xn(">>")}},fa=function(fe){if(Object.keys(Xs).length>0){for(var yn in Xn("/Pattern <<"),Xs)Xs.hasOwnProperty(yn)&&Xs[yn]instanceof Ke.TilingPattern&&Xs[yn].objectNumber>=0&&Xs[yn].objectNumber<fe&&Xn("/"+yn+" "+Xs[yn].objectNumber+" 0 R");Vo.publish("putTilingPatternDict"),Xn(">>")}},Cl=function(){if(Object.keys(Ko).length>0){var fe;for(fe in Xn("/ExtGState <<"),Ko)Ko.hasOwnProperty(fe)&&Ko[fe].objectNumber>=0&&Xn("/"+fe+" "+Ko[fe].objectNumber+" 0 R");Vo.publish("putGStateDict"),Xn(">>")}},Ba=function(fe){ta(fe.resourcesOid,!0),Xn("<<"),Xn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),rc(),vh(),fa(fe.objectOid),Cl(),mh(),Xn(">>"),Xn("endobj")},pl=function(){var fe=[];Xu(),Cc(),$u(),nl(fe),Vo.publish("putResources"),fe.forEach(Ba),Ba({resourcesOid:Xa,objectOid:Number.MAX_SAFE_INTEGER}),Vo.publish("postPutResources")},ga=function(){Vo.publish("putAdditionalObjects");for(var fe=0;fe<Xi.length;fe++){var yn=Xi[fe];ta(yn.objId,!0),Xn(yn.content),Xn("endobj")}Vo.publish("postPutAdditionalObjects")},lu=function(fe){qs[fe.fontName]=qs[fe.fontName]||{},qs[fe.fontName][fe.fontStyle]=fe.id},Fu=function(fe,yn,wi,_i,hr){var Ur={id:"F"+(Object.keys(Ps).length+1).toString(10),postScriptName:fe,fontName:yn,fontStyle:wi,encoding:_i,isStandardFont:hr||!1,metadata:{}};return Vo.publish("addFont",{font:Ur,instance:this}),Ps[Ur.id]=Ur,lu(Ur),Ur.id},zh=function(fe){for(var yn=0,wi=sr.length;yn<wi;yn++){var _i=Fu.call(this,fe[yn][0],fe[yn][1],fe[yn][2],sr[yn][3],!0);fn===!1&&(Pn[_i]=!0);var hr=fe[yn][0].split("-");lu({id:_i,fontName:hr[0],fontStyle:hr[1]||""})}Vo.publish("addFonts",{fonts:Ps,dictionary:qs})},Ih=function(fe){return fe.foo=function(){try{return fe.apply(this,arguments)}catch(_i){var yn=_i.stack||"";~yn.indexOf(" at ")&&(yn=yn.split(" at ")[1]);var wi="Error in function "+yn.split(`
|
|
|
`)[0].split("<")[0]+": "+_i.message;if(!Sr.console)throw new Error(wi);Sr.console.error(wi,_i),Sr.alert&&alert(wi)}},fe.foo.bar=fe,fe.foo},_n=function(fe,yn){var wi,_i,hr,Ur,So,gs,$s,Pa,ba;if(hr=(yn=yn||{}).sourceEncoding||"Unicode",So=yn.outputEncoding,(yn.autoencode||So)&&Ps[ns].metadata&&Ps[ns].metadata[hr]&&Ps[ns].metadata[hr].encoding&&(Ur=Ps[ns].metadata[hr].encoding,!So&&Ps[ns].encoding&&(So=Ps[ns].encoding),!So&&Ur.codePages&&(So=Ur.codePages[0]),typeof So=="string"&&(So=Ur[So]),So)){for($s=!1,gs=[],wi=0,_i=fe.length;wi<_i;wi++)(Pa=So[fe.charCodeAt(wi)])?gs.push(String.fromCharCode(Pa)):gs.push(fe[wi]),gs[wi].charCodeAt(0)>>8&&($s=!0);fe=gs.join("")}for(wi=fe.length;$s===void 0&&wi!==0;)fe.charCodeAt(wi-1)>>8&&($s=!0),wi--;if(!$s)return fe;for(gs=yn.noBOM?[]:[254,255],wi=0,_i=fe.length;wi<_i;wi++){if((ba=(Pa=fe.charCodeAt(wi))>>8)>>8)throw new Error("Character at position "+wi+" of string '"+fe+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");gs.push(ba),gs.push(Pa-(ba<<8))}return String.fromCharCode.apply(void 0,gs)},Ru=Ke.__private__.pdfEscape=Ke.pdfEscape=function(fe,yn){return _n(fe,yn).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},kh=Ke.__private__.beginPage=function(fe){Zi[++Ds]=[],no[Ds]={objId:0,contentsObjId:0,userUnit:Number(we),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(fe[0]),topRightY:Number(fe[1])}},gc(Ds),Ii(Zi[un])},lA=function(fe,yn){var wi,_i,hr;switch(bt=yn||bt,typeof fe=="string"&&(wi=Un(fe.toLowerCase()),Array.isArray(wi)&&(_i=wi[0],hr=wi[1])),Array.isArray(fe)&&(_i=fe[0]*xo,hr=fe[1]*xo),isNaN(_i)&&(_i=ie[0],hr=ie[1]),(_i>14400||hr>14400)&&(wo.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),_i=Math.min(14400,_i),hr=Math.min(14400,hr)),ie=[_i,hr],bt.substr(0,1)){case"l":hr>_i&&(ie=[hr,_i]);break;case"p":_i>hr&&(ie=[hr,_i])}kh(ie),Ph(Mu),Xn(oc),KA!==0&&Xn(KA+" J"),bd!==0&&Xn(bd+" j"),Vo.publish("addPage",{pageNumber:Ds})},nd=function(fe){fe>0&&fe<=Ds&&(Zi.splice(fe,1),no.splice(fe,1),Ds--,un>Ds&&(un=Ds),this.setPage(un))},gc=function(fe){fe>0&&fe<=Ds&&(un=fe)},xd=Ke.__private__.getNumberOfPages=Ke.getNumberOfPages=function(){return Zi.length-1},SA=function(fe,yn,wi){var _i,hr=void 0;return wi=wi||{},fe=fe!==void 0?fe:Ps[ns].fontName,yn=yn!==void 0?yn:Ps[ns].fontStyle,_i=fe.toLowerCase(),qs[_i]!==void 0&&qs[_i][yn]!==void 0?hr=qs[_i][yn]:qs[fe]!==void 0&&qs[fe][yn]!==void 0?hr=qs[fe][yn]:wi.disableWarning===!1&&wo.warn("Unable to look up font label for font '"+fe+"', '"+yn+"'. Refer to getFontList() for available fonts."),hr||wi.noFallback||(hr=qs.times[yn])==null&&(hr=qs.times.normal),hr},Lu=Ke.__private__.putInfo=function(){var fe=Ra(),yn=function(_i){return _i};for(var wi in dn!==null&&(yn=Wu.encryptor(fe,0)),Xn("<<"),Xn("/Producer ("+Ru(yn("jsPDF "+Ro.version))+")"),qo)qo.hasOwnProperty(wi)&&qo[wi]&&Xn("/"+wi.substr(0,1).toUpperCase()+wi.substr(1)+" ("+Ru(yn(qo[wi]))+")");Xn("/CreationDate ("+Ru(yn(Xe))+")"),Xn(">>"),Xn("endobj")},jc=Ke.__private__.putCatalog=function(fe){var yn=(fe=fe||{}).rootDictionaryObjId||ka;switch(Ra(),Xn("<<"),Xn("/Type /Catalog"),Xn("/Pages "+yn+" 0 R"),qi||(qi="fullwidth"),qi){case"fullwidth":Xn("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Xn("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Xn("/OpenAction [3 0 R /Fit]");break;case"original":Xn("/OpenAction [3 0 R /XYZ null null 1]");break;default:var wi=""+qi;wi.substr(wi.length-1)==="%"&&(qi=parseInt(qi)/100),typeof qi=="number"&&Xn("/OpenAction [3 0 R /XYZ null null "+Ir(qi)+"]")}switch(Rr||(Rr="continuous"),Rr){case"continuous":Xn("/PageLayout /OneColumn");break;case"single":Xn("/PageLayout /SinglePage");break;case"two":case"twoleft":Xn("/PageLayout /TwoColumnLeft");break;case"tworight":Xn("/PageLayout /TwoColumnRight")}co&&Xn("/PageMode /"+co),Vo.publish("putCatalog"),Xn(">>"),Xn("endobj")},Kd=Ke.__private__.putTrailer=function(){Xn("trailer"),Xn("<<"),Xn("/Size "+(Zn+1)),Xn("/Root "+Zn+" 0 R"),Xn("/Info "+(Zn-1)+" 0 R"),dn!==null&&Xn("/Encrypt "+Wu.oid+" 0 R"),Xn("/ID [ <"+Je+"> <"+Je+"> ]"),Xn(">>")},id=Ke.__private__.putHeader=function(){Xn("%PDF-"+mi),Xn("%\xBA\xDF\xAC\xE0")},CA=Ke.__private__.putXRef=function(){var fe="0000000000";Xn("xref"),Xn("0 "+(Zn+1)),Xn("0000000000 65535 f ");for(var yn=1;yn<=Zn;yn++)typeof ii[yn]=="function"?Xn((fe+ii[yn]()).slice(-10)+" 00000 n "):ii[yn]!==void 0?Xn((fe+ii[yn]).slice(-10)+" 00000 n "):Xn("0000000000 00000 n ")},Uc=Ke.__private__.buildDocument=function(){eo(),Ii(Fi),Vo.publish("buildDocument"),id(),au(),ga(),pl(),dn!==null&&ic(),Lu(),jc();var fe=li;return CA(),Kd(),Xn("startxref"),Xn(""+fe),Xn("%%EOF"),Ii(Zi[un]),Fi.join(`
|
|
|
`)},Sd=Ke.__private__.getBlob=function(fe){return new Blob([Br(fe)],{type:"application/pdf"})},Yu=Ke.output=Ke.__private__.output=Ih(function(fe,yn){switch(typeof(yn=yn||{})=="string"?yn={filename:yn}:yn.filename=yn.filename||"generated.pdf",fe){case void 0:return Uc();case"save":Ke.save(yn.filename);break;case"arraybuffer":return Br(Uc());case"blob":return Sd(Uc());case"bloburi":case"bloburl":if(Sr.URL!==void 0&&typeof Sr.URL.createObjectURL=="function")return Sr.URL&&Sr.URL.createObjectURL(Sd(Uc()))||void 0;wo.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var wi="",_i=Uc();try{wi=da(_i)}catch(iu){wi=da(unescape(encodeURIComponent(_i)))}return"data:application/pdf;filename="+yn.filename+";base64,"+wi;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Sr)==="[object Window]"){var hr="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Ur=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';yn.pdfObjectUrl&&(hr=yn.pdfObjectUrl,Ur="");var So='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+hr+'"'+Ur+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(yn)+");<\/script></body></html>",gs=Sr.open();return gs!==null&&gs.document.write(So),gs}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Sr)==="[object Window]"){var $s='<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>',Pa=Sr.open();if(Pa!==null){Pa.document.write($s);var ba=this;Pa.document.documentElement.querySelector("#pdfViewer").onload=function(){Pa.document.title=yn.filename,Pa.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(ba.output("bloburl"))}}return Pa}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Sr)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var ps='<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>',nu=Sr.open();if(nu!==null&&(nu.document.write(ps),nu.document.title=yn.filename),nu||typeof safari=="undefined")return nu;break;case"datauri":case"dataurl":return Sr.document.location.href=this.output("datauristring",yn);default:return null}}),sh=function(fe){return Array.isArray(aa)===!0&&aa.indexOf(fe)>-1};switch(Ht){case"pt":xo=1;break;case"mm":xo=72/25.4;break;case"cm":xo=72/2.54;break;case"in":xo=72;break;case"px":xo=sh("px_scaling")==1?.75:96/72;break;case"pc":case"em":xo=12;break;case"ex":xo=6;break;default:if(typeof Ht!="number")throw new Error("Invalid unit: "+Ht);xo=Ht}var Wu=null;Yn(),rn();var BA=function(fe){return dn!==null?Wu.encryptor(fe,0):function(yn){return yn}},Kh=Ke.__private__.getPageInfo=Ke.getPageInfo=function(fe){if(isNaN(fe)||fe%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:no[fe].objId,pageNumber:fe,pageContext:no[fe]}},na=Ke.__private__.getPageInfoByObjId=function(fe){if(isNaN(fe)||fe%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var yn in no)if(no[yn].objId===fe)break;return Kh(yn)},Cd=Ke.__private__.getCurrentPageInfo=Ke.getCurrentPageInfo=function(){return{objId:no[un].objId,pageNumber:un,pageContext:no[un]}};Ke.addPage=function(){return lA.apply(this,arguments),this},Ke.setPage=function(){return gc.apply(this,arguments),Ii.call(this,Zi[un]),this},Ke.insertPage=function(fe){return this.addPage(),this.movePage(un,fe),this},Ke.movePage=function(fe,yn){var wi,_i;if(fe>yn){wi=Zi[fe],_i=no[fe];for(var hr=fe;hr>yn;hr--)Zi[hr]=Zi[hr-1],no[hr]=no[hr-1];Zi[yn]=wi,no[yn]=_i,this.setPage(yn)}else if(fe<yn){wi=Zi[fe],_i=no[fe];for(var Ur=fe;Ur<yn;Ur++)Zi[Ur]=Zi[Ur+1],no[Ur]=no[Ur+1];Zi[yn]=wi,no[yn]=_i,this.setPage(yn)}return this},Ke.deletePage=function(){return nd.apply(this,arguments),this},Ke.__private__.text=Ke.text=function(fe,yn,wi,_i,hr){var Ur,So,gs,$s,Pa,ba,ps,nu,iu,Ka=(_i=_i||{}).scope||this;if(typeof fe=="number"&&typeof yn=="number"&&(typeof wi=="string"||Array.isArray(wi))){var zl=wi;wi=yn,yn=fe,fe=zl}if(arguments[3]instanceof Fs?(Ti("The transform parameter of text() with a Matrix value"),iu=hr):(gs=arguments[4],$s=arguments[5],(0,Mt.Z)(ps=arguments[3])==="object"&&ps!==null||(typeof gs=="string"&&($s=gs,gs=null),typeof ps=="string"&&($s=ps,ps=null),typeof ps=="number"&&(gs=ps,ps=null),_i={flags:ps,angle:gs,align:$s})),isNaN(yn)||isNaN(wi)||fe==null)throw new Error("Invalid arguments passed to jsPDF.text");if(fe.length===0)return Ka;var Nu="",sc=!1,bh=typeof _i.lineHeightFactor=="number"?_i.lineHeightFactor:$a,ac=Ka.internal.scaleFactor;function LA(La){return La=La.split(" ").join(Array(_i.TabLen||9).join(" ")),Ru(La,ps)}function dA(La){for(var Sa,vl=La.concat(),yl=[],Bo=vl.length;Bo--;)typeof(Sa=vl.shift())=="string"?yl.push(Sa):Array.isArray(La)&&(Sa.length===1||Sa[1]===void 0&&Sa[2]===void 0)?yl.push(Sa[0]):yl.push([Sa[0],Sa[1],Sa[2]]);return yl}function MA(La,Sa){var vl;if(typeof La=="string")vl=Sa(La)[0];else if(Array.isArray(La)){for(var yl,Bo,Ca=La.concat(),Nl=[],Il=Ca.length;Il--;)typeof(yl=Ca.shift())=="string"?Nl.push(Sa(yl)[0]):Array.isArray(yl)&&typeof yl[0]=="string"&&(Bo=Sa(yl[0],yl[1],yl[2]),Nl.push([Bo[0],Bo[1],Bo[2]]));vl=Nl}return vl}var pc=!1,Fd=!0;if(typeof fe=="string")pc=!0;else if(Array.isArray(fe)){var Gc=fe.concat();So=[];for(var ml,Iu=Gc.length;Iu--;)(typeof(ml=Gc.shift())!="string"||Array.isArray(ml)&&typeof ml[0]!="string")&&(Fd=!1);pc=Fd}if(pc===!1)throw new Error('Type of text must be string or Array. "'+fe+'" is not recognized.');typeof fe=="string"&&(fe=fe.match(/[\r?\n]/)?fe.split(/\r\n|\r|\n/g):[fe]);var Yd=ar/Ka.internal.scaleFactor,Gl=Yd*(bh-1);switch(_i.baseline){case"bottom":wi-=Gl;break;case"top":wi+=Yd-Gl;break;case"hanging":wi+=Yd-2*Gl;break;case"middle":wi+=Yd/2-Gl}if((ba=_i.maxWidth||0)>0&&(typeof fe=="string"?fe=Ka.splitTextToSize(fe,ba):Object.prototype.toString.call(fe)==="[object Array]"&&(fe=fe.reduce(function(La,Sa){return La.concat(Ka.splitTextToSize(Sa,ba))},[]))),Ur={text:fe,x:yn,y:wi,options:_i,mutex:{pdfEscape:Ru,activeFontKey:ns,fonts:Ps,activeFontSize:ar}},Vo.publish("preProcessText",Ur),fe=Ur.text,gs=(_i=Ur.options).angle,!(iu instanceof Fs)&&gs&&typeof gs=="number"){gs*=Math.PI/180,_i.rotationDirection===0&&(gs=-gs),Qi===di.ADVANCED&&(gs=-gs);var Oh=Math.cos(gs),mc=Math.sin(gs);iu=new Fs(Oh,mc,-mc,Oh,0,0)}else gs&&gs instanceof Fs&&(iu=gs);Qi!==di.ADVANCED||iu||(iu=jl),(Pa=_i.charSpace||uA)!==void 0&&(Nu+=gr(ri(Pa))+` Tc
|
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(nu=_i.horizontalScale)!==void 0&&(Nu+=gr(100*nu)+` Tz
|
|
|
`),_i.lang;var qu=-1,Wl=_i.renderingMode!==void 0?_i.renderingMode:_i.stroke,Ld=Ka.internal.getCurrentPageInfo().pageContext;switch(Wl){case 0:case!1:case"fill":qu=0;break;case 1:case!0:case"stroke":qu=1;break;case 2:case"fillThenStroke":qu=2;break;case 3:case"invisible":qu=3;break;case 4:case"fillAndAddForClipping":qu=4;break;case 5:case"strokeAndAddPathForClipping":qu=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":qu=6;break;case 7:case"addToPathForClipping":qu=7}var Dh=Ld.usedRenderingMode!==void 0?Ld.usedRenderingMode:-1;qu!==-1?Nu+=qu+` Tr
|
|
|
`:Dh!==-1&&(Nu+=`0 Tr
|
|
|
`),qu!==-1&&(Ld.usedRenderingMode=qu),$s=_i.align||"left";var ah,sd=ar*bh,it=Ka.internal.pageSize.getWidth(),st=Ps[ns];Pa=_i.charSpace||uA,ba=_i.maxWidth||0,ps=Object.assign({autoencode:!0,noBOM:!0},_i.flags);var vt=[],gt=function(La){return Ka.getStringUnitWidth(La,{font:st,charSpace:Pa,fontSize:ar,doKerning:!1})*ar/ac};if(Object.prototype.toString.call(fe)==="[object Array]"){var Bt;So=dA(fe),$s!=="left"&&(ah=So.map(gt));var Jt,Se=0;if($s==="right"){yn-=ah[0],fe=[],Iu=So.length;for(var je=0;je<Iu;je++)je===0?(Jt=Vu(yn),Bt=yh(wi)):(Jt=ri(Se-ah[je]),Bt=-sd),fe.push([So[je],Jt,Bt]),Se=ah[je]}else if($s==="center"){yn-=ah[0]/2,fe=[],Iu=So.length;for(var De=0;De<Iu;De++)De===0?(Jt=Vu(yn),Bt=yh(wi)):(Jt=ri((Se-ah[De])/2),Bt=-sd),fe.push([So[De],Jt,Bt]),Se=ah[De]}else if($s==="left"){fe=[],Iu=So.length;for(var ln=0;ln<Iu;ln++)fe.push(So[ln])}else if($s==="justify"&&st.encoding==="Identity-H"){fe=[],Iu=So.length,ba=ba!==0?ba:it;for(var oi=0,pn=0;pn<Iu;pn++)if(Bt=pn===0?yh(wi):-sd,Jt=pn===0?Vu(yn):oi,pn<Iu-1){var ki=ri((ba-ah[pn])/(So[pn].split(" ").length-1)),bi=So[pn].split(" ");fe.push([bi[0]+" ",Jt,Bt]),oi=0;for(var yr=1;yr<bi.length;yr++){var kr=(gt(bi[yr-1]+" "+bi[yr])-gt(bi[yr]))*ac+ki;yr==bi.length-1?fe.push([bi[yr],kr,0]):fe.push([bi[yr]+" ",kr,0]),oi-=kr}}else fe.push([So[pn],Jt,Bt]);fe.push(["",oi,0])}else{if($s!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(fe=[],Iu=So.length,ba=ba!==0?ba:it,pn=0;pn<Iu;pn++)Bt=pn===0?yh(wi):-sd,Jt=pn===0?Vu(yn):0,pn<Iu-1?vt.push(gr(ri((ba-ah[pn])/(So[pn].split(" ").length-1)))):vt.push(0),fe.push([So[pn],Jt,Bt])}}var qr=typeof _i.R2L=="boolean"?_i.R2L:Vr;qr===!0&&(fe=MA(fe,function(La,Sa,vl){return[La.split("").reverse().join(""),Sa,vl]})),Ur={text:fe,x:yn,y:wi,options:_i,mutex:{pdfEscape:Ru,activeFontKey:ns,fonts:Ps,activeFontSize:ar}},Vo.publish("postProcessText",Ur),fe=Ur.text,sc=Ur.mutex.isHex||!1;var vo=Ps[ns].encoding;vo!=="WinAnsiEncoding"&&vo!=="StandardEncoding"||(fe=MA(fe,function(La,Sa,vl){return[LA(La),Sa,vl]})),So=dA(fe),fe=[];for(var Yo,Mo,ss,ks=0,No=1,ea=Array.isArray(So[0])?No:ks,Bl="",ku=function(La,Sa,vl){var yl="";return vl instanceof Fs?(vl=typeof _i.angle=="number"?ca(vl,new Fs(1,0,0,1,La,Sa)):ca(new Fs(1,0,0,1,La,Sa),vl),Qi===di.ADVANCED&&(vl=ca(new Fs(1,0,0,-1,0,0),vl)),yl=vl.join(" ")+` Tm
|
|
|
`):yl=gr(La)+" "+gr(Sa)+` Td
|
|
|
`,yl},dl=0;dl<So.length;dl++){switch(Bl="",ea){case No:ss=(sc?"<":"(")+So[dl][0]+(sc?">":")"),Yo=parseFloat(So[dl][1]),Mo=parseFloat(So[dl][2]);break;case ks:ss=(sc?"<":"(")+So[dl]+(sc?">":")"),Yo=Vu(yn),Mo=yh(wi)}vt!==void 0&&vt[dl]!==void 0&&(Bl=vt[dl]+` Tw
|
|
|
`),dl===0?fe.push(Bl+ku(Yo,Mo,iu)+ss):ea===ks?fe.push(Bl+ss):ea===No&&fe.push(Bl+ku(Yo,Mo,iu)+ss)}fe=ea===ks?fe.join(` Tj
|
|
|
T* `):fe.join(` Tj
|
|
|
`),fe+=` Tj
|
|
|
`;var yu=`BT
|
|
|
/`;return yu+=ns+" "+ar+` Tf
|
|
|
`,yu+=gr(ar*bh)+` TL
|
|
|
`,yu+=od+`
|
|
|
`,yu+=Nu,yu+=fe,Xn(yu+="ET"),Pn[ns]=!0,Ka};var rd=Ke.__private__.clip=Ke.clip=function(fe){return Xn(fe==="evenodd"?"W*":"W"),this};Ke.clipEvenOdd=function(){return rd("evenodd")},Ke.__private__.discardPath=Ke.discardPath=function(){return Xn("n"),this};var mu=Ke.__private__.isValidStyle=function(fe){var yn=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(fe)!==-1&&(yn=!0),yn};Ke.__private__.setDefaultPathOperation=Ke.setDefaultPathOperation=function(fe){return mu(fe)&&($e=fe),this};var Gd=Ke.__private__.getStyle=Ke.getStyle=function(fe){var yn=$e;switch(fe){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=fe}return yn},Wd=Ke.close=function(){return Xn("h"),this};Ke.stroke=function(){return Xn("S"),this},Ke.fill=function(fe){return Ju("f",fe),this},Ke.fillEvenOdd=function(fe){return Ju("f*",fe),this},Ke.fillStroke=function(fe){return Ju("B",fe),this},Ke.fillStrokeEvenOdd=function(fe){return Ju("B*",fe),this};var Ju=function(fe,yn){(0,Mt.Z)(yn)==="object"?Vd(yn,fe):Xn(fe)},Rc=function(fe){fe===null||Qi===di.ADVANCED&&fe===void 0||(fe=Gd(fe),Xn(fe))};function Bd(fe,yn,wi,_i,hr){var Ur=new sa(yn||this.boundingBox,wi||this.xStep,_i||this.yStep,this.gState,hr||this.matrix);Ur.stream=this.stream;var So=fe+"$$"+this.cloneIndex+++"$$";return Ao(So,Ur),Ur}var Vd=function(fe,yn){var wi=zo[fe.key],_i=Xs[wi];if(_i instanceof ha)Xn("q"),Xn(uu(yn)),_i.gState&&Ke.setGState(_i.gState),Xn(fe.matrix.toString()+" cm"),Xn("/"+wi+" sh"),Xn("Q");else if(_i instanceof sa){var hr=new Fs(1,0,0,-1,0,$d());fe.matrix&&(hr=hr.multiply(fe.matrix||jl),wi=Bd.call(_i,fe.key,fe.boundingBox,fe.xStep,fe.yStep,hr).id),Xn("q"),Xn("/Pattern cs"),Xn("/"+wi+" scn"),_i.gState&&Ke.setGState(_i.gState),Xn(yn),Xn("Q")}},uu=function(fe){switch(fe){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},vu=Ke.moveTo=function(fe,yn){return Xn(gr(ri(fe))+" "+gr(me(yn))+" m"),this},_c=Ke.lineTo=function(fe,yn){return Xn(gr(ri(fe))+" "+gr(me(yn))+" l"),this},Rl=Ke.curveTo=function(fe,yn,wi,_i,hr,Ur){return Xn([gr(ri(fe)),gr(me(yn)),gr(ri(wi)),gr(me(_i)),gr(ri(hr)),gr(me(Ur)),"c"].join(" ")),this};Ke.__private__.line=Ke.line=function(fe,yn,wi,_i,hr){if(isNaN(fe)||isNaN(yn)||isNaN(wi)||isNaN(_i)||!mu(hr))throw new Error("Invalid arguments passed to jsPDF.line");return Qi===di.COMPAT?this.lines([[wi-fe,_i-yn]],fe,yn,[1,1],hr||"S"):this.lines([[wi-fe,_i-yn]],fe,yn,[1,1]).stroke()},Ke.__private__.lines=Ke.lines=function(fe,yn,wi,_i,hr,Ur){var So,gs,$s,Pa,ba,ps,nu,iu,Ka,zl,Nu,sc;if(typeof fe=="number"&&(sc=wi,wi=yn,yn=fe,fe=sc),_i=_i||[1,1],Ur=Ur||!1,isNaN(yn)||isNaN(wi)||!Array.isArray(fe)||!Array.isArray(_i)||!mu(hr)||typeof Ur!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(vu(yn,wi),So=_i[0],gs=_i[1],Pa=fe.length,zl=yn,Nu=wi,$s=0;$s<Pa;$s++)(ba=fe[$s]).length===2?(zl=ba[0]*So+zl,Nu=ba[1]*gs+Nu,_c(zl,Nu)):(ps=ba[0]*So+zl,nu=ba[1]*gs+Nu,iu=ba[2]*So+zl,Ka=ba[3]*gs+Nu,zl=ba[4]*So+zl,Nu=ba[5]*gs+Nu,Rl(ps,nu,iu,Ka,zl,Nu));return Ur&&Wd(),Rc(hr),this},Ke.path=function(fe){for(var yn=0;yn<fe.length;yn++){var wi=fe[yn],_i=wi.c;switch(wi.op){case"m":vu(_i[0],_i[1]);break;case"l":_c(_i[0],_i[1]);break;case"c":Rl.apply(this,_i);break;case"h":Wd()}}return this},Ke.__private__.rect=Ke.rect=function(fe,yn,wi,_i,hr){if(isNaN(fe)||isNaN(yn)||isNaN(wi)||isNaN(_i)||!mu(hr))throw new Error("Invalid arguments passed to jsPDF.rect");return Qi===di.COMPAT&&(_i=-_i),Xn([gr(ri(fe)),gr(me(yn)),gr(ri(wi)),gr(ri(_i)),"re"].join(" ")),Rc(hr),this},Ke.__private__.triangle=Ke.triangle=function(fe,yn,wi,_i,hr,Ur,So){if(isNaN(fe)||isNaN(yn)||isNaN(wi)||isNaN(_i)||isNaN(hr)||isNaN(Ur)||!mu(So))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[wi-fe,_i-yn],[hr-wi,Ur-_i],[fe-hr,yn-Ur]],fe,yn,[1,1],So,!0),this},Ke.__private__.roundedRect=Ke.roundedRect=function(fe,yn,wi,_i,hr,Ur,So){if(isNaN(fe)||isNaN(yn)||isNaN(wi)||isNaN(_i)||isNaN(hr)||isNaN(Ur)||!mu(So))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var gs=4/3*(Math.SQRT2-1);return hr=Math.min(hr,.5*wi),Ur=Math.min(Ur,.5*_i),this.lines([[wi-2*hr,0],[hr*gs,0,hr,Ur-Ur*gs,hr,Ur],[0,_i-2*Ur],[0,Ur*gs,-hr*gs,Ur,-hr,Ur],[2*hr-wi,0],[-hr*gs,0,-hr,-Ur*gs,-hr,-Ur],[0,2*Ur-_i],[0,-Ur*gs,hr*gs,-Ur,hr,-Ur]],fe+hr,yn,[1,1],So,!0),this},Ke.__private__.ellipse=Ke.ellipse=function(fe,yn,wi,_i,hr){if(isNaN(fe)||isNaN(yn)||isNaN(wi)||isNaN(_i)||!mu(hr))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Ur=4/3*(Math.SQRT2-1)*wi,So=4/3*(Math.SQRT2-1)*_i;return vu(fe+wi,yn),Rl(fe+wi,yn-So,fe+Ur,yn-_i,fe,yn-_i),Rl(fe-Ur,yn-_i,fe-wi,yn-So,fe-wi,yn),Rl(fe-wi,yn+So,fe-Ur,yn+_i,fe,yn+_i),Rl(fe+Ur,yn+_i,fe+wi,yn+So,fe+wi,yn),Rc(hr),this},Ke.__private__.circle=Ke.circle=function(fe,yn,wi,_i){if(isNaN(fe)||isNaN(yn)||isNaN(wi)||!mu(_i))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(fe,yn,wi,wi,_i)},Ke.setFont=function(fe,yn,wi){return wi&&(yn=ao(yn,wi)),ns=SA(fe,yn,{disableWarning:!1}),this};var Oa=Ke.__private__.getFont=Ke.getFont=function(){return Ps[SA.apply(Ke,arguments)]};Ke.__private__.getFontList=Ke.getFontList=function(){var fe,yn,wi={};for(fe in qs)if(qs.hasOwnProperty(fe))for(yn in wi[fe]=[],qs[fe])qs[fe].hasOwnProperty(yn)&&wi[fe].push(yn);return wi},Ke.addFont=function(fe,yn,wi,_i,hr){var Ur=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Ur.indexOf(arguments[3])!==-1?hr=arguments[3]:arguments[3]&&Ur.indexOf(arguments[3])==-1&&(wi=ao(wi,_i)),hr=hr||"Identity-H",Fu.call(this,fe,yn,wi,hr)};var $a,Mu=Et.lineWidth||.200025,Ah=Ke.__private__.getLineWidth=Ke.getLineWidth=function(){return Mu},Ph=Ke.__private__.setLineWidth=Ke.setLineWidth=function(fe){return Mu=fe,Xn(gr(ri(fe))+" w"),this};Ke.__private__.setLineDash=Ro.API.setLineDash=Ro.API.setLineDashPattern=function(fe,yn){if(fe=fe||[],yn=yn||0,isNaN(yn)||!Array.isArray(fe))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return fe=fe.map(function(wi){return gr(ri(wi))}).join(" "),yn=gr(ri(yn)),Xn("["+fe+"] "+yn+" d"),this};var Zd=Ke.__private__.getLineHeight=Ke.getLineHeight=function(){return ar*$a};Ke.__private__.getLineHeight=Ke.getLineHeight=function(){return ar*$a};var Bc=Ke.__private__.setLineHeightFactor=Ke.setLineHeightFactor=function(fe){return typeof(fe=fe||1.15)=="number"&&($a=fe),this},Pd=Ke.__private__.getLineHeightFactor=Ke.getLineHeightFactor=function(){return $a};Bc(Et.lineHeight);var Vu=Ke.__private__.getHorizontalCoordinate=function(fe){return ri(fe)},yh=Ke.__private__.getVerticalCoordinate=function(fe){return Qi===di.ADVANCED?fe:no[un].mediaBox.topRightY-no[un].mediaBox.bottomLeftY-ri(fe)},PA=Ke.__private__.getHorizontalCoordinateString=Ke.getHorizontalCoordinateString=function(fe){return gr(Vu(fe))},Hc=Ke.__private__.getVerticalCoordinateString=Ke.getVerticalCoordinateString=function(fe){return gr(yh(fe))},oc=Et.strokeColor||"0 G";Ke.__private__.getStrokeColor=Ke.getDrawColor=function(){return al(oc)},Ke.__private__.setStrokeColor=Ke.setDrawColor=function(fe,yn,wi,_i){return oc=_s({ch1:fe,ch2:yn,ch3:wi,ch4:_i,pdfColorType:"draw",precision:2}),Xn(oc),this};var Qc=Et.fillColor||"0 g";Ke.__private__.getFillColor=Ke.getFillColor=function(){return al(Qc)},Ke.__private__.setFillColor=Ke.setFillColor=function(fe,yn,wi,_i){return Qc=_s({ch1:fe,ch2:yn,ch3:wi,ch4:_i,pdfColorType:"fill",precision:2}),Xn(Qc),this};var od=Et.textColor||"0 g",lf=Ke.__private__.getTextColor=Ke.getTextColor=function(){return al(od)};Ke.__private__.setTextColor=Ke.setTextColor=function(fe,yn,wi,_i){return od=_s({ch1:fe,ch2:yn,ch3:wi,ch4:_i,pdfColorType:"text",precision:3}),this};var uA=Et.charSpace,Pc=Ke.__private__.getCharSpace=Ke.getCharSpace=function(){return parseFloat(uA||0)};Ke.__private__.setCharSpace=Ke.setCharSpace=function(fe){if(isNaN(fe))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return uA=fe,this};var KA=0;Ke.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},Ke.__private__.setLineCap=Ke.setLineCap=function(fe){var yn=Ke.CapJoinStyles[fe];if(yn===void 0)throw new Error("Line cap style of '"+fe+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return KA=yn,Xn(yn+" J"),this};var bd=0;Ke.__private__.setLineJoin=Ke.setLineJoin=function(fe){var yn=Ke.CapJoinStyles[fe];if(yn===void 0)throw new Error("Line join style of '"+fe+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return bd=yn,Xn(yn+" j"),this},Ke.__private__.setLineMiterLimit=Ke.__private__.setMiterLimit=Ke.setLineMiterLimit=Ke.setMiterLimit=function(fe){if(fe=fe||0,isNaN(fe))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Xn(gr(ri(fe))+" M"),this},Ke.GState=Po,Ke.setGState=function(fe){(fe=typeof fe=="string"?Ko[fs[fe]]:zc(null,fe)).equals(es)||(Xn("/"+fe.id+" gs"),es=fe)};var zc=function(fe,yn){if(!fe||!fs[fe]){var wi=!1;for(var _i in Ko)if(Ko.hasOwnProperty(_i)&&Ko[_i].equals(yn)){wi=!0;break}if(wi)yn=Ko[_i];else{var hr="GS"+(Object.keys(Ko).length+1).toString(10);Ko[hr]=yn,yn.id=hr}return fe&&(fs[fe]=yn.id),Vo.publish("addGState",yn),yn}};Ke.addGState=function(fe,yn){return zc(fe,yn),this},Ke.saveGraphicsState=function(){return Xn("q"),Ua.push({key:ns,size:ar,color:od}),this},Ke.restoreGraphicsState=function(){Xn("Q");var fe=Ua.pop();return ns=fe.key,ar=fe.size,od=fe.color,es=null,this},Ke.setCurrentTransformationMatrix=function(fe){return Xn(fe.toString()+" cm"),this},Ke.comment=function(fe){return Xn("#"+fe),this};var Kc=function(fe,yn){var wi=fe||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return wi},set:function(Ur){isNaN(Ur)||(wi=parseFloat(Ur))}});var _i=yn||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return _i},set:function(Ur){isNaN(Ur)||(_i=parseFloat(Ur))}});var hr="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return hr},set:function(Ur){hr=Ur.toString()}}),this},hA=function(fe,yn,wi,_i){Kc.call(this,fe,yn),this.type="rect";var hr=wi||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return hr},set:function(So){isNaN(So)||(hr=parseFloat(So))}});var Ur=_i||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Ur},set:function(So){isNaN(So)||(Ur=parseFloat(So))}}),this},Th=function(){this.page=Ds,this.currentPage=un,this.pages=Zi.slice(0),this.pagesContext=no.slice(0),this.x=wa,this.y=$o,this.matrix=rs,this.width=Xd(un),this.height=$d(un),this.outputDestination=br,this.id="",this.objectNumber=-1};Th.prototype.restore=function(){Ds=this.page,un=this.currentPage,no=this.pagesContext,Zi=this.pages,wa=this.x,$o=this.y,rs=this.matrix,Ed(un,this.width),FA(un,this.height),br=this.outputDestination};var bA=function(fe,yn,wi,_i,hr){Ll.push(new Th),Ds=un=0,Zi=[],wa=fe,$o=yn,rs=hr,kh([wi,_i])},EA=function(fe){if(Ql[fe])Ll.pop().restore();else{var yn=new Th,wi="Xo"+(Object.keys(Rs).length+1).toString(10);yn.id=wi,Ql[fe]=wi,Rs[wi]=yn,Vo.publish("addFormObject",yn),Ll.pop().restore()}};for(var cA in Ke.beginFormObject=function(fe,yn,wi,_i,hr){return bA(fe,yn,wi,_i,hr),this},Ke.endFormObject=function(fe){return EA(fe),this},Ke.doFormObject=function(fe,yn){var wi=Rs[Ql[fe]];return Xn("q"),Xn(yn.toString()+" cm"),Xn("/"+wi.id+" Do"),Xn("Q"),this},Ke.getFormObject=function(fe){var yn=Rs[Ql[fe]];return{x:yn.x,y:yn.y,width:yn.width,height:yn.height,matrix:yn.matrix}},Ke.save=function(fe,yn){return fe=fe||"generated.pdf",(yn=yn||{}).returnPromise=yn.returnPromise||!1,yn.returnPromise===!1?(Js(Sd(Uc()),fe),typeof Js.unload=="function"&&Sr.setTimeout&&setTimeout(Js.unload,911),this):new Promise(function(wi,_i){try{var hr=Js(Sd(Uc()),fe);typeof Js.unload=="function"&&Sr.setTimeout&&setTimeout(Js.unload,911),wi(hr)}catch(Ur){_i(Ur.message)}})},Ro.API)Ro.API.hasOwnProperty(cA)&&(cA==="events"&&Ro.API.events.length?function(fe,yn){var wi,_i,hr;for(hr=yn.length-1;hr!==-1;hr--)wi=yn[hr][0],_i=yn[hr][1],fe.subscribe.apply(fe,[wi].concat(typeof _i=="function"?[_i]:_i))}(Vo,Ro.API.events):Ke[cA]=Ro.API[cA]);var Xd=Ke.getPageWidth=function(fe){return(no[fe=fe||un].mediaBox.topRightX-no[fe].mediaBox.bottomLeftX)/xo},Ed=Ke.setPageWidth=function(fe,yn){no[fe].mediaBox.topRightX=yn*xo+no[fe].mediaBox.bottomLeftX},$d=Ke.getPageHeight=function(fe){return(no[fe=fe||un].mediaBox.topRightY-no[fe].mediaBox.bottomLeftY)/xo},FA=Ke.setPageHeight=function(fe,yn){no[fe].mediaBox.topRightY=yn*xo+no[fe].mediaBox.bottomLeftY};return Ke.internal={pdfEscape:Ru,getStyle:Gd,getFont:Oa,getFontSize:pr,getCharSpace:Pc,getTextColor:lf,getLineHeight:Zd,getLineHeightFactor:Pd,getLineWidth:Ah,write:Co,getHorizontalCoordinate:Vu,getVerticalCoordinate:yh,getCoordinateString:PA,getVerticalCoordinateString:Hc,collections:{},newObject:Ra,newAdditionalObject:la,newObjectDeferred:Kl,newObjectDeferredBegin:ta,getFilters:Ta,putStream:Sl,events:Vo,scaleFactor:xo,pageSize:{getWidth:function(){return Xd(un)},setWidth:function(fe){Ed(un,fe)},getHeight:function(){return $d(un)},setHeight:function(fe){FA(un,fe)}},encryptionOptions:dn,encryption:Wu,getEncryptor:BA,output:Yu,getNumberOfPages:xd,pages:Zi,out:Xn,f2:Ir,f3:$n,getPageInfo:Kh,getPageInfoByObjId:na,getCurrentPageInfo:Cd,getPDFVersion:Jn,Point:Kc,Rectangle:hA,Matrix:Fs,hasHotfix:sh},Object.defineProperty(Ke.internal.pageSize,"width",{get:function(){return Xd(un)},set:function(fe){Ed(un,fe)},enumerable:!0,configurable:!0}),Object.defineProperty(Ke.internal.pageSize,"height",{get:function(){return $d(un)},set:function(fe){FA(un,fe)},enumerable:!0,configurable:!0}),zh.call(Ke,sr),ns="F1",lA(ie,bt),Vo.publish("initialized"),Ke}ho.prototype.lsbFirstWord=function(Et){return String.fromCharCode(Et>>0&255,Et>>8&255,Et>>16&255,Et>>24&255)},ho.prototype.toHexString=function(Et){return Et.split("").map(function(wt){return("0"+(255&wt.charCodeAt(0)).toString(16)).slice(-2)}).join("")},ho.prototype.hexToBytes=function(Et){for(var wt=[],bt=0;bt<Et.length;bt+=2)wt.push(String.fromCharCode(parseInt(Et.substr(bt,2),16)));return wt.join("")},ho.prototype.processOwnerPassword=function(Et,wt){return Gs(Go(wt).substr(0,5),Et)},ho.prototype.encryptor=function(Et,wt){var bt=Go(this.encryptionKey+String.fromCharCode(255&Et,Et>>8&255,Et>>16&255,255&wt,wt>>8&255)).substr(0,10);return function(Ht){return Gs(bt,Ht)}},Po.prototype.equals=function(Et){var wt,bt="id,objectNumber,equals";if(!Et||(0,Mt.Z)(Et)!==(0,Mt.Z)(this))return!1;var Ht=0;for(wt in this)if(!(bt.indexOf(wt)>=0)){if(this.hasOwnProperty(wt)&&!Et.hasOwnProperty(wt)||this[wt]!==Et[wt])return!1;Ht++}for(wt in Et)Et.hasOwnProperty(wt)&&bt.indexOf(wt)<0&&Ht--;return Ht===0},Ro.API={events:[]},Ro.version="3.0.0";var Ws=Ro.API,Na=1,Ol=function(Et){return Et.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Va=function(Et){return Et.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},bs=function(Et){return Et.toFixed(2)},ai=function(Et){return Et.toFixed(5)};Ws.__acroform__={};var Ia=function(Et,wt){Et.prototype=Object.create(wt.prototype),Et.prototype.constructor=Et},Ac=function(Et){return Et*Na},du=function(Et){var wt=new Za,bt=Qo.internal.getHeight(Et)||0,Ht=Qo.internal.getWidth(Et)||0;return wt.BBox=[0,0,Number(bs(Ht)),Number(bs(bt))],wt},Hh=Ws.__acroform__.setBit=function(Et,wt){if(Et=Et||0,wt=wt||0,isNaN(Et)||isNaN(wt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return Et|=1<<wt},Zr=Ws.__acroform__.clearBit=function(Et,wt){if(Et=Et||0,wt=wt||0,isNaN(Et)||isNaN(wt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return Et&=~(1<<wt)},zs=Ws.__acroform__.getBit=function(Et,wt){if(isNaN(Et)||isNaN(wt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return Et&1<<wt?1:0},Is=Ws.__acroform__.getBitForPdf=function(Et,wt){if(isNaN(Et)||isNaN(wt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return zs(Et,wt-1)},Es=Ws.__acroform__.setBitForPdf=function(Et,wt){if(isNaN(Et)||isNaN(wt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Hh(Et,wt-1)},Ks=Ws.__acroform__.clearBitForPdf=function(Et,wt){if(isNaN(Et)||isNaN(wt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Zr(Et,wt-1)},Au=Ws.__acroform__.calculateCoordinates=function(Et,wt){var bt=wt.internal.getHorizontalCoordinate,Ht=wt.internal.getVerticalCoordinate,ie=Et[0],Yt=Et[1],ge=Et[2],we=Et[3],be={};return be.lowerLeft_X=bt(ie)||0,be.lowerLeft_Y=Ht(Yt+we)||0,be.upperRight_X=bt(ie+ge)||0,be.upperRight_Y=Ht(Yt)||0,[Number(bs(be.lowerLeft_X)),Number(bs(be.lowerLeft_Y)),Number(bs(be.upperRight_X)),Number(bs(be.upperRight_Y))]},Jo=function(Et){if(Et.appearanceStreamContent)return Et.appearanceStreamContent;if(Et.V||Et.DV){var wt=[],bt=Et._V||Et.DV,Ht=Qs(Et,bt),ie=Et.scope.internal.getFont(Et.fontName,Et.fontStyle).id;wt.push("/Tx BMC"),wt.push("q"),wt.push("BT"),wt.push(Et.scope.__private__.encodeColorString(Et.color)),wt.push("/"+ie+" "+bs(Ht.fontSize)+" Tf"),wt.push("1 0 0 1 0 0 Tm"),wt.push(Ht.text),wt.push("ET"),wt.push("Q"),wt.push("EMC");var Yt=du(Et);return Yt.scope=Et.scope,Yt.stream=wt.join(`
|
|
|
`),Yt}},Qs=function(Et,wt){var bt=Et.fontSize===0?Et.maxFontSize:Et.fontSize,Ht={text:"",fontSize:""},ie=(wt=(wt=wt.substr(0,1)=="("?wt.substr(1):wt).substr(wt.length-1)==")"?wt.substr(0,wt.length-1):wt).split(" ");ie=Et.multiline?ie.map(function($n){return $n.split(`
|
|
|
`)}):ie.map(function($n){return[$n]});var Yt=bt,ge=Qo.internal.getHeight(Et)||0;ge=ge<0?-ge:ge;var we=Qo.internal.getWidth(Et)||0;we=we<0?-we:we;var be=function($n,ri,pe){if($n+1<ie.length){var me=ri+" "+ie[$n+1][0];return ws(me,Et,pe).width<=we-4}return!1};Yt++;t:for(;Yt>0;){wt="",Yt--;var $e,dn,fn=ws("3",Et,Yt).height,Pn=Et.multiline?ge-Yt:(ge-fn)/2,Ke=Pn+=2,mi=0,Jn=0,yi=0;if(Yt<=0){wt=`(...) Tj
|
|
|
`,wt+="% Width of Text: "+ws(wt,Et,Yt=12).width+", FieldWidth:"+we+`
|
|
|
`;break}for(var Un="",di=0,Qi=0;Qi<ie.length;Qi++)if(ie.hasOwnProperty(Qi)){var ir=!1;if(ie[Qi].length!==1&&yi!==ie[Qi].length-1){if((fn+2)*(di+2)+2>ge)continue t;Un+=ie[Qi][yi],ir=!0,Jn=Qi,Qi--}else{Un=(Un+=ie[Qi][yi]+" ").substr(Un.length-1)==" "?Un.substr(0,Un.length-1):Un;var Er=parseInt(Qi),ao=be(Er,Un,Yt),gr=Qi>=ie.length-1;if(ao&&!gr){Un+=" ",yi=0;continue}if(ao||gr){if(gr)Jn=Er;else if(Et.multiline&&(fn+2)*(di+2)+2>ge)continue t}else{if(!Et.multiline||(fn+2)*(di+2)+2>ge)continue t;Jn=Er}}for(var Ti="",xr=mi;xr<=Jn;xr++){var Ir=ie[xr];if(Et.multiline){if(xr===Jn){Ti+=Ir[yi]+" ",yi=(yi+1)%Ir.length;continue}if(xr===mi){Ti+=Ir[Ir.length-1]+" ";continue}}Ti+=Ir[0]+" "}switch(Ti=Ti.substr(Ti.length-1)==" "?Ti.substr(0,Ti.length-1):Ti,dn=ws(Ti,Et,Yt).width,Et.textAlign){case"right":$e=we-dn-2;break;case"center":$e=(we-dn)/2;break;case"left":default:$e=2}wt+=bs($e)+" "+bs(Ke)+` Td
|
|
|
`,wt+="("+Ol(Ti)+`) Tj
|
|
|
`,wt+=-bs($e)+` 0 Td
|
|
|
`,Ke=-(Yt+2),dn=0,mi=ir?Jn:Jn+1,di++,Un=""}break}return Ht.text=wt,Ht.fontSize=Yt,Ht},ws=function(Et,wt,bt){var Ht=wt.scope.internal.getFont(wt.fontName,wt.fontStyle),ie=wt.scope.getStringUnitWidth(Et,{font:Ht,fontSize:parseFloat(bt),charSpace:0})*parseFloat(bt);return{height:wt.scope.getStringUnitWidth("3",{font:Ht,fontSize:parseFloat(bt),charSpace:0})*parseFloat(bt)*1.5,width:ie}},Hr={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},hl=function(Et,wt){var bt={type:"reference",object:Et};wt.internal.getPageInfo(Et.page).pageContext.annotations.find(function(Ht){return Ht.type===bt.type&&Ht.object===bt.object})===void 0&&wt.internal.getPageInfo(Et.page).pageContext.annotations.push(bt)},js=function(Et,wt){for(var bt in Et)if(Et.hasOwnProperty(bt)){var Ht=bt,ie=Et[bt];wt.internal.newObjectDeferredBegin(ie.objId,!0),(0,Mt.Z)(ie)==="object"&&typeof ie.putStream=="function"&&ie.putStream(),delete Et[Ht]}},Su=function(Et,wt){if(wt.scope=Et,Et.internal!==void 0&&(Et.internal.acroformPlugin===void 0||Et.internal.acroformPlugin.isInitialized===!1)){if(El.FieldNum=0,Et.internal.acroformPlugin=JSON.parse(JSON.stringify(Hr)),Et.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Na=Et.internal.scaleFactor,Et.internal.acroformPlugin.acroFormDictionaryRoot=new rl,Et.internal.acroformPlugin.acroFormDictionaryRoot.scope=Et,Et.internal.acroformPlugin.acroFormDictionaryRoot._eventID=Et.internal.events.subscribe("postPutResources",function(){(function(bt){bt.internal.events.unsubscribe(bt.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete bt.internal.acroformPlugin.acroFormDictionaryRoot._eventID,bt.internal.acroformPlugin.printedOut=!0})(Et)}),Et.internal.events.subscribe("buildDocument",function(){(function(bt){bt.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var Ht=bt.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var ie in Ht)if(Ht.hasOwnProperty(ie)){var Yt=Ht[ie];Yt.objId=void 0,Yt.hasAnnotation&&hl(Yt,bt)}})(Et)}),Et.internal.events.subscribe("putCatalog",function(){(function(bt){if(bt.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");bt.internal.write("/AcroForm "+bt.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(Et)}),Et.internal.events.subscribe("postPutPages",function(bt){(function(Ht,ie){var Yt=!Ht;for(var ge in Ht||(ie.internal.newObjectDeferredBegin(ie.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),ie.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),Ht=Ht||ie.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(Ht.hasOwnProperty(ge)){var we=Ht[ge],be=[],$e=we.Rect;if(we.Rect&&(we.Rect=Au(we.Rect,ie)),ie.internal.newObjectDeferredBegin(we.objId,!0),we.DA=Qo.createDefaultAppearanceStream(we),(0,Mt.Z)(we)==="object"&&typeof we.getKeyValueListForStream=="function"&&(be=we.getKeyValueListForStream()),we.Rect=$e,we.hasAppearanceStream&&!we.appearanceStreamContent){var dn=Jo(we);be.push({key:"AP",value:"<</N "+dn+">>"}),ie.internal.acroformPlugin.xForms.push(dn)}if(we.appearanceStreamContent){var fn="";for(var Pn in we.appearanceStreamContent)if(we.appearanceStreamContent.hasOwnProperty(Pn)){var Ke=we.appearanceStreamContent[Pn];if(fn+="/"+Pn+" ",fn+="<<",Object.keys(Ke).length>=1||Array.isArray(Ke)){for(var ge in Ke)if(Ke.hasOwnProperty(ge)){var mi=Ke[ge];typeof mi=="function"&&(mi=mi.call(ie,we)),fn+="/"+ge+" "+mi+" ",ie.internal.acroformPlugin.xForms.indexOf(mi)>=0||ie.internal.acroformPlugin.xForms.push(mi)}}else typeof(mi=Ke)=="function"&&(mi=mi.call(ie,we)),fn+="/"+ge+" "+mi,ie.internal.acroformPlugin.xForms.indexOf(mi)>=0||ie.internal.acroformPlugin.xForms.push(mi);fn+=">>"}be.push({key:"AP",value:`<<
|
|
|
`+fn+">>"})}ie.internal.putStream({additionalKeyValues:be,objectId:we.objId}),ie.internal.out("endobj")}Yt&&js(ie.internal.acroformPlugin.xForms,ie)})(bt,Et)}),Et.internal.acroformPlugin.isInitialized=!0}},zu=Ws.__acroform__.arrayToPdfArray=function(Et,wt,bt){var Ht=function(ge){return ge};if(Array.isArray(Et)){for(var ie="[",Yt=0;Yt<Et.length;Yt++)switch(Yt!==0&&(ie+=" "),(0,Mt.Z)(Et[Yt])){case"boolean":case"number":case"object":ie+=Et[Yt].toString();break;case"string":Et[Yt].substr(0,1)!=="/"?(wt!==void 0&&bt&&(Ht=bt.internal.getEncryptor(wt)),ie+="("+Ol(Ht(Et[Yt].toString()))+")"):ie+=Et[Yt].toString()}return ie+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Xl=function(Et,wt,bt){var Ht=function(ie){return ie};return wt!==void 0&&bt&&(Ht=bt.internal.getEncryptor(wt)),(Et=Et||"").toString(),Et="("+Ol(Ht(Et))+")"},fr=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(Et){this._objId=Et}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};fr.prototype.toString=function(){return this.objId+" 0 R"},fr.prototype.putStream=function(){var Et=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:Et,objectId:this.objId}),this.scope.internal.out("endobj")},fr.prototype.getKeyValueListForStream=function(){var Et=[],wt=Object.getOwnPropertyNames(this).filter(function(Yt){return Yt!="content"&&Yt!="appearanceStreamContent"&&Yt!="scope"&&Yt!="objId"&&Yt.substring(0,1)!="_"});for(var bt in wt)if(Object.getOwnPropertyDescriptor(this,wt[bt]).configurable===!1){var Ht=wt[bt],ie=this[Ht];ie&&(Array.isArray(ie)?Et.push({key:Ht,value:zu(ie,this.objId,this.scope)}):ie instanceof fr?(ie.scope=this.scope,Et.push({key:Ht,value:ie.objId+" 0 R"})):typeof ie!="function"&&Et.push({key:Ht,value:ie}))}return Et};var Za=function(){fr.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var Et,wt=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return wt},set:function(bt){wt=bt}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(bt){Et=bt.trim()},get:function(){return Et||null}})};Ia(Za,fr);var rl=function(){fr.call(this);var Et,wt=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return wt.length>0?wt:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return wt}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(Et){var bt=function(Ht){return Ht};return this.scope&&(bt=this.scope.internal.getEncryptor(this.objId)),"("+Ol(bt(Et))+")"}},set:function(bt){Et=bt}})};Ia(rl,fr);var El=function Et(){fr.call(this);var wt=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return wt},set:function(Un){if(isNaN(Un))throw new Error('Invalid value "'+Un+'" for attribute F supplied.');wt=Un}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Is(wt,3)},set:function(Un){Un?this.F=Es(wt,3):this.F=Ks(wt,3)}});var bt=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return bt},set:function(Un){if(isNaN(Un))throw new Error('Invalid value "'+Un+'" for attribute Ff supplied.');bt=Un}});var Ht=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(Ht.length!==0)return Ht},set:function(Un){Ht=Un!==void 0?Un:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!Ht||isNaN(Ht[0])?0:Ht[0]},set:function(Un){Ht[0]=Un}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!Ht||isNaN(Ht[1])?0:Ht[1]},set:function(Un){Ht[1]=Un}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!Ht||isNaN(Ht[2])?0:Ht[2]},set:function(Un){Ht[2]=Un}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!Ht||isNaN(Ht[3])?0:Ht[3]},set:function(Un){Ht[3]=Un}});var ie="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return ie},set:function(Un){switch(Un){case"/Btn":case"/Tx":case"/Ch":case"/Sig":ie=Un;break;default:throw new Error('Invalid value "'+Un+'" for attribute FT supplied.')}}});var Yt=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!Yt||Yt.length<1){if(this instanceof Pu)return;Yt="FieldObject"+Et.FieldNum++}var Un=function(di){return di};return this.scope&&(Un=this.scope.internal.getEncryptor(this.objId)),"("+Ol(Un(Yt))+")"},set:function(Un){Yt=Un.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return Yt},set:function(Un){Yt=Un}});var ge="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return ge},set:function(Un){ge=Un}});var we="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return we},set:function(Un){we=Un}});var be=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return be},set:function(Un){be=Un}});var $e=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return $e===void 0?50/Na:$e},set:function(Un){$e=Un}});var dn="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return dn},set:function(Un){dn=Un}});var fn="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!fn||this instanceof Pu||this instanceof fu))return Xl(fn,this.objId,this.scope)},set:function(Un){Un=Un.toString(),fn=Un}});var Pn=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Pn)return this instanceof Ja?Pn:Xl(Pn,this.objId,this.scope)},set:function(Un){Un=Un.toString(),Pn=this instanceof Ja?Un:Un.substr(0,1)==="("?Va(Un.substr(1,Un.length-2)):Va(Un)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ja?Va(Pn.substr(1,Pn.length-1)):Pn},set:function(Un){Un=Un.toString(),Pn=this instanceof Ja?"/"+Un:Un}});var Ke=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(Ke)return Ke},set:function(Un){this.V=Un}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(Ke)return this instanceof Ja?Ke:Xl(Ke,this.objId,this.scope)},set:function(Un){Un=Un.toString(),Ke=this instanceof Ja?Un:Un.substr(0,1)==="("?Va(Un.substr(1,Un.length-2)):Va(Un)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ja?Va(Ke.substr(1,Ke.length-1)):Ke},set:function(Un){Un=Un.toString(),Ke=this instanceof Ja?"/"+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 mi,Jn=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return Jn},set:function(Un){Un=!!Un,Jn=Un}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(mi)return mi},set:function(Un){mi=Un}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Is(this.Ff,1)},set:function(Un){Un?this.Ff=Es(this.Ff,1):this.Ff=Ks(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Is(this.Ff,2)},set:function(Un){Un?this.Ff=Es(this.Ff,2):this.Ff=Ks(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Is(this.Ff,3)},set:function(Un){Un?this.Ff=Es(this.Ff,3):this.Ff=Ks(this.Ff,3)}});var yi=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(yi!==null)return yi},set:function(Un){if([0,1,2].indexOf(Un)===-1)throw new Error('Invalid value "'+Un+'" for attribute Q supplied.');yi=Un}}),Object.defineProperty(this,"textAlign",{get:function(){var Un;switch(yi){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:yi=2;break;case"center":case 1:yi=1;break;case"left":case 0:default:yi=0}}})};Ia(El,fr);var ou=function(){El.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(bt){Et=bt}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return Et},set:function(bt){Et=bt}});var wt=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return zu(wt,this.objId,this.scope)},set:function(bt){var Ht,ie;ie=[],typeof(Ht=bt)=="string"&&(ie=function(Yt,ge,we){we||(we=1);for(var be,$e=[];be=ge.exec(Yt);)$e.push(be[we]);return $e}(Ht,/\((.*?)\)/g)),wt=ie}}),this.getOptions=function(){return wt},this.setOptions=function(bt){wt=bt,this.sort&&wt.sort()},this.addOption=function(bt){bt=(bt=bt||"").toString(),wt.push(bt),this.sort&&wt.sort()},this.removeOption=function(bt,Ht){for(Ht=Ht||!1,bt=(bt=bt||"").toString();wt.indexOf(bt)!==-1&&(wt.splice(wt.indexOf(bt),1),Ht!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Is(this.Ff,18)},set:function(bt){bt?this.Ff=Es(this.Ff,18):this.Ff=Ks(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Is(this.Ff,19)},set:function(bt){this.combo===!0&&(bt?this.Ff=Es(this.Ff,19):this.Ff=Ks(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Is(this.Ff,20)},set:function(bt){bt?(this.Ff=Es(this.Ff,20),wt.sort()):this.Ff=Ks(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Is(this.Ff,22)},set:function(bt){bt?this.Ff=Es(this.Ff,22):this.Ff=Ks(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Is(this.Ff,23)},set:function(bt){bt?this.Ff=Es(this.Ff,23):this.Ff=Ks(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Is(this.Ff,27)},set:function(bt){bt?this.Ff=Es(this.Ff,27):this.Ff=Ks(this.Ff,27)}}),this.hasAppearanceStream=!1};Ia(ou,El);var Ya=function(){ou.call(this),this.fontName="helvetica",this.combo=!1};Ia(Ya,ou);var bo=function(){Ya.call(this),this.combo=!0};Ia(bo,Ya);var ja=function(){bo.call(this),this.edit=!0};Ia(ja,bo);var Ja=function(){El.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Is(this.Ff,15)},set:function(bt){bt?this.Ff=Es(this.Ff,15):this.Ff=Ks(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Is(this.Ff,16)},set:function(bt){bt?this.Ff=Es(this.Ff,16):this.Ff=Ks(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Is(this.Ff,17)},set:function(bt){bt?this.Ff=Es(this.Ff,17):this.Ff=Ks(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Is(this.Ff,26)},set:function(bt){bt?this.Ff=Es(this.Ff,26):this.Ff=Ks(this.Ff,26)}});var Et,wt={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var bt=function(Yt){return Yt};if(this.scope&&(bt=this.scope.internal.getEncryptor(this.objId)),Object.keys(wt).length!==0){var Ht,ie=[];for(Ht in ie.push("<<"),wt)ie.push("/"+Ht+" ("+Ol(bt(wt[Ht]))+")");return ie.push(">>"),ie.join(`
|
|
|
`)}},set:function(bt){(0,Mt.Z)(bt)==="object"&&(wt=bt)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return wt.CA||""},set:function(bt){typeof bt=="string"&&(wt.CA=bt)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Et},set:function(bt){Et=bt}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Et.substr(1,Et.length-1)},set:function(bt){Et="/"+bt}})};Ia(Ja,El);var su=function(){Ja.call(this),this.pushButton=!0};Ia(su,Ja);var $l=function(){Ja.call(this),this.radio=!0,this.pushButton=!1;var Et=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return Et},set:function(wt){Et=wt!==void 0?wt:[]}})};Ia($l,Ja);var Pu=function(){var Et,wt;El.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return Et},set:function(ie){Et=ie}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return wt},set:function(ie){wt=ie}});var bt,Ht={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var ie=function(we){return we};this.scope&&(ie=this.scope.internal.getEncryptor(this.objId));var Yt,ge=[];for(Yt in ge.push("<<"),Ht)ge.push("/"+Yt+" ("+Ol(ie(Ht[Yt]))+")");return ge.push(">>"),ge.join(`
|
|
|
`)},set:function(ie){(0,Mt.Z)(ie)==="object"&&(Ht=ie)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Ht.CA||""},set:function(ie){typeof ie=="string"&&(Ht.CA=ie)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return bt},set:function(ie){bt=ie}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return bt.substr(1,bt.length-1)},set:function(ie){bt="/"+ie}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Qo.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Ia(Pu,El),$l.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 wt in this.Kids)if(this.Kids.hasOwnProperty(wt)){var bt=this.Kids[wt];bt.appearanceStreamContent=Et.createAppearanceStream(bt.optionName),bt.caption=Et.getCA()}},$l.prototype.createOption=function(Et){var wt=new Pu;return wt.Parent=this,wt.optionName=Et,this.Kids.push(wt),Hd.call(this.scope,wt),wt};var bu=function(){Ja.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Qo.CheckBox.createAppearanceStream()};Ia(bu,Ja);var fu=function(){El.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Is(this.Ff,13)},set:function(wt){wt?this.Ff=Es(this.Ff,13):this.Ff=Ks(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Is(this.Ff,21)},set:function(wt){wt?this.Ff=Es(this.Ff,21):this.Ff=Ks(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Is(this.Ff,23)},set:function(wt){wt?this.Ff=Es(this.Ff,23):this.Ff=Ks(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Is(this.Ff,24)},set:function(wt){wt?this.Ff=Es(this.Ff,24):this.Ff=Ks(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Is(this.Ff,25)},set:function(wt){wt?this.Ff=Es(this.Ff,25):this.Ff=Ks(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Is(this.Ff,26)},set:function(wt){wt?this.Ff=Es(this.Ff,26):this.Ff=Ks(this.Ff,26)}});var Et=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return Et},set:function(wt){Et=wt}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return Et},set:function(wt){Number.isInteger(wt)&&(Et=wt)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Ia(fu,El);var eu=function(){fu.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Is(this.Ff,14)},set:function(Et){Et?this.Ff=Es(this.Ff,14):this.Ff=Ks(this.Ff,14)}}),this.password=!0};Ia(eu,fu);var Qo={CheckBox:{createAppearanceStream:function(){return{N:{On:Qo.CheckBox.YesNormal},D:{On:Qo.CheckBox.YesPushDown,Off:Qo.CheckBox.OffPushDown}}},YesPushDown:function(Et){var wt=du(Et);wt.scope=Et.scope;var bt=[],Ht=Et.scope.internal.getFont(Et.fontName,Et.fontStyle).id,ie=Et.scope.__private__.encodeColorString(Et.color),Yt=Qs(Et,Et.caption);return bt.push("0.749023 g"),bt.push("0 0 "+bs(Qo.internal.getWidth(Et))+" "+bs(Qo.internal.getHeight(Et))+" re"),bt.push("f"),bt.push("BMC"),bt.push("q"),bt.push("0 0 1 rg"),bt.push("/"+Ht+" "+bs(Yt.fontSize)+" Tf "+ie),bt.push("BT"),bt.push(Yt.text),bt.push("ET"),bt.push("Q"),bt.push("EMC"),wt.stream=bt.join(`
|
|
|
`),wt},YesNormal:function(Et){var wt=du(Et);wt.scope=Et.scope;var bt=Et.scope.internal.getFont(Et.fontName,Et.fontStyle).id,Ht=Et.scope.__private__.encodeColorString(Et.color),ie=[],Yt=Qo.internal.getHeight(Et),ge=Qo.internal.getWidth(Et),we=Qs(Et,Et.caption);return ie.push("1 g"),ie.push("0 0 "+bs(ge)+" "+bs(Yt)+" re"),ie.push("f"),ie.push("q"),ie.push("0 0 1 rg"),ie.push("0 0 "+bs(ge-1)+" "+bs(Yt-1)+" re"),ie.push("W"),ie.push("n"),ie.push("0 g"),ie.push("BT"),ie.push("/"+bt+" "+bs(we.fontSize)+" Tf "+Ht),ie.push(we.text),ie.push("ET"),ie.push("Q"),wt.stream=ie.join(`
|
|
|
`),wt},OffPushDown:function(Et){var wt=du(Et);wt.scope=Et.scope;var bt=[];return bt.push("0.749023 g"),bt.push("0 0 "+bs(Qo.internal.getWidth(Et))+" "+bs(Qo.internal.getHeight(Et))+" re"),bt.push("f"),wt.stream=bt.join(`
|
|
|
`),wt}},RadioButton:{Circle:{createAppearanceStream:function(Et){var wt={D:{Off:Qo.RadioButton.Circle.OffPushDown},N:{}};return wt.N[Et]=Qo.RadioButton.Circle.YesNormal,wt.D[Et]=Qo.RadioButton.Circle.YesPushDown,wt},getCA:function(){return"l"},YesNormal:function(Et){var wt=du(Et);wt.scope=Et.scope;var bt=[],Ht=Qo.internal.getWidth(Et)<=Qo.internal.getHeight(Et)?Qo.internal.getWidth(Et)/4:Qo.internal.getHeight(Et)/4;Ht=Number((.9*Ht).toFixed(5));var ie=Qo.internal.Bezier_C,Yt=Number((Ht*ie).toFixed(5));return bt.push("q"),bt.push("1 0 0 1 "+ai(Qo.internal.getWidth(Et)/2)+" "+ai(Qo.internal.getHeight(Et)/2)+" cm"),bt.push(Ht+" 0 m"),bt.push(Ht+" "+Yt+" "+Yt+" "+Ht+" 0 "+Ht+" c"),bt.push("-"+Yt+" "+Ht+" -"+Ht+" "+Yt+" -"+Ht+" 0 c"),bt.push("-"+Ht+" -"+Yt+" -"+Yt+" -"+Ht+" 0 -"+Ht+" c"),bt.push(Yt+" -"+Ht+" "+Ht+" -"+Yt+" "+Ht+" 0 c"),bt.push("f"),bt.push("Q"),wt.stream=bt.join(`
|
|
|
`),wt},YesPushDown:function(Et){var wt=du(Et);wt.scope=Et.scope;var bt=[],Ht=Qo.internal.getWidth(Et)<=Qo.internal.getHeight(Et)?Qo.internal.getWidth(Et)/4:Qo.internal.getHeight(Et)/4;Ht=Number((.9*Ht).toFixed(5));var ie=Number((2*Ht).toFixed(5)),Yt=Number((ie*Qo.internal.Bezier_C).toFixed(5)),ge=Number((Ht*Qo.internal.Bezier_C).toFixed(5));return bt.push("0.749023 g"),bt.push("q"),bt.push("1 0 0 1 "+ai(Qo.internal.getWidth(Et)/2)+" "+ai(Qo.internal.getHeight(Et)/2)+" cm"),bt.push(ie+" 0 m"),bt.push(ie+" "+Yt+" "+Yt+" "+ie+" 0 "+ie+" c"),bt.push("-"+Yt+" "+ie+" -"+ie+" "+Yt+" -"+ie+" 0 c"),bt.push("-"+ie+" -"+Yt+" -"+Yt+" -"+ie+" 0 -"+ie+" c"),bt.push(Yt+" -"+ie+" "+ie+" -"+Yt+" "+ie+" 0 c"),bt.push("f"),bt.push("Q"),bt.push("0 g"),bt.push("q"),bt.push("1 0 0 1 "+ai(Qo.internal.getWidth(Et)/2)+" "+ai(Qo.internal.getHeight(Et)/2)+" cm"),bt.push(Ht+" 0 m"),bt.push(Ht+" "+ge+" "+ge+" "+Ht+" 0 "+Ht+" c"),bt.push("-"+ge+" "+Ht+" -"+Ht+" "+ge+" -"+Ht+" 0 c"),bt.push("-"+Ht+" -"+ge+" -"+ge+" -"+Ht+" 0 -"+Ht+" c"),bt.push(ge+" -"+Ht+" "+Ht+" -"+ge+" "+Ht+" 0 c"),bt.push("f"),bt.push("Q"),wt.stream=bt.join(`
|
|
|
`),wt},OffPushDown:function(Et){var wt=du(Et);wt.scope=Et.scope;var bt=[],Ht=Qo.internal.getWidth(Et)<=Qo.internal.getHeight(Et)?Qo.internal.getWidth(Et)/4:Qo.internal.getHeight(Et)/4;Ht=Number((.9*Ht).toFixed(5));var ie=Number((2*Ht).toFixed(5)),Yt=Number((ie*Qo.internal.Bezier_C).toFixed(5));return bt.push("0.749023 g"),bt.push("q"),bt.push("1 0 0 1 "+ai(Qo.internal.getWidth(Et)/2)+" "+ai(Qo.internal.getHeight(Et)/2)+" cm"),bt.push(ie+" 0 m"),bt.push(ie+" "+Yt+" "+Yt+" "+ie+" 0 "+ie+" c"),bt.push("-"+Yt+" "+ie+" -"+ie+" "+Yt+" -"+ie+" 0 c"),bt.push("-"+ie+" -"+Yt+" -"+Yt+" -"+ie+" 0 -"+ie+" c"),bt.push(Yt+" -"+ie+" "+ie+" -"+Yt+" "+ie+" 0 c"),bt.push("f"),bt.push("Q"),wt.stream=bt.join(`
|
|
|
`),wt}},Cross:{createAppearanceStream:function(Et){var wt={D:{Off:Qo.RadioButton.Cross.OffPushDown},N:{}};return wt.N[Et]=Qo.RadioButton.Cross.YesNormal,wt.D[Et]=Qo.RadioButton.Cross.YesPushDown,wt},getCA:function(){return"8"},YesNormal:function(Et){var wt=du(Et);wt.scope=Et.scope;var bt=[],Ht=Qo.internal.calculateCross(Et);return bt.push("q"),bt.push("1 1 "+bs(Qo.internal.getWidth(Et)-2)+" "+bs(Qo.internal.getHeight(Et)-2)+" re"),bt.push("W"),bt.push("n"),bt.push(bs(Ht.x1.x)+" "+bs(Ht.x1.y)+" m"),bt.push(bs(Ht.x2.x)+" "+bs(Ht.x2.y)+" l"),bt.push(bs(Ht.x4.x)+" "+bs(Ht.x4.y)+" m"),bt.push(bs(Ht.x3.x)+" "+bs(Ht.x3.y)+" l"),bt.push("s"),bt.push("Q"),wt.stream=bt.join(`
|
|
|
`),wt},YesPushDown:function(Et){var wt=du(Et);wt.scope=Et.scope;var bt=Qo.internal.calculateCross(Et),Ht=[];return Ht.push("0.749023 g"),Ht.push("0 0 "+bs(Qo.internal.getWidth(Et))+" "+bs(Qo.internal.getHeight(Et))+" re"),Ht.push("f"),Ht.push("q"),Ht.push("1 1 "+bs(Qo.internal.getWidth(Et)-2)+" "+bs(Qo.internal.getHeight(Et)-2)+" re"),Ht.push("W"),Ht.push("n"),Ht.push(bs(bt.x1.x)+" "+bs(bt.x1.y)+" m"),Ht.push(bs(bt.x2.x)+" "+bs(bt.x2.y)+" l"),Ht.push(bs(bt.x4.x)+" "+bs(bt.x4.y)+" m"),Ht.push(bs(bt.x3.x)+" "+bs(bt.x3.y)+" l"),Ht.push("s"),Ht.push("Q"),wt.stream=Ht.join(`
|
|
|
`),wt},OffPushDown:function(Et){var wt=du(Et);wt.scope=Et.scope;var bt=[];return bt.push("0.749023 g"),bt.push("0 0 "+bs(Qo.internal.getWidth(Et))+" "+bs(Qo.internal.getHeight(Et))+" re"),bt.push("f"),wt.stream=bt.join(`
|
|
|
`),wt}}},createDefaultAppearanceStream:function(Et){var wt=Et.scope.internal.getFont(Et.fontName,Et.fontStyle).id,bt=Et.scope.__private__.encodeColorString(Et.color);return"/"+wt+" "+Et.fontSize+" Tf "+bt}};Qo.internal={Bezier_C:.551915024494,calculateCross:function(Et){var wt=Qo.internal.getWidth(Et),bt=Qo.internal.getHeight(Et),Ht=Math.min(wt,bt);return{x1:{x:(wt-Ht)/2,y:(bt-Ht)/2+Ht},x2:{x:(wt-Ht)/2+Ht,y:(bt-Ht)/2},x3:{x:(wt-Ht)/2,y:(bt-Ht)/2},x4:{x:(wt-Ht)/2+Ht,y:(bt-Ht)/2+Ht}}}},Qo.internal.getWidth=function(Et){var wt=0;return(0,Mt.Z)(Et)==="object"&&(wt=Ac(Et.Rect[2])),wt},Qo.internal.getHeight=function(Et){var wt=0;return(0,Mt.Z)(Et)==="object"&&(wt=Ac(Et.Rect[3])),wt};var Hd=Ws.addField=function(Et){if(Su(this,Et),!(Et instanceof El))throw new Error("Invalid argument passed to jsPDF.addField.");var wt;return(wt=Et).scope.internal.acroformPlugin.printedOut&&(wt.scope.internal.acroformPlugin.printedOut=!1,wt.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),wt.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(wt),Et.page=Et.scope.internal.getCurrentPageInfo().pageNumber,this};Ws.AcroFormChoiceField=ou,Ws.AcroFormListBox=Ya,Ws.AcroFormComboBox=bo,Ws.AcroFormEditBox=ja,Ws.AcroFormButton=Ja,Ws.AcroFormPushButton=su,Ws.AcroFormRadioButton=$l,Ws.AcroFormCheckBox=bu,Ws.AcroFormTextField=fu,Ws.AcroFormPasswordField=eu,Ws.AcroFormAppearance=Qo,Ws.AcroForm={ChoiceField:ou,ListBox:Ya,ComboBox:bo,EditBox:ja,Button:Ja,PushButton:su,RadioButton:$l,CheckBox:bu,TextField:fu,PasswordField:eu,Appearance:Qo},Ro.AcroForm={ChoiceField:ou,ListBox:Ya,ComboBox:bo,EditBox:ja,Button:Ja,PushButton:su,RadioButton:$l,CheckBox:bu,TextField:fu,PasswordField:eu,Appearance:Qo};var Eu=Ro.AcroForm;function yd(Et){return Et.reduce(function(wt,bt,Ht){return wt[bt]=Ht,wt},{})}(function(Et){Et.__addimage__={};var wt="UNKNOWN",bt={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]]},Ht=Et.__addimage__.getImageFileTypeByImageData=function($n,ri){var pe,me,Xe,Je,vn,rn=wt;if((ri=ri||wt)==="RGBA"||$n.data!==void 0&&$n.data instanceof Uint8ClampedArray&&"height"in $n&&"width"in $n)return"RGBA";if(ao($n))for(vn in bt)for(Xe=bt[vn],pe=0;pe<Xe.length;pe+=1){for(Je=!0,me=0;me<Xe[pe].length;me+=1)if(Xe[pe][me]!==void 0&&Xe[pe][me]!==$n[me]){Je=!1;break}if(Je===!0){rn=vn;break}}else for(vn in bt)for(Xe=bt[vn],pe=0;pe<Xe.length;pe+=1){for(Je=!0,me=0;me<Xe[pe].length;me+=1)if(Xe[pe][me]!==void 0&&Xe[pe][me]!==$n.charCodeAt(me)){Je=!1;break}if(Je===!0){rn=vn;break}}return rn===wt&&ri!==wt&&(rn=ri),rn},ie=function $n(ri){for(var pe=this.internal.write,me=this.internal.putStream,Xe=(0,this.internal.getFilters)();Xe.indexOf("FlateEncode")!==-1;)Xe.splice(Xe.indexOf("FlateEncode"),1);ri.objectId=this.internal.newObject();var Je=[];if(Je.push({key:"Type",value:"/XObject"}),Je.push({key:"Subtype",value:"/Image"}),Je.push({key:"Width",value:ri.width}),Je.push({key:"Height",value:ri.height}),ri.colorSpace===yi.INDEXED?Je.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(ri.palette.length/3-1)+" "+("sMask"in ri&&ri.sMask!==void 0?ri.objectId+2:ri.objectId+1)+" 0 R]"}):(Je.push({key:"ColorSpace",value:"/"+ri.colorSpace}),ri.colorSpace===yi.DEVICE_CMYK&&Je.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Je.push({key:"BitsPerComponent",value:ri.bitsPerComponent}),"decodeParameters"in ri&&ri.decodeParameters!==void 0&&Je.push({key:"DecodeParms",value:"<<"+ri.decodeParameters+">>"}),"transparency"in ri&&Array.isArray(ri.transparency)){for(var vn="",rn=0,kn=ri.transparency.length;rn<kn;rn++)vn+=ri.transparency[rn]+" "+ri.transparency[rn]+" ";Je.push({key:"Mask",value:"["+vn+"]"})}ri.sMask!==void 0&&Je.push({key:"SMask",value:ri.objectId+1+" 0 R"});var jn=ri.filter!==void 0?["/"+ri.filter]:void 0;if(me({data:ri.data,additionalKeyValues:Je,alreadyAppliedFilters:jn,objectId:ri.objectId}),pe("endobj"),"sMask"in ri&&ri.sMask!==void 0){var Yn="/Predictor "+ri.predictor+" /Colors 1 /BitsPerComponent "+ri.bitsPerComponent+" /Columns "+ri.width,Qe={width:ri.width,height:ri.height,colorSpace:"DeviceGray",bitsPerComponent:ri.bitsPerComponent,decodeParameters:Yn,data:ri.sMask};"filter"in ri&&(Qe.filter=ri.filter),$n.call(this,Qe)}if(ri.colorSpace===yi.INDEXED){var un=this.internal.newObject();me({data:Ti(new Uint8Array(ri.palette)),objectId:un}),pe("endobj")}},Yt=function(){var $n=this.internal.collections.addImage_images;for(var ri in $n)ie.call(this,$n[ri])},ge=function(){var $n,ri=this.internal.collections.addImage_images,pe=this.internal.write;for(var me in ri)pe("/I"+($n=ri[me]).index,$n.objectId,"0","R")},we=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",Yt),this.internal.events.subscribe("putXobjectDict",ge))},be=function(){var $n=this.internal.collections.addImage_images;return we.call(this),$n},$e=function(){return Object.keys(this.internal.collections.addImage_images).length},dn=function($n){return typeof Et["process"+$n.toUpperCase()]=="function"},fn=function($n){return(0,Mt.Z)($n)==="object"&&$n.nodeType===1},Pn=function($n,ri){if($n.nodeName==="IMG"&&$n.hasAttribute("src")){var pe=""+$n.getAttribute("src");if(pe.indexOf("data:image/")===0)return xs(unescape(pe).split("base64,").pop());var me=Et.loadFile(pe,!0);if(me!==void 0)return me}if($n.nodeName==="CANVAS"){if($n.width===0||$n.height===0)throw new Error("Given canvas must have data. Canvas width: "+$n.width+", height: "+$n.height);var Xe;switch(ri){case"PNG":Xe="image/png";break;case"WEBP":Xe="image/webp";break;case"JPEG":case"JPG":default:Xe="image/jpeg"}return xs($n.toDataURL(Xe,1).split("base64,").pop())}},Ke=function($n){var ri=this.internal.collections.addImage_images;if(ri){for(var pe in ri)if($n===ri[pe].alias)return ri[pe]}},mi=function($n,ri,pe){return $n||ri||($n=-96,ri=-96),$n<0&&($n=-1*pe.width*72/$n/this.internal.scaleFactor),ri<0&&(ri=-1*pe.height*72/ri/this.internal.scaleFactor),$n===0&&($n=ri*pe.width/pe.height),ri===0&&(ri=$n*pe.height/pe.width),[$n,ri]},Jn=function($n,ri,pe,me,Xe,Je){var vn=mi.call(this,pe,me,Xe),rn=this.internal.getCoordinateString,kn=this.internal.getVerticalCoordinateString,jn=be.call(this);if(pe=vn[0],me=vn[1],jn[Xe.index]=Xe,Je){Je*=Math.PI/180;var Yn=Math.cos(Je),Qe=Math.sin(Je),un=function(Hn){return Hn.toFixed(4)},mn=[un(Yn),un(Qe),un(-1*Qe),un(Yn),0,0,"cm"]}this.internal.write("q"),Je?(this.internal.write([1,"0","0",1,rn($n),kn(ri+me),"cm"].join(" ")),this.internal.write(mn.join(" ")),this.internal.write([rn(pe),"0","0",rn(me),"0","0","cm"].join(" "))):this.internal.write([rn(pe),"0","0",rn(me),rn($n),kn(ri+me),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Xe.index+" Do"),this.internal.write("Q")},yi=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"},di=Et.__addimage__.sHashCode=function($n){var ri,pe,me=0;if(typeof $n=="string")for(pe=$n.length,ri=0;ri<pe;ri++)me=(me<<5)-me+$n.charCodeAt(ri),me|=0;else if(ao($n))for(pe=$n.byteLength/2,ri=0;ri<pe;ri++)me=(me<<5)-me+$n[ri],me|=0;return me},Qi=Et.__addimage__.validateStringAsBase64=function($n){($n=$n||"").toString().trim();var ri=!0;return $n.length===0&&(ri=!1),$n.length%4!=0&&(ri=!1),/^[A-Za-z0-9+/]+$/.test($n.substr(0,$n.length-2))===!1&&(ri=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test($n.substr(-2))===!1&&(ri=!1),ri},ir=Et.__addimage__.extractImageFromDataUrl=function($n){var ri=($n=$n||"").split("base64,"),pe=null;if(ri.length===2){var me=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(ri[0]);Array.isArray(me)&&(pe={mimeType:me[1],charset:me[2],data:ri[1]})}return pe},Er=Et.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};Et.__addimage__.isArrayBuffer=function($n){return Er()&&$n instanceof ArrayBuffer};var ao=Et.__addimage__.isArrayBufferView=function($n){return Er()&&typeof Uint32Array!="undefined"&&($n instanceof Int8Array||$n instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&$n instanceof Uint8ClampedArray||$n instanceof Int16Array||$n instanceof Uint16Array||$n instanceof Int32Array||$n instanceof Uint32Array||$n instanceof Float32Array||$n instanceof Float64Array)},gr=Et.__addimage__.binaryStringToUint8Array=function($n){for(var ri=$n.length,pe=new Uint8Array(ri),me=0;me<ri;me++)pe[me]=$n.charCodeAt(me);return pe},Ti=Et.__addimage__.arrayBufferToBinaryString=function($n){for(var ri="",pe=ao($n)?$n:new Uint8Array($n),me=0;me<pe.length;me+=8192)ri+=String.fromCharCode.apply(null,pe.subarray(me,me+8192));return ri};Et.addImage=function(){var $n,ri,pe,me,Xe,Je,vn,rn,kn;if(typeof arguments[1]=="number"?(ri=wt,pe=arguments[1],me=arguments[2],Xe=arguments[3],Je=arguments[4],vn=arguments[5],rn=arguments[6],kn=arguments[7]):(ri=arguments[1],pe=arguments[2],me=arguments[3],Xe=arguments[4],Je=arguments[5],vn=arguments[6],rn=arguments[7],kn=arguments[8]),(0,Mt.Z)($n=arguments[0])==="object"&&!fn($n)&&"imageData"in $n){var jn=$n;$n=jn.imageData,ri=jn.format||ri||wt,pe=jn.x||pe||0,me=jn.y||me||0,Xe=jn.w||jn.width||Xe,Je=jn.h||jn.height||Je,vn=jn.alias||vn,rn=jn.compression||rn,kn=jn.rotation||jn.angle||kn}var Yn=this.internal.getFilters();if(rn===void 0&&Yn.indexOf("FlateEncode")!==-1&&(rn="SLOW"),isNaN(pe)||isNaN(me))throw new Error("Invalid coordinates passed to jsPDF.addImage");we.call(this);var Qe=xr.call(this,$n,ri,vn,rn);return Jn.call(this,pe,me,Xe,Je,Qe,kn),this};var xr=function($n,ri,pe,me){var Xe,Je,vn;if(typeof $n=="string"&&Ht($n)===wt){$n=unescape($n);var rn=Ir($n,!1);(rn!==""||(rn=Et.loadFile($n,!0))!==void 0)&&($n=rn)}if(fn($n)&&($n=Pn($n,ri)),ri=Ht($n,ri),!dn(ri))throw new Error("addImage does not support files of type '"+ri+"', please ensure that a plugin for '"+ri+"' support is added.");if(((vn=pe)==null||vn.length===0)&&(pe=function(kn){return typeof kn=="string"||ao(kn)?di(kn):ao(kn.data)?di(kn.data):null}($n)),(Xe=Ke.call(this,pe))||(Er()&&($n instanceof Uint8Array||ri==="RGBA"||(Je=$n,$n=gr($n))),Xe=this["process"+ri.toUpperCase()]($n,$e.call(this),pe,function(kn){return kn&&typeof kn=="string"&&(kn=kn.toUpperCase()),kn in Et.image_compression?kn:Un.NONE}(me),Je)),!Xe)throw new Error("An unknown error occurred whilst processing the image.");return Xe},Ir=Et.__addimage__.convertBase64ToBinaryString=function($n,ri){var pe;ri=typeof ri!="boolean"||ri;var me,Xe="";if(typeof $n=="string"){me=(pe=ir($n))!==null?pe.data:$n;try{Xe=xs(me)}catch(Je){if(ri)throw Qi(me)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Je.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Xe};Et.getImageProperties=function($n){var ri,pe,me="";if(fn($n)&&($n=Pn($n)),typeof $n=="string"&&Ht($n)===wt&&((me=Ir($n,!1))===""&&(me=Et.loadFile($n)||""),$n=me),pe=Ht($n),!dn(pe))throw new Error("addImage does not support files of type '"+pe+"', please ensure that a plugin for '"+pe+"' support is added.");if(!Er()||$n instanceof Uint8Array||($n=gr($n)),!(ri=this["process"+pe.toUpperCase()]($n)))throw new Error("An unknown error occurred whilst processing the image");return ri.fileType=pe,ri}})(Ro.API),function(Et){var wt=function(bt){if(bt!==void 0&&bt!="")return!0};Ro.API.events.push(["addPage",function(bt){this.internal.getPageInfo(bt.pageNumber).pageContext.annotations=[]}]),Et.events.push(["putPage",function(bt){for(var Ht,ie,Yt,ge=this.internal.getCoordinateString,we=this.internal.getVerticalCoordinateString,be=this.internal.getPageInfoByObjId(bt.objId),$e=bt.pageContext.annotations,dn=!1,fn=0;fn<$e.length&&!dn;fn++)switch((Ht=$e[fn]).type){case"link":(wt(Ht.options.url)||wt(Ht.options.pageNumber))&&(dn=!0);break;case"reference":case"text":case"freetext":dn=!0}if(dn!=0){this.internal.write("/Annots [");for(var Pn=0;Pn<$e.length;Pn++){Ht=$e[Pn];var Ke=this.internal.pdfEscape,mi=this.internal.getEncryptor(bt.objId);switch(Ht.type){case"reference":this.internal.write(" "+Ht.object.objId+" 0 R ");break;case"text":var Jn=this.internal.newAdditionalObject(),yi=this.internal.newAdditionalObject(),Un=this.internal.getEncryptor(Jn.objId),di=Ht.title||"Note";Yt="<</Type /Annot /Subtype /Text "+(ie="/Rect ["+ge(Ht.bounds.x)+" "+we(Ht.bounds.y+Ht.bounds.h)+" "+ge(Ht.bounds.x+Ht.bounds.w)+" "+we(Ht.bounds.y)+"] ")+"/Contents ("+Ke(Un(Ht.contents))+")",Yt+=" /Popup "+yi.objId+" 0 R",Yt+=" /P "+be.objId+" 0 R",Yt+=" /T ("+Ke(Un(di))+") >>",Jn.content=Yt;var Qi=Jn.objId+" 0 R";Yt="<</Type /Annot /Subtype /Popup "+(ie="/Rect ["+ge(Ht.bounds.x+30)+" "+we(Ht.bounds.y+Ht.bounds.h)+" "+ge(Ht.bounds.x+Ht.bounds.w+30)+" "+we(Ht.bounds.y)+"] ")+" /Parent "+Qi,Ht.open&&(Yt+=" /Open true"),Yt+=" >>",yi.content=Yt,this.internal.write(Jn.objId,"0 R",yi.objId,"0 R");break;case"freetext":ie="/Rect ["+ge(Ht.bounds.x)+" "+we(Ht.bounds.y)+" "+ge(Ht.bounds.x+Ht.bounds.w)+" "+we(Ht.bounds.y+Ht.bounds.h)+"] ";var ir=Ht.color||"#000000";Yt="<</Type /Annot /Subtype /FreeText "+ie+"/Contents ("+Ke(mi(Ht.contents))+")",Yt+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+ir+")",Yt+=" /Border [0 0 0]",Yt+=" >>",this.internal.write(Yt);break;case"link":if(Ht.options.name){var Er=this.annotations._nameMap[Ht.options.name];Ht.options.pageNumber=Er.page,Ht.options.top=Er.y}else Ht.options.top||(Ht.options.top=0);if(ie="/Rect ["+Ht.finalBounds.x+" "+Ht.finalBounds.y+" "+Ht.finalBounds.w+" "+Ht.finalBounds.h+"] ",Yt="",Ht.options.url)Yt="<</Type /Annot /Subtype /Link "+ie+"/Border [0 0 0] /A <</S /URI /URI ("+Ke(mi(Ht.options.url))+") >>";else if(Ht.options.pageNumber)switch(Yt="<</Type /Annot /Subtype /Link "+ie+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(Ht.options.pageNumber).objId+" 0 R",Ht.options.magFactor=Ht.options.magFactor||"XYZ",Ht.options.magFactor){case"Fit":Yt+=" /Fit]";break;case"FitH":Yt+=" /FitH "+Ht.options.top+"]";break;case"FitV":Ht.options.left=Ht.options.left||0,Yt+=" /FitV "+Ht.options.left+"]";break;case"XYZ":default:var ao=we(Ht.options.top);Ht.options.left=Ht.options.left||0,Ht.options.zoom===void 0&&(Ht.options.zoom=0),Yt+=" /XYZ "+Ht.options.left+" "+ao+" "+Ht.options.zoom+"]"}Yt!=""&&(Yt+=" >>",this.internal.write(Yt))}}this.internal.write("]")}}]),Et.createAnnotation=function(bt){var Ht=this.internal.getCurrentPageInfo();switch(bt.type){case"link":this.link(bt.bounds.x,bt.bounds.y,bt.bounds.w,bt.bounds.h,bt);break;case"text":case"freetext":Ht.pageContext.annotations.push(bt)}},Et.link=function(bt,Ht,ie,Yt,ge){var we=this.internal.getCurrentPageInfo(),be=this.internal.getCoordinateString,$e=this.internal.getVerticalCoordinateString;we.pageContext.annotations.push({finalBounds:{x:be(bt),y:$e(Ht),w:be(bt+ie),h:$e(Ht+Yt)},options:ge,type:"link"})},Et.textWithLink=function(bt,Ht,ie,Yt){var ge,we,be=this.getTextWidth(bt),$e=this.internal.getLineHeight()/this.internal.scaleFactor;if(Yt.maxWidth!==void 0){we=Yt.maxWidth;var dn=this.splitTextToSize(bt,we).length;ge=Math.ceil($e*dn)}else we=be,ge=$e;return this.text(bt,Ht,ie,Yt),ie+=.2*$e,Yt.align==="center"&&(Ht-=be/2),Yt.align==="right"&&(Ht-=be),this.link(Ht,ie-$e,we,ge,Yt),be},Et.getTextWidth=function(bt){var Ht=this.internal.getFontSize();return this.getStringUnitWidth(bt)*Ht/this.internal.scaleFactor}}(Ro.API),function(Et){var wt={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]},bt={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}},Ht={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},ie=[1570,1571,1573,1575];Et.__arabicParser__={};var Yt=Et.__arabicParser__.isInArabicSubstitutionA=function(Jn){return wt[Jn.charCodeAt(0)]!==void 0},ge=Et.__arabicParser__.isArabicLetter=function(Jn){return typeof Jn=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(Jn)},we=Et.__arabicParser__.isArabicEndLetter=function(Jn){return ge(Jn)&&Yt(Jn)&&wt[Jn.charCodeAt(0)].length<=2},be=Et.__arabicParser__.isArabicAlfLetter=function(Jn){return ge(Jn)&&ie.indexOf(Jn.charCodeAt(0))>=0};Et.__arabicParser__.arabicLetterHasIsolatedForm=function(Jn){return ge(Jn)&&Yt(Jn)&&wt[Jn.charCodeAt(0)].length>=1};var $e=Et.__arabicParser__.arabicLetterHasFinalForm=function(Jn){return ge(Jn)&&Yt(Jn)&&wt[Jn.charCodeAt(0)].length>=2};Et.__arabicParser__.arabicLetterHasInitialForm=function(Jn){return ge(Jn)&&Yt(Jn)&&wt[Jn.charCodeAt(0)].length>=3};var dn=Et.__arabicParser__.arabicLetterHasMedialForm=function(Jn){return ge(Jn)&&Yt(Jn)&&wt[Jn.charCodeAt(0)].length==4},fn=Et.__arabicParser__.resolveLigatures=function(Jn){var yi=0,Un=bt,di="",Qi=0;for(yi=0;yi<Jn.length;yi+=1)Un[Jn.charCodeAt(yi)]!==void 0?(Qi++,typeof(Un=Un[Jn.charCodeAt(yi)])=="number"&&(di+=String.fromCharCode(Un),Un=bt,Qi=0),yi===Jn.length-1&&(Un=bt,di+=Jn.charAt(yi-(Qi-1)),yi-=Qi-1,Qi=0)):(Un=bt,di+=Jn.charAt(yi-Qi),yi-=Qi,Qi=0);return di};Et.__arabicParser__.isArabicDiacritic=function(Jn){return Jn!==void 0&&Ht[Jn.charCodeAt(0)]!==void 0};var Pn=Et.__arabicParser__.getCorrectForm=function(Jn,yi,Un){return ge(Jn)?Yt(Jn)===!1?-1:!$e(Jn)||!ge(yi)&&!ge(Un)||!ge(Un)&&we(yi)||we(Jn)&&!ge(yi)||we(Jn)&&be(yi)||we(Jn)&&we(yi)?0:dn(Jn)&&ge(yi)&&!we(yi)&&ge(Un)&&$e(Un)?3:we(Jn)||!ge(Un)?1:2:-1},Ke=function(Jn){var yi=0,Un=0,di=0,Qi="",ir="",Er="",ao=(Jn=Jn||"").split("\\s+"),gr=[];for(yi=0;yi<ao.length;yi+=1){for(gr.push(""),Un=0;Un<ao[yi].length;Un+=1)Qi=ao[yi][Un],ir=ao[yi][Un-1],Er=ao[yi][Un+1],ge(Qi)?(di=Pn(Qi,ir,Er),gr[yi]+=di!==-1?String.fromCharCode(wt[Qi.charCodeAt(0)][di]):Qi):gr[yi]+=Qi;gr[yi]=fn(gr[yi])}return gr.join(" ")},mi=Et.__arabicParser__.processArabic=Et.processArabic=function(){var Jn,yi=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,Un=[];if(Array.isArray(yi)){var di=0;for(Un=[],di=0;di<yi.length;di+=1)Array.isArray(yi[di])?Un.push([Ke(yi[di][0]),yi[di][1],yi[di][2]]):Un.push([Ke(yi[di])]);Jn=Un}else Jn=Ke(yi);return typeof arguments[0]=="string"?Jn:(arguments[0].text=Jn,arguments[0])};Et.events.push(["preProcessText",mi])}(Ro.API),Ro.API.autoPrint=function(Et){var wt;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(){wt=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 "+wt+" 0 R")})}return this},function(Et){var wt=function(){var bt=void 0;Object.defineProperty(this,"pdf",{get:function(){return bt},set:function(we){bt=we}});var Ht=150;Object.defineProperty(this,"width",{get:function(){return Ht},set:function(we){Ht=isNaN(we)||Number.isInteger(we)===!1||we<0?150:we,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=Ht+1)}});var ie=300;Object.defineProperty(this,"height",{get:function(){return ie},set:function(we){ie=isNaN(we)||Number.isInteger(we)===!1||we<0?300:we,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=ie+1)}});var Yt=[];Object.defineProperty(this,"childNodes",{get:function(){return Yt},set:function(we){Yt=we}});var ge={};Object.defineProperty(this,"style",{get:function(){return ge},set:function(we){ge=we}}),Object.defineProperty(this,"parentNode",{})};wt.prototype.getContext=function(bt,Ht){var ie;if((bt=bt||"2d")!=="2d")return null;for(ie in Ht)this.pdf.context2d.hasOwnProperty(ie)&&(this.pdf.context2d[ie]=Ht[ie]);return this.pdf.context2d._canvas=this,this.pdf.context2d},wt.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},Et.events.push(["initialized",function(){this.canvas=new wt,this.canvas.pdf=this}])}(Ro.API),function(Et){var wt={left:0,top:0,bottom:0,right:0},bt=!1,Ht=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({},wt),this.internal.__cell__.margins.width=this.getPageWidth(),ie.call(this))},ie=function(){this.internal.__cell__.lastCell=new Yt,this.internal.__cell__.pages=1},Yt=function(){var be=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return be},set:function(Jn){be=Jn}});var $e=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return $e},set:function(Jn){$e=Jn}});var dn=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return dn},set:function(Jn){dn=Jn}});var fn=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return fn},set:function(Jn){fn=Jn}});var Pn=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Pn},set:function(Jn){Pn=Jn}});var Ke=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return Ke},set:function(Jn){Ke=Jn}});var mi=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return mi},set:function(Jn){mi=Jn}}),this};Yt.prototype.clone=function(){return new Yt(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},Yt.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},Et.setHeaderFunction=function(be){return Ht.call(this),this.internal.__cell__.headerFunction=typeof be=="function"?be:void 0,this},Et.getTextDimensions=function(be,$e){Ht.call(this);var dn=($e=$e||{}).fontSize||this.getFontSize(),fn=$e.font||this.getFont(),Pn=$e.scaleFactor||this.internal.scaleFactor,Ke=0,mi=0,Jn=0,yi=this;if(!Array.isArray(be)&&typeof be!="string"){if(typeof be!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");be=String(be)}var Un=$e.maxWidth;Un>0?typeof be=="string"?be=this.splitTextToSize(be,Un):Object.prototype.toString.call(be)==="[object Array]"&&(be=be.reduce(function(Qi,ir){return Qi.concat(yi.splitTextToSize(ir,Un))},[])):be=Array.isArray(be)?be:[be];for(var di=0;di<be.length;di++)Ke<(Jn=this.getStringUnitWidth(be[di],{font:fn})*dn)&&(Ke=Jn);return Ke!==0&&(mi=be.length),{w:Ke/=Pn,h:Math.max((mi*dn*this.getLineHeightFactor()-dn*(this.getLineHeightFactor()-1))/Pn,0)}},Et.cellAddPage=function(){Ht.call(this),this.addPage();var be=this.internal.__cell__.margins||wt;return this.internal.__cell__.lastCell=new Yt(be.left,be.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var ge=Et.cell=function(){var be;be=arguments[0]instanceof Yt?arguments[0]:new Yt(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Ht.call(this);var $e=this.internal.__cell__.lastCell,dn=this.internal.__cell__.padding,fn=this.internal.__cell__.margins||wt,Pn=this.internal.__cell__.tableHeaderRow,Ke=this.internal.__cell__.printHeaders;return $e.lineNumber!==void 0&&($e.lineNumber===be.lineNumber?(be.x=($e.x||0)+($e.width||0),be.y=$e.y||0):$e.y+$e.height+be.height+fn.bottom>this.getPageHeight()?(this.cellAddPage(),be.y=fn.top,Ke&&Pn&&(this.printHeaderRow(be.lineNumber,!0),be.y+=Pn[0].height)):be.y=$e.y+$e.height||be.y),be.text[0]!==void 0&&(this.rect(be.x,be.y,be.width,be.height,bt===!0?"FD":void 0),be.align==="right"?this.text(be.text,be.x+be.width-dn,be.y+dn,{align:"right",baseline:"top"}):be.align==="center"?this.text(be.text,be.x+be.width/2,be.y+dn,{align:"center",baseline:"top",maxWidth:be.width-dn-dn}):this.text(be.text,be.x+dn,be.y+dn,{align:"left",baseline:"top",maxWidth:be.width-dn-dn})),this.internal.__cell__.lastCell=be,this};Et.table=function(be,$e,dn,fn,Pn){if(Ht.call(this),!dn)throw new Error("No data for PDF table.");var Ke,mi,Jn,yi,Un=[],di=[],Qi=[],ir={},Er={},ao=[],gr=[],Ti=(Pn=Pn||{}).autoSize||!1,xr=Pn.printHeaders!==!1,Ir=Pn.css&&Pn.css["font-size"]!==void 0?16*Pn.css["font-size"]:Pn.fontSize||12,$n=Pn.margins||Object.assign({width:this.getPageWidth()},wt),ri=typeof Pn.padding=="number"?Pn.padding:3,pe=Pn.headerBackgroundColor||"#c8c8c8",me=Pn.headerTextColor||"#000";if(ie.call(this),this.internal.__cell__.printHeaders=xr,this.internal.__cell__.margins=$n,this.internal.__cell__.table_font_size=Ir,this.internal.__cell__.padding=ri,this.internal.__cell__.headerBackgroundColor=pe,this.internal.__cell__.headerTextColor=me,this.setFontSize(Ir),fn==null)di=Un=Object.keys(dn[0]),Qi=Un.map(function(){return"left"});else if(Array.isArray(fn)&&(0,Mt.Z)(fn[0])==="object")for(Un=fn.map(function(jn){return jn.name}),di=fn.map(function(jn){return jn.prompt||jn.name||""}),Qi=fn.map(function(jn){return jn.align||"left"}),Ke=0;Ke<fn.length;Ke+=1)Er[fn[Ke].name]=fn[Ke].width*(19.049976/25.4);else Array.isArray(fn)&&typeof fn[0]=="string"&&(di=Un=fn,Qi=Un.map(function(){return"left"}));if(Ti||Array.isArray(fn)&&typeof fn[0]=="string")for(Ke=0;Ke<Un.length;Ke+=1){for(ir[yi=Un[Ke]]=dn.map(function(jn){return jn[yi]}),this.setFont(void 0,"bold"),ao.push(this.getTextDimensions(di[Ke],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),mi=ir[yi],this.setFont(void 0,"normal"),Jn=0;Jn<mi.length;Jn+=1)ao.push(this.getTextDimensions(mi[Jn],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Er[yi]=Math.max.apply(null,ao)+ri+ri,ao=[]}if(xr){var Xe={};for(Ke=0;Ke<Un.length;Ke+=1)Xe[Un[Ke]]={},Xe[Un[Ke]].text=di[Ke],Xe[Un[Ke]].align=Qi[Ke];var Je=we.call(this,Xe,Er);gr=Un.map(function(jn){return new Yt(be,$e,Er[jn],Je,Xe[jn].text,void 0,Xe[jn].align)}),this.setTableHeaderRow(gr),this.printHeaderRow(1,!1)}var vn=fn.reduce(function(jn,Yn){return jn[Yn.name]=Yn.align,jn},{});for(Ke=0;Ke<dn.length;Ke+=1){"rowStart"in Pn&&Pn.rowStart instanceof Function&&Pn.rowStart({row:Ke,data:dn[Ke]},this);var rn=we.call(this,dn[Ke],Er);for(Jn=0;Jn<Un.length;Jn+=1){var kn=dn[Ke][Un[Jn]];"cellStart"in Pn&&Pn.cellStart instanceof Function&&Pn.cellStart({row:Ke,col:Jn,data:kn},this),ge.call(this,new Yt(be,$e,Er[Un[Jn]],rn,kn,Ke+2,vn[Un[Jn]]))}}return this.internal.__cell__.table_x=be,this.internal.__cell__.table_y=$e,this};var we=function(be,$e){var dn=this.internal.__cell__.padding,fn=this.internal.__cell__.table_font_size,Pn=this.internal.scaleFactor;return Object.keys(be).map(function(Ke){var mi=be[Ke];return this.splitTextToSize(mi.hasOwnProperty("text")?mi.text:mi,$e[Ke]-dn-dn)},this).map(function(Ke){return this.getLineHeightFactor()*Ke.length*fn/Pn+dn+dn},this).reduce(function(Ke,mi){return Math.max(Ke,mi)},0)};Et.setTableHeaderRow=function(be){Ht.call(this),this.internal.__cell__.tableHeaderRow=be},Et.printHeaderRow=function(be,$e){if(Ht.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var dn;if(bt=!0,typeof this.internal.__cell__.headerFunction=="function"){var fn=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new Yt(fn[0],fn[1],fn[2],fn[3],void 0,-1)}this.setFont(void 0,"bold");for(var Pn=[],Ke=0;Ke<this.internal.__cell__.tableHeaderRow.length;Ke+=1){dn=this.internal.__cell__.tableHeaderRow[Ke].clone(),$e&&(dn.y=this.internal.__cell__.margins.top||0,Pn.push(dn)),dn.lineNumber=be;var mi=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),ge.call(this,dn),this.setTextColor(mi)}Pn.length>0&&this.setTableHeaderRow(Pn),this.setFont(void 0,"normal"),bt=!1}}(Ro.API);var Nh={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},ec=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],ol=yd(ec),xh=[100,200,300,400,500,600,700,800,900],Qd=yd(xh);function Oc(Et){var wt=Et.family.replace(/"|'/g,"").toLowerCase(),bt=function(Yt){return Nh[Yt=Yt||"normal"]?Yt:"normal"}(Et.style),Ht=function(Yt){if(!Yt)return 400;if(typeof Yt=="number")return Yt>=100&&Yt<=900&&Yt%100==0?Yt:400;if(/^\d00$/.test(Yt))return parseInt(Yt);switch(Yt){case"bold":return 700;case"normal":default:return 400}}(Et.weight),ie=function(Yt){return typeof ol[Yt=Yt||"normal"]=="number"?Yt:"normal"}(Et.stretch);return{family:wt,style:bt,weight:Ht,stretch:ie,src:Et.src||[],ref:Et.ref||{name:wt,style:[ie,bt,Ht].join(" ")}}}function Dc(Et,wt,bt,Ht){var ie;for(ie=bt;ie>=0&&ie<wt.length;ie+=Ht)if(Et[wt[ie]])return Et[wt[ie]];for(ie=bt;ie>=0&&ie<wt.length;ie-=Ht)if(Et[wt[ie]])return Et[wt[ie]]}var Ls={"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 ju(Et){return[Et.stretch,Et.style,Et.weight,Et.family].join(" ")}function qa(Et,wt,bt){for(var Ht=(bt=bt||{}).defaultFontFamily||"times",ie=Object.assign({},Ls,bt.genericFontFamilies||{}),Yt=null,ge=null,we=0;we<wt.length;++we)if(ie[(Yt=Oc(wt[we])).family]&&(Yt.family=ie[Yt.family]),Et.hasOwnProperty(Yt.family)){ge=Et[Yt.family];break}if(!(ge=ge||Et[Ht]))throw new Error("Could not find a font-family for the rule '"+ju(Yt)+"' and default family '"+Ht+"'.");if(ge=function(be,$e){if($e[be])return $e[be];var dn=ol[be],fn=dn<=ol.normal?-1:1,Pn=Dc($e,ec,dn,fn);if(!Pn)throw new Error("Could not find a matching font-stretch value for "+be);return Pn}(Yt.stretch,ge),ge=function(be,$e){if($e[be])return $e[be];for(var dn=Nh[be],fn=0;fn<dn.length;++fn)if($e[dn[fn]])return $e[dn[fn]];throw new Error("Could not find a matching font-style for "+be)}(Yt.style,ge),!(ge=function(be,$e){if($e[be])return $e[be];if(be===400&&$e[500])return $e[500];if(be===500&&$e[400])return $e[400];var dn=Qd[be],fn=Dc($e,xh,dn,be<400?-1:1);if(!fn)throw new Error("Could not find a matching font-weight for value "+be);return fn}(Yt.weight,ge)))throw new Error("Failed to resolve a font for the rule '"+ju(Yt)+"'.");return ge}function sl(Et){return Et.trimLeft()}function za(Et,wt){for(var bt=0;bt<Et.length;){if(Et.charAt(bt)===wt)return[Et.substring(0,bt),Et.substring(bt+1)];bt+=1}return null}function Aa(Et){var wt=Et.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return wt===null?null:[wt[0],Et.substring(wt[0].length)]}var tl,Dl,fc,ch=["times"];(function(Et){var wt,bt,Ht,ie,Yt,ge,we,be,$e,dn=function(Qe){return Qe=Qe||{},this.isStrokeTransparent=Qe.isStrokeTransparent||!1,this.strokeOpacity=Qe.strokeOpacity||1,this.strokeStyle=Qe.strokeStyle||"#000000",this.fillStyle=Qe.fillStyle||"#000000",this.isFillTransparent=Qe.isFillTransparent||!1,this.fillOpacity=Qe.fillOpacity||1,this.font=Qe.font||"10px sans-serif",this.textBaseline=Qe.textBaseline||"alphabetic",this.textAlign=Qe.textAlign||"left",this.lineWidth=Qe.lineWidth||1,this.lineJoin=Qe.lineJoin||"miter",this.lineCap=Qe.lineCap||"butt",this.path=Qe.path||[],this.transform=Qe.transform!==void 0?Qe.transform.clone():new be,this.globalCompositeOperation=Qe.globalCompositeOperation||"normal",this.globalAlpha=Qe.globalAlpha||1,this.clip_path=Qe.clip_path||[],this.currentPoint=Qe.currentPoint||new ge,this.miterLimit=Qe.miterLimit||10,this.lastPoint=Qe.lastPoint||new ge,this.lineDashOffset=Qe.lineDashOffset||0,this.lineDash=Qe.lineDash||[],this.margin=Qe.margin||[0,0,0,0],this.prevPageLastElemOffset=Qe.prevPageLastElemOffset||0,this.ignoreClearRect=typeof Qe.ignoreClearRect!="boolean"||Qe.ignoreClearRect,this};Et.events.push(["initialized",function(){this.context2d=new fn(this),wt=this.internal.f2,bt=this.internal.getCoordinateString,Ht=this.internal.getVerticalCoordinateString,ie=this.internal.getHorizontalCoordinate,Yt=this.internal.getVerticalCoordinate,ge=this.internal.Point,we=this.internal.Rectangle,be=this.internal.Matrix,$e=new dn}]);var fn=function(Qe){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var un=Qe;Object.defineProperty(this,"pdf",{get:function(){return un}});var mn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return mn},set:function(Ii){mn=!!Ii}});var Hn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Hn},set:function(Ii){Hn=!!Ii}});var Zn=0;Object.defineProperty(this,"posX",{get:function(){return Zn},set:function(Ii){isNaN(Ii)||(Zn=Ii)}});var ii=0;Object.defineProperty(this,"posY",{get:function(){return ii},set:function(Ii){isNaN(Ii)||(ii=Ii)}}),Object.defineProperty(this,"margin",{get:function(){return $e.margin},set:function(Ii){var Xn;typeof Ii=="number"?Xn=[Ii,Ii,Ii,Ii]:((Xn=new Array(4))[0]=Ii[0],Xn[1]=Ii.length>=2?Ii[1]:Xn[0],Xn[2]=Ii.length>=3?Ii[2]:Xn[0],Xn[3]=Ii.length>=4?Ii[3]:Xn[1]),$e.margin=Xn}});var Fi=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Fi},set:function(Ii){Fi=Ii}});var li=0;Object.defineProperty(this,"lastBreak",{get:function(){return li},set:function(Ii){li=Ii}});var Xi=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Xi},set:function(Ii){Xi=Ii}}),Object.defineProperty(this,"ctx",{get:function(){return $e},set:function(Ii){Ii instanceof dn&&($e=Ii)}}),Object.defineProperty(this,"path",{get:function(){return $e.path},set:function(Ii){$e.path=Ii}});var Zi=[];Object.defineProperty(this,"ctxStack",{get:function(){return Zi},set:function(Ii){Zi=Ii}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Ii){var Xn;Xn=Pn(Ii),this.ctx.fillStyle=Xn.style,this.ctx.isFillTransparent=Xn.a===0,this.ctx.fillOpacity=Xn.a,this.pdf.setFillColor(Xn.r,Xn.g,Xn.b,{a:Xn.a}),this.pdf.setTextColor(Xn.r,Xn.g,Xn.b,{a:Xn.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Ii){var Xn=Pn(Ii);this.ctx.strokeStyle=Xn.style,this.ctx.isStrokeTransparent=Xn.a===0,this.ctx.strokeOpacity=Xn.a,Xn.a===0?this.pdf.setDrawColor(255,255,255):(Xn.a,this.pdf.setDrawColor(Xn.r,Xn.g,Xn.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Ii){["butt","round","square"].indexOf(Ii)!==-1&&(this.ctx.lineCap=Ii,this.pdf.setLineCap(Ii))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Ii){isNaN(Ii)||(this.ctx.lineWidth=Ii,this.pdf.setLineWidth(Ii))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Ii){["bevel","round","miter"].indexOf(Ii)!==-1&&(this.ctx.lineJoin=Ii,this.pdf.setLineJoin(Ii))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Ii){isNaN(Ii)||(this.ctx.miterLimit=Ii,this.pdf.setMiterLimit(Ii))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Ii){this.ctx.textBaseline=Ii}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Ii){["right","end","center","left","start"].indexOf(Ii)!==-1&&(this.ctx.textAlign=Ii)}});var Ar=null;function br(Ii,Xn){if(Ar===null){var Co=function(Br){var sr=[];return Object.keys(Br).forEach(function(ar){Br[ar].forEach(function(qi){var pr=null;switch(qi){case"bold":pr={family:ar,weight:"bold"};break;case"italic":pr={family:ar,style:"italic"};break;case"bolditalic":pr={family:ar,weight:"bold",style:"italic"};break;case"":case"normal":pr={family:ar}}pr!==null&&(pr.ref={name:ar,style:qi},sr.push(pr))})}),sr}(Ii.getFontList());Ar=function(Br){for(var sr={},ar=0;ar<Br.length;++ar){var qi=Oc(Br[ar]),pr=qi.family,Vr=qi.stretch,co=qi.style,fo=qi.weight;sr[pr]=sr[pr]||{},sr[pr][Vr]=sr[pr][Vr]||{},sr[pr][Vr][co]=sr[pr][Vr][co]||{},sr[pr][Vr][co][fo]=qi}return sr}(Co.concat(Xn))}return Ar}var eo=null;Object.defineProperty(this,"fontFaces",{get:function(){return eo},set:function(Ii){Ar=null,eo=Ii}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Ii){var Xn;if(this.ctx.font=Ii,(Xn=/^\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(Ii))!==null){var Co=Xn[1],Br=(Xn[2],Xn[3]),sr=Xn[4],ar=(Xn[5],Xn[6]),qi=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(sr)[2];sr=Math.floor(qi==="px"?parseFloat(sr)*this.pdf.internal.scaleFactor:qi==="em"?parseFloat(sr)*this.pdf.getFontSize():parseFloat(sr)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(sr);var pr=function(qo){var ns,xo,wa=[],$o=qo.trim();if($o==="")return ch;if($o in ya)return[ya[$o]];for(;$o!=="";){switch(xo=null,ns=($o=sl($o)).charAt(0)){case'"':case"'":xo=za($o.substring(1),ns);break;default:xo=Aa($o)}if(xo===null||(wa.push(xo[0]),($o=sl(xo[1]))!==""&&$o.charAt(0)!==","))return ch;$o=$o.replace(/^,/,"")}return wa}(ar);if(this.fontFaces){var Vr=qa(br(this.pdf,this.fontFaces),pr.map(function(qo){return{family:qo,stretch:"normal",weight:Br,style:Co}}));this.pdf.setFont(Vr.ref.name,Vr.ref.style)}else{var co="";(Br==="bold"||parseInt(Br,10)>=700||Co==="bold")&&(co="bold"),Co==="italic"&&(co+="italic"),co.length===0&&(co="normal");for(var fo="",Rr={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},jo=0;jo<pr.length;jo++){if(this.pdf.internal.getFont(pr[jo],co,{noFallback:!0,disableWarning:!0})!==void 0){fo=pr[jo];break}if(co==="bolditalic"&&this.pdf.internal.getFont(pr[jo],"bold",{noFallback:!0,disableWarning:!0})!==void 0)fo=pr[jo],co="bold";else if(this.pdf.internal.getFont(pr[jo],"normal",{noFallback:!0,disableWarning:!0})!==void 0){fo=pr[jo],co="normal";break}}if(fo===""){for(var us=0;us<pr.length;us++)if(Rr[pr[us]]){fo=Rr[pr[us]];break}}fo=fo===""?"Times":fo,this.pdf.setFont(fo,co)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Ii){this.ctx.globalCompositeOperation=Ii}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Ii){this.ctx.globalAlpha=Ii}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Ii){this.ctx.lineDashOffset=Ii,Yn.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Ii){this.ctx.lineDash=Ii,Yn.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Ii){this.ctx.ignoreClearRect=!!Ii}})};fn.prototype.setLineDash=function(Qe){this.lineDash=Qe},fn.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},fn.prototype.fill=function(){ir.call(this,"fill",!1)},fn.prototype.stroke=function(){ir.call(this,"stroke",!1)},fn.prototype.beginPath=function(){this.path=[{type:"begin"}]},fn.prototype.moveTo=function(Qe,un){if(isNaN(Qe)||isNaN(un))throw wo.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var mn=this.ctx.transform.applyToPoint(new ge(Qe,un));this.path.push({type:"mt",x:mn.x,y:mn.y}),this.ctx.lastPoint=new ge(Qe,un)},fn.prototype.closePath=function(){var Qe=new ge(0,0),un=0;for(un=this.path.length-1;un!==-1;un--)if(this.path[un].type==="begin"&&(0,Mt.Z)(this.path[un+1])==="object"&&typeof this.path[un+1].x=="number"){Qe=new ge(this.path[un+1].x,this.path[un+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new ge(Qe.x,Qe.y)},fn.prototype.lineTo=function(Qe,un){if(isNaN(Qe)||isNaN(un))throw wo.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var mn=this.ctx.transform.applyToPoint(new ge(Qe,un));this.path.push({type:"lt",x:mn.x,y:mn.y}),this.ctx.lastPoint=new ge(mn.x,mn.y)},fn.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),ir.call(this,null,!0)},fn.prototype.quadraticCurveTo=function(Qe,un,mn,Hn){if(isNaN(mn)||isNaN(Hn)||isNaN(Qe)||isNaN(un))throw wo.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Zn=this.ctx.transform.applyToPoint(new ge(mn,Hn)),ii=this.ctx.transform.applyToPoint(new ge(Qe,un));this.path.push({type:"qct",x1:ii.x,y1:ii.y,x:Zn.x,y:Zn.y}),this.ctx.lastPoint=new ge(Zn.x,Zn.y)},fn.prototype.bezierCurveTo=function(Qe,un,mn,Hn,Zn,ii){if(isNaN(Zn)||isNaN(ii)||isNaN(Qe)||isNaN(un)||isNaN(mn)||isNaN(Hn))throw wo.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Fi=this.ctx.transform.applyToPoint(new ge(Zn,ii)),li=this.ctx.transform.applyToPoint(new ge(Qe,un)),Xi=this.ctx.transform.applyToPoint(new ge(mn,Hn));this.path.push({type:"bct",x1:li.x,y1:li.y,x2:Xi.x,y2:Xi.y,x:Fi.x,y:Fi.y}),this.ctx.lastPoint=new ge(Fi.x,Fi.y)},fn.prototype.arc=function(Qe,un,mn,Hn,Zn,ii){if(isNaN(Qe)||isNaN(un)||isNaN(mn)||isNaN(Hn)||isNaN(Zn))throw wo.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ii=!!ii,!this.ctx.transform.isIdentity){var Fi=this.ctx.transform.applyToPoint(new ge(Qe,un));Qe=Fi.x,un=Fi.y;var li=this.ctx.transform.applyToPoint(new ge(0,mn)),Xi=this.ctx.transform.applyToPoint(new ge(0,0));mn=Math.sqrt(Math.pow(li.x-Xi.x,2)+Math.pow(li.y-Xi.y,2))}Math.abs(Zn-Hn)>=2*Math.PI&&(Hn=0,Zn=2*Math.PI),this.path.push({type:"arc",x:Qe,y:un,radius:mn,startAngle:Hn,endAngle:Zn,counterclockwise:ii})},fn.prototype.arcTo=function(Qe,un,mn,Hn,Zn){throw new Error("arcTo not implemented.")},fn.prototype.rect=function(Qe,un,mn,Hn){if(isNaN(Qe)||isNaN(un)||isNaN(mn)||isNaN(Hn))throw wo.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(Qe,un),this.lineTo(Qe+mn,un),this.lineTo(Qe+mn,un+Hn),this.lineTo(Qe,un+Hn),this.lineTo(Qe,un),this.lineTo(Qe+mn,un),this.lineTo(Qe,un)},fn.prototype.fillRect=function(Qe,un,mn,Hn){if(isNaN(Qe)||isNaN(un)||isNaN(mn)||isNaN(Hn))throw wo.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!Ke.call(this)){var Zn={};this.lineCap!=="butt"&&(Zn.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Zn.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(Qe,un,mn,Hn),this.fill(),Zn.hasOwnProperty("lineCap")&&(this.lineCap=Zn.lineCap),Zn.hasOwnProperty("lineJoin")&&(this.lineJoin=Zn.lineJoin)}},fn.prototype.strokeRect=function(Qe,un,mn,Hn){if(isNaN(Qe)||isNaN(un)||isNaN(mn)||isNaN(Hn))throw wo.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");mi.call(this)||(this.beginPath(),this.rect(Qe,un,mn,Hn),this.stroke())},fn.prototype.clearRect=function(Qe,un,mn,Hn){if(isNaN(Qe)||isNaN(un)||isNaN(mn)||isNaN(Hn))throw wo.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(Qe,un,mn,Hn))},fn.prototype.save=function(Qe){Qe=typeof Qe!="boolean"||Qe;for(var un=this.pdf.internal.getCurrentPageInfo().pageNumber,mn=0;mn<this.pdf.internal.getNumberOfPages();mn++)this.pdf.setPage(mn+1),this.pdf.internal.out("q");if(this.pdf.setPage(un),Qe){this.ctx.fontSize=this.pdf.internal.getFontSize();var Hn=new dn(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Hn}},fn.prototype.restore=function(Qe){Qe=typeof Qe!="boolean"||Qe;for(var un=this.pdf.internal.getCurrentPageInfo().pageNumber,mn=0;mn<this.pdf.internal.getNumberOfPages();mn++)this.pdf.setPage(mn+1),this.pdf.internal.out("Q");this.pdf.setPage(un),Qe&&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)},fn.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Pn=function(Qe){var un,mn,Hn,Zn;if(Qe.isCanvasGradient===!0&&(Qe=Qe.getColor()),!Qe)return{r:0,g:0,b:0,a:0,style:Qe};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Qe))un=0,mn=0,Hn=0,Zn=0;else{var ii=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Qe);if(ii!==null)un=parseInt(ii[1]),mn=parseInt(ii[2]),Hn=parseInt(ii[3]),Zn=1;else if((ii=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Qe))!==null)un=parseInt(ii[1]),mn=parseInt(ii[2]),Hn=parseInt(ii[3]),Zn=parseFloat(ii[4]);else{if(Zn=1,typeof Qe=="string"&&Qe.charAt(0)!=="#"){var Fi=new Lo(Qe);Qe=Fi.ok?Fi.toHex():"#000000"}Qe.length===4?(un=Qe.substring(1,2),un+=un,mn=Qe.substring(2,3),mn+=mn,Hn=Qe.substring(3,4),Hn+=Hn):(un=Qe.substring(1,3),mn=Qe.substring(3,5),Hn=Qe.substring(5,7)),un=parseInt(un,16),mn=parseInt(mn,16),Hn=parseInt(Hn,16)}}return{r:un,g:mn,b:Hn,a:Zn,style:Qe}},Ke=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},mi=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};fn.prototype.fillText=function(Qe,un,mn,Hn){if(isNaN(un)||isNaN(mn)||typeof Qe!="string")throw wo.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Hn=isNaN(Hn)?void 0:Hn,!Ke.call(this)){var Zn=rn(this.ctx.transform.rotation),ii=this.ctx.transform.scaleX;ri.call(this,{text:Qe,x:un,y:mn,scale:ii,angle:Zn,align:this.textAlign,maxWidth:Hn})}},fn.prototype.strokeText=function(Qe,un,mn,Hn){if(isNaN(un)||isNaN(mn)||typeof Qe!="string")throw wo.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!mi.call(this)){Hn=isNaN(Hn)?void 0:Hn;var Zn=rn(this.ctx.transform.rotation),ii=this.ctx.transform.scaleX;ri.call(this,{text:Qe,x:un,y:mn,scale:ii,renderingMode:"stroke",angle:Zn,align:this.textAlign,maxWidth:Hn})}},fn.prototype.measureText=function(Qe){if(typeof Qe!="string")throw wo.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var un=this.pdf,mn=this.pdf.internal.scaleFactor,Hn=un.internal.getFontSize(),Zn=un.getStringUnitWidth(Qe)*Hn/un.internal.scaleFactor,ii=function(Fi){var li=(Fi=Fi||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return li}}),this};return new ii({width:Zn*=Math.round(96*mn/72*1e4)/1e4})},fn.prototype.scale=function(Qe,un){if(isNaN(Qe)||isNaN(un))throw wo.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var mn=new be(Qe,0,0,un,0,0);this.ctx.transform=this.ctx.transform.multiply(mn)},fn.prototype.rotate=function(Qe){if(isNaN(Qe))throw wo.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var un=new be(Math.cos(Qe),Math.sin(Qe),-Math.sin(Qe),Math.cos(Qe),0,0);this.ctx.transform=this.ctx.transform.multiply(un)},fn.prototype.translate=function(Qe,un){if(isNaN(Qe)||isNaN(un))throw wo.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var mn=new be(1,0,0,1,Qe,un);this.ctx.transform=this.ctx.transform.multiply(mn)},fn.prototype.transform=function(Qe,un,mn,Hn,Zn,ii){if(isNaN(Qe)||isNaN(un)||isNaN(mn)||isNaN(Hn)||isNaN(Zn)||isNaN(ii))throw wo.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Fi=new be(Qe,un,mn,Hn,Zn,ii);this.ctx.transform=this.ctx.transform.multiply(Fi)},fn.prototype.setTransform=function(Qe,un,mn,Hn,Zn,ii){Qe=isNaN(Qe)?1:Qe,un=isNaN(un)?0:un,mn=isNaN(mn)?0:mn,Hn=isNaN(Hn)?1:Hn,Zn=isNaN(Zn)?0:Zn,ii=isNaN(ii)?0:ii,this.ctx.transform=new be(Qe,un,mn,Hn,Zn,ii)};var Jn=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};fn.prototype.drawImage=function(Qe,un,mn,Hn,Zn,ii,Fi,li,Xi){var Zi=this.pdf.getImageProperties(Qe),Ar=1,br=1,eo=1,Ii=1;Hn!==void 0&&li!==void 0&&(eo=li/Hn,Ii=Xi/Zn,Ar=Zi.width/Hn*li/Hn,br=Zi.height/Zn*Xi/Zn),ii===void 0&&(ii=un,Fi=mn,un=0,mn=0),Hn!==void 0&&li===void 0&&(li=Hn,Xi=Zn),Hn===void 0&&li===void 0&&(li=Zi.width,Xi=Zi.height);for(var Xn,Co=this.ctx.transform.decompose(),Br=rn(Co.rotate.shx),sr=new be,ar=(sr=(sr=(sr=sr.multiply(Co.translate)).multiply(Co.skew)).multiply(Co.scale)).applyToRectangle(new we(ii-un*eo,Fi-mn*Ii,Hn*Ar,Zn*br)),qi=yi.call(this,ar),pr=[],Vr=0;Vr<qi.length;Vr+=1)pr.indexOf(qi[Vr])===-1&&pr.push(qi[Vr]);if(Qi(pr),this.autoPaging)for(var co=pr[0],fo=pr[pr.length-1],Rr=co;Rr<fo+1;Rr++){this.pdf.setPage(Rr);var jo=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],us=Rr===1?this.posY+this.margin[0]:this.margin[0],qo=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ns=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],xo=Rr===1?0:qo+(Rr-2)*ns;if(this.ctx.clip_path.length!==0){var wa=this.path;Xn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=di(Xn,this.posX+this.margin[3],-xo+us+this.ctx.prevPageLastElemOffset),Er.call(this,"fill",!0),this.path=wa}var $o=JSON.parse(JSON.stringify(ar));$o=di([$o],this.posX+this.margin[3],-xo+us+this.ctx.prevPageLastElemOffset)[0];var rs=(Rr>co||Rr<fo)&&Jn.call(this);rs&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],jo,ns,null).clip().discardPath()),this.pdf.addImage(Qe,"JPEG",$o.x,$o.y,$o.w,$o.h,null,null,Br),rs&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(Qe,"JPEG",ar.x,ar.y,ar.w,ar.h,null,null,Br)};var yi=function(Qe,un,mn){var Hn=[];un=un||this.pdf.internal.pageSize.width,mn=mn||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Zn=this.posY+this.ctx.prevPageLastElemOffset;switch(Qe.type){default:case"mt":case"lt":Hn.push(Math.floor((Qe.y+Zn)/mn)+1);break;case"arc":Hn.push(Math.floor((Qe.y+Zn-Qe.radius)/mn)+1),Hn.push(Math.floor((Qe.y+Zn+Qe.radius)/mn)+1);break;case"qct":var ii=kn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Qe.x1,Qe.y1,Qe.x,Qe.y);Hn.push(Math.floor((ii.y+Zn)/mn)+1),Hn.push(Math.floor((ii.y+ii.h+Zn)/mn)+1);break;case"bct":var Fi=jn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Qe.x1,Qe.y1,Qe.x2,Qe.y2,Qe.x,Qe.y);Hn.push(Math.floor((Fi.y+Zn)/mn)+1),Hn.push(Math.floor((Fi.y+Fi.h+Zn)/mn)+1);break;case"rect":Hn.push(Math.floor((Qe.y+Zn)/mn)+1),Hn.push(Math.floor((Qe.y+Qe.h+Zn)/mn)+1)}for(var li=0;li<Hn.length;li+=1)for(;this.pdf.internal.getNumberOfPages()<Hn[li];)Un.call(this);return Hn},Un=function(){var Qe=this.fillStyle,un=this.strokeStyle,mn=this.font,Hn=this.lineCap,Zn=this.lineWidth,ii=this.lineJoin;this.pdf.addPage(),this.fillStyle=Qe,this.strokeStyle=un,this.font=mn,this.lineCap=Hn,this.lineWidth=Zn,this.lineJoin=ii},di=function(Qe,un,mn){for(var Hn=0;Hn<Qe.length;Hn++)switch(Qe[Hn].type){case"bct":Qe[Hn].x2+=un,Qe[Hn].y2+=mn;case"qct":Qe[Hn].x1+=un,Qe[Hn].y1+=mn;case"mt":case"lt":case"arc":default:Qe[Hn].x+=un,Qe[Hn].y+=mn}return Qe},Qi=function(Qe){return Qe.sort(function(un,mn){return un-mn})},ir=function(Qe,un){for(var mn,Hn,Zn=this.fillStyle,ii=this.strokeStyle,Fi=this.lineCap,li=this.lineWidth,Xi=Math.abs(li*this.ctx.transform.scaleX),Zi=this.lineJoin,Ar=JSON.parse(JSON.stringify(this.path)),br=JSON.parse(JSON.stringify(this.path)),eo=[],Ii=0;Ii<br.length;Ii++)if(br[Ii].x!==void 0)for(var Xn=yi.call(this,br[Ii]),Co=0;Co<Xn.length;Co+=1)eo.indexOf(Xn[Co])===-1&&eo.push(Xn[Co]);for(var Br=0;Br<eo.length;Br++)for(;this.pdf.internal.getNumberOfPages()<eo[Br];)Un.call(this);if(Qi(eo),this.autoPaging)for(var sr=eo[0],ar=eo[eo.length-1],qi=sr;qi<ar+1;qi++){this.pdf.setPage(qi),this.fillStyle=Zn,this.strokeStyle=ii,this.lineCap=Fi,this.lineWidth=Xi,this.lineJoin=Zi;var pr=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Vr=qi===1?this.posY+this.margin[0]:this.margin[0],co=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],fo=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Rr=qi===1?0:co+(qi-2)*fo;if(this.ctx.clip_path.length!==0){var jo=this.path;mn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=di(mn,this.posX+this.margin[3],-Rr+Vr+this.ctx.prevPageLastElemOffset),Er.call(this,Qe,!0),this.path=jo}if(Hn=JSON.parse(JSON.stringify(Ar)),this.path=di(Hn,this.posX+this.margin[3],-Rr+Vr+this.ctx.prevPageLastElemOffset),un===!1||qi===0){var us=(qi>sr||qi<ar)&&Jn.call(this);us&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],pr,fo,null).clip().discardPath()),Er.call(this,Qe,un),us&&this.pdf.restoreGraphicsState()}this.lineWidth=li}else this.lineWidth=Xi,Er.call(this,Qe,un),this.lineWidth=li;this.path=Ar},Er=function(Qe,un){if((Qe!=="stroke"||un||!mi.call(this))&&(Qe==="stroke"||un||!Ke.call(this))){for(var mn,Hn,Zn=[],ii=this.path,Fi=0;Fi<ii.length;Fi++){var li=ii[Fi];switch(li.type){case"begin":Zn.push({begin:!0});break;case"close":Zn.push({close:!0});break;case"mt":Zn.push({start:li,deltas:[],abs:[]});break;case"lt":var Xi=Zn.length;if(ii[Fi-1]&&!isNaN(ii[Fi-1].x)&&(mn=[li.x-ii[Fi-1].x,li.y-ii[Fi-1].y],Xi>0)){for(;Xi>=0;Xi--)if(Zn[Xi-1].close!==!0&&Zn[Xi-1].begin!==!0){Zn[Xi-1].deltas.push(mn),Zn[Xi-1].abs.push(li);break}}break;case"bct":mn=[li.x1-ii[Fi-1].x,li.y1-ii[Fi-1].y,li.x2-ii[Fi-1].x,li.y2-ii[Fi-1].y,li.x-ii[Fi-1].x,li.y-ii[Fi-1].y],Zn[Zn.length-1].deltas.push(mn);break;case"qct":var Zi=ii[Fi-1].x+2/3*(li.x1-ii[Fi-1].x),Ar=ii[Fi-1].y+2/3*(li.y1-ii[Fi-1].y),br=li.x+2/3*(li.x1-li.x),eo=li.y+2/3*(li.y1-li.y),Ii=li.x,Xn=li.y;mn=[Zi-ii[Fi-1].x,Ar-ii[Fi-1].y,br-ii[Fi-1].x,eo-ii[Fi-1].y,Ii-ii[Fi-1].x,Xn-ii[Fi-1].y],Zn[Zn.length-1].deltas.push(mn);break;case"arc":Zn.push({deltas:[],abs:[],arc:!0}),Array.isArray(Zn[Zn.length-1].abs)&&Zn[Zn.length-1].abs.push(li)}}Hn=un?null:Qe==="stroke"?"stroke":"fill";for(var Co=!1,Br=0;Br<Zn.length;Br++)if(Zn[Br].arc)for(var sr=Zn[Br].abs,ar=0;ar<sr.length;ar++){var qi=sr[ar];qi.type==="arc"?Ti.call(this,qi.x,qi.y,qi.radius,qi.startAngle,qi.endAngle,qi.counterclockwise,void 0,un,!Co):pe.call(this,qi.x,qi.y),Co=!0}else if(Zn[Br].close===!0)this.pdf.internal.out("h"),Co=!1;else if(Zn[Br].begin!==!0){var pr=Zn[Br].start.x,Vr=Zn[Br].start.y;me.call(this,Zn[Br].deltas,pr,Vr),Co=!0}Hn&&xr.call(this,Hn),un&&Ir.call(this)}},ao=function(Qe){var un=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,mn=un*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Qe-mn;case"top":return Qe+un-mn;case"hanging":return Qe+un-2*mn;case"middle":return Qe+un/2-mn;case"ideographic":return Qe;case"alphabetic":default:return Qe}},gr=function(Qe){return Qe+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};fn.prototype.createLinearGradient=function(){var Qe=function(){};return Qe.colorStops=[],Qe.addColorStop=function(un,mn){this.colorStops.push([un,mn])},Qe.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},Qe.isCanvasGradient=!0,Qe},fn.prototype.createPattern=function(){return this.createLinearGradient()},fn.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Ti=function(Qe,un,mn,Hn,Zn,ii,Fi,li,Xi){for(var Zi=Je.call(this,mn,Hn,Zn,ii),Ar=0;Ar<Zi.length;Ar++){var br=Zi[Ar];Ar===0&&(Xi?$n.call(this,br.x1+Qe,br.y1+un):pe.call(this,br.x1+Qe,br.y1+un)),Xe.call(this,Qe,un,br.x2,br.y2,br.x3,br.y3,br.x4,br.y4)}li?Ir.call(this):xr.call(this,Fi)},xr=function(Qe){switch(Qe){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Ir=function(){this.pdf.clip(),this.pdf.discardPath()},$n=function(Qe,un){this.pdf.internal.out(bt(Qe)+" "+Ht(un)+" m")},ri=function(Qe){var un;switch(Qe.align){case"right":case"end":un="right";break;case"center":un="center";break;case"left":case"start":default:un="left"}var mn=this.pdf.getTextDimensions(Qe.text),Hn=ao.call(this,Qe.y),Zn=gr.call(this,Hn)-mn.h,ii=this.ctx.transform.applyToPoint(new ge(Qe.x,Hn)),Fi=this.ctx.transform.decompose(),li=new be;li=(li=(li=li.multiply(Fi.translate)).multiply(Fi.skew)).multiply(Fi.scale);for(var Xi,Zi,Ar,br=this.ctx.transform.applyToRectangle(new we(Qe.x,Hn,mn.w,mn.h)),eo=li.applyToRectangle(new we(Qe.x,Zn,mn.w,mn.h)),Ii=yi.call(this,eo),Xn=[],Co=0;Co<Ii.length;Co+=1)Xn.indexOf(Ii[Co])===-1&&Xn.push(Ii[Co]);if(Qi(Xn),this.autoPaging)for(var Br=Xn[0],sr=Xn[Xn.length-1],ar=Br;ar<sr+1;ar++){this.pdf.setPage(ar);var qi=ar===1?this.posY+this.margin[0]:this.margin[0],pr=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Vr=this.pdf.internal.pageSize.height-this.margin[2],co=Vr-this.margin[0],fo=this.pdf.internal.pageSize.width-this.margin[1],Rr=fo-this.margin[3],jo=ar===1?0:pr+(ar-2)*co;if(this.ctx.clip_path.length!==0){var us=this.path;Xi=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=di(Xi,this.posX+this.margin[3],-1*jo+qi),Er.call(this,"fill",!0),this.path=us}var qo=di([JSON.parse(JSON.stringify(eo))],this.posX+this.margin[3],-jo+qi+this.ctx.prevPageLastElemOffset)[0];Qe.scale>=.01&&(Zi=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Zi*Qe.scale),Ar=this.lineWidth,this.lineWidth=Ar*Qe.scale);var ns=this.autoPaging!=="text";if(ns||qo.y+qo.h<=Vr){if(ns||qo.y>=qi&&qo.x<=fo){var xo=ns?Qe.text:this.pdf.splitTextToSize(Qe.text,Qe.maxWidth||fo-qo.x)[0],wa=di([JSON.parse(JSON.stringify(br))],this.posX+this.margin[3],-jo+qi+this.ctx.prevPageLastElemOffset)[0],$o=ns&&(ar>Br||ar<sr)&&Jn.call(this);$o&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Rr,co,null).clip().discardPath()),this.pdf.text(xo,wa.x,wa.y,{angle:Qe.angle,align:un,renderingMode:Qe.renderingMode}),$o&&this.pdf.restoreGraphicsState()}}else qo.y<Vr&&(this.ctx.prevPageLastElemOffset+=Vr-qo.y);Qe.scale>=.01&&(this.pdf.setFontSize(Zi),this.lineWidth=Ar)}else Qe.scale>=.01&&(Zi=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Zi*Qe.scale),Ar=this.lineWidth,this.lineWidth=Ar*Qe.scale),this.pdf.text(Qe.text,ii.x+this.posX,ii.y+this.posY,{angle:Qe.angle,align:un,renderingMode:Qe.renderingMode,maxWidth:Qe.maxWidth}),Qe.scale>=.01&&(this.pdf.setFontSize(Zi),this.lineWidth=Ar)},pe=function(Qe,un,mn,Hn){mn=mn||0,Hn=Hn||0,this.pdf.internal.out(bt(Qe+mn)+" "+Ht(un+Hn)+" l")},me=function(Qe,un,mn){return this.pdf.lines(Qe,un,mn,null,null)},Xe=function(Qe,un,mn,Hn,Zn,ii,Fi,li){this.pdf.internal.out([wt(ie(mn+Qe)),wt(Yt(Hn+un)),wt(ie(Zn+Qe)),wt(Yt(ii+un)),wt(ie(Fi+Qe)),wt(Yt(li+un)),"c"].join(" "))},Je=function(Qe,un,mn,Hn){for(var Zn=2*Math.PI,ii=Math.PI/2;un>mn;)un-=Zn;var Fi=Math.abs(mn-un);Fi<Zn&&Hn&&(Fi=Zn-Fi);for(var li=[],Xi=Hn?-1:1,Zi=un;Fi>1e-5;){var Ar=Zi+Xi*Math.min(Fi,ii);li.push(vn.call(this,Qe,Zi,Ar)),Fi-=Math.abs(Ar-Zi),Zi=Ar}return li},vn=function(Qe,un,mn){var Hn=(mn-un)/2,Zn=Qe*Math.cos(Hn),ii=Qe*Math.sin(Hn),Fi=Zn,li=-ii,Xi=Fi*Fi+li*li,Zi=Xi+Fi*Zn+li*ii,Ar=4/3*(Math.sqrt(2*Xi*Zi)-Zi)/(Fi*ii-li*Zn),br=Fi-Ar*li,eo=li+Ar*Fi,Ii=br,Xn=-eo,Co=Hn+un,Br=Math.cos(Co),sr=Math.sin(Co);return{x1:Qe*Math.cos(un),y1:Qe*Math.sin(un),x2:br*Br-eo*sr,y2:br*sr+eo*Br,x3:Ii*Br-Xn*sr,y3:Ii*sr+Xn*Br,x4:Qe*Math.cos(mn),y4:Qe*Math.sin(mn)}},rn=function(Qe){return 180*Qe/Math.PI},kn=function(Qe,un,mn,Hn,Zn,ii){var Fi=Qe+.5*(mn-Qe),li=un+.5*(Hn-un),Xi=Zn+.5*(mn-Zn),Zi=ii+.5*(Hn-ii),Ar=Math.min(Qe,Zn,Fi,Xi),br=Math.max(Qe,Zn,Fi,Xi),eo=Math.min(un,ii,li,Zi),Ii=Math.max(un,ii,li,Zi);return new we(Ar,eo,br-Ar,Ii-eo)},jn=function(Qe,un,mn,Hn,Zn,ii,Fi,li){var Xi,Zi,Ar,br,eo,Ii,Xn,Co,Br,sr,ar,qi,pr,Vr,co=mn-Qe,fo=Hn-un,Rr=Zn-mn,jo=ii-Hn,us=Fi-Zn,qo=li-ii;for(Zi=0;Zi<41;Zi++)Br=(Xn=(Ar=Qe+(Xi=Zi/40)*co)+Xi*((eo=mn+Xi*Rr)-Ar))+Xi*(eo+Xi*(Zn+Xi*us-eo)-Xn),sr=(Co=(br=un+Xi*fo)+Xi*((Ii=Hn+Xi*jo)-br))+Xi*(Ii+Xi*(ii+Xi*qo-Ii)-Co),Zi==0?(ar=Br,qi=sr,pr=Br,Vr=sr):(ar=Math.min(ar,Br),qi=Math.min(qi,sr),pr=Math.max(pr,Br),Vr=Math.max(Vr,sr));return new we(Math.round(ar),Math.round(qi),Math.round(pr-ar),Math.round(Vr-qi))},Yn=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var Qe,un,mn=(Qe=this.ctx.lineDash,un=this.ctx.lineDashOffset,JSON.stringify({lineDash:Qe,lineDashOffset:un}));this.prevLineDash!==mn&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=mn)}}})(Ro.API),function(Et){var wt=function(Yt){var ge,we,be,$e,dn,fn,Pn,Ke,mi,Jn;for(/[^\x00-\xFF]/.test(Yt),we=[],be=0,$e=(Yt+=ge="\0\0\0\0".slice(Yt.length%4||4)).length;$e>be;be+=4)(dn=(Yt.charCodeAt(be)<<24)+(Yt.charCodeAt(be+1)<<16)+(Yt.charCodeAt(be+2)<<8)+Yt.charCodeAt(be+3))!==0?(fn=(dn=((dn=((dn=((dn=(dn-(Jn=dn%85))/85)-(mi=dn%85))/85)-(Ke=dn%85))/85)-(Pn=dn%85))/85)%85,we.push(fn+33,Pn+33,Ke+33,mi+33,Jn+33)):we.push(122);return function(yi,Un){for(var di=Un;di>0;di--)yi.pop()}(we,ge.length),String.fromCharCode.apply(String,we)+"~>"},bt=function(Yt){var ge,we,be,$e,dn,fn=String,Pn="length",Ke=255,mi="charCodeAt",Jn="slice",yi="replace";for(Yt[Jn](-2),Yt=Yt[Jn](0,-2)[yi](/\s/g,"")[yi]("z","!!!!!"),be=[],$e=0,dn=(Yt+=ge="uuuuu"[Jn](Yt[Pn]%5||5))[Pn];dn>$e;$e+=5)we=52200625*(Yt[mi]($e)-33)+614125*(Yt[mi]($e+1)-33)+7225*(Yt[mi]($e+2)-33)+85*(Yt[mi]($e+3)-33)+(Yt[mi]($e+4)-33),be.push(Ke&we>>24,Ke&we>>16,Ke&we>>8,Ke&we);return function(Un,di){for(var Qi=di;Qi>0;Qi--)Un.pop()}(be,ge[Pn]),fn.fromCharCode.apply(fn,be)},Ht=function(Yt){var ge=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((Yt=Yt.replace(/\s/g,"")).indexOf(">")!==-1&&(Yt=Yt.substr(0,Yt.indexOf(">"))),Yt.length%2&&(Yt+="0"),ge.test(Yt)===!1)return"";for(var we="",be=0;be<Yt.length;be+=2)we+=String.fromCharCode("0x"+(Yt[be]+Yt[be+1]));return we},ie=function(Yt){for(var ge=new Uint8Array(Yt.length),we=Yt.length;we--;)ge[we]=Yt.charCodeAt(we);return Yt=(ge=Tn(ge)).reduce(function(be,$e){return be+String.fromCharCode($e)},"")};Et.processDataByFilters=function(Yt,ge){var we=0,be=Yt||"",$e=[];for(typeof(ge=ge||[])=="string"&&(ge=[ge]),we=0;we<ge.length;we+=1)switch(ge[we]){case"ASCII85Decode":case"/ASCII85Decode":be=bt(be),$e.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":be=wt(be),$e.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":be=Ht(be),$e.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":be=be.split("").map(function(dn){return("0"+dn.charCodeAt().toString(16)).slice(-2)}).join("")+">",$e.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":be=ie(be),$e.push("/FlateDecode");break;default:throw new Error('The filter: "'+ge[we]+'" is not implemented')}return{data:be,reverseChain:$e.reverse().join(" ")}}}(Ro.API),function(Et){Et.loadFile=function(wt,bt,Ht){return function(ie,Yt,ge){Yt=Yt!==!1,ge=typeof ge=="function"?ge:function(){};var we=void 0;try{we=function(be,$e,dn){var fn=new XMLHttpRequest,Pn=0,Ke=function(mi){var Jn=mi.length,yi=[],Un=String.fromCharCode;for(Pn=0;Pn<Jn;Pn+=1)yi.push(Un(255&mi.charCodeAt(Pn)));return yi.join("")};if(fn.open("GET",be,!$e),fn.overrideMimeType("text/plain; charset=x-user-defined"),$e===!1&&(fn.onload=function(){fn.status===200?dn(Ke(this.responseText)):dn(void 0)}),fn.send(null),$e&&fn.status===200)return Ke(fn.responseText)}(ie,Yt,ge)}catch(be){}return we}(wt,bt,Ht)},Et.loadImageFile=Et.loadFile}(Ro.API),function(Et){function wt(){return(Sr.html2canvas?Promise.resolve(Sr.html2canvas):Promise.resolve().then(Ft.t.bind(Ft,64270,23))).catch(function(ge){return Promise.reject(new Error("Could not load html2canvas: "+ge))}).then(function(ge){return ge.default?ge.default:ge})}function bt(){return(Sr.DOMPurify?Promise.resolve(Sr.DOMPurify):Ft.e(7631).then(Ft.bind(Ft,87631))).catch(function(ge){return Promise.reject(new Error("Could not load dompurify: "+ge))}).then(function(ge){return ge.default?ge.default:ge})}var Ht=function(ge){var we=(0,Mt.Z)(ge);return we==="undefined"?"undefined":we==="string"||ge instanceof String?"string":we==="number"||ge instanceof Number?"number":we==="function"||ge instanceof Function?"function":ge&&ge.constructor===Array?"array":ge&&ge.nodeType===1?"element":we==="object"?"object":"unknown"},ie=function(ge,we){var be=document.createElement(ge);for(var $e in we.className&&(be.className=we.className),we.innerHTML&&we.dompurify&&(be.innerHTML=we.dompurify.sanitize(we.innerHTML)),we.style)be.style[$e]=we.style[$e];return be},Yt=function ge(we){var be=Object.assign(ge.convert(Promise.resolve()),JSON.parse(JSON.stringify(ge.template))),$e=ge.convert(Promise.resolve(),be);return $e=($e=$e.setProgress(1,ge,1,[ge])).set(we)};(Yt.prototype=Object.create(Promise.prototype)).constructor=Yt,Yt.convert=function(ge,we){return ge.__proto__=we||Yt.prototype,ge},Yt.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"}},Yt.prototype.from=function(ge,we){return this.then(function(){switch(we=we||function(be){switch(Ht(be)){case"string":return"string";case"element":return be.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(ge)){case"string":return this.then(bt).then(function(be){return this.set({src:ie("div",{innerHTML:ge,dompurify:be})})});case"element":return this.set({src:ge});case"canvas":return this.set({canvas:ge});case"img":return this.set({img:ge});default:return this.error("Unknown source type.")}})},Yt.prototype.to=function(ge){switch(ge){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},Yt.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var ge={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},we=function be($e,dn){for(var fn=$e.nodeType===3?document.createTextNode($e.nodeValue):$e.cloneNode(!1),Pn=$e.firstChild;Pn;Pn=Pn.nextSibling)dn!==!0&&Pn.nodeType===1&&Pn.nodeName==="SCRIPT"||fn.appendChild(be(Pn,dn));return $e.nodeType===1&&($e.nodeName==="CANVAS"?(fn.width=$e.width,fn.height=$e.height,fn.getContext("2d").drawImage($e,0,0)):$e.nodeName!=="TEXTAREA"&&$e.nodeName!=="SELECT"||(fn.value=$e.value),fn.addEventListener("load",function(){fn.scrollTop=$e.scrollTop,fn.scrollLeft=$e.scrollLeft},!0)),fn}(this.prop.src,this.opt.html2canvas.javascriptEnabled);we.tagName==="BODY"&&(ge.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=ie("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=ie("div",{className:"html2pdf__container",style:ge}),this.prop.container.appendChild(we),this.prop.container.firstChild.appendChild(ie("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"})},Yt.prototype.toCanvas=function(){var ge=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ge).then(wt).then(function(we){var be=Object.assign({},this.opt.html2canvas);return delete be.onrendered,we(this.prop.container,be)}).then(function(we){(this.opt.html2canvas.onrendered||function(){})(we),this.prop.canvas=we,document.body.removeChild(this.prop.overlay)})},Yt.prototype.toContext2d=function(){var ge=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ge).then(wt).then(function(we){var be=this.opt.jsPDF,$e=this.opt.fontFaces,dn=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,fn=Object.assign({async:!0,allowTaint:!0,scale:dn,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 fn.onrendered,be.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,be.context2d.posX=this.opt.x,be.context2d.posY=this.opt.y,be.context2d.margin=this.opt.margin,be.context2d.fontFaces=$e,$e)for(var Pn=0;Pn<$e.length;++Pn){var Ke=$e[Pn],mi=Ke.src.find(function(Jn){return Jn.format==="truetype"});mi&&be.addFont(mi.url,Ke.ref.name,Ke.ref.style)}return fn.windowHeight=fn.windowHeight||0,fn.windowHeight=fn.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):fn.windowHeight,be.context2d.save(!0),we(this.prop.container,fn)}).then(function(we){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(we),this.prop.canvas=we,document.body.removeChild(this.prop.overlay)})},Yt.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var ge=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=ge})},Yt.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},Yt.prototype.output=function(ge,we,be){return(be=be||"pdf").toLowerCase()==="img"||be.toLowerCase()==="image"?this.outputImg(ge,we):this.outputPdf(ge,we)},Yt.prototype.outputPdf=function(ge,we){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(ge,we)})},Yt.prototype.outputImg=function(ge){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(ge){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+ge+'" is not supported.'}})},Yt.prototype.save=function(ge){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(ge?{filename:ge}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Yt.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},Yt.prototype.set=function(ge){if(Ht(ge)!=="object")return this;var we=Object.keys(ge||{}).map(function(be){if(be in Yt.template.prop)return function(){this.prop[be]=ge[be]};switch(be){case"margin":return this.setMargin.bind(this,ge.margin);case"jsPDF":return function(){return this.opt.jsPDF=ge.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,ge.pageSize);default:return function(){this.opt[be]=ge[be]}}},this);return this.then(function(){return this.thenList(we)})},Yt.prototype.get=function(ge,we){return this.then(function(){var be=ge in Yt.template.prop?this.prop[ge]:this.opt[ge];return we?we(be):be})},Yt.prototype.setMargin=function(ge){return this.then(function(){switch(Ht(ge)){case"number":ge=[ge,ge,ge,ge];case"array":if(ge.length===2&&(ge=[ge[0],ge[1],ge[0],ge[1]]),ge.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=ge}).then(this.setPageSize)},Yt.prototype.setPageSize=function(ge){function we(be,$e){return Math.floor(be*$e/72*96)}return this.then(function(){(ge=ge||Ro.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(ge.inner={width:ge.width-this.opt.margin[1]-this.opt.margin[3],height:ge.height-this.opt.margin[0]-this.opt.margin[2]},ge.inner.px={width:we(ge.inner.width,ge.k),height:we(ge.inner.height,ge.k)},ge.inner.ratio=ge.inner.height/ge.inner.width),this.prop.pageSize=ge})},Yt.prototype.setProgress=function(ge,we,be,$e){return ge!=null&&(this.progress.val=ge),we!=null&&(this.progress.state=we),be!=null&&(this.progress.n=be),$e!=null&&(this.progress.stack=$e),this.progress.ratio=this.progress.val/this.progress.state,this},Yt.prototype.updateProgress=function(ge,we,be,$e){return this.setProgress(ge?this.progress.val+ge:null,we||null,be?this.progress.n+be:null,$e?this.progress.stack.concat($e):null)},Yt.prototype.then=function(ge,we){var be=this;return this.thenCore(ge,we,function($e,dn){return be.updateProgress(null,null,1,[$e]),Promise.prototype.then.call(this,function(fn){return be.updateProgress(null,$e),fn}).then($e,dn).then(function(fn){return be.updateProgress(1),fn})})},Yt.prototype.thenCore=function(ge,we,be){be=be||Promise.prototype.then,ge&&(ge=ge.bind(this)),we&&(we=we.bind(this));var $e=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:Yt.convert(Object.assign({},this),Promise.prototype),dn=be.call($e,ge,we);return Yt.convert(dn,this.__proto__)},Yt.prototype.thenExternal=function(ge,we){return Promise.prototype.then.call(this,ge,we)},Yt.prototype.thenList=function(ge){var we=this;return ge.forEach(function(be){we=we.thenCore(be)}),we},Yt.prototype.catch=function(ge){ge&&(ge=ge.bind(this));var we=Promise.prototype.catch.call(this,ge);return Yt.convert(we,this)},Yt.prototype.catchExternal=function(ge){return Promise.prototype.catch.call(this,ge)},Yt.prototype.error=function(ge){return this.then(function(){throw new Error(ge)})},Yt.prototype.using=Yt.prototype.set,Yt.prototype.saveAs=Yt.prototype.save,Yt.prototype.export=Yt.prototype.output,Yt.prototype.run=Yt.prototype.then,Ro.getPageSize=function(ge,we,be){if((0,Mt.Z)(ge)==="object"){var $e=ge;ge=$e.orientation,we=$e.unit||we,be=$e.format||be}we=we||"mm",be=be||"a4",ge=(""+(ge||"P")).toLowerCase();var dn,fn=(""+be).toLowerCase(),Pn={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(we){case"pt":dn=1;break;case"mm":dn=72/25.4;break;case"cm":dn=72/2.54;break;case"in":dn=72;break;case"px":dn=.75;break;case"pc":case"em":dn=12;break;case"ex":dn=6;break;default:throw"Invalid unit: "+we}var Ke,mi=0,Jn=0;if(Pn.hasOwnProperty(fn))mi=Pn[fn][1]/dn,Jn=Pn[fn][0]/dn;else try{mi=be[1],Jn=be[0]}catch(yi){throw new Error("Invalid format: "+be)}if(ge==="p"||ge==="portrait")ge="p",Jn>mi&&(Ke=Jn,Jn=mi,mi=Ke);else{if(ge!=="l"&&ge!=="landscape")throw"Invalid orientation: "+ge;ge="l",mi>Jn&&(Ke=Jn,Jn=mi,mi=Ke)}return{width:Jn,height:mi,unit:we,k:dn,orientation:ge}},Et.html=function(ge,we){(we=we||{}).callback=we.callback||function(){},we.html2canvas=we.html2canvas||{},we.html2canvas.canvas=we.html2canvas.canvas||this.canvas,we.jsPDF=we.jsPDF||this,we.fontFaces=we.fontFaces?we.fontFaces.map(Oc):null;var be=new Yt(we);return we.worker?be:be.from(ge).doCallback()}}(Ro.API),Ro.API.addJS=function(Et){return fc=Et,this.internal.events.subscribe("postPutResources",function(){tl=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(tl+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 ("+fc+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){tl!==void 0&&Dl!==void 0&&this.internal.out("/Names <</JavaScript "+tl+" 0 R>>")}),this},function(Et){var wt;Et.events.push(["postPutResources",function(){var bt=this,Ht=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var ie=bt.outline.render().split(/\r\n/),Yt=0;Yt<ie.length;Yt++){var ge=ie[Yt],we=Ht.exec(ge);if(we!=null){var be=we[1];bt.internal.newObjectDeferredBegin(be,!1)}bt.internal.write(ge)}if(this.outline.createNamedDestinations){var $e=this.internal.pages.length,dn=[];for(Yt=0;Yt<$e;Yt++){var fn=bt.internal.newObject();dn.push(fn);var Pn=bt.internal.getPageInfo(Yt+1);bt.internal.write("<< /D["+Pn.objId+" 0 R /XYZ null null null]>> endobj")}var Ke=bt.internal.newObject();for(bt.internal.write("<< /Names [ "),Yt=0;Yt<dn.length;Yt++)bt.internal.write("(page_"+(Yt+1)+")"+dn[Yt]+" 0 R");bt.internal.write(" ] >>","endobj"),wt=bt.internal.newObject(),bt.internal.write("<< /Dests "+Ke+" 0 R"),bt.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 "+wt+" 0 R"))}]),Et.events.push(["initialized",function(){var bt=this;bt.outline={createNamedDestinations:!1,root:{children:[]}},bt.outline.add=function(Ht,ie,Yt){var ge={title:ie,options:Yt,children:[]};return Ht==null&&(Ht=this.root),Ht.children.push(ge),ge},bt.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=bt,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},bt.outline.genIds_r=function(Ht){Ht.id=bt.internal.newObjectDeferred();for(var ie=0;ie<Ht.children.length;ie++)this.genIds_r(Ht.children[ie])},bt.outline.renderRoot=function(Ht){this.objStart(Ht),this.line("/Type /Outlines"),Ht.children.length>0&&(this.line("/First "+this.makeRef(Ht.children[0])),this.line("/Last "+this.makeRef(Ht.children[Ht.children.length-1]))),this.line("/Count "+this.count_r({count:0},Ht)),this.objEnd()},bt.outline.renderItems=function(Ht){for(var ie=this.ctx.pdf.internal.getVerticalCoordinateString,Yt=0;Yt<Ht.children.length;Yt++){var ge=Ht.children[Yt];this.objStart(ge),this.line("/Title "+this.makeString(ge.title)),this.line("/Parent "+this.makeRef(Ht)),Yt>0&&this.line("/Prev "+this.makeRef(Ht.children[Yt-1])),Yt<Ht.children.length-1&&this.line("/Next "+this.makeRef(Ht.children[Yt+1])),ge.children.length>0&&(this.line("/First "+this.makeRef(ge.children[0])),this.line("/Last "+this.makeRef(ge.children[ge.children.length-1])));var we=this.count=this.count_r({count:0},ge);if(we>0&&this.line("/Count "+we),ge.options&&ge.options.pageNumber){var be=bt.internal.getPageInfo(ge.options.pageNumber);this.line("/Dest ["+be.objId+" 0 R /XYZ 0 "+ie(0)+" 0]")}this.objEnd()}for(var $e=0;$e<Ht.children.length;$e++)this.renderItems(Ht.children[$e])},bt.outline.line=function(Ht){this.ctx.val+=Ht+`\r
|
|
|
`},bt.outline.makeRef=function(Ht){return Ht.id+" 0 R"},bt.outline.makeString=function(Ht){return"("+bt.internal.pdfEscape(Ht)+")"},bt.outline.objStart=function(Ht){this.ctx.val+=`\r
|
|
|
`+Ht.id+` 0 obj\r
|
|
|
<<\r
|
|
|
`},bt.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
|
endobj\r
|
|
|
`},bt.outline.count_r=function(Ht,ie){for(var Yt=0;Yt<ie.children.length;Yt++)Ht.count++,this.count_r(Ht,ie.children[Yt]);return Ht.count}}])}(Ro.API),function(Et){var wt=[192,193,194,195,196,197,198,199];Et.processJPEG=function(bt,Ht,ie,Yt,ge,we){var be,$e=this.decode.DCT_DECODE,dn=null;if(typeof bt=="string"||this.__addimage__.isArrayBuffer(bt)||this.__addimage__.isArrayBufferView(bt)){switch(bt=ge||bt,bt=this.__addimage__.isArrayBuffer(bt)?new Uint8Array(bt):bt,(be=function(fn){for(var Pn,Ke=256*fn.charCodeAt(4)+fn.charCodeAt(5),mi=fn.length,Jn={width:0,height:0,numcomponents:1},yi=4;yi<mi;yi+=2){if(yi+=Ke,wt.indexOf(fn.charCodeAt(yi+1))!==-1){Pn=256*fn.charCodeAt(yi+5)+fn.charCodeAt(yi+6),Jn={width:256*fn.charCodeAt(yi+7)+fn.charCodeAt(yi+8),height:Pn,numcomponents:fn.charCodeAt(yi+9)};break}Ke=256*fn.charCodeAt(yi+2)+fn.charCodeAt(yi+3)}return Jn}(bt=this.__addimage__.isArrayBufferView(bt)?this.__addimage__.arrayBufferToBinaryString(bt):bt)).numcomponents){case 1:we=this.color_spaces.DEVICE_GRAY;break;case 4:we=this.color_spaces.DEVICE_CMYK;break;case 3:we=this.color_spaces.DEVICE_RGB}dn={data:bt,width:be.width,height:be.height,colorSpace:we,bitsPerComponent:8,filter:$e,index:Ht,alias:ie}}return dn}}(Ro.API);var cl,zd,td,Sh,Ho,sA=function(){var Et,wt,bt;function Ht(Yt){var ge,we,be,$e,dn,fn,Pn,Ke,mi,Jn,yi,Un,di,Qi;for(this.data=Yt,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},fn=null;;){switch(ge=this.readUInt32(),mi=function(){var ir,Er;for(Er=[],ir=0;ir<4;++ir)Er.push(String.fromCharCode(this.data[this.pos++]));return Er}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(ge);break;case"fcTL":fn&&this.animation.frames.push(fn),this.pos+=4,fn={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},dn=this.readUInt16(),$e=this.readUInt16()||100,fn.delay=1e3*dn/$e,fn.disposeOp=this.data[this.pos++],fn.blendOp=this.data[this.pos++],fn.data=[];break;case"IDAT":case"fdAT":for(mi==="fdAT"&&(this.pos+=4,ge-=4),Yt=(fn!=null?fn.data:void 0)||this.imgData,Un=0;0<=ge?Un<ge:Un>ge;0<=ge?++Un:--Un)Yt.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(be=this.palette.length/3,this.transparency.indexed=this.read(ge),this.transparency.indexed.length>be)throw new Error("More transparent colors than palette size");if((Jn=be-this.transparency.indexed.length)>0)for(di=0;0<=Jn?di<Jn:di>Jn;0<=Jn?++di:--di)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(ge)[0];break;case 2:this.transparency.rgb=this.read(ge)}break;case"tEXt":Pn=(yi=this.read(ge)).indexOf(0),Ke=String.fromCharCode.apply(String,yi.slice(0,Pn)),this.text[Ke]=String.fromCharCode.apply(String,yi.slice(Pn+1));break;case"IEND":return fn&&this.animation.frames.push(fn),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(Qi=this.colorType)===4||Qi===6,we=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*we,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=ge}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}Ht.prototype.read=function(Yt){var ge,we;for(we=[],ge=0;0<=Yt?ge<Yt:ge>Yt;0<=Yt?++ge:--ge)we.push(this.data[this.pos++]);return we},Ht.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},Ht.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},Ht.prototype.decodePixels=function(Yt){var ge=this.pixelBitlength/8,we=new Uint8Array(this.width*this.height*ge),be=0,$e=this;if(Yt==null&&(Yt=this.imgData),Yt.length===0)return new Uint8Array(0);function dn(fn,Pn,Ke,mi){var Jn,yi,Un,di,Qi,ir,Er,ao,gr,Ti,xr,Ir,$n,ri,pe,me,Xe,Je,vn,rn,kn,jn=Math.ceil(($e.width-fn)/Ke),Yn=Math.ceil(($e.height-Pn)/mi),Qe=$e.width==jn&&$e.height==Yn;for(ri=ge*jn,Ir=Qe?we:new Uint8Array(ri*Yn),ir=Yt.length,$n=0,yi=0;$n<Yn&&be<ir;){switch(Yt[be++]){case 0:for(di=Xe=0;Xe<ri;di=Xe+=1)Ir[yi++]=Yt[be++];break;case 1:for(di=Je=0;Je<ri;di=Je+=1)Jn=Yt[be++],Qi=di<ge?0:Ir[yi-ge],Ir[yi++]=(Jn+Qi)%256;break;case 2:for(di=vn=0;vn<ri;di=vn+=1)Jn=Yt[be++],Un=(di-di%ge)/ge,pe=$n&&Ir[($n-1)*ri+Un*ge+di%ge],Ir[yi++]=(pe+Jn)%256;break;case 3:for(di=rn=0;rn<ri;di=rn+=1)Jn=Yt[be++],Un=(di-di%ge)/ge,Qi=di<ge?0:Ir[yi-ge],pe=$n&&Ir[($n-1)*ri+Un*ge+di%ge],Ir[yi++]=(Jn+Math.floor((Qi+pe)/2))%256;break;case 4:for(di=kn=0;kn<ri;di=kn+=1)Jn=Yt[be++],Un=(di-di%ge)/ge,Qi=di<ge?0:Ir[yi-ge],$n===0?pe=me=0:(pe=Ir[($n-1)*ri+Un*ge+di%ge],me=Un&&Ir[($n-1)*ri+(Un-1)*ge+di%ge]),Er=Qi+pe-me,ao=Math.abs(Er-Qi),Ti=Math.abs(Er-pe),xr=Math.abs(Er-me),gr=ao<=Ti&&ao<=xr?Qi:Ti<=xr?pe:me,Ir[yi++]=(Jn+gr)%256;break;default:throw new Error("Invalid filter algorithm: "+Yt[be-1])}if(!Qe){var un=((Pn+$n*mi)*$e.width+fn)*ge,mn=$n*ri;for(di=0;di<jn;di+=1){for(var Hn=0;Hn<ge;Hn+=1)we[un++]=Ir[mn++];un+=(Ke-1)*ge}}$n++}}return Yt=An(Yt),$e.interlaceMethod==1?(dn(0,0,8,8),dn(4,0,8,8),dn(0,4,4,8),dn(2,0,4,4),dn(0,2,2,4),dn(1,0,2,2),dn(0,1,1,2)):dn(0,0,1,1),we},Ht.prototype.decodePalette=function(){var Yt,ge,we,be,$e,dn,fn,Pn,Ke;for(we=this.palette,dn=this.transparency.indexed||[],$e=new Uint8Array((dn.length||0)+we.length),be=0,Yt=0,ge=fn=0,Pn=we.length;fn<Pn;ge=fn+=3)$e[be++]=we[ge],$e[be++]=we[ge+1],$e[be++]=we[ge+2],$e[be++]=(Ke=dn[Yt++])!=null?Ke:255;return $e},Ht.prototype.copyToImageData=function(Yt,ge){var we,be,$e,dn,fn,Pn,Ke,mi,Jn,yi,Un;if(be=this.colors,Jn=null,we=this.hasAlphaChannel,this.palette.length&&(Jn=(Un=this._decodedPalette)!=null?Un:this._decodedPalette=this.decodePalette(),be=4,we=!0),mi=($e=Yt.data||Yt).length,fn=Jn||ge,dn=Pn=0,be===1)for(;dn<mi;)Ke=Jn?4*ge[dn/4]:Pn,yi=fn[Ke++],$e[dn++]=yi,$e[dn++]=yi,$e[dn++]=yi,$e[dn++]=we?fn[Ke++]:255,Pn=Ke;else for(;dn<mi;)Ke=Jn?4*ge[dn/4]:Pn,$e[dn++]=fn[Ke++],$e[dn++]=fn[Ke++],$e[dn++]=fn[Ke++],$e[dn++]=we?fn[Ke++]:255,Pn=Ke},Ht.prototype.decode=function(){var Yt;return Yt=new Uint8Array(this.width*this.height*4),this.copyToImageData(Yt,this.decodePixels()),Yt};var ie=function(){if(Object.prototype.toString.call(Sr)==="[object Window]"){try{wt=Sr.document.createElement("canvas"),bt=wt.getContext("2d")}catch(Yt){return!1}return!0}return!1};return ie(),Et=function(Yt){var ge;if(ie()===!0)return bt.width=Yt.width,bt.height=Yt.height,bt.clearRect(0,0,Yt.width,Yt.height),bt.putImageData(Yt,0,0),(ge=new Image).src=wt.toDataURL(),ge;throw new Error("This method requires a Browser with Canvas-capability.")},Ht.prototype.decodeFrames=function(Yt){var ge,we,be,$e,dn,fn,Pn,Ke;if(this.animation){for(Ke=[],we=dn=0,fn=(Pn=this.animation.frames).length;dn<fn;we=++dn)ge=Pn[we],be=Yt.createImageData(ge.width,ge.height),$e=this.decodePixels(new Uint8Array(ge.data)),this.copyToImageData(be,$e),ge.imageData=be,Ke.push(ge.image=Et(be));return Ke}},Ht.prototype.renderFrame=function(Yt,ge){var we,be,$e;return we=(be=this.animation.frames)[ge],$e=be[ge-1],ge===0&&Yt.clearRect(0,0,this.width,this.height),($e!=null?$e.disposeOp:void 0)===1?Yt.clearRect($e.xOffset,$e.yOffset,$e.width,$e.height):($e!=null?$e.disposeOp:void 0)===2&&Yt.putImageData($e.imageData,$e.xOffset,$e.yOffset),we.blendOp===0&&Yt.clearRect(we.xOffset,we.yOffset,we.width,we.height),Yt.drawImage(we.image,we.xOffset,we.yOffset)},Ht.prototype.animate=function(Yt){var ge,we,be,$e,dn,fn,Pn=this;return we=0,fn=this.animation,$e=fn.numFrames,be=fn.frames,dn=fn.numPlays,(ge=function(){var Ke,mi;if(Ke=we++%$e,mi=be[Ke],Pn.renderFrame(Yt,Ke),$e>1&&we/$e<dn)return Pn.animation._timeout=setTimeout(ge,mi.delay)})()},Ht.prototype.stopAnimation=function(){var Yt;return clearTimeout((Yt=this.animation)!=null?Yt._timeout:void 0)},Ht.prototype.render=function(Yt){var ge,we;return Yt._png&&Yt._png.stopAnimation(),Yt._png=this,Yt.width=this.width,Yt.height=this.height,ge=Yt.getContext("2d"),this.animation?(this.decodeFrames(ge),this.animate(ge)):(we=ge.createImageData(this.width,this.height),this.copyToImageData(we,this.decodePixels()),ge.putImageData(we,0,0))},Ht}();function En(Et){var wt=0;if(Et[wt++]!==71||Et[wt++]!==73||Et[wt++]!==70||Et[wt++]!==56||(Et[wt++]+1&253)!=56||Et[wt++]!==97)throw new Error("Invalid GIF 87a/89a header.");var bt=Et[wt++]|Et[wt++]<<8,Ht=Et[wt++]|Et[wt++]<<8,ie=Et[wt++],Yt=ie>>7,ge=1<<(7&ie)+1;Et[wt++],Et[wt++];var we=null,be=null;Yt&&(we=wt,be=ge,wt+=3*ge);var $e=!0,dn=[],fn=0,Pn=null,Ke=0,mi=null;for(this.width=bt,this.height=Ht;$e&&wt<Et.length;)switch(Et[wt++]){case 33:switch(Et[wt++]){case 255:if(Et[wt]!==11||Et[wt+1]==78&&Et[wt+2]==69&&Et[wt+3]==84&&Et[wt+4]==83&&Et[wt+5]==67&&Et[wt+6]==65&&Et[wt+7]==80&&Et[wt+8]==69&&Et[wt+9]==50&&Et[wt+10]==46&&Et[wt+11]==48&&Et[wt+12]==3&&Et[wt+13]==1&&Et[wt+16]==0)wt+=14,mi=Et[wt++]|Et[wt++]<<8,wt++;else for(wt+=12;;){if(!(($n=Et[wt++])>=0))throw Error("Invalid block size");if($n===0)break;wt+=$n}break;case 249:if(Et[wt++]!==4||Et[wt+4]!==0)throw new Error("Invalid graphics extension block.");var Jn=Et[wt++];fn=Et[wt++]|Et[wt++]<<8,Pn=Et[wt++],!(1&Jn)&&(Pn=null),Ke=Jn>>2&7,wt++;break;case 254:for(;;){if(!(($n=Et[wt++])>=0))throw Error("Invalid block size");if($n===0)break;wt+=$n}break;default:throw new Error("Unknown graphic control label: 0x"+Et[wt-1].toString(16))}break;case 44:var yi=Et[wt++]|Et[wt++]<<8,Un=Et[wt++]|Et[wt++]<<8,di=Et[wt++]|Et[wt++]<<8,Qi=Et[wt++]|Et[wt++]<<8,ir=Et[wt++],Er=ir>>6&1,ao=1<<(7&ir)+1,gr=we,Ti=be,xr=!1;ir>>7&&(xr=!0,gr=wt,Ti=ao,wt+=3*ao);var Ir=wt;for(wt++;;){var $n;if(!(($n=Et[wt++])>=0))throw Error("Invalid block size");if($n===0)break;wt+=$n}dn.push({x:yi,y:Un,width:di,height:Qi,has_local_palette:xr,palette_offset:gr,palette_size:Ti,data_offset:Ir,data_length:wt-Ir,transparent_index:Pn,interlaced:!!Er,delay:fn,disposal:Ke});break;case 59:$e=!1;break;default:throw new Error("Unknown gif block: 0x"+Et[wt-1].toString(16))}this.numFrames=function(){return dn.length},this.loopCount=function(){return mi},this.frameInfo=function(ri){if(ri<0||ri>=dn.length)throw new Error("Frame index out of range.");return dn[ri]},this.decodeAndBlitFrameBGRA=function(ri,pe){var me=this.frameInfo(ri),Xe=me.width*me.height,Je=new Uint8Array(Xe);Wi(Et,me.data_offset,Je,Xe);var vn=me.palette_offset,rn=me.transparent_index;rn===null&&(rn=256);var kn=me.width,jn=bt-kn,Yn=kn,Qe=4*(me.y*bt+me.x),un=4*((me.y+me.height)*bt+me.x),mn=Qe,Hn=4*jn;me.interlaced===!0&&(Hn+=4*bt*7);for(var Zn=8,ii=0,Fi=Je.length;ii<Fi;++ii){var li=Je[ii];if(Yn===0&&(Yn=kn,(mn+=Hn)>=un&&(Hn=4*jn+4*bt*(Zn-1),mn=Qe+(kn+jn)*(Zn<<1),Zn>>=1)),li===rn)mn+=4;else{var Xi=Et[vn+3*li],Zi=Et[vn+3*li+1],Ar=Et[vn+3*li+2];pe[mn++]=Ar,pe[mn++]=Zi,pe[mn++]=Xi,pe[mn++]=255}--Yn}},this.decodeAndBlitFrameRGBA=function(ri,pe){var me=this.frameInfo(ri),Xe=me.width*me.height,Je=new Uint8Array(Xe);Wi(Et,me.data_offset,Je,Xe);var vn=me.palette_offset,rn=me.transparent_index;rn===null&&(rn=256);var kn=me.width,jn=bt-kn,Yn=kn,Qe=4*(me.y*bt+me.x),un=4*((me.y+me.height)*bt+me.x),mn=Qe,Hn=4*jn;me.interlaced===!0&&(Hn+=4*bt*7);for(var Zn=8,ii=0,Fi=Je.length;ii<Fi;++ii){var li=Je[ii];if(Yn===0&&(Yn=kn,(mn+=Hn)>=un&&(Hn=4*jn+4*bt*(Zn-1),mn=Qe+(kn+jn)*(Zn<<1),Zn>>=1)),li===rn)mn+=4;else{var Xi=Et[vn+3*li],Zi=Et[vn+3*li+1],Ar=Et[vn+3*li+2];pe[mn++]=Xi,pe[mn++]=Zi,pe[mn++]=Ar,pe[mn++]=255}--Yn}}}function Wi(Et,wt,bt,Ht){for(var ie=Et[wt++],Yt=1<<ie,ge=Yt+1,we=ge+1,be=ie+1,$e=(1<<be)-1,dn=0,fn=0,Pn=0,Ke=Et[wt++],mi=new Int32Array(4096),Jn=null;;){for(;dn<16&&Ke!==0;)fn|=Et[wt++]<<dn,dn+=8,Ke===1?Ke=Et[wt++]:--Ke;if(dn<be)break;var yi=fn&$e;if(fn>>=be,dn-=be,yi!==Yt){if(yi===ge)break;for(var Un=yi<we?yi:Jn,di=0,Qi=Un;Qi>Yt;)Qi=mi[Qi]>>8,++di;var ir=Qi;if(Pn+di+(Un!==yi?1:0)>Ht)return void wo.log("Warning, gif stream longer than expected.");bt[Pn++]=ir;var Er=Pn+=di;for(Un!==yi&&(bt[Pn++]=ir),Qi=Un;di--;)Qi=mi[Qi],bt[--Er]=255&Qi,Qi>>=8;Jn!==null&&we<4096&&(mi[we++]=Jn<<8|ir,we>=$e+1&&be<12&&(++be,$e=$e<<1|1)),Jn=yi}else we=ge+1,$e=(1<<(be=ie+1))-1,Jn=null}return Pn!==Ht&&wo.log("Warning, gif stream shorter than expected."),bt}function aA(Et){var wt,bt,Ht,ie,Yt,ge=Math.floor,we=new Array(64),be=new Array(64),$e=new Array(64),dn=new Array(64),fn=new Array(65535),Pn=new Array(65535),Ke=new Array(64),mi=new Array(64),Jn=[],yi=0,Un=7,di=new Array(64),Qi=new Array(64),ir=new Array(64),Er=new Array(256),ao=new Array(2048),gr=[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],xr=[0,1,2,3,4,5,6,7,8,9,10,11],Ir=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],$n=[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],ri=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],pe=[0,1,2,3,4,5,6,7,8,9,10,11],me=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Xe=[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 Je(Qe,un){for(var mn=0,Hn=0,Zn=new Array,ii=1;ii<=16;ii++){for(var Fi=1;Fi<=Qe[ii];Fi++)Zn[un[Hn]]=[],Zn[un[Hn]][0]=mn,Zn[un[Hn]][1]=ii,Hn++,mn++;mn*=2}return Zn}function vn(Qe){for(var un=Qe[0],mn=Qe[1]-1;mn>=0;)un&1<<mn&&(yi|=1<<Un),mn--,--Un<0&&(yi==255?(rn(255),rn(0)):rn(yi),Un=7,yi=0)}function rn(Qe){Jn.push(Qe)}function kn(Qe){rn(Qe>>8&255),rn(255&Qe)}function jn(Qe,un,mn,Hn,Zn){for(var ii,Fi=Zn[0],li=Zn[240],Xi=function(sr,ar){var qi,pr,Vr,co,fo,Rr,jo,us,qo,ns,xo=0;for(qo=0;qo<8;++qo){qi=sr[xo],pr=sr[xo+1],Vr=sr[xo+2],co=sr[xo+3],fo=sr[xo+4],Rr=sr[xo+5],jo=sr[xo+6];var wa=qi+(us=sr[xo+7]),$o=qi-us,rs=pr+jo,Ps=pr-jo,qs=Vr+Rr,Ua=Vr-Rr,Xs=co+fo,zo=co-fo,Ko=wa+Xs,fs=wa-Xs,es=rs+qs,Ds=rs-qs;sr[xo]=Ko+es,sr[xo+4]=Ko-es;var no=.707106781*(Ds+fs);sr[xo+2]=fs+no,sr[xo+6]=fs-no;var Vo=.382683433*((Ko=zo+Ua)-(Ds=Ps+$o)),aa=.5411961*Ko+Vo,Rs=1.306562965*Ds+Vo,Ql=.707106781*(es=Ua+Ps),Ll=$o+Ql,Fs=$o-Ql;sr[xo+5]=Fs+aa,sr[xo+3]=Fs-aa,sr[xo+1]=Ll+Rs,sr[xo+7]=Ll-Rs,xo+=8}for(xo=0,qo=0;qo<8;++qo){qi=sr[xo],pr=sr[xo+8],Vr=sr[xo+16],co=sr[xo+24],fo=sr[xo+32],Rr=sr[xo+40],jo=sr[xo+48];var ca=qi+(us=sr[xo+56]),jl=qi-us,Ao=pr+jo,Ra=pr-jo,Kl=Vr+Rr,ta=Vr-Rr,la=co+fo,ka=co-fo,Xa=ca+la,al=ca-la,_s=Ao+Kl,Ta=Ao-Kl;sr[xo]=Xa+_s,sr[xo+32]=Xa-_s;var Sl=.707106781*(Ta+al);sr[xo+16]=al+Sl,sr[xo+48]=al-Sl;var pu=.382683433*((Xa=ka+ta)-(Ta=Ra+jl)),au=.5411961*Xa+pu,Uu=1.306562965*Ta+pu,Xu=.707106781*(_s=ta+Ra),dh=jl+Xu,$u=jl-Xu;sr[xo+40]=$u+au,sr[xo+24]=$u-au,sr[xo+8]=dh+Uu,sr[xo+56]=dh-Uu,xo++}for(qo=0;qo<64;++qo)ns=sr[qo]*ar[qo],Ke[qo]=ns>0?ns+.5|0:ns-.5|0;return Ke}(Qe,un),Zi=0;Zi<64;++Zi)mi[gr[Zi]]=Xi[Zi];var Ar=mi[0]-mn;mn=mi[0],Ar==0?vn(Hn[0]):(vn(Hn[Pn[ii=32767+Ar]]),vn(fn[ii]));for(var br=63;br>0&&mi[br]==0;)br--;if(br==0)return vn(Fi),mn;for(var eo,Ii=1;Ii<=br;){for(var Xn=Ii;mi[Ii]==0&&Ii<=br;)++Ii;var Co=Ii-Xn;if(Co>=16){eo=Co>>4;for(var Br=1;Br<=eo;++Br)vn(li);Co&=15}ii=32767+mi[Ii],vn(Zn[(Co<<4)+Pn[ii]]),vn(fn[ii]),Ii++}return br!=63&&vn(Fi),mn}function Yn(Qe){Qe=Math.min(Math.max(Qe,1),100),Yt!=Qe&&(function(un){for(var mn=[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],Hn=0;Hn<64;Hn++){var Zn=ge((mn[Hn]*un+50)/100);Zn=Math.min(Math.max(Zn,1),255),we[gr[Hn]]=Zn}for(var ii=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],Fi=0;Fi<64;Fi++){var li=ge((ii[Fi]*un+50)/100);li=Math.min(Math.max(li,1),255),be[gr[Fi]]=li}for(var Xi=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Zi=0,Ar=0;Ar<8;Ar++)for(var br=0;br<8;br++)$e[Zi]=1/(we[gr[Zi]]*Xi[Ar]*Xi[br]*8),dn[Zi]=1/(be[gr[Zi]]*Xi[Ar]*Xi[br]*8),Zi++}(Qe<50?Math.floor(5e3/Qe):Math.floor(200-2*Qe)),Yt=Qe)}this.encode=function(Qe,un){un&&Yn(un),Jn=new Array,yi=0,Un=7,kn(65496),kn(65504),kn(16),rn(74),rn(70),rn(73),rn(70),rn(0),rn(1),rn(1),rn(0),kn(1),kn(1),rn(0),rn(0),function(){kn(65499),kn(132),rn(0);for(var pr=0;pr<64;pr++)rn(we[pr]);rn(1);for(var Vr=0;Vr<64;Vr++)rn(be[Vr])}(),function(pr,Vr){kn(65472),kn(17),rn(8),kn(Vr),kn(pr),rn(3),rn(1),rn(17),rn(0),rn(2),rn(17),rn(1),rn(3),rn(17),rn(1)}(Qe.width,Qe.height),function(){kn(65476),kn(418),rn(0);for(var pr=0;pr<16;pr++)rn(Ti[pr+1]);for(var Vr=0;Vr<=11;Vr++)rn(xr[Vr]);rn(16);for(var co=0;co<16;co++)rn(Ir[co+1]);for(var fo=0;fo<=161;fo++)rn($n[fo]);rn(1);for(var Rr=0;Rr<16;Rr++)rn(ri[Rr+1]);for(var jo=0;jo<=11;jo++)rn(pe[jo]);rn(17);for(var us=0;us<16;us++)rn(me[us+1]);for(var qo=0;qo<=161;qo++)rn(Xe[qo])}(),kn(65498),kn(12),rn(3),rn(1),rn(0),rn(2),rn(17),rn(3),rn(17),rn(0),rn(63),rn(0);var mn=0,Hn=0,Zn=0;yi=0,Un=7,this.encode.displayName="_encode_";for(var ii,Fi,li,Xi,Zi,Ar,br,eo,Ii,Xn=Qe.data,Co=Qe.width,Br=Qe.height,sr=4*Co,ar=0;ar<Br;){for(ii=0;ii<sr;){for(Zi=sr*ar+ii,br=-1,eo=0,Ii=0;Ii<64;Ii++)Ar=Zi+(eo=Ii>>3)*sr+(br=4*(7&Ii)),ar+eo>=Br&&(Ar-=sr*(ar+1+eo-Br)),ii+br>=sr&&(Ar-=ii+br-sr+4),Fi=Xn[Ar++],li=Xn[Ar++],Xi=Xn[Ar++],di[Ii]=(ao[Fi]+ao[li+256>>0]+ao[Xi+512>>0]>>16)-128,Qi[Ii]=(ao[Fi+768>>0]+ao[li+1024>>0]+ao[Xi+1280>>0]>>16)-128,ir[Ii]=(ao[Fi+1280>>0]+ao[li+1536>>0]+ao[Xi+1792>>0]>>16)-128;mn=jn(di,$e,mn,wt,Ht),Hn=jn(Qi,dn,Hn,bt,ie),Zn=jn(ir,dn,Zn,bt,ie),ii+=32}ar+=8}if(Un>=0){var qi=[];qi[1]=Un+1,qi[0]=(1<<Un+1)-1,vn(qi)}return kn(65497),new Uint8Array(Jn)},Et=Et||50,function(){for(var Qe=String.fromCharCode,un=0;un<256;un++)Er[un]=Qe(un)}(),wt=Je(Ti,xr),bt=Je(ri,pe),Ht=Je(Ir,$n),ie=Je(me,Xe),function(){for(var Qe=1,un=2,mn=1;mn<=15;mn++){for(var Hn=Qe;Hn<un;Hn++)Pn[32767+Hn]=mn,fn[32767+Hn]=[],fn[32767+Hn][1]=mn,fn[32767+Hn][0]=Hn;for(var Zn=-(un-1);Zn<=-Qe;Zn++)Pn[32767+Zn]=mn,fn[32767+Zn]=[],fn[32767+Zn][1]=mn,fn[32767+Zn][0]=un-1+Zn;Qe<<=1,un<<=1}}(),function(){for(var Qe=0;Qe<256;Qe++)ao[Qe]=19595*Qe,ao[Qe+256>>0]=38470*Qe,ao[Qe+512>>0]=7471*Qe+32768,ao[Qe+768>>0]=-11059*Qe,ao[Qe+1024>>0]=-21709*Qe,ao[Qe+1280>>0]=32768*Qe+8421375,ao[Qe+1536>>0]=-27439*Qe,ao[Qe+1792>>0]=-5329*Qe}(),Yn(Et)}function nc(Et,wt){if(this.pos=0,this.buffer=Et,this.datav=new DataView(Et.buffer),this.is_with_alpha=!!wt,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 Ku(Et){function wt(Ti){if(!Ti)throw Error("assert :P")}function bt(Ti,xr,Ir){for(var $n=0;4>$n;$n++)if(Ti[xr+$n]!=Ir.charCodeAt($n))return!0;return!1}function Ht(Ti,xr,Ir,$n,ri){for(var pe=0;pe<ri;pe++)Ti[xr+pe]=Ir[$n+pe]}function ie(Ti,xr,Ir,$n){for(var ri=0;ri<$n;ri++)Ti[xr+ri]=Ir}function Yt(Ti){return new Int32Array(Ti)}function ge(Ti,xr){for(var Ir=[],$n=0;$n<Ti;$n++)Ir.push(new xr);return Ir}function we(Ti,xr){var Ir=[];return function $n(ri,pe,me){for(var Xe=me[pe],Je=0;Je<Xe&&(ri.push(me.length>pe+1?[]:new xr),!(me.length<pe+1));Je++)$n(ri[Je],pe+1,me)}(Ir,0,Ti),Ir}var be=function(){var Ti=this;function xr(St,Qt){for(var de=1<<Qt-1>>>0;St&de;)de>>>=1;return de?(St&de-1)+de:St}function Ir(St,Qt,de,Ee,sn){wt(!(Ee%de));do St[Qt+(Ee-=de)]=sn;while(0<Ee)}function $n(St,Qt,de,Ee,sn){if(wt(2328>=sn),512>=sn)var hn=Yt(512);else if((hn=Yt(sn))==null)return 0;return function(cn,xn,Nn,zn,fi,$i){var Yi,Ni,Kr=xn,Nr=1<<Nn,Hi=Yt(16),ji=Yt(16);for(wt(fi!=0),wt(zn!=null),wt(cn!=null),wt(0<Nn),Ni=0;Ni<fi;++Ni){if(15<zn[Ni])return 0;++Hi[zn[Ni]]}if(Hi[0]==fi)return 0;for(ji[1]=0,Yi=1;15>Yi;++Yi){if(Hi[Yi]>1<<Yi)return 0;ji[Yi+1]=ji[Yi]+Hi[Yi]}for(Ni=0;Ni<fi;++Ni)Yi=zn[Ni],0<zn[Ni]&&($i[ji[Yi]++]=Ni);if(ji[15]==1)return(zn=new ri).g=0,zn.value=$i[0],Ir(cn,Kr,1,Nr,zn),Nr;var zr,lo=-1,Yr=Nr-1,as=0,ts=1,ci=1,os=1<<Nn;for(Ni=0,Yi=1,fi=2;Yi<=Nn;++Yi,fi<<=1){if(ts+=ci<<=1,0>(ci-=Hi[Yi]))return 0;for(;0<Hi[Yi];--Hi[Yi])(zn=new ri).g=Yi,zn.value=$i[Ni++],Ir(cn,Kr+as,fi,os,zn),as=xr(as,Yi)}for(Yi=Nn+1,fi=2;15>=Yi;++Yi,fi<<=1){if(ts+=ci<<=1,0>(ci-=Hi[Yi]))return 0;for(;0<Hi[Yi];--Hi[Yi]){if(zn=new ri,(as&Yr)!=lo){for(Kr+=os,zr=1<<(lo=Yi)-Nn;15>lo&&!(0>=(zr-=Hi[lo]));)++lo,zr<<=1;Nr+=os=1<<(zr=lo-Nn),cn[xn+(lo=as&Yr)].g=zr+Nn,cn[xn+lo].value=Kr-xn-lo}zn.g=Yi-Nn,zn.value=$i[Ni++],Ir(cn,Kr+(as>>Nn),fi,os,zn),as=xr(as,Yi)}}return ts!=2*ji[15]-1?0:Nr}(St,Qt,de,Ee,sn,hn)}function ri(){this.value=this.g=0}function pe(){this.value=this.g=0}function me(){this.G=ge(5,ri),this.H=Yt(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=ge(Iu,pe)}function Xe(St,Qt,de,Ee){wt(St!=null),wt(Qt!=null),wt(2147483648>Ee),St.Ca=254,St.I=0,St.b=-8,St.Ka=0,St.oa=Qt,St.pa=de,St.Jd=Qt,St.Yc=de+Ee,St.Zc=4<=Ee?de+Ee-4+1:de,ii(St)}function Je(St,Qt){for(var de=0;0<Qt--;)de|=li(St,128)<<Qt;return de}function vn(St,Qt){var de=Je(St,Qt);return Fi(St)?-de:de}function rn(St,Qt,de,Ee){var sn,hn=0;for(wt(St!=null),wt(Qt!=null),wt(4294967288>Ee),St.Sb=Ee,St.Ra=0,St.u=0,St.h=0,4<Ee&&(Ee=4),sn=0;sn<Ee;++sn)hn+=Qt[de+sn]<<8*sn;St.Ra=hn,St.bb=Ee,St.oa=Qt,St.pa=de}function kn(St){for(;8<=St.u&&St.bb<St.Sb;)St.Ra>>>=8,St.Ra+=St.oa[St.pa+St.bb]<<Oh-8>>>0,++St.bb,St.u-=8;mn(St)&&(St.h=1,St.u=0)}function jn(St,Qt){if(wt(0<=Qt),!St.h&&Qt<=Gl){var de=un(St)&Yd[Qt];return St.u+=Qt,kn(St),de}return St.h=1,St.u=0}function Yn(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Qe(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function un(St){return St.Ra>>>(St.u&Oh-1)>>>0}function mn(St){return wt(St.bb<=St.Sb),St.h||St.bb==St.Sb&&St.u>Oh}function Hn(St,Qt){St.u=Qt,St.h=mn(St)}function Zn(St){St.u>=mc&&(wt(St.u>=mc),kn(St))}function ii(St){wt(St!=null&&St.oa!=null),St.pa<St.Zc?(St.I=(St.oa[St.pa++]|St.I<<8)>>>0,St.b+=8):(wt(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 Fi(St){return Je(St,1)}function li(St,Qt){var de=St.Ca;0>St.b&&ii(St);var Ee=St.b,sn=de*Qt>>>8,hn=(St.I>>>Ee>sn)+0;for(hn?(de-=sn,St.I-=sn+1<<Ee>>>0):de=sn+1,Ee=de,sn=0;256<=Ee;)sn+=8,Ee>>=8;return Ee=7^sn+qu[Ee],St.b-=Ee,St.Ca=(de<<Ee)-1,hn}function Xi(St,Qt,de){St[Qt+0]=de>>24&255,St[Qt+1]=de>>16&255,St[Qt+2]=de>>8&255,St[Qt+3]=de>>0&255}function Zi(St,Qt){return St[Qt+0]<<0|St[Qt+1]<<8}function Ar(St,Qt){return Zi(St,Qt)|St[Qt+2]<<16}function br(St,Qt){return Zi(St,Qt)|Zi(St,Qt+2)<<16}function eo(St,Qt){var de=1<<Qt;return wt(St!=null),wt(0<Qt),St.X=Yt(de),St.X==null?0:(St.Mb=32-Qt,St.Xa=Qt,1)}function Ii(St,Qt){wt(St!=null),wt(Qt!=null),wt(St.Xa==Qt.Xa),Ht(Qt.X,0,St.X,0,1<<Qt.Xa)}function Xn(){this.X=[],this.Xa=this.Mb=0}function Co(St,Qt,de,Ee){wt(de!=null),wt(Ee!=null);var sn=de[0],hn=Ee[0];return sn==0&&(sn=(St*hn+Qt/2)/Qt),hn==0&&(hn=(Qt*sn+St/2)/St),0>=sn||0>=hn?0:(de[0]=sn,Ee[0]=hn,1)}function Br(St,Qt){return St+(1<<Qt)-1>>>Qt}function sr(St,Qt){return((4278255360&St)+(4278255360&Qt)>>>0&4278255360)+((16711935&St)+(16711935&Qt)>>>0&16711935)>>>0}function ar(St,Qt){Ti[Qt]=function(de,Ee,sn,hn,cn,xn,Nn){var zn;for(zn=0;zn<cn;++zn){var fi=Ti[St](xn[Nn+zn-1],sn,hn+zn);xn[Nn+zn]=sr(de[Ee+zn],fi)}}}function qi(){this.ud=this.hd=this.jd=0}function pr(St,Qt){return((4278124286&(St^Qt))>>>1)+(St&Qt)>>>0}function Vr(St){return 0<=St&&256>St?St:0>St?0:255<St?255:void 0}function co(St,Qt){return Vr(St+(St-Qt+.5>>1))}function fo(St,Qt,de){return Math.abs(Qt-de)-Math.abs(St-de)}function Rr(St,Qt,de,Ee,sn,hn,cn){for(Ee=hn[cn-1],de=0;de<sn;++de)hn[cn+de]=Ee=sr(St[Qt+de],Ee)}function jo(St,Qt,de,Ee,sn){var hn;for(hn=0;hn<de;++hn){var cn=St[Qt+hn],xn=cn>>8&255,Nn=16711935&(Nn=(Nn=16711935&cn)+((xn<<16)+xn));Ee[sn+hn]=(4278255360&cn)+Nn>>>0}}function us(St,Qt){Qt.jd=St>>0&255,Qt.hd=St>>8&255,Qt.ud=St>>16&255}function qo(St,Qt,de,Ee,sn,hn){var cn;for(cn=0;cn<Ee;++cn){var xn=Qt[de+cn],Nn=xn>>>8,zn=xn,fi=255&(fi=(fi=xn>>>16)+((St.jd<<24>>24)*(Nn<<24>>24)>>>5));zn=255&(zn=(zn=zn+((St.hd<<24>>24)*(Nn<<24>>24)>>>5))+((St.ud<<24>>24)*(fi<<24>>24)>>>5)),sn[hn+cn]=(4278255360&xn)+(fi<<16)+zn}}function ns(St,Qt,de,Ee,sn){Ti[Qt]=function(hn,cn,xn,Nn,zn,fi,$i,Yi,Ni){for(Nn=$i;Nn<Yi;++Nn)for($i=0;$i<Ni;++$i)zn[fi++]=sn(xn[Ee(hn[cn++])])},Ti[St]=function(hn,cn,xn,Nn,zn,fi,$i){var Yi=8>>hn.b,Ni=hn.Ea,Kr=hn.K[0],Nr=hn.w;if(8>Yi)for(hn=(1<<hn.b)-1,Nr=(1<<Yi)-1;cn<xn;++cn){var Hi,ji=0;for(Hi=0;Hi<Ni;++Hi)Hi&hn||(ji=Ee(Nn[zn++])),fi[$i++]=sn(Kr[ji&Nr]),ji>>=Yi}else Ti["VP8LMapColor"+de](Nn,zn,Kr,Nr,fi,$i,cn,xn,Ni)}}function xo(St,Qt,de,Ee,sn){for(de=Qt+de;Qt<de;){var hn=St[Qt++];Ee[sn++]=hn>>16&255,Ee[sn++]=hn>>8&255,Ee[sn++]=hn>>0&255}}function wa(St,Qt,de,Ee,sn){for(de=Qt+de;Qt<de;){var hn=St[Qt++];Ee[sn++]=hn>>16&255,Ee[sn++]=hn>>8&255,Ee[sn++]=hn>>0&255,Ee[sn++]=hn>>24&255}}function $o(St,Qt,de,Ee,sn){for(de=Qt+de;Qt<de;){var hn=(cn=St[Qt++])>>16&240|cn>>12&15,cn=cn>>0&240|cn>>28&15;Ee[sn++]=hn,Ee[sn++]=cn}}function rs(St,Qt,de,Ee,sn){for(de=Qt+de;Qt<de;){var hn=(cn=St[Qt++])>>16&248|cn>>13&7,cn=cn>>5&224|cn>>3&31;Ee[sn++]=hn,Ee[sn++]=cn}}function Ps(St,Qt,de,Ee,sn){for(de=Qt+de;Qt<de;){var hn=St[Qt++];Ee[sn++]=hn>>0&255,Ee[sn++]=hn>>8&255,Ee[sn++]=hn>>16&255}}function qs(St,Qt,de,Ee,sn,hn){if(hn==0)for(de=Qt+de;Qt<de;)Xi(Ee,((hn=St[Qt++])[0]>>24|hn[1]>>8&65280|hn[2]<<8&16711680|hn[3]<<24)>>>0),sn+=32;else Ht(Ee,sn,St,Qt,de)}function Ua(St,Qt){Ti[Qt][0]=Ti[St+"0"],Ti[Qt][1]=Ti[St+"1"],Ti[Qt][2]=Ti[St+"2"],Ti[Qt][3]=Ti[St+"3"],Ti[Qt][4]=Ti[St+"4"],Ti[Qt][5]=Ti[St+"5"],Ti[Qt][6]=Ti[St+"6"],Ti[Qt][7]=Ti[St+"7"],Ti[Qt][8]=Ti[St+"8"],Ti[Qt][9]=Ti[St+"9"],Ti[Qt][10]=Ti[St+"10"],Ti[Qt][11]=Ti[St+"11"],Ti[Qt][12]=Ti[St+"12"],Ti[Qt][13]=Ti[St+"13"],Ti[Qt][14]=Ti[St+"0"],Ti[Qt][15]=Ti[St+"0"]}function Xs(St){return St==Wc||St==Jd||St==zf||St==Eh}function zo(){this.eb=[],this.size=this.A=this.fb=0}function Ko(){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 fs(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new zo,this.f.kb=new Ko,this.sd=null}function es(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Ds(){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 no(St){return alert("todo:WebPSamplerProcessPlane"),St.T}function Vo(St,Qt){var de=St.T,Ee=Qt.ba.f.RGBA,sn=Ee.eb,hn=Ee.fb+St.ka*Ee.A,cn=Tu[Qt.ba.S],xn=St.y,Nn=St.O,zn=St.f,fi=St.N,$i=St.ea,Yi=St.W,Ni=Qt.cc,Kr=Qt.dc,Nr=Qt.Mc,Hi=Qt.Nc,ji=St.ka,zr=St.ka+St.T,lo=St.U,Yr=lo+1>>1;for(ji==0?cn(xn,Nn,null,null,zn,fi,$i,Yi,zn,fi,$i,Yi,sn,hn,null,null,lo):(cn(Qt.ec,Qt.fc,xn,Nn,Ni,Kr,Nr,Hi,zn,fi,$i,Yi,sn,hn-Ee.A,sn,hn,lo),++de);ji+2<zr;ji+=2)Ni=zn,Kr=fi,Nr=$i,Hi=Yi,fi+=St.Rc,Yi+=St.Rc,hn+=2*Ee.A,cn(xn,(Nn+=2*St.fa)-St.fa,xn,Nn,Ni,Kr,Nr,Hi,zn,fi,$i,Yi,sn,hn-Ee.A,sn,hn,lo);return Nn+=St.fa,St.j+zr<St.o?(Ht(Qt.ec,Qt.fc,xn,Nn,lo),Ht(Qt.cc,Qt.dc,zn,fi,Yr),Ht(Qt.Mc,Qt.Nc,$i,Yi,Yr),de--):1&zr||cn(xn,Nn,null,null,zn,fi,$i,Yi,zn,fi,$i,Yi,sn,hn+Ee.A,null,null,lo),de}function aa(St,Qt,de){var Ee=St.F,sn=[St.J];if(Ee!=null){var hn=St.U,cn=Qt.ba.S,xn=cn==wh||cn==zf;Qt=Qt.ba.f.RGBA;var Nn=[0],zn=St.ka;Nn[0]=St.T,St.Kb&&(zn==0?--Nn[0]:(--zn,sn[0]-=St.width),St.j+St.ka+St.T==St.o&&(Nn[0]=St.o-St.j-zn));var fi=Qt.eb;zn=Qt.fb+zn*Qt.A,St=Sa(Ee,sn[0],St.width,hn,Nn,fi,zn+(xn?0:3),Qt.A),wt(de==Nn),St&&Xs(cn)&&yu(fi,zn,xn,hn,Nn,Qt.A)}return 0}function Rs(St){var Qt=St.ma,de=Qt.ba.S,Ee=11>de,sn=de==ad||de==uh||de==wh||de==kl||de==12||Xs(de);if(Qt.memory=null,Qt.Ib=null,Qt.Jb=null,Qt.Nd=null,!Fd(Qt.Oa,St,sn?11:12))return 0;if(sn&&Xs(de)&&So(),St.da)alert("todo:use_scaling");else{if(Ee){if(Qt.Ib=no,St.Kb){if(de=St.U+1>>1,Qt.memory=Yt(St.U+2*de),Qt.memory==null)return 0;Qt.ec=Qt.memory,Qt.fc=0,Qt.cc=Qt.ec,Qt.dc=Qt.fc+St.U,Qt.Mc=Qt.cc,Qt.Nc=Qt.dc+de,Qt.Ib=Vo,So()}}else alert("todo:EmitYUV");sn&&(Qt.Jb=aa,Ee&&hr())}if(Ee&&!Dt){for(St=0;256>St;++St)Tt[St]=89858*(St-128)+kA>>IA,Be[St]=-22014*(St-128)+kA,Rt[St]=-45773*(St-128),_t[St]=113618*(St-128)+kA>>IA;for(St=Fc;St<Vf;++St)Qt=76283*(St-16)+kA>>IA,Ye[St-Fc]=bh(Qt,255),Fn[St-Fc]=bh(Qt+8>>4,15);Dt=1}return 1}function Ql(St){var Qt=St.ma,de=St.U,Ee=St.T;return wt(!(1&St.ka)),0>=de||0>=Ee?0:(de=Qt.Ib(St,Qt),Qt.Jb!=null&&Qt.Jb(St,Qt,de),Qt.Dc+=de,1)}function Ll(St){St.ma.memory=null}function Fs(St,Qt,de,Ee){return jn(St,8)!=47?0:(Qt[0]=jn(St,14)+1,de[0]=jn(St,14)+1,Ee[0]=jn(St,1),jn(St,3)!=0?0:!St.h)}function ca(St,Qt){if(4>St)return St+1;var de=St-2>>1;return(2+(1&St)<<de)+jn(Qt,de)+1}function jl(St,Qt){return 120<Qt?Qt-120:1<=(de=((de=NA[Qt-1])>>4)*St+(8-(15&de)))?de:1;var de}function Ao(St,Qt,de){var Ee=un(de),sn=St[Qt+=255&Ee].g-8;return 0<sn&&(Hn(de,de.u+8),Ee=un(de),Qt+=St[Qt].value,Qt+=Ee&(1<<sn)-1),Hn(de,de.u+St[Qt].g),St[Qt].value}function Ra(St,Qt,de){return de.g+=St.g,de.value+=St.value<<Qt>>>0,wt(8>=de.g),St.g}function Kl(St,Qt,de){var Ee=St.xc;return wt((Qt=Ee==0?0:St.vc[St.md*(de>>Ee)+(Qt>>Ee)])<St.Wb),St.Ya[Qt]}function ta(St,Qt,de,Ee){var sn=St.ab,hn=St.c*Qt,cn=St.C;Qt=cn+Qt;var xn=de,Nn=Ee;for(Ee=St.Ta,de=St.Ua;0<sn--;){var zn=St.gc[sn],fi=cn,$i=Qt,Yi=xn,Ni=Nn,Kr=(Nn=Ee,xn=de,zn.Ea);switch(wt(fi<$i),wt($i<=zn.nc),zn.hc){case 2:Dh(Yi,Ni,($i-fi)*Kr,Nn,xn);break;case 0:var Nr=fi,Hi=$i,ji=Nn,zr=xn,lo=(os=zn).Ea;Nr==0&&(Wl(Yi,Ni,null,null,1,ji,zr),Rr(Yi,Ni+1,0,0,lo-1,ji,zr+1),Ni+=lo,zr+=lo,++Nr);for(var Yr=1<<os.b,as=Yr-1,ts=Br(lo,os.b),ci=os.K,os=os.w+(Nr>>os.b)*ts;Nr<Hi;){var Pl=ci,bl=os,il=1;for(Ld(Yi,Ni,ji,zr-lo,1,ji,zr);il<lo;){var Ga=(il&~as)+Yr;Ga>lo&&(Ga=lo),(0,vt[Pl[bl++]>>8&15])(Yi,Ni+ +il,ji,zr+il-lo,Ga-il,ji,zr+il),il=Ga}Ni+=lo,zr+=lo,++Nr&as||(os+=ts)}$i!=zn.nc&&Ht(Nn,xn-Kr,Nn,xn+($i-fi-1)*Kr,Kr);break;case 1:for(Kr=Yi,Hi=Ni,lo=(Yi=zn.Ea)-(zr=Yi&~(ji=(Ni=1<<zn.b)-1)),Nr=Br(Yi,zn.b),Yr=zn.K,zn=zn.w+(fi>>zn.b)*Nr;fi<$i;){for(as=Yr,ts=zn,ci=new qi,os=Hi+zr,Pl=Hi+Yi;Hi<os;)us(as[ts++],ci),gt(ci,Kr,Hi,Ni,Nn,xn),Hi+=Ni,xn+=Ni;Hi<Pl&&(us(as[ts++],ci),gt(ci,Kr,Hi,lo,Nn,xn),Hi+=lo,xn+=lo),++fi&ji||(zn+=Nr)}break;case 3:if(Yi==Nn&&Ni==xn&&0<zn.b){for(Hi=Nn,Yi=Kr=xn+($i-fi)*Kr-(zr=($i-fi)*Br(zn.Ea,zn.b)),Ni=Nn,ji=xn,Nr=[],zr=(lo=zr)-1;0<=zr;--zr)Nr[zr]=Ni[ji+zr];for(zr=lo-1;0<=zr;--zr)Hi[Yi+zr]=Nr[zr];ah(zn,fi,$i,Nn,Kr,Nn,xn)}else ah(zn,fi,$i,Yi,Ni,Nn,xn)}xn=Ee,Nn=de}Nn!=de&&Ht(Ee,de,xn,Nn,hn)}function la(St,Qt){var de=St.V,Ee=St.Ba+St.c*St.C,sn=Qt-St.C;if(wt(Qt<=St.l.o),wt(16>=sn),0<sn){var hn=St.l,cn=St.Ta,xn=St.Ua,Nn=hn.width;if(ta(St,sn,de,Ee),sn=xn=[xn],wt((de=St.C)<(Ee=Qt)),wt(hn.v<hn.va),Ee>hn.o&&(Ee=hn.o),de<hn.j){var zn=hn.j-de;de=hn.j,sn[0]+=zn*Nn}if(de>=Ee?de=0:(sn[0]+=4*hn.v,hn.ka=de-hn.j,hn.U=hn.va-hn.v,hn.T=Ee-de,de=1),de){if(xn=xn[0],11>(de=St.ca).S){var fi=de.f.RGBA,$i=(Ee=de.S,sn=hn.U,hn=hn.T,zn=fi.eb,fi.A),Yi=hn;for(fi=fi.fb+St.Ma*fi.A;0<Yi--;){var Ni=cn,Kr=xn,Nr=sn,Hi=zn,ji=fi;switch(Ee){case hu:Bt(Ni,Kr,Nr,Hi,ji);break;case ad:Jt(Ni,Kr,Nr,Hi,ji);break;case Wc:Jt(Ni,Kr,Nr,Hi,ji),yu(Hi,ji,0,Nr,1,0);break;case lc:De(Ni,Kr,Nr,Hi,ji);break;case uh:qs(Ni,Kr,Nr,Hi,ji,1);break;case Jd:qs(Ni,Kr,Nr,Hi,ji,1),yu(Hi,ji,0,Nr,1,0);break;case wh:qs(Ni,Kr,Nr,Hi,ji,0);break;case zf:qs(Ni,Kr,Nr,Hi,ji,0),yu(Hi,ji,1,Nr,1,0);break;case kl:Se(Ni,Kr,Nr,Hi,ji);break;case Eh:Se(Ni,Kr,Nr,Hi,ji),La(Hi,ji,Nr,1,0);break;case th:je(Ni,Kr,Nr,Hi,ji);break;default:wt(0)}xn+=Nn,fi+=$i}St.Ma+=hn}else alert("todo:EmitRescaledRowsYUVA");wt(St.Ma<=de.height)}}St.C=Qt,wt(St.C<=St.i)}function ka(St){var Qt;if(0<St.ua)return 0;for(Qt=0;Qt<St.Wb;++Qt){var de=St.Ya[Qt].G,Ee=St.Ya[Qt].H;if(0<de[1][Ee[1]+0].g||0<de[2][Ee[2]+0].g||0<de[3][Ee[3]+0].g)return 0}return 1}function Xa(St,Qt,de,Ee,sn,hn){if(St.Z!=0){var cn=St.qd,xn=St.rd;for(wt(Td[St.Z]!=null);Qt<de;++Qt)Td[St.Z](cn,xn,Ee,sn,Ee,sn,hn),cn=Ee,xn=sn,sn+=hn;St.qd=cn,St.rd=xn}}function al(St,Qt){var de=St.l.ma,Ee=de.Z==0||de.Z==1?St.l.j:St.C;if(Ee=St.C<Ee?Ee:St.C,wt(Qt<=St.l.o),Qt>Ee){var sn=St.l.width,hn=de.ca,cn=de.tb+sn*Ee,xn=St.V,Nn=St.Ba+St.c*Ee,zn=St.gc;wt(St.ab==1),wt(zn[0].hc==3),it(zn[0],Ee,Qt,xn,Nn,hn,cn),Xa(de,Ee,Qt,hn,cn,sn)}St.C=St.Ma=Qt}function _s(St,Qt,de,Ee,sn,hn,cn){var xn=St.$/Ee,Nn=St.$%Ee,zn=St.m,fi=St.s,$i=de+St.$,Yi=$i;sn=de+Ee*sn;var Ni=de+Ee*hn,Kr=280+fi.ua,Nr=St.Pb?xn:16777216,Hi=0<fi.ua?fi.Wa:null,ji=fi.wc,zr=$i<Ni?Kl(fi,Nn,xn):null;wt(St.C<hn),wt(Ni<=sn);var lo=!1;t:for(;;){for(;lo||$i<Ni;){var Yr=0;if(xn>=Nr){var as=$i-de;wt((Nr=St).Pb),Nr.wd=Nr.m,Nr.xd=as,0<Nr.s.ua&&Ii(Nr.s.Wa,Nr.s.vb),Nr=xn+WA}if(Nn&ji||(zr=Kl(fi,Nn,xn)),wt(zr!=null),zr.Qb&&(Qt[$i]=zr.qb,lo=!0),!lo)if(Zn(zn),zr.jc){Yr=zn,as=Qt;var ts=$i,ci=zr.pd[un(Yr)&Iu-1];wt(zr.jc),256>ci.g?(Hn(Yr,Yr.u+ci.g),as[ts]=ci.value,Yr=0):(Hn(Yr,Yr.u+ci.g-256),wt(256<=ci.value),Yr=ci.value),Yr==0&&(lo=!0)}else Yr=Ao(zr.G[0],zr.H[0],zn);if(zn.h)break;if(lo||256>Yr){if(!lo)if(zr.nd)Qt[$i]=(zr.qb|Yr<<8)>>>0;else{if(Zn(zn),lo=Ao(zr.G[1],zr.H[1],zn),Zn(zn),as=Ao(zr.G[2],zr.H[2],zn),ts=Ao(zr.G[3],zr.H[3],zn),zn.h)break;Qt[$i]=(ts<<24|lo<<16|Yr<<8|as)>>>0}if(lo=!1,++$i,++Nn>=Ee&&(Nn=0,++xn,cn!=null&&xn<=hn&&!(xn%16)&&cn(St,xn),Hi!=null))for(;Yi<$i;)Yr=Qt[Yi++],Hi.X[(506832829*Yr&4294967295)>>>Hi.Mb]=Yr}else if(280>Yr){if(Yr=ca(Yr-256,zn),as=Ao(zr.G[4],zr.H[4],zn),Zn(zn),as=jl(Ee,as=ca(as,zn)),zn.h)break;if($i-de<as||sn-$i<Yr)break t;for(ts=0;ts<Yr;++ts)Qt[$i+ts]=Qt[$i+ts-as];for($i+=Yr,Nn+=Yr;Nn>=Ee;)Nn-=Ee,++xn,cn!=null&&xn<=hn&&!(xn%16)&&cn(St,xn);if(wt($i<=sn),Nn&ji&&(zr=Kl(fi,Nn,xn)),Hi!=null)for(;Yi<$i;)Yr=Qt[Yi++],Hi.X[(506832829*Yr&4294967295)>>>Hi.Mb]=Yr}else{if(!(Yr<Kr))break t;for(lo=Yr-280,wt(Hi!=null);Yi<$i;)Yr=Qt[Yi++],Hi.X[(506832829*Yr&4294967295)>>>Hi.Mb]=Yr;Yr=$i,wt(!(lo>>>(as=Hi).Xa)),Qt[Yr]=as.X[lo],lo=!0}lo||wt(zn.h==mn(zn))}if(St.Pb&&zn.h&&$i<sn)wt(St.m.h),St.a=5,St.m=St.wd,St.$=St.xd,0<St.s.ua&&Ii(St.s.vb,St.s.Wa);else{if(zn.h)break t;cn!=null&&cn(St,xn>hn?hn:xn),St.a=0,St.$=$i-de}return 1}return St.a=3,0}function Ta(St){wt(St!=null),St.vc=null,St.yc=null,St.Ya=null;var Qt=St.Wa;Qt!=null&&(Qt.X=null),St.vb=null,wt(St!=null)}function Sl(){var St=new EA;return St==null?null:(St.a=0,St.xb=kd,Ua("Predictor","VP8LPredictors"),Ua("Predictor","VP8LPredictors_C"),Ua("PredictorAdd","VP8LPredictorsAdd"),Ua("PredictorAdd","VP8LPredictorsAdd_C"),Dh=jo,gt=qo,Bt=xo,Jt=wa,Se=$o,je=rs,De=Ps,Ti.VP8LMapColor32b=sd,Ti.VP8LMapColor8b=st,St)}function pu(St,Qt,de,Ee,sn){var hn=1,cn=[St],xn=[Qt],Nn=Ee.m,zn=Ee.s,fi=null,$i=0;t:for(;;){if(de)for(;hn&&jn(Nn,1);){var Yi=cn,Ni=xn,Kr=Ee,Nr=1,Hi=Kr.m,ji=Kr.gc[Kr.ab],zr=jn(Hi,2);if(Kr.Oc&1<<zr)hn=0;else{switch(Kr.Oc|=1<<zr,ji.hc=zr,ji.Ea=Yi[0],ji.nc=Ni[0],ji.K=[null],++Kr.ab,wt(4>=Kr.ab),zr){case 0:case 1:ji.b=jn(Hi,3)+2,Nr=pu(Br(ji.Ea,ji.b),Br(ji.nc,ji.b),0,Kr,ji.K),ji.K=ji.K[0];break;case 3:var lo,Yr=jn(Hi,8)+1,as=16<Yr?0:4<Yr?1:2<Yr?2:3;if(Yi[0]=Br(ji.Ea,as),ji.b=as,lo=Nr=pu(Yr,1,0,Kr,ji.K)){var ts,ci=Yr,os=ji,Pl=1<<(8>>os.b),bl=Yt(Pl);if(bl==null)lo=0;else{var il=os.K[0],Ga=os.w;for(bl[0]=os.K[0][0],ts=1;ts<1*ci;++ts)bl[ts]=sr(il[Ga+ts],bl[ts-1]);for(;ts<4*Pl;++ts)bl[ts]=0;os.K[0]=null,os.K[0]=bl,lo=1}}Nr=lo;break;case 2:break;default:wt(0)}hn=Nr}}if(cn=cn[0],xn=xn[0],hn&&jn(Nn,1)&&!(hn=1<=($i=jn(Nn,4))&&11>=$i)){Ee.a=3;break t}var Ha;if(Ha=hn)e:{var Al,Ma,Gh,ud=Ee,jh=cn,hd=xn,Tl=$i,cd=de,dd=ud.m,Wh=ud.s,uc=[null],Vc=1,qd=0,TA=Kf[Tl];n:for(;;){if(cd&&jn(dd,1)){var ru=jn(dd,3)+2,uf=Br(jh,ru),OA=Br(hd,ru),Zf=uf*OA;if(!pu(uf,OA,0,ud,uc))break n;for(uc=uc[0],Wh.xc=ru,Al=0;Al<Zf;++Al){var DA=uc[Al]>>8&65535;uc[Al]=DA,DA>=Vc&&(Vc=DA+1)}}if(dd.h)break n;for(Ma=0;5>Ma;++Ma){var fh=yf[Ma];!Ma&&0<Tl&&(fh+=1<<Tl),qd<fh&&(qd=fh)}var Zg=ge(Vc*TA,ri),Bp=Vc,Xg=ge(Bp,me);if(Xg==null)var Zc=null;else wt(65536>=Bp),Zc=Xg;var Bg=Yt(qd);if(Zc==null||Bg==null||Zg==null){ud.a=1;break n}var $g=Zg;for(Al=Gh=0;Al<Vc;++Al){var hh=Zc[Al],Xc=hh.G,Fh=hh.H,Vl=0,Xf=1,Yg=0;for(Ma=0;5>Ma;++Ma){fh=yf[Ma],Xc[Ma]=$g,Fh[Ma]=Gh,!Ma&&0<Tl&&(fh+=1<<Tl);r:{var Pg,$f=fh,Yf=ud,Io=Bg,Sf=$g,bg=Gh,Jg=0,jA=Yf.m,Pp=jn(jA,1);if(ie(Io,0,0,$f),Pp){var Cf=jn(jA,1)+1,n0=jn(jA,1),um=jn(jA,n0==0?1:8);Io[um]=1,Cf==2&&(Io[um=jn(jA,8)]=1);var Ad=1}else{var bp=Yt(19),Ep=jn(jA,4)+4;if(19<Ep){Yf.a=3;var oa=0;break r}for(Pg=0;Pg<Ep;++Pg)bp[GA[Pg]]=jn(jA,3);var fd=void 0,Eg=void 0,Fg=Yf,hm=bp,hf=$f,$c=Io,Jf=0,cf=Fg.m,cm=8,qg=ge(128,ri);i:for(;$n(qg,0,7,hm,19);){if(jn(cf,1)){var Fp=2+2*jn(cf,3);if((fd=2+jn(cf,Fp))>hf)break i}else fd=hf;for(Eg=0;Eg<hf&&fd--;){Zn(cf);var Lp=qg[0+(127&un(cf))];Hn(cf,cf.u+Lp.g);var qf=Lp.value;if(16>qf)$c[Eg++]=qf,qf!=0&&(cm=qf);else{var dm=qf==16,Am=qf-16,fm=Md[Am],tp=jn(cf,Sg[Am])+fm;if(Eg+tp>hf)break i;for(var ep=dm?cm:0;0<tp--;)$c[Eg++]=ep}}Jf=1;break i}Jf||(Fg.a=3),Ad=Jf}(Ad=Ad&&!jA.h)&&(Jg=$n(Sf,bg,8,Io,$f)),Ad&&Jg!=0?oa=Jg:(Yf.a=3,oa=0)}if(oa==0)break n;if(Xf&&wf[Ma]==1&&(Xf=$g[Gh].g==0),Vl+=$g[Gh].g,Gh+=oa,3>=Ma){var Lg,gm=Bg[0];for(Lg=1;Lg<fh;++Lg)Bg[Lg]>gm&&(gm=Bg[Lg]);Yg+=gm}}if(hh.nd=Xf,hh.Qb=0,Xf&&(hh.qb=(Xc[3][Fh[3]+0].value<<24|Xc[1][Fh[1]+0].value<<16|Xc[2][Fh[2]+0].value)>>>0,Vl==0&&256>Xc[0][Fh[0]+0].value&&(hh.Qb=1,hh.qb+=Xc[0][Fh[0]+0].value<<8)),hh.jc=!hh.Qb&&6>Yg,hh.jc){var Mg,$A=hh;for(Mg=0;Mg<Iu;++Mg){var UA=Mg,YA=$A.pd[UA],Bf=$A.G[0][$A.H[0]+UA];256<=Bf.value?(YA.g=Bf.g+256,YA.value=Bf.value):(YA.g=0,YA.value=0,UA>>=Ra(Bf,8,YA),UA>>=Ra($A.G[1][$A.H[1]+UA],16,YA),UA>>=Ra($A.G[2][$A.H[2]+UA],0,YA),Ra($A.G[3][$A.H[3]+UA],24,YA))}}}Wh.vc=uc,Wh.Wb=Vc,Wh.Ya=Zc,Wh.yc=Zg,Ha=1;break e}Ha=0}if(!(hn=Ha)){Ee.a=3;break t}if(0<$i){if(zn.ua=1<<$i,!eo(zn.Wa,$i)){Ee.a=1,hn=0;break t}}else zn.ua=0;var Mp=Ee,Lh=cn,Np=xn,np=Mp.s,Od=np.xc;if(Mp.c=Lh,Mp.i=Np,np.md=Br(Lh,Od),np.wc=Od==0?-1:(1<<Od)-1,de){Ee.xb=ld;break t}if((fi=Yt(cn*xn))==null){Ee.a=1,hn=0;break t}hn=(hn=_s(Ee,fi,0,cn,xn,xn,null))&&!Nn.h;break t}return hn?(sn!=null?sn[0]=fi:(wt(fi==null),wt(de)),Ee.$=0,de||Ta(zn)):Ta(zn),hn}function au(St,Qt){var de=St.c*St.i,Ee=de+Qt+16*Qt;return wt(St.c<=Qt),St.V=Yt(Ee),St.V==null?(St.Ta=null,St.Ua=0,St.a=1,0):(St.Ta=St.V,St.Ua=St.Ba+de+Qt,1)}function Uu(St,Qt){var de=St.C,Ee=Qt-de,sn=St.V,hn=St.Ba+St.c*de;for(wt(Qt<=St.l.o);0<Ee;){var cn=16<Ee?16:Ee,xn=St.l.ma,Nn=St.l.width,zn=Nn*cn,fi=xn.ca,$i=xn.tb+Nn*de,Yi=St.Ta,Ni=St.Ua;ta(St,cn,sn,hn),vl(Yi,Ni,fi,$i,zn),Xa(xn,de,de+cn,fi,$i,Nn),Ee-=cn,sn+=cn*St.c,de+=cn}wt(de==Qt),St.C=St.Ma=Qt}function Xu(){this.ub=this.yd=this.td=this.Rb=0}function dh(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function $u(){this.Fb=this.Bb=this.Cb=0,this.Zb=Yt(4),this.Lb=Yt(4)}function _a(){this.Yb=function(){var St=[];return function Qt(de,Ee,sn){for(var hn=sn[Ee],cn=0;cn<hn&&(de.push(sn.length>Ee+1?[]:0),!(sn.length<Ee+1));cn++)Qt(de[cn],Ee+1,sn)}(St,0,[3,11]),St}()}function Bu(){this.jb=Yt(3),this.Wc=we([4,8],_a),this.Xc=we([4,17],_a)}function Ul(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new Yt(4),this.od=new Yt(4)}function nl(){this.ld=this.La=this.dd=this.tc=0}function ph(){this.Na=this.la=0}function Cc(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function mh(){this.ad=Yt(384),this.Za=0,this.Ob=Yt(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function ic(){this.uc=this.M=this.Nb=0,this.wa=Array(new nl),this.Y=0,this.ya=Array(new mh),this.aa=0,this.l=new fa}function rc(){this.y=Yt(16),this.f=Yt(8),this.ea=Yt(8)}function vh(){this.cb=this.a=0,this.sc="",this.m=new Yn,this.Od=new Xu,this.Kc=new dh,this.ed=new Ul,this.Qa=new $u,this.Ic=this.$c=this.Aa=0,this.D=new ic,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=ge(8,Yn),this.ia=0,this.pb=ge(4,Cc),this.Pa=new Bu,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new rc),this.Hd=0,this.rb=Array(new ph),this.sb=0,this.wa=Array(new nl),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 mh),this.L=this.aa=0,this.gd=we([4,2],nl),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 fa(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Cl(){var St=new vh;return St!=null&&(St.a=0,St.sc="OK",St.cb=0,St.Xb=0,eh||(eh=lu)),St}function Ba(St,Qt,de){return St.a==0&&(St.a=Qt,St.sc=de,St.cb=0),0}function pl(St,Qt,de){return 3<=de&&St[Qt+0]==157&&St[Qt+1]==1&&St[Qt+2]==42}function ga(St,Qt){if(St==null)return 0;if(St.a=0,St.sc="OK",Qt==null)return Ba(St,2,"null VP8Io passed to VP8GetHeaders()");var de=Qt.data,Ee=Qt.w,sn=Qt.ha;if(4>sn)return Ba(St,7,"Truncated header.");var hn=de[Ee+0]|de[Ee+1]<<8|de[Ee+2]<<16,cn=St.Od;if(cn.Rb=!(1&hn),cn.td=hn>>1&7,cn.yd=hn>>4&1,cn.ub=hn>>5,3<cn.td)return Ba(St,3,"Incorrect keyframe parameters.");if(!cn.yd)return Ba(St,4,"Frame not displayable.");Ee+=3,sn-=3;var xn=St.Kc;if(cn.Rb){if(7>sn)return Ba(St,7,"cannot parse picture header");if(!pl(de,Ee,sn))return Ba(St,3,"Bad code word");xn.c=16383&(de[Ee+4]<<8|de[Ee+3]),xn.Td=de[Ee+4]>>6,xn.i=16383&(de[Ee+6]<<8|de[Ee+5]),xn.Ud=de[Ee+6]>>6,Ee+=7,sn-=7,St.za=xn.c+15>>4,St.Ub=xn.i+15>>4,Qt.width=xn.c,Qt.height=xn.i,Qt.Da=0,Qt.j=0,Qt.v=0,Qt.va=Qt.width,Qt.o=Qt.height,Qt.da=0,Qt.ib=Qt.width,Qt.hb=Qt.height,Qt.U=Qt.width,Qt.T=Qt.height,ie((hn=St.Pa).jb,0,255,hn.jb.length),wt((hn=St.Qa)!=null),hn.Cb=0,hn.Bb=0,hn.Fb=1,ie(hn.Zb,0,0,hn.Zb.length),ie(hn.Lb,0,0,hn.Lb)}if(cn.ub>sn)return Ba(St,7,"bad partition length");Xe(hn=St.m,de,Ee,cn.ub),Ee+=cn.ub,sn-=cn.ub,cn.Rb&&(xn.Ld=Fi(hn),xn.Kd=Fi(hn)),xn=St.Qa;var Nn,zn=St.Pa;if(wt(hn!=null),wt(xn!=null),xn.Cb=Fi(hn),xn.Cb){if(xn.Bb=Fi(hn),Fi(hn)){for(xn.Fb=Fi(hn),Nn=0;4>Nn;++Nn)xn.Zb[Nn]=Fi(hn)?vn(hn,7):0;for(Nn=0;4>Nn;++Nn)xn.Lb[Nn]=Fi(hn)?vn(hn,6):0}if(xn.Bb)for(Nn=0;3>Nn;++Nn)zn.jb[Nn]=Fi(hn)?Je(hn,8):255}else xn.Bb=0;if(hn.Ka)return Ba(St,3,"cannot parse segment header");if((xn=St.ed).zd=Fi(hn),xn.Tb=Je(hn,6),xn.wb=Je(hn,3),xn.Pc=Fi(hn),xn.Pc&&Fi(hn)){for(zn=0;4>zn;++zn)Fi(hn)&&(xn.vd[zn]=vn(hn,6));for(zn=0;4>zn;++zn)Fi(hn)&&(xn.od[zn]=vn(hn,6))}if(St.L=xn.Tb==0?0:xn.zd?1:2,hn.Ka)return Ba(St,3,"cannot parse filter header");var fi=sn;if(sn=Nn=Ee,Ee=Nn+fi,xn=fi,St.Xb=(1<<Je(St.m,2))-1,fi<3*(zn=St.Xb))de=7;else{for(Nn+=3*zn,xn-=3*zn,fi=0;fi<zn;++fi){var $i=de[sn+0]|de[sn+1]<<8|de[sn+2]<<16;$i>xn&&($i=xn),Xe(St.Jc[+fi],de,Nn,$i),Nn+=$i,xn-=$i,sn+=3}Xe(St.Jc[+zn],de,Nn,xn),de=Nn<Ee?0:5}if(de!=0)return Ba(St,de,"cannot parse partitions");for(de=Je(Nn=St.m,7),sn=Fi(Nn)?vn(Nn,4):0,Ee=Fi(Nn)?vn(Nn,4):0,xn=Fi(Nn)?vn(Nn,4):0,zn=Fi(Nn)?vn(Nn,4):0,Nn=Fi(Nn)?vn(Nn,4):0,fi=St.Qa,$i=0;4>$i;++$i){if(fi.Cb){var Yi=fi.Zb[$i];fi.Fb||(Yi+=de)}else{if(0<$i){St.pb[$i]=St.pb[0];continue}Yi=de}var Ni=St.pb[$i];Ni.Sc[0]=Nd[bh(Yi+sn,127)],Ni.Sc[1]=_u[bh(Yi+0,127)],Ni.Eb[0]=2*Nd[bh(Yi+Ee,127)],Ni.Eb[1]=101581*_u[bh(Yi+xn,127)]>>16,8>Ni.Eb[1]&&(Ni.Eb[1]=8),Ni.Qc[0]=Nd[bh(Yi+zn,117)],Ni.Qc[1]=_u[bh(Yi+Nn,127)],Ni.lc=Yi+Nn}if(!cn.Rb)return Ba(St,4,"Not a key frame.");for(Fi(hn),cn=St.Pa,de=0;4>de;++de){for(sn=0;8>sn;++sn)for(Ee=0;3>Ee;++Ee)for(xn=0;11>xn;++xn)zn=li(hn,Wf[de][sn][Ee][xn])?Je(hn,8):VA[de][sn][Ee][xn],cn.Wc[de][sn].Yb[Ee][xn]=zn;for(sn=0;17>sn;++sn)cn.Xc[de][sn]=cn.Wc[de][Cp[sn]]}return St.kc=Fi(hn),St.kc&&(St.Bd=Je(hn,8)),St.cb=1}function lu(St,Qt,de,Ee,sn,hn,cn){var xn=Qt[sn].Yb[de];for(de=0;16>sn;++sn){if(!li(St,xn[de+0]))return sn;for(;!li(St,xn[de+1]);)if(xn=Qt[++sn].Yb[0],de=0,sn==16)return 16;var Nn=Qt[sn+1].Yb;if(li(St,xn[de+2])){var zn=St,fi=0;if(li(zn,(Yi=xn)[($i=de)+3]))if(li(zn,Yi[$i+6])){for(xn=0,$i=2*(fi=li(zn,Yi[$i+8]))+(Yi=li(zn,Yi[$i+9+fi])),fi=0,Yi=Gf[$i];Yi[xn];++xn)fi+=fi+li(zn,Yi[xn]);fi+=3+(8<<$i)}else li(zn,Yi[$i+7])?(fi=7+2*li(zn,165),fi+=li(zn,145)):fi=5+li(zn,159);else fi=li(zn,Yi[$i+4])?3+li(zn,Yi[$i+5]):2;xn=Nn[2]}else fi=1,xn=Nn[1];Nn=cn+Sp[sn],0>(zn=St).b&&ii(zn);var $i,Yi=zn.b,Ni=($i=zn.Ca>>1)-(zn.I>>Yi)>>31;--zn.b,zn.Ca+=Ni,zn.Ca|=1,zn.I-=($i+1&Ni)<<Yi,hn[Nn]=((fi^Ni)-Ni)*Ee[(0<sn)+0]}return 16}function Fu(St){var Qt=St.rb[St.sb-1];Qt.la=0,Qt.Na=0,ie(St.zc,0,0,St.zc.length),St.ja=0}function zh(St,Qt){if(St==null)return 0;if(Qt==null)return Ba(St,2,"NULL VP8Io parameter in VP8Decode().");if(!St.cb&&!ga(St,Qt))return 0;if(wt(St.cb),Qt.ac==null||Qt.ac(Qt)){Qt.ob&&(St.L=0);var de=Dn[St.L];if(St.L==2?(St.yb=0,St.zb=0):(St.yb=Qt.v-de>>4,St.zb=Qt.j-de>>4,0>St.yb&&(St.yb=0),0>St.zb&&(St.zb=0)),St.Va=Qt.o+15+de>>4,St.Hb=Qt.va+15+de>>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(de=0;4>de;++de){var sn;if(St.Qa.Cb){var hn=St.Qa.Lb[de];St.Qa.Fb||(hn+=Ee.Tb)}else hn=Ee.Tb;for(sn=0;1>=sn;++sn){var cn=St.gd[de][sn],xn=hn;if(Ee.Pc&&(xn+=Ee.vd[0],sn&&(xn+=Ee.od[0])),0<(xn=0>xn?0:63<xn?63:xn)){var Nn=xn;0<Ee.wb&&(Nn=4<Ee.wb?Nn>>2:Nn>>1)>9-Ee.wb&&(Nn=9-Ee.wb),1>Nn&&(Nn=1),cn.dd=Nn,cn.tc=2*xn+Nn,cn.ld=40<=xn?2:15<=xn?1:0}else cn.tc=0;cn.La=sn}}}de=0}else Ba(St,6,"Frame setup failed"),de=St.a;if(de=de==0){if(de){St.$c=0,0<St.Aa||(St.Ic=zi);t:{de=St.Ic,Ee=4*(Nn=St.za);var zn=32*Nn,fi=Nn+1,$i=0<St.L?Nn*(0<St.Aa?2:1):0,Yi=(St.Aa==2?2:1)*Nn;if((cn=Ee+832+(sn=3*(16*de+Dn[St.L])/2*zn)+(hn=St.Fa!=null&&0<St.Fa.length?St.Kc.c*St.Kc.i:0))!=cn)de=0;else{if(cn>St.Vb){if(St.Vb=0,St.Ec=Yt(cn),St.Fc=0,St.Ec==null){de=Ba(St,1,"no memory during frame initialization.");break t}St.Vb=cn}cn=St.Ec,xn=St.Fc,St.Ac=cn,St.Bc=xn,xn+=Ee,St.Gd=ge(zn,rc),St.Hd=0,St.rb=ge(fi+1,ph),St.sb=1,St.wa=$i?ge($i,nl):null,St.Y=0,St.D.Nb=0,St.D.wa=St.wa,St.D.Y=St.Y,0<St.Aa&&(St.D.Y+=Nn),wt(!0),St.oc=cn,St.pc=xn,xn+=832,St.ya=ge(Yi,mh),St.aa=0,St.D.ya=St.ya,St.D.aa=St.aa,St.Aa==2&&(St.D.aa+=Nn),St.R=16*Nn,St.B=8*Nn,Nn=(zn=Dn[St.L])*St.R,zn=zn/2*St.B,St.sa=cn,St.ta=xn+Nn,St.qa=St.sa,St.ra=St.ta+16*de*St.R+zn,St.Ha=St.qa,St.Ia=St.ra+8*de*St.B+zn,St.$c=0,xn+=sn,St.mb=hn?cn:null,St.nb=hn?xn:null,wt(xn+hn<=St.Fc+St.Vb),Fu(St),ie(St.Ac,St.Bc,0,Ee),de=1}}if(de){if(Qt.ka=0,Qt.y=St.sa,Qt.O=St.ta,Qt.f=St.qa,Qt.N=St.ra,Qt.ea=St.Ha,Qt.Vd=St.Ia,Qt.fa=St.R,Qt.Rc=St.B,Qt.F=null,Qt.J=0,!Il){for(de=-255;255>=de;++de)yl[255+de]=0>de?-de:de;for(de=-1020;1020>=de;++de)Bo[1020+de]=-128>de?-128:127<de?127:de;for(de=-112;112>=de;++de)Ca[112+de]=-16>de?-16:15<de?15:de;for(de=-255;510>=de;++de)Nl[255+de]=0>de?0:255<de?255:de;Il=1}ln=Lu,oi=nd,ki=gc,bi=xd,yr=SA,pn=lA,kr=Qc,qr=od,vo=Pc,Yo=KA,Mo=lf,ss=uA,ks=bd,No=zc,ea=Pd,Bl=Vu,ku=yh,dl=PA,Ec[0]=mu,Ec[1]=Kd,Ec[2]=Cd,Ec[3]=rd,Ec[4]=Gd,Ec[5]=Ju,Ec[6]=Wd,Ec[7]=Rc,Ec[8]=Vd,Ec[9]=Bd,bc[0]=sh,bc[1]=CA,bc[2]=Uc,bc[3]=Sd,bc[4]=Wu,bc[5]=BA,bc[6]=Kh,Id[0]=Rl,Id[1]=id,Id[2]=uu,Id[3]=vu,Id[4]=$a,Id[5]=Oa,Id[6]=Mu,de=1}else de=0}de&&(de=function(Ni,Kr){for(Ni.M=0;Ni.M<Ni.Va;++Ni.M){var Nr,Hi=Ni.Jc[Ni.M&Ni.Xb],ji=Ni.m,zr=Ni;for(Nr=0;Nr<zr.za;++Nr){var lo=ji,Yr=zr,as=Yr.Ac,ts=Yr.Bc+4*Nr,ci=Yr.zc,os=Yr.ya[Yr.aa+Nr];if(Yr.Qa.Bb?os.$b=li(lo,Yr.Pa.jb[0])?2+li(lo,Yr.Pa.jb[2]):li(lo,Yr.Pa.jb[1]):os.$b=0,Yr.kc&&(os.Ad=li(lo,Yr.Bd)),os.Za=!li(lo,145)+0,os.Za){var Pl=os.Ob,bl=0;for(Yr=0;4>Yr;++Yr){var il,Ga=ci[0+Yr];for(il=0;4>il;++il){Ga=ZA[as[ts+il]][Ga];for(var Ha=zg[li(lo,Ga[0])];0<Ha;)Ha=zg[2*Ha+li(lo,Ga[Ha])];Ga=-Ha,as[ts+il]=Ga}Ht(Pl,bl,as,ts,4),bl+=4,ci[0+Yr]=Ga}}else Ga=li(lo,156)?li(lo,128)?1:3:li(lo,163)?2:0,os.Ob[0]=Ga,ie(as,ts,Ga,4),ie(ci,0,Ga,4);os.Dd=li(lo,142)?li(lo,114)?li(lo,183)?1:3:2:0}if(zr.m.Ka)return Ba(Ni,7,"Premature end-of-partition0 encountered.");for(;Ni.ja<Ni.za;++Ni.ja){if(zr=Hi,lo=(ji=Ni).rb[ji.sb-1],as=ji.rb[ji.sb+ji.ja],Nr=ji.ya[ji.aa+ji.ja],ts=ji.kc?Nr.Ad:0)lo.la=as.la=0,Nr.Za||(lo.Na=as.Na=0),Nr.Hc=0,Nr.Gc=0,Nr.ia=0;else{var Al,Ma;if(lo=as,as=zr,ts=ji.Pa.Xc,ci=ji.ya[ji.aa+ji.ja],os=ji.pb[ci.$b],Yr=ci.ad,Pl=0,bl=ji.rb[ji.sb-1],Ga=il=0,ie(Yr,Pl,0,384),ci.Za)var Gh=0,ud=ts[3];else{Ha=Yt(16);var jh=lo.Na+bl.Na;if(jh=eh(as,ts[1],jh,os.Eb,0,Ha,0),lo.Na=bl.Na=(0<jh)+0,1<jh)ln(Ha,0,Yr,Pl);else{var hd=Ha[0]+3>>3;for(Ha=0;256>Ha;Ha+=16)Yr[Pl+Ha]=hd}Gh=1,ud=ts[0]}var Tl=15&lo.la,cd=15&bl.la;for(Ha=0;4>Ha;++Ha){var dd=1&cd;for(hd=Ma=0;4>hd;++hd)Tl=Tl>>1|(dd=(jh=eh(as,ud,jh=dd+(1&Tl),os.Sc,Gh,Yr,Pl))>Gh)<<7,Ma=Ma<<2|(3<jh?3:1<jh?2:Yr[Pl+0]!=0),Pl+=16;Tl>>=4,cd=cd>>1|dd<<7,il=(il<<8|Ma)>>>0}for(ud=Tl,Gh=cd>>4,Al=0;4>Al;Al+=2){for(Ma=0,Tl=lo.la>>4+Al,cd=bl.la>>4+Al,Ha=0;2>Ha;++Ha){for(dd=1&cd,hd=0;2>hd;++hd)jh=dd+(1&Tl),Tl=Tl>>1|(dd=0<(jh=eh(as,ts[2],jh,os.Qc,0,Yr,Pl)))<<3,Ma=Ma<<2|(3<jh?3:1<jh?2:Yr[Pl+0]!=0),Pl+=16;Tl>>=2,cd=cd>>1|dd<<5}Ga|=Ma<<4*Al,ud|=Tl<<4<<Al,Gh|=(240&cd)<<Al}lo.la=ud,bl.la=Gh,ci.Hc=il,ci.Gc=Ga,ci.ia=43690&Ga?0:os.ia,ts=!(il|Ga)}if(0<ji.L&&(ji.wa[ji.Y+ji.ja]=ji.gd[Nr.$b][Nr.Za],ji.wa[ji.Y+ji.ja].La|=!ts),zr.Ka)return Ba(Ni,7,"Premature end-of-file encountered.")}if(Fu(Ni),ji=Kr,zr=1,Nr=(Hi=Ni).D,lo=0<Hi.L&&Hi.M>=Hi.zb&&Hi.M<=Hi.Va,Hi.Aa==0)t:{if(Nr.M=Hi.M,Nr.uc=lo,MA(Hi,Nr),zr=1,Nr=(Ma=Hi.D).Nb,lo=(Ga=Dn[Hi.L])*Hi.R,as=Ga/2*Hi.B,Ha=16*Nr*Hi.R,hd=8*Nr*Hi.B,ts=Hi.sa,ci=Hi.ta-lo+Ha,os=Hi.qa,Yr=Hi.ra-as+hd,Pl=Hi.Ha,bl=Hi.Ia-as+hd,cd=(Tl=Ma.M)==0,il=Tl>=Hi.Va-1,Hi.Aa==2&&MA(Hi,Ma),Ma.uc)for(dd=(jh=Hi).D.M,wt(jh.D.uc),Ma=jh.yb;Ma<jh.Hb;++Ma){Gh=Ma,ud=dd;var Wh=(uc=(fh=jh).D).Nb;Al=fh.R;var uc=uc.wa[uc.Y+Gh],Vc=fh.sa,qd=fh.ta+16*Wh*Al+16*Gh,TA=uc.dd,ru=uc.tc;if(ru!=0)if(wt(3<=ru),fh.L==1)0<Gh&&Bl(Vc,qd,Al,ru+4),uc.La&&dl(Vc,qd,Al,ru),0<ud&&ea(Vc,qd,Al,ru+4),uc.La&&ku(Vc,qd,Al,ru);else{var uf=fh.B,OA=fh.qa,Zf=fh.ra+8*Wh*uf+8*Gh,DA=fh.Ha,fh=fh.Ia+8*Wh*uf+8*Gh;Wh=uc.ld,0<Gh&&(qr(Vc,qd,Al,ru+4,TA,Wh),Yo(OA,Zf,DA,fh,uf,ru+4,TA,Wh)),uc.La&&(ss(Vc,qd,Al,ru,TA,Wh),No(OA,Zf,DA,fh,uf,ru,TA,Wh)),0<ud&&(kr(Vc,qd,Al,ru+4,TA,Wh),vo(OA,Zf,DA,fh,uf,ru+4,TA,Wh)),uc.La&&(Mo(Vc,qd,Al,ru,TA,Wh),ks(OA,Zf,DA,fh,uf,ru,TA,Wh))}}if(Hi.ia&&alert("todo:DitherRow"),ji.put!=null){if(Ma=16*Tl,Tl=16*(Tl+1),cd?(ji.y=Hi.sa,ji.O=Hi.ta+Ha,ji.f=Hi.qa,ji.N=Hi.ra+hd,ji.ea=Hi.Ha,ji.W=Hi.Ia+hd):(Ma-=Ga,ji.y=ts,ji.O=ci,ji.f=os,ji.N=Yr,ji.ea=Pl,ji.W=bl),il||(Tl-=Ga),Tl>ji.o&&(Tl=ji.o),ji.F=null,ji.J=null,Hi.Fa!=null&&0<Hi.Fa.length&&Ma<Tl&&(ji.J=FA(Hi,ji,Ma,Tl-Ma),ji.F=Hi.mb,ji.F==null&&ji.F.length==0)){zr=Ba(Hi,3,"Could not decode alpha data.");break t}Ma<ji.j&&(Ga=ji.j-Ma,Ma=ji.j,wt(!(1&Ga)),ji.O+=Hi.R*Ga,ji.N+=Hi.B*(Ga>>1),ji.W+=Hi.B*(Ga>>1),ji.F!=null&&(ji.J+=ji.width*Ga)),Ma<Tl&&(ji.O+=ji.v,ji.N+=ji.v>>1,ji.W+=ji.v>>1,ji.F!=null&&(ji.J+=ji.v),ji.ka=Ma-ji.j,ji.U=ji.va-ji.v,ji.T=Tl-Ma,zr=ji.put(ji))}Nr+1!=Hi.Ic||il||(Ht(Hi.sa,Hi.ta-lo,ts,ci+16*Hi.R,lo),Ht(Hi.qa,Hi.ra-as,os,Yr+8*Hi.B,as),Ht(Hi.Ha,Hi.Ia-as,Pl,bl+8*Hi.B,as))}if(!zr)return Ba(Ni,6,"Output aborted.")}return 1}(St,Qt)),Qt.bc!=null&&Qt.bc(Qt),de&=1}return de?(St.cb=0,de):0}function Ih(St,Qt,de,Ee,sn){sn=St[Qt+de+32*Ee]+(sn>>3),St[Qt+de+32*Ee]=-256&sn?0>sn?0:255:sn}function _n(St,Qt,de,Ee,sn,hn){Ih(St,Qt,0,de,Ee+sn),Ih(St,Qt,1,de,Ee+hn),Ih(St,Qt,2,de,Ee-hn),Ih(St,Qt,3,de,Ee-sn)}function Ru(St){return(20091*St>>16)+St}function kh(St,Qt,de,Ee){var sn,hn=0,cn=Yt(16);for(sn=0;4>sn;++sn){var xn=St[Qt+0]+St[Qt+8],Nn=St[Qt+0]-St[Qt+8],zn=(35468*St[Qt+4]>>16)-Ru(St[Qt+12]),fi=Ru(St[Qt+4])+(35468*St[Qt+12]>>16);cn[hn+0]=xn+fi,cn[hn+1]=Nn+zn,cn[hn+2]=Nn-zn,cn[hn+3]=xn-fi,hn+=4,Qt++}for(sn=hn=0;4>sn;++sn)xn=(St=cn[hn+0]+4)+cn[hn+8],Nn=St-cn[hn+8],zn=(35468*cn[hn+4]>>16)-Ru(cn[hn+12]),Ih(de,Ee,0,0,xn+(fi=Ru(cn[hn+4])+(35468*cn[hn+12]>>16))),Ih(de,Ee,1,0,Nn+zn),Ih(de,Ee,2,0,Nn-zn),Ih(de,Ee,3,0,xn-fi),hn++,Ee+=32}function lA(St,Qt,de,Ee){var sn=St[Qt+0]+4,hn=35468*St[Qt+4]>>16,cn=Ru(St[Qt+4]),xn=35468*St[Qt+1]>>16;_n(de,Ee,0,sn+cn,St=Ru(St[Qt+1]),xn),_n(de,Ee,1,sn+hn,St,xn),_n(de,Ee,2,sn-hn,St,xn),_n(de,Ee,3,sn-cn,St,xn)}function nd(St,Qt,de,Ee,sn){kh(St,Qt,de,Ee),sn&&kh(St,Qt+16,de,Ee+4)}function gc(St,Qt,de,Ee){oi(St,Qt+0,de,Ee,1),oi(St,Qt+32,de,Ee+128,1)}function xd(St,Qt,de,Ee){var sn;for(St=St[Qt+0]+4,sn=0;4>sn;++sn)for(Qt=0;4>Qt;++Qt)Ih(de,Ee,Qt,sn,St)}function SA(St,Qt,de,Ee){St[Qt+0]&&bi(St,Qt+0,de,Ee),St[Qt+16]&&bi(St,Qt+16,de,Ee+4),St[Qt+32]&&bi(St,Qt+32,de,Ee+128),St[Qt+48]&&bi(St,Qt+48,de,Ee+128+4)}function Lu(St,Qt,de,Ee){var sn,hn=Yt(16);for(sn=0;4>sn;++sn){var cn=St[Qt+0+sn]+St[Qt+12+sn],xn=St[Qt+4+sn]+St[Qt+8+sn],Nn=St[Qt+4+sn]-St[Qt+8+sn],zn=St[Qt+0+sn]-St[Qt+12+sn];hn[0+sn]=cn+xn,hn[8+sn]=cn-xn,hn[4+sn]=zn+Nn,hn[12+sn]=zn-Nn}for(sn=0;4>sn;++sn)cn=(St=hn[0+4*sn]+3)+hn[3+4*sn],xn=hn[1+4*sn]+hn[2+4*sn],Nn=hn[1+4*sn]-hn[2+4*sn],zn=St-hn[3+4*sn],de[Ee+0]=cn+xn>>3,de[Ee+16]=zn+Nn>>3,de[Ee+32]=cn-xn>>3,de[Ee+48]=zn-Nn>>3,Ee+=64}function jc(St,Qt,de){var Ee,sn=Qt-32,hn=Hs,cn=255-St[sn-1];for(Ee=0;Ee<de;++Ee){var xn,Nn=hn,zn=cn+St[Qt-1];for(xn=0;xn<de;++xn)St[Qt+xn]=Nn[zn+St[sn+xn]];Qt+=32}}function Kd(St,Qt){jc(St,Qt,4)}function id(St,Qt){jc(St,Qt,8)}function CA(St,Qt){jc(St,Qt,16)}function Uc(St,Qt){var de;for(de=0;16>de;++de)Ht(St,Qt+32*de,St,Qt-32,16)}function Sd(St,Qt){var de;for(de=16;0<de;--de)ie(St,Qt,St[Qt-1],16),Qt+=32}function Yu(St,Qt,de){var Ee;for(Ee=0;16>Ee;++Ee)ie(Qt,de+32*Ee,St,16)}function sh(St,Qt){var de,Ee=16;for(de=0;16>de;++de)Ee+=St[Qt-1+32*de]+St[Qt+de-32];Yu(Ee>>5,St,Qt)}function Wu(St,Qt){var de,Ee=8;for(de=0;16>de;++de)Ee+=St[Qt-1+32*de];Yu(Ee>>4,St,Qt)}function BA(St,Qt){var de,Ee=8;for(de=0;16>de;++de)Ee+=St[Qt+de-32];Yu(Ee>>4,St,Qt)}function Kh(St,Qt){Yu(128,St,Qt)}function na(St,Qt,de){return St+2*Qt+de+2>>2}function Cd(St,Qt){var de,Ee=Qt-32;for(Ee=new Uint8Array([na(St[Ee-1],St[Ee+0],St[Ee+1]),na(St[Ee+0],St[Ee+1],St[Ee+2]),na(St[Ee+1],St[Ee+2],St[Ee+3]),na(St[Ee+2],St[Ee+3],St[Ee+4])]),de=0;4>de;++de)Ht(St,Qt+32*de,Ee,0,Ee.length)}function rd(St,Qt){var de=St[Qt-1],Ee=St[Qt-1+32],sn=St[Qt-1+64],hn=St[Qt-1+96];Xi(St,Qt+0,16843009*na(St[Qt-1-32],de,Ee)),Xi(St,Qt+32,16843009*na(de,Ee,sn)),Xi(St,Qt+64,16843009*na(Ee,sn,hn)),Xi(St,Qt+96,16843009*na(sn,hn,hn))}function mu(St,Qt){var de,Ee=4;for(de=0;4>de;++de)Ee+=St[Qt+de-32]+St[Qt-1+32*de];for(Ee>>=3,de=0;4>de;++de)ie(St,Qt+32*de,Ee,4)}function Gd(St,Qt){var de=St[Qt-1+0],Ee=St[Qt-1+32],sn=St[Qt-1+64],hn=St[Qt-1-32],cn=St[Qt+0-32],xn=St[Qt+1-32],Nn=St[Qt+2-32],zn=St[Qt+3-32];St[Qt+0+96]=na(Ee,sn,St[Qt-1+96]),St[Qt+1+96]=St[Qt+0+64]=na(de,Ee,sn),St[Qt+2+96]=St[Qt+1+64]=St[Qt+0+32]=na(hn,de,Ee),St[Qt+3+96]=St[Qt+2+64]=St[Qt+1+32]=St[Qt+0+0]=na(cn,hn,de),St[Qt+3+64]=St[Qt+2+32]=St[Qt+1+0]=na(xn,cn,hn),St[Qt+3+32]=St[Qt+2+0]=na(Nn,xn,cn),St[Qt+3+0]=na(zn,Nn,xn)}function Wd(St,Qt){var de=St[Qt+1-32],Ee=St[Qt+2-32],sn=St[Qt+3-32],hn=St[Qt+4-32],cn=St[Qt+5-32],xn=St[Qt+6-32],Nn=St[Qt+7-32];St[Qt+0+0]=na(St[Qt+0-32],de,Ee),St[Qt+1+0]=St[Qt+0+32]=na(de,Ee,sn),St[Qt+2+0]=St[Qt+1+32]=St[Qt+0+64]=na(Ee,sn,hn),St[Qt+3+0]=St[Qt+2+32]=St[Qt+1+64]=St[Qt+0+96]=na(sn,hn,cn),St[Qt+3+32]=St[Qt+2+64]=St[Qt+1+96]=na(hn,cn,xn),St[Qt+3+64]=St[Qt+2+96]=na(cn,xn,Nn),St[Qt+3+96]=na(xn,Nn,Nn)}function Ju(St,Qt){var de=St[Qt-1+0],Ee=St[Qt-1+32],sn=St[Qt-1+64],hn=St[Qt-1-32],cn=St[Qt+0-32],xn=St[Qt+1-32],Nn=St[Qt+2-32],zn=St[Qt+3-32];St[Qt+0+0]=St[Qt+1+64]=hn+cn+1>>1,St[Qt+1+0]=St[Qt+2+64]=cn+xn+1>>1,St[Qt+2+0]=St[Qt+3+64]=xn+Nn+1>>1,St[Qt+3+0]=Nn+zn+1>>1,St[Qt+0+96]=na(sn,Ee,de),St[Qt+0+64]=na(Ee,de,hn),St[Qt+0+32]=St[Qt+1+96]=na(de,hn,cn),St[Qt+1+32]=St[Qt+2+96]=na(hn,cn,xn),St[Qt+2+32]=St[Qt+3+96]=na(cn,xn,Nn),St[Qt+3+32]=na(xn,Nn,zn)}function Rc(St,Qt){var de=St[Qt+0-32],Ee=St[Qt+1-32],sn=St[Qt+2-32],hn=St[Qt+3-32],cn=St[Qt+4-32],xn=St[Qt+5-32],Nn=St[Qt+6-32],zn=St[Qt+7-32];St[Qt+0+0]=de+Ee+1>>1,St[Qt+1+0]=St[Qt+0+64]=Ee+sn+1>>1,St[Qt+2+0]=St[Qt+1+64]=sn+hn+1>>1,St[Qt+3+0]=St[Qt+2+64]=hn+cn+1>>1,St[Qt+0+32]=na(de,Ee,sn),St[Qt+1+32]=St[Qt+0+96]=na(Ee,sn,hn),St[Qt+2+32]=St[Qt+1+96]=na(sn,hn,cn),St[Qt+3+32]=St[Qt+2+96]=na(hn,cn,xn),St[Qt+3+64]=na(cn,xn,Nn),St[Qt+3+96]=na(xn,Nn,zn)}function Bd(St,Qt){var de=St[Qt-1+0],Ee=St[Qt-1+32],sn=St[Qt-1+64],hn=St[Qt-1+96];St[Qt+0+0]=de+Ee+1>>1,St[Qt+2+0]=St[Qt+0+32]=Ee+sn+1>>1,St[Qt+2+32]=St[Qt+0+64]=sn+hn+1>>1,St[Qt+1+0]=na(de,Ee,sn),St[Qt+3+0]=St[Qt+1+32]=na(Ee,sn,hn),St[Qt+3+32]=St[Qt+1+64]=na(sn,hn,hn),St[Qt+3+64]=St[Qt+2+64]=St[Qt+0+96]=St[Qt+1+96]=St[Qt+2+96]=St[Qt+3+96]=hn}function Vd(St,Qt){var de=St[Qt-1+0],Ee=St[Qt-1+32],sn=St[Qt-1+64],hn=St[Qt-1+96],cn=St[Qt-1-32],xn=St[Qt+0-32],Nn=St[Qt+1-32],zn=St[Qt+2-32];St[Qt+0+0]=St[Qt+2+32]=de+cn+1>>1,St[Qt+0+32]=St[Qt+2+64]=Ee+de+1>>1,St[Qt+0+64]=St[Qt+2+96]=sn+Ee+1>>1,St[Qt+0+96]=hn+sn+1>>1,St[Qt+3+0]=na(xn,Nn,zn),St[Qt+2+0]=na(cn,xn,Nn),St[Qt+1+0]=St[Qt+3+32]=na(de,cn,xn),St[Qt+1+32]=St[Qt+3+64]=na(Ee,de,cn),St[Qt+1+64]=St[Qt+3+96]=na(sn,Ee,de),St[Qt+1+96]=na(hn,sn,Ee)}function uu(St,Qt){var de;for(de=0;8>de;++de)Ht(St,Qt+32*de,St,Qt-32,8)}function vu(St,Qt){var de;for(de=0;8>de;++de)ie(St,Qt,St[Qt-1],8),Qt+=32}function _c(St,Qt,de){var Ee;for(Ee=0;8>Ee;++Ee)ie(Qt,de+32*Ee,St,8)}function Rl(St,Qt){var de,Ee=8;for(de=0;8>de;++de)Ee+=St[Qt+de-32]+St[Qt-1+32*de];_c(Ee>>4,St,Qt)}function Oa(St,Qt){var de,Ee=4;for(de=0;8>de;++de)Ee+=St[Qt+de-32];_c(Ee>>3,St,Qt)}function $a(St,Qt){var de,Ee=4;for(de=0;8>de;++de)Ee+=St[Qt-1+32*de];_c(Ee>>3,St,Qt)}function Mu(St,Qt){_c(128,St,Qt)}function Ah(St,Qt,de){var Ee=St[Qt-de],sn=St[Qt+0],hn=3*(sn-Ee)+lh[1020+St[Qt-2*de]-St[Qt+de]],cn=Da[112+(hn+4>>3)];St[Qt-de]=Hs[255+Ee+Da[112+(hn+3>>3)]],St[Qt+0]=Hs[255+sn-cn]}function Ph(St,Qt,de,Ee){var sn=St[Qt+0],hn=St[Qt+de];return wu[255+St[Qt-2*de]-St[Qt-de]]>Ee||wu[255+hn-sn]>Ee}function Zd(St,Qt,de,Ee){return 4*wu[255+St[Qt-de]-St[Qt+0]]+wu[255+St[Qt-2*de]-St[Qt+de]]<=Ee}function Bc(St,Qt,de,Ee,sn){var hn=St[Qt-3*de],cn=St[Qt-2*de],xn=St[Qt-de],Nn=St[Qt+0],zn=St[Qt+de],fi=St[Qt+2*de],$i=St[Qt+3*de];return 4*wu[255+xn-Nn]+wu[255+cn-zn]>Ee?0:wu[255+St[Qt-4*de]-hn]<=sn&&wu[255+hn-cn]<=sn&&wu[255+cn-xn]<=sn&&wu[255+$i-fi]<=sn&&wu[255+fi-zn]<=sn&&wu[255+zn-Nn]<=sn}function Pd(St,Qt,de,Ee){var sn=2*Ee+1;for(Ee=0;16>Ee;++Ee)Zd(St,Qt+Ee,de,sn)&&Ah(St,Qt+Ee,de)}function Vu(St,Qt,de,Ee){var sn=2*Ee+1;for(Ee=0;16>Ee;++Ee)Zd(St,Qt+Ee*de,1,sn)&&Ah(St,Qt+Ee*de,1)}function yh(St,Qt,de,Ee){var sn;for(sn=3;0<sn;--sn)Pd(St,Qt+=4*de,de,Ee)}function PA(St,Qt,de,Ee){var sn;for(sn=3;0<sn;--sn)Vu(St,Qt+=4,de,Ee)}function Hc(St,Qt,de,Ee,sn,hn,cn,xn){for(hn=2*hn+1;0<sn--;){if(Bc(St,Qt,de,hn,cn))if(Ph(St,Qt,de,xn))Ah(St,Qt,de);else{var Nn=St,zn=Qt,fi=de,$i=Nn[zn-2*fi],Yi=Nn[zn-fi],Ni=Nn[zn+0],Kr=Nn[zn+fi],Nr=Nn[zn+2*fi],Hi=27*(zr=lh[1020+3*(Ni-Yi)+lh[1020+$i-Kr]])+63>>7,ji=18*zr+63>>7,zr=9*zr+63>>7;Nn[zn-3*fi]=Hs[255+Nn[zn-3*fi]+zr],Nn[zn-2*fi]=Hs[255+$i+ji],Nn[zn-fi]=Hs[255+Yi+Hi],Nn[zn+0]=Hs[255+Ni-Hi],Nn[zn+fi]=Hs[255+Kr-ji],Nn[zn+2*fi]=Hs[255+Nr-zr]}Qt+=Ee}}function oc(St,Qt,de,Ee,sn,hn,cn,xn){for(hn=2*hn+1;0<sn--;){if(Bc(St,Qt,de,hn,cn))if(Ph(St,Qt,de,xn))Ah(St,Qt,de);else{var Nn=St,zn=Qt,fi=de,$i=Nn[zn-fi],Yi=Nn[zn+0],Ni=Nn[zn+fi],Kr=Da[112+((Nr=3*(Yi-$i))+4>>3)],Nr=Da[112+(Nr+3>>3)],Hi=Kr+1>>1;Nn[zn-2*fi]=Hs[255+Nn[zn-2*fi]+Hi],Nn[zn-fi]=Hs[255+$i+Nr],Nn[zn+0]=Hs[255+Yi-Kr],Nn[zn+fi]=Hs[255+Ni-Hi]}Qt+=Ee}}function Qc(St,Qt,de,Ee,sn,hn){Hc(St,Qt,de,1,16,Ee,sn,hn)}function od(St,Qt,de,Ee,sn,hn){Hc(St,Qt,1,de,16,Ee,sn,hn)}function lf(St,Qt,de,Ee,sn,hn){var cn;for(cn=3;0<cn;--cn)oc(St,Qt+=4*de,de,1,16,Ee,sn,hn)}function uA(St,Qt,de,Ee,sn,hn){var cn;for(cn=3;0<cn;--cn)oc(St,Qt+=4,1,de,16,Ee,sn,hn)}function Pc(St,Qt,de,Ee,sn,hn,cn,xn){Hc(St,Qt,sn,1,8,hn,cn,xn),Hc(de,Ee,sn,1,8,hn,cn,xn)}function KA(St,Qt,de,Ee,sn,hn,cn,xn){Hc(St,Qt,1,sn,8,hn,cn,xn),Hc(de,Ee,1,sn,8,hn,cn,xn)}function bd(St,Qt,de,Ee,sn,hn,cn,xn){oc(St,Qt+4*sn,sn,1,8,hn,cn,xn),oc(de,Ee+4*sn,sn,1,8,hn,cn,xn)}function zc(St,Qt,de,Ee,sn,hn,cn,xn){oc(St,Qt+4,1,sn,8,hn,cn,xn),oc(de,Ee+4,1,sn,8,hn,cn,xn)}function Kc(){this.ba=new fs,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Ds,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function hA(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Th(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function bA(){this.ua=0,this.Wa=new Xn,this.vb=new Xn,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new me,this.yc=new ri}function EA(){this.xb=this.a=0,this.l=new fa,this.ca=new fs,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Qe,this.Pb=0,this.wd=new Qe,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new bA,this.ab=0,this.gc=ge(4,Th),this.Oc=0}function cA(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new fa,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Xd(St,Qt,de,Ee,sn,hn,cn){for(St=St==null?0:St[Qt+0],Qt=0;Qt<cn;++Qt)sn[hn+Qt]=St+de[Ee+Qt]&255,St=sn[hn+Qt]}function Ed(St,Qt,de,Ee,sn,hn,cn){var xn;if(St==null)Xd(null,null,de,Ee,sn,hn,cn);else for(xn=0;xn<cn;++xn)sn[hn+xn]=St[Qt+xn]+de[Ee+xn]&255}function $d(St,Qt,de,Ee,sn,hn,cn){if(St==null)Xd(null,null,de,Ee,sn,hn,cn);else{var xn,Nn=St[Qt+0],zn=Nn,fi=Nn;for(xn=0;xn<cn;++xn)zn=fi+(Nn=St[Qt+xn])-zn,fi=de[Ee+xn]+(-256&zn?0>zn?0:255:zn)&255,zn=Nn,sn[hn+xn]=fi}}function FA(St,Qt,de,Ee){var sn=Qt.width,hn=Qt.o;if(wt(St!=null&&Qt!=null),0>de||0>=Ee||de+Ee>hn)return null;if(!St.Cc){if(St.ga==null){var cn;if(St.ga=new cA,(cn=St.ga==null)||(cn=Qt.width*Qt.o,wt(St.Gb.length==0),St.Gb=Yt(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 xn=St.Fa,Nn=St.P,zn=St.qc,fi=St.mb,$i=St.nb,Yi=Nn+1,Ni=zn-1,Kr=cn.l;if(wt(xn!=null&&fi!=null&&Qt!=null),Td[0]=null,Td[1]=Xd,Td[2]=Ed,Td[3]=$d,cn.ca=fi,cn.tb=$i,cn.c=Qt.width,cn.i=Qt.height,wt(0<cn.c&&0<cn.i),1>=zn)Qt=0;else if(cn.$a=xn[Nn+0]>>0&3,cn.Z=xn[Nn+0]>>2&3,cn.Lc=xn[Nn+0]>>4&3,Nn=xn[Nn+0]>>6&3,0>cn.$a||1<cn.$a||4<=cn.Z||1<cn.Lc||Nn)Qt=0;else if(Kr.put=Ql,Kr.ac=Rs,Kr.bc=Ll,Kr.ma=cn,Kr.width=Qt.width,Kr.height=Qt.height,Kr.Da=Qt.Da,Kr.v=Qt.v,Kr.va=Qt.va,Kr.j=Qt.j,Kr.o=Qt.o,cn.$a)t:{wt(cn.$a==1),Qt=Sl();e:for(;;){if(Qt==null){Qt=0;break t}if(wt(cn!=null),cn.mc=Qt,Qt.c=cn.c,Qt.i=cn.i,Qt.l=cn.l,Qt.l.ma=cn,Qt.l.width=cn.c,Qt.l.height=cn.i,Qt.a=0,rn(Qt.m,xn,Yi,Ni),!pu(cn.c,cn.i,1,Qt,null)||(Qt.ab==1&&Qt.gc[0].hc==3&&ka(Qt.s)?(cn.ic=1,xn=Qt.c*Qt.i,Qt.Ta=null,Qt.Ua=0,Qt.V=Yt(xn),Qt.Ba=0,Qt.V==null?(Qt.a=1,Qt=0):Qt=1):(cn.ic=0,Qt=au(Qt,cn.c)),!Qt))break e;Qt=1;break t}cn.mc=null,Qt=0}else Qt=Ni>=cn.c*cn.i;cn=!Qt}if(cn)return null;St.ga.Lc!=1?St.Ga=0:Ee=hn-de}wt(St.ga!=null),wt(de+Ee<=hn);t:{if(Qt=(xn=St.ga).c,hn=xn.l.o,xn.$a==0){if(Yi=St.rc,Ni=St.Vc,Kr=St.Fa,Nn=St.P+1+de*Qt,zn=St.mb,fi=St.nb+de*Qt,wt(Nn<=St.P+St.qc),xn.Z!=0)for(wt(Td[xn.Z]!=null),cn=0;cn<Ee;++cn)Td[xn.Z](Yi,Ni,Kr,Nn,zn,fi,Qt),Yi=zn,Ni=fi,fi+=Qt,Nn+=Qt;else for(cn=0;cn<Ee;++cn)Ht(zn,fi,Kr,Nn,Qt),Yi=zn,Ni=fi,fi+=Qt,Nn+=Qt;St.rc=Yi,St.Vc=Ni}else{if(wt(xn.mc!=null),Qt=de+Ee,wt((cn=xn.mc)!=null),wt(Qt<=cn.i),cn.C>=Qt)Qt=1;else if(xn.ic||hr(),xn.ic){xn=cn.V,Yi=cn.Ba,Ni=cn.c;var Nr=cn.i,Hi=(Kr=1,Nn=cn.$/Ni,zn=cn.$%Ni,fi=cn.m,$i=cn.s,cn.$),ji=Ni*Nr,zr=Ni*Qt,lo=$i.wc,Yr=Hi<zr?Kl($i,zn,Nn):null;wt(Hi<=ji),wt(Qt<=Nr),wt(ka($i));e:for(;;){for(;!fi.h&&Hi<zr;){if(zn&lo||(Yr=Kl($i,zn,Nn)),wt(Yr!=null),Zn(fi),256>(Nr=Ao(Yr.G[0],Yr.H[0],fi)))xn[Yi+Hi]=Nr,++Hi,++zn>=Ni&&(zn=0,++Nn<=Qt&&!(Nn%16)&&al(cn,Nn));else{if(!(280>Nr)){Kr=0;break e}Nr=ca(Nr-256,fi);var as,ts=Ao(Yr.G[4],Yr.H[4],fi);if(Zn(fi),!(Hi>=(ts=jl(Ni,ts=ca(ts,fi)))&&ji-Hi>=Nr)){Kr=0;break e}for(as=0;as<Nr;++as)xn[Yi+Hi+as]=xn[Yi+Hi+as-ts];for(Hi+=Nr,zn+=Nr;zn>=Ni;)zn-=Ni,++Nn<=Qt&&!(Nn%16)&&al(cn,Nn);Hi<zr&&zn&lo&&(Yr=Kl($i,zn,Nn))}wt(fi.h==mn(fi))}al(cn,Nn>Qt?Qt:Nn);break e}!Kr||fi.h&&Hi<ji?(Kr=0,cn.a=fi.h?5:3):cn.$=Hi,Qt=Kr}else Qt=_s(cn,cn.V,cn.Ba,cn.c,cn.i,Qt,Uu);if(!Qt){Ee=0;break t}}de+Ee>=hn&&(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+de*sn}function fe(St,Qt,de,Ee,sn,hn){for(;0<sn--;){var cn,xn=St,Nn=Qt+(de?1:0),zn=St,fi=Qt+(de?0:3);for(cn=0;cn<Ee;++cn){var $i=zn[fi+4*cn];$i!=255&&($i*=32897,xn[Nn+4*cn+0]=xn[Nn+4*cn+0]*$i>>23,xn[Nn+4*cn+1]=xn[Nn+4*cn+1]*$i>>23,xn[Nn+4*cn+2]=xn[Nn+4*cn+2]*$i>>23)}Qt+=hn}}function yn(St,Qt,de,Ee,sn){for(;0<Ee--;){var hn;for(hn=0;hn<de;++hn){var cn=St[Qt+2*hn+0],xn=15&(zn=St[Qt+2*hn+1]),Nn=4369*xn,zn=(240&zn|zn>>4)*Nn>>16;St[Qt+2*hn+0]=(240&cn|cn>>4)*Nn>>16&240|(15&cn|cn<<4)*Nn>>16>>4&15,St[Qt+2*hn+1]=240&zn|xn}Qt+=sn}}function wi(St,Qt,de,Ee,sn,hn,cn,xn){var Nn,zn,fi=255;for(zn=0;zn<sn;++zn){for(Nn=0;Nn<Ee;++Nn){var $i=St[Qt+Nn];hn[cn+4*Nn]=$i,fi&=$i}Qt+=de,cn+=xn}return fi!=255}function _i(St,Qt,de,Ee,sn){var hn;for(hn=0;hn<sn;++hn)de[Ee+hn]=St[Qt+hn]>>8}function hr(){yu=fe,La=yn,Sa=wi,vl=_i}function Ur(St,Qt,de){Ti[St]=function(Ee,sn,hn,cn,xn,Nn,zn,fi,$i,Yi,Ni,Kr,Nr,Hi,ji,zr,lo){var Yr,as=lo-1>>1,ts=xn[Nn+0]|zn[fi+0]<<16,ci=$i[Yi+0]|Ni[Kr+0]<<16;wt(Ee!=null);var os=3*ts+ci+131074>>2;for(Qt(Ee[sn+0],255&os,os>>16,Nr,Hi),hn!=null&&(os=3*ci+ts+131074>>2,Qt(hn[cn+0],255&os,os>>16,ji,zr)),Yr=1;Yr<=as;++Yr){var Pl=xn[Nn+Yr]|zn[fi+Yr]<<16,bl=$i[Yi+Yr]|Ni[Kr+Yr]<<16,il=ts+Pl+ci+bl+524296,Ga=il+2*(Pl+ci)>>3;os=Ga+ts>>1,ts=(il=il+2*(ts+bl)>>3)+Pl>>1,Qt(Ee[sn+2*Yr-1],255&os,os>>16,Nr,Hi+(2*Yr-1)*de),Qt(Ee[sn+2*Yr-0],255&ts,ts>>16,Nr,Hi+(2*Yr-0)*de),hn!=null&&(os=il+ci>>1,ts=Ga+bl>>1,Qt(hn[cn+2*Yr-1],255&os,os>>16,ji,zr+(2*Yr-1)*de),Qt(hn[cn+2*Yr+0],255&ts,ts>>16,ji,zr+(2*Yr+0)*de)),ts=Pl,ci=bl}1&lo||(os=3*ts+ci+131074>>2,Qt(Ee[sn+lo-1],255&os,os>>16,Nr,Hi+(lo-1)*de),hn!=null&&(os=3*ci+ts+131074>>2,Qt(hn[cn+lo-1],255&os,os>>16,ji,zr+(lo-1)*de)))}}function So(){Tu[hu]=XA,Tu[ad]=xf,Tu[lc]=lm,Tu[uh]=Us,Tu[wh]=Kg,Tu[kl]=Gg,Tu[th]=Wg,Tu[Wc]=xf,Tu[Jd]=Us,Tu[zf]=Kg,Tu[Eh]=Gg}function gs(St){return St&~Vg?0>St?0:255:St>>Cg}function $s(St,Qt){return gs((19077*St>>8)+(26149*Qt>>8)-14234)}function Pa(St,Qt,de){return gs((19077*St>>8)-(6419*Qt>>8)-(13320*de>>8)+8708)}function ba(St,Qt){return gs((19077*St>>8)+(33050*Qt>>8)-17685)}function ps(St,Qt,de,Ee,sn){Ee[sn+0]=$s(St,de),Ee[sn+1]=Pa(St,Qt,de),Ee[sn+2]=ba(St,Qt)}function nu(St,Qt,de,Ee,sn){Ee[sn+0]=ba(St,Qt),Ee[sn+1]=Pa(St,Qt,de),Ee[sn+2]=$s(St,de)}function iu(St,Qt,de,Ee,sn){var hn=Pa(St,Qt,de);Qt=hn<<3&224|ba(St,Qt)>>3,Ee[sn+0]=248&$s(St,de)|hn>>5,Ee[sn+1]=Qt}function Ka(St,Qt,de,Ee,sn){var hn=240&ba(St,Qt)|15;Ee[sn+0]=240&$s(St,de)|Pa(St,Qt,de)>>4,Ee[sn+1]=hn}function zl(St,Qt,de,Ee,sn){Ee[sn+0]=255,ps(St,Qt,de,Ee,sn+1)}function Nu(St,Qt,de,Ee,sn){nu(St,Qt,de,Ee,sn),Ee[sn+3]=255}function sc(St,Qt,de,Ee,sn){ps(St,Qt,de,Ee,sn),Ee[sn+3]=255}function bh(St,Qt){return 0>St?0:St>Qt?Qt:St}function ac(St,Qt,de){Ti[St]=function(Ee,sn,hn,cn,xn,Nn,zn,fi,$i){for(var Yi=fi+(-2&$i)*de;fi!=Yi;)Qt(Ee[sn+0],hn[cn+0],xn[Nn+0],zn,fi),Qt(Ee[sn+1],hn[cn+0],xn[Nn+0],zn,fi+de),sn+=2,++cn,++Nn,fi+=2*de;1&$i&&Qt(Ee[sn+0],hn[cn+0],xn[Nn+0],zn,fi)}}function LA(St,Qt,de){return de==0?St==0?Qt==0?6:5:Qt==0?4:0:de}function dA(St,Qt,de,Ee,sn){switch(St>>>30){case 3:oi(Qt,de,Ee,sn,0);break;case 2:pn(Qt,de,Ee,sn);break;case 1:bi(Qt,de,Ee,sn)}}function MA(St,Qt){var de,Ee,sn=Qt.M,hn=Qt.Nb,cn=St.oc,xn=St.pc+40,Nn=St.oc,zn=St.pc+584,fi=St.oc,$i=St.pc+600;for(de=0;16>de;++de)cn[xn+32*de-1]=129;for(de=0;8>de;++de)Nn[zn+32*de-1]=129,fi[$i+32*de-1]=129;for(0<sn?cn[xn-1-32]=Nn[zn-1-32]=fi[$i-1-32]=129:(ie(cn,xn-32-1,127,21),ie(Nn,zn-32-1,127,9),ie(fi,$i-32-1,127,9)),Ee=0;Ee<St.za;++Ee){var Yi=Qt.ya[Qt.aa+Ee];if(0<Ee){for(de=-1;16>de;++de)Ht(cn,xn+32*de-4,cn,xn+32*de+12,4);for(de=-1;8>de;++de)Ht(Nn,zn+32*de-4,Nn,zn+32*de+4,4),Ht(fi,$i+32*de-4,fi,$i+32*de+4,4)}var Ni=St.Gd,Kr=St.Hd+Ee,Nr=Yi.ad,Hi=Yi.Hc;if(0<sn&&(Ht(cn,xn-32,Ni[Kr].y,0,16),Ht(Nn,zn-32,Ni[Kr].f,0,8),Ht(fi,$i-32,Ni[Kr].ea,0,8)),Yi.Za){var ji=cn,zr=xn-32+16;for(0<sn&&(Ee>=St.za-1?ie(ji,zr,Ni[Kr].y[15],4):Ht(ji,zr,Ni[Kr+1].y,0,4)),de=0;4>de;de++)ji[zr+128+de]=ji[zr+256+de]=ji[zr+384+de]=ji[zr+0+de];for(de=0;16>de;++de,Hi<<=2)ji=cn,zr=xn+ni[de],Ec[Yi.Ob[de]](ji,zr),dA(Hi,Nr,16*+de,ji,zr)}else if(ji=LA(Ee,sn,Yi.Ob[0]),bc[ji](cn,xn),Hi!=0)for(de=0;16>de;++de,Hi<<=2)dA(Hi,Nr,16*+de,cn,xn+ni[de]);for(de=Yi.Gc,ji=LA(Ee,sn,Yi.Dd),Id[ji](Nn,zn),Id[ji](fi,$i),Hi=Nr,ji=Nn,zr=zn,255&(Yi=de>>0)&&(170&Yi?ki(Hi,256,ji,zr):yr(Hi,256,ji,zr)),Yi=fi,Hi=$i,255&(de>>=8)&&(170&de?ki(Nr,320,Yi,Hi):yr(Nr,320,Yi,Hi)),sn<St.Ub-1&&(Ht(Ni[Kr].y,0,cn,xn+480,16),Ht(Ni[Kr].f,0,Nn,zn+224,8),Ht(Ni[Kr].ea,0,fi,$i+224,8)),de=8*hn*St.B,Ni=St.sa,Kr=St.ta+16*Ee+16*hn*St.R,Nr=St.qa,Yi=St.ra+8*Ee+de,Hi=St.Ha,ji=St.Ia+8*Ee+de,de=0;16>de;++de)Ht(Ni,Kr+de*St.R,cn,xn+32*de,16);for(de=0;8>de;++de)Ht(Nr,Yi+de*St.B,Nn,zn+32*de,8),Ht(Hi,ji+de*St.B,fi,$i+32*de,8)}}function pc(St,Qt,de,Ee,sn,hn,cn,xn,Nn){var zn=[0],fi=[0],$i=0,Yi=Nn!=null?Nn.kd:0,Ni=Nn!=null?Nn:new hA;if(St==null||12>de)return 7;Ni.data=St,Ni.w=Qt,Ni.ha=de,Qt=[Qt],de=[de],Ni.gb=[Ni.gb];t:{var Kr=Qt,Nr=de,Hi=Ni.gb;if(wt(St!=null),wt(Nr!=null),wt(Hi!=null),Hi[0]=0,12<=Nr[0]&&!bt(St,Kr[0],"RIFF")){if(bt(St,Kr[0]+8,"WEBP")){Hi=3;break t}var ji=br(St,Kr[0]+4);if(12>ji||4294967286<ji){Hi=3;break t}if(Yi&&ji>Nr[0]-8){Hi=7;break t}Hi[0]=ji,Kr[0]+=12,Nr[0]-=12}Hi=0}if(Hi!=0)return Hi;for(ji=0<Ni.gb[0],de=de[0];;){t:{var zr=St;Nr=Qt,Hi=de;var lo=zn,Yr=fi,as=Kr=[0];if((os=$i=[$i])[0]=0,8>Hi[0])Hi=7;else{if(!bt(zr,Nr[0],"VP8X")){if(br(zr,Nr[0]+4)!=10){Hi=3;break t}if(18>Hi[0]){Hi=7;break t}var ts=br(zr,Nr[0]+8),ci=1+Ar(zr,Nr[0]+12);if(2147483648<=ci*(zr=1+Ar(zr,Nr[0]+15))){Hi=3;break t}as!=null&&(as[0]=ts),lo!=null&&(lo[0]=ci),Yr!=null&&(Yr[0]=zr),Nr[0]+=18,Hi[0]-=18,os[0]=1}Hi=0}}if($i=$i[0],Kr=Kr[0],Hi!=0)return Hi;if(Nr=!!(2&Kr),!ji&&$i)return 3;if(hn!=null&&(hn[0]=!!(16&Kr)),cn!=null&&(cn[0]=Nr),xn!=null&&(xn[0]=0),cn=zn[0],Kr=fi[0],$i&&Nr&&Nn==null){Hi=0;break}if(4>de){Hi=7;break}if(ji&&$i||!ji&&!$i&&!bt(St,Qt[0],"ALPH")){de=[de],Ni.na=[Ni.na],Ni.P=[Ni.P],Ni.Sa=[Ni.Sa];t:{ts=St,Hi=Qt,ji=de;var os=Ni.gb;lo=Ni.na,Yr=Ni.P,as=Ni.Sa,ci=22,wt(ts!=null),wt(ji!=null),zr=Hi[0];var Pl=ji[0];for(wt(lo!=null),wt(as!=null),lo[0]=null,Yr[0]=null,as[0]=0;;){if(Hi[0]=zr,ji[0]=Pl,8>Pl){Hi=7;break t}var bl=br(ts,zr+4);if(4294967286<bl){Hi=3;break t}var il=8+bl+1&-2;if(ci+=il,0<os&&ci>os){Hi=3;break t}if(!bt(ts,zr,"VP8 ")||!bt(ts,zr,"VP8L")){Hi=0;break t}if(Pl[0]<il){Hi=7;break t}bt(ts,zr,"ALPH")||(lo[0]=ts,Yr[0]=zr+8,as[0]=bl),zr+=il,Pl-=il}}if(de=de[0],Ni.na=Ni.na[0],Ni.P=Ni.P[0],Ni.Sa=Ni.Sa[0],Hi!=0)break}de=[de],Ni.Ja=[Ni.Ja],Ni.xa=[Ni.xa];t:if(os=St,Hi=Qt,ji=de,lo=Ni.gb[0],Yr=Ni.Ja,as=Ni.xa,ts=Hi[0],zr=!bt(os,ts,"VP8 "),ci=!bt(os,ts,"VP8L"),wt(os!=null),wt(ji!=null),wt(Yr!=null),wt(as!=null),8>ji[0])Hi=7;else{if(zr||ci){if(os=br(os,ts+4),12<=lo&&os>lo-12){Hi=3;break t}if(Yi&&os>ji[0]-8){Hi=7;break t}Yr[0]=os,Hi[0]+=8,ji[0]-=8,as[0]=ci}else as[0]=5<=ji[0]&&os[ts+0]==47&&!(os[ts+4]>>5),Yr[0]=ji[0];Hi=0}if(de=de[0],Ni.Ja=Ni.Ja[0],Ni.xa=Ni.xa[0],Qt=Qt[0],Hi!=0)break;if(4294967286<Ni.Ja)return 3;if(xn==null||Nr||(xn[0]=Ni.xa?2:1),cn=[cn],Kr=[Kr],Ni.xa){if(5>de){Hi=7;break}xn=cn,Yi=Kr,Nr=hn,St==null||5>de?St=0:5<=de&&St[Qt+0]==47&&!(St[Qt+4]>>5)?(ji=[0],os=[0],lo=[0],rn(Yr=new Qe,St,Qt,de),Fs(Yr,ji,os,lo)?(xn!=null&&(xn[0]=ji[0]),Yi!=null&&(Yi[0]=os[0]),Nr!=null&&(Nr[0]=lo[0]),St=1):St=0):St=0}else{if(10>de){Hi=7;break}xn=Kr,St==null||10>de||!pl(St,Qt+3,de-3)?St=0:(Yi=St[Qt+0]|St[Qt+1]<<8|St[Qt+2]<<16,Nr=16383&(St[Qt+7]<<8|St[Qt+6]),St=16383&(St[Qt+9]<<8|St[Qt+8]),1&Yi||3<(Yi>>1&7)||!(Yi>>4&1)||Yi>>5>=Ni.Ja||!Nr||!St?St=0:(cn&&(cn[0]=Nr),xn&&(xn[0]=St),St=1))}if(!St||(cn=cn[0],Kr=Kr[0],$i&&(zn[0]!=cn||fi[0]!=Kr)))return 3;Nn!=null&&(Nn[0]=Ni,Nn.offset=Qt-Nn.w,wt(4294967286>Qt-Nn.w),wt(Nn.offset==Nn.ha-de));break}return Hi==0||Hi==7&&$i&&Nn==null?(hn!=null&&(hn[0]|=Ni.na!=null&&0<Ni.na.length),Ee!=null&&(Ee[0]=cn),sn!=null&&(sn[0]=Kr),0):Hi}function Fd(St,Qt,de){var Ee=Qt.width,sn=Qt.height,hn=0,cn=0,xn=Ee,Nn=sn;if(Qt.Da=St!=null&&0<St.Da,Qt.Da&&(xn=St.cd,Nn=St.bd,hn=St.v,cn=St.j,11>de||(hn&=-2,cn&=-2),0>hn||0>cn||0>=xn||0>=Nn||hn+xn>Ee||cn+Nn>sn))return 0;if(Qt.v=hn,Qt.j=cn,Qt.va=hn+xn,Qt.o=cn+Nn,Qt.U=xn,Qt.T=Nn,Qt.da=St!=null&&0<St.da,Qt.da){if(!Co(xn,Nn,de=[St.ib],hn=[St.hb]))return 0;Qt.ib=de[0],Qt.hb=hn[0]}return Qt.ob=St!=null&&St.ob,Qt.Kb=St==null||!St.Sd,Qt.da&&(Qt.ob=Qt.ib<3*Ee/4&&Qt.hb<3*sn/4,Qt.Kb=0),1}function Gc(St){if(St==null)return 2;if(11>St.S){var Qt=St.f.RGBA;Qt.fb+=(St.height-1)*Qt.A,Qt.A=-Qt.A}else Qt=St.f.kb,St=St.height,Qt.O+=(St-1)*Qt.fa,Qt.fa=-Qt.fa,Qt.N+=(St-1>>1)*Qt.Ab,Qt.Ab=-Qt.Ab,Qt.W+=(St-1>>1)*Qt.Db,Qt.Db=-Qt.Db,Qt.F!=null&&(Qt.J+=(St-1)*Qt.lb,Qt.lb=-Qt.lb);return 0}function ml(St,Qt,de,Ee){if(Ee==null||0>=St||0>=Qt)return 2;if(de!=null){if(de.Da){var sn=de.cd,hn=de.bd,cn=-2&de.v,xn=-2&de.j;if(0>cn||0>xn||0>=sn||0>=hn||cn+sn>St||xn+hn>Qt)return 2;St=sn,Qt=hn}if(de.da){if(!Co(St,Qt,sn=[de.ib],hn=[de.hb]))return 2;St=sn[0],Qt=hn[0]}}Ee.width=St,Ee.height=Qt;t:{var Nn=Ee.width,zn=Ee.height;if(St=Ee.S,0>=Nn||0>=zn||!(St>=hu&&13>St))St=2;else{if(0>=Ee.Rd&&Ee.sd==null){cn=hn=sn=Qt=0;var fi=(xn=Nn*lr[St])*zn;if(11>St||(hn=(zn+1)/2*(Qt=(Nn+1)/2),St==12&&(cn=(sn=Nn)*zn)),(zn=Yt(fi+2*hn+cn))==null){St=1;break t}Ee.sd=zn,11>St?((Nn=Ee.f.RGBA).eb=zn,Nn.fb=0,Nn.A=xn,Nn.size=fi):((Nn=Ee.f.kb).y=zn,Nn.O=0,Nn.fa=xn,Nn.Fd=fi,Nn.f=zn,Nn.N=0+fi,Nn.Ab=Qt,Nn.Cd=hn,Nn.ea=zn,Nn.W=0+fi+hn,Nn.Db=Qt,Nn.Ed=hn,St==12&&(Nn.F=zn,Nn.J=0+fi+2*hn),Nn.Tc=cn,Nn.lb=sn)}if(Qt=1,sn=Ee.S,hn=Ee.width,cn=Ee.height,sn>=hu&&13>sn)if(11>sn)St=Ee.f.RGBA,Qt&=(xn=Math.abs(St.A))*(cn-1)+hn<=St.size,Qt&=xn>=hn*lr[sn],Qt&=St.eb!=null;else{St=Ee.f.kb,xn=(hn+1)/2,fi=(cn+1)/2,Nn=Math.abs(St.fa),zn=Math.abs(St.Ab);var $i=Math.abs(St.Db),Yi=Math.abs(St.lb),Ni=Yi*(cn-1)+hn;Qt&=Nn*(cn-1)+hn<=St.Fd,Qt&=zn*(fi-1)+xn<=St.Cd,Qt=(Qt&=$i*(fi-1)+xn<=St.Ed)&Nn>=hn&zn>=xn&$i>=xn,Qt&=St.y!=null,Qt&=St.f!=null,Qt&=St.ea!=null,sn==12&&(Qt&=Yi>=hn,Qt&=Ni<=St.Tc,Qt&=St.F!=null)}else Qt=0;St=Qt?0:2}}return St!=0||de!=null&&de.fd&&(St=Gc(Ee)),St}var Iu=64,Yd=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Gl=24,Oh=32,mc=8,qu=[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];ar("Predictor0","PredictorAdd0"),Ti.Predictor0=function(){return 4278190080},Ti.Predictor1=function(St){return St},Ti.Predictor2=function(St,Qt,de){return Qt[de+0]},Ti.Predictor3=function(St,Qt,de){return Qt[de+1]},Ti.Predictor4=function(St,Qt,de){return Qt[de-1]},Ti.Predictor5=function(St,Qt,de){return pr(pr(St,Qt[de+1]),Qt[de+0])},Ti.Predictor6=function(St,Qt,de){return pr(St,Qt[de-1])},Ti.Predictor7=function(St,Qt,de){return pr(St,Qt[de+0])},Ti.Predictor8=function(St,Qt,de){return pr(Qt[de-1],Qt[de+0])},Ti.Predictor9=function(St,Qt,de){return pr(Qt[de+0],Qt[de+1])},Ti.Predictor10=function(St,Qt,de){return pr(pr(St,Qt[de-1]),pr(Qt[de+0],Qt[de+1]))},Ti.Predictor11=function(St,Qt,de){var Ee=Qt[de+0];return 0>=fo(Ee>>24&255,St>>24&255,(Qt=Qt[de-1])>>24&255)+fo(Ee>>16&255,St>>16&255,Qt>>16&255)+fo(Ee>>8&255,St>>8&255,Qt>>8&255)+fo(255&Ee,255&St,255&Qt)?Ee:St},Ti.Predictor12=function(St,Qt,de){var Ee=Qt[de+0];return(Vr((St>>24&255)+(Ee>>24&255)-((Qt=Qt[de-1])>>24&255))<<24|Vr((St>>16&255)+(Ee>>16&255)-(Qt>>16&255))<<16|Vr((St>>8&255)+(Ee>>8&255)-(Qt>>8&255))<<8|Vr((255&St)+(255&Ee)-(255&Qt)))>>>0},Ti.Predictor13=function(St,Qt,de){var Ee=Qt[de-1];return(co((St=pr(St,Qt[de+0]))>>24&255,Ee>>24&255)<<24|co(St>>16&255,Ee>>16&255)<<16|co(St>>8&255,Ee>>8&255)<<8|co(St>>0&255,Ee>>0&255))>>>0};var Wl=Ti.PredictorAdd0;Ti.PredictorAdd1=Rr,ar("Predictor2","PredictorAdd2"),ar("Predictor3","PredictorAdd3"),ar("Predictor4","PredictorAdd4"),ar("Predictor5","PredictorAdd5"),ar("Predictor6","PredictorAdd6"),ar("Predictor7","PredictorAdd7"),ar("Predictor8","PredictorAdd8"),ar("Predictor9","PredictorAdd9"),ar("Predictor10","PredictorAdd10"),ar("Predictor11","PredictorAdd11"),ar("Predictor12","PredictorAdd12"),ar("Predictor13","PredictorAdd13");var Ld=Ti.PredictorAdd2;ns("ColorIndexInverseTransform","MapARGB","32b",function(St){return St>>8&255},function(St){return St}),ns("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(St){return St},function(St){return St>>8&255});var Dh,ah=Ti.ColorIndexInverseTransform,sd=Ti.MapARGB,it=Ti.VP8LColorIndexInverseTransformAlpha,st=Ti.MapAlpha,vt=Ti.VP8LPredictorsAdd=[];vt.length=16,(Ti.VP8LPredictors=[]).length=16,(Ti.VP8LPredictorsAdd_C=[]).length=16,(Ti.VP8LPredictors_C=[]).length=16;var gt,Bt,Jt,Se,je,De,ln,oi,pn,ki,bi,yr,kr,qr,vo,Yo,Mo,ss,ks,No,ea,Bl,ku,dl,yu,La,Sa,vl,yl=Yt(511),Bo=Yt(2041),Ca=Yt(225),Nl=Yt(767),Il=0,lh=Bo,Da=Ca,Hs=Nl,wu=yl,hu=0,ad=1,lc=2,uh=3,wh=4,kl=5,th=6,Wc=7,Jd=8,zf=9,Eh=10,Sg=[2,3,7],Md=[3,3,11],yf=[280,256,256,256,40],wf=[0,1,1,1,0],GA=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],NA=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Kf=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],WA=8,Nd=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],_u=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],eh=null,Gf=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Sp=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],zg=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],VA=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],ZA=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],Wf=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Cp=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],bc=[],Ec=[],Id=[],ld=1,kd=2,Td=[],Tu=[];Ur("UpsampleRgbLinePair",ps,3),Ur("UpsampleBgrLinePair",nu,3),Ur("UpsampleRgbaLinePair",sc,4),Ur("UpsampleBgraLinePair",Nu,4),Ur("UpsampleArgbLinePair",zl,4),Ur("UpsampleRgba4444LinePair",Ka,2),Ur("UpsampleRgb565LinePair",iu,2);var XA=Ti.UpsampleRgbLinePair,lm=Ti.UpsampleBgrLinePair,xf=Ti.UpsampleRgbaLinePair,Us=Ti.UpsampleBgraLinePair,Kg=Ti.UpsampleArgbLinePair,Gg=Ti.UpsampleRgba4444LinePair,Wg=Ti.UpsampleRgb565LinePair,IA=16,kA=1<<IA-1,Fc=-227,Vf=482,Cg=6,Vg=(256<<Cg)-1,Dt=0,Tt=Yt(256),_t=Yt(256),Rt=Yt(256),Be=Yt(256),Ye=Yt(Vf-Fc),Fn=Yt(Vf-Fc);ac("YuvToRgbRow",ps,3),ac("YuvToBgrRow",nu,3),ac("YuvToRgbaRow",sc,4),ac("YuvToBgraRow",Nu,4),ac("YuvToArgbRow",zl,4),ac("YuvToRgba4444Row",Ka,2),ac("YuvToRgb565Row",iu,2);var ni=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Dn=[0,2,8],Ui=[8,7,6,4,4,2,2,2,1,1,1,1],zi=1;this.WebPDecodeRGBA=function(St,Qt,de,Ee,sn){var hn=ad,cn=new Kc,xn=new fs;cn.ba=xn,xn.S=hn,xn.width=[xn.width],xn.height=[xn.height];var Nn=xn.width,zn=xn.height,fi=new es;if(fi==null||St==null)var $i=2;else wt(fi!=null),$i=pc(St,Qt,de,fi.width,fi.height,fi.Pd,fi.Qd,fi.format,null);if($i!=0?Nn=0:(Nn!=null&&(Nn[0]=fi.width[0]),zn!=null&&(zn[0]=fi.height[0]),Nn=1),Nn){xn.width=xn.width[0],xn.height=xn.height[0],Ee!=null&&(Ee[0]=xn.width),sn!=null&&(sn[0]=xn.height);t:{if(Ee=new fa,(sn=new hA).data=St,sn.w=Qt,sn.ha=de,sn.kd=1,Qt=[0],wt(sn!=null),((St=pc(sn.data,sn.w,sn.ha,null,null,null,Qt,null,sn))==0||St==7)&&Qt[0]&&(St=4),(Qt=St)==0){if(wt(cn!=null),Ee.data=sn.data,Ee.w=sn.w+sn.offset,Ee.ha=sn.ha-sn.offset,Ee.put=Ql,Ee.ac=Rs,Ee.bc=Ll,Ee.ma=cn,sn.xa){if((St=Sl())==null){cn=1;break t}if(function(Yi,Ni){var Kr=[0],Nr=[0],Hi=[0];e:for(;;){if(Yi==null)return 0;if(Ni==null)return Yi.a=2,0;if(Yi.l=Ni,Yi.a=0,rn(Yi.m,Ni.data,Ni.w,Ni.ha),!Fs(Yi.m,Kr,Nr,Hi)){Yi.a=3;break e}if(Yi.xb=kd,Ni.width=Kr[0],Ni.height=Nr[0],!pu(Kr[0],Nr[0],1,Yi,null))break e;return 1}return wt(Yi.a!=0),0}(St,Ee)){if(Ee=(Qt=ml(Ee.width,Ee.height,cn.Oa,cn.ba))==0){e:{Ee=St;n:for(;;){if(Ee==null){Ee=0;break e}if(wt(Ee.s.yc!=null),wt(Ee.s.Ya!=null),wt(0<Ee.s.Wb),wt((de=Ee.l)!=null),wt((sn=de.ma)!=null),Ee.xb!=0){if(Ee.ca=sn.ba,Ee.tb=sn.tb,wt(Ee.ca!=null),!Fd(sn.Oa,de,uh)){Ee.a=2;break n}if(!au(Ee,de.width)||de.da)break n;if((de.da||Xs(Ee.ca.S))&&hr(),11>Ee.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),Ee.ca.f.kb.F!=null&&hr()),Ee.Pb&&0<Ee.s.ua&&Ee.s.vb.X==null&&!eo(Ee.s.vb,Ee.s.Wa.Xa)){Ee.a=1;break n}Ee.xb=0}if(!_s(Ee,Ee.V,Ee.Ba,Ee.c,Ee.i,de.o,la))break n;sn.Dc=Ee.Ma,Ee=1;break e}wt(Ee.a!=0),Ee=0}Ee=!Ee}Ee&&(Qt=St.a)}else Qt=St.a}else{if((St=new Cl)==null){cn=1;break t}if(St.Fa=sn.na,St.P=sn.P,St.qc=sn.Sa,ga(St,Ee)){if((Qt=ml(Ee.width,Ee.height,cn.Oa,cn.ba))==0){if(St.Aa=0,de=cn.Oa,wt((sn=St)!=null),de!=null){if(0<(Nn=0>(Nn=de.Md)?0:100<Nn?255:255*Nn/100)){for(zn=fi=0;4>zn;++zn)12>($i=sn.pb[zn]).lc&&($i.ia=Nn*Ui[0>$i.lc?0:$i.lc]>>3),fi|=$i.ia;fi&&(alert("todo:VP8InitRandom"),sn.ia=1)}sn.Ga=de.Id,100<sn.Ga?sn.Ga=100:0>sn.Ga&&(sn.Ga=0)}zh(St,Ee)||(Qt=St.a)}}else Qt=St.a}Qt==0&&cn.Oa!=null&&cn.Oa.fd&&(Qt=Gc(cn.ba))}cn=Qt}hn=cn!=0?null:11>hn?xn.f.RGBA.eb:xn.f.kb.y}else hn=null;return hn};var lr=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function $e(Ti,xr){for(var Ir="",$n=0;$n<4;$n++)Ir+=String.fromCharCode(Ti[xr++]);return Ir}function dn(Ti,xr){return(Ti[xr+0]<<0|Ti[xr+1]<<8|Ti[xr+2]<<16)>>>0}function fn(Ti,xr){return(Ti[xr+0]<<0|Ti[xr+1]<<8|Ti[xr+2]<<16|Ti[xr+3]<<24)>>>0}new be;var Pn=[0],Ke=[0],mi=[],Jn=new be,yi=Et,Un=function(Ti,xr){var Ir={},$n=0,ri=!1,pe=0,me=0;if(Ir.frames=[],!function(un,mn,Hn,Zn){for(var ii=0;ii<Zn;ii++)if(un[mn+ii]!=Hn.charCodeAt(ii))return!0;return!1}(Ti,xr,"RIFF",4)){var Xe,Je;for(fn(Ti,xr+=4),xr+=8;xr<Ti.length;){var vn=$e(Ti,xr),rn=fn(Ti,xr+=4);xr+=4;var kn=rn+(1&rn);switch(vn){case"VP8 ":case"VP8L":Ir.frames[$n]===void 0&&(Ir.frames[$n]={}),(Qe=Ir.frames[$n]).src_off=ri?me:xr-8,Qe.src_size=pe+rn+8,$n++,ri&&(ri=!1,pe=0,me=0);break;case"VP8X":(Qe=Ir.header={}).feature_flags=Ti[xr];var jn=xr+4;Qe.canvas_width=1+dn(Ti,jn),jn+=3,Qe.canvas_height=1+dn(Ti,jn),jn+=3;break;case"ALPH":ri=!0,pe=kn+8,me=xr-8;break;case"ANIM":(Qe=Ir.header).bgcolor=fn(Ti,xr),jn=xr+4,Qe.loop_count=(Xe=Ti)[(Je=jn)+0]<<0|Xe[Je+1]<<8,jn+=2;break;case"ANMF":var Yn,Qe;(Qe=Ir.frames[$n]={}).offset_x=2*dn(Ti,xr),xr+=3,Qe.offset_y=2*dn(Ti,xr),xr+=3,Qe.width=1+dn(Ti,xr),xr+=3,Qe.height=1+dn(Ti,xr),xr+=3,Qe.duration=dn(Ti,xr),xr+=3,Yn=Ti[xr++],Qe.dispose=1&Yn,Qe.blend=Yn>>1&1}vn!="ANMF"&&(xr+=kn)}return Ir}}(yi,0);Un.response=yi,Un.rgbaoutput=!0,Un.dataurl=!1;var di=Un.header?Un.header:null,Qi=Un.frames?Un.frames:null;if(di){di.loop_counter=di.loop_count,Pn=[di.canvas_height],Ke=[di.canvas_width];for(var ir=0;ir<Qi.length&&Qi[ir].blend!=0;ir++);}var Er=Qi[0],ao=Jn.WebPDecodeRGBA(yi,Er.src_off,Er.src_size,Ke,Pn);Er.rgba=ao,Er.imgwidth=Ke[0],Er.imgheight=Pn[0];for(var gr=0;gr<Ke[0]*Pn[0]*4;gr++)mi[gr]=ao[gr];return this.width=Ke,this.height=Pn,this.data=mi,this}(function(Et){var wt=function(){return typeof Tn=="function"},bt=function(Pn,Ke,mi,Jn){var yi=4,Un=ge;switch(Jn){case Et.image_compression.FAST:yi=1,Un=Yt;break;case Et.image_compression.MEDIUM:yi=6,Un=we;break;case Et.image_compression.SLOW:yi=9,Un=be}Pn=Ht(Pn,Ke,mi,Un);var di=Tn(Pn,{level:yi});return Et.__addimage__.arrayBufferToBinaryString(di)},Ht=function(Pn,Ke,mi,Jn){for(var yi,Un,di,Qi=Pn.length/Ke,ir=new Uint8Array(Pn.length+Qi),Er=dn(),ao=0;ao<Qi;ao+=1){if(di=ao*Ke,yi=Pn.subarray(di,di+Ke),Jn)ir.set(Jn(yi,mi,Un),di+ao);else{for(var gr,Ti=Er.length,xr=[];gr<Ti;gr+=1)xr[gr]=Er[gr](yi,mi,Un);var Ir=fn(xr.concat());ir.set(xr[Ir],di+ao)}Un=yi}return ir},ie=function(Pn){var Ke=Array.apply([],Pn);return Ke.unshift(0),Ke},Yt=function(Pn,Ke){var mi,Jn=[],yi=Pn.length;Jn[0]=1;for(var Un=0;Un<yi;Un+=1)mi=Pn[Un-Ke]||0,Jn[Un+1]=Pn[Un]-mi+256&255;return Jn},ge=function(Pn,Ke,mi){var Jn,yi=[],Un=Pn.length;yi[0]=2;for(var di=0;di<Un;di+=1)Jn=mi&&mi[di]||0,yi[di+1]=Pn[di]-Jn+256&255;return yi},we=function(Pn,Ke,mi){var Jn,yi,Un=[],di=Pn.length;Un[0]=3;for(var Qi=0;Qi<di;Qi+=1)Jn=Pn[Qi-Ke]||0,yi=mi&&mi[Qi]||0,Un[Qi+1]=Pn[Qi]+256-(Jn+yi>>>1)&255;return Un},be=function(Pn,Ke,mi){var Jn,yi,Un,di,Qi=[],ir=Pn.length;Qi[0]=4;for(var Er=0;Er<ir;Er+=1)Jn=Pn[Er-Ke]||0,yi=mi&&mi[Er]||0,Un=mi&&mi[Er-Ke]||0,di=$e(Jn,yi,Un),Qi[Er+1]=Pn[Er]-di+256&255;return Qi},$e=function(Pn,Ke,mi){if(Pn===Ke&&Ke===mi)return Pn;var Jn=Math.abs(Ke-mi),yi=Math.abs(Pn-mi),Un=Math.abs(Pn+Ke-mi-mi);return Jn<=yi&&Jn<=Un?Pn:yi<=Un?Ke:mi},dn=function(){return[ie,Yt,ge,we,be]},fn=function(Pn){var Ke=Pn.map(function(mi){return mi.reduce(function(Jn,yi){return Jn+Math.abs(yi)},0)});return Ke.indexOf(Math.min.apply(null,Ke))};Et.processPNG=function(Pn,Ke,mi,Jn){var yi,Un,di,Qi,ir,Er,ao,gr,Ti,xr,Ir,$n,ri,pe,me,Xe=this.decode.FLATE_DECODE,Je="";if(this.__addimage__.isArrayBuffer(Pn)&&(Pn=new Uint8Array(Pn)),this.__addimage__.isArrayBufferView(Pn)){if(Pn=(di=new sA(Pn)).imgData,Un=di.bits,yi=di.colorSpace,ir=di.colors,[4,6].indexOf(di.colorType)!==-1){if(di.bits===8){Ti=(gr=di.pixelBitlength==32?new Uint32Array(di.decodePixels().buffer):di.pixelBitlength==16?new Uint16Array(di.decodePixels().buffer):new Uint8Array(di.decodePixels().buffer)).length,Ir=new Uint8Array(Ti*di.colors),xr=new Uint8Array(Ti);var vn,rn=di.pixelBitlength-di.bits;for(pe=0,me=0;pe<Ti;pe++){for(ri=gr[pe],vn=0;vn<rn;)Ir[me++]=ri>>>vn&255,vn+=di.bits;xr[pe]=ri>>>vn&255}}if(di.bits===16){Ti=(gr=new Uint32Array(di.decodePixels().buffer)).length,Ir=new Uint8Array(Ti*(32/di.pixelBitlength)*di.colors),xr=new Uint8Array(Ti*(32/di.pixelBitlength)),$n=di.colors>1,pe=0,me=0;for(var kn=0;pe<Ti;)ri=gr[pe++],Ir[me++]=ri>>>0&255,$n&&(Ir[me++]=ri>>>16&255,ri=gr[pe++],Ir[me++]=ri>>>0&255),xr[kn++]=ri>>>16&255;Un=8}Jn!==Et.image_compression.NONE&&wt()?(Pn=bt(Ir,di.width*di.colors,di.colors,Jn),ao=bt(xr,di.width,1,Jn)):(Pn=Ir,ao=xr,Xe=void 0)}if(di.colorType===3&&(yi=this.color_spaces.INDEXED,Er=di.palette,di.transparency.indexed)){var jn=di.transparency.indexed,Yn=0;for(pe=0,Ti=jn.length;pe<Ti;++pe)Yn+=jn[pe];if((Yn/=255)===Ti-1&&jn.indexOf(0)!==-1)Qi=[jn.indexOf(0)];else if(Yn!==Ti){for(gr=di.decodePixels(),xr=new Uint8Array(gr.length),pe=0,Ti=gr.length;pe<Ti;pe++)xr[pe]=jn[gr[pe]];ao=bt(xr,di.width,1)}}var Qe=function(un){var mn;switch(un){case Et.image_compression.FAST:mn=11;break;case Et.image_compression.MEDIUM:mn=13;break;case Et.image_compression.SLOW:mn=14;break;default:mn=12}return mn}(Jn);return Xe===this.decode.FLATE_DECODE&&(Je="/Predictor "+Qe+" "),Je+="/Colors "+ir+" /BitsPerComponent "+Un+" /Columns "+di.width,(this.__addimage__.isArrayBuffer(Pn)||this.__addimage__.isArrayBufferView(Pn))&&(Pn=this.__addimage__.arrayBufferToBinaryString(Pn)),(ao&&this.__addimage__.isArrayBuffer(ao)||this.__addimage__.isArrayBufferView(ao))&&(ao=this.__addimage__.arrayBufferToBinaryString(ao)),{alias:mi,data:Pn,index:Ke,filter:Xe,decodeParameters:Je,transparency:Qi,palette:Er,sMask:ao,predictor:Qe,width:di.width,height:di.height,bitsPerComponent:Un,colorSpace:yi}}}})(Ro.API),function(Et){Et.processGIF89A=function(wt,bt,Ht,ie){var Yt=new En(wt),ge=Yt.width,we=Yt.height,be=[];Yt.decodeAndBlitFrameRGBA(0,be);var $e={data:be,width:ge,height:we},dn=new aA(100).encode($e,100);return Et.processJPEG.call(this,dn,bt,Ht,ie)},Et.processGIF87A=Et.processGIF89A}(Ro.API),nc.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 wt=0;wt<Et;wt++){var bt=this.datav.getUint8(this.pos++,!0),Ht=this.datav.getUint8(this.pos++,!0),ie=this.datav.getUint8(this.pos++,!0),Yt=this.datav.getUint8(this.pos++,!0);this.palette[wt]={red:ie,green:Ht,blue:bt,quad:Yt}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},nc.prototype.parseBGR=function(){this.pos=this.offset;try{var Et="bit"+this.bitPP,wt=this.width*this.height*4;this.data=new Uint8Array(wt),this[Et]()}catch(bt){wo.log("bit decode error:"+bt)}},nc.prototype.bit1=function(){var Et,wt=Math.ceil(this.width/8),bt=wt%4;for(Et=this.height-1;Et>=0;Et--){for(var Ht=this.bottom_up?Et:this.height-1-Et,ie=0;ie<wt;ie++)for(var Yt=this.datav.getUint8(this.pos++,!0),ge=Ht*this.width*4+8*ie*4,we=0;we<8&&8*ie+we<this.width;we++){var be=this.palette[Yt>>7-we&1];this.data[ge+4*we]=be.blue,this.data[ge+4*we+1]=be.green,this.data[ge+4*we+2]=be.red,this.data[ge+4*we+3]=255}bt!==0&&(this.pos+=4-bt)}},nc.prototype.bit4=function(){for(var Et=Math.ceil(this.width/2),wt=Et%4,bt=this.height-1;bt>=0;bt--){for(var Ht=this.bottom_up?bt:this.height-1-bt,ie=0;ie<Et;ie++){var Yt=this.datav.getUint8(this.pos++,!0),ge=Ht*this.width*4+2*ie*4,we=Yt>>4,be=15&Yt,$e=this.palette[we];if(this.data[ge]=$e.blue,this.data[ge+1]=$e.green,this.data[ge+2]=$e.red,this.data[ge+3]=255,2*ie+1>=this.width)break;$e=this.palette[be],this.data[ge+4]=$e.blue,this.data[ge+4+1]=$e.green,this.data[ge+4+2]=$e.red,this.data[ge+4+3]=255}wt!==0&&(this.pos+=4-wt)}},nc.prototype.bit8=function(){for(var Et=this.width%4,wt=this.height-1;wt>=0;wt--){for(var bt=this.bottom_up?wt:this.height-1-wt,Ht=0;Ht<this.width;Ht++){var ie=this.datav.getUint8(this.pos++,!0),Yt=bt*this.width*4+4*Ht;if(ie<this.palette.length){var ge=this.palette[ie];this.data[Yt]=ge.red,this.data[Yt+1]=ge.green,this.data[Yt+2]=ge.blue,this.data[Yt+3]=255}else this.data[Yt]=255,this.data[Yt+1]=255,this.data[Yt+2]=255,this.data[Yt+3]=255}Et!==0&&(this.pos+=4-Et)}},nc.prototype.bit15=function(){for(var Et=this.width%3,wt=parseInt("11111",2),bt=this.height-1;bt>=0;bt--){for(var Ht=this.bottom_up?bt:this.height-1-bt,ie=0;ie<this.width;ie++){var Yt=this.datav.getUint16(this.pos,!0);this.pos+=2;var ge=(Yt&wt)/wt*255|0,we=(Yt>>5&wt)/wt*255|0,be=(Yt>>10&wt)/wt*255|0,$e=Yt>>15?255:0,dn=Ht*this.width*4+4*ie;this.data[dn]=be,this.data[dn+1]=we,this.data[dn+2]=ge,this.data[dn+3]=$e}this.pos+=Et}},nc.prototype.bit16=function(){for(var Et=this.width%3,wt=parseInt("11111",2),bt=parseInt("111111",2),Ht=this.height-1;Ht>=0;Ht--){for(var ie=this.bottom_up?Ht:this.height-1-Ht,Yt=0;Yt<this.width;Yt++){var ge=this.datav.getUint16(this.pos,!0);this.pos+=2;var we=(ge&wt)/wt*255|0,be=(ge>>5&bt)/bt*255|0,$e=(ge>>11)/wt*255|0,dn=ie*this.width*4+4*Yt;this.data[dn]=$e,this.data[dn+1]=be,this.data[dn+2]=we,this.data[dn+3]=255}this.pos+=Et}},nc.prototype.bit24=function(){for(var Et=this.height-1;Et>=0;Et--){for(var wt=this.bottom_up?Et:this.height-1-Et,bt=0;bt<this.width;bt++){var Ht=this.datav.getUint8(this.pos++,!0),ie=this.datav.getUint8(this.pos++,!0),Yt=this.datav.getUint8(this.pos++,!0),ge=wt*this.width*4+4*bt;this.data[ge]=Yt,this.data[ge+1]=ie,this.data[ge+2]=Ht,this.data[ge+3]=255}this.pos+=this.width%4}},nc.prototype.bit32=function(){for(var Et=this.height-1;Et>=0;Et--)for(var wt=this.bottom_up?Et:this.height-1-Et,bt=0;bt<this.width;bt++){var Ht=this.datav.getUint8(this.pos++,!0),ie=this.datav.getUint8(this.pos++,!0),Yt=this.datav.getUint8(this.pos++,!0),ge=this.datav.getUint8(this.pos++,!0),we=wt*this.width*4+4*bt;this.data[we]=Yt,this.data[we+1]=ie,this.data[we+2]=Ht,this.data[we+3]=ge}},nc.prototype.getData=function(){return this.data},function(Et){Et.processBMP=function(wt,bt,Ht,ie){var Yt=new nc(wt,!1),ge=Yt.width,we=Yt.height,be={data:Yt.getData(),width:ge,height:we},$e=new aA(100).encode(be,100);return Et.processJPEG.call(this,$e,bt,Ht,ie)}}(Ro.API),Ku.prototype.getData=function(){return this.data},function(Et){Et.processWEBP=function(wt,bt,Ht,ie){var Yt=new Ku(wt,!1),ge=Yt.width,we=Yt.height,be={data:Yt.getData(),width:ge,height:we},$e=new aA(100).encode(be,100);return Et.processJPEG.call(this,$e,bt,Ht,ie)}}(Ro.API),Ro.API.processRGBA=function(Et,wt,bt){for(var Ht=Et.data,ie=Ht.length,Yt=new Uint8Array(ie/4*3),ge=new Uint8Array(ie/4),we=0,be=0,$e=0;$e<ie;$e+=4){var dn=Ht[$e],fn=Ht[$e+1],Pn=Ht[$e+2],Ke=Ht[$e+3];Yt[we++]=dn,Yt[we++]=fn,Yt[we++]=Pn,ge[be++]=Ke}var mi=this.__addimage__.arrayBufferToBinaryString(Yt);return{alpha:this.__addimage__.arrayBufferToBinaryString(ge),data:mi,index:wt,alias:bt,colorSpace:"DeviceRGB",bitsPerComponent:8,width:Et.width,height:Et.height}},Ro.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=Ro.API,zd=cl.getCharWidthsArray=function(Et,wt){var bt,Ht,ie=(wt=wt||{}).font||this.internal.getFont(),Yt=wt.fontSize||this.internal.getFontSize(),ge=wt.charSpace||this.internal.getCharSpace(),we=wt.widths?wt.widths:ie.metadata.Unicode.widths,be=we.fof?we.fof:1,$e=wt.kerning?wt.kerning:ie.metadata.Unicode.kerning,dn=$e.fof?$e.fof:1,fn=wt.doKerning!==!1,Pn=0,Ke=Et.length,mi=0,Jn=we[0]||be,yi=[];for(bt=0;bt<Ke;bt++)Ht=Et.charCodeAt(bt),typeof ie.metadata.widthOfString=="function"?yi.push((ie.metadata.widthOfGlyph(ie.metadata.characterToGlyph(Ht))+ge*(1e3/Yt)||0)/1e3):(Pn=fn&&(0,Mt.Z)($e[Ht])==="object"&&!isNaN(parseInt($e[Ht][mi],10))?$e[Ht][mi]/dn:0,yi.push((we[Ht]||Jn)/be+Pn)),mi=Ht;return yi},td=cl.getStringUnitWidth=function(Et,wt){var bt=(wt=wt||{}).fontSize||this.internal.getFontSize(),Ht=wt.font||this.internal.getFont(),ie=wt.charSpace||this.internal.getCharSpace();return cl.processArabic&&(Et=cl.processArabic(Et)),typeof Ht.metadata.widthOfString=="function"?Ht.metadata.widthOfString(Et,bt,ie)/bt:zd.apply(this,arguments).reduce(function(Yt,ge){return Yt+ge},0)},Sh=function(Et,wt,bt,Ht){for(var ie=[],Yt=0,ge=Et.length,we=0;Yt!==ge&&we+wt[Yt]<bt;)we+=wt[Yt],Yt++;ie.push(Et.slice(0,Yt));var be=Yt;for(we=0;Yt!==ge;)we+wt[Yt]>Ht&&(ie.push(Et.slice(be,Yt)),we=0,be=Yt),we+=wt[Yt],Yt++;return be!==Yt&&ie.push(Et.slice(be,Yt)),ie},Ho=function(Et,wt,bt){bt||(bt={});var Ht,ie,Yt,ge,we,be,$e,dn=[],fn=[dn],Pn=bt.textIndent||0,Ke=0,mi=0,Jn=Et.split(" "),yi=zd.apply(this,[" ",bt])[0];if(be=bt.lineIndent===-1?Jn[0].length+2:bt.lineIndent||0){var Un=Array(be).join(" "),di=[];Jn.map(function(ir){(ir=ir.split(/\s*\n/)).length>1?di=di.concat(ir.map(function(Er,ao){return(ao&&Er.length?`
|
|
|
`:"")+Er})):di.push(ir[0])}),Jn=di,be=td.apply(this,[Un,bt])}for(Yt=0,ge=Jn.length;Yt<ge;Yt++){var Qi=0;if(Ht=Jn[Yt],be&&Ht[0]==`
|
|
|
`&&(Ht=Ht.substr(1),Qi=1),Pn+Ke+(mi=(ie=zd.apply(this,[Ht,bt])).reduce(function(ir,Er){return ir+Er},0))>wt||Qi){if(mi>wt){for(we=Sh.apply(this,[Ht,ie,wt-(Pn+Ke),wt]),dn.push(we.shift()),dn=[we.pop()];we.length;)fn.push([we.shift()]);mi=ie.slice(Ht.length-(dn[0]?dn[0].length:0)).reduce(function(ir,Er){return ir+Er},0)}else dn=[Ht];fn.push(dn),Pn=mi+be,Ke=yi}else dn.push(Ht),Pn+=Ke+mi,Ke=yi}return $e=be?function(ir,Er){return(Er?Un:"")+ir.join(" ")}:function(ir){return ir.join(" ")},fn.map($e)},cl.splitTextToSize=function(Et,wt,bt){var Ht,ie=(bt=bt||{}).fontSize||this.internal.getFontSize(),Yt=function(dn){if(dn.widths&&dn.kerning)return{widths:dn.widths,kerning:dn.kerning};var fn=this.internal.getFont(dn.fontName,dn.fontStyle);return fn.metadata.Unicode?{widths:fn.metadata.Unicode.widths||{0:1},kerning:fn.metadata.Unicode.kerning||{}}:{font:fn.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,bt);Ht=Array.isArray(Et)?Et:String(Et).split(/\r?\n/);var ge=1*this.internal.scaleFactor*wt/ie;Yt.textIndent=bt.textIndent?1*bt.textIndent*this.internal.scaleFactor/ie:0,Yt.lineIndent=bt.lineIndent;var we,be,$e=[];for(we=0,be=Ht.length;we<be;we++)$e=$e.concat(Ho.apply(this,[Ht[we],ge,Yt]));return $e},function(Et){Et.__fontmetrics__=Et.__fontmetrics__||{};for(var wt="klmnopqrstuvwxyz",bt={},Ht={},ie=0;ie<wt.length;ie++)bt[wt[ie]]="0123456789abcdef"[ie],Ht["0123456789abcdef"[ie]]=wt[ie];var Yt=function(fn){return"0x"+parseInt(fn,10).toString(16)},ge=Et.__fontmetrics__.compress=function(fn){var Pn,Ke,mi,Jn,yi=["{"];for(var Un in fn){if(Pn=fn[Un],isNaN(parseInt(Un,10))?Ke="'"+Un+"'":(Un=parseInt(Un,10),Ke=(Ke=Yt(Un).slice(2)).slice(0,-1)+Ht[Ke.slice(-1)]),typeof Pn=="number")Pn<0?(mi=Yt(Pn).slice(3),Jn="-"):(mi=Yt(Pn).slice(2),Jn=""),mi=Jn+mi.slice(0,-1)+Ht[mi.slice(-1)];else{if((0,Mt.Z)(Pn)!=="object")throw new Error("Don't know what to do with value type "+(0,Mt.Z)(Pn)+".");mi=ge(Pn)}yi.push(Ke+mi)}return yi.push("}"),yi.join("")},we=Et.__fontmetrics__.uncompress=function(fn){if(typeof fn!="string")throw new Error("Invalid argument passed to uncompress.");for(var Pn,Ke,mi,Jn,yi={},Un=1,di=yi,Qi=[],ir="",Er="",ao=fn.length-1,gr=1;gr<ao;gr+=1)(Jn=fn[gr])=="'"?Pn?(mi=Pn.join(""),Pn=void 0):Pn=[]:Pn?Pn.push(Jn):Jn=="{"?(Qi.push([di,mi]),di={},mi=void 0):Jn=="}"?((Ke=Qi.pop())[0][Ke[1]]=di,mi=void 0,di=Ke[0]):Jn=="-"?Un=-1:mi===void 0?bt.hasOwnProperty(Jn)?(ir+=bt[Jn],mi=parseInt(ir,16)*Un,Un=1,ir=""):ir+=Jn:bt.hasOwnProperty(Jn)?(Er+=bt[Jn],di[mi]=parseInt(Er,16)*Un,Un=1,mi=void 0,Er=""):Er+=Jn;return yi},be={codePages:["WinAnsiEncoding"],WinAnsiEncoding:we("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},$e={Unicode:{Courier:be,"Courier-Bold":be,"Courier-BoldOblique":be,"Courier-Oblique":be,Helvetica:be,"Helvetica-Bold":be,"Helvetica-BoldOblique":be,"Helvetica-Oblique":be,"Times-Roman":be,"Times-Bold":be,"Times-BoldItalic":be,"Times-Italic":be}},dn={Unicode:{"Courier-Oblique":we("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":we("{'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":we("{'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:we("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":we("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":we("{'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:we("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:we("{'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":we("{'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:we("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":we("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":we("{'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":we("{'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":we("{'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(fn){var Pn=fn.font,Ke=dn.Unicode[Pn.postScriptName];Ke&&(Pn.metadata.Unicode={},Pn.metadata.Unicode.widths=Ke.widths,Pn.metadata.Unicode.kerning=Ke.kerning);var mi=$e.Unicode[Pn.postScriptName];mi&&(Pn.metadata.Unicode.encoding=mi,Pn.encoding=mi.codePages[0])}])}(Ro.API),function(Et){var wt=function(bt){for(var Ht=bt.length,ie=new Uint8Array(Ht),Yt=0;Yt<Ht;Yt++)ie[Yt]=bt.charCodeAt(Yt);return ie};Et.API.events.push(["addFont",function(bt){var Ht=void 0,ie=bt.font,Yt=bt.instance;if(!ie.isStandardFont){if(Yt===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+ie.postScriptName+"').");if(typeof(Ht=Yt.existsFileInVFS(ie.postScriptName)===!1?Yt.loadFile(ie.postScriptName):Yt.getFileFromVFS(ie.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+ie.postScriptName+"').");(function(ge,we){we=/^\x00\x01\x00\x00/.test(we)?wt(we):wt(xs(we)),ge.metadata=Et.API.TTFFont.open(we),ge.metadata.Unicode=ge.metadata.Unicode||{encoding:{},kerning:{},widths:[]},ge.metadata.glyIdsUsed=[0]})(ie,Ht)}}])}(Ro),function(Et){function wt(){return(Sr.canvg?Promise.resolve(Sr.canvg):Ft.e(6949).then(Ft.bind(Ft,46949))).catch(function(bt){return Promise.reject(new Error("Could not load canvg: "+bt))}).then(function(bt){return bt.default?bt.default:bt})}Ro.API.addSvgAsImage=function(bt,Ht,ie,Yt,ge,we,be,$e){if(isNaN(Ht)||isNaN(ie))throw wo.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(Yt)||isNaN(ge))throw wo.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var dn=document.createElement("canvas");dn.width=Yt,dn.height=ge;var fn=dn.getContext("2d");fn.fillStyle="#fff",fn.fillRect(0,0,dn.width,dn.height);var Pn={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Ke=this;return wt().then(function(mi){return mi.fromString(fn,bt,Pn)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(mi){return mi.render(Pn)}).then(function(){Ke.addImage(dn.toDataURL("image/jpeg",1),Ht,ie,Yt,ge,be,$e)})}}(),Ro.API.putTotalPages=function(Et){var wt,bt=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(wt=new RegExp(Et,"g"),bt=this.internal.getNumberOfPages()):(wt=new RegExp(this.pdfEscape16(Et,this.internal.getFont()),"g"),bt=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Ht=1;Ht<=this.internal.getNumberOfPages();Ht++)for(var ie=0;ie<this.internal.pages[Ht].length;ie++)this.internal.pages[Ht][ie]=this.internal.pages[Ht][ie].replace(wt,bt);return this},Ro.API.viewerPreferences=function(Et,wt){var bt;Et=Et||{},wt=wt||!1;var Ht,ie,Yt,ge={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},we=Object.keys(ge),be=[],$e=0,dn=0,fn=0;function Pn(mi,Jn){var yi,Un=!1;for(yi=0;yi<mi.length;yi+=1)mi[yi]===Jn&&(Un=!0);return Un}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(ge)),this.internal.viewerpreferences.isSubscribed=!1),bt=this.internal.viewerpreferences.configuration,Et==="reset"||wt===!0){var Ke=we.length;for(fn=0;fn<Ke;fn+=1)bt[we[fn]].value=bt[we[fn]].defaultValue,bt[we[fn]].explicitSet=!1}if((0,Mt.Z)(Et)==="object"){for(ie in Et)if(Yt=Et[ie],Pn(we,ie)&&Yt!==void 0){if(bt[ie].type==="boolean"&&typeof Yt=="boolean")bt[ie].value=Yt;else if(bt[ie].type==="name"&&Pn(bt[ie].valueSet,Yt))bt[ie].value=Yt;else if(bt[ie].type==="integer"&&Number.isInteger(Yt))bt[ie].value=Yt;else if(bt[ie].type==="array"){for($e=0;$e<Yt.length;$e+=1)if(Ht=!0,Yt[$e].length===1&&typeof Yt[$e][0]=="number")be.push(String(Yt[$e]-1));else if(Yt[$e].length>1){for(dn=0;dn<Yt[$e].length;dn+=1)typeof Yt[$e][dn]!="number"&&(Ht=!1);Ht===!0&&be.push([Yt[$e][0]-1,Yt[$e][1]-1].join(" "))}bt[ie].value="["+be.join(" ")+"]"}else bt[ie].value=bt[ie].defaultValue;bt[ie].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var mi,Jn=[];for(mi in bt)bt[mi].explicitSet===!0&&(bt[mi].type==="name"?Jn.push("/"+mi+" /"+bt[mi].value):Jn.push("/"+mi+" "+bt[mi].value));Jn.length!==0&&this.internal.write(`/ViewerPreferences
|
|
|
<<
|
|
|
`+Jn.join(`
|
|
|
`)+`
|
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=bt,this},function(Et){var wt=function(){var Ht='<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>',ie=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),Yt=unescape(encodeURIComponent(Ht)),ge=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),we=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),be=unescape(encodeURIComponent("</x:xmpmeta>")),$e=Yt.length+ge.length+we.length+ie.length+be.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+$e+" >>"),this.internal.write("stream"),this.internal.write(ie+Yt+ge+we+be),this.internal.write("endstream"),this.internal.write("endobj")},bt=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};Et.addMetadata=function(Ht,ie){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:Ht,namespaceuri:ie||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",bt),this.internal.events.subscribe("postPutResources",wt)),this}}(Ro.API),function(Et){var wt=Et.API,bt=wt.pdfEscape16=function(Yt,ge){for(var we,be=ge.metadata.Unicode.widths,$e=["","0","00","000","0000"],dn=[""],fn=0,Pn=Yt.length;fn<Pn;++fn){if(we=ge.metadata.characterToGlyph(Yt.charCodeAt(fn)),ge.metadata.glyIdsUsed.push(we),ge.metadata.toUnicode[we]=Yt.charCodeAt(fn),be.indexOf(we)==-1&&(be.push(we),be.push([parseInt(ge.metadata.widthOfGlyph(we),10)])),we=="0")return dn.join("");we=we.toString(16),dn.push($e[4-we.length],we)}return dn.join("")},Ht=function(Yt){var ge,we,be,$e,dn,fn,Pn;for(dn=`/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`,be=[],fn=0,Pn=(we=Object.keys(Yt).sort(function(Ke,mi){return Ke-mi})).length;fn<Pn;fn++)ge=we[fn],be.length>=100&&(dn+=`
|
|
|
`+be.length+` beginbfchar
|
|
|
`+be.join(`
|
|
|
`)+`
|
|
|
endbfchar`,be=[]),Yt[ge]!==void 0&&Yt[ge]!==null&&typeof Yt[ge].toString=="function"&&($e=("0000"+Yt[ge].toString(16)).slice(-4),ge=("0000"+(+ge).toString(16)).slice(-4),be.push("<"+ge+"><"+$e+">"));return be.length&&(dn+=`
|
|
|
`+be.length+` beginbfchar
|
|
|
`+be.join(`
|
|
|
`)+`
|
|
|
endbfchar
|
|
|
`),dn+=`endcmap
|
|
|
CMapName currentdict /CMap defineresource pop
|
|
|
end
|
|
|
end`};wt.events.push(["putFont",function(Yt){(function(ge){var we=ge.font,be=ge.out,$e=ge.newObject,dn=ge.putStream;if(we.metadata instanceof Et.API.TTFFont&&we.encoding==="Identity-H"){for(var fn=we.metadata.Unicode.widths,Pn=we.metadata.subset.encode(we.metadata.glyIdsUsed,1),Ke="",mi=0;mi<Pn.length;mi++)Ke+=String.fromCharCode(Pn[mi]);var Jn=$e();dn({data:Ke,addLength1:!0,objectId:Jn}),be("endobj");var yi=$e();dn({data:Ht(we.metadata.toUnicode),addLength1:!0,objectId:yi}),be("endobj");var Un=$e();be("<<"),be("/Type /FontDescriptor"),be("/FontName /"+mo(we.fontName)),be("/FontFile2 "+Jn+" 0 R"),be("/FontBBox "+Et.API.PDFObject.convert(we.metadata.bbox)),be("/Flags "+we.metadata.flags),be("/StemV "+we.metadata.stemV),be("/ItalicAngle "+we.metadata.italicAngle),be("/Ascent "+we.metadata.ascender),be("/Descent "+we.metadata.decender),be("/CapHeight "+we.metadata.capHeight),be(">>"),be("endobj");var di=$e();be("<<"),be("/Type /Font"),be("/BaseFont /"+mo(we.fontName)),be("/FontDescriptor "+Un+" 0 R"),be("/W "+Et.API.PDFObject.convert(fn)),be("/CIDToGIDMap /Identity"),be("/DW 1000"),be("/Subtype /CIDFontType2"),be("/CIDSystemInfo"),be("<<"),be("/Supplement 0"),be("/Registry (Adobe)"),be("/Ordering ("+we.encoding+")"),be(">>"),be(">>"),be("endobj"),we.objectNumber=$e(),be("<<"),be("/Type /Font"),be("/Subtype /Type0"),be("/ToUnicode "+yi+" 0 R"),be("/BaseFont /"+mo(we.fontName)),be("/Encoding /"+we.encoding),be("/DescendantFonts ["+di+" 0 R]"),be(">>"),be("endobj"),we.isAlreadyPutted=!0}})(Yt)}]),wt.events.push(["putFont",function(Yt){(function(ge){var we=ge.font,be=ge.out,$e=ge.newObject,dn=ge.putStream;if(we.metadata instanceof Et.API.TTFFont&&we.encoding==="WinAnsiEncoding"){for(var fn=we.metadata.rawData,Pn="",Ke=0;Ke<fn.length;Ke++)Pn+=String.fromCharCode(fn[Ke]);var mi=$e();dn({data:Pn,addLength1:!0,objectId:mi}),be("endobj");var Jn=$e();dn({data:Ht(we.metadata.toUnicode),addLength1:!0,objectId:Jn}),be("endobj");var yi=$e();be("<<"),be("/Descent "+we.metadata.decender),be("/CapHeight "+we.metadata.capHeight),be("/StemV "+we.metadata.stemV),be("/Type /FontDescriptor"),be("/FontFile2 "+mi+" 0 R"),be("/Flags 96"),be("/FontBBox "+Et.API.PDFObject.convert(we.metadata.bbox)),be("/FontName /"+mo(we.fontName)),be("/ItalicAngle "+we.metadata.italicAngle),be("/Ascent "+we.metadata.ascender),be(">>"),be("endobj"),we.objectNumber=$e();for(var Un=0;Un<we.metadata.hmtx.widths.length;Un++)we.metadata.hmtx.widths[Un]=parseInt(we.metadata.hmtx.widths[Un]*(1e3/we.metadata.head.unitsPerEm));be("<</Subtype/TrueType/Type/Font/ToUnicode "+Jn+" 0 R/BaseFont/"+mo(we.fontName)+"/FontDescriptor "+yi+" 0 R/Encoding/"+we.encoding+" /FirstChar 29 /LastChar 255 /Widths "+Et.API.PDFObject.convert(we.metadata.hmtx.widths)+">>"),be("endobj"),we.isAlreadyPutted=!0}})(Yt)}]);var ie=function(Yt){var ge,we=Yt.text||"",be=Yt.x,$e=Yt.y,dn=Yt.options||{},fn=Yt.mutex||{},Pn=fn.pdfEscape,Ke=fn.activeFontKey,mi=fn.fonts,Jn=Ke,yi="",Un=0,di="",Qi=mi[Jn].encoding;if(mi[Jn].encoding!=="Identity-H")return{text:we,x:be,y:$e,options:dn,mutex:fn};for(di=we,Jn=Ke,Array.isArray(we)&&(di=we[0]),Un=0;Un<di.length;Un+=1)mi[Jn].metadata.hasOwnProperty("cmap")&&(ge=mi[Jn].metadata.cmap.unicode.codeMap[di[Un].charCodeAt(0)]),ge||di[Un].charCodeAt(0)<256&&mi[Jn].metadata.hasOwnProperty("Unicode")?yi+=di[Un]:yi+="";var ir="";return parseInt(Jn.slice(1))<14||Qi==="WinAnsiEncoding"?ir=Pn(yi,Jn).split("").map(function(Er){return Er.charCodeAt(0).toString(16)}).join(""):Qi==="Identity-H"&&(ir=bt(yi,mi[Jn])),fn.isHex=!0,{text:ir,x:be,y:$e,options:dn,mutex:fn}};wt.events.push(["postProcessText",function(Yt){var ge=Yt.text||"",we=[],be={text:ge,x:Yt.x,y:Yt.y,options:Yt.options,mutex:Yt.mutex};if(Array.isArray(ge)){var $e=0;for($e=0;$e<ge.length;$e+=1)Array.isArray(ge[$e])&&ge[$e].length===3?we.push([ie(Object.assign({},be,{text:ge[$e][0]})).text,ge[$e][1],ge[$e][2]]):we.push(ie(Object.assign({},be,{text:ge[$e]})).text);Yt.text=we}else Yt.text=ie(Object.assign({},be,{text:ge})).text}])}(Ro),function(Et){var wt=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};Et.existsFileInVFS=function(bt){return wt.call(this),this.internal.vFS[bt]!==void 0},Et.addFileToVFS=function(bt,Ht){return wt.call(this),this.internal.vFS[bt]=Ht,this},Et.getFileFromVFS=function(bt){return wt.call(this),this.internal.vFS[bt]!==void 0?this.internal.vFS[bt]:null}}(Ro.API),function(Et){Et.__bidiEngine__=Et.prototype.__bidiEngine__=function(Ht){var ie,Yt,ge,we,be,$e,dn,fn=wt,Pn=[[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]],Ke=[[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]],mi={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},Jn={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},yi=["(",")","(","<",">","<","[","]","[","{","}","{","\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)$/),di=!1,Qi=0;this.__bidiEngine__={};var ir=function($n){var ri=$n.charCodeAt(),pe=ri>>8,me=Jn[pe];return me!==void 0?fn[256*me+(255&ri)]:pe===252||pe===253?"AL":Un.test(pe)?"L":pe===8?"R":"N"},Er=function($n){for(var ri,pe=0;pe<$n.length;pe++){if((ri=ir($n.charAt(pe)))==="L")return!1;if(ri==="R")return!0}return!1},ao=function($n,ri,pe,me){var Xe,Je,vn,rn,kn=ri[me];switch(kn){case"L":case"R":di=!1;break;case"N":case"AN":break;case"EN":di&&(kn="AN");break;case"AL":di=!0,kn="R";break;case"WS":kn="N";break;case"CS":me<1||me+1>=ri.length||(Xe=pe[me-1])!=="EN"&&Xe!=="AN"||(Je=ri[me+1])!=="EN"&&Je!=="AN"?kn="N":di&&(Je="AN"),kn=Je===Xe?Je:"N";break;case"ES":kn=(Xe=me>0?pe[me-1]:"B")==="EN"&&me+1<ri.length&&ri[me+1]==="EN"?"EN":"N";break;case"ET":if(me>0&&pe[me-1]==="EN"){kn="EN";break}if(di){kn="N";break}for(vn=me+1,rn=ri.length;vn<rn&&ri[vn]==="ET";)vn++;kn=vn<rn&&ri[vn]==="EN"?"EN":"N";break;case"NSM":if(ge&&!we){for(rn=ri.length,vn=me+1;vn<rn&&ri[vn]==="NSM";)vn++;if(vn<rn){var jn=$n[me],Yn=jn>=1425&&jn<=2303||jn===64286;if(Xe=ri[vn],Yn&&(Xe==="R"||Xe==="AL")){kn="R";break}}}kn=me<1||(Xe=ri[me-1])==="B"?"N":pe[me-1];break;case"B":di=!1,ie=!0,kn=Qi;break;case"S":Yt=!0,kn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":di=!1;break;case"BN":kn="N"}return kn},gr=function($n,ri,pe){var me=$n.split("");return pe&&Ti(me,pe,{hiLevel:Qi}),me.reverse(),ri&&ri.reverse(),me.join("")},Ti=function($n,ri,pe){var me,Xe,Je,vn,rn,kn=-1,jn=$n.length,Yn=0,Qe=[],un=Qi?Ke:Pn,mn=[];for(di=!1,ie=!1,Yt=!1,Xe=0;Xe<jn;Xe++)mn[Xe]=ir($n[Xe]);for(Je=0;Je<jn;Je++){if(rn=Yn,Qe[Je]=ao($n,mn,Qe,Je),me=240&(Yn=un[rn][mi[Qe[Je]]]),Yn&=15,ri[Je]=vn=un[Yn][5],me>0)if(me===16){for(Xe=kn;Xe<Je;Xe++)ri[Xe]=1;kn=-1}else kn=-1;if(un[Yn][6])kn===-1&&(kn=Je);else if(kn>-1){for(Xe=kn;Xe<Je;Xe++)ri[Xe]=vn;kn=-1}mn[Je]==="B"&&(ri[Je]=0),pe.hiLevel|=vn}Yt&&function(Hn,Zn,ii){for(var Fi=0;Fi<ii;Fi++)if(Hn[Fi]==="S"){Zn[Fi]=Qi;for(var li=Fi-1;li>=0&&Hn[li]==="WS";li--)Zn[li]=Qi}}(mn,ri,jn)},xr=function($n,ri,pe,me,Xe){if(!(Xe.hiLevel<$n)){if($n===1&&Qi===1&&!ie)return ri.reverse(),void(pe&&pe.reverse());for(var Je,vn,rn,kn,jn=ri.length,Yn=0;Yn<jn;){if(me[Yn]>=$n){for(rn=Yn+1;rn<jn&&me[rn]>=$n;)rn++;for(kn=Yn,vn=rn-1;kn<vn;kn++,vn--)Je=ri[kn],ri[kn]=ri[vn],ri[vn]=Je,pe&&(Je=pe[kn],pe[kn]=pe[vn],pe[vn]=Je);Yn=rn}Yn++}}},Ir=function($n,ri,pe){var me=$n.split(""),Xe={hiLevel:Qi};return pe||(pe=[]),Ti(me,pe,Xe),function(Je,vn,rn){if(rn.hiLevel!==0&&dn)for(var kn,jn=0;jn<Je.length;jn++)vn[jn]===1&&(kn=yi.indexOf(Je[jn]))>=0&&(Je[jn]=yi[kn+1])}(me,pe,Xe),xr(2,me,ri,pe,Xe),xr(1,me,ri,pe,Xe),me.join("")};return this.__bidiEngine__.doBidiReorder=function($n,ri,pe){if(function(Xe,Je){if(Je)for(var vn=0;vn<Xe.length;vn++)Je[vn]=vn;we===void 0&&(we=Er(Xe)),$e===void 0&&($e=Er(Xe))}($n,ri),ge||!be||$e)if(ge&&be&&we^$e)Qi=we?1:0,$n=gr($n,ri,pe);else if(!ge&&be&&$e)Qi=we?1:0,$n=Ir($n,ri,pe),$n=gr($n,ri);else if(!ge||we||be||$e){if(ge&&!be&&we^$e)$n=gr($n,ri),we?(Qi=0,$n=Ir($n,ri,pe)):(Qi=1,$n=Ir($n,ri,pe),$n=gr($n,ri));else if(ge&&we&&!be&&$e)Qi=1,$n=Ir($n,ri,pe),$n=gr($n,ri);else if(!ge&&!be&&we^$e){var me=dn;we?(Qi=1,$n=Ir($n,ri,pe),Qi=0,dn=!1,$n=Ir($n,ri,pe),dn=me):(Qi=0,$n=Ir($n,ri,pe),$n=gr($n,ri),Qi=1,dn=!1,$n=Ir($n,ri,pe),dn=me,$n=gr($n,ri))}}else Qi=0,$n=Ir($n,ri,pe);else Qi=we?1:0,$n=Ir($n,ri,pe);return $n},this.__bidiEngine__.setOptions=function($n){$n&&(ge=$n.isInputVisual,be=$n.isOutputVisual,we=$n.isInputRtl,$e=$n.isOutputRtl,dn=$n.isSymmetricSwapping)},this.__bidiEngine__.setOptions(Ht),this.__bidiEngine__};var wt=["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"],bt=new Et.__bidiEngine__({isInputVisual:!0});Et.API.events.push(["postProcessText",function(Ht){var ie=Ht.text,Yt=(Ht.x,Ht.y,Ht.options||{}),ge=(Ht.mutex,Yt.lang,[]);if(Yt.isInputVisual=typeof Yt.isInputVisual!="boolean"||Yt.isInputVisual,bt.setOptions(Yt),Object.prototype.toString.call(ie)==="[object Array]"){var we=0;for(ge=[],we=0;we<ie.length;we+=1)Object.prototype.toString.call(ie[we])==="[object Array]"?ge.push([bt.doBidiReorder(ie[we][0]),ie[we][1],ie[we][2]]):ge.push([bt.doBidiReorder(ie[we])]);Ht.text=ge}else Ht.text=bt.doBidiReorder(ie);bt.setOptions({isInputVisual:!0})}])}(Ro),Ro.API.TTFFont=function(){function Et(wt){var bt;if(this.rawData=wt,bt=this.contents=new Ch(wt),this.contents.pos=4,bt.readString(4)==="ttcf")throw new Error("TTCF not supported.");bt.pos=0,this.parse(),this.subset=new Hl(this),this.registerTTF()}return Et.open=function(wt){return new Et(wt)},Et.prototype.parse=function(){return this.directory=new zA(this.contents),this.head=new ms(this),this.name=new xl(this),this.cmap=new Zu(this),this.toUnicode={},this.hhea=new Fl(this),this.maxp=new Qh(this),this.hmtx=new Cu(this),this.post=new gu(this),this.os2=new ra(this),this.loca=new gl(this),this.glyf=new Ea(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 wt,bt,Ht,ie,Yt;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var ge,we,be,$e;for($e=[],ge=0,we=(be=this.bbox).length;ge<we;ge++)wt=be[ge],$e.push(Math.round(wt*this.scaleFactor));return $e}.call(this),this.stemV=0,this.post.exists?(Ht=255&(ie=this.post.italic_angle),32768&(bt=ie>>16)&&(bt=-(1+(65535^bt))),this.italicAngle=+(bt+"."+Ht)):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=(Yt=this.familyClass)===1||Yt===2||Yt===3||Yt===4||Yt===5||Yt===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(wt){var bt;return((bt=this.cmap.unicode)!=null?bt.codeMap[wt]:void 0)||0},Et.prototype.widthOfGlyph=function(wt){var bt;return bt=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(wt).advance*bt},Et.prototype.widthOfString=function(wt,bt,Ht){var ie,Yt,ge,we;for(ge=0,Yt=0,we=(wt=""+wt).length;0<=we?Yt<we:Yt>we;Yt=0<=we?++Yt:--Yt)ie=wt.charCodeAt(Yt),ge+=this.widthOfGlyph(this.characterToGlyph(ie))+Ht*(1e3/bt)||0;return ge*(bt/1e3)},Et.prototype.lineHeight=function(wt,bt){var Ht;return bt==null&&(bt=!1),Ht=bt?this.lineGap:0,(this.ascender+Ht-this.decender)/1e3*wt},Et}();var Gu,Ch=function(){function Et(wt){this.data=wt!=null?wt:[],this.pos=0,this.length=this.data.length}return Et.prototype.readByte=function(){return this.data[this.pos++]},Et.prototype.writeByte=function(wt){return this.data[this.pos++]=wt},Et.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},Et.prototype.writeUInt32=function(wt){return this.writeByte(wt>>>24&255),this.writeByte(wt>>16&255),this.writeByte(wt>>8&255),this.writeByte(255&wt)},Et.prototype.readInt32=function(){var wt;return(wt=this.readUInt32())>=2147483648?wt-4294967296:wt},Et.prototype.writeInt32=function(wt){return wt<0&&(wt+=4294967296),this.writeUInt32(wt)},Et.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},Et.prototype.writeUInt16=function(wt){return this.writeByte(wt>>8&255),this.writeByte(255&wt)},Et.prototype.readInt16=function(){var wt;return(wt=this.readUInt16())>=32768?wt-65536:wt},Et.prototype.writeInt16=function(wt){return wt<0&&(wt+=65536),this.writeUInt16(wt)},Et.prototype.readString=function(wt){var bt,Ht;for(Ht=[],bt=0;0<=wt?bt<wt:bt>wt;bt=0<=wt?++bt:--bt)Ht[bt]=String.fromCharCode(this.readByte());return Ht.join("")},Et.prototype.writeString=function(wt){var bt,Ht,ie;for(ie=[],bt=0,Ht=wt.length;0<=Ht?bt<Ht:bt>Ht;bt=0<=Ht?++bt:--bt)ie.push(this.writeByte(wt.charCodeAt(bt)));return ie},Et.prototype.readShort=function(){return this.readInt16()},Et.prototype.writeShort=function(wt){return this.writeInt16(wt)},Et.prototype.readLongLong=function(){var wt,bt,Ht,ie,Yt,ge,we,be;return wt=this.readByte(),bt=this.readByte(),Ht=this.readByte(),ie=this.readByte(),Yt=this.readByte(),ge=this.readByte(),we=this.readByte(),be=this.readByte(),128&wt?-1*(72057594037927940*(255^wt)+281474976710656*(255^bt)+1099511627776*(255^Ht)+4294967296*(255^ie)+16777216*(255^Yt)+65536*(255^ge)+256*(255^we)+(255^be)+1):72057594037927940*wt+281474976710656*bt+1099511627776*Ht+4294967296*ie+16777216*Yt+65536*ge+256*we+be},Et.prototype.writeLongLong=function(wt){var bt,Ht;return bt=Math.floor(wt/4294967296),Ht=4294967295&wt,this.writeByte(bt>>24&255),this.writeByte(bt>>16&255),this.writeByte(bt>>8&255),this.writeByte(255&bt),this.writeByte(Ht>>24&255),this.writeByte(Ht>>16&255),this.writeByte(Ht>>8&255),this.writeByte(255&Ht)},Et.prototype.readInt=function(){return this.readInt32()},Et.prototype.writeInt=function(wt){return this.writeInt32(wt)},Et.prototype.read=function(wt){var bt,Ht;for(bt=[],Ht=0;0<=wt?Ht<wt:Ht>wt;Ht=0<=wt?++Ht:--Ht)bt.push(this.readByte());return bt},Et.prototype.write=function(wt){var bt,Ht,ie,Yt;for(Yt=[],Ht=0,ie=wt.length;Ht<ie;Ht++)bt=wt[Ht],Yt.push(this.writeByte(bt));return Yt},Et}(),zA=function(){var Et;function wt(bt){var Ht,ie,Yt;for(this.scalarType=bt.readInt(),this.tableCount=bt.readShort(),this.searchRange=bt.readShort(),this.entrySelector=bt.readShort(),this.rangeShift=bt.readShort(),this.tables={},ie=0,Yt=this.tableCount;0<=Yt?ie<Yt:ie>Yt;ie=0<=Yt?++ie:--ie)Ht={tag:bt.readString(4),checksum:bt.readInt(),offset:bt.readInt(),length:bt.readInt()},this.tables[Ht.tag]=Ht}return wt.prototype.encode=function(bt){var Ht,ie,Yt,ge,we,be,$e,dn,fn,Pn,Ke,mi,Jn;for(Jn in Ke=Object.keys(bt).length,be=Math.log(2),fn=16*Math.floor(Math.log(Ke)/be),ge=Math.floor(fn/be),dn=16*Ke-fn,(ie=new Ch).writeInt(this.scalarType),ie.writeShort(Ke),ie.writeShort(fn),ie.writeShort(ge),ie.writeShort(dn),Yt=16*Ke,$e=ie.pos+Yt,we=null,mi=[],bt)for(Pn=bt[Jn],ie.writeString(Jn),ie.writeInt(Et(Pn)),ie.writeInt($e),ie.writeInt(Pn.length),mi=mi.concat(Pn),Jn==="head"&&(we=$e),$e+=Pn.length;$e%4;)mi.push(0),$e++;return ie.write(mi),Ht=2981146554-Et(ie.data),ie.pos=we+8,ie.writeUInt32(Ht),ie.data},Et=function(bt){var Ht,ie,Yt,ge;for(bt=wd.call(bt);bt.length%4;)bt.push(0);for(Yt=new Ch(bt),ie=0,Ht=0,ge=bt.length;Ht<ge;Ht=Ht+=4)ie+=Yt.readUInt32();return 4294967295&ie},wt}(),ed={}.hasOwnProperty,el=function(Et,wt){for(var bt in wt)ed.call(wt,bt)&&(Et[bt]=wt[bt]);function Ht(){this.constructor=Et}return Ht.prototype=wt.prototype,Et.prototype=new Ht,Et.__super__=wt.prototype,Et};Gu=function(){function Et(wt){var bt;this.file=wt,bt=this.file.directory.tables[this.tag],this.exists=!!bt,bt&&(this.offset=bt.offset,this.length=bt.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 ms=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return el(wt,Gu),wt.prototype.tag="head",wt.prototype.parse=function(bt){return bt.pos=this.offset,this.version=bt.readInt(),this.revision=bt.readInt(),this.checkSumAdjustment=bt.readInt(),this.magicNumber=bt.readInt(),this.flags=bt.readShort(),this.unitsPerEm=bt.readShort(),this.created=bt.readLongLong(),this.modified=bt.readLongLong(),this.xMin=bt.readShort(),this.yMin=bt.readShort(),this.xMax=bt.readShort(),this.yMax=bt.readShort(),this.macStyle=bt.readShort(),this.lowestRecPPEM=bt.readShort(),this.fontDirectionHint=bt.readShort(),this.indexToLocFormat=bt.readShort(),this.glyphDataFormat=bt.readShort()},wt.prototype.encode=function(bt){var Ht;return(Ht=new Ch).writeInt(this.version),Ht.writeInt(this.revision),Ht.writeInt(this.checkSumAdjustment),Ht.writeInt(this.magicNumber),Ht.writeShort(this.flags),Ht.writeShort(this.unitsPerEm),Ht.writeLongLong(this.created),Ht.writeLongLong(this.modified),Ht.writeShort(this.xMin),Ht.writeShort(this.yMin),Ht.writeShort(this.xMax),Ht.writeShort(this.yMax),Ht.writeShort(this.macStyle),Ht.writeShort(this.lowestRecPPEM),Ht.writeShort(this.fontDirectionHint),Ht.writeShort(bt),Ht.writeShort(this.glyphDataFormat),Ht.data},wt}(),rh=function(){function Et(wt,bt){var Ht,ie,Yt,ge,we,be,$e,dn,fn,Pn,Ke,mi,Jn,yi,Un,di,Qi;switch(this.platformID=wt.readUInt16(),this.encodingID=wt.readShort(),this.offset=bt+wt.readInt(),fn=wt.pos,wt.pos=this.offset,this.format=wt.readUInt16(),this.length=wt.readUInt16(),this.language=wt.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(be=0;be<256;++be)this.codeMap[be]=wt.readByte();break;case 4:for(Ke=wt.readUInt16(),Pn=Ke/2,wt.pos+=6,Yt=function(){var ir,Er;for(Er=[],be=ir=0;0<=Pn?ir<Pn:ir>Pn;be=0<=Pn?++ir:--ir)Er.push(wt.readUInt16());return Er}(),wt.pos+=2,Jn=function(){var ir,Er;for(Er=[],be=ir=0;0<=Pn?ir<Pn:ir>Pn;be=0<=Pn?++ir:--ir)Er.push(wt.readUInt16());return Er}(),$e=function(){var ir,Er;for(Er=[],be=ir=0;0<=Pn?ir<Pn:ir>Pn;be=0<=Pn?++ir:--ir)Er.push(wt.readUInt16());return Er}(),dn=function(){var ir,Er;for(Er=[],be=ir=0;0<=Pn?ir<Pn:ir>Pn;be=0<=Pn?++ir:--ir)Er.push(wt.readUInt16());return Er}(),ie=(this.length-wt.pos+this.offset)/2,we=function(){var ir,Er;for(Er=[],be=ir=0;0<=ie?ir<ie:ir>ie;be=0<=ie?++ir:--ir)Er.push(wt.readUInt16());return Er}(),be=Un=0,Qi=Yt.length;Un<Qi;be=++Un)for(yi=Yt[be],Ht=di=mi=Jn[be];mi<=yi?di<=yi:di>=yi;Ht=mi<=yi?++di:--di)dn[be]===0?ge=Ht+$e[be]:(ge=we[dn[be]/2+(Ht-mi)-(Pn-be)]||0)!==0&&(ge+=$e[be]),this.codeMap[Ht]=65535&ge}wt.pos=fn}return Et.encode=function(wt,bt){var Ht,ie,Yt,ge,we,be,$e,dn,fn,Pn,Ke,mi,Jn,yi,Un,di,Qi,ir,Er,ao,gr,Ti,xr,Ir,$n,ri,pe,me,Xe,Je,vn,rn,kn,jn,Yn,Qe,un,mn,Hn,Zn,ii,Fi,li,Xi,Zi,Ar;switch(me=new Ch,ge=Object.keys(wt).sort(function(br,eo){return br-eo}),bt){case"macroman":for(Jn=0,yi=function(){var br=[];for(mi=0;mi<256;++mi)br.push(0);return br}(),di={0:0},Yt={},Xe=0,kn=ge.length;Xe<kn;Xe++)di[li=wt[ie=ge[Xe]]]==null&&(di[li]=++Jn),Yt[ie]={old:wt[ie],new:di[wt[ie]]},yi[ie]=di[wt[ie]];return me.writeUInt16(1),me.writeUInt16(0),me.writeUInt32(12),me.writeUInt16(0),me.writeUInt16(262),me.writeUInt16(0),me.write(yi),{charMap:Yt,subtable:me.data,maxGlyphID:Jn+1};case"unicode":for(ri=[],fn=[],Qi=0,di={},Ht={},Un=$e=null,Je=0,jn=ge.length;Je<jn;Je++)di[Er=wt[ie=ge[Je]]]==null&&(di[Er]=++Qi),Ht[ie]={old:Er,new:di[Er]},we=di[Er]-ie,Un!=null&&we===$e||(Un&&fn.push(Un),ri.push(ie),$e=we),Un=ie;for(Un&&fn.push(Un),fn.push(65535),ri.push(65535),Ir=2*(xr=ri.length),Ti=2*Math.pow(Math.log(xr)/Math.LN2,2),Pn=Math.log(Ti/2)/Math.LN2,gr=2*xr-Ti,be=[],ao=[],Ke=[],mi=vn=0,Yn=ri.length;vn<Yn;mi=++vn){if($n=ri[mi],dn=fn[mi],$n===65535){be.push(0),ao.push(0);break}if($n-(pe=Ht[$n].new)>=32768)for(be.push(0),ao.push(2*(Ke.length+xr-mi)),ie=rn=$n;$n<=dn?rn<=dn:rn>=dn;ie=$n<=dn?++rn:--rn)Ke.push(Ht[ie].new);else be.push(pe-$n),ao.push(0)}for(me.writeUInt16(3),me.writeUInt16(1),me.writeUInt32(12),me.writeUInt16(4),me.writeUInt16(16+8*xr+2*Ke.length),me.writeUInt16(0),me.writeUInt16(Ir),me.writeUInt16(Ti),me.writeUInt16(Pn),me.writeUInt16(gr),ii=0,Qe=fn.length;ii<Qe;ii++)ie=fn[ii],me.writeUInt16(ie);for(me.writeUInt16(0),Fi=0,un=ri.length;Fi<un;Fi++)ie=ri[Fi],me.writeUInt16(ie);for(Xi=0,mn=be.length;Xi<mn;Xi++)we=be[Xi],me.writeUInt16(we);for(Zi=0,Hn=ao.length;Zi<Hn;Zi++)ir=ao[Zi],me.writeUInt16(ir);for(Ar=0,Zn=Ke.length;Ar<Zn;Ar++)Jn=Ke[Ar],me.writeUInt16(Jn);return{charMap:Ht,subtable:me.data,maxGlyphID:Qi+1}}},Et}(),Zu=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return el(wt,Gu),wt.prototype.tag="cmap",wt.prototype.parse=function(bt){var Ht,ie,Yt;for(bt.pos=this.offset,this.version=bt.readUInt16(),Yt=bt.readUInt16(),this.tables=[],this.unicode=null,ie=0;0<=Yt?ie<Yt:ie>Yt;ie=0<=Yt?++ie:--ie)Ht=new rh(bt,this.offset),this.tables.push(Ht),Ht.isUnicode&&this.unicode==null&&(this.unicode=Ht);return!0},wt.encode=function(bt,Ht){var ie,Yt;return Ht==null&&(Ht="macroman"),ie=rh.encode(bt,Ht),(Yt=new Ch).writeUInt16(0),Yt.writeUInt16(1),ie.table=Yt.data.concat(ie.subtable),ie},wt}(),Fl=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return el(wt,Gu),wt.prototype.tag="hhea",wt.prototype.parse=function(bt){return bt.pos=this.offset,this.version=bt.readInt(),this.ascender=bt.readShort(),this.decender=bt.readShort(),this.lineGap=bt.readShort(),this.advanceWidthMax=bt.readShort(),this.minLeftSideBearing=bt.readShort(),this.minRightSideBearing=bt.readShort(),this.xMaxExtent=bt.readShort(),this.caretSlopeRise=bt.readShort(),this.caretSlopeRun=bt.readShort(),this.caretOffset=bt.readShort(),bt.pos+=8,this.metricDataFormat=bt.readShort(),this.numberOfMetrics=bt.readUInt16()},wt}(),ra=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return el(wt,Gu),wt.prototype.tag="OS/2",wt.prototype.parse=function(bt){if(bt.pos=this.offset,this.version=bt.readUInt16(),this.averageCharWidth=bt.readShort(),this.weightClass=bt.readUInt16(),this.widthClass=bt.readUInt16(),this.type=bt.readShort(),this.ySubscriptXSize=bt.readShort(),this.ySubscriptYSize=bt.readShort(),this.ySubscriptXOffset=bt.readShort(),this.ySubscriptYOffset=bt.readShort(),this.ySuperscriptXSize=bt.readShort(),this.ySuperscriptYSize=bt.readShort(),this.ySuperscriptXOffset=bt.readShort(),this.ySuperscriptYOffset=bt.readShort(),this.yStrikeoutSize=bt.readShort(),this.yStrikeoutPosition=bt.readShort(),this.familyClass=bt.readShort(),this.panose=function(){var Ht,ie;for(ie=[],Ht=0;Ht<10;++Ht)ie.push(bt.readByte());return ie}(),this.charRange=function(){var Ht,ie;for(ie=[],Ht=0;Ht<4;++Ht)ie.push(bt.readInt());return ie}(),this.vendorID=bt.readString(4),this.selection=bt.readShort(),this.firstCharIndex=bt.readShort(),this.lastCharIndex=bt.readShort(),this.version>0&&(this.ascent=bt.readShort(),this.descent=bt.readShort(),this.lineGap=bt.readShort(),this.winAscent=bt.readShort(),this.winDescent=bt.readShort(),this.codePageRange=function(){var Ht,ie;for(ie=[],Ht=0;Ht<2;Ht=++Ht)ie.push(bt.readInt());return ie}(),this.version>1))return this.xHeight=bt.readShort(),this.capHeight=bt.readShort(),this.defaultChar=bt.readShort(),this.breakChar=bt.readShort(),this.maxContext=bt.readShort()},wt}(),gu=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return el(wt,Gu),wt.prototype.tag="post",wt.prototype.parse=function(bt){var Ht,ie,Yt;switch(bt.pos=this.offset,this.format=bt.readInt(),this.italicAngle=bt.readInt(),this.underlinePosition=bt.readShort(),this.underlineThickness=bt.readShort(),this.isFixedPitch=bt.readInt(),this.minMemType42=bt.readInt(),this.maxMemType42=bt.readInt(),this.minMemType1=bt.readInt(),this.maxMemType1=bt.readInt(),this.format){case 65536:break;case 131072:var ge;for(ie=bt.readUInt16(),this.glyphNameIndex=[],ge=0;0<=ie?ge<ie:ge>ie;ge=0<=ie?++ge:--ge)this.glyphNameIndex.push(bt.readUInt16());for(this.names=[],Yt=[];bt.pos<this.offset+this.length;)Ht=bt.readByte(),Yt.push(this.names.push(bt.readString(Ht)));return Yt;case 151552:return ie=bt.readUInt16(),this.offsets=bt.read(ie);case 196608:break;case 262144:return this.map=function(){var we,be,$e;for($e=[],ge=we=0,be=this.file.maxp.numGlyphs;0<=be?we<be:we>be;ge=0<=be?++we:--we)$e.push(bt.readUInt32());return $e}.call(this)}},wt}(),Bh=function(Et,wt){this.raw=Et,this.length=Et.length,this.platformID=wt.platformID,this.encodingID=wt.encodingID,this.languageID=wt.languageID},xl=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return el(wt,Gu),wt.prototype.tag="name",wt.prototype.parse=function(bt){var Ht,ie,Yt,ge,we,be,$e,dn,fn,Pn,Ke;for(bt.pos=this.offset,bt.readShort(),Ht=bt.readShort(),be=bt.readShort(),ie=[],ge=0;0<=Ht?ge<Ht:ge>Ht;ge=0<=Ht?++ge:--ge)ie.push({platformID:bt.readShort(),encodingID:bt.readShort(),languageID:bt.readShort(),nameID:bt.readShort(),length:bt.readShort(),offset:this.offset+be+bt.readShort()});for($e={},ge=fn=0,Pn=ie.length;fn<Pn;ge=++fn)Yt=ie[ge],bt.pos=Yt.offset,dn=bt.readString(Yt.length),we=new Bh(dn,Yt),$e[Ke=Yt.nameID]==null&&($e[Ke]=[]),$e[Yt.nameID].push(we);this.strings=$e,this.copyright=$e[0],this.fontFamily=$e[1],this.fontSubfamily=$e[2],this.uniqueSubfamily=$e[3],this.fontName=$e[4],this.version=$e[5];try{this.postscriptName=$e[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(mi){this.postscriptName=$e[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=$e[7],this.manufacturer=$e[8],this.designer=$e[9],this.description=$e[10],this.vendorUrl=$e[11],this.designerUrl=$e[12],this.license=$e[13],this.licenseUrl=$e[14],this.preferredFamily=$e[15],this.preferredSubfamily=$e[17],this.compatibleFull=$e[18],this.sampleText=$e[19]},wt}(),Qh=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return el(wt,Gu),wt.prototype.tag="maxp",wt.prototype.parse=function(bt){return bt.pos=this.offset,this.version=bt.readInt(),this.numGlyphs=bt.readUInt16(),this.maxPoints=bt.readUInt16(),this.maxContours=bt.readUInt16(),this.maxCompositePoints=bt.readUInt16(),this.maxComponentContours=bt.readUInt16(),this.maxZones=bt.readUInt16(),this.maxTwilightPoints=bt.readUInt16(),this.maxStorage=bt.readUInt16(),this.maxFunctionDefs=bt.readUInt16(),this.maxInstructionDefs=bt.readUInt16(),this.maxStackElements=bt.readUInt16(),this.maxSizeOfInstructions=bt.readUInt16(),this.maxComponentElements=bt.readUInt16(),this.maxComponentDepth=bt.readUInt16()},wt}(),Cu=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return el(wt,Gu),wt.prototype.tag="hmtx",wt.prototype.parse=function(bt){var Ht,ie,Yt,ge,we,be,$e;for(bt.pos=this.offset,this.metrics=[],Ht=0,be=this.file.hhea.numberOfMetrics;0<=be?Ht<be:Ht>be;Ht=0<=be?++Ht:--Ht)this.metrics.push({advance:bt.readUInt16(),lsb:bt.readInt16()});for(Yt=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var dn,fn;for(fn=[],Ht=dn=0;0<=Yt?dn<Yt:dn>Yt;Ht=0<=Yt?++dn:--dn)fn.push(bt.readInt16());return fn}(),this.widths=function(){var dn,fn,Pn,Ke;for(Ke=[],dn=0,fn=(Pn=this.metrics).length;dn<fn;dn++)ge=Pn[dn],Ke.push(ge.advance);return Ke}.call(this),ie=this.widths[this.widths.length-1],$e=[],Ht=we=0;0<=Yt?we<Yt:we>Yt;Ht=0<=Yt?++we:--we)$e.push(this.widths.push(ie));return $e},wt.prototype.forGlyph=function(bt){return bt in this.metrics?this.metrics[bt]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[bt-this.metrics.length]}},wt}(),wd=[].slice,Ea=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return el(wt,Gu),wt.prototype.tag="glyf",wt.prototype.parse=function(){return this.cache={}},wt.prototype.glyphFor=function(bt){var Ht,ie,Yt,ge,we,be,$e,dn,fn,Pn;return bt in this.cache?this.cache[bt]:(ge=this.file.loca,Ht=this.file.contents,ie=ge.indexOf(bt),(Yt=ge.lengthOf(bt))===0?this.cache[bt]=null:(Ht.pos=this.offset+ie,we=(be=new Ch(Ht.read(Yt))).readShort(),dn=be.readShort(),Pn=be.readShort(),$e=be.readShort(),fn=be.readShort(),this.cache[bt]=we===-1?new Fa(be,dn,Pn,$e,fn):new oh(be,we,dn,Pn,$e,fn),this.cache[bt]))},wt.prototype.encode=function(bt,Ht,ie){var Yt,ge,we,be,$e;for(we=[],ge=[],be=0,$e=Ht.length;be<$e;be++)Yt=bt[Ht[be]],ge.push(we.length),Yt&&(we=we.concat(Yt.encode(ie)));return ge.push(we.length),{table:we,offsets:ge}},wt}(),oh=function(){function Et(wt,bt,Ht,ie,Yt,ge){this.raw=wt,this.numberOfContours=bt,this.xMin=Ht,this.yMin=ie,this.xMax=Yt,this.yMax=ge,this.compound=!1}return Et.prototype.encode=function(){return this.raw.data},Et}(),Fa=function(){function Et(wt,bt,Ht,ie,Yt){var ge,we;for(this.raw=wt,this.xMin=bt,this.yMin=Ht,this.xMax=ie,this.yMax=Yt,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],ge=this.raw;we=ge.readShort(),this.glyphOffsets.push(ge.pos),this.glyphIDs.push(ge.readUInt16()),32&we;)ge.pos+=1&we?4:2,128&we?ge.pos+=8:64&we?ge.pos+=4:8&we&&(ge.pos+=2)}return Et.prototype.encode=function(){var wt,bt,Ht;for(bt=new Ch(wd.call(this.raw.data)),wt=0,Ht=this.glyphIDs.length;wt<Ht;++wt)bt.pos=this.glyphOffsets[wt];return bt.data},Et}(),gl=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return el(wt,Gu),wt.prototype.tag="loca",wt.prototype.parse=function(bt){var Ht,ie;return bt.pos=this.offset,Ht=this.file.head.indexToLocFormat,this.offsets=Ht===0?function(){var Yt,ge;for(ge=[],ie=0,Yt=this.length;ie<Yt;ie+=2)ge.push(2*bt.readUInt16());return ge}.call(this):function(){var Yt,ge;for(ge=[],ie=0,Yt=this.length;ie<Yt;ie+=4)ge.push(bt.readUInt32());return ge}.call(this)},wt.prototype.indexOf=function(bt){return this.offsets[bt]},wt.prototype.lengthOf=function(bt){return this.offsets[bt+1]-this.offsets[bt]},wt.prototype.encode=function(bt,Ht){for(var ie=new Uint32Array(this.offsets.length),Yt=0,ge=0,we=0;we<ie.length;++we)if(ie[we]=Yt,ge<Ht.length&&Ht[ge]==we){++ge,ie[we]=Yt;var be=this.offsets[we],$e=this.offsets[we+1]-be;$e>0&&(Yt+=$e)}for(var dn=new Array(4*ie.length),fn=0;fn<ie.length;++fn)dn[4*fn+3]=255&ie[fn],dn[4*fn+2]=(65280&ie[fn])>>8,dn[4*fn+1]=(16711680&ie[fn])>>16,dn[4*fn]=(4278190080&ie[fn])>>24;return dn},wt}(),Hl=function(){function Et(wt){this.font=wt,this.subset={},this.unicodes={},this.next=33}return Et.prototype.generateCmap=function(){var wt,bt,Ht,ie,Yt;for(bt in ie=this.font.cmap.tables[0].codeMap,wt={},Yt=this.subset)Ht=Yt[bt],wt[bt]=ie[Ht];return wt},Et.prototype.glyphsFor=function(wt){var bt,Ht,ie,Yt,ge,we,be;for(ie={},ge=0,we=wt.length;ge<we;ge++)ie[Yt=wt[ge]]=this.font.glyf.glyphFor(Yt);for(Yt in bt=[],ie)(Ht=ie[Yt])!=null&&Ht.compound&&bt.push.apply(bt,Ht.glyphIDs);if(bt.length>0)for(Yt in be=this.glyphsFor(bt))Ht=be[Yt],ie[Yt]=Ht;return ie},Et.prototype.encode=function(wt,bt){var Ht,ie,Yt,ge,we,be,$e,dn,fn,Pn,Ke,mi,Jn,yi,Un;for(ie in Ht=Zu.encode(this.generateCmap(),"unicode"),ge=this.glyphsFor(wt),Ke={0:0},Un=Ht.charMap)Ke[(be=Un[ie]).old]=be.new;for(mi in Pn=Ht.maxGlyphID,ge)mi in Ke||(Ke[mi]=Pn++);return dn=function(di){var Qi,ir;for(Qi in ir={},di)ir[di[Qi]]=Qi;return ir}(Ke),fn=Object.keys(dn).sort(function(di,Qi){return di-Qi}),Jn=function(){var di,Qi,ir;for(ir=[],di=0,Qi=fn.length;di<Qi;di++)we=fn[di],ir.push(dn[we]);return ir}(),Yt=this.font.glyf.encode(ge,Jn,Ke),$e=this.font.loca.encode(Yt.offsets,Jn),yi={cmap:this.font.cmap.raw(),glyf:Yt.table,loca:$e,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(bt)},this.font.os2.exists&&(yi["OS/2"]=this.font.os2.raw()),this.font.directory.encode(yi)},Et}();Ro.API.PDFObject=function(){var Et;function wt(){}return Et=function(bt,Ht){return(Array(Ht+1).join("0")+bt).slice(-Ht)},wt.convert=function(bt){var Ht,ie,Yt,ge;if(Array.isArray(bt))return"["+function(){var we,be,$e;for($e=[],we=0,be=bt.length;we<be;we++)Ht=bt[we],$e.push(wt.convert(Ht));return $e}().join(" ")+"]";if(typeof bt=="string")return"/"+bt;if(bt!=null&&bt.isString)return"("+bt+")";if(bt instanceof Date)return"(D:"+Et(bt.getUTCFullYear(),4)+Et(bt.getUTCMonth(),2)+Et(bt.getUTCDate(),2)+Et(bt.getUTCHours(),2)+Et(bt.getUTCMinutes(),2)+Et(bt.getUTCSeconds(),2)+"Z)";if({}.toString.call(bt)==="[object Object]"){for(ie in Yt=["<<"],bt)ge=bt[ie],Yt.push("/"+ie+" "+wt.convert(ge));return Yt.push(">>"),Yt.join(`
|
|
|
`)}return""+bt},wt}();var Yl=Ro},86129:function(hi,Cn,Ft){var Mt=Ft(19208).lW,ce=Ft(97671);(function(re){hi.exports=re()})(function(){return function re(Ie,ee,Vt){function Nt(Pt,oe){if(!ee[Pt]){if(!Ie[Pt]){var Kt=void 0;if(!oe&&Kt)return require(Pt,!0);if(jt)return jt(Pt,!0);var $t=new Error("Cannot find module '"+Pt+"'");throw $t.code="MODULE_NOT_FOUND",$t}var Ct=ee[Pt]={exports:{}};Ie[Pt][0].call(Ct.exports,function(et){var tt=Ie[Pt][1][et];return Nt(tt||et)},Ct,Ct.exports,re,Ie,ee,Vt)}return ee[Pt].exports}for(var jt=void 0,te=0;te<Vt.length;te++)Nt(Vt[te]);return Nt}({1:[function(re,Ie,ee){"use strict";var Vt=re("./utils"),Nt=re("./support"),jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";ee.encode=function(te){for(var Pt,oe,Kt,$t,Ct,et,tt,lt=[],rt=0,ht=te.length,dt=ht,xt=Vt.getTypeOf(te)!=="string";rt<te.length;)dt=ht-rt,Kt=xt?(Pt=te[rt++],oe=rt<ht?te[rt++]:0,rt<ht?te[rt++]:0):(Pt=te.charCodeAt(rt++),oe=rt<ht?te.charCodeAt(rt++):0,rt<ht?te.charCodeAt(rt++):0),$t=Pt>>2,Ct=(3&Pt)<<4|oe>>4,et=1<dt?(15&oe)<<2|Kt>>6:64,tt=2<dt?63&Kt:64,lt.push(jt.charAt($t)+jt.charAt(Ct)+jt.charAt(et)+jt.charAt(tt));return lt.join("")},ee.decode=function(te){var Pt,oe,Kt,$t,Ct,et,tt=0,lt=0,rt="data:";if(te.substr(0,rt.length)===rt)throw new Error("Invalid base64 input, it looks like a data url.");var ht,dt=3*(te=te.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(te.charAt(te.length-1)===jt.charAt(64)&&dt--,te.charAt(te.length-2)===jt.charAt(64)&&dt--,dt%1!=0)throw new Error("Invalid base64 input, bad content length.");for(ht=Nt.uint8array?new Uint8Array(0|dt):new Array(0|dt);tt<te.length;)Pt=jt.indexOf(te.charAt(tt++))<<2|($t=jt.indexOf(te.charAt(tt++)))>>4,oe=(15&$t)<<4|(Ct=jt.indexOf(te.charAt(tt++)))>>2,Kt=(3&Ct)<<6|(et=jt.indexOf(te.charAt(tt++))),ht[lt++]=Pt,Ct!==64&&(ht[lt++]=oe),et!==64&&(ht[lt++]=Kt);return ht}},{"./support":30,"./utils":32}],2:[function(re,Ie,ee){"use strict";var Vt=re("./external"),Nt=re("./stream/DataWorker"),jt=re("./stream/Crc32Probe"),te=re("./stream/DataLengthProbe");function Pt(oe,Kt,$t,Ct,et){this.compressedSize=oe,this.uncompressedSize=Kt,this.crc32=$t,this.compression=Ct,this.compressedContent=et}Pt.prototype={getContentWorker:function(){var oe=new Nt(Vt.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new te("data_length")),Kt=this;return oe.on("end",function(){if(this.streamInfo.data_length!==Kt.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),oe},getCompressedWorker:function(){return new Nt(Vt.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},Pt.createWorkerFrom=function(oe,Kt,$t){return oe.pipe(new jt).pipe(new te("uncompressedSize")).pipe(Kt.compressWorker($t)).pipe(new te("compressedSize")).withStreamInfo("compression",Kt)},Ie.exports=Pt},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(re,Ie,ee){"use strict";var Vt=re("./stream/GenericWorker");ee.STORE={magic:"\0\0",compressWorker:function(){return new Vt("STORE compression")},uncompressWorker:function(){return new Vt("STORE decompression")}},ee.DEFLATE=re("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(re,Ie,ee){"use strict";var Vt=re("./utils"),Nt=function(){for(var jt,te=[],Pt=0;Pt<256;Pt++){jt=Pt;for(var oe=0;oe<8;oe++)jt=1&jt?3988292384^jt>>>1:jt>>>1;te[Pt]=jt}return te}();Ie.exports=function(jt,te){return jt!==void 0&&jt.length?Vt.getTypeOf(jt)!=="string"?function(Pt,oe,Kt,$t){var Ct=Nt,et=$t+Kt;Pt^=-1;for(var tt=$t;tt<et;tt++)Pt=Pt>>>8^Ct[255&(Pt^oe[tt])];return-1^Pt}(0|te,jt,jt.length,0):function(Pt,oe,Kt,$t){var Ct=Nt,et=$t+Kt;Pt^=-1;for(var tt=$t;tt<et;tt++)Pt=Pt>>>8^Ct[255&(Pt^oe.charCodeAt(tt))];return-1^Pt}(0|te,jt,jt.length,0):0}},{"./utils":32}],5:[function(re,Ie,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,Ie,ee){"use strict";var Vt=null;Vt=typeof Promise!="undefined"?Promise:re("lie"),Ie.exports={Promise:Vt}},{lie:37}],7:[function(re,Ie,ee){"use strict";var Vt=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",Nt=re("pako"),jt=re("./utils"),te=re("./stream/GenericWorker"),Pt=Vt?"uint8array":"array";function oe(Kt,$t){te.call(this,"FlateWorker/"+Kt),this._pako=null,this._pakoAction=Kt,this._pakoOptions=$t,this.meta={}}ee.magic="\b\0",jt.inherits(oe,te),oe.prototype.processChunk=function(Kt){this.meta=Kt.meta,this._pako===null&&this._createPako(),this._pako.push(jt.transformTo(Pt,Kt.data),!1)},oe.prototype.flush=function(){te.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},oe.prototype.cleanUp=function(){te.prototype.cleanUp.call(this),this._pako=null},oe.prototype._createPako=function(){this._pako=new Nt[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var Kt=this;this._pako.onData=function($t){Kt.push({data:$t,meta:Kt.meta})}},ee.compressWorker=function(Kt){return new oe("Deflate",Kt)},ee.uncompressWorker=function(){return new oe("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(re,Ie,ee){"use strict";function Vt(Ct,et){var tt,lt="";for(tt=0;tt<et;tt++)lt+=String.fromCharCode(255&Ct),Ct>>>=8;return lt}function Nt(Ct,et,tt,lt,rt,ht){var dt,xt,It=Ct.file,Ut=Ct.compression,Gt=ht!==Pt.utf8encode,se=jt.transformTo("string",ht(It.name)),ue=jt.transformTo("string",Pt.utf8encode(It.name)),Ae=It.comment,Pe=jt.transformTo("string",ht(Ae)),qt=jt.transformTo("string",Pt.utf8encode(Ae)),ze=ue.length!==It.name.length,Wt=qt.length!==Ae.length,Ge="",_e="",Me="",We=It.dir,Re=It.date,ye={crc32:0,compressedSize:0,uncompressedSize:0};et&&!tt||(ye.crc32=Ct.crc32,ye.compressedSize=Ct.compressedSize,ye.uncompressedSize=Ct.uncompressedSize);var ne=0;et&&(ne|=8),Gt||!ze&&!Wt||(ne|=2048);var Ce=0,bn=0;We&&(Ce|=16),rt==="UNIX"?(bn=798,Ce|=function(Ze,Mn){var Vn=Ze;return Ze||(Vn=Mn?16893:33204),(65535&Vn)<<16}(It.unixPermissions,We)):(bn=20,Ce|=function(Ze){return 63&(Ze||0)}(It.dosPermissions)),dt=Re.getUTCHours(),dt<<=6,dt|=Re.getUTCMinutes(),dt<<=5,dt|=Re.getUTCSeconds()/2,xt=Re.getUTCFullYear()-1980,xt<<=4,xt|=Re.getUTCMonth()+1,xt<<=5,xt|=Re.getUTCDate(),ze&&(_e=Vt(1,1)+Vt(oe(se),4)+ue,Ge+="up"+Vt(_e.length,2)+_e),Wt&&(Me=Vt(1,1)+Vt(oe(Pe),4)+qt,Ge+="uc"+Vt(Me.length,2)+Me);var Ln="";return Ln+=`
|
|
|
\0`,Ln+=Vt(ne,2),Ln+=Ut.magic,Ln+=Vt(dt,2),Ln+=Vt(xt,2),Ln+=Vt(ye.crc32,4),Ln+=Vt(ye.compressedSize,4),Ln+=Vt(ye.uncompressedSize,4),Ln+=Vt(se.length,2),Ln+=Vt(Ge.length,2),{fileRecord:Kt.LOCAL_FILE_HEADER+Ln+se+Ge,dirRecord:Kt.CENTRAL_FILE_HEADER+Vt(bn,2)+Ln+Vt(Pe.length,2)+"\0\0\0\0"+Vt(Ce,4)+Vt(lt,4)+se+Ge+Pe}}var jt=re("../utils"),te=re("../stream/GenericWorker"),Pt=re("../utf8"),oe=re("../crc32"),Kt=re("../signature");function $t(Ct,et,tt,lt){te.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($t,te),$t.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,te.prototype.push.call(this,{data:Ct.data,meta:{currentFile:this.currentFile,percent:tt?(et+100*(tt-lt-1))/tt:100}}))},$t.prototype.openedSource=function(Ct){this.currentSourceOffset=this.bytesWritten,this.currentFile=Ct.file.name;var et=this.streamFiles&&!Ct.file.dir;if(et){var tt=Nt(Ct,et,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:tt.fileRecord,meta:{percent:0}})}else this.accumulate=!0},$t.prototype.closedSource=function(Ct){this.accumulate=!1;var et=this.streamFiles&&!Ct.file.dir,tt=Nt(Ct,et,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(tt.dirRecord),et)this.push({data:function(lt){return Kt.DATA_DESCRIPTOR+Vt(lt.crc32,4)+Vt(lt.compressedSize,4)+Vt(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},$t.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,ht,dt,xt,It){var Ut=jt.transformTo("string",It(xt));return Kt.CENTRAL_DIRECTORY_END+"\0\0\0\0"+Vt(rt,2)+Vt(rt,2)+Vt(ht,4)+Vt(dt,4)+Vt(Ut.length,2)+Ut}(this.dirRecords.length,tt,Ct,this.zipComment,this.encodeFileName);this.push({data:lt,meta:{percent:100}})},$t.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},$t.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},$t.prototype.resume=function(){return!!te.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},$t.prototype.error=function(Ct){var et=this._sources;if(!te.prototype.error.call(this,Ct))return!1;for(var tt=0;tt<et.length;tt++)try{et[tt].error(Ct)}catch(lt){}return!0},$t.prototype.lock=function(){te.prototype.lock.call(this);for(var Ct=this._sources,et=0;et<Ct.length;et++)Ct[et].lock()},Ie.exports=$t},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(re,Ie,ee){"use strict";var Vt=re("../compressions"),Nt=re("./ZipFileWorker");ee.generateWorker=function(jt,te,Pt){var oe=new Nt(te.streamFiles,Pt,te.platform,te.encodeFileName),Kt=0;try{jt.forEach(function($t,Ct){Kt++;var et=function(ht,dt){var xt=ht||dt,It=Vt[xt];if(!It)throw new Error(xt+" is not a valid compression method !");return It}(Ct.options.compression,te.compression),tt=Ct.options.compressionOptions||te.compressionOptions||{},lt=Ct.dir,rt=Ct.date;Ct._compressWorker(et,tt).withStreamInfo("file",{name:$t,dir:lt,date:rt,comment:Ct.comment||"",unixPermissions:Ct.unixPermissions,dosPermissions:Ct.dosPermissions}).pipe(oe)}),oe.entriesCount=Kt}catch($t){oe.error($t)}return oe}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(re,Ie,ee){"use strict";function Vt(){if(!(this instanceof Vt))return new Vt;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 Nt=new Vt;for(var jt in this)typeof this[jt]!="function"&&(Nt[jt]=this[jt]);return Nt}}(Vt.prototype=re("./object")).loadAsync=re("./load"),Vt.support=re("./support"),Vt.defaults=re("./defaults"),Vt.version="3.10.1",Vt.loadAsync=function(Nt,jt){return new Vt().loadAsync(Nt,jt)},Vt.external=re("./external"),Ie.exports=Vt},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(re,Ie,ee){"use strict";var Vt=re("./utils"),Nt=re("./external"),jt=re("./utf8"),te=re("./zipEntries"),Pt=re("./stream/Crc32Probe"),oe=re("./nodejsUtils");function Kt($t){return new Nt.Promise(function(Ct,et){var tt=$t.decompressed.getContentWorker().pipe(new Pt);tt.on("error",function(lt){et(lt)}).on("end",function(){tt.streamInfo.crc32!==$t.decompressed.crc32?et(new Error("Corrupted zip : CRC32 mismatch")):Ct()}).resume()})}Ie.exports=function($t,Ct){var et=this;return Ct=Vt.extend(Ct||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:jt.utf8decode}),oe.isNode&&oe.isStream($t)?Nt.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Vt.prepareContent("the loaded zip file",$t,!0,Ct.optimizedBinaryString,Ct.base64).then(function(tt){var lt=new te(Ct);return lt.load(tt),lt}).then(function(tt){var lt=[Nt.Promise.resolve(tt)],rt=tt.files;if(Ct.checkCRC32)for(var ht=0;ht<rt.length;ht++)lt.push(Kt(rt[ht]));return Nt.Promise.all(lt)}).then(function(tt){for(var lt=tt.shift(),rt=lt.files,ht=0;ht<rt.length;ht++){var dt=rt[ht],xt=dt.fileNameStr,It=Vt.resolve(dt.fileNameStr);et.file(It,dt.decompressed,{binary:!0,optimizedBinaryString:!0,date:dt.date,dir:dt.dir,comment:dt.fileCommentStr.length?dt.fileCommentStr:null,unixPermissions:dt.unixPermissions,dosPermissions:dt.dosPermissions,createFolders:Ct.createFolders}),dt.dir||(et.file(It).unsafeOriginalName=xt)}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,Ie,ee){"use strict";var Vt=re("../utils"),Nt=re("../stream/GenericWorker");function jt(te,Pt){Nt.call(this,"Nodejs stream input adapter for "+te),this._upstreamEnded=!1,this._bindStream(Pt)}Vt.inherits(jt,Nt),jt.prototype._bindStream=function(te){var Pt=this;(this._stream=te).pause(),te.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!!Nt.prototype.pause.call(this)&&(this._stream.pause(),!0)},jt.prototype.resume=function(){return!!Nt.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},Ie.exports=jt},{"../stream/GenericWorker":28,"../utils":32}],13:[function(re,Ie,ee){"use strict";var Vt=re("readable-stream").Readable;function Nt(jt,te,Pt){Vt.call(this,te),this._helper=jt;var oe=this;jt.on("data",function(Kt,$t){oe.push(Kt)||oe._helper.pause(),Pt&&Pt($t)}).on("error",function(Kt){oe.emit("error",Kt)}).on("end",function(){oe.push(null)})}re("../utils").inherits(Nt,Vt),Nt.prototype._read=function(){this._helper.resume()},Ie.exports=Nt},{"../utils":32,"readable-stream":16}],14:[function(re,Ie,ee){"use strict";Ie.exports={isNode:typeof Mt!="undefined",newBufferFrom:function(Vt,Nt){if(Mt.from&&Mt.from!==Uint8Array.from)return Mt.from(Vt,Nt);if(typeof Vt=="number")throw new Error('The "data" argument must not be a number');return new Mt(Vt,Nt)},allocBuffer:function(Vt){if(Mt.alloc)return Mt.alloc(Vt);var Nt=new Mt(Vt);return Nt.fill(0),Nt},isBuffer:function(Vt){return Mt.isBuffer(Vt)},isStream:function(Vt){return Vt&&typeof Vt.on=="function"&&typeof Vt.pause=="function"&&typeof Vt.resume=="function"}}},{}],15:[function(re,Ie,ee){"use strict";function Vt(It,Ut,Gt){var se,ue=jt.getTypeOf(Ut),Ae=jt.extend(Gt||{},oe);Ae.date=Ae.date||new Date,Ae.compression!==null&&(Ae.compression=Ae.compression.toUpperCase()),typeof Ae.unixPermissions=="string"&&(Ae.unixPermissions=parseInt(Ae.unixPermissions,8)),Ae.unixPermissions&&16384&Ae.unixPermissions&&(Ae.dir=!0),Ae.dosPermissions&&16&Ae.dosPermissions&&(Ae.dir=!0),Ae.dir&&(It=rt(It)),Ae.createFolders&&(se=lt(It))&&ht.call(this,se,!0);var Pe=ue==="string"&&Ae.binary===!1&&Ae.base64===!1;Gt&&Gt.binary!==void 0||(Ae.binary=!Pe),(Ut instanceof Kt&&Ut.uncompressedSize===0||Ae.dir||!Ut||Ut.length===0)&&(Ae.base64=!1,Ae.binary=!0,Ut="",Ae.compression="STORE",ue="string");var qt=null;qt=Ut instanceof Kt||Ut instanceof te?Ut:et.isNode&&et.isStream(Ut)?new tt(It,Ut):jt.prepareContent(It,Ut,Ae.binary,Ae.optimizedBinaryString,Ae.base64);var ze=new $t(It,qt,Ae);this.files[It]=ze}var Nt=re("./utf8"),jt=re("./utils"),te=re("./stream/GenericWorker"),Pt=re("./stream/StreamHelper"),oe=re("./defaults"),Kt=re("./compressedObject"),$t=re("./zipObject"),Ct=re("./generate"),et=re("./nodejsUtils"),tt=re("./nodejs/NodejsStreamInputAdapter"),lt=function(It){It.slice(-1)==="/"&&(It=It.substring(0,It.length-1));var Ut=It.lastIndexOf("/");return 0<Ut?It.substring(0,Ut):""},rt=function(It){return It.slice(-1)!=="/"&&(It+="/"),It},ht=function(It,Ut){return Ut=Ut!==void 0?Ut:oe.createFolders,It=rt(It),this.files[It]||Vt.call(this,It,null,{dir:!0,createFolders:Ut}),this.files[It]};function dt(It){return Object.prototype.toString.call(It)==="[object RegExp]"}var xt={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(It){var Ut,Gt,se;for(Ut in this.files)se=this.files[Ut],(Gt=Ut.slice(this.root.length,Ut.length))&&Ut.slice(0,this.root.length)===this.root&&It(Gt,se)},filter:function(It){var Ut=[];return this.forEach(function(Gt,se){It(Gt,se)&&Ut.push(se)}),Ut},file:function(It,Ut,Gt){if(arguments.length!==1)return It=this.root+It,Vt.call(this,It,Ut,Gt),this;if(dt(It)){var se=It;return this.filter(function(Ae,Pe){return!Pe.dir&&se.test(Ae)})}var ue=this.files[this.root+It];return ue&&!ue.dir?ue:null},folder:function(It){if(!It)return this;if(dt(It))return this.filter(function(ue,Ae){return Ae.dir&&It.test(ue)});var Ut=this.root+It,Gt=ht.call(this,Ut),se=this.clone();return se.root=Gt.name,se},remove:function(It){It=this.root+It;var Ut=this.files[It];if(Ut||(It.slice(-1)!=="/"&&(It+="/"),Ut=this.files[It]),Ut&&!Ut.dir)delete this.files[It];else for(var Gt=this.filter(function(ue,Ae){return Ae.name.slice(0,It.length)===It}),se=0;se<Gt.length;se++)delete this.files[Gt[se].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(It){var Ut,Gt={};try{if((Gt=jt.extend(It||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Nt.utf8encode})).type=Gt.type.toLowerCase(),Gt.compression=Gt.compression.toUpperCase(),Gt.type==="binarystring"&&(Gt.type="string"),!Gt.type)throw new Error("No output type specified.");jt.checkSupport(Gt.type),Gt.platform!=="darwin"&&Gt.platform!=="freebsd"&&Gt.platform!=="linux"&&Gt.platform!=="sunos"||(Gt.platform="UNIX"),Gt.platform==="win32"&&(Gt.platform="DOS");var se=Gt.comment||this.comment||"";Ut=Ct.generateWorker(this,Gt,se)}catch(ue){(Ut=new te("error")).error(ue)}return new Pt(Ut,Gt.type||"string",Gt.mimeType)},generateAsync:function(It,Ut){return this.generateInternalStream(It).accumulate(Ut)},generateNodeStream:function(It,Ut){return(It=It||{}).type||(It.type="nodebuffer"),this.generateInternalStream(It).toNodejsStream(Ut)}};Ie.exports=xt},{"./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,Ie,ee){"use strict";Ie.exports=re("stream")},{stream:void 0}],17:[function(re,Ie,ee){"use strict";var Vt=re("./DataReader");function Nt(jt){Vt.call(this,jt);for(var te=0;te<this.data.length;te++)jt[te]=255&jt[te]}re("../utils").inherits(Nt,Vt),Nt.prototype.byteAt=function(jt){return this.data[this.zero+jt]},Nt.prototype.lastIndexOfSignature=function(jt){for(var te=jt.charCodeAt(0),Pt=jt.charCodeAt(1),oe=jt.charCodeAt(2),Kt=jt.charCodeAt(3),$t=this.length-4;0<=$t;--$t)if(this.data[$t]===te&&this.data[$t+1]===Pt&&this.data[$t+2]===oe&&this.data[$t+3]===Kt)return $t-this.zero;return-1},Nt.prototype.readAndCheckSignature=function(jt){var te=jt.charCodeAt(0),Pt=jt.charCodeAt(1),oe=jt.charCodeAt(2),Kt=jt.charCodeAt(3),$t=this.readData(4);return te===$t[0]&&Pt===$t[1]&&oe===$t[2]&&Kt===$t[3]},Nt.prototype.readData=function(jt){if(this.checkOffset(jt),jt===0)return[];var te=this.data.slice(this.zero+this.index,this.zero+this.index+jt);return this.index+=jt,te},Ie.exports=Nt},{"../utils":32,"./DataReader":18}],18:[function(re,Ie,ee){"use strict";var Vt=re("../utils");function Nt(jt){this.data=jt,this.length=jt.length,this.index=0,this.zero=0}Nt.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 te,Pt=0;for(this.checkOffset(jt),te=this.index+jt-1;te>=this.index;te--)Pt=(Pt<<8)+this.byteAt(te);return this.index+=jt,Pt},readString:function(jt){return Vt.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))}},Ie.exports=Nt},{"../utils":32}],19:[function(re,Ie,ee){"use strict";var Vt=re("./Uint8ArrayReader");function Nt(jt){Vt.call(this,jt)}re("../utils").inherits(Nt,Vt),Nt.prototype.readData=function(jt){this.checkOffset(jt);var te=this.data.slice(this.zero+this.index,this.zero+this.index+jt);return this.index+=jt,te},Ie.exports=Nt},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(re,Ie,ee){"use strict";var Vt=re("./DataReader");function Nt(jt){Vt.call(this,jt)}re("../utils").inherits(Nt,Vt),Nt.prototype.byteAt=function(jt){return this.data.charCodeAt(this.zero+jt)},Nt.prototype.lastIndexOfSignature=function(jt){return this.data.lastIndexOf(jt)-this.zero},Nt.prototype.readAndCheckSignature=function(jt){return jt===this.readData(4)},Nt.prototype.readData=function(jt){this.checkOffset(jt);var te=this.data.slice(this.zero+this.index,this.zero+this.index+jt);return this.index+=jt,te},Ie.exports=Nt},{"../utils":32,"./DataReader":18}],21:[function(re,Ie,ee){"use strict";var Vt=re("./ArrayReader");function Nt(jt){Vt.call(this,jt)}re("../utils").inherits(Nt,Vt),Nt.prototype.readData=function(jt){if(this.checkOffset(jt),jt===0)return new Uint8Array(0);var te=this.data.subarray(this.zero+this.index,this.zero+this.index+jt);return this.index+=jt,te},Ie.exports=Nt},{"../utils":32,"./ArrayReader":17}],22:[function(re,Ie,ee){"use strict";var Vt=re("../utils"),Nt=re("../support"),jt=re("./ArrayReader"),te=re("./StringReader"),Pt=re("./NodeBufferReader"),oe=re("./Uint8ArrayReader");Ie.exports=function(Kt){var $t=Vt.getTypeOf(Kt);return Vt.checkSupport($t),$t!=="string"||Nt.uint8array?$t==="nodebuffer"?new Pt(Kt):Nt.uint8array?new oe(Vt.transformTo("uint8array",Kt)):new jt(Vt.transformTo("array",Kt)):new te(Kt)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(re,Ie,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,Ie,ee){"use strict";var Vt=re("./GenericWorker"),Nt=re("../utils");function jt(te){Vt.call(this,"ConvertWorker to "+te),this.destType=te}Nt.inherits(jt,Vt),jt.prototype.processChunk=function(te){this.push({data:Nt.transformTo(this.destType,te.data),meta:te.meta})},Ie.exports=jt},{"../utils":32,"./GenericWorker":28}],25:[function(re,Ie,ee){"use strict";var Vt=re("./GenericWorker"),Nt=re("../crc32");function jt(){Vt.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}re("../utils").inherits(jt,Vt),jt.prototype.processChunk=function(te){this.streamInfo.crc32=Nt(te.data,this.streamInfo.crc32||0),this.push(te)},Ie.exports=jt},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(re,Ie,ee){"use strict";var Vt=re("../utils"),Nt=re("./GenericWorker");function jt(te){Nt.call(this,"DataLengthProbe for "+te),this.propName=te,this.withStreamInfo(te,0)}Vt.inherits(jt,Nt),jt.prototype.processChunk=function(te){if(te){var Pt=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=Pt+te.data.length}Nt.prototype.processChunk.call(this,te)},Ie.exports=jt},{"../utils":32,"./GenericWorker":28}],27:[function(re,Ie,ee){"use strict";var Vt=re("../utils"),Nt=re("./GenericWorker");function jt(te){Nt.call(this,"DataWorker");var Pt=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,te.then(function(oe){Pt.dataIsReady=!0,Pt.data=oe,Pt.max=oe&&oe.length||0,Pt.type=Vt.getTypeOf(oe),Pt.isPaused||Pt._tickAndRepeat()},function(oe){Pt.error(oe)})}Vt.inherits(jt,Nt),jt.prototype.cleanUp=function(){Nt.prototype.cleanUp.call(this),this.data=null},jt.prototype.resume=function(){return!!Nt.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Vt.delay(this._tickAndRepeat,[],this)),!0)},jt.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(Vt.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},jt.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var te=null,Pt=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":te=this.data.substring(this.index,Pt);break;case"uint8array":te=this.data.subarray(this.index,Pt);break;case"array":case"nodebuffer":te=this.data.slice(this.index,Pt)}return this.index=Pt,this.push({data:te,meta:{percent:this.max?this.index/this.max*100:0}})},Ie.exports=jt},{"../utils":32,"./GenericWorker":28}],28:[function(re,Ie,ee){"use strict";function Vt(Nt){this.name=Nt||"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}Vt.prototype={push:function(Nt){this.emit("data",Nt)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(Nt){this.emit("error",Nt)}return!0},error:function(Nt){return!this.isFinished&&(this.isPaused?this.generatedError=Nt:(this.isFinished=!0,this.emit("error",Nt),this.previous&&this.previous.error(Nt),this.cleanUp()),!0)},on:function(Nt,jt){return this._listeners[Nt].push(jt),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(Nt,jt){if(this._listeners[Nt])for(var te=0;te<this._listeners[Nt].length;te++)this._listeners[Nt][te].call(this,jt)},pipe:function(Nt){return Nt.registerPrevious(this)},registerPrevious:function(Nt){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=Nt.streamInfo,this.mergeStreamInfo(),this.previous=Nt;var jt=this;return Nt.on("data",function(te){jt.processChunk(te)}),Nt.on("end",function(){jt.end()}),Nt.on("error",function(te){jt.error(te)}),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 Nt=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),Nt=!0),this.previous&&this.previous.resume(),!Nt},flush:function(){},processChunk:function(Nt){this.push(Nt)},withStreamInfo:function(Nt,jt){return this.extraStreamInfo[Nt]=jt,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var Nt in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,Nt)&&(this.streamInfo[Nt]=this.extraStreamInfo[Nt])},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 Nt="Worker "+this.name;return this.previous?this.previous+" -> "+Nt:Nt}},Ie.exports=Vt},{}],29:[function(re,Ie,ee){"use strict";var Vt=re("../utils"),Nt=re("./ConvertWorker"),jt=re("./GenericWorker"),te=re("../base64"),Pt=re("../support"),oe=re("../external"),Kt=null;if(Pt.nodestream)try{Kt=re("../nodejs/NodejsStreamOutputAdapter")}catch(et){}function $t(et,tt){return new oe.Promise(function(lt,rt){var ht=[],dt=et._internalType,xt=et._outputType,It=et._mimeType;et.on("data",function(Ut,Gt){ht.push(Ut),tt&&tt(Gt)}).on("error",function(Ut){ht=[],rt(Ut)}).on("end",function(){try{var Ut=function(Gt,se,ue){switch(Gt){case"blob":return Vt.newBlob(Vt.transformTo("arraybuffer",se),ue);case"base64":return te.encode(se);default:return Vt.transformTo(Gt,se)}}(xt,function(Gt,se){var ue,Ae=0,Pe=null,qt=0;for(ue=0;ue<se.length;ue++)qt+=se[ue].length;switch(Gt){case"string":return se.join("");case"array":return Array.prototype.concat.apply([],se);case"uint8array":for(Pe=new Uint8Array(qt),ue=0;ue<se.length;ue++)Pe.set(se[ue],Ae),Ae+=se[ue].length;return Pe;case"nodebuffer":return Mt.concat(se);default:throw new Error("concat : unsupported type '"+Gt+"'")}}(dt,ht),It);lt(Ut)}catch(Gt){rt(Gt)}ht=[]}).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,Vt.checkSupport(rt),this._worker=et.pipe(new Nt(rt)),et.lock()}catch(ht){this._worker=new jt("error"),this._worker.error(ht)}}Ct.prototype={accumulate:function(et){return $t(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(){Vt.delay(tt,arguments,lt)}),this},resume:function(){return Vt.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(et){if(Vt.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new Kt(this,{objectMode:this._outputType!=="nodebuffer"},et)}},Ie.exports=Ct},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(re,Ie,ee){"use strict";if(ee.base64=!0,ee.array=!0,ee.string=!0,ee.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",ee.nodebuffer=typeof Mt!="undefined",ee.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")ee.blob=!1;else{var Vt=new ArrayBuffer(0);try{ee.blob=new Blob([Vt],{type:"application/zip"}).size===0}catch(jt){try{var Nt=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);Nt.append(Vt),ee.blob=Nt.getBlob("application/zip").size===0}catch(te){ee.blob=!1}}}try{ee.nodestream=!!re("readable-stream").Readable}catch(jt){ee.nodestream=!1}},{"readable-stream":16}],31:[function(re,Ie,ee){"use strict";for(var Vt=re("./utils"),Nt=re("./support"),jt=re("./nodejsUtils"),te=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 Kt(){te.call(this,"utf-8 decode"),this.leftOver=null}function $t(){te.call(this,"utf-8 encode")}ee.utf8encode=function(Ct){return Nt.nodebuffer?jt.newBufferFrom(Ct,"utf-8"):function(et){var tt,lt,rt,ht,dt,xt=et.length,It=0;for(ht=0;ht<xt;ht++)(64512&(lt=et.charCodeAt(ht)))==55296&&ht+1<xt&&(64512&(rt=et.charCodeAt(ht+1)))==56320&&(lt=65536+(lt-55296<<10)+(rt-56320),ht++),It+=lt<128?1:lt<2048?2:lt<65536?3:4;for(tt=Nt.uint8array?new Uint8Array(It):new Array(It),ht=dt=0;dt<It;ht++)(64512&(lt=et.charCodeAt(ht)))==55296&&ht+1<xt&&(64512&(rt=et.charCodeAt(ht+1)))==56320&&(lt=65536+(lt-55296<<10)+(rt-56320),ht++),lt<128?tt[dt++]=lt:(lt<2048?tt[dt++]=192|lt>>>6:(lt<65536?tt[dt++]=224|lt>>>12:(tt[dt++]=240|lt>>>18,tt[dt++]=128|lt>>>12&63),tt[dt++]=128|lt>>>6&63),tt[dt++]=128|63<);return tt}(Ct)},ee.utf8decode=function(Ct){return Nt.nodebuffer?Vt.transformTo("nodebuffer",Ct).toString("utf-8"):function(et){var tt,lt,rt,ht,dt=et.length,xt=new Array(2*dt);for(tt=lt=0;tt<dt;)if((rt=et[tt++])<128)xt[lt++]=rt;else if(4<(ht=Pt[rt]))xt[lt++]=65533,tt+=ht-1;else{for(rt&=ht===2?31:ht===3?15:7;1<ht&&tt<dt;)rt=rt<<6|63&et[tt++],ht--;1<ht?xt[lt++]=65533:rt<65536?xt[lt++]=rt:(rt-=65536,xt[lt++]=55296|rt>>10&1023,xt[lt++]=56320|1023&rt)}return xt.length!==lt&&(xt.subarray?xt=xt.subarray(0,lt):xt.length=lt),Vt.applyFromCharCode(xt)}(Ct=Vt.transformTo(Nt.uint8array?"uint8array":"array",Ct))},Vt.inherits(Kt,te),Kt.prototype.processChunk=function(Ct){var et=Vt.transformTo(Nt.uint8array?"uint8array":"array",Ct.data);if(this.leftOver&&this.leftOver.length){if(Nt.uint8array){var tt=et;(et=new Uint8Array(tt.length+this.leftOver.length)).set(this.leftOver,0),et.set(tt,this.leftOver.length)}else et=this.leftOver.concat(et);this.leftOver=null}var lt=function(ht,dt){var xt;for((dt=dt||ht.length)>ht.length&&(dt=ht.length),xt=dt-1;0<=xt&&(192&ht[xt])==128;)xt--;return xt<0||xt===0?dt:xt+Pt[ht[xt]]>dt?xt:dt}(et),rt=et;lt!==et.length&&(Nt.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})},Kt.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:ee.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},ee.Utf8DecodeWorker=Kt,Vt.inherits($t,te),$t.prototype.processChunk=function(Ct){this.push({data:ee.utf8encode(Ct.data),meta:Ct.meta})},ee.Utf8EncodeWorker=$t},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(re,Ie,ee){"use strict";var Vt=re("./support"),Nt=re("./base64"),jt=re("./nodejsUtils"),te=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(ht){try{var rt=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return rt.append(tt),rt.getBlob(lt)}catch(dt){throw new Error("Bug : can't construct the Blob.")}}};var Kt={stringifyByChunk:function(tt,lt,rt){var ht=[],dt=0,xt=tt.length;if(xt<=rt)return String.fromCharCode.apply(null,tt);for(;dt<xt;)lt==="array"||lt==="nodebuffer"?ht.push(String.fromCharCode.apply(null,tt.slice(dt,Math.min(dt+rt,xt)))):ht.push(String.fromCharCode.apply(null,tt.subarray(dt,Math.min(dt+rt,xt)))),dt+=rt;return ht.join("")},stringifyByChar:function(tt){for(var lt="",rt=0;rt<tt.length;rt++)lt+=String.fromCharCode(tt[rt]);return lt},applyCanBeUsed:{uint8array:function(){try{return Vt.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(tt){return!1}}(),nodebuffer:function(){try{return Vt.nodebuffer&&String.fromCharCode.apply(null,jt.allocBuffer(1)).length===1}catch(tt){return!1}}()}};function $t(tt){var lt=65536,rt=ee.getTypeOf(tt),ht=!0;if(rt==="uint8array"?ht=Kt.applyCanBeUsed.uint8array:rt==="nodebuffer"&&(ht=Kt.applyCanBeUsed.nodebuffer),ht)for(;1<lt;)try{return Kt.stringifyByChunk(tt,rt,lt)}catch(dt){lt=Math.floor(lt/2)}return Kt.stringifyByChar(tt)}function Ct(tt,lt){for(var rt=0;rt<tt.length;rt++)lt[rt]=tt[rt];return lt}ee.applyFromCharCode=$t;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:$t,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 $t(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:$t,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:$t,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=[],ht=0;ht<lt.length;ht++){var dt=lt[ht];dt==="."||dt===""&&ht!==0&&ht!==lt.length-1||(dt===".."?rt.pop():rt.push(dt))}return rt.join("/")},ee.getTypeOf=function(tt){return typeof tt=="string"?"string":Object.prototype.toString.call(tt)==="[object Array]"?"array":Vt.nodebuffer&&jt.isBuffer(tt)?"nodebuffer":Vt.uint8array&&tt instanceof Uint8Array?"uint8array":Vt.arraybuffer&&tt instanceof ArrayBuffer?"arraybuffer":void 0},ee.checkSupport=function(tt){if(!Vt[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,ht="";for(rt=0;rt<(tt||"").length;rt++)ht+="\\x"+((lt=tt.charCodeAt(rt))<16?"0":"")+lt.toString(16).toUpperCase();return ht},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,ht,dt){return te.Promise.resolve(lt).then(function(xt){return Vt.blob&&(xt instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(xt))!==-1)&&typeof FileReader!="undefined"?new te.Promise(function(It,Ut){var Gt=new FileReader;Gt.onload=function(se){It(se.target.result)},Gt.onerror=function(se){Ut(se.target.error)},Gt.readAsArrayBuffer(xt)}):xt}).then(function(xt){var It=ee.getTypeOf(xt);return It?(It==="arraybuffer"?xt=ee.transformTo("uint8array",xt):It==="string"&&(dt?xt=Nt.decode(xt):rt&&ht!==!0&&(xt=function(Ut){return oe(Ut,Vt.uint8array?new Uint8Array(Ut.length):new Array(Ut.length))}(xt))),xt):te.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,Ie,ee){"use strict";var Vt=re("./reader/readerFor"),Nt=re("./utils"),jt=re("./signature"),te=re("./zipEntry"),Pt=re("./support");function oe(Kt){this.files=[],this.loadOptions=Kt}oe.prototype={checkSignature:function(Kt){if(!this.reader.readAndCheckSignature(Kt)){this.reader.index-=4;var $t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+Nt.pretty($t)+", expected "+Nt.pretty(Kt)+")")}},isSignature:function(Kt,$t){var Ct=this.reader.index;this.reader.setIndex(Kt);var et=this.reader.readString(4)===$t;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 Kt=this.reader.readData(this.zipCommentLength),$t=Pt.uint8array?"uint8array":"array",Ct=Nt.transformTo($t,Kt);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 Kt,$t,Ct,et=this.zip64EndOfCentralSize-44;0<et;)Kt=this.reader.readInt(2),$t=this.reader.readInt(4),Ct=this.reader.readData($t),this.zip64ExtensibleData[Kt]={id:Kt,length:$t,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 Kt,$t;for(Kt=0;Kt<this.files.length;Kt++)$t=this.files[Kt],this.reader.setIndex($t.localHeaderOffset),this.checkSignature(jt.LOCAL_FILE_HEADER),$t.readLocalPart(this.reader),$t.handleUTF8(),$t.processAttributes()},readCentralDir:function(){var Kt;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(jt.CENTRAL_FILE_HEADER);)(Kt=new te({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(Kt);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 Kt=this.reader.lastIndexOfSignature(jt.CENTRAL_DIRECTORY_END);if(Kt<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(Kt);var $t=Kt;if(this.checkSignature(jt.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===Nt.MAX_VALUE_16BITS||this.diskWithCentralDirStart===Nt.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===Nt.MAX_VALUE_16BITS||this.centralDirRecords===Nt.MAX_VALUE_16BITS||this.centralDirSize===Nt.MAX_VALUE_32BITS||this.centralDirOffset===Nt.MAX_VALUE_32BITS){if(this.zip64=!0,(Kt=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(Kt),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=$t-Ct;if(0<et)this.isSignature($t,jt.CENTRAL_FILE_HEADER)||(this.reader.zero=et);else if(et<0)throw new Error("Corrupted zip: missing "+Math.abs(et)+" bytes.")},prepareReader:function(Kt){this.reader=Vt(Kt)},load:function(Kt){this.prepareReader(Kt),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},Ie.exports=oe},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(re,Ie,ee){"use strict";var Vt=re("./reader/readerFor"),Nt=re("./utils"),jt=re("./compressedObject"),te=re("./crc32"),Pt=re("./utf8"),oe=re("./compressions"),Kt=re("./support");function $t(Ct,et){this.options=Ct,this.loadOptions=et}$t.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 "+Nt.pretty(this.compressionMethod)+" unknown (inner file : "+Nt.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=Vt(this.extraFields[1].value);this.uncompressedSize===Nt.MAX_VALUE_32BITS&&(this.uncompressedSize=Ct.readInt(8)),this.compressedSize===Nt.MAX_VALUE_32BITS&&(this.compressedSize=Ct.readInt(8)),this.localHeaderOffset===Nt.MAX_VALUE_32BITS&&(this.localHeaderOffset=Ct.readInt(8)),this.diskNumberStart===Nt.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=Kt.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=Nt.transformTo(Ct,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(tt)}var lt=this.findExtraFieldUnicodeComment();if(lt!==null)this.fileCommentStr=lt;else{var rt=Nt.transformTo(Ct,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(rt)}}},findExtraFieldUnicodePath:function(){var Ct=this.extraFields[28789];if(Ct){var et=Vt(Ct.value);return et.readInt(1)!==1||te(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=Vt(Ct.value);return et.readInt(1)!==1||te(this.fileComment)!==et.readInt(4)?null:Pt.utf8decode(et.readData(Ct.length-5))}return null}},Ie.exports=$t},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(re,Ie,ee){"use strict";function Vt(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 Nt=re("./stream/StreamHelper"),jt=re("./stream/DataWorker"),te=re("./utf8"),Pt=re("./compressedObject"),oe=re("./stream/GenericWorker");Vt.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"&<!=="text"||(lt="string"),tt=this._decompressWorker();var ht=!this._dataBinary;ht&&!rt&&(tt=tt.pipe(new te.Utf8EncodeWorker)),!ht&&rt&&(tt=tt.pipe(new te.Utf8DecodeWorker))}catch(dt){(tt=new oe("error")).error(dt)}return new Nt(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 te.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 Kt=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],$t=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},Ct=0;Ct<Kt.length;Ct++)Vt.prototype[Kt[Ct]]=$t;Ie.exports=Vt},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(re,Ie,ee){(function(Vt){"use strict";var Nt,jt,te=Vt.MutationObserver||Vt.WebKitMutationObserver;if(te){var Pt=0,oe=new te(et),Kt=Vt.document.createTextNode("");oe.observe(Kt,{characterData:!0}),Nt=function(){Kt.data=Pt=++Pt%2}}else if(Vt.setImmediate||Vt.MessageChannel===void 0)Nt="document"in Vt&&"onreadystatechange"in Vt.document.createElement("script")?function(){var tt=Vt.document.createElement("script");tt.onreadystatechange=function(){et(),tt.onreadystatechange=null,tt.parentNode.removeChild(tt),tt=null},Vt.document.documentElement.appendChild(tt)}:function(){setTimeout(et,0)};else{var $t=new Vt.MessageChannel;$t.port1.onmessage=et,Nt=function(){$t.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}Ie.exports=function(tt){Ct.push(tt)!==1||jt||Nt()}}).call(this,typeof Ft.g!="undefined"?Ft.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(re,Ie,ee){"use strict";var Vt=re("immediate");function Nt(){}var jt={},te=["REJECTED"],Pt=["FULFILLED"],oe=["PENDING"];function Kt(rt){if(typeof rt!="function")throw new TypeError("resolver must be a function");this.state=oe,this.queue=[],this.outcome=void 0,rt!==Nt&&tt(this,rt)}function $t(rt,ht,dt){this.promise=rt,typeof ht=="function"&&(this.onFulfilled=ht,this.callFulfilled=this.otherCallFulfilled),typeof dt=="function"&&(this.onRejected=dt,this.callRejected=this.otherCallRejected)}function Ct(rt,ht,dt){Vt(function(){var xt;try{xt=ht(dt)}catch(It){return jt.reject(rt,It)}xt===rt?jt.reject(rt,new TypeError("Cannot resolve promise with itself")):jt.resolve(rt,xt)})}function et(rt){var ht=rt&&rt.then;if(rt&&(typeof rt=="object"||typeof rt=="function")&&typeof ht=="function")return function(){ht.apply(rt,arguments)}}function tt(rt,ht){var dt=!1;function xt(Gt){dt||(dt=!0,jt.reject(rt,Gt))}function It(Gt){dt||(dt=!0,jt.resolve(rt,Gt))}var Ut=lt(function(){ht(It,xt)});Ut.status==="error"&&xt(Ut.value)}function lt(rt,ht){var dt={};try{dt.value=rt(ht),dt.status="success"}catch(xt){dt.status="error",dt.value=xt}return dt}(Ie.exports=Kt).prototype.finally=function(rt){if(typeof rt!="function")return this;var ht=this.constructor;return this.then(function(dt){return ht.resolve(rt()).then(function(){return dt})},function(dt){return ht.resolve(rt()).then(function(){throw dt})})},Kt.prototype.catch=function(rt){return this.then(null,rt)},Kt.prototype.then=function(rt,ht){if(typeof rt!="function"&&this.state===Pt||typeof ht!="function"&&this.state===te)return this;var dt=new this.constructor(Nt);return this.state!==oe?Ct(dt,this.state===Pt?rt:ht,this.outcome):this.queue.push(new $t(dt,rt,ht)),dt},$t.prototype.callFulfilled=function(rt){jt.resolve(this.promise,rt)},$t.prototype.otherCallFulfilled=function(rt){Ct(this.promise,this.onFulfilled,rt)},$t.prototype.callRejected=function(rt){jt.reject(this.promise,rt)},$t.prototype.otherCallRejected=function(rt){Ct(this.promise,this.onRejected,rt)},jt.resolve=function(rt,ht){var dt=lt(et,ht);if(dt.status==="error")return jt.reject(rt,dt.value);var xt=dt.value;if(xt)tt(rt,xt);else{rt.state=Pt,rt.outcome=ht;for(var It=-1,Ut=rt.queue.length;++It<Ut;)rt.queue[It].callFulfilled(ht)}return rt},jt.reject=function(rt,ht){rt.state=te,rt.outcome=ht;for(var dt=-1,xt=rt.queue.length;++dt<xt;)rt.queue[dt].callRejected(ht);return rt},Kt.resolve=function(rt){return rt instanceof this?rt:jt.resolve(new this(Nt),rt)},Kt.reject=function(rt){var ht=new this(Nt);return jt.reject(ht,rt)},Kt.all=function(rt){var ht=this;if(Object.prototype.toString.call(rt)!=="[object Array]")return this.reject(new TypeError("must be an array"));var dt=rt.length,xt=!1;if(!dt)return this.resolve([]);for(var It=new Array(dt),Ut=0,Gt=-1,se=new this(Nt);++Gt<dt;)ue(rt[Gt],Gt);return se;function ue(Ae,Pe){ht.resolve(Ae).then(function(qt){It[Pe]=qt,++Ut!==dt||xt||(xt=!0,jt.resolve(se,It))},function(qt){xt||(xt=!0,jt.reject(se,qt))})}},Kt.race=function(rt){var ht=this;if(Object.prototype.toString.call(rt)!=="[object Array]")return this.reject(new TypeError("must be an array"));var dt=rt.length,xt=!1;if(!dt)return this.resolve([]);for(var It=-1,Ut=new this(Nt);++It<dt;)Gt=rt[It],ht.resolve(Gt).then(function(se){xt||(xt=!0,jt.resolve(Ut,se))},function(se){xt||(xt=!0,jt.reject(Ut,se))});var Gt;return Ut}},{immediate:36}],38:[function(re,Ie,ee){"use strict";var Vt={};(0,re("./lib/utils/common").assign)(Vt,re("./lib/deflate"),re("./lib/inflate"),re("./lib/zlib/constants")),Ie.exports=Vt},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(re,Ie,ee){"use strict";var Vt=re("./zlib/deflate"),Nt=re("./utils/common"),jt=re("./utils/strings"),te=re("./zlib/messages"),Pt=re("./zlib/zstream"),oe=Object.prototype.toString,Kt=0,$t=-1,Ct=0,et=8;function tt(rt){if(!(this instanceof tt))return new tt(rt);this.options=Nt.assign({level:$t,method:et,chunkSize:16384,windowBits:15,memLevel:8,strategy:Ct,to:""},rt||{});var ht=this.options;ht.raw&&0<ht.windowBits?ht.windowBits=-ht.windowBits:ht.gzip&&0<ht.windowBits&&ht.windowBits<16&&(ht.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Pt,this.strm.avail_out=0;var dt=Vt.deflateInit2(this.strm,ht.level,ht.method,ht.windowBits,ht.memLevel,ht.strategy);if(dt!==Kt)throw new Error(te[dt]);if(ht.header&&Vt.deflateSetHeader(this.strm,ht.header),ht.dictionary){var xt;if(xt=typeof ht.dictionary=="string"?jt.string2buf(ht.dictionary):oe.call(ht.dictionary)==="[object ArrayBuffer]"?new Uint8Array(ht.dictionary):ht.dictionary,(dt=Vt.deflateSetDictionary(this.strm,xt))!==Kt)throw new Error(te[dt]);this._dict_set=!0}}function lt(rt,ht){var dt=new tt(ht);if(dt.push(rt,!0),dt.err)throw dt.msg||te[dt.err];return dt.result}tt.prototype.push=function(rt,ht){var dt,xt,It=this.strm,Ut=this.options.chunkSize;if(this.ended)return!1;xt=ht===~~ht?ht:ht===!0?4:0,typeof rt=="string"?It.input=jt.string2buf(rt):oe.call(rt)==="[object ArrayBuffer]"?It.input=new Uint8Array(rt):It.input=rt,It.next_in=0,It.avail_in=It.input.length;do{if(It.avail_out===0&&(It.output=new Nt.Buf8(Ut),It.next_out=0,It.avail_out=Ut),(dt=Vt.deflate(It,xt))!==1&&dt!==Kt)return this.onEnd(dt),!(this.ended=!0);It.avail_out!==0&&(It.avail_in!==0||xt!==4&&xt!==2)||(this.options.to==="string"?this.onData(jt.buf2binstring(Nt.shrinkBuf(It.output,It.next_out))):this.onData(Nt.shrinkBuf(It.output,It.next_out)))}while((0<It.avail_in||It.avail_out===0)&&dt!==1);return xt===4?(dt=Vt.deflateEnd(this.strm),this.onEnd(dt),this.ended=!0,dt===Kt):xt!==2||(this.onEnd(Kt),!(It.avail_out=0))},tt.prototype.onData=function(rt){this.chunks.push(rt)},tt.prototype.onEnd=function(rt){rt===Kt&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Nt.flattenChunks(this.chunks)),this.chunks=[],this.err=rt,this.msg=this.strm.msg},ee.Deflate=tt,ee.deflate=lt,ee.deflateRaw=function(rt,ht){return(ht=ht||{}).raw=!0,lt(rt,ht)},ee.gzip=function(rt,ht){return(ht=ht||{}).gzip=!0,lt(rt,ht)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(re,Ie,ee){"use strict";var Vt=re("./zlib/inflate"),Nt=re("./utils/common"),jt=re("./utils/strings"),te=re("./zlib/constants"),Pt=re("./zlib/messages"),oe=re("./zlib/zstream"),Kt=re("./zlib/gzheader"),$t=Object.prototype.toString;function Ct(tt){if(!(this instanceof Ct))return new Ct(tt);this.options=Nt.assign({chunkSize:16384,windowBits:0,to:""},tt||{});var lt=this.options;lt.raw&&0<=lt.windowBits&<.windowBits<16&&(lt.windowBits=-lt.windowBits,lt.windowBits===0&&(lt.windowBits=-15)),!(0<=lt.windowBits&<.windowBits<16)||tt&&tt.windowBits||(lt.windowBits+=32),15<lt.windowBits&<.windowBits<48&&!(15<.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=Vt.inflateInit2(this.strm,lt.windowBits);if(rt!==te.Z_OK)throw new Error(Pt[rt]);this.header=new Kt,Vt.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,ht,dt,xt,It,Ut,Gt=this.strm,se=this.options.chunkSize,ue=this.options.dictionary,Ae=!1;if(this.ended)return!1;ht=lt===~~lt?lt:lt===!0?te.Z_FINISH:te.Z_NO_FLUSH,typeof tt=="string"?Gt.input=jt.binstring2buf(tt):$t.call(tt)==="[object ArrayBuffer]"?Gt.input=new Uint8Array(tt):Gt.input=tt,Gt.next_in=0,Gt.avail_in=Gt.input.length;do{if(Gt.avail_out===0&&(Gt.output=new Nt.Buf8(se),Gt.next_out=0,Gt.avail_out=se),(rt=Vt.inflate(Gt,te.Z_NO_FLUSH))===te.Z_NEED_DICT&&ue&&(Ut=typeof ue=="string"?jt.string2buf(ue):$t.call(ue)==="[object ArrayBuffer]"?new Uint8Array(ue):ue,rt=Vt.inflateSetDictionary(this.strm,Ut)),rt===te.Z_BUF_ERROR&&Ae===!0&&(rt=te.Z_OK,Ae=!1),rt!==te.Z_STREAM_END&&rt!==te.Z_OK)return this.onEnd(rt),!(this.ended=!0);Gt.next_out&&(Gt.avail_out!==0&&rt!==te.Z_STREAM_END&&(Gt.avail_in!==0||ht!==te.Z_FINISH&&ht!==te.Z_SYNC_FLUSH)||(this.options.to==="string"?(dt=jt.utf8border(Gt.output,Gt.next_out),xt=Gt.next_out-dt,It=jt.buf2string(Gt.output,dt),Gt.next_out=xt,Gt.avail_out=se-xt,xt&&Nt.arraySet(Gt.output,Gt.output,dt,xt,0),this.onData(It)):this.onData(Nt.shrinkBuf(Gt.output,Gt.next_out)))),Gt.avail_in===0&&Gt.avail_out===0&&(Ae=!0)}while((0<Gt.avail_in||Gt.avail_out===0)&&rt!==te.Z_STREAM_END);return rt===te.Z_STREAM_END&&(ht=te.Z_FINISH),ht===te.Z_FINISH?(rt=Vt.inflateEnd(this.strm),this.onEnd(rt),this.ended=!0,rt===te.Z_OK):ht!==te.Z_SYNC_FLUSH||(this.onEnd(te.Z_OK),!(Gt.avail_out=0))},Ct.prototype.onData=function(tt){this.chunks.push(tt)},Ct.prototype.onEnd=function(tt){tt===te.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Nt.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,Ie,ee){"use strict";var Vt=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";ee.assign=function(te){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 Kt in oe)oe.hasOwnProperty(Kt)&&(te[Kt]=oe[Kt])}}return te},ee.shrinkBuf=function(te,Pt){return te.length===Pt?te:te.subarray?te.subarray(0,Pt):(te.length=Pt,te)};var Nt={arraySet:function(te,Pt,oe,Kt,$t){if(Pt.subarray&&te.subarray)te.set(Pt.subarray(oe,oe+Kt),$t);else for(var Ct=0;Ct<Kt;Ct++)te[$t+Ct]=Pt[oe+Ct]},flattenChunks:function(te){var Pt,oe,Kt,$t,Ct,et;for(Pt=Kt=0,oe=te.length;Pt<oe;Pt++)Kt+=te[Pt].length;for(et=new Uint8Array(Kt),Pt=$t=0,oe=te.length;Pt<oe;Pt++)Ct=te[Pt],et.set(Ct,$t),$t+=Ct.length;return et}},jt={arraySet:function(te,Pt,oe,Kt,$t){for(var Ct=0;Ct<Kt;Ct++)te[$t+Ct]=Pt[oe+Ct]},flattenChunks:function(te){return[].concat.apply([],te)}};ee.setTyped=function(te){te?(ee.Buf8=Uint8Array,ee.Buf16=Uint16Array,ee.Buf32=Int32Array,ee.assign(ee,Nt)):(ee.Buf8=Array,ee.Buf16=Array,ee.Buf32=Array,ee.assign(ee,jt))},ee.setTyped(Vt)},{}],42:[function(re,Ie,ee){"use strict";var Vt=re("./common"),Nt=!0,jt=!0;try{String.fromCharCode.apply(null,[0])}catch(Kt){Nt=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(Kt){jt=!1}for(var te=new Vt.Buf8(256),Pt=0;Pt<256;Pt++)te[Pt]=252<=Pt?6:248<=Pt?5:240<=Pt?4:224<=Pt?3:192<=Pt?2:1;function oe(Kt,$t){if($t<65537&&(Kt.subarray&&jt||!Kt.subarray&&Nt))return String.fromCharCode.apply(null,Vt.shrinkBuf(Kt,$t));for(var Ct="",et=0;et<$t;et++)Ct+=String.fromCharCode(Kt[et]);return Ct}te[254]=te[254]=1,ee.string2buf=function(Kt){var $t,Ct,et,tt,lt,rt=Kt.length,ht=0;for(tt=0;tt<rt;tt++)(64512&(Ct=Kt.charCodeAt(tt)))==55296&&tt+1<rt&&(64512&(et=Kt.charCodeAt(tt+1)))==56320&&(Ct=65536+(Ct-55296<<10)+(et-56320),tt++),ht+=Ct<128?1:Ct<2048?2:Ct<65536?3:4;for($t=new Vt.Buf8(ht),tt=lt=0;lt<ht;tt++)(64512&(Ct=Kt.charCodeAt(tt)))==55296&&tt+1<rt&&(64512&(et=Kt.charCodeAt(tt+1)))==56320&&(Ct=65536+(Ct-55296<<10)+(et-56320),tt++),Ct<128?$t[lt++]=Ct:(Ct<2048?$t[lt++]=192|Ct>>>6:(Ct<65536?$t[lt++]=224|Ct>>>12:($t[lt++]=240|Ct>>>18,$t[lt++]=128|Ct>>>12&63),$t[lt++]=128|Ct>>>6&63),$t[lt++]=128|63&Ct);return $t},ee.buf2binstring=function(Kt){return oe(Kt,Kt.length)},ee.binstring2buf=function(Kt){for(var $t=new Vt.Buf8(Kt.length),Ct=0,et=$t.length;Ct<et;Ct++)$t[Ct]=Kt.charCodeAt(Ct);return $t},ee.buf2string=function(Kt,$t){var Ct,et,tt,lt,rt=$t||Kt.length,ht=new Array(2*rt);for(Ct=et=0;Ct<rt;)if((tt=Kt[Ct++])<128)ht[et++]=tt;else if(4<(lt=te[tt]))ht[et++]=65533,Ct+=lt-1;else{for(tt&=lt===2?31:lt===3?15:7;1<lt&&Ct<rt;)tt=tt<<6|63&Kt[Ct++],lt--;1<lt?ht[et++]=65533:tt<65536?ht[et++]=tt:(tt-=65536,ht[et++]=55296|tt>>10&1023,ht[et++]=56320|1023&tt)}return oe(ht,et)},ee.utf8border=function(Kt,$t){var Ct;for(($t=$t||Kt.length)>Kt.length&&($t=Kt.length),Ct=$t-1;0<=Ct&&(192&Kt[Ct])==128;)Ct--;return Ct<0||Ct===0?$t:Ct+te[Kt[Ct]]>$t?Ct:$t}},{"./common":41}],43:[function(re,Ie,ee){"use strict";Ie.exports=function(Vt,Nt,jt,te){for(var Pt=65535&Vt|0,oe=Vt>>>16&65535|0,Kt=0;jt!==0;){for(jt-=Kt=2e3<jt?2e3:jt;oe=oe+(Pt=Pt+Nt[te++]|0)|0,--Kt;);Pt%=65521,oe%=65521}return Pt|oe<<16|0}},{}],44:[function(re,Ie,ee){"use strict";Ie.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,Ie,ee){"use strict";var Vt=function(){for(var Nt,jt=[],te=0;te<256;te++){Nt=te;for(var Pt=0;Pt<8;Pt++)Nt=1&Nt?3988292384^Nt>>>1:Nt>>>1;jt[te]=Nt}return jt}();Ie.exports=function(Nt,jt,te,Pt){var oe=Vt,Kt=Pt+te;Nt^=-1;for(var $t=Pt;$t<Kt;$t++)Nt=Nt>>>8^oe[255&(Nt^jt[$t])];return-1^Nt}},{}],46:[function(re,Ie,ee){"use strict";var Vt,Nt=re("../utils/common"),jt=re("./trees"),te=re("./adler32"),Pt=re("./crc32"),oe=re("./messages"),Kt=0,$t=4,Ct=0,et=-2,tt=-1,lt=4,rt=2,ht=8,dt=9,xt=286,It=30,Ut=19,Gt=2*xt+1,se=15,ue=3,Ae=258,Pe=Ae+ue+1,qt=42,ze=113,Wt=1,Ge=2,_e=3,Me=4;function We(Lt,Ot){return Lt.msg=oe[Ot],Ot}function Re(Lt){return(Lt<<1)-(4<Lt?9:0)}function ye(Lt){for(var Ot=Lt.length;0<=--Ot;)Lt[Ot]=0}function ne(Lt){var Ot=Lt.state,mt=Ot.pending;mt>Lt.avail_out&&(mt=Lt.avail_out),mt!==0&&(Nt.arraySet(Lt.output,Ot.pending_buf,Ot.pending_out,mt,Lt.next_out),Lt.next_out+=mt,Ot.pending_out+=mt,Lt.total_out+=mt,Lt.avail_out-=mt,Ot.pending-=mt,Ot.pending===0&&(Ot.pending_out=0))}function Ce(Lt,Ot){jt._tr_flush_block(Lt,0<=Lt.block_start?Lt.block_start:-1,Lt.strstart-Lt.block_start,Ot),Lt.block_start=Lt.strstart,ne(Lt.strm)}function bn(Lt,Ot){Lt.pending_buf[Lt.pending++]=Ot}function Ln(Lt,Ot){Lt.pending_buf[Lt.pending++]=Ot>>>8&255,Lt.pending_buf[Lt.pending++]=255&Ot}function Ze(Lt,Ot){var mt,ft,pt=Lt.max_chain_length,At=Lt.strstart,le=Lt.prev_length,xe=Lt.nice_match,ae=Lt.strstart>Lt.w_size-Pe?Lt.strstart-(Lt.w_size-Pe):0,ve=Lt.window,Ue=Lt.w_mask,Te=Lt.prev,ke=Lt.strstart+Ae,nn=ve[At+le-1],Wn=ve[At+le];Lt.prev_length>=Lt.good_match&&(pt>>=2),xe>Lt.lookahead&&(xe=Lt.lookahead);do if(ve[(mt=Ot)+le]===Wn&&ve[mt+le-1]===nn&&ve[mt]===ve[At]&&ve[++mt]===ve[At+1]){At+=2,mt++;do;while(ve[++At]===ve[++mt]&&ve[++At]===ve[++mt]&&ve[++At]===ve[++mt]&&ve[++At]===ve[++mt]&&ve[++At]===ve[++mt]&&ve[++At]===ve[++mt]&&ve[++At]===ve[++mt]&&ve[++At]===ve[++mt]&&At<ke);if(ft=Ae-(ke-At),At=ke-Ae,le<ft){if(Lt.match_start=Ot,xe<=(le=ft))break;nn=ve[At+le-1],Wn=ve[At+le]}}while((Ot=Te[Ot&Ue])>ae&&--pt!=0);return le<=Lt.lookahead?le:Lt.lookahead}function Mn(Lt){var Ot,mt,ft,pt,At,le,xe,ae,ve,Ue,Te=Lt.w_size;do{if(pt=Lt.window_size-Lt.lookahead-Lt.strstart,Lt.strstart>=Te+(Te-Pe)){for(Nt.arraySet(Lt.window,Lt.window,Te,Te,0),Lt.match_start-=Te,Lt.strstart-=Te,Lt.block_start-=Te,Ot=mt=Lt.hash_size;ft=Lt.head[--Ot],Lt.head[Ot]=Te<=ft?ft-Te:0,--mt;);for(Ot=mt=Te;ft=Lt.prev[--Ot],Lt.prev[Ot]=Te<=ft?ft-Te:0,--mt;);pt+=Te}if(Lt.strm.avail_in===0)break;if(le=Lt.strm,xe=Lt.window,ae=Lt.strstart+Lt.lookahead,ve=pt,Ue=void 0,Ue=le.avail_in,ve<Ue&&(Ue=ve),mt=Ue===0?0:(le.avail_in-=Ue,Nt.arraySet(xe,le.input,le.next_in,Ue,ae),le.state.wrap===1?le.adler=te(le.adler,xe,Ue,ae):le.state.wrap===2&&(le.adler=Pt(le.adler,xe,Ue,ae)),le.next_in+=Ue,le.total_in+=Ue,Ue),Lt.lookahead+=mt,Lt.lookahead+Lt.insert>=ue)for(At=Lt.strstart-Lt.insert,Lt.ins_h=Lt.window[At],Lt.ins_h=(Lt.ins_h<<Lt.hash_shift^Lt.window[At+1])&Lt.hash_mask;Lt.insert&&(Lt.ins_h=(Lt.ins_h<<Lt.hash_shift^Lt.window[At+ue-1])&Lt.hash_mask,Lt.prev[At&Lt.w_mask]=Lt.head[Lt.ins_h],Lt.head[Lt.ins_h]=At,At++,Lt.insert--,!(Lt.lookahead+Lt.insert<ue)););}while(Lt.lookahead<Pe&&Lt.strm.avail_in!==0)}function Vn(Lt,Ot){for(var mt,ft;;){if(Lt.lookahead<Pe){if(Mn(Lt),Lt.lookahead<Pe&&Ot===Kt)return Wt;if(Lt.lookahead===0)break}if(mt=0,Lt.lookahead>=ue&&(Lt.ins_h=(Lt.ins_h<<Lt.hash_shift^Lt.window[Lt.strstart+ue-1])&Lt.hash_mask,mt=Lt.prev[Lt.strstart&Lt.w_mask]=Lt.head[Lt.ins_h],Lt.head[Lt.ins_h]=Lt.strstart),mt!==0&&Lt.strstart-mt<=Lt.w_size-Pe&&(Lt.match_length=Ze(Lt,mt)),Lt.match_length>=ue)if(ft=jt._tr_tally(Lt,Lt.strstart-Lt.match_start,Lt.match_length-ue),Lt.lookahead-=Lt.match_length,Lt.match_length<=Lt.max_lazy_match&&Lt.lookahead>=ue){for(Lt.match_length--;Lt.strstart++,Lt.ins_h=(Lt.ins_h<<Lt.hash_shift^Lt.window[Lt.strstart+ue-1])&Lt.hash_mask,mt=Lt.prev[Lt.strstart&Lt.w_mask]=Lt.head[Lt.ins_h],Lt.head[Lt.ins_h]=Lt.strstart,--Lt.match_length!=0;);Lt.strstart++}else Lt.strstart+=Lt.match_length,Lt.match_length=0,Lt.ins_h=Lt.window[Lt.strstart],Lt.ins_h=(Lt.ins_h<<Lt.hash_shift^Lt.window[Lt.strstart+1])&Lt.hash_mask;else ft=jt._tr_tally(Lt,0,Lt.window[Lt.strstart]),Lt.lookahead--,Lt.strstart++;if(ft&&(Ce(Lt,!1),Lt.strm.avail_out===0))return Wt}return Lt.insert=Lt.strstart<ue-1?Lt.strstart:ue-1,Ot===$t?(Ce(Lt,!0),Lt.strm.avail_out===0?_e:Me):Lt.last_lit&&(Ce(Lt,!1),Lt.strm.avail_out===0)?Wt:Ge}function gi(Lt,Ot){for(var mt,ft,pt;;){if(Lt.lookahead<Pe){if(Mn(Lt),Lt.lookahead<Pe&&Ot===Kt)return Wt;if(Lt.lookahead===0)break}if(mt=0,Lt.lookahead>=ue&&(Lt.ins_h=(Lt.ins_h<<Lt.hash_shift^Lt.window[Lt.strstart+ue-1])&Lt.hash_mask,mt=Lt.prev[Lt.strstart&Lt.w_mask]=Lt.head[Lt.ins_h],Lt.head[Lt.ins_h]=Lt.strstart),Lt.prev_length=Lt.match_length,Lt.prev_match=Lt.match_start,Lt.match_length=ue-1,mt!==0&&Lt.prev_length<Lt.max_lazy_match&&Lt.strstart-mt<=Lt.w_size-Pe&&(Lt.match_length=Ze(Lt,mt),Lt.match_length<=5&&(Lt.strategy===1||Lt.match_length===ue&&4096<Lt.strstart-Lt.match_start)&&(Lt.match_length=ue-1)),Lt.prev_length>=ue&&Lt.match_length<=Lt.prev_length){for(pt=Lt.strstart+Lt.lookahead-ue,ft=jt._tr_tally(Lt,Lt.strstart-1-Lt.prev_match,Lt.prev_length-ue),Lt.lookahead-=Lt.prev_length-1,Lt.prev_length-=2;++Lt.strstart<=pt&&(Lt.ins_h=(Lt.ins_h<<Lt.hash_shift^Lt.window[Lt.strstart+ue-1])&Lt.hash_mask,mt=Lt.prev[Lt.strstart&Lt.w_mask]=Lt.head[Lt.ins_h],Lt.head[Lt.ins_h]=Lt.strstart),--Lt.prev_length!=0;);if(Lt.match_available=0,Lt.match_length=ue-1,Lt.strstart++,ft&&(Ce(Lt,!1),Lt.strm.avail_out===0))return Wt}else if(Lt.match_available){if((ft=jt._tr_tally(Lt,0,Lt.window[Lt.strstart-1]))&&Ce(Lt,!1),Lt.strstart++,Lt.lookahead--,Lt.strm.avail_out===0)return Wt}else Lt.match_available=1,Lt.strstart++,Lt.lookahead--}return Lt.match_available&&(ft=jt._tr_tally(Lt,0,Lt.window[Lt.strstart-1]),Lt.match_available=0),Lt.insert=Lt.strstart<ue-1?Lt.strstart:ue-1,Ot===$t?(Ce(Lt,!0),Lt.strm.avail_out===0?_e:Me):Lt.last_lit&&(Ce(Lt,!1),Lt.strm.avail_out===0)?Wt:Ge}function Kn(Lt,Ot,mt,ft,pt){this.good_length=Lt,this.max_lazy=Ot,this.nice_length=mt,this.max_chain=ft,this.func=pt}function Bi(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ht,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Nt.Buf16(2*Gt),this.dyn_dtree=new Nt.Buf16(2*(2*It+1)),this.bl_tree=new Nt.Buf16(2*(2*Ut+1)),ye(this.dyn_ltree),ye(this.dyn_dtree),ye(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Nt.Buf16(se+1),this.heap=new Nt.Buf16(2*xt+1),ye(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Nt.Buf16(2*xt+1),ye(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 en(Lt){var Ot;return Lt&&Lt.state?(Lt.total_in=Lt.total_out=0,Lt.data_type=rt,(Ot=Lt.state).pending=0,Ot.pending_out=0,Ot.wrap<0&&(Ot.wrap=-Ot.wrap),Ot.status=Ot.wrap?qt:ze,Lt.adler=Ot.wrap===2?0:1,Ot.last_flush=Kt,jt._tr_init(Ot),Ct):We(Lt,et)}function Li(Lt){var Ot=en(Lt);return Ot===Ct&&function(mt){mt.window_size=2*mt.w_size,ye(mt.head),mt.max_lazy_match=Vt[mt.level].max_lazy,mt.good_match=Vt[mt.level].good_length,mt.nice_match=Vt[mt.level].nice_length,mt.max_chain_length=Vt[mt.level].max_chain,mt.strstart=0,mt.block_start=0,mt.lookahead=0,mt.insert=0,mt.match_length=mt.prev_length=ue-1,mt.match_available=0,mt.ins_h=0}(Lt.state),Ot}function Oi(Lt,Ot,mt,ft,pt,At){if(!Lt)return et;var le=1;if(Ot===tt&&(Ot=6),ft<0?(le=0,ft=-ft):15<ft&&(le=2,ft-=16),pt<1||dt<pt||mt!==ht||ft<8||15<ft||Ot<0||9<Ot||At<0||lt<At)return We(Lt,et);ft===8&&(ft=9);var xe=new Bi;return(Lt.state=xe).strm=Lt,xe.wrap=le,xe.gzhead=null,xe.w_bits=ft,xe.w_size=1<<xe.w_bits,xe.w_mask=xe.w_size-1,xe.hash_bits=pt+7,xe.hash_size=1<<xe.hash_bits,xe.hash_mask=xe.hash_size-1,xe.hash_shift=~~((xe.hash_bits+ue-1)/ue),xe.window=new Nt.Buf8(2*xe.w_size),xe.head=new Nt.Buf16(xe.hash_size),xe.prev=new Nt.Buf16(xe.w_size),xe.lit_bufsize=1<<pt+6,xe.pending_buf_size=4*xe.lit_bufsize,xe.pending_buf=new Nt.Buf8(xe.pending_buf_size),xe.d_buf=1*xe.lit_bufsize,xe.l_buf=3*xe.lit_bufsize,xe.level=Ot,xe.strategy=At,xe.method=mt,Li(Lt)}Vt=[new Kn(0,0,0,0,function(Lt,Ot){var mt=65535;for(mt>Lt.pending_buf_size-5&&(mt=Lt.pending_buf_size-5);;){if(Lt.lookahead<=1){if(Mn(Lt),Lt.lookahead===0&&Ot===Kt)return Wt;if(Lt.lookahead===0)break}Lt.strstart+=Lt.lookahead,Lt.lookahead=0;var ft=Lt.block_start+mt;if((Lt.strstart===0||Lt.strstart>=ft)&&(Lt.lookahead=Lt.strstart-ft,Lt.strstart=ft,Ce(Lt,!1),Lt.strm.avail_out===0)||Lt.strstart-Lt.block_start>=Lt.w_size-Pe&&(Ce(Lt,!1),Lt.strm.avail_out===0))return Wt}return Lt.insert=0,Ot===$t?(Ce(Lt,!0),Lt.strm.avail_out===0?_e:Me):(Lt.strstart>Lt.block_start&&(Ce(Lt,!1),Lt.strm.avail_out),Wt)}),new Kn(4,4,8,4,Vn),new Kn(4,5,16,8,Vn),new Kn(4,6,32,32,Vn),new Kn(4,4,16,16,gi),new Kn(8,16,32,32,gi),new Kn(8,16,128,128,gi),new Kn(8,32,128,256,gi),new Kn(32,128,258,1024,gi),new Kn(32,258,258,4096,gi)],ee.deflateInit=function(Lt,Ot){return Oi(Lt,Ot,ht,15,8,0)},ee.deflateInit2=Oi,ee.deflateReset=Li,ee.deflateResetKeep=en,ee.deflateSetHeader=function(Lt,Ot){return Lt&&Lt.state?Lt.state.wrap!==2?et:(Lt.state.gzhead=Ot,Ct):et},ee.deflate=function(Lt,Ot){var mt,ft,pt,At;if(!Lt||!Lt.state||5<Ot||Ot<0)return Lt?We(Lt,et):et;if(ft=Lt.state,!Lt.output||!Lt.input&&Lt.avail_in!==0||ft.status===666&&Ot!==$t)return We(Lt,Lt.avail_out===0?-5:et);if(ft.strm=Lt,mt=ft.last_flush,ft.last_flush=Ot,ft.status===qt)if(ft.wrap===2)Lt.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&&(Lt.adler=Pt(Lt.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 le=ht+(ft.w_bits-8<<4)<<8;le|=(2<=ft.strategy||ft.level<2?0:ft.level<6?1:ft.level===6?2:3)<<6,ft.strstart!==0&&(le|=32),le+=31-le%31,ft.status=ze,Ln(ft,le),ft.strstart!==0&&(Ln(ft,Lt.adler>>>16),Ln(ft,65535&Lt.adler)),Lt.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&&(Lt.adler=Pt(Lt.adler,ft.pending_buf,ft.pending-pt,pt)),ne(Lt),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&&(Lt.adler=Pt(Lt.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&&(Lt.adler=Pt(Lt.adler,ft.pending_buf,ft.pending-pt,pt)),ne(Lt),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&&(Lt.adler=Pt(Lt.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&&(Lt.adler=Pt(Lt.adler,ft.pending_buf,ft.pending-pt,pt)),ne(Lt),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&&(Lt.adler=Pt(Lt.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&&ne(Lt),ft.pending+2<=ft.pending_buf_size&&(bn(ft,255&Lt.adler),bn(ft,Lt.adler>>8&255),Lt.adler=0,ft.status=ze)):ft.status=ze),ft.pending!==0){if(ne(Lt),Lt.avail_out===0)return ft.last_flush=-1,Ct}else if(Lt.avail_in===0&&Re(Ot)<=Re(mt)&&Ot!==$t)return We(Lt,-5);if(ft.status===666&&Lt.avail_in!==0)return We(Lt,-5);if(Lt.avail_in!==0||ft.lookahead!==0||Ot!==Kt&&ft.status!==666){var xe=ft.strategy===2?function(ae,ve){for(var Ue;;){if(ae.lookahead===0&&(Mn(ae),ae.lookahead===0)){if(ve===Kt)return Wt;break}if(ae.match_length=0,Ue=jt._tr_tally(ae,0,ae.window[ae.strstart]),ae.lookahead--,ae.strstart++,Ue&&(Ce(ae,!1),ae.strm.avail_out===0))return Wt}return ae.insert=0,ve===$t?(Ce(ae,!0),ae.strm.avail_out===0?_e:Me):ae.last_lit&&(Ce(ae,!1),ae.strm.avail_out===0)?Wt:Ge}(ft,Ot):ft.strategy===3?function(ae,ve){for(var Ue,Te,ke,nn,Wn=ae.window;;){if(ae.lookahead<=Ae){if(Mn(ae),ae.lookahead<=Ae&&ve===Kt)return Wt;if(ae.lookahead===0)break}if(ae.match_length=0,ae.lookahead>=ue&&0<ae.strstart&&(Te=Wn[ke=ae.strstart-1])===Wn[++ke]&&Te===Wn[++ke]&&Te===Wn[++ke]){nn=ae.strstart+Ae;do;while(Te===Wn[++ke]&&Te===Wn[++ke]&&Te===Wn[++ke]&&Te===Wn[++ke]&&Te===Wn[++ke]&&Te===Wn[++ke]&&Te===Wn[++ke]&&Te===Wn[++ke]&&ke<nn);ae.match_length=Ae-(nn-ke),ae.match_length>ae.lookahead&&(ae.match_length=ae.lookahead)}if(ae.match_length>=ue?(Ue=jt._tr_tally(ae,1,ae.match_length-ue),ae.lookahead-=ae.match_length,ae.strstart+=ae.match_length,ae.match_length=0):(Ue=jt._tr_tally(ae,0,ae.window[ae.strstart]),ae.lookahead--,ae.strstart++),Ue&&(Ce(ae,!1),ae.strm.avail_out===0))return Wt}return ae.insert=0,ve===$t?(Ce(ae,!0),ae.strm.avail_out===0?_e:Me):ae.last_lit&&(Ce(ae,!1),ae.strm.avail_out===0)?Wt:Ge}(ft,Ot):Vt[ft.level].func(ft,Ot);if(xe!==_e&&xe!==Me||(ft.status=666),xe===Wt||xe===_e)return Lt.avail_out===0&&(ft.last_flush=-1),Ct;if(xe===Ge&&(Ot===1?jt._tr_align(ft):Ot!==5&&(jt._tr_stored_block(ft,0,0,!1),Ot===3&&(ye(ft.head),ft.lookahead===0&&(ft.strstart=0,ft.block_start=0,ft.insert=0))),ne(Lt),Lt.avail_out===0))return ft.last_flush=-1,Ct}return Ot!==$t?Ct:ft.wrap<=0?1:(ft.wrap===2?(bn(ft,255&Lt.adler),bn(ft,Lt.adler>>8&255),bn(ft,Lt.adler>>16&255),bn(ft,Lt.adler>>24&255),bn(ft,255&Lt.total_in),bn(ft,Lt.total_in>>8&255),bn(ft,Lt.total_in>>16&255),bn(ft,Lt.total_in>>24&255)):(Ln(ft,Lt.adler>>>16),Ln(ft,65535&Lt.adler)),ne(Lt),0<ft.wrap&&(ft.wrap=-ft.wrap),ft.pending!==0?Ct:1)},ee.deflateEnd=function(Lt){var Ot;return Lt&&Lt.state?(Ot=Lt.state.status)!==qt&&Ot!==69&&Ot!==73&&Ot!==91&&Ot!==103&&Ot!==ze&&Ot!==666?We(Lt,et):(Lt.state=null,Ot===ze?We(Lt,-3):Ct):et},ee.deflateSetDictionary=function(Lt,Ot){var mt,ft,pt,At,le,xe,ae,ve,Ue=Ot.length;if(!Lt||!Lt.state||(At=(mt=Lt.state).wrap)===2||At===1&&mt.status!==qt||mt.lookahead)return et;for(At===1&&(Lt.adler=te(Lt.adler,Ot,Ue,0)),mt.wrap=0,Ue>=mt.w_size&&(At===0&&(ye(mt.head),mt.strstart=0,mt.block_start=0,mt.insert=0),ve=new Nt.Buf8(mt.w_size),Nt.arraySet(ve,Ot,Ue-mt.w_size,mt.w_size,0),Ot=ve,Ue=mt.w_size),le=Lt.avail_in,xe=Lt.next_in,ae=Lt.input,Lt.avail_in=Ue,Lt.next_in=0,Lt.input=Ot,Mn(mt);mt.lookahead>=ue;){for(ft=mt.strstart,pt=mt.lookahead-(ue-1);mt.ins_h=(mt.ins_h<<mt.hash_shift^mt.window[ft+ue-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=ue-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=ue-1,mt.match_available=0,Lt.next_in=xe,Lt.input=ae,Lt.avail_in=le,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,Ie,ee){"use strict";Ie.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,Ie,ee){"use strict";Ie.exports=function(Vt,Nt){var jt,te,Pt,oe,Kt,$t,Ct,et,tt,lt,rt,ht,dt,xt,It,Ut,Gt,se,ue,Ae,Pe,qt,ze,Wt,Ge;jt=Vt.state,te=Vt.next_in,Wt=Vt.input,Pt=te+(Vt.avail_in-5),oe=Vt.next_out,Ge=Vt.output,Kt=oe-(Nt-Vt.avail_out),$t=oe+(Vt.avail_out-257),Ct=jt.dmax,et=jt.wsize,tt=jt.whave,lt=jt.wnext,rt=jt.window,ht=jt.hold,dt=jt.bits,xt=jt.lencode,It=jt.distcode,Ut=(1<<jt.lenbits)-1,Gt=(1<<jt.distbits)-1;t:do{dt<15&&(ht+=Wt[te++]<<dt,dt+=8,ht+=Wt[te++]<<dt,dt+=8),se=xt[ht&Ut];e:for(;;){if(ht>>>=ue=se>>>24,dt-=ue,(ue=se>>>16&255)===0)Ge[oe++]=65535&se;else{if(!(16&ue)){if(!(64&ue)){se=xt[(65535&se)+(ht&(1<<ue)-1)];continue e}if(32&ue){jt.mode=12;break t}Vt.msg="invalid literal/length code",jt.mode=30;break t}Ae=65535&se,(ue&=15)&&(dt<ue&&(ht+=Wt[te++]<<dt,dt+=8),Ae+=ht&(1<<ue)-1,ht>>>=ue,dt-=ue),dt<15&&(ht+=Wt[te++]<<dt,dt+=8,ht+=Wt[te++]<<dt,dt+=8),se=It[ht&Gt];n:for(;;){if(ht>>>=ue=se>>>24,dt-=ue,!(16&(ue=se>>>16&255))){if(!(64&ue)){se=It[(65535&se)+(ht&(1<<ue)-1)];continue n}Vt.msg="invalid distance code",jt.mode=30;break t}if(Pe=65535&se,dt<(ue&=15)&&(ht+=Wt[te++]<<dt,(dt+=8)<ue&&(ht+=Wt[te++]<<dt,dt+=8)),Ct<(Pe+=ht&(1<<ue)-1)){Vt.msg="invalid distance too far back",jt.mode=30;break t}if(ht>>>=ue,dt-=ue,(ue=oe-Kt)<Pe){if(tt<(ue=Pe-ue)&&jt.sane){Vt.msg="invalid distance too far back",jt.mode=30;break t}if(ze=rt,(qt=0)===lt){if(qt+=et-ue,ue<Ae){for(Ae-=ue;Ge[oe++]=rt[qt++],--ue;);qt=oe-Pe,ze=Ge}}else if(lt<ue){if(qt+=et+lt-ue,(ue-=lt)<Ae){for(Ae-=ue;Ge[oe++]=rt[qt++],--ue;);if(qt=0,lt<Ae){for(Ae-=ue=lt;Ge[oe++]=rt[qt++],--ue;);qt=oe-Pe,ze=Ge}}}else if(qt+=lt-ue,ue<Ae){for(Ae-=ue;Ge[oe++]=rt[qt++],--ue;);qt=oe-Pe,ze=Ge}for(;2<Ae;)Ge[oe++]=ze[qt++],Ge[oe++]=ze[qt++],Ge[oe++]=ze[qt++],Ae-=3;Ae&&(Ge[oe++]=ze[qt++],1<Ae&&(Ge[oe++]=ze[qt++]))}else{for(qt=oe-Pe;Ge[oe++]=Ge[qt++],Ge[oe++]=Ge[qt++],Ge[oe++]=Ge[qt++],2<(Ae-=3););Ae&&(Ge[oe++]=Ge[qt++],1<Ae&&(Ge[oe++]=Ge[qt++]))}break}}break}}while(te<Pt&&oe<$t);te-=Ae=dt>>3,ht&=(1<<(dt-=Ae<<3))-1,Vt.next_in=te,Vt.next_out=oe,Vt.avail_in=te<Pt?Pt-te+5:5-(te-Pt),Vt.avail_out=oe<$t?$t-oe+257:257-(oe-$t),jt.hold=ht,jt.bits=dt}},{}],49:[function(re,Ie,ee){"use strict";var Vt=re("../utils/common"),Nt=re("./adler32"),jt=re("./crc32"),te=re("./inffast"),Pt=re("./inftrees"),oe=1,Kt=2,$t=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 ht(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Vt.Buf16(320),this.work=new Vt.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function dt(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 Vt.Buf32(tt),ze.distcode=ze.distdyn=new Vt.Buf32(lt),ze.sane=1,ze.back=-1,$t):Ct}function xt(qt){var ze;return qt&&qt.state?((ze=qt.state).wsize=0,ze.whave=0,ze.wnext=0,dt(qt)):Ct}function It(qt,ze){var Wt,Ge;return qt&&qt.state?(Ge=qt.state,ze<0?(Wt=0,ze=-ze):(Wt=1+(ze>>4),ze<48&&(ze&=15)),ze&&(ze<8||15<ze)?Ct:(Ge.window!==null&&Ge.wbits!==ze&&(Ge.window=null),Ge.wrap=Wt,Ge.wbits=ze,xt(qt))):Ct}function Ut(qt,ze){var Wt,Ge;return qt?(Ge=new ht,(qt.state=Ge).window=null,(Wt=It(qt,ze))!==$t&&(qt.state=null),Wt):Ct}var Gt,se,ue=!0;function Ae(qt){if(ue){var ze;for(Gt=new Vt.Buf32(512),se=new Vt.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,Gt,0,qt.work,{bits:9}),ze=0;ze<32;)qt.lens[ze++]=5;Pt(Kt,qt.lens,0,32,se,0,qt.work,{bits:5}),ue=!1}qt.lencode=Gt,qt.lenbits=9,qt.distcode=se,qt.distbits=5}function Pe(qt,ze,Wt,Ge){var _e,Me=qt.state;return Me.window===null&&(Me.wsize=1<<Me.wbits,Me.wnext=0,Me.whave=0,Me.window=new Vt.Buf8(Me.wsize)),Ge>=Me.wsize?(Vt.arraySet(Me.window,ze,Wt-Me.wsize,Me.wsize,0),Me.wnext=0,Me.whave=Me.wsize):(Ge<(_e=Me.wsize-Me.wnext)&&(_e=Ge),Vt.arraySet(Me.window,ze,Wt-Ge,_e,Me.wnext),(Ge-=_e)?(Vt.arraySet(Me.window,ze,Wt-Ge,Ge,0),Me.wnext=Ge,Me.whave=Me.wsize):(Me.wnext+=_e,Me.wnext===Me.wsize&&(Me.wnext=0),Me.whave<Me.wsize&&(Me.whave+=_e))),0}ee.inflateReset=xt,ee.inflateReset2=It,ee.inflateResetKeep=dt,ee.inflateInit=function(qt){return Ut(qt,15)},ee.inflateInit2=Ut,ee.inflate=function(qt,ze){var Wt,Ge,_e,Me,We,Re,ye,ne,Ce,bn,Ln,Ze,Mn,Vn,gi,Kn,Bi,en,Li,Oi,Lt,Ot,mt,ft,pt=0,At=new Vt.Buf8(4),le=[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;(Wt=qt.state).mode===12&&(Wt.mode=13),We=qt.next_out,_e=qt.output,ye=qt.avail_out,Me=qt.next_in,Ge=qt.input,Re=qt.avail_in,ne=Wt.hold,Ce=Wt.bits,bn=Re,Ln=ye,Ot=$t;t:for(;;)switch(Wt.mode){case et:if(Wt.wrap===0){Wt.mode=13;break}for(;Ce<16;){if(Re===0)break t;Re--,ne+=Ge[Me++]<<Ce,Ce+=8}if(2&Wt.wrap&&ne===35615){At[Wt.check=0]=255&ne,At[1]=ne>>>8&255,Wt.check=jt(Wt.check,At,2,0),Ce=ne=0,Wt.mode=2;break}if(Wt.flags=0,Wt.head&&(Wt.head.done=!1),!(1&Wt.wrap)||(((255&ne)<<8)+(ne>>8))%31){qt.msg="incorrect header check",Wt.mode=30;break}if((15&ne)!=8){qt.msg="unknown compression method",Wt.mode=30;break}if(Ce-=4,Lt=8+(15&(ne>>>=4)),Wt.wbits===0)Wt.wbits=Lt;else if(Lt>Wt.wbits){qt.msg="invalid window size",Wt.mode=30;break}Wt.dmax=1<<Lt,qt.adler=Wt.check=1,Wt.mode=512&ne?10:12,Ce=ne=0;break;case 2:for(;Ce<16;){if(Re===0)break t;Re--,ne+=Ge[Me++]<<Ce,Ce+=8}if(Wt.flags=ne,(255&Wt.flags)!=8){qt.msg="unknown compression method",Wt.mode=30;break}if(57344&Wt.flags){qt.msg="unknown header flags set",Wt.mode=30;break}Wt.head&&(Wt.head.text=ne>>8&1),512&Wt.flags&&(At[0]=255&ne,At[1]=ne>>>8&255,Wt.check=jt(Wt.check,At,2,0)),Ce=ne=0,Wt.mode=3;case 3:for(;Ce<32;){if(Re===0)break t;Re--,ne+=Ge[Me++]<<Ce,Ce+=8}Wt.head&&(Wt.head.time=ne),512&Wt.flags&&(At[0]=255&ne,At[1]=ne>>>8&255,At[2]=ne>>>16&255,At[3]=ne>>>24&255,Wt.check=jt(Wt.check,At,4,0)),Ce=ne=0,Wt.mode=4;case 4:for(;Ce<16;){if(Re===0)break t;Re--,ne+=Ge[Me++]<<Ce,Ce+=8}Wt.head&&(Wt.head.xflags=255&ne,Wt.head.os=ne>>8),512&Wt.flags&&(At[0]=255&ne,At[1]=ne>>>8&255,Wt.check=jt(Wt.check,At,2,0)),Ce=ne=0,Wt.mode=5;case 5:if(1024&Wt.flags){for(;Ce<16;){if(Re===0)break t;Re--,ne+=Ge[Me++]<<Ce,Ce+=8}Wt.length=ne,Wt.head&&(Wt.head.extra_len=ne),512&Wt.flags&&(At[0]=255&ne,At[1]=ne>>>8&255,Wt.check=jt(Wt.check,At,2,0)),Ce=ne=0}else Wt.head&&(Wt.head.extra=null);Wt.mode=6;case 6:if(1024&Wt.flags&&(Re<(Ze=Wt.length)&&(Ze=Re),Ze&&(Wt.head&&(Lt=Wt.head.extra_len-Wt.length,Wt.head.extra||(Wt.head.extra=new Array(Wt.head.extra_len)),Vt.arraySet(Wt.head.extra,Ge,Me,Ze,Lt)),512&Wt.flags&&(Wt.check=jt(Wt.check,Ge,Ze,Me)),Re-=Ze,Me+=Ze,Wt.length-=Ze),Wt.length))break t;Wt.length=0,Wt.mode=7;case 7:if(2048&Wt.flags){if(Re===0)break t;for(Ze=0;Lt=Ge[Me+Ze++],Wt.head&&Lt&&Wt.length<65536&&(Wt.head.name+=String.fromCharCode(Lt)),Lt&&Ze<Re;);if(512&Wt.flags&&(Wt.check=jt(Wt.check,Ge,Ze,Me)),Re-=Ze,Me+=Ze,Lt)break t}else Wt.head&&(Wt.head.name=null);Wt.length=0,Wt.mode=8;case 8:if(4096&Wt.flags){if(Re===0)break t;for(Ze=0;Lt=Ge[Me+Ze++],Wt.head&&Lt&&Wt.length<65536&&(Wt.head.comment+=String.fromCharCode(Lt)),Lt&&Ze<Re;);if(512&Wt.flags&&(Wt.check=jt(Wt.check,Ge,Ze,Me)),Re-=Ze,Me+=Ze,Lt)break t}else Wt.head&&(Wt.head.comment=null);Wt.mode=9;case 9:if(512&Wt.flags){for(;Ce<16;){if(Re===0)break t;Re--,ne+=Ge[Me++]<<Ce,Ce+=8}if(ne!==(65535&Wt.check)){qt.msg="header crc mismatch",Wt.mode=30;break}Ce=ne=0}Wt.head&&(Wt.head.hcrc=Wt.flags>>9&1,Wt.head.done=!0),qt.adler=Wt.check=0,Wt.mode=12;break;case 10:for(;Ce<32;){if(Re===0)break t;Re--,ne+=Ge[Me++]<<Ce,Ce+=8}qt.adler=Wt.check=rt(ne),Ce=ne=0,Wt.mode=11;case 11:if(Wt.havedict===0)return qt.next_out=We,qt.avail_out=ye,qt.next_in=Me,qt.avail_in=Re,Wt.hold=ne,Wt.bits=Ce,2;qt.adler=Wt.check=1,Wt.mode=12;case 12:if(ze===5||ze===6)break t;case 13:if(Wt.last){ne>>>=7&Ce,Ce-=7&Ce,Wt.mode=27;break}for(;Ce<3;){if(Re===0)break t;Re--,ne+=Ge[Me++]<<Ce,Ce+=8}switch(Wt.last=1&ne,Ce-=1,3&(ne>>>=1)){case 0:Wt.mode=14;break;case 1:if(Ae(Wt),Wt.mode=20,ze!==6)break;ne>>>=2,Ce-=2;break t;case 2:Wt.mode=17;break;case 3:qt.msg="invalid block type",Wt.mode=30}ne>>>=2,Ce-=2;break;case 14:for(ne>>>=7&Ce,Ce-=7&Ce;Ce<32;){if(Re===0)break t;Re--,ne+=Ge[Me++]<<Ce,Ce+=8}if((65535&ne)!=(ne>>>16^65535)){qt.msg="invalid stored block lengths",Wt.mode=30;break}if(Wt.length=65535&ne,Ce=ne=0,Wt.mode=15,ze===6)break t;case 15:Wt.mode=16;case 16:if(Ze=Wt.length){if(Re<Ze&&(Ze=Re),ye<Ze&&(Ze=ye),Ze===0)break t;Vt.arraySet(_e,Ge,Me,Ze,We),Re-=Ze,Me+=Ze,ye-=Ze,We+=Ze,Wt.length-=Ze;break}Wt.mode=12;break;case 17:for(;Ce<14;){if(Re===0)break t;Re--,ne+=Ge[Me++]<<Ce,Ce+=8}if(Wt.nlen=257+(31&ne),ne>>>=5,Ce-=5,Wt.ndist=1+(31&ne),ne>>>=5,Ce-=5,Wt.ncode=4+(15&ne),ne>>>=4,Ce-=4,286<Wt.nlen||30<Wt.ndist){qt.msg="too many length or distance symbols",Wt.mode=30;break}Wt.have=0,Wt.mode=18;case 18:for(;Wt.have<Wt.ncode;){for(;Ce<3;){if(Re===0)break t;Re--,ne+=Ge[Me++]<<Ce,Ce+=8}Wt.lens[le[Wt.have++]]=7&ne,ne>>>=3,Ce-=3}for(;Wt.have<19;)Wt.lens[le[Wt.have++]]=0;if(Wt.lencode=Wt.lendyn,Wt.lenbits=7,mt={bits:Wt.lenbits},Ot=Pt(0,Wt.lens,0,19,Wt.lencode,0,Wt.work,mt),Wt.lenbits=mt.bits,Ot){qt.msg="invalid code lengths set",Wt.mode=30;break}Wt.have=0,Wt.mode=19;case 19:for(;Wt.have<Wt.nlen+Wt.ndist;){for(;Kn=(pt=Wt.lencode[ne&(1<<Wt.lenbits)-1])>>>16&255,Bi=65535&pt,!((gi=pt>>>24)<=Ce);){if(Re===0)break t;Re--,ne+=Ge[Me++]<<Ce,Ce+=8}if(Bi<16)ne>>>=gi,Ce-=gi,Wt.lens[Wt.have++]=Bi;else{if(Bi===16){for(ft=gi+2;Ce<ft;){if(Re===0)break t;Re--,ne+=Ge[Me++]<<Ce,Ce+=8}if(ne>>>=gi,Ce-=gi,Wt.have===0){qt.msg="invalid bit length repeat",Wt.mode=30;break}Lt=Wt.lens[Wt.have-1],Ze=3+(3&ne),ne>>>=2,Ce-=2}else if(Bi===17){for(ft=gi+3;Ce<ft;){if(Re===0)break t;Re--,ne+=Ge[Me++]<<Ce,Ce+=8}Ce-=gi,Lt=0,Ze=3+(7&(ne>>>=gi)),ne>>>=3,Ce-=3}else{for(ft=gi+7;Ce<ft;){if(Re===0)break t;Re--,ne+=Ge[Me++]<<Ce,Ce+=8}Ce-=gi,Lt=0,Ze=11+(127&(ne>>>=gi)),ne>>>=7,Ce-=7}if(Wt.have+Ze>Wt.nlen+Wt.ndist){qt.msg="invalid bit length repeat",Wt.mode=30;break}for(;Ze--;)Wt.lens[Wt.have++]=Lt}}if(Wt.mode===30)break;if(Wt.lens[256]===0){qt.msg="invalid code -- missing end-of-block",Wt.mode=30;break}if(Wt.lenbits=9,mt={bits:Wt.lenbits},Ot=Pt(oe,Wt.lens,0,Wt.nlen,Wt.lencode,0,Wt.work,mt),Wt.lenbits=mt.bits,Ot){qt.msg="invalid literal/lengths set",Wt.mode=30;break}if(Wt.distbits=6,Wt.distcode=Wt.distdyn,mt={bits:Wt.distbits},Ot=Pt(Kt,Wt.lens,Wt.nlen,Wt.ndist,Wt.distcode,0,Wt.work,mt),Wt.distbits=mt.bits,Ot){qt.msg="invalid distances set",Wt.mode=30;break}if(Wt.mode=20,ze===6)break t;case 20:Wt.mode=21;case 21:if(6<=Re&&258<=ye){qt.next_out=We,qt.avail_out=ye,qt.next_in=Me,qt.avail_in=Re,Wt.hold=ne,Wt.bits=Ce,te(qt,Ln),We=qt.next_out,_e=qt.output,ye=qt.avail_out,Me=qt.next_in,Ge=qt.input,Re=qt.avail_in,ne=Wt.hold,Ce=Wt.bits,Wt.mode===12&&(Wt.back=-1);break}for(Wt.back=0;Kn=(pt=Wt.lencode[ne&(1<<Wt.lenbits)-1])>>>16&255,Bi=65535&pt,!((gi=pt>>>24)<=Ce);){if(Re===0)break t;Re--,ne+=Ge[Me++]<<Ce,Ce+=8}if(Kn&&!(240&Kn)){for(en=gi,Li=Kn,Oi=Bi;Kn=(pt=Wt.lencode[Oi+((ne&(1<<en+Li)-1)>>en)])>>>16&255,Bi=65535&pt,!(en+(gi=pt>>>24)<=Ce);){if(Re===0)break t;Re--,ne+=Ge[Me++]<<Ce,Ce+=8}ne>>>=en,Ce-=en,Wt.back+=en}if(ne>>>=gi,Ce-=gi,Wt.back+=gi,Wt.length=Bi,Kn===0){Wt.mode=26;break}if(32&Kn){Wt.back=-1,Wt.mode=12;break}if(64&Kn){qt.msg="invalid literal/length code",Wt.mode=30;break}Wt.extra=15&Kn,Wt.mode=22;case 22:if(Wt.extra){for(ft=Wt.extra;Ce<ft;){if(Re===0)break t;Re--,ne+=Ge[Me++]<<Ce,Ce+=8}Wt.length+=ne&(1<<Wt.extra)-1,ne>>>=Wt.extra,Ce-=Wt.extra,Wt.back+=Wt.extra}Wt.was=Wt.length,Wt.mode=23;case 23:for(;Kn=(pt=Wt.distcode[ne&(1<<Wt.distbits)-1])>>>16&255,Bi=65535&pt,!((gi=pt>>>24)<=Ce);){if(Re===0)break t;Re--,ne+=Ge[Me++]<<Ce,Ce+=8}if(!(240&Kn)){for(en=gi,Li=Kn,Oi=Bi;Kn=(pt=Wt.distcode[Oi+((ne&(1<<en+Li)-1)>>en)])>>>16&255,Bi=65535&pt,!(en+(gi=pt>>>24)<=Ce);){if(Re===0)break t;Re--,ne+=Ge[Me++]<<Ce,Ce+=8}ne>>>=en,Ce-=en,Wt.back+=en}if(ne>>>=gi,Ce-=gi,Wt.back+=gi,64&Kn){qt.msg="invalid distance code",Wt.mode=30;break}Wt.offset=Bi,Wt.extra=15&Kn,Wt.mode=24;case 24:if(Wt.extra){for(ft=Wt.extra;Ce<ft;){if(Re===0)break t;Re--,ne+=Ge[Me++]<<Ce,Ce+=8}Wt.offset+=ne&(1<<Wt.extra)-1,ne>>>=Wt.extra,Ce-=Wt.extra,Wt.back+=Wt.extra}if(Wt.offset>Wt.dmax){qt.msg="invalid distance too far back",Wt.mode=30;break}Wt.mode=25;case 25:if(ye===0)break t;if(Ze=Ln-ye,Wt.offset>Ze){if((Ze=Wt.offset-Ze)>Wt.whave&&Wt.sane){qt.msg="invalid distance too far back",Wt.mode=30;break}Mn=Ze>Wt.wnext?(Ze-=Wt.wnext,Wt.wsize-Ze):Wt.wnext-Ze,Ze>Wt.length&&(Ze=Wt.length),Vn=Wt.window}else Vn=_e,Mn=We-Wt.offset,Ze=Wt.length;for(ye<Ze&&(Ze=ye),ye-=Ze,Wt.length-=Ze;_e[We++]=Vn[Mn++],--Ze;);Wt.length===0&&(Wt.mode=21);break;case 26:if(ye===0)break t;_e[We++]=Wt.length,ye--,Wt.mode=21;break;case 27:if(Wt.wrap){for(;Ce<32;){if(Re===0)break t;Re--,ne|=Ge[Me++]<<Ce,Ce+=8}if(Ln-=ye,qt.total_out+=Ln,Wt.total+=Ln,Ln&&(qt.adler=Wt.check=Wt.flags?jt(Wt.check,_e,Ln,We-Ln):Nt(Wt.check,_e,Ln,We-Ln)),Ln=ye,(Wt.flags?ne:rt(ne))!==Wt.check){qt.msg="incorrect data check",Wt.mode=30;break}Ce=ne=0}Wt.mode=28;case 28:if(Wt.wrap&&Wt.flags){for(;Ce<32;){if(Re===0)break t;Re--,ne+=Ge[Me++]<<Ce,Ce+=8}if(ne!==(4294967295&Wt.total)){qt.msg="incorrect length check",Wt.mode=30;break}Ce=ne=0}Wt.mode=29;case 29:Ot=1;break t;case 30:Ot=-3;break t;case 31:return-4;case 32:default:return Ct}return qt.next_out=We,qt.avail_out=ye,qt.next_in=Me,qt.avail_in=Re,Wt.hold=ne,Wt.bits=Ce,(Wt.wsize||Ln!==qt.avail_out&&Wt.mode<30&&(Wt.mode<27||ze!==4))&&Pe(qt,qt.output,qt.next_out,Ln-qt.avail_out)?(Wt.mode=31,-4):(bn-=qt.avail_in,Ln-=qt.avail_out,qt.total_in+=bn,qt.total_out+=Ln,Wt.total+=Ln,Wt.wrap&&Ln&&(qt.adler=Wt.check=Wt.flags?jt(Wt.check,_e,Ln,qt.next_out-Ln):Nt(Wt.check,_e,Ln,qt.next_out-Ln)),qt.data_type=Wt.bits+(Wt.last?64:0)+(Wt.mode===12?128:0)+(Wt.mode===20||Wt.mode===15?256:0),(bn==0&&Ln===0||ze===4)&&Ot===$t&&(Ot=-5),Ot)},ee.inflateEnd=function(qt){if(!qt||!qt.state)return Ct;var ze=qt.state;return ze.window&&(ze.window=null),qt.state=null,$t},ee.inflateGetHeader=function(qt,ze){var Wt;return qt&&qt.state&&2&(Wt=qt.state).wrap?((Wt.head=ze).done=!1,$t):Ct},ee.inflateSetDictionary=function(qt,ze){var Wt,Ge=ze.length;return qt&&qt.state?(Wt=qt.state).wrap!==0&&Wt.mode!==11?Ct:Wt.mode===11&&Nt(1,ze,Ge,0)!==Wt.check?-3:Pe(qt,ze,Ge,Ge)?(Wt.mode=31,-4):(Wt.havedict=1,$t):Ct},ee.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(re,Ie,ee){"use strict";var Vt=re("../utils/common"),Nt=[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],te=[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];Ie.exports=function(oe,Kt,$t,Ct,et,tt,lt,rt){var ht,dt,xt,It,Ut,Gt,se,ue,Ae,Pe=rt.bits,qt=0,ze=0,Wt=0,Ge=0,_e=0,Me=0,We=0,Re=0,ye=0,ne=0,Ce=null,bn=0,Ln=new Vt.Buf16(16),Ze=new Vt.Buf16(16),Mn=null,Vn=0;for(qt=0;qt<=15;qt++)Ln[qt]=0;for(ze=0;ze<Ct;ze++)Ln[Kt[$t+ze]]++;for(_e=Pe,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(Wt=1;Wt<Ge&&Ln[Wt]===0;Wt++);for(_e<Wt&&(_e=Wt),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(Ze[1]=0,qt=1;qt<15;qt++)Ze[qt+1]=Ze[qt]+Ln[qt];for(ze=0;ze<Ct;ze++)Kt[$t+ze]!==0&&(lt[Ze[Kt[$t+ze]]++]=ze);if(Gt=oe===0?(Ce=Mn=lt,19):oe===1?(Ce=Nt,bn-=257,Mn=jt,Vn-=257,256):(Ce=te,Mn=Pt,-1),qt=Wt,Ut=tt,We=ze=ne=0,xt=-1,It=(ye=1<<(Me=_e))-1,oe===1&&852<ye||oe===2&&592<ye)return 1;for(;;){for(se=qt-We,Ae=lt[ze]<Gt?(ue=0,lt[ze]):lt[ze]>Gt?(ue=Mn[Vn+lt[ze]],Ce[bn+lt[ze]]):(ue=96,0),ht=1<<qt-We,Wt=dt=1<<Me;et[Ut+(ne>>We)+(dt-=ht)]=se<<24|ue<<16|Ae|0,dt!==0;);for(ht=1<<qt-1;ne&ht;)ht>>=1;if(ht!==0?(ne&=ht-1,ne+=ht):ne=0,ze++,--Ln[qt]==0){if(qt===Ge)break;qt=Kt[$t+lt[ze]]}if(_e<qt&&(ne&It)!==xt){for(We===0&&(We=_e),Ut+=Wt,Re=1<<(Me=qt-We);Me+We<Ge&&!((Re-=Ln[Me+We])<=0);)Me++,Re<<=1;if(ye+=1<<Me,oe===1&&852<ye||oe===2&&592<ye)return 1;et[xt=ne&It]=_e<<24|Me<<16|Ut-tt|0}}return ne!==0&&(et[Ut+ne]=qt-We<<24|64<<16|0),rt.bits=_e,0}},{"../utils/common":41}],51:[function(re,Ie,ee){"use strict";Ie.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,Ie,ee){"use strict";var Vt=re("../utils/common"),Nt=0,jt=1;function te(pt){for(var At=pt.length;0<=--At;)pt[At]=0}var Pt=0,oe=29,Kt=256,$t=Kt+1+oe,Ct=30,et=19,tt=2*$t+1,lt=15,rt=16,ht=7,dt=256,xt=16,It=17,Ut=18,Gt=[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],se=[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],ue=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Pe=new Array(2*($t+2));te(Pe);var qt=new Array(2*Ct);te(qt);var ze=new Array(512);te(ze);var Wt=new Array(256);te(Wt);var Ge=new Array(oe);te(Ge);var _e,Me,We,Re=new Array(Ct);function ye(pt,At,le,xe,ae){this.static_tree=pt,this.extra_bits=At,this.extra_base=le,this.elems=xe,this.max_length=ae,this.has_stree=pt&&pt.length}function ne(pt,At){this.dyn_tree=pt,this.max_code=0,this.stat_desc=At}function Ce(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,le){pt.bi_valid>rt-le?(pt.bi_buf|=At<<pt.bi_valid&65535,bn(pt,pt.bi_buf),pt.bi_buf=At>>rt-pt.bi_valid,pt.bi_valid+=le-rt):(pt.bi_buf|=At<<pt.bi_valid&65535,pt.bi_valid+=le)}function Ze(pt,At,le){Ln(pt,le[2*At],le[2*At+1])}function Mn(pt,At){for(var le=0;le|=1&pt,pt>>>=1,le<<=1,0<--At;);return le>>>1}function Vn(pt,At,le){var xe,ae,ve=new Array(lt+1),Ue=0;for(xe=1;xe<=lt;xe++)ve[xe]=Ue=Ue+le[xe-1]<<1;for(ae=0;ae<=At;ae++){var Te=pt[2*ae+1];Te!==0&&(pt[2*ae]=Mn(ve[Te]++,Te))}}function gi(pt){var At;for(At=0;At<$t;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*dt]=1,pt.opt_len=pt.static_len=0,pt.last_lit=pt.matches=0}function Kn(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 Bi(pt,At,le,xe){var ae=2*At,ve=2*le;return pt[ae]<pt[ve]||pt[ae]===pt[ve]&&xe[At]<=xe[le]}function en(pt,At,le){for(var xe=pt.heap[le],ae=le<<1;ae<=pt.heap_len&&(ae<pt.heap_len&&Bi(At,pt.heap[ae+1],pt.heap[ae],pt.depth)&&ae++,!Bi(At,xe,pt.heap[ae],pt.depth));)pt.heap[le]=pt.heap[ae],le=ae,ae<<=1;pt.heap[le]=xe}function Li(pt,At,le){var xe,ae,ve,Ue,Te=0;if(pt.last_lit!==0)for(;xe=pt.pending_buf[pt.d_buf+2*Te]<<8|pt.pending_buf[pt.d_buf+2*Te+1],ae=pt.pending_buf[pt.l_buf+Te],Te++,xe===0?Ze(pt,ae,At):(Ze(pt,(ve=Wt[ae])+Kt+1,At),(Ue=Gt[ve])!==0&&Ln(pt,ae-=Ge[ve],Ue),Ze(pt,ve=Ce(--xe),le),(Ue=se[ve])!==0&&Ln(pt,xe-=Re[ve],Ue)),Te<pt.last_lit;);Ze(pt,dt,At)}function Oi(pt,At){var le,xe,ae,ve=At.dyn_tree,Ue=At.stat_desc.static_tree,Te=At.stat_desc.has_stree,ke=At.stat_desc.elems,nn=-1;for(pt.heap_len=0,pt.heap_max=tt,le=0;le<ke;le++)ve[2*le]!==0?(pt.heap[++pt.heap_len]=nn=le,pt.depth[le]=0):ve[2*le+1]=0;for(;pt.heap_len<2;)ve[2*(ae=pt.heap[++pt.heap_len]=nn<2?++nn:0)]=1,pt.depth[ae]=0,pt.opt_len--,Te&&(pt.static_len-=Ue[2*ae+1]);for(At.max_code=nn,le=pt.heap_len>>1;1<=le;le--)en(pt,ve,le);for(ae=ke;le=pt.heap[1],pt.heap[1]=pt.heap[pt.heap_len--],en(pt,ve,1),xe=pt.heap[1],pt.heap[--pt.heap_max]=le,pt.heap[--pt.heap_max]=xe,ve[2*ae]=ve[2*le]+ve[2*xe],pt.depth[ae]=(pt.depth[le]>=pt.depth[xe]?pt.depth[le]:pt.depth[xe])+1,ve[2*le+1]=ve[2*xe+1]=ae,pt.heap[1]=ae++,en(pt,ve,1),2<=pt.heap_len;);pt.heap[--pt.heap_max]=pt.heap[1],function(Wn,an){var gn,Bn,ti,Rn,Ri,dr,Ji=an.dyn_tree,mr=an.max_code,Mr=an.stat_desc.static_tree,ro=an.stat_desc.has_stree,Jr=an.stat_desc.extra_bits,$r=an.stat_desc.extra_base,Tr=an.stat_desc.max_length,Wr=0;for(Rn=0;Rn<=lt;Rn++)Wn.bl_count[Rn]=0;for(Ji[2*Wn.heap[Wn.heap_max]+1]=0,gn=Wn.heap_max+1;gn<tt;gn++)Tr<(Rn=Ji[2*Ji[2*(Bn=Wn.heap[gn])+1]+1]+1)&&(Rn=Tr,Wr++),Ji[2*Bn+1]=Rn,mr<Bn||(Wn.bl_count[Rn]++,Ri=0,$r<=Bn&&(Ri=Jr[Bn-$r]),dr=Ji[2*Bn],Wn.opt_len+=dr*(Rn+Ri),ro&&(Wn.static_len+=dr*(Mr[2*Bn+1]+Ri)));if(Wr!==0){do{for(Rn=Tr-1;Wn.bl_count[Rn]===0;)Rn--;Wn.bl_count[Rn]--,Wn.bl_count[Rn+1]+=2,Wn.bl_count[Tr]--,Wr-=2}while(0<Wr);for(Rn=Tr;Rn!==0;Rn--)for(Bn=Wn.bl_count[Rn];Bn!==0;)mr<(ti=Wn.heap[--gn])||(Ji[2*ti+1]!==Rn&&(Wn.opt_len+=(Rn-Ji[2*ti+1])*Ji[2*ti],Ji[2*ti+1]=Rn),Bn--)}}(pt,At),Vn(ve,nn,pt.bl_count)}function Lt(pt,At,le){var xe,ae,ve=-1,Ue=At[1],Te=0,ke=7,nn=4;for(Ue===0&&(ke=138,nn=3),At[2*(le+1)+1]=65535,xe=0;xe<=le;xe++)ae=Ue,Ue=At[2*(xe+1)+1],++Te<ke&&ae===Ue||(Te<nn?pt.bl_tree[2*ae]+=Te:ae!==0?(ae!==ve&&pt.bl_tree[2*ae]++,pt.bl_tree[2*xt]++):Te<=10?pt.bl_tree[2*It]++:pt.bl_tree[2*Ut]++,ve=ae,nn=(Te=0)===Ue?(ke=138,3):ae===Ue?(ke=6,3):(ke=7,4))}function Ot(pt,At,le){var xe,ae,ve=-1,Ue=At[1],Te=0,ke=7,nn=4;for(Ue===0&&(ke=138,nn=3),xe=0;xe<=le;xe++)if(ae=Ue,Ue=At[2*(xe+1)+1],!(++Te<ke&&ae===Ue)){if(Te<nn)for(;Ze(pt,ae,pt.bl_tree),--Te!=0;);else ae!==0?(ae!==ve&&(Ze(pt,ae,pt.bl_tree),Te--),Ze(pt,xt,pt.bl_tree),Ln(pt,Te-3,2)):Te<=10?(Ze(pt,It,pt.bl_tree),Ln(pt,Te-3,3)):(Ze(pt,Ut,pt.bl_tree),Ln(pt,Te-11,7));ve=ae,nn=(Te=0)===Ue?(ke=138,3):ae===Ue?(ke=6,3):(ke=7,4)}}te(Re);var mt=!1;function ft(pt,At,le,xe){Ln(pt,(Pt<<1)+(xe?1:0),3),function(ae,ve,Ue,Te){Kn(ae),Te&&(bn(ae,Ue),bn(ae,~Ue)),Vt.arraySet(ae.pending_buf,ae.window,ve,Ue,ae.pending),ae.pending+=Ue}(pt,At,le,!0)}ee._tr_init=function(pt){mt||(function(){var At,le,xe,ae,ve,Ue=new Array(lt+1);for(ae=xe=0;ae<oe-1;ae++)for(Ge[ae]=xe,At=0;At<1<<Gt[ae];At++)Wt[xe++]=ae;for(Wt[xe-1]=ae,ae=ve=0;ae<16;ae++)for(Re[ae]=ve,At=0;At<1<<se[ae];At++)ze[ve++]=ae;for(ve>>=7;ae<Ct;ae++)for(Re[ae]=ve<<7,At=0;At<1<<se[ae]-7;At++)ze[256+ve++]=ae;for(le=0;le<=lt;le++)Ue[le]=0;for(At=0;At<=143;)Pe[2*At+1]=8,At++,Ue[8]++;for(;At<=255;)Pe[2*At+1]=9,At++,Ue[9]++;for(;At<=279;)Pe[2*At+1]=7,At++,Ue[7]++;for(;At<=287;)Pe[2*At+1]=8,At++,Ue[8]++;for(Vn(Pe,$t+1,Ue),At=0;At<Ct;At++)qt[2*At+1]=5,qt[2*At]=Mn(At,5);_e=new ye(Pe,Gt,Kt+1,$t,lt),Me=new ye(qt,se,0,Ct,lt),We=new ye(new Array(0),ue,0,et,ht)}(),mt=!0),pt.l_desc=new ne(pt.dyn_ltree,_e),pt.d_desc=new ne(pt.dyn_dtree,Me),pt.bl_desc=new ne(pt.bl_tree,We),pt.bi_buf=0,pt.bi_valid=0,gi(pt)},ee._tr_stored_block=ft,ee._tr_flush_block=function(pt,At,le,xe){var ae,ve,Ue=0;0<pt.level?(pt.strm.data_type===2&&(pt.strm.data_type=function(Te){var ke,nn=4093624447;for(ke=0;ke<=31;ke++,nn>>>=1)if(1&nn&&Te.dyn_ltree[2*ke]!==0)return Nt;if(Te.dyn_ltree[18]!==0||Te.dyn_ltree[20]!==0||Te.dyn_ltree[26]!==0)return jt;for(ke=32;ke<Kt;ke++)if(Te.dyn_ltree[2*ke]!==0)return jt;return Nt}(pt)),Oi(pt,pt.l_desc),Oi(pt,pt.d_desc),Ue=function(Te){var ke;for(Lt(Te,Te.dyn_ltree,Te.l_desc.max_code),Lt(Te,Te.dyn_dtree,Te.d_desc.max_code),Oi(Te,Te.bl_desc),ke=et-1;3<=ke&&Te.bl_tree[2*Ae[ke]+1]===0;ke--);return Te.opt_len+=3*(ke+1)+5+5+4,ke}(pt),ae=pt.opt_len+3+7>>>3,(ve=pt.static_len+3+7>>>3)<=ae&&(ae=ve)):ae=ve=le+5,le+4<=ae&&At!==-1?ft(pt,At,le,xe):pt.strategy===4||ve===ae?(Ln(pt,2+(xe?1:0),3),Li(pt,Pe,qt)):(Ln(pt,4+(xe?1:0),3),function(Te,ke,nn,Wn){var an;for(Ln(Te,ke-257,5),Ln(Te,nn-1,5),Ln(Te,Wn-4,4),an=0;an<Wn;an++)Ln(Te,Te.bl_tree[2*Ae[an]+1],3);Ot(Te,Te.dyn_ltree,ke-1),Ot(Te,Te.dyn_dtree,nn-1)}(pt,pt.l_desc.max_code+1,pt.d_desc.max_code+1,Ue+1),Li(pt,pt.dyn_ltree,pt.dyn_dtree)),gi(pt),xe&&Kn(pt)},ee._tr_tally=function(pt,At,le){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&le,pt.last_lit++,At===0?pt.dyn_ltree[2*le]++:(pt.matches++,At--,pt.dyn_ltree[2*(Wt[le]+Kt+1)]++,pt.dyn_dtree[2*Ce(At)]++),pt.last_lit===pt.lit_bufsize-1},ee._tr_align=function(pt){Ln(pt,2,3),Ze(pt,dt,Pe),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,Ie,ee){"use strict";Ie.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,Ie,ee){(function(Vt){(function(Nt,jt){"use strict";if(!Nt.setImmediate){var te,Pt,oe,Kt,$t=1,Ct={},et=!1,tt=Nt.document,lt=Object.getPrototypeOf&&Object.getPrototypeOf(Nt);lt=lt&<.setTimeout?lt:Nt,te={}.toString.call(Nt.process)==="[object process]"?function(xt){ce.nextTick(function(){ht(xt)})}:function(){if(Nt.postMessage&&!Nt.importScripts){var xt=!0,It=Nt.onmessage;return Nt.onmessage=function(){xt=!1},Nt.postMessage("","*"),Nt.onmessage=It,xt}}()?(Kt="setImmediate$"+Math.random()+"$",Nt.addEventListener?Nt.addEventListener("message",dt,!1):Nt.attachEvent("onmessage",dt),function(xt){Nt.postMessage(Kt+xt,"*")}):Nt.MessageChannel?((oe=new MessageChannel).port1.onmessage=function(xt){ht(xt.data)},function(xt){oe.port2.postMessage(xt)}):tt&&"onreadystatechange"in tt.createElement("script")?(Pt=tt.documentElement,function(xt){var It=tt.createElement("script");It.onreadystatechange=function(){ht(xt),It.onreadystatechange=null,Pt.removeChild(It),It=null},Pt.appendChild(It)}):function(xt){setTimeout(ht,0,xt)},lt.setImmediate=function(xt){typeof xt!="function"&&(xt=new Function(""+xt));for(var It=new Array(arguments.length-1),Ut=0;Ut<It.length;Ut++)It[Ut]=arguments[Ut+1];var Gt={callback:xt,args:It};return Ct[$t]=Gt,te($t),$t++},lt.clearImmediate=rt}function rt(xt){delete Ct[xt]}function ht(xt){if(et)setTimeout(ht,0,xt);else{var It=Ct[xt];if(It){et=!0;try{(function(Ut){var Gt=Ut.callback,se=Ut.args;switch(se.length){case 0:Gt();break;case 1:Gt(se[0]);break;case 2:Gt(se[0],se[1]);break;case 3:Gt(se[0],se[1],se[2]);break;default:Gt.apply(jt,se)}})(It)}finally{rt(xt),et=!1}}}}function dt(xt){xt.source===Nt&&typeof xt.data=="string"&&xt.data.indexOf(Kt)===0&&ht(+xt.data.slice(Kt.length))}})(typeof self=="undefined"?Vt===void 0?this:Vt:self)}).call(this,typeof Ft.g!="undefined"?Ft.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})},2859:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{hP:function(){return Oi}});var Mt=function(Lt,Ot){return(Mt=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])})(Lt,Ot)};function ce(Lt,Ot){function mt(){this.constructor=Lt}Mt(Lt,Ot),Lt.prototype=Ot===null?Object.create(Ot):(mt.prototype=Ot.prototype,new mt)}function re(Lt,Ot,mt,ft){return new(mt||(mt=Promise))(function(pt,At){function le(ve){try{ae(ft.next(ve))}catch(Ue){At(Ue)}}function xe(ve){try{ae(ft.throw(ve))}catch(Ue){At(Ue)}}function ae(ve){var Ue;ve.done?pt(ve.value):(Ue=ve.value,Ue instanceof mt?Ue:new mt(function(Te){Te(Ue)})).then(le,xe)}ae((ft=ft.apply(Lt,Ot||[])).next())})}function Ie(Lt,Ot){var mt,ft,pt,At,le={label:0,sent:function(){if(1&pt[0])throw pt[1];return pt[1]},trys:[],ops:[]};return At={next:xe(0),throw:xe(1),return:xe(2)},typeof Symbol=="function"&&(At[Symbol.iterator]=function(){return this}),At;function xe(ae){return function(ve){return function(Ue){if(mt)throw new TypeError("Generator is already executing.");for(;le;)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 le.label++,{value:Ue[1],done:!1};case 5:le.label++,ft=Ue[1],Ue=[0];continue;case 7:Ue=le.ops.pop(),le.trys.pop();continue;default:if(pt=le.trys,!((pt=pt.length>0&&pt[pt.length-1])||Ue[0]!==6&&Ue[0]!==2)){le=0;continue}if(Ue[0]===3&&(!pt||Ue[1]>pt[0]&&Ue[1]<pt[3])){le.label=Ue[1];break}if(Ue[0]===6&&le.label<pt[1]){le.label=pt[1],pt=Ue;break}if(pt&&le.label<pt[2]){le.label=pt[2],le.ops.push(Ue);break}pt[2]&&le.ops.pop(),le.trys.pop();continue}Ue=Ot.call(Lt,le)}catch(Te){Ue=[6,Te],ft=0}finally{mt=pt=0}if(5&Ue[0])throw Ue[1];return{value:Ue[0]?Ue[1]:void 0,done:!0}}([ae,ve])}}}function ee(){for(var Lt=0,Ot=0,mt=arguments.length;Ot<mt;Ot++)Lt+=arguments[Ot].length;var ft=Array(Lt),pt=0;for(Ot=0;Ot<mt;Ot++)for(var At=arguments[Ot],le=0,xe=At.length;le<xe;le++,pt++)ft[pt]=At[le];return ft}var Vt=function(){function Lt(){}return Lt.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Lt.setAttributes=function(Ot,mt){for(var ft=0,pt=mt;ft<pt.length;ft++){var At=pt[ft],le=At[0],xe=At[1];Ot.setAttribute(le,xe)}},Lt.createRect=function(Ot,mt,ft){var pt=document.createElementNS("http://www.w3.org/2000/svg","rect");return pt.setAttribute("width",Ot.toString()),pt.setAttribute("height",mt.toString()),ft&&Lt.setAttributes(pt,ft),pt},Lt.createLine=function(Ot,mt,ft,pt,At){var le=document.createElementNS("http://www.w3.org/2000/svg","line");return le.setAttribute("x1",Ot.toString()),le.setAttribute("y1",mt.toString()),le.setAttribute("x2",ft.toString()),le.setAttribute("y2",pt.toString()),At&&Lt.setAttributes(le,At),le},Lt.createPolygon=function(Ot,mt){var ft=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ft.setAttribute("points",Ot),mt&&Lt.setAttributes(ft,mt),ft},Lt.createCircle=function(Ot,mt){var ft=document.createElementNS("http://www.w3.org/2000/svg","circle");return ft.setAttribute("cx",(Ot/2).toString()),ft.setAttribute("cy",(Ot/2).toString()),ft.setAttribute("r",Ot.toString()),mt&&Lt.setAttributes(ft,mt),ft},Lt.createEllipse=function(Ot,mt,ft){var pt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return pt.setAttribute("cx",(Ot/2).toString()),pt.setAttribute("cy",(mt/2).toString()),pt.setAttribute("rx",(Ot/2).toString()),pt.setAttribute("ry",(mt/2).toString()),ft&&Lt.setAttributes(pt,ft),pt},Lt.createGroup=function(Ot){var mt=document.createElementNS("http://www.w3.org/2000/svg","g");return Ot&&Lt.setAttributes(mt,Ot),mt},Lt.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Lt.createMarker=function(Ot,mt,ft,pt,At,le,xe){var ae=document.createElementNS("http://www.w3.org/2000/svg","marker");return Lt.setAttributes(ae,[["id",Ot],["orient",mt],["markerWidth",ft.toString()],["markerHeight",pt.toString()],["refX",At.toString()],["refY",le.toString()]]),ae.appendChild(xe),ae},Lt.createText=function(Ot){var mt=document.createElementNS("http://www.w3.org/2000/svg","text");return mt.setAttribute("x","0"),mt.setAttribute("y","0"),Ot&&Lt.setAttributes(mt,Ot),mt},Lt.createTSpan=function(Ot,mt){var ft=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ft.textContent=Ot,mt&&Lt.setAttributes(ft,mt),ft},Lt.createImage=function(Ot){var mt=document.createElementNS("http://www.w3.org/2000/svg","image");return Ot&&Lt.setAttributes(mt,Ot),mt},Lt.createPoint=function(Ot,mt){var ft=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ft.x=Ot,ft.y=mt,ft},Lt.createPath=function(Ot,mt){var ft=document.createElementNS("http://www.w3.org/2000/svg","path");return ft.setAttribute("d",Ot),mt&&Lt.setAttributes(ft,mt),ft},Lt}(),Nt=function(){function Lt(){}return Lt.addKey=function(Ot){Lt.key=Ot},Object.defineProperty(Lt,"isLicensed",{get:function(){return!!Lt.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Lt.key)},enumerable:!1,configurable:!0}),Lt}(),jt=function(){function Lt(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Lt.prototype.rasterize=function(Ot,mt,ft){var pt=this;return new Promise(function(At){var le=ft!==void 0?ft:document.createElement("canvas");Ot===null&&(pt.markersOnly=!0,pt.naturalSize=!1);var xe=document.createElementNS("http://www.w3.org/2000/svg","svg");xe.setAttribute("xmlns","http://www.w3.org/2000/svg"),xe.setAttribute("width",mt.width.baseVal.valueAsString),xe.setAttribute("height",mt.height.baseVal.valueAsString),xe.setAttribute("viewBox","0 0 "+mt.viewBox.baseVal.width.toString()+" "+mt.viewBox.baseVal.height.toString()),xe.innerHTML=mt.innerHTML,pt.naturalSize===!0?(xe.width.baseVal.value=Ot.naturalWidth,xe.height.baseVal.value=Ot.naturalHeight):pt.width!==void 0&&pt.height!==void 0&&(xe.width.baseVal.value=pt.width,xe.height.baseVal.value=pt.height),le.width=xe.width.baseVal.value,le.height=xe.height.baseVal.value;var ae=xe.outerHTML,ve=le.getContext("2d");pt.markersOnly!==!0&&ve.drawImage(Ot,0,0,le.width,le.height);var Ue=window.URL,Te=new Image(le.width,le.height);Te.setAttribute("crossOrigin","anonymous");var ke=new Blob([ae],{type:"image/svg+xml"}),nn=Ue.createObjectURL(ke);Te.onload=function(){ve.drawImage(Te,0,0),Ue.revokeObjectURL(nn);var Wn=le.toDataURL(pt.imageType,pt.imageQuality);At(Wn)},Te.src=nn})},Lt}(),te=function(){},Pt=function(){function Lt(Ot){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Ot+"_"}return Object.defineProperty(Lt.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.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(Lt.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Lt.prototype.addClass=function(Ot){return this.styleSheet===void 0&&this.addStyleSheet(),Ot.name=""+this.classNamePrefix+Ot.localName,this.classes.push(Ot),this.styleSheet.sheet.insertRule("."+Ot.name+" {"+Ot.style+"}",this.styleSheet.sheet.cssRules.length),Ot},Lt.prototype.addRule=function(Ot){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Ot),this.styleSheet.sheet.insertRule(Ot.selector+" {"+Ot.style+"}",this.styleSheet.sheet.cssRules.length)},Lt.prototype.addStyleSheet=function(){var Ot;this.styleSheet=document.createElement("style"),((Ot=this.styleSheetRoot)!==null&&Ot!==void 0?Ot: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 Kt("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new Kt("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},Lt.prototype.removeStyleSheet=function(){var Ot;this.styleSheet&&(((Ot=this.styleSheetRoot)!==null&&Ot!==void 0?Ot:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Lt}(),oe=function(Lt,Ot){this.selector=Lt,this.style=Ot},Kt=function(Lt,Ot){this.localName=Lt,this.style=Ot},$t=function(){function Lt(Ot,mt,ft,pt,At){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Ot,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 Lt.prototype.show=function(Ot){var mt=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ot,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 le=document.createElement("div");le.className=""+mt.toolbarButtonStyleClass.name,le.setAttribute("data-type-name",At.typeName),le.innerHTML=At.icon,le.addEventListener("click",function(){mt.markerToolbarButtonClicked(le,At)}),mt.buttons.push(le),mt.markerButtons.push(le)}),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()},Lt.prototype.addButtonClickListener=function(Ot){this.buttonClickListeners.push(Ot)},Lt.prototype.removeButtonClickListener=function(Ot){this.buttonClickListeners.indexOf(Ot)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Ot),1)},Lt.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Lt.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Ot=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<Ot||mt===Ot&&this.markerButtons.length-1===Ot?this.markerButtonBlock.appendChild(this.markerButtons[mt]):(mt===Ot&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[mt]))}},Lt.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")},Lt.prototype.resetButtonStyles=function(){var Ot=this;this.buttons.forEach(function(mt){mt.className=mt.className.replace(Ot.uiStyleSettings.toolbarButtonStyleColorsClassName?Ot.uiStyleSettings.toolbarButtonStyleColorsClassName:Ot.toolbarButtonStyleColorsClass.name,"").trim(),mt.className=mt.className.replace(Ot.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Ot.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Ot.toolbarActiveButtonStyleColorsClass.name,"").trim(),mt.className+=" "+(Ot.uiStyleSettings.toolbarButtonStyleColorsClassName?Ot.uiStyleSettings.toolbarButtonStyleColorsClassName:Ot.toolbarButtonStyleColorsClass.name)})},Lt.prototype.addActionButton=function(Ot,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}Ot.appendChild(At),this.buttons.push(At)},Lt.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Kt("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 Kt("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Kt("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Kt("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 Kt("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var Ot=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Kt("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Ot)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Ot)+`px;
|
|
|
padding: `+Ot+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Kt("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Kt("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+`
|
|
|
`))},Lt.prototype.markerToolbarButtonClicked=function(Ot,mt){this.setActiveButton(Ot),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ft){return ft("marker",mt)}),this.markerButtonOverflowBlock.style.display="none"},Lt.prototype.actionToolbarButtonClicked=function(Ot,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])},Lt.prototype.setActiveButton=function(Ot){this.resetButtonStyles(),Ot.className=Ot.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Ot.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Lt.prototype.setActiveMarkerButton=function(Ot){var mt=this.markerButtons.find(function(ft){return ft.getAttribute("data-type-name")===Ot});mt&&this.setActiveButton(mt)},Lt.prototype.setCurrentMarker=function(Ot){var mt=this;this.currentMarker=Ot,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")})},Lt}(),Ct=function(){function Lt(Ot,mt,ft,pt){this.panels=[],this.panelButtons=[],this.markerjsContainer=Ot,this.displayMode=mt,this.uiStyleSettings=ft,this.styles=pt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Lt.prototype.addStyles=function(){var Ot;this.toolboxStyleClass=this.styles.addClass(new Kt("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 Kt("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var mt=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Kt("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Kt("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Kt("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 Kt("toolbox-panel-row_colors",`
|
|
|
background-color: `+((Ot=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Ot!==void 0?Ot:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Kt("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 Kt("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Kt("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;
|
|
|
`))},Lt.prototype.show=function(Ot){var mt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ot,this.uiContainer.className=this.toolboxStyleClass.name+" "+((mt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&mt!==void 0?mt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Lt.prototype.setPanelButtons=function(Ot){var mt,ft,pt=this;this.panels=Ot,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 le;At.uiStyleSettings=pt.uiStyleSettings;var xe=document.createElement("div");xe.className=pt.toolboxButtonStyleClass.name+" "+((le=pt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&le!==void 0?le:pt.toolboxButtonStyleColorsClass.name),xe.innerHTML=At.icon,xe.title=At.title,xe.addEventListener("click",function(){pt.panelButtonClick(At)}),pt.panelButtons.push(xe),pt.buttonRow.appendChild(xe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Lt.prototype.panelButtonClick=function(Ot){var mt=this,ft=-1;if(Ot!==this.activePanel){ft=this.panels.indexOf(Ot),this.panelRow.innerHTML="";var pt=Ot.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=Ot}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,le){var xe,ae;At.className=mt.toolboxButtonStyleClass.name+" "+(le===ft?""+((xe=mt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&xe!==void 0?xe:mt.toolboxActiveButtonStyleColorsClass.name):""+((ae=mt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ae!==void 0?ae:mt.toolboxButtonStyleColorsClass.name))})},Lt}(),et=function(Lt,Ot){this.title=Lt,this.icon=Ot},tt=function(Lt){function Ot(mt,ft,pt,At){var le=Lt.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 le.colors=[],le.addTransparent=!1,le.colorBoxes=[],le.colors=ft,le.currentColor=pt,le.setCurrentColor=le.setCurrentColor.bind(le),le.getColorBox=le.getColorBox.bind(le),le}return ce(Ot,Lt),Ot.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},Ot.prototype.getColorBox=function(mt){var ft=this,pt=this.uiStyleSettings.toolbarHeight/4,At=this.uiStyleSettings.toolbarHeight-pt,le=document.createElement("div");le.style.display="inline-block",le.style.boxSizing="content-box",le.style.width=At-2+"px",le.style.height=At-2+"px",le.style.padding="1px",le.style.marginRight="2px",le.style.marginBottom="2px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderRadius=(At+2)/2+"px",le.style.borderColor=mt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ft.setCurrentColor(mt,le)});var xe=document.createElement("div");return xe.style.display="inline-block",xe.style.width=At-2+"px",xe.style.height=At-2+"px",xe.style.backgroundColor=mt,xe.style.borderRadius=At/2+"px",mt==="transparent"&&(xe.style.fill=this.uiStyleSettings.toolboxAccentColor,xe.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>`),le.appendChild(xe),le},Ot.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)},Ot}(et),lt=function(){function Lt(Ot,mt,ft){this._state="new",this._isSelected=!1,this._container=Ot,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(Lt.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Lt.prototype.ownsTarget=function(Ot){return!1},Object.defineProperty(Lt.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Lt.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Lt.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Lt.prototype.pointerDown=function(Ot,mt){},Lt.prototype.dblClick=function(Ot,mt){},Lt.prototype.manipulate=function(Ot){},Lt.prototype.pointerUp=function(Ot){this.stateChanged()},Lt.prototype.dispose=function(){},Lt.prototype.addMarkerVisualToContainer=function(Ot){this.container.childNodes.length>0?this.container.insertBefore(Ot,this.container.childNodes[0]):this.container.appendChild(Ot)},Lt.prototype.getState=function(){return{typeName:Lt.typeName,state:this.state,notes:this.notes}},Lt.prototype.restoreState=function(Ot){this._state=Ot.state,this.notes=Ot.notes},Lt.prototype.scale=function(Ot,mt){},Lt.prototype.colorChanged=function(Ot){this.onColorChanged&&this.onColorChanged(Ot),this.stateChanged()},Lt.prototype.fillColorChanged=function(Ot){this.onFillColorChanged&&this.onFillColorChanged(Ot),this.stateChanged()},Lt.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Ot=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Ot.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Ot)&&this.onStateChanged(this)}},Lt.typeName="MarkerBase",Lt}(),rt=function(){function Lt(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Lt.prototype.findGripByVisual=function(Ot){return this.topLeft.ownsTarget(Ot)?this.topLeft:this.topCenter.ownsTarget(Ot)?this.topCenter:this.topRight.ownsTarget(Ot)?this.topRight:this.centerLeft.ownsTarget(Ot)?this.centerLeft:this.centerRight.ownsTarget(Ot)?this.centerRight:this.bottomLeft.ownsTarget(Ot)?this.bottomLeft:this.bottomCenter.ownsTarget(Ot)?this.bottomCenter:this.bottomRight.ownsTarget(Ot)?this.bottomRight:void 0},Lt}(),ht=function(){function Lt(){this.GRIP_SIZE=10,this.visual=Vt.createGroup(),this.visual.appendChild(Vt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Vt.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Lt.prototype.ownsTarget=function(Ot){return Ot===this.visual||Ot===this.visual.childNodes[0]||Ot===this.visual.childNodes[1]},Lt}(),dt=function(){function Lt(){}return Lt.toITransformMatrix=function(Ot){return{a:Ot.a,b:Ot.b,c:Ot.c,d:Ot.d,e:Ot.e,f:Ot.f}},Lt.toSVGMatrix=function(Ot,mt){return Ot.a=mt.a,Ot.b=mt.b,Ot.c=mt.c,Ot.d=mt.d,Ot.e=mt.e,Ot.f=mt.f,Ot},Lt}(),xt=function(Lt){function Ot(mt,ft,pt){var At=Lt.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(Vt.createTransform()),At.setupControlBox(),At}return ce(Ot,Lt),Object.defineProperty(Ot.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"visual",{get:function(){return this._visual},set:function(mt){this._visual=mt;var ft=Vt.createTransform();this._visual.transform.baseVal.appendItem(ft)},enumerable:!1,configurable:!0}),Ot.prototype.ownsTarget=function(mt){return!!Lt.prototype.ownsTarget.call(this,mt)||!!(this.controlGrips.findGripByVisual(mt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(mt))},Ot.prototype.pointerDown=function(mt,ft){Lt.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 le=this.container.transform.baseVal.getItem(0);le.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(le,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Ot.prototype.pointerUp=function(mt){var ft=this.state;Lt.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)},Ot.prototype.moveVisual=function(mt){this.visual.style.transform="translate("+mt.x+"px, "+mt.y+"px)"},Ot.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)},Ot.prototype.resize=function(mt){var ft=this.manipulationStartLeft,pt=this.manipulationStartWidth,At=this.manipulationStartTop,le=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,le=this.manipulationStartHeight+this.manipulationStartTop-At;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:le=this.manipulationStartHeight+mt.y-this.manipulationStartY}pt>=0?(this.left=ft,this.width=pt):(this.left=ft+pt,this.width=-pt),le>=0?(this.top=At,this.height=le):(this.top=At+le,this.height=-le),this.setSize()},Ot.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Ot.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()}},Ot.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)},Ot.prototype.rotatePoint=function(mt){if(this.rotationAngle===0)return mt;var ft=this.container.getCTM(),pt=Vt.createPoint(mt.x,mt.y);return{x:(pt=pt.matrixTransform(ft)).x,y:pt.y}},Ot.prototype.unrotatePoint=function(mt){if(this.rotationAngle===0)return mt;var ft=this.container.getCTM();ft=ft.inverse();var pt=Vt.createPoint(mt.x,mt.y);return{x:(pt=pt.matrixTransform(ft)).x,y:pt.y}},Ot.prototype.select=function(){Lt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ot.prototype.deselect=function(){Lt.prototype.deselect.call(this),this.controlBox.style.display="none"},Ot.prototype.setupControlBox=function(){this.controlBox=Vt.createGroup();var mt=Vt.createTransform();mt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(mt),this.container.appendChild(this.controlBox),this.controlRect=Vt.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=Vt.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"},Ot.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()},Ot.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()},Ot.prototype.createGrip=function(){var mt=new ht;return mt.visual.transform.baseVal.appendItem(Vt.createTransform()),this.controlBox.appendChild(mt.visual),mt},Ot.prototype.positionGrips=function(){var mt=this.controlGrips.topLeft.GRIP_SIZE,ft=-mt/2,pt=ft,At=(this.width+this.CB_DISTANCE)/2-mt/2,le=(this.height+this.CB_DISTANCE)/2-mt/2,xe=this.height+this.CB_DISTANCE-mt/2,ae=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,ae,pt),this.positionGrip(this.controlGrips.centerLeft.visual,ft,le),this.positionGrip(this.controlGrips.centerRight.visual,ae,le),this.positionGrip(this.controlGrips.bottomLeft.visual,ft,xe),this.positionGrip(this.controlGrips.bottomCenter.visual,At,xe),this.positionGrip(this.controlGrips.bottomRight.visual,ae,xe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,At,pt-3*this.CB_DISTANCE)},Ot.prototype.positionGrip=function(mt,ft,pt){var At=mt.transform.baseVal.getItem(0);At.setTranslate(ft,pt),mt.transform.baseVal.replaceItem(At,0)},Ot.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Ot.prototype.showControlBox=function(){this.controlBox.style.display=""},Ot.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:dt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:dt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Lt.prototype.getState.call(this))},Ot.prototype.restoreState=function(mt){Lt.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(dt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ft.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(dt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ft.containerTransformMatrix))},Ot.prototype.scale=function(mt,ft){Lt.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()},Ot}(lt),It=function(Lt){function Ot(mt,ft,pt){var At=Lt.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(Ot,Lt),Ot.prototype.ownsTarget=function(mt){return!(!Lt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual)},Ot.prototype.createVisual=function(){this.visual=Vt.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)},Ot.prototype.pointerDown=function(mt,ft){Lt.prototype.pointerDown.call(this,mt,ft),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},Ot.prototype.manipulate=function(mt){Lt.prototype.manipulate.call(this,mt)},Ot.prototype.resize=function(mt){Lt.prototype.resize.call(this,mt),this.setSize()},Ot.prototype.setSize=function(){Lt.prototype.setSize.call(this),Vt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Ot.prototype.pointerUp=function(mt){Lt.prototype.pointerUp.call(this,mt),this.setSize()},Ot.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.visual&&Vt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(mt),this.stateChanged()},Ot.prototype.setFillColor=function(mt){this.fillColor=mt,this.visual&&Vt.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Ot.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.visual&&Vt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ot.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.visual&&Vt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ot.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Lt.prototype.getState.call(this))},Ot.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(),Lt.prototype.restoreState.call(this,mt),this.setSize()},Ot.prototype.scale=function(mt,ft){Lt.prototype.scale.call(this,mt,ft),this.setSize()},Ot.title="Rectangle marker",Ot}(xt),Ut=function(Lt){function Ot(mt,ft,pt,At){var le=Lt.call(this,mt,At||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return le.widths=[],le.widthBoxes=[],le.widths=ft,le.currentWidth=pt,le.setCurrentWidth=le.setCurrentWidth.bind(le),le}return ce(Ot,Lt),Ot.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 le=document.createElement("div");le.innerText=pt.toString(),le.style.marginRight="5px",At.appendChild(le);var xe=document.createElement("div");xe.style.minHeight="20px",xe.style.flexGrow="2",xe.style.display="flex",xe.style.alignItems="center";var ae=document.createElement("hr");ae.style.minWidth="20px",ae.style.border="0px",ae.style.borderTop=pt+"px solid "+mt.uiStyleSettings.toolboxColor,ae.style.flexGrow="2",xe.appendChild(ae),At.appendChild(xe),mt.widthBoxes.push(At)}),ft},Ot.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)},Ot}(et),Gt=function(Lt){function Ot(mt,ft,pt,At){var le=Lt.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 le.styles=[],le.styleBoxes=[],le.styles=ft,le.currentStyle=pt,le.setCurrentStyle=le.setCurrentStyle.bind(le),le}return ce(Ot,Lt),Ot.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 le=document.createElement("div");le.style.minHeight="20px",le.style.flexGrow="2",le.style.overflow="hidden";var xe=`<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>`;le.innerHTML=xe,At.appendChild(le),mt.styleBoxes.push(At)}),ft},Ot.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)},Ot}(et),se=function(Lt){function Ot(mt,ft,pt){var At=Lt.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 Ut("Line width",pt.defaultStrokeWidths,pt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Gt("Line style",pt.defaultStrokeDasharrays,pt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At}return ce(Ot,Lt),Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ot.prototype.getState=function(){var mt=Lt.prototype.getState.call(this);return mt.typeName=Ot.typeName,mt},Ot.typeName="FrameMarker",Ot.title="Frame marker",Ot.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Ot}(It),ue=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"},Ae=function(Lt){function Ot(mt,ft,pt){var At=Lt.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(Ot,Lt),Ot.prototype.ownsTarget=function(mt){return!!Lt.prototype.ownsTarget.call(this,mt)||!(!this.grip1.ownsTarget(mt)&&!this.grip2.ownsTarget(mt))},Ot.prototype.pointerDown=function(mt,ft){Lt.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")},Ot.prototype.pointerUp=function(mt){var ft=this.state;Lt.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)},Ot.prototype.adjustVisual=function(){},Ot.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)},Ot.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()},Ot.prototype.select=function(){Lt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ot.prototype.deselect=function(){Lt.prototype.deselect.call(this),this.controlBox.style.display="none"},Ot.prototype.setupControlBox=function(){this.controlBox=Vt.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Ot.prototype.adjustControlBox=function(){this.positionGrips()},Ot.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Ot.prototype.createGrip=function(){var mt=new ht;return mt.visual.transform.baseVal.appendItem(Vt.createTransform()),this.controlBox.appendChild(mt.visual),mt},Ot.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)},Ot.prototype.positionGrip=function(mt,ft,pt){var At=mt.transform.baseVal.getItem(0);At.setTranslate(ft,pt),mt.transform.baseVal.replaceItem(At,0)},Ot.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Lt.prototype.getState.call(this))},Ot.prototype.restoreState=function(mt){Lt.prototype.restoreState.call(this,mt);var ft=mt;this.x1=ft.x1,this.y1=ft.y1,this.x2=ft.x2,this.y2=ft.y2},Ot.prototype.scale=function(mt,ft){Lt.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()},Ot}(lt),Pe=function(Lt){function Ot(mt,ft,pt){var At=Lt.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 Ut("Line width",pt.defaultStrokeWidths,pt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Gt("Line style",pt.defaultStrokeDasharrays,pt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At}return ce(Ot,Lt),Ot.prototype.ownsTarget=function(mt){return!(!Lt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.selectorLine&&mt!==this.visibleLine)},Ot.prototype.createVisual=function(){this.visual=Vt.createGroup(),this.selectorLine=Vt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Vt.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)},Ot.prototype.pointerDown=function(mt,ft){Lt.prototype.pointerDown.call(this,mt,ft),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Ot.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()),Vt.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Vt.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Vt.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ot.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.adjustVisual(),this.colorChanged(mt)},Ot.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.adjustVisual()},Ot.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ot.prototype.getState=function(){var mt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Lt.prototype.getState.call(this));return mt.typeName=Ot.typeName,mt},Ot.prototype.restoreState=function(mt){Lt.prototype.restoreState.call(this,mt);var ft=mt;this.strokeColor=ft.strokeColor,this.strokeWidth=ft.strokeWidth,this.strokeDasharray=ft.strokeDasharray,this.createVisual(),this.adjustVisual()},Ot.typeName="LineMarker",Ot.title="Line marker",Ot.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Ot}(Ae),qt=function(Lt){function Ot(mt,ft,pt,At){var le=Lt.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 le.fonts=[],le.fontBoxes=[],le.fonts=ft,le.currentFont=pt,le.setCurrentFont=le.setCurrentFont.bind(le),le}return ce(Ot,Lt),Ot.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 le=document.createElement("div");le.style.display="flex",le.style.minHeight="20px",le.style.flexGrow="2",le.style.fontFamily=pt,le.style.overflow="hidden";var xe=document.createElement("div");xe.style.whiteSpace="nowrap",xe.style.overflow="hidden",xe.style.textOverflow="ellipsis",xe.innerHTML="The quick brown fox jumps over the lazy dog",le.appendChild(xe),At.appendChild(le),mt.fontBoxes.push(At)}),ft},Ot.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)},Ot}(et),ze=function(Lt){function Ot(mt,ft,pt){var At=Lt.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(Ot,Lt),Ot.prototype.ownsTarget=function(mt){if(Lt.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},Ot.prototype.createVisual=function(){this.visual=Vt.createGroup(),this.bgRectangle=Vt.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Vt.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Vt.createTransform()),this.textElement.transform.baseVal.appendItem(Vt.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Ot.prototype.pointerDown=function(mt,ft){Lt.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")},Ot.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(Vt.createTSpan(ft.trim()===""?" ":ft.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Ot.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},Ot.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}},Ot.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))},Ot.prototype.manipulate=function(mt){Lt.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)},Ot.prototype.resize=function(mt){Lt.prototype.resize.call(this,mt),this.isMoved=!0,this.setSize(),this.sizeText()},Ot.prototype.setSize=function(){Lt.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Vt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Vt.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Ot.prototype.pointerUp=function(mt){var ft=this.state;ft==="creating"&&(this._suppressMarkerCreateEvent=!0),Lt.prototype.pointerUp.call(this,mt),this.setSize(),(ft==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Ot.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")},Ot.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"}},Ot.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()},Ot.prototype.select=function(){Lt.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Ot.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Lt.prototype.deselect.call(this)},Ot.prototype.dblClick=function(mt,ft){Lt.prototype.dblClick.call(this,mt,ft),this.showTextEditor()},Ot.prototype.setColor=function(mt){this.textElement&&Vt.setAttributes(this.textElement,[["fill",mt]]),this.color=mt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(mt)},Ot.prototype.setFont=function(mt){this.textElement&&Vt.setAttributes(this.textElement,[["font-family",mt]]),this.fontFamily=mt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Ot.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Ot.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ot.prototype.getState=function(){var mt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Lt.prototype.getState.call(this));return mt.typeName=Ot.typeName,mt},Ot.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(),Lt.prototype.restoreState.call(this,mt),this.setSize()},Ot.prototype.scale=function(mt,ft){Lt.prototype.scale.call(this,mt,ft),this.setSize(),this.sizeText(),this.positionTextEditor()},Ot.typeName="TextMarker",Ot.title="Text marker",Ot.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>',Ot}(xt),Wt=function(Lt){function Ot(mt,ft,pt){var At=Lt.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 Ut("Line width",pt.defaultStrokeWidths,pt.defaultStrokeWidth),At.lineWidthPanel.onWidthChanged=At.setLineWidth,At}return ce(Ot,Lt),Ot.prototype.ownsTarget=function(mt){return!(!Lt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.drawingImage)},Ot.prototype.createVisual=function(){this.visual=Vt.createGroup(),this.drawingImage=Vt.createImage(),this.visual.appendChild(this.drawingImage);var mt=Vt.createTransform();this.visual.transform.baseVal.appendItem(mt),this.addMarkerVisualToContainer(this.visual)},Ot.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):Lt.prototype.pointerDown.call(this,mt,ft)},Ot.prototype.manipulate=function(mt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(mt.x,mt.y),this.canvasContext.stroke()):Lt.prototype.manipulate.call(this,mt)},Ot.prototype.resize=function(mt){Lt.prototype.resize.call(this,mt),Vt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Vt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Ot.prototype.pointerUp=function(mt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Lt.prototype.pointerUp.call(this,mt)},Ot.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)},Ot.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Lt.prototype.select.call(this)},Ot.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Lt.prototype.deselect.call(this)},Ot.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],le=ft[2],xe=ft[3],ae=!1,ve=0;ve<this.canvasElement.height;ve++)for(var Ue=0;Ue<this.canvasElement.width;Ue++)mt.data[ve*this.canvasElement.width*4+4*Ue+3]>0&&(ae=!0,ve<At&&(At=ve),Ue<pt&&(pt=Ue),ve>xe&&(xe=ve),Ue>le&&(le=Ue));if(ae){this.left=pt/this.pixelRatio,this.top=At/this.pixelRatio,this.width=(le-pt)/this.pixelRatio,this.height=(xe-At)/this.pixelRatio;var Te=document.createElement("canvas");Te.width=le-pt,Te.height=xe-At,Te.getContext("2d").putImageData(this.canvasContext.getImageData(pt,At,le-pt,xe-At),0,0),this.drawingImgUrl=Te.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Ot.prototype.setDrawingImage=function(){Vt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Vt.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Ot.prototype.setColor=function(mt){this.color=mt,this.colorChanged(mt)},Ot.prototype.setLineWidth=function(mt){this.lineWidth=mt},Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Ot.prototype.getState=function(){var mt=Object.assign({drawingImgUrl:this.drawingImgUrl},Lt.prototype.getState.call(this));return mt.typeName=Ot.typeName,mt},Ot.prototype.restoreState=function(mt){this.createVisual(),Lt.prototype.restoreState.call(this,mt),this.drawingImgUrl=mt.drawingImgUrl,this.setDrawingImage()},Ot.prototype.scale=function(mt,ft){Lt.prototype.scale.call(this,mt,ft),this.setDrawingImage()},Ot.typeName="FreehandMarker",Ot.title="Freehand marker",Ot.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>',Ot}(xt),Ge=function(Lt){function Ot(mt,ft,pt){var At=Lt.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(Ot,Lt),Ot.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(xe){var ae="both";switch(xe){case 0:ae="both";break;case 1:ae="start";break;case 2:ae="end";break;case 3:ae="none"}var ve=document.createElement("div");if(ve.style.display="flex",ve.style.flexGrow="2",ve.style.alignItems="center",ve.style.justifyContent="space-between",ve.style.padding="5px",ve.style.borderWidth="2px",ve.style.borderStyle="solid",ve.style.borderColor=ae===At.currentType?At.uiStyleSettings.toolboxAccentColor:"transparent",ve.addEventListener("click",function(){mt.setCurrentType(ae,ve)}),ft.appendChild(ve),ae==="both"||ae==="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",ve.appendChild(Ue)}var Te=document.createElement("div");Te.style.display="flex",Te.style.alignItems="center",Te.style.minHeight="20px",Te.style.flexGrow="2";var ke=document.createElement("hr");if(ke.style.minWidth="20px",ke.style.border="0px",ke.style.borderTop="3px solid "+(At.uiStyleSettings!==void 0?At.uiStyleSettings.toolboxColor:"#eeeeee"),ke.style.flexGrow="2",Te.appendChild(ke),ve.appendChild(Te),ae==="both"||ae==="end"){var nn=document.createElement("div");nn.style.display="flex",nn.style.alignItems="center",nn.style.minHeight="20px",nn.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>`,nn.style.marginRight="5px",ve.appendChild(nn)}At.typeBoxes.push(ve)},At=this,le=0;le<4;le++)pt(le);return ft},Ot.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)},Ot}(et),_e=function(Lt){function Ot(mt,ft,pt){var At=Lt.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(Ot,Lt),Ot.prototype.ownsTarget=function(mt){return!(!Lt.prototype.ownsTarget.call(this,mt)&&mt!==this.arrow1&&mt!==this.arrow2)},Ot.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)},Ot.prototype.createTips=function(){this.arrow1=Vt.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Vt.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Vt.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Vt.createTransform()),this.visual.appendChild(this.arrow2)},Ot.prototype.pointerDown=function(mt,ft){Lt.prototype.pointerDown.call(this,mt,ft),this.state==="creating"&&this.createTips()},Ot.prototype.adjustVisual=function(){if(Lt.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",Vt.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Vt.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)}},Ot.prototype.setArrowType=function(mt){this.arrowType=mt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Ot.prototype.getState=function(){var mt=Object.assign({arrowType:this.arrowType},Lt.prototype.getState.call(this));return mt.typeName=Ot.typeName,mt},Ot.prototype.restoreState=function(mt){Lt.prototype.restoreState.call(this,mt);var ft=mt;this.arrowType=ft.arrowType,this.createTips(),this.adjustVisual()},Ot.typeName="ArrowMarker",Ot.title="Arrow marker",Ot.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Ot}(Pe),Me=function(Lt){function Ot(mt,ft,pt){var At=Lt.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(Ot,Lt),Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Ot.prototype.getState=function(){var mt=Lt.prototype.getState.call(this);return mt.typeName=Ot.typeName,mt},Ot.typeName="CoverMarker",Ot.title="Cover marker",Ot.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Ot}(It),We=function(Lt){function Ot(mt,ft,pt,At){var le=Lt.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 le.opacities=[],le.opacityBoxes=[],le.opacities=ft,le.currentOpacity=pt,le.setCurrentOpacity=le.setCurrentOpacity.bind(le),le}return ce(Ot,Lt),Ot.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 le=document.createElement("div");le.innerText=100*pt+"%",At.appendChild(le),mt.opacityBoxes.push(At)}),ft},Ot.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)},Ot}(et),Re=function(Lt){function Ot(mt,ft,pt){var At=Lt.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(Ot,Lt),Ot.prototype.setOpacity=function(mt){this.opacity=mt,this.visual&&Vt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ot.prototype.getState=function(){var mt=Lt.prototype.getState.call(this);return mt.typeName=Ot.typeName,mt},Ot.typeName="HighlightMarker",Ot.title="Highlight marker",Ot.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>',Ot}(Me),ye='<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>',ne='<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>',Ce=function(Lt){function Ot(mt,ft,pt){var At=Lt.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,ye),At.colorPanel.onColorChanged=At.setColor,At.bgColorPanel=new tt("Fill color",pt.defaultColorSet,At.bgColor,ne),At.bgColorPanel.onColorChanged=At.setBgColor,At.fontFamilyPanel=new qt("Font",pt.defaultFontFamilies,pt.defaultFontFamily),At.fontFamilyPanel.onFontChanged=At.setFont,At.tipGrip=new ht,At.tipGrip.visual.transform.baseVal.appendItem(Vt.createTransform()),At.controlBox.appendChild(At.tipGrip.visual),At}return ce(Ot,Lt),Ot.prototype.ownsTarget=function(mt){return Lt.prototype.ownsTarget.call(this,mt)||this.tipGrip.ownsTarget(mt)||this.tip===mt},Ot.prototype.createTip=function(){Vt.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Vt.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Ot.prototype.pointerDown=function(mt,ft){this.state==="new"&&Lt.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):Lt.prototype.pointerDown.call(this,mt,ft)},Ot.prototype.pointerUp=function(mt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Lt.prototype.pointerUp.call(this,mt);else{var ft=this.state==="creating";Lt.prototype.pointerUp.call(this,mt),this.setTipPoints(ft),this.positionTip()}},Ot.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 Lt.prototype.manipulate.call(this,mt)},Ot.prototype.setBgColor=function(mt){this.bgRectangle&&this.tip&&(Vt.setAttributes(this.bgRectangle,[["fill",mt]]),Vt.setAttributes(this.tip,[["fill",mt]])),this.bgColor=mt,this.fillColorChanged(mt)},Ot.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},Ot.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})},Ot.prototype.resize=function(mt){Lt.prototype.resize.call(this,mt),this.positionTip()},Ot.prototype.positionTip=function(){Vt.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(Ot.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ot.prototype.select=function(){this.positionTip(),Lt.prototype.select.call(this)},Ot.prototype.getState=function(){var mt=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Lt.prototype.getState.call(this));return mt.typeName=Ot.typeName,mt},Ot.prototype.restoreState=function(mt){var ft=mt;this.bgColor=ft.bgColor,this.tipPosition=ft.tipPosition,Lt.prototype.restoreState.call(this,mt),this.createTip(),this.setTipPoints()},Ot.prototype.scale=function(mt,ft){Lt.prototype.scale.call(this,mt,ft),this.tipPosition={x:this.tipPosition.x*mt,y:this.tipPosition.y*ft},this.positionTip()},Ot.typeName="CalloutMarker",Ot.title="Callout marker",Ot.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>',Ot}(ze),bn=function(Lt){function Ot(mt,ft,pt){var At=Lt.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,ne),At.fillPanel.onColorChanged=At.setFillColor,At.strokeWidthPanel=new Ut("Line width",pt.defaultStrokeWidths,pt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Gt("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(Ot,Lt),Ot.prototype.ownsTarget=function(mt){return!(!Lt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual)},Ot.prototype.createVisual=function(){this.visual=Vt.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)},Ot.prototype.pointerDown=function(mt,ft){Lt.prototype.pointerDown.call(this,mt,ft),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},Ot.prototype.manipulate=function(mt){Lt.prototype.manipulate.call(this,mt)},Ot.prototype.resize=function(mt){Lt.prototype.resize.call(this,mt),this.setSize()},Ot.prototype.setSize=function(){Lt.prototype.setSize.call(this),Vt.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Ot.prototype.pointerUp=function(mt){Lt.prototype.pointerUp.call(this,mt),this.setSize()},Ot.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.visual&&Vt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(mt),this.stateChanged()},Ot.prototype.setFillColor=function(mt){this.fillColor=mt,this.visual&&Vt.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(mt),this.stateChanged()},Ot.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.visual&&Vt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ot.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.visual&&Vt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ot.prototype.setOpacity=function(mt){this.opacity=mt,this.visual&&Vt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ot.prototype.getState=function(){var mt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Lt.prototype.getState.call(this));return mt.typeName=Ot.typeName,mt},Ot.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(),Lt.prototype.restoreState.call(this,mt),this.setSize()},Ot.prototype.scale=function(mt,ft){Lt.prototype.scale.call(this,mt,ft),this.setSize()},Ot.typeName="EllipseMarker",Ot.title="Ellipse marker",Ot.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>',Ot}(xt),Ln=function(Lt){function Ot(mt,ft,pt){return Lt.call(this,mt,ft,pt)||this}return ce(Ot,Lt),Object.defineProperty(Ot.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Ot.prototype.ownsTarget=function(mt){return!(!Lt.prototype.ownsTarget.call(this,mt)&&mt!==this.tip1&&mt!==this.tip2)},Ot.prototype.createTips=function(){this.tip1=Vt.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(Vt.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Vt.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(Vt.createTransform()),this.visual.appendChild(this.tip2)},Ot.prototype.pointerDown=function(mt,ft){Lt.prototype.pointerDown.call(this,mt,ft),this.state==="creating"&&this.createTips()},Ot.prototype.adjustVisual=function(){if(Lt.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Vt.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()]]),Vt.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(Ot.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ot.prototype.getState=function(){var mt=Lt.prototype.getState.call(this);return mt.typeName=Ot.typeName,mt},Ot.prototype.restoreState=function(mt){Lt.prototype.restoreState.call(this,mt),this.createTips(),this.adjustVisual()},Ot.typeName="MeasurementMarker",Ot.title="Measurement marker",Ot.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>',Ot}(Pe),Ze=function(Lt){function Ot(mt,ft,pt){var At=Lt.call(this,mt,ft,pt)||this;return At.strokePanel.colors=pt.defaultColorSet,At.fillColor="transparent",At}return ce(Ot,Lt),Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ot.prototype.getState=function(){var mt=Lt.prototype.getState.call(this);return mt.typeName=Ot.typeName,mt},Ot.typeName="EllipseFrameMarker",Ot.title="Ellipse frame marker",Ot.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>',Ot}(bn),Mn=function(){function Lt(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Lt.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Lt.prototype.addUndoStep=function(Ot){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Ot)||(this.undoStack.push(Ot),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Ot)&&this.redoStack.splice(0,this.redoStack.length))},Lt.prototype.replaceLastUndoStep=function(Ot){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Ot)},Lt.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Lt.prototype.undo=function(){if(this.undoStack.length>1){var Ot=this.undoStack.pop();return Ot!==void 0&&this.redoStack.push(Ot),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Lt.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Lt}(),Vn=function(Lt){function Ot(mt,ft,pt){var At=Lt.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 Ut("Line width",pt.defaultStrokeWidths,pt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Gt("Line style",pt.defaultStrokeDasharrays,pt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At}return ce(Ot,Lt),Ot.prototype.ownsTarget=function(mt){return!(!Lt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.selectorCurve&&mt!==this.visibleCurve&&!this.curveGrip.ownsTarget(mt))},Ot.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Ot.prototype.createVisual=function(){this.visual=Vt.createGroup(),this.selectorCurve=Vt.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Vt.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)},Ot.prototype.pointerDown=function(mt,ft){Lt.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")},Ot.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Vt.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Vt.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Vt.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ot.prototype.setupControlBox=function(){Lt.prototype.setupControlBox.call(this),this.curveControlLine1=Vt.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Vt.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)},Ot.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Lt.prototype.addControlGrips.call(this)},Ot.prototype.positionGrips=function(){Lt.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()))},Ot.prototype.manipulate=function(mt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+mt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+mt.y-this.manipulationStartY),Lt.prototype.manipulate.call(this,mt)},Ot.prototype.resize=function(mt){this.activeGrip===this.curveGrip&&(this.curveX=mt.x,this.curveY=mt.y),Lt.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)},Ot.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.adjustVisual(),this.colorChanged(mt)},Ot.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.adjustVisual()},Ot.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.adjustVisual()},Ot.prototype.scale=function(mt,ft){this.curveX=this.curveX*mt,this.curveY=this.curveY*ft,Lt.prototype.scale.call(this,mt,ft)},Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ot.prototype.getState=function(){var mt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Lt.prototype.getState.call(this));return mt.typeName=Ot.typeName,mt},Ot.prototype.restoreState=function(mt){Lt.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()},Ot.typeName="CurveMarker",Ot.title="Curve marker",Ot.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>',Ot}(Ae),gi=function(Lt){function Ot(mt,ft,pt){var At=Lt.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,ne),At.fillPanel.onColorChanged=At.setFillColor,At.strokeWidthPanel=new Ut("Line width",pt.defaultStrokeWidths,pt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Gt("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,ye),At.textColorPanel.onColorChanged=At.setTextColor,At}return ce(Ot,Lt),Ot.prototype.ownsTarget=function(mt){return!(!Lt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.frame&&mt!==this.captionBg&&mt!==this.captionElement)},Ot.prototype.createVisual=function(){this.visual=Vt.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Vt.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Vt.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=Vt.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()},Ot.prototype.setCaptionText=function(mt){this.captionText=mt,this.captionElement.textContent=this.captionText,this.sizeCaption()},Ot.prototype.pointerDown=function(mt,ft){Lt.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")},Ot.prototype.manipulate=function(mt){Lt.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)},Ot.prototype.resize=function(mt){Lt.prototype.resize.call(this,mt),this.setSize()},Ot.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),Vt.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')"]]),Vt.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')"]])},Ot.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()},Ot.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"))},Ot.prototype.finishTextEditing=function(mt){this.setCaptionText(mt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Ot.prototype.setFont=function(mt){this.captionElement&&Vt.setAttributes(this.captionElement,[["font-family",mt]]),this.fontFamily=mt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Ot.prototype.setTextColor=function(mt){this.captionElement&&Vt.setAttributes(this.captionElement,[["fill",mt]]),this.textColor=mt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Ot.prototype.setSize=function(){Lt.prototype.setSize.call(this),Vt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Ot.prototype.pointerUp=function(mt){Lt.prototype.pointerUp.call(this,mt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Ot.prototype.dblClick=function(mt,ft){Lt.prototype.dblClick.call(this,mt,ft),this.showTextEditor()},Ot.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.frame&&Vt.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(mt),this.stateChanged()},Ot.prototype.setFillColor=function(mt){this.fillColor=mt,this.captionBg&&Vt.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(mt),this.stateChanged()},Ot.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.frame&&Vt.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ot.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.frame&&Vt.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Ot.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},Lt.prototype.getState.call(this));return mt.typeName=this.typeName,mt},Ot.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(),Lt.prototype.restoreState.call(this,mt),this.setSize()},Ot.prototype.scale=function(mt,ft){Lt.prototype.scale.call(this,mt,ft),this.setSize()},Ot.typeName="CaptionFrameMarker",Ot.title="Caption frame marker",Ot.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>',Ot}(xt),Kn=function(){function Lt(Ot,mt){mt===void 0&&(mt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Ot,this.cancelable=mt}return Object.defineProperty(Lt.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Lt.prototype.preventDefault=function(){this._defaultPrevented=!0},Lt}(),Bi=function(Lt){function Ot(mt,ft,pt){var At=Lt.call(this,mt,!1)||this;return At.dataUrl=ft,At.state=pt,At}return ce(Ot,Lt),Ot}(Kn),en=function(Lt){function Ot(mt,ft,pt){pt===void 0&&(pt=!1);var At=Lt.call(this,mt,pt)||this;return At.marker=ft,At}return ce(Ot,Lt),Ot}(Kn),Li=function(){function Lt(){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 Lt.prototype.addEventListener=function(Ot,mt){this[Ot].push(mt)},Lt.prototype.removeEventListener=function(Ot,mt){var ft=this[Ot].indexOf(mt);ft>-1&&this[Ot].splice(ft,1)},Lt}(),Oi=function(){function Lt(Ot){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new ue,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 Li,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Lt.instanceCounter++,this.styles=new Pt(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Ot,this.targetRoot=document.body,this.width=Ot.clientWidth,this.height=Ot.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(Lt.prototype,"ALL_MARKER_TYPES",{get:function(){return[se,Wt,_e,ze,Ze,bn,Re,Ce,Ln,Me,Pe,Vn,gi]},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[se,Wt,_e,ze,bn,Re,Ce]},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"BASIC_MARKER_TYPES",{get:function(){return[se,Wt,_e,ze,Re]},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Ot){var mt=this;this._availableMarkerTypes.splice(0),Ot.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(Lt.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Ot){this._zoomLevel=Ot,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(Lt.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Lt.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Nt.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Lt.prototype.show=function(){var Ot=this;this.styles.styleSheetRoot===void 0&&te.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=te.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(mt){return mt(new Kn(Ot))})},Lt.prototype.render=function(){return re(this,void 0,void 0,function(){var Ot;return Ie(this,function(mt){switch(mt.label){case 0:return this.setCurrentMarker(),(Ot=new jt).naturalSize=this.renderAtNaturalSize,Ot.imageType=this.renderImageType,Ot.imageQuality=this.renderImageQuality,Ot.markersOnly=this.renderMarkersOnly,Ot.width=this.renderWidth,Ot.height=this.renderHeight,[4,Ot.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return mt.sent(),[4,Ot.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,mt.sent()]}})})},Lt.prototype.close=function(Ot){var mt=this;if(Ot===void 0&&(Ot=!1),this.isOpen){var ft=!1;Ot||this.eventListeners.beforeclose.forEach(function(pt){var At=new Kn(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 Kn(mt))}),this.detachEvents(),this._isOpen=!1)}},Lt.prototype.addMarkersToToolbar=function(){for(var Ot,mt=[],ft=0;ft<arguments.length;ft++)mt[ft]=arguments[ft];(Ot=this._availableMarkerTypes).push.apply(Ot,mt)},Lt.prototype.addRenderEventListener=function(Ot){this.addEventListener("render",function(mt){Ot(mt.dataUrl,mt.state)})},Lt.prototype.removeRenderEventListener=function(Ot){},Lt.prototype.addCloseEventListener=function(Ot){this.addEventListener("close",function(){Ot()})},Lt.prototype.removeCloseEventListener=function(Ot){},Lt.prototype.setupResizeObserver=function(){var Ot=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Ot.resize(Ot.target.clientWidth,Ot.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Ot.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Lt.prototype.onPopupTargetResize=function(){var Ot=1*this.target.clientWidth/this.target.clientHeight,mt=this.editorCanvas.clientWidth/Ot>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Ot:this.editorCanvas.clientWidth,ft=mt<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Ot;this.resize(mt,ft)},Lt.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Lt.prototype.resize=function(Ot,mt){this._isResizing=!0;var ft=Ot/this.imageWidth,pt=mt/this.imageHeight;this.imageWidth=Math.round(Ot),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},Lt.prototype.scaleMarkers=function(Ot,mt){var ft,pt=this;this._currentMarker&&this._currentMarker instanceof ze?this._currentMarker.scale(Ot,mt):(ft=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(At){At!==pt._currentMarker&&At.scale(Ot,mt)}),ft!==void 0&&this.setCurrentMarker(ft)},Lt.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"},Lt.prototype.setTopLeft=function(){var Ot=this.editingTarget.getBoundingClientRect(),mt=this.editorCanvas.getBoundingClientRect();this.left=Ot.left-mt.left,this.top=Ot.top-mt.top},Lt.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)},Lt.prototype.addDefs=function(){for(var Ot,mt=[],ft=0;ft<arguments.length;ft++)mt[ft]=arguments[ft];this.defs=Vt.createDefs(),this.addDefsToImage(),(Ot=this.defs).append.apply(Ot,mt)},Lt.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Lt.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)},Lt.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Lt.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Lt.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)},Lt.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Lt.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)},Lt.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 Ot=document.createElement("a");Ot.href="https://markerjs.com/",Ot.target="_blank",Ot.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>',Ot.title="Powered by marker.js",Ot.style.display="grid",Ot.style.alignItems="center",Ot.style.justifyItems="center",Ot.style.padding="3px",Ot.style.width="20px",Ot.style.height="20px",this.logoUI.appendChild(Ot),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Lt.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")},Lt.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"},Lt.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Lt.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 Ot=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=Ot+"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 $t(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")},Lt.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Lt.prototype.removeMarker=function(Ot){this.markerImage.removeChild(Ot.container),this.markers.indexOf(Ot)>-1&&this.markers.splice(this.markers.indexOf(Ot),1),Ot.dispose()},Lt.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())},Lt.prototype.toolbarButtonClicked=function(Ot,mt){if(Ot==="marker"&&mt!==void 0)this.createNewMarker(mt);else if(Ot==="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()}},Lt.prototype.deleteSelectedMarker=function(){var Ot=this;if(this._currentMarker!==void 0){var mt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(pt){var At=new en(Ot,Ot._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 en(Ot,ft))})}}},Lt.prototype.clear=function(){var Ot=this,mt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(le){var xe=new en(Ot,void 0,!0);le(xe),xe.defaultPrevented&&(mt=!0)}),!mt)){this.setCurrentMarker();for(var ft=function(le){var xe=pt.markers[le];pt.setCurrentMarker(pt.markers[le]),pt._currentMarker.dispose(),pt.markerImage.removeChild(pt._currentMarker.container),pt.markers.splice(pt.markers.indexOf(pt._currentMarker),1),pt.eventListeners.markerdelete.forEach(function(ae){return ae(new en(Ot,xe))})},pt=this,At=this.markers.length-1;At>=0;At--)ft(At);this.addUndoStep()}},Object.defineProperty(Lt.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Lt.prototype.showNotesEditor=function(){var Ot;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=(Ot=this._currentMarker.notes)!==null&&Ot!==void 0?Ot:"",this.overlayContainer.appendChild(this.notesArea))},Lt.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)},Lt.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Lt.prototype.addUndoStep=function(){var Ot=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 Kn(Ot))})}else this.undoRedoManager.replaceLastUndoStep(mt),this.eventListeners.statechange.forEach(function(At){return At(new Kn(Ot))})}},Lt.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Lt.prototype.undoStep=function(){var Ot=this,mt=this.undoRedoManager.undo();mt!==void 0&&(this.restoreState(mt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ft){return ft(new Kn(Ot))}))},Lt.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Lt.prototype.redoStep=function(){var Ot=this,mt=this.undoRedoManager.redo();mt!==void 0&&(this.restoreState(mt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ft){return ft(new Kn(Ot))}))},Lt.prototype.stepZoom=function(){var Ot=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Ot<this.zoomSteps.length-1?this.zoomSteps[Ot+1]:this.zoomSteps[0]},Lt.prototype.panTo=function(Ot){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Ot.x,top:this.prevPanPoint.y-Ot.y}),this.prevPanPoint=Ot},Lt.prototype.startRenderAndClose=function(){return re(this,void 0,void 0,function(){var Ot,mt,ft=this;return Ie(this,function(pt){switch(pt.label){case 0:return[4,this.render()];case 1:return Ot=pt.sent(),mt=this.getState(),this.eventListeners.render.forEach(function(At){return At(new Bi(ft,Ot,mt))}),this.close(!0),[2]}})})},Lt.prototype.getState=function(Ot){Ot===!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},Lt.prototype.restoreState=function(Ot){var mt=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Ot.markers.forEach(function(ft){var pt=mt._availableMarkerTypes.find(function(le){return le.typeName===ft.typeName});if(pt!==void 0){var At=mt.addNewMarker(pt);At.restoreState(ft),mt.markers.push(At)}}),Ot.width&&Ot.height&&(Ot.width!==this.imageWidth||Ot.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Ot.width,this.imageHeight/Ot.height),this.eventListeners.restorestate.forEach(function(ft){return ft(new Kn(mt))})},Lt.prototype.addNewMarker=function(Ot){var mt=Vt.createGroup();return this.markerImage.appendChild(mt),new Ot(mt,this.overlayContainer,this.settings)},Lt.prototype.createNewMarker=function(Ot){var mt,ft=this;(mt=typeof Ot=="string"?this._availableMarkerTypes.find(function(pt){return pt.typeName===Ot}):Ot)&&(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 en(ft,ft._currentMarker))}))},Lt.prototype.markerCreated=function(Ot){var mt=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Ot),this.setCurrentMarker(Ot),Ot instanceof Wt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Wt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ft){return ft(new en(mt,mt._currentMarker))})},Lt.prototype.colorChanged=function(Ot){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Ot,this.settings.defaultStrokeColor=Ot)},Lt.prototype.fillColorChanged=function(Ot){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Ot)},Lt.prototype.markerStateChanged=function(Ot){var mt=this;this.eventListeners.markerchange.forEach(function(ft){return ft(new en(mt,Ot))})},Lt.prototype.setCurrentMarker=function(Ot){var mt=this;this._currentMarker!==Ot&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(ft){return ft(new en(mt,mt._currentMarker))})),this._currentMarker=Ot,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 en(mt,mt._currentMarker))}))},Lt.prototype.onPointerDown=function(Ot){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Ot.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(Ot.target)});mt!==void 0?(this.setCurrentMarker(mt),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Ot.clientX,Ot.clientY),Ot.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Ot.clientX,y:Ot.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Ot.clientX,Ot.clientY))},Lt.prototype.onDblClick=function(Ot){if(this._isFocused||this.focus(),this.mode==="select"){var mt=this.markers.find(function(ft){return ft.ownsTarget(Ot.target)});mt!==void 0&&mt!==this._currentMarker&&this.setCurrentMarker(mt),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Ot.clientX,Ot.clientY),Ot.target):this.setCurrentMarker()}},Lt.prototype.onPointerMove=function(Ot){this.touchPoints!==1&&Ot.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Ot.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Ot.clientX,Ot.clientY)):this.zoomLevel>1&&this.panTo({x:Ot.clientX,y:Ot.clientY}))},Lt.prototype.onPointerUp=function(Ot){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Ot.clientX,Ot.clientY)),this.isDragging=!1,this.addUndoStep()},Lt.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Lt.prototype.onKeyUp=function(Ot){this._currentMarker===void 0||this.notesArea!==void 0||Ot.key!=="Delete"&&Ot.key!=="Backspace"||this.deleteSelectedMarker()},Lt.prototype.clientToLocalCoordinates=function(Ot,mt){var ft=this.markerImage.getBoundingClientRect();return{x:(Ot-ft.left)/this.zoomLevel,y:(mt-ft.top)/this.zoomLevel}},Lt.prototype.onWindowResize=function(){this.positionUI()},Lt.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Ot=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Ot+"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()},Lt.prototype.addLicenseKey=function(Ot){Nt.addKey(Ot)},Lt.prototype.addEventListener=function(Ot,mt){this.eventListeners.addEventListener(Ot,mt)},Lt.prototype.removeEventListener=function(Ot,mt){this.eventListeners.removeEventListener(Ot,mt)},Lt.prototype.renderState=function(Ot){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Ot),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Lt.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Lt.prototype.focus=function(){var Ot=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 Kn(Ot))}))},Lt.prototype.blur=function(){var Ot=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(mt){return mt(new Kn(Ot))}))},Lt.instanceCounter=0,Lt}()},17115:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{ZP:function(){return Nt}});var Mt=Ft(72071),ce=Ft(59301),re=Ft(47273),Ie=0,ee=(0,re.Z)();function Vt(){var jt;return ee?(jt=Ie,Ie+=1):jt="TEST_OR_SSR",jt}function Nt(jt){var te=ce.useState(),Pt=(0,Mt.Z)(te,2),oe=Pt[0],Kt=Pt[1];return ce.useEffect(function(){Kt("rc_select_".concat(Vt()))},[]),jt||oe}},77861:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Ac:function(){return nn},Xo:function(){return Jr},Wx:function(){return Tr},ZP:function(){return xi},lk:function(){return xt}});var Mt=Ft(96663),ce=Ft(19127),re=Ft(90493),Ie=Ft(44127),ee=Ft(72071),Vt=Ft(6620),Nt=Ft(20135),jt=Ft(18929),te=Ft(48736),Pt=Ft(59301),oe=Ft(92310),Kt=Ft.n(oe),$t=Ft(34280),Ct=Ft(49658),et=Ft(10228),tt=Ft(8654),lt=function(Le){var wn=Le.className,Qn=Le.customizeIcon,Si=Le.customizeIconProps,Di=Le.onMouseDown,qe=Le.onClick,si=Le.children,Ei;return typeof Qn=="function"?Ei=Qn(Si):Ei=Qn,Pt.createElement("span",{className:wn,onMouseDown:function(On){On.preventDefault(),Di&&Di(On)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:qe,"aria-hidden":!0},Ei!==void 0?Ei:Pt.createElement("span",{className:Kt()(wn.split(/\s+/).map(function(tr){return"".concat(tr,"-icon")}))},si))},rt=lt;function ht(An,Le,wn,Qn,Si){var Di=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,qe=arguments.length>6?arguments[6]:void 0,si=arguments.length>7?arguments[7]:void 0,Ei=Pt.useMemo(function(){if((0,Nt.Z)(Qn)==="object")return Qn.clearIcon;if(Si)return Si},[Qn,Si]),tr=Pt.useMemo(function(){return!!(!Di&&Qn&&(wn.length||qe)&&!(si==="combobox"&&qe===""))},[Qn,Di,wn.length,qe,si]);return{allowClear:tr,clearIcon:Pt.createElement(rt,{className:"".concat(An,"-clear"),onMouseDown:Le,customizeIcon:Ei},"\xD7")}}var dt=Pt.createContext(null);function xt(){return Pt.useContext(dt)}function It(){var An=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Le=Pt.useState(!1),wn=(0,ee.Z)(Le,2),Qn=wn[0],Si=wn[1],Di=Pt.useRef(null),qe=function(){window.clearTimeout(Di.current)};Pt.useEffect(function(){return qe},[]);var si=function(tr,On){qe(),Di.current=window.setTimeout(function(){Si(tr),On&&On()},An)};return[Qn,si,qe]}function Ut(){var An=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Le=Pt.useRef(null),wn=Pt.useRef(null);Pt.useEffect(function(){return function(){window.clearTimeout(wn.current)}},[]);function Qn(Si){(Si||Le.current===null)&&(Le.current=Si),window.clearTimeout(wn.current),wn.current=window.setTimeout(function(){Le.current=null},An)}return[function(){return Le.current},Qn]}function Gt(An,Le,wn,Qn){var Si=Pt.useRef(null);Si.current={open:Le,triggerOpen:wn,customizedTrigger:Qn},Pt.useEffect(function(){function Di(qe){var si;if(!((si=Si.current)!==null&&si!==void 0&&si.customizedTrigger)){var Ei=qe.target;Ei.shadowRoot&&qe.composed&&(Ei=qe.composedPath()[0]||Ei),Si.current.open&&An().filter(function(tr){return tr}).every(function(tr){return!tr.contains(Ei)&&tr!==Ei})&&Si.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Di),function(){return window.removeEventListener("mousedown",Di)}},[])}var se=Ft(26112),ue=Ft(11780),Ae=function(Le,wn){var Qn,Si,Di=Le.prefixCls,qe=Le.id,si=Le.inputElement,Ei=Le.disabled,tr=Le.tabIndex,On=Le.autoFocus,ui=Le.autoComplete,Cr=Le.editable,rr=Le.activeDescendantId,Gr=Le.value,or=Le.maxLength,Lr=Le.onKeyDown,er=Le.onMouseDown,Pr=Le.onChange,io=Le.onPaste,Oo=Le.onCompositionStart,pi=Le.onCompositionEnd,_o=Le.open,ys=Le.attrs,Zo=si||Pt.createElement("input",null),vi=Zo,ur=vi.ref,_r=vi.props,so=_r.onKeyDown,to=_r.onChange,Fo=_r.onMouseDown,Ai=_r.onCompositionStart,yo=_r.onCompositionEnd,jr=_r.style;return(0,te.Kp)(!("maxLength"in Zo.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Zo=Pt.cloneElement(Zo,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({type:"search"},_r),{},{id:qe,ref:(0,tt.sQ)(wn,ur),disabled:Ei,tabIndex:tr,autoComplete:ui||"off",autoFocus:On,className:Kt()("".concat(Di,"-selection-search-input"),(Qn=Zo)===null||Qn===void 0||(Si=Qn.props)===null||Si===void 0?void 0:Si.className),role:"combobox","aria-label":"Search","aria-expanded":_o||!1,"aria-haspopup":"listbox","aria-owns":"".concat(qe,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(qe,"_list"),"aria-activedescendant":_o?rr:void 0},ys),{},{value:Cr?Gr:"",maxLength:or,readOnly:!Cr,unselectable:Cr?null:"on",style:(0,Ie.Z)((0,Ie.Z)({},jr),{},{opacity:Cr?null:0}),onKeyDown:function(Pi){Lr(Pi),so&&so(Pi)},onMouseDown:function(Pi){er(Pi),Fo&&Fo(Pi)},onChange:function(Pi){Pr(Pi),to&&to(Pi)},onCompositionStart:function(Pi){Oo(Pi),Ai&&Ai(Pi)},onCompositionEnd:function(Pi){pi(Pi),yo&&yo(Pi)},onPaste:io})),Zo},Pe=Pt.forwardRef(Ae);Pe.displayName="Input";var qt=Pe;function ze(An){return Array.isArray(An)?An:An!==void 0?[An]:[]}var Wt=typeof window!="undefined"&&window.document&&window.document.documentElement,Ge=Wt;function _e(An){return An!=null}function Me(An){return!An&&An!==0}function We(An){return["string","number"].includes((0,Nt.Z)(An))}function Re(An){var Le=void 0;return An&&(We(An.title)?Le=An.title.toString():We(An.label)&&(Le=An.label.toString())),Le}function ye(An,Le){Ge?Pt.useLayoutEffect(An,Le):Pt.useEffect(An,Le)}function ne(An){var Le;return(Le=An.key)!==null&&Le!==void 0?Le:An.value}var Ce=function(Le){Le.preventDefault(),Le.stopPropagation()},bn=function(Le){var wn=Le.id,Qn=Le.prefixCls,Si=Le.values,Di=Le.open,qe=Le.searchValue,si=Le.autoClearSearchValue,Ei=Le.inputRef,tr=Le.placeholder,On=Le.disabled,ui=Le.mode,Cr=Le.showSearch,rr=Le.autoFocus,Gr=Le.autoComplete,or=Le.activeDescendantId,Lr=Le.tabIndex,er=Le.removeIcon,Pr=Le.maxTagCount,io=Le.maxTagTextLength,Oo=Le.maxTagPlaceholder,pi=Oo===void 0?function(ds){return"+ ".concat(ds.length," ...")}:Oo,_o=Le.tagRender,ys=Le.onToggleOpen,Zo=Le.onRemove,vi=Le.onInputChange,ur=Le.onInputPaste,_r=Le.onInputKeyDown,so=Le.onInputMouseDown,to=Le.onInputCompositionStart,Fo=Le.onInputCompositionEnd,Ai=Pt.useRef(null),yo=(0,Pt.useState)(0),jr=(0,ee.Z)(yo,2),Sr=jr[0],Pi=jr[1],wo=(0,Pt.useState)(!1),Ci=(0,ee.Z)(wo,2),Xo=Ci[0],ua=Ci[1],xs="".concat(Qn,"-selection"),da=Di||ui==="multiple"&&si===!1||ui==="tags"?qe:"",Js=ui==="tags"||ui==="multiple"&&si===!1||Cr&&(Di||Xo);ye(function(){Pi(Ai.current.scrollWidth)},[da]);function Lo(ds,ia,ll,ul,Ml){return Pt.createElement("span",{className:Kt()("".concat(xs,"-item"),(0,re.Z)({},"".concat(xs,"-item-disabled"),ll)),title:Re(ds)},Pt.createElement("span",{className:"".concat(xs,"-item-content")},ia),ul&&Pt.createElement(rt,{className:"".concat(xs,"-item-remove"),onMouseDown:Ce,onClick:Ml,customizeIcon:er},"\xD7"))}function Do(ds,ia,ll,ul,Ml){var ls=function(Ns){Ce(Ns),ys(!Di)};return Pt.createElement("span",{onMouseDown:ls},_o({label:ia,value:ds,disabled:ll,closable:ul,onClose:Ml}))}function As(ds){var ia=ds.disabled,ll=ds.label,ul=ds.value,Ml=!On&&!ia,ls=ll;if(typeof io=="number"&&(typeof ll=="string"||typeof ll=="number")){var Go=String(ls);Go.length>io&&(ls="".concat(Go.slice(0,io),"..."))}var Ns=function(Gs){Gs&&Gs.stopPropagation(),Zo(ds)};return typeof _o=="function"?Do(ul,ls,ia,Ml,Ns):Lo(ds,ls,ia,Ml,Ns)}function hs(ds){var ia=typeof pi=="function"?pi(ds):pi;return Lo({title:ia},ia,!1)}var wr=Pt.createElement("div",{className:"".concat(xs,"-search"),style:{width:Sr},onFocus:function(){ua(!0)},onBlur:function(){ua(!1)}},Pt.createElement(qt,{ref:Ei,open:Di,prefixCls:Qn,id:wn,inputElement:null,disabled:On,autoFocus:rr,autoComplete:Gr,editable:Js,activeDescendantId:or,value:da,onKeyDown:_r,onMouseDown:so,onChange:vi,onPaste:ur,onCompositionStart:to,onCompositionEnd:Fo,tabIndex:Lr,attrs:(0,se.Z)(Le,!0)}),Pt.createElement("span",{ref:Ai,className:"".concat(xs,"-search-mirror"),"aria-hidden":!0},da,"\xA0")),Ne=Pt.createElement(ue.Z,{prefixCls:"".concat(xs,"-overflow"),data:Si,renderItem:As,renderRest:hs,suffix:wr,itemKey:ne,maxCount:Pr});return Pt.createElement(Pt.Fragment,null,Ne,!Si.length&&!da&&Pt.createElement("span",{className:"".concat(xs,"-placeholder")},tr))},Ln=bn,Ze=function(Le){var wn=Le.inputElement,Qn=Le.prefixCls,Si=Le.id,Di=Le.inputRef,qe=Le.disabled,si=Le.autoFocus,Ei=Le.autoComplete,tr=Le.activeDescendantId,On=Le.mode,ui=Le.open,Cr=Le.values,rr=Le.placeholder,Gr=Le.tabIndex,or=Le.showSearch,Lr=Le.searchValue,er=Le.activeValue,Pr=Le.maxLength,io=Le.onInputKeyDown,Oo=Le.onInputMouseDown,pi=Le.onInputChange,_o=Le.onInputPaste,ys=Le.onInputCompositionStart,Zo=Le.onInputCompositionEnd,vi=Le.title,ur=Pt.useState(!1),_r=(0,ee.Z)(ur,2),so=_r[0],to=_r[1],Fo=On==="combobox",Ai=Fo||or,yo=Cr[0],jr=Lr||"";Fo&&er&&!so&&(jr=er),Pt.useEffect(function(){Fo&&to(!1)},[Fo,er]);var Sr=On!=="combobox"&&!ui&&!or?!1:!!jr,Pi=vi===void 0?Re(yo):vi,wo=function(){if(yo)return null;var Xo=Sr?{visibility:"hidden"}:void 0;return Pt.createElement("span",{className:"".concat(Qn,"-selection-placeholder"),style:Xo},rr)};return Pt.createElement(Pt.Fragment,null,Pt.createElement("span",{className:"".concat(Qn,"-selection-search")},Pt.createElement(qt,{ref:Di,prefixCls:Qn,id:Si,open:ui,inputElement:wn,disabled:qe,autoFocus:si,autoComplete:Ei,editable:Ai,activeDescendantId:tr,value:jr,onKeyDown:io,onMouseDown:Oo,onChange:function(Xo){to(!0),pi(Xo)},onPaste:_o,onCompositionStart:ys,onCompositionEnd:Zo,tabIndex:Gr,attrs:(0,se.Z)(Le,!0),maxLength:Fo?Pr:void 0})),!Fo&&yo?Pt.createElement("span",{className:"".concat(Qn,"-selection-item"),title:Pi,style:Sr?{visibility:"hidden"}:void 0},yo.label):null,wo())},Mn=Ze;function Vn(An){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(An)}var gi=function(Le,wn){var Qn=(0,Pt.useRef)(null),Si=(0,Pt.useRef)(!1),Di=Le.prefixCls,qe=Le.open,si=Le.mode,Ei=Le.showSearch,tr=Le.tokenWithEnter,On=Le.autoClearSearchValue,ui=Le.onSearch,Cr=Le.onSearchSubmit,rr=Le.onToggleOpen,Gr=Le.onInputKeyDown,or=Le.domRef;Pt.useImperativeHandle(wn,function(){return{focus:function(){Qn.current.focus()},blur:function(){Qn.current.blur()}}});var Lr=Ut(0),er=(0,ee.Z)(Lr,2),Pr=er[0],io=er[1],Oo=function(jr){var Sr=jr.which;(Sr===et.Z.UP||Sr===et.Z.DOWN)&&jr.preventDefault(),Gr&&Gr(jr),Sr===et.Z.ENTER&&si==="tags"&&!Si.current&&!qe&&(Cr==null||Cr(jr.target.value)),Vn(Sr)&&rr(!0)},pi=function(){io(!0)},_o=(0,Pt.useRef)(null),ys=function(jr){ui(jr,!0,Si.current)!==!1&&rr(!0)},Zo=function(){Si.current=!0},vi=function(jr){Si.current=!1,si!=="combobox"&&ys(jr.target.value)},ur=function(jr){var Sr=jr.target.value;if(tr&&_o.current&&/[\r\n]/.test(_o.current)){var Pi=_o.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Sr=Sr.replace(Pi,_o.current)}_o.current=null,ys(Sr)},_r=function(jr){var Sr=jr.clipboardData,Pi=Sr.getData("text");_o.current=Pi},so=function(jr){var Sr=jr.target;if(Sr!==Qn.current){var Pi=document.body.style.msTouchAction!==void 0;Pi?setTimeout(function(){Qn.current.focus()}):Qn.current.focus()}},to=function(jr){var Sr=Pr();jr.target!==Qn.current&&!Sr&&si!=="combobox"&&jr.preventDefault(),(si!=="combobox"&&(!Ei||!Sr)||!qe)&&(qe&&On!==!1&&ui("",!0,!1),rr())},Fo={inputRef:Qn,onInputKeyDown:Oo,onInputMouseDown:pi,onInputChange:ur,onInputPaste:_r,onInputCompositionStart:Zo,onInputCompositionEnd:vi},Ai=si==="multiple"||si==="tags"?Pt.createElement(Ln,(0,Mt.Z)({},Le,Fo)):Pt.createElement(Mn,(0,Mt.Z)({},Le,Fo));return Pt.createElement("div",{ref:or,className:"".concat(Di,"-selector"),onClick:so,onMouseDown:to},Ai)},Kn=Pt.forwardRef(gi);Kn.displayName="Selector";var Bi=Kn,en=Ft(35593),Li=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Oi=function(Le){var wn=Le===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:wn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:wn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:wn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:wn,adjustY:1},htmlRegion:"scroll"}}},Lt=function(Le,wn){var Qn=Le.prefixCls,Si=Le.disabled,Di=Le.visible,qe=Le.children,si=Le.popupElement,Ei=Le.animation,tr=Le.transitionName,On=Le.dropdownStyle,ui=Le.dropdownClassName,Cr=Le.direction,rr=Cr===void 0?"ltr":Cr,Gr=Le.placement,or=Le.builtinPlacements,Lr=Le.dropdownMatchSelectWidth,er=Le.dropdownRender,Pr=Le.dropdownAlign,io=Le.getPopupContainer,Oo=Le.empty,pi=Le.getTriggerDOMNode,_o=Le.onPopupVisibleChange,ys=Le.onPopupMouseEnter,Zo=(0,Vt.Z)(Le,Li),vi="".concat(Qn,"-dropdown"),ur=si;er&&(ur=er(si));var _r=Pt.useMemo(function(){return or||Oi(Lr)},[or,Lr]),so=Ei?"".concat(vi,"-").concat(Ei):tr,to=typeof Lr=="number",Fo=Pt.useMemo(function(){return to?null:Lr===!1?"minWidth":"width"},[Lr,to]),Ai=On;to&&(Ai=(0,Ie.Z)((0,Ie.Z)({},Ai),{},{width:Lr}));var yo=Pt.useRef(null);return Pt.useImperativeHandle(wn,function(){return{getPopupElement:function(){return yo.current}}}),Pt.createElement(en.Z,(0,Mt.Z)({},Zo,{showAction:_o?["click"]:[],hideAction:_o?["click"]:[],popupPlacement:Gr||(rr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:_r,prefixCls:vi,popupTransitionName:so,popup:Pt.createElement("div",{ref:yo,onMouseEnter:ys},ur),stretch:Fo,popupAlign:Pr,popupVisible:Di,getPopupContainer:io,popupClassName:Kt()(ui,(0,re.Z)({},"".concat(vi,"-empty"),Oo)),popupStyle:Ai,getTriggerDOMNode:pi,onPopupVisibleChange:_o}),qe)},Ot=Pt.forwardRef(Lt);Ot.displayName="SelectTrigger";var mt=Ot,ft=Ft(4537);function pt(An,Le){var wn=An.key,Qn;return"value"in An&&(Qn=An.value),wn!=null?wn:Qn!==void 0?Qn:"rc-index-key-".concat(Le)}function At(An,Le){var wn=An||{},Qn=wn.label,Si=wn.value,Di=wn.options,qe=wn.groupLabel,si=Qn||(Le?"children":"label");return{label:si,value:Si||"value",options:Di||"options",groupLabel:qe||si}}function le(An){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},wn=Le.fieldNames,Qn=Le.childrenAsData,Si=[],Di=At(wn,!1),qe=Di.label,si=Di.value,Ei=Di.options,tr=Di.groupLabel;function On(ui,Cr){ui.forEach(function(rr){if(Cr||!(Ei in rr)){var Gr=rr[si];Si.push({key:pt(rr,Si.length),groupOption:Cr,data:rr,label:rr[qe],value:Gr})}else{var or=rr[tr];or===void 0&&Qn&&(or=rr.label),Si.push({key:pt(rr,Si.length),group:!0,data:rr,label:or}),On(rr[Ei],!0)}})}return On(An,!1),Si}function xe(An){var Le=(0,Ie.Z)({},An);return"props"in Le||Object.defineProperty(Le,"props",{get:function(){return(0,te.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Le}}),Le}function ae(An,Le){if(!Le||!Le.length)return null;var wn=!1;function Qn(Di,qe){var si=(0,ft.Z)(qe),Ei=si[0],tr=si.slice(1);if(!Ei)return[Di];var On=Di.split(Ei);return wn=wn||On.length>1,On.reduce(function(ui,Cr){return[].concat((0,ce.Z)(ui),(0,ce.Z)(Qn(Cr,tr)))},[]).filter(function(ui){return ui})}var Si=Qn(An,Le);return wn?Si:null}var ve=["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 Te(An){return An==="tags"||An==="multiple"}var ke=Pt.forwardRef(function(An,Le){var wn,Qn,Si=An.id,Di=An.prefixCls,qe=An.className,si=An.showSearch,Ei=An.tagRender,tr=An.direction,On=An.omitDomProps,ui=An.displayValues,Cr=An.onDisplayValuesChange,rr=An.emptyOptions,Gr=An.notFoundContent,or=Gr===void 0?"Not Found":Gr,Lr=An.onClear,er=An.mode,Pr=An.disabled,io=An.loading,Oo=An.getInputElement,pi=An.getRawInputElement,_o=An.open,ys=An.defaultOpen,Zo=An.onDropdownVisibleChange,vi=An.activeValue,ur=An.onActiveValueChange,_r=An.activeDescendantId,so=An.searchValue,to=An.autoClearSearchValue,Fo=An.onSearch,Ai=An.onSearchSplit,yo=An.tokenSeparators,jr=An.allowClear,Sr=An.suffixIcon,Pi=An.clearIcon,wo=An.OptionList,Ci=An.animation,Xo=An.transitionName,ua=An.dropdownStyle,xs=An.dropdownClassName,da=An.dropdownMatchSelectWidth,Js=An.dropdownRender,Lo=An.dropdownAlign,Do=An.placement,As=An.builtinPlacements,hs=An.getPopupContainer,wr=An.showAction,Ne=wr===void 0?[]:wr,ds=An.onFocus,ia=An.onBlur,ll=An.onKeyUp,ul=An.onKeyDown,Ml=An.onMouseDown,ls=(0,Vt.Z)(An,ve),Go=Te(er),Ns=(si!==void 0?si:Go)||er==="combobox",Wo=(0,Ie.Z)({},ls);Ue.forEach(function(Ls){delete Wo[Ls]}),On==null||On.forEach(function(Ls){delete Wo[Ls]});var Gs=Pt.useState(!1),wl=(0,ee.Z)(Gs,2),ho=wl[0],mo=wl[1];Pt.useEffect(function(){mo((0,Ct.Z)())},[]);var Vi=Pt.useRef(null),Po=Pt.useRef(null),Bs=Pt.useRef(null),ha=Pt.useRef(null),sa=Pt.useRef(null),Ro=It(),Ws=(0,ee.Z)(Ro,3),Na=Ws[0],Ol=Ws[1],Va=Ws[2];Pt.useImperativeHandle(Le,function(){var Ls,ya;return{focus:(Ls=ha.current)===null||Ls===void 0?void 0:Ls.focus,blur:(ya=ha.current)===null||ya===void 0?void 0:ya.blur,scrollTo:function(qa){var sl;return(sl=sa.current)===null||sl===void 0?void 0:sl.scrollTo(qa)}}});var bs=Pt.useMemo(function(){var Ls;if(er!=="combobox")return so;var ya=(Ls=ui[0])===null||Ls===void 0?void 0:Ls.value;return typeof ya=="string"||typeof ya=="number"?String(ya):""},[so,er,ui]),ai=er==="combobox"&&typeof Oo=="function"&&Oo()||null,Ia=typeof pi=="function"&&pi(),Ac=(0,tt.x1)(Po,Ia==null||(wn=Ia.props)===null||wn===void 0?void 0:wn.ref),du=Pt.useState(!1),Hh=(0,ee.Z)(du,2),Zr=Hh[0],zs=Hh[1];(0,$t.Z)(function(){zs(!0)},[]);var Is=(0,jt.Z)(!1,{defaultValue:ys,value:_o}),Es=(0,ee.Z)(Is,2),Ks=Es[0],Au=Es[1],Jo=Zr?Ks:!1,Qs=!or&&rr;(Pr||Qs&&Jo&&er==="combobox")&&(Jo=!1);var ws=Qs?!1:Jo,Hr=Pt.useCallback(function(Ls){var ya=Ls!==void 0?Ls:!Jo;Pr||(Au(ya),Jo!==ya&&(Zo==null||Zo(ya)))},[Pr,Jo,Au,Zo]),hl=Pt.useMemo(function(){return(yo||[]).some(function(Ls){return[`
|
|
|
`,`\r
|
|
|
`].includes(Ls)})},[yo]),js=function(ya,ju,qa){var sl=!0,za=ya;ur==null||ur(null);var Aa=qa?null:ae(ya,yo);return er!=="combobox"&&Aa&&(za="",Ai==null||Ai(Aa),Hr(!1),sl=!1),Fo&&bs!==za&&Fo(za,{source:ju?"typing":"effect"}),sl},Su=function(ya){!ya||!ya.trim()||Fo(ya,{source:"submit"})};Pt.useEffect(function(){!Jo&&!Go&&er!=="combobox"&&js("",!1,!1)},[Jo]),Pt.useEffect(function(){Ks&&Pr&&Au(!1),Pr&&Ol(!1)},[Pr]);var zu=Ut(),Xl=(0,ee.Z)(zu,2),fr=Xl[0],Za=Xl[1],rl=function(ya){var ju=fr(),qa=ya.which;if(qa===et.Z.ENTER&&(er!=="combobox"&&ya.preventDefault(),Jo||Hr(!0)),Za(!!bs),qa===et.Z.BACKSPACE&&!ju&&Go&&!bs&&ui.length){for(var sl=(0,ce.Z)(ui),za=null,Aa=sl.length-1;Aa>=0;Aa-=1){var tl=sl[Aa];if(!tl.disabled){sl.splice(Aa,1),za=tl;break}}za&&Cr(sl,{type:"remove",values:[za]})}for(var Dl=arguments.length,fc=new Array(Dl>1?Dl-1:0),ch=1;ch<Dl;ch++)fc[ch-1]=arguments[ch];if(Jo&&sa.current){var cl;(cl=sa.current).onKeyDown.apply(cl,[ya].concat(fc))}ul==null||ul.apply(void 0,[ya].concat(fc))},El=function(ya){for(var ju=arguments.length,qa=new Array(ju>1?ju-1:0),sl=1;sl<ju;sl++)qa[sl-1]=arguments[sl];if(Jo&&sa.current){var za;(za=sa.current).onKeyUp.apply(za,[ya].concat(qa))}ll==null||ll.apply(void 0,[ya].concat(qa))},ou=function(ya){var ju=ui.filter(function(qa){return qa!==ya});Cr(ju,{type:"remove",values:[ya]})},Ya=Pt.useRef(!1),bo=function(){Ol(!0),Pr||(ds&&!Ya.current&&ds.apply(void 0,arguments),Ne.includes("focus")&&Hr(!0)),Ya.current=!0},ja=function(){Ol(!1,function(){Ya.current=!1,Hr(!1)}),!Pr&&(bs&&(er==="tags"?Fo(bs,{source:"submit"}):er==="multiple"&&Fo("",{source:"blur"})),ia&&ia.apply(void 0,arguments))},Ja=[];Pt.useEffect(function(){return function(){Ja.forEach(function(Ls){return clearTimeout(Ls)}),Ja.splice(0,Ja.length)}},[]);var su=function(ya){var ju,qa=ya.target,sl=(ju=Bs.current)===null||ju===void 0?void 0:ju.getPopupElement();if(sl&&sl.contains(qa)){var za=setTimeout(function(){var fc=Ja.indexOf(za);if(fc!==-1&&Ja.splice(fc,1),Va(),!ho&&!sl.contains(document.activeElement)){var ch;(ch=ha.current)===null||ch===void 0||ch.focus()}});Ja.push(za)}for(var Aa=arguments.length,tl=new Array(Aa>1?Aa-1:0),Dl=1;Dl<Aa;Dl++)tl[Dl-1]=arguments[Dl];Ml==null||Ml.apply(void 0,[ya].concat(tl))},$l=Pt.useState({}),Pu=(0,ee.Z)($l,2),bu=Pu[1];function fu(){bu({})}var eu;Ia&&(eu=function(ya){Hr(ya)}),Gt(function(){var Ls;return[Vi.current,(Ls=Bs.current)===null||Ls===void 0?void 0:Ls.getPopupElement()]},ws,Hr,!!Ia);var Qo=Pt.useMemo(function(){return(0,Ie.Z)((0,Ie.Z)({},An),{},{notFoundContent:or,open:Jo,triggerOpen:ws,id:Si,showSearch:Ns,multiple:Go,toggleOpen:Hr})},[An,or,ws,Jo,Si,Ns,Go,Hr]),Hd=!!Sr||io,Eu;Hd&&(Eu=Pt.createElement(rt,{className:Kt()("".concat(Di,"-arrow"),(0,re.Z)({},"".concat(Di,"-arrow-loading"),io)),customizeIcon:Sr,customizeIconProps:{loading:io,searchValue:bs,open:Jo,focused:Na,showSearch:Ns}}));var yd=function(){var ya;Lr==null||Lr(),(ya=ha.current)===null||ya===void 0||ya.focus(),Cr([],{type:"clear",values:ui}),js("",!1,!1)},Nh=ht(Di,yd,ui,jr,Pi,Pr,bs,er),ec=Nh.allowClear,ol=Nh.clearIcon,xh=Pt.createElement(wo,{ref:sa}),Qd=Kt()(Di,qe,(Qn={},(0,re.Z)(Qn,"".concat(Di,"-focused"),Na),(0,re.Z)(Qn,"".concat(Di,"-multiple"),Go),(0,re.Z)(Qn,"".concat(Di,"-single"),!Go),(0,re.Z)(Qn,"".concat(Di,"-allow-clear"),jr),(0,re.Z)(Qn,"".concat(Di,"-show-arrow"),Hd),(0,re.Z)(Qn,"".concat(Di,"-disabled"),Pr),(0,re.Z)(Qn,"".concat(Di,"-loading"),io),(0,re.Z)(Qn,"".concat(Di,"-open"),Jo),(0,re.Z)(Qn,"".concat(Di,"-customize-input"),ai),(0,re.Z)(Qn,"".concat(Di,"-show-search"),Ns),Qn)),Oc=Pt.createElement(mt,{ref:Bs,disabled:Pr,prefixCls:Di,visible:ws,popupElement:xh,animation:Ci,transitionName:Xo,dropdownStyle:ua,dropdownClassName:xs,direction:tr,dropdownMatchSelectWidth:da,dropdownRender:Js,dropdownAlign:Lo,placement:Do,builtinPlacements:As,getPopupContainer:hs,empty:rr,getTriggerDOMNode:function(){return Po.current},onPopupVisibleChange:eu,onPopupMouseEnter:fu},Ia?Pt.cloneElement(Ia,{ref:Ac}):Pt.createElement(Bi,(0,Mt.Z)({},An,{domRef:Po,prefixCls:Di,inputElement:ai,ref:ha,id:Si,showSearch:Ns,autoClearSearchValue:to,mode:er,activeDescendantId:_r,tagRender:Ei,values:ui,open:Jo,onToggleOpen:Hr,activeValue:vi,searchValue:bs,onSearch:js,onSearchSubmit:Su,onRemove:ou,tokenWithEnter:hl}))),Dc;return Ia?Dc=Oc:Dc=Pt.createElement("div",(0,Mt.Z)({className:Qd},Wo,{ref:Vi,onMouseDown:su,onKeyDown:rl,onKeyUp:El,onFocus:bo,onBlur:ja}),Na&&!Jo&&Pt.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(ui.map(function(Ls){var ya=Ls.label,ju=Ls.value;return["number","string"].includes((0,Nt.Z)(ya))?ya:ju}).join(", "))),Oc,Eu,ec&&ol),Pt.createElement(dt.Provider,{value:Qo},Dc)}),nn=ke,Wn=function(An,Le){var wn=Pt.useRef({values:new Map,options:new Map}),Qn=Pt.useMemo(function(){var Di=wn.current,qe=Di.values,si=Di.options,Ei=An.map(function(ui){if(ui.label===void 0){var Cr;return(0,Ie.Z)((0,Ie.Z)({},ui),{},{label:(Cr=qe.get(ui.value))===null||Cr===void 0?void 0:Cr.label})}return ui}),tr=new Map,On=new Map;return Ei.forEach(function(ui){tr.set(ui.value,ui),On.set(ui.value,Le.get(ui.value)||si.get(ui.value))}),wn.current.values=tr,wn.current.options=On,Ei},[An,Le]),Si=Pt.useCallback(function(Di){return Le.get(Di)||wn.current.options.get(Di)},[Le]);return[Qn,Si]};function an(An,Le){return ze(An).join("").toUpperCase().includes(Le)}var gn=function(An,Le,wn,Qn,Si){return Pt.useMemo(function(){if(!wn||Qn===!1)return An;var Di=Le.options,qe=Le.label,si=Le.value,Ei=[],tr=typeof Qn=="function",On=wn.toUpperCase(),ui=tr?Qn:function(rr,Gr){return Si?an(Gr[Si],On):Gr[Di]?an(Gr[qe!=="children"?qe:"label"],On):an(Gr[si],On)},Cr=tr?function(rr){return xe(rr)}:function(rr){return rr};return An.forEach(function(rr){if(rr[Di]){var Gr=ui(wn,Cr(rr));if(Gr)Ei.push(rr);else{var or=rr[Di].filter(function(Lr){return ui(wn,Cr(Lr))});or.length&&Ei.push((0,Ie.Z)((0,Ie.Z)({},rr),{},(0,re.Z)({},Di,or)))}return}ui(wn,Cr(rr))&&Ei.push(rr)}),Ei},[An,Qn,Si,wn,Le])},Bn=Ft(17115),ti=Ft(11592),Rn=["children","value"],Ri=["children"];function dr(An){var Le=An,wn=Le.key,Qn=Le.props,Si=Qn.children,Di=Qn.value,qe=(0,Vt.Z)(Qn,Rn);return(0,Ie.Z)({key:wn,value:Di!==void 0?Di:wn,children:Si},qe)}function Ji(An){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,ti.Z)(An).map(function(wn,Qn){if(!Pt.isValidElement(wn)||!wn.type)return null;var Si=wn,Di=Si.type.isSelectOptGroup,qe=Si.key,si=Si.props,Ei=si.children,tr=(0,Vt.Z)(si,Ri);return Le||!Di?dr(wn):(0,Ie.Z)((0,Ie.Z)({key:"__RC_SELECT_GRP__".concat(qe===null?Qn:qe,"__"),label:qe},tr),{},{options:Ji(Ei)})}).filter(function(wn){return wn})}function mr(An,Le,wn,Qn,Si){return Pt.useMemo(function(){var Di=An,qe=!An;qe&&(Di=Ji(Le));var si=new Map,Ei=new Map,tr=function(Cr,rr,Gr){Gr&&typeof Gr=="string"&&Cr.set(rr[Gr],rr)};function On(ui){for(var Cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rr=0;rr<ui.length;rr+=1){var Gr=ui[rr];!Gr[wn.options]||Cr?(si.set(Gr[wn.value],Gr),tr(Ei,Gr,wn.label),tr(Ei,Gr,Qn),tr(Ei,Gr,Si)):On(Gr[wn.options],!0)}}return On(Di),{options:Di,valueOptions:si,labelOptions:Ei}},[An,Le,wn,Qn,Si])}function Mr(An){var Le=Pt.useRef();Le.current=An;var wn=Pt.useCallback(function(){return Le.current.apply(Le,arguments)},[]);return wn}var ro=function(){return null};ro.isSelectOptGroup=!0;var Jr=ro,$r=function(){return null};$r.isSelectOption=!0;var Tr=$r,Wr=Ft(80547),oo=Ft(2738),Uo=Ft(24916),is=Pt.createContext(null),uo=is;function Ss(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var To=["disabled","title","children","style","className"];function Xt(An){return typeof An=="string"||typeof An=="number"}var ei=function(Le,wn){var Qn=xt(),Si=Qn.prefixCls,Di=Qn.id,qe=Qn.open,si=Qn.multiple,Ei=Qn.mode,tr=Qn.searchValue,On=Qn.toggleOpen,ui=Qn.notFoundContent,Cr=Qn.onPopupScroll,rr=Pt.useContext(uo),Gr=rr.flattenOptions,or=rr.onActiveValue,Lr=rr.defaultActiveFirstOption,er=rr.onSelect,Pr=rr.menuItemSelectedIcon,io=rr.rawValues,Oo=rr.fieldNames,pi=rr.virtual,_o=rr.direction,ys=rr.listHeight,Zo=rr.listItemHeight,vi="".concat(Si,"-item"),ur=(0,Wr.Z)(function(){return Gr},[qe,Gr],function(Lo,Do){return Do[0]&&Lo[1]!==Do[1]}),_r=Pt.useRef(null),so=function(Do){Do.preventDefault()},to=function(Do){_r.current&&_r.current.scrollTo(typeof Do=="number"?{index:Do}:Do)},Fo=function(Do){for(var As=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,hs=ur.length,wr=0;wr<hs;wr+=1){var Ne=(Do+wr*As+hs)%hs,ds=ur[Ne],ia=ds.group,ll=ds.data;if(!ia&&!ll.disabled)return Ne}return-1},Ai=Pt.useState(function(){return Fo(0)}),yo=(0,ee.Z)(Ai,2),jr=yo[0],Sr=yo[1],Pi=function(Do){var As=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Sr(Do);var hs={source:As?"keyboard":"mouse"},wr=ur[Do];if(!wr){or(null,-1,hs);return}or(wr.value,Do,hs)};(0,Pt.useEffect)(function(){Pi(Lr!==!1?Fo(0):-1)},[ur.length,tr]);var wo=Pt.useCallback(function(Lo){return io.has(Lo)&&Ei!=="combobox"},[Ei,(0,ce.Z)(io).toString(),io.size]);(0,Pt.useEffect)(function(){var Lo=setTimeout(function(){if(!si&&qe&&io.size===1){var As=Array.from(io)[0],hs=ur.findIndex(function(wr){var Ne=wr.data;return Ne.value===As});hs!==-1&&(Pi(hs),to(hs))}});if(qe){var Do;(Do=_r.current)===null||Do===void 0||Do.scrollTo(void 0)}return function(){return clearTimeout(Lo)}},[qe,tr,Gr.length]);var Ci=function(Do){Do!==void 0&&er(Do,{selected:!io.has(Do)}),si||On(!1)};if(Pt.useImperativeHandle(wn,function(){return{onKeyDown:function(Do){var As=Do.which,hs=Do.ctrlKey;switch(As){case et.Z.N:case et.Z.P:case et.Z.UP:case et.Z.DOWN:{var wr=0;if(As===et.Z.UP?wr=-1:As===et.Z.DOWN?wr=1:Ss()&&hs&&(As===et.Z.N?wr=1:As===et.Z.P&&(wr=-1)),wr!==0){var Ne=Fo(jr+wr,wr);to(Ne),Pi(Ne,!0)}break}case et.Z.ENTER:{var ds=ur[jr];ds&&!ds.data.disabled?Ci(ds.value):Ci(void 0),qe&&Do.preventDefault();break}case et.Z.ESC:On(!1),qe&&Do.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Do){to(Do)}}}),ur.length===0)return Pt.createElement("div",{role:"listbox",id:"".concat(Di,"_list"),className:"".concat(vi,"-empty"),onMouseDown:so},ui);var Xo=Object.keys(Oo).map(function(Lo){return Oo[Lo]}),ua=function(Do){return Do.label};function xs(Lo,Do){var As=Lo.group;return{role:As?"presentation":"option",id:"".concat(Di,"_list_").concat(Do)}}var da=function(Do){var As=ur[Do];if(!As)return null;var hs=As.data||{},wr=hs.value,Ne=As.group,ds=(0,se.Z)(hs,!0),ia=ua(As);return As?Pt.createElement("div",(0,Mt.Z)({"aria-label":typeof ia=="string"&&!Ne?ia:null},ds,{key:Do},xs(As,Do),{"aria-selected":wo(wr)}),wr):null},Js={role:"listbox",id:"".concat(Di,"_list")};return Pt.createElement(Pt.Fragment,null,pi&&Pt.createElement("div",(0,Mt.Z)({},Js,{style:{height:0,width:0,overflow:"hidden"}}),da(jr-1),da(jr),da(jr+1)),Pt.createElement(Uo.Z,{itemKey:"key",ref:_r,data:ur,height:ys,itemHeight:Zo,fullHeight:!1,onMouseDown:so,onScroll:Cr,virtual:pi,direction:_o,innerProps:pi?null:Js},function(Lo,Do){var As,hs=Lo.group,wr=Lo.groupOption,Ne=Lo.data,ds=Lo.label,ia=Lo.value,ll=Ne.key;if(hs){var ul,Ml=(ul=Ne.title)!==null&&ul!==void 0?ul:Xt(ds)?ds.toString():void 0;return Pt.createElement("div",{className:Kt()(vi,"".concat(vi,"-group")),title:Ml},ds!==void 0?ds:ll)}var ls=Ne.disabled,Go=Ne.title,Ns=Ne.children,Wo=Ne.style,Gs=Ne.className,wl=(0,Vt.Z)(Ne,To),ho=(0,oo.Z)(wl,Xo),mo=wo(ia),Vi="".concat(vi,"-option"),Po=Kt()(vi,Vi,Gs,(As={},(0,re.Z)(As,"".concat(Vi,"-grouped"),wr),(0,re.Z)(As,"".concat(Vi,"-active"),jr===Do&&!ls),(0,re.Z)(As,"".concat(Vi,"-disabled"),ls),(0,re.Z)(As,"".concat(Vi,"-selected"),mo),As)),Bs=ua(Lo),ha=!Pr||typeof Pr=="function"||mo,sa=typeof Bs=="number"?Bs:Bs||ia,Ro=Xt(sa)?sa.toString():void 0;return Go!==void 0&&(Ro=Go),Pt.createElement("div",(0,Mt.Z)({},(0,se.Z)(ho),pi?{}:xs(Lo,Do),{"aria-selected":mo,className:Po,title:Ro,onMouseMove:function(){jr===Do||ls||Pi(Do)},onClick:function(){ls||Ci(ia)},style:Wo}),Pt.createElement("div",{className:"".concat(Vi,"-content")},sa),Pt.isValidElement(Pr)||mo,ha&&Pt.createElement(rt,{className:"".concat(vi,"-option-state"),customizeIcon:Pr,customizeIconProps:{isSelected:mo}},mo?"\u2713":null))}))},Cs=Pt.forwardRef(ei);Cs.displayName="OptionList";var Os=Cs;function ma(An){var Le=An.mode,wn=An.options,Qn=An.children,Si=An.backfill,Di=An.allowClear,qe=An.placeholder,si=An.getInputElement,Ei=An.showSearch,tr=An.onSearch,On=An.defaultOpen,ui=An.autoFocus,Cr=An.labelInValue,rr=An.value,Gr=An.inputValue,or=An.optionLabelProp,Lr=isMultiple(Le),er=Ei!==void 0?Ei:Lr||Le==="combobox",Pr=wn||convertChildrenToData(Qn);if(warning(Le!=="tags"||Pr.every(function(_o){return!_o.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Le==="tags"||Le==="combobox"){var io=Pr.some(function(_o){return _o.options?_o.options.some(function(ys){return typeof("value"in ys?ys.value:ys.key)=="number"}):typeof("value"in _o?_o.value:_o.key)=="number"});warning(!io,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Le!=="combobox"||!or,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Le==="combobox"||!Si,"`backfill` only works with `combobox` mode."),warning(Le==="combobox"||!si,"`getInputElement` only work with `combobox` mode."),noteOnce(Le!=="combobox"||!si||!Di||!qe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),tr&&!er&&Le!=="combobox"&&Le!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!On||ui,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),rr!=null){var Oo=toArray(rr);warning(!Cr||Oo.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(!Lr||Array.isArray(rr),"`value` should be array when `mode` is `multiple` or `tags`")}if(Qn){var pi=null;toNodeArray(Qn).some(function(_o){if(!React.isValidElement(_o)||!_o.type)return!1;var ys=_o,Zo=ys.type;if(Zo.isSelectOption)return!1;if(Zo.isSelectOptGroup){var vi=toNodeArray(_o.props.children).every(function(ur){return!React.isValidElement(ur)||!_o.type||ur.type.isSelectOption?!0:(pi=ur.type,!1)});return!vi}return pi=Zo,!0}),pi&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(pi.displayName||pi.name||pi,"`.")),warning(Gr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function va(An,Le){if(An){var wn=function Qn(Si){for(var Di=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe=0;qe<Si.length;qe++){var si=Si[qe];if(si[Le==null?void 0:Le.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Di&&Array.isArray(si[Le==null?void 0:Le.options])&&Qn(si[Le==null?void 0:Le.options],!0))break}};wn(An)}}var Ys=null,Qr=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Dr=["inputValue"];function In(An){return!An||(0,Nt.Z)(An)!=="object"}var Tn=Pt.forwardRef(function(An,Le){var wn=An.id,Qn=An.mode,Si=An.prefixCls,Di=Si===void 0?"rc-select":Si,qe=An.backfill,si=An.fieldNames,Ei=An.inputValue,tr=An.searchValue,On=An.onSearch,ui=An.autoClearSearchValue,Cr=ui===void 0?!0:ui,rr=An.onSelect,Gr=An.onDeselect,or=An.dropdownMatchSelectWidth,Lr=or===void 0?!0:or,er=An.filterOption,Pr=An.filterSort,io=An.optionFilterProp,Oo=An.optionLabelProp,pi=An.options,_o=An.children,ys=An.defaultActiveFirstOption,Zo=An.menuItemSelectedIcon,vi=An.virtual,ur=An.direction,_r=An.listHeight,so=_r===void 0?200:_r,to=An.listItemHeight,Fo=to===void 0?20:to,Ai=An.value,yo=An.defaultValue,jr=An.labelInValue,Sr=An.onChange,Pi=(0,Vt.Z)(An,Qr),wo=(0,Bn.ZP)(wn),Ci=Te(Qn),Xo=!!(!pi&&_o),ua=Pt.useMemo(function(){return er===void 0&&Qn==="combobox"?!1:er},[er,Qn]),xs=Pt.useMemo(function(){return At(si,Xo)},[JSON.stringify(si),Xo]),da=(0,jt.Z)("",{value:tr!==void 0?tr:Ei,postState:function(Qs){return Qs||""}}),Js=(0,ee.Z)(da,2),Lo=Js[0],Do=Js[1],As=mr(pi,_o,xs,io,Oo),hs=As.valueOptions,wr=As.labelOptions,Ne=As.options,ds=Pt.useCallback(function(Jo){var Qs=ze(Jo);return Qs.map(function(ws){var Hr,hl,js,Su,zu;if(In(ws))Hr=ws;else{var Xl;js=ws.key,hl=ws.label,Hr=(Xl=ws.value)!==null&&Xl!==void 0?Xl:js}var fr=hs.get(Hr);if(fr){var Za;if(hl===void 0&&(hl=fr==null?void 0:fr[Oo||xs.label]),js===void 0&&(js=(Za=fr==null?void 0:fr.key)!==null&&Za!==void 0?Za:Hr),Su=fr==null?void 0:fr.disabled,zu=fr==null?void 0:fr.title,0)var rl}return{label:hl,value:Hr,key:js,disabled:Su,title:zu}})},[xs,Oo,hs]),ia=(0,jt.Z)(yo,{value:Ai}),ll=(0,ee.Z)(ia,2),ul=ll[0],Ml=ll[1],ls=Pt.useMemo(function(){var Jo,Qs=ds(ul);return Qn==="combobox"&&Me((Jo=Qs[0])===null||Jo===void 0?void 0:Jo.value)?[]:Qs},[ul,ds,Qn]),Go=Wn(ls,hs),Ns=(0,ee.Z)(Go,2),Wo=Ns[0],Gs=Ns[1],wl=Pt.useMemo(function(){if(!Qn&&Wo.length===1){var Jo=Wo[0];if(Jo.value===null&&(Jo.label===null||Jo.label===void 0))return[]}return Wo.map(function(Qs){var ws;return(0,Ie.Z)((0,Ie.Z)({},Qs),{},{label:(ws=Qs.label)!==null&&ws!==void 0?ws:Qs.value})})},[Qn,Wo]),ho=Pt.useMemo(function(){return new Set(Wo.map(function(Jo){return Jo.value}))},[Wo]);Pt.useEffect(function(){if(Qn==="combobox"){var Jo,Qs=(Jo=Wo[0])===null||Jo===void 0?void 0:Jo.value;Do(_e(Qs)?String(Qs):"")}},[Wo]);var mo=Mr(function(Jo,Qs){var ws,Hr=Qs!=null?Qs:Jo;return ws={},(0,re.Z)(ws,xs.value,Jo),(0,re.Z)(ws,xs.label,Hr),ws}),Vi=Pt.useMemo(function(){if(Qn!=="tags")return Ne;var Jo=(0,ce.Z)(Ne),Qs=function(Hr){return hs.has(Hr)};return(0,ce.Z)(Wo).sort(function(ws,Hr){return ws.value<Hr.value?-1:1}).forEach(function(ws){var Hr=ws.value;Qs(Hr)||Jo.push(mo(Hr,ws.label))}),Jo},[mo,Ne,hs,Wo,Qn]),Po=gn(Vi,xs,Lo,ua,io),Bs=Pt.useMemo(function(){return Qn!=="tags"||!Lo||Po.some(function(Jo){return Jo[io||"value"]===Lo})||Po.some(function(Jo){return Jo[xs.value]===Lo})?Po:[mo(Lo)].concat((0,ce.Z)(Po))},[mo,io,Qn,Po,Lo,xs]),ha=Pt.useMemo(function(){return Pr?(0,ce.Z)(Bs).sort(function(Jo,Qs){return Pr(Jo,Qs)}):Bs},[Bs,Pr]),sa=Pt.useMemo(function(){return le(ha,{fieldNames:xs,childrenAsData:Xo})},[ha,xs,Xo]),Ro=function(Qs){var ws=ds(Qs);if(Ml(ws),Sr&&(ws.length!==Wo.length||ws.some(function(js,Su){var zu;return((zu=Wo[Su])===null||zu===void 0?void 0:zu.value)!==(js==null?void 0:js.value)}))){var Hr=jr?ws:ws.map(function(js){return js.value}),hl=ws.map(function(js){return xe(Gs(js.value))});Sr(Ci?Hr:Hr[0],Ci?hl:hl[0])}},Ws=Pt.useState(null),Na=(0,ee.Z)(Ws,2),Ol=Na[0],Va=Na[1],bs=Pt.useState(0),ai=(0,ee.Z)(bs,2),Ia=ai[0],Ac=ai[1],du=ys!==void 0?ys:Qn!=="combobox",Hh=Pt.useCallback(function(Jo,Qs){var ws=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Hr=ws.source,hl=Hr===void 0?"keyboard":Hr;Ac(Qs),qe&&Qn==="combobox"&&Jo!==null&&hl==="keyboard"&&Va(String(Jo))},[qe,Qn]),Zr=function(Qs,ws,Hr){var hl=function(){var Ya,bo=Gs(Qs);return[jr?{label:bo==null?void 0:bo[xs.label],value:Qs,key:(Ya=bo==null?void 0:bo.key)!==null&&Ya!==void 0?Ya:Qs}:Qs,xe(bo)]};if(ws&&rr){var js=hl(),Su=(0,ee.Z)(js,2),zu=Su[0],Xl=Su[1];rr(zu,Xl)}else if(!ws&&Gr&&Hr!=="clear"){var fr=hl(),Za=(0,ee.Z)(fr,2),rl=Za[0],El=Za[1];Gr(rl,El)}},zs=Mr(function(Jo,Qs){var ws,Hr=Ci?Qs.selected:!0;Hr?ws=Ci?[].concat((0,ce.Z)(Wo),[Jo]):[Jo]:ws=Wo.filter(function(hl){return hl.value!==Jo}),Ro(ws),Zr(Jo,Hr),Qn==="combobox"?Va(""):(!Te||Cr)&&(Do(""),Va(""))}),Is=function(Qs,ws){Ro(Qs);var Hr=ws.type,hl=ws.values;(Hr==="remove"||Hr==="clear")&&hl.forEach(function(js){Zr(js.value,!1,Hr)})},Es=function(Qs,ws){if(Do(Qs),Va(null),ws.source==="submit"){var Hr=(Qs||"").trim();if(Hr){var hl=Array.from(new Set([].concat((0,ce.Z)(ho),[Hr])));Ro(hl),Zr(Hr,!0),Do("")}return}ws.source!=="blur"&&(Qn==="combobox"&&Ro(Qs),On==null||On(Qs))},Ks=function(Qs){var ws=Qs;Qn!=="tags"&&(ws=Qs.map(function(hl){var js=wr.get(hl);return js==null?void 0:js.value}).filter(function(hl){return hl!==void 0}));var Hr=Array.from(new Set([].concat((0,ce.Z)(ho),(0,ce.Z)(ws))));Ro(Hr),Hr.forEach(function(hl){Zr(hl,!0)})},Au=Pt.useMemo(function(){var Jo=vi!==!1&&Lr!==!1;return(0,Ie.Z)((0,Ie.Z)({},As),{},{flattenOptions:sa,onActiveValue:Hh,defaultActiveFirstOption:du,onSelect:zs,menuItemSelectedIcon:Zo,rawValues:ho,fieldNames:xs,virtual:Jo,direction:ur,listHeight:so,listItemHeight:Fo,childrenAsData:Xo})},[As,sa,Hh,du,zs,Zo,ho,xs,vi,Lr,so,Fo,Xo]);return Pt.createElement(uo.Provider,{value:Au},Pt.createElement(nn,(0,Mt.Z)({},Pi,{id:wo,prefixCls:Di,ref:Le,omitDomProps:Dr,mode:Qn,displayValues:wl,onDisplayValuesChange:Is,direction:ur,searchValue:Lo,onSearch:Es,autoClearSearchValue:Cr,onSearchSplit:Ks,dropdownMatchSelectWidth:Lr,OptionList:Os,emptyOptions:!sa.length,activeValue:Ol,activeDescendantId:"".concat(wo,"_list_").concat(Ia)})))}),Oe=Tn;Oe.Option=Tr,Oe.OptGroup=Jr;var qn=Oe,xi=qn},9296:function(hi,Cn,Ft){"use strict";Ft.r(Cn),Ft.d(Cn,{ResizableTextArea:function(){return Pe},default:function(){return Me}});var Mt=Ft(96663),ce=Ft(44127),re=Ft(90493),Ie=Ft(20135),ee=Ft(72071),Vt=Ft(6620),Nt=Ft(19127),jt=Ft(92310),te=Ft.n(jt),Pt=Ft(93681),oe=Ft(5643),Kt=Ft(18929),$t=Ft(59301),Ct=Ft(29301),et=Ft(34280),tt=Ft(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"],ht={},dt;function xt(We){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ye=We.getAttribute("id")||We.getAttribute("data-reactid")||We.getAttribute("name");if(Re&&ht[ye])return ht[ye];var ne=window.getComputedStyle(We),Ce=ne.getPropertyValue("box-sizing")||ne.getPropertyValue("-moz-box-sizing")||ne.getPropertyValue("-webkit-box-sizing"),bn=parseFloat(ne.getPropertyValue("padding-bottom"))+parseFloat(ne.getPropertyValue("padding-top")),Ln=parseFloat(ne.getPropertyValue("border-bottom-width"))+parseFloat(ne.getPropertyValue("border-top-width")),Ze=rt.map(function(Vn){return"".concat(Vn,":").concat(ne.getPropertyValue(Vn))}).join(";"),Mn={sizingStyle:Ze,paddingSize:bn,borderSize:Ln,boxSizing:Ce};return Re&&ye&&(ht[ye]=Mn),Mn}function It(We){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;dt||(dt=document.createElement("textarea"),dt.setAttribute("tab-index","-1"),dt.setAttribute("aria-hidden","true"),document.body.appendChild(dt)),We.getAttribute("wrap")?dt.setAttribute("wrap",We.getAttribute("wrap")):dt.removeAttribute("wrap");var Ce=xt(We,Re),bn=Ce.paddingSize,Ln=Ce.borderSize,Ze=Ce.boxSizing,Mn=Ce.sizingStyle;dt.setAttribute("style","".concat(Mn,";").concat(lt)),dt.value=We.value||We.placeholder||"";var Vn=void 0,gi=void 0,Kn,Bi=dt.scrollHeight;if(Ze==="border-box"?Bi+=Ln:Ze==="content-box"&&(Bi-=bn),ye!==null||ne!==null){dt.value=" ";var en=dt.scrollHeight-bn;ye!==null&&(Vn=en*ye,Ze==="border-box"&&(Vn=Vn+bn+Ln),Bi=Math.max(Vn,Bi)),ne!==null&&(gi=en*ne,Ze==="border-box"&&(gi=gi+bn+Ln),Kn=Bi>gi?"":"hidden",Bi=Math.min(gi,Bi))}var Li={height:Bi,overflowY:Kn,resize:"none"};return Vn&&(Li.minHeight=Vn),gi&&(Li.maxHeight=gi),Li}var Ut=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Gt=0,se=1,ue=2,Ae=$t.forwardRef(function(We,Re){var ye=We,ne=ye.prefixCls,Ce=ye.onPressEnter,bn=ye.defaultValue,Ln=ye.value,Ze=ye.autoSize,Mn=ye.onResize,Vn=ye.className,gi=ye.style,Kn=ye.disabled,Bi=ye.onChange,en=ye.onInternalAutoSize,Li=(0,Vt.Z)(ye,Ut),Oi=(0,Kt.Z)(bn,{value:Ln,postState:function(Jr){return Jr!=null?Jr:""}}),Lt=(0,ee.Z)(Oi,2),Ot=Lt[0],mt=Lt[1],ft=function(Jr){mt(Jr.target.value),Bi==null||Bi(Jr)},pt=$t.useRef();$t.useImperativeHandle(Re,function(){return{textArea:pt.current}});var At=$t.useMemo(function(){return Ze&&(0,Ie.Z)(Ze)==="object"?[Ze.minRows,Ze.maxRows]:[]},[Ze]),le=(0,ee.Z)(At,2),xe=le[0],ae=le[1],ve=!!Ze,Ue=function(){try{if(document.activeElement===pt.current){var Jr=pt.current,$r=Jr.selectionStart,Tr=Jr.selectionEnd,Wr=Jr.scrollTop;pt.current.setSelectionRange($r,Tr),pt.current.scrollTop=Wr}}catch(oo){}},Te=$t.useState(ue),ke=(0,ee.Z)(Te,2),nn=ke[0],Wn=ke[1],an=$t.useState(),gn=(0,ee.Z)(an,2),Bn=gn[0],ti=gn[1],Rn=function(){Wn(Gt)};(0,et.Z)(function(){ve&&Rn()},[Ln,xe,ae,ve]),(0,et.Z)(function(){if(nn===Gt)Wn(se);else if(nn===se){var ro=It(pt.current,!1,xe,ae);Wn(ue),ti(ro)}else Ue()},[nn]);var Ri=$t.useRef(),dr=function(){tt.Z.cancel(Ri.current)},Ji=function(Jr){nn===ue&&(Mn==null||Mn(Jr),Ze&&(dr(),Ri.current=(0,tt.Z)(function(){Rn()})))};$t.useEffect(function(){return dr},[]);var mr=ve?Bn:null,Mr=(0,ce.Z)((0,ce.Z)({},gi),mr);return(nn===Gt||nn===se)&&(Mr.overflowY="hidden",Mr.overflowX="hidden"),$t.createElement(Ct.Z,{onResize:Ji,disabled:!(Ze||Mn)},$t.createElement("textarea",(0,Mt.Z)({},Li,{ref:pt,style:Mr,className:te()(ne,Vn,(0,re.Z)({},"".concat(ne,"-disabled"),Kn)),disabled:Kn,value:Ot,onChange:ft})))}),Pe=Ae,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,Nt.Z)(We||"").slice(0,Re).join("")}function Wt(We,Re,ye,ne){var Ce=ye;return We?Ce=ze(ye,ne):(0,Nt.Z)(Re||"").length<ye.length&&(0,Nt.Z)(ye||"").length>ne&&(Ce=Re),Ce}var Ge=$t.forwardRef(function(We,Re){var ye,ne=We.defaultValue,Ce=We.value,bn=We.onFocus,Ln=We.onBlur,Ze=We.onChange,Mn=We.allowClear,Vn=We.maxLength,gi=We.onCompositionStart,Kn=We.onCompositionEnd,Bi=We.suffix,en=We.prefixCls,Li=en===void 0?"rc-textarea":en,Oi=We.classes,Lt=We.showCount,Ot=We.className,mt=We.style,ft=We.disabled,pt=We.hidden,At=We.classNames,le=We.styles,xe=We.onResize,ae=(0,Vt.Z)(We,qt),ve=(0,Kt.Z)(ne,{value:Ce,defaultValue:ne}),Ue=(0,ee.Z)(ve,2),Te=Ue[0],ke=Ue[1],nn=(0,$t.useRef)(null),Wn=$t.useState(!1),an=(0,ee.Z)(Wn,2),gn=an[0],Bn=an[1],ti=$t.useState(!1),Rn=(0,ee.Z)(ti,2),Ri=Rn[0],dr=Rn[1],Ji=$t.useRef(),mr=$t.useRef(0),Mr=$t.useState(null),ro=(0,ee.Z)(Mr,2),Jr=ro[0],$r=ro[1],Tr=function(){var In;(In=nn.current)===null||In===void 0||In.textArea.focus()};(0,$t.useImperativeHandle)(Re,function(){return{resizableTextArea:nn.current,focus:Tr,blur:function(){var In;(In=nn.current)===null||In===void 0||In.textArea.blur()}}}),(0,$t.useEffect)(function(){Bn(function(Dr){return!ft&&Dr})},[ft]);var Wr=Number(Vn)>0,oo=function(In){dr(!0),Ji.current=Te,mr.current=In.currentTarget.selectionStart,gi==null||gi(In)},Uo=function(In){dr(!1);var Tn=In.currentTarget.value;if(Wr){var Oe,qn=mr.current>=Vn+1||mr.current===((Oe=Ji.current)===null||Oe===void 0?void 0:Oe.length);Tn=Wt(qn,Ji.current,Tn,Vn)}Tn!==Te&&(ke(Tn),(0,oe.rJ)(In.currentTarget,In,Ze,Tn)),Kn==null||Kn(In)},is=function(In){var Tn=In.target.value;if(!Ri&&Wr){var Oe=In.target.selectionStart>=Vn+1||In.target.selectionStart===Tn.length||!In.target.selectionStart;Tn=Wt(Oe,Te,Tn,Vn)}ke(Tn),(0,oe.rJ)(In.currentTarget,In,Ze,Tn)},uo=function(In){var Tn=ae.onPressEnter,Oe=ae.onKeyDown;In.key==="Enter"&&Tn&&Tn(In),Oe==null||Oe(In)},Ss=function(In){Bn(!0),bn==null||bn(In)},To=function(In){Bn(!1),Ln==null||Ln(In)},Xt=function(In){var Tn;ke(""),Tr(),(0,oe.rJ)((Tn=nn.current)===null||Tn===void 0?void 0:Tn.textArea,In,Ze)},ei=(0,oe.D7)(Te);!Ri&&Wr&&Ce==null&&(ei=ze(ei,Vn));var Cs=Bi,Os;if(Lt){var ma=(0,Nt.Z)(ei).length;(0,Ie.Z)(Lt)==="object"?Os=Lt.formatter({value:ei,count:ma,maxLength:Vn}):Os="".concat(ma).concat(Wr?" / ".concat(Vn):""),Cs=$t.createElement($t.Fragment,null,Cs,$t.createElement("span",{className:te()("".concat(Li,"-data-count"),At==null?void 0:At.count),style:le==null?void 0:le.count},Os))}var va=function(In){var Tn;xe==null||xe(In),(Tn=nn.current)!==null&&Tn!==void 0&&Tn.textArea.style.height&&$r(!0)},Ys=!ae.autoSize&&!Lt&&!Mn,Qr=$t.createElement(Pt.BaseInput,{value:ei,allowClear:Mn,handleReset:Xt,suffix:Cs,prefixCls:Li,classes:{affixWrapper:te()(Oi==null?void 0:Oi.affixWrapper,(ye={},(0,re.Z)(ye,"".concat(Li,"-show-count"),Lt),(0,re.Z)(ye,"".concat(Li,"-textarea-allow-clear"),Mn),ye))},disabled:ft,focused:gn,className:Ot,style:(0,ce.Z)((0,ce.Z)({},mt),Jr&&!Ys?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Os=="string"?Os:void 0}},hidden:pt,inputElement:$t.createElement(Pe,(0,Mt.Z)({},ae,{onKeyDown:uo,onChange:is,onFocus:Ss,onBlur:To,onCompositionStart:oo,onCompositionEnd:Uo,className:At==null?void 0:At.textarea,style:(0,ce.Z)((0,ce.Z)({},le==null?void 0:le.textarea),{},{resize:mt==null?void 0:mt.resize}),disabled:ft,prefixCls:Li,onResize:va,ref:nn}))});return Qr}),_e=Ge,Me=_e},39417:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return se}});var Mt=Ft(96663),ce=Ft(90493),re=Ft(6620),Ie=Ft(44127),ee=Ft(52884),Vt=Ft(95727),Nt=Ft(89866),jt=Ft(65711),te=Ft(85745),Pt=Ft(92310),oe=Ft.n(Pt),Kt=Ft(26112),$t=Ft(59301),Ct=Ft(39378),et=function(Ae){for(var Pe=Ae.prefixCls,qt=Ae.level,ze=Ae.isStart,Wt=Ae.isEnd,Ge="".concat(Pe,"-indent-unit"),_e=[],Me=0;Me<qt;Me+=1){var We;_e.push($t.createElement("span",{key:Me,className:oe()(Ge,(We={},(0,ce.Z)(We,"".concat(Ge,"-start"),ze[Me]),(0,ce.Z)(We,"".concat(Ge,"-end"),Wt[Me]),We))}))}return $t.createElement("span",{"aria-hidden":"true",className:"".concat(Pe,"-indent")},_e)},tt=$t.memo(et),lt=Ft(67841),rt=Ft(71430),ht=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],dt="open",xt="close",It="---",Ut=function(ue){(0,jt.Z)(Pe,ue);var Ae=(0,te.Z)(Pe);function Pe(){var qt;(0,ee.Z)(this,Pe);for(var ze=arguments.length,Wt=new Array(ze),Ge=0;Ge<ze;Ge++)Wt[Ge]=arguments[Ge];return qt=Ae.call.apply(Ae,[this].concat(Wt)),qt.state={dragNodeHighlight:!1},qt.selectHandle=void 0,qt.cacheIndent=void 0,qt.onSelectorClick=function(_e){var Me=qt.props.context.onNodeClick;Me(_e,(0,rt.F)(qt.props)),qt.isSelectable()?qt.onSelect(_e):qt.onCheck(_e)},qt.onSelectorDoubleClick=function(_e){var Me=qt.props.context.onNodeDoubleClick;Me(_e,(0,rt.F)(qt.props))},qt.onSelect=function(_e){if(!qt.isDisabled()){var Me=qt.props.context.onNodeSelect;Me(_e,(0,rt.F)(qt.props))}},qt.onCheck=function(_e){if(!qt.isDisabled()){var Me=qt.props,We=Me.disableCheckbox,Re=Me.checked,ye=qt.props.context.onNodeCheck;if(!(!qt.isCheckable()||We)){var ne=!Re;ye(_e,(0,rt.F)(qt.props),ne)}}},qt.onMouseEnter=function(_e){var Me=qt.props.context.onNodeMouseEnter;Me(_e,(0,rt.F)(qt.props))},qt.onMouseLeave=function(_e){var Me=qt.props.context.onNodeMouseLeave;Me(_e,(0,rt.F)(qt.props))},qt.onContextMenu=function(_e){var Me=qt.props.context.onNodeContextMenu;Me(_e,(0,rt.F)(qt.props))},qt.onDragStart=function(_e){var Me=qt.props.context.onNodeDragStart;_e.stopPropagation(),qt.setState({dragNodeHighlight:!0}),Me(_e,(0,Nt.Z)(qt));try{_e.dataTransfer.setData("text/plain","")}catch(We){}},qt.onDragEnter=function(_e){var Me=qt.props.context.onNodeDragEnter;_e.preventDefault(),_e.stopPropagation(),Me(_e,(0,Nt.Z)(qt))},qt.onDragOver=function(_e){var Me=qt.props.context.onNodeDragOver;_e.preventDefault(),_e.stopPropagation(),Me(_e,(0,Nt.Z)(qt))},qt.onDragLeave=function(_e){var Me=qt.props.context.onNodeDragLeave;_e.stopPropagation(),Me(_e,(0,Nt.Z)(qt))},qt.onDragEnd=function(_e){var Me=qt.props.context.onNodeDragEnd;_e.stopPropagation(),qt.setState({dragNodeHighlight:!1}),Me(_e,(0,Nt.Z)(qt))},qt.onDrop=function(_e){var Me=qt.props.context.onNodeDrop;_e.preventDefault(),_e.stopPropagation(),qt.setState({dragNodeHighlight:!1}),Me(_e,(0,Nt.Z)(qt))},qt.onExpand=function(_e){var Me=qt.props,We=Me.loading,Re=Me.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?dt:xt},qt.hasChildren=function(){var _e=qt.props.eventKey,Me=qt.props.context.keyEntities,We=(0,lt.Z)(Me,_e)||{},Re=We.children;return!!(Re||[]).length},qt.isLeaf=function(){var _e=qt.props,Me=_e.isLeaf,We=_e.loaded,Re=qt.props.context.loadData,ye=qt.hasChildren();return Me===!1?!1:Me||!Re&&!ye||Re&&We&&!ye},qt.isDisabled=function(){var _e=qt.props.disabled,Me=qt.props.context.disabled;return!!(Me||_e)},qt.isCheckable=function(){var _e=qt.props.checkable,Me=qt.props.context.checkable;return!Me||_e===!1?!1:Me},qt.syncLoadData=function(_e){var Me=_e.expanded,We=_e.loading,Re=_e.loaded,ye=qt.props.context,ne=ye.loadData,Ce=ye.onNodeLoad;We||ne&&Me&&!qt.isLeaf()&&!qt.hasChildren()&&!Re&&Ce((0,rt.F)(qt.props))},qt.isDraggable=function(){var _e=qt.props,Me=_e.data,We=_e.context.draggable;return!!(We&&(!We.nodeDraggable||We.nodeDraggable(Me)))},qt.renderDragHandler=function(){var _e=qt.props.context,Me=_e.draggable,We=_e.prefixCls;return Me!=null&&Me.icon?$t.createElement("span",{className:"".concat(We,"-draggable-icon")},Me.icon):null},qt.renderSwitcherIconDom=function(_e){var Me=qt.props.switcherIcon,We=qt.props.context.switcherIcon,Re=Me||We;return typeof Re=="function"?Re((0,Ie.Z)((0,Ie.Z)({},qt.props),{},{isLeaf:_e})):Re},qt.renderSwitcher=function(){var _e=qt.props.expanded,Me=qt.props.context.prefixCls;if(qt.isLeaf()){var We=qt.renderSwitcherIconDom(!0);return We!==!1?$t.createElement("span",{className:oe()("".concat(Me,"-switcher"),"".concat(Me,"-switcher-noop"))},We):null}var Re=oe()("".concat(Me,"-switcher"),"".concat(Me,"-switcher_").concat(_e?dt:xt)),ye=qt.renderSwitcherIconDom(!1);return ye!==!1?$t.createElement("span",{onClick:qt.onExpand,className:Re},ye):null},qt.renderCheckbox=function(){var _e=qt.props,Me=_e.checked,We=_e.halfChecked,Re=_e.disableCheckbox,ye=qt.props.context.prefixCls,ne=qt.isDisabled(),Ce=qt.isCheckable();if(!Ce)return null;var bn=typeof Ce!="boolean"?Ce:null;return $t.createElement("span",{className:oe()("".concat(ye,"-checkbox"),Me&&"".concat(ye,"-checkbox-checked"),!Me&&We&&"".concat(ye,"-checkbox-indeterminate"),(ne||Re)&&"".concat(ye,"-checkbox-disabled")),onClick:qt.onCheck},bn)},qt.renderIcon=function(){var _e=qt.props.loading,Me=qt.props.context.prefixCls;return $t.createElement("span",{className:oe()("".concat(Me,"-iconEle"),"".concat(Me,"-icon__").concat(qt.getNodeState()||"docu"),_e&&"".concat(Me,"-icon_loading"))})},qt.renderSelector=function(){var _e=qt.state.dragNodeHighlight,Me=qt.props,We=Me.title,Re=We===void 0?It:We,ye=Me.selected,ne=Me.icon,Ce=Me.loading,bn=Me.data,Ln=qt.props.context,Ze=Ln.prefixCls,Mn=Ln.showIcon,Vn=Ln.icon,gi=Ln.loadData,Kn=Ln.titleRender,Bi=qt.isDisabled(),en="".concat(Ze,"-node-content-wrapper"),Li;if(Mn){var Oi=ne||Vn;Li=Oi?$t.createElement("span",{className:oe()("".concat(Ze,"-iconEle"),"".concat(Ze,"-icon__customize"))},typeof Oi=="function"?Oi(qt.props):Oi):qt.renderIcon()}else gi&&Ce&&(Li=qt.renderIcon());var Lt;typeof Re=="function"?Lt=Re(bn):Kn?Lt=Kn(bn):Lt=Re;var Ot=$t.createElement("span",{className:"".concat(Ze,"-title")},Lt);return $t.createElement("span",{ref:qt.setSelectHandle,title:typeof Re=="string"?Re:"",className:oe()("".concat(en),"".concat(en,"-").concat(qt.getNodeState()||"normal"),!Bi&&(ye||_e)&&"".concat(Ze,"-node-selected")),onMouseEnter:qt.onMouseEnter,onMouseLeave:qt.onMouseLeave,onContextMenu:qt.onContextMenu,onClick:qt.onSelectorClick,onDoubleClick:qt.onSelectorDoubleClick},Li,Ot,qt.renderDropIndicator())},qt.renderDropIndicator=function(){var _e=qt.props,Me=_e.disabled,We=_e.eventKey,Re=qt.props.context,ye=Re.draggable,ne=Re.dropLevelOffset,Ce=Re.dropPosition,bn=Re.prefixCls,Ln=Re.indent,Ze=Re.dropIndicatorRender,Mn=Re.dragOverNodeKey,Vn=Re.direction,gi=!!ye,Kn=!Me&&gi&&Mn===We,Bi=Ln!=null?Ln:qt.cacheIndent;return qt.cacheIndent=Ln,Kn?Ze({dropPosition:Ce,dropLevelOffset:ne,indent:Bi,prefixCls:bn,direction:Vn}):null},qt}return(0,Vt.Z)(Pe,[{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,Wt=this.props.context.selectable;return typeof ze=="boolean"?ze:Wt}},{key:"render",value:function(){var ze,Wt=this.props,Ge=Wt.eventKey,_e=Wt.className,Me=Wt.style,We=Wt.dragOver,Re=Wt.dragOverGapTop,ye=Wt.dragOverGapBottom,ne=Wt.isLeaf,Ce=Wt.isStart,bn=Wt.isEnd,Ln=Wt.expanded,Ze=Wt.selected,Mn=Wt.checked,Vn=Wt.halfChecked,gi=Wt.loading,Kn=Wt.domRef,Bi=Wt.active,en=Wt.data,Li=Wt.onMouseMove,Oi=Wt.selectable,Lt=(0,re.Z)(Wt,ht),Ot=this.props.context,mt=Ot.prefixCls,ft=Ot.filterTreeNode,pt=Ot.keyEntities,At=Ot.dropContainerKey,le=Ot.dropTargetKey,xe=Ot.draggingNodeKey,ae=this.isDisabled(),ve=(0,Kt.Z)(Lt,{aria:!0,data:!0}),Ue=(0,lt.Z)(pt,Ge)||{},Te=Ue.level,ke=bn[bn.length-1],nn=this.isDraggable(),Wn=!ae&&nn,an=xe===Ge,gn=Oi!==void 0?{"aria-selected":!!Oi}:void 0;return $t.createElement("div",(0,Mt.Z)({ref:Kn,className:oe()(_e,"".concat(mt,"-treenode"),(ze={},(0,ce.Z)(ze,"".concat(mt,"-treenode-disabled"),ae),(0,ce.Z)(ze,"".concat(mt,"-treenode-switcher-").concat(Ln?"open":"close"),!ne),(0,ce.Z)(ze,"".concat(mt,"-treenode-checkbox-checked"),Mn),(0,ce.Z)(ze,"".concat(mt,"-treenode-checkbox-indeterminate"),Vn),(0,ce.Z)(ze,"".concat(mt,"-treenode-selected"),Ze),(0,ce.Z)(ze,"".concat(mt,"-treenode-loading"),gi),(0,ce.Z)(ze,"".concat(mt,"-treenode-active"),Bi),(0,ce.Z)(ze,"".concat(mt,"-treenode-leaf-last"),ke),(0,ce.Z)(ze,"".concat(mt,"-treenode-draggable"),nn),(0,ce.Z)(ze,"dragging",an),(0,ce.Z)(ze,"drop-target",le===Ge),(0,ce.Z)(ze,"drop-container",At===Ge),(0,ce.Z)(ze,"drag-over",!ae&&We),(0,ce.Z)(ze,"drag-over-gap-top",!ae&&Re),(0,ce.Z)(ze,"drag-over-gap-bottom",!ae&&ye),(0,ce.Z)(ze,"filter-node",ft&&ft((0,rt.F)(this.props))),ze)),style:Me,draggable:Wn,"aria-grabbed":an,onDragStart:Wn?this.onDragStart:void 0,onDragEnter:nn?this.onDragEnter:void 0,onDragOver:nn?this.onDragOver:void 0,onDragLeave:nn?this.onDragLeave:void 0,onDrop:nn?this.onDrop:void 0,onDragEnd:nn?this.onDragEnd:void 0,onMouseMove:Li},gn,ve),$t.createElement(tt,{prefixCls:mt,level:Te,isStart:Ce,isEnd:bn}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Pe}($t.Component),Gt=function(Ae){return $t.createElement(Ct.k.Consumer,null,function(Pe){return $t.createElement(Ut,(0,Mt.Z)({},Ae,{context:Pe}))})};Gt.displayName="TreeNode",Gt.isTreeNode=1;var se=Gt},39378:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{k:function(){return ce}});var Mt=Ft(59301),ce=Mt.createContext(null)},43858:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{O:function(){return se.Z},Z:function(){return Ot}});var Mt=Ft(96663),ce=Ft(90493),re=Ft(20135),Ie=Ft(44127),ee=Ft(19127),Vt=Ft(52884),Nt=Ft(95727),jt=Ft(89866),te=Ft(65711),Pt=Ft(85745),oe=Ft(92310),Kt=Ft.n(oe),$t=Ft(10228),Ct=Ft(26112),et=Ft(48736),tt=Ft(59301),lt=Ft(39378);function rt(mt){var ft=mt.dropPosition,pt=mt.dropLevelOffset,At=mt.indent,le={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ft){case-1:le.top=0,le.left=-pt*At;break;case 1:le.bottom=0,le.left=-pt*At;break;case 0:le.bottom=0,le.left=At;break}return tt.createElement("div",{style:le})}function ht(mt){if(mt==null)throw new TypeError("Cannot destructure "+mt)}var dt=Ft(72071),xt=Ft(6620),It=Ft(34280),Ut=Ft(24916),Gt=Ft(77900),se=Ft(39417);function ue(mt,ft){var pt=tt.useState(!1),At=(0,dt.Z)(pt,2),le=At[0],xe=At[1];tt.useLayoutEffect(function(){if(le)return mt(),function(){ft()}},[le]),tt.useLayoutEffect(function(){return xe(!0),function(){xe(!1)}},[])}var Ae=Ft(71430),Pe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],qt=function(ft,pt){var At=ft.className,le=ft.style,xe=ft.motion,ae=ft.motionNodes,ve=ft.motionType,Ue=ft.onMotionStart,Te=ft.onMotionEnd,ke=ft.active,nn=ft.treeNodeRequiredProps,Wn=(0,xt.Z)(ft,Pe),an=tt.useState(!0),gn=(0,dt.Z)(an,2),Bn=gn[0],ti=gn[1],Rn=tt.useContext(lt.k),Ri=Rn.prefixCls,dr=ae&&ve!=="hide";(0,It.Z)(function(){ae&&dr!==Bn&&ti(dr)},[ae]);var Ji=function(){ae&&Ue()},mr=tt.useRef(!1),Mr=function(){ae&&!mr.current&&(mr.current=!0,Te())};ue(Ji,Mr);var ro=function($r){dr===$r&&Mr()};return ae?tt.createElement(Gt.default,(0,Mt.Z)({ref:pt,visible:Bn},xe,{motionAppear:ve==="show",onVisibleChanged:ro}),function(Jr,$r){var Tr=Jr.className,Wr=Jr.style;return tt.createElement("div",{ref:$r,className:Kt()("".concat(Ri,"-treenode-motion"),Tr),style:Wr},ae.map(function(oo){var Uo=(0,Mt.Z)({},(ht(oo.data),oo.data)),is=oo.title,uo=oo.key,Ss=oo.isStart,To=oo.isEnd;delete Uo.children;var Xt=(0,Ae.H8)(uo,nn);return tt.createElement(se.Z,(0,Mt.Z)({},Uo,Xt,{title:is,active:ke,data:oo.data,key:uo,isStart:Ss,isEnd:To}))}))}):tt.createElement(se.Z,(0,Mt.Z)({domRef:pt,className:At,style:le},Wn,{active:ke}))};qt.displayName="MotionTreeNode";var ze=tt.forwardRef(qt),Wt=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 le(xe,ae){var ve=new Map;xe.forEach(function(Te){ve.set(Te,!0)});var Ue=ae.filter(function(Te){return!ve.has(Te)});return Ue.length===1?Ue[0]:null}return pt<At?{add:!0,key:le(mt,ft)}:{add:!1,key:le(ft,mt)}}function _e(mt,ft,pt){var At=mt.findIndex(function(ve){return ve.key===pt}),le=mt[At+1],xe=ft.findIndex(function(ve){return ve.key===pt});if(le){var ae=ft.findIndex(function(ve){return ve.key===le.key});return ft.slice(xe+1,ae)}return ft.slice(xe+1)}var Me=["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(){},ye="RC_TREE_MOTION_".concat(Math.random()),ne={key:ye},Ce={key:ye,level:0,index:0,pos:"0",node:ne,nodes:[ne]},bn={parent:null,children:[],pos:Ce.pos,data:ne,title:null,key:ye,isStart:[],isEnd:[]};function Ln(mt,ft,pt,At){return ft===!1||!pt?mt:mt.slice(0,Math.ceil(pt/At)+1)}function Ze(mt){var ft=mt.key,pt=mt.pos;return(0,Ae.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 Vn=tt.forwardRef(function(mt,ft){var pt=mt.prefixCls,At=mt.data,le=mt.selectable,xe=mt.checkable,ae=mt.expandedKeys,ve=mt.selectedKeys,Ue=mt.checkedKeys,Te=mt.loadedKeys,ke=mt.loadingKeys,nn=mt.halfCheckedKeys,Wn=mt.keyEntities,an=mt.disabled,gn=mt.dragging,Bn=mt.dragOverNodeKey,ti=mt.dropPosition,Rn=mt.motion,Ri=mt.height,dr=mt.itemHeight,Ji=mt.virtual,mr=mt.focusable,Mr=mt.activeItem,ro=mt.focused,Jr=mt.tabIndex,$r=mt.onKeyDown,Tr=mt.onFocus,Wr=mt.onBlur,oo=mt.onActiveChange,Uo=mt.onListChangeStart,is=mt.onListChangeEnd,uo=(0,xt.Z)(mt,Me),Ss=tt.useRef(null),To=tt.useRef(null);tt.useImperativeHandle(ft,function(){return{scrollTo:function(ui){Ss.current.scrollTo(ui)},getIndentWidth:function(){return To.current.offsetWidth}}});var Xt=tt.useState(ae),ei=(0,dt.Z)(Xt,2),Cs=ei[0],Os=ei[1],ma=tt.useState(At),va=(0,dt.Z)(ma,2),Ys=va[0],Qr=va[1],Dr=tt.useState(At),In=(0,dt.Z)(Dr,2),Tn=In[0],Oe=In[1],qn=tt.useState([]),xi=(0,dt.Z)(qn,2),An=xi[0],Le=xi[1],wn=tt.useState(null),Qn=(0,dt.Z)(wn,2),Si=Qn[0],Di=Qn[1],qe=tt.useRef(At);qe.current=At;function si(){var On=qe.current;Qr(On),Oe(On),Le([]),Di(null),is()}(0,It.Z)(function(){Os(ae);var On=Ge(Cs,ae);if(On.key!==null)if(On.add){var ui=Ys.findIndex(function(er){var Pr=er.key;return Pr===On.key}),Cr=Ln(_e(Ys,At,On.key),Ji,Ri,dr),rr=Ys.slice();rr.splice(ui+1,0,bn),Oe(rr),Le(Cr),Di("show")}else{var Gr=At.findIndex(function(er){var Pr=er.key;return Pr===On.key}),or=Ln(_e(At,Ys,On.key),Ji,Ri,dr),Lr=At.slice();Lr.splice(Gr+1,0,bn),Oe(Lr),Le(or),Di("hide")}else Ys!==At&&(Qr(At),Oe(At))},[ae,At]),tt.useEffect(function(){gn||si()},[gn]);var Ei=Rn?Tn:At,tr={expandedKeys:ae,selectedKeys:ve,loadedKeys:Te,loadingKeys:ke,checkedKeys:Ue,halfCheckedKeys:nn,dragOverNodeKey:Bn,dropPosition:ti,keyEntities:Wn};return tt.createElement(tt.Fragment,null,ro&&Mr&&tt.createElement("span",{style:We,"aria-live":"assertive"},Mn(Mr)),tt.createElement("div",null,tt.createElement("input",{style:We,disabled:mr===!1||an,tabIndex:mr!==!1?Jr:null,onKeyDown:$r,onFocus:Tr,onBlur:Wr,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:To,className:"".concat(pt,"-indent-unit")}))),tt.createElement(Ut.Z,(0,Mt.Z)({},uo,{data:Ei,itemKey:Ze,height:Ri,fullHeight:!1,virtual:Ji,itemHeight:dr,prefixCls:"".concat(pt,"-list"),ref:Ss,onVisibleChange:function(ui,Cr){var rr=new Set(ui),Gr=Cr.filter(function(or){return!rr.has(or)});Gr.some(function(or){return Ze(or)===ye})&&si()}}),function(On){var ui=On.pos,Cr=(0,Mt.Z)({},(ht(On.data),On.data)),rr=On.title,Gr=On.key,or=On.isStart,Lr=On.isEnd,er=(0,Ae.km)(Gr,ui);delete Cr.key,delete Cr.children;var Pr=(0,Ae.H8)(er,tr);return tt.createElement(Wt,(0,Mt.Z)({},Cr,Pr,{title:rr,active:!!Mr&&Gr===Mr.key,pos:ui,data:On.data,isStart:or,isEnd:Lr,motion:Rn,motionNodes:Gr===ye?An:null,motionType:Si,onMotionStart:Uo,onMotionEnd:si,treeNodeRequiredProps:tr,onMouseMove:function(){oo(null)}}))}))});Vn.displayName="NodeList";var gi=Vn,Kn=Ft(35654),Bi=Ft(90782),en=Ft(67841),Li=10,Oi=function(mt){(0,te.Z)(pt,mt);var ft=(0,Pt.Z)(pt);function pt(){var At;(0,Vt.Z)(this,pt);for(var le=arguments.length,xe=new Array(le),ae=0;ae<le;ae++)xe[ae]=arguments[ae];return At=ft.call.apply(ft,[this].concat(xe)),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,Ae.w$)()},At.dragStartMousePosition=null,At.dragNode=void 0,At.currentMouseOverDroppableNodeKey=null,At.listRef=tt.createRef(),At.onNodeDragStart=function(ve,Ue){var Te=At.state,ke=Te.expandedKeys,nn=Te.keyEntities,Wn=At.props.onDragStart,an=Ue.props.eventKey;At.dragNode=Ue,At.dragStartMousePosition={x:ve.clientX,y:ve.clientY};var gn=(0,Kn._5)(ke,an);At.setState({draggingNodeKey:an,dragChildrenKeys:(0,Kn.wA)(an,nn),indent:At.listRef.current.getIndentWidth()}),At.setExpandedKeys(gn),window.addEventListener("dragend",At.onWindowDragEnd),Wn==null||Wn({event:ve,node:(0,Ae.F)(Ue.props)})},At.onNodeDragEnter=function(ve,Ue){var Te=At.state,ke=Te.expandedKeys,nn=Te.keyEntities,Wn=Te.dragChildrenKeys,an=Te.flattenNodes,gn=Te.indent,Bn=At.props,ti=Bn.onDragEnter,Rn=Bn.onExpand,Ri=Bn.allowDrop,dr=Bn.direction,Ji=Ue.props,mr=Ji.pos,Mr=Ji.eventKey,ro=(0,jt.Z)(At),Jr=ro.dragNode;if(At.currentMouseOverDroppableNodeKey!==Mr&&(At.currentMouseOverDroppableNodeKey=Mr),!Jr){At.resetDragState();return}var $r=(0,Kn.OM)(ve,Jr,Ue,gn,At.dragStartMousePosition,Ri,an,nn,ke,dr),Tr=$r.dropPosition,Wr=$r.dropLevelOffset,oo=$r.dropTargetKey,Uo=$r.dropContainerKey,is=$r.dropTargetPos,uo=$r.dropAllowed,Ss=$r.dragOverNodeKey;if(Wn.indexOf(oo)!==-1||!uo){At.resetDragState();return}if(At.delayedDragEnterLogic||(At.delayedDragEnterLogic={}),Object.keys(At.delayedDragEnterLogic).forEach(function(To){clearTimeout(At.delayedDragEnterLogic[To])}),Jr.props.eventKey!==Ue.props.eventKey&&(ve.persist(),At.delayedDragEnterLogic[mr]=window.setTimeout(function(){if(At.state.draggingNodeKey!==null){var To=(0,ee.Z)(ke),Xt=(0,en.Z)(nn,Ue.props.eventKey);Xt&&(Xt.children||[]).length&&(To=(0,Kn.L0)(ke,Ue.props.eventKey)),"expandedKeys"in At.props||At.setExpandedKeys(To),Rn==null||Rn(To,{node:(0,Ae.F)(Ue.props),expanded:!0,nativeEvent:ve.nativeEvent})}},800)),Jr.props.eventKey===oo&&Wr===0){At.resetDragState();return}At.setState({dragOverNodeKey:Ss,dropPosition:Tr,dropLevelOffset:Wr,dropTargetKey:oo,dropContainerKey:Uo,dropTargetPos:is,dropAllowed:uo}),ti==null||ti({event:ve,node:(0,Ae.F)(Ue.props),expandedKeys:ke})},At.onNodeDragOver=function(ve,Ue){var Te=At.state,ke=Te.dragChildrenKeys,nn=Te.flattenNodes,Wn=Te.keyEntities,an=Te.expandedKeys,gn=Te.indent,Bn=At.props,ti=Bn.onDragOver,Rn=Bn.allowDrop,Ri=Bn.direction,dr=(0,jt.Z)(At),Ji=dr.dragNode;if(Ji){var mr=(0,Kn.OM)(ve,Ji,Ue,gn,At.dragStartMousePosition,Rn,nn,Wn,an,Ri),Mr=mr.dropPosition,ro=mr.dropLevelOffset,Jr=mr.dropTargetKey,$r=mr.dropContainerKey,Tr=mr.dropAllowed,Wr=mr.dropTargetPos,oo=mr.dragOverNodeKey;ke.indexOf(Jr)!==-1||!Tr||(Ji.props.eventKey===Jr&&ro===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():Mr===At.state.dropPosition&&ro===At.state.dropLevelOffset&&Jr===At.state.dropTargetKey&&$r===At.state.dropContainerKey&&Wr===At.state.dropTargetPos&&Tr===At.state.dropAllowed&&oo===At.state.dragOverNodeKey||At.setState({dropPosition:Mr,dropLevelOffset:ro,dropTargetKey:Jr,dropContainerKey:$r,dropTargetPos:Wr,dropAllowed:Tr,dragOverNodeKey:oo}),ti==null||ti({event:ve,node:(0,Ae.F)(Ue.props)}))}},At.onNodeDragLeave=function(ve,Ue){At.currentMouseOverDroppableNodeKey===Ue.props.eventKey&&!ve.currentTarget.contains(ve.relatedTarget)&&(At.resetDragState(),At.currentMouseOverDroppableNodeKey=null);var Te=At.props.onDragLeave;Te==null||Te({event:ve,node:(0,Ae.F)(Ue.props)})},At.onWindowDragEnd=function(ve){At.onNodeDragEnd(ve,null,!0),window.removeEventListener("dragend",At.onWindowDragEnd)},At.onNodeDragEnd=function(ve,Ue){var Te=At.props.onDragEnd;At.setState({dragOverNodeKey:null}),At.cleanDragState(),Te==null||Te({event:ve,node:(0,Ae.F)(Ue.props)}),At.dragNode=null,window.removeEventListener("dragend",At.onWindowDragEnd)},At.onNodeDrop=function(ve,Ue){var Te,ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,nn=At.state,Wn=nn.dragChildrenKeys,an=nn.dropPosition,gn=nn.dropTargetKey,Bn=nn.dropTargetPos,ti=nn.dropAllowed;if(ti){var Rn=At.props.onDrop;if(At.setState({dragOverNodeKey:null}),At.cleanDragState(),gn!==null){var Ri=(0,Ie.Z)((0,Ie.Z)({},(0,Ae.H8)(gn,At.getTreeNodeRequiredProps())),{},{active:((Te=At.getActiveItem())===null||Te===void 0?void 0:Te.key)===gn,data:(0,en.Z)(At.state.keyEntities,gn).node}),dr=Wn.indexOf(gn)!==-1;(0,et.ZP)(!dr,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ji=(0,Kn.yx)(Bn),mr={event:ve,node:(0,Ae.F)(Ri),dragNode:At.dragNode?(0,Ae.F)(At.dragNode.props):null,dragNodesKeys:[At.dragNode.props.eventKey].concat(Wn),dropToGap:an!==0,dropPosition:an+Number(Ji[Ji.length-1])};ke||Rn==null||Rn(mr),At.dragNode=null}}},At.cleanDragState=function(){var ve=At.state.draggingNodeKey;ve!==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(ve,Ue){var Te=At.state,ke=Te.expandedKeys,nn=Te.flattenNodes,Wn=Ue.expanded,an=Ue.key,gn=Ue.isLeaf;if(!(gn||ve.shiftKey||ve.metaKey||ve.ctrlKey)){var Bn=nn.filter(function(Rn){return Rn.key===an})[0],ti=(0,Ae.F)((0,Ie.Z)((0,Ie.Z)({},(0,Ae.H8)(an,At.getTreeNodeRequiredProps())),{},{data:Bn.data}));At.setExpandedKeys(Wn?(0,Kn._5)(ke,an):(0,Kn.L0)(ke,an)),At.onNodeExpand(ve,ti)}},At.onNodeClick=function(ve,Ue){var Te=At.props,ke=Te.onClick,nn=Te.expandAction;nn==="click"&&At.triggerExpandActionExpand(ve,Ue),ke==null||ke(ve,Ue)},At.onNodeDoubleClick=function(ve,Ue){var Te=At.props,ke=Te.onDoubleClick,nn=Te.expandAction;nn==="doubleClick"&&At.triggerExpandActionExpand(ve,Ue),ke==null||ke(ve,Ue)},At.onNodeSelect=function(ve,Ue){var Te=At.state.selectedKeys,ke=At.state,nn=ke.keyEntities,Wn=ke.fieldNames,an=At.props,gn=an.onSelect,Bn=an.multiple,ti=Ue.selected,Rn=Ue[Wn.key],Ri=!ti;Ri?Bn?Te=(0,Kn.L0)(Te,Rn):Te=[Rn]:Te=(0,Kn._5)(Te,Rn);var dr=Te.map(function(Ji){var mr=(0,en.Z)(nn,Ji);return mr?mr.node:null}).filter(function(Ji){return Ji});At.setUncontrolledState({selectedKeys:Te}),gn==null||gn(Te,{event:"select",selected:Ri,node:Ue,selectedNodes:dr,nativeEvent:ve.nativeEvent})},At.onNodeCheck=function(ve,Ue,Te){var ke=At.state,nn=ke.keyEntities,Wn=ke.checkedKeys,an=ke.halfCheckedKeys,gn=At.props,Bn=gn.checkStrictly,ti=gn.onCheck,Rn=Ue.key,Ri,dr={event:"check",node:Ue,checked:Te,nativeEvent:ve.nativeEvent};if(Bn){var Ji=Te?(0,Kn.L0)(Wn,Rn):(0,Kn._5)(Wn,Rn),mr=(0,Kn._5)(an,Rn);Ri={checked:Ji,halfChecked:mr},dr.checkedNodes=Ji.map(function(Wr){return(0,en.Z)(nn,Wr)}).filter(function(Wr){return Wr}).map(function(Wr){return Wr.node}),At.setUncontrolledState({checkedKeys:Ji})}else{var Mr=(0,Bi.S)([].concat((0,ee.Z)(Wn),[Rn]),!0,nn),ro=Mr.checkedKeys,Jr=Mr.halfCheckedKeys;if(!Te){var $r=new Set(ro);$r.delete(Rn);var Tr=(0,Bi.S)(Array.from($r),{checked:!1,halfCheckedKeys:Jr},nn);ro=Tr.checkedKeys,Jr=Tr.halfCheckedKeys}Ri=ro,dr.checkedNodes=[],dr.checkedNodesPositions=[],dr.halfCheckedKeys=Jr,ro.forEach(function(Wr){var oo=(0,en.Z)(nn,Wr);if(oo){var Uo=oo.node,is=oo.pos;dr.checkedNodes.push(Uo),dr.checkedNodesPositions.push({node:Uo,pos:is})}}),At.setUncontrolledState({checkedKeys:ro},!1,{halfCheckedKeys:Jr})}ti==null||ti(Ri,dr)},At.onNodeLoad=function(ve){var Ue=ve.key,Te=new Promise(function(ke,nn){At.setState(function(Wn){var an=Wn.loadedKeys,gn=an===void 0?[]:an,Bn=Wn.loadingKeys,ti=Bn===void 0?[]:Bn,Rn=At.props,Ri=Rn.loadData,dr=Rn.onLoad;if(!Ri||gn.indexOf(Ue)!==-1||ti.indexOf(Ue)!==-1)return null;var Ji=Ri(ve);return Ji.then(function(){var mr=At.state.loadedKeys,Mr=(0,Kn.L0)(mr,Ue);dr==null||dr(Mr,{event:"load",node:ve}),At.setUncontrolledState({loadedKeys:Mr}),At.setState(function(ro){return{loadingKeys:(0,Kn._5)(ro.loadingKeys,Ue)}}),ke()}).catch(function(mr){if(At.setState(function(ro){return{loadingKeys:(0,Kn._5)(ro.loadingKeys,Ue)}}),At.loadingRetryTimes[Ue]=(At.loadingRetryTimes[Ue]||0)+1,At.loadingRetryTimes[Ue]>=Li){var Mr=At.state.loadedKeys;(0,et.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),At.setUncontrolledState({loadedKeys:(0,Kn.L0)(Mr,Ue)}),ke()}nn(mr)}),{loadingKeys:(0,Kn.L0)(ti,Ue)}})});return Te.catch(function(){}),Te},At.onNodeMouseEnter=function(ve,Ue){var Te=At.props.onMouseEnter;Te==null||Te({event:ve,node:Ue})},At.onNodeMouseLeave=function(ve,Ue){var Te=At.props.onMouseLeave;Te==null||Te({event:ve,node:Ue})},At.onNodeContextMenu=function(ve,Ue){var Te=At.props.onRightClick;Te&&(ve.preventDefault(),Te({event:ve,node:Ue}))},At.onFocus=function(){var ve=At.props.onFocus;At.setState({focused:!0});for(var Ue=arguments.length,Te=new Array(Ue),ke=0;ke<Ue;ke++)Te[ke]=arguments[ke];ve==null||ve.apply(void 0,Te)},At.onBlur=function(){var ve=At.props.onBlur;At.setState({focused:!1}),At.onActiveChange(null);for(var Ue=arguments.length,Te=new Array(Ue),ke=0;ke<Ue;ke++)Te[ke]=arguments[ke];ve==null||ve.apply(void 0,Te)},At.getTreeNodeRequiredProps=function(){var ve=At.state,Ue=ve.expandedKeys,Te=ve.selectedKeys,ke=ve.loadedKeys,nn=ve.loadingKeys,Wn=ve.checkedKeys,an=ve.halfCheckedKeys,gn=ve.dragOverNodeKey,Bn=ve.dropPosition,ti=ve.keyEntities;return{expandedKeys:Ue||[],selectedKeys:Te||[],loadedKeys:ke||[],loadingKeys:nn||[],checkedKeys:Wn||[],halfCheckedKeys:an||[],dragOverNodeKey:gn,dropPosition:Bn,keyEntities:ti}},At.setExpandedKeys=function(ve){var Ue=At.state,Te=Ue.treeData,ke=Ue.fieldNames,nn=(0,Ae.oH)(Te,ve,ke);At.setUncontrolledState({expandedKeys:ve,flattenNodes:nn},!0)},At.onNodeExpand=function(ve,Ue){var Te=At.state.expandedKeys,ke=At.state,nn=ke.listChanging,Wn=ke.fieldNames,an=At.props,gn=an.onExpand,Bn=an.loadData,ti=Ue.expanded,Rn=Ue[Wn.key];if(!nn){var Ri=Te.indexOf(Rn),dr=!ti;if((0,et.ZP)(ti&&Ri!==-1||!ti&&Ri===-1,"Expand state not sync with index check"),dr?Te=(0,Kn.L0)(Te,Rn):Te=(0,Kn._5)(Te,Rn),At.setExpandedKeys(Te),gn==null||gn(Te,{node:Ue,expanded:dr,nativeEvent:ve.nativeEvent}),dr&&Bn){var Ji=At.onNodeLoad(Ue);Ji&&Ji.then(function(){var mr=(0,Ae.oH)(At.state.treeData,Te,Wn);At.setUncontrolledState({flattenNodes:mr})}).catch(function(){var mr=At.state.expandedKeys,Mr=(0,Kn._5)(mr,Rn);At.setExpandedKeys(Mr)})}}},At.onListChangeStart=function(){At.setUncontrolledState({listChanging:!0})},At.onListChangeEnd=function(){setTimeout(function(){At.setUncontrolledState({listChanging:!1})})},At.onActiveChange=function(ve){var Ue=At.state.activeKey,Te=At.props.onActiveChange;Ue!==ve&&(At.setState({activeKey:ve}),ve!==null&&At.scrollTo({key:ve}),Te==null||Te(ve))},At.getActiveItem=function(){var ve=At.state,Ue=ve.activeKey,Te=ve.flattenNodes;return Ue===null?null:Te.find(function(ke){var nn=ke.key;return nn===Ue})||null},At.offsetActiveKey=function(ve){var Ue=At.state,Te=Ue.flattenNodes,ke=Ue.activeKey,nn=Te.findIndex(function(gn){var Bn=gn.key;return Bn===ke});nn===-1&&ve<0&&(nn=Te.length),nn=(nn+ve+Te.length)%Te.length;var Wn=Te[nn];if(Wn){var an=Wn.key;At.onActiveChange(an)}else At.onActiveChange(null)},At.onKeyDown=function(ve){var Ue=At.state,Te=Ue.activeKey,ke=Ue.expandedKeys,nn=Ue.checkedKeys,Wn=Ue.fieldNames,an=At.props,gn=an.onKeyDown,Bn=an.checkable,ti=an.selectable;switch(ve.which){case $t.Z.UP:{At.offsetActiveKey(-1),ve.preventDefault();break}case $t.Z.DOWN:{At.offsetActiveKey(1),ve.preventDefault();break}}var Rn=At.getActiveItem();if(Rn&&Rn.data){var Ri=At.getTreeNodeRequiredProps(),dr=Rn.data.isLeaf===!1||!!(Rn.data[Wn.children]||[]).length,Ji=(0,Ae.F)((0,Ie.Z)((0,Ie.Z)({},(0,Ae.H8)(Te,Ri)),{},{data:Rn.data,active:!0}));switch(ve.which){case $t.Z.LEFT:{dr&&ke.includes(Te)?At.onNodeExpand({},Ji):Rn.parent&&At.onActiveChange(Rn.parent.key),ve.preventDefault();break}case $t.Z.RIGHT:{dr&&!ke.includes(Te)?At.onNodeExpand({},Ji):Rn.children&&Rn.children.length&&At.onActiveChange(Rn.children[0].key),ve.preventDefault();break}case $t.Z.ENTER:case $t.Z.SPACE:{Bn&&!Ji.disabled&&Ji.checkable!==!1&&!Ji.disableCheckbox?At.onNodeCheck({},Ji,!nn.includes(Te)):!Bn&&ti&&!Ji.disabled&&Ji.selectable!==!1&&At.onNodeSelect({},Ji);break}}}gn==null||gn(ve)},At.setUncontrolledState=function(ve){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!At.destroyed){var ke=!1,nn=!0,Wn={};Object.keys(ve).forEach(function(an){if(an in At.props){nn=!1;return}ke=!0,Wn[an]=ve[an]}),ke&&(!Ue||nn)&&At.setState((0,Ie.Z)((0,Ie.Z)({},Wn),Te))}},At.scrollTo=function(ve){At.listRef.current.scrollTo(ve)},At}return(0,Nt.Z)(pt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var le=this.props.activeKey;le!==void 0&&le!==this.state.activeKey&&(this.setState({activeKey:le}),le!==null&&this.scrollTo({key:le}))}},{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 le,xe=this.state,ae=xe.focused,ve=xe.flattenNodes,Ue=xe.keyEntities,Te=xe.draggingNodeKey,ke=xe.activeKey,nn=xe.dropLevelOffset,Wn=xe.dropContainerKey,an=xe.dropTargetKey,gn=xe.dropPosition,Bn=xe.dragOverNodeKey,ti=xe.indent,Rn=this.props,Ri=Rn.prefixCls,dr=Rn.className,Ji=Rn.style,mr=Rn.showLine,Mr=Rn.focusable,ro=Rn.tabIndex,Jr=ro===void 0?0:ro,$r=Rn.selectable,Tr=Rn.showIcon,Wr=Rn.icon,oo=Rn.switcherIcon,Uo=Rn.draggable,is=Rn.checkable,uo=Rn.checkStrictly,Ss=Rn.disabled,To=Rn.motion,Xt=Rn.loadData,ei=Rn.filterTreeNode,Cs=Rn.height,Os=Rn.itemHeight,ma=Rn.virtual,va=Rn.titleRender,Ys=Rn.dropIndicatorRender,Qr=Rn.onContextMenu,Dr=Rn.onScroll,In=Rn.direction,Tn=Rn.rootClassName,Oe=Rn.rootStyle,qn=(0,Ct.Z)(this.props,{aria:!0,data:!0}),xi;return Uo&&((0,re.Z)(Uo)==="object"?xi=Uo:typeof Uo=="function"?xi={nodeDraggable:Uo}:xi={}),tt.createElement(lt.k.Provider,{value:{prefixCls:Ri,selectable:$r,showIcon:Tr,icon:Wr,switcherIcon:oo,draggable:xi,draggingNodeKey:Te,checkable:is,checkStrictly:uo,disabled:Ss,keyEntities:Ue,dropLevelOffset:nn,dropContainerKey:Wn,dropTargetKey:an,dropPosition:gn,dragOverNodeKey:Bn,indent:ti,direction:In,dropIndicatorRender:Ys,loadData:Xt,filterTreeNode:ei,titleRender:va,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},tt.createElement("div",{role:"tree",className:Kt()(Ri,dr,Tn,(le={},(0,ce.Z)(le,"".concat(Ri,"-show-line"),mr),(0,ce.Z)(le,"".concat(Ri,"-focused"),ae),(0,ce.Z)(le,"".concat(Ri,"-active-focused"),ke!==null),le)),style:Oe},tt.createElement(gi,(0,Mt.Z)({ref:this.listRef,prefixCls:Ri,style:Ji,data:ve,disabled:Ss,selectable:$r,checkable:!!is,motion:To,dragging:Te!==null,height:Cs,itemHeight:Os,virtual:ma,focusable:Mr,focused:ae,tabIndex:Jr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Qr,onScroll:Dr},this.getTreeNodeRequiredProps(),qn))))}}],[{key:"getDerivedStateFromProps",value:function(le,xe){var ae=xe.prevProps,ve={prevProps:le};function Ue(Mr){return!ae&&Mr in le||ae&&ae[Mr]!==le[Mr]}var Te,ke=xe.fieldNames;if(Ue("fieldNames")&&(ke=(0,Ae.w$)(le.fieldNames),ve.fieldNames=ke),Ue("treeData")?Te=le.treeData:Ue("children")&&((0,et.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Te=(0,Ae.zn)(le.children)),Te){ve.treeData=Te;var nn=(0,Ae.I8)(Te,{fieldNames:ke});ve.keyEntities=(0,Ie.Z)((0,ce.Z)({},ye,Ce),nn.keyEntities)}var Wn=ve.keyEntities||xe.keyEntities;if(Ue("expandedKeys")||ae&&Ue("autoExpandParent"))ve.expandedKeys=le.autoExpandParent||!ae&&le.defaultExpandParent?(0,Kn.r7)(le.expandedKeys,Wn):le.expandedKeys;else if(!ae&&le.defaultExpandAll){var an=(0,Ie.Z)({},Wn);delete an[ye],ve.expandedKeys=Object.keys(an).map(function(Mr){return an[Mr].key})}else!ae&&le.defaultExpandedKeys&&(ve.expandedKeys=le.autoExpandParent||le.defaultExpandParent?(0,Kn.r7)(le.defaultExpandedKeys,Wn):le.defaultExpandedKeys);if(ve.expandedKeys||delete ve.expandedKeys,Te||ve.expandedKeys){var gn=(0,Ae.oH)(Te||xe.treeData,ve.expandedKeys||xe.expandedKeys,ke);ve.flattenNodes=gn}if(le.selectable&&(Ue("selectedKeys")?ve.selectedKeys=(0,Kn.BT)(le.selectedKeys,le):!ae&&le.defaultSelectedKeys&&(ve.selectedKeys=(0,Kn.BT)(le.defaultSelectedKeys,le))),le.checkable){var Bn;if(Ue("checkedKeys")?Bn=(0,Kn.E6)(le.checkedKeys)||{}:!ae&&le.defaultCheckedKeys?Bn=(0,Kn.E6)(le.defaultCheckedKeys)||{}:Te&&(Bn=(0,Kn.E6)(le.checkedKeys)||{checkedKeys:xe.checkedKeys,halfCheckedKeys:xe.halfCheckedKeys}),Bn){var ti=Bn,Rn=ti.checkedKeys,Ri=Rn===void 0?[]:Rn,dr=ti.halfCheckedKeys,Ji=dr===void 0?[]:dr;if(!le.checkStrictly){var mr=(0,Bi.S)(Ri,!0,Wn);Ri=mr.checkedKeys,Ji=mr.halfCheckedKeys}ve.checkedKeys=Ri,ve.halfCheckedKeys=Ji}}return Ue("loadedKeys")&&(ve.loadedKeys=le.loadedKeys),ve}}]),pt}(tt.Component);Oi.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},Oi.TreeNode=se.Z;var Lt=Oi,Ot=Lt},35654:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{BT:function(){return tt},E6:function(){return ht},L0:function(){return Pt},OM:function(){return et},_5:function(){return te},r7:function(){return dt},wA:function(){return Kt},yx:function(){return oe}});var Mt=Ft(19127),ce=Ft(20135),re=Ft(48736),Ie=Ft(59301),ee=Ft(39417),Vt=Ft(67841),Nt=Ft(71430),jt=null;function te(xt,It){if(!xt)return[];var Ut=xt.slice(),Gt=Ut.indexOf(It);return Gt>=0&&Ut.splice(Gt,1),Ut}function Pt(xt,It){var Ut=(xt||[]).slice();return Ut.indexOf(It)===-1&&Ut.push(It),Ut}function oe(xt){return xt.split("-")}function Kt(xt,It){var Ut=[],Gt=(0,Vt.Z)(It,xt);function se(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ue.forEach(function(Ae){var Pe=Ae.key,qt=Ae.children;Ut.push(Pe),se(qt)})}return se(Gt.children),Ut}function $t(xt){if(xt.parent){var It=oe(xt.pos);return Number(It[It.length-1])===xt.parent.children.length-1}return!1}function Ct(xt){var It=oe(xt.pos);return Number(It[It.length-1])===0}function et(xt,It,Ut,Gt,se,ue,Ae,Pe,qt,ze){var Wt,Ge=xt.clientX,_e=xt.clientY,Me=xt.target.getBoundingClientRect(),We=Me.top,Re=Me.height,ye=(ze==="rtl"?-1:1)*(((se==null?void 0:se.x)||0)-Ge),ne=(ye-12)/Gt,Ce=(0,Vt.Z)(Pe,Ut.props.eventKey);if(_e<We+Re/2){var bn=Ae.findIndex(function(Ot){return Ot.key===Ce.key}),Ln=bn<=0?0:bn-1,Ze=Ae[Ln].key;Ce=(0,Vt.Z)(Pe,Ze)}var Mn=Ce.key,Vn=Ce,gi=Ce.key,Kn=0,Bi=0;if(!qt.includes(Mn))for(var en=0;en<ne&&$t(Ce);en+=1)Ce=Ce.parent,Bi+=1;var Li=It.props.data,Oi=Ce.node,Lt=!0;return Ct(Ce)&&Ce.level===0&&_e<We+Re/2&&ue({dragNode:Li,dropNode:Oi,dropPosition:-1})&&Ce.key===Ut.props.eventKey?Kn=-1:(Vn.children||[]).length&&qt.includes(gi)?ue({dragNode:Li,dropNode:Oi,dropPosition:0})?Kn=0:Lt=!1:Bi===0?ne>-1.5?ue({dragNode:Li,dropNode:Oi,dropPosition:1})?Kn=1:Lt=!1:ue({dragNode:Li,dropNode:Oi,dropPosition:0})?Kn=0:ue({dragNode:Li,dropNode:Oi,dropPosition:1})?Kn=1:Lt=!1:ue({dragNode:Li,dropNode:Oi,dropPosition:1})?Kn=1:Lt=!1,{dropPosition:Kn,dropLevelOffset:Bi,dropTargetKey:Ce.key,dropTargetPos:Ce.pos,dragOverNodeKey:gi,dropContainerKey:Kn===0?null:((Wt=Ce.parent)===null||Wt===void 0?void 0:Wt.key)||null,dropAllowed:Lt}}function tt(xt,It){if(xt){var Ut=It.multiple;return Ut?xt.slice():xt.length?[xt[0]]:xt}}var lt=function(It){return It};function rt(xt,It){if(!xt)return[];var Ut=It||{},Gt=Ut.processProps,se=Gt===void 0?lt:Gt,ue=Array.isArray(xt)?xt:[xt];return ue.map(function(Ae){var Pe=Ae.children,qt=_objectWithoutProperties(Ae,jt),ze=rt(Pe,It);return React.createElement(TreeNode,_extends({key:qt.key},se(qt)),ze)})}function ht(xt){if(!xt)return null;var It;if(Array.isArray(xt))It={checkedKeys:xt,halfCheckedKeys:void 0};else if((0,ce.Z)(xt)==="object")It={checkedKeys:xt.checked||void 0,halfCheckedKeys:xt.halfChecked||void 0};else return(0,re.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return It}function dt(xt,It){var Ut=new Set;function Gt(se){if(!Ut.has(se)){var ue=(0,Vt.Z)(It,se);if(ue){Ut.add(se);var Ae=ue.parent,Pe=ue.node;Pe.disabled||Ae&&Gt(Ae.key)}}}return(xt||[]).forEach(function(se){Gt(se)}),(0,Mt.Z)(Ut)}},90782:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{S:function(){return Nt}});var Mt=Ft(48736),ce=Ft(67841);function re(jt,te){var Pt=new Set;return jt.forEach(function(oe){te.has(oe)||Pt.add(oe)}),Pt}function Ie(jt){var te=jt||{},Pt=te.disabled,oe=te.disableCheckbox,Kt=te.checkable;return!!(Pt||oe)||Kt===!1}function ee(jt,te,Pt,oe){for(var Kt=new Set(jt),$t=new Set,Ct=0;Ct<=Pt;Ct+=1){var et=te.get(Ct)||new Set;et.forEach(function(ht){var dt=ht.key,xt=ht.node,It=ht.children,Ut=It===void 0?[]:It;Kt.has(dt)&&!oe(xt)&&Ut.filter(function(Gt){return!oe(Gt.node)}).forEach(function(Gt){Kt.add(Gt.key)})})}for(var tt=new Set,lt=Pt;lt>=0;lt-=1){var rt=te.get(lt)||new Set;rt.forEach(function(ht){var dt=ht.parent,xt=ht.node;if(!(oe(xt)||!ht.parent||tt.has(ht.parent.key))){if(oe(ht.parent.node)){tt.add(dt.key);return}var It=!0,Ut=!1;(dt.children||[]).filter(function(Gt){return!oe(Gt.node)}).forEach(function(Gt){var se=Gt.key,ue=Kt.has(se);It&&!ue&&(It=!1),!Ut&&(ue||$t.has(se))&&(Ut=!0)}),It&&Kt.add(dt.key),Ut&&$t.add(dt.key),tt.add(dt.key)}})}return{checkedKeys:Array.from(Kt),halfCheckedKeys:Array.from(re($t,Kt))}}function Vt(jt,te,Pt,oe,Kt){for(var $t=new Set(jt),Ct=new Set(te),et=0;et<=oe;et+=1){var tt=Pt.get(et)||new Set;tt.forEach(function(dt){var xt=dt.key,It=dt.node,Ut=dt.children,Gt=Ut===void 0?[]:Ut;!$t.has(xt)&&!Ct.has(xt)&&!Kt(It)&&Gt.filter(function(se){return!Kt(se.node)}).forEach(function(se){$t.delete(se.key)})})}Ct=new Set;for(var lt=new Set,rt=oe;rt>=0;rt-=1){var ht=Pt.get(rt)||new Set;ht.forEach(function(dt){var xt=dt.parent,It=dt.node;if(!(Kt(It)||!dt.parent||lt.has(dt.parent.key))){if(Kt(dt.parent.node)){lt.add(xt.key);return}var Ut=!0,Gt=!1;(xt.children||[]).filter(function(se){return!Kt(se.node)}).forEach(function(se){var ue=se.key,Ae=$t.has(ue);Ut&&!Ae&&(Ut=!1),!Gt&&(Ae||Ct.has(ue))&&(Gt=!0)}),Ut||$t.delete(xt.key),Gt&&Ct.add(xt.key),lt.add(xt.key)}})}return{checkedKeys:Array.from($t),halfCheckedKeys:Array.from(re(Ct,$t))}}function Nt(jt,te,Pt,oe){var Kt=[],$t;oe?$t=oe:$t=Ie;var Ct=new Set(jt.filter(function(rt){var ht=!!(0,ce.Z)(Pt,rt);return ht||Kt.push(rt),ht})),et=new Map,tt=0;Object.keys(Pt).forEach(function(rt){var ht=Pt[rt],dt=ht.level,xt=et.get(dt);xt||(xt=new Set,et.set(dt,xt)),xt.add(ht),tt=Math.max(tt,dt)}),(0,Mt.ZP)(!Kt.length,"Tree missing follow keys: ".concat(Kt.slice(0,100).map(function(rt){return"'".concat(rt,"'")}).join(", ")));var lt;return te===!0?lt=ee(Ct,et,tt,$t):lt=Vt(Ct,te.halfCheckedKeys,et,tt,$t),lt}},67841:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return Mt}});function Mt(ce,re){return ce[re]}},71430:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{F:function(){return dt},H8:function(){return ht},I8:function(){return rt},km:function(){return Kt},oH:function(){return tt},w$:function(){return $t},zn:function(){return et}});var Mt=Ft(20135),ce=Ft(19127),re=Ft(44127),Ie=Ft(6620),ee=Ft(11592),Vt=Ft(2738),Nt=Ft(48736),jt=Ft(67841),te=["children"];function Pt(xt,It){return"".concat(xt,"-").concat(It)}function oe(xt){return xt&&xt.type&&xt.type.isTreeNode}function Kt(xt,It){return xt!=null?xt:It}function $t(xt){var It=xt||{},Ut=It.title,Gt=It._title,se=It.key,ue=It.children,Ae=Ut||"title";return{title:Ae,_title:Gt||[Ae],key:se||"key",children:ue||"children"}}function Ct(xt,It){var Ut=new Map;function Gt(se){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(se||[]).forEach(function(Ae){var Pe=Ae[It.key],qt=Ae[It.children];warning(Pe!=null,"Tree node must have a certain key: [".concat(ue).concat(Pe,"]"));var ze=String(Pe);warning(!Ut.has(ze)||Pe===null||Pe===void 0,"Same 'key' exist in the Tree: ".concat(ze)),Ut.set(ze,!0),Gt(qt,"".concat(ue).concat(ze," > "))})}Gt(xt)}function et(xt){function It(Ut){var Gt=(0,ee.Z)(Ut);return Gt.map(function(se){if(!oe(se))return(0,Nt.ZP)(!se,"Tree/TreeNode can only accept TreeNode as children."),null;var ue=se.key,Ae=se.props,Pe=Ae.children,qt=(0,Ie.Z)(Ae,te),ze=(0,re.Z)({key:ue},qt),Wt=It(Pe);return Wt.length&&(ze.children=Wt),ze}).filter(function(se){return se})}return It(xt)}function tt(xt,It,Ut){var Gt=$t(Ut),se=Gt._title,ue=Gt.key,Ae=Gt.children,Pe=new Set(It===!0?[]:It),qt=[];function ze(Wt){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Wt.map(function(_e,Me){for(var We=Pt(Ge?Ge.pos:"0",Me),Re=Kt(_e[ue],We),ye,ne=0;ne<se.length;ne+=1){var Ce=se[ne];if(_e[Ce]!==void 0){ye=_e[Ce];break}}var bn=(0,re.Z)((0,re.Z)({},(0,Vt.Z)(_e,[].concat((0,ce.Z)(se),[ue,Ae]))),{},{title:ye,key:Re,parent:Ge,pos:We,children:null,data:_e,isStart:[].concat((0,ce.Z)(Ge?Ge.isStart:[]),[Me===0]),isEnd:[].concat((0,ce.Z)(Ge?Ge.isEnd:[]),[Me===Wt.length-1])});return qt.push(bn),It===!0||Pe.has(Re)?bn.children=ze(_e[Ae]||[],bn):bn.children=[],bn})}return ze(xt),qt}function lt(xt,It,Ut){var Gt={};(0,Mt.Z)(Ut)==="object"?Gt=Ut:Gt={externalGetKey:Ut},Gt=Gt||{};var se=Gt,ue=se.childrenPropName,Ae=se.externalGetKey,Pe=se.fieldNames,qt=$t(Pe),ze=qt.key,Wt=qt.children,Ge=ue||Wt,_e;Ae?typeof Ae=="string"?_e=function(Re){return Re[Ae]}:typeof Ae=="function"&&(_e=function(Re){return Ae(Re)}):_e=function(Re,ye){return Kt(Re[ze],ye)};function Me(We,Re,ye,ne){var Ce=We?We[Ge]:xt,bn=We?Pt(ye.pos,Re):"0",Ln=We?[].concat((0,ce.Z)(ne),[We]):[];if(We){var Ze=_e(We,bn),Mn={node:We,index:Re,pos:bn,key:Ze,parentPos:ye.node?ye.pos:null,level:ye.level+1,nodes:Ln};It(Mn)}Ce&&Ce.forEach(function(Vn,gi){Me(Vn,gi,{node:We,pos:bn,level:ye?ye.level+1:-1},Ln)})}Me(null)}function rt(xt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ut=It.initWrapper,Gt=It.processEntity,se=It.onProcessFinished,ue=It.externalGetKey,Ae=It.childrenPropName,Pe=It.fieldNames,qt=arguments.length>2?arguments[2]:void 0,ze=ue||qt,Wt={},Ge={},_e={posEntities:Wt,keyEntities:Ge};return Ut&&(_e=Ut(_e)||_e),lt(xt,function(Me){var We=Me.node,Re=Me.index,ye=Me.pos,ne=Me.key,Ce=Me.parentPos,bn=Me.level,Ln=Me.nodes,Ze={node:We,nodes:Ln,index:Re,key:ne,pos:ye,level:bn},Mn=Kt(ne,ye);Wt[ye]=Ze,Ge[Mn]=Ze,Ze.parent=Wt[Ce],Ze.parent&&(Ze.parent.children=Ze.parent.children||[],Ze.parent.children.push(Ze)),Gt&&Gt(Ze,_e)},{externalGetKey:ze,childrenPropName:Ae,fieldNames:Pe}),se&&se(_e),_e}function ht(xt,It){var Ut=It.expandedKeys,Gt=It.selectedKeys,se=It.loadedKeys,ue=It.loadingKeys,Ae=It.checkedKeys,Pe=It.halfCheckedKeys,qt=It.dragOverNodeKey,ze=It.dropPosition,Wt=It.keyEntities,Ge=(0,jt.Z)(Wt,xt),_e={eventKey:xt,expanded:Ut.indexOf(xt)!==-1,selected:Gt.indexOf(xt)!==-1,loaded:se.indexOf(xt)!==-1,loading:ue.indexOf(xt)!==-1,checked:Ae.indexOf(xt)!==-1,halfChecked:Pe.indexOf(xt)!==-1,pos:String(Ge?Ge.pos:""),dragOver:qt===xt&&ze===0,dragOverGapTop:qt===xt&&ze===-1,dragOverGapBottom:qt===xt&&ze===1};return _e}function dt(xt){var It=xt.data,Ut=xt.expanded,Gt=xt.selected,se=xt.checked,ue=xt.loaded,Ae=xt.loading,Pe=xt.halfChecked,qt=xt.dragOver,ze=xt.dragOverGapTop,Wt=xt.dragOverGapBottom,Ge=xt.pos,_e=xt.active,Me=xt.eventKey,We=(0,re.Z)((0,re.Z)({},It),{},{expanded:Ut,selected:Gt,checked:se,loaded:ue,loading:Ae,halfChecked:Pe,dragOver:qt,dragOverGapTop:ze,dragOverGapBottom:Wt,pos:Ge,active:_e,key:Me});return"props"in We||Object.defineProperty(We,"props",{get:function(){return(0,Nt.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),xt}}),We}},8224:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return ce}});var Mt=Ft(4676);function ce(re,Ie,ee,Vt){var Nt=Mt.unstable_batchedUpdates?function(te){Mt.unstable_batchedUpdates(ee,te)}:ee;return re!=null&&re.addEventListener&&re.addEventListener(Ie,Nt,Vt),{remove:function(){re!=null&&re.removeEventListener&&re.removeEventListener(Ie,Nt,Vt)}}}},55468:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{g1:function(){return oe},os:function(){return $t}});var Mt=/margin|padding|width|height|max|min|offset/,ce={left:!0,top:!0},re={cssFloat:1,styleFloat:1,float:1};function Ie(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]=Mt.test(et)),ce[et]?parseFloat(tt)||0:tt}function Vt(Ct,et){var tt=arguments.length,lt=Ie(Ct);return et=re[et]?"cssFloat"in Ct.style?"cssFloat":"styleFloat":et,tt===1?lt:ee(Ct,et,lt[et]||Ct.style[et])}function Nt(Ct,et,tt){var lt=arguments.length;if(et=re[et]?"cssFloat"in Ct.style?"cssFloat":"styleFloat":et,lt===3)return typeof tt=="number"&&Mt.test(et)&&(tt="".concat(tt,"px")),Ct.style[et]=tt,tt;for(var rt in et)et.hasOwnProperty(rt)&&Nt(Ct,rt,et[rt]);return Ie(Ct)}function jt(Ct){return Ct===document.body?document.documentElement.clientWidth:Ct.offsetWidth}function te(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 Kt(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function $t(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(hi,Cn,Ft){"use strict";Ft.d(Cn,{G:function(){return Ie}});var Mt=Ft(47273),ce=function(Vt){if((0,Mt.Z)()&&window.document.documentElement){var Nt=Array.isArray(Vt)?Vt:[Vt],jt=window.document.documentElement;return Nt.some(function(te){return te in jt.style})}return!1},re=function(Vt,Nt){if(!ce(Vt))return!1;var jt=document.createElement("div"),te=jt.style[Vt];return jt.style[Vt]=Nt,jt.style[Vt]!==te};function Ie(ee,Vt){return!Array.isArray(ee)&&Vt!==void 0?re(ee,Vt):ce(ee)}},24916:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return Oi}});var Mt=Ft(96663),ce=Ft(20135),re=Ft(44127),Ie=Ft(90493),ee=Ft(72071),Vt=Ft(6620),Nt=Ft(92310),jt=Ft.n(Nt),te=Ft(29301),Pt=Ft(70425),oe=Ft(34280),Kt=Ft(59301),$t=Ft(4676),Ct=Kt.forwardRef(function(Lt,Ot){var mt=Lt.height,ft=Lt.offsetY,pt=Lt.offsetX,At=Lt.children,le=Lt.prefixCls,xe=Lt.onInnerResize,ae=Lt.innerProps,ve=Lt.rtl,Ue=Lt.extra,Te={},ke={display:"flex",flexDirection:"column"};return ft!==void 0&&(Te={height:mt,position:"relative",overflow:"hidden"},ke=(0,re.Z)((0,re.Z)({},ke),{},(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({transform:"translateY(".concat(ft,"px)")},ve?"marginRight":"marginLeft",-pt),"position","absolute"),"left",0),"right",0),"top",0))),Kt.createElement("div",{style:Te},Kt.createElement(te.Z,{onResize:function(Wn){var an=Wn.offsetHeight;an&&xe&&xe()}},Kt.createElement("div",(0,Mt.Z)({style:ke,className:jt()((0,Ie.Z)({},"".concat(le,"-holder-inner"),le)),ref:Ot},ae),At,Ue)))});Ct.displayName="Filler";var et=Ct;function tt(Lt){var Ot=Lt.children,mt=Lt.setRef,ft=Kt.useCallback(function(pt){mt(pt)},[]);return Kt.cloneElement(Ot,{ref:ft})}function lt(Lt,Ot,mt,ft,pt,At,le,xe){var ae=xe.getKey;return Lt.slice(Ot,mt+1).map(function(ve,Ue){var Te=Ot+Ue,ke=le(ve,Te,{style:{width:ft},offsetX:pt}),nn=ae(ve);return Kt.createElement(tt,{key:nn,setRef:function(an){return At(ve,an)}},ke)})}function rt(Lt,Ot,mt,ft){var pt=mt-Lt,At=Ot-mt,le=Math.min(pt,At)*2;if(ft<=le){var xe=Math.floor(ft/2);return ft%2?mt+xe+1:mt-xe}return pt>At?mt-(ft-At):mt+(ft-pt)}function ht(Lt,Ot,mt){var ft=Lt.length,pt=Ot.length,At,le;if(ft===0&&pt===0)return null;ft<pt?(At=Lt,le=Ot):(At=Ot,le=Lt);var xe={__EMPTY_ITEM__:!0};function ae(Wn){return Wn!==void 0?mt(Wn):xe}for(var ve=null,Ue=Math.abs(ft-pt)!==1,Te=0;Te<le.length;Te+=1){var ke=ae(At[Te]),nn=ae(le[Te]);if(ke!==nn){ve=Te,Ue=Ue||ke!==ae(le[Te+1]);break}}return ve===null?null:{index:ve,multiple:Ue}}function dt(Lt,Ot,mt){var ft=Kt.useState(Lt),pt=(0,ee.Z)(ft,2),At=pt[0],le=pt[1],xe=Kt.useState(null),ae=(0,ee.Z)(xe,2),ve=ae[0],Ue=ae[1];return Kt.useEffect(function(){var Te=ht(At||[],Lt||[],Ot);(Te==null?void 0:Te.index)!==void 0&&(mt==null||mt(Te.index),Ue(Lt[Te.index])),le(Lt)},[Lt]),[ve]}var xt=Ft(16089),It=(typeof navigator=="undefined"?"undefined":(0,ce.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ut=It,Gt=function(Lt,Ot,mt,ft){var pt=(0,Kt.useRef)(!1),At=(0,Kt.useRef)(null);function le(){clearTimeout(At.current),pt.current=!0,At.current=setTimeout(function(){pt.current=!1},50)}var xe=(0,Kt.useRef)({top:Lt,bottom:Ot,left:mt,right:ft});return xe.current.top=Lt,xe.current.bottom=Ot,xe.current.left=mt,xe.current.right=ft,function(ae,ve){var Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Te=ae?ve<0&&xe.current.left||ve>0&&xe.current.right:ve<0&&xe.current.top||ve>0&&xe.current.bottom;return Ue&&Te?(clearTimeout(At.current),pt.current=!1):(!Te||pt.current)&&le(),!pt.current&&Te}};function se(Lt,Ot,mt,ft,pt,At,le){var xe=(0,Kt.useRef)(0),ae=(0,Kt.useRef)(null),ve=(0,Kt.useRef)(null),Ue=(0,Kt.useRef)(!1),Te=Gt(Ot,mt,ft,pt);function ke(ti,Rn){if(xt.Z.cancel(ae.current),!Te(!1,Rn)){var Ri=ti;if(!Ri._virtualHandled)Ri._virtualHandled=!0;else return;xe.current+=Rn,ve.current=Rn,Ut||Ri.preventDefault(),ae.current=(0,xt.Z)(function(){var dr=Ue.current?10:1;le(xe.current*dr,!1),xe.current=0})}}function nn(ti,Rn){le(Rn,!0),Ut||ti.preventDefault()}var Wn=(0,Kt.useRef)(null),an=(0,Kt.useRef)(null);function gn(ti){if(Lt){xt.Z.cancel(an.current),an.current=(0,xt.Z)(function(){Wn.current=null},2);var Rn=ti.deltaX,Ri=ti.deltaY,dr=ti.shiftKey,Ji=Rn,mr=Ri;(Wn.current==="sx"||!Wn.current&&dr&&Ri&&!Rn)&&(Ji=Ri,mr=0,Wn.current="sx");var Mr=Math.abs(Ji),ro=Math.abs(mr);Wn.current===null&&(Wn.current=At&&Mr>ro?"x":"y"),Wn.current==="y"?ke(ti,mr):nn(ti,Ji)}}function Bn(ti){Lt&&(Ue.current=ti.detail===ve.current)}return[gn,Bn]}function ue(Lt,Ot,mt,ft){var pt=Kt.useMemo(function(){return[new Map,[]]},[Lt,mt.id,ft]),At=(0,ee.Z)(pt,2),le=At[0],xe=At[1],ae=function(Ue){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue,ke=le.get(Ue),nn=le.get(Te);if(ke===void 0||nn===void 0)for(var Wn=Lt.length,an=xe.length;an<Wn;an+=1){var gn,Bn=Lt[an],ti=Ot(Bn);le.set(ti,an);var Rn=(gn=mt.get(ti))!==null&&gn!==void 0?gn:ft;if(xe[an]=(xe[an-1]||0)+Rn,ti===Ue&&(ke=an),ti===Te&&(nn=an),ke!==void 0&&nn!==void 0)break}return{top:xe[ke-1]||0,bottom:xe[nn]}};return ae}var Ae=Ft(52884),Pe=Ft(95727),qt=function(){function Lt(){(0,Ae.Z)(this,Lt),(0,Ie.Z)(this,"maps",void 0),(0,Ie.Z)(this,"id",0),(0,Ie.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Pe.Z)(Lt,[{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}}]),Lt}(),ze=qt;function Wt(Lt){var Ot=parseFloat(Lt);return isNaN(Ot)?0:Ot}function Ge(Lt,Ot,mt){var ft=Kt.useState(0),pt=(0,ee.Z)(ft,2),At=pt[0],le=pt[1],xe=(0,Kt.useRef)(new Map),ae=(0,Kt.useRef)(new ze),ve=(0,Kt.useRef)(0);function Ue(){ve.current+=1}function Te(){var nn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ue();var Wn=function(){var Bn=!1;xe.current.forEach(function(ti,Rn){if(ti&&ti.offsetParent){var Ri=ti.offsetHeight,dr=getComputedStyle(ti),Ji=dr.marginTop,mr=dr.marginBottom,Mr=Wt(Ji),ro=Wt(mr),Jr=Ri+Mr+ro;ae.current.get(Rn)!==Jr&&(ae.current.set(Rn,Jr),Bn=!0)}}),Bn&&le(function(ti){return ti+1})};if(nn)Wn();else{ve.current+=1;var an=ve.current;Promise.resolve().then(function(){an===ve.current&&Wn()})}}function ke(nn,Wn){var an=Lt(nn),gn=xe.current.get(an);Wn?(xe.current.set(an,Wn),Te()):xe.current.delete(an),!gn!=!Wn&&(Wn?Ot==null||Ot(nn):mt==null||mt(nn))}return(0,Kt.useEffect)(function(){return Ue},[]),[ke,Te,ae.current,At]}var _e=14/15;function Me(Lt,Ot,mt){var ft=(0,Kt.useRef)(!1),pt=(0,Kt.useRef)(0),At=(0,Kt.useRef)(0),le=(0,Kt.useRef)(null),xe=(0,Kt.useRef)(null),ae,ve=function(nn){if(ft.current){var Wn=Math.ceil(nn.touches[0].pageX),an=Math.ceil(nn.touches[0].pageY),gn=pt.current-Wn,Bn=At.current-an,ti=Math.abs(gn)>Math.abs(Bn);ti?pt.current=Wn:At.current=an;var Rn=mt(ti,ti?gn:Bn,!1,nn);Rn&&nn.preventDefault(),clearInterval(xe.current),Rn&&(xe.current=setInterval(function(){ti?gn*=_e:Bn*=_e;var Ri=Math.floor(ti?gn:Bn);(!mt(ti,Ri,!0)||Math.abs(Ri)<=.1)&&clearInterval(xe.current)},16))}},Ue=function(){ft.current=!1,ae()},Te=function(nn){ae(),nn.touches.length===1&&!ft.current&&(ft.current=!0,pt.current=Math.ceil(nn.touches[0].pageX),At.current=Math.ceil(nn.touches[0].pageY),le.current=nn.target,le.current.addEventListener("touchmove",ve,{passive:!1}),le.current.addEventListener("touchend",Ue,{passive:!0}))};ae=function(){le.current&&(le.current.removeEventListener("touchmove",ve),le.current.removeEventListener("touchend",Ue))},(0,oe.Z)(function(){return Lt&&Ot.current.addEventListener("touchstart",Te,{passive:!0}),function(){var ke;(ke=Ot.current)===null||ke===void 0||ke.removeEventListener("touchstart",Te),ae(),clearInterval(xe.current)}},[Lt])}function We(Lt){return Math.floor(Math.pow(Lt,.5))}function Re(Lt,Ot){var mt="touches"in Lt?Lt.touches[0]:Lt;return mt[Ot?"pageX":"pageY"]-window[Ot?"scrollX":"scrollY"]}function ye(Lt,Ot,mt){Kt.useEffect(function(){var ft=Ot.current;if(Lt&&ft){var pt=!1,At,le,xe=function(){xt.Z.cancel(At)},ae=function ke(){xe(),At=(0,xt.Z)(function(){mt(le),ke()})},ve=function(nn){if(!nn.target.draggable){var Wn=nn;Wn._virtualHandled||(Wn._virtualHandled=!0,pt=!0)}},Ue=function(){pt=!1,xe()},Te=function(nn){if(pt){var Wn=Re(nn,!1),an=ft.getBoundingClientRect(),gn=an.top,Bn=an.bottom;if(Wn<=gn){var ti=gn-Wn;le=-We(ti),ae()}else if(Wn>=Bn){var Rn=Wn-Bn;le=We(Rn),ae()}else xe()}};return ft.addEventListener("mousedown",ve),ft.ownerDocument.addEventListener("mouseup",Ue),ft.ownerDocument.addEventListener("mousemove",Te),function(){ft.removeEventListener("mousedown",ve),ft.ownerDocument.removeEventListener("mouseup",Ue),ft.ownerDocument.removeEventListener("mousemove",Te),xe()}}},[Lt])}var ne=10;function Ce(Lt,Ot,mt,ft,pt,At,le,xe){var ae=Kt.useRef(),ve=Kt.useState(null),Ue=(0,ee.Z)(ve,2),Te=Ue[0],ke=Ue[1];return(0,oe.Z)(function(){if(Te&&Te.times<ne){if(!Lt.current){ke(function(To){return(0,re.Z)({},To)});return}At();var nn=Te.targetAlign,Wn=Te.originAlign,an=Te.index,gn=Te.offset,Bn=Lt.current.clientHeight,ti=!1,Rn=nn,Ri=null;if(Bn){for(var dr=nn||Wn,Ji=0,mr=0,Mr=0,ro=Math.min(Ot.length-1,an),Jr=0;Jr<=ro;Jr+=1){var $r=pt(Ot[Jr]);mr=Ji;var Tr=mt.get($r);Mr=mr+(Tr===void 0?ft:Tr),Ji=Mr}for(var Wr=dr==="top"?gn:Bn-gn,oo=ro;oo>=0;oo-=1){var Uo=pt(Ot[oo]),is=mt.get(Uo);if(is===void 0){ti=!0;break}if(Wr-=is,Wr<=0)break}switch(dr){case"top":Ri=mr-gn;break;case"bottom":Ri=Mr-Bn+gn;break;default:{var uo=Lt.current.scrollTop,Ss=uo+Bn;mr<uo?Rn="top":Mr>Ss&&(Rn="bottom")}}Ri!==null&&le(Ri),Ri!==Te.lastTop&&(ti=!0)}ti&&ke((0,re.Z)((0,re.Z)({},Te),{},{times:Te.times+1,targetAlign:Rn,lastTop:Ri}))}},[Te,Lt.current]),function(nn){if(nn==null){xe();return}if(xt.Z.cancel(ae.current),typeof nn=="number")le(nn);else if(nn&&(0,ce.Z)(nn)==="object"){var Wn,an=nn.align;"index"in nn?Wn=nn.index:Wn=Ot.findIndex(function(ti){return pt(ti)===nn.key});var gn=nn.offset,Bn=gn===void 0?0:gn;ke({times:0,index:Wn,offset:Bn,originAlign:an})}}}var bn=Kt.forwardRef(function(Lt,Ot){var mt=Lt.prefixCls,ft=Lt.rtl,pt=Lt.scrollOffset,At=Lt.scrollRange,le=Lt.onStartMove,xe=Lt.onStopMove,ae=Lt.onScroll,ve=Lt.horizontal,Ue=Lt.spinSize,Te=Lt.containerSize,ke=Lt.style,nn=Lt.thumbStyle,Wn=Lt.showScrollBar,an=Kt.useState(!1),gn=(0,ee.Z)(an,2),Bn=gn[0],ti=gn[1],Rn=Kt.useState(null),Ri=(0,ee.Z)(Rn,2),dr=Ri[0],Ji=Ri[1],mr=Kt.useState(null),Mr=(0,ee.Z)(mr,2),ro=Mr[0],Jr=Mr[1],$r=!ft,Tr=Kt.useRef(),Wr=Kt.useRef(),oo=Kt.useState(Wn),Uo=(0,ee.Z)(oo,2),is=Uo[0],uo=Uo[1],Ss=Kt.useRef(),To=function(){Wn===!0||Wn===!1||(clearTimeout(Ss.current),uo(!0),Ss.current=setTimeout(function(){uo(!1)},3e3))},Xt=At-Te||0,ei=Te-Ue||0,Cs=Kt.useMemo(function(){if(pt===0||Xt===0)return 0;var Oe=pt/Xt;return Oe*ei},[pt,Xt,ei]),Os=function(qn){qn.stopPropagation(),qn.preventDefault()},ma=Kt.useRef({top:Cs,dragging:Bn,pageY:dr,startTop:ro});ma.current={top:Cs,dragging:Bn,pageY:dr,startTop:ro};var va=function(qn){ti(!0),Ji(Re(qn,ve)),Jr(ma.current.top),le(),qn.stopPropagation(),qn.preventDefault()};Kt.useEffect(function(){var Oe=function(Le){Le.preventDefault()},qn=Tr.current,xi=Wr.current;return qn.addEventListener("touchstart",Oe,{passive:!1}),xi.addEventListener("touchstart",va,{passive:!1}),function(){qn.removeEventListener("touchstart",Oe),xi.removeEventListener("touchstart",va)}},[]);var Ys=Kt.useRef();Ys.current=Xt;var Qr=Kt.useRef();Qr.current=ei,Kt.useEffect(function(){if(Bn){var Oe,qn=function(Le){var wn=ma.current,Qn=wn.dragging,Si=wn.pageY,Di=wn.startTop;xt.Z.cancel(Oe);var qe=Tr.current.getBoundingClientRect(),si=Te/(ve?qe.width:qe.height);if(Qn){var Ei=(Re(Le,ve)-Si)*si,tr=Di;!$r&&ve?tr-=Ei:tr+=Ei;var On=Ys.current,ui=Qr.current,Cr=ui?tr/ui:0,rr=Math.ceil(Cr*On);rr=Math.max(rr,0),rr=Math.min(rr,On),Oe=(0,xt.Z)(function(){ae(rr,ve)})}},xi=function(){ti(!1),xe()};return window.addEventListener("mousemove",qn,{passive:!0}),window.addEventListener("touchmove",qn,{passive:!0}),window.addEventListener("mouseup",xi,{passive:!0}),window.addEventListener("touchend",xi,{passive:!0}),function(){window.removeEventListener("mousemove",qn),window.removeEventListener("touchmove",qn),window.removeEventListener("mouseup",xi),window.removeEventListener("touchend",xi),xt.Z.cancel(Oe)}}},[Bn]),Kt.useEffect(function(){return To(),function(){clearTimeout(Ss.current)}},[pt]),Kt.useImperativeHandle(Ot,function(){return{delayHidden:To}});var Dr="".concat(mt,"-scrollbar"),In={position:"absolute",visibility:is?null:"hidden"},Tn={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return ve?(In.height=8,In.left=0,In.right=0,In.bottom=0,Tn.height="100%",Tn.width=Ue,$r?Tn.left=Cs:Tn.right=Cs):(In.width=8,In.top=0,In.bottom=0,$r?In.right=0:In.left=0,Tn.width="100%",Tn.height=Ue,Tn.top=Cs),Kt.createElement("div",{ref:Tr,className:jt()(Dr,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(Dr,"-horizontal"),ve),"".concat(Dr,"-vertical"),!ve),"".concat(Dr,"-visible"),is)),style:(0,re.Z)((0,re.Z)({},In),ke),onMouseDown:Os,onMouseMove:To},Kt.createElement("div",{ref:Wr,className:jt()("".concat(Dr,"-thumb"),(0,Ie.Z)({},"".concat(Dr,"-thumb-moving"),Bn)),style:(0,re.Z)((0,re.Z)({},Tn),nn),onMouseDown:va}))}),Ln=bn,Ze=20;function Mn(){var Lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,mt=Lt/Ot*Lt;return isNaN(mt)&&(mt=0),mt=Math.max(mt,Ze),Math.floor(mt)}var Vn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],gi=[],Kn={overflowY:"auto",overflowAnchor:"none"};function Bi(Lt,Ot){var mt=Lt.prefixCls,ft=mt===void 0?"rc-virtual-list":mt,pt=Lt.className,At=Lt.height,le=Lt.itemHeight,xe=Lt.fullHeight,ae=xe===void 0?!0:xe,ve=Lt.style,Ue=Lt.data,Te=Lt.children,ke=Lt.itemKey,nn=Lt.virtual,Wn=Lt.direction,an=Lt.scrollWidth,gn=Lt.component,Bn=gn===void 0?"div":gn,ti=Lt.onScroll,Rn=Lt.onVirtualScroll,Ri=Lt.onVisibleChange,dr=Lt.innerProps,Ji=Lt.extraRender,mr=Lt.styles,Mr=Lt.showScrollBar,ro=Mr===void 0?"optional":Mr,Jr=(0,Vt.Z)(Lt,Vn),$r=Kt.useCallback(function(ls){return typeof ke=="function"?ke(ls):ls==null?void 0:ls[ke]},[ke]),Tr=Ge($r,null,null),Wr=(0,ee.Z)(Tr,4),oo=Wr[0],Uo=Wr[1],is=Wr[2],uo=Wr[3],Ss=!!(nn!==!1&&At&&le),To=Kt.useMemo(function(){return Object.values(is.maps).reduce(function(ls,Go){return ls+Go},0)},[is.id,is.maps]),Xt=Ss&&Ue&&(Math.max(le*Ue.length,To)>At||!!an),ei=Wn==="rtl",Cs=jt()(ft,(0,Ie.Z)({},"".concat(ft,"-rtl"),ei),pt),Os=Ue||gi,ma=(0,Kt.useRef)(),va=(0,Kt.useRef)(),Ys=(0,Kt.useRef)(),Qr=(0,Kt.useState)(0),Dr=(0,ee.Z)(Qr,2),In=Dr[0],Tn=Dr[1],Oe=(0,Kt.useState)(0),qn=(0,ee.Z)(Oe,2),xi=qn[0],An=qn[1],Le=(0,Kt.useState)(!1),wn=(0,ee.Z)(Le,2),Qn=wn[0],Si=wn[1],Di=function(){Si(!0)},qe=function(){Si(!1)},si={getKey:$r};function Ei(ls){Tn(function(Go){var Ns;typeof ls=="function"?Ns=ls(Go):Ns=ls;var Wo=Fo(Ns);return ma.current.scrollTop=Wo,Wo})}var tr=(0,Kt.useRef)({start:0,end:Os.length}),On=(0,Kt.useRef)(),ui=dt(Os,$r),Cr=(0,ee.Z)(ui,1),rr=Cr[0];On.current=rr;var Gr=Kt.useMemo(function(){if(!Ss)return{scrollHeight:void 0,start:0,end:Os.length-1,offset:void 0};if(!Xt){var ls;return{scrollHeight:((ls=va.current)===null||ls===void 0?void 0:ls.offsetHeight)||0,start:0,end:Os.length-1,offset:void 0}}for(var Go=0,Ns,Wo,Gs,wl=Os.length,ho=0;ho<wl;ho+=1){var mo=Os[ho],Vi=$r(mo),Po=is.get(Vi),Bs=Go+(Po===void 0?le:Po);Bs>=In&&Ns===void 0&&(Ns=ho,Wo=Go),Bs>In+At&&Gs===void 0&&(Gs=ho),Go=Bs}return Ns===void 0&&(Ns=0,Wo=0,Gs=Math.ceil(At/le)),Gs===void 0&&(Gs=Os.length-1),Gs=Math.min(Gs+1,Os.length-1),{scrollHeight:Go,start:Ns,end:Gs,offset:Wo}},[Xt,Ss,In,Os,uo,At]),or=Gr.scrollHeight,Lr=Gr.start,er=Gr.end,Pr=Gr.offset;tr.current.start=Lr,tr.current.end=er,Kt.useLayoutEffect(function(){var ls=is.getRecord();if(ls.size===1){var Go=Array.from(ls)[0],Ns=Os[Lr];if(Ns){var Wo=$r(Ns);if(Wo===Go){var Gs=is.get(Go),wl=Gs-le;Ei(function(ho){return ho+wl})}}}is.resetRecord()},[or]);var io=Kt.useState({width:0,height:At}),Oo=(0,ee.Z)(io,2),pi=Oo[0],_o=Oo[1],ys=function(Go){_o({width:Go.offsetWidth,height:Go.offsetHeight})},Zo=(0,Kt.useRef)(),vi=(0,Kt.useRef)(),ur=Kt.useMemo(function(){return Mn(pi.width,an)},[pi.width,an]),_r=Kt.useMemo(function(){return Mn(pi.height,or)},[pi.height,or]),so=or-At,to=(0,Kt.useRef)(so);to.current=so;function Fo(ls){var Go=ls;return Number.isNaN(to.current)||(Go=Math.min(Go,to.current)),Go=Math.max(Go,0),Go}var Ai=In<=0,yo=In>=so,jr=xi<=0,Sr=xi>=an,Pi=Gt(Ai,yo,jr,Sr),wo=function(){return{x:ei?-xi:xi,y:In}},Ci=(0,Kt.useRef)(wo()),Xo=(0,Pt.useEvent)(function(ls){if(Rn){var Go=(0,re.Z)((0,re.Z)({},wo()),ls);(Ci.current.x!==Go.x||Ci.current.y!==Go.y)&&(Rn(Go),Ci.current=Go)}});function ua(ls,Go){var Ns=ls;Go?((0,$t.flushSync)(function(){An(Ns)}),Xo()):Ei(Ns)}function xs(ls){var Go=ls.currentTarget.scrollTop;Go!==In&&Ei(Go),ti==null||ti(ls),Xo()}var da=function(Go){var Ns=Go,Wo=an?an-pi.width:0;return Ns=Math.max(Ns,0),Ns=Math.min(Ns,Wo),Ns},Js=(0,Pt.useEvent)(function(ls,Go){Go?((0,$t.flushSync)(function(){An(function(Ns){var Wo=Ns+(ei?-ls:ls);return da(Wo)})}),Xo()):Ei(function(Ns){var Wo=Ns+ls;return Wo})}),Lo=se(Ss,Ai,yo,jr,Sr,!!an,Js),Do=(0,ee.Z)(Lo,2),As=Do[0],hs=Do[1];Me(Ss,ma,function(ls,Go,Ns,Wo){var Gs=Wo;return Pi(ls,Go,Ns)?!1:!Gs||!Gs._virtualHandled?(Gs&&(Gs._virtualHandled=!0),As({preventDefault:function(){},deltaX:ls?Go:0,deltaY:ls?0:Go}),!0):!1}),ye(Xt,ma,function(ls){Ei(function(Go){return Go+ls})}),(0,oe.Z)(function(){function ls(Ns){var Wo=Ai&&Ns.detail<0,Gs=yo&&Ns.detail>0;Ss&&!Wo&&!Gs&&Ns.preventDefault()}var Go=ma.current;return Go.addEventListener("wheel",As,{passive:!1}),Go.addEventListener("DOMMouseScroll",hs,{passive:!0}),Go.addEventListener("MozMousePixelScroll",ls,{passive:!1}),function(){Go.removeEventListener("wheel",As),Go.removeEventListener("DOMMouseScroll",hs),Go.removeEventListener("MozMousePixelScroll",ls)}},[Ss,Ai,yo]),(0,oe.Z)(function(){if(an){var ls=da(xi);An(ls),Xo({x:ls})}},[pi.width,an]);var wr=function(){var Go,Ns;(Go=Zo.current)===null||Go===void 0||Go.delayHidden(),(Ns=vi.current)===null||Ns===void 0||Ns.delayHidden()},Ne=Ce(ma,Os,is,le,$r,function(){return Uo(!0)},Ei,wr);Kt.useImperativeHandle(Ot,function(){return{nativeElement:Ys.current,getScrollInfo:wo,scrollTo:function(Go){function Ns(Wo){return Wo&&(0,ce.Z)(Wo)==="object"&&("left"in Wo||"top"in Wo)}Ns(Go)?(Go.left!==void 0&&An(da(Go.left)),Ne(Go.top)):Ne(Go)}}}),(0,oe.Z)(function(){if(Ri){var ls=Os.slice(Lr,er+1);Ri(ls,Os)}},[Lr,er,Os]);var ds=ue(Os,$r,is,le),ia=Ji==null?void 0:Ji({start:Lr,end:er,virtual:Xt,offsetX:xi,offsetY:Pr,rtl:ei,getSize:ds}),ll=lt(Os,Lr,er,an,xi,oo,Te,si),ul=null;At&&(ul=(0,re.Z)((0,Ie.Z)({},ae?"height":"maxHeight",At),Kn),Ss&&(ul.overflowY="hidden",an&&(ul.overflowX="hidden"),Qn&&(ul.pointerEvents="none")));var Ml={};return ei&&(Ml.dir="rtl"),Kt.createElement("div",(0,Mt.Z)({ref:Ys,style:(0,re.Z)((0,re.Z)({},ve),{},{position:"relative"}),className:Cs},Ml,Jr),Kt.createElement(te.Z,{onResize:ys},Kt.createElement(Bn,{className:"".concat(ft,"-holder"),style:ul,ref:ma,onScroll:xs,onMouseEnter:wr},Kt.createElement(et,{prefixCls:ft,height:or,offsetX:xi,offsetY:Pr,scrollWidth:an,onInnerResize:Uo,ref:va,innerProps:dr,rtl:ei,extra:ia},ll))),Xt&&or>At&&Kt.createElement(Ln,{ref:Zo,prefixCls:ft,scrollOffset:In,scrollRange:or,rtl:ei,onScroll:ua,onStartMove:Di,onStopMove:qe,spinSize:_r,containerSize:pi.height,style:mr==null?void 0:mr.verticalScrollBar,thumbStyle:mr==null?void 0:mr.verticalScrollBarThumb,showScrollBar:ro}),Xt&&an>pi.width&&Kt.createElement(Ln,{ref:vi,prefixCls:ft,scrollOffset:xi,scrollRange:an,rtl:ei,onScroll:ua,onStartMove:Di,onStopMove:qe,spinSize:ur,containerSize:pi.width,horizontal:!0,style:mr==null?void 0:mr.horizontalScrollBar,thumbStyle:mr==null?void 0:mr.horizontalScrollBarThumb,showScrollBar:ro}))}var en=Kt.forwardRef(Bi);en.displayName="List";var Li=en,Oi=Li},2637:function(hi,Cn,Ft){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Object.defineProperty(Cn,"DraggableCore",{enumerable:!0,get:function(){return jt.default}}),Cn.default=void 0;var Mt=Kt(Ft(59301)),ce=Pt(Ft(12708)),re=Pt(Ft(4676)),Ie=Pt(Ft(57780)),ee=Ft(13957),Vt=Ft(60976),Nt=Ft(36641),jt=Pt(Ft(80486)),te=Pt(Ft(94187));function Pt(rt){return rt&&rt.__esModule?rt:{default:rt}}function oe(rt){if(typeof WeakMap!="function")return null;var ht=new WeakMap,dt=new WeakMap;return(oe=function(xt){return xt?dt:ht})(rt)}function Kt(rt,ht){if(!ht&&rt&&rt.__esModule)return rt;if(rt===null||typeof rt!="object"&&typeof rt!="function")return{default:rt};var dt=oe(ht);if(dt&&dt.has(rt))return dt.get(rt);var xt={},It=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ut in rt)if(Ut!=="default"&&Object.prototype.hasOwnProperty.call(rt,Ut)){var Gt=It?Object.getOwnPropertyDescriptor(rt,Ut):null;Gt&&(Gt.get||Gt.set)?Object.defineProperty(xt,Ut,Gt):xt[Ut]=rt[Ut]}return xt.default=rt,dt&&dt.set(rt,xt),xt}function $t(){return $t=Object.assign?Object.assign.bind():function(rt){for(var ht=1;ht<arguments.length;ht++){var dt=arguments[ht];for(var xt in dt)Object.prototype.hasOwnProperty.call(dt,xt)&&(rt[xt]=dt[xt])}return rt},$t.apply(this,arguments)}function Ct(rt,ht,dt){return ht=et(ht),ht in rt?Object.defineProperty(rt,ht,{value:dt,enumerable:!0,configurable:!0,writable:!0}):rt[ht]=dt,rt}function et(rt){var ht=tt(rt,"string");return typeof ht=="symbol"?ht:String(ht)}function tt(rt,ht){if(typeof rt!="object"||rt===null)return rt;var dt=rt[Symbol.toPrimitive];if(dt!==void 0){var xt=dt.call(rt,ht||"default");if(typeof xt!="object")return xt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ht==="string"?String:Number)(rt)}class lt extends Mt.Component{static getDerivedStateFromProps(ht,dt){let{position:xt}=ht,{prevPropsPosition:It}=dt;return xt&&(!It||xt.x!==It.x||xt.y!==It.y)?((0,te.default)("Draggable: getDerivedStateFromProps %j",{position:xt,prevPropsPosition:It}),{x:xt.x,y:xt.y,prevPropsPosition:xg({},xt)}):null}constructor(ht){super(ht),Ct(this,"onDragStart",(dt,xt)=>{if((0,te.default)("Draggable: onDragStart: %j",xt),this.props.onStart(dt,(0,Vt.createDraggableData)(this,xt))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),Ct(this,"onDrag",(dt,xt)=>{if(!this.state.dragging)return!1;(0,te.default)("Draggable: onDrag: %j",xt);const It=(0,Vt.createDraggableData)(this,xt),Ut={x:It.x,y:It.y,slackX:0,slackY:0};if(this.props.bounds){const{x:se,y:ue}=Ut;Ut.x+=this.state.slackX,Ut.y+=this.state.slackY;const[Ae,Pe]=(0,Vt.getBoundPosition)(this,Ut.x,Ut.y);Ut.x=Ae,Ut.y=Pe,Ut.slackX=this.state.slackX+(se-Ut.x),Ut.slackY=this.state.slackY+(ue-Ut.y),It.x=Ut.x,It.y=Ut.y,It.deltaX=Ut.x-this.state.x,It.deltaY=Ut.y-this.state.y}if(this.props.onDrag(dt,It)===!1)return!1;this.setState(Ut)}),Ct(this,"onDragStop",(dt,xt)=>{if(!this.state.dragging||this.props.onStop(dt,(0,Vt.createDraggableData)(this,xt))===!1)return!1;(0,te.default)("Draggable: onDragStop: %j",xt);const Ut={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:se,y:ue}=this.props.position;Ut.x=se,Ut.y=ue}this.setState(Ut)}),this.state={dragging:!1,dragged:!1,x:ht.position?ht.position.x:ht.defaultPosition.x,y:ht.position?ht.position.y:ht.defaultPosition.y,prevPropsPosition:xg({},ht.position),slackX:0,slackY:0,isElementSVG:!1},ht.position&&!(ht.onDrag||ht.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var ht,dt;return(ht=(dt=this.props)===null||dt===void 0||(dt=dt.nodeRef)===null||dt===void 0?void 0:dt.current)!==null&&ht!==void 0?ht:re.default.findDOMNode(this)}render(){const ye=this.props,{axis:ht,bounds:dt,children:xt,defaultPosition:It,defaultClassName:Ut,defaultClassNameDragging:Gt,defaultClassNameDragged:se,position:ue,positionOffset:Ae,scale:Pe}=ye,qt=Pw(ye,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let ze={},Wt=null;const _e=!!!ue||this.state.dragging,Me=ue||It,We={x:(0,Vt.canDragX)(this)&&_e?this.state.x:Me.x,y:(0,Vt.canDragY)(this)&&_e?this.state.y:Me.y};this.state.isElementSVG?Wt=(0,ee.createSVGTransform)(We,Ae):ze=(0,ee.createCSSTransform)(We,Ae);const Re=(0,Ie.default)(xt.props.className||"",Ut,{[Gt]:this.state.dragging,[se]:this.state.dragged});return Mt.createElement(jt.default,$t({},qt,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),Mt.cloneElement(Mt.Children.only(xt),{className:Re,style:xg(xg({},xt.props.style),ze),transform:Wt}))}}Cn.default=lt,Ct(lt,"displayName","Draggable"),Ct(lt,"propTypes",Iy(xg({},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:Nt.dontSetMe,style:Nt.dontSetMe,transform:Nt.dontSetMe})),Ct(lt,"defaultProps",Iy(xg({},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(hi,Cn,Ft){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=void 0;var Mt=Pt(Ft(59301)),ce=jt(Ft(12708)),re=jt(Ft(4676)),Ie=Ft(13957),ee=Ft(60976),Vt=Ft(36641),Nt=jt(Ft(94187));function jt(lt){return lt&<.__esModule?lt:{default:lt}}function te(lt){if(typeof WeakMap!="function")return null;var rt=new WeakMap,ht=new WeakMap;return(te=function(dt){return dt?ht:rt})(lt)}function Pt(lt,rt){if(!rt&<&<.__esModule)return lt;if(lt===null||typeof lt!="object"&&typeof lt!="function")return{default:lt};var ht=te(rt);if(ht&&ht.has(lt))return ht.get(lt);var dt={},xt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var It in lt)if(It!=="default"&&Object.prototype.hasOwnProperty.call(lt,It)){var Ut=xt?Object.getOwnPropertyDescriptor(lt,It):null;Ut&&(Ut.get||Ut.set)?Object.defineProperty(dt,It,Ut):dt[It]=lt[It]}return dt.default=lt,ht&&ht.set(lt,dt),dt}function oe(lt,rt,ht){return rt=Kt(rt),rt in lt?Object.defineProperty(lt,rt,{value:ht,enumerable:!0,configurable:!0,writable:!0}):lt[rt]=ht,lt}function Kt(lt){var rt=$t(lt,"string");return typeof rt=="symbol"?rt:String(rt)}function $t(lt,rt){if(typeof lt!="object"||lt===null)return lt;var ht=lt[Symbol.toPrimitive];if(ht!==void 0){var dt=ht.call(lt,rt||"default");if(typeof dt!="object")return dt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(rt==="string"?String:Number)(lt)}const Ct={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let et=Ct.mouse;class tt extends Mt.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 ht=this.findDOMNode();if(!ht||!ht.ownerDocument||!ht.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:dt}=ht;if(this.props.disabled||!(rt.target instanceof dt.defaultView.Node)||this.props.handle&&!(0,Ie.matchesSelectorAndParentsTo)(rt.target,this.props.handle,ht)||this.props.cancel&&(0,Ie.matchesSelectorAndParentsTo)(rt.target,this.props.cancel,ht))return;rt.type==="touchstart"&&rt.preventDefault();const xt=(0,Ie.getTouchIdentifier)(rt);this.touchIdentifier=xt;const It=(0,ee.getControlPosition)(rt,xt,this);if(It==null)return;const{x:Ut,y:Gt}=It,se=(0,ee.createCoreData)(this,Ut,Gt);(0,Nt.default)("DraggableCore: handleDragStart: %j",se),(0,Nt.default)("calling",this.props.onStart),!(this.props.onStart(rt,se)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,Ie.addUserSelectStyles)(dt),this.dragging=!0,this.lastX=Ut,this.lastY=Gt,(0,Ie.addEvent)(dt,et.move,this.handleDrag),(0,Ie.addEvent)(dt,et.stop,this.handleDragStop))}),oe(this,"handleDrag",rt=>{const ht=(0,ee.getControlPosition)(rt,this.touchIdentifier,this);if(ht==null)return;let{x:dt,y:xt}=ht;if(Array.isArray(this.props.grid)){let Gt=dt-this.lastX,se=xt-this.lastY;if([Gt,se]=(0,ee.snapToGrid)(this.props.grid,Gt,se),!Gt&&!se)return;dt=this.lastX+Gt,xt=this.lastY+se}const It=(0,ee.createCoreData)(this,dt,xt);if((0,Nt.default)("DraggableCore: handleDrag: %j",It),this.props.onDrag(rt,It)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(Gt){const se=document.createEvent("MouseEvents");se.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(se)}return}this.lastX=dt,this.lastY=xt}),oe(this,"handleDragStop",rt=>{if(!this.dragging)return;const ht=(0,ee.getControlPosition)(rt,this.touchIdentifier,this);if(ht==null)return;let{x:dt,y:xt}=ht;if(Array.isArray(this.props.grid)){let se=dt-this.lastX||0,ue=xt-this.lastY||0;[se,ue]=(0,ee.snapToGrid)(this.props.grid,se,ue),dt=this.lastX+se,xt=this.lastY+ue}const It=(0,ee.createCoreData)(this,dt,xt);if(this.props.onStop(rt,It)===!1||this.mounted===!1)return!1;const Gt=this.findDOMNode();Gt&&this.props.enableUserSelectHack&&(0,Ie.removeUserSelectStyles)(Gt.ownerDocument),(0,Nt.default)("DraggableCore: handleDragStop: %j",It),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,Gt&&((0,Nt.default)("DraggableCore: Removing handlers"),(0,Ie.removeEvent)(Gt.ownerDocument,et.move,this.handleDrag),(0,Ie.removeEvent)(Gt.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,Ie.addEvent)(rt,Ct.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const rt=this.findDOMNode();if(rt){const{ownerDocument:ht}=rt;(0,Ie.removeEvent)(ht,Ct.mouse.move,this.handleDrag),(0,Ie.removeEvent)(ht,Ct.touch.move,this.handleDrag),(0,Ie.removeEvent)(ht,Ct.mouse.stop,this.handleDragStop),(0,Ie.removeEvent)(ht,Ct.touch.stop,this.handleDragStop),(0,Ie.removeEvent)(rt,Ct.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Ie.removeUserSelectStyles)(ht)}}findDOMNode(){var rt,ht;return(rt=this.props)!==null&&rt!==void 0&&rt.nodeRef?(ht=this.props)===null||ht===void 0||(ht=ht.nodeRef)===null||ht===void 0?void 0:ht.current:re.default.findDOMNode(this)}render(){return Mt.cloneElement(Mt.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}Cn.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]&<[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:Vt.dontSetMe,style:Vt.dontSetMe,transform:Vt.dontSetMe}),oe(tt,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},12911:function(hi,Cn,Ft){"use strict";const{default:Mt,DraggableCore:ce}=Ft(2637);hi.exports=Mt,hi.exports.default=Mt,hi.exports.DraggableCore=ce},13957:function(hi,Cn,Ft){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.addClassName=It,Cn.addEvent=jt,Cn.addUserSelectStyles=dt,Cn.createCSSTransform=et,Cn.createSVGTransform=tt,Cn.getTouch=rt,Cn.getTouchIdentifier=ht,Cn.getTranslation=lt,Cn.innerHeight=Kt,Cn.innerWidth=$t,Cn.matchesSelector=Vt,Cn.matchesSelectorAndParentsTo=Nt,Cn.offsetXYFromParent=Ct,Cn.outerHeight=Pt,Cn.outerWidth=oe,Cn.removeClassName=Ut,Cn.removeEvent=te,Cn.removeUserSelectStyles=xt;var Mt=Ft(36641),ce=Ie(Ft(32092));function re(Gt){if(typeof WeakMap!="function")return null;var se=new WeakMap,ue=new WeakMap;return(re=function(Ae){return Ae?ue:se})(Gt)}function Ie(Gt,se){if(!se&&Gt&&Gt.__esModule)return Gt;if(Gt===null||typeof Gt!="object"&&typeof Gt!="function")return{default:Gt};var ue=re(se);if(ue&&ue.has(Gt))return ue.get(Gt);var Ae={},Pe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var qt in Gt)if(qt!=="default"&&Object.prototype.hasOwnProperty.call(Gt,qt)){var ze=Pe?Object.getOwnPropertyDescriptor(Gt,qt):null;ze&&(ze.get||ze.set)?Object.defineProperty(Ae,qt,ze):Ae[qt]=Gt[qt]}return Ae.default=Gt,ue&&ue.set(Gt,Ae),Ae}let ee="";function Vt(Gt,se){return ee||(ee=(0,Mt.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(ue){return(0,Mt.isFunction)(Gt[ue])})),(0,Mt.isFunction)(Gt[ee])?Gt[ee](se):!1}function Nt(Gt,se,ue){let Ae=Gt;do{if(Vt(Ae,se))return!0;if(Ae===ue)return!1;Ae=Ae.parentNode}while(Ae);return!1}function jt(Gt,se,ue,Ae){if(!Gt)return;const Pe=xg({capture:!0},Ae);Gt.addEventListener?Gt.addEventListener(se,ue,Pe):Gt.attachEvent?Gt.attachEvent("on"+se,ue):Gt["on"+se]=ue}function te(Gt,se,ue,Ae){if(!Gt)return;const Pe=xg({capture:!0},Ae);Gt.removeEventListener?Gt.removeEventListener(se,ue,Pe):Gt.detachEvent?Gt.detachEvent("on"+se,ue):Gt["on"+se]=null}function Pt(Gt){let se=Gt.clientHeight;const ue=Gt.ownerDocument.defaultView.getComputedStyle(Gt);return se+=(0,Mt.int)(ue.borderTopWidth),se+=(0,Mt.int)(ue.borderBottomWidth),se}function oe(Gt){let se=Gt.clientWidth;const ue=Gt.ownerDocument.defaultView.getComputedStyle(Gt);return se+=(0,Mt.int)(ue.borderLeftWidth),se+=(0,Mt.int)(ue.borderRightWidth),se}function Kt(Gt){let se=Gt.clientHeight;const ue=Gt.ownerDocument.defaultView.getComputedStyle(Gt);return se-=(0,Mt.int)(ue.paddingTop),se-=(0,Mt.int)(ue.paddingBottom),se}function $t(Gt){let se=Gt.clientWidth;const ue=Gt.ownerDocument.defaultView.getComputedStyle(Gt);return se-=(0,Mt.int)(ue.paddingLeft),se-=(0,Mt.int)(ue.paddingRight),se}function Ct(Gt,se,ue){const Pe=se===se.ownerDocument.body?{left:0,top:0}:se.getBoundingClientRect(),qt=(Gt.clientX+se.scrollLeft-Pe.left)/ue,ze=(Gt.clientY+se.scrollTop-Pe.top)/ue;return{x:qt,y:ze}}function et(Gt,se){const ue=lt(Gt,se,"px");return{[(0,ce.browserPrefixToKey)("transform",ce.default)]:ue}}function tt(Gt,se){return lt(Gt,se,"")}function lt(Gt,se,ue){let{x:Ae,y:Pe}=Gt,qt="translate(".concat(Ae).concat(ue,",").concat(Pe).concat(ue,")");if(se){const ze="".concat(typeof se.x=="string"?se.x:se.x+ue),Wt="".concat(typeof se.y=="string"?se.y:se.y+ue);qt="translate(".concat(ze,", ").concat(Wt,")")+qt}return qt}function rt(Gt,se){return Gt.targetTouches&&(0,Mt.findInArray)(Gt.targetTouches,ue=>se===ue.identifier)||Gt.changedTouches&&(0,Mt.findInArray)(Gt.changedTouches,ue=>se===ue.identifier)}function ht(Gt){if(Gt.targetTouches&&Gt.targetTouches[0])return Gt.targetTouches[0].identifier;if(Gt.changedTouches&&Gt.changedTouches[0])return Gt.changedTouches[0].identifier}function dt(Gt){if(!Gt)return;let se=Gt.getElementById("react-draggable-style-el");se||(se=Gt.createElement("style"),se.type="text/css",se.id="react-draggable-style-el",se.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
|
`,se.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
|
`,Gt.getElementsByTagName("head")[0].appendChild(se)),Gt.body&&It(Gt.body,"react-draggable-transparent-selection")}function xt(Gt){if(Gt)try{if(Gt.body&&Ut(Gt.body,"react-draggable-transparent-selection"),Gt.selection)Gt.selection.empty();else{const se=(Gt.defaultView||window).getSelection();se&&se.type!=="Caret"&&se.removeAllRanges()}}catch(se){}}function It(Gt,se){Gt.classList?Gt.classList.add(se):Gt.className.match(new RegExp("(?:^|\\s)".concat(se,"(?!\\S)")))||(Gt.className+=" ".concat(se))}function Ut(Gt,se){Gt.classList?Gt.classList.remove(se):Gt.className=Gt.className.replace(new RegExp("(?:^|\\s)".concat(se,"(?!\\S)"),"g"),"")}},32092:function(hi,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.browserPrefixToKey=ce,Cn.browserPrefixToStyle=re,Cn.default=void 0,Cn.getPrefix=Mt;const Ft=["Moz","Webkit","O","ms"];function Mt(){var Vt;let Nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const jt=(Vt=window.document)===null||Vt===void 0||(Vt=Vt.documentElement)===null||Vt===void 0?void 0:Vt.style;if(!jt||Nt in jt)return"";for(let te=0;te<Ft.length;te++)if(ce(Nt,Ft[te])in jt)return Ft[te];return""}function ce(Vt,Nt){return Nt?"".concat(Nt).concat(Ie(Vt)):Vt}function re(Vt,Nt){return Nt?"-".concat(Nt.toLowerCase(),"-").concat(Vt):Vt}function Ie(Vt){let Nt="",jt=!0;for(let te=0;te<Vt.length;te++)jt?(Nt+=Vt[te].toUpperCase(),jt=!1):Vt[te]==="-"?jt=!0:Nt+=Vt[te];return Nt}var ee=Cn.default=Mt()},94187:function(hi,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=Ft;function Ft(){}},60976:function(hi,Cn,Ft){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.canDragX=ee,Cn.canDragY=Vt,Cn.createCoreData=jt,Cn.createDraggableData=te,Cn.getBoundPosition=re,Cn.getControlPosition=Nt,Cn.snapToGrid=Ie;var Mt=Ft(36641),ce=Ft(13957);function re(Kt,$t,Ct){if(!Kt.props.bounds)return[$t,Ct];let{bounds:et}=Kt.props;et=typeof et=="string"?et:Pt(et);const tt=oe(Kt);if(typeof et=="string"){const{ownerDocument:lt}=tt,rt=lt.defaultView;let ht;if(et==="parent"?ht=tt.parentNode:ht=lt.querySelector(et),!(ht instanceof rt.HTMLElement))throw new Error('Bounds selector "'+et+'" could not find an element.');const dt=ht,xt=rt.getComputedStyle(tt),It=rt.getComputedStyle(dt);et={left:-tt.offsetLeft+(0,Mt.int)(It.paddingLeft)+(0,Mt.int)(xt.marginLeft),top:-tt.offsetTop+(0,Mt.int)(It.paddingTop)+(0,Mt.int)(xt.marginTop),right:(0,ce.innerWidth)(dt)-(0,ce.outerWidth)(tt)-tt.offsetLeft+(0,Mt.int)(It.paddingRight)-(0,Mt.int)(xt.marginRight),bottom:(0,ce.innerHeight)(dt)-(0,ce.outerHeight)(tt)-tt.offsetTop+(0,Mt.int)(It.paddingBottom)-(0,Mt.int)(xt.marginBottom)}}return(0,Mt.isNum)(et.right)&&($t=Math.min($t,et.right)),(0,Mt.isNum)(et.bottom)&&(Ct=Math.min(Ct,et.bottom)),(0,Mt.isNum)(et.left)&&($t=Math.max($t,et.left)),(0,Mt.isNum)(et.top)&&(Ct=Math.max(Ct,et.top)),[$t,Ct]}function Ie(Kt,$t,Ct){const et=Math.round($t/Kt[0])*Kt[0],tt=Math.round(Ct/Kt[1])*Kt[1];return[et,tt]}function ee(Kt){return Kt.props.axis==="both"||Kt.props.axis==="x"}function Vt(Kt){return Kt.props.axis==="both"||Kt.props.axis==="y"}function Nt(Kt,$t,Ct){const et=typeof $t=="number"?(0,ce.getTouch)(Kt,$t):null;if(typeof $t=="number"&&!et)return null;const tt=oe(Ct),lt=Ct.props.offsetParent||tt.offsetParent||tt.ownerDocument.body;return(0,ce.offsetXYFromParent)(et||Kt,lt,Ct.props.scale)}function jt(Kt,$t,Ct){const et=!(0,Mt.isNum)(Kt.lastX),tt=oe(Kt);return et?{node:tt,deltaX:0,deltaY:0,lastX:$t,lastY:Ct,x:$t,y:Ct}:{node:tt,deltaX:$t-Kt.lastX,deltaY:Ct-Kt.lastY,lastX:Kt.lastX,lastY:Kt.lastY,x:$t,y:Ct}}function te(Kt,$t){const Ct=Kt.props.scale;return{node:$t.node,x:Kt.state.x+$t.deltaX/Ct,y:Kt.state.y+$t.deltaY/Ct,deltaX:$t.deltaX/Ct,deltaY:$t.deltaY/Ct,lastX:Kt.state.x,lastY:Kt.state.y}}function Pt(Kt){return{left:Kt.left,top:Kt.top,right:Kt.right,bottom:Kt.bottom}}function oe(Kt){const $t=Kt.findDOMNode();if(!$t)throw new Error("<DraggableCore>: Unmounted during event!");return $t}},36641:function(hi,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.dontSetMe=Ie,Cn.findInArray=Ft,Cn.int=re,Cn.isFunction=Mt,Cn.isNum=ce;function Ft(ee,Vt){for(let Nt=0,jt=ee.length;Nt<jt;Nt++)if(Vt.apply(Vt,[ee[Nt],Nt,ee]))return ee[Nt]}function Mt(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 Ie(ee,Vt,Nt){if(ee[Vt])return new Error("Invalid prop ".concat(Vt," passed to ").concat(Nt," - do not set this, set it on the child."))}},27774:function(hi,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.SizeSensorId=Cn.SensorTabIndex=Cn.SensorClassName=void 0;var Ft="size-sensor-id";Cn.SizeSensorId=Ft;var Mt="size-sensor-object";Cn.SensorClassName=Mt;var ce="-1";Cn.SensorTabIndex=ce},79301:function(hi,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=void 0;var Ft=function(ce){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,Ie=null;return function(){for(var ee=this,Vt=arguments.length,Nt=new Array(Vt),jt=0;jt<Vt;jt++)Nt[jt]=arguments[jt];clearTimeout(Ie),Ie=setTimeout(function(){ce.apply(ee,Nt)},re)}};Cn.default=Ft},79789:function(hi,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=void 0;var Ft=1,Mt=function(){return"".concat(Ft++)};Cn.default=Mt},47242:function(hi,Cn,Ft){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.ver=Cn.clear=Cn.bind=void 0;var Mt=Ft(95270),ce=function(Vt,Nt){var jt=(0,Mt.getSensor)(Vt);return jt.bind(Nt),function(){jt.unbind(Nt)}};Cn.bind=ce;var re=function(Vt){var Nt=(0,Mt.getSensor)(Vt);(0,Mt.removeSensor)(Nt)};Cn.clear=re;var Ie="1.0.2";Cn.ver=Ie},95270:function(hi,Cn,Ft){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.removeSensor=Cn.getSensor=Cn.Sensors=void 0;var Mt=Ie(Ft(79789)),ce=Ft(57829),re=Ft(27774);function Ie(te){return te&&te.__esModule?te:{default:te}}var ee={};Cn.Sensors=ee;function Vt(te){te&&ee[te]&&delete ee[te]}var Nt=function(Pt){var oe=Pt.getAttribute(re.SizeSensorId);if(oe&&ee[oe])return ee[oe];var Kt=(0,Mt.default)();Pt.setAttribute(re.SizeSensorId,Kt);var $t=(0,ce.createSensor)(Pt,function(){return Vt(Kt)});return ee[Kt]=$t,$t};Cn.getSensor=Nt;var jt=function(Pt){var oe=Pt.element.getAttribute(re.SizeSensorId);Pt.destroy(),Vt(oe)};Cn.removeSensor=jt},57829:function(hi,Cn,Ft){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.createSensor=void 0;var Mt=Ft(20953),ce=Ft(55202),re=typeof ResizeObserver!="undefined"?ce.createSensor:Mt.createSensor;Cn.createSensor=re},20953:function(hi,Cn,Ft){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.createSensor=void 0;var Mt=re(Ft(79301)),ce=Ft(27774);function re(ee){return ee&&ee.__esModule?ee:{default:ee}}var Ie=function(Vt,Nt){var jt=void 0,te=[],Pt=function(){getComputedStyle(Vt).position==="static"&&(Vt.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",Vt.appendChild(tt),tt.data="about:blank",tt},oe=(0,Mt.default)(function(){te.forEach(function(et){et(Vt)})}),Kt=function(tt){jt||(jt=Pt()),te.indexOf(tt)===-1&&te.push(tt)},$t=function(){jt&&jt.parentNode&&(jt.contentDocument&&jt.contentDocument.defaultView.removeEventListener("resize",oe),jt.parentNode.removeChild(jt),Vt.removeAttribute(ce.SizeSensorId),jt=void 0,te=[],Nt&&Nt())},Ct=function(tt){var lt=te.indexOf(tt);lt!==-1&&te.splice(lt,1),te.length===0&&jt&&$t()};return{element:Vt,bind:Kt,destroy:$t,unbind:Ct}};Cn.createSensor=Ie},55202:function(hi,Cn,Ft){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.createSensor=void 0;var Mt=Ft(27774),ce=re(Ft(79301));function re(ee){return ee&&ee.__esModule?ee:{default:ee}}var Ie=function(Vt,Nt){var jt=void 0,te=[],Pt=(0,ce.default)(function(){te.forEach(function(et){et(Vt)})}),oe=function(){var tt=new ResizeObserver(Pt);return tt.observe(Vt),Pt(),tt},Kt=function(tt){jt||(jt=oe()),te.indexOf(tt)===-1&&te.push(tt)},$t=function(){jt.disconnect(),te=[],jt=void 0,Vt.removeAttribute(Mt.SizeSensorId),Nt&&Nt()},Ct=function(tt){var lt=te.indexOf(tt);lt!==-1&&te.splice(lt,1),te.length===0&&jt&&$t()};return{element:Vt,bind:Kt,destroy:$t,unbind:Ct}};Cn.createSensor=Ie},93314:function(hi){"use strict";hi.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(hi){"use strict";hi.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(hi){"use strict";hi.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(hi){"use strict";hi.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(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return jt}});const Mt=te=>typeof te=="object"&&te!=null&&te.nodeType===1,ce=(te,Pt)=>(!Pt||te!=="hidden")&&te!=="visible"&&te!=="clip",re=(te,Pt)=>{if(te.clientHeight<te.scrollHeight||te.clientWidth<te.scrollWidth){const oe=getComputedStyle(te,null);return ce(oe.overflowY,Pt)||ce(oe.overflowX,Pt)||(Kt=>{const $t=(Ct=>{if(!Ct.ownerDocument||!Ct.ownerDocument.defaultView)return null;try{return Ct.ownerDocument.defaultView.frameElement}catch(et){return null}})(Kt);return!!$t&&($t.clientHeight<Kt.scrollHeight||$t.clientWidth<Kt.scrollWidth)})(te)}return!1},Ie=(te,Pt,oe,Kt,$t,Ct,et,tt)=>Ct<te&&et>Pt||Ct>te&&et<Pt?0:Ct<=te&&tt<=oe||et>=Pt&&tt>=oe?Ct-te-Kt:et>Pt&&tt<oe||Ct<te&&tt>oe?et-Pt+$t:0,ee=te=>{const Pt=te.parentElement;return Pt==null?te.getRootNode().host||null:Pt},Vt=(te,Pt)=>{var oe,Kt,$t,Ct;if(typeof document=="undefined")return[];const{scrollMode:et,block:tt,inline:lt,boundary:rt,skipOverflowHiddenElements:ht}=Pt,dt=typeof rt=="function"?rt:Ln=>Ln!==rt;if(!Mt(te))throw new TypeError("Invalid target");const xt=document.scrollingElement||document.documentElement,It=[];let Ut=te;for(;Mt(Ut)&&dt(Ut);){if(Ut=ee(Ut),Ut===xt){It.push(Ut);break}Ut!=null&&Ut===document.body&&re(Ut)&&!re(document.documentElement)||Ut!=null&&re(Ut,ht)&&It.push(Ut)}const Gt=(Kt=(oe=window.visualViewport)==null?void 0:oe.width)!=null?Kt:innerWidth,se=(Ct=($t=window.visualViewport)==null?void 0:$t.height)!=null?Ct:innerHeight,{scrollX:ue,scrollY:Ae}=window,{height:Pe,width:qt,top:ze,right:Wt,bottom:Ge,left:_e}=te.getBoundingClientRect(),{top:Me,right:We,bottom:Re,left:ye}=(Ln=>{const Ze=window.getComputedStyle(Ln);return{top:parseFloat(Ze.scrollMarginTop)||0,right:parseFloat(Ze.scrollMarginRight)||0,bottom:parseFloat(Ze.scrollMarginBottom)||0,left:parseFloat(Ze.scrollMarginLeft)||0}})(te);let ne=tt==="start"||tt==="nearest"?ze-Me:tt==="end"?Ge+Re:ze+Pe/2-Me+Re,Ce=lt==="center"?_e+qt/2-ye+We:lt==="end"?Wt+We:_e-ye;const bn=[];for(let Ln=0;Ln<It.length;Ln++){const Ze=It[Ln],{height:Mn,width:Vn,top:gi,right:Kn,bottom:Bi,left:en}=Ze.getBoundingClientRect();if(et==="if-needed"&&ze>=0&&_e>=0&&Ge<=se&&Wt<=Gt&&(Ze===xt&&!re(Ze)||ze>=gi&&Ge<=Bi&&_e>=en&&Wt<=Kn))return bn;const Li=getComputedStyle(Ze),Oi=parseInt(Li.borderLeftWidth,10),Lt=parseInt(Li.borderTopWidth,10),Ot=parseInt(Li.borderRightWidth,10),mt=parseInt(Li.borderBottomWidth,10);let ft=0,pt=0;const At="offsetWidth"in Ze?Ze.offsetWidth-Ze.clientWidth-Oi-Ot:0,le="offsetHeight"in Ze?Ze.offsetHeight-Ze.clientHeight-Lt-mt:0,xe="offsetWidth"in Ze?Ze.offsetWidth===0?0:Vn/Ze.offsetWidth:0,ae="offsetHeight"in Ze?Ze.offsetHeight===0?0:Mn/Ze.offsetHeight:0;if(xt===Ze)ft=tt==="start"?ne:tt==="end"?ne-se:tt==="nearest"?Ie(Ae,Ae+se,se,Lt,mt,Ae+ne,Ae+ne+Pe,Pe):ne-se/2,pt=lt==="start"?Ce:lt==="center"?Ce-Gt/2:lt==="end"?Ce-Gt:Ie(ue,ue+Gt,Gt,Oi,Ot,ue+Ce,ue+Ce+qt,qt),ft=Math.max(0,ft+Ae),pt=Math.max(0,pt+ue);else{ft=tt==="start"?ne-gi-Lt:tt==="end"?ne-Bi+mt+le:tt==="nearest"?Ie(gi,Bi,Mn,Lt,mt+le,ne,ne+Pe,Pe):ne-(gi+Mn/2)+le/2,pt=lt==="start"?Ce-en-Oi:lt==="center"?Ce-(en+Vn/2)+At/2:lt==="end"?Ce-Kn+Ot+At:Ie(en,Kn,Vn,Oi,Ot+At,Ce,Ce+qt,qt);const{scrollLeft:ve,scrollTop:Ue}=Ze;ft=ae===0?0:Math.max(0,Math.min(Ue+ft/ae,Ze.scrollHeight-Mn/ae+le)),pt=xe===0?0:Math.max(0,Math.min(ve+pt/xe,Ze.scrollWidth-Vn/xe+At)),ne+=Ue-ft,Ce+=ve-pt}bn.push({el:Ze,top:ft,left:pt})}return bn},Nt=te=>te===!1?{block:"end",inline:"nearest"}:(Pt=>Pt===Object(Pt)&&Object.keys(Pt).length!==0)(te)?te:{block:"start",inline:"nearest"};function jt(te,Pt){if(!te.isConnected||!($t=>{let Ct=$t;for(;Ct&&Ct.parentNode;){if(Ct.parentNode===document)return!0;Ct=Ct.parentNode instanceof ShadowRoot?Ct.parentNode.host:Ct.parentNode}return!1})(te))return;const oe=($t=>{const Ct=window.getComputedStyle($t);return{top:parseFloat(Ct.scrollMarginTop)||0,right:parseFloat(Ct.scrollMarginRight)||0,bottom:parseFloat(Ct.scrollMarginBottom)||0,left:parseFloat(Ct.scrollMarginLeft)||0}})(te);if(($t=>typeof $t=="object"&&typeof $t.behavior=="function")(Pt))return Pt.behavior(Vt(te,Pt));const Kt=typeof Pt=="boolean"||Pt==null?void 0:Pt.behavior;for(const{el:$t,top:Ct,left:et}of Vt(te,Nt(Pt))){const tt=Ct-oe.top+oe.bottom,lt=et-oe.left+oe.right;$t.scroll({top:tt,left:lt,behavior:Kt})}}}}]);
|
|
|
}()); |