|
|
!(function(){var kw=Object.defineProperty,Aw=Object.defineProperties;var Lw=Object.getOwnPropertyDescriptors;var Tb=Object.getOwnPropertySymbols;var R2=Object.prototype.hasOwnProperty,z2=Object.prototype.propertyIsEnumerable;var Dp=Math.pow,F2=(jn,tn,mt)=>tn in jn?kw(jn,tn,{enumerable:!0,configurable:!0,writable:!0,value:mt}):jn[tn]=mt,F0=(jn,tn)=>{for(var mt in tn||(tn={}))R2.call(tn,mt)&&F2(jn,mt,tn[mt]);if(Tb)for(var mt of Tb(tn))z2.call(tn,mt)&&F2(jn,mt,tn[mt]);return jn},C2=(jn,tn)=>Aw(jn,Lw(tn));var j2=(jn,tn)=>{var mt={};for(var ft in jn)R2.call(jn,ft)&&tn.indexOf(ft)<0&&(mt[ft]=jn[ft]);if(jn!=null&&Tb)for(var ft of Tb(jn))tn.indexOf(ft)<0&&z2.call(jn,ft)&&(mt[ft]=jn[ft]);return mt};var _m=(jn,tn,mt)=>new Promise((ft,Ft)=>{var $t=Ht=>{try{Dt(mt.next(Ht))}catch(Wt){Ft(Wt)}},ne=Ht=>{try{Dt(mt.throw(Ht))}catch(Wt){Ft(Wt)}},Dt=Ht=>Ht.done?ft(Ht.value):Promise.resolve(Ht.value).then($t,ne);Dt((mt=mt.apply(jn,tn)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[38447],{18299:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Wt}});var ft=mt(87462),Ft=mt(67294),$t={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"},ne=$t,Dt=mt(84089),Ht=function(Nt,Ut){return Ft.createElement(Dt.Z,(0,ft.Z)({},Nt,{ref:Ut,icon:ne}))},Wt=Ft.forwardRef(Ht)},84249:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Wt}});var ft=mt(87462),Ft=mt(67294),$t={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"},ne=$t,Dt=mt(84089),Ht=function(Nt,Ut){return Ft.createElement(Dt.Z,(0,ft.Z)({},Nt,{ref:Ut,icon:ne}))},Wt=Ft.forwardRef(Ht)},81893:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Wt}});var ft=mt(87462),Ft=mt(67294),$t={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"},ne=$t,Dt=mt(84089),Ht=function(Nt,Ut){return Ft.createElement(Dt.Z,(0,ft.Z)({},Nt,{ref:Ut,icon:ne}))},Wt=Ft.forwardRef(Ht)},42922:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Wt}});var ft=mt(87462),Ft=mt(67294),$t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},ne=$t,Dt=mt(84089),Ht=function(Nt,Ut){return Ft.createElement(Dt.Z,(0,ft.Z)({},Nt,{ref:Ut,icon:ne}))},Wt=Ft.forwardRef(Ht)},90674:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Wt}});var ft=mt(87462),Ft=mt(67294),$t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},ne=$t,Dt=mt(84089),Ht=function(Nt,Ut){return Ft.createElement(Dt.Z,(0,ft.Z)({},Nt,{ref:Ut,icon:ne}))},Wt=Ft.forwardRef(Ht)},25877:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Wt}});var ft=mt(87462),Ft=mt(67294),$t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},ne=$t,Dt=mt(84089),Ht=function(Nt,Ut){return Ft.createElement(Dt.Z,(0,ft.Z)({},Nt,{ref:Ut,icon:ne}))},Wt=Ft.forwardRef(Ht)},63237:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Wt}});var ft=mt(87462),Ft=mt(67294),$t={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"},ne=$t,Dt=mt(84089),Ht=function(Nt,Ut){return Ft.createElement(Dt.Z,(0,ft.Z)({},Nt,{ref:Ut,icon:ne}))},Wt=Ft.forwardRef(Ht)},99569:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Wt}});var ft=mt(87462),Ft=mt(67294),$t={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"},ne=$t,Dt=mt(84089),Ht=function(Nt,Ut){return Ft.createElement(Dt.Z,(0,ft.Z)({},Nt,{ref:Ut,icon:ne}))},Wt=Ft.forwardRef(Ht)},73148:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Wt}});var ft=mt(87462),Ft=mt(67294),$t={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"},ne=$t,Dt=mt(84089),Ht=function(Nt,Ut){return Ft.createElement(Dt.Z,(0,ft.Z)({},Nt,{ref:Ut,icon:ne}))},Wt=Ft.forwardRef(Ht)},56747:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Wt}});var ft=mt(87462),Ft=mt(67294),$t={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"},ne=$t,Dt=mt(84089),Ht=function(Nt,Ut){return Ft.createElement(Dt.Z,(0,ft.Z)({},Nt,{ref:Ut,icon:ne}))},Wt=Ft.forwardRef(Ht)},50881:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Wt}});var ft=mt(87462),Ft=mt(67294),$t={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"},ne=$t,Dt=mt(84089),Ht=function(Nt,Ut){return Ft.createElement(Dt.Z,(0,ft.Z)({},Nt,{ref:Ut,icon:ne}))},Wt=Ft.forwardRef(Ht)},22751:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Wt}});var ft=mt(87462),Ft=mt(67294),$t={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"},ne=$t,Dt=mt(84089),Ht=function(Nt,Ut){return Ft.createElement(Dt.Z,(0,ft.Z)({},Nt,{ref:Ut,icon:ne}))},Wt=Ft.forwardRef(Ht)},34182:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Wt}});var ft=mt(87462),Ft=mt(67294),$t={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"},ne=$t,Dt=mt(84089),Ht=function(Nt,Ut){return Ft.createElement(Dt.Z,(0,ft.Z)({},Nt,{ref:Ut,icon:ne}))},Wt=Ft.forwardRef(Ht)},38308:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Wt}});var ft=mt(87462),Ft=mt(67294),$t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},ne=$t,Dt=mt(84089),Ht=function(Nt,Ut){return Ft.createElement(Dt.Z,(0,ft.Z)({},Nt,{ref:Ut,icon:ne}))},Wt=Ft.forwardRef(Ht)},74664:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Wt}});var ft=mt(87462),Ft=mt(67294),$t={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"},ne=$t,Dt=mt(84089),Ht=function(Nt,Ut){return Ft.createElement(Dt.Z,(0,ft.Z)({},Nt,{ref:Ut,icon:ne}))},Wt=Ft.forwardRef(Ht)},17663:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Wt}});var ft=mt(87462),Ft=mt(67294),$t={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"},ne=$t,Dt=mt(84089),Ht=function(Nt,Ut){return Ft.createElement(Dt.Z,(0,ft.Z)({},Nt,{ref:Ut,icon:ne}))},Wt=Ft.forwardRef(Ht)},91034:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Wt}});var ft=mt(87462),Ft=mt(67294),$t={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"},ne=$t,Dt=mt(84089),Ht=function(Nt,Ut){return Ft.createElement(Dt.Z,(0,ft.Z)({},Nt,{ref:Ut,icon:ne}))},Wt=Ft.forwardRef(Ht)},72395:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Wt}});var ft=mt(87462),Ft=mt(67294),$t={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"},ne=$t,Dt=mt(84089),Ht=function(Nt,Ut){return Ft.createElement(Dt.Z,(0,ft.Z)({},Nt,{ref:Ut,icon:ne}))},Wt=Ft.forwardRef(Ht)},53978:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Wt}});var ft=mt(87462),Ft=mt(67294),$t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},ne=$t,Dt=mt(84089),Ht=function(Nt,Ut){return Ft.createElement(Dt.Z,(0,ft.Z)({},Nt,{ref:Ut,icon:ne}))},Wt=Ft.forwardRef(Ht)},71749:function(){"use strict"},30483:function(){"use strict"},71736:function(jn,tn){"use strict";tn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},39132:function(jn,tn){"use strict";tn.Z={flex_box_center:"flex_box_center___vG4eV",flex_space_between:"flex_space_between___qVVxe",flex_box_vertical_center:"flex_box_vertical_center___P8Z8s",flex_box_center_end:"flex_box_center_end___VMme3",flex_box_column:"flex_box_column___VMHwm",dropdownmenus:"dropdownmenus___oVzoj",popupClassNames:"popupClassNames___OcZq7",selectdown:"selectdown___mmcA8"}},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var jn={},tn="5.0",mt={},ft=null,Ft=!1,$t=!1,ne=null,Dt=!1,Ht=null,Wt=null,jt=0;jt<arguments.length;jt++){var Nt=arguments[jt];if(Nt!==null)switch(typeof Nt){case"number":tn=Nt.toFixed(1);break;case"string":Nt.match(new RegExp("^[0-9]\\.[0-9]+$"))?tn=Nt:ne=Nt;break;case"object":typeof Nt.is3D!="undefined"?ft=Nt:mt=Nt;break;case"boolean":Ft=Nt,$t=!0;break}}ft===null&&(ft={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},mt.material_id!==void 0&&!$t&&(Ft=!0)),ne!==null&&mt.id===void 0&&(mt.id=ne);var Ut="",De="",Yt=!1,de=null,we=null,ue=null,he=!1,It=null,ye=null,Ze=null,pe=null,be=null;mt.height!==void 0&&(mt.height=Math.round(mt.height)),mt.width!==void 0&&(mt.width=Math.round(mt.width));var Rt=function(ze){return parseFloat(ze)>4?parseFloat(ze):5};jn.setHTML5Codebase=function(ze,on){Wt=ze,rn(ze,on)},jn.setJavaCodebase=jn.setJavaCodebaseVersion=jn.isCompiledInstalled=jn.setPreCompiledScriptPath=jn.setPreCompiledResourcePath=function(){},jn.setHTML5CodebaseVersion=function(ze,on){var On=parseFloat(ze);if(On!==NaN&&On<5){console.log("The GeoGebra HTML5 codebase version "+On+" is deprecated. Using version latest instead.");return}Ht=ze,_t(ze,on)},jn.getHTML5CodebaseVersion=function(){return we},jn.getParameters=function(){return mt},jn.setFontsCSSURL=function(ze){pe=ze},jn.setGiacJSURL=function(ze){},jn.setJNLPFile=function(ze){Ut=ze},jn.setJNLPBaseDir=function(ze){},jn.inject=function(){function ze(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var on="auto",On=mt.id,Ni,gi=!1,Dn=0;Dn<arguments.length;Dn++){var Jn=arguments[Dn];typeof Jn=="string"?(Jn=Jn.toLowerCase(),Jn.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?on=Jn:On=arguments[Dn]):typeof Jn=="boolean"?gi=Jn:Jn instanceof HTMLElement&&(Ni=Jn)}Ai();function Ai(){if(!Dt){setTimeout(Ai,200);return}on=Gn(on);var hi=Ni||document.getElementById(On);if(!hi){console.log("possibly bug on ajax loading? ");return}if(jn.removeExistingApplet(hi,!1),mt.width===void 0&&hi.clientWidth&&(mt.width=hi.clientWidth),mt.height===void 0&&hi.clientHeight&&(mt.height=hi.clientHeight),!(mt.width&&mt.height)&&on==="html5"&&(delete mt.width,delete mt.height),de=on,on==="screenshot")nn(hi,mt);else{var qt=!1;mt.hasOwnProperty("playButton")&&mt.playButton||mt.hasOwnProperty("clickToLoad")&&mt.clickToLoad?qt=!0:mt.hasOwnProperty("playButtonAutoDecide")&&mt.playButtonAutoDecide&&(qt=(!zt()||ze())&&Qt()),qt?(de="screenshot",Ne(hi,mt,gi,on)):an(hi,mt,gi)}}};function zt(){try{return window.self!==window.top}catch(ze){return!0}}function Qt(){return mt.hasOwnProperty("screenshotGenerator")&&mt.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}jn.getViews=function(){return ft},jn.isJavaInstalled=function(){return!1};var te=function(ze){var on=function(Dn){var Jn=JSON.parse(Dn),Ai=function(kt){return kt.type=="G"||kt.type=="E"},hi=Jn.elements?Jn.elements.filter(Ai)[0]:Jn;if(!hi||!hi.url){On();return}mt.fileName=hi.url,Ie(hi.settings||{}),ft.is3D=!0;var qt="https://www.geogebra.org/images/";jn.setPreviewImage(It||hi.previewUrl,qt+"GeoGebra_loading.png",qt+"applet_play.png"),ze()},On=function(){mt.onError&&mt.onError(),ti("Error: Fetching material (id "+mt.material_id+") failed.",mt)},Ni=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",gi="/materials/"+mt.material_id+"?scope=basic";He("https://"+Ni+"/api/proxy.php?path="+encodeURIComponent(gi),on,On)};function Ie(ze){var on=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(On){ze[On]=!!ze[On]}),on.forEach(function(On){mt[On]===void 0&&ze[On]!==void 0&&(mt[On]=ze[On])}),mt.showToolBarHelp===void 0&&(mt.showToolBarHelp=mt.showToolBar)}function He(ze,on,On){var Ni=new XMLHttpRequest;Ni.open("GET",ze),Ni.onload=function(){on(Ni.responseText)},Ni.onerror=On,Ni.send()}jn.isHTML5Installed=function(){return!0},jn.getLoadedAppletType=function(){return de},jn.setPreviewImage=function(ze,on,On){It=ze,ye=on,Ze=On},jn.removeExistingApplet=function(ze,on){var On;typeof ze=="string"&&(ze=document.getElementById(ze)),de=null;var Ni=null;for(On=0;On<ze.childNodes.length;On++){var gi=ze.childNodes[On],Dn=gi.className;Dn==="applet_screenshot"?on?(gi.style.display="block",de="screenshot"):gi.style.display="none":Dn!=="applet_scaler prerender"&&(ze.removeChild(gi),Ni=Dn&&Dn.indexOf("appletParameters")!=-1?gi.id:null,On--)}var Jn=mt.id!==void 0?mt.id:Ni,Ai=window[Jn];Ai&&typeof Ai.getBase64=="function"&&(Ai.remove(),window[Jn]=null)},jn.refreshHitPoints=function(){if(Rt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ze=jn.getAppletObject();return ze&&typeof ze.recalculateEnvironments=="function"?(ze.recalculateEnvironments(),!0):!1},jn.startAnimation=function(){var ze=jn.getAppletObject();return ze&&typeof ze.startAnimation=="function"?(ze.startAnimation(),!0):!1},jn.stopAnimation=function(){var ze=jn.getAppletObject();return ze&&typeof ze.stopAnimation=="function"?(ze.stopAnimation(),!0):!1},jn.getAppletObject=function(){var ze=mt.id!==void 0?mt.id:"ggbApplet";return window[ze]},jn.resize=function(){};var en=function(ze,on,On){var Ni=document.createElement("param");Ni.setAttribute("name",on),Ni.setAttribute("value",On),ze.appendChild(Ni)},ie=function(ze){return ze&&ze!=="false"},an=function(ze,on,On){Rt(we)<=4.2&&(On=!0);var Ni=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==we||ggbHTML5LoadedCodebaseIsWebSimple&&!he)&&(Ni=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var gi=document.createElement("div");gi.classList.add("appletParameters","notranslate");var Dn=on.width,Jn=on.height;if(on.disableAutoScale=on.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():on.disableAutoScale,on.width!==void 0)if(Rt(we)<=4.4)ie(on.showToolBar)&&(on.height-=7),ie(on.showAlgebraInput)&&(on.height-=37),on.width<605&&ie(on.showToolBar)&&(on.width=605,Dn=605);else{var Ai=100;(ie(on.showToolBar)||ie(on.showMenuBar))&&(on.hasOwnProperty("customToolBar")&&(on.customToolbar=on.customToolBar),Ai=ie(on.showMenuBar)?245:155),Dn<Ai&&(on.width=Ai,Dn=Ai)}gi.style.border="none",gi.style.display="inline-block";for(var hi in on)on.hasOwnProperty(hi)&&hi!=="appletOnLoad"&&gi.setAttribute("data-param-"+hi,on[hi]);pe&&gi.setAttribute("data-param-fontscssurl",pe),jn.resize=function(){GGBAppletUtils.responsiveResize(ze,on)},window.addEventListener("resize",function(Yn){jn.resize()});var qt=typeof on.appletOnLoad=="function"?on.appletOnLoad:function(){};if(!On&&on.width!==void 0){on.hasOwnProperty("showSplash")||gi.setAttribute("data-param-showSplash","false");var kt=ze.querySelector(".applet_scaler.prerender"),Ct=kt!==null;if(Ct)var Pt=kt.querySelector(".ggb_preview");else{var Pt=zn(Dn,Jn,on.borderColor,!1);kt=document.createElement("div"),kt.className="applet_scaler",kt.style.position="relative",kt.style.display="block",kt.style.width=Dn+"px",kt.style.height=Jn+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(kt,"66%"),Rt(we)>=5?(on.appletOnLoad=function(Yn){var Fe=ze.querySelector(".ggb_preview");Fe&&Fe.parentNode.removeChild(Fe),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(kt),window.GGBT_wsf_view&&$(window).trigger("resize"),qt(Yn)},Ct||kt.appendChild(Pt)):gi.appendChild(Pt),kt.appendChild(gi),Ct||ze.appendChild(kt),setTimeout(function(){jn.resize()},1)}else{var At=document.createElement("div");At.className="applet_scaler",At.style.position="relative",At.style.display="block",At.appendChild(gi),ze.appendChild(At),on.appletOnLoad=function(Yn){jn.resize(),qt(Yn)}}function wt(Yn,Fe){Fe&&typeof Fe.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Yn,Fe.appletOnLoad):renderGGBElement(Yn),ti("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Fe)}function Xt(Yn,Fe){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Yn,params:Fe}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(bn){wt(bn.article,bn.params)}),html5AppletsToProcess=null)},Rt(we)<5&&(Yn.className+=" geogebraweb")):wt(Yn,Fe)}if(Ni){scriptLoadStarted=!0;for(var Re=0;Re<gi.childNodes.length;Re++){var We=gi.childNodes[Re].tagName;We==="TABLE"&&(gi.removeChild(gi.childNodes[Re]),Re--)}if(ggbHTML5LoadedScript!==null){var In=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');In!=null&&In.parentNode.removeChild(In)}var Hn=document.createElement("script"),Un=function(){Xt(gi,on)};Hn.src=De+ue,ggbHTML5LoadedCodebaseIsWebSimple=he,ggbHTML5LoadedCodebaseVersion=we,ggbHTML5LoadedScript=Hn.src,ti("GeoGebra HTML5 codebase loaded: '"+De+"'.",on),!Wt&&(!Ht||Ht=="5.0")?(he?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Un()):De.requirejs?__webpack_require__.e(12).then(function(){var Yn=[__webpack_require__(12)];Un.apply(null,Yn)}.bind(this)).catch(__webpack_require__.oe):(Hn.onload=Un,ze.appendChild(Hn))}else Xt(gi,on);on.height=Jn,on.width=Dn},nn=function(ze,on,On){var Ni=zn(on.width,on.height,on.borderColor,On),gi=document.createElement("div");gi.style.position="relative",gi.style.display="block",gi.style.width=on.width+"px",gi.style.height=on.height+"px",gi.className="applet_screenshot applet_scaler"+(On?" applet_screenshot_play":""),gi.appendChild(Ni);var Dn=GGBAppletUtils.getScale(on,ze,On);On?(ze.appendChild(Ye()),window.GGBT_wsf_view||(ze.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(gi,"66%"),ze.appendChild(gi),Dn!==1&&!isNaN(Dn)&&(GGBAppletUtils.scaleElement(gi,Dn),gi.style.width=on.width+"px",gi.style.height=on.height+"px",gi.parentNode.style.width=on.width*Dn+"px",gi.parentNode.style.height=on.height*Dn+"px"),jn.resize=function(){Vn(ze,Ni,gi,On)},window.addEventListener("resize",function(Jn){jn.resize()}),jn.resize()};function Vn(ze,on,On,Ni){if(ze.contains(on)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ze.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ze)}var gi=GGBAppletUtils.getScale(mt,ze,Ni);On.parentNode!==null&&(!isNaN(gi)&&gi!==1?(GGBAppletUtils.scaleElement(On,gi),On.parentNode.style.width=mt.width*gi+"px",On.parentNode.style.height=mt.height*gi+"px"):(GGBAppletUtils.scaleElement(On,1),On.parentNode.style.width=mt.width+"px",On.parentNode.style.height=mt.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()}}jn.onExitFullscreen=function(ze,on){on.appendChild(ze)};var Ne=function(ze,on,On,Ni){nn(ze,on,!0);for(var gi=function(){var Ai=[];for(Jn=0;Jn<ze.childNodes.length;Jn++)Ai.push(ze.childNodes[Jn]);if(window.GGBT_wsf_view){var hi=window.GGBT_wsf_view.renderFullScreen(ze,on.id),qt=document.getElementById("fullscreencontainer"),kt=jQuery(ze).find(".fullscreencontent");kt.length>0?(hi.remove(),kt.attr("id","fullscreencontent").show(),jQuery(qt).append(kt),window.dispatchEvent(new Event("resize"))):an(hi,on,!1),window.GGBT_wsf_view.launchFullScreen(qt)}else de=Ni,an(ze,on,!1);if(!window.GGBT_wsf_view)for(Jn=0;Jn<Ai.length;Jn++)ze.removeChild(Ai[Jn])},Dn=ze.getElementsByClassName("ggb_preview_play"),Jn=0;Jn<Dn.length;Jn++)Dn[Jn].addEventListener("click",gi,!1),Dn[Jn].addEventListener("ontouchstart",gi,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ze),Qt()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ye=function(){var ze=document.createElement("div");if(ze.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var on='.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");}',On=document.createElement("style");On.styleSheet?On.styleSheet.cssText=on:On.appendChild(document.createTextNode(on)),document.getElementsByTagName("head")[0].appendChild(On)}return ze},zn=function(ze,on,On,Ni){var gi=document.createElement("div");gi.className="ggb_preview",gi.style.position="absolute",gi.style.zIndex="90",gi.style.width=ze-2+"px",gi.style.height=on-2+"px",gi.style.top="0px",gi.style.left="0px",gi.style.overflow="hidden",gi.style.backgroundColor="white";var Dn="lightgrey";On!==void 0&&(On==="none"?Dn="transparent":Dn=On),gi.style.border="1px solid "+Dn;var Jn=document.createElement("img");if(Jn.style.position="relative",Jn.style.zIndex="1000",Jn.style.top="-1px",Jn.style.left="-1px",It!==null&&Jn.setAttribute("src",It),Jn.style.opacity=.7,ye!==null){var Ai,hi,qt;if(!Ni){Ai=document.createElement("img"),Ai.style.position="absolute",Ai.style.zIndex="1001",Ai.style.opacity=1,Jn.style.opacity=.3,hi=360,hi>ze/4*3&&(hi=ze/4*3),qt=hi/5.8,Ai.setAttribute("src",ye),Ai.setAttribute("width",hi),Ai.setAttribute("height",qt);var kt=(ze-hi)/2,Ct=(on-qt)/2;Ai.style.left=kt+"px",Ai.style.top=Ct+"px",gi.appendChild(Ai)}}return gi.appendChild(Jn),gi},Gn=function(ze){return ze=ze.toLowerCase(),ze==="html5"||ze==="screenshot"?ze:"html5"},Me=["web","webSimple","web3d","tablet","tablet3d","phone"],_t=function(ze,on){if(we=ze,on){rn(we,!0);return}var On=!Ft;if(On){var Ni=Rt(we);!isNaN(Ni)&&Ni<4.4&&(On=!1)}var gi,Dn;window.location.protocol.substr(0,4)==="http"?gi=window.location.protocol:gi="http:";var Jn=we.indexOf("//");Jn>0?Dn=we:Jn===0?Dn=gi+we:Dn="https://www.geogebra.org/apps/5.2.814.0/";for(var Ai in Me)if(we.slice(Me[Ai].length*-1)===Me[Ai]||we.slice((Me[Ai].length+1)*-1)===Me[Ai]+"/"){rn(Dn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&On&&!ft.is3D&&!ft.AV&&!ft.SV&&!ft.CV&&!ft.EV2&&!ft.CP&&!ft.PC&&!ft.DA&&!ft.FI&&!ft.PV&&!ie(mt.showToolBar)&&!ie(mt.showMenuBar)&&!ie(mt.showAlgebraInput)&&!ie(mt.enableRightClick)&&(!mt.appName||mt.appName=="classic")?Dn+="webSimple/":Dn+="web3d/",rn(Dn,!1)},rn=function(ze,on){if(ze.requirejs){De=ze;return}ze.slice(-1)!=="/"&&(ze+="/"),De=ze,on===null&&(on=ze.indexOf("http")===-1),Yt=on,ue="web.nocache.js",he=!1;var On=De.split("/");On.length>1&&(!on&&On[On.length-2]==="webSimple"?(ue="webSimple.nocache.js",he=!0):Me.indexOf(On[On.length-2])>=0&&(ue=On[On.length-2]+".nocache.js")),On=ze.split("/"),we=On[On.length-3],we.substr(0,4)==="test"?we=we.substr(4,1)+"."+we.substr(5,1):(we.substr(0,3)==="war"||we.substr(0,4)==="beta")&&(we="5.0");var Ni=parseFloat(we);Ni!==NaN&&Ni<5&&ze.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Ni+" is deprecated. Using version latest instead."),_t("5.0",on))},ti=function(ze,on){window.console&&window.console.log&&(!on||typeof on.showLogging=="undefined"||on.showLogging&&on.showLogging!=="false")&&console.log(ze)};mt.material_id!==void 0?te(vn):vn();function vn(){var ze=tn;Ht!==null?ze=Ht:parseFloat(ze)<5&&(ze="5.0"),_t(ze,!1),Wt!==null&&rn(Wt,Yt),Dt=!0}return jn},GGBAppletUtils=function(){"use strict";function jn(){return window.GGBT_wsf_edit!==void 0}function tn(Dt,Ht){Ht!=1?(Dt.style.transformOrigin="0% 0% 0px",Dt.style.webkitTransformOrigin="0% 0% 0px",Dt.style.transform="scale("+Ht+","+Ht+")",Dt.style.webkitTransform="scale("+Ht+","+Ht+")",Dt.style.maxWidth="initial",Dt.querySelector(".ggb_preview")!==null&&(Dt.querySelector(".ggb_preview").style.maxWidth="initial"),Dt.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Dt.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Dt.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Dt.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Dt.style.transform="none",Dt.style.webkitTransform="none")}function mt(Dt,Ht,Wt,jt,Nt,Ut){var De=null;if(Ut!=null&&Ut!="")for(var Yt=Dt.parentNode;Yt!=null;)if((" "+Yt.className+" ").indexOf(" "+Ut+" ")>-1){De=Yt;break}else Yt=Yt.parentNode;var de=0,we=0,ue=0,he=0,It=0,ye=0,Ze=0;if(De)de=De.offsetWidth,we=Math.max(jt?De.offsetWidth:0,De.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(de=Math.min(window.innerWidth,document.documentElement.clientWidth),we=Math.min(window.innerHeight,document.documentElement.clientHeight),ue=de):(de=window.innerWidth,we=window.innerHeight,ue=window.innerWidth),Dt){var pe=Dt.getBoundingClientRect();pe.left>0&&pe.left<=de&&(Nt===void 0||!Nt)&&(document.dir==="rtl"?(It=de-pe.width-pe.left,ye=ue<=480?10:30):(ye=pe.left,It=ue<=480?10:30),he=ye+It)}if(Dt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var be=Dt.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(he=40,Ze=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(he=0,Ze=40)}}return Dt&&((Wt===void 0||!Wt)&&Ht>0&&Ht+he<de?de=Ht:de-=he,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Wt===void 0||!Wt)&&(we-=Ze)),{width:de,height:we}}function ft(Dt,Ht,Wt,jt,Nt){if(Dt.isScreenshoGenerator)return 1;var Ut=jt!==void 0&&jt,De=Dt.noScaleMargin!=null&&Dt.noScaleMargin,Yt=function(be){return be&&be!=="false"},de=Yt(Dt.autoHeight),we=mt(Ht,Dt.width,Wt,de,Ut&&window.GGBT_wsf_view||De,Nt),ue=parseInt(we.width),he=Dt.width,It=Dt.height;if(he===void 0){var ye=Ht.querySelector(".appletParameters");ye&&(he=ye.offsetWidth,It=ye.offsetHeight)}var Ze=ue/he,pe=Ut?1:we.height/It;return Wt!==void 0&&!Wt&&(Ze=Math.min(1,Ze),pe=Math.min(1,pe)),Math.min(Ze,pe)}function Ft(Dt,Ht,Wt){var jt=1,Nt,Ut=!1;if(Dt.hasOwnProperty("allowUpscale")&&(Ut=Dt.allowUpscale),Dt.hasOwnProperty("scale")&&(jt=parseFloat(Dt.scale),(isNaN(jt)||jt===null||jt===0)&&(jt=1),jt>1&&(Ut=!0)),Ht&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ut=!0),!(Dt.hasOwnProperty("disableAutoScale")&&Dt.disableAutoScale))Nt=ft(Dt,Ht,Ut,Wt,Dt.scaleContainerClass);else return jt;return Ut&&(!Dt.hasOwnProperty("scale")||jt===1)?Nt:Math.min(jt,Nt)}function $t(Dt){var Ht=Math.min(window.innerWidth,document.documentElement.clientWidth),Wt=Math.min(window.innerHeight,document.documentElement.clientHeight),jt=Dt.getBoundingClientRect(),Nt=(Ht-jt.width)/2,Ut=(Wt-jt.height)/2;Ut<0&&(Ut=0),Dt.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Nt<40?Dt.style.left="40px":Dt.style.left=Nt+"px",Dt.style.top=Ut+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ut<40?Dt.style.top="40px":Dt.style.top=Ut+"px",Dt.style.left=Nt+"px")}function ne(Dt,Ht){var Wt=Dt.querySelector(".appletParameters");if(Wt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ht.id!==Wt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Dt)}if(Wt.parentElement&&/fullscreen/.test(Wt.parentElement.className))return;var jt=Ft(Ht,Dt);jn()&&Wt.setAttribute("data-param-scale",jt);for(var Nt=null,Ut=0;Ut<Dt.childNodes.length;Ut++)if(Dt.childNodes[Ut].className!==void 0&&Dt.childNodes[Ut].className.match(/^applet_scaler/)){Nt=Dt.childNodes[Ut];break}if(Nt!==null&&Nt.querySelector(".noscale")!==null)return;var De=Ht.id!==void 0?Ht.id:"ggbApplet",Yt=window[De];(Yt==null||!Yt.recalculateEnvironments)&&Nt!==null&&!Nt.className.match(/fullscreen/)&&(Nt.parentNode.style.transform="",!isNaN(jt)&&jt!==1?(Nt.parentNode.style.width=Ht.width*jt+"px",Nt.parentNode.style.height=Ht.height*jt+"px",tn(Nt,jt)):(tn(Nt,1),Nt.parentNode.style.width=Ht.width+"px",Nt.parentNode.style.height=Ht.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&$t(Dt),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Wt).parents(".content-added-content"))}}return{responsiveResize:ne,isFlexibleWorksheetEditor:jn,positionCenter:$t,getScale:Ft,scaleElement:tn}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var jn=n.location.search;return jn.indexOf(J)!=-1||jn.indexOf(K)!=-1}function q(jn,tn){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(jn){var tn=s[L].bindings;s[L].bindings=function(){for(var mt=tn?tn():{},ft=jn[webModule.__softPermutationId],Ft=O;Ft<ft.length;Ft++){var $t=ft[Ft];mt[$t[O]]=$t[P]}return mt}};var t;function u(){return v(),t}function v(){if(!t){var jn=o.createElement(Q);if(jn.id=L,jn.style.cssText=R+S,jn.tabIndex=-1,o.body.appendChild(jn),t=jn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var tn=document.compatMode==U?V:W;t.write(tn+X),t.close()}}}function w(jn){function tn(ft){function Ft(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var $t=Ft();if($t){ft();return}function ne(){if(!$t){if(!Ft())return;$t=!0,ft(),o.removeEventListener&&o.removeEventListener(Z,ne,!1),Dt&&clearInterval(Dt)}}o.addEventListener&&o.addEventListener(Z,ne,!1);var Dt=setInterval(function(){ne()},$)}function mt(ft){var Ft=u(),$t=Ft.body,ne=Ft.createElement(_);ne.language=ab,ne.crossOrigin=W,ne.src=ft,webModule.__errFn&&(ne.onerror=function(){webModule.__errFn(L,new Error(bb+ft))}),$t.appendChild(ne)}tn(function(){mt(jn)})}webModule.__startLoadingFragment=function(jn){return C(jn)},webModule.__installRunAsyncCode=function(jn){var tn=u(),mt=tn.body,ft=tn.createElement(_);ft.language=ab,ft.text=jn,mt.appendChild(ft),mt.removeChild(ft)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(jn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(jn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(jn){var tn=c[jn];return tn==null?null:tn},r=d,webModule.__errFn=e}function B(){function jn(Dt){var Ht=Dt.lastIndexOf(rb);Ht==-1&&(Ht=Dt.length);var Wt=Dt.indexOf(sb);Wt==-1&&(Wt=Dt.length);var jt=Dt.lastIndexOf(tb,Math.min(Wt,Ht));return jt>=O?Dt.substring(O,jt+P):W}function tn(Dt){if(!Dt.match(/^\w+:\/\//)){var Ht=o.createElement(ub);Ht.src=Dt+vb,Dt=jn(Ht.src)}return Dt}function mt(){var Dt=__gwt_getMetaProperty(wb);return Dt!=null?Dt:W}function ft(){for(var Dt=o.getElementsByTagName(_),Ht=O;Ht<Dt.length;++Ht)if(Dt[Ht].src.indexOf(xb)!=-1)return jn(Dt[Ht].src);return W}function Ft(){var Dt=o.getElementsByTagName(yb);return Dt.length>O?Dt[Dt.length-P].href:W}function $t(){var Dt=o.location;return Dt.href==Dt.protocol+zb+Dt.host+Dt.pathname+Dt.search+Dt.hash}var ne=mt();return ne==W&&(ne=ft()),ne==W&&(ne=Ft()),ne==W&&$t()&&(ne=jn(o.location.href)),ne=tn(ne),ne}function C(jn){return jn.match(/^\//)||jn.match(/^[a-zA-Z]+:\/\//)?jn:webModule.__moduleBase+jn}function D(){var jn=[],tn=O,mt=[],ft=[];function Ft(Dt){var Ht=ft[Dt](),Wt=mt[Dt];if(Ht in Wt)return Ht;var jt=[];for(var Nt in Wt)jt[Wt[Nt]]=Nt;throw r&&r(Dt,jt,Ht),null}if(__gwt_isKnownPropertyValue=function(Dt,Ht){return Ht in mt[Dt]},webModule.__getPropMap=function(){var Dt={};for(var Ht in mt)mt.hasOwnProperty(Ht)&&(Dt[Ht]=Ft(Ht));return Dt},webModule.__computePropValue=Ft,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var $t;try{$t=Cb;var ne=$t.indexOf(Db);ne!=-1&&(tn=parseInt($t.substring(ne+P),$),$t=$t.substring(O,ne))}catch(Dt){}return webModule.__softPermutationId=tn,C($t+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/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})()},15476:function(jn,tn,mt){"use strict";mt.d(tn,{Ax:function(){return ne},Ds:function(){return Dt},KI:function(){return Wt},SI:function(){return $t},f1:function(){return Ft}});var ft=mt(11320);function Ft(jt){let Nt=!0;if(jt.length>0){for(let Ut=0;Ut<jt.length;Ut++)if(jt[Ut].compile_success==0||!jt[Ut].compile_success){Nt=!1;break}}else Nt=!1;return Nt}function $t(jt,Nt=""){let Ut=[];for(let De=0;De<jt.length;De++){let Yt=jt[De],de=Nt?`${Nt}/${Yt.name}`:`${Yt.name}`;Ut.push({title:Yt.name,type:Yt.type,isLeaf:Yt.type!=="tree",key:de})}return Ut}function ne(jt,Nt,Ut){for(let De=0;De<jt.length;De++){let Yt=jt[De];if(Yt.key===Nt){Yt.children=Ut;break}Yt.children&&ne(Yt.children,Nt,Ut)}return jt}function Dt(jt,Nt,Ut){let De;return function(){let Yt=this,de=arguments,we=function(){De=null,Ut||jt.apply(Yt,de)},ue=Ut&&!De;clearTimeout(De),De=setTimeout(we,Nt),ue&&jt.apply(Yt,de)}}const Ht=!0,Wt=ft.Z.API_SERVER},63205:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return De}});var ft=mt(67294),Ft={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},$t=mt(94184),ne=mt.n($t),Dt=mt(57953),Ht=mt(15979),Wt=mt(33170),jt=mt(28706),Nt=(Yt,de,we)=>new Promise((ue,he)=>{var It=pe=>{try{Ze(we.next(pe))}catch(be){he(be)}},ye=pe=>{try{Ze(we.throw(pe))}catch(be){he(be)}},Ze=pe=>pe.done?ue(pe.value):Promise.resolve(pe.value).then(It,ye);Ze((we=we.apply(Yt,de)).next())}),De=({data:Yt,className:de,fullWidth:we,style:ue={},onClose:he,onOk:It,showFullTools:ye,noAssociationId:Ze})=>{const pe=(0,ft.useRef)(null),be=(0,ft.useRef)(null),Rt=(0,ft.useRef)(null),zt=(0,ft.useRef)(null),[Qt,te]=(0,ft.useState)(!1),[Ie,He]=(0,ft.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ft.useEffect)(()=>{Rt.current||(Rt.current=document.createElement("style"),document.head.appendChild(Rt.current)),Yt!=null&&Yt.visible?(document.body.setAttribute("data-custom","y-hidden"),Rt.current.innerHTML=" html { overflow-y: hidden; }",Yt!=null&&Yt.src&&en()):(document.body.removeAttribute("data-custom"),Rt.current&&(document.head.removeChild(Rt.current),Rt.current=null))},[Yt==null?void 0:Yt.visible]);const en=()=>Nt(void 0,null,function*(){te(!0),He("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ne=yield(0,jt.ZJ)(Yt==null?void 0:Yt.src);pe.current.src="",pe.current.src=Ne,pe.current.onload=function(){Vn()},te(!1),He("")}),ie=()=>{document.body.removeAttribute("data-custom"),Rt.current.innerHTML=" ",he()},an=Ne=>Nt(void 0,null,function*(){te(!0),He("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ye=yield(0,Wt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Yt.title,file:Ne.dataUrl}});Ye!=null&&Ye.id&&!Ze?(yield(0,Wt.ZP)(`/api/attachments/${Yt.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ye==null?void 0:Ye.id,settings:JSON.stringify(Ne.state)}})).status===0&&It():Ye!=null&&Ye.id&&It(Ye),document.body.removeAttribute("data-custom"),Rt.current.innerHTML=" ",te(!1),He("")}),nn=()=>{const Ne=document.querySelector('a[href="https://markerjs.com/"]');Ne&&Ne.parentNode&&(Ne.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(zn=>{const Gn=document.querySelector(zn.name);Gn&&Gn.setAttribute("title",zn.title)})},Vn=()=>{be.current=new Ht.hP(pe.current),be.current.targetRoot=zt.current,be.current.addEventListener("render",an),be.current.addEventListener("beforeclose",ie),ye&&(be.current.availableMarkerTypes=be.current.ALL_MARKER_TYPES,be.current.uiStyleSettings.redoButtonVisible=!0,be.current.uiStyleSettings.notesButtonVisible=!0,be.current.uiStyleSettings.zoomButtonVisible=!0,be.current.uiStyleSettings.zoomOutButtonVisible=!0,be.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=be.current.uiStyleSettings,be.current.show(),Yt!=null&&Yt.snapshotData&&be.current.restoreState(Yt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),nn()},300)};return ft.createElement(ft.Fragment,null,(Yt==null?void 0:Yt.visible)&&ft.createElement(Dt.Z,{spinning:Qt,tip:Ie,style:{position:"absolute"}},ft.createElement("div",{ref:zt,className:ne()(Ft.imageDimensions,de,we?Ft.fullWidth:""),style:ue},ft.createElement("img",{className:Ft.img,ref:pe}))))}},36527:function(jn,tn,mt){"use strict";var ft=mt(67294),Ft=mt(71230),$t=mt(15746),ne=mt(66368),Dt=mt(71577),Ht=mt(35598),Wt=mt(71736),jt=mt(84279),Nt=mt(67294);const Ut=(0,ft.forwardRef)(({callback:De,showSaveButton:Yt,value:de=""},we)=>{const ue=(0,ft.useRef)(),he=[{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 "}]}]}],It=[{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}`}]}]}],ye=be=>{ue.current.setValue(ue.current.getValue()+" "+be.value+" ")},Ze=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Nt.createElement(Ft.Z,{className:Wt.Z.lists,gutter:[10,10]},he.map((be,Rt)=>Nt.createElement($t.Z,{flex:"110px",className:Wt.Z.item},Nt.createElement("div",null,Nt.createElement(Ht.Z,{value:`$$${be.value}$$`}),be.name),Nt.createElement("div",{className:Wt.Z.children},be.children.map((zt,Qt)=>Nt.createElement("div",{key:Qt},Nt.createElement("h1",null,zt.name),Nt.createElement(Ft.Z,{gutter:[10,10]},zt.data.map((te,Ie)=>Nt.createElement($t.Z,{key:Ie,onClick:()=>ye(te),className:Wt.Z.diamond},Nt.createElement(Ht.Z,{value:"`$$"+te.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Nt.createElement(Ft.Z,{className:Wt.Z.lists,gutter:[10,10]},It.map((be,Rt)=>Nt.createElement($t.Z,{flex:"110px",className:Wt.Z.item},Nt.createElement("div",null,Nt.createElement(Ht.Z,{value:"`$$"+be.value+"$$`"}),be.name),Nt.createElement("div",{className:Wt.Z.children},be.children.map((zt,Qt)=>Nt.createElement("div",{key:Qt},zt.name&&Nt.createElement("h1",null,zt.name),Nt.createElement(Ft.Z,{gutter:[10,10]},zt.data.map((te,Ie)=>Nt.createElement($t.Z,{key:Ie,onClick:()=>ye(te),className:Wt.Z.diamond},Nt.createElement(Ht.Z,{value:"`$$"+te.value+"$$`"}))))))))))}],pe=()=>{var be=document.createElement("div");be.innerHTML=ue.current.getValue();var Rt=be.innerText;return De&&De(Rt),Rt};return(0,ft.useImperativeHandle)(we,()=>({getData:pe})),Nt.createElement("div",{className:Wt.Z.mathWrap},Nt.createElement(ne.default,{defaultActiveKey:"1",items:Ze}),Nt.createElement("math-field",{locale:"zh_cn",className:Wt.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ue,style:{width:800,marginTop:30,fontSize:18}},de||""),Yt&&Nt.createElement("div",{className:Wt.Z.button},Nt.createElement(Dt.ZP,{size:"large",onClick:pe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});tn.Z=Ut},57444:function(jn,tn,mt){"use strict";mt.d(tn,{h:function(){return be}});var ft=mt(67294),Ft=mt(11713),$t=mt(22150),ne=mt(71577),Dt=mt(4631),Ht=mt.n(Dt),Wt=mt(71749),jt=mt(30483),Nt=Object.defineProperty,Ut=Object.defineProperties,De=Object.getOwnPropertyDescriptors,Yt=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,ue=(Rt,zt,Qt)=>zt in Rt?Nt(Rt,zt,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Rt[zt]=Qt,he=(Rt,zt)=>{for(var Qt in zt||(zt={}))de.call(zt,Qt)&&ue(Rt,Qt,zt[Qt]);if(Yt)for(var Qt of Yt(zt))we.call(zt,Qt)&&ue(Rt,Qt,zt[Qt]);return Rt},It=(Rt,zt)=>Ut(Rt,De(zt));const ye=Ft.default.Option,Ze={labelCol:{span:4},wrapperCol:{span:20}},pe={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"]};tn.Z=({callback:Rt,onCancel:zt})=>{const[Qt,te]=(0,ft.useState)("python");function Ie(en){te(pe[en][1])}function He(en){Rt(en)}return ft.createElement($t.default,It(he({},Ze),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:He,style:{width:500}}),ft.createElement($t.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ft.createElement(Ft.default,{getPopupContainer:en=>en.parentNode,onChange:Ie},Object.keys(pe).map(en=>ft.createElement(ye,{key:en,value:en},pe[en][0])))),ft.createElement($t.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ft.createElement(be,{mode:Qt})),ft.createElement("div",{className:"flex-container flex-end"},ft.createElement(ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ft.createElement(ne.ZP,{type:"ghost",onClick:zt},"\u53D6\u6D88")))};function be({value:Rt,onChange:zt,mode:Qt,options:te={}}){const Ie=(0,ft.useRef)(),[He,en]=(0,ft.useState)();return(0,ft.useEffect)(()=>{if(He){let ie=function(an){const nn=an.getValue();zt&&zt(nn)};return He.on("change",ie),()=>{He.off("change",ie)}}},[He,zt]),(0,ft.useEffect)(()=>{He&&He.setOption("mode",Qt)},[He,Qt]),(0,ft.useEffect)(()=>{He&&(Rt!==He.getValue()||Rt==="")&&setTimeout(()=>{He.setValue(Rt||"")},300)},[He,Rt]),(0,ft.useEffect)(()=>{if(Ie.current&&!He){const ie=Ht().fromTextArea(Ie.current,he({mode:Qt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},te));en(ie)}},[Ie.current,He]),ft.createElement("div",{className:"my-codemirror-container"},ft.createElement("textarea",{ref:Ie}))}},91304:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return pr}});var ft=mt(67294),Ft=mt(4631),$t=mt.n(Ft),ne=mt(91033),Dt=mt(71749),Ht=mt(57341),Wt=mt(82801),jt=mt(88386),Nt=mt(49047),Ut=mt(80785),De=mt(35598),Yt=({value:tr="",className:Xe,showTextOnly:mn,showLines:Tn,style:Nn={}})=>{const ge=(0,ft.useMemo)(()=>"",[tr]);return ft.createElement(ft.Fragment,null,ft.createElement("div",{dangerouslySetInnerHTML:{__html:ge}}))},de=mt(67294),we=Object.defineProperty,ue=Object.defineProperties,he=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,pe=(tr,Xe,mn)=>Xe in tr?we(tr,Xe,{enumerable:!0,configurable:!0,writable:!0,value:mn}):tr[Xe]=mn,be=(tr,Xe)=>{for(var mn in Xe||(Xe={}))ye.call(Xe,mn)&&pe(tr,mn,Xe[mn]);if(It)for(var mn of It(Xe))Ze.call(Xe,mn)&&pe(tr,mn,Xe[mn]);return tr},Rt=(tr,Xe)=>ue(tr,he(Xe));let zt=[{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 Qt({onActionCallback:tr,title:Xe,icon:mn,actionName:Tn,className:Nn="",children:ge}){function Cn(){tr(Tn)}return de.createElement("a",{title:Xe,className:Nn,onClick:Cn},de.createElement("i",{className:`${mn}`}),ge)}var te=({watch:tr,showNullButton:Xe,showNullProgramButton:mn,onActionCallback:Tn,fullScreen:Nn,insertTemp:ge,hidetoolBar:Cn,extraUse:ai})=>{const Te=[...zt,{title:`${tr?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${tr?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return de.createElement("ul",{className:"markdown-toolbar-container"},!Cn&&Te.map((ce,Oe)=>de.createElement("li",{key:Oe},ce.actionName?de.createElement(Qt,Rt(be({},ce),{onActionCallback:Tn})):de.createElement("span",{className:"v-line"}))),Xe?de.createElement("li",null,de.createElement(Qt,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Tn},de.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,mn?de.createElement(de.Fragment,null,de.createElement("li",null,de.createElement(Qt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Tn},de.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),de.createElement("li",null,de.createElement(Qt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Tn},de.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ge&&de.createElement("li",null,de.createElement(Qt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ge}`,onActionCallback:Tn},de.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),ai&&de.createElement("li",null,ai),de.createElement("li",{className:"btn-full-screen"},de.createElement(Qt,{icon:`${Nn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Nn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Tn})))},Ie=mt(76621),He=mt(22150),en=mt(69677),ie=mt(71577),an=Object.defineProperty,nn=Object.defineProperties,Vn=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,zn=Object.prototype.propertyIsEnumerable,Gn=(tr,Xe,mn)=>Xe in tr?an(tr,Xe,{enumerable:!0,configurable:!0,writable:!0,value:mn}):tr[Xe]=mn,Me=(tr,Xe)=>{for(var mn in Xe||(Xe={}))Ye.call(Xe,mn)&&Gn(tr,mn,Xe[mn]);if(Ne)for(var mn of Ne(Xe))zn.call(Xe,mn)&&Gn(tr,mn,Xe[mn]);return tr},_t=(tr,Xe)=>nn(tr,Vn(Xe));const rn={labelCol:{span:4},wrapperCol:{span:20}};var ti=({callback:tr,onCancel:Xe})=>{function mn(Tn){tr(Tn)}return ft.createElement(He.default,_t(Me({},rn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:mn,style:{width:500}}),ft.createElement(He.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ft.createElement(en.default,null)),ft.createElement(He.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ft.createElement(en.default,null)),ft.createElement("div",{className:"flex-container flex-end"},ft.createElement(ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ft.createElement(ie.ZP,{type:"ghost",onClick:Xe},"\u53D6\u6D88")))},vn=mt(57444),ze=mt(70859),on=mt(14446),On=mt(71230),Ni=mt(63205),gi=mt(67294),Dn=({callback:tr,onCancel:Xe})=>{const mn=document.createElement("canvas"),Tn=mn.getContext("2d");mn.width=1e3,mn.height=800,Tn.fillStyle="#ffffff",Tn.fillRect(0,0,mn.width,mn.height);const Nn=mn.toDataURL("image/png");return gi.createElement(on.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},gi.createElement(On.Z,{style:{height:"100vh"}},gi.createElement(Ni.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Nn,visible:!0,title:String(Date.now())},onOk:ge=>{tr({src:ge.url})},onClose:Xe})))},Jn=mt(72565),Ai=mt(15746),hi=mt(2453),qt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},kt=mt(67294),Pt=(0,ft.forwardRef)(({onCancel:tr,editImgId:Xe,callback:mn},Tn)=>{let Nn=(0,ft.useRef)(),ge=(0,ft.useRef)(),Cn=(0,ft.useRef)(),ai=(0,ft.useRef)(!1);const Te=(0,ft.useRef)(!1);console.log("ref:",Tn);const[ce,Oe]=(0,ft.useState)(0),[pn,fi]=(0,ft.useState)("100vh");return(0,ft.useEffect)(()=>{Oe(1);try{indexedDB.databases().then($n=>{$n.forEach(_e=>indexedDB.deleteDatabase(_e.name))})}catch($n){}},[]),(0,ft.useImperativeHandle)(Tn,()=>({setHeight:fi})),kt.createElement("div",{ref:Te,className:"body-overflow-initial"},kt.createElement(Jn.Z,{width:"100vw",height:pn,footer:null,closable:!0,placement:"bottom",open:!!ce,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${qt.drawerWrap}`,onClose:()=>{window.saveDrawData($n=>{mn({src:`/api/attachments/${$n}`,id:$n})})},title:kt.createElement(On.Z,{align:"middle"},kt.createElement(Ai.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),kt.createElement(Ai.Z,{onClick:()=>{fi(pn==="60px"?"100vh":"60px")}},kt.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),kt.createElement(Ai.Z,{onClick:()=>{window.saveDrawData($n=>{if($n===null){hi.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}hi.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),mn({src:`/api/attachments/${$n}`,id:$n,disabledClose:!0})})}},kt.createElement(ie.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},kt.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${Xe||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:ge})))}),At=mt(11320),wt=mt(78045),Xt=mt(31795);const Re=wt.ZP.Group,We={margin:"0 8px"};var In=({callback:tr,onCancel:Xe})=>{function mn(Tn){tr(Tn)}return ft.createElement(He.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:mn},ft.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ft.createElement("span",{style:We},"\u5355\u5143\u683C\u6570\uFF1A"),ft.createElement("span",{style:We},"\u884C\u6570"),ft.createElement(He.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ft.createElement(Xt.Z,null)),ft.createElement("span",{style:We},"\u5217\u6570"),ft.createElement(He.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ft.createElement(Xt.Z,null))),ft.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ft.createElement("span",{style:We},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ft.createElement(He.default.Item,{name:"align"},ft.createElement(Re,null,ft.createElement(wt.ZP,{value:"default"},ft.createElement("i",{className:"fa fa-align-justify"})),ft.createElement(wt.ZP,{value:"left"},ft.createElement("i",{className:"fa fa-align-left"})),ft.createElement(wt.ZP,{value:"center"},ft.createElement("i",{className:"fa fa-align-center"})),ft.createElement(wt.ZP,{value:"right"},ft.createElement("i",{className:"fa fa-align-right"}))))),ft.createElement("div",{className:"flex-container flex-end"},ft.createElement(ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ft.createElement(ie.ZP,{type:"ghost",onClick:Xe},"\u53D6\u6D88")))},Hn=mt(47897),Un=mt(61016),Yn=mt.n(Un),bn=(0,ft.forwardRef)(({use3d:tr,width:Xe,height:mn,callback:Tn,showSaveButton:Nn},ge)=>{const Cn=(0,ft.useRef)(),ai=(0,ft.useRef)(),[Te,ce]=(0,ft.useState)(!1),Oe=(0,ft.useRef)({id:Cn,appName:"graphing",width:Xe||1e3,height:mn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ft.useEffect)(()=>{ai.current=new(Yn())(Oe.current,!0),window.onload=function(){ai.current.inject("applet_container")}},[]);const pn=()=>{var fi=window.ggbApplet.getPNGBase64(1,!0,72);return Tn&&Tn(fi),fi};return(0,ft.useEffect)(()=>{Oe.current.appName=Te?"3D":"graphing",ai.current.inject("applet_container")},[Te]),(0,ft.useEffect)(()=>{ce(tr)},[tr]),(0,ft.useImperativeHandle)(ge,()=>({getImgData:pn})),ft.createElement(ft.Fragment,null,ft.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Cn}),ft.createElement(On.Z,{align:"middle"},ft.createElement(Ai.Z,{flex:1},ft.createElement(Hn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Te,onChange:fi=>ce(fi)})),ft.createElement(Ai.Z,null,ft.createElement(ie.ZP,{size:"large",onClick:pn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),En=mt(36527),Qn=mt(25934);const Sn="link",Vi="upload-image",Qe="add-flowchart",Pn="draw-image",Ci="add-flowchart",yi="code-block",Oi="add-table",ar="------------",br={default:ar,left:`:${ar}`,center:`:${ar}:`,right:`${ar}:`};var wr=mt(99914),cr=(tr,Xe,mn)=>new Promise((Tn,Nn)=>{var ge=Te=>{try{ai(mn.next(Te))}catch(ce){Nn(ce)}},Cn=Te=>{try{ai(mn.throw(Te))}catch(ce){Nn(ce)}},ai=Te=>Te.done?Tn(Te.value):Promise.resolve(Te.value).then(ge,Cn);ai((mn=mn.apply(tr,Xe)).next())});function Ar(){}let ir=0;const kr=1e4,po="\u2581",So="@\u2581\u2581@",Eo="@\u2581@",Yr=`
|
|
|
**\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`,Mn=["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 St(tr){return/^\d+$/.test(tr)?`${tr}px`:tr}const mi=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",rr={[mi+"-B"]:"bold",[mi+"-I"]:"italic"},fr={[Sn]:"\u6DFB\u52A0\u94FE\u63A5",[yi]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Vi]:"\u6DFB\u52A0\u56FE\u7247",[Pn]:"\u6DFB\u52A0\u753B\u56FE",[Qe]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Oi]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var pr=({defaultValue:tr="",onChange:Xe,width:mn="100%",height:Tn=400,miniToolbar:Nn=!1,isFocus:ge=!1,watch:Cn,insertTemp:ai,mode:Te="markdown",id:ce="markdown-editor-id",showResizeBar:Oe=!1,noStorage:pn=!1,showNullButton:fi=!1,showNullProgramButton:$n=!1,hidetoolBar:_e=!1,fullScreen:ri=!1,onBlur:Ri,onCMBeforeChange:$e,onFullScreen:Ge,className:un="",disablePaste:xi=!1,disabled:Yi=!1,disabledFill:ci=!1,placeholder:Xn="",values:qn="",extraUse:Ki,onAddBlank:vr})=>{const[ki,Or]=(0,ft.useState)(null),[Ii,ao]=(0,ft.useState)(tr),[qr,Do]=(0,ft.useState)(Cn),[ui,Co]=(0,ft.useState)(ri),[bo,Kr]=(0,ft.useState)(""),[wo,Sr]=(0,ft.useState)(0),[Xr,Br]=(0,ft.useState)(Tn),[yo,ko]=(0,ft.useState)(!1),oi=(0,ft.useRef)((0,Qn.Z)()),kn=(0,ft.useRef)(!1),Ce=(0,ft.useRef)(),[si,Wi]=(0,ft.useState)(0),[Gi,Tr]=(0,ft.useState)(0),Lr=(0,ft.useRef)(),Cr=(0,ft.useRef)(),jr=(0,ft.useRef)(),Jr=(0,ft.useRef)(),Wr=(0,ft.useRef)(),or=(0,ft.useRef)(),Gt=()=>cr(void 0,null,function*(){var pi;const di=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:oi.current}});(pi=di==null?void 0:di.attachments)!=null&&pi.length&&(console.log("cm:",ki,Lr),di.attachments.map(Wn=>{Wn.content_type.indexOf("image")>-1?ki.replaceSelection(``):Wn.content_type.indexOf("video")>-1?ki.replaceSelection(`<video width="100%" controls src="${At.Z.API_SERVER}/api/attachments/${data.id}"></video>`):Wn.content_type.indexOf("pdf")>-1?ki.replaceSelection(`<a href="${At.Z.API_SERVER}/api/attachments/${Wn.id}?type=${Wn.content_type}&disposition=inline" target="_blank">${Wn.name}</a>`):ki.replaceSelection(`[${Wn.name}](${At.Z.API_SERVER}/api/attachments/${Wn.id}?type=${Wn.content_type})`)}))});(0,ft.useEffect)(()=>{const pi=window.scrollY||window.pageYOffset;ao(qn),ki==null||ki.setValue(qn),window.scrollTo(0,pi)},[qn]),(0,ft.useEffect)(()=>{Ge==null||Ge(ui)},[ui]),(0,ft.useEffect)(()=>{if(Lr.current){let pi=function(Wn,Bi){var sr;if(xi){Bi.preventDefault();return}const _i=Bi.clipboardData;if(_i){const Ui=_i.types.toString(),qi=_i.items;if(Ui==="Files"||_i.types.indexOf("Files")>-1){if(Bi.preventDefault(),Te=="stex")return;try{let lr=qi[1];((sr=qi[0])==null?void 0:sr.kind)==="file"&&(lr=qi[0]);const je=lr.getAsFile(),ve=je.name.split(".").pop();(0,ze.I)(je,ke=>{var xn,cn,ni;ke.id?((xn=je==null?void 0:je.type)==null?void 0:xn.indexOf("image"))>-1?di.replaceSelection(`<img width="100%" src="/api/attachments/${ke.id}?type=${ke.content_type})" alt="" />`):((cn=je==null?void 0:je.type)==null?void 0:cn.indexOf("video"))>-1?di.replaceSelection(`<video width="100%" controls src="/api/attachments/${ke.id}"></video>`):((ni=je==null?void 0:je.type)==null?void 0:ni.indexOf("pdf"))>-1?di.replaceSelection(`<a href="/api/attachments/${ke.id}?type=${je.type}&disposition=inline" target="_blank">${je.name}</a>`):Mn.includes(ve)?di.replaceSelection(`<a href="/api/attachments/${ke.id}?type=office&disposition=inline" target="_blank">${je.name}</a>`):di.replaceSelection(`[${je.name}](/api/attachments/${ke.id}?type=${ke.content_type})`):(ke==null?void 0:ke.status)===401&&(hi.ZP.warning((ke==null?void 0:ke.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(lr){hi.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const di=$t().fromTextArea(Lr.current,{mode:Te,lineNumbers:!Nn,lineWrapping:!0,value:tr,autoCloseTags:!$n,autoCloseBrackets:!0});return di.on("keyup",function(Wn,Bi){Bi.keyCode===8&&(Wn.getValue()==""?di.setOption("placeholder",Xn):di.setOption("placeholder",null))}),di.on("keydown",function(Wn,Bi){if(Bi.keyCode===8){var sr=wi(Wn);sr&&Bi.preventDefault()}}),ge&&di.focus(),di.on("paste",pi),di.on("dragleave",function(Wn,Bi){Cr.current.classList.remove("mouse-hover-md")}),Yi&&di.on("beforeChange",function(Wn,Bi){(Bi.origin==="paste"||Bi.origin==="+input")&&Bi.cancel()}),Or(di),()=>{di.off("paste",pi)}}},[]);const Zn=(0,ft.useCallback)(()=>{if(Cr.current)try{}catch(pi){console.log(pi,"---- to set md editor body height")}},[Xr,Cr,ui]);(0,ft.useEffect)(()=>{function pi(){let di=new ne.Z(Wn=>{for(let Bi of Wn)(Bi.target.offsetHeight>0||Bi.target.offsetWidth>0)&&(Zn(),ki.setSize("100%","100%"),ki.refresh())});return di.observe(Lr.current.parentElement),di}if(ki){const di=pi();return()=>{var Wn,Bi;(Wn=Lr.current)!=null&&Wn.parentElement&&di.unobserve((Bi=Lr.current)==null?void 0:Bi.parentElement)}}},[ki,Zn]),(0,ft.useEffect)(()=>{if(ki){let pi=[];for(const[di,Wn]of Object.entries(rr)){let Bi={[di]:()=>{Fi(Wn)}};pi.push(Bi),ki.addKeyMap(Bi)}return Ce.current=setInterval(()=>{kn.current&&Gt()},4e3),()=>{clearInterval(Ce.current);for(let di of pi)ki.removeKeyMap(di)}}},[ki]),(0,ft.useEffect)(()=>{ri!==ui&&Co(ri)},[ri]),(0,wr.Z)(()=>{if(!pn&&wo>0){let pi=new Date().getTime(),di=window.sessionStorage.getItem(ce);pi>=wo+kr&&(!di||di!==Ii)&&(window.sessionStorage.setItem(ce,Ii),ko(!0))}},kr),(0,ft.useEffect)(()=>{Do(Cn)},[ki,Cn]),(0,ft.useEffect)(()=>{ki&&ge&&ki.focus()},[ki,ge]),(0,ft.useEffect)(()=>{if(qr&&ki){let pi=function(Wn){let Bi=Wn.target;if(Jr.current){let sr=Bi.scrollTop/Bi.scrollHeight;Jr.current.scrollTop=Jr.current.scrollHeight*sr}};const di=ki.getScrollerElement();return di.addEventListener("scroll",pi),()=>{di.removeEventListener("scroll",pi)}}},[ki,qr]),(0,ft.useEffect)(()=>{if(ki&&$e){let pi=function(di,Wn){$e(di,Wn)};return ki.on("beforeChange",pi),()=>{ki.off("beforeChange",pi)}}},[ki,$e]),(0,ft.useEffect)(()=>{if(ki&&Ri){let pi=function(){Ri(ki.getValue())};return ki.on("blur",pi),()=>{ki.off("blur",pi)}}},[ki,Ri]);function wi(pi,di){var Wn=pi.getDoc(),Bi=Wn.getCursor(),sr=Wn.getLine(Bi.line),_i=sr.charAt(Bi.ch-1),Ui=sr.lastIndexOf("@\u2581@",Bi.ch),qi=sr.lastIndexOf("@\u2581\u2581@",Bi.ch),lr=Ui>qi?Ui:qi,je=Ui>qi?3:4;if(So.indexOf(_i)===-1)return null;if(console.log("change1:",di,pi,sr,Bi,lr,Ui,qi,_i),lr>=0&&Bi.ch-lr<5){var ve=lr+je;return Wn.replaceRange("",{line:Bi.line,ch:lr},{line:Bi.line,ch:ve}),{line:Bi.line,ch:ve}}return null}(0,ft.useEffect)(()=>{if(ki){let pi=function(di,Wn){const Bi=di.getValue();ao(Bi),Sr(new Date().getTime()),di.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Xe&&($n?Xe(Bi,yn(Bi)):Xe(Bi))};return ki.on("change",pi),()=>{ki.off("change",pi)}}},[ki,Xe]),(0,ft.useEffect)(()=>{if(ki)if(tr==null)ki.setValue(""),ao("");else{const pi=window.scrollY||window.pageYOffset;tr!==ki.getValue()&&(ki.setValue(tr),ao(tr),ki.setCursor(Yi?1:ki.lineCount(),0),window.scrollTo(0,pi))}},[ki,tr]);const Fi=(0,ft.useCallback)(pi=>{const di=ki.getCursor(),Wn=ki.getSelection();let Bi=Wn.split(`
|
|
|
`);switch(pi){case"bold":return ki.replaceSelection("**"+Wn+"**"),Wn===""&&ki.setCursor(di.line,di.ch+2),ki.focus();case"italic":return ki.replaceSelection("*"+Wn+"*"),Wn===""&&ki.setCursor(di.line,di.ch+1),ki.focus();case"code":return ki.replaceSelection("`"+Wn+"`"),Wn===""&&ki.setCursor(di.line,di.ch+1),ki.focus();case"inline-latex":return Kr("inline-latex"),ki.focus();case"latex":return ki.replaceSelection("```latex\n"+Wn+"\n```"),ki.setCursor(di.line+1,Wn.length+1),ki.focus();case"line-break":return ki.replaceSelection(`<br/>
|
|
|
`),ki.focus();case"list-ul":return Wn===""?ki.replaceSelection("- "+Wn):ki.replaceSelection(Bi.map(sr=>sr===""?"":`- ${sr}`).join(`
|
|
|
`)),ki.focus();case"list-ol":return Wn===""?ki.replaceSelection("1. "+Wn):ki.replaceSelection(Bi.map((sr,_i)=>sr===""?"":`${_i+1}. ${sr}`).join(`
|
|
|
`)),ki.focus();case"add-null-ch":vr==null||vr();return;case"add-signal":return Wn===""&&ki.setCursor(di.line,di.ch),ki.replaceSelection(Eo),ki.focus();case"add-multiple":return Wn===""&&ki.setCursor(di.line,di.ch),ki.replaceSelection(So),ki.focus();case"inster-template-1":return Wn===""&&ki.setCursor(di.line,di.ch),ki.replaceSelection(Yr),ki.focus();case"eraser":return ki.setValue(""),ki.focus();case"trigger-watch":return Do(!qr),ki.focus();case"trigger-full-screen":return Co(!ui),ki.focus();case Sn:Kr(Sn);return;case yi:Kr(yi);return;case Vi:Kr(Vi);return;case Pn:Kr(Pn);return;case"maths-latex":Kr("maths-latex");return;case Qe:Wr.current="",sessionStorage.removeItem("file_id"),Kr(Qe);return;case Oi:Kr(Oi);return;default:throw new Error}},[ki,qr,ui]),Tt=(0,ft.useCallback)((pi,di)=>{var Wn,Bi,sr,_i,Ui,qi;Kr("");const{src:lr,alt:je,id:ve}=pi||{};switch(bo){case Sn:const{title:Ti,link:qe}=pi;return ki.replaceSelection(`[${Ti}](${qe})`),ki.focus();case yi:const{language:Je,content:sn}=pi;return ki.replaceSelection(["```"+Je,sn,"```"].join(`
|
|
|
`)),ki.focus();case"maths-latex":for(var ke=atob(pi),xn=new Uint8Array(ke.length),cn=0;cn<ke.length;cn++)xn[cn]=ke.charCodeAt(cn);var ni=new Blob([xn],{type:"image/png"});(0,ze.I)(ni,Ln=>{Ln.id?ki.replaceSelection(``):(Ln==null?void 0:Ln.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":ki.replaceSelection("`$$"+pi+"$$`");break;case Ci:if(!ve)return;ki.focus(),ki.getValue().indexOf(lr)===-1?ki.replaceSelection(`<center><img id="${ve}" width="80%" src="${lr}" class="draw-flowchart" alt="${je||""}" /></center>`):document.getElementById(ve).src=At.Z.API_SERVER+lr+"?t="+Date.now();try{setTimeout(()=>{Ri(ki.getValue())},100)}catch(Ln){}break;case Vi:case Pn:const hn=di,bi=(sr=(Bi=(Wn=hn==null?void 0:hn.name)==null?void 0:Wn.split("."))==null?void 0:Bi.pop)==null?void 0:sr.call(Bi);return((_i=hn==null?void 0:hn.type)==null?void 0:_i.indexOf("image"))>-1||!(hn!=null&&hn.type)?hn!=null&&hn.align||hn!=null&&hn.width?ki.replaceSelection(`<p style="text-align:${hn.align||"initial"}"><img width="${hn.width?hn.width+"%":"initial"}" src="${lr}" alt="${je||""}" /></p>`):ki.replaceSelection(`<img width="100%" src="${lr}" alt="${je||""}" />`):((Ui=hn==null?void 0:hn.type)==null?void 0:Ui.indexOf("video"))>-1?ki.replaceSelection(`<video width="100%" controls src="${lr}"></video>`):((qi=hn==null?void 0:hn.type)==null?void 0:qi.indexOf("pdf"))>-1?ki.replaceSelection(`<a href="${lr}?type=${hn.type}&disposition=inline" target="_blank">${hn.name}</a>`):Mn.includes(bi)?ki.replaceSelection(`<a href="${lr}?type=office&disposition=inline" target="_blank">${hn.name}</a>`):ki.replaceSelection(`[${hn.name}](${lr})`),ki.focus();case Oi:const{row:zi,col:li,align:Kn}=pi;let ur=`
|
|
|
`;for(let Ln=0;Ln<zi;Ln++){let wn=[],_n=[];for(let Ei=0;Ei<li;Ei++)Ln===1&&_n.push(br[Kn]),wn.push(" ");Ln===1&&(ur+=`| ${_n.join(" | ")} |
|
|
|
`),ur+=`| ${wn.join(li===1?"":" | ")} |
|
|
|
`}return ki.replaceSelection(ur+`
|
|
|
`),ki.focus();default:throw new Error}},[ki,bo]),ee=(0,ft.useMemo)(()=>{switch(bo){case Sn:return ft.createElement(ti,{callback:Tt,onCancel:le});case yi:return ft.createElement(vn.Z,{callback:Tt,onCancel:le});case Vi:return ft.createElement(ze.Z,{callback:Tt,onCancel:le});case Qe:return ft.createElement(Pt,{editImgId:Wr.current,callback:Tt,onCancel:le});case Oi:return ft.createElement(In,{callback:Tt,onCancel:le});case"maths-latex":return ft.createElement(bn,{showSaveButton:!0,callback:Tt});case"inline-latex":return ft.createElement(En.Z,{showSaveButton:!0,callback:Tt});default:return null}},[bo]);function le(){Kr("")}(0,ft.useEffect)(()=>{if(jr.current){let pi=function(Ui){sr=!0,_i=Ui.pageY},di=function(){sr=!1},Wn=function(Ui){if(sr){let qi=Ui.pageY-_i;qi<0&&(qi=0),qi>300&&(qi=300);let lr=Tn+qi+"px";Br(lr)}},Bi=jr.current,sr=!1,_i=0;return Bi.addEventListener("mousedown",pi),document.addEventListener("mousemove",Wn),document.addEventListener("mouseup",di),()=>{Bi.removeEventListener("mousedown",pi),document.removeEventListener("mousemove",Wn),document.removeEventListener("mouseup",di)}}},[ki,jr]),(0,ft.useEffect)(()=>{Br(Tn)},[Tn]);const xe=St(mn),fe=St(Xr),Ee={width:xe,height:fe},Ae=(0,ft.useMemo)(()=>{if(wo){let pi=new Date(wo),di=pi.getHours(),Wn=pi.getMinutes(),Bi=pi.getSeconds();return di=di<10?"0"+di:di,Wn=Wn<10?"0"+Wn:Wn,Bi=Bi<10?"0"+Bi:Bi,`${di}:${Wn}:${Bi}`}return 0},[wo]),yn=pi=>{const di=[];if($n){let Wn=-1;pi=pi.replace(/(@▁▁@|@▁@)/g,function(Bi,sr,_i){di.push({multiLine:Bi!==Eo})})}return di};function Rn(){window.sessionStorage.removeItem(ce),ko(!1),Sr(0)}function Pi(){ko(!1),Sr(0),ki.setValue(window.sessionStorage.getItem(ce))}(0,ft.useEffect)(()=>{fr[bo]&&bo!==Pn&&bo!==Qe&&setTimeout(()=>{const pi=document.getElementsByClassName("markdown-popup-form")[0],di=window.innerWidth/2-pi.offsetWidth/2,Wn=window.innerHeight/2-pi.offsetHeight/2;Wi(di),Tr(Wn)},0)},[bo]);const An=pi=>{pi.preventDefault();const di=pi.clientX-si,Wn=pi.clientY-Gi;document.body.onmousemove=Bi=>{let sr=Bi.clientX-di,_i=Bi.clientY-Wn;const Ui=document.getElementsByClassName("markdown-popup-form")[0],qi=window.innerWidth-Ui.offsetWidth,lr=window.innerHeight-Ui.offsetHeight;sr=Math.max(0,Math.min(sr,qi)),_i=Math.max(0,Math.min(_i,lr)),Mi(Bi.clientX,Bi.clientY,di,Wn)&&(Wi(sr),Tr(_i))},document.body.onmouseup=function(){document.body.onmousemove=null}},Mi=(pi,di,Wn,Bi)=>{const sr=document.body.clientHeight,_i=document.body.clientWidth;return pi<20&&Wn>pi||pi>_i-20&&Wn<pi||di<20&&Bi>di||di>sr-20&&Bi<di?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ft.createElement(ft.Fragment,null,ft.createElement("div",{className:"markdown-editor-wrapper",ref:Cr},ft.createElement("div",{className:`markdown-editor-container ${un} ${qr?"on-preview":""} ${Nn?"mini":""} ${ui?"full-screen":""}`,style:Ee},ft.createElement(te,{insertTemp:ai,watch:qr,fullScreen:ui,showNullButton:fi,showNullProgramButton:$n,onActionCallback:Fi,hidetoolBar:_e,extraUse:Ki}),ft.createElement("div",{className:"markdown-editor-body"},ft.createElement("div",{className:"codemirror-container"},ft.createElement("textarea",{ref:Lr,placeholder:Xn})),qr?ft.createElement("div",{ref:Jr,className:"preview-container"},Te==="stex"&&ft.createElement(Yt,{value:Ii}),Te!=="stex"&&ft.createElement(De.Z,{edit:!0,disabledFill:ci,showProgramFill:$n,value:Ii,openEditor:pi=>{var di;Wr.current=pi,(di=or.current)==null||di.setHeight("100vh"),setTimeout(()=>{Kr("add-flowchart")},150)}})):null))),Oe?ft.createElement("a",{ref:jr,className:"editor-resize"}):null,bo===Pn&&ft.createElement(Dn,{callback:Tt,onCancel:le}),bo===Qe&&ft.createElement(Pt,{ref:or,editImgId:Wr.current,callback:Tt,onCancel:le}),ft.createElement(Ie.Z,null,fr[bo]&&bo!==Pn&&bo!==Qe?ft.createElement(on.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:si,top:Gi},title:ft.createElement("div",{style:{cursor:"move"},onMouseDown:An},fr[bo]),open:!0,onCancel:le,footer:null,destroyOnClose:!0,width:bo===Qe?"1200px":null,height:bo===Qe?"80vh":null,className:"markdown-popup-form"},ee):null))}},70859:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Qt},I:function(){return Ie}});var ft=mt(22150),Ft=mt(2453),$t=mt(69677),ne=mt(93421),Dt=mt(31795),Ht=mt(78045),Wt=mt(71577),jt=mt(15476),Nt=mt(67294),Ut=mt(52262),De=mt(67294),Yt=Object.defineProperty,de=Object.defineProperties,we=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,ye=(He,en,ie)=>en in He?Yt(He,en,{enumerable:!0,configurable:!0,writable:!0,value:ie}):He[en]=ie,Ze=(He,en)=>{for(var ie in en||(en={}))he.call(en,ie)&&ye(He,ie,en[ie]);if(ue)for(var ie of ue(en))It.call(en,ie)&&ye(He,ie,en[ie]);return He},pe=(He,en)=>de(He,we(en));const{useForm:be}=ft.default,Rt={width:280,marginRight:10},zt={labelCol:{span:5},wrapperCol:{span:19}};var Qt=({callback:He,onCancel:en})=>{const[ie]=be();let an=(0,Nt.useRef)();function nn(Ye){an.current.width=ie.getFieldValue("width"),an.current.align=ie.getFieldValue("align"),He(Ye,an.current)}function Vn(Ye,zn){if(Ye.status===-1){Ft.ZP.error(Ye.message);return}ie.setFieldsValue({src:`/api/attachments/${Ye.id}`,type:zn.type})}function Ne(Ye){let zn=Ye.target.files[0];an.current=zn,Ie(zn,Vn)}return De.createElement(ft.default,pe(Ze({form:ie},zt),{className:"upload-image-panel",onFinish:nn,style:{width:470,overflow:"hidden"}}),De.createElement(ft.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},De.createElement("div",{className:"flex-container"},De.createElement(ft.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},De.createElement($t.default,{style:Rt})),De.createElement(te,{onFileChange:Ne}))),De.createElement(ft.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},De.createElement($t.default,{style:{width:264}})),De.createElement(ft.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},De.createElement(ne.Z,null,De.createElement(ft.default.Item,{name:"width",style:{margin:0}},De.createElement(Dt.Z,{style:{width:264}})),De.createElement("span",{className:"ml8"},"%"))),De.createElement(ft.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},De.createElement(Ht.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"}]})),De.createElement("aside",null,De.createElement(ft.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},De.createElement(Wt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),De.createElement(Wt.ZP,{type:"default",onClick:en},"\u53D6\u6D88"))))};function te({onFileChange:He}){return De.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",De.createElement("input",{type:"file",onChange:He}))}function Ie(He,en){if(!He)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ut.bg)())throw Ft.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let ie=new FormData;ie.append("editormd-image-file",He),ie.append("file_param_name","editormd-image-file"),ie.append("byxhr","true");var an=new window.XMLHttpRequest;an.withCredentials=!0,an.addEventListener("load",function(nn){en(JSON.parse(nn.target.responseText),He)},!1),an.addEventListener("error",function(nn){console.error(nn)},!1),an.open("POST",`${jt.KI}/api/attachments.json`),an.send(ie)}},76621:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return $t}});var ft=mt(67294),Ft=mt(73935);class $t extends ft.Component{constructor(Dt){super(Dt);const Ht=window.document;this.node=Ht.createElement("div"),Ht.body.appendChild(this.node)}render(){const{children:Dt}=this.props;return(0,Ft.createPortal)(Dt,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},5476:function(jn,tn,mt){"use strict";mt.d(tn,{i:function(){return zt},Z:function(){return te}});var ft={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},Ft=mt(57953),$t=mt(83062),ne=mt(38703),Dt=mt(94184),Ht=mt.n(Dt),Wt=mt(28706),jt=mt(26194),Nt=mt(52262),Ut=mt(79005),De=mt(20345),Yt=mt(77882),de=mt(31081),we=mt(75309),ue=mt(71979),he=mt(47558),It=mt(60345),ye=mt(66832),Ze=mt(96593),pe=mt(19664),be=mt(91833),Rt=mt(67294);const zt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ut,swimg:De},{name:"101\u8BA1\u5212",ptimg:Yt,swimg:de},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:we,swimg:ue},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:he,swimg:It},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:ye,swimg:Ze},{name:"\u519B\u961F\u4E00\u6D41",ptimg:pe,swimg:be}];var te=({className:Ie,dataSource:He=[],col:en=4,right:ie,bottom:an=23,precision:nn=0,wrapWidth:Vn=1200,trackEventItems:Ne,loading:Ye,onRemove:zn=()=>{},isCurrent:Gn=!0,showAlias:Me=!1,showProgress:_t=!1})=>{const rn=Math.floor((Vn-(en-1)*ie)/en),ti=[{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"}].map(vn=>(window.ENV==="build"&&(vn.ptimg=`/react/build${vn.ptimg}`,vn.swimg=`/react/build${vn.swimg}`),vn));return Rt.createElement(Ft.Z,{spinning:Ye},Rt.createElement("div",{className:Ht()(ft.list,Ie)},!!(He!=null&&He.length)&&(He==null?void 0:He.map((vn,ze)=>{var on,On,Ni,gi,Dn,Jn;const{name:Ai,id:hi,identifier:qt,featured:kt,school_name:Ct,image_url:Pt,excellent:At,is_plan:wt}=vn;return Rt.createElement("div",{key:hi,className:Gn&&_t?ft.wrapisCurrent:ft.wrap,style:{width:rn,marginRight:(1+ze)%en===0?0:ie+nn,marginBottom:an}},Rt.createElement("a",{className:ft.li,onClick:Xt=>{Xt.preventDefault(),Xt.stopPropagation(),Ne&&(0,Wt.L9)([Ne]),(0,Wt.xg)(`/paths/${qt}`)}},Rt.createElement("div",{className:ft.img},Rt.createElement("img",{className:ft.cover,src:`${Pt}`}),Gn&&(0,Nt.bg)()&&(vn==null?void 0:vn.studying)&&Rt.createElement("div",{className:`${ft.movebq} user-path-items`,onClick:Xt=>{Xt.stopPropagation(),zn(vn)}},Rt.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Rt.createElement("span",{className:"c-red"},"\u79FB\u9664")),(on=vn==null?void 0:vn.subject_tags)==null?void 0:on.map((Xt,Re)=>{var We,In;if(Re===0){const Un=(We=ti.find(Yn=>Yn.name==Xt))==null?void 0:We.swimg;return Rt.createElement("img",{className:ft.sign,src:Un,style:{left:"-4px"}})}const Hn=(In=ti.find(Un=>Un.name==Xt))==null?void 0:In.ptimg;return Rt.createElement("img",{className:ft.sign,src:Hn,style:{left:`${48+52*(Re-1)+2*Re}px`}})}),Rt.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(vn==null?void 0:vn.excellent)&&Rt.createElement("div",{className:ft.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Rt.createElement("div",{className:ft.name},Rt.createElement($t.Z,{title:Me&&(vn!=null&&vn.excellent_alias_name)?Rt.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Ai}`,Rt.createElement("br",null),Rt.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${vn==null?void 0:vn.excellent_alias_name}`)):Ai},Rt.createElement("span",{className:ft.e},Me&&(vn==null?void 0:vn.excellent_alias_name)||Ai))),Gn&&_t&&((On=vn==null?void 0:vn.progress)==null?void 0:On.all_score)!=0&&Rt.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Rt.createElement(ne.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Ni=vn==null?void 0:vn.progress)==null?void 0:Ni.my_score)/((gi=vn==null?void 0:vn.progress)==null?void 0:gi.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Dn=vn==null?void 0:vn.progress)==null?void 0:Dn.my_score,"/",(Jn=vn==null?void 0:vn.progress)==null?void 0:Jn.all_score),(!Gn||!_t)&&Rt.createElement("div",{className:ft.tags},Rt.createElement("div",null,Rt.createElement($t.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Rt.createElement("span",null,Rt.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Rt.createElement("span",null,vn.stages_count))),Rt.createElement($t.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Rt.createElement("span",null,Rt.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Rt.createElement("span",null,vn.members_count)))))))})),!He.length&&Rt.createElement(jt.Z,null)))}},78311:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Ht}});var ft=mt(67294),Ft={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"},$t=mt(94184),ne=mt.n($t),Ht=({dataSource:Wt=[],value:jt,onChange:Nt,className:Ut,style:De={}})=>ft.createElement("div",{style:De,className:ne()(Ft.tabs,Ut)},Wt.map(Yt=>ft.createElement("span",{onClick:()=>Nt(Yt.id),className:jt===Yt.id?Ft.active:"",key:Yt.id},Yt.name)))},64743:function(jn,tn,mt){"use strict";mt.d(tn,{jL:function(){return Dt},w9:function(){return mi},vv:function(){return Nn},dN:function(){return tr},QD:function(){return Ce},cQ:function(){return wt.Z},vg:function(){return Eo},Oz:function(){return cr},op:function(){return Xr},O5:function(){return Ee},_b:function(){return Cr},t7:function(){return en},tT:function(){return nn},Gi:function(){return Ri},YG:function(){return Te},Ed:function(){return _e},kT:function(){return pn},qp:function(){return It},Um:function(){return zt},K3:function(){return pe},vr:function(){return Gi},qE:function(){return ko},Je:function(){return Ye},wb:function(){return gi},rC:function(){return At},lB:function(){return Ai},cq:function(){return ci},kO:function(){return vr},tp:function(){return Qt.Z},Si:function(){return Rn},k8:function(){return Ti},Du:function(){return sr}});var ft=mt(67294),Ft={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"},$t="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx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iGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Dt=({dataSource:qe=[],img:Je,imgWidth:sn=346,title:hn,sunTitle:bi,bannerExtraContent:zi})=>ft.createElement("div",{className:Ft.banner},ft.createElement("div",{className:Ft.content},ft.createElement("aside",null,ft.createElement("p",null,ft.createElement("b",null,hn),ft.createElement("span",null,bi)),qe.length>0&&ft.createElement("div",{className:Ft.btns},qe.map((li,Kn)=>ft.createElement("div",{key:Kn,onClick:li.click},li.name,li.sign?ft.createElement("img",{src:$t,width:39}):null))),zi),Je&&ft.createElement("img",{style:{marginTop:33,marginRight:38},src:Je,width:sn}))),Ht={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"},Wt=mt(94184),jt=mt.n(Wt),Nt=mt(96486),Ut=Object.defineProperty,De=Object.getOwnPropertySymbols,Yt=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,we=(qe,Je,sn)=>Je in qe?Ut(qe,Je,{enumerable:!0,configurable:!0,writable:!0,value:sn}):qe[Je]=sn,ue=(qe,Je)=>{for(var sn in Je||(Je={}))Yt.call(Je,sn)&&we(qe,sn,Je[sn]);if(De)for(var sn of De(Je))de.call(Je,sn)&&we(qe,sn,Je[sn]);return qe},It=({dataSource:qe=[],value:Je,onChange:sn,onTitleChange:hn,className:bi,title:zi,titleWidth:li=41,style:Kn={},fontColor:ur="#6A7283",showCount:Ln,classNameActive:wn,styleItem:_n={}})=>{const[Ei,gn]=(0,ft.useState)(0),[Ji,er]=(0,ft.useState)(!1),Qi=(0,ft.useRef)(null),Ir=(0,ft.useRef)(null);return(0,ft.useEffect)(()=>{var Fr;qe.length!==0&&(((Fr=Qi==null?void 0:Qi.current)==null?void 0:Fr.clientHeight)>97?gn(1):gn(0)),qe.length===0&&gn(0),er(!1)},[qe]),ft.createElement("div",{className:jt()(Ht.row,bi),style:Kn},ft.createElement("div",{onClick:(0,Nt.throttle)(()=>hn==null?void 0:hn(),2e3),style:{width:li,marginTop:Ji?12:4},className:`${Ht.title} ${hn?"current":""}`},zi),ft.createElement("div",{className:Ji?`${Ht.tagsWrap} ${Ht.tagsBorderWrap}`:Ht.tagsWrap},ft.createElement("div",{className:Ht.bar,ref:Ir,style:Ei>0?{height:Ei===1?97:"auto",overflow:Ei===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ft.createElement("div",{className:Ht.tag,ref:Qi},qe==null?void 0:qe.map(Fr=>ft.createElement("span",{onClick:()=>sn(Fr.id),key:Fr.id,style:ue(ue({color:ur},_n),(Fr==null?void 0:Fr.style)||{}),className:Je===Fr.id?jt()(wn||Ht.active,Fr.classNameActive):""},ft.createElement("span",{title:Fr.name,className:Ht.name},Fr.name),!!Ln&&ft.createElement("span",{className:Ht.num},Fr.count))))),!!Ei&&ft.createElement(ft.Fragment,null,Ei===1?ft.createElement("div",{onClick:()=>{var Fr;gn(2),((Fr=Qi==null?void 0:Qi.current)==null?void 0:Fr.clientHeight)>245?er(!0):er(!1)},className:Ht.action},"\u5C55\u5F00",ft.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ft.createElement("div",{onClick:()=>{Ir.current.scrollTop=0,gn(1),er(!1)},className:Ht.action},"\u6536\u8D77",ft.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ye={flex_box_center:"flex_box_center___HDG9F",flex_space_between:"flex_space_between___KhP6Z",flex_box_vertical_center:"flex_box_vertical_center___ZlFcA",flex_box_center_end:"flex_box_center_end___o7d_z",flex_box_column:"flex_box_column___ULJgZ",row:"row___Skft7",title:"title___KP2uZ",fenge:"fenge___yM8ys",tagsWrap:"tagsWrap___XcmUd",action:"action___y7wAl",bar:"bar___gdtOz",tag:"tag___PL8Db",name:"name___gsqnj",num:"num___sRnLB",active:"active___yNnAU",tagsBorderWrap:"tagsBorderWrap___BKCHD"},pe=({dataSource:qe=[],value:Je,onChange:sn,onTitleChange:hn,className:bi,title:zi,titleWidth:li=41,style:Kn={},fontColor:ur="#6A7283",showCount:Ln,expand:wn=!0})=>{const[_n,Ei]=(0,ft.useState)(0),[gn,Ji]=(0,ft.useState)(!1),er=(0,ft.useRef)(null),Qi=(0,ft.useRef)(null),[Ir,Fr]=(0,ft.useState)(wn);return ft.createElement("div",{className:jt()(ye.row,bi),style:Kn},ft.createElement("div",{className:"flex item-center justify-between"},ft.createElement("div",{onClick:(0,Nt.throttle)(()=>hn==null?void 0:hn(),2e3),style:{width:li,marginTop:gn?12:4},className:`${ye.title} ${hn?"current":""}`},zi),ft.createElement("i",{className:`iconfont ${Ir?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:Ir?8:10},onClick:()=>Fr(!Ir)})),Ir&&ft.createElement("div",{className:gn?`${ye.tagsWrap} ${ye.tagsBorderWrap}`:ye.tagsWrap},ft.createElement("div",{className:ye.fenge}),ft.createElement("div",{className:ye.bar,ref:Qi},ft.createElement("div",{className:ye.tag,ref:er},qe==null?void 0:qe.map(yr=>ft.createElement("span",{onClick:()=>sn(yr.id),key:yr.id,style:{color:ur},className:Je===yr.id?ye.active:""},ft.createElement("span",{title:yr.name,className:ye.name},yr.name),!!Ln&&ft.createElement("span",{className:ye.num},yr.count)))))))},be={flex_box_center:"flex_box_center___kXy2O",flex_space_between:"flex_space_between___EKVqf",flex_box_vertical_center:"flex_box_vertical_center___KJzcw",flex_box_center_end:"flex_box_center_end___V4Nm9",flex_box_column:"flex_box_column___g6Cee",row:"row___pqtGl",title:"title___eewYd",tagsWrap:"tagsWrap___AWV66",action:"action___Toj3O",bar:"bar___NZVtB",tag:"tag___z872k",name:"name___m2dAl",num:"num___EhDNX",active:"active___GSjsu",tagsBorderWrap:"tagsBorderWrap___VoQL3"},zt=({dataSource:qe=[],value:Je,onChange:sn,onTitleChange:hn,className:bi,title:zi,titleWidth:li=41,style:Kn={},fontColor:ur="#fff",showCount:Ln,expand:wn=!0})=>{const[_n,Ei]=(0,ft.useState)(0),[gn,Ji]=(0,ft.useState)(!1),er=(0,ft.useRef)(null),Qi=(0,ft.useRef)(null),[Ir,Fr]=(0,ft.useState)(wn);return ft.createElement("div",{className:jt()(be.row,bi),style:Kn},ft.createElement("div",{className:"flex item-center justify-between"},ft.createElement("div",{onClick:(0,Nt.throttle)(()=>hn==null?void 0:hn(),2e3),style:{width:li},className:`${be.title} ${hn?"current":""}`},zi),ft.createElement("i",{className:`iconfont ${Ir?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:Ir?"#00DDC7":"#037F74",fontSize:Ir?10:12},onClick:()=>Fr(!Ir)})),Ir&&ft.createElement("div",{className:gn?`${be.tagsWrap} ${be.tagsBorderWrap}`:be.tagsWrap},ft.createElement("div",{className:be.bar,ref:Qi},ft.createElement("div",{className:be.tag,ref:er},qe==null?void 0:qe.map(yr=>ft.createElement("span",{onClick:()=>sn(yr.id),key:yr.id,style:{color:ur},className:Je===yr.id?be.active:""},ft.createElement("span",{title:yr.name,className:be.name},yr.name),!!Ln&&ft.createElement("span",{className:be.num},yr.count)))))))},Qt=mt(78311),te={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"},Ie=mt(69677),en=({dataSource:qe=[],value:Je="",onChange:sn,onInputChange:hn=()=>{},className:bi,style:zi={},placeholder:li,allowClear:Kn=!1})=>{var ur;const[Ln,wn]=(0,ft.useState)(""),[_n,Ei]=(0,ft.useState)("");(0,ft.useEffect)(()=>{var er;let Qi=Je;(er=JSON.stringify(Je))!=null&&er.includes("{")&&(wn(Je.id),Qi=Je.value||"");try{Ei(decodeURIComponent(Qi||""))}catch(Ir){Ei(decodeURIComponent(Qi||""))}},[Je]);const gn=()=>{sn(encodeURIComponent(_n),Ln||null)},Ji=er=>{er!==Ln&&(wn(er),sn(encodeURIComponent(_n),er))};return ft.createElement("div",{className:jt()(te.input,bi),style:zi},!!qe.length&&ft.createElement("div",{className:te.dropdown},ft.createElement("div",{className:te.text},(ur=qe.find(er=>er.id===Ln))==null?void 0:ur.name,ft.createElement("i",{className:"iconfont icon-zhankai4"}),ft.createElement("b",{className:te.b1}),ft.createElement("b",{className:te.b2})),ft.createElement("div",{className:te.menu},qe.map((er,Qi)=>ft.createElement("div",{key:Qi,onClick:()=>Ji(er.id)},er.name)))),ft.createElement(Ie.default,{onPressEnter:gn,value:_n,onChange:er=>{Ei(er.target.value),hn(encodeURIComponent(er.target.value),Ln||null)},bordered:!1,placeholder:li}),ft.createElement("i",{onClick:gn,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ie={flex_box_center:"flex_box_center___pVsOk",flex_space_between:"flex_space_between___bQwBe",flex_box_vertical_center:"flex_box_vertical_center___gdKht",flex_box_center_end:"flex_box_center_end___wJuEm",flex_box_column:"flex_box_column___F50s0",input:"input___f7GZE",dropdown:"dropdown___oJkxW",menu:"menu___RplGU",text:"text___EgRKl"},nn=({dataSource:qe=[],value:Je="",onChange:sn,onInputChange:hn=()=>{},className:bi,style:zi={},placeholder:li,allowClear:Kn=!1})=>{var ur;const[Ln,wn]=(0,ft.useState)(""),[_n,Ei]=(0,ft.useState)("");(0,ft.useEffect)(()=>{var er;let Qi=Je;(er=JSON.stringify(Je))!=null&&er.includes("{")&&(wn(Je.id),Qi=Je.value||"");try{Ei(decodeURIComponent(Qi||""))}catch(Ir){Ei(decodeURIComponent(Qi||""))}},[Je]);const gn=()=>{sn(encodeURIComponent(_n),Ln||null)},Ji=er=>{er!==Ln&&(wn(er),sn(encodeURIComponent(_n),er))};return ft.createElement("div",{className:jt()(ie.input,bi),style:zi},!!qe.length&&ft.createElement("div",{className:ie.dropdown},ft.createElement("div",{className:ie.text},(ur=qe.find(er=>er.id===Ln))==null?void 0:ur.name,ft.createElement("i",{className:"iconfont icon-zhankai4 ml5"})),ft.createElement("div",{className:ie.menu},qe.map((er,Qi)=>ft.createElement("div",{key:Qi,onClick:()=>Ji(er.id)},er.name)))),ft.createElement(Ie.default,{onPressEnter:gn,value:_n,onChange:er=>{Ei(er.target.value),hn(encodeURIComponent(er.target.value),Ln||null)},bordered:!1,placeholder:li}),ft.createElement("i",{onClick:gn,className:"iconfont icon-sousuo9 font14 pl10 current"}))},Vn={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"},Ye=({value:qe,onChange:Je,className:sn,total:hn,pageSize:bi,style:zi={}})=>{const li=qe<2,Kn=qe>=Math.ceil(hn/bi);return hn<=bi?ft.createElement(ft.Fragment,null):ft.createElement("div",{className:jt()(Vn.quickPager,sn),style:zi},ft.createElement("div",{onClick:()=>{li||Je(qe-1,"prev")},className:li?Vn.disabled:""},"\u4E0A\u4E00\u9875"),ft.createElement("div",{onClick:()=>{Kn||Je(qe+1,"next")},className:Kn?Vn.disabled:""},"\u4E0B\u4E00\u9875"))},zn={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"},Gn=mt(57953),Me=mt(83062),_t=mt(12604),rn=mt(11320),ti=mt(28706),vn=mt(96908),ze=mt(57177),on=mt(81378),On=mt(26194),gi=({className:qe,dataSource:Je=[],col:sn=4,right:hn,bottom:bi=23,precision:zi=0,wrapWidth:li=1200,trackEventItems:Kn,loading:ur})=>{const Ln=Math.floor((li-(sn-1)*hn)/sn);return ft.createElement(Gn.Z,{spinning:ur},ft.createElement("div",{className:jt()(zn.list,qe)},!!Je.length&&Je.map((wn,_n)=>{const{name:Ei,id:gn,identifier:Ji,power:er,cover_image_id:Qi,pic:Ir}=wn;return ft.createElement("div",{className:zn.wrap,key:gn,style:{width:Ln,marginRight:(1+_n)%sn===0?0:hn+zi,marginBottom:bi}},ft.createElement("a",{target:"_blank",href:`/shixuns/${Ji}/challenges`,className:zn.li,onClick:Fr=>{Fr.preventDefault(),Kn&&(0,ti.L9)([Kn]),er&&(0,ti.xg)(`/shixuns/${Ji}/challenges`)}},ft.createElement("div",{className:zn.img},ft.createElement("img",{className:zn.cover,src:`${Ir}`}),wn.is_jupyter&&ft.createElement("img",{className:zn.sign,src:vn}),wn.is_jupyter_lab&&ft.createElement("img",{className:zn.sign,src:ze}),wn.is_unity_3d&&ft.createElement("img",{className:zn.sign,src:on})),ft.createElement("div",{className:zn.name},ft.createElement(Me.Z,{title:Ei||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ft.createElement("span",{className:zn.e},Ei||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ft.createElement("div",{className:zn.tags},ft.createElement(Me.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ft.createElement("span",null,ft.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ft.createElement("span",null,wn.challenges_count))),!!wn.myshixuns_count&&ft.createElement(Me.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ft.createElement("span",null,ft.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ft.createElement("span",null,wn.myshixuns_count))),ft.createElement(Me.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ft.createElement("span",null,ft.createElement("span",null,wn.level))),ft.createElement("div",{className:zn.rate},ft.createElement(_t.Z,{allowHalf:!0,disabled:!0,defaultValue:wn.score_info}),ft.createElement("span",null,"\xA0",wn.score_info?`${wn.score_info}\u5206`:"5\u5206")))),!er&&ft.createElement("div",{className:zn.lockWrap},ft.createElement("img",{src:`${rn.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ft.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Je.length&&ft.createElement(On.Z,null)))},Dn={flex_box_center:"flex_box_center___KD0ZB",flex_space_between:"flex_space_between___rMep5",flex_box_vertical_center:"flex_box_vertical_center___jD3Po",flex_box_center_end:"flex_box_center_end___RbohB",flex_box_column:"flex_box_column___GmzUj",list:"list___dlUtq",wrap:"wrap___LYbIZ",lockWrap:"lockWrap___U7Ajb",li:"li___bsnqy",img:"img___yQ3UM",cover:"cover___KP0L8",bq:"bq___DtmL1",sign:"sign___TZ9Wq",titleBg:"titleBg___tnX0O",name:"name___OGYeq",e:"e___zxiB9",text:"text____ZmZX",value:"value___WPLok",rate:"rate___iOr7E"},Ai=({className:qe,dataSource:Je=[],col:sn=4,right:hn,bottom:bi=23,precision:zi=0,wrapWidth:li=1200,wrapClassName:Kn,trackEventItems:ur,loading:Ln})=>{const wn=Math.floor((li-(sn-1)*hn)/sn);return ft.createElement(Gn.Z,{spinning:Ln},ft.createElement("div",{className:jt()(Dn.list,qe)},!!Je.length&&Je.map((_n,Ei)=>{const{name:gn,id:Ji,identifier:er,power:Qi,cover_image_id:Ir,pic:Fr}=_n;return ft.createElement("div",{className:jt()(Dn.wrap,Kn),key:Ji,style:{width:wn,marginRight:(1+Ei)%sn===0?0:hn+zi,marginBottom:bi}},ft.createElement("a",{target:"_blank",href:`/shixuns/${er}/challenges`,className:Dn.li,onClick:yr=>{yr.preventDefault(),ur&&(0,ti.L9)([ur]),Qi&&(0,ti.xg)(`/shixuns/${er}/challenges`)}},ft.createElement("img",{src:mt(79633),className:Dn.titleBg}),ft.createElement("div",{className:Dn.name},ft.createElement(Me.Z,{title:gn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ft.createElement("span",{className:Dn.e},gn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ft.createElement("div",{style:{padding:"14px",paddingBottom:0}},ft.createElement("div",{className:Dn.img},ft.createElement("img",{className:Dn.cover,src:Ir?`${rn.Z.API_SERVER}/api/attachments/${Ir}`:`${rn.Z.IMG_SERVER+Fr}`}),_n.is_jupyter&&ft.createElement("div",{className:Dn.bq},"Jupyter"),_n.is_jupyter_lab&&ft.createElement("div",{className:Dn.bq},"JupyterLab"),_n.is_unity_3d&&ft.createElement("div",{className:Dn.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),ft.createElement("div",{className:"mt20 flex item-center justify-between"},ft.createElement("div",null,ft.createElement("span",{className:Dn.text},"\u5B66\u4E60\u4EBA\u6570"),ft.createElement("span",{className:Dn.value},_n.myshixuns_count)),ft.createElement("div",null,ft.createElement("span",{className:Dn.text},"\u56F0\u96BE\u7B49\u7EA7"),ft.createElement("span",{className:Dn.value},_n.level))),ft.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},ft.createElement("div",null,ft.createElement("span",{className:Dn.text},"\u5173\u5361\u6570"),ft.createElement("span",{className:Dn.value},_n.challenges_count)),ft.createElement("div",{className:Dn.rate},ft.createElement(_t.Z,{allowHalf:!0,disabled:!0,defaultValue:_n.score_info}),ft.createElement("span",{className:Dn.value,style:{color:"#FF9C00"}},"\xA0",_n.score_info?`${_n.score_info}\u5206`:"5\u5206"))))),!Qi&&ft.createElement("div",{className:Dn.lockWrap},ft.createElement("img",{src:`${rn.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ft.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Je.length&&ft.createElement(On.Z,null)))},hi={flex_box_center:"flex_box_center___MoMqv",flex_space_between:"flex_space_between___G_1Pa",flex_box_vertical_center:"flex_box_vertical_center___vHNpc",flex_box_center_end:"flex_box_center_end___dt_Dx",flex_box_column:"flex_box_column___gK3h_",list:"list___GYKT6",wrap:"wrap___uLNQf",lockWrap:"lockWrap___lZQo7",li:"li___X7Rkc",img:"img___bih4x",cover:"cover___UiMEf",sign:"sign___WPSew",name:"name___ZLjiX",e:"e___tB29O",tags:"tags___a3FKn",rate:"rate___dh30H"},qt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0I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vW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII=",At=({className:qe,dataSource:Je=[],col:sn=4,right:hn,bottom:bi=23,precision:zi=0,wrapWidth:li=1200,trackEventItems:Kn,loading:ur,wrapClassName:Ln,imgClassName:wn})=>{const _n=Math.floor((li-(sn-1)*hn)/sn);return ft.createElement(Gn.Z,{spinning:ur},ft.createElement("div",{className:jt()(hi.list,qe)},!!Je.length&&Je.map((Ei,gn)=>{const{name:Ji,id:er,identifier:Qi,power:Ir,cover_image_id:Fr,pic:yr}=Ei;return ft.createElement("div",{className:jt()(hi.wrap,Ln),key:er,style:{width:_n,marginRight:(1+gn)%sn===0?0:hn+zi,marginBottom:bi}},ft.createElement("a",{target:"_blank",href:`/shixuns/${Qi}/challenges`,className:hi.li,onClick:xo=>{xo.preventDefault(),Kn&&(0,ti.L9)([Kn]),Ir&&(0,ti.xg)(`/shixuns/${Qi}/challenges`)}},ft.createElement("div",{className:jt()(hi.img,wn)},ft.createElement("img",{className:hi.cover,src:Fr?`${rn.Z.API_SERVER}/api/attachments/${Fr}`:`${rn.Z.IMG_SERVER+yr}`}),Ei.is_jupyter&&ft.createElement("img",{className:hi.sign,src:qt}),Ei.is_jupyter_lab&&ft.createElement("img",{className:hi.sign,src:kt}),Ei.is_unity_3d&&ft.createElement("img",{className:hi.sign,src:Ct})),ft.createElement("div",{className:hi.name},ft.createElement(Me.Z,{title:Ji||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ft.createElement("span",{className:hi.e},Ji||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ft.createElement("div",{className:hi.tags},ft.createElement(Me.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ft.createElement("span",null,ft.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ft.createElement("span",null,Ei.challenges_count))),!!Ei.myshixuns_count&&ft.createElement(Me.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ft.createElement("span",null,ft.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ft.createElement("span",null,Ei.myshixuns_count))),ft.createElement(Me.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ft.createElement("span",null,ft.createElement("span",null,Ei.level))),ft.createElement("div",{className:hi.rate},ft.createElement(_t.Z,{allowHalf:!0,disabled:!0,defaultValue:Ei.score_info}),ft.createElement("span",null,"\xA0",Ei.score_info?`${Ei.score_info}\u5206`:"5\u5206")))),!Ir&&ft.createElement("div",{className:hi.lockWrap},ft.createElement("img",{src:`${rn.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ft.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Je.length&&ft.createElement(On.Z,null)))},wt=mt(5476),Xt={flex_box_center:"flex_box_center___vu9yi",flex_space_between:"flex_space_between___LwoH7",flex_box_vertical_center:"flex_box_vertical_center___pUG0J",flex_box_center_end:"flex_box_center_end___xWI9t",flex_box_column:"flex_box_column___Mr5rB",list:"list___zE1wj",wrap:"wrap___5HG1h",lockWrap:"lockWrap___zziwX",li:"li___aNI2z",img:"img___adfIp",cover:"cover___G1cj9",bq:"bq___hpdTt",sign:"sign___kHAha",titleBg:"titleBg___S1VlI",name:"name___zsjxM",e:"e___fd1jW",text:"text___b9Tdy",value:"value___ZASRv",unit:"unit___sMNBQ",tags:"tags___KbL1d",tag1:"tag1___c9ebE",tag2:"tag2___bxczv"},Re=mt(79005),We=mt(20345),In=mt(77882),Hn=mt(31081),Un=mt(75309),Yn=mt(71979),Fe=mt(47558),bn=mt(60345),En=mt(66832),Qn=mt(96593),Sn=mt(19664),Vi=mt(91833),Qe=Object.defineProperty,Pn=Object.getOwnPropertySymbols,Ci=Object.prototype.hasOwnProperty,yi=Object.prototype.propertyIsEnumerable,Oi=(qe,Je,sn)=>Je in qe?Qe(qe,Je,{enumerable:!0,configurable:!0,writable:!0,value:sn}):qe[Je]=sn,ar=(qe,Je)=>{for(var sn in Je||(Je={}))Ci.call(Je,sn)&&Oi(qe,sn,Je[sn]);if(Pn)for(var sn of Pn(Je))yi.call(Je,sn)&&Oi(qe,sn,Je[sn]);return qe};const br=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Re,swimg:We},{name:"101\u8BA1\u5212",ptimg:In,swimg:Hn},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:Un,swimg:Yn},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:Fe,swimg:bn},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:En,swimg:Qn},{name:"\u519B\u961F\u4E00\u6D41",ptimg:Sn,swimg:Vi}];var cr=({className:qe,dataSource:Je=[],col:sn=4,right:hn,bottom:bi=23,precision:zi=0,wrapWidth:li=1200,trackEventItems:Kn,loading:ur,wrapClassName:Ln,imgClassName:wn,isArrow:_n=!1,imgStyle:Ei={}})=>{const gn=Math.floor((li-(sn-1)*hn)/sn),[Ji,er]=(0,ft.useState)(),[Qi,Ir]=(0,ft.useState)(),Fr=xo=>er(xo),yr=()=>er(-1);return ft.createElement(Gn.Z,{spinning:ur},ft.createElement("div",{className:jt()(Xt.list,qe)},!!(Je!=null&&Je.length)&&(Je==null?void 0:Je.map((xo,No)=>{var mo;const{name:oo,id:to,identifier:Io,featured:so,school_name:Zr,image_url:Oo,excellent:Uo,is_plan:Ls}=xo;return ft.createElement("div",{key:to,className:jt()(Xt.wrap,Ln),style:{width:gn,marginRight:(1+No)%sn===0?0:hn+zi,marginBottom:bi}},ft.createElement("a",{target:"_blank",href:`/paths/${Io}`,className:Xt.li,onClick:bs=>{bs.preventDefault(),Kn&&(0,ti.L9)([Kn]),(0,ti.xg)(`/paths/${Io}`)}},ft.createElement("img",{src:mt(39057),className:Xt.titleBg}),ft.createElement("div",{className:Xt.name},ft.createElement(Me.Z,{title:oo},ft.createElement("span",{className:Xt.e,style:{color:_n&&Ji===No?"#145DFF":"#000000"},onMouseEnter:()=>{Fr(No)},onMouseLeave:yr},oo))),ft.createElement("div",{style:{padding:"14px",paddingBottom:0}},ft.createElement("div",{className:jt()(Xt.img,wn)},ft.createElement("img",{className:Xt.cover,style:ar({},Ei),src:`${rn.Z.IMG_SERVER+Oo}`}),(mo=xo==null?void 0:xo.subject_tags)==null?void 0:mo.map((bs,ms)=>{var ds,es;if(ms===0){const Is=(ds=br.find(Yo=>Yo.name==bs))==null?void 0:ds.swimg;return ft.createElement("img",{className:Xt.sign,src:Is,style:{left:"-4px"}})}const jo=(es=br.find(Is=>Is.name==bs))==null?void 0:es.ptimg;return ft.createElement("img",{className:Xt.sign,src:jo,style:{left:`${48+52*(ms-1)+2*ms}px`}})}),ft.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(xo==null?void 0:xo.excellent)&&ft.createElement("div",{className:Xt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ft.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},ft.createElement("div",null,ft.createElement("span",{className:Xt.text},"\u7AE0\u8282\u6570"),ft.createElement("span",{className:Xt.value},xo.stages_count)),ft.createElement("div",null,ft.createElement("span",{className:Xt.text},"\u5B66\u4E60\u4EBA\u6570"),ft.createElement("span",{className:Xt.value},xo.members_count))))))})),!Je.length&&ft.createElement(On.Z,null)))},Ar={flex_box_center:"flex_box_center___o6B0Z",flex_space_between:"flex_space_between___Uz22Q",flex_box_vertical_center:"flex_box_vertical_center___nWLOj",flex_box_center_end:"flex_box_center_end___eqMdD",flex_box_column:"flex_box_column___ypdJv",list:"list___qA19p",wrap:"wrap___YaRtD",lockWrap:"lockWrap___Cle7R",li:"li___Hpfsl",img:"img___li1Ky",cover:"cover___iuyl5",bq:"bq___BpHtR",sign:"sign___ajRAC",titleBg:"titleBg___h8Qq7",name:"name___mAV5m",e:"e___YPSD7",text:"text___nDpTk",value:"value___guywy",unit:"unit___aTzYz",tags:"tags___X1lul",tag1:"tag1___AHRAc",tag2:"tag2___Pska6"},ir=mt(52262),kr=mt(67294);const po=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Re,swimg:We},{name:"101\u8BA1\u5212",ptimg:In,swimg:Hn},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:Un,swimg:Yn},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:Fe,swimg:bn},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:En,swimg:Qn},{name:"\u519B\u961F\u4E00\u6D41",ptimg:Sn,swimg:Vi}];var Eo=({className:qe,dataSource:Je=[],col:sn=4,right:hn,bottom:bi=23,precision:zi=0,wrapWidth:li=1200,trackEventItems:Kn,loading:ur,onRemove:Ln=()=>{},isCurrent:wn=!0,showAlias:_n=!1,wrapClassName:Ei,imgClassName:gn})=>{const Ji=Math.floor((li-(sn-1)*hn)/sn),er=[{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"}].map(Qi=>(window.ENV==="build"&&(Qi.ptimg=`/react/build${Qi.ptimg}`,Qi.swimg=`/react/build${Qi.swimg}`),Qi));return kr.createElement(Gn.Z,{spinning:ur},kr.createElement("div",{className:jt()(Ar.list,qe)},!!(Je!=null&&Je.length)&&(Je==null?void 0:Je.map((Qi,Ir)=>{var Fr;const{name:yr,id:xo,identifier:No,featured:mo,school_name:oo,image_url:to,excellent:Io,is_plan:so}=Qi;return kr.createElement("div",{key:xo,className:jt()(Ar.wrap,Ei),style:{width:Ji,marginRight:(1+Ir)%sn===0?0:hn+zi,marginBottom:bi}},kr.createElement("a",{className:Ar.li,onClick:Zr=>{Zr.preventDefault(),Zr.stopPropagation(),Kn&&(0,ti.L9)([Kn]),(0,ti.xg)(`/paths/${No}`)}},kr.createElement("div",{className:jt()(Ar.img,gn)},kr.createElement("img",{className:Ar.cover,src:`${rn.Z.IMG_SERVER+to}`}),wn&&(0,ir.bg)()&&(Qi==null?void 0:Qi.studying)&&kr.createElement("div",{className:`${Ar.movebq} user-path-items`,onClick:Zr=>{Zr.stopPropagation(),Ln(Qi)}},kr.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),kr.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Fr=Qi==null?void 0:Qi.subject_tags)==null?void 0:Fr.map((Zr,Oo)=>{var Uo,Ls;if(Oo===0){const ms=(Uo=er.find(ds=>ds.name==Zr))==null?void 0:Uo.swimg;return kr.createElement("img",{className:Ar.sign,src:ms,style:{left:"-4px"}})}const bs=(Ls=er.find(ms=>ms.name==Zr))==null?void 0:Ls.ptimg;return kr.createElement("img",{className:Ar.sign,src:bs,style:{left:`${48+52*(Oo-1)+2*Oo}px`}})}),kr.createElement("div",{style:{position:"absolute",bottom:"10px",right:"10px"}},(Qi==null?void 0:Qi.excellent)&&kr.createElement("div",{className:Ar.bq},"\u5F00\u653E\u8BFE\u7A0B"))),kr.createElement("div",{className:Ar.name},kr.createElement(Me.Z,{title:_n&&(Qi!=null&&Qi.excellent_alias_name)?kr.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${yr}`,kr.createElement("br",null),kr.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Qi==null?void 0:Qi.excellent_alias_name}`)):yr},kr.createElement("span",{className:Ar.e},_n&&(Qi==null?void 0:Qi.excellent_alias_name)||yr))),kr.createElement("div",{className:Ar.tags},kr.createElement("div",null,kr.createElement(Me.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},kr.createElement("span",null,kr.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),kr.createElement("span",null,Qi.stages_count))),kr.createElement(Me.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},kr.createElement("span",null,kr.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),kr.createElement("span",null,Qi.members_count)))))))})),!Je.length&&kr.createElement(On.Z,null)))},Yr={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"},Mn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQ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An/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",St=mt(67294),mi=({className:qe,dataSource:Je=[],col:sn=4,right:hn,bottom:bi=23,precision:zi=0,wrapWidth:li=1200,trackEventItems:Kn,loading:ur})=>{const Ln=Math.floor((li-(sn-1)*hn)/sn);return St.createElement(Gn.Z,{spinning:ur},St.createElement("div",{className:jt()(Yr.list,qe)},!!Je.length&&Je.map((wn,_n)=>{const{subject_identifier:Ei,id:gn,identifier:Ji,power:er}=wn,Qi=wn.is_public!=0&&wn.is_public;return St.createElement("div",{className:Yr.wrap,key:gn,style:{width:Ln,marginRight:(1+_n)%sn===0?0:hn+zi,marginBottom:bi}},St.createElement("a",{className:Yr.li,onClick:Ir=>{Ir.preventDefault(),Kn&&(0,ti.L9)([Kn]),(0,ti.xg)(wn.first_category_url)}},St.createElement("div",{className:Yr.top},St.createElement(Me.Z,{title:wn.name},St.createElement("div",{className:Yr.name},wn.name)),St.createElement("img",{className:Yr.img,src:rn.Z.IMG_SERVER+"/images/"+wn.avatar_url}),St.createElement("div",{className:Yr.text,title:wn.creator},wn.creator),Ei&&St.createElement("div",{className:Yr.btns},St.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),St.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Qi&&St.createElement("div",{className:Yr.sign},"\u516C\u5F00")),St.createElement("div",{className:Yr.bottom},wn.visits>0&&St.createElement(Me.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},St.createElement("span",null,St.createElement("i",{className:"iconfont icon-liulanyan"}),St.createElement("span",null,wn.visits))),wn.course_members_count>0&&St.createElement(Me.Z,{title:"\u6210\u5458",placement:"bottom"},St.createElement("span",null,St.createElement("i",{className:"iconfont icon-chengyuan"}),wn.course_members_count)),wn.tasks_count>0&&St.createElement(Me.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},St.createElement("span",null,St.createElement("i",{className:"iconfont icon-zuoye"}),wn.tasks_count)),wn.is_end?St.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):St.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!wn.is_accessible&&St.createElement("div",{className:Yr.lockWrap},St.createElement("img",{src:`${rn.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),St.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Je.length&&St.createElement(On.Z,null)))},rr={flex_box_center:"flex_box_center___PuarE",flex_space_between:"flex_space_between___q4lAa",flex_box_vertical_center:"flex_box_vertical_center___wsb8w",flex_box_center_end:"flex_box_center_end___H781P",flex_box_column:"flex_box_column___bHK1y",list:"list___e2XDo",wrap:"wrap___cz7sh",lockWrap:"lockWrap___EPuRr",creator:"creator___Y6Xjp",img:"img___kSEud",text:"text___GIlhY",top:"top___K4GCD",sign:"sign___KCjEP",name:"name___z3U4d",middle:"middle___LeUM5",row:"row___VBzfJ",value:"value___qigWu",btns:"btns___kGysm",bottom:"bottom___yPYd5",warpStyle:"warpStyle___pH3uC"},fr="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/BHhkOSe5evq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Fm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",tr=({className:qe,dataSource:Je=[],col:sn=4,right:hn,bottom:bi=23,precision:zi=0,wrapWidth:li=1200,wrapClassName:Kn,trackEventItems:ur,loading:Ln})=>{const wn=Math.floor((li-(sn-1)*hn)/sn);return ft.createElement(Gn.Z,{spinning:Ln},ft.createElement("div",{className:jt()(rr.list,qe)},!!Je.length&&Je.map((_n,Ei)=>{const{subject_identifier:gn,id:Ji,identifier:er,power:Qi}=_n,Ir=_n.is_public!=0&&_n.is_public;return ft.createElement("div",{className:jt()(`${rr.wrap} ${_n.is_accessible?"":rr.warpStyle}`,Kn),key:Ji,style:{width:wn,marginRight:(1+Ei)%sn===0?0:hn+zi,marginBottom:bi}},ft.createElement("a",{className:rr.li,onClick:Fr=>{Fr.preventDefault(),ur&&(0,ti.L9)([ur]),(0,ti.xg)(_n.first_category_url)}},ft.createElement("div",{className:rr.creator},ft.createElement("img",{className:rr.img,src:rn.Z.IMG_SERVER+"/images/"+_n.avatar_url}),ft.createElement("div",{className:rr.text,title:_n.creator},_n.creator)),ft.createElement("div",{className:rr.top},ft.createElement(Me.Z,{title:_n.name},ft.createElement("div",{className:rr.name},_n.name)),Ir&&ft.createElement("div",{className:rr.sign},"\u516C\u5F00")),ft.createElement("div",{className:rr.middle},ft.createElement("div",{className:rr.row,style:{marginBottom:6}},ft.createElement("div",null,ft.createElement("span",{className:rr.text},"\u8BBF\u95EE\u91CF"),ft.createElement("span",{className:rr.value},(_n==null?void 0:_n.visits)||0)),ft.createElement("div",null,ft.createElement("span",{className:rr.text},"\u6210\u5458"),ft.createElement("span",{className:rr.value},(_n==null?void 0:_n.course_members_count)||0))),ft.createElement("div",{className:rr.row},ft.createElement("div",null,ft.createElement("span",{className:rr.text,style:{width:42}},"\u4F5C",ft.createElement("span",{style:{marginLeft:14}},"\u4E1A")),ft.createElement("span",{className:rr.value},(_n==null?void 0:_n.tasks_count)||0)),ft.createElement("div",null,ft.createElement("span",{className:rr.text},"\u72B6\u6001"),_n.is_end?ft.createElement("span",{className:rr.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):ft.createElement("span",{className:rr.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),gn&&ft.createElement("div",{className:rr.btns},ft.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ft.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!_n.is_accessible&&ft.createElement("div",{className:rr.lockWrap},ft.createElement("img",{src:`${rn.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ft.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Je.length&&ft.createElement(On.Z,null)))},Xe={flex_box_center:"flex_box_center___eJQtn",flex_space_between:"flex_space_between___lzV1x",flex_box_vertical_center:"flex_box_vertical_center___IYfoZ",flex_box_center_end:"flex_box_center_end___lcJOu",flex_box_column:"flex_box_column____ShCG",list:"list___YXSRr",wrap:"wrap___ZGdF6",lockWrap:"lockWrap___VKZgR",creator:"creator___tLnuI",img:"img___P8alm",text:"text___ijpmj",top:"top___md6mc",sign:"sign___ydolt",name:"name___OEush",middle:"middle___WFQ2R",row:"row___MFUrm",value:"value___rEYMy",btns:"btns___Y5S2B",bottom:"bottom___RsfJC",warpStyle:"warpStyle___R8xtx"},mn="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/jDC2Wv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/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Nn=({className:qe,dataSource:Je=[],col:sn=4,right:hn,bottom:bi=23,precision:zi=0,wrapWidth:li=1200,wrapClassName:Kn,trackEventItems:ur,loading:Ln})=>{const wn=Math.floor((li-(sn-1)*hn)/sn);return ft.createElement(Gn.Z,{spinning:Ln},ft.createElement("div",{className:jt()(Xe.list,qe)},!!Je.length&&Je.map((_n,Ei)=>{const{subject_identifier:gn,id:Ji,identifier:er,power:Qi}=_n,Ir=_n.is_public!=0&&_n.is_public;return ft.createElement("div",{className:jt()(`${Xe.wrap} ${_n.is_accessible?"":Xe.warpStyle}`,Kn),key:Ji,style:{width:wn,marginRight:(1+Ei)%sn===0?0:hn+zi,marginBottom:bi}},ft.createElement("a",{className:Xe.li,onClick:Fr=>{Fr.preventDefault(),ur&&(0,ti.L9)([ur]),(0,ti.xg)(_n.first_category_url)}},ft.createElement("div",{className:Xe.creator},ft.createElement("img",{className:Xe.img,src:rn.Z.IMG_SERVER+"/images/"+_n.avatar_url}),ft.createElement("div",{className:Xe.text,title:_n.creator},_n.creator)),ft.createElement("div",{className:Xe.top},ft.createElement(Me.Z,{title:_n.name},ft.createElement("div",{className:Xe.name},_n.name)),Ir&&ft.createElement("div",{className:Xe.sign})),ft.createElement("div",{className:Xe.middle},ft.createElement("div",{className:Xe.row,style:{marginBottom:6}},ft.createElement("div",null,ft.createElement("span",{className:Xe.text},"\u8BBF\u95EE\u91CF"),ft.createElement("span",{className:Xe.value},(_n==null?void 0:_n.visits)||0)),ft.createElement("div",null,ft.createElement("span",{className:Xe.text},"\u6210\u5458"),ft.createElement("span",{className:Xe.value},(_n==null?void 0:_n.course_members_count)||0))),ft.createElement("div",{className:Xe.row},ft.createElement("div",null,ft.createElement("span",{className:Xe.text,style:{width:42}},"\u4F5C",ft.createElement("span",{style:{marginLeft:14}},"\u4E1A")),ft.createElement("span",{className:Xe.value},(_n==null?void 0:_n.tasks_count)||0)),ft.createElement("div",null,ft.createElement("span",{className:Xe.text},"\u72B6\u6001"),_n.is_end?ft.createElement("span",{className:Xe.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):ft.createElement("span",{className:Xe.value,style:{color:"#00DDC7"}},"\u8FDB\u884C\u4E2D")))),gn&&ft.createElement("div",{className:Xe.btns},ft.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ft.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!_n.is_accessible&&ft.createElement("div",{className:Xe.lockWrap},ft.createElement("img",{src:`${rn.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ft.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Je.length&&ft.createElement(On.Z,null)))},ge={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"},Cn=mt(35973),Te=({dataSource:qe=[],value:Je,onChange:sn,className:hn,style:bi={},tabBarExtraContent:zi})=>ft.createElement("div",{className:jt()(ge.tabs,hn),style:bi},ft.createElement("div",{className:ge.tabsWrap},qe.map((li,Kn)=>ft.createElement("aside",{className:ge.tab,onClick:()=>{sn(li.id),li.link&&Cn.history.push(li.link)},key:Kn},ft.createElement("div",{className:Je===li.id?ge.active:""},li.name),(li==null?void 0:li.resetCount)==null&&(li==null?void 0:li.total)!==void 0&&ft.createElement("span",null,"\uFF08",li==null?void 0:li.total,"\uFF09"),(li==null?void 0:li.resetCount)!==void 0&&(li==null?void 0:li.total)!==void 0&&ft.createElement(Me.Z,{title:(li==null?void 0:li.tip)!=null?li==null?void 0:li.tip:""},ft.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ft.createElement("span",{style:{color:"#000"}},li==null?void 0:li.resetCount),"/",ft.createElement("span",null,li==null?void 0:li.total),"\uFF09"))))),ft.createElement("div",{className:ge.tabBar},zi)),ce={flex_box_center:"flex_box_center___itkVp",flex_space_between:"flex_space_between___F4yZx",flex_box_vertical_center:"flex_box_vertical_center___ko4cu",flex_box_center_end:"flex_box_center_end___cCBYR",flex_box_column:"flex_box_column___Mpq6K",tabs:"tabs___qRAhL",tabsWrap:"tabsWrap___CGRvS",tab:"tab___eYne_",active:"active___swSx6"},pn=({dataSource:qe=[],value:Je,onChange:sn,className:hn,style:bi={},tabBarExtraContent:zi})=>ft.createElement("div",{className:jt()(ce.tabs,hn),style:bi},ft.createElement("div",{className:ce.tabsWrap},qe.map((li,Kn)=>ft.createElement("aside",{className:ce.tab,onClick:()=>{sn(li.id),li.link&&Cn.history.push(li.link)},key:Kn},ft.createElement("div",{className:Je===li.id?ce.active:""},li.name),(li==null?void 0:li.resetCount)==null&&(li==null?void 0:li.total)!==void 0&&ft.createElement("span",null,"\uFF08",li==null?void 0:li.total,"\uFF09"),(li==null?void 0:li.resetCount)!==void 0&&(li==null?void 0:li.total)!==void 0&&ft.createElement(Me.Z,{title:(li==null?void 0:li.tip)!=null?li==null?void 0:li.tip:""},ft.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ft.createElement("span",{style:{color:"#000"}},li==null?void 0:li.resetCount),"/",ft.createElement("span",null,li==null?void 0:li.total),"\uFF09"))))),ft.createElement("div",{className:ce.tabBar},zi)),fi={flex_box_center:"flex_box_center___uWCU1",flex_space_between:"flex_space_between___pKZJo",flex_box_vertical_center:"flex_box_vertical_center___NKr7Z",flex_box_center_end:"flex_box_center_end___ycaEu",flex_box_column:"flex_box_column___dDKjA",tabs:"tabs___cNVh5",tabsWrap:"tabsWrap___IJpOg",tab:"tab___fitSZ",active:"active___LBYdH"},_e=({dataSource:qe=[],value:Je,onChange:sn,className:hn,style:bi={},tabBarExtraContent:zi})=>ft.createElement("div",{className:jt()(fi.tabs,hn),style:bi},ft.createElement("div",{className:fi.tabsWrap},qe.map((li,Kn)=>ft.createElement("aside",{className:`${fi.tab} ${Je===li.id?fi.active:""}`,onClick:()=>{sn(li.id),li.link&&Cn.history.push(li.link)},key:Kn},ft.createElement("div",null,li.name),(li==null?void 0:li.resetCount)==null&&(li==null?void 0:li.total)!==void 0&&ft.createElement("span",null,"\uFF08",li==null?void 0:li.total,"\uFF09"),(li==null?void 0:li.resetCount)!==void 0&&(li==null?void 0:li.total)!==void 0&&ft.createElement(Me.Z,{title:(li==null?void 0:li.tip)!=null?li==null?void 0:li.tip:""},ft.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ft.createElement("span",{style:{color:"#000"}},li==null?void 0:li.resetCount),"/",ft.createElement("span",null,li==null?void 0:li.total),"\uFF09"))))),ft.createElement("div",{className:fi.tabBar},zi)),Ri=({className:qe,style:Je={},children:sn})=>ft.createElement("div",{className:jt()(qe),style:Je},sn),$e={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"},Ge=mt(85418),un=mt(68508);const xi=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ci=({sortValue:qe,dropValue:Je,className:sn,onSort:hn,onDrop:bi,dataSource:zi=xi})=>{var li;return ft.createElement("div",{className:jt()($e.orderWrap,sn)},ft.createElement(Ge.Z,{dropdownRender:()=>ft.createElement(un.default,null,zi.map((Kn,ur)=>ft.createElement(un.default.Item,{key:ur,onClick:()=>bi(Kn.id)},Kn.name)))},ft.createElement("span",{className:$e.orderTextWrap},(li=zi.find(Kn=>Je===Kn.id))==null?void 0:li.name)),ft.createElement("span",{className:$e.orderIconWrap},ft.createElement("span",{className:$e.orderAsc},ft.createElement("i",{className:qe==="asc"?`iconfont icon-sanjiaoxing-up font12 ${$e.cursorPointer} ${$e.active}`:`iconfont icon-sanjiaoxing-up font12 ${$e.cursorPointer}`,onClick:()=>hn(qe==="asc"?"desc":"asc")})),ft.createElement("span",{className:$e.orderDesc},ft.createElement("i",{className:qe==="desc"?`iconfont icon-sanjiaoxing-down font12 ${$e.cursorPointer} ${$e.active}`:`iconfont icon-sanjiaoxing-down font12 ${$e.cursorPointer}`,onClick:()=>hn(qe==="asc"?"desc":"asc")}))))},Xn={flex_box_center:"flex_box_center___JJ9sS",flex_space_between:"flex_space_between___t8Vfh",flex_box_vertical_center:"flex_box_vertical_center___NXwpW",flex_box_center_end:"flex_box_center_end___d7nF9",flex_box_column:"flex_box_column___RWkXa",orderWrap:"orderWrap___Z6UhI",orderIconWrap:"orderIconWrap___vT5et",orderAsc:"orderAsc___Xrpfj",orderDesc:"orderDesc___FgOA0",active:"active___ryj8i",cursorPointer:"cursorPointer___Gg3bB",orderTextWrap:"orderTextWrap___BAYWJ"};const qn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var vr=({sortValue:qe,dropValue:Je,className:sn,onSort:hn,onDrop:bi,dataSource:zi=qn})=>{var li;return ft.createElement("div",{className:jt()(Xn.orderWrap,sn)},ft.createElement(Ge.Z,{dropdownRender:()=>ft.createElement(un.default,null,zi.map((Kn,ur)=>ft.createElement(un.default.Item,{key:ur,onClick:()=>bi(Kn.id)},Kn.name)))},ft.createElement("span",{className:Xn.orderTextWrap},(li=zi.find(Kn=>Je===Kn.id))==null?void 0:li.name)),ft.createElement("span",{className:Xn.orderIconWrap},ft.createElement("span",{className:Xn.orderAsc},ft.createElement("i",{className:qe==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Xn.cursorPointer} ${Xn.active}`:`iconfont icon-sanjiaoxing-up font12 ${Xn.cursorPointer}`,onClick:()=>hn(qe==="asc"?"desc":"asc")})),ft.createElement("span",{className:Xn.orderDesc},ft.createElement("i",{className:qe==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Xn.cursorPointer} ${Xn.active}`:`iconfont icon-sanjiaoxing-down font12 ${Xn.cursorPointer}`,onClick:()=>hn(qe==="asc"?"desc":"asc")}))))},ki={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",ThemeOne:"ThemeOne___iCQio"},Or=mt(71577),Ii=mt(52810),ao=Object.defineProperty,qr=Object.getOwnPropertySymbols,Do=Object.prototype.hasOwnProperty,ui=Object.prototype.propertyIsEnumerable,Co=(qe,Je,sn)=>Je in qe?ao(qe,Je,{enumerable:!0,configurable:!0,writable:!0,value:sn}):qe[Je]=sn,bo=(qe,Je)=>{for(var sn in Je||(Je={}))Do.call(Je,sn)&&Co(qe,sn,Je[sn]);if(qr)for(var sn of qr(Je))ui.call(Je,sn)&&Co(qe,sn,Je[sn]);return qe},Kr=(qe,Je)=>{var sn={};for(var hn in qe)Do.call(qe,hn)&&Je.indexOf(hn)<0&&(sn[hn]=qe[hn]);if(qe!=null&&qr)for(var hn of qr(qe))Je.indexOf(hn)<0&&ui.call(qe,hn)&&(sn[hn]=qe[hn]);return sn},wo=(qe,Je,sn)=>new Promise((hn,bi)=>{var zi=ur=>{try{Kn(sn.next(ur))}catch(Ln){bi(Ln)}},li=ur=>{try{Kn(sn.throw(ur))}catch(Ln){bi(Ln)}},Kn=ur=>ur.done?hn(ur.value):Promise.resolve(ur.value).then(zi,li);Kn((sn=sn.apply(qe,Je)).next())}),Xr=qe=>{var Je=qe,{className:sn,style:hn,children:bi,loading:zi=!1,openLoading:li,onClick:Kn=()=>{},size:ur="middle",shape:Ln="round",theme:wn}=Je,_n=Kr(Je,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[Ei,gn]=(0,ft.useState)(!1),Ji=(0,ft.useMemo)(()=>{switch(wn){case Ii.Fy.THEMEONE:return ki.ThemeOne;case Ii.Fy.DEFAULT:default:return ki.btn}},[wn]);return ft.createElement(Or.ZP,bo({onClick:(0,Nt.throttle)(er=>wo(void 0,null,function*(){li&&gn(!0);try{yield Kn(er)}catch(Qi){console.log("error",Qi)}li&&gn(!1)}),2e3,{leading:!0,trailing:!1}),className:jt()(Ji,ki[`${ur}-${Ln}`],sn),style:hn,size:ur,shape:Ln,loading:Ei||zi},_n),bi)},Br={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"},ko=({className:qe,style:Je,children:sn=null,onClick:hn,title:bi})=>ft.createElement("div",{className:jt()(Br.head,qe),style:Je},ft.createElement("span",{className:"primary-hover",onClick:hn},ft.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ft.createElement("b",{title:bi},bi),ft.createElement("div",{className:Br.node},sn)),oi={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"},Ce=({confirmShow:qe=!0,confirmTitle:Je,confirmClick:sn,cancelShow:hn=!0,cancelTitle:bi,cancelClick:zi,className:li,style:Kn,confirmLoading:ur=!1})=>ft.createElement("div",{className:jt()(oi.btns,li),style:Kn},qe&&ft.createElement(Or.ZP,{loading:ur,onClick:sn,type:"primary",className:oi.confirm},Je),hn&&ft.createElement(Or.ZP,{onClick:zi,className:oi.cancel},bi)),si={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"},Gi=({className:qe,style:Je={},LeftContent:sn,children:hn,RightContent:bi})=>ft.createElement("div",{className:jt()(si.fixedBottom,qe),style:Je},ft.createElement("div",{className:si.wrap},ft.createElement("div",{className:si.left},sn),ft.createElement("div",{className:si.center},hn),ft.createElement("div",{className:si.right},bi))),Tr={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"},Cr=({className:qe,style:Je={},dataSource:sn=[]})=>ft.createElement("div",{className:jt()(Tr.crumbs,qe),style:Je},sn.map((hn,bi)=>bi<sn.length-1?ft.createElement(ft.Fragment,{key:bi},hn.path||hn.onClick?ft.createElement("span",{className:Tr.hover,onClick:hn!=null&&hn.onClick?hn.onClick:()=>Cn.history.push(hn.path)},hn.name):ft.createElement("span",null,hn.name),ft.createElement("span",null,"\xA0",">","\xA0")):ft.createElement("span",{key:bi,style:{color:"#5F6368"}},hn.name))),jr=mt(55054),Jr=Object.defineProperty,Wr=Object.defineProperties,or=Object.getOwnPropertyDescriptors,Gt=Object.getOwnPropertySymbols,Zn=Object.prototype.hasOwnProperty,wi=Object.prototype.propertyIsEnumerable,Fi=(qe,Je,sn)=>Je in qe?Jr(qe,Je,{enumerable:!0,configurable:!0,writable:!0,value:sn}):qe[Je]=sn,Tt=(qe,Je)=>{for(var sn in Je||(Je={}))Zn.call(Je,sn)&&Fi(qe,sn,Je[sn]);if(Gt)for(var sn of Gt(Je))wi.call(Je,sn)&&Fi(qe,sn,Je[sn]);return qe},ee=(qe,Je)=>Wr(qe,or(Je)),le=(qe,Je)=>{var sn={};for(var hn in qe)Zn.call(qe,hn)&&Je.indexOf(hn)<0&&(sn[hn]=qe[hn]);if(qe!=null&&Gt)for(var hn of Gt(qe))Je.indexOf(hn)<0&&wi.call(qe,hn)&&(sn[hn]=qe[hn]);return sn};const{Countdown:xe}=jr.default;var Ee=qe=>{var Je=qe,{onChange:sn}=Je,hn=le(Je,["onChange"]);const[bi,zi]=(0,ft.useState)(null);(0,ft.useEffect)(()=>{typeof bi=="number"&&bi>=0&&sn(bi)},[bi]);const li=Kn=>{const ur=Math.floor(Kn/1e3);zi(ur)};return ft.createElement(xe,ee(Tt({},hn),{onChange:li}))},Ae={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},Rn=({DataProps:qe,className:Je,style:sn={}})=>{var hn;return ft.createElement("div",{className:jt()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",Ae.ClassRoomItem,Je),style:sn,onClick:()=>{(0,ti.xg)(qe==null?void 0:qe.first_category_url)}},ft.createElement("div",{className:"flex flex-col item-center"},ft.createElement("img",{src:`${(hn=rn.Z)==null?void 0:hn.IMG_SERVER}/images/${qe==null?void 0:qe.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(qe==null?void 0:qe.subject_identifier)&&ft.createElement("div",{className:"mt-40px"},ft.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),ft.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),ft.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},ft.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(qe!=null&&qe.is_public)&&ft.createElement("div",{className:"c-white rounded-4px mr-4px h-24px w-42px item-center justify-center",style:{background:"#21CA9F",border:"1px solid #6BFF98",display:"inline-flex"}},"\u516C\u5F00"),ft.createElement("span",{className:jt()("text-16px font-medium",Ae.TitleDom)},qe==null?void 0:qe.name)),ft.createElement("div",{className:"c-grey-333 font-medium"},qe==null?void 0:qe.creator),ft.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",qe==null?void 0:qe.course_members_count),ft.createElement("div",{className:"c-grey-333 flex item-center justify-between"},ft.createElement("div",null,"\u4F5C\u4E1A\uFF1A",qe==null?void 0:qe.tasks_count),qe!=null&&qe.is_end?ft.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):ft.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},Pi=Object.defineProperty,An=Object.getOwnPropertySymbols,Mi=Object.prototype.hasOwnProperty,pi=Object.prototype.propertyIsEnumerable,di=(qe,Je,sn)=>Je in qe?Pi(qe,Je,{enumerable:!0,configurable:!0,writable:!0,value:sn}):qe[Je]=sn,Wn=(qe,Je)=>{for(var sn in Je||(Je={}))Mi.call(Je,sn)&&di(qe,sn,Je[sn]);if(An)for(var sn of An(Je))pi.call(Je,sn)&&di(qe,sn,Je[sn]);return qe},sr=({DataProps:qe=[],selectValue:Je,onChange:sn,className:hn,style:bi={},extra:zi,classNameItem:li,styleItem:Kn={},barHidden:ur})=>{const[Ln,wn]=(0,ft.useState)();return(0,ft.useEffect)(()=>{wn(Array.isArray(Je)?Je:[Je])},[Je]),ft.createElement("div",{className:jt()("flex px-20px py-10px gap-40px",hn),style:Wn({borderBottom:"1px solid #D3F0FF"},bi)},qe==null?void 0:qe.map(_n=>ft.createElement("div",{key:_n==null?void 0:_n.id,className:jt()("flex item-center justify-center current c-grey-333 text-16 relative",li,_n==null?void 0:_n.className),style:Wn(Wn({color:Ln!=null&&Ln.includes(_n==null?void 0:_n.id)?"#1890FF":"",minWidth:88},Kn),(_n==null?void 0:_n.style)||{}),onClick:Ei=>{sn==null||sn({domEvent:Ei,item:_n}),_n!=null&&_n.link&&Cn.history.push(_n==null?void 0:_n.link)}},_n==null?void 0:_n.name,!ur&&(Ln==null?void 0:Ln.includes(_n==null?void 0:_n.id))&&ft.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),ft.createElement("div",{className:"ml-auto"},zi))},_i=Object.defineProperty,Ui=Object.defineProperties,qi=Object.getOwnPropertyDescriptors,lr=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,ke=(qe,Je,sn)=>Je in qe?_i(qe,Je,{enumerable:!0,configurable:!0,writable:!0,value:sn}):qe[Je]=sn,xn=(qe,Je)=>{for(var sn in Je||(Je={}))je.call(Je,sn)&&ke(qe,sn,Je[sn]);if(lr)for(var sn of lr(Je))ve.call(Je,sn)&&ke(qe,sn,Je[sn]);return qe},cn=(qe,Je)=>Ui(qe,qi(Je)),Ti=({value:qe,onChange:Je,onInputChange:sn,className:hn,style:bi={},InputProps:zi})=>{const[li,Kn]=(0,ft.useState)(qe);return ft.createElement("div",{className:jt()("flex item-center rounded-full px-10px py-2px",hn),style:xn({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},bi)},ft.createElement(Ie.default,cn(xn({bordered:!1},zi),{onChange:ur=>{Kn(ur.target.value),sn==null||sn(encodeURIComponent(ur.target.value))},onPressEnter:ur=>{Je==null||Je({domEvent:ur,item:{value:li}})}})),ft.createElement("img",{className:"h-22px current",src:mt(25365),height:22,onClick:ur=>{Je==null||Je({domEvent:ur,item:{value:li}})}}))}},99914:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Ft}});var ft=mt(67294);function Ft($t,ne){const Dt=(0,ft.useRef)();(0,ft.useEffect)(()=>{Dt.current=$t}),(0,ft.useEffect)(()=>{function Ht(){Dt.current()}if(ne!==null){let Wt=setInterval(Ht,ne);return()=>clearInterval(Wt)}},[ne])}},66983:function(jn,tn,mt){"use strict";mt.r(tn),mt.d(tn,{default:function(){return ai}});var ft=mt(67294),Ft=mt(35973),$t=mt(22150),ne=mt(14446),Dt=mt(71230),Ht=mt(57953),Wt=mt(2453),jt=mt(84567),Nt={flex_box_center:"flex_box_center___JKPl3",flex_space_between:"flex_space_between___QuVBb",flex_box_vertical_center:"flex_box_vertical_center___Ksaxh",flex_box_center_end:"flex_box_center_end___nIhjx",flex_box_column:"flex_box_column___NAJ16",wrap:"wrap___NZWPs",content:"content___OLcvS",name:"name____Thh2",list:"list___F7fxl",head:"head___ffJpn",models:"models___kudCc",btns:"btns___CQDPq",rowsHead:"rowsHead___oC1SU",time:"time___r7Qed",rowsBody:"rowsBody___ZNF9c"},Ut=mt(33170),De=mt(64743),Yt=mt(91304),de=mt(35598),we=mt(39132),ue=mt(52262),he=mt(28706),It=mt(71577),ye=mt(83062),Ze=mt(85418),pe=mt(11713),be=mt(69677),Rt=mt(79870),zt=mt(15746),Qt=mt(59810),te=mt(90875),Ie=mt(7134),He=function(Te,ce){return He=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Oe,pn){Oe.__proto__=pn}||function(Oe,pn){for(var fi in pn)Object.prototype.hasOwnProperty.call(pn,fi)&&(Oe[fi]=pn[fi])},He(Te,ce)};function en(Te,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Class extends value "+String(ce)+" is not a constructor or null");He(Te,ce);function Oe(){this.constructor=Te}Te.prototype=ce===null?Object.create(ce):(Oe.prototype=ce.prototype,new Oe)}var ie=function(){return ie=Object.assign||function(ce){for(var Oe,pn=1,fi=arguments.length;pn<fi;pn++){Oe=arguments[pn];for(var $n in Oe)Object.prototype.hasOwnProperty.call(Oe,$n)&&(ce[$n]=Oe[$n])}return ce},ie.apply(this,arguments)};function an(Te,ce){var Oe={};for(var pn in Te)Object.prototype.hasOwnProperty.call(Te,pn)&&ce.indexOf(pn)<0&&(Oe[pn]=Te[pn]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fi=0,pn=Object.getOwnPropertySymbols(Te);fi<pn.length;fi++)ce.indexOf(pn[fi])<0&&Object.prototype.propertyIsEnumerable.call(Te,pn[fi])&&(Oe[pn[fi]]=Te[pn[fi]]);return Oe}function nn(Te,ce,Oe,pn){var fi=arguments.length,$n=fi<3?ce:pn===null?pn=Object.getOwnPropertyDescriptor(ce,Oe):pn,_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")$n=Reflect.decorate(Te,ce,Oe,pn);else for(var ri=Te.length-1;ri>=0;ri--)(_e=Te[ri])&&($n=(fi<3?_e($n):fi>3?_e(ce,Oe,$n):_e(ce,Oe))||$n);return fi>3&&$n&&Object.defineProperty(ce,Oe,$n),$n}function Vn(Te,ce){return function(Oe,pn){ce(Oe,pn,Te)}}function Ne(Te,ce,Oe,pn,fi,$n){function _e(Ki){if(Ki!==void 0&&typeof Ki!="function")throw new TypeError("Function expected");return Ki}for(var ri=pn.kind,Ri=ri==="getter"?"get":ri==="setter"?"set":"value",$e=!ce&&Te?pn.static?Te:Te.prototype:null,Ge=ce||($e?Object.getOwnPropertyDescriptor($e,pn.name):{}),un,xi=!1,Yi=Oe.length-1;Yi>=0;Yi--){var ci={};for(var Xn in pn)ci[Xn]=Xn==="access"?{}:pn[Xn];for(var Xn in pn.access)ci.access[Xn]=pn.access[Xn];ci.addInitializer=function(Ki){if(xi)throw new TypeError("Cannot add initializers after decoration has completed");$n.push(_e(Ki||null))};var qn=(0,Oe[Yi])(ri==="accessor"?{get:Ge.get,set:Ge.set}:Ge[Ri],ci);if(ri==="accessor"){if(qn===void 0)continue;if(qn===null||typeof qn!="object")throw new TypeError("Object expected");(un=_e(qn.get))&&(Ge.get=un),(un=_e(qn.set))&&(Ge.set=un),(un=_e(qn.init))&&fi.unshift(un)}else(un=_e(qn))&&(ri==="field"?fi.unshift(un):Ge[Ri]=un)}$e&&Object.defineProperty($e,pn.name,Ge),xi=!0}function Ye(Te,ce,Oe){for(var pn=arguments.length>2,fi=0;fi<ce.length;fi++)Oe=pn?ce[fi].call(Te,Oe):ce[fi].call(Te);return pn?Oe:void 0}function zn(Te){return typeof Te=="symbol"?Te:"".concat(Te)}function Gn(Te,ce,Oe){return typeof ce=="symbol"&&(ce=ce.description?"[".concat(ce.description,"]"):""),Object.defineProperty(Te,"name",{configurable:!0,value:Oe?"".concat(Oe," ",ce):ce})}function Me(Te,ce){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(Te,ce)}function _t(Te,ce,Oe,pn){function fi($n){return $n instanceof Oe?$n:new Oe(function(_e){_e($n)})}return new(Oe||(Oe=Promise))(function($n,_e){function ri(Ge){try{$e(pn.next(Ge))}catch(un){_e(un)}}function Ri(Ge){try{$e(pn.throw(Ge))}catch(un){_e(un)}}function $e(Ge){Ge.done?$n(Ge.value):fi(Ge.value).then(ri,Ri)}$e((pn=pn.apply(Te,ce||[])).next())})}function rn(Te,ce){var Oe={label:0,sent:function(){if($n[0]&1)throw $n[1];return $n[1]},trys:[],ops:[]},pn,fi,$n,_e;return _e={next:ri(0),throw:ri(1),return:ri(2)},typeof Symbol=="function"&&(_e[Symbol.iterator]=function(){return this}),_e;function ri($e){return function(Ge){return Ri([$e,Ge])}}function Ri($e){if(pn)throw new TypeError("Generator is already executing.");for(;_e&&(_e=0,$e[0]&&(Oe=0)),Oe;)try{if(pn=1,fi&&($n=$e[0]&2?fi.return:$e[0]?fi.throw||(($n=fi.return)&&$n.call(fi),0):fi.next)&&!($n=$n.call(fi,$e[1])).done)return $n;switch(fi=0,$n&&($e=[$e[0]&2,$n.value]),$e[0]){case 0:case 1:$n=$e;break;case 4:return Oe.label++,{value:$e[1],done:!1};case 5:Oe.label++,fi=$e[1],$e=[0];continue;case 7:$e=Oe.ops.pop(),Oe.trys.pop();continue;default:if($n=Oe.trys,!($n=$n.length>0&&$n[$n.length-1])&&($e[0]===6||$e[0]===2)){Oe=0;continue}if($e[0]===3&&(!$n||$e[1]>$n[0]&&$e[1]<$n[3])){Oe.label=$e[1];break}if($e[0]===6&&Oe.label<$n[1]){Oe.label=$n[1],$n=$e;break}if($n&&Oe.label<$n[2]){Oe.label=$n[2],Oe.ops.push($e);break}$n[2]&&Oe.ops.pop(),Oe.trys.pop();continue}$e=ce.call(Te,Oe)}catch(Ge){$e=[6,Ge],fi=0}finally{pn=$n=0}if($e[0]&5)throw $e[1];return{value:$e[0]?$e[1]:void 0,done:!0}}}var ti=Object.create?function(Te,ce,Oe,pn){pn===void 0&&(pn=Oe);var fi=Object.getOwnPropertyDescriptor(ce,Oe);(!fi||("get"in fi?!ce.__esModule:fi.writable||fi.configurable))&&(fi={enumerable:!0,get:function(){return ce[Oe]}}),Object.defineProperty(Te,pn,fi)}:function(Te,ce,Oe,pn){pn===void 0&&(pn=Oe),Te[pn]=ce[Oe]};function vn(Te,ce){for(var Oe in Te)Oe!=="default"&&!Object.prototype.hasOwnProperty.call(ce,Oe)&&ti(ce,Te,Oe)}function ze(Te){var ce=typeof Symbol=="function"&&Symbol.iterator,Oe=ce&&Te[ce],pn=0;if(Oe)return Oe.call(Te);if(Te&&typeof Te.length=="number")return{next:function(){return Te&&pn>=Te.length&&(Te=void 0),{value:Te&&Te[pn++],done:!Te}}};throw new TypeError(ce?"Object is not iterable.":"Symbol.iterator is not defined.")}function on(Te,ce){var Oe=typeof Symbol=="function"&&Te[Symbol.iterator];if(!Oe)return Te;var pn=Oe.call(Te),fi,$n=[],_e;try{for(;(ce===void 0||ce-- >0)&&!(fi=pn.next()).done;)$n.push(fi.value)}catch(ri){_e={error:ri}}finally{try{fi&&!fi.done&&(Oe=pn.return)&&Oe.call(pn)}finally{if(_e)throw _e.error}}return $n}function On(){for(var Te=[],ce=0;ce<arguments.length;ce++)Te=Te.concat(on(arguments[ce]));return Te}function Ni(){for(var Te=0,ce=0,Oe=arguments.length;ce<Oe;ce++)Te+=arguments[ce].length;for(var pn=Array(Te),fi=0,ce=0;ce<Oe;ce++)for(var $n=arguments[ce],_e=0,ri=$n.length;_e<ri;_e++,fi++)pn[fi]=$n[_e];return pn}function gi(Te,ce,Oe){if(Oe||arguments.length===2)for(var pn=0,fi=ce.length,$n;pn<fi;pn++)($n||!(pn in ce))&&($n||($n=Array.prototype.slice.call(ce,0,pn)),$n[pn]=ce[pn]);return Te.concat($n||Array.prototype.slice.call(ce))}function Dn(Te){return this instanceof Dn?(this.v=Te,this):new Dn(Te)}function Jn(Te,ce,Oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var pn=Oe.apply(Te,ce||[]),fi,$n=[];return fi={},_e("next"),_e("throw"),_e("return"),fi[Symbol.asyncIterator]=function(){return this},fi;function _e(xi){pn[xi]&&(fi[xi]=function(Yi){return new Promise(function(ci,Xn){$n.push([xi,Yi,ci,Xn])>1||ri(xi,Yi)})})}function ri(xi,Yi){try{Ri(pn[xi](Yi))}catch(ci){un($n[0][3],ci)}}function Ri(xi){xi.value instanceof Dn?Promise.resolve(xi.value.v).then($e,Ge):un($n[0][2],xi)}function $e(xi){ri("next",xi)}function Ge(xi){ri("throw",xi)}function un(xi,Yi){xi(Yi),$n.shift(),$n.length&&ri($n[0][0],$n[0][1])}}function Ai(Te){var ce,Oe;return ce={},pn("next"),pn("throw",function(fi){throw fi}),pn("return"),ce[Symbol.iterator]=function(){return this},ce;function pn(fi,$n){ce[fi]=Te[fi]?function(_e){return(Oe=!Oe)?{value:Dn(Te[fi](_e)),done:!1}:$n?$n(_e):_e}:$n}}function hi(Te){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ce=Te[Symbol.asyncIterator],Oe;return ce?ce.call(Te):(Te=typeof ze=="function"?ze(Te):Te[Symbol.iterator](),Oe={},pn("next"),pn("throw"),pn("return"),Oe[Symbol.asyncIterator]=function(){return this},Oe);function pn($n){Oe[$n]=Te[$n]&&function(_e){return new Promise(function(ri,Ri){_e=Te[$n](_e),fi(ri,Ri,_e.done,_e.value)})}}function fi($n,_e,ri,Ri){Promise.resolve(Ri).then(function($e){$n({value:$e,done:ri})},_e)}}function qt(Te,ce){return Object.defineProperty?Object.defineProperty(Te,"raw",{value:ce}):Te.raw=ce,Te}var kt=Object.create?function(Te,ce){Object.defineProperty(Te,"default",{enumerable:!0,value:ce})}:function(Te,ce){Te.default=ce};function Ct(Te){if(Te&&Te.__esModule)return Te;var ce={};if(Te!=null)for(var Oe in Te)Oe!=="default"&&Object.prototype.hasOwnProperty.call(Te,Oe)&&ti(ce,Te,Oe);return kt(ce,Te),ce}function Pt(Te){return Te&&Te.__esModule?Te:{default:Te}}function At(Te,ce,Oe,pn){if(Oe==="a"&&!pn)throw new TypeError("Private accessor was defined without a getter");if(typeof ce=="function"?Te!==ce||!pn:!ce.has(Te))throw new TypeError("Cannot read private member from an object whose class did not declare it");return Oe==="m"?pn:Oe==="a"?pn.call(Te):pn?pn.value:ce.get(Te)}function wt(Te,ce,Oe,pn,fi){if(pn==="m")throw new TypeError("Private method is not writable");if(pn==="a"&&!fi)throw new TypeError("Private accessor was defined without a setter");if(typeof ce=="function"?Te!==ce||!fi:!ce.has(Te))throw new TypeError("Cannot write private member to an object whose class did not declare it");return pn==="a"?fi.call(Te,Oe):fi?fi.value=Oe:ce.set(Te,Oe),Oe}function Xt(Te,ce){if(ce===null||typeof ce!="object"&&typeof ce!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof Te=="function"?ce===Te:Te.has(ce)}var Re={__extends:en,__assign:ie,__rest:an,__decorate:nn,__param:Vn,__metadata:Me,__awaiter:_t,__generator:rn,__createBinding:ti,__exportStar:vn,__values:ze,__read:on,__spread:On,__spreadArrays:Ni,__spreadArray:gi,__await:Dn,__asyncGenerator:Jn,__asyncDelegator:Ai,__asyncValues:hi,__makeTemplateObject:qt,__importStar:Ct,__importDefault:Pt,__classPrivateFieldGet:At,__classPrivateFieldSet:wt,__classPrivateFieldIn:Xt},We=mt(23495);var In=function(Te){en(ce,Te);function ce(Oe){var pn=Te.call(this,Oe)||this;return pn.wasCleared=!1,pn.modelChangedListener=null,pn.divRef=ft.createRef(),pn}return ce.prototype.getDiagram=function(){return this.divRef.current===null?null:We.S0.fromDiv(this.divRef.current)},ce.prototype.clear=function(){var Oe=this.getDiagram();Oe!==null&&(Oe.clear(),this.wasCleared=!0)},ce.prototype.componentDidMount=function(){var Oe=this;if(this.divRef.current!==null){var pn=this.props.initDiagram();pn.div=this.divRef.current,this.modelChangedListener=function(fi){if(fi.isTransactionFinished&&fi.model&&!fi.model.isReadOnly&&Oe.props.onModelChange){var $n=fi.model.toIncrementalData(fi);$n!==null&&Oe.props.onModelChange($n)}},pn.addModelChangedListener(this.modelChangedListener),pn.delayInitialization(function(){Oe.mergeData(pn,!0)})}},ce.prototype.componentWillUnmount=function(){var Oe=this.getDiagram();Oe!==null&&(Oe.div=null,this.modelChangedListener!==null&&(Oe.removeModelChangedListener(this.modelChangedListener),this.modelChangedListener=null))},ce.prototype.shouldComponentUpdate=function(Oe,pn){return Oe.divClassName!==this.props.divClassName||Oe.style!==this.props.style?!0:!(Oe.skipsDiagramUpdate||Oe.nodeDataArray===this.props.nodeDataArray&&Oe.linkDataArray===this.props.linkDataArray&&Oe.modelData===this.props.modelData)},ce.prototype.componentDidUpdate=function(Oe,pn){var fi=this;if(!(Oe.nodeDataArray===this.props.nodeDataArray&&Oe.linkDataArray===this.props.linkDataArray&&Oe.modelData===this.props.modelData)){var $n=this.getDiagram();$n!==null&&(this.wasCleared?$n.delayInitialization(function(){fi.mergeData($n,!0),fi.wasCleared=!1}):this.mergeData($n,!1))}},ce.prototype.mergeData=function(Oe,pn){var fi=this,$n=Oe.model;$n.commit(function(_e){fi.props.modelData!==void 0&&_e.assignAllDataProperties(_e.modelData,fi.props.modelData),_e.mergeNodeDataArray(fi.props.nodeDataArray),fi.props.linkDataArray!==void 0&&_e instanceof We.FJ&&_e.mergeLinkDataArray(fi.props.linkDataArray)},pn?"initial merge":"merge data")},ce.prototype.render=function(){return ft.createElement("div",{ref:this.divRef,className:this.props.divClassName,style:this.props.style})},ce}(ft.Component),Hn=function(Te){en(ce,Te);function ce(Oe){var pn=Te.call(this,Oe)||this;return pn.divRef=ft.createRef(),pn}return ce.prototype.getOverview=function(){return this.divRef.current===null?null:We.S0.fromDiv(this.divRef.current)},ce.prototype.componentDidMount=function(){if(this.divRef.current!==null){var Oe;this.props.initOverview!==void 0?Oe=this.props.initOverview():(Oe=new We.g2,Oe.contentAlignment=We.z6.Center),Oe.div=this.divRef.current,Oe.observed=this.props.observedDiagram}},ce.prototype.componentWillUnmount=function(){var Oe=this.getOverview();Oe!==null&&(Oe.div=null,Oe.observed=null)},ce.prototype.shouldComponentUpdate=function(Oe,pn){return Oe.divClassName!==this.props.divClassName||Oe.style!==this.props.style?!0:Oe.observedDiagram!==this.props.observedDiagram},ce.prototype.componentDidUpdate=function(Oe,pn){if(Oe.observedDiagram!==this.props.observedDiagram){var fi=this.getOverview();fi!==null&&(fi.observed=this.props.observedDiagram)}},ce.prototype.render=function(){return ft.createElement("div",{ref:this.divRef,className:this.props.divClassName,style:this.props.style})},ce}(ft.Component),Un=function(Te){en(ce,Te);function ce(Oe){var pn=Te.call(this,Oe)||this;return pn.wasCleared=!1,pn.divRef=ft.createRef(),pn}return ce.prototype.getPalette=function(){return this.divRef.current===null?null:We.S0.fromDiv(this.divRef.current)},ce.prototype.clear=function(){var Oe=this.getPalette();Oe!==null&&(Oe.clear(),this.wasCleared=!0)},ce.prototype.componentDidMount=function(){var Oe=this;if(this.divRef.current!==null){var pn=this.props.initPalette();pn.div=this.divRef.current,pn.delayInitialization(function(){Oe.mergeData(pn,!0)})}},ce.prototype.componentWillUnmount=function(){var Oe=this.getPalette();Oe!==null&&(Oe.div=null)},ce.prototype.shouldComponentUpdate=function(Oe,pn){return Oe.divClassName!==this.props.divClassName||Oe.style!==this.props.style?!0:!(Oe.nodeDataArray===this.props.nodeDataArray&&Oe.linkDataArray===this.props.linkDataArray&&Oe.modelData===this.props.modelData)},ce.prototype.componentDidUpdate=function(Oe,pn){var fi=this;if(!(Oe.nodeDataArray===this.props.nodeDataArray&&Oe.linkDataArray===this.props.linkDataArray&&Oe.modelData===this.props.modelData)){var $n=this.getPalette();$n!==null&&(this.wasCleared?$n.delayInitialization(function(){fi.mergeData($n,!0),fi.wasCleared=!1}):this.mergeData($n,!1))}},ce.prototype.mergeData=function(Oe,pn){var fi=this,$n=Oe.model;$n.commit(function(_e){fi.props.modelData!==void 0&&_e.assignAllDataProperties(_e.modelData,fi.props.modelData),_e.mergeNodeDataArray(fi.props.nodeDataArray),fi.props.linkDataArray!==void 0&&_e instanceof We.FJ&&_e.mergeLinkDataArray(fi.props.linkDataArray)},pn?"initial merge":"merge data")},ce.prototype.render=function(){return ft.createElement("div",{ref:this.divRef,className:this.props.divClassName,style:this.props.style})},ce}(ft.Component),Yn=mt(51959),Fe={flex_box_center:"flex_box_center___dw6yv",flex_space_between:"flex_space_between___bkc32",flex_box_vertical_center:"flex_box_vertical_center___jDpm2",flex_box_center_end:"flex_box_center_end___g9JOB",flex_box_column:"flex_box_column___ngIjI","diagram-component":"diagram-component___fHDp0",rightmodal:"rightmodal___Fwj_F",title:"title___YZZgl",button:"button___yQKxh",linetitles:"linetitles___CFVw5",line:"line___hSEjG",additem:"additem___cy1wv",lebels:"lebels___E2znG",describe:"describe___emw2X",describetitle:"describetitle___bgNOs",ehover:"ehover____RCDx",dhover:"dhover___IP_3b",header:"header___PCDQg",headeractivite:"headeractivite___x56tJ",a:"a___QYqeC"},bn=mt(26194),En=mt(11320),Qn=mt(61193),Sn=mt.n(Qn),Vi=mt(246),Qe=mt.n(Vi),Pn=Object.defineProperty,Ci=Object.defineProperties,yi=Object.getOwnPropertyDescriptors,Oi=Object.getOwnPropertySymbols,ar=Object.prototype.hasOwnProperty,br=Object.prototype.propertyIsEnumerable,wr=(Te,ce,Oe)=>ce in Te?Pn(Te,ce,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Te[ce]=Oe,cr=(Te,ce)=>{for(var Oe in ce||(ce={}))ar.call(ce,Oe)&&wr(Te,Oe,ce[Oe]);if(Oi)for(var Oe of Oi(ce))br.call(ce,Oe)&&wr(Te,Oe,ce[Oe]);return Te},Ar=(Te,ce)=>Ci(Te,yi(ce)),ir=(Te,ce,Oe)=>new Promise((pn,fi)=>{var $n=Ri=>{try{ri(Oe.next(Ri))}catch($e){fi($e)}},_e=Ri=>{try{ri(Oe.throw(Ri))}catch($e){fi($e)}},ri=Ri=>Ri.done?pn(Ri.value):Promise.resolve(Ri.value).then($n,_e);ri((Oe=Oe.apply(Te,ce)).next())});class kr extends We.hD{isFixed(ce){return ce.node.isSelected}doLayout(ce){this._isObserving||(this._isObserving=!0,this.diagram.addModelChangedListener(pn=>{(pn.modelChange!==""||pn.change===We.Vk.Transaction&&pn.propertyName==="StartingFirstTransaction")&&(this.network=null)}));var Oe=this.network;Oe===null?this.network=Oe=this.makeNetwork(ce):this.diagram.nodes.each(pn=>{var fi=Oe.findVertex(pn);fi!==null&&(fi.bounds=pn.actualBounds)}),super.doLayout(ce),this.network=Oe}}let po=["\u6839\u8282\u70B9","\u7AE0\u8282\u77E5\u8BC6\u5355\u5143","\u8D44\u6E90\u77E5\u8BC6\u5355\u5143","\u77E5\u8BC6\u70B9"],So=["#3CDAA3","#30A7F1","#F84F90","#6656FF"],Eo=[{name:"\u5B9E\u8BAD",type:"Shixun"},{name:"\u8BFE\u4EF6",type:"Attachment"},{name:"\u89C6\u9891",type:"VideoItem"},{name:"\u8003\u8BD5",type:"ExaminationBank"},{name:"\u4F5C\u4E1A",type:"SubjectHomework"},{name:"\u7EC3\u4E60",type:"Practice"},{name:"\u6587\u672C",type:"Text"}];const Yr=({globalSetting:Te,dispatch:ce,virtualSpaces:Oe})=>{var pn,fi,$n,_e;const ri=(0,Ft.useParams)(),Ri=(0,ft.useRef)(),[$e,Ge]=(0,ft.useState)(!1),[un,xi]=(0,ft.useState)(!1),[Yi,ci]=(0,ft.useState)(!1),[Xn,qn]=(0,ft.useState)(!1),[Ki,vr]=(0,ft.useState)(!0),[ki,Or]=(0,ft.useState)(!1);let[Ii,ao]=(0,ft.useState)({});const[qr]=$t.default.useForm(),[Do,ui]=(0,ft.useState)(!1),[Co,bo]=(0,ft.useState)(!0),[Kr,wo]=(0,ft.useState)({index:"",name:"",add:!1});let[Sr,Xr]=(0,ft.useState)({});const Br=(0,ft.useRef)(null),[yo,ko]=(0,ft.useState)(!1),[oi,kn]=(0,ft.useState)(!1),[Ce,si]=(0,ft.useState)([]),[Wi,Gi]=(0,ft.useState)([]),[Tr,Lr]=(0,ft.useState)([]),[Cr,jr]=(0,ft.useState)(""),[Jr,Wr]=(0,ft.useState)(!0),[or,Gt]=(0,ft.useState)(),[Zn,wi]=(0,ft.useState)([]),[Fi,Tt]=(0,ft.useState)(!1),[ee,le]=(0,ft.useState)(!1),xe=(0,ft.useRef)(),fe=(0,ft.useRef)(),[Ee,Ae]=(0,ft.useState)(!1),[yn,Rn]=(0,ft.useState)({left:0,top:0,bottom:0,right:0}),Pi=(0,ft.useRef)(null),{virtualSpacesDetails:An}=Oe,Mi=(An==null?void 0:An.is_member)||(0,ue.Ny)(),[pi,di]=(0,ft.useState)(!1),[Wn,Bi]=(0,ft.useState)(!1),[sr,_i]=(0,ft.useState)([]),[Ui,qi]=(0,ft.useState)(!1),[lr,je]=(0,ft.useState)(1),[ve,ke]=(0,ft.useState)(!1),xn=(Ln,wn)=>{var _n;const{clientWidth:Ei,clientHeight:gn}=window.document.documentElement,Ji=(_n=Pi.current)==null?void 0:_n.getBoundingClientRect();Rn({left:-Ji.left+wn.x,right:Ei-(Ji.right-wn.x),top:-Ji.top+wn.y,bottom:gn-(Ji.bottom-wn.y)-70})};let[cn,ni]=(0,ft.useState)(600);(0,ft.useEffect)(()=>{Xr({}),hn()},[ri,Ki]),(0,ft.useEffect)(()=>{Ti(),Wt.ZP.config({getContainer:()=>Br.current,top:100})},[]);const Ti=()=>{if(fe.current)return;const Ln=We.bx.make;var wn=new We.S0("myDiagramDiv",{"commandHandler.copiesTree":!1,"commandHandler.copiesParentKey":!1,"commandHandler.deletesTree":!1,"draggingTool.dragsTree":!1,"undoManager.isEnabled":!1,doubleClick:!1});fe.current=wn;var _n=We.bx.make(We.FF);_n.angle=0,_n.arrangement=We.FF.ArrangementFixedRoots,wn.layout=_n,wn.nodeTemplate=Ln(We.NB,"Vertical",{selectionObjectName:"TEXT"},Ln(We.al,{name:"TEXT",minSize:new We.$u(30,15)},new We.KX("text","text").makeTwoWay(),new We.KX("scale","scale").makeTwoWay(),new We.KX("font","font").makeTwoWay()),Ln(We.bn,"LineH",{stretch:We.bx.Horizontal,strokeWidth:3,height:3,portId:"",fromSpot:We.z6.LeftRightSides,toSpot:We.z6.LeftRightSides},new We.KX("stroke","brush"),new We.KX("fromSpot","dir",gn=>Kn(gn,!0)),new We.KX("toSpot","dir",gn=>Kn(gn,!1))),new We.KX("location","loc",We.E9.parse).makeTwoWay(We.E9.stringify),new We.KX("locationSpot","dir",gn=>Kn(gn,!1)),{click(gn,Ji){Bi(!1),ao(Ji==null?void 0:Ji.data),Rn({left:0,top:0,bottom:0,right:0})}}),wn.allowDoubleClick=!1,wn.allowSelect="single",wn.commandHandler.canDeleteSelection=!1,wn.commandHandler.canUndo=!1;const Ei=wn.toolManager.clickSelectingTool;Ei.canStartMulti=!1,wn.linkTemplate=Ln(We.rU,{curve:We.rU.Bezier,fromShortLength:-2,toShortLength:-2,selectable:!1},Ln(We.bn,{strokeWidth:3},new We.KX("stroke","toNode",gn=>gn.data.brush?gn.data.brush:"black").ofObject()))};function qe(Ln,wn){var _n=Ln.findNodeForKey(wn);if(_n!==null){Ln.startTransaction("Layout");var Ei=new We.l4,gn=new We.l4;_n.findLinksConnected().each(Ji=>{var er=Ji.toNode;er.data.dir==="left"?(gn.add(_n),gn.add(Ji),gn.addAll(er.findTreeParts())):(Ei.add(_n),Ei.add(Ji),Ei.addAll(er.findTreeParts()))}),Je(Ei,0),Je(gn,180),Ln.commitTransaction("Layout")}}function Je(Ln,wn){var _n=We.bx.make(We.FF,{angle:wn,arrangement:We.FF.ArrangementFixedRoots,nodeSpacing:5,layerSpacing:20,setsPortSpot:!1,setsChildPortSpot:!1});_n.doLayout(Ln)}function sn(Ln){var wn;const _n=(wn=Ln==null?void 0:Ln[0])==null?void 0:wn.id;let Ei=0;fe.current.model=We.Hn.fromJson(JSON.stringify({class:"go.TreeModel",nodeDataArray:Ln.map(gn=>(gn.parent==_n&&(Ei%2===0?gn.dir="left":gn.dir="right",++Ei),gn.brush=gn.unit_type===0?"#3CDAA3":[1,2,5,6,7,8].includes(gn.unit_type)?"#F84F90":gn.unit_type===3?"#30A7F1":"#6656FF",gn))})),qe(fe.current,_n)}function hn(){return ir(this,null,function*(){var Ln,wn;let _n=Ki?"/api/knowledge_graphs/tree.json":"/api/knowledge_graphs/map.json",Ei=yield(0,Ut.ZP)(_n,{method:"get",params:{type:2,identifier:ri.virtual_spacesId,type:2,virtual_module_id:window.localStorage.getItem("vtrsModuleId")}});if(Ei.status===0){let gn=(Ln=Ei==null?void 0:Ei.nodeData)==null?void 0:Ln.map((er,Qi)=>Ar(cr({},er),{bgcolor:er.unit_type===0?"#3CDAA3":[1,2,5,6,7,8].includes(er.unit_type)?"#F84F90":er.unit_type===3?"#30A7F1":"#6656FF",parent:er.parent_id}));Xr(Ar(cr({},Ei),{nodeData:gn})),Ki?(sn(gn),setTimeout(()=>{ur()},300)):ur();let Ji=(wn=Ei==null?void 0:Ei.nodeData)==null?void 0:wn.filter(er=>er.id===Ii.id);(Ji==null?void 0:Ji.length)>0&&ao(cr({},Ji==null?void 0:Ji[0]))}})}const bi={onRemove:()=>{si([])},beforeUpload:Ln=>{if(console.log(Ln),(Ln==null?void 0:Ln.size)>1024*1024*50)return Wt.ZP.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;let wn=[];return wn.push(Ln),si([...wn]),!1},fileList:Ce,accept:".xls,.xlsx"},zi=(0,ft.useMemo)(()=>{const Ln=wn=>wn.map(_n=>{const Ei=_n.title,gn=Ei.indexOf(Cr),Ji=Ei.substring(0,gn),er=Ei.slice(gn+Cr.length),Qi=gn>-1?ft.createElement("span",null,Ji,ft.createElement("span",{style:{color:"#f50"}},Cr),er):ft.createElement("span",null,Ei);return _n.children?{title:Qi,key:_n.key,children:Ln(_n.children)}:{title:Qi,key:_n.key}});return Ln(Wi)},[Cr,Wi]);function li(){const Ln=We.bx.make,wn=Ln(We.S0,{allowSelect:!1,"undoManager.isEnabled":!0,initialAutoScale:We.S0.Uniform,contentAlignment:We.z6.Center,layout:Ln(kr,{defaultSpringLength:30,defaultElectricalCharge:100}),SelectionMoved:Ei=>Ei.diagram.layout.invalidateLayout(),model:Ln(We.FJ,{linkKeyProperty:"key",makeUniqueKeyFunction:(Ei,gn)=>{let Ji=gn.key||1;for(;Ei.findNodeDataForKey(Ji);)Ji++;return gn.key=Ji,Ji},makeUniqueLinkKeyFunction:(Ei,gn)=>{let Ji=gn.key||-1;for(;Ei.findLinkDataForKey(Ji);)Ji--;return gn.key=Ji,Ji}})});wn.toolManager.draggingTool.doMouseMove=function(){We.h1.prototype.doMouseMove.call(this),this.isActive&&this.diagram.layout.doLayout(!0)},wn.nodeTemplate=Ln(We.NB,"Auto",{minSize:new We.$u(100,100)},Ln(We.bn,"Circle",{stroke:"white",spot1:new We.z6(0,0,5,5),spot2:new We.z6(1,1,-5,-5)},new We.KX("fill","bgcolor")),Ln(We.al,{font:"bold 10pt helvetica, bold arial, sans-serif",stroke:"white",textAlign:"center",maxSize:new We.$u(100,NaN)},new We.KX("text","text")),{click(Ei,gn){Bi(!1),ao(gn==null?void 0:gn.data),Rn({left:0,top:0,bottom:0,right:0})}}),wn.linkTemplate=Ln(We.rU,{layerName:"Background"},Ln(We.bn,{stroke:"black"}),Ln(We.bn,{toArrow:"standard",stroke:null}),Ln(We.s_,"Auto",Ln(We.bn,{fill:Ln(We.BD,"Radial",{0:"rgb(240, 240, 240)",.3:"rgb(240, 240, 240)",1:"rgba(240, 240, 240, 0)"}),stroke:null}),Ln(We.al,{textAlign:"center",font:"10pt helvetica, arial, sans-serif",stroke:"#555555",margin:4},new We.KX("text","text")))),wn.doubleClick=!1,wn.allowDoubleClick=!1,wn.allowSelect="single",wn.commandHandler.canDeleteSelection=!1,wn.commandHandler.canUndo=!1,wn.allowInsert=!1;const _n=wn.toolManager.clickSelectingTool;return _n.canStartMulti=!1,xe.current=wn,wn}function Kn(Ln,wn){return Ln==="left"?wn?We.z6.Left:We.z6.Right:wn?We.z6.Right:We.z6.Left}function ur(){var Ln,wn,_n,Ei;ni(600),(wn=(Ln=fe.current)==null?void 0:Ln.zoomToFit)==null||wn.call(Ln),(Ei=(_n=xe.current)==null?void 0:_n.zoomToFit)==null||Ei.call(_n)}return ft.createElement("div",{ref:Br,style:{paddingBottom:20,background:"#FFF",position:"relative",height:"100vh"}},ft.createElement(Ht.Z,{spinning:ki},(Sr==null?void 0:Sr.is_root)&&ft.createElement(bn.Z,{ButtonClick:()=>ir(void 0,null,function*(){Or(!0);let Ln=yield(0,Ut.ZP)("/api/knowledge_graphs/set_root.json",{method:"post",body:{type:2,identifier:ri.virtual_spacesId,virtual_module_id:window.localStorage.getItem("vtrsModuleId")}});Or(!1),Ln.status===0&&hn()}),buttonProps:{type:"primary"},ButtonText:Mi&&"\u65B0\u589E\u8282\u70B9",ButtonTwo:Mi&&ft.createElement(It.ZP,{style:{marginLeft:20},onClick:()=>{kn(!0)},type:"primary"},"\u6587\u4EF6\u5BFC\u5165"),styles:{margin:"auto",paddingTop:100}}),!(Sr!=null&&Sr.is_root)&&ft.createElement("div",{style:{height:60,border:"1px solid #e7e7e7",display:"flex"}},ft.createElement("div",{onClick:()=>{vr(!0),ao({})},className:Ki?Fe.headeractivite:Fe.header},ft.createElement("div",null," ",ft.createElement("i",{className:"iconfont icon-zhishishu"})),ft.createElement("div",null,"\u77E5\u8BC6\u6811")),ft.createElement("div",{onClick:()=>{vr(!1),ao({})},className:Ki?Fe.header:Fe.headeractivite},ft.createElement("div",null," ",ft.createElement("i",{className:"iconfont icon-guanxitu"})),ft.createElement("div",null,"\u5173\u7CFB\u56FE")),ft.createElement("div",{onClick:()=>{var Ln,wn,_n,Ei,gn=Ki?fe.current.viewportBounds.width:xe.current.viewportBounds.width,Ji=Ki?fe.current.viewportBounds.height:xe.current.viewportBounds.height;(wn=(Ln=fe.current)==null?void 0:Ln.zoomToRect)==null||wn.call(Ln,new We.UL(1,1,gn/1.1,Ji/1.1)),(Ei=(_n=xe.current)==null?void 0:_n.zoomToRect)==null||Ei.call(_n,new We.UL(1,1,gn/1.1,Ji/1.1))},className:Fe.header},ft.createElement("div",null," ",ft.createElement("i",{className:"iconfont icon-fangda3"})),ft.createElement("div",null,"\u653E\u5927")),ft.createElement("div",{onClick:()=>{var Ln,wn,_n,Ei,gn=Ki?fe.current.viewportBounds.width:xe.current.viewportBounds.width,Ji=Ki?fe.current.viewportBounds.height:xe.current.viewportBounds.height;(wn=(Ln=fe.current)==null?void 0:Ln.zoomToRect)==null||wn.call(Ln,new We.UL(1,1,gn*1.1,Ji*1.1)),(Ei=(_n=xe.current)==null?void 0:_n.zoomToRect)==null||Ei.call(_n,new We.UL(1,1,gn*1.1,Ji*1.1))},className:Fe.header},ft.createElement("div",null," ",ft.createElement("i",{className:"iconfont icon-suoxiao3"})),ft.createElement("div",null,"\u7F29\u5C0F")),ft.createElement("div",{onClick:()=>{var Ln,wn,_n,Ei;ni(600),(wn=(Ln=fe.current)==null?void 0:Ln.zoomToFit)==null||wn.call(Ln),(Ei=(_n=xe.current)==null?void 0:_n.zoomToFit)==null||Ei.call(_n)},className:Fe.header},ft.createElement("div",null," ",ft.createElement("i",{className:"iconfont icon-zishiying"})),ft.createElement("div",null,"\u6700\u4F73\u9002\u5E94")),ft.createElement("div",{onClick:()=>ir(void 0,null,function*(){var Ln;le(!0);let wn=yield(0,Ut.ZP)("/api/knowledge_graphs.json",{method:"get",params:{type:2,identifier:ri.virtual_spacesId}});wn.status===0&&(wi(wn==null?void 0:wn.list),Gi(wn==null?void 0:wn.knowledge_graphs),Lr((Ln=wn==null?void 0:wn.list)==null?void 0:Ln.map(_n=>_n.key)))}),className:Fe.header},ft.createElement("div",null," ",ft.createElement("i",{className:"iconfont icon-chazhao"})),ft.createElement("div",null,"\u67E5\u627E")),Mi&&ft.createElement("div",{onClick:()=>{kn(!0)},className:Fe.header},ft.createElement("div",null," ",ft.createElement("i",{className:"iconfont icon-daoru"})),ft.createElement("div",null,"\u5BFC\u5165")),ft.createElement("div",{style:{flex:1,textAlign:"end",lineHeight:"60px"}},Mi&&ft.createElement(ye.Z,{title:"\u5386\u53F2\u8BB0\u5F55"},ft.createElement("i",{className:`iconfont icon-lishijilu ${Fe.ehover}`,onClick:()=>ir(void 0,null,function*(){var Ln;let wn=yield(0,Ut.ZP)("/api/knowledge_graphs/history.json",{method:"get",params:{identifier:ri.virtual_spacesId,limit:10,type:2,page:lr}});wn.status===0&&(ke(!0),((Ln=wn==null?void 0:wn.histories)==null?void 0:Ln.length)<10&&qi(!1),_i(wn==null?void 0:wn.histories))}),style:{marginRight:30}})),Mi&&ft.createElement(ye.Z,{title:"\u6E05\u7A7A\u6240\u6709\u6570\u636E",getPopupContainer:()=>Br.current},ft.createElement("i",{onClick:()=>{ne.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,getContainer:()=>Br.current,content:"\u8BF7\u786E\u5B9A\u662F\u5426\u5C06\u77E5\u8BC6\u56FE\u8C31\u6240\u6709\u7684\u6570\u636E\u6E05\u7A7A\uFF0C\u6062\u590D\u7A7A\u72B6\u6001\uFF0C\u6E05\u7A7A\u540E\u6570\u636E\u4E0D\u53EF\u6062\u590D\uFF01\u672C\u6B21\u6E05\u7A7A\u4E0D\u4F1A\u5F71\u54CD\u5230\u8BFE\u7A0B\u7AE0\u8282\u5185\u5BB9\uFF0C\u4EC5\u4F5C\u7528\u4E8E\u77E5\u8BC6\u56FE\u8C31\u7684\u6570\u636E\u3002",onOk:()=>ir(void 0,null,function*(){(yield(0,Ut.ZP)("/api/knowledge_graphs/delete_all.json",{method:"DELETE",body:{type:2,identifier:ri.virtual_spacesId,virtual_module_id:window.localStorage.getItem("vtrsModuleId")}})).status===0&&(hn(),ao({}))})})},className:`iconfont icon-shanchu14 ${Fe.dhover}`})),Mi&&ft.createElement(ye.Z,{title:"\u540C\u6B65\u8BFE\u7A0B\u77E5\u8BC6\u7ED3\u6784",getPopupContainer:()=>Br.current},ft.createElement("i",{onClick:()=>{ne.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,getContainer:()=>Br.current,content:"\u8BF7\u786E\u5B9A\u662F\u5426\u5C06\u540C\u6B65\u8BFE\u7A0B\u77E5\u8BC6\u7ED3\u6784\uFF0C\u66F4\u65B0\u540E\u539F\u6709\u77E5\u8BC6\u7ED3\u6784\u5C06\u88AB\u8986\u76D6\uFF0C\u8986\u76D6\u540E\u4E0D\u53EF\u64A4\u9500\u6062\u590D\u3002",onOk:()=>ir(void 0,null,function*(){Or(!0);let Ln=yield(0,Ut.ZP)("/api/knowledge_graphs/sync.json",{method:"post",body:{identifier:ri.pathId,type:2}});Or(!1),Ln.status===0&&hn()})})},style:{margin:"0px 30px"},className:`iconfont icon-jiazai_shuaxin_o ${Fe.ehover}`})),Mi&&ft.createElement(Ze.Z,{getPopupContainer:()=>Br.current,menu:{items:[{key:"1",style:{width:100},label:ft.createElement("a",{href:`${En.Z.API_SERVER}/api/knowledge_graphs/export.xlsx?identifier=${ri.virtual_spacesId}&type=2`},"\u5BFC\u51FAExcel")},{key:"2",label:ft.createElement("a",{href:`${En.Z.API_SERVER}/api/knowledge_graphs/export.json?identifier=${ri.virtual_spacesId}&type=2`},"\u5BFC\u51FAWord")}]}},ft.createElement("i",{className:`iconfont icon-xiazai6 ${Fe.ehover}`})),ft.createElement("i",{onClick:()=>{(0,Yn.vp)()?(ko(!1),(0,Yn.BU)()):(ko(!0),(0,Yn.Dj)(Br.current)),ur()},style:{marginLeft:30,marginRight:20},className:`iconfont ${yo?"icon-tuichuquanping3":"icon-quanping4"} ${Fe.ehover}`}))),ft.createElement("div",{className:"relative"},!Ki&&ft.createElement(In,{ref:Ri,divClassName:"diagram-component",style:{backgroundColor:"#fff",height:yo?"calc(100vh - 100px)":540,visibility:Sr!=null&&Sr.is_root?"hidden":"visible"},initDiagram:li,nodeDataArray:Sr==null?void 0:Sr.nodeData,linkDataArray:Sr==null?void 0:Sr.linkData}),ft.createElement("div",{id:"myDiagramDiv",style:{height:yo?"calc(100vh - 100px)":540,width:"100%",visibility:Sr!=null&&Sr.is_root?"hidden":Ki?"visible":"hidden",position:Ki?"relative":"absolute"}})),ft.createElement("div",null,!(Sr!=null&&Sr.is_root)&&po.map((Ln,wn)=>ft.createElement("span",{style:{marginLeft:wn===0&&20,marginRight:30}},ft.createElement("span",{style:{marginRight:6,width:16,height:8,background:So[wn],display:"inline-flex",borderRadius:4}}),ft.createElement("span",{style:{color:"#9096A3"}},Ln))))),ft.createElement("div",{style:{zIndex:1e3}},ft.createElement(Sn(),{disabled:Ee,bounds:yn,onStart:(Ln,wn)=>xn(Ln,wn)},ft.createElement("div",{ref:Pi,style:{position:"fixed",cursor:"move",right:0,top:yo?60:260,zIndex:12}},ft.createElement("div",{onMouseOver:()=>{Ee&&Ae(!Co)},onMouseOut:()=>{Ae(!0)}},Ii.id&&ft.createElement("div",{className:Fe.rightmodal},ft.createElement(Ht.Z,{spinning:ki},ft.createElement("div",{style:{display:"flex",padding:25,paddingBottom:0}},ft.createElement("div",{className:Fe.title},Ii.text," ",Wn&&ft.createElement("i",{onClick:()=>{Ge(!0),qr.setFieldsValue({name:Ii.text})},className:"iconfont icon-bianji3",style:{marginLeft:14,color:"#666666",cursor:"pointer"}})),ft.createElement("div",null,ft.createElement("i",{style:{cursor:"pointer"},onClick:()=>{var Ln,wn;if(Wn){Bi(!1);return}ao({}),(Ln=fe.current)==null||Ln.clearSelection(),(wn=xe.current)==null||wn.clearSelection()},className:"iconfont icon-danchuangguanbi"}))),ft.createElement("div",{style:{maxHeight:580,overflow:"auto",padding:25,paddingTop:0}},Wn&&ft.createElement("div",{style:{marginTop:25}},ft.createElement("span",{className:Fe.button,onClick:()=>{if(Ii.unit_type>=4||Ii.unit_type===0){Ii.unit_type===0?Wt.ZP.info("\u6839\u8282\u70B9\u6682\u4E0D\u652F\u6301\u63D2\u5165\u77E5\u8BC6\u70B9"):Wt.ZP.info("\u77E5\u8BC6\u70B9\u4E3A\u6700\u5C0F\u5355\u4F4D\u6682\u4E0D\u652F\u6301\u63D2\u5165\u77E5\u8BC6\u70B9");return}qr.setFieldsValue({name:""}),ci(!0)}},ft.createElement("i",{style:{marginRight:8},className:"iconfont icon-charuzhishidian1"})," \u63D2\u5165\u77E5\u8BC6\u70B9"),ft.createElement("span",{className:Fe.button,onClick:()=>{if(Ii.unit_type>=4){Wt.ZP.info("\u77E5\u8BC6\u70B9\u4E3A\u6700\u5C0F\u5355\u4F4D\u6682\u4E0D\u652F\u6301\u63D2\u5165\u77E5\u8BC6\u5355\u5143");return}qr.setFieldsValue({name:"",unit_type:3,url:""}),qn(!0)}},ft.createElement("i",{style:{marginRight:8},className:"iconfont icon-charuzhishidanyuan"})," \u63D2\u5165\u77E5\u8BC6\u5355\u5143"),ft.createElement("span",{className:Fe.button,onClick:()=>{ne.default.confirm({icon:null,title:"\u63D0\u793A",centered:!0,getContainer:()=>Br.current,content:"\u5220\u9664\u8BE5\u8282\u70B9\u4F1A\u5BFC\u81F4\u5B83\u7684\u5B50\u8282\u70B9\u4E00\u5E76\u5220\u9664\uFF0C\u5220\u9664\u8282\u70B9\u4E0D\u4F1A\u5F71\u54CD\u5230\u8BFE\u7A0B\u7AE0\u8282\u5185\u5BB9\uFF0C\u5220\u9664\u540E\uFF0C\u6570\u636E\u4E0D\u53EF\u6062\u590D\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664",onOk:()=>ir(void 0,null,function*(){Or(!0);let Ln=yield(0,Ut.ZP)(`/api/knowledge_graphs/${Ii.id}.json`,{method:"DELETE"});Or(!1),(Ln==null?void 0:Ln.status)===0&&(ao({}),hn())})})}},ft.createElement("i",{style:{marginRight:8},className:"iconfont icon-shanchujiedian"})," \u5220\u9664\u8282\u70B9"),ft.createElement("span",{className:Fe.button,onClick:()=>ir(void 0,null,function*(){var Ln;ui(!0);let wn=yield(0,Ut.ZP)("/api/knowledge_graphs.json",{method:"get",params:{identifier:ri.pathId,type:2}});wn.status===0&&(wi(wn==null?void 0:wn.list),Gi(wn==null?void 0:wn.knowledge_graphs),Lr((Ln=wn==null?void 0:wn.list)==null?void 0:Ln.map(_n=>_n.key)))})},ft.createElement("i",{style:{marginRight:8},className:"iconfont icon-guanxi"})," \u5173\u7CFB")),Wn&&ft.createElement("div",{style:{marginTop:20}},ft.createElement("div",{className:Fe.linetitles},ft.createElement("span",{className:Fe.line}),"\u5C5E\u6027"),Ii.unit_type!=4&&Ii.unit_type>0&&ft.createElement("div",{style:{paddingLeft:8}},ft.createElement("label",{className:Fe.lebels},"\u7C7B\u578B"),ft.createElement(pe.default,{size:"large",getPopupContainer:()=>Br.current,style:{width:"100%",marginTop:6},value:Ii.unit_type,onChange:Ln=>ir(void 0,null,function*(){Ii.unit_type=Ln,ao(cr({},Ii)),Or(!0);let wn=yield(0,Ut.ZP)(`/api/knowledge_graphs/${Ii.id}.json`,{method:"put",body:{unit_type:Ln}});Or(!1),wn.status===0&&(Ge(!1),hn())}),placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B"},ft.createElement(pe.default.Option,{value:1},"\u8BFE\u4EF6"),ft.createElement(pe.default.Option,{value:3},"\u6587\u672C"),ft.createElement(pe.default.Option,{value:2},"\u5B9E\u8BAD"),ft.createElement(pe.default.Option,{value:5},"\u8003\u8BD5"),ft.createElement(pe.default.Option,{value:6},"\u4F5C\u4E1A"),ft.createElement(pe.default.Option,{value:7},"\u7EC3\u4E60"),ft.createElement(pe.default.Option,{value:8},"\u89C6\u9891"))),ft.createElement("div",{style:{paddingLeft:8,marginTop:15}},ft.createElement("label",{className:Fe.lebels,style:{display:"flex"}},"\u8DF3\u8F6C\u5730\u5740"),ft.createElement(be.default,{size:"large",value:Ii.url,onChange:Ln=>{Ii.url=Ln.target.value,ao(cr({},Ii))},disabled:Co,onBlur:Ln=>ir(void 0,null,function*(){if(Ae(!1),Ln.target.value){var wn=new RegExp(/^(https?:\/\/)?([\w.-]+)\.([a-z]{2,})(\/\S*)?$/,"i");if(!wn.test(Ln.target.value)){Wt.ZP.info("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8DF3\u8F6C\u5730\u5740");return}}Or(!0);let _n=yield(0,Ut.ZP)(`/api/knowledge_graphs/${Ii.id}.json`,{method:"put",body:{url:Ln.target.value}});Or(!1),bo(!0),_n.status===0&&(Ge(!1),hn())}),style:{width:"81%",marginTop:6}}),ft.createElement("i",{onClick:()=>{bo(!1)},className:"iconfont icon-bianji3",style:{marginLeft:12,marginRight:20,color:"#666666",cursor:"pointer"}}),ft.createElement("span",{className:Fe.button,style:{marginRight:0},onClick:()=>{if(!Ii.url){Wt.ZP.info("\u94FE\u63A5\u4E0D\u80FD\u4E3A\u7A7A");return}window.open(Ii.url)}},"\u8DF3\u8F6C"))),Wn&&ft.createElement("div",{style:{marginTop:20}},ft.createElement("div",{className:Fe.linetitles},ft.createElement("span",{className:Fe.line}),"\u5173\u7CFB"),(pn=Ii==null?void 0:Ii.relations)==null?void 0:pn.map((Ln,wn)=>ft.createElement("div",{style:{display:"flex",paddingLeft:8}},ft.createElement("div",{className:Fe.multi_ellipsis1},"\u4E0E\u8282\u70B9\u201C",ft.createElement("span",{style:{fontWeight:600,color:"#000000"}},Ln.name),"\u201D\u4E3A",Ln.relation,"\u5173\u7CFB"),ft.createElement("div",{style:{width:"10%",textAlign:"end"}},ft.createElement("i",{onClick:()=>{ne.default.confirm({icon:null,title:"\u63D0\u793A",getContainer:()=>Br.current,centered:!0,content:"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u8282\u70B9\u4E4B\u95F4\u7684\u5173\u7CFB\u89E3\u7ED1",onOk:()=>ir(void 0,null,function*(){var _n;Or(!0);let Ei=yield(0,Ut.ZP)(`/api/knowledge_graphs/${Ii==null?void 0:Ii.id}/delete_relation.json`,{method:"POST",body:{relation_id:Ln.relation_id}});Or(!1),Ei.status===0&&((_n=Ii.relations)==null||_n.splice(wn,1),ao(cr({},Ii)),hn())})})},className:`${Fe.dhover} iconfont icon-shanchu10`}))))),!Wn&&ft.createElement("div",{style:{marginTop:20}},ft.createElement("div",{className:Fe.linetitles},ft.createElement("span",{className:Fe.line}),"\u5B66\u4E60\u8D44\u6E90"),(fi=Ii==null?void 0:Ii.sub_knowledge_graphs)==null?void 0:fi.map((Ln,wn)=>{var _n,Ei;return ft.createElement("div",{className:Fe.a,onClick:()=>{window.open(Ln==null?void 0:Ln.url)},style:{display:"flex",paddingLeft:8,alignItems:"center",cursor:"pointer"}},ft.createElement("i",{className:"iconfont icon-lianjie2",style:{marginRight:10,fontSize:12}}),ft.createElement("span",{className:`${Fe.multi_ellipsis1} ${Fe.a}`,style:{fontWeight:600,marginTop:0,width:"90%",display:"inline-flex"}}," \u3010",((Ei=(_n=Eo==null?void 0:Eo.filter(gn=>Ln.type===gn.type))==null?void 0:_n[0])==null?void 0:Ei.name)||"\u6587\u672C","\u3011 ",Ln.name," "),ft.createElement("div",null,"\u67E5\u770B"))})),!Wn&&ft.createElement("div",{style:{marginTop:20}},ft.createElement("div",{className:Fe.linetitles},ft.createElement("span",{className:Fe.line}),"\u5B58\u5728\u5173\u7CFB\u7684\u77E5\u8BC6\u8282\u70B9"),($n=Ii==null?void 0:Ii.relations)==null?void 0:$n.map((Ln,wn)=>ft.createElement("div",{className:Fe.a,onClick:()=>{var _n,Ei,gn,Ji,er,Qi,Ir,Fr,yr,xo,No,mo;(_n=fe.current)==null||_n.clearSelection(),(Ei=xe.current)==null||Ei.clearSelection();const oo=(Ji=(gn=xe.current)==null?void 0:gn.findNodeForKey)==null?void 0:Ji.call(gn,Ln==null?void 0:Ln.relation_id),to=(Qi=(er=fe.current)==null?void 0:er.findNodeForKey)==null?void 0:Qi.call(er,Ln==null?void 0:Ln.relation_id);(Fr=(Ir=fe.current)==null?void 0:Ir.commandHandler)==null||Fr.scrollToPart(to),(xo=(yr=xe.current)==null?void 0:yr.commandHandler)==null||xo.scrollToPart(oo),oo&&(oo.isSelected=!0),to&&(to.isSelected=!0);let Io=(mo=(No=Sr==null?void 0:Sr.nodeData)==null?void 0:No.filter(so=>(so==null?void 0:so.id)===(Ln==null?void 0:Ln.relation_id)))==null?void 0:mo[0];ao(cr({},Io))},style:{display:"flex",paddingLeft:8,cursor:"pointer"}},ft.createElement("div",{className:Fe.multi_ellipsis1},"\u3010",Ln.relation,"\u3011",Ln.name)))),ft.createElement("div",{style:{marginTop:20}},ft.createElement("div",{className:Fe.linetitles},ft.createElement("span",{className:Fe.line}),"\u63CF\u8FF0",ft.createElement("div",{style:{flex:1,textAlign:"end"}},Wn&&ft.createElement("span",{onClick:()=>{wo({add:!0,name:""}),qr.setFieldsValue({describe:""})},className:Fe.additem},ft.createElement("i",{style:{fontSize:12},className:"iconfont icon-tianjiashitixiaojiahao"})," \u6DFB\u52A0"))),ft.createElement("div",{style:{height:200,overflow:"auto"}},(_e=Ii.descriptions)==null?void 0:_e.map((Ln,wn)=>ft.createElement("div",{className:Fe.describe},ft.createElement("div",{className:Fe.describetitle},ft.createElement("div",{style:{fontSize:14,color:"#000000",fontWeight:500}},"\u63CF\u8FF0",wn+1),Wn&&ft.createElement("div",null,ft.createElement("i",{onClick:()=>{wo({index:wn,name:Ln}),qr.setFieldsValue({describe:Ln})},style:{marginRight:10},className:`iconfont icon-bianji-moren ${Fe.ehover}`}),ft.createElement("i",{onClick:()=>{ne.default.confirm({icon:null,title:"\u63D0\u793A",getContainer:()=>Br.current,centered:!0,content:"\u5220\u9664\u63CF\u8FF0\u540E\uFF0C\u6570\u636E\u4E0D\u53EF\u6062\u590D\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664",onOk:()=>ir(void 0,null,function*(){var _n;(_n=Ii.descriptions)==null||_n.splice(wn,1),ao(cr({},Ii)),Or(!0);let Ei=yield(0,Ut.ZP)(`/api/knowledge_graphs/${Ii.id}.json`,{method:"put",body:{descriptions:Ii.descriptions}});Or(!1),Ei.status===0&&(Ge(!1),hn())})})},className:`iconfont icon-shanchutimu ${Fe.dhover}`}))),ft.createElement(de.Z,{value:Ln||""})))),!Wn&&Mi&&ft.createElement("div",{style:{textAlign:"center",marginTop:10}},ft.createElement(It.ZP,{type:"primary",style:{width:120},onClick:()=>{Bi(!0)}},"\u7F16\u8F91")))))))))),ft.createElement(ne.default,{open:$e,centered:!0,title:"\u7F16\u8F91",getContainer:()=>Br.current,onCancel:()=>Ge(!1),okButtonProps:{loading:un},onOk:()=>{qr.submit()}},ft.createElement($t.default,{size:"large",form:qr,onFinish:Ln=>ir(void 0,null,function*(){xi(!0);let wn=yield(0,Ut.ZP)(`/api/knowledge_graphs/${Ii.id}.json`,{method:"put",body:{type:2,name:Ln.name}});xi(!1),wn.status===0&&(Ki&&(Ii.text=Ln.name,ao(Ii)),Ge(!1),Wt.ZP.info("\u4FEE\u6539\u6210\u529F"),hn())})},ft.createElement($t.default.Item,{name:"name",label:"\u540D\u79F0",rules:[{required:!0,validator:(Ln,wn)=>{var _n;return((_n=wn==null?void 0:wn.replaceAll(" ",""))==null?void 0:_n.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u540D\u79F0")}}]},ft.createElement(be.default,{maxLength:30})))),ft.createElement(ne.default,{open:Yi,centered:!0,title:"\u63D2\u5165\u77E5\u8BC6\u70B9",getContainer:()=>Br.current,onCancel:()=>ci(!1),okButtonProps:{loading:un},onOk:()=>{qr.submit()}},ft.createElement($t.default,{size:"large",form:qr,onFinish:Ln=>ir(void 0,null,function*(){xi(!0);let wn=yield(0,Ut.ZP)("/api/knowledge_graphs.json",{method:"post",body:Ar(cr({},Ln),{unit_type:4,type:2,identifier:ri.virtual_spacesId,parent_id:Ii.id,virtual_module_id:window.localStorage.getItem("vtrsModuleId")})});xi(!1),wn.status===0&&(ci(!1),hn(),Wt.ZP.info("\u63D2\u5165\u77E5\u8BC6\u70B9\u6210\u529F"))})},ft.createElement($t.default.Item,{name:"name",label:"\u77E5\u8BC6\u70B9\u540D\u79F0",rules:[{required:!0,validator:(Ln,wn)=>{var _n;return((_n=wn==null?void 0:wn.replaceAll(" ",""))==null?void 0:_n.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0")}}]},ft.createElement(be.default,{maxLength:20})))),ft.createElement(ne.default,{open:Xn,centered:!0,width:550,title:"\u63D2\u5165\u77E5\u8BC6\u5355\u5143",getContainer:()=>Br.current,onCancel:()=>qn(!1),okButtonProps:{loading:un},onOk:()=>{qr.submit()}},ft.createElement($t.default,{size:"large",form:qr,labelCol:{span:5},onFinish:Ln=>ir(void 0,null,function*(){let wn=yield(0,Ut.ZP)("/api/knowledge_graphs.json",{method:"post",body:Ar(cr({},Ln),{type:2,identifier:ri.virtual_spacesId,parent_id:Ii.id,virtual_module_id:window.localStorage.getItem("vtrsModuleId")})});xi(!1),wn.status===0&&(qn(!1),hn(),Wt.ZP.info("\u63D2\u5165\u77E5\u8BC6\u5355\u5143\u6210\u529F"))})},ft.createElement($t.default.Item,{name:"name",label:"\u77E5\u8BC6\u5355\u5143\u540D\u79F0",rules:[{required:!0,validator:(Ln,wn)=>{var _n;return((_n=wn==null?void 0:wn.replaceAll(" ",""))==null?void 0:_n.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u77E5\u8BC6\u5355\u5143\u540D\u79F0")}}]},ft.createElement(be.default,{placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u5355\u5143\u540D\u79F0",maxLength:20})),ft.createElement($t.default.Item,{name:"unit_type",label:"\u7C7B\u578B"},ft.createElement(pe.default,{getPopupContainer:()=>Br.current,placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B"},ft.createElement(pe.default.Option,{value:1},"\u8BFE\u4EF6"),ft.createElement(pe.default.Option,{value:3},"\u6587\u672C"),ft.createElement(pe.default.Option,{value:2},"\u5B9E\u8BAD"),ft.createElement(pe.default.Option,{value:5},"\u8003\u8BD5"),ft.createElement(pe.default.Option,{value:6},"\u4F5C\u4E1A"),ft.createElement(pe.default.Option,{value:7},"\u7EC3\u4E60"),ft.createElement(pe.default.Option,{value:8},"\u89C6\u9891"))),ft.createElement($t.default.Item,{name:"url",label:"\u8DF3\u8F6C\u5730\u5740",rules:[{pattern:new RegExp(/^(https?:\/\/)?([\w.-]+)\.([a-z]{2,})(\/\S*)?$/,"i"),message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u5730\u5740"}]},ft.createElement(be.default,{placeholder:"\u8BF7\u8F93\u5165\u70B9\u51FB\u8BE5\u8282\u70B9\u8DF3\u8F6C\u7684\u94FE\u63A5\u5730\u5740"})))),Do&&ft.createElement(ne.default,{open:Do,centered:!0,width:550,title:"\u6DFB\u52A0\u5173\u7CFB",getContainer:()=>Br.current,onCancel:()=>{Gt(""),ui(!1)},okButtonProps:{loading:un},onOk:()=>{if(!or){Wt.ZP.info("\u8BF7\u5148\u9009\u62E9\u8282\u70B9");return}ui(!1),Tt(!0),qr.setFieldsValue({relation:1}),jr("")}},ft.createElement(be.default.Search,{size:"large",onChange:Ln=>{let wn=Ln.target.value;const _n=Zn.filter(Ei=>Ei.title.indexOf(wn)>-1).map(Ei=>Ei.key);Lr(_n),Wr(!0),jr(Ln.target.value)}}),ft.createElement(Rt.default,{onExpand:Ln=>{Lr(Ln),Wr(!1)},style:{maxHeight:300,height:300,marginTop:20,overflow:"auto"},onSelect:Ln=>{console.log("---",Ln),Gt(Ln==null?void 0:Ln[0])},expandedKeys:Tr,defaultExpandAll:!0,autoExpandParent:Jr,treeData:zi})),(Kr.name||Kr.add)&&ft.createElement(ne.default,{open:Kr.name||Kr.add,title:"\u63CF\u8FF0",width:900,getContainer:()=>Br.current,centered:!0,onCancel:()=>{wo("")},okButtonProps:{loading:un},onOk:()=>{qr.submit()}},ft.createElement($t.default,{form:qr,onFinish:Ln=>ir(void 0,null,function*(){xi(!0),Kr.add?(Ii.descriptions.push(Ln.describe),ao(cr({},Ii))):(Ii.descriptions[Kr.index]=Ln.describe,ao(cr({},Ii)));let wn=yield(0,Ut.ZP)(`/api/knowledge_graphs/${Ii.id}.json`,{method:"put",body:{type:2,descriptions:Ii.descriptions}});xi(!1),wo(""),wn.status===0&&(Ge(!1),hn())})},ft.createElement($t.default.Item,{name:"describe",style:{marginBottom:-10},rules:[{required:!0,validator:(Ln,wn)=>{var _n;return((_n=wn==null?void 0:wn.replaceAll(" ",""))==null?void 0:_n.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u63CF\u8FF0\u5185\u5BB9")}}]},ft.createElement(Yt.Z,{placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u5927\u9650\u5236\u4E3A65000\u4E2A\u5B57\u7B26",watch:!0,defaultValue:Kr.name})))),ft.createElement(ne.default,{title:"\u6587\u4EF6\u5BFC\u5165",open:oi,centered:!0,getContainer:()=>Br.current,okButtonProps:{loading:un},onCancel:()=>{kn(!1),si([])},onOk:()=>ir(void 0,null,function*(){var Ln;const wn=new FormData;if(Ce.length>0)wn.append("file",Ce[0]);else{Wt.ZP.warning("\u8BF7\u9009\u62E9\u6587\u4EF6");return}xi(!0),wn.append("ec_year_id",ri.ec_year_id),wn.append("identifier",ri.virtual_spacesId),wn.append("type","2"),wn.append("virtual_module_id",window.localStorage.getItem("vtrsModuleId"));let _n=yield(0,Ut.ZP)("/api/knowledge_graphs/import.json",{method:"post",body:wn},!0);xi(!1),(_n==null?void 0:_n.status)===0&&(((Ln=_n==null?void 0:_n.fail)==null?void 0:Ln.length)>0&&ne.default.confirm({icon:null,title:"\u5BFC\u5165\u5931\u8D25",content:ft.createElement("span",null,"\u68C0\u6D4B\u5230\u672C\u6B21\u5BFC\u5165\u5B58\u5728\u4E0D\u7B26\u5408\u8981\u6C42\u7684\u6570\u636E\uFF0C\u70B9\u51FB\u4E0B\u8F7D",ft.createElement("a",{href:`${En.Z.API_SERVER}${_n==null?void 0:_n.url}`,download:"\u5931\u8D25\u6570\u636E.xlsx"},"\u5BFC\u5165\u5931\u8D25\u7684\u6570\u636E"),"\u67E5\u770B")}),si([]),Ii={},ao({}),(_n==null?void 0:_n.success)>0&&Wt.ZP.info("\u6DFB\u52A0\u6210\u529F"),hn(),kn(!1))})},!(Sr!=null&&Sr.is_root)&&ft.createElement("div",{style:{marginBottom:30,color:"#333333"}},"\u68C0\u6D4B\u5F53\u524D\u5DF2\u5B58\u5728\u6570\u636E\uFF0C\u5BFC\u5165\u540E\u539F\u6570\u636E\u5C06\u4F1A\u88AB\u5220\u9664\uFF0C\u6309\u7167\u6700\u65B0\u5BFC\u5165\u7684\u4E3A\u4E3B\uFF0C\u5982\u7EE7\u7EED\u5BFC\u5165\uFF0C\u8BF7\u6309\u7167\u4E0B\u65B9\u6B65\u9AA4\u8FDB\u884C"),ft.createElement("p",{style:{color:"#5F6368"}},"\u6B65\u9AA41\uFF1A",ft.createElement("span",{style:{color:"#000000"}},"\u4E0B\u8F7D"),ft.createElement("a",{href:`${En.Z.API_SERVER}/api/knowledge_graphs/down_template.json`,download:"\u6A21\u7248.xlsx"},"\u77E5\u8BC6\u56FE\u8C31\u5BFC\u5165\u6A21\u7248")),ft.createElement(Dt.Z,null,ft.createElement(zt.Z,{style:{color:"#5F6368"}},"\u6B65\u9AA42\uFF1A",ft.createElement("span",{style:{color:"#000000"}},"\u4E0A\u4F20\u586B\u5199\u597D\u7684\u300A\u77E5\u8BC6\u56FE\u8C31\u5BFC\u5165\u6A21\u7248\u300B"))),ft.createElement(Dt.Z,{style:{marginTop:10,marginLeft:50}},ft.createElement(Qt.default,cr({},bi),ft.createElement("span",{style:{padding:"0px 16px",color:"#3061D0",cursor:"pointer",height:32,alignItems:"center",display:"inline-flex",borderRadius:2,border:"1px solid #BACFFE",background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)"}},ft.createElement("i",{style:{fontSize:12,marginRight:6},className:"iconfont icon-tianjiashitixiaojiahao"})," \u9009\u62E9\u6587\u4EF6")))),ft.createElement(ne.default,{open:Fi,title:"\u6DFB\u52A0\u5173\u7CFB",width:500,getContainer:()=>Br.current,centered:!0,onCancel:()=>{Tt(!1),qr.setFieldsValue({relation:null})},okButtonProps:{loading:un},onOk:()=>{qr.submit()}},ft.createElement($t.default,{form:qr,onFinish:Ln=>ir(void 0,null,function*(){xi(!0);let wn=yield(0,Ut.ZP)(`/api/knowledge_graphs/${Ii.id}/relation.json`,{method:"post",body:cr({type:2,parent_id:or},Ln)});xi(!1),wn.status===0&&(Wt.ZP.info("\u5173\u8054\u6210\u529F"),hn(),Gt(""),Tt(!1),qr.setFieldsValue({relation:null}))})},ft.createElement($t.default.Item,{name:"relation",label:"\u7C7B\u578B"},ft.createElement(pe.default,{getPopupContainer:()=>Br.current,placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B"},ft.createElement(pe.default.Option,{value:1},"\u5173\u8054"),ft.createElement(pe.default.Option,{value:2},"\u540E\u5E8F"))))),ee&&ft.createElement(ne.default,{open:ee,centered:!0,width:550,title:"\u67E5\u627E",getContainer:()=>Br.current,onCancel:()=>{Gt(""),le(!1)},okButtonProps:{loading:un},onOk:()=>{var Ln,wn,_n,Ei,gn,Ji,er,Qi,Ir,Fr;le(!1),(Ln=fe.current)==null||Ln.clearSelection(),(wn=xe.current)==null||wn.clearSelection();const yr=(Ei=(_n=xe.current)==null?void 0:_n.findNodeForKey)==null?void 0:Ei.call(_n,or),xo=(Ji=(gn=fe.current)==null?void 0:gn.findNodeForKey)==null?void 0:Ji.call(gn,or);(Qi=(er=fe.current)==null?void 0:er.commandHandler)==null||Qi.scrollToPart(xo),(Fr=(Ir=xe.current)==null?void 0:Ir.commandHandler)==null||Fr.scrollToPart(yr),yr&&(yr.isSelected=!0,Mi&&(Rn({left:0,top:0,bottom:0,right:0}),ao(yr.data))),xo&&(xo.isSelected=!0,Mi&&(Rn({left:0,top:0,bottom:0,right:0}),ao(xo.data))),Gt(""),jr("")}},ft.createElement(be.default.Search,{size:"large",allowClear:!0,onChange:Ln=>{let wn=Ln.target.value;const _n=Zn.filter(Ei=>Ei.title.indexOf(wn)>-1).map(Ei=>Ei.key);Lr(_n),_n.length<=0?di(!0):di(!1),Wr(!0),jr(Ln.target.value)}}),pi?ft.createElement(bn.Z,null):ft.createElement(Rt.default,{onExpand:Ln=>{Lr(Ln),Wr(!1)},style:{maxHeight:400,height:400,marginTop:20,overflow:"auto"},onSelect:Ln=>{Gt(Ln==null?void 0:Ln[0])},expandedKeys:Tr,defaultExpandAll:!0,autoExpandParent:Jr,treeData:zi})),ft.createElement(ne.default,{title:"\u5386\u53F2\u8BB0\u5F55",open:ve,onCancel:()=>ke(!1),footer:!1},ft.createElement("div",{style:{maxHeight:200,overflow:"auto",padding:10}},ft.createElement(Qe(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:()=>ir(void 0,null,function*(){var Ln;je(lr+1);let wn=yield(0,Ut.ZP)("/api/knowledge_graphs/history.json",{method:"get",params:{identifier:ri.virtual_spacesId,limit:10,page:lr+1}});wn.status===0&&(_i([...sr,...wn==null?void 0:wn.histories]),((Ln=wn==null?void 0:wn.histories)==null?void 0:Ln.length)<10&&qi(!1))}),hasMore:Ui,useWindow:!1},ft.createElement(te.Z,{dataSource:sr,renderItem:Ln=>ft.createElement(te.Z.Item,{key:Ln.id},ft.createElement(te.Z.Item.Meta,{avatar:ft.createElement(Ie.C,{src:En.Z.IMG_SERVER+"/images/"+Ln.avatar_url}),title:ft.createElement("span",null,Ln.real_name),description:Ln.content}),ft.createElement("div",null,Ln.created_at))})))))};var Mn=(0,Ft.connect)(({virtualSpaces:Te,globalSetting:ce})=>({globalSetting:ce,virtualSpaces:Te}))(Yr),St=mt(67294),Zi=Object.defineProperty,mi=Object.defineProperties,rr=Object.getOwnPropertyDescriptors,fr=Object.getOwnPropertySymbols,pr=Object.prototype.hasOwnProperty,tr=Object.prototype.propertyIsEnumerable,Xe=(Te,ce,Oe)=>ce in Te?Zi(Te,ce,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Te[ce]=Oe,mn=(Te,ce)=>{for(var Oe in ce||(ce={}))pr.call(ce,Oe)&&Xe(Te,Oe,ce[Oe]);if(fr)for(var Oe of fr(ce))tr.call(ce,Oe)&&Xe(Te,Oe,ce[Oe]);return Te},Tn=(Te,ce)=>mi(Te,rr(ce)),Nn=(Te,ce,Oe)=>new Promise((pn,fi)=>{var $n=Ri=>{try{ri(Oe.next(Ri))}catch($e){fi($e)}},_e=Ri=>{try{ri(Oe.throw(Ri))}catch($e){fi($e)}},ri=Ri=>Ri.done?pn(Ri.value):Promise.resolve(Ri.value).then($n,_e);ri((Oe=Oe.apply(Te,ce)).next())});const ge={1:"position_and_target",2:"desc",3:"knowledge_graph",4:"knowledge"},Cn=({globalSetting:Te,dispatch:ce,virtualSpaces:Oe})=>{var pn;const[fi]=(0,Ft.useSearchParams)(),[$n,_e]=(0,ft.useState)(!0),[ri,Ri]=(0,ft.useState)(!1),[$e,Ge]=(0,ft.useState)(!1),[un,xi]=(0,ft.useState)(!1),[Yi,ci]=(0,ft.useState)({}),[Xn,qn]=(0,ft.useState)(""),[Ki,vr]=(0,ft.useState)((fi==null?void 0:fi.get("active"))||"position_and_target"),{virtualSpacesDetails:ki}=Oe,Or=(0,Ft.useParams)(),Ii=(ki==null?void 0:ki.is_member)||(0,ue.Ny)(),[ao]=$t.default.useForm();(0,ft.useEffect)(()=>{ui()},[Ki,window.localStorage.getItem("vtrsModuleId")]);const[qr,Do]=(0,ft.useState)([]),ui=()=>Nn(void 0,null,function*(){_e(!0);let Kr=yield(0,Ut.ZP)(`/api/virtual_classrooms/${Or.virtual_spacesId}/knowledge_systems/show.json`,{method:"get",params:{column:Ki,virtual_module_id:window.localStorage.getItem("vtrsModuleId")}});if((Kr==null?void 0:Kr.status)!==-1){ci(mn({},Kr)),qn((Kr==null?void 0:Kr[Ki])||"");let wo=[],Sr=[],Xr=[];const Br=Kr==null?void 0:Kr.knowledge_tabs;Object.entries(Br).forEach(([yo,ko])=>{if(ko)switch(yo){case"show_position_and_target":wo.push(1),Xr.push("position_and_target"),Sr.push({id:"position_and_target",name:"\u8BFE\u7A0B\u5B9A\u4F4D\u4E0E\u76EE\u6807"});break;case"show_knowledge_point":wo.push(2),Xr.push("desc"),Sr.push({id:"desc",name:"\u8BFE\u7A0B\u77E5\u8BC6\u70B9"});break;case"show_knowledge_graph_desc":wo.push(3),Xr.push("knowledge_graph"),Sr.push({id:"knowledge_graph",name:"\u77E5\u8BC6\u56FE\u8C31\u63CF\u8FF0"});break;case"show_knowledge_graph":wo.push(4),Xr.push("knowledge"),Sr.push({id:"knowledge",name:"\u77E5\u8BC6\u56FE\u8C31"});break;default:break}}),ao.setFieldValue("checkData",wo),Do([...Sr]),Xr!=null&&Xr.includes(Ki)||vr(ge[wo[0]])}_e(!1)}),Co=()=>Nn(void 0,null,function*(){Ri(!0);const Kr={};Kr[Ki]=Xn;let wo=yield(0,Ut.ZP)(`/api/virtual_classrooms/${Or.virtual_spacesId}/knowledge_systems/edit.json`,{method:"put",body:Tn(mn({},Kr),{virtual_module_id:window.localStorage.getItem("vtrsModuleId")})});(wo==null?void 0:wo.status)!==-1&&(ui(),Ge(!1)),Ri(!1)}),bo=(Kr,wo)=>{ne.default.confirm({title:"\u63D0\u793A",okText:"\u786E\u5B9A\u5220\u9664",okButtonProps:{danger:!0},icon:!1,className:we.Z.CustomTipsModalCss,cancelText:"\u53D6\u6D88",content:St.createElement("div",null,St.createElement("div",null,"\u786E\u8BA4\u5220\u9664 ",wo," \u5417\uFF1F"),St.createElement("div",{className:"mt10"},"\u5220\u9664\u540E\uFF0C\u5C06\u65E0\u6CD5\u6062\u590D\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C")),onOk:()=>Nn(void 0,null,function*(){const Sr=yield(0,Ut.ZP)(`/api/virtual_classrooms/${Or.virtual_spacesId}/knowledge_systems/${Kr}/del_content.json`,{method:"delete"});(Sr==null?void 0:Sr.status)!==-1&&ui()})})};return St.createElement("section",{className:Nt.wrap},St.createElement(De.YG,{value:Ki,onChange:Kr=>{Kr!==Ki&&(vr(Kr),Ge(!1))},tabBarExtraContent:Ii&&St.createElement("div",{style:{display:"flex",alignItems:"center"}},St.createElement("i",{className:"iconfont icon-a-bianzu21 font20 mr20",style:{cursor:"pointer"},onClick:()=>{xi(!0)}}),Ki==="position_and_target"&&St.createElement(De.op,{onClick:()=>Ge(!0)}," ",St.createElement("i",{className:"iconfont icon-bianji7 font14 mr5"}),"\u7F16\u8F91"),Ki==="desc"&&St.createElement(Dt.Z,{align:"middle"},St.createElement(De.op,{onClick:()=>Ge(!0)}," ",St.createElement("i",{className:"iconfont icon-bianji7 font14 mr5"}),"\u7F16\u8F91\u8BF4\u660E"),St.createElement(De.op,{onClick:()=>{Ft.history.push(`/${he.AS}/${Or.virtual_spacesId}/knowledge/add?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)},className:"ml20"}," ",St.createElement("i",{className:"iconfont icon-tianjiashitixiaojiahao font14 mr5"}),"\u65B0\u589E\u77E5\u8BC6\u70B9\u6A21\u5757")),Ki==="knowledge_graph"&&St.createElement(De.op,{onClick:()=>Ge(!0)}," ",St.createElement("i",{className:"iconfont icon-bianji7 font14 mr5"}),"\u7F16\u8F91\u77E5\u8BC6\u56FE\u8C31")),dataSource:qr}),St.createElement(Ht.Z,{spinning:$n},Ki!=="desc"&&St.createElement("div",{className:Ki!=="knowledge"&&"mt20"},$e?St.createElement(St.Fragment,null,St.createElement(Yt.Z,{onChange:Kr=>qn(Kr),watch:!0,defaultValue:Xn}),St.createElement(De.QD,{confirmTitle:"\u4FDD\u5B58",confirmLoading:ri,confirmClick:Co,cancelClick:()=>{Ge(!1),qn(Yi[Ki]||"")},cancelTitle:"\u53D6\u6D88",className:"mb25"})):St.createElement(de.Z,{value:Xn})),Ki==="knowledge"&&St.createElement(Mn,null),Ki==="desc"&&St.createElement("div",{className:Nt.content},!!Xn&&St.createElement("div",{className:Nt.name},St.createElement("aside",null,"\u8BF4\u660E"),St.createElement(de.Z,{value:Xn})),(pn=Yi==null?void 0:Yi.subject_modules)==null?void 0:pn.map(Kr=>{const{members:{module_content:wo,module_name:Sr,subject_module_id:Xr}}=Kr;return St.createElement("div",{className:Nt.list,key:Xr},St.createElement("div",{className:Nt.head},St.createElement("div",{className:Nt.models},Sr),Ii&&St.createElement("div",{className:Nt.btns},St.createElement("div",{onClick:()=>Ft.history.push(`/${he.AS}/${Or.virtual_spacesId}/knowledge/${Xr}/edit?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)},St.createElement("span",{className:"primary-hover"},St.createElement("i",{className:"iconfont icon-bianji7 font14 mr5"}),"\u7F16\u8F91")),St.createElement("div",{onClick:()=>bo(Xr,Sr)},St.createElement("span",{className:"delete-hover"}," ",St.createElement("i",{className:"iconfont icon-piliangshanchubeifen font14 mr5"}),"\u5220\u9664")))),St.createElement("div",{className:Nt.rowsHead},St.createElement("div",null,"\u77E5\u8BC6\u70B9"),St.createElement("div",null,"\u4E3B\u8981\u5185\u5BB9"),St.createElement("div",null,"\u80FD\u529B\u76EE\u6807"),St.createElement("div",{className:Nt.time},"\u5B66\u65F6"),St.createElement("div",{style:{marginRight:0}},"\u6559\u6848")),wo==null?void 0:wo.map((Br,yo)=>{const{knowledge_point:ko,content:oi,target:kn,class_hour:Ce,lesson_plan:si}=Br;return St.createElement("div",{className:Nt.rowsBody,key:yo},St.createElement("div",null,ko),St.createElement("pre",null,oi),St.createElement("pre",null,kn),St.createElement("div",{className:Nt.time},Ce),St.createElement("div",{style:{marginRight:0}},St.createElement(de.Z,{value:si})))}))})),St.createElement(ne.default,{title:"\u7F16\u8F91\u8BF4\u660E",destroyOnClose:!0,open:Ki==="desc"&&$e,onOk:Co,centered:!0,onCancel:()=>{Ge(!1),qn(Yi[Ki]||"")},confirmLoading:ri,width:686,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",wrapClassName:we.Z.CustomCss},St.createElement("div",null,"\u8BF4\u660E\uFF1A"),St.createElement(Yt.Z,{onChange:Kr=>qn(Kr),watch:!0,defaultValue:Xn})),St.createElement(ne.default,{title:"\u77E5\u8BC6\u4F53\u7CFB\u6A21\u5757\u8BBE\u7F6E",destroyOnClose:!0,open:un,onOk:()=>Nn(void 0,null,function*(){var Kr,wo,Sr,Xr,Br;if(((Kr=ao.getFieldValue("checkData"))==null?void 0:Kr.length)==0)return Wt.ZP.error("\u81F3\u5C11\u9700\u8981\u9009\u62E9\u4E00\u4E2A\u9009\u9879"),!1;const yo=yield(0,Ut.ZP)(`/api/virtual_classrooms/${Or.virtual_spacesId}/knowledge_systems/tabs_setting.json`,{method:"put",body:{virtual_module_id:window.localStorage.getItem("vtrsModuleId"),knowledge_system_id:Yi==null?void 0:Yi.id,show_position_and_target:(wo=ao.getFieldValue("checkData"))==null?void 0:wo.includes(1),show_knowledge_point:(Sr=ao.getFieldValue("checkData"))==null?void 0:Sr.includes(2),show_knowledge_graph_desc:(Xr=ao.getFieldValue("checkData"))==null?void 0:Xr.includes(3),show_knowledge_graph:(Br=ao.getFieldValue("checkData"))==null?void 0:Br.includes(4)}});(yo==null?void 0:yo.status)!==-1&&(ui(),xi(!1))}),centered:!0,onCancel:()=>{xi(!1)},confirmLoading:ri,width:530,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",wrapClassName:we.Z.CustomCss},St.createElement($t.default,{form:ao,style:{marginBottom:"-20px",marginTop:"10px"}},St.createElement($t.default.Item,{name:"checkData"},St.createElement(jt.default.Group,null,St.createElement(jt.default,{value:1},"\u8BFE\u7A0B\u5B9A\u4F4D\u4E0E\u76EE\u6807"),St.createElement(jt.default,{value:2},"\u8BFE\u7A0B\u77E5\u8BC6\u70B9"),St.createElement(jt.default,{value:3},"\u77E5\u8BC6\u56FE\u8C31\u63CF\u8FF0"),St.createElement(jt.default,{value:4},"\u77E5\u8BC6\u56FE\u8C31")))))))};var ai=(0,Ft.connect)(({virtualSpaces:Te,globalSetting:ce})=>({globalSetting:ce,virtualSpaces:Te}))(Cn)},51959:function(jn,tn,mt){"use strict";mt.d(tn,{BU:function(){return Ft},Dj:function(){return ft},gH:function(){return $t},vp:function(){return ne}});function ft(Dt){try{Dt.mozRequestFullScreen?Dt.mozRequestFullScreen():Dt.webkitRequestFullScreen&&Dt.webkitRequestFullScreen()}catch(Ht){console.log(Ht,":e")}}function Ft(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const $t=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function ne(){var Dt=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,Ht=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",Dt),window.isFullScreen?window.isFullScreen:Dt!=null}},38780:function(jn,tn){"use strict";function mt(){const ft=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Ft=1;Ft<arguments.length;Ft++){const $t=Ft<0||arguments.length<=Ft?void 0:arguments[Ft];$t&&Object.keys($t).forEach(ne=>{const Dt=$t[ne];Dt!==void 0&&(ft[ne]=Dt)})}return ft}tn.Z=mt},81643:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return ft}});const ft=Ft=>Ft?typeof Ft=="function"?Ft():Ft:null},57838:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Ft}});var ft=mt(67294);function Ft(){const[,$t]=ft.useReducer(ne=>ne+1,0);return $t}},9708:function(jn,tn,mt){"use strict";mt.d(tn,{F:function(){return Dt},Z:function(){return ne}});var ft=mt(94184),Ft=mt.n(ft);const $t=null;function ne(Ht,Wt,jt){return Ft()({[`${Ht}-status-success`]:Wt==="success",[`${Ht}-status-warning`]:Wt==="warning",[`${Ht}-status-error`]:Wt==="error",[`${Ht}-status-validating`]:Wt==="validating",[`${Ht}-has-feedback`]:jt})}const Dt=(Ht,Wt)=>Wt||Ht},7134:function(jn,tn,mt){"use strict";mt.d(tn,{C:function(){return ie}});var ft=mt(94184),Ft=mt.n(ft),$t=mt(48555),ne=mt(17799),Dt=mt(67294),Ht=mt(74443),Wt=mt(53124),jt=mt(25378),Ut=Dt.createContext({}),De=mt(14747),Yt=mt(67968),de=mt(45503);const we=an=>{const{antCls:nn,componentCls:Vn,iconCls:Ne,avatarBg:Ye,avatarColor:zn,containerSize:Gn,containerSizeLG:Me,containerSizeSM:_t,textFontSize:rn,textFontSizeLG:ti,textFontSizeSM:vn,borderRadius:ze,borderRadiusLG:on,borderRadiusSM:On,lineWidth:Ni,lineType:gi}=an,Dn=(Jn,Ai,hi)=>({width:Jn,height:Jn,lineHeight:`${Jn-Ni*2}px`,borderRadius:"50%",[`&${Vn}-square`]:{borderRadius:hi},[`${Vn}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${Vn}-icon`]:{fontSize:Ai,[`> ${Ne}`]:{margin:0}}});return{[Vn]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,De.Wf)(an)),{position:"relative",display:"inline-block",overflow:"hidden",color:zn,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:Ye,border:`${Ni}px ${gi} transparent`,"&-image":{background:"transparent"},[`${nn}-image-img`]:{display:"block"}}),Dn(Gn,rn,ze)),{"&-lg":Object.assign({},Dn(Me,ti,on)),"&-sm":Object.assign({},Dn(_t,vn,On)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},ue=an=>{const{componentCls:nn,groupBorderColor:Vn,groupOverlapping:Ne,groupSpace:Ye}=an;return{[`${nn}-group`]:{display:"inline-flex",[`${nn}`]:{borderColor:Vn},"> *:not(:first-child)":{marginInlineStart:Ne}},[`${nn}-group-popover`]:{[`${nn} + ${nn}`]:{marginInlineStart:Ye}}}};var he=(0,Yt.Z)("Avatar",an=>{const{colorTextLightSolid:nn,colorTextPlaceholder:Vn}=an,Ne=(0,de.TS)(an,{avatarBg:Vn,avatarColor:nn});return[we(Ne),ue(Ne)]},an=>{const{controlHeight:nn,controlHeightLG:Vn,controlHeightSM:Ne,fontSize:Ye,fontSizeLG:zn,fontSizeXL:Gn,fontSizeHeading3:Me,marginXS:_t,marginXXS:rn,colorBorderBg:ti}=an;return{containerSize:nn,containerSizeLG:Vn,containerSizeSM:Ne,textFontSize:Math.round((zn+Gn)/2),textFontSizeLG:Me,textFontSizeSM:Ye,groupSpace:rn,groupOverlapping:-_t,groupBorderColor:ti}}),It=mt(98675),ye=function(an,nn){var Vn={};for(var Ne in an)Object.prototype.hasOwnProperty.call(an,Ne)&&nn.indexOf(Ne)<0&&(Vn[Ne]=an[Ne]);if(an!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Ne=Object.getOwnPropertySymbols(an);Ye<Ne.length;Ye++)nn.indexOf(Ne[Ye])<0&&Object.prototype.propertyIsEnumerable.call(an,Ne[Ye])&&(Vn[Ne[Ye]]=an[Ne[Ye]]);return Vn};const Ze=(an,nn)=>{const[Vn,Ne]=Dt.useState(1),[Ye,zn]=Dt.useState(!1),[Gn,Me]=Dt.useState(!0),_t=Dt.useRef(null),rn=Dt.useRef(null),ti=(0,ne.sQ)(nn,_t),{getPrefixCls:vn,avatar:ze}=Dt.useContext(Wt.E_),on=Dt.useContext(Ut),On=()=>{if(!rn.current||!_t.current)return;const Ci=rn.current.offsetWidth,yi=_t.current.offsetWidth;if(Ci!==0&&yi!==0){const{gap:Oi=4}=an;Oi*2<yi&&Ne(yi-Oi*2<Ci?(yi-Oi*2)/Ci:1)}};Dt.useEffect(()=>{zn(!0)},[]),Dt.useEffect(()=>{Me(!0),Ne(1)},[an.src]),Dt.useEffect(On,[an.gap]);const Ni=()=>{const{onError:Ci}=an;(Ci==null?void 0:Ci())!==!1&&Me(!1)},{prefixCls:gi,shape:Dn,size:Jn,src:Ai,srcSet:hi,icon:qt,className:kt,rootClassName:Ct,alt:Pt,draggable:At,children:wt,crossOrigin:Xt}=an,Re=ye(an,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),We=(0,It.Z)(Ci=>{var yi,Oi;return(Oi=(yi=Jn!=null?Jn:on==null?void 0:on.size)!==null&&yi!==void 0?yi:Ci)!==null&&Oi!==void 0?Oi:"default"}),In=Object.keys(typeof We=="object"?We||{}:{}).some(Ci=>["xs","sm","md","lg","xl","xxl"].includes(Ci)),Hn=(0,jt.Z)(In),Un=Dt.useMemo(()=>{if(typeof We!="object")return{};const Ci=Ht.c4.find(Oi=>Hn[Oi]),yi=We[Ci];return yi?{width:yi,height:yi,lineHeight:`${yi}px`,fontSize:qt?yi/2:18}:{}},[Hn,We]),Yn=vn("avatar",gi),[Fe,bn]=he(Yn),En=Ft()({[`${Yn}-lg`]:We==="large",[`${Yn}-sm`]:We==="small"}),Qn=Dt.isValidElement(Ai),Sn=Dn||(on==null?void 0:on.shape)||"circle",Vi=Ft()(Yn,En,ze==null?void 0:ze.className,`${Yn}-${Sn}`,{[`${Yn}-image`]:Qn||Ai&&Gn,[`${Yn}-icon`]:!!qt},kt,Ct,bn),Qe=typeof We=="number"?{width:We,height:We,lineHeight:`${We}px`,fontSize:qt?We/2:18}:{};let Pn;if(typeof Ai=="string"&&Gn)Pn=Dt.createElement("img",{src:Ai,draggable:At,srcSet:hi,onError:Ni,alt:Pt,crossOrigin:Xt});else if(Qn)Pn=Ai;else if(qt)Pn=qt;else if(Ye||Vn!==1){const Ci=`scale(${Vn}) translateX(-50%)`,yi={msTransform:Ci,WebkitTransform:Ci,transform:Ci},Oi=typeof We=="number"?{lineHeight:`${We}px`}:{};Pn=Dt.createElement($t.Z,{onResize:On},Dt.createElement("span",{className:`${Yn}-string`,ref:rn,style:Object.assign(Object.assign({},Oi),yi)},wt))}else Pn=Dt.createElement("span",{className:`${Yn}-string`,style:{opacity:0},ref:rn},wt);return delete Re.onError,delete Re.gap,Fe(Dt.createElement("span",Object.assign({},Re,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Qe),Un),ze==null?void 0:ze.style),Re.style),className:Vi,ref:ti}),Pn))};var be=Dt.forwardRef(Ze),Rt=mt(37419),zt=mt(55241),Qt=mt(96159);const te=an=>{const{size:nn,shape:Vn}=Dt.useContext(Ut),Ne=Dt.useMemo(()=>({size:an.size||nn,shape:an.shape||Vn}),[an.size,an.shape,nn,Vn]);return Dt.createElement(Ut.Provider,{value:Ne},an.children)};var He=an=>{const{getPrefixCls:nn,direction:Vn}=Dt.useContext(Wt.E_),{prefixCls:Ne,className:Ye,rootClassName:zn,style:Gn,maxCount:Me,maxStyle:_t,size:rn,shape:ti,maxPopoverPlacement:vn="top",maxPopoverTrigger:ze="hover",children:on}=an,On=nn("avatar",Ne),Ni=`${On}-group`,[gi,Dn]=he(On),Jn=Ft()(Ni,{[`${Ni}-rtl`]:Vn==="rtl"},Ye,zn,Dn),Ai=(0,Rt.Z)(on).map((qt,kt)=>(0,Qt.Tm)(qt,{key:`avatar-key-${kt}`})),hi=Ai.length;if(Me&&Me<hi){const qt=Ai.slice(0,Me),kt=Ai.slice(Me,hi);return qt.push(Dt.createElement(zt.Z,{key:"avatar-popover-key",content:kt,trigger:ze,placement:vn,overlayClassName:`${Ni}-popover`},Dt.createElement(be,{style:_t},`+${hi-Me}`))),gi(Dt.createElement(te,{shape:ti,size:rn},Dt.createElement("div",{className:Jn,style:Gn},qt)))}return gi(Dt.createElement(te,{shape:ti,size:rn},Dt.createElement("div",{className:Jn,style:Gn},Ai)))};const en=be;en.Group=He;var ie=en},84567:function(jn,tn,mt){"use strict";mt.d(tn,{default:function(){return Qt}});var ft=mt(94184),Ft=mt.n(ft),$t=mt(95860),ne=mt(67294),Dt=mt(53124),Ht=mt(98866),Wt=mt(65223),Nt=ne.createContext(null),Ut=mt(63185),De=mt(45353),Yt=mt(92429),de=function(te,Ie){var He={};for(var en in te)Object.prototype.hasOwnProperty.call(te,en)&&Ie.indexOf(en)<0&&(He[en]=te[en]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,en=Object.getOwnPropertySymbols(te);ie<en.length;ie++)Ie.indexOf(en[ie])<0&&Object.prototype.propertyIsEnumerable.call(te,en[ie])&&(He[en[ie]]=te[en[ie]]);return He};const we=(te,Ie)=>{var He;const{prefixCls:en,className:ie,rootClassName:an,children:nn,indeterminate:Vn=!1,style:Ne,onMouseEnter:Ye,onMouseLeave:zn,skipGroup:Gn=!1,disabled:Me}=te,_t=de(te,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:rn,direction:ti,checkbox:vn}=ne.useContext(Dt.E_),ze=ne.useContext(Nt),{isFormItemInput:on}=ne.useContext(Wt.aM),On=ne.useContext(Ht.Z),Ni=(He=(ze==null?void 0:ze.disabled)||Me)!==null&&He!==void 0?He:On,gi=ne.useRef(_t.value);ne.useEffect(()=>{ze==null||ze.registerValue(_t.value)},[]),ne.useEffect(()=>{if(!Gn)return _t.value!==gi.current&&(ze==null||ze.cancelValue(gi.current),ze==null||ze.registerValue(_t.value),gi.current=_t.value),()=>ze==null?void 0:ze.cancelValue(_t.value)},[_t.value]);const Dn=rn("checkbox",en),[Jn,Ai]=(0,Ut.ZP)(Dn),hi=Object.assign({},_t);ze&&!Gn&&(hi.onChange=function(){_t.onChange&&_t.onChange.apply(_t,arguments),ze.toggleOption&&ze.toggleOption({label:nn,value:_t.value})},hi.name=ze.name,hi.checked=ze.value.includes(_t.value));const qt=Ft()(`${Dn}-wrapper`,{[`${Dn}-rtl`]:ti==="rtl",[`${Dn}-wrapper-checked`]:hi.checked,[`${Dn}-wrapper-disabled`]:Ni,[`${Dn}-wrapper-in-form-item`]:on},vn==null?void 0:vn.className,ie,an,Ai),kt=Ft()({[`${Dn}-indeterminate`]:Vn},Yt.A,Ai),Ct=Vn?"mixed":void 0;return Jn(ne.createElement(De.Z,{component:"Checkbox",disabled:Ni},ne.createElement("label",{className:qt,style:Object.assign(Object.assign({},vn==null?void 0:vn.style),Ne),onMouseEnter:Ye,onMouseLeave:zn},ne.createElement($t.Z,Object.assign({"aria-checked":Ct},hi,{prefixCls:Dn,className:kt,disabled:Ni,ref:Ie})),nn!==void 0&&ne.createElement("span",null,nn))))};var he=ne.forwardRef(we),It=mt(74902),ye=mt(10366),Ze=function(te,Ie){var He={};for(var en in te)Object.prototype.hasOwnProperty.call(te,en)&&Ie.indexOf(en)<0&&(He[en]=te[en]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,en=Object.getOwnPropertySymbols(te);ie<en.length;ie++)Ie.indexOf(en[ie])<0&&Object.prototype.propertyIsEnumerable.call(te,en[ie])&&(He[en[ie]]=te[en[ie]]);return He};const pe=(te,Ie)=>{const{defaultValue:He,children:en,options:ie=[],prefixCls:an,className:nn,rootClassName:Vn,style:Ne,onChange:Ye}=te,zn=Ze(te,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Gn,direction:Me}=ne.useContext(Dt.E_),[_t,rn]=ne.useState(zn.value||He||[]),[ti,vn]=ne.useState([]);ne.useEffect(()=>{"value"in zn&&rn(zn.value||[])},[zn.value]);const ze=ne.useMemo(()=>ie.map(Pt=>typeof Pt=="string"||typeof Pt=="number"?{label:Pt,value:Pt}:Pt),[ie]),on=Pt=>{vn(At=>At.filter(wt=>wt!==Pt))},On=Pt=>{vn(At=>[].concat((0,It.Z)(At),[Pt]))},Ni=Pt=>{const At=_t.indexOf(Pt.value),wt=(0,It.Z)(_t);At===-1?wt.push(Pt.value):wt.splice(At,1),"value"in zn||rn(wt),Ye==null||Ye(wt.filter(Xt=>ti.includes(Xt)).sort((Xt,Re)=>{const We=ze.findIndex(Hn=>Hn.value===Xt),In=ze.findIndex(Hn=>Hn.value===Re);return We-In}))},gi=Gn("checkbox",an),Dn=`${gi}-group`,[Jn,Ai]=(0,Ut.ZP)(gi),hi=(0,ye.Z)(zn,["value","disabled"]),qt=ie.length?ze.map(Pt=>ne.createElement(he,{prefixCls:gi,key:Pt.value.toString(),disabled:"disabled"in Pt?Pt.disabled:zn.disabled,value:Pt.value,checked:_t.includes(Pt.value),onChange:Pt.onChange,className:`${Dn}-item`,style:Pt.style,title:Pt.title},Pt.label)):en,kt={toggleOption:Ni,value:_t,disabled:zn.disabled,name:zn.name,registerValue:On,cancelValue:on},Ct=Ft()(Dn,{[`${Dn}-rtl`]:Me==="rtl"},nn,Vn,Ai);return Jn(ne.createElement("div",Object.assign({className:Ct,style:Ne},hi,{ref:Ie}),ne.createElement(Nt.Provider,{value:kt},qt)))},be=ne.forwardRef(pe);var Rt=ne.memo(be);const zt=he;zt.Group=Rt,zt.__ANT_CHECKBOX=!0;var Qt=zt},63185:function(jn,tn,mt){"use strict";mt.d(tn,{C2:function(){return Dt}});var ft=mt(14747),Ft=mt(45503),$t=mt(67968);const ne=Ht=>{const{checkboxCls:Wt}=Ht,jt=`${Wt}-wrapper`;return[{[`${Wt}-group`]:Object.assign(Object.assign({},(0,ft.Wf)(Ht)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ht.marginXS,[`> ${Ht.antCls}-row`]:{flex:1}}),[jt]:Object.assign(Object.assign({},(0,ft.Wf)(Ht)),{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}}}),[Wt]:Object.assign(Object.assign({},(0,ft.Wf)(Ht)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ht.borderRadiusSM,alignSelf:"center",[`${Wt}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Wt}-inner`]:Object.assign({},(0,ft.oN)(Ht))},[`${Wt}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Ht.checkboxSize,height:Ht.checkboxSize,direction:"ltr",backgroundColor:Ht.colorBgContainer,border:`${Ht.lineWidth}px ${Ht.lineType} ${Ht.colorBorder}`,borderRadius:Ht.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ht.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Ht.checkboxSize/14*5,height:Ht.checkboxSize/14*8,border:`${Ht.lineWidthBold}px solid ${Ht.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ht.motionDurationFast} ${Ht.motionEaseInBack}, opacity ${Ht.motionDurationFast}`}},"& + span":{paddingInlineStart:Ht.paddingXS,paddingInlineEnd:Ht.paddingXS}})},{[`
|
|
|
${jt}:not(${jt}-disabled),
|
|
|
${Wt}:not(${Wt}-disabled)
|
|
|
`]:{[`&:hover ${Wt}-inner`]:{borderColor:Ht.colorPrimary}},[`${jt}:not(${jt}-disabled)`]:{[`&:hover ${Wt}-checked:not(${Wt}-disabled) ${Wt}-inner`]:{backgroundColor:Ht.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Wt}-checked:not(${Wt}-disabled):after`]:{borderColor:Ht.colorPrimaryHover}}},{[`${Wt}-checked`]:{[`${Wt}-inner`]:{backgroundColor:Ht.colorPrimary,borderColor:Ht.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ht.motionDurationMid} ${Ht.motionEaseOutBack} ${Ht.motionDurationFast}`}}},[`
|
|
|
${jt}-checked:not(${jt}-disabled),
|
|
|
${Wt}-checked:not(${Wt}-disabled)
|
|
|
`]:{[`&:hover ${Wt}-inner`]:{backgroundColor:Ht.colorPrimaryHover,borderColor:"transparent"}}},{[Wt]:{"&-indeterminate":{[`${Wt}-inner`]:{backgroundColor:Ht.colorBgContainer,borderColor:Ht.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Ht.fontSizeLG/2,height:Ht.fontSizeLG/2,backgroundColor:Ht.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${jt}-disabled`]:{cursor:"not-allowed"},[`${Wt}-disabled`]:{[`&, ${Wt}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Wt}-inner`]:{background:Ht.colorBgContainerDisabled,borderColor:Ht.colorBorder,"&:after":{borderColor:Ht.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ht.colorTextDisabled},[`&${Wt}-indeterminate ${Wt}-inner::after`]:{background:Ht.colorTextDisabled}}}]};function Dt(Ht,Wt){const jt=(0,Ft.TS)(Wt,{checkboxCls:`.${Ht}`,checkboxSize:Wt.controlInteractiveSize});return[ne(jt)]}tn.ZP=(0,$t.Z)("Checkbox",(Ht,Wt)=>{let{prefixCls:jt}=Wt;return[Dt(jt,Ht)]})},88258:function(jn,tn,mt){"use strict";var ft=mt(67294),Ft=mt(53124),$t=mt(32983);const ne=Dt=>{const{componentName:Ht}=Dt,{getPrefixCls:Wt}=(0,ft.useContext)(Ft.E_),jt=Wt("empty");switch(Ht){case"Table":case"List":return ft.createElement($t.Z,{image:$t.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ft.createElement($t.Z,{image:$t.Z.PRESENTED_IMAGE_SIMPLE,className:`${jt}-small`});default:return ft.createElement($t.Z,null)}};tn.Z=ne},72565:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return oi}});var ft=mt(94184),Ft=mt.n(ft),$t=mt(1413),ne=mt(97685),Dt=mt(67294),Ht=mt(73935);function Wt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var jt={};function Nt(kn,Ce){}function Ut(kn,Ce){}function De(){jt={}}function Yt(kn,Ce,si){!Ce&&!jt[si]&&(kn(!1,si),jt[si]=!0)}function de(kn,Ce){Yt(Nt,kn,Ce)}function we(kn,Ce){Yt(Ut,kn,Ce)}var ue=null,he=mt(71002),It=mt(18459);function ye(kn,Ce,si){var Wi=Dt.useRef({});return(!("value"in Wi.current)||si(Wi.current.condition,Ce))&&(Wi.current.value=kn(),Wi.current.condition=Ce),Wi.current.value}function Ze(kn,Ce){typeof kn=="function"?kn(Ce):(0,he.Z)(kn)==="object"&&kn&&"current"in kn&&(kn.current=Ce)}function pe(){for(var kn=arguments.length,Ce=new Array(kn),si=0;si<kn;si++)Ce[si]=arguments[si];var Wi=Ce.filter(function(Gi){return Gi});return Wi.length<=1?Wi[0]:function(Gi){Ce.forEach(function(Tr){Ze(Tr,Gi)})}}function be(){for(var kn=arguments.length,Ce=new Array(kn),si=0;si<kn;si++)Ce[si]=arguments[si];return ye(function(){return pe.apply(void 0,Ce)},Ce,function(Wi,Gi){return Wi.length===Gi.length&&Wi.every(function(Tr,Lr){return Tr===Gi[Lr]})})}function Rt(kn){var Ce,si,Wi=(0,It.isMemo)(kn)?kn.type.type:kn.type;return!(typeof Wi=="function"&&!((Ce=Wi.prototype)!==null&&Ce!==void 0&&Ce.render)||typeof kn=="function"&&!((si=kn.prototype)!==null&&si!==void 0&&si.render))}var zt=Dt.createContext(null),Qt=zt,te=mt(74902),Ie=Wt()?Dt.useLayoutEffect:Dt.useEffect,He=Ie,en=function(Ce,si){var Wi=React.useRef(!0);Ie(function(){if(!Wi.current)return Ce()},si),Ie(function(){return Wi.current=!1,function(){Wi.current=!0}},[])},ie=[];function an(kn,Ce){var si=Dt.useState(function(){if(!Wt())return null;var wi=document.createElement("div");return wi}),Wi=(0,ne.Z)(si,1),Gi=Wi[0],Tr=Dt.useRef(!1),Lr=Dt.useContext(Qt),Cr=Dt.useState(ie),jr=(0,ne.Z)(Cr,2),Jr=jr[0],Wr=jr[1],or=Lr||(Tr.current?void 0:function(wi){Wr(function(Fi){var Tt=[wi].concat((0,te.Z)(Fi));return Tt})});function Gt(){Gi.parentElement||document.body.appendChild(Gi),Tr.current=!0}function Zn(){var wi;(wi=Gi.parentElement)===null||wi===void 0||wi.removeChild(Gi),Tr.current=!1}return He(function(){return kn?Lr?Lr(Gt):Gt():Zn(),Zn},[kn]),He(function(){Jr.length&&(Jr.forEach(function(wi){return wi()}),Wr(ie))},[Jr]),[Gi,or]}function nn(kn,Ce){if(!kn)return!1;if(kn.contains)return kn.contains(Ce);for(var si=Ce;si;){if(si===kn)return!0;si=si.parentNode}return!1}var Vn="data-rc-order",Ne="rc-util-key",Ye=new Map;function zn(){var kn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ce=kn.mark;return Ce?Ce.startsWith("data-")?Ce:"data-".concat(Ce):Ne}function Gn(kn){if(kn.attachTo)return kn.attachTo;var Ce=document.querySelector("head");return Ce||document.body}function Me(kn){return kn==="queue"?"prependQueue":kn?"prepend":"append"}function _t(kn){return Array.from((Ye.get(kn)||kn).children).filter(function(Ce){return Ce.tagName==="STYLE"})}function rn(kn){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Wt())return null;var si=Ce.csp,Wi=Ce.prepend,Gi=document.createElement("style");Gi.setAttribute(Vn,Me(Wi)),si!=null&&si.nonce&&(Gi.nonce=si==null?void 0:si.nonce),Gi.innerHTML=kn;var Tr=Gn(Ce),Lr=Tr.firstChild;if(Wi){if(Wi==="queue"){var Cr=_t(Tr).filter(function(jr){return["prepend","prependQueue"].includes(jr.getAttribute(Vn))});if(Cr.length)return Tr.insertBefore(Gi,Cr[Cr.length-1].nextSibling),Gi}Tr.insertBefore(Gi,Lr)}else Tr.appendChild(Gi);return Gi}function ti(kn){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},si=Gn(Ce);return _t(si).find(function(Wi){return Wi.getAttribute(zn(Ce))===kn})}function vn(kn){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},si=ti(kn,Ce);if(si){var Wi=Gn(Ce);Wi.removeChild(si)}}function ze(kn,Ce){var si=Ye.get(kn);if(!si||!nn(document,si)){var Wi=rn("",Ce),Gi=Wi.parentNode;Ye.set(kn,Gi),kn.removeChild(Wi)}}function on(){Ye.clear()}function On(kn,Ce){var si=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Wi=Gn(si);ze(Wi,si);var Gi=ti(Ce,si);if(Gi){var Tr,Lr;if((Tr=si.csp)!==null&&Tr!==void 0&&Tr.nonce&&Gi.nonce!==((Lr=si.csp)===null||Lr===void 0?void 0:Lr.nonce)){var Cr;Gi.nonce=(Cr=si.csp)===null||Cr===void 0?void 0:Cr.nonce}return Gi.innerHTML!==kn&&(Gi.innerHTML=kn),Gi}var jr=rn(kn,si);return jr.setAttribute(zn(si),Ce),jr}var Ni;function gi(kn){if(typeof document=="undefined")return 0;if(kn||Ni===void 0){var Ce=document.createElement("div");Ce.style.width="100%",Ce.style.height="200px";var si=document.createElement("div"),Wi=si.style;Wi.position="absolute",Wi.top="0",Wi.left="0",Wi.pointerEvents="none",Wi.visibility="hidden",Wi.width="200px",Wi.height="150px",Wi.overflow="hidden",si.appendChild(Ce),document.body.appendChild(si);var Gi=Ce.offsetWidth;si.style.overflow="scroll";var Tr=Ce.offsetWidth;Gi===Tr&&(Tr=si.clientWidth),document.body.removeChild(si),Ni=Gi-Tr}return Ni}function Dn(kn){var Ce=kn.match(/^(.*)px$/),si=Number(Ce==null?void 0:Ce[1]);return Number.isNaN(si)?gi():si}function Jn(kn){if(typeof document=="undefined"||!kn||!(kn instanceof Element))return{width:0,height:0};var Ce=getComputedStyle(kn,"::-webkit-scrollbar"),si=Ce.width,Wi=Ce.height;return{width:Dn(si),height:Dn(Wi)}}function Ai(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var hi="rc-util-locker-".concat(Date.now()),qt=0;function kt(kn){var Ce=!!kn,si=Dt.useState(function(){return qt+=1,"".concat(hi,"_").concat(qt)}),Wi=(0,ne.Z)(si,1),Gi=Wi[0];He(function(){if(Ce){var Tr=Jn(document.body).width,Lr=Ai();On(`
|
|
|
html body {
|
|
|
overflow-y: hidden;
|
|
|
`.concat(Lr?"width: calc(100% - ".concat(Tr,"px);"):"",`
|
|
|
}`),Gi)}else vn(Gi);return function(){vn(Gi)}},[Ce,Gi])}var Ct=!1;function Pt(kn){return typeof kn=="boolean"&&(Ct=kn),Ct}var At=function(Ce){return Ce===!1?!1:!Wt()||!Ce?null:typeof Ce=="string"?document.querySelector(Ce):typeof Ce=="function"?Ce():Ce},wt=Dt.forwardRef(function(kn,Ce){var si=kn.open,Wi=kn.autoLock,Gi=kn.getContainer,Tr=kn.debug,Lr=kn.autoDestroy,Cr=Lr===void 0?!0:Lr,jr=kn.children,Jr=Dt.useState(si),Wr=(0,ne.Z)(Jr,2),or=Wr[0],Gt=Wr[1],Zn=or||si;Dt.useEffect(function(){(Cr||si)&&Gt(si)},[si,Cr]);var wi=Dt.useState(function(){return At(Gi)}),Fi=(0,ne.Z)(wi,2),Tt=Fi[0],ee=Fi[1];Dt.useEffect(function(){var pi=At(Gi);ee(pi!=null?pi:null)});var le=an(Zn&&!Tt,Tr),xe=(0,ne.Z)(le,2),fe=xe[0],Ee=xe[1],Ae=Tt!=null?Tt:fe;kt(Wi&&si&&Wt()&&(Ae===fe||Ae===document.body));var yn=null;if(jr&&Rt(jr)&&Ce){var Rn=jr;yn=Rn.ref}var Pi=be(yn,Ce);if(!Zn||!Wt()||Tt===void 0)return null;var An=Ae===!1||Pt(),Mi=jr;return Ce&&(Mi=Dt.cloneElement(jr,{ref:Pi})),Dt.createElement(Qt.Provider,{value:Ee},An?Mi:(0,Ht.createPortal)(Mi,Ae))}),Xt=wt,Re=Xt;function We(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var In=We()?Dt.useLayoutEffect:Dt.useEffect,Hn=function(Ce,si){var Wi=Dt.useRef(!0);In(function(){return Ce(Wi.current)},si),In(function(){return Wi.current=!1,function(){Wi.current=!0}},[])},Un=function(Ce,si){Hn(function(Wi){if(!Wi)return Ce()},si)},Yn=Hn,Fe=Dt.createContext(null),bn=Dt.createContext({}),En=Fe,Qn=mt(4942),Sn=mt(87462),Vi=mt(62874),Qe={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Ce){var si=Ce.keyCode;if(Ce.altKey&&!Ce.ctrlKey||Ce.metaKey||si>=Qe.F1&&si<=Qe.F12)return!1;switch(si){case Qe.ALT:case Qe.CAPS_LOCK:case Qe.CONTEXT_MENU:case Qe.CTRL:case Qe.DOWN:case Qe.END:case Qe.ESC:case Qe.HOME:case Qe.INSERT:case Qe.LEFT:case Qe.MAC_FF_META:case Qe.META:case Qe.NUMLOCK:case Qe.NUM_CENTER:case Qe.PAGE_DOWN:case Qe.PAGE_UP:case Qe.PAUSE:case Qe.PRINT_SCREEN:case Qe.RIGHT:case Qe.SHIFT:case Qe.UP:case Qe.WIN_KEY:case Qe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ce){if(Ce>=Qe.ZERO&&Ce<=Qe.NINE||Ce>=Qe.NUM_ZERO&&Ce<=Qe.NUM_MULTIPLY||Ce>=Qe.A&&Ce<=Qe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ce===0)return!0;switch(Ce){case Qe.SPACE:case Qe.QUESTION_MARK:case Qe.NUM_PLUS:case Qe.NUM_MINUS:case Qe.NUM_PERIOD:case Qe.NUM_DIVISION:case Qe.SEMICOLON:case Qe.DASH:case Qe.EQUALS:case Qe.COMMA:case Qe.PERIOD:case Qe.SLASH:case Qe.APOSTROPHE:case Qe.SINGLE_QUOTE:case Qe.OPEN_SQUARE_BRACKET:case Qe.BACKSLASH:case Qe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Pn=Qe,Ci=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,yi=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Oi="".concat(Ci," ").concat(yi).split(/[\s\n]+/),ar="aria-",br="data-";function wr(kn,Ce){return kn.indexOf(Ce)===0}function cr(kn){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,si;Ce===!1?si={aria:!0,data:!0,attr:!0}:Ce===!0?si={aria:!0}:si=(0,$t.Z)({},Ce);var Wi={};return Object.keys(kn).forEach(function(Gi){(si.aria&&(Gi==="role"||wr(Gi,ar))||si.data&&wr(Gi,br)||si.attr&&Oi.includes(Gi))&&(Wi[Gi]=kn[Gi])}),Wi}function Ar(kn){var Ce=React.useRef();Ce.current=kn;var si=React.useCallback(function(){for(var Wi,Gi=arguments.length,Tr=new Array(Gi),Lr=0;Lr<Gi;Lr++)Tr[Lr]=arguments[Lr];return(Wi=Ce.current)===null||Wi===void 0?void 0:Wi.call.apply(Wi,[Ce].concat(Tr))},[]);return si}function ir(kn){var Ce=React.useRef(!1),si=React.useState(kn),Wi=_slicedToArray(si,2),Gi=Wi[0],Tr=Wi[1];React.useEffect(function(){return Ce.current=!1,function(){Ce.current=!0}},[]);function Lr(Cr,jr){jr&&Ce.current||Tr(Cr)}return[Gi,Lr]}function kr(kn){return kn!==void 0}function po(kn,Ce){var si=Ce||{},Wi=si.defaultValue,Gi=si.value,Tr=si.onChange,Lr=si.postState,Cr=useState(function(){return kr(Gi)?Gi:kr(Wi)?typeof Wi=="function"?Wi():Wi:typeof kn=="function"?kn():kn}),jr=_slicedToArray(Cr,2),Jr=jr[0],Wr=jr[1],or=Gi!==void 0?Gi:Jr,Gt=Lr?Lr(or):or,Zn=useEvent(Tr),wi=useState([or]),Fi=_slicedToArray(wi,2),Tt=Fi[0],ee=Fi[1];useLayoutUpdateEffect(function(){var xe=Tt[0];Jr!==xe&&Zn(Jr,xe)},[Tt]),useLayoutUpdateEffect(function(){kr(Gi)||Wr(Gi)},[Gi]);var le=useEvent(function(xe,fe){Wr(xe,fe),ee([or],fe)});return[Gt,le]}var So=mt(33993);function Eo(kn,Ce,si){var Wi=Dt.useRef({});return(!("value"in Wi.current)||si(Wi.current.condition,Ce))&&(Wi.current.value=kn(),Wi.current.condition=Ce),Wi.current.value}function Yr(kn,Ce){typeof kn=="function"?kn(Ce):(0,he.Z)(kn)==="object"&&kn&&"current"in kn&&(kn.current=Ce)}function Mn(){for(var kn=arguments.length,Ce=new Array(kn),si=0;si<kn;si++)Ce[si]=arguments[si];var Wi=Ce.filter(function(Gi){return Gi});return Wi.length<=1?Wi[0]:function(Gi){Ce.forEach(function(Tr){Yr(Tr,Gi)})}}function St(){for(var kn=arguments.length,Ce=new Array(kn),si=0;si<kn;si++)Ce[si]=arguments[si];return Eo(function(){return Mn.apply(void 0,Ce)},Ce,function(Wi,Gi){return Wi.length!==Gi.length||Wi.every(function(Tr,Lr){return Tr!==Gi[Lr]})})}function Zi(kn){var Ce,si,Wi=isMemo(kn)?kn.type.type:kn.type;return!(typeof Wi=="function"&&!((Ce=Wi.prototype)!==null&&Ce!==void 0&&Ce.render)||typeof kn=="function"&&!((si=kn.prototype)!==null&&si!==void 0&&si.render))}function mi(kn){return!isValidElement(kn)||isFragment(kn)?!1:Zi(kn)}function rr(kn,Ce,si,Wi){if(!Ce.length)return si;var Gi=_toArray(Ce),Tr=Gi[0],Lr=Gi.slice(1),Cr;return!kn&&typeof Tr=="number"?Cr=[]:Array.isArray(kn)?Cr=_toConsumableArray(kn):Cr=_objectSpread({},kn),Wi&&si===void 0&&Lr.length===1?delete Cr[Tr][Lr[0]]:Cr[Tr]=rr(Cr[Tr],Lr,si,Wi),Cr}function fr(kn,Ce,si){var Wi=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Ce.length&&Wi&&si===void 0&&!get(kn,Ce.slice(0,-1))?kn:rr(kn,Ce,si,Wi)}function pr(kn){return _typeof(kn)==="object"&&kn!==null&&Object.getPrototypeOf(kn)===Object.prototype}function tr(kn){return Array.isArray(kn)?[]:{}}var Xe=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function mn(){for(var kn=arguments.length,Ce=new Array(kn),si=0;si<kn;si++)Ce[si]=arguments[si];var Wi=tr(Ce[0]);return Ce.forEach(function(Gi){function Tr(Lr,Cr){var jr=new Set(Cr),Jr=get(Gi,Lr),Wr=Array.isArray(Jr);if(Wr||pr(Jr)){if(!jr.has(Jr)){jr.add(Jr);var or=get(Wi,Lr);Wr?Wi=fr(Wi,Lr,[]):(!or||_typeof(or)!=="object")&&(Wi=fr(Wi,Lr,tr(Jr))),Xe(Jr).forEach(function(Gt){Tr([].concat(_toConsumableArray(Lr),[Gt]),jr)})}}else Wi=fr(Wi,Lr,Jr)}Tr([])}),Wi}var Tn={},Nn=[],ge=function(Ce){Nn.push(Ce)};function Cn(kn,Ce){if(0)var si}function ai(kn,Ce){if(0)var si}function Te(){Tn={}}function ce(kn,Ce,si){!Ce&&!Tn[si]&&(kn(!1,si),Tn[si]=!0)}function Oe(kn,Ce){ce(Cn,kn,Ce)}function pn(kn,Ce){ce(ai,kn,Ce)}Oe.preMessage=ge,Oe.resetWarned=Te,Oe.noteOnce=pn;var fi=Oe,$n=function(Ce){var si=Ce.prefixCls,Wi=Ce.className,Gi=Ce.style,Tr=Ce.children,Lr=Ce.containerRef,Cr=Ce.id,jr=Ce.onMouseEnter,Jr=Ce.onMouseOver,Wr=Ce.onMouseLeave,or=Ce.onClick,Gt=Ce.onKeyDown,Zn=Ce.onKeyUp,wi={onMouseEnter:jr,onMouseOver:Jr,onMouseLeave:Wr,onClick:or,onKeyDown:Gt,onKeyUp:Zn},Fi=Dt.useContext(bn),Tt=Fi.panel,ee=St(Tt,Lr);return Dt.createElement(Dt.Fragment,null,Dt.createElement("div",(0,Sn.Z)({id:Cr,className:Ft()("".concat(si,"-content"),Wi),style:(0,$t.Z)({},Gi),"aria-modal":"true",role:"dialog",ref:ee},wi),Tr))},_e=$n;function ri(kn){return typeof kn=="string"&&String(Number(kn))===kn?(fi(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(kn)):kn}function Ri(kn){warning(!("wrapperClassName"in kn),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!kn.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var $e={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ge(kn,Ce){var si,Wi,Gi,Tr,Lr=kn.prefixCls,Cr=kn.open,jr=kn.placement,Jr=kn.inline,Wr=kn.push,or=kn.forceRender,Gt=kn.autoFocus,Zn=kn.keyboard,wi=kn.rootClassName,Fi=kn.rootStyle,Tt=kn.zIndex,ee=kn.className,le=kn.id,xe=kn.style,fe=kn.motion,Ee=kn.width,Ae=kn.height,yn=kn.children,Rn=kn.contentWrapperStyle,Pi=kn.mask,An=kn.maskClosable,Mi=kn.maskMotion,pi=kn.maskClassName,di=kn.maskStyle,Wn=kn.afterOpenChange,Bi=kn.onClose,sr=kn.onMouseEnter,_i=kn.onMouseOver,Ui=kn.onMouseLeave,qi=kn.onClick,lr=kn.onKeyDown,je=kn.onKeyUp,ve=Dt.useRef(),ke=Dt.useRef(),xn=Dt.useRef();Dt.useImperativeHandle(Ce,function(){return ve.current});var cn=function(gn){var Ji=gn.keyCode,er=gn.shiftKey;switch(Ji){case Pn.TAB:{if(Ji===Pn.TAB){if(!er&&document.activeElement===xn.current){var Qi;(Qi=ke.current)===null||Qi===void 0||Qi.focus({preventScroll:!0})}else if(er&&document.activeElement===ke.current){var Ir;(Ir=xn.current)===null||Ir===void 0||Ir.focus({preventScroll:!0})}}break}case Pn.ESC:{Bi&&Zn&&(gn.stopPropagation(),Bi(gn));break}}};Dt.useEffect(function(){if(Cr&&Gt){var Ei;(Ei=ve.current)===null||Ei===void 0||Ei.focus({preventScroll:!0})}},[Cr]);var ni=Dt.useState(!1),Ti=(0,ne.Z)(ni,2),qe=Ti[0],Je=Ti[1],sn=Dt.useContext(En),hn;Wr===!1?hn={distance:0}:Wr===!0?hn={}:hn=Wr||{};var bi=(si=(Wi=(Gi=hn)===null||Gi===void 0?void 0:Gi.distance)!==null&&Wi!==void 0?Wi:sn==null?void 0:sn.pushDistance)!==null&&si!==void 0?si:180,zi=Dt.useMemo(function(){return{pushDistance:bi,push:function(){Je(!0)},pull:function(){Je(!1)}}},[bi]);Dt.useEffect(function(){if(Cr){var Ei;sn==null||(Ei=sn.push)===null||Ei===void 0||Ei.call(sn)}else{var gn;sn==null||(gn=sn.pull)===null||gn===void 0||gn.call(sn)}},[Cr]),Dt.useEffect(function(){return function(){var Ei;sn==null||(Ei=sn.pull)===null||Ei===void 0||Ei.call(sn)}},[]);var li=Pi&&Dt.createElement(Vi.Z,(0,Sn.Z)({key:"mask"},Mi,{visible:Cr}),function(Ei,gn){var Ji=Ei.className,er=Ei.style;return Dt.createElement("div",{className:Ft()("".concat(Lr,"-mask"),Ji,pi),style:(0,$t.Z)((0,$t.Z)({},er),di),onClick:An&&Cr?Bi:void 0,ref:gn})}),Kn=typeof fe=="function"?fe(jr):fe,ur={};if(qe&&bi)switch(jr){case"top":ur.transform="translateY(".concat(bi,"px)");break;case"bottom":ur.transform="translateY(".concat(-bi,"px)");break;case"left":ur.transform="translateX(".concat(bi,"px)");break;default:ur.transform="translateX(".concat(-bi,"px)");break}jr==="left"||jr==="right"?ur.width=ri(Ee):ur.height=ri(Ae);var Ln={onMouseEnter:sr,onMouseOver:_i,onMouseLeave:Ui,onClick:qi,onKeyDown:lr,onKeyUp:je},wn=Dt.createElement(Vi.Z,(0,Sn.Z)({key:"panel"},Kn,{visible:Cr,forceRender:or,onVisibleChanged:function(gn){Wn==null||Wn(gn)},removeOnLeave:!1,leavedClassName:"".concat(Lr,"-content-wrapper-hidden")}),function(Ei,gn){var Ji=Ei.className,er=Ei.style;return Dt.createElement("div",(0,Sn.Z)({className:Ft()("".concat(Lr,"-content-wrapper"),Ji),style:(0,$t.Z)((0,$t.Z)((0,$t.Z)({},ur),er),Rn)},cr(kn,{data:!0})),Dt.createElement(_e,(0,Sn.Z)({id:le,containerRef:gn,prefixCls:Lr,className:ee,style:xe},Ln),yn))}),_n=(0,$t.Z)({},Fi);return Tt&&(_n.zIndex=Tt),Dt.createElement(En.Provider,{value:zi},Dt.createElement("div",{className:Ft()(Lr,"".concat(Lr,"-").concat(jr),wi,(Tr={},(0,Qn.Z)(Tr,"".concat(Lr,"-open"),Cr),(0,Qn.Z)(Tr,"".concat(Lr,"-inline"),Jr),Tr)),style:_n,tabIndex:-1,ref:ve,onKeyDown:cn},li,Dt.createElement("div",{tabIndex:0,ref:ke,style:$e,"aria-hidden":"true","data-sentinel":"start"}),wn,Dt.createElement("div",{tabIndex:0,ref:xn,style:$e,"aria-hidden":"true","data-sentinel":"end"})))}var un=Dt.forwardRef(Ge),xi=un,Yi=function(Ce){var si=Ce.open,Wi=si===void 0?!1:si,Gi=Ce.prefixCls,Tr=Gi===void 0?"rc-drawer":Gi,Lr=Ce.placement,Cr=Lr===void 0?"right":Lr,jr=Ce.autoFocus,Jr=jr===void 0?!0:jr,Wr=Ce.keyboard,or=Wr===void 0?!0:Wr,Gt=Ce.width,Zn=Gt===void 0?378:Gt,wi=Ce.mask,Fi=wi===void 0?!0:wi,Tt=Ce.maskClosable,ee=Tt===void 0?!0:Tt,le=Ce.getContainer,xe=Ce.forceRender,fe=Ce.afterOpenChange,Ee=Ce.destroyOnClose,Ae=Ce.onMouseEnter,yn=Ce.onMouseOver,Rn=Ce.onMouseLeave,Pi=Ce.onClick,An=Ce.onKeyDown,Mi=Ce.onKeyUp,pi=Ce.panelRef,di=Dt.useState(!1),Wn=(0,ne.Z)(di,2),Bi=Wn[0],sr=Wn[1],_i=Dt.useState(!1),Ui=(0,ne.Z)(_i,2),qi=Ui[0],lr=Ui[1];Yn(function(){lr(!0)},[]);var je=qi?Wi:!1,ve=Dt.useRef(),ke=Dt.useRef();Yn(function(){je&&(ke.current=document.activeElement)},[je]);var xn=function(Je){var sn;if(sr(Je),fe==null||fe(Je),!Je&&ke.current&&!((sn=ve.current)!==null&&sn!==void 0&&sn.contains(ke.current))){var hn;(hn=ke.current)===null||hn===void 0||hn.focus({preventScroll:!0})}},cn=Dt.useMemo(function(){return{panel:pi}},[pi]);if(!xe&&!Bi&&!je&&Ee)return null;var ni={onMouseEnter:Ae,onMouseOver:yn,onMouseLeave:Rn,onClick:Pi,onKeyDown:An,onKeyUp:Mi},Ti=(0,$t.Z)((0,$t.Z)({},Ce),{},{open:je,prefixCls:Tr,placement:Cr,autoFocus:Jr,keyboard:or,width:Zn,mask:Fi,maskClosable:ee,inline:le===!1,afterOpenChange:xn,ref:ve},ni);return Dt.createElement(bn.Provider,{value:cn},Dt.createElement(Re,{open:je||xe||Bi,autoDestroy:!1,getContainer:le,autoLock:Fi&&(je||Bi)},Dt.createElement(xi,Ti)))},ci=Yi,Xn=ci,qn=mt(33603),Ki=mt(53124),vr=mt(65223),ki=mt(69760),Ii=kn=>{const{prefixCls:Ce,title:si,footer:Wi,extra:Gi,closeIcon:Tr,closable:Lr,onClose:Cr,headerStyle:jr,drawerStyle:Jr,bodyStyle:Wr,footerStyle:or,children:Gt}=kn,Zn=Dt.useCallback(le=>Dt.createElement("button",{type:"button",onClick:Cr,"aria-label":"Close",className:`${Ce}-close`},le),[Cr]),[wi,Fi]=(0,ki.Z)(Lr,Tr,Zn,void 0,!0),Tt=Dt.useMemo(()=>!si&&!wi?null:Dt.createElement("div",{style:jr,className:Ft()(`${Ce}-header`,{[`${Ce}-header-close-only`]:wi&&!si&&!Gi})},Dt.createElement("div",{className:`${Ce}-header-title`},Fi,si&&Dt.createElement("div",{className:`${Ce}-title`},si)),Gi&&Dt.createElement("div",{className:`${Ce}-extra`},Gi)),[wi,Fi,Gi,jr,Ce,si]),ee=Dt.useMemo(()=>{if(!Wi)return null;const le=`${Ce}-footer`;return Dt.createElement("div",{className:le,style:or},Wi)},[Wi,or,Ce]);return Dt.createElement("div",{className:`${Ce}-wrapper-body`,style:Jr},Tt,Dt.createElement("div",{className:`${Ce}-body`,style:Wr},Gt),ee)},ao=mt(4173),qr=mt(67968),Do=mt(45503),Co=kn=>{const{componentCls:Ce,motionDurationSlow:si}=kn,Wi={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${si}`}}};return{[Ce]:{[`${Ce}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${si}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Ce}-panel-motion`]:{"&-left":[Wi,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Wi,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Wi,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Wi,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const bo=kn=>{const{componentCls:Ce,zIndexPopup:si,colorBgMask:Wi,colorBgElevated:Gi,motionDurationSlow:Tr,motionDurationMid:Lr,padding:Cr,paddingLG:jr,fontSizeLG:Jr,lineHeightLG:Wr,lineWidth:or,lineType:Gt,colorSplit:Zn,marginSM:wi,colorIcon:Fi,colorIconHover:Tt,colorText:ee,fontWeightStrong:le,footerPaddingBlock:xe,footerPaddingInline:fe}=kn,Ee=`${Ce}-content-wrapper`;return{[Ce]:{position:"fixed",inset:0,zIndex:si,pointerEvents:"none","&-pure":{position:"relative",background:Gi,[`&${Ce}-left`]:{boxShadow:kn.boxShadowDrawerLeft},[`&${Ce}-right`]:{boxShadow:kn.boxShadowDrawerRight},[`&${Ce}-top`]:{boxShadow:kn.boxShadowDrawerUp},[`&${Ce}-bottom`]:{boxShadow:kn.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Ce}-mask`]:{position:"absolute",inset:0,zIndex:si,background:Wi,pointerEvents:"auto"},[Ee]:{position:"absolute",zIndex:si,maxWidth:"100vw",transition:`all ${Tr}`,"&-hidden":{display:"none"}},[`&-left > ${Ee}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:kn.boxShadowDrawerLeft},[`&-right > ${Ee}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:kn.boxShadowDrawerRight},[`&-top > ${Ee}`]:{top:0,insetInline:0,boxShadow:kn.boxShadowDrawerUp},[`&-bottom > ${Ee}`]:{bottom:0,insetInline:0,boxShadow:kn.boxShadowDrawerDown},[`${Ce}-content`]:{width:"100%",height:"100%",overflow:"auto",background:Gi,pointerEvents:"auto"},[`${Ce}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Ce}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Cr}px ${jr}px`,fontSize:Jr,lineHeight:Wr,borderBottom:`${or}px ${Gt} ${Zn}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Ce}-extra`]:{flex:"none"},[`${Ce}-close`]:{display:"inline-block",marginInlineEnd:wi,color:Fi,fontWeight:le,fontSize:Jr,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Lr}`,textRendering:"auto","&:focus, &:hover":{color:Tt,textDecoration:"none"}},[`${Ce}-title`]:{flex:1,margin:0,color:ee,fontWeight:kn.fontWeightStrong,fontSize:Jr,lineHeight:Wr},[`${Ce}-body`]:{flex:1,minWidth:0,minHeight:0,padding:jr,overflow:"auto"},[`${Ce}-footer`]:{flexShrink:0,padding:`${xe}px ${fe}px`,borderTop:`${or}px ${Gt} ${Zn}`},"&-rtl":{direction:"rtl"}}}};var Kr=(0,qr.Z)("Drawer",kn=>{const Ce=(0,Do.TS)(kn,{});return[bo(Ce),Co(Ce)]},kn=>({zIndexPopup:kn.zIndexPopupBase,footerPaddingBlock:kn.paddingXS,footerPaddingInline:kn.padding})),wo=mt(16569),Sr=function(kn,Ce){var si={};for(var Wi in kn)Object.prototype.hasOwnProperty.call(kn,Wi)&&Ce.indexOf(Wi)<0&&(si[Wi]=kn[Wi]);if(kn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gi=0,Wi=Object.getOwnPropertySymbols(kn);Gi<Wi.length;Gi++)Ce.indexOf(Wi[Gi])<0&&Object.prototype.propertyIsEnumerable.call(kn,Wi[Gi])&&(si[Wi[Gi]]=kn[Wi[Gi]]);return si};const Xr=null,Br={distance:180},yo=kn=>{var Ce;const{rootClassName:si,width:Wi,height:Gi,size:Tr="default",mask:Lr=!0,push:Cr=Br,open:jr,afterOpenChange:Jr,onClose:Wr,prefixCls:or,getContainer:Gt,style:Zn,className:wi,visible:Fi,afterVisibleChange:Tt}=kn,ee=Sr(kn,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:le,getPrefixCls:xe,direction:fe,drawer:Ee}=Dt.useContext(Ki.E_),Ae=xe("drawer",or),[yn,Rn]=Kr(Ae),Pi=Gt===void 0&&le?()=>le(document.body):Gt,An=Ft()({"no-mask":!Lr,[`${Ae}-rtl`]:fe==="rtl"},si,Rn),Mi=Dt.useMemo(()=>Wi!=null?Wi:Tr==="large"?736:378,[Wi,Tr]),pi=Dt.useMemo(()=>Gi!=null?Gi:Tr==="large"?736:378,[Gi,Tr]),di={motionName:(0,qn.m)(Ae,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Wn=sr=>({motionName:(0,qn.m)(Ae,`panel-motion-${sr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Bi=(0,wo.H)();return yn(Dt.createElement(ao.BR,null,Dt.createElement(vr.Ux,{status:!0,override:!0},Dt.createElement(Xn,Object.assign({prefixCls:Ae,onClose:Wr,maskMotion:di,motion:Wn},ee,{open:jr!=null?jr:Fi,mask:Lr,push:Cr,width:Mi,height:pi,style:Object.assign(Object.assign({},Ee==null?void 0:Ee.style),Zn),className:Ft()(Ee==null?void 0:Ee.className,wi),rootClassName:An,getContainer:Pi,afterOpenChange:Jr!=null?Jr:Tt,panelRef:Bi}),Dt.createElement(Ii,Object.assign({prefixCls:Ae},ee,{onClose:Wr}))))))},ko=kn=>{const{prefixCls:Ce,style:si,className:Wi,placement:Gi="right"}=kn,Tr=Sr(kn,["prefixCls","style","className","placement"]),{getPrefixCls:Lr}=Dt.useContext(Ki.E_),Cr=Lr("drawer",Ce),[jr,Jr]=Kr(Cr),Wr=Ft()(Cr,`${Cr}-pure`,`${Cr}-${Gi}`,Jr,Wi);return jr(Dt.createElement("div",{className:Wr,style:si},Dt.createElement(Ii,Object.assign({prefixCls:Cr},Tr))))};yo._InternalPanelDoNotUseOrYouWillBeFired=ko;var oi=yo},35874:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return At}});var ft=mt(67294),Ft=mt(91034),$t=mt(94184),ne=mt.n($t),Dt=mt(87462),Ht=mt(4942),Wt=mt(97685),jt=mt(45987),Nt=mt(62709),Ut=mt(71002),De=mt(12060);function Yt(wt,Xt,Re){var We=React.useRef({});return(!("value"in We.current)||Re(We.current.condition,Xt))&&(We.current.value=wt(),We.current.condition=Xt),We.current.value}function de(wt,Xt){typeof wt=="function"?wt(Xt):(0,Ut.Z)(wt)==="object"&&wt&&"current"in wt&&(wt.current=Xt)}function we(){for(var wt=arguments.length,Xt=new Array(wt),Re=0;Re<wt;Re++)Xt[Re]=arguments[Re];var We=Xt.filter(function(In){return In});return We.length<=1?We[0]:function(In){Xt.forEach(function(Hn){de(Hn,In)})}}function ue(){for(var wt=arguments.length,Xt=new Array(wt),Re=0;Re<wt;Re++)Xt[Re]=arguments[Re];return useMemo(function(){return we.apply(void 0,Xt)},Xt,function(We,In){return We.length===In.length&&We.every(function(Hn,Un){return Hn===In[Un]})})}function he(wt){var Xt,Re,We=(0,De.isMemo)(wt)?wt.type.type:wt.type;return!(typeof We=="function"&&!((Xt=We.prototype)!==null&&Xt!==void 0&&Xt.render)||typeof wt=="function"&&!((Re=wt.prototype)!==null&&Re!==void 0&&Re.render))}var It={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Xt){var Re=Xt.keyCode;if(Xt.altKey&&!Xt.ctrlKey||Xt.metaKey||Re>=It.F1&&Re<=It.F12)return!1;switch(Re){case It.ALT:case It.CAPS_LOCK:case It.CONTEXT_MENU:case It.CTRL:case It.DOWN:case It.END:case It.ESC:case It.HOME:case It.INSERT:case It.LEFT:case It.MAC_FF_META:case It.META:case It.NUMLOCK:case It.NUM_CENTER:case It.PAGE_DOWN:case It.PAGE_UP:case It.PAUSE:case It.PRINT_SCREEN:case It.RIGHT:case It.SHIFT:case It.UP:case It.WIN_KEY:case It.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Xt){if(Xt>=It.ZERO&&Xt<=It.NINE||Xt>=It.NUM_ZERO&&Xt<=It.NUM_MULTIPLY||Xt>=It.A&&Xt<=It.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Xt===0)return!0;switch(Xt){case It.SPACE:case It.QUESTION_MARK:case It.NUM_PLUS:case It.NUM_MINUS:case It.NUM_PERIOD:case It.NUM_DIVISION:case It.SEMICOLON:case It.DASH:case It.EQUALS:case It.COMMA:case It.PERIOD:case It.SLASH:case It.APOSTROPHE:case It.SINGLE_QUOTE:case It.OPEN_SQUARE_BRACKET:case It.BACKSLASH:case It.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ye=It,Ze=function(Xt){return+setTimeout(Xt,16)},pe=function(Xt){return clearTimeout(Xt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Ze=function(Xt){return window.requestAnimationFrame(Xt)},pe=function(Xt){return window.cancelAnimationFrame(Xt)});var be=0,Rt=new Map;function zt(wt){Rt.delete(wt)}var Qt=function(Xt){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;be+=1;var We=be;function In(Hn){if(Hn===0)zt(We),Xt();else{var Un=Ze(function(){In(Hn-1)});Rt.set(We,Un)}}return In(Re),We};Qt.cancel=function(wt){var Xt=Rt.get(wt);return zt(Xt),pe(Xt)};var te=Qt,Ie=ye.ESC,He=ye.TAB;function en(wt){var Xt=wt.visible,Re=wt.triggerRef,We=wt.onVisibleChange,In=wt.autoFocus,Hn=wt.overlayRef,Un=ft.useRef(!1),Yn=function(){if(Xt){var Qn,Sn;(Qn=Re.current)===null||Qn===void 0||(Sn=Qn.focus)===null||Sn===void 0||Sn.call(Qn),We==null||We(!1)}},Fe=function(){var Qn;return(Qn=Hn.current)!==null&&Qn!==void 0&&Qn.focus?(Hn.current.focus(),Un.current=!0,!0):!1},bn=function(Qn){switch(Qn.keyCode){case Ie:Yn();break;case He:{var Sn=!1;Un.current||(Sn=Fe()),Sn?Qn.preventDefault():Yn();break}}};ft.useEffect(function(){return Xt?(window.addEventListener("keydown",bn),In&&te(Fe,3),function(){window.removeEventListener("keydown",bn),Un.current=!1}):function(){Un.current=!1}},[Xt])}var ie=(0,ft.forwardRef)(function(wt,Xt){var Re=wt.overlay,We=wt.arrow,In=wt.prefixCls,Hn=(0,ft.useMemo)(function(){var Yn;return typeof Re=="function"?Yn=Re():Yn=Re,Yn},[Re]),Un=we(Xt,Hn==null?void 0:Hn.ref);return ft.createElement(ft.Fragment,null,We&&ft.createElement("div",{className:"".concat(In,"-arrow")}),ft.cloneElement(Hn,{ref:he(Hn)?Un:void 0}))}),an=ie,nn={adjustX:1,adjustY:1},Vn=[0,0],Ne={topLeft:{points:["bl","tl"],overflow:nn,offset:[0,-4],targetOffset:Vn},top:{points:["bc","tc"],overflow:nn,offset:[0,-4],targetOffset:Vn},topRight:{points:["br","tr"],overflow:nn,offset:[0,-4],targetOffset:Vn},bottomLeft:{points:["tl","bl"],overflow:nn,offset:[0,4],targetOffset:Vn},bottom:{points:["tc","bc"],overflow:nn,offset:[0,4],targetOffset:Vn},bottomRight:{points:["tr","br"],overflow:nn,offset:[0,4],targetOffset:Vn}},Ye=Ne,zn=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Gn(wt,Xt){var Re,We=wt.arrow,In=We===void 0?!1:We,Hn=wt.prefixCls,Un=Hn===void 0?"rc-dropdown":Hn,Yn=wt.transitionName,Fe=wt.animation,bn=wt.align,En=wt.placement,Qn=En===void 0?"bottomLeft":En,Sn=wt.placements,Vi=Sn===void 0?Ye:Sn,Qe=wt.getPopupContainer,Pn=wt.showAction,Ci=wt.hideAction,yi=wt.overlayClassName,Oi=wt.overlayStyle,ar=wt.visible,br=wt.trigger,wr=br===void 0?["hover"]:br,cr=wt.autoFocus,Ar=wt.overlay,ir=wt.children,kr=wt.onVisibleChange,po=(0,jt.Z)(wt,zn),So=ft.useState(),Eo=(0,Wt.Z)(So,2),Yr=Eo[0],Mn=Eo[1],St="visible"in wt?ar:Yr,Zi=ft.useRef(null),mi=ft.useRef(null),rr=ft.useRef(null);ft.useImperativeHandle(Xt,function(){return Zi.current});var fr=function(ai){Mn(ai),kr==null||kr(ai)};en({visible:St,triggerRef:rr,onVisibleChange:fr,autoFocus:cr,overlayRef:mi});var pr=function(ai){var Te=wt.onOverlayClick;Mn(!1),Te&&Te(ai)},tr=function(){return ft.createElement(an,{ref:mi,overlay:Ar,prefixCls:Un,arrow:In})},Xe=function(){return typeof Ar=="function"?tr:tr()},mn=function(){var ai=wt.minOverlayWidthMatchTrigger,Te=wt.alignPoint;return"minOverlayWidthMatchTrigger"in wt?ai:!Te},Tn=function(){var ai=wt.openClassName;return ai!==void 0?ai:"".concat(Un,"-open")},Nn=ft.cloneElement(ir,{className:ne()((Re=ir.props)===null||Re===void 0?void 0:Re.className,St&&Tn()),ref:he(ir)?we(rr,ir.ref):void 0}),ge=Ci;return!ge&&wr.indexOf("contextMenu")!==-1&&(ge=["click"]),ft.createElement(Nt.Z,(0,Dt.Z)({builtinPlacements:Vi},po,{prefixCls:Un,ref:Zi,popupClassName:ne()(yi,(0,Ht.Z)({},"".concat(Un,"-show-arrow"),In)),popupStyle:Oi,action:wr,showAction:Pn,hideAction:ge,popupPlacement:Qn,popupAlign:bn,popupTransitionName:Yn,popupAnimation:Fe,popupVisible:St,stretch:mn()?"minWidth":"",popup:Xe(),onPopupVisibleChange:fr,onPopupClick:pr,getPopupContainer:Qe}),Nn)}var Me=ft.forwardRef(Gn),_t=Me,rn=mt(60276),ti=mt(5663),vn=mt(10366),ze=mt(80636),on=mt(8745),On=mt(96159),Ni=mt(53124),gi=mt(68508),Dn=mt(76529),Jn=mt(29691),Ai=mt(66748);const hi=null,qt=wt=>{const{menu:Xt,arrow:Re,prefixCls:We,children:In,trigger:Hn,disabled:Un,dropdownRender:Yn,getPopupContainer:Fe,overlayClassName:bn,rootClassName:En,open:Qn,onOpenChange:Sn,visible:Vi,onVisibleChange:Qe,mouseEnterDelay:Pn=.15,mouseLeaveDelay:Ci=.1,autoAdjustOverflow:yi=!0,placement:Oi="",overlay:ar,transitionName:br}=wt,{getPopupContainer:wr,getPrefixCls:cr,direction:Ar}=ft.useContext(Ni.E_),ir=ft.useMemo(()=>{const Nn=cr();return br!==void 0?br:Oi.includes("top")?`${Nn}-slide-down`:`${Nn}-slide-up`},[cr,Oi,br]),kr=ft.useMemo(()=>Oi?Oi.includes("Center")?Oi.slice(0,Oi.indexOf("Center")):Oi:Ar==="rtl"?"bottomRight":"bottomLeft",[Oi,Ar]),po=cr("dropdown",We),[So,Eo]=(0,Ai.Z)(po),[,Yr]=(0,Jn.Z)(),Mn=ft.Children.only(In),St=(0,On.Tm)(Mn,{className:ne()(`${po}-trigger`,{[`${po}-rtl`]:Ar==="rtl"},Mn.props.className),disabled:Un}),Zi=Un?[]:Hn;let mi;Zi&&Zi.includes("contextMenu")&&(mi=!0);const[rr,fr]=(0,ti.Z)(!1,{value:Qn!=null?Qn:Vi}),pr=(0,rn.useEvent)(Nn=>{Sn==null||Sn(Nn),Qe==null||Qe(Nn),fr(Nn)}),tr=ne()(bn,En,Eo,{[`${po}-rtl`]:Ar==="rtl"}),Xe=(0,ze.Z)({arrowPointAtCenter:typeof Re=="object"&&Re.pointAtCenter,autoAdjustOverflow:yi,offset:Yr.marginXXS,arrowWidth:Re?Yr.sizePopupArrow:0,borderRadius:Yr.borderRadius}),mn=ft.useCallback(()=>{fr(!1)},[]),Tn=()=>{let Nn;return Xt!=null&&Xt.items?Nn=ft.createElement(gi.default,Object.assign({},Xt)):typeof ar=="function"?Nn=ar():Nn=ar,Yn&&(Nn=Yn(Nn)),Nn=ft.Children.only(typeof Nn=="string"?ft.createElement("span",null,Nn):Nn),ft.createElement(Dn.J,{prefixCls:`${po}-menu`,expandIcon:ft.createElement("span",{className:`${po}-menu-submenu-arrow`},ft.createElement(Ft.Z,{className:`${po}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:mn,validator:ge=>{let{mode:Cn}=ge}},Nn)};return So(ft.createElement(_t,Object.assign({alignPoint:mi},(0,vn.Z)(wt,["rootClassName"]),{mouseEnterDelay:Pn,mouseLeaveDelay:Ci,visible:rr,builtinPlacements:Xe,arrow:!!Re,overlayClassName:tr,prefixCls:po,getPopupContainer:Fe||wr,transitionName:ir,trigger:Zi,overlay:Tn,placement:kr,onVisibleChange:pr}),St))};function kt(wt){return Object.assign(Object.assign({},wt),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Ct=(0,on.Z)(qt,"dropdown",wt=>wt,kt),Pt=wt=>ft.createElement(Ct,Object.assign({},wt),ft.createElement("span",null));qt._InternalPanelDoNotUseOrYouWillBeFired=Pt;var At=qt},85418:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return ue}});var ft=mt(35874),Ft=mt(94184),$t=mt.n(Ft),ne=mt(67294),Dt=mt(25877),Ht=mt(71577),Wt=mt(53124),jt=mt(93421),Nt=mt(4173),Ut=mt(66748),De=function(he,It){var ye={};for(var Ze in he)Object.prototype.hasOwnProperty.call(he,Ze)&&It.indexOf(Ze)<0&&(ye[Ze]=he[Ze]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,Ze=Object.getOwnPropertySymbols(he);pe<Ze.length;pe++)It.indexOf(Ze[pe])<0&&Object.prototype.propertyIsEnumerable.call(he,Ze[pe])&&(ye[Ze[pe]]=he[Ze[pe]]);return ye};const Yt=he=>{const{getPopupContainer:It,getPrefixCls:ye,direction:Ze}=ne.useContext(Wt.E_),{prefixCls:pe,type:be="default",danger:Rt,disabled:zt,loading:Qt,onClick:te,htmlType:Ie,children:He,className:en,menu:ie,arrow:an,autoFocus:nn,overlay:Vn,trigger:Ne,align:Ye,open:zn,onOpenChange:Gn,placement:Me,getPopupContainer:_t,href:rn,icon:ti=ne.createElement(Dt.Z,null),title:vn,buttonsRender:ze=Un=>Un,mouseEnterDelay:on,mouseLeaveDelay:On,overlayClassName:Ni,overlayStyle:gi,destroyPopupOnHide:Dn,dropdownRender:Jn}=he,Ai=De(he,["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"]),hi=ye("dropdown",pe),qt=`${hi}-button`,[kt,Ct]=(0,Ut.Z)(hi),Pt={menu:ie,arrow:an,autoFocus:nn,align:Ye,disabled:zt,trigger:zt?[]:Ne,onOpenChange:Gn,getPopupContainer:_t||It,mouseEnterDelay:on,mouseLeaveDelay:On,overlayClassName:Ni,overlayStyle:gi,destroyPopupOnHide:Dn,dropdownRender:Jn},{compactSize:At,compactItemClassnames:wt}=(0,Nt.ri)(hi,Ze),Xt=$t()(qt,wt,en,Ct);"overlay"in he&&(Pt.overlay=Vn),"open"in he&&(Pt.open=zn),"placement"in he?Pt.placement=Me:Pt.placement=Ze==="rtl"?"bottomLeft":"bottomRight";const Re=ne.createElement(Ht.ZP,{type:be,danger:Rt,disabled:zt,loading:Qt,onClick:te,htmlType:Ie,href:rn,title:vn},He),We=ne.createElement(Ht.ZP,{type:be,danger:Rt,icon:ti}),[In,Hn]=ze([Re,We]);return kt(ne.createElement(jt.Z.Compact,Object.assign({className:Xt,size:At,block:!0},Ai),In,ne.createElement(ft.Z,Object.assign({},Pt),Hn)))};Yt.__ANT_BUTTON=!0;var de=Yt;const we=ft.Z;we.Button=de;var ue=we},66748:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return De}});var ft=mt(14747),Ft=mt(67771),$t=mt(33297),ne=mt(50438),Dt=mt(97414),Ht=mt(67968),Wt=mt(45503),Nt=Yt=>{const{componentCls:de,menuCls:we,colorError:ue,colorTextLightSolid:he}=Yt,It=`${we}-item`;return{[`${de}, ${de}-menu-submenu`]:{[`${we} ${It}`]:{[`&${It}-danger:not(${It}-disabled)`]:{color:ue,"&:hover":{color:he,backgroundColor:ue}}}}}};const Ut=Yt=>{const{componentCls:de,menuCls:we,zIndexPopup:ue,dropdownArrowDistance:he,sizePopupArrow:It,antCls:ye,iconCls:Ze,motionDurationMid:pe,dropdownPaddingVertical:be,fontSize:Rt,dropdownEdgeChildPadding:zt,colorTextDisabled:Qt,fontSizeIcon:te,controlPaddingHorizontal:Ie,colorBgElevated:He}=Yt;return[{[de]:Object.assign(Object.assign({},(0,ft.Wf)(Yt)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ue,display:"block","&::before":{position:"absolute",insetBlock:-he+It/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${ye}-btn`]:{[`& > ${Ze}-down, & > ${ye}-btn-icon > ${Ze}-down`]:{fontSize:te}},[`${de}-wrap`]:{position:"relative",[`${ye}-btn > ${Ze}-down`]:{fontSize:te},[`${Ze}-down::before`]:{transition:`transform ${pe}`}},[`${de}-wrap-open`]:{[`${Ze}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${ye}-slide-down-enter${ye}-slide-down-enter-active${de}-placement-bottomLeft,
|
|
|
&${ye}-slide-down-appear${ye}-slide-down-appear-active${de}-placement-bottomLeft,
|
|
|
&${ye}-slide-down-enter${ye}-slide-down-enter-active${de}-placement-bottom,
|
|
|
&${ye}-slide-down-appear${ye}-slide-down-appear-active${de}-placement-bottom,
|
|
|
&${ye}-slide-down-enter${ye}-slide-down-enter-active${de}-placement-bottomRight,
|
|
|
&${ye}-slide-down-appear${ye}-slide-down-appear-active${de}-placement-bottomRight`]:{animationName:Ft.fJ},[`&${ye}-slide-up-enter${ye}-slide-up-enter-active${de}-placement-topLeft,
|
|
|
&${ye}-slide-up-appear${ye}-slide-up-appear-active${de}-placement-topLeft,
|
|
|
&${ye}-slide-up-enter${ye}-slide-up-enter-active${de}-placement-top,
|
|
|
&${ye}-slide-up-appear${ye}-slide-up-appear-active${de}-placement-top,
|
|
|
&${ye}-slide-up-enter${ye}-slide-up-enter-active${de}-placement-topRight,
|
|
|
&${ye}-slide-up-appear${ye}-slide-up-appear-active${de}-placement-topRight`]:{animationName:Ft.Qt},[`&${ye}-slide-down-leave${ye}-slide-down-leave-active${de}-placement-bottomLeft,
|
|
|
&${ye}-slide-down-leave${ye}-slide-down-leave-active${de}-placement-bottom,
|
|
|
&${ye}-slide-down-leave${ye}-slide-down-leave-active${de}-placement-bottomRight`]:{animationName:Ft.Uw},[`&${ye}-slide-up-leave${ye}-slide-up-leave-active${de}-placement-topLeft,
|
|
|
&${ye}-slide-up-leave${ye}-slide-up-leave-active${de}-placement-top,
|
|
|
&${ye}-slide-up-leave${ye}-slide-up-leave-active${de}-placement-topRight`]:{animationName:Ft.ly}})},(0,Dt.ZP)(Yt,{colorBg:He,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${de} ${we}`]:{position:"relative",margin:0},[`${we}-submenu-popup`]:{position:"absolute",zIndex:ue,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${de}, ${de}-menu-submenu`]:{[we]:Object.assign(Object.assign({padding:zt,listStyleType:"none",backgroundColor:He,backgroundClip:"padding-box",borderRadius:Yt.borderRadiusLG,outline:"none",boxShadow:Yt.boxShadowSecondary},(0,ft.Qy)(Yt)),{[`${we}-item-group-title`]:{padding:`${be}px ${Ie}px`,color:Yt.colorTextDescription,transition:`all ${pe}`},[`${we}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${we}-item-icon`]:{minWidth:Rt,marginInlineEnd:Yt.marginXS,fontSize:Yt.fontSizeSM},[`${we}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${pe}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${we}-item, ${we}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${be}px ${Ie}px`,color:Yt.colorText,fontWeight:"normal",fontSize:Rt,lineHeight:Yt.lineHeight,cursor:"pointer",transition:`all ${pe}`,borderRadius:Yt.borderRadiusSM,"&:hover, &-active":{backgroundColor:Yt.controlItemBgHover}},(0,ft.Qy)(Yt)),{"&-selected":{color:Yt.colorPrimary,backgroundColor:Yt.controlItemBgActive,"&:hover, &-active":{backgroundColor:Yt.controlItemBgActiveHover}},"&-disabled":{color:Qt,cursor:"not-allowed","&:hover":{color:Qt,backgroundColor:He,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Yt.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Yt.colorSplit},[`${de}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Yt.paddingXS,[`${de}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Yt.colorTextDescription,fontSize:te,fontStyle:"normal"}}}),[`${we}-item-group-list`]:{margin:`0 ${Yt.marginXS}px`,padding:0,listStyle:"none"},[`${we}-submenu-title`]:{paddingInlineEnd:Ie+Yt.fontSizeSM},[`${we}-submenu-vertical`]:{position:"relative"},[`${we}-submenu${we}-submenu-disabled ${de}-menu-submenu-title`]:{[`&, ${de}-menu-submenu-arrow-icon`]:{color:Qt,backgroundColor:He,cursor:"not-allowed"}},[`${we}-submenu-selected ${de}-menu-submenu-title`]:{color:Yt.colorPrimary}})}},[(0,Ft.oN)(Yt,"slide-up"),(0,Ft.oN)(Yt,"slide-down"),(0,$t.Fm)(Yt,"move-up"),(0,$t.Fm)(Yt,"move-down"),(0,ne._y)(Yt,"zoom-big")]]};var De=(0,Ht.Z)("Dropdown",(Yt,de)=>{let{rootPrefixCls:we}=de;const{marginXXS:ue,sizePopupArrow:he,controlHeight:It,fontSize:ye,lineHeight:Ze,paddingXXS:pe,componentCls:be,borderRadiusLG:Rt}=Yt,zt=(It-ye*Ze)/2,{dropdownArrowOffset:Qt}=(0,Dt.fS)({contentRadius:Rt}),te=(0,Wt.TS)(Yt,{menuCls:`${be}-menu`,rootPrefixCls:we,dropdownArrowDistance:he/2+ue,dropdownArrowOffset:Qt,dropdownPaddingVertical:zt,dropdownEdgeChildPadding:pe});return[Ut(te),Nt(te)]},Yt=>({zIndexPopup:Yt.zIndexPopupBase+50}))},32983:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return pe}});var ft=mt(94184),Ft=mt.n(ft),$t=mt(67294),ne=mt(53124),Dt=mt(10110),Ht=mt(84780),Wt=mt(29691),Nt=()=>{const[,be]=(0,Wt.Z)(),zt=new Ht.C(be.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return $t.createElement("svg",{style:zt,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},$t.createElement("g",{fill:"none",fillRule:"evenodd"},$t.createElement("g",{transform:"translate(24 31.67)"},$t.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),$t.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"}),$t.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)"}),$t.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"}),$t.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"})),$t.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"}),$t.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},$t.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),$t.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},De=()=>{const[,be]=(0,Wt.Z)(),{colorFill:Rt,colorFillTertiary:zt,colorFillQuaternary:Qt,colorBgContainer:te}=be,{borderColor:Ie,shadowColor:He,contentColor:en}=(0,$t.useMemo)(()=>({borderColor:new Ht.C(Rt).onBackground(te).toHexShortString(),shadowColor:new Ht.C(zt).onBackground(te).toHexShortString(),contentColor:new Ht.C(Qt).onBackground(te).toHexShortString()}),[Rt,zt,Qt,te]);return $t.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},$t.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},$t.createElement("ellipse",{fill:He,cx:"32",cy:"33",rx:"32",ry:"7"}),$t.createElement("g",{fillRule:"nonzero",stroke:Ie},$t.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"}),$t.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:en}))))},Yt=mt(67968),de=mt(45503);const we=be=>{const{componentCls:Rt,margin:zt,marginXS:Qt,marginXL:te,fontSize:Ie,lineHeight:He}=be;return{[Rt]:{marginInline:Qt,fontSize:Ie,lineHeight:He,textAlign:"center",[`${Rt}-image`]:{height:be.emptyImgHeight,marginBottom:Qt,opacity:be.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Rt}-description`]:{color:be.colorText},[`${Rt}-footer`]:{marginTop:zt},"&-normal":{marginBlock:te,color:be.colorTextDisabled,[`${Rt}-description`]:{color:be.colorTextDisabled},[`${Rt}-image`]:{height:be.emptyImgHeightMD}},"&-small":{marginBlock:Qt,color:be.colorTextDisabled,[`${Rt}-image`]:{height:be.emptyImgHeightSM}}}}};var ue=(0,Yt.Z)("Empty",be=>{const{componentCls:Rt,controlHeightLG:zt}=be,Qt=(0,de.TS)(be,{emptyImgCls:`${Rt}-img`,emptyImgHeight:zt*2.5,emptyImgHeightMD:zt,emptyImgHeightSM:zt*.875});return[we(Qt)]}),he=function(be,Rt){var zt={};for(var Qt in be)Object.prototype.hasOwnProperty.call(be,Qt)&&Rt.indexOf(Qt)<0&&(zt[Qt]=be[Qt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,Qt=Object.getOwnPropertySymbols(be);te<Qt.length;te++)Rt.indexOf(Qt[te])<0&&Object.prototype.propertyIsEnumerable.call(be,Qt[te])&&(zt[Qt[te]]=be[Qt[te]]);return zt};const It=$t.createElement(Nt,null),ye=$t.createElement(De,null),Ze=be=>{var{className:Rt,rootClassName:zt,prefixCls:Qt,image:te=It,description:Ie,children:He,imageStyle:en,style:ie}=be,an=he(be,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:nn,direction:Vn,empty:Ne}=$t.useContext(ne.E_),Ye=nn("empty",Qt),[zn,Gn]=ue(Ye),[Me]=(0,Dt.Z)("Empty"),_t=typeof Ie!="undefined"?Ie:Me==null?void 0:Me.description,rn=typeof _t=="string"?_t:"empty";let ti=null;return typeof te=="string"?ti=$t.createElement("img",{alt:rn,src:te}):ti=te,zn($t.createElement("div",Object.assign({className:Ft()(Gn,Ye,Ne==null?void 0:Ne.className,{[`${Ye}-normal`]:te===ye,[`${Ye}-rtl`]:Vn==="rtl"},Rt,zt),style:Object.assign(Object.assign({},Ne==null?void 0:Ne.style),ie)},an),$t.createElement("div",{className:`${Ye}-image`,style:en},ti),_t&&$t.createElement("div",{className:`${Ye}-description`},_t),He&&$t.createElement("div",{className:`${Ye}-footer`},He)))};Ze.PRESENTED_IMAGE_DEFAULT=It,Ze.PRESENTED_IMAGE_SIMPLE=ye;var pe=Ze},22150:function(jn,tn,mt){"use strict";mt.d(tn,{default:function(){return Nn}});var ft=mt(74902),Ft=mt(94184),$t=mt.n(Ft),ne=mt(38379),Dt=mt(67294),Ht=mt(33603),Wt=mt(65223);function jt(ge){const[Cn,ai]=Dt.useState(ge);return Dt.useEffect(()=>{const Te=setTimeout(()=>{ai(ge)},ge.length?0:10);return()=>{clearTimeout(Te)}},[ge]),Cn}var Nt=mt(14747),Ut=mt(50438),De=mt(33507),Yt=mt(45503),de=mt(67968),ue=ge=>{const{componentCls:Cn}=ge,ai=`${Cn}-show-help`,Te=`${Cn}-show-help-item`;return{[ai]:{transition:`opacity ${ge.motionDurationSlow} ${ge.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Te]:{overflow:"hidden",transition:`height ${ge.motionDurationSlow} ${ge.motionEaseInOut},
|
|
|
opacity ${ge.motionDurationSlow} ${ge.motionEaseInOut},
|
|
|
transform ${ge.motionDurationSlow} ${ge.motionEaseInOut} !important`,[`&${Te}-appear, &${Te}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Te}-leave-active`]:{transform:"translateY(-5px)"}}}}};const he=ge=>({legend:{display:"block",width:"100%",marginBottom:ge.marginLG,padding:0,color:ge.colorTextDescription,fontSize:ge.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ge.lineWidth}px ${ge.lineType} ${ge.colorBorder}`},label:{fontSize:ge.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 ${ge.controlOutlineWidth}px ${ge.controlOutline}`},output:{display:"block",paddingTop:15,color:ge.colorText,fontSize:ge.fontSize,lineHeight:ge.lineHeight}}),It=(ge,Cn)=>{const{formItemCls:ai}=ge;return{[ai]:{[`${ai}-label > label`]:{height:Cn},[`${ai}-control-input`]:{minHeight:Cn}}}},ye=ge=>{const{componentCls:Cn}=ge;return{[ge.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Nt.Wf)(ge)),he(ge)),{[`${Cn}-text`]:{display:"inline-block",paddingInlineEnd:ge.paddingSM},"&-small":Object.assign({},It(ge,ge.controlHeightSM)),"&-large":Object.assign({},It(ge,ge.controlHeightLG))})}},Ze=ge=>{const{formItemCls:Cn,iconCls:ai,componentCls:Te,rootPrefixCls:ce,labelRequiredMarkColor:Oe,labelColor:pn,labelFontSize:fi,labelHeight:$n,labelColonMarginInlineStart:_e,labelColonMarginInlineEnd:ri,itemMarginBottom:Ri}=ge;return{[Cn]:Object.assign(Object.assign({},(0,Nt.Wf)(ge)),{marginBottom:Ri,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${ce}-row`]:{display:"none"},"&-has-warning":{[`${Cn}-split`]:{color:ge.colorError}},"&-has-error":{[`${Cn}-split`]:{color:ge.colorWarning}},[`${Cn}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${ge.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:$n,color:pn,fontSize:fi,[`> ${ai}`]:{fontSize:ge.fontSize,verticalAlign:"top"},[`&${Cn}-required:not(${Cn}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:ge.marginXXS,color:Oe,fontSize:ge.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Te}-hide-required-mark &`]:{display:"none"}},[`${Cn}-optional`]:{display:"inline-block",marginInlineStart:ge.marginXXS,color:ge.colorTextDescription,[`${Te}-hide-required-mark &`]:{display:"none"}},[`${Cn}-tooltip`]:{color:ge.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:ge.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:_e,marginInlineEnd:ri},[`&${Cn}-no-colon::after`]:{content:'"\\a0"'}}},[`${Cn}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${ce}-col-'"]):not([class*="' ${ce}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:ge.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Cn]:{"&-explain, &-extra":{clear:"both",color:ge.colorTextDescription,fontSize:ge.fontSize,lineHeight:ge.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:ge.controlHeightSM,transition:`color ${ge.motionDurationMid} ${ge.motionEaseOut}`},"&-explain":{"&-error":{color:ge.colorError},"&-warning":{color:ge.colorWarning}}},[`&-with-help ${Cn}-explain`]:{height:"auto",opacity:1},[`${Cn}-feedback-icon`]:{fontSize:ge.fontSize,textAlign:"center",visibility:"visible",animationName:Ut.kr,animationDuration:ge.motionDurationMid,animationTimingFunction:ge.motionEaseOutBack,pointerEvents:"none","&-success":{color:ge.colorSuccess},"&-error":{color:ge.colorError},"&-warning":{color:ge.colorWarning},"&-validating":{color:ge.colorPrimary}}})}},pe=ge=>{const{componentCls:Cn,formItemCls:ai}=ge;return{[`${Cn}-horizontal`]:{[`${ai}-label`]:{flexGrow:0},[`${ai}-control`]:{flex:"1 1 0",minWidth:0},[`${ai}-label[class$='-24'], ${ai}-label[class*='-24 ']`]:{[`& + ${ai}-control`]:{minWidth:"unset"}}}}},be=ge=>{const{componentCls:Cn,formItemCls:ai}=ge;return{[`${Cn}-inline`]:{display:"flex",flexWrap:"wrap",[ai]:{flex:"none",marginInlineEnd:ge.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${ai}-label,
|
|
|
> ${ai}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${ai}-label`]:{flex:"none"},[`${Cn}-text`]:{display:"inline-block"},[`${ai}-has-feedback`]:{display:"inline-block"}}}}},Rt=ge=>({padding:ge.verticalLabelPadding,margin:ge.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),zt=ge=>{const{componentCls:Cn,formItemCls:ai,rootPrefixCls:Te}=ge;return{[`${ai} ${ai}-label`]:Rt(ge),[Cn]:{[ai]:{flexWrap:"wrap",[`${ai}-label, ${ai}-control`]:{[`&:not([class*=" ${Te}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Qt=ge=>{const{componentCls:Cn,formItemCls:ai,rootPrefixCls:Te}=ge;return{[`${Cn}-vertical`]:{[ai]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Cn}-item-control`]:{width:"100%"}}},[`${Cn}-vertical ${ai}-label,
|
|
|
.${Te}-col-24${ai}-label,
|
|
|
.${Te}-col-xl-24${ai}-label`]:Rt(ge),[`@media (max-width: ${ge.screenXSMax}px)`]:[zt(ge),{[Cn]:{[`.${Te}-col-xs-24${ai}-label`]:Rt(ge)}}],[`@media (max-width: ${ge.screenSMMax}px)`]:{[Cn]:{[`.${Te}-col-sm-24${ai}-label`]:Rt(ge)}},[`@media (max-width: ${ge.screenMDMax}px)`]:{[Cn]:{[`.${Te}-col-md-24${ai}-label`]:Rt(ge)}},[`@media (max-width: ${ge.screenLGMax}px)`]:{[Cn]:{[`.${Te}-col-lg-24${ai}-label`]:Rt(ge)}}}},te=(ge,Cn)=>(0,Yt.TS)(ge,{formItemCls:`${ge.componentCls}-item`,rootPrefixCls:Cn});var Ie=(0,de.Z)("Form",(ge,Cn)=>{let{rootPrefixCls:ai}=Cn;const Te=te(ge,ai);return[ye(Te),Ze(Te),ue(Te),pe(Te),be(Te),Qt(Te),(0,De.Z)(Te),Ut.kr]},ge=>({labelRequiredMarkColor:ge.colorError,labelColor:ge.colorTextHeading,labelFontSize:ge.fontSize,labelHeight:ge.controlHeight,labelColonMarginInlineStart:ge.marginXXS/2,labelColonMarginInlineEnd:ge.marginXS,itemMarginBottom:ge.marginLG,verticalLabelPadding:`0 0 ${ge.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const He=[];function en(ge,Cn,ai){let Te=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ge=="string"?ge:`${Cn}-${Te}`,error:ge,errorStatus:ai}}var an=ge=>{let{help:Cn,helpStatus:ai,errors:Te=He,warnings:ce=He,className:Oe,fieldId:pn,onVisibleChanged:fi}=ge;const{prefixCls:$n}=Dt.useContext(Wt.Rk),_e=`${$n}-item-explain`,[,ri]=Ie($n),Ri=(0,Dt.useMemo)(()=>(0,Ht.Z)($n),[$n]),$e=jt(Te),Ge=jt(ce),un=Dt.useMemo(()=>Cn!=null?[en(Cn,"help",ai)]:[].concat((0,ft.Z)($e.map((Yi,ci)=>en(Yi,"error","error",ci))),(0,ft.Z)(Ge.map((Yi,ci)=>en(Yi,"warning","warning",ci)))),[Cn,ai,$e,Ge]),xi={};return pn&&(xi.id=`${pn}_help`),Dt.createElement(ne.default,{motionDeadline:Ri.motionDeadline,motionName:`${$n}-show-help`,visible:!!un.length,onVisibleChanged:fi},Yi=>{const{className:ci,style:Xn}=Yi;return Dt.createElement("div",Object.assign({},xi,{className:$t()(_e,ci,Oe,ri),style:Xn,role:"alert"}),Dt.createElement(ne.CSSMotionList,Object.assign({keys:un},(0,Ht.Z)($n),{motionName:`${$n}-show-help-item`,component:!1}),qn=>{const{key:Ki,error:vr,errorStatus:ki,className:Or,style:Ii}=qn;return Dt.createElement("div",{key:Ki,className:$t()(Or,{[`${_e}-${ki}`]:ki}),style:Ii},vr)}))})},nn=mt(46660),Vn=mt(53124),Ne=mt(98866),Ye=mt(97647),zn=mt(98675),Gn=mt(17423);const Me=["parentNode"],_t="form_item";function rn(ge){return ge===void 0||ge===!1?[]:Array.isArray(ge)?ge:[ge]}function ti(ge,Cn){if(!ge.length)return;const ai=ge.join("_");return Cn?`${Cn}_${ai}`:Me.includes(ai)?`${_t}_${ai}`:ai}function vn(ge,Cn,ai,Te,ce,Oe){let pn=Te;return Oe!==void 0?pn=Oe:ai.validating?pn="validating":ge.length?pn="error":Cn.length?pn="warning":(ai.touched||ce&&ai.validated)&&(pn="success"),pn}function ze(ge){return rn(ge).join("_")}function on(ge){const[Cn]=(0,nn.useForm)(),ai=Dt.useRef({}),Te=Dt.useMemo(()=>ge!=null?ge:Object.assign(Object.assign({},Cn),{__INTERNAL__:{itemRef:ce=>Oe=>{const pn=ze(ce);Oe?ai.current[pn]=Oe:delete ai.current[pn]}},scrollToField:function(ce){let Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const pn=rn(ce),fi=ti(pn,Te.__INTERNAL__.name),$n=fi?document.getElementById(fi):null;$n&&(0,Gn.Z)($n,Object.assign({scrollMode:"if-needed",block:"nearest"},Oe))},getFieldInstance:ce=>{const Oe=ze(ce);return ai.current[Oe]}}),[ge,Cn]);return[Te]}var On=mt(37920),Ni=function(ge,Cn){var ai={};for(var Te in ge)Object.prototype.hasOwnProperty.call(ge,Te)&&Cn.indexOf(Te)<0&&(ai[Te]=ge[Te]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,Te=Object.getOwnPropertySymbols(ge);ce<Te.length;ce++)Cn.indexOf(Te[ce])<0&&Object.prototype.propertyIsEnumerable.call(ge,Te[ce])&&(ai[Te[ce]]=ge[Te[ce]]);return ai};const gi=(ge,Cn)=>{const ai=Dt.useContext(Ne.Z),{getPrefixCls:Te,direction:ce,form:Oe}=Dt.useContext(Vn.E_),{prefixCls:pn,className:fi,rootClassName:$n,size:_e,disabled:ri=ai,form:Ri,colon:$e,labelAlign:Ge,labelWrap:un,labelCol:xi,wrapperCol:Yi,hideRequiredMark:ci,layout:Xn="horizontal",scrollToFirstError:qn,requiredMark:Ki,onFinishFailed:vr,name:ki,style:Or,feedbackIcons:Ii}=ge,ao=Ni(ge,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),qr=(0,zn.Z)(_e),Do=Dt.useContext(On.Z),ui=(0,Dt.useMemo)(()=>Ki!==void 0?Ki:Oe&&Oe.requiredMark!==void 0?Oe.requiredMark:!ci,[ci,Ki,Oe]),Co=$e!=null?$e:Oe==null?void 0:Oe.colon,bo=Te("form",pn),[Kr,wo]=Ie(bo),Sr=$t()(bo,`${bo}-${Xn}`,{[`${bo}-hide-required-mark`]:ui===!1,[`${bo}-rtl`]:ce==="rtl",[`${bo}-${qr}`]:qr},wo,Oe==null?void 0:Oe.className,fi,$n),[Xr]=on(Ri),{__INTERNAL__:Br}=Xr;Br.name=ki;const yo=(0,Dt.useMemo)(()=>({name:ki,labelAlign:Ge,labelCol:xi,labelWrap:un,wrapperCol:Yi,vertical:Xn==="vertical",colon:Co,requiredMark:ui,itemRef:Br.itemRef,form:Xr,feedbackIcons:Ii}),[ki,Ge,xi,Yi,Xn,Co,ui,Xr,Ii]);Dt.useImperativeHandle(Cn,()=>Xr);const ko=(kn,Ce)=>{if(kn){let si={block:"nearest"};typeof kn=="object"&&(si=kn),Xr.scrollToField(Ce,si)}},oi=kn=>{if(vr==null||vr(kn),kn.errorFields.length){const Ce=kn.errorFields[0].name;if(qn!==void 0){ko(qn,Ce);return}Oe&&Oe.scrollToFirstError!==void 0&&ko(Oe.scrollToFirstError,Ce)}};return Kr(Dt.createElement(Ne.n,{disabled:ri},Dt.createElement(Ye.q,{size:qr},Dt.createElement(Wt.RV,Object.assign({},{validateMessages:Do}),Dt.createElement(Wt.q3.Provider,{value:yo},Dt.createElement(nn.default,Object.assign({id:ki},ao,{name:ki,onFinishFailed:oi,form:Xr,style:Object.assign(Object.assign({},Oe==null?void 0:Oe.style),Or),className:Sr})))))))};var Jn=Dt.forwardRef(gi),Ai=mt(9475),hi=mt(17799),qt=mt(96159),kt=mt(37419);function Ct(ge){if(typeof ge=="function")return ge;const Cn=(0,kt.Z)(ge);return Cn.length<=1?Cn[0]:Cn}const Pt=()=>{const{status:ge,errors:Cn=[],warnings:ai=[]}=(0,Dt.useContext)(Wt.aM);return{status:ge,errors:Cn,warnings:ai}};Pt.Context=Wt.aM;var At=Pt,wt=mt(96523);function Xt(ge){const[Cn,ai]=Dt.useState(ge),Te=(0,Dt.useRef)(null),ce=(0,Dt.useRef)([]),Oe=(0,Dt.useRef)(!1);Dt.useEffect(()=>(Oe.current=!1,()=>{Oe.current=!0,wt.Z.cancel(Te.current),Te.current=null}),[]);function pn(fi){Oe.current||(Te.current===null&&(ce.current=[],Te.current=(0,wt.Z)(()=>{Te.current=null,ai($n=>{let _e=$n;return ce.current.forEach(ri=>{_e=ri(_e)}),_e})})),ce.current.push(fi))}return[Cn,pn]}function Re(){const{itemRef:ge}=Dt.useContext(Wt.q3),Cn=Dt.useRef({});function ai(Te,ce){const Oe=ce&&typeof ce=="object"&&ce.ref,pn=Te.join("_");return(Cn.current.name!==pn||Cn.current.originRef!==Oe)&&(Cn.current.name=pn,Cn.current.originRef=Oe,Cn.current.ref=(0,hi.sQ)(ge(Te),Oe)),Cn.current.ref}return ai}var We=mt(48130),In=mt(14075),Hn=mt(10366),Un=mt(92820),Yn=mt(21584);const Fe=ge=>{const{formItemCls:Cn}=ge;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Cn}-control`]:{display:"flex"}}}};var bn=(0,de.b)(["Form","item-item"],(ge,Cn)=>{let{rootPrefixCls:ai}=Cn;const Te=te(ge,ai);return[Fe(Te)]}),Qn=ge=>{const{prefixCls:Cn,status:ai,wrapperCol:Te,children:ce,errors:Oe,warnings:pn,_internalItemRender:fi,extra:$n,help:_e,fieldId:ri,marginBottom:Ri,onErrorVisibleChanged:$e}=ge,Ge=`${Cn}-item`,un=Dt.useContext(Wt.q3),xi=Te||un.wrapperCol||{},Yi=$t()(`${Ge}-control`,xi.className),ci=Dt.useMemo(()=>Object.assign({},un),[un]);delete ci.labelCol,delete ci.wrapperCol;const Xn=Dt.createElement("div",{className:`${Ge}-control-input`},Dt.createElement("div",{className:`${Ge}-control-input-content`},ce)),qn=Dt.useMemo(()=>({prefixCls:Cn,status:ai}),[Cn,ai]),Ki=Ri!==null||Oe.length||pn.length?Dt.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},Dt.createElement(Wt.Rk.Provider,{value:qn},Dt.createElement(an,{fieldId:ri,errors:Oe,warnings:pn,help:_e,helpStatus:ai,className:`${Ge}-explain-connected`,onVisibleChanged:$e})),!!Ri&&Dt.createElement("div",{style:{width:0,height:Ri}})):null,vr={};ri&&(vr.id=`${ri}_extra`);const ki=$n?Dt.createElement("div",Object.assign({},vr,{className:`${Ge}-extra`}),$n):null,Or=fi&&fi.mark==="pro_table_render"&&fi.render?fi.render(ge,{input:Xn,errorList:Ki,extra:ki}):Dt.createElement(Dt.Fragment,null,Xn,Ki,ki);return Dt.createElement(Wt.q3.Provider,{value:ci},Dt.createElement(Yn.Z,Object.assign({},xi,{className:Yi}),Or),Dt.createElement(bn,{prefixCls:Cn}))},Sn=mt(17663),Vi=mt(24457),Qe=mt(10110),Pn=mt(83062),Ci=function(ge,Cn){var ai={};for(var Te in ge)Object.prototype.hasOwnProperty.call(ge,Te)&&Cn.indexOf(Te)<0&&(ai[Te]=ge[Te]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,Te=Object.getOwnPropertySymbols(ge);ce<Te.length;ce++)Cn.indexOf(Te[ce])<0&&Object.prototype.propertyIsEnumerable.call(ge,Te[ce])&&(ai[Te[ce]]=ge[Te[ce]]);return ai};function yi(ge){return ge?typeof ge=="object"&&!Dt.isValidElement(ge)?ge:{title:ge}:null}var ar=ge=>{let{prefixCls:Cn,label:ai,htmlFor:Te,labelCol:ce,labelAlign:Oe,colon:pn,required:fi,requiredMark:$n,tooltip:_e}=ge;var ri;const[Ri]=(0,Qe.Z)("Form"),{vertical:$e,labelAlign:Ge,labelCol:un,labelWrap:xi,colon:Yi}=Dt.useContext(Wt.q3);if(!ai)return null;const ci=ce||un||{},Xn=Oe||Ge,qn=`${Cn}-item-label`,Ki=$t()(qn,Xn==="left"&&`${qn}-left`,ci.className,{[`${qn}-wrap`]:!!xi});let vr=ai;const ki=pn===!0||Yi!==!1&&pn!==!1;ki&&!$e&&typeof ai=="string"&&ai.trim()!==""&&(vr=ai.replace(/[:|:]\s*$/,""));const Ii=yi(_e);if(Ii){const{icon:ui=Dt.createElement(Sn.Z,null)}=Ii,Co=Ci(Ii,["icon"]),bo=Dt.createElement(Pn.Z,Object.assign({},Co),Dt.cloneElement(ui,{className:`${Cn}-item-tooltip`,title:""}));vr=Dt.createElement(Dt.Fragment,null,vr,bo)}const ao=$n==="optional",qr=typeof $n=="function";qr?vr=$n(vr,{required:!!fi}):ao&&!fi&&(vr=Dt.createElement(Dt.Fragment,null,vr,Dt.createElement("span",{className:`${Cn}-item-optional`,title:""},(Ri==null?void 0:Ri.optional)||((ri=Vi.Z.Form)===null||ri===void 0?void 0:ri.optional))));const Do=$t()({[`${Cn}-item-required`]:fi,[`${Cn}-item-required-mark-optional`]:ao||qr,[`${Cn}-item-no-colon`]:!ki});return Dt.createElement(Yn.Z,Object.assign({},ci,{className:Ki}),Dt.createElement("label",{htmlFor:Te,className:Do,title:typeof ai=="string"?ai:""},vr))},br=mt(87725),wr=mt(16646),cr=mt(87995),Ar=mt(3407);const ir={success:br.Z,warning:cr.Z,error:wr.Z,validating:Ar.Z};function kr(ge){let{children:Cn,errors:ai,warnings:Te,hasFeedback:ce,validateStatus:Oe,prefixCls:pn,meta:fi,noStyle:$n}=ge;const _e=`${pn}-item`,{feedbackIcons:ri}=Dt.useContext(Wt.q3),Ri=vn(ai,Te,fi,null,!!ce,Oe),{isFormItemInput:$e,status:Ge}=Dt.useContext(Wt.aM),un=Dt.useMemo(()=>{var xi;let Yi;if(ce){const qn=ce!==!0&&ce.icons||ri,Ki=Ri&&((xi=qn==null?void 0:qn({status:Ri,errors:ai,warnings:Te}))===null||xi===void 0?void 0:xi[Ri]),vr=Ri&&ir[Ri];Yi=Ki!==!1&&vr?Dt.createElement("span",{className:$t()(`${_e}-feedback-icon`,`${_e}-feedback-icon-${Ri}`)},Ki||Dt.createElement(vr,null)):null}let ci=!0,Xn=Ri||"";return $n&&(ci=$e,Xn=(Ri!=null?Ri:Ge)||""),{status:Xn,errors:ai,warnings:Te,hasFeedback:!!ce,feedbackIcon:Yi,isFormItemInput:ci}},[Ri,ce,$n,$e,Ge]);return Dt.createElement(Wt.aM.Provider,{value:un},Cn)}var po=function(ge,Cn){var ai={};for(var Te in ge)Object.prototype.hasOwnProperty.call(ge,Te)&&Cn.indexOf(Te)<0&&(ai[Te]=ge[Te]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,Te=Object.getOwnPropertySymbols(ge);ce<Te.length;ce++)Cn.indexOf(Te[ce])<0&&Object.prototype.propertyIsEnumerable.call(ge,Te[ce])&&(ai[Te[ce]]=ge[Te[ce]]);return ai};function So(ge){const{prefixCls:Cn,className:ai,rootClassName:Te,style:ce,help:Oe,errors:pn,warnings:fi,validateStatus:$n,meta:_e,hasFeedback:ri,hidden:Ri,children:$e,fieldId:Ge,required:un,isRequired:xi,onSubItemMetaChange:Yi}=ge,ci=po(ge,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Xn=`${Cn}-item`,{requiredMark:qn}=Dt.useContext(Wt.q3),Ki=Dt.useRef(null),vr=jt(pn),ki=jt(fi),Or=Oe!=null,Ii=!!(Or||pn.length||fi.length),ao=!!Ki.current&&(0,We.Z)(Ki.current),[qr,Do]=Dt.useState(null);(0,In.Z)(()=>{if(Ii&&Ki.current){const wo=getComputedStyle(Ki.current);Do(parseInt(wo.marginBottom,10))}},[Ii,ao]);const ui=wo=>{wo||Do(null)},bo=function(){let wo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Sr=wo?vr:_e.errors,Xr=wo?ki:_e.warnings;return vn(Sr,Xr,_e,"",!!ri,$n)}(),Kr=$t()(Xn,ai,Te,{[`${Xn}-with-help`]:Or||vr.length||ki.length,[`${Xn}-has-feedback`]:bo&&ri,[`${Xn}-has-success`]:bo==="success",[`${Xn}-has-warning`]:bo==="warning",[`${Xn}-has-error`]:bo==="error",[`${Xn}-is-validating`]:bo==="validating",[`${Xn}-hidden`]:Ri});return Dt.createElement("div",{className:Kr,style:ce,ref:Ki},Dt.createElement(Un.Z,Object.assign({className:`${Xn}-row`},(0,Hn.Z)(ci,["_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"])),Dt.createElement(ar,Object.assign({htmlFor:Ge},ge,{requiredMark:qn,required:un!=null?un:xi,prefixCls:Cn})),Dt.createElement(Qn,Object.assign({},ge,_e,{errors:vr,warnings:ki,prefixCls:Cn,status:bo,help:Oe,marginBottom:qr,onErrorVisibleChanged:ui}),Dt.createElement(Wt.qI.Provider,{value:Yi},Dt.createElement(kr,{prefixCls:Cn,meta:_e,errors:_e.errors,warnings:_e.warnings,hasFeedback:ri,validateStatus:bo},$e)))),!!qr&&Dt.createElement("div",{className:`${Xn}-margin-offset`,style:{marginBottom:-qr}}))}const Eo="__SPLIT__",Yr=null,Mn=Dt.memo(ge=>{let{children:Cn}=ge;return Cn},(ge,Cn)=>ge.value===Cn.value&&ge.update===Cn.update&&ge.childProps.length===Cn.childProps.length&&ge.childProps.every((ai,Te)=>ai===Cn.childProps[Te]));function St(ge){return ge!=null}function Zi(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function mi(ge){const{name:Cn,noStyle:ai,className:Te,dependencies:ce,prefixCls:Oe,shouldUpdate:pn,rules:fi,children:$n,required:_e,label:ri,messageVariables:Ri,trigger:$e="onChange",validateTrigger:Ge,hidden:un,help:xi}=ge,{getPrefixCls:Yi}=Dt.useContext(Vn.E_),{name:ci}=Dt.useContext(Wt.q3),Xn=Ct($n),qn=typeof Xn=="function",Ki=Dt.useContext(Wt.qI),{validateTrigger:vr}=Dt.useContext(nn.FieldContext),ki=Ge!==void 0?Ge:vr,Or=St(Cn),Ii=Yi("form",Oe),[ao,qr]=Ie(Ii),Do=Dt.useContext(nn.ListContext),ui=Dt.useRef(),[Co,bo]=Xt({}),[Kr,wo]=(0,Ai.Z)(()=>Zi()),Sr=Ce=>{const si=Do==null?void 0:Do.getKey(Ce.name);if(wo(Ce.destroy?Zi():Ce,!0),ai&&xi!==!1&&Ki){let Wi=Ce.name;if(Ce.destroy)Wi=ui.current||Wi;else if(si!==void 0){const[Gi,Tr]=si;Wi=[Gi].concat((0,ft.Z)(Tr)),ui.current=Wi}Ki(Ce,Wi)}},Xr=(Ce,si)=>{bo(Wi=>{const Gi=Object.assign({},Wi),Lr=[].concat((0,ft.Z)(Ce.name.slice(0,-1)),(0,ft.Z)(si)).join(Eo);return Ce.destroy?delete Gi[Lr]:Gi[Lr]=Ce,Gi})},[Br,yo]=Dt.useMemo(()=>{const Ce=(0,ft.Z)(Kr.errors),si=(0,ft.Z)(Kr.warnings);return Object.values(Co).forEach(Wi=>{Ce.push.apply(Ce,(0,ft.Z)(Wi.errors||[])),si.push.apply(si,(0,ft.Z)(Wi.warnings||[]))}),[Ce,si]},[Co,Kr.errors,Kr.warnings]),ko=Re();function oi(Ce,si,Wi){return ai&&!un?Dt.createElement(kr,{prefixCls:Ii,hasFeedback:ge.hasFeedback,validateStatus:ge.validateStatus,meta:Kr,errors:Br,warnings:yo,noStyle:!0},Ce):Dt.createElement(So,Object.assign({key:"row"},ge,{className:$t()(Te,qr),prefixCls:Ii,fieldId:si,isRequired:Wi,errors:Br,warnings:yo,meta:Kr,onSubItemMetaChange:Xr}),Ce)}if(!Or&&!qn&&!ce)return ao(oi(Xn));let kn={};return typeof ri=="string"?kn.label=ri:Cn&&(kn.label=String(Cn)),Ri&&(kn=Object.assign(Object.assign({},kn),Ri)),ao(Dt.createElement(nn.Field,Object.assign({},ge,{messageVariables:kn,trigger:$e,validateTrigger:ki,onMetaChange:Sr}),(Ce,si,Wi)=>{const Gi=rn(Cn).length&&si?si.name:[],Tr=ti(Gi,ci),Lr=_e!==void 0?_e:!!(fi&&fi.some(Jr=>{if(Jr&&typeof Jr=="object"&&Jr.required&&!Jr.warningOnly)return!0;if(typeof Jr=="function"){const Wr=Jr(Wi);return Wr&&Wr.required&&!Wr.warningOnly}return!1})),Cr=Object.assign({},Ce);let jr=null;if(Array.isArray(Xn)&&Or)jr=Xn;else if(!(qn&&(!(pn||ce)||Or))){if(!(ce&&!qn&&!Or))if((0,qt.l$)(Xn)){const Jr=Object.assign(Object.assign({},Xn.props),Cr);if(Jr.id||(Jr.id=Tr),xi||Br.length>0||yo.length>0||ge.extra){const Gt=[];(xi||Br.length>0)&&Gt.push(`${Tr}_help`),ge.extra&&Gt.push(`${Tr}_extra`),Jr["aria-describedby"]=Gt.join(" ")}Br.length>0&&(Jr["aria-invalid"]="true"),Lr&&(Jr["aria-required"]="true"),(0,hi.Yr)(Xn)&&(Jr.ref=ko(Gi,Xn)),new Set([].concat((0,ft.Z)(rn($e)),(0,ft.Z)(rn(ki)))).forEach(Gt=>{Jr[Gt]=function(){for(var Zn,wi,Fi,Tt,ee,le=arguments.length,xe=new Array(le),fe=0;fe<le;fe++)xe[fe]=arguments[fe];(Fi=Cr[Gt])===null||Fi===void 0||(Zn=Fi).call.apply(Zn,[Cr].concat(xe)),(ee=(Tt=Xn.props)[Gt])===null||ee===void 0||(wi=ee).call.apply(wi,[Tt].concat(xe))}});const or=[Jr["aria-required"],Jr["aria-invalid"],Jr["aria-describedby"]];jr=Dt.createElement(Mn,{value:Cr[ge.valuePropName||"value"],update:Xn,childProps:or},(0,qt.Tm)(Xn,Jr))}else qn&&(pn||ce)&&!Or?jr=Xn(Wi):jr=Xn}return oi(jr,Tr,Lr)}))}const rr=mi;rr.useStatus=At;var fr=rr,pr=function(ge,Cn){var ai={};for(var Te in ge)Object.prototype.hasOwnProperty.call(ge,Te)&&Cn.indexOf(Te)<0&&(ai[Te]=ge[Te]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,Te=Object.getOwnPropertySymbols(ge);ce<Te.length;ce++)Cn.indexOf(Te[ce])<0&&Object.prototype.propertyIsEnumerable.call(ge,Te[ce])&&(ai[Te[ce]]=ge[Te[ce]]);return ai},Xe=ge=>{var{prefixCls:Cn,children:ai}=ge,Te=pr(ge,["prefixCls","children"]);const{getPrefixCls:ce}=Dt.useContext(Vn.E_),Oe=ce("form",Cn),pn=Dt.useMemo(()=>({prefixCls:Oe,status:"error"}),[Oe]);return Dt.createElement(nn.List,Object.assign({},Te),(fi,$n,_e)=>Dt.createElement(Wt.Rk.Provider,{value:pn},ai(fi.map(ri=>Object.assign(Object.assign({},ri),{fieldKey:ri.key})),$n,{errors:_e.errors,warnings:_e.warnings})))};function mn(){const{form:ge}=(0,Dt.useContext)(Wt.q3);return ge}const Tn=Jn;Tn.Item=fr,Tn.List=Xe,Tn.ErrorList=an,Tn.useForm=on,Tn.useFormInstance=mn,Tn.useWatch=nn.useWatch,Tn.Provider=Wt.RV,Tn.create=()=>{};var Nn=Tn},25378:function(jn,tn,mt){"use strict";var ft=mt(67294),Ft=mt(14075),$t=mt(57838),ne=mt(74443);function Dt(){let Ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const Wt=(0,ft.useRef)({}),jt=(0,$t.Z)(),Nt=(0,ne.ZP)();return(0,Ft.Z)(()=>{const Ut=Nt.subscribe(De=>{Wt.current=De,Ht&&jt()});return()=>Nt.unsubscribe(Ut)},[]),Wt.current}tn.Z=Dt},31795:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return tr}});var ft=mt(42922),Ft=mt(53978),$t=mt(94184),ne=mt.n($t),Dt=mt(87462),Ht=mt(4942),Wt=mt(71002),jt=mt(97685),Nt=mt(45987),Ut=mt(15671),De=mt(43144);function Yt(){return typeof BigInt=="function"}function de(Xe){return!Xe&&Xe!==0&&!Number.isNaN(Xe)||!String(Xe).trim()}function we(Xe){var mn=Xe.trim(),Tn=mn.startsWith("-");Tn&&(mn=mn.slice(1)),mn=mn.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),mn.startsWith(".")&&(mn="0".concat(mn));var Nn=mn||"0",ge=Nn.split("."),Cn=ge[0]||"0",ai=ge[1]||"0";Cn==="0"&&ai==="0"&&(Tn=!1);var Te=Tn?"-":"";return{negative:Tn,negativeStr:Te,trimStr:Nn,integerStr:Cn,decimalStr:ai,fullStr:"".concat(Te).concat(Nn)}}function ue(Xe){var mn=String(Xe);return!Number.isNaN(Number(mn))&&mn.includes("e")}function he(Xe){var mn=String(Xe);if(ue(Xe)){var Tn=Number(mn.slice(mn.indexOf("e-")+2)),Nn=mn.match(/\.(\d+)/);return Nn!=null&&Nn[1]&&(Tn+=Nn[1].length),Tn}return mn.includes(".")&&ye(mn)?mn.length-mn.indexOf(".")-1:0}function It(Xe){var mn=String(Xe);if(ue(Xe)){if(Xe>Number.MAX_SAFE_INTEGER)return String(Yt()?BigInt(Xe).toString():Number.MAX_SAFE_INTEGER);if(Xe<Number.MIN_SAFE_INTEGER)return String(Yt()?BigInt(Xe).toString():Number.MIN_SAFE_INTEGER);mn=Xe.toFixed(he(mn))}return we(mn).fullStr}function ye(Xe){return typeof Xe=="number"?!Number.isNaN(Xe):Xe?/^\s*-?\d+(\.\d+)?\s*$/.test(Xe)||/^\s*-?\d+\.\s*$/.test(Xe)||/^\s*-?\.\d+\s*$/.test(Xe):!1}var Ze=function(){function Xe(mn){if((0,Ut.Z)(this,Xe),(0,Ht.Z)(this,"origin",""),(0,Ht.Z)(this,"negative",void 0),(0,Ht.Z)(this,"integer",void 0),(0,Ht.Z)(this,"decimal",void 0),(0,Ht.Z)(this,"decimalLen",void 0),(0,Ht.Z)(this,"empty",void 0),(0,Ht.Z)(this,"nan",void 0),de(mn)){this.empty=!0;return}if(this.origin=String(mn),mn==="-"||Number.isNaN(mn)){this.nan=!0;return}var Tn=mn;if(ue(Tn)&&(Tn=Number(Tn)),Tn=typeof Tn=="string"?Tn:It(Tn),ye(Tn)){var Nn=we(Tn);this.negative=Nn.negative;var ge=Nn.trimStr.split(".");this.integer=BigInt(ge[0]);var Cn=ge[1]||"0";this.decimal=BigInt(Cn),this.decimalLen=Cn.length}else this.nan=!0}return(0,De.Z)(Xe,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(Tn){var Nn="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(Tn,"0"));return BigInt(Nn)}},{key:"negate",value:function(){var Tn=new Xe(this.toString());return Tn.negative=!Tn.negative,Tn}},{key:"cal",value:function(Tn,Nn,ge){var Cn=Math.max(this.getDecimalStr().length,Tn.getDecimalStr().length),ai=this.alignDecimal(Cn),Te=Tn.alignDecimal(Cn),ce=Nn(ai,Te).toString(),Oe=ge(Cn),pn=we(ce),fi=pn.negativeStr,$n=pn.trimStr,_e="".concat(fi).concat($n.padStart(Oe+1,"0"));return new Xe("".concat(_e.slice(0,-Oe),".").concat(_e.slice(-Oe)))}},{key:"add",value:function(Tn){if(this.isInvalidate())return new Xe(Tn);var Nn=new Xe(Tn);return Nn.isInvalidate()?this:this.cal(Nn,function(ge,Cn){return ge+Cn},function(ge){return ge})}},{key:"multi",value:function(Tn){var Nn=new Xe(Tn);return this.isInvalidate()||Nn.isInvalidate()?new Xe(NaN):this.cal(Nn,function(ge,Cn){return ge*Cn},function(ge){return ge*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(Tn){return this.toString()===(Tn==null?void 0:Tn.toString())}},{key:"lessEquals",value:function(Tn){return this.add(Tn.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var Tn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Tn?this.isInvalidate()?"":we("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Xe}(),pe=function(){function Xe(mn){if((0,Ut.Z)(this,Xe),(0,Ht.Z)(this,"origin",""),(0,Ht.Z)(this,"number",void 0),(0,Ht.Z)(this,"empty",void 0),de(mn)){this.empty=!0;return}this.origin=String(mn),this.number=Number(mn)}return(0,De.Z)(Xe,[{key:"negate",value:function(){return new Xe(-this.toNumber())}},{key:"add",value:function(Tn){if(this.isInvalidate())return new Xe(Tn);var Nn=Number(Tn);if(Number.isNaN(Nn))return this;var ge=this.number+Nn;if(ge>Number.MAX_SAFE_INTEGER)return new Xe(Number.MAX_SAFE_INTEGER);if(ge<Number.MIN_SAFE_INTEGER)return new Xe(Number.MIN_SAFE_INTEGER);var Cn=Math.max(he(this.number),he(Nn));return new Xe(ge.toFixed(Cn))}},{key:"multi",value:function(Tn){var Nn=Number(Tn);if(this.isInvalidate()||Number.isNaN(Nn))return new Xe(NaN);var ge=this.number*Nn;if(ge>Number.MAX_SAFE_INTEGER)return new Xe(Number.MAX_SAFE_INTEGER);if(ge<Number.MIN_SAFE_INTEGER)return new Xe(Number.MIN_SAFE_INTEGER);var Cn=Math.max(he(this.number),he(Nn));return new Xe(ge.toFixed(Cn))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(Tn){return this.toNumber()===(Tn==null?void 0:Tn.toNumber())}},{key:"lessEquals",value:function(Tn){return this.add(Tn.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var Tn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Tn?this.isInvalidate()?"":It(this.number):this.origin}}]),Xe}();function be(Xe){return Yt()?new Ze(Xe):new pe(Xe)}function Rt(Xe,mn,Tn){var Nn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Xe==="")return"";var ge=we(Xe),Cn=ge.negativeStr,ai=ge.integerStr,Te=ge.decimalStr,ce="".concat(mn).concat(Te),Oe="".concat(Cn).concat(ai);if(Tn>=0){var pn=Number(Te[Tn]);if(pn>=5&&!Nn){var fi=be(Xe).add("".concat(Cn,"0.").concat("0".repeat(Tn)).concat(10-pn));return Rt(fi.toString(),mn,Tn,Nn)}return Tn===0?Oe:"".concat(Oe).concat(mn).concat(Te.padEnd(Tn,"0").slice(0,Tn))}return ce===".0"?Oe:"".concat(Oe).concat(ce)}var zt=be,Qt=mt(67656),te=mt(67294);function Ie(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var He=Ie()?te.useLayoutEffect:te.useEffect,en=function(mn,Tn){var Nn=te.useRef(!0);He(function(){return mn(Nn.current)},Tn),He(function(){return Nn.current=!1,function(){Nn.current=!0}},[])},ie=function(mn,Tn){en(function(Nn){if(!Nn)return mn()},Tn)},an=en,nn=mt(27183);function Vn(Xe,mn,Tn){var Nn=React.useRef({});return(!("value"in Nn.current)||Tn(Nn.current.condition,mn))&&(Nn.current.value=Xe(),Nn.current.condition=mn),Nn.current.value}function Ne(Xe,mn){typeof Xe=="function"?Xe(mn):(0,Wt.Z)(Xe)==="object"&&Xe&&"current"in Xe&&(Xe.current=mn)}function Ye(){for(var Xe=arguments.length,mn=new Array(Xe),Tn=0;Tn<Xe;Tn++)mn[Tn]=arguments[Tn];var Nn=mn.filter(function(ge){return ge});return Nn.length<=1?Nn[0]:function(ge){mn.forEach(function(Cn){Ne(Cn,ge)})}}function zn(){for(var Xe=arguments.length,mn=new Array(Xe),Tn=0;Tn<Xe;Tn++)mn[Tn]=arguments[Tn];return useMemo(function(){return Ye.apply(void 0,mn)},mn,function(Nn,ge){return Nn.length!==ge.length||Nn.every(function(Cn,ai){return Cn!==ge[ai]})})}function Gn(Xe){var mn,Tn,Nn=isMemo(Xe)?Xe.type.type:Xe.type;return!(typeof Nn=="function"&&!((mn=Nn.prototype)!==null&&mn!==void 0&&mn.render)||typeof Xe=="function"&&!((Tn=Xe.prototype)!==null&&Tn!==void 0&&Tn.render))}function Me(Xe){return!isValidElement(Xe)||isFragment(Xe)?!1:Gn(Xe)}var _t={},rn=[],ti=function(mn){rn.push(mn)};function vn(Xe,mn){if(0)var Tn}function ze(Xe,mn){if(0)var Tn}function on(){_t={}}function On(Xe,mn,Tn){!mn&&!_t[Tn]&&(Xe(!1,Tn),_t[Tn]=!0)}function Ni(Xe,mn){On(vn,Xe,mn)}function gi(Xe,mn){On(ze,Xe,mn)}Ni.preMessage=ti,Ni.resetWarned=on,Ni.noteOnce=gi;var Dn=Ni;function Jn(Xe,mn){var Tn=(0,te.useRef)(null);function Nn(){try{var Cn=Xe.selectionStart,ai=Xe.selectionEnd,Te=Xe.value,ce=Te.substring(0,Cn),Oe=Te.substring(ai);Tn.current={start:Cn,end:ai,value:Te,beforeTxt:ce,afterTxt:Oe}}catch(pn){}}function ge(){if(Xe&&Tn.current&&mn)try{var Cn=Xe.value,ai=Tn.current,Te=ai.beforeTxt,ce=ai.afterTxt,Oe=ai.start,pn=Cn.length;if(Cn.endsWith(ce))pn=Cn.length-Tn.current.afterTxt.length;else if(Cn.startsWith(Te))pn=Te.length;else{var fi=Te[Oe-1],$n=Cn.indexOf(fi,Oe-1);$n!==-1&&(pn=$n+1)}Xe.setSelectionRange(pn,pn)}catch(_e){Dn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(_e.message))}}return[Nn,ge]}var Ai=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Xe=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Xe)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Xe==null?void 0:Xe.substr(0,4))},hi=function(){var mn=(0,te.useState)(!1),Tn=(0,jt.Z)(mn,2),Nn=Tn[0],ge=Tn[1];return an(function(){ge(Ai())},[]),Nn},qt=hi,kt=function(mn){return+setTimeout(mn,16)},Ct=function(mn){return clearTimeout(mn)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(kt=function(mn){return window.requestAnimationFrame(mn)},Ct=function(mn){return window.cancelAnimationFrame(mn)});var Pt=0,At=new Map;function wt(Xe){At.delete(Xe)}var Xt=function(mn){var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Pt+=1;var Nn=Pt;function ge(Cn){if(Cn===0)wt(Nn),mn();else{var ai=kt(function(){ge(Cn-1)});At.set(Nn,ai)}}return ge(Tn),Nn};Xt.cancel=function(Xe){var mn=At.get(Xe);return wt(mn),Ct(mn)};var Re=Xt,We=200,In=600;function Hn(Xe){var mn=Xe.prefixCls,Tn=Xe.upNode,Nn=Xe.downNode,ge=Xe.upDisabled,Cn=Xe.downDisabled,ai=Xe.onStep,Te=te.useRef(),ce=te.useRef([]),Oe=te.useRef();Oe.current=ai;var pn=function(){clearTimeout(Te.current)},fi=function(xi,Yi){xi.preventDefault(),pn(),Oe.current(Yi);function ci(){Oe.current(Yi),Te.current=setTimeout(ci,We)}Te.current=setTimeout(ci,In)};te.useEffect(function(){return function(){pn(),ce.current.forEach(function(un){return Re.cancel(un)})}},[]);var $n=qt();if($n)return null;var _e="".concat(mn,"-handler"),ri=ne()(_e,"".concat(_e,"-up"),(0,Ht.Z)({},"".concat(_e,"-up-disabled"),ge)),Ri=ne()(_e,"".concat(_e,"-down"),(0,Ht.Z)({},"".concat(_e,"-down-disabled"),Cn)),$e=function(){return ce.current.push(Re(pn))},Ge={unselectable:"on",role:"button",onMouseUp:$e,onMouseLeave:$e};return te.createElement("div",{className:"".concat(_e,"-wrap")},te.createElement("span",(0,Dt.Z)({},Ge,{onMouseDown:function(xi){fi(xi,!0)},"aria-label":"Increase Value","aria-disabled":ge,className:ri}),Tn||te.createElement("span",{unselectable:"on",className:"".concat(mn,"-handler-up-inner")})),te.createElement("span",(0,Dt.Z)({},Ge,{onMouseDown:function(xi){fi(xi,!1)},"aria-label":"Decrease Value","aria-disabled":Cn,className:Ri}),Nn||te.createElement("span",{unselectable:"on",className:"".concat(mn,"-handler-down-inner")})))}function Un(Xe){var mn=typeof Xe=="number"?It(Xe):we(Xe).fullStr,Tn=mn.includes(".");return Tn?we(mn.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Xe+"0"}var Yn=mt(87887),Fe=function(){var Xe=(0,te.useRef)(0),mn=function(){Re.cancel(Xe.current)};return(0,te.useEffect)(function(){return mn},[]),function(Tn){mn(),Xe.current=Re(function(){Tn()})}},bn=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],En=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],Qn=function(mn,Tn){return mn||Tn.isEmpty()?Tn.toString():Tn.toNumber()},Sn=function(mn){var Tn=zt(mn);return Tn.isInvalidate()?null:Tn},Vi=te.forwardRef(function(Xe,mn){var Tn,Nn=Xe.prefixCls,ge=Nn===void 0?"rc-input-number":Nn,Cn=Xe.className,ai=Xe.style,Te=Xe.min,ce=Xe.max,Oe=Xe.step,pn=Oe===void 0?1:Oe,fi=Xe.defaultValue,$n=Xe.value,_e=Xe.disabled,ri=Xe.readOnly,Ri=Xe.upHandler,$e=Xe.downHandler,Ge=Xe.keyboard,un=Xe.controls,xi=un===void 0?!0:un,Yi=Xe.classNames,ci=Xe.stringMode,Xn=Xe.parser,qn=Xe.formatter,Ki=Xe.precision,vr=Xe.decimalSeparator,ki=Xe.onChange,Or=Xe.onInput,Ii=Xe.onPressEnter,ao=Xe.onStep,qr=(0,Nt.Z)(Xe,bn),Do="".concat(ge,"-input"),ui=te.useRef(null),Co=te.useState(!1),bo=(0,jt.Z)(Co,2),Kr=bo[0],wo=bo[1],Sr=te.useRef(!1),Xr=te.useRef(!1),Br=te.useRef(!1),yo=te.useState(function(){return zt($n!=null?$n:fi)}),ko=(0,jt.Z)(yo,2),oi=ko[0],kn=ko[1];function Ce(_i){$n===void 0&&kn(_i)}var si=te.useCallback(function(_i,Ui){if(!Ui)return Ki>=0?Ki:Math.max(he(_i),he(pn))},[Ki,pn]),Wi=te.useCallback(function(_i){var Ui=String(_i);if(Xn)return Xn(Ui);var qi=Ui;return vr&&(qi=qi.replace(vr,".")),qi.replace(/[^\w.-]+/g,"")},[Xn,vr]),Gi=te.useRef(""),Tr=te.useCallback(function(_i,Ui){if(qn)return qn(_i,{userTyping:Ui,input:String(Gi.current)});var qi=typeof _i=="number"?It(_i):_i;if(!Ui){var lr=si(qi,Ui);if(ye(qi)&&(vr||lr>=0)){var je=vr||".";qi=Rt(qi,je,lr)}}return qi},[qn,si,vr]),Lr=te.useState(function(){var _i=fi!=null?fi:$n;return oi.isInvalidate()&&["string","number"].includes((0,Wt.Z)(_i))?Number.isNaN(_i)?"":_i:Tr(oi.toString(),!1)}),Cr=(0,jt.Z)(Lr,2),jr=Cr[0],Jr=Cr[1];Gi.current=jr;function Wr(_i,Ui){Jr(Tr(_i.isInvalidate()?_i.toString(!1):_i.toString(!Ui),Ui))}var or=te.useMemo(function(){return Sn(ce)},[ce,Ki]),Gt=te.useMemo(function(){return Sn(Te)},[Te,Ki]),Zn=te.useMemo(function(){return!or||!oi||oi.isInvalidate()?!1:or.lessEquals(oi)},[or,oi]),wi=te.useMemo(function(){return!Gt||!oi||oi.isInvalidate()?!1:oi.lessEquals(Gt)},[Gt,oi]),Fi=Jn(ui.current,Kr),Tt=(0,jt.Z)(Fi,2),ee=Tt[0],le=Tt[1],xe=function(Ui){return or&&!Ui.lessEquals(or)?or:Gt&&!Gt.lessEquals(Ui)?Gt:null},fe=function(Ui){return!xe(Ui)},Ee=function(Ui,qi){var lr=Ui,je=fe(lr)||lr.isEmpty();if(!lr.isEmpty()&&!qi&&(lr=xe(lr)||lr,je=!0),!ri&&!_e&&je){var ve=lr.toString(),ke=si(ve,qi);return ke>=0&&(lr=zt(Rt(ve,".",ke)),fe(lr)||(lr=zt(Rt(ve,".",ke,!0)))),lr.equals(oi)||(Ce(lr),ki==null||ki(lr.isEmpty()?null:Qn(ci,lr)),$n===void 0&&Wr(lr,qi)),lr}return oi},Ae=Fe(),yn=function _i(Ui){if(ee(),Gi.current=Ui,Jr(Ui),!Xr.current){var qi=Wi(Ui),lr=zt(qi);lr.isNaN()||Ee(lr,!0)}Or==null||Or(Ui),Ae(function(){var je=Ui;Xn||(je=Ui.replace(/。/g,".")),je!==Ui&&_i(je)})},Rn=function(){Xr.current=!0},Pi=function(){Xr.current=!1,yn(ui.current.value)},An=function(Ui){yn(Ui.target.value)},Mi=function(Ui){var qi;if(!(Ui&&Zn||!Ui&&wi)){Sr.current=!1;var lr=zt(Br.current?Un(pn):pn);Ui||(lr=lr.negate());var je=(oi||zt(0)).add(lr.toString()),ve=Ee(je,!1);ao==null||ao(Qn(ci,ve),{offset:Br.current?Un(pn):pn,type:Ui?"up":"down"}),(qi=ui.current)===null||qi===void 0||qi.focus()}},pi=function(Ui){var qi=zt(Wi(jr)),lr=qi;qi.isNaN()?lr=Ee(oi,Ui):lr=Ee(qi,Ui),$n!==void 0?Wr(oi,!1):lr.isNaN()||Wr(lr,!1)},di=function(){Sr.current=!0},Wn=function(Ui){var qi=Ui.key,lr=Ui.shiftKey;Sr.current=!0,Br.current=lr,qi==="Enter"&&(Xr.current||(Sr.current=!1),pi(!1),Ii==null||Ii(Ui)),Ge!==!1&&!Xr.current&&["Up","ArrowUp","Down","ArrowDown"].includes(qi)&&(Mi(qi==="Up"||qi==="ArrowUp"),Ui.preventDefault())},Bi=function(){Sr.current=!1,Br.current=!1},sr=function(){pi(!1),wo(!1),Sr.current=!1};return ie(function(){oi.isInvalidate()||Wr(oi,!1)},[Ki]),ie(function(){var _i=zt($n);kn(_i);var Ui=zt(Wi(jr));(!_i.equals(Ui)||!Sr.current||qn)&&Wr(_i,Sr.current)},[$n]),ie(function(){qn&&le()},[jr]),te.createElement("div",{className:ne()(ge,Yi==null?void 0:Yi.input,Cn,(Tn={},(0,Ht.Z)(Tn,"".concat(ge,"-focused"),Kr),(0,Ht.Z)(Tn,"".concat(ge,"-disabled"),_e),(0,Ht.Z)(Tn,"".concat(ge,"-readonly"),ri),(0,Ht.Z)(Tn,"".concat(ge,"-not-a-number"),oi.isNaN()),(0,Ht.Z)(Tn,"".concat(ge,"-out-of-range"),!oi.isInvalidate()&&!fe(oi)),Tn)),style:ai,onFocus:function(){wo(!0)},onBlur:sr,onKeyDown:Wn,onKeyUp:Bi,onCompositionStart:Rn,onCompositionEnd:Pi,onBeforeInput:di},xi&&te.createElement(Hn,{prefixCls:ge,upNode:Ri,downNode:$e,upDisabled:Zn,downDisabled:wi,onStep:Mi}),te.createElement("div",{className:"".concat(Do,"-wrap")},te.createElement("input",(0,Dt.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Te,"aria-valuemax":ce,"aria-valuenow":oi.isInvalidate()?null:oi.toString(),step:pn},qr,{ref:Ye(ui,mn),className:Do,value:jr,onChange:An,disabled:_e,readOnly:ri}))))}),Qe=te.forwardRef(function(Xe,mn){var Tn=Xe.disabled,Nn=Xe.style,ge=Xe.prefixCls,Cn=Xe.value,ai=Xe.prefix,Te=Xe.suffix,ce=Xe.addonBefore,Oe=Xe.addonAfter,pn=Xe.classes,fi=Xe.className,$n=Xe.classNames,_e=(0,Nt.Z)(Xe,En),ri=te.useRef(null),Ri=function(Ge){ri.current&&(0,Yn.nH)(ri.current,Ge)};return te.createElement(Qt.BaseInput,{inputElement:te.createElement(Vi,(0,Dt.Z)({prefixCls:ge,disabled:Tn,classNames:$n,ref:Ye(ri,mn)},_e)),className:fi,triggerFocus:Ri,prefixCls:ge,value:Cn,disabled:Tn,style:Nn,prefix:ai,suffix:Te,addonAfter:Oe,addonBefore:ce,classes:pn,classNames:$n,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});Qe.displayName="InputNumber";var Pn=Qe,Ci=Pn,yi=mt(9708),Oi=mt(53124),ar=mt(46735),br=mt(98866),wr=mt(98675),cr=mt(65223),Ar=mt(4173),ir=mt(47673),kr=mt(14747),po=mt(80110),So=mt(67968),Eo=mt(45503);const Yr=(Xe,mn)=>{let{componentCls:Tn,borderRadiusSM:Nn,borderRadiusLG:ge}=Xe;const Cn=mn==="lg"?ge:Nn;return{[`&-${mn}`]:{[`${Tn}-handler-wrap`]:{borderStartEndRadius:Cn,borderEndEndRadius:Cn},[`${Tn}-handler-up`]:{borderStartEndRadius:Cn},[`${Tn}-handler-down`]:{borderEndEndRadius:Cn}}}},Mn=Xe=>{const{componentCls:mn,lineWidth:Tn,lineType:Nn,colorBorder:ge,borderRadius:Cn,fontSizeLG:ai,controlHeightLG:Te,controlHeightSM:ce,colorError:Oe,paddingInlineSM:pn,colorTextDescription:fi,motionDurationMid:$n,handleHoverColor:_e,paddingInline:ri,paddingBlock:Ri,handleBg:$e,handleActiveBg:Ge,colorTextDisabled:un,borderRadiusSM:xi,borderRadiusLG:Yi,controlWidth:ci,handleVisible:Xn,handleBorderColor:qn}=Xe;return[{[mn]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,kr.Wf)(Xe)),(0,ir.ik)(Xe)),(0,ir.bi)(Xe,mn)),{display:"inline-block",width:ci,margin:0,padding:0,border:`${Tn}px ${Nn} ${ge}`,borderRadius:Cn,"&-rtl":{direction:"rtl",[`${mn}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:ai,borderRadius:Yi,[`input${mn}-input`]:{height:Te-2*Tn}},"&-sm":{padding:0,borderRadius:xi,[`input${mn}-input`]:{height:ce-2*Tn,padding:`0 ${pn}px`}},"&:hover":Object.assign({},(0,ir.pU)(Xe)),"&-focused":Object.assign({},(0,ir.M1)(Xe)),"&-out-of-range":{[`${mn}-input-wrap`]:{input:{color:Oe}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,kr.Wf)(Xe)),(0,ir.s7)(Xe)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${mn}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${mn}-group-addon`]:{borderRadius:Yi,fontSize:Xe.fontSizeLG}},"&-sm":{[`${mn}-group-addon`]:{borderRadius:xi}},[`${mn}-wrapper-disabled > ${mn}-group-addon`]:Object.assign({},(0,ir.Xy)(Xe))}}),[`&-disabled ${mn}-input`]:{cursor:"not-allowed"},[mn]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,kr.Wf)(Xe)),{width:"100%",padding:`${Ri}px ${ri}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Cn,outline:0,transition:`all ${$n} linear`,appearance:"textfield",fontSize:"inherit"}),(0,ir.nz)(Xe.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[mn]:Object.assign(Object.assign(Object.assign({[`&:hover ${mn}-handler-wrap, &-focused ${mn}-handler-wrap`]:{opacity:1},[`${mn}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Xe.handleWidth,height:"100%",background:$e,borderStartStartRadius:0,borderStartEndRadius:Cn,borderEndEndRadius:Cn,borderEndStartRadius:0,opacity:Xn===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${$n} linear ${$n}`,[`${mn}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${mn}-handler-up-inner,
|
|
|
${mn}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:Xe.handleFontSize}}},[`${mn}-handler`]:{height:"50%",overflow:"hidden",color:fi,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Tn}px ${Nn} ${qn}`,transition:`all ${$n} linear`,"&:active":{background:Ge},"&:hover":{height:"60%",[`
|
|
|
${mn}-handler-up-inner,
|
|
|
${mn}-handler-down-inner
|
|
|
`]:{color:_e}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,kr.Ro)()),{color:fi,transition:`all ${$n} linear`,userSelect:"none"})},[`${mn}-handler-up`]:{borderStartEndRadius:Cn},[`${mn}-handler-down`]:{borderBlockStart:`${Tn}px ${Nn} ${qn}`,borderEndEndRadius:Cn}},Yr(Xe,"lg")),Yr(Xe,"sm")),{"&-disabled, &-readonly":{[`${mn}-handler-wrap`]:{display:"none"},[`${mn}-input`]:{color:"inherit"}},[`
|
|
|
${mn}-handler-up-disabled,
|
|
|
${mn}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${mn}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${mn}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:un}})},{[`${mn}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${mn}-handler-down`]:{borderBlockStartWidth:0}}}]},St=Xe=>{const{componentCls:mn,paddingBlock:Tn,paddingInline:Nn,inputAffixPadding:ge,controlWidth:Cn,borderRadiusLG:ai,borderRadiusSM:Te}=Xe;return{[`${mn}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,ir.ik)(Xe)),(0,ir.bi)(Xe,`${mn}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:Cn,padding:0,paddingInlineStart:Nn,"&-lg":{borderRadius:ai},"&-sm":{borderRadius:Te},[`&:not(${mn}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,ir.pU)(Xe)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${mn}-disabled`]:{background:"transparent"},[`> div${mn}`]:{width:"100%",border:"none",outline:"none",[`&${mn}-focused`]:{boxShadow:"none !important"}},[`input${mn}-input`]:{padding:`${Tn}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${mn}-handler-wrap`]:{zIndex:2},[mn]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:ge},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Nn,marginInlineStart:ge}}})}};var Zi=(0,So.Z)("InputNumber",Xe=>{const mn=(0,Eo.TS)(Xe,(0,ir.e5)(Xe));return[Mn(mn),St(mn),(0,po.c)(mn)]},Xe=>Object.assign(Object.assign({},(0,ir.TM)(Xe)),{controlWidth:90,handleWidth:Xe.controlHeightSM-Xe.lineWidth*2,handleFontSize:Xe.fontSize/2,handleVisible:"auto",handleActiveBg:Xe.colorFillAlter,handleBg:Xe.colorBgContainer,handleHoverColor:Xe.colorPrimary,handleBorderColor:Xe.colorBorder})),mi=function(Xe,mn){var Tn={};for(var Nn in Xe)Object.prototype.hasOwnProperty.call(Xe,Nn)&&mn.indexOf(Nn)<0&&(Tn[Nn]=Xe[Nn]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,Nn=Object.getOwnPropertySymbols(Xe);ge<Nn.length;ge++)mn.indexOf(Nn[ge])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Nn[ge])&&(Tn[Nn[ge]]=Xe[Nn[ge]]);return Tn};const rr=te.forwardRef((Xe,mn)=>{const{getPrefixCls:Tn,direction:Nn}=te.useContext(Oi.E_),ge=te.useRef(null);te.useImperativeHandle(mn,()=>ge.current);const{className:Cn,rootClassName:ai,size:Te,disabled:ce,prefixCls:Oe,addonBefore:pn,addonAfter:fi,prefix:$n,bordered:_e=!0,readOnly:ri,status:Ri,controls:$e}=Xe,Ge=mi(Xe,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),un=Tn("input-number",Oe),[xi,Yi]=Zi(un),{compactSize:ci,compactItemClassnames:Xn}=(0,Ar.ri)(un,Nn);let qn=te.createElement(Ft.Z,{className:`${un}-handler-up-inner`}),Ki=te.createElement(ft.Z,{className:`${un}-handler-down-inner`});const vr=typeof $e=="boolean"?$e:void 0;typeof $e=="object"&&(qn=typeof $e.upIcon=="undefined"?qn:te.createElement("span",{className:`${un}-handler-up-inner`},$e.upIcon),Ki=typeof $e.downIcon=="undefined"?Ki:te.createElement("span",{className:`${un}-handler-down-inner`},$e.downIcon));const{hasFeedback:ki,status:Or,isFormItemInput:Ii,feedbackIcon:ao}=te.useContext(cr.aM),qr=(0,yi.F)(Or,Ri),Do=(0,wr.Z)(Sr=>{var Xr;return(Xr=Te!=null?Te:ci)!==null&&Xr!==void 0?Xr:Sr}),ui=te.useContext(br.Z),Co=ce!=null?ce:ui,bo=ne()({[`${un}-lg`]:Do==="large",[`${un}-sm`]:Do==="small",[`${un}-rtl`]:Nn==="rtl",[`${un}-borderless`]:!_e,[`${un}-in-form-item`]:Ii},(0,yi.Z)(un,qr),Xn,Yi),Kr=`${un}-group`,wo=te.createElement(Ci,Object.assign({ref:ge,disabled:Co,className:ne()(Cn,ai),upHandler:qn,downHandler:Ki,prefixCls:un,readOnly:ri,controls:vr,prefix:$n,suffix:ki&&ao,addonAfter:fi&&te.createElement(Ar.BR,null,te.createElement(cr.Ux,{override:!0,status:!0},fi)),addonBefore:pn&&te.createElement(Ar.BR,null,te.createElement(cr.Ux,{override:!0,status:!0},pn)),classNames:{input:bo},classes:{affixWrapper:ne()((0,yi.Z)(`${un}-affix-wrapper`,qr,ki),{[`${un}-affix-wrapper-sm`]:Do==="small",[`${un}-affix-wrapper-lg`]:Do==="large",[`${un}-affix-wrapper-rtl`]:Nn==="rtl",[`${un}-affix-wrapper-borderless`]:!_e},Yi),wrapper:ne()({[`${Kr}-rtl`]:Nn==="rtl",[`${un}-wrapper-disabled`]:Co},Yi),group:ne()({[`${un}-group-wrapper-sm`]:Do==="small",[`${un}-group-wrapper-lg`]:Do==="large",[`${un}-group-wrapper-rtl`]:Nn==="rtl"},(0,yi.Z)(`${un}-group-wrapper`,qr,ki),Yi)}},Ge));return xi(wo)}),fr=rr,pr=Xe=>te.createElement(ar.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},te.createElement(rr,Object.assign({},Xe)));fr._InternalPanelDoNotUseOrYouWillBeFired=pr;var tr=fr},82586:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Ze},n:function(){return It}});var ft=mt(16646),Ft=mt(94184),$t=mt.n(Ft),ne=mt(67656),Dt=mt(17799),Ht=mt(67294),Wt=mt(9708),jt=mt(53124),Nt=mt(98866),Ut=mt(98675),De=mt(65223),Yt=mt(4173),de=mt(72922),we=mt(47673);function ue(pe){return!!(pe.prefix||pe.suffix||pe.allowClear)}var he=function(pe,be){var Rt={};for(var zt in pe)Object.prototype.hasOwnProperty.call(pe,zt)&&be.indexOf(zt)<0&&(Rt[zt]=pe[zt]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qt=0,zt=Object.getOwnPropertySymbols(pe);Qt<zt.length;Qt++)be.indexOf(zt[Qt])<0&&Object.prototype.propertyIsEnumerable.call(pe,zt[Qt])&&(Rt[zt[Qt]]=pe[zt[Qt]]);return Rt};function It(pe,be){if(!pe)return;pe.focus(be);const{cursor:Rt}=be||{};if(Rt){const zt=pe.value.length;switch(Rt){case"start":pe.setSelectionRange(0,0);break;case"end":pe.setSelectionRange(zt,zt);break;default:pe.setSelectionRange(0,zt);break}}}var Ze=(0,Ht.forwardRef)((pe,be)=>{var Rt;const{prefixCls:zt,bordered:Qt=!0,status:te,size:Ie,disabled:He,onBlur:en,onFocus:ie,suffix:an,allowClear:nn,addonAfter:Vn,addonBefore:Ne,className:Ye,style:zn,styles:Gn,rootClassName:Me,onChange:_t,classNames:rn}=pe,ti=he(pe,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:vn,direction:ze,input:on}=Ht.useContext(jt.E_),On=vn("input",zt),Ni=(0,Ht.useRef)(null),[gi,Dn]=(0,we.ZP)(On),{compactSize:Jn,compactItemClassnames:Ai}=(0,Yt.ri)(On,ze),hi=(0,Ut.Z)(bn=>{var En;return(En=Ie!=null?Ie:Jn)!==null&&En!==void 0?En:bn}),qt=Ht.useContext(Nt.Z),kt=He!=null?He:qt,{status:Ct,hasFeedback:Pt,feedbackIcon:At}=(0,Ht.useContext)(De.aM),wt=(0,Wt.F)(Ct,te),Xt=ue(pe)||!!Pt,Re=(0,Ht.useRef)(Xt);(0,Ht.useEffect)(()=>{var bn;Xt&&Re.current,Re.current=Xt},[Xt]);const We=(0,de.Z)(Ni,!0),In=bn=>{We(),en==null||en(bn)},Hn=bn=>{We(),ie==null||ie(bn)},Un=bn=>{We(),_t==null||_t(bn)},Yn=(Pt||an)&&Ht.createElement(Ht.Fragment,null,an,Pt&&At);let Fe;return typeof nn=="object"&&(nn!=null&&nn.clearIcon)?Fe=nn:nn&&(Fe={clearIcon:Ht.createElement(ft.Z,null)}),gi(Ht.createElement(ne.default,Object.assign({ref:(0,Dt.sQ)(be,Ni),prefixCls:On,autoComplete:on==null?void 0:on.autoComplete},ti,{disabled:kt,onBlur:In,onFocus:Hn,style:Object.assign(Object.assign({},on==null?void 0:on.style),zn),styles:Object.assign(Object.assign({},on==null?void 0:on.styles),Gn),suffix:Yn,allowClear:Fe,className:$t()(Ye,Me,Ai,on==null?void 0:on.className),onChange:Un,addonAfter:Vn&&Ht.createElement(Yt.BR,null,Ht.createElement(De.Ux,{override:!0,status:!0},Vn)),addonBefore:Ne&&Ht.createElement(Yt.BR,null,Ht.createElement(De.Ux,{override:!0,status:!0},Ne)),classNames:Object.assign(Object.assign(Object.assign({},rn),on==null?void 0:on.classNames),{input:$t()({[`${On}-sm`]:hi==="small",[`${On}-lg`]:hi==="large",[`${On}-rtl`]:ze==="rtl",[`${On}-borderless`]:!Qt},!Xt&&(0,Wt.Z)(On,wt),rn==null?void 0:rn.input,(Rt=on==null?void 0:on.classNames)===null||Rt===void 0?void 0:Rt.input,Dn)}),classes:{affixWrapper:$t()({[`${On}-affix-wrapper-sm`]:hi==="small",[`${On}-affix-wrapper-lg`]:hi==="large",[`${On}-affix-wrapper-rtl`]:ze==="rtl",[`${On}-affix-wrapper-borderless`]:!Qt},(0,Wt.Z)(`${On}-affix-wrapper`,wt,Pt),Dn),wrapper:$t()({[`${On}-group-rtl`]:ze==="rtl"},Dn),group:$t()({[`${On}-group-wrapper-sm`]:hi==="small",[`${On}-group-wrapper-lg`]:hi==="large",[`${On}-group-wrapper-rtl`]:ze==="rtl",[`${On}-group-wrapper-disabled`]:kt},(0,Wt.Z)(`${On}-group-wrapper`,wt,Pt),Dn)}})))})},96330:function(jn,tn,mt){"use strict";var ft=mt(16646),Ft=mt(94184),$t=mt.n(Ft),ne=mt(64701),Dt=mt(67294),Ht=mt(9708),Wt=mt(53124),jt=mt(98866),Nt=mt(98675),Ut=mt(65223),De=mt(82586),Yt=mt(47673),de=function(ue,he){var It={};for(var ye in ue)Object.prototype.hasOwnProperty.call(ue,ye)&&he.indexOf(ye)<0&&(It[ye]=ue[ye]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,ye=Object.getOwnPropertySymbols(ue);Ze<ye.length;Ze++)he.indexOf(ye[Ze])<0&&Object.prototype.propertyIsEnumerable.call(ue,ye[Ze])&&(It[ye[Ze]]=ue[ye[Ze]]);return It};const we=(0,Dt.forwardRef)((ue,he)=>{const{prefixCls:It,bordered:ye=!0,size:Ze,disabled:pe,status:be,allowClear:Rt,showCount:zt,classNames:Qt,rootClassName:te,className:Ie}=ue,He=de(ue,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:en,direction:ie}=Dt.useContext(Wt.E_),an=(0,Nt.Z)(Ze),nn=Dt.useContext(jt.Z),Vn=pe!=null?pe:nn,{status:Ne,hasFeedback:Ye,feedbackIcon:zn}=Dt.useContext(Ut.aM),Gn=(0,Ht.F)(Ne,be),Me=Dt.useRef(null);Dt.useImperativeHandle(he,()=>{var ze;return{resizableTextArea:(ze=Me.current)===null||ze===void 0?void 0:ze.resizableTextArea,focus:on=>{var On,Ni;(0,De.n)((Ni=(On=Me.current)===null||On===void 0?void 0:On.resizableTextArea)===null||Ni===void 0?void 0:Ni.textArea,on)},blur:()=>{var on;return(on=Me.current)===null||on===void 0?void 0:on.blur()}}});const _t=en("input",It);let rn;typeof Rt=="object"&&(Rt!=null&&Rt.clearIcon)?rn=Rt:Rt&&(rn={clearIcon:Dt.createElement(ft.Z,null)});const[ti,vn]=(0,Yt.ZP)(_t);return ti(Dt.createElement(ne.default,Object.assign({},He,{disabled:Vn,allowClear:rn,className:$t()(Ie,te),classes:{affixWrapper:$t()(`${_t}-textarea-affix-wrapper`,{[`${_t}-affix-wrapper-rtl`]:ie==="rtl",[`${_t}-affix-wrapper-borderless`]:!ye,[`${_t}-affix-wrapper-sm`]:an==="small",[`${_t}-affix-wrapper-lg`]:an==="large",[`${_t}-textarea-show-count`]:zt},(0,Ht.Z)(`${_t}-affix-wrapper`,Gn),vn)},classNames:Object.assign(Object.assign({},Qt),{textarea:$t()({[`${_t}-borderless`]:!ye,[`${_t}-sm`]:an==="small",[`${_t}-lg`]:an==="large"},(0,Ht.Z)(_t,Gn),vn,Qt==null?void 0:Qt.textarea)}),prefixCls:_t,suffix:Ye&&Dt.createElement("span",{className:`${_t}-textarea-suffix`},zn),showCount:zt,ref:Me})))});tn.Z=we},72922:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Ft}});var ft=mt(67294);function Ft($t,ne){const Dt=(0,ft.useRef)([]),Ht=()=>{Dt.current.push(setTimeout(()=>{var Wt,jt,Nt,Ut;!((Wt=$t.current)===null||Wt===void 0)&&Wt.input&&((jt=$t.current)===null||jt===void 0?void 0:jt.input.getAttribute("type"))==="password"&&(!((Nt=$t.current)===null||Nt===void 0)&&Nt.input.hasAttribute("value"))&&((Ut=$t.current)===null||Ut===void 0||Ut.input.removeAttribute("value"))}))};return(0,ft.useEffect)(()=>(ne&&Ht(),()=>Dt.current.forEach(Wt=>{Wt&&clearTimeout(Wt)})),[]),Ht}},69677:function(jn,tn,mt){"use strict";mt.d(tn,{default:function(){return an}});var ft=mt(94184),Ft=mt.n(ft),$t=mt(67294),ne=mt(53124),Dt=mt(65223),Ht=mt(47673),jt=nn=>{const{getPrefixCls:Vn,direction:Ne}=(0,$t.useContext)(ne.E_),{prefixCls:Ye,className:zn}=nn,Gn=Vn("input-group",Ye),Me=Vn("input"),[_t,rn]=(0,Ht.ZP)(Me),ti=Ft()(Gn,{[`${Gn}-lg`]:nn.size==="large",[`${Gn}-sm`]:nn.size==="small",[`${Gn}-compact`]:nn.compact,[`${Gn}-rtl`]:Ne==="rtl"},rn,zn),vn=(0,$t.useContext)(Dt.aM),ze=(0,$t.useMemo)(()=>Object.assign(Object.assign({},vn),{isFormItemInput:!1}),[vn]);return _t($t.createElement("span",{className:ti,style:nn.style,onMouseEnter:nn.onMouseEnter,onMouseLeave:nn.onMouseLeave,onFocus:nn.onFocus,onBlur:nn.onBlur},$t.createElement(Dt.aM.Provider,{value:ze},nn.children)))},Nt=mt(82586),Ut=mt(63237),De=mt(99569),Yt=mt(10366),de=mt(17799),we=mt(72922),ue=function(nn,Vn){var Ne={};for(var Ye in nn)Object.prototype.hasOwnProperty.call(nn,Ye)&&Vn.indexOf(Ye)<0&&(Ne[Ye]=nn[Ye]);if(nn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zn=0,Ye=Object.getOwnPropertySymbols(nn);zn<Ye.length;zn++)Vn.indexOf(Ye[zn])<0&&Object.prototype.propertyIsEnumerable.call(nn,Ye[zn])&&(Ne[Ye[zn]]=nn[Ye[zn]]);return Ne};const he=nn=>nn?$t.createElement(De.Z,null):$t.createElement(Ut.Z,null),It={click:"onClick",hover:"onMouseOver"};var Ze=$t.forwardRef((nn,Vn)=>{const{visibilityToggle:Ne=!0}=nn,Ye=typeof Ne=="object"&&Ne.visible!==void 0,[zn,Gn]=(0,$t.useState)(()=>Ye?Ne.visible:!1),Me=(0,$t.useRef)(null);$t.useEffect(()=>{Ye&&Gn(Ne.visible)},[Ye,Ne]);const _t=(0,we.Z)(Me),rn=()=>{const{disabled:kt}=nn;kt||(zn&&_t(),Gn(Ct=>{var Pt;const At=!Ct;return typeof Ne=="object"&&((Pt=Ne.onVisibleChange)===null||Pt===void 0||Pt.call(Ne,At)),At}))},ti=kt=>{const{action:Ct="click",iconRender:Pt=he}=nn,At=It[Ct]||"",wt=Pt(zn),Xt={[At]:rn,className:`${kt}-icon`,key:"passwordIcon",onMouseDown:Re=>{Re.preventDefault()},onMouseUp:Re=>{Re.preventDefault()}};return $t.cloneElement($t.isValidElement(wt)?wt:$t.createElement("span",null,wt),Xt)},{className:vn,prefixCls:ze,inputPrefixCls:on,size:On}=nn,Ni=ue(nn,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:gi}=$t.useContext(ne.E_),Dn=gi("input",on),Jn=gi("input-password",ze),Ai=Ne&&ti(Jn),hi=Ft()(Jn,vn,{[`${Jn}-${On}`]:!!On}),qt=Object.assign(Object.assign({},(0,Yt.Z)(Ni,["suffix","iconRender","visibilityToggle"])),{type:zn?"text":"password",className:hi,prefixCls:Dn,suffix:Ai});return On&&(qt.size=On),$t.createElement(Nt.Z,Object.assign({ref:(0,de.sQ)(Vn,Me)},qt))}),pe=mt(72395),be=mt(96159),Rt=mt(71577),zt=mt(98675),Qt=mt(4173),te=function(nn,Vn){var Ne={};for(var Ye in nn)Object.prototype.hasOwnProperty.call(nn,Ye)&&Vn.indexOf(Ye)<0&&(Ne[Ye]=nn[Ye]);if(nn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zn=0,Ye=Object.getOwnPropertySymbols(nn);zn<Ye.length;zn++)Vn.indexOf(Ye[zn])<0&&Object.prototype.propertyIsEnumerable.call(nn,Ye[zn])&&(Ne[Ye[zn]]=nn[Ye[zn]]);return Ne},He=$t.forwardRef((nn,Vn)=>{const{prefixCls:Ne,inputPrefixCls:Ye,className:zn,size:Gn,suffix:Me,enterButton:_t=!1,addonAfter:rn,loading:ti,disabled:vn,onSearch:ze,onChange:on,onCompositionStart:On,onCompositionEnd:Ni}=nn,gi=te(nn,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Dn,direction:Jn}=$t.useContext(ne.E_),Ai=$t.useRef(!1),hi=Dn("input-search",Ne),qt=Dn("input",Ye),{compactSize:kt}=(0,Qt.ri)(hi,Jn),Ct=(0,zt.Z)(Qn=>{var Sn;return(Sn=Gn!=null?Gn:kt)!==null&&Sn!==void 0?Sn:Qn}),Pt=$t.useRef(null),At=Qn=>{Qn&&Qn.target&&Qn.type==="click"&&ze&&ze(Qn.target.value,Qn,{source:"clear"}),on&&on(Qn)},wt=Qn=>{var Sn;document.activeElement===((Sn=Pt.current)===null||Sn===void 0?void 0:Sn.input)&&Qn.preventDefault()},Xt=Qn=>{var Sn,Vi;ze&&ze((Vi=(Sn=Pt.current)===null||Sn===void 0?void 0:Sn.input)===null||Vi===void 0?void 0:Vi.value,Qn,{source:"input"})},Re=Qn=>{Ai.current||ti||Xt(Qn)},We=typeof _t=="boolean"?$t.createElement(pe.Z,null):null,In=`${hi}-button`;let Hn;const Un=_t||{},Yn=Un.type&&Un.type.__ANT_BUTTON===!0;Yn||Un.type==="button"?Hn=(0,be.Tm)(Un,Object.assign({onMouseDown:wt,onClick:Qn=>{var Sn,Vi;(Vi=(Sn=Un==null?void 0:Un.props)===null||Sn===void 0?void 0:Sn.onClick)===null||Vi===void 0||Vi.call(Sn,Qn),Xt(Qn)},key:"enterButton"},Yn?{className:In,size:Ct}:{})):Hn=$t.createElement(Rt.ZP,{className:In,type:_t?"primary":void 0,size:Ct,disabled:vn,key:"enterButton",onMouseDown:wt,onClick:Xt,loading:ti,icon:We},_t),rn&&(Hn=[Hn,(0,be.Tm)(rn,{key:"addonAfter"})]);const Fe=Ft()(hi,{[`${hi}-rtl`]:Jn==="rtl",[`${hi}-${Ct}`]:!!Ct,[`${hi}-with-button`]:!!_t},zn),bn=Qn=>{Ai.current=!0,On==null||On(Qn)},En=Qn=>{Ai.current=!1,Ni==null||Ni(Qn)};return $t.createElement(Nt.Z,Object.assign({ref:(0,de.sQ)(Pt,Vn),onPressEnter:Re},gi,{size:Ct,onCompositionStart:bn,onCompositionEnd:En,prefixCls:qt,addonAfter:Hn,suffix:Me,onChange:At,className:Fe,disabled:vn}))}),en=mt(96330);const ie=Nt.Z;ie.Group=jt,ie.Search=He,ie.TextArea=en.Z,ie.Password=Ze;var an=ie},47673:function(jn,tn,mt){"use strict";mt.d(tn,{M1:function(){return Wt},TM:function(){return be},Xy:function(){return jt},bi:function(){return De},e5:function(){return pe},ik:function(){return Yt},nz:function(){return Dt},pU:function(){return Ht},s7:function(){return de},x0:function(){return Ut}});var ft=mt(14747),Ft=mt(80110),$t=mt(45503),ne=mt(67968);const Dt=Rt=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Rt,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ht=Rt=>({borderColor:Rt.hoverBorderColor}),Wt=Rt=>({borderColor:Rt.activeBorderColor,boxShadow:Rt.activeShadow,outline:0}),jt=Rt=>({color:Rt.colorTextDisabled,backgroundColor:Rt.colorBgContainerDisabled,borderColor:Rt.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Ht((0,$t.TS)(Rt,{hoverBorderColor:Rt.colorBorder})))}),Nt=Rt=>{const{paddingBlockLG:zt,fontSizeLG:Qt,lineHeightLG:te,borderRadiusLG:Ie,paddingInlineLG:He}=Rt;return{padding:`${zt}px ${He}px`,fontSize:Qt,lineHeight:te,borderRadius:Ie}},Ut=Rt=>({padding:`${Rt.paddingBlockSM}px ${Rt.paddingInlineSM}px`,borderRadius:Rt.borderRadiusSM}),De=(Rt,zt)=>{const{componentCls:Qt,colorError:te,colorWarning:Ie,errorActiveShadow:He,warningActiveShadow:en,colorErrorBorderHover:ie,colorWarningBorderHover:an}=Rt;return{[`&-status-error:not(${zt}-disabled):not(${zt}-borderless)${zt}`]:{borderColor:te,"&:hover":{borderColor:ie},"&:focus, &-focused":Object.assign({},Wt((0,$t.TS)(Rt,{activeBorderColor:te,activeShadow:He}))),[`${Qt}-prefix, ${Qt}-suffix`]:{color:te}},[`&-status-warning:not(${zt}-disabled):not(${zt}-borderless)${zt}`]:{borderColor:Ie,"&:hover":{borderColor:an},"&:focus, &-focused":Object.assign({},Wt((0,$t.TS)(Rt,{activeBorderColor:Ie,activeShadow:en}))),[`${Qt}-prefix, ${Qt}-suffix`]:{color:Ie}}}},Yt=Rt=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Rt.paddingBlock}px ${Rt.paddingInline}px`,color:Rt.colorText,fontSize:Rt.fontSize,lineHeight:Rt.lineHeight,backgroundColor:Rt.colorBgContainer,backgroundImage:"none",borderWidth:Rt.lineWidth,borderStyle:Rt.lineType,borderColor:Rt.colorBorder,borderRadius:Rt.borderRadius,transition:`all ${Rt.motionDurationMid}`},Dt(Rt.colorTextPlaceholder)),{"&:hover":Object.assign({},Ht(Rt)),"&:focus, &-focused":Object.assign({},Wt(Rt)),"&-disabled, &[disabled]":Object.assign({},jt(Rt)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:Rt.controlHeight,lineHeight:Rt.lineHeight,verticalAlign:"bottom",transition:`all ${Rt.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Nt(Rt)),"&-sm":Object.assign({},Ut(Rt)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),de=Rt=>{const{componentCls:zt,antCls:Qt}=Rt;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:Rt.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${zt}, &-lg > ${zt}-group-addon`]:Object.assign({},Nt(Rt)),[`&-sm ${zt}, &-sm > ${zt}-group-addon`]:Object.assign({},Ut(Rt)),[`&-lg ${Qt}-select-single ${Qt}-select-selector`]:{height:Rt.controlHeightLG},[`&-sm ${Qt}-select-single ${Qt}-select-selector`]:{height:Rt.controlHeightSM},[`> ${zt}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${zt}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Rt.paddingInline}px`,color:Rt.colorText,fontWeight:"normal",fontSize:Rt.fontSize,textAlign:"center",backgroundColor:Rt.colorFillAlter,border:`${Rt.lineWidth}px ${Rt.lineType} ${Rt.colorBorder}`,borderRadius:Rt.borderRadius,transition:`all ${Rt.motionDurationSlow}`,lineHeight:1,[`${Qt}-select`]:{margin:`-${Rt.paddingBlock+1}px -${Rt.paddingInline}px`,[`&${Qt}-select-single:not(${Qt}-select-customize-input)`]:{[`${Qt}-select-selector`]:{backgroundColor:"inherit",border:`${Rt.lineWidth}px ${Rt.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${Qt}-select-selector`]:{color:Rt.colorPrimary}}},[`${Qt}-cascader-picker`]:{margin:`-9px -${Rt.paddingInline}px`,backgroundColor:"transparent",[`${Qt}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${zt}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${zt}-search-with-button &`]:{zIndex:0}}},[`> ${zt}:first-child, ${zt}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${Qt}-select ${Qt}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${zt}-affix-wrapper`]:{[`&:not(:first-child) ${zt}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${zt}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${zt}:last-child, ${zt}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${Qt}-select ${Qt}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${zt}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${zt}-search &`]:{borderStartStartRadius:Rt.borderRadius,borderEndStartRadius:Rt.borderRadius}},[`&:not(:first-child), ${zt}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${zt}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,ft.dF)()),{[`${zt}-group-addon, ${zt}-group-wrap, > ${zt}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:Rt.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${zt}-affix-wrapper,
|
|
|
& > ${zt}-number-affix-wrapper,
|
|
|
& > ${Qt}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-Rt.lineWidth,borderInlineEndWidth:Rt.lineWidth},[`${zt}`]:{float:"none"},[`& > ${Qt}-select > ${Qt}-select-selector,
|
|
|
& > ${Qt}-select-auto-complete ${zt},
|
|
|
& > ${Qt}-cascader-picker ${zt},
|
|
|
& > ${zt}-group-wrapper ${zt}`]:{borderInlineEndWidth:Rt.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${Qt}-select-focused`]:{zIndex:1},[`& > ${Qt}-select > ${Qt}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${Qt}-select:first-child > ${Qt}-select-selector,
|
|
|
& > ${Qt}-select-auto-complete:first-child ${zt},
|
|
|
& > ${Qt}-cascader-picker:first-child ${zt}`]:{borderStartStartRadius:Rt.borderRadius,borderEndStartRadius:Rt.borderRadius},[`& > *:last-child,
|
|
|
& > ${Qt}-select:last-child > ${Qt}-select-selector,
|
|
|
& > ${Qt}-cascader-picker:last-child ${zt},
|
|
|
& > ${Qt}-cascader-picker-focused:last-child ${zt}`]:{borderInlineEndWidth:Rt.lineWidth,borderStartEndRadius:Rt.borderRadius,borderEndEndRadius:Rt.borderRadius},[`& > ${Qt}-select-auto-complete ${zt}`]:{verticalAlign:"top"},[`${zt}-group-wrapper + ${zt}-group-wrapper`]:{marginInlineStart:-Rt.lineWidth,[`${zt}-affix-wrapper`]:{borderRadius:0}},[`${zt}-group-wrapper:not(:last-child)`]:{[`&${zt}-search > ${zt}-group`]:{[`& > ${zt}-group-addon > ${zt}-search-button`]:{borderRadius:0},[`& > ${zt}`]:{borderStartStartRadius:Rt.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Rt.borderRadius}}}})}},we=Rt=>{const{componentCls:zt,controlHeightSM:Qt,lineWidth:te}=Rt,He=(Qt-te*2-16)/2;return{[zt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ft.Wf)(Rt)),Yt(Rt)),De(Rt,zt)),{'&[type="color"]':{height:Rt.controlHeight,[`&${zt}-lg`]:{height:Rt.controlHeightLG},[`&${zt}-sm`]:{height:Qt,paddingTop:He,paddingBottom:He}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},ue=Rt=>{const{componentCls:zt}=Rt;return{[`${zt}-clear-icon`]:{margin:0,color:Rt.colorTextQuaternary,fontSize:Rt.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${Rt.motionDurationSlow}`,"&:hover":{color:Rt.colorTextTertiary},"&:active":{color:Rt.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Rt.inputAffixPadding}px`}}}},he=Rt=>{const{componentCls:zt,inputAffixPadding:Qt,colorTextDescription:te,motionDurationSlow:Ie,colorIcon:He,colorIconHover:en,iconCls:ie}=Rt;return{[`${zt}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Yt(Rt)),{display:"inline-flex",[`&:not(${zt}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Ht(Rt)),{zIndex:1,[`${zt}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${zt}[disabled]`]:{background:"transparent"}},[`> input${zt}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${zt}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:Rt.paddingXS}},"&-show-count-suffix":{color:te},"&-show-count-has-suffix":{marginInlineEnd:Rt.paddingXXS},"&-prefix":{marginInlineEnd:Qt},"&-suffix":{marginInlineStart:Qt}}}),ue(Rt)),{[`${ie}${zt}-password-icon`]:{color:He,cursor:"pointer",transition:`all ${Ie}`,"&:hover":{color:en}}}),De(Rt,`${zt}-affix-wrapper`))}},It=Rt=>{const{componentCls:zt,colorError:Qt,colorWarning:te,borderRadiusLG:Ie,borderRadiusSM:He}=Rt;return{[`${zt}-group`]:Object.assign(Object.assign(Object.assign({},(0,ft.Wf)(Rt)),de(Rt)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${zt}-group-addon`]:{borderRadius:Ie,fontSize:Rt.fontSizeLG}},"&-sm":{[`${zt}-group-addon`]:{borderRadius:He}},"&-status-error":{[`${zt}-group-addon`]:{color:Qt,borderColor:Qt}},"&-status-warning":{[`${zt}-group-addon`]:{color:te,borderColor:te}},"&-disabled":{[`${zt}-group-addon`]:Object.assign({},jt(Rt))},[`&:not(${zt}-compact-first-item):not(${zt}-compact-last-item)${zt}-compact-item`]:{[`${zt}, ${zt}-group-addon`]:{borderRadius:0}},[`&:not(${zt}-compact-last-item)${zt}-compact-first-item`]:{[`${zt}, ${zt}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${zt}-compact-first-item)${zt}-compact-last-item`]:{[`${zt}, ${zt}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},ye=Rt=>{const{componentCls:zt,antCls:Qt}=Rt,te=`${zt}-search`;return{[te]:{[`${zt}`]:{"&:hover, &:focus":{borderColor:Rt.colorPrimaryHover,[`+ ${zt}-group-addon ${te}-button:not(${Qt}-btn-primary)`]:{borderInlineStartColor:Rt.colorPrimaryHover}}},[`${zt}-affix-wrapper`]:{borderRadius:0},[`${zt}-lg`]:{lineHeight:Rt.lineHeightLG-2e-4},[`> ${zt}-group`]:{[`> ${zt}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${te}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:Rt.borderRadius,borderEndEndRadius:Rt.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${te}-button:not(${Qt}-btn-primary)`]:{color:Rt.colorTextDescription,"&:hover":{color:Rt.colorPrimaryHover},"&:active":{color:Rt.colorPrimaryActive},[`&${Qt}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${te}-button`]:{height:Rt.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${te}-button`]:{height:Rt.controlHeightLG},[`&-small ${te}-button`]:{height:Rt.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${zt}-compact-item`]:{[`&:not(${zt}-compact-last-item)`]:{[`${zt}-group-addon`]:{[`${zt}-search-button`]:{marginInlineEnd:-Rt.lineWidth,borderRadius:0}}},[`&:not(${zt}-compact-first-item)`]:{[`${zt},${zt}-affix-wrapper`]:{borderRadius:0}},[`> ${zt}-group-addon ${zt}-search-button,
|
|
|
> ${zt},
|
|
|
${zt}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${zt}-affix-wrapper-focused`]:{zIndex:2}}}}},Ze=Rt=>{const{componentCls:zt,paddingLG:Qt}=Rt,te=`${zt}-textarea`;return{[te]:{position:"relative","&-show-count":{[`> ${zt}`]:{height:"100%"},[`${zt}-data-count`]:{position:"absolute",bottom:-Rt.fontSize*Rt.lineHeight,insetInlineEnd:0,color:Rt.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${zt}`]:{paddingInlineEnd:Qt}},[`&-affix-wrapper${te}-has-feedback`]:{[`${zt}`]:{paddingInlineEnd:Qt}},[`&-affix-wrapper${zt}-affix-wrapper`]:{padding:0,[`> textarea${zt}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${zt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${zt}-clear-icon`]:{position:"absolute",insetInlineEnd:Rt.paddingXS,insetBlockStart:Rt.paddingXS},[`${te}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Rt.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function pe(Rt){return(0,$t.TS)(Rt,{inputAffixPadding:Rt.paddingXXS})}const be=Rt=>{const{controlHeight:zt,fontSize:Qt,lineHeight:te,lineWidth:Ie,controlHeightSM:He,controlHeightLG:en,fontSizeLG:ie,lineHeightLG:an,paddingSM:nn,controlPaddingHorizontalSM:Vn,controlPaddingHorizontal:Ne,colorFillAlter:Ye,colorPrimaryHover:zn,controlOutlineWidth:Gn,controlOutline:Me,colorErrorOutline:_t,colorWarningOutline:rn}=Rt;return{paddingBlock:Math.max(Math.round((zt-Qt*te)/2*10)/10-Ie,3),paddingBlockSM:Math.max(Math.round((He-Qt*te)/2*10)/10-Ie,0),paddingBlockLG:Math.ceil((en-ie*an)/2*10)/10-Ie,paddingInline:nn-Ie,paddingInlineSM:Vn-Ie,paddingInlineLG:Ne-Ie,addonBg:Ye,activeBorderColor:zn,hoverBorderColor:zn,activeShadow:`0 0 0 ${Gn}px ${Me}`,errorActiveShadow:`0 0 0 ${Gn}px ${_t}`,warningActiveShadow:`0 0 0 ${Gn}px ${rn}`}};tn.ZP=(0,ne.Z)("Input",Rt=>{const zt=(0,$t.TS)(Rt,pe(Rt));return[we(zt),Ze(zt),he(zt),It(zt),ye(zt),(0,Ft.c)(zt)]},be)},71322:function(jn,tn,mt){"use strict";mt.d(tn,{D:function(){return Ze},Z:function(){return Rt}});var ft=mt(87462),Ft=mt(67294),$t={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"},ne=$t,Dt=mt(84089),Ht=function(Qt,te){return Ft.createElement(Dt.Z,(0,ft.Z)({},Qt,{ref:te,icon:ne}))},Wt=Ft.forwardRef(Ht),jt=mt(22751),Nt=mt(91034),Ut=mt(94184),De=mt.n(Ut),Yt=mt(10366),we=zt=>!isNaN(parseFloat(zt))&&isFinite(zt),ue=mt(53124),he=mt(84321),It=function(zt,Qt){var te={};for(var Ie in zt)Object.prototype.hasOwnProperty.call(zt,Ie)&&Qt.indexOf(Ie)<0&&(te[Ie]=zt[Ie]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Ie=Object.getOwnPropertySymbols(zt);He<Ie.length;He++)Qt.indexOf(Ie[He])<0&&Object.prototype.propertyIsEnumerable.call(zt,Ie[He])&&(te[Ie[He]]=zt[Ie[He]]);return te};const ye={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Ze=Ft.createContext({}),pe=(()=>{let zt=0;return function(){let Qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return zt+=1,`${Qt}${zt}`}})();var Rt=Ft.forwardRef((zt,Qt)=>{const{prefixCls:te,className:Ie,trigger:He,children:en,defaultCollapsed:ie=!1,theme:an="dark",style:nn={},collapsible:Vn=!1,reverseArrow:Ne=!1,width:Ye=200,collapsedWidth:zn=80,zeroWidthTriggerStyle:Gn,breakpoint:Me,onCollapse:_t,onBreakpoint:rn}=zt,ti=It(zt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:vn}=(0,Ft.useContext)(he.Gs),[ze,on]=(0,Ft.useState)("collapsed"in zt?zt.collapsed:ie),[On,Ni]=(0,Ft.useState)(!1);(0,Ft.useEffect)(()=>{"collapsed"in zt&&on(zt.collapsed)},[zt.collapsed]);const gi=(kt,Ct)=>{"collapsed"in zt||on(kt),_t==null||_t(kt,Ct)},Dn=(0,Ft.useRef)();Dn.current=kt=>{Ni(kt.matches),rn==null||rn(kt.matches),ze!==kt.matches&&gi(kt.matches,"responsive")},(0,Ft.useEffect)(()=>{function kt(Pt){return Dn.current(Pt)}let Ct;if(typeof window!="undefined"){const{matchMedia:Pt}=window;if(Pt&&Me&&Me in ye){Ct=Pt(`(max-width: ${ye[Me]})`);try{Ct.addEventListener("change",kt)}catch(At){Ct.addListener(kt)}kt(Ct)}}return()=>{try{Ct==null||Ct.removeEventListener("change",kt)}catch(Pt){Ct==null||Ct.removeListener(kt)}}},[Me]),(0,Ft.useEffect)(()=>{const kt=pe("ant-sider-");return vn.addSider(kt),()=>vn.removeSider(kt)},[]);const Jn=()=>{gi(!ze,"clickTrigger")},{getPrefixCls:Ai}=(0,Ft.useContext)(ue.E_),hi=()=>{const kt=Ai("layout-sider",te),Ct=(0,Yt.Z)(ti,["collapsed"]),Pt=ze?zn:Ye,At=we(Pt)?`${Pt}px`:String(Pt),wt=parseFloat(String(zn||0))===0?Ft.createElement("span",{onClick:Jn,className:De()(`${kt}-zero-width-trigger`,`${kt}-zero-width-trigger-${Ne?"right":"left"}`),style:Gn},He||Ft.createElement(Wt,null)):null,We={expanded:Ne?Ft.createElement(Nt.Z,null):Ft.createElement(jt.Z,null),collapsed:Ne?Ft.createElement(jt.Z,null):Ft.createElement(Nt.Z,null)}[ze?"collapsed":"expanded"],In=He!==null?wt||Ft.createElement("div",{className:`${kt}-trigger`,onClick:Jn,style:{width:At}},He||We):null,Hn=Object.assign(Object.assign({},nn),{flex:`0 0 ${At}`,maxWidth:At,minWidth:At,width:At}),Un=De()(kt,`${kt}-${an}`,{[`${kt}-collapsed`]:!!ze,[`${kt}-has-trigger`]:Vn&&He!==null&&!wt,[`${kt}-below`]:!!On,[`${kt}-zero-width`]:parseFloat(At)===0},Ie);return Ft.createElement("aside",Object.assign({className:Un},Ct,{style:Hn,ref:Qt}),Ft.createElement("div",{className:`${kt}-children`},en),Vn||On&&wt?In:null)},qt=Ft.useMemo(()=>({siderCollapsed:ze}),[ze]);return Ft.createElement(Ze.Provider,{value:qt},hi())})},84321:function(jn,tn,mt){"use strict";mt.d(tn,{VY:function(){return pe},$_:function(){return Ze},h4:function(){return ye},Gs:function(){return de},ZP:function(){return be}});var ft=mt(74902),Ft=mt(94184),$t=mt.n(Ft),ne=mt(10366),Dt=mt(67294),Ht=mt(53124),Wt=mt(67968),Nt=Rt=>{const{componentCls:zt,bodyBg:Qt,lightSiderBg:te,lightTriggerBg:Ie,lightTriggerColor:He}=Rt;return{[`${zt}-sider-light`]:{background:te,[`${zt}-sider-trigger`]:{color:He,background:Ie},[`${zt}-sider-zero-width-trigger`]:{color:He,background:Ie,border:`1px solid ${Qt}`,borderInlineStart:0}}}};const Ut=Rt=>{const{antCls:zt,componentCls:Qt,colorText:te,triggerColor:Ie,footerBg:He,triggerBg:en,headerHeight:ie,headerPadding:an,headerColor:nn,footerPadding:Vn,triggerHeight:Ne,zeroTriggerHeight:Ye,zeroTriggerWidth:zn,motionDurationMid:Gn,motionDurationSlow:Me,fontSize:_t,borderRadius:rn,bodyBg:ti,headerBg:vn,siderBg:ze}=Rt;return{[Qt]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ti,"&, *":{boxSizing:"border-box"},[`&${Qt}-has-sider`]:{flexDirection:"row",[`> ${Qt}, > ${Qt}-content`]:{width:0}},[`${Qt}-header, &${Qt}-footer`]:{flex:"0 0 auto"},[`${Qt}-sider`]:{position:"relative",minWidth:0,background:ze,transition:`all ${Gn}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${zt}-menu${zt}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ne},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ne,color:Ie,lineHeight:`${Ne}px`,textAlign:"center",background:en,cursor:"pointer",transition:`all ${Gn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ie,insetInlineEnd:-zn,zIndex:1,width:zn,height:Ye,color:Ie,fontSize:Rt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ze,borderStartStartRadius:0,borderStartEndRadius:rn,borderEndEndRadius:rn,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Me} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Me}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-zn,borderStartStartRadius:rn,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:rn}}}}},Nt(Rt)),{"&-rtl":{direction:"rtl"}}),[`${Qt}-header`]:{height:ie,padding:an,color:nn,lineHeight:`${ie}px`,background:vn,[`${zt}-menu`]:{lineHeight:"inherit"}},[`${Qt}-footer`]:{padding:Vn,color:te,fontSize:_t,background:He},[`${Qt}-content`]:{flex:"auto",minHeight:0}}};var De=(0,Wt.Z)("Layout",Rt=>[Ut(Rt)],Rt=>{const{colorBgLayout:zt,controlHeight:Qt,controlHeightLG:te,colorText:Ie,controlHeightSM:He,marginXXS:en,colorTextLightSolid:ie,colorBgContainer:an}=Rt,nn=te*1.25;return{colorBgHeader:"#001529",colorBgBody:zt,colorBgTrigger:"#002140",bodyBg:zt,headerBg:"#001529",headerHeight:Qt*2,headerPadding:`0 ${nn}px`,headerColor:Ie,footerPadding:`${He}px ${nn}px`,footerBg:zt,siderBg:"#001529",triggerHeight:te+en*2,triggerBg:"#002140",triggerColor:ie,zeroTriggerWidth:te,zeroTriggerHeight:te,lightSiderBg:an,lightTriggerBg:an,lightTriggerColor:Ie}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Yt=function(Rt,zt){var Qt={};for(var te in Rt)Object.prototype.hasOwnProperty.call(Rt,te)&&zt.indexOf(te)<0&&(Qt[te]=Rt[te]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,te=Object.getOwnPropertySymbols(Rt);Ie<te.length;Ie++)zt.indexOf(te[Ie])<0&&Object.prototype.propertyIsEnumerable.call(Rt,te[Ie])&&(Qt[te[Ie]]=Rt[te[Ie]]);return Qt};const de=Dt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function we(Rt){let{suffixCls:zt,tagName:Qt,displayName:te}=Rt;return Ie=>Dt.forwardRef((en,ie)=>Dt.createElement(Ie,Object.assign({ref:ie,suffixCls:zt,tagName:Qt},en)))}const ue=Dt.forwardRef((Rt,zt)=>{const{prefixCls:Qt,suffixCls:te,className:Ie,tagName:He}=Rt,en=Yt(Rt,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ie}=Dt.useContext(Ht.E_),an=ie("layout",Qt),[nn,Vn]=De(an),Ne=te?`${an}-${te}`:an;return nn(Dt.createElement(He,Object.assign({className:$t()(Qt||Ne,Ie,Vn),ref:zt},en)))}),he=Dt.forwardRef((Rt,zt)=>{const{direction:Qt}=Dt.useContext(Ht.E_),[te,Ie]=Dt.useState([]),{prefixCls:He,className:en,rootClassName:ie,children:an,hasSider:nn,tagName:Vn,style:Ne}=Rt,Ye=Yt(Rt,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),zn=(0,ne.Z)(Ye,["suffixCls"]),{getPrefixCls:Gn,layout:Me}=Dt.useContext(Ht.E_),_t=Gn("layout",He),[rn,ti]=De(_t),vn=$t()(_t,{[`${_t}-has-sider`]:typeof nn=="boolean"?nn:te.length>0,[`${_t}-rtl`]:Qt==="rtl"},Me==null?void 0:Me.className,en,ie,ti),ze=Dt.useMemo(()=>({siderHook:{addSider:on=>{Ie(On=>[].concat((0,ft.Z)(On),[on]))},removeSider:on=>{Ie(On=>On.filter(Ni=>Ni!==on))}}}),[]);return rn(Dt.createElement(de.Provider,{value:ze},Dt.createElement(Vn,Object.assign({ref:zt,className:vn,style:Object.assign(Object.assign({},Me==null?void 0:Me.style),Ne)},zn),an)))}),It=we({tagName:"div",displayName:"Layout"})(he),ye=we({suffixCls:"header",tagName:"header",displayName:"Header"})(ue),Ze=we({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ue),pe=we({suffixCls:"content",tagName:"main",displayName:"Content"})(ue);var be=It},90875:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Vn}});var ft=mt(74902),Ft=mt(94184),$t=mt.n(Ft),ne=mt(67294),Dt=mt(38780),Ht=mt(74443),Wt=mt(53124),jt=mt(88258),Nt=mt(92820),Ut=mt(25378),De=mt(28452),Yt=mt(57953),de=mt(96159),we=mt(21584);const ue=ne.createContext({}),he=ue.Consumer;var It=function(Ne,Ye){var zn={};for(var Gn in Ne)Object.prototype.hasOwnProperty.call(Ne,Gn)&&Ye.indexOf(Gn)<0&&(zn[Gn]=Ne[Gn]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Gn=Object.getOwnPropertySymbols(Ne);Me<Gn.length;Me++)Ye.indexOf(Gn[Me])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Gn[Me])&&(zn[Gn[Me]]=Ne[Gn[Me]]);return zn};const ye=Ne=>{var{prefixCls:Ye,className:zn,avatar:Gn,title:Me,description:_t}=Ne,rn=It(Ne,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:ti}=(0,ne.useContext)(Wt.E_),vn=ti("list",Ye),ze=$t()(`${vn}-item-meta`,zn),on=ne.createElement("div",{className:`${vn}-item-meta-content`},Me&&ne.createElement("h4",{className:`${vn}-item-meta-title`},Me),_t&&ne.createElement("div",{className:`${vn}-item-meta-description`},_t));return ne.createElement("div",Object.assign({},rn,{className:ze}),Gn&&ne.createElement("div",{className:`${vn}-item-meta-avatar`},Gn),(Me||_t)&&on)},Ze=(Ne,Ye)=>{var{prefixCls:zn,children:Gn,actions:Me,extra:_t,className:rn,colStyle:ti}=Ne,vn=It(Ne,["prefixCls","children","actions","extra","className","colStyle"]);const{grid:ze,itemLayout:on}=(0,ne.useContext)(ue),{getPrefixCls:On}=(0,ne.useContext)(Wt.E_),Ni=()=>{let qt;return ne.Children.forEach(Gn,kt=>{typeof kt=="string"&&(qt=!0)}),qt&&ne.Children.count(Gn)>1},gi=()=>on==="vertical"?!!_t:!Ni(),Dn=On("list",zn),Jn=Me&&Me.length>0&&ne.createElement("ul",{className:`${Dn}-item-action`,key:"actions"},Me.map((qt,kt)=>ne.createElement("li",{key:`${Dn}-item-action-${kt}`},qt,kt!==Me.length-1&&ne.createElement("em",{className:`${Dn}-item-action-split`})))),Ai=ze?"div":"li",hi=ne.createElement(Ai,Object.assign({},vn,ze?{}:{ref:Ye},{className:$t()(`${Dn}-item`,{[`${Dn}-item-no-flex`]:!gi()},rn)}),on==="vertical"&&_t?[ne.createElement("div",{className:`${Dn}-item-main`,key:"content"},Gn,Jn),ne.createElement("div",{className:`${Dn}-item-extra`,key:"extra"},_t)]:[Gn,Jn,(0,de.Tm)(_t,{key:"extra"})]);return ze?ne.createElement(we.Z,{ref:Ye,flex:1,style:ti},hi):hi},pe=(0,ne.forwardRef)(Ze);pe.Meta=ye;var be=pe,Rt=mt(14747),zt=mt(67968),Qt=mt(45503);const te=Ne=>{const{listBorderedCls:Ye,componentCls:zn,paddingLG:Gn,margin:Me,itemPaddingSM:_t,itemPaddingLG:rn,marginLG:ti,borderRadiusLG:vn}=Ne;return{[`${Ye}`]:{border:`${Ne.lineWidth}px ${Ne.lineType} ${Ne.colorBorder}`,borderRadius:vn,[`${zn}-header,${zn}-footer,${zn}-item`]:{paddingInline:Gn},[`${zn}-pagination`]:{margin:`${Me}px ${ti}px`}},[`${Ye}${zn}-sm`]:{[`${zn}-item,${zn}-header,${zn}-footer`]:{padding:_t}},[`${Ye}${zn}-lg`]:{[`${zn}-item,${zn}-header,${zn}-footer`]:{padding:rn}}}},Ie=Ne=>{const{componentCls:Ye,screenSM:zn,screenMD:Gn,marginLG:Me,marginSM:_t,margin:rn}=Ne;return{[`@media screen and (max-width:${Gn})`]:{[`${Ye}`]:{[`${Ye}-item`]:{[`${Ye}-item-action`]:{marginInlineStart:Me}}},[`${Ye}-vertical`]:{[`${Ye}-item`]:{[`${Ye}-item-extra`]:{marginInlineStart:Me}}}},[`@media screen and (max-width: ${zn})`]:{[`${Ye}`]:{[`${Ye}-item`]:{flexWrap:"wrap",[`${Ye}-action`]:{marginInlineStart:_t}}},[`${Ye}-vertical`]:{[`${Ye}-item`]:{flexWrap:"wrap-reverse",[`${Ye}-item-main`]:{minWidth:Ne.contentWidth},[`${Ye}-item-extra`]:{margin:`auto auto ${rn}px`}}}}}},He=Ne=>{const{componentCls:Ye,antCls:zn,controlHeight:Gn,minHeight:Me,paddingSM:_t,marginLG:rn,padding:ti,itemPadding:vn,colorPrimary:ze,itemPaddingSM:on,itemPaddingLG:On,paddingXS:Ni,margin:gi,colorText:Dn,colorTextDescription:Jn,motionDurationSlow:Ai,lineWidth:hi,headerBg:qt,footerBg:kt,emptyTextPadding:Ct,metaMarginBottom:Pt,avatarMarginRight:At,titleMarginBottom:wt,descriptionFontSize:Xt}=Ne,Re={};return["start","center","end"].forEach(We=>{Re[`&-align-${We}`]={textAlign:We}}),{[`${Ye}`]:Object.assign(Object.assign({},(0,Rt.Wf)(Ne)),{position:"relative","*":{outline:"none"},[`${Ye}-header`]:{background:qt},[`${Ye}-footer`]:{background:kt},[`${Ye}-header, ${Ye}-footer`]:{paddingBlock:_t},[`${Ye}-pagination`]:Object.assign(Object.assign({marginBlockStart:rn},Re),{[`${zn}-pagination-options`]:{textAlign:"start"}}),[`${Ye}-spin`]:{minHeight:Me,textAlign:"center"},[`${Ye}-items`]:{margin:0,padding:0,listStyle:"none"},[`${Ye}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:vn,color:Dn,[`${Ye}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${Ye}-item-meta-avatar`]:{marginInlineEnd:At},[`${Ye}-item-meta-content`]:{flex:"1 0",width:0,color:Dn},[`${Ye}-item-meta-title`]:{margin:`0 0 ${Ne.marginXXS}px 0`,color:Dn,fontSize:Ne.fontSize,lineHeight:Ne.lineHeight,"> a":{color:Dn,transition:`all ${Ai}`,"&:hover":{color:ze}}},[`${Ye}-item-meta-description`]:{color:Jn,fontSize:Xt,lineHeight:Ne.lineHeight}},[`${Ye}-item-action`]:{flex:"0 0 auto",marginInlineStart:Ne.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${Ni}px`,color:Jn,fontSize:Ne.fontSize,lineHeight:Ne.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${Ye}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:hi,height:Math.ceil(Ne.fontSize*Ne.lineHeight)-Ne.marginXXS*2,transform:"translateY(-50%)",backgroundColor:Ne.colorSplit}}},[`${Ye}-empty`]:{padding:`${ti}px 0`,color:Jn,fontSize:Ne.fontSizeSM,textAlign:"center"},[`${Ye}-empty-text`]:{padding:Ct,color:Ne.colorTextDisabled,fontSize:Ne.fontSize,textAlign:"center"},[`${Ye}-item-no-flex`]:{display:"block"}}),[`${Ye}-grid ${zn}-col > ${Ye}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:gi,paddingBlock:0,borderBlockEnd:"none"},[`${Ye}-vertical ${Ye}-item`]:{alignItems:"initial",[`${Ye}-item-main`]:{display:"block",flex:1},[`${Ye}-item-extra`]:{marginInlineStart:rn},[`${Ye}-item-meta`]:{marginBlockEnd:Pt,[`${Ye}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:wt,color:Dn,fontSize:Ne.fontSizeLG,lineHeight:Ne.lineHeightLG}},[`${Ye}-item-action`]:{marginBlockStart:ti,marginInlineStart:"auto","> li":{padding:`0 ${ti}px`,"&:first-child":{paddingInlineStart:0}}}},[`${Ye}-split ${Ye}-item`]:{borderBlockEnd:`${Ne.lineWidth}px ${Ne.lineType} ${Ne.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${Ye}-split ${Ye}-header`]:{borderBlockEnd:`${Ne.lineWidth}px ${Ne.lineType} ${Ne.colorSplit}`},[`${Ye}-split${Ye}-empty ${Ye}-footer`]:{borderTop:`${Ne.lineWidth}px ${Ne.lineType} ${Ne.colorSplit}`},[`${Ye}-loading ${Ye}-spin-nested-loading`]:{minHeight:Gn},[`${Ye}-split${Ye}-something-after-last-item ${zn}-spin-container > ${Ye}-items > ${Ye}-item:last-child`]:{borderBlockEnd:`${Ne.lineWidth}px ${Ne.lineType} ${Ne.colorSplit}`},[`${Ye}-lg ${Ye}-item`]:{padding:On},[`${Ye}-sm ${Ye}-item`]:{padding:on},[`${Ye}:not(${Ye}-vertical)`]:{[`${Ye}-item-no-flex`]:{[`${Ye}-item-action`]:{float:"right"}}}}};var en=(0,zt.Z)("List",Ne=>{const Ye=(0,Qt.TS)(Ne,{listBorderedCls:`${Ne.componentCls}-bordered`,minHeight:Ne.controlHeightLG});return[He(Ye),te(Ye),Ie(Ye)]},Ne=>({contentWidth:220,itemPadding:`${Ne.paddingContentVertical}px 0`,itemPaddingSM:`${Ne.paddingContentVerticalSM}px ${Ne.paddingContentHorizontal}px`,itemPaddingLG:`${Ne.paddingContentVerticalLG}px ${Ne.paddingContentHorizontalLG}px`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:Ne.padding,metaMarginBottom:Ne.padding,avatarMarginRight:Ne.padding,titleMarginBottom:Ne.paddingSM,descriptionFontSize:Ne.fontSize})),ie=mt(98675),an=function(Ne,Ye){var zn={};for(var Gn in Ne)Object.prototype.hasOwnProperty.call(Ne,Gn)&&Ye.indexOf(Gn)<0&&(zn[Gn]=Ne[Gn]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Gn=Object.getOwnPropertySymbols(Ne);Me<Gn.length;Me++)Ye.indexOf(Gn[Me])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Gn[Me])&&(zn[Gn[Me]]=Ne[Gn[Me]]);return zn};function nn(Ne){var Ye,{pagination:zn=!1,prefixCls:Gn,bordered:Me=!1,split:_t=!0,className:rn,rootClassName:ti,style:vn,children:ze,itemLayout:on,loadMore:On,grid:Ni,dataSource:gi=[],size:Dn,header:Jn,footer:Ai,loading:hi=!1,rowKey:qt,renderItem:kt,locale:Ct}=Ne,Pt=an(Ne,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]);const At=zn&&typeof zn=="object"?zn:{},[wt,Xt]=ne.useState(At.defaultCurrent||1),[Re,We]=ne.useState(At.defaultPageSize||10),{getPrefixCls:In,renderEmpty:Hn,direction:Un,list:Yn}=ne.useContext(Wt.E_),Fe={current:1,total:0},bn=mi=>(rr,fr)=>{var pr;Xt(rr),We(fr),zn&&zn[mi]&&((pr=zn==null?void 0:zn[mi])===null||pr===void 0||pr.call(zn,rr,fr))},En=bn("onChange"),Qn=bn("onShowSizeChange"),Sn=(mi,rr)=>{if(!kt)return null;let fr;return typeof qt=="function"?fr=qt(mi):qt?fr=mi[qt]:fr=mi.key,fr||(fr=`list-item-${rr}`),ne.createElement(ne.Fragment,{key:fr},kt(mi,rr))},Vi=()=>!!(On||zn||Ai),Qe=In("list",Gn),[Pn,Ci]=en(Qe);let yi=hi;typeof yi=="boolean"&&(yi={spinning:yi});const Oi=yi&&yi.spinning,ar=(0,ie.Z)(Dn);let br="";switch(ar){case"large":br="lg";break;case"small":br="sm";break;default:break}const wr=$t()(Qe,{[`${Qe}-vertical`]:on==="vertical",[`${Qe}-${br}`]:br,[`${Qe}-split`]:_t,[`${Qe}-bordered`]:Me,[`${Qe}-loading`]:Oi,[`${Qe}-grid`]:!!Ni,[`${Qe}-something-after-last-item`]:Vi(),[`${Qe}-rtl`]:Un==="rtl"},Yn==null?void 0:Yn.className,rn,ti,Ci),cr=(0,Dt.Z)(Fe,{total:gi.length,current:wt,pageSize:Re},zn||{}),Ar=Math.ceil(cr.total/cr.pageSize);cr.current>Ar&&(cr.current=Ar);const ir=zn?ne.createElement("div",{className:$t()(`${Qe}-pagination`,`${Qe}-pagination-align-${(Ye=cr==null?void 0:cr.align)!==null&&Ye!==void 0?Ye:"end"}`)},ne.createElement(De.Z,Object.assign({},cr,{onChange:En,onShowSizeChange:Qn}))):null;let kr=(0,ft.Z)(gi);zn&&gi.length>(cr.current-1)*cr.pageSize&&(kr=(0,ft.Z)(gi).splice((cr.current-1)*cr.pageSize,cr.pageSize));const po=Object.keys(Ni||{}).some(mi=>["xs","sm","md","lg","xl","xxl"].includes(mi)),So=(0,Ut.Z)(po),Eo=ne.useMemo(()=>{for(let mi=0;mi<Ht.c4.length;mi+=1){const rr=Ht.c4[mi];if(So[rr])return rr}},[So]),Yr=ne.useMemo(()=>{if(!Ni)return;const mi=Eo&&Ni[Eo]?Ni[Eo]:Ni.column;if(mi)return{width:`${100/mi}%`,maxWidth:`${100/mi}%`}},[Ni==null?void 0:Ni.column,Eo]);let Mn=Oi&&ne.createElement("div",{style:{minHeight:53}});if(kr.length>0){const mi=kr.map((rr,fr)=>Sn(rr,fr));Mn=Ni?ne.createElement(Nt.Z,{gutter:Ni.gutter},ne.Children.map(mi,rr=>ne.createElement("div",{key:rr==null?void 0:rr.key,style:Yr},rr))):ne.createElement("ul",{className:`${Qe}-items`},mi)}else!ze&&!Oi&&(Mn=ne.createElement("div",{className:`${Qe}-empty-text`},Ct&&Ct.emptyText||(Hn==null?void 0:Hn("List"))||ne.createElement(jt.Z,{componentName:"List"})));const St=cr.position||"bottom",Zi=ne.useMemo(()=>({grid:Ni,itemLayout:on}),[JSON.stringify(Ni),on]);return Pn(ne.createElement(ue.Provider,{value:Zi},ne.createElement("div",Object.assign({style:Object.assign(Object.assign({},Yn==null?void 0:Yn.style),vn),className:wr},Pt),(St==="top"||St==="both")&&ir,Jn&&ne.createElement("div",{className:`${Qe}-header`},Jn),ne.createElement(Yt.Z,Object.assign({},yi),Mn,ze),Ai&&ne.createElement("div",{className:`${Qe}-footer`},Ai),On||(St==="bottom"||St==="both")&&ir)))}nn.Item=be;var Vn=nn},76529:function(jn,tn,mt){"use strict";mt.d(tn,{J:function(){return Ht}});var ft=mt(67294),Ft=mt(4173),$t=mt(60276),ne=function(Wt,jt){var Nt={};for(var Ut in Wt)Object.prototype.hasOwnProperty.call(Wt,Ut)&&jt.indexOf(Ut)<0&&(Nt[Ut]=Wt[Ut]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,Ut=Object.getOwnPropertySymbols(Wt);De<Ut.length;De++)jt.indexOf(Ut[De])<0&&Object.prototype.propertyIsEnumerable.call(Wt,Ut[De])&&(Nt[Ut[De]]=Wt[Ut[De]]);return Nt};const Dt=ft.createContext(null),Ht=ft.forwardRef((Wt,jt)=>{const{children:Nt}=Wt,Ut=ne(Wt,["children"]),De=ft.useContext(Dt),Yt=ft.useMemo(()=>Object.assign(Object.assign({},De),Ut),[De,Ut.prefixCls,Ut.mode,Ut.selectable]);return ft.createElement(Dt.Provider,{value:Yt},ft.createElement(Ft.BR,null,(0,$t.supportNodeRef)(Nt)?ft.cloneElement(Nt,{ref:jt}):Nt))});tn.Z=Dt},68508:function(jn,tn,mt){"use strict";mt.d(tn,{default:function(){return kt}});var ft=mt(78595),Ft=mt(67294),$t=mt(71322),ne=mt(94184),Dt=mt.n(ne),Ht=mt(53124),Wt=function(Ct,Pt){var At={};for(var wt in Ct)Object.prototype.hasOwnProperty.call(Ct,wt)&&Pt.indexOf(wt)<0&&(At[wt]=Ct[wt]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,wt=Object.getOwnPropertySymbols(Ct);Xt<wt.length;Xt++)Pt.indexOf(wt[Xt])<0&&Object.prototype.propertyIsEnumerable.call(Ct,wt[Xt])&&(At[wt[Xt]]=Ct[wt[Xt]]);return At},Nt=Ct=>{const{prefixCls:Pt,className:At,dashed:wt}=Ct,Xt=Wt(Ct,["prefixCls","className","dashed"]),{getPrefixCls:Re}=Ft.useContext(Ht.E_),We=Re("menu",Pt),In=Dt()({[`${We}-item-divider-dashed`]:!!wt},At);return Ft.createElement(ft.iz,Object.assign({className:In},Xt))},Ut=mt(37419),De=mt(10366),Yt=mt(83062),de=mt(96159),ue=(0,Ft.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),It=Ct=>{var Pt;const{className:At,children:wt,icon:Xt,title:Re,danger:We}=Ct,{prefixCls:In,firstLevel:Hn,direction:Un,disableMenuItemTitleTooltip:Yn,inlineCollapsed:Fe}=Ft.useContext(ue),bn=Pn=>{const Ci=Ft.createElement("span",{className:`${In}-title-content`},wt);return(!Xt||(0,de.l$)(wt)&&wt.type==="span")&&wt&&Pn&&Hn&&typeof wt=="string"?Ft.createElement("div",{className:`${In}-inline-collapsed-noicon`},wt.charAt(0)):Ci},{siderCollapsed:En}=Ft.useContext($t.D);let Qn=Re;typeof Re=="undefined"?Qn=Hn?wt:"":Re===!1&&(Qn="");const Sn={title:Qn};!En&&!Fe&&(Sn.title=null,Sn.open=!1);const Vi=(0,Ut.Z)(wt).length;let Qe=Ft.createElement(ft.ck,Object.assign({},(0,De.Z)(Ct,["title","icon","danger"]),{className:Dt()({[`${In}-item-danger`]:We,[`${In}-item-only-child`]:(Xt?Vi+1:Vi)===1},At),title:typeof Re=="string"?Re:void 0}),(0,de.Tm)(Xt,{className:Dt()((0,de.l$)(Xt)?(Pt=Xt.props)===null||Pt===void 0?void 0:Pt.className:"",`${In}-item-icon`)}),bn(Fe));return Yn||(Qe=Ft.createElement(Yt.Z,Object.assign({},Sn,{placement:Un==="rtl"?"left":"right",overlayClassName:`${In}-inline-collapsed-tooltip`}),Qe)),Qe},Ze=Ct=>{var Pt;const{popupClassName:At,icon:wt,title:Xt,theme:Re}=Ct,We=Ft.useContext(ue),{prefixCls:In,inlineCollapsed:Hn,theme:Un}=We,Yn=(0,ft.Xl)();let Fe;if(!wt)Fe=Hn&&!Yn.length&&Xt&&typeof Xt=="string"?Ft.createElement("div",{className:`${In}-inline-collapsed-noicon`},Xt.charAt(0)):Ft.createElement("span",{className:`${In}-title-content`},Xt);else{const En=(0,de.l$)(Xt)&&Xt.type==="span";Fe=Ft.createElement(Ft.Fragment,null,(0,de.Tm)(wt,{className:Dt()((0,de.l$)(wt)?(Pt=wt.props)===null||Pt===void 0?void 0:Pt.className:"",`${In}-item-icon`)}),En?Xt:Ft.createElement("span",{className:`${In}-title-content`},Xt))}const bn=Ft.useMemo(()=>Object.assign(Object.assign({},We),{firstLevel:!1}),[We]);return Ft.createElement(ue.Provider,{value:bn},Ft.createElement(ft.Wd,Object.assign({},(0,De.Z)(Ct,["icon"]),{title:Fe,popupClassName:Dt()(In,At,`${In}-${Re||Un}`)})))},pe=mt(25877),be=mt(60276),Rt=mt(33603),zt=mt(76529),Qt=function(Ct,Pt){var At={};for(var wt in Ct)Object.prototype.hasOwnProperty.call(Ct,wt)&&Pt.indexOf(wt)<0&&(At[wt]=Ct[wt]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,wt=Object.getOwnPropertySymbols(Ct);Xt<wt.length;Xt++)Pt.indexOf(wt[Xt])<0&&Object.prototype.propertyIsEnumerable.call(Ct,wt[Xt])&&(At[wt[Xt]]=Ct[wt[Xt]]);return At};function te(Ct){return(Ct||[]).map((Pt,At)=>{if(Pt&&typeof Pt=="object"){const wt=Pt,{label:Xt,children:Re,key:We,type:In}=wt,Hn=Qt(wt,["label","children","key","type"]),Un=We!=null?We:`tmp-${At}`;return Re||In==="group"?In==="group"?Ft.createElement(ft.BW,Object.assign({key:Un},Hn,{title:Xt}),te(Re)):Ft.createElement(Ze,Object.assign({key:Un},Hn,{title:Xt}),te(Re)):In==="divider"?Ft.createElement(Nt,Object.assign({key:Un},Hn)):Ft.createElement(It,Object.assign({key:Un},Hn),Xt)}return null}).filter(Pt=>Pt)}function Ie(Ct){return Ft.useMemo(()=>Ct&&te(Ct),[Ct])}var He=mt(84780),en=mt(14747),ie=mt(33507),an=mt(67771),nn=mt(50438),Vn=mt(67968),Ne=mt(45503),zn=Ct=>{const{componentCls:Pt,motionDurationSlow:At,horizontalLineHeight:wt,colorSplit:Xt,lineWidth:Re,lineType:We,itemPaddingInline:In}=Ct;return{[`${Pt}-horizontal`]:{lineHeight:wt,border:0,borderBottom:`${Re}px ${We} ${Xt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Pt}-item, ${Pt}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:In},[`> ${Pt}-item:hover,
|
|
|
> ${Pt}-item-active,
|
|
|
> ${Pt}-submenu ${Pt}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Pt}-item, ${Pt}-submenu-title`]:{transition:[`border-color ${At}`,`background ${At}`].join(",")},[`${Pt}-submenu-arrow`]:{display:"none"}}}},Me=Ct=>{let{componentCls:Pt,menuArrowOffset:At}=Ct;return{[`${Pt}-rtl`]:{direction:"rtl"},[`${Pt}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Pt}-rtl${Pt}-vertical,
|
|
|
${Pt}-submenu-rtl ${Pt}-vertical`]:{[`${Pt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${At})`},"&::after":{transform:`rotate(45deg) translateY(${At})`}}}}};const _t=Ct=>Object.assign({},(0,en.oN)(Ct));var ti=(Ct,Pt)=>{const{componentCls:At,itemColor:wt,itemSelectedColor:Xt,groupTitleColor:Re,itemBg:We,subMenuItemBg:In,itemSelectedBg:Hn,activeBarHeight:Un,activeBarWidth:Yn,activeBarBorderWidth:Fe,motionDurationSlow:bn,motionEaseInOut:En,motionEaseOut:Qn,itemPaddingInline:Sn,motionDurationMid:Vi,itemHoverColor:Qe,lineType:Pn,colorSplit:Ci,itemDisabledColor:yi,dangerItemColor:Oi,dangerItemHoverColor:ar,dangerItemSelectedColor:br,dangerItemActiveBg:wr,dangerItemSelectedBg:cr,itemHoverBg:Ar,itemActiveBg:ir,menuSubMenuBg:kr,horizontalItemSelectedColor:po,horizontalItemSelectedBg:So,horizontalItemBorderRadius:Eo,horizontalItemHoverBg:Yr,popupBg:Mn}=Ct;return{[`${At}-${Pt}, ${At}-${Pt} > ${At}`]:{color:wt,background:We,[`&${At}-root:focus-visible`]:Object.assign({},_t(Ct)),[`${At}-item-group-title`]:{color:Re},[`${At}-submenu-selected`]:{[`> ${At}-submenu-title`]:{color:Xt}},[`${At}-item-disabled, ${At}-submenu-disabled`]:{color:`${yi} !important`},[`${At}-item:not(${At}-item-selected):not(${At}-submenu-selected)`]:{[`&:hover, > ${At}-submenu-title:hover`]:{color:Qe}},[`&:not(${At}-horizontal)`]:{[`${At}-item:not(${At}-item-selected)`]:{"&:hover":{backgroundColor:Ar},"&:active":{backgroundColor:ir}},[`${At}-submenu-title`]:{"&:hover":{backgroundColor:Ar},"&:active":{backgroundColor:ir}}},[`${At}-item-danger`]:{color:Oi,[`&${At}-item:hover`]:{[`&:not(${At}-item-selected):not(${At}-submenu-selected)`]:{color:ar}},[`&${At}-item:active`]:{background:wr}},[`${At}-item a`]:{"&, &:hover":{color:"inherit"}},[`${At}-item-selected`]:{color:Xt,[`&${At}-item-danger`]:{color:br},"a, a:hover":{color:"inherit"}},[`& ${At}-item-selected`]:{backgroundColor:Hn,[`&${At}-item-danger`]:{backgroundColor:cr}},[`${At}-item, ${At}-submenu-title`]:{[`&:not(${At}-item-disabled):focus-visible`]:Object.assign({},_t(Ct))},[`&${At}-submenu > ${At}`]:{backgroundColor:kr},[`&${At}-popup > ${At}`]:{backgroundColor:Mn},[`&${At}-horizontal`]:Object.assign(Object.assign({},Pt==="dark"?{borderBottom:0}:{}),{[`> ${At}-item, > ${At}-submenu`]:{top:Fe,marginTop:-Fe,marginBottom:0,borderRadius:Eo,"&::after":{position:"absolute",insetInline:Sn,bottom:0,borderBottom:`${Un}px solid transparent`,transition:`border-color ${bn} ${En}`,content:'""'},"&:hover, &-active, &-open":{background:Yr,"&::after":{borderBottomWidth:Un,borderBottomColor:po}},"&-selected":{color:po,backgroundColor:So,"&:hover":{backgroundColor:So},"&::after":{borderBottomWidth:Un,borderBottomColor:po}}}}),[`&${At}-root`]:{[`&${At}-inline, &${At}-vertical`]:{borderInlineEnd:`${Fe}px ${Pn} ${Ci}`}},[`&${At}-inline`]:{[`${At}-sub${At}-inline`]:{background:In},[`${At}-item, ${At}-submenu-title`]:Fe&&Yn?{width:`calc(100% + ${Fe}px)`}:{},[`${At}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Yn}px solid ${Xt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Vi} ${Qn}`,`opacity ${Vi} ${Qn}`].join(","),content:'""'},[`&${At}-item-danger`]:{"&::after":{borderInlineEndColor:br}}},[`${At}-selected, ${At}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Vi} ${En}`,`opacity ${Vi} ${En}`].join(",")}}}}}};const vn=Ct=>{const{componentCls:Pt,itemHeight:At,itemMarginInline:wt,padding:Xt,menuArrowSize:Re,marginXS:We,itemMarginBlock:In}=Ct,Hn=Xt+Re+We;return{[`${Pt}-item`]:{position:"relative",overflow:"hidden"},[`${Pt}-item, ${Pt}-submenu-title`]:{height:At,lineHeight:`${At}px`,paddingInline:Xt,overflow:"hidden",textOverflow:"ellipsis",marginInline:wt,marginBlock:In,width:`calc(100% - ${wt*2}px)`},[`> ${Pt}-item,
|
|
|
> ${Pt}-submenu > ${Pt}-submenu-title`]:{height:At,lineHeight:`${At}px`},[`${Pt}-item-group-list ${Pt}-submenu-title,
|
|
|
${Pt}-submenu-title`]:{paddingInlineEnd:Hn}}};var on=Ct=>{const{componentCls:Pt,iconCls:At,itemHeight:wt,colorTextLightSolid:Xt,dropdownWidth:Re,controlHeightLG:We,motionDurationMid:In,motionEaseOut:Hn,paddingXL:Un,itemMarginInline:Yn,fontSizeLG:Fe,motionDurationSlow:bn,paddingXS:En,boxShadowSecondary:Qn,collapsedWidth:Sn,collapsedIconSize:Vi}=Ct,Qe={height:wt,lineHeight:`${wt}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Pt]:{"&-inline, &-vertical":Object.assign({[`&${Pt}-root`]:{boxShadow:"none"}},vn(Ct))},[`${Pt}-submenu-popup`]:{[`${Pt}-vertical`]:Object.assign(Object.assign({},vn(Ct)),{boxShadow:Qn})}},{[`${Pt}-submenu-popup ${Pt}-vertical${Pt}-sub`]:{minWidth:Re,maxHeight:`calc(100vh - ${We*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Pt}-inline`]:{width:"100%",[`&${Pt}-root`]:{[`${Pt}-item, ${Pt}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${bn}`,`background ${bn}`,`padding ${In} ${Hn}`].join(","),[`> ${Pt}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Pt}-sub${Pt}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Pt}-submenu > ${Pt}-submenu-title`]:Qe,[`& ${Pt}-item-group-title`]:{paddingInlineStart:Un}},[`${Pt}-item`]:Qe}},{[`${Pt}-inline-collapsed`]:{width:Sn,[`&${Pt}-root`]:{[`${Pt}-item, ${Pt}-submenu ${Pt}-submenu-title`]:{[`> ${Pt}-inline-collapsed-noicon`]:{fontSize:Fe,textAlign:"center"}}},[`> ${Pt}-item,
|
|
|
> ${Pt}-item-group > ${Pt}-item-group-list > ${Pt}-item,
|
|
|
> ${Pt}-item-group > ${Pt}-item-group-list > ${Pt}-submenu > ${Pt}-submenu-title,
|
|
|
> ${Pt}-submenu > ${Pt}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Fe/2}px - ${Yn}px)`,textOverflow:"clip",[`
|
|
|
${Pt}-submenu-arrow,
|
|
|
${Pt}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${Pt}-item-icon, ${At}`]:{margin:0,fontSize:Vi,lineHeight:`${wt}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Pt}-item-icon, ${At}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Pt}-item-icon, ${At}`]:{display:"none"},"a, a:hover":{color:Xt}},[`${Pt}-item-group-title`]:Object.assign(Object.assign({},en.vS),{paddingInline:En})}}]};const On=Ct=>{const{componentCls:Pt,motionDurationSlow:At,motionDurationMid:wt,motionEaseInOut:Xt,motionEaseOut:Re,iconCls:We,iconSize:In,iconMarginInlineEnd:Hn}=Ct;return{[`${Pt}-item, ${Pt}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${At}`,`background ${At}`,`padding ${At} ${Xt}`].join(","),[`${Pt}-item-icon, ${We}`]:{minWidth:In,fontSize:In,transition:[`font-size ${wt} ${Re}`,`margin ${At} ${Xt}`,`color ${At}`].join(","),"+ span":{marginInlineStart:Hn,opacity:1,transition:[`opacity ${At} ${Xt}`,`margin ${At}`,`color ${At}`].join(",")}},[`${Pt}-item-icon`]:Object.assign({},(0,en.Ro)()),[`&${Pt}-item-only-child`]:{[`> ${We}, > ${Pt}-item-icon`]:{marginInlineEnd:0}}},[`${Pt}-item-disabled, ${Pt}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Pt}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ni=Ct=>{const{componentCls:Pt,motionDurationSlow:At,motionEaseInOut:wt,borderRadius:Xt,menuArrowSize:Re,menuArrowOffset:We}=Ct;return{[`${Pt}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ct.margin,width:Re,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${At} ${wt}, opacity ${At}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Re*.6,height:Re*.15,backgroundColor:"currentcolor",borderRadius:Xt,transition:[`background ${At} ${wt}`,`transform ${At} ${wt}`,`top ${At} ${wt}`,`color ${At} ${wt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${We})`},"&::after":{transform:`rotate(-45deg) translateY(${We})`}}}}},gi=Ct=>{const{antCls:Pt,componentCls:At,fontSize:wt,motionDurationSlow:Xt,motionDurationMid:Re,motionEaseInOut:We,paddingXS:In,padding:Hn,colorSplit:Un,lineWidth:Yn,zIndexPopup:Fe,borderRadiusLG:bn,subMenuItemBorderRadius:En,menuArrowSize:Qn,menuArrowOffset:Sn,lineType:Vi,menuPanelMaskInset:Qe,groupTitleLineHeight:Pn,groupTitleFontSize:Ci}=Ct;return[{"":{[`${At}`]:Object.assign(Object.assign({},(0,en.dF)()),{"&-hidden":{display:"none"}})},[`${At}-submenu-hidden`]:{display:"none"}},{[At]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,en.Wf)(Ct)),(0,en.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:wt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Xt} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${At}-item`]:{flex:"none"}},[`${At}-item, ${At}-submenu, ${At}-submenu-title`]:{borderRadius:Ct.itemBorderRadius},[`${At}-item-group-title`]:{padding:`${In}px ${Hn}px`,fontSize:Ci,lineHeight:Pn,transition:`all ${Xt}`},[`&-horizontal ${At}-submenu`]:{transition:[`border-color ${Xt} ${We}`,`background ${Xt} ${We}`].join(",")},[`${At}-submenu, ${At}-submenu-inline`]:{transition:[`border-color ${Xt} ${We}`,`background ${Xt} ${We}`,`padding ${Re} ${We}`].join(",")},[`${At}-submenu ${At}-sub`]:{cursor:"initial",transition:[`background ${Xt} ${We}`,`padding ${Xt} ${We}`].join(",")},[`${At}-title-content`]:{transition:`color ${Xt}`},[`${At}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${At}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Un,borderStyle:Vi,borderWidth:0,borderTopWidth:Yn,marginBlock:Yn,padding:0,"&-dashed":{borderStyle:"dashed"}}}),On(Ct)),{[`${At}-item-group`]:{[`${At}-item-group-list`]:{margin:0,padding:0,[`${At}-item, ${At}-submenu-title`]:{paddingInline:`${wt*2}px ${Hn}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Fe,borderRadius:bn,boxShadow:"none",transformOrigin:"0 0",[`&${At}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Qe}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Qe},"\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:Ct.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ct.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ct.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ct.paddingXS},[`> ${At}`]:Object.assign(Object.assign(Object.assign({borderRadius:bn},On(Ct)),Ni(Ct)),{[`${At}-item, ${At}-submenu > ${At}-submenu-title`]:{borderRadius:En},[`${At}-submenu-title::after`]:{transition:`transform ${Xt} ${We}`}})}}),Ni(Ct)),{[`&-inline-collapsed ${At}-submenu-arrow,
|
|
|
&-inline ${At}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Sn})`},"&::after":{transform:`rotate(45deg) translateX(-${Sn})`}},[`${At}-submenu-open${At}-submenu-inline > ${At}-submenu-title > ${At}-submenu-arrow`]:{transform:`translateY(-${Qn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Sn})`},"&::before":{transform:`rotate(45deg) translateX(${Sn})`}}})},{[`${Pt}-layout-header`]:{[At]:{lineHeight:"inherit"}}}]};var Dn=(Ct,Pt)=>(0,Vn.Z)("Menu",wt=>{if(Pt===!1)return[];const{colorBgElevated:Xt,colorPrimary:Re,colorTextLightSolid:We,controlHeightLG:In,fontSize:Hn,darkItemColor:Un,darkDangerItemColor:Yn,darkItemBg:Fe,darkSubMenuItemBg:bn,darkItemSelectedColor:En,darkItemSelectedBg:Qn,darkDangerItemSelectedBg:Sn,darkItemHoverBg:Vi,darkGroupTitleColor:Qe,darkItemHoverColor:Pn,darkItemDisabledColor:Ci,darkDangerItemHoverColor:yi,darkDangerItemSelectedColor:Oi,darkDangerItemActiveBg:ar}=wt,br=Hn/7*5,wr=(0,Ne.TS)(wt,{menuArrowSize:br,menuHorizontalHeight:In*1.15,menuArrowOffset:`${br*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Xt}),cr=(0,Ne.TS)(wr,{itemColor:Un,itemHoverColor:Pn,groupTitleColor:Qe,itemSelectedColor:En,itemBg:Fe,popupBg:Fe,subMenuItemBg:bn,itemActiveBg:"transparent",itemSelectedBg:Qn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Vi,itemDisabledColor:Ci,dangerItemColor:Yn,dangerItemHoverColor:yi,dangerItemSelectedColor:Oi,dangerItemActiveBg:ar,dangerItemSelectedBg:Sn,menuSubMenuBg:bn,horizontalItemSelectedColor:We,horizontalItemSelectedBg:Re});return[gi(wr),zn(wr),on(wr),ti(wr,"light"),ti(cr,"dark"),Me(wr),(0,ie.Z)(wr),(0,an.oN)(wr,"slide-up"),(0,an.oN)(wr,"slide-down"),(0,nn._y)(wr,"zoom-big")]},wt=>{const{colorPrimary:Xt,colorError:Re,colorTextDisabled:We,colorErrorBg:In,colorText:Hn,colorTextDescription:Un,colorBgContainer:Yn,colorFillAlter:Fe,colorFillContent:bn,lineWidth:En,lineWidthBold:Qn,controlItemBgActive:Sn,colorBgTextHover:Vi,controlHeightLG:Qe,lineHeight:Pn,colorBgElevated:Ci,marginXXS:yi,padding:Oi,fontSize:ar,controlHeightSM:br,fontSizeLG:wr,colorTextLightSolid:cr,colorErrorHover:Ar}=wt,ir=new He.C(cr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:wt.zIndexPopupBase+50,radiusItem:wt.borderRadiusLG,itemBorderRadius:wt.borderRadiusLG,radiusSubMenuItem:wt.borderRadiusSM,subMenuItemBorderRadius:wt.borderRadiusSM,colorItemText:Hn,itemColor:Hn,colorItemTextHover:Hn,itemHoverColor:Hn,colorItemTextHoverHorizontal:Xt,horizontalItemHoverColor:Xt,colorGroupTitle:Un,groupTitleColor:Un,colorItemTextSelected:Xt,itemSelectedColor:Xt,colorItemTextSelectedHorizontal:Xt,horizontalItemSelectedColor:Xt,colorItemBg:Yn,itemBg:Yn,colorItemBgHover:Vi,itemHoverBg:Vi,colorItemBgActive:bn,itemActiveBg:Sn,colorSubItemBg:Fe,subMenuItemBg:Fe,colorItemBgSelected:Sn,itemSelectedBg:Sn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Qn,activeBarHeight:Qn,colorActiveBarBorderSize:En,activeBarBorderWidth:En,colorItemTextDisabled:We,itemDisabledColor:We,colorDangerItemText:Re,dangerItemColor:Re,colorDangerItemTextHover:Re,dangerItemHoverColor:Re,colorDangerItemTextSelected:Re,dangerItemSelectedColor:Re,colorDangerItemBgActive:In,dangerItemActiveBg:In,colorDangerItemBgSelected:In,dangerItemSelectedBg:In,itemMarginInline:wt.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Qe,groupTitleLineHeight:Pn,collapsedWidth:Qe*2,popupBg:Ci,itemMarginBlock:yi,itemPaddingInline:Oi,horizontalLineHeight:`${Qe*1.15}px`,iconSize:ar,iconMarginInlineEnd:br-ar,collapsedIconSize:wr,groupTitleFontSize:ar,darkItemDisabledColor:new He.C(cr).setAlpha(.25).toRgbString(),darkItemColor:ir,darkDangerItemColor:Re,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:cr,darkItemSelectedBg:Xt,darkDangerItemSelectedBg:Re,darkItemHoverBg:"transparent",darkGroupTitleColor:ir,darkItemHoverColor:cr,darkDangerItemHoverColor:Ar,darkDangerItemSelectedColor:cr,darkDangerItemActiveBg:Re}},{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"]]})(Ct),Jn=function(Ct,Pt){var At={};for(var wt in Ct)Object.prototype.hasOwnProperty.call(Ct,wt)&&Pt.indexOf(wt)<0&&(At[wt]=Ct[wt]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,wt=Object.getOwnPropertySymbols(Ct);Xt<wt.length;Xt++)Pt.indexOf(wt[Xt])<0&&Object.prototype.propertyIsEnumerable.call(Ct,wt[Xt])&&(At[wt[Xt]]=Ct[wt[Xt]]);return At},hi=(0,Ft.forwardRef)((Ct,Pt)=>{var At,wt;const Xt=Ft.useContext(zt.Z),Re=Xt||{},{getPrefixCls:We,getPopupContainer:In,direction:Hn,menu:Un}=Ft.useContext(Ht.E_),Yn=We(),{prefixCls:Fe,className:bn,style:En,theme:Qn="light",expandIcon:Sn,_internalDisableMenuItemTitleTooltip:Vi,inlineCollapsed:Qe,siderCollapsed:Pn,items:Ci,children:yi,rootClassName:Oi,mode:ar,selectable:br,onClick:wr,overflowedIndicatorPopupClassName:cr}=Ct,Ar=Jn(Ct,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ir=(0,De.Z)(Ar,["collapsedWidth"]),kr=Ie(Ci)||yi;(At=Re.validator)===null||At===void 0||At.call(Re,{mode:ar});const po=(0,be.useEvent)(function(){var tr;wr==null||wr.apply(void 0,arguments),(tr=Re.onClick)===null||tr===void 0||tr.call(Re)}),So=Re.mode||ar,Eo=br!=null?br:Re.selectable,Yr=Ft.useMemo(()=>Pn!==void 0?Pn:Qe,[Qe,Pn]),Mn={horizontal:{motionName:`${Yn}-slide-up`},inline:(0,Rt.Z)(Yn),other:{motionName:`${Yn}-zoom-big`}},St=We("menu",Fe||Re.prefixCls),[Zi,mi]=Dn(St,!Xt),rr=Dt()(`${St}-${Qn}`,Un==null?void 0:Un.className,bn);let fr;if(typeof Sn=="function")fr=Sn;else if(Sn===null||Sn===!1)fr=null;else if(Re.expandIcon===null||Re.expandIcon===!1)fr=null;else{const tr=Sn!=null?Sn:Re.expandIcon;fr=(0,de.Tm)(tr,{className:Dt()(`${St}-submenu-expand-icon`,(0,de.l$)(tr)?(wt=tr.props)===null||wt===void 0?void 0:wt.className:"")})}const pr=Ft.useMemo(()=>({prefixCls:St,inlineCollapsed:Yr||!1,direction:Hn,firstLevel:!0,theme:Qn,mode:So,disableMenuItemTitleTooltip:Vi}),[St,Yr,Hn,Vi,Qn]);return Zi(Ft.createElement(zt.Z.Provider,{value:null},Ft.createElement(ue.Provider,{value:pr},Ft.createElement(ft.ZP,Object.assign({getPopupContainer:In,overflowedIndicator:Ft.createElement(pe.Z,null),overflowedIndicatorPopupClassName:Dt()(St,`${St}-${Qn}`,cr),mode:So,selectable:Eo,onClick:po},ir,{inlineCollapsed:Yr,style:Object.assign(Object.assign({},Un==null?void 0:Un.style),En),className:rr,prefixCls:St,direction:Hn,defaultMotions:Mn,expandIcon:fr,ref:Pt,rootClassName:Dt()(Oi,mi)}),kr))))});const qt=(0,Ft.forwardRef)((Ct,Pt)=>{const At=(0,Ft.useRef)(null),wt=Ft.useContext($t.D);return(0,Ft.useImperativeHandle)(Pt,()=>({menu:At.current,focus:Xt=>{var Re;(Re=At.current)===null||Re===void 0||Re.focus(Xt)}})),Ft.createElement(hi,Object.assign({ref:At},Ct,wt))});qt.Item=It,qt.SubMenu=Ze,qt.Divider=Nt,qt.ItemGroup=ft.BW;var kt=qt},28452:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Yn}});var ft=mt(87462),Ft=mt(67294),$t={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"},ne=$t,Dt=mt(84089),Ht=function(bn,En){return Ft.createElement(Dt.Z,(0,ft.Z)({},bn,{ref:En,icon:ne}))},Wt=Ft.forwardRef(Ht),jt=mt(81893),Nt=mt(22751),Ut=mt(91034),De=mt(94184),Yt=mt.n(De),de=mt(4942),we=mt(1413),ue=mt(15671),he=mt(43144),It=mt(60136),ye=mt(51630),Ze=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,pe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,be="".concat(Ze," ").concat(pe).split(/[\s\n]+/),Rt="aria-",zt="data-";function Qt(Fe,bn){return Fe.indexOf(bn)===0}function te(Fe){var bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,En;bn===!1?En={aria:!0,data:!0,attr:!0}:bn===!0?En={aria:!0}:En=(0,we.Z)({},bn);var Qn={};return Object.keys(Fe).forEach(function(Sn){(En.aria&&(Sn==="role"||Qt(Sn,Rt))||En.data&&Qt(Sn,zt)||En.attr&&be.includes(Sn))&&(Qn[Sn]=Fe[Sn])}),Qn}var Ie={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},He=Ie,en=mt(81626),ie=function(Fe){(0,It.Z)(En,Fe);var bn=(0,ye.Z)(En);function En(){var Qn;(0,ue.Z)(this,En);for(var Sn=arguments.length,Vi=new Array(Sn),Qe=0;Qe<Sn;Qe++)Vi[Qe]=arguments[Qe];return Qn=bn.call.apply(bn,[this].concat(Vi)),Qn.state={goInputText:""},Qn.getValidValue=function(){var Pn=Qn.state.goInputText;return!Pn||Number.isNaN(Pn)?void 0:Number(Pn)},Qn.buildOptionText=function(Pn){return"".concat(Pn," ").concat(Qn.props.locale.items_per_page)},Qn.changeSize=function(Pn){Qn.props.changeSize(Number(Pn))},Qn.handleChange=function(Pn){Qn.setState({goInputText:Pn.target.value})},Qn.handleBlur=function(Pn){var Ci=Qn.props,yi=Ci.goButton,Oi=Ci.quickGo,ar=Ci.rootPrefixCls,br=Qn.state.goInputText;yi||br===""||(Qn.setState({goInputText:""}),!(Pn.relatedTarget&&(Pn.relatedTarget.className.indexOf("".concat(ar,"-item-link"))>=0||Pn.relatedTarget.className.indexOf("".concat(ar,"-item"))>=0))&&Oi(Qn.getValidValue()))},Qn.go=function(Pn){var Ci=Qn.state.goInputText;Ci!==""&&(Pn.keyCode===He.ENTER||Pn.type==="click")&&(Qn.setState({goInputText:""}),Qn.props.quickGo(Qn.getValidValue()))},Qn}return(0,he.Z)(En,[{key:"getPageSizeOptions",value:function(){var Sn=this.props,Vi=Sn.pageSize,Qe=Sn.pageSizeOptions;return Qe.some(function(Pn){return Pn.toString()===Vi.toString()})?Qe:Qe.concat([Vi.toString()]).sort(function(Pn,Ci){var yi=Number.isNaN(Number(Pn))?0:Number(Pn),Oi=Number.isNaN(Number(Ci))?0:Number(Ci);return yi-Oi})}},{key:"render",value:function(){var Sn=this,Vi=this.props,Qe=Vi.pageSize,Pn=Vi.locale,Ci=Vi.rootPrefixCls,yi=Vi.changeSize,Oi=Vi.quickGo,ar=Vi.goButton,br=Vi.selectComponentClass,wr=Vi.buildOptionText,cr=Vi.selectPrefixCls,Ar=Vi.disabled,ir=this.state.goInputText,kr="".concat(Ci,"-options"),po=br,So=null,Eo=null,Yr=null;if(!yi&&!Oi)return null;var Mn=this.getPageSizeOptions();if(yi&&po){var St=Mn.map(function(Zi,mi){return Ft.createElement(po.Option,{key:mi,value:Zi.toString()},(wr||Sn.buildOptionText)(Zi))});So=Ft.createElement(po,{disabled:Ar,prefixCls:cr,showSearch:!1,className:"".concat(kr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Qe||Mn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(mi){return mi.parentNode},"aria-label":Pn.page_size,defaultOpen:!1},St)}return Oi&&(ar&&(Yr=typeof ar=="boolean"?Ft.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Ar,className:"".concat(kr,"-quick-jumper-button")},Pn.jump_to_confirm):Ft.createElement("span",{onClick:this.go,onKeyUp:this.go},ar)),Eo=Ft.createElement("div",{className:"".concat(kr,"-quick-jumper")},Pn.jump_to,Ft.createElement("input",{disabled:Ar,type:"text",value:ir,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Pn.page}),Pn.page,Yr)),Ft.createElement("li",{className:"".concat(kr)},So,Eo)}}]),En}(Ft.Component);ie.defaultProps={pageSizeOptions:["10","20","50","100"]};var an=ie,nn=function(bn){var En,Qn=bn.rootPrefixCls,Sn=bn.page,Vi=bn.active,Qe=bn.className,Pn=bn.showTitle,Ci=bn.onClick,yi=bn.onKeyPress,Oi=bn.itemRender,ar="".concat(Qn,"-item"),br=Yt()(ar,"".concat(ar,"-").concat(Sn),(En={},(0,de.Z)(En,"".concat(ar,"-active"),Vi),(0,de.Z)(En,"".concat(ar,"-disabled"),!Sn),(0,de.Z)(En,bn.className,Qe),En)),wr=function(){Ci(Sn)},cr=function(kr){yi(kr,Ci,Sn)},Ar=Oi(Sn,"page",Ft.createElement("a",{rel:"nofollow"},Sn));return Ar?Ft.createElement("li",{title:Pn?Sn.toString():null,className:br,onClick:wr,onKeyPress:cr,tabIndex:0},Ar):null},Vn=nn;function Ne(){}function Ye(Fe){var bn=Number(Fe);return typeof bn=="number"&&!Number.isNaN(bn)&&isFinite(bn)&&Math.floor(bn)===bn}var zn=function(bn,En,Qn){return Qn};function Gn(Fe,bn,En){var Qn=typeof Fe=="undefined"?bn.pageSize:Fe;return Math.floor((En.total-1)/Qn)+1}var Me=function(Fe){(0,It.Z)(En,Fe);var bn=(0,ye.Z)(En);function En(Qn){var Sn;(0,ue.Z)(this,En),Sn=bn.call(this,Qn),Sn.paginationNode=Ft.createRef(),Sn.getJumpPrevPage=function(){return Math.max(1,Sn.state.current-(Sn.props.showLessItems?3:5))},Sn.getJumpNextPage=function(){return Math.min(Gn(void 0,Sn.state,Sn.props),Sn.state.current+(Sn.props.showLessItems?3:5))},Sn.getItemIcon=function(yi,Oi){var ar=Sn.props.prefixCls,br=yi||Ft.createElement("button",{type:"button","aria-label":Oi,className:"".concat(ar,"-item-link")});return typeof yi=="function"&&(br=Ft.createElement(yi,(0,we.Z)({},Sn.props))),br},Sn.isValid=function(yi){var Oi=Sn.props.total;return Ye(yi)&&yi!==Sn.state.current&&Ye(Oi)&&Oi>0},Sn.shouldDisplayQuickJumper=function(){var yi=Sn.props,Oi=yi.showQuickJumper,ar=yi.total,br=Sn.state.pageSize;return ar<=br?!1:Oi},Sn.handleKeyDown=function(yi){(yi.keyCode===He.ARROW_UP||yi.keyCode===He.ARROW_DOWN)&&yi.preventDefault()},Sn.handleKeyUp=function(yi){var Oi=Sn.getValidValue(yi),ar=Sn.state.currentInputValue;Oi!==ar&&Sn.setState({currentInputValue:Oi}),yi.keyCode===He.ENTER?Sn.handleChange(Oi):yi.keyCode===He.ARROW_UP?Sn.handleChange(Oi-1):yi.keyCode===He.ARROW_DOWN&&Sn.handleChange(Oi+1)},Sn.handleBlur=function(yi){var Oi=Sn.getValidValue(yi);Sn.handleChange(Oi)},Sn.changePageSize=function(yi){var Oi=Sn.state.current,ar=Gn(yi,Sn.state,Sn.props);Oi=Oi>ar?ar:Oi,ar===0&&(Oi=Sn.state.current),typeof yi=="number"&&("pageSize"in Sn.props||Sn.setState({pageSize:yi}),"current"in Sn.props||Sn.setState({current:Oi,currentInputValue:Oi})),Sn.props.onShowSizeChange(Oi,yi),"onChange"in Sn.props&&Sn.props.onChange&&Sn.props.onChange(Oi,yi)},Sn.handleChange=function(yi){var Oi=Sn.props,ar=Oi.disabled,br=Oi.onChange,wr=Sn.state,cr=wr.pageSize,Ar=wr.current,ir=wr.currentInputValue;if(Sn.isValid(yi)&&!ar){var kr=Gn(void 0,Sn.state,Sn.props),po=yi;return yi>kr?po=kr:yi<1&&(po=1),"current"in Sn.props||Sn.setState({current:po}),po!==ir&&Sn.setState({currentInputValue:po}),br(po,cr),po}return Ar},Sn.prev=function(){Sn.hasPrev()&&Sn.handleChange(Sn.state.current-1)},Sn.next=function(){Sn.hasNext()&&Sn.handleChange(Sn.state.current+1)},Sn.jumpPrev=function(){Sn.handleChange(Sn.getJumpPrevPage())},Sn.jumpNext=function(){Sn.handleChange(Sn.getJumpNextPage())},Sn.hasPrev=function(){return Sn.state.current>1},Sn.hasNext=function(){return Sn.state.current<Gn(void 0,Sn.state,Sn.props)},Sn.runIfEnter=function(yi,Oi){if(yi.key==="Enter"||yi.charCode===13){for(var ar=arguments.length,br=new Array(ar>2?ar-2:0),wr=2;wr<ar;wr++)br[wr-2]=arguments[wr];Oi.apply(void 0,br)}},Sn.runIfEnterPrev=function(yi){Sn.runIfEnter(yi,Sn.prev)},Sn.runIfEnterNext=function(yi){Sn.runIfEnter(yi,Sn.next)},Sn.runIfEnterJumpPrev=function(yi){Sn.runIfEnter(yi,Sn.jumpPrev)},Sn.runIfEnterJumpNext=function(yi){Sn.runIfEnter(yi,Sn.jumpNext)},Sn.handleGoTO=function(yi){(yi.keyCode===He.ENTER||yi.type==="click")&&Sn.handleChange(Sn.state.currentInputValue)},Sn.renderPrev=function(yi){var Oi=Sn.props,ar=Oi.prevIcon,br=Oi.itemRender,wr=br(yi,"prev",Sn.getItemIcon(ar,"prev page")),cr=!Sn.hasPrev();return(0,Ft.isValidElement)(wr)?(0,Ft.cloneElement)(wr,{disabled:cr}):wr},Sn.renderNext=function(yi){var Oi=Sn.props,ar=Oi.nextIcon,br=Oi.itemRender,wr=br(yi,"next",Sn.getItemIcon(ar,"next page")),cr=!Sn.hasNext();return(0,Ft.isValidElement)(wr)?(0,Ft.cloneElement)(wr,{disabled:cr}):wr};var Vi=Qn.onChange!==Ne,Qe="current"in Qn;Qe&&!Vi&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Pn=Qn.defaultCurrent;"current"in Qn&&(Pn=Qn.current);var Ci=Qn.defaultPageSize;return"pageSize"in Qn&&(Ci=Qn.pageSize),Pn=Math.min(Pn,Gn(Ci,void 0,Qn)),Sn.state={current:Pn,currentInputValue:Pn,pageSize:Ci},Sn}return(0,he.Z)(En,[{key:"componentDidUpdate",value:function(Sn,Vi){var Qe=this.props.prefixCls;if(Vi.current!==this.state.current&&this.paginationNode.current){var Pn=this.paginationNode.current.querySelector(".".concat(Qe,"-item-").concat(Vi.current));if(Pn&&document.activeElement===Pn){var Ci;Pn==null||(Ci=Pn.blur)===null||Ci===void 0||Ci.call(Pn)}}}},{key:"getValidValue",value:function(Sn){var Vi=Sn.target.value,Qe=Gn(void 0,this.state,this.props),Pn=this.state.currentInputValue,Ci;return Vi===""?Ci=Vi:Number.isNaN(Number(Vi))?Ci=Pn:Vi>=Qe?Ci=Qe:Ci=Number(Vi),Ci}},{key:"getShowSizeChanger",value:function(){var Sn=this.props,Vi=Sn.showSizeChanger,Qe=Sn.total,Pn=Sn.totalBoundaryShowSizeChanger;return typeof Vi!="undefined"?Vi:Qe>Pn}},{key:"render",value:function(){var Sn=this.props,Vi=Sn.prefixCls,Qe=Sn.className,Pn=Sn.style,Ci=Sn.disabled,yi=Sn.hideOnSinglePage,Oi=Sn.total,ar=Sn.locale,br=Sn.showQuickJumper,wr=Sn.showLessItems,cr=Sn.showTitle,Ar=Sn.showTotal,ir=Sn.simple,kr=Sn.itemRender,po=Sn.showPrevNextJumpers,So=Sn.jumpPrevIcon,Eo=Sn.jumpNextIcon,Yr=Sn.selectComponentClass,Mn=Sn.selectPrefixCls,St=Sn.pageSizeOptions,Zi=this.state,mi=Zi.current,rr=Zi.pageSize,fr=Zi.currentInputValue;if(yi===!0&&Oi<=rr)return null;var pr=Gn(void 0,this.state,this.props),tr=[],Xe=null,mn=null,Tn=null,Nn=null,ge=null,Cn=br&&br.goButton,ai=wr?1:2,Te=mi-1>0?mi-1:0,ce=mi+1<pr?mi+1:pr,Oe=te(this.props,{aria:!0,data:!0}),pn=Ar&&Ft.createElement("li",{className:"".concat(Vi,"-total-text")},Ar(Oi,[Oi===0?0:(mi-1)*rr+1,mi*rr>Oi?Oi:mi*rr]));if(ir){Cn&&(typeof Cn=="boolean"?ge=Ft.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ar.jump_to_confirm):ge=Ft.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Cn),ge=Ft.createElement("li",{title:cr?"".concat(ar.jump_to).concat(mi,"/").concat(pr):null,className:"".concat(Vi,"-simple-pager")},ge));var fi=this.renderPrev(Te);return Ft.createElement("ul",(0,ft.Z)({className:Yt()(Vi,"".concat(Vi,"-simple"),(0,de.Z)({},"".concat(Vi,"-disabled"),Ci),Qe),style:Pn,ref:this.paginationNode},Oe),pn,fi?Ft.createElement("li",{title:cr?ar.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Yt()("".concat(Vi,"-prev"),(0,de.Z)({},"".concat(Vi,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},fi):null,Ft.createElement("li",{title:cr?"".concat(mi,"/").concat(pr):null,className:"".concat(Vi,"-simple-pager")},Ft.createElement("input",{type:"text",value:fr,disabled:Ci,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Ft.createElement("span",{className:"".concat(Vi,"-slash")},"/"),pr),Ft.createElement("li",{title:cr?ar.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Yt()("".concat(Vi,"-next"),(0,de.Z)({},"".concat(Vi,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(ce)),ge)}if(pr<=3+ai*2){var $n={locale:ar,rootPrefixCls:Vi,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:cr,itemRender:kr};pr||tr.push(Ft.createElement(Vn,(0,ft.Z)({},$n,{key:"noPager",page:1,className:"".concat(Vi,"-item-disabled")})));for(var _e=1;_e<=pr;_e+=1){var ri=mi===_e;tr.push(Ft.createElement(Vn,(0,ft.Z)({},$n,{key:_e,page:_e,active:ri})))}}else{var Ri=wr?ar.prev_3:ar.prev_5,$e=wr?ar.next_3:ar.next_5,Ge=kr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(So,"prev page")),un=kr(this.getJumpNextPage(),"jump-next",this.getItemIcon(Eo,"next page"));po&&(Xe=Ge?Ft.createElement("li",{title:cr?Ri:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Yt()("".concat(Vi,"-jump-prev"),(0,de.Z)({},"".concat(Vi,"-jump-prev-custom-icon"),!!So))},Ge):null,mn=un?Ft.createElement("li",{title:cr?$e:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Yt()("".concat(Vi,"-jump-next"),(0,de.Z)({},"".concat(Vi,"-jump-next-custom-icon"),!!Eo))},un):null),Nn=Ft.createElement(Vn,{locale:ar,last:!0,rootPrefixCls:Vi,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:pr,page:pr,active:!1,showTitle:cr,itemRender:kr}),Tn=Ft.createElement(Vn,{locale:ar,rootPrefixCls:Vi,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:cr,itemRender:kr});var xi=Math.max(1,mi-ai),Yi=Math.min(mi+ai,pr);mi-1<=ai&&(Yi=1+ai*2),pr-mi<=ai&&(xi=pr-ai*2);for(var ci=xi;ci<=Yi;ci+=1){var Xn=mi===ci;tr.push(Ft.createElement(Vn,{locale:ar,rootPrefixCls:Vi,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ci,page:ci,active:Xn,showTitle:cr,itemRender:kr}))}mi-1>=ai*2&&mi!==3&&(tr[0]=(0,Ft.cloneElement)(tr[0],{className:"".concat(Vi,"-item-after-jump-prev")}),tr.unshift(Xe)),pr-mi>=ai*2&&mi!==pr-2&&(tr[tr.length-1]=(0,Ft.cloneElement)(tr[tr.length-1],{className:"".concat(Vi,"-item-before-jump-next")}),tr.push(mn)),xi!==1&&tr.unshift(Tn),Yi!==pr&&tr.push(Nn)}var qn=!this.hasPrev()||!pr,Ki=!this.hasNext()||!pr,vr=this.renderPrev(Te),ki=this.renderNext(ce);return Ft.createElement("ul",(0,ft.Z)({className:Yt()(Vi,Qe,(0,de.Z)({},"".concat(Vi,"-disabled"),Ci)),style:Pn,ref:this.paginationNode},Oe),pn,vr?Ft.createElement("li",{title:cr?ar.prev_page:null,onClick:this.prev,tabIndex:qn?null:0,onKeyPress:this.runIfEnterPrev,className:Yt()("".concat(Vi,"-prev"),(0,de.Z)({},"".concat(Vi,"-disabled"),qn)),"aria-disabled":qn},vr):null,tr,ki?Ft.createElement("li",{title:cr?ar.next_page:null,onClick:this.next,tabIndex:Ki?null:0,onKeyPress:this.runIfEnterNext,className:Yt()("".concat(Vi,"-next"),(0,de.Z)({},"".concat(Vi,"-disabled"),Ki)),"aria-disabled":Ki},ki):null,Ft.createElement(an,{disabled:Ci,locale:ar,rootPrefixCls:Vi,selectComponentClass:Yr,selectPrefixCls:Mn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:mi,pageSize:rr,pageSizeOptions:St,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Cn}))}}],[{key:"getDerivedStateFromProps",value:function(Sn,Vi){var Qe={};if("current"in Sn&&(Qe.current=Sn.current,Sn.current!==Vi.current&&(Qe.currentInputValue=Qe.current)),"pageSize"in Sn&&Sn.pageSize!==Vi.pageSize){var Pn=Vi.current,Ci=Gn(Sn.pageSize,Vi,Sn);Pn=Pn>Ci?Ci:Pn,"current"in Sn||(Qe.current=Pn,Qe.currentInputValue=Pn),Qe.pageSize=Sn.pageSize}return Qe}}]),En}(Ft.Component);Me.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Ne,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Ne,locale:en.Z,style:{},itemRender:zn,totalBoundaryShowSizeChanger:50};var _t=Me,rn=mt(62906),ti=mt(53124),vn=mt(98675),ze=mt(25378),on=mt(10110),On=mt(11713);const Ni=Fe=>Ft.createElement(On.default,Object.assign({},Fe,{showSearch:!0,size:"small"})),gi=Fe=>Ft.createElement(On.default,Object.assign({},Fe,{showSearch:!0,size:"middle"}));Ni.Option=On.default.Option,gi.Option=On.default.Option;var Dn=mt(47673),Jn=mt(14747),Ai=mt(67968),hi=mt(45503);const qt=Fe=>{const{componentCls:bn}=Fe;return{[`${bn}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${bn}-item-link`]:{color:Fe.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${bn}-item-link`]:{color:Fe.colorTextDisabled,cursor:"not-allowed"}}},[`&${bn}-disabled`]:{cursor:"not-allowed",[`${bn}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Fe.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Fe.colorBorder,backgroundColor:Fe.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Fe.itemActiveBgDisabled},a:{color:Fe.itemActiveColorDisabled}}},[`${bn}-item-link`]:{color:Fe.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${bn}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${bn}-simple-pager`]:{color:Fe.colorTextDisabled},[`${bn}-jump-prev, ${bn}-jump-next`]:{[`${bn}-item-link-icon`]:{opacity:0},[`${bn}-item-ellipsis`]:{opacity:1}}},[`&${bn}-simple`]:{[`${bn}-prev, ${bn}-next`]:{[`&${bn}-disabled ${bn}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},kt=Fe=>{const{componentCls:bn}=Fe;return{[`&${bn}-mini ${bn}-total-text, &${bn}-mini ${bn}-simple-pager`]:{height:Fe.itemSizeSM,lineHeight:`${Fe.itemSizeSM}px`},[`&${bn}-mini ${bn}-item`]:{minWidth:Fe.itemSizeSM,height:Fe.itemSizeSM,margin:0,lineHeight:`${Fe.itemSizeSM-2}px`},[`&${bn}-mini:not(${bn}-disabled) ${bn}-item:not(${bn}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Fe.colorBgTextHover},"&:active":{backgroundColor:Fe.colorBgTextActive}},[`&${bn}-mini ${bn}-prev, &${bn}-mini ${bn}-next`]:{minWidth:Fe.itemSizeSM,height:Fe.itemSizeSM,margin:0,lineHeight:`${Fe.itemSizeSM}px`},[`&${bn}-mini:not(${bn}-disabled)`]:{[`${bn}-prev, ${bn}-next`]:{[`&:hover ${bn}-item-link`]:{backgroundColor:Fe.colorBgTextHover},[`&:active ${bn}-item-link`]:{backgroundColor:Fe.colorBgTextActive},[`&${bn}-disabled:hover ${bn}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${bn}-mini ${bn}-prev ${bn}-item-link,
|
|
|
&${bn}-mini ${bn}-next ${bn}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Fe.itemSizeSM,lineHeight:`${Fe.itemSizeSM}px`}},[`&${bn}-mini ${bn}-jump-prev, &${bn}-mini ${bn}-jump-next`]:{height:Fe.itemSizeSM,marginInlineEnd:0,lineHeight:`${Fe.itemSizeSM}px`},[`&${bn}-mini ${bn}-options`]:{marginInlineStart:Fe.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Fe.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Fe.itemSizeSM,lineHeight:`${Fe.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Dn.x0)(Fe)),{width:Fe.paginationMiniQuickJumperInputWidth,height:Fe.controlHeightSM})}}}},Ct=Fe=>{const{componentCls:bn}=Fe;return{[`
|
|
|
&${bn}-simple ${bn}-prev,
|
|
|
&${bn}-simple ${bn}-next
|
|
|
`]:{height:Fe.itemSizeSM,lineHeight:`${Fe.itemSizeSM}px`,verticalAlign:"top",[`${bn}-item-link`]:{height:Fe.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Fe.colorBgTextHover},"&:active":{backgroundColor:Fe.colorBgTextActive},"&::after":{height:Fe.itemSizeSM,lineHeight:`${Fe.itemSizeSM}px`}}},[`&${bn}-simple ${bn}-simple-pager`]:{display:"inline-block",height:Fe.itemSizeSM,marginInlineEnd:Fe.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Fe.marginXS,padding:`0 ${Fe.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Fe.itemInputBg,border:`${Fe.lineWidth}px ${Fe.lineType} ${Fe.colorBorder}`,borderRadius:Fe.borderRadius,outline:"none",transition:`border-color ${Fe.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Fe.colorPrimary},"&:focus":{borderColor:Fe.colorPrimaryHover,boxShadow:`${Fe.inputOutlineOffset}px 0 ${Fe.controlOutlineWidth}px ${Fe.controlOutline}`},"&[disabled]":{color:Fe.colorTextDisabled,backgroundColor:Fe.colorBgContainerDisabled,borderColor:Fe.colorBorder,cursor:"not-allowed"}}}}},Pt=Fe=>{const{componentCls:bn}=Fe;return{[`${bn}-jump-prev, ${bn}-jump-next`]:{outline:0,[`${bn}-item-container`]:{position:"relative",[`${bn}-item-link-icon`]:{color:Fe.colorPrimary,fontSize:Fe.fontSizeSM,opacity:0,transition:`all ${Fe.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${bn}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Fe.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Fe.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Fe.paginationEllipsisTextIndent,opacity:1,transition:`all ${Fe.motionDurationMid}`}},"&:hover":{[`${bn}-item-link-icon`]:{opacity:1},[`${bn}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${bn}-prev,
|
|
|
${bn}-jump-prev,
|
|
|
${bn}-jump-next
|
|
|
`]:{marginInlineEnd:Fe.marginXS},[`
|
|
|
${bn}-prev,
|
|
|
${bn}-next,
|
|
|
${bn}-jump-prev,
|
|
|
${bn}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:Fe.itemSize,height:Fe.itemSize,color:Fe.colorText,fontFamily:Fe.fontFamily,lineHeight:`${Fe.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Fe.borderRadius,cursor:"pointer",transition:`all ${Fe.motionDurationMid}`},[`${bn}-prev, ${bn}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Fe.colorText,cursor:"pointer",userSelect:"none"},[`${bn}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Fe.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Fe.lineWidth}px ${Fe.lineType} transparent`,borderRadius:Fe.borderRadius,outline:"none",transition:`all ${Fe.motionDurationMid}`},[`&:hover ${bn}-item-link`]:{backgroundColor:Fe.colorBgTextHover},[`&:active ${bn}-item-link`]:{backgroundColor:Fe.colorBgTextActive},[`&${bn}-disabled:hover`]:{[`${bn}-item-link`]:{backgroundColor:"transparent"}}},[`${bn}-slash`]:{marginInlineEnd:Fe.paginationSlashMarginInlineEnd,marginInlineStart:Fe.paginationSlashMarginInlineStart},[`${bn}-options`]:{display:"inline-block",marginInlineStart:Fe.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Fe.controlHeight,marginInlineStart:Fe.marginXS,lineHeight:`${Fe.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Dn.ik)(Fe)),{width:Fe.controlHeightLG*1.25,height:Fe.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Fe.marginXS,marginInlineEnd:Fe.marginXS})}}}},At=Fe=>{const{componentCls:bn}=Fe;return{[`${bn}-item`]:{display:"inline-block",minWidth:Fe.itemSize,height:Fe.itemSize,marginInlineEnd:Fe.marginXS,fontFamily:Fe.fontFamily,lineHeight:`${Fe.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Fe.lineWidth}px ${Fe.lineType} transparent`,borderRadius:Fe.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Fe.paginationItemPaddingInline}px`,color:Fe.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${bn}-item-active)`]:{"&:hover":{transition:`all ${Fe.motionDurationMid}`,backgroundColor:Fe.colorBgTextHover},"&:active":{backgroundColor:Fe.colorBgTextActive}},"&-active":{fontWeight:Fe.fontWeightStrong,backgroundColor:Fe.itemActiveBg,borderColor:Fe.colorPrimary,a:{color:Fe.colorPrimary},"&:hover":{borderColor:Fe.colorPrimaryHover},"&:hover a":{color:Fe.colorPrimaryHover}}}}},wt=Fe=>{const{componentCls:bn}=Fe;return{[bn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Jn.Wf)(Fe)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${bn}-total-text`]:{display:"inline-block",height:Fe.itemSize,marginInlineEnd:Fe.marginXS,lineHeight:`${Fe.itemSize-2}px`,verticalAlign:"middle"}}),At(Fe)),Pt(Fe)),Ct(Fe)),kt(Fe)),qt(Fe)),{[`@media only screen and (max-width: ${Fe.screenLG}px)`]:{[`${bn}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Fe.screenSM}px)`]:{[`${bn}-options`]:{display:"none"}}}),[`&${Fe.componentCls}-rtl`]:{direction:"rtl"}}},Xt=Fe=>{const{componentCls:bn}=Fe;return{[`${bn}${bn}-disabled:not(${bn}-mini)`]:{"&, &:hover":{[`${bn}-item-link`]:{borderColor:Fe.colorBorder}},"&:focus-visible":{[`${bn}-item-link`]:{borderColor:Fe.colorBorder}},[`${bn}-item, ${bn}-item-link`]:{backgroundColor:Fe.colorBgContainerDisabled,borderColor:Fe.colorBorder,[`&:hover:not(${bn}-item-active)`]:{backgroundColor:Fe.colorBgContainerDisabled,borderColor:Fe.colorBorder,a:{color:Fe.colorTextDisabled}},[`&${bn}-item-active`]:{backgroundColor:Fe.itemActiveBgDisabled}},[`${bn}-prev, ${bn}-next`]:{"&:hover button":{backgroundColor:Fe.colorBgContainerDisabled,borderColor:Fe.colorBorder,color:Fe.colorTextDisabled},[`${bn}-item-link`]:{backgroundColor:Fe.colorBgContainerDisabled,borderColor:Fe.colorBorder}}},[`${bn}:not(${bn}-mini)`]:{[`${bn}-prev, ${bn}-next`]:{"&:hover button":{borderColor:Fe.colorPrimaryHover,backgroundColor:Fe.itemBg},[`${bn}-item-link`]:{backgroundColor:Fe.itemLinkBg,borderColor:Fe.colorBorder},[`&:hover ${bn}-item-link`]:{borderColor:Fe.colorPrimary,backgroundColor:Fe.itemBg,color:Fe.colorPrimary},[`&${bn}-disabled`]:{[`${bn}-item-link`]:{borderColor:Fe.colorBorder,color:Fe.colorTextDisabled}}},[`${bn}-item`]:{backgroundColor:Fe.itemBg,border:`${Fe.lineWidth}px ${Fe.lineType} ${Fe.colorBorder}`,[`&:hover:not(${bn}-item-active)`]:{borderColor:Fe.colorPrimary,backgroundColor:Fe.itemBg,a:{color:Fe.colorPrimary}},"&-active":{borderColor:Fe.colorPrimary}}}}},Re=Fe=>{const{componentCls:bn}=Fe;return{[`${bn}:not(${bn}-disabled)`]:{[`${bn}-item`]:Object.assign({},(0,Jn.Qy)(Fe)),[`${bn}-jump-prev, ${bn}-jump-next`]:{"&:focus-visible":Object.assign({[`${bn}-item-link-icon`]:{opacity:1},[`${bn}-item-ellipsis`]:{opacity:0}},(0,Jn.oN)(Fe))},[`${bn}-prev, ${bn}-next`]:{[`&:focus-visible ${bn}-item-link`]:Object.assign({},(0,Jn.oN)(Fe))}}}};var We=(0,Ai.Z)("Pagination",Fe=>{const bn=(0,hi.TS)(Fe,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Fe.marginXXS/2,paginationMiniQuickJumperInputWidth:Fe.controlHeightLG*1.1,paginationItemPaddingInline:Fe.marginXXS*1.5,paginationEllipsisLetterSpacing:Fe.marginXXS/2,paginationSlashMarginInlineStart:Fe.marginXXS,paginationSlashMarginInlineEnd:Fe.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Dn.e5)(Fe),(0,Dn.TM)(Fe));return[wt(bn),Re(bn),Fe.wireframe&&Xt(bn)]},Fe=>({itemBg:Fe.colorBgContainer,itemSize:Fe.controlHeight,itemSizeSM:Fe.controlHeightSM,itemActiveBg:Fe.colorBgContainer,itemLinkBg:Fe.colorBgContainer,itemActiveColorDisabled:Fe.colorTextDisabled,itemActiveBgDisabled:Fe.controlItemBgActiveDisabled,itemInputBg:Fe.colorBgContainer,miniOptionsSizeChangerTop:0})),In=function(Fe,bn){var En={};for(var Qn in Fe)Object.prototype.hasOwnProperty.call(Fe,Qn)&&bn.indexOf(Qn)<0&&(En[Qn]=Fe[Qn]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Sn=0,Qn=Object.getOwnPropertySymbols(Fe);Sn<Qn.length;Sn++)bn.indexOf(Qn[Sn])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Qn[Sn])&&(En[Qn[Sn]]=Fe[Qn[Sn]]);return En},Un=Fe=>{const{prefixCls:bn,selectPrefixCls:En,className:Qn,rootClassName:Sn,style:Vi,size:Qe,locale:Pn,selectComponentClass:Ci,responsive:yi,showSizeChanger:Oi}=Fe,ar=In(Fe,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:br}=(0,ze.Z)(yi),{getPrefixCls:wr,direction:cr,pagination:Ar={}}=Ft.useContext(ti.E_),ir=wr("pagination",bn),[kr,po]=We(ir),So=Oi!=null?Oi:Ar.showSizeChanger,Eo=Ft.useMemo(()=>{const pr=Ft.createElement("span",{className:`${ir}-item-ellipsis`},"\u2022\u2022\u2022"),tr=Ft.createElement("button",{className:`${ir}-item-link`,type:"button",tabIndex:-1},cr==="rtl"?Ft.createElement(Ut.Z,null):Ft.createElement(Nt.Z,null)),Xe=Ft.createElement("button",{className:`${ir}-item-link`,type:"button",tabIndex:-1},cr==="rtl"?Ft.createElement(Nt.Z,null):Ft.createElement(Ut.Z,null)),mn=Ft.createElement("a",{className:`${ir}-item-link`},Ft.createElement("div",{className:`${ir}-item-container`},cr==="rtl"?Ft.createElement(jt.Z,{className:`${ir}-item-link-icon`}):Ft.createElement(Wt,{className:`${ir}-item-link-icon`}),pr)),Tn=Ft.createElement("a",{className:`${ir}-item-link`},Ft.createElement("div",{className:`${ir}-item-container`},cr==="rtl"?Ft.createElement(Wt,{className:`${ir}-item-link-icon`}):Ft.createElement(jt.Z,{className:`${ir}-item-link-icon`}),pr));return{prevIcon:tr,nextIcon:Xe,jumpPrevIcon:mn,jumpNextIcon:Tn}},[cr,ir]),[Yr]=(0,on.Z)("Pagination",rn.Z),Mn=Object.assign(Object.assign({},Yr),Pn),St=(0,vn.Z)(Qe),Zi=St==="small"||!!(br&&!St&&yi),mi=wr("select",En),rr=Yt()({[`${ir}-mini`]:Zi,[`${ir}-rtl`]:cr==="rtl"},Ar==null?void 0:Ar.className,Qn,Sn,po),fr=Object.assign(Object.assign({},Ar==null?void 0:Ar.style),Vi);return kr(Ft.createElement(_t,Object.assign({},Eo,ar,{style:fr,prefixCls:ir,selectPrefixCls:mi,className:rr,selectComponentClass:Ci||(Zi?Ni:gi),locale:Mn,showSizeChanger:So})))},Yn=Un},66330:function(jn,tn,mt){"use strict";mt.d(tn,{t5:function(){return Ut}});var ft=mt(94184),Ft=mt.n(ft),$t=mt(92419),ne=mt(67294),Dt=mt(53124),Ht=mt(81643),Wt=mt(20136),jt=function(Yt,de){var we={};for(var ue in Yt)Object.prototype.hasOwnProperty.call(Yt,ue)&&de.indexOf(ue)<0&&(we[ue]=Yt[ue]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,ue=Object.getOwnPropertySymbols(Yt);he<ue.length;he++)de.indexOf(ue[he])<0&&Object.prototype.propertyIsEnumerable.call(Yt,ue[he])&&(we[ue[he]]=Yt[ue[he]]);return we};const Nt=(Yt,de,we)=>{if(!(!de&&!we))return ne.createElement(ne.Fragment,null,de&&ne.createElement("div",{className:`${Yt}-title`},(0,Ht.Z)(de)),ne.createElement("div",{className:`${Yt}-inner-content`},(0,Ht.Z)(we)))},Ut=Yt=>{const{hashId:de,prefixCls:we,className:ue,style:he,placement:It="top",title:ye,content:Ze,children:pe}=Yt;return ne.createElement("div",{className:Ft()(de,we,`${we}-pure`,`${we}-placement-${It}`,ue),style:he},ne.createElement("div",{className:`${we}-arrow`}),ne.createElement($t.G,Object.assign({},Yt,{className:de,prefixCls:we}),pe||Nt(we,ye,Ze)))},De=Yt=>{const{prefixCls:de}=Yt,we=jt(Yt,["prefixCls"]),{getPrefixCls:ue}=ne.useContext(Dt.E_),he=ue("popover",de),[It,ye]=(0,Wt.Z)(he);return It(ne.createElement(Ut,Object.assign({},we,{prefixCls:he,hashId:ye})))};tn.ZP=De},55241:function(jn,tn,mt){"use strict";var ft=mt(94184),Ft=mt.n(ft),$t=mt(67294),ne=mt(81643),Dt=mt(33603),Ht=mt(53124),Wt=mt(83062),jt=mt(66330),Nt=mt(20136),Ut=function(de,we){var ue={};for(var he in de)Object.prototype.hasOwnProperty.call(de,he)&&we.indexOf(he)<0&&(ue[he]=de[he]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,he=Object.getOwnPropertySymbols(de);It<he.length;It++)we.indexOf(he[It])<0&&Object.prototype.propertyIsEnumerable.call(de,he[It])&&(ue[he[It]]=de[he[It]]);return ue};const De=de=>{let{title:we,content:ue,prefixCls:he}=de;return $t.createElement($t.Fragment,null,we&&$t.createElement("div",{className:`${he}-title`},(0,ne.Z)(we)),$t.createElement("div",{className:`${he}-inner-content`},(0,ne.Z)(ue)))},Yt=$t.forwardRef((de,we)=>{const{prefixCls:ue,title:he,content:It,overlayClassName:ye,placement:Ze="top",trigger:pe="hover",mouseEnterDelay:be=.1,mouseLeaveDelay:Rt=.1,overlayStyle:zt={}}=de,Qt=Ut(de,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:te}=$t.useContext(Ht.E_),Ie=te("popover",ue),[He,en]=(0,Nt.Z)(Ie),ie=te(),an=Ft()(ye,en);return He($t.createElement(Wt.Z,Object.assign({placement:Ze,trigger:pe,mouseEnterDelay:be,mouseLeaveDelay:Rt,overlayStyle:zt},Qt,{prefixCls:Ie,overlayClassName:an,ref:we,overlay:he||It?$t.createElement(De,{prefixCls:Ie,title:he,content:It}):null,transitionName:(0,Dt.m)(ie,"zoom-big",Qt.transitionName),"data-popover-inject":!0})))});Yt._InternalPanelDoNotUseOrYouWillBeFired=jt.ZP,tn.Z=Yt},20136:function(jn,tn,mt){"use strict";var ft=mt(14747),Ft=mt(50438),$t=mt(97414),ne=mt(8796),Dt=mt(67968),Ht=mt(45503);const Wt=Ut=>{const{componentCls:De,popoverColor:Yt,minWidth:de,fontWeightStrong:we,popoverPadding:ue,boxShadowSecondary:he,colorTextHeading:It,borderRadiusLG:ye,zIndexPopup:Ze,marginXS:pe,colorBgElevated:be,popoverBg:Rt}=Ut;return[{[De]:Object.assign(Object.assign({},(0,ft.Wf)(Ut)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:Ze,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":be,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${De}-content`]:{position:"relative"},[`${De}-inner`]:{backgroundColor:Rt,backgroundClip:"padding-box",borderRadius:ye,boxShadow:he,padding:ue},[`${De}-title`]:{minWidth:de,marginBottom:pe,color:It,fontWeight:we},[`${De}-inner-content`]:{color:Yt}})},(0,$t.ZP)(Ut,{colorBg:"var(--antd-arrow-background-color)"}),{[`${De}-pure`]:{position:"relative",maxWidth:"none",margin:Ut.sizePopupArrow,display:"inline-block",[`${De}-content`]:{display:"inline-block"}}}]},jt=Ut=>{const{componentCls:De}=Ut;return{[De]:ne.i.map(Yt=>{const de=Ut[`${Yt}6`];return{[`&${De}-${Yt}`]:{"--antd-arrow-background-color":de,[`${De}-inner`]:{backgroundColor:de},[`${De}-arrow`]:{background:"transparent"}}}})}},Nt=Ut=>{const{componentCls:De,lineWidth:Yt,lineType:de,colorSplit:we,paddingSM:ue,controlHeight:he,fontSize:It,lineHeight:ye,padding:Ze}=Ut,pe=he-Math.round(It*ye),be=pe/2,Rt=pe/2-Yt,zt=Ze;return{[De]:{[`${De}-inner`]:{padding:0},[`${De}-title`]:{margin:0,padding:`${be}px ${zt}px ${Rt}px`,borderBottom:`${Yt}px ${de} ${we}`},[`${De}-inner-content`]:{padding:`${ue}px ${zt}px`}}}};tn.Z=(0,Dt.Z)("Popover",Ut=>{const{colorBgElevated:De,colorText:Yt,wireframe:de}=Ut,we=(0,Ht.TS)(Ut,{popoverPadding:12,popoverBg:De,popoverColor:Yt});return[Wt(we),jt(we),de&&Nt(we),(0,Ft._y)(we,"zoom-big")]},Ut=>({width:177,minWidth:177,zIndexPopup:Ut.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},38703:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Vi}});var ft=mt(67294),Ft=mt(87725),$t=mt(18299),ne=mt(16646),Dt=mt(73475),Ht=mt(94184),Wt=mt.n(Ht),jt=mt(10366),Nt=mt(53124),Ut=mt(87462),De=mt(1413),Yt=mt(45987),de={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},we=function(){var Pn=(0,ft.useRef)([]),Ci=(0,ft.useRef)(null);return(0,ft.useEffect)(function(){var yi=Date.now(),Oi=!1;Pn.current.forEach(function(ar){if(ar){Oi=!0;var br=ar.style;br.transitionDuration=".3s, .3s, .3s, .06s",Ci.current&&yi-Ci.current<100&&(br.transitionDuration="0s, 0s")}}),Oi&&(Ci.current=Date.now())}),Pn.current},ue=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],he=function(Pn){var Ci=(0,De.Z)((0,De.Z)({},de),Pn),yi=Ci.className,Oi=Ci.percent,ar=Ci.prefixCls,br=Ci.strokeColor,wr=Ci.strokeLinecap,cr=Ci.strokeWidth,Ar=Ci.style,ir=Ci.trailColor,kr=Ci.trailWidth,po=Ci.transition,So=(0,Yt.Z)(Ci,ue);delete So.gapPosition;var Eo=Array.isArray(Oi)?Oi:[Oi],Yr=Array.isArray(br)?br:[br],Mn=we(),St=cr/2,Zi=100-cr/2,mi="M ".concat(wr==="round"?St:0,",").concat(St,`
|
|
|
L `).concat(wr==="round"?Zi:100,",").concat(St),rr="0 0 100 ".concat(cr),fr=0;return ft.createElement("svg",(0,Ut.Z)({className:Wt()("".concat(ar,"-line"),yi),viewBox:rr,preserveAspectRatio:"none",style:Ar},So),ft.createElement("path",{className:"".concat(ar,"-line-trail"),d:mi,strokeLinecap:wr,stroke:ir,strokeWidth:kr||cr,fillOpacity:"0"}),Eo.map(function(pr,tr){var Xe=1;switch(wr){case"round":Xe=1-cr/100;break;case"square":Xe=1-cr/2/100;break;default:Xe=1;break}var mn={strokeDasharray:"".concat(pr*Xe,"px, 100px"),strokeDashoffset:"-".concat(fr,"px"),transition:po||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Tn=Yr[tr]||Yr[Yr.length-1];return fr+=pr,ft.createElement("path",{key:tr,className:"".concat(ar,"-line-path"),d:mi,strokeLinecap:wr,stroke:Tn,strokeWidth:cr,fillOpacity:"0",ref:function(ge){Mn[tr]=ge},style:mn})}))},It=he,ye=mt(71002),Ze=mt(97685),pe=mt(98924),be=0,Rt=(0,pe.Z)();function zt(){var Qe;return Rt?(Qe=be,be+=1):Qe="TEST_OR_SSR",Qe}var Qt=function(Qe){var Pn=ft.useState(),Ci=(0,Ze.Z)(Pn,2),yi=Ci[0],Oi=Ci[1];return ft.useEffect(function(){Oi("rc_progress_".concat(zt()))},[]),Qe||yi},te=function(Pn){var Ci=Pn.bg,yi=Pn.children;return ft.createElement("div",{style:{width:"100%",height:"100%",background:Ci}},yi)};function Ie(Qe,Pn){return Object.keys(Qe).map(function(Ci){var yi=parseFloat(Ci),Oi="".concat(Math.floor(yi*Pn),"%");return"".concat(Qe[Ci]," ").concat(Oi)})}var He=ft.forwardRef(function(Qe,Pn){var Ci=Qe.prefixCls,yi=Qe.color,Oi=Qe.gradientId,ar=Qe.radius,br=Qe.style,wr=Qe.ptg,cr=Qe.strokeLinecap,Ar=Qe.strokeWidth,ir=Qe.size,kr=Qe.gapDegree,po=yi&&(0,ye.Z)(yi)==="object",So=po?"#FFF":void 0,Eo=ir/2,Yr=ft.createElement("circle",{className:"".concat(Ci,"-circle-path"),r:ar,cx:Eo,cy:Eo,stroke:So,strokeLinecap:cr,strokeWidth:Ar,opacity:wr===0?0:1,style:br,ref:Pn});if(!po)return Yr;var Mn="".concat(Oi,"-conic"),St=kr?"".concat(180+kr/2,"deg"):"0deg",Zi=Ie(yi,(360-kr)/360),mi=Ie(yi,1),rr="conic-gradient(from ".concat(St,", ").concat(Zi.join(", "),")"),fr="linear-gradient(to ".concat(kr?"bottom":"top",", ").concat(mi.join(", "),")");return ft.createElement(ft.Fragment,null,ft.createElement("mask",{id:Mn},Yr),ft.createElement("foreignObject",{x:0,y:0,width:ir,height:ir,mask:"url(#".concat(Mn,")")},ft.createElement(te,{bg:fr},ft.createElement(te,{bg:rr}))))}),en=He,ie=100,an=function(Pn,Ci,yi,Oi,ar,br,wr,cr,Ar,ir){var kr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,po=yi/100*360*((360-br)/360),So=br===0?0:{bottom:0,top:180,left:90,right:-90}[wr],Eo=(100-Oi)/100*Ci;Ar==="round"&&Oi!==100&&(Eo+=ir/2,Eo>=Ci&&(Eo=Ci-.01));var Yr=ie/2;return{stroke:typeof cr=="string"?cr:void 0,strokeDasharray:"".concat(Ci,"px ").concat(Pn),strokeDashoffset:Eo+kr,transform:"rotate(".concat(ar+po+So,"deg)"),transformOrigin:"".concat(Yr,"px ").concat(Yr,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},nn=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Vn(Qe){var Pn=Qe!=null?Qe:[];return Array.isArray(Pn)?Pn:[Pn]}var Ne=function(Pn){var Ci=(0,De.Z)((0,De.Z)({},de),Pn),yi=Ci.id,Oi=Ci.prefixCls,ar=Ci.steps,br=Ci.strokeWidth,wr=Ci.trailWidth,cr=Ci.gapDegree,Ar=cr===void 0?0:cr,ir=Ci.gapPosition,kr=Ci.trailColor,po=Ci.strokeLinecap,So=Ci.style,Eo=Ci.className,Yr=Ci.strokeColor,Mn=Ci.percent,St=(0,Yt.Z)(Ci,nn),Zi=ie/2,mi=Qt(yi),rr="".concat(mi,"-gradient"),fr=Zi-br/2,pr=Math.PI*2*fr,tr=Ar>0?90+Ar/2:-90,Xe=pr*((360-Ar)/360),mn=(0,ye.Z)(ar)==="object"?ar:{count:ar,space:2},Tn=mn.count,Nn=mn.space,ge=Vn(Mn),Cn=Vn(Yr),ai=Cn.find(function(_e){return _e&&(0,ye.Z)(_e)==="object"}),Te=ai&&(0,ye.Z)(ai)==="object",ce=Te?"butt":po,Oe=an(pr,Xe,0,100,tr,Ar,ir,kr,ce,br),pn=we(),fi=function(){var ri=0;return ge.map(function(Ri,$e){var Ge=Cn[$e]||Cn[Cn.length-1],un=an(pr,Xe,ri,Ri,tr,Ar,ir,Ge,ce,br);return ri+=Ri,ft.createElement(en,{key:$e,color:Ge,ptg:Ri,radius:fr,prefixCls:Oi,gradientId:rr,style:un,strokeLinecap:ce,strokeWidth:br,gapDegree:Ar,ref:function(Yi){pn[$e]=Yi},size:ie})}).reverse()},$n=function(){var ri=Math.round(Tn*(ge[0]/100)),Ri=100/Tn,$e=0;return new Array(Tn).fill(null).map(function(Ge,un){var xi=un<=ri-1?Cn[0]:kr,Yi=xi&&(0,ye.Z)(xi)==="object"?"url(#".concat(rr,")"):void 0,ci=an(pr,Xe,$e,Ri,tr,Ar,ir,xi,"butt",br,Nn);return $e+=(Xe-ci.strokeDashoffset+Nn)*100/Xe,ft.createElement("circle",{key:un,className:"".concat(Oi,"-circle-path"),r:fr,cx:Zi,cy:Zi,stroke:Yi,strokeWidth:br,opacity:1,style:ci,ref:function(qn){pn[un]=qn}})})};return ft.createElement("svg",(0,Ut.Z)({className:Wt()("".concat(Oi,"-circle"),Eo),viewBox:"0 0 ".concat(ie," ").concat(ie),style:So,id:yi,role:"presentation"},St),!Tn&&ft.createElement("circle",{className:"".concat(Oi,"-circle-trail"),r:fr,cx:Zi,cy:Zi,stroke:kr,strokeLinecap:ce,strokeWidth:wr||br,style:Oe}),Tn?$n():fi())},Ye=Ne,zn={Line:It,Circle:Ye},Gn=mt(83062),Me=mt(16397);function _t(Qe){return!Qe||Qe<0?0:Qe>100?100:Qe}function rn(Qe){let{success:Pn,successPercent:Ci}=Qe,yi=Ci;return Pn&&"progress"in Pn&&(yi=Pn.progress),Pn&&"percent"in Pn&&(yi=Pn.percent),yi}const ti=Qe=>{let{percent:Pn,success:Ci,successPercent:yi}=Qe;const Oi=_t(rn({success:Ci,successPercent:yi}));return[Oi,_t(_t(Pn)-Oi)]},vn=Qe=>{let{success:Pn={},strokeColor:Ci}=Qe;const{strokeColor:yi}=Pn;return[yi||Me.presetPrimaryColors.green,Ci||null]},ze=(Qe,Pn,Ci)=>{var yi,Oi,ar,br;let wr=-1,cr=-1;if(Pn==="step"){const Ar=Ci.steps,ir=Ci.strokeWidth;typeof Qe=="string"||typeof Qe=="undefined"?(wr=Qe==="small"?2:14,cr=ir!=null?ir:8):typeof Qe=="number"?[wr,cr]=[Qe,Qe]:[wr=14,cr=8]=Qe,wr*=Ar}else if(Pn==="line"){const Ar=Ci==null?void 0:Ci.strokeWidth;typeof Qe=="string"||typeof Qe=="undefined"?cr=Ar||(Qe==="small"?6:8):typeof Qe=="number"?[wr,cr]=[Qe,Qe]:[wr=-1,cr=8]=Qe}else(Pn==="circle"||Pn==="dashboard")&&(typeof Qe=="string"||typeof Qe=="undefined"?[wr,cr]=Qe==="small"?[60,60]:[120,120]:typeof Qe=="number"?[wr,cr]=[Qe,Qe]:(wr=(Oi=(yi=Qe[0])!==null&&yi!==void 0?yi:Qe[1])!==null&&Oi!==void 0?Oi:120,cr=(br=(ar=Qe[0])!==null&&ar!==void 0?ar:Qe[1])!==null&&br!==void 0?br:120));return[wr,cr]},on=3,On=Qe=>on/Qe*100;var gi=Qe=>{const{prefixCls:Pn,trailColor:Ci=null,strokeLinecap:yi="round",gapPosition:Oi,gapDegree:ar,width:br=120,type:wr,children:cr,success:Ar,size:ir=br}=Qe,[kr,po]=ze(ir,"circle");let{strokeWidth:So}=Qe;So===void 0&&(So=Math.max(On(kr),6));const Eo={width:kr,height:po,fontSize:kr*.15+6},Yr=ft.useMemo(()=>{if(ar||ar===0)return ar;if(wr==="dashboard")return 75},[ar,wr]),Mn=Oi||wr==="dashboard"&&"bottom"||void 0,St=Object.prototype.toString.call(Qe.strokeColor)==="[object Object]",Zi=vn({success:Ar,strokeColor:Qe.strokeColor}),mi=Wt()(`${Pn}-inner`,{[`${Pn}-circle-gradient`]:St}),rr=ft.createElement(Ye,{percent:ti(Qe),strokeWidth:So,trailWidth:So,strokeColor:Zi,strokeLinecap:yi,trailColor:Ci,prefixCls:Pn,gapDegree:Yr,gapPosition:Mn});return ft.createElement("div",{className:mi,style:Eo},kr<=20?ft.createElement(Gn.Z,{title:cr},ft.createElement("span",null,rr)):ft.createElement(ft.Fragment,null,rr,cr))},Dn=function(Qe,Pn){var Ci={};for(var yi in Qe)Object.prototype.hasOwnProperty.call(Qe,yi)&&Pn.indexOf(yi)<0&&(Ci[yi]=Qe[yi]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oi=0,yi=Object.getOwnPropertySymbols(Qe);Oi<yi.length;Oi++)Pn.indexOf(yi[Oi])<0&&Object.prototype.propertyIsEnumerable.call(Qe,yi[Oi])&&(Ci[yi[Oi]]=Qe[yi[Oi]]);return Ci};const Jn=Qe=>{let Pn=[];return Object.keys(Qe).forEach(Ci=>{const yi=parseFloat(Ci.replace(/%/g,""));isNaN(yi)||Pn.push({key:yi,value:Qe[Ci]})}),Pn=Pn.sort((Ci,yi)=>Ci.key-yi.key),Pn.map(Ci=>{let{key:yi,value:Oi}=Ci;return`${Oi} ${yi}%`}).join(", ")},Ai=(Qe,Pn)=>{const{from:Ci=Me.presetPrimaryColors.blue,to:yi=Me.presetPrimaryColors.blue,direction:Oi=Pn==="rtl"?"to left":"to right"}=Qe,ar=Dn(Qe,["from","to","direction"]);if(Object.keys(ar).length!==0){const br=Jn(ar);return{backgroundImage:`linear-gradient(${Oi}, ${br})`}}return{backgroundImage:`linear-gradient(${Oi}, ${Ci}, ${yi})`}};var qt=Qe=>{const{prefixCls:Pn,direction:Ci,percent:yi,size:Oi,strokeWidth:ar,strokeColor:br,strokeLinecap:wr="round",children:cr,trailColor:Ar=null,success:ir}=Qe,kr=br&&typeof br!="string"?Ai(br,Ci):{backgroundColor:br},po=wr==="square"||wr==="butt"?0:void 0,So={backgroundColor:Ar||void 0,borderRadius:po},Eo=Oi!=null?Oi:[-1,ar||(Oi==="small"?6:8)],[Yr,Mn]=ze(Eo,"line",{strokeWidth:ar}),St=Object.assign({width:`${_t(yi)}%`,height:Mn,borderRadius:po},kr),Zi=rn(Qe),mi={width:`${_t(Zi)}%`,height:Mn,borderRadius:po,backgroundColor:ir==null?void 0:ir.strokeColor},rr={width:Yr<0?"100%":Yr,height:Mn};return ft.createElement(ft.Fragment,null,ft.createElement("div",{className:`${Pn}-outer`,style:rr},ft.createElement("div",{className:`${Pn}-inner`,style:So},ft.createElement("div",{className:`${Pn}-bg`,style:St}),Zi!==void 0?ft.createElement("div",{className:`${Pn}-success-bg`,style:mi}):null)),cr)},Ct=Qe=>{const{size:Pn,steps:Ci,percent:yi=0,strokeWidth:Oi=8,strokeColor:ar,trailColor:br=null,prefixCls:wr,children:cr}=Qe,Ar=Math.round(Ci*(yi/100)),ir=Pn==="small"?2:14,kr=Pn!=null?Pn:[ir,Oi],[po,So]=ze(kr,"step",{steps:Ci,strokeWidth:Oi}),Eo=po/Ci,Yr=new Array(Ci);for(let Mn=0;Mn<Ci;Mn++){const St=Array.isArray(ar)?ar[Mn]:ar;Yr[Mn]=ft.createElement("div",{key:Mn,className:Wt()(`${wr}-steps-item`,{[`${wr}-steps-item-active`]:Mn<=Ar-1}),style:{backgroundColor:Mn<=Ar-1?St:br,width:Eo,height:So}})}return ft.createElement("div",{className:`${wr}-steps-outer`},Yr,cr)},Pt=mt(34367),At=mt(14747),wt=mt(67968),Xt=mt(45503);const Re=Qe=>{const Pn=Qe?"100%":"-100%";return new Pt.Keyframes(`antProgress${Qe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Pn}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Pn}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},We=Qe=>{const{componentCls:Pn,iconCls:Ci}=Qe;return{[Pn]:Object.assign(Object.assign({},(0,At.Wf)(Qe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Qe.fontSize,marginInlineEnd:Qe.marginXS,marginBottom:Qe.marginXS},[`${Pn}-outer`]:{display:"inline-block",width:"100%"},[`&${Pn}-show-info`]:{[`${Pn}-outer`]:{marginInlineEnd:`calc(-2em - ${Qe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Qe.paddingXS}px)`}},[`${Pn}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Qe.remainingColor,borderRadius:Qe.lineBorderRadius},[`${Pn}-inner:not(${Pn}-circle-gradient)`]:{[`${Pn}-circle-path`]:{stroke:Qe.defaultColor}},[`${Pn}-success-bg, ${Pn}-bg`]:{position:"relative",backgroundColor:Qe.defaultColor,borderRadius:Qe.lineBorderRadius,transition:`all ${Qe.motionDurationSlow} ${Qe.motionEaseInOutCirc}`},[`${Pn}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Qe.colorSuccess},[`${Pn}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Qe.marginXS,color:Qe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ci]:{fontSize:Qe.fontSize}},[`&${Pn}-status-active`]:{[`${Pn}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Qe.colorBgContainer,borderRadius:Qe.lineBorderRadius,opacity:0,animationName:Re(),animationDuration:Qe.progressActiveMotionDuration,animationTimingFunction:Qe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Pn}-rtl${Pn}-status-active`]:{[`${Pn}-bg::before`]:{animationName:Re(!0)}},[`&${Pn}-status-exception`]:{[`${Pn}-bg`]:{backgroundColor:Qe.colorError},[`${Pn}-text`]:{color:Qe.colorError}},[`&${Pn}-status-exception ${Pn}-inner:not(${Pn}-circle-gradient)`]:{[`${Pn}-circle-path`]:{stroke:Qe.colorError}},[`&${Pn}-status-success`]:{[`${Pn}-bg`]:{backgroundColor:Qe.colorSuccess},[`${Pn}-text`]:{color:Qe.colorSuccess}},[`&${Pn}-status-success ${Pn}-inner:not(${Pn}-circle-gradient)`]:{[`${Pn}-circle-path`]:{stroke:Qe.colorSuccess}}})}},In=Qe=>{const{componentCls:Pn,iconCls:Ci}=Qe;return{[Pn]:{[`${Pn}-circle-trail`]:{stroke:Qe.remainingColor},[`&${Pn}-circle ${Pn}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Pn}-circle ${Pn}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Qe.circleTextColor,fontSize:Qe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ci]:{fontSize:`${Qe.fontSize/Qe.fontSizeSM}em`}},[`${Pn}-circle&-status-exception`]:{[`${Pn}-text`]:{color:Qe.colorError}},[`${Pn}-circle&-status-success`]:{[`${Pn}-text`]:{color:Qe.colorSuccess}}},[`${Pn}-inline-circle`]:{lineHeight:1,[`${Pn}-inner`]:{verticalAlign:"bottom"}}}},Hn=Qe=>{const{componentCls:Pn}=Qe;return{[Pn]:{[`${Pn}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Qe.progressStepMinWidth,marginInlineEnd:Qe.progressStepMarginInlineEnd,backgroundColor:Qe.remainingColor,transition:`all ${Qe.motionDurationSlow}`,"&-active":{backgroundColor:Qe.defaultColor}}}}}},Un=Qe=>{const{componentCls:Pn,iconCls:Ci}=Qe;return{[Pn]:{[`${Pn}-small&-line, ${Pn}-small&-line ${Pn}-text ${Ci}`]:{fontSize:Qe.fontSizeSM}}}};var Yn=(0,wt.Z)("Progress",Qe=>{const Pn=Qe.marginXXS/2,Ci=(0,Xt.TS)(Qe,{progressStepMarginInlineEnd:Pn,progressStepMinWidth:Pn,progressActiveMotionDuration:"2.4s"});return[We(Ci),In(Ci),Hn(Ci),Un(Ci)]},Qe=>({circleTextColor:Qe.colorText,defaultColor:Qe.colorInfo,remainingColor:Qe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Fe=function(Qe,Pn){var Ci={};for(var yi in Qe)Object.prototype.hasOwnProperty.call(Qe,yi)&&Pn.indexOf(yi)<0&&(Ci[yi]=Qe[yi]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oi=0,yi=Object.getOwnPropertySymbols(Qe);Oi<yi.length;Oi++)Pn.indexOf(yi[Oi])<0&&Object.prototype.propertyIsEnumerable.call(Qe,yi[Oi])&&(Ci[yi[Oi]]=Qe[yi[Oi]]);return Ci};const bn=null,En=["normal","exception","active","success"];var Sn=ft.forwardRef((Qe,Pn)=>{const{prefixCls:Ci,className:yi,rootClassName:Oi,steps:ar,strokeColor:br,percent:wr=0,size:cr="default",showInfo:Ar=!0,type:ir="line",status:kr,format:po,style:So}=Qe,Eo=Fe(Qe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Yr=ft.useMemo(()=>{var ge,Cn;const ai=rn(Qe);return parseInt(ai!==void 0?(ge=ai!=null?ai:0)===null||ge===void 0?void 0:ge.toString():(Cn=wr!=null?wr:0)===null||Cn===void 0?void 0:Cn.toString(),10)},[wr,Qe.success,Qe.successPercent]),Mn=ft.useMemo(()=>!En.includes(kr)&&Yr>=100?"success":kr||"normal",[kr,Yr]),{getPrefixCls:St,direction:Zi,progress:mi}=ft.useContext(Nt.E_),rr=St("progress",Ci),[fr,pr]=Yn(rr),tr=ft.useMemo(()=>{if(!Ar)return null;const ge=rn(Qe);let Cn;const ai=po||(ce=>`${ce}%`),Te=ir==="line";return po||Mn!=="exception"&&Mn!=="success"?Cn=ai(_t(wr),_t(ge)):Mn==="exception"?Cn=Te?ft.createElement(ne.Z,null):ft.createElement(Dt.Z,null):Mn==="success"&&(Cn=Te?ft.createElement(Ft.Z,null):ft.createElement($t.Z,null)),ft.createElement("span",{className:`${rr}-text`,title:typeof Cn=="string"?Cn:void 0},Cn)},[Ar,wr,Yr,Mn,ir,rr,po]),Xe=Array.isArray(br)?br[0]:br,mn=typeof br=="string"||Array.isArray(br)?br:void 0;let Tn;ir==="line"?Tn=ar?ft.createElement(Ct,Object.assign({},Qe,{strokeColor:mn,prefixCls:rr,steps:ar}),tr):ft.createElement(qt,Object.assign({},Qe,{strokeColor:Xe,prefixCls:rr,direction:Zi}),tr):(ir==="circle"||ir==="dashboard")&&(Tn=ft.createElement(gi,Object.assign({},Qe,{strokeColor:Xe,prefixCls:rr,progressStatus:Mn}),tr));const Nn=Wt()(rr,`${rr}-status-${Mn}`,`${rr}-${ir==="dashboard"&&"circle"||ar&&"steps"||ir}`,{[`${rr}-inline-circle`]:ir==="circle"&&ze(cr,"circle")[0]<=20,[`${rr}-show-info`]:Ar,[`${rr}-${cr}`]:typeof cr=="string",[`${rr}-rtl`]:Zi==="rtl"},mi==null?void 0:mi.className,yi,Oi,pr);return fr(ft.createElement("div",Object.assign({ref:Pn,style:Object.assign(Object.assign({},mi==null?void 0:mi.style),So),className:Nn,role:"progressbar","aria-valuenow":Yr},(0,jt.Z)(Eo,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Tn))}),Vi=Sn},78045:function(jn,tn,mt){"use strict";mt.d(tn,{ZP:function(){return Me}});var ft=mt(94184),Ft=mt.n(ft),$t=mt(5663),ne=mt(1337),Dt=mt(67294),Ht=mt(53124),Wt=mt(98675);const jt=Dt.createContext(null),Nt=jt.Provider;var Ut=jt;const De=Dt.createContext(null),Yt=De.Provider;var de=mt(95860),we=mt(17799),ue=mt(98866),he=mt(65223),It=mt(14747),ye=mt(67968),Ze=mt(45503);const pe=_t=>{const{componentCls:rn,antCls:ti}=_t,vn=`${rn}-group`;return{[vn]:Object.assign(Object.assign({},(0,It.Wf)(_t)),{display:"inline-block",fontSize:0,[`&${vn}-rtl`]:{direction:"rtl"},[`${ti}-badge ${ti}-badge-count`]:{zIndex:1},[`> ${ti}-badge:not(:first-child) > ${ti}-button-wrapper`]:{borderInlineStart:"none"}})}},be=_t=>{const{componentCls:rn,wrapperMarginInlineEnd:ti,colorPrimary:vn,radioSize:ze,motionDurationSlow:on,motionDurationMid:On,motionEaseInOutCirc:Ni,colorBgContainer:gi,colorBorder:Dn,lineWidth:Jn,dotSize:Ai,colorBgContainerDisabled:hi,colorTextDisabled:qt,paddingXS:kt,dotColorDisabled:Ct,lineType:Pt,radioDotDisabledSize:At,wireframe:wt,colorWhite:Xt}=_t,Re=`${rn}-inner`;return{[`${rn}-wrapper`]:Object.assign(Object.assign({},(0,It.Wf)(_t)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:ti,cursor:"pointer",[`&${rn}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:_t.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${rn}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Jn}px ${Pt} ${vn}`,borderRadius:"50%",visibility:"hidden",content:'""'},[rn]:Object.assign(Object.assign({},(0,It.Wf)(_t)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${rn}-wrapper:hover &,
|
|
|
&:hover ${Re}`]:{borderColor:vn},[`${rn}-input:focus-visible + ${Re}`]:Object.assign({},(0,It.oN)(_t)),[`${rn}:hover::after, ${rn}-wrapper:hover &::after`]:{visibility:"visible"},[`${rn}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:ze,height:ze,marginBlockStart:ze/-2,marginInlineStart:ze/-2,backgroundColor:wt?vn:Xt,borderBlockStart:0,borderInlineStart:0,borderRadius:ze,transform:"scale(0)",opacity:0,transition:`all ${on} ${Ni}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:ze,height:ze,backgroundColor:gi,borderColor:Dn,borderStyle:"solid",borderWidth:Jn,borderRadius:"50%",transition:`all ${On}`},[`${rn}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${rn}-checked`]:{[Re]:{borderColor:vn,backgroundColor:wt?gi:vn,"&::after":{transform:`scale(${Ai/ze})`,opacity:1,transition:`all ${on} ${Ni}`}}},[`${rn}-disabled`]:{cursor:"not-allowed",[Re]:{backgroundColor:hi,borderColor:Dn,cursor:"not-allowed","&::after":{backgroundColor:Ct}},[`${rn}-input`]:{cursor:"not-allowed"},[`${rn}-disabled + span`]:{color:qt,cursor:"not-allowed"},[`&${rn}-checked`]:{[Re]:{"&::after":{transform:`scale(${At/ze})`}}}},[`span${rn} + *`]:{paddingInlineStart:kt,paddingInlineEnd:kt}})}},Rt=_t=>{const{buttonColor:rn,controlHeight:ti,componentCls:vn,lineWidth:ze,lineType:on,colorBorder:On,motionDurationSlow:Ni,motionDurationMid:gi,buttonPaddingInline:Dn,fontSize:Jn,buttonBg:Ai,fontSizeLG:hi,controlHeightLG:qt,controlHeightSM:kt,paddingXS:Ct,borderRadius:Pt,borderRadiusSM:At,borderRadiusLG:wt,buttonCheckedBg:Xt,buttonSolidCheckedColor:Re,colorTextDisabled:We,colorBgContainerDisabled:In,buttonCheckedBgDisabled:Hn,buttonCheckedColorDisabled:Un,colorPrimary:Yn,colorPrimaryHover:Fe,colorPrimaryActive:bn,buttonSolidCheckedBg:En,buttonSolidCheckedHoverBg:Qn,buttonSolidCheckedActiveBg:Sn}=_t;return{[`${vn}-button-wrapper`]:{position:"relative",display:"inline-block",height:ti,margin:0,paddingInline:Dn,paddingBlock:0,color:rn,fontSize:Jn,lineHeight:`${ti-ze*2}px`,background:Ai,border:`${ze}px ${on} ${On}`,borderBlockStartWidth:ze+.02,borderInlineStartWidth:0,borderInlineEndWidth:ze,cursor:"pointer",transition:[`color ${gi}`,`background ${gi}`,`box-shadow ${gi}`].join(","),a:{color:rn},[`> ${vn}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-ze,insetInlineStart:-ze,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:ze,paddingInline:0,backgroundColor:On,transition:`background-color ${Ni}`,content:'""'}},"&:first-child":{borderInlineStart:`${ze}px ${on} ${On}`,borderStartStartRadius:Pt,borderEndStartRadius:Pt},"&:last-child":{borderStartEndRadius:Pt,borderEndEndRadius:Pt},"&:first-child:last-child":{borderRadius:Pt},[`${vn}-group-large &`]:{height:qt,fontSize:hi,lineHeight:`${qt-ze*2}px`,"&:first-child":{borderStartStartRadius:wt,borderEndStartRadius:wt},"&:last-child":{borderStartEndRadius:wt,borderEndEndRadius:wt}},[`${vn}-group-small &`]:{height:kt,paddingInline:Ct-ze,paddingBlock:0,lineHeight:`${kt-ze*2}px`,"&:first-child":{borderStartStartRadius:At,borderEndStartRadius:At},"&:last-child":{borderStartEndRadius:At,borderEndEndRadius:At}},"&:hover":{position:"relative",color:Yn},"&:has(:focus-visible)":Object.assign({},(0,It.oN)(_t)),[`${vn}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${vn}-button-wrapper-disabled)`]:{zIndex:1,color:Yn,background:Xt,borderColor:Yn,"&::before":{backgroundColor:Yn},"&:first-child":{borderColor:Yn},"&:hover":{color:Fe,borderColor:Fe,"&::before":{backgroundColor:Fe}},"&:active":{color:bn,borderColor:bn,"&::before":{backgroundColor:bn}}},[`${vn}-group-solid &-checked:not(${vn}-button-wrapper-disabled)`]:{color:Re,background:En,borderColor:En,"&:hover":{color:Re,background:Qn,borderColor:Qn},"&:active":{color:Re,background:Sn,borderColor:Sn}},"&-disabled":{color:We,backgroundColor:In,borderColor:On,cursor:"not-allowed","&:first-child, &:hover":{color:We,backgroundColor:In,borderColor:On}},[`&-disabled${vn}-button-wrapper-checked`]:{color:Un,backgroundColor:Hn,borderColor:On,boxShadow:"none"}}}},zt=_t=>_t-4*2;var Qt=(0,ye.Z)("Radio",_t=>{const{controlOutline:rn,controlOutlineWidth:ti,radioSize:vn}=_t,ze=`0 0 0 ${ti}px ${rn}`,on=ze,On=zt(vn),Ni=(0,Ze.TS)(_t,{radioDotDisabledSize:On,radioFocusShadow:ze,radioButtonFocusShadow:on});return[pe(Ni),be(Ni),Rt(Ni)]},_t=>{const{wireframe:rn,padding:ti,marginXS:vn,lineWidth:ze,fontSizeLG:on,colorText:On,colorBgContainer:Ni,colorTextDisabled:gi,controlItemBgActiveDisabled:Dn,colorTextLightSolid:Jn,colorPrimary:Ai,colorPrimaryHover:hi,colorPrimaryActive:qt}=_t,kt=4,Ct=on,Pt=rn?zt(Ct):Ct-(kt+ze)*2;return{radioSize:Ct,dotSize:Pt,dotColorDisabled:gi,buttonSolidCheckedColor:Jn,buttonSolidCheckedBg:Ai,buttonSolidCheckedHoverBg:hi,buttonSolidCheckedActiveBg:qt,buttonBg:Ni,buttonCheckedBg:Ni,buttonColor:On,buttonCheckedBgDisabled:Dn,buttonCheckedColorDisabled:gi,buttonPaddingInline:ti-ze,wrapperMarginInlineEnd:vn}}),te=mt(45353),Ie=mt(92429),He=function(_t,rn){var ti={};for(var vn in _t)Object.prototype.hasOwnProperty.call(_t,vn)&&rn.indexOf(vn)<0&&(ti[vn]=_t[vn]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,vn=Object.getOwnPropertySymbols(_t);ze<vn.length;ze++)rn.indexOf(vn[ze])<0&&Object.prototype.propertyIsEnumerable.call(_t,vn[ze])&&(ti[vn[ze]]=_t[vn[ze]]);return ti};const en=(_t,rn)=>{var ti,vn;const ze=Dt.useContext(Ut),on=Dt.useContext(De),{getPrefixCls:On,direction:Ni,radio:gi}=Dt.useContext(Ht.E_),Dn=Dt.useRef(null),Jn=(0,we.sQ)(rn,Dn),{isFormItemInput:Ai}=Dt.useContext(he.aM),hi=bn=>{var En,Qn;(En=_t.onChange)===null||En===void 0||En.call(_t,bn),(Qn=ze==null?void 0:ze.onChange)===null||Qn===void 0||Qn.call(ze,bn)},{prefixCls:qt,className:kt,rootClassName:Ct,children:Pt,style:At}=_t,wt=He(_t,["prefixCls","className","rootClassName","children","style"]),Xt=On("radio",qt),Re=((ze==null?void 0:ze.optionType)||on)==="button",We=Re?`${Xt}-button`:Xt,[In,Hn]=Qt(Xt),Un=Object.assign({},wt),Yn=Dt.useContext(ue.Z);ze&&(Un.name=ze.name,Un.onChange=hi,Un.checked=_t.value===ze.value,Un.disabled=(ti=Un.disabled)!==null&&ti!==void 0?ti:ze.disabled),Un.disabled=(vn=Un.disabled)!==null&&vn!==void 0?vn:Yn;const Fe=Ft()(`${We}-wrapper`,{[`${We}-wrapper-checked`]:Un.checked,[`${We}-wrapper-disabled`]:Un.disabled,[`${We}-wrapper-rtl`]:Ni==="rtl",[`${We}-wrapper-in-form-item`]:Ai},gi==null?void 0:gi.className,kt,Ct,Hn);return In(Dt.createElement(te.Z,{component:"Radio",disabled:Un.disabled},Dt.createElement("label",{className:Fe,style:Object.assign(Object.assign({},gi==null?void 0:gi.style),At),onMouseEnter:_t.onMouseEnter,onMouseLeave:_t.onMouseLeave},Dt.createElement(de.Z,Object.assign({},Un,{className:Ft()(Un.className,!Re&&Ie.A),type:"radio",prefixCls:We,ref:Jn})),Pt!==void 0?Dt.createElement("span",null,Pt):null)))};var an=Dt.forwardRef(en);const nn=Dt.forwardRef((_t,rn)=>{const{getPrefixCls:ti,direction:vn}=Dt.useContext(Ht.E_),[ze,on]=(0,$t.Z)(_t.defaultValue,{value:_t.value}),On=En=>{const Qn=ze,Sn=En.target.value;"value"in _t||on(Sn);const{onChange:Vi}=_t;Vi&&Sn!==Qn&&Vi(En)},{prefixCls:Ni,className:gi,rootClassName:Dn,options:Jn,buttonStyle:Ai="outline",disabled:hi,children:qt,size:kt,style:Ct,id:Pt,onMouseEnter:At,onMouseLeave:wt,onFocus:Xt,onBlur:Re}=_t,We=ti("radio",Ni),In=`${We}-group`,[Hn,Un]=Qt(We);let Yn=qt;Jn&&Jn.length>0&&(Yn=Jn.map(En=>typeof En=="string"||typeof En=="number"?Dt.createElement(an,{key:En.toString(),prefixCls:We,disabled:hi,value:En,checked:ze===En},En):Dt.createElement(an,{key:`radio-group-value-options-${En.value}`,prefixCls:We,disabled:En.disabled||hi,value:En.value,checked:ze===En.value,title:En.title,style:En.style},En.label)));const Fe=(0,Wt.Z)(kt),bn=Ft()(In,`${In}-${Ai}`,{[`${In}-${Fe}`]:Fe,[`${In}-rtl`]:vn==="rtl"},gi,Dn,Un);return Hn(Dt.createElement("div",Object.assign({},(0,ne.Z)(_t,{aria:!0,data:!0}),{className:bn,style:Ct,onMouseEnter:At,onMouseLeave:wt,onFocus:Xt,onBlur:Re,id:Pt,ref:rn}),Dt.createElement(Nt,{value:{onChange:On,value:ze,disabled:_t.disabled,name:_t.name,optionType:_t.optionType}},Yn)))});var Vn=Dt.memo(nn),Ne=function(_t,rn){var ti={};for(var vn in _t)Object.prototype.hasOwnProperty.call(_t,vn)&&rn.indexOf(vn)<0&&(ti[vn]=_t[vn]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,vn=Object.getOwnPropertySymbols(_t);ze<vn.length;ze++)rn.indexOf(vn[ze])<0&&Object.prototype.propertyIsEnumerable.call(_t,vn[ze])&&(ti[vn[ze]]=_t[vn[ze]]);return ti};const Ye=(_t,rn)=>{const{getPrefixCls:ti}=Dt.useContext(Ht.E_),{prefixCls:vn}=_t,ze=Ne(_t,["prefixCls"]),on=ti("radio",vn);return Dt.createElement(Yt,{value:"button"},Dt.createElement(an,Object.assign({prefixCls:on},ze,{type:"radio",ref:rn})))};var zn=Dt.forwardRef(Ye);const Gn=an;Gn.Button=zn,Gn.Group=Vn,Gn.__ANT_RADIO=!0;var Me=Gn},12604:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Me}});var ft=mt(87462),Ft=mt(67294),$t={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"},ne=$t,Dt=mt(84089),Ht=function(rn,ti){return Ft.createElement(Dt.Z,(0,ft.Z)({},rn,{ref:ti,icon:ne}))},Wt=Ft.forwardRef(Ht),jt=mt(94184),Nt=mt.n(jt),Ut=mt(4942),De=mt(97685),Yt=mt(45987),de=mt(21770),we=mt(15105),ue=mt(64217);function he(_t,rn){var ti=_t.disabled,vn=_t.prefixCls,ze=_t.character,on=_t.characterRender,On=_t.index,Ni=_t.count,gi=_t.value,Dn=_t.allowHalf,Jn=_t.focused,Ai=_t.onHover,hi=_t.onClick,qt=function(We){Ai(We,On)},kt=function(We){hi(We,On)},Ct=function(We){We.keyCode===we.Z.ENTER&&hi(We,On)},Pt=On+1,At=new Set([vn]);gi===0&&On===0&&Jn?At.add("".concat(vn,"-focused")):Dn&&gi+.5>=Pt&&gi<Pt?(At.add("".concat(vn,"-half")),At.add("".concat(vn,"-active")),Jn&&At.add("".concat(vn,"-focused"))):(Pt<=gi?At.add("".concat(vn,"-full")):At.add("".concat(vn,"-zero")),Pt===gi&&Jn&&At.add("".concat(vn,"-focused")));var wt=typeof ze=="function"?ze(_t):ze,Xt=Ft.createElement("li",{className:Nt()(Array.from(At)),ref:rn},Ft.createElement("div",{onClick:ti?null:kt,onKeyDown:ti?null:Ct,onMouseMove:ti?null:qt,role:"radio","aria-checked":gi>On?"true":"false","aria-posinset":On+1,"aria-setsize":Ni,tabIndex:ti?-1:0},Ft.createElement("div",{className:"".concat(vn,"-first")},wt),Ft.createElement("div",{className:"".concat(vn,"-second")},wt)));return on&&(Xt=on(Xt,_t)),Xt}var It=Ft.forwardRef(he);function ye(){var _t=Ft.useRef({});function rn(vn){return _t.current[vn]}function ti(vn){return function(ze){_t.current[vn]=ze}}return[rn,ti]}function Ze(_t){var rn=_t.pageXOffset,ti="scrollLeft";if(typeof rn!="number"){var vn=_t.document;rn=vn.documentElement[ti],typeof rn!="number"&&(rn=vn.body[ti])}return rn}function pe(_t){var rn,ti,vn=_t.ownerDocument,ze=vn.body,on=vn&&vn.documentElement,On=_t.getBoundingClientRect();return rn=On.left,ti=On.top,rn-=on.clientLeft||ze.clientLeft||0,ti-=on.clientTop||ze.clientTop||0,{left:rn,top:ti}}function be(_t){var rn=pe(_t),ti=_t.ownerDocument,vn=ti.defaultView||ti.parentWindow;return rn.left+=Ze(vn),rn.left}var Rt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function zt(_t,rn){var ti,vn=_t.prefixCls,ze=vn===void 0?"rc-rate":vn,on=_t.className,On=_t.defaultValue,Ni=_t.value,gi=_t.count,Dn=gi===void 0?5:gi,Jn=_t.allowHalf,Ai=Jn===void 0?!1:Jn,hi=_t.allowClear,qt=hi===void 0?!0:hi,kt=_t.character,Ct=kt===void 0?"\u2605":kt,Pt=_t.characterRender,At=_t.disabled,wt=_t.direction,Xt=wt===void 0?"ltr":wt,Re=_t.tabIndex,We=Re===void 0?0:Re,In=_t.autoFocus,Hn=_t.onHoverChange,Un=_t.onChange,Yn=_t.onFocus,Fe=_t.onBlur,bn=_t.onKeyDown,En=_t.onMouseLeave,Qn=(0,Yt.Z)(_t,Rt),Sn=ye(),Vi=(0,De.Z)(Sn,2),Qe=Vi[0],Pn=Vi[1],Ci=Ft.useRef(null),yi=function(){if(!At){var Te;(Te=Ci.current)===null||Te===void 0||Te.focus()}};Ft.useImperativeHandle(rn,function(){return{focus:yi,blur:function(){if(!At){var Te;(Te=Ci.current)===null||Te===void 0||Te.blur()}}}});var Oi=(0,de.Z)(On||0,{value:Ni}),ar=(0,De.Z)(Oi,2),br=ar[0],wr=ar[1],cr=(0,de.Z)(null),Ar=(0,De.Z)(cr,2),ir=Ar[0],kr=Ar[1],po=function(Te,ce){var Oe=Xt==="rtl",pn=Te+1;if(Ai){var fi=Qe(Te),$n=be(fi),_e=fi.clientWidth;(Oe&&ce-$n>_e/2||!Oe&&ce-$n<_e/2)&&(pn-=.5)}return pn},So=function(Te){wr(Te),Un==null||Un(Te)},Eo=Ft.useState(!1),Yr=(0,De.Z)(Eo,2),Mn=Yr[0],St=Yr[1],Zi=function(){St(!0),Yn==null||Yn()},mi=function(){St(!1),Fe==null||Fe()},rr=Ft.useState(null),fr=(0,De.Z)(rr,2),pr=fr[0],tr=fr[1],Xe=function(Te,ce){var Oe=po(ce,Te.pageX);Oe!==ir&&(tr(Oe),kr(null)),Hn==null||Hn(Oe)},mn=function(Te){At||(tr(null),kr(null),Hn==null||Hn(void 0)),Te&&(En==null||En(Te))},Tn=function(Te,ce){var Oe=po(ce,Te.pageX),pn=!1;qt&&(pn=Oe===br),mn(),So(pn?0:Oe),kr(pn?Oe:null)},Nn=function(Te){var ce=Te.keyCode,Oe=Xt==="rtl",pn=br;ce===we.Z.RIGHT&&pn<Dn&&!Oe?(Ai?pn+=.5:pn+=1,So(pn),Te.preventDefault()):ce===we.Z.LEFT&&pn>0&&!Oe||ce===we.Z.RIGHT&&pn>0&&Oe?(Ai?pn-=.5:pn-=1,So(pn),Te.preventDefault()):ce===we.Z.LEFT&&pn<Dn&&Oe&&(Ai?pn+=.5:pn+=1,So(pn),Te.preventDefault()),bn==null||bn(Te)};Ft.useEffect(function(){In&&!At&&yi()},[]);var ge=new Array(Dn).fill(0).map(function(ai,Te){return Ft.createElement(It,{ref:Pn(Te),index:Te,count:Dn,disabled:At,prefixCls:"".concat(ze,"-star"),allowHalf:Ai,value:pr===null?br:pr,onClick:Tn,onHover:Xe,key:ai||Te,character:Ct,characterRender:Pt,focused:Mn})}),Cn=Nt()(ze,on,(ti={},(0,Ut.Z)(ti,"".concat(ze,"-disabled"),At),(0,Ut.Z)(ti,"".concat(ze,"-rtl"),Xt==="rtl"),ti));return Ft.createElement("ul",(0,ft.Z)({className:Cn,onMouseLeave:mn,tabIndex:At?-1:We,onFocus:At?null:Zi,onBlur:At?null:mi,onKeyDown:At?null:Nn,ref:Ci,role:"radiogroup"},(0,ue.Z)(Qn,{aria:!0,data:!0,attr:!0})),ge)}var Qt=Ft.forwardRef(zt),te=Qt,Ie=mt(53124),He=mt(83062),en=mt(14747),ie=mt(67968),an=mt(45503);const nn=_t=>{const{componentCls:rn}=_t;return{[`${rn}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:_t.marginXS},"> div":{transition:`all ${_t.motionDurationMid}, outline 0s`,"&:hover":{transform:_t.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${_t.lineWidth}px dashed ${_t.starColor}`,transform:_t.starHoverScale}},"&-first, &-second":{color:_t.starBg,transition:`all ${_t.motionDurationMid}`,userSelect:"none",[_t.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${rn}-star-first, &-half ${rn}-star-second`]:{opacity:1},[`&-half ${rn}-star-first, &-full ${rn}-star-second`]:{color:"inherit"}}}},Vn=_t=>({[`&-rtl${_t.componentCls}`]:{direction:"rtl"}}),Ne=_t=>{const{componentCls:rn}=_t;return{[rn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,en.Wf)(_t)),{display:"inline-block",margin:0,padding:0,color:_t.starColor,fontSize:_t.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${rn} ${rn}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),nn(_t)),{[`+ ${rn}-text`]:{display:"inline-block",marginInlineStart:_t.marginXS,fontSize:_t.fontSize}}),Vn(_t))}};var Ye=(0,ie.Z)("Rate",_t=>{const rn=(0,an.TS)(_t,{});return[Ne(rn)]},_t=>({starColor:_t.yellow6,starSize:_t.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:_t.colorFillContent})),zn=function(_t,rn){var ti={};for(var vn in _t)Object.prototype.hasOwnProperty.call(_t,vn)&&rn.indexOf(vn)<0&&(ti[vn]=_t[vn]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,vn=Object.getOwnPropertySymbols(_t);ze<vn.length;ze++)rn.indexOf(vn[ze])<0&&Object.prototype.propertyIsEnumerable.call(_t,vn[ze])&&(ti[vn[ze]]=_t[vn[ze]]);return ti},Me=Ft.forwardRef((_t,rn)=>{const{prefixCls:ti,className:vn,rootClassName:ze,style:on,tooltips:On,character:Ni=Ft.createElement(Wt,null)}=_t,gi=zn(_t,["prefixCls","className","rootClassName","style","tooltips","character"]),Dn=(At,wt)=>{let{index:Xt}=wt;return On?Ft.createElement(He.Z,{title:On[Xt]},At):At},{getPrefixCls:Jn,direction:Ai,rate:hi}=Ft.useContext(Ie.E_),qt=Jn("rate",ti),[kt,Ct]=Ye(qt),Pt=Object.assign(Object.assign({},hi==null?void 0:hi.style),on);return kt(Ft.createElement(te,Object.assign({ref:rn,character:Ni,characterRender:Dn},gi,{className:Nt()(vn,ze,Ct,hi==null?void 0:hi.className),style:Pt,prefixCls:qt,direction:Ai})))})},11713:function(jn,tn,mt){"use strict";mt.d(tn,{default:function(){return je}});var ft=mt(94184),Ft=mt.n(ft),$t=mt(87462),ne=mt(74902),Dt=mt(4942),Ht=mt(1413),Wt=mt(97685),jt=mt(45987),Nt=mt(71002),Ut=mt(67294);function De(ve){var ke=Ut.useRef();ke.current=ve;var xn=Ut.useCallback(function(){for(var cn,ni=arguments.length,Ti=new Array(ni),qe=0;qe<ni;qe++)Ti[qe]=arguments[qe];return(cn=ke.current)===null||cn===void 0?void 0:cn.call.apply(cn,[ke].concat(Ti))},[]);return xn}function Yt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var de=Yt()?Ut.useLayoutEffect:Ut.useEffect,we=de,ue=function(ke,xn){var cn=Ut.useRef(!0);de(function(){if(!cn.current)return ke()},xn),de(function(){return cn.current=!1,function(){cn.current=!0}},[])};function he(ve){var ke=Ut.useRef(!1),xn=Ut.useState(ve),cn=(0,Wt.Z)(xn,2),ni=cn[0],Ti=cn[1];Ut.useEffect(function(){return ke.current=!1,function(){ke.current=!0}},[]);function qe(Je,sn){sn&&ke.current||Ti(Je)}return[ni,qe]}function It(ve){return ve!==void 0}function ye(ve,ke){var xn=ke||{},cn=xn.defaultValue,ni=xn.value,Ti=xn.onChange,qe=xn.postState,Je=he(function(){return It(ni)?ni:It(cn)?typeof cn=="function"?cn():cn:typeof ve=="function"?ve():ve}),sn=(0,Wt.Z)(Je,2),hn=sn[0],bi=sn[1],zi=ni!==void 0?ni:hn,li=qe?qe(zi):zi,Kn=De(Ti),ur=he([zi]),Ln=(0,Wt.Z)(ur,2),wn=Ln[0],_n=Ln[1];ue(function(){var gn=wn[0];hn!==gn&&Kn(hn,gn)},[wn]),ue(function(){It(ni)||bi(ni)},[ni]);var Ei=De(function(gn,Ji){bi(gn,Ji),_n([zi],Ji)});return[li,Ei]}var Ze={};function pe(ve,ke){}function be(ve,ke){}function Rt(){Ze={}}function zt(ve,ke,xn){!ke&&!Ze[xn]&&(ve(!1,xn),Ze[xn]=!0)}function Qt(ve,ke){zt(pe,ve,ke)}function te(ve,ke){zt(be,ve,ke)}var Ie=Qt,He=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var ve=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(ve)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(ve==null?void 0:ve.substr(0,4))},en={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ke){var xn=ke.keyCode;if(ke.altKey&&!ke.ctrlKey||ke.metaKey||xn>=en.F1&&xn<=en.F12)return!1;switch(xn){case en.ALT:case en.CAPS_LOCK:case en.CONTEXT_MENU:case en.CTRL:case en.DOWN:case en.END:case en.ESC:case en.HOME:case en.INSERT:case en.LEFT:case en.MAC_FF_META:case en.META:case en.NUMLOCK:case en.NUM_CENTER:case en.PAGE_DOWN:case en.PAGE_UP:case en.PAUSE:case en.PRINT_SCREEN:case en.RIGHT:case en.SHIFT:case en.UP:case en.WIN_KEY:case en.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ke){if(ke>=en.ZERO&&ke<=en.NINE||ke>=en.NUM_ZERO&&ke<=en.NUM_MULTIPLY||ke>=en.A&&ke<=en.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ke===0)return!0;switch(ke){case en.SPACE:case en.QUESTION_MARK:case en.NUM_PLUS:case en.NUM_MINUS:case en.NUM_PERIOD:case en.NUM_DIVISION:case en.SEMICOLON:case en.DASH:case en.EQUALS:case en.COMMA:case en.PERIOD:case en.SLASH:case en.APOSTROPHE:case en.SINGLE_QUOTE:case en.OPEN_SQUARE_BRACKET:case en.BACKSLASH:case en.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ie=en,an=mt(47655);function nn(ve,ke,xn){var cn=Ut.useRef({});return(!("value"in cn.current)||xn(cn.current.condition,ke))&&(cn.current.value=ve(),cn.current.condition=ke),cn.current.value}function Vn(ve,ke){typeof ve=="function"?ve(ke):(0,Nt.Z)(ve)==="object"&&ve&&"current"in ve&&(ve.current=ke)}function Ne(){for(var ve=arguments.length,ke=new Array(ve),xn=0;xn<ve;xn++)ke[xn]=arguments[xn];var cn=ke.filter(function(ni){return ni});return cn.length<=1?cn[0]:function(ni){ke.forEach(function(Ti){Vn(Ti,ni)})}}function Ye(){for(var ve=arguments.length,ke=new Array(ve),xn=0;xn<ve;xn++)ke[xn]=arguments[xn];return nn(function(){return Ne.apply(void 0,ke)},ke,function(cn,ni){return cn.length===ni.length&&cn.every(function(Ti,qe){return Ti===ni[qe]})})}function zn(ve){var ke,xn,cn=isMemo(ve)?ve.type.type:ve.type;return!(typeof cn=="function"&&!((ke=cn.prototype)!==null&&ke!==void 0&&ke.render)||typeof ve=="function"&&!((xn=ve.prototype)!==null&&xn!==void 0&&xn.render))}var Gn=function(ke){var xn=ke.className,cn=ke.customizeIcon,ni=ke.customizeIconProps,Ti=ke.onMouseDown,qe=ke.onClick,Je=ke.children,sn;return typeof cn=="function"?sn=cn(ni):sn=cn,Ut.createElement("span",{className:xn,onMouseDown:function(bi){bi.preventDefault(),Ti&&Ti(bi)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:qe,"aria-hidden":!0},sn!==void 0?sn:Ut.createElement("span",{className:Ft()(xn.split(/\s+/).map(function(hn){return"".concat(hn,"-icon")}))},Je))},Me=Gn;function _t(ve,ke,xn,cn,ni){var Ti=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,qe=arguments.length>6?arguments[6]:void 0,Je=arguments.length>7?arguments[7]:void 0,sn=Ut.useMemo(function(){if((0,Nt.Z)(cn)==="object")return cn.clearIcon;if(ni)return ni},[cn,ni]),hn=Ut.useMemo(function(){return!!(!Ti&&cn&&(xn.length||qe)&&!(Je==="combobox"&&qe===""))},[cn,Ti,xn.length,qe,Je]);return{allowClear:hn,clearIcon:Ut.createElement(Me,{className:"".concat(ve,"-clear"),onMouseDown:ke,customizeIcon:sn},"\xD7")}}var rn=Ut.createContext(null);function ti(){return Ut.useContext(rn)}function vn(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ke=Ut.useState(!1),xn=(0,Wt.Z)(ke,2),cn=xn[0],ni=xn[1],Ti=Ut.useRef(null),qe=function(){window.clearTimeout(Ti.current)};Ut.useEffect(function(){return qe},[]);var Je=function(hn,bi){qe(),Ti.current=window.setTimeout(function(){ni(hn),bi&&bi()},ve)};return[cn,Je,qe]}function ze(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ke=Ut.useRef(null),xn=Ut.useRef(null);Ut.useEffect(function(){return function(){window.clearTimeout(xn.current)}},[]);function cn(ni){(ni||ke.current===null)&&(ke.current=ni),window.clearTimeout(xn.current),xn.current=window.setTimeout(function(){ke.current=null},ve)}return[function(){return ke.current},cn]}function on(ve,ke,xn,cn){var ni=Ut.useRef(null);ni.current={open:ke,triggerOpen:xn,customizedTrigger:cn},Ut.useEffect(function(){function Ti(qe){var Je;if(!((Je=ni.current)!==null&&Je!==void 0&&Je.customizedTrigger)){var sn=qe.target;sn.shadowRoot&&qe.composed&&(sn=qe.composedPath()[0]||sn),ni.current.open&&ve().filter(function(hn){return hn}).every(function(hn){return!hn.contains(sn)&&hn!==sn})&&ni.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Ti),function(){return window.removeEventListener("mousedown",Ti)}},[])}var On=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,Ni=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,gi="".concat(On," ").concat(Ni).split(/[\s\n]+/),Dn="aria-",Jn="data-";function Ai(ve,ke){return ve.indexOf(ke)===0}function hi(ve){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xn;ke===!1?xn={aria:!0,data:!0,attr:!0}:ke===!0?xn={aria:!0}:xn=(0,Ht.Z)({},ke);var cn={};return Object.keys(ve).forEach(function(ni){(xn.aria&&(ni==="role"||Ai(ni,Dn))||xn.data&&Ai(ni,Jn)||xn.attr&&gi.includes(ni))&&(cn[ni]=ve[ni])}),cn}var qt=mt(48555),kt=mt(14075),Ct=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Pt=void 0;function At(ve,ke){var xn=ve.prefixCls,cn=ve.invalidate,ni=ve.item,Ti=ve.renderItem,qe=ve.responsive,Je=ve.responsiveDisabled,sn=ve.registerSize,hn=ve.itemKey,bi=ve.className,zi=ve.style,li=ve.children,Kn=ve.display,ur=ve.order,Ln=ve.component,wn=Ln===void 0?"div":Ln,_n=(0,jt.Z)(ve,Ct),Ei=qe&&!Kn;function gn(Fr){sn(hn,Fr)}Ut.useEffect(function(){return function(){gn(null)}},[]);var Ji=Ti&&ni!==Pt?Ti(ni):li,er;cn||(er={opacity:Ei?0:1,height:Ei?0:Pt,overflowY:Ei?"hidden":Pt,order:qe?ur:Pt,pointerEvents:Ei?"none":Pt,position:Ei?"absolute":Pt});var Qi={};Ei&&(Qi["aria-hidden"]=!0);var Ir=Ut.createElement(wn,(0,$t.Z)({className:Ft()(!cn&&xn,bi),style:(0,Ht.Z)((0,Ht.Z)({},er),zi)},Qi,_n,{ref:ke}),Ji);return qe&&(Ir=Ut.createElement(qt.Z,{onResize:function(yr){var xo=yr.offsetWidth;gn(xo)},disabled:Je},Ir)),Ir}var wt=Ut.forwardRef(At);wt.displayName="Item";var Xt=wt,Re=mt(77527),We=mt(73935),In=mt(96523);function Hn(ve){if(typeof MessageChannel=="undefined")(0,In.Z)(ve);else{var ke=new MessageChannel;ke.port1.onmessage=function(){return ve()},ke.port2.postMessage(void 0)}}function Un(){var ve=Ut.useRef(null),ke=function(cn){ve.current||(ve.current=[],Hn(function(){(0,We.unstable_batchedUpdates)(function(){ve.current.forEach(function(ni){ni()}),ve.current=null})})),ve.current.push(cn)};return ke}function Yn(ve,ke){var xn=Ut.useState(ke),cn=(0,Wt.Z)(xn,2),ni=cn[0],Ti=cn[1],qe=(0,Re.Z)(function(Je){ve(function(){Ti(Je)})});return[ni,qe]}var Fe=Ut.createContext(null),bn=["component"],En=["className"],Qn=["className"],Sn=function(ke,xn){var cn=Ut.useContext(Fe);if(!cn){var ni=ke.component,Ti=ni===void 0?"div":ni,qe=(0,jt.Z)(ke,bn);return Ut.createElement(Ti,(0,$t.Z)({},qe,{ref:xn}))}var Je=cn.className,sn=(0,jt.Z)(cn,En),hn=ke.className,bi=(0,jt.Z)(ke,Qn);return Ut.createElement(Fe.Provider,{value:null},Ut.createElement(Xt,(0,$t.Z)({ref:xn,className:Ft()(Je,hn)},sn,bi)))},Vi=Ut.forwardRef(Sn);Vi.displayName="RawItem";var Qe=Vi,Pn=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Ci="responsive",yi="invalidate";function Oi(ve){return"+ ".concat(ve.length," ...")}function ar(ve,ke){var xn=ve.prefixCls,cn=xn===void 0?"rc-overflow":xn,ni=ve.data,Ti=ni===void 0?[]:ni,qe=ve.renderItem,Je=ve.renderRawItem,sn=ve.itemKey,hn=ve.itemWidth,bi=hn===void 0?10:hn,zi=ve.ssr,li=ve.style,Kn=ve.className,ur=ve.maxCount,Ln=ve.renderRest,wn=ve.renderRawRest,_n=ve.suffix,Ei=ve.component,gn=Ei===void 0?"div":Ei,Ji=ve.itemComponent,er=ve.onVisibleChange,Qi=(0,jt.Z)(ve,Pn),Ir=zi==="full",Fr=Un(),yr=Yn(Fr,null),xo=(0,Wt.Z)(yr,2),No=xo[0],mo=xo[1],oo=No||0,to=Yn(Fr,new Map),Io=(0,Wt.Z)(to,2),so=Io[0],Zr=Io[1],Oo=Yn(Fr,0),Uo=(0,Wt.Z)(Oo,2),Ls=Uo[0],bs=Uo[1],ms=Yn(Fr,0),ds=(0,Wt.Z)(ms,2),es=ds[0],jo=ds[1],Is=Yn(Fr,0),Yo=(0,Wt.Z)(Is,2),Lo=Yo[0],Ao=Yo[1],Ps=(0,Ut.useState)(null),os=(0,Wt.Z)(Ps,2),xs=os[0],Vo=os[1],fs=(0,Ut.useState)(null),gs=(0,Wt.Z)(fs,2),is=gs[0],vs=gs[1],Hs=Ut.useMemo(function(){return is===null&&Ir?Number.MAX_SAFE_INTEGER:is||0},[is,No]),ua=(0,Ut.useState)(!1),ss=(0,Wt.Z)(ua,2),_s=ss[0],Ea=ss[1],ya="".concat(cn,"-item"),Hr=Math.max(Ls,es),na=ur===Ci,Ke=Ti.length&&na,ii=ur===yi,rs=Ke||typeof ur=="number"&&Ti.length>ur,Ns=(0,Ut.useMemo)(function(){var vo=Ti;return Ke?No===null&&Ir?vo=Ti:vo=Ti.slice(0,Math.min(Ti.length,oo/bi)):typeof ur=="number"&&(vo=Ti.slice(0,ur)),vo},[Ti,bi,No,ur,Ke]),Rs=(0,Ut.useMemo)(function(){return Ke?Ti.slice(Hs+1):Ti.slice(Ns.length)},[Ti,Ns,Ke,Hs]),Qs=(0,Ut.useCallback)(function(vo,Vr){var _r;return typeof sn=="function"?sn(vo):(_r=sn&&(vo==null?void 0:vo[sn]))!==null&&_r!==void 0?_r:Vr},[sn]),Na=(0,Ut.useCallback)(qe||function(vo){return vo},[qe]);function Ka(vo,Vr,_r){is===vo&&(Vr===void 0||Vr===xs)||(vs(vo),_r||(Ea(vo<Ti.length-1),er==null||er(vo)),Vr!==void 0&&Vo(Vr))}function vl(vo,Vr){mo(Vr.clientWidth)}function Bs(vo,Vr){Zr(function(_r){var no=new Map(_r);return Vr===null?no.delete(vo):no.set(vo,Vr),no})}function co(vo,Vr){jo(Vr),bs(es)}function xa(vo,Vr){Ao(Vr)}function ps(vo){return so.get(Qs(Ns[vo],vo))}(0,kt.Z)(function(){if(oo&&typeof Hr=="number"&&Ns){var vo=Lo,Vr=Ns.length,_r=Vr-1;if(!Vr){Ka(0,null);return}for(var no=0;no<Vr;no+=1){var ho=ps(no);if(Ir&&(ho=ho||0),ho===void 0){Ka(no-1,void 0,!0);break}if(vo+=ho,_r===0&&vo<=oo||no===_r-1&&vo+ps(_r)<=oo){Ka(_r,null);break}else if(vo+Hr>oo){Ka(no-1,vo-ho-Lo+es);break}}_n&&ps(0)+Lo>oo&&Vo(null)}},[oo,so,es,Lo,Qs,Ns]);var zo=_s&&!!Rs.length,Fo={};xs!==null&&Ke&&(Fo={position:"absolute",left:xs,top:0});var ys={prefixCls:ya,responsive:Ke,component:Ji,invalidate:ii},Ys=Je?function(vo,Vr){var _r=Qs(vo,Vr);return Ut.createElement(Fe.Provider,{key:_r,value:(0,Ht.Z)((0,Ht.Z)({},ys),{},{order:Vr,item:vo,itemKey:_r,registerSize:Bs,display:Vr<=Hs})},Je(vo,Vr))}:function(vo,Vr){var _r=Qs(vo,Vr);return Ut.createElement(Xt,(0,$t.Z)({},ys,{order:Vr,key:_r,item:vo,renderItem:Na,itemKey:_r,registerSize:Bs,display:Vr<=Hs}))},us,Ha={order:zo?Hs:Number.MAX_SAFE_INTEGER,className:"".concat(ya,"-rest"),registerSize:co,display:zo};if(wn)wn&&(us=Ut.createElement(Fe.Provider,{value:(0,Ht.Z)((0,Ht.Z)({},ys),Ha)},wn(Rs)));else{var ha=Ln||Oi;us=Ut.createElement(Xt,(0,$t.Z)({},ys,Ha),typeof ha=="function"?ha(Rs):ha)}var Tl=Ut.createElement(gn,(0,$t.Z)({className:Ft()(!ii&&cn,Kn),style:li,ref:ke},Qi),Ns.map(Ys),rs?us:null,_n&&Ut.createElement(Xt,(0,$t.Z)({},ys,{responsive:na,responsiveDisabled:!Ke,order:Hs,className:"".concat(ya,"-suffix"),registerSize:xa,display:!0,style:Fo}),_n));return na&&(Tl=Ut.createElement(qt.Z,{onResize:vl,disabled:!Ke},Tl)),Tl}var br=Ut.forwardRef(ar);br.displayName="Overflow",br.Item=Qe,br.RESPONSIVE=Ci,br.INVALIDATE=yi;var wr=br,cr=wr,Ar=function(ke,xn){var cn,ni,Ti=ke.prefixCls,qe=ke.id,Je=ke.inputElement,sn=ke.disabled,hn=ke.tabIndex,bi=ke.autoFocus,zi=ke.autoComplete,li=ke.editable,Kn=ke.activeDescendantId,ur=ke.value,Ln=ke.maxLength,wn=ke.onKeyDown,_n=ke.onMouseDown,Ei=ke.onChange,gn=ke.onPaste,Ji=ke.onCompositionStart,er=ke.onCompositionEnd,Qi=ke.open,Ir=ke.attrs,Fr=Je||Ut.createElement("input",null),yr=Fr,xo=yr.ref,No=yr.props,mo=No.onKeyDown,oo=No.onChange,to=No.onMouseDown,Io=No.onCompositionStart,so=No.onCompositionEnd,Zr=No.style;return"maxLength"in Fr.props,Fr=Ut.cloneElement(Fr,(0,Ht.Z)((0,Ht.Z)((0,Ht.Z)({type:"search"},No),{},{id:qe,ref:Ne(xn,xo),disabled:sn,tabIndex:hn,autoComplete:zi||"off",autoFocus:bi,className:Ft()("".concat(Ti,"-selection-search-input"),(cn=Fr)===null||cn===void 0||(ni=cn.props)===null||ni===void 0?void 0:ni.className),role:"combobox","aria-label":"Search","aria-expanded":Qi||!1,"aria-haspopup":"listbox","aria-owns":"".concat(qe,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(qe,"_list"),"aria-activedescendant":Qi?Kn:void 0},Ir),{},{value:li?ur:"",maxLength:Ln,readOnly:!li,unselectable:li?null:"on",style:(0,Ht.Z)((0,Ht.Z)({},Zr),{},{opacity:li?null:0}),onKeyDown:function(Uo){wn(Uo),mo&&mo(Uo)},onMouseDown:function(Uo){_n(Uo),to&&to(Uo)},onChange:function(Uo){Ei(Uo),oo&&oo(Uo)},onCompositionStart:function(Uo){Ji(Uo),Io&&Io(Uo)},onCompositionEnd:function(Uo){er(Uo),so&&so(Uo)},onPaste:gn})),Fr},ir=Ut.forwardRef(Ar);ir.displayName="Input";var kr=ir;function po(ve){return Array.isArray(ve)?ve:ve!==void 0?[ve]:[]}var So=typeof window!="undefined"&&window.document&&window.document.documentElement,Eo=So;function Yr(ve){return ve!=null}function Mn(ve){return!ve&&ve!==0}function St(ve){return["string","number"].includes((0,Nt.Z)(ve))}function Zi(ve){var ke=void 0;return ve&&(St(ve.title)?ke=ve.title.toString():St(ve.label)&&(ke=ve.label.toString())),ke}function mi(ve,ke){Eo?Ut.useLayoutEffect(ve,ke):Ut.useEffect(ve,ke)}function rr(ve){var ke;return(ke=ve.key)!==null&&ke!==void 0?ke:ve.value}var fr=function(ke){ke.preventDefault(),ke.stopPropagation()},pr=function(ke){var xn=ke.id,cn=ke.prefixCls,ni=ke.values,Ti=ke.open,qe=ke.searchValue,Je=ke.autoClearSearchValue,sn=ke.inputRef,hn=ke.placeholder,bi=ke.disabled,zi=ke.mode,li=ke.showSearch,Kn=ke.autoFocus,ur=ke.autoComplete,Ln=ke.activeDescendantId,wn=ke.tabIndex,_n=ke.removeIcon,Ei=ke.maxTagCount,gn=ke.maxTagTextLength,Ji=ke.maxTagPlaceholder,er=Ji===void 0?function(Vo){return"+ ".concat(Vo.length," ...")}:Ji,Qi=ke.tagRender,Ir=ke.onToggleOpen,Fr=ke.onRemove,yr=ke.onInputChange,xo=ke.onInputPaste,No=ke.onInputKeyDown,mo=ke.onInputMouseDown,oo=ke.onInputCompositionStart,to=ke.onInputCompositionEnd,Io=Ut.useRef(null),so=(0,Ut.useState)(0),Zr=(0,Wt.Z)(so,2),Oo=Zr[0],Uo=Zr[1],Ls=(0,Ut.useState)(!1),bs=(0,Wt.Z)(Ls,2),ms=bs[0],ds=bs[1],es="".concat(cn,"-selection"),jo=Ti||zi==="multiple"&&Je===!1||zi==="tags"?qe:"",Is=zi==="tags"||zi==="multiple"&&Je===!1||li&&(Ti||ms);mi(function(){Uo(Io.current.scrollWidth)},[jo]);function Yo(Vo,fs,gs,is,vs){return Ut.createElement("span",{className:Ft()("".concat(es,"-item"),(0,Dt.Z)({},"".concat(es,"-item-disabled"),gs)),title:Zi(Vo)},Ut.createElement("span",{className:"".concat(es,"-item-content")},fs),is&&Ut.createElement(Me,{className:"".concat(es,"-item-remove"),onMouseDown:fr,onClick:vs,customizeIcon:_n},"\xD7"))}function Lo(Vo,fs,gs,is,vs){var Hs=function(ss){fr(ss),Ir(!Ti)};return Ut.createElement("span",{onMouseDown:Hs},Qi({label:fs,value:Vo,disabled:gs,closable:is,onClose:vs}))}function Ao(Vo){var fs=Vo.disabled,gs=Vo.label,is=Vo.value,vs=!bi&&!fs,Hs=gs;if(typeof gn=="number"&&(typeof gs=="string"||typeof gs=="number")){var ua=String(Hs);ua.length>gn&&(Hs="".concat(ua.slice(0,gn),"..."))}var ss=function(Ea){Ea&&Ea.stopPropagation(),Fr(Vo)};return typeof Qi=="function"?Lo(is,Hs,fs,vs,ss):Yo(Vo,Hs,fs,vs,ss)}function Ps(Vo){var fs=typeof er=="function"?er(Vo):er;return Yo({title:fs},fs,!1)}var os=Ut.createElement("div",{className:"".concat(es,"-search"),style:{width:Oo},onFocus:function(){ds(!0)},onBlur:function(){ds(!1)}},Ut.createElement(kr,{ref:sn,open:Ti,prefixCls:cn,id:xn,inputElement:null,disabled:bi,autoFocus:Kn,autoComplete:ur,editable:Is,activeDescendantId:Ln,value:jo,onKeyDown:No,onMouseDown:mo,onChange:yr,onPaste:xo,onCompositionStart:oo,onCompositionEnd:to,tabIndex:wn,attrs:hi(ke,!0)}),Ut.createElement("span",{ref:Io,className:"".concat(es,"-search-mirror"),"aria-hidden":!0},jo,"\xA0")),xs=Ut.createElement(cr,{prefixCls:"".concat(es,"-overflow"),data:ni,renderItem:Ao,renderRest:Ps,suffix:os,itemKey:rr,maxCount:Ei});return Ut.createElement(Ut.Fragment,null,xs,!ni.length&&!jo&&Ut.createElement("span",{className:"".concat(es,"-placeholder")},hn))},tr=pr,Xe=function(ke){var xn=ke.inputElement,cn=ke.prefixCls,ni=ke.id,Ti=ke.inputRef,qe=ke.disabled,Je=ke.autoFocus,sn=ke.autoComplete,hn=ke.activeDescendantId,bi=ke.mode,zi=ke.open,li=ke.values,Kn=ke.placeholder,ur=ke.tabIndex,Ln=ke.showSearch,wn=ke.searchValue,_n=ke.activeValue,Ei=ke.maxLength,gn=ke.onInputKeyDown,Ji=ke.onInputMouseDown,er=ke.onInputChange,Qi=ke.onInputPaste,Ir=ke.onInputCompositionStart,Fr=ke.onInputCompositionEnd,yr=ke.title,xo=Ut.useState(!1),No=(0,Wt.Z)(xo,2),mo=No[0],oo=No[1],to=bi==="combobox",Io=to||Ln,so=li[0],Zr=wn||"";to&&_n&&!mo&&(Zr=_n),Ut.useEffect(function(){to&&oo(!1)},[to,_n]);var Oo=bi!=="combobox"&&!zi&&!Ln?!1:!!Zr,Uo=yr===void 0?Zi(so):yr,Ls=function(){if(so)return null;var ms=Oo?{visibility:"hidden"}:void 0;return Ut.createElement("span",{className:"".concat(cn,"-selection-placeholder"),style:ms},Kn)};return Ut.createElement(Ut.Fragment,null,Ut.createElement("span",{className:"".concat(cn,"-selection-search")},Ut.createElement(kr,{ref:Ti,prefixCls:cn,id:ni,open:zi,inputElement:xn,disabled:qe,autoFocus:Je,autoComplete:sn,editable:Io,activeDescendantId:hn,value:Zr,onKeyDown:gn,onMouseDown:Ji,onChange:function(ms){oo(!0),er(ms)},onPaste:Qi,onCompositionStart:Ir,onCompositionEnd:Fr,tabIndex:ur,attrs:hi(ke,!0),maxLength:to?Ei:void 0})),!to&&so?Ut.createElement("span",{className:"".concat(cn,"-selection-item"),title:Uo,style:Oo?{visibility:"hidden"}:void 0},so.label):null,Ls())},mn=Xe;function Tn(ve){return![ie.ESC,ie.SHIFT,ie.BACKSPACE,ie.TAB,ie.WIN_KEY,ie.ALT,ie.META,ie.WIN_KEY_RIGHT,ie.CTRL,ie.SEMICOLON,ie.EQUALS,ie.CAPS_LOCK,ie.CONTEXT_MENU,ie.F1,ie.F2,ie.F3,ie.F4,ie.F5,ie.F6,ie.F7,ie.F8,ie.F9,ie.F10,ie.F11,ie.F12].includes(ve)}var Nn=function(ke,xn){var cn=(0,Ut.useRef)(null),ni=(0,Ut.useRef)(!1),Ti=ke.prefixCls,qe=ke.open,Je=ke.mode,sn=ke.showSearch,hn=ke.tokenWithEnter,bi=ke.autoClearSearchValue,zi=ke.onSearch,li=ke.onSearchSubmit,Kn=ke.onToggleOpen,ur=ke.onInputKeyDown,Ln=ke.domRef;Ut.useImperativeHandle(xn,function(){return{focus:function(){cn.current.focus()},blur:function(){cn.current.blur()}}});var wn=ze(0),_n=(0,Wt.Z)(wn,2),Ei=_n[0],gn=_n[1],Ji=function(Zr){var Oo=Zr.which;(Oo===ie.UP||Oo===ie.DOWN)&&Zr.preventDefault(),ur&&ur(Zr),Oo===ie.ENTER&&Je==="tags"&&!ni.current&&!qe&&(li==null||li(Zr.target.value)),Tn(Oo)&&Kn(!0)},er=function(){gn(!0)},Qi=(0,Ut.useRef)(null),Ir=function(Zr){zi(Zr,!0,ni.current)!==!1&&Kn(!0)},Fr=function(){ni.current=!0},yr=function(Zr){ni.current=!1,Je!=="combobox"&&Ir(Zr.target.value)},xo=function(Zr){var Oo=Zr.target.value;if(hn&&Qi.current&&/[\r\n]/.test(Qi.current)){var Uo=Qi.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Oo=Oo.replace(Uo,Qi.current)}Qi.current=null,Ir(Oo)},No=function(Zr){var Oo=Zr.clipboardData,Uo=Oo.getData("text");Qi.current=Uo},mo=function(Zr){var Oo=Zr.target;if(Oo!==cn.current){var Uo=document.body.style.msTouchAction!==void 0;Uo?setTimeout(function(){cn.current.focus()}):cn.current.focus()}},oo=function(Zr){var Oo=Ei();Zr.target!==cn.current&&!Oo&&Je!=="combobox"&&Zr.preventDefault(),(Je!=="combobox"&&(!sn||!Oo)||!qe)&&(qe&&bi!==!1&&zi("",!0,!1),Kn())},to={inputRef:cn,onInputKeyDown:Ji,onInputMouseDown:er,onInputChange:xo,onInputPaste:No,onInputCompositionStart:Fr,onInputCompositionEnd:yr},Io=Je==="multiple"||Je==="tags"?Ut.createElement(tr,(0,$t.Z)({},ke,to)):Ut.createElement(mn,(0,$t.Z)({},ke,to));return Ut.createElement("div",{ref:Ln,className:"".concat(Ti,"-selector"),onClick:mo,onMouseDown:oo},Io)},ge=Ut.forwardRef(Nn);ge.displayName="Selector";var Cn=ge,ai=mt(62709),Te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ce=function(ke){var xn=ke===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:xn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:xn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:xn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:xn,adjustY:1},htmlRegion:"scroll"}}},Oe=function(ke,xn){var cn=ke.prefixCls,ni=ke.disabled,Ti=ke.visible,qe=ke.children,Je=ke.popupElement,sn=ke.animation,hn=ke.transitionName,bi=ke.dropdownStyle,zi=ke.dropdownClassName,li=ke.direction,Kn=li===void 0?"ltr":li,ur=ke.placement,Ln=ke.builtinPlacements,wn=ke.dropdownMatchSelectWidth,_n=ke.dropdownRender,Ei=ke.dropdownAlign,gn=ke.getPopupContainer,Ji=ke.empty,er=ke.getTriggerDOMNode,Qi=ke.onPopupVisibleChange,Ir=ke.onPopupMouseEnter,Fr=(0,jt.Z)(ke,Te),yr="".concat(cn,"-dropdown"),xo=Je;_n&&(xo=_n(Je));var No=Ut.useMemo(function(){return Ln||ce(wn)},[Ln,wn]),mo=sn?"".concat(yr,"-").concat(sn):hn,oo=typeof wn=="number",to=Ut.useMemo(function(){return oo?null:wn===!1?"minWidth":"width"},[wn,oo]),Io=bi;oo&&(Io=(0,Ht.Z)((0,Ht.Z)({},Io),{},{width:wn}));var so=Ut.useRef(null);return Ut.useImperativeHandle(xn,function(){return{getPopupElement:function(){return so.current}}}),Ut.createElement(ai.Z,(0,$t.Z)({},Fr,{showAction:Qi?["click"]:[],hideAction:Qi?["click"]:[],popupPlacement:ur||(Kn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:No,prefixCls:yr,popupTransitionName:mo,popup:Ut.createElement("div",{ref:so,onMouseEnter:Ir},xo),stretch:to,popupAlign:Ei,popupVisible:Ti,getPopupContainer:gn,popupClassName:Ft()(zi,(0,Dt.Z)({},"".concat(yr,"-empty"),Ji)),popupStyle:Io,getTriggerDOMNode:er,onPopupVisibleChange:Qi}),qe)},pn=Ut.forwardRef(Oe);pn.displayName="SelectTrigger";var fi=pn,$n=mt(84506);function _e(ve,ke){var xn=ve.key,cn;return"value"in ve&&(cn=ve.value),xn!=null?xn:cn!==void 0?cn:"rc-index-key-".concat(ke)}function ri(ve,ke){var xn=ve||{},cn=xn.label,ni=xn.value,Ti=xn.options,qe=xn.groupLabel,Je=cn||(ke?"children":"label");return{label:Je,value:ni||"value",options:Ti||"options",groupLabel:qe||Je}}function Ri(ve){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},xn=ke.fieldNames,cn=ke.childrenAsData,ni=[],Ti=ri(xn,!1),qe=Ti.label,Je=Ti.value,sn=Ti.options,hn=Ti.groupLabel;function bi(zi,li){zi.forEach(function(Kn){if(li||!(sn in Kn)){var ur=Kn[Je];ni.push({key:_e(Kn,ni.length),groupOption:li,data:Kn,label:Kn[qe],value:ur})}else{var Ln=Kn[hn];Ln===void 0&&cn&&(Ln=Kn.label),ni.push({key:_e(Kn,ni.length),group:!0,data:Kn,label:Ln}),bi(Kn[sn],!0)}})}return bi(ve,!1),ni}function $e(ve){var ke=(0,Ht.Z)({},ve);return"props"in ke||Object.defineProperty(ke,"props",{get:function(){return Ie(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ke}}),ke}function Ge(ve,ke){if(!ke||!ke.length)return null;var xn=!1;function cn(Ti,qe){var Je=(0,$n.Z)(qe),sn=Je[0],hn=Je.slice(1);if(!sn)return[Ti];var bi=Ti.split(sn);return xn=xn||bi.length>1,bi.reduce(function(zi,li){return[].concat((0,ne.Z)(zi),(0,ne.Z)(cn(li,hn)))},[]).filter(function(zi){return zi})}var ni=cn(ve,ke);return xn?ni:null}var un=["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"],xi=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Yi(ve){return ve==="tags"||ve==="multiple"}var ci=Ut.forwardRef(function(ve,ke){var xn,cn,ni=ve.id,Ti=ve.prefixCls,qe=ve.className,Je=ve.showSearch,sn=ve.tagRender,hn=ve.direction,bi=ve.omitDomProps,zi=ve.displayValues,li=ve.onDisplayValuesChange,Kn=ve.emptyOptions,ur=ve.notFoundContent,Ln=ur===void 0?"Not Found":ur,wn=ve.onClear,_n=ve.mode,Ei=ve.disabled,gn=ve.loading,Ji=ve.getInputElement,er=ve.getRawInputElement,Qi=ve.open,Ir=ve.defaultOpen,Fr=ve.onDropdownVisibleChange,yr=ve.activeValue,xo=ve.onActiveValueChange,No=ve.activeDescendantId,mo=ve.searchValue,oo=ve.autoClearSearchValue,to=ve.onSearch,Io=ve.onSearchSplit,so=ve.tokenSeparators,Zr=ve.allowClear,Oo=ve.suffixIcon,Uo=ve.clearIcon,Ls=ve.OptionList,bs=ve.animation,ms=ve.transitionName,ds=ve.dropdownStyle,es=ve.dropdownClassName,jo=ve.dropdownMatchSelectWidth,Is=ve.dropdownRender,Yo=ve.dropdownAlign,Lo=ve.placement,Ao=ve.builtinPlacements,Ps=ve.getPopupContainer,os=ve.showAction,xs=os===void 0?[]:os,Vo=ve.onFocus,fs=ve.onBlur,gs=ve.onKeyUp,is=ve.onKeyDown,vs=ve.onMouseDown,Hs=(0,jt.Z)(ve,un),ua=Yi(_n),ss=(Je!==void 0?Je:ua)||_n==="combobox",_s=(0,Ht.Z)({},Hs);xi.forEach(function(Xs){delete _s[Xs]}),bi==null||bi.forEach(function(Xs){delete _s[Xs]});var Ea=Ut.useState(!1),ya=(0,Wt.Z)(Ea,2),Hr=ya[0],na=ya[1];Ut.useEffect(function(){na(He())},[]);var Ke=Ut.useRef(null),ii=Ut.useRef(null),rs=Ut.useRef(null),Ns=Ut.useRef(null),Rs=Ut.useRef(null),Qs=vn(),Na=(0,Wt.Z)(Qs,3),Ka=Na[0],vl=Na[1],Bs=Na[2];Ut.useImperativeHandle(ke,function(){var Xs,Fs;return{focus:(Xs=Ns.current)===null||Xs===void 0?void 0:Xs.focus,blur:(Fs=Ns.current)===null||Fs===void 0?void 0:Fs.blur,scrollTo:function(cl){var Qo;return(Qo=Rs.current)===null||Qo===void 0?void 0:Qo.scrollTo(cl)}}});var co=Ut.useMemo(function(){var Xs;if(_n!=="combobox")return mo;var Fs=(Xs=zi[0])===null||Xs===void 0?void 0:Xs.value;return typeof Fs=="string"||typeof Fs=="number"?String(Fs):""},[mo,_n,zi]),xa=_n==="combobox"&&typeof Ji=="function"&&Ji()||null,ps=typeof er=="function"&&er(),zo=Ye(ii,ps==null||(xn=ps.props)===null||xn===void 0?void 0:xn.ref),Fo=Ut.useState(!1),ys=(0,Wt.Z)(Fo,2),Ys=ys[0],us=ys[1];we(function(){us(!0)},[]);var Ha=ye(!1,{defaultValue:Ir,value:Qi}),ha=(0,Wt.Z)(Ha,2),Tl=ha[0],vo=ha[1],Vr=Ys?Tl:!1,_r=!Ln&&Kn;(Ei||_r&&Vr&&_n==="combobox")&&(Vr=!1);var no=_r?!1:Vr,ho=Ut.useCallback(function(Xs){var Fs=Xs!==void 0?Xs:!Vr;Ei||(vo(Fs),Vr!==Fs&&(Fr==null||Fr(Fs)))},[Ei,Vr,vo,Fr]),cs=Ut.useMemo(function(){return(so||[]).some(function(Xs){return[`
|
|
|
`,`\r
|
|
|
`].includes(Xs)})},[so]),Zo=function(Fs,zs,cl){var Qo=!0,$s=Fs;xo==null||xo(null);var Zs=cl?null:Ge(Fs,so);return _n!=="combobox"&&Zs&&($s="",Io==null||Io(Zs),ho(!1),Qo=!1),to&&co!==$s&&to($s,{source:zs?"typing":"effect"}),Qo},Dl=function(Fs){!Fs||!Fs.trim()||to(Fs,{source:"submit"})};Ut.useEffect(function(){!Vr&&!ua&&_n!=="combobox"&&Zo("",!1,!1)},[Vr]),Ut.useEffect(function(){Tl&&Ei&&vo(!1),Ei&&vl(!1)},[Ei]);var Mo=ze(),Fu=(0,Wt.Z)(Mo,2),Po=Fu[0],Cl=Fu[1],Ol=function(Fs){var zs=Po(),cl=Fs.which;if(cl===ie.ENTER&&(_n!=="combobox"&&Fs.preventDefault(),Vr||ho(!0)),Cl(!!co),cl===ie.BACKSPACE&&!zs&&ua&&!co&&zi.length){for(var Qo=(0,ne.Z)(zi),$s=null,Zs=Qo.length-1;Zs>=0;Zs-=1){var Wa=Qo[Zs];if(!Wa.disabled){Qo.splice(Zs,1),$s=Wa;break}}$s&&li(Qo,{type:"remove",values:[$s]})}for(var hu=arguments.length,Da=new Array(hu>1?hu-1:0),du=1;du<hu;du++)Da[du-1]=arguments[du];if(Vr&&Rs.current){var Vd;(Vd=Rs.current).onKeyDown.apply(Vd,[Fs].concat(Da))}is==null||is.apply(void 0,[Fs].concat(Da))},Mc=function(Fs){for(var zs=arguments.length,cl=new Array(zs>1?zs-1:0),Qo=1;Qo<zs;Qo++)cl[Qo-1]=arguments[Qo];if(Vr&&Rs.current){var $s;($s=Rs.current).onKeyUp.apply($s,[Fs].concat(cl))}gs==null||gs.apply(void 0,[Fs].concat(cl))},Hc=function(Fs){var zs=zi.filter(function(cl){return cl!==Fs});li(zs,{type:"remove",values:[Fs]})},Ru=Ut.useRef(!1),yl=function(){vl(!0),Ei||(Vo&&!Ru.current&&Vo.apply(void 0,arguments),xs.includes("focus")&&ho(!0)),Ru.current=!0},sc=function(){vl(!1,function(){Ru.current=!1,ho(!1)}),!Ei&&(co&&(_n==="tags"?to(co,{source:"submit"}):_n==="multiple"&&to("",{source:"blur"})),fs&&fs.apply(void 0,arguments))},ws=[];Ut.useEffect(function(){return function(){ws.forEach(function(Xs){return clearTimeout(Xs)}),ws.splice(0,ws.length)}},[]);var zu=function(Fs){var zs,cl=Fs.target,Qo=(zs=rs.current)===null||zs===void 0?void 0:zs.getPopupElement();if(Qo&&Qo.contains(cl)){var $s=setTimeout(function(){var Da=ws.indexOf($s);if(Da!==-1&&ws.splice(Da,1),Bs(),!Hr&&!Qo.contains(document.activeElement)){var du;(du=Ns.current)===null||du===void 0||du.focus()}});ws.push($s)}for(var Zs=arguments.length,Wa=new Array(Zs>1?Zs-1:0),hu=1;hu<Zs;hu++)Wa[hu-1]=arguments[hu];vs==null||vs.apply(void 0,[Fs].concat(Wa))},ka=Ut.useState({}),Vs=(0,Wt.Z)(ka,2),ba=Vs[1];function _a(){ba({})}var da;ps&&(da=function(Fs){ho(Fs)}),on(function(){var Xs;return[Ke.current,(Xs=rs.current)===null||Xs===void 0?void 0:Xs.getPopupElement()]},no,ho,!!ps);var Bl=Ut.useMemo(function(){return(0,Ht.Z)((0,Ht.Z)({},ve),{},{notFoundContent:Ln,open:Vr,triggerOpen:no,id:ni,showSearch:ss,multiple:ua,toggleOpen:ho})},[ve,Ln,no,Vr,ni,ss,ua,ho]),Ta=!!Oo||gn,ju;Ta&&(ju=Ut.createElement(Me,{className:Ft()("".concat(Ti,"-arrow"),(0,Dt.Z)({},"".concat(Ti,"-arrow-loading"),gn)),customizeIcon:Oo,customizeIconProps:{loading:gn,searchValue:co,open:Vr,focused:Ka,showSearch:ss}}));var ud=function(){var Fs;wn==null||wn(),(Fs=Ns.current)===null||Fs===void 0||Fs.focus(),li([],{type:"clear",values:zi}),Zo("",!1,!1)},Wd=_t(Ti,ud,zi,Zr,Uo,Ei,co,_n),Df=Wd.allowClear,Op=Wd.clearIcon,_c=Ut.createElement(Ls,{ref:Rs}),Ec=Ft()(Ti,qe,(cn={},(0,Dt.Z)(cn,"".concat(Ti,"-focused"),Ka),(0,Dt.Z)(cn,"".concat(Ti,"-multiple"),ua),(0,Dt.Z)(cn,"".concat(Ti,"-single"),!ua),(0,Dt.Z)(cn,"".concat(Ti,"-allow-clear"),Zr),(0,Dt.Z)(cn,"".concat(Ti,"-show-arrow"),Ta),(0,Dt.Z)(cn,"".concat(Ti,"-disabled"),Ei),(0,Dt.Z)(cn,"".concat(Ti,"-loading"),gn),(0,Dt.Z)(cn,"".concat(Ti,"-open"),Vr),(0,Dt.Z)(cn,"".concat(Ti,"-customize-input"),xa),(0,Dt.Z)(cn,"".concat(Ti,"-show-search"),ss),cn)),Bp=Ut.createElement(fi,{ref:rs,disabled:Ei,prefixCls:Ti,visible:no,popupElement:_c,animation:bs,transitionName:ms,dropdownStyle:ds,dropdownClassName:es,direction:hn,dropdownMatchSelectWidth:jo,dropdownRender:Is,dropdownAlign:Yo,placement:Lo,builtinPlacements:Ao,getPopupContainer:Ps,empty:Kn,getTriggerDOMNode:function(){return ii.current},onPopupVisibleChange:da,onPopupMouseEnter:_a},ps?Ut.cloneElement(ps,{ref:zo}):Ut.createElement(Cn,(0,$t.Z)({},ve,{domRef:ii,prefixCls:Ti,inputElement:xa,ref:Ns,id:ni,showSearch:ss,autoClearSearchValue:oo,mode:_n,activeDescendantId:No,tagRender:sn,values:zi,open:Vr,onToggleOpen:ho,activeValue:yr,searchValue:co,onSearch:Zo,onSearchSubmit:Dl,onRemove:Hc,tokenWithEnter:cs}))),Of;return ps?Of=Bp:Of=Ut.createElement("div",(0,$t.Z)({className:Ec},_s,{ref:Ke,onMouseDown:zu,onKeyDown:Ol,onKeyUp:Mc,onFocus:yl,onBlur:sc}),Ka&&!Vr&&Ut.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(zi.map(function(Xs){var Fs=Xs.label,zs=Xs.value;return["number","string"].includes((0,Nt.Z)(Fs))?Fs:zs}).join(", "))),Bp,ju,Df&&Op),Ut.createElement(rn.Provider,{value:Bl},Of)}),Xn=ci,qn=function(ve,ke){var xn=Ut.useRef({values:new Map,options:new Map}),cn=Ut.useMemo(function(){var Ti=xn.current,qe=Ti.values,Je=Ti.options,sn=ve.map(function(zi){if(zi.label===void 0){var li;return(0,Ht.Z)((0,Ht.Z)({},zi),{},{label:(li=qe.get(zi.value))===null||li===void 0?void 0:li.label})}return zi}),hn=new Map,bi=new Map;return sn.forEach(function(zi){hn.set(zi.value,zi),bi.set(zi.value,ke.get(zi.value)||Je.get(zi.value))}),xn.current.values=hn,xn.current.options=bi,sn},[ve,ke]),ni=Ut.useCallback(function(Ti){return ke.get(Ti)||xn.current.options.get(Ti)},[ke]);return[cn,ni]};function Ki(ve,ke){return po(ve).join("").toUpperCase().includes(ke)}var vr=function(ve,ke,xn,cn,ni){return Ut.useMemo(function(){if(!xn||cn===!1)return ve;var Ti=ke.options,qe=ke.label,Je=ke.value,sn=[],hn=typeof cn=="function",bi=xn.toUpperCase(),zi=hn?cn:function(Kn,ur){return ni?Ki(ur[ni],bi):ur[Ti]?Ki(ur[qe!=="children"?qe:"label"],bi):Ki(ur[Je],bi)},li=hn?function(Kn){return $e(Kn)}:function(Kn){return Kn};return ve.forEach(function(Kn){if(Kn[Ti]){var ur=zi(xn,li(Kn));if(ur)sn.push(Kn);else{var Ln=Kn[Ti].filter(function(wn){return zi(xn,li(wn))});Ln.length&&sn.push((0,Ht.Z)((0,Ht.Z)({},Kn),{},(0,Dt.Z)({},Ti,Ln)))}return}zi(xn,li(Kn))&&sn.push(Kn)}),sn},[ve,cn,ni,xn,ke])},ki=0,Or=Yt();function Ii(){var ve;return Or?(ve=ki,ki+=1):ve="TEST_OR_SSR",ve}function ao(ve){var ke=Ut.useState(),xn=(0,Wt.Z)(ke,2),cn=xn[0],ni=xn[1];return Ut.useEffect(function(){ni("rc_select_".concat(Ii()))},[]),ve||cn}function qr(ve){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},xn=[];return Ut.Children.forEach(ve,function(cn){cn==null&&!ke.keepEmpty||(Array.isArray(cn)?xn=xn.concat(qr(cn)):(0,an.isFragment)(cn)&&cn.props?xn=xn.concat(qr(cn.props.children,ke)):xn.push(cn))}),xn}var Do=["children","value"],ui=["children"];function Co(ve){var ke=ve,xn=ke.key,cn=ke.props,ni=cn.children,Ti=cn.value,qe=(0,jt.Z)(cn,Do);return(0,Ht.Z)({key:xn,value:Ti!==void 0?Ti:xn,children:ni},qe)}function bo(ve){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return qr(ve).map(function(xn,cn){if(!Ut.isValidElement(xn)||!xn.type)return null;var ni=xn,Ti=ni.type.isSelectOptGroup,qe=ni.key,Je=ni.props,sn=Je.children,hn=(0,jt.Z)(Je,ui);return ke||!Ti?Co(xn):(0,Ht.Z)((0,Ht.Z)({key:"__RC_SELECT_GRP__".concat(qe===null?cn:qe,"__"),label:qe},hn),{},{options:bo(sn)})}).filter(function(xn){return xn})}function Kr(ve,ke,xn,cn,ni){return Ut.useMemo(function(){var Ti=ve,qe=!ve;qe&&(Ti=bo(ke));var Je=new Map,sn=new Map,hn=function(li,Kn,ur){ur&&typeof ur=="string"&&li.set(Kn[ur],Kn)};function bi(zi){for(var li=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Kn=0;Kn<zi.length;Kn+=1){var ur=zi[Kn];!ur[xn.options]||li?(Je.set(ur[xn.value],ur),hn(sn,ur,xn.label),hn(sn,ur,cn),hn(sn,ur,ni)):bi(ur[xn.options],!0)}}return bi(Ti),{options:Ti,valueOptions:Je,labelOptions:sn}},[ve,ke,xn,cn,ni])}function wo(ve){var ke=Ut.useRef();ke.current=ve;var xn=Ut.useCallback(function(){return ke.current.apply(ke,arguments)},[]);return xn}var Sr=function(){return null};Sr.isSelectOptGroup=!0;var Xr=Sr,Br=function(){return null};Br.isSelectOption=!0;var yo=Br;function ko(ve,ke){var xn=(0,Ht.Z)({},ve);return Array.isArray(ke)&&ke.forEach(function(cn){delete xn[cn]}),xn}var oi=mt(73299),kn=Ut.createContext(null),Ce=kn;function si(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Wi=["disabled","title","children","style","className"];function Gi(ve){return typeof ve=="string"||typeof ve=="number"}var Tr=function(ke,xn){var cn=ti(),ni=cn.prefixCls,Ti=cn.id,qe=cn.open,Je=cn.multiple,sn=cn.mode,hn=cn.searchValue,bi=cn.toggleOpen,zi=cn.notFoundContent,li=cn.onPopupScroll,Kn=Ut.useContext(Ce),ur=Kn.flattenOptions,Ln=Kn.onActiveValue,wn=Kn.defaultActiveFirstOption,_n=Kn.onSelect,Ei=Kn.menuItemSelectedIcon,gn=Kn.rawValues,Ji=Kn.fieldNames,er=Kn.virtual,Qi=Kn.direction,Ir=Kn.listHeight,Fr=Kn.listItemHeight,yr="".concat(ni,"-item"),xo=nn(function(){return ur},[qe,ur],function(Yo,Lo){return Lo[0]&&Yo[1]!==Lo[1]}),No=Ut.useRef(null),mo=function(Lo){Lo.preventDefault()},oo=function(Lo){No.current&&No.current.scrollTo(typeof Lo=="number"?{index:Lo}:Lo)},to=function(Lo){for(var Ao=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ps=xo.length,os=0;os<Ps;os+=1){var xs=(Lo+os*Ao+Ps)%Ps,Vo=xo[xs],fs=Vo.group,gs=Vo.data;if(!fs&&!gs.disabled)return xs}return-1},Io=Ut.useState(function(){return to(0)}),so=(0,Wt.Z)(Io,2),Zr=so[0],Oo=so[1],Uo=function(Lo){var Ao=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Oo(Lo);var Ps={source:Ao?"keyboard":"mouse"},os=xo[Lo];if(!os){Ln(null,-1,Ps);return}Ln(os.value,Lo,Ps)};(0,Ut.useEffect)(function(){Uo(wn!==!1?to(0):-1)},[xo.length,hn]);var Ls=Ut.useCallback(function(Yo){return gn.has(Yo)&&sn!=="combobox"},[sn,(0,ne.Z)(gn).toString(),gn.size]);(0,Ut.useEffect)(function(){var Yo=setTimeout(function(){if(!Je&&qe&&gn.size===1){var Ao=Array.from(gn)[0],Ps=xo.findIndex(function(os){var xs=os.data;return xs.value===Ao});Ps!==-1&&(Uo(Ps),oo(Ps))}});if(qe){var Lo;(Lo=No.current)===null||Lo===void 0||Lo.scrollTo(void 0)}return function(){return clearTimeout(Yo)}},[qe,hn,ur.length]);var bs=function(Lo){Lo!==void 0&&_n(Lo,{selected:!gn.has(Lo)}),Je||bi(!1)};if(Ut.useImperativeHandle(xn,function(){return{onKeyDown:function(Lo){var Ao=Lo.which,Ps=Lo.ctrlKey;switch(Ao){case ie.N:case ie.P:case ie.UP:case ie.DOWN:{var os=0;if(Ao===ie.UP?os=-1:Ao===ie.DOWN?os=1:si()&&Ps&&(Ao===ie.N?os=1:Ao===ie.P&&(os=-1)),os!==0){var xs=to(Zr+os,os);oo(xs),Uo(xs,!0)}break}case ie.ENTER:{var Vo=xo[Zr];Vo&&!Vo.data.disabled?bs(Vo.value):bs(void 0),qe&&Lo.preventDefault();break}case ie.ESC:bi(!1),qe&&Lo.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Lo){oo(Lo)}}}),xo.length===0)return Ut.createElement("div",{role:"listbox",id:"".concat(Ti,"_list"),className:"".concat(yr,"-empty"),onMouseDown:mo},zi);var ms=Object.keys(Ji).map(function(Yo){return Ji[Yo]}),ds=function(Lo){return Lo.label};function es(Yo,Lo){var Ao=Yo.group;return{role:Ao?"presentation":"option",id:"".concat(Ti,"_list_").concat(Lo)}}var jo=function(Lo){var Ao=xo[Lo];if(!Ao)return null;var Ps=Ao.data||{},os=Ps.value,xs=Ao.group,Vo=hi(Ps,!0),fs=ds(Ao);return Ao?Ut.createElement("div",(0,$t.Z)({"aria-label":typeof fs=="string"&&!xs?fs:null},Vo,{key:Lo},es(Ao,Lo),{"aria-selected":Ls(os)}),os):null},Is={role:"listbox",id:"".concat(Ti,"_list")};return Ut.createElement(Ut.Fragment,null,er&&Ut.createElement("div",(0,$t.Z)({},Is,{style:{height:0,width:0,overflow:"hidden"}}),jo(Zr-1),jo(Zr),jo(Zr+1)),Ut.createElement(oi.Z,{itemKey:"key",ref:No,data:xo,height:Ir,itemHeight:Fr,fullHeight:!1,onMouseDown:mo,onScroll:li,virtual:er,direction:Qi,innerProps:er?null:Is},function(Yo,Lo){var Ao,Ps=Yo.group,os=Yo.groupOption,xs=Yo.data,Vo=Yo.label,fs=Yo.value,gs=xs.key;if(Ps){var is,vs=(is=xs.title)!==null&&is!==void 0?is:Gi(Vo)?Vo.toString():void 0;return Ut.createElement("div",{className:Ft()(yr,"".concat(yr,"-group")),title:vs},Vo!==void 0?Vo:gs)}var Hs=xs.disabled,ua=xs.title,ss=xs.children,_s=xs.style,Ea=xs.className,ya=(0,jt.Z)(xs,Wi),Hr=ko(ya,ms),na=Ls(fs),Ke="".concat(yr,"-option"),ii=Ft()(yr,Ke,Ea,(Ao={},(0,Dt.Z)(Ao,"".concat(Ke,"-grouped"),os),(0,Dt.Z)(Ao,"".concat(Ke,"-active"),Zr===Lo&&!Hs),(0,Dt.Z)(Ao,"".concat(Ke,"-disabled"),Hs),(0,Dt.Z)(Ao,"".concat(Ke,"-selected"),na),Ao)),rs=ds(Yo),Ns=!Ei||typeof Ei=="function"||na,Rs=typeof rs=="number"?rs:rs||fs,Qs=Gi(Rs)?Rs.toString():void 0;return ua!==void 0&&(Qs=ua),Ut.createElement("div",(0,$t.Z)({},hi(Hr),er?{}:es(Yo,Lo),{"aria-selected":na,className:ii,title:Qs,onMouseMove:function(){Zr===Lo||Hs||Uo(Lo)},onClick:function(){Hs||bs(fs)},style:_s}),Ut.createElement("div",{className:"".concat(Ke,"-content")},Rs),Ut.isValidElement(Ei)||na,Ns&&Ut.createElement(Me,{className:"".concat(yr,"-option-state"),customizeIcon:Ei,customizeIconProps:{isSelected:na}},na?"\u2713":null))}))},Lr=Ut.forwardRef(Tr);Lr.displayName="OptionList";var Cr=Lr;function jr(ve){var ke=ve.mode,xn=ve.options,cn=ve.children,ni=ve.backfill,Ti=ve.allowClear,qe=ve.placeholder,Je=ve.getInputElement,sn=ve.showSearch,hn=ve.onSearch,bi=ve.defaultOpen,zi=ve.autoFocus,li=ve.labelInValue,Kn=ve.value,ur=ve.inputValue,Ln=ve.optionLabelProp,wn=isMultiple(ke),_n=sn!==void 0?sn:wn||ke==="combobox",Ei=xn||convertChildrenToData(cn);if(warning(ke!=="tags"||Ei.every(function(Qi){return!Qi.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ke==="tags"||ke==="combobox"){var gn=Ei.some(function(Qi){return Qi.options?Qi.options.some(function(Ir){return typeof("value"in Ir?Ir.value:Ir.key)=="number"}):typeof("value"in Qi?Qi.value:Qi.key)=="number"});warning(!gn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(ke!=="combobox"||!Ln,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(ke==="combobox"||!ni,"`backfill` only works with `combobox` mode."),warning(ke==="combobox"||!Je,"`getInputElement` only work with `combobox` mode."),noteOnce(ke!=="combobox"||!Je||!Ti||!qe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),hn&&!_n&&ke!=="combobox"&&ke!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!bi||zi,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Kn!=null){var Ji=toArray(Kn);warning(!li||Ji.every(function(Qi){return _typeof(Qi)==="object"&&("key"in Qi||"value"in Qi)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!wn||Array.isArray(Kn),"`value` should be array when `mode` is `multiple` or `tags`")}if(cn){var er=null;toNodeArray(cn).some(function(Qi){if(!React.isValidElement(Qi)||!Qi.type)return!1;var Ir=Qi,Fr=Ir.type;if(Fr.isSelectOption)return!1;if(Fr.isSelectOptGroup){var yr=toNodeArray(Qi.props.children).every(function(xo){return!React.isValidElement(xo)||!Qi.type||xo.type.isSelectOption?!0:(er=xo.type,!1)});return!yr}return er=Fr,!0}),er&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(er.displayName||er.name||er,"`.")),warning(ur===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Jr(ve,ke){if(ve){var xn=function cn(ni){for(var Ti=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe=0;qe<ni.length;qe++){var Je=ni[qe];if(Je[ke==null?void 0:ke.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Ti&&Array.isArray(Je[ke==null?void 0:ke.options])&&cn(Je[ke==null?void 0:ke.options],!0))break}};xn(ve)}}var Wr=null,or=["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"],Gt=["inputValue"];function Zn(ve){return!ve||(0,Nt.Z)(ve)!=="object"}var wi=Ut.forwardRef(function(ve,ke){var xn=ve.id,cn=ve.mode,ni=ve.prefixCls,Ti=ni===void 0?"rc-select":ni,qe=ve.backfill,Je=ve.fieldNames,sn=ve.inputValue,hn=ve.searchValue,bi=ve.onSearch,zi=ve.autoClearSearchValue,li=zi===void 0?!0:zi,Kn=ve.onSelect,ur=ve.onDeselect,Ln=ve.dropdownMatchSelectWidth,wn=Ln===void 0?!0:Ln,_n=ve.filterOption,Ei=ve.filterSort,gn=ve.optionFilterProp,Ji=ve.optionLabelProp,er=ve.options,Qi=ve.children,Ir=ve.defaultActiveFirstOption,Fr=ve.menuItemSelectedIcon,yr=ve.virtual,xo=ve.direction,No=ve.listHeight,mo=No===void 0?200:No,oo=ve.listItemHeight,to=oo===void 0?20:oo,Io=ve.value,so=ve.defaultValue,Zr=ve.labelInValue,Oo=ve.onChange,Uo=(0,jt.Z)(ve,or),Ls=ao(xn),bs=Yi(cn),ms=!!(!er&&Qi),ds=Ut.useMemo(function(){return _n===void 0&&cn==="combobox"?!1:_n},[_n,cn]),es=Ut.useMemo(function(){return ri(Je,ms)},[JSON.stringify(Je),ms]),jo=ye("",{value:hn!==void 0?hn:sn,postState:function(_r){return _r||""}}),Is=(0,Wt.Z)(jo,2),Yo=Is[0],Lo=Is[1],Ao=Kr(er,Qi,es,gn,Ji),Ps=Ao.valueOptions,os=Ao.labelOptions,xs=Ao.options,Vo=Ut.useCallback(function(Vr){var _r=po(Vr);return _r.map(function(no){var ho,cs,Zo,Dl,Mo;if(Zn(no))ho=no;else{var Fu;Zo=no.key,cs=no.label,ho=(Fu=no.value)!==null&&Fu!==void 0?Fu:Zo}var Po=Ps.get(ho);if(Po){var Cl;if(cs===void 0&&(cs=Po==null?void 0:Po[Ji||es.label]),Zo===void 0&&(Zo=(Cl=Po==null?void 0:Po.key)!==null&&Cl!==void 0?Cl:ho),Dl=Po==null?void 0:Po.disabled,Mo=Po==null?void 0:Po.title,0)var Ol}return{label:cs,value:ho,key:Zo,disabled:Dl,title:Mo}})},[es,Ji,Ps]),fs=ye(so,{value:Io}),gs=(0,Wt.Z)(fs,2),is=gs[0],vs=gs[1],Hs=Ut.useMemo(function(){var Vr,_r=Vo(is);return cn==="combobox"&&Mn((Vr=_r[0])===null||Vr===void 0?void 0:Vr.value)?[]:_r},[is,Vo,cn]),ua=qn(Hs,Ps),ss=(0,Wt.Z)(ua,2),_s=ss[0],Ea=ss[1],ya=Ut.useMemo(function(){if(!cn&&_s.length===1){var Vr=_s[0];if(Vr.value===null&&(Vr.label===null||Vr.label===void 0))return[]}return _s.map(function(_r){var no;return(0,Ht.Z)((0,Ht.Z)({},_r),{},{label:(no=_r.label)!==null&&no!==void 0?no:_r.value})})},[cn,_s]),Hr=Ut.useMemo(function(){return new Set(_s.map(function(Vr){return Vr.value}))},[_s]);Ut.useEffect(function(){if(cn==="combobox"){var Vr,_r=(Vr=_s[0])===null||Vr===void 0?void 0:Vr.value;Lo(Yr(_r)?String(_r):"")}},[_s]);var na=wo(function(Vr,_r){var no,ho=_r!=null?_r:Vr;return no={},(0,Dt.Z)(no,es.value,Vr),(0,Dt.Z)(no,es.label,ho),no}),Ke=Ut.useMemo(function(){if(cn!=="tags")return xs;var Vr=(0,ne.Z)(xs),_r=function(ho){return Ps.has(ho)};return(0,ne.Z)(_s).sort(function(no,ho){return no.value<ho.value?-1:1}).forEach(function(no){var ho=no.value;_r(ho)||Vr.push(na(ho,no.label))}),Vr},[na,xs,Ps,_s,cn]),ii=vr(Ke,es,Yo,ds,gn),rs=Ut.useMemo(function(){return cn!=="tags"||!Yo||ii.some(function(Vr){return Vr[gn||"value"]===Yo})||ii.some(function(Vr){return Vr[es.value]===Yo})?ii:[na(Yo)].concat((0,ne.Z)(ii))},[na,gn,cn,ii,Yo,es]),Ns=Ut.useMemo(function(){return Ei?(0,ne.Z)(rs).sort(function(Vr,_r){return Ei(Vr,_r)}):rs},[rs,Ei]),Rs=Ut.useMemo(function(){return Ri(Ns,{fieldNames:es,childrenAsData:ms})},[Ns,es,ms]),Qs=function(_r){var no=Vo(_r);if(vs(no),Oo&&(no.length!==_s.length||no.some(function(Zo,Dl){var Mo;return((Mo=_s[Dl])===null||Mo===void 0?void 0:Mo.value)!==(Zo==null?void 0:Zo.value)}))){var ho=Zr?no:no.map(function(Zo){return Zo.value}),cs=no.map(function(Zo){return $e(Ea(Zo.value))});Oo(bs?ho:ho[0],bs?cs:cs[0])}},Na=Ut.useState(null),Ka=(0,Wt.Z)(Na,2),vl=Ka[0],Bs=Ka[1],co=Ut.useState(0),xa=(0,Wt.Z)(co,2),ps=xa[0],zo=xa[1],Fo=Ir!==void 0?Ir:cn!=="combobox",ys=Ut.useCallback(function(Vr,_r){var no=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ho=no.source,cs=ho===void 0?"keyboard":ho;zo(_r),qe&&cn==="combobox"&&Vr!==null&&cs==="keyboard"&&Bs(String(Vr))},[qe,cn]),Ys=function(_r,no,ho){var cs=function(){var Ru,yl=Ea(_r);return[Zr?{label:yl==null?void 0:yl[es.label],value:_r,key:(Ru=yl==null?void 0:yl.key)!==null&&Ru!==void 0?Ru:_r}:_r,$e(yl)]};if(no&&Kn){var Zo=cs(),Dl=(0,Wt.Z)(Zo,2),Mo=Dl[0],Fu=Dl[1];Kn(Mo,Fu)}else if(!no&&ur&&ho!=="clear"){var Po=cs(),Cl=(0,Wt.Z)(Po,2),Ol=Cl[0],Mc=Cl[1];ur(Ol,Mc)}},us=wo(function(Vr,_r){var no,ho=bs?_r.selected:!0;ho?no=bs?[].concat((0,ne.Z)(_s),[Vr]):[Vr]:no=_s.filter(function(cs){return cs.value!==Vr}),Qs(no),Ys(Vr,ho),cn==="combobox"?Bs(""):(!Yi||li)&&(Lo(""),Bs(""))}),Ha=function(_r,no){Qs(_r);var ho=no.type,cs=no.values;(ho==="remove"||ho==="clear")&&cs.forEach(function(Zo){Ys(Zo.value,!1,ho)})},ha=function(_r,no){if(Lo(_r),Bs(null),no.source==="submit"){var ho=(_r||"").trim();if(ho){var cs=Array.from(new Set([].concat((0,ne.Z)(Hr),[ho])));Qs(cs),Ys(ho,!0),Lo("")}return}no.source!=="blur"&&(cn==="combobox"&&Qs(_r),bi==null||bi(_r))},Tl=function(_r){var no=_r;cn!=="tags"&&(no=_r.map(function(cs){var Zo=os.get(cs);return Zo==null?void 0:Zo.value}).filter(function(cs){return cs!==void 0}));var ho=Array.from(new Set([].concat((0,ne.Z)(Hr),(0,ne.Z)(no))));Qs(ho),ho.forEach(function(cs){Ys(cs,!0)})},vo=Ut.useMemo(function(){var Vr=yr!==!1&&wn!==!1;return(0,Ht.Z)((0,Ht.Z)({},Ao),{},{flattenOptions:Rs,onActiveValue:ys,defaultActiveFirstOption:Fo,onSelect:us,menuItemSelectedIcon:Fr,rawValues:Hr,fieldNames:es,virtual:Vr,direction:xo,listHeight:mo,listItemHeight:to,childrenAsData:ms})},[Ao,Rs,ys,Fo,us,Fr,Hr,es,yr,wn,mo,to,ms]);return Ut.createElement(Ce.Provider,{value:vo},Ut.createElement(Xn,(0,$t.Z)({},Uo,{id:Ls,prefixCls:Ti,ref:ke,omitDomProps:Gt,mode:cn,displayValues:ya,onDisplayValuesChange:Ha,direction:xo,searchValue:Yo,onSearch:ha,autoClearSearchValue:li,onSearchSplit:Tl,dropdownMatchSelectWidth:wn,OptionList:Cr,emptyOptions:!Rs.length,activeValue:vl,activeDescendantId:"".concat(Ls,"_list_").concat(ps)})))}),Fi=wi;Fi.Option=yo,Fi.OptGroup=Xr;var Tt=Fi,ee=Tt,le=mt(10366),xe=mt(8745),fe=mt(33603),Ee=mt(9708),Ae=mt(53124),yn=mt(98866),Rn=mt(88258),Pi=mt(98675),An=mt(65223),Mi=mt(4173),pi=mt(87244),di=mt(13458),Wn=mt(78642),Bi=mt(46163),sr=function(ve,ke){var xn={};for(var cn in ve)Object.prototype.hasOwnProperty.call(ve,cn)&&ke.indexOf(cn)<0&&(xn[cn]=ve[cn]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ni=0,cn=Object.getOwnPropertySymbols(ve);ni<cn.length;ni++)ke.indexOf(cn[ni])<0&&Object.prototype.propertyIsEnumerable.call(ve,cn[ni])&&(xn[cn[ni]]=ve[cn[ni]]);return xn};const _i="SECRET_COMBOBOX_MODE_DO_NOT_USE",Ui=(ve,ke)=>{var xn,{prefixCls:cn,bordered:ni=!0,className:Ti,rootClassName:qe,getPopupContainer:Je,popupClassName:sn,dropdownClassName:hn,listHeight:bi=256,placement:zi,listItemHeight:li=24,size:Kn,disabled:ur,notFoundContent:Ln,status:wn,builtinPlacements:_n,dropdownMatchSelectWidth:Ei,popupMatchSelectWidth:gn,direction:Ji,style:er,allowClear:Qi}=ve,Ir=sr(ve,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Fr,getPrefixCls:yr,renderEmpty:xo,direction:No,virtual:mo,popupMatchSelectWidth:oo,popupOverflow:to,select:Io}=Ut.useContext(Ae.E_),so=yr("select",cn),Zr=yr(),Oo=Ji!=null?Ji:No,{compactSize:Uo,compactItemClassnames:Ls}=(0,Mi.ri)(so,Oo),[bs,ms]=(0,pi.Z)(so),ds=Ut.useMemo(()=>{const{mode:Ke}=Ir;if(Ke!=="combobox")return Ke===_i?"combobox":Ke},[Ir.mode]),es=ds==="multiple"||ds==="tags",jo=(0,Wn.Z)(Ir.suffixIcon,Ir.showArrow),Is=(xn=gn!=null?gn:Ei)!==null&&xn!==void 0?xn:oo,{status:Yo,hasFeedback:Lo,isFormItemInput:Ao,feedbackIcon:Ps}=Ut.useContext(An.aM),os=(0,Ee.F)(Yo,wn);let xs;Ln!==void 0?xs=Ln:ds==="combobox"?xs=null:xs=(xo==null?void 0:xo("Select"))||Ut.createElement(Rn.Z,{componentName:"Select"});const{suffixIcon:Vo,itemIcon:fs,removeIcon:gs,clearIcon:is}=(0,Bi.Z)(Object.assign(Object.assign({},Ir),{multiple:es,hasFeedback:Lo,feedbackIcon:Ps,showSuffixIcon:jo,prefixCls:so,showArrow:Ir.showArrow,componentName:"Select"})),vs=Qi===!0?{clearIcon:is}:Qi,Hs=(0,le.Z)(Ir,["suffixIcon","itemIcon"]),ua=Ft()(sn||hn,{[`${so}-dropdown-${Oo}`]:Oo==="rtl"},qe,ms),ss=(0,Pi.Z)(Ke=>{var ii;return(ii=Kn!=null?Kn:Uo)!==null&&ii!==void 0?ii:Ke}),_s=Ut.useContext(yn.Z),Ea=ur!=null?ur:_s,ya=Ft()({[`${so}-lg`]:ss==="large",[`${so}-sm`]:ss==="small",[`${so}-rtl`]:Oo==="rtl",[`${so}-borderless`]:!ni,[`${so}-in-form-item`]:Ao},(0,Ee.Z)(so,os,Lo),Ls,Io==null?void 0:Io.className,Ti,qe,ms),Hr=Ut.useMemo(()=>zi!==void 0?zi:Oo==="rtl"?"bottomRight":"bottomLeft",[zi,Oo]),na=(0,di.Z)(_n,to);return bs(Ut.createElement(ee,Object.assign({ref:ke,virtual:mo,showSearch:Io==null?void 0:Io.showSearch},Hs,{style:Object.assign(Object.assign({},Io==null?void 0:Io.style),er),dropdownMatchSelectWidth:Is,builtinPlacements:na,transitionName:(0,fe.m)(Zr,"slide-up",Ir.transitionName),listHeight:bi,listItemHeight:li,mode:ds,prefixCls:so,placement:Hr,direction:Oo,suffixIcon:Vo,menuItemSelectedIcon:fs,removeIcon:gs,allowClear:vs,notFoundContent:xs,className:ya,getPopupContainer:Je||Fr,dropdownClassName:ua,disabled:Ea})))},qi=Ut.forwardRef(Ui),lr=(0,xe.Z)(qi);qi.SECRET_COMBOBOX_MODE_DO_NOT_USE=_i,qi.Option=yo,qi.OptGroup=Xr,qi._InternalPanelDoNotUseOrYouWillBeFired=lr;var je=qi},87244:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Rt}});var ft=mt(14747),Ft=mt(80110),$t=mt(45503),ne=mt(67968),Dt=mt(67771),Ht=mt(33297);const Wt=zt=>{const{optionHeight:Qt,optionFontSize:te,optionLineHeight:Ie,optionPadding:He}=zt;return{position:"relative",display:"block",minHeight:Qt,padding:He,color:zt.colorText,fontWeight:"normal",fontSize:te,lineHeight:Ie,boxSizing:"border-box"}};var Nt=zt=>{const{antCls:Qt,componentCls:te}=zt,Ie=`${te}-item`,He=`&${Qt}-slide-up-enter${Qt}-slide-up-enter-active`,en=`&${Qt}-slide-up-appear${Qt}-slide-up-appear-active`,ie=`&${Qt}-slide-up-leave${Qt}-slide-up-leave-active`,an=`${te}-dropdown-placement-`;return[{[`${te}-dropdown`]:Object.assign(Object.assign({},(0,ft.Wf)(zt)),{position:"absolute",top:-9999,zIndex:zt.zIndexPopup,boxSizing:"border-box",padding:zt.paddingXXS,overflow:"hidden",fontSize:zt.fontSize,fontVariant:"initial",backgroundColor:zt.colorBgElevated,borderRadius:zt.borderRadiusLG,outline:"none",boxShadow:zt.boxShadowSecondary,[`
|
|
|
${He}${an}bottomLeft,
|
|
|
${en}${an}bottomLeft
|
|
|
`]:{animationName:Dt.fJ},[`
|
|
|
${He}${an}topLeft,
|
|
|
${en}${an}topLeft,
|
|
|
${He}${an}topRight,
|
|
|
${en}${an}topRight
|
|
|
`]:{animationName:Dt.Qt},[`${ie}${an}bottomLeft`]:{animationName:Dt.Uw},[`
|
|
|
${ie}${an}topLeft,
|
|
|
${ie}${an}topRight
|
|
|
`]:{animationName:Dt.ly},"&-hidden":{display:"none"},[`${Ie}`]:Object.assign(Object.assign({},Wt(zt)),{cursor:"pointer",transition:`background ${zt.motionDurationSlow} ease`,borderRadius:zt.borderRadiusSM,"&-group":{color:zt.colorTextDescription,fontSize:zt.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ft.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ie}-option-disabled)`]:{backgroundColor:zt.optionActiveBg},[`&-selected:not(${Ie}-option-disabled)`]:{color:zt.optionSelectedColor,fontWeight:zt.optionSelectedFontWeight,backgroundColor:zt.optionSelectedBg,[`${Ie}-option-state`]:{color:zt.colorPrimary}},"&-disabled":{[`&${Ie}-option-selected`]:{backgroundColor:zt.colorBgContainerDisabled},color:zt.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:zt.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,Dt.oN)(zt,"slide-up"),(0,Dt.oN)(zt,"slide-down"),(0,Ht.Fm)(zt,"move-up"),(0,Ht.Fm)(zt,"move-down")]};const Ut=2,De=zt=>{let{controlHeightSM:Qt,controlHeight:te,lineWidth:Ie}=zt;const He=(te-Qt)/2-Ie,en=Math.ceil(He/2);return[He,en]};function Yt(zt,Qt){const{componentCls:te,iconCls:Ie}=zt,He=`${te}-selection-overflow`,en=zt.multipleSelectItemHeight,[ie]=De(zt),an=Qt?`${te}-${Qt}`:"";return{[`${te}-multiple${an}`]:{fontSize:zt.fontSize,[He]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${te}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${ie-Ut}px ${Ut*2}px`,borderRadius:zt.borderRadius,[`${te}-show-search&`]:{cursor:"text"},[`${te}-disabled&`]:{background:zt.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ut}px 0`,lineHeight:`${en}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${te}-show-arrow ${te}-selector,
|
|
|
&${te}-allow-clear ${te}-selector
|
|
|
`]:{paddingInlineEnd:zt.fontSizeIcon+zt.controlPaddingHorizontal},[`${te}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:en,marginTop:Ut,marginBottom:Ut,lineHeight:`${en-zt.lineWidth*2}px`,background:zt.multipleItemBg,border:`${zt.lineWidth}px ${zt.lineType} ${zt.multipleItemBorderColor}`,borderRadius:zt.borderRadiusSM,cursor:"default",transition:`font-size ${zt.motionDurationSlow}, line-height ${zt.motionDurationSlow}, height ${zt.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Ut*2,paddingInlineStart:zt.paddingXS,paddingInlineEnd:zt.paddingXS/2,[`${te}-disabled&`]:{color:zt.multipleItemColorDisabled,borderColor:zt.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:zt.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ft.Ro)()),{display:"inline-flex",alignItems:"center",color:zt.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ie}`]:{verticalAlign:"-0.2em"},"&:hover":{color:zt.colorIconHover}})},[`${He}-item + ${He}-item`]:{[`${te}-selection-search`]:{marginInlineStart:0}},[`${te}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:zt.inputPaddingHorizontalBase-ie,"\n &-input,\n &-mirror\n ":{height:en,fontFamily:zt.fontFamily,lineHeight:`${en}px`,transition:`all ${zt.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${te}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:zt.inputPaddingHorizontalBase,insetInlineEnd:zt.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${zt.motionDurationSlow}`}}}}var we=zt=>{const{componentCls:Qt}=zt,te=(0,$t.TS)(zt,{controlHeight:zt.controlHeightSM,multipleSelectItemHeight:zt.controlHeightXS,borderRadius:zt.borderRadiusSM,borderRadiusSM:zt.borderRadiusXS}),Ie=(0,$t.TS)(zt,{fontSize:zt.fontSizeLG,controlHeight:zt.controlHeightLG,multipleSelectItemHeight:zt.multipleItemHeightLG,borderRadius:zt.borderRadiusLG,borderRadiusSM:zt.borderRadius}),[,He]=De(zt);return[Yt(zt),Yt(te,"sm"),{[`${Qt}-multiple${Qt}-sm`]:{[`${Qt}-selection-placeholder`]:{insetInline:zt.controlPaddingHorizontalSM-zt.lineWidth},[`${Qt}-selection-search`]:{marginInlineStart:He}}},Yt(Ie,"lg")]};function ue(zt,Qt){const{componentCls:te,inputPaddingHorizontalBase:Ie,borderRadius:He}=zt,en=zt.controlHeight-zt.lineWidth*2,ie=Math.ceil(zt.fontSize*1.25),an=Qt?`${te}-${Qt}`:"";return{[`${te}-single${an}`]:{fontSize:zt.fontSize,[`${te}-selector`]:Object.assign(Object.assign({},(0,ft.Wf)(zt)),{display:"flex",borderRadius:He,[`${te}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Ie,insetInlineEnd:Ie,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${te}-selection-item,
|
|
|
${te}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${en}px`,transition:`all ${zt.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${en}px`}},[`${te}-selection-item`]:{position:"relative",userSelect:"none"},[`${te}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${te}-selection-item:after`,`${te}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${te}-show-arrow ${te}-selection-item,
|
|
|
&${te}-show-arrow ${te}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:ie},[`&${te}-open ${te}-selection-item`]:{color:zt.colorTextPlaceholder},[`&:not(${te}-customize-input)`]:{[`${te}-selector`]:{width:"100%",height:zt.controlHeight,padding:`0 ${Ie}px`,[`${te}-selection-search-input`]:{height:en},"&:after":{lineHeight:`${en}px`}}},[`&${te}-customize-input`]:{[`${te}-selector`]:{"&:after":{display:"none"},[`${te}-selection-search`]:{position:"static",width:"100%"},[`${te}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Ie}px`,"&:after":{display:"none"}}}}}}}function he(zt){const{componentCls:Qt}=zt,te=zt.controlPaddingHorizontalSM-zt.lineWidth;return[ue(zt),ue((0,$t.TS)(zt,{controlHeight:zt.controlHeightSM,borderRadius:zt.borderRadiusSM}),"sm"),{[`${Qt}-single${Qt}-sm`]:{[`&:not(${Qt}-customize-input)`]:{[`${Qt}-selection-search`]:{insetInlineStart:te,insetInlineEnd:te},[`${Qt}-selector`]:{padding:`0 ${te}px`},[`&${Qt}-show-arrow ${Qt}-selection-search`]:{insetInlineEnd:te+zt.fontSize*1.5},[`
|
|
|
&${Qt}-show-arrow ${Qt}-selection-item,
|
|
|
&${Qt}-show-arrow ${Qt}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:zt.fontSize*1.5}}}},ue((0,$t.TS)(zt,{controlHeight:zt.singleItemHeightLG,fontSize:zt.fontSizeLG,borderRadius:zt.borderRadiusLG}),"lg")]}const It=zt=>{const{componentCls:Qt,selectorBg:te}=zt;return{position:"relative",backgroundColor:te,border:`${zt.lineWidth}px ${zt.lineType} ${zt.colorBorder}`,transition:`all ${zt.motionDurationMid} ${zt.motionEaseInOut}`,input:{cursor:"pointer"},[`${Qt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Qt}-disabled&`]:{color:zt.colorTextDisabled,background:zt.colorBgContainerDisabled,cursor:"not-allowed",[`${Qt}-multiple&`]:{background:zt.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},ye=function(zt,Qt){let te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Ie,borderHoverColor:He,outlineColor:en,antCls:ie}=Qt,an=te?{[`${Ie}-selector`]:{borderColor:He}}:{};return{[zt]:{[`&:not(${Ie}-disabled):not(${Ie}-customize-input):not(${ie}-pagination-size-changer)`]:Object.assign(Object.assign({},an),{[`${Ie}-focused& ${Ie}-selector`]:{borderColor:He,boxShadow:`0 0 0 ${Qt.controlOutlineWidth}px ${en}`,outline:0},[`&:hover ${Ie}-selector`]:{borderColor:He}})}}},Ze=zt=>{const{componentCls:Qt}=zt;return{[`${Qt}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},pe=zt=>{const{componentCls:Qt,inputPaddingHorizontalBase:te,iconCls:Ie}=zt;return{[Qt]:Object.assign(Object.assign({},(0,ft.Wf)(zt)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Qt}-customize-input) ${Qt}-selector`]:Object.assign(Object.assign({},It(zt)),Ze(zt)),[`${Qt}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},ft.vS),[`${Qt}-selection-placeholder`]:Object.assign(Object.assign({},ft.vS),{flex:1,color:zt.colorTextPlaceholder,pointerEvents:"none"}),[`${Qt}-arrow`]:Object.assign(Object.assign({},(0,ft.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:te,height:zt.fontSizeIcon,marginTop:-zt.fontSizeIcon/2,color:zt.colorTextQuaternary,fontSize:zt.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Ie]:{verticalAlign:"top",transition:`transform ${zt.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Qt}-suffix)`]:{pointerEvents:"auto"}},[`${Qt}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Qt}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:te,zIndex:1,display:"inline-block",width:zt.fontSizeIcon,height:zt.fontSizeIcon,marginTop:-zt.fontSizeIcon/2,color:zt.colorTextQuaternary,fontSize:zt.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:zt.clearBg,cursor:"pointer",opacity:0,transition:`color ${zt.motionDurationMid} ease, opacity ${zt.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:zt.colorTextTertiary}},"&:hover":{[`${Qt}-clear`]:{opacity:1}}}),[`${Qt}-has-feedback`]:{[`${Qt}-clear`]:{insetInlineEnd:te+zt.fontSize+zt.paddingXS}}}},be=zt=>{const{componentCls:Qt}=zt;return[{[Qt]:{[`&-borderless ${Qt}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Qt}-in-form-item`]:{width:"100%"}}},pe(zt),he(zt),we(zt),Nt(zt),{[`${Qt}-rtl`]:{direction:"rtl"}},ye(Qt,(0,$t.TS)(zt,{borderHoverColor:zt.colorPrimaryHover,outlineColor:zt.controlOutline})),ye(`${Qt}-status-error`,(0,$t.TS)(zt,{borderHoverColor:zt.colorErrorHover,outlineColor:zt.colorErrorOutline}),!0),ye(`${Qt}-status-warning`,(0,$t.TS)(zt,{borderHoverColor:zt.colorWarningHover,outlineColor:zt.colorWarningOutline}),!0),(0,Ft.c)(zt,{borderElCls:`${Qt}-selector`,focusElCls:`${Qt}-focused`})]};var Rt=(0,ne.Z)("Select",(zt,Qt)=>{let{rootPrefixCls:te}=Qt;const Ie=(0,$t.TS)(zt,{rootPrefixCls:te,inputPaddingHorizontalBase:zt.paddingSM-1,multipleSelectItemHeight:zt.multipleItemHeight});return[be(Ie)]},zt=>{const{fontSize:Qt,lineHeight:te,controlHeight:Ie,controlPaddingHorizontal:He,zIndexPopupBase:en,colorText:ie,fontWeightStrong:an,controlItemBgActive:nn,controlItemBgHover:Vn,colorBgContainer:Ne,colorFillSecondary:Ye,controlHeightLG:zn,controlHeightSM:Gn,colorBgContainerDisabled:Me,colorTextDisabled:_t}=zt;return{zIndexPopup:en+50,optionSelectedColor:ie,optionSelectedFontWeight:an,optionSelectedBg:nn,optionActiveBg:Vn,optionPadding:`${(Ie-Qt*te)/2}px ${He}px`,optionFontSize:Qt,optionLineHeight:te,optionHeight:Ie,selectorBg:Ne,clearBg:Ne,singleItemHeightLG:zn,multipleItemBg:Ye,multipleItemBorderColor:"transparent",multipleItemHeight:Gn,multipleItemHeightLG:Ie,multipleSelectorBgDisabled:Me,multipleItemColorDisabled:_t,multipleItemBorderColorDisabled:"transparent"}})},13458:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Ft}});const ft=$t=>{const Dt={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:$t==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},Dt),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Dt),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Dt),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Dt),{points:["br","tr"],offset:[0,-4]})}};function Ft($t,ne){return $t||ft(ne)}},78642:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return ft}});function ft(Ft,$t){return $t!==void 0?$t:Ft!==null}},46163:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return jt}});var ft=mt(18299),Ft=mt(16646),$t=mt(73475),ne=mt(42922),Dt=mt(3407),Ht=mt(72395),Wt=mt(67294);function jt(Nt){let{suffixIcon:Ut,clearIcon:De,menuItemSelectedIcon:Yt,removeIcon:de,loading:we,multiple:ue,hasFeedback:he,prefixCls:It,showSuffixIcon:ye,feedbackIcon:Ze,showArrow:pe,componentName:be}=Nt;const Rt=De!=null?De:Wt.createElement(Ft.Z,null),zt=He=>Ut===null&&!he&&!pe?null:Wt.createElement(Wt.Fragment,null,ye!==!1&&He,he&&Ze);let Qt=null;if(Ut!==void 0)Qt=zt(Ut);else if(we)Qt=zt(Wt.createElement(Dt.Z,{spin:!0}));else{const He=`${It}-suffix`;Qt=en=>{let{open:ie,showSearch:an}=en;return zt(ie&&an?Wt.createElement(Ht.Z,{className:He}):Wt.createElement(ne.Z,{className:He}))}}let te=null;Yt!==void 0?te=Yt:ue?te=Wt.createElement(ft.Z,null):te=null;let Ie=null;return de!==void 0?Ie=de:Ie=Wt.createElement($t.Z,null),{clearIcon:Rt,suffixIcon:Qt,itemIcon:te,removeIcon:Ie}}},46303:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Ct}});var ft=mt(94184),Ft=mt.n(ft),$t=mt(67294),ne=mt(53124),Dt=mt(10366),Wt=Pt=>{const{prefixCls:At,className:wt,style:Xt,size:Re,shape:We}=Pt,In=Ft()({[`${At}-lg`]:Re==="large",[`${At}-sm`]:Re==="small"}),Hn=Ft()({[`${At}-circle`]:We==="circle",[`${At}-square`]:We==="square",[`${At}-round`]:We==="round"}),Un=$t.useMemo(()=>typeof Re=="number"?{width:Re,height:Re,lineHeight:`${Re}px`}:{},[Re]);return $t.createElement("span",{className:Ft()(At,In,Hn,wt),style:Object.assign(Object.assign({},Un),Xt)})},jt=mt(34367),Nt=mt(67968),Ut=mt(45503);const De=new jt.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Yt=Pt=>({height:Pt,lineHeight:`${Pt}px`}),de=Pt=>Object.assign({width:Pt},Yt(Pt)),we=Pt=>({background:Pt.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:De,animationDuration:Pt.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),ue=Pt=>Object.assign({width:Pt*5,minWidth:Pt*5},Yt(Pt)),he=Pt=>{const{skeletonAvatarCls:At,gradientFromColor:wt,controlHeight:Xt,controlHeightLG:Re,controlHeightSM:We}=Pt;return{[`${At}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:wt},de(Xt)),[`${At}${At}-circle`]:{borderRadius:"50%"},[`${At}${At}-lg`]:Object.assign({},de(Re)),[`${At}${At}-sm`]:Object.assign({},de(We))}},It=Pt=>{const{controlHeight:At,borderRadiusSM:wt,skeletonInputCls:Xt,controlHeightLG:Re,controlHeightSM:We,gradientFromColor:In}=Pt;return{[`${Xt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:In,borderRadius:wt},ue(At)),[`${Xt}-lg`]:Object.assign({},ue(Re)),[`${Xt}-sm`]:Object.assign({},ue(We))}},ye=Pt=>Object.assign({width:Pt},Yt(Pt)),Ze=Pt=>{const{skeletonImageCls:At,imageSizeBase:wt,gradientFromColor:Xt,borderRadiusSM:Re}=Pt;return{[`${At}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Xt,borderRadius:Re},ye(wt*2)),{[`${At}-path`]:{fill:"#bfbfbf"},[`${At}-svg`]:Object.assign(Object.assign({},ye(wt)),{maxWidth:wt*4,maxHeight:wt*4}),[`${At}-svg${At}-svg-circle`]:{borderRadius:"50%"}}),[`${At}${At}-circle`]:{borderRadius:"50%"}}},pe=(Pt,At,wt)=>{const{skeletonButtonCls:Xt}=Pt;return{[`${wt}${Xt}-circle`]:{width:At,minWidth:At,borderRadius:"50%"},[`${wt}${Xt}-round`]:{borderRadius:At}}},be=Pt=>Object.assign({width:Pt*2,minWidth:Pt*2},Yt(Pt)),Rt=Pt=>{const{borderRadiusSM:At,skeletonButtonCls:wt,controlHeight:Xt,controlHeightLG:Re,controlHeightSM:We,gradientFromColor:In}=Pt;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${wt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:In,borderRadius:At,width:Xt*2,minWidth:Xt*2},be(Xt))},pe(Pt,Xt,wt)),{[`${wt}-lg`]:Object.assign({},be(Re))}),pe(Pt,Re,`${wt}-lg`)),{[`${wt}-sm`]:Object.assign({},be(We))}),pe(Pt,We,`${wt}-sm`))},zt=Pt=>{const{componentCls:At,skeletonAvatarCls:wt,skeletonTitleCls:Xt,skeletonParagraphCls:Re,skeletonButtonCls:We,skeletonInputCls:In,skeletonImageCls:Hn,controlHeight:Un,controlHeightLG:Yn,controlHeightSM:Fe,gradientFromColor:bn,padding:En,marginSM:Qn,borderRadius:Sn,titleHeight:Vi,blockRadius:Qe,paragraphLiHeight:Pn,controlHeightXS:Ci,paragraphMarginTop:yi}=Pt;return{[`${At}`]:{display:"table",width:"100%",[`${At}-header`]:{display:"table-cell",paddingInlineEnd:En,verticalAlign:"top",[`${wt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:bn},de(Un)),[`${wt}-circle`]:{borderRadius:"50%"},[`${wt}-lg`]:Object.assign({},de(Yn)),[`${wt}-sm`]:Object.assign({},de(Fe))},[`${At}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Xt}`]:{width:"100%",height:Vi,background:bn,borderRadius:Qe,[`+ ${Re}`]:{marginBlockStart:Fe}},[`${Re}`]:{padding:0,"> li":{width:"100%",height:Pn,listStyle:"none",background:bn,borderRadius:Qe,"+ li":{marginBlockStart:Ci}}},[`${Re}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${At}-content`]:{[`${Xt}, ${Re} > li`]:{borderRadius:Sn}}},[`${At}-with-avatar ${At}-content`]:{[`${Xt}`]:{marginBlockStart:Qn,[`+ ${Re}`]:{marginBlockStart:yi}}},[`${At}${At}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Rt(Pt)),he(Pt)),It(Pt)),Ze(Pt)),[`${At}${At}-block`]:{width:"100%",[`${We}`]:{width:"100%"},[`${In}`]:{width:"100%"}},[`${At}${At}-active`]:{[`
|
|
|
${Xt},
|
|
|
${Re} > li,
|
|
|
${wt},
|
|
|
${We},
|
|
|
${In},
|
|
|
${Hn}
|
|
|
`]:Object.assign({},we(Pt))}}};var Qt=(0,Nt.Z)("Skeleton",Pt=>{const{componentCls:At}=Pt,wt=(0,Ut.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[zt(wt)]},Pt=>{const{colorFillContent:At,colorFill:wt}=Pt,Xt=At,Re=wt;return{color:Xt,colorGradientEnd:Re,gradientFromColor:Xt,gradientToColor:Re,titleHeight:Pt.controlHeight/2,blockRadius:Pt.borderRadiusSM,paragraphMarginTop:Pt.marginLG+Pt.marginXXS,paragraphLiHeight:Pt.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Ie=Pt=>{const{prefixCls:At,className:wt,rootClassName:Xt,active:Re,shape:We="circle",size:In="default"}=Pt,{getPrefixCls:Hn}=$t.useContext(ne.E_),Un=Hn("skeleton",At),[Yn,Fe]=Qt(Un),bn=(0,Dt.Z)(Pt,["prefixCls","className"]),En=Ft()(Un,`${Un}-element`,{[`${Un}-active`]:Re},wt,Xt,Fe);return Yn($t.createElement("div",{className:En},$t.createElement(Wt,Object.assign({prefixCls:`${Un}-avatar`,shape:We,size:In},bn))))},en=Pt=>{const{prefixCls:At,className:wt,rootClassName:Xt,active:Re,block:We=!1,size:In="default"}=Pt,{getPrefixCls:Hn}=$t.useContext(ne.E_),Un=Hn("skeleton",At),[Yn,Fe]=Qt(Un),bn=(0,Dt.Z)(Pt,["prefixCls"]),En=Ft()(Un,`${Un}-element`,{[`${Un}-active`]:Re,[`${Un}-block`]:We},wt,Xt,Fe);return Yn($t.createElement("div",{className:En},$t.createElement(Wt,Object.assign({prefixCls:`${Un}-button`,size:In},bn))))};const ie="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 nn=Pt=>{const{prefixCls:At,className:wt,rootClassName:Xt,style:Re,active:We}=Pt,{getPrefixCls:In}=$t.useContext(ne.E_),Hn=In("skeleton",At),[Un,Yn]=Qt(Hn),Fe=Ft()(Hn,`${Hn}-element`,{[`${Hn}-active`]:We},wt,Xt,Yn);return Un($t.createElement("div",{className:Fe},$t.createElement("div",{className:Ft()(`${Hn}-image`,wt),style:Re},$t.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Hn}-image-svg`},$t.createElement("path",{d:ie,className:`${Hn}-image-path`})))))},Ne=Pt=>{const{prefixCls:At,className:wt,rootClassName:Xt,active:Re,block:We,size:In="default"}=Pt,{getPrefixCls:Hn}=$t.useContext(ne.E_),Un=Hn("skeleton",At),[Yn,Fe]=Qt(Un),bn=(0,Dt.Z)(Pt,["prefixCls"]),En=Ft()(Un,`${Un}-element`,{[`${Un}-active`]:Re,[`${Un}-block`]:We},wt,Xt,Fe);return Yn($t.createElement("div",{className:En},$t.createElement(Wt,Object.assign({prefixCls:`${Un}-input`,size:In},bn))))},Ye=mt(87462),zn={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"},Gn=zn,Me=mt(84089),_t=function(At,wt){return $t.createElement(Me.Z,(0,Ye.Z)({},At,{ref:wt,icon:Gn}))},rn=$t.forwardRef(_t),vn=Pt=>{const{prefixCls:At,className:wt,rootClassName:Xt,style:Re,active:We,children:In}=Pt,{getPrefixCls:Hn}=$t.useContext(ne.E_),Un=Hn("skeleton",At),[Yn,Fe]=Qt(Un),bn=Ft()(Un,`${Un}-element`,{[`${Un}-active`]:We},Fe,wt,Xt),En=In!=null?In:$t.createElement(rn,null);return Yn($t.createElement("div",{className:bn},$t.createElement("div",{className:Ft()(`${Un}-image`,wt),style:Re},En)))},ze=mt(74902),On=Pt=>{const At=Hn=>{const{width:Un,rows:Yn=2}=Pt;if(Array.isArray(Un))return Un[Hn];if(Yn-1===Hn)return Un},{prefixCls:wt,className:Xt,style:Re,rows:We}=Pt,In=(0,ze.Z)(Array(We)).map((Hn,Un)=>$t.createElement("li",{key:Un,style:{width:At(Un)}}));return $t.createElement("ul",{className:Ft()(wt,Xt),style:Re},In)},gi=Pt=>{let{prefixCls:At,className:wt,width:Xt,style:Re}=Pt;return $t.createElement("h3",{className:Ft()(At,wt),style:Object.assign({width:Xt},Re)})};function Dn(Pt){return Pt&&typeof Pt=="object"?Pt:{}}function Jn(Pt,At){return Pt&&!At?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Ai(Pt,At){return!Pt&&At?{width:"38%"}:Pt&&At?{width:"50%"}:{}}function hi(Pt,At){const wt={};return(!Pt||!At)&&(wt.width="61%"),!Pt&&At?wt.rows=3:wt.rows=2,wt}const qt=Pt=>{const{prefixCls:At,loading:wt,className:Xt,rootClassName:Re,style:We,children:In,avatar:Hn=!1,title:Un=!0,paragraph:Yn=!0,active:Fe,round:bn}=Pt,{getPrefixCls:En,direction:Qn,skeleton:Sn}=$t.useContext(ne.E_),Vi=En("skeleton",At),[Qe,Pn]=Qt(Vi);if(wt||!("loading"in Pt)){const Ci=!!Hn,yi=!!Un,Oi=!!Yn;let ar;if(Ci){const cr=Object.assign(Object.assign({prefixCls:`${Vi}-avatar`},Jn(yi,Oi)),Dn(Hn));ar=$t.createElement("div",{className:`${Vi}-header`},$t.createElement(Wt,Object.assign({},cr)))}let br;if(yi||Oi){let cr;if(yi){const ir=Object.assign(Object.assign({prefixCls:`${Vi}-title`},Ai(Ci,Oi)),Dn(Un));cr=$t.createElement(gi,Object.assign({},ir))}let Ar;if(Oi){const ir=Object.assign(Object.assign({prefixCls:`${Vi}-paragraph`},hi(Ci,yi)),Dn(Yn));Ar=$t.createElement(On,Object.assign({},ir))}br=$t.createElement("div",{className:`${Vi}-content`},cr,Ar)}const wr=Ft()(Vi,{[`${Vi}-with-avatar`]:Ci,[`${Vi}-active`]:Fe,[`${Vi}-rtl`]:Qn==="rtl",[`${Vi}-round`]:bn},Sn==null?void 0:Sn.className,Xt,Re,Pn);return Qe($t.createElement("div",{className:wr,style:Object.assign(Object.assign({},Sn==null?void 0:Sn.style),We)},ar,br))}return typeof In!="undefined"?In:null};qt.Button=en,qt.Avatar=Ie,qt.Input=Ne,qt.Image=nn,qt.Node=vn;var kt=qt,Ct=kt},55054:function(jn,tn,mt){"use strict";mt.d(tn,{default:function(){return Qt}});var ft=mt(67294),Ft=mt(57838),$t=mt(96159),ne=mt(94184),Dt=mt.n(ne),Ht=mt(53124),Wt=mt(46303),Nt=te=>{const{value:Ie,formatter:He,precision:en,decimalSeparator:ie,groupSeparator:an="",prefixCls:nn}=te;let Vn;if(typeof He=="function")Vn=He(Ie);else{const Ne=String(Ie),Ye=Ne.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Ye||Ne==="-")Vn=Ne;else{const zn=Ye[1];let Gn=Ye[2]||"0",Me=Ye[4]||"";Gn=Gn.replace(/\B(?=(\d{3})+(?!\d))/g,an),typeof en=="number"&&(Me=Me.padEnd(en,"0").slice(0,en>0?en:0)),Me&&(Me=`${ie}${Me}`),Vn=[ft.createElement("span",{key:"int",className:`${nn}-content-value-int`},zn,Gn),Me&&ft.createElement("span",{key:"decimal",className:`${nn}-content-value-decimal`},Me)]}}return ft.createElement("span",{className:`${nn}-content-value`},Vn)},Ut=mt(14747),De=mt(67968),Yt=mt(45503);const de=te=>{const{componentCls:Ie,marginXXS:He,padding:en,colorTextDescription:ie,titleFontSize:an,colorTextHeading:nn,contentFontSize:Vn,fontFamily:Ne}=te;return{[`${Ie}`]:Object.assign(Object.assign({},(0,Ut.Wf)(te)),{[`${Ie}-title`]:{marginBottom:He,color:ie,fontSize:an},[`${Ie}-skeleton`]:{paddingTop:en},[`${Ie}-content`]:{color:nn,fontSize:Vn,fontFamily:Ne,[`${Ie}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Ie}-content-prefix, ${Ie}-content-suffix`]:{display:"inline-block"},[`${Ie}-content-prefix`]:{marginInlineEnd:He},[`${Ie}-content-suffix`]:{marginInlineStart:He}}})}};var we=(0,De.Z)("Statistic",te=>{const Ie=(0,Yt.TS)(te,{});return[de(Ie)]},te=>{const{fontSizeHeading3:Ie,fontSize:He}=te;return{titleFontSize:He,contentFontSize:Ie}}),he=te=>{const{prefixCls:Ie,className:He,rootClassName:en,style:ie,valueStyle:an,value:nn=0,title:Vn,valueRender:Ne,prefix:Ye,suffix:zn,loading:Gn=!1,onMouseEnter:Me,onMouseLeave:_t,decimalSeparator:rn=".",groupSeparator:ti=","}=te,{getPrefixCls:vn,direction:ze,statistic:on}=ft.useContext(Ht.E_),On=vn("statistic",Ie),[Ni,gi]=we(On),Dn=ft.createElement(Nt,Object.assign({decimalSeparator:rn,groupSeparator:ti,prefixCls:On},te,{value:nn})),Jn=Dt()(On,{[`${On}-rtl`]:ze==="rtl"},on==null?void 0:on.className,He,en,gi);return Ni(ft.createElement("div",{className:Jn,style:Object.assign(Object.assign({},on==null?void 0:on.style),ie),onMouseEnter:Me,onMouseLeave:_t},Vn&&ft.createElement("div",{className:`${On}-title`},Vn),ft.createElement(Wt.Z,{paragraph:!1,loading:Gn,className:`${On}-skeleton`},ft.createElement("div",{style:an,className:`${On}-content`},Ye&&ft.createElement("span",{className:`${On}-content-prefix`},Ye),Ne?Ne(Dn):Dn,zn&&ft.createElement("span",{className:`${On}-content-suffix`},zn)))))};const It=[["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 ye(te,Ie){let He=te;const en=/\[[^\]]*]/g,ie=(Ie.match(en)||[]).map(Ne=>Ne.slice(1,-1)),an=Ie.replace(en,"[]"),nn=It.reduce((Ne,Ye)=>{let[zn,Gn]=Ye;if(Ne.includes(zn)){const Me=Math.floor(He/Gn);return He-=Me*Gn,Ne.replace(new RegExp(`${zn}+`,"g"),_t=>{const rn=_t.length;return Me.toString().padStart(rn,"0")})}return Ne},an);let Vn=0;return nn.replace(en,()=>{const Ne=ie[Vn];return Vn+=1,Ne})}function Ze(te,Ie){const{format:He=""}=Ie,en=new Date(te).getTime(),ie=Date.now(),an=Math.max(en-ie,0);return ye(an,He)}const pe=1e3/30;function be(te){return new Date(te).getTime()}const Rt=te=>{const{value:Ie,format:He="HH:mm:ss",onChange:en,onFinish:ie}=te,an=(0,Ft.Z)(),nn=ft.useRef(null),Vn=()=>{ie==null||ie(),nn.current&&(clearInterval(nn.current),nn.current=null)},Ne=()=>{const Gn=be(Ie);Gn>=Date.now()&&(nn.current=setInterval(()=>{an(),en==null||en(Gn-Date.now()),Gn<Date.now()&&Vn()},pe))};ft.useEffect(()=>(Ne(),()=>{nn.current&&(clearInterval(nn.current),nn.current=null)}),[Ie]);const Ye=(Gn,Me)=>Ze(Gn,Object.assign(Object.assign({},Me),{format:He})),zn=Gn=>(0,$t.Tm)(Gn,{title:void 0});return ft.createElement(he,Object.assign({},te,{valueRender:zn,formatter:Ye}))};var zt=ft.memo(Rt);he.Countdown=zt;var Qt=he},33507:function(jn,tn){"use strict";const mt=ft=>({[ft.componentCls]:{[`${ft.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${ft.motionDurationMid} ${ft.motionEaseInOut},
|
|
|
opacity ${ft.motionDurationMid} ${ft.motionEaseInOut} !important`}},[`${ft.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${ft.motionDurationMid} ${ft.motionEaseInOut},
|
|
|
opacity ${ft.motionDurationMid} ${ft.motionEaseInOut} !important`}}});tn.Z=mt},33297:function(jn,tn,mt){"use strict";mt.d(tn,{Fm:function(){return Yt}});var ft=mt(34367),Ft=mt(93590);const $t=new ft.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ne=new ft.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Dt=new ft.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ht=new ft.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Wt=new ft.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),jt=new ft.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Nt=new ft.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ut=new ft.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),De={"move-up":{inKeyframes:Nt,outKeyframes:Ut},"move-down":{inKeyframes:$t,outKeyframes:ne},"move-left":{inKeyframes:Dt,outKeyframes:Ht},"move-right":{inKeyframes:Wt,outKeyframes:jt}},Yt=(de,we)=>{const{antCls:ue}=de,he=`${ue}-${we}`,{inKeyframes:It,outKeyframes:ye}=De[we];return[(0,Ft.R)(he,It,ye,de.motionDurationMid),{[`
|
|
|
${he}-enter,
|
|
|
${he}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:de.motionEaseOutCirc},[`${he}-leave`]:{animationTimingFunction:de.motionEaseInOutCirc}}]}},67771:function(jn,tn,mt){"use strict";mt.d(tn,{Qt:function(){return Dt},Uw:function(){return ne},fJ:function(){return $t},ly:function(){return Ht},oN:function(){return Yt}});var ft=mt(34367),Ft=mt(93590);const $t=new ft.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ne=new ft.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Dt=new ft.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Ht=new ft.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Wt=new ft.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),jt=new ft.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Nt=new ft.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Ut=new ft.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),De={"slide-up":{inKeyframes:$t,outKeyframes:ne},"slide-down":{inKeyframes:Dt,outKeyframes:Ht},"slide-left":{inKeyframes:Wt,outKeyframes:jt},"slide-right":{inKeyframes:Nt,outKeyframes:Ut}},Yt=(de,we)=>{const{antCls:ue}=de,he=`${ue}-${we}`,{inKeyframes:It,outKeyframes:ye}=De[we];return[(0,Ft.R)(he,It,ye,de.motionDurationMid),{[`
|
|
|
${he}-enter,
|
|
|
${he}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:de.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${he}-leave`]:{animationTimingFunction:de.motionEaseInQuint}}]}},47897:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Pt}});var ft=mt(3407),Ft=mt(94184),$t=mt.n(Ft);function ne(){return ne=Object.assign?Object.assign.bind():function(At){for(var wt=1;wt<arguments.length;wt++){var Xt=arguments[wt];for(var Re in Xt)Object.prototype.hasOwnProperty.call(Xt,Re)&&(At[Re]=Xt[Re])}return At},ne.apply(this,arguments)}function Dt(At){"@babel/helpers - typeof";return Dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(wt){return typeof wt}:function(wt){return wt&&typeof Symbol=="function"&&wt.constructor===Symbol&&wt!==Symbol.prototype?"symbol":typeof wt},Dt(At)}function Ht(At,wt){if(Dt(At)!=="object"||At===null)return At;var Xt=At[Symbol.toPrimitive];if(Xt!==void 0){var Re=Xt.call(At,wt||"default");if(Dt(Re)!=="object")return Re;throw new TypeError("@@toPrimitive must return a primitive value.")}return(wt==="string"?String:Number)(At)}function Wt(At){var wt=Ht(At,"string");return Dt(wt)==="symbol"?wt:String(wt)}function jt(At,wt,Xt){return wt=Wt(wt),wt in At?Object.defineProperty(At,wt,{value:Xt,enumerable:!0,configurable:!0,writable:!0}):At[wt]=Xt,At}function Nt(At){if(Array.isArray(At))return At}function Ut(At,wt){var Xt=At==null?null:typeof Symbol!="undefined"&&At[Symbol.iterator]||At["@@iterator"];if(Xt!=null){var Re,We,In,Hn,Un=[],Yn=!0,Fe=!1;try{if(In=(Xt=Xt.call(At)).next,wt===0){if(Object(Xt)!==Xt)return;Yn=!1}else for(;!(Yn=(Re=In.call(Xt)).done)&&(Un.push(Re.value),Un.length!==wt);Yn=!0);}catch(bn){Fe=!0,We=bn}finally{try{if(!Yn&&Xt.return!=null&&(Hn=Xt.return(),Object(Hn)!==Hn))return}finally{if(Fe)throw We}}return Un}}function De(At,wt){(wt==null||wt>At.length)&&(wt=At.length);for(var Xt=0,Re=new Array(wt);Xt<wt;Xt++)Re[Xt]=At[Xt];return Re}function Yt(At,wt){if(At){if(typeof At=="string")return De(At,wt);var Xt=Object.prototype.toString.call(At).slice(8,-1);if(Xt==="Object"&&At.constructor&&(Xt=At.constructor.name),Xt==="Map"||Xt==="Set")return Array.from(At);if(Xt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Xt))return De(At,wt)}}function de(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function we(At,wt){return Nt(At)||Ut(At,wt)||Yt(At,wt)||de()}function ue(At,wt){if(At==null)return{};var Xt={},Re=Object.keys(At),We,In;for(In=0;In<Re.length;In++)We=Re[In],!(wt.indexOf(We)>=0)&&(Xt[We]=At[We]);return Xt}function he(At,wt){if(At==null)return{};var Xt=ue(At,wt),Re,We;if(Object.getOwnPropertySymbols){var In=Object.getOwnPropertySymbols(At);for(We=0;We<In.length;We++)Re=In[We],!(wt.indexOf(Re)>=0)&&Object.prototype.propertyIsEnumerable.call(At,Re)&&(Xt[Re]=At[Re])}return Xt}var It=mt(67294);function ye(At){if(Array.isArray(At))return At}function Ze(At,wt){var Xt=At==null?null:typeof Symbol!="undefined"&&At[Symbol.iterator]||At["@@iterator"];if(Xt!=null){var Re,We,In,Hn,Un=[],Yn=!0,Fe=!1;try{if(In=(Xt=Xt.call(At)).next,wt===0){if(Object(Xt)!==Xt)return;Yn=!1}else for(;!(Yn=(Re=In.call(Xt)).done)&&(Un.push(Re.value),Un.length!==wt);Yn=!0);}catch(bn){Fe=!0,We=bn}finally{try{if(!Yn&&Xt.return!=null&&(Hn=Xt.return(),Object(Hn)!==Hn))return}finally{if(Fe)throw We}}return Un}}function pe(At,wt){(wt==null||wt>At.length)&&(wt=At.length);for(var Xt=0,Re=new Array(wt);Xt<wt;Xt++)Re[Xt]=At[Xt];return Re}function be(At,wt){if(At){if(typeof At=="string")return pe(At,wt);var Xt=Object.prototype.toString.call(At).slice(8,-1);if(Xt==="Object"&&At.constructor&&(Xt=At.constructor.name),Xt==="Map"||Xt==="Set")return Array.from(At);if(Xt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Xt))return pe(At,wt)}}function Rt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zt(At,wt){return ye(At)||Ze(At,wt)||be(At,wt)||Rt()}function Qt(At){var wt=It.useRef();wt.current=At;var Xt=It.useCallback(function(){for(var Re,We=arguments.length,In=new Array(We),Hn=0;Hn<We;Hn++)In[Hn]=arguments[Hn];return(Re=wt.current)===null||Re===void 0?void 0:Re.call.apply(Re,[wt].concat(In))},[]);return Xt}function te(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ie=te()?It.useLayoutEffect:It.useEffect,He=function(wt,Xt){var Re=It.useRef(!0);Ie(function(){return wt(Re.current)},Xt),Ie(function(){return Re.current=!1,function(){Re.current=!0}},[])},en=function(wt,Xt){He(function(Re){if(!Re)return wt()},Xt)},ie=null;function an(At){var wt=It.useRef(!1),Xt=It.useState(At),Re=zt(Xt,2),We=Re[0],In=Re[1];It.useEffect(function(){return wt.current=!1,function(){wt.current=!0}},[]);function Hn(Un,Yn){Yn&&wt.current||In(Un)}return[We,Hn]}function nn(At){return At!==void 0}function Vn(At,wt){var Xt=wt||{},Re=Xt.defaultValue,We=Xt.value,In=Xt.onChange,Hn=Xt.postState,Un=an(function(){return nn(We)?We:nn(Re)?typeof Re=="function"?Re():Re:typeof At=="function"?At():At}),Yn=zt(Un,2),Fe=Yn[0],bn=Yn[1],En=We!==void 0?We:Fe,Qn=Hn?Hn(En):En,Sn=Qt(In),Vi=an([En]),Qe=zt(Vi,2),Pn=Qe[0],Ci=Qe[1];en(function(){var Oi=Pn[0];Fe!==Oi&&Sn(Fe,Oi)},[Pn]),en(function(){nn(We)||bn(We)},[We]);var yi=Qt(function(Oi,ar){bn(Oi,ar),Ci([En],ar)});return[Qn,yi]}var Ne={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(wt){var Xt=wt.keyCode;if(wt.altKey&&!wt.ctrlKey||wt.metaKey||Xt>=Ne.F1&&Xt<=Ne.F12)return!1;switch(Xt){case Ne.ALT:case Ne.CAPS_LOCK:case Ne.CONTEXT_MENU:case Ne.CTRL:case Ne.DOWN:case Ne.END:case Ne.ESC:case Ne.HOME:case Ne.INSERT:case Ne.LEFT:case Ne.MAC_FF_META:case Ne.META:case Ne.NUMLOCK:case Ne.NUM_CENTER:case Ne.PAGE_DOWN:case Ne.PAGE_UP:case Ne.PAUSE:case Ne.PRINT_SCREEN:case Ne.RIGHT:case Ne.SHIFT:case Ne.UP:case Ne.WIN_KEY:case Ne.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(wt){if(wt>=Ne.ZERO&&wt<=Ne.NINE||wt>=Ne.NUM_ZERO&&wt<=Ne.NUM_MULTIPLY||wt>=Ne.A&&wt<=Ne.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&wt===0)return!0;switch(wt){case Ne.SPACE:case Ne.QUESTION_MARK:case Ne.NUM_PLUS:case Ne.NUM_MINUS:case Ne.NUM_PERIOD:case Ne.NUM_DIVISION:case Ne.SEMICOLON:case Ne.DASH:case Ne.EQUALS:case Ne.COMMA:case Ne.PERIOD:case Ne.SLASH:case Ne.APOSTROPHE:case Ne.SINGLE_QUOTE:case Ne.OPEN_SQUARE_BRACKET:case Ne.BACKSLASH:case Ne.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ye=Ne,zn=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Gn=It.forwardRef(function(At,wt){var Xt,Re=At.prefixCls,We=Re===void 0?"rc-switch":Re,In=At.className,Hn=At.checked,Un=At.defaultChecked,Yn=At.disabled,Fe=At.loadingIcon,bn=At.checkedChildren,En=At.unCheckedChildren,Qn=At.onClick,Sn=At.onChange,Vi=At.onKeyDown,Qe=he(At,zn),Pn=Vn(!1,{value:Hn,defaultValue:Un}),Ci=we(Pn,2),yi=Ci[0],Oi=Ci[1];function ar(Ar,ir){var kr=yi;return Yn||(kr=Ar,Oi(kr),Sn==null||Sn(kr,ir)),kr}function br(Ar){Ar.which===Ye.LEFT?ar(!1,Ar):Ar.which===Ye.RIGHT&&ar(!0,Ar),Vi==null||Vi(Ar)}function wr(Ar){var ir=ar(!yi,Ar);Qn==null||Qn(ir,Ar)}var cr=$t()(We,In,(Xt={},jt(Xt,"".concat(We,"-checked"),yi),jt(Xt,"".concat(We,"-disabled"),Yn),Xt));return It.createElement("button",ne({},Qe,{type:"button",role:"switch","aria-checked":yi,disabled:Yn,className:cr,ref:wt,onKeyDown:br,onClick:wr}),Fe,It.createElement("span",{className:"".concat(We,"-inner")},It.createElement("span",{className:"".concat(We,"-inner-checked")},bn),It.createElement("span",{className:"".concat(We,"-inner-unchecked")},En)))});Gn.displayName="Switch";var Me=Gn,_t=mt(45353),rn=mt(53124),ti=mt(98866),vn=mt(98675),ze=mt(84780),on=mt(14747),On=mt(67968),Ni=mt(45503);const gi=At=>{const{componentCls:wt,trackHeightSM:Xt,trackPadding:Re,trackMinWidthSM:We,innerMinMarginSM:In,innerMaxMarginSM:Hn,handleSizeSM:Un}=At,Yn=`${wt}-inner`;return{[wt]:{[`&${wt}-small`]:{minWidth:We,height:Xt,lineHeight:`${Xt}px`,[`${wt}-inner`]:{paddingInlineStart:Hn,paddingInlineEnd:In,[`${Yn}-checked`]:{marginInlineStart:`calc(-100% + ${Un+Re*2}px - ${Hn*2}px)`,marginInlineEnd:`calc(100% - ${Un+Re*2}px + ${Hn*2}px)`},[`${Yn}-unchecked`]:{marginTop:-Xt,marginInlineStart:0,marginInlineEnd:0}},[`${wt}-handle`]:{width:Un,height:Un},[`${wt}-loading-icon`]:{top:(Un-At.switchLoadingIconSize)/2,fontSize:At.switchLoadingIconSize},[`&${wt}-checked`]:{[`${wt}-inner`]:{paddingInlineStart:In,paddingInlineEnd:Hn,[`${Yn}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Yn}-unchecked`]:{marginInlineStart:`calc(100% - ${Un+Re*2}px + ${Hn*2}px)`,marginInlineEnd:`calc(-100% + ${Un+Re*2}px - ${Hn*2}px)`}},[`${wt}-handle`]:{insetInlineStart:`calc(100% - ${Un+Re}px)`}},[`&:not(${wt}-disabled):active`]:{[`&:not(${wt}-checked) ${Yn}`]:{[`${Yn}-unchecked`]:{marginInlineStart:At.marginXXS/2,marginInlineEnd:-At.marginXXS/2}},[`&${wt}-checked ${Yn}`]:{[`${Yn}-checked`]:{marginInlineStart:-At.marginXXS/2,marginInlineEnd:At.marginXXS/2}}}}}}},Dn=At=>{const{componentCls:wt,handleSize:Xt}=At;return{[wt]:{[`${wt}-loading-icon${At.iconCls}`]:{position:"relative",top:(Xt-At.fontSize)/2,color:At.switchLoadingIconColor,verticalAlign:"top"},[`&${wt}-checked ${wt}-loading-icon`]:{color:At.switchColor}}}},Jn=At=>{const{componentCls:wt,motion:Xt,trackPadding:Re,handleBg:We,handleShadow:In,handleSize:Hn}=At,Un=`${wt}-handle`;return{[wt]:{[Un]:{position:"absolute",top:Re,insetInlineStart:Re,width:Hn,height:Hn,transition:`all ${At.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:We,borderRadius:Hn/2,boxShadow:In,transition:`all ${At.switchDuration} ease-in-out`,content:'""'}},[`&${wt}-checked ${Un}`]:{insetInlineStart:`calc(100% - ${Hn+Re}px)`},[`&:not(${wt}-disabled):active`]:Xt?{[`${Un}::before`]:{insetInlineEnd:At.switchHandleActiveInset,insetInlineStart:0},[`&${wt}-checked ${Un}::before`]:{insetInlineEnd:0,insetInlineStart:At.switchHandleActiveInset}}:{}}}},Ai=At=>{const{componentCls:wt,trackHeight:Xt,trackPadding:Re,innerMinMargin:We,innerMaxMargin:In,handleSize:Hn}=At,Un=`${wt}-inner`;return{[wt]:{[Un]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:In,paddingInlineEnd:We,transition:`padding-inline-start ${At.switchDuration} ease-in-out, padding-inline-end ${At.switchDuration} ease-in-out`,[`${Un}-checked, ${Un}-unchecked`]:{display:"block",color:At.colorTextLightSolid,fontSize:At.fontSizeSM,transition:`margin-inline-start ${At.switchDuration} ease-in-out, margin-inline-end ${At.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Un}-checked`]:{marginInlineStart:`calc(-100% + ${Hn+Re*2}px - ${In*2}px)`,marginInlineEnd:`calc(100% - ${Hn+Re*2}px + ${In*2}px)`},[`${Un}-unchecked`]:{marginTop:-Xt,marginInlineStart:0,marginInlineEnd:0}},[`&${wt}-checked ${Un}`]:{paddingInlineStart:We,paddingInlineEnd:In,[`${Un}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Un}-unchecked`]:{marginInlineStart:`calc(100% - ${Hn+Re*2}px + ${In*2}px)`,marginInlineEnd:`calc(-100% + ${Hn+Re*2}px - ${In*2}px)`}},[`&:not(${wt}-disabled):active`]:{[`&:not(${wt}-checked) ${Un}`]:{[`${Un}-unchecked`]:{marginInlineStart:Re*2,marginInlineEnd:-Re*2}},[`&${wt}-checked ${Un}`]:{[`${Un}-checked`]:{marginInlineStart:-Re*2,marginInlineEnd:Re*2}}}}}},hi=At=>{const{componentCls:wt,trackHeight:Xt,trackMinWidth:Re}=At;return{[wt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,on.Wf)(At)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Re,height:Xt,lineHeight:`${Xt}px`,verticalAlign:"middle",background:At.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${At.motionDurationMid}`,userSelect:"none",[`&:hover:not(${wt}-disabled)`]:{background:At.colorTextTertiary}}),(0,on.Qy)(At)),{[`&${wt}-checked`]:{background:At.switchColor,[`&:hover:not(${wt}-disabled)`]:{background:At.colorPrimaryHover}},[`&${wt}-loading, &${wt}-disabled`]:{cursor:"not-allowed",opacity:At.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${wt}-rtl`]:{direction:"rtl"}})}};var qt=(0,On.Z)("Switch",At=>{const wt=(0,Ni.TS)(At,{switchDuration:At.motionDurationMid,switchColor:At.colorPrimary,switchDisabledOpacity:At.opacityLoading,switchLoadingIconSize:At.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${At.opacityLoading})`,switchHandleActiveInset:"-30%"});return[hi(wt),Ai(wt),Jn(wt),Dn(wt),gi(wt)]},At=>{const{fontSize:wt,lineHeight:Xt,controlHeight:Re,colorWhite:We}=At,In=wt*Xt,Hn=Re/2,Un=2,Yn=In-Un*2,Fe=Hn-Un*2;return{trackHeight:In,trackHeightSM:Hn,trackMinWidth:Yn*2+Un*4,trackMinWidthSM:Fe*2+Un*2,trackPadding:Un,handleBg:We,handleSize:Yn,handleSizeSM:Fe,handleShadow:`0 2px 4px 0 ${new ze.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Yn/2,innerMaxMargin:Yn+Un+Un*2,innerMinMarginSM:Fe/2,innerMaxMarginSM:Fe+Un+Un*2}}),kt=function(At,wt){var Xt={};for(var Re in At)Object.prototype.hasOwnProperty.call(At,Re)&&wt.indexOf(Re)<0&&(Xt[Re]=At[Re]);if(At!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Re=Object.getOwnPropertySymbols(At);We<Re.length;We++)wt.indexOf(Re[We])<0&&Object.prototype.propertyIsEnumerable.call(At,Re[We])&&(Xt[Re[We]]=At[Re[We]]);return Xt};const Ct=It.forwardRef((At,wt)=>{const{prefixCls:Xt,size:Re,disabled:We,loading:In,className:Hn,rootClassName:Un,style:Yn}=At,Fe=kt(At,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:bn,direction:En,switch:Qn}=It.useContext(rn.E_),Sn=It.useContext(ti.Z),Vi=(We!=null?We:Sn)||In,Qe=bn("switch",Xt),Pn=It.createElement("div",{className:`${Qe}-handle`},In&&It.createElement(ft.Z,{className:`${Qe}-loading-icon`})),[Ci,yi]=qt(Qe),Oi=(0,vn.Z)(Re),ar=$t()(Qn==null?void 0:Qn.className,{[`${Qe}-small`]:Oi==="small",[`${Qe}-loading`]:In,[`${Qe}-rtl`]:En==="rtl"},Hn,Un,yi),br=Object.assign(Object.assign({},Qn==null?void 0:Qn.style),Yn);return Ci(It.createElement(_t.Z,{component:"Switch"},It.createElement(Me,Object.assign({},Fe,{prefixCls:Qe,className:ar,style:br,disabled:Vi,ref:wt,loadingIcon:Pn}))))});Ct.__ANT_SWITCH=!0;var Pt=Ct},66368:function(jn,tn,mt){"use strict";mt.d(tn,{default:function(){return Fi}});var ft=mt(73475),Ft=mt(25877),$t=mt(38308),ne=mt(94184),Dt=mt.n(ne),Ht=mt(87462),Wt=mt(4942),jt=mt(1413),Nt=mt(97685),Ut=mt(71002),De=mt(45987),Yt=mt(67294),de=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Tt=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Tt)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Tt==null?void 0:Tt.substr(0,4))};function we(Tt){var ee=Yt.useRef();ee.current=Tt;var le=Yt.useCallback(function(){for(var xe,fe=arguments.length,Ee=new Array(fe),Ae=0;Ae<fe;Ae++)Ee[Ae]=arguments[Ae];return(xe=ee.current)===null||xe===void 0?void 0:xe.call.apply(xe,[ee].concat(Ee))},[]);return le}function ue(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var he=ue()?Yt.useLayoutEffect:Yt.useEffect,It=function(ee,le){var xe=Yt.useRef(!0);he(function(){return ee(xe.current)},le),he(function(){return xe.current=!1,function(){xe.current=!0}},[])},ye=function(ee,le){It(function(xe){if(!xe)return ee()},le)},Ze=null;function pe(Tt){var ee=Yt.useRef(!1),le=Yt.useState(Tt),xe=(0,Nt.Z)(le,2),fe=xe[0],Ee=xe[1];Yt.useEffect(function(){return ee.current=!1,function(){ee.current=!0}},[]);function Ae(yn,Rn){Rn&&ee.current||Ee(yn)}return[fe,Ae]}function be(Tt){return Tt!==void 0}function Rt(Tt,ee){var le=ee||{},xe=le.defaultValue,fe=le.value,Ee=le.onChange,Ae=le.postState,yn=pe(function(){return be(fe)?fe:be(xe)?typeof xe=="function"?xe():xe:typeof Tt=="function"?Tt():Tt}),Rn=(0,Nt.Z)(yn,2),Pi=Rn[0],An=Rn[1],Mi=fe!==void 0?fe:Pi,pi=Ae?Ae(Mi):Mi,di=we(Ee),Wn=pe([Mi]),Bi=(0,Nt.Z)(Wn,2),sr=Bi[0],_i=Bi[1];ye(function(){var qi=sr[0];Pi!==qi&&di(Pi,qi)},[sr]),ye(function(){be(fe)||An(fe)},[fe]);var Ui=we(function(qi,lr){An(qi,lr),_i([Mi],lr)});return[pi,Ui]}var zt=mt(62874),Qt=(0,Yt.createContext)(null),te=Yt.forwardRef(function(Tt,ee){var le=Tt.prefixCls,xe=Tt.className,fe=Tt.style,Ee=Tt.id,Ae=Tt.active,yn=Tt.tabKey,Rn=Tt.children;return Yt.createElement("div",{id:Ee&&"".concat(Ee,"-panel-").concat(yn),role:"tabpanel",tabIndex:Ae?0:-1,"aria-labelledby":Ee&&"".concat(Ee,"-tab-").concat(yn),"aria-hidden":!Ae,style:fe,className:Dt()(le,Ae&&"".concat(le,"-active"),xe),ref:ee},Rn)}),Ie=te,He=["key","forceRender","style","className"];function en(Tt){var ee=Tt.id,le=Tt.activeKey,xe=Tt.animated,fe=Tt.tabPosition,Ee=Tt.destroyInactiveTabPane,Ae=Yt.useContext(Qt),yn=Ae.prefixCls,Rn=Ae.tabs,Pi=xe.tabPane,An="".concat(yn,"-tabpane");return Yt.createElement("div",{className:Dt()("".concat(yn,"-content-holder"))},Yt.createElement("div",{className:Dt()("".concat(yn,"-content"),"".concat(yn,"-content-").concat(fe),(0,Wt.Z)({},"".concat(yn,"-content-animated"),Pi))},Rn.map(function(Mi){var pi=Mi.key,di=Mi.forceRender,Wn=Mi.style,Bi=Mi.className,sr=(0,De.Z)(Mi,He),_i=pi===le;return Yt.createElement(zt.Z,(0,Ht.Z)({key:pi,visible:_i,forceRender:di,removeOnLeave:!!Ee,leavedClassName:"".concat(An,"-hidden")},xe.tabPaneMotion),function(Ui,qi){var lr=Ui.style,je=Ui.className;return Yt.createElement(Ie,(0,Ht.Z)({},sr,{prefixCls:An,id:ee,tabKey:pi,animated:Pi,active:_i,style:(0,jt.Z)((0,jt.Z)({},Wn),lr),className:Dt()(Bi,je),ref:qi}))})})))}var ie=mt(74902),an=mt(48555),nn=mt(59864);function Vn(Tt,ee,le){var xe=Yt.useRef({});return(!("value"in xe.current)||le(xe.current.condition,ee))&&(xe.current.value=Tt(),xe.current.condition=ee),xe.current.value}function Ne(Tt,ee){typeof Tt=="function"?Tt(ee):(0,Ut.Z)(Tt)==="object"&&Tt&&"current"in Tt&&(Tt.current=ee)}function Ye(){for(var Tt=arguments.length,ee=new Array(Tt),le=0;le<Tt;le++)ee[le]=arguments[le];var xe=ee.filter(function(fe){return fe});return xe.length<=1?xe[0]:function(fe){ee.forEach(function(Ee){Ne(Ee,fe)})}}function zn(){for(var Tt=arguments.length,ee=new Array(Tt),le=0;le<Tt;le++)ee[le]=arguments[le];return Vn(function(){return Ye.apply(void 0,ee)},ee,function(xe,fe){return xe.length===fe.length&&xe.every(function(Ee,Ae){return Ee===fe[Ae]})})}function Gn(Tt){var ee,le,xe=isMemo(Tt)?Tt.type.type:Tt.type;return!(typeof xe=="function"&&!((ee=xe.prototype)!==null&&ee!==void 0&&ee.render)||typeof Tt=="function"&&!((le=Tt.prototype)!==null&&le!==void 0&&le.render))}var Me={width:0,height:0,left:0,top:0};function _t(Tt,ee,le){return(0,Yt.useMemo)(function(){for(var xe,fe=new Map,Ee=ee.get((xe=Tt[0])===null||xe===void 0?void 0:xe.key)||Me,Ae=Ee.left+Ee.width,yn=0;yn<Tt.length;yn+=1){var Rn=Tt[yn].key,Pi=ee.get(Rn);if(!Pi){var An;Pi=ee.get((An=Tt[yn-1])===null||An===void 0?void 0:An.key)||Me}var Mi=fe.get(Rn)||(0,jt.Z)({},Pi);Mi.right=Ae-Mi.left-Mi.width,fe.set(Rn,Mi)}return fe},[Tt.map(function(xe){return xe.key}).join("_"),ee,le])}function rn(Tt,ee){var le=Yt.useRef(Tt),xe=Yt.useState({}),fe=(0,Nt.Z)(xe,2),Ee=fe[1];function Ae(yn){var Rn=typeof yn=="function"?yn(le.current):yn;Rn!==le.current&&ee(Rn,le.current),le.current=Rn,Ee({})}return[le.current,Ae]}var ti=.1,vn=.01,ze=20,on=Math.pow(.995,ze);function On(Tt,ee){var le=(0,Yt.useState)(),xe=(0,Nt.Z)(le,2),fe=xe[0],Ee=xe[1],Ae=(0,Yt.useState)(0),yn=(0,Nt.Z)(Ae,2),Rn=yn[0],Pi=yn[1],An=(0,Yt.useState)(0),Mi=(0,Nt.Z)(An,2),pi=Mi[0],di=Mi[1],Wn=(0,Yt.useState)(),Bi=(0,Nt.Z)(Wn,2),sr=Bi[0],_i=Bi[1],Ui=(0,Yt.useRef)();function qi(cn){var ni=cn.touches[0],Ti=ni.screenX,qe=ni.screenY;Ee({x:Ti,y:qe}),window.clearInterval(Ui.current)}function lr(cn){if(fe){cn.preventDefault();var ni=cn.touches[0],Ti=ni.screenX,qe=ni.screenY;Ee({x:Ti,y:qe});var Je=Ti-fe.x,sn=qe-fe.y;ee(Je,sn);var hn=Date.now();Pi(hn),di(hn-Rn),_i({x:Je,y:sn})}}function je(){if(fe&&(Ee(null),_i(null),sr)){var cn=sr.x/pi,ni=sr.y/pi,Ti=Math.abs(cn),qe=Math.abs(ni);if(Math.max(Ti,qe)<ti)return;var Je=cn,sn=ni;Ui.current=window.setInterval(function(){if(Math.abs(Je)<vn&&Math.abs(sn)<vn){window.clearInterval(Ui.current);return}Je*=on,sn*=on,ee(Je*ze,sn*ze)},ze)}}var ve=(0,Yt.useRef)();function ke(cn){var ni=cn.deltaX,Ti=cn.deltaY,qe=0,Je=Math.abs(ni),sn=Math.abs(Ti);Je===sn?qe=ve.current==="x"?ni:Ti:Je>sn?(qe=ni,ve.current="x"):(qe=Ti,ve.current="y"),ee(-qe,-qe)&&cn.preventDefault()}var xn=(0,Yt.useRef)(null);xn.current={onTouchStart:qi,onTouchMove:lr,onTouchEnd:je,onWheel:ke},Yt.useEffect(function(){function cn(Je){xn.current.onTouchStart(Je)}function ni(Je){xn.current.onTouchMove(Je)}function Ti(Je){xn.current.onTouchEnd(Je)}function qe(Je){xn.current.onWheel(Je)}return document.addEventListener("touchmove",ni,{passive:!1}),document.addEventListener("touchend",Ti,{passive:!1}),Tt.current.addEventListener("touchstart",cn,{passive:!1}),Tt.current.addEventListener("wheel",qe),function(){document.removeEventListener("touchmove",ni),document.removeEventListener("touchend",Ti)}},[])}function Ni(Tt){var ee=(0,Yt.useState)(0),le=(0,Nt.Z)(ee,2),xe=le[0],fe=le[1],Ee=(0,Yt.useRef)(0),Ae=(0,Yt.useRef)();return Ae.current=Tt,ye(function(){var yn;(yn=Ae.current)===null||yn===void 0||yn.call(Ae)},[xe]),function(){Ee.current===xe&&(Ee.current+=1,fe(Ee.current))}}function gi(Tt){var ee=(0,Yt.useRef)([]),le=(0,Yt.useState)({}),xe=(0,Nt.Z)(le,2),fe=xe[1],Ee=(0,Yt.useRef)(typeof Tt=="function"?Tt():Tt),Ae=Ni(function(){var Rn=Ee.current;ee.current.forEach(function(Pi){Rn=Pi(Rn)}),ee.current=[],Ee.current=Rn,fe({})});function yn(Rn){ee.current.push(Rn),Ae()}return[Ee.current,yn]}var Dn={width:0,height:0,left:0,top:0,right:0};function Jn(Tt,ee,le,xe,fe,Ee,Ae){var yn=Ae.tabs,Rn=Ae.tabPosition,Pi=Ae.rtl,An,Mi,pi;return["top","bottom"].includes(Rn)?(An="width",Mi=Pi?"right":"left",pi=Math.abs(le)):(An="height",Mi="top",pi=-le),(0,Yt.useMemo)(function(){if(!yn.length)return[0,0];for(var di=yn.length,Wn=di,Bi=0;Bi<di;Bi+=1){var sr=Tt.get(yn[Bi].key)||Dn;if(sr[Mi]+sr[An]>pi+ee){Wn=Bi-1;break}}for(var _i=0,Ui=di-1;Ui>=0;Ui-=1){var qi=Tt.get(yn[Ui].key)||Dn;if(qi[Mi]<pi){_i=Ui+1;break}}return _i>=Wn?[0,0]:[_i,Wn]},[Tt,ee,xe,fe,Ee,pi,Rn,yn.map(function(di){return di.key}).join("_"),Pi])}function Ai(Tt){var ee;return Tt instanceof Map?(ee={},Tt.forEach(function(le,xe){ee[xe]=le})):ee=Tt,JSON.stringify(ee)}var hi="TABS_DQ";function qt(Tt){return String(Tt).replace(/"/g,hi)}function kt(Tt,ee,le,xe){return!(!le||xe||Tt===!1||Tt===void 0&&(ee===!1||ee===null))}function Ct(Tt,ee){var le=Tt.prefixCls,xe=Tt.editable,fe=Tt.locale,Ee=Tt.style;return!xe||xe.showAdd===!1?null:Yt.createElement("button",{ref:ee,type:"button",className:"".concat(le,"-nav-add"),style:Ee,"aria-label":(fe==null?void 0:fe.addAriaLabel)||"Add tab",onClick:function(yn){xe.onEdit("add",{event:yn})}},xe.addIcon||"+")}var Pt=Yt.forwardRef(Ct),At=Yt.forwardRef(function(Tt,ee){var le=Tt.position,xe=Tt.prefixCls,fe=Tt.extra;if(!fe)return null;var Ee,Ae={};return(0,Ut.Z)(fe)==="object"&&!Yt.isValidElement(fe)?Ae=fe:Ae.right=fe,le==="right"&&(Ee=Ae.right),le==="left"&&(Ee=Ae.left),Ee?Yt.createElement("div",{className:"".concat(xe,"-extra-content"),ref:ee},Ee):null}),wt=At,Xt=mt(62709);function Re(Tt,ee,le){var xe=React.useRef({});return(!("value"in xe.current)||le(xe.current.condition,ee))&&(xe.current.value=Tt(),xe.current.condition=ee),xe.current.value}function We(Tt,ee){typeof Tt=="function"?Tt(ee):(0,Ut.Z)(Tt)==="object"&&Tt&&"current"in Tt&&(Tt.current=ee)}function In(){for(var Tt=arguments.length,ee=new Array(Tt),le=0;le<Tt;le++)ee[le]=arguments[le];var xe=ee.filter(function(fe){return fe});return xe.length<=1?xe[0]:function(fe){ee.forEach(function(Ee){We(Ee,fe)})}}function Hn(){for(var Tt=arguments.length,ee=new Array(Tt),le=0;le<Tt;le++)ee[le]=arguments[le];return useMemo(function(){return In.apply(void 0,ee)},ee,function(xe,fe){return xe.length===fe.length&&xe.every(function(Ee,Ae){return Ee===fe[Ae]})})}function Un(Tt){var ee,le,xe=(0,nn.isMemo)(Tt)?Tt.type.type:Tt.type;return!(typeof xe=="function"&&!((ee=xe.prototype)!==null&&ee!==void 0&&ee.render)||typeof Tt=="function"&&!((le=Tt.prototype)!==null&&le!==void 0&&le.render))}var Yn={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ee){var le=ee.keyCode;if(ee.altKey&&!ee.ctrlKey||ee.metaKey||le>=Yn.F1&&le<=Yn.F12)return!1;switch(le){case Yn.ALT:case Yn.CAPS_LOCK:case Yn.CONTEXT_MENU:case Yn.CTRL:case Yn.DOWN:case Yn.END:case Yn.ESC:case Yn.HOME:case Yn.INSERT:case Yn.LEFT:case Yn.MAC_FF_META:case Yn.META:case Yn.NUMLOCK:case Yn.NUM_CENTER:case Yn.PAGE_DOWN:case Yn.PAGE_UP:case Yn.PAUSE:case Yn.PRINT_SCREEN:case Yn.RIGHT:case Yn.SHIFT:case Yn.UP:case Yn.WIN_KEY:case Yn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ee){if(ee>=Yn.ZERO&&ee<=Yn.NINE||ee>=Yn.NUM_ZERO&&ee<=Yn.NUM_MULTIPLY||ee>=Yn.A&&ee<=Yn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ee===0)return!0;switch(ee){case Yn.SPACE:case Yn.QUESTION_MARK:case Yn.NUM_PLUS:case Yn.NUM_MINUS:case Yn.NUM_PERIOD:case Yn.NUM_DIVISION:case Yn.SEMICOLON:case Yn.DASH:case Yn.EQUALS:case Yn.COMMA:case Yn.PERIOD:case Yn.SLASH:case Yn.APOSTROPHE:case Yn.SINGLE_QUOTE:case Yn.OPEN_SQUARE_BRACKET:case Yn.BACKSLASH:case Yn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Fe=Yn,bn=function(ee){return+setTimeout(ee,16)},En=function(ee){return clearTimeout(ee)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(bn=function(ee){return window.requestAnimationFrame(ee)},En=function(ee){return window.cancelAnimationFrame(ee)});var Qn=0,Sn=new Map;function Vi(Tt){Sn.delete(Tt)}var Qe=function(ee){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Qn+=1;var xe=Qn;function fe(Ee){if(Ee===0)Vi(xe),ee();else{var Ae=bn(function(){fe(Ee-1)});Sn.set(xe,Ae)}}return fe(le),xe};Qe.cancel=function(Tt){var ee=Sn.get(Tt);return Vi(ee),En(ee)};var Pn=Qe,Ci=Fe.ESC,yi=Fe.TAB;function Oi(Tt){var ee=Tt.visible,le=Tt.triggerRef,xe=Tt.onVisibleChange,fe=Tt.autoFocus,Ee=Tt.overlayRef,Ae=Yt.useRef(!1),yn=function(){if(ee){var Mi,pi;(Mi=le.current)===null||Mi===void 0||(pi=Mi.focus)===null||pi===void 0||pi.call(Mi),xe==null||xe(!1)}},Rn=function(){var Mi;return(Mi=Ee.current)!==null&&Mi!==void 0&&Mi.focus?(Ee.current.focus(),Ae.current=!0,!0):!1},Pi=function(Mi){switch(Mi.keyCode){case Ci:yn();break;case yi:{var pi=!1;Ae.current||(pi=Rn()),pi?Mi.preventDefault():yn();break}}};Yt.useEffect(function(){return ee?(window.addEventListener("keydown",Pi),fe&&Pn(Rn,3),function(){window.removeEventListener("keydown",Pi),Ae.current=!1}):function(){Ae.current=!1}},[ee])}var ar=(0,Yt.forwardRef)(function(Tt,ee){var le=Tt.overlay,xe=Tt.arrow,fe=Tt.prefixCls,Ee=(0,Yt.useMemo)(function(){var yn;return typeof le=="function"?yn=le():yn=le,yn},[le]),Ae=In(ee,Ee==null?void 0:Ee.ref);return Yt.createElement(Yt.Fragment,null,xe&&Yt.createElement("div",{className:"".concat(fe,"-arrow")}),Yt.cloneElement(Ee,{ref:Un(Ee)?Ae:void 0}))}),br=ar,wr={adjustX:1,adjustY:1},cr=[0,0],Ar={topLeft:{points:["bl","tl"],overflow:wr,offset:[0,-4],targetOffset:cr},top:{points:["bc","tc"],overflow:wr,offset:[0,-4],targetOffset:cr},topRight:{points:["br","tr"],overflow:wr,offset:[0,-4],targetOffset:cr},bottomLeft:{points:["tl","bl"],overflow:wr,offset:[0,4],targetOffset:cr},bottom:{points:["tc","bc"],overflow:wr,offset:[0,4],targetOffset:cr},bottomRight:{points:["tr","br"],overflow:wr,offset:[0,4],targetOffset:cr}},ir=Ar,kr=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function po(Tt,ee){var le,xe=Tt.arrow,fe=xe===void 0?!1:xe,Ee=Tt.prefixCls,Ae=Ee===void 0?"rc-dropdown":Ee,yn=Tt.transitionName,Rn=Tt.animation,Pi=Tt.align,An=Tt.placement,Mi=An===void 0?"bottomLeft":An,pi=Tt.placements,di=pi===void 0?ir:pi,Wn=Tt.getPopupContainer,Bi=Tt.showAction,sr=Tt.hideAction,_i=Tt.overlayClassName,Ui=Tt.overlayStyle,qi=Tt.visible,lr=Tt.trigger,je=lr===void 0?["hover"]:lr,ve=Tt.autoFocus,ke=Tt.overlay,xn=Tt.children,cn=Tt.onVisibleChange,ni=(0,De.Z)(Tt,kr),Ti=Yt.useState(),qe=(0,Nt.Z)(Ti,2),Je=qe[0],sn=qe[1],hn="visible"in Tt?qi:Je,bi=Yt.useRef(null),zi=Yt.useRef(null),li=Yt.useRef(null);Yt.useImperativeHandle(ee,function(){return bi.current});var Kn=function(Qi){sn(Qi),cn==null||cn(Qi)};Oi({visible:hn,triggerRef:li,onVisibleChange:Kn,autoFocus:ve,overlayRef:zi});var ur=function(Qi){var Ir=Tt.onOverlayClick;sn(!1),Ir&&Ir(Qi)},Ln=function(){return Yt.createElement(br,{ref:zi,overlay:ke,prefixCls:Ae,arrow:fe})},wn=function(){return typeof ke=="function"?Ln:Ln()},_n=function(){var Qi=Tt.minOverlayWidthMatchTrigger,Ir=Tt.alignPoint;return"minOverlayWidthMatchTrigger"in Tt?Qi:!Ir},Ei=function(){var Qi=Tt.openClassName;return Qi!==void 0?Qi:"".concat(Ae,"-open")},gn=Yt.cloneElement(xn,{className:Dt()((le=xn.props)===null||le===void 0?void 0:le.className,hn&&Ei()),ref:Un(xn)?In(li,xn.ref):void 0}),Ji=sr;return!Ji&&je.indexOf("contextMenu")!==-1&&(Ji=["click"]),Yt.createElement(Xt.Z,(0,Ht.Z)({builtinPlacements:di},ni,{prefixCls:Ae,ref:bi,popupClassName:Dt()(_i,(0,Wt.Z)({},"".concat(Ae,"-show-arrow"),fe)),popupStyle:Ui,action:je,showAction:Bi,hideAction:Ji,popupPlacement:Mi,popupAlign:Pi,popupTransitionName:yn,popupAnimation:Rn,popupVisible:hn,stretch:_n()?"minWidth":"",popup:wn(),onPopupVisibleChange:Kn,onPopupClick:ur,getPopupContainer:Wn}),gn)}var So=Yt.forwardRef(po),Eo=So,Yr=mt(78595),Mn={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ee){var le=ee.keyCode;if(ee.altKey&&!ee.ctrlKey||ee.metaKey||le>=Mn.F1&&le<=Mn.F12)return!1;switch(le){case Mn.ALT:case Mn.CAPS_LOCK:case Mn.CONTEXT_MENU:case Mn.CTRL:case Mn.DOWN:case Mn.END:case Mn.ESC:case Mn.HOME:case Mn.INSERT:case Mn.LEFT:case Mn.MAC_FF_META:case Mn.META:case Mn.NUMLOCK:case Mn.NUM_CENTER:case Mn.PAGE_DOWN:case Mn.PAGE_UP:case Mn.PAUSE:case Mn.PRINT_SCREEN:case Mn.RIGHT:case Mn.SHIFT:case Mn.UP:case Mn.WIN_KEY:case Mn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ee){if(ee>=Mn.ZERO&&ee<=Mn.NINE||ee>=Mn.NUM_ZERO&&ee<=Mn.NUM_MULTIPLY||ee>=Mn.A&&ee<=Mn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ee===0)return!0;switch(ee){case Mn.SPACE:case Mn.QUESTION_MARK:case Mn.NUM_PLUS:case Mn.NUM_MINUS:case Mn.NUM_PERIOD:case Mn.NUM_DIVISION:case Mn.SEMICOLON:case Mn.DASH:case Mn.EQUALS:case Mn.COMMA:case Mn.PERIOD:case Mn.SLASH:case Mn.APOSTROPHE:case Mn.SINGLE_QUOTE:case Mn.OPEN_SQUARE_BRACKET:case Mn.BACKSLASH:case Mn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},St=Mn;function Zi(Tt,ee){var le=Tt.prefixCls,xe=Tt.id,fe=Tt.tabs,Ee=Tt.locale,Ae=Tt.mobile,yn=Tt.moreIcon,Rn=yn===void 0?"More":yn,Pi=Tt.moreTransitionName,An=Tt.style,Mi=Tt.className,pi=Tt.editable,di=Tt.tabBarGutter,Wn=Tt.rtl,Bi=Tt.removeAriaLabel,sr=Tt.onTabClick,_i=Tt.getPopupContainer,Ui=Tt.popupClassName,qi=(0,Yt.useState)(!1),lr=(0,Nt.Z)(qi,2),je=lr[0],ve=lr[1],ke=(0,Yt.useState)(null),xn=(0,Nt.Z)(ke,2),cn=xn[0],ni=xn[1],Ti="".concat(xe,"-more-popup"),qe="".concat(le,"-dropdown"),Je=cn!==null?"".concat(Ti,"-").concat(cn):null,sn=Ee==null?void 0:Ee.dropdownAriaLabel;function hn(wn,_n){wn.preventDefault(),wn.stopPropagation(),pi.onEdit("remove",{key:_n,event:wn})}var bi=Yt.createElement(Yr.ZP,{onClick:function(_n){var Ei=_n.key,gn=_n.domEvent;sr(Ei,gn),ve(!1)},prefixCls:"".concat(qe,"-menu"),id:Ti,tabIndex:-1,role:"listbox","aria-activedescendant":Je,selectedKeys:[cn],"aria-label":sn!==void 0?sn:"expanded dropdown"},fe.map(function(wn){var _n=wn.closable,Ei=wn.disabled,gn=wn.closeIcon,Ji=wn.key,er=wn.label,Qi=kt(_n,gn,pi,Ei);return Yt.createElement(Yr.sN,{key:Ji,id:"".concat(Ti,"-").concat(Ji),role:"option","aria-controls":xe&&"".concat(xe,"-panel-").concat(Ji),disabled:Ei},Yt.createElement("span",null,er),Qi&&Yt.createElement("button",{type:"button","aria-label":Bi||"remove",tabIndex:0,className:"".concat(qe,"-menu-item-remove"),onClick:function(Fr){Fr.stopPropagation(),hn(Fr,Ji)}},gn||pi.removeIcon||"\xD7"))}));function zi(wn){for(var _n=fe.filter(function(Qi){return!Qi.disabled}),Ei=_n.findIndex(function(Qi){return Qi.key===cn})||0,gn=_n.length,Ji=0;Ji<gn;Ji+=1){Ei=(Ei+wn+gn)%gn;var er=_n[Ei];if(!er.disabled){ni(er.key);return}}}function li(wn){var _n=wn.which;if(!je){[St.DOWN,St.SPACE,St.ENTER].includes(_n)&&(ve(!0),wn.preventDefault());return}switch(_n){case St.UP:zi(-1),wn.preventDefault();break;case St.DOWN:zi(1),wn.preventDefault();break;case St.ESC:ve(!1);break;case St.SPACE:case St.ENTER:cn!==null&&sr(cn,wn);break}}(0,Yt.useEffect)(function(){var wn=document.getElementById(Je);wn&&wn.scrollIntoView&&wn.scrollIntoView(!1)},[cn]),(0,Yt.useEffect)(function(){je||ni(null)},[je]);var Kn=(0,Wt.Z)({},Wn?"marginRight":"marginLeft",di);fe.length||(Kn.visibility="hidden",Kn.order=1);var ur=Dt()((0,Wt.Z)({},"".concat(qe,"-rtl"),Wn)),Ln=Ae?null:Yt.createElement(Eo,{prefixCls:qe,overlay:bi,trigger:["hover"],visible:fe.length?je:!1,transitionName:Pi,onVisibleChange:ve,overlayClassName:Dt()(ur,Ui),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:_i},Yt.createElement("button",{type:"button",className:"".concat(le,"-nav-more"),style:Kn,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Ti,id:"".concat(xe,"-more"),"aria-expanded":je,onKeyDown:li},Rn));return Yt.createElement("div",{className:Dt()("".concat(le,"-nav-operations"),Mi),style:An,ref:ee},Ln,Yt.createElement(Pt,{prefixCls:le,locale:Ee,editable:pi}))}var mi=Yt.memo(Yt.forwardRef(Zi),function(Tt,ee){return ee.tabMoving});function rr(Tt){var ee,le=Tt.prefixCls,xe=Tt.id,fe=Tt.active,Ee=Tt.tab,Ae=Ee.key,yn=Ee.label,Rn=Ee.disabled,Pi=Ee.closeIcon,An=Tt.closable,Mi=Tt.renderWrapper,pi=Tt.removeAriaLabel,di=Tt.editable,Wn=Tt.onClick,Bi=Tt.onFocus,sr=Tt.style,_i="".concat(le,"-tab"),Ui=kt(An,Pi,di,Rn);function qi(ve){Rn||Wn(ve)}function lr(ve){ve.preventDefault(),ve.stopPropagation(),di.onEdit("remove",{key:Ae,event:ve})}var je=Yt.createElement("div",{key:Ae,"data-node-key":qt(Ae),className:Dt()(_i,(ee={},(0,Wt.Z)(ee,"".concat(_i,"-with-remove"),Ui),(0,Wt.Z)(ee,"".concat(_i,"-active"),fe),(0,Wt.Z)(ee,"".concat(_i,"-disabled"),Rn),ee)),style:sr,onClick:qi},Yt.createElement("div",{role:"tab","aria-selected":fe,id:xe&&"".concat(xe,"-tab-").concat(Ae),className:"".concat(_i,"-btn"),"aria-controls":xe&&"".concat(xe,"-panel-").concat(Ae),"aria-disabled":Rn,tabIndex:Rn?null:0,onClick:function(ke){ke.stopPropagation(),qi(ke)},onKeyDown:function(ke){[St.SPACE,St.ENTER].includes(ke.which)&&(ke.preventDefault(),qi(ke))},onFocus:Bi},yn),Ui&&Yt.createElement("button",{type:"button","aria-label":pi||"remove",tabIndex:0,className:"".concat(_i,"-remove"),onClick:function(ke){ke.stopPropagation(),lr(ke)}},Pi||di.removeIcon||"\xD7"));return Mi?Mi(je):je}var fr=rr,pr=function(ee){return+setTimeout(ee,16)},tr=function(ee){return clearTimeout(ee)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(pr=function(ee){return window.requestAnimationFrame(ee)},tr=function(ee){return window.cancelAnimationFrame(ee)});var Xe=0,mn=new Map;function Tn(Tt){mn.delete(Tt)}var Nn=function(ee){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Xe+=1;var xe=Xe;function fe(Ee){if(Ee===0)Tn(xe),ee();else{var Ae=pr(function(){fe(Ee-1)});mn.set(xe,Ae)}}return fe(le),xe};Nn.cancel=function(Tt){var ee=mn.get(Tt);return Tn(ee),tr(ee)};var ge=Nn,Cn=function(ee){var le=ee.activeTabOffset,xe=ee.horizontal,fe=ee.rtl,Ee=ee.indicatorSize,Ae=(0,Yt.useState)(),yn=(0,Nt.Z)(Ae,2),Rn=yn[0],Pi=yn[1],An=(0,Yt.useRef)(),Mi=function(Wn){return typeof Ee=="function"?Ee(Wn):typeof Ee=="number"?Ee:Wn};function pi(){ge.cancel(An.current)}return(0,Yt.useEffect)(function(){var di={};return le&&(xe?(fe?(di.right=le.right+le.width/2,di.transform="translateX(50%)"):(di.left=le.left+le.width/2,di.transform="translateX(-50%)"),di.width=Mi(le.width)):(di.top=le.top+le.height/2,di.transform="translateY(-50%)",di.height=Mi(le.height))),pi(),An.current=ge(function(){Pi(di)}),pi},[le,xe,fe,Ee]),{style:Rn}},ai=Cn,Te=function(ee){var le=ee.current||{},xe=le.offsetWidth,fe=xe===void 0?0:xe,Ee=le.offsetHeight,Ae=Ee===void 0?0:Ee;return[fe,Ae]},ce=function(ee,le){return ee[le?0:1]};function Oe(Tt,ee){var le,xe=Yt.useContext(Qt),fe=xe.prefixCls,Ee=xe.tabs,Ae=Tt.className,yn=Tt.style,Rn=Tt.id,Pi=Tt.animated,An=Tt.activeKey,Mi=Tt.rtl,pi=Tt.extra,di=Tt.editable,Wn=Tt.locale,Bi=Tt.tabPosition,sr=Tt.tabBarGutter,_i=Tt.children,Ui=Tt.onTabClick,qi=Tt.onTabScroll,lr=Tt.indicatorSize,je=(0,Yt.useRef)(),ve=(0,Yt.useRef)(),ke=(0,Yt.useRef)(),xn=(0,Yt.useRef)(),cn=(0,Yt.useRef)(),ni=(0,Yt.useRef)(),Ti=(0,Yt.useRef)(),qe=Bi==="top"||Bi==="bottom",Je=rn(0,function(ps,zo){qe&&qi&&qi({direction:ps>zo?"left":"right"})}),sn=(0,Nt.Z)(Je,2),hn=sn[0],bi=sn[1],zi=rn(0,function(ps,zo){!qe&&qi&&qi({direction:ps>zo?"top":"bottom"})}),li=(0,Nt.Z)(zi,2),Kn=li[0],ur=li[1],Ln=(0,Yt.useState)([0,0]),wn=(0,Nt.Z)(Ln,2),_n=wn[0],Ei=wn[1],gn=(0,Yt.useState)([0,0]),Ji=(0,Nt.Z)(gn,2),er=Ji[0],Qi=Ji[1],Ir=(0,Yt.useState)([0,0]),Fr=(0,Nt.Z)(Ir,2),yr=Fr[0],xo=Fr[1],No=(0,Yt.useState)([0,0]),mo=(0,Nt.Z)(No,2),oo=mo[0],to=mo[1],Io=gi(new Map),so=(0,Nt.Z)(Io,2),Zr=so[0],Oo=so[1],Uo=_t(Ee,Zr,er[0]),Ls=ce(_n,qe),bs=ce(er,qe),ms=ce(yr,qe),ds=ce(oo,qe),es=Ls<bs+ms,jo=es?Ls-ds:Ls-ms,Is="".concat(fe,"-nav-operations-hidden"),Yo=0,Lo=0;qe&&Mi?(Yo=0,Lo=Math.max(0,bs-jo)):(Yo=Math.min(0,jo-bs),Lo=0);function Ao(ps){return ps<Yo?Yo:ps>Lo?Lo:ps}var Ps=(0,Yt.useRef)(),os=(0,Yt.useState)(),xs=(0,Nt.Z)(os,2),Vo=xs[0],fs=xs[1];function gs(){fs(Date.now())}function is(){window.clearTimeout(Ps.current)}On(xn,function(ps,zo){function Fo(ys,Ys){ys(function(us){var Ha=Ao(us+Ys);return Ha})}return es?(qe?Fo(bi,ps):Fo(ur,zo),is(),gs(),!0):!1}),(0,Yt.useEffect)(function(){return is(),Vo&&(Ps.current=window.setTimeout(function(){fs(0)},100)),is},[Vo]);var vs=Jn(Uo,jo,qe?hn:Kn,bs,ms,ds,(0,jt.Z)((0,jt.Z)({},Tt),{},{tabs:Ee})),Hs=(0,Nt.Z)(vs,2),ua=Hs[0],ss=Hs[1],_s=we(function(){var ps=arguments.length>0&&arguments[0]!==void 0?arguments[0]:An,zo=Uo.get(ps)||{width:0,height:0,left:0,right:0,top:0};if(qe){var Fo=hn;Mi?zo.right<hn?Fo=zo.right:zo.right+zo.width>hn+jo&&(Fo=zo.right+zo.width-jo):zo.left<-hn?Fo=-zo.left:zo.left+zo.width>-hn+jo&&(Fo=-(zo.left+zo.width-jo)),ur(0),bi(Ao(Fo))}else{var ys=Kn;zo.top<-Kn?ys=-zo.top:zo.top+zo.height>-Kn+jo&&(ys=-(zo.top+zo.height-jo)),bi(0),ur(Ao(ys))}}),Ea={};Bi==="top"||Bi==="bottom"?Ea[Mi?"marginRight":"marginLeft"]=sr:Ea.marginTop=sr;var ya=Ee.map(function(ps,zo){var Fo=ps.key;return Yt.createElement(fr,{id:Rn,prefixCls:fe,key:Fo,tab:ps,style:zo===0?void 0:Ea,closable:ps.closable,editable:di,active:Fo===An,renderWrapper:_i,removeAriaLabel:Wn==null?void 0:Wn.removeAriaLabel,onClick:function(Ys){Ui(Fo,Ys)},onFocus:function(){_s(Fo),gs(),xn.current&&(Mi||(xn.current.scrollLeft=0),xn.current.scrollTop=0)}})}),Hr=function(){return Oo(function(){var zo=new Map;return Ee.forEach(function(Fo){var ys,Ys=Fo.key,us=(ys=cn.current)===null||ys===void 0?void 0:ys.querySelector('[data-node-key="'.concat(qt(Ys),'"]'));us&&zo.set(Ys,{width:us.offsetWidth,height:us.offsetHeight,left:us.offsetLeft,top:us.offsetTop})}),zo})};(0,Yt.useEffect)(function(){Hr()},[Ee.map(function(ps){return ps.key}).join("_")]);var na=Ni(function(){var ps=Te(je),zo=Te(ve),Fo=Te(ke);Ei([ps[0]-zo[0]-Fo[0],ps[1]-zo[1]-Fo[1]]);var ys=Te(Ti);xo(ys);var Ys=Te(ni);to(Ys);var us=Te(cn);Qi([us[0]-ys[0],us[1]-ys[1]]),Hr()}),Ke=Ee.slice(0,ua),ii=Ee.slice(ss+1),rs=[].concat((0,ie.Z)(Ke),(0,ie.Z)(ii)),Ns=Uo.get(An),Rs=ai({activeTabOffset:Ns,horizontal:qe,rtl:Mi,indicatorSize:lr}),Qs=Rs.style;(0,Yt.useEffect)(function(){_s()},[An,Yo,Lo,Ai(Ns),Ai(Uo),qe]),(0,Yt.useEffect)(function(){na()},[Mi]);var Na=!!rs.length,Ka="".concat(fe,"-nav-wrap"),vl,Bs,co,xa;return qe?Mi?(Bs=hn>0,vl=hn!==Lo):(vl=hn<0,Bs=hn!==Yo):(co=Kn<0,xa=Kn!==Yo),Yt.createElement(an.Z,{onResize:na},Yt.createElement("div",{ref:zn(ee,je),role:"tablist",className:Dt()("".concat(fe,"-nav"),Ae),style:yn,onKeyDown:function(){gs()}},Yt.createElement(wt,{ref:ve,position:"left",extra:pi,prefixCls:fe}),Yt.createElement(an.Z,{onResize:na},Yt.createElement("div",{className:Dt()(Ka,(le={},(0,Wt.Z)(le,"".concat(Ka,"-ping-left"),vl),(0,Wt.Z)(le,"".concat(Ka,"-ping-right"),Bs),(0,Wt.Z)(le,"".concat(Ka,"-ping-top"),co),(0,Wt.Z)(le,"".concat(Ka,"-ping-bottom"),xa),le)),ref:xn},Yt.createElement(an.Z,{onResize:na},Yt.createElement("div",{ref:cn,className:"".concat(fe,"-nav-list"),style:{transform:"translate(".concat(hn,"px, ").concat(Kn,"px)"),transition:Vo?"none":void 0}},ya,Yt.createElement(Pt,{ref:Ti,prefixCls:fe,locale:Wn,editable:di,style:(0,jt.Z)((0,jt.Z)({},ya.length===0?void 0:Ea),{},{visibility:Na?"hidden":null})}),Yt.createElement("div",{className:Dt()("".concat(fe,"-ink-bar"),(0,Wt.Z)({},"".concat(fe,"-ink-bar-animated"),Pi.inkBar)),style:Qs}))))),Yt.createElement(mi,(0,Ht.Z)({},Tt,{removeAriaLabel:Wn==null?void 0:Wn.removeAriaLabel,ref:ni,prefixCls:fe,tabs:rs,className:!Na&&Is,tabMoving:!!Vo})),Yt.createElement(wt,{ref:ke,position:"right",extra:pi,prefixCls:fe})))}var pn=Yt.forwardRef(Oe),fi=["renderTabBar"],$n=["label","key"];function _e(Tt){var ee=Tt.renderTabBar,le=(0,De.Z)(Tt,fi),xe=Yt.useContext(Qt),fe=xe.tabs;if(ee){var Ee=(0,jt.Z)((0,jt.Z)({},le),{},{panes:fe.map(function(Ae){var yn=Ae.label,Rn=Ae.key,Pi=(0,De.Z)(Ae,$n);return Yt.createElement(Ie,(0,Ht.Z)({tab:yn,key:Rn,tabKey:Rn},Pi))})});return ee(Ee,pn)}return Yt.createElement(pn,le)}var ri={},Ri=[],$e=function(ee){Ri.push(ee)};function Ge(Tt,ee){if(0)var le}function un(Tt,ee){if(0)var le}function xi(){ri={}}function Yi(Tt,ee,le){!ee&&!ri[le]&&(Tt(!1,le),ri[le]=!0)}function ci(Tt,ee){Yi(Ge,Tt,ee)}function Xn(Tt,ee){Yi(un,Tt,ee)}ci.preMessage=$e,ci.resetWarned=xi,ci.noteOnce=Xn;var qn=null;function Ki(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},ee;return Tt===!1?ee={inkBar:!1,tabPane:!1}:Tt===!0?ee={inkBar:!0,tabPane:!1}:ee=(0,jt.Z)({inkBar:!0},(0,Ut.Z)(Tt)==="object"?Tt:{}),ee.tabPaneMotion&&ee.tabPane===void 0&&(ee.tabPane=!0),!ee.tabPaneMotion&&ee.tabPane&&(ee.tabPane=!1),ee}var vr=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],ki=0;function Or(Tt,ee){var le,xe=Tt.id,fe=Tt.prefixCls,Ee=fe===void 0?"rc-tabs":fe,Ae=Tt.className,yn=Tt.items,Rn=Tt.direction,Pi=Tt.activeKey,An=Tt.defaultActiveKey,Mi=Tt.editable,pi=Tt.animated,di=Tt.tabPosition,Wn=di===void 0?"top":di,Bi=Tt.tabBarGutter,sr=Tt.tabBarStyle,_i=Tt.tabBarExtraContent,Ui=Tt.locale,qi=Tt.moreIcon,lr=Tt.moreTransitionName,je=Tt.destroyInactiveTabPane,ve=Tt.renderTabBar,ke=Tt.onChange,xn=Tt.onTabClick,cn=Tt.onTabScroll,ni=Tt.getPopupContainer,Ti=Tt.popupClassName,qe=Tt.indicatorSize,Je=(0,De.Z)(Tt,vr),sn=Yt.useMemo(function(){return(yn||[]).filter(function(to){return to&&(0,Ut.Z)(to)==="object"&&"key"in to})},[yn]),hn=Rn==="rtl",bi=Ki(pi),zi=(0,Yt.useState)(!1),li=(0,Nt.Z)(zi,2),Kn=li[0],ur=li[1];(0,Yt.useEffect)(function(){ur(de())},[]);var Ln=Rt(function(){var to;return(to=sn[0])===null||to===void 0?void 0:to.key},{value:Pi,defaultValue:An}),wn=(0,Nt.Z)(Ln,2),_n=wn[0],Ei=wn[1],gn=(0,Yt.useState)(function(){return sn.findIndex(function(to){return to.key===_n})}),Ji=(0,Nt.Z)(gn,2),er=Ji[0],Qi=Ji[1];(0,Yt.useEffect)(function(){var to=sn.findIndex(function(so){return so.key===_n});if(to===-1){var Io;to=Math.max(0,Math.min(er,sn.length-1)),Ei((Io=sn[to])===null||Io===void 0?void 0:Io.key)}Qi(to)},[sn.map(function(to){return to.key}).join("_"),_n,er]);var Ir=Rt(null,{value:xe}),Fr=(0,Nt.Z)(Ir,2),yr=Fr[0],xo=Fr[1];(0,Yt.useEffect)(function(){xe||(xo("rc-tabs-".concat(ki)),ki+=1)},[]);function No(to,Io){xn==null||xn(to,Io);var so=to!==_n;Ei(to),so&&(ke==null||ke(to))}var mo={id:yr,activeKey:_n,animated:bi,tabPosition:Wn,rtl:hn,mobile:Kn},oo=(0,jt.Z)((0,jt.Z)({},mo),{},{editable:Mi,locale:Ui,moreIcon:qi,moreTransitionName:lr,tabBarGutter:Bi,onTabClick:No,onTabScroll:cn,extra:_i,style:sr,panes:null,getPopupContainer:ni,popupClassName:Ti,indicatorSize:qe});return Yt.createElement(Qt.Provider,{value:{tabs:sn,prefixCls:Ee}},Yt.createElement("div",(0,Ht.Z)({ref:ee,id:xe,className:Dt()(Ee,"".concat(Ee,"-").concat(Wn),(le={},(0,Wt.Z)(le,"".concat(Ee,"-mobile"),Kn),(0,Wt.Z)(le,"".concat(Ee,"-editable"),Mi),(0,Wt.Z)(le,"".concat(Ee,"-rtl"),hn),le),Ae)},Je),Yt.createElement(_e,(0,Ht.Z)({},oo,{renderTabBar:ve})),Yt.createElement(en,(0,Ht.Z)({destroyInactiveTabPane:je},mo,{animated:bi}))))}var Ii=Yt.forwardRef(Or),ao=Ii,qr=ao,Do=mt(53124),ui=mt(98675),bo=()=>null,Kr=mt(33603);const wo={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Sr(Tt){let ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},le;return ee===!1?le={inkBar:!1,tabPane:!1}:ee===!0?le={inkBar:!0,tabPane:!0}:le=Object.assign({inkBar:!0},typeof ee=="object"?ee:{}),le.tabPane&&(le.tabPaneMotion=Object.assign(Object.assign({},wo),{motionName:(0,Kr.m)(Tt,"switch")})),le}var Xr=mt(37419),Br=function(Tt,ee){var le={};for(var xe in Tt)Object.prototype.hasOwnProperty.call(Tt,xe)&&ee.indexOf(xe)<0&&(le[xe]=Tt[xe]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,xe=Object.getOwnPropertySymbols(Tt);fe<xe.length;fe++)ee.indexOf(xe[fe])<0&&Object.prototype.propertyIsEnumerable.call(Tt,xe[fe])&&(le[xe[fe]]=Tt[xe[fe]]);return le};function yo(Tt){return Tt.filter(ee=>ee)}function ko(Tt,ee){if(Tt)return Tt;const le=(0,Xr.Z)(ee).map(xe=>{if(Yt.isValidElement(xe)){const{key:fe,props:Ee}=xe,Ae=Ee||{},{tab:yn}=Ae,Rn=Br(Ae,["tab"]);return Object.assign(Object.assign({key:String(fe)},Rn),{label:yn})}return null});return yo(le)}var oi=mt(14747),kn=mt(67968),Ce=mt(45503),si=mt(67771),Gi=Tt=>{const{componentCls:ee,motionDurationSlow:le}=Tt;return[{[ee]:{[`${ee}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${le}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${le}`}}}}},[(0,si.oN)(Tt,"slide-up"),(0,si.oN)(Tt,"slide-down")]]};const Tr=Tt=>{const{componentCls:ee,tabsCardPadding:le,cardBg:xe,cardGutter:fe,colorBorderSecondary:Ee,itemSelectedColor:Ae}=Tt;return{[`${ee}-card`]:{[`> ${ee}-nav, > div > ${ee}-nav`]:{[`${ee}-tab`]:{margin:0,padding:le,background:xe,border:`${Tt.lineWidth}px ${Tt.lineType} ${Ee}`,transition:`all ${Tt.motionDurationSlow} ${Tt.motionEaseInOut}`},[`${ee}-tab-active`]:{color:Ae,background:Tt.colorBgContainer},[`${ee}-ink-bar`]:{visibility:"hidden"}},[`&${ee}-top, &${ee}-bottom`]:{[`> ${ee}-nav, > div > ${ee}-nav`]:{[`${ee}-tab + ${ee}-tab`]:{marginLeft:{_skip_check_:!0,value:`${fe}px`}}}},[`&${ee}-top`]:{[`> ${ee}-nav, > div > ${ee}-nav`]:{[`${ee}-tab`]:{borderRadius:`${Tt.borderRadiusLG}px ${Tt.borderRadiusLG}px 0 0`},[`${ee}-tab-active`]:{borderBottomColor:Tt.colorBgContainer}}},[`&${ee}-bottom`]:{[`> ${ee}-nav, > div > ${ee}-nav`]:{[`${ee}-tab`]:{borderRadius:`0 0 ${Tt.borderRadiusLG}px ${Tt.borderRadiusLG}px`},[`${ee}-tab-active`]:{borderTopColor:Tt.colorBgContainer}}},[`&${ee}-left, &${ee}-right`]:{[`> ${ee}-nav, > div > ${ee}-nav`]:{[`${ee}-tab + ${ee}-tab`]:{marginTop:`${fe}px`}}},[`&${ee}-left`]:{[`> ${ee}-nav, > div > ${ee}-nav`]:{[`${ee}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Tt.borderRadiusLG}px 0 0 ${Tt.borderRadiusLG}px`}},[`${ee}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:Tt.colorBgContainer}}}},[`&${ee}-right`]:{[`> ${ee}-nav, > div > ${ee}-nav`]:{[`${ee}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Tt.borderRadiusLG}px ${Tt.borderRadiusLG}px 0`}},[`${ee}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:Tt.colorBgContainer}}}}}}},Lr=Tt=>{const{componentCls:ee,itemHoverColor:le,dropdownEdgeChildVerticalPadding:xe}=Tt;return{[`${ee}-dropdown`]:Object.assign(Object.assign({},(0,oi.Wf)(Tt)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Tt.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${ee}-dropdown-menu`]:{maxHeight:Tt.tabsDropdownHeight,margin:0,padding:`${xe}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:Tt.colorBgContainer,backgroundClip:"padding-box",borderRadius:Tt.borderRadiusLG,outline:"none",boxShadow:Tt.boxShadowSecondary,"&-item":Object.assign(Object.assign({},oi.vS),{display:"flex",alignItems:"center",minWidth:Tt.tabsDropdownWidth,margin:0,padding:`${Tt.paddingXXS}px ${Tt.paddingSM}px`,color:Tt.colorText,fontWeight:"normal",fontSize:Tt.fontSize,lineHeight:Tt.lineHeight,cursor:"pointer",transition:`all ${Tt.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:Tt.marginSM},color:Tt.colorTextDescription,fontSize:Tt.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:le}},"&:hover":{background:Tt.controlItemBgHover},"&-disabled":{"&, &:hover":{color:Tt.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Cr=Tt=>{const{componentCls:ee,margin:le,colorBorderSecondary:xe,horizontalMargin:fe,verticalItemPadding:Ee,verticalItemMargin:Ae}=Tt;return{[`${ee}-top, ${ee}-bottom`]:{flexDirection:"column",[`> ${ee}-nav, > div > ${ee}-nav`]:{margin:fe,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Tt.lineWidth}px ${Tt.lineType} ${xe}`,content:"''"},[`${ee}-ink-bar`]:{height:Tt.lineWidthBold,"&-animated":{transition:`width ${Tt.motionDurationSlow}, left ${Tt.motionDurationSlow},
|
|
|
right ${Tt.motionDurationSlow}`}},[`${ee}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:Tt.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:Tt.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:Tt.boxShadowTabsOverflowRight},[`&${ee}-nav-wrap-ping-left::before`]:{opacity:1},[`&${ee}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${ee}-top`]:{[`> ${ee}-nav,
|
|
|
> div > ${ee}-nav`]:{"&::before":{bottom:0},[`${ee}-ink-bar`]:{bottom:0}}},[`${ee}-bottom`]:{[`> ${ee}-nav, > div > ${ee}-nav`]:{order:1,marginTop:`${le}px`,marginBottom:0,"&::before":{top:0},[`${ee}-ink-bar`]:{top:0}},[`> ${ee}-content-holder, > div > ${ee}-content-holder`]:{order:0}},[`${ee}-left, ${ee}-right`]:{[`> ${ee}-nav, > div > ${ee}-nav`]:{flexDirection:"column",minWidth:Tt.controlHeight*1.25,[`${ee}-tab`]:{padding:Ee,textAlign:"center"},[`${ee}-tab + ${ee}-tab`]:{margin:Ae},[`${ee}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:Tt.controlHeight},"&::before":{top:0,boxShadow:Tt.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:Tt.boxShadowTabsOverflowBottom},[`&${ee}-nav-wrap-ping-top::before`]:{opacity:1},[`&${ee}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${ee}-ink-bar`]:{width:Tt.lineWidthBold,"&-animated":{transition:`height ${Tt.motionDurationSlow}, top ${Tt.motionDurationSlow}`}},[`${ee}-nav-list, ${ee}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${ee}-left`]:{[`> ${ee}-nav, > div > ${ee}-nav`]:{[`${ee}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${ee}-content-holder, > div > ${ee}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${Tt.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${Tt.lineWidth}px ${Tt.lineType} ${Tt.colorBorder}`},[`> ${ee}-content > ${ee}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:Tt.paddingLG}}}},[`${ee}-right`]:{[`> ${ee}-nav, > div > ${ee}-nav`]:{order:1,[`${ee}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${ee}-content-holder, > div > ${ee}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-Tt.lineWidth},borderRight:{_skip_check_:!0,value:`${Tt.lineWidth}px ${Tt.lineType} ${Tt.colorBorder}`},[`> ${ee}-content > ${ee}-tabpane`]:{paddingRight:{_skip_check_:!0,value:Tt.paddingLG}}}}}},jr=Tt=>{const{componentCls:ee,cardPaddingSM:le,cardPaddingLG:xe,horizontalItemPaddingSM:fe,horizontalItemPaddingLG:Ee}=Tt;return{[ee]:{"&-small":{[`> ${ee}-nav`]:{[`${ee}-tab`]:{padding:fe,fontSize:Tt.titleFontSizeSM}}},"&-large":{[`> ${ee}-nav`]:{[`${ee}-tab`]:{padding:Ee,fontSize:Tt.titleFontSizeLG}}}},[`${ee}-card`]:{[`&${ee}-small`]:{[`> ${ee}-nav`]:{[`${ee}-tab`]:{padding:le}},[`&${ee}-bottom`]:{[`> ${ee}-nav ${ee}-tab`]:{borderRadius:`0 0 ${Tt.borderRadius}px ${Tt.borderRadius}px`}},[`&${ee}-top`]:{[`> ${ee}-nav ${ee}-tab`]:{borderRadius:`${Tt.borderRadius}px ${Tt.borderRadius}px 0 0`}},[`&${ee}-right`]:{[`> ${ee}-nav ${ee}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Tt.borderRadius}px ${Tt.borderRadius}px 0`}}},[`&${ee}-left`]:{[`> ${ee}-nav ${ee}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Tt.borderRadius}px 0 0 ${Tt.borderRadius}px`}}}},[`&${ee}-large`]:{[`> ${ee}-nav`]:{[`${ee}-tab`]:{padding:xe}}}}}},Jr=Tt=>{const{componentCls:ee,itemActiveColor:le,itemHoverColor:xe,iconCls:fe,tabsHorizontalItemMargin:Ee,horizontalItemPadding:Ae,itemSelectedColor:yn,itemColor:Rn}=Tt,Pi=`${ee}-tab`;return{[Pi]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Ae,fontSize:Tt.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:Rn,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:le}},(0,oi.Qy)(Tt)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-Tt.marginXXS},marginLeft:{_skip_check_:!0,value:Tt.marginXS},color:Tt.colorTextDescription,fontSize:Tt.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${Tt.motionDurationSlow}`,"&:hover":{color:Tt.colorTextHeading}},"&:hover":{color:xe},[`&${Pi}-active ${Pi}-btn`]:{color:yn,textShadow:Tt.tabsActiveTextShadow},[`&${Pi}-disabled`]:{color:Tt.colorTextDisabled,cursor:"not-allowed"},[`&${Pi}-disabled ${Pi}-btn, &${Pi}-disabled ${ee}-remove`]:{"&:focus, &:active":{color:Tt.colorTextDisabled}},[`& ${Pi}-remove ${fe}`]:{margin:0},[fe]:{marginRight:{_skip_check_:!0,value:Tt.marginSM}}},[`${Pi} + ${Pi}`]:{margin:{_skip_check_:!0,value:Ee}}}},Wr=Tt=>{const{componentCls:ee,tabsHorizontalItemMarginRTL:le,iconCls:xe,cardGutter:fe}=Tt;return{[`${ee}-rtl`]:{direction:"rtl",[`${ee}-nav`]:{[`${ee}-tab`]:{margin:{_skip_check_:!0,value:le},[`${ee}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[xe]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${Tt.marginSM}px`}},[`${ee}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${Tt.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${Tt.marginXXS}px`},[xe]:{margin:0}}}},[`&${ee}-left`]:{[`> ${ee}-nav`]:{order:1},[`> ${ee}-content-holder`]:{order:0}},[`&${ee}-right`]:{[`> ${ee}-nav`]:{order:0},[`> ${ee}-content-holder`]:{order:1}},[`&${ee}-card${ee}-top, &${ee}-card${ee}-bottom`]:{[`> ${ee}-nav, > div > ${ee}-nav`]:{[`${ee}-tab + ${ee}-tab`]:{marginRight:{_skip_check_:!0,value:fe},marginLeft:{_skip_check_:!0,value:0}}}}},[`${ee}-dropdown-rtl`]:{direction:"rtl"},[`${ee}-menu-item`]:{[`${ee}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},or=Tt=>{const{componentCls:ee,tabsCardPadding:le,cardHeight:xe,cardGutter:fe,itemHoverColor:Ee,itemActiveColor:Ae,colorBorderSecondary:yn}=Tt;return{[ee]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,oi.Wf)(Tt)),{display:"flex",[`> ${ee}-nav, > div > ${ee}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${ee}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${Tt.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${ee}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${Tt.motionDurationSlow}`},[`${ee}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${ee}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${ee}-nav-more`]:{position:"relative",padding:le,background:"transparent",border:0,color:Tt.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:Tt.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${ee}-nav-add`]:Object.assign({minWidth:xe,marginLeft:{_skip_check_:!0,value:fe},padding:`0 ${Tt.paddingXS}px`,background:"transparent",border:`${Tt.lineWidth}px ${Tt.lineType} ${yn}`,borderRadius:`${Tt.borderRadiusLG}px ${Tt.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:Tt.colorText,transition:`all ${Tt.motionDurationSlow} ${Tt.motionEaseInOut}`,"&:hover":{color:Ee},"&:active, &:focus:not(:focus-visible)":{color:Ae}},(0,oi.Qy)(Tt))},[`${ee}-extra-content`]:{flex:"none"},[`${ee}-ink-bar`]:{position:"absolute",background:Tt.inkBarColor,pointerEvents:"none"}}),Jr(Tt)),{[`${ee}-content`]:{position:"relative",width:"100%"},[`${ee}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${ee}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${ee}-centered`]:{[`> ${ee}-nav, > div > ${ee}-nav`]:{[`${ee}-nav-wrap`]:{[`&:not([class*='${ee}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Gt=(0,kn.Z)("Tabs",Tt=>{const ee=(0,Ce.TS)(Tt,{tabsCardPadding:Tt.cardPadding||`${(Tt.cardHeight-Math.round(Tt.fontSize*Tt.lineHeight))/2-Tt.lineWidth}px ${Tt.padding}px`,dropdownEdgeChildVerticalPadding:Tt.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Tt.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${Tt.horizontalItemGutter}px`});return[jr(ee),Wr(ee),Cr(ee),Lr(ee),Tr(ee),or(ee),Gi(ee)]},Tt=>{const ee=Tt.controlHeightLG;return{zIndexPopup:Tt.zIndexPopupBase+50,cardBg:Tt.colorFillAlter,cardHeight:ee,cardPadding:"",cardPaddingSM:`${Tt.paddingXXS*1.5}px ${Tt.padding}px`,cardPaddingLG:`${Tt.paddingXS}px ${Tt.padding}px ${Tt.paddingXXS*1.5}px`,titleFontSize:Tt.fontSize,titleFontSizeLG:Tt.fontSizeLG,titleFontSizeSM:Tt.fontSize,inkBarColor:Tt.colorPrimary,horizontalMargin:`0 0 ${Tt.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${Tt.paddingSM}px 0`,horizontalItemPaddingSM:`${Tt.paddingXS}px 0`,horizontalItemPaddingLG:`${Tt.padding}px 0`,verticalItemPadding:`${Tt.paddingXS}px ${Tt.paddingLG}px`,verticalItemMargin:`${Tt.margin}px 0 0 0`,itemColor:Tt.colorText,itemSelectedColor:Tt.colorPrimary,itemHoverColor:Tt.colorPrimaryHover,itemActiveColor:Tt.colorPrimaryActive,cardGutter:Tt.marginXXS/2}}),Zn=function(Tt,ee){var le={};for(var xe in Tt)Object.prototype.hasOwnProperty.call(Tt,xe)&&ee.indexOf(xe)<0&&(le[xe]=Tt[xe]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,xe=Object.getOwnPropertySymbols(Tt);fe<xe.length;fe++)ee.indexOf(xe[fe])<0&&Object.prototype.propertyIsEnumerable.call(Tt,xe[fe])&&(le[xe[fe]]=Tt[xe[fe]]);return le};const wi=Tt=>{const{type:ee,className:le,rootClassName:xe,size:fe,onEdit:Ee,hideAdd:Ae,centered:yn,addIcon:Rn,popupClassName:Pi,children:An,items:Mi,animated:pi,style:di,indicatorSize:Wn}=Tt,Bi=Zn(Tt,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:sr,moreIcon:_i=Yt.createElement(Ft.Z,null)}=Bi,{direction:Ui,tabs:qi,getPrefixCls:lr,getPopupContainer:je}=Yt.useContext(Do.E_),ve=lr("tabs",sr),[ke,xn]=Gt(ve);let cn;ee==="editable-card"&&(cn={onEdit:(hn,bi)=>{let{key:zi,event:li}=bi;Ee==null||Ee(hn==="add"?li:zi,hn)},removeIcon:Yt.createElement(ft.Z,null),addIcon:Rn||Yt.createElement($t.Z,null),showAdd:Ae!==!0});const ni=lr(),Ti=ko(Mi,An),qe=Sr(ve,pi),Je=(0,ui.Z)(fe),sn=Object.assign(Object.assign({},qi==null?void 0:qi.style),di);return ke(Yt.createElement(qr,Object.assign({direction:Ui,getPopupContainer:je,moreTransitionName:`${ni}-slide-up`},Bi,{items:Ti,className:Dt()({[`${ve}-${Je}`]:Je,[`${ve}-card`]:["card","editable-card"].includes(ee),[`${ve}-editable-card`]:ee==="editable-card",[`${ve}-centered`]:yn},qi==null?void 0:qi.className,le,xe,xn),popupClassName:Dt()(Pi,xn),style:sn,editable:cn,moreIcon:_i,prefixCls:ve,animated:qe,indicatorSize:Wn!=null?Wn:qi==null?void 0:qi.indicatorSize})))};wi.TabPane=bo;var Fi=wi},79870:function(jn,tn,mt){"use strict";mt.d(tn,{default:function(){return Gt}});var ft=mt(87462),Ft=mt(4942),$t=mt(71002),ne=mt(1413),Dt=mt(74902),Ht=mt(15671),Wt=mt(43144),jt=mt(97326),Nt=mt(60136),Ut=mt(51630),De=mt(94184),Yt=mt.n(De),de={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(wi){var Fi=wi.keyCode;if(wi.altKey&&!wi.ctrlKey||wi.metaKey||Fi>=de.F1&&Fi<=de.F12)return!1;switch(Fi){case de.ALT:case de.CAPS_LOCK:case de.CONTEXT_MENU:case de.CTRL:case de.DOWN:case de.END:case de.ESC:case de.HOME:case de.INSERT:case de.LEFT:case de.MAC_FF_META:case de.META:case de.NUMLOCK:case de.NUM_CENTER:case de.PAGE_DOWN:case de.PAGE_UP:case de.PAUSE:case de.PRINT_SCREEN:case de.RIGHT:case de.SHIFT:case de.UP:case de.WIN_KEY:case de.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(wi){if(wi>=de.ZERO&&wi<=de.NINE||wi>=de.NUM_ZERO&&wi<=de.NUM_MULTIPLY||wi>=de.A&&wi<=de.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&wi===0)return!0;switch(wi){case de.SPACE:case de.QUESTION_MARK:case de.NUM_PLUS:case de.NUM_MINUS:case de.NUM_PERIOD:case de.NUM_DIVISION:case de.SEMICOLON:case de.DASH:case de.EQUALS:case de.COMMA:case de.PERIOD:case de.SLASH:case de.APOSTROPHE:case de.SINGLE_QUOTE:case de.OPEN_SQUARE_BRACKET:case de.BACKSLASH:case de.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},we=de,ue=mt(34952),he=mt(72978),It=mt(67294),ye=mt(69610);function Ze(Zn){var wi=Zn.dropPosition,Fi=Zn.dropLevelOffset,Tt=Zn.indent,ee={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(wi){case-1:ee.top=0,ee.left=-Fi*Tt;break;case 1:ee.bottom=0,ee.left=-Fi*Tt;break;case 0:ee.bottom=0,ee.left=Tt;break}return It.createElement("div",{style:ee})}var pe=mt(36459),be=mt(97685),Rt=mt(45987);function zt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Qt=zt()?It.useLayoutEffect:It.useEffect,te=Qt,Ie=function(wi,Fi){var Tt=React.useRef(!0);Qt(function(){if(!Tt.current)return wi()},Fi),Qt(function(){return Tt.current=!1,function(){Tt.current=!0}},[])},He=mt(73299),en=mt(73935);function ie(Zn){return Zn instanceof HTMLElement||Zn instanceof SVGElement}function an(Zn){return ie(Zn)?Zn:Zn instanceof It.Component?en.findDOMNode(Zn):null}var nn=mt(28580);function Vn(Zn,wi,Fi){var Tt=React.useRef({});return(!("value"in Tt.current)||Fi(Tt.current.condition,wi))&&(Tt.current.value=Zn(),Tt.current.condition=wi),Tt.current.value}function Ne(Zn,wi){typeof Zn=="function"?Zn(wi):(0,$t.Z)(Zn)==="object"&&Zn&&"current"in Zn&&(Zn.current=wi)}function Ye(){for(var Zn=arguments.length,wi=new Array(Zn),Fi=0;Fi<Zn;Fi++)wi[Fi]=arguments[Fi];var Tt=wi.filter(function(ee){return ee});return Tt.length<=1?Tt[0]:function(ee){wi.forEach(function(le){Ne(le,ee)})}}function zn(){for(var Zn=arguments.length,wi=new Array(Zn),Fi=0;Fi<Zn;Fi++)wi[Fi]=arguments[Fi];return useMemo(function(){return Ye.apply(void 0,wi)},wi,function(Tt,ee){return Tt.length===ee.length&&Tt.every(function(le,xe){return le===ee[xe]})})}function Gn(Zn){var wi,Fi,Tt=(0,nn.isMemo)(Zn)?Zn.type.type:Zn.type;return!(typeof Tt=="function"&&!((wi=Tt.prototype)!==null&&wi!==void 0&&wi.render)||typeof Zn=="function"&&!((Fi=Zn.prototype)!==null&&Fi!==void 0&&Fi.render))}function Me(Zn,wi){var Fi={};return Fi[Zn.toLowerCase()]=wi.toLowerCase(),Fi["Webkit".concat(Zn)]="webkit".concat(wi),Fi["Moz".concat(Zn)]="moz".concat(wi),Fi["ms".concat(Zn)]="MS".concat(wi),Fi["O".concat(Zn)]="o".concat(wi.toLowerCase()),Fi}function _t(Zn,wi){var Fi={animationend:Me("Animation","AnimationEnd"),transitionend:Me("Transition","TransitionEnd")};return Zn&&("AnimationEvent"in wi||delete Fi.animationend.animation,"TransitionEvent"in wi||delete Fi.transitionend.transition),Fi}var rn=_t(zt(),typeof window!="undefined"?window:{}),ti={};if(zt()){var vn=document.createElement("div");ti=vn.style}var ze={};function on(Zn){if(ze[Zn])return ze[Zn];var wi=rn[Zn];if(wi)for(var Fi=Object.keys(wi),Tt=Fi.length,ee=0;ee<Tt;ee+=1){var le=Fi[ee];if(Object.prototype.hasOwnProperty.call(wi,le)&&le in ti)return ze[Zn]=wi[le],ze[Zn]}return""}var On=on("animationend"),Ni=on("transitionend"),gi=!!(On&&Ni),Dn=On||"animationend",Jn=Ni||"transitionend";function Ai(Zn,wi){if(!Zn)return null;if((0,$t.Z)(Zn)==="object"){var Fi=wi.replace(/-\w/g,function(Tt){return Tt[1].toUpperCase()});return Zn[Fi]}return"".concat(Zn,"-").concat(wi)}var hi="none",qt="appear",kt="enter",Ct="leave",Pt="none",At="prepare",wt="start",Xt="active",Re="end";function We(Zn){var wi=It.useRef(!1),Fi=It.useState(Zn),Tt=(0,be.Z)(Fi,2),ee=Tt[0],le=Tt[1];It.useEffect(function(){return wi.current=!1,function(){wi.current=!0}},[]);function xe(fe,Ee){Ee&&wi.current||le(fe)}return[ee,xe]}var In=function(wi){return+setTimeout(wi,16)},Hn=function(wi){return clearTimeout(wi)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(In=function(wi){return window.requestAnimationFrame(wi)},Hn=function(wi){return window.cancelAnimationFrame(wi)});var Un=0,Yn=new Map;function Fe(Zn){Yn.delete(Zn)}var bn=function(wi){var Fi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Un+=1;var Tt=Un;function ee(le){if(le===0)Fe(Tt),wi();else{var xe=In(function(){ee(le-1)});Yn.set(Tt,xe)}}return ee(Fi),Tt};bn.cancel=function(Zn){var wi=Yn.get(Zn);return Fe(wi),Hn(wi)};var En=bn,Qn=function(){var Zn=It.useRef(null);function wi(){En.cancel(Zn.current)}function Fi(Tt){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;wi();var le=En(function(){ee<=1?Tt({isCanceled:function(){return le!==Zn.current}}):Fi(Tt,ee-1)});Zn.current=le}return It.useEffect(function(){return function(){wi()}},[]),[Fi,wi]},Sn=zt()?It.useLayoutEffect:It.useEffect,Vi=Sn,Qe=[At,wt,Xt,Re],Pn=!1,Ci=!0;function yi(Zn){return Zn===Xt||Zn===Re}var Oi=function(Zn,wi){var Fi=We(Pt),Tt=(0,be.Z)(Fi,2),ee=Tt[0],le=Tt[1],xe=Qn(),fe=(0,be.Z)(xe,2),Ee=fe[0],Ae=fe[1];function yn(){le(At,!0)}return Vi(function(){if(ee!==Pt&&ee!==Re){var Rn=Qe.indexOf(ee),Pi=Qe[Rn+1],An=wi(ee);An===Pn?le(Pi,!0):Ee(function(Mi){function pi(){Mi.isCanceled()||le(Pi,!0)}An===!0?pi():Promise.resolve(An).then(pi)})}},[Zn,ee]),It.useEffect(function(){return function(){Ae()}},[]),[yn,ee]},ar=function(Zn){var wi=(0,It.useRef)(),Fi=(0,It.useRef)(Zn);Fi.current=Zn;var Tt=It.useCallback(function(xe){Fi.current(xe)},[]);function ee(xe){xe&&(xe.removeEventListener(Jn,Tt),xe.removeEventListener(Dn,Tt))}function le(xe){wi.current&&wi.current!==xe&&ee(wi.current),xe&&xe!==wi.current&&(xe.addEventListener(Jn,Tt),xe.addEventListener(Dn,Tt),wi.current=xe)}return It.useEffect(function(){return function(){ee(wi.current)}},[]),[le,ee]};function br(Zn,wi,Fi,Tt){var ee=Tt.motionEnter,le=ee===void 0?!0:ee,xe=Tt.motionAppear,fe=xe===void 0?!0:xe,Ee=Tt.motionLeave,Ae=Ee===void 0?!0:Ee,yn=Tt.motionDeadline,Rn=Tt.motionLeaveImmediately,Pi=Tt.onAppearPrepare,An=Tt.onEnterPrepare,Mi=Tt.onLeavePrepare,pi=Tt.onAppearStart,di=Tt.onEnterStart,Wn=Tt.onLeaveStart,Bi=Tt.onAppearActive,sr=Tt.onEnterActive,_i=Tt.onLeaveActive,Ui=Tt.onAppearEnd,qi=Tt.onEnterEnd,lr=Tt.onLeaveEnd,je=Tt.onVisibleChanged,ve=We(),ke=(0,be.Z)(ve,2),xn=ke[0],cn=ke[1],ni=We(hi),Ti=(0,be.Z)(ni,2),qe=Ti[0],Je=Ti[1],sn=We(null),hn=(0,be.Z)(sn,2),bi=hn[0],zi=hn[1],li=(0,It.useRef)(!1),Kn=(0,It.useRef)(null);function ur(){return Fi()}var Ln=(0,It.useRef)(!1);function wn(mo){var oo=ur();if(!(mo&&!mo.deadline&&mo.target!==oo)){var to=Ln.current,Io;qe===qt&&to?Io=Ui==null?void 0:Ui(oo,mo):qe===kt&&to?Io=qi==null?void 0:qi(oo,mo):qe===Ct&&to&&(Io=lr==null?void 0:lr(oo,mo)),qe!==hi&&to&&Io!==!1&&(Je(hi,!0),zi(null,!0))}}var _n=ar(wn),Ei=(0,be.Z)(_n,1),gn=Ei[0],Ji=It.useMemo(function(){var mo,oo,to;switch(qe){case qt:return mo={},(0,Ft.Z)(mo,At,Pi),(0,Ft.Z)(mo,wt,pi),(0,Ft.Z)(mo,Xt,Bi),mo;case kt:return oo={},(0,Ft.Z)(oo,At,An),(0,Ft.Z)(oo,wt,di),(0,Ft.Z)(oo,Xt,sr),oo;case Ct:return to={},(0,Ft.Z)(to,At,Mi),(0,Ft.Z)(to,wt,Wn),(0,Ft.Z)(to,Xt,_i),to;default:return{}}},[qe]),er=Oi(qe,function(mo){if(mo===At){var oo=Ji[At];return oo?oo(ur()):Pn}if(Fr in Ji){var to;zi(((to=Ji[Fr])===null||to===void 0?void 0:to.call(Ji,ur(),null))||null)}return Fr===Xt&&(gn(ur()),yn>0&&(clearTimeout(Kn.current),Kn.current=setTimeout(function(){wn({deadline:!0})},yn))),Ci}),Qi=(0,be.Z)(er,2),Ir=Qi[0],Fr=Qi[1],yr=yi(Fr);Ln.current=yr,Vi(function(){cn(wi);var mo=li.current;if(li.current=!0,!!Zn){var oo;!mo&&wi&&fe&&(oo=qt),mo&&wi&&le&&(oo=kt),(mo&&!wi&&Ae||!mo&&Rn&&!wi&&Ae)&&(oo=Ct),oo&&(Je(oo),Ir())}},[wi]),(0,It.useEffect)(function(){(qe===qt&&!fe||qe===kt&&!le||qe===Ct&&!Ae)&&Je(hi)},[fe,le,Ae]),(0,It.useEffect)(function(){return function(){li.current=!1,clearTimeout(Kn.current)}},[]);var xo=It.useRef(!1);(0,It.useEffect)(function(){xn&&(xo.current=!0),xn!==void 0&&qe===hi&&((xo.current||xn)&&(je==null||je(xn)),xo.current=!0)},[xn,qe]);var No=bi;return Ji[At]&&Fr===wt&&(No=(0,ne.Z)({transition:"none"},No)),[qe,Fr,No,xn!=null?xn:wi]}var wr=function(Zn){(0,Nt.Z)(Fi,Zn);var wi=(0,Ut.Z)(Fi);function Fi(){return(0,Ht.Z)(this,Fi),wi.apply(this,arguments)}return(0,Wt.Z)(Fi,[{key:"render",value:function(){return this.props.children}}]),Fi}(It.Component),cr=wr;function Ar(Zn){var wi=Zn;(0,$t.Z)(Zn)==="object"&&(wi=Zn.transitionSupport);function Fi(ee){return!!(ee.motionName&&wi)}var Tt=It.forwardRef(function(ee,le){var xe=ee.visible,fe=xe===void 0?!0:xe,Ee=ee.removeOnLeave,Ae=Ee===void 0?!0:Ee,yn=ee.forceRender,Rn=ee.children,Pi=ee.motionName,An=ee.leavedClassName,Mi=ee.eventProps,pi=Fi(ee),di=(0,It.useRef)(),Wn=(0,It.useRef)();function Bi(){try{return di.current instanceof HTMLElement?di.current:an(Wn.current)}catch(sn){return null}}var sr=br(pi,fe,Bi,ee),_i=(0,be.Z)(sr,4),Ui=_i[0],qi=_i[1],lr=_i[2],je=_i[3],ve=It.useRef(je);je&&(ve.current=!0);var ke=It.useCallback(function(sn){di.current=sn,Ne(le,sn)},[le]),xn,cn=(0,ne.Z)((0,ne.Z)({},Mi),{},{visible:fe});if(!Rn)xn=null;else if(Ui===hi||!Fi(ee))je?xn=Rn((0,ne.Z)({},cn),ke):!Ae&&ve.current&&An?xn=Rn((0,ne.Z)((0,ne.Z)({},cn),{},{className:An}),ke):yn||!Ae&&!An?xn=Rn((0,ne.Z)((0,ne.Z)({},cn),{},{style:{display:"none"}}),ke):xn=null;else{var ni,Ti;qi===At?Ti="prepare":yi(qi)?Ti="active":qi===wt&&(Ti="start"),xn=Rn((0,ne.Z)((0,ne.Z)({},cn),{},{className:Yt()(Ai(Pi,Ui),(ni={},(0,Ft.Z)(ni,Ai(Pi,"".concat(Ui,"-").concat(Ti)),Ti),(0,Ft.Z)(ni,Pi,typeof Pi=="string"),ni)),style:lr}),ke)}if(It.isValidElement(xn)&&Gn(xn)){var qe=xn,Je=qe.ref;Je||(xn=It.cloneElement(xn,{ref:ke}))}return It.createElement(cr,{ref:Wn},xn)});return Tt.displayName="CSSMotion",Tt}var ir=Ar(gi),kr="add",po="keep",So="remove",Eo="removed";function Yr(Zn){var wi;return Zn&&(0,$t.Z)(Zn)==="object"&&"key"in Zn?wi=Zn:wi={key:Zn},(0,ne.Z)((0,ne.Z)({},wi),{},{key:String(wi.key)})}function Mn(){var Zn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Zn.map(Yr)}function St(){var Zn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],wi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Fi=[],Tt=0,ee=wi.length,le=Mn(Zn),xe=Mn(wi);le.forEach(function(Ae){for(var yn=!1,Rn=Tt;Rn<ee;Rn+=1){var Pi=xe[Rn];if(Pi.key===Ae.key){Tt<Rn&&(Fi=Fi.concat(xe.slice(Tt,Rn).map(function(An){return(0,ne.Z)((0,ne.Z)({},An),{},{status:kr})})),Tt=Rn),Fi.push((0,ne.Z)((0,ne.Z)({},Pi),{},{status:po})),Tt+=1,yn=!0;break}}yn||Fi.push((0,ne.Z)((0,ne.Z)({},Ae),{},{status:So}))}),Tt<ee&&(Fi=Fi.concat(xe.slice(Tt).map(function(Ae){return(0,ne.Z)((0,ne.Z)({},Ae),{},{status:kr})})));var fe={};Fi.forEach(function(Ae){var yn=Ae.key;fe[yn]=(fe[yn]||0)+1});var Ee=Object.keys(fe).filter(function(Ae){return fe[Ae]>1});return Ee.forEach(function(Ae){Fi=Fi.filter(function(yn){var Rn=yn.key,Pi=yn.status;return Rn!==Ae||Pi!==So}),Fi.forEach(function(yn){yn.key===Ae&&(yn.status=po)})}),Fi}var Zi=["component","children","onVisibleChanged","onAllRemoved"],mi=["status"],rr=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function fr(Zn){var wi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ir,Fi=function(Tt){(0,Nt.Z)(le,Tt);var ee=(0,Ut.Z)(le);function le(){var xe;(0,Ht.Z)(this,le);for(var fe=arguments.length,Ee=new Array(fe),Ae=0;Ae<fe;Ae++)Ee[Ae]=arguments[Ae];return xe=ee.call.apply(ee,[this].concat(Ee)),(0,Ft.Z)((0,jt.Z)(xe),"state",{keyEntities:[]}),(0,Ft.Z)((0,jt.Z)(xe),"removeKey",function(yn){var Rn=xe.state.keyEntities,Pi=Rn.map(function(An){return An.key!==yn?An:(0,ne.Z)((0,ne.Z)({},An),{},{status:Eo})});return xe.setState({keyEntities:Pi}),Pi.filter(function(An){var Mi=An.status;return Mi!==Eo}).length}),xe}return(0,Wt.Z)(le,[{key:"render",value:function(){var fe=this,Ee=this.state.keyEntities,Ae=this.props,yn=Ae.component,Rn=Ae.children,Pi=Ae.onVisibleChanged,An=Ae.onAllRemoved,Mi=(0,Rt.Z)(Ae,Zi),pi=yn||It.Fragment,di={};return rr.forEach(function(Wn){di[Wn]=Mi[Wn],delete Mi[Wn]}),delete Mi.keys,It.createElement(pi,Mi,Ee.map(function(Wn){var Bi=Wn.status,sr=(0,Rt.Z)(Wn,mi),_i=Bi===kr||Bi===po;return It.createElement(wi,(0,ft.Z)({},di,{key:sr.key,visible:_i,eventProps:sr,onVisibleChanged:function(qi){if(Pi==null||Pi(qi,{key:sr.key}),!qi){var lr=fe.removeKey(sr.key);lr===0&&An&&An()}}}),Rn)}))}}],[{key:"getDerivedStateFromProps",value:function(fe,Ee){var Ae=fe.keys,yn=Ee.keyEntities,Rn=Mn(Ae),Pi=St(yn,Rn);return{keyEntities:Pi.filter(function(An){var Mi=yn.find(function(pi){var di=pi.key;return An.key===di});return!(Mi&&Mi.status===Eo&&An.status===So)})}}}]),le}(It.Component);return(0,Ft.Z)(Fi,"defaultProps",{component:"div"}),Fi}var pr=fr(gi),tr=ir,Xe=mt(56261);function mn(Zn,wi){var Fi=It.useState(!1),Tt=(0,be.Z)(Fi,2),ee=Tt[0],le=Tt[1];It.useLayoutEffect(function(){if(ee)return Zn(),function(){wi()}},[ee]),It.useLayoutEffect(function(){return le(!0),function(){le(!1)}},[])}var Tn=mt(83898),Nn=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ge=function(wi,Fi){var Tt=wi.className,ee=wi.style,le=wi.motion,xe=wi.motionNodes,fe=wi.motionType,Ee=wi.onMotionStart,Ae=wi.onMotionEnd,yn=wi.active,Rn=wi.treeNodeRequiredProps,Pi=(0,Rt.Z)(wi,Nn),An=It.useState(!0),Mi=(0,be.Z)(An,2),pi=Mi[0],di=Mi[1],Wn=It.useContext(ye.k),Bi=Wn.prefixCls,sr=xe&&fe!=="hide";te(function(){xe&&sr!==pi&&di(sr)},[xe]);var _i=function(){xe&&Ee()},Ui=It.useRef(!1),qi=function(){xe&&!Ui.current&&(Ui.current=!0,Ae())};mn(_i,qi);var lr=function(ve){sr===ve&&qi()};return xe?It.createElement(tr,(0,ft.Z)({ref:Fi,visible:pi},le,{motionAppear:fe==="show",onVisibleChanged:lr}),function(je,ve){var ke=je.className,xn=je.style;return It.createElement("div",{ref:ve,className:Yt()("".concat(Bi,"-treenode-motion"),ke),style:xn},xe.map(function(cn){var ni=(0,ft.Z)({},((0,pe.Z)(cn.data),cn.data)),Ti=cn.title,qe=cn.key,Je=cn.isStart,sn=cn.isEnd;delete ni.children;var hn=(0,Tn.H8)(qe,Rn);return It.createElement(Xe.Z,(0,ft.Z)({},ni,hn,{title:Ti,active:yn,data:cn.data,key:qe,isStart:Je,isEnd:sn}))}))}):It.createElement(Xe.Z,(0,ft.Z)({domRef:Fi,className:Tt,style:ee},Pi,{active:yn}))};ge.displayName="MotionTreeNode";var Cn=It.forwardRef(ge),ai=Cn;function Te(){var Zn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],wi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Fi=Zn.length,Tt=wi.length;if(Math.abs(Fi-Tt)!==1)return{add:!1,key:null};function ee(le,xe){var fe=new Map;le.forEach(function(Ae){fe.set(Ae,!0)});var Ee=xe.filter(function(Ae){return!fe.has(Ae)});return Ee.length===1?Ee[0]:null}return Fi<Tt?{add:!0,key:ee(Zn,wi)}:{add:!1,key:ee(wi,Zn)}}function ce(Zn,wi,Fi){var Tt=Zn.findIndex(function(fe){return fe.key===Fi}),ee=Zn[Tt+1],le=wi.findIndex(function(fe){return fe.key===Fi});if(ee){var xe=wi.findIndex(function(fe){return fe.key===ee.key});return wi.slice(le+1,xe)}return wi.slice(le+1)}var Oe=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],pn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},fi=function(){},$n="RC_TREE_MOTION_".concat(Math.random()),_e={key:$n},ri={key:$n,level:0,index:0,pos:"0",node:_e,nodes:[_e]},Ri={parent:null,children:[],pos:ri.pos,data:_e,title:null,key:$n,isStart:[],isEnd:[]};function $e(Zn,wi,Fi,Tt){return wi===!1||!Fi?Zn:Zn.slice(0,Math.ceil(Fi/Tt)+1)}function Ge(Zn){var wi=Zn.key,Fi=Zn.pos;return(0,Tn.km)(wi,Fi)}function un(Zn){for(var wi=String(Zn.data.key),Fi=Zn;Fi.parent;)Fi=Fi.parent,wi="".concat(Fi.data.key," > ").concat(wi);return wi}var xi=It.forwardRef(function(Zn,wi){var Fi=Zn.prefixCls,Tt=Zn.data,ee=Zn.selectable,le=Zn.checkable,xe=Zn.expandedKeys,fe=Zn.selectedKeys,Ee=Zn.checkedKeys,Ae=Zn.loadedKeys,yn=Zn.loadingKeys,Rn=Zn.halfCheckedKeys,Pi=Zn.keyEntities,An=Zn.disabled,Mi=Zn.dragging,pi=Zn.dragOverNodeKey,di=Zn.dropPosition,Wn=Zn.motion,Bi=Zn.height,sr=Zn.itemHeight,_i=Zn.virtual,Ui=Zn.focusable,qi=Zn.activeItem,lr=Zn.focused,je=Zn.tabIndex,ve=Zn.onKeyDown,ke=Zn.onFocus,xn=Zn.onBlur,cn=Zn.onActiveChange,ni=Zn.onListChangeStart,Ti=Zn.onListChangeEnd,qe=(0,Rt.Z)(Zn,Oe),Je=It.useRef(null),sn=It.useRef(null);It.useImperativeHandle(wi,function(){return{scrollTo:function(Oo){Je.current.scrollTo(Oo)},getIndentWidth:function(){return sn.current.offsetWidth}}});var hn=It.useState(xe),bi=(0,be.Z)(hn,2),zi=bi[0],li=bi[1],Kn=It.useState(Tt),ur=(0,be.Z)(Kn,2),Ln=ur[0],wn=ur[1],_n=It.useState(Tt),Ei=(0,be.Z)(_n,2),gn=Ei[0],Ji=Ei[1],er=It.useState([]),Qi=(0,be.Z)(er,2),Ir=Qi[0],Fr=Qi[1],yr=It.useState(null),xo=(0,be.Z)(yr,2),No=xo[0],mo=xo[1],oo=It.useRef(Tt);oo.current=Tt;function to(){var Zr=oo.current;wn(Zr),Ji(Zr),Fr([]),mo(null),Ti()}te(function(){li(xe);var Zr=Te(zi,xe);if(Zr.key!==null)if(Zr.add){var Oo=Ln.findIndex(function(es){var jo=es.key;return jo===Zr.key}),Uo=$e(ce(Ln,Tt,Zr.key),_i,Bi,sr),Ls=Ln.slice();Ls.splice(Oo+1,0,Ri),Ji(Ls),Fr(Uo),mo("show")}else{var bs=Tt.findIndex(function(es){var jo=es.key;return jo===Zr.key}),ms=$e(ce(Tt,Ln,Zr.key),_i,Bi,sr),ds=Tt.slice();ds.splice(bs+1,0,Ri),Ji(ds),Fr(ms),mo("hide")}else Ln!==Tt&&(wn(Tt),Ji(Tt))},[xe,Tt]),It.useEffect(function(){Mi||to()},[Mi]);var Io=Wn?gn:Tt,so={expandedKeys:xe,selectedKeys:fe,loadedKeys:Ae,loadingKeys:yn,checkedKeys:Ee,halfCheckedKeys:Rn,dragOverNodeKey:pi,dropPosition:di,keyEntities:Pi};return It.createElement(It.Fragment,null,lr&&qi&&It.createElement("span",{style:pn,"aria-live":"assertive"},un(qi)),It.createElement("div",null,It.createElement("input",{style:pn,disabled:Ui===!1||An,tabIndex:Ui!==!1?je:null,onKeyDown:ve,onFocus:ke,onBlur:xn,value:"",onChange:fi,"aria-label":"for screen reader"})),It.createElement("div",{className:"".concat(Fi,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},It.createElement("div",{className:"".concat(Fi,"-indent")},It.createElement("div",{ref:sn,className:"".concat(Fi,"-indent-unit")}))),It.createElement(He.Z,(0,ft.Z)({},qe,{data:Io,itemKey:Ge,height:Bi,fullHeight:!1,virtual:_i,itemHeight:sr,prefixCls:"".concat(Fi,"-list"),ref:Je,onVisibleChange:function(Oo,Uo){var Ls=new Set(Oo),bs=Uo.filter(function(ms){return!Ls.has(ms)});bs.some(function(ms){return Ge(ms)===$n})&&to()}}),function(Zr){var Oo=Zr.pos,Uo=(0,ft.Z)({},((0,pe.Z)(Zr.data),Zr.data)),Ls=Zr.title,bs=Zr.key,ms=Zr.isStart,ds=Zr.isEnd,es=(0,Tn.km)(bs,Oo);delete Uo.key,delete Uo.children;var jo=(0,Tn.H8)(es,so);return It.createElement(ai,(0,ft.Z)({},Uo,jo,{title:Ls,active:!!qi&&bs===qi.key,pos:Oo,data:Zr.data,isStart:ms,isEnd:ds,motion:Wn,motionNodes:bs===$n?Ir:null,motionType:No,onMotionStart:ni,onMotionEnd:to,treeNodeRequiredProps:so,onMouseMove:function(){cn(null)}}))}))});xi.displayName="NodeList";var Yi=xi,ci=mt(29873),Xn=mt(97153),qn=mt(3596),Ki=10,vr=function(Zn){(0,Nt.Z)(Fi,Zn);var wi=(0,Ut.Z)(Fi);function Fi(){var Tt;(0,Ht.Z)(this,Fi);for(var ee=arguments.length,le=new Array(ee),xe=0;xe<ee;xe++)le[xe]=arguments[xe];return Tt=wi.call.apply(wi,[this].concat(le)),Tt.destroyed=!1,Tt.delayedDragEnterLogic=void 0,Tt.loadingRetryTimes={},Tt.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,Tn.w$)()},Tt.dragStartMousePosition=null,Tt.dragNode=void 0,Tt.currentMouseOverDroppableNodeKey=null,Tt.listRef=It.createRef(),Tt.onNodeDragStart=function(fe,Ee){var Ae=Tt.state,yn=Ae.expandedKeys,Rn=Ae.keyEntities,Pi=Tt.props.onDragStart,An=Ee.props.eventKey;Tt.dragNode=Ee,Tt.dragStartMousePosition={x:fe.clientX,y:fe.clientY};var Mi=(0,ci._5)(yn,An);Tt.setState({draggingNodeKey:An,dragChildrenKeys:(0,ci.wA)(An,Rn),indent:Tt.listRef.current.getIndentWidth()}),Tt.setExpandedKeys(Mi),window.addEventListener("dragend",Tt.onWindowDragEnd),Pi==null||Pi({event:fe,node:(0,Tn.F)(Ee.props)})},Tt.onNodeDragEnter=function(fe,Ee){var Ae=Tt.state,yn=Ae.expandedKeys,Rn=Ae.keyEntities,Pi=Ae.dragChildrenKeys,An=Ae.flattenNodes,Mi=Ae.indent,pi=Tt.props,di=pi.onDragEnter,Wn=pi.onExpand,Bi=pi.allowDrop,sr=pi.direction,_i=Ee.props,Ui=_i.pos,qi=_i.eventKey,lr=(0,jt.Z)(Tt),je=lr.dragNode;if(Tt.currentMouseOverDroppableNodeKey!==qi&&(Tt.currentMouseOverDroppableNodeKey=qi),!je){Tt.resetDragState();return}var ve=(0,ci.OM)(fe,je,Ee,Mi,Tt.dragStartMousePosition,Bi,An,Rn,yn,sr),ke=ve.dropPosition,xn=ve.dropLevelOffset,cn=ve.dropTargetKey,ni=ve.dropContainerKey,Ti=ve.dropTargetPos,qe=ve.dropAllowed,Je=ve.dragOverNodeKey;if(Pi.indexOf(cn)!==-1||!qe){Tt.resetDragState();return}if(Tt.delayedDragEnterLogic||(Tt.delayedDragEnterLogic={}),Object.keys(Tt.delayedDragEnterLogic).forEach(function(sn){clearTimeout(Tt.delayedDragEnterLogic[sn])}),je.props.eventKey!==Ee.props.eventKey&&(fe.persist(),Tt.delayedDragEnterLogic[Ui]=window.setTimeout(function(){if(Tt.state.draggingNodeKey!==null){var sn=(0,Dt.Z)(yn),hn=(0,qn.Z)(Rn,Ee.props.eventKey);hn&&(hn.children||[]).length&&(sn=(0,ci.L0)(yn,Ee.props.eventKey)),"expandedKeys"in Tt.props||Tt.setExpandedKeys(sn),Wn==null||Wn(sn,{node:(0,Tn.F)(Ee.props),expanded:!0,nativeEvent:fe.nativeEvent})}},800)),je.props.eventKey===cn&&xn===0){Tt.resetDragState();return}Tt.setState({dragOverNodeKey:Je,dropPosition:ke,dropLevelOffset:xn,dropTargetKey:cn,dropContainerKey:ni,dropTargetPos:Ti,dropAllowed:qe}),di==null||di({event:fe,node:(0,Tn.F)(Ee.props),expandedKeys:yn})},Tt.onNodeDragOver=function(fe,Ee){var Ae=Tt.state,yn=Ae.dragChildrenKeys,Rn=Ae.flattenNodes,Pi=Ae.keyEntities,An=Ae.expandedKeys,Mi=Ae.indent,pi=Tt.props,di=pi.onDragOver,Wn=pi.allowDrop,Bi=pi.direction,sr=(0,jt.Z)(Tt),_i=sr.dragNode;if(_i){var Ui=(0,ci.OM)(fe,_i,Ee,Mi,Tt.dragStartMousePosition,Wn,Rn,Pi,An,Bi),qi=Ui.dropPosition,lr=Ui.dropLevelOffset,je=Ui.dropTargetKey,ve=Ui.dropContainerKey,ke=Ui.dropAllowed,xn=Ui.dropTargetPos,cn=Ui.dragOverNodeKey;yn.indexOf(je)!==-1||!ke||(_i.props.eventKey===je&&lr===0?Tt.state.dropPosition===null&&Tt.state.dropLevelOffset===null&&Tt.state.dropTargetKey===null&&Tt.state.dropContainerKey===null&&Tt.state.dropTargetPos===null&&Tt.state.dropAllowed===!1&&Tt.state.dragOverNodeKey===null||Tt.resetDragState():qi===Tt.state.dropPosition&&lr===Tt.state.dropLevelOffset&&je===Tt.state.dropTargetKey&&ve===Tt.state.dropContainerKey&&xn===Tt.state.dropTargetPos&&ke===Tt.state.dropAllowed&&cn===Tt.state.dragOverNodeKey||Tt.setState({dropPosition:qi,dropLevelOffset:lr,dropTargetKey:je,dropContainerKey:ve,dropTargetPos:xn,dropAllowed:ke,dragOverNodeKey:cn}),di==null||di({event:fe,node:(0,Tn.F)(Ee.props)}))}},Tt.onNodeDragLeave=function(fe,Ee){Tt.currentMouseOverDroppableNodeKey===Ee.props.eventKey&&!fe.currentTarget.contains(fe.relatedTarget)&&(Tt.resetDragState(),Tt.currentMouseOverDroppableNodeKey=null);var Ae=Tt.props.onDragLeave;Ae==null||Ae({event:fe,node:(0,Tn.F)(Ee.props)})},Tt.onWindowDragEnd=function(fe){Tt.onNodeDragEnd(fe,null,!0),window.removeEventListener("dragend",Tt.onWindowDragEnd)},Tt.onNodeDragEnd=function(fe,Ee){var Ae=Tt.props.onDragEnd;Tt.setState({dragOverNodeKey:null}),Tt.cleanDragState(),Ae==null||Ae({event:fe,node:(0,Tn.F)(Ee.props)}),Tt.dragNode=null,window.removeEventListener("dragend",Tt.onWindowDragEnd)},Tt.onNodeDrop=function(fe,Ee){var Ae,yn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Rn=Tt.state,Pi=Rn.dragChildrenKeys,An=Rn.dropPosition,Mi=Rn.dropTargetKey,pi=Rn.dropTargetPos,di=Rn.dropAllowed;if(di){var Wn=Tt.props.onDrop;if(Tt.setState({dragOverNodeKey:null}),Tt.cleanDragState(),Mi!==null){var Bi=(0,ne.Z)((0,ne.Z)({},(0,Tn.H8)(Mi,Tt.getTreeNodeRequiredProps())),{},{active:((Ae=Tt.getActiveItem())===null||Ae===void 0?void 0:Ae.key)===Mi,data:(0,qn.Z)(Tt.state.keyEntities,Mi).node}),sr=Pi.indexOf(Mi)!==-1;(0,he.ZP)(!sr,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var _i=(0,ci.yx)(pi),Ui={event:fe,node:(0,Tn.F)(Bi),dragNode:Tt.dragNode?(0,Tn.F)(Tt.dragNode.props):null,dragNodesKeys:[Tt.dragNode.props.eventKey].concat(Pi),dropToGap:An!==0,dropPosition:An+Number(_i[_i.length-1])};yn||Wn==null||Wn(Ui),Tt.dragNode=null}}},Tt.cleanDragState=function(){var fe=Tt.state.draggingNodeKey;fe!==null&&Tt.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Tt.dragStartMousePosition=null,Tt.currentMouseOverDroppableNodeKey=null},Tt.triggerExpandActionExpand=function(fe,Ee){var Ae=Tt.state,yn=Ae.expandedKeys,Rn=Ae.flattenNodes,Pi=Ee.expanded,An=Ee.key,Mi=Ee.isLeaf;if(!(Mi||fe.shiftKey||fe.metaKey||fe.ctrlKey)){var pi=Rn.filter(function(Wn){return Wn.key===An})[0],di=(0,Tn.F)((0,ne.Z)((0,ne.Z)({},(0,Tn.H8)(An,Tt.getTreeNodeRequiredProps())),{},{data:pi.data}));Tt.setExpandedKeys(Pi?(0,ci._5)(yn,An):(0,ci.L0)(yn,An)),Tt.onNodeExpand(fe,di)}},Tt.onNodeClick=function(fe,Ee){var Ae=Tt.props,yn=Ae.onClick,Rn=Ae.expandAction;Rn==="click"&&Tt.triggerExpandActionExpand(fe,Ee),yn==null||yn(fe,Ee)},Tt.onNodeDoubleClick=function(fe,Ee){var Ae=Tt.props,yn=Ae.onDoubleClick,Rn=Ae.expandAction;Rn==="doubleClick"&&Tt.triggerExpandActionExpand(fe,Ee),yn==null||yn(fe,Ee)},Tt.onNodeSelect=function(fe,Ee){var Ae=Tt.state.selectedKeys,yn=Tt.state,Rn=yn.keyEntities,Pi=yn.fieldNames,An=Tt.props,Mi=An.onSelect,pi=An.multiple,di=Ee.selected,Wn=Ee[Pi.key],Bi=!di;Bi?pi?Ae=(0,ci.L0)(Ae,Wn):Ae=[Wn]:Ae=(0,ci._5)(Ae,Wn);var sr=Ae.map(function(_i){var Ui=(0,qn.Z)(Rn,_i);return Ui?Ui.node:null}).filter(function(_i){return _i});Tt.setUncontrolledState({selectedKeys:Ae}),Mi==null||Mi(Ae,{event:"select",selected:Bi,node:Ee,selectedNodes:sr,nativeEvent:fe.nativeEvent})},Tt.onNodeCheck=function(fe,Ee,Ae){var yn=Tt.state,Rn=yn.keyEntities,Pi=yn.checkedKeys,An=yn.halfCheckedKeys,Mi=Tt.props,pi=Mi.checkStrictly,di=Mi.onCheck,Wn=Ee.key,Bi,sr={event:"check",node:Ee,checked:Ae,nativeEvent:fe.nativeEvent};if(pi){var _i=Ae?(0,ci.L0)(Pi,Wn):(0,ci._5)(Pi,Wn),Ui=(0,ci._5)(An,Wn);Bi={checked:_i,halfChecked:Ui},sr.checkedNodes=_i.map(function(xn){return(0,qn.Z)(Rn,xn)}).filter(function(xn){return xn}).map(function(xn){return xn.node}),Tt.setUncontrolledState({checkedKeys:_i})}else{var qi=(0,Xn.S)([].concat((0,Dt.Z)(Pi),[Wn]),!0,Rn),lr=qi.checkedKeys,je=qi.halfCheckedKeys;if(!Ae){var ve=new Set(lr);ve.delete(Wn);var ke=(0,Xn.S)(Array.from(ve),{checked:!1,halfCheckedKeys:je},Rn);lr=ke.checkedKeys,je=ke.halfCheckedKeys}Bi=lr,sr.checkedNodes=[],sr.checkedNodesPositions=[],sr.halfCheckedKeys=je,lr.forEach(function(xn){var cn=(0,qn.Z)(Rn,xn);if(cn){var ni=cn.node,Ti=cn.pos;sr.checkedNodes.push(ni),sr.checkedNodesPositions.push({node:ni,pos:Ti})}}),Tt.setUncontrolledState({checkedKeys:lr},!1,{halfCheckedKeys:je})}di==null||di(Bi,sr)},Tt.onNodeLoad=function(fe){var Ee=fe.key,Ae=new Promise(function(yn,Rn){Tt.setState(function(Pi){var An=Pi.loadedKeys,Mi=An===void 0?[]:An,pi=Pi.loadingKeys,di=pi===void 0?[]:pi,Wn=Tt.props,Bi=Wn.loadData,sr=Wn.onLoad;if(!Bi||Mi.indexOf(Ee)!==-1||di.indexOf(Ee)!==-1)return null;var _i=Bi(fe);return _i.then(function(){var Ui=Tt.state.loadedKeys,qi=(0,ci.L0)(Ui,Ee);sr==null||sr(qi,{event:"load",node:fe}),Tt.setUncontrolledState({loadedKeys:qi}),Tt.setState(function(lr){return{loadingKeys:(0,ci._5)(lr.loadingKeys,Ee)}}),yn()}).catch(function(Ui){if(Tt.setState(function(lr){return{loadingKeys:(0,ci._5)(lr.loadingKeys,Ee)}}),Tt.loadingRetryTimes[Ee]=(Tt.loadingRetryTimes[Ee]||0)+1,Tt.loadingRetryTimes[Ee]>=Ki){var qi=Tt.state.loadedKeys;(0,he.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Tt.setUncontrolledState({loadedKeys:(0,ci.L0)(qi,Ee)}),yn()}Rn(Ui)}),{loadingKeys:(0,ci.L0)(di,Ee)}})});return Ae.catch(function(){}),Ae},Tt.onNodeMouseEnter=function(fe,Ee){var Ae=Tt.props.onMouseEnter;Ae==null||Ae({event:fe,node:Ee})},Tt.onNodeMouseLeave=function(fe,Ee){var Ae=Tt.props.onMouseLeave;Ae==null||Ae({event:fe,node:Ee})},Tt.onNodeContextMenu=function(fe,Ee){var Ae=Tt.props.onRightClick;Ae&&(fe.preventDefault(),Ae({event:fe,node:Ee}))},Tt.onFocus=function(){var fe=Tt.props.onFocus;Tt.setState({focused:!0});for(var Ee=arguments.length,Ae=new Array(Ee),yn=0;yn<Ee;yn++)Ae[yn]=arguments[yn];fe==null||fe.apply(void 0,Ae)},Tt.onBlur=function(){var fe=Tt.props.onBlur;Tt.setState({focused:!1}),Tt.onActiveChange(null);for(var Ee=arguments.length,Ae=new Array(Ee),yn=0;yn<Ee;yn++)Ae[yn]=arguments[yn];fe==null||fe.apply(void 0,Ae)},Tt.getTreeNodeRequiredProps=function(){var fe=Tt.state,Ee=fe.expandedKeys,Ae=fe.selectedKeys,yn=fe.loadedKeys,Rn=fe.loadingKeys,Pi=fe.checkedKeys,An=fe.halfCheckedKeys,Mi=fe.dragOverNodeKey,pi=fe.dropPosition,di=fe.keyEntities;return{expandedKeys:Ee||[],selectedKeys:Ae||[],loadedKeys:yn||[],loadingKeys:Rn||[],checkedKeys:Pi||[],halfCheckedKeys:An||[],dragOverNodeKey:Mi,dropPosition:pi,keyEntities:di}},Tt.setExpandedKeys=function(fe){var Ee=Tt.state,Ae=Ee.treeData,yn=Ee.fieldNames,Rn=(0,Tn.oH)(Ae,fe,yn);Tt.setUncontrolledState({expandedKeys:fe,flattenNodes:Rn},!0)},Tt.onNodeExpand=function(fe,Ee){var Ae=Tt.state.expandedKeys,yn=Tt.state,Rn=yn.listChanging,Pi=yn.fieldNames,An=Tt.props,Mi=An.onExpand,pi=An.loadData,di=Ee.expanded,Wn=Ee[Pi.key];if(!Rn){var Bi=Ae.indexOf(Wn),sr=!di;if((0,he.ZP)(di&&Bi!==-1||!di&&Bi===-1,"Expand state not sync with index check"),sr?Ae=(0,ci.L0)(Ae,Wn):Ae=(0,ci._5)(Ae,Wn),Tt.setExpandedKeys(Ae),Mi==null||Mi(Ae,{node:Ee,expanded:sr,nativeEvent:fe.nativeEvent}),sr&&pi){var _i=Tt.onNodeLoad(Ee);_i&&_i.then(function(){var Ui=(0,Tn.oH)(Tt.state.treeData,Ae,Pi);Tt.setUncontrolledState({flattenNodes:Ui})}).catch(function(){var Ui=Tt.state.expandedKeys,qi=(0,ci._5)(Ui,Wn);Tt.setExpandedKeys(qi)})}}},Tt.onListChangeStart=function(){Tt.setUncontrolledState({listChanging:!0})},Tt.onListChangeEnd=function(){setTimeout(function(){Tt.setUncontrolledState({listChanging:!1})})},Tt.onActiveChange=function(fe){var Ee=Tt.state.activeKey,Ae=Tt.props.onActiveChange;Ee!==fe&&(Tt.setState({activeKey:fe}),fe!==null&&Tt.scrollTo({key:fe}),Ae==null||Ae(fe))},Tt.getActiveItem=function(){var fe=Tt.state,Ee=fe.activeKey,Ae=fe.flattenNodes;return Ee===null?null:Ae.find(function(yn){var Rn=yn.key;return Rn===Ee})||null},Tt.offsetActiveKey=function(fe){var Ee=Tt.state,Ae=Ee.flattenNodes,yn=Ee.activeKey,Rn=Ae.findIndex(function(Mi){var pi=Mi.key;return pi===yn});Rn===-1&&fe<0&&(Rn=Ae.length),Rn=(Rn+fe+Ae.length)%Ae.length;var Pi=Ae[Rn];if(Pi){var An=Pi.key;Tt.onActiveChange(An)}else Tt.onActiveChange(null)},Tt.onKeyDown=function(fe){var Ee=Tt.state,Ae=Ee.activeKey,yn=Ee.expandedKeys,Rn=Ee.checkedKeys,Pi=Ee.fieldNames,An=Tt.props,Mi=An.onKeyDown,pi=An.checkable,di=An.selectable;switch(fe.which){case we.UP:{Tt.offsetActiveKey(-1),fe.preventDefault();break}case we.DOWN:{Tt.offsetActiveKey(1),fe.preventDefault();break}}var Wn=Tt.getActiveItem();if(Wn&&Wn.data){var Bi=Tt.getTreeNodeRequiredProps(),sr=Wn.data.isLeaf===!1||!!(Wn.data[Pi.children]||[]).length,_i=(0,Tn.F)((0,ne.Z)((0,ne.Z)({},(0,Tn.H8)(Ae,Bi)),{},{data:Wn.data,active:!0}));switch(fe.which){case we.LEFT:{sr&&yn.includes(Ae)?Tt.onNodeExpand({},_i):Wn.parent&&Tt.onActiveChange(Wn.parent.key),fe.preventDefault();break}case we.RIGHT:{sr&&!yn.includes(Ae)?Tt.onNodeExpand({},_i):Wn.children&&Wn.children.length&&Tt.onActiveChange(Wn.children[0].key),fe.preventDefault();break}case we.ENTER:case we.SPACE:{pi&&!_i.disabled&&_i.checkable!==!1&&!_i.disableCheckbox?Tt.onNodeCheck({},_i,!Rn.includes(Ae)):!pi&&di&&!_i.disabled&&_i.selectable!==!1&&Tt.onNodeSelect({},_i);break}}}Mi==null||Mi(fe)},Tt.setUncontrolledState=function(fe){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Tt.destroyed){var yn=!1,Rn=!0,Pi={};Object.keys(fe).forEach(function(An){if(An in Tt.props){Rn=!1;return}yn=!0,Pi[An]=fe[An]}),yn&&(!Ee||Rn)&&Tt.setState((0,ne.Z)((0,ne.Z)({},Pi),Ae))}},Tt.scrollTo=function(fe){Tt.listRef.current.scrollTo(fe)},Tt}return(0,Wt.Z)(Fi,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var ee=this.props.activeKey;ee!==void 0&&ee!==this.state.activeKey&&(this.setState({activeKey:ee}),ee!==null&&this.scrollTo({key:ee}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var ee,le=this.state,xe=le.focused,fe=le.flattenNodes,Ee=le.keyEntities,Ae=le.draggingNodeKey,yn=le.activeKey,Rn=le.dropLevelOffset,Pi=le.dropContainerKey,An=le.dropTargetKey,Mi=le.dropPosition,pi=le.dragOverNodeKey,di=le.indent,Wn=this.props,Bi=Wn.prefixCls,sr=Wn.className,_i=Wn.style,Ui=Wn.showLine,qi=Wn.focusable,lr=Wn.tabIndex,je=lr===void 0?0:lr,ve=Wn.selectable,ke=Wn.showIcon,xn=Wn.icon,cn=Wn.switcherIcon,ni=Wn.draggable,Ti=Wn.checkable,qe=Wn.checkStrictly,Je=Wn.disabled,sn=Wn.motion,hn=Wn.loadData,bi=Wn.filterTreeNode,zi=Wn.height,li=Wn.itemHeight,Kn=Wn.virtual,ur=Wn.titleRender,Ln=Wn.dropIndicatorRender,wn=Wn.onContextMenu,_n=Wn.onScroll,Ei=Wn.direction,gn=Wn.rootClassName,Ji=Wn.rootStyle,er=(0,ue.Z)(this.props,{aria:!0,data:!0}),Qi;return ni&&((0,$t.Z)(ni)==="object"?Qi=ni:typeof ni=="function"?Qi={nodeDraggable:ni}:Qi={}),It.createElement(ye.k.Provider,{value:{prefixCls:Bi,selectable:ve,showIcon:ke,icon:xn,switcherIcon:cn,draggable:Qi,draggingNodeKey:Ae,checkable:Ti,checkStrictly:qe,disabled:Je,keyEntities:Ee,dropLevelOffset:Rn,dropContainerKey:Pi,dropTargetKey:An,dropPosition:Mi,dragOverNodeKey:pi,indent:di,direction:Ei,dropIndicatorRender:Ln,loadData:hn,filterTreeNode:bi,titleRender:ur,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}},It.createElement("div",{role:"tree",className:Yt()(Bi,sr,gn,(ee={},(0,Ft.Z)(ee,"".concat(Bi,"-show-line"),Ui),(0,Ft.Z)(ee,"".concat(Bi,"-focused"),xe),(0,Ft.Z)(ee,"".concat(Bi,"-active-focused"),yn!==null),ee)),style:Ji},It.createElement(Yi,(0,ft.Z)({ref:this.listRef,prefixCls:Bi,style:_i,data:fe,disabled:Je,selectable:ve,checkable:!!Ti,motion:sn,dragging:Ae!==null,height:zi,itemHeight:li,virtual:Kn,focusable:qi,focused:xe,tabIndex:je,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:wn,onScroll:_n},this.getTreeNodeRequiredProps(),er))))}}],[{key:"getDerivedStateFromProps",value:function(ee,le){var xe=le.prevProps,fe={prevProps:ee};function Ee(qi){return!xe&&qi in ee||xe&&xe[qi]!==ee[qi]}var Ae,yn=le.fieldNames;if(Ee("fieldNames")&&(yn=(0,Tn.w$)(ee.fieldNames),fe.fieldNames=yn),Ee("treeData")?Ae=ee.treeData:Ee("children")&&((0,he.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ae=(0,Tn.zn)(ee.children)),Ae){fe.treeData=Ae;var Rn=(0,Tn.I8)(Ae,{fieldNames:yn});fe.keyEntities=(0,ne.Z)((0,Ft.Z)({},$n,ri),Rn.keyEntities)}var Pi=fe.keyEntities||le.keyEntities;if(Ee("expandedKeys")||xe&&Ee("autoExpandParent"))fe.expandedKeys=ee.autoExpandParent||!xe&&ee.defaultExpandParent?(0,ci.r7)(ee.expandedKeys,Pi):ee.expandedKeys;else if(!xe&&ee.defaultExpandAll){var An=(0,ne.Z)({},Pi);delete An[$n],fe.expandedKeys=Object.keys(An).map(function(qi){return An[qi].key})}else!xe&&ee.defaultExpandedKeys&&(fe.expandedKeys=ee.autoExpandParent||ee.defaultExpandParent?(0,ci.r7)(ee.defaultExpandedKeys,Pi):ee.defaultExpandedKeys);if(fe.expandedKeys||delete fe.expandedKeys,Ae||fe.expandedKeys){var Mi=(0,Tn.oH)(Ae||le.treeData,fe.expandedKeys||le.expandedKeys,yn);fe.flattenNodes=Mi}if(ee.selectable&&(Ee("selectedKeys")?fe.selectedKeys=(0,ci.BT)(ee.selectedKeys,ee):!xe&&ee.defaultSelectedKeys&&(fe.selectedKeys=(0,ci.BT)(ee.defaultSelectedKeys,ee))),ee.checkable){var pi;if(Ee("checkedKeys")?pi=(0,ci.E6)(ee.checkedKeys)||{}:!xe&&ee.defaultCheckedKeys?pi=(0,ci.E6)(ee.defaultCheckedKeys)||{}:Ae&&(pi=(0,ci.E6)(ee.checkedKeys)||{checkedKeys:le.checkedKeys,halfCheckedKeys:le.halfCheckedKeys}),pi){var di=pi,Wn=di.checkedKeys,Bi=Wn===void 0?[]:Wn,sr=di.halfCheckedKeys,_i=sr===void 0?[]:sr;if(!ee.checkStrictly){var Ui=(0,Xn.S)(Bi,!0,Pi);Bi=Ui.checkedKeys,_i=Ui.halfCheckedKeys}fe.checkedKeys=Bi,fe.halfCheckedKeys=_i}}return Ee("loadedKeys")&&(fe.loadedKeys=ee.loadedKeys),fe}}]),Fi}(It.Component);vr.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:Ze,allowDrop:function(){return!0},expandAction:!1},vr.TreeNode=Xe.Z;var ki=vr,Or=ki,Ii=mt(73148),ao=mt(56747),qr={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"},Do=qr,ui=mt(84089),Co=function(wi,Fi){return It.createElement(ui.Z,(0,ft.Z)({},wi,{ref:Fi,icon:Do}))},bo=It.forwardRef(Co),Kr=mt(53124),wo=mt(50881),Sr=mt(33603),Xr=mt(32157);const Br=4;function yo(Zn){const{dropPosition:wi,dropLevelOffset:Fi,prefixCls:Tt,indent:ee,direction:le="ltr"}=Zn,xe=le==="ltr"?"left":"right",fe=le==="ltr"?"right":"left",Ee={[xe]:-Fi*ee+Br,[fe]:0};switch(wi){case-1:Ee.top=-3;break;case 1:Ee.bottom=-3;break;default:Ee.bottom=-3,Ee[xe]=ee+Br;break}return It.createElement("div",{style:Ee,className:`${Tt}-drop-indicator`})}var ko=mt(99184),kn=It.forwardRef((Zn,wi)=>{const{getPrefixCls:Fi,direction:Tt,virtual:ee,tree:le}=It.useContext(Kr.E_),{prefixCls:xe,className:fe,showIcon:Ee=!1,showLine:Ae,switcherIcon:yn,blockNode:Rn=!1,children:Pi,checkable:An=!1,selectable:Mi=!0,draggable:pi,motion:di,style:Wn}=Zn,Bi=Fi("tree",xe),sr=Fi(),_i=di!=null?di:Object.assign(Object.assign({},(0,Sr.Z)(sr)),{motionAppear:!1}),Ui=Object.assign(Object.assign({},Zn),{checkable:An,selectable:Mi,showIcon:Ee,motion:_i,blockNode:Rn,showLine:!!Ae,dropIndicatorRender:yo}),[qi,lr]=(0,Xr.ZP)(Bi),je=It.useMemo(()=>{if(!pi)return!1;let ke={};switch(typeof pi){case"function":ke.nodeDraggable=pi;break;case"object":ke=Object.assign({},pi);break;default:break}return ke.icon!==!1&&(ke.icon=ke.icon||It.createElement(wo.Z,null)),ke},[pi]),ve=ke=>It.createElement(ko.Z,{prefixCls:Bi,switcherIcon:yn,treeNodeProps:ke,showLine:Ae});return qi(It.createElement(Or,Object.assign({itemHeight:20,ref:wi,virtual:ee},Ui,{style:Object.assign(Object.assign({},le==null?void 0:le.style),Wn),prefixCls:Bi,className:Yt()({[`${Bi}-icon-hide`]:!Ee,[`${Bi}-block-node`]:Rn,[`${Bi}-unselectable`]:!Mi,[`${Bi}-rtl`]:Tt==="rtl"},le==null?void 0:le.className,fe,lr),direction:Tt,checkable:An&&It.createElement("span",{className:`${Bi}-checkbox-inner`}),selectable:Mi,switcherIcon:ve,draggable:je}),Pi))}),Ce;(function(Zn){Zn[Zn.None=0]="None",Zn[Zn.Start=1]="Start",Zn[Zn.End=2]="End"})(Ce||(Ce={}));function si(Zn,wi){function Fi(Tt){const{key:ee,children:le}=Tt;wi(ee,Tt)!==!1&&si(le||[],wi)}Zn.forEach(Fi)}function Wi(Zn){let{treeData:wi,expandedKeys:Fi,startKey:Tt,endKey:ee}=Zn;const le=[];let xe=Ce.None;if(Tt&&Tt===ee)return[Tt];if(!Tt||!ee)return[];function fe(Ee){return Ee===Tt||Ee===ee}return si(wi,Ee=>{if(xe===Ce.End)return!1;if(fe(Ee)){if(le.push(Ee),xe===Ce.None)xe=Ce.Start;else if(xe===Ce.Start)return xe=Ce.End,!1}else xe===Ce.Start&&le.push(Ee);return Fi.includes(Ee)}),le}function Gi(Zn,wi){const Fi=(0,Dt.Z)(wi),Tt=[];return si(Zn,(ee,le)=>{const xe=Fi.indexOf(ee);return xe!==-1&&(Tt.push(le),Fi.splice(xe,1)),!!Fi.length}),Tt}var Tr=function(Zn,wi){var Fi={};for(var Tt in Zn)Object.prototype.hasOwnProperty.call(Zn,Tt)&&wi.indexOf(Tt)<0&&(Fi[Tt]=Zn[Tt]);if(Zn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,Tt=Object.getOwnPropertySymbols(Zn);ee<Tt.length;ee++)wi.indexOf(Tt[ee])<0&&Object.prototype.propertyIsEnumerable.call(Zn,Tt[ee])&&(Fi[Tt[ee]]=Zn[Tt[ee]]);return Fi};function Lr(Zn){const{isLeaf:wi,expanded:Fi}=Zn;return wi?It.createElement(Ii.Z,null):Fi?It.createElement(ao.Z,null):It.createElement(bo,null)}function Cr(Zn){let{treeData:wi,children:Fi}=Zn;return wi||(0,Tn.zn)(Fi)}const jr=(Zn,wi)=>{var{defaultExpandAll:Fi,defaultExpandParent:Tt,defaultExpandedKeys:ee}=Zn,le=Tr(Zn,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const xe=It.useRef(),fe=It.useRef(),Ee=()=>{const{keyEntities:je}=(0,Tn.I8)(Cr(le));let ve;return Fi?ve=Object.keys(je):Tt?ve=(0,ci.r7)(le.expandedKeys||ee||[],je):ve=le.expandedKeys||ee,ve},[Ae,yn]=It.useState(le.selectedKeys||le.defaultSelectedKeys||[]),[Rn,Pi]=It.useState(()=>Ee());It.useEffect(()=>{"selectedKeys"in le&&yn(le.selectedKeys)},[le.selectedKeys]),It.useEffect(()=>{"expandedKeys"in le&&Pi(le.expandedKeys)},[le.expandedKeys]);const An=(je,ve)=>{var ke;return"expandedKeys"in le||Pi(je),(ke=le.onExpand)===null||ke===void 0?void 0:ke.call(le,je,ve)},Mi=(je,ve)=>{var ke;const{multiple:xn}=le,{node:cn,nativeEvent:ni}=ve,{key:Ti=""}=cn,qe=Cr(le),Je=Object.assign(Object.assign({},ve),{selected:!0}),sn=(ni==null?void 0:ni.ctrlKey)||(ni==null?void 0:ni.metaKey),hn=ni==null?void 0:ni.shiftKey;let bi;xn&&sn?(bi=je,xe.current=Ti,fe.current=bi,Je.selectedNodes=Gi(qe,bi)):xn&&hn?(bi=Array.from(new Set([].concat((0,Dt.Z)(fe.current||[]),(0,Dt.Z)(Wi({treeData:qe,expandedKeys:Rn,startKey:Ti,endKey:xe.current}))))),Je.selectedNodes=Gi(qe,bi)):(bi=[Ti],xe.current=Ti,fe.current=bi,Je.selectedNodes=Gi(qe,bi)),(ke=le.onSelect)===null||ke===void 0||ke.call(le,bi,Je),"selectedKeys"in le||yn(bi)},{getPrefixCls:pi,direction:di}=It.useContext(Kr.E_),{prefixCls:Wn,className:Bi,showIcon:sr=!0,expandAction:_i="click"}=le,Ui=Tr(le,["prefixCls","className","showIcon","expandAction"]),qi=pi("tree",Wn),lr=Yt()(`${qi}-directory`,{[`${qi}-directory-rtl`]:di==="rtl"},Bi);return It.createElement(kn,Object.assign({icon:Lr,ref:wi,blockNode:!0},Ui,{showIcon:sr,expandAction:_i,prefixCls:qi,className:lr,expandedKeys:Rn,selectedKeys:Ae,onSelect:Mi,onExpand:An}))};var Wr=It.forwardRef(jr);const or=kn;or.DirectoryTree=Wr,or.TreeNode=Xe.Z;var Gt=or},32157:function(jn,tn,mt){"use strict";mt.d(tn,{TM:function(){return de},Yk:function(){return Yt}});var ft=mt(34367),Ft=mt(63185),$t=mt(14747),ne=mt(33507),Dt=mt(45503),Ht=mt(67968);const Wt=new ft.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),jt=(we,ue)=>({[`.${we}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${ue.motionDurationSlow}`}}}),Nt=(we,ue)=>({[`.${we}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:ue.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${ue.lineWidthBold}px solid ${ue.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Ut=(we,ue)=>{const{treeCls:he,treeNodeCls:It,treeNodePadding:ye,titleHeight:Ze,nodeSelectedBg:pe,nodeHoverBg:be}=ue,Rt=ue.paddingXS;return{[he]:Object.assign(Object.assign({},(0,$t.Wf)(ue)),{background:ue.colorBgContainer,borderRadius:ue.borderRadius,transition:`background-color ${ue.motionDurationSlow}`,[`&${he}-rtl`]:{[`${he}-switcher`]:{"&_close":{[`${he}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${he}-active-focused)`]:Object.assign({},(0,$t.oN)(ue)),[`${he}-list-holder-inner`]:{alignItems:"flex-start"},[`&${he}-block-node`]:{[`${he}-list-holder-inner`]:{alignItems:"stretch",[`${he}-node-content-wrapper`]:{flex:"auto"},[`${It}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:ye,insetInlineStart:0,border:`1px solid ${ue.colorPrimary}`,opacity:0,animationName:Wt,animationDuration:ue.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${It}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${ye}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${he}-node-content-wrapper`]:{color:ue.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${he}-node-content-wrapper`]:Object.assign({},(0,$t.oN)(ue)),[`&:not(${It}-disabled).filter-node ${he}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${he}-draggable-icon`]:{flexShrink:0,width:Ze,lineHeight:`${Ze}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${ue.motionDurationSlow}`,[`${It}:hover &`]:{opacity:.45}},[`&${It}-disabled`]:{[`${he}-draggable-icon`]:{visibility:"hidden"}}}},[`${he}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Ze}},[`${he}-draggable-icon`]:{visibility:"hidden"},[`${he}-switcher`]:Object.assign(Object.assign({},jt(we,ue)),{position:"relative",flex:"none",alignSelf:"stretch",width:Ze,margin:0,lineHeight:`${Ze}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${he}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:ue.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Ze/2,bottom:-ye,marginInlineStart:-1,borderInlineEnd:`1px solid ${ue.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Ze/2*.8,height:Ze/2,borderBottom:`1px solid ${ue.colorBorder}`,content:'""'}}}),[`${he}-checkbox`]:{top:"initial",marginInlineEnd:Rt},[`${he}-node-content-wrapper, ${he}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:Ze,margin:0,padding:`0 ${ue.paddingXS/2}px`,color:"inherit",lineHeight:`${Ze}px`,background:"transparent",borderRadius:ue.borderRadius,cursor:"pointer",transition:`all ${ue.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:be},[`&${he}-node-selected`]:{backgroundColor:pe},[`${he}-iconEle`]:{display:"inline-block",width:Ze,height:Ze,lineHeight:`${Ze}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${he}-unselectable ${he}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${he}-node-content-wrapper`]:Object.assign({lineHeight:`${Ze}px`,userSelect:"none"},Nt(we,ue)),[`${It}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${ue.colorPrimary}`}},"&-show-line":{[`${he}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Ze/2,bottom:-ye,borderInlineEnd:`1px solid ${ue.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${he}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${It}-leaf-last`]:{[`${he}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${Ze/2}px !important`}}}}})}},De=we=>{const{treeCls:ue,treeNodeCls:he,treeNodePadding:It,directoryNodeSelectedBg:ye,directoryNodeSelectedColor:Ze}=we;return{[`${ue}${ue}-directory`]:{[he]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:It,insetInlineStart:0,transition:`background-color ${we.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:we.controlItemBgHover}},"> *":{zIndex:1},[`${ue}-switcher`]:{transition:`color ${we.motionDurationMid}`},[`${ue}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${ue}-node-selected`]:{color:Ze,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:ye},[`${ue}-switcher`]:{color:Ze},[`${ue}-node-content-wrapper`]:{color:Ze,background:"transparent"}}}}}},Yt=(we,ue)=>{const he=`.${we}`,It=`${he}-treenode`,ye=ue.paddingXS/2,Ze=(0,Dt.TS)(ue,{treeCls:he,treeNodeCls:It,treeNodePadding:ye});return[Ut(we,Ze),De(Ze)]},de=we=>{const{controlHeightSM:ue}=we;return{titleHeight:ue,nodeHoverBg:we.controlItemBgHover,nodeSelectedBg:we.controlItemBgActive}};tn.ZP=(0,Ht.Z)("Tree",(we,ue)=>{let{prefixCls:he}=ue;return[{[we.componentCls]:(0,Ft.C2)(`${he}-checkbox`,we)},Yt(he,we),(0,ne.Z)(we)]},we=>{const{colorTextLightSolid:ue,colorPrimary:he}=we;return Object.assign(Object.assign({},de(we)),{directoryNodeSelectedColor:ue,directoryNodeSelectedBg:he})})},99184:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return he}});var ft=mt(87462),Ft=mt(67294),$t={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"},ne=$t,Dt=mt(84089),Ht=function(ye,Ze){return Ft.createElement(Dt.Z,(0,ft.Z)({},ye,{ref:Ze,icon:ne}))},Wt=Ft.forwardRef(Ht),jt=mt(73148),Nt=mt(3407),Ut=mt(34182),De=mt(74664),Yt=mt(94184),de=mt.n(Yt),we=mt(96159),he=It=>{const{prefixCls:ye,switcherIcon:Ze,treeNodeProps:pe,showLine:be}=It,{isLeaf:Rt,expanded:zt,loading:Qt}=pe;if(Qt)return Ft.createElement(Nt.Z,{className:`${ye}-switcher-loading-icon`});let te;if(be&&typeof be=="object"&&(te=be.showLeafIcon),Rt){if(!be)return null;if(typeof te!="boolean"&&te){const en=typeof te=="function"?te(pe):te,ie=`${ye}-switcher-line-custom-icon`;return(0,we.l$)(en)?(0,we.Tm)(en,{className:de()(en.props.className||"",ie)}):en}return te?Ft.createElement(jt.Z,{className:`${ye}-switcher-line-icon`}):Ft.createElement("span",{className:`${ye}-switcher-leaf-line`})}const Ie=`${ye}-switcher-icon`,He=typeof Ze=="function"?Ze(pe):Ze;return(0,we.l$)(He)?(0,we.Tm)(He,{className:de()(He.props.className||"",Ie)}):He!==void 0?He:be?zt?Ft.createElement(Ut.Z,{className:`${ye}-switcher-line-icon`}):Ft.createElement(De.Z,{className:`${ye}-switcher-line-icon`}):Ft.createElement(Wt,{className:Ie})}},59810:function(jn,tn,mt){"use strict";mt.d(tn,{default:function(){return Ri}});var ft=mt(67294),Ft=mt(74902),$t=mt(94184),ne=mt.n($t),Dt=mt(87462),Ht=mt(15671),Wt=mt(43144),jt=mt(60136),Nt=mt(51630),Ut=mt(4942),De=mt(45987),Yt=mt(74165),de=mt(71002),we=mt(15861),ue=mt(64217);function he($e,Ge){var un="cannot ".concat($e.method," ").concat($e.action," ").concat(Ge.status,"'"),xi=new Error(un);return xi.status=Ge.status,xi.method=$e.method,xi.url=$e.action,xi}function It($e){var Ge=$e.responseText||$e.response;if(!Ge)return Ge;try{return JSON.parse(Ge)}catch(un){return Ge}}function ye($e){var Ge=new XMLHttpRequest;$e.onProgress&&Ge.upload&&(Ge.upload.onprogress=function(ci){ci.total>0&&(ci.percent=ci.loaded/ci.total*100),$e.onProgress(ci)});var un=new FormData;$e.data&&Object.keys($e.data).forEach(function(Yi){var ci=$e.data[Yi];if(Array.isArray(ci)){ci.forEach(function(Xn){un.append("".concat(Yi,"[]"),Xn)});return}un.append(Yi,ci)}),$e.file instanceof Blob?un.append($e.filename,$e.file,$e.file.name):un.append($e.filename,$e.file),Ge.onerror=function(ci){$e.onError(ci)},Ge.onload=function(){return Ge.status<200||Ge.status>=300?$e.onError(he($e,Ge),It(Ge)):$e.onSuccess(It(Ge),Ge)},Ge.open($e.method,$e.action,!0),$e.withCredentials&&"withCredentials"in Ge&&(Ge.withCredentials=!0);var xi=$e.headers||{};return xi["X-Requested-With"]!==null&&Ge.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(xi).forEach(function(Yi){xi[Yi]!==null&&Ge.setRequestHeader(Yi,xi[Yi])}),Ge.send(un),{abort:function(){Ge.abort()}}}var Ze=+new Date,pe=0;function be(){return"rc-upload-".concat(Ze,"-").concat(++pe)}var Rt=mt(80334),zt=function($e,Ge){if($e&&Ge){var un=Array.isArray(Ge)?Ge:Ge.split(","),xi=$e.name||"",Yi=$e.type||"",ci=Yi.replace(/\/.*$/,"");return un.some(function(Xn){var qn=Xn.trim();if(/^\*(\/\*)?$/.test(Xn))return!0;if(qn.charAt(0)==="."){var Ki=xi.toLowerCase(),vr=qn.toLowerCase(),ki=[vr];return(vr===".jpg"||vr===".jpeg")&&(ki=[".jpg",".jpeg"]),ki.some(function(Or){return Ki.endsWith(Or)})}return/\/\*$/.test(qn)?ci===qn.replace(/\/.*$/,""):Yi===qn?!0:/^\w+$/.test(qn)?((0,Rt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(qn,"'.Skip for check.")),!0):!1})}return!0};function Qt($e,Ge){var un=$e.createReader(),xi=[];function Yi(){un.readEntries(function(ci){var Xn=Array.prototype.slice.apply(ci);xi=xi.concat(Xn);var qn=!Xn.length;qn?Ge(xi):Yi()})}Yi()}var te=function(Ge,un,xi){var Yi=function ci(Xn,qn){Xn&&(Xn.path=qn||"",Xn.isFile?Xn.file(function(Ki){xi(Ki)&&(Xn.fullPath&&!Ki.webkitRelativePath&&(Object.defineProperties(Ki,{webkitRelativePath:{writable:!0}}),Ki.webkitRelativePath=Xn.fullPath.replace(/^\//,""),Object.defineProperties(Ki,{webkitRelativePath:{writable:!1}})),un([Ki]))}):Xn.isDirectory&&Qt(Xn,function(Ki){Ki.forEach(function(vr){ci(vr,"".concat(qn).concat(Xn.name,"/"))})}))};Ge.forEach(function(ci){Yi(ci.webkitGetAsEntry())})},Ie=te,He=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],en=function($e){(0,jt.Z)(un,$e);var Ge=(0,Nt.Z)(un);function un(){var xi;(0,Ht.Z)(this,un);for(var Yi=arguments.length,ci=new Array(Yi),Xn=0;Xn<Yi;Xn++)ci[Xn]=arguments[Xn];return xi=Ge.call.apply(Ge,[this].concat(ci)),xi.state={uid:be()},xi.reqs={},xi.fileInput=void 0,xi._isMounted=void 0,xi.onChange=function(qn){var Ki=xi.props,vr=Ki.accept,ki=Ki.directory,Or=qn.target.files,Ii=(0,Ft.Z)(Or).filter(function(ao){return!ki||zt(ao,vr)});xi.uploadFiles(Ii),xi.reset()},xi.onClick=function(qn){var Ki=xi.fileInput;if(Ki){var vr=xi.props,ki=vr.children,Or=vr.onClick;if(ki&&ki.type==="button"){var Ii=Ki.parentNode;Ii.focus(),Ii.querySelector("button").blur()}Ki.click(),Or&&Or(qn)}},xi.onKeyDown=function(qn){qn.key==="Enter"&&xi.onClick(qn)},xi.onFileDrop=function(qn){var Ki=xi.props.multiple;if(qn.preventDefault(),qn.type!=="dragover")if(xi.props.directory)Ie(Array.prototype.slice.call(qn.dataTransfer.items),xi.uploadFiles,function(ki){return zt(ki,xi.props.accept)});else{var vr=(0,Ft.Z)(qn.dataTransfer.files).filter(function(ki){return zt(ki,xi.props.accept)});Ki===!1&&(vr=vr.slice(0,1)),xi.uploadFiles(vr)}},xi.uploadFiles=function(qn){var Ki=(0,Ft.Z)(qn),vr=Ki.map(function(ki){return ki.uid=be(),xi.processFile(ki,Ki)});Promise.all(vr).then(function(ki){var Or=xi.props.onBatchStart;Or==null||Or(ki.map(function(Ii){var ao=Ii.origin,qr=Ii.parsedFile;return{file:ao,parsedFile:qr}})),ki.filter(function(Ii){return Ii.parsedFile!==null}).forEach(function(Ii){xi.post(Ii)})})},xi.processFile=function(){var qn=(0,we.Z)((0,Yt.Z)().mark(function Ki(vr,ki){var Or,Ii,ao,qr,Do,ui,Co,bo,Kr;return(0,Yt.Z)().wrap(function(Sr){for(;;)switch(Sr.prev=Sr.next){case 0:if(Or=xi.props.beforeUpload,Ii=vr,!Or){Sr.next=14;break}return Sr.prev=3,Sr.next=6,Or(vr,ki);case 6:Ii=Sr.sent,Sr.next=12;break;case 9:Sr.prev=9,Sr.t0=Sr.catch(3),Ii=!1;case 12:if(Ii!==!1){Sr.next=14;break}return Sr.abrupt("return",{origin:vr,parsedFile:null,action:null,data:null});case 14:if(ao=xi.props.action,typeof ao!="function"){Sr.next=21;break}return Sr.next=18,ao(vr);case 18:qr=Sr.sent,Sr.next=22;break;case 21:qr=ao;case 22:if(Do=xi.props.data,typeof Do!="function"){Sr.next=29;break}return Sr.next=26,Do(vr);case 26:ui=Sr.sent,Sr.next=30;break;case 29:ui=Do;case 30:return Co=((0,de.Z)(Ii)==="object"||typeof Ii=="string")&&Ii?Ii:vr,Co instanceof File?bo=Co:bo=new File([Co],vr.name,{type:vr.type}),Kr=bo,Kr.uid=vr.uid,Sr.abrupt("return",{origin:vr,data:ui,parsedFile:Kr,action:qr});case 35:case"end":return Sr.stop()}},Ki,null,[[3,9]])}));return function(Ki,vr){return qn.apply(this,arguments)}}(),xi.saveFileInput=function(qn){xi.fileInput=qn},xi}return(0,Wt.Z)(un,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Yi){var ci=this,Xn=Yi.data,qn=Yi.origin,Ki=Yi.action,vr=Yi.parsedFile;if(this._isMounted){var ki=this.props,Or=ki.onStart,Ii=ki.customRequest,ao=ki.name,qr=ki.headers,Do=ki.withCredentials,ui=ki.method,Co=qn.uid,bo=Ii||ye,Kr={action:Ki,filename:ao,data:Xn,file:vr,headers:qr,withCredentials:Do,method:ui||"post",onProgress:function(Sr){var Xr=ci.props.onProgress;Xr==null||Xr(Sr,vr)},onSuccess:function(Sr,Xr){var Br=ci.props.onSuccess;Br==null||Br(Sr,vr,Xr),delete ci.reqs[Co]},onError:function(Sr,Xr){var Br=ci.props.onError;Br==null||Br(Sr,Xr,vr),delete ci.reqs[Co]}};Or(qn),this.reqs[Co]=bo(Kr)}}},{key:"reset",value:function(){this.setState({uid:be()})}},{key:"abort",value:function(Yi){var ci=this.reqs;if(Yi){var Xn=Yi.uid?Yi.uid:Yi;ci[Xn]&&ci[Xn].abort&&ci[Xn].abort(),delete ci[Xn]}else Object.keys(ci).forEach(function(qn){ci[qn]&&ci[qn].abort&&ci[qn].abort(),delete ci[qn]})}},{key:"render",value:function(){var Yi,ci=this.props,Xn=ci.component,qn=ci.prefixCls,Ki=ci.className,vr=ci.disabled,ki=ci.id,Or=ci.style,Ii=ci.multiple,ao=ci.accept,qr=ci.capture,Do=ci.children,ui=ci.directory,Co=ci.openFileDialogOnClick,bo=ci.onMouseEnter,Kr=ci.onMouseLeave,wo=(0,De.Z)(ci,He),Sr=ne()((Yi={},(0,Ut.Z)(Yi,qn,!0),(0,Ut.Z)(Yi,"".concat(qn,"-disabled"),vr),(0,Ut.Z)(Yi,Ki,Ki),Yi)),Xr=ui?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Br=vr?{}:{onClick:Co?this.onClick:function(){},onKeyDown:Co?this.onKeyDown:function(){},onMouseEnter:bo,onMouseLeave:Kr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ft.createElement(Xn,(0,Dt.Z)({},Br,{className:Sr,role:"button",style:Or}),ft.createElement("input",(0,Dt.Z)({},(0,ue.Z)(wo,{aria:!0,data:!0}),{id:ki,disabled:vr,type:"file",ref:this.saveFileInput,onClick:function(ko){return ko.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:ao},Xr,{multiple:Ii,onChange:this.onChange},qr!=null?{capture:qr}:{})),Do)}}]),un}(ft.Component),ie=en;function an(){}var nn=function($e){(0,jt.Z)(un,$e);var Ge=(0,Nt.Z)(un);function un(){var xi;(0,Ht.Z)(this,un);for(var Yi=arguments.length,ci=new Array(Yi),Xn=0;Xn<Yi;Xn++)ci[Xn]=arguments[Xn];return xi=Ge.call.apply(Ge,[this].concat(ci)),xi.uploader=void 0,xi.saveUploader=function(qn){xi.uploader=qn},xi}return(0,Wt.Z)(un,[{key:"abort",value:function(Yi){this.uploader.abort(Yi)}},{key:"render",value:function(){return ft.createElement(ie,(0,Dt.Z)({},this.props,{ref:this.saveUploader}))}}]),un}(ft.Component);nn.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:an,onError:an,onSuccess:an,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Vn=nn,Ne=Vn,Ye=mt(5663),zn=mt(73935),Gn=mt(53124),Me=mt(98866),_t=mt(10110),rn=mt(24457),ti={icon:function(Ge,un){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:un}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Ge}}]}},name:"file",theme:"twotone"},vn=ti,ze=mt(84089),on=function(Ge,un){return ft.createElement(ze.Z,(0,Dt.Z)({},Ge,{ref:un,icon:vn}))},On=ft.forwardRef(on),Ni=mt(3407),gi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Dn=gi,Jn=function(Ge,un){return ft.createElement(ze.Z,(0,Dt.Z)({},Ge,{ref:un,icon:Dn}))},Ai=ft.forwardRef(Jn),hi={icon:function(Ge,un){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Ge}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:un}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:un}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:un}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Ge}}]}},name:"picture",theme:"twotone"},qt=hi,kt=function(Ge,un){return ft.createElement(ze.Z,(0,Dt.Z)({},Ge,{ref:un,icon:qt}))},Ct=ft.forwardRef(kt),Pt=mt(38379),At=mt(57838),wt=mt(33603),Xt=mt(96159),Re=mt(71577);function We($e){return Object.assign(Object.assign({},$e),{lastModified:$e.lastModified,lastModifiedDate:$e.lastModifiedDate,name:$e.name,size:$e.size,type:$e.type,uid:$e.uid,percent:0,originFileObj:$e})}function In($e,Ge){const un=(0,Ft.Z)(Ge),xi=un.findIndex(Yi=>{let{uid:ci}=Yi;return ci===$e.uid});return xi===-1?un.push($e):un[xi]=$e,un}function Hn($e,Ge){const un=$e.uid!==void 0?"uid":"name";return Ge.filter(xi=>xi[un]===$e[un])[0]}function Un($e,Ge){const un=$e.uid!==void 0?"uid":"name",xi=Ge.filter(Yi=>Yi[un]!==$e[un]);return xi.length===Ge.length?null:xi}const Yn=function(){const Ge=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),xi=Ge[Ge.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(xi)||[""])[0]},Fe=$e=>$e.indexOf("image/")===0,bn=$e=>{if($e.type&&!$e.thumbUrl)return Fe($e.type);const Ge=$e.thumbUrl||$e.url||"",un=Yn(Ge);return/^data:image\//.test(Ge)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(un)?!0:!(/^data:/.test(Ge)||un)},En=200;function Qn($e){return new Promise(Ge=>{if(!$e.type||!Fe($e.type)){Ge("");return}const un=document.createElement("canvas");un.width=En,un.height=En,un.style.cssText=`position: fixed; left: 0; top: 0; width: ${En}px; height: ${En}px; z-index: 9999; display: none;`,document.body.appendChild(un);const xi=un.getContext("2d"),Yi=new Image;if(Yi.onload=()=>{const{width:ci,height:Xn}=Yi;let qn=En,Ki=En,vr=0,ki=0;ci>Xn?(Ki=Xn*(En/ci),ki=-(Ki-qn)/2):(qn=ci*(En/Xn),vr=-(qn-Ki)/2),xi.drawImage(Yi,vr,ki,qn,Ki);const Or=un.toDataURL();document.body.removeChild(un),window.URL.revokeObjectURL(Yi.src),Ge(Or)},Yi.crossOrigin="anonymous",$e.type.startsWith("image/svg+xml")){const ci=new FileReader;ci.onload=()=>{ci.result&&(Yi.src=ci.result)},ci.readAsDataURL($e)}else if($e.type.startsWith("image/gif")){const ci=new FileReader;ci.onload=()=>{ci.result&&Ge(ci.result)},ci.readAsDataURL($e)}else Yi.src=window.URL.createObjectURL($e)})}var Sn=mt(84249),Vi=mt(90674),Qe=mt(99569),Pn=mt(38703),Ci=mt(83062),Oi=ft.forwardRef(($e,Ge)=>{let{prefixCls:un,className:xi,style:Yi,locale:ci,listType:Xn,file:qn,items:Ki,progress:vr,iconRender:ki,actionIconRender:Or,itemRender:Ii,isImgUrl:ao,showPreviewIcon:qr,showRemoveIcon:Do,showDownloadIcon:ui,previewIcon:Co,removeIcon:bo,downloadIcon:Kr,onPreview:wo,onDownload:Sr,onClose:Xr}=$e;var Br,yo;const{status:ko}=qn,[oi,kn]=ft.useState(ko);ft.useEffect(()=>{ko!=="removed"&&kn(ko)},[ko]);const[Ce,si]=ft.useState(!1);ft.useEffect(()=>{const fe=setTimeout(()=>{si(!0)},300);return()=>{clearTimeout(fe)}},[]);const Wi=ki(qn);let Gi=ft.createElement("div",{className:`${un}-icon`},Wi);if(Xn==="picture"||Xn==="picture-card"||Xn==="picture-circle")if(oi==="uploading"||!qn.thumbUrl&&!qn.url){const fe=ne()(`${un}-list-item-thumbnail`,{[`${un}-list-item-file`]:oi!=="uploading"});Gi=ft.createElement("div",{className:fe},Wi)}else{const fe=ao!=null&&ao(qn)?ft.createElement("img",{src:qn.thumbUrl||qn.url,alt:qn.name,className:`${un}-list-item-image`,crossOrigin:qn.crossOrigin}):Wi,Ee=ne()(`${un}-list-item-thumbnail`,{[`${un}-list-item-file`]:ao&&!ao(qn)});Gi=ft.createElement("a",{className:Ee,onClick:Ae=>wo(qn,Ae),href:qn.url||qn.thumbUrl,target:"_blank",rel:"noopener noreferrer"},fe)}const Tr=ne()(`${un}-list-item`,`${un}-list-item-${oi}`),Lr=typeof qn.linkProps=="string"?JSON.parse(qn.linkProps):qn.linkProps,Cr=Do?Or((typeof bo=="function"?bo(qn):bo)||ft.createElement(Sn.Z,null),()=>Xr(qn),un,ci.removeFile):null,jr=ui&&oi==="done"?Or((typeof Kr=="function"?Kr(qn):Kr)||ft.createElement(Vi.Z,null),()=>Sr(qn),un,ci.downloadFile):null,Jr=Xn!=="picture-card"&&Xn!=="picture-circle"&&ft.createElement("span",{key:"download-delete",className:ne()(`${un}-list-item-actions`,{picture:Xn==="picture"})},jr,Cr),Wr=ne()(`${un}-list-item-name`),or=qn.url?[ft.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Wr,title:qn.name},Lr,{href:qn.url,onClick:fe=>wo(qn,fe)}),qn.name),Jr]:[ft.createElement("span",{key:"view",className:Wr,onClick:fe=>wo(qn,fe),title:qn.name},qn.name),Jr],Gt={pointerEvents:"none",opacity:.5},Zn=qr?ft.createElement("a",{href:qn.url||qn.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:qn.url||qn.thumbUrl?void 0:Gt,onClick:fe=>wo(qn,fe),title:ci.previewFile},typeof Co=="function"?Co(qn):Co||ft.createElement(Qe.Z,null)):null,wi=(Xn==="picture-card"||Xn==="picture-circle")&&oi!=="uploading"&&ft.createElement("span",{className:`${un}-list-item-actions`},Zn,oi==="done"&&jr,Cr),{getPrefixCls:Fi}=ft.useContext(Gn.E_),Tt=Fi(),ee=ft.createElement("div",{className:Tr},Gi,or,wi,Ce&&ft.createElement(Pt.default,{motionName:`${Tt}-fade`,visible:oi==="uploading",motionDeadline:2e3},fe=>{let{className:Ee}=fe;const Ae="percent"in qn?ft.createElement(Pn.Z,Object.assign({},vr,{type:"line",percent:qn.percent,"aria-label":qn["aria-label"],"aria-labelledby":qn["aria-labelledby"]})):null;return ft.createElement("div",{className:ne()(`${un}-list-item-progress`,Ee)},Ae)})),le=qn.response&&typeof qn.response=="string"?qn.response:((Br=qn.error)===null||Br===void 0?void 0:Br.statusText)||((yo=qn.error)===null||yo===void 0?void 0:yo.message)||ci.uploadError,xe=oi==="error"?ft.createElement(Ci.Z,{title:le,getPopupContainer:fe=>fe.parentNode},ee):ee;return ft.createElement("div",{className:ne()(`${un}-list-item-container`,xi),style:Yi,ref:Ge},Ii?Ii(xe,qn,Ki,{download:Sr.bind(null,qn),preview:wo.bind(null,qn),remove:Xr.bind(null,qn)}):xe)});const ar=($e,Ge)=>{const{listType:un="text",previewFile:xi=Qn,onPreview:Yi,onDownload:ci,onRemove:Xn,locale:qn,iconRender:Ki,isImageUrl:vr=bn,prefixCls:ki,items:Or=[],showPreviewIcon:Ii=!0,showRemoveIcon:ao=!0,showDownloadIcon:qr=!1,removeIcon:Do,previewIcon:ui,downloadIcon:Co,progress:bo={size:[-1,2],showInfo:!1},appendAction:Kr,appendActionVisible:wo=!0,itemRender:Sr,disabled:Xr}=$e,Br=(0,At.Z)(),[yo,ko]=ft.useState(!1);ft.useEffect(()=>{un!=="picture"&&un!=="picture-card"&&un!=="picture-circle"||(Or||[]).forEach(Gt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Gt.originFileObj instanceof File||Gt.originFileObj instanceof Blob)||Gt.thumbUrl!==void 0||(Gt.thumbUrl="",xi&&xi(Gt.originFileObj).then(Zn=>{Gt.thumbUrl=Zn||"",Br()}))})},[un,Or,xi]),ft.useEffect(()=>{ko(!0)},[]);const oi=(Gt,Zn)=>{if(Yi)return Zn==null||Zn.preventDefault(),Yi(Gt)},kn=Gt=>{typeof ci=="function"?ci(Gt):Gt.url&&window.open(Gt.url)},Ce=Gt=>{Xn==null||Xn(Gt)},si=Gt=>{if(Ki)return Ki(Gt,un);const Zn=Gt.status==="uploading",wi=vr&&vr(Gt)?ft.createElement(Ct,null):ft.createElement(On,null);let Fi=Zn?ft.createElement(Ni.Z,null):ft.createElement(Ai,null);return un==="picture"?Fi=Zn?ft.createElement(Ni.Z,null):wi:(un==="picture-card"||un==="picture-circle")&&(Fi=Zn?qn.uploading:wi),Fi},Wi=(Gt,Zn,wi,Fi)=>{const Tt={type:"text",size:"small",title:Fi,onClick:ee=>{Zn(),(0,Xt.l$)(Gt)&&Gt.props.onClick&&Gt.props.onClick(ee)},className:`${wi}-list-item-action`,disabled:Xr};if((0,Xt.l$)(Gt)){const ee=(0,Xt.Tm)(Gt,Object.assign(Object.assign({},Gt.props),{onClick:()=>{}}));return ft.createElement(Re.ZP,Object.assign({},Tt,{icon:ee}))}return ft.createElement(Re.ZP,Object.assign({},Tt),ft.createElement("span",null,Gt))};ft.useImperativeHandle(Ge,()=>({handlePreview:oi,handleDownload:kn}));const{getPrefixCls:Gi}=ft.useContext(Gn.E_),Tr=Gi("upload",ki),Lr=Gi(),Cr=ne()(`${Tr}-list`,`${Tr}-list-${un}`),jr=(0,Ft.Z)(Or.map(Gt=>({key:Gt.uid,file:Gt})));let Wr={motionDeadline:2e3,motionName:`${Tr}-${un==="picture-card"||un==="picture-circle"?"animate-inline":"animate"}`,keys:jr,motionAppear:yo};const or=ft.useMemo(()=>{const Gt=Object.assign({},(0,wt.Z)(Lr));return delete Gt.onAppearEnd,delete Gt.onEnterEnd,delete Gt.onLeaveEnd,Gt},[Lr]);return un!=="picture-card"&&un!=="picture-circle"&&(Wr=Object.assign(Object.assign({},or),Wr)),ft.createElement("div",{className:Cr},ft.createElement(Pt.CSSMotionList,Object.assign({},Wr,{component:!1}),Gt=>{let{key:Zn,file:wi,className:Fi,style:Tt}=Gt;return ft.createElement(Oi,{key:Zn,locale:qn,prefixCls:Tr,className:Fi,style:Tt,file:wi,items:Or,progress:bo,listType:un,isImgUrl:vr,showPreviewIcon:Ii,showRemoveIcon:ao,showDownloadIcon:qr,removeIcon:Do,previewIcon:ui,downloadIcon:Co,iconRender:si,actionIconRender:Wi,itemRender:Sr,onPreview:oi,onDownload:kn,onClose:Ce})}),Kr&&ft.createElement(Pt.default,Object.assign({},Wr,{visible:wo,forceRender:!0}),Gt=>{let{className:Zn,style:wi}=Gt;return(0,Xt.Tm)(Kr,Fi=>({className:ne()(Fi.className,Zn),style:Object.assign(Object.assign(Object.assign({},wi),{pointerEvents:Zn?"none":void 0}),Fi.style)}))}))};var wr=ft.forwardRef(ar),cr=mt(14747),Ar=mt(33507),ir=mt(67968),kr=mt(45503),So=$e=>{const{componentCls:Ge,iconCls:un}=$e;return{[`${Ge}-wrapper`]:{[`${Ge}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:$e.colorFillAlter,border:`${$e.lineWidth}px dashed ${$e.colorBorder}`,borderRadius:$e.borderRadiusLG,cursor:"pointer",transition:`border-color ${$e.motionDurationSlow}`,[Ge]:{padding:`${$e.padding}px 0`},[`${Ge}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Ge}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Ge}-disabled):hover`]:{borderColor:$e.colorPrimaryHover},[`p${Ge}-drag-icon`]:{marginBottom:$e.margin,[un]:{color:$e.colorPrimary,fontSize:$e.uploadThumbnailSize}},[`p${Ge}-text`]:{margin:`0 0 ${$e.marginXXS}px`,color:$e.colorTextHeading,fontSize:$e.fontSizeLG},[`p${Ge}-hint`]:{color:$e.colorTextDescription,fontSize:$e.fontSize},[`&${Ge}-disabled`]:{cursor:"not-allowed",[`p${Ge}-drag-icon ${un},
|
|
|
p${Ge}-text,
|
|
|
p${Ge}-hint
|
|
|
`]:{color:$e.colorTextDisabled}}}}}},Yr=$e=>{const{componentCls:Ge,antCls:un,iconCls:xi,fontSize:Yi,lineHeight:ci}=$e,Xn=`${Ge}-list-item`,qn=`${Xn}-actions`,Ki=`${Xn}-action`,vr=Math.round(Yi*ci);return{[`${Ge}-wrapper`]:{[`${Ge}-list`]:Object.assign(Object.assign({},(0,cr.dF)()),{lineHeight:$e.lineHeight,[Xn]:{position:"relative",height:$e.lineHeight*Yi,marginTop:$e.marginXS,fontSize:Yi,display:"flex",alignItems:"center",transition:`background-color ${$e.motionDurationSlow}`,"&:hover":{backgroundColor:$e.controlItemBgHover},[`${Xn}-name`]:Object.assign(Object.assign({},cr.vS),{padding:`0 ${$e.paddingXS}px`,lineHeight:ci,flex:"auto",transition:`all ${$e.motionDurationSlow}`}),[qn]:{[Ki]:{opacity:0},[`${Ki}${un}-btn-sm`]:{height:vr,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${Ki}:focus-visible,
|
|
|
&.picture ${Ki}
|
|
|
`]:{opacity:1},[xi]:{color:$e.actionsColor,transition:`all ${$e.motionDurationSlow}`},[`&:hover ${xi}`]:{color:$e.colorText}},[`${Ge}-icon ${xi}`]:{color:$e.colorTextDescription,fontSize:Yi},[`${Xn}-progress`]:{position:"absolute",bottom:-$e.uploadProgressOffset,width:"100%",paddingInlineStart:Yi+$e.paddingXS,fontSize:Yi,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Xn}:hover ${Ki}`]:{opacity:1,color:$e.colorText},[`${Xn}-error`]:{color:$e.colorError,[`${Xn}-name, ${Ge}-icon ${xi}`]:{color:$e.colorError},[qn]:{[`${xi}, ${xi}:hover`]:{color:$e.colorError},[Ki]:{opacity:1}}},[`${Ge}-list-item-container`]:{transition:`opacity ${$e.motionDurationSlow}, height ${$e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Mn=mt(34367),St=mt(16932);const Zi=new Mn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),mi=new Mn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var fr=$e=>{const{componentCls:Ge}=$e,un=`${Ge}-animate-inline`;return[{[`${Ge}-wrapper`]:{[`${un}-appear, ${un}-enter, ${un}-leave`]:{animationDuration:$e.motionDurationSlow,animationTimingFunction:$e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${un}-appear, ${un}-enter`]:{animationName:Zi},[`${un}-leave`]:{animationName:mi}}},{[`${Ge}-wrapper`]:(0,St.J$)($e)},Zi,mi]},pr=mt(16397),tr=mt(84780);const Xe=$e=>{const{componentCls:Ge,iconCls:un,uploadThumbnailSize:xi,uploadProgressOffset:Yi}=$e,ci=`${Ge}-list`,Xn=`${ci}-item`;return{[`${Ge}-wrapper`]:{[`
|
|
|
${ci}${ci}-picture,
|
|
|
${ci}${ci}-picture-card,
|
|
|
${ci}${ci}-picture-circle
|
|
|
`]:{[Xn]:{position:"relative",height:xi+$e.lineWidth*2+$e.paddingXS*2,padding:$e.paddingXS,border:`${$e.lineWidth}px ${$e.lineType} ${$e.colorBorder}`,borderRadius:$e.borderRadiusLG,"&:hover":{background:"transparent"},[`${Xn}-thumbnail`]:Object.assign(Object.assign({},cr.vS),{width:xi,height:xi,lineHeight:`${xi+$e.paddingSM}px`,textAlign:"center",flex:"none",[un]:{fontSize:$e.fontSizeHeading2,color:$e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Xn}-progress`]:{bottom:Yi,width:`calc(100% - ${$e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:xi+$e.paddingXS}},[`${Xn}-error`]:{borderColor:$e.colorError,[`${Xn}-thumbnail ${un}`]:{[`svg path[fill='${pr.blue[0]}']`]:{fill:$e.colorErrorBg},[`svg path[fill='${pr.blue.primary}']`]:{fill:$e.colorError}}},[`${Xn}-uploading`]:{borderStyle:"dashed",[`${Xn}-name`]:{marginBottom:Yi}}},[`${ci}${ci}-picture-circle ${Xn}`]:{[`&, &::before, ${Xn}-thumbnail`]:{borderRadius:"50%"}}}}},mn=$e=>{const{componentCls:Ge,iconCls:un,fontSizeLG:xi,colorTextLightSolid:Yi}=$e,ci=`${Ge}-list`,Xn=`${ci}-item`,qn=$e.uploadPicCardSize;return{[`
|
|
|
${Ge}-wrapper${Ge}-picture-card-wrapper,
|
|
|
${Ge}-wrapper${Ge}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,cr.dF)()),{display:"inline-block",width:"100%",[`${Ge}${Ge}-select`]:{width:qn,height:qn,marginInlineEnd:$e.marginXS,marginBottom:$e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:$e.colorFillAlter,border:`${$e.lineWidth}px dashed ${$e.colorBorder}`,borderRadius:$e.borderRadiusLG,cursor:"pointer",transition:`border-color ${$e.motionDurationSlow}`,[`> ${Ge}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Ge}-disabled):hover`]:{borderColor:$e.colorPrimary}},[`${ci}${ci}-picture-card, ${ci}${ci}-picture-circle`]:{[`${ci}-item-container`]:{display:"inline-block",width:qn,height:qn,marginBlock:`0 ${$e.marginXS}px`,marginInline:`0 ${$e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Xn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${$e.paddingXS*2}px)`,height:`calc(100% - ${$e.paddingXS*2}px)`,backgroundColor:$e.colorBgMask,opacity:0,transition:`all ${$e.motionDurationSlow}`,content:'" "'}},[`${Xn}:hover`]:{[`&::before, ${Xn}-actions`]:{opacity:1}},[`${Xn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${$e.motionDurationSlow}`,[`${un}-eye, ${un}-download, ${un}-delete`]:{zIndex:10,width:xi,margin:`0 ${$e.marginXXS}px`,fontSize:xi,cursor:"pointer",transition:`all ${$e.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Xn}-actions, ${Xn}-actions:hover`]:{[`${un}-eye, ${un}-download, ${un}-delete`]:{color:new tr.C(Yi).setAlpha(.65).toRgbString(),"&:hover":{color:Yi}}},[`${Xn}-thumbnail, ${Xn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Xn}-name`]:{display:"none",textAlign:"center"},[`${Xn}-file + ${Xn}-name`]:{position:"absolute",bottom:$e.margin,display:"block",width:`calc(100% - ${$e.paddingXS*2}px)`},[`${Xn}-uploading`]:{[`&${Xn}`]:{backgroundColor:$e.colorFillAlter},[`&::before, ${un}-eye, ${un}-download, ${un}-delete`]:{display:"none"}},[`${Xn}-progress`]:{bottom:$e.marginXL,width:`calc(100% - ${$e.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Ge}-wrapper${Ge}-picture-circle-wrapper`]:{[`${Ge}${Ge}-select`]:{borderRadius:"50%"}}}};var Nn=$e=>{const{componentCls:Ge}=$e;return{[`${Ge}-rtl`]:{direction:"rtl"}}};const ge=$e=>{const{componentCls:Ge,colorTextDisabled:un}=$e;return{[`${Ge}-wrapper`]:Object.assign(Object.assign({},(0,cr.Wf)($e)),{[Ge]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Ge}-select`]:{display:"inline-block"},[`${Ge}-disabled`]:{color:un,cursor:"not-allowed"}})}};var Cn=(0,ir.Z)("Upload",$e=>{const{fontSizeHeading3:Ge,fontSize:un,lineHeight:xi,lineWidth:Yi,controlHeightLG:ci}=$e,Xn=Math.round(un*xi),qn=(0,kr.TS)($e,{uploadThumbnailSize:Ge*2,uploadProgressOffset:Xn/2+Yi,uploadPicCardSize:ci*2.55});return[ge(qn),So(qn),Xe(qn),mn(qn),Yr(qn),fr(qn),Nn(qn),(0,Ar.Z)(qn)]},$e=>({actionsColor:$e.colorTextDescription})),ai=function($e,Ge,un,xi){function Yi(ci){return ci instanceof un?ci:new un(function(Xn){Xn(ci)})}return new(un||(un=Promise))(function(ci,Xn){function qn(ki){try{vr(xi.next(ki))}catch(Or){Xn(Or)}}function Ki(ki){try{vr(xi.throw(ki))}catch(Or){Xn(Or)}}function vr(ki){ki.done?ci(ki.value):Yi(ki.value).then(qn,Ki)}vr((xi=xi.apply($e,Ge||[])).next())})};const Te=`__LIST_IGNORE_${Date.now()}__`,ce=($e,Ge)=>{const{fileList:un,defaultFileList:xi,onRemove:Yi,showUploadList:ci=!0,listType:Xn="text",onPreview:qn,onDownload:Ki,onChange:vr,onDrop:ki,previewFile:Or,disabled:Ii,locale:ao,iconRender:qr,isImageUrl:Do,progress:ui,prefixCls:Co,className:bo,type:Kr="select",children:wo,style:Sr,itemRender:Xr,maxCount:Br,data:yo={},multiple:ko=!1,action:oi="",accept:kn="",supportServerRender:Ce=!0,rootClassName:si}=$e,Wi=ft.useContext(Me.Z),Gi=Ii!=null?Ii:Wi,[Tr,Lr]=(0,Ye.Z)(xi||[],{value:un,postState:ve=>ve!=null?ve:[]}),[Cr,jr]=ft.useState("drop"),Jr=ft.useRef(null);ft.useMemo(()=>{const ve=Date.now();(un||[]).forEach((ke,xn)=>{!ke.uid&&!Object.isFrozen(ke)&&(ke.uid=`__AUTO__${ve}_${xn}__`)})},[un]);const Wr=(ve,ke,xn)=>{let cn=(0,Ft.Z)(ke),ni=!1;Br===1?cn=cn.slice(-1):Br&&(ni=cn.length>Br,cn=cn.slice(0,Br)),(0,zn.flushSync)(()=>{Lr(cn)});const Ti={file:ve,fileList:cn};xn&&(Ti.event=xn),(!ni||cn.some(qe=>qe.uid===ve.uid))&&(0,zn.flushSync)(()=>{vr==null||vr(Ti)})},or=(ve,ke)=>ai(void 0,void 0,void 0,function*(){const{beforeUpload:xn,transformFile:cn}=$e;let ni=ve;if(xn){const Ti=yield xn(ve,ke);if(Ti===!1)return!1;if(delete ve[Te],Ti===Te)return Object.defineProperty(ve,Te,{value:!0,configurable:!0}),!1;typeof Ti=="object"&&Ti&&(ni=Ti)}return cn&&(ni=yield cn(ni)),ni}),Gt=ve=>{const ke=ve.filter(ni=>!ni.file[Te]);if(!ke.length)return;const xn=ke.map(ni=>We(ni.file));let cn=(0,Ft.Z)(Tr);xn.forEach(ni=>{cn=In(ni,cn)}),xn.forEach((ni,Ti)=>{let qe=ni;if(ke[Ti].parsedFile)ni.status="uploading";else{const{originFileObj:Je}=ni;let sn;try{sn=new File([Je],Je.name,{type:Je.type})}catch(hn){sn=new Blob([Je],{type:Je.type}),sn.name=Je.name,sn.lastModifiedDate=new Date,sn.lastModified=new Date().getTime()}sn.uid=ni.uid,qe=sn}Wr(qe,cn)})},Zn=(ve,ke,xn)=>{try{typeof ve=="string"&&(ve=JSON.parse(ve))}catch(Ti){}if(!Hn(ke,Tr))return;const cn=We(ke);cn.status="done",cn.percent=100,cn.response=ve,cn.xhr=xn;const ni=In(cn,Tr);Wr(cn,ni)},wi=(ve,ke)=>{if(!Hn(ke,Tr))return;const xn=We(ke);xn.status="uploading",xn.percent=ve.percent;const cn=In(xn,Tr);Wr(xn,cn,ve)},Fi=(ve,ke,xn)=>{if(!Hn(xn,Tr))return;const cn=We(xn);cn.error=ve,cn.response=ke,cn.status="error";const ni=In(cn,Tr);Wr(cn,ni)},Tt=ve=>{let ke;Promise.resolve(typeof Yi=="function"?Yi(ve):Yi).then(xn=>{var cn;if(xn===!1)return;const ni=Un(ve,Tr);ni&&(ke=Object.assign(Object.assign({},ve),{status:"removed"}),Tr==null||Tr.forEach(Ti=>{const qe=ke.uid!==void 0?"uid":"name";Ti[qe]===ke[qe]&&!Object.isFrozen(Ti)&&(Ti.status="removed")}),(cn=Jr.current)===null||cn===void 0||cn.abort(ke),Wr(ke,ni))})},ee=ve=>{jr(ve.type),ve.type==="drop"&&(ki==null||ki(ve))};ft.useImperativeHandle(Ge,()=>({onBatchStart:Gt,onSuccess:Zn,onProgress:wi,onError:Fi,fileList:Tr,upload:Jr.current}));const{getPrefixCls:le,direction:xe,upload:fe}=ft.useContext(Gn.E_),Ee=le("upload",Co),Ae=Object.assign(Object.assign({onBatchStart:Gt,onError:Fi,onProgress:wi,onSuccess:Zn},$e),{data:yo,multiple:ko,action:oi,accept:kn,supportServerRender:Ce,prefixCls:Ee,disabled:Gi,beforeUpload:or,onChange:void 0});delete Ae.className,delete Ae.style,(!wo||Gi)&&delete Ae.id;const[yn,Rn]=Cn(Ee),[Pi]=(0,_t.Z)("Upload",rn.Z.Upload),{showRemoveIcon:An,showPreviewIcon:Mi,showDownloadIcon:pi,removeIcon:di,previewIcon:Wn,downloadIcon:Bi}=typeof ci=="boolean"?{}:ci,sr=(ve,ke)=>ci?ft.createElement(wr,{prefixCls:Ee,listType:Xn,items:Tr,previewFile:Or,onPreview:qn,onDownload:Ki,onRemove:Tt,showRemoveIcon:!Gi&&An,showPreviewIcon:Mi,showDownloadIcon:pi,removeIcon:di,previewIcon:Wn,downloadIcon:Bi,iconRender:qr,locale:Object.assign(Object.assign({},Pi),ao),isImageUrl:Do,progress:ui,appendAction:ve,appendActionVisible:ke,itemRender:Xr,disabled:Gi}):ve,_i=ne()(`${Ee}-wrapper`,bo,si,Rn,fe==null?void 0:fe.className,{[`${Ee}-rtl`]:xe==="rtl",[`${Ee}-picture-card-wrapper`]:Xn==="picture-card",[`${Ee}-picture-circle-wrapper`]:Xn==="picture-circle"}),Ui=Object.assign(Object.assign({},fe==null?void 0:fe.style),Sr);if(Kr==="drag"){const ve=ne()(Rn,Ee,`${Ee}-drag`,{[`${Ee}-drag-uploading`]:Tr.some(ke=>ke.status==="uploading"),[`${Ee}-drag-hover`]:Cr==="dragover",[`${Ee}-disabled`]:Gi,[`${Ee}-rtl`]:xe==="rtl"});return yn(ft.createElement("span",{className:_i},ft.createElement("div",{className:ve,style:Ui,onDrop:ee,onDragOver:ee,onDragLeave:ee},ft.createElement(Ne,Object.assign({},Ae,{ref:Jr,className:`${Ee}-btn`}),ft.createElement("div",{className:`${Ee}-drag-container`},wo))),sr()))}const qi=ne()(Ee,`${Ee}-select`,{[`${Ee}-disabled`]:Gi}),je=(ve=>ft.createElement("div",{className:qi,style:ve},ft.createElement(Ne,Object.assign({},Ae,{ref:Jr}))))(wo?void 0:{display:"none"});return yn(Xn==="picture-card"||Xn==="picture-circle"?ft.createElement("span",{className:_i},sr(je,!!wo)):ft.createElement("span",{className:_i},je,sr()))};var pn=ft.forwardRef(ce),fi=function($e,Ge){var un={};for(var xi in $e)Object.prototype.hasOwnProperty.call($e,xi)&&Ge.indexOf(xi)<0&&(un[xi]=$e[xi]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yi=0,xi=Object.getOwnPropertySymbols($e);Yi<xi.length;Yi++)Ge.indexOf(xi[Yi])<0&&Object.prototype.propertyIsEnumerable.call($e,xi[Yi])&&(un[xi[Yi]]=$e[xi[Yi]]);return un},_e=ft.forwardRef(($e,Ge)=>{var{style:un,height:xi}=$e,Yi=fi($e,["style","height"]);return ft.createElement(pn,Object.assign({ref:Ge},Yi,{type:"drag",style:Object.assign(Object.assign({},un),{height:xi})}))});const ri=pn;ri.Dragger=_e,ri.LIST_IGNORE=Te;var Ri=ri},72665:function(jn,tn){"use strict";var mt;var ft=typeof Symbol=="function"&&Symbol.for,Ft=ft?Symbol.for("react.element"):60103,$t=ft?Symbol.for("react.portal"):60106,ne=ft?Symbol.for("react.fragment"):60107,Dt=ft?Symbol.for("react.strict_mode"):60108,Ht=ft?Symbol.for("react.profiler"):60114,Wt=ft?Symbol.for("react.provider"):60109,jt=ft?Symbol.for("react.context"):60110,Nt=ft?Symbol.for("react.async_mode"):60111,Ut=ft?Symbol.for("react.concurrent_mode"):60111,De=ft?Symbol.for("react.forward_ref"):60112,Yt=ft?Symbol.for("react.suspense"):60113,de=ft?Symbol.for("react.suspense_list"):60120,we=ft?Symbol.for("react.memo"):60115,ue=ft?Symbol.for("react.lazy"):60116,he=ft?Symbol.for("react.block"):60121,It=ft?Symbol.for("react.fundamental"):60117,ye=ft?Symbol.for("react.responder"):60118,Ze=ft?Symbol.for("react.scope"):60119;function pe(Rt){if(typeof Rt=="object"&&Rt!==null){var zt=Rt.$$typeof;switch(zt){case Ft:switch(Rt=Rt.type,Rt){case Nt:case Ut:case ne:case Ht:case Dt:case Yt:return Rt;default:switch(Rt=Rt&&Rt.$$typeof,Rt){case jt:case De:case ue:case we:case Wt:return Rt;default:return zt}}case $t:return zt}}}function be(Rt){return pe(Rt)===Ut}mt=Nt,mt=Ut,mt=jt,mt=Wt,mt=Ft,mt=De,mt=ne,mt=ue,mt=we,mt=$t,mt=Ht,mt=Dt,mt=Yt,mt=function(Rt){return be(Rt)||pe(Rt)===Nt},mt=be,mt=function(Rt){return pe(Rt)===jt},mt=function(Rt){return pe(Rt)===Wt},mt=function(Rt){return typeof Rt=="object"&&Rt!==null&&Rt.$$typeof===Ft},mt=function(Rt){return pe(Rt)===De},mt=function(Rt){return pe(Rt)===ne},mt=function(Rt){return pe(Rt)===ue},tn.isMemo=function(Rt){return pe(Rt)===we},mt=function(Rt){return pe(Rt)===$t},mt=function(Rt){return pe(Rt)===Ht},mt=function(Rt){return pe(Rt)===Dt},mt=function(Rt){return pe(Rt)===Yt},mt=function(Rt){return typeof Rt=="string"||typeof Rt=="function"||Rt===ne||Rt===Ut||Rt===Ht||Rt===Dt||Rt===Yt||Rt===de||typeof Rt=="object"&&Rt!==null&&(Rt.$$typeof===ue||Rt.$$typeof===we||Rt.$$typeof===Wt||Rt.$$typeof===jt||Rt.$$typeof===De||Rt.$$typeof===It||Rt.$$typeof===ye||Rt.$$typeof===Ze||Rt.$$typeof===he)},mt=pe},12060:function(jn,tn,mt){"use strict";jn.exports=mt(72665)},41771:function(jn,tn){"use strict";var mt;var ft=typeof Symbol=="function"&&Symbol.for,Ft=ft?Symbol.for("react.element"):60103,$t=ft?Symbol.for("react.portal"):60106,ne=ft?Symbol.for("react.fragment"):60107,Dt=ft?Symbol.for("react.strict_mode"):60108,Ht=ft?Symbol.for("react.profiler"):60114,Wt=ft?Symbol.for("react.provider"):60109,jt=ft?Symbol.for("react.context"):60110,Nt=ft?Symbol.for("react.async_mode"):60111,Ut=ft?Symbol.for("react.concurrent_mode"):60111,De=ft?Symbol.for("react.forward_ref"):60112,Yt=ft?Symbol.for("react.suspense"):60113,de=ft?Symbol.for("react.suspense_list"):60120,we=ft?Symbol.for("react.memo"):60115,ue=ft?Symbol.for("react.lazy"):60116,he=ft?Symbol.for("react.block"):60121,It=ft?Symbol.for("react.fundamental"):60117,ye=ft?Symbol.for("react.responder"):60118,Ze=ft?Symbol.for("react.scope"):60119;function pe(Rt){if(typeof Rt=="object"&&Rt!==null){var zt=Rt.$$typeof;switch(zt){case Ft:switch(Rt=Rt.type,Rt){case Nt:case Ut:case ne:case Ht:case Dt:case Yt:return Rt;default:switch(Rt=Rt&&Rt.$$typeof,Rt){case jt:case De:case ue:case we:case Wt:return Rt;default:return zt}}case $t:return zt}}}function be(Rt){return pe(Rt)===Ut}mt=Nt,mt=Ut,mt=jt,mt=Wt,mt=Ft,mt=De,mt=ne,mt=ue,mt=we,mt=$t,mt=Ht,mt=Dt,mt=Yt,mt=function(Rt){return be(Rt)||pe(Rt)===Nt},mt=be,mt=function(Rt){return pe(Rt)===jt},mt=function(Rt){return pe(Rt)===Wt},mt=function(Rt){return typeof Rt=="object"&&Rt!==null&&Rt.$$typeof===Ft},mt=function(Rt){return pe(Rt)===De},tn.isFragment=function(Rt){return pe(Rt)===ne},mt=function(Rt){return pe(Rt)===ue},mt=function(Rt){return pe(Rt)===we},mt=function(Rt){return pe(Rt)===$t},mt=function(Rt){return pe(Rt)===Ht},mt=function(Rt){return pe(Rt)===Dt},mt=function(Rt){return pe(Rt)===Yt},mt=function(Rt){return typeof Rt=="string"||typeof Rt=="function"||Rt===ne||Rt===Ut||Rt===Ht||Rt===Dt||Rt===Yt||Rt===de||typeof Rt=="object"&&Rt!==null&&(Rt.$$typeof===ue||Rt.$$typeof===we||Rt.$$typeof===Wt||Rt.$$typeof===jt||Rt.$$typeof===De||Rt.$$typeof===It||Rt.$$typeof===ye||Rt.$$typeof===Ze||Rt.$$typeof===he)},mt=pe},47655:function(jn,tn,mt){"use strict";jn.exports=mt(41771)},64701:function(jn,tn,mt){"use strict";mt.r(tn),mt.d(tn,{ResizableTextArea:function(){return ti},default:function(){return gi}});var ft=mt(87462),Ft=mt(1413),$t=mt(4942),ne=mt(71002),Dt=mt(97685),Ht=mt(45987),Wt=mt(74902),jt=mt(94184),Nt=mt.n(jt),Ut=mt(67656),De=mt(87887),Yt=mt(67294);function de(Dn){var Jn=Yt.useRef();Jn.current=Dn;var Ai=Yt.useCallback(function(){for(var hi,qt=arguments.length,kt=new Array(qt),Ct=0;Ct<qt;Ct++)kt[Ct]=arguments[Ct];return(hi=Jn.current)===null||hi===void 0?void 0:hi.call.apply(hi,[Jn].concat(kt))},[]);return Ai}function we(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ue=we()?Yt.useLayoutEffect:Yt.useEffect,he=ue,It=function(Jn,Ai){var hi=Yt.useRef(!0);ue(function(){if(!hi.current)return Jn()},Ai),ue(function(){return hi.current=!1,function(){hi.current=!0}},[])};function ye(Dn){var Jn=Yt.useRef(!1),Ai=Yt.useState(Dn),hi=(0,Dt.Z)(Ai,2),qt=hi[0],kt=hi[1];Yt.useEffect(function(){return Jn.current=!1,function(){Jn.current=!0}},[]);function Ct(Pt,At){At&&Jn.current||kt(Pt)}return[qt,Ct]}function Ze(Dn){return Dn!==void 0}function pe(Dn,Jn){var Ai=Jn||{},hi=Ai.defaultValue,qt=Ai.value,kt=Ai.onChange,Ct=Ai.postState,Pt=ye(function(){return Ze(qt)?qt:Ze(hi)?typeof hi=="function"?hi():hi:typeof Dn=="function"?Dn():Dn}),At=(0,Dt.Z)(Pt,2),wt=At[0],Xt=At[1],Re=qt!==void 0?qt:wt,We=Ct?Ct(Re):Re,In=de(kt),Hn=ye([Re]),Un=(0,Dt.Z)(Hn,2),Yn=Un[0],Fe=Un[1];It(function(){var En=Yn[0];wt!==En&&In(wt,En)},[Yn]),It(function(){Ze(qt)||Xt(qt)},[qt]);var bn=de(function(En,Qn){Xt(En,Qn),Fe([Re],Qn)});return[We,bn]}var be=mt(48555),Rt=function(Jn){return+setTimeout(Jn,16)},zt=function(Jn){return clearTimeout(Jn)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Rt=function(Jn){return window.requestAnimationFrame(Jn)},zt=function(Jn){return window.cancelAnimationFrame(Jn)});var Qt=0,te=new Map;function Ie(Dn){te.delete(Dn)}var He=function(Jn){var Ai=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Qt+=1;var hi=Qt;function qt(kt){if(kt===0)Ie(hi),Jn();else{var Ct=Rt(function(){qt(kt-1)});te.set(hi,Ct)}}return qt(Ai),hi};He.cancel=function(Dn){var Jn=te.get(Dn);return Ie(Jn),zt(Jn)};var en=He,ie=`
|
|
|
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;
|
|
|
`,an=["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"],nn={},Vn;function Ne(Dn){var Jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ai=Dn.getAttribute("id")||Dn.getAttribute("data-reactid")||Dn.getAttribute("name");if(Jn&&nn[Ai])return nn[Ai];var hi=window.getComputedStyle(Dn),qt=hi.getPropertyValue("box-sizing")||hi.getPropertyValue("-moz-box-sizing")||hi.getPropertyValue("-webkit-box-sizing"),kt=parseFloat(hi.getPropertyValue("padding-bottom"))+parseFloat(hi.getPropertyValue("padding-top")),Ct=parseFloat(hi.getPropertyValue("border-bottom-width"))+parseFloat(hi.getPropertyValue("border-top-width")),Pt=an.map(function(wt){return"".concat(wt,":").concat(hi.getPropertyValue(wt))}).join(";"),At={sizingStyle:Pt,paddingSize:kt,borderSize:Ct,boxSizing:qt};return Jn&&Ai&&(nn[Ai]=At),At}function Ye(Dn){var Jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ai=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,hi=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Vn||(Vn=document.createElement("textarea"),Vn.setAttribute("tab-index","-1"),Vn.setAttribute("aria-hidden","true"),document.body.appendChild(Vn)),Dn.getAttribute("wrap")?Vn.setAttribute("wrap",Dn.getAttribute("wrap")):Vn.removeAttribute("wrap");var qt=Ne(Dn,Jn),kt=qt.paddingSize,Ct=qt.borderSize,Pt=qt.boxSizing,At=qt.sizingStyle;Vn.setAttribute("style","".concat(At,";").concat(ie)),Vn.value=Dn.value||Dn.placeholder||"";var wt=void 0,Xt=void 0,Re,We=Vn.scrollHeight;if(Pt==="border-box"?We+=Ct:Pt==="content-box"&&(We-=kt),Ai!==null||hi!==null){Vn.value=" ";var In=Vn.scrollHeight-kt;Ai!==null&&(wt=In*Ai,Pt==="border-box"&&(wt=wt+kt+Ct),We=Math.max(wt,We)),hi!==null&&(Xt=In*hi,Pt==="border-box"&&(Xt=Xt+kt+Ct),Re=We>Xt?"":"hidden",We=Math.min(Xt,We))}var Hn={height:We,overflowY:Re,resize:"none"};return wt&&(Hn.minHeight=wt),Xt&&(Hn.maxHeight=Xt),Hn}var zn=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Gn=0,Me=1,_t=2,rn=Yt.forwardRef(function(Dn,Jn){var Ai=Dn,hi=Ai.prefixCls,qt=Ai.onPressEnter,kt=Ai.defaultValue,Ct=Ai.value,Pt=Ai.autoSize,At=Ai.onResize,wt=Ai.className,Xt=Ai.style,Re=Ai.disabled,We=Ai.onChange,In=Ai.onInternalAutoSize,Hn=(0,Ht.Z)(Ai,zn),Un=pe(kt,{value:Ct,postState:function(mi){return mi!=null?mi:""}}),Yn=(0,Dt.Z)(Un,2),Fe=Yn[0],bn=Yn[1],En=function(mi){bn(mi.target.value),We==null||We(mi)},Qn=Yt.useRef();Yt.useImperativeHandle(Jn,function(){return{textArea:Qn.current}});var Sn=Yt.useMemo(function(){return Pt&&(0,ne.Z)(Pt)==="object"?[Pt.minRows,Pt.maxRows]:[]},[Pt]),Vi=(0,Dt.Z)(Sn,2),Qe=Vi[0],Pn=Vi[1],Ci=!!Pt,yi=function(){try{if(document.activeElement===Qn.current){var mi=Qn.current,rr=mi.selectionStart,fr=mi.selectionEnd,pr=mi.scrollTop;Qn.current.setSelectionRange(rr,fr),Qn.current.scrollTop=pr}}catch(tr){}},Oi=Yt.useState(_t),ar=(0,Dt.Z)(Oi,2),br=ar[0],wr=ar[1],cr=Yt.useState(),Ar=(0,Dt.Z)(cr,2),ir=Ar[0],kr=Ar[1],po=function(){wr(Gn)};he(function(){Ci&&po()},[Ct,Qe,Pn,Ci]),he(function(){if(br===Gn)wr(Me);else if(br===Me){var Zi=Ye(Qn.current,!1,Qe,Pn);wr(_t),kr(Zi)}else yi()},[br]);var So=Yt.useRef(),Eo=function(){en.cancel(So.current)},Yr=function(mi){br===_t&&(At==null||At(mi),Pt&&(Eo(),So.current=en(function(){po()})))};Yt.useEffect(function(){return Eo},[]);var Mn=Ci?ir:null,St=(0,Ft.Z)((0,Ft.Z)({},Xt),Mn);return(br===Gn||br===Me)&&(St.overflowY="hidden",St.overflowX="hidden"),Yt.createElement(be.Z,{onResize:Yr,disabled:!(Pt||At)},Yt.createElement("textarea",(0,ft.Z)({},Hn,{ref:Qn,style:St,className:Nt()(hi,wt,(0,$t.Z)({},"".concat(hi,"-disabled"),Re)),disabled:Re,value:Fe,onChange:En})))}),ti=rn,vn=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function ze(Dn,Jn){return(0,Wt.Z)(Dn||"").slice(0,Jn).join("")}function on(Dn,Jn,Ai,hi){var qt=Ai;return Dn?qt=ze(Ai,hi):(0,Wt.Z)(Jn||"").length<Ai.length&&(0,Wt.Z)(Ai||"").length>hi&&(qt=Jn),qt}var On=Yt.forwardRef(function(Dn,Jn){var Ai,hi=Dn.defaultValue,qt=Dn.value,kt=Dn.onFocus,Ct=Dn.onBlur,Pt=Dn.onChange,At=Dn.allowClear,wt=Dn.maxLength,Xt=Dn.onCompositionStart,Re=Dn.onCompositionEnd,We=Dn.suffix,In=Dn.prefixCls,Hn=In===void 0?"rc-textarea":In,Un=Dn.classes,Yn=Dn.showCount,Fe=Dn.className,bn=Dn.style,En=Dn.disabled,Qn=Dn.hidden,Sn=Dn.classNames,Vi=Dn.styles,Qe=Dn.onResize,Pn=(0,Ht.Z)(Dn,vn),Ci=pe(hi,{value:qt,defaultValue:hi}),yi=(0,Dt.Z)(Ci,2),Oi=yi[0],ar=yi[1],br=(0,Yt.useRef)(null),wr=Yt.useState(!1),cr=(0,Dt.Z)(wr,2),Ar=cr[0],ir=cr[1],kr=Yt.useState(!1),po=(0,Dt.Z)(kr,2),So=po[0],Eo=po[1],Yr=Yt.useRef(),Mn=Yt.useRef(0),St=Yt.useState(null),Zi=(0,Dt.Z)(St,2),mi=Zi[0],rr=Zi[1],fr=function(){var ri;(ri=br.current)===null||ri===void 0||ri.textArea.focus()};(0,Yt.useImperativeHandle)(Jn,function(){return{resizableTextArea:br.current,focus:fr,blur:function(){var ri;(ri=br.current)===null||ri===void 0||ri.textArea.blur()}}}),(0,Yt.useEffect)(function(){ir(function(_e){return!En&&_e})},[En]);var pr=Number(wt)>0,tr=function(ri){Eo(!0),Yr.current=Oi,Mn.current=ri.currentTarget.selectionStart,Xt==null||Xt(ri)},Xe=function(ri){Eo(!1);var Ri=ri.currentTarget.value;if(pr){var $e,Ge=Mn.current>=wt+1||Mn.current===(($e=Yr.current)===null||$e===void 0?void 0:$e.length);Ri=on(Ge,Yr.current,Ri,wt)}Ri!==Oi&&(ar(Ri),(0,De.rJ)(ri.currentTarget,ri,Pt,Ri)),Re==null||Re(ri)},mn=function(ri){var Ri=ri.target.value;if(!So&&pr){var $e=ri.target.selectionStart>=wt+1||ri.target.selectionStart===Ri.length||!ri.target.selectionStart;Ri=on($e,Oi,Ri,wt)}ar(Ri),(0,De.rJ)(ri.currentTarget,ri,Pt,Ri)},Tn=function(ri){var Ri=Pn.onPressEnter,$e=Pn.onKeyDown;ri.key==="Enter"&&Ri&&Ri(ri),$e==null||$e(ri)},Nn=function(ri){ir(!0),kt==null||kt(ri)},ge=function(ri){ir(!1),Ct==null||Ct(ri)},Cn=function(ri){var Ri;ar(""),fr(),(0,De.rJ)((Ri=br.current)===null||Ri===void 0?void 0:Ri.textArea,ri,Pt)},ai=(0,De.D7)(Oi);!So&&pr&&qt==null&&(ai=ze(ai,wt));var Te=We,ce;if(Yn){var Oe=(0,Wt.Z)(ai).length;(0,ne.Z)(Yn)==="object"?ce=Yn.formatter({value:ai,count:Oe,maxLength:wt}):ce="".concat(Oe).concat(pr?" / ".concat(wt):""),Te=Yt.createElement(Yt.Fragment,null,Te,Yt.createElement("span",{className:Nt()("".concat(Hn,"-data-count"),Sn==null?void 0:Sn.count),style:Vi==null?void 0:Vi.count},ce))}var pn=function(ri){var Ri;Qe==null||Qe(ri),(Ri=br.current)!==null&&Ri!==void 0&&Ri.textArea.style.height&&rr(!0)},fi=!Pn.autoSize&&!Yn&&!At,$n=Yt.createElement(Ut.BaseInput,{value:ai,allowClear:At,handleReset:Cn,suffix:Te,prefixCls:Hn,classes:{affixWrapper:Nt()(Un==null?void 0:Un.affixWrapper,(Ai={},(0,$t.Z)(Ai,"".concat(Hn,"-show-count"),Yn),(0,$t.Z)(Ai,"".concat(Hn,"-textarea-allow-clear"),At),Ai))},disabled:En,focused:Ar,className:Fe,style:(0,Ft.Z)((0,Ft.Z)({},bn),mi&&!fi?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ce=="string"?ce:void 0}},hidden:Qn,inputElement:Yt.createElement(ti,(0,ft.Z)({},Pn,{onKeyDown:Tn,onChange:mn,onFocus:Nn,onBlur:ge,onCompositionStart:tr,onCompositionEnd:Xe,className:Sn==null?void 0:Sn.textarea,style:(0,Ft.Z)((0,Ft.Z)({},Vi==null?void 0:Vi.textarea),{},{resize:bn==null?void 0:bn.resize}),disabled:En,prefixCls:Hn,onResize:pn,ref:br}))});return $n}),Ni=On,gi=Ni},56261:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return te}});var ft=mt(87462),Ft=mt(4942),$t=mt(45987),ne=mt(1413),Dt=mt(15671),Ht=mt(43144),Wt=mt(97326),jt=mt(60136),Nt=mt(51630),Ut=mt(94184),De=mt.n(Ut),Yt=mt(34952),de=mt(67294),we=mt(69610),ue=function(He){for(var en=He.prefixCls,ie=He.level,an=He.isStart,nn=He.isEnd,Vn="".concat(en,"-indent-unit"),Ne=[],Ye=0;Ye<ie;Ye+=1){var zn;Ne.push(de.createElement("span",{key:Ye,className:De()(Vn,(zn={},(0,Ft.Z)(zn,"".concat(Vn,"-start"),an[Ye]),(0,Ft.Z)(zn,"".concat(Vn,"-end"),nn[Ye]),zn))}))}return de.createElement("span",{"aria-hidden":"true",className:"".concat(en,"-indent")},Ne)},he=de.memo(ue),It=mt(3596),ye=mt(83898),Ze=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],pe="open",be="close",Rt="---",zt=function(Ie){(0,jt.Z)(en,Ie);var He=(0,Nt.Z)(en);function en(){var ie;(0,Dt.Z)(this,en);for(var an=arguments.length,nn=new Array(an),Vn=0;Vn<an;Vn++)nn[Vn]=arguments[Vn];return ie=He.call.apply(He,[this].concat(nn)),ie.state={dragNodeHighlight:!1},ie.selectHandle=void 0,ie.cacheIndent=void 0,ie.onSelectorClick=function(Ne){var Ye=ie.props.context.onNodeClick;Ye(Ne,(0,ye.F)(ie.props)),ie.isSelectable()?ie.onSelect(Ne):ie.onCheck(Ne)},ie.onSelectorDoubleClick=function(Ne){var Ye=ie.props.context.onNodeDoubleClick;Ye(Ne,(0,ye.F)(ie.props))},ie.onSelect=function(Ne){if(!ie.isDisabled()){var Ye=ie.props.context.onNodeSelect;Ye(Ne,(0,ye.F)(ie.props))}},ie.onCheck=function(Ne){if(!ie.isDisabled()){var Ye=ie.props,zn=Ye.disableCheckbox,Gn=Ye.checked,Me=ie.props.context.onNodeCheck;if(!(!ie.isCheckable()||zn)){var _t=!Gn;Me(Ne,(0,ye.F)(ie.props),_t)}}},ie.onMouseEnter=function(Ne){var Ye=ie.props.context.onNodeMouseEnter;Ye(Ne,(0,ye.F)(ie.props))},ie.onMouseLeave=function(Ne){var Ye=ie.props.context.onNodeMouseLeave;Ye(Ne,(0,ye.F)(ie.props))},ie.onContextMenu=function(Ne){var Ye=ie.props.context.onNodeContextMenu;Ye(Ne,(0,ye.F)(ie.props))},ie.onDragStart=function(Ne){var Ye=ie.props.context.onNodeDragStart;Ne.stopPropagation(),ie.setState({dragNodeHighlight:!0}),Ye(Ne,(0,Wt.Z)(ie));try{Ne.dataTransfer.setData("text/plain","")}catch(zn){}},ie.onDragEnter=function(Ne){var Ye=ie.props.context.onNodeDragEnter;Ne.preventDefault(),Ne.stopPropagation(),Ye(Ne,(0,Wt.Z)(ie))},ie.onDragOver=function(Ne){var Ye=ie.props.context.onNodeDragOver;Ne.preventDefault(),Ne.stopPropagation(),Ye(Ne,(0,Wt.Z)(ie))},ie.onDragLeave=function(Ne){var Ye=ie.props.context.onNodeDragLeave;Ne.stopPropagation(),Ye(Ne,(0,Wt.Z)(ie))},ie.onDragEnd=function(Ne){var Ye=ie.props.context.onNodeDragEnd;Ne.stopPropagation(),ie.setState({dragNodeHighlight:!1}),Ye(Ne,(0,Wt.Z)(ie))},ie.onDrop=function(Ne){var Ye=ie.props.context.onNodeDrop;Ne.preventDefault(),Ne.stopPropagation(),ie.setState({dragNodeHighlight:!1}),Ye(Ne,(0,Wt.Z)(ie))},ie.onExpand=function(Ne){var Ye=ie.props,zn=Ye.loading,Gn=Ye.context.onNodeExpand;zn||Gn(Ne,(0,ye.F)(ie.props))},ie.setSelectHandle=function(Ne){ie.selectHandle=Ne},ie.getNodeState=function(){var Ne=ie.props.expanded;return ie.isLeaf()?null:Ne?pe:be},ie.hasChildren=function(){var Ne=ie.props.eventKey,Ye=ie.props.context.keyEntities,zn=(0,It.Z)(Ye,Ne)||{},Gn=zn.children;return!!(Gn||[]).length},ie.isLeaf=function(){var Ne=ie.props,Ye=Ne.isLeaf,zn=Ne.loaded,Gn=ie.props.context.loadData,Me=ie.hasChildren();return Ye===!1?!1:Ye||!Gn&&!Me||Gn&&zn&&!Me},ie.isDisabled=function(){var Ne=ie.props.disabled,Ye=ie.props.context.disabled;return!!(Ye||Ne)},ie.isCheckable=function(){var Ne=ie.props.checkable,Ye=ie.props.context.checkable;return!Ye||Ne===!1?!1:Ye},ie.syncLoadData=function(Ne){var Ye=Ne.expanded,zn=Ne.loading,Gn=Ne.loaded,Me=ie.props.context,_t=Me.loadData,rn=Me.onNodeLoad;zn||_t&&Ye&&!ie.isLeaf()&&!ie.hasChildren()&&!Gn&&rn((0,ye.F)(ie.props))},ie.isDraggable=function(){var Ne=ie.props,Ye=Ne.data,zn=Ne.context.draggable;return!!(zn&&(!zn.nodeDraggable||zn.nodeDraggable(Ye)))},ie.renderDragHandler=function(){var Ne=ie.props.context,Ye=Ne.draggable,zn=Ne.prefixCls;return Ye!=null&&Ye.icon?de.createElement("span",{className:"".concat(zn,"-draggable-icon")},Ye.icon):null},ie.renderSwitcherIconDom=function(Ne){var Ye=ie.props.switcherIcon,zn=ie.props.context.switcherIcon,Gn=Ye||zn;return typeof Gn=="function"?Gn((0,ne.Z)((0,ne.Z)({},ie.props),{},{isLeaf:Ne})):Gn},ie.renderSwitcher=function(){var Ne=ie.props.expanded,Ye=ie.props.context.prefixCls;if(ie.isLeaf()){var zn=ie.renderSwitcherIconDom(!0);return zn!==!1?de.createElement("span",{className:De()("".concat(Ye,"-switcher"),"".concat(Ye,"-switcher-noop"))},zn):null}var Gn=De()("".concat(Ye,"-switcher"),"".concat(Ye,"-switcher_").concat(Ne?pe:be)),Me=ie.renderSwitcherIconDom(!1);return Me!==!1?de.createElement("span",{onClick:ie.onExpand,className:Gn},Me):null},ie.renderCheckbox=function(){var Ne=ie.props,Ye=Ne.checked,zn=Ne.halfChecked,Gn=Ne.disableCheckbox,Me=ie.props.context.prefixCls,_t=ie.isDisabled(),rn=ie.isCheckable();if(!rn)return null;var ti=typeof rn!="boolean"?rn:null;return de.createElement("span",{className:De()("".concat(Me,"-checkbox"),Ye&&"".concat(Me,"-checkbox-checked"),!Ye&&zn&&"".concat(Me,"-checkbox-indeterminate"),(_t||Gn)&&"".concat(Me,"-checkbox-disabled")),onClick:ie.onCheck},ti)},ie.renderIcon=function(){var Ne=ie.props.loading,Ye=ie.props.context.prefixCls;return de.createElement("span",{className:De()("".concat(Ye,"-iconEle"),"".concat(Ye,"-icon__").concat(ie.getNodeState()||"docu"),Ne&&"".concat(Ye,"-icon_loading"))})},ie.renderSelector=function(){var Ne=ie.state.dragNodeHighlight,Ye=ie.props,zn=Ye.title,Gn=zn===void 0?Rt:zn,Me=Ye.selected,_t=Ye.icon,rn=Ye.loading,ti=Ye.data,vn=ie.props.context,ze=vn.prefixCls,on=vn.showIcon,On=vn.icon,Ni=vn.loadData,gi=vn.titleRender,Dn=ie.isDisabled(),Jn="".concat(ze,"-node-content-wrapper"),Ai;if(on){var hi=_t||On;Ai=hi?de.createElement("span",{className:De()("".concat(ze,"-iconEle"),"".concat(ze,"-icon__customize"))},typeof hi=="function"?hi(ie.props):hi):ie.renderIcon()}else Ni&&rn&&(Ai=ie.renderIcon());var qt;typeof Gn=="function"?qt=Gn(ti):gi?qt=gi(ti):qt=Gn;var kt=de.createElement("span",{className:"".concat(ze,"-title")},qt);return de.createElement("span",{ref:ie.setSelectHandle,title:typeof Gn=="string"?Gn:"",className:De()("".concat(Jn),"".concat(Jn,"-").concat(ie.getNodeState()||"normal"),!Dn&&(Me||Ne)&&"".concat(ze,"-node-selected")),onMouseEnter:ie.onMouseEnter,onMouseLeave:ie.onMouseLeave,onContextMenu:ie.onContextMenu,onClick:ie.onSelectorClick,onDoubleClick:ie.onSelectorDoubleClick},Ai,kt,ie.renderDropIndicator())},ie.renderDropIndicator=function(){var Ne=ie.props,Ye=Ne.disabled,zn=Ne.eventKey,Gn=ie.props.context,Me=Gn.draggable,_t=Gn.dropLevelOffset,rn=Gn.dropPosition,ti=Gn.prefixCls,vn=Gn.indent,ze=Gn.dropIndicatorRender,on=Gn.dragOverNodeKey,On=Gn.direction,Ni=!!Me,gi=!Ye&&Ni&&on===zn,Dn=vn!=null?vn:ie.cacheIndent;return ie.cacheIndent=vn,gi?ze({dropPosition:rn,dropLevelOffset:_t,indent:Dn,prefixCls:ti,direction:On}):null},ie}return(0,Ht.Z)(en,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var an=this.props.selectable,nn=this.props.context.selectable;return typeof an=="boolean"?an:nn}},{key:"render",value:function(){var an,nn=this.props,Vn=nn.eventKey,Ne=nn.className,Ye=nn.style,zn=nn.dragOver,Gn=nn.dragOverGapTop,Me=nn.dragOverGapBottom,_t=nn.isLeaf,rn=nn.isStart,ti=nn.isEnd,vn=nn.expanded,ze=nn.selected,on=nn.checked,On=nn.halfChecked,Ni=nn.loading,gi=nn.domRef,Dn=nn.active,Jn=nn.data,Ai=nn.onMouseMove,hi=nn.selectable,qt=(0,$t.Z)(nn,Ze),kt=this.props.context,Ct=kt.prefixCls,Pt=kt.filterTreeNode,At=kt.keyEntities,wt=kt.dropContainerKey,Xt=kt.dropTargetKey,Re=kt.draggingNodeKey,We=this.isDisabled(),In=(0,Yt.Z)(qt,{aria:!0,data:!0}),Hn=(0,It.Z)(At,Vn)||{},Un=Hn.level,Yn=ti[ti.length-1],Fe=this.isDraggable(),bn=!We&&Fe,En=Re===Vn,Qn=hi!==void 0?{"aria-selected":!!hi}:void 0;return de.createElement("div",(0,ft.Z)({ref:gi,className:De()(Ne,"".concat(Ct,"-treenode"),(an={},(0,Ft.Z)(an,"".concat(Ct,"-treenode-disabled"),We),(0,Ft.Z)(an,"".concat(Ct,"-treenode-switcher-").concat(vn?"open":"close"),!_t),(0,Ft.Z)(an,"".concat(Ct,"-treenode-checkbox-checked"),on),(0,Ft.Z)(an,"".concat(Ct,"-treenode-checkbox-indeterminate"),On),(0,Ft.Z)(an,"".concat(Ct,"-treenode-selected"),ze),(0,Ft.Z)(an,"".concat(Ct,"-treenode-loading"),Ni),(0,Ft.Z)(an,"".concat(Ct,"-treenode-active"),Dn),(0,Ft.Z)(an,"".concat(Ct,"-treenode-leaf-last"),Yn),(0,Ft.Z)(an,"".concat(Ct,"-treenode-draggable"),Fe),(0,Ft.Z)(an,"dragging",En),(0,Ft.Z)(an,"drop-target",Xt===Vn),(0,Ft.Z)(an,"drop-container",wt===Vn),(0,Ft.Z)(an,"drag-over",!We&&zn),(0,Ft.Z)(an,"drag-over-gap-top",!We&&Gn),(0,Ft.Z)(an,"drag-over-gap-bottom",!We&&Me),(0,Ft.Z)(an,"filter-node",Pt&&Pt((0,ye.F)(this.props))),an)),style:Ye,draggable:bn,"aria-grabbed":En,onDragStart:bn?this.onDragStart:void 0,onDragEnter:Fe?this.onDragEnter:void 0,onDragOver:Fe?this.onDragOver:void 0,onDragLeave:Fe?this.onDragLeave:void 0,onDrop:Fe?this.onDrop:void 0,onDragEnd:Fe?this.onDragEnd:void 0,onMouseMove:Ai},Qn,In),de.createElement(he,{prefixCls:Ct,level:Un,isStart:rn,isEnd:ti}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),en}(de.Component),Qt=function(He){return de.createElement(we.k.Consumer,null,function(en){return de.createElement(zt,(0,ft.Z)({},He,{context:en}))})};Qt.displayName="TreeNode",Qt.isTreeNode=1;var te=Qt},69610:function(jn,tn,mt){"use strict";mt.d(tn,{k:function(){return Ft}});var ft=mt(67294),Ft=ft.createContext(null)},29873:function(jn,tn,mt){"use strict";mt.d(tn,{BT:function(){return he},E6:function(){return Ze},L0:function(){return Ut},OM:function(){return ue},_5:function(){return Nt},r7:function(){return pe},wA:function(){return Yt},yx:function(){return De}});var ft=mt(74902),Ft=mt(71002),$t=mt(72978),ne=mt(67294),Dt=mt(56261),Ht=mt(3596),Wt=mt(83898),jt=null;function Nt(be,Rt){if(!be)return[];var zt=be.slice(),Qt=zt.indexOf(Rt);return Qt>=0&&zt.splice(Qt,1),zt}function Ut(be,Rt){var zt=(be||[]).slice();return zt.indexOf(Rt)===-1&&zt.push(Rt),zt}function De(be){return be.split("-")}function Yt(be,Rt){var zt=[],Qt=(0,Ht.Z)(Rt,be);function te(){var Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ie.forEach(function(He){var en=He.key,ie=He.children;zt.push(en),te(ie)})}return te(Qt.children),zt}function de(be){if(be.parent){var Rt=De(be.pos);return Number(Rt[Rt.length-1])===be.parent.children.length-1}return!1}function we(be){var Rt=De(be.pos);return Number(Rt[Rt.length-1])===0}function ue(be,Rt,zt,Qt,te,Ie,He,en,ie,an){var nn,Vn=be.clientX,Ne=be.clientY,Ye=be.target.getBoundingClientRect(),zn=Ye.top,Gn=Ye.height,Me=(an==="rtl"?-1:1)*(((te==null?void 0:te.x)||0)-Vn),_t=(Me-12)/Qt,rn=(0,Ht.Z)(en,zt.props.eventKey);if(Ne<zn+Gn/2){var ti=He.findIndex(function(kt){return kt.key===rn.key}),vn=ti<=0?0:ti-1,ze=He[vn].key;rn=(0,Ht.Z)(en,ze)}var on=rn.key,On=rn,Ni=rn.key,gi=0,Dn=0;if(!ie.includes(on))for(var Jn=0;Jn<_t&&de(rn);Jn+=1)rn=rn.parent,Dn+=1;var Ai=Rt.props.data,hi=rn.node,qt=!0;return we(rn)&&rn.level===0&&Ne<zn+Gn/2&&Ie({dragNode:Ai,dropNode:hi,dropPosition:-1})&&rn.key===zt.props.eventKey?gi=-1:(On.children||[]).length&&ie.includes(Ni)?Ie({dragNode:Ai,dropNode:hi,dropPosition:0})?gi=0:qt=!1:Dn===0?_t>-1.5?Ie({dragNode:Ai,dropNode:hi,dropPosition:1})?gi=1:qt=!1:Ie({dragNode:Ai,dropNode:hi,dropPosition:0})?gi=0:Ie({dragNode:Ai,dropNode:hi,dropPosition:1})?gi=1:qt=!1:Ie({dragNode:Ai,dropNode:hi,dropPosition:1})?gi=1:qt=!1,{dropPosition:gi,dropLevelOffset:Dn,dropTargetKey:rn.key,dropTargetPos:rn.pos,dragOverNodeKey:Ni,dropContainerKey:gi===0?null:((nn=rn.parent)===null||nn===void 0?void 0:nn.key)||null,dropAllowed:qt}}function he(be,Rt){if(be){var zt=Rt.multiple;return zt?be.slice():be.length?[be[0]]:be}}var It=function(Rt){return Rt};function ye(be,Rt){if(!be)return[];var zt=Rt||{},Qt=zt.processProps,te=Qt===void 0?It:Qt,Ie=Array.isArray(be)?be:[be];return Ie.map(function(He){var en=He.children,ie=_objectWithoutProperties(He,jt),an=ye(en,Rt);return React.createElement(TreeNode,_extends({key:ie.key},te(ie)),an)})}function Ze(be){if(!be)return null;var Rt;if(Array.isArray(be))Rt={checkedKeys:be,halfCheckedKeys:void 0};else if((0,Ft.Z)(be)==="object")Rt={checkedKeys:be.checked||void 0,halfCheckedKeys:be.halfChecked||void 0};else return(0,$t.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Rt}function pe(be,Rt){var zt=new Set;function Qt(te){if(!zt.has(te)){var Ie=(0,Ht.Z)(Rt,te);if(Ie){zt.add(te);var He=Ie.parent,en=Ie.node;en.disabled||He&&Qt(He.key)}}}return(be||[]).forEach(function(te){Qt(te)}),(0,ft.Z)(zt)}},97153:function(jn,tn,mt){"use strict";mt.d(tn,{S:function(){return Wt}});var ft=mt(72978),Ft=mt(3596);function $t(jt,Nt){var Ut=new Set;return jt.forEach(function(De){Nt.has(De)||Ut.add(De)}),Ut}function ne(jt){var Nt=jt||{},Ut=Nt.disabled,De=Nt.disableCheckbox,Yt=Nt.checkable;return!!(Ut||De)||Yt===!1}function Dt(jt,Nt,Ut,De){for(var Yt=new Set(jt),de=new Set,we=0;we<=Ut;we+=1){var ue=Nt.get(we)||new Set;ue.forEach(function(Ze){var pe=Ze.key,be=Ze.node,Rt=Ze.children,zt=Rt===void 0?[]:Rt;Yt.has(pe)&&!De(be)&&zt.filter(function(Qt){return!De(Qt.node)}).forEach(function(Qt){Yt.add(Qt.key)})})}for(var he=new Set,It=Ut;It>=0;It-=1){var ye=Nt.get(It)||new Set;ye.forEach(function(Ze){var pe=Ze.parent,be=Ze.node;if(!(De(be)||!Ze.parent||he.has(Ze.parent.key))){if(De(Ze.parent.node)){he.add(pe.key);return}var Rt=!0,zt=!1;(pe.children||[]).filter(function(Qt){return!De(Qt.node)}).forEach(function(Qt){var te=Qt.key,Ie=Yt.has(te);Rt&&!Ie&&(Rt=!1),!zt&&(Ie||de.has(te))&&(zt=!0)}),Rt&&Yt.add(pe.key),zt&&de.add(pe.key),he.add(pe.key)}})}return{checkedKeys:Array.from(Yt),halfCheckedKeys:Array.from($t(de,Yt))}}function Ht(jt,Nt,Ut,De,Yt){for(var de=new Set(jt),we=new Set(Nt),ue=0;ue<=De;ue+=1){var he=Ut.get(ue)||new Set;he.forEach(function(pe){var be=pe.key,Rt=pe.node,zt=pe.children,Qt=zt===void 0?[]:zt;!de.has(be)&&!we.has(be)&&!Yt(Rt)&&Qt.filter(function(te){return!Yt(te.node)}).forEach(function(te){de.delete(te.key)})})}we=new Set;for(var It=new Set,ye=De;ye>=0;ye-=1){var Ze=Ut.get(ye)||new Set;Ze.forEach(function(pe){var be=pe.parent,Rt=pe.node;if(!(Yt(Rt)||!pe.parent||It.has(pe.parent.key))){if(Yt(pe.parent.node)){It.add(be.key);return}var zt=!0,Qt=!1;(be.children||[]).filter(function(te){return!Yt(te.node)}).forEach(function(te){var Ie=te.key,He=de.has(Ie);zt&&!He&&(zt=!1),!Qt&&(He||we.has(Ie))&&(Qt=!0)}),zt||de.delete(be.key),Qt&&we.add(be.key),It.add(be.key)}})}return{checkedKeys:Array.from(de),halfCheckedKeys:Array.from($t(we,de))}}function Wt(jt,Nt,Ut,De){var Yt=[],de;De?de=De:de=ne;var we=new Set(jt.filter(function(ye){var Ze=!!(0,Ft.Z)(Ut,ye);return Ze||Yt.push(ye),Ze})),ue=new Map,he=0;Object.keys(Ut).forEach(function(ye){var Ze=Ut[ye],pe=Ze.level,be=ue.get(pe);be||(be=new Set,ue.set(pe,be)),be.add(Ze),he=Math.max(he,pe)}),(0,ft.ZP)(!Yt.length,"Tree missing follow keys: ".concat(Yt.slice(0,100).map(function(ye){return"'".concat(ye,"'")}).join(", ")));var It;return Nt===!0?It=Dt(we,ue,he,de):It=Ht(we,Nt.halfCheckedKeys,ue,he,de),It}},3596:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return ft}});function ft(Ft,$t){return Ft[$t]}},83898:function(jn,tn,mt){"use strict";mt.d(tn,{I8:function(){return pe},F:function(){return Rt},zn:function(){return It},w$:function(){return ue},oH:function(){return ye},km:function(){return we},H8:function(){return be}});var ft=mt(71002),Ft=mt(74902),$t=mt(1413),ne=mt(45987),Dt=mt(67294),Ht=mt(28580);function Wt(zt){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=[];return Dt.Children.forEach(zt,function(Ie){Ie==null&&!Qt.keepEmpty||(Array.isArray(Ie)?te=te.concat(Wt(Ie)):(0,Ht.isFragment)(Ie)&&Ie.props?te=te.concat(Wt(Ie.props.children,Qt)):te.push(Ie))}),te}function jt(zt,Qt){var te=(0,$t.Z)({},zt);return Array.isArray(Qt)&&Qt.forEach(function(Ie){delete te[Ie]}),te}var Nt=mt(72978),Ut=mt(3596),De=["children"];function Yt(zt,Qt){return"".concat(zt,"-").concat(Qt)}function de(zt){return zt&&zt.type&&zt.type.isTreeNode}function we(zt,Qt){return zt!=null?zt:Qt}function ue(zt){var Qt=zt||{},te=Qt.title,Ie=Qt._title,He=Qt.key,en=Qt.children,ie=te||"title";return{title:ie,_title:Ie||[ie],key:He||"key",children:en||"children"}}function he(zt,Qt){var te=new Map;function Ie(He){var en=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(He||[]).forEach(function(ie){var an=ie[Qt.key],nn=ie[Qt.children];warning(an!=null,"Tree node must have a certain key: [".concat(en).concat(an,"]"));var Vn=String(an);warning(!te.has(Vn)||an===null||an===void 0,"Same 'key' exist in the Tree: ".concat(Vn)),te.set(Vn,!0),Ie(nn,"".concat(en).concat(Vn," > "))})}Ie(zt)}function It(zt){function Qt(te){var Ie=Wt(te);return Ie.map(function(He){if(!de(He))return(0,Nt.ZP)(!He,"Tree/TreeNode can only accept TreeNode as children."),null;var en=He.key,ie=He.props,an=ie.children,nn=(0,ne.Z)(ie,De),Vn=(0,$t.Z)({key:en},nn),Ne=Qt(an);return Ne.length&&(Vn.children=Ne),Vn}).filter(function(He){return He})}return Qt(zt)}function ye(zt,Qt,te){var Ie=ue(te),He=Ie._title,en=Ie.key,ie=Ie.children,an=new Set(Qt===!0?[]:Qt),nn=[];function Vn(Ne){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ne.map(function(zn,Gn){for(var Me=Yt(Ye?Ye.pos:"0",Gn),_t=we(zn[en],Me),rn,ti=0;ti<He.length;ti+=1){var vn=He[ti];if(zn[vn]!==void 0){rn=zn[vn];break}}var ze=(0,$t.Z)((0,$t.Z)({},jt(zn,[].concat((0,Ft.Z)(He),[en,ie]))),{},{title:rn,key:_t,parent:Ye,pos:Me,children:null,data:zn,isStart:[].concat((0,Ft.Z)(Ye?Ye.isStart:[]),[Gn===0]),isEnd:[].concat((0,Ft.Z)(Ye?Ye.isEnd:[]),[Gn===Ne.length-1])});return nn.push(ze),Qt===!0||an.has(_t)?ze.children=Vn(zn[ie]||[],ze):ze.children=[],ze})}return Vn(zt),nn}function Ze(zt,Qt,te){var Ie={};(0,ft.Z)(te)==="object"?Ie=te:Ie={externalGetKey:te},Ie=Ie||{};var He=Ie,en=He.childrenPropName,ie=He.externalGetKey,an=He.fieldNames,nn=ue(an),Vn=nn.key,Ne=nn.children,Ye=en||Ne,zn;ie?typeof ie=="string"?zn=function(_t){return _t[ie]}:typeof ie=="function"&&(zn=function(_t){return ie(_t)}):zn=function(_t,rn){return we(_t[Vn],rn)};function Gn(Me,_t,rn,ti){var vn=Me?Me[Ye]:zt,ze=Me?Yt(rn.pos,_t):"0",on=Me?[].concat((0,Ft.Z)(ti),[Me]):[];if(Me){var On=zn(Me,ze),Ni={node:Me,index:_t,pos:ze,key:On,parentPos:rn.node?rn.pos:null,level:rn.level+1,nodes:on};Qt(Ni)}vn&&vn.forEach(function(gi,Dn){Gn(gi,Dn,{node:Me,pos:ze,level:rn?rn.level+1:-1},on)})}Gn(null)}function pe(zt){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=Qt.initWrapper,Ie=Qt.processEntity,He=Qt.onProcessFinished,en=Qt.externalGetKey,ie=Qt.childrenPropName,an=Qt.fieldNames,nn=arguments.length>2?arguments[2]:void 0,Vn=en||nn,Ne={},Ye={},zn={posEntities:Ne,keyEntities:Ye};return te&&(zn=te(zn)||zn),Ze(zt,function(Gn){var Me=Gn.node,_t=Gn.index,rn=Gn.pos,ti=Gn.key,vn=Gn.parentPos,ze=Gn.level,on=Gn.nodes,On={node:Me,nodes:on,index:_t,key:ti,pos:rn,level:ze},Ni=we(ti,rn);Ne[rn]=On,Ye[Ni]=On,On.parent=Ne[vn],On.parent&&(On.parent.children=On.parent.children||[],On.parent.children.push(On)),Ie&&Ie(On,zn)},{externalGetKey:Vn,childrenPropName:ie,fieldNames:an}),He&&He(zn),zn}function be(zt,Qt){var te=Qt.expandedKeys,Ie=Qt.selectedKeys,He=Qt.loadedKeys,en=Qt.loadingKeys,ie=Qt.checkedKeys,an=Qt.halfCheckedKeys,nn=Qt.dragOverNodeKey,Vn=Qt.dropPosition,Ne=Qt.keyEntities,Ye=(0,Ut.Z)(Ne,zt),zn={eventKey:zt,expanded:te.indexOf(zt)!==-1,selected:Ie.indexOf(zt)!==-1,loaded:He.indexOf(zt)!==-1,loading:en.indexOf(zt)!==-1,checked:ie.indexOf(zt)!==-1,halfChecked:an.indexOf(zt)!==-1,pos:String(Ye?Ye.pos:""),dragOver:nn===zt&&Vn===0,dragOverGapTop:nn===zt&&Vn===-1,dragOverGapBottom:nn===zt&&Vn===1};return zn}function Rt(zt){var Qt=zt.data,te=zt.expanded,Ie=zt.selected,He=zt.checked,en=zt.loaded,ie=zt.loading,an=zt.halfChecked,nn=zt.dragOver,Vn=zt.dragOverGapTop,Ne=zt.dragOverGapBottom,Ye=zt.pos,zn=zt.active,Gn=zt.eventKey,Me=(0,$t.Z)((0,$t.Z)({},Qt),{},{expanded:te,selected:Ie,checked:He,loaded:en,loading:ie,halfChecked:an,dragOver:nn,dragOverGapTop:Vn,dragOverGapBottom:Ne,pos:Ye,active:zn,key:Gn});return"props"in Me||Object.defineProperty(Me,"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`."),zt}}),Me}},34952:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return jt}});var ft=mt(1413),Ft=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,$t=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ne="".concat(Ft," ").concat($t).split(/[\s\n]+/),Dt="aria-",Ht="data-";function Wt(Nt,Ut){return Nt.indexOf(Ut)===0}function jt(Nt){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,De;Ut===!1?De={aria:!0,data:!0,attr:!0}:Ut===!0?De={aria:!0}:De=(0,ft.Z)({},Ut);var Yt={};return Object.keys(Nt).forEach(function(de){(De.aria&&(de==="role"||Wt(de,Dt))||De.data&&Wt(de,Ht)||De.attr&&ne.includes(de))&&(Yt[de]=Nt[de])}),Yt}},72978:function(jn,tn,mt){"use strict";var ft={};function Ft(jt,Nt){}function $t(jt,Nt){}function ne(){ft={}}function Dt(jt,Nt,Ut){!Nt&&!ft[Ut]&&(jt(!1,Ut),ft[Ut]=!0)}function Ht(jt,Nt){Dt(Ft,jt,Nt)}function Wt(jt,Nt){Dt($t,jt,Nt)}tn.ZP=Ht},81533:function(jn,tn){"use strict";var mt;var ft=typeof Symbol=="function"&&Symbol.for,Ft=ft?Symbol.for("react.element"):60103,$t=ft?Symbol.for("react.portal"):60106,ne=ft?Symbol.for("react.fragment"):60107,Dt=ft?Symbol.for("react.strict_mode"):60108,Ht=ft?Symbol.for("react.profiler"):60114,Wt=ft?Symbol.for("react.provider"):60109,jt=ft?Symbol.for("react.context"):60110,Nt=ft?Symbol.for("react.async_mode"):60111,Ut=ft?Symbol.for("react.concurrent_mode"):60111,De=ft?Symbol.for("react.forward_ref"):60112,Yt=ft?Symbol.for("react.suspense"):60113,de=ft?Symbol.for("react.suspense_list"):60120,we=ft?Symbol.for("react.memo"):60115,ue=ft?Symbol.for("react.lazy"):60116,he=ft?Symbol.for("react.block"):60121,It=ft?Symbol.for("react.fundamental"):60117,ye=ft?Symbol.for("react.responder"):60118,Ze=ft?Symbol.for("react.scope"):60119;function pe(Rt){if(typeof Rt=="object"&&Rt!==null){var zt=Rt.$$typeof;switch(zt){case Ft:switch(Rt=Rt.type,Rt){case Nt:case Ut:case ne:case Ht:case Dt:case Yt:return Rt;default:switch(Rt=Rt&&Rt.$$typeof,Rt){case jt:case De:case ue:case we:case Wt:return Rt;default:return zt}}case $t:return zt}}}function be(Rt){return pe(Rt)===Ut}mt=Nt,mt=Ut,mt=jt,mt=Wt,mt=Ft,mt=De,mt=ne,mt=ue,mt=we,mt=$t,mt=Ht,mt=Dt,mt=Yt,mt=function(Rt){return be(Rt)||pe(Rt)===Nt},mt=be,mt=function(Rt){return pe(Rt)===jt},mt=function(Rt){return pe(Rt)===Wt},mt=function(Rt){return typeof Rt=="object"&&Rt!==null&&Rt.$$typeof===Ft},mt=function(Rt){return pe(Rt)===De},tn.isFragment=function(Rt){return pe(Rt)===ne},mt=function(Rt){return pe(Rt)===ue},tn.isMemo=function(Rt){return pe(Rt)===we},mt=function(Rt){return pe(Rt)===$t},mt=function(Rt){return pe(Rt)===Ht},mt=function(Rt){return pe(Rt)===Dt},mt=function(Rt){return pe(Rt)===Yt},mt=function(Rt){return typeof Rt=="string"||typeof Rt=="function"||Rt===ne||Rt===Ut||Rt===Ht||Rt===Dt||Rt===Yt||Rt===de||typeof Rt=="object"&&Rt!==null&&(Rt.$$typeof===ue||Rt.$$typeof===we||Rt.$$typeof===Wt||Rt.$$typeof===jt||Rt.$$typeof===De||Rt.$$typeof===It||Rt.$$typeof===ye||Rt.$$typeof===Ze||Rt.$$typeof===he)},mt=pe},28580:function(jn,tn,mt){"use strict";jn.exports=mt(81533)},1337:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return jt}});var ft=mt(1413),Ft=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,$t=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ne="".concat(Ft," ").concat($t).split(/[\s\n]+/),Dt="aria-",Ht="data-";function Wt(Nt,Ut){return Nt.indexOf(Ut)===0}function jt(Nt){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,De;Ut===!1?De={aria:!0,data:!0,attr:!0}:Ut===!0?De={aria:!0}:De=(0,ft.Z)({},Ut);var Yt={};return Object.keys(Nt).forEach(function(de){(De.aria&&(de==="role"||Wt(de,Dt))||De.data&&Wt(de,Ht)||De.attr&&ne.includes(de))&&(Yt[de]=Nt[de])}),Yt}},86010:function(jn,tn,mt){"use strict";mt.r(tn),mt.d(tn,{clsx:function(){return Ft}});function ft($t){var ne,Dt,Ht="";if(typeof $t=="string"||typeof $t=="number")Ht+=$t;else if(typeof $t=="object")if(Array.isArray($t))for(ne=0;ne<$t.length;ne++)$t[ne]&&(Dt=ft($t[ne]))&&(Ht&&(Ht+=" "),Ht+=Dt);else for(ne in $t)$t[ne]&&(Ht&&(Ht+=" "),Ht+=ne);return Ht}function Ft(){for(var $t,ne,Dt=0,Ht="";Dt<arguments.length;)($t=arguments[Dt++])&&(ne=ft($t))&&(Ht&&(Ht+=" "),Ht+=ne);return Ht}tn.default=Ft},88386:function(jn,tn,mt){(function(ft){ft(mt(4631))})(function(ft){ft.defineOption("placeholder","",function(jt,Nt,Ut){var De=Ut&&Ut!=ft.Init;if(Nt&&!De)jt.on("blur",Dt),jt.on("change",Ht),jt.on("swapDoc",Ht),ft.on(jt.getInputField(),"compositionupdate",jt.state.placeholderCompose=function(){ne(jt)}),Ht(jt);else if(!Nt&&De){jt.off("blur",Dt),jt.off("change",Ht),jt.off("swapDoc",Ht),ft.off(jt.getInputField(),"compositionupdate",jt.state.placeholderCompose),Ft(jt);var Yt=jt.getWrapperElement();Yt.className=Yt.className.replace(" CodeMirror-empty","")}Nt&&!jt.hasFocus()&&Dt(jt)});function Ft(jt){jt.state.placeholder&&(jt.state.placeholder.parentNode.removeChild(jt.state.placeholder),jt.state.placeholder=null)}function $t(jt){Ft(jt);var Nt=jt.state.placeholder=document.createElement("pre");Nt.style.cssText="height: 0; overflow: visible",Nt.style.direction=jt.getOption("direction"),Nt.className="CodeMirror-placeholder CodeMirror-line-like";var Ut=jt.getOption("placeholder");typeof Ut=="string"&&(Ut=document.createTextNode(Ut)),Nt.appendChild(Ut),jt.display.lineSpace.insertBefore(Nt,jt.display.lineSpace.firstChild)}function ne(jt){setTimeout(function(){var Nt=!1,Ut=jt.getInputField();Ut.nodeName=="TEXTAREA"?Nt=!Ut.value:jt.lineCount()==1&&(Nt=!/[^\u200b]/.test(Ut.querySelector(".CodeMirror-line").textContent)),Nt?$t(jt):Ft(jt)},20)}function Dt(jt){Wt(jt)&&$t(jt)}function Ht(jt){var Nt=jt.getWrapperElement(),Ut=Wt(jt);Nt.className=Nt.className.replace(" CodeMirror-empty","")+(Ut?" CodeMirror-empty":""),Ut?$t(jt):Ft(jt)}function Wt(jt){return jt.lineCount()===1&&jt.getLine(0)===""}})},82801:function(jn,tn,mt){(function(ft){ft(mt(4631))})(function(ft){var Ft={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},$t=ft.Pos;ft.defineOption("autoCloseBrackets",!1,function(ue,he,It){It&&It!=ft.Init&&(ue.removeKeyMap(Dt),ue.state.closeBrackets=null),he&&(Ht(ne(he,"pairs")),ue.state.closeBrackets=he,ue.addKeyMap(Dt))});function ne(ue,he){return he=="pairs"&&typeof ue=="string"?ue:typeof ue=="object"&&ue[he]!=null?ue[he]:Ft[he]}var Dt={Backspace:Nt,Enter:Ut};function Ht(ue){for(var he=0;he<ue.length;he++){var It=ue.charAt(he),ye="'"+It+"'";Dt[ye]||(Dt[ye]=Wt(It))}}Ht(Ft.pairs+"`");function Wt(ue){return function(he){return Yt(he,ue)}}function jt(ue){var he=ue.state.closeBrackets;if(!he||he.override)return he;var It=ue.getModeAt(ue.getCursor());return It.closeBrackets||he}function Nt(ue){var he=jt(ue);if(!he||ue.getOption("disableInput"))return ft.Pass;for(var It=ne(he,"pairs"),ye=ue.listSelections(),Ze=0;Ze<ye.length;Ze++){if(!ye[Ze].empty())return ft.Pass;var pe=de(ue,ye[Ze].head);if(!pe||It.indexOf(pe)%2!=0)return ft.Pass}for(var Ze=ye.length-1;Ze>=0;Ze--){var be=ye[Ze].head;ue.replaceRange("",$t(be.line,be.ch-1),$t(be.line,be.ch+1),"+delete")}}function Ut(ue){var he=jt(ue),It=he&&ne(he,"explode");if(!It||ue.getOption("disableInput"))return ft.Pass;for(var ye=ue.listSelections(),Ze=0;Ze<ye.length;Ze++){if(!ye[Ze].empty())return ft.Pass;var pe=de(ue,ye[Ze].head);if(!pe||It.indexOf(pe)%2!=0)return ft.Pass}ue.operation(function(){var be=ue.lineSeparator()||`
|
|
|
`;ue.replaceSelection(be+be,null),ue.execCommand("goCharLeft"),ye=ue.listSelections();for(var Rt=0;Rt<ye.length;Rt++){var zt=ye[Rt].head.line;ue.indentLine(zt,null,!0),ue.indentLine(zt+1,null,!0)}})}function De(ue){var he=ft.cmpPos(ue.anchor,ue.head)>0;return{anchor:new $t(ue.anchor.line,ue.anchor.ch+(he?-1:1)),head:new $t(ue.head.line,ue.head.ch+(he?1:-1))}}function Yt(ue,he){var It=jt(ue);if(!It||ue.getOption("disableInput"))return ft.Pass;var ye=ne(It,"pairs"),Ze=ye.indexOf(he);if(Ze==-1)return ft.Pass;for(var pe=ne(It,"closeBefore"),be=ne(It,"triples"),Rt=ye.charAt(Ze+1)==he,zt=ue.listSelections(),Qt=Ze%2==0,te,Ie=0;Ie<zt.length;Ie++){var He=zt[Ie],en=He.head,ie,an=ue.getRange(en,$t(en.line,en.ch+1));if(Qt&&!He.empty())ie="surround";else if((Rt||!Qt)&&an==he)Rt&&we(ue,en)?ie="both":be.indexOf(he)>=0&&ue.getRange(en,$t(en.line,en.ch+3))==he+he+he?ie="skipThree":ie="skip";else if(Rt&&en.ch>1&&be.indexOf(he)>=0&&ue.getRange($t(en.line,en.ch-2),en)==he+he){if(en.ch>2&&/\bstring/.test(ue.getTokenTypeAt($t(en.line,en.ch-2))))return ft.Pass;ie="addFour"}else if(Rt){var nn=en.ch==0?" ":ue.getRange($t(en.line,en.ch-1),en);if(!ft.isWordChar(an)&&nn!=he&&!ft.isWordChar(nn))ie="both";else return ft.Pass}else if(Qt&&(an.length===0||/\s/.test(an)||pe.indexOf(an)>-1))ie="both";else return ft.Pass;if(!te)te=ie;else if(te!=ie)return ft.Pass}var Vn=Ze%2?ye.charAt(Ze-1):he,Ne=Ze%2?he:ye.charAt(Ze+1);ue.operation(function(){if(te=="skip")ue.execCommand("goCharRight");else if(te=="skipThree")for(var Ye=0;Ye<3;Ye++)ue.execCommand("goCharRight");else if(te=="surround"){for(var zn=ue.getSelections(),Ye=0;Ye<zn.length;Ye++)zn[Ye]=Vn+zn[Ye]+Ne;ue.replaceSelections(zn,"around"),zn=ue.listSelections().slice();for(var Ye=0;Ye<zn.length;Ye++)zn[Ye]=De(zn[Ye]);ue.setSelections(zn)}else te=="both"?(ue.replaceSelection(Vn+Ne,null),ue.triggerElectric(Vn+Ne),ue.execCommand("goCharLeft")):te=="addFour"&&(ue.replaceSelection(Vn+Vn+Vn+Vn,"before"),ue.execCommand("goCharRight"))})}function de(ue,he){var It=ue.getRange($t(he.line,he.ch-1),$t(he.line,he.ch+1));return It.length==2?It:null}function we(ue,he){var It=ue.getTokenAt($t(he.line,he.ch+1));return/\bstring/.test(It.type)&&It.start==he.ch&&(he.ch==0||!/\bstring/.test(ue.getTokenTypeAt(he)))}})},57341:function(jn,tn,mt){(function(ft){ft(mt(4631),mt(4786))})(function(ft){ft.defineOption("autoCloseTags",!1,function(Nt,Ut,De){if(De!=ft.Init&&De&&Nt.removeKeyMap("autoCloseTags"),!!Ut){var Yt={name:"autoCloseTags"};(typeof Ut!="object"||Ut.whenClosing!==!1)&&(Yt["'/'"]=function(de){return Ht(de)}),(typeof Ut!="object"||Ut.whenOpening!==!1)&&(Yt["'>'"]=function(de){return ne(de)}),Nt.addKeyMap(Yt)}});var Ft=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],$t=["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 ne(Nt){if(Nt.getOption("disableInput"))return ft.Pass;for(var Ut=Nt.listSelections(),De=[],Yt=Nt.getOption("autoCloseTags"),de=0;de<Ut.length;de++){if(!Ut[de].empty())return ft.Pass;var we=Ut[de].head,ue=Nt.getTokenAt(we),he=ft.innerMode(Nt.getMode(),ue.state),It=he.state,ye=he.mode.xmlCurrentTag&&he.mode.xmlCurrentTag(It),Ze=ye&&ye.name;if(!Ze)return ft.Pass;var pe=he.mode.configuration=="html",be=typeof Yt=="object"&&Yt.dontCloseTags||pe&&Ft,Rt=typeof Yt=="object"&&Yt.indentTags||pe&&$t;ue.end>we.ch&&(Ze=Ze.slice(0,Ze.length-ue.end+we.ch));var zt=Ze.toLowerCase();if(!Ze||ue.type=="string"&&(ue.end!=we.ch||!/[\"\']/.test(ue.string.charAt(ue.string.length-1))||ue.string.length==1)||ue.type=="tag"&&ye.close||ue.string.indexOf("/")==we.ch-ue.start-1||be&&Wt(be,zt)>-1||jt(Nt,he.mode.xmlCurrentContext&&he.mode.xmlCurrentContext(It)||[],Ze,we,!0))return ft.Pass;var Qt=typeof Yt=="object"&&Yt.emptyTags;if(Qt&&Wt(Qt,Ze)>-1){De[de]={text:"/>",newPos:ft.Pos(we.line,we.ch+2)};continue}var te=Rt&&Wt(Rt,zt)>-1;De[de]={indent:te,text:">"+(te?`
|
|
|
|
|
|
`:"")+"</"+Ze+">",newPos:te?ft.Pos(we.line+1,0):ft.Pos(we.line,we.ch+1)}}for(var Ie=typeof Yt=="object"&&Yt.dontIndentOnAutoClose,de=Ut.length-1;de>=0;de--){var He=De[de];Nt.replaceRange(He.text,Ut[de].head,Ut[de].anchor,"+insert");var en=Nt.listSelections().slice(0);en[de]={head:He.newPos,anchor:He.newPos},Nt.setSelections(en),!Ie&&He.indent&&(Nt.indentLine(He.newPos.line,null,!0),Nt.indentLine(He.newPos.line+1,null,!0))}}function Dt(Nt,Ut){for(var De=Nt.listSelections(),Yt=[],de=Ut?"/":"</",we=Nt.getOption("autoCloseTags"),ue=typeof we=="object"&&we.dontIndentOnSlash,he=0;he<De.length;he++){if(!De[he].empty())return ft.Pass;var It=De[he].head,ye=Nt.getTokenAt(It),Ze=ft.innerMode(Nt.getMode(),ye.state),pe=Ze.state;if(Ut&&(ye.type=="string"||ye.string.charAt(0)!="<"||ye.start!=It.ch-1))return ft.Pass;var be,Rt=Ze.mode.name!="xml"&&Nt.getMode().name=="htmlmixed";if(Rt&&Ze.mode.name=="javascript")be=de+"script";else if(Rt&&Ze.mode.name=="css")be=de+"style";else{var zt=Ze.mode.xmlCurrentContext&&Ze.mode.xmlCurrentContext(pe);if(!zt||zt.length&&jt(Nt,zt,zt[zt.length-1],It))return ft.Pass;be=de+zt[zt.length-1]}Nt.getLine(It.line).charAt(ye.end)!=">"&&(be+=">"),Yt[he]=be}if(Nt.replaceSelections(Yt),De=Nt.listSelections(),!ue)for(var he=0;he<De.length;he++)(he==De.length-1||De[he].head.line<De[he+1].head.line)&&Nt.indentLine(De[he].head.line)}function Ht(Nt){return Nt.getOption("disableInput")?ft.Pass:Dt(Nt,!0)}ft.commands.closeTag=function(Nt){return Dt(Nt)};function Wt(Nt,Ut){if(Nt.indexOf)return Nt.indexOf(Ut);for(var De=0,Yt=Nt.length;De<Yt;++De)if(Nt[De]==Ut)return De;return-1}function jt(Nt,Ut,De,Yt,de){if(!ft.scanForClosingTag)return!1;var we=Math.min(Nt.lastLine()+1,Yt.line+500),ue=ft.scanForClosingTag(Nt,Yt,null,we);if(!ue||ue.tag!=De)return!1;for(var he=de?1:0,It=Ut.length-1;It>=0&&Ut[It]==De;It--)++he;Yt=ue.to;for(var It=1;It<he;It++){var ye=ft.scanForClosingTag(Nt,Yt,null,we);if(!ye||ye.tag!=De)return!1;Yt=ye.to}return!0}})},4786:function(jn,tn,mt){(function(ft){ft(mt(4631))})(function(ft){"use strict";var Ft=ft.Pos;function $t(It,ye){return It.line-ye.line||It.ch-ye.ch}var ne="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",Dt=ne+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ht=new RegExp("<(/?)(["+ne+"]["+Dt+"]*)","g");function Wt(It,ye,Ze,pe){this.line=ye,this.ch=Ze,this.cm=It,this.text=It.getLine(ye),this.min=pe?Math.max(pe.from,It.firstLine()):It.firstLine(),this.max=pe?Math.min(pe.to-1,It.lastLine()):It.lastLine()}function jt(It,ye){var Ze=It.cm.getTokenTypeAt(Ft(It.line,ye));return Ze&&/\btag\b/.test(Ze)}function Nt(It){if(!(It.line>=It.max))return It.ch=0,It.text=It.cm.getLine(++It.line),!0}function Ut(It){if(!(It.line<=It.min))return It.text=It.cm.getLine(--It.line),It.ch=It.text.length,!0}function De(It){for(;;){var ye=It.text.indexOf(">",It.ch);if(ye==-1){if(Nt(It))continue;return}if(!jt(It,ye+1)){It.ch=ye+1;continue}var Ze=It.text.lastIndexOf("/",ye),pe=Ze>-1&&!/\S/.test(It.text.slice(Ze+1,ye));return It.ch=ye+1,pe?"selfClose":"regular"}}function Yt(It){for(;;){var ye=It.ch?It.text.lastIndexOf("<",It.ch-1):-1;if(ye==-1){if(Ut(It))continue;return}if(!jt(It,ye+1)){It.ch=ye;continue}Ht.lastIndex=ye,It.ch=ye;var Ze=Ht.exec(It.text);if(Ze&&Ze.index==ye)return Ze}}function de(It){for(;;){Ht.lastIndex=It.ch;var ye=Ht.exec(It.text);if(!ye){if(Nt(It))continue;return}if(!jt(It,ye.index+1)){It.ch=ye.index+1;continue}return It.ch=ye.index+ye[0].length,ye}}function we(It){for(;;){var ye=It.ch?It.text.lastIndexOf(">",It.ch-1):-1;if(ye==-1){if(Ut(It))continue;return}if(!jt(It,ye+1)){It.ch=ye;continue}var Ze=It.text.lastIndexOf("/",ye),pe=Ze>-1&&!/\S/.test(It.text.slice(Ze+1,ye));return It.ch=ye+1,pe?"selfClose":"regular"}}function ue(It,ye){for(var Ze=[];;){var pe=de(It),be,Rt=It.line,zt=It.ch-(pe?pe[0].length:0);if(!pe||!(be=De(It)))return;if(be!="selfClose")if(pe[1]){for(var Qt=Ze.length-1;Qt>=0;--Qt)if(Ze[Qt]==pe[2]){Ze.length=Qt;break}if(Qt<0&&(!ye||ye==pe[2]))return{tag:pe[2],from:Ft(Rt,zt),to:Ft(It.line,It.ch)}}else Ze.push(pe[2])}}function he(It,ye){for(var Ze=[];;){var pe=we(It);if(!pe)return;if(pe=="selfClose"){Yt(It);continue}var be=It.line,Rt=It.ch,zt=Yt(It);if(!zt)return;if(zt[1])Ze.push(zt[2]);else{for(var Qt=Ze.length-1;Qt>=0;--Qt)if(Ze[Qt]==zt[2]){Ze.length=Qt;break}if(Qt<0&&(!ye||ye==zt[2]))return{tag:zt[2],from:Ft(It.line,It.ch),to:Ft(be,Rt)}}}}ft.registerHelper("fold","xml",function(It,ye){for(var Ze=new Wt(It,ye.line,0);;){var pe=de(Ze);if(!pe||Ze.line!=ye.line)return;var be=De(Ze);if(!be)return;if(!pe[1]&&be!="selfClose"){var Rt=Ft(Ze.line,Ze.ch),zt=ue(Ze,pe[2]);return zt&&$t(zt.from,Rt)>0?{from:Rt,to:zt.from}:null}}}),ft.findMatchingTag=function(It,ye,Ze){var pe=new Wt(It,ye.line,ye.ch,Ze);if(!(pe.text.indexOf(">")==-1&&pe.text.indexOf("<")==-1)){var be=De(pe),Rt=be&&Ft(pe.line,pe.ch),zt=be&&Yt(pe);if(!(!be||!zt||$t(pe,ye)>0)){var Qt={from:Ft(pe.line,pe.ch),to:Rt,tag:zt[2]};return be=="selfClose"?{open:Qt,close:null,at:"open"}:zt[1]?{open:he(pe,zt[2]),close:Qt,at:"close"}:(pe=new Wt(It,Rt.line,Rt.ch,Ze),{open:Qt,close:ue(pe,zt[2]),at:"open"})}}},ft.findEnclosingTag=function(It,ye,Ze,pe){for(var be=new Wt(It,ye.line,ye.ch,Ze);;){var Rt=he(be,pe);if(!Rt)break;var zt=new Wt(It,ye.line,ye.ch,Ze),Qt=ue(zt,Rt.tag);if(Qt)return{open:Rt,close:Qt}}},ft.scanForClosingTag=function(It,ye,Ze,pe){var be=new Wt(It,ye.line,ye.ch,pe?{from:0,to:pe}:null);return ue(be,Ze)}})},4631:function(jn){(function(tn,mt){jn.exports=mt()})(this,function(){"use strict";var tn=navigator.userAgent,mt=navigator.platform,ft=/gecko\/\d/i.test(tn),Ft=/MSIE \d/.test(tn),$t=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(tn),ne=/Edge\/(\d+)/.exec(tn),Dt=Ft||$t||ne,Ht=Dt&&(Ft?document.documentMode||6:+(ne||$t)[1]),Wt=!ne&&/WebKit\//.test(tn),jt=Wt&&/Qt\/\d+\.\d+/.test(tn),Nt=!ne&&/Chrome\//.test(tn),Ut=/Opera\//.test(tn),De=/Apple Computer/.test(navigator.vendor),Yt=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(tn),de=/PhantomJS/.test(tn),we=!ne&&/AppleWebKit/.test(tn)&&/Mobile\/\w+/.test(tn),ue=/Android/.test(tn),he=we||ue||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(tn),It=we||/Mac/.test(mt),ye=/\bCrOS\b/.test(tn),Ze=/win/i.test(mt),pe=Ut&&tn.match(/Version\/(\d*\.\d*)/);pe&&(pe=Number(pe[1])),pe&&pe>=15&&(Ut=!1,Wt=!0);var be=It&&(jt||Ut&&(pe==null||pe<12.11)),Rt=ft||Dt&&Ht>=9;function zt(rt){return new RegExp("(^|\\s)"+rt+"(?:$|\\s)\\s*")}var Qt=function(rt,lt){var pt=rt.className,dt=zt(lt).exec(pt);if(dt){var yt=pt.slice(dt.index+dt[0].length);rt.className=pt.slice(0,dt.index)+(yt?dt[1]+yt:"")}};function te(rt){for(var lt=rt.childNodes.length;lt>0;--lt)rt.removeChild(rt.firstChild);return rt}function Ie(rt,lt){return te(rt).appendChild(lt)}function He(rt,lt,pt,dt){var yt=document.createElement(rt);if(pt&&(yt.className=pt),dt&&(yt.style.cssText=dt),typeof lt=="string")yt.appendChild(document.createTextNode(lt));else if(lt)for(var Lt=0;Lt<lt.length;++Lt)yt.appendChild(lt[Lt]);return yt}function en(rt,lt,pt,dt){var yt=He(rt,lt,pt,dt);return yt.setAttribute("role","presentation"),yt}var ie;document.createRange?ie=function(rt,lt,pt,dt){var yt=document.createRange();return yt.setEnd(dt||rt,pt),yt.setStart(rt,lt),yt}:ie=function(rt,lt,pt){var dt=document.body.createTextRange();try{dt.moveToElementText(rt.parentNode)}catch(yt){return dt}return dt.collapse(!0),dt.moveEnd("character",pt),dt.moveStart("character",lt),dt};function an(rt,lt){if(lt.nodeType==3&&(lt=lt.parentNode),rt.contains)return rt.contains(lt);do if(lt.nodeType==11&&(lt=lt.host),lt==rt)return!0;while(lt=lt.parentNode)}function nn(){var rt;try{rt=document.activeElement}catch(lt){rt=document.body||null}for(;rt&&rt.shadowRoot&&rt.shadowRoot.activeElement;)rt=rt.shadowRoot.activeElement;return rt}function Vn(rt,lt){var pt=rt.className;zt(lt).test(pt)||(rt.className+=(pt?" ":"")+lt)}function Ne(rt,lt){for(var pt=rt.split(" "),dt=0;dt<pt.length;dt++)pt[dt]&&!zt(pt[dt]).test(lt)&&(lt+=" "+pt[dt]);return lt}var Ye=function(rt){rt.select()};we?Ye=function(rt){rt.selectionStart=0,rt.selectionEnd=rt.value.length}:Dt&&(Ye=function(rt){try{rt.select()}catch(lt){}});function zn(rt){var lt=Array.prototype.slice.call(arguments,1);return function(){return rt.apply(null,lt)}}function Gn(rt,lt,pt){lt||(lt={});for(var dt in rt)rt.hasOwnProperty(dt)&&(pt!==!1||!lt.hasOwnProperty(dt))&&(lt[dt]=rt[dt]);return lt}function Me(rt,lt,pt,dt,yt){lt==null&&(lt=rt.search(/[^\s\u00a0]/),lt==-1&&(lt=rt.length));for(var Lt=dt||0,Vt=yt||0;;){var ae=rt.indexOf(" ",Lt);if(ae<0||ae>=lt)return Vt+(lt-Lt);Vt+=ae-Lt,Vt+=pt-Vt%pt,Lt=ae+1}}var _t=function(){this.id=null,this.f=null,this.time=0,this.handler=zn(this.onTimeout,this)};_t.prototype.onTimeout=function(rt){rt.id=0,rt.time<=+new Date?rt.f():setTimeout(rt.handler,rt.time-+new Date)},_t.prototype.set=function(rt,lt){this.f=lt;var pt=+new Date+rt;(!this.id||pt<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,rt),this.time=pt)};function rn(rt,lt){for(var pt=0;pt<rt.length;++pt)if(rt[pt]==lt)return pt;return-1}var ti=50,vn={toString:function(){return"CodeMirror.Pass"}},ze={scroll:!1},on={origin:"*mouse"},On={origin:"+move"};function Ni(rt,lt,pt){for(var dt=0,yt=0;;){var Lt=rt.indexOf(" ",dt);Lt==-1&&(Lt=rt.length);var Vt=Lt-dt;if(Lt==rt.length||yt+Vt>=lt)return dt+Math.min(Vt,lt-yt);if(yt+=Lt-dt,yt+=pt-yt%pt,dt=Lt+1,yt>=lt)return dt}}var gi=[""];function Dn(rt){for(;gi.length<=rt;)gi.push(Jn(gi)+" ");return gi[rt]}function Jn(rt){return rt[rt.length-1]}function Ai(rt,lt){for(var pt=[],dt=0;dt<rt.length;dt++)pt[dt]=lt(rt[dt],dt);return pt}function hi(rt,lt,pt){for(var dt=0,yt=pt(lt);dt<rt.length&&pt(rt[dt])<=yt;)dt++;rt.splice(dt,0,lt)}function qt(){}function kt(rt,lt){var pt;return Object.create?pt=Object.create(rt):(qt.prototype=rt,pt=new qt),lt&&Gn(lt,pt),pt}var Ct=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Pt(rt){return/\w/.test(rt)||rt>"\x80"&&(rt.toUpperCase()!=rt.toLowerCase()||Ct.test(rt))}function At(rt,lt){return lt?lt.source.indexOf("\\w")>-1&&Pt(rt)?!0:lt.test(rt):Pt(rt)}function wt(rt){for(var lt in rt)if(rt.hasOwnProperty(lt)&&rt[lt])return!1;return!0}var Xt=/[\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 Re(rt){return rt.charCodeAt(0)>=768&&Xt.test(rt)}function We(rt,lt,pt){for(;(pt<0?lt>0:lt<rt.length)&&Re(rt.charAt(lt));)lt+=pt;return lt}function In(rt,lt,pt){for(var dt=lt>pt?-1:1;;){if(lt==pt)return lt;var yt=(lt+pt)/2,Lt=dt<0?Math.ceil(yt):Math.floor(yt);if(Lt==lt)return rt(Lt)?lt:pt;rt(Lt)?pt=Lt:lt=Lt+dt}}function Hn(rt,lt,pt,dt){if(!rt)return dt(lt,pt,"ltr",0);for(var yt=!1,Lt=0;Lt<rt.length;++Lt){var Vt=rt[Lt];(Vt.from<pt&&Vt.to>lt||lt==pt&&Vt.to==lt)&&(dt(Math.max(Vt.from,lt),Math.min(Vt.to,pt),Vt.level==1?"rtl":"ltr",Lt),yt=!0)}yt||dt(lt,pt,"ltr")}var Un=null;function Yn(rt,lt,pt){var dt;Un=null;for(var yt=0;yt<rt.length;++yt){var Lt=rt[yt];if(Lt.from<lt&&Lt.to>lt)return yt;Lt.to==lt&&(Lt.from!=Lt.to&&pt=="before"?dt=yt:Un=yt),Lt.from==lt&&(Lt.from!=Lt.to&&pt!="before"?dt=yt:Un=yt)}return dt!=null?dt:Un}var Fe=function(){var rt="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",lt="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function pt(Pe){return Pe<=247?rt.charAt(Pe):1424<=Pe&&Pe<=1524?"R":1536<=Pe&&Pe<=1785?lt.charAt(Pe-1536):1774<=Pe&&Pe<=2220?"r":8192<=Pe&&Pe<=8203?"w":Pe==8204?"b":"L"}var dt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,yt=/[stwN]/,Lt=/[LRr]/,Vt=/[Lb1n]/,ae=/[1n]/;function oe(Pe,Bn,Ue){this.level=Pe,this.from=Bn,this.to=Ue}return function(Pe,Bn){var Ue=Bn=="ltr"?"L":"R";if(Pe.length==0||Bn=="ltr"&&!dt.test(Pe))return!1;for(var Li=Pe.length,Si=[],xr=0;xr<Li;++xr)Si.push(pt(Pe.charCodeAt(xr)));for(var Er=0,Rr=Ue;Er<Li;++Er){var io=Si[Er];io=="m"?Si[Er]=Rr:Rr=io}for(var To=0,fo=Ue;To<Li;++To){var Ro=Si[To];Ro=="1"&&fo=="r"?Si[To]="n":Lt.test(Ro)&&(fo=Ro,Ro=="r"&&(Si[To]="R"))}for(var $o=1,go=Si[0];$o<Li-1;++$o){var As=Si[$o];As=="+"&&go=="1"&&Si[$o+1]=="1"?Si[$o]="1":As==","&&go==Si[$o+1]&&(go=="1"||go=="n")&&(Si[$o]=go),go=As}for(var Aa=0;Aa<Li;++Aa){var Al=Si[Aa];if(Al==",")Si[Aa]="N";else if(Al=="%"){var Za=void 0;for(Za=Aa+1;Za<Li&&Si[Za]=="%";++Za);for(var mu=Aa&&Si[Aa-1]=="!"||Za<Li&&Si[Za]=="1"?"1":"N",nu=Aa;nu<Za;++nu)Si[nu]=mu;Aa=Za-1}}for(var bl=0,_u=Ue;bl<Li;++bl){var Cs=Si[bl];_u=="L"&&Cs=="1"?Si[bl]="L":Lt.test(Cs)&&(_u=Cs)}for(var al=0;al<Li;++al)if(yt.test(Si[al])){var Us=void 0;for(Us=al+1;Us<Li&&yt.test(Si[Us]);++Us);for(var tl=(al?Si[al-1]:Ue)=="L",Ga=(Us<Li?Si[Us]:Ue)=="L",Fl=tl==Ga?tl?"L":"R":Ue,iu=al;iu<Us;++iu)Si[iu]=Fl;al=Us-1}for(var Ra=[],qs,el=0;el<Li;)if(Vt.test(Si[el])){var Gf=el;for(++el;el<Li&&Vt.test(Si[el]);++el);Ra.push(new oe(0,Gf,el))}else{var tc=el,ku=Ra.length,Vl=Bn=="rtl"?1:0;for(++el;el<Li&&Si[el]!="L";++el);for(var ta=tc;ta<el;)if(ae.test(Si[ta])){tc<ta&&(Ra.splice(ku,0,new oe(1,tc,ta)),ku+=Vl);var Ll=ta;for(++ta;ta<el&&ae.test(Si[ta]);++ta);Ra.splice(ku,0,new oe(2,Ll,ta)),ku+=Vl,tc=ta}else++ta;tc<el&&Ra.splice(ku,0,new oe(1,tc,el))}return Bn=="ltr"&&(Ra[0].level==1&&(qs=Pe.match(/^\s+/))&&(Ra[0].from=qs[0].length,Ra.unshift(new oe(0,0,qs[0].length))),Jn(Ra).level==1&&(qs=Pe.match(/\s+$/))&&(Jn(Ra).to-=qs[0].length,Ra.push(new oe(0,Li-qs[0].length,Li)))),Bn=="rtl"?Ra.reverse():Ra}}();function bn(rt,lt){var pt=rt.order;return pt==null&&(pt=rt.order=Fe(rt.text,lt)),pt}var En=[],Qn=function(rt,lt,pt){if(rt.addEventListener)rt.addEventListener(lt,pt,!1);else if(rt.attachEvent)rt.attachEvent("on"+lt,pt);else{var dt=rt._handlers||(rt._handlers={});dt[lt]=(dt[lt]||En).concat(pt)}};function Sn(rt,lt){return rt._handlers&&rt._handlers[lt]||En}function Vi(rt,lt,pt){if(rt.removeEventListener)rt.removeEventListener(lt,pt,!1);else if(rt.detachEvent)rt.detachEvent("on"+lt,pt);else{var dt=rt._handlers,yt=dt&&dt[lt];if(yt){var Lt=rn(yt,pt);Lt>-1&&(dt[lt]=yt.slice(0,Lt).concat(yt.slice(Lt+1)))}}}function Qe(rt,lt){var pt=Sn(rt,lt);if(pt.length)for(var dt=Array.prototype.slice.call(arguments,2),yt=0;yt<pt.length;++yt)pt[yt].apply(null,dt)}function Pn(rt,lt,pt){return typeof lt=="string"&&(lt={type:lt,preventDefault:function(){this.defaultPrevented=!0}}),Qe(rt,pt||lt.type,rt,lt),wr(lt)||lt.codemirrorIgnore}function Ci(rt){var lt=rt._handlers&&rt._handlers.cursorActivity;if(lt)for(var pt=rt.curOp.cursorActivityHandlers||(rt.curOp.cursorActivityHandlers=[]),dt=0;dt<lt.length;++dt)rn(pt,lt[dt])==-1&&pt.push(lt[dt])}function yi(rt,lt){return Sn(rt,lt).length>0}function Oi(rt){rt.prototype.on=function(lt,pt){Qn(this,lt,pt)},rt.prototype.off=function(lt,pt){Vi(this,lt,pt)}}function ar(rt){rt.preventDefault?rt.preventDefault():rt.returnValue=!1}function br(rt){rt.stopPropagation?rt.stopPropagation():rt.cancelBubble=!0}function wr(rt){return rt.defaultPrevented!=null?rt.defaultPrevented:rt.returnValue==!1}function cr(rt){ar(rt),br(rt)}function Ar(rt){return rt.target||rt.srcElement}function ir(rt){var lt=rt.which;return lt==null&&(rt.button&1?lt=1:rt.button&2?lt=3:rt.button&4&&(lt=2)),It&&rt.ctrlKey&<==1&&(lt=3),lt}var kr=function(){if(Dt&&Ht<9)return!1;var rt=He("div");return"draggable"in rt||"dragDrop"in rt}(),po;function So(rt){if(po==null){var lt=He("span","\u200B");Ie(rt,He("span",[lt,document.createTextNode("x")])),rt.firstChild.offsetHeight!=0&&(po=lt.offsetWidth<=1&<.offsetHeight>2&&!(Dt&&Ht<8))}var pt=po?He("span","\u200B"):He("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return pt.setAttribute("cm-text",""),pt}var Eo;function Yr(rt){if(Eo!=null)return Eo;var lt=Ie(rt,document.createTextNode("A\u062EA")),pt=ie(lt,0,1).getBoundingClientRect(),dt=ie(lt,1,2).getBoundingClientRect();return te(rt),!pt||pt.left==pt.right?!1:Eo=dt.right-pt.right<3}var Mn=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(rt){for(var lt=0,pt=[],dt=rt.length;lt<=dt;){var yt=rt.indexOf(`
|
|
|
`,lt);yt==-1&&(yt=rt.length);var Lt=rt.slice(lt,rt.charAt(yt-1)=="\r"?yt-1:yt),Vt=Lt.indexOf("\r");Vt!=-1?(pt.push(Lt.slice(0,Vt)),lt+=Vt+1):(pt.push(Lt),lt=yt+1)}return pt}:function(rt){return rt.split(/\r\n?|\n/)},St=window.getSelection?function(rt){try{return rt.selectionStart!=rt.selectionEnd}catch(lt){return!1}}:function(rt){var lt;try{lt=rt.ownerDocument.selection.createRange()}catch(pt){}return!lt||lt.parentElement()!=rt?!1:lt.compareEndPoints("StartToEnd",lt)!=0},Zi=function(){var rt=He("div");return"oncopy"in rt?!0:(rt.setAttribute("oncopy","return;"),typeof rt.oncopy=="function")}(),mi=null;function rr(rt){if(mi!=null)return mi;var lt=Ie(rt,He("span","x")),pt=lt.getBoundingClientRect(),dt=ie(lt,0,1).getBoundingClientRect();return mi=Math.abs(pt.left-dt.left)>1}var fr={},pr={};function tr(rt,lt){arguments.length>2&&(lt.dependencies=Array.prototype.slice.call(arguments,2)),fr[rt]=lt}function Xe(rt,lt){pr[rt]=lt}function mn(rt){if(typeof rt=="string"&&pr.hasOwnProperty(rt))rt=pr[rt];else if(rt&&typeof rt.name=="string"&&pr.hasOwnProperty(rt.name)){var lt=pr[rt.name];typeof lt=="string"&&(lt={name:lt}),rt=kt(lt,rt),rt.name=lt.name}else{if(typeof rt=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(rt))return mn("application/xml");if(typeof rt=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(rt))return mn("application/json")}return typeof rt=="string"?{name:rt}:rt||{name:"null"}}function Tn(rt,lt){lt=mn(lt);var pt=fr[lt.name];if(!pt)return Tn(rt,"text/plain");var dt=pt(rt,lt);if(Nn.hasOwnProperty(lt.name)){var yt=Nn[lt.name];for(var Lt in yt)yt.hasOwnProperty(Lt)&&(dt.hasOwnProperty(Lt)&&(dt["_"+Lt]=dt[Lt]),dt[Lt]=yt[Lt])}if(dt.name=lt.name,lt.helperType&&(dt.helperType=lt.helperType),lt.modeProps)for(var Vt in lt.modeProps)dt[Vt]=lt.modeProps[Vt];return dt}var Nn={};function ge(rt,lt){var pt=Nn.hasOwnProperty(rt)?Nn[rt]:Nn[rt]={};Gn(lt,pt)}function Cn(rt,lt){if(lt===!0)return lt;if(rt.copyState)return rt.copyState(lt);var pt={};for(var dt in lt){var yt=lt[dt];yt instanceof Array&&(yt=yt.concat([])),pt[dt]=yt}return pt}function ai(rt,lt){for(var pt;rt.innerMode&&(pt=rt.innerMode(lt),!(!pt||pt.mode==rt));)lt=pt.state,rt=pt.mode;return pt||{mode:rt,state:lt}}function Te(rt,lt,pt){return rt.startState?rt.startState(lt,pt):!0}var ce=function(rt,lt,pt){this.pos=this.start=0,this.string=rt,this.tabSize=lt||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=pt};ce.prototype.eol=function(){return this.pos>=this.string.length},ce.prototype.sol=function(){return this.pos==this.lineStart},ce.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ce.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ce.prototype.eat=function(rt){var lt=this.string.charAt(this.pos),pt;if(typeof rt=="string"?pt=lt==rt:pt=lt&&(rt.test?rt.test(lt):rt(lt)),pt)return++this.pos,lt},ce.prototype.eatWhile=function(rt){for(var lt=this.pos;this.eat(rt););return this.pos>lt},ce.prototype.eatSpace=function(){for(var rt=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>rt},ce.prototype.skipToEnd=function(){this.pos=this.string.length},ce.prototype.skipTo=function(rt){var lt=this.string.indexOf(rt,this.pos);if(lt>-1)return this.pos=lt,!0},ce.prototype.backUp=function(rt){this.pos-=rt},ce.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Me(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Me(this.string,this.lineStart,this.tabSize):0)},ce.prototype.indentation=function(){return Me(this.string,null,this.tabSize)-(this.lineStart?Me(this.string,this.lineStart,this.tabSize):0)},ce.prototype.match=function(rt,lt,pt){if(typeof rt=="string"){var dt=function(Vt){return pt?Vt.toLowerCase():Vt},yt=this.string.substr(this.pos,rt.length);if(dt(yt)==dt(rt))return lt!==!1&&(this.pos+=rt.length),!0}else{var Lt=this.string.slice(this.pos).match(rt);return Lt&&Lt.index>0?null:(Lt&<!==!1&&(this.pos+=Lt[0].length),Lt)}},ce.prototype.current=function(){return this.string.slice(this.start,this.pos)},ce.prototype.hideFirstChars=function(rt,lt){this.lineStart+=rt;try{return lt()}finally{this.lineStart-=rt}},ce.prototype.lookAhead=function(rt){var lt=this.lineOracle;return lt&<.lookAhead(rt)},ce.prototype.baseToken=function(){var rt=this.lineOracle;return rt&&rt.baseToken(this.pos)};function Oe(rt,lt){if(lt-=rt.first,lt<0||lt>=rt.size)throw new Error("There is no line "+(lt+rt.first)+" in the document.");for(var pt=rt;!pt.lines;)for(var dt=0;;++dt){var yt=pt.children[dt],Lt=yt.chunkSize();if(lt<Lt){pt=yt;break}lt-=Lt}return pt.lines[lt]}function pn(rt,lt,pt){var dt=[],yt=lt.line;return rt.iter(lt.line,pt.line+1,function(Lt){var Vt=Lt.text;yt==pt.line&&(Vt=Vt.slice(0,pt.ch)),yt==lt.line&&(Vt=Vt.slice(lt.ch)),dt.push(Vt),++yt}),dt}function fi(rt,lt,pt){var dt=[];return rt.iter(lt,pt,function(yt){dt.push(yt.text)}),dt}function $n(rt,lt){var pt=lt-rt.height;if(pt)for(var dt=rt;dt;dt=dt.parent)dt.height+=pt}function _e(rt){if(rt.parent==null)return null;for(var lt=rt.parent,pt=rn(lt.lines,rt),dt=lt.parent;dt;lt=dt,dt=dt.parent)for(var yt=0;dt.children[yt]!=lt;++yt)pt+=dt.children[yt].chunkSize();return pt+lt.first}function ri(rt,lt){var pt=rt.first;t:do{for(var dt=0;dt<rt.children.length;++dt){var yt=rt.children[dt],Lt=yt.height;if(lt<Lt){rt=yt;continue t}lt-=Lt,pt+=yt.chunkSize()}return pt}while(!rt.lines);for(var Vt=0;Vt<rt.lines.length;++Vt){var ae=rt.lines[Vt],oe=ae.height;if(lt<oe)break;lt-=oe}return pt+Vt}function Ri(rt,lt){return lt>=rt.first&<<rt.first+rt.size}function $e(rt,lt){return String(rt.lineNumberFormatter(lt+rt.firstLineNumber))}function Ge(rt,lt,pt){if(pt===void 0&&(pt=null),!(this instanceof Ge))return new Ge(rt,lt,pt);this.line=rt,this.ch=lt,this.sticky=pt}function un(rt,lt){return rt.line-lt.line||rt.ch-lt.ch}function xi(rt,lt){return rt.sticky==lt.sticky&&un(rt,lt)==0}function Yi(rt){return Ge(rt.line,rt.ch)}function ci(rt,lt){return un(rt,lt)<0?lt:rt}function Xn(rt,lt){return un(rt,lt)<0?rt:lt}function qn(rt,lt){return Math.max(rt.first,Math.min(lt,rt.first+rt.size-1))}function Ki(rt,lt){if(lt.line<rt.first)return Ge(rt.first,0);var pt=rt.first+rt.size-1;return lt.line>pt?Ge(pt,Oe(rt,pt).text.length):vr(lt,Oe(rt,lt.line).text.length)}function vr(rt,lt){var pt=rt.ch;return pt==null||pt>lt?Ge(rt.line,lt):pt<0?Ge(rt.line,0):rt}function ki(rt,lt){for(var pt=[],dt=0;dt<lt.length;dt++)pt[dt]=Ki(rt,lt[dt]);return pt}var Or=function(rt,lt){this.state=rt,this.lookAhead=lt},Ii=function(rt,lt,pt,dt){this.state=lt,this.doc=rt,this.line=pt,this.maxLookAhead=dt||0,this.baseTokens=null,this.baseTokenPos=1};Ii.prototype.lookAhead=function(rt){var lt=this.doc.getLine(this.line+rt);return lt!=null&&rt>this.maxLookAhead&&(this.maxLookAhead=rt),lt},Ii.prototype.baseToken=function(rt){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=rt;)this.baseTokenPos+=2;var lt=this.baseTokens[this.baseTokenPos+1];return{type:lt&<.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-rt}},Ii.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ii.fromSaved=function(rt,lt,pt){return lt instanceof Or?new Ii(rt,Cn(rt.mode,lt.state),pt,lt.lookAhead):new Ii(rt,Cn(rt.mode,lt),pt)},Ii.prototype.save=function(rt){var lt=rt!==!1?Cn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Or(lt,this.maxLookAhead):lt};function ao(rt,lt,pt,dt){var yt=[rt.state.modeGen],Lt={};Xr(rt,lt.text,rt.doc.mode,pt,function(Pe,Bn){return yt.push(Pe,Bn)},Lt,dt);for(var Vt=pt.state,ae=function(Pe){pt.baseTokens=yt;var Bn=rt.state.overlays[Pe],Ue=1,Li=0;pt.state=!0,Xr(rt,lt.text,Bn.mode,pt,function(Si,xr){for(var Er=Ue;Li<Si;){var Rr=yt[Ue];Rr>Si&&yt.splice(Ue,1,Si,yt[Ue+1],Rr),Ue+=2,Li=Math.min(Si,Rr)}if(xr)if(Bn.opaque)yt.splice(Er,Ue-Er,Si,"overlay "+xr),Ue=Er+2;else for(;Er<Ue;Er+=2){var io=yt[Er+1];yt[Er+1]=(io?io+" ":"")+"overlay "+xr}},Lt),pt.state=Vt,pt.baseTokens=null,pt.baseTokenPos=1},oe=0;oe<rt.state.overlays.length;++oe)ae(oe);return{styles:yt,classes:Lt.bgClass||Lt.textClass?Lt:null}}function qr(rt,lt,pt){if(!lt.styles||lt.styles[0]!=rt.state.modeGen){var dt=Do(rt,_e(lt)),yt=lt.text.length>rt.options.maxHighlightLength&&Cn(rt.doc.mode,dt.state),Lt=ao(rt,lt,dt);yt&&(dt.state=yt),lt.stateAfter=dt.save(!yt),lt.styles=Lt.styles,Lt.classes?lt.styleClasses=Lt.classes:lt.styleClasses&&(lt.styleClasses=null),pt===rt.doc.highlightFrontier&&(rt.doc.modeFrontier=Math.max(rt.doc.modeFrontier,++rt.doc.highlightFrontier))}return lt.styles}function Do(rt,lt,pt){var dt=rt.doc,yt=rt.display;if(!dt.mode.startState)return new Ii(dt,!0,lt);var Lt=Br(rt,lt,pt),Vt=Lt>dt.first&&Oe(dt,Lt-1).stateAfter,ae=Vt?Ii.fromSaved(dt,Vt,Lt):new Ii(dt,Te(dt.mode),Lt);return dt.iter(Lt,lt,function(oe){ui(rt,oe.text,ae);var Pe=ae.line;oe.stateAfter=Pe==lt-1||Pe%5==0||Pe>=yt.viewFrom&&Pe<yt.viewTo?ae.save():null,ae.nextLine()}),pt&&(dt.modeFrontier=ae.line),ae}function ui(rt,lt,pt,dt){var yt=rt.doc.mode,Lt=new ce(lt,rt.options.tabSize,pt);for(Lt.start=Lt.pos=dt||0,lt==""&&Co(yt,pt.state);!Lt.eol();)bo(yt,Lt,pt.state),Lt.start=Lt.pos}function Co(rt,lt){if(rt.blankLine)return rt.blankLine(lt);if(rt.innerMode){var pt=ai(rt,lt);if(pt.mode.blankLine)return pt.mode.blankLine(pt.state)}}function bo(rt,lt,pt,dt){for(var yt=0;yt<10;yt++){dt&&(dt[0]=ai(rt,pt).mode);var Lt=rt.token(lt,pt);if(lt.pos>lt.start)return Lt}throw new Error("Mode "+rt.name+" failed to advance stream.")}var Kr=function(rt,lt,pt){this.start=rt.start,this.end=rt.pos,this.string=rt.current(),this.type=lt||null,this.state=pt};function wo(rt,lt,pt,dt){var yt=rt.doc,Lt=yt.mode,Vt;lt=Ki(yt,lt);var ae=Oe(yt,lt.line),oe=Do(rt,lt.line,pt),Pe=new ce(ae.text,rt.options.tabSize,oe),Bn;for(dt&&(Bn=[]);(dt||Pe.pos<lt.ch)&&!Pe.eol();)Pe.start=Pe.pos,Vt=bo(Lt,Pe,oe.state),dt&&Bn.push(new Kr(Pe,Vt,Cn(yt.mode,oe.state)));return dt?Bn:new Kr(Pe,Vt,oe.state)}function Sr(rt,lt){if(rt)for(;;){var pt=rt.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!pt)break;rt=rt.slice(0,pt.index)+rt.slice(pt.index+pt[0].length);var dt=pt[1]?"bgClass":"textClass";lt[dt]==null?lt[dt]=pt[2]:new RegExp("(?:^|\\s)"+pt[2]+"(?:$|\\s)").test(lt[dt])||(lt[dt]+=" "+pt[2])}return rt}function Xr(rt,lt,pt,dt,yt,Lt,Vt){var ae=pt.flattenSpans;ae==null&&(ae=rt.options.flattenSpans);var oe=0,Pe=null,Bn=new ce(lt,rt.options.tabSize,dt),Ue,Li=rt.options.addModeClass&&[null];for(lt==""&&Sr(Co(pt,dt.state),Lt);!Bn.eol();){if(Bn.pos>rt.options.maxHighlightLength?(ae=!1,Vt&&ui(rt,lt,dt,Bn.pos),Bn.pos=lt.length,Ue=null):Ue=Sr(bo(pt,Bn,dt.state,Li),Lt),Li){var Si=Li[0].name;Si&&(Ue="m-"+(Ue?Si+" "+Ue:Si))}if(!ae||Pe!=Ue){for(;oe<Bn.start;)oe=Math.min(Bn.start,oe+5e3),yt(oe,Pe);Pe=Ue}Bn.start=Bn.pos}for(;oe<Bn.pos;){var xr=Math.min(Bn.pos,oe+5e3);yt(xr,Pe),oe=xr}}function Br(rt,lt,pt){for(var dt,yt,Lt=rt.doc,Vt=pt?-1:lt-(rt.doc.mode.innerMode?1e3:100),ae=lt;ae>Vt;--ae){if(ae<=Lt.first)return Lt.first;var oe=Oe(Lt,ae-1),Pe=oe.stateAfter;if(Pe&&(!pt||ae+(Pe instanceof Or?Pe.lookAhead:0)<=Lt.modeFrontier))return ae;var Bn=Me(oe.text,null,rt.options.tabSize);(yt==null||dt>Bn)&&(yt=ae-1,dt=Bn)}return yt}function yo(rt,lt){if(rt.modeFrontier=Math.min(rt.modeFrontier,lt),!(rt.highlightFrontier<lt-10)){for(var pt=rt.first,dt=lt-1;dt>pt;dt--){var yt=Oe(rt,dt).stateAfter;if(yt&&(!(yt instanceof Or)||dt+yt.lookAhead<lt)){pt=dt+1;break}}rt.highlightFrontier=Math.min(rt.highlightFrontier,pt)}}var ko=!1,oi=!1;function kn(){ko=!0}function Ce(){oi=!0}function si(rt,lt,pt){this.marker=rt,this.from=lt,this.to=pt}function Wi(rt,lt){if(rt)for(var pt=0;pt<rt.length;++pt){var dt=rt[pt];if(dt.marker==lt)return dt}}function Gi(rt,lt){for(var pt,dt=0;dt<rt.length;++dt)rt[dt]!=lt&&(pt||(pt=[])).push(rt[dt]);return pt}function Tr(rt,lt){rt.markedSpans=rt.markedSpans?rt.markedSpans.concat([lt]):[lt],lt.marker.attachLine(rt)}function Lr(rt,lt,pt){var dt;if(rt)for(var yt=0;yt<rt.length;++yt){var Lt=rt[yt],Vt=Lt.marker,ae=Lt.from==null||(Vt.inclusiveLeft?Lt.from<=lt:Lt.from<lt);if(ae||Lt.from==lt&&Vt.type=="bookmark"&&(!pt||!Lt.marker.insertLeft)){var oe=Lt.to==null||(Vt.inclusiveRight?Lt.to>=lt:Lt.to>lt);(dt||(dt=[])).push(new si(Vt,Lt.from,oe?null:Lt.to))}}return dt}function Cr(rt,lt,pt){var dt;if(rt)for(var yt=0;yt<rt.length;++yt){var Lt=rt[yt],Vt=Lt.marker,ae=Lt.to==null||(Vt.inclusiveRight?Lt.to>=lt:Lt.to>lt);if(ae||Lt.from==lt&&Vt.type=="bookmark"&&(!pt||Lt.marker.insertLeft)){var oe=Lt.from==null||(Vt.inclusiveLeft?Lt.from<=lt:Lt.from<lt);(dt||(dt=[])).push(new si(Vt,oe?null:Lt.from-lt,Lt.to==null?null:Lt.to-lt))}}return dt}function jr(rt,lt){if(lt.full)return null;var pt=Ri(rt,lt.from.line)&&Oe(rt,lt.from.line).markedSpans,dt=Ri(rt,lt.to.line)&&Oe(rt,lt.to.line).markedSpans;if(!pt&&!dt)return null;var yt=lt.from.ch,Lt=lt.to.ch,Vt=un(lt.from,lt.to)==0,ae=Lr(pt,yt,Vt),oe=Cr(dt,Lt,Vt),Pe=lt.text.length==1,Bn=Jn(lt.text).length+(Pe?yt:0);if(ae)for(var Ue=0;Ue<ae.length;++Ue){var Li=ae[Ue];if(Li.to==null){var Si=Wi(oe,Li.marker);Si?Pe&&(Li.to=Si.to==null?null:Si.to+Bn):Li.to=yt}}if(oe)for(var xr=0;xr<oe.length;++xr){var Er=oe[xr];if(Er.to!=null&&(Er.to+=Bn),Er.from==null){var Rr=Wi(ae,Er.marker);Rr||(Er.from=Bn,Pe&&(ae||(ae=[])).push(Er))}else Er.from+=Bn,Pe&&(ae||(ae=[])).push(Er)}ae&&(ae=Jr(ae)),oe&&oe!=ae&&(oe=Jr(oe));var io=[ae];if(!Pe){var To=lt.text.length-2,fo;if(To>0&&ae)for(var Ro=0;Ro<ae.length;++Ro)ae[Ro].to==null&&(fo||(fo=[])).push(new si(ae[Ro].marker,null,null));for(var $o=0;$o<To;++$o)io.push(fo);io.push(oe)}return io}function Jr(rt){for(var lt=0;lt<rt.length;++lt){var pt=rt[lt];pt.from!=null&&pt.from==pt.to&&pt.marker.clearWhenEmpty!==!1&&rt.splice(lt--,1)}return rt.length?rt:null}function Wr(rt,lt,pt){var dt=null;if(rt.iter(lt.line,pt.line+1,function(Si){if(Si.markedSpans)for(var xr=0;xr<Si.markedSpans.length;++xr){var Er=Si.markedSpans[xr].marker;Er.readOnly&&(!dt||rn(dt,Er)==-1)&&(dt||(dt=[])).push(Er)}}),!dt)return null;for(var yt=[{from:lt,to:pt}],Lt=0;Lt<dt.length;++Lt)for(var Vt=dt[Lt],ae=Vt.find(0),oe=0;oe<yt.length;++oe){var Pe=yt[oe];if(!(un(Pe.to,ae.from)<0||un(Pe.from,ae.to)>0)){var Bn=[oe,1],Ue=un(Pe.from,ae.from),Li=un(Pe.to,ae.to);(Ue<0||!Vt.inclusiveLeft&&!Ue)&&Bn.push({from:Pe.from,to:ae.from}),(Li>0||!Vt.inclusiveRight&&!Li)&&Bn.push({from:ae.to,to:Pe.to}),yt.splice.apply(yt,Bn),oe+=Bn.length-3}}return yt}function or(rt){var lt=rt.markedSpans;if(lt){for(var pt=0;pt<lt.length;++pt)lt[pt].marker.detachLine(rt);rt.markedSpans=null}}function Gt(rt,lt){if(lt){for(var pt=0;pt<lt.length;++pt)lt[pt].marker.attachLine(rt);rt.markedSpans=lt}}function Zn(rt){return rt.inclusiveLeft?-1:0}function wi(rt){return rt.inclusiveRight?1:0}function Fi(rt,lt){var pt=rt.lines.length-lt.lines.length;if(pt!=0)return pt;var dt=rt.find(),yt=lt.find(),Lt=un(dt.from,yt.from)||Zn(rt)-Zn(lt);if(Lt)return-Lt;var Vt=un(dt.to,yt.to)||wi(rt)-wi(lt);return Vt||lt.id-rt.id}function Tt(rt,lt){var pt=oi&&rt.markedSpans,dt;if(pt)for(var yt=void 0,Lt=0;Lt<pt.length;++Lt)yt=pt[Lt],yt.marker.collapsed&&(lt?yt.from:yt.to)==null&&(!dt||Fi(dt,yt.marker)<0)&&(dt=yt.marker);return dt}function ee(rt){return Tt(rt,!0)}function le(rt){return Tt(rt,!1)}function xe(rt,lt){var pt=oi&&rt.markedSpans,dt;if(pt)for(var yt=0;yt<pt.length;++yt){var Lt=pt[yt];Lt.marker.collapsed&&(Lt.from==null||Lt.from<lt)&&(Lt.to==null||Lt.to>lt)&&(!dt||Fi(dt,Lt.marker)<0)&&(dt=Lt.marker)}return dt}function fe(rt,lt,pt,dt,yt){var Lt=Oe(rt,lt),Vt=oi&&Lt.markedSpans;if(Vt)for(var ae=0;ae<Vt.length;++ae){var oe=Vt[ae];if(oe.marker.collapsed){var Pe=oe.marker.find(0),Bn=un(Pe.from,pt)||Zn(oe.marker)-Zn(yt),Ue=un(Pe.to,dt)||wi(oe.marker)-wi(yt);if(!(Bn>=0&&Ue<=0||Bn<=0&&Ue>=0)&&(Bn<=0&&(oe.marker.inclusiveRight&&yt.inclusiveLeft?un(Pe.to,pt)>=0:un(Pe.to,pt)>0)||Bn>=0&&(oe.marker.inclusiveRight&&yt.inclusiveLeft?un(Pe.from,dt)<=0:un(Pe.from,dt)<0)))return!0}}}function Ee(rt){for(var lt;lt=ee(rt);)rt=lt.find(-1,!0).line;return rt}function Ae(rt){for(var lt;lt=le(rt);)rt=lt.find(1,!0).line;return rt}function yn(rt){for(var lt,pt;lt=le(rt);)rt=lt.find(1,!0).line,(pt||(pt=[])).push(rt);return pt}function Rn(rt,lt){var pt=Oe(rt,lt),dt=Ee(pt);return pt==dt?lt:_e(dt)}function Pi(rt,lt){if(lt>rt.lastLine())return lt;var pt=Oe(rt,lt),dt;if(!An(rt,pt))return lt;for(;dt=le(pt);)pt=dt.find(1,!0).line;return _e(pt)+1}function An(rt,lt){var pt=oi&<.markedSpans;if(pt){for(var dt=void 0,yt=0;yt<pt.length;++yt)if(dt=pt[yt],!!dt.marker.collapsed){if(dt.from==null)return!0;if(!dt.marker.widgetNode&&dt.from==0&&dt.marker.inclusiveLeft&&Mi(rt,lt,dt))return!0}}}function Mi(rt,lt,pt){if(pt.to==null){var dt=pt.marker.find(1,!0);return Mi(rt,dt.line,Wi(dt.line.markedSpans,pt.marker))}if(pt.marker.inclusiveRight&&pt.to==lt.text.length)return!0;for(var yt=void 0,Lt=0;Lt<lt.markedSpans.length;++Lt)if(yt=lt.markedSpans[Lt],yt.marker.collapsed&&!yt.marker.widgetNode&&yt.from==pt.to&&(yt.to==null||yt.to!=pt.from)&&(yt.marker.inclusiveLeft||pt.marker.inclusiveRight)&&Mi(rt,lt,yt))return!0}function pi(rt){rt=Ee(rt);for(var lt=0,pt=rt.parent,dt=0;dt<pt.lines.length;++dt){var yt=pt.lines[dt];if(yt==rt)break;lt+=yt.height}for(var Lt=pt.parent;Lt;pt=Lt,Lt=pt.parent)for(var Vt=0;Vt<Lt.children.length;++Vt){var ae=Lt.children[Vt];if(ae==pt)break;lt+=ae.height}return lt}function di(rt){if(rt.height==0)return 0;for(var lt=rt.text.length,pt,dt=rt;pt=ee(dt);){var yt=pt.find(0,!0);dt=yt.from.line,lt+=yt.from.ch-yt.to.ch}for(dt=rt;pt=le(dt);){var Lt=pt.find(0,!0);lt-=dt.text.length-Lt.from.ch,dt=Lt.to.line,lt+=dt.text.length-Lt.to.ch}return lt}function Wn(rt){var lt=rt.display,pt=rt.doc;lt.maxLine=Oe(pt,pt.first),lt.maxLineLength=di(lt.maxLine),lt.maxLineChanged=!0,pt.iter(function(dt){var yt=di(dt);yt>lt.maxLineLength&&(lt.maxLineLength=yt,lt.maxLine=dt)})}var Bi=function(rt,lt,pt){this.text=rt,Gt(this,lt),this.height=pt?pt(this):1};Bi.prototype.lineNo=function(){return _e(this)},Oi(Bi);function sr(rt,lt,pt,dt){rt.text=lt,rt.stateAfter&&(rt.stateAfter=null),rt.styles&&(rt.styles=null),rt.order!=null&&(rt.order=null),or(rt),Gt(rt,pt);var yt=dt?dt(rt):1;yt!=rt.height&&$n(rt,yt)}function _i(rt){rt.parent=null,or(rt)}var Ui={},qi={};function lr(rt,lt){if(!rt||/^\s*$/.test(rt))return null;var pt=lt.addModeClass?qi:Ui;return pt[rt]||(pt[rt]=rt.replace(/\S+/g,"cm-$&"))}function je(rt,lt){var pt=en("span",null,null,Wt?"padding-right: .1px":null),dt={pre:en("pre",[pt],"CodeMirror-line"),content:pt,col:0,pos:0,cm:rt,trailingSpace:!1,splitSpaces:rt.getOption("lineWrapping")};lt.measure={};for(var yt=0;yt<=(lt.rest?lt.rest.length:0);yt++){var Lt=yt?lt.rest[yt-1]:lt.line,Vt=void 0;dt.pos=0,dt.addToken=ke,Yr(rt.display.measure)&&(Vt=bn(Lt,rt.doc.direction))&&(dt.addToken=cn(dt.addToken,Vt)),dt.map=[];var ae=lt!=rt.display.externalMeasured&&_e(Lt);Ti(Lt,dt,qr(rt,Lt,ae)),Lt.styleClasses&&(Lt.styleClasses.bgClass&&(dt.bgClass=Ne(Lt.styleClasses.bgClass,dt.bgClass||"")),Lt.styleClasses.textClass&&(dt.textClass=Ne(Lt.styleClasses.textClass,dt.textClass||""))),dt.map.length==0&&dt.map.push(0,0,dt.content.appendChild(So(rt.display.measure))),yt==0?(lt.measure.map=dt.map,lt.measure.cache={}):((lt.measure.maps||(lt.measure.maps=[])).push(dt.map),(lt.measure.caches||(lt.measure.caches=[])).push({}))}if(Wt){var oe=dt.content.lastChild;(/\bcm-tab\b/.test(oe.className)||oe.querySelector&&oe.querySelector(".cm-tab"))&&(dt.content.className="cm-tab-wrap-hack")}return Qe(rt,"renderLine",rt,lt.line,dt.pre),dt.pre.className&&(dt.textClass=Ne(dt.pre.className,dt.textClass||"")),dt}function ve(rt){var lt=He("span","\u2022","cm-invalidchar");return lt.title="\\u"+rt.charCodeAt(0).toString(16),lt.setAttribute("aria-label",lt.title),lt}function ke(rt,lt,pt,dt,yt,Lt,Vt){if(lt){var ae=rt.splitSpaces?xn(lt,rt.trailingSpace):lt,oe=rt.cm.state.specialChars,Pe=!1,Bn;if(!oe.test(lt))rt.col+=lt.length,Bn=document.createTextNode(ae),rt.map.push(rt.pos,rt.pos+lt.length,Bn),Dt&&Ht<9&&(Pe=!0),rt.pos+=lt.length;else{Bn=document.createDocumentFragment();for(var Ue=0;;){oe.lastIndex=Ue;var Li=oe.exec(lt),Si=Li?Li.index-Ue:lt.length-Ue;if(Si){var xr=document.createTextNode(ae.slice(Ue,Ue+Si));Dt&&Ht<9?Bn.appendChild(He("span",[xr])):Bn.appendChild(xr),rt.map.push(rt.pos,rt.pos+Si,xr),rt.col+=Si,rt.pos+=Si}if(!Li)break;Ue+=Si+1;var Er=void 0;if(Li[0]==" "){var Rr=rt.cm.options.tabSize,io=Rr-rt.col%Rr;Er=Bn.appendChild(He("span",Dn(io),"cm-tab")),Er.setAttribute("role","presentation"),Er.setAttribute("cm-text"," "),rt.col+=io}else Li[0]=="\r"||Li[0]==`
|
|
|
`?(Er=Bn.appendChild(He("span",Li[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Er.setAttribute("cm-text",Li[0]),rt.col+=1):(Er=rt.cm.options.specialCharPlaceholder(Li[0]),Er.setAttribute("cm-text",Li[0]),Dt&&Ht<9?Bn.appendChild(He("span",[Er])):Bn.appendChild(Er),rt.col+=1);rt.map.push(rt.pos,rt.pos+1,Er),rt.pos++}}if(rt.trailingSpace=ae.charCodeAt(lt.length-1)==32,pt||dt||yt||Pe||Lt||Vt){var To=pt||"";dt&&(To+=dt),yt&&(To+=yt);var fo=He("span",[Bn],To,Lt);if(Vt)for(var Ro in Vt)Vt.hasOwnProperty(Ro)&&Ro!="style"&&Ro!="class"&&fo.setAttribute(Ro,Vt[Ro]);return rt.content.appendChild(fo)}rt.content.appendChild(Bn)}}function xn(rt,lt){if(rt.length>1&&!/ /.test(rt))return rt;for(var pt=lt,dt="",yt=0;yt<rt.length;yt++){var Lt=rt.charAt(yt);Lt==" "&&pt&&(yt==rt.length-1||rt.charCodeAt(yt+1)==32)&&(Lt="\xA0"),dt+=Lt,pt=Lt==" "}return dt}function cn(rt,lt){return function(pt,dt,yt,Lt,Vt,ae,oe){yt=yt?yt+" cm-force-border":"cm-force-border";for(var Pe=pt.pos,Bn=Pe+dt.length;;){for(var Ue=void 0,Li=0;Li<lt.length&&(Ue=lt[Li],!(Ue.to>Pe&&Ue.from<=Pe));Li++);if(Ue.to>=Bn)return rt(pt,dt,yt,Lt,Vt,ae,oe);rt(pt,dt.slice(0,Ue.to-Pe),yt,Lt,null,ae,oe),Lt=null,dt=dt.slice(Ue.to-Pe),Pe=Ue.to}}}function ni(rt,lt,pt,dt){var yt=!dt&&pt.widgetNode;yt&&rt.map.push(rt.pos,rt.pos+lt,yt),!dt&&rt.cm.display.input.needsContentAttribute&&(yt||(yt=rt.content.appendChild(document.createElement("span"))),yt.setAttribute("cm-marker",pt.id)),yt&&(rt.cm.display.input.setUneditable(yt),rt.content.appendChild(yt)),rt.pos+=lt,rt.trailingSpace=!1}function Ti(rt,lt,pt){var dt=rt.markedSpans,yt=rt.text,Lt=0;if(!dt){for(var Vt=1;Vt<pt.length;Vt+=2)lt.addToken(lt,yt.slice(Lt,Lt=pt[Vt]),lr(pt[Vt+1],lt.cm.options));return}for(var ae=yt.length,oe=0,Pe=1,Bn="",Ue,Li,Si=0,xr,Er,Rr,io,To;;){if(Si==oe){xr=Er=Rr=Li="",To=null,io=null,Si=1/0;for(var fo=[],Ro=void 0,$o=0;$o<dt.length;++$o){var go=dt[$o],As=go.marker;if(As.type=="bookmark"&&go.from==oe&&As.widgetNode)fo.push(As);else if(go.from<=oe&&(go.to==null||go.to>oe||As.collapsed&&go.to==oe&&go.from==oe)){if(go.to!=null&&go.to!=oe&&Si>go.to&&(Si=go.to,Er=""),As.className&&(xr+=" "+As.className),As.css&&(Li=(Li?Li+";":"")+As.css),As.startStyle&&go.from==oe&&(Rr+=" "+As.startStyle),As.endStyle&&go.to==Si&&(Ro||(Ro=[])).push(As.endStyle,go.to),As.title&&((To||(To={})).title=As.title),As.attributes)for(var Aa in As.attributes)(To||(To={}))[Aa]=As.attributes[Aa];As.collapsed&&(!io||Fi(io.marker,As)<0)&&(io=go)}else go.from>oe&&Si>go.from&&(Si=go.from)}if(Ro)for(var Al=0;Al<Ro.length;Al+=2)Ro[Al+1]==Si&&(Er+=" "+Ro[Al]);if(!io||io.from==oe)for(var Za=0;Za<fo.length;++Za)ni(lt,0,fo[Za]);if(io&&(io.from||0)==oe){if(ni(lt,(io.to==null?ae+1:io.to)-oe,io.marker,io.from==null),io.to==null)return;io.to==oe&&(io=!1)}}if(oe>=ae)break;for(var mu=Math.min(ae,Si);;){if(Bn){var nu=oe+Bn.length;if(!io){var bl=nu>mu?Bn.slice(0,mu-oe):Bn;lt.addToken(lt,bl,Ue?Ue+xr:xr,Rr,oe+bl.length==Si?Er:"",Li,To)}if(nu>=mu){Bn=Bn.slice(mu-oe),oe=mu;break}oe=nu,Rr=""}Bn=yt.slice(Lt,Lt=pt[Pe++]),Ue=lr(pt[Pe++],lt.cm.options)}}}function qe(rt,lt,pt){this.line=lt,this.rest=yn(lt),this.size=this.rest?_e(Jn(this.rest))-pt+1:1,this.node=this.text=null,this.hidden=An(rt,lt)}function Je(rt,lt,pt){for(var dt=[],yt,Lt=lt;Lt<pt;Lt=yt){var Vt=new qe(rt.doc,Oe(rt.doc,Lt),Lt);yt=Lt+Vt.size,dt.push(Vt)}return dt}var sn=null;function hn(rt){sn?sn.ops.push(rt):rt.ownsGroup=sn={ops:[rt],delayedCallbacks:[]}}function bi(rt){var lt=rt.delayedCallbacks,pt=0;do{for(;pt<lt.length;pt++)lt[pt].call(null);for(var dt=0;dt<rt.ops.length;dt++){var yt=rt.ops[dt];if(yt.cursorActivityHandlers)for(;yt.cursorActivityCalled<yt.cursorActivityHandlers.length;)yt.cursorActivityHandlers[yt.cursorActivityCalled++].call(null,yt.cm)}}while(pt<lt.length)}function zi(rt,lt){var pt=rt.ownsGroup;if(pt)try{bi(pt)}finally{sn=null,lt(pt)}}var li=null;function Kn(rt,lt){var pt=Sn(rt,lt);if(pt.length){var dt=Array.prototype.slice.call(arguments,2),yt;sn?yt=sn.delayedCallbacks:li?yt=li:(yt=li=[],setTimeout(ur,0));for(var Lt=function(ae){yt.push(function(){return pt[ae].apply(null,dt)})},Vt=0;Vt<pt.length;++Vt)Lt(Vt)}}function ur(){var rt=li;li=null;for(var lt=0;lt<rt.length;++lt)rt[lt]()}function Ln(rt,lt,pt,dt){for(var yt=0;yt<lt.changes.length;yt++){var Lt=lt.changes[yt];Lt=="text"?gn(rt,lt):Lt=="gutter"?er(rt,lt,pt,dt):Lt=="class"?Ji(rt,lt):Lt=="widget"&&Qi(rt,lt,dt)}lt.changes=null}function wn(rt){return rt.node==rt.text&&(rt.node=He("div",null,null,"position: relative"),rt.text.parentNode&&rt.text.parentNode.replaceChild(rt.node,rt.text),rt.node.appendChild(rt.text),Dt&&Ht<8&&(rt.node.style.zIndex=2)),rt.node}function _n(rt,lt){var pt=lt.bgClass?lt.bgClass+" "+(lt.line.bgClass||""):lt.line.bgClass;if(pt&&(pt+=" CodeMirror-linebackground"),lt.background)pt?lt.background.className=pt:(lt.background.parentNode.removeChild(lt.background),lt.background=null);else if(pt){var dt=wn(lt);lt.background=dt.insertBefore(He("div",null,pt),dt.firstChild),rt.display.input.setUneditable(lt.background)}}function Ei(rt,lt){var pt=rt.display.externalMeasured;return pt&&pt.line==lt.line?(rt.display.externalMeasured=null,lt.measure=pt.measure,pt.built):je(rt,lt)}function gn(rt,lt){var pt=lt.text.className,dt=Ei(rt,lt);lt.text==lt.node&&(lt.node=dt.pre),lt.text.parentNode.replaceChild(dt.pre,lt.text),lt.text=dt.pre,dt.bgClass!=lt.bgClass||dt.textClass!=lt.textClass?(lt.bgClass=dt.bgClass,lt.textClass=dt.textClass,Ji(rt,lt)):pt&&(lt.text.className=pt)}function Ji(rt,lt){_n(rt,lt),lt.line.wrapClass?wn(lt).className=lt.line.wrapClass:lt.node!=lt.text&&(lt.node.className="");var pt=lt.textClass?lt.textClass+" "+(lt.line.textClass||""):lt.line.textClass;lt.text.className=pt||""}function er(rt,lt,pt,dt){if(lt.gutter&&(lt.node.removeChild(lt.gutter),lt.gutter=null),lt.gutterBackground&&(lt.node.removeChild(lt.gutterBackground),lt.gutterBackground=null),lt.line.gutterClass){var yt=wn(lt);lt.gutterBackground=He("div",null,"CodeMirror-gutter-background "+lt.line.gutterClass,"left: "+(rt.options.fixedGutter?dt.fixedPos:-dt.gutterTotalWidth)+"px; width: "+dt.gutterTotalWidth+"px"),rt.display.input.setUneditable(lt.gutterBackground),yt.insertBefore(lt.gutterBackground,lt.text)}var Lt=lt.line.gutterMarkers;if(rt.options.lineNumbers||Lt){var Vt=wn(lt),ae=lt.gutter=He("div",null,"CodeMirror-gutter-wrapper","left: "+(rt.options.fixedGutter?dt.fixedPos:-dt.gutterTotalWidth)+"px");if(rt.display.input.setUneditable(ae),Vt.insertBefore(ae,lt.text),lt.line.gutterClass&&(ae.className+=" "+lt.line.gutterClass),rt.options.lineNumbers&&(!Lt||!Lt["CodeMirror-linenumbers"])&&(lt.lineNumber=ae.appendChild(He("div",$e(rt.options,pt),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+dt.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+rt.display.lineNumInnerWidth+"px"))),Lt)for(var oe=0;oe<rt.display.gutterSpecs.length;++oe){var Pe=rt.display.gutterSpecs[oe].className,Bn=Lt.hasOwnProperty(Pe)&&Lt[Pe];Bn&&ae.appendChild(He("div",[Bn],"CodeMirror-gutter-elt","left: "+dt.gutterLeft[Pe]+"px; width: "+dt.gutterWidth[Pe]+"px"))}}}function Qi(rt,lt,pt){lt.alignable&&(lt.alignable=null);for(var dt=zt("CodeMirror-linewidget"),yt=lt.node.firstChild,Lt=void 0;yt;yt=Lt)Lt=yt.nextSibling,dt.test(yt.className)&<.node.removeChild(yt);Fr(rt,lt,pt)}function Ir(rt,lt,pt,dt){var yt=Ei(rt,lt);return lt.text=lt.node=yt.pre,yt.bgClass&&(lt.bgClass=yt.bgClass),yt.textClass&&(lt.textClass=yt.textClass),Ji(rt,lt),er(rt,lt,pt,dt),Fr(rt,lt,dt),lt.node}function Fr(rt,lt,pt){if(yr(rt,lt.line,lt,pt,!0),lt.rest)for(var dt=0;dt<lt.rest.length;dt++)yr(rt,lt.rest[dt],lt,pt,!1)}function yr(rt,lt,pt,dt,yt){if(lt.widgets)for(var Lt=wn(pt),Vt=0,ae=lt.widgets;Vt<ae.length;++Vt){var oe=ae[Vt],Pe=He("div",[oe.node],"CodeMirror-linewidget"+(oe.className?" "+oe.className:""));oe.handleMouseEvents||Pe.setAttribute("cm-ignore-events","true"),xo(oe,Pe,pt,dt),rt.display.input.setUneditable(Pe),yt&&oe.above?Lt.insertBefore(Pe,pt.gutter||pt.text):Lt.appendChild(Pe),Kn(oe,"redraw")}}function xo(rt,lt,pt,dt){if(rt.noHScroll){(pt.alignable||(pt.alignable=[])).push(lt);var yt=dt.wrapperWidth;lt.style.left=dt.fixedPos+"px",rt.coverGutter||(yt-=dt.gutterTotalWidth,lt.style.paddingLeft=dt.gutterTotalWidth+"px"),lt.style.width=yt+"px"}rt.coverGutter&&(lt.style.zIndex=5,lt.style.position="relative",rt.noHScroll||(lt.style.marginLeft=-dt.gutterTotalWidth+"px"))}function No(rt){if(rt.height!=null)return rt.height;var lt=rt.doc.cm;if(!lt)return 0;if(!an(document.body,rt.node)){var pt="position: relative;";rt.coverGutter&&(pt+="margin-left: -"+lt.display.gutters.offsetWidth+"px;"),rt.noHScroll&&(pt+="width: "+lt.display.wrapper.clientWidth+"px;"),Ie(lt.display.measure,He("div",[rt.node],null,pt))}return rt.height=rt.node.parentNode.offsetHeight}function mo(rt,lt){for(var pt=Ar(lt);pt!=rt.wrapper;pt=pt.parentNode)if(!pt||pt.nodeType==1&&pt.getAttribute("cm-ignore-events")=="true"||pt.parentNode==rt.sizer&&pt!=rt.mover)return!0}function oo(rt){return rt.lineSpace.offsetTop}function to(rt){return rt.mover.offsetHeight-rt.lineSpace.offsetHeight}function Io(rt){if(rt.cachedPaddingH)return rt.cachedPaddingH;var lt=Ie(rt.measure,He("pre","x","CodeMirror-line-like")),pt=window.getComputedStyle?window.getComputedStyle(lt):lt.currentStyle,dt={left:parseInt(pt.paddingLeft),right:parseInt(pt.paddingRight)};return!isNaN(dt.left)&&!isNaN(dt.right)&&(rt.cachedPaddingH=dt),dt}function so(rt){return ti-rt.display.nativeBarWidth}function Zr(rt){return rt.display.scroller.clientWidth-so(rt)-rt.display.barWidth}function Oo(rt){return rt.display.scroller.clientHeight-so(rt)-rt.display.barHeight}function Uo(rt,lt,pt){var dt=rt.options.lineWrapping,yt=dt&&Zr(rt);if(!lt.measure.heights||dt&<.measure.width!=yt){var Lt=lt.measure.heights=[];if(dt){lt.measure.width=yt;for(var Vt=lt.text.firstChild.getClientRects(),ae=0;ae<Vt.length-1;ae++){var oe=Vt[ae],Pe=Vt[ae+1];Math.abs(oe.bottom-Pe.bottom)>2&&Lt.push((oe.bottom+Pe.top)/2-pt.top)}}Lt.push(pt.bottom-pt.top)}}function Ls(rt,lt,pt){if(rt.line==lt)return{map:rt.measure.map,cache:rt.measure.cache};for(var dt=0;dt<rt.rest.length;dt++)if(rt.rest[dt]==lt)return{map:rt.measure.maps[dt],cache:rt.measure.caches[dt]};for(var yt=0;yt<rt.rest.length;yt++)if(_e(rt.rest[yt])>pt)return{map:rt.measure.maps[yt],cache:rt.measure.caches[yt],before:!0}}function bs(rt,lt){lt=Ee(lt);var pt=_e(lt),dt=rt.display.externalMeasured=new qe(rt.doc,lt,pt);dt.lineN=pt;var yt=dt.built=je(rt,dt);return dt.text=yt.pre,Ie(rt.display.lineMeasure,yt.pre),dt}function ms(rt,lt,pt,dt){return jo(rt,es(rt,lt),pt,dt)}function ds(rt,lt){if(lt>=rt.display.viewFrom&<<rt.display.viewTo)return rt.display.view[ps(rt,lt)];var pt=rt.display.externalMeasured;if(pt&<>=pt.lineN&<<pt.lineN+pt.size)return pt}function es(rt,lt){var pt=_e(lt),dt=ds(rt,pt);dt&&!dt.text?dt=null:dt&&dt.changes&&(Ln(rt,dt,pt,Ka(rt)),rt.curOp.forceUpdate=!0),dt||(dt=bs(rt,lt));var yt=Ls(dt,lt,pt);return{line:lt,view:dt,rect:null,map:yt.map,cache:yt.cache,before:yt.before,hasHeights:!1}}function jo(rt,lt,pt,dt,yt){lt.before&&(pt=-1);var Lt=pt+(dt||""),Vt;return lt.cache.hasOwnProperty(Lt)?Vt=lt.cache[Lt]:(lt.rect||(lt.rect=lt.view.text.getBoundingClientRect()),lt.hasHeights||(Uo(rt,lt.view,lt.rect),lt.hasHeights=!0),Vt=Ao(rt,lt,pt,dt),Vt.bogus||(lt.cache[Lt]=Vt)),{left:Vt.left,right:Vt.right,top:yt?Vt.rtop:Vt.top,bottom:yt?Vt.rbottom:Vt.bottom}}var Is={left:0,right:0,top:0,bottom:0};function Yo(rt,lt,pt){for(var dt,yt,Lt,Vt,ae,oe,Pe=0;Pe<rt.length;Pe+=3)if(ae=rt[Pe],oe=rt[Pe+1],lt<ae?(yt=0,Lt=1,Vt="left"):lt<oe?(yt=lt-ae,Lt=yt+1):(Pe==rt.length-3||lt==oe&&rt[Pe+3]>lt)&&(Lt=oe-ae,yt=Lt-1,lt>=oe&&(Vt="right")),yt!=null){if(dt=rt[Pe+2],ae==oe&&pt==(dt.insertLeft?"left":"right")&&(Vt=pt),pt=="left"&&yt==0)for(;Pe&&rt[Pe-2]==rt[Pe-3]&&rt[Pe-1].insertLeft;)dt=rt[(Pe-=3)+2],Vt="left";if(pt=="right"&&yt==oe-ae)for(;Pe<rt.length-3&&rt[Pe+3]==rt[Pe+4]&&!rt[Pe+5].insertLeft;)dt=rt[(Pe+=3)+2],Vt="right";break}return{node:dt,start:yt,end:Lt,collapse:Vt,coverStart:ae,coverEnd:oe}}function Lo(rt,lt){var pt=Is;if(lt=="left")for(var dt=0;dt<rt.length&&(pt=rt[dt]).left==pt.right;dt++);else for(var yt=rt.length-1;yt>=0&&(pt=rt[yt]).left==pt.right;yt--);return pt}function Ao(rt,lt,pt,dt){var yt=Yo(lt.map,pt,dt),Lt=yt.node,Vt=yt.start,ae=yt.end,oe=yt.collapse,Pe;if(Lt.nodeType==3){for(var Bn=0;Bn<4;Bn++){for(;Vt&&Re(lt.line.text.charAt(yt.coverStart+Vt));)--Vt;for(;yt.coverStart+ae<yt.coverEnd&&Re(lt.line.text.charAt(yt.coverStart+ae));)++ae;if(Dt&&Ht<9&&Vt==0&&ae==yt.coverEnd-yt.coverStart?Pe=Lt.parentNode.getBoundingClientRect():Pe=Lo(ie(Lt,Vt,ae).getClientRects(),dt),Pe.left||Pe.right||Vt==0)break;ae=Vt,Vt=Vt-1,oe="right"}Dt&&Ht<11&&(Pe=Ps(rt.display.measure,Pe))}else{Vt>0&&(oe=dt="right");var Ue;rt.options.lineWrapping&&(Ue=Lt.getClientRects()).length>1?Pe=Ue[dt=="right"?Ue.length-1:0]:Pe=Lt.getBoundingClientRect()}if(Dt&&Ht<9&&!Vt&&(!Pe||!Pe.left&&!Pe.right)){var Li=Lt.parentNode.getClientRects()[0];Li?Pe={left:Li.left,right:Li.left+Na(rt.display),top:Li.top,bottom:Li.bottom}:Pe=Is}for(var Si=Pe.top-lt.rect.top,xr=Pe.bottom-lt.rect.top,Er=(Si+xr)/2,Rr=lt.view.measure.heights,io=0;io<Rr.length-1&&!(Er<Rr[io]);io++);var To=io?Rr[io-1]:0,fo=Rr[io],Ro={left:(oe=="right"?Pe.right:Pe.left)-lt.rect.left,right:(oe=="left"?Pe.left:Pe.right)-lt.rect.left,top:To,bottom:fo};return!Pe.left&&!Pe.right&&(Ro.bogus=!0),rt.options.singleCursorHeightPerLine||(Ro.rtop=Si,Ro.rbottom=xr),Ro}function Ps(rt,lt){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!rr(rt))return lt;var pt=screen.logicalXDPI/screen.deviceXDPI,dt=screen.logicalYDPI/screen.deviceYDPI;return{left:lt.left*pt,right:lt.right*pt,top:lt.top*dt,bottom:lt.bottom*dt}}function os(rt){if(rt.measure&&(rt.measure.cache={},rt.measure.heights=null,rt.rest))for(var lt=0;lt<rt.rest.length;lt++)rt.measure.caches[lt]={}}function xs(rt){rt.display.externalMeasure=null,te(rt.display.lineMeasure);for(var lt=0;lt<rt.display.view.length;lt++)os(rt.display.view[lt])}function Vo(rt){xs(rt),rt.display.cachedCharWidth=rt.display.cachedTextHeight=rt.display.cachedPaddingH=null,rt.options.lineWrapping||(rt.display.maxLineChanged=!0),rt.display.lineNumChars=null}function fs(){return Nt&&ue?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function gs(){return Nt&&ue?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function is(rt){var lt=0;if(rt.widgets)for(var pt=0;pt<rt.widgets.length;++pt)rt.widgets[pt].above&&(lt+=No(rt.widgets[pt]));return lt}function vs(rt,lt,pt,dt,yt){if(!yt){var Lt=is(lt);pt.top+=Lt,pt.bottom+=Lt}if(dt=="line")return pt;dt||(dt="local");var Vt=pi(lt);if(dt=="local"?Vt+=oo(rt.display):Vt-=rt.display.viewOffset,dt=="page"||dt=="window"){var ae=rt.display.lineSpace.getBoundingClientRect();Vt+=ae.top+(dt=="window"?0:gs());var oe=ae.left+(dt=="window"?0:fs());pt.left+=oe,pt.right+=oe}return pt.top+=Vt,pt.bottom+=Vt,pt}function Hs(rt,lt,pt){if(pt=="div")return lt;var dt=lt.left,yt=lt.top;if(pt=="page")dt-=fs(),yt-=gs();else if(pt=="local"||!pt){var Lt=rt.display.sizer.getBoundingClientRect();dt+=Lt.left,yt+=Lt.top}var Vt=rt.display.lineSpace.getBoundingClientRect();return{left:dt-Vt.left,top:yt-Vt.top}}function ua(rt,lt,pt,dt,yt){return dt||(dt=Oe(rt.doc,lt.line)),vs(rt,dt,ms(rt,dt,lt.ch,yt),pt)}function ss(rt,lt,pt,dt,yt,Lt){dt=dt||Oe(rt.doc,lt.line),yt||(yt=es(rt,dt));function Vt(xr,Er){var Rr=jo(rt,yt,xr,Er?"right":"left",Lt);return Er?Rr.left=Rr.right:Rr.right=Rr.left,vs(rt,dt,Rr,pt)}var ae=bn(dt,rt.doc.direction),oe=lt.ch,Pe=lt.sticky;if(oe>=dt.text.length?(oe=dt.text.length,Pe="before"):oe<=0&&(oe=0,Pe="after"),!ae)return Vt(Pe=="before"?oe-1:oe,Pe=="before");function Bn(xr,Er,Rr){var io=ae[Er],To=io.level==1;return Vt(Rr?xr-1:xr,To!=Rr)}var Ue=Yn(ae,oe,Pe),Li=Un,Si=Bn(oe,Ue,Pe=="before");return Li!=null&&(Si.other=Bn(oe,Li,Pe!="before")),Si}function _s(rt,lt){var pt=0;lt=Ki(rt.doc,lt),rt.options.lineWrapping||(pt=Na(rt.display)*lt.ch);var dt=Oe(rt.doc,lt.line),yt=pi(dt)+oo(rt.display);return{left:pt,right:pt,top:yt,bottom:yt+dt.height}}function Ea(rt,lt,pt,dt,yt){var Lt=Ge(rt,lt,pt);return Lt.xRel=yt,dt&&(Lt.outside=dt),Lt}function ya(rt,lt,pt){var dt=rt.doc;if(pt+=rt.display.viewOffset,pt<0)return Ea(dt.first,0,null,-1,-1);var yt=ri(dt,pt),Lt=dt.first+dt.size-1;if(yt>Lt)return Ea(dt.first+dt.size-1,Oe(dt,Lt).text.length,null,1,1);lt<0&&(lt=0);for(var Vt=Oe(dt,yt);;){var ae=ii(rt,Vt,yt,lt,pt),oe=xe(Vt,ae.ch+(ae.xRel>0||ae.outside>0?1:0));if(!oe)return ae;var Pe=oe.find(1);if(Pe.line==yt)return Pe;Vt=Oe(dt,yt=Pe.line)}}function Hr(rt,lt,pt,dt){dt-=is(lt);var yt=lt.text.length,Lt=In(function(Vt){return jo(rt,pt,Vt-1).bottom<=dt},yt,0);return yt=In(function(Vt){return jo(rt,pt,Vt).top>dt},Lt,yt),{begin:Lt,end:yt}}function na(rt,lt,pt,dt){pt||(pt=es(rt,lt));var yt=vs(rt,lt,jo(rt,pt,dt),"line").top;return Hr(rt,lt,pt,yt)}function Ke(rt,lt,pt,dt){return rt.bottom<=pt?!1:rt.top>pt?!0:(dt?rt.left:rt.right)>lt}function ii(rt,lt,pt,dt,yt){yt-=pi(lt);var Lt=es(rt,lt),Vt=is(lt),ae=0,oe=lt.text.length,Pe=!0,Bn=bn(lt,rt.doc.direction);if(Bn){var Ue=(rt.options.lineWrapping?Ns:rs)(rt,lt,pt,Lt,Bn,dt,yt);Pe=Ue.level!=1,ae=Pe?Ue.from:Ue.to-1,oe=Pe?Ue.to:Ue.from-1}var Li=null,Si=null,xr=In(function($o){var go=jo(rt,Lt,$o);return go.top+=Vt,go.bottom+=Vt,Ke(go,dt,yt,!1)?(go.top<=yt&&go.left<=dt&&(Li=$o,Si=go),!0):!1},ae,oe),Er,Rr,io=!1;if(Si){var To=dt-Si.left<Si.right-dt,fo=To==Pe;xr=Li+(fo?0:1),Rr=fo?"after":"before",Er=To?Si.left:Si.right}else{!Pe&&(xr==oe||xr==ae)&&xr++,Rr=xr==0?"after":xr==lt.text.length?"before":jo(rt,Lt,xr-(Pe?1:0)).bottom+Vt<=yt==Pe?"after":"before";var Ro=ss(rt,Ge(pt,xr,Rr),"line",lt,Lt);Er=Ro.left,io=yt<Ro.top?-1:yt>=Ro.bottom?1:0}return xr=We(lt.text,xr,1),Ea(pt,xr,Rr,io,dt-Er)}function rs(rt,lt,pt,dt,yt,Lt,Vt){var ae=In(function(Ue){var Li=yt[Ue],Si=Li.level!=1;return Ke(ss(rt,Ge(pt,Si?Li.to:Li.from,Si?"before":"after"),"line",lt,dt),Lt,Vt,!0)},0,yt.length-1),oe=yt[ae];if(ae>0){var Pe=oe.level!=1,Bn=ss(rt,Ge(pt,Pe?oe.from:oe.to,Pe?"after":"before"),"line",lt,dt);Ke(Bn,Lt,Vt,!0)&&Bn.top>Vt&&(oe=yt[ae-1])}return oe}function Ns(rt,lt,pt,dt,yt,Lt,Vt){var ae=Hr(rt,lt,dt,Vt),oe=ae.begin,Pe=ae.end;/\s/.test(lt.text.charAt(Pe-1))&&Pe--;for(var Bn=null,Ue=null,Li=0;Li<yt.length;Li++){var Si=yt[Li];if(!(Si.from>=Pe||Si.to<=oe)){var xr=Si.level!=1,Er=jo(rt,dt,xr?Math.min(Pe,Si.to)-1:Math.max(oe,Si.from)).right,Rr=Er<Lt?Lt-Er+1e9:Er-Lt;(!Bn||Ue>Rr)&&(Bn=Si,Ue=Rr)}}return Bn||(Bn=yt[yt.length-1]),Bn.from<oe&&(Bn={from:oe,to:Bn.to,level:Bn.level}),Bn.to>Pe&&(Bn={from:Bn.from,to:Pe,level:Bn.level}),Bn}var Rs;function Qs(rt){if(rt.cachedTextHeight!=null)return rt.cachedTextHeight;if(Rs==null){Rs=He("pre",null,"CodeMirror-line-like");for(var lt=0;lt<49;++lt)Rs.appendChild(document.createTextNode("x")),Rs.appendChild(He("br"));Rs.appendChild(document.createTextNode("x"))}Ie(rt.measure,Rs);var pt=Rs.offsetHeight/50;return pt>3&&(rt.cachedTextHeight=pt),te(rt.measure),pt||1}function Na(rt){if(rt.cachedCharWidth!=null)return rt.cachedCharWidth;var lt=He("span","xxxxxxxxxx"),pt=He("pre",[lt],"CodeMirror-line-like");Ie(rt.measure,pt);var dt=lt.getBoundingClientRect(),yt=(dt.right-dt.left)/10;return yt>2&&(rt.cachedCharWidth=yt),yt||10}function Ka(rt){for(var lt=rt.display,pt={},dt={},yt=lt.gutters.clientLeft,Lt=lt.gutters.firstChild,Vt=0;Lt;Lt=Lt.nextSibling,++Vt){var ae=rt.display.gutterSpecs[Vt].className;pt[ae]=Lt.offsetLeft+Lt.clientLeft+yt,dt[ae]=Lt.clientWidth}return{fixedPos:vl(lt),gutterTotalWidth:lt.gutters.offsetWidth,gutterLeft:pt,gutterWidth:dt,wrapperWidth:lt.wrapper.clientWidth}}function vl(rt){return rt.scroller.getBoundingClientRect().left-rt.sizer.getBoundingClientRect().left}function Bs(rt){var lt=Qs(rt.display),pt=rt.options.lineWrapping,dt=pt&&Math.max(5,rt.display.scroller.clientWidth/Na(rt.display)-3);return function(yt){if(An(rt.doc,yt))return 0;var Lt=0;if(yt.widgets)for(var Vt=0;Vt<yt.widgets.length;Vt++)yt.widgets[Vt].height&&(Lt+=yt.widgets[Vt].height);return pt?Lt+(Math.ceil(yt.text.length/dt)||1)*lt:Lt+lt}}function co(rt){var lt=rt.doc,pt=Bs(rt);lt.iter(function(dt){var yt=pt(dt);yt!=dt.height&&$n(dt,yt)})}function xa(rt,lt,pt,dt){var yt=rt.display;if(!pt&&Ar(lt).getAttribute("cm-not-content")=="true")return null;var Lt,Vt,ae=yt.lineSpace.getBoundingClientRect();try{Lt=lt.clientX-ae.left,Vt=lt.clientY-ae.top}catch(Ue){return null}var oe=ya(rt,Lt,Vt),Pe;if(dt&&oe.xRel>0&&(Pe=Oe(rt.doc,oe.line).text).length==oe.ch){var Bn=Me(Pe,Pe.length,rt.options.tabSize)-Pe.length;oe=Ge(oe.line,Math.max(0,Math.round((Lt-Io(rt.display).left)/Na(rt.display))-Bn))}return oe}function ps(rt,lt){if(lt>=rt.display.viewTo||(lt-=rt.display.viewFrom,lt<0))return null;for(var pt=rt.display.view,dt=0;dt<pt.length;dt++)if(lt-=pt[dt].size,lt<0)return dt}function zo(rt,lt,pt,dt){lt==null&&(lt=rt.doc.first),pt==null&&(pt=rt.doc.first+rt.doc.size),dt||(dt=0);var yt=rt.display;if(dt&&pt<yt.viewTo&&(yt.updateLineNumbers==null||yt.updateLineNumbers>lt)&&(yt.updateLineNumbers=lt),rt.curOp.viewChanged=!0,lt>=yt.viewTo)oi&&Rn(rt.doc,lt)<yt.viewTo&&ys(rt);else if(pt<=yt.viewFrom)oi&&Pi(rt.doc,pt+dt)>yt.viewFrom?ys(rt):(yt.viewFrom+=dt,yt.viewTo+=dt);else if(lt<=yt.viewFrom&&pt>=yt.viewTo)ys(rt);else if(lt<=yt.viewFrom){var Lt=Ys(rt,pt,pt+dt,1);Lt?(yt.view=yt.view.slice(Lt.index),yt.viewFrom=Lt.lineN,yt.viewTo+=dt):ys(rt)}else if(pt>=yt.viewTo){var Vt=Ys(rt,lt,lt,-1);Vt?(yt.view=yt.view.slice(0,Vt.index),yt.viewTo=Vt.lineN):ys(rt)}else{var ae=Ys(rt,lt,lt,-1),oe=Ys(rt,pt,pt+dt,1);ae&&oe?(yt.view=yt.view.slice(0,ae.index).concat(Je(rt,ae.lineN,oe.lineN)).concat(yt.view.slice(oe.index)),yt.viewTo+=dt):ys(rt)}var Pe=yt.externalMeasured;Pe&&(pt<Pe.lineN?Pe.lineN+=dt:lt<Pe.lineN+Pe.size&&(yt.externalMeasured=null))}function Fo(rt,lt,pt){rt.curOp.viewChanged=!0;var dt=rt.display,yt=rt.display.externalMeasured;if(yt&<>=yt.lineN&<<yt.lineN+yt.size&&(dt.externalMeasured=null),!(lt<dt.viewFrom||lt>=dt.viewTo)){var Lt=dt.view[ps(rt,lt)];if(Lt.node!=null){var Vt=Lt.changes||(Lt.changes=[]);rn(Vt,pt)==-1&&Vt.push(pt)}}}function ys(rt){rt.display.viewFrom=rt.display.viewTo=rt.doc.first,rt.display.view=[],rt.display.viewOffset=0}function Ys(rt,lt,pt,dt){var yt=ps(rt,lt),Lt,Vt=rt.display.view;if(!oi||pt==rt.doc.first+rt.doc.size)return{index:yt,lineN:pt};for(var ae=rt.display.viewFrom,oe=0;oe<yt;oe++)ae+=Vt[oe].size;if(ae!=lt){if(dt>0){if(yt==Vt.length-1)return null;Lt=ae+Vt[yt].size-lt,yt++}else Lt=ae-lt;lt+=Lt,pt+=Lt}for(;Rn(rt.doc,pt)!=pt;){if(yt==(dt<0?0:Vt.length-1))return null;pt+=dt*Vt[yt-(dt<0?1:0)].size,yt+=dt}return{index:yt,lineN:pt}}function us(rt,lt,pt){var dt=rt.display,yt=dt.view;yt.length==0||lt>=dt.viewTo||pt<=dt.viewFrom?(dt.view=Je(rt,lt,pt),dt.viewFrom=lt):(dt.viewFrom>lt?dt.view=Je(rt,lt,dt.viewFrom).concat(dt.view):dt.viewFrom<lt&&(dt.view=dt.view.slice(ps(rt,lt))),dt.viewFrom=lt,dt.viewTo<pt?dt.view=dt.view.concat(Je(rt,dt.viewTo,pt)):dt.viewTo>pt&&(dt.view=dt.view.slice(0,ps(rt,pt)))),dt.viewTo=pt}function Ha(rt){for(var lt=rt.display.view,pt=0,dt=0;dt<lt.length;dt++){var yt=lt[dt];!yt.hidden&&(!yt.node||yt.changes)&&++pt}return pt}function ha(rt){rt.display.input.showSelection(rt.display.input.prepareSelection())}function Tl(rt,lt){lt===void 0&&(lt=!0);for(var pt=rt.doc,dt={},yt=dt.cursors=document.createDocumentFragment(),Lt=dt.selection=document.createDocumentFragment(),Vt=0;Vt<pt.sel.ranges.length;Vt++)if(!(!lt&&Vt==pt.sel.primIndex)){var ae=pt.sel.ranges[Vt];if(!(ae.from().line>=rt.display.viewTo||ae.to().line<rt.display.viewFrom)){var oe=ae.empty();(oe||rt.options.showCursorWhenSelecting)&&vo(rt,ae.head,yt),oe||_r(rt,ae,Lt)}}return dt}function vo(rt,lt,pt){var dt=ss(rt,lt,"div",null,null,!rt.options.singleCursorHeightPerLine),yt=pt.appendChild(He("div","\xA0","CodeMirror-cursor"));if(yt.style.left=dt.left+"px",yt.style.top=dt.top+"px",yt.style.height=Math.max(0,dt.bottom-dt.top)*rt.options.cursorHeight+"px",dt.other){var Lt=pt.appendChild(He("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Lt.style.display="",Lt.style.left=dt.other.left+"px",Lt.style.top=dt.other.top+"px",Lt.style.height=(dt.other.bottom-dt.other.top)*.85+"px"}}function Vr(rt,lt){return rt.top-lt.top||rt.left-lt.left}function _r(rt,lt,pt){var dt=rt.display,yt=rt.doc,Lt=document.createDocumentFragment(),Vt=Io(rt.display),ae=Vt.left,oe=Math.max(dt.sizerWidth,Zr(rt)-dt.sizer.offsetLeft)-Vt.right,Pe=yt.direction=="ltr";function Bn(fo,Ro,$o,go){Ro<0&&(Ro=0),Ro=Math.round(Ro),go=Math.round(go),Lt.appendChild(He("div",null,"CodeMirror-selected","position: absolute; left: "+fo+`px;
|
|
|
top: `+Ro+"px; width: "+($o==null?oe-fo:$o)+`px;
|
|
|
height: `+(go-Ro)+"px"))}function Ue(fo,Ro,$o){var go=Oe(yt,fo),As=go.text.length,Aa,Al;function Za(bl,_u){return ua(rt,Ge(fo,bl),"div",go,_u)}function mu(bl,_u,Cs){var al=na(rt,go,null,bl),Us=_u=="ltr"==(Cs=="after")?"left":"right",tl=Cs=="after"?al.begin:al.end-(/\s/.test(go.text.charAt(al.end-1))?2:1);return Za(tl,Us)[Us]}var nu=bn(go,yt.direction);return Hn(nu,Ro||0,$o==null?As:$o,function(bl,_u,Cs,al){var Us=Cs=="ltr",tl=Za(bl,Us?"left":"right"),Ga=Za(_u-1,Us?"right":"left"),Fl=Ro==null&&bl==0,iu=$o==null&&_u==As,Ra=al==0,qs=!nu||al==nu.length-1;if(Ga.top-tl.top<=3){var el=(Pe?Fl:iu)&&Ra,Gf=(Pe?iu:Fl)&&qs,tc=el?ae:(Us?tl:Ga).left,ku=Gf?oe:(Us?Ga:tl).right;Bn(tc,tl.top,ku-tc,tl.bottom)}else{var Vl,ta,Ll,ll;Us?(Vl=Pe&&Fl&&Ra?ae:tl.left,ta=Pe?oe:mu(bl,Cs,"before"),Ll=Pe?ae:mu(_u,Cs,"after"),ll=Pe&&iu&&qs?oe:Ga.right):(Vl=Pe?mu(bl,Cs,"before"):ae,ta=!Pe&&Fl&&Ra?oe:tl.right,Ll=!Pe&&iu&&qs?ae:Ga.left,ll=Pe?mu(_u,Cs,"after"):oe),Bn(Vl,tl.top,ta-Vl,tl.bottom),tl.bottom<Ga.top&&Bn(ae,tl.bottom,null,Ga.top),Bn(Ll,Ga.top,ll-Ll,Ga.bottom)}(!Aa||Vr(tl,Aa)<0)&&(Aa=tl),Vr(Ga,Aa)<0&&(Aa=Ga),(!Al||Vr(tl,Al)<0)&&(Al=tl),Vr(Ga,Al)<0&&(Al=Ga)}),{start:Aa,end:Al}}var Li=lt.from(),Si=lt.to();if(Li.line==Si.line)Ue(Li.line,Li.ch,Si.ch);else{var xr=Oe(yt,Li.line),Er=Oe(yt,Si.line),Rr=Ee(xr)==Ee(Er),io=Ue(Li.line,Li.ch,Rr?xr.text.length+1:null).end,To=Ue(Si.line,Rr?0:null,Si.ch).start;Rr&&(io.top<To.top-2?(Bn(io.right,io.top,null,io.bottom),Bn(ae,To.top,To.left,To.bottom)):Bn(io.right,io.top,To.left-io.right,io.bottom)),io.bottom<To.top&&Bn(ae,io.bottom,null,To.top)}pt.appendChild(Lt)}function no(rt){if(rt.state.focused){var lt=rt.display;clearInterval(lt.blinker);var pt=!0;lt.cursorDiv.style.visibility="",rt.options.cursorBlinkRate>0?lt.blinker=setInterval(function(){rt.hasFocus()||Dl(rt),lt.cursorDiv.style.visibility=(pt=!pt)?"":"hidden"},rt.options.cursorBlinkRate):rt.options.cursorBlinkRate<0&&(lt.cursorDiv.style.visibility="hidden")}}function ho(rt){rt.state.focused||(rt.display.input.focus(),Zo(rt))}function cs(rt){rt.state.delayingBlurEvent=!0,setTimeout(function(){rt.state.delayingBlurEvent&&(rt.state.delayingBlurEvent=!1,Dl(rt))},100)}function Zo(rt,lt){rt.state.delayingBlurEvent&&(rt.state.delayingBlurEvent=!1),rt.options.readOnly!="nocursor"&&(rt.state.focused||(Qe(rt,"focus",rt,lt),rt.state.focused=!0,Vn(rt.display.wrapper,"CodeMirror-focused"),!rt.curOp&&rt.display.selForContextMenu!=rt.doc.sel&&(rt.display.input.reset(),Wt&&setTimeout(function(){return rt.display.input.reset(!0)},20)),rt.display.input.receivedFocus()),no(rt))}function Dl(rt,lt){rt.state.delayingBlurEvent||(rt.state.focused&&(Qe(rt,"blur",rt,lt),rt.state.focused=!1,Qt(rt.display.wrapper,"CodeMirror-focused")),clearInterval(rt.display.blinker),setTimeout(function(){rt.state.focused||(rt.display.shift=!1)},150))}function Mo(rt){for(var lt=rt.display,pt=lt.lineDiv.offsetTop,dt=0;dt<lt.view.length;dt++){var yt=lt.view[dt],Lt=rt.options.lineWrapping,Vt=void 0,ae=0;if(!yt.hidden){if(Dt&&Ht<8){var oe=yt.node.offsetTop+yt.node.offsetHeight;Vt=oe-pt,pt=oe}else{var Pe=yt.node.getBoundingClientRect();Vt=Pe.bottom-Pe.top,!Lt&&yt.text.firstChild&&(ae=yt.text.firstChild.getBoundingClientRect().right-Pe.left-1)}var Bn=yt.line.height-Vt;if((Bn>.005||Bn<-.005)&&($n(yt.line,Vt),Fu(yt.line),yt.rest))for(var Ue=0;Ue<yt.rest.length;Ue++)Fu(yt.rest[Ue]);if(ae>rt.display.sizerWidth){var Li=Math.ceil(ae/Na(rt.display));Li>rt.display.maxLineLength&&(rt.display.maxLineLength=Li,rt.display.maxLine=yt.line,rt.display.maxLineChanged=!0)}}}}function Fu(rt){if(rt.widgets)for(var lt=0;lt<rt.widgets.length;++lt){var pt=rt.widgets[lt],dt=pt.node.parentNode;dt&&(pt.height=dt.offsetHeight)}}function Po(rt,lt,pt){var dt=pt&&pt.top!=null?Math.max(0,pt.top):rt.scroller.scrollTop;dt=Math.floor(dt-oo(rt));var yt=pt&&pt.bottom!=null?pt.bottom:dt+rt.wrapper.clientHeight,Lt=ri(lt,dt),Vt=ri(lt,yt);if(pt&&pt.ensure){var ae=pt.ensure.from.line,oe=pt.ensure.to.line;ae<Lt?(Lt=ae,Vt=ri(lt,pi(Oe(lt,ae))+rt.wrapper.clientHeight)):Math.min(oe,lt.lastLine())>=Vt&&(Lt=ri(lt,pi(Oe(lt,oe))-rt.wrapper.clientHeight),Vt=oe)}return{from:Lt,to:Math.max(Vt,Lt+1)}}function Cl(rt,lt){if(!Pn(rt,"scrollCursorIntoView")){var pt=rt.display,dt=pt.sizer.getBoundingClientRect(),yt=null;if(lt.top+dt.top<0?yt=!0:lt.bottom+dt.top>(window.innerHeight||document.documentElement.clientHeight)&&(yt=!1),yt!=null&&!de){var Lt=He("div","\u200B",null,`position: absolute;
|
|
|
top: `+(lt.top-pt.viewOffset-oo(rt.display))+`px;
|
|
|
height: `+(lt.bottom-lt.top+so(rt)+pt.barHeight)+`px;
|
|
|
left: `+lt.left+"px; width: "+Math.max(2,lt.right-lt.left)+"px;");rt.display.lineSpace.appendChild(Lt),Lt.scrollIntoView(yt),rt.display.lineSpace.removeChild(Lt)}}}function Ol(rt,lt,pt,dt){dt==null&&(dt=0);var yt;!rt.options.lineWrapping&<==pt&&(lt=lt.ch?Ge(lt.line,lt.sticky=="before"?lt.ch-1:lt.ch,"after"):lt,pt=lt.sticky=="before"?Ge(lt.line,lt.ch+1,"before"):lt);for(var Lt=0;Lt<5;Lt++){var Vt=!1,ae=ss(rt,lt),oe=!pt||pt==lt?ae:ss(rt,pt);yt={left:Math.min(ae.left,oe.left),top:Math.min(ae.top,oe.top)-dt,right:Math.max(ae.left,oe.left),bottom:Math.max(ae.bottom,oe.bottom)+dt};var Pe=Hc(rt,yt),Bn=rt.doc.scrollTop,Ue=rt.doc.scrollLeft;if(Pe.scrollTop!=null&&(Vs(rt,Pe.scrollTop),Math.abs(rt.doc.scrollTop-Bn)>1&&(Vt=!0)),Pe.scrollLeft!=null&&(_a(rt,Pe.scrollLeft),Math.abs(rt.doc.scrollLeft-Ue)>1&&(Vt=!0)),!Vt)break}return yt}function Mc(rt,lt){var pt=Hc(rt,lt);pt.scrollTop!=null&&Vs(rt,pt.scrollTop),pt.scrollLeft!=null&&_a(rt,pt.scrollLeft)}function Hc(rt,lt){var pt=rt.display,dt=Qs(rt.display);lt.top<0&&(lt.top=0);var yt=rt.curOp&&rt.curOp.scrollTop!=null?rt.curOp.scrollTop:pt.scroller.scrollTop,Lt=Oo(rt),Vt={};lt.bottom-lt.top>Lt&&(lt.bottom=lt.top+Lt);var ae=rt.doc.height+to(pt),oe=lt.top<dt,Pe=lt.bottom>ae-dt;if(lt.top<yt)Vt.scrollTop=oe?0:lt.top;else if(lt.bottom>yt+Lt){var Bn=Math.min(lt.top,(Pe?ae:lt.bottom)-Lt);Bn!=yt&&(Vt.scrollTop=Bn)}var Ue=rt.options.fixedGutter?0:pt.gutters.offsetWidth,Li=rt.curOp&&rt.curOp.scrollLeft!=null?rt.curOp.scrollLeft:pt.scroller.scrollLeft-Ue,Si=Zr(rt)-pt.gutters.offsetWidth,xr=lt.right-lt.left>Si;return xr&&(lt.right=lt.left+Si),lt.left<10?Vt.scrollLeft=0:lt.left<Li?Vt.scrollLeft=Math.max(0,lt.left+Ue-(xr?0:10)):lt.right>Si+Li-3&&(Vt.scrollLeft=lt.right+(xr?0:10)-Si),Vt}function Ru(rt,lt){lt!=null&&(zu(rt),rt.curOp.scrollTop=(rt.curOp.scrollTop==null?rt.doc.scrollTop:rt.curOp.scrollTop)+lt)}function yl(rt){zu(rt);var lt=rt.getCursor();rt.curOp.scrollToPos={from:lt,to:lt,margin:rt.options.cursorScrollMargin}}function sc(rt,lt,pt){(lt!=null||pt!=null)&&zu(rt),lt!=null&&(rt.curOp.scrollLeft=lt),pt!=null&&(rt.curOp.scrollTop=pt)}function ws(rt,lt){zu(rt),rt.curOp.scrollToPos=lt}function zu(rt){var lt=rt.curOp.scrollToPos;if(lt){rt.curOp.scrollToPos=null;var pt=_s(rt,lt.from),dt=_s(rt,lt.to);ka(rt,pt,dt,lt.margin)}}function ka(rt,lt,pt,dt){var yt=Hc(rt,{left:Math.min(lt.left,pt.left),top:Math.min(lt.top,pt.top)-dt,right:Math.max(lt.right,pt.right),bottom:Math.max(lt.bottom,pt.bottom)+dt});sc(rt,yt.scrollLeft,yt.scrollTop)}function Vs(rt,lt){Math.abs(rt.doc.scrollTop-lt)<2||(ft||Ih(rt,{top:lt}),ba(rt,lt,!0),ft&&Ih(rt),hu(rt,100))}function ba(rt,lt,pt){lt=Math.max(0,Math.min(rt.display.scroller.scrollHeight-rt.display.scroller.clientHeight,lt)),!(rt.display.scroller.scrollTop==lt&&!pt)&&(rt.doc.scrollTop=lt,rt.display.scrollbars.setScrollTop(lt),rt.display.scroller.scrollTop!=lt&&(rt.display.scroller.scrollTop=lt))}function _a(rt,lt,pt,dt){lt=Math.max(0,Math.min(lt,rt.display.scroller.scrollWidth-rt.display.scroller.clientWidth)),!((pt?lt==rt.doc.scrollLeft:Math.abs(rt.doc.scrollLeft-lt)<2)&&!dt)&&(rt.doc.scrollLeft=lt,Fp(rt),rt.display.scroller.scrollLeft!=lt&&(rt.display.scroller.scrollLeft=lt),rt.display.scrollbars.setScrollLeft(lt))}function da(rt){var lt=rt.display,pt=lt.gutters.offsetWidth,dt=Math.round(rt.doc.height+to(rt.display));return{clientHeight:lt.scroller.clientHeight,viewHeight:lt.wrapper.clientHeight,scrollWidth:lt.scroller.scrollWidth,clientWidth:lt.scroller.clientWidth,viewWidth:lt.wrapper.clientWidth,barLeft:rt.options.fixedGutter?pt:0,docHeight:dt,scrollHeight:dt+so(rt)+lt.barHeight,nativeBarWidth:lt.nativeBarWidth,gutterWidth:pt}}var Bl=function(rt,lt,pt){this.cm=pt;var dt=this.vert=He("div",[He("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),yt=this.horiz=He("div",[He("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");dt.tabIndex=yt.tabIndex=-1,rt(dt),rt(yt),Qn(dt,"scroll",function(){dt.clientHeight&<(dt.scrollTop,"vertical")}),Qn(yt,"scroll",function(){yt.clientWidth&<(yt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Dt&&Ht<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Bl.prototype.update=function(rt){var lt=rt.scrollWidth>rt.clientWidth+1,pt=rt.scrollHeight>rt.clientHeight+1,dt=rt.nativeBarWidth;if(pt){this.vert.style.display="block",this.vert.style.bottom=lt?dt+"px":"0";var yt=rt.viewHeight-(lt?dt:0);this.vert.firstChild.style.height=Math.max(0,rt.scrollHeight-rt.clientHeight+yt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(lt){this.horiz.style.display="block",this.horiz.style.right=pt?dt+"px":"0",this.horiz.style.left=rt.barLeft+"px";var Lt=rt.viewWidth-rt.barLeft-(pt?dt:0);this.horiz.firstChild.style.width=Math.max(0,rt.scrollWidth-rt.clientWidth+Lt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&rt.clientHeight>0&&(dt==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:pt?dt:0,bottom:lt?dt:0}},Bl.prototype.setScrollLeft=function(rt){this.horiz.scrollLeft!=rt&&(this.horiz.scrollLeft=rt),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Bl.prototype.setScrollTop=function(rt){this.vert.scrollTop!=rt&&(this.vert.scrollTop=rt),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Bl.prototype.zeroWidthHack=function(){var rt=It&&!Yt?"12px":"18px";this.horiz.style.height=this.vert.style.width=rt,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new _t,this.disableVert=new _t},Bl.prototype.enableZeroWidthBar=function(rt,lt,pt){rt.style.pointerEvents="auto";function dt(){var yt=rt.getBoundingClientRect(),Lt=pt=="vert"?document.elementFromPoint(yt.right-1,(yt.top+yt.bottom)/2):document.elementFromPoint((yt.right+yt.left)/2,yt.bottom-1);Lt!=rt?rt.style.pointerEvents="none":lt.set(1e3,dt)}lt.set(1e3,dt)},Bl.prototype.clear=function(){var rt=this.horiz.parentNode;rt.removeChild(this.horiz),rt.removeChild(this.vert)};var Ta=function(){};Ta.prototype.update=function(){return{bottom:0,right:0}},Ta.prototype.setScrollLeft=function(){},Ta.prototype.setScrollTop=function(){},Ta.prototype.clear=function(){};function ju(rt,lt){lt||(lt=da(rt));var pt=rt.display.barWidth,dt=rt.display.barHeight;ud(rt,lt);for(var yt=0;yt<4&&pt!=rt.display.barWidth||dt!=rt.display.barHeight;yt++)pt!=rt.display.barWidth&&rt.options.lineWrapping&&Mo(rt),ud(rt,da(rt)),pt=rt.display.barWidth,dt=rt.display.barHeight}function ud(rt,lt){var pt=rt.display,dt=pt.scrollbars.update(lt);pt.sizer.style.paddingRight=(pt.barWidth=dt.right)+"px",pt.sizer.style.paddingBottom=(pt.barHeight=dt.bottom)+"px",pt.heightForcer.style.borderBottom=dt.bottom+"px solid transparent",dt.right&&dt.bottom?(pt.scrollbarFiller.style.display="block",pt.scrollbarFiller.style.height=dt.bottom+"px",pt.scrollbarFiller.style.width=dt.right+"px"):pt.scrollbarFiller.style.display="",dt.bottom&&rt.options.coverGutterNextToScrollbar&&rt.options.fixedGutter?(pt.gutterFiller.style.display="block",pt.gutterFiller.style.height=dt.bottom+"px",pt.gutterFiller.style.width=lt.gutterWidth+"px"):pt.gutterFiller.style.display=""}var Wd={native:Bl,null:Ta};function Df(rt){rt.display.scrollbars&&(rt.display.scrollbars.clear(),rt.display.scrollbars.addClass&&Qt(rt.display.wrapper,rt.display.scrollbars.addClass)),rt.display.scrollbars=new Wd[rt.options.scrollbarStyle](function(lt){rt.display.wrapper.insertBefore(lt,rt.display.scrollbarFiller),Qn(lt,"mousedown",function(){rt.state.focused&&setTimeout(function(){return rt.display.input.focus()},0)}),lt.setAttribute("cm-not-content","true")},function(lt,pt){pt=="horizontal"?_a(rt,lt):Vs(rt,lt)},rt),rt.display.scrollbars.addClass&&Vn(rt.display.wrapper,rt.display.scrollbars.addClass)}var Op=0;function _c(rt){rt.curOp={cm:rt,viewChanged:!1,startHeight:rt.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:++Op},hn(rt.curOp)}function Ec(rt){var lt=rt.curOp;lt&&zi(lt,function(pt){for(var dt=0;dt<pt.ops.length;dt++)pt.ops[dt].cm.curOp=null;Bp(pt)})}function Bp(rt){for(var lt=rt.ops,pt=0;pt<lt.length;pt++)Of(lt[pt]);for(var dt=0;dt<lt.length;dt++)Xs(lt[dt]);for(var yt=0;yt<lt.length;yt++)Fs(lt[yt]);for(var Lt=0;Lt<lt.length;Lt++)zs(lt[Lt]);for(var Vt=0;Vt<lt.length;Vt++)cl(lt[Vt])}function Of(rt){var lt=rt.cm,pt=lt.display;Vd(lt),rt.updateMaxLine&&Wn(lt),rt.mustUpdate=rt.viewChanged||rt.forceUpdate||rt.scrollTop!=null||rt.scrollToPos&&(rt.scrollToPos.from.line<pt.viewFrom||rt.scrollToPos.to.line>=pt.viewTo)||pt.maxLineChanged&<.options.lineWrapping,rt.update=rt.mustUpdate&&new du(lt,rt.mustUpdate&&{top:rt.scrollTop,ensure:rt.scrollToPos},rt.forceUpdate)}function Xs(rt){rt.updatedDisplay=rt.mustUpdate&&Ip(rt.cm,rt.update)}function Fs(rt){var lt=rt.cm,pt=lt.display;rt.updatedDisplay&&Mo(lt),rt.barMeasure=da(lt),pt.maxLineChanged&&!lt.options.lineWrapping&&(rt.adjustWidthTo=ms(lt,pt.maxLine,pt.maxLine.text.length).left+3,lt.display.sizerWidth=rt.adjustWidthTo,rt.barMeasure.scrollWidth=Math.max(pt.scroller.clientWidth,pt.sizer.offsetLeft+rt.adjustWidthTo+so(lt)+lt.display.barWidth),rt.maxScrollLeft=Math.max(0,pt.sizer.offsetLeft+rt.adjustWidthTo-Zr(lt))),(rt.updatedDisplay||rt.selectionChanged)&&(rt.preparedSelection=pt.input.prepareSelection())}function zs(rt){var lt=rt.cm;rt.adjustWidthTo!=null&&(lt.display.sizer.style.minWidth=rt.adjustWidthTo+"px",rt.maxScrollLeft<lt.doc.scrollLeft&&_a(lt,Math.min(lt.display.scroller.scrollLeft,rt.maxScrollLeft),!0),lt.display.maxLineChanged=!1);var pt=rt.focus&&rt.focus==nn();rt.preparedSelection&<.display.input.showSelection(rt.preparedSelection,pt),(rt.updatedDisplay||rt.startHeight!=lt.doc.height)&&ju(lt,rt.barMeasure),rt.updatedDisplay&&Rh(lt,rt.barMeasure),rt.selectionChanged&&no(lt),lt.state.focused&&rt.updateInput&<.display.input.reset(rt.typing),pt&&ho(rt.cm)}function cl(rt){var lt=rt.cm,pt=lt.display,dt=lt.doc;if(rt.updatedDisplay&&ra(lt,rt.update),pt.wheelStartX!=null&&(rt.scrollTop!=null||rt.scrollLeft!=null||rt.scrollToPos)&&(pt.wheelStartX=pt.wheelStartY=null),rt.scrollTop!=null&&ba(lt,rt.scrollTop,rt.forceScroll),rt.scrollLeft!=null&&_a(lt,rt.scrollLeft,!0,!0),rt.scrollToPos){var yt=Ol(lt,Ki(dt,rt.scrollToPos.from),Ki(dt,rt.scrollToPos.to),rt.scrollToPos.margin);Cl(lt,yt)}var Lt=rt.maybeHiddenMarkers,Vt=rt.maybeUnhiddenMarkers;if(Lt)for(var ae=0;ae<Lt.length;++ae)Lt[ae].lines.length||Qe(Lt[ae],"hide");if(Vt)for(var oe=0;oe<Vt.length;++oe)Vt[oe].lines.length&&Qe(Vt[oe],"unhide");pt.wrapper.offsetHeight&&(dt.scrollTop=lt.display.scroller.scrollTop),rt.changeObjs&&Qe(lt,"changes",lt,rt.changeObjs),rt.update&&rt.update.finish()}function Qo(rt,lt){if(rt.curOp)return lt();_c(rt);try{return lt()}finally{Ec(rt)}}function $s(rt,lt){return function(){if(rt.curOp)return lt.apply(rt,arguments);_c(rt);try{return lt.apply(rt,arguments)}finally{Ec(rt)}}}function Zs(rt){return function(){if(this.curOp)return rt.apply(this,arguments);_c(this);try{return rt.apply(this,arguments)}finally{Ec(this)}}}function Wa(rt){return function(){var lt=this.cm;if(!lt||lt.curOp)return rt.apply(this,arguments);_c(lt);try{return rt.apply(this,arguments)}finally{Ec(lt)}}}function hu(rt,lt){rt.doc.highlightFrontier<rt.display.viewTo&&rt.state.highlight.set(lt,zn(Da,rt))}function Da(rt){var lt=rt.doc;if(!(lt.highlightFrontier>=rt.display.viewTo)){var pt=+new Date+rt.options.workTime,dt=Do(rt,lt.highlightFrontier),yt=[];lt.iter(dt.line,Math.min(lt.first+lt.size,rt.display.viewTo+500),function(Lt){if(dt.line>=rt.display.viewFrom){var Vt=Lt.styles,ae=Lt.text.length>rt.options.maxHighlightLength?Cn(lt.mode,dt.state):null,oe=ao(rt,Lt,dt,!0);ae&&(dt.state=ae),Lt.styles=oe.styles;var Pe=Lt.styleClasses,Bn=oe.classes;Bn?Lt.styleClasses=Bn:Pe&&(Lt.styleClasses=null);for(var Ue=!Vt||Vt.length!=Lt.styles.length||Pe!=Bn&&(!Pe||!Bn||Pe.bgClass!=Bn.bgClass||Pe.textClass!=Bn.textClass),Li=0;!Ue&&Li<Vt.length;++Li)Ue=Vt[Li]!=Lt.styles[Li];Ue&&yt.push(dt.line),Lt.stateAfter=dt.save(),dt.nextLine()}else Lt.text.length<=rt.options.maxHighlightLength&&ui(rt,Lt.text,dt),Lt.stateAfter=dt.line%5==0?dt.save():null,dt.nextLine();if(+new Date>pt)return hu(rt,rt.options.workDelay),!0}),lt.highlightFrontier=dt.line,lt.modeFrontier=Math.max(lt.modeFrontier,dt.line),yt.length&&Qo(rt,function(){for(var Lt=0;Lt<yt.length;Lt++)Fo(rt,yt[Lt],"text")})}}var du=function(rt,lt,pt){var dt=rt.display;this.viewport=lt,this.visible=Po(dt,rt.doc,lt),this.editorIsHidden=!dt.wrapper.offsetWidth,this.wrapperHeight=dt.wrapper.clientHeight,this.wrapperWidth=dt.wrapper.clientWidth,this.oldDisplayWidth=Zr(rt),this.force=pt,this.dims=Ka(rt),this.events=[]};du.prototype.signal=function(rt,lt){yi(rt,lt)&&this.events.push(arguments)},du.prototype.finish=function(){for(var rt=0;rt<this.events.length;rt++)Qe.apply(null,this.events[rt])};function Vd(rt){var lt=rt.display;!lt.scrollbarsClipped&<.scroller.offsetWidth&&(lt.nativeBarWidth=lt.scroller.offsetWidth-lt.scroller.clientWidth,lt.heightForcer.style.height=so(rt)+"px",lt.sizer.style.marginBottom=-lt.nativeBarWidth+"px",lt.sizer.style.borderRightWidth=so(rt)+"px",lt.scrollbarsClipped=!0)}function Wm(rt){if(rt.hasFocus())return null;var lt=nn();if(!lt||!an(rt.display.lineDiv,lt))return null;var pt={activeElt:lt};if(window.getSelection){var dt=window.getSelection();dt.anchorNode&&dt.extend&&an(rt.display.lineDiv,dt.anchorNode)&&(pt.anchorNode=dt.anchorNode,pt.anchorOffset=dt.anchorOffset,pt.focusNode=dt.focusNode,pt.focusOffset=dt.focusOffset)}return pt}function fu(rt){if(!(!rt||!rt.activeElt||rt.activeElt==nn())&&(rt.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(rt.activeElt.nodeName)&&rt.anchorNode&&an(document.body,rt.anchorNode)&&an(document.body,rt.focusNode))){var lt=window.getSelection(),pt=document.createRange();pt.setEnd(rt.anchorNode,rt.anchorOffset),pt.collapse(!1),lt.removeAllRanges(),lt.addRange(pt),lt.extend(rt.focusNode,rt.focusOffset)}}function Ip(rt,lt){var pt=rt.display,dt=rt.doc;if(lt.editorIsHidden)return ys(rt),!1;if(!lt.force&<.visible.from>=pt.viewFrom&<.visible.to<=pt.viewTo&&(pt.updateLineNumbers==null||pt.updateLineNumbers>=pt.viewTo)&&pt.renderedView==pt.view&&Ha(rt)==0)return!1;$a(rt)&&(ys(rt),lt.dims=Ka(rt));var yt=dt.first+dt.size,Lt=Math.max(lt.visible.from-rt.options.viewportMargin,dt.first),Vt=Math.min(yt,lt.visible.to+rt.options.viewportMargin);pt.viewFrom<Lt&&Lt-pt.viewFrom<20&&(Lt=Math.max(dt.first,pt.viewFrom)),pt.viewTo>Vt&&pt.viewTo-Vt<20&&(Vt=Math.min(yt,pt.viewTo)),oi&&(Lt=Rn(rt.doc,Lt),Vt=Pi(rt.doc,Vt));var ae=Lt!=pt.viewFrom||Vt!=pt.viewTo||pt.lastWrapHeight!=lt.wrapperHeight||pt.lastWrapWidth!=lt.wrapperWidth;us(rt,Lt,Vt),pt.viewOffset=pi(Oe(rt.doc,pt.viewFrom)),rt.display.mover.style.top=pt.viewOffset+"px";var oe=Ha(rt);if(!ae&&oe==0&&!lt.force&&pt.renderedView==pt.view&&(pt.updateLineNumbers==null||pt.updateLineNumbers>=pt.viewTo))return!1;var Pe=Wm(rt);return oe>4&&(pt.lineDiv.style.display="none"),j0(rt,pt.updateLineNumbers,lt.dims),oe>4&&(pt.lineDiv.style.display=""),pt.renderedView=pt.view,fu(Pe),te(pt.cursorDiv),te(pt.selectionDiv),pt.gutters.style.height=pt.sizer.style.minHeight=0,ae&&(pt.lastWrapHeight=lt.wrapperHeight,pt.lastWrapWidth=lt.wrapperWidth,hu(rt,400)),pt.updateLineNumbers=null,!0}function ra(rt,lt){for(var pt=lt.viewport,dt=!0;;dt=!1){if(!dt||!rt.options.lineWrapping||lt.oldDisplayWidth==Zr(rt)){if(pt&&pt.top!=null&&(pt={top:Math.min(rt.doc.height+to(rt.display)-Oo(rt),pt.top)}),lt.visible=Po(rt.display,rt.doc,pt),lt.visible.from>=rt.display.viewFrom&<.visible.to<=rt.display.viewTo)break}else dt&&(lt.visible=Po(rt.display,rt.doc,pt));if(!Ip(rt,lt))break;Mo(rt);var yt=da(rt);ha(rt),ju(rt,yt),Rh(rt,yt),lt.force=!1}lt.signal(rt,"update",rt),(rt.display.viewFrom!=rt.display.reportedViewFrom||rt.display.viewTo!=rt.display.reportedViewTo)&&(lt.signal(rt,"viewportChange",rt,rt.display.viewFrom,rt.display.viewTo),rt.display.reportedViewFrom=rt.display.viewFrom,rt.display.reportedViewTo=rt.display.viewTo)}function Ih(rt,lt){var pt=new du(rt,lt);if(Ip(rt,pt)){Mo(rt),ra(rt,pt);var dt=da(rt);ha(rt),ju(rt,dt),Rh(rt,dt),pt.finish()}}function j0(rt,lt,pt){var dt=rt.display,yt=rt.options.lineNumbers,Lt=dt.lineDiv,Vt=Lt.firstChild;function ae(xr){var Er=xr.nextSibling;return Wt&&It&&rt.display.currentWheelTarget==xr?xr.style.display="none":xr.parentNode.removeChild(xr),Er}for(var oe=dt.view,Pe=dt.viewFrom,Bn=0;Bn<oe.length;Bn++){var Ue=oe[Bn];if(!Ue.hidden)if(!Ue.node||Ue.node.parentNode!=Lt){var Li=Ir(rt,Ue,Pe,pt);Lt.insertBefore(Li,Vt)}else{for(;Vt!=Ue.node;)Vt=ae(Vt);var Si=yt&<!=null&<<=Pe&&Ue.lineNumber;Ue.changes&&(rn(Ue.changes,"gutter")>-1&&(Si=!1),Ln(rt,Ue,Pe,pt)),Si&&(te(Ue.lineNumber),Ue.lineNumber.appendChild(document.createTextNode($e(rt.options,Pe)))),Vt=Ue.node.nextSibling}Pe+=Ue.size}for(;Vt;)Vt=ae(Vt)}function Fh(rt){var lt=rt.gutters.offsetWidth;rt.sizer.style.marginLeft=lt+"px"}function Rh(rt,lt){rt.display.sizer.style.minHeight=lt.docHeight+"px",rt.display.heightForcer.style.top=lt.docHeight+"px",rt.display.gutters.style.height=lt.docHeight+rt.display.barHeight+so(rt)+"px"}function Fp(rt){var lt=rt.display,pt=lt.view;if(!(!lt.alignWidgets&&(!lt.gutters.firstChild||!rt.options.fixedGutter))){for(var dt=vl(lt)-lt.scroller.scrollLeft+rt.doc.scrollLeft,yt=lt.gutters.offsetWidth,Lt=dt+"px",Vt=0;Vt<pt.length;Vt++)if(!pt[Vt].hidden){rt.options.fixedGutter&&(pt[Vt].gutter&&(pt[Vt].gutter.style.left=Lt),pt[Vt].gutterBackground&&(pt[Vt].gutterBackground.style.left=Lt));var ae=pt[Vt].alignable;if(ae)for(var oe=0;oe<ae.length;oe++)ae[oe].style.left=Lt}rt.options.fixedGutter&&(lt.gutters.style.left=dt+yt+"px")}}function $a(rt){if(!rt.options.lineNumbers)return!1;var lt=rt.doc,pt=$e(rt.options,lt.first+lt.size-1),dt=rt.display;if(pt.length!=dt.lineNumChars){var yt=dt.measure.appendChild(He("div",[He("div",pt)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Lt=yt.firstChild.offsetWidth,Vt=yt.offsetWidth-Lt;return dt.lineGutter.style.width="",dt.lineNumInnerWidth=Math.max(Lt,dt.lineGutter.offsetWidth-Vt)+1,dt.lineNumWidth=dt.lineNumInnerWidth+Vt,dt.lineNumChars=dt.lineNumInnerWidth?pt.length:-1,dt.lineGutter.style.width=dt.lineNumWidth+"px",Fh(rt.display),!0}return!1}function Ml(rt,lt){for(var pt=[],dt=!1,yt=0;yt<rt.length;yt++){var Lt=rt[yt],Vt=null;if(typeof Lt!="string"&&(Vt=Lt.style,Lt=Lt.className),Lt=="CodeMirror-linenumbers")if(lt)dt=!0;else continue;pt.push({className:Lt,style:Vt})}return lt&&!dt&&pt.push({className:"CodeMirror-linenumbers",style:null}),pt}function cd(rt){var lt=rt.gutters,pt=rt.gutterSpecs;te(lt),rt.lineGutter=null;for(var dt=0;dt<pt.length;++dt){var yt=pt[dt],Lt=yt.className,Vt=yt.style,ae=lt.appendChild(He("div",null,"CodeMirror-gutter "+Lt));Vt&&(ae.style.cssText=Vt),Lt=="CodeMirror-linenumbers"&&(rt.lineGutter=ae,ae.style.width=(rt.lineNumWidth||1)+"px")}lt.style.display=pt.length?"":"none",Fh(rt)}function Ku(rt){cd(rt.display),zo(rt),Fp(rt)}function zh(rt,lt,pt,dt){var yt=this;this.input=pt,yt.scrollbarFiller=He("div",null,"CodeMirror-scrollbar-filler"),yt.scrollbarFiller.setAttribute("cm-not-content","true"),yt.gutterFiller=He("div",null,"CodeMirror-gutter-filler"),yt.gutterFiller.setAttribute("cm-not-content","true"),yt.lineDiv=en("div",null,"CodeMirror-code"),yt.selectionDiv=He("div",null,null,"position: relative; z-index: 1"),yt.cursorDiv=He("div",null,"CodeMirror-cursors"),yt.measure=He("div",null,"CodeMirror-measure"),yt.lineMeasure=He("div",null,"CodeMirror-measure"),yt.lineSpace=en("div",[yt.measure,yt.lineMeasure,yt.selectionDiv,yt.cursorDiv,yt.lineDiv],null,"position: relative; outline: none");var Lt=en("div",[yt.lineSpace],"CodeMirror-lines");yt.mover=He("div",[Lt],null,"position: relative"),yt.sizer=He("div",[yt.mover],"CodeMirror-sizer"),yt.sizerWidth=null,yt.heightForcer=He("div",null,null,"position: absolute; height: "+ti+"px; width: 1px;"),yt.gutters=He("div",null,"CodeMirror-gutters"),yt.lineGutter=null,yt.scroller=He("div",[yt.sizer,yt.heightForcer,yt.gutters],"CodeMirror-scroll"),yt.scroller.setAttribute("tabIndex","-1"),yt.wrapper=He("div",[yt.scrollbarFiller,yt.gutterFiller,yt.scroller],"CodeMirror"),Dt&&Ht<8&&(yt.gutters.style.zIndex=-1,yt.scroller.style.paddingRight=0),!Wt&&!(ft&&he)&&(yt.scroller.draggable=!0),rt&&(rt.appendChild?rt.appendChild(yt.wrapper):rt(yt.wrapper)),yt.viewFrom=yt.viewTo=lt.first,yt.reportedViewFrom=yt.reportedViewTo=lt.first,yt.view=[],yt.renderedView=null,yt.externalMeasured=null,yt.viewOffset=0,yt.lastWrapHeight=yt.lastWrapWidth=0,yt.updateLineNumbers=null,yt.nativeBarWidth=yt.barHeight=yt.barWidth=0,yt.scrollbarsClipped=!1,yt.lineNumWidth=yt.lineNumInnerWidth=yt.lineNumChars=null,yt.alignWidgets=!1,yt.cachedCharWidth=yt.cachedTextHeight=yt.cachedPaddingH=null,yt.maxLine=null,yt.maxLineLength=0,yt.maxLineChanged=!1,yt.wheelDX=yt.wheelDY=yt.wheelStartX=yt.wheelStartY=null,yt.shift=!1,yt.selForContextMenu=null,yt.activeTouch=null,yt.gutterSpecs=Ml(dt.gutters,dt.lineNumbers),cd(yt),pt.init(yt)}var bu=0,Oa=null;Dt?Oa=-.53:ft?Oa=15:Nt?Oa=-.7:De&&(Oa=-1/3);function wu(rt){var lt=rt.wheelDeltaX,pt=rt.wheelDeltaY;return lt==null&&rt.detail&&rt.axis==rt.HORIZONTAL_AXIS&&(lt=rt.detail),pt==null&&rt.detail&&rt.axis==rt.VERTICAL_AXIS?pt=rt.detail:pt==null&&(pt=rt.wheelDelta),{x:lt,y:pt}}function Su(rt){var lt=wu(rt);return lt.x*=Oa,lt.y*=Oa,lt}function El(rt,lt){var pt=wu(lt),dt=pt.x,yt=pt.y,Lt=rt.display,Vt=Lt.scroller,ae=Vt.scrollWidth>Vt.clientWidth,oe=Vt.scrollHeight>Vt.clientHeight;if(dt&&ae||yt&&oe){if(yt&&It&&Wt){t:for(var Pe=lt.target,Bn=Lt.view;Pe!=Vt;Pe=Pe.parentNode)for(var Ue=0;Ue<Bn.length;Ue++)if(Bn[Ue].node==Pe){rt.display.currentWheelTarget=Pe;break t}}if(dt&&!ft&&!Ut&&Oa!=null){yt&&oe&&Vs(rt,Math.max(0,Vt.scrollTop+yt*Oa)),_a(rt,Math.max(0,Vt.scrollLeft+dt*Oa)),(!yt||yt&&oe)&&ar(lt),Lt.wheelStartX=null;return}if(yt&&Oa!=null){var Li=yt*Oa,Si=rt.doc.scrollTop,xr=Si+Lt.wrapper.clientHeight;Li<0?Si=Math.max(0,Si+Li-50):xr=Math.min(rt.doc.height,xr+Li+50),Ih(rt,{top:Si,bottom:xr})}bu<20&&(Lt.wheelStartX==null?(Lt.wheelStartX=Vt.scrollLeft,Lt.wheelStartY=Vt.scrollTop,Lt.wheelDX=dt,Lt.wheelDY=yt,setTimeout(function(){if(Lt.wheelStartX!=null){var Er=Vt.scrollLeft-Lt.wheelStartX,Rr=Vt.scrollTop-Lt.wheelStartY,io=Rr&&Lt.wheelDY&&Rr/Lt.wheelDY||Er&&Lt.wheelDX&&Er/Lt.wheelDX;Lt.wheelStartX=Lt.wheelStartY=null,io&&(Oa=(Oa*bu+io)/(bu+1),++bu)}},200)):(Lt.wheelDX+=dt,Lt.wheelDY+=yt))}}var qu=function(rt,lt){this.ranges=rt,this.primIndex=lt};qu.prototype.primary=function(){return this.ranges[this.primIndex]},qu.prototype.equals=function(rt){if(rt==this)return!0;if(rt.primIndex!=this.primIndex||rt.ranges.length!=this.ranges.length)return!1;for(var lt=0;lt<this.ranges.length;lt++){var pt=this.ranges[lt],dt=rt.ranges[lt];if(!xi(pt.anchor,dt.anchor)||!xi(pt.head,dt.head))return!1}return!0},qu.prototype.deepCopy=function(){for(var rt=[],lt=0;lt<this.ranges.length;lt++)rt[lt]=new oa(Yi(this.ranges[lt].anchor),Yi(this.ranges[lt].head));return new qu(rt,this.primIndex)},qu.prototype.somethingSelected=function(){for(var rt=0;rt<this.ranges.length;rt++)if(!this.ranges[rt].empty())return!0;return!1},qu.prototype.contains=function(rt,lt){lt||(lt=rt);for(var pt=0;pt<this.ranges.length;pt++){var dt=this.ranges[pt];if(un(lt,dt.from())>=0&&un(rt,dt.to())<=0)return pt}return-1};var oa=function(rt,lt){this.anchor=rt,this.head=lt};oa.prototype.from=function(){return Xn(this.anchor,this.head)},oa.prototype.to=function(){return ci(this.anchor,this.head)},oa.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ac(rt,lt,pt){var dt=rt&&rt.options.selectionsMayTouch,yt=lt[pt];lt.sort(function(Li,Si){return un(Li.from(),Si.from())}),pt=rn(lt,yt);for(var Lt=1;Lt<lt.length;Lt++){var Vt=lt[Lt],ae=lt[Lt-1],oe=un(ae.to(),Vt.from());if(dt&&!Vt.empty()?oe>0:oe>=0){var Pe=Xn(ae.from(),Vt.from()),Bn=ci(ae.to(),Vt.to()),Ue=ae.empty()?Vt.from()==Vt.head:ae.from()==ae.head;Lt<=pt&&--pt,lt.splice(--Lt,2,new oa(Ue?Bn:Pe,Ue?Pe:Bn))}}return new qu(lt,pt)}function kc(rt,lt){return new qu([new oa(rt,lt||rt)],0)}function jh(rt){return rt.text?Ge(rt.from.line+rt.text.length-1,Jn(rt.text).length+(rt.text.length==1?rt.from.ch:0)):rt.to}function hd(rt,lt){if(un(rt,lt.from)<0)return rt;if(un(rt,lt.to)<=0)return jh(lt);var pt=rt.line+lt.text.length-(lt.to.line-lt.from.line)-1,dt=rt.ch;return rt.line==lt.to.line&&(dt+=jh(lt).ch-lt.to.ch),Ge(pt,dt)}function Bf(rt,lt){for(var pt=[],dt=0;dt<rt.sel.ranges.length;dt++){var yt=rt.sel.ranges[dt];pt.push(new oa(hd(yt.anchor,lt),hd(yt.head,lt)))}return ac(rt.cm,pt,rt.sel.primIndex)}function Wc(rt,lt,pt){return rt.line==lt.line?Ge(pt.line,rt.ch-lt.ch+pt.ch):Ge(pt.line+(rt.line-lt.line),rt.ch)}function dd(rt,lt,pt){for(var dt=[],yt=Ge(rt.first,0),Lt=yt,Vt=0;Vt<lt.length;Vt++){var ae=lt[Vt],oe=Wc(ae.from,yt,Lt),Pe=Wc(jh(ae),yt,Lt);if(yt=ae.to,Lt=Pe,pt=="around"){var Bn=rt.sel.ranges[Vt],Ue=un(Bn.head,Bn.anchor)<0;dt[Vt]=new oa(Ue?Pe:oe,Ue?oe:Pe)}else dt[Vt]=new oa(oe,oe)}return new qu(dt,rt.sel.primIndex)}function ks(rt){rt.doc.mode=Tn(rt.options,rt.doc.modeOption),Ud(rt)}function Ud(rt){rt.doc.iter(function(lt){lt.stateAfter&&(lt.stateAfter=null),lt.styles&&(lt.styles=null)}),rt.doc.modeFrontier=rt.doc.highlightFrontier=rt.doc.first,hu(rt,100),rt.state.modeGen++,rt.curOp&&zo(rt)}function K0(rt,lt){return lt.from.ch==0&<.to.ch==0&&Jn(lt.text)==""&&(!rt.cm||rt.cm.options.wholeLineUpdateBefore)}function Rp(rt,lt,pt,dt){function yt(To){return pt?pt[To]:null}function Lt(To,fo,Ro){sr(To,fo,Ro,dt),Kn(To,"change",To,lt)}function Vt(To,fo){for(var Ro=[],$o=To;$o<fo;++$o)Ro.push(new Bi(Pe[$o],yt($o),dt));return Ro}var ae=lt.from,oe=lt.to,Pe=lt.text,Bn=Oe(rt,ae.line),Ue=Oe(rt,oe.line),Li=Jn(Pe),Si=yt(Pe.length-1),xr=oe.line-ae.line;if(lt.full)rt.insert(0,Vt(0,Pe.length)),rt.remove(Pe.length,rt.size-Pe.length);else if(K0(rt,lt)){var Er=Vt(0,Pe.length-1);Lt(Ue,Ue.text,Si),xr&&rt.remove(ae.line,xr),Er.length&&rt.insert(ae.line,Er)}else if(Bn==Ue)if(Pe.length==1)Lt(Bn,Bn.text.slice(0,ae.ch)+Li+Bn.text.slice(oe.ch),Si);else{var Rr=Vt(1,Pe.length-1);Rr.push(new Bi(Li+Bn.text.slice(oe.ch),Si,dt)),Lt(Bn,Bn.text.slice(0,ae.ch)+Pe[0],yt(0)),rt.insert(ae.line+1,Rr)}else if(Pe.length==1)Lt(Bn,Bn.text.slice(0,ae.ch)+Pe[0]+Ue.text.slice(oe.ch),yt(0)),rt.remove(ae.line+1,xr);else{Lt(Bn,Bn.text.slice(0,ae.ch)+Pe[0],yt(0)),Lt(Ue,Li+Ue.text.slice(oe.ch),Si);var io=Vt(1,Pe.length-1);xr>1&&rt.remove(ae.line+1,xr-1),rt.insert(ae.line+1,io)}Kn(rt,"change",rt,lt)}function Ac(rt,lt,pt){function dt(yt,Lt,Vt){if(yt.linked)for(var ae=0;ae<yt.linked.length;++ae){var oe=yt.linked[ae];if(oe.doc!=Lt){var Pe=Vt&&oe.sharedHist;pt&&!Pe||(lt(oe.doc,Pe),dt(oe.doc,yt,Pe))}}}dt(rt,null,!0)}function Zd(rt,lt){if(lt.cm)throw new Error("This document is already in use.");rt.doc=lt,lt.cm=rt,co(rt),ks(rt),fd(rt),rt.options.lineWrapping||Wn(rt),rt.options.mode=lt.modeOption,zo(rt)}function fd(rt){(rt.doc.direction=="rtl"?Vn:Qt)(rt.display.lineDiv,"CodeMirror-rtl")}function H0(rt){Qo(rt,function(){fd(rt),zo(rt)})}function Gd(rt){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=rt||1}function zp(rt,lt){var pt={from:Yi(lt.from),to:jh(lt),text:pn(rt,lt.from,lt.to)};return ah(rt,pt,lt.from.line,lt.to.line+1),Ac(rt,function(dt){return ah(dt,pt,lt.from.line,lt.to.line+1)},!0),pt}function Yd(rt){for(;rt.length;){var lt=Jn(rt);if(lt.ranges)rt.pop();else break}}function pd(rt,lt){if(lt)return Yd(rt.done),Jn(rt.done);if(rt.done.length&&!Jn(rt.done).ranges)return Jn(rt.done);if(rt.done.length>1&&!rt.done[rt.done.length-2].ranges)return rt.done.pop(),Jn(rt.done)}function md(rt,lt,pt,dt){var yt=rt.history;yt.undone.length=0;var Lt=+new Date,Vt,ae;if((yt.lastOp==dt||yt.lastOrigin==lt.origin&<.origin&&(lt.origin.charAt(0)=="+"&&yt.lastModTime>Lt-(rt.cm?rt.cm.options.historyEventDelay:500)||lt.origin.charAt(0)=="*"))&&(Vt=pd(yt,yt.lastOp==dt)))ae=Jn(Vt.changes),un(lt.from,lt.to)==0&&un(lt.from,ae.to)==0?ae.to=jh(lt):Vt.changes.push(zp(rt,lt));else{var oe=Jn(yt.done);for((!oe||!oe.ranges)&&Xd(rt.sel,yt.done),Vt={changes:[zp(rt,lt)],generation:yt.generation},yt.done.push(Vt);yt.done.length>yt.undoDepth;)yt.done.shift(),yt.done[0].ranges||yt.done.shift()}yt.done.push(pt),yt.generation=++yt.maxGeneration,yt.lastModTime=yt.lastSelTime=Lt,yt.lastOp=yt.lastSelOp=dt,yt.lastOrigin=yt.lastSelOrigin=lt.origin,ae||Qe(rt,"historyAdded")}function If(rt,lt,pt,dt){var yt=lt.charAt(0);return yt=="*"||yt=="+"&&pt.ranges.length==dt.ranges.length&&pt.somethingSelected()==dt.somethingSelected()&&new Date-rt.history.lastSelTime<=(rt.cm?rt.cm.options.historyEventDelay:500)}function gd(rt,lt,pt,dt){var yt=rt.history,Lt=dt&&dt.origin;pt==yt.lastSelOp||Lt&&yt.lastSelOrigin==Lt&&(yt.lastModTime==yt.lastSelTime&&yt.lastOrigin==Lt||If(rt,Lt,Jn(yt.done),lt))?yt.done[yt.done.length-1]=lt:Xd(lt,yt.done),yt.lastSelTime=+new Date,yt.lastSelOrigin=Lt,yt.lastSelOp=pt,dt&&dt.clearRedo!==!1&&Yd(yt.undone)}function Xd(rt,lt){var pt=Jn(lt);pt&&pt.ranges&&pt.equals(rt)||lt.push(rt)}function ah(rt,lt,pt,dt){var yt=lt["spans_"+rt.id],Lt=0;rt.iter(Math.max(rt.first,pt),Math.min(rt.first+rt.size,dt),function(Vt){Vt.markedSpans&&((yt||(yt=lt["spans_"+rt.id]={}))[Lt]=Vt.markedSpans),++Lt})}function Il(rt){if(!rt)return null;for(var lt,pt=0;pt<rt.length;++pt)rt[pt].marker.explicitlyCleared?lt||(lt=rt.slice(0,pt)):lt&<.push(rt[pt]);return lt?lt.length?lt:null:rt}function Vc(rt,lt){var pt=lt["spans_"+rt.id];if(!pt)return null;for(var dt=[],yt=0;yt<lt.text.length;++yt)dt.push(Il(pt[yt]));return dt}function jp(rt,lt){var pt=Vc(rt,lt),dt=jr(rt,lt);if(!pt)return dt;if(!dt)return pt;for(var yt=0;yt<pt.length;++yt){var Lt=pt[yt],Vt=dt[yt];if(Lt&&Vt)t:for(var ae=0;ae<Vt.length;++ae){for(var oe=Vt[ae],Pe=0;Pe<Lt.length;++Pe)if(Lt[Pe].marker==oe.marker)continue t;Lt.push(oe)}else Vt&&(pt[yt]=Vt)}return pt}function lh(rt,lt,pt){for(var dt=[],yt=0;yt<rt.length;++yt){var Lt=rt[yt];if(Lt.ranges){dt.push(pt?qu.prototype.deepCopy.call(Lt):Lt);continue}var Vt=Lt.changes,ae=[];dt.push({changes:ae});for(var oe=0;oe<Vt.length;++oe){var Pe=Vt[oe],Bn=void 0;if(ae.push({from:Pe.from,to:Pe.to,text:Pe.text}),lt)for(var Ue in Pe)(Bn=Ue.match(/^spans_(\d+)$/))&&rn(lt,Number(Bn[1]))>-1&&(Jn(ae)[Ue]=Pe[Ue],delete Pe[Ue])}}return dt}function Kp(rt,lt,pt,dt){if(dt){var yt=rt.anchor;if(pt){var Lt=un(lt,yt)<0;Lt!=un(pt,yt)<0?(yt=lt,lt=pt):Lt!=un(lt,pt)<0&&(lt=pt)}return new oa(yt,lt)}else return new oa(pt||lt,lt)}function Jd(rt,lt,pt,dt,yt){yt==null&&(yt=rt.cm&&(rt.cm.display.shift||rt.extend)),xl(rt,new qu([Kp(rt.sel.primary(),lt,pt,yt)],0),dt)}function Ho(rt,lt,pt){for(var dt=[],yt=rt.cm&&(rt.cm.display.shift||rt.extend),Lt=0;Lt<rt.sel.ranges.length;Lt++)dt[Lt]=Kp(rt.sel.ranges[Lt],lt[Lt],null,yt);var Vt=ac(rt.cm,dt,rt.sel.primIndex);xl(rt,Vt,pt)}function $l(rt,lt,pt,dt){var yt=rt.sel.ranges.slice(0);yt[lt]=pt,xl(rt,ac(rt.cm,yt,rt.sel.primIndex),dt)}function vd(rt,lt,pt,dt){xl(rt,kc(lt,pt),dt)}function Vm(rt,lt,pt){var dt={ranges:lt.ranges,update:function(yt){this.ranges=[];for(var Lt=0;Lt<yt.length;Lt++)this.ranges[Lt]=new oa(Ki(rt,yt[Lt].anchor),Ki(rt,yt[Lt].head))},origin:pt&&pt.origin};return Qe(rt,"beforeSelectionChange",rt,dt),rt.cm&&Qe(rt.cm,"beforeSelectionChange",rt.cm,dt),dt.ranges!=lt.ranges?ac(rt.cm,dt.ranges,dt.ranges.length-1):lt}function ql(rt,lt,pt){var dt=rt.history.done,yt=Jn(dt);yt&&yt.ranges?(dt[dt.length-1]=lt,yd(rt,lt,pt)):xl(rt,lt,pt)}function xl(rt,lt,pt){yd(rt,lt,pt),gd(rt,rt.sel,rt.cm?rt.cm.curOp.id:NaN,pt)}function yd(rt,lt,pt){(yi(rt,"beforeSelectionChange")||rt.cm&&yi(rt.cm,"beforeSelectionChange"))&&(lt=Vm(rt,lt,pt));var dt=pt&&pt.bias||(un(lt.primary().head,rt.sel.primary().head)<0?-1:1);Um(rt,uh(rt,lt,dt,!0)),!(pt&&pt.scroll===!1)&&rt.cm&&yl(rt.cm)}function Um(rt,lt){lt.equals(rt.sel)||(rt.sel=lt,rt.cm&&(rt.cm.curOp.updateInput=1,rt.cm.curOp.selectionChanged=!0,Ci(rt.cm)),Kn(rt,"cursorActivity",rt))}function Hp(rt){Um(rt,uh(rt,rt.sel,null,!1))}function uh(rt,lt,pt,dt){for(var yt,Lt=0;Lt<lt.ranges.length;Lt++){var Vt=lt.ranges[Lt],ae=lt.ranges.length==rt.sel.ranges.length&&rt.sel.ranges[Lt],oe=_p(rt,Vt.anchor,ae&&ae.anchor,pt,dt),Pe=_p(rt,Vt.head,ae&&ae.head,pt,dt);(yt||oe!=Vt.anchor||Pe!=Vt.head)&&(yt||(yt=lt.ranges.slice(0,Lt)),yt[Lt]=new oa(oe,Pe))}return yt?ac(rt.cm,yt,lt.primIndex):lt}function _l(rt,lt,pt,dt,yt){var Lt=Oe(rt,lt.line);if(Lt.markedSpans)for(var Vt=0;Vt<Lt.markedSpans.length;++Vt){var ae=Lt.markedSpans[Vt],oe=ae.marker,Pe="selectLeft"in oe?!oe.selectLeft:oe.inclusiveLeft,Bn="selectRight"in oe?!oe.selectRight:oe.inclusiveRight;if((ae.from==null||(Pe?ae.from<=lt.ch:ae.from<lt.ch))&&(ae.to==null||(Bn?ae.to>=lt.ch:ae.to>lt.ch))){if(yt&&(Qe(oe,"beforeCursorEnter"),oe.explicitlyCleared))if(Lt.markedSpans){--Vt;continue}else break;if(!oe.atomic)continue;if(pt){var Ue=oe.find(dt<0?1:-1),Li=void 0;if((dt<0?Bn:Pe)&&(Ue=ch(rt,Ue,-dt,Ue&&Ue.line==lt.line?Lt:null)),Ue&&Ue.line==lt.line&&(Li=un(Ue,pt))&&(dt<0?Li<0:Li>0))return _l(rt,Ue,lt,dt,yt)}var Si=oe.find(dt<0?-1:1);return(dt<0?Pe:Bn)&&(Si=ch(rt,Si,dt,Si.line==lt.line?Lt:null)),Si?_l(rt,Si,lt,dt,yt):null}}return lt}function _p(rt,lt,pt,dt,yt){var Lt=dt||1,Vt=_l(rt,lt,pt,Lt,yt)||!yt&&_l(rt,lt,pt,Lt,!0)||_l(rt,lt,pt,-Lt,yt)||!yt&&_l(rt,lt,pt,-Lt,!0);return Vt||(rt.cantEdit=!0,Ge(rt.first,0))}function ch(rt,lt,pt,dt){return pt<0&<.ch==0?lt.line>rt.first?Ki(rt,Ge(lt.line-1)):null:pt>0&<.ch==(dt||Oe(rt,lt.line)).text.length?lt.line<rt.first+rt.size-1?Ge(lt.line+1,0):null:new Ge(lt.line,lt.ch+pt)}function sl(rt){rt.setSelection(Ge(rt.firstLine(),0),Ge(rt.lastLine()),ze)}function Qd(rt,lt,pt){var dt={canceled:!1,from:lt.from,to:lt.to,text:lt.text,origin:lt.origin,cancel:function(){return dt.canceled=!0}};return pt&&(dt.update=function(yt,Lt,Vt,ae){yt&&(dt.from=Ki(rt,yt)),Lt&&(dt.to=Ki(rt,Lt)),Vt&&(dt.text=Vt),ae!==void 0&&(dt.origin=ae)}),Qe(rt,"beforeChange",rt,dt),rt.cm&&Qe(rt.cm,"beforeChange",rt.cm,dt),dt.canceled?(rt.cm&&(rt.cm.curOp.updateInput=2),null):{from:dt.from,to:dt.to,text:dt.text,origin:dt.origin}}function hh(rt,lt,pt){if(rt.cm){if(!rt.cm.curOp)return $s(rt.cm,hh)(rt,lt,pt);if(rt.cm.state.suppressEdits)return}if(!((yi(rt,"beforeChange")||rt.cm&&yi(rt.cm,"beforeChange"))&&(lt=Qd(rt,lt,!0),!lt))){var dt=ko&&!pt&&Wr(rt,lt.from,lt.to);if(dt)for(var yt=dt.length-1;yt>=0;--yt)xd(rt,{from:dt[yt].from,to:dt[yt].to,text:yt?[""]:lt.text,origin:lt.origin});else xd(rt,lt)}}function xd(rt,lt){if(!(lt.text.length==1&<.text[0]==""&&un(lt.from,lt.to)==0)){var pt=Bf(rt,lt);md(rt,lt,pt,rt.cm?rt.cm.curOp.id:NaN),bd(rt,lt,pt,jr(rt,lt));var dt=[];Ac(rt,function(yt,Lt){!Lt&&rn(dt,yt.history)==-1&&(Ff(yt.history,lt),dt.push(yt.history)),bd(yt,lt,null,jr(yt,lt))})}}function dh(rt,lt,pt){var dt=rt.cm&&rt.cm.state.suppressEdits;if(!(dt&&!pt)){for(var yt=rt.history,Lt,Vt=rt.sel,ae=lt=="undo"?yt.done:yt.undone,oe=lt=="undo"?yt.undone:yt.done,Pe=0;Pe<ae.length&&(Lt=ae[Pe],!(pt?Lt.ranges&&!Lt.equals(rt.sel):!Lt.ranges));Pe++);if(Pe!=ae.length){for(yt.lastOrigin=yt.lastSelOrigin=null;;)if(Lt=ae.pop(),Lt.ranges){if(Xd(Lt,oe),pt&&!Lt.equals(rt.sel)){xl(rt,Lt,{clearRedo:!1});return}Vt=Lt}else if(dt){ae.push(Lt);return}else break;var Bn=[];Xd(Vt,oe),oe.push({changes:Bn,generation:yt.generation}),yt.generation=Lt.generation||++yt.maxGeneration;for(var Ue=yi(rt,"beforeChange")||rt.cm&&yi(rt.cm,"beforeChange"),Li=function(Er){var Rr=Lt.changes[Er];if(Rr.origin=lt,Ue&&!Qd(rt,Rr,!1))return ae.length=0,{};Bn.push(zp(rt,Rr));var io=Er?Bf(rt,Rr):Jn(ae);bd(rt,Rr,io,jp(rt,Rr)),!Er&&rt.cm&&rt.cm.scrollIntoView({from:Rr.from,to:jh(Rr)});var To=[];Ac(rt,function(fo,Ro){!Ro&&rn(To,fo.history)==-1&&(Ff(fo.history,Rr),To.push(fo.history)),bd(fo,Rr,null,jp(fo,Rr))})},Si=Lt.changes.length-1;Si>=0;--Si){var xr=Li(Si);if(xr)return xr.v}}}}function Wp(rt,lt){if(lt!=0&&(rt.first+=lt,rt.sel=new qu(Ai(rt.sel.ranges,function(yt){return new oa(Ge(yt.anchor.line+lt,yt.anchor.ch),Ge(yt.head.line+lt,yt.head.ch))}),rt.sel.primIndex),rt.cm)){zo(rt.cm,rt.first,rt.first-lt,lt);for(var pt=rt.cm.display,dt=pt.viewFrom;dt<pt.viewTo;dt++)Fo(rt.cm,dt,"gutter")}}function bd(rt,lt,pt,dt){if(rt.cm&&!rt.cm.curOp)return $s(rt.cm,bd)(rt,lt,pt,dt);if(lt.to.line<rt.first){Wp(rt,lt.text.length-1-(lt.to.line-lt.from.line));return}if(!(lt.from.line>rt.lastLine())){if(lt.from.line<rt.first){var yt=lt.text.length-1-(rt.first-lt.from.line);Wp(rt,yt),lt={from:Ge(rt.first,0),to:Ge(lt.to.line+yt,lt.to.ch),text:[Jn(lt.text)],origin:lt.origin}}var Lt=rt.lastLine();lt.to.line>Lt&&(lt={from:lt.from,to:Ge(Lt,Oe(rt,Lt).text.length),text:[lt.text[0]],origin:lt.origin}),lt.removed=pn(rt,lt.from,lt.to),pt||(pt=Bf(rt,lt)),rt.cm?Zm(rt.cm,lt,dt):Rp(rt,lt,dt),yd(rt,pt,ze),rt.cantEdit&&_p(rt,Ge(rt.firstLine(),0))&&(rt.cantEdit=!1)}}function Zm(rt,lt,pt){var dt=rt.doc,yt=rt.display,Lt=lt.from,Vt=lt.to,ae=!1,oe=Lt.line;rt.options.lineWrapping||(oe=_e(Ee(Oe(dt,Lt.line))),dt.iter(oe,Vt.line+1,function(Si){if(Si==yt.maxLine)return ae=!0,!0})),dt.sel.contains(lt.from,lt.to)>-1&&Ci(rt),Rp(dt,lt,pt,Bs(rt)),rt.options.lineWrapping||(dt.iter(oe,Lt.line+lt.text.length,function(Si){var xr=di(Si);xr>yt.maxLineLength&&(yt.maxLine=Si,yt.maxLineLength=xr,yt.maxLineChanged=!0,ae=!1)}),ae&&(rt.curOp.updateMaxLine=!0)),yo(dt,Lt.line),hu(rt,400);var Pe=lt.text.length-(Vt.line-Lt.line)-1;lt.full?zo(rt):Lt.line==Vt.line&<.text.length==1&&!K0(rt.doc,lt)?Fo(rt,Lt.line,"text"):zo(rt,Lt.line,Vt.line+1,Pe);var Bn=yi(rt,"changes"),Ue=yi(rt,"change");if(Ue||Bn){var Li={from:Lt,to:Vt,text:lt.text,removed:lt.removed,origin:lt.origin};Ue&&Kn(rt,"change",rt,Li),Bn&&(rt.curOp.changeObjs||(rt.curOp.changeObjs=[])).push(Li)}rt.display.selForContextMenu=null}function $d(rt,lt,pt,dt,yt){var Lt;dt||(dt=pt),un(dt,pt)<0&&(Lt=[dt,pt],pt=Lt[0],dt=Lt[1]),typeof lt=="string"&&(lt=rt.splitLines(lt)),hh(rt,{from:pt,to:dt,text:lt,origin:yt})}function lc(rt,lt,pt,dt){pt<rt.line?rt.line+=dt:lt<rt.line&&(rt.line=lt,rt.ch=0)}function cv(rt,lt,pt,dt){for(var yt=0;yt<rt.length;++yt){var Lt=rt[yt],Vt=!0;if(Lt.ranges){Lt.copied||(Lt=rt[yt]=Lt.deepCopy(),Lt.copied=!0);for(var ae=0;ae<Lt.ranges.length;ae++)lc(Lt.ranges[ae].anchor,lt,pt,dt),lc(Lt.ranges[ae].head,lt,pt,dt);continue}for(var oe=0;oe<Lt.changes.length;++oe){var Pe=Lt.changes[oe];if(pt<Pe.from.line)Pe.from=Ge(Pe.from.line+dt,Pe.from.ch),Pe.to=Ge(Pe.to.line+dt,Pe.to.ch);else if(lt<=Pe.to.line){Vt=!1;break}}Vt||(rt.splice(0,yt+1),yt=0)}}function Ff(rt,lt){var pt=lt.from.line,dt=lt.to.line,yt=lt.text.length-(dt-pt)-1;cv(rt.done,pt,dt,yt),cv(rt.undone,pt,dt,yt)}function qd(rt,lt,pt,dt){var yt=lt,Lt=lt;return typeof lt=="number"?Lt=Oe(rt,qn(rt,lt)):yt=_e(lt),yt==null?null:(dt(Lt,yt)&&rt.cm&&Fo(rt.cm,yt,pt),Lt)}function Kh(rt){this.lines=rt,this.parent=null;for(var lt=0,pt=0;pt<rt.length;++pt)rt[pt].parent=this,lt+=rt[pt].height;this.height=lt}Kh.prototype={chunkSize:function(){return this.lines.length},removeInner:function(rt,lt){for(var pt=rt,dt=rt+lt;pt<dt;++pt){var yt=this.lines[pt];this.height-=yt.height,_i(yt),Kn(yt,"delete")}this.lines.splice(rt,lt)},collapse:function(rt){rt.push.apply(rt,this.lines)},insertInner:function(rt,lt,pt){this.height+=pt,this.lines=this.lines.slice(0,rt).concat(lt).concat(this.lines.slice(rt));for(var dt=0;dt<lt.length;++dt)lt[dt].parent=this},iterN:function(rt,lt,pt){for(var dt=rt+lt;rt<dt;++rt)if(pt(this.lines[rt]))return!0}};function Ia(rt){this.children=rt;for(var lt=0,pt=0,dt=0;dt<rt.length;++dt){var yt=rt[dt];lt+=yt.chunkSize(),pt+=yt.height,yt.parent=this}this.size=lt,this.height=pt,this.parent=null}Ia.prototype={chunkSize:function(){return this.size},removeInner:function(rt,lt){this.size-=lt;for(var pt=0;pt<this.children.length;++pt){var dt=this.children[pt],yt=dt.chunkSize();if(rt<yt){var Lt=Math.min(lt,yt-rt),Vt=dt.height;if(dt.removeInner(rt,Lt),this.height-=Vt-dt.height,yt==Lt&&(this.children.splice(pt--,1),dt.parent=null),(lt-=Lt)==0)break;rt=0}else rt-=yt}if(this.size-lt<25&&(this.children.length>1||!(this.children[0]instanceof Kh))){var ae=[];this.collapse(ae),this.children=[new Kh(ae)],this.children[0].parent=this}},collapse:function(rt){for(var lt=0;lt<this.children.length;++lt)this.children[lt].collapse(rt)},insertInner:function(rt,lt,pt){this.size+=lt.length,this.height+=pt;for(var dt=0;dt<this.children.length;++dt){var yt=this.children[dt],Lt=yt.chunkSize();if(rt<=Lt){if(yt.insertInner(rt,lt,pt),yt.lines&&yt.lines.length>50){for(var Vt=yt.lines.length%25+25,ae=Vt;ae<yt.lines.length;){var oe=new Kh(yt.lines.slice(ae,ae+=25));yt.height-=oe.height,this.children.splice(++dt,0,oe),oe.parent=this}yt.lines=yt.lines.slice(0,Vt),this.maybeSpill()}break}rt-=Lt}},maybeSpill:function(){if(!(this.children.length<=10)){var rt=this;do{var lt=rt.children.splice(rt.children.length-5,5),pt=new Ia(lt);if(rt.parent){rt.size-=pt.size,rt.height-=pt.height;var yt=rn(rt.parent.children,rt);rt.parent.children.splice(yt+1,0,pt)}else{var dt=new Ia(rt.children);dt.parent=rt,rt.children=[dt,pt],rt=dt}pt.parent=rt.parent}while(rt.children.length>10);rt.parent.maybeSpill()}},iterN:function(rt,lt,pt){for(var dt=0;dt<this.children.length;++dt){var yt=this.children[dt],Lt=yt.chunkSize();if(rt<Lt){var Vt=Math.min(lt,Lt-rt);if(yt.iterN(rt,Vt,pt))return!0;if((lt-=Vt)==0)break;rt=0}else rt-=Lt}}};var fh=function(rt,lt,pt){if(pt)for(var dt in pt)pt.hasOwnProperty(dt)&&(this[dt]=pt[dt]);this.doc=rt,this.node=lt};fh.prototype.clear=function(){var rt=this.doc.cm,lt=this.line.widgets,pt=this.line,dt=_e(pt);if(!(dt==null||!lt)){for(var yt=0;yt<lt.length;++yt)lt[yt]==this&<.splice(yt--,1);lt.length||(pt.widgets=null);var Lt=No(this);$n(pt,Math.max(0,pt.height-Lt)),rt&&(Qo(rt,function(){hv(rt,pt,-Lt),Fo(rt,dt,"widget")}),Kn(rt,"lineWidgetCleared",rt,this,dt))}},fh.prototype.changed=function(){var rt=this,lt=this.height,pt=this.doc.cm,dt=this.line;this.height=null;var yt=No(this)-lt;yt&&(An(this.doc,dt)||$n(dt,dt.height+yt),pt&&Qo(pt,function(){pt.curOp.forceUpdate=!0,hv(pt,dt,yt),Kn(pt,"lineWidgetChanged",pt,rt,_e(dt))}))},Oi(fh);function hv(rt,lt,pt){pi(lt)<(rt.curOp&&rt.curOp.scrollTop||rt.doc.scrollTop)&&Ru(rt,pt)}function Vp(rt,lt,pt,dt){var yt=new fh(rt,pt,dt),Lt=rt.cm;return Lt&&yt.noHScroll&&(Lt.display.alignWidgets=!0),qd(rt,lt,"widget",function(Vt){var ae=Vt.widgets||(Vt.widgets=[]);if(yt.insertAt==null?ae.push(yt):ae.splice(Math.min(ae.length-1,Math.max(0,yt.insertAt)),0,yt),yt.line=Vt,Lt&&!An(rt,Vt)){var oe=pi(Vt)<rt.scrollTop;$n(Vt,Vt.height+No(yt)),oe&&Ru(Lt,yt.height),Lt.curOp.forceUpdate=!0}return!0}),Lt&&Kn(Lt,"lineWidgetAdded",Lt,yt,typeof lt=="number"?lt:_e(lt)),yt}var dv=0,dn=function(rt,lt){this.lines=[],this.type=lt,this.doc=rt,this.id=++dv};dn.prototype.clear=function(){if(!this.explicitlyCleared){var rt=this.doc.cm,lt=rt&&!rt.curOp;if(lt&&_c(rt),yi(this,"clear")){var pt=this.find();pt&&Kn(this,"clear",pt.from,pt.to)}for(var dt=null,yt=null,Lt=0;Lt<this.lines.length;++Lt){var Vt=this.lines[Lt],ae=Wi(Vt.markedSpans,this);rt&&!this.collapsed?Fo(rt,_e(Vt),"text"):rt&&(ae.to!=null&&(yt=_e(Vt)),ae.from!=null&&(dt=_e(Vt))),Vt.markedSpans=Gi(Vt.markedSpans,ae),ae.from==null&&this.collapsed&&!An(this.doc,Vt)&&rt&&$n(Vt,Qs(rt.display))}if(rt&&this.collapsed&&!rt.options.lineWrapping)for(var oe=0;oe<this.lines.length;++oe){var Pe=Ee(this.lines[oe]),Bn=di(Pe);Bn>rt.display.maxLineLength&&(rt.display.maxLine=Pe,rt.display.maxLineLength=Bn,rt.display.maxLineChanged=!0)}dt!=null&&rt&&this.collapsed&&zo(rt,dt,yt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,rt&&Hp(rt.doc)),rt&&Kn(rt,"markerCleared",rt,this,dt,yt),lt&&Ec(rt),this.parent&&this.parent.clear()}},dn.prototype.find=function(rt,lt){rt==null&&this.type=="bookmark"&&(rt=1);for(var pt,dt,yt=0;yt<this.lines.length;++yt){var Lt=this.lines[yt],Vt=Wi(Lt.markedSpans,this);if(Vt.from!=null&&(pt=Ge(lt?Lt:_e(Lt),Vt.from),rt==-1))return pt;if(Vt.to!=null&&(dt=Ge(lt?Lt:_e(Lt),Vt.to),rt==1))return dt}return pt&&{from:pt,to:dt}},dn.prototype.changed=function(){var rt=this,lt=this.find(-1,!0),pt=this,dt=this.doc.cm;!lt||!dt||Qo(dt,function(){var yt=lt.line,Lt=_e(lt.line),Vt=ds(dt,Lt);if(Vt&&(os(Vt),dt.curOp.selectionChanged=dt.curOp.forceUpdate=!0),dt.curOp.updateMaxLine=!0,!An(pt.doc,yt)&&pt.height!=null){var ae=pt.height;pt.height=null;var oe=No(pt)-ae;oe&&$n(yt,yt.height+oe)}Kn(dt,"markerChanged",dt,rt)})},dn.prototype.attachLine=function(rt){if(!this.lines.length&&this.doc.cm){var lt=this.doc.cm.curOp;(!lt.maybeHiddenMarkers||rn(lt.maybeHiddenMarkers,this)==-1)&&(lt.maybeUnhiddenMarkers||(lt.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(rt)},dn.prototype.detachLine=function(rt){if(this.lines.splice(rn(this.lines,rt),1),!this.lines.length&&this.doc.cm){var lt=this.doc.cm.curOp;(lt.maybeHiddenMarkers||(lt.maybeHiddenMarkers=[])).push(this)}},Oi(dn);function ph(rt,lt,pt,dt,yt){if(dt&&dt.shared)return Fa(rt,lt,pt,dt,yt);if(rt.cm&&!rt.cm.curOp)return $s(rt.cm,ph)(rt,lt,pt,dt,yt);var Lt=new dn(rt,yt),Vt=un(lt,pt);if(dt&&Gn(dt,Lt,!1),Vt>0||Vt==0&&Lt.clearWhenEmpty!==!1)return Lt;if(Lt.replacedWith&&(Lt.collapsed=!0,Lt.widgetNode=en("span",[Lt.replacedWith],"CodeMirror-widget"),dt.handleMouseEvents||Lt.widgetNode.setAttribute("cm-ignore-events","true"),dt.insertLeft&&(Lt.widgetNode.insertLeft=!0)),Lt.collapsed){if(fe(rt,lt.line,lt,pt,Lt)||lt.line!=pt.line&&fe(rt,pt.line,lt,pt,Lt))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ce()}Lt.addToHistory&&md(rt,{from:lt,to:pt,origin:"markText"},rt.sel,NaN);var ae=lt.line,oe=rt.cm,Pe;if(rt.iter(ae,pt.line+1,function(Ue){oe&&Lt.collapsed&&!oe.options.lineWrapping&&Ee(Ue)==oe.display.maxLine&&(Pe=!0),Lt.collapsed&&ae!=lt.line&&$n(Ue,0),Tr(Ue,new si(Lt,ae==lt.line?lt.ch:null,ae==pt.line?pt.ch:null)),++ae}),Lt.collapsed&&rt.iter(lt.line,pt.line+1,function(Ue){An(rt,Ue)&&$n(Ue,0)}),Lt.clearOnEnter&&Qn(Lt,"beforeCursorEnter",function(){return Lt.clear()}),Lt.readOnly&&(kn(),(rt.history.done.length||rt.history.undone.length)&&rt.clearHistory()),Lt.collapsed&&(Lt.id=++dv,Lt.atomic=!0),oe){if(Pe&&(oe.curOp.updateMaxLine=!0),Lt.collapsed)zo(oe,lt.line,pt.line+1);else if(Lt.className||Lt.startStyle||Lt.endStyle||Lt.css||Lt.attributes||Lt.title)for(var Bn=lt.line;Bn<=pt.line;Bn++)Fo(oe,Bn,"text");Lt.atomic&&Hp(oe.doc),Kn(oe,"markerAdded",oe,Lt)}return Lt}var Ts=function(rt,lt){this.markers=rt,this.primary=lt;for(var pt=0;pt<rt.length;++pt)rt[pt].parent=this};Ts.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var rt=0;rt<this.markers.length;++rt)this.markers[rt].clear();Kn(this,"clear")}},Ts.prototype.find=function(rt,lt){return this.primary.find(rt,lt)},Oi(Ts);function Fa(rt,lt,pt,dt,yt){dt=Gn(dt),dt.shared=!1;var Lt=[ph(rt,lt,pt,dt,yt)],Vt=Lt[0],ae=dt.widgetNode;return Ac(rt,function(oe){ae&&(dt.widgetNode=ae.cloneNode(!0)),Lt.push(ph(oe,Ki(oe,lt),Ki(oe,pt),dt,yt));for(var Pe=0;Pe<oe.linked.length;++Pe)if(oe.linked[Pe].isParent)return;Vt=Jn(Lt)}),new Ts(Lt,Vt)}function Hh(rt){return rt.findMarks(Ge(rt.first,0),rt.clipPos(Ge(rt.lastLine())),function(lt){return lt.parent})}function Gm(rt,lt){for(var pt=0;pt<lt.length;pt++){var dt=lt[pt],yt=dt.find(),Lt=rt.clipPos(yt.from),Vt=rt.clipPos(yt.to);if(un(Lt,Vt)){var ae=ph(rt,Lt,Vt,dt.primary,dt.primary.type);dt.markers.push(ae),ae.parent=dt}}}function Hu(rt){for(var lt=function(dt){var yt=rt[dt],Lt=[yt.primary.doc];Ac(yt.primary.doc,function(oe){return Lt.push(oe)});for(var Vt=0;Vt<yt.markers.length;Vt++){var ae=yt.markers[Vt];rn(Lt,ae.doc)==-1&&(ae.parent=null,yt.markers.splice(Vt--,1))}},pt=0;pt<rt.length;pt++)lt(pt)}var fv=0,qa=function(rt,lt,pt,dt,yt){if(!(this instanceof qa))return new qa(rt,lt,pt,dt,yt);pt==null&&(pt=0),Ia.call(this,[new Kh([new Bi("",null)])]),this.first=pt,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=pt;var Lt=Ge(pt,0);this.sel=kc(Lt),this.history=new Gd(null),this.id=++fv,this.modeOption=lt,this.lineSep=dt,this.direction=yt=="rtl"?"rtl":"ltr",this.extend=!1,typeof rt=="string"&&(rt=this.splitLines(rt)),Rp(this,{from:Lt,to:Lt,text:rt}),xl(this,kc(Lt),ze)};qa.prototype=kt(Ia.prototype,{constructor:qa,iter:function(rt,lt,pt){pt?this.iterN(rt-this.first,lt-rt,pt):this.iterN(this.first,this.first+this.size,rt)},insert:function(rt,lt){for(var pt=0,dt=0;dt<lt.length;++dt)pt+=lt[dt].height;this.insertInner(rt-this.first,lt,pt)},remove:function(rt,lt){this.removeInner(rt-this.first,lt)},getValue:function(rt){var lt=fi(this,this.first,this.first+this.size);return rt===!1?lt:lt.join(rt||this.lineSeparator())},setValue:Wa(function(rt){var lt=Ge(this.first,0),pt=this.first+this.size-1;hh(this,{from:lt,to:Ge(pt,Oe(this,pt).text.length),text:this.splitLines(rt),origin:"setValue",full:!0},!0),this.cm&&sc(this.cm,0,0),xl(this,kc(lt),ze)}),replaceRange:function(rt,lt,pt,dt){lt=Ki(this,lt),pt=pt?Ki(this,pt):lt,$d(this,rt,lt,pt,dt)},getRange:function(rt,lt,pt){var dt=pn(this,Ki(this,rt),Ki(this,lt));return pt===!1?dt:dt.join(pt||this.lineSeparator())},getLine:function(rt){var lt=this.getLineHandle(rt);return lt&<.text},getLineHandle:function(rt){if(Ri(this,rt))return Oe(this,rt)},getLineNumber:function(rt){return _e(rt)},getLineHandleVisualStart:function(rt){return typeof rt=="number"&&(rt=Oe(this,rt)),Ee(rt)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(rt){return Ki(this,rt)},getCursor:function(rt){var lt=this.sel.primary(),pt;return rt==null||rt=="head"?pt=lt.head:rt=="anchor"?pt=lt.anchor:rt=="end"||rt=="to"||rt===!1?pt=lt.to():pt=lt.from(),pt},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Wa(function(rt,lt,pt){vd(this,Ki(this,typeof rt=="number"?Ge(rt,lt||0):rt),null,pt)}),setSelection:Wa(function(rt,lt,pt){vd(this,Ki(this,rt),Ki(this,lt||rt),pt)}),extendSelection:Wa(function(rt,lt,pt){Jd(this,Ki(this,rt),lt&&Ki(this,lt),pt)}),extendSelections:Wa(function(rt,lt){Ho(this,ki(this,rt),lt)}),extendSelectionsBy:Wa(function(rt,lt){var pt=Ai(this.sel.ranges,rt);Ho(this,ki(this,pt),lt)}),setSelections:Wa(function(rt,lt,pt){if(rt.length){for(var dt=[],yt=0;yt<rt.length;yt++)dt[yt]=new oa(Ki(this,rt[yt].anchor),Ki(this,rt[yt].head));lt==null&&(lt=Math.min(rt.length-1,this.sel.primIndex)),xl(this,ac(this.cm,dt,lt),pt)}}),addSelection:Wa(function(rt,lt,pt){var dt=this.sel.ranges.slice(0);dt.push(new oa(Ki(this,rt),Ki(this,lt||rt))),xl(this,ac(this.cm,dt,dt.length-1),pt)}),getSelection:function(rt){for(var lt=this.sel.ranges,pt,dt=0;dt<lt.length;dt++){var yt=pn(this,lt[dt].from(),lt[dt].to());pt=pt?pt.concat(yt):yt}return rt===!1?pt:pt.join(rt||this.lineSeparator())},getSelections:function(rt){for(var lt=[],pt=this.sel.ranges,dt=0;dt<pt.length;dt++){var yt=pn(this,pt[dt].from(),pt[dt].to());rt!==!1&&(yt=yt.join(rt||this.lineSeparator())),lt[dt]=yt}return lt},replaceSelection:function(rt,lt,pt){for(var dt=[],yt=0;yt<this.sel.ranges.length;yt++)dt[yt]=rt;this.replaceSelections(dt,lt,pt||"+input")},replaceSelections:Wa(function(rt,lt,pt){for(var dt=[],yt=this.sel,Lt=0;Lt<yt.ranges.length;Lt++){var Vt=yt.ranges[Lt];dt[Lt]={from:Vt.from(),to:Vt.to(),text:this.splitLines(rt[Lt]),origin:pt}}for(var ae=lt&<!="end"&&dd(this,dt,lt),oe=dt.length-1;oe>=0;oe--)hh(this,dt[oe]);ae?ql(this,ae):this.cm&&yl(this.cm)}),undo:Wa(function(){dh(this,"undo")}),redo:Wa(function(){dh(this,"redo")}),undoSelection:Wa(function(){dh(this,"undo",!0)}),redoSelection:Wa(function(){dh(this,"redo",!0)}),setExtending:function(rt){this.extend=rt},getExtending:function(){return this.extend},historySize:function(){for(var rt=this.history,lt=0,pt=0,dt=0;dt<rt.done.length;dt++)rt.done[dt].ranges||++lt;for(var yt=0;yt<rt.undone.length;yt++)rt.undone[yt].ranges||++pt;return{undo:lt,redo:pt}},clearHistory:function(){var rt=this;this.history=new Gd(this.history.maxGeneration),Ac(this,function(lt){return lt.history=rt.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(rt){return rt&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(rt){return this.history.generation==(rt||this.cleanGeneration)},getHistory:function(){return{done:lh(this.history.done),undone:lh(this.history.undone)}},setHistory:function(rt){var lt=this.history=new Gd(this.history.maxGeneration);lt.done=lh(rt.done.slice(0),null,!0),lt.undone=lh(rt.undone.slice(0),null,!0)},setGutterMarker:Wa(function(rt,lt,pt){return qd(this,rt,"gutter",function(dt){var yt=dt.gutterMarkers||(dt.gutterMarkers={});return yt[lt]=pt,!pt&&wt(yt)&&(dt.gutterMarkers=null),!0})}),clearGutter:Wa(function(rt){var lt=this;this.iter(function(pt){pt.gutterMarkers&&pt.gutterMarkers[rt]&&qd(lt,pt,"gutter",function(){return pt.gutterMarkers[rt]=null,wt(pt.gutterMarkers)&&(pt.gutterMarkers=null),!0})})}),lineInfo:function(rt){var lt;if(typeof rt=="number"){if(!Ri(this,rt)||(lt=rt,rt=Oe(this,rt),!rt))return null}else if(lt=_e(rt),lt==null)return null;return{line:lt,handle:rt,text:rt.text,gutterMarkers:rt.gutterMarkers,textClass:rt.textClass,bgClass:rt.bgClass,wrapClass:rt.wrapClass,widgets:rt.widgets}},addLineClass:Wa(function(rt,lt,pt){return qd(this,rt,lt=="gutter"?"gutter":"class",function(dt){var yt=lt=="text"?"textClass":lt=="background"?"bgClass":lt=="gutter"?"gutterClass":"wrapClass";if(!dt[yt])dt[yt]=pt;else{if(zt(pt).test(dt[yt]))return!1;dt[yt]+=" "+pt}return!0})}),removeLineClass:Wa(function(rt,lt,pt){return qd(this,rt,lt=="gutter"?"gutter":"class",function(dt){var yt=lt=="text"?"textClass":lt=="background"?"bgClass":lt=="gutter"?"gutterClass":"wrapClass",Lt=dt[yt];if(Lt)if(pt==null)dt[yt]=null;else{var Vt=Lt.match(zt(pt));if(!Vt)return!1;var ae=Vt.index+Vt[0].length;dt[yt]=Lt.slice(0,Vt.index)+(!Vt.index||ae==Lt.length?"":" ")+Lt.slice(ae)||null}else return!1;return!0})}),addLineWidget:Wa(function(rt,lt,pt){return Vp(this,rt,lt,pt)}),removeLineWidget:function(rt){rt.clear()},markText:function(rt,lt,pt){return ph(this,Ki(this,rt),Ki(this,lt),pt,pt&&pt.type||"range")},setBookmark:function(rt,lt){var pt={replacedWith:lt&&(lt.nodeType==null?lt.widget:lt),insertLeft:lt&<.insertLeft,clearWhenEmpty:!1,shared:lt&<.shared,handleMouseEvents:lt&<.handleMouseEvents};return rt=Ki(this,rt),ph(this,rt,rt,pt,"bookmark")},findMarksAt:function(rt){rt=Ki(this,rt);var lt=[],pt=Oe(this,rt.line).markedSpans;if(pt)for(var dt=0;dt<pt.length;++dt){var yt=pt[dt];(yt.from==null||yt.from<=rt.ch)&&(yt.to==null||yt.to>=rt.ch)&<.push(yt.marker.parent||yt.marker)}return lt},findMarks:function(rt,lt,pt){rt=Ki(this,rt),lt=Ki(this,lt);var dt=[],yt=rt.line;return this.iter(rt.line,lt.line+1,function(Lt){var Vt=Lt.markedSpans;if(Vt)for(var ae=0;ae<Vt.length;ae++){var oe=Vt[ae];!(oe.to!=null&&yt==rt.line&&rt.ch>=oe.to||oe.from==null&&yt!=rt.line||oe.from!=null&&yt==lt.line&&oe.from>=lt.ch)&&(!pt||pt(oe.marker))&&dt.push(oe.marker.parent||oe.marker)}++yt}),dt},getAllMarks:function(){var rt=[];return this.iter(function(lt){var pt=lt.markedSpans;if(pt)for(var dt=0;dt<pt.length;++dt)pt[dt].from!=null&&rt.push(pt[dt].marker)}),rt},posFromIndex:function(rt){var lt,pt=this.first,dt=this.lineSeparator().length;return this.iter(function(yt){var Lt=yt.text.length+dt;if(Lt>rt)return lt=rt,!0;rt-=Lt,++pt}),Ki(this,Ge(pt,lt))},indexFromPos:function(rt){rt=Ki(this,rt);var lt=rt.ch;if(rt.line<this.first||rt.ch<0)return 0;var pt=this.lineSeparator().length;return this.iter(this.first,rt.line,function(dt){lt+=dt.text.length+pt}),lt},copy:function(rt){var lt=new qa(fi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return lt.scrollTop=this.scrollTop,lt.scrollLeft=this.scrollLeft,lt.sel=this.sel,lt.extend=!1,rt&&(lt.history.undoDepth=this.history.undoDepth,lt.setHistory(this.getHistory())),lt},linkedDoc:function(rt){rt||(rt={});var lt=this.first,pt=this.first+this.size;rt.from!=null&&rt.from>lt&&(lt=rt.from),rt.to!=null&&rt.to<pt&&(pt=rt.to);var dt=new qa(fi(this,lt,pt),rt.mode||this.modeOption,lt,this.lineSep,this.direction);return rt.sharedHist&&(dt.history=this.history),(this.linked||(this.linked=[])).push({doc:dt,sharedHist:rt.sharedHist}),dt.linked=[{doc:this,isParent:!0,sharedHist:rt.sharedHist}],Gm(dt,Hh(this)),dt},unlinkDoc:function(rt){if(rt instanceof ts&&(rt=rt.doc),this.linked)for(var lt=0;lt<this.linked.length;++lt){var pt=this.linked[lt];if(pt.doc==rt){this.linked.splice(lt,1),rt.unlinkDoc(this),Hu(Hh(this));break}}if(rt.history==this.history){var dt=[rt.id];Ac(rt,function(yt){return dt.push(yt.id)},!0),rt.history=new Gd(null),rt.history.done=lh(this.history.done,dt),rt.history.undone=lh(this.history.undone,dt)}},iterLinkedDocs:function(rt){Ac(this,rt)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(rt){return this.lineSep?rt.split(this.lineSep):Mn(rt)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Wa(function(rt){rt!="rtl"&&(rt="ltr"),rt!=this.direction&&(this.direction=rt,this.iter(function(lt){return lt.order=null}),this.cm&&H0(this.cm))})}),qa.prototype.eachLine=qa.prototype.iter;var Rf=0;function Ym(rt){var lt=this;if(zf(lt),!(Pn(lt,rt)||mo(lt.display,rt))){ar(rt),Dt&&(Rf=+new Date);var pt=xa(lt,rt,!0),dt=rt.dataTransfer.files;if(!(!pt||lt.isReadOnly()))if(dt&&dt.length&&window.FileReader&&window.File)for(var yt=dt.length,Lt=Array(yt),Vt=0,ae=function(){++Vt==yt&&$s(lt,function(){pt=Ki(lt.doc,pt);var Si={from:pt,to:pt,text:lt.doc.splitLines(Lt.filter(function(xr){return xr!=null}).join(lt.doc.lineSeparator())),origin:"paste"};hh(lt.doc,Si),ql(lt.doc,kc(Ki(lt.doc,pt),Ki(lt.doc,jh(Si))))})()},oe=function(Si,xr){if(lt.options.allowDropFileTypes&&rn(lt.options.allowDropFileTypes,Si.type)==-1){ae();return}var Er=new FileReader;Er.onerror=function(){return ae()},Er.onload=function(){var Rr=Er.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Rr)){ae();return}Lt[xr]=Rr,ae()},Er.readAsText(Si)},Pe=0;Pe<dt.length;Pe++)oe(dt[Pe],Pe);else{if(lt.state.draggingText&<.doc.sel.contains(pt)>-1){lt.state.draggingText(rt),setTimeout(function(){return lt.display.input.focus()},20);return}try{var Bn=rt.dataTransfer.getData("Text");if(Bn){var Ue;if(lt.state.draggingText&&!lt.state.draggingText.copy&&(Ue=lt.listSelections()),yd(lt.doc,kc(pt,pt)),Ue)for(var Li=0;Li<Ue.length;++Li)$d(lt.doc,"",Ue[Li].anchor,Ue[Li].head,"drag");lt.replaceSelection(Bn,"around","paste"),lt.display.input.focus()}}catch(Si){}}}}function pv(rt,lt){if(Dt&&(!rt.state.draggingText||+new Date-Rf<100)){cr(lt);return}if(!(Pn(rt,lt)||mo(rt.display,lt))&&(lt.dataTransfer.setData("Text",rt.getSelection()),lt.dataTransfer.effectAllowed="copyMove",lt.dataTransfer.setDragImage&&!De)){var pt=He("img",null,null,"position: fixed; left: 0; top: 0;");pt.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Ut&&(pt.width=pt.height=1,rt.display.wrapper.appendChild(pt),pt._top=pt.offsetTop),lt.dataTransfer.setDragImage(pt,0,0),Ut&&pt.parentNode.removeChild(pt)}}function _0(rt,lt){var pt=xa(rt,lt);if(pt){var dt=document.createDocumentFragment();vo(rt,pt,dt),rt.display.dragCursor||(rt.display.dragCursor=He("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),rt.display.lineSpace.insertBefore(rt.display.dragCursor,rt.display.cursorDiv)),Ie(rt.display.dragCursor,dt)}}function zf(rt){rt.display.dragCursor&&(rt.display.lineSpace.removeChild(rt.display.dragCursor),rt.display.dragCursor=null)}function jf(rt){if(document.getElementsByClassName){for(var lt=document.getElementsByClassName("CodeMirror"),pt=[],dt=0;dt<lt.length;dt++){var yt=lt[dt].CodeMirror;yt&&pt.push(yt)}pt.length&&pt[0].operation(function(){for(var Lt=0;Lt<pt.length;Lt++)rt(pt[Lt])})}}var Qr=!1;function Cu(){Qr||(_h(),Qr=!0)}function _h(){var rt;Qn(window,"resize",function(){rt==null&&(rt=setTimeout(function(){rt=null,jf(Kf)},100))}),Qn(window,"blur",function(){return jf(Dl)})}function Kf(rt){var lt=rt.display;lt.cachedCharWidth=lt.cachedTextHeight=lt.cachedPaddingH=null,lt.scrollbarsClipped=!1,rt.setSize()}for(var uc={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"},Up=0;Up<10;Up++)uc[Up+48]=uc[Up+96]=String(Up);for(var W0=65;W0<=90;W0++)uc[W0]=String.fromCharCode(W0);for(var Zp=1;Zp<=12;Zp++)uc[Zp+111]=uc[Zp+63235]="F"+Zp;var sa={};sa.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"},sa.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"},sa.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"},sa.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"]},sa.default=It?sa.macDefault:sa.pcDefault;function Xm(rt){var lt=rt.split(/-(?!$)/);rt=lt[lt.length-1];for(var pt,dt,yt,Lt,Vt=0;Vt<lt.length-1;Vt++){var ae=lt[Vt];if(/^(cmd|meta|m)$/i.test(ae))Lt=!0;else if(/^a(lt)?$/i.test(ae))pt=!0;else if(/^(c|ctrl|control)$/i.test(ae))dt=!0;else if(/^s(hift)?$/i.test(ae))yt=!0;else throw new Error("Unrecognized modifier name: "+ae)}return pt&&(rt="Alt-"+rt),dt&&(rt="Ctrl-"+rt),Lt&&(rt="Cmd-"+rt),yt&&(rt="Shift-"+rt),rt}function Gp(rt){var lt={};for(var pt in rt)if(rt.hasOwnProperty(pt)){var dt=rt[pt];if(/^(name|fallthrough|(de|at)tach)$/.test(pt))continue;if(dt=="..."){delete rt[pt];continue}for(var yt=Ai(pt.split(" "),Xm),Lt=0;Lt<yt.length;Lt++){var Vt=void 0,ae=void 0;Lt==yt.length-1?(ae=yt.join(" "),Vt=dt):(ae=yt.slice(0,Lt+1).join(" "),Vt="...");var oe=lt[ae];if(!oe)lt[ae]=Vt;else if(oe!=Vt)throw new Error("Inconsistent bindings for "+ae)}delete rt[pt]}for(var Pe in lt)rt[Pe]=lt[Pe];return rt}function Mu(rt,lt,pt,dt){lt=Wl(lt);var yt=lt.call?lt.call(rt,dt):lt[rt];if(yt===!1)return"nothing";if(yt==="...")return"multi";if(yt!=null&&pt(yt))return"handled";if(lt.fallthrough){if(Object.prototype.toString.call(lt.fallthrough)!="[object Array]")return Mu(rt,lt.fallthrough,pt,dt);for(var Lt=0;Lt<lt.fallthrough.length;Lt++){var Vt=Mu(rt,lt.fallthrough[Lt],pt,dt);if(Vt)return Vt}}}function Wh(rt){var lt=typeof rt=="string"?rt:uc[rt.keyCode];return lt=="Ctrl"||lt=="Alt"||lt=="Shift"||lt=="Mod"}function Vh(rt,lt,pt){var dt=rt;return lt.altKey&&dt!="Alt"&&(rt="Alt-"+rt),(be?lt.metaKey:lt.ctrlKey)&&dt!="Ctrl"&&(rt="Ctrl-"+rt),(be?lt.ctrlKey:lt.metaKey)&&dt!="Mod"&&(rt="Cmd-"+rt),!pt&<.shiftKey&&dt!="Shift"&&(rt="Shift-"+rt),rt}function tf(rt,lt){if(Ut&&rt.keyCode==34&&rt.char)return!1;var pt=uc[rt.keyCode];return pt==null||rt.altGraphKey?!1:(rt.keyCode==3&&rt.code&&(pt=rt.code),Vh(pt,rt,lt))}function Wl(rt){return typeof rt=="string"?sa[rt]:rt}function kl(rt,lt){for(var pt=rt.doc.sel.ranges,dt=[],yt=0;yt<pt.length;yt++){for(var Lt=lt(pt[yt]);dt.length&&un(Lt.from,Jn(dt).to)<=0;){var Vt=dt.pop();if(un(Vt.from,Lt.from)<0){Lt.from=Vt.from;break}}dt.push(Lt)}Qo(rt,function(){for(var ae=dt.length-1;ae>=0;ae--)$d(rt.doc,"",dt[ae].from,dt[ae].to,"+delete");yl(rt)})}function tu(rt,lt,pt){var dt=We(rt.text,lt+pt,pt);return dt<0||dt>rt.text.length?null:dt}function wa(rt,lt,pt){var dt=tu(rt,lt.ch,pt);return dt==null?null:new Ge(lt.line,dt,pt<0?"after":"before")}function Uh(rt,lt,pt,dt,yt){if(rt){lt.doc.direction=="rtl"&&(yt=-yt);var Lt=bn(pt,lt.doc.direction);if(Lt){var Vt=yt<0?Jn(Lt):Lt[0],ae=yt<0==(Vt.level==1),oe=ae?"after":"before",Pe;if(Vt.level>0||lt.doc.direction=="rtl"){var Bn=es(lt,pt);Pe=yt<0?pt.text.length-1:0;var Ue=jo(lt,Bn,Pe).top;Pe=In(function(Li){return jo(lt,Bn,Li).top==Ue},yt<0==(Vt.level==1)?Vt.from:Vt.to-1,Pe),oe=="before"&&(Pe=tu(pt,Pe,1))}else Pe=yt<0?Vt.to:Vt.from;return new Ge(dt,Pe,oe)}}return new Ge(dt,yt<0?pt.text.length:0,yt<0?"before":"after")}function cc(rt,lt,pt,dt){var yt=bn(lt,rt.doc.direction);if(!yt)return wa(lt,pt,dt);pt.ch>=lt.text.length?(pt.ch=lt.text.length,pt.sticky="before"):pt.ch<=0&&(pt.ch=0,pt.sticky="after");var Lt=Yn(yt,pt.ch,pt.sticky),Vt=yt[Lt];if(rt.doc.direction=="ltr"&&Vt.level%2==0&&(dt>0?Vt.to>pt.ch:Vt.from<pt.ch))return wa(lt,pt,dt);var ae=function(io,To){return tu(lt,io instanceof Ge?io.ch:io,To)},oe,Pe=function(io){return rt.options.lineWrapping?(oe=oe||es(rt,lt),na(rt,lt,oe,io)):{begin:0,end:lt.text.length}},Bn=Pe(pt.sticky=="before"?ae(pt,-1):pt.ch);if(rt.doc.direction=="rtl"||Vt.level==1){var Ue=Vt.level==1==dt<0,Li=ae(pt,Ue?1:-1);if(Li!=null&&(Ue?Li<=Vt.to&&Li<=Bn.end:Li>=Vt.from&&Li>=Bn.begin)){var Si=Ue?"before":"after";return new Ge(pt.line,Li,Si)}}var xr=function(io,To,fo){for(var Ro=function(Aa,Al){return Al?new Ge(pt.line,ae(Aa,1),"before"):new Ge(pt.line,Aa,"after")};io>=0&&io<yt.length;io+=To){var $o=yt[io],go=To>0==($o.level!=1),As=go?fo.begin:ae(fo.end,-1);if($o.from<=As&&As<$o.to||(As=go?$o.from:ae($o.to,-1),fo.begin<=As&&As<fo.end))return Ro(As,go)}},Er=xr(Lt+dt,dt,Bn);if(Er)return Er;var Rr=dt>0?Bn.end:ae(Bn.begin,-1);return Rr!=null&&!(dt>0&&Rr==lt.text.length)&&(Er=xr(dt>0?0:yt.length-1,dt,Pe(Rr)),Er)?Er:null}var Zh={selectAll:sl,singleSelection:function(rt){return rt.setSelection(rt.getCursor("anchor"),rt.getCursor("head"),ze)},killLine:function(rt){return kl(rt,function(lt){if(lt.empty()){var pt=Oe(rt.doc,lt.head.line).text.length;return lt.head.ch==pt&<.head.line<rt.lastLine()?{from:lt.head,to:Ge(lt.head.line+1,0)}:{from:lt.head,to:Ge(lt.head.line,pt)}}else return{from:lt.from(),to:lt.to()}})},deleteLine:function(rt){return kl(rt,function(lt){return{from:Ge(lt.from().line,0),to:Ki(rt.doc,Ge(lt.to().line+1,0))}})},delLineLeft:function(rt){return kl(rt,function(lt){return{from:Ge(lt.from().line,0),to:lt.from()}})},delWrappedLineLeft:function(rt){return kl(rt,function(lt){var pt=rt.charCoords(lt.head,"div").top+5,dt=rt.coordsChar({left:0,top:pt},"div");return{from:dt,to:lt.from()}})},delWrappedLineRight:function(rt){return kl(rt,function(lt){var pt=rt.charCoords(lt.head,"div").top+5,dt=rt.coordsChar({left:rt.display.lineDiv.offsetWidth+100,top:pt},"div");return{from:lt.from(),to:dt}})},undo:function(rt){return rt.undo()},redo:function(rt){return rt.redo()},undoSelection:function(rt){return rt.undoSelection()},redoSelection:function(rt){return rt.redoSelection()},goDocStart:function(rt){return rt.extendSelection(Ge(rt.firstLine(),0))},goDocEnd:function(rt){return rt.extendSelection(Ge(rt.lastLine()))},goLineStart:function(rt){return rt.extendSelectionsBy(function(lt){return ef(rt,lt.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(rt){return rt.extendSelectionsBy(function(lt){return Jm(rt,lt.head)},{origin:"+move",bias:1})},goLineEnd:function(rt){return rt.extendSelectionsBy(function(lt){return wd(rt,lt.head.line)},{origin:"+move",bias:-1})},goLineRight:function(rt){return rt.extendSelectionsBy(function(lt){var pt=rt.cursorCoords(lt.head,"div").top+5;return rt.coordsChar({left:rt.display.lineDiv.offsetWidth+100,top:pt},"div")},On)},goLineLeft:function(rt){return rt.extendSelectionsBy(function(lt){var pt=rt.cursorCoords(lt.head,"div").top+5;return rt.coordsChar({left:0,top:pt},"div")},On)},goLineLeftSmart:function(rt){return rt.extendSelectionsBy(function(lt){var pt=rt.cursorCoords(lt.head,"div").top+5,dt=rt.coordsChar({left:0,top:pt},"div");return dt.ch<rt.getLine(dt.line).search(/\S/)?Jm(rt,lt.head):dt},On)},goLineUp:function(rt){return rt.moveV(-1,"line")},goLineDown:function(rt){return rt.moveV(1,"line")},goPageUp:function(rt){return rt.moveV(-1,"page")},goPageDown:function(rt){return rt.moveV(1,"page")},goCharLeft:function(rt){return rt.moveH(-1,"char")},goCharRight:function(rt){return rt.moveH(1,"char")},goColumnLeft:function(rt){return rt.moveH(-1,"column")},goColumnRight:function(rt){return rt.moveH(1,"column")},goWordLeft:function(rt){return rt.moveH(-1,"word")},goGroupRight:function(rt){return rt.moveH(1,"group")},goGroupLeft:function(rt){return rt.moveH(-1,"group")},goWordRight:function(rt){return rt.moveH(1,"word")},delCharBefore:function(rt){return rt.deleteH(-1,"codepoint")},delCharAfter:function(rt){return rt.deleteH(1,"char")},delWordBefore:function(rt){return rt.deleteH(-1,"word")},delWordAfter:function(rt){return rt.deleteH(1,"word")},delGroupBefore:function(rt){return rt.deleteH(-1,"group")},delGroupAfter:function(rt){return rt.deleteH(1,"group")},indentAuto:function(rt){return rt.indentSelection("smart")},indentMore:function(rt){return rt.indentSelection("add")},indentLess:function(rt){return rt.indentSelection("subtract")},insertTab:function(rt){return rt.replaceSelection(" ")},insertSoftTab:function(rt){for(var lt=[],pt=rt.listSelections(),dt=rt.options.tabSize,yt=0;yt<pt.length;yt++){var Lt=pt[yt].from(),Vt=Me(rt.getLine(Lt.line),Lt.ch,dt);lt.push(Dn(dt-Vt%dt))}rt.replaceSelections(lt)},defaultTab:function(rt){rt.somethingSelected()?rt.indentSelection("add"):rt.execCommand("insertTab")},transposeChars:function(rt){return Qo(rt,function(){for(var lt=rt.listSelections(),pt=[],dt=0;dt<lt.length;dt++)if(lt[dt].empty()){var yt=lt[dt].head,Lt=Oe(rt.doc,yt.line).text;if(Lt){if(yt.ch==Lt.length&&(yt=new Ge(yt.line,yt.ch-1)),yt.ch>0)yt=new Ge(yt.line,yt.ch+1),rt.replaceRange(Lt.charAt(yt.ch-1)+Lt.charAt(yt.ch-2),Ge(yt.line,yt.ch-2),yt,"+transpose");else if(yt.line>rt.doc.first){var Vt=Oe(rt.doc,yt.line-1).text;Vt&&(yt=new Ge(yt.line,1),rt.replaceRange(Lt.charAt(0)+rt.doc.lineSeparator()+Vt.charAt(Vt.length-1),Ge(yt.line-1,Vt.length-1),yt,"+transpose"))}}pt.push(new oa(yt,yt))}rt.setSelections(pt)})},newlineAndIndent:function(rt){return Qo(rt,function(){for(var lt=rt.listSelections(),pt=lt.length-1;pt>=0;pt--)rt.replaceRange(rt.doc.lineSeparator(),lt[pt].anchor,lt[pt].head,"+input");lt=rt.listSelections();for(var dt=0;dt<lt.length;dt++)rt.indentLine(lt[dt].from().line,null,!0);yl(rt)})},openLine:function(rt){return rt.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(rt){return rt.toggleOverwrite()}};function ef(rt,lt){var pt=Oe(rt.doc,lt),dt=Ee(pt);return dt!=pt&&(lt=_e(dt)),Uh(!0,rt,dt,lt,1)}function wd(rt,lt){var pt=Oe(rt.doc,lt),dt=Ae(pt);return dt!=pt&&(lt=_e(dt)),Uh(!0,rt,pt,lt,-1)}function Jm(rt,lt){var pt=ef(rt,lt.line),dt=Oe(rt.doc,pt.line),yt=bn(dt,rt.doc.direction);if(!yt||yt[0].level==0){var Lt=Math.max(pt.ch,dt.text.search(/\S/)),Vt=lt.line==pt.line&<.ch<=Lt&<.ch;return Ge(pt.line,Vt?0:Lt,pt.sticky)}return pt}function fl(rt,lt,pt){if(typeof lt=="string"&&(lt=Zh[lt],!lt))return!1;rt.display.input.ensurePolled();var dt=rt.display.shift,yt=!1;try{rt.isReadOnly()&&(rt.state.suppressEdits=!0),pt&&(rt.display.shift=!1),yt=lt(rt)!=vn}finally{rt.display.shift=dt,rt.state.suppressEdits=!1}return yt}function Lc(rt,lt,pt){for(var dt=0;dt<rt.state.keyMaps.length;dt++){var yt=Mu(lt,rt.state.keyMaps[dt],pt,rt);if(yt)return yt}return rt.options.extraKeys&&Mu(lt,rt.options.extraKeys,pt,rt)||Mu(lt,rt.options.keyMap,pt,rt)}var mh=new _t;function Sd(rt,lt,pt,dt){var yt=rt.state.keySeq;if(yt){if(Wh(lt))return"handled";if(/\'$/.test(lt)?rt.state.keySeq=null:mh.set(50,function(){rt.state.keySeq==yt&&(rt.state.keySeq=null,rt.display.input.reset())}),Hf(rt,yt+" "+lt,pt,dt))return!0}return Hf(rt,lt,pt,dt)}function Hf(rt,lt,pt,dt){var yt=Lc(rt,lt,dt);return yt=="multi"&&(rt.state.keySeq=lt),yt=="handled"&&Kn(rt,"keyHandled",rt,lt,pt),(yt=="handled"||yt=="multi")&&(ar(pt),no(rt)),!!yt}function Ws(rt,lt){var pt=tf(lt,!0);return pt?lt.shiftKey&&!rt.state.keySeq?Sd(rt,"Shift-"+pt,lt,function(dt){return fl(rt,dt,!0)})||Sd(rt,pt,lt,function(dt){if(typeof dt=="string"?/^go[A-Z]/.test(dt):dt.motion)return fl(rt,dt)}):Sd(rt,pt,lt,function(dt){return fl(rt,dt)}):!1}function Gh(rt,lt,pt){return Sd(rt,"'"+pt+"'",lt,function(dt){return fl(rt,dt,!0)})}var hc=null;function _f(rt){var lt=this;if(!(rt.target&&rt.target!=lt.display.input.getField())&&(lt.curOp.focus=nn(),!Pn(lt,rt))){Dt&&Ht<11&&rt.keyCode==27&&(rt.returnValue=!1);var pt=rt.keyCode;lt.display.shift=pt==16||rt.shiftKey;var dt=Ws(lt,rt);Ut&&(hc=dt?pt:null,!dt&&pt==88&&!Zi&&(It?rt.metaKey:rt.ctrlKey)&<.replaceSelection("",null,"cut")),ft&&!It&&!dt&&pt==46&&rt.shiftKey&&!rt.ctrlKey&&document.execCommand&&document.execCommand("cut"),pt==18&&!/\bCodeMirror-crosshair\b/.test(lt.display.lineDiv.className)&&Mr(lt)}}function Mr(rt){var lt=rt.display.lineDiv;Vn(lt,"CodeMirror-crosshair");function pt(dt){(dt.keyCode==18||!dt.altKey)&&(Qt(lt,"CodeMirror-crosshair"),Vi(document,"keyup",pt),Vi(document,"mouseover",pt))}Qn(document,"keyup",pt),Qn(document,"mouseover",pt)}function Qm(rt){rt.keyCode==16&&(this.doc.sel.shift=!1),Pn(this,rt)}function Uc(rt){var lt=this;if(!(rt.target&&rt.target!=lt.display.input.getField())&&!(mo(lt.display,rt)||Pn(lt,rt)||rt.ctrlKey&&!rt.altKey||It&&rt.metaKey)){var pt=rt.keyCode,dt=rt.charCode;if(Ut&&pt==hc){hc=null,ar(rt);return}if(!(Ut&&(!rt.which||rt.which<10)&&Ws(lt,rt))){var yt=String.fromCharCode(dt==null?pt:dt);yt!="\b"&&(Gh(lt,rt,yt)||lt.display.input.onKeyPress(rt))}}}var V0=400,$m=function(rt,lt,pt){this.time=rt,this.pos=lt,this.button=pt};$m.prototype.compare=function(rt,lt,pt){return this.time+V0>rt&&un(lt,this.pos)==0&&pt==this.button};var gh,nf;function qm(rt,lt){var pt=+new Date;return nf&&nf.compare(pt,rt,lt)?(gh=nf=null,"triple"):gh&&gh.compare(pt,rt,lt)?(nf=new $m(pt,rt,lt),gh=null,"double"):(gh=new $m(pt,rt,lt),nf=null,"single")}function Va(rt){var lt=this,pt=lt.display;if(!(Pn(lt,rt)||pt.activeTouch&&pt.input.supportsTouch())){if(pt.input.ensurePolled(),pt.shift=rt.shiftKey,mo(pt,rt)){Wt||(pt.scroller.draggable=!1,setTimeout(function(){return pt.scroller.draggable=!0},100));return}if(!eu(lt,rt)){var dt=xa(lt,rt),yt=ir(rt),Lt=dt?qm(dt,yt):"single";window.focus(),yt==1&<.state.selectingText&<.state.selectingText(rt),!(dt&&vh(lt,yt,dt,Lt,rt))&&(yt==1?dt?Yp(lt,dt,Lt,rt):Ar(rt)==pt.scroller&&ar(rt):yt==2?(dt&&Jd(lt.doc,dt),setTimeout(function(){return pt.input.focus()},20)):yt==3&&(Rt?lt.display.input.onContextMenu(rt):cs(lt)))}}}function vh(rt,lt,pt,dt,yt){var Lt="Click";return dt=="double"?Lt="Double"+Lt:dt=="triple"&&(Lt="Triple"+Lt),Lt=(lt==1?"Left":lt==2?"Middle":"Right")+Lt,Sd(rt,Vh(Lt,yt),yt,function(Vt){if(typeof Vt=="string"&&(Vt=Zh[Vt]),!Vt)return!1;var ae=!1;try{rt.isReadOnly()&&(rt.state.suppressEdits=!0),ae=Vt(rt,pt)!=vn}finally{rt.state.suppressEdits=!1}return ae})}function rf(rt,lt,pt){var dt=rt.getOption("configureMouse"),yt=dt?dt(rt,lt,pt):{};if(yt.unit==null){var Lt=ye?pt.shiftKey&&pt.metaKey:pt.altKey;yt.unit=Lt?"rectangle":lt=="single"?"char":lt=="double"?"word":"line"}return(yt.extend==null||rt.doc.extend)&&(yt.extend=rt.doc.extend||pt.shiftKey),yt.addNew==null&&(yt.addNew=It?pt.metaKey:pt.ctrlKey),yt.moveOnDrag==null&&(yt.moveOnDrag=!(It?pt.altKey:pt.ctrlKey)),yt}function Yp(rt,lt,pt,dt){Dt?setTimeout(zn(ho,rt),0):rt.curOp.focus=nn();var yt=rf(rt,pt,dt),Lt=rt.doc.sel,Vt;rt.options.dragDrop&&kr&&!rt.isReadOnly()&&pt=="single"&&(Vt=Lt.contains(lt))>-1&&(un((Vt=Lt.ranges[Vt]).from(),lt)<0||lt.xRel>0)&&(un(Vt.to(),lt)>0||lt.xRel<0)?tg(rt,dt,lt,yt):ng(rt,dt,lt,yt)}function tg(rt,lt,pt,dt){var yt=rt.display,Lt=!1,Vt=$s(rt,function(Pe){Wt&&(yt.scroller.draggable=!1),rt.state.draggingText=!1,Vi(yt.wrapper.ownerDocument,"mouseup",Vt),Vi(yt.wrapper.ownerDocument,"mousemove",ae),Vi(yt.scroller,"dragstart",oe),Vi(yt.scroller,"drop",Vt),Lt||(ar(Pe),dt.addNew||Jd(rt.doc,pt,null,null,dt.extend),Wt&&!De||Dt&&Ht==9?setTimeout(function(){yt.wrapper.ownerDocument.body.focus({preventScroll:!0}),yt.input.focus()},20):yt.input.focus())}),ae=function(Pe){Lt=Lt||Math.abs(lt.clientX-Pe.clientX)+Math.abs(lt.clientY-Pe.clientY)>=10},oe=function(){return Lt=!0};Wt&&(yt.scroller.draggable=!0),rt.state.draggingText=Vt,Vt.copy=!dt.moveOnDrag,yt.scroller.dragDrop&&yt.scroller.dragDrop(),Qn(yt.wrapper.ownerDocument,"mouseup",Vt),Qn(yt.wrapper.ownerDocument,"mousemove",ae),Qn(yt.scroller,"dragstart",oe),Qn(yt.scroller,"drop",Vt),cs(rt),setTimeout(function(){return yt.input.focus()},20)}function eg(rt,lt,pt){if(pt=="char")return new oa(lt,lt);if(pt=="word")return rt.findWordAt(lt);if(pt=="line")return new oa(Ge(lt.line,0),Ki(rt.doc,Ge(lt.line+1,0)));var dt=pt(rt,lt);return new oa(dt.from,dt.to)}function ng(rt,lt,pt,dt){var yt=rt.display,Lt=rt.doc;ar(lt);var Vt,ae,oe=Lt.sel,Pe=oe.ranges;if(dt.addNew&&!dt.extend?(ae=Lt.sel.contains(pt),ae>-1?Vt=Pe[ae]:Vt=new oa(pt,pt)):(Vt=Lt.sel.primary(),ae=Lt.sel.primIndex),dt.unit=="rectangle")dt.addNew||(Vt=new oa(pt,pt)),pt=xa(rt,lt,!0,!0),ae=-1;else{var Bn=eg(rt,pt,dt.unit);dt.extend?Vt=Kp(Vt,Bn.anchor,Bn.head,dt.extend):Vt=Bn}dt.addNew?ae==-1?(ae=Pe.length,xl(Lt,ac(rt,Pe.concat([Vt]),ae),{scroll:!1,origin:"*mouse"})):Pe.length>1&&Pe[ae].empty()&&dt.unit=="char"&&!dt.extend?(xl(Lt,ac(rt,Pe.slice(0,ae).concat(Pe.slice(ae+1)),0),{scroll:!1,origin:"*mouse"}),oe=Lt.sel):$l(Lt,ae,Vt,on):(ae=0,xl(Lt,new qu([Vt],0),on),oe=Lt.sel);var Ue=pt;function Li(fo){if(un(Ue,fo)!=0)if(Ue=fo,dt.unit=="rectangle"){for(var Ro=[],$o=rt.options.tabSize,go=Me(Oe(Lt,pt.line).text,pt.ch,$o),As=Me(Oe(Lt,fo.line).text,fo.ch,$o),Aa=Math.min(go,As),Al=Math.max(go,As),Za=Math.min(pt.line,fo.line),mu=Math.min(rt.lastLine(),Math.max(pt.line,fo.line));Za<=mu;Za++){var nu=Oe(Lt,Za).text,bl=Ni(nu,Aa,$o);Aa==Al?Ro.push(new oa(Ge(Za,bl),Ge(Za,bl))):nu.length>bl&&Ro.push(new oa(Ge(Za,bl),Ge(Za,Ni(nu,Al,$o))))}Ro.length||Ro.push(new oa(pt,pt)),xl(Lt,ac(rt,oe.ranges.slice(0,ae).concat(Ro),ae),{origin:"*mouse",scroll:!1}),rt.scrollIntoView(fo)}else{var _u=Vt,Cs=eg(rt,fo,dt.unit),al=_u.anchor,Us;un(Cs.anchor,al)>0?(Us=Cs.head,al=Xn(_u.from(),Cs.anchor)):(Us=Cs.anchor,al=ci(_u.to(),Cs.head));var tl=oe.ranges.slice(0);tl[ae]=ig(rt,new oa(Ki(Lt,al),Us)),xl(Lt,ac(rt,tl,ae),on)}}var Si=yt.wrapper.getBoundingClientRect(),xr=0;function Er(fo){var Ro=++xr,$o=xa(rt,fo,!0,dt.unit=="rectangle");if($o)if(un($o,Ue)!=0){rt.curOp.focus=nn(),Li($o);var go=Po(yt,Lt);($o.line>=go.to||$o.line<go.from)&&setTimeout($s(rt,function(){xr==Ro&&Er(fo)}),150)}else{var As=fo.clientY<Si.top?-20:fo.clientY>Si.bottom?20:0;As&&setTimeout($s(rt,function(){xr==Ro&&(yt.scroller.scrollTop+=As,Er(fo))}),50)}}function Rr(fo){rt.state.selectingText=!1,xr=1/0,fo&&(ar(fo),yt.input.focus()),Vi(yt.wrapper.ownerDocument,"mousemove",io),Vi(yt.wrapper.ownerDocument,"mouseup",To),Lt.history.lastSelOrigin=null}var io=$s(rt,function(fo){fo.buttons===0||!ir(fo)?Rr(fo):Er(fo)}),To=$s(rt,Rr);rt.state.selectingText=To,Qn(yt.wrapper.ownerDocument,"mousemove",io),Qn(yt.wrapper.ownerDocument,"mouseup",To)}function ig(rt,lt){var pt=lt.anchor,dt=lt.head,yt=Oe(rt.doc,pt.line);if(un(pt,dt)==0&&pt.sticky==dt.sticky)return lt;var Lt=bn(yt);if(!Lt)return lt;var Vt=Yn(Lt,pt.ch,pt.sticky),ae=Lt[Vt];if(ae.from!=pt.ch&&ae.to!=pt.ch)return lt;var oe=Vt+(ae.from==pt.ch==(ae.level!=1)?0:1);if(oe==0||oe==Lt.length)return lt;var Pe;if(dt.line!=pt.line)Pe=(dt.line-pt.line)*(rt.doc.direction=="ltr"?1:-1)>0;else{var Bn=Yn(Lt,dt.ch,dt.sticky),Ue=Bn-Vt||(dt.ch-pt.ch)*(ae.level==1?-1:1);Bn==oe-1||Bn==oe?Pe=Ue<0:Pe=Ue>0}var Li=Lt[oe+(Pe?-1:0)],Si=Pe==(Li.level==1),xr=Si?Li.from:Li.to,Er=Si?"after":"before";return pt.ch==xr&&pt.sticky==Er?lt:new oa(new Ge(pt.line,xr,Er),dt)}function of(rt,lt,pt,dt){var yt,Lt;if(lt.touches)yt=lt.touches[0].clientX,Lt=lt.touches[0].clientY;else try{yt=lt.clientX,Lt=lt.clientY}catch(Li){return!1}if(yt>=Math.floor(rt.display.gutters.getBoundingClientRect().right))return!1;dt&&ar(lt);var Vt=rt.display,ae=Vt.lineDiv.getBoundingClientRect();if(Lt>ae.bottom||!yi(rt,pt))return wr(lt);Lt-=ae.top-Vt.viewOffset;for(var oe=0;oe<rt.display.gutterSpecs.length;++oe){var Pe=Vt.gutters.childNodes[oe];if(Pe&&Pe.getBoundingClientRect().right>=yt){var Bn=ri(rt.doc,Lt),Ue=rt.display.gutterSpecs[oe];return Qe(rt,pt,rt,Bn,Ue.className,lt),wr(lt)}}}function eu(rt,lt){return of(rt,lt,"gutterClick",!0)}function yh(rt,lt){mo(rt.display,lt)||rg(rt,lt)||Pn(rt,lt,"contextmenu")||Rt||rt.display.input.onContextMenu(lt)}function rg(rt,lt){return yi(rt,"gutterContextMenu")?of(rt,lt,"gutterContextMenu",!1):!1}function Xp(rt){rt.display.wrapper.className=rt.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+rt.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Vo(rt)}var xh={toString:function(){return"CodeMirror.Init"}},og={},Jp={};function mv(rt){var lt=rt.optionHandlers;function pt(dt,yt,Lt,Vt){rt.defaults[dt]=yt,Lt&&(lt[dt]=Vt?function(ae,oe,Pe){Pe!=xh&&Lt(ae,oe,Pe)}:Lt)}rt.defineOption=pt,rt.Init=xh,pt("value","",function(dt,yt){return dt.setValue(yt)},!0),pt("mode",null,function(dt,yt){dt.doc.modeOption=yt,ks(dt)},!0),pt("indentUnit",2,ks,!0),pt("indentWithTabs",!1),pt("smartIndent",!0),pt("tabSize",4,function(dt){Ud(dt),Vo(dt),zo(dt)},!0),pt("lineSeparator",null,function(dt,yt){if(dt.doc.lineSep=yt,!!yt){var Lt=[],Vt=dt.doc.first;dt.doc.iter(function(oe){for(var Pe=0;;){var Bn=oe.text.indexOf(yt,Pe);if(Bn==-1)break;Pe=Bn+yt.length,Lt.push(Ge(Vt,Bn))}Vt++});for(var ae=Lt.length-1;ae>=0;ae--)$d(dt.doc,yt,Lt[ae],Ge(Lt[ae].line,Lt[ae].ch+yt.length))}}),pt("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(dt,yt,Lt){dt.state.specialChars=new RegExp(yt.source+(yt.test(" ")?"":"| "),"g"),Lt!=xh&&dt.refresh()}),pt("specialCharPlaceholder",ve,function(dt){return dt.refresh()},!0),pt("electricChars",!0),pt("inputStyle",he?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),pt("spellcheck",!1,function(dt,yt){return dt.getInputField().spellcheck=yt},!0),pt("autocorrect",!1,function(dt,yt){return dt.getInputField().autocorrect=yt},!0),pt("autocapitalize",!1,function(dt,yt){return dt.getInputField().autocapitalize=yt},!0),pt("rtlMoveVisually",!Ze),pt("wholeLineUpdateBefore",!0),pt("theme","default",function(dt){Xp(dt),Ku(dt)},!0),pt("keyMap","default",function(dt,yt,Lt){var Vt=Wl(yt),ae=Lt!=xh&&Wl(Lt);ae&&ae.detach&&ae.detach(dt,Vt),Vt.attach&&Vt.attach(dt,ae||null)}),pt("extraKeys",null),pt("configureMouse",null),pt("lineWrapping",!1,sg,!0),pt("gutters",[],function(dt,yt){dt.display.gutterSpecs=Ml(yt,dt.options.lineNumbers),Ku(dt)},!0),pt("fixedGutter",!0,function(dt,yt){dt.display.gutters.style.left=yt?vl(dt.display)+"px":"0",dt.refresh()},!0),pt("coverGutterNextToScrollbar",!1,function(dt){return ju(dt)},!0),pt("scrollbarStyle","native",function(dt){Df(dt),ju(dt),dt.display.scrollbars.setScrollTop(dt.doc.scrollTop),dt.display.scrollbars.setScrollLeft(dt.doc.scrollLeft)},!0),pt("lineNumbers",!1,function(dt,yt){dt.display.gutterSpecs=Ml(dt.options.gutters,yt),Ku(dt)},!0),pt("firstLineNumber",1,Ku,!0),pt("lineNumberFormatter",function(dt){return dt},Ku,!0),pt("showCursorWhenSelecting",!1,ha,!0),pt("resetSelectionOnContextMenu",!0),pt("lineWiseCopyCut",!0),pt("pasteLinesPerSelection",!0),pt("selectionsMayTouch",!1),pt("readOnly",!1,function(dt,yt){yt=="nocursor"&&(Dl(dt),dt.display.input.blur()),dt.display.input.readOnlyChanged(yt)}),pt("screenReaderLabel",null,function(dt,yt){yt=yt===""?null:yt,dt.display.input.screenReaderLabelChanged(yt)}),pt("disableInput",!1,function(dt,yt){yt||dt.display.input.reset()},!0),pt("dragDrop",!0,U0),pt("allowDropFileTypes",null),pt("cursorBlinkRate",530),pt("cursorScrollMargin",0),pt("cursorHeight",1,ha,!0),pt("singleCursorHeightPerLine",!0,ha,!0),pt("workTime",100),pt("workDelay",100),pt("flattenSpans",!0,Ud,!0),pt("addModeClass",!1,Ud,!0),pt("pollInterval",100),pt("undoDepth",200,function(dt,yt){return dt.doc.history.undoDepth=yt}),pt("historyEventDelay",1250),pt("viewportMargin",10,function(dt){return dt.refresh()},!0),pt("maxHighlightLength",1e4,Ud,!0),pt("moveInputWithCursor",!0,function(dt,yt){yt||dt.display.input.resetPosition()}),pt("tabindex",null,function(dt,yt){return dt.display.input.getField().tabIndex=yt||""}),pt("autofocus",null),pt("direction","ltr",function(dt,yt){return dt.doc.setDirection(yt)},!0),pt("phrases",null)}function U0(rt,lt,pt){var dt=pt&&pt!=xh;if(!lt!=!dt){var yt=rt.display.dragFunctions,Lt=lt?Qn:Vi;Lt(rt.display.scroller,"dragstart",yt.start),Lt(rt.display.scroller,"dragenter",yt.enter),Lt(rt.display.scroller,"dragover",yt.over),Lt(rt.display.scroller,"dragleave",yt.leave),Lt(rt.display.scroller,"drop",yt.drop)}}function sg(rt){rt.options.lineWrapping?(Vn(rt.display.wrapper,"CodeMirror-wrap"),rt.display.sizer.style.minWidth="",rt.display.sizerWidth=null):(Qt(rt.display.wrapper,"CodeMirror-wrap"),Wn(rt)),co(rt),zo(rt),Vo(rt),setTimeout(function(){return ju(rt)},100)}function ts(rt,lt){var pt=this;if(!(this instanceof ts))return new ts(rt,lt);this.options=lt=lt?Gn(lt):{},Gn(og,lt,!1);var dt=lt.value;typeof dt=="string"?dt=new qa(dt,lt.mode,null,lt.lineSeparator,lt.direction):lt.mode&&(dt.modeOption=lt.mode),this.doc=dt;var yt=new ts.inputStyles[lt.inputStyle](this),Lt=this.display=new zh(rt,dt,yt,lt);Lt.wrapper.CodeMirror=this,Xp(this),lt.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Df(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 _t,keySeq:null,specialChars:null},lt.autofocus&&!he&&Lt.input.focus(),Dt&&Ht<11&&setTimeout(function(){return pt.display.input.reset(!0)},20),Wf(this),Cu(),_c(this),this.curOp.forceUpdate=!0,Zd(this,dt),lt.autofocus&&!he||this.hasFocus()?setTimeout(function(){pt.hasFocus()&&!pt.state.focused&&Zo(pt)},20):Dl(this);for(var Vt in Jp)Jp.hasOwnProperty(Vt)&&Jp[Vt](this,lt[Vt],xh);$a(this),lt.finishInit&<.finishInit(this);for(var ae=0;ae<sf.length;++ae)sf[ae](this);Ec(this),Wt&<.lineWrapping&&getComputedStyle(Lt.lineDiv).textRendering=="optimizelegibility"&&(Lt.lineDiv.style.textRendering="auto")}ts.defaults=og,ts.optionHandlers=Jp;function Wf(rt){var lt=rt.display;Qn(lt.scroller,"mousedown",$s(rt,Va)),Dt&&Ht<11?Qn(lt.scroller,"dblclick",$s(rt,function(oe){if(!Pn(rt,oe)){var Pe=xa(rt,oe);if(!(!Pe||eu(rt,oe)||mo(rt.display,oe))){ar(oe);var Bn=rt.findWordAt(Pe);Jd(rt.doc,Bn.anchor,Bn.head)}}})):Qn(lt.scroller,"dblclick",function(oe){return Pn(rt,oe)||ar(oe)}),Qn(lt.scroller,"contextmenu",function(oe){return yh(rt,oe)}),Qn(lt.input.getField(),"contextmenu",function(oe){lt.scroller.contains(oe.target)||yh(rt,oe)});var pt,dt={end:0};function yt(){lt.activeTouch&&(pt=setTimeout(function(){return lt.activeTouch=null},1e3),dt=lt.activeTouch,dt.end=+new Date)}function Lt(oe){if(oe.touches.length!=1)return!1;var Pe=oe.touches[0];return Pe.radiusX<=1&&Pe.radiusY<=1}function Vt(oe,Pe){if(Pe.left==null)return!0;var Bn=Pe.left-oe.left,Ue=Pe.top-oe.top;return Bn*Bn+Ue*Ue>20*20}Qn(lt.scroller,"touchstart",function(oe){if(!Pn(rt,oe)&&!Lt(oe)&&!eu(rt,oe)){lt.input.ensurePolled(),clearTimeout(pt);var Pe=+new Date;lt.activeTouch={start:Pe,moved:!1,prev:Pe-dt.end<=300?dt:null},oe.touches.length==1&&(lt.activeTouch.left=oe.touches[0].pageX,lt.activeTouch.top=oe.touches[0].pageY)}}),Qn(lt.scroller,"touchmove",function(){lt.activeTouch&&(lt.activeTouch.moved=!0)}),Qn(lt.scroller,"touchend",function(oe){var Pe=lt.activeTouch;if(Pe&&!mo(lt,oe)&&Pe.left!=null&&!Pe.moved&&new Date-Pe.start<300){var Bn=rt.coordsChar(lt.activeTouch,"page"),Ue;!Pe.prev||Vt(Pe,Pe.prev)?Ue=new oa(Bn,Bn):!Pe.prev.prev||Vt(Pe,Pe.prev.prev)?Ue=rt.findWordAt(Bn):Ue=new oa(Ge(Bn.line,0),Ki(rt.doc,Ge(Bn.line+1,0))),rt.setSelection(Ue.anchor,Ue.head),rt.focus(),ar(oe)}yt()}),Qn(lt.scroller,"touchcancel",yt),Qn(lt.scroller,"scroll",function(){lt.scroller.clientHeight&&(Vs(rt,lt.scroller.scrollTop),_a(rt,lt.scroller.scrollLeft,!0),Qe(rt,"scroll",rt))}),Qn(lt.scroller,"mousewheel",function(oe){return El(rt,oe)}),Qn(lt.scroller,"DOMMouseScroll",function(oe){return El(rt,oe)}),Qn(lt.wrapper,"scroll",function(){return lt.wrapper.scrollTop=lt.wrapper.scrollLeft=0}),lt.dragFunctions={enter:function(oe){Pn(rt,oe)||cr(oe)},over:function(oe){Pn(rt,oe)||(_0(rt,oe),cr(oe))},start:function(oe){return pv(rt,oe)},drop:$s(rt,Ym),leave:function(oe){Pn(rt,oe)||zf(rt)}};var ae=lt.input.getField();Qn(ae,"keyup",function(oe){return Qm.call(rt,oe)}),Qn(ae,"keydown",$s(rt,_f)),Qn(ae,"keypress",$s(rt,Uc)),Qn(ae,"focus",function(oe){return Zo(rt,oe)}),Qn(ae,"blur",function(oe){return Dl(rt,oe)})}var sf=[];ts.defineInitHook=function(rt){return sf.push(rt)};function Ua(rt,lt,pt,dt){var yt=rt.doc,Lt;pt==null&&(pt="add"),pt=="smart"&&(yt.mode.indent?Lt=Do(rt,lt).state:pt="prev");var Vt=rt.options.tabSize,ae=Oe(yt,lt),oe=Me(ae.text,null,Vt);ae.stateAfter&&(ae.stateAfter=null);var Pe=ae.text.match(/^\s*/)[0],Bn;if(!dt&&!/\S/.test(ae.text))Bn=0,pt="not";else if(pt=="smart"&&(Bn=yt.mode.indent(Lt,ae.text.slice(Pe.length),ae.text),Bn==vn||Bn>150)){if(!dt)return;pt="prev"}pt=="prev"?lt>yt.first?Bn=Me(Oe(yt,lt-1).text,null,Vt):Bn=0:pt=="add"?Bn=oe+rt.options.indentUnit:pt=="subtract"?Bn=oe-rt.options.indentUnit:typeof pt=="number"&&(Bn=oe+pt),Bn=Math.max(0,Bn);var Ue="",Li=0;if(rt.options.indentWithTabs)for(var Si=Math.floor(Bn/Vt);Si;--Si)Li+=Vt,Ue+=" ";if(Li<Bn&&(Ue+=Dn(Bn-Li)),Ue!=Pe)return $d(yt,Ue,Ge(lt,0),Ge(lt,Pe.length),"+input"),ae.stateAfter=null,!0;for(var xr=0;xr<yt.sel.ranges.length;xr++){var Er=yt.sel.ranges[xr];if(Er.head.line==lt&&Er.head.ch<Pe.length){var Rr=Ge(lt,Pe.length);$l(yt,xr,new oa(Rr,Rr));break}}}var Eu=null;function Zc(rt){Eu=rt}function Qp(rt,lt,pt,dt,yt){var Lt=rt.doc;rt.display.shift=!1,dt||(dt=Lt.sel);var Vt=+new Date-200,ae=yt=="paste"||rt.state.pasteIncoming>Vt,oe=Mn(lt),Pe=null;if(ae&&dt.ranges.length>1)if(Eu&&Eu.text.join(`
|
|
|
`)==lt){if(dt.ranges.length%Eu.text.length==0){Pe=[];for(var Bn=0;Bn<Eu.text.length;Bn++)Pe.push(Lt.splitLines(Eu.text[Bn]))}}else oe.length==dt.ranges.length&&rt.options.pasteLinesPerSelection&&(Pe=Ai(oe,function(io){return[io]}));for(var Ue=rt.curOp.updateInput,Li=dt.ranges.length-1;Li>=0;Li--){var Si=dt.ranges[Li],xr=Si.from(),Er=Si.to();Si.empty()&&(pt&&pt>0?xr=Ge(xr.line,xr.ch-pt):rt.state.overwrite&&!ae?Er=Ge(Er.line,Math.min(Oe(Lt,Er.line).text.length,Er.ch+Jn(oe).length)):ae&&Eu&&Eu.lineWise&&Eu.text.join(`
|
|
|
`)==oe.join(`
|
|
|
`)&&(xr=Er=Ge(xr.line,0)));var Rr={from:xr,to:Er,text:Pe?Pe[Li%Pe.length]:oe,origin:yt||(ae?"paste":rt.state.cutIncoming>Vt?"cut":"+input")};hh(rt.doc,Rr),Kn(rt,"inputRead",rt,Rr)}lt&&!ae&&G0(rt,lt),yl(rt),rt.curOp.updateInput<2&&(rt.curOp.updateInput=Ue),rt.curOp.typing=!0,rt.state.pasteIncoming=rt.state.cutIncoming=-1}function Z0(rt,lt){var pt=rt.clipboardData&&rt.clipboardData.getData("Text");if(pt)return rt.preventDefault(),!lt.isReadOnly()&&!lt.options.disableInput&&Qo(lt,function(){return Qp(lt,pt,0,null,"paste")}),!0}function G0(rt,lt){if(!(!rt.options.electricChars||!rt.options.smartIndent))for(var pt=rt.doc.sel,dt=pt.ranges.length-1;dt>=0;dt--){var yt=pt.ranges[dt];if(!(yt.head.ch>100||dt&&pt.ranges[dt-1].head.line==yt.head.line)){var Lt=rt.getModeAt(yt.head),Vt=!1;if(Lt.electricChars){for(var ae=0;ae<Lt.electricChars.length;ae++)if(lt.indexOf(Lt.electricChars.charAt(ae))>-1){Vt=Ua(rt,yt.head.line,"smart");break}}else Lt.electricInput&&Lt.electricInput.test(Oe(rt.doc,yt.head.line).text.slice(0,yt.head.ch))&&(Vt=Ua(rt,yt.head.line,"smart"));Vt&&Kn(rt,"electricInput",rt,yt.head.line)}}}function af(rt){for(var lt=[],pt=[],dt=0;dt<rt.doc.sel.ranges.length;dt++){var yt=rt.doc.sel.ranges[dt].head.line,Lt={anchor:Ge(yt,0),head:Ge(yt+1,0)};pt.push(Lt),lt.push(rt.getRange(Lt.anchor,Lt.head))}return{text:lt,ranges:pt}}function ag(rt,lt,pt,dt){rt.setAttribute("autocorrect",pt?"":"off"),rt.setAttribute("autocapitalize",dt?"":"off"),rt.setAttribute("spellcheck",!!lt)}function Y0(){var rt=He("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),lt=He("div",[rt],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Wt?rt.style.width="1000px":rt.setAttribute("wrap","off"),we&&(rt.style.border="1px solid black"),ag(rt),lt}function bh(rt){var lt=rt.optionHandlers,pt=rt.helpers={};rt.prototype={constructor:rt,focus:function(){window.focus(),this.display.input.focus()},setOption:function(dt,yt){var Lt=this.options,Vt=Lt[dt];Lt[dt]==yt&&dt!="mode"||(Lt[dt]=yt,lt.hasOwnProperty(dt)&&$s(this,lt[dt])(this,yt,Vt),Qe(this,"optionChange",this,dt))},getOption:function(dt){return this.options[dt]},getDoc:function(){return this.doc},addKeyMap:function(dt,yt){this.state.keyMaps[yt?"push":"unshift"](Wl(dt))},removeKeyMap:function(dt){for(var yt=this.state.keyMaps,Lt=0;Lt<yt.length;++Lt)if(yt[Lt]==dt||yt[Lt].name==dt)return yt.splice(Lt,1),!0},addOverlay:Zs(function(dt,yt){var Lt=dt.token?dt:rt.getMode(this.options,dt);if(Lt.startState)throw new Error("Overlays may not be stateful.");hi(this.state.overlays,{mode:Lt,modeSpec:dt,opaque:yt&&yt.opaque,priority:yt&&yt.priority||0},function(Vt){return Vt.priority}),this.state.modeGen++,zo(this)}),removeOverlay:Zs(function(dt){for(var yt=this.state.overlays,Lt=0;Lt<yt.length;++Lt){var Vt=yt[Lt].modeSpec;if(Vt==dt||typeof dt=="string"&&Vt.name==dt){yt.splice(Lt,1),this.state.modeGen++,zo(this);return}}}),indentLine:Zs(function(dt,yt,Lt){typeof yt!="string"&&typeof yt!="number"&&(yt==null?yt=this.options.smartIndent?"smart":"prev":yt=yt?"add":"subtract"),Ri(this.doc,dt)&&Ua(this,dt,yt,Lt)}),indentSelection:Zs(function(dt){for(var yt=this.doc.sel.ranges,Lt=-1,Vt=0;Vt<yt.length;Vt++){var ae=yt[Vt];if(ae.empty())ae.head.line>Lt&&(Ua(this,ae.head.line,dt,!0),Lt=ae.head.line,Vt==this.doc.sel.primIndex&&yl(this));else{var oe=ae.from(),Pe=ae.to(),Bn=Math.max(Lt,oe.line);Lt=Math.min(this.lastLine(),Pe.line-(Pe.ch?0:1))+1;for(var Ue=Bn;Ue<Lt;++Ue)Ua(this,Ue,dt);var Li=this.doc.sel.ranges;oe.ch==0&&yt.length==Li.length&&Li[Vt].from().ch>0&&$l(this.doc,Vt,new oa(oe,Li[Vt].to()),ze)}}}),getTokenAt:function(dt,yt){return wo(this,dt,yt)},getLineTokens:function(dt,yt){return wo(this,Ge(dt),yt,!0)},getTokenTypeAt:function(dt){dt=Ki(this.doc,dt);var yt=qr(this,Oe(this.doc,dt.line)),Lt=0,Vt=(yt.length-1)/2,ae=dt.ch,oe;if(ae==0)oe=yt[2];else for(;;){var Pe=Lt+Vt>>1;if((Pe?yt[Pe*2-1]:0)>=ae)Vt=Pe;else if(yt[Pe*2+1]<ae)Lt=Pe+1;else{oe=yt[Pe*2+2];break}}var Bn=oe?oe.indexOf("overlay "):-1;return Bn<0?oe:Bn==0?null:oe.slice(0,Bn-1)},getModeAt:function(dt){var yt=this.doc.mode;return yt.innerMode?rt.innerMode(yt,this.getTokenAt(dt).state).mode:yt},getHelper:function(dt,yt){return this.getHelpers(dt,yt)[0]},getHelpers:function(dt,yt){var Lt=[];if(!pt.hasOwnProperty(yt))return Lt;var Vt=pt[yt],ae=this.getModeAt(dt);if(typeof ae[yt]=="string")Vt[ae[yt]]&&Lt.push(Vt[ae[yt]]);else if(ae[yt])for(var oe=0;oe<ae[yt].length;oe++){var Pe=Vt[ae[yt][oe]];Pe&&Lt.push(Pe)}else ae.helperType&&Vt[ae.helperType]?Lt.push(Vt[ae.helperType]):Vt[ae.name]&&Lt.push(Vt[ae.name]);for(var Bn=0;Bn<Vt._global.length;Bn++){var Ue=Vt._global[Bn];Ue.pred(ae,this)&&rn(Lt,Ue.val)==-1&&Lt.push(Ue.val)}return Lt},getStateAfter:function(dt,yt){var Lt=this.doc;return dt=qn(Lt,dt==null?Lt.first+Lt.size-1:dt),Do(this,dt+1,yt).state},cursorCoords:function(dt,yt){var Lt,Vt=this.doc.sel.primary();return dt==null?Lt=Vt.head:typeof dt=="object"?Lt=Ki(this.doc,dt):Lt=dt?Vt.from():Vt.to(),ss(this,Lt,yt||"page")},charCoords:function(dt,yt){return ua(this,Ki(this.doc,dt),yt||"page")},coordsChar:function(dt,yt){return dt=Hs(this,dt,yt||"page"),ya(this,dt.left,dt.top)},lineAtHeight:function(dt,yt){return dt=Hs(this,{top:dt,left:0},yt||"page").top,ri(this.doc,dt+this.display.viewOffset)},heightAtLine:function(dt,yt,Lt){var Vt=!1,ae;if(typeof dt=="number"){var oe=this.doc.first+this.doc.size-1;dt<this.doc.first?dt=this.doc.first:dt>oe&&(dt=oe,Vt=!0),ae=Oe(this.doc,dt)}else ae=dt;return vs(this,ae,{top:0,left:0},yt||"page",Lt||Vt).top+(Vt?this.doc.height-pi(ae):0)},defaultTextHeight:function(){return Qs(this.display)},defaultCharWidth:function(){return Na(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(dt,yt,Lt,Vt,ae){var oe=this.display;dt=ss(this,Ki(this.doc,dt));var Pe=dt.bottom,Bn=dt.left;if(yt.style.position="absolute",yt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(yt),oe.sizer.appendChild(yt),Vt=="over")Pe=dt.top;else if(Vt=="above"||Vt=="near"){var Ue=Math.max(oe.wrapper.clientHeight,this.doc.height),Li=Math.max(oe.sizer.clientWidth,oe.lineSpace.clientWidth);(Vt=="above"||dt.bottom+yt.offsetHeight>Ue)&&dt.top>yt.offsetHeight?Pe=dt.top-yt.offsetHeight:dt.bottom+yt.offsetHeight<=Ue&&(Pe=dt.bottom),Bn+yt.offsetWidth>Li&&(Bn=Li-yt.offsetWidth)}yt.style.top=Pe+"px",yt.style.left=yt.style.right="",ae=="right"?(Bn=oe.sizer.clientWidth-yt.offsetWidth,yt.style.right="0px"):(ae=="left"?Bn=0:ae=="middle"&&(Bn=(oe.sizer.clientWidth-yt.offsetWidth)/2),yt.style.left=Bn+"px"),Lt&&Mc(this,{left:Bn,top:Pe,right:Bn+yt.offsetWidth,bottom:Pe+yt.offsetHeight})},triggerOnKeyDown:Zs(_f),triggerOnKeyPress:Zs(Uc),triggerOnKeyUp:Qm,triggerOnMouseDown:Zs(Va),execCommand:function(dt){if(Zh.hasOwnProperty(dt))return Zh[dt].call(null,this)},triggerElectric:Zs(function(dt){G0(this,dt)}),findPosH:function(dt,yt,Lt,Vt){var ae=1;yt<0&&(ae=-1,yt=-yt);for(var oe=Ki(this.doc,dt),Pe=0;Pe<yt&&(oe=Vf(this.doc,oe,ae,Lt,Vt),!oe.hitSide);++Pe);return oe},moveH:Zs(function(dt,yt){var Lt=this;this.extendSelectionsBy(function(Vt){return Lt.display.shift||Lt.doc.extend||Vt.empty()?Vf(Lt.doc,Vt.head,dt,yt,Lt.options.rtlMoveVisually):dt<0?Vt.from():Vt.to()},On)}),deleteH:Zs(function(dt,yt){var Lt=this.doc.sel,Vt=this.doc;Lt.somethingSelected()?Vt.replaceSelection("",null,"+delete"):kl(this,function(ae){var oe=Vf(Vt,ae.head,dt,yt,!1);return dt<0?{from:oe,to:ae.head}:{from:ae.head,to:oe}})}),findPosV:function(dt,yt,Lt,Vt){var ae=1,oe=Vt;yt<0&&(ae=-1,yt=-yt);for(var Pe=Ki(this.doc,dt),Bn=0;Bn<yt;++Bn){var Ue=ss(this,Pe,"div");if(oe==null?oe=Ue.left:Ue.left=oe,Pe=Cd(this,Ue,ae,Lt),Pe.hitSide)break}return Pe},moveV:Zs(function(dt,yt){var Lt=this,Vt=this.doc,ae=[],oe=!this.display.shift&&!Vt.extend&&Vt.sel.somethingSelected();if(Vt.extendSelectionsBy(function(Bn){if(oe)return dt<0?Bn.from():Bn.to();var Ue=ss(Lt,Bn.head,"div");Bn.goalColumn!=null&&(Ue.left=Bn.goalColumn),ae.push(Ue.left);var Li=Cd(Lt,Ue,dt,yt);return yt=="page"&&Bn==Vt.sel.primary()&&Ru(Lt,ua(Lt,Li,"div").top-Ue.top),Li},On),ae.length)for(var Pe=0;Pe<Vt.sel.ranges.length;Pe++)Vt.sel.ranges[Pe].goalColumn=ae[Pe]}),findWordAt:function(dt){var yt=this.doc,Lt=Oe(yt,dt.line).text,Vt=dt.ch,ae=dt.ch;if(Lt){var oe=this.getHelper(dt,"wordChars");(dt.sticky=="before"||ae==Lt.length)&&Vt?--Vt:++ae;for(var Pe=Lt.charAt(Vt),Bn=At(Pe,oe)?function(Ue){return At(Ue,oe)}:/\s/.test(Pe)?function(Ue){return/\s/.test(Ue)}:function(Ue){return!/\s/.test(Ue)&&!At(Ue)};Vt>0&&Bn(Lt.charAt(Vt-1));)--Vt;for(;ae<Lt.length&&Bn(Lt.charAt(ae));)++ae}return new oa(Ge(dt.line,Vt),Ge(dt.line,ae))},toggleOverwrite:function(dt){dt!=null&&dt==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Vn(this.display.cursorDiv,"CodeMirror-overwrite"):Qt(this.display.cursorDiv,"CodeMirror-overwrite"),Qe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==nn()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Zs(function(dt,yt){sc(this,dt,yt)}),getScrollInfo:function(){var dt=this.display.scroller;return{left:dt.scrollLeft,top:dt.scrollTop,height:dt.scrollHeight-so(this)-this.display.barHeight,width:dt.scrollWidth-so(this)-this.display.barWidth,clientHeight:Oo(this),clientWidth:Zr(this)}},scrollIntoView:Zs(function(dt,yt){dt==null?(dt={from:this.doc.sel.primary().head,to:null},yt==null&&(yt=this.options.cursorScrollMargin)):typeof dt=="number"?dt={from:Ge(dt,0),to:null}:dt.from==null&&(dt={from:dt,to:null}),dt.to||(dt.to=dt.from),dt.margin=yt||0,dt.from.line!=null?ws(this,dt):ka(this,dt.from,dt.to,dt.margin)}),setSize:Zs(function(dt,yt){var Lt=this,Vt=function(oe){return typeof oe=="number"||/^\d+$/.test(String(oe))?oe+"px":oe};dt!=null&&(this.display.wrapper.style.width=Vt(dt)),yt!=null&&(this.display.wrapper.style.height=Vt(yt)),this.options.lineWrapping&&xs(this);var ae=this.display.viewFrom;this.doc.iter(ae,this.display.viewTo,function(oe){if(oe.widgets){for(var Pe=0;Pe<oe.widgets.length;Pe++)if(oe.widgets[Pe].noHScroll){Fo(Lt,ae,"widget");break}}++ae}),this.curOp.forceUpdate=!0,Qe(this,"refresh",this)}),operation:function(dt){return Qo(this,dt)},startOperation:function(){return _c(this)},endOperation:function(){return Ec(this)},refresh:Zs(function(){var dt=this.display.cachedTextHeight;zo(this),this.curOp.forceUpdate=!0,Vo(this),sc(this,this.doc.scrollLeft,this.doc.scrollTop),Fh(this.display),(dt==null||Math.abs(dt-Qs(this.display))>.5||this.options.lineWrapping)&&co(this),Qe(this,"refresh",this)}),swapDoc:Zs(function(dt){var yt=this.doc;return yt.cm=null,this.state.selectingText&&this.state.selectingText(),Zd(this,dt),Vo(this),this.display.input.reset(),sc(this,dt.scrollLeft,dt.scrollTop),this.curOp.forceScroll=!0,Kn(this,"swapDoc",this,yt),yt}),phrase:function(dt){var yt=this.options.phrases;return yt&&Object.prototype.hasOwnProperty.call(yt,dt)?yt[dt]:dt},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}},Oi(rt),rt.registerHelper=function(dt,yt,Lt){pt.hasOwnProperty(dt)||(pt[dt]=rt[dt]={_global:[]}),pt[dt][yt]=Lt},rt.registerGlobalHelper=function(dt,yt,Lt,Vt){rt.registerHelper(dt,yt,Vt),pt[dt]._global.push({pred:Lt,val:Vt})}}function Vf(rt,lt,pt,dt,yt){var Lt=lt,Vt=pt,ae=Oe(rt,lt.line),oe=yt&&rt.direction=="rtl"?-pt:pt;function Pe(){var To=lt.line+oe;return To<rt.first||To>=rt.first+rt.size?!1:(lt=new Ge(To,lt.ch,lt.sticky),ae=Oe(rt,To))}function Bn(To){var fo;if(dt=="codepoint"){var Ro=ae.text.charCodeAt(lt.ch+(dt>0?0:-1));isNaN(Ro)?fo=null:fo=new Ge(lt.line,Math.max(0,Math.min(ae.text.length,lt.ch+pt*(Ro>=55296&&Ro<56320?2:1))),-pt)}else yt?fo=cc(rt.cm,ae,lt,pt):fo=wa(ae,lt,pt);if(fo==null)if(!To&&Pe())lt=Uh(yt,rt.cm,ae,lt.line,oe);else return!1;else lt=fo;return!0}if(dt=="char"||dt=="codepoint")Bn();else if(dt=="column")Bn(!0);else if(dt=="word"||dt=="group")for(var Ue=null,Li=dt=="group",Si=rt.cm&&rt.cm.getHelper(lt,"wordChars"),xr=!0;!(pt<0&&!Bn(!xr));xr=!1){var Er=ae.text.charAt(lt.ch)||`
|
|
|
`,Rr=At(Er,Si)?"w":Li&&Er==`
|
|
|
`?"n":!Li||/\s/.test(Er)?null:"p";if(Li&&!xr&&!Rr&&(Rr="s"),Ue&&Ue!=Rr){pt<0&&(pt=1,Bn(),lt.sticky="after");break}if(Rr&&(Ue=Rr),pt>0&&!Bn(!xr))break}var io=_p(rt,lt,Lt,Vt,!0);return xi(Lt,io)&&(io.hitSide=!0),io}function Cd(rt,lt,pt,dt){var yt=rt.doc,Lt=lt.left,Vt;if(dt=="page"){var ae=Math.min(rt.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),oe=Math.max(ae-.5*Qs(rt.display),3);Vt=(pt>0?lt.bottom:lt.top)+pt*oe}else dt=="line"&&(Vt=pt>0?lt.bottom+3:lt.top-3);for(var Pe;Pe=ya(rt,Lt,Vt),!!Pe.outside;){if(pt<0?Vt<=0:Vt>=yt.height){Pe.hitSide=!0;break}Vt+=pt*5}return Pe}var fa=function(rt){this.cm=rt,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new _t,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};fa.prototype.init=function(rt){var lt=this,pt=this,dt=pt.cm,yt=pt.div=rt.lineDiv;ag(yt,dt.options.spellcheck,dt.options.autocorrect,dt.options.autocapitalize);function Lt(ae){for(var oe=ae.target;oe;oe=oe.parentNode){if(oe==yt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(oe.className))break}return!1}Qn(yt,"paste",function(ae){!Lt(ae)||Pn(dt,ae)||Z0(ae,dt)||Ht<=11&&setTimeout($s(dt,function(){return lt.updateFromDOM()}),20)}),Qn(yt,"compositionstart",function(ae){lt.composing={data:ae.data,done:!1}}),Qn(yt,"compositionupdate",function(ae){lt.composing||(lt.composing={data:ae.data,done:!1})}),Qn(yt,"compositionend",function(ae){lt.composing&&(ae.data!=lt.composing.data&<.readFromDOMSoon(),lt.composing.done=!0)}),Qn(yt,"touchstart",function(){return pt.forceCompositionEnd()}),Qn(yt,"input",function(){lt.composing||lt.readFromDOMSoon()});function Vt(ae){if(!(!Lt(ae)||Pn(dt,ae))){if(dt.somethingSelected())Zc({lineWise:!1,text:dt.getSelections()}),ae.type=="cut"&&dt.replaceSelection("",null,"cut");else if(dt.options.lineWiseCopyCut){var oe=af(dt);Zc({lineWise:!0,text:oe.text}),ae.type=="cut"&&dt.operation(function(){dt.setSelections(oe.ranges,0,ze),dt.replaceSelection("",null,"cut")})}else return;if(ae.clipboardData){ae.clipboardData.clearData();var Pe=Eu.text.join(`
|
|
|
`);if(ae.clipboardData.setData("Text",Pe),ae.clipboardData.getData("Text")==Pe){ae.preventDefault();return}}var Bn=Y0(),Ue=Bn.firstChild;dt.display.lineSpace.insertBefore(Bn,dt.display.lineSpace.firstChild),Ue.value=Eu.text.join(`
|
|
|
`);var Li=document.activeElement;Ye(Ue),setTimeout(function(){dt.display.lineSpace.removeChild(Bn),Li.focus(),Li==yt&&pt.showPrimarySelection()},50)}}Qn(yt,"copy",Vt),Qn(yt,"cut",Vt)},fa.prototype.screenReaderLabelChanged=function(rt){rt?this.div.setAttribute("aria-label",rt):this.div.removeAttribute("aria-label")},fa.prototype.prepareSelection=function(){var rt=Tl(this.cm,!1);return rt.focus=document.activeElement==this.div,rt},fa.prototype.showSelection=function(rt,lt){!rt||!this.cm.display.view.length||((rt.focus||lt)&&this.showPrimarySelection(),this.showMultipleSelections(rt))},fa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},fa.prototype.showPrimarySelection=function(){var rt=this.getSelection(),lt=this.cm,pt=lt.doc.sel.primary(),dt=pt.from(),yt=pt.to();if(lt.display.viewTo==lt.display.viewFrom||dt.line>=lt.display.viewTo||yt.line<lt.display.viewFrom){rt.removeAllRanges();return}var Lt=$p(lt,rt.anchorNode,rt.anchorOffset),Vt=$p(lt,rt.focusNode,rt.focusOffset);if(!(Lt&&!Lt.bad&&Vt&&!Vt.bad&&un(Xn(Lt,Vt),dt)==0&&un(ci(Lt,Vt),yt)==0)){var ae=lt.display.view,oe=dt.line>=lt.display.viewFrom&&X0(lt,dt)||{node:ae[0].measure.map[2],offset:0},Pe=yt.line<lt.display.viewTo&&X0(lt,yt);if(!Pe){var Bn=ae[ae.length-1].measure,Ue=Bn.maps?Bn.maps[Bn.maps.length-1]:Bn.map;Pe={node:Ue[Ue.length-1],offset:Ue[Ue.length-2]-Ue[Ue.length-3]}}if(!oe||!Pe){rt.removeAllRanges();return}var Li=rt.rangeCount&&rt.getRangeAt(0),Si;try{Si=ie(oe.node,oe.offset,Pe.offset,Pe.node)}catch(xr){}Si&&(!ft&<.state.focused?(rt.collapse(oe.node,oe.offset),Si.collapsed||(rt.removeAllRanges(),rt.addRange(Si))):(rt.removeAllRanges(),rt.addRange(Si)),Li&&rt.anchorNode==null?rt.addRange(Li):ft&&this.startGracePeriod()),this.rememberSelection()}},fa.prototype.startGracePeriod=function(){var rt=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){rt.gracePeriod=!1,rt.selectionChanged()&&rt.cm.operation(function(){return rt.cm.curOp.selectionChanged=!0})},20)},fa.prototype.showMultipleSelections=function(rt){Ie(this.cm.display.cursorDiv,rt.cursors),Ie(this.cm.display.selectionDiv,rt.selection)},fa.prototype.rememberSelection=function(){var rt=this.getSelection();this.lastAnchorNode=rt.anchorNode,this.lastAnchorOffset=rt.anchorOffset,this.lastFocusNode=rt.focusNode,this.lastFocusOffset=rt.focusOffset},fa.prototype.selectionInEditor=function(){var rt=this.getSelection();if(!rt.rangeCount)return!1;var lt=rt.getRangeAt(0).commonAncestorContainer;return an(this.div,lt)},fa.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},fa.prototype.blur=function(){this.div.blur()},fa.prototype.getField=function(){return this.div},fa.prototype.supportsTouch=function(){return!0},fa.prototype.receivedFocus=function(){var rt=this;this.selectionInEditor()?this.pollSelection():Qo(this.cm,function(){return rt.cm.curOp.selectionChanged=!0});function lt(){rt.cm.state.focused&&(rt.pollSelection(),rt.polling.set(rt.cm.options.pollInterval,lt))}this.polling.set(this.cm.options.pollInterval,lt)},fa.prototype.selectionChanged=function(){var rt=this.getSelection();return rt.anchorNode!=this.lastAnchorNode||rt.anchorOffset!=this.lastAnchorOffset||rt.focusNode!=this.lastFocusNode||rt.focusOffset!=this.lastFocusOffset},fa.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var rt=this.getSelection(),lt=this.cm;if(ue&&Nt&&this.cm.display.gutterSpecs.length&&lg(rt.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var pt=$p(lt,rt.anchorNode,rt.anchorOffset),dt=$p(lt,rt.focusNode,rt.focusOffset);pt&&dt&&Qo(lt,function(){xl(lt.doc,kc(pt,dt),ze),(pt.bad||dt.bad)&&(lt.curOp.selectionChanged=!0)})}}},fa.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var rt=this.cm,lt=rt.display,pt=rt.doc.sel.primary(),dt=pt.from(),yt=pt.to();if(dt.ch==0&&dt.line>rt.firstLine()&&(dt=Ge(dt.line-1,Oe(rt.doc,dt.line-1).length)),yt.ch==Oe(rt.doc,yt.line).text.length&&yt.line<rt.lastLine()&&(yt=Ge(yt.line+1,0)),dt.line<lt.viewFrom||yt.line>lt.viewTo-1)return!1;var Lt,Vt,ae;dt.line==lt.viewFrom||(Lt=ps(rt,dt.line))==0?(Vt=_e(lt.view[0].line),ae=lt.view[0].node):(Vt=_e(lt.view[Lt].line),ae=lt.view[Lt-1].node.nextSibling);var oe=ps(rt,yt.line),Pe,Bn;if(oe==lt.view.length-1?(Pe=lt.viewTo-1,Bn=lt.lineDiv.lastChild):(Pe=_e(lt.view[oe+1].line)-1,Bn=lt.view[oe+1].node.previousSibling),!ae)return!1;for(var Ue=rt.doc.splitLines(Zf(rt,ae,Bn,Vt,Pe)),Li=pn(rt.doc,Ge(Vt,0),Ge(Pe,Oe(rt.doc,Pe).text.length));Ue.length>1&&Li.length>1;)if(Jn(Ue)==Jn(Li))Ue.pop(),Li.pop(),Pe--;else if(Ue[0]==Li[0])Ue.shift(),Li.shift(),Vt++;else break;for(var Si=0,xr=0,Er=Ue[0],Rr=Li[0],io=Math.min(Er.length,Rr.length);Si<io&&Er.charCodeAt(Si)==Rr.charCodeAt(Si);)++Si;for(var To=Jn(Ue),fo=Jn(Li),Ro=Math.min(To.length-(Ue.length==1?Si:0),fo.length-(Li.length==1?Si:0));xr<Ro&&To.charCodeAt(To.length-xr-1)==fo.charCodeAt(fo.length-xr-1);)++xr;if(Ue.length==1&&Li.length==1&&Vt==dt.line)for(;Si&&Si>dt.ch&&To.charCodeAt(To.length-xr-1)==fo.charCodeAt(fo.length-xr-1);)Si--,xr++;Ue[Ue.length-1]=To.slice(0,To.length-xr).replace(/^\u200b+/,""),Ue[0]=Ue[0].slice(Si).replace(/\u200b+$/,"");var $o=Ge(Vt,Si),go=Ge(Pe,Li.length?Jn(Li).length-xr:0);if(Ue.length>1||Ue[0]||un($o,go))return $d(rt.doc,Ue,$o,go,"+input"),!0},fa.prototype.ensurePolled=function(){this.forceCompositionEnd()},fa.prototype.reset=function(){this.forceCompositionEnd()},fa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},fa.prototype.readFromDOMSoon=function(){var rt=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(rt.readDOMTimeout=null,rt.composing)if(rt.composing.done)rt.composing=null;else return;rt.updateFromDOM()},80))},fa.prototype.updateFromDOM=function(){var rt=this;(this.cm.isReadOnly()||!this.pollContent())&&Qo(this.cm,function(){return zo(rt.cm)})},fa.prototype.setUneditable=function(rt){rt.contentEditable="false"},fa.prototype.onKeyPress=function(rt){rt.charCode==0||this.composing||(rt.preventDefault(),this.cm.isReadOnly()||$s(this.cm,Qp)(this.cm,String.fromCharCode(rt.charCode==null?rt.keyCode:rt.charCode),0))},fa.prototype.readOnlyChanged=function(rt){this.div.contentEditable=String(rt!="nocursor")},fa.prototype.onContextMenu=function(){},fa.prototype.resetPosition=function(){},fa.prototype.needsContentAttribute=!0;function X0(rt,lt){var pt=ds(rt,lt.line);if(!pt||pt.hidden)return null;var dt=Oe(rt.doc,lt.line),yt=Ls(pt,dt,lt.line),Lt=bn(dt,rt.doc.direction),Vt="left";if(Lt){var ae=Yn(Lt,lt.ch);Vt=ae%2?"right":"left"}var oe=Yo(yt.map,lt.ch,Vt);return oe.offset=oe.collapse=="right"?oe.end:oe.start,oe}function lg(rt){for(var lt=rt;lt;lt=lt.parentNode)if(/CodeMirror-gutter-wrapper/.test(lt.className))return!0;return!1}function Uf(rt,lt){return lt&&(rt.bad=!0),rt}function Zf(rt,lt,pt,dt,yt){var Lt="",Vt=!1,ae=rt.doc.lineSeparator(),oe=!1;function Pe(Si){return function(xr){return xr.id==Si}}function Bn(){Vt&&(Lt+=ae,oe&&(Lt+=ae),Vt=oe=!1)}function Ue(Si){Si&&(Bn(),Lt+=Si)}function Li(Si){if(Si.nodeType==1){var xr=Si.getAttribute("cm-text");if(xr){Ue(xr);return}var Er=Si.getAttribute("cm-marker"),Rr;if(Er){var io=rt.findMarks(Ge(dt,0),Ge(yt+1,0),Pe(+Er));io.length&&(Rr=io[0].find(0))&&Ue(pn(rt.doc,Rr.from,Rr.to).join(ae));return}if(Si.getAttribute("contenteditable")=="false")return;var To=/^(pre|div|p|li|table|br)$/i.test(Si.nodeName);if(!/^br$/i.test(Si.nodeName)&&Si.textContent.length==0)return;To&&Bn();for(var fo=0;fo<Si.childNodes.length;fo++)Li(Si.childNodes[fo]);/^(pre|p)$/i.test(Si.nodeName)&&(oe=!0),To&&(Vt=!0)}else Si.nodeType==3&&Ue(Si.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Li(lt),lt!=pt;)lt=lt.nextSibling,oe=!1;return Lt}function $p(rt,lt,pt){var dt;if(lt==rt.display.lineDiv){if(dt=rt.display.lineDiv.childNodes[pt],!dt)return Uf(rt.clipPos(Ge(rt.display.viewTo-1)),!0);lt=null,pt=0}else for(dt=lt;;dt=dt.parentNode){if(!dt||dt==rt.display.lineDiv)return null;if(dt.parentNode&&dt.parentNode==rt.display.lineDiv)break}for(var yt=0;yt<rt.display.view.length;yt++){var Lt=rt.display.view[yt];if(Lt.node==dt)return gv(Lt,lt,pt)}}function gv(rt,lt,pt){var dt=rt.text.firstChild,yt=!1;if(!lt||!an(dt,lt))return Uf(Ge(_e(rt.line),0),!0);if(lt==dt&&(yt=!0,lt=dt.childNodes[pt],pt=0,!lt)){var Lt=rt.rest?Jn(rt.rest):rt.line;return Uf(Ge(_e(Lt),Lt.text.length),yt)}var Vt=lt.nodeType==3?lt:null,ae=lt;for(!Vt&<.childNodes.length==1&<.firstChild.nodeType==3&&(Vt=lt.firstChild,pt&&(pt=Vt.nodeValue.length));ae.parentNode!=dt;)ae=ae.parentNode;var oe=rt.measure,Pe=oe.maps;function Bn(Rr,io,To){for(var fo=-1;fo<(Pe?Pe.length:0);fo++)for(var Ro=fo<0?oe.map:Pe[fo],$o=0;$o<Ro.length;$o+=3){var go=Ro[$o+2];if(go==Rr||go==io){var As=_e(fo<0?rt.line:rt.rest[fo]),Aa=Ro[$o]+To;return(To<0||go!=Rr)&&(Aa=Ro[$o+(To?1:0)]),Ge(As,Aa)}}}var Ue=Bn(Vt,ae,pt);if(Ue)return Uf(Ue,yt);for(var Li=ae.nextSibling,Si=Vt?Vt.nodeValue.length-pt:0;Li;Li=Li.nextSibling){if(Ue=Bn(Li,Li.firstChild,0),Ue)return Uf(Ge(Ue.line,Ue.ch-Si),yt);Si+=Li.textContent.length}for(var xr=ae.previousSibling,Er=pt;xr;xr=xr.previousSibling){if(Ue=Bn(xr,xr.firstChild,-1),Ue)return Uf(Ge(Ue.line,Ue.ch+Er),yt);Er+=xr.textContent.length}}var Ba=function(rt){this.cm=rt,this.prevInput="",this.pollingFast=!1,this.polling=new _t,this.hasSelection=!1,this.composing=null};Ba.prototype.init=function(rt){var lt=this,pt=this,dt=this.cm;this.createField(rt);var yt=this.textarea;rt.wrapper.insertBefore(this.wrapper,rt.wrapper.firstChild),we&&(yt.style.width="0px"),Qn(yt,"input",function(){Dt&&Ht>=9&<.hasSelection&&(lt.hasSelection=null),pt.poll()}),Qn(yt,"paste",function(Vt){Pn(dt,Vt)||Z0(Vt,dt)||(dt.state.pasteIncoming=+new Date,pt.fastPoll())});function Lt(Vt){if(!Pn(dt,Vt)){if(dt.somethingSelected())Zc({lineWise:!1,text:dt.getSelections()});else if(dt.options.lineWiseCopyCut){var ae=af(dt);Zc({lineWise:!0,text:ae.text}),Vt.type=="cut"?dt.setSelections(ae.ranges,null,ze):(pt.prevInput="",yt.value=ae.text.join(`
|
|
|
`),Ye(yt))}else return;Vt.type=="cut"&&(dt.state.cutIncoming=+new Date)}}Qn(yt,"cut",Lt),Qn(yt,"copy",Lt),Qn(rt.scroller,"paste",function(Vt){if(!(mo(rt,Vt)||Pn(dt,Vt))){if(!yt.dispatchEvent){dt.state.pasteIncoming=+new Date,pt.focus();return}var ae=new Event("paste");ae.clipboardData=Vt.clipboardData,yt.dispatchEvent(ae)}}),Qn(rt.lineSpace,"selectstart",function(Vt){mo(rt,Vt)||ar(Vt)}),Qn(yt,"compositionstart",function(){var Vt=dt.getCursor("from");pt.composing&&pt.composing.range.clear(),pt.composing={start:Vt,range:dt.markText(Vt,dt.getCursor("to"),{className:"CodeMirror-composing"})}}),Qn(yt,"compositionend",function(){pt.composing&&(pt.poll(),pt.composing.range.clear(),pt.composing=null)})},Ba.prototype.createField=function(rt){this.wrapper=Y0(),this.textarea=this.wrapper.firstChild},Ba.prototype.screenReaderLabelChanged=function(rt){rt?this.textarea.setAttribute("aria-label",rt):this.textarea.removeAttribute("aria-label")},Ba.prototype.prepareSelection=function(){var rt=this.cm,lt=rt.display,pt=rt.doc,dt=Tl(rt);if(rt.options.moveInputWithCursor){var yt=ss(rt,pt.sel.primary().head,"div"),Lt=lt.wrapper.getBoundingClientRect(),Vt=lt.lineDiv.getBoundingClientRect();dt.teTop=Math.max(0,Math.min(lt.wrapper.clientHeight-10,yt.top+Vt.top-Lt.top)),dt.teLeft=Math.max(0,Math.min(lt.wrapper.clientWidth-10,yt.left+Vt.left-Lt.left))}return dt},Ba.prototype.showSelection=function(rt){var lt=this.cm,pt=lt.display;Ie(pt.cursorDiv,rt.cursors),Ie(pt.selectionDiv,rt.selection),rt.teTop!=null&&(this.wrapper.style.top=rt.teTop+"px",this.wrapper.style.left=rt.teLeft+"px")},Ba.prototype.reset=function(rt){if(!(this.contextMenuPending||this.composing)){var lt=this.cm;if(lt.somethingSelected()){this.prevInput="";var pt=lt.getSelection();this.textarea.value=pt,lt.state.focused&&Ye(this.textarea),Dt&&Ht>=9&&(this.hasSelection=pt)}else rt||(this.prevInput=this.textarea.value="",Dt&&Ht>=9&&(this.hasSelection=null))}},Ba.prototype.getField=function(){return this.textarea},Ba.prototype.supportsTouch=function(){return!1},Ba.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!he||nn()!=this.textarea))try{this.textarea.focus()}catch(rt){}},Ba.prototype.blur=function(){this.textarea.blur()},Ba.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ba.prototype.receivedFocus=function(){this.slowPoll()},Ba.prototype.slowPoll=function(){var rt=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){rt.poll(),rt.cm.state.focused&&rt.slowPoll()})},Ba.prototype.fastPoll=function(){var rt=!1,lt=this;lt.pollingFast=!0;function pt(){var dt=lt.poll();!dt&&!rt?(rt=!0,lt.polling.set(60,pt)):(lt.pollingFast=!1,lt.slowPoll())}lt.polling.set(20,pt)},Ba.prototype.poll=function(){var rt=this,lt=this.cm,pt=this.textarea,dt=this.prevInput;if(this.contextMenuPending||!lt.state.focused||St(pt)&&!dt&&!this.composing||lt.isReadOnly()||lt.options.disableInput||lt.state.keySeq)return!1;var yt=pt.value;if(yt==dt&&!lt.somethingSelected())return!1;if(Dt&&Ht>=9&&this.hasSelection===yt||It&&/[\uf700-\uf7ff]/.test(yt))return lt.display.input.reset(),!1;if(lt.doc.sel==lt.display.selForContextMenu){var Lt=yt.charCodeAt(0);if(Lt==8203&&!dt&&(dt="\u200B"),Lt==8666)return this.reset(),this.cm.execCommand("undo")}for(var Vt=0,ae=Math.min(dt.length,yt.length);Vt<ae&&dt.charCodeAt(Vt)==yt.charCodeAt(Vt);)++Vt;return Qo(lt,function(){Qp(lt,yt.slice(Vt),dt.length-Vt,null,rt.composing?"*compose":null),yt.length>1e3||yt.indexOf(`
|
|
|
`)>-1?pt.value=rt.prevInput="":rt.prevInput=yt,rt.composing&&(rt.composing.range.clear(),rt.composing.range=lt.markText(rt.composing.start,lt.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ba.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ba.prototype.onKeyPress=function(){Dt&&Ht>=9&&(this.hasSelection=null),this.fastPoll()},Ba.prototype.onContextMenu=function(rt){var lt=this,pt=lt.cm,dt=pt.display,yt=lt.textarea;lt.contextMenuPending&<.contextMenuPending();var Lt=xa(pt,rt),Vt=dt.scroller.scrollTop;if(!Lt||Ut)return;var ae=pt.options.resetSelectionOnContextMenu;ae&&pt.doc.sel.contains(Lt)==-1&&$s(pt,xl)(pt.doc,kc(Lt),ze);var oe=yt.style.cssText,Pe=lt.wrapper.style.cssText,Bn=lt.wrapper.offsetParent.getBoundingClientRect();lt.wrapper.style.cssText="position: static",yt.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(rt.clientY-Bn.top-5)+"px; left: "+(rt.clientX-Bn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(Dt?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ue;Wt&&(Ue=window.scrollY),dt.input.focus(),Wt&&window.scrollTo(null,Ue),dt.input.reset(),pt.somethingSelected()||(yt.value=lt.prevInput=" "),lt.contextMenuPending=Si,dt.selForContextMenu=pt.doc.sel,clearTimeout(dt.detectingSelectAll);function Li(){if(yt.selectionStart!=null){var Er=pt.somethingSelected(),Rr="\u200B"+(Er?yt.value:"");yt.value="\u21DA",yt.value=Rr,lt.prevInput=Er?"":"\u200B",yt.selectionStart=1,yt.selectionEnd=Rr.length,dt.selForContextMenu=pt.doc.sel}}function Si(){if(lt.contextMenuPending==Si&&(lt.contextMenuPending=!1,lt.wrapper.style.cssText=Pe,yt.style.cssText=oe,Dt&&Ht<9&&dt.scrollbars.setScrollTop(dt.scroller.scrollTop=Vt),yt.selectionStart!=null)){(!Dt||Dt&&Ht<9)&&Li();var Er=0,Rr=function(){dt.selForContextMenu==pt.doc.sel&&yt.selectionStart==0&&yt.selectionEnd>0&<.prevInput=="\u200B"?$s(pt,sl)(pt):Er++<10?dt.detectingSelectAll=setTimeout(Rr,500):(dt.selForContextMenu=null,dt.input.reset())};dt.detectingSelectAll=setTimeout(Rr,200)}}if(Dt&&Ht>=9&&Li(),Rt){cr(rt);var xr=function(){Vi(window,"mouseup",xr),setTimeout(Si,20)};Qn(window,"mouseup",xr)}else setTimeout(Si,50)},Ba.prototype.readOnlyChanged=function(rt){rt||this.reset(),this.textarea.disabled=rt=="nocursor",this.textarea.readOnly=!!rt},Ba.prototype.setUneditable=function(){},Ba.prototype.needsContentAttribute=!1;function Md(rt,lt){if(lt=lt?Gn(lt):{},lt.value=rt.value,!lt.tabindex&&rt.tabIndex&&(lt.tabindex=rt.tabIndex),!lt.placeholder&&rt.placeholder&&(lt.placeholder=rt.placeholder),lt.autofocus==null){var pt=nn();lt.autofocus=pt==rt||rt.getAttribute("autofocus")!=null&&pt==document.body}function dt(){rt.value=ae.getValue()}var yt;if(rt.form&&(Qn(rt.form,"submit",dt),!lt.leaveSubmitMethodAlone)){var Lt=rt.form;yt=Lt.submit;try{var Vt=Lt.submit=function(){dt(),Lt.submit=yt,Lt.submit(),Lt.submit=Vt}}catch(oe){}}lt.finishInit=function(oe){oe.save=dt,oe.getTextArea=function(){return rt},oe.toTextArea=function(){oe.toTextArea=isNaN,dt(),rt.parentNode.removeChild(oe.getWrapperElement()),rt.style.display="",rt.form&&(Vi(rt.form,"submit",dt),!lt.leaveSubmitMethodAlone&&typeof rt.form.submit=="function"&&(rt.form.submit=yt))}},rt.style.display="none";var ae=ts(function(oe){return rt.parentNode.insertBefore(oe,rt.nextSibling)},lt);return ae}function Gc(rt){rt.off=Vi,rt.on=Qn,rt.wheelEventPixels=Su,rt.Doc=qa,rt.splitLines=Mn,rt.countColumn=Me,rt.findColumn=Ni,rt.isWordChar=Pt,rt.Pass=vn,rt.signal=Qe,rt.Line=Bi,rt.changeEnd=jh,rt.scrollbarModel=Wd,rt.Pos=Ge,rt.cmpPos=un,rt.modes=fr,rt.mimeModes=pr,rt.resolveMode=mn,rt.getMode=Tn,rt.modeExtensions=Nn,rt.extendMode=ge,rt.copyState=Cn,rt.startState=Te,rt.innerMode=ai,rt.commands=Zh,rt.keyMap=sa,rt.keyName=tf,rt.isModifierKey=Wh,rt.lookupKey=Mu,rt.normalizeKeyMap=Gp,rt.StringStream=ce,rt.SharedTextMarker=Ts,rt.TextMarker=dn,rt.LineWidget=fh,rt.e_preventDefault=ar,rt.e_stopPropagation=br,rt.e_stop=cr,rt.addClass=Vn,rt.contains=an,rt.rmClass=Qt,rt.keyNames=uc}mv(ts),bh(ts);var pu="iter insert remove copy getEditor constructor".split(" ");for(var dc in qa.prototype)qa.prototype.hasOwnProperty(dc)&&rn(pu,dc)<0&&(ts.prototype[dc]=function(rt){return function(){return rt.apply(this.doc,arguments)}}(qa.prototype[dc]));return Oi(qa),ts.inputStyles={textarea:Ba,contenteditable:fa},ts.defineMode=function(rt){!ts.defaults.mode&&rt!="null"&&(ts.defaults.mode=rt),tr.apply(this,arguments)},ts.defineMIME=Xe,ts.defineMode("null",function(){return{token:function(rt){return rt.skipToEnd()}}}),ts.defineMIME("text/plain","null"),ts.defineExtension=function(rt,lt){ts.prototype[rt]=lt},ts.defineDocExtension=function(rt,lt){qa.prototype[rt]=lt},ts.fromTextArea=Md,Gc(ts),ts.version="5.58.2",ts})},49047:function(jn,tn,mt){(function(ft){ft(mt(4631),mt(29589),mt(52539))})(function(ft){"use strict";ft.defineMode("markdown",function(Ft,$t){var ne=ft.getMode(Ft,"text/html"),Dt=ne.name=="null";function Ht(Me){if(ft.findModeByName){var _t=ft.findModeByName(Me);_t&&(Me=_t.mime||_t.mimes[0])}var rn=ft.getMode(Ft,Me);return rn.name=="null"?null:rn}$t.highlightFormatting===void 0&&($t.highlightFormatting=!1),$t.maxBlockquoteDepth===void 0&&($t.maxBlockquoteDepth=0),$t.taskLists===void 0&&($t.taskLists=!1),$t.strikethrough===void 0&&($t.strikethrough=!1),$t.emoji===void 0&&($t.emoji=!1),$t.fencedCodeBlockHighlighting===void 0&&($t.fencedCodeBlockHighlighting=!0),$t.fencedCodeBlockDefaultMode===void 0&&($t.fencedCodeBlockDefaultMode="text/plain"),$t.xml===void 0&&($t.xml=!0),$t.tokenTypeOverrides===void 0&&($t.tokenTypeOverrides={});var Wt={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 Wt)Wt.hasOwnProperty(jt)&&$t.tokenTypeOverrides[jt]&&(Wt[jt]=$t.tokenTypeOverrides[jt]);var Nt=/^([*\-_])(?:\s*\1){2,}\s*$/,Ut=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,De=/^\[(x| )\](?=\s)/i,Yt=$t.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,de=/^ {0,3}(?:\={1,}|-{2,})\s*$/,we=/^[^#!\[\]*_\\<>` "'(~:]+/,ue=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,he=/^\s*\[[^\]]+?\]:.*$/,It=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,ye=" ";function Ze(Me,_t,rn){return _t.f=_t.inline=rn,rn(Me,_t)}function pe(Me,_t,rn){return _t.f=_t.block=rn,rn(Me,_t)}function be(Me){return!Me||!/\S/.test(Me.string)}function Rt(Me){if(Me.linkTitle=!1,Me.linkHref=!1,Me.linkText=!1,Me.em=!1,Me.strong=!1,Me.strikethrough=!1,Me.quote=0,Me.indentedCode=!1,Me.f==Qt){var _t=Dt;if(!_t){var rn=ft.innerMode(ne,Me.htmlState);_t=rn.mode.name=="xml"&&rn.state.tagStart===null&&!rn.state.context&&rn.state.tokenize.isInText}_t&&(Me.f=en,Me.block=zt,Me.htmlState=null)}return Me.trailingSpace=0,Me.trailingSpaceNewLine=!1,Me.prevLine=Me.thisLine,Me.thisLine={stream:null},null}function zt(Me,_t){var rn=Me.column()===_t.indentation,ti=be(_t.prevLine.stream),vn=_t.indentedCode,ze=_t.prevLine.hr,on=_t.list!==!1,On=(_t.listStack[_t.listStack.length-1]||0)+3;_t.indentedCode=!1;var Ni=_t.indentation;if(_t.indentationDiff===null&&(_t.indentationDiff=_t.indentation,on)){for(_t.list=null;Ni<_t.listStack[_t.listStack.length-1];)_t.listStack.pop(),_t.listStack.length?_t.indentation=_t.listStack[_t.listStack.length-1]:_t.list=!1;_t.list!==!1&&(_t.indentationDiff=Ni-_t.listStack[_t.listStack.length-1])}var gi=!ti&&!ze&&!_t.prevLine.header&&(!on||!vn)&&!_t.prevLine.fencedCodeEnd,Dn=(_t.list===!1||ze||ti)&&_t.indentation<=On&&Me.match(Nt),Jn=null;if(_t.indentationDiff>=4&&(vn||_t.prevLine.fencedCodeEnd||_t.prevLine.header||ti))return Me.skipToEnd(),_t.indentedCode=!0,Wt.code;if(Me.eatSpace())return null;if(rn&&_t.indentation<=On&&(Jn=Me.match(Yt))&&Jn[1].length<=6)return _t.quote=0,_t.header=Jn[1].length,_t.thisLine.header=!0,$t.highlightFormatting&&(_t.formatting="header"),_t.f=_t.inline,Ie(_t);if(_t.indentation<=On&&Me.eat(">"))return _t.quote=rn?1:_t.quote+1,$t.highlightFormatting&&(_t.formatting="quote"),Me.eatSpace(),Ie(_t);if(!Dn&&!_t.setext&&rn&&_t.indentation<=On&&(Jn=Me.match(Ut))){var Ai=Jn[1]?"ol":"ul";return _t.indentation=Ni+Me.current().length,_t.list=!0,_t.quote=0,_t.listStack.push(_t.indentation),_t.em=!1,_t.strong=!1,_t.code=!1,_t.strikethrough=!1,$t.taskLists&&Me.match(De,!1)&&(_t.taskList=!0),_t.f=_t.inline,$t.highlightFormatting&&(_t.formatting=["list","list-"+Ai]),Ie(_t)}else{if(rn&&_t.indentation<=On&&(Jn=Me.match(ue,!0)))return _t.quote=0,_t.fencedEndRE=new RegExp(Jn[1]+"+ *$"),_t.localMode=$t.fencedCodeBlockHighlighting&&Ht(Jn[2]||$t.fencedCodeBlockDefaultMode),_t.localMode&&(_t.localState=ft.startState(_t.localMode)),_t.f=_t.block=te,$t.highlightFormatting&&(_t.formatting="code-block"),_t.code=-1,Ie(_t);if(_t.setext||(!gi||!on)&&!_t.quote&&_t.list===!1&&!_t.code&&!Dn&&!he.test(Me.string)&&(Jn=Me.lookAhead(1))&&(Jn=Jn.match(de)))return _t.setext?(_t.header=_t.setext,_t.setext=0,Me.skipToEnd(),$t.highlightFormatting&&(_t.formatting="header")):(_t.header=Jn[0].charAt(0)=="="?1:2,_t.setext=_t.header),_t.thisLine.header=!0,_t.f=_t.inline,Ie(_t);if(Dn)return Me.skipToEnd(),_t.hr=!0,_t.thisLine.hr=!0,Wt.hr;if(Me.peek()==="[")return Ze(Me,_t,Ne)}return Ze(Me,_t,_t.inline)}function Qt(Me,_t){var rn=ne.token(Me,_t.htmlState);if(!Dt){var ti=ft.innerMode(ne,_t.htmlState);(ti.mode.name=="xml"&&ti.state.tagStart===null&&!ti.state.context&&ti.state.tokenize.isInText||_t.md_inside&&Me.current().indexOf(">")>-1)&&(_t.f=en,_t.block=zt,_t.htmlState=null)}return rn}function te(Me,_t){var rn=_t.listStack[_t.listStack.length-1]||0,ti=_t.indentation<rn,vn=rn+3;if(_t.fencedEndRE&&_t.indentation<=vn&&(ti||Me.match(_t.fencedEndRE))){$t.highlightFormatting&&(_t.formatting="code-block");var ze;return ti||(ze=Ie(_t)),_t.localMode=_t.localState=null,_t.block=zt,_t.f=en,_t.fencedEndRE=null,_t.code=0,_t.thisLine.fencedCodeEnd=!0,ti?pe(Me,_t,_t.block):ze}else return _t.localMode?_t.localMode.token(Me,_t.localState):(Me.skipToEnd(),Wt.code)}function Ie(Me){var _t=[];if(Me.formatting){_t.push(Wt.formatting),typeof Me.formatting=="string"&&(Me.formatting=[Me.formatting]);for(var rn=0;rn<Me.formatting.length;rn++)_t.push(Wt.formatting+"-"+Me.formatting[rn]),Me.formatting[rn]==="header"&&_t.push(Wt.formatting+"-"+Me.formatting[rn]+"-"+Me.header),Me.formatting[rn]==="quote"&&(!$t.maxBlockquoteDepth||$t.maxBlockquoteDepth>=Me.quote?_t.push(Wt.formatting+"-"+Me.formatting[rn]+"-"+Me.quote):_t.push("error"))}if(Me.taskOpen)return _t.push("meta"),_t.length?_t.join(" "):null;if(Me.taskClosed)return _t.push("property"),_t.length?_t.join(" "):null;if(Me.linkHref?_t.push(Wt.linkHref,"url"):(Me.strong&&_t.push(Wt.strong),Me.em&&_t.push(Wt.em),Me.strikethrough&&_t.push(Wt.strikethrough),Me.emoji&&_t.push(Wt.emoji),Me.linkText&&_t.push(Wt.linkText),Me.code&&_t.push(Wt.code),Me.image&&_t.push(Wt.image),Me.imageAltText&&_t.push(Wt.imageAltText,"link"),Me.imageMarker&&_t.push(Wt.imageMarker)),Me.header&&_t.push(Wt.header,Wt.header+"-"+Me.header),Me.quote&&(_t.push(Wt.quote),!$t.maxBlockquoteDepth||$t.maxBlockquoteDepth>=Me.quote?_t.push(Wt.quote+"-"+Me.quote):_t.push(Wt.quote+"-"+$t.maxBlockquoteDepth)),Me.list!==!1){var ti=(Me.listStack.length-1)%3;ti?ti===1?_t.push(Wt.list2):_t.push(Wt.list3):_t.push(Wt.list1)}return Me.trailingSpaceNewLine?_t.push("trailing-space-new-line"):Me.trailingSpace&&_t.push("trailing-space-"+(Me.trailingSpace%2?"a":"b")),_t.length?_t.join(" "):null}function He(Me,_t){if(Me.match(we,!0))return Ie(_t)}function en(Me,_t){var rn=_t.text(Me,_t);if(typeof rn!="undefined")return rn;if(_t.list)return _t.list=null,Ie(_t);if(_t.taskList){var ti=Me.match(De,!0)[1]===" ";return ti?_t.taskOpen=!0:_t.taskClosed=!0,$t.highlightFormatting&&(_t.formatting="task"),_t.taskList=!1,Ie(_t)}if(_t.taskOpen=!1,_t.taskClosed=!1,_t.header&&Me.match(/^#+$/,!0))return $t.highlightFormatting&&(_t.formatting="header"),Ie(_t);var vn=Me.next();if(_t.linkTitle){_t.linkTitle=!1;var ze=vn;vn==="("&&(ze=")"),ze=(ze+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var on="^\\s*(?:[^"+ze+"\\\\]+|\\\\\\\\|\\\\.)"+ze;if(Me.match(new RegExp(on),!0))return Wt.linkHref}if(vn==="`"){var On=_t.formatting;$t.highlightFormatting&&(_t.formatting="code"),Me.eatWhile("`");var Ni=Me.current().length;if(_t.code==0&&(!_t.quote||Ni==1))return _t.code=Ni,Ie(_t);if(Ni==_t.code){var gi=Ie(_t);return _t.code=0,gi}else return _t.formatting=On,Ie(_t)}else if(_t.code)return Ie(_t);if(vn==="\\"&&(Me.next(),$t.highlightFormatting)){var Dn=Ie(_t),Jn=Wt.formatting+"-escape";return Dn?Dn+" "+Jn:Jn}if(vn==="!"&&Me.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return _t.imageMarker=!0,_t.image=!0,$t.highlightFormatting&&(_t.formatting="image"),Ie(_t);if(vn==="["&&_t.imageMarker&&Me.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return _t.imageMarker=!1,_t.imageAltText=!0,$t.highlightFormatting&&(_t.formatting="image"),Ie(_t);if(vn==="]"&&_t.imageAltText){$t.highlightFormatting&&(_t.formatting="image");var Dn=Ie(_t);return _t.imageAltText=!1,_t.image=!1,_t.inline=_t.f=an,Dn}if(vn==="["&&!_t.image)return _t.linkText&&Me.match(/^.*?\]/)||(_t.linkText=!0,$t.highlightFormatting&&(_t.formatting="link")),Ie(_t);if(vn==="]"&&_t.linkText){$t.highlightFormatting&&(_t.formatting="link");var Dn=Ie(_t);return _t.linkText=!1,_t.inline=_t.f=Me.match(/\(.*?\)| ?\[.*?\]/,!1)?an:en,Dn}if(vn==="<"&&Me.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){_t.f=_t.inline=ie,$t.highlightFormatting&&(_t.formatting="link");var Dn=Ie(_t);return Dn?Dn+=" ":Dn="",Dn+Wt.linkInline}if(vn==="<"&&Me.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){_t.f=_t.inline=ie,$t.highlightFormatting&&(_t.formatting="link");var Dn=Ie(_t);return Dn?Dn+=" ":Dn="",Dn+Wt.linkEmail}if($t.xml&&vn==="<"&&Me.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ai=Me.string.indexOf(">",Me.pos);if(Ai!=-1){var hi=Me.string.substring(Me.start,Ai);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(hi)&&(_t.md_inside=!0)}return Me.backUp(1),_t.htmlState=ft.startState(ne),pe(Me,_t,Qt)}if($t.xml&&vn==="<"&&Me.match(/^\/\w*?>/))return _t.md_inside=!1,"tag";if(vn==="*"||vn==="_"){for(var qt=1,kt=Me.pos==1?" ":Me.string.charAt(Me.pos-2);qt<3&&Me.eat(vn);)qt++;var Ct=Me.peek()||" ",Pt=!/\s/.test(Ct)&&(!It.test(Ct)||/\s/.test(kt)||It.test(kt)),At=!/\s/.test(kt)&&(!It.test(kt)||/\s/.test(Ct)||It.test(Ct)),wt=null,Xt=null;if(qt%2&&(!_t.em&&Pt&&(vn==="*"||!At||It.test(kt))?wt=!0:_t.em==vn&&At&&(vn==="*"||!Pt||It.test(Ct))&&(wt=!1)),qt>1&&(!_t.strong&&Pt&&(vn==="*"||!At||It.test(kt))?Xt=!0:_t.strong==vn&&At&&(vn==="*"||!Pt||It.test(Ct))&&(Xt=!1)),Xt!=null||wt!=null){$t.highlightFormatting&&(_t.formatting=wt==null?"strong":Xt==null?"em":"strong em"),wt===!0&&(_t.em=vn),Xt===!0&&(_t.strong=vn);var gi=Ie(_t);return wt===!1&&(_t.em=!1),Xt===!1&&(_t.strong=!1),gi}}else if(vn===" "&&(Me.eat("*")||Me.eat("_"))){if(Me.peek()===" ")return Ie(_t);Me.backUp(1)}if($t.strikethrough){if(vn==="~"&&Me.eatWhile(vn)){if(_t.strikethrough){$t.highlightFormatting&&(_t.formatting="strikethrough");var gi=Ie(_t);return _t.strikethrough=!1,gi}else if(Me.match(/^[^\s]/,!1))return _t.strikethrough=!0,$t.highlightFormatting&&(_t.formatting="strikethrough"),Ie(_t)}else if(vn===" "&&Me.match(/^~~/,!0)){if(Me.peek()===" ")return Ie(_t);Me.backUp(2)}}if($t.emoji&&vn===":"&&Me.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){_t.emoji=!0,$t.highlightFormatting&&(_t.formatting="emoji");var Re=Ie(_t);return _t.emoji=!1,Re}return vn===" "&&(Me.match(/^ +$/,!1)?_t.trailingSpace++:_t.trailingSpace&&(_t.trailingSpaceNewLine=!0)),Ie(_t)}function ie(Me,_t){var rn=Me.next();if(rn===">"){_t.f=_t.inline=en,$t.highlightFormatting&&(_t.formatting="link");var ti=Ie(_t);return ti?ti+=" ":ti="",ti+Wt.linkInline}return Me.match(/^[^>]+/,!0),Wt.linkInline}function an(Me,_t){if(Me.eatSpace())return null;var rn=Me.next();return rn==="("||rn==="["?(_t.f=_t.inline=Vn(rn==="("?")":"]"),$t.highlightFormatting&&(_t.formatting="link-string"),_t.linkHref=!0,Ie(_t)):"error"}var nn={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Vn(Me){return function(_t,rn){var ti=_t.next();if(ti===Me){rn.f=rn.inline=en,$t.highlightFormatting&&(rn.formatting="link-string");var vn=Ie(rn);return rn.linkHref=!1,vn}return _t.match(nn[Me]),rn.linkHref=!0,Ie(rn)}}function Ne(Me,_t){return Me.match(/^([^\]\\]|\\.)*\]:/,!1)?(_t.f=Ye,Me.next(),$t.highlightFormatting&&(_t.formatting="link"),_t.linkText=!0,Ie(_t)):Ze(Me,_t,en)}function Ye(Me,_t){if(Me.match(/^\]:/,!0)){_t.f=_t.inline=zn,$t.highlightFormatting&&(_t.formatting="link");var rn=Ie(_t);return _t.linkText=!1,rn}return Me.match(/^([^\]\\]|\\.)+/,!0),Wt.linkText}function zn(Me,_t){return Me.eatSpace()?null:(Me.match(/^[^\s]+/,!0),Me.peek()===void 0?_t.linkTitle=!0:Me.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),_t.f=_t.inline=en,Wt.linkHref+" url")}var Gn={startState:function(){return{f:zt,prevLine:{stream:null},thisLine:{stream:null},block:zt,htmlState:null,indentation:0,inline:en,text:He,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(Me){return{f:Me.f,prevLine:Me.prevLine,thisLine:Me.thisLine,block:Me.block,htmlState:Me.htmlState&&ft.copyState(ne,Me.htmlState),indentation:Me.indentation,localMode:Me.localMode,localState:Me.localMode?ft.copyState(Me.localMode,Me.localState):null,inline:Me.inline,text:Me.text,formatting:!1,linkText:Me.linkText,linkTitle:Me.linkTitle,linkHref:Me.linkHref,code:Me.code,em:Me.em,strong:Me.strong,strikethrough:Me.strikethrough,emoji:Me.emoji,header:Me.header,setext:Me.setext,hr:Me.hr,taskList:Me.taskList,list:Me.list,listStack:Me.listStack.slice(0),quote:Me.quote,indentedCode:Me.indentedCode,trailingSpace:Me.trailingSpace,trailingSpaceNewLine:Me.trailingSpaceNewLine,md_inside:Me.md_inside,fencedEndRE:Me.fencedEndRE}},token:function(Me,_t){if(_t.formatting=!1,Me!=_t.thisLine.stream){if(_t.header=0,_t.hr=!1,Me.match(/^\s*$/,!0))return Rt(_t),null;if(_t.prevLine=_t.thisLine,_t.thisLine={stream:Me},_t.taskList=!1,_t.trailingSpace=0,_t.trailingSpaceNewLine=!1,!_t.localState&&(_t.f=_t.block,_t.f!=Qt)){var rn=Me.match(/^\s*/,!0)[0].replace(/\t/g,ye).length;if(_t.indentation=rn,_t.indentationDiff=null,rn>0)return null}}return _t.f(Me,_t)},innerMode:function(Me){return Me.block==Qt?{state:Me.htmlState,mode:ne}:Me.localState?{state:Me.localState,mode:Me.localMode}:{state:Me,mode:Gn}},indent:function(Me,_t,rn){return Me.block==Qt&&ne.indent?ne.indent(Me.htmlState,_t,rn):Me.localState&&Me.localMode.indent?Me.localMode.indent(Me.localState,_t,rn):ft.Pass},blankLine:Rt,getType:Ie,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Gn},"xml"),ft.defineMIME("text/markdown","markdown"),ft.defineMIME("text/x-markdown","markdown")})},52539:function(jn,tn,mt){(function(ft){ft(mt(4631))})(function(ft){"use strict";ft.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var Ft=0;Ft<ft.modeInfo.length;Ft++){var $t=ft.modeInfo[Ft];$t.mimes&&($t.mime=$t.mimes[0])}ft.findModeByMIME=function(ne){ne=ne.toLowerCase();for(var Dt=0;Dt<ft.modeInfo.length;Dt++){var Ht=ft.modeInfo[Dt];if(Ht.mime==ne)return Ht;if(Ht.mimes){for(var Wt=0;Wt<Ht.mimes.length;Wt++)if(Ht.mimes[Wt]==ne)return Ht}}if(/\+xml$/.test(ne))return ft.findModeByMIME("application/xml");if(/\+json$/.test(ne))return ft.findModeByMIME("application/json")},ft.findModeByExtension=function(ne){ne=ne.toLowerCase();for(var Dt=0;Dt<ft.modeInfo.length;Dt++){var Ht=ft.modeInfo[Dt];if(Ht.ext){for(var Wt=0;Wt<Ht.ext.length;Wt++)if(Ht.ext[Wt]==ne)return Ht}}},ft.findModeByFileName=function(ne){for(var Dt=0;Dt<ft.modeInfo.length;Dt++){var Ht=ft.modeInfo[Dt];if(Ht.file&&Ht.file.test(ne))return Ht}var Wt=ne.lastIndexOf("."),jt=Wt>-1&&ne.substring(Wt+1,ne.length);if(jt)return ft.findModeByExtension(jt)},ft.findModeByName=function(ne){ne=ne.toLowerCase();for(var Dt=0;Dt<ft.modeInfo.length;Dt++){var Ht=ft.modeInfo[Dt];if(Ht.name.toLowerCase()==ne)return Ht;if(Ht.alias){for(var Wt=0;Wt<Ht.alias.length;Wt++)if(Ht.alias[Wt].toLowerCase()==ne)return Ht}}}})},80785:function(jn,tn,mt){(function(ft){ft(mt(4631))})(function(ft){"use strict";ft.defineMode("stex",function(Ft,$t){"use strict";function ne(we,ue){we.cmdState.push(ue)}function Dt(we){return we.cmdState.length>0?we.cmdState[we.cmdState.length-1]:null}function Ht(we){var ue=we.cmdState.pop();ue&&ue.closeBracket()}function Wt(we){for(var ue=we.cmdState,he=ue.length-1;he>=0;he--){var It=ue[he];if(It.name!="DEFAULT")return It}return{styleIdentifier:function(){return null}}}function jt(we,ue,he){return function(){this.name=we,this.bracketNo=0,this.style=ue,this.styles=he,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Nt={};Nt.importmodule=jt("importmodule","tag",["string","builtin"]),Nt.documentclass=jt("documentclass","tag",["","atom"]),Nt.usepackage=jt("usepackage","tag",["atom"]),Nt.begin=jt("begin","tag",["atom"]),Nt.end=jt("end","tag",["atom"]),Nt.label=jt("label","tag",["atom"]),Nt.ref=jt("ref","tag",["atom"]),Nt.eqref=jt("eqref","tag",["atom"]),Nt.cite=jt("cite","tag",["atom"]),Nt.bibitem=jt("bibitem","tag",["atom"]),Nt.Bibitem=jt("Bibitem","tag",["atom"]),Nt.RBibitem=jt("RBibitem","tag",["atom"]),Nt.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Ut(we,ue){we.f=ue}function De(we,ue){var he;if(we.match(/^\\[a-zA-Z@]+/)){var It=we.current().slice(1);return he=Nt.hasOwnProperty(It)?Nt[It]:Nt.DEFAULT,he=new he,ne(ue,he),Ut(ue,de),he.style}if(we.match(/^\\[$&%#{}_]/)||we.match(/^\\[,;!\/\\]/))return"tag";if(we.match("\\["))return Ut(ue,function(Ze,pe){return Yt(Ze,pe,"\\]")}),"keyword";if(we.match("\\("))return Ut(ue,function(Ze,pe){return Yt(Ze,pe,"\\)")}),"keyword";if(we.match("$$"))return Ut(ue,function(Ze,pe){return Yt(Ze,pe,"$$")}),"keyword";if(we.match("$"))return Ut(ue,function(Ze,pe){return Yt(Ze,pe,"$")}),"keyword";var ye=we.next();if(ye=="%")return we.skipToEnd(),"comment";if(ye=="}"||ye=="]"){if(he=Dt(ue),he)he.closeBracket(ye),Ut(ue,de);else return"error";return"bracket"}else return ye=="{"||ye=="["?(he=Nt.DEFAULT,he=new he,ne(ue,he),"bracket"):/\d/.test(ye)?(we.eatWhile(/[\w.%]/),"atom"):(we.eatWhile(/[\w\-_]/),he=Wt(ue),he.name=="begin"&&(he.argument=we.current()),he.styleIdentifier())}function Yt(we,ue,he){if(we.eatSpace())return null;if(he&&we.match(he))return Ut(ue,De),"keyword";if(we.match(/^\\[a-zA-Z@]+/))return"tag";if(we.match(/^[a-zA-Z]+/))return"variable-2";if(we.match(/^\\[$&%#{}_]/)||we.match(/^\\[,;!\/]/)||we.match(/^[\^_&]/))return"tag";if(we.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(we.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var It=we.next();return It=="{"||It=="}"||It=="["||It=="]"||It=="("||It==")"?"bracket":It=="%"?(we.skipToEnd(),"comment"):"error"}function de(we,ue){var he=we.peek(),It;return he=="{"||he=="["?(It=Dt(ue),It.openBracket(he),we.eat(he),Ut(ue,De),"bracket"):/[ \t\r]/.test(he)?(we.eat(he),null):(Ut(ue,De),Ht(ue),De(we,ue))}return{startState:function(){var we=$t.inMathMode?function(ue,he){return Yt(ue,he)}:De;return{cmdState:[],f:we}},copyState:function(we){return{cmdState:we.cmdState.slice(),f:we.f}},token:function(we,ue){return ue.f(we,ue)},blankLine:function(we){we.f=De,we.cmdState.length=0},lineComment:"%"}}),ft.defineMIME("text/x-stex","stex"),ft.defineMIME("text/x-latex","stex")})},29589:function(jn,tn,mt){(function(ft){ft(mt(4631))})(function(ft){"use strict";var Ft={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},$t={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ft.defineMode("xml",function(ne,Dt){var Ht=ne.indentUnit,Wt={},jt=Dt.htmlMode?Ft:$t;for(var Nt in jt)Wt[Nt]=jt[Nt];for(var Nt in Dt)Wt[Nt]=Dt[Nt];var Ut,De;function Yt(ie,an){function nn(Ye){return an.tokenize=Ye,Ye(ie,an)}var Vn=ie.next();if(Vn=="<")return ie.eat("!")?ie.eat("[")?ie.match("CDATA[")?nn(ue("atom","]]>")):null:ie.match("--")?nn(ue("comment","-->")):ie.match("DOCTYPE",!0,!0)?(ie.eatWhile(/[\w\._\-]/),nn(he(1))):null:ie.eat("?")?(ie.eatWhile(/[\w\._\-]/),an.tokenize=ue("meta","?>"),"meta"):(Ut=ie.eat("/")?"closeTag":"openTag",an.tokenize=de,"tag bracket");if(Vn=="&"){var Ne;return ie.eat("#")?ie.eat("x")?Ne=ie.eatWhile(/[a-fA-F\d]/)&&ie.eat(";"):Ne=ie.eatWhile(/[\d]/)&&ie.eat(";"):Ne=ie.eatWhile(/[\w\.\-:]/)&&ie.eat(";"),Ne?"atom":"error"}else return ie.eatWhile(/[^&<]/),null}Yt.isInText=!0;function de(ie,an){var nn=ie.next();if(nn==">"||nn=="/"&&ie.eat(">"))return an.tokenize=Yt,Ut=nn==">"?"endTag":"selfcloseTag","tag bracket";if(nn=="=")return Ut="equals",null;if(nn=="<"){an.tokenize=Yt,an.state=pe,an.tagName=an.tagStart=null;var Vn=an.tokenize(ie,an);return Vn?Vn+" tag error":"tag error"}else return/[\'\"]/.test(nn)?(an.tokenize=we(nn),an.stringStartCol=ie.column(),an.tokenize(ie,an)):(ie.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function we(ie){var an=function(nn,Vn){for(;!nn.eol();)if(nn.next()==ie){Vn.tokenize=de;break}return"string"};return an.isInAttribute=!0,an}function ue(ie,an){return function(nn,Vn){for(;!nn.eol();){if(nn.match(an)){Vn.tokenize=Yt;break}nn.next()}return ie}}function he(ie){return function(an,nn){for(var Vn;(Vn=an.next())!=null;){if(Vn=="<")return nn.tokenize=he(ie+1),nn.tokenize(an,nn);if(Vn==">")if(ie==1){nn.tokenize=Yt;break}else return nn.tokenize=he(ie-1),nn.tokenize(an,nn)}return"meta"}}function It(ie,an,nn){this.prev=ie.context,this.tagName=an,this.indent=ie.indented,this.startOfLine=nn,(Wt.doNotIndent.hasOwnProperty(an)||ie.context&&ie.context.noIndent)&&(this.noIndent=!0)}function ye(ie){ie.context&&(ie.context=ie.context.prev)}function Ze(ie,an){for(var nn;;){if(!ie.context||(nn=ie.context.tagName,!Wt.contextGrabbers.hasOwnProperty(nn)||!Wt.contextGrabbers[nn].hasOwnProperty(an)))return;ye(ie)}}function pe(ie,an,nn){return ie=="openTag"?(nn.tagStart=an.column(),be):ie=="closeTag"?Rt:pe}function be(ie,an,nn){return ie=="word"?(nn.tagName=an.current(),De="tag",te):Wt.allowMissingTagName&&ie=="endTag"?(De="tag bracket",te(ie,an,nn)):(De="error",be)}function Rt(ie,an,nn){if(ie=="word"){var Vn=an.current();return nn.context&&nn.context.tagName!=Vn&&Wt.implicitlyClosed.hasOwnProperty(nn.context.tagName)&&ye(nn),nn.context&&nn.context.tagName==Vn||Wt.matchClosing===!1?(De="tag",zt):(De="tag error",Qt)}else return Wt.allowMissingTagName&&ie=="endTag"?(De="tag bracket",zt(ie,an,nn)):(De="error",Qt)}function zt(ie,an,nn){return ie!="endTag"?(De="error",zt):(ye(nn),pe)}function Qt(ie,an,nn){return De="error",zt(ie,an,nn)}function te(ie,an,nn){if(ie=="word")return De="attribute",Ie;if(ie=="endTag"||ie=="selfcloseTag"){var Vn=nn.tagName,Ne=nn.tagStart;return nn.tagName=nn.tagStart=null,ie=="selfcloseTag"||Wt.autoSelfClosers.hasOwnProperty(Vn)?Ze(nn,Vn):(Ze(nn,Vn),nn.context=new It(nn,Vn,Ne==nn.indented)),pe}return De="error",te}function Ie(ie,an,nn){return ie=="equals"?He:(Wt.allowMissing||(De="error"),te(ie,an,nn))}function He(ie,an,nn){return ie=="string"?en:ie=="word"&&Wt.allowUnquoted?(De="string",te):(De="error",te(ie,an,nn))}function en(ie,an,nn){return ie=="string"?en:te(ie,an,nn)}return{startState:function(ie){var an={tokenize:Yt,state:pe,indented:ie||0,tagName:null,tagStart:null,context:null};return ie!=null&&(an.baseIndent=ie),an},token:function(ie,an){if(!an.tagName&&ie.sol()&&(an.indented=ie.indentation()),ie.eatSpace())return null;Ut=null;var nn=an.tokenize(ie,an);return(nn||Ut)&&nn!="comment"&&(De=null,an.state=an.state(Ut||nn,ie,an),De&&(nn=De=="error"?nn+" error":De)),nn},indent:function(ie,an,nn){var Vn=ie.context;if(ie.tokenize.isInAttribute)return ie.tagStart==ie.indented?ie.stringStartCol+1:ie.indented+Ht;if(Vn&&Vn.noIndent)return ft.Pass;if(ie.tokenize!=de&&ie.tokenize!=Yt)return nn?nn.match(/^(\s*)/)[0].length:0;if(ie.tagName)return Wt.multilineTagIndentPastTag!==!1?ie.tagStart+ie.tagName.length+2:ie.tagStart+Ht*(Wt.multilineTagIndentFactor||1);if(Wt.alignCDATA&&/<!\[CDATA\[/.test(an))return 0;var Ne=an&&/^<(\/)?([\w_:\.-]*)/.exec(an);if(Ne&&Ne[1])for(;Vn;)if(Vn.tagName==Ne[2]){Vn=Vn.prev;break}else if(Wt.implicitlyClosed.hasOwnProperty(Vn.tagName))Vn=Vn.prev;else break;else if(Ne)for(;Vn;){var Ye=Wt.contextGrabbers[Vn.tagName];if(Ye&&Ye.hasOwnProperty(Ne[2]))Vn=Vn.prev;else break}for(;Vn&&Vn.prev&&!Vn.startOfLine;)Vn=Vn.prev;return Vn?Vn.indent+Ht:ie.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Wt.htmlMode?"html":"xml",helperType:Wt.htmlMode?"html":"xml",skipAttribute:function(ie){ie.state==He&&(ie.state=te)},xmlCurrentTag:function(ie){return ie.tagName?{name:ie.tagName,close:ie.type=="closeTag"}:null},xmlCurrentContext:function(ie){for(var an=[],nn=ie.context;nn;nn=nn.prev)nn.tagName&&an.push(nn.tagName);return an.reverse()}}}),ft.defineMIME("text/xml","xml"),ft.defineMIME("application/xml","xml"),ft.mimeModes.hasOwnProperty("text/html")||ft.defineMIME("text/html",{name:"xml",htmlMode:!0})})},23495:function(jn,tn,mt){"use strict";mt.d(tn,{$u:function(){return Nt},BD:function(){return qt},E9:function(){return jt},FF:function(){return po},FJ:function(){return pe},Hn:function(){return Ze},KX:function(){return Rt},NB:function(){return Hn},S0:function(){return Jn},UL:function(){return Ut},Vk:function(){return ye},al:function(){return wt},bn:function(){return At},bx:function(){return kt},g2:function(){return hi},h1:function(){return He},hD:function(){return Oi},l4:function(){return Ht},rU:function(){return Un},s_:function(){return Ct},z6:function(){return Yt}}),jn=mt.hmd(jn),function(){var St;function Zi(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function mi(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Zi(a)}}function rr(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var fr=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},pr;if(typeof Object.setPrototypeOf=="function")pr=Object.setPrototypeOf;else{var tr;t:{var Xe={a:!0},mn={};try{mn.__proto__=Xe,tr=mn.a;break t}catch(a){}tr=!1}pr=tr?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Tn=pr;function Nn(a,y){if(a.prototype=fr(y.prototype),a.prototype.constructor=a,Tn)Tn(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 ge=typeof mt.g!="undefined"&&mt.g!=null?mt.g:self,Cn=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 tt in b)Object.prototype.hasOwnProperty.call(b,tt)&&(a[tt]=b[tt])}return a},ai=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function Te(a,y){if(y){var x=ge;a=a.split(".");for(var b=0;b<a.length-1;b++){var tt=a[b];tt in x||(x[tt]={}),x=x[tt]}a=a[a.length-1],b=x[a],y=y(b),y!=b&&y!=null&&ai(x,a,{writable:!0,value:y})}}Te("Object.assign",function(a){return a||Cn}),Te("Array.prototype.fill",function(a){return a||function(y,x,b){var tt=this.length||0;for(0>x&&(x=Math.max(0,tt+x)),(b==null||b>tt)&&(b=tt),b=Number(b),0>b&&(b=Math.max(0,tt+b)),x=Number(x||0);x<b;x++)this[x]=y;return this}});var ce=typeof globalThis=="object"&&globalThis||typeof mt.g=="object"&&mt.g.global===mt.g&&mt.g||typeof self=="object"&&self.self===self&&self||{};ce.requestAnimationFrame===void 0&&(ce.setImmediate===void 0?ce.requestAnimationFrame=function(a){ce.setTimeout(a,0)}:ce.requestAnimationFrame=ce.setImmediate);function Oe(){}function pn(a,y){var x=-1;return function(){var b=this,tt=arguments;x!==-1&&ce.clearTimeout(x),x=fi(function(){x=-1,a.apply(b,tt)},y)}}function fi(a,y){return ce.setTimeout(a,y)}function $n(a){return ce.document.createElement(a)}function _e(a){throw Error(a)}function ri(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),_e(a)}function Ri(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),_e(x+" is not in the range "+y+": "+a)}function $e(a){ce.console&&ce.console.log(a)}function Ge(a){return typeof a=="object"&&a!==null}function un(a){return Array.isArray(a)||ce.NodeList&&a instanceof ce.NodeList||ce.HTMLCollection&&a instanceof ce.HTMLCollection}function xi(a){return Array.prototype.slice.call(a)}function Yi(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):_e("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function ci(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):_e("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function Xn(){var a=Do.pop();return a===void 0?[]:a}function qn(a){a.length=0,Do.push(a)}function Ki(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(Ge(a)&&a.constructor)return Ki(a.constructor);return typeof a}function vr(a){var y=a;return Ge(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 ki(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 Or(a,y,x){Object.defineProperty(Po.prototype,a,{get:y,set:x})}function Ii(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,tt=0;tt<a.length;tt+=2)x[b++]=y[a.substr(tt,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,tt=y[x],y[x]=y[b],y[b]=tt;b=x=0;for(var et="",nt=0;nt<a.length;nt++)x=(x+1)%256,b=(b+y[x])%256,tt=y[x],y[x]=y[b],y[b]=tt,et+=String.fromCharCode(a.charCodeAt(nt)^y[(y[x]+y[b])%256]);return et.indexOf("GoJS 2.1 evaluation")>-1||et.indexOf("\xA9 1998-2021 Northwoods Software")>-1||et.indexOf("Not for distribution or production use")>-1||et.indexOf("gojs.net")>-1?"":et}var ao=ce.navigator!==void 0&&0<ce.navigator.userAgent.indexOf("Trident/7"),qr=ce.navigator!==void 0&&ce.navigator.platform!==void 0&&ce.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Do=[];Object.freeze([]),Oe.className="Util",Oe.Dx="32ab5ff3b26f42dc0ed90f21472913b5",Oe.adym="gojs.net",Oe.vfo="28e645fdb266",Oe.className="Util";function ui(a,y,x){si(this),this.j=a,this.xa=y,this.o=x}ui.prototype.toString=function(){return"EnumValue."+this.xa};function Co(a,y){return y==null||y===""?null:a[y]}ge.Object.defineProperties(ui.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),ui.className="EnumValue";function bo(){this.ew=[]}bo.prototype.toString=function(){return this.ew.join("")},bo.prototype.add=function(a){a!==""&&this.ew.push(a)},bo.className="StringBuilder";function Kr(){}Kr.className="PropertyCollection";var wo={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){ce.console&&ce.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 tt={Tj:0};tt.Tj<y.Zl.length;tt={Tj:tt.Tj},tt.Tj++){var et=Object.getOwnPropertyDescriptor(b.prototype,y.Zl[tt.Tj]);et.get!==void 0&&et.set===void 0&&Object.defineProperty(b.prototype,y.Zl[tt.Tj],{set:function(nt,ot){return function(){throw Error("Property "+nt.Zl[ot.Tj]+" of "+nt.x+" is read-only.")}}(y,tt)})}}}y={Zl:y.Zl,x:y.x}}}};function Sr(){}Sr.prototype.reset=function(){},Sr.prototype.next=function(){return!1},Sr.prototype.Ad=function(){return!1},Sr.prototype.first=function(){return null},Sr.prototype.any=function(){return!1},Sr.prototype.all=function(){return!0},Sr.prototype.each=function(){return this},Sr.prototype.map=function(){return this},Sr.prototype.filter=function(){return this},Sr.prototype.de=function(){},Sr.prototype.toString=function(){return"EmptyIterator"},ge.Object.defineProperties(Sr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Sr.prototype.first=Sr.prototype.first,Sr.prototype.hasNext=Sr.prototype.Ad,Sr.prototype.next=Sr.prototype.next,Sr.prototype.reset=Sr.prototype.reset;var Xr=null;Sr.className="EmptyIterator",Xr=new Sr;function Br(a){this.key=-1,this.value=a}Br.prototype.reset=function(){this.key=-1},Br.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Br.prototype.Ad=function(){return this.next()},Br.prototype.first=function(){return this.key=0,this.value},Br.prototype.any=function(a){return this.key=-1,a(this.value)},Br.prototype.all=function(a){return this.key=-1,a(this.value)},Br.prototype.each=function(a){return this.key=-1,a(this.value),this},Br.prototype.map=function(a){return new Br(a(this.value))},Br.prototype.filter=function(a){return a(this.value)?new Br(this.value):Xr},Br.prototype.de=function(){this.value=null},Br.prototype.toString=function(){return"SingletonIterator("+this.value+")"},ge.Object.defineProperties(Br.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Br.prototype.first=Br.prototype.first,Br.prototype.hasNext=Br.prototype.Ad,Br.prototype.next=Br.prototype.next,Br.prototype.reset=Br.prototype.reset,Br.className="SingletonIterator";function yo(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}yo.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},yo.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 tt=a[x];if(b(tt))return this.key=this.Za=x,this.value=tt,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},yo.prototype.Ad=function(){return this.next()},yo.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 tt=a[b];if(x(tt))return this.key=this.Za=b,this.value=tt;b++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},yo.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,tt=0;tt<x;tt++){var et=y[tt];if((b===null||b(et))&&a(et))return!0}return!1},yo.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,tt=0;tt<x;tt++){var et=y[tt];if((b===null||b(et))&&!a(et))return!1}return!0},yo.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,tt=0;tt<x;tt++){var et=y[tt];(b===null||b(et))&&a(et)}return this},yo.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,tt=this.qf,et=0;et<b;et++){var nt=y[et];(tt===null||tt(nt))&&x.push(a(nt))}return a=new oi,a.s=x,a.xb(),a.iterator},yo.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,tt=this.qf,et=0;et<b;et++){var nt=y[et];(tt===null||tt(nt))&&a(nt)&&x.push(nt)}return a=new oi,a.s=x,a.xb(),a.iterator},yo.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},yo.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},ge.Object.defineProperties(yo.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,tt=0;tt<b;tt++)a(x[tt])&&y++;return y}return this.Bb.s.length}}}),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="ListIterator";function ko(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}ko.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},ko.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)},ko.prototype.Ad=function(){return this.next()},ko.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},ko.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},ko.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},ko.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},ko.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 oi,a.s=x,a.xb(),a.iterator},ko.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 tt=y[b];a(tt)&&x.push(tt)}return a=new oi,a.s=x,a.xb(),a.iterator},ko.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},ko.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},ge.Object.defineProperties(ko.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),ko.prototype.first=ko.prototype.first,ko.prototype.hasNext=ko.prototype.Ad,ko.prototype.next=ko.prototype.next,ko.prototype.reset=ko.prototype.reset,ko.className="ListIteratorBackwards";function oi(a){si(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&_e("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}St=oi.prototype,St.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},St.freeze=function(){return this._isFrozen=!0,this},St.ka=function(){return this._isFrozen=!1,this},St.toString=function(){return"List()#"+Gi(this)},St.add=function(a){return a===null?this:(this._isFrozen&&ri(this,a),this.s.push(a),this.xb(),this)},St.push=function(a){this.add(a)},St.addAll=function(a){if(a===null)return this;this._isFrozen&&ri(this);var y=this.s;if(un(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},St.clear=function(){this._isFrozen&&ri(this),this.s.length=0,this.xb()},St.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},St.has=function(a){return this.contains(a)},St.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},St.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Ri(a,"0 <= i < length",oi,"elt:i"),y[a]},St.get=function(a){return this.M(a)},St.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Ri(a,"0 <= i < length",oi,"setElt:i"),this._isFrozen&&ri(this,a),x[a]=y},St.set=function(a,y){this.cd(a,y)},St.first=function(){var a=this.s;return a.length===0?null:a[0]},St.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},St.pop=function(){this._isFrozen&&ri(this);var a=this.s;return 0<a.length?a.pop():null},oi.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},oi.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},oi.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},oi.prototype.map=function(a){for(var y=new oi,x=[],b=this.s,tt=b.length,et=0;et<tt;et++)x.push(a(b[et]));return y.s=x,y.xb(),y},oi.prototype.filter=function(a){for(var y=new oi,x=[],b=this.s,tt=b.length,et=0;et<tt;et++){var nt=b[et];a(nt)&&x.push(nt)}return y.s=x,y.xb(),y},St=oi.prototype,St.Gb=function(a,y){0>a&&Ri(a,">= 0",oi,"insertAt:i"),this._isFrozen&&ri(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},St.remove=function(a){if(a===null)return!1;this._isFrozen&&ri(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)},St.delete=function(a){return this.remove(a)},St.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Ri(a,"0 <= i < length",oi,"removeAt:i"),this._isFrozen&&ri(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},St.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&&ri(this);for(var tt=a,et=y+1;et<b;)x[tt++]=x[et++];return x.length=b-(y-a+1),this.xb(),this},oi.prototype.copy=function(){var a=new oi,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},St=oi.prototype,St.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},St.Iv=function(){for(var a=new Ce,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},St.sort=function(a){return this._isFrozen&&ri(this),this.s.sort(a),this.xb(),this},St.zi=function(a,y,x){var b=this.s,tt=b.length;y===void 0&&(y=0),x===void 0&&(x=tt),this._isFrozen&&ri(this);var et=x-y;if(1>=et)return this;if((0>y||y>=tt-1)&&Ri(y,"0 <= from < length",oi,"sortRange:from"),et===2)return x=b[y],tt=b[y+1],0<a(x,tt)&&(b[y]=tt,b[y+1]=x,this.xb()),this;if(y===0)if(x>=tt)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>=tt)for(x=b.slice(y),x.sort(a),a=y;a<tt;a++)b[a]=x[a-y];else for(tt=b.slice(y,x),tt.sort(a),a=y;a<x;a++)b[a]=tt[a-y];return this.xb(),this},St.reverse=function(){return this._isFrozen&&ri(this),this.s.reverse(),this.xb(),this},ge.Object.defineProperties(oi.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 Xr;var a=this.Sa;return a!==null?(a.reset(),a):new yo(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Xr;var a=this.Hg;return a!==null?(a.reset(),a):new ko(this)}}}),oi.prototype.reverse=oi.prototype.reverse,oi.prototype.sortRange=oi.prototype.zi,oi.prototype.sort=oi.prototype.sort,oi.prototype.toSet=oi.prototype.Iv,oi.prototype.toArray=oi.prototype.Fa,oi.prototype.removeRange=oi.prototype.removeRange,oi.prototype.removeAt=oi.prototype.mb,oi.prototype.delete=oi.prototype.delete,oi.prototype.remove=oi.prototype.remove,oi.prototype.insertAt=oi.prototype.Gb,oi.prototype.pop=oi.prototype.pop,oi.prototype.last=oi.prototype.jc,oi.prototype.first=oi.prototype.first,oi.prototype.set=oi.prototype.set,oi.prototype.setElt=oi.prototype.cd,oi.prototype.get=oi.prototype.get,oi.prototype.elt=oi.prototype.M,oi.prototype.indexOf=oi.prototype.indexOf,oi.prototype.has=oi.prototype.has,oi.prototype.contains=oi.prototype.contains,oi.prototype.clear=oi.prototype.clear,oi.prototype.addAll=oi.prototype.addAll,oi.prototype.push=oi.prototype.push,oi.prototype.add=oi.prototype.add,oi.prototype.thaw=oi.prototype.ka,oi.prototype.freeze=oi.prototype.freeze,oi.className="List";function kn(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}kn.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},kn.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)},kn.prototype.Ad=function(){return this.next()},kn.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},kn.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},kn.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},kn.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},kn.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new oi;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},kn.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new oi;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},kn.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},kn.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},ge.Object.defineProperties(kn.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),kn.prototype.first=kn.prototype.first,kn.prototype.hasNext=kn.prototype.Ad,kn.prototype.next=kn.prototype.next,kn.prototype.reset=kn.prototype.reset,kn.className="SetIterator";function Ce(a){si(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&_e("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}St=Ce.prototype,St.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},St.freeze=function(){return this._isFrozen=!0,this},St.ka=function(){return this._isFrozen=!1,this},St.toString=function(){return"Set()#"+Gi(this)},St.add=function(a){if(a===null)return this;this._isFrozen&&ri(this,a);var y=a;return Ge(a)&&(y=Wi(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Jr(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},St.addAll=function(a){if(a===null)return this;if(this._isFrozen&&ri(this),un(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},St.contains=function(a){if(a===null)return!1;var y=a;return Ge(a)&&(y=Gi(a),y===void 0)?!1:this.Tb[y]!==void 0},St.has=function(a){return this.contains(a)},St.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},St.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},St.first=function(){var a=this.ea;return a===null?null:a.value},Ce.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Ce.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Ce.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Ce.prototype.map=function(a){for(var y=new Ce,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Ce.prototype.filter=function(a){for(var y=new Ce,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},St=Ce.prototype,St.remove=function(a){if(a===null)return!1;this._isFrozen&&ri(this,a);var y=a;if(Ge(a)&&(y=Gi(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},St.delete=function(a){return this.remove(a)},St.hp=function(a){if(a===null)return this;if(this._isFrozen&&ri(this),un(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},St.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&ri(this);var y=new Ce;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},St.clear=function(){this._isFrozen&&ri(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Ce.prototype.copy=function(){var a=new Ce,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Ce.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},Ce.prototype.Hv=function(){var a=new oi,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function si(a){a.__gohashid=Tr++}function Wi(a){var y=a.__gohashid;return y===void 0&&(y=Tr++,a.__gohashid=y),y}function Gi(a){return a.__gohashid}ge.Object.defineProperties(Ce.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Xr;var a=this.Sa;return a!==null?(a.reset(),a):new kn(this)}}}),Ce.prototype.toList=Ce.prototype.Hv,Ce.prototype.toArray=Ce.prototype.Fa,Ce.prototype.clear=Ce.prototype.clear,Ce.prototype.retainAll=Ce.prototype.pA,Ce.prototype.removeAll=Ce.prototype.hp,Ce.prototype.delete=Ce.prototype.delete,Ce.prototype.remove=Ce.prototype.remove,Ce.prototype.first=Ce.prototype.first,Ce.prototype.containsAny=Ce.prototype.Ty,Ce.prototype.containsAll=Ce.prototype.Sy,Ce.prototype.has=Ce.prototype.has,Ce.prototype.contains=Ce.prototype.contains,Ce.prototype.addAll=Ce.prototype.addAll,Ce.prototype.add=Ce.prototype.add,Ce.prototype.thaw=Ce.prototype.ka,Ce.prototype.freeze=Ce.prototype.freeze;var Tr=1;Ce.className="Set",Ce.uniqueHash=si,Ce.hashIdUnique=Wi,Ce.hashId=Gi;function Lr(a){this.ma=a,this.qa=a.Ja,this.sa=null}Lr.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Lr.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)},Lr.prototype.Ad=function(){return this.next()},Lr.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},Lr.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},Lr.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},Lr.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},Lr.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new oi;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Lr.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new oi;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},Lr.prototype.de=function(){this.value=this.key=null,this.qa=-1},Lr.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},ge.Object.defineProperties(Lr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Lr.prototype.first=Lr.prototype.first,Lr.prototype.hasNext=Lr.prototype.Ad,Lr.prototype.next=Lr.prototype.next,Lr.prototype.reset=Lr.prototype.reset,Lr.className="MapKeySetIterator";function Cr(a){Ce.call(this),si(this),this._isFrozen=!0,this.ma=a}Nn(Cr,Ce),St=Cr.prototype,St.freeze=function(){return this},St.ka=function(){return this},St.toString=function(){return"MapKeySet("+this.ma.toString()+")"},St.add=function(){_e("This Set is read-only: "+this.toString())},St.contains=function(a){return this.ma.contains(a)},St.has=function(a){return this.contains(a)},St.remove=function(){_e("This Set is read-only: "+this.toString())},St.delete=function(a){return this.remove(a)},St.clear=function(){_e("This Set is read-only: "+this.toString())},St.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Cr.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Cr.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Cr.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Cr.prototype.map=function(a){for(var y=new Ce,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Cr.prototype.filter=function(a){for(var y=new Ce,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},Cr.prototype.copy=function(){return new Cr(this.ma)},Cr.prototype.Iv=function(){var a=new Ce,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Cr.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},Cr.prototype.Hv=function(){var a=new oi,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},ge.Object.defineProperties(Cr.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Xr:new Lr(this.ma)}}}),Cr.prototype.toList=Cr.prototype.Hv,Cr.prototype.toArray=Cr.prototype.Fa,Cr.prototype.toSet=Cr.prototype.Iv,Cr.prototype.first=Cr.prototype.first,Cr.prototype.clear=Cr.prototype.clear,Cr.prototype.delete=Cr.prototype.delete,Cr.prototype.remove=Cr.prototype.remove,Cr.prototype.has=Cr.prototype.has,Cr.prototype.contains=Cr.prototype.contains,Cr.prototype.add=Cr.prototype.add,Cr.prototype.thaw=Cr.prototype.ka,Cr.prototype.freeze=Cr.prototype.freeze,Cr.className="MapKeySet";function jr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}jr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},jr.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)},jr.prototype.Ad=function(){return this.next()},jr.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},jr.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},jr.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},jr.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},jr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new oi;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},jr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new oi;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},jr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},jr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},ge.Object.defineProperties(jr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),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="MapValueSetIterator";function Jr(a,y){this.key=a,this.value=y,this.ll=this.va=null}Jr.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Jr.className="KeyValuePair";function Wr(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Wr.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Wr.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)},Wr.prototype.Ad=function(){return this.next()},Wr.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},Wr.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},Wr.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},Wr.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},Wr.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new oi;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Wr.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new oi;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Wr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Wr.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},ge.Object.defineProperties(Wr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Wr.prototype.first=Wr.prototype.first,Wr.prototype.hasNext=Wr.prototype.Ad,Wr.prototype.next=Wr.prototype.next,Wr.prototype.reset=Wr.prototype.reset,Wr.className="MapIterator";function or(a){si(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"&&_e("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}St=or.prototype,St.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},St.freeze=function(){return this._isFrozen=!0,this},St.ka=function(){return this._isFrozen=!1,this},St.toString=function(){return"Map()#"+Gi(this)},St.add=function(a,y){this._isFrozen&&ri(this,a);var x=a;Ge(a)&&(x=Wi(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new Jr(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},St.set=function(a,y){return this.add(a,y)},St.addAll=function(a){if(a===null)return this;if(un(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 or)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},St.first=function(){return this.ea},or.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},or.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},or.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},or.prototype.map=function(a){for(var y=new or,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},or.prototype.filter=function(a){for(var y=new or,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},St=or.prototype,St.contains=function(a){var y=a;return Ge(a)&&(y=Gi(a),y===void 0)?!1:this.Tb[y]!==void 0},St.has=function(a){return this.contains(a)},St.I=function(a){var y=a;return Ge(a)&&(y=Gi(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},St.get=function(a){return this.I(a)},St.remove=function(a){if(a===null)return!1;this._isFrozen&&ri(this,a);var y=a;if(Ge(a)&&(y=Gi(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},St.delete=function(a){return this.remove(a)},St.clear=function(){this._isFrozen&&ri(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()},or.prototype.copy=function(){var a=new or,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},or.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,b;for(b in a){var tt=a[b];y[x]=new Jr(tt.key,tt.value),x++}return y},or.prototype.Lf=function(){return new Cr(this)},ge.Object.defineProperties(or.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Xr;var a=this.Sa;return a!==null?(a.reset(),a):new Wr(this)}},iteratorKeys:{get:function(){return 0>=this.count?Xr:new Lr(this)}},iteratorValues:{get:function(){if(0>=this.count)return Xr;var a=this.jf;return a!==null?(a.reset(),a):new jr(this)}}}),or.prototype.toKeySet=or.prototype.Lf,or.prototype.toArray=or.prototype.Fa,or.prototype.clear=or.prototype.clear,or.prototype.delete=or.prototype.delete,or.prototype.remove=or.prototype.remove,or.prototype.get=or.prototype.get,or.prototype.getValue=or.prototype.I,or.prototype.has=or.prototype.has,or.prototype.contains=or.prototype.contains,or.prototype.first=or.prototype.first,or.prototype.addAll=or.prototype.addAll,or.prototype.set=or.prototype.set,or.prototype.add=or.prototype.add,or.prototype.thaw=or.prototype.ka,or.prototype.freeze=or.prototype.freeze,or.className="Map";function Gt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):_e("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Zn,wi,Fi,Tt,ee;Gt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Gt.prototype.h=function(a,y){return this.x=a,this.y=y,this},Gt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Gt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Gt.prototype.copy=function(){var a=new Gt;return a.x=this.x,a.y=this.y,a},St=Gt.prototype,St.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},St.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},St.freeze=function(){return this._isFrozen=!0,this},St.ka=function(){return Object.isFrozen(this)&&_e("cannot thaw constant: "+this),this._isFrozen=!1,this};function le(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 tt=0;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),new Gt(x,tt)}return new Gt}function xe(a){return a.x.toString()+" "+a.y.toString()}St.toString=function(){return"Point("+this.x+","+this.y+")"},St.D=function(a){return a instanceof Gt?this.x===a.x&&this.y===a.y:!1},St.hi=function(a,y){return this.x===a&&this.y===y},St.Xa=function(a){return Ke.B(this.x,a.x)&&Ke.B(this.y,a.y)},St.add=function(a){return this.x+=a.x,this.y+=a.y,this},St.re=function(a){return this.x-=a.x,this.y-=a.y,this},St.offset=function(a,y){return this.x+=a,this.y+=y,this},Gt.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},St=Gt.prototype,St.scale=function(a,y){return this.x*=a,this.y*=y,this},St.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},St.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},St.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},St.ab=function(a){return fe(a.x-this.x,a.y-this.y)},St.direction=function(a,y){return fe(a-this.x,y-this.y)};function fe(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}St.Ry=function(a,y){return Ke.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},St.fA=function(a,y,x,b){return Ke.qh(a,y,x,b,this.x,this.y,this),this},St.gA=function(a,y){return Ke.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},St.uA=function(a,y,x,b){return Ke.No(this.x,this.y,a,y,x,b,this),this},St.vA=function(a,y){return Ke.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},St.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},St.yi=function(a,y,x,b,tt){return this.x=a+tt.x*x+tt.offsetX,this.y=y+tt.y*b+tt.offsetY,this},St.transform=function(a){return a.Ga(this),this};function Ee(a,y){return y.Cd(a),a}function Ae(a,y,x,b,tt,et){var nt=tt-x,ot=et-b,at=nt*nt+ot*ot;x-=a,b-=y;var ut=-x*nt-b*ot;return 0>=ut||ut>=at?(nt=tt-a,ot=et-y,Math.min(x*x+b*b,nt*nt+ot*ot)):(a=nt*b-ot*x,a*a/at)}function yn(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function Rn(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)}St.w=function(){return isFinite(this.x)&&isFinite(this.y)},Gt.alloc=function(){var a=Pi.pop();return a===void 0?new Gt:a},Gt.allocAt=function(a,y){var x=Pi.pop();return x===void 0?new Gt(a,y):(x.x=a,x.y=y,x)},Gt.free=function(a){Pi.push(a)},Gt.prototype.isReal=Gt.prototype.w,Gt.prototype.setSpot=Gt.prototype.yi,Gt.prototype.setRectSpot=Gt.prototype.xi,Gt.prototype.snapToGridPoint=Gt.prototype.vA,Gt.prototype.snapToGrid=Gt.prototype.uA,Gt.prototype.projectOntoLineSegmentPoint=Gt.prototype.gA,Gt.prototype.projectOntoLineSegment=Gt.prototype.fA,Gt.intersectingLineSegments=function(a,y,x,b,tt,et,nt,ot){return Ke.Rl(a,y,x,b,tt,et,nt,ot)},Gt.prototype.compareWithLineSegmentPoint=Gt.prototype.Ry,Gt.compareWithLineSegment=function(a,y,x,b,tt,et){return Ke.Fl(a,y,x,b,tt,et)},Gt.prototype.direction=Gt.prototype.direction,Gt.prototype.directionPoint=Gt.prototype.ab,Gt.prototype.normalize=Gt.prototype.normalize,Gt.prototype.distanceSquared=Gt.prototype.zd,Gt.prototype.distanceSquaredPoint=Gt.prototype.Bf,Gt.prototype.scale=Gt.prototype.scale,Gt.prototype.rotate=Gt.prototype.rotate,Gt.prototype.offset=Gt.prototype.offset,Gt.prototype.subtract=Gt.prototype.re,Gt.prototype.add=Gt.prototype.add,Gt.prototype.equalsApprox=Gt.prototype.Xa,Gt.prototype.equalTo=Gt.prototype.hi,Gt.prototype.equals=Gt.prototype.D,Gt.prototype.set=Gt.prototype.set,Gt.prototype.setTo=Gt.prototype.sg;var Pi=[];Gt.className="Point",Gt.parse=le,Gt.stringify=xe,Gt.distanceLineSegmentSquared=Ae,Gt.distanceSquared=yn,Gt.direction=Rn,Gt.Origin=Zn=new Gt(0,0).ja(),Gt.InfiniteTopLeft=wi=new Gt(-1/0,-1/0).ja(),Gt.InfiniteBottomRight=Fi=new Gt(1/0,1/0).ja(),Gt.SixPoint=Tt=new Gt(6,6).ja(),Gt.NoPoint=ee=new Gt(NaN,NaN).ja(),Gt.parse=le,Gt.stringify=xe,Gt.distanceLineSegmentSquared=Ae,Gt.distanceSquared=yn,Gt.direction=Rn;function An(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):_e("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Mi,pi,di,Wn,Bi,sr,_i;An.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},An.prototype.h=function(a,y){return this.width=a,this.height=y,this},An.prototype.sg=function(a,y){return this.width=a,this.height=y,this},An.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},An.prototype.copy=function(){var a=new An;return a.width=this.width,a.height=this.height,a},St=An.prototype,St.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},St.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},St.freeze=function(){return this._isFrozen=!0,this},St.ka=function(){return Object.isFrozen(this)&&_e("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ui(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 tt=0;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),new An(x,tt)}return new An}function qi(a){return a.width.toString()+" "+a.height.toString()}St.toString=function(){return"Size("+this.width+","+this.height+")"},St.D=function(a){return a instanceof An?this.width===a.width&&this.height===a.height:!1},St.hi=function(a,y){return this.width===a&&this.height===y},St.Xa=function(a){return Ke.B(this.width,a.width)&&Ke.B(this.height,a.height)},St.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},St.w=function(){return isFinite(this.width)&&isFinite(this.height)},An.alloc=function(){var a=lr.pop();return a===void 0?new An:a},An.free=function(a){lr.push(a)},An.prototype.isReal=An.prototype.w,An.prototype.inflate=An.prototype.Bc,An.prototype.equalsApprox=An.prototype.Xa,An.prototype.equalTo=An.prototype.hi,An.prototype.equals=An.prototype.D,An.prototype.set=An.prototype.set,An.prototype.setTo=An.prototype.sg;var lr=[];An.className="Size",An.parse=Ui,An.stringify=qi,An.ZeroSize=Mi=new An(0,0).ja(),An.OneSize=pi=new An(1,1).ja(),An.SixSize=di=new An(6,6).ja(),An.EightSize=Wn=new An(8,8).ja(),An.TenSize=Bi=new An(10,10).ja(),An.InfiniteSize=sr=new An(1/0,1/0).ja(),An.NoSize=_i=new An(NaN,NaN).ja(),An.parse=Ui,An.stringify=qi;function je(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 Gt?(x=a.x,a=a.y,y instanceof Gt?(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 An?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):_e("Incorrect second argument supplied to Rect constructor "+y)):_e("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}St=je.prototype,St.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},St.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function ve(a,y,x){a.width=y,a.height=x}St.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},St.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},St.dd=function(a){return this.x=a.x,this.y=a.y,this},St.tA=function(a){return this.width=a.width,this.height=a.height,this},je.prototype.copy=function(){var a=new je;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},St=je.prototype,St.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},St.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},St.freeze=function(){return this._isFrozen=!0,this},St.ka=function(){return Object.isFrozen(this)&&_e("cannot thaw constant: "+this),this._isFrozen=!1,this};function ke(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 tt=0;a[y]==="";)y++;(b=a[y++])&&(tt=parseFloat(b));for(var et=0;a[y]==="";)y++;(b=a[y++])&&(et=parseFloat(b));for(var nt=0;a[y]==="";)y++;return(b=a[y++])&&(nt=parseFloat(b)),new je(x,tt,et,nt)}return new je}function xn(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}St.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},St.D=function(a){return a instanceof je?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},St.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},St.Xa=function(a){return Ke.B(this.x,a.x)&&Ke.B(this.y,a.y)&&Ke.B(this.width,a.width)&&Ke.B(this.height,a.height)};function cn(a,y){return Ke.$(a.x,y.x)&&Ke.$(a.y,y.y)&&Ke.$(a.width,y.width)&&Ke.$(a.height,y.height)}St.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},St.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},St.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},St.offset=function(a,y){return this.x+=a,this.y+=y,this},St.Bc=function(a,y){return ni(this,y,a,y,a)},St.Co=function(a){return ni(this,a.top,a.right,a.bottom,a.left)},St.Fv=function(a){return ni(this,-a.top,-a.right,-a.bottom,-a.left)},St.Hz=function(a,y,x,b){return ni(this,a,y,x,b)};function ni(a,y,x,b,tt){var et=a.width;return x+tt<=-et?(a.x+=et/2,a.width=0):(a.x-=tt,a.width+=x+tt),x=a.height,y+b<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+b),a}St.Ex=function(a){return Ti(this,a.x,a.y,a.width,a.height)},St.Uu=function(a,y,x,b){return Ti(this,a,y,x,b)};function Ti(a,y,x,b,tt){var et=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+tt),a.x=et,a.y=nt,a.width=Math.max(0,y-et),a.height=Math.max(0,x-nt),a}St.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},St.Vu=function(a,y,x,b){var tt=this.width,et=this.x;return tt!==1/0&&x!==1/0&&(tt+=et,x+=a,isNaN(x)||isNaN(tt)||et>x||a>tt)?!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 qe(a,y){var x=a.width,b=a.x,tt=y.x-10;return b>y.width+10+10+tt||tt>x+b?!1:(x=a.height,a=a.y,b=y.y-10,!(a>y.height+10+10+b||b>x+a))}St.Ye=function(a){return Je(this,a.x,a.y,0,0)},St.ed=function(a){return Je(this,a.x,a.y,a.width,a.height)},St.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),Je(this,a,y,x,b)};function Je(a,y,x,b,tt){var et=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+tt),a.x=et,a.y=nt,a.width=y-et,a.height=x-nt,a}St.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 sn(a,y,x,b,tt,et,nt,ot){return nt===void 0&&(nt=0),ot===void 0&&(ot=0),a<=tt&&tt+nt<=a+x&&y<=et&&et+ot<=y+b}function hn(a,y,x,b,tt,et,nt,ot){return a>nt+tt||tt>x+a?!1:!(y>ot+et||et>b+y)}St.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},St.Mz=function(){return this.width===0&&this.height===0},je.alloc=function(){var a=li.pop();return a===void 0?new je:a},je.allocAt=function(a,y,x,b){var tt=li.pop();return tt===void 0?new je(a,y,x,b):tt.h(a,y,x,b)},je.free=function(a){li.push(a)},ge.Object.defineProperties(je.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 Gt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new An(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Gt(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}}}),je.prototype.isEmpty=je.prototype.Mz,je.prototype.isReal=je.prototype.w,je.intersectsLineSegment=function(a,y,x,b,tt,et,nt,ot){return Ke.Fx(a,y,x,b,tt,et,nt,ot)},je.prototype.setSpot=je.prototype.yi,je.prototype.union=je.prototype.Kv,je.prototype.unionRect=je.prototype.ed,je.prototype.unionPoint=je.prototype.Ye,je.prototype.intersects=je.prototype.Vu,je.prototype.intersectsRect=je.prototype.Yc,je.prototype.intersect=je.prototype.Uu,je.prototype.intersectRect=je.prototype.Ex,je.prototype.grow=je.prototype.Hz,je.prototype.subtractMargin=je.prototype.Fv,je.prototype.addMargin=je.prototype.Co,je.prototype.inflate=je.prototype.Bc,je.prototype.offset=je.prototype.offset,je.prototype.contains=je.prototype.contains,je.prototype.containsRect=je.prototype.Re,je.prototype.containsPoint=je.prototype.ca,je.prototype.equalsApprox=je.prototype.Xa,je.prototype.equalTo=je.prototype.hi,je.prototype.equals=je.prototype.D,je.prototype.setSize=je.prototype.tA,je.prototype.setPoint=je.prototype.dd,je.prototype.set=je.prototype.set,je.prototype.setTo=je.prototype.sg;var bi=null,zi=null,li=[];je.className="Rect",je.parse=ke,je.stringify=xn,je.contains=sn,je.intersects=hn,je.ZeroRect=bi=new je(0,0,0,0).ja(),je.NoRect=zi=new je(NaN,NaN,NaN,NaN).ja(),je.parse=ke,je.stringify=xn,je.contains=sn,je.intersects=hn;function Kn(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):_e("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Kn.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Kn.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},Kn.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Kn.prototype.copy=function(){var a=new Kn;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},St=Kn.prototype,St.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},St.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},St.freeze=function(){return this._isFrozen=!0,this},St.ka=function(){return Object.isFrozen(this)&&_e("cannot thaw constant: "+this),this._isFrozen=!1,this};function ur(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 Kn;for(var tt=NaN;a[y]==="";)y++;if((b=a[y++])&&(tt=parseFloat(b)),isNaN(tt))return new Kn(x);for(var et=NaN;a[y]==="";)y++;if((b=a[y++])&&(et=parseFloat(b)),isNaN(et))return new Kn(x,tt);for(var nt=NaN;a[y]==="";)y++;return(b=a[y++])&&(nt=parseFloat(b)),isNaN(nt)?new Kn(x,tt):new Kn(x,tt,et,nt)}return new Kn}function Ln(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}St.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},St.D=function(a){return a instanceof Kn?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},St.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},St.Xa=function(a){return Ke.B(this.top,a.top)&&Ke.B(this.right,a.right)&&Ke.B(this.bottom,a.bottom)&&Ke.B(this.left,a.left)},St.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Kn.alloc=function(){var a=Ei.pop();return a===void 0?new Kn:a},Kn.free=function(a){Ei.push(a)},Kn.prototype.isReal=Kn.prototype.w,Kn.prototype.equalsApprox=Kn.prototype.Xa,Kn.prototype.equalTo=Kn.prototype.hi,Kn.prototype.equals=Kn.prototype.D,Kn.prototype.set=Kn.prototype.set,Kn.prototype.setTo=Kn.prototype.sg;var wn=null,_n=null,Ei=[];Kn.className="Margin",Kn.parse=ur,Kn.stringify=Ln,Kn.ZeroMargin=wn=new Kn(0,0,0,0).ja(),Kn.TwoMargin=_n=new Kn(2,2,2,2).ja(),Kn.parse=ur,Kn.stringify=Ln;function gn(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 Ji,er,Qi,Ir,Fr,yr,xo,No,mo,oo,to,Io,so,Zr,Oo,Uo,Ls,bs,ms,ds,es,jo,Is,Yo,Lo,Ao,Ps,os,xs,Vo,fs,gs,is,vs,Hs,ua;gn.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},gn.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},gn.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},gn.prototype.copy=function(){var a=new gn;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},St=gn.prototype,St.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},St.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},St.freeze=function(){return this._isFrozen=!0,this},St.ka=function(){return Object.isFrozen(this)&&_e("cannot thaw constant: "+this),this._isFrozen=!1,this};function ss(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function _s(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Ji;if(a==="TopLeft")return er;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Qi;if(a==="TopRight")return Ir;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Fr;if(a==="Center")return yr;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return xo;if(a==="BottomLeft")return No;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return mo;if(a==="BottomRight")return oo;if(a==="TopSide")return to;if(a==="LeftSide")return Io;if(a==="RightSide")return so;if(a==="BottomSide")return Zr;if(a==="TopBottomSides")return Oo;if(a==="LeftRightSides")return Uo;if(a==="TopLeftSides")return Ls;if(a==="TopRightSides")return bs;if(a==="BottomLeftSides")return ms;if(a==="BottomRightSides")return ds;if(a==="NotTopSide")return es;if(a==="NotLeftSide")return jo;if(a==="NotRightSide")return Is;if(a==="NotBottomSide")return Yo;if(a==="AllSides")return Lo;if(a==="Default")return Ao;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 tt=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(tt=parseFloat(b));for(var et=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(et=parseFloat(b));for(var nt=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(nt=parseFloat(b)),new gn(x,tt,et,nt)}return new gn}function Ea(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}St.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(Ji)?"None":this.D(er)?"TopLeft":this.D(Qi)?"Top":this.D(Ir)?"TopRight":this.D(Fr)?"Left":this.D(yr)?"Center":this.D(xo)?"Right":this.D(No)?"BottomLeft":this.D(mo)?"Bottom":this.D(oo)?"BottomRight":this.D(to)?"TopSide":this.D(Io)?"LeftSide":this.D(so)?"RightSide":this.D(Zr)?"BottomSide":this.D(Oo)?"TopBottomSides":this.D(Uo)?"LeftRightSides":this.D(Ls)?"TopLeftSides":this.D(bs)?"TopRightSides":this.D(ms)?"BottomLeftSides":this.D(ds)?"BottomRightSides":this.D(es)?"NotTopSide":this.D(jo)?"NotLeftSide":this.D(Is)?"NotRightSide":this.D(Yo)?"NotBottomSide":this.D(Lo)?"AllSides":this.D(Ao)?"Default":"None"},St.D=function(a){return a instanceof gn?(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},St.gv=function(){return new gn(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},St.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(Ps))a=Io;else if(a.D(os))a=so;else if(a.D(xs))a=to;else if(a.D(Vo))a=Zr;else return!1;return a=a.offsetY,(this.offsetY&a)===a},St.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},St.Mc=function(){return isNaN(this.x)||isNaN(this.y)},St.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},St.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},St.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},gn.alloc=function(){var a=ya.pop();return a===void 0?new gn:a},gn.free=function(a){ya.push(a)},gn.prototype.isDefault=gn.prototype.Xb,gn.prototype.isNone=gn.prototype.ys,gn.prototype.isSide=gn.prototype.$c,gn.prototype.isNoSpot=gn.prototype.Mc,gn.prototype.isSpot=gn.prototype.sb,gn.prototype.includesSide=gn.prototype.Hf,gn.prototype.opposite=gn.prototype.gv,gn.prototype.equals=gn.prototype.D,gn.prototype.set=gn.prototype.set,gn.prototype.setTo=gn.prototype.sg;var ya=[];gn.className="Spot",gn.parse=_s,gn.stringify=Ea,gn.None=Ji=ss(new gn(0,0,0,0),0).ja(),gn.Default=Ao=ss(new gn(0,0,-1,0),-1).ja(),gn.TopLeft=er=new gn(0,0,0,0).ja(),gn.TopCenter=Qi=new gn(.5,0,0,0).ja(),gn.TopRight=Ir=new gn(1,0,0,0).ja(),gn.LeftCenter=Fr=new gn(0,.5,0,0).ja(),gn.Center=yr=new gn(.5,.5,0,0).ja(),gn.RightCenter=xo=new gn(1,.5,0,0).ja(),gn.BottomLeft=No=new gn(0,1,0,0).ja(),gn.BottomCenter=mo=new gn(.5,1,0,0).ja(),gn.BottomRight=oo=new gn(1,1,0,0).ja(),gn.MiddleTop=fs=Qi,gn.MiddleLeft=gs=Fr,gn.MiddleRight=is=xo,gn.MiddleBottom=vs=mo,gn.Top=xs=Qi,gn.Left=Ps=Fr,gn.Right=os=xo,gn.Bottom=Vo=mo,gn.TopSide=to=ss(new gn(0,0,1,1),1).ja(),gn.LeftSide=Io=ss(new gn(0,0,1,2),1).ja(),gn.RightSide=so=ss(new gn(0,0,1,4),1).ja(),gn.BottomSide=Zr=ss(new gn(0,0,1,8),1).ja(),gn.TopBottomSides=Oo=ss(new gn(0,0,1,9),1).ja(),gn.LeftRightSides=Uo=ss(new gn(0,0,1,6),1).ja(),gn.TopLeftSides=Ls=ss(new gn(0,0,1,3),1).ja(),gn.TopRightSides=bs=ss(new gn(0,0,1,5),1).ja(),gn.BottomLeftSides=ms=ss(new gn(0,0,1,10),1).ja(),gn.BottomRightSides=ds=ss(new gn(0,0,1,12),1).ja(),gn.NotTopSide=es=ss(new gn(0,0,1,14),1).ja(),gn.NotLeftSide=jo=ss(new gn(0,0,1,13),1).ja(),gn.NotRightSide=Is=ss(new gn(0,0,1,11),1).ja(),gn.NotBottomSide=Yo=ss(new gn(0,0,1,7),1).ja(),gn.AllSides=Lo=ss(new gn(0,0,1,15),1).ja(),Hs=new gn(.156,.156).ja(),ua=new gn(.844,.844).ja(),gn.parse=_s,gn.stringify=Ea;function Hr(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Hr.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},Hr.prototype.setTransform=function(a,y,x,b,tt,et){return this.m11=a,this.m12=y,this.m21=x,this.m22=b,this.dx=tt,this.dy=et,this},Hr.prototype.copy=function(){var a=new Hr;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},Hr.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Hr.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},Hr.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Hr.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Hr.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,tt=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=tt,this},Hr.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,b=-a.m12*y,tt=-a.m21*y,et=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*tt+this.m21*et,tt=this.m12*tt+this.m22*et,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=tt,this},Hr.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,tt=a*(this.m21*this.dy-this.m22*this.dx),et=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=tt,this.dy=et,this},Hr.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 tt=this.m12*a+this.m22*b,et=this.m11*-b+this.m21*a,nt=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=tt,this.m21=et,this.m22=nt,this.translate(-y,-x),this},St=Hr.prototype,St.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},St.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},St.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)},St.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))},St.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))},St.pp=function(a){var y=a.x,x=a.y,b=y+a.width,tt=x+a.height,et=this.m11,nt=this.m12,ot=this.m21,at=this.m22,ut=this.dx,ht=this.dy,gt=y*et+x*ot+ut,bt=y*nt+x*at+ht,Mt=b*et+x*ot+ut,Et=b*nt+x*at+ht;return x=y*et+tt*ot+ut,y=y*nt+tt*at+ht,et=b*et+tt*ot+ut,b=b*nt+tt*at+ht,tt=Math.min(gt,Mt),gt=Math.max(gt,Mt),Mt=Math.min(bt,Et),bt=Math.max(bt,Et),tt=Math.min(tt,x),gt=Math.max(gt,x),Mt=Math.min(Mt,y),bt=Math.max(bt,y),tt=Math.min(tt,et),gt=Math.max(gt,et),Mt=Math.min(Mt,b),bt=Math.max(bt,b),a.h(tt,Mt,gt-tt,bt-Mt),a},Hr.alloc=function(){var a=na.pop();return a===void 0?new Hr:a},Hr.free=function(a){na.push(a)},Hr.prototype.transformRect=Hr.prototype.pp,Hr.prototype.transformPoint=Hr.prototype.Ga,Hr.prototype.scale=Hr.prototype.scale,Hr.prototype.translate=Hr.prototype.translate,Hr.prototype.rotate=Hr.prototype.rotate,Hr.prototype.invert=Hr.prototype.Vj,Hr.prototype.multiplyInverted=Hr.prototype.bv,Hr.prototype.multiply=Hr.prototype.multiply,Hr.prototype.reset=Hr.prototype.reset,Hr.prototype.isIdentity=Hr.prototype.ws,Hr.prototype.equals=Hr.prototype.D,Hr.prototype.setTransform=Hr.prototype.setTransform,Hr.prototype.set=Hr.prototype.set;var na=[];Hr.className="Transform",Hr.xF="54a702f3e53909c447824c6706603faf4c";var Ke={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Ke.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Ke.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,tt,et,nt){if(0>=tt&&(tt=1e-6),a<x)var ot=a,at=x;else ot=x,at=a;if(y<b)var ut=y,ht=b;else ut=b,ht=y;if(a===x)return ut<=nt&&nt<=ht&&a-tt<=et&&et<=a+tt;if(y===b)return ot<=et&&et<=at&&y-tt<=nt&&nt<=y+tt;if(at+=tt,ot-=tt,ot<=et&&et<=at&&(ht+=tt,ut-=tt,ut<=nt&&nt<=ht))if(at-ot>ht-ut)if(a-x>tt||x-a>tt){if(et=(b-y)/(x-a)*(et-a)+y,et-tt<=nt&&nt<=et+tt)return!0}else return!0;else if(y-b>tt||b-y>tt){if(nt=(x-a)/(b-y)*(nt-y)+a,nt-tt<=et&&et<=nt+tt)return!0}else return!0;return!1},cs:function(a,y,x,b,tt,et,nt,ot,at,ut,ht,gt){if(Ke.Yb(a,y,nt,ot,gt,x,b)&&Ke.Yb(a,y,nt,ot,gt,tt,et))return Ke.Yb(a,y,nt,ot,gt,ut,ht);var bt=(a+x)/2,Mt=(y+b)/2,Et=(x+tt)/2,Bt=(b+et)/2;tt=(tt+nt)/2,et=(et+ot)/2,b=(bt+Et)/2,x=(Mt+Bt)/2,Et=(Et+tt)/2,Bt=(Bt+et)/2;var se=(b+Et)/2,Jt=(x+Bt)/2;return Ke.cs(a,y,bt,Mt,b,x,se,Jt,at,ut,ht,gt)||Ke.cs(se,Jt,Et,Bt,tt,et,nt,ot,at,ut,ht,gt)},ax:function(a,y,x,b,tt,et,nt,ot,at){var ut=(x+tt)/2,ht=(b+et)/2;return at.h((((a+x)/2+ut)/2+(ut+(tt+nt)/2)/2)/2,(((y+b)/2+ht)/2+(ht+(et+ot)/2)/2)/2),at},My:function(a,y,x,b,tt,et,nt,ot){var at=(x+tt)/2,ut=(b+et)/2;return Rn(((a+x)/2+at)/2,((y+b)/2+ut)/2,(at+(tt+nt)/2)/2,(ut+(et+ot)/2)/2)},Dl:function(a,y,x,b,tt,et,nt,ot,at,ut){if(Ke.Yb(a,y,nt,ot,at,x,b)&&Ke.Yb(a,y,nt,ot,at,tt,et))Je(ut,a,y,0,0),Je(ut,nt,ot,0,0);else{var ht=(a+x)/2,gt=(y+b)/2,bt=(x+tt)/2,Mt=(b+et)/2;tt=(tt+nt)/2,et=(et+ot)/2,b=(ht+bt)/2,x=(gt+Mt)/2,bt=(bt+tt)/2,Mt=(Mt+et)/2;var Et=(b+bt)/2,Bt=(x+Mt)/2;Ke.Dl(a,y,ht,gt,b,x,Et,Bt,at,ut),Ke.Dl(Et,Bt,bt,Mt,tt,et,nt,ot,at,ut)}return ut},Qe:function(a,y,x,b,tt,et,nt,ot,at,ut){if(Ke.Yb(a,y,nt,ot,at,x,b)&&Ke.Yb(a,y,nt,ot,at,tt,et))ut.length===0&&(ut.push(a),ut.push(y)),ut.push(nt),ut.push(ot);else{var ht=(a+x)/2,gt=(y+b)/2,bt=(x+tt)/2,Mt=(b+et)/2;tt=(tt+nt)/2,et=(et+ot)/2,b=(ht+bt)/2,x=(gt+Mt)/2,bt=(bt+tt)/2,Mt=(Mt+et)/2;var Et=(b+bt)/2,Bt=(x+Mt)/2;Ke.Qe(a,y,ht,gt,b,x,Et,Bt,at,ut),Ke.Qe(Et,Bt,bt,Mt,tt,et,nt,ot,at,ut)}return ut},jv:function(a,y,x,b,tt,et,nt,ot,at,ut){if(Ke.Yb(a,y,tt,et,ut,x,b))return Ke.Yb(a,y,tt,et,ut,ot,at);var ht=(a+x)/2,gt=(y+b)/2;x=(x+tt)/2,b=(b+et)/2;var bt=(ht+x)/2,Mt=(gt+b)/2;return Ke.jv(a,y,ht,gt,bt,Mt,nt,ot,at,ut)||Ke.jv(bt,Mt,x,b,tt,et,nt,ot,at,ut)},OA:function(a,y,x,b,tt,et,nt){return nt.h(((a+x)/2+(x+tt)/2)/2,((y+b)/2+(b+et)/2)/2),nt},iv:function(a,y,x,b,tt,et,nt,ot){if(Ke.Yb(a,y,tt,et,nt,x,b))Je(ot,a,y,0,0),Je(ot,tt,et,0,0);else{var at=(a+x)/2,ut=(y+b)/2;x=(x+tt)/2,b=(b+et)/2;var ht=(at+x)/2,gt=(ut+b)/2;Ke.iv(a,y,at,ut,ht,gt,nt,ot),Ke.iv(ht,gt,x,b,tt,et,nt,ot)}return ot},ep:function(a,y,x,b,tt,et,nt,ot){if(Ke.Yb(a,y,tt,et,nt,x,b))ot.length===0&&(ot.push(a),ot.push(y)),ot.push(tt),ot.push(et);else{var at=(a+x)/2,ut=(y+b)/2;x=(x+tt)/2,b=(b+et)/2;var ht=(at+x)/2,gt=(ut+b)/2;Ke.ep(a,y,at,ut,ht,gt,nt,ot),Ke.ep(ht,gt,x,b,tt,et,nt,ot)}return ot},Eo:function(a,y,x,b,tt,et,nt,ot,at,ut,ht,gt,bt,Mt){if(Ke.Yb(a,y,nt,ot,bt,x,b)&&Ke.Yb(a,y,nt,ot,bt,tt,et))return!Ke.Rl(a,y,nt,ot,at,ut,ht,gt)||(bt=(a-nt)*(ut-gt)-(y-ot)*(at-ht),bt===0)?!1:(Mt.h(((a*ot-y*nt)*(at-ht)-(a-nt)*(at*gt-ut*ht))/bt,((a*ot-y*nt)*(ut-gt)-(y-ot)*(at*gt-ut*ht))/bt),!0);var Et=(a+x)/2,Bt=(y+b)/2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fo(me,Se,se,Jt,tt,et,nt,ot,at,ut,ht,gt,bt)}return Mt},qh:function(a,y,x,b,tt,et,nt){return Ke.$(a,x)?(y<b?(x=y,y=b):x=b,et<x?(nt.h(a,x),!1):et>y?(nt.h(a,y),!1):(nt.h(a,et),!0)):Ke.$(y,b)?(a<x?(b=a,a=x):b=x,tt<b?(nt.h(b,y),!1):tt>a?(nt.h(a,y),!1):(nt.h(tt,y),!0)):(tt=((a-tt)*(a-x)+(y-et)*(y-b))/((x-a)*(x-a)+(b-y)*(b-y)),-5e-6>tt?(nt.h(a,y),!1):1.000005<tt?(nt.h(x,b),!1):(nt.h(a+tt*(x-a),y+tt*(b-y)),!0))},Ve:function(a,y,x,b,tt,et,nt,ot,at){return Ke.B(a,x)&&Ke.B(y,b)?(at.h(a,y),!1):Ke.$(tt,nt)?Ke.$(a,x)?(Ke.qh(a,y,x,b,tt,et,at),!1):Ke.qh(a,y,x,b,tt,(b-y)/(x-a)*(tt-a)+y,at):(ot=(ot-et)/(nt-tt),Ke.$(a,x)?(x=ot*(a-tt)+et,y<b?(tt=y,y=b):tt=b,x<tt?(at.h(a,tt),!1):x>y?(at.h(a,y),!1):(at.h(a,x),!0)):(nt=(b-y)/(x-a),Ke.$(ot,nt)?(Ke.qh(a,y,x,b,tt,et,at),!1):(tt=(nt*a-ot*tt+et-y)/(nt-ot),Ke.$(nt,0)?(a<x?(b=a,a=x):b=x,tt<b?(at.h(b,y),!1):tt>a?(at.h(a,y),!1):(at.h(tt,y),!0)):Ke.qh(a,y,x,b,tt,nt*(tt-a)+y,at))))},MA:function(a,y,x,b,tt){return Ke.Ve(x.x,x.y,b.x,b.y,a.x,a.y,y.x,y.y,tt)},KA:function(a,y,x,b,tt,et,nt,ot,at,ut){function ht(se,Jt){var me=(se-a)*(se-a)+(Jt-y)*(Jt-y);me<gt&&(gt=me,at.h(se,Jt))}var gt=1/0;ht(at.x,at.y);var bt=0,Mt=0,Et=0,Bt=0;if(tt<nt?(bt=tt,Mt=nt):(bt=nt,Mt=tt),et<ot?(Et=tt,Bt=nt):(Et=nt,Bt=tt),bt=(Mt-bt)/2+ut,ut=(Bt-Et)/2+ut,tt=(tt+nt)/2,et=(et+ot)/2,bt===0||ut===0)return at;if(.5>(x>a?x-a:a-x)){if(bt=1-(x-tt)*(x-tt)/(bt*bt),0>bt)return at;bt=Math.sqrt(bt),b=-ut*bt+et,ht(x,ut*bt+et),ht(x,b)}else{if(x=(b-y)/(x-a),b=1/(bt*bt)+x*x/(ut*ut),ot=2*x*(y-x*a)/(ut*ut)-2*x*et/(ut*ut)-2*tt/(bt*bt),bt=ot*ot-4*b*(2*x*a*et/(ut*ut)-2*y*et/(ut*ut)+et*et/(ut*ut)+tt*tt/(bt*bt)-1+(y-x*a)*(y-x*a)/(ut*ut)),0>bt)return at;bt=Math.sqrt(bt),ut=(-ot+bt)/(2*b),ht(ut,x*ut-x*a+y),bt=(-ot-bt)/(2*b),ht(bt,x*bt-x*a+y)}return at},Ff:function(a,y,x,b,tt,et,nt,ot,at){var ut=1e21,ht=a,gt=y;if(Ke.Ve(a,y,a,b,tt,et,nt,ot,at)){var bt=(at.x-tt)*(at.x-tt)+(at.y-et)*(at.y-et);bt<ut&&(ut=bt,ht=at.x,gt=at.y)}return Ke.Ve(x,y,x,b,tt,et,nt,ot,at)&&(bt=(at.x-tt)*(at.x-tt)+(at.y-et)*(at.y-et),bt<ut&&(ut=bt,ht=at.x,gt=at.y)),Ke.Ve(a,y,x,y,tt,et,nt,ot,at)&&(y=(at.x-tt)*(at.x-tt)+(at.y-et)*(at.y-et),y<ut&&(ut=y,ht=at.x,gt=at.y)),Ke.Ve(a,b,x,b,tt,et,nt,ot,at)&&(a=(at.x-tt)*(at.x-tt)+(at.y-et)*(at.y-et),a<ut&&(ut=a,ht=at.x,gt=at.y)),at.h(ht,gt),1e21>ut},us:function(a,y,x){return Ke.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,tt,et,nt,ot){var at=a+x,ut=y+b;return tt===nt?(et<ot?(nt=et,et=ot):nt=ot,a<=tt&&tt<=at&&nt<=ut&&et>=y):et===ot?(tt<nt?(ot=tt,tt=nt):ot=nt,y<=et&&et<=ut&&ot<=at&&tt>=a):!!(sn(a,y,x,b,tt,et)||sn(a,y,x,b,nt,ot)||Ke.Rl(a,y,at,y,tt,et,nt,ot)||Ke.Rl(at,y,at,ut,tt,et,nt,ot)||Ke.Rl(at,ut,a,ut,tt,et,nt,ot)||Ke.Rl(a,ut,a,y,tt,et,nt,ot))},Rl:function(a,y,x,b,tt,et,nt,ot){return a===x&&y===b&&tt===nt&&et===ot?a===tt&&y===et:0>=Ke.Fl(a,y,x,b,tt,et)*Ke.Fl(a,y,x,b,nt,ot)&&0>=Ke.Fl(tt,et,nt,ot,a,y)*Ke.Fl(tt,et,nt,ot,x,b)},Fl:function(a,y,x,b,tt,et){return x-=a,b-=y,a=tt-a,y=et-y,et=a*b-y*x,et===0&&(et=a*x+y*b,0<et&&(et=(a-x)*x+(y-b)*b,0>et&&(et=0))),et},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,tt,et){var nt=Math.PI;et||(b*=nt/180,tt*=nt/180);var ot=b>tt?-1:1;et=[];var at=nt/2,ut=b;if(b=Math.min(2*nt,Math.abs(tt-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,et.push([ot,ut,x,at,x,at,a,y]),et;for(;1e-5<b;)tt=ut+ot*Math.min(b,at),et.push(Ke.Vy(x,ut,tt,a,y)),b-=Math.abs(tt-ut),ut=tt;return et},Vy:function(a,y,x,b,tt){var et=(x-y)/2,nt=a*Math.cos(et),ot=a*Math.sin(et),at=-ot,ut=nt*nt+at*at,ht=ut+nt*nt+at*ot;return ut=4/3*(Math.sqrt(2*ut*ht)-ht)/(nt*ot-at*nt),ot=nt-ut*at,nt=at+ut*nt,at=-nt,ut=et+y,et=Math.cos(ut),ut=Math.sin(ut),[b+a*Math.cos(y),tt+a*Math.sin(y),b+ot*et-nt*ut,tt+ot*ut+nt*et,b+ot*et-at*ut,tt+ot*ut+at*et,b+a*Math.cos(x),tt+a*Math.sin(x)]},No:function(a,y,x,b,tt,et,nt){x=Math.floor((a-x)/tt)*tt+x,b=Math.floor((y-b)/et)*et+b;var ot=x;return x+tt-a<tt/2&&(ot=x+tt),a=b,b+et-y<et/2&&(a=b+et),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 tt=0>x,et=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?tt:et)&&(ut=-ut),nt=ot,x=nt===0?x:b,(nt===0?tt:et)&&(x=-x),Ke.az(at,nt===0?a:y,ut,x,0,0)},az:function(a,y,x,b,tt,et){if(0<b)if(0<x){tt=a*a,et=y*y,a*=x;var nt=y*b,ot=-et+nt,at=-et+Math.sqrt(a*a+nt*nt);y=ot;for(var ut=0;9999999999>ut&&(y=.5*(ot+at),!(y===ot||y===at));++ut){var ht=a/(y+tt),gt=nt/(y+et);if(ht=ht*ht+gt*gt-1,0<ht)ot=y;else if(0>ht)at=y;else break}x=tt*x/(y+tt)-x,b=et*b/(y+et)-b,x=Math.sqrt(x*x+b*b)}else x=Math.abs(b-y);else b=a*a-y*y,et=a*x,et<b?(b=et/b,et=y*Math.sqrt(Math.abs(1-b*b)),x=a*b-x,x=Math.sqrt(x*x+et*et)):x=Math.abs(x-a);return x},Ze:new Kr,um:new Kr,Mf:new Kr,Nf:0,vm:100};Ke.za=Ke.AA;function ii(a){si(this),this.l=2,a===void 0&&(a=ii.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===ii.o?this.ee=new oi:(ii.V===null&&(ii.V=new oi().freeze()),this.ee=ii.V),this.aq=this.ee.Ja,this.Ip=new je().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=er,this.gg=oo,this.Rk=this.Sk=NaN,this.Uf=Li}ii.prototype.copy=function(){var a=new ii;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===ii.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},ii.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},ii.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==ii.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},ii.prototype.ka=function(){if(Object.isFrozen(this)&&_e("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==ii.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},ii.prototype.Xa=function(a){if(!(a instanceof ii))return!1;if(this.type!==a.type)return this.type===ii.j&&a.type===ii.o?rs(this,a):a.type===ii.j&&this.type===ii.o?rs(a,this):!1;if(this.type===ii.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 Ke.B(this.startX,a.startX)&&Ke.B(this.startY,a.startY)&&Ke.B(this.endX,a.endX)&&Ke.B(this.endY,a.endY)};function rs(a,y){return a.type!==ii.j||y.type!==ii.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Ke.B(a.startX,y.startX)&&Ke.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Fo&&Ke.B(a.endX,y.endX)&&Ke.B(a.endY,y.endY))))}ii.ia=function(a){return a.toString()},ii.prototype.qb=function(a){a.classType===ii&&(this.type=a)},ii.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ii.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 ii.u:var y=new je(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 ii.F:if(y=new je(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 ii.o:y="",x=this.figures.s;for(var b=x.length,tt=0;tt<b;tt++){var et=x[tt];0<tt&&(y+=" x "),et.isFilled&&(y+="F "),y+=et.toString(a)}return y;default:return this.type.toString()}},ii.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",b=0;b<y;b++){var tt=a[b];x=tt.match(/[Ff]/)!==null?b===0?x+tt:x+("X"+(tt[0]===" "?"":" ")+tt):x+((b===0?"":"X ")+"F"+(tt[0]===" "?"":" ")+tt)}return x},ii.parse=function(a,y){function x(){return Bt>=Le-1?!0:ut[Bt+1].match(Ve)!==null}function b(){return Bt++,ut[Bt]}function tt(ro){var Ur=parseFloat(b()),qo=parseFloat(b());se===se.toLowerCase()&&(Ur=Se.x+Ur,qo=Se.y+qo),ro.h(Ur,qo)}function et(){return tt(Se),Se}function nt(){return tt(me),me}function ot(){var ro=Jt.toLowerCase();return ro!=="c"&&ro!=="s"&&ro!=="q"&&ro!=="t"?Se:new Gt(2*Se.x-me.x,2*Se.y-me.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 ht=ut[a];if(ht.match(/(\.[0-9]*)(\.)/gm)!==null){at=Xn();for(var gt="",bt=!1,Mt=0;Mt<ht.length;Mt++){var Et=ht[Mt];Et!=="."||bt?Et==="."?(at.push(gt),gt="."):gt+=Et:(bt=!0,gt+=Et)}for(at.push(gt),ut.splice(a,1),ht=0;ht<at.length;ht++)ut.splice(a+ht,0,at[ht]);a+=at.length-1,qn(at)}}var Bt=-1,se="",Jt="";at=new Gt(0,0);var me=new Gt(0,0),Se=new Gt(0,0),Le=ut.length;a=$y(null),bt=gt=ht=!1,Mt=!0,Et=null;for(var Ve=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Bt>=Le-1);)if(Jt=se,se=b(),se!=="")switch(se.toUpperCase()){case"X":Mt=!0,gt=ht=!1;break;case"M":for(Et=et(),a.mc===null||Mt===!0?(op(a,Et.x,Et.y,ht,!gt,bt),Mt=!1):a.moveTo(Et.x,Et.y),at.assign(Se);!x();)Et=et(),a.lineTo(Et.x,Et.y);break;case"L":for(;!x();)Et=et(),a.lineTo(Et.x,Et.y);break;case"H":for(;!x();)Se=new Gt((se===se.toLowerCase()?Se.x:0)+parseFloat(b()),Se.y),a.lineTo(Se.x,Se.y);break;case"V":for(;!x();)Se=new Gt(Se.x,(se===se.toLowerCase()?Se.y:0)+parseFloat(b())),a.lineTo(Se.x,Se.y);break;case"C":for(;!x();){Et=new Gt,tt(Et);var fn=nt(),nr=et();gc(a,Et.x,Et.y,fn.x,fn.y,nr.x,nr.y)}break;case"S":for(;!x();)Et=ot(),fn=nt(),nr=et(),gc(a,Et.x,Et.y,fn.x,fn.y,nr.x,nr.y);break;case"Q":for(;!x();)Et=nt(),fn=et(),ff(a,Et.x,Et.y,fn.x,fn.y);break;case"T":for(;!x();)me=Et=ot(),fn=et(),ff(a,Et.x,Et.y,fn.x,fn.y);break;case"B":for(;!x();){Et=parseFloat(b()),fn=parseFloat(b()),nr=parseFloat(b());var mr=parseFloat(b()),dr=parseFloat(b()),Hi=dr,vi=!1;x()||(Hi=parseFloat(b()),x()||(vi=parseFloat(b())!==0)),se===se.toLowerCase()&&(nr+=Se.x,mr+=Se.y),a.arcTo(Et,fn,nr,mr,dr,Hi,vi)}break;case"A":for(;!x();)Et=Math.abs(parseFloat(b())),fn=Math.abs(parseFloat(b())),nr=parseFloat(b()),dr=mr=!1,vi=Hi=0,Hi=b(),Hi.length===1?(mr=!!parseFloat(Hi),dr=!!parseFloat(b()),Hi=parseFloat(b())):Hi.length===2?(mr=!!parseFloat(Hi[0]),dr=!!parseFloat(Hi[1]),Hi=parseFloat(b())):(mr=!!parseFloat(Hi[0]),dr=!!parseFloat(Hi[1]),Hi=parseFloat(Hi.slice(2))),vi=parseFloat(b()),se===se.toLowerCase()&&(Hi=Se.x+Hi,vi=Se.y+vi),Se.h(Hi,vi),sp(a,Et,fn,nr,mr,dr,Hi,vi);break;case"Z":Kb(a),Se.assign(at);break;case"F":for(Et="",fn=1;ut[Bt+fn];)if(ut[Bt+fn]==="0")bt=!0,fn++;else if(ut[Bt+fn].match(/[Uu]/)!==null)fn++;else if(ut[Bt+fn].match(Ve)===null)fn++;else{Et=ut[Bt+fn];break}Et.match(/[Mm]/)?ht=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Et="",fn=1;ut[Bt+fn];)if(ut[Bt+fn].match(/[Ff]/)!==null)fn++;else if(ut[Bt+fn].match(Ve)===null)fn++;else{Et=ut[Bt+fn];break}Et.match(/[Mm]/)?gt=!0:a.mc.isShadowed=!1}if(at=a.os,d0=a,y)for(y=at.figures.iterator;y.next();)y.value.isFilled=!0;return at},ii.Ha=function(a,y){for(var x=a.length,b=Gt.alloc(),tt=0;tt<x;tt++){var et=a[tt];b.x=et[0],b.y=et[1],y.Ga(b),et[0]=b.x,et[1]=b.y,b.x=et[2],b.y=et[3],y.Ga(b),et[2]=b.x,et[3]=b.y,b.x=et[4],b.y=et[5],y.Ga(b),et[4]=b.x,et[5]=b.y,b.x=et[6],b.y=et[7],y.Ga(b),et[6]=b.x,et[7]=b.y}Gt.free(b)},ii.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===ii.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},ii.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===ii.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 tt=b.segments;b.sr=tt.Ja,b=tt.s,tt=b.length;for(var et=0;et<tt;et++){var nt=b[et];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),Ns(this,a,!1),Je(a,0,0,0,0),a.freeze()},ii.prototype.ix=function(){var a=new je;return Ns(this,a,!0),a};function Ns(a,y,x){switch(a.type){case ii.j:case ii.u:case ii.F:x?y.h(a.od,a.pd,0,0):Je(y,a.od,a.pd,0,0),Je(y,a.Dc,a.Ec,0,0);break;case ii.o:var b=a.figures;a=b.s,b=b.length;for(var tt=0;tt<b;tt++){var et=a[tt];x&&tt===0?y.h(et.startX,et.startY,0,0):Je(y,et.startX,et.startY,0,0);for(var nt=et.segments.s,ot=nt.length,at=et.startX,ut=et.startY,ht=0;ht<ot;ht++){var gt=nt[ht];switch(gt.type){case Fo:case zo:at=gt.endX,ut=gt.endY,Je(y,at,ut,0,0);break;case ys:Ke.Dl(at,ut,gt.point1X,gt.point1Y,gt.point2X,gt.point2Y,gt.endX,gt.endY,.5,y),at=gt.endX,ut=gt.endY;break;case Ys:Ke.iv(at,ut,gt.point1X,gt.point1Y,gt.endX,gt.endY,.5,y),at=gt.endX,ut=gt.endY;break;case us:case Ha:var bt=gt.type===us?xa(gt,et):ps(gt,et,at,ut),Mt=bt.length;if(Mt===0){at=gt.type===us?gt.centerX:gt.endX,ut=gt.type===us?gt.centerY:gt.endY,Je(y,at,ut,0,0);break}gt=null;for(var Et=0;Et<Mt;Et++)gt=bt[Et],Ke.Dl(gt[0],gt[1],gt[2],gt[3],gt[4],gt[5],gt[6],gt[7],.5,y);gt!==null&&(at=gt[6],ut=gt[7]);break;default:_e("Unknown Segment type: "+gt.type)}}}break;default:_e("Unknown Geometry type: "+a.type)}}ii.prototype.normalize=function(){this._isFrozen&&ri(this);var a=this.ix();return this.offset(-a.x,-a.y),new Gt(-a.x,-a.y)},ii.prototype.offset=function(a,y){return this._isFrozen&&ri(this),this.transform(1,0,0,1,a,y),this},ii.prototype.scale=function(a,y){return this._isFrozen&&ri(this),this.transform(a,0,0,y,0,0),this},ii.prototype.rotate=function(a,y,x){this._isFrozen&&ri(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=Hr.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),Hr.free(b),this},St=ii.prototype,St.transform=function(a,y,x,b,tt,et){switch(this.type){case ii.j:case ii.u:case ii.F:var nt=this.od,ot=this.pd;this.od=nt*a+ot*x+tt,this.pd=nt*y+ot*b+et,nt=this.Dc,ot=this.Ec,this.Dc=nt*a+ot*x+tt,this.Ec=nt*y+ot*b+et;break;case ii.o:for(var at=this.figures.s,ut=at.length,ht=0;ht<ut;ht++){var gt=at[ht];nt=gt.startX,ot=gt.startY,gt.startX=nt*a+ot*x+tt,gt.startY=nt*y+ot*b+et,gt=gt.segments.s;for(var bt=gt.length,Mt=0;Mt<bt;Mt++){var Et=gt[Mt];switch(Et.type){case Fo:case zo:nt=Et.endX,ot=Et.endY,Et.endX=nt*a+ot*x+tt,Et.endY=nt*y+ot*b+et;break;case ys:nt=Et.point1X,ot=Et.point1Y,Et.point1X=nt*a+ot*x+tt,Et.point1Y=nt*y+ot*b+et,nt=Et.point2X,ot=Et.point2Y,Et.point2X=nt*a+ot*x+tt,Et.point2Y=nt*y+ot*b+et,nt=Et.endX,ot=Et.endY,Et.endX=nt*a+ot*x+tt,Et.endY=nt*y+ot*b+et;break;case Ys:nt=Et.point1X,ot=Et.point1Y,Et.point1X=nt*a+ot*x+tt,Et.point1Y=nt*y+ot*b+et,nt=Et.endX,ot=Et.endY,Et.endX=nt*a+ot*x+tt,Et.endY=nt*y+ot*b+et;break;case us:nt=Et.centerX,ot=Et.centerY,Et.centerX=nt*a+ot*x+tt,Et.centerY=nt*y+ot*b+et,y!==0&&(nt=180*Math.atan2(y,a)/Math.PI,0>nt&&(nt+=360),Et.startAngle+=nt),0>a&&(Et.startAngle=180-Et.startAngle,Et.sweepAngle=-Et.sweepAngle),0>b&&(Et.startAngle=-Et.startAngle,Et.sweepAngle=-Et.sweepAngle),Et.radiusX*=Math.sqrt(a*a+x*x),Et.radiusY!==void 0&&(Et.radiusY*=Math.sqrt(y*y+b*b));break;case Ha:if(nt=Et.endX,ot=Et.endY,Et.endX=nt*a+ot*x+tt,Et.endY=nt*y+ot*b+et,Et.radiusX===0||Et.radiusY===0)break;y!==0&&(nt=180*Math.atan2(y,a)/Math.PI,0>nt&&(nt+=360),Et.xAxisRotation+=nt),0>a&&(Et.xAxisRotation=180-Et.xAxisRotation,Et.isClockwiseArc=!Et.isClockwiseArc),0>b&&(Et.xAxisRotation=-Et.xAxisRotation,Et.isClockwiseArc=!Et.isClockwiseArc),Et.radiusX*=Math.sqrt(a*a+x*x),Et.radiusY*=Math.sqrt(y*y+b*b);break;default:_e("Unknown Segment type: "+Et.type)}}}}return this._isInvalidBounds=!0,this},St.ca=function(a,y){y===void 0&&(y=0);var x=this.od,b=this.pd,tt=this.Dc,et=this.Ec;switch(this.type){case ii.j:return Ke.Yb(x,b,tt,et,y,a.x,a.y);case ii.u:var nt=je.allocAt(Math.min(x,tt)-y,Math.min(b,et)-y,Math.abs(tt-x)+2*y,Math.abs(et-b)+2*y);return a=nt.ca(a),je.free(nt),a;case ii.F:nt=Math.min(x,tt)-y;var ot=Math.min(b,et)-y;return x=(Math.abs(tt-x)+2*y)/2,y=(Math.abs(et-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 ii.o:return Rs(this,a,y,!0,!1);default:return!1}};function Rs(a,y,x,b,tt){var et=y.x;y=y.y;for(var nt=a.bounds.x-20,ot=0,at,ut,ht,gt,bt=a.figures.s,Mt=bt.length,Et=0;Et<Mt;Et++){var Bt=bt[Et],se=!Bt.isEvenOdd;if(Bt.isFilled){if(b&&Bt.ca(et,y,x))return!0;var Jt=Bt.segments;at=Bt.startX,ut=Bt.startY;for(var me=at,Se=ut,Le=Jt.s,Ve=0;Ve<=Jt.length;Ve++){var fn=void 0;if(Ve!==Jt.length){fn=Le[Ve];var nr=fn.type;a=fn.endX,gt=fn.endY}else nr=Fo,a=me,gt=Se;switch(nr){case zo:if(me=Qs(et,y,nt,y,at,ut,me,Se),isNaN(me))return!0;ot+=me,me=a,Se=gt;break;case Fo:if(at=Qs(et,y,nt,y,at,ut,a,gt),isNaN(at))return!0;ot+=at;break;case ys:ht=Ke.Fo(at,ut,fn.point1X,fn.point1Y,fn.point2X,fn.point2Y,a,gt,nt,y,et,y,.5),ot+=ht;break;case Ys:ht=Ke.Fo(at,ut,(at+2*fn.point1X)/3,(ut+2*fn.point1Y)/3,(2*fn.point1X+a)/3,(2*fn.point1Y+gt)/3,a,gt,nt,y,et,y,.5),ot+=ht;break;case us:case Ha:nr=fn.type===us?xa(fn,Bt):ps(fn,Bt,at,ut);var mr=nr.length;if(mr===0){if(at=Qs(et,y,nt,y,at,ut,fn.type===us?fn.centerX:fn.endX,fn.type===us?fn.centerY:fn.endY),isNaN(at))return!0;ot+=at;break}fn=null;for(var dr=0;dr<mr;dr++){if(fn=nr[dr],dr===0){if(ht=Qs(et,y,nt,y,at,ut,fn[0],fn[1]),isNaN(ht))return!0;ot+=ht}ht=Ke.Fo(fn[0],fn[1],fn[2],fn[3],fn[4],fn[5],fn[6],fn[7],nt,y,et,y,.5),ot+=ht}fn!==null&&(a=fn[6],gt=fn[7]);break;default:_e("Unknown Segment type: "+fn.type)}at=a,ut=gt}if(se){if(ot!==0)return!0}else if(ot%2!==0)return!0;ot=0}else if(Bt.ca(et,y,tt?x:x+2))return!0}return!1}function Qs(a,y,x,b,tt,et,nt,ot){if(Ke.Yb(tt,et,nt,ot,.05,a,y))return NaN;var at=(a-x)*(et-ot);if(at===0)return 0;var ut=((a*b-y*x)*(tt-nt)-(a-x)*(tt*ot-et*nt))/at;if(y=(a*b-y*x)*(et-ot)/at,ut>=a)return 0;if((tt>nt?tt-nt:nt-tt)<(et>ot?et-ot:ot-et)){if(et<ot){if(y<et||y>ot)return 0}else if(y<ot||y>et)return 0}else if(tt<nt){if(ut<tt||ut>nt)return 0}else if(ut<nt||ut>tt)return 0;return 0<at?1:-1}function Na(a,y,x,b){a=a.figures.s;for(var tt=a.length,et=0;et<tt;et++)if(a[et].ca(y,x,b))return!0;return!1}St.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Gt),this.type===ii.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,tt=x.length,et=this.flattenedTotalLength*a,nt=0,ot=0;ot<tt;ot++){var at=b[ot],ut=at.length;for(a=0;a<ut;a++){var ht=at[a];if(nt+ht>=et)return b=et-nt,b=ht===0?0:b/ht,x=x[ot],ot=x[2*a],tt=x[2*a+1],y.h(ot+(x[2*a+2]-ot)*b,tt+(x[2*a+3]-tt)*b),y;nt+=ht}}return y},St.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===ii.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,tt=this.flattenedTotalLength*a,et=0,nt=0;nt<b;nt++){var ot=x[nt],at=ot.length;for(a=0;a<at;a++){var ut=ot[a];if(et+ut>=tt)return tt=y[nt],y=tt[2*a],x=tt[2*a+1],b=tt[2*a+2],a=tt[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;et+=ut}}return NaN},St.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===ii.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,tt=x.length,et=this.flattenedTotalLength*a,nt=0,ot=0;ot<tt;ot++){var at=b[ot],ut=at.length;for(a=0;a<ut;a++){var ht=at[a];if(nt+ht>=et)return b=et-nt,b=ht===0?0:b/ht,ht=x[ot],x=ht[2*a],ot=ht[2*a+1],tt=ht[2*a+2],a=ht[2*a+3],y[0]=x+(tt-x)*b,y[1]=ot+(a-ot)*b,y[2]=1>Math.abs(tt-x)&&1>Math.abs(a-ot)?0:1>Math.abs(tt-x)?0<=a-ot?90:270:1>Math.abs(a-ot)?0<=tt-x?0:180:180*Math.atan2(a-ot,tt-x)/Math.PI,y;nt+=ht}}return y},St.xx=function(a){if(this.type===ii.j){var y=this.startX,x=this.startY,b=this.endX,tt=this.endY;if(y!==b||x!==tt){var et=a.x;if(a=a.y,y===b){if(x<tt){var nt=x;b=tt}else nt=tt,b=x;return a<=nt?nt===x?0:1:a>=b?b===x?0:1:Math.abs(a-x)/(b-nt)}if(x===tt)return y<b?nt=y:(nt=b,b=y),et<=nt?nt===y?0:1:et>=b?b===y?0:1:Math.abs(et-y)/(b-nt);nt=(b-y)*(b-y)+(tt-x)*(tt-x);var ot=Gt.alloc();return Ke.qh(y,x,b,tt,et,a,ot),a=ot.x,et=ot.y,Gt.free(ot),Math.sqrt(((a-y)*(a-y)+(et-x)*(et-x))/nt)}}else if(this.type===ii.u){nt=this.startX,ot=this.startY;var at=this.endX;if(tt=this.endY,nt!==at||ot!==tt){y=at-nt,x=tt-ot,et=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),tt),nt=Math.abs(b-nt),at=Math.abs(b-at),ot=Math.abs(a-ot),tt=Math.abs(a-tt);var ut=Math.min(nt,at,ot,tt);if(ut===ot)return b/et;if(ut===at)return(y+a)/et;if(ut===tt)return(2*y+x-b)/et;if(ut===nt)return(2*y+2*x-a)/et}}else{y=this.flattenedSegments,x=this.flattenedLengths,et=this.flattenedTotalLength,b=Gt.alloc(),tt=1/0,ot=nt=0,at=y.length;for(var ht=ut=0,gt=0;gt<at;gt++)for(var bt=y[gt],Mt=x[gt],Et=bt.length,Bt=0;Bt<Et;Bt+=2){var se=bt[Bt],Jt=bt[Bt+1];if(Bt!==0){Ke.qh(ut,ht,se,Jt,a.x,a.y,b);var me=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);me<tt&&(tt=me,nt=ot,nt+=Math.sqrt((b.x-ut)*(b.x-ut)+(b.y-ht)*(b.y-ht))),ot+=Mt[(Bt-2)/2]}ut=se,ht=Jt}return Gt.free(b),a=nt/et,0>a?0:1<a?1:a}return 0};function Ka(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],tt=[];if(a.type===ii.j)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.endY),y.push(b),tt.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(tt);else if(a.type===ii.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),tt.push(Math.abs(a.startX-a.endX)),tt.push(Math.abs(a.startY-a.endY)),tt.push(Math.abs(a.startX-a.endX)),tt.push(Math.abs(a.startY-a.endY)),x.push(tt);else if(a.type===ii.F){var et=new Bs;et.startX=a.endX,et.startY=(a.startY+a.endY)/2;var nt=new co(us);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,et.add(nt),a=xa(nt,et),tt=a.length,tt===0)b.push(nt.centerX),b.push(nt.centerY);else{nt=et.startX,et=et.startY;for(var ot=0;ot<tt;ot++){var at=a[ot];Ke.Qe(nt,et,at[2],at[3],at[4],at[5],at[6],at[7],.5,b),nt=at[6],et=at[7]}}y.push(b),x.push(vl(b))}else for(a=a.figures.iterator;a.next();){tt=a.value,b=[],b.push(tt.startX),b.push(tt.startY),nt=tt.startX,et=tt.startY,ot=nt,at=et;for(var ut=tt.segments.s,ht=ut.length,gt=0;gt<ht;gt++){var bt=ut[gt];switch(bt.type){case zo:4<=b.length&&(y.push(b),x.push(vl(b))),b=[],b.push(bt.endX),b.push(bt.endY),nt=bt.endX,et=bt.endY,ot=nt,at=et;break;case Fo:b.push(bt.endX),b.push(bt.endY),nt=bt.endX,et=bt.endY;break;case ys:Ke.Qe(nt,et,bt.point1X,bt.point1Y,bt.point2X,bt.point2Y,bt.endX,bt.endY,.5,b),nt=bt.endX,et=bt.endY;break;case Ys:Ke.ep(nt,et,bt.point1X,bt.point1Y,bt.endX,bt.endY,.5,b),nt=bt.endX,et=bt.endY;break;case us:var Mt=xa(bt,tt),Et=Mt.length;if(Et===0){b.push(bt.centerX),b.push(bt.centerY),nt=bt.centerX,et=bt.centerY;break}for(var Bt=0;Bt<Et;Bt++){var se=Mt[Bt];Ke.Qe(nt,et,se[2],se[3],se[4],se[5],se[6],se[7],.5,b),nt=se[6],et=se[7]}break;case Ha:if(Mt=ps(bt,tt,nt,et),Et=Mt.length,Bt=bt.endX,se=bt.endY,Et===0){b.push(Bt),b.push(se),nt=Bt,et=se;break}for(Bt=0;Bt<Et;Bt++)se=Mt[Bt],Ke.Qe(nt,et,se[2],se[3],se[4],se[5],se[6],se[7],.5,b),nt=se[6],et=se[7];break;default:_e("Segment not of valid type: "+bt.type)}bt.isClosed&&(b.push(ot),b.push(at))}4<=b.length&&(y.push(b),x.push(vl(b)))}}}function vl(a){for(var y=[],x=0,b=0,tt=a.length,et=0;et<tt;et+=2){var nt=a[et],ot=a[et+1];et!==0&&y.push(Math.sqrt(yn(x,b,nt,ot))),x=nt,b=ot}return y}St.add=function(a){return this.ee.add(a),this},St.pm=function(a,y,x,b,tt,et,nt,ot){return this._isFrozen&&ri(this),this.fg=new gn(a,y,tt,et).freeze(),this.gg=new gn(x,b,nt,ot).freeze(),this},ge.Object.defineProperties(ii.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 Ka(this),this.tk}},flattenedLengths:{get:function(){return Ka(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===ii.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===ii.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 tt=y[b],et=tt.length,nt=0;nt<et;nt++)a+=tt[nt]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&ri(this,a),this.na=a,a===ii.o?this.ee=new oi:(ii.V===null&&(ii.V=new oi().freeze()),this.ee=ii.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&ri(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&ri(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&ri(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&ri(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&ri(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&ri(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&ri(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&ri(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),ii.prototype.setSpots=ii.prototype.pm,ii.prototype.add=ii.prototype.add,ii.prototype.getFractionForPoint=ii.prototype.xx,ii.prototype.getPointAndAngleAlongPath=ii.prototype.Qu,ii.prototype.getAngleAlongPath=ii.prototype.wx,ii.prototype.getPointAlongPath=ii.prototype.Pu,ii.prototype.containsPoint=ii.prototype.ca,ii.prototype.transform=ii.prototype.transform,ii.prototype.rotate=ii.prototype.rotate,ii.prototype.scale=ii.prototype.scale,ii.prototype.offset=ii.prototype.offset,ii.prototype.normalize=ii.prototype.normalize,ii.prototype.computeBoundsWithoutOrigin=ii.prototype.ix,ii.prototype.equalsApprox=ii.prototype.Xa,ii.className="Geometry",ii.j=new ui(ii,"Line",0),ii.u=new ui(ii,"Rectangle",1),ii.F=new ui(ii,"Ellipse",2),ii.o=new ui(ii,"Path",3),ii.V=null,ii.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",ii.className="Geometry",ii.stringify=ii.ia,ii.fillPath=ii.nb,ii.parse=ii.parse,ii.Line=ii.j,ii.Rectangle=ii.u,ii.Ellipse=ii.F,ii.Path=ii.o;function Bs(a,y,x,b,tt){si(this),x===void 0&&(x=!0),b===void 0&&(b=!0),tt===void 0&&(tt=!1),this.l=2|(x?4:0)|(b?8:0)|(tt?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new oi,this.sr=this.pl.Ja,this.fw=null}Bs.prototype.copy=function(){var a=new Bs;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,tt=0;tt<x;tt++){var et=y[tt].copy();b.add(et)}return a.sr=this.sr,a.fw=this.fw,a},St=Bs.prototype,St.Xa=function(a){if(!(a instanceof Bs&&Ke.B(this.startX,a.startX)&&Ke.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},St.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,tt=0;tt<b;tt++)y+=" "+x[tt].toString(a);return y},St.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},St.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},St.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},St.add=function(a){return this.pl.add(a),this},St.ca=function(a,y,x){for(var b=this.startX,tt=this.startY,et=b,nt=tt,ot=this.segments.s,at=ot.length,ut=0;ut<at;ut++){var ht=ot[ut];switch(ht.type){case zo:et=ht.endX,nt=ht.endY,b=ht.endX,tt=ht.endY;break;case Fo:if(Ke.Yb(b,tt,ht.endX,ht.endY,x,a,y))return!0;b=ht.endX,tt=ht.endY;break;case ys:if(Ke.cs(b,tt,ht.point1X,ht.point1Y,ht.point2X,ht.point2Y,ht.endX,ht.endY,.5,a,y,x))return!0;b=ht.endX,tt=ht.endY;break;case Ys:if(Ke.jv(b,tt,ht.point1X,ht.point1Y,ht.endX,ht.endY,.5,a,y,x))return!0;b=ht.endX,tt=ht.endY;break;case us:case Ha:var gt=ht.type===us?xa(ht,this):ps(ht,this,b,tt),bt=gt.length,Mt=ht.type===us?ht.centerX:ht.endX,Et=ht.type===us?ht.centerY:ht.endY;if(bt===0){if(Ke.Yb(b,tt,Mt,Et,x,a,y))return!0;b=Mt,tt=Et;break}for(Mt=null,Et=0;Et<bt;Et++)if(Mt=gt[Et],Et===0&&Ke.Yb(b,tt,Mt[0],Mt[1],x,a,y)||Ke.cs(Mt[0],Mt[1],Mt[2],Mt[3],Mt[4],Mt[5],Mt[6],Mt[7],.5,a,y,x))return!0;Mt!==null&&(b=Mt[6],tt=Mt[7]);break;default:_e("Unknown Segment type: "+ht.type)}if(ht.isClosed&&(b!==et||tt!==nt)&&Ke.Yb(b,tt,et,nt,x,a,y))return!0}return!1},ge.Object.defineProperties(Bs.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&&ri(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&ri(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&ri(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&ri(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&ri(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&ri(this,a),this.pl=a,this._isInvalidBounds=!0}}}),Bs.prototype.add=Bs.prototype.add,Bs.prototype.equalsApprox=Bs.prototype.Xa,Bs.className="PathFigure";function co(a,y,x,b,tt,et,nt,ot){si(this),a===void 0&&(a=Fo),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),tt===void 0&&(tt=0),et===void 0&&(et=0),nt===void 0&&(nt=0),a===Ha?(a=et%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(tt,0),typeof nt=="boolean"?nt&&(this.isLargeArc=!0):typeof nt=="number"&&nt&&(this.isLargeArc=!0),ot&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=tt,a===us&&(et=Math.max(et,0)),this.Wh=et,typeof nt=="number"?(a===us&&(nt=Math.max(nt,0)),this.Pg=nt):this.Pg=0),this.ae=null}co.prototype.copy=function(){var a=new co;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},St=co.prototype,St.Xa=function(a){if(!(a instanceof co)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case zo:case Fo:return Ke.B(this.endX,a.endX)&&Ke.B(this.endY,a.endY);case ys:return Ke.B(this.endX,a.endX)&&Ke.B(this.endY,a.endY)&&Ke.B(this.point1X,a.point1X)&&Ke.B(this.point1Y,a.point1Y)&&Ke.B(this.point2X,a.point2X)&&Ke.B(this.point2Y,a.point2Y);case Ys:return Ke.B(this.endX,a.endX)&&Ke.B(this.endY,a.endY)&&Ke.B(this.point1X,a.point1X)&&Ke.B(this.point1Y,a.point1Y);case us:return Ke.B(this.startAngle,a.startAngle)&&Ke.B(this.sweepAngle,a.sweepAngle)&&Ke.B(this.centerX,a.centerX)&&Ke.B(this.centerY,a.centerY)&&Ke.B(this.radiusX,a.radiusX)&&Ke.B(this.radiusY,a.radiusY);case Ha:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Ke.B(this.xAxisRotation,a.xAxisRotation)&&Ke.B(this.endX,a.endX)&&Ke.B(this.endY,a.endY)&&Ke.B(this.radiusX,a.radiusX)&&Ke.B(this.radiusY,a.radiusY);default:return!1}},St.qb=function(a){a.classType===co&&(this.type=a)},St.toString=function(a){switch(a===void 0&&(a=-1),this.type){case zo:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Fo:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ys: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 Ys: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 us: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 Ha: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":"")},St.freeze=function(){return this._isFrozen=!0,this},St.ka=function(){return this._isFrozen=!1,this},St.close=function(){return this.isClosed=!0,this};function xa(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 tt=a.Vh,et=Ke.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var nt=Hr.alloc();nt.reset(),x<b?nt.scale(1,b/x):nt.scale(x/b,1),ii.Ha(et,nt),Hr.free(nt)}for(x=et.length,b=0;b<x;b++)nt=et[b],nt[0]+=y,nt[1]+=tt,nt[2]+=y,nt[3]+=tt,nt[4]+=y,nt[5]+=tt,nt[6]+=y,nt[7]+=tt;return a.ae=et,a.ae}function ps(a,y,x,b){function tt(Bt,se,Jt,me){return(Bt*me<se*Jt?-1:1)*Math.acos((Bt*Jt+se*me)/(Math.sqrt(Bt*Bt+se*se)*Math.sqrt(Jt*Jt+me*me)))}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 et=a.Pg;y===0&&(y=1e-4),et===0&&(et=1e-4);var nt=Math.PI/180*a.Ne,ot=a.isLargeArc,at=a.isClockwiseArc,ut=a.Dc,ht=a.Ec,gt=Math.cos(nt),bt=Math.sin(nt),Mt=gt*(x-ut)/2+bt*(b-ht)/2;nt=-bt*(x-ut)/2+gt*(b-ht)/2;var Et=Mt*Mt/(y*y)+nt*nt/(et*et);return 1<Et&&(y*=Math.sqrt(Et),et*=Math.sqrt(Et)),Et=(ot===at?-1:1)*Math.sqrt((y*y*et*et-y*y*nt*nt-et*et*Mt*Mt)/(y*y*nt*nt+et*et*Mt*Mt)),isNaN(Et)&&(Et=0),ot=Et*y*nt/et,Et=Et*-et*Mt/y,isNaN(ot)&&(ot=0),isNaN(Et)&&(Et=0),x=(x+ut)/2+gt*ot-bt*Et,b=(b+ht)/2+bt*ot+gt*Et,ht=tt(1,0,(Mt-ot)/y,(nt-Et)/et),gt=(Mt-ot)/y,ut=(nt-Et)/et,Mt=(-Mt-ot)/y,ot=(-nt-Et)/et,nt=tt(gt,ut,Mt,ot),Mt=(gt*Mt+ut*ot)/(Math.sqrt(gt*gt+ut*ut)*Math.sqrt(Mt*Mt+ot*ot)),-1>=Mt?nt=Math.PI:1<=Mt&&(nt=0),!at&&0<nt&&(nt-=2*Math.PI),at&&0>nt&&(nt+=2*Math.PI),at=y>et?1:y/et,Mt=y>et?et/y:1,y=Ke.jx(0,0,y>et?y:et,ht,ht+nt,!0),et=Hr.alloc(),et.reset(),et.translate(x,b),et.rotate(a.Ne,0,0),et.scale(at,Mt),ii.Ha(y,et),Hr.free(et),a.ae=y,a.ae}ge.Object.defineProperties(co.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&&ri(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&ri(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&ri(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&ri(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&ri(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&ri(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&ri(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&ri(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&ri(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Ri(a,">= zero",co,"radiusX"),this._isFrozen&&ri(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Ri(a,">= zero",co,"radiusY"),this._isFrozen&&ri(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&ri(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&&ri(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&&ri(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&&ri(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&&ri(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),co.prototype.equalsApprox=co.prototype.Xa;var zo=new ui(co,"Move",0),Fo=new ui(co,"Line",1),ys=new ui(co,"Bezier",2),Ys=new ui(co,"QuadraticBezier",3),us=new ui(co,"Arc",4),Ha=new ui(co,"SvgArc",4);co.className="PathSegment",co.Move=zo,co.Line=Fo,co.Bezier=ys,co.QuadraticBezier=Ys,co.Arc=us,co.SvgArc=Ha;function ha(){this.H=null,this.xu=new Gt(0,0).freeze(),this.mt=new Gt(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}ha.prototype.copy=function(){var a=new ha;return this.clone(a)},ha.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},ha.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},ha.prototype.So=function(a,y){var x=this.diagram;return x===null||Vh(x,a,y),y},ha.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Vh(x,a,y),y.assign(x.Ps(y))),y},ge.Object.defineProperties(ha.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}}}),ha.prototype.getMultiTouchDocumentPoint=ha.prototype.Bz,ha.prototype.getMultiTouchViewPoint=ha.prototype.So,ha.className="InputEvent";function Tl(){this.H=null,this.xa="",this.ar=this.Lr=null}Tl.prototype.copy=function(){var a=new Tl;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Tl.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},ge.Object.defineProperties(Tl.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}}}),Tl.className="DiagramEvent";function vo(){this.Fm=_r,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}vo.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},vo.prototype.copy=function(){var a=new vo;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=Ge(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Ge(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Ge(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Ge(y)&&typeof y.J=="function"?y.J():y,a},vo.prototype.qb=function(a){a.classType===vo&&(this.change=a)},vo.prototype.toString=function(){var a="";return a=this.change===Vr?a+"* ":this.change===_r?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===Vr?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=vr(this.object)),this.oldValue!==null&&(a+=" old: "+vr(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+vr(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},vo.prototype.I=function(a){return a?this.oldValue:this.newValue},vo.prototype.Dz=function(a){return a?this.oldParam:this.newParam},vo.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},vo.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},vo.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},vo.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},ge.Object.defineProperties(vo.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===Vr&&(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}}}),vo.prototype.redo=vo.prototype.redo,vo.prototype.canRedo=vo.prototype.canRedo,vo.prototype.undo=vo.prototype.undo,vo.prototype.canUndo=vo.prototype.canUndo,vo.prototype.getParam=vo.prototype.Dz,vo.prototype.getValue=vo.prototype.I,vo.prototype.clear=vo.prototype.clear;var Vr=new ui(vo,"Transaction",-1),_r=new ui(vo,"Property",0),no=new ui(vo,"Insert",1),ho=new ui(vo,"Remove",2);vo.className="ChangedEvent",vo.Transaction=Vr,vo.Property=_r,vo.Insert=no,vo.Remove=ho;function cs(){this.o=new oi().freeze(),this.xa="",this.j=!1}cs.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},cs.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()},cs.prototype.canUndo=function(){return this.isComplete},cs.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()}},cs.prototype.canRedo=function(){return this.isComplete},cs.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()}},cs.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new or,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===_r&&b.object){var tt=y.get(b.object);tt||(tt=new or,y.set(b.object,tt));var et=tt.get(b.propertyName);et===null?tt.set(b.propertyName,-1):(0<et&&a.cd(et,null),tt.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()}},ge.Object.defineProperties(cs.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}}}),cs.prototype.optimize=cs.prototype.ak,cs.prototype.redo=cs.prototype.redo,cs.prototype.canRedo=cs.prototype.canRedo,cs.prototype.undo=cs.prototype.undo,cs.prototype.canUndo=cs.prototype.canUndo,cs.prototype.clear=cs.prototype.clear,cs.className="Transaction";function Zo(){this.Pt=new Ce,this.Jd=!1,this.u=new oi().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new oi().freeze(),this.hl=new oi,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Zo.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},Zo.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},Zo.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},St=Zo.prototype,St.Xw=function(a){this.Pt.add(a)},St.Rx=function(a){this.Pt.remove(a)},St.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},St.eb=function(a){return a===void 0&&(a=""),Dl(this,!0,a)},St.Kf=function(){return Dl(this,!1,"")};function Dl(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&$e("Ending transaction without having started a transaction: "+x);var b=a.transactionLevel===1,tt=a.currentTransaction;b&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,tt));var et=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&&(et=a.hl.M(nt-1),a.hl.mb(nt-1))}if(b){if(y)a.rq=!1,tt===null&&x!==""&&(tt=a.currentTransaction),a.isEnabled&&tt!==null&&(tt.isComplete||(tt.isComplete=!0,tt.name=x),a.lx(),y=a.history,y.ka(),b=a.maxHistoryLength,0<=b&&(b===0?y.clear():y.count>=b&&(et=y.M(0),et!==null&&et.clear(),y.mb(0),a.Ce--)),b===0||y.count!==0&&y.get(y.count-1)===tt||(y.add(tt),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,tt);else{a.Fe=!0;try{a.isEnabled&&tt!==null&&(tt.isComplete=!0,tt.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,tt),a.Fe=!1}tt!==null&&tt.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&tt!==null){for(a=et,x=tt.changes,tt=x.count-1;tt>=a;tt--)y=x.M(tt),y!==null&&y.undo(),x.ka(),x.mb(tt);x.freeze()}return!1}St.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()}},Zo.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Zo.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){$e("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Zo.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Zo.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){$e("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Zo.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new vo;for(b.change=Vr,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},Zo.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new cs);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||$e("Change not within a transaction: "+x.toString()))}},Zo.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},ge.Object.defineProperties(Zo.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}}}),Zo.prototype.handleChanged=Zo.prototype.Tu,Zo.prototype.redo=Zo.prototype.redo,Zo.prototype.undo=Zo.prototype.undo,Zo.prototype.canUndo=Zo.prototype.canUndo,Zo.prototype.discardHistoryAfterIndex=Zo.prototype.lx,Zo.prototype.rollbackTransaction=Zo.prototype.Kf,Zo.prototype.commitTransaction=Zo.prototype.eb,Zo.prototype.startTransaction=Zo.prototype.Ea,Zo.prototype.removeModel=Zo.prototype.Rx,Zo.prototype.addModel=Zo.prototype.Xw,Zo.prototype.clear=Zo.prototype.clear,Zo.className="UndoManager";function Mo(){si(this),this.H=Ts,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new ha,this.Zr=-1}Mo.prototype.toString=function(){return this.name!==""?this.name+" Tool":Ki(this.constructor)},Mo.prototype.updateAdornments=function(){},Mo.prototype.canStart=function(){return this.isEnabled},Mo.prototype.doStart=function(){},Mo.prototype.doActivate=function(){this.isActive=!0},Mo.prototype.doDeactivate=function(){this.isActive=!1},Mo.prototype.doStop=function(){},Mo.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Mo.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Mo.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Mo.prototype.doMouseMove=function(){},Mo.prototype.doMouseUp=function(){this.stopTool()},Mo.prototype.doMouseWheel=function(){},Mo.prototype.canStartMultiTouch=function(){return!0},Mo.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Gt.allocAt(NaN,NaN)),b=y.So(1,Gt.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var tt=b.x-x.x,et=b.y-x.y;a.Jw=Math.sqrt(tt*tt+et*et),y.bubbles=!1}Gt.free(x),Gt.free(b)},Mo.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Gt.allocAt(NaN,NaN)),b=y.So(1,Gt.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var tt=b.x-x.x,et=b.y-x.y;et=Math.sqrt(tt*tt+et*et)/a.Jw,tt=new Gt((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),et*=a.Bw;var nt=a.commandHandler;if(et!==a.scale&&nt.canResetZoom(et)){var ot=a.zoomPoint;a.zoomPoint=tt,nt.resetZoom(et),a.zoomPoint=ot}y.bubbles=!1}Gt.free(x),Gt.free(b)},Mo.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Mo.prototype.doKeyUp=function(){},Mo.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Mo.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Mo.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(qr?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||(qr?y.meta:y.control)||y.shift||a.clearSelection()}},Mo.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(tt){return!tt.layer.isTemporary});var x=this.diagram,b=x.lastInput;return a=x.ic(b.documentPoint,a,y),b.targetObject=a,Fu(a,b,x),b.handled};function Fu(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 tt="ObjectSingleClicked";if(a!==null){switch(b){case 1:tt="ObjectSingleClicked";break;case 2:tt="ObjectDoubleClicked";break;case 3:tt="ObjectContextClicked"}b!==0&&x.R(tt,a)}else{switch(b){case 1:tt="BackgroundSingleClicked";break;case 2:tt="BackgroundDoubleClicked";break;case 3:tt="BackgroundContextClicked"}b!==0&&x.R(tt)}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)}}}Mo.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 tt=!1;if(b!==a.Ck){var et=a.Ck,nt=et;for(a.Ck=b,this.doCurrentObjectChanged(et,b),y.handled=!1;et!==null;){var ot=et.mouseLeave;if(ot!==null&&(b===et||b!==null&&b.rg(et)||(ot(y,et,b),tt=!0,y.handled)))break;et=et.panel}for(et=nt,y.handled=!1;b!==null&&(nt=b.mouseEnter,!(nt!==null&&(et===b||et!==null&&et.rg(b)||(nt(y,b,et),tt=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(et=b,nt="";et!==null&&(nt=et.cursor,nt==="");)et=et.panel;for(a.currentCursor=nt,y.handled=!1,et=b;et!==null&&(b=et.mouseOver,!(b!==null&&(b(y,et),tt=!0,y.handled)));)et=et.panel}else this.doUpdateCursor(null),b=a.mouseOver,b!==null&&(b(y),tt=!0);tt&&a.$b(),a.skipsUndoManager=x}},Mo.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Mo.prototype.doCurrentObjectChanged=function(){},Mo.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var b=a.commandHandler,tt=a.toolManager.mouseWheelBehavior;if(b!==null&&(tt===Mc&&!y.shift||tt===Ol&&y.control))(0<x?b.canIncreaseZoom():b.canDecreaseZoom())&&(tt=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?b.increaseZoom():b.decreaseZoom(),a.zoomPoint=tt),y.bubbles=!1;else if(tt===Mc&&y.shift||tt===Ol&&!y.control){b=a.position.copy();var et=y.event;tt=et.deltaMode;var nt=et.deltaX;et=et.deltaY;var ot="pixel";if(nt===0&&et===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(tt){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))),et!==0&&a.allowVerticalScroll&&(et*=a.scrollVerticalLineChange/16,a.scroll(ot,0<et?"down":"up",Math.abs(et)))}this.doWheelChange(a,b,y)}}},Mo.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},Mo.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=fi(function(){x.doWaitAfter(b)},a)},Mo.prototype.cancelWaitAfter=function(){this.Zr!==-1&&ce.clearTimeout(this.Zr),this.Zr=-1},Mo.prototype.doWaitAfter=function(){},Mo.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Wo);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},Mo.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,tt=b.width;return b=b.height,x.firstInput.isTouchEvent&&(tt+=6,b+=6),Math.abs(y.x-a.x)>tt||Math.abs(y.y-a.y)>b},ge.Object.defineProperties(Mo.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof dn&&(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}}}),Mo.prototype.startTransaction=Mo.prototype.Ea,Mo.className="Tool";function Po(){Mo.call(this),this.name="ToolManager",this.hb=new oi,this.ob=new oi,this.Hb=new oi,this.F=this.V=850,this.o=new An(2,2).ja(),this.Ha=5e3,this.ia=Ol,this.u=Ru,this.Mp=this.j=null,this.zj=-1}Nn(Po,Mo),Po.prototype.initializeStandardTools=function(){},Po.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Wo&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Po.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===yl&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===sc){y.bubbles=!0;return}if(this.gestureBehavior===yl)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,b=0;b<x;b++){var tt=this.mouseDownTools.M(b);if(tt.diagram=this.diagram,tt.canStart()){a.doFocus(),a.currentTool=tt,a.currentTool===tt&&(tt.isActive||tt.doActivate(),tt.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===Ol?this.mouseWheelBehavior=Mc:this.mouseWheelBehavior===Mc&&(this.mouseWheelBehavior=Ol)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Po.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===sc){y.bubbles=!0;return}if(this.gestureBehavior===yl)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,b=0;b<x;b++){var tt=this.mouseMoveTools.M(b);if(tt.diagram=this.diagram,tt.canStart()){a.doFocus(),a.currentTool=tt,a.currentTool===tt&&(tt.isActive||tt.doActivate(),tt.doMouseMove());return}}Cl(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Cl(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Po.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Wo&&(y===a||y.rg(a))||this.hideToolTip()},Po.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()))},Po.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)},Po.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 Wo)||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()},Po.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Wo){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 wu&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(ce.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var tt=this;this.zj=fi(function(){tt.hideToolTip()},a)}},Po.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,tt=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>tt.right&&(x.x-=b.width+5/y.scale),x.x<tt.x&&(x.x=tt.x),x.y=x.y+20/y.scale+b.height>tt.bottom?x.y-(b.height+5/y.scale):x.y+20/y.scale,x.y<tt.y&&(x.y=tt.y),a.position=x}},Po.prototype.hideToolTip=function(){this.zj!==-1&&(ce.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Wo?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof wu&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Po.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()},Po.prototype.doMouseWheel=function(){this.standardMouseWheel()},Po.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Po.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Po.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},Po.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,b=0;b<x;b++){var tt=this.mouseDownTools.M(b);if(tt.name===a)return y!==null?this.mouseDownTools.cd(b,y):this.mouseDownTools.mb(b),tt}for(x=this.mouseMoveTools.length,b=0;b<x;b++)if(tt=this.mouseMoveTools.M(b),tt.name===a)return y!==null?this.mouseMoveTools.cd(b,y):this.mouseMoveTools.mb(b),tt;for(x=this.mouseUpTools.length,b=0;b<x;b++)if(tt=this.mouseUpTools.M(b),tt.name===a)return y!==null?this.mouseUpTools.cd(b,y):this.mouseUpTools.mb(b),tt;return null},Po.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)},ge.Object.defineProperties(Po.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 Wo?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}}}),Po.prototype.replaceStandardTool=Po.prototype.gb;var Ol=new ui(Po,"WheelScroll",0),Mc=new ui(Po,"WheelZoom",1),Hc=new ui(Po,"WheelNone",2),Ru=new ui(Po,"GestureZoom",3),yl=new ui(Po,"GestureCancel",4),sc=new ui(Po,"GestureNone",5);Po.className="ToolManager",Po.WheelScroll=Ol,Po.WheelZoom=Mc,Po.WheelNone=Hc,Po.GestureZoom=Ru,Po.GestureCancel=yl,Po.GestureNone=sc;function ws(){Mo.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 Gt(NaN,NaN),this.Fr=new Gt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Ce().freeze(),this.ia=new lt,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var zu;Nn(ws,Mo),ws.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},ws.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},ws.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,(qr?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},ws.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),zs=null,this.isActive=!0,this.tl.set(a.position),ka(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&&qa(a),Gh(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,zs=this,cl=this.diagram,this.doSimulatedDragOut()))};function ka(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof ji?(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 fu,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}ws.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},ws.prototype.Pd=function(a){return a===void 0?new pu(Zn):this.isGridSnapEnabled?new pu(new Gt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new pu(a.copy())},ws.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),Vs(this),hc(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<zu.count){for(var y=zu,x=y.length,b=0;b<x;b++){var tt=y.M(b);Bl(tt),da(tt),Vs(tt),tt.diagram.ug()}y.clear()}Bl(this),this.tl.h(NaN,NaN),cl!==null&&(cl.currentCursor=""),zs=cl=null,da(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Rf(a,!0)},ws.prototype.stopTransaction=function(){var a=this.diagram,y=Mo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function Vs(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,Wd(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function ba(){var a=zs;da(a),ju(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}ws.prototype.doCancel=function(){da(this),ju(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},ws.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},ws.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function _a(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")):ju(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 or,b=a.draggedParts.iterator;b.next();){var tt=b.key;if(tt.Zc()&&tt.canCopy()){var et=y.I(tt);et!==null&&(et.location=tt.location,et.Va(),x.add(et,a.Pd(et.location)))}}for(y=y.iterator;y.next();)b=y.value,b instanceof ji&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,ka(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Nd(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function da(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 ji&&(x.value.point=new Gt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Bl(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 Ta(a,y,x){var b=a.diagram,tt=a.startPoint,et=Gt.alloc();et.assign(b.lastInput.documentPoint),a.moveParts(y,et.re(tt),x),Gt.free(et),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(qa(b),b.hk())}ws.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&Sd(b,a,y,this.dragOptions,x)};function ju(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 ji&&b.suspendsRouting){var tt=x.value.point;a.draggedParts.add(b,a.Pd()),Nd(b,-tt.x,-tt.y)}y.bd()}}function ud(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),_c(a,!1));var b=a.findDragOverObject(y),tt=x.lastInput;tt.targetObject=b,a.doUpdateCursor(b);var et=x.skipsUndoManager,nt=!1;try{if(x.skipsUndoManager=!0,nt=Wd(a,tt,b),!a.isActive&&zs===null)return;var ot=b!==null?b.part:null;if(ot===null||x.handlesDragDropForTopLevelParts&&ot.isTopLevel&&!(ot instanceof $r)){var at=x.mouseDragOver;at!==null&&(at(tt),nt=!0)}if(!a.isActive&&zs===null||(a.doDragOver(y,b),!a.isActive&&zs===null))return}finally{x.skipsUndoManager=et,nt&&x.bd()}a.Bn=b,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(tt.viewPoint)}ws.prototype.findDragOverObject=function(a){var y=this;return uc(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof Wo||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},ws.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 Wd(a,y,x){var b=!1,tt=a.Cg.length,et=0<tt?a.Cg[0]:null;if(x===et)return!1;y.handled=!1;for(var nt=0;nt<tt;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&&zs===null||x===null)return b;for(y.handled=!1,tt=x;tt!==null;)a.Cg.push(tt),tt=Df(tt);for(tt=a.Cg.length,x=0;x<tt&&(nt=a.Cg[x],ot=nt.mouseDragEnter,ot===null||(ot(y,nt,et),b=!0,!y.handled));x++);return b}function Df(a){var y=a.panel;return y!==null?y:a instanceof Pr&&!(a instanceof $r)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Op(a,y,x){var b=a.Oe;if(b===null)return null;var tt=a.diagram.og(y,b.portGravity,function(ut){return b.findValidLinkablePort(ut,x)});a=Gt.alloc();var et=1/0,nt=null;for(tt=tt.iterator;tt.next();){var ot=tt.value;if(ot.part!==null){var at=ot.ga(yr,a);at=y.Bf(at),at<et&&(nt=ot,et=at)}}return Gt.free(a),nt}function _c(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var tt=a.Oe;if(tt!==null){var et=null,nt=null;x.fromNode===null&&(et=Op(a,x.i(0),!1),et!==null&&(nt=et.part));var ot=null,at=null;x.toNode===null&&(ot=Op(a,x.i(x.pointsCount-1),!0),ot!==null&&(at=ot.part)),tt.isValidLink(nt,et,at,ot)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=nt,et!==null&&(x.fromPortId=et.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)):Ip(tt,nt,et,at,ot):Ip(tt,null,null,null,null)}}}}ws.prototype.doDragOver=function(){};function Ec(a,y){var x=a.diagram;a.dragsLink&&_c(a,!0),Vs(a);var b=a.findDragOverObject(y),tt=x.lastInput;if(tt.targetObject=b,b!==null){tt.handled=!1;for(var et=b;et!==null;){var nt=et.mouseDrop;if(nt!==null&&(nt(tt,et),tt.handled))break;Bp(a,tt,et),et=Df(et)}}else et=x.mouseDrop,et!==null&&et(tt);if(a.isActive||zs!==null){for(tt=(a.copiedParts||a.draggedParts).iterator;tt.next();)et=tt.key,et instanceof Xi&&et.linksConnected.each(function(ot){ot.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||zs!==null){for(a=je.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof Xi&&Of(x,b,a);je.free(a)}}}function Bp(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof $r||(x=a.mouseDrop,x!==null&&x(y))}function Of(a,y,x){var b=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(b=!0),a=a.Nu(x,function(tt){return tt.part},function(tt){return tt instanceof ji},!0,function(tt){return tt instanceof ji},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}ws.prototype.doDropOnto=function(){},ws.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()?(_a(this,!1),Gh(a,this.copiedParts),Ta(this,this.copiedParts,!1),hc(a,this.copiedParts)):this.mayMove()?(da(this),Ta(this,this.draggedParts,!0)):this.mayDragOut()?(_a(this,!1),Ta(this,this.copiedParts,!1)):da(this),ud(this,a.lastInput.documentPoint))}},ws.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?(da(this),_a(this,!0),Gh(a,this.copiedParts),Ta(this,this.copiedParts,!1),hc(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(tt){tt.isSelected=!0}))):(y=!0,da(this),this.mayMove()&&(Ta(this,this.draggedParts,!0),ud(this,a.lastInput.documentPoint))),this.Ym=!0,Ec(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&Xs(this),a.Ya(),hc(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},ws.prototype.simulatedMouseMove=function(a,y,x){if(zs===null)return!1;var b=zs.diagram;x instanceof dn||(x=null);var tt=cl;return x!==tt&&(tt!==null&&tt!==b&&(tt.ug(),zs.isDragOutStarted=!1,tt=tt.toolManager.findTool("Dragging"),tt!==null&&tt.doSimulatedDragLeave()),cl=x,x!==null&&x!==b&&(ba(),tt=x.toolManager.findTool("Dragging"),tt!==null&&(zu.contains(tt)||zu.add(tt),tt.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)},ws.prototype.simulatedMouseUp=function(a,y,x){if(zs===null)return!1;var b=cl,tt=zs.diagram;if(x===null)return zs.doCancel(),!0;if(x!==b){var et=b.toolManager.findTool("Dragging");if(b!==null&&b!==tt&&et!==null)return b.ug(),zs.isDragOutStarted=!1,et.doSimulatedDragLeave(),!1;cl=x,b=x.toolManager.findTool("Dragging"),b!==null&&(ba(),zu.contains(b)||zu.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 Gt),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=zs,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function Xs(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof Xi&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}ws.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(qr?!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())},ws.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())},ws.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())},ws.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},ws.prototype.Az=function(){return zs},ws.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=zs;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},ws.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),kl(a),a.animationManager.Cc(),a=zs,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},ws.prototype.doSimulatedDragLeave=function(){var a=zs;a!==null&&a.doSimulatedDragOut(),this.doCancel()},ws.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=zs;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;Fs(this,y.draggedParts.Lf(),!1,a.firstInput),Ta(this,this.copiedParts,!1),ud(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},ws.prototype.doSimulatedDrop=function(){var a=this.diagram,y=zs;if(y!==null){var x=y.diagram;if(y.Ym=!0,da(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),Fs(this,y.draggedParts.Lf(),!0,a.lastInput),Ta(this,this.copiedParts,!1);var b=new Ce;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(tt){tt.isSelected=!0,b.add(tt)})),Ec(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 Fs(a,y,x,b){if(a.copiedParts===null){var tt=a.diagram;if(!tt.isReadOnly&&!tt.isModelReadOnly){tt.skipsUndoManager=!x,tt.partManager.addsToTemporaryLayer=!x,a.startPoint=b.documentPoint,x=tt.Kj(y,tt,!0);var et=je.alloc();tt=b=1/0;for(var nt=-1/0,ot=-1/0,at=y.iterator;at.next();){var ut=at.value;if(ut.isVisible()){var ht=ut.location;ut=ht.x,ht=ht.y,isNaN(ut)||isNaN(ht)||(ut<b&&(b=ut),ht<tt&&(tt=ht),ut>nt&&(nt=ut),ht>ot&&(ot=ht))}}for(b===1/0?et.h(0,0,0,0):et.h(b,tt,nt-b,ot-tt),b=et.x+et.width/2,tt=et.y+et.height/2,je.free(et),et=a.Fr,nt=new or,ot=Gt.alloc(),at=y.iterator;at.next();)ut=at.value,ut instanceof ji&&ut.canCopy()&&(ht=x.I(ut),ht!==null&&(ht.points=ut.points,Nd(ht,et.x-b,et.y-tt),ht.suspendsRouting=!0,nt.add(ht,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(et.x-(b-ut.x),et.y-(tt-ut.y)),at.location=ot,at.Va(),nt.add(at,a.Pd(ot))));Gt.free(ot),a.copiedParts=nt,ka(a,nt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Nd(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}ws.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},ws.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Gt},ge.Object.defineProperties(ws.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}}}),ws.prototype.getDraggingSource=ws.prototype.Az;var zs=null,cl=null;ws.className="DraggingTool",zu=new oi,Or("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Po.prototype.doCancel=function(){zs!==null&&zs.doCancel(),Mo.prototype.doCancel.call(this)};function Qo(){Mo.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new ji,y=new lo;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new lo,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Xi,y=new lo,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=pi,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Xi,y=new lo,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=pi,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 or,this.Of=this.gj=this.Pf=null}Nn(Qo,Mo),Qo.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Qo.prototype.copyPortProperties=function(a,y,x,b,tt){if(a!==null&&y!==null&&x!==null&&b!==null){var et=y.Df(),nt=An.alloc();nt.width=y.naturalBounds.width*et,nt.height=y.naturalBounds.height*et,b.desiredSize=nt,An.free(nt),tt?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=yr,et=Gt.alloc(),x.location=y.ga(yr,et),Gt.free(et),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,tt)}},Qo.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=pi,y.fromSpot=Ji,y.toSpot=Ji),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},Qo.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Qo.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Xi){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)}},Qo.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Xi))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof Xi)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},Qo.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var tt=this,et=y.og(x,b,function(gt){return tt.findValidLinkablePort(gt,a)},null,!0);for(b=1/0,y=null,et=et.iterator;et.next();){var nt=et.value,ot=nt.part;if(ot instanceof Xi){var at=nt.ga(yr,Gt.alloc()),ut=x.x-at.x,ht=x.y-at.y;Gt.free(at),at=ut*ut+ht*ht,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 Xi&&(x.layer===null||x.layer.allowLink))?y:null},Qo.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},Qo.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},Qo.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Qo.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Xi))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof Xi))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},Qo.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 tt=a.linkValidation;if(tt!==null&&!tt(a,y,x,b,this.originalLink))return!1}return x!==null&&(tt=x.linkValidation,tt!==null&&!tt(a,y,x,b,this.originalLink))?!1:(tt=this.linkValidation,tt!==null?tt(a,y,x,b,this.originalLink):!0)},Qo.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 Ce;return b.add(a),$s(this,x,y,b)};function $s(a,y,x,b){if(y===x)return!0;var tt=y.fromNode;return tt!==null&&tt.isLinkLabel&&(b.add(tt),$s(a,tt.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),$s(a,y.labeledLink,x,b))))}Qo.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!==Qp){if(b===ag){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=y.linksConnected;b.next();){var tt=b.value;if(tt!==x&&tt.isTreeLink&&tt.toNode===y)return!1}return!Zs(this,a,y,x,!0)}if(b===Y0){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=a.linksConnected;b.next();)if(tt=b.value,tt!==x&&tt.isTreeLink&&tt.fromNode===a)return!1;return!Zs(this,a,y,x,!0)}if(b===Z0)return a===y?a=!0:(b=new Ce,b.add(y),a=Wa(this,b,a,y,x)),!a;if(b===G0)return!Zs(this,a,y,x,!1);if(b===af)return a===y?a=!0:(b=new Ce,b.add(y),a=hu(this,b,a,y,x)),!a}return!0};function Zs(a,y,x,b,tt){if(y===x)return!0;if(y===null||x===null)return!1;for(var et=y.linksConnected;et.next();){var nt=et.value;if(nt!==b&&(!tt||nt.isTreeLink)&&nt.toNode===y&&(nt=nt.fromNode,nt!==y&&Zs(a,nt,x,b,tt)))return!0}return!1}function Wa(a,y,x,b,tt){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var et=x.linksConnected;et.next();){var nt=et.value;if(nt!==tt&&nt.toNode===x&&(nt=nt.fromNode,nt!==x&&Wa(a,y,nt,b,tt)))return!0}return!1}function hu(a,y,x,b,tt){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var et=x.linksConnected;et.next();){var nt=et.value;if(nt!==tt){var ot=nt.fromNode;if(nt=nt.toNode,ot=ot===x?nt:ot,ot!==x&&hu(a,y,ot,b,tt))return!0}}return!1}ge.Object.defineProperties(Qo.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}}}),Qo.className="LinkingBaseTool";function Da(){Qo.call(this),this.name="Linking",this.V={},this.F=null,this.K=du,this.Xd=null}Nn(Da,Qo),Da.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},Da.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 Xi)))return null;var x=this.direction;if(x===du||x===Vd){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===du||x===Wm)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},Da.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 Xi&&(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 Xi&&(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)},Da.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()},Da.prototype.doStop=function(){Qo.prototype.doStop.call(this),this.startObject=null},Da.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,tt=null,et=null;try{var nt=this.targetPort=this.findTargetPort(this.isForwards);if(nt!==null){var ot=nt.part;ot instanceof Xi&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=ot,tt=nt):(y=ot,x=nt,this.originalToNode!==null&&(b=this.originalToNode,tt=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,tt=this.originalToPort);y!==null||b!==null?(et=this.insertLink(y,x,b,tt),et!==null?(nt===null&&(this.isForwards?et.defaultToPoint=a.lastInput.documentPoint:et.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),et.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",et)):this.doNoLink(y,x,b,tt)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),et&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},Da.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof ji)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)},Da.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},Da.prototype.doNoLink=function(){},ge.Object.defineProperties(Da.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 du=new ui(Da,"Either",0),Vd=new ui(Da,"ForwardsOnly",0),Wm=new ui(Da,"BackwardsOnly",0);Da.className="LinkingTool",Da.Either=du,Da.ForwardsOnly=Vd,Da.BackwardsOnly=Wm;function fu(){Qo.call(this),this.name="Relinking";var a=new lo;a.figure="Diamond",a.desiredSize=Wn,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new lo,a.figure="Diamond",a.desiredSize=Wn,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new je}Nn(fu,Qo),fu.prototype.updateAdornments=function(a){if(a!==null&&a instanceof ji){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)}},fu.prototype.makeAdornment=function(a,y){var x=new Wo;return x.type=Di.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},fu.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},fu.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 Wo&&x.adornedPart instanceof ji))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=Mi),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Mi),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},fu.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===ma||x===vu)&&(x=zl),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}},fu.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()},fu.prototype.doStop=function(){Qo.prototype.doStop.call(this),this.handle=null},fu.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,b=this.originalToNode,tt=this.originalToPort,et=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var nt=this.targetPort.part;nt instanceof Xi&&(this.isForwards?(b=nt,tt=this.targetPort):(y=nt,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?tt=b=null:x=y=null:et=null;et!==null?(this.reconnectLink(et,this.isForwards?b:y,this.isForwards?tt:x,this.isForwards),this.targetPort===null&&(this.isForwards?et.defaultToPoint=a.lastInput.documentPoint:et.defaultFromPoint=a.lastInput.documentPoint,et.bb()),this.transactionResult=this.name,a.R("LinkRelinked",et,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},fu.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},fu.prototype.doNoRelink=function(){};function Ip(a,y,x,b,tt){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,tt,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}ge.Object.defineProperties(fu.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 Wo))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),fu.className="RelinkingTool",Or("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Or("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function ra(){Mo.call(this),this.name="LinkReshaping";var a=new lo;a.figure="Rectangle",a.desiredSize=di,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new lo,a.figure="Diamond",a.desiredSize=Wn,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Gt,this.Yq=new oi}Nn(ra,Mo),ra.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:j0},ra.prototype.om=function(a,y){a.reshapingBehavior=y},ra.prototype.updateAdornments=function(a){if(a!==null&&a instanceof ji){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)}},ra.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,tt=null;if(y.points!==null&&1<x){tt=new Wo,tt.type=Di.Link,x=y.firstPickIndex;var et=y.lastPickIndex,nt=b?1:0;if(y.resegmentable&&y.computeCurve()!==Lu)for(var ot=x+nt;ot<et-nt;ot++){var at=this.makeResegmentHandle(a,ot);at!==null&&(at.segmentIndex=ot,at.segmentFraction=.5,at.fromMaxLinks=999,tt.add(at))}for(nt=x+1;nt<et;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);Ke.B(at.x,ut.x)&&Ke.B(at.y,ut.y)&&(ut=y.i(x-1)),Ke.B(at.x,ut.x)?(this.om(ot,Rh),ot.cursor="n-resize"):Ke.B(at.y,ut.y)&&(this.om(ot,Fh),ot.cursor="w-resize")}else nt===et-1&&b?(at=y.i(et-1),ut=y.i(et),Ke.B(at.x,ut.x)&&Ke.B(at.y,ut.y)&&(at=y.i(et+1)),Ke.B(at.x,ut.x)?(this.om(ot,Rh),ot.cursor="n-resize"):Ke.B(at.y,ut.y)&&(this.om(ot,Fh),ot.cursor="w-resize")):nt!==et&&(this.om(ot,Fp),ot.cursor="move");tt.add(ot)}tt.adornedObject=a}return tt},ra.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},ra.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},ra.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},ra.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 ji){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}}},ra.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},ra.prototype.stopTransaction=function(){var a=this.diagram,y=Mo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ra.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},ra.prototype.getResegmentingPoint=function(){return this.handle.ga(yr)},ra.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},ra.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),tt=y.i(x),et=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-tt.x)<this.resegmentingDistance&&Math.abs(b.y-tt.y)<this.resegmentingDistance&&(Ih(this,nt,b,tt,et,!0)||Ih(this,nt,b,tt,et,!1))){var ot=y.points.copy();Ih(this,nt,b,tt,et,!0)?(ot.cd(x-2,new Gt(nt.x,(et.y+nt.y)/2)),ot.cd(x+1,new Gt(et.x,(et.y+nt.y)/2))):(ot.cd(x-2,new Gt((et.x+nt.x)/2,nt.y)),ot.cd(x+1,new Gt((et.x+nt.x)/2,et.y))),ot.mb(x),ot.mb(x-1),y.points=ot,y.Wb()}else nt=y.i(x+2),Math.abs(tt.x-et.x)<this.resegmentingDistance&&Math.abs(tt.y-et.y)<this.resegmentingDistance&&(Ih(this,b,tt,et,nt,!0)||Ih(this,b,tt,et,nt,!1))&&(ot=y.points.copy(),Ih(this,b,tt,et,nt,!0)?(ot.cd(x-1,new Gt(b.x,(b.y+nt.y)/2)),ot.cd(x+2,new Gt(nt.x,(b.y+nt.y)/2))):(ot.cd(x-1,new Gt((b.x+nt.x)/2,b.y)),ot.cd(x+2,new Gt((b.x+nt.x)/2,nt.y))),ot.mb(x+1),ot.mb(x),y.points=ot,y.Wb())}}else nt=Gt.alloc(),Ke.qh(b.x,b.y,et.x,et.y,tt.x,tt.y,nt)&&nt.Bf(tt)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),Gt.free(nt)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Ih(a,y,x,b,tt,et){return et?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-b.y)<a.resegmentingDistance&&Math.abs(b.y-tt.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-b.x)<a.resegmentingDistance&&Math.abs(b.x-tt.x)<a.resegmentingDistance}ra.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===Rh?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===Fh&&(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===Rh?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===Fh&&(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 tt=y.i(b),et=y.i(b-1),nt=y.i(b+1);Ke.B(et.x,tt.x)&&Ke.B(tt.y,nt.y)?(Ke.B(et.x,y.i(b-2).x)&&!Ke.B(et.y,y.i(b-2).y)?(y.m(b,a.x,et.y),x++,b++):y.L(b-1,a.x,et.y),Ke.B(nt.y,y.i(b+2).y)&&!Ke.B(nt.x,y.i(b+2).x)?y.m(b+1,nt.x,a.y):y.L(b+1,nt.x,a.y)):Ke.B(et.y,tt.y)&&Ke.B(tt.x,nt.x)?(Ke.B(et.y,y.i(b-2).y)&&!Ke.B(et.x,y.i(b-2).x)?(y.m(b,et.x,a.y),x++,b++):y.L(b-1,et.x,a.y),Ke.B(nt.x,y.i(b+2).x)&&!Ke.B(nt.y,y.i(b+2).y)?y.m(b+1,a.x,nt.y):y.L(b+1,a.x,nt.y)):Ke.B(et.x,tt.x)&&Ke.B(tt.x,nt.x)?(Ke.B(et.x,y.i(b-2).x)&&!Ke.B(et.y,y.i(b-2).y)?(y.m(b,a.x,et.y),x++,b++):y.L(b-1,a.x,et.y),Ke.B(nt.x,y.i(b+2).x)&&!Ke.B(nt.y,y.i(b+2).y)?y.m(b+1,a.x,nt.y):y.L(b+1,a.x,nt.y)):Ke.B(et.y,tt.y)&&Ke.B(tt.y,nt.y)&&(Ke.B(et.y,y.i(b-2).y)&&!Ke.B(et.x,y.i(b-2).x)?(y.m(b,et.x,a.y),x++,b++):y.L(b-1,et.x,a.y),Ke.B(nt.y,y.i(b+2).y)&&!Ke.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,tt=y.fromPort,b!==null&&(et=b.findVisibleNode(),et!==null&&et!==b&&(b=et,tt=b.port)),x===1&&y.computeSpot(!0,tt).Mc()&&(et=tt.ga(yr,Gt.alloc()),b=y.getLinkPointFromPoint(b,tt,et,a,!0,Gt.alloc()),y.L(0,b.x,b.y),Gt.free(et),Gt.free(b)),b=y.toNode,tt=y.toPort,b!==null&&(et=b.findVisibleNode(),et!==null&&et!==b&&(b=et,tt=b.port)),x===y.pointsCount-2&&y.computeSpot(!1,tt).Mc()&&(x=tt.ga(yr,Gt.alloc()),a=y.getLinkPointFromPoint(b,tt,x,a,!1,Gt.alloc()),y.L(y.pointsCount-1,a.x,a.y),Gt.free(x),Gt.free(a));y.zf()},ra.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Fp:return a;case Rh:return new Gt(y.i(x).x,a.y);case Fh:return new Gt(a.x,y.i(x).y);default:case j0:return y.i(x)}},ge.Object.defineProperties(ra.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 Wo))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}}}),ra.prototype.setReshapingBehavior=ra.prototype.om,ra.prototype.getReshapingBehavior=ra.prototype.Ru;var j0=new ui(ra,"None",0),Fh=new ui(ra,"Horizontal",1),Rh=new ui(ra,"Vertical",2),Fp=new ui(ra,"All",3);ra.className="LinkReshapingTool",ra.None=j0,ra.Horizontal=Fh,ra.Vertical=Rh,ra.All=Fp,Or("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function $a(){Mo.call(this),this.name="Resizing",this.o=new An(1,1).freeze(),this.j=new An(9999,9999).freeze(),this.yg=new An(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new lo;a.alignmentFocus=yr,a.figure="Rectangle",a.desiredSize=di,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Gt,this.Dw=new An,this.Tn=new Gt,this.rt=new An(0,0),this.qt=new An(1/0,1/0),this.pt=new An(1,1)}Nn($a,Mo),$a.prototype.updateAdornments=function(a){if(!(a===null||a instanceof ji)){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(),pf(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},$a.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Wo,y.type=Di.Spot,y.locationSpot=yr;var x=new Pl;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,er)),y.add(this.makeHandle(a,Ir)),y.add(this.makeHandle(a,oo)),y.add(this.makeHandle(a,No)),y.add(this.makeHandle(a,fs)),y.add(this.makeHandle(a,is)),y.add(this.makeHandle(a,vs)),y.add(this.makeHandle(a,gs))}else if(ou(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},$a.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},$a.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=yr),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 Di)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},$a.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},$a.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))},$a.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},$a.prototype.stopTransaction=function(){var a=this.diagram,y=Mo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},$a.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},$a.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,tt=this.adornedObject.qs(a.lastInput.documentPoint,Gt.alloc()),et=this.computeReshape();y=this.computeResize(tt,this.handle.alignment,y,x,b,et),this.resize(y),a.bd(),Gt.free(tt)}},$a.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,tt=this.adornedObject.qs(a.lastInput.documentPoint,Gt.alloc()),et=this.computeReshape();y=this.computeResize(tt,this.handle.alignment,y,x,b,et),this.resize(y),Gt.free(tt),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},$a.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 $r){var b=new oi;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var tt=new lt;tt.dragsMembers=!1}y.moveParts(b,this.oppositePoint.copy().re(x),!0,tt)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},$a.prototype.computeResize=function(a,y,x,b,tt,et){y.Mc()&&(y=yr);var nt=this.adornedObject.naturalBounds,ot=nt.x,at=nt.y,ut=nt.x+nt.width,ht=nt.y+nt.height,gt=1;if(!et){gt=nt.width;var bt=nt.height;0>=gt&&(gt=1),0>=bt&&(bt=1),gt=bt/gt}return bt=Gt.alloc(),Ke.No(a.x,a.y,ot,at,tt.width,tt.height,bt),a=nt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(bt.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(bt.y,ht-b.height),a.y=Math.min(a.y,ht-x.height),a.height=Math.max(ht-a.y,x.height),et||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,b.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,b.width),x.width),a.height=gt*a.width),a.x=ut-a.width,a.y=ht-a.height)):1<=y.y?(a.x=Math.max(bt.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(bt.y-at,b.height),x.height),et||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,b.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,b.width),x.width),a.height=gt*a.width),a.x=ut-a.width)):(a.x=Math.max(bt.x,ut-b.width),a.x=Math.min(a.x,ut-x.width),a.width=ut-a.x,et||(a.height=Math.max(Math.min(gt*a.width,b.height),x.height),a.width=a.height/gt,a.y=at+.5*(ht-at-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(bt.x-ot,b.width),x.width),a.y=Math.max(bt.y,ht-b.height),a.y=Math.min(a.y,ht-x.height),a.height=Math.max(ht-a.y,x.height),et||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,b.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,b.width),x.width),a.height=gt*a.width),a.y=ht-a.height)):1<=y.y?(a.width=Math.max(Math.min(bt.x-ot,b.width),x.width),a.height=Math.max(Math.min(bt.y-at,b.height),x.height),et||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,b.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,b.width),x.width),a.height=gt*a.width))):(a.width=Math.max(Math.min(bt.x-ot,b.width),x.width),et||(a.height=Math.max(Math.min(gt*a.width,b.height),x.height),a.width=a.height/gt,a.y=at+.5*(ht-at-a.height))):0>=y.y?(a.y=Math.max(bt.y,ht-b.height),a.y=Math.min(a.y,ht-x.height),a.height=ht-a.y,et||(a.width=Math.max(Math.min(a.height/gt,b.width),x.width),a.height=gt*a.width,a.x=ot+.5*(ut-ot-a.width))):1<=y.y&&(a.height=Math.max(Math.min(bt.y-at,b.height),x.height),et||(a.width=Math.max(Math.min(a.height/gt,b.width),x.width),a.height=gt*a.width,a.x=ot+.5*(ut-ot-a.width))),Gt.free(bt),a},$a.prototype.computeReshape=function(){var a=Si;return this.adornedObject instanceof lo&&(a=sm(this.adornedObject)),!(a===xr||this.diagram.lastInput.shift)},$a.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},$a.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},$a.prototype.computeCellSize=function(){var a=new An(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},ge.Object.defineProperties($a.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 Wo))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 Wo)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}}}),$a.className="ResizingTool",Or("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Ml(){Mo.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Gt,this.ue=null;var a=new lo;a.figure="Ellipse",a.desiredSize=Wn,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Gt(NaN,NaN),this.u=0,this.F=50}Nn(Ml,Mo),Ml.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)}},Ml.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Wo,y.type=Di.Position,y.locationSpot=yr;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(ou(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Ml.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},Ml.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)},Ml.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(yr)},Ml.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)},Ml.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Gt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Ml.prototype.stopTransaction=function(){var a=this.diagram,y=Mo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ml.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Ml.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Ml.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()},Ml.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()}},Ml.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},ge.Object.defineProperties(Ml.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 Wo))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 Wo)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}}}),Ml.className="RotatingTool",Or("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function cd(){Mo.call(this),this.name="ClickSelecting"}Nn(cd,Mo),cd.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},cd.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},cd.className="ClickSelectingTool";function Ku(){Mo.call(this),this.name="Action",this.pk=null}Nn(Ku,Mo),Ku.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},Ku.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()},Ku.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))}},Ku.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()},Ku.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())},Ku.prototype.doStop=function(){this.pk=null},Ku.className="ActionTool";function zh(){Mo.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Gt(0,0)}Nn(zh,Mo),zh.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)},zh.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},zh.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 Pr)x.Zc()&&(ou(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var tt=y.model.copyNodeData(x);Ge(tt)&&(y.model.xf(tt),b=y.Lc(tt))}if(b!==null){var et=Gt.allocAt(a.x,a.y);this.isGridSnapEnabled&&Ws(this.diagram,b,a,et),b.location=et,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Gt.free(et)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},ge.Object.defineProperties(zh.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}}}),zh.className="ClickCreatingTool";function bu(){Mo.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Pr;a.layerName="Tool",a.selectable=!1;var y=new lo;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Nn(bu,Mo),bu.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))},bu.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},bu.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},bu.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=An.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),An.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},bu.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()},bu.prototype.computeBoxBounds=function(){var a=this.diagram;return new je(a.firstInput.documentPoint,a.lastInput.documentPoint)},bu.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),qr?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 oi,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)}},ge.Object.defineProperties(bu.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}}}),bu.className="DragSelectingTool";function Oa(){Mo.call(this),this.name="Panning",this.Xt=new Gt,this.xy=new Gt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(ce.document,"scroll",a.Kw,!1),a.stopTool()}}Nn(Oa,Mo),Oa.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())},Oa.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(ce.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},Oa.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},Oa.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},Oa.prototype.doMouseMove=function(){this.move()},Oa.prototype.doMouseUp=function(){this.move(),this.stopTool()},Oa.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,tt=y.x+x.x-b.x;x=y.y+x.y-b.y,a.allowHorizontalScroll||(tt=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(tt,x)}},ge.Object.defineProperties(Oa.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),Oa.className="PanningTool",Or("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Or("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Or("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Or("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Or("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function wu(){this.F=this.u=this.j=this.o=null}ge.Object.defineProperties(wu.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}}}),wu.className="HTMLInfo";function Su(a,y,x){this.text=a,this.hx=y,this.visible=x}Su.className="ContextMenuButtonInfo";function El(){Mo.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Gt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Nn(El,Mo);function qu(a){var y=new wu;y.show=function(tt,et,nt){nt.showDefaultContextMenu()},y.hide=function(tt,et){et.hideDefaultContextMenu()},hd=y,a.tu=function(){a.stopTool()},y=$n("div");var x=$n("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=$n("style");ce.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",oa,!1),b.addEventListener(y,"selectstart",oa,!1),b.addEventListener(x,"contextmenu",oa,!1)),y.className="goCXforeground",x.className="goCXbackground",ce.document.body&&(ce.document.body.appendChild(y),ce.document.body.appendChild(x)),dd=y,Wc=x,Bf=!0}function oa(a){return a.preventDefault(),!1}El.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)},El.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},El.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},El.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof dn||(a instanceof Ue?b=a:b=y.ic(x.documentPoint,null,function(tt){return!tt.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},El.prototype.doActivate=function(){},El.prototype.doMouseDown=function(){if(Mo.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Wo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&ac(this)},El.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Wo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}ac(this)};function ac(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof wu||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(kc(a,!0),a.isActive||a.stopTool())}El.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function kc(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=hd,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof Ue?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Wo&&!a.currentContextMenu.visible&&a.stopTool()}}El.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},El.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Wo){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 wu&&a.show(y,x,this);this.currentContextMenu=a},El.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,tt=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>tt.right&&(x.x-=b.width+5/y.scale),x.x<tt.x&&(x.x=tt.x),x.y+b.height>tt.bottom&&(x.y-=b.height+5/y.scale),x.y<tt.y&&(x.y=tt.y),a.position=x}},El.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Wo?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof wu&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function jh(a){var y=new oi;return y.add(new Su("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Su("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Su("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Su("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Su("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Su("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Su("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Su("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Su("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Su("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Su("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Su("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Su("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}El.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=jh(this)),dd.innerHTML="",Wc.addEventListener("pointerdown",this.tu,!1);var y=this,x=$n("ul");x.className="goCXul",dd.appendChild(x),x.innerHTML="";for(var b=this.jt.iterator;b.next();){var tt=b.value,et=tt.visible;if(typeof tt.hx=="function"&&(typeof et!="function"||et(a))){et=$n("li"),et.className="goCXli";var nt=$n("a");nt.className="goCXa",nt.href="#",nt.ky=tt.hx,nt.addEventListener("pointerdown",function(ot){return this.ky(a),y.stopTool(),ot.preventDefault(),!1},!1),nt.textContent=tt.text,et.appendChild(nt),x.appendChild(et)}}dd.style.display="block",Wc.style.display="block"},El.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===hd){dd.style.display="none",Wc.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(Wc,"pointerdown",this.tu,!1),this.currentContextMenu=null}},ge.Object.defineProperties(El.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Wo?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Bf===!1&&hd===null&&ts&&qu(this),hd},set:function(a){a===null&&(Bf=!0),hd=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var hd=null,Bf=!1,Wc=null,dd=null;El.className="ContextMenuTool",Or("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function ks(){Mo.call(this),this.name="TextEditing",this.Zh=new as,this.ia=null,this.V=Gd,this.vj=null,this.qa=Yd,this.u=1,this.F=!0,this.o=null,this.j=new wu,this.kt=null,Ud(this,this.j)}Nn(ks,Mo);function Ud(a,y){if(ts){var x=$n("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 tt=b.key;tt==="Enter"?(a.textBlock.isMultiline===!1&&b.preventDefault(),a.acceptText(fd)):tt==="Tab"?(a.acceptText(Zd),b.preventDefault()):tt==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Yd){var b=a.kt;a.qa===pd&&(a.qa=md),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Yd){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,tt,et){if(b instanceof as&&et instanceof ks)if(et.state===gd)x.style.border="3px solid red",x.focus();else{var nt=b.ga(yr),ot=tt.position,at=tt.scale,ut=b.Df()*at;ut<et.minimumEditorScale&&(ut=et.minimumEditorScale);var ht=b.naturalBounds.width*ut+6,gt=b.naturalBounds.height*ut+2,bt=(nt.x-ot.x)*at;nt=(nt.y-ot.y)*at,ot=b.verticalAlignment,at=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*ut,gt=ot.y*gt-ot.y*at+ot.offsetY-(.5*gt-.5*at)-at/2,x.value=b.text,tt.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=ht+"px",x.style.left=(bt-ht/2|0)-1+"px",x.style.top=(nt+gt|0)-1+"px",x.style.textAlign=b.textAlign,x.style.margin="0",x.style.padding="1px",x.style.border="0",x.style.outline="none",x.style.whiteSpace="pre-wrap",x.style.overflow="hidden",x.rows=b.lineCount,x.wA=ut,x.className="goTXarea",tt.div.appendChild(x),x.focus(),et.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(x)}}}ks.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||ah&&ah!==this&&(ah.acceptText(Ac),ah&&ah!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof as&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Gd&&!y.isSelected||this.starting===zp&&2>a.lastInput.clickCount)):!1},ks.prototype.doStart=function(){ah=this,this.textBlock!==null&&this.doActivate()},ks.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 as&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=pd;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new je(this.textBlock.ga(er),this.textBlock.ga(oo));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},ks.prototype.doCancel=function(){this.stopTool()},ks.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},ks.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Ac)},ks.prototype.acceptText=function(a){switch(a){case Ac:this.qa===Xd?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===pd||this.qa===gd||this.qa===md)&&(this.qa=If,K0(this));break;case Rp:case fd:case Zd:(fd!==a||this.textBlock.isMultiline!==!0)&&(this.qa===pd||this.qa===gd||this.qa===md)&&(this.qa=If,K0(this))}};function K0(a){var y=a.textBlock,x=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var tt=y.text,et="";b.valueFunction!==null&&(et=b.valueFunction()),a.isValidText(y,tt,et)?(a.Ea(a.name),a.qa=Xd,a.transactionResult=a.name,y.text=et,a.doSuccess(tt,et),x!==null&&x.R("TextEdited",y,tt),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=gd,a.doError(tt,et))}}ks.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)},ks.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},ks.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Yd,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},ks.prototype.doStop=function(){ah=null},ks.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)))},ks.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},ge.Object.defineProperties(ks.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)}}}),ks.prototype.measureTemporaryTextBlock=ks.prototype.Lx;var Rp=new ui(ks,"LostFocus",0),Ac=new ui(ks,"MouseDown",1),Zd=new ui(ks,"Tab",2),fd=new ui(ks,"Enter",3),H0=new ui(ks,"SingleClick",0),Gd=new ui(ks,"SingleClickSelected",1),zp=new ui(ks,"DoubleClick",2),Yd=new ui(ks,"StateNone",0),pd=new ui(ks,"StateActive",1),md=new ui(ks,"StateEditing",2),If=new ui(ks,"StateValidating",3),gd=new ui(ks,"StateInvalid",4),Xd=new ui(ks,"StateValidated",5),ah=null;ks.className="TextEditingTool",ks.LostFocus=Rp,ks.MouseDown=Ac,ks.Tab=Zd,ks.Enter=fd,ks.SingleClick=H0,ks.SingleClickSelected=Gd,ks.DoubleClick=zp,ks.StateNone=Yd,ks.StateActive=pd,ks.StateEditing=md,ks.StateValidating=If,ks.StateInvalid=gd,ks.StateValidated=Xd,Or("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Il(a){uh||(Um(),uh=!0),this.H=Ts,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=_l,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Ce,this.ce=new sl,this.ce.Yd=this,this.Ei=new Ce,this.pu=new Ce,this.Sr=new Ce,this.pr=new Ce,a&&Object.assign(this,a)}Il.prototype.Xe=function(a){this.H=a},Il.prototype.canStart=function(){return!0};function Vc(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),wa(a.H),a.zb=!0)}function jp(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===_l?(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===ch&&y.vc.clear(),a.Qw=!!(a.Pk===_p&&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(),Qd(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==Ua&&b!==null&&(delete b.start.scale,delete b.end.scale),ce.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&qa(x),Ym(x),a.zb=!1,y.start(),y.bc&&($l(a),x.Ya(),Wp(y,0),kl(x,!0),vd(a),x.R("AnimationStarting",a)))}))}}function lh(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Kp(a,y,x,b){a.isTicking||lh(a)||y instanceof ji&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}St=Il.prototype,St.fv=function(a){return this.ce.fv(a)},St.Xu=function(a){return this.ce.Xu(a)};function Jd(a,y){function x(){if(0<tt.Sr.count&&(b.addAll(tt.Sr),tt.Sr.clear(),tt.bc=!0),tt.bc!==!1&&b.count!==0){tt.pu.addAll(b);for(var et=tt.pu.iterator;et.next();){var nt=et.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 Ue&&at.diagram!==null||at instanceof dn){ot=!0;break t}}ot=!1}ot?dh(nt,!1):nt.Xk=!0}}tt.pu.clear(),tt.bc!==!1&&($l(tt),kl(tt.H),vd(tt)),ce.requestAnimationFrame(x)}}var b=a.Ei,tt=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),ce.requestAnimationFrame(function(){x()}))}function Ho(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function $l(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 vd(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}St.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(),Qd(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Qd(y,this.H)},St.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))},St.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),xl(this,a))},St.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),hh(this.ce,y,"position",y.position,y.position),xl(this,a))};function Vm(a,y,x){!a.zb||y.D(x)||lh(a)||(a.H.pi||(y=x.copy()),hh(a.ce,a.H,"position",y,x))}function ql(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function xl(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function yd(a,y,x,b,tt){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var et=a[0],nt=a[1],ot=a[2];a=a[3];var at=y[0],ut=y[1],ht=y[2];return y=y[3],ot===0||ot===100?(et=at,nt=ut):(ht===0||ht===100)&&(at=et,ut=nt),180<Math.abs(at-et)&&(at>et?et+=360:at+=360),et=tt(x,et,at-et,b)%360,nt=tt(x,nt,ut-nt,b),ot=tt(x,ot,ht-ot,b),x=tt(x,a,y-a,b),"hsla("+et+", "+nt+"%, "+ot+"%, "+x+")"}function Um(){function a(x,b,tt,et,nt,ot){x.position=new Gt(et(nt,b.x,tt.x-b.x,ot),et(nt,b.y,tt.y-b.y,ot))}var y=new or;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,tt,et,nt,ot){nt<ot?x.mm(et(nt,b.x,tt.x-b.x,ot),et(nt,b.y,tt.y-b.y,ot),!1):x.position=new Gt(et(nt,b.x,tt.x-b.x,ot),et(nt,b.y,tt.y-b.y,ot))}),y.add("location",function(x,b,tt,et,nt,ot){nt<ot?x.mm(et(nt,b.x,tt.x-b.x,ot),et(nt,b.y,tt.y-b.y,ot),!0):x.location=new Gt(et(nt,b.x,tt.x-b.x,ot),et(nt,b.y,tt.y-b.y,ot))}),y.add("position:placeholder",function(x,b,tt,et,nt,ot){nt<ot?x.mm(et(nt,b.x,tt.x-b.x,ot),et(nt,b.y,tt.y-b.y,ot),!1):x.position=new Gt(et(nt,b.x,tt.x-b.x,ot),et(nt,b.y,tt.y-b.y,ot))}),y.add("position:nodeCollapse",function(x,b,tt,et,nt,ot){var at=x.actualBounds,ut=tt.actualBounds;tt=ut.x+ut.width/2-at.width/2,at=ut.y+ut.height/2-at.height/2,nt<ot?x.mm(et(nt,b.x,tt-b.x,ot),et(nt,b.y,at-b.y,ot),!1):x.position=new Gt(et(nt,b.x,tt-b.x,ot),et(nt,b.y,at-b.y,ot))}),y.add("desiredSize",function(x,b,tt,et,nt,ot){x.desiredSize=new je(et(nt,b.width,tt.width-b.width,ot),et(nt,b.height,tt.height-b.height,ot))}),y.add("width",function(x,b,tt,et,nt,ot){x.width=et(nt,b,tt-b,ot)}),y.add("height",function(x,b,tt,et,nt,ot){x.height=et(nt,b,tt-b,ot)}),y.add("fill",function(x,b,tt,et,nt,ot){x.fill=yd(b,tt,nt,ot,et)}),y.add("stroke",function(x,b,tt,et,nt,ot){x.stroke=yd(b,tt,nt,ot,et)}),y.add("strokeWidth",function(x,b,tt,et,nt,ot){x.strokeWidth=et(nt,b,tt-b,ot)}),y.add("strokeDashOffset",function(x,b,tt,et,nt,ot){x.strokeDashOffset=et(nt,b,tt-b,ot)}),y.add("background",function(x,b,tt,et,nt,ot){x.background=yd(b,tt,nt,ot,et)}),y.add("areaBackground",function(x,b,tt,et,nt,ot){x.areaBackground=yd(b,tt,nt,ot,et)}),y.add("opacity",function(x,b,tt,et,nt,ot){x.opacity=et(nt,b,tt-b,ot)}),y.add("scale",function(x,b,tt,et,nt,ot){x.scale=et(nt,b,tt-b,ot)}),y.add("angle",function(x,b,tt,et,nt,ot){x.angle=et(nt,b,tt-b,ot)}),Hp=y}ge.Object.defineProperties(Il.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&&Ri(a,">= 1",Il,"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}}}),Il.prototype.stopAnimation=Il.prototype.Cc;var Hp=null,uh=!1,_l=new ui(Il,"Default",1),_p=new ui(Il,"AnimateLocations",2),ch=new ui(Il,"None",3);Il.className="AnimationManager",Il.defineAnimationEffect=function(a,y){uh||(Um(),uh=!0),Hp.add(a,y)},Il.Default=_l,Il.AnimateLocations=_p,Il.None=ch;function sl(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=bd,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Zn,this.vc=new or,this.Tt=new or,this.yl=new Ce,this.Ut=new Ce,this.dw=bh,a&&Object.assign(this,a)}sl.prototype.suspend=function(){this.Xk=!0},sl.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,dh(this,!0),$l(this.Yd),kl(this.H),vd(this.Yd),this.H.redraw()};function Qd(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}St=sl.prototype,St.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 dn?a=x:x instanceof Ue&&(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===_l&&this===y.defaultAnimation&&(this.Lp=Zm,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Vf),$l(y),this.yl.each(function(b){b.data=null,a.add(b)}),vd(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Jd(y,this),this)},St.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},St.add=function(a,y,x,b,tt){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof dn?this.H=a:a instanceof Ue&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Pr){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return hh(this,a,y,x,b,tt),this};function hh(a,y,x,b,tt,et){var nt=a.vc;if(y instanceof dn&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(Xh(b),Iy(),b=[Au.j,Au.u,Au.o,Au.F],Xh(tt),Iy(),tt=[Au.j,Au.u,Au.o,Au.F]),nt.contains(y)){var ot=nt.I(y),at=ot.start,ut=ot.end;at[x]===void 0&&(at[x]=xd(b)),ut[x]=xd(tt)}else at={},ut={},at[x]=xd(b),ut[x]=xd(tt),ot=at.position,y instanceof Ue&&ot instanceof Gt&&!ot.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&ot.assign(ut.position),ot=new $d(at,ut,et),nt.add(y,ot);nt=at[x],nt instanceof Gt&&!nt.w()&&nt.assign(a.o),et&&x.indexOf("position:")===0&&y instanceof Pr?ot.Ku.location=xd(y.location):et&&(ot.Ku[x]=xd(b))}function xd(a){return a instanceof Gt||a instanceof An?a.copy():a}St.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},St.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function dh(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var b=+new Date,tt=b>a.cn?a.Gd:b-a.Qd;y&&(tt=a.gw,tt<a.Gd?(a.Qd=+new Date-tt,a.cn=a.Qd+a.Gd):tt=a.Gd),$l(x),Wp(a,tt),kl(a.H,!0),vd(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 Wp(a,y){for(var x=a.Gd,b=a.vc.iterator,tt=a.Wk;b.next();){var et=b.key;if(!(et instanceof Ue&&et.diagram===null)){var nt=b.value,ot=tt?nt.end:nt.start;nt=tt?nt.start:nt.end;var at=Hp,ut;for(ut in nt)ut==="position"&&(nt["position:placeholder"]||nt["position:nodeCollapse"])||at.get(ut)===null||at.get(ut)(et,ot[ut],nt[ut],a.Lp,y,x,a)}}}St.stop=function(){return this.bc?(this.Ml(!0),this):this},St.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,$l(x);for(var b=this.vc,tt=this.yl.iterator;tt.next();)y.remove(tt.value);for(tt=this.Ut.iterator;tt.next();)tt.value.v();tt=this.ho,b=b.iterator;for(var et=Hp;b.next();){var nt=b.key,ot=b.value,at=tt?ot.end:ot.start,ut=tt?ot.start:ot.end,ht=ot.Ku,gt;for(gt in ut)if(et.get(gt)!==null){var bt=gt;!ot.Hu||bt!=="position:nodeCollapse"&&bt!=="position:placeholder"||(bt="position"),et.get(bt)(nt,at[gt],ht[gt]!==void 0?ht[gt]:ot.Hu?at[gt]:ut[gt],this.Lp,this.Gd,this.Gd,this)}ot.Hu&&ht.location!==void 0&&nt instanceof Pr&&(nt.location=ht.location),ot.nv&&nt instanceof Pr&&nt.Zb(!1)}if(y.As.clear(),Rf(y,!1),y.Ya(),y.N(),kl(y,!0),x.defaultAnimation===this){for(gt=x.pr.iterator;gt.next();)tt=gt.value,tt.Tg!==null&&(tt.points=tt.Tg,tt.Tg=null);x.pr.clear()}kl(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),vd(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Qd(this,null),x.Ml(this),y.$b())}},St.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof $r&&(b=y.placeholder),b!==null?(x=b.ga(er),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Gt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof $r)for(a=a.memberParts;a.next();)b=a.value,b instanceof Xi&&this.Cj(b,y)},St.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof $r&&(x=y.placeholder),x!==null){var b=x.ga(er);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 $r)for(a=a.memberParts;a.next();)b=a.value,b instanceof Xi&&this.Aj(b,y)}},St.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},ge.Object.defineProperties(sl.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Ri(a,">= 1",sl,"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:_e("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}}}),sl.prototype.getTemporaryState=sl.prototype.Ez,sl.prototype.stop=sl.prototype.stop,sl.prototype.add=sl.prototype.add,sl.prototype.addTemporaryPart=sl.prototype.Iy;function bd(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Zm(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}sl.className="Animation",sl.EaseLinear=function(a,y,x,b){return x*a/b+y},sl.EaseInOutQuad=bd,sl.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},sl.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},sl.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},sl.EaseOutExpo=Zm;function $d(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}$d.className="AnimationState";function lc(a,y,x){this.xd=null,this.rf=a,this.so=x||Ff,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=qd))}lc.prototype.copy=function(){var a=new lc(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 cv(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))}ge.Object.defineProperties(lc.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 Ff=new ui(lc,"Default",1),qd=new ui(lc,"Immediate",2),Kh=new ui(lc,"Bundled",3);lc.className="AnimationTrigger",lc.Default=Ff,lc.Immediate=qd,lc.Bundled=Kh;function Ia(a){si(this),this.H=null,this.Pa=new oi,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)}St=Ia.prototype,St.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,al(x)}a.clear(),this.Zq.length=0},St.Xe=function(a){this.H=a},St.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,b=0,tt=0,et=0,nt=0,ot=this.Pa.iterator;ot.next();){var at=ot.value;at instanceof $r?tt++:at instanceof Xi?b++:at instanceof ji?et++:at instanceof Wo?nt++:x++}if(ot="",0<x&&(ot+=x+" Parts "),0<b&&(ot+=b+" Nodes "),0<tt&&(ot+=tt+" Groups "),0<et&&(ot+=et+" 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&&Gi(b)&&(ot+=" #"+Gi(b)),x instanceof Xi?ot+=" "+vr(b):x instanceof ji&&(ot+=" "+vr(x.fromNode)+" "+vr(x.toNode));return y+" "+this.Pa.count+": "+ot},St.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 tt=Gt.alloc(),et=this.Pa.s,nt=et.length;nt--;){var ot=et[nt];if((b!==!0||pf(ot)!==!1)&&ot.isVisible()&&(tt.assign(a),Ee(tt,ot.oe),ot=ot.ic(tt,y,x),ot!==null&&(y!==null&&(ot=y(ot)),ot!==null&&(x===null||x(ot)))))return Gt.free(tt),ot}return Gt.free(tt),null},St.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof oi||b instanceof Ce||(b=new Ce),this.Uh===!1)return b;var tt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(tt=!0);for(var et=Gt.alloc(),nt=this.Pa.s,ot=nt.length;ot--;){var at=nt[ot];if((tt!==!0||pf(at)!==!1)&&at.isVisible()){et.assign(a),Ee(et,at.oe);var ut=at;at.ji(et,y,x,b)&&(y!==null&&(ut=y(ut)),ut===null||x!==null&&!x(ut)||b.add(ut))}}return Gt.free(et),b},St.Cf=function(a,y,x,b,tt){if(y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),tt instanceof oi||tt instanceof Ce||(tt=new Ce),this.Uh===!1)return tt;var et=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(et=!0);for(var nt=this.Pa.s,ot=nt.length;ot--;){var at=nt[ot];if((et!==!0||pf(at)!==!1)&&at.isVisible()){var ut=at;at.Cf(a,y,x,b,tt)&&(y!==null&&(ut=y(ut)),ut===null||x!==null&&!x(ut)||tt.add(ut))}}return tt},St.Nu=function(a,y,x,b,tt,et,nt){if(this.Uh===!1)return tt;for(var ot=this.Pa.s,at=ot.length;at--;){var ut=ot[at];if((nt!==!0||pf(ut)!==!1)&&et(ut)&&ut.isVisible()){var ht=ut;ut.Cf(a,y,x,b,tt)&&(y!==null&&(ht=y(ht)),ht===null||x!==null&&!x(ht)||tt.add(ht))}}return tt},St.og=function(a,y,x,b,tt,et){if(x===void 0&&(x=null),b===void 0&&(b=null),tt===void 0&&(tt=!0),tt!==!1&&tt!==!0&&((tt instanceof oi||tt instanceof Ce)&&(et=tt),tt=!0),et instanceof oi||et instanceof Ce||(et=new Ce),this.Uh===!1)return et;var nt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(nt=!0);for(var ot=Gt.alloc(),at=Gt.alloc(),ut=this.Pa.s,ht=ut.length;ht--;){var gt=ut[ht];if((nt!==!0||pf(gt)!==!1)&>.isVisible()){ot.assign(a),Ee(ot,gt.oe),at.h(a.x+y,a.y),Ee(at,gt.oe);var bt=gt;gt.og(ot,at,x,b,tt,et)&&(x!==null&&(bt=x(bt)),bt===null||b!==null&&!b(bt)||et.add(bt))}}return Gt.free(ot),Gt.free(at),et},St.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=Xn();for(var tt=Xn(),et=0;et<b;et++){var nt=x[et];if(nt.vw=et,nt instanceof ji){if(nt.fd===!1)continue}else if(nt instanceof Wo&&nt.adornedPart!==null)continue;var ot=nt.actualBounds;nt.isVisible()&&qe(ot,y)?(nt.Fd(!0),a.push(nt)):(nt.Fd(!1),nt.adornments!==null&&0<nt.adornments.count&&tt.push(nt))}for(y=0;y<a.length;y++)for(x=a[y],kg(x),x=x.adornments;x.next();)b=x.value,b.measure(1/0,1/0),b.arrange(),b.Fd(!0);for(y=0;y<tt.length;y++)kg(tt[y]);qn(a),qn(tt)}}};function fh(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}St.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 tt=0;tt<b;tt++)x[tt].Gj();tt=fh(this,a);var et=this.Zq;et.length=0;for(var nt=y.scale,ot=je.alloc(),at=0;at<b;at++)this.Oj(a,x[at],y,et,nt,ot,!0);if(je.free(ot),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=tt}}};function hv(a,y,x,b,tt){if(a.visible&&a.pb!==0&&(tt||!a.isTemporary)){tt=a.Pa.s;var et=tt.length;if(et!==0){var nt=fh(a,y),ot=a.Zq;ot.length=0;for(var at=x.scale,ut=je.alloc(),ht=0;ht<et;ht++){var gt=tt[ht];b.contains(gt)&&a.Oj(y,gt,x,ot,at,ut,!1)}je.free(ut),y.globalAlpha=nt}}}St.Oj=function(a,y,x,b,tt,et,nt){if(nt&&!pf(y))a.Hs(y);else{if(b!==null&&y instanceof ji&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(nt=!1,b=y.containingGroup;b!==null;)nt?b.tb!==null&&et.Ex(b.tb):b.tb!==null&&(nt=!0,et.assign(b.tb)),b=b.containingGroup;var ot=y.actualBounds;if(b=!1,nt&&y.isVisible()){if(!et.Yc(ot)){a.Hs(y);return}b=!et.Re(ot)}b&&(a.save(),a instanceof wl?a.bk=et.copy():(a.beginPath(),a.rect(et.x,et.y,et.width,et.height),a.clip())),ot.width*tt>x.Oq||ot.height*tt>x.Oq?y.gc(a,x):(tt=y.actualBounds,et=y.naturalBounds,tt.width===0||tt.height===0||isNaN(tt.x)||isNaN(tt.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(Us(y,a,y.areaBackground,!0,!0,et,tt),a.fillRect(tt.x,tt.y,tt.width,tt.height)),y.areaBackground===null&&y.background===null&&(Us(y,a,"rgba(0,0,0,0.3)",!0,!1,et,tt),a.fillRect(tt.x,tt.y,tt.width,tt.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),Us(y,a,y.background,!0,!1,et,tt),a.fillRect(0,0,et.width/2,et.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))}},St.g=function(a,y,x,b,tt){var et=this.diagram;et!==null&&et.cb(_r,a,this,y,x,b,tt)},St.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&al(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)),Vp(this,a,y),a},St.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,al(y),a};function Vp(a,y,x){if(y=dv(a,y,x),x instanceof $r&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,tt=a.Pa.s,et=tt.length,nt=0;nt<et;nt++){var ot=tt[nt];if(ot===x&&(y=nt,0<=b)||0>b&&ot.containingGroup===x&&(b=nt,0<=y))break}!(0>b)&&b<y&&(tt=a.Pa,tt.mb(y),tt.Gb(b,x))}y=x.containingGroup,y!==null&&Vp(a,-1,y)}x.svg!==null&&x.svg.remove()}function dv(a,y,x){var b=x.zOrder;if(isNaN(b))return y;a=a.Pa;var tt=a.count;if(1>=tt)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var et=y-1,nt=NaN;0<=et&&(nt=a.M(et).zOrder,!!isNaN(nt));)et--;for(var ot=y+1,at=NaN;ot<tt&&(at=a.M(ot).zOrder,!!isNaN(at));)ot++;if(!isNaN(nt)&&nt>b)for(;;){if(et===-1||nt<=b){if(et++,et===y)break;return a.mb(y),a.Gb(et,x),et}for(nt=NaN;0<=--et&&(nt=a.M(et).zOrder,isNaN(nt)););}else if(!isNaN(at)&&at<b)for(;;){if(ot===tt||at>=b){if(ot--,ot===y)break;return a.mb(y),a.Gb(ot,x),ot}for(at=NaN;++ot<tt&&(at=a.M(ot).zOrder,isNaN(at)););}return y}ge.Object.defineProperties(Ia.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===""&&_e("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&_e("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)&&Ri(a,"0 <= value <= 1",Ia,"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))}}}),Ia.prototype.findObjectsNear=Ia.prototype.og,Ia.prototype.findObjectsIn=Ia.prototype.Cf,Ia.prototype.findObjectsAt=Ia.prototype.ji,Ia.prototype.findObjectAt=Ia.prototype.ic,Ia.className="Layer";function dn(a,y){if(gv||(Ba(),gv=!0),si(this),Ts=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,ts){var x=this,b=function(){x.removeEventListener(ce.document,"DOMContentLoaded",b,!1),x.setRTL()};ce.document.body!==null?this.setRTL():x.addEventListener(ce.document,"DOMContentLoaded",b,!1)}this.ol=null,U0.add("Model",Xo);var tt=this;return this.Hb=function(et){var nt=tt.partManager;if(et.model===nt.diagram.model&&nt.diagram.aa){nt.diagram.aa=!1;try{var ot=et.change;et.modelChange===""&&ot===_r&&nt.updateDataBindings(et.object,et.propertyName)}finally{nt.diagram.aa=!0}}},this.Oc=function(et){tt.partManager.doModelChanged(et)},this.hu=this.ku=null,Fa(this),this.model=Wg(),this.Wg=!0,pv(this),this.layout=new Ds,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 Md,a!==void 0&&(typeof a=="string"||ce.Element&&a instanceof Element?Hu(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var ph,Ts;function Fa(a){a.Yd=new Il,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new oi,a.pj=new or,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Gt(NaN,NaN).freeze(),a.du=new Gt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Gt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Hr,a.zu=new Gt(NaN,NaN).freeze(),a.ut=new je(NaN,NaN,NaN,NaN).freeze(),a.rj=new Kn(0,0,0,0).freeze(),a.sj=bh,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Ua,a.zk=Ao,a.Fg=Ua,a.pq=Ao,a.yt=er,a.Bt=er,a.Fc=!0,a.pn=!1,a.De=new Ce,a.Eh=new or,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Kn(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new ha,a.bq.diagram=a,a.Qg=new ha,a.Qg.diagram=a,a.cj=new ha,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,ng(a),a.ai=new Ce,a.Ht=!0,a.uu=Cd,a.pw=!1,a.wu=Qp,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 or,a.Xn=new oi,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 Kn(5).freeze(),a.Hw=new Ce().freeze(),a.Nt=999999999,a.nw=new Ce().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 Ce,a.ow=new Ce,a.Xh=null,a.aw=new An(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Gt,bounds:new je,Py:new An,bA:new An,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new je(NaN,NaN,NaN,NaN).freeze(),a.wo=new An(NaN,NaN).freeze(),a.Sp=new je(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new or;var y=new Xi,x=new as;x.bind(new ls("text","",vr)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Xi,x=new as,x.stroke="brown",x.bind(new ls("text","",vr)),y.add(x),a.Lg.add("Comment",y),y=new Xi,y.selectable=!1,y.avoidable=!1,x=new lo,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new An(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new or,y=new $r,y.selectionObjectName="GROUPPANEL",y.type=Di.Vertical,x=new as,x.font="bold 12pt sans-serif",x.bind(new ls("text","",vr)),y.add(x),x=new Di(Di.Auto),x.name="GROUPPANEL";var b=new lo;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new Pl,b.padding=new Kn(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new or,y=new ji,x=new lo,x.isPanelMain=!0,y.add(x),x=new lo,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new ji,x=new lo,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Wo,y.type=Di.Auto,x=new lo,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Pl,x.margin=new Kn(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Wo,y.type=Di.Link,x=new lo,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 Xo,a.toolManager=new Po,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new lt,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Gm(),a.eq=null,a.fq=ee,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 Gt,a.zy=500,a.wp=new Gt,a.wq=!1}dn.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Wf=null,sf="",Hh(this,!1),this.Xn.clear(),fm(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Hh(a,y){a.animationManager.Cc(!0),a.Hw=new Ce().freeze(),a.nw=new Ce().freeze();var x=a.skipsUndoManager,b=a.cc!==null&&a.cc!==void 0;b&&(a.skipsUndoManager=!0);var tt=null;a.fe!==null&&(tt=a.fe.part,tt!==null&&a.remove(tt));var et=[],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!==tt&&at.data===null&&et.push(at)}for(y=0;y<et.length;y++)a.remove(et[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(),fm(),a.Og.clear(),Do=[],tt!==null&&(a.add(tt),a.partManager.parts.remove(tt)),b&&(a.skipsUndoManager=x),et}function Gm(){return null}dn.prototype.reset=function(){this.clear(),this.vb=!0,Fa(this),Va(this),this.Wg=!0,pv(this),this.layout=new Ds,this.Wg=!1,this.model=Wg(),this.model.undoManager=new Zo,this.vb=this.rn=!1,this.N()},dn.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=ce.document.body);var y=$n("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},dn.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=ce.document.body);var y=0;if(ts){var x=sg;y=ph,x===null&&(x=sg=$n("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=ph=$n("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||qr||(y=11)}this.Db=y,this.Gw=!0},dn.prototype.qb=function(a){a.classType===dn&&(this.autoScale=a)},dn.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 Hu(a,y){if(ts){if(y!=null||_e("Diagram setup requires an argument DIV."),a.Ka!==null&&_e("Diagram has already completed setup."),typeof y=="string"?a.Ka=ce.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:_e("No DIV or DIV id supplied: "+y),a.Ka===null&&_e("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&_e("Invalid div id; div already has a Diagram associated with it."),!a.ol&&ce.ResizeObserver){var x=pn(function(){a.$b()},250);a.ol=new ce.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}ce.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=ce.go;var tt=new ec(a);if(tt.style!==void 0&&(tt.style.position="absolute",tt.style.top="0px",tt.style.left="0px",ce.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),tt.style.zIndex="2",tt.style.userSelect="none",tt.style.MozUserSelect="none",tt.style.touchAction="none",tt.style.letterSpacing="normal !important",tt.style.wordSpacing="normal !important"),a.ta=tt,a.ib=tt.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Jm(a,a.Aa,a.ya),a.Ka.insertBefore(tt.Oa,a.Ka.firstChild),tt=new ec(null),tt.width=1,tt.height=1,a.jw=tt,a.oy=tt.context,ts){tt=$n("div");var et=$n("div");tt.style.position="absolute",tt.style.overflow="auto",tt.style.width=a.Aa+"px",tt.style.height=a.ya+"px",tt.style.zIndex="1",et.style.position="absolute",et.style.width="1px",et.style.height="1px",a.Ka.appendChild(tt),tt.appendChild(et),tt.onscroll=zf,tt.addEventListener("pointerdown",jf),tt.H=a,tt.uy=!0,tt.vy=!0,a.ku=tt,a.hu=et}a.hk=pn(function(){a.Yh=null,a.N()},300),a.Ov=pn(function(){Ym(a)},250),a.preventDefault=function(nt){return nt.preventDefault(),!1},a.$j=function(nt){if(a.isEnabled){var ot=sa(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(),Mu(ot,nt)}},a.aA=function(nt){a.isEnabled&&(a.Vk=!1,sa(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=Gp(a,nt,!0,!1,!0,ut),Wh(a,nt,at),at.targetDiagram=Xm(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():Mu(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=Gp(a,nt,!1,!1,!1,ot[1]!==null);var at=ce.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,ht=nt;at&&at.H&&(ht=nt,ut=at.H),ot.targetDiagram=ut,Wh(a,ht,ot),ot.targetObject=null,a.doMouseMove(),Mu(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=Gp(a,nt,!1,!0,!0,!1);var ut=ce.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 dn&&ut.H!==a&&Wh(ut.H,nt,at),ut===null&&(ut=nt.target),Wh(a,nt,at),at.clickCount=a.yq,at.targetDiagram=Xm(nt,ut),at.targetObject=null,a.doMouseUp(),Mu(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"+dc[1]+dc[2]+"wI"+Zf.slice(1,5)]["b"+Zb.slice(1,y)](b.Z,$p,y,y),b.Vc(!0),fv(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}dn.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},dn.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function fv(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(ce,"resize",a.Ov,!1)}function qa(a){30<a.Sq&&(a.Yh=1)}function Rf(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),wo&&wo.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}dn.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:ce.devicePixelRatio||1},dn.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},dn.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},dn.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},dn.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},dn.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},dn.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},dn.prototype.doFocus=function(){this.focus()},dn.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=ce.scrollX||ce.pageXOffset,y=ce.scrollY||ce.pageYOffset;this.ta.focus(),ce.scrollTo(a,y)}},dn.prototype.Oy=function(){this.H.R("GainedFocus")},dn.prototype.Ny=function(){this.H.R("LostFocus")};function Ym(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,tt=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==tt&&(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===Ua&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function pv(a){var y=new Ia;y.name="Background",a.Al(y),y=new Ia,y.name="",a.Al(y),y=new Ia,y.name="Foreground",a.Al(y),y=new Ia,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Ia,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Ia,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function _0(a){var y=new Di(Di.Grid);y.name="GRID";var x=new lo;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new lo,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new lo,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new lo,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new lo,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new lo,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Pr,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 zf(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):fl(this.H)}function jf(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):fl(this.H)}dn.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var b=this.documentBounds,tt=this.viewportBounds,et=this.rj,nt=b.x-et.left,ot=b.y-et.top,at=b.width+et.left+et.right,ut=b.height+et.top+et.bottom,ht=b.right+et.right;et=b.bottom+et.bottom;var gt=tt.x;b=tt.y;var bt=tt.width,Mt=tt.height,Et=tt.right,Bt=tt.bottom;tt=this.scale;var se=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":se=se+a.scrollWidth-a.clientWidth;break;case"reverse":se=a.scrollWidth-se-a.clientWidth}var Jt=se;bt<at||Mt<ut?(se=Gt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Jt&&(se.x=Jt/tt+nt,this.ju=Jt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(se.y=a.scrollTop/tt+ot,this.lu=a.scrollTop),this.position=se,Gt.free(se),this.Ee=this.qr=!1):(se=Gt.alloc(),a.uy&&this.allowHorizontalScroll&&(nt<gt&&(this.position=se.h(Jt+nt,this.position.y)),ht>Et&&(this.position=se.h(-(y.scrollWidth-this.Aa)+Jt-this.Aa/tt+ht,this.position.y))),a.vy&&this.allowVerticalScroll&&(ot<b&&(this.position=se.h(this.position.x,a.scrollTop+ot)),et>Bt&&(this.position=se.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/tt+et))),Gt.free(se),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,tt=this.viewportBounds,ht=b.right,Et=tt.right,et=b.bottom,Bt=tt.bottom,nt=b.x,gt=tt.x,ot=b.y,b=tt.y,bt>=at&&nt>=gt&&ht<=Et&&(x.style.width="1px"),Mt>=ut&&ot>=b&&et<=Bt&&(x.style.height="1px"))}},dn.prototype.computeBounds=function(a){return a===void 0&&(a=new je),wa(this),Qr(this,a)};function Qr(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,b=a.Wa.s,tt=b.length,et=0;et<tt;et++){var nt=b[et];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}dn.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(un(a))for(var b=0;b<a.length;b++){var tt=a[b];!y&&tt instanceof ji||(tt.Va(),x===null?x=tt.actualBounds.copy():x.ed(tt.actualBounds))}else for(a=a.iterator;a.next();)b=a.value,!y&&b instanceof ji||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new je(NaN,NaN,0,0):x};function Cu(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=Gt.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=je.allocAt(0,0,b.width,b.height);var tt=Gt.alloc();tt.xi(b,a.initialViewportSpot),tt.h(x.x-tt.x,x.y-tt.y),a.position=tt,je.free(b),Gt.free(tt),Gt.free(x)}x=a.yh,y&&a.Fg!==Ua&&(x=a.Fg);var et=x!==Ua?_h(a,x):a.scale;x=a.pa.x,b=a.pa.y,tt=a.Aa/et;var nt=a.ya/et,ot=a.zk,at=a.pq;y&&!ot.sb()&&(at.sb()||at.Xb())&&(ot=at.Xb()?yr:at),Kf(a,a.documentBounds,tt,nt,ot,y),y=a.scale,a.scale=et,a.vb=!1,et=a.viewportBounds,Ke.B(et.x,x)&&Ke.B(et.y,b)&&Ke.B(et.width,tt)&&Ke.B(et.height,nt)||a.onViewportBoundsChanged(new je(x,b,tt,nt),et,y,!1)}}function _h(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var b=a.documentBounds;if(!b.w())return x;var tt=b.width;b=b.height;var et=a.Aa+(a.gf?a.Db:0),nt=a.ya+(a.Be?a.Db:0),ot=et/tt,at=nt/b;return y===Eu?(y=Math.min(at,ot),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Zc?(y=at>ot?(nt-a.Db)/b:(et-a.Db)/tt,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}dn.prototype.zoomToFit=function(){var a=this.sj;this.sj=bh,this.scale=_h(this,Eu),a!==bh&&(Cu(this,!1),Kf(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},St=dn.prototype,St.BA=function(a,y){y===void 0&&(y=Eu);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var tt=1;if(y===Eu||y===Zc)if(isNaN(x))tt=this.viewportBounds.height*this.scale/b;else if(isNaN(b))tt=this.viewportBounds.width*this.scale/x;else{tt=this.Aa;var et=this.ya;tt=y===Zc?et/b>tt/x?(et-(this.Be?this.Db:0))/b:(tt-(this.gf?this.Db:0))/x:Math.min(et/b,tt/x)}this.scale=tt,this.position=new Gt(a.x,a.y)}},St.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Gt(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))},St.zz=function(a){if(a instanceof Ue){this.eq=a;var y=Gt.alloc();this.fq=this.op(a.ga(er,y)),Gt.free(y)}else this.eq=null,this.fq=ee};function Kf(a,y,x,b,tt,et){var nt=Gt.allocAt(a.pa.x,a.pa.y),ot=nt.x,at=nt.y;if(a.eq!==null){var ut=Gt.alloc();ut=a.eq.ga(er,ut),ot=ut.x-a.fq.x/a.scale,at=ut.y-a.fq.y/a.scale,tt=Ji,Gt.free(ut)}(et||a.scrollMode===bh)&&(tt.sb()&&(x>y.width&&(ot=y.x+(tt.x*y.width+tt.offsetX)-(tt.x*x-tt.offsetX)),b>y.height&&(at=y.y+(tt.y*y.height+tt.offsetY)-(tt.y*b-tt.offsetY))),tt=a.rj,et=x-y.width,x<y.width+tt.left+tt.right?(ot=Math.min(ot+x/2,y.right+Math.max(et,tt.right)-x/2),ot=Math.max(ot,y.left-Math.max(et,tt.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+tt.top+tt.bottom?(at=Math.min(at+b/2,y.bottom+Math.max(x,tt.bottom)-b/2),at=Math.max(at,y.top-Math.max(x,tt.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),Vm(a.Yd,a.pa,nt),a.pa.h(nt.x,nt.y),Va(a),Gt.free(nt)}St.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=uc(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof Pr)return a}else if(a=uc(this,a,function(x){return x.part}),a instanceof Pr)return a;return null},St.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),wa(this);for(var b=this.Wa.iteratorBackwards;b.next();){var tt=b.value;if(tt.visible&&(tt=tt.ic(a,y,x),tt!==null))return tt}return null};function uc(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),wa(a),a=a.Wa.iteratorBackwards;a.next();){var tt=a.value;if(tt.visible&&!tt.isTemporary&&(tt=tt.ic(y,x,b),tt!==null))return tt}return null}St.lz=function(a,y,x){return y===void 0&&(y=!0),Up(this,a,function(b){return b.part},y?function(b){return b instanceof Pr&&b.canSelect()}:null,x)};function Up(a,y,x,b,tt){for(x===void 0&&(x=null),b===void 0&&(b=null),tt instanceof oi||tt instanceof Ce||(tt=new Ce),wa(a),a=a.Wa.iteratorBackwards;a.next();){var et=a.value;et.visible&&!et.isTemporary&&et.ji(y,x,b,tt)}return tt}St.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof oi||b instanceof Ce||(b=new Ce),wa(this);for(var tt=this.Wa.iteratorBackwards;tt.next();){var et=tt.value;et.visible&&et.ji(a,y,x,b)}return b},St.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),W0(this,a,function(tt){return tt instanceof Pr&&(!x||tt.canSelect())},y,b)},St.Cf=function(a,y,x,b,tt){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),tt instanceof oi||tt instanceof Ce||(tt=new Ce),wa(this);for(var et=this.Wa.iteratorBackwards;et.next();){var nt=et.value;nt.visible&&nt.Cf(a,y,x,b,tt)}return tt},St.Nu=function(a,y,x,b,tt,et){var nt=new Ce;wa(this);for(var ot=this.Wa.iteratorBackwards;ot.next();){var at=ot.value;at.visible&&at.Nu(a,y,x,b,nt,tt,et)}return nt};function W0(a,y,x,b,tt){var et=null;for(et===void 0&&(et=null),x===void 0&&(x=null),b===void 0&&(b=!1),tt instanceof oi||tt instanceof Ce||(tt=new Ce),wa(a),a=a.Wa.iteratorBackwards;a.next();){var nt=a.value;nt.visible&&!nt.isTemporary&&nt.Cf(y,et,x,b,tt)}return tt}St.mz=function(a,y,x,b,tt){return x===void 0&&(x=!0),b===void 0&&(b=!0),Zp(this,a,y,function(et){return et instanceof Pr&&(!b||et.canSelect())},x,tt)},St.og=function(a,y,x,b,tt,et){x===void 0&&(x=null),b===void 0&&(b=null),tt===void 0&&(tt=!0),tt!==!1&&tt!==!0&&((tt instanceof oi||tt instanceof Ce)&&(et=tt),tt=!0),et instanceof oi||et instanceof Ce||(et=new Ce),wa(this);for(var nt=this.Wa.iteratorBackwards;nt.next();){var ot=nt.value;ot.visible&&ot.og(a,y,x,b,tt,et)}return et};function Zp(a,y,x,b,tt,et){var nt=null;for(nt===void 0&&(nt=null),b===void 0&&(b=null),tt===void 0&&(tt=!0),tt!==!1&&tt!==!0&&((tt instanceof oi||tt instanceof Ce)&&(et=tt),tt=!0),et instanceof oi||et instanceof Ce||(et=new Ce),wa(a),a=a.Wa.iteratorBackwards;a.next();){var ot=a.value;ot.visible&&!ot.isTemporary&&ot.og(y,x,nt,b,tt,et)}return et}dn.prototype.acceptEvent=function(a){return sa(this,a,a instanceof MouseEvent)};function sa(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?Wh(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),qr&&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=Xm(y,y.target),b.targetObject=null,b}function Xm(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 Gp(a,y,x,b,tt,et){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,qr&&y.button===0&&y.ctrlKey&&(nt.button=2),nt.down=x,nt.up=b,nt.handled=!1,nt.bubbles=tt,nt.isMultiTouch=et,nt}function Mu(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}dn.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=sa(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(),Mu(x,a)},dn.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=sa(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(),Mu(x,a)},dn.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=sa(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),Mu(x,a)},dn.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=sa(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),Mu(x,a)},dn.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Gt(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?Ee(new Gt(y,a),this.Ab):new Gt(y,a)};function Wh(a,y,x){var b=a.ta,tt=a.Aa,et=a.ya,nt=0,ot=0;b!==null&&(b=b.getBoundingClientRect(),nt=y.clientX-tt/b.width*b.left,ot=y.clientY-et/b.height*b.top),x.viewPoint.h(nt,ot),a.Ab!==null?(y=Gt.allocAt(nt,ot),a.Ab.Cd(y),x.documentPoint.assign(y),Gt.free(y)):x.documentPoint.h(nt,ot)}function Vh(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))}}dn.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function tf(a){a.ld||wa(a),a.Va()}dn.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},St=dn.prototype,St.Pz=function(){return this.kg},St.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,kl(this),this.hf=!1,this.du=new Gt(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&fi(function(){b.ld=!1,Vc(y,"Model"),a(b)},1)},St.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;ce.requestAnimationFrame(function(){y.kg&&y.bd()})}},St.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),kl(this))};function Wl(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||fl(a)||(y&&wa(a),x&&Cu(a,!1))}function kl(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 tt=b.s,et=tt.length,nt=0;nt<et;nt++){var ot=tt[nt];ta(ot,!1),ot.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(at){at.Nv()}),b.clear()),tt=b=!1,x.defaultAnimation.isAnimating&&(tt=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Ym(a),Wl(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Uc(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),wa(a),et=!1,(!a.hf||a.xh)&&(a.hf?tg(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),tg(a,!1)),et=!0),a.Jk=!1,wa(a),a.ou||tf(a),Wl(a,!0,!1),nt=!1,et?(x=je.alloc(),x.assign(a.viewportBounds),a.hf||(nt=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,tu(a)),a.R("LayoutCompleted"),Wl(a,!0,!1),je.free(x)):x.Ok&&x.Qw&&(a.Fg!==Ua?a.scale=_h(a,a.Fg):a.yh!==Ua?a.scale=_h(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Cu(a,!0)),et&&nt&&a.eb("Initial Layout"),wa(a),y||a.gc(a.ib),tt&&(a.skipsUndoManager=b),a.ld=!1}}function tu(a){if(a.Fg!==Ua)a.scale=_h(a,a.Fg);else if(a.yh!==Ua)a.scale=_h(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Cu(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Uc(a)}function wa(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 Ce,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof $r&&b.U&65536&&(b.U=b.U^65536)})}}St.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof $r||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof $r&&x.isVisible()&&Uh(this,x);for(a.reset();a.next();)x=a.value,x instanceof ji&&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 Wo&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Uh(a,y){for(var x=Xn(),b=Xn(),tt=y.memberParts;tt.next();){var et=tt.value;et.isVisible()&&(et instanceof $r?(Vl(et)||Ll(et)||Ld(et))&&Uh(a,et):et instanceof ji?et.fromNode===y||et.toNode===y?b.push(et):x.push(et):(et.measure(1/0,1/0),et.arrange()))}for(a=x.length,tt=0;tt<a;tt++)et=x[tt],et.measure(1/0,1/0),et.arrange();for(qn(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();qn(b)}St.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var tt=0;tt<y;tt++)a[tt].Fd(x,b)},St.gc=function(a){if(this.Ka!==null){if(this.ta===null&&_e("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){wd(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 tt=this.Ca,et=Math.round(y.x*tt)/tt,nt=Math.round(y.y*tt)/tt,ot=this.Ab;for(ot.reset(),tt!==1&&ot.scale(tt),y.x===0&&y.y===0||ot.translate(-et,-nt),a.ti=null,ru(a,ot.m11,ot.m12,ot.m21,ot.m22,ot.dx,ot.dy),this.pb!==1&&(a.globalAlpha=this.pb),Zh(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?Gc(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Hr.prototype.Cd=Hr.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(et=this.animationManager,!et.zb&&(!et.isAnimating||et.isTicking)&&(x=new Date,wd(this),this.Ka.style.opacity!=="0")){if(b=a!==this.ib,y=this.Wa.s,tt=y.length,this.Fd(y,tt,this,this.viewportBounds),b)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!et.isAnimating)break t;et=this.Ab,et.reset(),nt=this.Mb,ot=this.pa;var at=this.Ca,ut=Math.round(ot.x*at)/at,ht=Math.round(ot.y*at)/at;for(at!==1&&et.scale(at),ot.x===0&&ot.y===0||et.translate(-ut,-ht),a.setTransform(nt,0,0,nt,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Zh(this,a),ot=0;ot<tt;ot++)a.setTransform(nt,0,0,nt,0,0),a.transform(et.m11,et.m12,et.m21,et.m22,et.dx,et.dy),a.yc(),y[ot].gc(a,this);if(y=!1,this.Yf?Gc(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Hr.prototype.Cd=Hr.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=wo&&wo.nx,x=this.zw,b||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,tt=y=0;tt<x.length;tt++)y+=x[tt];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 cc(a,y,x,b,tt,et,nt,ot,at,ut){if(a.Ka!==null){a.ta===null&&_e("No canvas specified"),nt===void 0&&(nt=null),ot===void 0&&(ot=null),at===void 0&&(at=!1),ut===void 0&&(ut=!1),wd(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ht=a.Ca;a.Ca=tt;var gt=a.Wa.s,bt=gt.length;try{var Mt=new je(et.x,et.y,b.width/tt,b.height/tt),Et=Mt.copy();Et.Co(x),Uc(a,Et),wa(a),a.Fd(gt,bt,a,Mt),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 Bt=a.Mb;y.scale(Bt,Bt);var se=Hr.alloc();se.reset(),se.translate(x.left,x.top),se.scale(tt),et.x===0&&et.y===0||se.translate(-et.x,-et.y),y.setTransform(se.m11,se.m12,se.m21,se.m22,se.dx,se.dy),y.yc(),y instanceof wl&&ru(y,se.m11,se.m12,se.m21,se.m22,se.dx,se.dy),Hr.free(se),Zh(a,y),y.globalAlpha=a.pb;var Jt=a.Qj("Grid");if(nt){var me=new Ce,Se=nt.iterator;for(Se.reset();Se.next();){var Le=Se.value;Le instanceof Pr&&(ut||Le.layer!==Jt)&&(Le.Gj(),me.add(Le))}for(ut=0;ut<bt;ut++)hv(gt[ut],y,a,me,at);me.each(function(fn){return fn.Gj()})}else for(me=0;me<bt;me++){var Ve=gt[me];Ve===Jt?ut&&Ve.gc(y,a,!0):Ve.gc(y,a,at)}a.$i=!1,a.Yf&&Gc(a.Yf,a)&&a.Vp()}finally{a.Ca=ht,a.ib.Vc(!0),a.vd=!0,a.Fd(gt,bt,a,a.viewportBounds),Uc(a),a.ib instanceof wl&&(a.ib.Nj.PA(),a.redraw())}}}St.Gf=function(a){return this.Rg[a]},St.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},St.Tx=function(){this.Rg=new Kr,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(qr||ao),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Zh(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}St.Ql=function(a){return this.on[a]},St.sA=function(a,y){this.on[a]=y},St.Sx=function(){this.on=new Kr,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},St.set=function(a){return Object.assign(this,a),this},St.Du=function(a){return this.nm(a)},St.nm=function(a){return ef(this,a),this};function ef(a,y){var x=a instanceof Di,b=a instanceof dn,tt;for(tt in y){tt===""&&_e("Setting properties requires non-empty property names");var et=a,nt=tt;if(x||b){var ot=tt.indexOf(".");if(0<ot){var at=tt.substring(0,ot);x?et=a.fb(at):(et=a[at],et==null&&(et=a.toolManager[at])),Ge(et)?nt=tt.substr(ot+1):_e("Unable to find object named: "+at+" in "+a.toString()+" when trying to set property: "+tt)}}if(nt[0]!=="_"&&!ki(et,nt))if(b&&nt==="ModelChanged"){a.Yw(y[nt]);continue}else if(b&&nt==="Changed"){a.Pe(y[nt]);continue}else if(b&&ki(a.toolManager,nt))et=a.toolManager;else if(b&&ig(a,nt)){a.Bj(nt,y[nt]);continue}else if(a instanceof gr&&nt==="Changed"){a.Pe(y[nt]);continue}else _e('Trying to set undefined property "'+nt+'" on object: '+et.toString());et[nt]=y[tt],nt[0]==="_"&&et instanceof Ue&&et.Vw(nt)}}St.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new or,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},St.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")},dn.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!==Vf&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var b=this.scale,tt=Math.max(a.y,y.y),et=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,et-tt)*b){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(b=je.alloc(),vh(this,this.computeBounds(b)),je.free(b)),b=this.ta,b===null||b instanceof Pc)))){var nt=this.Mb;tt=this.Aa*nt;var ot=this.ya*nt,at=this.scale*nt;et=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!==tt&&(at.width=tt),at.height!==ot&&(at.height=ot),a.clearRect(0,0,tt,ot),at=190*nt;var ut=70*nt,ht=Math.max(et,0),gt=Math.max(y,0),bt=Math.floor(tt-ht),Mt=Math.floor(ot-gt);a.drawImage(b.Oa,ht,gt,bt,Mt,0,0,bt,Mt),Gc(this.Yf,this)&&a.clearRect(0,0,at,ut),b=Xn(),a=Xn(),Mt=Math.abs(et),bt=Math.abs(y);var Et=ht===0?0:tt-Mt;ht=Gt.allocAt(Et,0),Mt=Gt.allocAt(Mt+Et,ot),a.push(new je(Math.min(ht.x,Mt.x),Math.min(ht.y,Mt.y),Math.abs(ht.x-Mt.x),Math.abs(ht.y-Mt.y)));var Bt=this.Ab;if(Bt.reset(),Bt.scale(nt,nt),this.Ca!==1&&Bt.scale(this.Ca),nt=this.pa,(nt.x!==0||nt.y!==0)&&isFinite(nt.x)&&isFinite(nt.y)&&Bt.translate(-nt.x,-nt.y),Ee(ht,Bt),Ee(Mt,Bt),b.push(new je(Math.min(ht.x,Mt.x),Math.min(ht.y,Mt.y),Math.abs(ht.x-Mt.x),Math.abs(ht.y-Mt.y))),Et=gt===0?0:ot-bt,ht.h(0,Et),Mt.h(tt,bt+Et),a.push(new je(Math.min(ht.x,Mt.x),Math.min(ht.y,Mt.y),Math.abs(ht.x-Mt.x),Math.abs(ht.y-Mt.y))),Ee(ht,Bt),Ee(Mt,Bt),b.push(new je(Math.min(ht.x,Mt.x),Math.min(ht.y,Mt.y),Math.abs(ht.x-Mt.x),Math.abs(ht.y-Mt.y))),Gc(this.Yf,this)&&(tt=0<et?0:-et,ot=0<y?0:-y,ht.h(tt,ot),Mt.h(at+tt,ut+ot),a.push(new je(Math.min(ht.x,Mt.x),Math.min(ht.y,Mt.y),Math.abs(ht.x-Mt.x),Math.abs(ht.y-Mt.y))),Ee(ht,Bt),Ee(Mt,Bt),b.push(new je(Math.min(ht.x,Mt.x),Math.min(ht.y,Mt.y),Math.abs(ht.x-Mt.x),Math.abs(ht.y-Mt.y)))),Gt.free(ht),Gt.free(Mt),Wl(this,!1,!0),this.Ka===null&&_e("No div specified"),this.ta===null&&_e("No canvas specified"),!this.animationManager.zb&&(tt=this.ib,this.Fc)){for(wd(this),ot=this.Mb,tt.setTransform(1,0,0,1,0,0),tt.clearRect(0,0,this.Aa*ot,this.ya*ot),tt.drawImage(this.jw.Oa,0<et?0:Math.round(-et),0<y?0:Math.round(-y)),et=this.pa,nt=this.Ca,at=Math.round(et.x*nt)/nt,ut=Math.round(et.y*nt)/nt,y=this.Ab,y.reset(),nt!==1&&y.scale(nt),et.x===0&&et.y===0||y.translate(-at,-ut),tt.save(),tt.beginPath(),et=a.length,nt=0;nt<et;nt++)at=a[nt],at.width!==0&&at.height!==0&&tt.rect(Math.floor(at.x),Math.floor(at.y),Math.ceil(at.width),Math.ceil(at.height));for(tt.clip(),tt.setTransform(ot,0,0,ot,0,0),tt.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),tt.yc(),y=this.Wa.s,et=y.length,this.Fd(y,et,this,this.viewportBounds),Zh(this,tt),tt.globalAlpha=this.pb,ot=0;ot<et;ot++)if(nt=y[ot],at=b,nt.visible&&nt.pb!==0){ut=fh(nt,tt),gt=nt.Zq,gt.length=0,ht=this.scale,bt=je.alloc(),Mt=nt.Pa.s,Bt=Mt.length,Et=at.length;for(var se=0;se<Bt;se++){var Jt=Mt[se],me=Oc(Jt,Jt.actualBounds);t:{for(var Se=2/ht,Le=4/ht,Ve=0;Ve<Et;Ve++){var fn=at[Ve];if(fn.width!==0&&fn.height!==0&&me.Vu(fn.x-Se,fn.y-Se,fn.width+Le,fn.height+Le)){me=!0;break t}}me=!1}me&&nt.Oj(tt,Jt,this,gt,ht,bt,!0)}je.free(bt),tt.globalAlpha=ut}tt.restore(),tt.Vc(!0),this.Yf&&Gc(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}qn(b),qn(a),this.ld=!1}}else this.bd();x&&(qa(this),this.bd(),Rf(this,!0))}else x?(qa(this),this.bd(),Rf(this,!0)):this.bd()}};function wd(a){a.pn!==!1&&(a.pn=!1,Jm(a,a.Aa,a.ya))}function Jm(a,y,x){Va(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function fl(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,b=a.ya,tt=a.Ka,et=!1,nt=a.gf?a.Db:0,ot=a.Be?a.Db:0,at=tt.clientWidth||x+nt,ut=tt.clientHeight||b+ot,ht=a.viewportBounds;tt=ht.x;var gt=ht.y,bt=ht.width,Mt=ht.height;if((at!==x+nt||ut!==b+ot)&&(a.gf=!1,a.Be=!1,ot=nt=0,a.Aa=at,a.ya=ut,et=a.pn=!0,Va(a)),!a.hf||!a.viewportBounds.w())return!0;var Et=a.ku,Bt=a.hu;if(a.Ee=!1,!(et||a.gf||a.Be||a.mn||a.nn))return!0;var se=a.documentBounds,Jt=0,me=0,Se=0,Le=0,Ve=ht.width,fn=ht.height,nr=a.rj;a.contentAlignment.sb()?(se.width>Ve&&(Jt=nr.left,me=nr.right),se.height>fn&&(Se=nr.top,Le=nr.bottom)):(Jt=nr.left,me=nr.right,Se=nr.top,Le=nr.bottom);var mr=se.width+Jt+me,dr=se.height+Se+Le;nr=a.scale;var Hi=mr>at/nr,vi=dr>ut/nr;if(!(et||a.gf||a.Be||Hi||vi))return!0;Jt=se.x-Jt,at=ht.x,me=se.right+me,ut=ht.right+nt,Se=se.y-Se;var ro=ht.y;se=se.bottom+Le,ht=ht.bottom+ot;var Ur="1px";if(Le="1px",a.scrollMode===bh&&(Hi||vi)&&(Hi&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Hi=1,Jt+1<at&&(Hi=Math.max((at-Jt)*nr+a.Aa,Hi)),me>ut+1&&(Hi=Math.max((me-ut)*nr+a.Aa,Hi)),Ve+nt+1<mr&&(Hi=Math.max((mr-Ve)*nr+a.Aa,Hi)),Ur=Hi.toString()+"px"),vi&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Hi=1,Se+1<ro&&(Hi=Math.max((ro-Se)*nr+a.ya,Hi)),se>ht+1&&(Hi=Math.max((se-ht)*nr+a.ya,Hi)),fn+ot+1<dr&&(Hi=Math.max((dr-fn)*nr+a.ya,Hi)),Le=Hi.toString()+"px")),Hi=Ur!=="1px",vi=Le!=="1px",Hi&&vi||!Hi&&!vi||(vi&&(ut-=a.Db),Hi&&(ht-=a.Db),mr<Ve+nt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(nt=1,Jt+1<at&&(nt=Math.max((at-Jt)*nr+a.Aa,nt)),me>ut+1&&(nt=Math.max((me-ut)*nr+a.Aa,nt)),Ve+1<mr&&(nt=Math.max((mr-Ve)*nr+a.Aa,nt)),Ur=nt.toString()+"px"),Hi=Ur!=="1px",nt=a.ya,Hi!==a.Be&&(nt=Hi?a.ya-a.Db:a.ya+a.Db),dr<fn+ot||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(ot=1,Se+1<ro&&(ot=Math.max((ro-Se)*nr+nt,ot)),se>ht+1&&(ot=Math.max((se-ht)*nr+nt,ot)),fn+1<dr&&(ot=Math.max((dr-fn)*nr+nt,ot)),Le=ot.toString()+"px"),vi=Le!=="1px"),a.qr&&Hi===a.Be&&vi===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(Hi!==a.Be&&(Ur==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),et=!0),a.Be=Hi,Bt.style.width=Ur,vi!==a.gf&&(Le==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),et=!0,a.tn&&(ot=Gt.alloc(),vi?(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)),Gt.free(ot))),et&&Va(a),a.gf=vi,Bt.style.height=Le,a.gu=!0,et&&(a.pn=!0),y=Et.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Ve+1<mr?y=(a.position.x-Jt)*nr:Jt+1<at?y=Et.scrollWidth-Et.clientWidth:me>ut+1&&(y=a.position.x*nr)),a.tn)switch(a.bu){case"negative":y=-(Et.scrollWidth-y-Et.clientWidth);break;case"reverse":y=Et.scrollWidth-y-Et.clientWidth}return Et.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(fn+1<dr?Et.scrollTop=(a.position.y-Se)*nr:Se+1<ro?Et.scrollTop=Et.scrollHeight-Et.clientHeight:se>ht+1&&(Et.scrollTop=a.position.y*nr)),at=a.Aa,ut=a.ya,Et.style.width=at+(a.gf?a.Db:0)+"px",Et.style.height=ut+(a.Be?a.Db:0)+"px",x!==at||b!==ut||a.animationManager.zb?(x=je.allocAt(tt,gt,bt,Mt),a.onViewportBoundsChanged(x,a.viewportBounds,nr,et),je.free(x),!1):!0}St=dn.prototype,St.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&_e("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&&_e('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(no,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},St.oi=function(a){this.partManager.oi(a);var y=this;$h(a,function(x){gh(y,x)}),(a instanceof Wo||a instanceof $r&&a.placeholder!==null)&&a.v(),a.data!==null&&$h(a,function(x){ia(y.partManager,x)}),Ll(a)!==!0&&Ld(a)!==!0||this.De.add(a),Ag(a,!0,this),Pg(a)?(a.actualBounds.w()&&this.N(Oc(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Oc(a,a.actualBounds)),this.$b()},St.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&$h(a,function(x){xf(y.partManager,x,y)}),this.De.remove(a),Pg(a)?(a.actualBounds.w()&&this.N(Oc(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Oc(a,a.actualBounds)),this.$b()},St.remove=function(a){Lc(this,a,!0)};function Lc(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(ho,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}St.Is=function(a,y){if(y===void 0&&(y=!1),un(a))for(var x=a.length,b=0;b<x;b++){var tt=a[b];y&&!tt.canDelete()||this.remove(tt)}else for(x=new Ce,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},St.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},dn.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=Hf(this)),this.toolManager!==null){var tt=new or;if(a!==null)if(un(a))for(var et=0;et<a.length;et++)mh(this,tt,a[et],x,b);else for(a=a.iterator;a.next();)mh(this,tt,a.value,x,b);else{for(a=this.parts;a.next();)mh(this,tt,a.value,x,b);for(a=this.nodes;a.next();)mh(this,tt,a.value,x,b);for(a=this.links;a.next();)mh(this,tt,a.value,x,b)}Sd(this,tt,y,b,x)}};function mh(a,y,x,b,tt,et){if(!y.contains(x)&&(et===void 0&&(et=!1),!b||et||x.canMove()||x.canCopy()))if(tt===void 0&&(tt=Hf(a)),x instanceof Xi){if(y.add(x,a.Pd(tt,x,x.location)),x instanceof $r&&(x.placeholder!==null||tt.dragsMembers))for(et=x.memberParts;et.next();)mh(a,y,et.value,b,tt,tt.groupsAlwaysMove);for(et=x.linksConnected;et.next();){var nt=et.value;if(!y.contains(nt)){var ot=nt.fromNode,at=nt.toNode;ot!==null&&y.contains(ot)&&at!==null&&y.contains(at)&&mh(a,y,nt,b,tt)}}if(tt.dragsTree)for(x=x.Ou();x.next();)mh(a,y,x.value,b,tt)}else if(x instanceof ji)for(y.add(x,a.Pd(tt,x)),x=x.labelNodes;x.next();)mh(a,y,x.value,b,tt);else x instanceof Wo||y.add(x,a.Pd(tt,x,x.location))}function Sd(a,y,x,b,tt){if(y!==null&&y.count!==0){var et=Gt.alloc(),nt=Gt.alloc();nt.assign(x),isNaN(nt.x)&&(nt.x=0),isNaN(nt.y)&&(nt.y=0),(x=a.Mr)||Gh(a,y);for(var ot=Xn(),at=Xn(),ut=y.iterator,ht=Gt.alloc();ut.next();){var gt=ut.key,bt=ut.value;if(gt.Zc()){var Mt=_f(a,gt,y);Mt!==null?ot.push(new rt(gt,bt,Mt)):(!tt||gt.canMove())&&(Mt=bt.point,et.assign(Mt),a.computeMove(gt,et.add(nt),b,ht),gt.location=ht,bt.shifted===void 0&&(bt.shifted=new Gt),bt.shifted.assign(ht.re(Mt)))}else ut.key instanceof ji&&at.push(ut.sa)}for(Gt.free(ht),tt=ot.length,ut=0;ut<tt;ut++)gt=ot[ut],et.assign(gt.info.point),gt.Su.shifted===void 0&&(gt.Su.shifted=new Gt),gt.node.location=et.add(gt.Su.shifted);for(tt=Gt.alloc(),ut=Gt.alloc(),gt=at.length,bt=0;bt<gt;bt++){var Et=at[bt];if(Mt=Et.key,Mt instanceof ji)if(Mt.suspendsRouting){Mt.Tg=null,ht=Mt.fromNode;var Bt=Mt.toNode;if(a.draggedLink!==null&&b.dragsLink)if(Bt=Et.value.point,Mt.dragComputation===null)y.add(Mt,a.Pd(b,Mt,nt)),Nd(Mt,nt.x-Bt.x,nt.y-Bt.y);else{Et=Gt.allocAt(0,0),(ht=Mt.i(0))&&ht.w()&&Et.assign(ht);var se=ht=Gt.alloc().assign(Et).add(nt);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(se=Gt.alloc(),Ws(a,Mt,ht,se,b)),ht.assign(Mt.dragComputation(Mt,ht,se)).re(Et),y.add(Mt,a.Pd(b,Mt,ht)),Nd(Mt,ht.x-Bt.x,ht.y-Bt.y),Gt.free(Et),Gt.free(ht),se!==ht&&Gt.free(se)}else ht!==null&&(tt.assign(ht.location),se=y.I(ht),se!==null&&tt.re(se.point)),Bt!==null&&(ut.assign(Bt.location),se=y.I(Bt),se!==null&&ut.re(se.point)),ht!==null&&Bt!==null?tt.Xa(ut)?(ht=Et.value.point,Bt=et,Bt.assign(tt),Bt.re(ht),y.add(Mt,a.Pd(b,Mt,tt)),Nd(Mt,Bt.x,Bt.y)):(Mt.suspendsRouting=!1,Mt.bb()):(Et=Et.value.point,ht=ht!==null?tt:Bt!==null?ut:nt,y.add(Mt,a.Pd(b,Mt,ht)),Nd(Mt,ht.x-Et.x,ht.y-Et.y))}else(Mt.fromNode===null||Mt.toNode===null)&&(ht=Et.value.point,y.add(Mt,a.Pd(b,Mt,nt)),Nd(Mt,nt.x-ht.x,nt.y-ht.y))}Gt.free(et),Gt.free(nt),Gt.free(tt),Gt.free(ut),qn(ot),qn(at),x||(wa(a),hc(a,y))}}dn.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new Gt),b.assign(y),a===null)return b;var tt=y,et=x.isGridSnapEnabled;et&&(x.isGridSnapRealtime||this.lastInput.up)&&(tt=Gt.alloc(),Ws(this,a,y,tt,x)),x=a.dragComputation!==null?a.dragComputation(a,y,tt):tt;var nt=a.minLocation,ot=nt.x;isNaN(ot)&&(ot=et?Math.round(1e3*a.location.x)/1e3:a.location.x),nt=nt.y,isNaN(nt)&&(nt=et?Math.round(1e3*a.location.y)/1e3:a.location.y);var at=a.maxLocation,ut=at.x;return isNaN(ut)&&(ut=et?Math.round(1e3*a.location.x)/1e3:a.location.x),at=at.y,isNaN(at)&&(at=et?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))),tt!==y&&Gt.free(tt),b};function Hf(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function Ws(a,y,x,b,tt){if(tt===void 0&&(tt=Hf(a)),b.assign(x),y!==null){var et=a.grid;y=tt.gridSnapCellSize,a=y.width,y=y.height;var nt=tt.gridSnapOrigin,ot=nt.x;if(nt=nt.y,tt=tt.gridSnapCellSpot,et!==null){var at=et.gridCellSize;isNaN(a)&&(a=at.width),isNaN(y)&&(y=at.height),et=et.gridOrigin,isNaN(ot)&&(ot=et.x),isNaN(nt)&&(nt=et.y)}et=Gt.allocAt(0,0),et.yi(0,0,a,y,tt),Ke.No(x.x,x.y,ot+et.x,nt+et.y,a,y,b),Gt.free(et)}}function Gh(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof ji&&(y.suspendsRouting=!0)}function hc(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof ji&&(x.suspendsRouting=!1,l1(x)&&x.bb())}a.Mr=!1}}function _f(a,y,x){return y=y.containingGroup,y!==null&&(a=_f(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}St=dn.prototype,St.Pd=function(a,y,x){if(x===void 0)return new pu(Zn);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new pu(new Gt(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new pu(x.copy())};function Mr(a,y,x){if(y.diagram!==null&&y.diagram!==a&&_e("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&_e("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&_e("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&_e("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&&_e("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}St.Al=function(a){Mr(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(no,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},St.Ww=function(a,y){Mr(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(ho,"layers",this,a,null,b,null));var tt=x.count,et;for(et=0;et<tt;et++)if(x.M(et)===y){x.Gb(et,a);break}return this.cc!==null&&this.cb(no,"layers",this,null,a,null,et),this.N(),0>b&&this.Ya(),this},St.Cy=function(a,y){Mr(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(ho,"layers",this,a,null,b,null));var tt=x.count,et;for(et=0;et<tt;et++)if(x.M(et)===y){x.Gb(et+1,a);break}return this.cc!==null&&this.cb(no,"layers",this,null,a,null,et+1),this.N(),0>b&&this.Ya(),this},St.kA=function(a){if(a.diagram!==this&&_e("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,tt=b.layerName;tt!==a.name?b.layerName=tt:b.layerName=""}this.cc!==null&&this.cb(ho,"layers",this,a,null,x,null),this.N(),this.Ya()}}},St.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},St.Yw=function(a){return this.pf===null&&(this.pf=new oi),this.pf.add(a),this.model.Pe(a),this},St.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},St.Pe=function(a){return this.zg===null&&(this.zg=new oi),this.zg.add(a),this},St.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},St.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Vr&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},St.cb=function(a,y,x,b,tt,et,nt){et===void 0&&(et=null),nt===void 0&&(nt=null);var ot=new vo;ot.diagram=this,ot.change=a,ot.propertyName=y,ot.object=x,ot.oldValue=b,ot.oldParam=et,ot.newValue=tt,ot.newParam=nt,this.ds(ot)},St.g=function(a,y,x,b,tt){this.cb(_r,a,this,y,x,b,tt)},dn.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===_r){var tt=a.object;if(Os(tt,a.propertyName,a.I(y)),tt instanceof Ue){var et=tt.part;et!==null&&et.Wb()}this.isModified=!0}else if(b===no){var nt=a.object,ot=a.newParam,at=a.newValue;if(nt instanceof Di)if(typeof ot=="number"&&at instanceof Ue){y?nt.pc(ot):nt.Gb(ot,at);var ut=nt.part;ut!==null&&ut.Wb()}else typeof ot=="number"&&at instanceof pa&&(at.isRow?J1(nt,ot,y?void 0:at):Q1(nt,ot,y?void 0:at));else if(nt instanceof Ia){var ht=a.oldParam===!0;typeof ot=="number"&&at instanceof Pr&&(y?(at.isSelected=!1,at.isHighlighted=!1,at.Wb(),nt.pc(ht?ot:-1,at,ht)):nt.oi(ot,at,ht))}else nt instanceof dn?typeof ot=="number"&&at instanceof Ia&&(y?this.Wa.mb(ot):(at.Xe(this),this.Wa.Gb(ot,at))):_e("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===ho){var gt=a.object,bt=a.oldParam,Mt=a.oldValue;if(gt instanceof Di)typeof bt=="number"&&Mt instanceof Ue?y?gt.Gb(bt,Mt):gt.pc(bt):typeof bt=="number"&&Mt instanceof pa&&(Mt.isRow?J1(gt,bt,y?Mt:void 0):Q1(gt,bt,y?Mt:void 0));else if(gt instanceof Ia){var Et=a.newParam===!0;typeof bt=="number"&&Mt instanceof Pr&&(y?0>gt.Pa.indexOf(Mt)&>.oi(bt,Mt,Et):(Mt.isSelected=!1,Mt.isHighlighted=!1,Mt.Wb(),gt.pc(Et?bt:-1,Mt,Et)))}else gt instanceof dn?typeof bt=="number"&&Mt instanceof Ia&&(y?(Mt.Xe(this),this.Wa.Gb(bt,Mt)):this.Wa.mb(bt)):_e("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==Vr&&_e("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},dn.prototype.Ea=function(a){return this.undoManager.Ea(a)},dn.prototype.eb=function(a){return this.undoManager.eb(a)},dn.prototype.Kf=function(){return this.undoManager.Kf()},dn.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}},dn.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},dn.prototype.rp=function(){this.partManager.rp()};function Qm(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,Va(a),a.N(),a.Ee=!0,b.zb&&(lh(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Va(a);else{a.vb=!0;var tt=a.viewportBounds.copy(),et=a.Aa,nt=a.ya,ot=a.zoomPoint.x,at=a.zoomPoint.y,ut=a.contentAlignment;isNaN(ot)&&(ut.$c()?ut.Hf(Io)?ot=0:ut.Hf(so)&&(ot=et-1):ot=ut.sb()?ut.x*(et-1):et/2),isNaN(at)&&(ut.$c()?ut.Hf(to)?at=0:ut.Hf(Zr)&&(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),et=Gt.allocAt(a.pa.x+ot/y-ot/x,a.pa.y+at/y-at/x),a.position=et,Gt.free(et),a.Ca=x,Va(a),a.vb=!1,a.onViewportBoundsChanged(tt,a.viewportBounds,y,!1),Cu(a,!1),b.zb&&(lh(b)||b.ce.add(b.H,"scale",y,a.Ca))}}dn.prototype.onViewportBoundsChanged=function(a,y,x,b){if(!a.D(y)){b===void 0&&(b=!1),b||(this.Ee=!0),this.vd=!0;var tt=this.layout;tt===null||!tt.isViewportSized||this.autoScale!==Ua||a.width===y.width&&a.height===y.height||tt.C(),tt=this.currentTool,this.Vk===!0&&tt instanceof Po&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Cl(tt,this)),this.vb||this.invalidateViewport(a,y),Uc(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(et){et.isAvoiding&&et.actualBounds.Yc(y)&&et.bb()})}};function Uc(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=An.alloc(),tt=1,et=1,nt=x.O.s,ot=nt.length,at=0;at<ot;at++){var ut=nt[at],ht=Math.abs(ut.interval);2>ht||(_y(ut.figure)?et=et*ht/Ke.vx(et,ht):tt=tt*ht/Ke.vx(tt,ht))}if(nt=x.gridCellSize,b.h(et*nt.width,tt*nt.height),y!==void 0)tt=y.width,et=y.height,a=y.x,nt=y.y;else{if(y=je.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){je.free(y);return}tt=y.width,et=y.height,a=y.x,nt=y.y,je.free(y)}x.width=tt+2*b.width,x.height=et+2*b.height,y=Gt.alloc(),Ke.No(a,nt,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),An.free(b),x.part.location=y,Gt.free(y)}}dn.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,tt=0;tt<b;tt++)x[tt].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},dn.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))},dn.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),un(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof Pr||_e("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 Pr||_e("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},dn.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()}},St=dn.prototype,St.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},St.Jz=function(a){a=new Ce().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 Pr||_e("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},St.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",tt=0,et=Gt.alloc();if(a==="pixel")tt=x;else if(a==="line")tt=x*(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=b?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(tt=x*Math.max(a-(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){tt=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=et.h(x.x,tt.y):y==="left"?this.position=et.h(tt.x,x.y):y==="down"?this.position=et.h(x.x,tt.bottom-x.height):y==="right"&&(this.position=et.h(tt.right-x.width,x.y)),Gt.free(et);return}_e("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}tt/=this.scale,x=this.position,y==="up"?this.position=et.h(x.x,x.y-tt):y==="down"?this.position=et.h(x.x,x.y+tt):y==="left"?this.position=et.h(x.x-tt,x.y):y==="right"?this.position=et.h(x.x+tt,x.y):_e("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Gt.free(et)},St.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)},St.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},St.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)},St.zA=function(a){var y=this.Ab,x=a.x,b=a.y,tt=x+a.width,et=b+a.height,nt=y.m11,ot=y.m12,at=y.m21,ut=y.m22,ht=y.dx,gt=y.dy,bt=x*nt+b*at+ht;y=x*ot+b*ut+gt;var Mt=tt*nt+b*at+ht;return a=tt*ot+b*ut+gt,b=x*nt+et*at+ht,x=x*ot+et*ut+gt,nt=tt*nt+et*at+ht,tt=tt*ot+et*ut+gt,et=Math.min(bt,Mt),bt=Math.max(bt,Mt),Mt=Math.min(y,a),y=Math.max(y,a),et=Math.min(et,b),bt=Math.max(bt,b),Mt=Math.min(Mt,x),y=Math.max(y,x),et=Math.min(et,nt),bt=Math.max(bt,nt),Mt=Math.min(Mt,tt),y=Math.max(y,tt),new je(et,Mt,bt-et,y-Mt)},St.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),Ee(a.copy(),this.Ab)};function V0(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function $m(a){return a=U0.get(a),a!==null?new a:new Xo}dn.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===Vr&&b[0]==="S")if(b==="StartingFirstTransaction"){var tt=this;a=this.toolManager,a.mouseDownTools.each(function(at){return at.diagram=tt}),a.mouseMoveTools.each(function(at){return at.diagram=tt}),a.mouseUpTools.each(function(at){return at.diagram=tt}),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===Vr){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),wa(this));var et=this.animationManager;b==="RolledBackTransaction"&&et.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||jp(et),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&&(V0(this),this.As.clear(),Ho(this.animationManager)),!this.Rt&&nt&&this.lastInput.targetDiagram){this.Rt=!0;var ot=this;fi(function(){ot.currentTool.standardMouseOver(),ot.Rt=!1},10)}}}finally{this.aa=!0}}}};function gh(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)nf(a,y[b])}function nf(a,y){if(y instanceof Zl){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof Ce&&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 qm(a,y){if(y instanceof Zl){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var b=x.getAttribute("src")||"",tt=a.Og.I(b);if(tt!==null){for(var et=0;et<tt.length;et++)if(tt[et]===y){tt.splice(et,1),tt.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 Ce&&x.Bg.remove(a),fm(b));break}}}}}dn.prototype.Wd=function(){this.partManager.Wd()},dn.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},dn.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},dn.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},dn.prototype.Vb=function(a){return this.partManager.Vb(a)},dn.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},St=dn.prototype,St.Lc=function(a){return this.partManager.Lc(a)},St.ii=function(a){return this.partManager.ii(a)},St.Kc=function(a){return this.partManager.Kc(a)},St.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:rr(mi(y)))},St.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:rr(mi(y)))};function Va(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 vh(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Cu(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}St.Va=function(){if(this.Zi){var a=je.alloc();vh(this,this.computeBounds(a)),je.free(a)}},St.rz=function(){for(var a=new Ce,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},St.qz=function(){return this.ai.iterator},St.Uz=function(a){wa(this),a&&rf(this,!0),this.ld?tg(this,!1):(this.Jk=!0,kl(this))};function rf(a,y){for(var x=a.ai.iterator;x.next();)Yp(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function Yp(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)Yp(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function tg(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var b=a.undoManager.transactionLevel,tt=a.layout,et=a.animationManager;try{b===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=b&&!et.defaultAnimation.isAnimating&&!et.zb&&(y||Vc(et,"Layout")),a.xh=!1;for(var nt=a.ai.iterator;nt.next();)eg(a,nt.value,y,b);tt.isValidLayout||(!y||tt.isRealtime||tt.isRealtime===null||b===0?(tt.doLayout(a),wa(a),tt.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,b===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||b!==0&&b!==1||jp(et),a.aa=x}}}function eg(a,y,x,b){if(y!==null){for(var tt=y.gl.iterator;tt.next();)eg(a,tt.value,x,b);tt=y.layout,tt===null||tt.isValidLayout||(!x||tt.isRealtime||b===0?(y.rh=!y.location.w(),tt.doLayout(y),y.C(32),Uh(a,y),tt.isValidLayout=!0):a.xh=!0)}}St.yz=function(){for(var a=new oi,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function ng(a){function y(tt){var et=tt.toLowerCase(),nt=new oi;x.add(tt,nt),x.add(et,nt),b.add(tt,tt),b.add(et,tt)}var x=new or,b=new or;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 ig(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function of(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;_e("Unknown DiagramEvent name: "+y)}St.Bj=function(a,y){return a=of(this,a),a!==null&&a.add(y),this},St.am=function(a,y){a=of(this,a),a!==null&&a.remove(y)},St.R=function(a,y,x){var b=of(this,a),tt=new Tl;if(tt.diagram=this,a=ig(this,a),a!==null&&(tt.name=a),y!==void 0&&(tt.subject=y),x!==void 0&&(tt.parameter=x),y=b.length,y===1)b.M(0)(tt);else if(y!==0)for(b=b.Fa(),x=0;x<y;x++)(0,b[x])(tt)};function eu(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}St.Yj=function(a,y){return yh(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},dn.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Qr(this,a):a.assign(this.documentBounds)};function yh(a,y,x,b){var tt=a.Xh;if(tt===null&&(a.Xh=tt=new v0(a.avoidanceCellSize)),tt.vs||tt.group!==x||tt.Yx!==b){if(tt.Hx=Math.max(tt.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),tt.Ix=Math.max(tt.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=rg(a,x)),x===null){y=je.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),tt.initialize(y);for(var et=a.nodes;et.next();){var nt=et.value,ot=nt.layer;ot!==null&&ot.visible&&!ot.isTemporary&&Xp(a,nt,b,y)}je.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),tt.initialize(y)),y=je.alloc(),et=x.memberParts;et.next();)nt=et.value,nt instanceof Xi&&Xp(a,nt,b,y);je.free(y)}tt.group=x,tt.Yx=b,tt.vs=!1}else y&&gx(tt);return tt}function rg(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?rg(a,y.containingGroup):null}function Xp(a,y,x,b){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(b),a=a.Xh;var tt=y.x,et=y.y;if(Sm(a,tt,et))for(x=(et-a.Od)/a.sc|0,b=Math.min((tt+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((et+y.height-a.Od)/a.sc|0,a.ei),tt=(tt-a.Nd)/a.rc|0;tt<=b;tt++)if(et=a.ac[tt],et.fill)et.fill(kh,x,y+1);else for(var nt=x;nt<=y;nt++)et[nt]=kh}else if(y instanceof $r)for(y=y.memberParts;y.next();)tt=y.value,tt instanceof Xi&&Xp(a,tt,x,b)}}function xh(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}dn.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():og(this)};function og(a){a.vk===-1&&(a.vk=fi(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=je.alloc(),a.computeBounds(y),y.ed(a.documentBounds),vh(a,y),je.free(y),a.Fc=!0,a.bd(),og(a))}},a.vp))}dn.prototype.ug=function(){this.vk!==-1&&(ce.clearTimeout(this.vk),this.vk=-1)},dn.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,tt=this.scale;b=je.allocAt(0,0,b.width*tt,b.height*tt);var et=Gt.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,et.x-=nt,a.x<b.x+x.left/2&&(et.x-=nt),a.x<b.x+x.left/4&&(et.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,et.x+=nt,a.x>b.x+b.width-x.right/2&&(et.x+=nt),a.x>b.x+b.width-x.right/4&&(et.x+=4*nt));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(nt=Math.max(this.scrollVerticalLineChange,1),nt|=0,et.y-=nt,a.y<b.y+x.top/2&&(et.y-=nt),a.y<b.y+x.top/4&&(et.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,et.y+=nt,a.y>b.y+b.height-x.bottom/2&&(et.y+=nt),a.y>b.y+b.height-x.bottom/4&&(et.y+=4*nt)),et.Xa(Zn)||(y=new Gt(y.x+et.x/tt,y.y+et.y/tt)),je.free(b),Gt.free(et),y},St=dn.prototype,St.Cs=function(){return null},St.av=function(){return null},St.bs=function(a,y){this.pj.add(a,y)},St.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof $r&&(y.$p=null)})};function Jp(a,y,x){function b(){var ht=+new Date;for(et=!0,nt.reset();nt.next();)if(!nt.value[0].al){et=!1;break}et||ht-ut>at?y(x,tt,ot):ce.requestAnimationFrame(b)}for(var tt=x.callback,et=!0,nt=a.Og.iterator;nt.next();)if(!nt.value[0].al){et=!1;break}if(typeof tt!="function"||et)return y(x,tt,a);var ot=a,at=x.callbackTimeout||300,ut=+new Date;return ce.requestAnimationFrame(function(){b()}),null}St.Wz=function(a){return ts?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},St.Jx=function(a){return a===void 0&&(a={}),Jp(this,this.Xz,a)},St.Xz=function(a,y,x){var b=mv(x,a,"canvas",null);if(b===null)return null;x=b.Z.canvas;var tt=null;if(x!==null)switch(tt=a.returnType,tt===void 0?tt="string":tt=tt.toLowerCase(),tt){case Zf+"data":tt=b.getImageData(0,0,x.width,x.height);break;case Zf:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),tt=b;break;case"blob":return typeof y!="function"&&_e('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:tt=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(tt),null):tt};function mv(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&_e("properties argument must be an Object.");var tt=y.size||null,et=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(et="NaN");var nt=y.maxSize;y.maxSize===void 0&&(nt=x==="SVG"?new An(1/0,1/0):new An(2e3,2e3));var ot=y.position||null,at=y.parts||null,ut=y.padding===void 0?1:y.padding,ht=y.background||null,gt=y.omitTemporary;gt===void 0&&(gt=!0);var bt=y.document||document,Mt=y.elementFinished||null,Et=y.showTemporary;Et===void 0&&(Et=!gt),y=y.showGrid,y===void 0&&(y=Et),tt!==null&&isNaN(tt.width)&&isNaN(tt.height)&&(tt=null),typeof ut=="number"?ut=new Kn(ut):ut instanceof Kn||_e("MakeImage padding must be a Margin or a number."),ut.left=Math.max(ut.left,0),ut.right=Math.max(ut.right,0),ut.top=Math.max(ut.top,0),ut.bottom=Math.max(ut.bottom,0),a.ib.Vc(!0),gt=new ec(null,bt,void 0,!0);var Bt=gt.context;if(!(tt||et||at||ot))return gt.width=a.Aa+Math.ceil(ut.left+ut.right),gt.height=a.ya+Math.ceil(ut.top+ut.bottom),x==="SVG"?b===null?null:(b.resize(gt.width,gt.height,gt.width,gt.height),b.ownerDocument=bt,b.hs=Mt,cc(a,b.context,ut,new An(gt.width,gt.height),a.Ca,a.pa,at,ht,Et,y),b.context):(a.Xm=!1,cc(a,Bt,ut,new An(gt.width,gt.height),a.Ca,a.pa,at,ht,Et,y),a.Xm=!0,gt.context);var se=a.Pp,Jt=a.documentBounds.copy();if(Jt.Fv(a.yb),Et)for(var me=a.Wa.s,Se=me.length,Le=0;Le<Se;Le++){var Ve=me[Le];if(Ve.visible&&Ve.isTemporary){Ve=Ve.Pa.s;for(var fn=Ve.length,nr=0;nr<fn;nr++){var mr=Ve[nr];mr.isInDocumentBounds&&mr.isVisible()&&(mr=mr.actualBounds,mr.w()&&Jt.ed(mr))}}}if(me=new Gt(Jt.x,Jt.y),at!==null){for(Se=new je(0,0,0,0),Le=!0,Ve=at.iterator,Ve.reset();Ve.next();)fn=Ve.value,fn instanceof Pr&&(nr=fn.layer,nr!==null&&!nr.visible||nr!==null&&!Et&&nr.isTemporary||!fn.isVisible()||(fn=fn.actualBounds,fn.w()&&(Le?(Le=!1,Se.assign(fn)):Se.ed(fn))));Jt.width=Se.width,Jt.height=Se.height,me.x=Se.x,me.y=Se.y}return ot!==null&&ot.w()&&(me=ot,et||(et=se)),Se=ot=0,ut!==null&&(ot=ut.left+ut.right,Se=ut.top+ut.bottom),Le=Ve=0,tt!==null&&(Ve=tt.width,Le=tt.height,isFinite(Ve)&&(Ve=Math.max(0,Ve-ot)),isFinite(Le)&&(Le=Math.max(0,Le-Se))),tt!==null&&et!==null?(et==="NaN"&&(et=se),tt.w()?(tt=Ve,Jt=Le):isNaN(Le)?(tt=Ve,Jt=Jt.height*et):(tt=Jt.width*et,Jt=Le)):tt!==null?tt.w()?(et=Math.min(Ve/Jt.width,Le/Jt.height),tt=Ve,Jt=Le):isNaN(Le)?(et=Ve/Jt.width,tt=Ve,Jt=Jt.height*et):(et=Le/Jt.height,tt=Jt.width*et,Jt=Le):et!==null?et==="NaN"&&nt.w()?(et=Math.min((nt.width-ot)/Jt.width,(nt.height-Se)/Jt.height),et>se?(et=se,tt=Jt.width,Jt=Jt.height):(tt=nt.width,Jt=nt.height)):(tt=Jt.width*et,Jt=Jt.height*et):(et=se,tt=Jt.width,Jt=Jt.height),ut!==null?(tt+=ot,Jt+=Se):ut=new Kn(0),nt!==null&&(se=nt.width,nt=nt.height,isNaN(se)&&(se=2e3),isNaN(nt)&&(nt=2e3),isFinite(se)&&(tt=Math.min(tt,se)),isFinite(nt)&&(Jt=Math.min(Jt,nt))),gt.width=Math.ceil(tt),gt.height=Math.ceil(Jt),x==="SVG"?b===null?null:(b.resize(gt.width,gt.height,gt.width,gt.height),b.ownerDocument=bt,b.hs=Mt,cc(a,b.context,ut,new An(Math.ceil(tt),Math.ceil(Jt)),et,me,at,ht,Et,y),b.context):(a.Xm=!1,cc(a,Bt,ut,new An(Math.ceil(tt),Math.ceil(Jt)),et,me,at,ht,Et,y),a.Xm=!0,gt.context)}ge.Object.defineProperties(dn.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof yt||(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 Pc(this,ce.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 Pc(this,ce.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(ce,"resize",this.Ov,!1),this.removeEventListener(ce,"wheel",this.$j,!0),Ts===this&&(Ts=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Hu(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)&&Ri(a,"0 <= value <= 1",dn,"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),Cu(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),Cu(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),Cu(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),Cu(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Ri(a,">= 0",dn,"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&&Ri(a,">= 0",dn,"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 Ri(a,">= 0",dn,"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||V0(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&&_e("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=Hh(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Vc(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(et){return y.ik(et)}),y.ik(this.Oc)),this.cc=a,this.partManager=$m(this.cc.type);for(var tt=0;tt<x.length;tt++)this.add(x[tt]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(et){return a.Pe(et)}),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(ce,"pointermove",this.dk,!0),this.addEventListener(ce,"pointerdown",this.ui,!0),this.addEventListener(ce,"pointerup",this.fk,!0),this.addEventListener(ce,"pointerout",this.ek,!0),this.addEventListener(ce,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(ce,"wheel",this.$j,!0),this.addEventListener(ce,"selectstart",this.preventDefault,!1)):(this.removeEventListener(ce,"pointermove",this.dk,!0),this.removeEventListener(ce,"pointerdown",this.ui,!0),this.removeEventListener(ce,"pointerup",this.fk,!0),this.removeEventListener(ce,"pointerout",this.ek,!0),this.removeEventListener(ce,"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(ce,"wheel",this.$j,!0),this.removeEventListener(ce,"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=Gt.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Vm(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Va(this):(this.vb=!0,a=this.scale,Kf(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)}Gt.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=_0(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=_0(this)),a.type!==Di.Grid&&_e("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),Uc(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),Va(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||_e("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 Kn(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===bh&&Cu(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,Cu(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,Qm(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&&Qm(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!==Ua&&Cu(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()||_e("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()||_e("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)):Ri(a,"> 0",dn,"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)):Ri(a,"> 0",dn,"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),Cu(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 Kn(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&&_e("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();)Dg(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Cd&&a!==fa&&a!==X0&&_e("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 An(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 Kn(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),ge.Object.defineProperties(dn,{licenseKey:{get:function(){return lg.jc()},set:function(a){lg.add(a.replace(/\s/g,""))}},version:{get:function(){return Uf}}}),dn.prototype.makeImageData=dn.prototype.Jx,dn.prototype.makeImage=dn.prototype.Wz,dn.prototype.cacheGroupExternalLinks=dn.prototype.Fu,dn.prototype.addRenderer=dn.prototype.bs,dn.prototype.makeSVG=dn.prototype.av,dn.prototype.makeSvg=dn.prototype.Cs,dn.prototype.stopAutoScroll=dn.prototype.ug,dn.prototype.doAutoScroll=dn.prototype.gs,dn.prototype.isUnoccupied=dn.prototype.Yj,dn.prototype.raiseDiagramEvent=dn.prototype.R,dn.prototype.removeDiagramListener=dn.prototype.am,dn.prototype.addDiagramListener=dn.prototype.Bj,dn.prototype.findTreeRoots=dn.prototype.yz,dn.prototype.layoutDiagram=dn.prototype.Uz,dn.prototype.findTopLevelGroups=dn.prototype.qz,dn.prototype.findTopLevelNodesAndLinks=dn.prototype.rz,dn.prototype.ensureBounds=dn.prototype.Va,dn.prototype.findLinksByExample=dn.prototype.ls,dn.prototype.findNodesByExample=dn.prototype.ms,dn.prototype.findLinkForData=dn.prototype.Kc,dn.prototype.findNodeForData=dn.prototype.ii,dn.prototype.findPartForData=dn.prototype.Lc,dn.prototype.findLinkForKey=dn.prototype.findLinkForKey,dn.prototype.findNodeForKey=dn.prototype.Vb,dn.prototype.findPartForKey=dn.prototype.findPartForKey,dn.prototype.rebuildParts=dn.prototype.Wd,dn.prototype.transformViewToDoc=dn.prototype.Ps,dn.prototype.transformRectDocToView=dn.prototype.zA,dn.prototype.transformDocToView=dn.prototype.op,dn.prototype.centerRect=dn.prototype.es,dn.prototype.scrollToRect=dn.prototype.tv,dn.prototype.scroll=dn.prototype.scroll,dn.prototype.highlightCollection=dn.prototype.Jz,dn.prototype.highlight=dn.prototype.Iz,dn.prototype.selectCollection=dn.prototype.rA,dn.prototype.select=dn.prototype.select,dn.prototype.updateAllRelationshipsFromData=dn.prototype.rp,dn.prototype.updateAllTargetBindings=dn.prototype.updateAllTargetBindings,dn.prototype.commit=dn.prototype.commit,dn.prototype.rollbackTransaction=dn.prototype.Kf,dn.prototype.commitTransaction=dn.prototype.eb,dn.prototype.startTransaction=dn.prototype.Ea,dn.prototype.raiseChanged=dn.prototype.g,dn.prototype.raiseChangedEvent=dn.prototype.cb,dn.prototype.removeChangedListener=dn.prototype.ik,dn.prototype.addChangedListener=dn.prototype.Pe,dn.prototype.removeModelChangedListener=dn.prototype.mA,dn.prototype.addModelChangedListener=dn.prototype.Yw,dn.prototype.findLayer=dn.prototype.Qj,dn.prototype.removeLayer=dn.prototype.kA,dn.prototype.addLayerAfter=dn.prototype.Cy,dn.prototype.addLayerBefore=dn.prototype.Ww,dn.prototype.addLayer=dn.prototype.Al,dn.prototype.moveParts=dn.prototype.moveParts,dn.prototype.copyParts=dn.prototype.Kj,dn.prototype.removeParts=dn.prototype.Is,dn.prototype.remove=dn.prototype.remove,dn.prototype.add=dn.prototype.add,dn.prototype.clearDelayedGeometries=dn.prototype.bx,dn.prototype.setProperties=dn.prototype.nm,dn.prototype.attach=dn.prototype.Du,dn.prototype.set=dn.prototype.set,dn.prototype.resetInputOptions=dn.prototype.Sx,dn.prototype.setInputOption=dn.prototype.sA,dn.prototype.getInputOption=dn.prototype.Ql,dn.prototype.resetRenderingHints=dn.prototype.Tx,dn.prototype.setRenderingHint=dn.prototype.Xx,dn.prototype.getRenderingHint=dn.prototype.Gf,dn.prototype.maybeUpdate=dn.prototype.bd,dn.prototype.requestUpdate=dn.prototype.$b,dn.prototype.delayInitialization=dn.prototype.Xy,dn.prototype.isUpdateRequested=dn.prototype.Pz,dn.prototype.invalidateDocumentBounds=dn.prototype.Ya,dn.prototype.findObjectsNear=dn.prototype.og,dn.prototype.findPartsNear=dn.prototype.mz,dn.prototype.findObjectsIn=dn.prototype.Cf,dn.prototype.findPartsIn=dn.prototype.ux,dn.prototype.findObjectsAt=dn.prototype.ji,dn.prototype.findPartsAt=dn.prototype.lz,dn.prototype.findObjectAt=dn.prototype.ic,dn.prototype.findPartAt=dn.prototype.Ol,dn.prototype.focusObject=dn.prototype.zz,dn.prototype.alignDocument=dn.prototype.Jy,dn.prototype.zoomToRect=dn.prototype.BA,dn.prototype.zoomToFit=dn.prototype.zoomToFit,dn.prototype.diagramScroll=dn.prototype.kx,dn.prototype.focus=dn.prototype.focus;var U0=new or,sg=null,ts=ce.document!==void 0,Wf=null,sf="",Ua=new ui(dn,"None",0),Eu=new ui(dn,"Uniform",1),Zc=new ui(dn,"UniformToFill",2),Qp=new ui(dn,"CycleAll",10),Z0=new ui(dn,"CycleNotDirected",11),G0=new ui(dn,"CycleNotDirectedFast",12),af=new ui(dn,"CycleNotUndirected",13),ag=new ui(dn,"CycleDestinationTree",14),Y0=new ui(dn,"CycleSourceTree",15),bh=new ui(dn,"DocumentScroll",1),Vf=new ui(dn,"InfiniteScroll",2),Cd=new ui(dn,"TreeParentCollapsed",21),fa=new ui(dn,"AllParentsCollapsed",22),X0=new ui(dn,"AnyParentsCollapsed",23),lg=new oi,Uf="2.3.10",Zf="image",$p=null,gv=!1;function Ba(){if(ts){var a=ce.document.createElement("canvas"),y=a.getContext("2d"),x=Ii("7ca11abfd022028846");y[x]=Ii("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",Oe.Dx+"4ae6247590da4bb21c324ba3a84e385776",Hr.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Ke.za],tt=1;5>tt;tt++)y[Ii("7ca11abfd7330390")](Ii(b[tt-1]),10,15*tt);for(y[x]=Ii("39f046ebb36e4b"),x=1;5>x;x++)y[Ii("7ca11abfd7330390")](Ii(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(Hr.prototype.Cd=Hr.prototype.Eu),$p=a}}dn.className="Diagram",dn.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=ce.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof dn?y.H:null},dn.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},dn.useDOM=function(a){ts=a?ce.document!==void 0:!1},dn.isUsingDOM=function(){return ts},dn.None=Ua,dn.Uniform=Eu,dn.UniformToFill=Zc,dn.CycleAll=Qp,dn.CycleNotDirected=Z0,dn.CycleNotDirectedFast=G0,dn.CycleNotUndirected=af,dn.CycleDestinationTree=ag,dn.CycleSourceTree=Y0,dn.DocumentScroll=bh,dn.InfiniteScroll=Vf,dn.TreeParentCollapsed=Cd,dn.AllParentsCollapsed=fa,dn.AnyParentsCollapsed=X0;function Md(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Gc(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=ce[Ii("76a715b2f73f148a")][Ii("72ba13b5")]||"";if(a.Rc=!0,ts){var b=dn[Ii("76a115b6ed251eaf4692")];if(b)for(var tt=lg.iterator;tt.next()&&(b=tt.value,b=Ii(b).split(Ii("39e9")),!(6>b.length));){var et=Ii(b[1]).split(".");if(b[4]!=="7da71ca0")break;var nt=Ii(Oe[Ii("6cae19")]).split(".");if(et[0]>nt[0]||et[0]===nt[0]&&et[1]>=nt[1]){var ot=ce[Ii("74a900bae4370f8b51")][Ii("6fbb13a1c2311e8a57")].toLowerCase();if(nt=ot[Ii("73a612b6fb191d")](Ii("3aad1ab6e022098b4dc4")),et=Ii(b[2]),-1<nt&&(ot=ot[Ii("73a612b6fb191d")](et.toLowerCase()+"/"),a.Rc=!(-1<ot&&ot<nt),!a.Rc))break;for(nt=x[Ii("76ad18b4f73e")],ot=x[Ii("73a612b6fb191d")](Ii("35e7"))+2;ot<nt;ot++)y+=x[ot];if(nt=y[Ii("73a612b6fb191d")](et),0>nt&&et!==Ii("7da71ca0ad381e90")&&(nt=y[Ii("73a612b6fb191d")](Ii("76a715b2ef3e149757"))),0>nt&&(nt=y[Ii("73a612b6fb191d")](Ii("76a715b2ef3e149757"))),0>nt&&(nt=y[Ii("73a612b6fb191d")](Ii("2bfa41fdb3784bca12"))),0>nt&&(nt=x[Ii("73a612b6fb191d")](Ii("7baa19a6f76c1988428554"))),a.Rc=!(0<=nt&&nt<y[Ii("73a612b6fb191d")](Ii("35"))||y[Ii("73a612b6fb191d")](Ii("35"))===-1),!a.Rc||x[Ii("73a612b6fb191d")](Ii("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[Ii("73a612b6fb191d")](et)),!a.Rc)||(nt=ce[Ii("76a715b2f73f148a")][Ii("69ad17a1e03e")],ot=nt[Ii("73a612b6fb191d")](Ii("7fb002b6ed25128b4da25b2e")),-1<ot&&(a.Rc=!(nt[Ii("73a612b6fb191d")](et)>ot),!a.Rc)))break;if(et[0]==="#"){nt=ce.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[Ii("79a417a0f0181a8946")]=b,ce.document[Ii("78a712aa")]){ce.document[Ii("78a712aa")][Ii("7bb806b6ed32388c4a875b")](nt),at=ce.getComputedStyle(nt).getPropertyValue(Ii("78a704b7e62456904c9b12701b6532a8"));var ut=ce.getComputedStyle(nt).getPropertyValue(Ii("75b817b0ea2202"));if(ce.document[Ii("78a712aa")][Ii("68ad1bbcf533388c4a875b")](nt),at){if(nt=ce[Ii("77a902b0eb1b1e804a8a")],ut==="0."+parseInt(ot,10)%100||at.indexOf(parseInt(et[1]+et[2],16))!==-1&&at.indexOf(parseInt(et[3]+et[4],16))!==-1){a.Rc=!1;break}else if(nt&&nt(Ii("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,et=0;et<document.styleSheets.length;et++){nt=document.styleSheets[et].rules||document.styleSheets[et].cssRules;for(var ht in nt)if(b===nt[ht].selectorText){a.Rc=!1;break t}}}}else a.Rc=null,a.Rc=!1}}}else{for(ht=x[Ii("76ad18b4f73e")],tt=x[Ii("73a612b6fb191d")](Ii("35e7"))+2;tt<ht;tt++)y+=x[tt];x=y[Ii("73a612b6fb191d")](Ii("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[Ii("73a612b6fb191d")](Ii("35")))}}}return 0<a.Rc&&a!==a.wy}Md.className="DiagramHelper";function pu(a){this.j=a===void 0?new Gt:a,this.o=new Gt}ge.Object.defineProperties(pu.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 dc="DraggingInfo";pu.className="DraggingInfo";function rt(a,y,x){this.node=a,this.info=y,this.Su=x}rt.className="DraggingNodeInfoPair";function lt(){this.reset()}lt.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new An(NaN,NaN).freeze(),this.gridSnapCellSpot=er,this.gridSnapOrigin=new Gt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},lt.className="DraggingOptions";function pt(a,y){if(typeof a=="string"||ce.Element&&a instanceof Element)var x=dn.call(this,a)||this;else x=dn.call(this)||this,y=a;return dt(x),y&&x.nm(y),x}Nn(pt,dn);function dt(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Qi,a.layout=new Xa}pt.prototype.reset=function(){dn.prototype.reset.call(this),dt(this)},pt.className="Palette";function yt(a,y){if(typeof a=="string"||ce.Element&&a instanceof Element)var x=dn.call(this,a)||this;else x=dn.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 Pr;var tt=new lo;return tt.stroke="magenta",tt.strokeWidth=2,tt.fill="transparent",tt.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(tt),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new Kn(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new ae,x.toolManager.mouseMoveTools),x.click=function(){var et=b.observed;if(et!==null){var nt=et.viewportBounds,ot=b.lastInput.documentPoint;et.position=new Gt(ot.x-nt.width/2,ot.y-nt.height/2)}},x.Pf=function(){b.Ya(),Vt(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&&Vt(b)},x.autoScale=Eu,x.vb=!1,y&&Object.assign(x,y),x}Nn(yt,dn),yt.prototype.computePixelRatio=function(){return 1},yt.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(wd(this),this.ql===null){var x=new ec(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),Lt(this)}finally{this.ta=a,this.ib=y}}}dn.prototype.redraw.call(this)},yt.prototype.gc=function(){if(this.Ka===null&&_e("No div specified"),this.ta===null&&_e("No canvas specified"),!(this.ta instanceof Pc)&&(kg(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){wd(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?Lt(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 Lt(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,b=a.drawsGrid&&x,tt=y.grid;b&&tt!==null&&tt.visible&&!isNaN(tt.width)&&!isNaN(tt.height)&&(tt=je.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Uc(y,tt),je.free(tt),wa(y));var et=a.Ab;et.reset(),a.scale!==1&&et.scale(a.scale),a.position.x===0&&a.position.y===0||et.translate(-a.position.x,-a.position.y),tt=a.ib,tt.scale(a.Mb,a.Mb),tt.transform(et.m11,et.m12,et.m21,et.m22,et.dx,et.dy),tt.yc(),y=y.Wa.s,et=y.length;for(var nt=0;nt<et;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=fh(ot,tt),ut.gc(tt,at),tt.globalAlpha=ot);else{for(var ht=fh(ot,tt),gt=at.scale,bt=je.alloc(),Mt=ot.Pa.s,Et=Mt.length,Bt=0;Bt<Et;Bt++){var se=Mt[Bt];(b||se!==ut)&&ot.Oj(tt,se,at,null,gt,bt,!1)}je.free(bt),tt.globalAlpha=ht}}}}}function Vt(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,tt=An.alloc();tt.h(x.width,x.height),b.desiredSize=tt,An.free(tt),a=2/a.scale,b instanceof lo&&(b.strokeWidth=a),y.location=new Gt(x.x-a/2,x.y-a/2),y.isSelected=!0}}}yt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return bi;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},yt.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},yt.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Vt(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))},ge.Object.defineProperties(yt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof yt&&_e("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),Vt(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),Vt(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)}}}),yt.className="Overview";function ae(){ws.call(this),this.j=null}Nn(ae,ws),ae.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 Gt(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Gt(a.x-this.j.x,a.y-this.j.y)),!0)},ae.prototype.doActivate=function(){this.j=null,ws.prototype.doActivate.call(this)},ae.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},ae.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 Gt(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new Gt(a.x-this.j.x,a.y-this.j.y)}}},ae.className="OverviewDraggingTool";function oe(){si(this),this.H=Ts,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=bi,this.hb=!0,this.cg=null,this.ob=200}oe.prototype.toString=function(){return"CommandHandler"},oe.prototype.Xe=function(a){this.H=a},oe.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=qr?y.meta:y.control,b=y.shift,tt=y.alt,et=y.key;!x||et!=="C"&&et!=="Insert"?x&&et==="X"||b&&et==="Del"?this.canCutSelection()&&this.cutSelection():x&&et==="V"||b&&et==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&et==="Y"||tt&&b&&et==="Backspace"?this.canRedo()&&this.redo():x&&et==="Z"||tt&&et==="Backspace"?this.canUndo()&&this.undo():et==="Del"||et==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&et==="A"?this.canSelectAll()&&this.selectAll():et==="Esc"?this.canStopCommand()&&this.stopCommand():et==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):et==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):et==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):et==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):et==="PageUp"?b&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):et==="PageDown"?b&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):et==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):et==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):et===" "?this.canScrollToPart()&&this.scrollToPart():et==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():et==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&et==="0"?this.canResetZoom()&&this.resetZoom():b&&et==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!b&&et==="G"?this.canGroupSelection()&&this.groupSelection():x&&b&&et==="G"?this.canUngroupSelection()&&this.ungroupSelection():et==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():et==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},oe.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},oe.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Po&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},oe.prototype.canStopCommand=function(){return!0},oe.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=""}},oe.prototype.canSelectAll=function(){return this.diagram.allowSelect},oe.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 Ce,x=a.selection.iterator;x.next();)Pd(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=""}},oe.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},oe.prototype.copySelection=function(){var a=this.diagram,y=new Ce;for(a=a.selection.iterator;a.next();)Pd(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},oe.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},oe.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},oe.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},oe.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)Wf=null,sf="";else{x=y.model;var b=!1,tt=!1,et=null;try{x.Tl()&&(b=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(tt=x.Ij,x.Ij=this.copiesGroupKey),et=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=b),x.Wj()&&(x.Ij=tt),x=new oi,x.addAll(et),Wf=x,sf=y.model.dataFormat}}y.R("ClipboardChanged",x)},oe.prototype.pasteFromClipboard=function(){var a=new Ce,y=Wf;if(y===null)return a;var x=this.diagram;if(sf!==x.model.dataFormat)return a;var b=x.model,tt=!1,et=!1,nt=null;try{b.Tl()&&(tt=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(et=b.Ij,b.Ij=this.copiesGroupKey),nt=x.Kj(y,x,!1)}finally{for(b.Tl()&&(b.Jj=tt),b.Wj()&&(b.Ij=et),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},oe.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 tt=y.computePartsBounds(y.selection);if(tt.w()){var et=this.computeEffectiveCollection(y.selection,y.Wm);Sd(y,et,new Gt(a.x-tt.centerX,a.y-tt.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},oe.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Wf===null||Wf.count===0||sf!==a.model.dataFormat)},oe.prototype.undo=function(){this.diagram.undoManager.undo()},oe.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},oe.prototype.redo=function(){this.diagram.undoManager.redo()},oe.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},oe.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Ua&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},oe.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Ua?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},oe.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Ua&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},oe.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Ua?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},oe.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},oe.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},oe.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Vc(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=bi):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),jp(y)},oe.prototype.canZoomToFit=function(){return this.diagram.allowZoom},oe.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;Vc(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var tt=Pe(this,a,[a]);if(tt.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var et=function(){y.Ea();for(var at=tt.pop();0<tt.length&&at instanceof Xi&&at.isTreeExpanded&&(!(at instanceof $r)||at.isSubGraphExpanded);)at=tt.pop();0<tt.length?(at instanceof Pr&&y.tv(at.actualBounds),at instanceof Xi&&!at.isTreeExpanded&&(at.isTreeExpanded=!0),at instanceof $r&&!at.isSubGraphExpanded&&(at.isSubGraphExpanded=!0)):(at instanceof Pr&&y.es(at.actualBounds),y.am("LayoutCompleted",nt)),y.eb("Scroll To Part")},nt=function(){fi(et,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",nt),et()}}else{var ot=y.position.copy();y.es(a.actualBounds),ot.Xa(y.position)&&x.Cc()}}};function Pe(a,y,x){if(y.isVisible())return x;if(y instanceof Wo)Pe(a,y.adornedPart,x);else if(y instanceof ji){var b=y.fromNode;b!==null&&Pe(a,b,x),y=y.toNode,y!==null&&Pe(a,y,x)}else y instanceof Xi&&(b=y.labeledLink,b!==null&&Pe(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),Pe(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),Pe(a,y,x));return x}oe.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Pr)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},oe.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Vc(y.animationManager,"Collapse Tree");var x=new oi;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var tt=b.value;tt instanceof Xi&&tt.isTreeExpanded&&(tt.collapseTree(),x.add(tt))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},oe.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Xi&&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 Xi&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},oe.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Vc(y.animationManager,"Expand Tree");var x=new oi;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var tt=b.value;tt instanceof Xi&&!tt.isTreeExpanded&&(tt.expandTree(),x.add(tt))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},oe.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Xi)||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 Xi&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},oe.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 tt=new oi,et=a.selection.iterator;et.next();){var nt=et.value;nt.Zc()&&nt.canGroup()&&tt.add(nt)}for(var ot=new oi,at=tt.iterator;at.next();){var ut=at.value;et=!1;for(var ht=tt.iterator;ht.next();)if(ut.Td(ht.value)){et=!0;break}et||ot.add(ut)}if(0<ot.count){var gt=ot.first().containingGroup;if(gt!==null)for(;gt!==null;){tt=!1;for(var bt=ot.iterator;bt.next();)if(!bt.value.Td(gt)){tt=!0;break}if(tt)gt=gt.containingGroup;else break}if(x instanceof $r)ou(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Mt=y.copyNodeData(x);Ge(Mt)&&(y.xf(Mt),b=a.ii(Mt))}if(b!==null){gt!==null&&this.isValidMember(gt,b)&&(b.containingGroup=gt);for(var Et=ot.iterator;Et.next();){var Bt=Et.value;this.isValidMember(b,Bt)&&(Bt.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},oe.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 Bn(a){var y=Xn();for(a=a.iterator;a.next();){var x=a.value;x instanceof ji||y.push(x)}a=new Ce,x=y.length;for(var b=0;b<x;b++){for(var tt=y[b],et=!0,nt=0;nt<x;nt++)if(tt.Td(y[nt])){et=!1;break}et&&a.add(tt)}return qn(y),a}oe.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof ji)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},oe.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 oi;if(a!==null)b.add(a);else for(var tt=y.selection.iterator;tt.next();){var et=tt.value;et instanceof $r&&et.canUngroup()&&b.add(et)}var nt=new oi;if(0<b.count){y.clearSelection(!0);for(var ot=b.iterator;ot.next();){var at=ot.value;at.expandSubGraph();var ut=at.containingGroup,ht=ut!==null&&ut.data!==null?x.wa(ut.data):void 0;nt.addAll(at.memberParts);for(var gt=nt.iterator;gt.next();){var bt=gt.value;if(bt.isSelected=!0,!(bt instanceof ji)){var Mt=bt.data;Mt!==null?x.mp(Mt,ht):bt.containingGroup=ut}}y.remove(at)}}y.R("SelectionUngrouped",b,nt)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},oe.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 $r))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof $r&&y.canUngroup())return!0;return!1},oe.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=Bn(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},oe.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Vc(y.animationManager,"Collapse SubGraph");var x=new oi;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var tt=b.value;tt instanceof $r&&tt.isSubGraphExpanded&&(tt.collapseSubGraph(),x.add(tt))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},oe.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof $r&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof $r&&y.isSubGraphExpanded)return!0;return!1},oe.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Vc(y.animationManager,"Expand SubGraph");var x=new oi;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var tt=b.value;tt instanceof $r&&!tt.isSubGraphExpanded&&(tt.expandSubGraph(),x.add(tt))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},oe.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof $r&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof $r&&!y.isSubGraphExpanded)return!0;return!1},oe.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 tt=b.value;if(tt.canEdit()){a=tt;break}}if(a===null)return;a=a.Nl(function(et){return et instanceof as&&et.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},oe.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 as))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 as&&x.editable}),a!==null))return!0;return!1},oe.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,tt=null;a instanceof Ue?tt=a.ga(yr):y.viewportBounds.ca(b.documentPoint)||(tt=y.viewportBounds,tt=new Gt(tt.x+tt.width/2,tt.y+tt.height/2)),tt!==null&&(b.viewPoint=y.op(tt),b.documentPoint=tt,b.left=!1,b.right=!0,b.up=!0),y.currentTool=x,kc(x,!1,a)}},oe.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)},oe.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,b=x.toolManager.findTool("Dragging"),tt=x.currentTool===b;if(y===void 0&&(y=tt?b.dragOptions:x.Wm),b=new or,a===null)return b;for(var et=a.iterator;et.next();)mh(x,b,et.value,tt,y);if(x.draggedLink!==null&&y.dragsLink)return b;for(et=a.iterator;et.next();)a=et.value,a instanceof ji&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},ge.Object.defineProperties(oe.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||_e("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}}}),oe.className="CommandHandler",Gm=function(){return new oe};function Ue(){si(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Gt(NaN,NaN).freeze(),this.jd=_i,this.Ab=new Hr,this.wh=new Hr,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=wn,this.uc=new je(NaN,NaN,NaN,NaN).freeze(),this.Ib=new je(NaN,NaN,NaN,NaN).freeze(),this.dc=new je(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Ao,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 Li,Si,xr,Er,Rr,io,To,fo,Ro,$o;Ue.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=xi(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Ue.prototype.Vw=function(a){var y=this.Dh;if(un(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},Ue.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Ue.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},Ue.prototype.copy=function(){return this.clone()},St=Ue.prototype,St.qb=function(a){a.classType===ji?a.name.indexOf("Orient")===0?this.segmentOrientation=a:_e("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Ue&&(this.stretch=a)},St.toString=function(){return Ki(this.constructor)+"#"+Gi(this)},St.th=function(){this.A!==null&&(this.A.nc=!0)};function go(a){a.A===null?a.A=new Yf:a.A.nc&&(a.A=a.A.copy())}St.Xc=function(){if(this.ba===null){var a=new Xf;a.Xi=Ji,a.yj=Ji,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},St.cb=function(a,y,x,b,tt,et,nt){var ot=this.part;if(ot!==null&&(ot.gk(a,y,x,b,tt,et,nt),x===this&&a===_r&&el(this)&&As(this,ot,y),et=this.diagram,this.animationTriggers===null||et===null||!et.pi||et.undoManager.isUndoingRedoing||et.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&et.animationManager.isEnabled&&!et.animationManager.isTicking&&(this.jo===null&&(this.jo=new or),nt=et.undoManager.transactionLevel===0,a.startCondition===qd?nt=!0:a.startCondition===Kh&&(nt=!1),nt?(et=new sl,cv(a,et),nt=this.jo.get(a),nt!==null&&nt.stop(),this.jo.add(a,et),et.vu=this,et.Nw=a,et.add(this,y,b,tt),et.start()):(Vc(et.animationManager,"Trigger"),et.animationManager.defaultAnimation.add(this,y,b,tt)))),this instanceof Di&&x===ot&&(ot.l&16777216)!==0&&ot.data!==null))for(x=this.O.s,b=x.length,tt=0;tt<b;tt++)ot=x[tt],ot instanceof Di&&$h(ot,function(at){at.data!==null&&at.l&16777216&&at.La(y)})};function As(a,y,x){var b=a.ih();if(b!==null)for(var tt=a.localBindings.iterator;tt.next();){var et=tt.value,nt=null;if(et.sourceName!==null){if(nt=M1(et,b,a),nt===null)continue;et.sp(a,nt,x,null)}else if(et.isToModel){var ot=y.diagram;ot===null||ot.skipsModelSourceBindings||et.sp(a,ot.model.modelData,x,b)}else{if(ot=b.data,ot===null)continue;var at=y.diagram;at===null||at.skipsModelSourceBindings||et.sp(a,ot,x,b)}nt===a&&(ot=b.ks(et.Ai),ot!==null&&et.Mv(ot,nt,x))}}St.ks=function(a){return this.bindingId===a?this:null},St.g=function(a,y,x){this.cb(_r,a,this,y,x)},St.Ge=function(a,y,x,b){var tt=this.uc;if(tt.h(a,y,x,b),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new Hr);var et=this.Lb;et.reset(),this.no(et,a,y,x,b),et.pp(tt)}};function Aa(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}St.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?Ae(a.x,a.y,0,0,0,b.height)<=y||Ae(a.x,a.y,0,b.height,b.width,b.height)<=y||Ae(a.x,a.y,b.width,b.height,b.width,0)<=y||Ae(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},St.se=function(){return!0},St.ca=function(a){var y=Gt.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Gt.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var tt=b.Ql("extraTouchThreshold"),et=b.Ql("extraTouchArea"),nt=et/2,ot=this.naturalBounds;b=this.Df()*b.scale;var at=1/b;if(ot.width*b<tt&&ot.height*b<tt)return a=sn(x.x-nt*at,x.y-nt*at,x.width+et*at,x.height+et*at,y.x,y.y),Gt.free(y),a}return tt=!1,(this instanceof Wo||this instanceof lo?sn(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)?tt=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?tt=!0:tt=this.gh(a)),Gt.free(y),tt},St.gh=function(a){var y=this.naturalBounds;return sn(0,0,y.width,y.height,a.x,a.y)},St.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=je.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,tt=Gt.allocAt(a.x,a.y);return y.ca(x.Cd(tt))&&(tt.h(a.x,a.bottom),y.ca(x.Cd(tt))&&(tt.h(a.right,a.bottom),y.ca(x.Cd(tt))&&(tt.h(a.right,a.y),y.ca(x.Cd(tt))&&(b=!0)))),Gt.free(tt),je.free(y),b},St.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,tt=Gt.allocAt(0,0);return a.ca(y.Ga(tt))&&(tt.h(0,x.height),a.ca(y.Ga(tt))&&(tt.h(x.width,x.height),a.ca(y.Ga(tt))&&(tt.h(x.width,0),a.ca(y.Ga(tt))&&(b=!0)))),Gt.free(tt),b},St.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=Gt.allocAt(0,0),tt=Gt.allocAt(0,x.height),et=Gt.allocAt(x.width,x.height),nt=Gt.allocAt(x.width,0),ot=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(tt))||a.ca(y.Ga(et))||a.ca(y.Ga(nt)))ot=!0;else{x=je.allocAt(0,0,x.width,x.height);var at=Gt.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)))),Gt.free(at),je.free(x),!ot&&(Ke.us(a,b,tt)||Ke.us(a,tt,et)||Ke.us(a,et,nt)||Ke.us(a,nt,b))&&(ot=!0)}return Gt.free(b),Gt.free(tt),Gt.free(et),Gt.free(nt),ot},St.ga=function(a,y){if(y===void 0&&(y=new Gt),a instanceof gn){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},St.mi=function(a){a===void 0&&(a=new je);var y=this.naturalBounds,x=this.oe,b=Gt.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),Je(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),Je(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),Je(a,b.x,b.y,0,0),Gt.free(b),a},St.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},St.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},St.qs=function(a,y){return y===void 0&&(y=new Gt),y.assign(a),this.oe.Cd(y),y},St.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},St.Sj=function(a,y,x,b,tt){var et=this.transform,nt=1/(et.m11*et.m22-et.m12*et.m21),ot=et.m22*nt,at=-et.m12*nt,ut=-et.m21*nt,ht=et.m11*nt,gt=nt*(et.m21*et.dy-et.m22*et.dx),bt=nt*(et.m12*et.dx-et.m11*et.dy);return this.areaBackground!==null?(et=this.actualBounds,Ke.Ff(et.left,et.top,et.right,et.bottom,a,y,x,b,tt)):(nt=a*ot+y*ut+gt,a=a*at+y*ht+bt,y=x*ot+b*ut+gt,x=x*at+b*ht+bt,tt.h(0,0),b=this.naturalBounds,x=Ke.Ff(0,0,b.width,b.height,nt,a,y,x,tt),tt.transform(et),x)},Ue.prototype.measure=function(a,y,x,b){if(Vl(this)!==!1){var tt=this.Kg,et=tt.right+tt.left;tt=tt.top+tt.bottom,a=Math.max(a-et,0),y=Math.max(y-tt,0),x=Math.max((x||0)-et,0),b=Math.max((b||0)-tt,0),et=this.angle,tt=this.desiredSize;var nt=this.kq();et===90||et===270?(a=isFinite(tt.height)?tt.height+nt:a,y=isFinite(tt.width)?tt.width+nt:y):(a=isFinite(tt.width)?tt.width+nt:a,y=isFinite(tt.height)?tt.height+nt:y),tt=x||0,nt=b||0;var ot=this instanceof Di;switch(Fl(this,!0)){case Si:nt=tt=0,ot&&(y=a=1/0);break;case Li:isFinite(a)&&a>x&&(tt=a),isFinite(y)&&y>b&&(nt=y);break;case Er:isFinite(a)&&a>x&&(tt=a),nt=0,ot&&(y=1/0);break;case Rr:isFinite(y)&&y>b&&(nt=y),tt=0,ot&&(a=1/0)}ot=this.maxSize;var at=this.minSize;tt>ot.width&&at.width<ot.width&&(tt=ot.width),nt>ot.height&&at.height<ot.height&&(nt=ot.height),x=Math.max(tt,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),(et===90||et===270)&&(et=a,a=y,y=et,et=x,x=b,b=et),this.uc.ka(),this.Wl(a,y,x,b),this.uc.freeze(),this.uc.w()||_e("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),ta(this,!1)}},Ue.prototype.Wl=function(){},Ue.prototype.Dd=function(){return!1},Ue.prototype.arrange=function(a,y,x,b,tt){this.Uk();var et=je.alloc();et.assign(this.Ib),this.Ib.ka(),Ll(this)===!1?this.Ib.h(a,y,x,b):this.eh(a,y,x,b),this.Ib.freeze(),tt===void 0?this.tb=null:this.tb=tt,x=!1,tt!==void 0?x=!0:(tt=this.panel,tt!==null&&kd(tt)&&(tt=tt.panel),tt!==null&&(tt=tt.dc,b=this.measuredBounds,this.areaBackground!==null&&(b=this.Ib),x=y+b.height,b=a+b.width,x=!(0<=a+.05&&b<=tt.width+.05&&0<=y+.05&&x<=tt.height+.05),this instanceof as&&(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()||_e("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(et,this.Ib),ll(this,!1),je.free(et)},St=Ue.prototype,St.eh=function(){};function Al(a,y,x,b,tt){if(a.Ib.h(y,x,b,tt),!a.desiredSize.w()){var et=a.uc;x=a.Kg,y=x.right+x.left;var nt=x.top+x.bottom;switch(x=et.width+y,et=et.height+nt,b+=y,tt+=nt,y=Fl(a,!0),x===b&&et===tt&&(y=Si),y){case Si:(x>b||et>tt)&&(ta(a,!0),a.measure(x>b?b:x,et>tt?tt:et,0,0));break;case Li:ta(a,!0),a.measure(b,tt,0,0);break;case Er:ta(a,!0),a.measure(b,et,0,0);break;case Rr:ta(a,!0),a.measure(x,tt,0,0)}}}St.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Wv(x,!0),this.N(),cn(a,y)||(x.oh(),this.Pn(x)))},St.Pn=function(a){this.portId!==null&&(Wv(a,!0),a instanceof Xi&&Ng(a,this))},St.gc=function(a,y){if(!_u(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 tt="";this.filter!==""&&(tt=a.filter,a.filter=this.filter);var et=this instanceof Di&&kd(this),nt=this.Ib;if(et){var ot=this.Ib,at=this.dc,ut=this.areaBackground,ht=this.Ma;ut===null&&ht===null||a.yc(),ut!==null&&(Us(this,a,ut,!0,!0,at,ot),ut instanceof Jo&&ut.type===Wu?(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)),ht!==null&&(Us(this,a,ht,!0,!1,at,ot),ht instanceof Jo&&ht.type===Wu?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ht)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),this.hh(a,y)}if(!et&&(et||nt.width!==0&&nt.height!==0&&!isNaN(nt.x)&&!isNaN(nt.y))){et=this.transform,ot=this.panel,this.l&4096&&tl(this),ut=this.part,at=!1;var gt=0;ut&&y.Gf("drawShadows")&&(at=ut.isShadowed)&&(ht=ut.shadowOffset,gt=Math.max(ht.y,ht.x)*y.scale*y.Mb),ht=this.Dd();var bt;if(!(bt=y.$i||!ht)){var Mt=this.naturalBounds;bt=this.wh;var Et=bt.m11,Bt=bt.m21,se=bt.dx,Jt=bt.m12,me=bt.m22,Se=bt.dy,Le,Ve=Le=0;bt=Le*Et+Ve*Bt+se;var fn=Le*Jt+Ve*me+Se;Le=Mt.width+gt,Ve=0;var nr=Le*Et+Ve*Bt+se;Le=Le*Jt+Ve*me+Se,Ve=Math.min(bt,nr);var mr=Math.min(fn,Le),dr=Math.max(bt+0,nr)-Ve,Hi=Math.max(fn+0,Le)-mr;bt=Ve,fn=mr,Le=Mt.width+gt,Ve=Mt.height+gt,nr=Le*Et+Ve*Bt+se,Le=Le*Jt+Ve*me+Se,Ve=Math.min(bt,nr),mr=Math.min(fn,Le),dr=Math.max(bt+dr,nr)-Ve,Hi=Math.max(fn+Hi,Le)-mr,bt=Ve,fn=mr,Le=0,Ve=Mt.height+gt,nr=Le*Et+Ve*Bt+se,Le=Le*Jt+Ve*me+Se,Ve=Math.min(bt,nr),mr=Math.min(fn,Le),dr=Math.max(bt+dr,nr)-Ve,Hi=Math.max(fn+Hi,Le)-mr,bt=Ve,fn=mr,gt=y.viewportBounds,Mt=gt.x,Et=gt.y,bt=!(bt>gt.width+Mt||Mt>dr+bt||fn>gt.height+Et||Et>Hi+fn)}if(bt){if(bt=(this.l&256)!==0,a.clipInsteadOfFill&&(bt=!1),this instanceof as&&(a.font=this.font),bt){if(fn=ot.se()?ot.naturalBounds:ot.actualBounds,dr=Math.max(nt.x,fn.x),Hi=Math.max(nt.y,fn.y),gt=Math.min(nt.right,fn.right)-dr,Mt=Math.min(nt.bottom,fn.bottom)-Hi,Et=this.tb,Et!==null&&(dr=Et.x,Hi=Et.y,gt=Et.width,Mt=Et.height),dr>nt.width+nt.x||nt.x>fn.width+fn.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=tt);return}a.save(),a.beginPath(),a.rect(dr,Hi,gt,Mt),a.clip()}if(ht){if(!ut.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=tt);return}at&&(fn=ut.shadowOffset,a.Ev(fn.x*y.scale*this.scale*y.Mb,fn.y*y.scale*this.scale*y.Mb,ut.shadowBlur),Yh(a),a.shadowColor=ut.shadowColor)}at&&this.shadowVisible===!0?Yh(a):at&&this.shadowVisible===!1&&fc(a),ut=this.naturalBounds,this.areaBackground!==null&&(a.yc(),mu(this,a,ut,nt)),a.transform(et.m11,et.m12,et.m21,et.m22,et.dx,et.dy),at&&Za(this,ot)&&this.shadowVisible===null&&fc(a),this.Ma!==null&&(a.yc(),nu(this,a,ut,nt)),at&&(this.Ma!==null||this.areaBackground!==null||Za(this,ot))?(qs(this,!0),this.shadowVisible===null&&fc(a)):qs(this,!1),this.hh(a,y),at&&this.l&512&&Yh(a),ht&&at&&fc(a),bt&&(a.restore(),a.Vc(this instanceof Di)),et.ws()||(y=1/(et.m11*et.m22-et.m12*et.m21),a.transform(et.m22*y,-et.m12*y,-et.m21*y,et.m11*y,y*(et.m21*et.dy-et.m22*et.dx),y*(et.m12*et.dx-et.m11*et.dy)))}}x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=tt)}}};function Za(a,y){return y===null?!1:(kd(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Di.Auto||y.type===Di.Spot)&&y.Pb()!==a)}St.Dv=function(){};function mu(a,y,x,b){Us(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof Jo&&a.areaBackground.type===Wu?(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 nu(a,y,x,b){var tt=a.kq(),et=x.x,nt=x.y,ot=x.width+tt,at=x.height+tt;Us(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof Jo&&a.Ma.type===Wu?(y.beginPath(),y.rect(et-tt/2,nt-tt/2,ot,at),y.ng(a.Ma)):y.fillRect(et-tt/2,nt-tt/2,ot,at)}function bl(a,y,x){for(var b=y.O.s,tt=b.length,et=-1,nt=0;nt<tt;nt++)if(b[nt]===a){et=nt;break}if(a=et,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===Di.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 _u(a,y,x){if(!(y instanceof wl))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,tt=a.nk(y);if(a.kk(y,x,tt))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&&bl(a,b,a.svg),!0);if(a.Dd()&&a.isShadowed){var et=a.shadowOffset;y.Ev(et.x*x.scale*a.scale*x.Mb,et.y*x.scale*a.scale*x.Mb,a.shadowBlur),Yh(y),y.shadowColor=a.shadowColor}a instanceof as&&(y.font=a.font),y.yd=null;var nt=a.transform;et=a instanceof Di;var ot=a instanceof Di?kd(a):!1;a.l&4096&&tl(a);var at=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,tt&&(y.o=!0,et&&ot?($0(y,1,0,0,1,0,0),a.svg=y.ad):et?($0(y,nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy),a.svg=y.ad):$0(y,1,0,0,1,0,0)),tt=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],mu(a,y,tt,at),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return et||(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy]),a.background!==null&&(et?(ot&&(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy]),nu(a,y,tt,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],nu(a,y,tt,at)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),nt=y.yd,tt=a.part,ot=!1,tt&&x.Gf("drawShadows")&&(ot=tt.isShadowed),y.clipInsteadOfFill&&(ot=!1),a.Dd()&&ot&&Yh(y),ot&&a.shadowVisible===!0?Yh(y):ot&&a.shadowVisible===!1&&fc(y),tt=a.panel,ot&&Za(a,tt)&&a.shadowVisible===null&&fc(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||Za(a,tt))?(qs(a,!0),a.shadowVisible===null&&fc(y)):qs(a,!1),tt=ot,a.hh(y,x),et&&y.nh.pop(),y.o&&y.nh.pop(),nt=y.Gv.hs,ot=et?a.svg:y.yd,ut=a.svg,!et&&ut!==null&&ot!==ut&&ut.parentNode===a.panel.svg?(a.svg.replaceWith(ot),a.svg=ot,ot!==null&&a.$o(y,b,at,ot),Cs(y,ut),!0):(a.svg=ot,nt!==null&&ot===null&&(yv(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+")")),tt&&a.l&512&&Yh(y),a.Dd()&&fc(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&&bl(a,b,ot),nt!==null&&nt(a,ot)),!0)}St.$o=function(a,y,x,b){var tt=(this.l&256)!==0;if(a.clipInsteadOfFill&&(tt=!1),tt){var et=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,et.x),tt=Math.max(x.y,et.y);var nt=Math.min(x.right,et.right)-y;x=Math.min(x.bottom,et.bottom)-tt,et=this.tb,et!==null&&(y=et.x,tt=et.y,nt=et.width,x=et.height),et=b.getAttribute("clip-path");var ot=null;et!==null&&(ot=a.svg.getElementById(et.split("#")[1].slice(0,-1))),ot===null?(et="CLIP"+Tr++,ot=a.Ud("clipPath",{id:et}),y=a.Ud("rect",{x:y,y:tt,width:nt,height:x}),this instanceof Di&&(tt=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+tt.m11+", "+tt.m12+", "+tt.m21+", "+tt.m22+", "+tt.dx+", "+tt.dy+")")),ot.appendChild(y),a.svg.appendChild(ot),b.setAttributeNS(null,"clip-path","url(#"+et+")")):(a=ot.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",tt.toString()),a.setAttribute("width",nt.toString()),a.setAttribute("height",x.toString()))}else b.removeAttributeNS(null,"clip-path"),Cs(a,b)};function Cs(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function al(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=mi(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()}}St.hh=function(){},St.lv=function(){this.Uc=!0},St.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,tt=this instanceof Di?kd(this):!1;if(!(this instanceof Di&&tt))if(this instanceof Zl){var et=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],et!==null&&J0(a,et[0],et[1],et[2],et[3],et[4],et[5],et[6],et[7]),x?y.lastElementChild.setAttributeNS(null,"transform",vv(a)):y.setAttributeNS(null,"transform",vv(a))}else if(!x||this instanceof Di)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof lo){et=y.getElementsByTagName("path");for(var nt=0;nt<et.length;nt++)et[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 et=this.Dd()?this.opacity*a.globalAlpha:this.opacity,et===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",et.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(et=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],mu(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),et&&xv(a,et)),(this.background!==null||y.Ma!==void 0)&&(et=y.Ma,this.background===null?(xv(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((tt||x&&!(this instanceof Di))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),nu(this,a,this.naturalBounds,this.actualBounds),y.Ma?(xv(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),et&&xv(a,et)),this.$o(a,this.panel,this.actualBounds,y),!0},St.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 Us(a,y,x,b,tt,et,nt){if(x!==null){var ot=1,at=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Jh)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var ut=a.kq();if(ot=et.width,at=et.height,tt?(ot=nt.width,at=nt.height):b||(ot+=ut,at+=ut),(et=y instanceof Sh)&&x.xe&&(x.type===tm||x.yk===ot&&x.ft===at))var ht=x.xe;else{var gt=0,bt=0,Mt=0,Et=0,Bt=0,se=0;if(se=Bt=0,tt?(Bt=nt.x,se=nt.y):b||(Bt-=ut/2,se-=ut/2),gt=x.start.x*ot+x.start.offsetX,bt=x.start.y*at+x.start.offsetY,Mt=x.end.x*ot+x.end.offsetX,Et=x.end.y*at+x.end.offsetY,gt+=Bt,Mt+=Bt,bt+=se,Et+=se,x.type===Qh)ht=y.createLinearGradient(gt,bt,Mt,Et);else if(x.type===Wu)se=isNaN(x.endRadius)?Math.max(ot,at)/2:x.endRadius,isNaN(x.startRadius)?(Bt=0,se=Math.max(ot,at)/2):Bt=x.startRadius,ht=y.createRadialGradient(gt,bt,Bt,Mt,Et,se);else if(x.type===tm)try{ht=y.createPattern(x.pattern,"repeat")}catch(me){ht=null}if(x.type!==tm&&(tt=x.colorStops,tt!==null))for(tt=tt.iterator;tt.next();)ht.addColorStop(tt.key,tt.value);if(et&&(x.xe=ht,ht!==null&&(x.yk=ot,x.ft=at),ht===null&&x.type===tm&&x.yk!==-1)){x.yk=-1;var Jt=a.diagram;Jt!==null&&x.yk===-1&&fi(function(){Jt.redraw()},600)}}b?y.fillStyle=ht:y.strokeStyle=ht}}}St.rg=function(a){if(a instanceof Di)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},St.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},St.If=function(){for(var a=this instanceof Di?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function tl(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){tc(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)}tc(a,!1),ku(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,ku(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,ku(a,!1)))}St.no=function(a,y,x,b,tt){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var et=Gt.alloc();et.yi(y,x,b,tt,yr),a.rotate(this.Kb,et.x,et.y),Gt.free(et)}},St.v=function(a){if(!Vl(this)){a===void 0&&(a=!1),ta(this,!0),ll(this,!0);var y=this.panel;y===null||a||y.v()}},St.Uj=function(){Vl(this)||(ta(this,!0),ll(this,!0))};function Ga(a){if(!Ll(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof Xi&&a.Bd(),y.$b())),ll(a,!0)}}St.Uk=function(){!(this.l&2048)&&(tc(this,!0),ku(this,!0))},St.Wu=function(){ku(this,!0)},St.N=function(){var a=this.part;a!==null&&a.N()};function Fl(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===Di.Table?iu(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===Di.Auto&&b.Pb()===a?Ra(a,Li,y):x===io?b!==null?b.type===Di.Spot&&b.Pb()===a?Ra(a,Li,y):(x=b.defaultStretch,x===io?Ra(a,Si,y):Ra(a,x,y)):Ra(a,Si,y):Ra(a,x,y)}function iu(a,y,x,b){var tt=a.stretch;if(tt!==io)return Ra(a,tt,b);var et=tt=null;switch(y.stretch){case Rr:et=!0;break;case Li:et=!0}switch(x.stretch){case Er:tt=!0;break;case Li:tt=!0}return y=a.panel.defaultStretch,tt===null&&(tt=y===Er||y===Li),et===null&&(et=y===Rr||y===Li),tt===!0&&et===!0?Ra(a,Li,b):tt===!0?Ra(a,Er,b):et===!0?Ra(a,Rr,b):Ra(a,Si,b)}function Ra(a,y,x){if(x)return y;if(y===Si||(x=a.desiredSize,x.w()))return Si;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Er)return Si;if(y===Li)return Rr}else{if(y===Rr)return Si;if(y===Li)return Er}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===Rr)return Si;if(y===Li)return Er}else{if(y===Er)return Si;if(y===Li)return Rr}return y}function qs(a,y){a.l=y?a.l|512:a.l&-513}function el(a){return(a.l&1024)!==0}function Gf(a,y){a.l=y?a.l|1024:a.l&-1025}function tc(a,y){a.l=y?a.l|2048:a.l&-2049}function ku(a,y){a.l=y?a.l|4096:a.l&-4097}function Vl(a){return(a.l&8192)!==0}function ta(a,y){a.l=y?a.l|8192:a.l&-8193}function Ll(a){return(a.l&16384)!==0}function ll(a,y){a.l=y?a.l|16384:a.l&-16385}St.Gj=function(){this.svg=null},St.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},St.Av=function(){},St.zv=function(a){return this.pa=a,Ga(this),!0},St.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},St.kq=function(){return 0};function lf(a){var y=a.part;if(y instanceof Xi&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||Ng(y,a)}}function Oy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Di?a instanceof Xi?a.Bd():a.qm(a,function(x){lf(x)}):lf(a))}St.bind=function(a,y,x,b){var tt=null;return typeof a=="string"?tt=new ls(a,y,x,b):tt=a,tt.xd=this,a=this.ih(),a!==null&&$1(a)&&_e("Cannot add a Binding to a template that has already been copied: "+tt),this.localBindings===null&&(this.localBindings=new oi),this.localBindings.add(tt),this},St.set=function(a){return Object.assign(this,a),this},St.Du=function(a){return Ya(this,a),this},St.apply=function(a){return a(this),this},St.nm=function(a){return ef(this,a),this},St.pz=function(){return this.ih()},St.ih=function(){for(var a=this instanceof Di?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},St.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new or),this.animationTriggers.add(a.propertyName,a),this};function Dr(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var b=null,tt=null;if(typeof a=="function")tt=a;else if(typeof a=="string"){var et=qp.I(a);typeof et=="function"?(x=xi(arguments),b=et(x),Ge(b)||_e('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):tt=ce.go[a]}if(b===null&&(tt!=null&&tt.constructor||_e("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),b=new tt),tt=1,b instanceof dn&&1<x.length){et=b;var nt=x[1];(typeof nt=="string"||nt instanceof HTMLDivElement)&&(Hu(et,nt),tt++)}for(;tt<x.length;tt++)et=x[tt],et===void 0?_e("Undefined value at argument "+tt+" for object being constructed by GraphObject.make: "+b):Ya(b,et);return b}function Ya(a,y){if(typeof y=="string")if(a instanceof as)a.text=y;else if(a instanceof lo)a.figure=y;else if(a instanceof Zl)a.source=y;else if(a instanceof Di)y=su.I(y),y!==null&&(a.type=y);else if(a instanceof Jo){var x=Co(Jo,y);x!==null?a.type=x:_e("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof ii?(y=Co(ii,y),y!==null&&(a.type=y)):a instanceof co&&(y=Co(co,y),y!==null&&(a.type=y));else if(y instanceof Ue)a instanceof Di||_e("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof pa){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 pa?a0(b,y):_e("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof ui)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Sa)a.type=y;else if(y instanceof ls)a instanceof Ue||a instanceof pa?a.bind(y):_e("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof lc)a instanceof Ue?a.Jv(y):_e("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof Bs)a instanceof ii&&a.type===ii.o?a.figures.add(y):_e("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof co)a instanceof Bs?a.segments.add(y):_e("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Ds)a instanceof dn||a instanceof $r?a.layout=y:_e("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++)Ya(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof Jo){x=new Kr;for(var tt in y)b=parseFloat(tt),isNaN(b)?x[tt]=y[tt]:a.addColorStop(b,y[tt]);ef(a,x)}else if(a instanceof pa){y.row!==void 0?(tt=y.row,(tt==null||tt===1/0||isNaN(tt)||0>tt)&&_e("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+tt),a.isRow=!0,a.index=tt):y.column!==void 0&&(tt=y.column,(tt==null||tt===1/0||isNaN(tt)||0>tt)&&_e("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+tt),a.isRow=!1,a.index=tt),tt=new Kr;for(x in y)x!=="row"&&x!=="column"&&(tt[x]=y[x]);ef(a,tt)}else ef(a,y);else _e('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function uf(a,y){qp.add(a,y)}function By(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}ge.Object.defineProperties(Ue.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Yf),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 Yf),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 Yf),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(go(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&&(go(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:zl},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Yc),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===zl&&(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 Yc),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 Yc),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:Zn},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Yc),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:io},set:function(a){var y=this.stretch;y!==a&&(go(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&&(go(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)&&Ri(a,"0 <= value <= 1",Ue,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Oc(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(Oc(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(),Oy(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&&r0(a,"GraphObject.areaBackground"),a instanceof Jo&&a.freeze(),go(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&&r0(a,"GraphObject.background"),a instanceof Jo&&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 Pr)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,tt=b.x;b=b.y,(tt===y||isNaN(tt)&&isNaN(y))&&(b===x||isNaN(b)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,tt,b)&&this.g("position",new Gt(tt,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&&_e("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,Oy(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,tt=b.width,et=b.height;(tt===y||isNaN(tt)&&isNaN(y))&&(et===x||isNaN(et)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof lo&&this.qc(),this.g("desiredSize",b,a),el(this)&&(a=this.part,a!==null&&(As(this,a,"width"),As(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 An(a,this.jd.height).freeze(),this.v(),this instanceof lo&&this.qc(),this.g("desiredSize",y,a),el(this)&&(a=this.part,a!==null&&As(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 An(this.jd.width,a).freeze(),this.v(),this instanceof lo&&this.qc(),this.g("desiredSize",y,a),el(this)&&(a=this.part,a!==null&&As(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Mi},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(),go(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:sr},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(),go(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 Kn(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&&tl(this),this.Ab}},oe:{get:function(){return this.l&4096&&tl(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(go(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Si},set:function(a){this.reshapingBehavior!==a&&(go(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()&&_e("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Ga(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&&Ri(a,">= 0",Ue,"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&&Ri(a,">= 1",Ue,"columnSpan"),go(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&&Ri(a,">= 0",Ue,"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&&Ri(a,">= 1",Ue,"rowSpan"),go(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&&(go(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 Xi||_e("Cannot set portID on a Link: "+a),y!==null&&x!==null&&r1(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,i1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Ji},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),lf(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Ri(a,">= 0",Ue,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),lf(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),lf(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&&Ri(a,">= 0",Ue,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Ji},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),lf(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Ri(a,">= 0",Ue,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),lf(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),lf(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&&Ri(a,">= 0",Ue,"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&&(go(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&&(go(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&&(go(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&&(go(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&&(go(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&&(go(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&&(go(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&&(go(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&&(go(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&&(go(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&&(go(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&&(go(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&&(go(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&&(go(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&&(go(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&&(go(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&&(go(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&&(go(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Ue.prototype.trigger=Ue.prototype.Jv,Ue.prototype.findBindingPanel=Ue.prototype.ih,Ue.prototype.findTemplateBinder=Ue.prototype.pz,Ue.prototype.setProperties=Ue.prototype.nm,Ue.prototype.apply=Ue.prototype.apply,Ue.prototype.attach=Ue.prototype.Du,Ue.prototype.set=Ue.prototype.set,Ue.prototype.isEnabledObject=Ue.prototype.If,Ue.prototype.isVisibleObject=Ue.prototype.Ed,Ue.prototype.isContainedBy=Ue.prototype.rg,Ue.prototype.getNearestIntersectionPoint=Ue.prototype.rs,Ue.prototype.getLocalPoint=Ue.prototype.qs,Ue.prototype.getDocumentScale=Ue.prototype.Df,Ue.prototype.getDocumentAngle=Ue.prototype.li,Ue.prototype.getDocumentBounds=Ue.prototype.mi,Ue.prototype.getDocumentPoint=Ue.prototype.ga,Ue.prototype.intersectsRect=Ue.prototype.Yc,Ue.prototype.containedInRect=Ue.prototype.fh,Ue.prototype.containsRect=Ue.prototype.Re,Ue.prototype.containsPoint=Ue.prototype.ca,Ue.prototype.raiseChanged=Ue.prototype.g,Ue.prototype.raiseChangedEvent=Ue.prototype.cb,Ue.prototype.addCopyProperty=Ue.prototype.Vw;var qp=null;Ue.className="GraphObject",qp=new or,uf("Button",function(){function a(x,b){return x.diagram.ic(x.documentPoint,function(tt){for(;tt.panel!==null&&!tt.isActionable;)tt=tt.panel;return tt},function(tt){return tt===b})!==null}var y=Dr(Di,Di.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof Di){var tt=x.fb("ButtonBorder");tt!==null&&(tt.fill=b?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},Dr(lo,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new gn(0,0,2.76142374915397,2.761423749153969),spot2:new gn(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 Di&&(x=b.fb("ButtonBorder"),x instanceof lo)){var tt=b._buttonFillOver;b._buttonFillNormal=x.fill,x.fill=tt,tt=b._buttonStrokeOver,b._buttonStrokeNormal=x.stroke,x.stroke=tt}},y.mouseLeave=function(x,b){b.If()&&b instanceof Di&&(x=b.fb("ButtonBorder"),x instanceof lo&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof Di&&b._buttonFillPressed!==null&&x.button===0){var tt=b.fb("ButtonBorder");if(tt instanceof lo){x=x.diagram;var et=x.skipsUndoManager;x.skipsUndoManager=!0;var nt=b._buttonFillPressed;b._buttonFillOver=tt.fill,tt.fill=nt,nt=b._buttonStrokePressed,b._buttonStrokeOver=tt.stroke,tt.stroke=nt,x.skipsUndoManager=et}}},y.actionUp=function(x,b){if(b.If()&&b instanceof Di&&b._buttonFillPressed!==null&&x.button===0){var tt=b.fb("ButtonBorder");if(tt instanceof lo){var et=x.diagram,nt=et.skipsUndoManager;et.skipsUndoManager=!0,a(x,b)?(tt.fill=b._buttonFillOver,tt.stroke=b._buttonStrokeOver):(tt.fill=b._buttonFillNormal,tt.stroke=b._buttonStrokeNormal),et.skipsUndoManager=nt}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof Di&&b._buttonFillPressed!==null){var tt=b.fb("ButtonBorder");if(tt instanceof lo){var et=x.diagram,nt=et.skipsUndoManager;et.skipsUndoManager=!0,a(x,b)?(tt.fill=b._buttonFillOver,tt.stroke=b._buttonStrokeOver):(tt.fill=b._buttonFillNormal,tt.stroke=b._buttonStrokeNormal),et.skipsUndoManager=nt}}},y.actionMove=function(x,b){if(b.If()&&b instanceof Di&&b._buttonFillPressed!==null){var tt=x.diagram;if(tt.firstInput.button===0&&(tt.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof lo))){var et=tt.skipsUndoManager;tt.skipsUndoManager=!0;var nt=b._buttonFillPressed;x.fill!==nt&&(x.fill=nt),nt=b._buttonStrokePressed,x.stroke!==nt&&(x.stroke=nt),tt.skipsUndoManager=et}}},y}),uf("TreeExpanderButton",function(){var a=Dr("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Dr(lo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Wn},new ls("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new ls("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Wo&&(x=x.adornedPart),x instanceof Xi){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}),uf("SubGraphExpanderButton",function(){var a=Dr("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Dr(lo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Wn},new ls("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 Wo&&(x=x.adornedPart),x instanceof $r){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}),uf("ToolTip",function(){return Dr(Wo,Di.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Gt(0,3),shadowBlur:5},Dr(lo,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new gn(0,0,4,6),spot2:new gn(1,1,-4,-4)}))}),uf("ContextMenu",function(){return Dr(Wo,Di.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Gt(0,3),shadowBlur:5},new ls("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),uf("ContextMenuButton",function(){var a=Dr("Button");a.stretch=Er;var y=a.fb("ButtonBorder");return y instanceof lo&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new gn(0,0,2,3),y.spot2=new gn(1,1,-2,-2)),a}),uf("PanelExpanderButton",function(a){var y=By(a,"COLLAPSIBLE"),x=Dr("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},Dr(lo,{name:"ButtonIcon",strokeWidth:2},new ls("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof lo&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,tt){var et=tt.diagram;if(et!==null&&!et.isReadOnly){var nt=tt.ih();nt===null&&(nt=tt.part),nt!==null&&(tt=nt.fb(y),tt!==null&&(b.handled=!0,et.Ea("Collapse/Expand Panel"),tt.visible=!tt.visible,et.eb("Collapse/Expand Panel")))}},x}),uf("CheckBoxButton",function(a){var y=By(a);return a=Dr("Button",{desiredSize:new An(14,14)},Dr(lo,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Li,geometryStretch:xr,visible:!1},y!==""?new ls("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof Di){var tt=x.diagram;if(!(tt===null||tt.isReadOnly||y!==""&&tt.model.isReadOnly)){x.handled=!0;var et=b.fb("ButtonIcon");tt.Ea("checkbox"),et.visible=!et.visible,typeof b._doClick=="function"&&b._doClick(x,b),tt.eb("checkbox")}}},a}),uf("CheckBox",function(a){a=By(a),a=Dr("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Kn(0,1,0,0)});var y=Dr(Di,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Kn(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}),Ue.None=Si=new ui(Ue,"None",0),Ue.Default=io=new ui(Ue,"Default",0),Ue.Vertical=Rr=new ui(Ue,"Vertical",4),Ue.Horizontal=Er=new ui(Ue,"Horizontal",5),Ue.Fill=Li=new ui(Ue,"Fill",3),Ue.Uniform=xr=new ui(Ue,"Uniform",1),Ue.UniformToFill=To=new ui(Ue,"UniformToFill",2),Ue.FlipVertical=fo=new ui(Ue,"FlipVertical",1),Ue.FlipHorizontal=Ro=new ui(Ue,"FlipHorizontal",2),Ue.FlipBoth=$o=new ui(Ue,"FlipBoth",3),Ue.make=Dr,Ue.getBuilders=function(){var a=new or,y;for(y in qp)if(y!==y.toLowerCase()){var x=qp.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Ue.defineBuilder=uf,Ue.build=function(a,y,x){for(var b=[],tt=2;tt<arguments.length;++tt)b[tt-2]=arguments[tt];if(tt=qp.I(a),typeof tt=="function"&&(b=tt([a].concat(b)),b instanceof Ue))return y&&b.set(y),b;_e('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Ue.takeBuilderArgument=By;function Yf(){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=Mi,this.o=sr,this.hg=io,this.ob=this.Bi=1,this.Pf=Si,this.Pc=this.Ci=this.gd=null,this.Oc="category"}Yf.prototype.copy=function(){var a=new Yf;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 Yc(){this.u=-1/0,this.o=0,this.F=Zn,this.rr=zl,this.j=this.V="None"}Yc.prototype.copy=function(){var a=new Yc;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},Yc.className="LinkElementSettings";function Xf(){this.yj=this.Xi=Ao,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}Xf.prototype.copy=function(){var a=new Xf;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},Xf.className="LinkSettings";function Jf(){this.ha=[1,0,0,1,0,0]}Jf.prototype.copy=function(){var a=new Jf;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},Jf.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},Jf.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Jf.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 tt=this.ha[1]*a+this.ha[3]*b,et=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]=tt,this.ha[2]=et,this.ha[3]=nt,this.translate(-y,-x)}},Jf.className="STransform";function t0(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}t0.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},t0.className="SGradient";function Pc(a,y,x){this.ownerDocument=a=y===void 0?ce.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 wl(this,x)}Pc.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},Pc.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),Ge(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},Pc.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Pc.prototype.focus=function(){this.Oa.focus()},Pc.prototype.mx=function(){this.ownerDocument=null},ge.Object.defineProperties(Pc.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}}}),Pc.className="SVGSurface";function wl(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 Jf,this.j=yv(this),this.Nj=yv(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Tr++,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 ru(a,y,x,b,tt,et,nt){a.Nj===void 0?$0(a,y,x,b,tt,et,nt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+tt+", "+et+", "+nt+")")}St=wl.prototype,St.arc=function(a,y,x,b,tt,et,nt,ot){var at=2*Math.PI,ut=at-1e-6,ht=x*Math.cos(b),gt=x*Math.sin(b),bt=a+ht,Mt=y+gt,Et=et?0:1;b=et?b-tt:tt-b,(1e-6<Math.abs(nt-bt)||1e-6<Math.abs(ot-Mt))&&this.path.push(["L",bt,+Mt]),0>b&&(b=b%at+at),b>ut?(this.path.push(["A",x,x,0,1,Et,a-ht,y-gt]),this.path.push(["A",x,x,0,1,Et,bt,Mt])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),Et,a+x*Math.cos(tt),y+x*Math.sin(tt)])},St.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},St.Se=function(a){this.addPath(this.path,this.rb,a||0)},St.bezierCurveTo=function(a,y,x,b,tt,et){this.path.push(["C",a,y,x,b,tt,et])},St.clearRect=function(){},St.clip=function(){this.Yl.clipPath=!0},St.closePath=function(){this.path.push(["z"])},St.createLinearGradient=function(a,y,x,b){var tt=new t0("linear");return tt.x1=a,tt.y1=y,tt.x2=x,tt.y2=b,tt},St.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"+Tr++,tt={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(Zf,tt)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},St.createRadialGradient=function(a,y,x,b,tt,et){var nt=new t0("radial");return nt.x1=a,nt.y1=y,nt.r1=x,nt.x2=b,nt.y2=tt,nt.r2=et,nt};function J0(a,y,x,b,tt,et,nt,ot,at){b=ot/b,tt=at/tt,et===0&&nt===0||a.rb.translate(et,nt),b===1&&tt===1||a.rb.scale(b,tt),y===0&&x===0||a.rb.translate(-y,-x)}St.drawImage=function(a,y,x,b,tt,et,nt,ot,at){var ut="";a instanceof HTMLCanvasElement&&(ut=a.toDataURL()),a instanceof HTMLImageElement&&(ut=a.getAttribute("src"));var ht=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(et=y,nt=x,ot=b=ht,at=tt=a),b=b||0,tt=tt||0,ot=ot||0,at=at||0,J0(this,y,x,b,tt,et||0,nt||0,ot,at),et={x:0,y:0,width:ht||b,height:a||tt,href:ut},Ke.$(b,ot)&&Ke.$(tt,at)?ut.toLowerCase().indexOf(".svg")===-1&&ut.toLowerCase().indexOf("data:image/svg")===-1&&(et.preserveAspectRatio="xMidYMid slice"):et.preserveAspectRatio="none",(y!==0||x!==0||b!==ht||tt!==a)&&(b+=y,tt+=x,et["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+tt+" L "+y+" "+tt+" z')"),wh(this,Zf,et,this.rb),this.addElement(Zf,et)},St.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),Nc(this,this.Yl)},St.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},St.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},wh(this,"fill",a,this.rb),this.addElement("rect",a)},St.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},wh(this,"fill",a,this.rb),Nc(this,a),this.svg.prepend(this.Ud("rect",a))},St.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},wh(this,"fill",y,this.rb),this.addElement("text",y,a[0])},St.lineTo=function(a,y){this.path.push(["L",a,y])},St.moveTo=function(a,y){this.path.push(["M",a,y])},St.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},St.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"])},St.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},St.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())},St.setTransform=function(a,y,x,b,tt,et){a===1&&y===0&&x===0&&b===1&&tt===0&&et===0||$0(this,a,y,x,b,tt,et)};function vv(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}St.scale=function(a,y){this.rb.scale(a,y)},St.translate=function(a,y){this.rb.translate(a,y)},St.transform=function(){},St.yc=function(){},St.stroke=function(){Q0(this,this.Yl)},St.jk=function(){this.clipInsteadOfFill||this.stroke()},St.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},St.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 wh(a,y,x,b){y==="fill"?Nc(a,x):y==="stroke"&&Q0(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function Nc(a,y){a.fillStyle instanceof t0?y.fill=e0(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 V1(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof t0?y.setAttributeNS(null,"fill",e0(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 Q0(a,y){if(a.strokeStyle instanceof t0)y.stroke=e0(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 e0(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"+Tr++,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 tt=y.gx;y=tt.length;for(var et=[],nt=0;nt<y;nt++){var ot=tt[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]),et.push(ot)}for(et.sort(function(ut,ht){return ut.offset>ht.offset?1:-1}),tt=0;tt<y;tt++)x.appendChild(a.Ud("stop",et[tt]));return a.svg.appendChild(x),"url(#"+b+")"}St.addPath=function(a,y,x){for(var b=[],tt=0;tt<a.length;tt++){var et=xi(a[tt]),nt=[et.shift()];if(nt[0]==="A")nt.push(et.shift()+","+et.shift(),et.shift(),et.shift()+","+et.shift(),et.shift()+","+et.shift());else for(;et.length;)nt.push(et.shift()+","+et.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,wh(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 $0(a,y,x,b,tt,et,nt){var ot=new Jf;ot.ha=[y,x,b,tt,et,nt],y={},wh(a,"g",y,ot),ot=a.addElement("g",y),a.nh.push(ot)}function yv(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}St.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function fc(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function Yh(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}St.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},St.fs=function(){this.Ct=!1},St.Vc=function(){},St.Wx=function(){},wl.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},wl.prototype.getImageData=function(){return null},wl.prototype.measureText=function(){return null};function xv(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()))}wl.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},wl.className="SVGContext",dn.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Pc(this,ce.document));var y=new Pc(this,ce.document,!0);a===void 0&&(a=new Kr);var x=this;return Jp(this,function(b,tt){return b=mv(x,b,"SVG",y),b=b!==null?b.svg:null,typeof tt=="function"?(tt(b),null):b},a)},dn.prototype.makeSvg=dn.prototype.Cs,dn.prototype.av=function(a){return this.Cs(a)},dn.prototype.makeSVG=dn.prototype.av;function ec(a,y,x,b){this.ownerDocument=y=y===void 0?ce.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Sh(y,x,b),y.H=a}ec.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},ec.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},ec.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},ec.prototype.focus=function(){this.Oa.focus()},ec.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},ge.Object.defineProperties(ec.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}}}),ec.className="CanvasSurface";function Sh(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&_e("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 Hr,this.isTemporary=!!x}St=Sh.prototype,St.Wx=function(a){this.Z.imageSmoothingEnabled=a},St.arc=function(a,y,x,b,tt,et){this.Z.arc(a,y,x,b,tt,et)},St.beginPath=function(){this.Z.beginPath()},St.Se=function(){},St.bezierCurveTo=function(a,y,x,b,tt,et){this.Z.bezierCurveTo(a,y,x,b,tt,et)},St.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},St.clip=function(){this.Z.clip()},St.closePath=function(){this.Z.closePath()},St.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},St.createPattern=function(a,y){return this.Z.createPattern(a,y)},St.createRadialGradient=function(a,y,x,b,tt,et){return this.Z.createRadialGradient(a,y,x,b,tt,et)},St.drawImage=function(a,y,x,b,tt,et,nt,ot,at){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,tt,et,nt,ot,at)},St.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},St.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},St.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},St.fillText=function(a,y,x){this.Z.fillText(a,y,x)},St.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},St.lineTo=function(a,y){this.Z.lineTo(a,y)},St.measureText=function(a){return this.Z.measureText(a)},St.moveTo=function(a,y){this.Z.moveTo(a,y)},St.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},St.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},St.restore=function(){this.Z.restore()},St.save=function(){this.yc(),this.Z.save()},Sh.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},St=Sh.prototype,St.setTransform=function(a,y,x,b,tt,et){this.El.setTransform(a,y,x,b,tt,et)},St.scale=function(a,y){this.El.scale(a,y)},St.translate=function(a,y){this.El.translate(a,y)},St.stroke=function(){this.Z.stroke()},St.transform=function(a,y,x,b,tt,et){if(a!==1||y!==0||x!==0||b!==1||tt!==0||et!==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*tt+nt.m21*et+nt.dx,nt.dy=nt.m12*tt+nt.m22*et+nt.dy,nt.m11=ot,nt.m12=a,nt.m21=y,nt.m22=x}},St.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},St.ng=function(a,y){if(a instanceof Jo&&a.type===Wu){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)},St.jk=function(){this.Hm||this.stroke()},St.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},St.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},St.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(ug),a.lineDashOffset=0)},St.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},St.Hs=function(){},ge.Object.defineProperties(Sh.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 ug=Object.freeze([]);Sh.className="CanvasSurfaceContext";function n0(){this.F=this.o=this.u=this.j=0}n0.className="ColorNumbers";function Jo(a,y){o0||(Ky(),o0=!0),si(this),this._isFrozen=!1,a===void 0?(this.na=Jh,this.xk="black"):typeof a=="string"?(this.na=Jh,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===Qh?(this.Qd=Qi,this.Lk=mo):this.Lk=a===Wu?this.Qd=yr:this.Qd=Ji,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Jo.prototype.copy=function(){var a=new Jo;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},St=Jo.prototype,St.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},St.ka=function(){return Object.isFrozen(this)&&_e("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},St.qb=function(a){a.classType===Jo&&(this.type=a)},St.toString=function(){var a="Brush(";if(this.type===Jh)a+=this.color;else if(a=this.type===Qh?a+"Linear ":this.type===Wu?a+"Radial ":this.type===tm?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+")"},St.addColorStop=function(a,y){return this._isFrozen&&ri(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Ri(a,"0 <= loc <= 1",Jo,"addColorStop:loc"),this.we===null&&(this.we=new or),this.we.add(a,y),this.na===Jh&&(this.type=Qh),this.xe=null,this},St.Vz=function(a,y){if(this._isFrozen&&ri(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?em:y,this.type===Jh)Xh(this.color),this.color=i0(a,y);else if((this.type===Qh||this.type===Wu)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Xh(x.value),this.addColorStop(x.key,i0(a,y));return this};function cf(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?em:x,Xh(a),i0(y,x)}St.Wy=function(a,y){if(this._isFrozen&&ri(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?em:y,this.type===Jh)Xh(this.color),this.color=i0(-a,y);else if((this.type===Qh||this.type===Wu)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Xh(x.value),this.addColorStop(x.key,i0(-a,y));return this};function U1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?em:x,Xh(a),i0(-y,x)}function bv(a,y,x){Xh(a),a=Ms.j;var b=Ms.u,tt=Ms.o,et=Ms.F;return Xh(y),x===void 0&&(x=.5),"rgba("+Math.round((Ms.j-a)*x+a)+", "+Math.round((Ms.u-b)*x+b)+", "+Math.round((Ms.o-tt)*x+tt)+", "+Math.round((Ms.F-et)*x+et)+")"}St.Gx=function(){if(this.type===Jh)return Qf(this.color);if((this.type===Qh||this.type===Wu)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Wu)return Qf(a.first().value);if(a.get(.5)!==null)return Qf(a.get(.5));if(a.count===2)return a=a.Fa(),Qf(bv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,tt=1,et=1;y.next();){var nt=y.key,ot=Math.abs(.5-y.key);tt>et&&ot<tt?(x=nt,tt=ot):et>=tt&&ot<et&&(b=nt,et=ot)}return x>b&&(et=x,x=b,b=et,et=tt),tt=b-x,Qf(bv(a.get(x),a.get(b),1-et/tt))}return!1};function Qf(a){return a?a instanceof Jo?a.Gx():(Xh(a),128>(299*Ms.j+587*Ms.u+114*Ms.o)/1e3):!1}function i0(a,y){switch(y){case em:y=100*Fy(Ms.j);var x=100*Fy(Ms.u),b=100*Fy(Ms.o);return Rl.j=.4124564*y+.3575761*x+.1804375*b,Rl.u=.2126729*y+.7151522*x+.072175*b,Rl.o=.0193339*y+.119192*x+.9503041*b,Rl.F=Ms.F,y=zy(Rl.j/q0[0]),x=zy(Rl.u/q0[1]),b=zy(Rl.o/q0[2]),Tc.j=116*x-16,Tc.u=500*(y-x),Tc.o=200*(x-b),Tc.F=Rl.F,Tc.j=Math.min(100,Math.max(0,Tc.j+100*a)),a=(Tc.j+16)/116,y=a-Tc.o/200,Rl.j=q0[0]*jy(Tc.u/500+a),Rl.u=q0[1]*(Tc.j>wv*Hy?Math.pow(a,3):Tc.j/wv),Rl.o=q0[2]*jy(y),Rl.F=Tc.F,a=-.969266*Rl.j+1.8760108*Rl.u+.041556*Rl.o,y=.0556434*Rl.j+-.2040259*Rl.u+1.0572252*Rl.o,Ms.j=255*Ry((3.2404542*Rl.j+-1.5371385*Rl.u+-.4985314*Rl.o)/100),Ms.u=255*Ry(a/100),Ms.o=255*Ry(y/100),Ms.F=Rl.F,Ms.j=Math.round(Ms.j),255<Ms.j?Ms.j=255:0>Ms.j&&(Ms.j=0),Ms.u=Math.round(Ms.u),255<Ms.u?Ms.u=255:0>Ms.u&&(Ms.u=0),Ms.o=Math.round(Ms.o),255<Ms.o?Ms.o=255:0>Ms.o&&(Ms.o=0),"rgba("+Ms.j+", "+Ms.u+", "+Ms.o+", "+Ms.F+")";case Z1:return Iy(),Au.o=Math.min(100,Math.max(0,Au.o+100*a)),"hsla("+Au.j+", "+Au.u+"%, "+Au.o+"%, "+Au.F+")";default:_e("Unknown color space: "+y)}}function Xh(a){o0||(Ky(),o0=!0);var y=Sv;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,Ms.j=a[0],Ms.u=a[1],Ms.o=a[2],Ms.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Ms.j=0,Ms.u=0,Ms.o=0,Ms.F=1)}}function Iy(){var a=Ms.j/255,y=Ms.u/255,x=Ms.o/255,b=Math.max(a,y,x),tt=Math.min(a,y,x),et=b-tt;if(tt=(b+tt)/2,et===0)var nt=a=0;else{switch(b){case a:nt=(y-x)/et%6;break;case y:nt=(x-a)/et+2;break;case x:nt=(a-y)/et+4}nt*=60,0>nt&&(nt+=360),a=et/(1-Math.abs(2*tt-1))}Au.j=Math.round(nt),Au.u=Math.round(100*a),Au.o=Math.round(100*tt),Au.F=Ms.F}function Fy(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function Ry(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function zy(a){return a>Hy?Math.pow(a,1/3):(wv*a+16)/116}function jy(a){var y=a*a*a;return y>Hy?y:(116*a-16)/wv}function r0(a,y){typeof a!="string"&&(a instanceof Jo||_e("Value for "+y+" must be a color string or a Brush, not "+a))}function Ky(){Sv=ts?new ec(null,void 0,{willReadFrequently:!0}).context:null}ge.Object.defineProperties(Jo.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&ri(this,a),this.na=a,this.start.Mc()&&(a===Qh?this.start=Qi:a===Wu&&(this.start=yr)),this.end.Mc()&&(a===Qh?this.end=mo:a===Wu&&(this.end=yr)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&ri(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&ri(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&ri(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&ri(this,a),0>a&&Ri(a,">= zero",Jo,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&ri(this,a),0>a&&Ri(a,">= zero",Jo,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&ri(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&ri(this,a),this.cr=a,this.xe=null}}}),Jo.prototype.isDark=Jo.prototype.Gx,Jo.prototype.darkenBy=Jo.prototype.Wy,Jo.prototype.lightenBy=Jo.prototype.Vz,Jo.prototype.addColorStop=Jo.prototype.addColorStop;var Hy=216/24389,wv=24389/27,q0=[95.047,100,108.883],Sv=null,Ms=new n0,Au=new n0,Rl=new n0,Tc=new n0,o0=!1;Jo.className="Brush";var Jh;Jo.Solid=Jh=new ui(Jo,"Solid",0);var Qh;Jo.Linear=Qh=new ui(Jo,"Linear",1);var Wu;Jo.Radial=Wu=new ui(Jo,"Radial",2);var tm;Jo.Pattern=tm=new ui(Jo,"Pattern",4);var em;Jo.Lab=em=new ui(Jo,"Lab",5);var Z1;Jo.HSL=Z1=new ui(Jo,"HSL",6),Jo.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},Jo.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;o0||(Ky(),o0=!0);var y=Sv;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)},Jo.lighten=function(a){return cf(a)},Jo.lightenBy=cf,Jo.darken=function(a){return U1(a)},Jo.darkenBy=U1,Jo.mix=bv,Jo.isDark=Qf;function Sa(){this.xa="Base"}Sa.prototype.measure=function(){},Sa.prototype.Yz=function(a,y,x,b,tt){a.measure(y,x,b,tt)},Sa.prototype.arrange=function(){},Sa.prototype.Ly=function(a,y,x,b,tt,et){a.arrange(y,x,b,tt,et)},Sa.prototype.iA=function(a){a.Uj()},Sa.prototype.gc=function(){},ge.Object.defineProperties(Sa.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Di}}}),Sa.prototype.remeasureObject=Sa.prototype.iA,Sa.prototype.arrangeElement=Sa.prototype.Ly,Sa.prototype.measureElement=Sa.prototype.Yz,Sa.className="PanelLayout";function Cv(){this.xa="Base"}Nn(Cv,Sa),Cv.prototype.measure=function(a,y,x,b,tt,et,nt){var ot=b.length;a=Dc(a);for(var at=0;at<ot;at++){var ut=b[at];if(ut.visible||ut===a){var ht=ut.margin,gt=ht.right+ht.left;ht=ht.top+ht.bottom,ut.measure(y,x,et,nt);var bt=ut.measuredBounds;gt=Math.max(bt.width+gt,0),ht=Math.max(bt.height+ht,0),bt=ut.position.x;var Mt=ut.position.y;isFinite(bt)||(bt=0),isFinite(Mt)||(Mt=0),ut instanceof lo&&ut.isGeometryPositioned&&(ut=ut.strokeWidth/2,bt-=ut,Mt-=ut),Je(tt,bt,Mt,gt,ht)}}},Cv.prototype.arrange=function(a,y,x){var b=y.length,tt=a.padding;for(a=x.x-tt.left,x=x.y-tt.top,tt=0;tt<b;tt++){var et=y[tt],nt=et.measuredBounds,ot=et.margin,at=et.position.x,ut=et.position.y;if(at=isNaN(at)?-a:at-a,ut=isNaN(ut)?-x:ut-x,et instanceof lo&&et.isGeometryPositioned){var ht=et.strokeWidth/2;at-=ht,ut-=ht}et.visible&&et.arrange(at+ot.left,ut+ot.top,nt.width,nt.height)}};function Mv(){this.xa="Base"}Nn(Mv,Sa),Mv.prototype.measure=function(a,y,x,b,tt,et,nt){var ot=b.length;y=Xn(),et=Dc(a);for(var at=0;at<ot;at++){var ut=b[at];if(ut.visible||ut===et){var ht=Fl(ut,!1);if(ht!==Si&&ht!==Er)y.push(ut);else{ut.measure(1/0,x,0,nt),ht=ut.margin,ut=ut.measuredBounds;var gt=Math.max(ut.height+ht.top+ht.bottom,0);tt.width+=Math.max(ut.width+ht.right+ht.left,0),tt.height=Math.max(tt.height,gt)}}}for(b=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):tt.height!==0&&(x=Math.min(tt.height,a.maxSize.height)),a=0;a<b;a++)at=y[a],(at.visible||at===et)&&(ht=at.margin,ot=ht.right+ht.left,ht=ht.top+ht.bottom,at.measure(1/0,x,0,nt),at=at.measuredBounds,ht=Math.max(at.height+ht,0),tt.width+=Math.max(at.width+ot,0),tt.height=Math.max(tt.height,ht));qn(y)},Mv.prototype.arrange=function(a,y,x){for(var b=y.length,tt=a.padding,et=tt.top,nt=a.isOpposite,ot=nt?x.width:tt.left,at=0;at<b;at++){var ut=et,ht=y[at];if(ht.visible){var gt=ht.measuredBounds,bt=ht.margin,Mt=bt.top+bt.bottom,Et=et+tt.bottom,Bt=gt.height,se=Fl(ht,!1);(isNaN(ht.desiredSize.height)&&se===Li||se===Rr)&&(Bt=Math.max(x.height-Mt-Et,0)),Mt=Bt+Mt+Et,Et=ht.alignment,Et.Xb()&&(Et=a.defaultAlignment),Et.sb()||(Et=yr),nt&&(ot-=gt.width+bt.left+bt.right),ht.arrange(ot+Et.offsetX+bt.left,ut+Et.offsetY+bt.top+(x.height*Et.y-Mt*Et.y),gt.width,Bt),nt||(ot+=gt.width+bt.left+bt.right)}}};function Ev(){this.xa="Base"}Nn(Ev,Sa),Ev.prototype.measure=function(a,y,x,b,tt,et){var nt=b.length;x=Xn();for(var ot=Dc(a),at=0;at<nt;at++){var ut=b[at];if(ut.visible||ut===ot){var ht=Fl(ut,!1);if(ht!==Si&&ht!==Rr)x.push(ut);else{var gt=ut.margin;ht=gt.right+gt.left,gt=gt.top+gt.bottom,ut.measure(y,1/0,et,0),ut=ut.measuredBounds,ve(tt,Math.max(tt.width,Math.max(ut.width+ht,0)),tt.height+Math.max(ut.height+gt,0))}}}if(b=x.length,b!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):tt.width!==0&&(y=Math.min(tt.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,et,0),at=at.measuredBounds,ut=Math.max(at.height+ut,0),tt.width=Math.max(tt.width,Math.max(at.width+nt,0)),tt.height+=ut);qn(x)}},Ev.prototype.arrange=function(a,y,x){for(var b=y.length,tt=a.padding,et=tt.left,nt=a.isOpposite,ot=nt?x.height:tt.top,at=0;at<b;at++){var ut=et,ht=y[at];if(ht.visible){var gt=ht.measuredBounds,bt=ht.margin,Mt=bt.left+bt.right,Et=et+tt.right,Bt=gt.width,se=Fl(ht,!1);(isNaN(ht.desiredSize.width)&&se===Li||se===Er)&&(Bt=Math.max(x.width-Mt-Et,0)),Mt=Bt+Mt+Et,Et=ht.alignment,Et.Xb()&&(Et=a.defaultAlignment),Et.sb()||(Et=yr),nt&&(ot-=gt.height+bt.bottom+bt.top),ht.arrange(ut+Et.offsetX+bt.left+(x.width*Et.x-Mt*Et.x),ot+Et.offsetY+bt.top,Bt,gt.height),nt||(ot+=gt.height+bt.bottom+bt.top)}}};function cg(){this.xa="Base"}Nn(cg,Sa),cg.prototype.measure=function(a,y,x,b,tt,et,nt){var ot=b.length,at=a.Pb(),ut=at.margin,ht=ut.right+ut.left,gt=ut.top+ut.bottom;at.measure(y,x,et,nt);var bt=at.measuredBounds;et=bt.width,nt=bt.height;var Mt=Math.max(et+ht,0),Et=Math.max(nt+gt,0),Bt=a.isClipping,se=je.allocAt(-ut.left,-ut.top,Mt,Et),Jt=je.allocAt(0,0,et,nt);$f(at,Jt,!0),et=Jt.width,nt=Jt.height;for(var me=!0,Se=Dc(a),Le=0;Le<ot;Le++){var Ve=b[Le];bt=y;var fn=x;if(Ve!==at&&(Ve.visible||Ve===Se)){ut=Ve.margin;var nr=ut.left,mr=ut.top;switch(Mt=ut.right+ut.left,Et=ut.top+ut.bottom,ut=Fl(Ve,!1),ut){case Li:bt=et,fn=nt,mr=nr=Et=Mt=0;break;case Er:bt=et,nr=Mt=0;break;case Rr:fn=nt,mr=Et=0}Ve.measure(bt,fn,0,0),bt=Ve.measuredBounds,Mt=Math.max(bt.width+Mt,0),Et=Math.max(bt.height+Et,0),ut=Ve.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=yr);var dr=Ve.alignmentFocus;if(dr.Xb()&&(dr=yr),fn=null,Ve instanceof Di&&Ve.$e!==""&&(fn=Ve.fb(Ve.$e),fn===Ve&&(fn=null)),nr=Jt.x-nr,mr=Jt.y-mr,fn!==null){for(Ve.arrange(0,0,bt.width,bt.height),bt=fn.actualBounds,bt=Gt.allocAt(bt.x+(dr.x*bt.width-dr.offsetX),bt.y+(dr.y*bt.height-dr.offsetY)),fn=fn.panel;fn!==Ve;)fn.transform.Ga(bt),fn=fn.panel;nr+=ut.x*et+ut.offsetX-bt.x,mr+=ut.y*nt+ut.offsetY-bt.y,Gt.free(bt)}else nr+=ut.x*et+ut.offsetX-(dr.x*bt.width+dr.offsetX),mr+=ut.y*nt+ut.offsetY-(dr.y*bt.height+dr.offsetY);me?(me=!1,tt.h(nr,mr,Mt,Et)):Je(tt,nr,mr,Mt,Et)}}switch(me?tt.assign(se):Bt?tt.Uu(Jt.x,Jt.y,Jt.width,Jt.height):Je(tt,se.x,se.y,se.width,se.height),je.free(se),je.free(Jt),ut=at.stretch,ut===io&&(ut=Fl(at,!1)),ut){case Si:return;case Li:if(!isFinite(y)&&!isFinite(x))return;break;case Er:if(!isFinite(y))return;break;case Rr:if(!isFinite(x))return}for(bt=at.measuredBounds,et=bt.width,nt=bt.height,Mt=Math.max(et+ht,0),Et=Math.max(nt+gt,0),ut=at.margin,Jt=je.allocAt(-ut.left,-ut.top,Mt,Et),$f(at,Jt,!0),et=Jt.width,nt=Jt.height,y=0;y<ot;y++)x=b[y],x===at||!x.visible&&x!==Se||(ut=x.margin,Mt=ut.right+ut.left,Et=ut.top+ut.bottom,bt=x.measuredBounds,Mt=Math.max(bt.width+Mt,0),Et=Math.max(bt.height+Et,0),ht=x.alignment,ht.Xb()&&(ht=a.defaultAlignment),ht.sb()||(ht=yr),x=x.alignmentFocus,x.Xb()&&(x=yr),me?(me=!1,tt.h(ht.x*et+ht.offsetX-(x.x*bt.width+x.offsetX)-ut.left,ht.y*nt+ht.offsetY-(x.y*bt.height+x.offsetY)-ut.top,Mt,Et)):Je(tt,ht.x*et+ht.offsetX-(x.x*bt.width+x.offsetX)-ut.left,ht.y*nt+ht.offsetY-(x.y*bt.height+x.offsetY)-ut.top,Mt,Et));me?tt.assign(se):Bt?tt.Uu(Jt.x,Jt.y,Jt.width,Jt.height):Je(tt,se.x,se.y,se.width,se.height),je.free(Jt)},cg.prototype.arrange=function(a,y,x){var b=y.length,tt=a.Pb(),et=tt.measuredBounds,nt=et.width,ot=et.height,at=a.padding;et=at.left,at=at.top;var ut=et-x.x,ht=at-x.y;for(tt.arrange(ut,ht,nt,ot),nt=je.allocAt(0,0,nt,ot),$f(tt,nt,!1),ot=0;ot<b;ot++){var gt=y[ot];if(gt!==tt){ut=gt.measuredBounds;var bt=ut.width,Mt=ut.height;ht=gt.alignment,ht.Xb()&&(ht=a.defaultAlignment),ht.sb()||(ht=yr);var Et=gt.alignmentFocus;if(Et.Xb()&&(Et=yr),ut=null,gt instanceof Di&>.$e!==""&&(ut=gt.fb(gt.$e),ut===gt&&(ut=null)),ut!==null){var Bt=ut.actualBounds;for(Et=Gt.allocAt(Bt.x+(Et.x*Bt.width-Et.offsetX),Bt.y+(Et.y*Bt.height-Et.offsetY)),ut=ut.panel;ut!==gt;)ut.transform.Ga(Et),ut=ut.panel;ut=ht.x*nt.width+ht.offsetX-Et.x,ht=ht.y*nt.height+ht.offsetY-Et.y,Gt.free(Et)}else ut=ht.x*nt.width+ht.offsetX-(Et.x*bt+Et.offsetX),ht=ht.y*nt.height+ht.offsetY-(Et.y*Mt+Et.offsetY);ut+=nt.x-x.x,ht+=nt.y-x.y,gt.visible&>.arrange(et+ut,at+ht,bt,Mt)}}je.free(nt)};function $f(a,y,x){var b=null;if(a instanceof Di&&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 kv(){this.xa="Base"}Nn(kv,Sa),kv.prototype.measure=function(a,y,x,b,tt,et,nt){var ot=b.length,at=a.Pb(),ut=at.margin,ht=y,gt=x,bt=ut.right+ut.left,Mt=ut.top+ut.bottom;at.measure(y,x,et,nt),ut=at.measuredBounds;var Et=0,Bt=null;at instanceof lo&&(Bt=at,Et=Bt.strokeWidth*Bt.scale);var se=Math.max(ut.width+bt,0);ut=Math.max(ut.height+Mt,0);var Jt=Vy(at),me=Jt.x*se+Jt.offsetX;Jt=Jt.y*ut+Jt.offsetY;var Se=Uy(at),Le=Se.x*se+Se.offsetX;for(Se=Se.y*ut+Se.offsetY,isFinite(y)&&(ht=Math.max(Math.abs(me-Le)-Et,0)),isFinite(x)&&(gt=Math.max(Math.abs(Jt-Se)-Et,0)),Et=An.alloc(),Et.h(0,0),a=Dc(a),Se=0;Se<ot;Se++)Jt=b[Se],Jt===at||!Jt.visible&&Jt!==a||(ut=Jt.margin,se=ut.right+ut.left,me=ut.top+ut.bottom,Jt.measure(ht,gt,0,0),ut=Jt.measuredBounds,se=Math.max(ut.width+se,0),ut=Math.max(ut.height+me,0),Et.h(Math.max(se,Et.width),Math.max(ut,Et.height)));if(ot===1)tt.width=se,tt.height=ut,An.free(Et);else{switch(Jt=Vy(at),Se=Uy(at),ot=b=0,Se.x!==Jt.x&&Se.y!==Jt.y&&(b=Et.width/Math.abs(Se.x-Jt.x),ot=Et.height/Math.abs(Se.y-Jt.y)),An.free(Et),Et=0,Bt!==null&&(Et=Bt.strokeWidth*Bt.scale,sm(Bt)===xr&&(b=ot=Math.max(b,ot))),b+=Math.abs(Jt.offsetX)+Math.abs(Se.offsetX)+Et,ot+=Math.abs(Jt.offsetY)+Math.abs(Se.offsetY)+Et,Bt=at.stretch,Bt===io&&(Bt=Fl(at,!1)),Bt){case Si:nt=et=0;break;case Li:isFinite(y)&&(b=y),isFinite(x)&&(ot=x);break;case Er:isFinite(y)&&(b=y),nt=0;break;case Rr:et=0,isFinite(x)&&(ot=x)}at.Uj(),at.measure(b,ot,et,nt),tt.width=at.measuredBounds.width+bt,tt.height=at.measuredBounds.height+Mt}},kv.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),tt=b.measuredBounds,et=je.alloc();et.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,tt.width,tt.height);var ht=Vy(b),gt=Uy(b),bt=ht.y*tt.height+ht.offsetY,Mt=gt.x*tt.width+gt.offsetX;for(gt=gt.y*tt.height+gt.offsetY,et.x=ht.x*tt.width+ht.offsetX,et.y=bt,Je(et,Mt,gt,0,0),et.x+=ot+ut,et.y+=nt+at,tt=0;tt<x;tt++)ot=y[tt],ot!==b&&(ut=ot.measuredBounds,nt=ot.margin,at=Math.max(ut.width+nt.right+nt.left,0),ht=Math.max(ut.height+nt.top+nt.bottom,0),bt=ot.alignment,bt.Xb()&&(bt=a.defaultAlignment),bt.sb()||(bt=yr),at=et.width*bt.x+bt.offsetX-at*bt.x+nt.left+et.x,nt=et.height*bt.y+bt.offsetY-ht*bt.y+nt.top+et.y,ot.visible&&(sn(et.x,et.y,et.width,et.height,at,nt,ut.width,ut.height)?ot.arrange(at,nt,ut.width,ut.height):ot.arrange(at,nt,ut.width,ut.height,new je(et.x,et.y,et.width,et.height))));je.free(et)};function qf(){this.xa="Base",this.name="Table"}Nn(qf,Sa),qf.prototype.measure=function(a,y,x,b,tt){for(var et=b.length,nt=Xn(),ot=Xn(),at=0;at<et;at++){var ut=b[at],ht=ut instanceof Di?ut:null;if(ht!==null&&kd(ht)&&ut.visible){ot.push(ht);for(var gt=ht.O.s,bt=gt.length,Mt=0;Mt<bt;Mt++){var Et=gt[Mt];ht.type===Di.TableRow?Et.row=ut.row:ht.type===Di.TableColumn&&(Et.column=ut.column),nt.push(Et)}}else nt.push(ut)}et=nt.length,et===0&&(a.Fb(0),a.Eb(0));for(var Bt=[],se=0;se<et;se++){var Jt=nt[se];Jt.visible&&(ta(Jt,!0),ll(Jt,!0),Bt[Jt.row]||(Bt[Jt.row]=[]),Bt[Jt.row][Jt.column]||(Bt[Jt.row][Jt.column]=[]),Bt[Jt.row][Jt.column].push(Jt))}qn(nt);var me=Xn(),Se=Xn(),Le=Xn(),Ve={count:0},fn={count:0},nr=y,mr=x,dr=a.rowDefs,Hi=a.colDefs,vi=null;et=dr.length;for(var ro=0;ro<et;ro++)vi=dr[ro],vi!==void 0&&(vi.actual=0);et=Hi.length;for(var Ur=0;Ur<et;Ur++)vi=Hi[Ur],vi!==void 0&&(vi.actual=0);for(var qo=Bt.length,Es=0,Ja=0;Ja<qo;Ja++)Bt[Ja]&&(Es=Math.max(Es,Bt[Ja].length));var ol=Math.min(a.topIndex,qo-1),Xl=Math.min(a.leftIndex,Es-1),Qa=0;qo=Bt.length;for(var Cp=Dc(a),ga=0;ga<qo;ga++)if(Bt[ga]){Es=Bt[ga].length;var Nh=a.Fb(ga);Nh.actual=0;for(var Jl=Nh.oc=0;Jl<Es;Jl++)if(Bt[ga][Jl]){var Mp=a.Eb(Jl);me[Jl]===void 0&&(Mp.actual=0,Mp.oc=0,me[Jl]=!0);for(var oc=Bt[ga][Jl],zc=oc.length,Xu=0;Xu<zc;Xu++){var Du=oc[Xu];if(Du.visible||Du===Cp){var L0=1<Du.rowSpan||1<Du.columnSpan;L0&&(ga<ol||Jl<Xl||Se.push(Du));var Th=Du.margin,Sy=Th.right+Th.left,Ju=Th.top+Th.bottom,Ql=iu(Du,Nh,Mp,!1),I1=Du.desiredSize,ev=!isNaN(I1.height),od=!isNaN(I1.width)&&ev;if(L0||Ql===Si||od||ga<ol||Jl<Xl||(Ve[Jl]!==void 0||Ql!==Li&&Ql!==Er||(Ve[Jl]=-1,Ve.count++),fn[ga]!==void 0||Ql!==Li&&Ql!==Rr||(fn[ga]=-1,fn.count++),Le.push(Du)),Du.measure(1/0,1/0,0,0),!(ga<ol||Jl<Xl)){var Ou=Du.measuredBounds,Im=Math.max(Ou.width+Sy,0),Qu=Math.max(Ou.height+Ju,0);if(Du.rowSpan===1&&(Ql===Si||Ql===Er)){vi=a.Fb(ga);var P0=vi.Wc();Qa=Math.max(Qu-vi.actual,0),Qa+P0>mr&&(Qa=Math.max(mr-P0,0));var Yx=vi.oa===0;vi.oc=vi.oc+Qa,vi.actual=vi.oa+Qa,mr=Math.max(mr-(Qa+(Yx?P0:0)),0)}if(Du.columnSpan===1&&(Ql===Si||Ql===Rr)){vi=a.Eb(Jl);var F1=vi.Wc();Qa=Math.max(Im-vi.actual,0),Qa+F1>nr&&(Qa=Math.max(nr-F1,0));var g2=vi.oa===0;vi.oc=vi.oc+Qa,vi.actual=vi.oa+Qa,nr=Math.max(nr-(Qa+(g2?F1:0)),0)}L0&&Du.Uj()}}}}}qn(me);var jd=0,kf=0;et=a.columnCount;for(var nv=0;nv<et;nv++){var N0=Hi[nv];N0!==void 0&&(jd+=isNaN(N0.Hc)?N0.oc:N0.Hc,N0.oc!==0&&(jd+=N0.Wc()))}et=a.rowCount;for(var Cy=0;Cy<et;Cy++){var T0=dr[Cy];T0!==void 0&&(kf+=isNaN(T0.Hc)?T0.oc:T0.Hc,T0.oc!==0&&(kf+=T0.Wc()))}nr=Math.max(y-jd,0);var Kd=mr=Math.max(x-kf,0),Ep=nr;et=Le.length;for(var Bu=0;Bu<et;Bu++){var sd=Le[Bu],Xx=a.Fb(sd.row),Af=a.Eb(sd.column),My=sd.measuredBounds,Dh=sd.margin,Fm=Dh.right+Dh.left,ad=Dh.top+Dh.bottom;Ve[sd.column]=Af.oc===0&&Ve[sd.column]!==void 0?Math.max(My.width+Fm,Ve[sd.column]):null,fn[sd.row]=Xx.oc===0&&fn[sd.row]!==void 0?Math.max(My.height+ad,fn[sd.row]):null}var iv=0,Ey=0,oh;for(oh in fn)oh!=="count"&&(iv+=fn[oh]);for(oh in Ve)oh!=="count"&&(Ey+=Ve[oh]);for(var dl=An.alloc(),R1=0;R1<et;R1++){var uu=Le[R1];if(uu.visible||uu===Cp){var va=a.Fb(uu.row),cu=a.Eb(uu.column),Lf=0;isFinite(cu.width)?Lf=cu.width:(isFinite(nr)&&Ve[uu.column]!==null?Ey===0?Lf=cu.actual+nr:Lf=Ve[uu.column]/Ey*Ep:Ve[uu.column]!==null?Lf=nr:Lf=cu.actual||nr,Lf=Math.max(0,Lf-cu.Wc()));var kp=0;switch(isFinite(va.height)?kp=va.height:(isFinite(mr)&&fn[uu.row]!==null?iv===0?kp=va.actual+mr:kp=fn[uu.row]/iv*Kd:fn[uu.row]!==null?kp=mr:kp=va.actual||mr,kp=Math.max(0,kp-va.Wc())),dl.h(Math.max(cu.minimum,Math.min(Lf,cu.maximum)),Math.max(va.minimum,Math.min(kp,va.maximum))),Ql=iu(uu,va,cu,!1),Ql){case Er:dl.height=Math.max(dl.height,va.actual+mr);break;case Rr:dl.width=Math.max(dl.width,cu.actual+nr)}var Rm=uu.margin,v2=Rm.right+Rm.left,Jx=Rm.top+Rm.bottom;uu.Uj(),uu.measure(dl.width,dl.height,cu.minimum,va.minimum);var ky=uu.measuredBounds,zm=Math.max(ky.width+v2,0),rv=Math.max(ky.height+Jx,0);isFinite(nr)&&(zm=Math.min(zm,dl.width)),isFinite(mr)&&(rv=Math.min(rv,dl.height));var Iu=0;Iu=va.actual,va.actual=Math.max(va.actual,rv),va.oc=Math.max(va.oc,rv),Qa=va.actual-Iu,mr=Math.max(mr-Qa,0),fn[uu.row]===null&&(Kd=Math.max(Kd-Qa,0)),Iu=cu.actual,cu.actual=Math.max(cu.actual,zm),cu.oc=Math.max(cu.oc,zm),Qa=cu.actual-Iu,nr=Math.max(nr-Qa,0),Ve[uu.column]===null&&(Ep=Math.max(Ep-Qa,0))}}qn(Le);var Pf=An.alloc(),Oh=Xn(),Cc=Xn();if(et=Se.length,et!==0){for(var D0=0;D0<qo;D0++)if(Bt[D0]){Es=Bt[D0].length;var Ay=a.Fb(D0);Oh[D0]=Ay.actual;for(var O0=0;O0<Es;O0++)if(Bt[D0][O0]){var Qx=a.Eb(O0);Cc[O0]=Qx.actual}}}for(var Ly=0;Ly<et;Ly++){var la=Se[Ly];if(la.visible||la===Cp){var sh=a.Fb(la.row),jc=a.Eb(la.column);switch(dl.h(Math.max(jc.minimum,Math.min(y,jc.maximum)),Math.max(sh.minimum,Math.min(x,sh.maximum))),Ql=iu(la,sh,jc,!1),Ql){case Li:Cc[jc.index]!==0&&(dl.width=Math.min(dl.width,Cc[jc.index])),Oh[sh.index]!==0&&(dl.height=Math.min(dl.height,Oh[sh.index]));break;case Er:Cc[jc.index]!==0&&(dl.width=Math.min(dl.width,Cc[jc.index]));break;case Rr:Oh[sh.index]!==0&&(dl.height=Math.min(dl.height,Oh[sh.index]))}isFinite(jc.width)&&(dl.width=jc.width),isFinite(sh.height)&&(dl.height=sh.height),Pf.h(0,0);for(var $x=jc.minimum,$u=sh.minimum,Ap=1;Ap<la.rowSpan&&!(la.row+Ap>=a.rowCount);Ap++)vi=a.Fb(la.row+Ap),Qa=0,Qa=Ql===Li||Ql===Rr?Math.max(vi.minimum,Oh[la.row+Ap]===0?vi.maximum:Math.min(Oh[la.row+Ap],vi.maximum)):Math.max(vi.minimum,isNaN(vi.Hc)?vi.maximum:Math.min(vi.Hc,vi.maximum)),Pf.height+=Qa,$u+=vi.minimum;for(var Kc=1;Kc<la.columnSpan&&!(la.column+Kc>=a.columnCount);Kc++)vi=a.Eb(la.column+Kc),Qa=0,Qa=Ql===Li||Ql===Er?Math.max(vi.minimum,Cc[la.column+Kc]===0?vi.maximum:Math.min(Cc[la.column+Kc],vi.maximum)):Math.max(vi.minimum,isNaN(vi.Hc)?vi.maximum:Math.min(vi.Hc,vi.maximum)),Pf.width+=Qa,$x+=vi.minimum;dl.width+=Pf.width,dl.height+=Pf.height;var Py=la.margin,B0=Py.right+Py.left,z1=Py.top+Py.bottom;la.measure(dl.width,dl.height,$x,$u);for(var Ny=la.measuredBounds,ld=Math.max(Ny.width+B0,0),jm=Math.max(Ny.height+z1,0),I0=0,Ty=0;Ty<la.rowSpan&&!(la.row+Ty>=a.rowCount);Ty++)vi=a.Fb(la.row+Ty),I0+=vi.total||0;if(I0<jm){var Lp=jm-I0,Hd=jm-I0;if(la.spanAllocation!==null)for(var Pp=la.spanAllocation,Nf=0;Nf<la.rowSpan&&!(0>=Lp)&&!(la.row+Nf>=a.rowCount);Nf++){vi=a.Fb(la.row+Nf);var Np=vi.oa||0,Km=Pp(la,vi,Hd);vi.actual=Math.min(vi.maximum,Np+Km),vi.oa!==Np&&(Lp-=vi.oa-Np)}for(;0<Lp;){var Bh=vi.oa||0;if(isNaN(vi.height)&&vi.maximum>Bh&&(vi.actual=Math.min(vi.maximum,Bh+Lp),vi.oa!==Bh&&(Lp-=vi.oa-Bh)),vi.index===0)break;vi=a.Fb(vi.index-1)}}for(var ov=0,Tp=0;Tp<la.columnSpan&&!(la.column+Tp>=a.columnCount);Tp++)vi=a.Eb(la.column+Tp),ov+=vi.total||0;if(ov<ld){var sv=ld-ov,y2=ld-ov;if(la.spanAllocation!==null)for(var Tf=la.spanAllocation,Hm=0;Hm<la.columnSpan&&!(0>=sv)&&!(la.column+Hm>=a.columnCount);Hm++){vi=a.Eb(la.column+Hm);var j1=vi.oa||0,x2=Tf(la,vi,y2);vi.actual=Math.min(vi.maximum,j1+x2),vi.oa!==j1&&(sv-=vi.oa-j1)}for(;0<sv;){var qx=vi.oa||0;if(isNaN(vi.width)&&vi.maximum>qx&&(vi.actual=Math.min(vi.maximum,qx+sv),vi.oa!==qx&&(sv-=vi.oa-qx)),vi.index===0)break;vi=a.Eb(vi.index-1)}}}}qn(Se),An.free(Pf),An.free(dl),Oh!==void 0&&qn(Oh),Cc!==void 0&&qn(Cc);var av=0,lv=0,Sb=a.desiredSize,I2=a.maxSize;Ql=Fl(a,!0);var K1=kf=jd=0,H1=0;et=a.columnCount;for(var Mb=0;Mb<et;Mb++)Hi[Mb]!==void 0&&(vi=a.Eb(Mb),isFinite(vi.width)?(K1+=vi.width,K1+=vi.Wc()):yg(vi)===l0?(K1+=vi.oa,K1+=vi.Wc()):vi.oa!==0&&(jd+=vi.oa,jd+=vi.Wc()));isFinite(Sb.width)?av=Math.min(Sb.width,I2.width):av=Ql!==Si&&isFinite(y)?y:jd,av=Math.max(av,a.minSize.width),av=Math.max(av-K1,0);for(var Mw=jd===0?1:Math.max(av/jd,1),Lb=0;Lb<et;Lb++)Hi[Lb]!==void 0&&(vi=a.Eb(Lb),isFinite(vi.width)||yg(vi)===l0||(vi.actual=vi.oa*Mw),vi.position=tt.width,vi.oa!==0&&(tt.width+=vi.oa,tt.width+=vi.Wc()));et=a.rowCount;for(var Pb=0;Pb<et;Pb++)dr[Pb]!==void 0&&(vi=a.Fb(Pb),isFinite(vi.height)?(H1+=vi.height,H1+=vi.Wc()):yg(vi)===l0?(H1+=vi.oa,H1+=vi.Wc()):vi.oa!==0&&(kf+=vi.oa,kf+=vi.Wc()));isFinite(Sb.height)?lv=Math.min(Sb.height,I2.height):lv=Ql!==Si&&isFinite(x)?x:kf,lv=Math.max(lv,a.minSize.height),lv=Math.max(lv-H1,0);for(var Ew=kf===0?1:Math.max(lv/kf,1),Nb=0;Nb<et;Nb++)dr[Nb]!==void 0&&(vi=a.Fb(Nb),isFinite(vi.height)||yg(vi)===l0||(vi.actual=vi.oa*Ew),vi.position=tt.height,vi.oa!==0&&(tt.height+=vi.oa,tt.height+=vi.Wc()));et=ot.length;for(var b2=0;b2<et;b2++){var _1=ot[b2],w2=0,S2=0;_1.type===Di.TableRow?(w2=tt.width,vi=a.Fb(_1.row),S2=vi.actual):(vi=a.Eb(_1.column),w2=vi.actual,S2=tt.height),_1.measuredBounds.h(0,0,w2,S2),ta(_1,!1)}qn(ot),a.inRowsCols=Bt},qf.prototype.arrange=function(a,y,x){var b=y.length,tt=a.padding,et=tt.left;tt=tt.top;var nt=a.inRowsCols;if(nt!==null){for(var ot,at,ut=nt.length,ht=0,gt=0;gt<ut;gt++)nt[gt]&&(ht=Math.max(ht,nt[gt].length));at=a.rowDefs,ot=a.colDefs;var bt=gt=0,Mt=Math.min(a.topIndex,ut-1);if(0<at.length){for(;Mt!==ut&&(at[Mt]===void 0||at[Mt].oa===0);)Mt++;Mt=Math.max(Math.min(Mt,ut-1),0),gt=-at[Mt].position}var Et=Math.min(a.leftIndex,ht-1);if(0<ot.length){for(;Et!==ht&&(ot[Et]===void 0||ot[Et].oa===0);)Et++;Et=Math.max(Math.min(Et,ht-1),0),bt=-ot[Et].position}for(var Bt=0,se=0;Bt!==ut&&at[Bt]===void 0;)Bt++;for(;se!==ut&&ot[se]===void 0;)se++;ht=a.part,a.Fb(Bt),a.Eb(se);for(var Jt=0;Jt<y.length;Jt++){var me=y[Jt];if(me instanceof Di&&me.visible&&kd(me)){if(me.type===Di.TableRow){ot=a.Fb(me.row);var Se=a.Eb(se)}else ot=a.Fb(Bt),Se=a.Eb(me.column);at=ot.position+gt+tt,ot.oa!==0&&(at+=ot.Io(Math.max(Bt,Mt))),ot=Se.position+bt+et,Se.oa!==0&&(ot+=Se.Io(Math.max(se,Et))),Se=me.measuredBounds,me.Uk(),me.actualBounds.ka();var Le=me.actualBounds,Ve=je.allocAt(Le.x,Le.y,Le.width,Le.height);Le.x=me.type===Di.TableRow?et:ot,Le.y=me.type===Di.TableColumn?tt:at,Le.width=Se.width,Le.height=Se.height,me.actualBounds.freeze(),ll(me,!1),cn(Ve,Le)||ht===null||(ht.oh(),me.Pn(ht)),je.free(Ve)}}for(Jt=An.alloc(),me=0;me<ut;me++)if(nt[me]){for(ht=nt[me].length,Se=a.Fb(me),at=Se.position+gt+tt,Se.oa!==0&&(at+=Se.Io(Math.max(Bt,Mt))),Le=0;Le<ht;Le++)if(nt[me][Le]){Ve=a.Eb(Le),ot=Ve.position+bt+et,Ve.oa!==0&&(ot+=Ve.Io(Math.max(se,Et)));for(var fn=nt[me][Le],nr=fn.length,mr=0;mr<nr;mr++){var dr=fn[mr],Hi=dr.measuredBounds;Jt.h(0,0);for(var vi=1;vi<dr.rowSpan&&!(me+vi>=a.rowCount);vi++){var ro=a.Fb(me+vi);ro.oa!==0&&(Jt.height+=ro.total)}for(vi=1;vi<dr.columnSpan&&!(Le+vi>=a.columnCount);vi++)ro=a.Eb(Le+vi),ro.oa!==0&&(Jt.width+=ro.total);var Ur=Ve.oa+Jt.width,qo=Se.oa+Jt.height;vi=ot,ro=at;var Es=Ur,Ja=qo,ol=ot,Xl=at,Qa=Ur,Cp=qo;ot+Ur>x.width&&(Qa=Math.max(x.width-ot,0)),at+qo>x.height&&(Cp=Math.max(x.height-at,0));var ga=dr.alignment;if(ga.Xb()){ga=a.defaultAlignment,ga.sb()||(ga=yr);var Nh=ga.x,Jl=ga.y,Mp=ga.offsetX;ga=ga.offsetY;var oc=Ve.alignment,zc=Se.alignment;oc.sb()&&(Nh=oc.x,Mp=oc.offsetX),zc.sb()&&(Jl=zc.y,ga=zc.offsetY)}else Nh=ga.x,Jl=ga.y,Mp=ga.offsetX,ga=ga.offsetY;(isNaN(Nh)||isNaN(Jl))&&(Jl=Nh=.5,ga=Mp=0),oc=Hi.width,zc=Hi.height;var Xu=dr.margin,Du=Xu.left+Xu.right,L0=Xu.top+Xu.bottom,Th=iu(dr,Se,Ve,!1);!isNaN(dr.desiredSize.width)||Th!==Li&&Th!==Er||(oc=Math.max(Ur-Du,0)),!isNaN(dr.desiredSize.height)||Th!==Li&&Th!==Rr||(zc=Math.max(qo-L0,0)),Ur=dr.maxSize,qo=dr.minSize,oc=Math.min(Ur.width,oc),zc=Math.min(Ur.height,zc),oc=Math.max(qo.width,oc),zc=Math.max(qo.height,zc),Ur=zc+L0,vi+=Es*Nh-(oc+Du)*Nh+Mp+Xu.left,ro+=Ja*Jl-Ur*Jl+ga+Xu.top,dr.visible&&(sn(ol,Xl,Qa,Cp,vi,ro,Hi.width,Hi.height)?dr.arrange(vi,ro,oc,zc):dr.arrange(vi,ro,oc,zc,new je(ol,Xl,Qa,Cp)))}}}for(An.free(Jt),a=0;a<b;a++)x=y[a],et=x instanceof Di?x:null,et!==null&&kd(et)&&(et=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,et.width,et.height),x.naturalBounds.freeze())}};function tp(){this.xa="Base"}Nn(tp,Sa),tp.prototype.measure=function(){},tp.prototype.arrange=function(){};function nm(){this.xa="Base"}Nn(nm,Sa),nm.prototype.measure=function(){},nm.prototype.arrange=function(){};function nc(){this.xa="Base"}Nn(nc,Sa),nc.prototype.measure=function(a,y,x,b,tt,et,nt){1<b.length&&_e("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,et,nt);var ot=b.measuredBounds,at=b.margin,ut=at.right+at.left;if(at=at.top+at.bottom,isFinite(y)||isFinite(x)){var ht=b.scale,gt=ot.width;ot=ot.height;var bt=Math.max(y-ut,0),Mt=Math.max(x-at,0),Et=1;a.viewboxStretch===xr?gt!==0&&ot!==0&&(Et=Math.min(bt/gt,Mt/ot)):gt!==0&&ot!==0&&(Et=Math.max(bt/gt,Mt/ot)),Et===0&&(Et=1e-4),b.Ca*=Et,ht!==b.scale&&(ta(b,!0),b.measure(1/0,1/0,et,nt))}ot=b.measuredBounds,tt.width=isFinite(y)?y:Math.max(ot.width+ut,0),tt.height=isFinite(x)?x:Math.max(ot.height+at,0)},nc.prototype.arrange=function(a,y,x){y=y[0];var b=y.measuredBounds,tt=y.margin,et=Math.max(b.width+(tt.right+tt.left),0);tt=Math.max(b.height+(tt.top+tt.bottom),0);var nt=y.alignment;nt.Xb()&&(nt=a.defaultAlignment),nt.sb()||(nt=yr),y.arrange(x.width*nt.x-et*nt.x+nt.offsetX,x.height*nt.y-tt*nt.y+nt.offsetY,b.width,b.height)};function hg(){this.xa="Base"}Nn(hg,Sa),hg.prototype.measure=function(){},hg.prototype.arrange=function(){},hg.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var b=a.gridCellSize,tt=b.width;b=b.height;var et=a.naturalBounds,nt=a.actualBounds,ot=et.width,at=et.height,ut=Math.ceil(ot/tt),ht=Math.ceil(at/b),gt=a.gridOrigin,bt=gt.x;gt=gt.y,y.save(),y.beginPath(),y.rect(0,0,ot,at),y.clip(),y.Se();for(var Mt=[],Et=a.O.s,Bt=Et.length,se=0;se<Bt;se++){var Jt=Et[se],me=[];if(Mt.push(me),Jt.visible){var Se=Jt.interval;if(!(0>Se)){Jt=_y(Jt.figure);for(var Le=0;Le<Bt;Le++)if(Le!==se){var Ve=Et[Le];Ve.visible&&_y(Ve.figure)===Jt&&(Ve=Ve.interval,Ve>Se&&me.push(Ve))}}}}for(Et=a.O.s,Bt=Et.length,se=0;se<Bt;se++){var fn=Et[se];if(fn.visible&&(me=fn.interval||1,Jt=Math.abs(me),!(2>tt*Jt*x))){if(Se=fn.segmentIndex,(!isFinite(Se)||isNaN(Se))&&(Se=0),0>Se&&(Se=Jt-Math.min(-Se,Jt)),Se=Math.round(Se%Jt),Jt=fn.opacity,Le=1,Jt!==1){if(Jt===0)continue;Le=y.globalAlpha,y.globalAlpha=Le*Jt}Ve=Mt[se];var nr=!1,mr=fn.strokeDashArray;if(mr!==null&&(nr=!0,y.js(mr,fn.strokeDashOffset)),fn.figure==="LineV"&&fn.stroke!==null&&0<fn.strokeWidth){for(y.lineWidth=fn.strokeWidth,Us(a,y,fn.stroke,!1,!1,et,nt),y.beginPath(),mr=fn=Math.floor((bt-tt)/tt);mr<=fn+ut;mr++){var dr=mr*tt+bt;0<=dr&&dr<=ot&&Av(mr,me,Se,Ve)&&(y.moveTo(dr,0),y.lineTo(dr,at))}y.stroke(),y.Se()}else if(fn.figure==="LineH"&&fn.stroke!==null&&0<fn.strokeWidth){for(y.lineWidth=fn.strokeWidth,Us(a,y,fn.stroke,!1,!1,et,nt),y.beginPath(),mr=fn=Math.floor((gt-b)/b);mr<=fn+ht;mr++)dr=mr*b+gt,0<=dr&&dr<=at&&Av(mr,me,Se,Ve)&&(y.moveTo(0,dr),y.lineTo(ot,dr));y.stroke(),y.Se()}else if(fn.figure==="BarV"&&fn.fill!==null)for(Us(a,y,fn.fill,!0,!1,et,nt),fn=fn.width,isNaN(fn)&&(fn=tt),dr=mr=Math.floor((bt-tt)/tt);dr<=mr+ut;dr++){var Hi=dr*tt+bt;0<=Hi+fn&&Hi<=ot&&Av(dr,me,Se,Ve)&&y.fillRect(Hi,0,fn,at)}else if(fn.figure==="BarH"&&fn.fill!==null)for(Us(a,y,fn.fill,!0,!1,et,nt),fn=fn.height,isNaN(fn)&&(fn=b),dr=mr=Math.floor((gt-b)/b);dr<=mr+ht;dr++)Hi=dr*b+gt,0<=Hi+fn&&Hi<=at&&Av(dr,me,Se,Ve)&&y.fillRect(0,Hi,ot,fn);nr&&y.fs(),Jt!==1&&(y.globalAlpha=Le)}}y.restore(),y.Vc(!1)};function Av(a,y,x,b){if(0>y)return a%y===x;if(a%y!==x)return!1;y=b.length;for(var tt=0;tt<y;tt++)if(a%b[tt]===x)return!1;return!0}function Lv(){this.xa="Base"}Nn(Lv,Sa),Lv.prototype.measure=function(a,y,x,b,tt){var et=b.length;if(a instanceof Wo||a instanceof ji){var nt=null,ot=null;if(a instanceof ji&&(nt=a),a instanceof Wo&&(ot=a,nt=ot.adornedPart,a.j===null&&(a.j=[])),nt instanceof ji){var at=nt;if(et===0)ve(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var ut=a instanceof Wo?null:nt.path;y=nt.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ht=at.points,gt=nt.pointsCount;ot!==null?ot.Ul(!1):nt!==null&&nt.Ul(!1),ot=y.width;var bt=y.height,Mt=a.j;if(Mt.length=0,ut!==null){G1(a,ot,bt,ut);var Et=ut.measuredBounds;x.ed(Et),Mt.push(Et)}Et=Hr.alloc();for(var Bt=Gt.alloc(),se=Gt.alloc(),Jt=0;Jt<et;Jt++){var me=b[Jt];if(me!==ut)if(me.isPanelMain&&me instanceof lo){G1(a,ot,bt,me);var Se=me.measuredBounds;x.ed(Se),Mt.push(Se)}else if(2>gt)me.measure(1/0,1/0,0,0),Se=me.measuredBounds,x.ed(Se),Mt.push(Se);else{var Le=me.segmentIndex,Ve=me.segmentFraction,fn=me.alignmentFocus;fn.Mc()&&(fn=yr);var nr=me.segmentOrientation,mr=me.segmentOffset;if(isNaN(Le)){var dr=at.ua;Se=Xn(),dr.Qu(Ve,Se);var Hi=Gt.allocAt(Se[0],Se[1]);if(Hi.add(at.i(0)),dr.type===ii.j?Hi.offset(-dr.startX,-dr.startY):(dr=dr.figures.first(),dr!==null&&Hi.offset(-dr.startX,-dr.startY)),dr=Se[2],nr!==zl){var vi=at.computeAngle(me,nr,dr);me.Kb=vi}vi=Hi.x-y.x;var ro=Hi.y-y.y;Gt.free(Hi),qn(Se)}else if(Le<-gt||Le>=gt)Se=Gt.alloc(),at.vg(),at.computeMidPoint(Se),dr=at.midAngle,nr!==zl&&(vi=at.computeAngle(me,nr,dr),me.Kb=vi),vi=Se.x-y.x,ro=Se.y-y.y,Gt.free(Se);else{if(vi=0,0<=Le?(ro=ht.M(Le),Se=Le<gt-1?ht.M(Le+1):ro):(vi=gt+Le,ro=ht.M(vi),Se=0<vi?ht.M(vi-1):ro),ro.Xa(Se)){0<=Le?(dr=0<Le?ht.M(Le-1):ro,vi=Le<gt-2?ht.M(Le+2):Se):(dr=vi<gt-1?ht.M(vi+1):ro,vi=1<vi?ht.M(vi-2):Se),Hi=dr.Bf(ro);var Ur=Se.Bf(vi);dr=Hi>Ur+10?0<=Le?dr.ab(ro):ro.ab(dr):Ur>Hi+10?0<=Le?Se.ab(vi):vi.ab(Se):0<=Le?dr.ab(vi):vi.ab(dr)}else dr=0<=Le?ro.ab(Se):Se.ab(ro);nr!==zl&&(vi=at.computeAngle(me,nr,dr),me.Kb=vi),vi=ro.x+(Se.x-ro.x)*Ve-y.x,ro=ro.y+(Se.y-ro.y)*Ve-y.y}me.measure(1/0,1/0,0,0),Se=me.measuredBounds,Hi=me.naturalBounds;var qo=0;me instanceof lo&&(qo=me.strokeWidth),Ur=Hi.width+qo;var Es=Hi.height+qo;Et.reset(),Et.translate(-Se.x,-Se.y),Et.scale(me.scale,me.scale),Et.rotate(nr===zl?me.angle:dr,Ur/2,Es/2),nr!==fp&&nr!==bm||Et.rotate(90,Ur/2,Es/2),nr!==Rg&&nr!==zg||Et.rotate(-90,Ur/2,Es/2),nr===qv&&(45<dr&&135>dr||225<dr&&315>dr)&&Et.rotate(-dr,Ur/2,Es/2),Hi=new je(0,0,Ur,Es),Bt.xi(Hi,fn),Et.Ga(Bt),fn=-Bt.x+qo/2*me.scale,me=-Bt.y+qo/2*me.scale,se.assign(mr),qo=isNaN(mr.x);var Ja=isNaN(mr.y);if(qo||Ja){Ur=Ur/2+3,Es=Es/2+3;var ol=45<=dr&&135>=dr,Xl=225<=dr&&315>=dr;nr===zl&&(ol||Xl)?(se.x=Ja?Ur:mr.y,se.y=qo?Es:mr.x,ol?0<=Le||isNaN(Le)&&.5>Ve||!qo||(se.y=-Es):Xl&&((0<=Le||isNaN(Le)&&.5>Ve)&&qo&&(se.y=-Es),Ja&&(se.x=-Ur))):(qo&&(se.x=0<=Le||isNaN(Le)&&.5>Ve?Ur:-Ur),Ja&&(se.y=-Es),se.rotate(dr))}else se.rotate(dr);vi+=se.x,ro+=se.y,Hi.set(Se),Hi.h(vi+fn,ro+me,Se.width,Se.height),Mt.push(Hi),x.ed(Hi)}}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),ve(tt,x.width||0,x.height||0),Hr.free(Et),Gt.free(Bt),Gt.free(se)}}}},Lv.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Wo||a instanceof ji){var b=a,tt=null;a instanceof Wo&&(tt=a,b=tt.adornedPart);var et=a instanceof Wo?null:b.path,nt=a.j;if(nt.length!==0){var ot=0;if(et!==null&&ot<nt.length){var at=nt[ot];ot++,et.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!==et&&ot<nt.length){var ht=nt[ot];ot++,ut.arrange(ht.x-a.jg.x,ht.y-a.jg.y,ht.width,ht.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof ji)for(et=a.labelNodes;et.next();){var gt=a;nt=et.value,ot=nt.segmentIndex,at=nt.segmentFraction;var bt=nt.alignmentFocus;if(ut=nt.segmentOrientation,ht=nt.segmentOffset,isNaN(ot)){var Mt=gt.ua,Et=Xn();Mt.Qu(at,Et);var Bt=Gt.allocAt(Et[0],Et[1]);Bt.add(gt.i(0)),Mt.type===ii.j||(Mt=Mt.figures.first()),Bt.offset(-Mt.startX,-Mt.startY),Mt=Et[2],ut!==zl&&(gt=gt.computeAngle(nt,ut,Mt),nt.angle=gt),gt=Bt.x;var se=Bt.y;Gt.free(Bt),qn(Et)}else if(ot<-x||ot>=x)Et=Gt.alloc(),Mt=gt,se=Et,Mt.vg(),Mt.computeMidPoint(se),Mt=gt.midAngle,ut!==zl&&(gt=gt.computeAngle(nt,ut,Mt),nt.angle=gt),gt=Et.x,se=Et.y,Gt.free(Et);else{if(Bt=0,0<=ot?(Et=y.s[ot],se=ot<x-1?y.s[ot+1]:Et):(Bt=x+ot,Et=y.s[Bt],se=0<Bt?y.s[Bt-1]:Et),Et.Xa(se)){0<=ot?(Mt=0<ot?y.s[ot-1]:Et,Bt=ot<x-2?y.s[ot+2]:se):(Mt=Bt<x-1?y.s[Bt+1]:Et,Bt=1<Bt?y.s[Bt-2]:se);var Jt=Mt.Bf(Et),me=se.Bf(Bt);Mt=Jt>me+10?0<=ot?Mt.ab(Et):Et.ab(Mt):me>Jt+10?0<=ot?se.ab(Bt):Bt.ab(se):0<=ot?Mt.ab(Bt):Bt.ab(Mt)}else Mt=0<=ot?Et.ab(se):se.ab(Et);ut!==zl&&(gt=gt.computeAngle(nt,ut,Mt),nt.angle=gt),gt=Et.x+(se.x-Et.x)*at,se=Et.y+(se.y-Et.y)*at}if(bt.ys())nt.location=new Gt(gt,se);else{bt.Mc()&&(bt=yr),Et=Hr.alloc(),Et.reset(),Et.scale(nt.scale,nt.scale),Et.rotate(nt.angle,0,0);var Se=nt.naturalBounds;Bt=je.allocAt(0,0,Se.width,Se.height),Jt=Gt.alloc(),Jt.xi(Bt,bt),Et.Ga(Jt),bt=-Jt.x,me=-Jt.y;var Le=Se.width,Ve=Se.height;Se=Gt.alloc(),Se.assign(ht);var fn=isNaN(ht.x),nr=isNaN(ht.y);if(fn||nr){Le=Le/2+3,Ve=Ve/2+3;var mr=45<=Mt&&135>=Mt,dr=225<=Mt&&315>=Mt;ut===zl&&(mr||dr)?(Se.x=nr?Le:ht.y,Se.y=fn?Ve:ht.x,mr?0<=ot||isNaN(ot)&&.5>at||!fn||(Se.y=-Ve):dr&&((0<=ot||isNaN(ot)&&.5>at)&&fn&&(Se.y=-Ve),nr&&(Se.x=-Le))):(fn&&(Se.x=0<=ot||isNaN(ot)&&.5>at?Le:-Le),nr&&(Se.y=-Ve),Se.rotate(Mt))}else Se.rotate(Mt);gt+=Se.x,se+=Se.y,Et.pp(Bt),bt+=Bt.x,me+=Bt.y,ot=Gt.allocAt(gt+bt,se+me),nt.move(ot),Gt.free(ot),Gt.free(Se),Gt.free(Jt),je.free(Bt),Hr.free(Et)}}tt!==null?tt.Ul(!1):b.Ul(!1),b=Jc(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Gt.free(b)}};function G1(a,y,x,b){if(Vl(b)!==!1){var tt=b.strokeWidth;tt===0&&a instanceof Wo&&a.type===Di.Link&&a.adornedObject instanceof lo&&(tt=a.adornedObject.strokeWidth),tt*=b.Ca,a instanceof ji&&a.ua!==null?(a=a.geometry.bounds,b.Ge(a.x-tt/2,a.y-tt/2,a.width+tt,a.height+tt)):a instanceof Wo&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-tt/2,a.y-tt/2,a.width+tt,a.height+tt)):b.Ge(-(tt/2),-(tt/2),y+tt,x+tt),tt=b.desiredSize,tt.w()||b.ua===null?b.dc.h(0,0,tt.width,tt.height):b.dc.assign(b.ua.bounds),ta(b,!1)}}function hf(){this.xa="Base"}Nn(hf,Sa),hf.prototype.measure=function(a,y,x,b,tt,et,nt){var ot=a.Pb();a.graduatedBounds=[];var at=ot.margin,ut=at.right+at.left,ht=at.top+at.bottom;ot.measure(y,x,et,nt);var gt=ot.measuredBounds,bt=new je(-at.left,-at.top,Math.max(gt.width+ut,0),Math.max(gt.height+ht,0));a.graduatedBounds.push(bt),tt.assign(bt);for(var Mt=ot.geometry,Et=ot.strokeWidth,Bt=Mt.flattenedSegments,se=Mt.flattenedLengths,Jt=Mt.flattenedTotalLength,me=Bt.length,Se=0,Le=0,Ve=Xn(),fn=0;fn<me;fn++){var nr=Bt[fn],mr=[];Le=Se=0;for(var dr=nr.length,Hi=0;Hi<dr;Hi+=2){var vi=nr[Hi],ro=nr[Hi+1];if(Hi!==0){var Ur=180*Math.atan2(ro-Le,vi-Se)/Math.PI;0>Ur&&(Ur+=360),mr.push(Ur)}Se=vi,Le=ro}Ve.push(mr)}if(a.graduatedIntervals===null){for(var qo=[],Es=a.O.s,Ja=Es.length,ol=0;ol<Ja;ol++){var Xl=Es[ol],Qa=[];if(qo.push(Qa),Xl.visible){var Cp=Xl.interval;if(!(0>Cp)){for(var ga=0;ga<Ja;ga++)if(ga!==ol){var Nh=Es[ga];if(Nh.visible&&Xl.constructor===Nh.constructor){var Jl=Nh.interval;Jl>Cp&&Qa.push(Jl)}}}}}a.graduatedIntervals=qo}var Mp=a.graduatedIntervals,oc=a.O.s,zc=oc.length,Xu=0,Du=0,L0=Jt;a.graduatedMarks=[];for(var Th,Sy=0;Sy<zc;Sy++){var Ju=oc[Sy];if(Th=[],Ju.visible&&Ju!==ot){var Ql=Math.abs(Ju.interval),I1=a.graduatedTickUnit;if(!(2>I1*Ql*Jt/a.graduatedRange&&Ju.graduatedSkip===null)){var ev=se[0][0],od=0,Ou=0;Du=Jt*Ju.graduatedStart-1e-4,L0=Jt*Ju.graduatedEnd+1e-4;var Im=I1*Ql,Qu=a.graduatedTickBase;if(Qu<a.graduatedMin){var P0=(a.graduatedMin-Qu)/Im;P0=P0%1===0?P0:Math.floor(P0+1),Qu+=P0*Im}else Qu>a.graduatedMin+Im&&(Qu-=Math.floor((Qu-a.graduatedMin)/Im)*Im);for(var Yx=Mp[Sy],F1=Qu,g2=1e-6*a.graduatedMax,jd=1;Qu<=a.graduatedMax+g2;jd++){t:{for(var kf=Yx.length,nv=0;nv<kf;nv++){var N0=(Qu-a.graduatedTickBase)%(Yx[nv]*a.graduatedTickUnit),Cy=1e-6*a.graduatedTickUnit;if(N0<Cy&&N0>-Cy){var T0=!1;break t}}T0=!0}if(T0&&(Qu>a.graduatedMax&&(Qu=a.graduatedMax),Ju.graduatedSkip===null||Ju instanceof as&&!Ju.graduatedSkip(Qu,Ju)||Ju instanceof lo&&!Ju.graduatedSkip(Qu,Ju))&&(Xu=(Qu-a.graduatedMin)*Jt/a.graduatedRange,Xu>Jt&&(Xu=Jt),Du<=Xu&&Xu<=L0)){for(var Kd=Ve[od][Ou],Ep=se[od][Ou];od<se.length;){for(;Xu>ev&&Ou<se[od].length-1;)Ou++,Kd=Ve[od][Ou],Ep=se[od][Ou],ev+=Ep;if(Xu<=ev)break;od++,Ou=0,Kd=Ve[od][Ou],Ep=se[od][Ou],ev+=Ep}var Bu=Bt[od],sd=Bu[2*Ou],Xx=Bu[2*Ou+1],Af=(Xu-(ev-Ep))/Ep,My=new Gt(sd+(Bu[2*Ou+2]-sd)*Af+Et/2-Mt.bounds.x,Xx+(Bu[2*Ou+3]-Xx)*Af+Et/2-Mt.bounds.y);My.scale(ot.scale,ot.scale);t:{var Dh=Kd,Fm=Ve[od];if(!(.5005>Af&&.4995<Af)){var ad=Dh;if(.5>Af?0<Ou?ad=Fm[Ou-1]:Ke.$(Bu[0],Bu[Bu.length-2])&&Ke.$(Bu[1],Bu[Bu.length-1])&&(ad=Fm[Fm.length-1]):.5<Af&&(Ou+1<Fm.length?ad=Fm[Ou+1]:Ke.$(Bu[0],Bu[Bu.length-2])&&Ke.$(Bu[1],Bu[Bu.length-1])&&(ad=Fm[0])),Dh!==ad){var iv=Math.abs(Dh-ad);if(180<iv&&(Dh<ad?Dh+=360:ad+=360,iv=Math.abs(Dh-ad)),5e-4>Af||.9995<Af){Kd=(Dh+ad)/2%360;break t}if(10>iv){var Ey=1-Math.abs(.5-Af);Kd=(Dh*Ey+ad*(1-Ey))%360;break t}}}Kd=Dh}if(Ju instanceof as){var oh="";Ju.graduatedFunction!==null?(oh=Ju.graduatedFunction(Qu,Ju),oh=oh!=null?oh.toString():""):oh=(+Qu.toFixed(2)).toString(),oh!==""&&Th.push({$l:My,angle:Kd,text:oh})}else Th.push({$l:My,angle:Kd})}Qu=F1+jd*Im}}}a.graduatedMarks.push(Th)}qn(Ve);var dl=a.graduatedMarks;if(dl!==null)for(var R1=b.length,uu=0;uu<R1;uu++){var va=b[uu],cu=dl[uu];if(va.visible&&va!==ot&&cu.length!==0){if(va instanceof lo){var Lf=a,kp=tt,Rm=va.alignmentFocus;Rm.Mc()&&(Rm=Qi);var v2=va.angle;va.Kb=0,va.measure(1/0,1/0,0,0),va.Kb=v2;var Jx=va.measuredBounds,ky=Jx.width,zm=Jx.height,rv=je.allocAt(0,0,ky,zm),Iu=Gt.alloc();Iu.xi(rv,Rm),je.free(rv);for(var Pf=-Iu.x,Oh=-Iu.y,Cc=new je,D0=cu.length,Ay=0;Ay<D0;Ay++)for(var O0=cu[Ay],Qx=O0.$l.x,Ly=O0.$l.y,la=O0.angle,sh=0;4>sh;sh++){switch(sh){case 0:Iu.h(Pf,Oh);break;case 1:Iu.h(Pf+ky,Oh);break;case 2:Iu.h(Pf,Oh+zm);break;case 3:Iu.h(Pf+ky,Oh+zm)}Iu.rotate(la+va.angle),Iu.offset(Qx,Ly),Ay===0&&sh===0?Cc.h(Iu.x,Iu.y,0,0):Cc.Ye(Iu),Iu.offset(-Qx,-Ly),Iu.rotate(-la-va.angle)}Gt.free(Iu),Lf.graduatedBounds!==null&&Lf.graduatedBounds.push(Cc),Je(kp,Cc.x,Cc.y,Cc.width,Cc.height)}else if(va instanceof as){var jc=a,$x=tt;jc.temporaryTextBlock===null&&(jc.temporaryTextBlock=new as);var $u=jc.temporaryTextBlock;Iv($u,va);var Ap=va.alignmentFocus;Ap.Mc()&&(Ap=Qi);for(var Kc=va.segmentOrientation,Py=va.segmentOffset,B0=new je,z1=0,Ny=0,ld=0,jm=0,I0=0,Ty=cu.length,Lp=0;Lp<Ty;Lp++){var Hd=cu[Lp];z1=Hd.$l.x,Ny=Hd.$l.y,ld=Hd.angle,I0=jm=va.angle,Kc!==zl&&(I0=Kc===xm||Kc===$v?ld+va.angle:ld,jm=ji.computeAngle(Kc,I0)),$u.Kb=jm,$u.text=Hd.text||"",$u.measure(1/0,1/0,0,0);var Pp=$u.measuredBounds,Nf=$u.naturalBounds,Np=Nf.width,Km=Nf.height,Bh=Hr.alloc();Bh.reset(),Bh.translate(-Pp.x,-Pp.y),Bh.scale($u.scale,$u.scale),Bh.rotate(I0,Np/2,Km/2),Kc!==fp&&Kc!==bm||Bh.rotate(90,Np/2,Km/2),Kc!==Rg&&Kc!==zg||Bh.rotate(-90,Np/2,Km/2),Kc===qv&&(45<ld&&135>ld||225<ld&&315>ld)&&Bh.rotate(-ld,Np/2,Km/2);var ov=je.allocAt(0,0,Np,Km),Tp=Gt.alloc();Tp.xi(ov,Ap),Bh.Ga(Tp);var sv=-Tp.x,y2=-Tp.y,Tf=Gt.alloc();Tf.assign(Py),isNaN(Tf.x)&&(Tf.x=Np/2+3),isNaN(Tf.y)&&(Tf.y=-(Km/2+3)),Tf.rotate(ld),z1+=Tf.x+sv,Ny+=Tf.y+y2;var Hm=new je(z1,Ny,Pp.width,Pp.height),j1=new je(Pp.x,Pp.y,Pp.width,Pp.height),x2=new je(Nf.x,Nf.y,Nf.width,Nf.height);Hd.Sz=jm,Hd.lineCount=$u.lineCount,Hd.lines=[$u.Cb,$u.Ih,$u.df,$u.Le,$u.Qc,$u.Qb,$u.ze],Hd.actualBounds=Hm,Hd.measuredBounds=j1,Hd.naturalBounds=x2,Lp===0?B0.assign(Hm):B0.ed(Hm),Gt.free(Tf),Gt.free(Tp),je.free(ov),Hr.free(Bh)}jc.graduatedBounds!==null&&jc.graduatedBounds.push(B0),Je($x,B0.x,B0.y,B0.width,B0.height)}ta(va,!1)}}},hf.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),tt=a.graduatedMarks;if(tt!==null){var et=a.graduatedBounds,nt=0,ot=et[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 ht=y[ut];ot=tt[ut],ht.visible&&ht!==b&&ot.length!==0&&(ot=et[nt],nt++,ht.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height))}a.graduatedBounds=null}}},hf.prototype.gc=function(a,y,x){var b=x.$i;x.$i=!0;var tt=a.naturalBounds,et=tt.width,nt=tt.height;tt=y instanceof wl,y.save(),y.beginPath(),y.rect(-1,-1,et+1,nt+1),y.clip(),y.Se(),et=a.Pb(),et.gc(y,x),nt=a.Df()*x.scale,0>=nt&&(nt=1);for(var ot=et.actualBounds,at=a.O.s,ut=a.graduatedMarks,ht=at.length,gt=0;gt<ht;gt++){var bt=at[gt],Mt=ut[gt],Et=Mt.length;if(bt.visible&&bt!==et&&Mt.length!==0){if(bt instanceof lo){if(!(2>a.graduatedTickUnit*bt.interval*et.geometry.flattenedTotalLength/a.graduatedRange*nt&&bt.graduatedSkip===null)){var Bt=bt.measuredBounds,se=bt.strokeWidth*bt.scale,Jt=bt.alignmentFocus;Jt.Mc()&&(Jt=Qi);for(var me=0;me<Et;me++){var Se=Mt[me].$l,Le=Mt[me].angle,Ve=Jt,fn=bt.Ab;fn.reset(),fn.translate(Se.x+ot.x,Se.y+ot.y),fn.rotate(Le+bt.angle,0,0),fn.translate(-Bt.width*Ve.x+Ve.offsetX+se/2,-Bt.height*Ve.y+Ve.offsetY+se/2),fn.scale(bt.scale,bt.scale),tc(bt,!1),bt.wh.set(bt.Ab),bt.Kk=bt.scale,ku(bt,!1),bt.gc(y,x),tt&&(a.svg.appendChild(bt.svg),bt.svg=null),bt.Ab.reset()}}}else if(bt instanceof as)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new as),Bt=a.temporaryTextBlock,Iv(Bt,bt),se=0;se<Et;se++)Jt=Mt[se],Jt.actualBounds&&Jt.measuredBounds&&Jt.naturalBounds&&(Bt.ec=Jt.text||"",Bt.Kb=Jt.Sz||0,Bt.Gc=Jt.lineCount||0,me=Jt.lines,me!==void 0&&(Bt.Cb=me[0],Bt.Ih=me[1],Bt.df=me[2],Bt.Le=me[3],Bt.Qc=me[4],Bt.Qb=me[5],Bt.ze=me[6]),Jt.naturalBounds&&(Bt.dc=Jt.naturalBounds),Jt.actualBounds&&(me=Jt.actualBounds,Bt.arrange(me.x,me.y,me.width,me.height)),me=Jt.actualBounds,Bt.arrange(me.x,me.y,me.width,me.height),Se=Jt.measuredBounds,Jt=Jt.naturalBounds,Le=Bt.Ab,Le.reset(),Le.translate(me.x+ot.x,me.y+ot.y),Le.translate(-Se.x,-Se.y),Bt.no(Le,Jt.x,Jt.y,Jt.width,Jt.height),tc(Bt,!1),Bt.wh.set(Bt.Ab),Bt.Kk=Bt.scale,ku(Bt,!1),Bt.Ng=bt.part,Bt.Me=bt.panel,Bt.gc(y,x),Bt.Me=null,Bt.Ng=null,tt&&(a.svg.appendChild(Bt.svg),Bt.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function Di(a,y){if(Ue.call(this),this.na=null,a===void 0)this.na=Di.Position;else if(typeof a=="string"){var x=su.I(a);x!==null&&(this.na=x)}else a instanceof Sa?this.na=a:a&&(this.na=Di.Position,y=a);this.na===null&&_e("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Di.Grid?1048576:0),this.O=new oi,this.yb=wn,this.Tm=Ao,this.Uf=io,this.$g=null,this.$e="",this.jg=new je(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=xr,this.jn=Bi,this.kn=Zn,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Nn(Di,Ue),Di.prototype.cloneProtected=function(a){Ue.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},Di.prototype.Af=function(a){Ue.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},Di.prototype.copy=function(){var a=Ue.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var tt=y[b].copy();tt.wi(a),tt.Ng=null;var et=a.O,nt=et.count;if(et.Gb(nt,tt),et=a.part,et!==null){et.Rh=null,tt.portId!==null&&et instanceof Xi&&(et.Te=!0);var ot=a.diagram;ot!==null&&ot.undoManager.isUndoingRedoing||et.cb(no,"elements",a,null,tt,null,nt)}}return a}return null},St=Di.prototype,St.toString=function(){return"Panel("+this.type.name+")#"+Gi(this)},St.Pn=function(a){Ue.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},St.hh=function(a,y){if(this.na===Di.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Di.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Di.Table)if(a.yc(),a instanceof wl){var x=a.yd;a.yd=yv(a,"gojs-ts"),dg(this,a),a.nh.pop(),a.yd=x}else dg(this,a);(x=this.isClipping&&this.na===Di.Spot)&&a.save();for(var b=this.Pb(),tt=this.O.s,et=tt.length,nt=0;nt<et;nt++){var ot=tt[nt];x&&ot===b&&(a.clipInsteadOfFill=!0),ot.gc(a,y),x&&ot===b&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function dg(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&Ed(a,y,!0,x,!0),b!==null&&Ed(a,y,!1,b,!0),x!==null&&fg(a,y,!0,x),b!==null&&fg(a,y,!1,b),x!==null&&Ed(a,y,!0,x,!1),b!==null&&Ed(a,y,!1,b,!1)}function fg(a,y,x,b){for(var tt=b.length,et=a.actualBounds,nt=a.naturalBounds,ot=!0,at=0;at<tt;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 ht=ut.separatorStrokeWidth;isNaN(ht)&&(ht=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var gt=ut.separatorStroke;if(gt===null&&(gt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ht!==0&>!==null){Us(a,y,gt,!1,!1,nt,et),gt=!1;var bt=ut.separatorDashArray;bt===null&&(bt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),bt!==null&&(gt=!0,y.js(bt,0)),y.beginPath(),bt=ut.position+ht,x?bt>nt.height&&(ht-=bt-nt.height):bt>nt.width&&(ht-=bt-nt.width),ut=ut.position+ht/2,y.lineWidth=ht,ht=a.yb,x?(ut+=ht.top,bt=nt.width-ht.right,y.moveTo(ht.left,ut),y.lineTo(bt,ut)):(ut+=ht.left,bt=nt.height-ht.bottom,y.moveTo(ut,ht.top),y.lineTo(ut,bt)),y.stroke(),y.Se(),gt&&y.fs()}}}}function Ed(a,y,x,b,tt){for(var et=b.length,nt=a.actualBounds,ot=a.naturalBounds,at=Y1(a,!0),ut=Y1(a,!1),ht=0;ht<et;ht++){var gt=b[ht];if(gt!==void 0&>.background!==null&>.coversSeparators!==tt&>.actual!==0){var bt=x?nt.height:nt.width;if(!(gt.position>bt)){var Mt=gt.Wc(),Et=gt.separatorStrokeWidth;isNaN(Et)&&(Et=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Bt=gt.separatorStroke;Bt===null&&(Bt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Bt===null||gt.index===(x?at:ut))&&(Et=0),Mt-=Et,Et=gt.position+Et,Mt+=gt.actual,Et+Mt>bt&&(Mt=bt-Et),0>=Mt||(bt=a.yb,Us(a,y,gt.background,!0,!1,ot,nt),x?y.fillRect(bt.left,Et+bt.top,nt.width-(bt.left+bt.right),Mt):y.fillRect(Et+bt.left,bt.top,Mt,nt.height-(bt.top+bt.bottom)))}}}}function Y1(a,y){for(var x=y?a.rowCount:a.columnCount,b=0;b<x;b++){var tt=y?a.rowDefs[b]:a.colDefs[b];if(tt!==void 0)return tt.index}return 0}function _y(a){return a==="LineV"||a==="BarV"}St.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},St.kk=function(a,y,x){if(!Ue.prototype.kk.call(this,a,y,x))return!1;if(this.type===Di.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,dg(this,a),a.yd=null;else if(this.na===Di.Grid||this.na===Di.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var b=x.length,tt=0;tt<b;tt++)x[tt].gc(a,y);return!0},St.nk=function(){return!0},St.$o=function(a,y,x,b){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var tt=0,et=0,nt=0;nt<y.length;nt++)if(y[nt].Ed()){var ot=y[nt].actualBounds;tt=nt===0?ot.x:Math.min(ot.x,tt),et=nt===0?ot.y:Math.min(ot.y,et)}b.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-tt)+","+(a.y-x.y-et)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else Ue.prototype.$o.call(this,a,y,x,b)},St.Sj=function(a,y,x,b,tt){var et=this.se(),nt=this.transform,ot=1/(nt.m11*nt.m22-nt.m12*nt.m21),at=nt.m22*ot,ut=-nt.m12*ot,ht=-nt.m21*ot,gt=nt.m11*ot,bt=ot*(nt.m21*nt.dy-nt.m22*nt.dx),Mt=ot*(nt.m12*nt.dx-nt.m11*nt.dy);if(this.areaBackground!==null)return nt=this.actualBounds,Ke.Ff(nt.left,nt.top,nt.right,nt.bottom,a,y,x,b,tt);if(this.background!==null)return et=a*at+y*ht+bt,ot=a*ut+y*gt+Mt,a=x*at+b*ht+bt,at=x*ut+b*gt+Mt,tt.h(0,0),x=this.naturalBounds,et=Ke.Ff(0,0,x.width,x.height,et,ot,a,at,tt),tt.transform(nt),et;et||(at=1,ht=ut=0,gt=1,Mt=bt=0),ot=a*at+y*ht+bt,a=a*ut+y*gt+Mt,at=x*at+b*ht+bt,x=x*ut+b*gt+Mt,tt.h(at,x),b=(at-ot)*(at-ot)+(x-a)*(x-a),ut=!1,gt=this.O.s,Mt=gt.length,ht=Gt.alloc(),bt=null,y=1/0;var Et=null,Bt=this.isClipping&&this.na===Di.Spot;Bt&&(Et=Gt.alloc(),bt=this.Pb(),(ut=bt.Sj(ot,a,at,x,Et))&&(y=(ot-Et.x)*(ot-Et.x)+(a-Et.y)*(a-Et.y)));for(var se=0;se<Mt;se++){var Jt=gt[se];Jt.visible&&Jt!==bt&&Jt.Sj(ot,a,at,x,ht)&&(ut=!0,Jt=(ot-ht.x)*(ot-ht.x)+(a-ht.y)*(a-ht.y),Jt<b&&(b=Jt,tt.set(ht)))}return Bt&&(y>b&&tt.set(Et),Gt.free(Et)),Gt.free(ht),et&&tt.transform(nt),ut},St.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();Ue.prototype.Gj.call(this)},St.v=function(a){if(!Vl(this)){Ue.prototype.v.call(this,a),a=null,(this.na===Di.Auto||this.na===Di.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,b=0;b<x;b++){var tt=y[b];if((tt===a||tt.isPanelMain)&&tt.v(!0),!tt.desiredSize.w()){var et=Fl(tt,!1);(tt instanceof Pl||tt instanceof Di||tt instanceof as||et!==Si)&&tt.v(!0)}}}},St.Uj=function(){if(!Vl(this)){ta(this,!0),ll(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},St.Uk=function(){if(!(this.l&2048)){tc(this,!0),ku(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},St.Wu=function(){ku(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},St.Wl=function(a,y,x,b){var tt=this.jg;tt.h(0,0,0,0);var et=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(et.width)||(a=Math.min(et.width,ot.width)),isNaN(et.height)||(y=Math.min(et.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,tt,x,b),a=tt.width+at.left+at.right,at=tt.height+at.top+at.bottom,isFinite(et.width)&&(a=et.width),isFinite(et.height)&&(at=et.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),ve(tt,a,at),ve(this.naturalBounds,a,at),this.Ge(0,0,a,at)},St.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 Dc(a){return a.part!==null?a.part.locationObject:null}St.eh=function(a,y,x,b){var tt=this.O.s;if(this.actualBounds.h(a,y,x,b),tt.length!==0){if(!this.desiredSize.w()){a=Fl(this,!0);var et=this.measuredBounds;y=et.width,et=et.height;var nt=this.Kg,ot=nt.left+nt.right;switch(nt=nt.top+nt.bottom,y===x&&et===b&&(a=Si),a){case Si:(y>x||et>b)&&(this.v(),this.measure(y>x?x:y,et>b?b:et,0,0));break;case Li:this.v(!0),this.measure(x+ot,b+nt,0,0);break;case Er:this.v(!0),this.measure(x+ot,et+nt,0,0);break;case Rr:this.v(!0),this.measure(y+ot,b+nt,0,0)}}this.na.arrange(this,tt,this.jg)}},St.gh=function(a){var y=this.naturalBounds,x=Dc(this);if(sn(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,tt=Gt.allocAt(0,0);b--;){var et=y[b];if((et.visible||et===x)&&(Ee(tt.set(a),et.transform),et.ca(tt)))return Gt.free(tt),!0}return Gt.free(tt),!(this.Ma===null&&this.areaBackground===null)}return!1},St.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var tt=y[b].ks(a);if(tt!==null)return tt}return null},St.qm=function(a,y){if(y(this,a),a instanceof Di){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function $h(a,y){qh(a,a,y)}function qh(a,y,x){x(y),y=y.O.s;for(var b=y.length,tt=0;tt<b;tt++){var et=y[tt];et instanceof Di&&qh(a,et,x)}}function Ib(a,y){s0(a,a,y)}function s0(a,y,x){if(x(y),y instanceof Di){y=y.O.s;for(var b=y.length,tt=0;tt<b;tt++)s0(a,y[tt],x)}}St.Nl=function(a){return Wy(this,this,a)};function Wy(a,y,x){if(x(y))return y;if(y instanceof Di){y=y.O.s;for(var b=y.length,tt=0;tt<b;tt++){var et=Wy(a,y[tt],x);if(et!==null)return et}}return null}St.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=ep(this));for(var b=0;b<x;b++){var tt=y[b];if(tt instanceof Di){var et=tt.fb(a);if(et!==null)return et}if(tt.name===a)return tt}return null};function X1(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var tt=a[b];tt instanceof Di?x=Math.max(x,X1(tt)):tt instanceof lo&&(x=Math.max(x,tt.ig/2*tt.strokeMiterLimit*tt.Df()))}return x}St.se=function(){return!(this.type===Di.TableRow||this.type===Di.TableColumn)};function kd(a){return a.type===Di.TableRow||a.type===Di.TableColumn}St.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Ll(this)))return null;var b=this.naturalBounds,tt=1/this.Df(),et=this.se(),nt=et?a:Ee(Gt.allocAt(a.x,a.y),this.transform),ot=this.diagram,at=10,ut=5;if(ot!==null&&(at=ot.Ql("extraTouchArea"),ut=at/2),sn(-(ut*tt),-(ut*tt),b.width+at*tt,b.height+at*tt,nt.x,nt.y)){if(!this.isAtomic){tt=this.O.s;var ht=tt.length;if(ot=Gt.alloc(),ut=(at=this.isClipping&&this.na===Di.Spot)?this.Pb():null,at&&(ut.se()?Ee(ot.set(a),ut.transform):ot.set(a),!ut.ca(ot)))return Gt.free(ot),et||Gt.free(nt),null;for(var gt=Dc(this);ht--;){var bt=tt[ht];if((bt.visible||bt===gt)&&(bt.se()?Ee(ot.set(a),bt.transform):ot.set(a),!at||bt!==ut)){var Mt=null;if(bt instanceof Di?Mt=bt.ic(ot,y,x):bt.pickable===!0&&bt.ca(ot)&&(Mt=bt),Mt!==null&&(y!==null&&(Mt=y(Mt)),Mt!==null&&(x===null||x(Mt))))return Gt.free(ot),et||Gt.free(nt),Mt}}Gt.free(ot)}return this.background===null&&this.areaBackground===null?(et||Gt.free(nt),null):(a=sn(0,0,b.width,b.height,nt.x,nt.y)?this:null,et||Gt.free(nt),a)}return et||Gt.free(nt),null},St.ji=function(a,y,x,b){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var tt=this.naturalBounds,et=this.se(),nt=et?a:Ee(Gt.allocAt(a.x,a.y),this.transform);if(tt=sn(0,0,tt.width,tt.height,nt.x,nt.y),kd(this)||tt){if(!this.isAtomic){for(var ot=this.O.s,at=ot.length,ut=Gt.alloc(),ht=Dc(this);at--;){var gt=ot[at];if(gt.visible||gt===ht){gt.se()?Ee(ut.set(a),gt.transform):ut.set(a);var bt=gt;gt=gt instanceof Di?gt:null,(gt!==null?gt.ji(ut,y,x,b):bt.ca(ut))&&bt.pickable!==!1&&(y!==null&&(bt=y(bt)),bt===null||x!==null&&!x(bt)||b.add(bt))}}Gt.free(ut)}return et||Gt.free(nt),tt&&(this.background!==null||this.areaBackground!==null)}return et||Gt.free(nt),!1},St.Cf=function(a,y,x,b,tt,et){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var nt=et;if(et===void 0&&(nt=Hr.alloc(),nt.reset()),nt.multiply(this.transform),this.fh(a,nt))return Pv(this,y,x,tt),et===void 0&&Hr.free(nt),!0;if(this.Yc(a,nt)){if(!this.isAtomic)for(var ot=Dc(this),at=this.O.s,ut=at.length;ut--;){var ht=at[ut];if(ht.visible||ht===ot){var gt=ht.actualBounds,bt=this.naturalBounds;gt.x>bt.width||gt.y>bt.height||0>gt.x+gt.width||0>gt.y+gt.height||(gt=ht,ht=ht instanceof Di?ht:null,bt=Hr.alloc(),bt.set(nt),(ht!==null?ht.Cf(a,y,x,b,tt,bt):Aa(gt,a,b,bt))&&(y!==null&&(gt=y(gt)),gt===null||x!==null&&!x(gt)||tt.add(gt)),Hr.free(bt))}}return et===void 0&&Hr.free(nt),b}return et===void 0&&Hr.free(nt),!1};function Pv(a,y,x,b){for(var tt=a.O.s,et=tt.length;et--;){var nt=tt[et];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 Di&&Pv(nt,y,x,b),y!==null&&(nt=y(nt)),nt===null||x!==null&&!x(nt)||b.add(nt))}}}St.og=function(a,y,x,b,tt,et){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:Ee(Gt.allocAt(a.x,a.y),this.transform),ut=ot?y:Ee(Gt.allocAt(y.x,y.y),this.transform),ht=at.Bf(ut),gt=0<at.x&&at.x<nt.width&&0<at.y&&at.y<nt.height||Ae(at.x,at.y,0,0,0,nt.height)<=ht||Ae(at.x,at.y,0,nt.height,nt.width,nt.height)<=ht||Ae(at.x,at.y,nt.width,nt.height,nt.width,0)<=ht||Ae(at.x,at.y,nt.width,0,0,0)<=ht;if(nt=at.zd(0,0)<=ht&&at.zd(0,nt.height)<=ht&&at.zd(nt.width,0)<=ht&&at.zd(nt.width,nt.height)<=ht,ot||(Gt.free(at),Gt.free(ut)),gt){if(!this.isAtomic){at=Gt.alloc(),ut=Gt.alloc(),ht=Dc(this);for(var bt=this.O.s,Mt=bt.length;Mt--;){var Et=bt[Mt];if(Et.visible||Et===ht){var Bt=Et.actualBounds,se=this.naturalBounds;(!ot||!(Bt.x>se.width||Bt.y>se.height||0>Bt.x+Bt.width||0>Bt.y+Bt.height))&&(Et.se()?(Bt=Et.transform,Ee(at.set(a),Bt),Ee(ut.set(y),Bt)):(at.set(a),ut.set(y)),Bt=Et,Et=Et instanceof Di?Et:null,(Et!==null?Et.og(at,ut,x,b,tt,et):Bt.tx(at,ut,tt))&&(x!==null&&(Bt=x(Bt)),Bt===null||b!==null&&!b(Bt)||et.add(Bt)))}}Gt.free(at),Gt.free(ut)}return tt?gt:nt}return!1};function Vy(a){var y=null;return a instanceof lo&&(y=a.spot1,y===Ao&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=er),y}function Uy(a){var y=null;return a instanceof lo&&(y=a.spot2,y===Ao&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=oo),y}St.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},St.M=function(a){return this.O.M(a)},St.Gb=function(a,y){y instanceof Pr&&_e("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&_e("Cannot make a Panel contain itself: "+this.toString()),_e("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&_e("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!==Di.Grid||y instanceof lo||_e("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Di.Graduated||y instanceof lo||y instanceof as||_e("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 or),this.ge.add(b,y))}var tt=this.O;if(b=-1,x===this){for(var et=-1,nt=this.O.s,ot=nt.length,at=0;at<ot;at++)if(nt[at]===y){et=at;break}if(et!==-1){if(et===a||et+1>=tt.count&&a>=tt.count)return;tt.mb(et),b=et}else _e("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>tt.count)&&(a=tt.count),tt.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),Vl(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Di&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Nv(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Xi&&(x.Te=!0),x.Te&&x instanceof Xi&&(x.wc=null),tt=this.diagram,tt!==null&&tt.undoManager.isUndoingRedoing||(b!==-1&&x.cb(ho,"elements",this,y,null,b,null),x.cb(no,"elements",this,null,y,null,a)))};function pg(a,y){a.l=y?a.l|16777216:a.l&-16777217}St.remove=function(a){for(var y=this.O.s,x=y.length,b=-1,tt=0;tt<x;tt++)if(y[tt]===a){b=tt;break}b!==-1&&this.pc(b,!0)},St.mb=function(a){0<=a&&this.pc(a,!0)},St.pc=function(a,y){var x=this.O,b=x.M(a);if(b.Ng=null,b.wi(null),this.ge!==null){var tt=b.data;typeof tt=="object"&&this.ge.remove(tt)}x.mb(a),ta(this,!1),this.v(),this.$g===b&&(this.$g=null),this.graduatedIntervals=null;var et=this.part;et!==null&&(et.Rh=null,et.ag=NaN,et.Wb(),et instanceof Xi&&(b instanceof Di?b.qm(b,function(nt,ot){r1(et,ot,y)}):r1(et,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||et.cb(ho,"elements",this,b,null,a,null))},St.Fb=function(a){0>a&&Ri(a,">= 0",Di,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new pa;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(no,"rowdefs",this,null,x,null,a)}return y[a]},St.oA=function(a){if(0>a&&Ri(a,">= 0",Di,"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(ho,"rowdefs",this,x,null,a,null),this.v()}}};function J1(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof pa?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}St.Eb=function(a){0>a&&Ri(a,">= 0",Di,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new pa;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(no,"coldefs",this,null,x,null,a)}return y[a]},St.jA=function(a){if(0>a&&Ri(a,">= 0",Di,"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(ho,"coldefs",this,x,null,a,null),this.v()}}};function Q1(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof pa?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}St.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&a0(y,a),this},St.Hy=function(a,y){return(a=this.Fb(a))&&a0(a,new pa(y)),this},St.By=function(a,y){return(a=this.Eb(a))&&a0(a,new pa(y)),this},St.nz=function(a){if(0>a||this.type!==Di.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,b=x.length,tt=this.topIndex;tt<b;tt++){var et=x[tt];if(et!==void 0&&(y+=et.total,a<y))break}return tt},St.fz=function(a){if(0>a||this.type!==Di.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,b=x.length,tt=this.leftIndex;tt<b;tt++){var et=x[tt];if(et!==void 0&&(y+=et.total,a<y))break}return tt},St.Fz=function(a,y){if(y===void 0&&(y=new Gt(NaN,NaN)),this.type!==Di.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)},St.Gz=function(a){if(this.type!==Di.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function $1(a){return a=a.allBindings,a!==null&&a._isFrozen}function ou(a){var y=a.allBindings;if(y===null)a.data!==null&&_e("Template cannot have .data be non-null: "+a),a.allBindings=y=new oi;else if(y._isFrozen)return;var x=new oi;pg(a,!1),a.qm(a,function(ut,ht){ht.th();var gt=ht.localBindings;if(gt!==null)for(Gf(ht,!1),gt=gt.iterator;gt.next();){var bt=gt.value;bt.mode===Vg&&Gf(ht,!0);var Mt=bt.sourceName;Mt!==null&&(Mt==="/"&&pg(ut,!0),Mt=M1(bt,ut,ht),Mt!==null&&(x.add(Mt),Mt.srcBindings===null&&(Mt.srcBindings=new oi),Mt.srcBindings.add(bt))),y.add(bt)}if(ht instanceof Di&&ht.type===Di.Table){if(0<ht.rowCount){for(ut=ht.rowDefs,gt=ut.length,bt=0;bt<gt;bt++)if(Mt=ut[bt],Mt!==void 0&&Mt.be!==null)for(var Et=Mt.be.iterator;Et.next();){var Bt=Et.value;Bt.xd=Mt,Bt.to=2,Bt.wl=Mt.index,y.add(Bt)}}if(0<ht.columnCount){for(ht=ht.colDefs,ut=ht.length,gt=0;gt<ut;gt++)if(bt=ht[gt],bt!==void 0&&bt.be!==null)for(Mt=bt.be.iterator;Mt.next();)Et=Mt.value,Et.xd=bt,Et.to=1,Et.wl=bt.index,y.add(Et)}}});for(var b=x.iterator;b.next();){var tt=b.value;if(tt.srcBindings!==null){Gf(tt,!0);for(var et=tt.srcBindings.iterator;et.next();){var nt=et.value;tt.localBindings===null&&(tt.localBindings=new oi),tt.localBindings.add(nt)}}tt.srcBindings=null}for(b=y.iterator;b.next();)if(tt=b.value,et=tt.xd,et!==null){tt.xd=null;var ot=tt.targetProperty,at=ot.indexOf(".");0<at&&et instanceof Di&&(nt=ot.substring(0,at),ot=ot.substr(at+1),at=et.fb(nt),at!==null?(et=at,tt.targetProperty=ot):$e('Warning: unable to find GraphObject named "'+nt+'" for Binding: '+tt.toString())),et instanceof pa?(nt=Gi(et.panel),tt.Ai=nt===void 0?-1:nt,et.panel.bindingId=tt.Ai):et instanceof Ue?(nt=Gi(et),tt.Ai=nt===void 0?-1:nt,et.bindingId=tt.Ai):_e("Unknown type of binding target: "+et)}y.freeze(),a instanceof Pr&&a.Zc()&&a.Va()}St.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return Ib(y,function(x){x instanceof Di&&(x.allBindings=null,x.ub=null);var b=x.localBindings;b!==null&&(x.localBindings=null,b.each(function(tt){x.bind(tt.copy())})),b=x.animationTriggers,b!==null&&(x.animationTriggers=null,b.each(function(tt){x.Jv(tt.value.copy())}))}),a&&ou(y),y},St.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 tt=x.sourceName;if(tt!==null){if(tt==="")b=this;else if(tt==="/")b=this;else if(tt===".")b=this;else if(tt==="..")b=this;else if(b=this.fb(tt),b===null)continue}else if(x.isToModel)if(b=this.diagram,b!==null)b=b.model.modelData;else continue;var et=this,nt=x.Ai;if(nt!==-1){if(et=this.ks(nt),et===null)continue}else x.xd!==null&&(et=x.xd);if(tt==="/"?b=et.part:tt==="."?b=et:tt===".."&&(b=et.panel),tt=x.to,tt!==0){if(!(et instanceof Di))continue;tt===1?et=et.Eb(x.wl):tt===2&&(et=et.Fb(x.wl))}et!==void 0&&x.Mv(et,b)}}},St.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function q1(a,y){a=a.O.s;for(var x=a.length,b=y.length,tt=0,et=null;tt<x&&(et=a[tt],!(et instanceof Di&&et.data!==null));)tt++,et=a[tt];if(x-tt!==b)return!0;if(et===null)return 0<b;for(var nt=0;tt<x&&nt<b;){if(et=a[tt],!(et instanceof Di)||et.data!==y[nt])return!0;tt++,nt++}return!1}function ep(a){if(a.type===Di.Spot||a.type===Di.Auto)return Math.min(a.O.length,1);if(a.type===Di.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof lo&&b.isPanelMain))break}return x}return a.type===Di.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Di&&kd(a))?1:0}St.mv=function(){for(var a=ep(this);this.O.length>a;)this.pc(this.O.length-1,!1);im(this,this.itemArray)};function im(a,y){var x=ep(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++)mg(a,y[b],b,!0)}else{b=x;for(var tt=0;tt<y.length;tt++,b++){var et=y[tt],nt=b<a.O.length?a.O.M(b):null;if(nt instanceof Di){if(nt.data!==et){var ot=rm(a,nt.data),at=rm(a,et),ut=at!==ot;ut||(ot=gg(a,ot),ut=gg(a,at)!==ot),ut?(a.pc(b,!1),mg(a,et,tt,!1)):nt.data=et}}else mg(a,et,tt,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,np(a,x,0),Vl(a)||a.v(),a.graduatedIntervals=null,a.If()||Nv(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof Xi&&(y.Te=!0),y.Te&&y instanceof Xi&&(y.wc=null))}}function mg(a,y,x,b){if(!(y==null||0>x)){var tt=rm(a,y);if(tt=gg(a,tt),tt!==null){if(ou(tt),tt=tt.copy(),tt.l&16777216){var et=a.ih();et!==null&&pg(et,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new or),a.ge.add(y,tt)),et=x+ep(a),a.Gb(et,tt),b&&(tt.ub=y,np(a,et,x),tt.ub=null),tt.data=y}}}function np(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof Di){var tt=y,et=x;b.type===Di.TableRow?b.row=tt:b.type===Di.TableColumn&&(b.column=tt),b.itemIndex=et}y++,x++}}function rm(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=aa(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;_e("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function gg(a,y){var x=a.itemTemplateMap,b=null;return x!==null&&(b=x.I(y)),b===null&&(x!==null&&(b=x.I("")),b===null&&(Tv||(Tv=!0,$e('No item template Panel found for category "'+y+'" on '+a),$e(" Using default item template."),a=new Di,y=new as,y.bind(new ls("text","",vr)),a.add(y),vg=a),b=vg)),b}function Nv(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof Di){y=y.O.s,b=y.length;for(var tt=0;tt<b;tt++){var et=y[tt];x&&et instanceof Di&&!et.isEnabled||Nv(a,et,x)}}}function Xc(a,y){y.name=a,su.add(a,y)}ge.Object.defineProperties(Di.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Di.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&&Ri(a,">= 0",Di,"padding"),a=new Kn(a)):(0>a.left&&Ri(a.left,">= 0",Di,"padding:value.left"),0>a.right&&Ri(a.right,">= 0",Di,"padding:value.right"),0>a.top&&Ri(a.top,">= 0",Di,"padding:value.top"),0>a.bottom&&Ri(a.bottom,">= 0",Di,"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:wn},set:function(a){typeof a=="number"&&(a=new Kn(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Vu),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 Jo)&&(a instanceof Jo&&a.freeze(),this.T===null&&(this.T=new Vu),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 Vu),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,tt=0;tt<x;tt++){var et=a[tt];typeof et=="number"&&0<=et&&isFinite(et)||_e("defaultRowSeparatorDashArray value "+et+" at index "+tt+" must be a positive number or zero."),b+=et}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Vu),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 Jo)&&(a instanceof Jo&&a.freeze(),this.T===null&&(this.T=new Vu),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 Vu),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,tt=0;tt<x;tt++){var et=a[tt];typeof et=="number"&&0<=et&&isFinite(et)||_e("defaultColumnSeparatorDashArray value "+et+" at index "+tt+" must be a positive number or zero."),b+=et}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Vu),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 Vu),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||_e("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Uc(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()||_e("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Uc(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 td),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),el(this)&&(a=this.part,a!==null&&As(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 td),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),el(this)&&(a=this.part,a!==null&&As(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 td),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 td),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 td,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 td,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 td,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 td,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 Vu),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Vu),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:xg},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new Vu),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:xg},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new Vu),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)&&_e("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Vu),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)&&_e("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Vu),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 Pr&&!(this instanceof Wo);ou(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof ji?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Pr&&(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 Yf),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&q1(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&xf(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&ia(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||im(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 or}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Pr||a.isPanelMain)&&_e("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(););go(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&&(go(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 $r&&(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&&Nv(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))}}}),ge.Object.defineProperties(Di,{Position:{get:function(){return su.I("Position")}},Horizontal:{get:function(){return su.I("Horizontal")}},Vertical:{get:function(){return su.I("Vertical")}},Spot:{get:function(){return su.I("Spot")}},Auto:{get:function(){return su.I("Auto")}},Table:{get:function(){return su.I("Table")}},Viewbox:{get:function(){return su.I("Viewbox")}},TableRow:{get:function(){return su.I("TableRow")}},TableColumn:{get:function(){return su.I("TableColumn")}},Link:{get:function(){return su.I("Link")}},Grid:{get:function(){return su.I("Grid")}},Graduated:{get:function(){return su.I("Graduated")}}}),Di.prototype.rebuildItemElements=Di.prototype.mv,Di.prototype.findItemPanelForData=Di.prototype.sx,Di.prototype.updateTargetBindings=Di.prototype.La,Di.prototype.copyTemplate=Di.prototype.Uy,Di.prototype.graduatedValueForPoint=Di.prototype.Gz,Di.prototype.graduatedPointForValue=Di.prototype.Fz,Di.prototype.findColumnForLocalX=Di.prototype.fz,Di.prototype.findRowForLocalY=Di.prototype.nz,Di.prototype.addColumnDefinition=Di.prototype.By,Di.prototype.addRowDefinition=Di.prototype.Hy,Di.prototype.addRowColumnDefinition=Di.prototype.Gy,Di.prototype.removeColumnDefinition=Di.prototype.jA,Di.prototype.getColumnDefinition=Di.prototype.Eb,Di.prototype.removeRowDefinition=Di.prototype.oA,Di.prototype.getRowDefinition=Di.prototype.Fb,Di.prototype.removeAt=Di.prototype.mb,Di.prototype.remove=Di.prototype.remove,Di.prototype.insertAt=Di.prototype.Gb,Di.prototype.elt=Di.prototype.M,Di.prototype.add=Di.prototype.add,Di.prototype.findObject=Di.prototype.fb,Di.prototype.findInVisualTree=Di.prototype.Nl,Di.prototype.walkVisualTreeFrom=Di.prototype.qm,Di.prototype.findMainElement=Di.prototype.Pb;var Tv=!1,vg=null,su=new or;Di.className="Panel",Di.definePanelLayout=Xc,Xc("Position",new Cv),Xc("Vertical",new Ev),Xc("Auto",new kv),Xc("Link",new Lv);function td(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}td.prototype.copy=function(){var a=new td;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},td.className="GradPanelSettings";function Vu(){this.Pc=[],this.Oc=[],this.j=this.ob=xg,this.hb=this.Hb=0,this.Qp=wn,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Vu.prototype.copy=function(a){for(var y=new Vu,x=this.Pc,b=x.length,tt=y.Pc,et=0;et<b;et++)if(x[et]!==void 0){var nt=x[et].copy();nt.wi(a),tt[et]=nt}for(x=this.Oc,b=x.length,tt=y.Oc,et=0;et<b;et++)x[et]!==void 0&&(nt=x[et].copy(),nt.wi(a),tt[et]=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},Vu.className="TablePanelSettings";function pa(a){si(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Ao,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Dv,this.hg=io,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))}pa.prototype.copy=function(){var a=new pa;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=xi(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function a0(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=xi(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}St=pa.prototype,St.qb=function(a){a.classType===pa&&(this.sizing=a)},St.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Gi(this)},St.wi=function(a){this.Me=a},St.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)},St.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===Di.Table)for(var tt=b?y.rowDefs.length:y.colDefs.length,et=0;et<tt;et++){var nt=b?y.rowDefs[et]:y.colDefs[et];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)},St.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(_r,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===Dv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}St.bind=function(a,y,x,b){var tt=null;return typeof a=="string"?tt=new ls(a,y,x,b):tt=a,tt.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&$1(y)&&_e("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+tt+" on "+a)),this.be===null&&(this.be=new oi),this.be.add(tt),this},ge.Object.defineProperties(pa.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&&Ri(a,">= 0",pa,"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&&Ri(a,">= 0",pa,"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))&&Ri(a,">= 0",pa,"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&&Ri(a,">= 0",pa,"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 Kn(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&&r0(a,"RowColumnDefinition.separatorStroke"),a instanceof Jo&&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,tt=0;tt<x;tt++){var et=a[tt];typeof et=="number"&&0<=et&&isFinite(et)||_e("separatorDashArray value "+et+" at index "+tt+" must be a positive number or zero."),b+=et}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&&r0(a,"RowColumnDefinition.background"),a instanceof Jo&&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}}}),pa.prototype.computeEffectiveSpacing=pa.prototype.Wc,pa.prototype.computeEffectiveSpacingTop=pa.prototype.Io;var Dv=new ui(pa,"Default",0),l0=new ui(pa,"None",1),xg=new ui(pa,"ProportionalExtra",2);pa.className="RowColumnDefinition",pa.Default=Dv,pa.None=l0,pa.ProportionalExtra=xg;function lo(a,y){Ue.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)}Nn(lo,Ue),lo.prototype.cloneProtected=function(a){Ue.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=xi(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 au(a){a.Na===null?a.Na=new Bv:a.Na.nc&&(a.Na=a.Na.copy())}St=lo.prototype,St.th=function(){Ue.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},St.qb=function(a){a===Si||a===xr||a===To||a===io?this.geometryStretch=a:Ue.prototype.qb.call(this,a)},St.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Gi(this)};function om(a,y,x,b){var tt=x.length;if(!(4>tt)){var et=b.measuredBounds,nt=Math.max(1,et.width);et=et.height;for(var ot=x[0],at=x[1],ut,ht,gt,bt,Mt,Et,Bt=0,se=Xn(),Jt=2;Jt<tt;Jt+=2)ut=x[Jt],ht=x[Jt+1],gt=ut-ot,ot=ht-at,gt===0&&(gt=.001),bt=ot/gt,Mt=Math.atan2(ot,gt),Et=Math.sqrt(gt*gt+ot*ot),se.push([gt,Mt,bt,Et]),Bt+=Et,ot=ut,at=ht;ot=x[0],at=x[1],gt=b.measuredBounds.width,b instanceof lo&&(gt-=b.strokeWidth),1>gt&&(gt=1),tt=x=gt,ut=nt/2,ht=ut!==0,Jt=0,Et=se[Jt],gt=Et[0],Mt=Et[1],bt=Et[2],Et=Et[3];for(var me=0;.1<=Bt;){if(me===0&&(ht?(tt=x,tt-=ut,Bt-=ut,ht=!1):tt=x,tt===0&&(tt=1)),tt>Bt){qn(se);return}tt>Et?(me=tt-Et,tt=Et):me=0;var Se=Math.sqrt(tt*tt/(1+bt*bt));if(0>gt&&(Se=-Se),ot+=Se,at+=bt*Se,a.translate(ot,at),a.rotate(Mt),a.translate(-(nt/2),-(et/2)),me===0&&b.hh(a,y),a.translate(nt/2,et/2),a.rotate(-Mt),a.translate(-ot,-at),Bt-=tt,Et-=tt,me!==0){if(Jt++,Jt===se.length){qn(se);return}Et=se[Jt],gt=Et[0],Mt=Et[1],bt=Et[2],Et=Et[3],tt=me}}qn(se)}}St.hh=function(a,y){var x=this.xc,b=this.Ui;if(x!==null||b!==null){var tt=this.ua;if(tt!==null){a.yc();var et=this.actualBounds,nt=this.naturalBounds;b!==null&&Us(this,a,b,!0,!1,nt,et);var ot=this.part,at=this.ig;if(x===null||at!==0||ot===null||!this.isPanelMain&&ot.Pb()!==this||(at=ot.type===Di.Link&&ot instanceof Wo&&ot.category==="Selection"&&ot.adornedObject instanceof lo&&ot.adornedPart.Pb()===ot.adornedObject?ot.adornedObject.strokeWidth:0),at===0&&(x=null),x!==null&&at!==0&&(Us(this,a,x,!1,!1,nt,et),a.lineWidth=at,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),et=!1,ot&&y.Gf("drawShadows")&&(et=ot.isShadowed),a.Il===!1&&(et=!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)),tt.type===ii.j)a.beginPath(),a.moveTo(tt.startX,tt.startY),a.lineTo(tt.endX,tt.endY),x!==null&&a.jk(),a.Se();else if(tt.type===ii.u){var ut=tt.startX;at=tt.startY;var ht=tt.endX,gt=tt.endY;tt=Math.min(ut,ht);var bt=Math.min(at,gt);ut=Math.abs(ht-ut),at=Math.abs(gt-at),a.beginPath(),a.rect(tt,bt,ut,at),b!==null&&a.ng(b),x!==null&&(ot&&et&&fc(a),a.jk(),ot&&et&&Yh(a)),a.Se()}else if(tt.type===ii.F)ut=tt.startX,at=tt.startY,ht=tt.endX,gt=tt.endY,tt=Math.abs(ht-ut)/2,bt=Math.abs(gt-at)/2,ut=Math.min(ut,ht)+tt,at=Math.min(at,gt)+bt,a.beginPath(),a.moveTo(ut,at-bt),a.bezierCurveTo(ut+Ke.wg*tt,at-bt,ut+tt,at-Ke.wg*bt,ut+tt,at),a.bezierCurveTo(ut+tt,at+Ke.wg*bt,ut+Ke.wg*tt,at+bt,ut,at+bt),a.bezierCurveTo(ut-Ke.wg*tt,at+bt,ut-tt,at+Ke.wg*bt,ut-tt,at),a.bezierCurveTo(ut-tt,at-Ke.wg*bt,ut-Ke.wg*tt,at-bt,ut,at-bt),a.closePath(),b!==null&&a.ng(b),x!==null&&(ot&&et&&fc(a),a.jk(),ot&&et&&Yh(a)),a.Se();else if(tt.type===ii.o)for(tt=tt.figures,at=tt.length,bt=0;bt<at;bt++){ut=tt.s[bt],a.beginPath(),a.moveTo(ut.startX,ut.startY),ht=ut.segments.s,gt=ht.length;for(var Mt=null,Et=0;Et<gt;Et++){var Bt=ht[Et];switch(Bt.type){case zo:a.moveTo(Bt.endX,Bt.endY);break;case Fo:a.lineTo(Bt.endX,Bt.endY);break;case ys:a.bezierCurveTo(Bt.point1X,Bt.point1Y,Bt.point2X,Bt.point2Y,Bt.endX,Bt.endY);break;case Ys:a.quadraticCurveTo(Bt.point1X,Bt.point1Y,Bt.endX,Bt.endY);break;case us:if(Bt.radiusX===Bt.radiusY){var se=Math.PI/180;a.arc(Bt.point1X,Bt.point1Y,Bt.radiusX,Bt.startAngle*se,(Bt.startAngle+Bt.sweepAngle)*se,0>Bt.sweepAngle,Mt!==null?Mt.endX:ut.startX,Mt!==null?Mt.endY:ut.startY)}else if(Mt=xa(Bt,ut),se=Mt.length,se===0)a.lineTo(Bt.centerX,Bt.centerY);else for(var Jt=0;Jt<se;Jt++){var me=Mt[Jt];Jt===0&&a.lineTo(me[0],me[1]),a.bezierCurveTo(me[2],me[3],me[4],me[5],me[6],me[7])}break;case Ha:if(Jt=se=0,Mt!==null&&Mt.type===us){if(Mt=xa(Mt,ut),me=Mt.length,me===0){a.lineTo(Bt.endX,Bt.endY);break}Mt=Mt[me-1]||null,Mt!==null&&(se=Mt[6],Jt=Mt[7])}else se=Mt!==null?Mt.endX:ut.startX,Jt=Mt!==null?Mt.endY:ut.startY;if(Mt=ps(Bt,ut,se,Jt),se=Mt.length,se===0){a.lineTo(Bt.endX,Bt.endY);break}for(Jt=0;Jt<se;Jt++)me=Mt[Jt],a.bezierCurveTo(me[2],me[3],me[4],me[5],me[6],me[7]);break;default:_e("Segment not of valid type: "+Bt.type)}Bt.isClosed&&a.closePath(),Mt=Bt}ht=ut.isFilled,et?ut.isShadowed?(ht===!0&&b!=="transparent"&&b!==null&&a.ng(b,ut.isEvenOdd),x!==null&&(ht&&ot&&fc(a),a.jk(),ht&&ot&&Yh(a))):(fc(a),ht&&b!=="transparent"&&b!==null&&a.ng(b,ut.isEvenOdd),x!==null&&a.jk(),Yh(a)):(ht&&b!==null&&a.ng(b,ut.isEvenOdd),x!==null&&a.jk()),a.Se(bt)}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),et=this.geometry,a.save(),a.beginPath(),b=Xn(),et.type===ii.j)b.push(et.startX),b.push(et.startY),b.push(et.endX),b.push(et.endY),om(a,y,b,x);else if(et.type===ii.o)for(et=et.figures.iterator;et.next();){for(ot=et.value,b.length=0,b.push(ot.startX),b.push(ot.startY),nt=ot.startX,tt=ot.startY,at=nt,bt=tt,ut=ot.segments.s,ht=ut.length,gt=0;gt<ht;gt++){switch(Et=ut[gt],Et.type){case zo:om(a,y,b,x),b.length=0,b.push(Et.endX),b.push(Et.endY),nt=Et.endX,tt=Et.endY,at=nt,bt=tt;break;case Fo:b.push(Et.endX),b.push(Et.endY),nt=Et.endX,tt=Et.endY;break;case ys:Ke.Qe(nt,tt,Et.point1X,Et.point1Y,Et.point2X,Et.point2Y,Et.endX,Et.endY,.5,b),nt=Et.endX,tt=Et.endY;break;case Ys:Ke.ep(nt,tt,Et.point1X,Et.point1Y,Et.endX,Et.endY,.5,b),nt=Et.endX,tt=Et.endY;break;case us:if(Bt=xa(Et,ot),Mt=Bt.length,Mt===0){b.push(Et.centerX),b.push(Et.centerY),nt=Et.centerX,tt=Et.centerY;break}for(se=0;se<Mt;se++)Jt=Bt[se],Ke.Qe(nt,tt,Jt[2],Jt[3],Jt[4],Jt[5],Jt[6],Jt[7],.5,b),nt=Jt[6],tt=Jt[7];break;case Ha:if(Bt=ps(Et,ot,nt,tt),Mt=Bt.length,Mt===0){b.push(Et.endX),b.push(Et.endY),nt=Et.endX,tt=Et.endY;break}for(se=0;se<Mt;se++)Jt=Bt[se],Ke.Qe(nt,tt,Jt[2],Jt[3],Jt[4],Jt[5],Jt[6],Jt[7],.5,b),nt=Jt[6],tt=Jt[7];break;default:_e("Segment not of valid type: "+Et.type)}Et.isClosed&&(b.push(at),b.push(bt),om(a,y,b,x))}om(a,y,b,x)}else if(et.type===ii.u)b.push(et.startX),b.push(et.startY),b.push(et.endX),b.push(et.startY),b.push(et.endX),b.push(et.endY),b.push(et.startX),b.push(et.endY),b.push(et.startX),b.push(et.startY),om(a,y,b,x);else if(et.type===ii.F){if(tt=new Bs,tt.startX=et.endX,tt.startY=(et.startY+et.endY)/2,nt=new co(us),nt.startAngle=0,nt.sweepAngle=360,nt.centerX=(et.startX+et.endX)/2,nt.centerY=(et.startY+et.endY)/2,nt.radiusX=Math.abs(et.startX-et.endX)/2,nt.radiusY=Math.abs(et.startY-et.endY)/2,tt.add(nt),et=xa(nt,tt),ot=et.length,ot===0)b.push(nt.centerX),b.push(nt.centerY);else for(nt=tt.startX,tt=tt.startY,at=0;at<ot;at++)bt=et[at],Ke.Qe(nt,tt,bt[2],bt[3],bt[4],bt[5],bt[6],bt[7],.5,b),nt=bt[6],tt=bt[7];om(a,y,b,x)}qn(b),a.restore(),a.Vc(!1)}}}},St.kk=function(a,y,x){return!Ue.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)},St.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Ue.prototype.nk.call(this,a)},St.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)}},St.ga=function(a,y){if(y===void 0&&(y=new Gt),a instanceof gn){a.Mc()&&_e("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},St.mi=function(a){a===void 0&&(a=new je);var y=this.naturalBounds,x=this.oe;y=je.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=Gt.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),Je(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),Je(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),Je(a,b.x,b.y,0,0),je.free(y),Gt.free(b),a},St.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var b=x.bounds,tt=this.strokeWidth/2;x.type!==ii.j||y||(tt+=2);var et=je.alloc();if(et.assign(b),et.Bc(tt+2,tt+2),!et.ca(a))return je.free(et),!1;if(b=tt+1e-4,x.type===ii.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:(je.free(et),Ke.Yb(x.startX,x.startY,x.endX,x.endY,tt,a.x,a.y));if(x.type===ii.u){y=x.startX;var nt=x.startY,ot=x.endX;if(x=x.endY,et.x=Math.min(y,ot),et.y=Math.min(nt,x),et.width=Math.abs(ot-y),et.height=Math.abs(x-nt),this.fill===null){if(et.Bc(-b,-b),et.ca(a))return je.free(et),!1;et.Bc(b,b)}return this.stroke!==null&&et.Bc(tt,tt),a=et.ca(a),je.free(et),a}if(x.type===ii.F){nt=x.startX,tt=x.startY,ot=x.endX;var at=x.endY;if(x=Math.min(nt,ot),y=Math.min(tt,at),nt=Math.abs(ot-nt)/2,tt=Math.abs(at-tt)/2,x=a.x-(x+nt),y=a.y-(y+tt),this.fill===null){if(nt-=b,tt-=b,0>=nt||0>=tt||1>=x*x/(nt*nt)+y*y/(tt*tt))return je.free(et),!1;nt+=b,tt+=b}return this.stroke!==null&&(nt+=b,tt+=b),je.free(et),0>=nt||0>=tt?!1:1>=x*x/(nt*nt)+y*y/(tt*tt)}if(x.type===ii.o)return je.free(et),this.fill===null?Na(x,a.x,a.y,tt):Rs(x,a,tt,1<this.strokeWidth,y);_e("Unknown Geometry type: "+x.type)},St.Wl=function(a,y,x,b){var tt=this.desiredSize,et=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=Gy[ot];if(at===void 0){var ut=Ke.Ze[ot];typeof ut=="string"&&(ut=Ke.Ze[ut]),typeof ut=="function"?(at=ut(null,100,100),Gy[ot]=at):_e("Unsupported Figure: "+ot)}nt=at.bounds}ot=nt.width,at=nt.height,ut=nt.width;var ht=nt.height;switch(Fl(this,!0)){case Si:b=x=0;break;case Li:ut=Math.max(a-et,0),ht=Math.max(y-et,0);break;case Er:ut=Math.max(a-et,0),b=0;break;case Rr:x=0,ht=Math.max(y-et,0)}isFinite(tt.width)&&(ut=tt.width),isFinite(tt.height)&&(ht=tt.height);var gt=this.maxSize,bt=this.minSize;switch(x=Math.max(x-et,bt.width),b=Math.max(b-et,bt.height),ut=Math.min(gt.width,ut),ht=Math.min(gt.height,ht),ut=isFinite(ut)?Math.max(x,ut):Math.max(ot,x),ht=isFinite(ht)?Math.max(b,ht):Math.max(at,b),x=sm(this),x){case Si:break;case Li:ot=ut,at=ht;break;case xr:x=Math.min(ut/ot,ht/at),isFinite(x)||(x=1),ot*=x,at*=x;break;default:_e(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&&Ke.$(this.ua.Sk,a-et)&&Ke.$(this.ua.Rk,y-et)||(this.ua=lo.makeGeometry(this,ot,at)),nt=this.ua.bounds,a===1/0||y===1/0?this.Ge(nt.x-et/2,nt.y-et/2,a===0&&ot===0?0:nt.width+et,y===0&&at===0?0:nt.height+et):this.Ge(-(et/2),-(et/2),ut+et,ht+et),tt.w()?(ut=tt.width,ht=tt.height,ut=Math.min(gt.width,ut),ht=Math.min(gt.height,ht),ut=Math.max(bt.width,ut),ht=Math.max(bt.height,ht),this.dc.h(0,0,ut,ht)):this.dc.assign(nt)};function sm(a){var y=a.geometryStretch;return a.Rd!==null?y===io?Li:y:y===io?Gy[a.figure].defaultStretch:y}St.eh=function(a,y,x,b){Al(this,a,y,x,b)},St.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},St.Sj=function(a,y,x,b,tt){var et=this.transform,nt=1/(et.m11*et.m22-et.m12*et.m21),ot=et.m22*nt,at=-et.m12*nt,ut=-et.m21*nt,ht=et.m11*nt,gt=nt*(et.m21*et.dy-et.m22*et.dx),bt=nt*(et.m12*et.dx-et.m11*et.dy);et=a*ot+y*ut+gt,nt=a*at+y*ht+bt,ot=x*ot+b*ut+gt,at=x*at+b*ht+bt,gt=this.ig/2,ut=this.ua,ut===null&&(this.measure(1/0,1/0),ut=this.ua);var Mt=ut.bounds;if(ht=!1,ut.type===ii.j)if(1.5>=this.strokeWidth)ht=Ke.Ve(ut.startX,ut.startY,ut.endX,ut.endY,et,nt,ot,at,tt);else{if(ut.startX===ut.endX?(b=gt,ht=0):(y=(ut.endY-ut.startY)/(ut.endX-ut.startX),ht=gt/Math.sqrt(1+y*y),b=ht*y),y=Xn(),a=new Gt,Ke.Ve(ut.startX+b,ut.startY+ht,ut.endX+b,ut.endY+ht,et,nt,ot,at,a)&&y.push(a),a=new Gt,Ke.Ve(ut.startX-b,ut.startY-ht,ut.endX-b,ut.endY-ht,et,nt,ot,at,a)&&y.push(a),a=new Gt,Ke.Ve(ut.startX+b,ut.startY+ht,ut.startX-b,ut.startY-ht,et,nt,ot,at,a)&&y.push(a),a=new Gt,Ke.Ve(ut.endX+b,ut.endY+ht,ut.endX-b,ut.endY-ht,et,nt,ot,at,a)&&y.push(a),ot=y.length,ot===0)return qn(y),!1;for(ht=!0,at=1/0,b=0;b<ot;b++)a=y[b],x=(a.x-et)*(a.x-et)+(a.y-nt)*(a.y-nt),x<at&&(at=x,tt.x=a.x,tt.y=a.y);qn(y)}else if(ut.type===ii.u)ht=Ke.Ff(Mt.x-gt,Mt.y-gt,Mt.x+Mt.width+gt,Mt.y+Mt.height+gt,et,nt,ot,at,tt);else if(ut.type===ii.F){y=je.allocAt(Mt.x,Mt.y,Mt.width,Mt.height).Bc(gt,gt);t:if(y.width===0)ht=Ke.Ve(y.x,y.y,y.x,y.y+y.height,et,nt,ot,at,tt);else if(y.height===0)ht=Ke.Ve(y.x,y.y,y.x+y.width,y.y,et,nt,ot,at,tt);else{if(a=y.width/2,ut=y.height/2,b=y.x+a,ht=y.y+ut,x=9999,et!==ot&&(x=(nt-at)/(et-ot)),9999>Math.abs(x)){if(at=nt-ht-x*(et-b),0>a*a*x*x+ut*ut-at*at){tt.x=NaN,tt.y=NaN,ht=!1;break t}gt=Math.sqrt(a*a*x*x+ut*ut-at*at),ot=(-(a*a*x*at)+a*ut*gt)/(ut*ut+a*a*x*x)+b,a=(-(a*a*x*at)-a*ut*gt)/(ut*ut+a*a*x*x)+b,ut=x*(ot-b)+at+ht,at=x*(a-b)+at+ht,Math.abs((et-ot)*(et-ot))+Math.abs((nt-ut)*(nt-ut))<Math.abs((et-a)*(et-a))+Math.abs((nt-at)*(nt-at))?(tt.x=ot,tt.y=ut):(tt.x=a,tt.y=at)}else{if(ot=ut*ut,at=et-b,ot-=ot/(a*a)*at*at,0>ot){tt.x=NaN,tt.y=NaN,ht=!1;break t}at=Math.sqrt(ot),ot=ht+at,at=ht-at,Math.abs(ot-nt)<Math.abs(at-nt)?(tt.x=et,tt.y=ot):(tt.x=et,tt.y=at)}ht=!0}je.free(y)}else if(ut.type===ii.o){bt=Gt.alloc();var Et=ot-et,Bt=at-nt,se=Et*Et+Bt*Bt,Jt=et,me=nt;if(0<se&&Mt.contains(Jt,me)&&(bt.x=Jt,bt.y=me,this.ca(bt)))for(Et!==0&&.5>Math.abs(Et)?(Bt*=.5/Et,Et=.5):Bt!==0&&.5>Math.abs(Bt)&&(Et*=.5/Bt,Bt=.5),Jt-=Et,me-=Bt;Mt.contains(Jt,me);)Jt-=Et,me-=Bt;for(tt.x=ot,tt.y=at,Bt=0;Bt<ut.figures.count;Bt++){var Se=ut.figures.s[Bt],Le=Se.isFilled?Jt:et,Ve=Se.isFilled?me:nt,fn=Se.segments;Mt=Se.startX,Et=Se.startY;for(var nr=Mt,mr=Et,dr=0;dr<fn.count;dr++){var Hi=fn.s[dr],vi=Hi.type,ro=Hi.endX,Ur=Hi.endY,qo=!1;switch(vi){case zo:nr=ro,mr=Ur;break;case Fo:qo=nl(Mt,Et,ro,Ur,Le,Ve,ot,at,bt);break;case ys:qo=Ke.Eo(Mt,Et,Hi.point1X,Hi.point1Y,Hi.point2X,Hi.point2Y,ro,Ur,Le,Ve,ot,at,.6,bt);break;case Ys:qo=Ke.Eo(Mt,Et,Mt+2/3*(Hi.point1X-Mt),Et+2/3*(Hi.point1Y-Et),ro+2/3*(Hi.point1X-ro),Ur+2/3*(Hi.point1Y-Ur),ro,Ur,Le,Ve,ot,at,.6,bt);break;case us:case Ha:vi=Hi.type===us?xa(Hi,Se):ps(Hi,Se,Mt,Et);var Es=vi.length;if(Es===0){qo=nl(Mt,Et,Hi.type===us?Hi.centerX:Hi.endX,Hi.type===us?Hi.centerY:Hi.endY,Le,Ve,ot,at,bt);break}for(Ur=null,ro=0;ro<Es;ro++){if(Ur=vi[ro],ro===0&&nl(Mt,Et,Ur[0],Ur[1],Le,Ve,ot,at,bt)){var Ja=Ov(Le,Ve,bt,se,tt);Ja<se&&(se=Ja,ht=!0)}Ke.Eo(Ur[0],Ur[1],Ur[2],Ur[3],Ur[4],Ur[5],Ur[6],Ur[7],Le,Ve,ot,at,.6,bt)&&(Ja=Ov(Le,Ve,bt,se,tt),Ja<se&&(se=Ja,ht=!0))}ro=Ur[6],Ur=Ur[7];break;default:_e("Unknown Segment type: "+vi)}Mt=ro,Et=Ur,qo&&(qo=Ov(Le,Ve,bt,se,tt),qo<se&&(se=qo,ht=!0)),Hi.isClosed&&(ro=nr,Ur=mr,nl(Mt,Et,ro,Ur,Le,Ve,ot,at,bt)&&(Hi=Ov(Le,Ve,bt,se,tt),Hi<se&&(se=Hi,ht=!0)))}}et=x-a,nt=b-y,ot=Math.sqrt(et*et+nt*nt),ot!==0&&(et/=ot,nt/=ot),tt.x-=et*gt,tt.y-=nt*gt,Gt.free(bt)}else _e("Unknown Geometry type: "+ut.type);return ht?(this.transform.Ga(tt),!0):!1};function Ov(a,y,x,b,tt){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<b?(tt.x=x.x,tt.y=x.y,y):b}function nl(a,y,x,b,tt,et,nt,ot,at){if(Ke.$(a,x)&&Ke.$(y,b)||Ke.$(tt,nt)&&Ke.$(et,ot))return!1;var ut=!1,ht=(tt-nt)*(y-b)-(et-ot)*(a-x);return ht===0?!1:(at.x=((tt*ot-et*nt)*(a-x)-(tt-nt)*(a*b-y*x))/ht,at.y=((tt*ot-et*nt)*(y-b)-(et-ot)*(a*b-y*x))/ht,(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||Ke.$(at.y,a))&&(at.y<y||Ke.$(at.y,y))&&(ut=!0)):(y=a<x?a:x,a=a<x?x:a,(at.x>y||Ke.$(at.x,y))&&(at.x<a||Ke.$(at.x,a))&&(ut=!0)),ut)}St.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,tt=!1,et=Gt.alloc();return et.h(x.x-b,x.y-b),a.ca(y.Ga(et))&&(et.h(x.x-b,x.bottom+b),a.ca(y.Ga(et))&&(et.h(x.right+b,x.bottom+b),a.ca(y.Ga(et))&&(et.h(x.right+b,x.y-b),a.ca(y.Ga(et))&&(tt=!0)))),Gt.free(et),tt},St.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Hr.alloc();x.set(y),x.Vj();var b=a.left,tt=a.right,et=a.top;a=a.bottom;var nt=Gt.alloc();if(nt.h(b,et),x.Ga(nt),this.gh(nt,!0)||(nt.h(tt,et),x.Ga(nt),this.gh(nt,!0))||(nt.h(b,a),x.Ga(nt),this.gh(nt,!0))||(nt.h(tt,a),x.Ga(nt),this.gh(nt,!0)))return Gt.free(nt),!0;var ot=Gt.alloc(),at=Gt.alloc();return x.set(y),x.bv(this.transform),x.Vj(),ot.x=tt,ot.y=et,ot.transform(x),nt.x=b,nt.y=et,nt.transform(x),y=!1,ip(this,nt,ot,at)?y=!0:(nt.x=tt,nt.y=a,nt.transform(x),ip(this,nt,ot,at)?y=!0:(ot.x=b,ot.y=a,ot.transform(x),ip(this,nt,ot,at)?y=!0:(nt.x=b,nt.y=et,nt.transform(x),ip(this,nt,ot,at)&&(y=!0)))),Gt.free(nt),Hr.free(x),Gt.free(ot),Gt.free(at),y};function ip(a,y,x,b){if(!a.rs(y,x,b))return!1;a=y.x,y=y.y;var tt=x.x,et=x.y;return x=b.x,b=b.y,a===tt?(y<et?(a=y,y=et):a=et,b>=a&&b<=y):(a<tt?(b=a,a=tt):b=tt,x>=b&&x<=a)}St.tx=function(a,y,x){function b(se,Jt){for(var me=se.length,Se=0;Se<me;Se+=2)if(Jt.zd(se[Se],se[Se+1])>tt)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var tt=a.Bf(y),et=tt;if(1.5<this.strokeWidth&&(tt=this.strokeWidth/2+Math.sqrt(tt),tt*=tt),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,yn(a.x,a.y,ot,at)<=tt&&yn(a.x,a.y,ut,at)<=tt&&yn(a.x,a.y,ot,nt)<=tt&&yn(a.x,a.y,ut,nt)<=tt)return!0}if(ot=y.startX,at=y.startY,ut=y.endX,nt=y.endY,y.type===ii.j){if(x=(ot-ut)*(a.x-ut)+(at-nt)*(a.y-nt),Ae(a.x,a.y,ot,at,ut,nt)<=(0<=(ut-ot)*(a.x-ot)+(nt-at)*(a.y-at)&&0<=x?tt:et))return!0}else{if(y.type===ii.u)return y=!1,x&&(y=Ae(a.x,a.y,ot,at,ot,nt)<=tt||Ae(a.x,a.y,ot,at,ut,at)<=tt||Ae(a.x,a.y,ut,at,ut,nt)<=tt||Ae(a.x,a.y,ot,nt,ut,nt)<=tt),y;if(y.type===ii.F){y=a.x-(ot+ut)/2,et=a.y-(at+nt)/2;var ht=Math.abs(ut-ot)/2,gt=Math.abs(nt-at)/2;if(ht===0||gt===0)return Ae(a.x,a.y,ot,at,ut,nt)<=tt;if(x){if(a=Ke.$y(ht,gt,y,et),a*a<=tt)return!0}else return!(yn(y,et,-ht,0)>=tt||yn(y,et,0,-gt)>=tt||yn(y,et,0,gt)>=tt||yn(y,et,ht,0)>=tt)}else if(y.type===ii.o){if(ut=y.bounds,et=ut.x,ot=ut.y,at=ut.x+ut.width,ut=ut.y+ut.height,a.x>at&&a.x<et&&a.y>ut&&a.y<ot&&Ae(a.x,a.y,et,ot,et,ut)>tt&&Ae(a.x,a.y,et,ot,at,ot)>tt&&Ae(a.x,a.y,at,ut,et,ut)>tt&&Ae(a.x,a.y,at,ut,at,ot)>tt)return!1;if(et=Math.sqrt(tt),x){if(this.fill===null?Na(y,a.x,a.y,et):Rs(y,a,et,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(et=x.s[y],nt=et.startX,ht=et.startY,a.zd(nt,ht)>tt)return!1;for(ot=et.segments.s,at=ot.length,ut=0;ut<at;ut++)switch(gt=ot[ut],gt.type){case zo:case Fo:if(nt=gt.endX,ht=gt.endY,a.zd(nt,ht)>tt)return!1;break;case ys:var bt=Xn();if(Ke.Qe(nt,ht,gt.point1X,gt.point1Y,gt.point2X,gt.point2Y,gt.endX,gt.endY,.8,bt),nt=b(bt,a),qn(bt),nt||(nt=gt.endX,ht=gt.endY,a.zd(nt,ht)>tt))return!1;break;case Ys:if(bt=Xn(),Ke.ep(nt,ht,gt.point1X,gt.point1Y,gt.endX,gt.endY,.8,bt),nt=b(bt,a),qn(bt),nt||(nt=gt.endX,ht=gt.endY,a.zd(nt,ht)>tt))return!1;break;case us:case Ha:bt=gt.type===us?xa(gt,et):ps(gt,et,nt,ht);var Mt=bt.length;if(Mt===0){if(nt=gt.type===us?gt.centerX:gt.endX,ht=gt.type===us?gt.centerY:gt.endY,a.zd(nt,ht)>tt)return!1;break}gt=null;for(var Et=Xn(),Bt=0;Bt<Mt;Bt++)if(gt=bt[Bt],Et.length=0,Ke.Qe(gt[0],gt[1],gt[2],gt[3],gt[4],gt[5],gt[6],gt[7],.8,Et),b(Et,a))return qn(Et),!1;qn(Et),gt!==null&&(nt=gt[6],ht=gt[7]);break;default:_e("Unknown Segment type: "+gt.type)}}return!0}}}return!1},St.qc=function(){this.ua=null},St.kq=function(){return this.ig};function Zy(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=xm,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=is):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new gn(1-is.x,is.y)))}lo.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=pc[a.toArrow];else a.fromArrow!=="None"?b=pc[a.fromArrow]:(b=Ke.Ze[a.figure],typeof b=="string"&&(b=Ke.Ze[b]),b===void 0&&_e("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var tt=Ke.Ze.Rectangle;typeof tt=="function"&&(b=tt(a,y,x))}return b};function rp(a){var y=pc[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=pc[x],y===void 0){var b=null,tt;for(tt in Ke.um)if(tt.toLowerCase()===x){b=tt;break}if(b!==null)return a=ii.parse(Ke.um[b],!1),pc[b]=a,x!==b&&(pc[x]=b),b}}return typeof y=="string"?y:y instanceof ii?a:null}ge.Object.defineProperties(lo.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),el(this)&&(a=this.part,a!==null&&As(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=ii.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Gt.allocAt(-y.x,-y.y),Gt.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&&r0(a,"Shape.fill"),a instanceof Jo&&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&&r0(a,"Shape.stroke"),a instanceof Jo&&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 Ri(a,"value >= 0",lo,"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"?Ri(a,'"butt", "round", or "square"',lo,"strokeCap"):(au(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"?Ri(a,'"miter", "bevel", or "round"',lo,"strokeJoin"):(au(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){au(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,tt=0;tt<x;tt++){var et=a[tt];0<=et&&isFinite(et)||_e("strokeDashArray:value "+et+" at index "+tt+" must be a positive number or zero."),b+=et}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&&(au(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=Ke.Ze[a];typeof x=="function"?x=a:(x=Ke.Ze[a.toLowerCase()])||_e("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=rp(a);x===null?_e("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Yc),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),Zy(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=rp(a);x===null?_e("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Yc),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),Zy(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Ao},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),au(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Ao},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),au(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&&(au(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:io},set:function(a){var y=this.geometryStretch;y!==a&&(au(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 Ch),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&Uc(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 Ch),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 Ch),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 Ch),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),lo.prototype.intersectsRect=lo.prototype.Yc,lo.prototype.containedInRect=lo.prototype.fh,lo.prototype.getNearestIntersectionPoint=lo.prototype.rs,lo.prototype.getDocumentBounds=lo.prototype.mi,lo.prototype.getDocumentPoint=lo.prototype.ga;var pc=new Kr,Gy=new Kr;lo.className="Shape",lo.getFigureGenerators=function(){var a=new or,y;for(y in Ke.Ze)y!==y.toLowerCase()&&a.add(y,Ke.Ze[y]);return a.freeze(),a},lo.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Ke.Ze;b[a]=y,b[x]=a},lo.getArrowheadGeometries=function(){var a=new or;for(b in Ke.um)if(pc[b]===void 0){var y=ii.parse(Ke.um[b],!1);pc[b]=y,y=b.toLowerCase(),y!==b&&(pc[y]=b)}for(var x in pc)if(x!==x.toLowerCase()){var b=pc[x];b instanceof ii&&a.add(x,b)}return a.freeze(),a},lo.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=ii.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||_e("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=pc;b[a]=x,b[y]=a};function Bv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=io,this.gg=this.fg=Ao}Bv.prototype.copy=function(){var a=new Bv;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 as(a,y){return Ue.call(this),Hv||(Ul=ts?new ec(null).context:null,Hv=!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}Nn(as,Ue),as.prototype.cloneProtected=function(a){Ue.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 hl(a){a.da===null?a.da=new Jy:a.da.nc&&(a.da=a.da.copy())}St=as.prototype,St.th=function(){Ue.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function Iv(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}St.qb=function(a){a.classType===as?this.wrap=a:Ue.prototype.qb.call(this,a)},St.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},St.v=function(){Ue.prototype.v.call(this)},St.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,b=this.actualBounds,tt=x.width,et=x.height,nt=bg(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;Us(this,a,this.xc,!0,!1,x,b),(at||ut)&&Us(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var ht=this.oe,gt=ht.dx-(nt*ht.m21+ht.dx);ht=ht.dy-(nt*ht.m22+ht.dy);var bt=y.scale;switch(8>(gt*gt+ht*ht)*bt*bt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof wl&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,gt=this.spacingBelow,this.flip){case Ro:a.translate(tt,0),a.scale(-1,1);break;case fo:a.translate(0,et),a.scale(1,-1);break;case $o:a.translate(tt,et),a.scale(-1,-1)}if(a.yc(),ht=this.Gc,bt=(y+nt+gt)*ht,et>bt&&(b=this.verticalAlignment,b=b.y*et-b.y*bt+b.offsetY),ht===1&&this.ze!==null)gt=this.Cb,gt>tt&&(gt=tt),this.Oj(this.ze,a,0,b+y,tt,nt,gt,x,ot,at,ut);else if(this.Qc!==null&&this.Qb!==null)for(bt=0;bt<ht;bt++){var Mt=this.Qc[bt];Mt>tt&&(Mt=tt),b+=y,this.Oj(this.Qb[bt],a,0,b,tt,nt,Mt,x,ot,at,ut),b+=nt+gt}switch(this.flip){case Ro:a.scale(-1,1),a.translate(-tt,0);break;case fo:a.scale(1,-1),a.translate(0,-et);break;case $o:a.scale(-1,-1),a.translate(-tt,-et)}}},St.Oj=function(a,y,x,b,tt,et,nt,ot,at,ut,ht){var gt=0;if(ot)at==="left"?gt=0:at==="right"?gt=tt-nt:at==="center"&&(gt=(tt-nt)/2),y.fillRect(x+gt,b+.25*et,nt,1);else{if(at==="left"?gt=0:at==="right"?gt=tt:at==="center"&&(gt=tt/2),tt=Rv!==null?Rv(this,et):.75*et,y.fillText(a,x+gt,b+tt),a=et/20|0,a===0&&(a=1),at==="right"?gt-=nt:at==="center"&&(gt-=nt/2),ut){ot=Sg!==null?Sg(this,et):.8*et,at=x+gt,ut=b+ot,tt=x+gt+nt,ot=b+ot;var bt=a;y.beginPath(),y.lineWidth=bt,y.moveTo(at,ut),y.lineTo(tt,ot),y.stroke(),y.Se(),y instanceof wl&&y.ad.classList.add("gojs-td")}ht&&(ht=b+et-et/2.2|0,a%2!==0&&(ht+=.5),b=x+gt,et=ht,x=x+gt+nt,nt=ht,gt=a,y.beginPath(),y.lineWidth=gt,y.moveTo(b,et),y.lineTo(x,nt),y.stroke(),y.Se(),y instanceof wl&&y.ad.classList.add("gojs-td"))}},St.kk=function(a,y,x){if(!Ue.prototype.kk.call(this,a,y,x))return!1;if(Us(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++)V1(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,V1(a,y,!0);return!0},St.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Ue.prototype.nk.call(this,a)},St.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)}},St.Wl=function(a,y,x,b){var tt=this.Gc;this.Ih=a,this.l&=-16777217;var et=this.Ae;Ul!==null&&ex!==et&&(ex=Ul.font=et),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var nt;if(isNaN(this.desiredSize.width)){if(et=this.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),et.length===0)et=8;else if(this.isMultiline){for(var ot=nt=0,at=!1;!at;){var ut=et.indexOf(`
|
|
|
`,ot);ut===-1&&(ut=et.length,at=!0),ot=et.substr(ot,ut-ot),this.formatting===Mg&&(ot=ot.trim()),nt=Math.max(nt,mc(ot)),ot=ut+1}et=nt}else nt=et.indexOf(`
|
|
|
`,0),0<=nt&&(et=et.substr(0,nt)),et=mc(et);et=Math.min(et,a/this.scale)}else et=this.desiredSize.width;if(this.panel!==null&&(et=Math.min(et,this.panel.maxSize.width)),nt=Fv(this,et),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===Cg&&(y=this.Ae,y=this.overflow===Cg?wg(y):0,ut=this.spacingAbove+this.spacingBelow,ut=Math.max(0,bg(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);mc(ut)>y&&1<ut.length;)ut=ut.substr(0,ut.length-1);ut+=Eg,y=mc(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===um||isNaN(this.desiredSize.width))&&(et=isNaN(a)?this.Cb:Math.min(a,this.Cb)),et=Math.max(x,et),nt=Math.max(b,nt),ve(this.dc,et,nt),this.Ge(0,0,et,nt),this.svg!==null&&tt!==this.Gc&&(this.Uc=!0)},St.eh=function(a,y,x,b){Al(this,a,y,x,b)};function Ad(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 Yy(a,y,x,b){var tt=a.formatting===Mg;tt&&(y=y.trim());var et=0,nt=a.Ae,ot=a.spacingAbove+a.spacingBelow;ot=Math.max(0,bg(a)+ot);var at=a.overflow===Cg?wg(nt):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,ot);else if(nt=y,a.wrap===lm){a.Le=1;var ut=mc(y);if(at===0||ut<=x)a.Cb=Math.max(a.Cb,ut),Ad(a,y,a.Cb),b!==null&&b.h(ut,ot);else{for(et=am(a,nt),nt=nt.substr(et.length),y=am(a,nt),ut=mc(et+y);0<y.length&&ut<=x;)et+=y,nt=nt.substr(y.length),y=am(a,nt),ut=et+y,tt&&(ut=ut.trim()),ut=mc(ut);for(tt&&(y=y.trim()),et+=y,x=Math.max(1,x-at);mc(et)>x&&1<et.length;)et=et.substr(0,et.length-1);a.l|=16777216,et+=Eg;var ht=mc(et);a.Cb=ht,Ad(a,et,ht),b!==null&&b.h(ht,ot)}}else{for(at=0,nt.length===0&&(at=1,Ad(a,nt,0));0<nt.length;){for(y=am(a,nt),nt=nt.substr(y.length);mc(y)>x;){var gt=1;for(ut=mc(y.substr(0,gt)),ht=0;ut<=x;)gt++,ht=ut,ut=mc(y.substr(0,gt));if(gt===1){var bt=ut;et=Math.max(et,ut)}else bt=ht,et=Math.max(et,ht);if(gt--,1>gt&&(gt=1),Ad(a,y.substr(0,gt),bt),at++,y=y.substr(gt),a.Gc+at>a.maxLines)break}for(ht=am(a,nt),ut=mc(y+ht);0<ht.length&&ut<=x;)y+=ht,nt=nt.substr(ht.length),ht=am(a,nt),ut=y+ht,tt&&(ut=ut.trim()),ut=mc(ut);if(tt&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ht.length===0?(gt=ut,et=Math.max(et,ut)):(gt=ht=mc(y),et=Math.max(et,ht)),Ad(a,y,gt),at++,a.Gc+at>a.maxLines))break}a.Le=Math.min(a.maxLines,at),a.Cb=Math.max(a.Cb,et),b!==null&&b.h(a.Cb,ot*a.Le)}}function am(a,y){if(a.wrap===cm)return y.substr(0,1);for(var x=y.length,b=0,tt=Rb;b<x&&!tt.test(y.charAt(b));)b++;for(a.formatting===tx&&(x=Math.min(x,b+1));b<x&&tt.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function mc(a){return Ul===null?8*a.length:Ul.measureText(a).width}function bg(a){if(a.df!==null)return a.df;var y=a.Ae;if(Ul===null){var x=16;return a.df=x}return u0[y]!==void 0&&5e3>hm?x=u0[y]:(x=1.3*Ul.measureText("M").width,u0[y]=x,hm++),a.df=x}function wg(a){if(Ul===null)return 6;if(jv[a]!==void 0&&5e3>Kv)var y=jv[a];else y=Ul.measureText(Eg).width,jv[a]=y,Kv++;return y}function Fv(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,bg(a)+b),x.length===0)return a.Cb=0,a.Gc=1,b;if(!a.isMultiline){var tt=x.indexOf(`
|
|
|
`,0);0<=tt&&(x=x.substr(0,tt))}tt=0;for(var et=a.Gc=0,nt,ot=!1;!ot;){if(nt=x.indexOf(`
|
|
|
`,et),nt===-1&&(nt=x.length,ot=!0),et<=nt){if(et=x.substr(et,nt-et),a.wrap!==lm){a.Le=0;var at=An.alloc();Yy(a,et,y,at),tt+=at.height,An.free(at),a.Gc+=a.Le}else Yy(a,et,y,null),tt+=b,a.Gc++;a.Gc===a.maxLines&&(ot=!0)}et=nt+1}return a.Lq=tt}ge.Object.defineProperties(as.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"||(hl(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Si},set:function(a){var y=this.flip;y!==a&&(hl(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:xs},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),hl(this),this.da.Yr=a,Ga(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=An.alloc();Yy(this,this.ec,999999,a);var y=a.width;An.free(a),a=Fv(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),ve(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:zv},set:function(a){var y=this.wrap;y!==a&&(hl(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Xy},set:function(a){var y=this.overflow;y!==a&&(hl(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&&r0(a,"TextBlock.stroke"),a instanceof Jo&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return bg(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&&(hl(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&&(hl(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 Ch),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 Ch),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 Ch),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 Ch),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 Ch),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&&(hl(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&&(hl(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&&(hl(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&&(hl(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:Mg},set:function(a){var y=this.formatting;y!==a&&(hl(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&&Ri(a,"> 0",as,"maxLines"),hl(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 Rv=null,Sg=null,lm=new ui(as,"None",0),um=new ui(as,"WrapFit",1),zv=new ui(as,"WrapDesiredSize",2),cm=new ui(as,"WrapBreakAll",3),Xy=new ui(as,"OverflowClip",0),Cg=new ui(as,"OverflowEllipsis",1),Mg=new ui(as,"FormatTrim",0),tx=new ui(as,"FormatNone",0),Rb=/[ \u200b\u00ad]/,u0=new Kr,hm=0,jv=new Kr,Kv=0,Eg="...",ex="",Ul=null,Hv=!1;as.className="TextBlock";function Jy(){this.nc=!1,this.Hd=null,this.Xf=Si,this.gq=Mg,this.Jq=1/0,this.$q=Xy,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=xs,this.$r=zv}Jy.prototype.copy=function(){var a=new Jy;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},as.getEllipsis=function(){return Eg},as.setEllipsis=function(a){Eg=a,jv=new Kr,Kv=0},as.getBaseline=function(){return Rv},as.setBaseline=function(a){Rv=a},as.getUnderline=function(){return Sg},as.setUnderline=function(a){Sg=a},as.isValidFont=function(a){if(Hv||(Ul=ts?new ec(null).context:null,Hv=!0),Ul===null)return!0;var y=Ul.font;if(a===y||a==="10px sans-serif")return!0;Ul.font="10px sans-serif",Ul.font=a;var x=Ul.font;if(x!=="10px sans-serif")return Ul.font=y,!0;Ul.font="19px serif";var b=Ul.font;return Ul.font=a,x=Ul.font,Ul.font=y,x!==b},as.FormatNone=tx,as.FormatTrim=Mg,as.None=lm,as.OverflowClip=Xy,as.OverflowEllipsis=Cg,as.WrapBreakAll=cm,as.WrapDesiredSize=zv,as.WrapFit=um;function Ch(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Ch.prototype.copy=function(){var a=new Ch;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Ch.className="GradElementSettings";function Zl(a,y){Ue.call(this),this.Eg=null,this.qo="",this.Xg=zi,this.Nk=Li,this.Zg=this.Hd=null,this.Mk=yr,this.Xf=Si,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 dm;Nn(Zl,Ue),Zl.prototype.cloneProtected=function(a){Ue.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},Zl.prototype.qb=function(a){a===Si||a===xr||a===To?this.imageStretch=a:Ue.prototype.qb.call(this,a)},Zl.prototype.toString=function(){return"Picture("+this.source+")#"+Gi(this)};function fm(a){a===void 0&&(a=""),a!==""?dm[a]&&(delete dm[a],c0--):(dm=new Kr,c0=0)}function nx(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 tt=b.value;tt.N();var et=y.getAttribute("src")||"",nt=tt.Og.I(et);if(nt!==null)for(var ot=nt.length,at=0;at<ot;at++)et=nt[at],tt.Xn.add(et),et.Uc=!0,tt.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),et.Zg!==null&&et.Zg(et,x))}y.Bg.clear()}a.desiredSize.w()||(ta(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 tt=b.value,et=y.getAttribute("src")||"",nt=tt.Og.I(et);if(nt!==null){tt=nt.length,et=Xn();for(var ot=0;ot<tt;ot++)et.push(nt[ot]);if(y.hn)for(ot=0;ot<tt;ot++)nt=et[ot],nt.Hd!==null&&nt.Hd(nt,x);qn(et)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}Zl.prototype.hA=function(){if(this.source!==""){fm(this.source);var a=this.source;this.source="",this.source=a}},Zl.prototype.redraw=function(){this.N(),this.Uc=!0},Zl.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 Sh)){var tt=a instanceof wl;b=this.naturalBounds;var et=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,ht=ot;this.sourceRect.w()&&(et=this.Xg.x,nt=this.Xg.y,at=this.Xg.width,ot=this.Xg.height);var gt=at,bt=ot,Mt=this.Nk,Et=this.Mk;switch(Mt){case Si:if(this.sourceRect.w())break;gt>=b.width&&(et=et+Et.offsetX+(gt*Et.x-b.width*Et.x)),bt>=b.height&&(nt=nt+Et.offsetY+(bt*Et.y-b.height*Et.y)),at=Math.min(b.width,gt),ot=Math.min(b.height,bt);break;case Li:gt=b.width,bt=b.height;break;case xr:case To:Mt===xr?(Mt=Math.min(b.height/bt,b.width/gt),gt*=Mt,bt*=Mt):Mt===To&&(Mt=Math.max(b.height/bt,b.width/gt),gt*=Mt,bt*=Mt,gt>=b.width&&(et=(et+Et.offsetX+(gt*Et.x-b.width*Et.x)/gt)*at),bt>=b.height&&(nt=(nt+Et.offsetY+(bt*Et.y-b.height*Et.y)/bt)*ot),at*=1/(gt/b.width),ot*=1/(bt/b.height),gt=b.width,bt=b.height)}Mt=this.Df()*y.scale;var Bt=gt*Mt*bt*Mt,se=at*ot/Bt,Jt=x.__goCache;Mt=null;var me=h0;if(!tt){if(x.sq&&Jt!==void 0&&4<Bt&&se>me*me)for(Jt.gi===null&&(pm(Jt,4,ut,ht,x),pm(Jt,16,ut,ht,x)),tt=Jt.gi,ut=tt.length,ht=0;ht<ut&&tt[ht].ratio*tt[ht].ratio<se;ht++)Mt=tt[ht];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{tt=new ec(null).context;try{tt.drawImage(this.Eg,0,0)}catch(Se){this.en=!1}try{tt.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Se){this.vl=!0}}if(this.vl)return}}switch(tt=gt<b.width?Et.offsetX+(b.width*Et.x-gt*Et.x):0,Et=bt<b.height?Et.offsetY+(b.height*Et.y-bt*Et.y):0,this.flip){case Ro:a.translate(Math.min(b.width,gt),0),a.scale(-1,1);break;case fo:a.translate(0,Math.min(b.height,bt)),a.scale(1,-1);break;case $o:a.translate(Math.min(b.width,gt),Math.min(b.height,bt)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Jt!==void 0&&Mt!==null&&Mt.ratio!==1){a.save(),y=Mt.ratio;try{a.drawImage(Mt.source,et/y,nt/y,Math.min(Mt.source.width,at/y),Math.min(Mt.source.height,ot/y),tt,Et,Math.min(b.width,gt),Math.min(b.height,bt)),a instanceof wl&&(this.bt=[et/y,nt/y,Math.min(Mt.source.width,at/y),Math.min(Mt.source.height,ot/y),tt,Et,Math.min(b.width,gt),Math.min(b.height,bt)])}catch(Se){this.en=!1}a.restore()}else try{a.drawImage(x,et,nt,at,ot,tt,Et,Math.min(b.width,gt),Math.min(b.height,bt)),a instanceof wl&&(this.bt=[et,nt,at,ot,tt,Et,Math.min(b.width,gt),Math.min(b.height,bt)])}catch(Se){this.en=!1}switch(this.flip){case Ro:a.scale(-1,1),a.translate(-Math.min(b.width,gt),0);break;case fo:a.scale(1,-1),a.translate(0,-Math.min(b.height,bt));break;case $o:a.scale(-1,-1),a.translate(-Math.min(b.width,gt),-Math.min(b.height,bt))}}}}},Zl.prototype.Wl=function(a,y,x,b){var tt=this.desiredSize,et=Fl(this,!0),nt=this.Eg,ot=this.qn,at=0,ut=0;(ot||!this.al&&nt&&nt.complete)&&(this.al=!0),nt===null?(isFinite(tt.width)||(a=0),isFinite(tt.height)||(y=0)):(at=ot?+nt.width:nt.naturalWidth,ut=ot?+nt.height:nt.naturalHeight),isFinite(tt.width)||et===Li||et===Er?(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(tt.height)||et===Li||et===Rr?(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(tt.width)&&(a=tt.width),isFinite(tt.height)&&(y=tt.height),tt=this.maxSize,et=this.minSize,x=Math.max(x||0,et.width),b=Math.max(b||0,et.height),a=Math.min(tt.width,a),y=Math.min(tt.height,y),a=Math.max(x,a),y=Math.max(b,y),nt===null||nt.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),ve(this.dc,a,y),this.Ge(0,0,a,y)},Zl.prototype.eh=function(a,y,x,b){Al(this,a,y,x,b)},ge.Object.defineProperties(Zl.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||_e("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&qm(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new Ce),b!==null&&x&&nf(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()||(ta(this,!1),this.v())):x&&nx(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=dm;if(ts){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<c0&&(fm(),x=dm),b=$n("img"),b.hn=!0,nx(this,b);var tt=this.rl;tt!==null&&(b.crossOrigin=tt(this)),b.src=a,x[a]=b,c0++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new Qy),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}}}),Zl.prototype.redraw=Zl.prototype.redraw,Zl.prototype.reloadSource=Zl.prototype.hA;var c0=0,h0=4;Zl.className="Picture",dm=new Kr,Zl.clearCache=fm;function Qy(){this.gi=null}function pm(a,y,x,b,tt){a.gi===null&&(a.gi=[]);var et=new ec(null),nt=et.context,ot=1/y;et.width=x/y,et.height=b/y,et.width!==0&&et.height!==0&&(y=new ix(et.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],tt=x.source,x=x.ratio),nt.setTransform(ot*x,0,0,ot*x,0,0),nt.yc(),nt.drawImage(tt,0,0),a.gi.push(y))}Qy.className="PictureCacheArray";function ix(a,y){this.source=a,this.ratio=y}ix.className="PictureCacheInstance";function df(){this.os=new ii,this.mc=null}df.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new ii,this.mc=null};function op(a,y,x,b,tt,et){a.mc=new Bs,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=b,a.mc.isEvenOdd=et||!1,a.os.figures.add(a.mc),tt!==void 0&&(a.mc.isShadowed=tt)}function Kb(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}df.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new co(zo);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},df.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new co(Fo);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function gc(a,y,x,b,tt,et,nt){var ot;ot===void 0&&(ot=!1);var at=new co(ys);at.point1X=y,at.point1Y=x,at.point2X=b,at.point2Y=tt,at.endX=et,at.endY=nt,ot&&at.close(),a.mc.segments.add(at)}function ff(a,y,x,b,tt){var et;et===void 0&&(et=!1);var nt=new co(Ys);nt.point1X=y,nt.point1Y=x,nt.endX=b,nt.endY=tt,et&&nt.close(),a.mc.segments.add(nt)}df.prototype.arcTo=function(a,y,x,b,tt,et,nt){et===void 0&&(et=0),nt===void 0&&(nt=!1);var ot=new co(us);ot.startAngle=a,ot.sweepAngle=y,ot.centerX=x,ot.centerY=b,ot.radiusX=tt,ot.radiusY=et!==0?et:tt,nt&&ot.close(),this.mc.segments.add(ot)};function sp(a,y,x,b,tt,et,nt,ot){var at;at===void 0&&(at=!1),y=new co(Ha,nt,ot,y,x,b,tt,et),at&&y.close(),a.mc.segments.add(y)}function $y(a){var y=d0;return y!==null?(d0=null,y.reset(a),y):(y=new df,y.reset(a),y)}var d0=null;df.className="StreamGeometryContext";function za(a,y){var x=a.toLowerCase(),b=Ke.Ze;b[a]=y,b[x]=a}za("Rectangle",function(a,y,x){a="r"+y+","+x;var b=Ke.Mf[a];return b!==void 0||(b=new ii(ii.u),b.endX=y,b.endY=x,Ke.Nf<Ke.vm&&(Ke.Mf[a]=b,Ke.Nf++)),b}),za("Square",function(a,y,x){a="s"+y+","+x;var b=Ke.Mf[a];return b!==void 0||(b=new ii(ii.u),b.endX=y,b.endY=x,b.defaultStretch=xr,Ke.Nf<Ke.vm&&(Ke.Mf[a]=b,Ke.Nf++)),b}),za("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,tt=Ke.Mf[b];if(tt!==void 0)return tt;var et=a*Ke.wg;return tt=new ii().add(new Bs(a,0,!0).add(new co(Fo,y-a,0)).add(new co(ys,y,a,y-et,0,y,et)).add(new co(Fo,y,x-a)).add(new co(ys,y-a,x,y,x-et,y-et,x)).add(new co(Fo,a,x)).add(new co(ys,0,x-a,et,x,0,x-et)).add(new co(Fo,0,a)).add(new co(ys,a,0,0,et,et,0).close())),1<et&&(tt.spot1=new gn(0,0,et,et),tt.spot2=new gn(1,1,-et,-et)),Ke.Nf<Ke.vm&&(Ke.Mf[b]=tt,Ke.Nf++),tt}),za("Border","RoundedRectangle"),za("Ellipse",function(a,y,x){a="e"+y+","+x;var b=Ke.Mf[a];return b!==void 0||(b=new ii(ii.F),b.endX=y,b.endY=x,b.spot1=Hs,b.spot2=ua,Ke.Nf<Ke.vm&&(Ke.Mf[a]=b,Ke.Nf++)),b}),za("Circle",function(a,y,x){a="c"+y+","+x;var b=Ke.Mf[a];return b!==void 0||(b=new ii(ii.F),b.endX=y,b.endY=x,b.spot1=Hs,b.spot2=ua,b.defaultStretch=xr,Ke.Nf<Ke.vm&&(Ke.Mf[a]=b,Ke.Nf++)),b}),za("TriangleRight",function(a,y,x){return new ii().add(new Bs(0,0).add(new co(Fo,y,.5*x)).add(new co(Fo,0,x).close())).pm(0,.25,.5,.75)}),za("TriangleDown",function(a,y,x){return new ii().add(new Bs(0,0).add(new co(Fo,y,0)).add(new co(Fo,.5*y,x).close())).pm(.25,0,.75,.5)}),za("TriangleLeft",function(a,y,x){return new ii().add(new Bs(y,x).add(new co(Fo,0,.5*x)).add(new co(Fo,y,0).close())).pm(.5,.25,1,.75)}),za("TriangleUp",function(a,y,x){return new ii().add(new Bs(y,x).add(new co(Fo,0,x)).add(new co(Fo,.5*y,0).close())).pm(.25,.5,.75,1)}),za("Triangle","TriangleUp"),za("Diamond",function(a,y,x){return new ii().add(new Bs(.5*y,0).add(new co(Fo,0,.5*x)).add(new co(Fo,.5*y,x)).add(new co(Fo,y,.5*x).close())).pm(.25,.25,.75,.75)}),za("LineH",function(a,y,x){return a=new ii(ii.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),za("LineV",function(a,y,x){return a=new ii(ii.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),za("None","Rectangle"),za("BarH","Rectangle"),za("BarV","Rectangle"),za("MinusLine","LineH"),za("PlusLine",function(a,y,x){return new ii().add(new Bs(0,x/2,!1).add(new co(Fo,y,x/2)).add(new co(zo,y/2,0)).add(new co(Fo,y/2,x)))}),za("XLine",function(a,y,x){return new ii().add(new Bs(0,x,!1).add(new co(Fo,y,0)).add(new co(zo,0,0)).add(new co(Fo,y,x)))}),za("LineRight",function(a,y,x){return new ii().add(new Bs(.25*y,0,!1).add(new co(Fo,.75*y,.5*x)).add(new co(Fo,.25*y,x)))}),za("LineDown",function(a,y,x){return new ii().add(new Bs(0,.25*x,!1).add(new co(Fo,.5*y,.75*x)).add(new co(Fo,y,.25*x)))}),za("LineLeft",function(a,y,x){return new ii().add(new Bs(.75*y,0,!1).add(new co(Fo,.25*y,.5*x)).add(new co(Fo,.75*y,x)))}),za("LineUp",function(a,y,x){return new ii().add(new Bs(0,.75*x,!1).add(new co(Fo,.5*y,.25*x)).add(new co(Fo,y,.75*x)))}),Ke.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 mm(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=_i,this.ir=null,this.jr="",this.lr=Ao,this.Gq="",this.Hq=er,this.Pq=wi,this.Kq=Fi,this.Up=null,this.Cq=127,this.zr=Tt,this.yr="gray",this.Vg=4}mm.prototype.copy=function(){var a=new mm;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 Pr(a,y){a===void 0||a instanceof Sa||typeof a=="string"?Di.call(this,a):(Di.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 Gt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new je,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Nn(Pr,Di),Pr.prototype.cloneProtected=function(a){Di.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},St=Pr.prototype,St.Af=function(a){Di.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},St.toString=function(){var a=Ki(this.constructor)+"#"+Gi(this);return this.data!==null&&(a+="("+vr(this.data)+")"),a};function il(a){a.P===null?a.P=new mm:a.P.nc&&(a.P=a.P.copy())}St.th=function(){Di.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},St.gk=function(a,y,x,b,tt,et,nt){var ot=this.diagram;ot!==null&&(a===no&&y==="elements"?tt instanceof Di?$h(tt,function(at){ia(ot.partManager,at),gh(ot,at)}):nf(ot,tt):a===ho&&y==="elements"&&(tt instanceof Di?$h(tt,function(at){xf(ot.partManager,at,ot)}):qm(ot,tt)),ot.cb(a,y,x,b,tt,et,nt))},St.La=function(a){if(Di.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var tt=y[b];tt instanceof Di&&$h(tt,function(et){et.data!==null&&et.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Pr.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Pr.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Pr.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 tt=x.diagram;tt!==null&&tt.remove(x)}b===null&&(this.Qf=b=new or),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)))}}},Pr.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)}},Pr.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=Xn();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);qn(y)}},Pr.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 $r?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Wo))break t;ou(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=Di.Link),x.adornedObject=y)}if(x!==null){x.type===Di.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(Hb(this,a),y=this.adornments;y.next();)y.value.La()}},Pr.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function kg(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Hb(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function _v(a){if(Ld(a)===!1){qy(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function rx(a){if(a.G|=2097152,Ld(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||ap(a,y,x),x=a.Ib;var b=je.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),je.free(b),qy(a,!1)}}Pr.prototype.Ge=function(a,y,x,b){var tt=this.uc;tt.h(a,y,x,b),this.Lb===null&&(this.Lb=new Hr);var et=this.Lb;et.reset(),this.no(et,a,y,x,b),this.Lb=et,et.ws()||et.pp(tt)},Pr.prototype.no=function(a,y,x,b,tt){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var et=yr;this.locationSpot.sb()&&(et=this.locationSpot);var nt=Gt.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,nt.yi(x.x,x.y,x.width,x.height,et),y.Lb!==null&&y.Lb.Ga(nt),nt.offset(-y.measuredBounds.x,-y.measuredBounds.y),et=y.panel;et!==null&&et!==this;)et.Lb!==null&&et.Lb.Ga(nt),nt.offset(-et.measuredBounds.x,-et.measuredBounds.y),et=et.panel;else nt.yi(y,x,b,tt,et);a.rotate(this.Kb,nt.x,nt.y),Gt.free(nt)}},Pr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Pr.prototype.moveTo=function(a,y,x){a=Gt.allocAt(a,y),this.move(a,x),Gt.free(a)},Pr.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())},Pr.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())},Pr.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new or),y.I(a)!==null)return y.I(a);var x=Di.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Mh(a,y,x,b){b===void 0&&(b=new Gt),x=x.Mc()?yr:x;var tt=y.naturalBounds;if(b.h(tt.width*x.x+x.offsetX,tt.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}Pr.prototype.mi=function(a){return a===void 0&&(a=new je),a.assign(this.actualBounds)},Pr.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function Jc(a){var y=Gt.alloc(),x=a.locationObject,b=x.naturalBounds,tt=x instanceof lo?x.strokeWidth:0;if(y.yi(0,0,b.width+tt,b.height+tt,a.locationSpot),x!==a)for(y.offset(-tt/2,-tt/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 Oc(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=X1(a));var b=a.ag,tt=2*b;if(!a.isShadowed)return x.h(y.x-1-b,y.y-1-b,y.width+2+tt,y.height+2+tt),x;b=y.x,tt=y.y;var et=y.width;y=y.height;var nt=a.shadowBlur;return a=a.shadowOffset,et+=nt,y+=nt,b-=nt/2,tt-=nt/2,0<a.x?et+=a.x:(b+=a.x,et-=a.x),0<a.y?y+=a.y:(tt+=a.y,y-=a.y),x.h(b-1,tt-1,et+2,y+2),x}Pr.prototype.arrange=function(){if(Ll(this)===!1)rx(this);else{ll(this,!1);var a=this.Ib,y=je.alloc();y.assign(a);var x=pf(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;ap(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()||Ke.B(y.width,a.width)&&Ke.B(y.height,a.height)||0<=this.vw&&this.C(16),je.free(y),qy(this,!1)}},St=Pr.prototype,St.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var tt=je.alloc();tt.assign(x.documentBounds),tt.Fv(x.padding),a.x>tt.x&&a.y>tt.y&&a.right<tt.right&&a.bottom<tt.bottom&&y.x>tt.x&&y.y>tt.y&&y.right<tt.right&&y.bottom<tt.bottom&&(b=!0),je.free(tt)}!(this.G&65536)&&a.D(y)||Ag(this,b,x),x.N(),!a.w()&&!y.w()||cn(a,y)||(this instanceof Xi&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},St.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&ox(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 Gt(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),Ld(this)===!1&&Ll(this)===!1&&(_v(this),rx(this)),!0};function ox(a,y,x,b,tt){y===null||a instanceof Wo||(y=y.animationManager,y.zb&&Kp(y,a,new Gt(b,tt),x))}St.mm=function(a,y,x){var b=this.ke,tt=this.pa;if(x){if(b.x===a&&b.y===y)return;Ld(this)||Ll(this)?tt.h(NaN,NaN):tt.h(tt.x+a-b.x,tt.y+y-b.y),b.h(a,y)}else{if(tt.x===a&&tt.y===y)return;b.h(b.x+a-tt.x,b.y+y-tt.y),tt.h(a,y)}_v(this)},St.Av=function(){this.G&=-2097153,_v(this)};function ap(a,y,x){var b=Jc(a),tt=a.diagram,et=x.w(),nt=y.w();et&&nt?a.G&2097152?sx(a,y,x,tt,b):lp(a,y,x,tt,b):et?sx(a,y,x,tt,b):nt&&lp(a,y,x,tt,b),a.G|=2097152,Gt.free(b),a.Uk()}function sx(a,y,x,b,tt){var et=y.x,nt=y.y;y.h(x.x-tt.x,x.y-tt.y),b!==null&&(x=b.animationManager,(b=x.defaultAnimation.isAnimating)||!x.zb||a instanceof Wo||Kp(x,a,new Gt(et,nt),y),b||y.x===et&&y.y===nt||a.g("position",new Gt(et,nt),y.copy()))}function lp(a,y,x,b,tt){var et=x.copy();x.h(y.x+tt.x,y.y+tt.y),x.D(et)||b===null||a.g("location",et,x.copy())}function Ag(a,y,x){Wv(a,!1),a instanceof Xi&&xh(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?pf(a)?(qe(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}St.si=function(){return!0},St.Zc=function(){return!0},St.ph=function(){return!1},St.Dd=function(){return!0};function gm(a,y,x,b){y.constructor===a.constructor||lx||(lx=!0,$e('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),$e(" Old class: "+Ki(a.constructor)+", new class: "+Ki(y.constructor)+", part: "+a.toString())),a.Ej();var tt=a.data;x=a.layerName;var et=a.isSelected,nt=a.isHighlighted,ot=!0,at=!0,ut=!1;a instanceof Xi&&(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=tt,a.G=et?a.G|4096:a.G&-4097,a.G=nt?a.G|524288:a.G&-524289,a instanceof Xi&&(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),tt!==null&&a.La(),tt=a.layerName,tt!==x&&(a.Jg=x,a.layerName=tt),y!==null&&(y.skipsUndoManager=b),a.Zc()&&a.C(64)}Pr.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},Pr.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},Pr.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},Pr.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},Pr.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},Pr.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},Pr.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},Pr.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},Pr.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 Ld(a){return(a.G&32768)!==0}function qy(a,y){a.G=y?a.G|32768:a.G&-32769}function Wv(a,y){a.G=y?a.G|65536:a.G&-65537}function pf(a){return(a.G&131072)!==0}St=Pr.prototype,St.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Lg(a,y){a.G=y?a.G|1048576:a.G&-1048577}St.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},St.N=function(){var a=this.diagram;a!==null&&!Ll(this)&&!Ld(this)&&this.isVisible()&&this.Ib.w()&&a.N(Oc(this,this.Ib))},St.v=function(){Di.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Xi&&this.labeledLink!==null&&Ga(this.labeledLink),a.$b(!0))},St.Vo=function(a){a||(a=this.Ah,a!==null&&o1(a,this))},St.Wo=function(a){a||(a=this.Ah,a!==null&&s1(a,this))},St.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},St.oz=function(){return Vv(this,this)};function Vv(a,y){var x=y.containingGroup;return x!==null?1+Vv(a,x):y instanceof Xi&&(y=y.labeledLink,y!==null)?Vv(a,y):0}St.sz=function(){return ax(this,this)};function ax(a,y){var x=y.containingGroup;return x!==null||y instanceof Xi&&(x=y.labeledLink,x!==null)?ax(a,x):y}St.Td=function(a){return a instanceof $r?t1(this,this,a):!1};function t1(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!t1(a,b,x)?y instanceof Xi&&(y=y.labeledLink,y!==null)?t1(a,y,x):!1:!0}St.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof $r&&Lg(y,!0),y instanceof Xi){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 Xi&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof $r&&Lg(y,!1),y instanceof Xi&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},Pr.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Xi&&this.isLinkLabel)},Pr.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 Xi&&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 Pg(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function Pd(a,y,x,b,tt,et){if(et===void 0&&(et=null),!(a.contains(y)||et!==null&&!et(y)||y instanceof Wo)){if(a.add(y),y instanceof Xi){if(x&&y instanceof $r)for(var nt=y.memberParts;nt.next();)Pd(a,nt.value,x,b,tt,et);if(tt!==!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),(tt?at&&ut:at||ut)&&Pd(a,ot,x,b,tt,et)}}if(1<b)for(y=y.Ou();y.next();)Pd(a,y.value,x,b-1,tt,et)}else if(y instanceof ji)for(y=y.labelNodes;y.next();)Pd(a,y.value,x,b,tt,et)}}ge.Object.defineProperties(Pr.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Xr: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(ho,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(no,"parts",a,null,this,!0,b),b=this.layerChanged,b!==null){var tt=x.aa;x.aa=!0,b(this,y,a),x.aa=tt}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(il(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&&Vp(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 Wo?this.type!==Di.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:wi},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),il(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:Fi},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),il(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&&(il(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:er},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),il(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,Ll(this)===!1&&(_v(this),x=this.pa,x.w())){var tt=this.diagram;if(tt===null||tt.animationManager.isTicking||!tt.undoManager.isUndoingRedoing){var et=x.copy();x.h(x.x+(y.x-b.x),x.y+(y.y-b.y)),ox(this,tt,x,et.x,et.y),this.g("position",et,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,tt=null;if(x!==null&&b!==null&&!(this instanceof Wo)){var et=x.model.undoManager;et.isEnabled&&!et.isUndoingRedoing&&(tt=this.clone(),tt.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||b===null||this instanceof Wo?this instanceof Wo&&(tt=this.adornedPart,tt!==null&&(a=tt.Qf,a!==null&&a.remove(y),tt.bh(this.category,this))):(et=x.model,et.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(b,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(ou(x),x=x.copy(),x!==null&&gm(this,x,y,a))):(et!==null&&et.jm(b,a),x=yx(x.partManager,b,a),x!==null&&(ou(x),x=x.copy(),x===null||x instanceof ji||(b=this.location.copy(),gm(this,x,y,a),this.location.w()||(this.location=b)))),tt!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",tt,y))))}}},self:{get:function(){return this},set:function(a){gm(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 tt=x.selection;tt.ka(),a?tt.add(this):tt.remove(this),tt.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&&(il(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&&(il(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&&(il(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 ji?(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&&(il(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&&(il(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&&(il(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:_i},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),il(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&&(il(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&&(il(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:Ao},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),il(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&&_e("Cannot make a Group a member of itself: "+this.toString()),_e("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?s1(y,this):this instanceof $r&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?o1(a,this):this instanceof $r&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var b=this.data,tt=x.model;if(b!==null&&tt.Xj()){var et=tt.wa(a!==null?a.data:null);tt.mp(b,et)}}if(b=this.containingGroupChanged,b!==null&&(tt=!0,x!==null&&(tt=x.aa,x.aa=!0),b(this,y,a),x!==null&&(x.aa=tt)),this instanceof $r){for(x=new Ce,Pd(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof Xi)for(b=b.linksConnected;b.next();)p0(b.value)}if(this instanceof Xi){for(x=this.linksConnected;x.next();)p0(x.value);x=this.labeledLink,x!==null&&p0(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Vp(y,-1,a))}}else _e("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&&(il(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Xi&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(il(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&&(il(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Tt},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),il(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&&(il(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&&(il(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Pr.prototype.invalidateLayout=Pr.prototype.C,Pr.prototype.findCommonContainingGroup=Pr.prototype.px,Pr.prototype.isMemberOf=Pr.prototype.Td,Pr.prototype.findTopLevelPart=Pr.prototype.sz,Pr.prototype.findSubGraphLevel=Pr.prototype.oz,Pr.prototype.ensureBounds=Pr.prototype.Va,Pr.prototype.getDocumentBounds=Pr.prototype.mi,Pr.prototype.findObject=Pr.prototype.fb,Pr.prototype.moveTo=Pr.prototype.moveTo,Pr.prototype.invalidateAdornments=Pr.prototype.Wb,Pr.prototype.clearAdornments=Pr.prototype.Ej,Pr.prototype.removeAdornment=Pr.prototype.Jf,Pr.prototype.addAdornment=Pr.prototype.bh,Pr.prototype.findAdornment=Pr.prototype.Pj,Pr.prototype.updateTargetBindings=Pr.prototype.La;var lx=!1;Pr.className="Part",Pr.LayoutNone=0,Pr.LayoutAdded=1,Pr.LayoutRemoved=2,Pr.LayoutShown=4,Pr.LayoutHidden=8,Pr.LayoutNodeSized=16,Pr.LayoutGroupLayout=32,Pr.LayoutNodeReplaced=64,Pr.LayoutStandard=127,Pr.LayoutAll=16777215;function Wo(a,y){a===void 0||a instanceof Sa||typeof a=="string"?Pr.call(this,a):(Pr.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)}Nn(Wo,Pr),Wo.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Wo.prototype.updateRelationshipsFromData=function(){},Wo.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof ji&&y instanceof lo){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var b=0;b<y;b++){var tt=x[b];tt.isPanelMain&&tt instanceof lo&&(tt.ua=a)}}},Wo.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Ll(a))},Wo.prototype.Zc=function(){return!1},Wo.prototype.gk=function(a,y,x,b,tt,et,nt){if(a===no&&y==="elements"){if(tt instanceof Pl)this.$a===null&&(this.$a=tt);else if(tt instanceof Di){var ot=tt.Nl(function(at){return at instanceof Pl});ot instanceof Pl&&this.$a===null&&(this.$a=ot)}}else a===ho&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Di&&this.$a.rg(b)&&(this.$a=null));Pr.prototype.gk.call(this,a,y,x,b,tt,et,nt)},Wo.prototype.updateAdornments=function(){},Wo.prototype.Lj=function(){},ge.Object.defineProperties(Wo.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}}}),Wo.className="Adornment";function up(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=_n,this.er=f0,this.Kr=this.ij=this.Nq=this.Mq=null}up.prototype.copy=function(){var a=new up;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 Xi(a,y){a===void 0||a instanceof Sa||typeof a=="string"?Pr.call(this,a):(Pr.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new oi,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Nn(Xi,Pr),Xi.prototype.cloneProtected=function(a){Pr.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},St=Xi.prototype,St.Af=function(a){Pr.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Qc(a){a.Ba===null?a.Ba=new up:a.Ba.nc&&(a.Ba=a.Ba.copy())}St.th=function(){Pr.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function e1(a,y){y!==null&&(a.af===null&&(a.af=new Ce),a.af.add(y))}function ux(a,y,x,b){if(y===null||a.af===null)return null;for(var tt=a.af.iterator;tt.next();){var et=tt.value;if(et.Ds===a&&et.cv===y&&et.Ox===x&&et.Px===b||et.Ds===y&&et.cv===a&&et.Ox===b&&et.Px===x)return et}return null}St.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=ux(this,a,y,x),a!==null&&a.Sl()},St.gk=function(a,y,x,b,tt,et,nt){a===no&&y==="elements"?this.wc=null:a===ho&&y==="elements"&&(this.wc=null),Pr.prototype.gk.call(this,a,y,x,b,tt,et,nt)},St.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(gu(x.fromPort),gu(x.toPort),x.bb())}};function Ng(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(gu(x.fromPort),gu(x.toPort),x.bb())}}function gu(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||gu(y.port)}}St.si=function(){return!0},Xi.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Xi.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Xi.prototype.isVisible=function(){if(!Pr.prototype.isVisible.call(this))return!1;var a=!0,y=Cd,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===Cd){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===fa){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===X0&&(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},Xi.prototype.Zb=function(a){Pr.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)}},Xi.prototype.qx=function(){var a=new Ce,y=new Ce;return cx(this,this,a,y),y.iterator};function cx(a,y,x,b){if(y!==null&&!x.has(y)){x.add(y);var tt=!0,et=a.diagram;et!==null&&(tt=et.isTreePathToChildren),y.linksConnected.each(function(nt){nt.isTreeLink?(tt?nt.fromNode===y:nt.toNode===y)&&cx(a,tt?nt.toNode:nt.fromNode,x,b):b.add(nt)})}}Xi.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new yo(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},St=Xi.prototype,St.Mo=function(a){a===void 0&&(a=null);var y=new yo(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},St.Sd=function(a){a===void 0&&(a=null);var y=new yo(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},St.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var tt=b.value;tt.fromNode===this?(a===null||tt.fromPortId===a)&&(tt=tt.toNode,y!==null?y.add(tt):x!==null&&x!==tt?(y=new Ce,y.add(x),y.add(tt)):x=tt):tt.toNode!==this||a!==null&&tt.toPortId!==a||(tt=tt.fromNode,y!==null?y.add(tt):x!==null&&x!==tt?(y=new Ce,y.add(x),y.add(tt)):x=tt)}return y!==null?y.iterator:x!==null?new Br(x):Xr},St.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var tt=b.value;tt.fromNode!==this||a!==null&&tt.fromPortId!==a||(tt=tt.toNode,y!==null?y.add(tt):x!==null&&x!==tt?(y=new Ce,y.add(x),y.add(tt)):x=tt)}return y!==null?y.iterator:x!==null?new Br(x):Xr},St.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var tt=b.value;tt.toNode!==this||a!==null&&tt.toPortId!==a||(tt=tt.fromNode,y!==null?y.add(tt):x!==null&&x!==tt?(y=new Ce,y.add(x),y.add(tt)):x=tt)}return y!==null?y.iterator:x!==null?new Br(x):Xr},St.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new yo(this.jb),tt=this;return b.predicate=function(et){return!((et.fromNode!==tt||et.toNode!==a||y!==null&&et.fromPortId!==y||x!==null&&et.toPortId!==x)&&(et.fromNode!==a||et.toNode!==tt||x!==null&&et.fromPortId!==x||y!==null&&et.toPortId!==y))},b},St.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new yo(this.jb),tt=this;return b.predicate=function(et){return!(et.fromNode!==tt||et.toNode!==a||y!==null&&et.fromPortId!==y||x!==null&&et.toPortId!==x)},b};function Tg(a,y,x){gu(x);var b=a.jb.contains(y);if(b||a.jb.add(y),!b||y.fromNode===y.toNode){var tt=a.linkConnected;if(tt!==null){var et=!0,nt=a.diagram;nt!==null&&(et=nt.aa,nt.aa=!0),tt(a,y,x),nt!==null&&(nt.aa=et)}}!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),tt=b?y:x,et=b?x:y,tt.ci||(tt.ci=et),!et.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(b?x===et&&(et.isTreeLeaf=!1):y===et&&(et.isTreeLeaf=!1))))}function Uv(a,y,x){gu(x);var b=a.jb.remove(y),tt=null;if(b||y.toNode===y.fromNode){var et=a.linkDisconnected;if(tt=a.diagram,et!==null){var nt=!0;tt!==null&&(nt=tt.aa,tt.aa=!0),et(a,y,x),tt!==null&&(tt.aa=nt)}}b&&y.isTreeLink&&(x=!0,tt!==null&&(x=tt.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,tt!==null&&tt.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):Dg(y)))}function Dg(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}}}Xi.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},St=Xi.prototype,St.Vo=function(a){Pr.prototype.Vo.call(this,a),a||(Dg(this),a=this.Yk,a!==null&&Gv(a,this))},St.Wo=function(a){Pr.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},St.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,Pr.prototype.Lj.call(this)},St.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;n1(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function n1(a){a.wc===null?a.wc=new or:a.wc.clear(),a.qm(a,function(y,x){i1(y,x)}),a.wc.count===0&&a.wc.add("",a)}function i1(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function r1(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=Xn()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);qn(x)}}}St.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 tt=b.value;if(tt.isTreeLink&&(y=tt.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()&&(tt=b.value,!tt.isTreeLink||(y=tt.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},St.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}},St.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Lg(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;)Lg(y,!1),y=y.pg();return x},St.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},St.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Xi)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},St.vz=function(){function a(x,b){b.add(x);var tt=x.kh();tt!==null&&(b.add(tt),x=x.pg(),x!==null&&a(x,b))}var y=new Ce;return a(this,y),y},St.uz=function(){return Uu(this,this)};function Uu(a,y){return y=y.pg(),y===null?0:1+Uu(a,y)}St.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new yo(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},St.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 oi,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 oi,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Br(x):Xr},St.wz=function(a){a===void 0&&(a=1/0);var y=new Ce;return Pd(y,this,!1,a,!0),y},Xi.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 Ce;x.add(this),Eh(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Cd),y.Ue=!1}};function Eh(a,y,x,b,tt,et,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),Eh(at,y,x,b-1,tt,et,nt)))}else Og(a,y,x,tt,et,nt)}function Og(a,y,x,b,tt,et){for(var nt=tt===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 ht=y.contains(ut);if(ht||y.add(ut),nt){var gt=x?ut.Oo():ut.Po();at.uv=a,gt.all(function(bt){return function(Mt){return Mt===bt.uv||!Mt.isTreeExpanded}}(at))&&b.Aj(ut,tt),ut.oh(),ut.Zb(!1)}ut.isTreeExpanded&&(ut.wasTreeExpanded=ut.isTreeExpanded,ht||Og(ut,y,x,b,tt,et))}at={uv:at.uv}}a.isTreeExpanded=!1}Xi.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 Ce;x.add(this),Zv(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Cd),y.Ue=!1}};function Zv(a,y,x,b,tt,et,nt){for(var ot=et===a?!1:a.isTreeExpanded,at=x?a.Mo():a.Sd(),ut={};at.next();){var ht=at.value;if(ht.isTreeLink&&(ot||ht.fd||ht.bb(),ht=ht.To(a),ht!==null&&ht!==a&&!y.contains(ht))){if(y.add(ht),!ot){ht.Zb(!0),ht.oh();var gt=x?ht.Oo():ht.Po();ut.vv=a,gt.all(function(bt){return function(Mt){return Mt===bt.vv||!Mt.isTreeExpanded}}(ut))&&tt.Cj(ht,et)}(2<b||ht.wasTreeExpanded)&&(ht.wasTreeExpanded=!1,Zv(ht,y,x,b-1,tt,et,nt))}ut={vv:ut.vv}}a.isTreeExpanded=!0}ge.Object.defineProperties(Xi.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:f0},set:function(a){var y=this.portSpreading;y!==a&&(Qc(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&&xh(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:_n},set:function(a){typeof a=="number"&&(a=new Kn(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Qc(this),this.Ba.yp=a;var x=this.diagram;x!==null&&xh(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&&(Qc(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&&(Qc(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&&(Qc(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 tt=y.data,et=x.model;if(tt!==null&&et.ri()){var nt=et.wa(b);nt!==void 0&&et.Qx(tt,nt)}}this.containingGroup=null}this.Yk=a,a!==null&&(Gv(a,this),x===null||b===null||x.undoManager.isUndoingRedoing||(tt=a.data,x=x.model,tt!==null&&x.ri()&&(b=x.wa(b),b!==void 0&&x.Bu(tt,b))),this.containingGroup=a.containingGroup),Ga(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&n1(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&&(Qc(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))}}}),Xi.prototype.expandTree=Xi.prototype.expandTree,Xi.prototype.collapseTree=Xi.prototype.collapseTree,Xi.prototype.findTreeParts=Xi.prototype.wz,Xi.prototype.findTreeChildrenNodes=Xi.prototype.Ou,Xi.prototype.findTreeChildrenLinks=Xi.prototype.Qo,Xi.prototype.findTreeLevel=Xi.prototype.uz,Xi.prototype.findTreeParentChain=Xi.prototype.vz,Xi.prototype.findTreeParentNode=Xi.prototype.pg,Xi.prototype.findTreeParentLink=Xi.prototype.kh,Xi.prototype.findCommonTreeParent=Xi.prototype.gz,Xi.prototype.findTreeRoot=Xi.prototype.xz,Xi.prototype.isInTreeOf=Xi.prototype.Nz,Xi.prototype.findPort=Xi.prototype.ns,Xi.prototype.findLinksTo=Xi.prototype.kz,Xi.prototype.findLinksBetween=Xi.prototype.jz,Xi.prototype.findNodesInto=Xi.prototype.Oo,Xi.prototype.findNodesOutOf=Xi.prototype.Po,Xi.prototype.findNodesConnected=Xi.prototype.Mu,Xi.prototype.findLinksInto=Xi.prototype.Sd,Xi.prototype.findLinksOutOf=Xi.prototype.Mo,Xi.prototype.findExternalTreeLinksConnected=Xi.prototype.qx,Xi.prototype.invalidateConnectedLinks=Xi.prototype.Bd,Xi.prototype.invalidateLinkBundle=Xi.prototype.Lz;var hx=new ui(Xi,"SpreadingNone",10),f0=new ui(Xi,"SpreadingEvenly",11),mf=new ui(Xi,"SpreadingPacked",12);Xi.className="Node",Xi.SpreadingNone=hx,Xi.SpreadingEvenly=f0,Xi.SpreadingPacked=mf;function $r(a,y){a===void 0||a instanceof Sa||typeof a=="string"?Xi.call(this,a):(Xi.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Ce,this.$a=null,this.Sc=new Ds,this.Sc.group=this,this.gl=new Ce,this.tb=this.$p=null,y&&Object.assign(this,y)}Nn($r,Xi),$r.prototype.cloneProtected=function(a){Xi.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof Pl});y instanceof Pl?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())},St=$r.prototype,St.Af=function(a){Xi.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 Xi)x.Bd(y);else if(x instanceof ji)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},St.gk=function(a,y,x,b,tt,et,nt){if(a===no&&y==="elements"){if(tt instanceof Pl)this.$a===null?this.$a=tt:this.$a!==tt&&_e("Cannot insert a second Placeholder into the visual tree of a Group.");else if(tt instanceof Di){var ot=tt.Nl(function(at){return at instanceof Pl});ot instanceof Pl&&(this.$a===null?this.$a=ot:this.$a!==ot&&_e("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===ho&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Di&&this.$a.rg(b)&&(this.$a=null));Xi.prototype.gk.call(this,a,y,x,b,tt,et,nt)},St.Xl=function(a,y){Xi.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Di.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Di&&(a=a.Pb()),this.tb===null&&(this.tb=new je),a.mi(this.tb),a instanceof lo&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},St.eh=function(a,y,x,b){this.nf=this.$a,Xi.prototype.eh.call(this,a,y,x,b)},St.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof ji||y.Va()}),Xi.prototype.Va.call(this)},St.si=function(){if(!Xi.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Xi){if(y.isVisible()&&Ll(y))return!1}else if(y instanceof ji&&y.isVisible()&&Ll(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function o1(a,y){if(a.Gn.add(y)){y instanceof $r&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var b=!0,tt=a.diagram;tt!==null&&(b=tt.aa,tt.aa=!0),x(a,y),tt!==null&&(tt.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof ji&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function s1(a,y){if(a.Gn.remove(y)){y instanceof $r&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var b=!0,tt=a.diagram;tt!==null&&(b=tt.aa,tt.aa=!0),x(a,y),tt!==null&&(tt.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof ji&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}St.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)}Xi.prototype.Lj.call(this)},$r.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=Bn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},$r.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=Bn(a).iterator;a.next();){var tt=a.value;!y||x.isValidMember(this,tt)?tt.containingGroup=this:b=!1}return b},$r.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))},St=$r.prototype,St.Bd=function(a){var y=(this.U&65536)!==0;if(Xi.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()?(gu(x.fromPort),gu(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(gu(x.fromPort),gu(x.toPort),x.bb()))}}},St.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 Ce,b=y.iterator;b.next();){var tt=b.value;if(tt instanceof Xi)for(tt=tt.linksConnected;tt.next();){var et=tt.value;y.contains(et)||x.add(et)}}return a&&(this.$p=x),x.iterator},St.iz=function(){var a=this.Rj();a.add(this);for(var y=new Ce,x=a.iterator;x.next();){var b=x.value;if(b instanceof Xi)for(b=b.linksConnected;b.next();){var tt=b.value,et=tt.fromNode;et===null||a.contains(et)&&et!==this||y.add(et),tt=tt.toNode,tt===null||a.contains(tt)&&tt!==this||y.add(tt)}}return y.iterator},St.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new Ce;return a(this,y),y},St.Rj=function(){var a=new Ce;return Pd(a,this,!0,0,!0),a.remove(this),a},St.Zb=function(a){Xi.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},$r.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();dx(this,y,a,this),a.Ue=!1}};function dx(a,y,x,b){for(var tt=a.memberParts;tt.next();){var et=tt.value;if(et.Zb(!1),et instanceof $r&&et.isSubGraphExpanded&&(et.wasSubGraphExpanded=et.isSubGraphExpanded,dx(et,y,x,b)),et instanceof Xi)et.Bd(y),x.Aj(et,b);else if(et instanceof ji)for(et=et.labelNodes;et.next();)et.value.Bd(y)}a.isSubGraphExpanded=!1}$r.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();fx(this,y,a,this),a.Ue=!1}};function fx(a,y,x,b){for(var tt=a.memberParts;tt.next();){var et=tt.value;if(et.Zb(!0),et instanceof $r&&et.wasSubGraphExpanded&&(et.wasSubGraphExpanded=!1,fx(et,y,x,b)),et instanceof Xi)et.Bd(y),x.Cj(et,b);else if(et instanceof ji)for(et=et.labelNodes;et.next();)et.value.Bd(y)}a.isSubGraphExpanded=!0}$r.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,b=x.x;x=x.y;var tt=a.x,et=a.y;if(!(b===tt||isNaN(b)&&isNaN(tt))||!(x===et||isNaN(x)&&isNaN(et))){for(b=tt-(isNaN(b)?0:b),x=et-(isNaN(x)?0:x),et=Gt.alloc(),Xi.prototype.move.call(this,a,y),a=new Ce,y=this.Rj().iterator;y.next();)tt=y.value,tt instanceof ji&&(tt.suspendsRouting&&a.add(tt),tt.fd||tt.fromNode!==this&&tt.toNode!==this)&&(tt.suspendsRouting=!0);for(y.reset();y.next();)if(tt=y.value,!(tt.ph()||tt instanceof Xi&&tt.isLinkLabel)){var nt=tt.position,ot=tt.location;nt.w()?(et.x=nt.x+b,et.y=nt.y+x,tt.position=et):ot.w()&&(et.x=ot.x+b,et.y=ot.y+x,tt.location=et)}for(y.reset();y.next();)tt=y.value,tt instanceof ji&&(tt.suspendsRouting=a.contains(tt),tt.fd||tt.fromNode!==this&&tt.toNode!==this)&&(nt=tt.position,et.x=nt.x+b,et.y=nt.y+x,et.w()?tt.move(et):tt.bb(),l1(tt)&&tt.bb());Gt.free(et)}},ge.Object.defineProperties($r.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&&_e("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&&(Qc(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&&(Qc(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&&(Qc(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(tt){tt.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&&(Qc(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)}}}),$r.prototype.expandSubGraph=$r.prototype.expandSubGraph,$r.prototype.collapseSubGraph=$r.prototype.collapseSubGraph,$r.prototype.findSubGraphParts=$r.prototype.Rj,$r.prototype.findContainingGroupChain=$r.prototype.hz,$r.prototype.findExternalNodesConnected=$r.prototype.iz,$r.prototype.findExternalLinksConnected=$r.prototype.Lu,$r.prototype.ensureBounds=$r.prototype.Va,$r.className="Group";function Pl(a){Ue.call(this),this.yb=wn,this.ko=new je(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Nn(Pl,Ue),Pl.prototype.cloneProtected=function(a){Ue.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Pl.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return sn(0,0,y.width,y.height,a.x,a.y)},Pl.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof $r||a instanceof Wo)||_e("Placeholder is not inside a Group or Adornment."),a instanceof $r){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(ve(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=Gt.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Gt.free(x))}else{y=this.dc,x=this.yb,b=x.left+x.right;var tt=x.top+x.bottom,et=a.adornedObject;a.angle=et.li();var nt=0;et instanceof lo&&(nt=et.strokeWidth);var ot=et.Df(),at=et.naturalBounds,ut=(at.width+nt)*ot;nt=(at.height+nt)*ot,a.type!==Di.Link&&(ot=et.ga(a.category==="Selection"?er:a.locationSpot,Gt.alloc()),a.location=ot,Gt.free(ot)),isNaN(ut)||isNaN(nt)?(a=et.ga(er,Gt.alloc()),ut=je.allocAt(a.x,a.y,0,0),ut.Ye(et.ga(oo,a)),ut.Ye(et.ga(Ir,a)),ut.Ye(et.ga(No,a)),ve(y,ut.width+b||0,ut.height+tt||0),this.Ge(-x.left,-x.top,y.width,y.height),Gt.free(a),je.free(ut)):(ve(y,ut+b||0,nt+tt||0),this.Ge(-x.left,-x.top,y.width,y.height))}},Pl.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},Pl.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof $r&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var tt=x.toolManager.findTool("Dragging");if(tt===x.currentTool&&(x=tt.computeBorder(y,this.ko,a),x!==null))return x}x=je.alloc(),tt=this.computeMemberBounds(x);var et=this.yb;return y instanceof $r&&!y.isSubGraphExpanded?a.h(tt.x-et.left,tt.y-et.top,0,0):a.h(tt.x-et.left,tt.y-et.top,Math.max(tt.width+et.left+et.right,0),Math.max(tt.height+et.top+et.bottom,0)),je.free(x),b&&y instanceof $r&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Pl.prototype.computeMemberBounds=function(a){if(!(this.part instanceof $r))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,b=1/0,tt=-1/0,et=-1/0,nt=y.memberParts;nt.next();){var ot=nt.value;if(ot.isVisible()){if(ot instanceof ji&&(!y.computesBoundsIncludingLinks||Vl(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>tt&&(tt=ot.right),ot.bottom>et&&(et=ot.bottom)}}return isFinite(x)&&isFinite(b)?a.h(x,b,tt-x,et-b):(y=y.location,a.h(y.x,y.y,0,0)),a},ge.Object.defineProperties(Pl.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Kn(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Pl.className="Placeholder";function ji(a){Pr.call(this,Di.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=zl,this.Om=0,this.Qm=zl,this.Rm=NaN,this.qj=h1,this.po=.5,this.wd=null,this.Nb=new oi().freeze(),this.Tg=this.Mg=null,this.ml=new je,this.ua=new ii,this.u=this.o=this.Sf=this.Wf=null,this.su=new Gt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Nn(ji,Pr),ji.prototype.cloneProtected=function(a){Pr.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())},St=ji.prototype,St.Af=function(a){Pr.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&&gu(y),a=a.toPort,a!==null&&gu(a)},St.qb=function(a){a.classType===ji?(a.value&2)===2?this.routing=a:a===Lu||a===vu||a===ma?this.curve=a:a===yu||a===pl||a===g0?this.adjusting=a:a!==h1&&a!==zl&&_e("Unknown Link enum value for a Link property: "+a):Pr.prototype.qb.call(this,a)},St.Xc=function(){this.ba===null&&(this.ba=new Xf)},St.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Ll(a)||Ld(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Ll(a)||Ld(a)))},St.zv=function(){return!1},St.Av=function(){},St.Zc=function(){return!1},ji.prototype.computeAngle=function(a,y,x){return ji.computeAngle(y,x)},ji.computeAngle=function(a,y){switch(a){default:case zl:a=0;break;case xm:a=y;break;case fp:a=y+90;break;case Rg:a=y-90;break;case f1:a=y+180;break;case $v:a=Ke.bp(y),90<a&&270>a&&(a-=180);break;case bm:a=Ke.bp(y+90),90<a&&270>a&&(a-=180);break;case zg:a=Ke.bp(y-90),90<a&&270>a&&(a-=180);break;case qv:if(a=Ke.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Ke.bp(a)};function p0(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&&s1(x,a),a.Ah=y,y!==null&&o1(y,a);var tt=a.containingGroupChanged;if(tt!==null){var et=!0,nt=a.diagram;nt!==null&&(et=nt.aa,nt.aa=!0),tt(a,x,y),nt!==null&&(nt.aa=et)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}St=ji.prototype,St.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Pr.prototype.oh.call(this)},St.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},St.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function Gv(a,y){a.wd===null&&(a.wd=new Ce),a.wd.add(y),a.v()}St.Vo=function(a){if(Pr.prototype.Vo.call(this,a),vf(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Tg(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Tg(x,this,b)}Fg(this)}},St.Wo=function(a){if(Pr.prototype.Wo.call(this,a),vf(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Uv(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Uv(x,this,b)}yf(this)}},St.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))},ji.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},ji.prototype.move=function(a,y){var x=y?this.location:this.position,b=x.x;isNaN(b)&&(b=0);var tt=x.y;for(isNaN(tt)&&(tt=0),b=a.x-b,tt=a.y-tt,y===!0?Pr.prototype.move.call(this,a,!1):(a=Gt.allocAt(x.x+b,x.y+tt),Pr.prototype.move.call(this,a,!1),Gt.free(a)),Nd(this,b,tt),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+tt)},ji.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},ji.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},ji.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(ee),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()===Lu))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()===Lu){if(y===3){x=this.i(0),b=this.i(1);var tt=this.i(2);return Ke.ax(x.x,x.y,b.x,b.y,b.x,b.y,tt.x,tt.y,a),a}if(b=(y-1)/3|0,x=3*(b/2|0),b%2===1){b=this.i(x),tt=this.i(x+1);var et=this.i(x+2);x=this.i(x+3),Ke.ax(b.x,b.y,tt.x,tt.y,et.x,et.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var nt=this.flattenedLengths;for(x=this.flattenedTotalLength,tt=et=b=0;b<x/2&&et<y&&(tt=nt[et],!(b+tt>x/2));)b+=tt,et++;return y=this.i(et),et=this.i(et+1),1>Math.abs(y.x-et.x)?y.y>et.y?a.h(y.x,y.y-(x/2-b)):a.h(y.x,y.y+(x/2-b)):1>Math.abs(y.y-et.y)?y.x>et.x?a.h(y.x-(x/2-b),y.y):a.h(y.x+(x/2-b),y.y):(x=(x/2-b)/tt,a.h(y.x+x*(et.x-y.x),y.y+x*(et.y-y.y))),a},ji.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()===Lu))return this.ua.wx(.5);if(this.computeCurve()===Lu&&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),Ke.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 tt=0;x=0;for(var et;tt<b/2&&x<a&&(et=y[x],!(tt+et>b/2));)tt+=et,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)},St=ji.prototype,St.i=function(a){return this.Nb.s[a]},St.dd=function(a,y){this.Nb.cd(a,y)},St.L=function(a,y,x){this.Nb.cd(a,new Gt(y,x))},St.Kz=function(a,y){this.Nb.Gb(a,y)},St.m=function(a,y,x){this.Nb.Gb(a,new Gt(y,x))},St.ne=function(a){this.Nb.add(a)},St.yf=function(a,y){this.Nb.add(new Gt(a,y))},St.pv=function(a){this.Nb.mb(a)},St.Fj=function(){this.Nb.clear()};function Nd(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,tt=new oi,et=a.Nb.iterator;et.next();){var nt=et.value;tt.add(new Gt(nt.x+y,nt.y+x).freeze())}tt.freeze(),et=a.Nb,a.Nb=tt,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),Ga(a)),b?Yv(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),nt!==null&&nt.animationManager.zb&&ql(nt.animationManager,a,tt),a.g("points",et,tt)}}St.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},St.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,tt=a.s,et=tt.length,nt=0;nt<et;nt++){var ot=tt[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,ht=0;ht<ut;ht++){var gt=at[ht];nt=Math.min(gt.x,nt),ot=Math.min(gt.y,ot),gt.freeze()}if(y.freeze(),ut===et){for(et=0;et<ut;et++)if(ht=tt[et],gt=at[et],ht.x-x!==gt.x-nt||ht.y-b!==gt.y-ot){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&ql(x.animationManager,this,y),Yv(this),this.g("points",a,y)}},St.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Yv(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),Jv(a,!1))}St.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())}},St.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()}}},ji.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(m0||(m0=new Xi,m0.desiredSize=Mi,m0.Va()),this.defaultFromPoint&&(m0.location=this.defaultFromPoint,m0.Va(),y=a=m0)):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,tt=null;if(b===null?(dp||(dp=new Xi,dp.desiredSize=Mi,dp.Va()),this.defaultToPoint&&(dp.location=this.defaultToPoint,dp.Va(),tt=b=dp)):tt=this.toPort,tt===null||b.isVisible()||(x=b.findVisibleNode(),x!==null&&x!==b?(b=x,tt=x.port):b=x),this.Mw=b,b===null||!b.location.w())return!1;for(;!(tt===null||tt.actualBounds.w()&&tt.Ed());)tt=tt.panel;if(tt===null)return!1;var et=this.pointsCount,nt=this.computeSpot(!0,y);x=this.computeSpot(!1,tt);var ot=cp(nt),at=cp(x),ut=y===tt&&y!==null,ht=this.isOrthogonal,gt=this.curve===Lu;this.Wf=ut&&!ht?gt=!0:!1;var bt=this.computeAdjusting()===zl||ut;if(!ht&&!ut&&ot&&at){if(ot=!1,!bt&&3<=et&&(bt=this.getLinkPoint(a,y,nt,!0,!1,b,tt),at=this.getLinkPoint(b,tt,x,!1,!1,a,y),ot=this.adjustPoints(0,bt,et-1,at))&&(bt=this.getLinkPoint(a,y,nt,!0,!1,b,tt),at=this.getLinkPoint(b,tt,x,!1,!1,a,y),this.adjustPoints(0,bt,et-1,at)),!ot)if(this.Fj(),gt){et=this.getLinkPoint(a,y,nt,!0,!1,b,tt),bt=this.getLinkPoint(b,tt,x,!1,!1,a,y),ot=bt.x-et.x,at=bt.y-et.y,ut=this.computeCurviness(),gt=ht=0;var Mt=et.x+ot/3,Et=et.y+at/3,Bt=Mt,se=Et;Ke.B(at,0)?se=0<ot?se-ut:se+ut:(ht=-ot/at,gt=Math.sqrt(ut*ut/(ht*ht+1)),0>ut&&(gt=-gt),Bt=(0>at?-1:1)*gt+Mt,se=ht*(Bt-Mt)+Et),Mt=et.x+2*ot/3,Et=et.y+2*at/3;var Jt=Mt,me=Et;Ke.B(at,0)?me=0<ot?me-ut:me+ut:(Jt=(0>at?-1:1)*gt+Mt,me=ht*(Jt-Mt)+Et),this.Fj(),this.ne(et),this.yf(Bt,se),this.yf(Jt,me),this.ne(bt),this.dd(0,this.getLinkPoint(a,y,nt,!0,!1,b,tt)),this.dd(3,this.getLinkPoint(b,tt,x,!1,!1,a,y))}else et=b,bt=tt,b=this.getLinkPoint(a,y,nt,!0,!1,et,bt),tt=this.getLinkPoint(et,bt,x,!1,!1,a,y),this.hasCurviness()?(bt=tt.x-b.x,x=tt.y-b.y,nt=this.computeCurviness(),a=b.x+bt/2,y=b.y+x/2,et=a,ot=y,Ke.B(x,0)?ot=0<bt?ot-nt:ot+nt:(bt=-bt/x,et=Math.sqrt(nt*nt/(bt*bt+1)),0>nt&&(et=-et),et=(0>x?-1:1)*et+a,ot=bt*(et-a)+y),this.ne(b),this.yf(et,ot),this.ne(tt)):(this.ne(b),this.ne(tt),ot=je.alloc(),y.mi(ot),at=ot.ca(tt),bt.mi(ot),ut=ot.ca(b),(at||ut)&&(nt=y.ga(Bg(nt),new Gt),this.dd(0,this.getLinkPointFromPoint(a,y,nt,tt,!0,nt)),x=bt.ga(Bg(x),new Gt),this.dd(1,this.getLinkPointFromPoint(et,bt,x,b,!1,x))),je.free(ot))}else{gt=this.isAvoiding,bt&&(ht&>||ut)&&this.Fj();var Se=ut?this.computeCurviness():0;gt=this.getLinkPoint(a,y,nt,!0,ht,b,tt),Mt=Bt=Et=0,(ht||!ot||ut)&&(se=this.computeEndSegmentLength(a,y,nt,!0),Mt=this.getLinkDirection(a,y,gt,nt,!0,ht,b,tt),ut&&(ot||nt.D(x)||!ht&&nt.x+x.x===1&&nt.y+x.y===1)&&(Mt-=ht?90:30,0>Se&&(Mt-=180)),0>Mt?Mt+=360:360<=Mt&&(Mt-=360),ut&&(se+=Math.abs(Se)*(ht?1:2)),Mt===0?Et=se:Mt===90?Bt=se:Mt===180?Et=-se:Mt===270?Bt=-se:(Et=se*Math.cos(Mt*Math.PI/180),Bt=se*Math.sin(Mt*Math.PI/180)),nt.Mc()&&ut&&(se=y.ga(yr,Gt.alloc()),Jt=Gt.allocAt(se.x+1e3*Et,se.y+1e3*Bt),this.getLinkPointFromPoint(a,y,se,Jt,!0,gt),Gt.free(se),Gt.free(Jt))),se=this.getLinkPoint(b,tt,x,!1,ht,a,y);var Le=me=Jt=0;if(ht||!at||ut){var Ve=this.computeEndSegmentLength(b,tt,x,!1);Le=this.getLinkDirection(b,tt,se,x,!1,ht,a,y),ut&&(at||nt.D(x)||!ht&&nt.x+x.x===1&&nt.y+x.y===1)&&(Le+=ht?0:30,0>Se&&(Le+=180)),0>Le?Le+=360:360<=Le&&(Le-=360),ut&&(Ve+=Math.abs(Se)*(ht?1:2)),Le===0?Jt=Ve:Le===90?me=Ve:Le===180?Jt=-Ve:Le===270?me=-Ve:(Jt=Ve*Math.cos(Le*Math.PI/180),me=Ve*Math.sin(Le*Math.PI/180)),x.Mc()&&ut&&(x=tt.ga(yr,Gt.alloc()),nt=Gt.allocAt(x.x+1e3*Jt,x.y+1e3*me),this.getLinkPointFromPoint(b,tt,x,nt,!1,se),Gt.free(x),Gt.free(nt))}x=gt,(ht||!ot||ut)&&(x=new Gt(gt.x+Et,gt.y+Bt)),nt=se,(ht||!at||ut)&&(nt=new Gt(se.x+Jt,se.y+me)),!bt&&!ht&&ot&&3<et&&this.adjustPoints(0,gt,et-2,nt)?this.dd(et-1,se):!bt&&!ht&&at&&3<et&&this.adjustPoints(1,x,et-1,se)?this.dd(0,gt):!bt&&(ht?6<=et:4<et)&&this.adjustPoints(1,x,et-2,nt)?(this.dd(0,gt),this.dd(et-1,se)):(this.Fj(),this.ne(gt),(ht||!ot||ut)&&this.ne(x),ht&&this.addOrthoPoints(x,Mt,nt,Le,a,b),(ht||!at||ut)&&this.ne(nt),this.ne(se))}return!0};function a1(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}ji.prototype.getLinkPointFromPoint=function(a,y,x,b,tt,et){if(et===void 0&&(et=new Gt),a===null||y===null)return et.assign(x),et;if(a.isVisible()||(tt=a.findVisibleNode(),tt!==null&&tt!==a&&(y=tt.port)),a=null,tt=y.panel,tt===null||tt.se()||(tt=tt.panel),tt===null){tt=b.x,b=b.y;var nt=x.x;x=x.y}else{a=tt.oe,tt=1/(a.m11*a.m22-a.m12*a.m21),nt=a.m22*tt;var ot=-a.m12*tt,at=-a.m21*tt,ut=a.m11*tt,ht=tt*(a.m21*a.dy-a.m22*a.dx),gt=tt*(a.m12*a.dx-a.m11*a.dy);tt=b.x*nt+b.y*at+ht,b=b.x*ot+b.y*ut+gt,nt=x.x*nt+x.y*at+ht,x=x.x*ot+x.y*ut+gt}return y.Sj(tt,b,nt,x,et),a!==null&&et.transform(a),et};function vm(a,y){var x=y.Zn;return x===null&&(x=new ic,x.port=y,x.node=y.part,y.Zn=x),ny(x,a)}ji.prototype.getLinkPoint=function(a,y,x,b,tt,et,nt,ot){if(ot===void 0&&(ot=new Gt),x.sb()&&!cp(x))return y.ga(x,ot),ot;if(x.$c()){var at=vm(this,y);if(at!==null){if(ot.assign(at.Zo),tt&&this.routing===d1){var ut=vm(this,nt);if(ut!==null&&at.Gl<ut.Gl){at=Gt.alloc(),ut=Gt.alloc();var ht=new je(y.ga(er,at),y.ga(oo,ut)),gt=this.computeSpot(!b,nt);a=this.getLinkPoint(et,nt,gt,!b,tt,a,y,ut),(x.Hf(Io)||x.Hf(so))&&a.y>=ht.y&&a.y<=ht.y+ht.height?ot.y=a.y:(x.Hf(to)||x.Hf(Zr))&&a.x>=ht.x&&a.x<=ht.x+ht.width&&(ot.x=a.x),Gt.free(at),Gt.free(ut)}}return ot}}return x=y.ga(Bg(x),Gt.alloc()),this.pointsCount>(tt?6:2)?(nt=b?this.i(1):this.i(this.pointsCount-2),tt&&(nt=a1(x,nt.copy()))):(at=this.computeSpot(!b,nt),et=Gt.alloc(),nt=nt.ga(Bg(at),et),tt&&(nt=a1(x,nt)),Gt.free(et)),this.getLinkPointFromPoint(a,y,x,nt,b,ot),Gt.free(x),ot},ji.prototype.getLinkDirection=function(a,y,x,b,tt,et,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=vm(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(yr,Gt.alloc()),this.pointsCount>(et?6:2)?(ot=tt?this.i(1):this.i(this.pointsCount-2),ot=et?a1(at,ot.copy()):x):(x=Gt.alloc(),ot=ot.ga(yr,x),Gt.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,Gt.free(at),at=x}return b.Mc()&&nt.Td(a)&&(at+=180,360<=at&&(at-=360)),cp(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},ji.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=vm(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)},ji.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=yr:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Ao?Ji:y)):(a=y||this.toPort,a===null?a=yr:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Ao?Ji:y)),a};function cp(a){return a===Ji||a.x===.5&&a.y===.5}function Bg(a){return a.x===.5&&a.y===.5?a:yr}ji.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==zl&&4<this.pointsCount?this.computeMidPoint(new Gt):(a=y.Zn,a=a!==null?ny(a,this):null,a!==null?a.Zo:y.ga(yr))},ji.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},ji.prototype.Cf=function(a,y,x,b,tt,et){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var nt=et;if(et===void 0&&(nt=Hr.alloc(),nt.reset()),nt.multiply(this.transform),this.fh(a,nt))return Pv(this,y,x,tt),et===void 0&&Hr.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 ht=at[ut];if(ht.visible||ht===this.locationObject){var gt=ht.actualBounds,bt=this.naturalBounds;if(!(gt.x>bt.width||gt.y>bt.height||0>gt.x+gt.width||0>gt.y+gt.height)){if(gt=Hr.alloc(),gt.set(nt),ht instanceof Di)ot=ht.Cf(a,y,x,b,tt,gt);else if(this.path===ht){if(ht instanceof lo)if(ot=a,bt=b,ht.pickable===!1)ot=!1;else if(gt.multiply(ht.transform),bt)t:{var Mt=ot,Et=gt;if(ht.fh(Mt,Et))ot=!0;else{if(Et===void 0&&(Et=ht.transform,Mt.Re(ht.actualBounds))){ot=!0;break t}ot=Mt.left,bt=Mt.right;var Bt=Mt.top;Mt=Mt.bottom;var se=Gt.alloc(),Jt=Gt.alloc(),me=Gt.alloc(),Se=Hr.alloc();Se.set(Et),Se.bv(ht.transform),Se.Vj(),Jt.x=bt,Jt.y=Bt,Jt.transform(Se),se.x=ot,se.y=Bt,se.transform(Se),Et=!1,ip(ht,se,Jt,me)?Et=!0:(se.x=bt,se.y=Mt,se.transform(Se),ip(ht,se,Jt,me)?Et=!0:(Jt.x=ot,Jt.y=Mt,Jt.transform(Se),ip(ht,se,Jt,me)?Et=!0:(se.x=ot,se.y=Bt,se.transform(Se),ip(ht,se,Jt,me)&&(Et=!0)))),Hr.free(Se),Gt.free(se),Gt.free(Jt),Gt.free(me),ot=Et}}else ot=ht.fh(ot,gt)}else ot=Aa(ht,a,b,gt);ot&&(bt=ht,y!==null&&(bt=y(ht)),bt&&(x===null||x(bt))&&tt.add(bt)),Hr.free(gt)}}}return et===void 0&&Hr.free(nt),ot||this.background!==null||this.areaBackground!==null}return et===void 0&&Hr.free(nt),!1},ji.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?Lu:this.curve},ji.prototype.computeCorner=function(){if(this.curve===Lu)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},ji.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,b=0;b<x;b++){var tt=y[b];if(tt!==a&&!tt.isPanelMain&&(tt.segmentIndex===-1/0||isNaN(tt.segmentIndex)))return tt}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},ji.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=mx;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 tt=b.naturalBounds,et=b.margin,nt=isNaN(tt.width)?30:tt.width*b.scale+et.left+et.right;tt=isNaN(tt.height)?14:tt.height*b.scale+et.top+et.bottom,b=b.segmentOrientation,b===xm||b===$v||b===f1?a=Math.max(a,tt):b===Rg||b===zg||b===fp||b===bm?a=Math.max(a,nt):(y=y.ga(yr).ab(x.ga(yr))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*nt)+Math.abs(Math.cos(y)*tt)+1)),this.curve===Lu&&(a*=1.333)}}return a},ji.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===zl&&x.bb()}},ji.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=px;var y=this.Sf;if(y!==null){for(var x=Xn(),b=0,tt=y.links,et=0;et<tt.length;et++){var nt=tt[et].computeSpacing();x.push(nt),b+=nt}for(b=-b/2,et=0;et<tt.length;et++){if(tt[et]===this){a=b+x[et]/2;break}b+=x[et]}y.Ds===this.fromNode&&(a=-a),qn(x)}}return a},ji.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},ji.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},ji.prototype.adjustPoints=function(a,y,x,b){var tt=this.computeAdjusting();if(this.isOrthogonal){if(tt===pl)return!1;tt===g0&&(tt=yu)}switch(tt){case pl:var et=this.i(a),nt=this.i(x);if(!et.Xa(y)||!nt.Xa(b)){tt=et.x,et=et.y;var ot=nt.x-tt,at=nt.y-et,ut=Math.sqrt(ot*ot+at*at);if(!Ke.$(ut,0)){if(Ke.$(ot,0))var ht=0>at?-Math.PI/2:Math.PI/2;else ht=Math.atan(at/Math.abs(ot)),0>ot&&(ht=Math.PI-ht);nt=y.x;var gt=y.y;ot=b.x-nt;var bt=b.y-gt;for(at=Math.sqrt(ot*ot+bt*bt),Ke.$(ot,0)?bt=0>bt?-Math.PI/2:Math.PI/2:(bt=Math.atan(bt/Math.abs(ot)),0>ot&&(bt=Math.PI-bt)),ut=at/ut,ht=bt-ht,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),ot=y.x-tt,at=y.y-et,y=Math.sqrt(ot*ot+at*at),Ke.$(y,0)||(Ke.$(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+ht,y*=ut,this.L(a,nt+y*Math.cos(ot),gt+y*Math.sin(ot)));this.dd(x,b)}}return!0;case g0:if(et=this.i(a),gt=this.i(x),!et.Xa(y)||!gt.Xa(b)){tt=et.x,et=et.y,nt=gt.x,gt=gt.y,ut=(nt-tt)*(nt-tt)+(gt-et)*(gt-et),ot=y.x,ht=y.y,at=b.x,bt=b.y;var Mt=1;if(at-ot!==0){var Et=(bt-ht)/(at-ot);Mt=Math.sqrt(1+1/(Et*Et))}else Et=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Bt=y.x,se=y.y,Jt=.5;ut!==0&&(Jt=((tt-Bt)*(tt-nt)+(et-se)*(et-gt))/ut);var me=tt+Jt*(nt-tt),Se=et+Jt*(gt-et);y=Math.sqrt((Bt-me)*(Bt-me)+(se-Se)*(se-Se)),se<Et*(Bt-me)+Se&&(y=-y),0<Et&&(y=-y),Bt=ot+Jt*(at-ot),Jt=ht+Jt*(bt-ht),Et!==0?(y=Bt+y/Mt,this.L(a,y,Jt-(y-Bt)/Et)):this.L(a,Bt,Jt+y)}this.dd(x,b)}return!0;case yu:t:{if(this.isOrthogonal&&(tt=this.i(a),et=this.i(a+1),nt=this.i(a+2),ot=et.x,ht=et.y,gt=ot,ut=ht,Ke.B(tt.y,et.y)?Ke.B(et.x,nt.x)?ht=y.y:Ke.B(et.y,nt.y)&&(ot=y.x):Ke.B(tt.x,et.x)&&(Ke.B(et.y,nt.y)?ot=y.x:Ke.B(et.x,nt.x)&&(ht=y.y)),this.L(a+1,ot,ht),tt=this.i(x),et=this.i(x-1),nt=this.i(x-2),ot=et.x,ht=et.y,at=ot,bt=ht,Ke.B(tt.y,et.y)?Ke.B(et.x,nt.x)?ht=b.y:Ke.B(et.y,nt.y)&&(ot=b.x):Ke.B(tt.x,et.x)&&(Ke.B(et.y,nt.y)?ot=b.x:Ke.B(et.x,nt.x)&&(ht=b.y)),this.L(x-1,ot,ht),l1(this))){this.L(a+1,gt,ut),this.L(x-1,at,bt),x=!1;break t}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},ji.prototype.addOrthoPoints=function(a,y,x,b,tt,et){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=tt.actualBounds.copy(),at=et.actualBounds.copy();if(ot.w()&&at.w()){ot.Bc(jg,jg),at.Bc(jg,jg),ot.Ye(a),at.Ye(x);var ut=Gt.alloc(),ht=Gt.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),ht.h(x.x,(a.y+x.y)/2),b===180?(ut.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ht.x=ut.x,ht.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,ht.x=ut.x,ht.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),ht.y=ut.y)):(ut.h(a.x,x.y),ht.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)),ht.x=x.x,ht.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),ht.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)),ht.x=x.x,ht.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),ht.h(x.x,(a.y+x.y)/2),b===0?(ut.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ht.x=ut.x,ht.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,ht.x=ut.x,ht.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),ht.y=ut.y)):(ut.h(a.x,x.y),ht.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)),ht.x=x.x,ht.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),ht.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)),ht.x=x.x,ht.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),ht.h((a.x+x.x)/2,x.y),b===270?(ut.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ht.x=x.x,ht.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,ht.x=x.x,ht.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,ht.x=ut.x)):(ut.h(x.x,a.y),ht.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)),ht.x=ut.x,ht.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)),ht.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)),ht.x=ut.x,ht.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),ht.h((a.x+x.x)/2,x.y),b===90?(ut.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ht.x=x.x,ht.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,ht.x=x.x,ht.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,ht.x=ut.x)):(ut.h(x.x,a.y),ht.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)),ht.x=ut.x,ht.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)),ht.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)),ht.x=ut.x,ht.y=x.y)));var gt=x;if(this.isAvoiding){var bt=this.diagram;if(bt===null||tt===et||this.layer.isTemporary||!eu(bt)||ot.ca(gt)&&!et.Td(tt)||at.ca(a)&&!tt.Td(et))y=!1;else{var Mt=yh(bt,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Mt.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))&&Mt.Yj(Math.min(ut.x,ht.x),Math.min(ut.y,ht.y),Math.abs(ut.x-ht.x),Math.abs(ut.y-ht.y))&&Mt.Yj(Math.min(ht.x,gt.x),Math.min(ht.y,gt.y),Math.abs(ht.x-gt.x),Math.abs(ht.y-gt.y)))y=!1;else{tt=a,et=gt;var Et=x=null;if(bt.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0||y===180?Ke.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)):Ke.B(ot.y,nt.y)?(Math.abs(a.y-ot.y)<=Mt.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)&&(Ke.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)):Ke.B(ot.x,nt.x)?(Math.abs(a.x-ot.x)<=Mt.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,tt.x,x.y):this.m(2,x.x,tt.y)),Et!==null&&(b===0||b===180?this.yf(et.x,Et.y):this.yf(Et.x,et.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(ut.copy()),this.ne(ht.copy())),Gt.free(ut),Gt.free(ht)}},ji.prototype.computeMidOrthoPosition=function(a,y,x,b,tt){var et=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(et=this.computeCurviness()),tt?(y+b)/2+et:(a+x)/2+et};function l1(a){if(a.diagram===null||!a.isAvoiding||!eu(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=yh(a.diagram,!0,a.containingGroup,null);for(var b=1;b<x-2;b++){var tt=y[b],et=y[b+1];if(!a.Yj(Math.min(tt.x,et.x),Math.min(tt.y,et.y),Math.abs(tt.x-et.x),Math.abs(tt.y-et.y)))return!0}return!1}function Ig(a,y,x,b,tt,et,nt){var ot=y.Ho,at=y.Go,ut=Bc(y,x,b),ht=x,gt=b;for(tt===0?ht+=ot:tt===90?gt+=at:tt===180?ht-=ot:gt-=at,tt!==nt&&ut>pp&&Bc(y,ht,gt)!==ut-1&&(Bc(y,x-ot,b)===ut-1?(tt=180,ht=x-ot,gt=b):Bc(y,x+ot,b)===ut-1?(tt=0,ht=x+ot,gt=b):Bc(y,x,b-at)===ut-1?(tt=270,ht=x,gt=b-at):Bc(y,x,b+at)===ut-1&&(tt=90,ht=x,gt=b+at));ut>pp&&Bc(y,ht,gt)===ut-1;)x=ht,b=gt,tt===0?ht+=ot:tt===90?gt+=at:tt===180?ht-=ot:gt-=at,--ut;et?ut>pp&&(tt===180||tt===0?x=Math.floor(x/ot)*ot+ot/2:(tt===90||tt===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>pp&&(et=tt,nt=x,ht=b,tt===0?(et=90,ht+=at):tt===90?(et=180,nt-=ot):tt===180?(et=270,ht-=at):tt===270&&(et=0,nt+=ot),Bc(y,nt,ht)===ut-1?Ig(a,y,nt,ht,et,!1,et):(nt=x,ht=b,tt===0?(et=270,ht-=at):tt===90?(et=0,nt+=ot):tt===180?(et=90,ht+=at):tt===270&&(et=180,nt-=ot),Bc(y,nt,ht)===ut-1&&Ig(a,y,nt,ht,et,!1,et))),a.yf(x,b)}ji.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),tt=Ae(y,a,x.x,x.y,b.x,b.y),et=0,nt=1;nt<this.pointsCount-1;nt++){x=this.i(nt+1);var ot=Ae(y,a,b.x,b.y,x.x,x.y);b=x,ot<tt&&(et=nt,tt=ot)}return et},ji.prototype.qc=function(){this.lk=!1,this.v()},ji.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 tt=y[b];tt!==a&&tt.isPanelMain&&tt instanceof lo&&(tt.ua=this.ua)}}},ji.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&vf(this)&&b.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(b.animationManager.isAnimating||b.currentTool!==b.toolManager)&&(x=!0);var tt=this.i(0).copy(),et=tt.copy();b=this.Nb.s;var nt=this.computeCurve();if(nt===Lu&&3<=y&&!Ke.$(this.smoothness,0))if(y===3){var ot=this.i(1);b=Math.min(tt.x,ot.x);var at=Math.min(tt.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],et.x=Math.min(ot.x,et.x),et.y=Math.min(ot.y,et.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),at=this.i(b),et.x=Math.min(at.x,et.x),et.y=Math.min(at.y,et.y);b=et.x,at=et.y}else{for(at=0;at<y;at++)ot=b[at],et.x=Math.min(ot.x,et.x),et.y=Math.min(ot.y,et.y);b=et.x,at=et.y}if(b-=this.su.x,at-=this.su.y,tt.x-=b,tt.y-=at,y!==2||vf(this)){if(a.type=ii.o,ot=$y(a),this.computeShortLength(!0)!==0&&(tt=hp(this,tt,!0,et)),op(ot,tt.x,tt.y,!1),nt===Lu&&3<=y&&!Ke.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-at,tt=this.i(2).copy(),tt.x-=b,tt.y-=at,this.computeShortLength(!1)!==0&&(tt=hp(this,tt,!1,et)),gc(ot,y,x,y,x,tt.x,tt.y);else if(this.isOrthogonal){y=Gt.allocAt(b,at),x=Gt.alloc(),x.assign(this.i(1)),et=Gt.allocAt(b,at),tt=Gt.allocAt(b,at),nt=this.i(0);for(var ut,ht=this.smoothness/3,gt=1;gt<this.pointsCount-1;gt++){ut=this.i(gt);var bt=nt,Mt=ut,Et=this.i(gf(this,ut,gt,!1));if((!Ke.$(bt.x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=.5*(nt+ht.y),gc(ot,tt.x-b,tt.y-at,ut-b,nt-at,ht.x-b,ht.y-at),Gt.free(y),Gt.free(x),Gt.free(et),Gt.free(tt)}else for(x=3;x<y;x+=3)et=this.i(x-2),x+3>=y&&(x=y-1),tt=this.i(x-1),nt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(nt=hp(this,nt.copy(),!1,Zn)),gc(ot,et.x-b,et.y-at,tt.x-b,tt.y-at,nt.x-b,nt.y-at);else{for(et=Gt.alloc(),et.assign(this.i(0)),tt=Gt.alloc(),tt.assign(et),nt=this.computeCorner(),gt=1,ut=0;gt<y;){if(gt=gf(this,et,gt,1<gt),ht=this.i(gt),gt>=y-1){if(!et.D(ht))this.computeShortLength(!1)!==0&&(ht=hp(this,ht.copy(),!1,Zn)),ed(this,ot,-b,-at,et,ht,x);else if(ut===0)for(gt=1;gt<y;)tt.assign(et),ht=this.i(gt++),ed(this,ot,-b,-at,et,ht,x),et.assign(ht);break}if(ut=gf(this,ht,gt+1,gt<y-3),gt=-b,se=-at,bt=ht,Jt=this.i(ut),Bt=x,Ke.B(et.y,bt.y)&&Ke.B(bt.x,Jt.x))if(Et=Math.min(nt,Math.abs(bt.x-tt.x)/2),Et=Se=Math.min(Et,Math.abs(Jt.y-bt.y)/2),Ke.B(Et,0))ed(this,ot,gt,se,et,bt,Bt),et.assign(bt);else{var Le=bt.x,Ve=bt.y;Mt=Le,me=Ve,bt.x>et.x?Le=bt.x-Et:Le=bt.x+Et,Jt.y>bt.y?me=bt.y+Se:me=bt.y-Se,Jt=Gt.allocAt(Le,Ve),ed(this,ot,gt,se,et,Jt,Bt),Gt.free(Jt),ff(ot,bt.x+gt,bt.y+se,Mt+gt,me+se),et.h(Mt,me)}else Ke.B(et.x,bt.x)&&Ke.B(bt.y,Jt.y)?(Et=Math.min(nt,Math.abs(bt.y-tt.y)/2),Et=Se=Math.min(Et,Math.abs(Jt.x-bt.x)/2),Ke.B(Se,0)?(ed(this,ot,gt,se,et,bt,Bt),et.assign(bt)):(Le=bt.x,Ve=bt.y,Mt=Le,me=Ve,bt.y>et.y?Ve=bt.y-Et:Ve=bt.y+Et,Jt.x>bt.x?Mt=bt.x+Se:Mt=bt.x-Se,Jt=Gt.allocAt(Le,Ve),ed(this,ot,gt,se,et,Jt,Bt),Gt.free(Jt),ff(ot,bt.x+gt,bt.y+se,Mt+gt,me+se),et.h(Mt,me))):(ed(this,ot,gt,se,et,bt,Bt),et.assign(bt));tt.assign(ht),gt=ut}Gt.free(et)}d0=ot}else ot=this.i(1).copy(),ot.x-=b,ot.y-=at,this.computeShortLength(!0)!==0&&(tt=hp(this,tt,!0,et)),this.computeShortLength(!1)!==0&&(ot=hp(this,ot,!1,et)),a.type=ii.j,a.startX=tt.x,a.startY=tt.y,a.endX=ot.x,a.endY=ot.y;return this.lk=!0,a};function ym(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),Ke.$(a,0)?y:Ke.$(y,0)?a:Math.sqrt(a*a+y*y)))}function hp(a,y,x,b){var tt=a.pointsCount;if(2>tt)return y;if(x){var et=a.i(1);if(x=et.x-b.x,et=et.y-b.y,b=ym(y.x,y.y,x,et),b===0)return y;tt=tt===2?.5*b:b,a=a.computeShortLength(!0),a>tt&&(a=tt),tt=a*(et-y.y)/b,y.x+=a*(x-y.x)/b,y.y+=tt}else{if(et=a.i(tt-2),x=et.x-b.x,et=et.y-b.y,b=ym(y.x,y.y,x,et),b===0)return y;tt=tt===2?.5*b:b,a=a.computeShortLength(!1),a>tt&&(a=tt),tt=a*(y.y-et)/b,y.x-=a*(y.x-x)/b,y.y-=tt}return y}function gf(a,y,x,b){for(var tt=a.pointsCount,et=y;Ke.$(y.x,et.x)&&Ke.$(y.y,et.y);){if(x>=tt)return tt-1;et=a.i(x++)}if(!Ke.$(y.x,et.x)&&!Ke.$(y.y,et.y))return x-1;for(var nt=et;Ke.$(y.x,et.x)&&Ke.$(et.x,nt.x)&&(!b||(y.y>=et.y?et.y>=nt.y:et.y<=nt.y))||Ke.$(y.y,et.y)&&Ke.$(et.y,nt.y)&&(!b||(y.x>=et.x?et.x>=nt.x:et.x<=nt.x));){if(x>=tt)return tt-1;nt=a.i(x++)}return x-2}ji.prototype.computeJumpLength=function(){return 10};function ed(a,y,x,b,tt,et,nt){if(!nt&&vf(a)){nt=a.computeJumpLength();var ot=nt/2,at=[],ut=0;if(a.isVisible()&&(ut=Xv(a,tt,et,at)),0<ut){if(Ke.B(tt.y,et.y))if(tt.x<et.x)for(var ht=0;ht<ut;){var gt=Math.max(tt.x,Math.min(at[ht++]-ot,et.x-nt));y.lineTo(gt+x,et.y+b);for(var bt=gt+x,Mt=Math.min(gt+nt,et.x);ht<ut&&(gt=at[ht],gt<Mt+nt);)ht++,Mt=Math.min(gt+ot,et.x);gt=et.y-nt+b,Mt+=x;var Et=et.y+b;a.curve===vu?op(y,Mt,Et,!1):gc(y,bt,gt,Mt,gt,Mt,Et)}else for(--ut;0<=ut;){for(ht=Math.min(tt.x,Math.max(at[ut--]+ot,et.x+nt)),y.lineTo(ht+x,et.y+b),bt=ht+x,gt=Math.max(ht-nt,et.x);0<=ut&&(ht=at[ut],ht>gt-nt);)ut--,gt=Math.max(ht-ot,et.x);ht=et.y-nt+b,gt+=x,Mt=et.y+b,a.curve===vu?op(y,gt,Mt,!1):gc(y,bt,ht,gt,ht,gt,Mt)}else if(Ke.B(tt.x,et.x))if(tt.y<et.y)for(ht=0;ht<ut;){for(gt=Math.max(tt.y,Math.min(at[ht++]-ot,et.y-nt)),y.lineTo(et.x+x,gt+b),bt=gt+b,gt=Math.min(gt+nt,et.y);ht<ut&&(Mt=at[ht],Mt<gt+nt);)ht++,gt=Math.min(Mt+ot,et.y);Mt=et.x-nt+x,Et=et.x+x,gt+=b,a.curve===vu?op(y,Et,gt,!1):gc(y,Mt,bt,Mt,gt,Et,gt)}else for(--ut;0<=ut;){for(ht=Math.min(tt.y,Math.max(at[ut--]+ot,et.y+nt)),y.lineTo(et.x+x,ht+b),bt=ht+b,ht=Math.max(ht-nt,et.y);0<=ut&&(gt=at[ut],gt>ht-nt);)ut--,ht=Math.max(gt-ot,et.y);gt=et.x-nt+x,Mt=et.x+x,ht+=b,a.curve===vu?op(y,Mt,ht,!1):gc(y,gt,bt,gt,ht,Mt,ht)}}}y.lineTo(et.x+x,et.y+b)}function Xv(a,y,x,b){var tt=a.diagram;if(tt===null||y.D(x))return 0;for(tt=tt.layers;tt.next();){var et=tt.value;if(et!==null&&et.visible){et=et.Pa.s;for(var nt=et.length,ot=0;ot<nt;ot++){var at=et[ot];if(at instanceof ji){if(at===a)return 0<b.length&&b.sort(function(ht,gt){return ht-gt}),b.length;if(at.isVisible()&&vf(at)){var ut=at.routeBounds;ut.w()&&a.routeBounds.Yc(ut)&&!a.usesSamePort(at)&&(ut=at.path,ut!==null&&ut.Ed()&&u1(y,x,b,at))}}}}}return 0<b.length&&b.sort(function(ht,gt){return ht-gt}),b.length}function u1(a,y,x,b){for(var tt=Ke.B(a.y,y.y),et=b.pointsCount,nt=b.i(0),ot=Gt.alloc(),at=1;at<et;at++){var ut=b.i(at);if(at<et-1){var ht=b.i(at+1);if(nt.y===ut.y&&ut.y===ht.y){if(ut.x>nt.x&&ht.x>=ut.x||ut.x<nt.x&&ht.x<=ut.x)continue}else if(nt.x===ut.x&&ut.x===ht.x&&(ut.y>nt.y&&ht.y>=ut.y||ut.y<nt.y&&ht.y<=ut.y))continue}t:{ht=a.x;var gt=a.y,bt=y.x,Mt=y.y,Et=nt.x;nt=nt.y;var Bt=ut.x,se=ut.y;if(Ke.B(ht,bt)){if(!Ke.B(gt,Mt)&&Ke.B(nt,se)&&Math.min(gt,Mt)<nt&&Math.max(gt,Mt)>nt&&Math.min(Et,Bt)<ht&&Math.max(Et,Bt)>ht&&!Ke.B(Et,Bt)){ot.x=ht,ot.y=nt,ht=!0;break t}}else if(Ke.B(gt,Mt)&&Ke.B(Et,Bt)&&Math.min(ht,bt)<Et&&Math.max(ht,bt)>Et&&Math.min(nt,se)<gt&&Math.max(nt,se)>gt&&!Ke.B(nt,se)){ot.x=Et,ot.y=gt,ht=!0;break t}ot.x=0,ot.y=0,ht=!1}ht&&(tt?x.push(ot.x):x.push(ot.y)),nt=ut}Gt.free(ot)}function vf(a){return a=a.curve,a===ma||a===vu}function Jv(a,y){(y||vf(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()))}ji.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 tt=x.value;if(tt.visible){if(tt===y){b=!0;var et=!1;tt=tt.Pa.s;for(var nt=tt.length,ot=0;ot<nt;ot++){var at=tt[ot];at instanceof ji&&(at===this?et=!0:et&&c1(this,at,a))}}else if(b)for(et=tt.Pa.s,tt=et.length,nt=0;nt<tt;nt++)ot=et[nt],ot instanceof ji&&c1(this,ot,a)}}}}};function c1(a,y,x){if(y!==null&&y.lk&&y.fd&&vf(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}ji.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var b=this.i(0),tt=a.i(0);if(b.Xa(tt)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||b.Xa(a)||y.Xa(tt)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},ji.prototype.isVisible=function(){if(!Pr.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},ji.prototype.Zb=function(a){if(Pr.prototype.Zb.call(this,a),a&&Jv(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},ji.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?yu:this.qk};function Fg(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var b=a.ff,tt=a.vf,et=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===tt||ut.ef===x&&ut.ff===tt&&ut.uf===y&&ut.vf===b)&&(et===null?et=ut:(a===null&&(a=[],a.push(et)),a.push(ut)))}if(a!==null){for(et=ux(y,x,b,tt),et===null&&(et=new wm(y,b,x,tt),e1(y,et),e1(x,et)),et.links=a,y=0;y<a.length;y++)a[y].Sf=et;et.Sl()}}}}function yf(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(ci(y.links,a),y.Sl()))}ji.prototype.ph=function(){return!0},ge.Object.defineProperties(ji.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&&Uv(y,this,x),yf(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 tt=this.fromPort,et=this.fromPortChanged;if(et!==null){var nt=!0;b!==null&&(nt=b.aa,b.aa=!0),et(this,x,tt),b!==null&&(b.aa=nt)}a!==null&&(this.uf!==a&&Tg(a,this,tt),Fg(this),this.C(1)),this.g("fromNode",y,a),p0(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&gu(x),yf(this),this.ff=a;var b=this.fromPort;b!==null&&gu(b);var tt=this.diagram;if(tt!==null){var et=this.data,nt=tt.model;et!==null&&nt.ri()&&nt.xv(et,a)}x!==b&&(this.Wf=null,this.bb(),et=this.fromPortChanged,et!==null&&(nt=!0,tt!==null&&(nt=tt.aa,tt.aa=!0),et(this,x,b),tt!==null&&(tt.aa=nt))),Fg(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&&Uv(y,this,x),yf(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 tt=this.toPort,et=this.toPortChanged;if(et!==null){var nt=!0;b!==null&&(nt=b.aa,b.aa=!0),et(this,x,tt),b!==null&&(b.aa=nt)}a!==null&&(this.ef!==a&&Tg(a,this,tt),Fg(this),this.C(1)),this.g("toNode",y,a),p0(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&gu(x),yf(this),this.vf=a;var b=this.toPort;b!==null&&gu(b);var tt=this.diagram;if(tt!==null){var et=this.data,nt=tt.model;et!==null&&nt.ri()&&nt.Cv(et,a)}x!==b&&(this.Wf=null,this.bb(),et=this.toPortChanged,et!==null&&(nt=!0,tt!==null&&(nt=tt.aa,tt.aa=!0),et(this,x,b),tt!==null&&(tt.aa=nt))),Fg(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:Ao},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&&gu(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&&Ri(a,">= 0",ji,"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:Ao},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&&gu(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&&Ri(a,">= 0",ji,"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?Xr: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&&Dg(this.fromNode),this.toNode!==null&&Dg(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof lo?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 tt=this.i(1);y=Math.min(b.x,tt.x),x=Math.min(b.y,tt.y),a.h(b.x,b.y,0,0),a.Ye(tt)}else if(this.computeCurve()===Lu&&3<=b&&!this.isOrthogonal)if(tt=this.i(0),y=tt.x,x=tt.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 et=this.i(2);y=Math.min(et.x,y),x=Math.min(et.y,x),Ke.Dl(tt.x,tt.y,b.x,b.y,b.x,b.y,et.x,et.y,.5,a)}else for(et=3;et<b;et+=3){var nt=this.i(et-2);et+3>=b&&(et=b-1);var ot=this.i(et-1),at=this.i(et);Ke.Dl(tt.x,tt.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),tt=at}else for(tt=this.i(0),et=this.i(1),y=Math.min(tt.x,et.x),x=Math.min(tt.y,et.y),a.h(tt.x,tt.y,0,0),a.Ye(et),tt=2;tt<b;tt++)et=this.i(tt),y=Math.min(et.x,y),x=Math.min(et.y,x),a.Ye(et);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new Gt)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Yv(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var b=this.i(x),tt=this.i(x+1);Ke.$(b.x,tt.x)?(b=tt.y-b.y,0>b&&(b=-b)):Ke.$(b.y,tt.y)?(b=tt.x-b.x,0>b&&(b=-b)):b=Math.sqrt(b.Bf(tt)),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 tt=0;tt<a.length;tt++)if(typeof a[tt]!="number"||isNaN(a[tt])){b=!1;break}}if(b)for(x=new oi,b=0;b<a.length/2;b++)tt=new Gt(a[2*b],a[2*b+1]).freeze(),x.add(tt);else{for(b=!0,tt=0;tt<a.length;tt++){var et=a[tt];if(!Ge(et)||typeof et.x!="number"||isNaN(et.x)||typeof et.y!="number"||isNaN(et.y)){b=!1;break}}if(b)for(x=new oi,b=0;b<a.length;b++)tt=a[b],x.add(new Gt(tt.x,tt.y).freeze())}}else if(a instanceof oi)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else _e("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Yv(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&ql(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||!cp(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!cp(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(),Jv(this,y===vu||y===ma||a===vu||a===ma),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(),Jv(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)}}}),ji.prototype.invalidateOtherJumpOvers=ji.prototype.Xo,ji.prototype.findClosestSegment=ji.prototype.ez,ji.prototype.updateRoute=ji.prototype.vg,ji.prototype.invalidateRoute=ji.prototype.bb,ji.prototype.rollbackRoute=ji.prototype.rv,ji.prototype.commitRoute=ji.prototype.zf,ji.prototype.startRoute=ji.prototype.uh,ji.prototype.clearPoints=ji.prototype.Fj,ji.prototype.removePoint=ji.prototype.pv,ji.prototype.addPointAt=ji.prototype.yf,ji.prototype.addPoint=ji.prototype.ne,ji.prototype.insertPointAt=ji.prototype.m,ji.prototype.insertPoint=ji.prototype.Kz,ji.prototype.setPointAt=ji.prototype.L,ji.prototype.setPoint=ji.prototype.dd,ji.prototype.getPoint=ji.prototype.i,ji.prototype.getOtherPort=ji.prototype.Cz,ji.prototype.getOtherNode=ji.prototype.To;var m0=null,dp=null,h1=new ui(ji,"Normal",1),Qv=new ui(ji,"Orthogonal",2),_b=new ui(ji,"AvoidsNodes",6),d1=new ui(ji,"AvoidsNodesStraight",7),zl=new ui(ji,"None",0),Lu=new ui(ji,"Bezier",9),vu=new ui(ji,"JumpGap",10),ma=new ui(ji,"JumpOver",11),yu=new ui(ji,"End",17),pl=new ui(ji,"Scale",18),g0=new ui(ji,"Stretch",19),xm=new ui(ji,"OrientAlong",21),fp=new ui(ji,"OrientPlus90",22),Rg=new ui(ji,"OrientMinus90",23),f1=new ui(ji,"OrientOpposite",24),$v=new ui(ji,"OrientUpright",25),bm=new ui(ji,"OrientPlus90Upright",26),zg=new ui(ji,"OrientMinus90Upright",27),qv=new ui(ji,"OrientUpright45",28),px=16,mx=14,jg=8;ji.className="Link",ji.Normal=h1,ji.Orthogonal=Qv,ji.AvoidsNodes=_b,ji.AvoidsNodesStraight=d1,ji.None=zl,ji.Bezier=Lu,ji.JumpGap=vu,ji.JumpOver=ma,ji.End=yu,ji.Scale=pl,ji.Stretch=g0,ji.OrientAlong=xm,ji.OrientPlus90=fp,ji.OrientMinus90=Rg,ji.OrientOpposite=f1,ji.OrientUpright=$v,ji.OrientPlus90Upright=bm,ji.OrientMinus90Upright=zg,ji.OrientUpright45=qv,ji.EndSegmentStep=8,ji.CurvinessStart=px,ji.SpacingMin=mx,ji.OrthoShortCut=jg;function wm(a,y,x,b){si(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}wm.prototype.Sl=function(){if(!this.qq){var a=this.links;0<a.length&&(a=a[0].diagram,a!==null&&(a.ow.add(this),this.Fe=a.undoManager.isUndoingRedoing))}this.qq=!0},wm.prototype.Nv=function(){if(this.qq){this.qq=!1;var a=this.links;if(0<a.length){var y=a[0],x=y.diagram;x=x===null||x.pi&&!this.Fe,this.Fe=!1,y.arrangeBundledLinks(a,x),a.length===1&&(y.Sf=null,a.length=0)}a.length===0&&(a=this.Ds,this!==null&&a.af!==null&&a.af.remove(this),a=this.cv,this!==null&&a.af!==null&&a.af.remove(this))}},wm.className="LinkBundle";function v0(a){si(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}v0.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=g1,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 Sm(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Bc(a,y,x){return Sm(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):g1}function gx(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]>=pp&&(x[b]=g1)}v0.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 tt=Math.max(0,b)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(tt+=y,y=0),0>x||0>tt)return!0;for(b=Math.min(a+x-1,this.di)|0,x=Math.min(y+tt-1,this.ei)|0;a<=b;a++){tt=this.ac[a];for(var et=y;et<=x;et++)if(tt[et]===kh)return!1}return!0};function vc(a,y,x,b,tt,et,nt,ot,at){if(!(y<et||y>nt||x<ot||x>at)){var ut=y|0,ht=x|0,gt=a.ac[ut][ht];if(gt>=pp&><Cm)for(tt?ht+=b:ut+=b,gt+=1;et<=ut&&ut<=nt&&ot<=ht&&ht<=at&&!(gt>=a.ac[ut][ht]);)a.ac[ut][ht]=gt,gt+=1,tt?ht+=b:ut+=b;if(ut=tt?ht:ut,tt)if(0<b)for(x+=b;x<ut;x+=b)vc(a,y,x,1,!tt,et,nt,ot,at),vc(a,y,x,-1,!tt,et,nt,ot,at);else for(x+=b;x>ut;x+=b)vc(a,y,x,1,!tt,et,nt,ot,at),vc(a,y,x,-1,!tt,et,nt,ot,at);else if(0<b)for(y+=b;y<ut;y+=b)vc(a,y,x,1,!tt,et,nt,ot,at),vc(a,y,x,-1,!tt,et,nt,ot,at);else for(y+=b;y>ut;y+=b)vc(a,y,x,1,!tt,et,nt,ot,at),vc(a,y,x,-1,!tt,et,nt,ot,at)}}function ty(a,y,x,b,tt,et,nt,ot,at){y|=0,x|=0;var ut=kh,ht=pp;for(a.ac[y][x]=ht;ut===kh&&y>et&&y<nt&&x>ot&&x<at;)ht+=1,a.ac[y][x]=ht,tt?x+=b:y+=b,ut=a.ac[y][x]}function ey(a,y,x,b,tt,et,nt,ot,at){y|=0,x|=0;var ut=kh,ht=Cm;for(a.ac[y][x]=ht;ut===kh&&y>et&&y<nt&&x>ot&&x<at;)a.ac[y][x]=ht,tt?x+=b:y+=b,ut=a.ac[y][x]}function p1(a,y,x,b,tt,et,nt){if(a.ac!==null){a.abort=!1;var ot=y.x,at=y.y;if(Sm(a,ot,at)){ot-=a.Nd,ot/=a.rc,at-=a.Od,at/=a.sc;var ut=b.x,ht=b.y;if(Sm(a,ut,ht))if(ut-=a.Nd,ut/=a.rc,ht-=a.Od,ht/=a.sc,1>=Math.abs(ot-ut)&&1>=Math.abs(at-ht))a.abort=!0;else{var gt=et.x;b=et.y,y=et.x+et.width;var bt=et.y+et.height;gt-=a.Nd,gt/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,bt-=a.Od,bt/=a.sc,et=Math.max(0,Math.min(a.di,gt|0)),y=Math.min(a.di,Math.max(0,y|0)),gt=Math.max(0,Math.min(a.ei,b|0)),bt=Math.min(a.ei,Math.max(0,bt|0)),b=a.ac,ot|=0,at|=0,ut|=0,ht|=0;var Mt=x===0||x===90?1:-1;if(x=x===90||x===270,b[ot][at]===kh?(ty(a,ot,at,Mt,x,et,y,gt,bt),ty(a,ot,at,1,!x,et,y,gt,bt),ty(a,ot,at,-1,!x,et,y,gt,bt)):ty(a,ot,at,Mt,x,ot,at,ot,at),b[ut][ht]===kh?(ey(a,ut,ht,tt===0||tt===90?1:-1,tt===90||tt===270,et,y,gt,bt),ey(a,ut,ht,1,!(tt===90||tt===270),et,y,gt,bt),ey(a,ut,ht,-1,!(tt===90||tt===270),et,y,gt,bt)):ey(a,ut,ht,Mt,x,ut,ht,ut,ht),x=Xn(),nt&&m1(a,ut,ht,tt,ot,at,x))for((x[0]!==ut||x[1]!==ht)&&(x.unshift(ht),x.unshift(ut)),(x[x.length-2]!==ot||x[x.length-1]!==at)&&(x.push(ot),x.push(at)),a=pp,tt=x[x.length-2],nt=x[x.length-1],b[tt][nt]=a++,et=x.length-4;0<=et;et-=2)for(tt=x[et+2],nt=x[et+3],y=x[et],ut=x[et+1];y>tt?tt++:y<tt?tt--:ut>nt?nt++:ut<nt&&nt--,b[tt][nt]=a++,tt!==y||nt!==ut;);else vc(a,ot,at,1,!1,et,y,gt,bt),vc(a,ot,at,-1,!1,et,y,gt,bt),vc(a,ot,at,1,!0,et,y,gt,bt),vc(a,ot,at,-1,!0,et,y,gt,bt);qn(x)}}}}function m1(a,y,x,b,tt,et,nt){for(var ot=a.ac,at=y,ut=x;;){if(at===tt&&ut===et)return!0;var ht=at,gt=ut;if(b===0)if(ht<tt)ht++;else break;else if(b===90)if(gt<et)gt++;else break;else if(b===180)if(ht>tt)ht--;else break;else if(gt>et)gt--;else break;var bt=ot[ht][gt];if(bt===0||bt===mp)break;at=ht,ut=gt}for(;;){if(ht=b,gt=at,bt=ut,b===0?bt<et?(ht=90,bt++):bt>et&&(ht=270,bt--):b===90?gt<tt?(ht=0,gt++):gt>tt&&(ht=180,gt--):b===180?bt<et?(ht=90,bt++):bt>et&&(ht=270,bt--):gt<tt?(ht=0,gt++):gt>tt&&(ht=180,gt--),gt=ot[gt][bt],ht!==b&>!==0&>!==mp){if(nt.push(at),nt.push(ut),m1(a,at,ut,ht,tt,et,nt))return!0;nt.pop(),nt.pop()}if(ot[at][ut]=mp,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++}}}ge.Object.defineProperties(v0.prototype,{bounds:{get:function(){return new je(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 kh=0,pp=1,Cm=999999,g1=Cm+1,mp=Cm+2;v0.className="PositionArray";function ic(){si(this),this.port=this.node=null,this.pe=[],this.ap=!1}ic.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 v1(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}ic.prototype.Sl=function(){this.pe.length=0};function ny(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var b=null,tt=a.node,et=tt instanceof $r?tt:null;if(et===null||et.isSubGraphExpanded)var nt=tt.isTreeExpanded?tt.findLinksConnected(a.port.portId):tt.qx();else{if(!et.actualBounds.w()){a.ap=x;break t}b=et,nt=b.Lu()}et=a.pe.length=0;var ot=a.port.ga(er,Gt.alloc()),at=a.port.ga(oo,Gt.alloc());for(tt=je.allocAt(ot.x,ot.y,0,0),tt.Ye(at),Gt.free(ot),Gt.free(at),ot=Gt.allocAt(tt.x+tt.width/2,tt.y+tt.height/2),at=a.port.li(),nt=nt.iterator;nt.next();){var ut=nt.value;if(ut.isVisible()&&ut.fromPort!==ut.toPort){var ht=ut.fromPort===a.port||ut.fromNode!==null&&ut.fromNode.Td(b),gt=ut.computeSpot(ht,a.port);if(gt.$c()&&(ht=ht?ut.toPort:ut.fromPort,ht!==null)){var bt=ht.part;if(bt!==null){var Mt=bt.findVisibleNode();Mt!==null&&Mt!==bt&&(bt=Mt,ht=bt.port),ht=ut.computeOtherPoint(bt,ht),bt=ot.ab(ht),bt-=at,0>bt?bt+=360:360<=bt&&(bt-=360),gt=v1(tt,gt,bt,ut.isOrthogonal),gt===0?(gt=4,180<bt&&(bt-=360)):gt===90?(gt=8,270<bt&&(bt-=360)):gt===180?gt=2:(gt=1,90>bt&&(bt+=360)),Mt=a.pe[et],Mt===void 0?(Mt=new iy(ut,bt,gt),a.pe[et]=Mt):(Mt.link=ut,Mt.angle=bt,Mt.Nc=gt),Mt.hv.set(ht),et++}}}}for(Gt.free(ot),a.pe.sort(ic.prototype.j),at=a.pe.length,b=-1,et=ot=0;et<at;et++)nt=a.pe[et],nt!==void 0&&(nt.Nc!==b&&(b=nt.Nc,ot=0),nt.Uo=ot,ot++);for(b=-1,ot=0,et=at-1;0<=et;et--)at=a.pe[et],at!==void 0&&(at.Nc!==b&&(b=at.Nc,ot=at.Uo+1),at.Gl=ot);if(et=a.pe,gt=a.port,b=a.node.portSpreading,ot=Gt.alloc(),at=Gt.alloc(),nt=Gt.alloc(),ut=Gt.alloc(),gt.ga(er,ot),gt.ga(Ir,at),gt.ga(oo,nt),gt.ga(No,ut),Mt=bt=ht=gt=0,b===mf)for(var Et=0;Et<et.length;Et++){var Bt=et[Et];if(Bt!==null){var se=Bt.link.computeThickness();switch(Bt.Nc){case 8:bt+=se;break;case 2:Mt+=se;break;case 1:gt+=se;break;default:case 4:ht+=se}}}var Jt=Et=0,me=1,Se=Bt=0;for(se=0;se<et.length;se++){var Le=et[se];if(Le!==null){if(Et!==Le.Nc){switch(Et=Le.Nc,Et){case 8:var Ve=nt;Jt=ut;break;case 2:Ve=ut,Jt=ot;break;case 1:Ve=ot,Jt=at;break;default:case 4:Ve=at,Jt=nt}switch(Bt=Jt.x-Ve.x,Se=Jt.y-Ve.y,Et){case 8:bt>Math.abs(Bt)?(me=Math.abs(Bt)/bt,bt=Math.abs(Bt)):me=1;break;case 2:Mt>Math.abs(Se)?(me=Math.abs(Se)/Mt,Mt=Math.abs(Se)):me=1;break;case 1:gt>Math.abs(Bt)?(me=Math.abs(Bt)/gt,gt=Math.abs(Bt)):me=1;break;default:case 4:ht>Math.abs(Se)?(me=Math.abs(Se)/ht,ht=Math.abs(Se)):me=1}Jt=0}var fn=Le.Zo;if(b===mf){switch(Le=Le.link.computeThickness(),Le*=me,fn.set(Ve),Et){case 8:fn.x=Ve.x+Bt/2+bt/2-Jt-Le/2;break;case 2:fn.y=Ve.y+Se/2+Mt/2-Jt-Le/2;break;case 1:fn.x=Ve.x+Bt/2-gt/2+Jt+Le/2;break;default:case 4:fn.y=Ve.y+Se/2-ht/2+Jt+Le/2}Jt+=Le}else{var nr=.5;b===f0&&(nr=(Le.Uo+1)/(Le.Gl+1)),fn.x=Ve.x+Bt*nr,fn.y=Ve.y+Se*nr}}}for(Gt.free(ot),Gt.free(at),Gt.free(nt),Gt.free(ut),Ve=a.pe,et=0;et<Ve.length;et++)b=Ve[et],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,je.free(tt)}x=a.pe}for(a=0;a<x.length;a++)if(tt=x[a],tt!==null&&tt.link===y)return tt;return null}ic.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},ic.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Ji,y.fromPort===this.port),b=a.Uo;if(0>b)return x;var tt=a.Gl;if(1>=tt||!y.isOrthogonal)return x;y=a.hv;var et=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=tt-1-b),((a=a.Nc===2||a.Nc===4)?y.y<et.y:y.x<et.x)?x+8*b:(a?y.y===et.y:y.x===et.x)?x:x+8*(tt-1-b)},ic.className="Knot";function iy(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Gt,this.Gl=this.Uo=0,this.Zo=new Gt,this.Ju=0}iy.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()},iy.className="LinkInfo";function Ds(a){si(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Gt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Ds.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},Ds.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ds.prototype.qb=function(){},Ds.prototype.toString=function(){var a=Ki(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Ds.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())}}},Ds.prototype.createNetwork=function(){return new Ss(this)},Ds.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof dn?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof $r?y.lg(a.memberParts):y.lg(a.iterator),y},Ds.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")}},Ds.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()}},Ds.prototype.doLayout=function(a){var y=new Ce;a instanceof dn?(Td(this,y,a.nodes,!0,this.rh,!0,!1,!0),Td(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof $r?Td(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},Ds.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,tt=this.arrangementOrigin.y,et=0,nt=0;for(a=a.iterator;a.next();){var ot=a.value;Mm(ot);var at=ot.measuredBounds,ut=at.width;at=at.height,ot.moveTo(b,tt),ot instanceof $r&&(ot.rh=!1),b+=Math.max(ut,50)+20,nt=Math.max(nt,Math.max(at,50)),et>=y-1?(et=0,b=x,tt+=nt+20,nt=0):et++}},Ds.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,tt=0,et=0,nt=this.network.vertexes.iterator;nt.next();){var ot=nt.value.node;if(!(ot===null||ot instanceof ji)&&(Mm(ot),this.rh(ot))){var at=ot.measuredBounds,ut=at.width;at=at.height,ot.moveTo(x,b),ot instanceof $r&&(ot.rh=!1),x+=Math.max(ut,50)+20,et=Math.max(et,Math.max(at,50)),tt>=a-1?(tt=0,x=y,b+=et+20,et=0):tt++}}},Ds.prototype.rh=function(a){return!!(!a.location.w()||a instanceof $r&&a.rh)};function Td(a,y,x,b,tt,et,nt,ot){for(x=x.iterator;x.next();){var at=x.value;b&&!at.isTopLevel||tt!==null&&!tt(at)||!at.canLayout()||(et&&at instanceof Xi?at.isLinkLabel||(at instanceof $r&&at.layout===null?Td(a,y,at.memberParts,!1,tt,et,nt,ot):(Mm(at),y.add(at))):nt&&at instanceof ji?y.add(at):!ot||!at.Zc()||at instanceof Xi||(Mm(at),y.add(at)))}}function Mm(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Ds.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new je),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Ds.prototype.ex=function(a){var y=new Ce;return a instanceof dn?(Td(this,y,a.nodes,!0,null,!0,!0,!0),Td(this,y,a.links,!0,null,!0,!0,!0),Td(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof $r?Td(this,y,a.memberParts,!1,null,!0,!0,!0):Td(this,y,a.iterator,!1,null,!0,!0,!0),y},Ds.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(er),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},ge.Object.defineProperties(Ds.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())}}}),Ds.prototype.collectParts=Ds.prototype.ex,Ds.prototype.getLayoutBounds=Ds.prototype.ni,Ds.prototype.invalidateLayout=Ds.prototype.C,Ds.className="Layout";function Ss(a){si(this),this.Sc=a,this.wf=new Ce,this.ye=new Ce,this.Es=new or,this.zs=new or}Ss.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 Ce,this.ye=new Ce,this.Es=new or,this.zs=new or},Ss.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},Ss.prototype.createVertex=function(){return new ca(this)},Ss.prototype.createEdge=function(){return new lu(this)},Ss.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 Xi)return!nt.isLinkLabel;if(nt instanceof ji){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 Xi&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof $r&&b.layout===null)this.lg(b.memberParts,!1);else if(this.ki(b)===null){var tt=this.createVertex();tt.node=b,this.dh(tt)}}}for(a.reset();a.next();)if(b=a.value,b instanceof ji&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)&&this.Lo(b)===null){var et=b.fromNode;tt=b.toNode,et!==null&&tt!==null&&et!==tt&&(et=this.findGroupVertex(et),tt=this.findGroupVertex(tt),et!==null&&tt!==null&&this.Zj(et,tt,b))}}},Ss.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},St=Ss.prototype,St.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},St.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},St.Iu=function(a){if(a!==null&&y0(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 y0(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}St.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},St.ki=function(a){return a===null?null:this.Es.I(a)},St.Bo=function(a){if(a!==null){ry(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function ry(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}}St.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},St.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),oy(this,a)}};function oy(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}St.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},St.Lo=function(a){return a===null?null:this.zs.I(a)},St.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},St.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))}},St.Ko=function(){for(var a=Xn(),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]);qn(a)},Ss.prototype.deleteArtificialVertexes=function(){for(var a=Xn(),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=Xn(),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]);qn(a),qn(y)};function Wb(a){for(var y=Xn(),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]);qn(y)}Ss.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Wb(this),this.Ko()),a=new oi;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),sy(this,y,b),y=!0;break}}}return a.sort(function(tt,et){return tt===null||et===null||tt===et?0:et.vertexes.count-tt.vertexes.count}),a};function sy(a,y,x){if(x!==null&&x.network!==y){y0(a,x),y.dh(x);for(var b=x.sourceEdges;b.next();){var tt=b.value;tt.network!==y&&(oy(a,tt),ry(y,tt),sy(a,y,tt.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(oy(a,x),ry(y,x),sy(a,y,x.toVertex))}}Ss.prototype.dz=function(){for(var a=new Ce,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},ge.Object.defineProperties(Ss.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}}}),Ss.prototype.findAllParts=Ss.prototype.dz,Ss.prototype.splitIntoSubNetworks=Ss.prototype.Zx,Ss.prototype.deleteSelfEdges=Ss.prototype.Ko,Ss.prototype.reverseEdge=Ss.prototype.gm,Ss.prototype.linkVertexes=Ss.prototype.Zj,Ss.prototype.findEdge=Ss.prototype.Lo,Ss.prototype.deleteLink=Ss.prototype.Yy,Ss.prototype.deleteEdge=Ss.prototype.Mj,Ss.prototype.addLink=Ss.prototype.Dy,Ss.prototype.addEdge=Ss.prototype.Bo,Ss.prototype.findVertex=Ss.prototype.ki,Ss.prototype.deleteNode=Ss.prototype.Zy,Ss.prototype.deleteVertex=Ss.prototype.Iu,Ss.prototype.addNode=Ss.prototype.Bl,Ss.prototype.addVertex=Ss.prototype.dh,Ss.prototype.addParts=Ss.prototype.lg,Ss.className="LayoutNetwork";function ca(a){si(this),this.ob=a,this.j=new je(0,0,10,10).freeze(),this.o=new Gt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new oi,this.mg=new oi}ca.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new oi,this.mg=new oi},ca.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Gi(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 tt=b.value;x?x=!1:a+=",",a+=tt.toString(0)}for(tt="",x=!0,b=this.mg.iterator;b.next();){var et=b.value;x?x=!1:tt+=",",tt+=et.toString(0)}y+=" sources: "+a+" destinations: "+tt}return y},ca.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;Ge(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 $r)){x=je.alloc(),a.Va();var b=this.network.layout.ni(a,x),tt=a.locationObject.ga(yr);if(b.w()&&tt.w()){a.moveTo(y.x+this.focusX-(tt.x-b.x),y.y+this.focusY-(tt.y-b.y)),je.free(x);return}je.free(x)}a.moveTo(y.x,y.y)}},ca.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},ca.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},ca.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},ca.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function y1(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}ge.Object.defineProperties(ca.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=je.alloc(),b=y.ni(a,x);y=b.x;var tt=b.y,et=b.width;if(b=b.height,isNaN(y)&&(y=0),isNaN(tt)&&(tt=0),this.j.h(y,tt,et,b),je.free(x),!(a instanceof $r)&&(a=a.locationObject.ga(yr),a.w())){this.o.h(a.x-y,a.y-tt);return}this.o.h(et/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 Ce,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Ce,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Ce,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 oi,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}}}),ca.prototype.deleteDestinationEdge=ca.prototype.Jl,ca.prototype.addDestinationEdge=ca.prototype.zl,ca.prototype.deleteSourceEdge=ca.prototype.Kl,ca.prototype.addSourceEdge=ca.prototype.Cl,ca.className="LayoutVertex",ca.standardComparer=y1,ca.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]),tt=parseFloat(a[x]);if(isNaN(b))if(isNaN(tt)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(tt))return-1;if(b-tt!==0)return b-tt}}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 lu(a){si(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}lu.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},lu.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Gi(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},lu.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},lu.prototype.commit=function(){},lu.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},ge.Object.defineProperties(lu.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)}}}),lu.prototype.getOtherVertex=lu.prototype.Ax,lu.className="LayoutEdge";function Xa(a){Ds.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new An(NaN,NaN).freeze(),this.tf=new An(10,10).freeze(),this.Jb=Em,this.Rb=x0,this.nd=Hg,this.hd=x1,a&&Object.assign(this,a)}Nn(Xa,Ds),Xa.prototype.cloneProtected=function(a){Ds.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},Xa.prototype.qb=function(a){a.classType===Xa?a===Hg||a===ly||a===Ca||a===ay?this.sorting=a:a===x0||a===Zu?this.arrangement=a:a===Em||a===Kg?this.alignment=a:_e("Unknown enum value: "+a):Ds.prototype.qb.call(this,a)},Xa.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 $r)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var tt=y.Fa();if(tt.length!==0){switch(this.sorting){case ay:tt.reverse();break;case Hg:tt.sort(this.comparer);break;case ly:tt.sort(this.comparer),tt.reverse()}var et=this.wrappingColumn;isNaN(et)&&(et=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>=et&&0>=nt&&(et=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 Kg:var ot=y,at=x,ut=je.alloc(),ht=Math.max(this.cellSize.width,1);if(!isFinite(ht))for(var gt=ht=0;gt<tt.length;gt++){var bt=this.ni(tt[gt],ut);ht=Math.max(ht,bt.width)}if(ht=Math.max(ht+ot,1),gt=Math.max(this.cellSize.height,1),!isFinite(gt))for(bt=gt=0;bt<tt.length;bt++){var Mt=this.ni(tt[bt],ut);gt=Math.max(gt,Mt.height)}gt=Math.max(gt+at,1),bt=this.arrangement;for(var Et=Mt=this.arrangementOrigin.x,Bt=this.arrangementOrigin.y,se=0,Jt=0,me=0;me<tt.length;me++){var Se=tt[me],Le=this.ni(Se,ut),Ve=Math.ceil((Le.width+ot)/ht)*ht,fn=Math.ceil((Le.height+at)/gt)*gt;switch(bt){case Zu:var nr=Math.abs(Et-Le.width);break;default:nr=Et+Le.width}switch((0<et&&se>et-1||0<nt&&0<se&&nr-Mt>nt)&&(b.push(new je(0,Bt,nt+ot,Jt)),se=0,Et=Mt,Bt+=Jt,Jt=0),Jt=Math.max(Jt,fn),bt){case Zu:Le=-Le.width;break;default:Le=0}switch(Se.moveTo(Et+Le,Bt),bt){case Zu:Et-=Ve;break;default:Et+=Ve}se++}b.push(new je(0,Bt,nt+ot,Jt)),je.free(ut);break;case Em:for(at=nt,ht=et,gt=y,bt=x,nt=je.alloc(),Mt=Math.max(this.cellSize.width,1),et=Bt=ut=0,ot=Gt.alloc(),Et=0;Et<tt.length;Et++)Jt=tt[Et],se=this.ni(Jt,nt),Jt=Mh(Jt,Jt.locationObject,Jt.locationSpot,ot),ut=Math.max(ut,Jt.x),Bt=Math.max(Bt,se.width-Jt.x),et=Math.max(et,Jt.y);switch(Et=this.arrangement,Et){case Zu:ut+=gt;break;default:Bt+=gt}Mt=isFinite(Mt)?Math.max(Mt+gt,1):Math.max(ut+Bt,1);var mr=Jt=this.arrangementOrigin.x;for(me=this.arrangementOrigin.y,Bt=0,at>=ut&&(at-=ut),ut=Se=0,Ve=Math.max(this.cellSize.height,1),Le=et=0,fn=!0,se=Gt.alloc(),nr=0;nr<tt.length;nr++){var dr=tt[nr],Hi=this.ni(dr,nt),vi=Mh(dr,dr.locationObject,dr.locationSpot,ot);if(0<Bt)switch(Et){case Zu:mr=(mr-Jt-(Hi.width-vi.x))/Mt,mr=Ke.$(Math.round(mr),mr)?Math.round(mr):Math.floor(mr),mr=mr*Mt+Jt;break;default:mr=(mr-Jt+vi.x)/Mt,mr=Ke.$(Math.round(mr),mr)?Math.round(mr):Math.ceil(mr),mr=mr*Mt+Jt}else switch(Et){case Zu:Se=mr+vi.x+Hi.width;break;default:Se=mr-vi.x}switch(Et){case Zu:var ro=-(mr+vi.x)+Se;break;default:ro=mr+Hi.width-vi.x-Se}if(0<ht&&Bt>ht-1||0<at&&0<Bt&&ro>at){for(b.push(new je(0,fn?me-et:me,at+gt,Le+et+bt)),mr=0;mr<Bt&&nr!==Bt;mr++){ro=tt[nr-Bt+mr];var Ur=Mh(ro,ro.locationObject,ro.locationSpot,se);ro.moveTo(ro.position.x,ro.position.y+et-Ur.y)}Le+=bt,me=fn?me+Le:me+(Le+et),Bt=Le=et=0,mr=Jt,fn=!1}switch(mr===Jt&&(ut=Et===Zu?Math.max(ut,Hi.width-vi.x):Math.min(ut,-vi.x)),et=Math.max(et,vi.y),Le=Math.max(Le,Hi.height-vi.y),isFinite(Ve)&&(Le=Math.max(Le,Math.max(Hi.height,Ve)-vi.y)),fn?dr.moveTo(mr-vi.x,me-vi.y):dr.moveTo(mr-vi.x,me),Et){case Zu:mr-=vi.x+gt;break;default:mr+=Hi.width-vi.x+gt}Bt++}if(b.push(new je(0,me,at+gt,(fn?Le:Le+et)+bt)),tt.length!==Bt)for(at=0;at<Bt;at++)ht=tt[tt.length-Bt+at],gt=Mh(ht,ht.locationObject,ht.locationSpot,ot),ht.moveTo(ht.position.x,ht.position.y+et-gt.y);if(Gt.free(ot),Gt.free(se),Et===Zu)for(tt=0;tt<b.length;tt++)et=b[tt],et.width+=ut,et.x-=ut;else for(tt=0;tt<b.length;tt++)et=b[tt],et.x>ut&&(et.width+=et.x-ut,et.x=ut);je.free(nt)}for(ot=et=nt=tt=0;ot<b.length;ot++)at=b[ot],tt=Math.min(tt,at.x),nt=Math.min(nt,at.y),et=Math.max(et,at.x+at.width);this.arrangement===Zu?this.commitLayers(b,new Gt(tt+y/2-(et+tt),nt-x/2)):this.commitLayers(b,new Gt(tt-y/2,nt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},Xa.prototype.commitLayers=function(){};function x1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}ge.Object.defineProperties(Xa.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!==Em&&a!==Kg||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==x0&&a!==Zu||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==Ca&&a!==ay&&a!==Hg&&a!==ly||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var Kg=new ui(Xa,"Position",0),Em=new ui(Xa,"Location",1),x0=new ui(Xa,"LeftToRight",2),Zu=new ui(Xa,"RightToLeft",3),Ca=new ui(Xa,"Forward",4),ay=new ui(Xa,"Reverse",5),Hg=new ui(Xa,"Ascending",6),ly=new ui(Xa,"Descending",7);Xa.className="GridLayout",Xa.standardComparer=x1,Xa.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]),tt=parseFloat(y[x]);if(isNaN(b))if(isNaN(tt)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(tt))return-1;if(b-tt!==0)return b-tt}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},Xa.Position=Kg,Xa.Location=Em,Xa.LeftToRight=x0,Xa.RightToLeft=Zu,Xa.Forward=Ca,Xa.Reverse=ay,Xa.Ascending=Hg,Xa.Descending=ly;function Xo(){this.On=new Ce,this.Dn=new Ce,this.Pa=new Ce,this.cf=new or,this.bf=new or,this.aj=new or,this.H=null,this.tp=!1}St=Xo.prototype,St.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},St.Xe=function(a){this.H=a},St.oi=function(a){if(a instanceof Xi){if(this.On.add(a),a instanceof $r){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 ji?this.Dn.add(a):a instanceof Wo||this.Pa.add(a);y=a.data,y===null||a instanceof Wo||(a instanceof ji?this.bf.add(y,a):this.cf.add(y,a))},St.pc=function(a){if(a.Ej(),a instanceof Xi){if(this.On.remove(a),a instanceof $r){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 ji?this.Dn.remove(a):a instanceof Wo||this.Pa.remove(a);y=a.data,y===null||a instanceof Wo||(a instanceof ji?this.bf.remove(y):this.cf.remove(y))},St.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 $r)&&_e('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 $r||_e('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 ji||_e('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=Xn(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=Xn(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=Xn(),b=this.nodes.iterator;b.next();){var tt=b.value;tt.data!==null&&(a.push(tt.data),a.push(tt.location))}for(b=this.links.iterator;b.next();)tt=b.value,tt.data!==null&&(a.push(tt.data),a.push(tt.location));for(b=this.parts.iterator;b.next();)tt=b.value,tt.data!==null&&(a.push(tt.data),a.push(tt.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),b=0;b<y.length;b++)tt=this.Lc(y[b]),tt!==null&&(tt.isSelected=!0);for(b=0;b<x.length;b++)tt=this.Lc(x[b]),tt!==null&&(tt.isHighlighted=!0);for(b=0;b<a.length;b+=2)tt=this.Lc(a[b]),tt!==null&&(tt.location=a[b+1]);qn(y),qn(x),qn(a)}},Xo.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Xo.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(tt){b.lb(tt)&&vx(x,tt,!1)}),a.forEach(function(tt){b.lb(tt)&&x.resolveReferencesForData(tt)}),y!==!1&&rf(this.diagram,!1)};function vx(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),tt=yx(a,y,b);if(tt!==null&&(ou(tt),tt=tt.copy(),tt!==null)){var et=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,tt.Tf=b,tt.ub=y,a.tp&&(tt.Jg="Tool"),a.diagram.add(tt),tt.ub=null,tt.data=y,a.diagram.skipsModelSourceBindings=et,b=tt;break t}}b=null}b!==null&&x&&a.resolveReferencesForData(y)}}Xo.prototype.insertLink=function(){return null},Xo.prototype.resolveReferencesForData=function(){},Xo.prototype.Ro=function(a){return this.H.model.Ro(a)};function yx(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&&(b0||(b0=!0,$e('No Group template found for category "'+x+'"'),$e(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(uy||(uy=!0,$e('No Node template found for category "'+x+'"'),$e(" Using default node template")),y=a.ny))),y}Xo.prototype.getLinkCategoryForData=function(){return""},Xo.prototype.setLinkCategoryForData=function(){},Xo.prototype.setFromNodeForLink=function(){},Xo.prototype.setToNodeForLink=function(){},Xo.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(cy||(cy=!0,$e('No Link template found for category "'+a+'"'),$e(" Using default link template")),x=y.my)),x},Xo.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Xo.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},Xo.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Lc(this.diagram,a,!1),this.unresolveReferencesForPart(a))},Xo.prototype.unresolveReferencesForPart=function(){},Xo.prototype.removeDataForLink=function(){},Xo.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},Xo.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Xi?a:null)},Xo.prototype.findLinkForKey=function(){return null},St=Xo.prototype,St.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},St.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Xi?a:null)},St.Kc=function(a){return a===null?null:this.bf.I(a)},St.ms=function(a){for(var y=0;y<arguments.length;++y);y=new Ce;for(var x=this.On.iterator;x.next();){var b=x.value,tt=b.data;if(tt!==null)for(var et=0;et<arguments.length;et++){var nt=arguments[et];if(Ge(nt)&&b1(this,tt,nt)){y.add(b);break}}}return y.iterator},St.ls=function(a){for(var y=0;y<arguments.length;++y);y=new Ce;for(var x=this.Dn.iterator;x.next();){var b=x.value,tt=b.data;if(tt!==null)for(var et=0;et<arguments.length;et++){var nt=arguments[et];if(Ge(nt)&&b1(this,tt,nt)){y.add(b);break}}}return y.iterator};function b1(a,y,x){for(var b in x){var tt=y[b],et=x[b];if(un(et)){if(!un(tt)||tt.length<et.length)return!1;for(var nt=0;nt<tt.length;nt++){var ot=et[nt];if(ot!==void 0&&!xx(a,tt[nt],ot))return!1}}else if(!xx(a,tt,et))return!1}return!0}function xx(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(Ge(y)&&Ge(x)){if(!b1(a,y,x))return!1}else if(y!==x)return!1;return!0}Xo.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===_r){if(b==="nodeCategory"){var tt=this.Lc(a.object),et=a.newValue;tt!==null&&typeof et=="string"&&(tt.category=et)}else b==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===no){var nt=a.newValue;b==="nodeDataArray"&&Ge(nt)&&vx(this,nt),y.isModified=!0}else if(x===ho){var ot=a.oldValue;b==="nodeDataArray"&&Ge(ot)&&this.ip(ot),y.isModified=!0}else x===Vr&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===_r){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===no||x===ho){var ht=a.change===no,gt=ht?a.newParam:a.oldParam,bt=ht?a.newValue:a.oldValue,Mt=this.aj.I(a.object);if(Array.isArray(Mt))for(a=0;a<Mt.length;a++){var Et=Mt[a];if(ht)mg(Et,bt,gt,!0);else if(!(0>gt)){var Bt=gt+ep(Et);Et.pc(Bt,!0),np(Et,Bt,gt)}}y.isModified=!0}}finally{y.aa=!0}}}}},Xo.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)},Xo.prototype.rp=function(){for(var a=this.H.model,y=new Ce,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var tt=[];for(this.nodes.each(function(nt){nt.data===null||y.contains(nt.data)||tt.push(nt.data)}),this.parts.each(function(nt){nt.data===null||y.contains(nt.data)||tt.push(nt.data)}),tt.forEach(function(nt){w0(a,nt,!1)}),b=0;b<x.length;b++){var et=x[b];this.Lc(et)===null&&dy(a,et,!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()},Xo.prototype.refreshDataBoundLinks=function(){},Xo.prototype.updateRelationshipsFromData=function(){},Xo.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 tt=b.value,et=0;et<tt.length;et++){var nt=tt[et].sx(a);nt!==null&&(x===null&&(x=Xn()),x.push(nt))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);qn(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function ia(a,y){var x=y.Hh;if(un(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 xf(a,y,x){$h(y,function(nt){nt=nt.O.s;for(var ot=nt.length,at=0;at<ot;at++)qm(x,nt[at])});var b=y.Hh;if(un(b)){var tt=a.aj.I(b);if(tt!==null){for(var et=0;et<tt.length;et++)if(tt[et]===y){tt.splice(et,1),tt.length===0&&a.aj.remove(b);break}}}}Xo.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new or;if(un(a))for(var tt=0;tt<a.length;tt++)bf(this,a[tt],y,b,x);else for(a=a.iterator;a.next();)bf(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,tt=new Ce;for(var et=new or,nt=b.iterator;nt.next();){var ot=nt.value;if(ot instanceof ji)a||ot.fromNode!==null&&ot.toNode!==null||tt.add(ot);else if(ot instanceof Xi&&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&&et.add(ot,at)):x.qe(at.data,void 0))}}if(0<tt.count&&y.Is(tt,!1),0<et.count)for(x=et.iterator;x.next();)b.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var ht=new or;b.each(function(gt){gt.key.data!==null&&ht.add(gt.key.data,gt.value.data)}),x(ht,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function bf(a,y,x,b,tt){if(y===null||tt&&!y.canCopy())return null;if(b.contains(y))return b.I(y);var et=a.copyPartData(y,x);if(!(et instanceof Pr))return null;if(et.isSelected=!1,et.isHighlighted=!1,b.add(y,et),y instanceof Xi){for(var nt=y.linksConnected;nt.next();){var ot=nt.value;if(ot.fromNode===y){var at=b.I(ot);at!==null&&(at.fromNode=et)}ot.toNode===y&&(ot=b.I(ot),ot!==null&&(ot.toNode=et))}if(y instanceof $r&&et instanceof $r)for(y=y.memberParts;y.next();)nt=bf(a,y.value,x,b,tt),nt instanceof ji||nt===null||(nt.containingGroup=et)}else if(y instanceof ji&&et instanceof ji)for(nt=y.fromNode,nt!==null&&(nt=b.I(nt),nt!==null&&(et.fromNode=nt)),nt=y.toNode,nt!==null&&(nt=b.I(nt),nt!==null&&(et.toNode=nt)),y=y.labelNodes;y.next();)nt=bf(a,y.value,x,b,tt),nt!==null&&nt instanceof Xi&&(nt.labeledLink=et);return et}Xo.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var tt=y.model;a instanceof ji||(b=tt.copyNodeData(b),Ge(b)&&(tt.xf(b),x=y.Lc(b)))}else ou(a),x=a.copy(),x!==null&&(tt=this.H,y!==null?y.add(x):b!==null&&tt!==null&&tt.commandHandler!==null&&tt.commandHandler.copiesClipboardData&&(y=tt.model,tt=null,x instanceof ji||(tt=y.copyNodeData(b)),Ge(tt)&&(x.data=tt)));return x},ge.Object.defineProperties(Xo.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}}}),Xo.prototype.updateAllRelationshipsFromData=Xo.prototype.rp,Xo.prototype.findLinksByExample=Xo.prototype.ls,Xo.prototype.findNodesByExample=Xo.prototype.ms,Xo.prototype.findLinkForData=Xo.prototype.Kc,Xo.prototype.findNodeForData=Xo.prototype.ii,Xo.prototype.findPartForData=Xo.prototype.Lc,Xo.prototype.findNodeForKey=Xo.prototype.Vb,Xo.prototype.removeModeledPart=Xo.prototype.ip,Xo.prototype.removeModeledParts=Xo.prototype.Gs,Xo.prototype.rebuildParts=Xo.prototype.Wd;var uy=!1,b0=!1,cy=!1;Xo.className="PartManager";function ja(a){Xo.apply(this,arguments)}Nn(ja,Xo),ja.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),km(this,a.linkDataArray)},ja.prototype.addModeledParts=function(a){for(Xo.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)p0(a.value);rf(this.diagram,!1)};function km(a,y){y.forEach(function(x){bx(a,x)}),rf(a.diagram,!1)}function bx(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),b=a.findLinkTemplateForCategory(x);if(b!==null){ou(b);var tt=b.copy();if(tt!==null){b=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,tt.Tf=x,tt.ub=y,x=a.diagram.model;var et=py(x,y,!0);et!==""&&(tt.fromPortId=et),et=Pu(x,y,!0),et!==void 0&&(et=a.Vb(et),et instanceof Xi&&(tt.fromNode=et)),et=py(x,y,!1),et!==""&&(tt.toPortId=et),et=Pu(x,y,!1),et!==void 0&&(et=a.Vb(et),et instanceof Xi&&(tt.toNode=et)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(nt){nt=a.Vb(nt),nt!==null&&(nt.labeledLink=tt)}),a.tp&&(tt.Jg="Tool"),a.diagram.add(tt),tt.ub=null,tt.data=y,a.diagram.skipsModelSourceBindings=b}}}}ja.prototype.removeAllModeledParts=function(){var a=this.diagram.model;w1(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function w1(a,y){y.forEach(function(x){a.ip(x)})}ja.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},ja.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},ja.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},ja.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},ja.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},ja.prototype.findPartForKey=function(a){var y=Xo.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},ja.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},ja.prototype.doModelChanged=function(a){var y=this;if(Xo.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 tt=a.modelChange;if(tt!==""){if(b===_r){if(tt==="linkFromKey"){var et=this.Kc(a.object);if(et!==null){var nt=this.Vb(a.newValue);et.fromNode=nt}}else if(tt==="linkToKey"){var ot=this.Kc(a.object);if(ot!==null){var at=this.Vb(a.newValue);ot.toNode=at}}else if(tt==="linkFromPortId"){var ut=this.Kc(a.object);if(ut!==null){var ht=a.newValue;typeof ht=="string"&&(ut.fromPortId=ht)}}else if(tt==="linkToPortId"){var gt=this.Kc(a.object);if(gt!==null){var bt=a.newValue;typeof bt=="string"&&(gt.toPortId=bt)}}else if(tt==="nodeGroupKey"){var Mt=this.Lc(a.object);if(Mt!==null){var Et=a.newValue;if(Et!==void 0){var Bt=this.Vb(Et);Bt instanceof $r?Mt.containingGroup=Bt:Mt.containingGroup=null}else Mt.containingGroup=null}}else if(tt==="linkLabelKeys"){var se=this.Kc(a.object);if(se!==null){var Jt=a.oldValue,me=a.newValue;Array.isArray(Jt)&&Jt.forEach(function(vi){0<=me.indexOf(vi)||(vi=y.Vb(vi),vi!==null&&(vi.labeledLink=null))}),Array.isArray(me)&&me.forEach(function(vi){vi=y.Vb(vi),vi!==null&&(vi.labeledLink=se)})}}else if(tt==="linkCategory"){var Se=this.Kc(a.object),Le=a.newValue;Se!==null&&typeof Le=="string"&&(Se.category=Le)}else tt==="linkDataArray"&&(w1(this,a.oldValue),km(this,a.newValue));x.isModified=!0}else if(b===no){var Ve=a.newValue;if(tt==="linkDataArray"&&typeof Ve=="object"&&Ve!==null)bx(this,Ve);else if(tt==="linkLabelKeys"&&gp(Ve)){var fn=this.Kc(a.object),nr=this.Vb(Ve);fn!==null&&nr!==null&&(nr.labeledLink=fn)}x.isModified=!0}else if(b===ho){var mr=a.oldValue;if(tt==="linkDataArray"&&typeof mr=="object"&&mr!==null)this.ip(mr);else if(tt==="linkLabelKeys"&&gp(mr)){var dr=this.Vb(mr);dr!==null&&(dr.labeledLink=null)}x.isModified=!0}}else if(b===_r){var Hi=a.propertyName;a.object!==x.model||Hi!=="linkFromKeyProperty"&&Hi!=="linkToKeyProperty"&&Hi!=="linkFromPortIdProperty"&&Hi!=="linkToPortIdProperty"&&Hi!=="linkLabelKeysProperty"&&Hi!=="nodeIsGroupProperty"&&Hi!=="nodeGroupKeyProperty"&&Hi!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},ja.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new Ce,b=y.linkDataArray;b.forEach(function(et){x.add(et)});var tt=[];this.links.each(function(et){et.data===null||x.contains(et.data)||tt.push(et.data)}),tt.forEach(function(et){vp(y,et,!1)}),b.forEach(function(et){a.Kc(et)===null&&Mx(y,et,!1)})},ja.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 ji){var tt=Pu(b,y,!0);if(tt=x.Vb(tt),a.fromNode=tt,tt=Pu(b,y,!1),tt=x.Vb(tt),a.toNode=tt,y=b.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){tt=y[0];var et=a.labelNodes.first();if(b.wa(et.data)===tt)return}tt=new Ce().addAll(y);var nt=new Ce;a.labelNodes.each(function(ot){ot.data!==null&&(ot=b.wa(ot.data),ot!==void 0&&nt.add(ot))}),y=nt.copy(),y.hp(tt),tt=tt.copy(),tt.hp(nt),(0<y.count||0<tt.count)&&(y.each(function(ot){ot=x.Vb(ot),ot!==null&&ot.labeledLink===a&&(ot.labeledLink=null)}),tt.each(function(ot){ot=x.Vb(ot),ot!==null&&ot.labeledLink!==a&&(ot.labeledLink=a)}))}}else!(a instanceof Wo)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof $r)&&(a.containingGroup=y)}}},ja.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=_g(y,x),tt=this.Lc(a);if(b!==null&&tt!==null){b=b.iterator;for(var et={};b.next();){var nt=b.value;y.lb(nt)?tt instanceof $r&&y.lh(nt)===x&&(nt=this.Lc(nt),nt!==null&&(nt.containingGroup=tt)):(et.link=this.Kc(nt),et.link!==null&&tt instanceof Xi&&(Pu(y,nt,!0)===x&&(et.link.fromNode=tt),Pu(y,nt,!1)===x&&(et.link.toNode=tt),nt=y.Ef(nt),Array.isArray(nt)&&nt.some(function(ot){return function(at){return at===x?(tt.labeledLink=ot.link,!0):!1}}(et)))),et={link:et.link}}rc(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof $r&&(tt.containingGroup=a))}},ja.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Xi){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)Ic(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&Ic(y,x,b.data)),a instanceof $r)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&Ic(y,x,b)}}},ja.prototype.copyPartData=function(a,y){var x=Xo.prototype.copyPartData.call(this,a,y);if(a instanceof ji)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},ja.prototype.insertLink=function(a,y,x,b){var tt=this.diagram,et=tt.model,nt=tt.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 ji){if(ou(b),et=b.copy(),et!==null)return et.fromNode=a,et.fromPortId=ot,et.toNode=x,et.toPortId=y,tt.add(et),a=nt.archetypeLabelNodeData,a instanceof Xi&&(ou(a),a=a.copy(),a!==null&&(a.labeledLink=et,tt.add(a))),et}else if(b!==null&&(b=et.Jo(b),typeof b=="object"&&b!==null))return a!==null&&Pm(et,b,et.wa(a.data),!0),Nm(et,b,ot,!0),x!==null&&Pm(et,b,et.wa(x.data),!1),Nm(et,b,y,!1),et.fi(b),a=nt.archetypeLabelNodeData,a===null||a instanceof Xi||(a=et.copyNodeData(a),typeof a=="object"&&a!==null&&(et.xf(a),a=et.wa(a),a!==void 0&&et.Bu(b,a))),tt.Kc(b);return null},ja.prototype.findLinkForKey=ja.prototype.findLinkForKey,ja.prototype.findPartForKey=ja.prototype.findPartForKey,ja.prototype.removeAllModeledParts=ja.prototype.removeAllModeledParts,ja.prototype.addModeledParts=ja.prototype.addModeledParts,ja.prototype.addAllModeledParts=ja.prototype.addAllModeledParts,ja.className="GraphLinksPartManager";function Gu(){Xo.apply(this,arguments),this.Sg=null}Nn(Gu,Xo);function js(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var b=a.diagram.toolManager.findTool("Linking"),tt=y,et=x;if(a.diagram.isTreePathToChildren||(tt=x,et=y),(b===null||!Zs(b,tt,et,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(ou(b),b=b.copy(),b!==null))){var nt=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=y,b.ub=x.data,b.fromNode=tt,b.toNode=et,a.diagram.add(b),b.ub=null,b.data=x.data,a.diagram.skipsModelSourceBindings=nt}}}Gu.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},Gu.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},Gu.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 tt=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=tt}},Gu.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 tt=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=tt}else b.qe(a.data,b.wa(y))},Gu.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},Gu.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},Gu.prototype.doModelChanged=function(a){if(Xo.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===_r){if(b==="nodeParentKey"){var tt=a.object,et=this.Vb(a.newValue),nt=this.ii(tt);if(this.Sg!==null)et!==null&&(this.Sg.data=tt,this.Sg.category=this.getLinkCategoryForData(tt));else if(nt!==null){var ot=nt.kh();ot!==null?et===null?y.remove(ot):y.isTreePathToChildren?ot.fromNode=et:ot.toNode=et:js(this,et,nt)}}else if(b==="parentLinkCategory"){var at=this.ii(a.object),ut=a.newValue;if(at!==null&&typeof ut=="string"){var ht=at.kh();ht!==null&&(ht.category=ut)}}y.isModified=!0}}else if(x===_r){var gt=a.propertyName;a.object===y.model&>==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},Gu.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof Xi&&(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:js(this,y,a):b!==null&&Lc(x,b,!1)))}}},Gu.prototype.updateDataBindings=function(a,y){Xo.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},Gu.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=_g(y,x),tt=this.Lc(a);if(b!==null&&tt!==null){for(b=b.iterator;b.next();){var et=b.value;y.lb(et)&&tt instanceof Xi&&y.mh(et)===x&&js(this,tt,this.ii(et))}rc(y,x)}a=y.mh(a),a!==void 0&&tt instanceof Xi&&(a=this.Vb(a),js(this,a,tt))}},Gu.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Xi){var x=y.wa(a.data),b=this.Kc(a.data);if(b!==null){b.isSelected=!1,b.isHighlighted=!1;var tt=b.layer;if(tt!==null){var et=tt.pc(-1,b,!1);0<=et&&this.diagram.cb(ho,"parts",tt,b,null,et,null),et=b.layerChanged,et!==null&&et(b,tt,null)}}for(b=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)tt=a.value,tt=(b?tt.toNode:tt.fromNode).data,y.lb(tt)&&Ic(y,x,tt)}},Gu.prototype.insertLink=function(a,y,x){y=this.diagram.model;var b=a,tt=x;return this.diagram.isTreePathToChildren||(b=x,tt=a),b!==null&&tt!==null?(y.qe(tt.data,y.wa(b.data)),tt.kh()):null},Gu.prototype.findLinkForKey=Gu.prototype.findLinkForKey,Gu.className="TreePartManager";function gr(a,y){this.kl=new Ce,this.il=new Ce,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,si(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new or,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 or,this.Lt=new oi,this.Wg=!1,this.o=null,this.undoManager=new Zo,a!==void 0&&(un(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}gr.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},gr.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},gr.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},gr.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 tt=a[b];y+=" "+this.wa(tt)+":"+vr(tt)}}return y},gr.prototype.xA=function(a){a.change!==Vr&&_e("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof cs?(wx(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},gr.prototype.Qv=function(a,y){var x=this,b=!1,tt=new Ce,et=new Ce,nt=new Ce,ot=this.vh;a.changes.each(function(gt){gt.model===x&&(gt.modelChange==="nodeDataArray"?gt.change===no?tt.add(gt.newValue):gt.change===ho&&nt.add(gt.oldValue):x.lb(gt.object)?et.add(gt.object):gt.change!==_r||x.modelData!==gt.object&>.propertyName!=="modelData"?gt.object!==null&&(ot&&ot.contains(gt.object)?ot.get(gt.object).each(function(bt){x.lb(bt)&&et.add(bt)}):gt.object instanceof gr||x.ri()&&x.Jc(gt.object)||ml(x,gt.object).each(function(bt){et.add(bt)})):b=!0)});var at=this.il;at.clear(),tt.each(function(gt){at.add(x.wa(gt)),y||et.add(gt)});var ut=this.kl;ut.clear(),nt.each(function(gt){ut.add(x.wa(gt)),y&&et.add(gt)}),a=x.cloneDeep(et.Fa());var ht=null;return b&&(ht===null&&(ht={}),ht.modelData=this.cloneDeep(this.modelData)),0<at.count&&(ht===null&&(ht={}),y?ht.removedNodeKeys=at.Fa():ht.insertedNodeKeys=at.Fa()),0<a.length&&(ht===null&&(ht={}),ht.modifiedNodeData=a),0<ut.count&&(ht===null&&(ht={}),y?ht.insertedNodeKeys=ut.Fa():ht.removedNodeKeys=ut.Fa()),ut.clear(),at.clear(),ht},gr.prototype.cloneDeep=function(a){return Dd(this,a,!0)};function Dd(a,y,x,b,tt,et){function nt(gt,bt){ot?(gt.__gohashid===void 0&&et.push(gt),b.set(gt,bt)):(gt=Tr++,b.set(gt,bt),tt.set(gt,y))}if(!Ge(y))return y;et||(et=[]);var ot=Object.isExtensible(y);if(b||(b=new or),ot){var at=b.get(y);if(at)return at}else for(tt||(tt=new or),at=tt.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 ht=0;ht<y.length;ht++)at.push(Dd(a,y[ht],!1,b,tt,et))}else if(y instanceof Gt||y instanceof An||y instanceof je||y instanceof Kn||y instanceof gn)at=y.copy(),nt(y,at);else{if(y instanceof Jo||y instanceof ii||y instanceof ui)return y;if(y instanceof oi)at=new oi().addAll(Dd(a,y.Fa(),!1,b,tt,et)),nt(y,at);else if(y instanceof Ce)at=new Ce().addAll(Dd(a,y.Fa(),!1,b,tt,et)),nt(y,at);else if(y instanceof or)at=new or().addAll(Dd(a,y.Fa(),!1,b,tt,et)),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(ht in at={},nt(y,at),y)ht!=="__gohashid"&&(at[ht]=Dd(a,y[ht],!1,b,tt,et))}return x&&et.forEach(function(gt){delete gt.__gohashid}),at}St=gr.prototype,St.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},St.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},St.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 Am(a,y){y=y.modelData,Ge(y)&&(a.dm(y),a.modelData=y)}St.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!Vb(x,a[x])){y=!0;break}return a="",y&&(a=`,
|
|
|
"modelData": `+S1(this,this.modelData)),a+`,
|
|
|
"nodeDataArray": `+rl(this,this.nodeDataArray,!0)},St.kv=function(a){Am(this,a),a=a.nodeDataArray,un(a)&&(this.dm(a),this.nodeDataArray=a)};function wx(a,y){function x(tt,et){if((et=et.part)&&(et=et.data,tt!==et)){var nt=b.get(tt);nt===null?(nt=new Ce,nt.add(et),b.add(tt,nt)):nt.add(et)}}var b=a.vh;b===null&&(b=new or,y.changes.each(function(tt){if(tt.diagram!==null){var et=tt.change;et===_r?(tt=tt.object.panel)&&(et=tt.data)&&x(et,tt):(et===no||et===ho)&&(tt=tt.object,(et=tt.itemArray)&&x(et,tt))}}),a.vh=b)}function ml(a,y){for(var x=new Ce,b=0;b<a.nodeDataArray.length;b++){var tt=a.nodeDataArray[b];hy(a,y,tt,tt,x)}return x}function hy(a,y,x,b,tt){if(Array.isArray(x))for(var et=0;et<x.length;et++){var nt=x[et];if(nt===y)return tt.add(b),!0;if(hy(a,y,nt,b,tt))return!0}else if(Ge(x)&&Object.getPrototypeOf(x)===Object.prototype)for(et in x){if(nt=x[et],nt===y)return tt.add(b),!0;if(hy(a,y,nt,b,tt))return!0}return!1}St.Pv=function(a,y){var x=this,b=!1,tt=new Ce,et=new Ce,nt=new Ce,ot=this.vh;a.changes.each(function(ht){ht.model===x&&(ht.modelChange==="nodeDataArray"?ht.change===no?tt.add(ht.newValue):ht.change===ho&&nt.add(ht.oldValue):x.lb(ht.object)?et.add(ht.object):ht.change!==_r||x.modelData!==ht.object&&ht.propertyName!=="modelData"?ht.object!==null&&(ot&&ot.contains(ht.object)?ot.get(ht.object).each(function(gt){x.lb(gt)&&et.add(gt)}):ht.object instanceof gr||x.ri()&&x.Jc(ht.object)||ml(x,ht.object).each(function(gt){et.add(gt)})):b=!0)});var at=this.il;at.clear(),tt.each(function(ht){at.add(x.wa(ht)),y||et.add(ht)});var ut=this.kl;return ut.clear(),nt.each(function(ht){ut.add(x.wa(ht)),y&&et.add(ht)}),a="",b&&(a+=`,
|
|
|
"modelData": `+S1(this,this.modelData)),0<at.count&&(a+=(y?this.Yv:this.Wv)+rl(this,at.Fa(),!0)),0<et.count&&(a+=this.jy+rl(this,et.Fa(),!0)),0<ut.count&&(a+=(y?this.Wv:this.Yv)+rl(this,ut.Fa(),!0)),ut.clear(),at.clear(),a},St.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)&&_e("applyIncrementalJson cannot change Model properties"),Am(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new or;if(Array.isArray(x))for(var tt=0;tt<x.length;tt++){var et=x[tt],nt=this.wa(et);nt!=null&&b.set(nt,et)}if(Array.isArray(y))for(tt=y.length,et=0;et<tt;et++){nt=y[et];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(tt=x[b],et=this.wa(tt),et=this.hc(et),et!==null){for(var at in tt)at==="__gohashid"||at===this.nodeKeyProperty||this.Wj()&&at===this.nodeIsGroupProperty||this.setDataProperty(et,at,tt[at]);this.lm(tt,et)}}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)},St.$x=function(a,y){a.change!==Vr&&_e("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof cs?(y===void 0&&(y=S0(this,this)),wx(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 }'},St.yA=function(a,y){return this.$x(a,y)},St.np=function(a){return a===void 0&&(a=S0(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},St.toJSON=function(a){return this.np(a)},St.Zw=function(a){var y=null;if(typeof a=="string")try{y=ce.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:_e("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&_e("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},St.Ky=function(a){return this.Zw(a)},gr.constructGraphLinksModel=function(){return new gr},St=gr.prototype,St.dm=function(a){if(un(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(Ge(b)){var tt=x;b=this.dm(b),Array.isArray(a)?a[tt]=b:_e("Cannot replace an object in an HTMLCollection or NodeList at "+tt)}}else if(Ge(a)){for(y in a)if(x=a[y],Ge(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(tt=x.length%2===0,b=0;b<x.length;b++)if(typeof x[b]!="number"){tt=!1;break}if(tt){for(tt=new oi,b=0;b<x.length/2;b++)tt.add(new Gt(x[2*b],x[2*b+1]));tt.freeze(),a[y]=tt}}return Ub(a)}return a},St.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()):un(a)?rl(this,a):Ge(a)?S1(this,a):typeof a=="function"?"null":a.toString()};function rl(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var tt=new bo;tt.add("["),x&&1<b&&tt.add(`
|
|
|
`);for(var et=0;et<b;et++){var nt=y[et];nt!==void 0&&(0<et&&(tt.add(","),x&&tt.add(`
|
|
|
`)),tt.add(a.sm(nt)))}return x&&1<b&&tt.add(`
|
|
|
`),tt.add("]"),tt.toString()}function Vb(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function jl(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function S1(a,y){var x=y;if(x instanceof Gt)y={class:"go.Point",x:jl(x.x),y:jl(x.y)};else if(x instanceof An)y={class:"go.Size",width:jl(x.width),height:jl(x.height)};else if(x instanceof je)y={class:"go.Rect",x:jl(x.x),y:jl(x.y),width:jl(x.width),height:jl(x.height)};else if(x instanceof Kn)y={class:"go.Margin",top:jl(x.top),right:jl(x.right),bottom:jl(x.bottom),left:jl(x.left)};else if(x instanceof gn)x.sb()?y={class:"go.Spot",x:jl(x.x),y:jl(x.y),offsetX:jl(x.offsetX),offsetY:jl(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof Jo){if(y={class:"go.Brush",type:x.type.name},x.type===Jh?y.color=x.color:(x.type===Qh||x.type===Wu)&&(y.start=x.start,y.end=x.end,x.type===Wu&&(x.startRadius!==0&&(y.startRadius=jl(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=jl(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 ii?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=jl(x.startX)),x.startY!==0&&(y.startY=jl(x.startY)),x.endX!==0&&(y.endX=jl(x.endX)),x.endY!==0&&(y.endY=jl(x.endY)),x.spot1.D(er)||(y.spot1=x.spot1),x.spot2.D(oo)||(y.spot2=x.spot2),x.type===ii.o&&(y.path=ii.ia(x))):x instanceof ui&&(y={class:"go.EnumValue",classType:S0(a,x.classType),name:x.name});b="{",x=!0;for(var tt in y){var et=aa(y,tt);if(!Vb(tt,et))if(x?x=!1:b+=",",b+=a.quote(tt)+":",tt==="points"&&et instanceof oi){var nt="[";for(et=et.iterator;et.next();){var ot=et.value;1<nt.length&&(nt+=","),nt+=a.sm(ot.x),nt+=",",nt+=a.sm(ot.y)}nt+="]",b+=nt}else b+=a.sm(et)}return b+"}"}function gl(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Ub(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 Gt(gl(a.x),gl(a.y));else if(y==="Size")x=new An(gl(a.width),gl(a.height));else if(y==="Rect")x=new je(gl(a.x),gl(a.y),gl(a.width),gl(a.height));else if(y==="Margin")x=new Kn(gl(a.top),gl(a.right),gl(a.bottom),gl(a.left));else if(y==="Spot")typeof a.enum=="string"?x=_s(a.enum):x=new gn(gl(a.x),gl(a.y),gl(a.offsetX),gl(a.offsetY));else if(y==="Brush"){if(x=new Jo,x.type=Co(Jo,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof gn&&(x.start=a.start),a.end instanceof gn&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=gl(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=gl(a.endRadius)),a=a.colorStops,Ge(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=ii.parse(a.path):x=new ii,x.type=Co(ii,a.type),typeof a.startX=="number"&&(x.startX=gl(a.startX)),typeof a.startY=="number"&&(x.startY=gl(a.startY)),typeof a.endX=="number"&&(x.endX=gl(a.endX)),typeof a.endY=="number"&&(x.endY=gl(a.endY)),a.spot1 instanceof gn&&(x.spot1=a.spot1),a.spot2 instanceof gn&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=fy(b),typeof b=="function"&&(x=Co(b,a.name)));return x}St.Pe=function(a){return this.Lt.add(a),this},St.ik=function(a){this.Lt.remove(a)},St.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)},St.cb=function(a,y,x,b,tt,et,nt){Ma(this,"",a,y,x,b,tt,et,nt)},St.g=function(a,y,x,b,tt){Ma(this,"",_r,a,this,y,x,b,tt)},St.Fs=function(a,y,x,b,tt,et){Ma(this,"",_r,y,a,x,b,tt,et)};function Ma(a,y,x,b,tt,et,nt,ot,at){ot===void 0&&(ot=null),at===void 0&&(at=null);var ut=new vo;ut.model=a,ut.change=x,ut.modelChange=y,ut.propertyName=b,ut.object=tt,ut.oldValue=et,ut.oldParam=ot,ut.newValue=nt,ut.newParam=at,a.ds(ut)}gr.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===_r){var x=a.object,b=a.propertyName,tt=a.I(y);b===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),tt!==void 0&&this.kb.add(tt,x)),Os(x,b,tt)}else a.change===no?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,Ge(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&ci(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&Yi(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!un(b)&&a.propertyName&&(b=aa(a.object,a.propertyName)),un(b)&&typeof x=="number"&&(a=a.newValue,y?ci(b,x):Yi(b,x,a))):_e("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===ho?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,Ge(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&Yi(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&ci(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!un(b)&&a.propertyName&&(b=aa(a.object,a.propertyName)),un(b)&&typeof x=="number"&&(a=a.oldValue,y?Yi(b,x,a):ci(b,x))):_e("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Vr&&_e("unknown ChangedEvent: "+a.toString())},gr.prototype.Ea=function(a){return this.undoManager.Ea(a)},gr.prototype.eb=function(a){return this.undoManager.eb(a)},gr.prototype.Kf=function(){return this.undoManager.Kf()},gr.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}},St=gr.prototype,St.La=function(a,y){y===void 0&&(y=""),Ma(this,"SourceChanged",Vr,y,a,null,null)},St.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=aa(a,y),y!==void 0)){if(gp(y))return y;_e("Key value for node data "+a+" is not a number or a string: "+y)}}},St.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=aa(a,x);b!==y&&this.hc(y)===null&&(Os(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),Ma(this,"nodeKey",_r,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else Os(a,x,y)}};function gp(a){return typeof a=="number"||typeof a=="string"}St.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},St.hc=function(a){return a===null&&_e("Model.findNodeDataForKey:key must not be null"),a!==void 0&&gp(a)?this.kb.I(a):null},St.$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))){Os(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;Os(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Os(a,y,x)}}}}},St.xf=function(a){a!==null&&(Wi(a),this.lb(a)||dy(this,a,!0))};function dy(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&&_e("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,Yi(a.Tc,b,y)),Ma(a,"nodeDataArray",no,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}St.Fy=function(a){if(un(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)},St.cm=function(a){a!==null&&w0(this,a,!0)};function w0(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 tt=0;tt<b;tt++)if(x[tt]===y){b=tt;break t}b=-1}if(0>b)return;ci(a.Tc,b)}Ma(a,"nodeDataArray",ho,"nodeDataArray",a,y,null,b,null),a.qp(y)}St.nA=function(a){if(un(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)},St.$z=function(a){if(a!==this.nodeDataArray&&un(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,tt=0;tt<b;tt++){var et=a[tt],nt=this.wa(et);if(nt!==void 0){x.add(nt);var ot=this.hc(nt);ot!==et&&(ot!==null?(this.Do(ot,et),this.lm(et,ot)):(et=this.cloneDeep(et),this.km(et,nt),this.xf(et)))}else nt=this.cloneDeep(et),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()}},St.jp=function(a,y){y!==void 0&&(a=_g(this,a),a instanceof Ce&&this.Vf.add(y,a))},St.Lv=function(){},St.fm=function(){},St.em=function(){},St.qp=function(){};function Ic(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new Ce,a.Vf.add(y,b)),b.add(x)}}function rc(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof Ce&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function _g(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof Ce?a:null)}St.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},gr.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):Lm(this,a,!0),Ge(a)&&si(a),a};function Lm(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var tt=Lm(a,y[x],a.copiesArrayObjects);b.push(tt)}return si(b),b}if(x&&Ge(y)){x=(x=y.constructor)?new x:{},tt=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(b in y)if(b==="__gohashid")x.__gohashid=void 0;else if(b===tt)x[tt]=void 0;else{var et=aa(y,b),nt=S0(a,et);nt==="GraphObject"||nt==="Diagram"||nt==="Layer"||nt==="RowColumnDefinition"||nt==="AnimationManager"||nt==="Tool"||nt==="CommandHandler"||nt==="Layout"||nt==="InputEvent"||nt==="DiagramEvent"||et instanceof gr||et instanceof Zo||et instanceof cs||et instanceof vo||(et=Lm(a,et,!1)),Os(x,b,et)}return si(x),x}return y instanceof Gt||y instanceof An||y instanceof je||y instanceof gn||y instanceof Kn?y.copy():y}gr.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!C1&&a instanceof Ue&&(C1=!0,$e('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),$e(" Is that really your intent?"));var b=aa(a,y);b!==x&&(Os(a,y,x),this.Fs(a,y,b,x))},St=gr.prototype,St.set=function(a,y,x){this.setDataProperty(a,y,x)},St.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])}},St.Ay=function(a,y){this.ts(a,-1,y)},St.ts=function(a,y,x){0>y&&(y=a.length),Yi(a,y,x),Ma(this,"",no,"",a,null,x,null,y)},St.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&_e("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];ci(a,y),Ma(this,"",ho,"",a,x,null,y,null)},St.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=aa(a,y),y===void 0))return"";if(typeof y=="string")return y;_e("getCategoryForNodeData found a non-string category for "+a+": "+y)},St.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=aa(a,x);b===void 0&&(b=""),b!==y&&(Os(a,x,y),Ma(this,"nodeCategory",_r,x,a,b,y))}else Os(a,x,y)}},St.lm=function(a,y){this.jm(y,this.Ro(a))},St.Tl=function(){return!1},St.Wj=function(){return!1},St.ri=function(){return!1},St.xs=function(){return!1},St.Xj=function(){return!1};function Wg(){return new gr}function S0(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 S0(a,y.constructor);return typeof y}function fy(a){return yc[a]?yc[a]:ce.go!==void 0&&ce.go[a]?ce.go[a]:null}function aa(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 Os(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){}}ge.Object.defineProperties(gr.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===""&&_e("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&_e("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 tt=a[b];Ge(tt)||_e("Model.nodeDataArray must only contain Objects, not: "+tt),Wi(tt)}for(this.Tc=a,b=new oi,tt=0;tt<x;tt++){var et=a[tt],nt=this.wa(et);nt===void 0||this.kb.I(nt)!==null?b.add(et):this.kb.add(nt,et)}for(b=b.iterator;b.next();)tt=b.value,this.$u(tt),et=this.wa(tt),et!==void 0&&this.kb.add(et,tt);for(Ma(this,"nodeDataArray",_r,"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"}}}),gr.prototype.setCategoryForNodeData=gr.prototype.jm,gr.prototype.getCategoryForNodeData=gr.prototype.Ro,gr.prototype.removeArrayItem=gr.prototype.ov,gr.prototype.insertArrayItem=gr.prototype.ts,gr.prototype.addArrayItem=gr.prototype.Ay,gr.prototype.assignAllDataProperties=gr.prototype.Do,gr.prototype.set=gr.prototype.set,gr.prototype.clearUnresolvedReferences=gr.prototype.Qy,gr.prototype.mergeNodeDataArray=gr.prototype.$z,gr.prototype.removeNodeDataCollection=gr.prototype.nA,gr.prototype.removeNodeData=gr.prototype.cm,gr.prototype.addNodeDataCollection=gr.prototype.Fy,gr.prototype.addNodeData=gr.prototype.xf,gr.prototype.makeNodeDataKeyUnique=gr.prototype.$u,gr.prototype.findNodeDataForKey=gr.prototype.hc,gr.prototype.containsNodeData=gr.prototype.lb,gr.prototype.setKeyForNodeData=gr.prototype.km,gr.prototype.getKeyForNodeData=gr.prototype.wa,gr.prototype.updateTargetBindings=gr.prototype.La,gr.prototype.commit=gr.prototype.commit,gr.prototype.rollbackTransaction=gr.prototype.Kf,gr.prototype.commitTransaction=gr.prototype.eb,gr.prototype.startTransaction=gr.prototype.Ea,gr.prototype.raiseDataChanged=gr.prototype.Fs,gr.prototype.raiseChanged=gr.prototype.g,gr.prototype.raiseChangedEvent=gr.prototype.cb,gr.prototype.removeChangedListener=gr.prototype.ik,gr.prototype.addChangedListener=gr.prototype.Pe,gr.prototype.writeJsonValue=gr.prototype.sm,gr.prototype.replaceJsonObjects=gr.prototype.dm,gr.prototype.applyIncrementalJSON=gr.prototype.Ky,gr.prototype.applyIncrementalJson=gr.prototype.Zw,gr.prototype.toJSON=gr.prototype.toJSON,gr.prototype.toJson=gr.prototype.np,gr.prototype.toIncrementalJSON=gr.prototype.yA,gr.prototype.toIncrementalJson=gr.prototype.$x,gr.prototype.toIncrementalData=gr.prototype.xA,gr.prototype.clear=gr.prototype.clear;var C1=!1,yc={};gr.className="Model",gr.fromJSON=gr.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=ce.JSON.parse(a)}catch(et){}else typeof a=="object"?x=a:_e("Unable to construct a Model from: "+a);if(y===null){a=null;var b=x.class;if(typeof b=="string")try{var tt=null;b.indexOf("go.")===0?(b=b.substr(3),tt=fy(b)):(tt=fy(b),tt===null&&(tt=ce[b])),typeof tt=="function"&&(a=new tt)}catch(et){}a===null||a instanceof gr?y=a:_e("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=gr.constructGraphLinksModel()),y.gp(x),y.kv(x),y},gr.safePropertyValue=aa,gr.safePropertySet=Os,yc.Brush=Jo,yc.ChangedEvent=vo,yc.Geometry=ii,yc.Margin=Kn,yc.Panel=Di,yc.Point=Gt,yc.Rect=je,yc.Size=An,yc.Spot=gn,yc.Transaction=cs,yc.UndoManager=Zo;function ls(a,y,x,b){si(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=Sx,this.wk=null):(this.el=Vg,this.wk=b),this.st=new Ce}ls.prototype.copy=function(){var a=new ls;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},St=ls.prototype,St.qb=function(a){a.classType===ls&&(this.mode=a)},St.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},St.freeze=function(){return this._isFrozen=!0,this},St.ka=function(){return this._isFrozen=!1,this},St.Kx=function(a){return a===void 0&&(a=null),this.mode=Vg,this.backConverter=a,this},St.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},St.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function M1(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}St.Mv=function(a,y,x){var b=this.sl;if(x===void 0||b===""||b===x){x=this.xl;var tt=this.Im;if(tt===null&&x==="")$e("Binding error: target property is the empty string: "+this.toString());else{var et=y;if(b!==""&&(et=aa(y,b)),et!==void 0)if(tt===null)x!==""&&Os(a,x,et);else try{if(x!==""){var nt=tt(et,a);Os(a,x,nt)}else tt(et,a)}catch(ot){}}}},St.sp=function(a,y,x,b){if(this.el===Vg){var tt=this.xl;if(x===void 0||tt===x){x=this.sl;var et=this.wk,nt=a;if(tt!==""&&(nt=aa(a,tt)),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(et===null){if(x!=="")at!==null?at.setDataProperty(y,x,nt):Os(y,x,nt);else if(at!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var ut=b.itemIndex,ht=b.panel.itemArray;at.ov(ht,ut),at.ts(ht,ut,nt)}}else try{if(x!==""){var gt=et(nt,y,at);at!==null?at.setDataProperty(y,x,gt):Os(y,x,gt)}else{var bt=et(nt,y,at);if(bt!==void 0&&at!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Mt=b.itemIndex,Et=b.panel.itemArray;at.ov(Et,Mt),at.ts(Et,Mt,bt)}}}catch(Bt){}}finally{this.st.remove(a)}}}},ge.Object.defineProperties(ls.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&ri(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&ri(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&ri(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&ri(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&ri(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&ri(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&ri(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&ri(this),this.el=a}}}),ls.prototype.updateSource=ls.prototype.sp,ls.prototype.updateTarget=ls.prototype.Mv,ls.prototype.ofModel=ls.prototype.dA,ls.prototype.ofObject=ls.prototype.cp,ls.prototype.makeTwoWay=ls.prototype.Kx;var Zb="Binding",Sx=new ui(ls,"OneWay",1),Vg=new ui(ls,"TwoWay",2);ls.className="Binding",ls.parseEnum=function(a,y){return function(x){return x=Co(a,x),x===null?y:x}},ls.toString=vr,ls.OneWay=Sx,ls.TwoWay=Vg;function Ko(a,y,x){gr.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new Ce,this.wb=new or,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&&(un(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Nn(Ko,gr),Ko.constructGraphLinksModel=gr.constructGraphLinksModel,Ko.prototype.cloneProtected=function(a){gr.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},St=Ko.prototype,St.clear=function(){gr.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},St.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 tt=a[b];y+=" "+this.wa(tt)+":"+vr(tt)}for(y+=`
|
|
|
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)tt=a[b],y+=" "+Pu(this,tt,!0)+"-->"+Pu(this,tt,!1)}return y},St.Qv=function(a,y){this.linkKeyProperty===""&&_e("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=gr.prototype.Qv.call(this,a,y),b=this,tt=new Ce,et=new Ce,nt=new Ce,ot=this.vh;a.changes.each(function(ht){ht.model===b&&(ht.modelChange==="linkDataArray"?ht.change===no?tt.add(ht.newValue):ht.change===ho&&nt.add(ht.oldValue):b.Jc(ht.object)?et.add(ht.object):ht.object!==null&&(ht.object!==null&&ot&&ot.contains(ht.object)?ot.get(ht.object).each(function(gt){b.Jc(gt)&&et.add(gt)}):ht.object instanceof gr||b.lb(ht.object)||Cx(b,ht.object).each(function(gt){et.add(gt)})))});var at=this.il;at.clear(),tt.each(function(ht){at.add(b.Ac(ht)),y||et.add(ht)});var ut=this.kl;return ut.clear(),nt.each(function(ht){ut.add(b.Ac(ht)),y&&et.add(ht)}),a=b.cloneDeep(et.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},St.rm=function(){var a=gr.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},St.gp=function(a){gr.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)},St.Rv=function(){var a=gr.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+rl(this,this.linkDataArray,!0);return a+y},St.kv=function(a){gr.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function Cx(a,y){for(var x=new Ce,b=0;b<a.linkDataArray.length;b++){var tt=a.linkDataArray[b];hy(a,y,tt,tt,x)}return x}St.Pv=function(a,y){this.linkKeyProperty===""&&_e("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=gr.prototype.Pv.call(this,a,y),b=this,tt=new Ce,et=new Ce,nt=new Ce,ot=this.vh;a.changes.each(function(ht){ht.model===b&&(ht.modelChange==="linkDataArray"?ht.change===no?tt.add(ht.newValue):ht.change===ho&&nt.add(ht.oldValue):b.Jc(ht.object)?et.add(ht.object):ht.object!==null&&(ht.object!==null&&ot&&ot.contains(ht.object)?ot.get(ht.object).each(function(gt){b.Jc(gt)&&et.add(gt)}):ht.object instanceof gr||b.lb(ht.object)||Cx(b,ht.object).each(function(gt){et.add(gt)})))});var at=this.il;at.clear(),tt.each(function(ht){at.add(b.Ac(ht)),y||et.add(ht)});var ut=this.kl;return ut.clear(),nt.each(function(ht){ut.add(b.Ac(ht)),y&&et.add(ht)}),a=x,0<at.count&&(a+=(y?this.Xv:this.Vv)+rl(this,at.Fa(),!0)),0<et.count&&(a+=this.iy+rl(this,et.Fa(),!0)),0<ut.count&&(a+=(y?this.Vv:this.Xv)+rl(this,ut.Fa(),!0)),ut.clear(),at.clear(),a},St.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)&&_e("applyIncrementalJson cannot change Model properties"),gr.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,b=0;b<x;b++){var tt=y[b],et=this.jh(tt);et===null&&(et=this.Jo({}),this.Ks(et,tt),this.fi(et))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,b=0;b<x;b++)if(tt=y[b],et=this.Ac(tt),et=this.jh(et),et!==null){for(var nt in tt)nt!=="__gohashid"&&nt!==this.linkKeyProperty&&this.setDataProperty(et,nt,tt[nt]);Ex(this,tt,et)}}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)},Ko.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===_r){var x=a.object,b=a.propertyName;if(b===this.linkKeyProperty&&this.Jc(x)){var tt=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),tt!==void 0&&this.wb.add(tt,x),Os(x,b,tt);return}}else if(a.change===no){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,Ge(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===ho){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Ge(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}}gr.prototype.changeState.call(this,a,y)}},St=Ko.prototype,St.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),Os(x,this.nodeKeyProperty,a),this.xf(x))}return a}},St.yx=function(a){return Pu(this,a,!0)},St.wv=function(a,y){Pm(this,a,y,!0)},St.Bx=function(a){return Pu(this,a,!1)},St.Bv=function(a,y){Pm(this,a,y,!1)};function Pu(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=aa(y,a),a!==void 0))){if(gp(a))return a;_e((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Pm(a,y,x,b){if(x===null&&(x=void 0),y!==null){var tt=b?a.lf:a.mf;if(tt!=="")if(x=a.Vl(x),a.Jc(y)){var et=aa(y,tt);et!==x&&(rc(a,et,y),Os(y,tt,x),a.hc(x)===null&&Ic(a,x,y),Ma(a,b?"linkFromKey":"linkToKey",_r,tt,y,et,x),typeof tt=="string"&&a.La(y,tt))}else Os(y,tt,x)}}St.zx=function(a){return py(this,a,!0)},St.xv=function(a,y){Nm(this,a,y,!0)},St.Cx=function(a){return py(this,a,!1)},St.Cv=function(a,y){Nm(this,a,y,!1)};function py(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=aa(y,a),y===void 0?"":y)}function Nm(a,y,x,b){if(y!==null){var tt=b?a.ej:a.fj;if(tt!=="")if(a.Jc(y)){var et=aa(y,tt);et===void 0&&(et=""),et!==x&&(Os(y,tt,x),Ma(a,b?"linkFromPortId":"linkToPortId",_r,tt,y,et,x),typeof tt=="string"&&a.La(y,tt))}else Os(y,tt,x)}}St.Ef=function(a){if(a===null)return yp;var y=this.je;return y===""?yp:(a=aa(a,y),a===void 0?yp:a)},St.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=aa(a,x);if(b===void 0&&(b=yp),b!==y){if(Array.isArray(b))for(var tt=b.length,et=0;et<tt;et++)rc(this,b[et],a);for(Os(a,x,y),tt=y.length,et=0;et<tt;et++){var nt=y[et];this.hc(nt)===null&&Ic(this,nt,a)}Ma(this,"linkLabelKeys",_r,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else Os(a,x,y)}},St.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=aa(a,x);if(b===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(b)){var tt=b.indexOf(y);0<=tt||(tt=b.length,b.push(y),this.Jc(a)&&(this.hc(y)===null&&Ic(this,y,a),Ma(this,"linkLabelKeys",no,x,a,null,y,null,tt)))}else _e(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},St.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=aa(a,x);if(Array.isArray(b)){var tt=b.indexOf(y);0>tt||(b.splice(tt,1),this.Jc(a)&&(rc(this,y,a),Ma(this,"linkLabelKeys",ho,x,a,y,null,tt,null)))}else b!==void 0&&_e(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},St.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=aa(a,y),y!==void 0)){if(gp(y))return y;_e("Key value for link data "+a+" is not a number or a string: "+y)}}},St.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=aa(a,x);b!==y&&this.jh(y)===null&&(Os(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),Ma(this,"linkKey",_r,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Os(a,x,y)}},St.jh=function(a){return a===null&&_e("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&gp(a)?this.wb.I(a):null},St.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))){Os(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Os(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Os(a,y,x)}}}}},St.Jc=function(a){return a===null?!1:this.$f.contains(a)},St.fi=function(a){a!==null&&(Wi(a),this.Jc(a)||Mx(this,a,!0))};function Mx(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&&_e("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)),Ma(a,"linkDataArray",no,"linkDataArray",a,null,y,null,b),E1(a,y)}St.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)},St.bm=function(a){a!==null&&vp(this,a,!0)};function vp(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(Ma(a,"linkDataArray",ho,"linkDataArray",a,y,null,b,null),x=Pu(a,y,!0),rc(a,x,y),x=Pu(a,y,!1),rc(a,x,y),b=a.Ef(y),Array.isArray(b))for(var tt=b.length,et=0;et<tt;et++)x=b[et],rc(a,x,y)}St.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)},St.Zz=function(a){if(this.linkKeyProperty===""&&_e("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&un(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,tt=0;tt<b;tt++){var et=a[tt],nt=this.Ac(et);if(nt!==void 0){x.add(nt);var ot=this.jh(nt);ot!==et&&(ot!==null?(this.Do(ot,et),Ex(this,et,ot)):(et=this.cloneDeep(et),this.Ks(et,nt),this.fi(et)))}else nt=this.cloneDeep(et),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 E1(a,y){var x=Pu(a,y,!0);x=a.Vl(x),a.hc(x)===null&&Ic(a,x,y),x=Pu(a,y,!1),x=a.Vl(x),a.hc(x)===null&&Ic(a,x,y);var b=a.Ef(y);if(Array.isArray(b))for(var tt=b.length,et=0;et<tt;et++)x=b[et],a.hc(x)===null&&Ic(a,x,y)}St.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):Lm(this,a,!0),Ge(a)&&(si(a),this.lf!==""&&Os(a,this.lf,void 0),this.mf!==""&&Os(a,this.mf,void 0),this.je!==""&&Os(a,this.je,[])),a},St.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!aa(a,y)},St.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=aa(a,y),y!==void 0)){if(gp(y))return y;_e("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},St.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=aa(a,x);b!==y&&(rc(this,b,a),Os(a,x,y),this.hc(y)===null&&Ic(this,y,a),Ma(this,"nodeGroupKey",_r,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Os(a,x,y)}},Ko.prototype.copyNodeData=function(a){return a===null?null:(a=gr.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||aa(a,this.Je)===void 0||Os(a,this.Je,void 0),a)},Ko.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){Pm(this,a,x,!0);return}if(y===this.linkToKeyProperty){Pm(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Nm(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Nm(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=aa(a,y);b!==x&&(Os(a,y,x),this.Fs(a,y,b,x))},St=Ko.prototype,St.Do=function(a,y){if(y){var x=this.lb(a),b=this.Jc(a),tt;for(tt in y)tt==="__gohashid"||x&&tt===this.nodeKeyProperty||x&&tt===this.nodeIsGroupProperty&&aa(a,tt)===y[tt]||b&&tt===this.linkKeyProperty||this.setDataProperty(a,tt,y[tt])}},St.jp=function(a,y){gr.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,tt=a,et=y;if(Pu(this,b,!0)===tt){var nt=this.lf;Os(b,nt,et),Ma(this,"linkFromKey",_r,nt,b,tt,et),typeof nt=="string"&&this.La(b,nt)}if(Pu(this,b,!1)===tt&&(nt=this.mf,Os(b,nt,et),Ma(this,"linkToKey",_r,nt,b,tt,et),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]===tt&&(nt[ut]=et,Ma(this,"linkLabelKeys",no,at,b,tt,et,ut,ut))}},St.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;Os(a,b,x),Ma(this,"nodeGroupKey",_r,b,a,y,x),typeof b=="string"&&this.La(a,b)}},St.Lv=function(){gr.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)E1(this,a[x])},St.fm=function(a){gr.prototype.fm.call(this,a),a=this.wa(a);var y=_g(this,a);if(y!==null){var x=Xn();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var tt=this.Je;Ma(this,"nodeGroupKey",_r,tt,b,a,a),typeof tt=="string"&&this.La(b,tt),x.push(b)}}else if(Pu(this,b,!0)===a&&(tt=this.lf,Ma(this,"linkFromKey",_r,tt,b,a,a),typeof tt=="string"&&this.La(b,tt),x.push(b)),Pu(this,b,!1)===a&&(tt=this.mf,Ma(this,"linkToKey",_r,tt,b,a,a),typeof tt=="string"&&this.La(b,tt),x.push(b)),tt=this.Ef(b),Array.isArray(tt))for(var et=tt.length,nt=this.je,ot=0;ot<et;ot++)tt[ot]===a&&(Ma(this,"linkLabelKeys",no,nt,b,a,a,ot,ot),x.push(b))}for(y=0;y<x.length;y++)rc(this,a,x[y]);qn(x)}},St.em=function(a){gr.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&Ic(this,y,a)},St.qp=function(a){gr.prototype.qp.call(this,a);var y=this.lh(a);rc(this,y,a)},St.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=aa(a,y),y===void 0))return"";if(typeof y=="string")return y;_e("getCategoryForLinkData found a non-string category for "+a+": "+y)},Ko.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Ko.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=aa(a,x);b===void 0&&(b=""),b!==y&&(Os(a,x,y),Ma(this,"linkCategory",_r,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Os(a,x,y)}},Ko.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},St=Ko.prototype,St.lm=function(a,y){gr.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function Ex(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))}St.Wj=function(){return!0},St.ri=function(){return!0},St.xs=function(){return!0},St.Xj=function(){return!0},ge.Object.defineProperties(Ko.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 tt=a[b];Ge(tt)||_e("GraphLinksModel.linkDataArray must only contain Objects, not: "+tt),Wi(tt)}if(this.md=a,this.linkKeyProperty!==""){for(b=new oi,tt=0;tt<x;tt++){var et=a[tt],nt=this.Ac(et);nt===void 0||this.wb.I(nt)!==null?b.add(et):this.wb.add(nt,et)}for(b=b.iterator;b.next();)tt=b.value,this.Bs(tt),et=this.Ac(tt),et!==void 0&&this.wb.add(et,tt)}for(b=new Ce,tt=0;tt<x;tt++)b.add(a[tt]);for(this.$f=b,Ma(this,"linkDataArray",_r,"linkDataArray",this,y,a),y=0;y<x;y++)E1(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 tt=this.linkDataArray[b],et=this.Ac(tt);et===void 0&&(this.Bs(tt),et=this.Ac(tt)),et!==void 0&&this.wb.add(et,tt)}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"}}}),Ko.prototype.setCategoryForLinkData=Ko.prototype.lp,Ko.prototype.getCategoryForLinkData=Ko.prototype.ps,Ko.prototype.assignAllDataProperties=Ko.prototype.Do,Ko.prototype.setGroupKeyForNodeData=Ko.prototype.mp,Ko.prototype.getGroupKeyForNodeData=Ko.prototype.lh,Ko.prototype.isGroupForNodeData=Ko.prototype.Yu,Ko.prototype.copyLinkData=Ko.prototype.Jo,Ko.prototype.mergeLinkDataArray=Ko.prototype.Zz,Ko.prototype.removeLinkDataCollection=Ko.prototype.lA,Ko.prototype.removeLinkData=Ko.prototype.bm,Ko.prototype.addLinkDataCollection=Ko.prototype.Ey,Ko.prototype.addLinkData=Ko.prototype.fi,Ko.prototype.containsLinkData=Ko.prototype.Jc,Ko.prototype.makeLinkDataKeyUnique=Ko.prototype.Bs,Ko.prototype.findLinkDataForKey=Ko.prototype.jh,Ko.prototype.setKeyForLinkData=Ko.prototype.Ks,Ko.prototype.getKeyForLinkData=Ko.prototype.Ac,Ko.prototype.removeLabelKeyForLinkData=Ko.prototype.Qx,Ko.prototype.addLabelKeyForLinkData=Ko.prototype.Bu,Ko.prototype.setLabelKeysForLinkData=Ko.prototype.Ls,Ko.prototype.getLabelKeysForLinkData=Ko.prototype.Ef,Ko.prototype.setToPortIdForLinkData=Ko.prototype.Cv,Ko.prototype.getToPortIdForLinkData=Ko.prototype.Cx,Ko.prototype.setFromPortIdForLinkData=Ko.prototype.xv,Ko.prototype.getFromPortIdForLinkData=Ko.prototype.zx,Ko.prototype.setToKeyForLinkData=Ko.prototype.Bv,Ko.prototype.getToKeyForLinkData=Ko.prototype.Bx,Ko.prototype.setFromKeyForLinkData=Ko.prototype.wv,Ko.prototype.getFromKeyForLinkData=Ko.prototype.yx,Ko.prototype.clear=Ko.prototype.clear;var yp=Object.freeze([]);Ko.className="GraphLinksModel",yc.GraphLinksModel=Ko,gr.constructGraphLinksModel=gr.constructGraphLinksModel=function(){return new Ko},gr.initDiagramModel=Wg=function(){return new Ko};function Kl(a,y){gr.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(un(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Nn(Kl,gr),Kl.constructGraphLinksModel=gr.constructGraphLinksModel,Kl.prototype.cloneProtected=function(a){gr.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},St=Kl.prototype,St.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 tt=a[b];y+=" "+this.wa(tt)+":"+vr(tt)}}return y},St.rm=function(){var a=gr.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},St.gp=function(a){gr.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},St.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&_e("applyIncrementalJson cannot change Model properties"),gr.prototype.fp.call(this,a)},St.Vl=function(a){return a},St.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=aa(a,y),y!==void 0)){if(gp(y))return y;_e("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},St.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=aa(a,x);b!==y&&(rc(this,b,a),Os(a,x,y),this.hc(y)===null&&Ic(this,y,a),Ma(this,"nodeParentKey",_r,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Os(a,x,y)}},St.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=aa(a,y),y===void 0)?"":typeof y=="string"?y:(_e("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Kl.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Kl.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=aa(a,x);b===void 0&&(b=""),b!==y&&(Os(a,x,y),Ma(this,"parentLinkCategory",_r,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Os(a,x,y)}},Kl.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Kl.prototype.copyNodeData=function(a){return a===null?null:(a=gr.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||aa(a,this.Ke)===void 0||Os(a,this.Ke,void 0),a)},Kl.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=aa(a,y);b!==x&&(Os(a,y,x),this.Fs(a,y,b,x))},St=Kl.prototype,St.jp=function(a,y){gr.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},St.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;Os(a,b,x),Ma(this,"nodeParentKey",_r,b,a,y,x),typeof b=="string"&&this.La(a,b)}},St.fm=function(a){gr.prototype.fm.call(this,a),a=this.wa(a);var y=_g(this,a);if(y!==null){var x=Xn();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var tt=this.Ke;Ma(this,"nodeParentKey",_r,tt,b,a,a),typeof tt=="string"&&this.La(b,tt),x.push(b)}}for(y=0;y<x.length;y++)rc(this,a,x[y]);qn(x)}},St.em=function(a){gr.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&Ic(this,y,a)},St.qp=function(a){gr.prototype.qp.call(this,a);var y=this.mh(a);rc(this,y,a)},St.lm=function(a,y){gr.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},St.Tl=function(){return!0},St.xs=function(){return!0},ge.Object.defineProperties(Kl.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"}}}),Kl.prototype.setParentLinkCategoryForNodeData=Kl.prototype.Ms,Kl.prototype.getParentLinkCategoryForNodeData=Kl.prototype.ss,Kl.prototype.setParentKeyForNodeData=Kl.prototype.qe,Kl.prototype.getParentKeyForNodeData=Kl.prototype.mh,Kl.className="TreeModel",yc.TreeModel=Kl;function Ks(a){Ds.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=xc,this.Ti=0,this.Zv=new Gt,this.Jp=this.me=0,this.Xr=new Mf,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=xc,this.K=Hl,this.nd=Sl,this.hd=y1,this.tf=6,this.Nn=bp,a&&Object.assign(this,a)}Nn(Ks,Ds),Ks.prototype.cloneProtected=function(a){Ds.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},Ks.prototype.qb=function(a){a.classType===Ks?a===gy||a===nd||a===my||a===Js||a===Sl?this.sorting=a:a===Cf||a===xp||a===Hl||a===Sf?this.direction=a:a===xu||a===wf||a===xc||a===bc?this.arrangement=a:(a===wc||a===bp)&&(this.nodeDiameterFormula=a):Ds.prototype.qb.call(this,a)},Ks.prototype.createNetwork=function(){return new id(this)},Ks.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 oi;y.addAll(a.iterator),a=new oi;var x=new oi,b=this.sort(y),tt,et,nt=this.Jp,ot=this.arrangement,at=this.nodeDiameterFormula,ut=this.radius;(!isFinite(ut)||0>=ut)&&(ut=NaN);var ht=this.aspectRatio;(!isFinite(ht)||0>=ht)&&(ht=1);var gt=this.startAngle;isFinite(gt)||(gt=0);var bt=this.sweepAngle;if((!isFinite(bt)||360<bt||1>bt)&&(bt=360),y=this.spacing,isFinite(y)||(y=NaN),ot===bc&&at===wc?ot=xc:ot===bc&&at!==wc&&(ot=this.arrangement),(this.direction===Cf||this.direction===xp)&&this.sorting!==Sl){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===Cf?(this.arrangement===bc&&a.reverse(),b=new oi,b.addAll(a),b.addAll(x)):(this.arrangement===bc&&x.reverse(),b=new oi,b.addAll(x),b.addAll(a))}at=b.length;for(var Mt=et=tt=0;Mt<b.length;Mt++){var Et=gt+bt*et*(this.direction===Hl?1:-1)/at,Bt=b.M(Mt).diameter;isNaN(Bt)&&(Bt=Bd(b.M(Mt),Et)),360>bt&&(Mt===0||Mt===b.length-1)&&(Bt/=2),tt+=Bt,et++}if(isNaN(ut)||ot===bc){if(isNaN(y)&&(y=6),ot!==xc&&ot!==bc){for(et=-1/0,nt=0;nt<at;nt++)Mt=b.M(nt),tt=b.M(nt===at-1?0:nt+1),isNaN(Mt.diameter)&&Bd(Mt,0),isNaN(tt.diameter)&&Bd(tt,0),et=Math.max(et,(Mt.diameter+tt.diameter)/2);nt=et+y,ot===xu?ut=(et+y)/(2*Math.PI/at):ut=Zg(this,nt*(360<=bt?at:at-1),ht,gt*Math.PI/180,bt*Math.PI/180)}else ut=Zg(this,tt+(360<=bt?at:at-1)*(ot!==bc?y:1.6*y),ht,gt*Math.PI/180,bt*Math.PI/180);et=ut*ht}else if(et=ut*ht,Mt=A1(this,ut,et,gt*Math.PI/180,bt*Math.PI/180),isNaN(y))(ot===xc||ot===bc)&&(y=(Mt-tt)/(360<=bt?at:at-1));else if(ot===xc||ot===bc)Mt=(Mt-tt)/(360<=bt?at:at-1),Mt<y?(ut=Zg(this,tt+y*(360<=bt?at:at-1),ht,gt*Math.PI/180,bt*Math.PI/180),et=ut*ht):y=Mt;else{for(nt=-1/0,tt=0;tt<at;tt++)Et=b.M(tt),Bt=b.M(tt===at-1?0:tt+1),isNaN(Et.diameter)&&Bd(Et,0),isNaN(Bt.diameter)&&Bd(Bt,0),nt=Math.max(nt,(Et.diameter+Bt.diameter)/2);nt+=y,tt=Zg(this,nt*(360<=bt?at:at-1),ht,gt*Math.PI/180,bt*Math.PI/180),tt>ut?(ut=tt,et=ut*ht):nt=Mt/(360<=bt?at:at-1)}if(this.kw=ot,this.lc=ut,this.Zm=ht,this.lw=gt,this.Wp=bt,this.Ti=y,this.me=et,this.Jp=nt,y=b,b=this.kw,ot=this.lc,ut=this.lw,ht=this.Wp,gt=this.Ti,bt=this.me,at=this.Jp,this.direction!==Cf&&this.direction!==xp||b!==bc)if(this.direction===Cf||this.direction===xp){switch(nt=0,b){case wf:nt=180*Tm(this,ot,bt,ut,at)/Math.PI;break;case xc:at=y=0,nt=a.first(),nt!==null&&(y=Bd(nt,Math.PI/2)),nt=x.first(),nt!==null&&(at=Bd(nt,Math.PI/2)),nt=180*Tm(this,ot,bt,ut,gt+(y+at)/2)/Math.PI;break;case xu:nt=ht/y.length}if(this.direction===Cf){switch(b){case wf:Ug(this,a,ut,Sf);break;case xc:Od(this,a,ut,Sf);break;case xu:C0(this,a,ht/2,ut,Sf)}switch(b){case wf:Ug(this,x,ut+nt,Hl);break;case xc:Od(this,x,ut+nt,Hl);break;case xu:C0(this,x,ht/2,ut+nt,Hl)}}else{switch(b){case wf:Ug(this,x,ut,Sf);break;case xc:Od(this,x,ut,Sf);break;case xu:C0(this,x,ht/2,ut,Sf)}switch(b){case wf:Ug(this,a,ut+nt,Hl);break;case xc:Od(this,a,ut+nt,Hl);break;case xu:C0(this,a,ht/2,ut+nt,Hl)}}}else switch(b){case wf:Ug(this,y,ut,this.direction);break;case xc:Od(this,y,ut,this.direction);break;case xu:C0(this,y,ht,ut,this.direction);break;case bc:kx(this,y,ht,ut,this.direction)}else kx(this,y,ht,ut-ht/2,Hl)}this.updateParts(),this.network=null,this.isValidLayout=!0};function C0(a,y,x,b,tt){var et=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+(tt===Hl?at*x/(360<=et?ot:ot-1):-(at*x)/ot),ht=y.M(at),gt=nt*Math.tan(ut)/a;gt=Math.sqrt((nt*nt+a*a*gt*gt)/(1+gt*gt)),ht.centerX=gt*Math.cos(ut),ht.centerY=gt*Math.sin(ut),ht.actualAngle=180*ut/Math.PI}}function Od(a,y,x,b){var tt=a.lc,et=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),ht=y.M(at===ot-1?0:at+1),gt=et*Math.sin(x);ut.centerX=tt*Math.cos(x),ut.centerY=gt,ut.actualAngle=180*x/Math.PI,isNaN(ut.diameter)&&Bd(ut,0),isNaN(ht.diameter)&&Bd(ht,0),ut=Tm(a,tt,et,b===Hl?x:-x,(ut.diameter+ht.diameter)/2+nt),x+=b===Hl?ut:-ut}}function Ug(a,y,x,b){var tt=a.lc,et=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=tt*Math.cos(x),ut.centerY=et*Math.sin(x),ut.actualAngle=180*x/Math.PI,ut=Tm(a,tt,et,b===Hl?x:-x,nt),x+=b===Hl?ut:-ut}}function kx(a,y,x,b,tt){var et=a.Wp;if(a.mj=0,a.Xr=new Mf,360>x){for(et=b+(tt===Hl?et:-et);0>et;)et+=360;et%=360,180<et&&(et-=360),et*=Math.PI/180,a.gt=et,Ax(a,y,x,b,tt)}else k1(a,y,x,b,tt);a.Xr.commit(y)}function k1(a,y,x,b,tt){var et=a.lc,nt=a.Ti,ot=a.Zm,at=et*Math.cos(b*Math.PI/180),ut=a.me*Math.sin(b*Math.PI/180),ht=y.Fa();if(ht.length===3)ht[0].centerX=et,ht[0].centerY=0,ht[1].centerX=ht[0].centerX-ht[0].width/2-ht[1].width/2-nt,ht[1].y=ht[0].y,ht[2].centerX=(ht[0].centerX+ht[1].centerX)/2,ht[2].y=ht[0].y-ht[2].height-nt;else if(ht.length===4)ht[0].centerX=et,ht[0].centerY=0,ht[2].centerX=-ht[0].centerX,ht[2].centerY=ht[0].centerY,ht[1].centerX=0,ht[1].y=Math.min(ht[0].y,ht[2].y)-ht[1].height-nt,ht[3].centerX=0,ht[3].y=Math.max(ht[0].y+ht[0].height+nt,ht[2].y+ht[2].height+nt);else{et=Gt.alloc();for(var gt=0;gt<ht.length&&(ht[gt].centerX=at,ht[gt].centerY=ut,!(gt>=ht.length-1));gt++)Lx(a,at,ut,ht,gt,tt,et)||Px(a,at,ut,ht,gt,tt,et),at=et.x,ut=et.y;if(Gt.free(et),a.mj++,!(23<a.mj)){at=ht[0].centerX,ut=ht[0].centerY,et=ht[ht.length-1].centerX,gt=ht[ht.length-1].centerY;var bt=Math.abs(at-et)-((ht[0].width+ht[ht.length-1].width)/2+nt),Mt=Math.abs(ut-gt)-((ht[0].height+ht[ht.length-1].height)/2+nt);nt=0,1>Math.abs(Mt)?Math.abs(at-et)<(ht[0].width+ht[ht.length-1].width)/2&&(nt=0):nt=0<Mt?Mt:1>Math.abs(bt)?0:bt,at=Math.abs(et)>Math.abs(gt)?0<et!=ut>gt:0<gt!=at<et,(at=tt===Hl?at:!at)&&(nt=-Math.abs(nt),nt=Math.min(nt,-ht[ht.length-1].width),nt=Math.min(nt,-ht[ht.length-1].height)),a.Xr.compare(nt,ht),1<Math.abs(nt)&&(a.lc=8>a.mj?a.lc-nt/(2*Math.PI):5>ht.length&&10<nt?a.lc/2:a.lc-(0<nt?1.7:-2.3),a.me=a.lc*ot,k1(a,y,x,b,tt))}}}function Ax(a,y,x,b,tt){for(var et=a.lc,nt=a.me,ot=a.Zm,at=et*Math.cos(b*Math.PI/180),ut=nt*Math.sin(b*Math.PI/180),ht=Gt.alloc(),gt=y.Fa(),bt=0;bt<gt.length&&(gt[bt].centerX=at,gt[bt].centerY=ut,!(bt>=gt.length-1));bt++)Lx(a,at,ut,gt,bt,tt,ht)||Px(a,at,ut,gt,bt,tt,ht),at=ht.x,ut=ht.y;if(Gt.free(ht),a.mj++,!(23<a.mj)){if(at=Math.atan2(ut,at),at=tt===Hl?a.gt-at:at-a.gt,at=Math.abs(at)<Math.abs(at-2*Math.PI)?at:at-2*Math.PI,et=at*(et+nt)/2,nt=a.Xr,Math.abs(et)<Math.abs(nt.Pl))for(nt.Pl=et,nt.mk=[],nt.tm=[],at=0;at<gt.length;at++)nt.mk[at]=gt[at].bounds.x,nt.tm[at]=gt[at].bounds.y;1<Math.abs(et)&&(a.lc=8>a.mj?a.lc-et/(2*Math.PI):a.lc-(0<et?1.7:-2.3),a.me=a.lc*ot,Ax(a,y,x,b,tt))}}function Lx(a,y,x,b,tt,et,nt){var ot=a.lc,at=a.me,ut=0;a=(b[tt].width+b[tt+1].width)/2+a.Ti;var ht=!1;if(0<=x!=(et===Hl)){if(et=y+a,et>ot){if(et=y-a,et<-ot)return nt.x=et,nt.y=ut,!1;ht=!0}}else if(et=y-a,et<-ot){if(et=y+a,et>ot)return nt.x=et,nt.y=ut,!1;ht=!0}return ut=Math.sqrt(1-Math.min(1,et*et/(ot*ot)))*at,0>x!==ht&&(ut=-ut),Math.abs(x-ut)>(b[tt].height+b[tt+1].height)/2?(nt.x=et,nt.y=ut,!1):(nt.x=et,nt.y=ut,!0)}function Px(a,y,x,b,tt,et,nt){var ot=a.lc,at=a.me,ut=0;if(a=(b[tt].height+b[tt+1].height)/2+a.Ti,b=!1,0<=y!=(et===Hl)){if(et=x-a,et<-at){if(et=x+a,et>at){nt.x=ut,nt.y=et;return}b=!0}}else if(et=x+a,et>at){if(et=x-a,et<-at){nt.x=ut,nt.y=et;return}b=!0}ut=Math.sqrt(1-Math.min(1,et*et/(at*at)))*ot,0>y!==b&&(ut=-ut),nt.x=ut,nt.y=et}Ks.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Ks.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 Gt(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 tt=b.value;tt.x+=x.x,tt.y+=x.y,tt.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))},Ks.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function A1(a,y,x,b,tt){var et=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&tt!==void 0?tt*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&&tt!==void 0?tt/(et+1):Math.PI/(2*(et+1)),at=0,ut=0;ut<=et;ut++){b!==void 0&&tt!==void 0?at=b+ut*tt/et:at=ut*Math.PI/(2*et);var ht=Math.sin(at);nt+=Math.sqrt(1-a*a*ht*ht)*ot}return b!==void 0&&tt!==void 0?(y>x?y:x)*nt:4*(y>x?y:x)*nt}function Zg(a,y,x,b,tt){return y/(b!==void 0&&tt!==void 0?A1(a,1,x,b,tt):A1(a,1,x))}function Tm(a,y,x,b,tt){if(.001>Math.abs(a.Zm-1))return tt/y;var et=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-et*et*at*at)*a,nt>=tt)return ot*a}}Ks.prototype.sort=function(a){switch(this.sorting){case my:break;case Js:a.reverse();break;case gy:a.sort(this.comparer);break;case nd:a.sort(this.comparer),a.reverse();break;case Sl:return this.ak(Gg(a));default:_e("Invalid sorting type.")}return a};function Gg(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new oi;for(var b=0;b<a.length;b++){var tt=-1,et=-1;if(b===0)for(var nt=0;nt<a.length;nt++){var ot=a.M(nt).edgesCount;ot>tt&&(tt=ot,et=nt)}else for(nt=0;nt<a.length;nt++)ot=y[nt],ot>tt&&(tt=ot,et=nt);for(x.add(a.M(et)),y[et]=-1,et=a.M(et),nt=et.sourceEdges;nt.next();)tt=a.indexOf(nt.value.fromVertex),0>tt||0<=y[tt]&&y[tt]++;for(et=et.destinationEdges;et.next();)tt=a.indexOf(et.value.toVertex),0>tt||0<=y[tt]&&y[tt]++}return x}Ks.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var b=a.M(x);y[x]=[];for(var tt,et=b.destinationEdges;et.next();)tt=a.indexOf(et.value.toVertex),tt!==x&&0>y[x].indexOf(tt)&&y[x].push(tt);for(b=b.sourceEdges;b.next();)tt=a.indexOf(b.value.fromVertex),tt!==x&&0>y[x].indexOf(tt)&&y[x].push(tt)}for(et=[],x=0;x<y.length;x++)et[x]=0;x=[];var nt=[],ot=[];b=[],tt=new oi;for(var at=0,ut=0;ut<y.length;ut++){var ht=y[ut].length;if(ht===1)b.push(ut);else if(ht===0)tt.add(a.M(ut));else{if(at===0)x.push(ut);else{for(var gt=ht=1/0,bt=-1,Mt=[],Et=0;Et<x.length;Et++)0>y[x[Et]].indexOf(x[Et===x.length-1?0:Et+1])&&Mt.push(Et===x.length-1?0:Et+1);if(Mt.length===0)for(Et=0;Et<x.length;Et++)Mt.push(Et);for(Et=0;Et<Mt.length;Et++){for(var Bt=Mt[Et],se=y[ut],Jt=0,me=0;me<nt.length;me++){var Se=et[nt[me]],Le=et[ot[me]];if(Se<Le){var Ve=Se;Se=Le}else Ve=Le;if(Ve<Bt&&Bt<=Se)for(Le=0;Le<se.length;Le++){var fn=se[Le];0>x.indexOf(fn)||Ve<et[fn]&&et[fn]<Se||Ve===et[fn]||Se===et[fn]||Jt++}else for(Le=0;Le<se.length;Le++)fn=se[Le],0>x.indexOf(fn)||Ve<et[fn]&&et[fn]<Se&&Ve!==et[fn]&&Se!==et[fn]&&Jt++}for(se=Jt,me=Jt=0;me<y[ut].length;me++)Ve=x.indexOf(y[ut][me]),0<=Ve&&(Ve=Math.abs(Bt-(Ve>=Bt?Ve+1:Ve)),Jt+=Ve<x.length+1-Ve?Ve:x.length+1-Ve);for(me=0;me<nt.length;me++)Ve=et[nt[me]],Se=et[ot[me]],Ve>=Bt&&Ve++,Se>=Bt&&Se++,Ve>Se&&(Le=Se,Se=Ve,Ve=Le),Se-Ve<(x.length+2)/2==(Ve<Bt&&Bt<=Se)&&Jt++;(se<ht||se===ht&&Jt<gt)&&(ht=se,gt=Jt,bt=Bt)}for(x.splice(bt,0,ut),ht=0;ht<x.length;ht++)et[x[ht]]=ht;for(ht=0;ht<y[ut].length;ht++)gt=y[ut][ht],0<=x.indexOf(gt)&&(nt.push(ut),ot.push(gt))}at++}}for(nt=x.length;;){for(et=!0,ot=0;ot<b.length;ot++)if(at=b[ot],ut=y[at][0],ht=x.indexOf(ut),0<=ht){for(bt=gt=0;bt<y[ut].length;bt++)Mt=x.indexOf(y[ut][bt]),0>Mt||Mt===ht||(Et=Mt>ht?Mt-ht:ht-Mt,gt+=Mt<ht!=Et>nt-Et?1:-1);x.splice(0>gt?ht:ht+1,0,at),b.splice(ot,1),ot--}else et=!1;if(et)break;x.push(b[0]),b.splice(0,1)}for(y=0;y<x.length;y++)tt.add(a.M(x[y]));return tt},ge.Object.defineProperties(Ks.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!==bc&&a!==xc&&a!==wf&&a!==xu||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Hl&&a!==Sf&&a!==Cf&&a!==xp||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==my&&a!==Js&&a!==gy&&!nd&&a!==Sl||(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!==bp&&a!==wc||(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 xc=new ui(Ks,"ConstantSpacing",0),wf=new ui(Ks,"ConstantDistance",1),xu=new ui(Ks,"ConstantAngle",2),bc=new ui(Ks,"Packed",3),Hl=new ui(Ks,"Clockwise",4),Sf=new ui(Ks,"Counterclockwise",5),Cf=new ui(Ks,"BidirectionalLeft",6),xp=new ui(Ks,"BidirectionalRight",7),my=new ui(Ks,"Forwards",8),Js=new ui(Ks,"Reverse",9),gy=new ui(Ks,"Ascending",10),nd=new ui(Ks,"Descending",11),Sl=new ui(Ks,"Optimized",12),bp=new ui(Ks,"Pythagorean",13),wc=new ui(Ks,"Circular",14);Ks.className="CircularLayout",Ks.ConstantSpacing=xc,Ks.ConstantDistance=wf,Ks.ConstantAngle=xu,Ks.Packed=bc,Ks.Clockwise=Hl,Ks.Counterclockwise=Sf,Ks.BidirectionalLeft=Cf,Ks.BidirectionalRight=xp,Ks.Forwards=my,Ks.Reverse=Js,Ks.Ascending=gy,Ks.Descending=nd,Ks.Optimized=Sl,Ks.Pythagorean=bp,Ks.Circular=wc;function Mf(){this.Pl=-1/0,this.tm=this.mk=null}Mf.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},Mf.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]}},Mf.className="VertexArrangement";function id(a){Ss.call(this,a)}Nn(id,Ss),id.prototype.createVertex=function(){return new Dm(this)},id.prototype.createEdge=function(){return new Yg(this)},id.className="CircularNetwork";function Dm(a){ca.call(this,a),this.u=this.Si=NaN}Nn(Dm,ca);function Bd(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===bc)if(x.nodeDiameterFormula===wc)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===wc?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}ge.Object.defineProperties(Dm.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)}}}),Dm.className="CircularVertex";function Yg(a){lu.call(this,a)}Nn(Yg,lu),Yg.className="CircularEdge";function ul(a){Ds.call(this),this.ah=null,this.An=0,this.$d=new An(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)}Nn(ul,Ds),ul.prototype.cloneProtected=function(a){Ds.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},ul.prototype.createNetwork=function(){return new E0(this)},ul.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 tt=this.network.vertexes.iterator;tt.next();){var et=tt.value;et.Vd=et.vertexes.count,et.sh=1,et.Hj=null,et.We=null}L1(this,0,a)}this.network=y;var nt=b=x.iterator;b=this.arrangementSpacing;var ot=nt.count,at=!0;et=tt=0;for(var ut=Xn(),ht=0;ht<ot+y.vertexes.count+2;ht++)ut[ht]=null;ot=0,nt.reset();for(var gt=je.alloc();nt.next();)if(ht=nt.value,this.computeBounds(ht,gt),at)at=!1,tt=gt.x+gt.width/2,et=gt.y+gt.height/2,ut[0]=new Gt(gt.x+gt.width+b.width,gt.y),ut[1]=new Gt(gt.x,gt.y+gt.height+b.height),ot=2;else{var bt=Tx(ut,ot,tt,et,gt.width,gt.height,b),Mt=ut[bt],Et=new Gt(Mt.x+gt.width+b.width,Mt.y),Bt=new Gt(Mt.x,Mt.y+gt.height+b.height);for(bt+1<ot&&ut.splice(bt+1,0,null),ut[bt]=Et,ut[bt+1]=Bt,ot++,bt=Mt.x-gt.x,Mt=Mt.y-gt.y,ht=ht.vertexes.iterator;ht.next();)Et=ht.value,Et.centerX+=bt,Et.centerY+=Mt}for(je.free(gt),ht=y.vertexes.iterator;ht.next();)nt=ht.value,bt=nt.bounds,2>ot?(tt=bt.x+bt.width/2,et=bt.y+bt.height/2,ut[0]=new Gt(bt.x+bt.width+b.width,bt.y),ut[1]=new Gt(bt.x,bt.y+bt.height+b.height),ot=2):(at=Tx(ut,ot,tt,et,bt.width,bt.height,b),gt=ut[at],Mt=new Gt(gt.x+bt.width+b.width,gt.y),bt=new Gt(gt.x,gt.y+bt.height+b.height),at+1<ot&&ut.splice(at+1,0,null),ut[at]=Mt,ut[at+1]=bt,ot++,nt.centerX=gt.x+nt.width/2,nt.centerY=gt.y+nt.height/2);for(qn(ut),b=x.iterator;b.next();){for(x=b.value,tt=x.vertexes.iterator;tt.next();)y.dh(tt.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}Dx(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},ul.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},ul.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 L1(a,y,x){if(Yb(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var tt=vy(a,y),et=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=et,L1(a,y+1,x),Dx(a,et),Nx(a,tt),y=tt.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++)Xb(a,y[x]);a.Zf=b}}function Yb(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 vy(a,y){for(var x=a.network,b=new E0(a),tt=0;tt<a.ah.length;tt++){var et=a.ah[tt];if(1<et.Vd){b.dh(et);var nt=new Bx;nt.Rs=et.Vd,nt.Ss=et.width,nt.Qs=et.height,nt.Sv=et.focus.x,nt.Tv=et.focus.y,et.We===null&&(et.We=new oi),et.We.add(nt),et.sv=et.We.count-1}else break}for(et=x.edges.iterator;et.next();){var ot=et.value;tt=ot.fromVertex,nt=ot.toVertex,tt.network===b&&nt.network===b?b.Bo(ot):tt.network===b?(ot=tt.Hj,ot===null&&(ot=new oi,tt.Hj=ot),ot.add(nt),tt.Vd--,tt.sh+=nt.sh):nt.network===b&&(ot=nt.Hj,ot===null&&(ot=new oi,nt.Hj=ot),ot.add(tt),nt.Vd--,nt.sh+=tt.sh)}for(tt=b.edges.iterator;tt.next();)et=tt.value,et.length*=Math.max(1,Ke.sqrt((et.fromVertex.sh+et.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){tt=y.value;var at=tt.Hj;if(at!==null&&0<at.count&&(nt=tt.We.M(tt.We.count-1).Rs-tt.Vd,!(0>=nt))){for(var ut=ot=0,ht=at.count-nt;ht<at.count;ht++){var gt=at.M(ht),bt=null;for(et=gt.edges.iterator;et.next();){var Mt=et.value;if(Mt.Ax(gt)===tt){bt=Mt;break}}bt!==null&&(ut+=bt.length,ot+=gt.width*gt.height)}et=tt.centerX,at=tt.centerY,ht=tt.width,gt=tt.height,bt=tt.focus,Mt=ht*gt,1>Mt&&(Mt=1),ot=Ke.sqrt((ot+Mt+ut*ut*4/(nt*nt))/Mt),nt=(ot-1)*ht/2,ot=(ot-1)*gt/2,tt.bounds=new je(et-bt.x-nt,at-bt.y-ot,ht+2*nt,gt+2*ot),tt.focus=new Gt(bt.x+nt,bt.y+ot)}}return a.network=b,x}function Nx(a,y){for(var x=a.network.vertexes.iterator;x.next();){var b=x.value;if(b.network=y,b.We!==null){var tt=b.We.M(b.sv);b.Vd=tt.Rs;var et=tt.Sv,nt=tt.Tv;b.bounds=new je(b.centerX-et,b.centerY-nt,tt.Ss,tt.Qs),b.focus=new Gt(et,nt),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Xb(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,tt=y.centerY,et=y.width,nt=y.height;y.We!==null&&0<y.We.count&&(nt=y.We.M(0),et=nt.Ss,nt=nt.Qs),et=Ke.sqrt(et*et+nt*nt)/2;for(var ot=!1,at=nt=0,ut=0,ht=y.vertexes.iterator;ht.next();){var gt=ht.value;1>=gt.Vd?at++:(ot=!0,ut++,nt+=Math.atan2(y.centerY-gt.centerY,y.centerX-gt.centerX))}if(at!==0){for(0<ut&&(nt/=ut),ut=y=0,y=ot?2*Math.PI/(at+1):2*Math.PI/at,at%2===0&&(ut=y/2),1<x.count&&x.sort(function(Mt,Et){return Mt===null||Et===null||Mt===Et?0:Et.width*Et.height-Mt.width*Mt.height}),ot=at%2===0?0:1,x=x.iterator;x.next();)if(at=x.value,!(1<at.Vd||a.isFixed(at))){for(ht=null,gt=at.edges.iterator;gt.next();){ht=gt.value;break}gt=at.width;var bt=at.height;gt=Ke.sqrt(gt*gt+bt*bt)/2,ht=et+ht.length+gt,gt=nt+(y*(ot/2>>1)+ut)*(ot%2===0?1:-1),at.centerX=b+ht*Math.cos(gt),at.centerY=tt+ht*Math.sin(gt),ot++}}}}function Tx(a,y,x,b,tt,et,nt){var ot=9e19,at=-1,ut=0;t:for(;ut<y;ut++){var ht=a[ut],gt=ht.x-x,bt=ht.y-b;if(gt=gt*gt+bt*bt,gt<ot){for(bt=ut-1;0<=bt;bt--)if(a[bt].y>ht.y&&a[bt].x-ht.x<tt+nt.width)continue t;for(bt=ut+1;bt<y;bt++)if(a[bt].x>ht.x&&a[bt].y-ht.y<et+nt.height)continue t;at=ut,ot=gt}}return at}ul.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},ul.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 tt=b.destinationEdges;tt.next();){var et=tt.value;if(et.toVertex===a){x=et;break}}if(x===null){for(tt=b.sourceEdges;tt.next();)if(et=tt.value,et.fromVertex===a){x=et;break}}x===null&&(x=this.network.Zj(a,b,null)),x.length=this.defaultCommentSpringLength}}};function M0(a,y){var x=a.bounds,b=x.x;a=x.y;var tt=x.width;x=x.height;var et=y.bounds,nt=et.x;y=et.y;var ot=et.width;return et=et.height,b+tt<nt?a>y+et?(x=b+tt-nt,a=a-y-et,Ke.sqrt(x*x+a*a)):a+x<y?(b=b+tt-nt,a=a+x-y,Ke.sqrt(b*b+a*a)):nt-(b+tt):b>nt+ot?a>y+et?(x=b-nt-ot,a=a-y-et,Ke.sqrt(x*x+a*a)):a+x<y?(b=b-nt-ot,a=a+x-y,Ke.sqrt(b*b+a*a)):b-(nt+ot):a>y+et?a-(y+et):a+x<y?y-(a+x):.1}function Dx(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,Ox(a)););a.ah=null}function Ox(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,tt=b,et=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),tt=Math.max(tt,at),x=Math.min(x,ot),et=Math.max(et,ot)}(tt=tt-b>et-x)?y.sort(function(Bt,se){return Bt===null||se===null||Bt===se?0:Bt.centerX-se.centerX}):y.sort(function(Bt,se){return Bt===null||se===null||Bt===se?0:Bt.centerY-se.centerY}),x=a.Zf;var ut=b=ot=0;for(et=0;et<y.length;et++){nt=y[et],b=nt.bounds,ot=nt.focus,at=b.x+ot.x;var ht=b.y+ot.y;b=nt.charge*a.electricalFieldX(at,ht),ut=nt.charge*a.electricalFieldY(at,ht),b+=nt.mass*a.gravitationalFieldX(at,ht),ut+=nt.mass*a.gravitationalFieldY(at,ht),nt.forceX+=b,nt.forceY+=ut;for(var gt=et+1;gt<y.length;gt++){var bt=y[gt];if(bt!==nt){b=bt.bounds,ot=bt.focus,ut=b.x+ot.x;var Mt=b.y+ot.y;if(at-ut>x||ut-at>x){if(tt)break}else if(ht-Mt>x||Mt-ht>x){if(!tt)break}else{var Et=M0(nt,bt);1>Et?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new rd),Et=b.random(),ot=b.random(),at>ut?(b=Math.abs(bt.bounds.right-nt.bounds.x),b=(1+b)*Et):at<ut?(b=Math.abs(bt.bounds.x-nt.bounds.right),b=-(1+b)*Et):(b=Math.max(bt.width,nt.width),b=(1+b)*Et-b/2),ht>Mt?(ut=Math.abs(bt.bounds.bottom-nt.bounds.y),ut=(1+ut)*ot):at<ut?(ut=Math.abs(bt.bounds.y-nt.bounds.bottom),ut=-(1+ut)*ot):(ut=Math.max(bt.height,nt.height),ut=(1+ut)*ot-ut/2)):(ot=-(nt.charge*bt.charge)/(Et*Et),b=(ut-at)/Et*ot,ut=(Mt-ht)/Et*ot),nt.forceX+=b,nt.forceY+=ut,bt.forceX-=b,bt.forceY-=ut}}}}for(tt=a.network.edges.iterator;tt.next();)ot=tt.value,x=ot.fromVertex,et=ot.toVertex,nt=x.bounds,at=x.focus,b=nt.x+at.x,nt=nt.y+at.y,ht=et.bounds,gt=et.focus,at=ht.x+gt.x,ht=ht.y+gt.y,gt=M0(x,et),1>gt?(gt=a.randomNumberGenerator,gt===null&&(a.randomNumberGenerator=gt=new rd),ot=gt.random(),gt=gt.random(),b=(b>at?1:-1)*(1+(et.width>x.width?et.width:x.width))*ot,ut=(nt>ht?1:-1)*(1+(et.height>x.height?et.height:x.height))*gt):(ot=ot.stiffness*(gt-ot.length),b=(at-b)/gt*ot,ut=(ht-nt)/gt*ot),x.forceX+=b,x.forceY+=ut,et.forceX-=b,et.forceY-=ut;for(tt=b=0;tt<y.length;tt++)x=y[tt],a.isFixed(x)?a.moveFixedVertex(x):b=Math.max(b,a.moveVertex(x)||0);return b>a.epsilonDistance*a.epsilonDistance}ul.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},ul.prototype.moveFixedVertex=function(){},ul.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},ul.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Ao,y.toSpot=Ao)}},ul.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=je.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,je.free(x)}x=je.alloc();for(var b=this.network.vertexes.iterator;b.next();){var tt=b.value;(a!==0||y!==0)&&(x.assign(tt.bounds),x.x+=a,x.y+=y,tt.bounds=x),tt.commit()}je.free(x)},ul.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},ul.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},ul.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},ul.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},ul.prototype.electricalFieldX=function(){return 0},ul.prototype.electricalFieldY=function(){return 0},ul.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},ul.prototype.gravitationalFieldX=function(){return 0},ul.prototype.gravitationalFieldY=function(){return 0},ul.prototype.isFixed=function(a){return a.isFixed},ge.Object.defineProperties(ul.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"&&_e('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())}}}),ul.className="ForceDirectedLayout";function Bx(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}Bx.className="ForceDirectedSubnet";function E0(a){Ss.call(this,a)}Nn(E0,Ss),E0.prototype.createVertex=function(){return new Xg(this)},E0.prototype.createEdge=function(){return new Jg(this)},E0.className="ForceDirectedNetwork";function Xg(a){ca.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}Nn(Xg,ca),ge.Object.defineProperties(Xg.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)}}}),Xg.className="ForceDirectedVertex";function Jg(a){lu.call(this,a),this.j=this.o=NaN}Nn(Jg,lu),ge.Object.defineProperties(Jg.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)}}}),Jg.className="ForceDirectedEdge";function rd(){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()}rd.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},rd.className="RandomNumberGenerator";function hs(a){Ds.call(this),this.kc=this.ie=25,this.K=0,this.Dk=Nl,this.Zk=nh,this.Qk=Om,this.bj=4,this.rk=Fx,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 Gt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Nn(hs,Ds),hs.prototype.cloneProtected=function(a){Ds.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},hs.prototype.qb=function(a){a.classType===hs?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:_e("Unknown enum value: "+a):Ds.prototype.qb.call(this,a)},hs.prototype.createNetwork=function(){return new yy(this)},hs.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!==Fc&&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===Fc&&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 tt=b.fromVertex,et=b.toVertex;if(!(b.valid||(tt.node===null&&tt.data===null||et.node===null&&et.data===null)&&tt.layer===et.layer)){var nt=0,ot=0,at=0,ut=0;if(b.link!==null){if(ot=b.link,ot===null)continue;var ht=tt.node;if(nt=et.node,ht===null||nt===null)continue;var gt=ot.fromNode;at=ot.toNode;for(var bt=ot.fromPort;bt!==null&&!bt.Ed();)bt=bt.panel;for(ot=ot.toPort;ot!==null&&!ot.Ed();)ot=ot.panel;if(b.rev){ut=gt;var Mt=bt;gt=at,bt=ot,at=ut,ot=Mt}var Et=tt.focus;ut=et.focus;var Bt=b.rev?et.bounds:tt.bounds;Mt=Gt.alloc(),ht!==gt?Bt.w()&>.isVisible()?gt.actualBounds.w()?(Mh(gt,bt,yr,Mt),Mt.x+=gt.actualBounds.x-Bt.x,Mt.y+=gt.actualBounds.y-Bt.y):(Mh(gt,bt,yr,Mt),Mt.w()||Mt.assign(Et)):Mt.assign(Et):Bt.w()?(Mh(gt,bt,yr,Mt),Mt.w()||Mt.assign(Et)):Mt.assign(Et),gt=b.rev?tt.bounds:et.bounds,ht=Gt.alloc(),nt!==at?gt.w()&&at.isVisible()?at.actualBounds.w()?(Mh(at,ot,yr,ht),ht.x+=at.actualBounds.x-gt.x,ht.y+=at.actualBounds.y-gt.y):(Mh(at,ot,yr,ht),ht.w()||ht.assign(ut)):ht.assign(ut):gt.w()?(Mh(at,ot,yr,ht),ht.w()||ht.assign(ut)):ht.assign(ut),this.K===90||this.K===270?(nt=Math.round((Mt.x-Et.x)/this.kc),at=Mt.x,ot=Math.round((ht.x-ut.x)/this.kc),ut=ht.x):(nt=Math.round((Mt.y-Et.y)/this.kc),at=Mt.y,ot=Math.round((ht.y-ut.y)/this.kc),ut=ht.y),Gt.free(Mt),Gt.free(ht),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(Mt=tt.layer,ht=et.layer,gt=0,Bt=b.link,Bt!==null){var se=Bt.fromPort,Jt=Bt.toPort;if(se!==null&&Jt!==null){var me=Bt.fromNode;if(bt=Bt.toNode,me!==null&&bt!==null){var Se=Nu(this,!0),Le=Nu(this,!1),Ve=this.setsPortSpots?Se:Bt.computeSpot(!0,se);Et=this.setsPortSpots?Le:Bt.computeSpot(!1,Jt);var fn=Bt.isOrthogonal;Ve.$c()&&Ve.Hf(Le)&&Et.$c()&&Et.Hf(Se)?gt=0:(Se=Bt.getLinkPoint(me,se,Ve,!0,fn,bt,Jt,Gt.alloc()),Le=Bt.getLinkDirection(me,se,Se,Ve,!0,fn,bt,Jt),Gt.free(Se),Ve.ys()||Le!==Fn(this,b,!0)?this.setsPortSpots&&me!==null&&me.ports.count===1&&b.rev&&(gt+=1):gt+=1,Ve=Bt.getLinkPoint(bt,Jt,Et,!1,fn,me,se,Gt.alloc()),Bt=Bt.getLinkDirection(bt,Jt,Ve,Et,!1,fn,me,se),Gt.free(Ve),Et.ys()||Bt!==Fn(this,b,!1)?this.setsPortSpots&&bt!==null&&bt.ports.count===1&&b.rev&&(gt+=2):gt+=2)}}}if(bt=gt,gt=bt===1||bt===3,(bt=bt===2||bt===3)&&(Et=a.createVertex(),Et.node=null,Et.Dj=1,Et.layer=Mt,Et.near=tt,a.dh(Et),tt=a.Zj(tt,Et,b.link),tt.valid=!1,tt.rev=b.rev,tt.portFromColOffset=nt,tt.portToColOffset=0,tt.portFromPos=at,tt.portToPos=0,tt=Et),Bt=1,gt&&Bt--,Mt-ht>Bt&&0<Mt){for(b.valid=!1,Et=a.createVertex(),Et.node=null,Et.Dj=2,Et.layer=Mt-1,a.dh(Et),tt=a.Zj(tt,Et,b.link),tt.valid=!0,tt.rev=b.rev,tt.portFromColOffset=bt?0:nt,tt.portToColOffset=0,tt.portFromPos=bt?0:at,tt.portToPos=0,tt=Et,Mt--;Mt-ht>Bt&&0<Mt;)Et=a.createVertex(),Et.node=null,Et.Dj=3,Et.layer=Mt-1,a.dh(Et),tt=a.Zj(tt,Et,b.link),tt.valid=!0,tt.rev=b.rev,tt.portFromColOffset=0,tt.portToColOffset=0,tt.portFromPos=0,tt.portToPos=0,tt=Et,Mt--;tt=a.Zj(Et,et,b.link),tt.valid=!gt,gt&&(Et.near=et),tt.rev=b.rev,tt.portFromColOffset=0,tt.portToColOffset=ot,tt.portFromPos=0,tt.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=ea(this,a),x=0,b=this.tc[a],et=0;et<b;et++)tt=y[et],x+=this.nodeMinColumnSpace(tt,!0),tt.column=x,x+=1,x+=this.nodeMinColumnSpace(tt,!1);this.Ra=Math.max(this.Ra,x-1),Pa(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},hs.prototype.linkMinLength=function(){return 1};function Ix(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}hs.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},hs.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 Gl(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 Yu(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 Jb(a,y,x){var b=ea(a,y),tt=a.tc[y];(a.Jn===null||a.Jn.length<tt*tt)&&(a.Jn=[]);for(var et=a.Jn,nt=0;nt<tt;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 ht=nt+1;ht<at;ht++){var gt=b[ht];gt.near===ut&>.Dj===ut.Dj||ot++}else for(ht=nt-1;ht>at;ht--)gt=b[ht],gt.near===ut&>.Dj===ut.Dj||ot++;var bt;if(0<=x)for(at=b[nt].sourceEdgesArrayAccess,ut=0;ut<at.length;ut++){var Mt=at[ut];if(Mt.valid&&Mt.fromVertex.layer!==y)for(gt=Mt.fromVertex.index,ht=Mt.portToPos,Mt=Mt.portFromPos,bt=ut+1;bt<at.length;bt++){var Et=at[bt];if(Et.valid&&Et.fromVertex.layer!==y){var Bt=Et.fromVertex.index,se=Et.portToPos;Et=Et.portFromPos,ht<se&&(gt>Bt||gt===Bt&&Mt>Et)&&ot++,se<ht&&(Bt>gt||Bt===gt&&Et>Mt)&&ot++}}}if(0>=x){for(at=b[nt].destinationEdgesArrayAccess,ut=0;ut<at.length;ut++)if(Mt=at[ut],Mt.valid&&Mt.toVertex.layer!==y)for(gt=Mt.toVertex.index,ht=Mt.portToPos,Mt=Mt.portFromPos,bt=ut+1;bt<at.length;bt++)Et=at[bt],Et.valid&&Et.toVertex.layer!==y&&(Bt=Et.toVertex.index,se=Et.portToPos,Et=Et.portFromPos,Mt<Et&&(gt>Bt||gt===Bt&&ht>se)&&ot++,Et<Mt&&(Bt>gt||Bt===gt&&se>ht)&&ot++)}for(et[nt*tt+nt]=ot,at=nt+1;at<tt;at++){var Jt=0,me=0;if(0<=x){ot=b[nt].sourceEdgesArrayAccess;var Se=b[at].sourceEdgesArrayAccess;for(ut=0;ut<ot.length;ut++)if(Mt=ot[ut],Mt.valid&&Mt.fromVertex.layer!==y)for(gt=Mt.fromVertex.index,Mt=Mt.portFromPos,bt=0;bt<Se.length;bt++)Et=Se[bt],Et.valid&&Et.fromVertex.layer!==y&&(Bt=Et.fromVertex.index,Et=Et.portFromPos,(gt<Bt||gt===Bt&&Mt<Et)&&me++,(Bt<gt||Bt===gt&&Et<Mt)&&Jt++)}if(0>=x){for(ot=b[nt].destinationEdgesArrayAccess,Se=b[at].destinationEdgesArrayAccess,ut=0;ut<ot.length;ut++)if(Mt=ot[ut],Mt.valid&&Mt.toVertex.layer!==y)for(gt=Mt.toVertex.index,ht=Mt.portToPos,bt=0;bt<Se.length;bt++)Et=Se[bt],Et.valid&&Et.toVertex.layer!==y&&(Bt=Et.toVertex.index,se=Et.portToPos,(gt<Bt||gt===Bt&&ht<se)&&me++,(Bt<gt||Bt===gt&&se<ht)&&Jt++)}et[nt*tt+at]=Jt,et[at*tt+nt]=me}}return Pa(a,y,b),et}hs.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=Jb(this,y,1),b=this.tc[y],tt=0;tt<b;tt++)for(var et=tt;et<b;et++)a+=x[tt*b+et];return a};function E(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,tt=x,et=ea(b,tt),nt=b.tc[tt],ot=0,at=0;at<nt;at++){var ut=et[at].destinationEdgesArrayAccess;if(ut!==null)for(var ht=0;ht<ut.length;ht++){var gt=ut[ht];if(gt.valid&>.toVertex.layer!==tt){var bt=gt.fromVertex.column+gt.portFromColOffset,Mt=gt.toVertex.column+gt.portToColOffset;ot+=(Math.abs(bt-Mt)+1)*Ix(gt)}}}Pa(b,tt,et),y+=ot}return y}hs.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 z(a,y,x){for(var b=ea(a,y),tt=a.tc[y],et=[],nt=0;nt<tt;nt++){var ot=b[nt],at=null;0>=x&&(at=ot.sourceEdgesArrayAccess);var ut=null;0<=x&&(ut=ot.destinationEdgesArrayAccess);var ht=0,gt=0,bt=ot.near;if(bt!==null&&bt.layer===ot.layer&&(ht+=bt.column-1,gt++),at!==null)for(bt=0;bt<at.length;bt++){ot=at[bt];var Mt=ot.fromVertex;ot.valid&&!ot.rev&&Mt.layer!==y&&(ht+=Mt.column,gt++)}if(ut!==null)for(at=0;at<ut.length;at++)ot=ut[at],bt=ot.toVertex,ot.valid&&!ot.rev&&bt.layer!==y&&(ht+=bt.column,gt++);et[nt]=gt===0?-1:ht/gt}return Pa(a,y,b),et}function it(a,y,x){for(var b=ea(a,y),tt=a.tc[y],et=[],nt=0;nt<tt;nt++){var ot=b[nt],at=null;0>=x&&(at=ot.sourceEdgesArrayAccess);var ut=null;0<=x&&(ut=ot.destinationEdgesArrayAccess);var ht=0,gt=[],bt=ot.near;if(bt!==null&&bt.layer===ot.layer&&(gt[ht]=bt.column-1,ht++),ot=void 0,at!==null)for(bt=0;bt<at.length;bt++){ot=at[bt];var Mt=ot.fromVertex;ot.valid&&!ot.rev&&Mt.layer!==y&&(gt[ht]=Mt.column+ot.portFromColOffset,ht++)}if(ut!==null)for(at=0;at<ut.length;at++)ot=ut[at],bt=ot.toVertex,ot.valid&&!ot.rev&&bt.layer!==y&&(gt[ht]=bt.column+ot.portToColOffset,ht++);ht===0?et[nt]=-1:(gt.sort(function(Et,Bt){return Et-Bt}),ut=ht>>1,et[nt]=ht&1?gt[ut]:gt[ut-1]+gt[ut]>>1)}return Pa(a,y,b),et}function st(a,y,x,b,tt,et){if(y.component===b){if(y.component=x,tt)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&&st(a,at,x,b,tt,et)}if(et)for(nt=y.sourceEdges;nt.next();)ot=nt.value,at=ot.fromVertex,ut=at.layer-y.layer,ot=a.linkMinLength(ot),ut===ot&&st(a,at,x,b,tt,et)}}function ct(a,y,x,b,tt,et){if(y.component===b){if(y.component=x,tt)for(var nt=y.destinationEdges;nt.next();)ct(a,nt.value.toVertex,x,b,tt,et);if(et)for(y=y.sourceEdges;y.next();)ct(a,y.value.fromVertex,x,b,tt,et)}}hs.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Ah:a=this.network;var y=0,x=a.vertexes.count-1,b=[];b.length=x+1;for(var tt=a.vertexes.iterator;tt.next();)tt.value.valid=!0;for(;vt(a)!==null;){for(tt=xt(a);tt!==null;)b[x]=tt,x--,tt.valid=!1,tt=xt(a);for(tt=Ot(a);tt!==null;)b[y]=tt,y++,tt.valid=!1,tt=Ot(a);tt=null;for(var et=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 ht=ot.sourceEdges;ht.next();)ht.value.fromVertex.valid&&ut++;(tt===null||et<at-ut)&&(tt=ot,et=at-ut)}}tt!==null&&(b[y]=tt,y++,tt.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 Nl: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&&Kt(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&Kt(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,tt=b.toVertex,et=tt.finish,tt.Ll<y.Ll&&x<et&&(this.network.gm(b),b.rev=!0));break;case Fc: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,tt=b[x.layer],tt===void 0?b[x.layer]=[x]:tt.push(x);for(x=y=0;x<b.length;x++)if(tt=b[x],!tt||tt.length===0)y++;else if(0<x)for(et=0;et<tt.length;et++)tt[et].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 vt(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function xt(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 Ot(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 Kt(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var b=x.value,tt=b.toVertex;tt.Ll===-1&&(b.forest=!0,Kt(a,tt))}y.finish=a.Kn,a.Kn++}hs.prototype.assignLayers=function(){switch(this.Zk){case Lh:Zt(this);break;case ih:for(var a,y=this.network.vertexes.iterator;y.next();)a=Be(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 nh:for(Zt(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&ln(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 Zt(a){for(var y=a.network.vertexes.iterator;y.next();){var x=re(a,y.value);a.Ia=Math.max(x,a.Ia)}}function re(a,y){var x=0;if(y.layer===-1){for(var b=y.destinationEdges;b.next();){var tt=b.value,et=tt.toVertex;tt=a.linkMinLength(tt),x=Math.max(x,re(a,et)+tt)}y.layer=x}else x=y.layer;return x}function Be(a,y){var x=0;if(y.layer===-1){for(var b=y.sourceEdges;b.next();){var tt=b.value,et=tt.fromVertex;tt=a.linkMinLength(tt),x=Math.max(x,Be(a,et)+tt)}y.layer=x}else x=y.layer;return x}function ln(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)ln(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var b=y.sourceEdgesArrayAccess,tt=b.length,et=0;et<tt;et++){var nt=b[et],ot=nt.fromVertex,at=nt.toVertex;nt=a.linkMinLength(nt),ot.layer-at.layer>nt&&st(a,ot,0,-1,!0,!1)}for(st(a,y,1,-1,!0,!0);y.component!==0;){for(et=0,b=1/0,ot=0,at=null,nt=a.network.vertexes.iterator;nt.next();){var ut=nt.value;if(ut.component===1){var ht=0,gt=!1,bt=ut.sourceEdgesArrayAccess;tt=bt.length;for(var Mt=0;Mt<tt;Mt++){var Et=bt[Mt],Bt=Et.fromVertex;ht+=1,Bt.component!==1&&(et+=1,Bt=Bt.layer-ut.layer,Et=a.linkMinLength(Et),b=Math.min(b,Bt-Et))}for(bt=ut.destinationEdgesArrayAccess,tt=bt.length,Mt=0;Mt<tt;Mt++)Et=bt[Mt].toVertex,--ht,Et.component!==1?--et:gt=!0;(at===null||ht<ot)&&!gt&&(at=ut,ot=ht)}}if(0<et){for(x.reset();x.next();)tt=x.value,tt.component===1&&(tt.layer+=b);y.component=0}else at.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(st(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,tt=1/0,et=0,ot=null,at=a.network.vertexes.iterator;at.next();)if(nt=at.value,nt.component===1){for(ut=0,ht=!1,bt=nt.sourceEdgesArrayAccess,gt=bt.length,Mt=0;Mt<gt;Mt++)Et=bt[Mt].fromVertex,ut+=1,Et.component!==1?b+=1:ht=!0;for(bt=nt.destinationEdgesArrayAccess,gt=bt.length,Mt=0;Mt<gt;Mt++)Et=bt[Mt],Bt=Et.toVertex,--ut,Bt.component!==1&&(--b,Bt=nt.layer-Bt.layer,Et=a.linkMinLength(Et),tt=Math.min(tt,Bt-Et));(ot===null||ut>et)&&!ht&&(ot=nt,et=ut)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=tt);y.component=0}else ot.component=0}}}function Fn(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}hs.prototype.initializeIndices=function(){switch(this.Qk){default:case $b: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 Om: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&&ei(this,x);break;case Qb: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&&hr(this,x)}};function ei(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 tt=y[b],et=y[b+1];tt.portFromColOffset>et.portFromColOffset&&(x=!0,y[b]=et,y[b+1]=tt)}}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.toVertex,b.index===-1&&ei(a,b))}function hr(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 tt=y[x],et=y[x+1];tt.portToColOffset>et.portToColOffset&&(b=!0,y[x]=et,y[x+1]=tt)}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.fromVertex,b.index===-1&&hr(a,b))}hs.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Gl(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)Gr(this,b,1),$i(this,b,1);var tt=this.countCrossings();for(tt<a&&(a=tt,y=Gl(this)),b=this.Ia;0<=b;b--)Gr(this,b,-1),$i(this,b,-1);tt=this.countCrossings(),tt<a&&(a=tt,y=Gl(this))}for(Yu(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)Gr(this,b,0),$i(this,b,0);for(tt=this.countCrossings(),tt<a&&(a=tt,y=Gl(this)),b=this.Ia;0<=b;b--)Gr(this,b,0),$i(this,b,0);tt=this.countCrossings(),tt<a&&(a=tt,y=Gl(this))}Yu(this,y);var et,nt,ot;switch(this.rk){case t2:break;case e2:for(ot=a+1;(b=this.countCrossings())<ot;)for(ot=b,x=this.Ia;0<=x;x--)for(nt=0;nt<=x;nt++){for(et=!0;et;)for(et=!1,b=x;b>=nt;b--)et=$i(this,b,-1)||et;for(tt=this.countCrossings(),tt>=a?Yu(this,y):(a=tt,y=Gl(this)),et=!0;et;)for(et=!1,b=x;b>=nt;b--)et=$i(this,b,1)||et;for(tt=this.countCrossings(),tt>=a?Yu(this,y):(a=tt,y=Gl(this)),et=!0;et;)for(et=!1,b=nt;b<=x;b++)et=$i(this,b,1)||et;for(tt>=a?Yu(this,y):(a=tt,y=Gl(this)),et=!0;et;)for(et=!1,b=nt;b<=x;b++)et=$i(this,b,-1)||et;for(tt>=a?Yu(this,y):(a=tt,y=Gl(this)),et=!0;et;)for(et=!1,b=x;b>=nt;b--)et=$i(this,b,0)||et;for(tt>=a?Yu(this,y):(a=tt,y=Gl(this)),et=!0;et;)for(et=!1,b=nt;b<=x;b++)et=$i(this,b,0)||et;tt>=a?Yu(this,y):(a=tt,y=Gl(this))}break;default:case Fx:for(x=this.Ia,nt=0,ot=a+1;(b=this.countCrossings())<ot;){for(ot=b,et=!0;et;)for(et=!1,b=x;b>=nt;b--)et=$i(this,b,-1)||et;for(tt=this.countCrossings(),tt>=a?Yu(this,y):(a=tt,y=Gl(this)),et=!0;et;)for(et=!1,b=x;b>=nt;b--)et=$i(this,b,1)||et;for(tt=this.countCrossings(),tt>=a?Yu(this,y):(a=tt,y=Gl(this)),et=!0;et;)for(et=!1,b=nt;b<=x;b++)et=$i(this,b,1)||et;for(tt>=a?Yu(this,y):(a=tt,y=Gl(this)),et=!0;et;)for(et=!1,b=nt;b<=x;b++)et=$i(this,b,-1)||et;for(tt>=a?Yu(this,y):(a=tt,y=Gl(this)),et=!0;et;)for(et=!1,b=x;b>=nt;b--)et=$i(this,b,0)||et;for(tt>=a?Yu(this,y):(a=tt,y=Gl(this)),et=!0;et;)for(et=!1,b=nt;b<=x;b++)et=$i(this,b,0)||et;tt>=a?Yu(this,y):(a=tt,y=Gl(this))}}Yu(this,y)};function Gr(a,y,x){var b=ea(a,y),tt=a.tc[y],et=it(a,y,x),nt=z(a,y,x);for(x=0;x<tt;x++)nt[x]===-1&&(nt[x]=b[x].column),et[x]===-1&&(et[x]=b[x].column);for(var ot=!0,at;ot;)for(ot=!1,x=0;x<tt-1;x++)(et[x+1]<et[x]||et[x+1]===et[x]&&nt[x+1]<nt[x])&&(ot=!0,at=et[x],et[x]=et[x+1],et[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=et=0;x<tt;x++)at=b[x],at.index=x,et+=a.nodeMinColumnSpace(at,!0),at.column=et,et+=1,et+=a.nodeMinColumnSpace(at,!1);Pa(a,y,b)}function $i(a,y,x){var b=ea(a,y),tt=a.tc[y];x=Jb(a,y,x);var et,nt=[];for(et=0;et<tt;et++)nt[et]=-1;var ot=[];for(et=0;et<tt;et++)ot[et]=-1;for(var at=!1,ut=!0;ut;)for(ut=!1,et=0;et<tt-1;et++){var ht=x[b[et].index*tt+b[et+1].index],gt=x[b[et+1].index*tt+b[et].index],bt=0,Mt=0,Et=b[et].column,Bt=b[et+1].column,se=a.nodeMinColumnSpace(b[et],!0),Jt=a.nodeMinColumnSpace(b[et],!1),me=a.nodeMinColumnSpace(b[et+1],!0),Se=a.nodeMinColumnSpace(b[et+1],!1);se=Et-se+me,Jt=Bt-Jt+Se;var Le=b[et].sourceEdges.iterator;for(Le.reset();Le.next();)if(me=Le.value,Se=me.fromVertex,me.valid&&Se.layer===y){for(me=0;b[me]!==Se;)me++;me<et&&(bt+=2*(et-me),Mt+=2*(et+1-me)),me===et+1&&(bt+=1),me>et+1&&(bt+=4*(me-et),Mt+=4*(me-(et+1)))}for(Le=b[et].destinationEdges.iterator,Le.reset();Le.next();)if(me=Le.value,Se=me.toVertex,me.valid&&Se.layer===y){for(me=0;b[me]!==Se;)me++;me===et+1&&(Mt+=1)}for(Le=b[et+1].sourceEdges.iterator,Le.reset();Le.next();)if(me=Le.value,Se=me.fromVertex,me.valid&&Se.layer===y){for(me=0;b[me]!==Se;)me++;me<et&&(bt+=2*(et+1-me),Mt+=2*(et-me)),me===et&&(Mt+=1),me>et+1&&(bt+=4*(me-(et+1)),Mt+=4*(me-et))}for(Le=b[et+1].destinationEdges.iterator,Le.reset();Le.next();)if(me=Le.value,Se=me.toVertex,me.valid&&Se.layer===y){for(me=0;b[me]!==Se;)me++;me===et&&(bt+=1)}me=Se=0,Le=nt[b[et].index];var Ve=ot[b[et].index],fn=nt[b[et+1].index],nr=ot[b[et+1].index];Le!==-1&&(Se+=Math.abs(Le-Et),me+=Math.abs(Le-Jt)),Ve!==-1&&(Se+=Math.abs(Ve-Et),me+=Math.abs(Ve-Jt)),fn!==-1&&(Se+=Math.abs(fn-Bt),me+=Math.abs(fn-se)),nr!==-1&&(Se+=Math.abs(nr-Bt),me+=Math.abs(nr-se)),(Mt<bt-.5||Mt===bt&><ht-.5||Mt===bt&>===ht&&me<Se-.5)&&(ut=at=!0,b[et].column=Jt,b[et+1].column=se,ht=b[et],b[et]=b[et+1],b[et+1]=ht)}for(et=0;et<tt;et++)b[et].index=et;return Pa(a,y,b),at}hs.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&bw)!==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,tt=this.network.vertexes.iterator;tt.next();){var et=tt.value;y=et.layer,b=et.column,et=this.nodeMinColumnSpace(et,!1),x[y]=Math.max(x[y],b+et)}for(tt.reset();tt.next();)et=tt.value,y=et.layer,b=et.column,et.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=Nr(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Nr(this,y,-1)||x;x=Nr(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)zr(this,y,1);for(y=this.Md-1;0<=y;y--)zr(this,y,-1);zr(this,this.Md,0)}if(a&&(Go(this,-1),Go(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Nr(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Nr(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Nr(this,y,0)||x}}else La(this)};function Nr(a,y,x){for(var b=!1;eo(a,y,x);)b=!0;return b}function eo(a,y,x){var b,tt=ea(a,y),et=a.tc[y],nt=z(a,y,-1);if(0<x)for(b=0;b<et;b++)nt[b]=-1;var ot=z(a,y,1);if(0>x)for(b=0;b<et;b++)ot[b]=-1;for(var at=!1,ut=!0;ut;)for(ut=!1,b=0;b<et;b++){var ht=tt[b].column,gt=a.nodeMinColumnSpace(tt[b],!0),bt=a.nodeMinColumnSpace(tt[b],!1),Mt=0;0>b-1||ht-tt[b-1].column-1>gt+a.nodeMinColumnSpace(tt[b-1],!1)?Mt=ht-1:Mt=ht,gt=b+1>=et||tt[b+1].column-ht-1>bt+a.nodeMinColumnSpace(tt[b+1],!0)?ht+1:ht;var Et=bt=0,Bt=0;if(0>=x)for(var se=tt[b].sourceEdges.iterator;se.next();){var Jt=se.value,me=Jt.fromVertex;if(Jt.valid&&me.layer!==y){var Se=Ix(Jt),Le=Jt.portFromColOffset;Jt=Jt.portToColOffset,me=me.column,bt+=(Math.abs(ht+Jt-(me+Le))+1)*Se,Et+=(Math.abs(Mt+Jt-(me+Le))+1)*Se,Bt+=(Math.abs(gt+Jt-(me+Le))+1)*Se}}if(0<=x)for(se=tt[b].destinationEdges.iterator;se.next();)Jt=se.value,me=Jt.toVertex,Jt.valid&&me.layer!==y&&(Se=Ix(Jt),Le=Jt.portFromColOffset,Jt=Jt.portToColOffset,me=me.column,bt+=(Math.abs(ht+Le-(me+Jt))+1)*Se,Et+=(Math.abs(Mt+Le-(me+Jt))+1)*Se,Bt+=(Math.abs(gt+Le-(me+Jt))+1)*Se);Jt=Le=Se=0,se=nt[tt[b].index],me=ot[tt[b].index],se!==-1&&(Se+=Math.abs(se-ht),Le+=Math.abs(se-Mt),Jt+=Math.abs(se-gt)),me!==-1&&(Se+=Math.abs(me-ht),Le+=Math.abs(me-Mt),Jt+=Math.abs(me-gt)),Et<bt||Et===bt&&Le<Se?(ut=at=!0,tt[b].column=Mt):(Bt<bt||Bt===bt&&Jt<Se)&&(ut=at=!0,tt[b].column=gt)}return Pa(a,y,tt),a.normalize(),at}function zr(a,y,x){var b=ea(a,y),tt=a.tc[y],et=it(a,y,x),nt=[];for(x=0;x<tt;x++)nt[x]=et[x];for(et=!0;et;)for(et=!1,x=0;x<tt;x++){var ot=b[x].column,at=a.nodeMinColumnSpace(b[x],!0),ut=a.nodeMinColumnSpace(b[x],!1),ht=0;if(nt[x]===-1)if(x===0&&x===tt-1)ht=ot;else if(x===0){var gt=b[x+1].column;gt-ot===ut+a.nodeMinColumnSpace(b[x+1],!0)?ht=ot-1:ht=ot}else x===tt-1?(gt=b[x-1].column,ht=ot-gt===at+a.nodeMinColumnSpace(b[x-1],!1)?ot+1:ot):(gt=b[x-1].column,at=gt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,gt=b[x+1].column,ut=gt-a.nodeMinColumnSpace(b[x+1],!0)-ut-1,ht=(at+ut)/2|0);else x===0&&x===tt-1?ht=nt[x]:x===0?(gt=b[x+1].column,ut=gt-a.nodeMinColumnSpace(b[x+1],!0)-ut-1,ht=Math.min(nt[x],ut)):x===tt-1?(gt=b[x-1].column,at=gt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,ht=Math.max(nt[x],at)):(gt=b[x-1].column,at=gt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,gt=b[x+1].column,ut=gt-a.nodeMinColumnSpace(b[x+1],!0)-ut-1,at<nt[x]&&nt[x]<ut?ht=nt[x]:at>=nt[x]?ht=at:ut<=nt[x]&&(ht=ut));ht!==ot&&(et=!0,b[x].column=ht)}Pa(a,y,b),a.normalize()}function _o(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var tt=b.value,et=a.nodeMinColumnSpace(tt,!0),nt=a.nodeMinColumnSpace(tt,!1);if(tt.column-et<=y&&tt.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 ns(a,y){var x=y+1,b,tt=[],et=[];for(b=0;b<=a.Ia;b++)tt[b]=!1,et[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&&(tt[b.layer]=!0),ot<=x&&at>=x&&(et[b.layer]=!0)}for(ot=!0,x=!1,b=0;b<=a.Ia;b++)ot=ot&&!(tt[b]&&et[b]);if(ot)for(nt.reset();nt.next();)a=nt.value,a.column>y&&(--a.column,x=!0);return x}function Go(a,y){for(var x=0;x<=a.Ra;x++)for(;_o(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;ns(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var tt=Gl(a),et=E(a);for(b=et+1;et<b;){b=et,Gs(a,x,1);var nt=E(a);nt>et?Yu(a,tt):nt<et&&(et=nt,tt=Gl(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(tt=Gl(a),et=E(a),b=et+1;et<b;)b=et,Gs(a,x,-1),nt=E(a),nt>et?Yu(a,tt):nt<et&&(et=nt,tt=Gl(a));a.normalize()}function Gs(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 tt=b.value;tt.column-a.nodeMinColumnSpace(tt,!0)<=y&&(tt.component=a.le)}if(0>x)for(b.reset();b.next();)tt=b.value,tt.column+a.nodeMinColumnSpace(tt,!1)>=y&&(tt.component=a.le);for(a.le++,b.reset();b.next();)y=b.value,y.component===-1&&(ct(a,y,a.le,-1,!0,!0),a.le++);var et;for(y=[],et=0;et<a.le*a.le;et++)y[et]=!1;for(tt=[],et=0;et<(a.Ia+1)*(a.Ra+1);et++)tt[et]=-1;for(b.reset();b.next();){et=b.value;for(var nt=et.layer,ot=Math.max(0,et.column-a.nodeMinColumnSpace(et,!0)),at=Math.min(a.Ra,et.column+a.nodeMinColumnSpace(et,!1));ot<=at;ot++)tt[nt*(a.Ra+1)+ot]=et.component}for(et=0;et<=a.Ia;et++){if(0<x)for(nt=0;nt<a.Ra;nt++)tt[et*(a.Ra+1)+nt]!==-1&&tt[et*(a.Ra+1)+nt+1]!==-1&&tt[et*(a.Ra+1)+nt]!==tt[et*(a.Ra+1)+nt+1]&&(y[tt[et*(a.Ra+1)+nt]*a.le+tt[et*(a.Ra+1)+nt+1]]=!0);if(0>x)for(nt=a.Ra;0<nt;nt--)tt[et*(a.Ra+1)+nt]!==-1&&tt[et*(a.Ra+1)+nt-1]!==-1&&tt[et*(a.Ra+1)+nt]!==tt[et*(a.Ra+1)+nt-1]&&(y[tt[et*(a.Ra+1)+nt]*a.le+tt[et*(a.Ra+1)+nt-1]]=!0)}for(tt=[],et=0;et<a.le;et++)tt[et]=!0;for(nt=[],nt.push(0);nt.length!==0;)if(at=nt[nt.length-1],nt.pop(),tt[at])for(tt[at]=!1,et=0;et<a.le;et++)y[at*a.le+et]&&nt.splice(0,0,et);if(0<x)for(b.reset();b.next();)a=b.value,tt[a.component]&&--a.column;if(0>x)for(b.reset();b.next();)x=b.value,tt[x.component]&&(x.column+=1)}function La(a){for(var y=Xn(),x=a.fl.length,b=0;b<=x;b++)y[b]=[];for(b=a.network.vertexes.iterator;b.next();){var tt=b.value;y[x-tt.layer][tt.index]=tt}x=new Ce,uo(y,x);var et=null,nt=null,ot=null,at=null,ut=(a.ve&1)!==0,ht=(a.ve&2)!==0,gt=(a.ve&4)!==0,bt=(a.ve&8)!==0;for(ut&&(a.verticalAlignment(y,x,!0),et=qc(a,y,!0,!1)),y.reverse(),gt&&(a.verticalAlignment(y,x,!1),ot=qc(a,y,!1,!1)),b=mi(y),tt=b.next();!tt.done;tt=b.next())tt.value.reverse();bt&&(a.verticalAlignment(y,x,!1),at=qc(a,y,!1,!0)),y.reverse(),ht&&(a.verticalAlignment(y,x,!0),nt=qc(a,y,!0,!0)),qn(y),a.u(et,nt,ot,at),a.network.vertexes.each(function(Mt){var Et=Xn();ut&&Et.push(et.get(Mt)),ht&&Et.push(nt.get(Mt)),gt&&Et.push(ot.get(Mt)),bt&&Et.push(at.get(Mt)),Et.sort(function(se,Jt){return se-Jt});var Bt=Et.length;Bt=(Et[Math.floor((Bt-1)/2)]+Et[Math.ceil((Bt-1)/2)])/2,qn(Et),Mt.zc=Bt})}function uo(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var tt=0,et=0,nt=a[b],ot=a[b+1],at=0;et<ot.length;at++){var ut=ot[at];t:{if(ut.node===null){var ht=n2(ut);if(0<ht.length){ht=ht[0].node===null;break t}}ht=!1}var gt=ht;if(at===ot.length-1||gt){for(ht=nt.length-1,gt&&(ht=n2(ut)[0].index);et<=at;){if(ut=ot[et],!ut.bo){gt=[];for(var bt=mi(ut.sourceEdgesArrayAccess),Mt=bt.next();!Mt.done;Mt=bt.next())Mt=Mt.value,Mt.valid&>.push(Mt);ut.bo=gt}for(ut=mi(ut.bo),gt=ut.next();!gt.done;gt=ut.next())gt=gt.value,bt=gt.fromVertex.index,(bt<tt||bt>ht)&&y.add(gt);et++}tt=ht}}}hs.prototype.verticalAlignment=function(a,y,x){$c(a),a=mi(a);for(var b=a.next();!b.done;b=a.next()){var tt=-1;b=mi(b.value);for(var et=b.next();!et.done;et=b.next()){et=et.value;var nt=x?n2(et):ww(et),ot=nt.length;if(0<ot){nt.sort(function(gt,bt){return gt.vi-bt.vi});var at=(ot-1)/2;for(ot=Math.floor(at),at=Math.ceil(at);ot<=at;ot++)if(et.align===et){var ut=nt[ot],ht=void 0;ht=x?Rx(ut,et):Rx(et,ut),!y.contains(ht)&&tt<ut.vi&&(ut.align=et,et.root=ut.root,et.align=ut.root,tt=ut.vi)}}}}};function $c(a){for(var y=0;y<a.length;y++)for(var x=a[y],b=0;b<x.length;b++){var tt=x[b];tt.root=tt,tt.align=tt,tt.Tz=y,tt.vi=b}}function qc(a,y,x,b){for(var tt=a.K===90||a.K===270,et=mi(y),nt=et.next();!nt.done;nt=et.next()){var ot=mi(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,et=mi(y),ot=et.next();!ot.done;ot=et.next()){ot=mi(ot.value);for(var at=ot.next();!at.done;at=ot.next())if(at=at.value,at.root===at){for(var ut=0,ht=at;ht.align!==at;){var gt=ht.align,bt=nt?ht.width:ht.height,Mt=nt?gt.width:gt.height;if(x){var Et=Rx(ht,gt),Bt=Et.portFromPos,se=Et.portToPos;Et.link!==null&&(ht.node&&ht.node!==Et.link.fromNode&&(Bt=nt?ht.focusX:ht.focusY),gt.node&>.node!==Et.link.toNode&&(se=nt?gt.focusX:gt.focusY))}else Et=Rx(gt,ht),Bt=Et.portToPos,se=Et.portFromPos,Et.link!==null&&(ht.node&&ht.node!==Et.link.toNode&&(Bt=nt?ht.focusX:ht.focusY),gt.node&>.node!==Et.link.fromNode&&(se=nt?gt.focusX:gt.focusY));bt=b?ht.qg+(bt-Bt)-(Mt-se):ht.qg+Bt-se,gt.qg=bt,ut=Math.min(ut,bt),ht=ht.align}ht=at;do ht.qg=ht.qg-ut,ht=ht.align;while(ht!==at)}}for(x=mi(y),nt=x.next();!nt.done;nt=x.next())for(et=mi(nt.value),nt=et.next();!nt.done;nt=et.next())nt=nt.value,nt.root===nt&&th(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(et=y[nt][ot];et.align!==et.root;)et=et.align,nt++,0<et.vi&&(ot=Yl(et,y),ot.sd.shift=Math.min(ot.sd.shift,et.sd.shift+et.zc+et.qg-(ot.zc+ot.qg+(tt?ot.width:ot.height)+a.columnSpacing)));ot=et.vi+1}while(nt<y.length&&ot<y[nt].length&&et.sd===y[nt][ot].sd)}for(a=new or,y=mi(y),nt=y.next();!nt.done;nt=y.next())for(x=mi(nt.value),nt=x.next();!nt.done;nt=x.next())nt=nt.value,nt.zc=nt.zc+nt.sd.shift+nt.qg,et=tt?nt.width:nt.height,a.add(nt,b?-nt.zc-et:nt.zc);return a}function th(a,y,x){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var tt=Yl(b,x),et=tt.root;th(a,et,x),y.sd===y&&(y.sd=et.sd);var nt=a.K===90||a.K===270?tt.width:tt.height;y.sd===et.sd&&(y.zc=Math.max(y.zc,et.zc+tt.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 Yl(a,y){var x=a.Tz;return a=a.vi,1>a&&_e("Could not determine previous vertex in layer"),y[x][a-1]}hs.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=Xn(),tt=Xn(),et=1/0,nt=0;4>nt;nt++)if(y[nt]){var ot=eh(this,y[nt],b,tt,nt);ot<et&&(x=nt,et=ot)}for(et={},nt=0;4>nt;et={delta:et.delta},nt++)y[nt]&&(et.delta=nt===0||nt===2?b[x]-b[nt]:tt[x]-tt[nt],et.delta!==0&&y[nt].each(function(at){return function(ut){ut.value+=at.delta}}(et)));qn(b),qn(tt)};function eh(a,y,x,b,tt){if(!y||y.count===0)return x[tt]=0,b[tt]=0,1/0;var et=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<et&&(et=ot),ot+at>nt&&(nt=ot+at)}),x[tt]=et,b[tt]=nt,nt-et}hs.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=Nu(this,!0),y=Nu(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 Nu(a,y){return a.K===270?y?fs:vs:a.K===90?y?vs:fs:a.K===180?y?gs:is:y?is:gs}hs.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 tt=x;0>=this.he[b]+this.Ld[b]&&(tt=0),0<b&&(y+=tt/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+=tt/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 et=1/0,nt=tt=1/0,ot=-1/0;a.next();){var at=a.value,ut=at.layer,ht=at.column|0;b?(nt=y.x+this.kc*ht,ut=this.Kd[ut]):(nt=this.Kd[ut],ut=y.y+this.kc*ht),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),et=Math.min(at.x,et),tt=Math.min(at.y,tt),b?(nt=et,ot=Math.max(ot,at.bounds.right)):(nt=tt,ot=Math.max(ot,at.bounds.bottom))}for(this.xw=ot-nt,et=y.x-et,y=y.y-tt,this.Rf=new Gt(x&&b?0:et,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=et,x.y+=y,x.commit()},hs.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 je(0,0,x,Math.abs(this.Ta[0]))):y.push(new je(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new je(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new je(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new je(0,0,Math.abs(this.Ta[0]),x)):y.push(new je(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new je(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new je(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},hs.prototype.commitLayers=function(){},hs.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,tt=b.fromNode,et=b.toNode,nt=b.fromPort,ot=b.toPort;if(tt!==null){var at=tt.findVisibleNode();at!==null&&at!==tt&&(tt=at,nt=at.port)}et!==null&&(at=et.findVisibleNode(),at!==null&&at!==et&&(et=at,ot=at.port));var ut=y.computeSpot(!0,nt);at=y.computeSpot(!1,ot);var ht=x.fromVertex,gt=x.toVertex;if(x.valid)y.curve===Lu&&y.pointsCount===4&&(ht.column===gt.column&&this.alignOption===0?(x=y.getLinkPoint(tt,nt,ut,!0,!1,et,ot),ot=y.getLinkPoint(et,ot,at,!1,!1,tt,nt),x.w()||x.set(tt.actualBounds.center),ot.w()||ot.set(et.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===Ji&&(b=!0),ot!==null&&at===Ji&&(x=!0),(b||x)&&(at=null,b&&(at=y.getLinkPointFromPoint(tt,nt,nt.ga(yr),y.i(3),!0),at.w()||at.set(tt.actualBounds.center),y.L(0,at.x,at.y)),tt=null,x&&(tt=y.getLinkPointFromPoint(et,ot,ot.ga(yr),y.i(0),!1),tt.w()||tt.set(et.actualBounds.center),y.L(3,tt.x,tt.y)),at&&(et=y.i(2),y.L(1,(2*at.x+et.x)/3,(2*at.y+et.y)/3)),tt&&(et=y.i(1),y.L(2,(2*tt.x+et.x)/3,(2*tt.y+et.y)/3))))),y.zf();else if(ht.layer===gt.layer)y.zf();else{var bt=!1,Mt=!1,Et=this.ie,Bt=y.firstPickIndex+1;if(y.isOrthogonal){Mt=!0;var se=y.pointsCount;4<se&&y.points.removeRange(2,se-3)}else if(y.curve===Lu)bt=!0,se=y.pointsCount,4<se&&y.points.removeRange(2,se-3),se===4&&(Bt=2);else{se=y.pointsCount;var Jt=ut===Ji,me=at===Ji;2<se&&Jt&&me?y.points.removeRange(1,se-2):3<se&&Jt&&!me?y.points.removeRange(1,se-3):3<se&&!Jt&&me?y.points.removeRange(2,se-2):4<se&&!Jt&&!me&&y.points.removeRange(2,se-3)}if(x.rev){for(;gt!==null&&ht!==gt;){var Se=se=null;for(Jt=gt.sourceEdges.iterator;Jt.next()&&(me=Jt.value,me.link!==x.link||(se=me.fromVertex,Se=me.toVertex,se.node!==null)););if(se===null)break;if(se!==ht){Jt=y.i(Bt-1).x,me=y.i(Bt-1).y;var Le=se.centerX,Ve=se.centerY;if(Mt)this.K===180||this.K===0?Bt===y.firstPickIndex+1?(y.m(Bt++,Jt,me),y.m(Bt++,Jt,Ve)):(Se!==null?Se.centerY:me)!==Ve&&(Se=this.Ta[se.layer-1]+this.Rf.x,y.m(Bt++,Se,me),y.m(Bt++,Se,Ve)):Bt===y.firstPickIndex+1?(y.m(Bt++,Jt,me),y.m(Bt++,Le,me)):(Se!==null?Se.centerX:Jt)!==Le&&(Se=this.Ta[se.layer-1]+this.Rf.y,y.m(Bt++,Jt,Se),y.m(Bt++,Le,Se));else if(Bt===y.firstPickIndex+1){Se=Math.max(10,this.he[gt.layer]);var fn=Math.max(10,this.Ld[gt.layer]);if(bt)this.K===180?Le<=gt.bounds.x?(gt=gt.bounds.x,y.m(Bt++,gt-Se,Ve),y.m(Bt++,gt,Ve),y.m(Bt++,gt+fn,Ve)):(y.m(Bt++,Le-Se,Ve),y.m(Bt++,Le,Ve),y.m(Bt++,Le+fn,Ve)):this.K===90?Ve>=gt.bounds.bottom?(gt=gt.bounds.y+gt.bounds.height,y.m(Bt++,Le,gt+fn),y.m(Bt++,Le,gt),y.m(Bt++,Le,gt-Se)):(y.m(Bt++,Le,Ve+fn),y.m(Bt++,Le,Ve),y.m(Bt++,Le,Ve-Se)):this.K===270?Ve<=gt.bounds.y?(gt=gt.bounds.y,y.m(Bt++,Le,gt-Se),y.m(Bt++,Le,gt),y.m(Bt++,Le,gt+fn)):(y.m(Bt++,Le,Ve-Se),y.m(Bt++,Le,Ve),y.m(Bt++,Le,Ve+fn)):this.K===0&&(Le>=gt.bounds.right?(gt=gt.bounds.x+gt.bounds.width,y.m(Bt++,gt+fn,Ve),y.m(Bt++,gt,Ve),y.m(Bt++,gt-Se,Ve)):(y.m(Bt++,Le+fn,Ve),y.m(Bt++,Le,Ve),y.m(Bt++,Le-Se,Ve)));else{y.m(Bt++,Jt,me);var nr=0;this.K===180||this.K===0?((this.K===180?Le>=gt.bounds.right:Le<=gt.bounds.x)&&(nr=(this.K===0?-Se:fn)/2),y.m(Bt++,Jt+nr,Ve)):((this.K===270?Ve>=gt.bounds.bottom:Ve<=gt.bounds.y)&&(nr=(this.K===90?-Se:fn)/2),y.m(Bt++,Le,me+nr)),y.m(Bt++,Le,Ve)}}else Se=Math.max(10,this.he[se.layer]),fn=Math.max(10,this.Ld[se.layer]),bt?this.K===180?(y.m(Bt++,Le-Se-Et,Ve),y.m(Bt++,Math.min(Le-Se+Et/2,Le),Ve),y.m(Bt++,Le,Ve),y.m(Bt++,Le,Ve),y.m(Bt++,Math.max(Le+fn-Et/2,Le),Ve),y.m(Bt++,Le+fn+Et,Ve)):this.K===90?(y.m(Bt++,Le,Ve+fn+Et),y.m(Bt++,Le,Math.max(Ve+fn-Et/2,Ve)),y.m(Bt++,Le,Ve),y.m(Bt++,Le,Ve),y.m(Bt++,Le,Math.min(Ve-Se+Et/2,Ve)),y.m(Bt++,Le,Ve-Se-Et)):this.K===270?(y.m(Bt++,Le,Ve-Se-Et),y.m(Bt++,Le,Math.min(Ve-Se+Et/2,Ve)),y.m(Bt++,Le,Ve),y.m(Bt++,Le,Ve),y.m(Bt++,Le,Math.max(Ve+fn-Et/2,Ve)),y.m(Bt++,Le,Ve+fn+Et)):(y.m(Bt++,Le+fn+Et,Ve),y.m(Bt++,Math.max(Le+fn-Et/2,Le),Ve),y.m(Bt++,Le,Ve),y.m(Bt++,Le,Ve),y.m(Bt++,Math.min(Le-Se+Et/2,Le),Ve),y.m(Bt++,Le-Se-Et,Ve)):y.m(Bt++,Le,Ve)}gt=se}(ot===null||ut!==Ji||Mt)&&(Jt=y.i(Bt-1).x,me=y.i(Bt-1).y,Le=y.i(Bt).x,Ve=y.i(Bt).y,Mt?(Et=this.Ld[ht.layer],this.K===180||this.K===0?(Mt=me,Mt>=ht.bounds.y&&Mt<=ht.bounds.bottom&&(this.K===180?Le>=ht.bounds.x:Le<=ht.bounds.right)&&(gt=ht.centerX+(this.K===180?-Et:Et),Mt<ht.bounds.y+ht.bounds.height/2?Mt=ht.bounds.y-this.kc/2:Mt=ht.bounds.bottom+this.kc/2,y.m(Bt++,gt,me),y.m(Bt++,gt,Mt)),y.m(Bt++,Le,Mt)):(Mt=Jt,Mt>=ht.bounds.x&&Mt<=ht.bounds.right&&(this.K===270?Ve>=ht.bounds.y:Ve<=ht.bounds.bottom)&&(gt=ht.centerY+(this.K===270?-Et:Et),Mt<ht.bounds.x+ht.bounds.width/2?Mt=ht.bounds.x-this.kc/2:Mt=ht.bounds.right+this.kc/2,y.m(Bt++,Jt,gt),y.m(Bt++,Mt,gt)),y.m(Bt++,Mt,Ve)),y.m(Bt++,Le,Ve)):bt?(Se=Math.max(10,this.he[ht.layer]),fn=Math.max(10,this.Ld[ht.layer]),this.K===180&&Le>=ht.bounds.x?(gt=ht.bounds.x+ht.bounds.width,y.L(Bt-2,gt,me),y.L(Bt-1,gt+fn,me)):this.K===90&&Ve<=ht.bounds.bottom?(gt=ht.bounds.y,y.L(Bt-2,Jt,gt),y.L(Bt-1,Jt,gt-Se)):this.K===270&&Ve>=ht.bounds.y?(gt=ht.bounds.y+ht.bounds.height,y.L(Bt-2,Jt,gt),y.L(Bt-1,Jt,gt+fn)):this.K===0&&Le<=ht.bounds.right&&(gt=ht.bounds.x,y.L(Bt-2,gt,me),y.L(Bt-1,gt-Se,me))):(Se=Math.max(10,this.he[ht.layer]),fn=Math.max(10,this.Ld[ht.layer]),Mt=0,this.K===180||this.K===0?((this.K===180?Le<=ht.bounds.x:Le>=ht.bounds.right)&&(Mt=(this.K===0?fn:-Se)/2),y.m(Bt++,Le+Mt,me)):((this.K===270?Ve<=ht.bounds.y:Ve>=ht.bounds.bottom)&&(Mt=(this.K===90?fn:-Se)/2),y.m(Bt++,Jt,Ve+Mt)),y.m(Bt++,Le,Ve)))}else{for(;ht!==null&&ht!==gt;){for(Se=se=null,ht=ht.destinationEdges.iterator;ht.next()&&(Jt=ht.value,Jt.link!==x.link||(se=Jt.toVertex,Se=Jt.fromVertex,Se.node!==null&&(Se=null),se.node!==null)););if(se===null)break;se!==gt&&(Jt=y.i(Bt-1).x,me=y.i(Bt-1).y,Le=se.centerX,Ve=se.centerY,Mt?this.K===180||this.K===0?(Se!==null?Se.centerY:me)!==Ve&&(Se=this.Ta[se.layer]+this.Rf.x,Bt===y.firstPickIndex+1&&(Se=this.K===0?Math.max(Se,Jt):Math.min(Se,Jt)),y.m(Bt++,Se,me),y.m(Bt++,Se,Ve)):(Se!==null?Se.centerX:Jt)!==Le&&(Se=this.Ta[se.layer]+this.Rf.y,Bt===y.firstPickIndex+1&&(Se=this.K===90?Math.max(Se,me):Math.min(Se,me)),y.m(Bt++,Jt,Se),y.m(Bt++,Le,Se)):(Se=Math.max(10,this.he[se.layer]),fn=Math.max(10,this.Ld[se.layer]),bt?this.K===180?(y.m(Bt++,Le+fn+Et,Ve),y.m(Bt++,Math.max(Le+fn-Et/2,Le),Ve),y.m(Bt++,Le,Ve),y.m(Bt++,Le,Ve),y.m(Bt++,Math.min(Le-Se+Et/2,Le),Ve),y.m(Bt++,Le-Se-Et,Ve)):this.K===90?(y.m(Bt++,Le,Ve-Se-Et),y.m(Bt++,Le,Math.min(Ve-Se+Et/2,Ve)),y.m(Bt++,Le,Ve),y.m(Bt++,Le,Ve),y.m(Bt++,Le,Math.max(Ve+fn-Et/2,Ve)),y.m(Bt++,Le,Ve+fn+Et)):this.K===270?(y.m(Bt++,Le,Ve+fn+Et),y.m(Bt++,Le,Math.max(Ve+fn-Et/2,Ve)),y.m(Bt++,Le,Ve),y.m(Bt++,Le,Ve),y.m(Bt++,Le,Math.min(Ve-Se+Et/2,Ve)),y.m(Bt++,Le,Ve-Se-Et)):(y.m(Bt++,Le-Se-Et,Ve),y.m(Bt++,Math.min(Le-Se+Et/2,Le),Ve),y.m(Bt++,Le,Ve),y.m(Bt++,Le,Ve),y.m(Bt++,Math.max(Le+fn-Et/2,Le),Ve),y.m(Bt++,Le+fn+Et,Ve)):this.K===180?(y.m(Bt++,Le+fn,Ve),y.m(Bt++,Le-Se,Ve)):this.K===90?(y.m(Bt++,Le,Ve-Se),y.m(Bt++,Le,Ve+fn)):this.K===270?(y.m(Bt++,Le,Ve+fn),y.m(Bt++,Le,Ve-Se)):(y.m(Bt++,Le-Se,Ve),y.m(Bt++,Le+fn,Ve)))),ht=se}Mt&&(Jt=y.i(Bt-1).x,me=y.i(Bt-1).y,Le=y.i(Bt).x,Ve=y.i(Bt).y,this.K===180||this.K===0?me!==Ve&&(Se=this.K===0?Math.min(Math.max((Le+Jt)/2,this.Ta[gt.layer]+this.Rf.x),Le):Math.max(Math.min((Le+Jt)/2,this.Ta[gt.layer]+this.Rf.x),Le),y.m(Bt++,Se,me),y.m(Bt++,Se,Ve)):Jt!==Le&&(Se=this.K===90?Math.min(Math.max((Ve+me)/2,this.Ta[gt.layer]+this.Rf.y),Ve):Math.max(Math.min((Ve+me)/2,this.Ta[gt.layer]+this.Rf.y),Ve),y.m(Bt++,Jt,Se),y.m(Bt++,Le,Se)))}b!==null&&bt&&4<=y.pointsCount&&(nt!==null&&(nt=ut===Ji?y.getLinkPointFromPoint(tt,nt,nt.ga(yr),y.i(3),!0):y.i(0),ut===Ji&&(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(tt.actualBounds.center),y.L(0,nt.x,nt.y)),ot!==null&&(tt=at===Ji?y.getLinkPointFromPoint(et,ot,ot.ga(yr),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),at===Ji&&(ot=y.i(y.pointsCount-3),at=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(tt.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,(tt.y+ot.y)/2),y.L(y.pointsCount-3,(ot.x+at.x)/2,at.y))),tt.w()||tt.set(et.actualBounds.center),y.L(y.pointsCount-1,tt.x,tt.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},hs.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new oi,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 tt=2;tt<b.pointsCount-3;tt++){var et=b.i(tt),nt=b.i(tt+1);if(this.B(et.y,nt.y)&&!this.B(et.x,nt.x)){var ot=new k0;ot.layer=Math.floor(et.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(et.x,nt.x),ot.Ic=Math.max(et.x,nt.x),ot.index=tt,ot.link=b,tt+2<b.pointsCount){at=b.i(tt-1),ut=b.i(tt+2);var ht=0;at.y<et.y?ht=ut.y<et.y?3:et.x<nt.x?2:1:at.y>et.y&&(ht=ut.y>et.y?0:nt.x<et.x?2:1),ot.j=ht}x.push(ot)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(et=x[a].layer,b=a+1;b<x.length&&x[b].layer===et;)b++;if(1<b-a)for(et=a;et<b;){for(nt=x[et].Ic,tt=a+1;tt<b&&x[tt].rd<nt;)nt=Math.max(nt,x[tt].Ic),tt++;if(nt=tt-et,1<nt){for(this.zi(x,this.Js,et,et+nt),ht=1,ot=x[et].jc,at=et;at<tt;at++)ut=x[at],ut.jc!==ot&&(ht++,ot=ut.jc);this.zi(x,this.Ux,et,et+nt);var gt=1;for(ot=x[et].first,at=et;at<tt;at++)ut=x[at],ut.first!==ot&&(gt++,ot=ut.first);for(at=!0,ut=gt,ht<gt?(at=!1,ut=ht,ot=x[et].jc,this.zi(x,this.Js,et,et+nt)):ot=x[et].first,ht=0,gt=et;gt<tt;gt++){var bt=x[gt];(at?bt.first:bt.jc)!==ot&&(ht++,ot=at?bt.first:bt.jc);var Mt=bt.link;et=Mt.i(bt.index),nt=Mt.i(bt.index+1);var Et=this.linkSpacing*(ht-(ut-1)/2);y++,Mt.uh(),Mt.L(bt.index,et.x,et.y+Et),Mt.L(bt.index+1,nt.x,nt.y+Et),Mt.zf()}}et=tt}a=b}}else{for(y=0,x=[],a=a.iterator;a.next();)if(b=a.value,b!==null&&b.isOrthogonal)for(tt=2;tt<b.pointsCount-3;tt++)et=b.i(tt),nt=b.i(tt+1),this.B(et.x,nt.x)&&!this.B(et.y,nt.y)&&(ot=new k0,ot.layer=Math.floor(et.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(et.y,nt.y),ot.Ic=Math.max(et.y,nt.y),ot.index=tt,ot.link=b,tt+2<b.pointsCount&&(at=b.i(tt-1),ut=b.i(tt+2),ht=0,at.x<et.x?ht=ut.x<et.x?3:et.y<nt.y?2:1:at.x>et.x&&(ht=ut.x>et.x?0:nt.y<et.y?2:1),ot.j=ht),x.push(ot));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(et=x[a].layer,b=a+1;b<x.length&&x[b].layer===et;)b++;if(1<b-a)for(et=a;et<b;){for(nt=x[et].Ic,tt=a+1;tt<b&&x[tt].rd<nt;)nt=Math.max(nt,x[tt].Ic),tt++;if(nt=tt-et,1<nt){for(this.zi(x,this.Js,et,et+nt),ht=1,ot=x[et].jc,at=et;at<tt;at++)ut=x[at],ut.jc!==ot&&(ht++,ot=ut.jc);for(this.zi(x,this.Ux,et,et+nt),gt=1,ot=x[et].first,at=et;at<tt;at++)ut=x[at],ut.first!==ot&&(gt++,ot=ut.first);for(at=!0,ut=gt,ht<gt?(at=!1,ut=ht,ot=x[et].jc,this.zi(x,this.Js,et,et+nt)):ot=x[et].first,ht=0,gt=et;gt<tt;gt++)bt=x[gt],(at?bt.first:bt.jc)!==ot&&(ht++,ot=at?bt.first:bt.jc),Mt=bt.link,et=Mt.i(bt.index),nt=Mt.i(bt.index+1),Et=this.linkSpacing*(ht-(ut-1)/2),y++,Mt.uh(),Mt.L(bt.index,et.x+Et,et.y),Mt.L(bt.index+1,nt.x+Et,nt.y),Mt.zf()}et=tt}a=b}}}},St=hs.prototype,St.Vx=function(a,y){return a instanceof k0&&y instanceof k0&&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},St.Ux=function(a,y){return a instanceof k0&&y instanceof k0&&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},St.Js=function(a,y){return a instanceof k0&&y instanceof k0&&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},St.B=function(a,y){return a-=y,-1<a&&1>a},St.zi=function(a,y,x,b){var tt=a.length,et=b-x;if(!(1>=et))if((0>x||x>=tt-1)&&_e("not in range 0 <= from < length: "+x),et===2)b=a[x],tt=a[x+1],0<y(b,tt)&&(a[x]=tt,a[x+1]=b);else if(x===0)if(b>=tt)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>=tt)for(b=a.slice(x),b.sort(y),y=x;y<tt;y++)a[y]=b[y-x];else for(tt=a.slice(x,b),tt.sort(y),y=x;y<b;y++)a[y]=tt[y-x]};function ea(a,y){var x=a.tc[y];if(x>=a.He.length){for(var b=[],tt=0;tt<a.He.length;tt++)b[tt]=a.He[tt];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 Pa(a,y,x){a.He[a.tc[y]]=x}ge.Object.defineProperties(hs.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()):_e("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Ah&&a!==Nl&&a!==Fc||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==nh&&a!==Lh&&a!==ih||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==Om&&a!==Qb&&a!==$b||(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!==t2&&a!==Fx&&a!==e2||(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 Nl=new ui(hs,"CycleDepthFirst",0),Ah=new ui(hs,"CycleGreedy",1),Fc=new ui(hs,"CycleFromLayers",2),nh=new ui(hs,"LayerOptimalLinkLength",0),Lh=new ui(hs,"LayerLongestPathSink",1),ih=new ui(hs,"LayerLongestPathSource",2),Om=new ui(hs,"InitDepthFirstOut",0),Qb=new ui(hs,"InitDepthFirstIn",1),$b=new ui(hs,"InitNaive",2),t2=new ui(hs,"AggressiveNone",0),Fx=new ui(hs,"AggressiveLess",1),e2=new ui(hs,"AggressiveMore",2),bw=8;hs.className="LayeredDigraphLayout",hs.CycleDepthFirst=Nl,hs.CycleGreedy=Ah,hs.CycleFromLayers=Fc,hs.LayerOptimalLinkLength=nh,hs.LayerLongestPathSink=Lh,hs.LayerLongestPathSource=ih,hs.InitDepthFirstOut=Om,hs.InitDepthFirstIn=Qb,hs.InitNaive=$b,hs.AggressiveNone=t2,hs.AggressiveLess=Fx,hs.AggressiveMore=e2,hs.PackNone=0,hs.PackExpand=1,hs.PackStraighten=2,hs.PackMedian=4,hs.PackAll=15,hs.AlignNone=0,hs.AlignUpperLeft=1,hs.AlignUpperRight=2,hs.AlignLowerLeft=4,hs.AlignLowerRight=8,hs.AlignAll=15;function k0(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}k0.className="SegInfo";function yy(a){Ss.call(this,a)}Nn(yy,Ss),yy.prototype.createVertex=function(){return new Sc(this)},yy.prototype.createEdge=function(){return new P1(this)},yy.className="LayeredDigraphNetwork";function Sc(a){ca.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}Nn(Sc,ca);function M2(a,y){return a.index-y.index}function Rx(a,y){if(!a.$n){for(var x=[],b=mi(a.destinationEdgesArrayAccess),tt=b.next();!tt.done;tt=b.next())tt=tt.value,tt.valid&&x.push(tt);a.$n=x}for(a=mi(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;_e("Unable to find destination edge to given vertex")}function n2(a){if(!a.co){for(var y=[],x=mi(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(M2),a.co=y}return a.co}function ww(a){if(!a.ao){for(var y=[],x=mi(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(M2),a.ao=y}return a.ao}Sc.prototype.Cl=function(a){ca.prototype.Cl.call(this,a),this.bo=this.co=null},Sc.prototype.Kl=function(a){ca.prototype.Kl.call(this,a),this.bo=this.co=null},Sc.prototype.zl=function(a){ca.prototype.zl.call(this,a),this.$n=this.ao=null},Sc.prototype.Jl=function(a){ca.prototype.Jl.call(this,a),this.$n=this.ao=null},ge.Object.defineProperties(Sc.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)}}}),Sc.prototype.deleteDestinationEdge=Sc.prototype.Jl,Sc.prototype.addDestinationEdge=Sc.prototype.zl,Sc.prototype.deleteSourceEdge=Sc.prototype.Kl,Sc.prototype.addSourceEdge=Sc.prototype.Cl,Sc.className="LayeredDigraphVertex";function P1(a){lu.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Nn(P1,lu),ge.Object.defineProperties(P1.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)}}}),P1.className="LayeredDigraphEdge";function Bo(a){Ds.call(this),this.Ub=new Ce,this.Wn=Hx,this.ud=Id,this.vo=Wx,this.Bq=f2,this.$v=[],this.td=!0,this.Rb=Vx,this.$d=new An(10,10).freeze();var y=new tv(this);this.W=new Rc(y),this.Y=new Rc(y),this.ru=[],a&&Object.assign(this,a)}Nn(Bo,Ds),Bo.prototype.cloneProtected=function(a){Ds.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)},Bo.prototype.qb=function(a){a.classType===Bo?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:_e("Unknown enum value: "+a):Ds.prototype.qb.call(this,a)},Bo.prototype.createNetwork=function(){return new tv(this)},Bo.prototype.makeNetwork=function(a){function y(b){if(b instanceof Xi)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof ji){var tt=b.fromNode;return tt===null||tt.isLinkLabel||tt.category==="Comment"?!1:(b=b.toNode,!(b===null||b.isLinkLabel||b.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof dn?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof $r?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Bo.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==Ux&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof dn&&(y=a),this.path===Hx&&y!==null?this.ud=y.isTreePathToChildren?Id:$g:this.ud=this.path===Hx?Id: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 Ce,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof Xi?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof Rc&&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,i2(this,y));for(y=this.network.vertexes,a=null;a=Sw(y),0<a.count;)y=E2(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,i2(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Rc&&A2(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Rc&&L2(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Rc&&P2(this,y);if(this.Cu(),this.layerStyle===Zx){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 tt=a[x.level];tt===void 0&&(tt=0),a[x.level]=Math.max(tt,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===p2)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,b=-1,tt=0;tt<y.children.length;tt++){var et=y.children[tt];b=Math.max(b,x?et.width:et.height)}if(0<=b)for(tt=0;tt<y.children.length;tt++)et=y.children[tt],x?(y.angle===180&&(et.focusX+=b-et.width),et.width=b):(y.angle===270&&(et.focusY+=b-et.height),et.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Rc&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Ce,this.isValidLayout=!0};function Sw(a){var y=new Ce;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}Bo.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Id:x.sourceEdges.count===0&&this.Ub.add(x);break;case $g:x.destinationEdges.count===0&&this.Ub.add(x);break;default:_e("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=E2(this,a),a!==null&&this.Ub.add(a))};function E2(a,y){var x=999999,b=null;for(y=y.iterator;y.next();){var tt=y.value;switch(a.ud){case Id:tt.sourceEdges.count<x&&(x=tt.sourceEdges.count,b=tt);break;case $g:tt.destinationEdges.count<x&&(x=tt.destinationEdges.count,b=tt);break;default:_e("Unhandled path value "+a.ud.toString())}}return b}function i2(a,y){if(y!==null){switch(a.ud){case Id:if(0<y.destinationEdges.count){for(var x=new oi,b=y.destinationVertexes;b.next();){var tt=b.value;k2(a,y,tt)&&x.add(tt)}0<x.count&&(y.children=x.Fa())}break;case $g:if(0<y.sourceEdges.count){for(x=new oi,b=y.sourceVertexes;b.next();)tt=b.value,k2(a,y,tt)&&x.add(tt);0<x.count&&(y.children=x.Fa())}break;default:_e("Unhandled path value"+a.ud.toString())}for(x=y.children,b=x.length,tt=0;tt<b;tt++){var et=x[tt];et.initialized=!0,et.level=y.level+1,et.parent=y,a.Ub.remove(et)}for(y=0;y<b;y++)i2(a,x[y])}}function k2(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}Bo.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,b=0,tt=0;tt<x.length;tt++)x[tt]===y&&b++;if(0<b){b=Array(x.length-b);for(var et=tt=0;et<x.length;et++)x[et]!==y&&(b[tt++]=x[et]);a.children=b}}};function A2(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===zd&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,tt=0,et=y.children,nt=et.length,ot=0;ot<nt;ot++){var at=et[ot];A2(a,at),x+=at.descendantCount+1,b=Math.max(b,at.maxChildrenCount),tt=Math.max(tt,at.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?tt+1:0}}function Cw(a,y){switch(a.vo){default:case Wx:return y.parent!==null?y.parent:a.W;case h2:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case c2:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case u2:var x=!0;if(y.childrenCount===0)x=!1;else for(var b=y.children,tt=b.length,et=0;et<tt;et++)if(0<b[et].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}Bo.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Cw(this,a)),a.parent!==null&&a.parent.alignment===zd){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 L2(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,b=0;b<x;b++)L2(a,y[b])}}Bo.prototype.assignTreeVertexValues=function(){};function P2(a,y){if(y!==null){y.alignment!==zd&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)P2(a,y[b])}}Bo.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case xy:break;case T1:a.children.reverse();break;case D1:a.children.sort(a.comparer);break;case O1:a.children.sort(a.comparer),a.children.reverse();break;default:_e("Unhandled sorting value "+a.sorting.toString())}},Bo.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Bo.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,tt=!1;x!==null&&(b=x.angle,tt=x.alignment,tt=A0(tt)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var et=0,nt=0,ot=0,at=a.commentSpacing;if(a.node!==null)for(var ut=a.node.Mu();ut.next();){var ht=ut.value;ht.category==="Comment"&&ht.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ht),ht.Va(),ht=ht.measuredBounds,y&&!x||!tt&&!b&&x||tt&&b&&x?(et=Math.max(et,ht.width),nt+=ht.height+Math.abs(ot)):(et+=ht.width+Math.abs(ot),nt=Math.max(nt,ht.height)),ot=at)}a.comments!==null&&(y&&!x||!tt&&!b&&x||tt&&b&&x?(et+=Math.abs(a.commentMargin),nt=Math.max(0,nt-a.height)):(nt+=Math.abs(a.commentMargin),et=Math.max(0,et-a.width)),tt=je.allocAt(0,0,a.bounds.width+et,a.bounds.height+nt),a.bounds=tt,je.free(tt))};function A0(a){return a===wp||a===zd||a===Sp||a===Ef}function N1(a){return a===wp||a===zd}function r2(a){var y=a.parent;if(y!==null){var x=y.alignment;if(A0(x)){if(N1(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===Sp)return!0}}return!1}Bo.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,b=a.angle,tt=0,et=!1;x!==null&&(tt=x.angle,et=x.alignment,et=A0(et)),b=b===90||b===270,x=tt===90||tt===270;for(var nt=a.childrenCount===0,ot=r2(a),at=0,ut=a.comments,ht=ut.length,gt=Gt.alloc(),bt=0;bt<ht;bt++){var Mt=ut[bt],Et=Mt.measuredBounds;if(b&&!nt||!et&&!x&&nt||et&&x&&nt){if(135<tt&&!et||x&&ot)if(0<=a.commentMargin)for(gt.h(a.bounds.x-a.commentMargin-Et.width,a.bounds.y+at),Mt.move(gt),Mt=Mt.Sd();Mt.next();){var Bt=Mt.value;Bt.fromSpot=gs,Bt.toSpot=is}else for(gt.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+at),Mt.move(gt),Mt=Mt.Sd();Mt.next();)Bt=Mt.value,Bt.fromSpot=is,Bt.toSpot=gs;else if(0<=a.commentMargin)for(gt.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+at),Mt.move(gt),Mt=Mt.Sd();Mt.next();)Bt=Mt.value,Bt.fromSpot=is,Bt.toSpot=gs;else for(gt.h(a.bounds.x+a.commentMargin-Et.width,a.bounds.y+at),Mt.move(gt),Mt=Mt.Sd();Mt.next();)Bt=Mt.value,Bt.fromSpot=gs,Bt.toSpot=is;at=0<=a.commentSpacing?at+(Et.height+a.commentSpacing):at+(a.commentSpacing-Et.height)}else{if(135<tt&&!et||!x&&ot)if(0<=a.commentMargin)for(gt.h(a.bounds.x+at,a.bounds.y-a.commentMargin-Et.height),Mt.move(gt),Mt=Mt.Sd();Mt.next();)Bt=Mt.value,Bt.fromSpot=fs,Bt.toSpot=vs;else for(gt.h(a.bounds.x+at,a.bounds.y+2*a.focus.y-a.commentMargin),Mt.move(gt),Mt=Mt.Sd();Mt.next();)Bt=Mt.value,Bt.fromSpot=vs,Bt.toSpot=fs;else if(0<=a.commentMargin)for(gt.h(a.bounds.x+at,a.bounds.y+2*a.focus.y+a.commentMargin),Mt.move(gt),Mt=Mt.Sd();Mt.next();)Bt=Mt.value,Bt.fromSpot=vs,Bt.toSpot=fs;else for(gt.h(a.bounds.x+at,a.bounds.y+a.commentMargin-Et.height),Mt.move(gt),Mt=Mt.Sd();Mt.next();)Bt=Mt.value,Bt.fromSpot=fs,Bt.toSpot=vs;at=0<=a.commentSpacing?at+(Et.width+a.commentSpacing):at+(a.commentSpacing-Et.width)}}if(Gt.free(gt),y=at-a.commentSpacing-(b?y.height:y.width),this.ud===Id)for(a=a.destinationEdges;a.next();)tt=a.value.link,tt===null||tt.isAvoiding||(tt.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)tt=a.value.link,tt===null||tt.isAvoiding||(tt.toEndSegmentLength=0<y?y:NaN)}},Bo.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 _x:N2(this,a);break;case B1:if(a.alignment===zd)N2(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=A0(x)),b=r2(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 tt=rh(a);y=tt===90||tt===270;var et=0,nt=a.children,ot=nt.length;for(x=0;x<ot;x++)b=nt[x],et=Math.max(et,y?b.Da.width:b.Da.height);var at=a.alignment;b=at===Fd;var ut=at===Rd,ht=A0(at),gt=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var bt=a.nodeSpacing,Mt=this.computeNodeIndent(a),Et=a.rowSpacing,Bt=0;(b||ut||a.hm||a.im&&a.maxGenerationCount===1)&&(Bt=Math.max(0,a.rowIndent)),b=a.width;var se=a.height,Jt=0,me=0,Se=0,Le=null,Ve=null,fn=0,nr=0,mr=0,dr=0,Hi=0,vi=0,ro=0,Ur=0;if(ht&&!N1(at)&&135<tt&&nt.reverse(),N1(at))if(1<ot)for(var qo=0;qo<ot;qo++)qo%2===0&&qo!==ot-1&&(Ur=Math.max(Ur,y?nt[qo].Da.width:nt[qo].Da.height));else ot===1&&(Ur=y?nt[0].Da.width:nt[0].Da.height);if(ht){switch(at){case wp:me=135>tt?T2(this,a,nt,Ur,Jt,me):D2(this,a,nt,Ur,Jt,me),Ur=me.x,Jt=me.width,me=me.height;break;case Sp:for(Le=0;Le<ot;Le++)Ve=nt[Le],gt=Ve.Da,Se=vi===0?0:Et,y?(Ve.S.h(et-gt.width,dr+Se),Jt=Math.max(Jt,gt.width),me=Math.max(me,dr+Se+gt.height),dr+=Se+gt.height):(Ve.S.h(mr+Se,et-gt.height),Jt=Math.max(Jt,mr+Se+gt.width),me=Math.max(me,gt.height),mr+=Se+gt.width),vi++;break;case Ef:for(Le=0;Le<ot;Le++)Ve=nt[Le],et=Ve.Da,gt=vi===0?0:Et,y?(Ve.S.h(bt/2+a.focus.x,dr+gt),Jt=Math.max(Jt,et.width),me=Math.max(me,dr+gt+et.height),dr+=gt+et.height):(Ve.S.h(mr+gt,bt/2+a.focus.y),Jt=Math.max(Jt,mr+gt+et.width),me=Math.max(me,et.height),mr+=gt+et.width),vi++}Le=Tu(this,2),Ve=Tu(this,2),y?(Le[0].h(0,0),Le[1].h(0,me),Ve[0].h(Jt,0)):(Le[0].h(0,0),Le[1].h(Jt,0),Ve[0].h(0,me)),Ve[1].h(Jt,me)}else for(qo=0;qo<ot;qo++){var Es=nt[qo],Ja=Es.Da;if(y){0<gt&&0<vi&&mr+bt+Ja.width>gt&&(mr<et&&Bm(a,at,et-mr,0,ro,qo-1),Hi++,vi=0,ro=qo,Se=me,mr=0,dr=135<tt?-me-Et:me+Et),jx(this,Es,0,dr);var ol=0;if(vi===0)Le=Es.Yo,Ve=Es.kp,fn=Ja.width,nr=Ja.height,(Le===null||Ve===null||tt!==rh(Es))&&(Le=Tu(this,2),Ve=Tu(this,2),Le[0].h(0,0),Le[1].h(0,nr),Ve[0].h(fn,0),Ve[1].h(fn,nr));else{var Xl=Xn();nr=O2(this,a,Es,Le,Ve,fn,nr,Xl),ol=nr.x,Le=Xl[0],Ve=Xl[1],fn=nr.width,nr=nr.height,qn(Xl),mr<Ja.width&&0>ol&&(Qg(a,-ol,0,ro,qo-1),Kx(Le,-ol,0),Kx(Ve,-ol,0),ol=0)}Es.S.h(ol,dr),Jt=Math.max(Jt,fn),me=Math.max(me,Se+(Hi===0?0:Et)+Ja.height),mr=fn}else 0<gt&&0<vi&&dr+bt+Ja.height>gt&&(dr<et&&Bm(a,at,0,et-dr,ro,qo-1),Hi++,vi=0,ro=qo,Se=Jt,dr=0,mr=135<tt?-Jt-Et:Jt+Et),jx(this,Es,mr,0),ol=0,vi===0?(Le=Es.Yo,Ve=Es.kp,fn=Ja.width,nr=Ja.height,(Le===null||Ve===null||tt!==rh(Es))&&(Le=Tu(this,2),Ve=Tu(this,2),Le[0].h(0,0),Le[1].h(fn,0),Ve[0].h(0,nr),Ve[1].h(fn,nr))):(Xl=Xn(),nr=O2(this,a,Es,Le,Ve,fn,nr,Xl),ol=nr.x,Le=Xl[0],Ve=Xl[1],fn=nr.width,nr=nr.height,qn(Xl),dr<Ja.height&&0>ol&&(Qg(a,0,-ol,ro,qo-1),Kx(Le,0,-ol),Kx(Ve,0,-ol),ol=0)),Es.S.h(mr,ol),me=Math.max(me,nr),Jt=Math.max(Jt,Se+(Hi===0?0:Et)+Ja.width),dr=nr;vi++}switch(0<Hi&&(y?(me+=Math.max(0,x),mr<Jt&&Bm(a,at,Jt-mr,0,ro,ot-1),0<Bt&&(ut||Qg(a,Bt,0,0,ot-1),Jt+=Bt)):(Jt+=Math.max(0,x),dr<me&&Bm(a,at,0,me-dr,ro,ot-1),0<Bt&&(ut||Qg(a,0,Bt,0,ot-1),me+=Bt))),Bt=ut=0,at){case by:y?ut+=Jt/2-a.focus.x-Mt/2:Bt+=me/2-a.focus.y-Mt/2;break;case qg:0<Hi?y?ut+=Jt/2-a.focus.x-Mt/2:Bt+=me/2-a.focus.y-Mt/2:y?(Ur=nt[0].S.x+nt[0].la.x,ut+=Ur+(nt[ot-1].S.x+nt[ot-1].la.x+2*nt[ot-1].focus.x-Ur)/2-a.focus.x-Mt/2):(Ur=nt[0].S.y+nt[0].la.y,Bt+=Ur+(nt[ot-1].S.y+nt[ot-1].la.y+2*nt[ot-1].focus.y-Ur)/2-a.focus.y-Mt/2);break;case Fd:y?(ut-=Mt,Jt+=Mt):(Bt-=Mt,me+=Mt);break;case Rd:y?(ut+=Jt-a.width+Mt,Jt+=Mt):(Bt+=me-a.height+Mt,me+=Mt);break;case wp:y?1<ot?ut+=Ur+bt/2-a.focus.x:ut+=nt[0].focus.x-a.focus.x+nt[0].la.x:1<ot?Bt+=Ur+bt/2-a.focus.y:Bt+=nt[0].focus.y-a.focus.y+nt[0].la.y;break;case Sp:y?ut+=Jt+bt/2-a.focus.x:Bt+=me+bt/2-a.focus.y;break;case Ef:break;default:me=this.customAlignment(a,ut,Bt,Jt,me),ut=me[0],Bt=me[1],Jt=me[2],me=me[3]}for(Mt=0;Mt<ot;Mt++)Ur=nt[Mt],y?Ur.S.h(Ur.S.x+Ur.la.x-ut,Ur.S.y+(135<tt?(ht?-me:-Ur.Da.height)+Ur.la.y-x:se+x+Ur.la.y)):Ur.S.h(Ur.S.x+(135<tt?(ht?-Jt:-Ur.Da.width)+Ur.la.x-x:b+x+Ur.la.x),Ur.S.y+Ur.la.y-Bt);if(ot=nt=0,ht?y?(Jt=o2(a,Jt,ut),0>ut&&(ut=0),135<tt&&(Bt+=me+x),me+=se+x,at===Ef&&(nt+=bt/2+a.focus.x),ot+=se+x):(135<tt&&(ut+=Jt+x),Jt+=b+x,me=s2(a,me,Bt),0>Bt&&(Bt=0),at===Ef&&(ot+=bt/2+a.focus.y),nt+=b+x):y?(a.comments===null?b>Jt&&(Jt=a2(at,b-Jt,0),nt=Jt.x,ot=Jt.y,Jt=b,ut=0):Jt=o2(a,Jt,ut),0>ut&&(nt-=ut,ut=0),135<tt&&(Bt+=me+x),me=Math.max(Math.max(me,se),me+se+x),ot+=se+x):(135<tt&&(ut+=Jt+x),Jt=Math.max(Math.max(Jt,b),Jt+b+x),a.comments===null?se>me&&(me=a2(at,0,se-me),nt=me.x,ot=me.y,me=se,Bt=0):me=s2(a,me,Bt),0>Bt&&(ot-=Bt,Bt=0),nt+=b+x),0<Hi)tt=Tu(this,4),Hi=Tu(this,4),y?(tt[2].h(0,se+x),tt[3].h(tt[2].x,me),Hi[2].h(Jt,tt[2].y),Hi[3].h(Hi[2].x,tt[3].y)):(tt[2].h(b+x,0),tt[3].h(Jt,tt[2].y),Hi[2].h(tt[2].x,me),Hi[3].h(tt[3].x,Hi[2].y));else{for(tt=Tu(this,Le.length+2),Hi=Tu(this,Ve.length+2),at=0;at<Le.length;at++)ht=Le[at],tt[at+2].h(ht.x+nt,ht.y+ot);for(at=0;at<Ve.length;at++)ht=Ve[at],Hi[at+2].h(ht.x+nt,ht.y+ot)}y?(tt[0].h(ut,0),tt[1].h(tt[0].x,se),tt[2].y<tt[1].y&&(tt[2].x>tt[0].x?tt[2].assign(tt[1]):tt[1].assign(tt[2])),tt[3].y<tt[2].y&&(tt[3].x>tt[0].x?tt[3].assign(tt[2]):tt[2].assign(tt[3])),Hi[0].h(ut+b,0),Hi[1].h(Hi[0].x,se),Hi[2].y<Hi[1].y&&(Hi[2].x<Hi[0].x?Hi[2].assign(Hi[1]):Hi[1].assign(Hi[2])),Hi[3].y<Hi[2].y&&(Hi[3].x<Hi[0].x?Hi[3].assign(Hi[2]):Hi[2].assign(Hi[3])),tt[2].y-=x/2,Hi[2].y-=x/2):(tt[0].h(0,Bt),tt[1].h(b,tt[0].y),tt[2].x<tt[1].x&&(tt[2].y>tt[0].y?tt[2].assign(tt[1]):tt[1].assign(tt[2])),tt[3].x<tt[2].x&&(tt[3].y>tt[0].y?tt[3].assign(tt[2]):tt[2].assign(tt[3])),Hi[0].h(0,Bt+se),Hi[1].h(b,Hi[0].y),Hi[2].x<Hi[1].x&&(Hi[2].y<Hi[0].y?Hi[2].assign(Hi[1]):Hi[1].assign(Hi[2])),Hi[3].x<Hi[2].x&&(Hi[3].y<Hi[0].y?Hi[3].assign(Hi[2]):Hi[2].assign(Hi[3])),tt[2].x-=x/2,Hi[2].x-=x/2),Ph(this,Le),Ph(this,Ve),a.Yo=tt,a.kp=Hi,a.la.h(ut,Bt),a.Da.h(Jt,me)}break;default:_e("Unhandled compaction value "+a.compaction.toString())}}};function N2(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=A0(x));var tt=r2(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(b!==180&&b!==270||x)&&!tt?y.la.h(0,0):b===180&&!x||(b===90||b===270)&&tt?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{b=rh(y),x=b===90||b===270;var et=0;tt=y.children;for(var nt=tt.length,ot=0;ot<nt;ot++){var at=tt[ot];et=Math.max(et,x?at.Da.width:at.Da.height)}var ut=y.alignment,ht=ut===Fd,gt=ut===Rd;ot=A0(ut);var bt=Math.max(0,y.breadthLimit);at=a.computeLayerSpacing(y);var Mt=y.nodeSpacing,Et=a.computeNodeIndent(y),Bt=ht||gt?0:Et/2,se=y.rowSpacing,Jt=0;(ht||gt||y.hm||y.im&&y.maxGenerationCount===1)&&(Jt=Math.max(0,y.rowIndent)),ht=y.width;var me=y.height,Se=0,Le=0,Ve=0,fn=0,nr=0,mr=0,dr=0,Hi=0,vi=0,ro=0;if(ot&&!N1(ut)&&135<b&&tt.reverse(),N1(ut))if(1<nt)for(var Ur=0;Ur<nt;Ur++){var qo=tt[Ur],Es=qo.Da;Ur%2===0&&Ur!==nt-1?vi=Math.max(vi,(x?Es.width:Es.height)+a.computeBusNodeSpacing(qo)-Mt):Ur%2!==0&&(ro=Math.max(ro,(x?Es.width:Es.height)+a.computeBusNodeSpacing(qo)-Mt))}else nt===1&&(vi=x?tt[0].Da.width:tt[0].Da.height);if(ot)switch(ut){case wp:case zd:Le=135>b?T2(a,y,tt,vi,Se,Le):D2(a,y,tt,vi,Se,Le),vi=Le.x,Se=Le.width,Le=Le.height;break;case Sp:for(bt=0;bt<nt;bt++)Bt=tt[bt],Ve=Bt.Da,ro=dr===0?0:se,x?(Bt.S.h(et-Ve.width,nr+ro),Se=Math.max(Se,Ve.width),Le=Math.max(Le,nr+ro+Ve.height),nr+=ro+Ve.height):(Bt.S.h(fn+ro,et-Ve.height),Se=Math.max(Se,fn+ro+Ve.width),Le=Math.max(Le,Ve.height),fn+=ro+Ve.width),dr++;break;case Ef:for(et=0;et<nt;et++)bt=tt[et],Bt=bt.Da,Ve=dr===0?0:se,x?(bt.S.h(Mt/2+y.focus.x,nr+Ve),Se=Math.max(Se,Bt.width),Le=Math.max(Le,nr+Ve+Bt.height),nr+=Ve+Bt.height):(bt.S.h(fn+Ve,Mt/2+y.focus.y),Se=Math.max(Se,fn+Ve+Bt.width),Le=Math.max(Le,Bt.height),fn+=Ve+Bt.width),dr++}else for(ro=0;ro<nt;ro++)Ur=tt[ro],qo=Ur.Da,x?(0<bt&&0<dr&&fn+Mt+qo.width>bt&&(fn<et&&Bm(y,ut,et-fn,0,Hi,ro-1),mr++,dr=0,Hi=ro,Ve=Le,fn=0,nr=135<b?-Le-se:Le+se),Es=dr===0?Bt:Mt,jx(a,Ur,0,nr),Ur.S.h(fn+Es,nr),Se=Math.max(Se,fn+Es+qo.width),Le=Math.max(Le,Ve+(mr===0?0:se)+qo.height),fn+=Es+qo.width):(0<bt&&0<dr&&nr+Mt+qo.height>bt&&(nr<et&&Bm(y,ut,0,et-nr,Hi,ro-1),mr++,dr=0,Hi=ro,Ve=Se,nr=0,fn=135<b?-Se-se:Se+se),Es=dr===0?Bt:Mt,jx(a,Ur,fn,0),Ur.S.h(fn,nr+Es),Le=Math.max(Le,nr+Es+qo.height),Se=Math.max(Se,Ve+(mr===0?0:se)+qo.width),nr+=Es+qo.height),dr++;switch(0<mr&&(x?(Le+=Math.max(0,at),fn<Se&&Bm(y,ut,Se-fn,0,Hi,nt-1),0<Jt&&(gt||Qg(y,Jt,0,0,nt-1),Se+=Jt)):(Se+=Math.max(0,at),nr<Le&&Bm(y,ut,0,Le-nr,Hi,nt-1),0<Jt&&(gt||Qg(y,0,Jt,0,nt-1),Le+=Jt))),Jt=gt=0,ut){case by:x?gt+=Se/2-y.focus.x-Et/2:Jt+=Le/2-y.focus.y-Et/2;break;case qg:0<mr?x?gt+=Se/2-y.focus.x-Et/2:Jt+=Le/2-y.focus.y-Et/2:x?(a=tt[0].S.x+tt[0].la.x,gt+=a+(tt[nt-1].S.x+tt[nt-1].la.x+2*tt[nt-1].focus.x-a)/2-y.focus.x-Et/2):(a=tt[0].S.y+tt[0].la.y,Jt+=a+(tt[nt-1].S.y+tt[nt-1].la.y+2*tt[nt-1].focus.y-a)/2-y.focus.y-Et/2);break;case Fd:x?(gt-=Et,Se+=Et):(Jt-=Et,Le+=Et);break;case Rd:x?(gt+=Se-y.width+Et,Se+=Et):(Jt+=Le-y.height+Et,Le+=Et);break;case wp:case zd:x?1<nt?gt+=vi+Mt/2-y.focus.x:gt+=tt[0].focus.x-y.focus.x+tt[0].la.x:1<nt?Jt+=vi+Mt/2-y.focus.y:Jt+=tt[0].focus.y-y.focus.y+tt[0].la.y;break;case Sp:x?gt+=Se+Mt/2-y.focus.x:Jt+=Le+Mt/2-y.focus.y;break;case Ef:break;default:a=a.customAlignment(y,gt,Jt,Se,Le),gt=a[0],Jt=a[1],Se=a[2],Le=a[3]}for(a=0;a<nt;a++)Et=tt[a],x?Et.S.h(Et.S.x+Et.la.x-gt,Et.S.y+(135<b?(ot?-Le:-Et.Da.height)+Et.la.y-at:me+at+Et.la.y)):Et.S.h(Et.S.x+(135<b?(ot?-Se:-Et.Da.width)+Et.la.x-at:ht+at+Et.la.x),Et.S.y+Et.la.y-Jt);x?(Se=o2(y,Se,gt),0>gt&&(gt=0),135<b&&(Jt+=Le+at),Le=Math.max(Math.max(Le,me),Le+me+at)):(135<b&&(gt+=Se+at),Se=Math.max(Math.max(Se,ht),Se+ht+at),Le=s2(y,Le,Jt),0>Jt&&(Jt=0)),y.la.h(gt,Jt),y.Da.h(Se,Le)}}Bo.prototype.customAlignment=function(a,y,x,b,tt){return[y,x,b,tt]};function T2(a,y,x,b,tt,et){var nt=x.length;if(nt===0)return new je(b,0,tt,et);if(nt===1)return y=x[0],tt=y.Da.width,et=y.Da.height,new je(b,0,tt,et);for(var ot=y.nodeSpacing,at=y.rowSpacing,ut=rh(y)===90,ht=0,gt=0,bt=0,Mt=0;Mt<nt;Mt++)if(!(Mt%2!==0||1<nt&&Mt===nt-1)){var Et=x[Mt],Bt=Et.Da,se=ht===0?0:at;if(ut){var Jt=a.computeBusNodeSpacing(Et)-ot;Et.S.h(b-(Bt.width+Jt),bt+se),tt=Math.max(tt,Bt.width+Jt),et=Math.max(et,bt+se+Bt.height),bt+=se+Bt.height}else Jt=a.computeBusNodeSpacing(Et)-ot,Et.S.h(gt+se,b-(Bt.height+Jt)),et=Math.max(et,Bt.height+Jt),tt=Math.max(tt,gt+se+Bt.width),gt+=se+Bt.width;ht++}for(ht=0,Et=gt,Mt=bt,ut?(gt=b+ot,bt=0):(gt=0,bt=b+ot),Bt=0;Bt<nt;Bt++)if(Bt%2!==0){se=x[Bt],Jt=se.Da;var me=ht===0?0:at;if(ut){var Se=a.computeBusNodeSpacing(se)-ot;se.S.h(gt+Se,bt+me),tt=Math.max(tt,gt+Jt.width+Se),et=Math.max(et,bt+me+Jt.height),bt+=me+Jt.height}else Se=a.computeBusNodeSpacing(se)-ot,se.S.h(gt+me,bt+Se),tt=Math.max(tt,gt+me+Jt.width),et=Math.max(et,bt+Jt.height+Se),gt+=me+Jt.width;ht++}return 1<nt&&nt%2===1&&(x=x[nt-1],nt=x.Da,a=a.computeBusLastRowSpacing(x,ut?Math.max(Math.abs(Mt),Math.abs(bt)):Math.max(Math.abs(Et),Math.abs(gt))),ut?(x.S.h(b+ot/2-x.focus.x-x.la.x,et+a),ut=b+ot/2-x.focus.x-x.la.x,tt=Math.max(tt,ut+nt.width),0>ut&&(tt-=ut),et=Math.max(et,Math.max(Mt,bt)+a+nt.height),0>x.S.x&&(b=zx(y,x.S.x,!1,b,ot))):(x.S.h(tt+a,b+ot/2-x.focus.y-x.la.y),tt=Math.max(tt,Math.max(Et,gt)+a+nt.width),bt=b+ot/2-x.focus.y-x.la.y,et=Math.max(et,bt+nt.height),0>bt&&(et-=bt),0>x.S.y&&(b=zx(y,x.S.y,!0,b,ot)))),new je(b,0,tt,et)}function D2(a,y,x,b,tt,et){var nt=x.length;if(nt===0)return new je(b,0,tt,et);if(nt===1)return x=x[0],tt=x.Da.width,et=x.Da.height,new je(b,0,tt,et);for(var ot=y.nodeSpacing,at=y.rowSpacing,ut=rh(y)===270,ht=0,gt=0,bt=0,Mt=0;Mt<nt;Mt++)if(!(Mt%2!==0||1<nt&&Mt===nt-1)){var Et=x[Mt],Bt=Et.Da,se=ht===0?0:at;if(ut){var Jt=a.computeBusNodeSpacing(Et)-ot;bt-=se+Bt.height,Et.S.h(b-(Bt.width+Jt),bt),tt=Math.max(tt,Bt.width+Jt),et=Math.max(et,Math.abs(bt))}else Jt=a.computeBusNodeSpacing(Et)-ot,gt-=se+Bt.width,Et.S.h(gt,b-(Bt.height+Jt)),et=Math.max(et,Bt.height+Jt),tt=Math.max(tt,Math.abs(gt));ht++}for(ht=0,Et=gt,Mt=bt,ut?(gt=b+ot,bt=0):(gt=0,bt=b+ot),Bt=0;Bt<nt;Bt++)if(Bt%2!==0){se=x[Bt],Jt=se.Da;var me=ht===0?0:at;if(ut){var Se=a.computeBusNodeSpacing(se)-ot;bt-=me+Jt.height,se.S.h(gt+Se,bt),tt=Math.max(tt,gt+Jt.width+Se),et=Math.max(et,Math.abs(bt))}else Se=a.computeBusNodeSpacing(se)-ot,gt-=me+Jt.width,se.S.h(gt,bt+Se),et=Math.max(et,bt+Jt.height+Se),tt=Math.max(tt,Math.abs(gt));ht++}for(1<nt&&nt%2===1&&(at=x[nt-1],ht=at.Da,a=a.computeBusLastRowSpacing(at,ut?Math.max(Math.abs(Mt),Math.abs(bt)):Math.max(Math.abs(Et),Math.abs(gt))),ut?(at.S.h(b+ot/2-at.focus.x-at.la.x,-et-ht.height-a),gt=b+ot/2-at.focus.x-at.la.x,tt=Math.max(tt,gt+ht.width),0>gt&&(tt-=gt),et=Math.max(et,Math.abs(Math.min(Mt,bt))+a+ht.height),0>at.S.x&&(b=zx(y,at.S.x,!1,b,ot))):(at.S.h(-tt-ht.width-a,b+ot/2-at.focus.y-at.la.y),tt=Math.max(tt,Math.abs(Math.min(Et,gt))+a+ht.width),bt=b+ot/2-at.focus.y-at.la.y,et=Math.max(et,bt+ht.height),0>bt&&(et-=bt),0>at.S.y&&(b=zx(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+et):ot.S.h(ot.S.x+tt,ot.S.y);return new je(b,0,tt,et)}Bo.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Bo.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function zx(a,y,x,b,tt){a=a.children;for(var et=a.length,nt=0;nt<et;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[et-1],Math.max(b,x?y.la.y+y.focus.y-tt/2:y.la.x+y.focus.x-tt/2)}function o2(a,y,x){switch(a.alignment){case qg:case by:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Fd:return a.width>y?a.width:y;case Rd:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case wp:case zd:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Sp:return a.width-a.focus.x+a.nodeSpacing/2+y;case Ef:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function s2(a,y,x){switch(a.alignment){case qg:case by:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Fd:return a.height>y?a.height:y;case Rd:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case wp:case zd:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Sp:return a.height-a.focus.y+a.nodeSpacing/2+y;case Ef:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function a2(a,y,x){switch(a){case by:y/=2,x/=2;break;case qg:y/=2,x/=2;break;case Fd:x=y=0;break;case Rd:break;default:_e("Unhandled alignment value "+a.toString())}return new Gt(y,x)}function Bm(a,y,x,b,tt,et){y=a2(y,x,b),Qg(a,y.x,y.y,tt,et)}function Qg(a,y,x,b,tt){if(y!==0||x!==0)for(a=a.children;b<=tt;b++){var et=a[b].S;et.x+=y,et.y+=x}}function jx(a,y,x,b){var tt=y.parent;switch(a.ud){case Id:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===tt&&y.relativePoint.h(x,b);break;case $g:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===tt&&y.relativePoint.h(x,b);break;default:_e("Unhandled path value "+a.ud.toString())}}function Kx(a,y,x){for(var b=0;b<a.length;b++){var tt=a[b];tt.x+=y,tt.y+=x}}function O2(a,y,x,b,tt,et,nt,ot){var at=rh(y),ut=at===90||at===270,ht=y.nodeSpacing;y=b;var gt=tt;b=et;var bt=nt,Mt=x.Yo,Et=x.kp;nt=x.Da;var Bt=ut?Math.max(bt,nt.height):Math.max(b,nt.width);if((Mt===null||at!==rh(x))&&(Mt=Tu(a,2),Et=Tu(a,2),ut?(Mt[0].h(0,0),Mt[1].h(0,nt.height),Et[0].h(nt.width,0),Et[1].h(Et[0].x,Mt[1].y)):(Mt[0].h(0,0),Mt[1].h(nt.width,0),Et[0].h(0,nt.height),Et[1].h(Mt[1].x,Et[0].y))),ut){if(bt=9999999,!(gt===null||2>gt.length||Mt===null||2>Mt.length))for(tt=x=0;x<gt.length&&tt<Mt.length;){et=gt[x];var se=Mt[tt];at=se.x,ut=se.y,at+=b;var Jt=et;x+1<gt.length&&(Jt=gt[x+1]);var me=se;se=me.x,me=me.y,tt+1<Mt.length&&(me=Mt[tt+1],se=me.x,me=me.y,se+=b);var Se=bt;et.y===ut?Se=at-et.x:et.y>ut&&et.y<me?Se=at+(et.y-ut)/(me-ut)*(se-at)-et.x:ut>et.y&&ut<Jt.y&&(Se=at-(et.x+(ut-et.y)/(Jt.y-et.y)*(Jt.x-et.x))),Se<bt&&(bt=Se),Jt.y<=et.y?x++:me<=ut?tt++:(Jt.y<=me&&x++,me<=Jt.y&&tt++)}if(bt=b-bt,bt+=ht,x=Mt,tt=bt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ht=Tu(a,y.length+x.length),b=et=at=0;et<x.length&&x[et].y<y[0].y;)ut=x[et++],ht[b++].h(ut.x+tt,ut.y);for(;at<y.length;)ut=y[at++],ht[b++].h(ut.x,ut.y);for(at=y[y.length-1].y;et<x.length&&x[et].y<=at;)et++;for(;et<x.length&&x[et].y>at;)ut=x[et++],ht[b++].h(ut.x+tt,ut.y);for(x=Tu(a,b),at=0;at<b;at++)x[at].assign(ht[at]);Ph(a,ht),b=x}if(et=Et,at=bt,gt===null||2>gt.length||et===null||2>et.length)tt=null;else{for(ht=Tu(a,gt.length+et.length),tt=ut=x=0;x<gt.length&>[x].y<et[0].y;)Jt=gt[x++],ht[tt++].h(Jt.x,Jt.y);for(;ut<et.length;)Jt=et[ut++],ht[tt++].h(Jt.x+at,Jt.y);for(et=et[et.length-1].y;x<gt.length&>[x].y<=et;)x++;for(;x<gt.length&>[x].y>et;)at=gt[x++],ht[tt++].h(at.x,at.y);for(et=Tu(a,tt),x=0;x<tt;x++)et[x].assign(ht[x]);Ph(a,ht),tt=et}return et=Math.max(0,bt)+nt.width,nt=Bt,Ph(a,y),Ph(a,Mt),Ph(a,gt),Ph(a,Et),ot[0]=b,ot[1]=tt,new je(bt,0,et,nt)}if(b=9999999,!(gt===null||2>gt.length||Mt===null||2>Mt.length))for(tt=x=0;x<gt.length&&tt<Mt.length;)et=gt[x],se=Mt[tt],at=se.x,ut=se.y,ut+=bt,Jt=et,x+1<gt.length&&(Jt=gt[x+1]),me=se,se=me.x,me=me.y,tt+1<Mt.length&&(me=Mt[tt+1],se=me.x,me=me.y,me+=bt),Se=b,et.x===at?Se=ut-et.y:et.x>at&&et.x<se?Se=ut+(et.x-at)/(se-at)*(me-ut)-et.y:at>et.x&&at<Jt.x&&(Se=ut-(et.y+(at-et.x)/(Jt.x-et.x)*(Jt.y-et.y))),Se<b&&(b=Se),Jt.x<=et.x?x++:se<=at?tt++:(Jt.x<=se&&x++,se<=Jt.x&&tt++);if(bt-=b,bt+=ht,x=Mt,tt=bt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ht=Tu(a,y.length+x.length),b=et=at=0;et<x.length&&x[et].x<y[0].x;)ut=x[et++],ht[b++].h(ut.x,ut.y+tt);for(;at<y.length;)ut=y[at++],ht[b++].h(ut.x,ut.y);for(at=y[y.length-1].x;et<x.length&&x[et].x<=at;)et++;for(;et<x.length&&x[et].x>at;)ut=x[et++],ht[b++].h(ut.x,ut.y+tt);for(x=Tu(a,b),at=0;at<b;at++)x[at].assign(ht[at]);Ph(a,ht),b=x}if(et=Et,at=bt,gt===null||2>gt.length||et===null||2>et.length)tt=null;else{for(ht=Tu(a,gt.length+et.length),tt=ut=x=0;x<gt.length&>[x].x<et[0].x;)Jt=gt[x++],ht[tt++].h(Jt.x,Jt.y);for(;ut<et.length;)Jt=et[ut++],ht[tt++].h(Jt.x,Jt.y+at);for(et=et[et.length-1].x;x<gt.length&>[x].x<=et;)x++;for(;x<gt.length&>[x].x>et;)at=gt[x++],ht[tt++].h(at.x,at.y);for(et=Tu(a,tt),x=0;x<tt;x++)et[x].assign(ht[x]);Ph(a,ht),tt=et}return et=Bt,nt=Math.max(0,bt)+nt.height,Ph(a,y),Ph(a,Mt),Ph(a,gt),Ph(a,Et),ot[0]=b,ot[1]=tt,new je(bt,0,et,nt)}function Tu(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 Gt;return a}function Ph(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}Bo.prototype.arrangeTrees=function(){if(this.Rb===Ux)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Rc){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),l2(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof Rc&&a.push(x);switch(this.sorting){case xy:break;case T1:a.reverse();break;case D1:a.sort(this.comparer);break;case O1:a.sort(this.comparer),a.reverse();break;default:_e("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,b=0;b<a.length;b++){var tt=a[b];switch(l2(this,tt,y+tt.la.x,x+tt.la.y),this.Rb){case Vx:x+=tt.Da.height+this.$d.height;break;case d2:y+=tt.Da.width+this.$d.width;break;default:_e("Unhandled arrangement value "+this.Rb.toString())}}}};function l2(a,y,x,b){if(y!==null){y.x=x,y.y=b,y=y.children;for(var tt=y.length,et=0;et<tt;et++){var nt=y[et];l2(a,nt,x+nt.S.x,b+nt.S.y)}}}Bo.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Bo.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Bo.prototype.Gu=function(){if(this.layerStyle===Zx){for(var a=this.$v,y=[],x=null,b=this.network.vertexes.iterator;b.next();){var tt=b.value;x===null?x=tt.bounds.copy():x.ed(tt.bounds);var et=y[tt.level];et===void 0?et=this.computeLayerSpacing(tt):et=Math.max(et,this.computeLayerSpacing(tt)),y[tt.level]=et}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 Gt(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new Gt(-this.layerSpacing/2,-this.nodeSpacing/2)),tt=[],x=this.angle===90||this.angle===270?x.width:x.height,et=0,this.angle===180||this.angle===270)for(var nt=0;nt<a.length;nt++)et+=a[nt]+y[nt];for(nt=0;nt<a.length;nt++){var ot=a[nt]+y[nt];this.angle===270?(et-=ot,tt.push(new je(0,et,x,ot))):this.angle===90?(tt.push(new je(0,et,x,ot)),et+=ot):this.angle===180?(et-=ot,tt.push(new je(et,0,ot,x))):(tt.push(new je(et,0,ot,x)),et+=ot)}this.commitLayers(tt,b)}},Bo.prototype.commitLayers=function(){},Bo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Bo.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Rc&&B2(this,y)}};function B2(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)B2(a,y[b])}}Bo.prototype.setPortSpots=function(a){var y=a.alignment;if(A0(y)){var x=this.ud===Id,b=rh(a);switch(b){case 0:var tt=is;break;case 90:tt=vs;break;case 180:tt=gs;break;default:tt=fs}var et=a.children,nt=et.length;switch(y){case wp:case zd:for(y=0;y<nt;y++){var ot=et[y];if(ot=(x?ot.sourceEdges:ot.destinationEdges).first(),ot!==null&&(ot=ot.link,ot!==null)){var at=b===90||b===270?gs:fs;if(nt===1||y===nt-1&&nt%2===1)switch(b){case 0:at=gs;break;case 90:at=fs;break;case 180:at=is;break;default:at=vs}else y%2===0&&(at=b===90||b===270?is:vs);x?(a.setsPortSpot&&(ot.fromSpot=tt),a.setsChildPortSpot&&(ot.toSpot=at)):(a.setsPortSpot&&(ot.fromSpot=at),a.setsChildPortSpot&&(ot.toSpot=tt))}}break;case Sp:for(b=b===90||b===270?is:vs,et=x?a.destinationEdges:a.sourceEdges;et.next();)nt=et.value.link,nt!==null&&(x?(a.setsPortSpot&&(nt.fromSpot=tt),a.setsChildPortSpot&&(nt.toSpot=b)):(a.setsPortSpot&&(nt.fromSpot=b),a.setsChildPortSpot&&(nt.toSpot=tt)));break;case Ef:for(b=b===90||b===270?gs:fs,et=x?a.destinationEdges:a.sourceEdges;et.next();)nt=et.value.link,nt!==null&&(x?(a.setsPortSpot&&(nt.fromSpot=tt),a.setsChildPortSpot&&(nt.toSpot=b)):(a.setsPortSpot&&(nt.fromSpot=b),a.setsChildPortSpot&&(nt.toSpot=tt)))}}else if(x=rh(a),this.ud===Id){for(tt=a.destinationEdges;tt.next();)if(b=tt.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.fromSpot=is;break;case 90:b.fromSpot=vs;break;case 180:b.fromSpot=gs;break;default:b.fromSpot=fs}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=gs;break;case 90:b.toSpot=fs;break;case 180:b.toSpot=is;break;default:b.toSpot=vs}else b.toSpot=a.childPortSpot}}else for(tt=a.sourceEdges;tt.next();)if(b=tt.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.toSpot=is;break;case 90:b.toSpot=vs;break;case 180:b.toSpot=gs;break;default:b.toSpot=fs}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=gs;break;case 90:b.fromSpot=fs;break;case 180:b.fromSpot=is;break;default:b.fromSpot=vs}else b.fromSpot=a.childPortSpot}};function rh(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Bo.prototype.computeLayerSpacing=function(a){var y=rh(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},Bo.prototype.computeNodeIndent=function(a){var y=rh(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)},ge.Object.defineProperties(Bo.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!==Wx&&a!==c2&&a!==u2&&a!==h2||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==f2&&a!==p2&&a!==Zx||(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!==Vx&&a!==d2&&a!==Ux||(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!==xy&&a!==T1&&a!==D1&&!O1||(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()):_e("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!==_x&&a!==B1||(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!==xy&&a!==T1&&a!==D1&&!O1||(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!==_x&&a!==B1||(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 Hx=new ui(Bo,"PathDefault",-1),Id=new ui(Bo,"PathDestination",0),$g=new ui(Bo,"PathSource",1),xy=new ui(Bo,"SortingForwards",10),T1=new ui(Bo,"SortingReverse",11),D1=new ui(Bo,"SortingAscending",12),O1=new ui(Bo,"SortingDescending",13),by=new ui(Bo,"AlignmentCenterSubtrees",20),qg=new ui(Bo,"AlignmentCenterChildren",21),Fd=new ui(Bo,"AlignmentStart",22),Rd=new ui(Bo,"AlignmentEnd",23),wp=new ui(Bo,"AlignmentBus",24),zd=new ui(Bo,"AlignmentBusBranching",25),Sp=new ui(Bo,"AlignmentTopLeftBus",26),Ef=new ui(Bo,"AlignmentBottomRightBus",27),_x=new ui(Bo,"CompactionNone",30),B1=new ui(Bo,"CompactionBlock",31),Wx=new ui(Bo,"StyleLayered",40),u2=new ui(Bo,"StyleLastParents",41),c2=new ui(Bo,"StyleAlternating",42),h2=new ui(Bo,"StyleRootOnly",43),Vx=new ui(Bo,"ArrangementVertical",50),d2=new ui(Bo,"ArrangementHorizontal",51),Ux=new ui(Bo,"ArrangementFixedRoots",52),f2=new ui(Bo,"LayerIndividual",60),p2=new ui(Bo,"LayerSiblings",61),Zx=new ui(Bo,"LayerUniform",62);Bo.className="TreeLayout",Bo.PathDefault=Hx,Bo.PathDestination=Id,Bo.PathSource=$g,Bo.SortingForwards=xy,Bo.SortingReverse=T1,Bo.SortingAscending=D1,Bo.SortingDescending=O1,Bo.AlignmentCenterSubtrees=by,Bo.AlignmentCenterChildren=qg,Bo.AlignmentStart=Fd,Bo.AlignmentEnd=Rd,Bo.AlignmentBus=wp,Bo.AlignmentBusBranching=zd,Bo.AlignmentTopLeftBus=Sp,Bo.AlignmentBottomRightBus=Ef,Bo.CompactionNone=_x,Bo.CompactionBlock=B1,Bo.StyleLayered=Wx,Bo.StyleLastParents=u2,Bo.StyleAlternating=c2,Bo.StyleRootOnly=h2,Bo.ArrangementVertical=Vx,Bo.ArrangementHorizontal=d2,Bo.ArrangementFixedRoots=Ux,Bo.LayerIndividual=f2,Bo.LayerSiblings=p2,Bo.LayerUniform=Zx;function tv(a){Ss.call(this,a)}Nn(tv,Ss),tv.prototype.createVertex=function(){return new Rc(this)},tv.prototype.createEdge=function(){return new wy(this)},tv.className="TreeNetwork";function Rc(a){ca.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 Gt(0,0),this.Da=new An(0,0),this.la=new Gt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=xy,this.hd=y1,this.Kb=0,this.Jb=qg,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=B1,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Ao,this.wr=!0,this.Dp=Ao}Nn(Rc,ca),Rc.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)},ge.Object.defineProperties(Rc.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)}}}),Rc.className="TreeVertex";function wy(a){lu.call(this,a),this.$t=new Gt(0,0)}Nn(wy,lu),wy.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 Id:x=this.fromVertex,b=this.toVertex;break;case $g:x=this.toVertex,b=this.fromVertex;break;default:_e("Unhandled path value "+y.ud.toString())}if(x!==null&&b!==null){var tt=this.$t;if(tt.x!==0||tt.y!==0||x.qA){b=x.bounds;var et=rh(x),nt=y.computeLayerSpacing(x),ot=x.rowSpacing;a.vg();var at=a.curve===Lu,ut=a.isOrthogonal,ht;if(a.uh(),ut||at){for(ht=2;4<a.pointsCount;)a.pv(2);var gt=a.i(1),bt=a.i(2)}else{for(ht=1;3<a.pointsCount;)a.pv(1);gt=a.i(0),bt=a.i(a.pointsCount-1)}var Mt=a.i(a.pointsCount-1);et===0?(x.alignment===Rd?(et=b.bottom+tt.y,tt.y===0&>.y>Mt.y+x.rowIndent&&(et=Math.min(et,Math.max(gt.y,et-y.computeNodeIndent(x))))):x.alignment===Fd?(et=b.top+tt.y,tt.y===0&>.y<Mt.y-x.rowIndent&&(et=Math.max(et,Math.min(gt.y,et+y.computeNodeIndent(x))))):et=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+tt.y:b.y+b.height/2+tt.y,at?(a.m(ht,gt.x,et),ht++,a.m(ht,b.right+nt,et),ht++,a.m(ht,b.right+nt+(tt.x-ot)/3,et),ht++,a.m(ht,b.right+nt+2*(tt.x-ot)/3,et),ht++,a.m(ht,b.right+nt+(tt.x-ot),et),ht++,a.m(ht,bt.x,et)):(ut&&(a.m(ht,b.right+nt/2,gt.y),ht++),a.m(ht,b.right+nt/2,et),ht++,a.m(ht,b.right+nt+tt.x-(ut?ot/2:ot),et),ht++,ut&&a.m(ht,a.i(ht-1).x,bt.y))):et===90?(x.alignment===Rd?(et=b.right+tt.x,tt.x===0&>.x>Mt.x+x.rowIndent&&(et=Math.min(et,Math.max(gt.x,et-y.computeNodeIndent(x))))):x.alignment===Fd?(et=b.left+tt.x,tt.x===0&>.x<Mt.x-x.rowIndent&&(et=Math.max(et,Math.min(gt.x,et+y.computeNodeIndent(x))))):et=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+tt.x:b.x+b.width/2+tt.x,at?(a.m(ht,et,gt.y),ht++,a.m(ht,et,b.bottom+nt),ht++,a.m(ht,et,b.bottom+nt+(tt.y-ot)/3),ht++,a.m(ht,et,b.bottom+nt+2*(tt.y-ot)/3),ht++,a.m(ht,et,b.bottom+nt+(tt.y-ot)),ht++,a.m(ht,et,bt.y)):(ut&&(a.m(ht,gt.x,b.bottom+nt/2),ht++),a.m(ht,et,b.bottom+nt/2),ht++,a.m(ht,et,b.bottom+nt+tt.y-(ut?ot/2:ot)),ht++,ut&&a.m(ht,bt.x,a.i(ht-1).y))):et===180?(x.alignment===Rd?(et=b.bottom+tt.y,tt.y===0&>.y>Mt.y+x.rowIndent&&(et=Math.min(et,Math.max(gt.y,et-y.computeNodeIndent(x))))):x.alignment===Fd?(et=b.top+tt.y,tt.y===0&>.y<Mt.y-x.rowIndent&&(et=Math.max(et,Math.min(gt.y,et+y.computeNodeIndent(x))))):et=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+tt.y:b.y+b.height/2+tt.y,at?(a.m(ht,gt.x,et),ht++,a.m(ht,b.left-nt,et),ht++,a.m(ht,b.left-nt+(tt.x+ot)/3,et),ht++,a.m(ht,b.left-nt+2*(tt.x+ot)/3,et),ht++,a.m(ht,b.left-nt+(tt.x+ot),et),ht++,a.m(ht,bt.x,et)):(ut&&(a.m(ht,b.left-nt/2,gt.y),ht++),a.m(ht,b.left-nt/2,et),ht++,a.m(ht,b.left-nt+tt.x+(ut?ot/2:ot),et),ht++,ut&&a.m(ht,a.i(ht-1).x,bt.y))):et===270?(x.alignment===Rd?(et=b.right+tt.x,tt.x===0&>.x>Mt.x+x.rowIndent&&(et=Math.min(et,Math.max(gt.x,et-y.computeNodeIndent(x))))):x.alignment===Fd?(et=b.left+tt.x,tt.x===0&>.x<Mt.x-x.rowIndent&&(et=Math.max(et,Math.min(gt.x,et+y.computeNodeIndent(x))))):et=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+tt.x:b.x+b.width/2+tt.x,at?(a.m(ht,et,gt.y),ht++,a.m(ht,et,b.top-nt),ht++,a.m(ht,et,b.top-nt+(tt.y+ot)/3),ht++,a.m(ht,et,b.top-nt+2*(tt.y+ot)/3),ht++,a.m(ht,et,b.top-nt+(tt.y+ot)),ht++,a.m(ht,et,bt.y)):(ut&&(a.m(ht,gt.x,b.top-nt/2),ht++),a.m(ht,et,b.top-nt/2),ht++,a.m(ht,et,b.top-nt+tt.y+(ut?ot/2:ot)),ht++,ut&&a.m(ht,bt.x,a.i(ht-1).y))):_e("Invalid angle "+et),a.zf()}else tt=b,a=this.link,b=this.network.layout,y=rh(x),y!==rh(tt)&&(nt=b.computeLayerSpacing(x),ot=x.bounds,x=tt.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===Lu,tt=a.isOrthogonal,b=A0(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)):tt?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)):tt?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)):tt?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)):tt?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()))}}},ge.Object.defineProperties(wy.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)}}}),wy.className="TreeEdge",Po.prototype.initializeStandardTools=function(){this.gb("Action",new Ku,this.mouseDownTools),this.gb("Relinking",new fu,this.mouseDownTools),this.gb("LinkReshaping",new ra,this.mouseDownTools),this.gb("Rotating",new Ml,this.mouseDownTools),this.gb("Resizing",new $a,this.mouseDownTools),this.gb("Linking",new Da,this.mouseMoveTools),this.gb("Dragging",new ws,this.mouseMoveTools),this.gb("DragSelecting",new bu,this.mouseMoveTools),this.gb("Panning",new Oa,this.mouseMoveTools),this.gb("ContextMenu",new El,this.mouseUpTools),this.gb("TextEditing",new ks,this.mouseUpTools),this.gb("ClickCreating",new zh,this.mouseUpTools),this.gb("ClickSelecting",new cd,this.mouseUpTools)},Xc("Horizontal",new Mv),Xc("Spot",new cg),Xc("Table",new qf),Xc("Viewbox",new nc),Xc("TableRow",new tp),Xc("TableColumn",new nm),Xc("Graduated",new hf),Xc("Grid",new hg),U0.add("GraphLinksModel",ja),U0.add("TreeModel",Gu);var Gx=ce.go,m2={get licenseKey(){return dn.licenseKey},set licenseKey(a){dn.licenseKey=a},get version(){return dn.version},Group:$r,EnumValue:ui,List:oi,Set:Ce,Map:or,Point:Gt,Size:An,Rect:je,Margin:Kn,Spot:gn,Geometry:ii,PathFigure:Bs,PathSegment:co,InputEvent:ha,DiagramEvent:Tl,ChangedEvent:vo,Model:gr,GraphLinksModel:Ko,TreeModel:Kl,Binding:ls,Transaction:cs,UndoManager:Zo,CommandHandler:oe,Tool:Mo,DraggingTool:ws,DraggingInfo:pu,DraggingOptions:lt,LinkingBaseTool:Qo,LinkingTool:Da,RelinkingTool:fu,LinkReshapingTool:ra,ResizingTool:$a,RotatingTool:Ml,ClickSelectingTool:cd,ActionTool:Ku,ClickCreatingTool:zh,HTMLInfo:wu,ContextMenuTool:El,DragSelectingTool:bu,PanningTool:Oa,TextEditingTool:ks,ToolManager:Po,Animation:sl,AnimationManager:Il,AnimationTrigger:lc,Layer:Ia,Diagram:dn,Palette:pt,Overview:yt,Brush:Jo,GraphObject:Ue,Panel:Di,RowColumnDefinition:pa,Shape:lo,TextBlock:as,Picture:Zl,Part:Pr,Adornment:Wo,Node:Xi,Link:ji,Placeholder:Pl,Layout:Ds,LayoutNetwork:Ss,LayoutVertex:ca,LayoutEdge:lu,GridLayout:Xa,PanelLayout:Sa,CircularLayout:Ks,CircularNetwork:id,CircularVertex:Dm,CircularEdge:Yg,ForceDirectedLayout:ul,ForceDirectedNetwork:E0,ForceDirectedVertex:Xg,ForceDirectedEdge:Jg,LayeredDigraphLayout:hs,LayeredDigraphNetwork:yy,LayeredDigraphVertex:Sc,LayeredDigraphEdge:P1,TreeLayout:Bo,TreeNetwork:tv,TreeVertex:Rc,TreeEdge:wy};typeof Gx=="object"&&Gx.version&&$e("WARNING: a `go` object on the root object is already defined. "+("Debug"in Gx?"debug ":"")+"version: "+Gx.version+", replaced with version: "+m2.version),dn.prototype.go=m2,ce.go=m2,typeof jn.exports=="object"&&(jn.exports=typeof mt.g!="undefined"?mt.g.go:self.go)}();var ft=typeof mt.g!="undefined"?mt.g.go:self.go;const Ft=typeof mt.g!="undefined"?mt.g.go:self.go,$t=Ft.Group,ne=Ft.EnumValue,Dt=Ft.List,Ht=Ft.Set,Wt=Ft.Map,jt=Ft.Point,Nt=Ft.Size,Ut=Ft.Rect,De=Ft.Margin,Yt=Ft.Spot,de=Ft.Geometry,we=Ft.PathFigure,ue=Ft.PathSegment,he=Ft.InputEvent,It=Ft.DiagramEvent,ye=Ft.ChangedEvent,Ze=Ft.Model,pe=Ft.GraphLinksModel,be=Ft.TreeModel,Rt=Ft.Binding,zt=Ft.Transaction,Qt=Ft.UndoManager,te=Ft.CommandHandler,Ie=Ft.Tool,He=Ft.DraggingTool,en=Ft.DraggingInfo,ie=Ft.LinkingBaseTool,an=Ft.LinkingTool,nn=Ft.RelinkingTool,Vn=Ft.LinkReshapingTool,Ne=Ft.ResizingTool,Ye=Ft.RotatingTool,zn=Ft.ClickSelectingTool,Gn=Ft.ActionTool,Me=Ft.ClickCreatingTool,_t=Ft.HTMLInfo,rn=Ft.ContextMenuTool,ti=Ft.DragSelectingTool,vn=Ft.PanningTool,ze=Ft.TextEditingTool,on=Ft.ToolManager,On=Ft.Animation,Ni=Ft.AnimationManager,gi=Ft.AnimationTrigger,Dn=Ft.Layer,Jn=Ft.Diagram,Ai=Ft.Palette,hi=Ft.Overview,qt=Ft.Brush,kt=Ft.GraphObject,Ct=Ft.Panel,Pt=Ft.RowColumnDefinition,At=Ft.Shape,wt=Ft.TextBlock,Xt=Ft.TextBlockMetrics,Re=Ft.Picture,We=Ft.Part,In=Ft.Adornment,Hn=Ft.Node,Un=Ft.Link,Yn=Ft.Placeholder,Fe=Ft.Layout,bn=Ft.LayoutNetwork,En=Ft.LayoutVertex,Qn=Ft.LayoutEdge,Sn=Ft.GridLayout,Vi=Ft.PanelLayout,Qe=Ft.CircularLayout,Pn=Ft.CircularNetwork,Ci=Ft.CircularVertex,yi=Ft.CircularEdge,Oi=Ft.ForceDirectedLayout,ar=Ft.ForceDirectedNetwork,br=Ft.ForceDirectedVertex,wr=Ft.ForceDirectedEdge,cr=Ft.LayeredDigraphLayout,Ar=Ft.LayeredDigraphNetwork,ir=Ft.LayeredDigraphVertex,kr=Ft.LayeredDigraphEdge,po=Ft.TreeLayout,So=Ft.TreeNetwork,Eo=Ft.TreeVertex,Yr=Ft.TreeEdge,Mn=Ft.version},15979:function(jn,tn,mt){"use strict";mt.d(tn,{hP:function(){return hi}});var ft=function(qt,kt){return(ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,Pt){Ct.__proto__=Pt}||function(Ct,Pt){for(var At in Pt)Object.prototype.hasOwnProperty.call(Pt,At)&&(Ct[At]=Pt[At])})(qt,kt)};function Ft(qt,kt){function Ct(){this.constructor=qt}ft(qt,kt),qt.prototype=kt===null?Object.create(kt):(Ct.prototype=kt.prototype,new Ct)}function $t(qt,kt,Ct,Pt){return new(Ct||(Ct=Promise))(function(At,wt){function Xt(In){try{We(Pt.next(In))}catch(Hn){wt(Hn)}}function Re(In){try{We(Pt.throw(In))}catch(Hn){wt(Hn)}}function We(In){var Hn;In.done?At(In.value):(Hn=In.value,Hn instanceof Ct?Hn:new Ct(function(Un){Un(Hn)})).then(Xt,Re)}We((Pt=Pt.apply(qt,kt||[])).next())})}function ne(qt,kt){var Ct,Pt,At,wt,Xt={label:0,sent:function(){if(1&At[0])throw At[1];return At[1]},trys:[],ops:[]};return wt={next:Re(0),throw:Re(1),return:Re(2)},typeof Symbol=="function"&&(wt[Symbol.iterator]=function(){return this}),wt;function Re(We){return function(In){return function(Hn){if(Ct)throw new TypeError("Generator is already executing.");for(;Xt;)try{if(Ct=1,Pt&&(At=2&Hn[0]?Pt.return:Hn[0]?Pt.throw||((At=Pt.return)&&At.call(Pt),0):Pt.next)&&!(At=At.call(Pt,Hn[1])).done)return At;switch(Pt=0,At&&(Hn=[2&Hn[0],At.value]),Hn[0]){case 0:case 1:At=Hn;break;case 4:return Xt.label++,{value:Hn[1],done:!1};case 5:Xt.label++,Pt=Hn[1],Hn=[0];continue;case 7:Hn=Xt.ops.pop(),Xt.trys.pop();continue;default:if(At=Xt.trys,!((At=At.length>0&&At[At.length-1])||Hn[0]!==6&&Hn[0]!==2)){Xt=0;continue}if(Hn[0]===3&&(!At||Hn[1]>At[0]&&Hn[1]<At[3])){Xt.label=Hn[1];break}if(Hn[0]===6&&Xt.label<At[1]){Xt.label=At[1],At=Hn;break}if(At&&Xt.label<At[2]){Xt.label=At[2],Xt.ops.push(Hn);break}At[2]&&Xt.ops.pop(),Xt.trys.pop();continue}Hn=kt.call(qt,Xt)}catch(Un){Hn=[6,Un],Pt=0}finally{Ct=At=0}if(5&Hn[0])throw Hn[1];return{value:Hn[0]?Hn[1]:void 0,done:!0}}([We,In])}}}function Dt(){for(var qt=0,kt=0,Ct=arguments.length;kt<Ct;kt++)qt+=arguments[kt].length;var Pt=Array(qt),At=0;for(kt=0;kt<Ct;kt++)for(var wt=arguments[kt],Xt=0,Re=wt.length;Xt<Re;Xt++,At++)Pt[At]=wt[Xt];return Pt}var Ht=function(){function qt(){}return qt.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},qt.setAttributes=function(kt,Ct){for(var Pt=0,At=Ct;Pt<At.length;Pt++){var wt=At[Pt],Xt=wt[0],Re=wt[1];kt.setAttribute(Xt,Re)}},qt.createRect=function(kt,Ct,Pt){var At=document.createElementNS("http://www.w3.org/2000/svg","rect");return At.setAttribute("width",kt.toString()),At.setAttribute("height",Ct.toString()),Pt&&qt.setAttributes(At,Pt),At},qt.createLine=function(kt,Ct,Pt,At,wt){var Xt=document.createElementNS("http://www.w3.org/2000/svg","line");return Xt.setAttribute("x1",kt.toString()),Xt.setAttribute("y1",Ct.toString()),Xt.setAttribute("x2",Pt.toString()),Xt.setAttribute("y2",At.toString()),wt&&qt.setAttributes(Xt,wt),Xt},qt.createPolygon=function(kt,Ct){var Pt=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Pt.setAttribute("points",kt),Ct&&qt.setAttributes(Pt,Ct),Pt},qt.createCircle=function(kt,Ct){var Pt=document.createElementNS("http://www.w3.org/2000/svg","circle");return Pt.setAttribute("cx",(kt/2).toString()),Pt.setAttribute("cy",(kt/2).toString()),Pt.setAttribute("r",kt.toString()),Ct&&qt.setAttributes(Pt,Ct),Pt},qt.createEllipse=function(kt,Ct,Pt){var At=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return At.setAttribute("cx",(kt/2).toString()),At.setAttribute("cy",(Ct/2).toString()),At.setAttribute("rx",(kt/2).toString()),At.setAttribute("ry",(Ct/2).toString()),Pt&&qt.setAttributes(At,Pt),At},qt.createGroup=function(kt){var Ct=document.createElementNS("http://www.w3.org/2000/svg","g");return kt&&qt.setAttributes(Ct,kt),Ct},qt.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},qt.createMarker=function(kt,Ct,Pt,At,wt,Xt,Re){var We=document.createElementNS("http://www.w3.org/2000/svg","marker");return qt.setAttributes(We,[["id",kt],["orient",Ct],["markerWidth",Pt.toString()],["markerHeight",At.toString()],["refX",wt.toString()],["refY",Xt.toString()]]),We.appendChild(Re),We},qt.createText=function(kt){var Ct=document.createElementNS("http://www.w3.org/2000/svg","text");return Ct.setAttribute("x","0"),Ct.setAttribute("y","0"),kt&&qt.setAttributes(Ct,kt),Ct},qt.createTSpan=function(kt,Ct){var Pt=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Pt.textContent=kt,Ct&&qt.setAttributes(Pt,Ct),Pt},qt.createImage=function(kt){var Ct=document.createElementNS("http://www.w3.org/2000/svg","image");return kt&&qt.setAttributes(Ct,kt),Ct},qt.createPoint=function(kt,Ct){var Pt=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Pt.x=kt,Pt.y=Ct,Pt},qt.createPath=function(kt,Ct){var Pt=document.createElementNS("http://www.w3.org/2000/svg","path");return Pt.setAttribute("d",kt),Ct&&qt.setAttributes(Pt,Ct),Pt},qt}(),Wt=function(){function qt(){}return qt.addKey=function(kt){qt.key=kt},Object.defineProperty(qt,"isLicensed",{get:function(){return!!qt.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(qt.key)},enumerable:!1,configurable:!0}),qt}(),jt=function(){function qt(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return qt.prototype.rasterize=function(kt,Ct,Pt){var At=this;return new Promise(function(wt){var Xt=Pt!==void 0?Pt:document.createElement("canvas");kt===null&&(At.markersOnly=!0,At.naturalSize=!1);var Re=document.createElementNS("http://www.w3.org/2000/svg","svg");Re.setAttribute("xmlns","http://www.w3.org/2000/svg"),Re.setAttribute("width",Ct.width.baseVal.valueAsString),Re.setAttribute("height",Ct.height.baseVal.valueAsString),Re.setAttribute("viewBox","0 0 "+Ct.viewBox.baseVal.width.toString()+" "+Ct.viewBox.baseVal.height.toString()),Re.innerHTML=Ct.innerHTML,At.naturalSize===!0?(Re.width.baseVal.value=kt.naturalWidth,Re.height.baseVal.value=kt.naturalHeight):At.width!==void 0&&At.height!==void 0&&(Re.width.baseVal.value=At.width,Re.height.baseVal.value=At.height),Xt.width=Re.width.baseVal.value,Xt.height=Re.height.baseVal.value;var We=Re.outerHTML,In=Xt.getContext("2d");At.markersOnly!==!0&&In.drawImage(kt,0,0,Xt.width,Xt.height);var Hn=window.URL,Un=new Image(Xt.width,Xt.height);Un.setAttribute("crossOrigin","anonymous");var Yn=new Blob([We],{type:"image/svg+xml"}),Fe=Hn.createObjectURL(Yn);Un.onload=function(){In.drawImage(Un,0,0),Hn.revokeObjectURL(Fe);var bn=Xt.toDataURL(At.imageType,At.imageQuality);wt(bn)},Un.src=Fe})},qt}(),Nt=function(){},Ut=function(){function qt(kt){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+kt+"_"}return Object.defineProperty(qt.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(qt.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(qt.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(qt.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(qt.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),qt.prototype.addClass=function(kt){return this.styleSheet===void 0&&this.addStyleSheet(),kt.name=""+this.classNamePrefix+kt.localName,this.classes.push(kt),this.styleSheet.sheet.insertRule("."+kt.name+" {"+kt.style+"}",this.styleSheet.sheet.cssRules.length),kt},qt.prototype.addRule=function(kt){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(kt),this.styleSheet.sheet.insertRule(kt.selector+" {"+kt.style+"}",this.styleSheet.sheet.cssRules.length)},qt.prototype.addStyleSheet=function(){var kt;this.styleSheet=document.createElement("style"),((kt=this.styleSheetRoot)!==null&&kt!==void 0?kt:document.head).appendChild(this.styleSheet),this.addRule(new De("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new De("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new De("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new Yt("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new Yt("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},qt.prototype.removeStyleSheet=function(){var kt;this.styleSheet&&(((kt=this.styleSheetRoot)!==null&&kt!==void 0?kt:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},qt}(),De=function(qt,kt){this.selector=qt,this.style=kt},Yt=function(qt,kt){this.localName=qt,this.style=kt},de=function(){function qt(kt,Ct,Pt,At,wt){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=kt,this.displayMode=Ct,this.markerItems=Pt,this.uiStyleSettings=At,this.styles=wt,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return qt.prototype.show=function(kt){var Ct=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=kt,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Pt=document.createElement("div");Pt.className=this.toolbarBlockStyleClass.name,Pt.style.whiteSpace="nowrap",this.uiContainer.appendChild(Pt),this.addActionButton(Pt,'<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(Pt,'<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(Pt,'<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(Pt,'<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(Pt,'<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(Pt,'<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(Pt,'<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(Pt,'<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(wt){var Xt=document.createElement("div");Xt.className=""+Ct.toolbarButtonStyleClass.name,Xt.setAttribute("data-type-name",wt.typeName),Xt.innerHTML=wt.icon,Xt.addEventListener("click",function(){Ct.markerToolbarButtonClicked(Xt,wt)}),Ct.buttons.push(Xt),Ct.markerButtons.push(Xt)}),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 At=document.createElement("div");At.className=this.toolbarBlockStyleClass.name,At.style.whiteSpace="nowrap",At.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(At),this.addActionButton(At,'<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(At,'<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()},qt.prototype.addButtonClickListener=function(kt){this.buttonClickListeners.push(kt)},qt.prototype.removeButtonClickListener=function(kt){this.buttonClickListeners.indexOf(kt)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(kt),1)},qt.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},qt.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var kt=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Ct=0;Ct<this.markerButtons.length;Ct++)Ct<kt||Ct===kt&&this.markerButtons.length-1===kt?this.markerButtonBlock.appendChild(this.markerButtons[Ct]):(Ct===kt&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Ct]))}},qt.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")},qt.prototype.resetButtonStyles=function(){var kt=this;this.buttons.forEach(function(Ct){Ct.className=Ct.className.replace(kt.uiStyleSettings.toolbarButtonStyleColorsClassName?kt.uiStyleSettings.toolbarButtonStyleColorsClassName:kt.toolbarButtonStyleColorsClass.name,"").trim(),Ct.className=Ct.className.replace(kt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?kt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:kt.toolbarActiveButtonStyleColorsClass.name,"").trim(),Ct.className+=" "+(kt.uiStyleSettings.toolbarButtonStyleColorsClassName?kt.uiStyleSettings.toolbarButtonStyleColorsClassName:kt.toolbarButtonStyleColorsClass.name)})},qt.prototype.addActionButton=function(kt,Ct,Pt){var At=this,wt=document.createElement("div");switch(wt.className=""+this.toolbarButtonStyleClass.name,wt.innerHTML=Ct,wt.setAttribute("data-action",Pt),wt.addEventListener("click",function(){At.actionToolbarButtonClicked(wt,Pt)}),Pt){case"select":wt.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":wt.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":wt.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":wt.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":wt.style.fill=this.uiStyleSettings.closeButtonColor}kt.appendChild(wt),this.buttons.push(wt)},qt.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Yt("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 Yt("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Yt("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Yt("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 Yt("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var kt=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Yt("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*kt)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*kt)+`px;
|
|
|
padding: `+kt+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Yt("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Yt("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new De("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new De("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},qt.prototype.markerToolbarButtonClicked=function(kt,Ct){this.setActiveButton(kt),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Pt){return Pt("marker",Ct)}),this.markerButtonOverflowBlock.style.display="none"},qt.prototype.actionToolbarButtonClicked=function(kt,Ct){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Pt){return Pt("action",Ct)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},qt.prototype.setActiveButton=function(kt){this.resetButtonStyles(),kt.className=kt.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),kt.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},qt.prototype.setActiveMarkerButton=function(kt){var Ct=this.markerButtons.find(function(Pt){return Pt.getAttribute("data-type-name")===kt});Ct&&this.setActiveButton(Ct)},qt.prototype.setCurrentMarker=function(kt){var Ct=this;this.currentMarker=kt,this.buttons.filter(function(Pt){return/delete|notes/.test(Pt.getAttribute("data-action"))}).forEach(function(Pt){Ct.currentMarker===void 0?(Pt.style.fillOpacity="0.4",Pt.style.pointerEvents="none"):(Pt.style.fillOpacity="1",Pt.style.pointerEvents="all")})},qt}(),we=function(){function qt(kt,Ct,Pt,At){this.panels=[],this.panelButtons=[],this.markerjsContainer=kt,this.displayMode=Ct,this.uiStyleSettings=Pt,this.styles=At,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return qt.prototype.addStyles=function(){var kt;this.toolboxStyleClass=this.styles.addClass(new Yt("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 Yt("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var Ct=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Yt("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Yt("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Yt("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 Yt("toolbox-panel-row_colors",`
|
|
|
background-color: `+((kt=this.uiStyleSettings.toolboxBackgroundColor)!==null&&kt!==void 0?kt:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Yt("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Ct)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Ct)+`px;
|
|
|
padding: `+Ct+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Yt("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Yt("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new De("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new De("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},qt.prototype.show=function(kt){var Ct;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=kt,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Ct=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Ct!==void 0?Ct:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},qt.prototype.setPanelButtons=function(kt){var Ct,Pt,At=this;this.panels=kt,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Ct=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Ct!==void 0?Ct:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Pt=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Pt!==void 0?Pt:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(wt){var Xt;wt.uiStyleSettings=At.uiStyleSettings;var Re=document.createElement("div");Re.className=At.toolboxButtonStyleClass.name+" "+((Xt=At.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Xt!==void 0?Xt:At.toolboxButtonStyleColorsClass.name),Re.innerHTML=wt.icon,Re.title=wt.title,Re.addEventListener("click",function(){At.panelButtonClick(wt)}),At.panelButtons.push(Re),At.buttonRow.appendChild(Re)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},qt.prototype.panelButtonClick=function(kt){var Ct=this,Pt=-1;if(kt!==this.activePanel){Pt=this.panels.indexOf(kt),this.panelRow.innerHTML="";var At=kt.getUi();At.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(At),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=kt}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Ct.displayMode==="inline"?Ct.panelRow.style.display="none":Ct.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(wt,Xt){var Re,We;wt.className=Ct.toolboxButtonStyleClass.name+" "+(Xt===Pt?""+((Re=Ct.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Re!==void 0?Re:Ct.toolboxActiveButtonStyleColorsClass.name):""+((We=Ct.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&We!==void 0?We:Ct.toolboxButtonStyleColorsClass.name))})},qt}(),ue=function(qt,kt){this.title=qt,this.icon=kt},he=function(qt){function kt(Ct,Pt,At,wt){var Xt=qt.call(this,Ct,wt||'<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 Xt.colors=[],Xt.addTransparent=!1,Xt.colorBoxes=[],Xt.colors=Pt,Xt.currentColor=At,Xt.setCurrentColor=Xt.setCurrentColor.bind(Xt),Xt.getColorBox=Xt.getColorBox.bind(Xt),Xt}return Ft(kt,qt),kt.prototype.getUi=function(){var Ct=this,Pt=document.createElement("div");return Pt.style.overflow="hidden",Pt.style.whiteSpace="nowrap",this.colors.forEach(function(At){var wt=Ct.getColorBox(At);Pt.appendChild(wt),Ct.colorBoxes.push(wt)}),Pt},kt.prototype.getColorBox=function(Ct){var Pt=this,At=this.uiStyleSettings.toolbarHeight/4,wt=this.uiStyleSettings.toolbarHeight-At,Xt=document.createElement("div");Xt.style.display="inline-block",Xt.style.boxSizing="content-box",Xt.style.width=wt-2+"px",Xt.style.height=wt-2+"px",Xt.style.padding="1px",Xt.style.marginRight="2px",Xt.style.marginBottom="2px",Xt.style.borderWidth="2px",Xt.style.borderStyle="solid",Xt.style.borderRadius=(wt+2)/2+"px",Xt.style.borderColor=Ct===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Xt.addEventListener("click",function(){Pt.setCurrentColor(Ct,Xt)});var Re=document.createElement("div");return Re.style.display="inline-block",Re.style.width=wt-2+"px",Re.style.height=wt-2+"px",Re.style.backgroundColor=Ct,Re.style.borderRadius=wt/2+"px",Ct==="transparent"&&(Re.style.fill=this.uiStyleSettings.toolboxAccentColor,Re.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>`),Xt.appendChild(Re),Xt},kt.prototype.setCurrentColor=function(Ct,Pt){var At=this;this.currentColor=Ct,this.colorBoxes.forEach(function(wt){wt.style.borderColor=wt===Pt?At.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Ct)},kt}(ue),It=function(){function qt(kt,Ct,Pt){this._state="new",this._isSelected=!1,this._container=kt,this._overlayContainer=Ct,this.globalSettings=Pt,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(qt.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(qt.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(qt.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(qt.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(qt.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),qt.prototype.ownsTarget=function(kt){return!1},Object.defineProperty(qt.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),qt.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},qt.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},qt.prototype.pointerDown=function(kt,Ct){},qt.prototype.dblClick=function(kt,Ct){},qt.prototype.manipulate=function(kt){},qt.prototype.pointerUp=function(kt){this.stateChanged()},qt.prototype.dispose=function(){},qt.prototype.addMarkerVisualToContainer=function(kt){this.container.childNodes.length>0?this.container.insertBefore(kt,this.container.childNodes[0]):this.container.appendChild(kt)},qt.prototype.getState=function(){return{typeName:qt.typeName,state:this.state,notes:this.notes}},qt.prototype.restoreState=function(kt){this._state=kt.state,this.notes=kt.notes},qt.prototype.scale=function(kt,Ct){},qt.prototype.colorChanged=function(kt){this.onColorChanged&&this.onColorChanged(kt),this.stateChanged()},qt.prototype.fillColorChanged=function(kt){this.onFillColorChanged&&this.onFillColorChanged(kt),this.stateChanged()},qt.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var kt=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),kt.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(kt)&&this.onStateChanged(this)}},qt.typeName="MarkerBase",qt}(),ye=function(){function qt(){this.findGripByVisual=this.findGripByVisual.bind(this)}return qt.prototype.findGripByVisual=function(kt){return this.topLeft.ownsTarget(kt)?this.topLeft:this.topCenter.ownsTarget(kt)?this.topCenter:this.topRight.ownsTarget(kt)?this.topRight:this.centerLeft.ownsTarget(kt)?this.centerLeft:this.centerRight.ownsTarget(kt)?this.centerRight:this.bottomLeft.ownsTarget(kt)?this.bottomLeft:this.bottomCenter.ownsTarget(kt)?this.bottomCenter:this.bottomRight.ownsTarget(kt)?this.bottomRight:void 0},qt}(),Ze=function(){function qt(){this.GRIP_SIZE=10,this.visual=Ht.createGroup(),this.visual.appendChild(Ht.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ht.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return qt.prototype.ownsTarget=function(kt){return kt===this.visual||kt===this.visual.childNodes[0]||kt===this.visual.childNodes[1]},qt}(),pe=function(){function qt(){}return qt.toITransformMatrix=function(kt){return{a:kt.a,b:kt.b,c:kt.c,d:kt.d,e:kt.e,f:kt.f}},qt.toSVGMatrix=function(kt,Ct){return kt.a=Ct.a,kt.b=Ct.b,kt.c=Ct.c,kt.d=Ct.d,kt.e=Ct.e,kt.f=Ct.f,kt},qt}(),be=function(qt){function kt(Ct,Pt,At){var wt=qt.call(this,Ct,Pt,At)||this;return wt.left=0,wt.top=0,wt.width=0,wt.height=0,wt.defaultSize={x:50,y:20},wt.offsetX=0,wt.offsetY=0,wt.rotationAngle=0,wt.CB_DISTANCE=10,wt._suppressMarkerCreateEvent=!1,wt.container.transform.baseVal.appendItem(Ht.createTransform()),wt.setupControlBox(),wt}return Ft(kt,qt),Object.defineProperty(kt.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(kt.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(kt.prototype,"visual",{get:function(){return this._visual},set:function(Ct){this._visual=Ct;var Pt=Ht.createTransform();this._visual.transform.baseVal.appendItem(Pt)},enumerable:!1,configurable:!0}),kt.prototype.ownsTarget=function(Ct){return!!qt.prototype.ownsTarget.call(this,Ct)||!!(this.controlGrips.findGripByVisual(Ct)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ct))},kt.prototype.pointerDown=function(Ct,Pt){qt.prototype.pointerDown.call(this,Ct,Pt),this.state==="new"&&(this.left=Ct.x,this.top=Ct.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var At=this.unrotatePoint(Ct);if(this.manipulationStartX=At.x,this.manipulationStartY=At.y,this.offsetX=At.x-this.left,this.offsetY=At.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Pt),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Pt)){this.activeGrip=this.rotatorGrip;var wt=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=wt.x-this.width/2,this.top=wt.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Xt=this.container.transform.baseVal.getItem(0);Xt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Xt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},kt.prototype.pointerUp=function(Ct){var Pt=this.state;qt.prototype.pointerUp.call(this,Ct),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Ct),this._state="select",Pt==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},kt.prototype.moveVisual=function(Ct){this.visual.style.transform="translate("+Ct.x+"px, "+Ct.y+"px)"},kt.prototype.manipulate=function(Ct){var Pt=this.unrotatePoint(Ct);this.state==="creating"?this.resize(Ct):this.state==="move"?(this.left=this.manipulationStartLeft+(Pt.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Pt.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Pt):this.state==="rotate"&&this.rotate(Ct)},kt.prototype.resize=function(Ct){var Pt=this.manipulationStartLeft,At=this.manipulationStartWidth,wt=this.manipulationStartTop,Xt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Pt=this.manipulationStartLeft+Ct.x-this.manipulationStartX,At=this.manipulationStartWidth+this.manipulationStartLeft-Pt;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:At=this.manipulationStartWidth+Ct.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:wt=this.manipulationStartTop+Ct.y-this.manipulationStartY,Xt=this.manipulationStartHeight+this.manipulationStartTop-wt;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Xt=this.manipulationStartHeight+Ct.y-this.manipulationStartY}At>=0?(this.left=Pt,this.width=At):(this.left=Pt+At,this.width=-At),Xt>=0?(this.top=wt,this.height=Xt):(this.top=wt+Xt,this.height=-Xt),this.setSize()},kt.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},kt.prototype.rotate=function(Ct){if(Math.abs(Ct.x-this.centerX)>.1){var Pt=Math.sign(Ct.x-this.centerX);this.rotationAngle=180*Math.atan((Ct.y-this.centerY)/(Ct.x-this.centerX))/Math.PI+90*Pt,this.applyRotation()}},kt.prototype.applyRotation=function(){var Ct=this.container.transform.baseVal.getItem(0);Ct.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ct,0)},kt.prototype.rotatePoint=function(Ct){if(this.rotationAngle===0)return Ct;var Pt=this.container.getCTM(),At=Ht.createPoint(Ct.x,Ct.y);return{x:(At=At.matrixTransform(Pt)).x,y:At.y}},kt.prototype.unrotatePoint=function(Ct){if(this.rotationAngle===0)return Ct;var Pt=this.container.getCTM();Pt=Pt.inverse();var At=Ht.createPoint(Ct.x,Ct.y);return{x:(At=At.matrixTransform(Pt)).x,y:At.y}},kt.prototype.select=function(){qt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},kt.prototype.deselect=function(){qt.prototype.deselect.call(this),this.controlBox.style.display="none"},kt.prototype.setupControlBox=function(){this.controlBox=Ht.createGroup();var Ct=Ht.createTransform();Ct.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Ct),this.container.appendChild(this.controlBox),this.controlRect=Ht.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=Ht.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 ye,this.addControlGrips(),this.controlBox.style.display="none"},kt.prototype.adjustControlBox=function(){var Ct=this.controlBox.transform.baseVal.getItem(0);Ct.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Ct,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()},kt.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()},kt.prototype.createGrip=function(){var Ct=new Ze;return Ct.visual.transform.baseVal.appendItem(Ht.createTransform()),this.controlBox.appendChild(Ct.visual),Ct},kt.prototype.positionGrips=function(){var Ct=this.controlGrips.topLeft.GRIP_SIZE,Pt=-Ct/2,At=Pt,wt=(this.width+this.CB_DISTANCE)/2-Ct/2,Xt=(this.height+this.CB_DISTANCE)/2-Ct/2,Re=this.height+this.CB_DISTANCE-Ct/2,We=this.width+this.CB_DISTANCE-Ct/2;this.positionGrip(this.controlGrips.topLeft.visual,Pt,At),this.positionGrip(this.controlGrips.topCenter.visual,wt,At),this.positionGrip(this.controlGrips.topRight.visual,We,At),this.positionGrip(this.controlGrips.centerLeft.visual,Pt,Xt),this.positionGrip(this.controlGrips.centerRight.visual,We,Xt),this.positionGrip(this.controlGrips.bottomLeft.visual,Pt,Re),this.positionGrip(this.controlGrips.bottomCenter.visual,wt,Re),this.positionGrip(this.controlGrips.bottomRight.visual,We,Re),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,wt,At-3*this.CB_DISTANCE)},kt.prototype.positionGrip=function(Ct,Pt,At){var wt=Ct.transform.baseVal.getItem(0);wt.setTranslate(Pt,At),Ct.transform.baseVal.replaceItem(wt,0)},kt.prototype.hideControlBox=function(){this.controlBox.style.display="none"},kt.prototype.showControlBox=function(){this.controlBox.style.display=""},kt.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:pe.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:pe.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},qt.prototype.getState.call(this))},kt.prototype.restoreState=function(Ct){qt.prototype.restoreState.call(this,Ct);var Pt=Ct;this.left=Pt.left,this.top=Pt.top,this.width=Pt.width,this.height=Pt.height,this.rotationAngle=Pt.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(pe.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Pt.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(pe.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Pt.containerTransformMatrix))},kt.prototype.scale=function(Ct,Pt){qt.prototype.scale.call(this,Ct,Pt);var At=this.rotatePoint({x:this.left,y:this.top}),wt=this.unrotatePoint({x:At.x*Ct,y:At.y*Pt});this.left=wt.x,this.top=wt.y,this.width=this.width*Ct,this.height=this.height*Pt,this.adjustControlBox()},kt}(It),Rt=function(qt){function kt(Ct,Pt,At){var wt=qt.call(this,Ct,Pt,At)||this;return wt.fillColor="transparent",wt.strokeColor="transparent",wt.strokeWidth=0,wt.strokeDasharray="",wt.opacity=1,wt.setStrokeColor=wt.setStrokeColor.bind(wt),wt.setFillColor=wt.setFillColor.bind(wt),wt.setStrokeWidth=wt.setStrokeWidth.bind(wt),wt.setStrokeDasharray=wt.setStrokeDasharray.bind(wt),wt.createVisual=wt.createVisual.bind(wt),wt}return Ft(kt,qt),kt.prototype.ownsTarget=function(Ct){return!(!qt.prototype.ownsTarget.call(this,Ct)&&Ct!==this.visual)},kt.prototype.createVisual=function(){this.visual=Ht.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)},kt.prototype.pointerDown=function(Ct,Pt){qt.prototype.pointerDown.call(this,Ct,Pt),this.state==="new"&&(this.createVisual(),this.moveVisual(Ct),this._state="creating")},kt.prototype.manipulate=function(Ct){qt.prototype.manipulate.call(this,Ct)},kt.prototype.resize=function(Ct){qt.prototype.resize.call(this,Ct),this.setSize()},kt.prototype.setSize=function(){qt.prototype.setSize.call(this),Ht.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},kt.prototype.pointerUp=function(Ct){qt.prototype.pointerUp.call(this,Ct),this.setSize()},kt.prototype.setStrokeColor=function(Ct){this.strokeColor=Ct,this.visual&&Ht.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Ct),this.stateChanged()},kt.prototype.setFillColor=function(Ct){this.fillColor=Ct,this.visual&&Ht.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},kt.prototype.setStrokeWidth=function(Ct){this.strokeWidth=Ct,this.visual&&Ht.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},kt.prototype.setStrokeDasharray=function(Ct){this.strokeDasharray=Ct,this.visual&&Ht.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},kt.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},qt.prototype.getState.call(this))},kt.prototype.restoreState=function(Ct){var Pt=Ct;this.fillColor=Pt.fillColor,this.strokeColor=Pt.strokeColor,this.strokeWidth=Pt.strokeWidth,this.strokeDasharray=Pt.strokeDasharray,this.opacity=Pt.opacity,this.createVisual(),qt.prototype.restoreState.call(this,Ct),this.setSize()},kt.prototype.scale=function(Ct,Pt){qt.prototype.scale.call(this,Ct,Pt),this.setSize()},kt.title="Rectangle marker",kt}(be),zt=function(qt){function kt(Ct,Pt,At,wt){var Xt=qt.call(this,Ct,wt||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Xt.widths=[],Xt.widthBoxes=[],Xt.widths=Pt,Xt.currentWidth=At,Xt.setCurrentWidth=Xt.setCurrentWidth.bind(Xt),Xt}return Ft(kt,qt),kt.prototype.getUi=function(){var Ct=this,Pt=document.createElement("div");return Pt.style.display="flex",Pt.style.overflow="hidden",Pt.style.flexGrow="2",this.widths.forEach(function(At){var wt=document.createElement("div");wt.style.display="flex",wt.style.flexGrow="2",wt.style.alignItems="center",wt.style.justifyContent="space-between",wt.style.padding="5px",wt.style.borderWidth="2px",wt.style.borderStyle="solid",wt.style.borderColor=At===Ct.currentWidth?Ct.uiStyleSettings.toolboxAccentColor:"transparent",wt.addEventListener("click",function(){Ct.setCurrentWidth(At,wt)}),Pt.appendChild(wt);var Xt=document.createElement("div");Xt.innerText=At.toString(),Xt.style.marginRight="5px",wt.appendChild(Xt);var Re=document.createElement("div");Re.style.minHeight="20px",Re.style.flexGrow="2",Re.style.display="flex",Re.style.alignItems="center";var We=document.createElement("hr");We.style.minWidth="20px",We.style.border="0px",We.style.borderTop=At+"px solid "+Ct.uiStyleSettings.toolboxColor,We.style.flexGrow="2",Re.appendChild(We),wt.appendChild(Re),Ct.widthBoxes.push(wt)}),Pt},kt.prototype.setCurrentWidth=function(Ct,Pt){var At=this;this.currentWidth=Ct,this.widthBoxes.forEach(function(wt){wt.style.borderColor=wt===Pt?At.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},kt}(ue),Qt=function(qt){function kt(Ct,Pt,At,wt){var Xt=qt.call(this,Ct,wt||'<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 Xt.styles=[],Xt.styleBoxes=[],Xt.styles=Pt,Xt.currentStyle=At,Xt.setCurrentStyle=Xt.setCurrentStyle.bind(Xt),Xt}return Ft(kt,qt),kt.prototype.getUi=function(){var Ct=this,Pt=document.createElement("div");return Pt.style.display="flex",Pt.style.overflow="hidden",Pt.style.flexGrow="2",this.styles.forEach(function(At){var wt=document.createElement("div");wt.style.display="flex",wt.style.alignItems="center",wt.style.justifyContent="space-between",wt.style.padding="5px",wt.style.borderWidth="2px",wt.style.borderStyle="solid",wt.style.overflow="hidden",wt.style.maxWidth=100/Ct.styles.length-5+"%",wt.style.borderColor=At===Ct.currentStyle?Ct.uiStyleSettings.toolboxAccentColor:"transparent",wt.addEventListener("click",function(){Ct.setCurrentStyle(At,wt)}),Pt.appendChild(wt);var Xt=document.createElement("div");Xt.style.minHeight="20px",Xt.style.flexGrow="2",Xt.style.overflow="hidden";var Re=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Ct.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(At!==""?'stroke-dasharray="'+At+'"':"")+` />
|
|
|
</svg>`;Xt.innerHTML=Re,wt.appendChild(Xt),Ct.styleBoxes.push(wt)}),Pt},kt.prototype.setCurrentStyle=function(Ct,Pt){var At=this;this.currentStyle=Ct,this.styleBoxes.forEach(function(wt){wt.style.borderColor=wt===Pt?At.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},kt}(ue),te=function(qt){function kt(Ct,Pt,At){var wt=qt.call(this,Ct,Pt,At)||this;return wt.strokeColor=At.defaultColor,wt.strokeWidth=At.defaultStrokeWidth,wt.strokeDasharray=At.defaultStrokeDasharray,wt.strokePanel=new he("Line color",At.defaultColorSet,At.defaultColor),wt.strokePanel.onColorChanged=wt.setStrokeColor,wt.strokeWidthPanel=new zt("Line width",At.defaultStrokeWidths,At.defaultStrokeWidth),wt.strokeWidthPanel.onWidthChanged=wt.setStrokeWidth,wt.strokeStylePanel=new Qt("Line style",At.defaultStrokeDasharrays,At.defaultStrokeDasharray),wt.strokeStylePanel.onStyleChanged=wt.setStrokeDasharray,wt}return Ft(kt,qt),Object.defineProperty(kt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),kt.prototype.getState=function(){var Ct=qt.prototype.getState.call(this);return Ct.typeName=kt.typeName,Ct},kt.typeName="FrameMarker",kt.title="Frame marker",kt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',kt}(Rt),Ie=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"},He=function(qt){function kt(Ct,Pt,At){var wt=qt.call(this,Ct,Pt,At)||this;return wt.x1=0,wt.y1=0,wt.x2=0,wt.y2=0,wt.defaultLength=50,wt.manipulationStartX=0,wt.manipulationStartY=0,wt.manipulationStartX1=0,wt.manipulationStartY1=0,wt.manipulationStartX2=0,wt.manipulationStartY2=0,wt.setupControlBox(),wt}return Ft(kt,qt),kt.prototype.ownsTarget=function(Ct){return!!qt.prototype.ownsTarget.call(this,Ct)||!(!this.grip1.ownsTarget(Ct)&&!this.grip2.ownsTarget(Ct))},kt.prototype.pointerDown=function(Ct,Pt){qt.prototype.pointerDown.call(this,Ct,Pt),this.manipulationStartX=Ct.x,this.manipulationStartY=Ct.y,this.state==="new"&&(this.x1=Ct.x,this.y1=Ct.y,this.x2=Ct.x,this.y2=Ct.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(Pt)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Pt)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},kt.prototype.pointerUp=function(Ct){var Pt=this.state;qt.prototype.pointerUp.call(this,Ct),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(Ct),this._state="select",Pt==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},kt.prototype.adjustVisual=function(){},kt.prototype.manipulate=function(Ct){this.state==="creating"?this.resize(Ct):this.state==="move"?(this.x1=this.manipulationStartX1+Ct.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Ct.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Ct.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Ct.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Ct)},kt.prototype.resize=function(Ct){switch(this.activeGrip){case this.grip1:this.x1=Ct.x,this.y1=Ct.y;break;case this.grip2:case void 0:this.x2=Ct.x,this.y2=Ct.y}this.adjustVisual(),this.adjustControlBox()},kt.prototype.select=function(){qt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},kt.prototype.deselect=function(){qt.prototype.deselect.call(this),this.controlBox.style.display="none"},kt.prototype.setupControlBox=function(){this.controlBox=Ht.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},kt.prototype.adjustControlBox=function(){this.positionGrips()},kt.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},kt.prototype.createGrip=function(){var Ct=new Ze;return Ct.visual.transform.baseVal.appendItem(Ht.createTransform()),this.controlBox.appendChild(Ct.visual),Ct},kt.prototype.positionGrips=function(){var Ct=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Ct/2,this.y1-Ct/2),this.positionGrip(this.grip2.visual,this.x2-Ct/2,this.y2-Ct/2)},kt.prototype.positionGrip=function(Ct,Pt,At){var wt=Ct.transform.baseVal.getItem(0);wt.setTranslate(Pt,At),Ct.transform.baseVal.replaceItem(wt,0)},kt.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},qt.prototype.getState.call(this))},kt.prototype.restoreState=function(Ct){qt.prototype.restoreState.call(this,Ct);var Pt=Ct;this.x1=Pt.x1,this.y1=Pt.y1,this.x2=Pt.x2,this.y2=Pt.y2},kt.prototype.scale=function(Ct,Pt){qt.prototype.scale.call(this,Ct,Pt),this.x1=this.x1*Ct,this.y1=this.y1*Pt,this.x2=this.x2*Ct,this.y2=this.y2*Pt,this.adjustVisual(),this.adjustControlBox()},kt}(It),en=function(qt){function kt(Ct,Pt,At){var wt=qt.call(this,Ct,Pt,At)||this;return wt.strokeColor="transparent",wt.strokeWidth=0,wt.strokeDasharray="",wt.setStrokeColor=wt.setStrokeColor.bind(wt),wt.setStrokeWidth=wt.setStrokeWidth.bind(wt),wt.setStrokeDasharray=wt.setStrokeDasharray.bind(wt),wt.strokeColor=At.defaultColor,wt.strokeWidth=At.defaultStrokeWidth,wt.strokeDasharray=At.defaultStrokeDasharray,wt.strokePanel=new he("Line color",At.defaultColorSet,At.defaultColor),wt.strokePanel.onColorChanged=wt.setStrokeColor,wt.strokeWidthPanel=new zt("Line width",At.defaultStrokeWidths,At.defaultStrokeWidth),wt.strokeWidthPanel.onWidthChanged=wt.setStrokeWidth,wt.strokeStylePanel=new Qt("Line style",At.defaultStrokeDasharrays,At.defaultStrokeDasharray),wt.strokeStylePanel.onStyleChanged=wt.setStrokeDasharray,wt}return Ft(kt,qt),kt.prototype.ownsTarget=function(Ct){return!(!qt.prototype.ownsTarget.call(this,Ct)&&Ct!==this.visual&&Ct!==this.selectorLine&&Ct!==this.visibleLine)},kt.prototype.createVisual=function(){this.visual=Ht.createGroup(),this.selectorLine=Ht.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ht.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)},kt.prototype.pointerDown=function(Ct,Pt){qt.prototype.pointerDown.call(this,Ct,Pt),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},kt.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()),Ht.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ht.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ht.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},kt.prototype.setStrokeColor=function(Ct){this.strokeColor=Ct,this.adjustVisual(),this.colorChanged(Ct)},kt.prototype.setStrokeWidth=function(Ct){this.strokeWidth=Ct,this.adjustVisual()},kt.prototype.setStrokeDasharray=function(Ct){this.strokeDasharray=Ct,this.adjustVisual(),this.stateChanged()},Object.defineProperty(kt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),kt.prototype.getState=function(){var Ct=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},qt.prototype.getState.call(this));return Ct.typeName=kt.typeName,Ct},kt.prototype.restoreState=function(Ct){qt.prototype.restoreState.call(this,Ct);var Pt=Ct;this.strokeColor=Pt.strokeColor,this.strokeWidth=Pt.strokeWidth,this.strokeDasharray=Pt.strokeDasharray,this.createVisual(),this.adjustVisual()},kt.typeName="LineMarker",kt.title="Line marker",kt.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',kt}(He),ie=function(qt){function kt(Ct,Pt,At,wt){var Xt=qt.call(this,Ct,wt||'<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 Xt.fonts=[],Xt.fontBoxes=[],Xt.fonts=Pt,Xt.currentFont=At,Xt.setCurrentFont=Xt.setCurrentFont.bind(Xt),Xt}return Ft(kt,qt),kt.prototype.getUi=function(){var Ct=this,Pt=document.createElement("div");return Pt.style.overflow="hidden",Pt.style.flexGrow="2",this.fonts.forEach(function(At){var wt=document.createElement("div");wt.style.display="inline-block",wt.style.alignItems="center",wt.style.justifyContent="space-between",wt.style.padding="5px",wt.style.borderWidth="2px",wt.style.borderStyle="solid",wt.style.overflow="hidden",wt.style.maxWidth=100/Ct.fonts.length-5+"%",wt.style.borderColor=At===Ct.currentFont?Ct.uiStyleSettings.toolboxAccentColor:"transparent",wt.addEventListener("click",function(){Ct.setCurrentFont(At,wt)}),Pt.appendChild(wt);var Xt=document.createElement("div");Xt.style.display="flex",Xt.style.minHeight="20px",Xt.style.flexGrow="2",Xt.style.fontFamily=At,Xt.style.overflow="hidden";var Re=document.createElement("div");Re.style.whiteSpace="nowrap",Re.style.overflow="hidden",Re.style.textOverflow="ellipsis",Re.innerHTML="The quick brown fox jumps over the lazy dog",Xt.appendChild(Re),wt.appendChild(Xt),Ct.fontBoxes.push(wt)}),Pt},kt.prototype.setCurrentFont=function(Ct,Pt){var At=this;this.currentFont=Ct,this.fontBoxes.forEach(function(wt){wt.style.borderColor=wt===Pt?At.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},kt}(ue),an=function(qt){function kt(Ct,Pt,At){var wt=qt.call(this,Ct,Pt,At)||this;return wt.color="transparent",wt.padding=5,wt.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",wt.text=wt.DEFAULT_TEXT,wt.isMoved=!1,wt.color=At.defaultColor,wt.fontFamily=At.defaultFontFamily,wt.defaultSize={x:100,y:30},wt.setColor=wt.setColor.bind(wt),wt.setFont=wt.setFont.bind(wt),wt.renderText=wt.renderText.bind(wt),wt.sizeText=wt.sizeText.bind(wt),wt.textEditDivClicked=wt.textEditDivClicked.bind(wt),wt.showTextEditor=wt.showTextEditor.bind(wt),wt.setSize=wt.setSize.bind(wt),wt.positionTextEditor=wt.positionTextEditor.bind(wt),wt.colorPanel=new he("Color",At.defaultColorSet,At.defaultColor),wt.colorPanel.onColorChanged=wt.setColor,wt.fontFamilyPanel=new ie("Font",At.defaultFontFamilies,At.defaultFontFamily),wt.fontFamilyPanel.onFontChanged=wt.setFont,wt}return Ft(kt,qt),kt.prototype.ownsTarget=function(Ct){if(qt.prototype.ownsTarget.call(this,Ct)||Ct===this.visual||Ct===this.textElement||Ct===this.bgRectangle)return!0;var Pt=!1;return this.textElement.childNodes.forEach(function(At){At===Ct&&(Pt=!0)}),Pt},kt.prototype.createVisual=function(){this.visual=Ht.createGroup(),this.bgRectangle=Ht.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ht.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ht.createTransform()),this.textElement.transform.baseVal.appendItem(Ht.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},kt.prototype.pointerDown=function(Ct,Pt){qt.prototype.pointerDown.call(this,Ct,Pt),this.isMoved=!1,this.pointerDownPoint=Ct,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Ct),this._state="creating")},kt.prototype.renderText=function(){var Ct=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(Pt){Ct.textElement.appendChild(Ht.createTSpan(Pt.trim()===""?" ":Pt.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},kt.prototype.getTextScale=function(){var Ct=this.textElement.getBBox(),Pt=1;if(Ct.width>0&&Ct.height>0){var At=(1*this.width-this.width*this.padding*2/100)/Ct.width,wt=(1*this.height-this.height*this.padding*2/100)/Ct.height;Pt=Math.min(At,wt)}return Pt},kt.prototype.getTextPosition=function(Ct){var Pt=this.textElement.getBBox(),At=0,wt=0;return Pt.width>0&&Pt.height>0&&(At=(this.width-Pt.width*Ct)/2,wt=this.height/2-Pt.height*Ct/2),{x:At,y:wt}},kt.prototype.sizeText=function(){var Ct=this.textElement.getBBox(),Pt=this.getTextScale(),At=this.getTextPosition(Pt);At.y-=Ct.y*Pt,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+At.x+"px, "+At.y+"px) scale("+Pt+", "+Pt+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(At.x,At.y),this.textElement.transform.baseVal.getItem(1).setScale(Pt,Pt))},kt.prototype.manipulate=function(Ct){qt.prototype.manipulate.call(this,Ct),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Ct.x-this.pointerDownPoint.x)>5||Math.abs(Ct.y-this.pointerDownPoint.y)>5)},kt.prototype.resize=function(Ct){qt.prototype.resize.call(this,Ct),this.isMoved=!0,this.setSize(),this.sizeText()},kt.prototype.setSize=function(){qt.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ht.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ht.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},kt.prototype.pointerUp=function(Ct){var Pt=this.state;Pt==="creating"&&(this._suppressMarkerCreateEvent=!0),qt.prototype.pointerUp.call(this,Ct),this.setSize(),(Pt==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},kt.prototype.showTextEditor=function(){var Ct=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(Pt){Pt.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Pt=Number.parseFloat(Ct.textEditor.style.fontSize);Ct.textEditor.clientWidth>=Number.parseInt(Ct.textEditor.style.maxWidth)&&Pt>.9;)Pt-=.1,Ct.textEditor.style.fontSize=Math.max(Pt,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Pt){Pt.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Pt){if(Pt.clipboardData){var At=Pt.clipboardData.getData("text"),wt=window.getSelection();if(!wt.rangeCount)return!1;wt.deleteFromDocument(),wt.getRangeAt(0).insertNode(document.createTextNode(At)),Pt.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Ct.textEditDivClicked(Ct.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},kt.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Ct=this.getTextScale(),Pt=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),At=this.textElement.getBBox(),wt={x:At.width*Ct,y:At.height*Ct};Pt.x-=wt.x/2,Pt.y-=wt.y/2,this.textEditor.style.top=Pt.y+"px",this.textEditor.style.left=Pt.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Pt.x+"px",this.textEditor.style.fontSize=Math.max(16*Ct,12)+"px",this.textElement.style.display="none"}},kt.prototype.textEditDivClicked=function(Ct){this.text=Ct.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},kt.prototype.select=function(){qt.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},kt.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),qt.prototype.deselect.call(this)},kt.prototype.dblClick=function(Ct,Pt){qt.prototype.dblClick.call(this,Ct,Pt),this.showTextEditor()},kt.prototype.setColor=function(Ct){this.textElement&&Ht.setAttributes(this.textElement,[["fill",Ct]]),this.color=Ct,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Ct)},kt.prototype.setFont=function(Ct){this.textElement&&Ht.setAttributes(this.textElement,[["font-family",Ct]]),this.fontFamily=Ct,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},kt.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},kt.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(kt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),kt.prototype.getState=function(){var Ct=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},qt.prototype.getState.call(this));return Ct.typeName=kt.typeName,Ct},kt.prototype.restoreState=function(Ct){var Pt=Ct;this.color=Pt.color,this.fontFamily=Pt.fontFamily,this.padding=Pt.padding,this.text=Pt.text,this.createVisual(),qt.prototype.restoreState.call(this,Ct),this.setSize()},kt.prototype.scale=function(Ct,Pt){qt.prototype.scale.call(this,Ct,Pt),this.setSize(),this.sizeText(),this.positionTextEditor()},kt.typeName="TextMarker",kt.title="Text marker",kt.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>',kt}(be),nn=function(qt){function kt(Ct,Pt,At){var wt=qt.call(this,Ct,Pt,At)||this;return wt.color="transparent",wt.lineWidth=3,wt.drawing=!1,wt.pixelRatio=1,wt.color=At.defaultColor,wt.lineWidth=At.defaultStrokeWidth,wt.pixelRatio=At.freehandPixelRatio,wt.setColor=wt.setColor.bind(wt),wt.addCanvas=wt.addCanvas.bind(wt),wt.finishCreation=wt.finishCreation.bind(wt),wt.setLineWidth=wt.setLineWidth.bind(wt),wt.colorPanel=new he("Color",At.defaultColorSet,At.defaultColor),wt.colorPanel.onColorChanged=wt.setColor,wt.lineWidthPanel=new zt("Line width",At.defaultStrokeWidths,At.defaultStrokeWidth),wt.lineWidthPanel.onWidthChanged=wt.setLineWidth,wt}return Ft(kt,qt),kt.prototype.ownsTarget=function(Ct){return!(!qt.prototype.ownsTarget.call(this,Ct)&&Ct!==this.visual&&Ct!==this.drawingImage)},kt.prototype.createVisual=function(){this.visual=Ht.createGroup(),this.drawingImage=Ht.createImage(),this.visual.appendChild(this.drawingImage);var Ct=Ht.createTransform();this.visual.transform.baseVal.appendItem(Ct),this.addMarkerVisualToContainer(this.visual)},kt.prototype.pointerDown=function(Ct,Pt){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(Ct.x,Ct.y),this.drawing=!0):qt.prototype.pointerDown.call(this,Ct,Pt)},kt.prototype.manipulate=function(Ct){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Ct.x,Ct.y),this.canvasContext.stroke()):qt.prototype.manipulate.call(this,Ct)},kt.prototype.resize=function(Ct){qt.prototype.resize.call(this,Ct),Ht.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ht.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},kt.prototype.pointerUp=function(Ct){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):qt.prototype.pointerUp.call(this,Ct)},kt.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)},kt.prototype.select=function(){this.state==="creating"&&this.finishCreation(),qt.prototype.select.call(this)},kt.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),qt.prototype.deselect.call(this)},kt.prototype.finishCreation=function(){for(var Ct=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Pt=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],At=Pt[0],wt=Pt[1],Xt=Pt[2],Re=Pt[3],We=!1,In=0;In<this.canvasElement.height;In++)for(var Hn=0;Hn<this.canvasElement.width;Hn++)Ct.data[In*this.canvasElement.width*4+4*Hn+3]>0&&(We=!0,In<wt&&(wt=In),Hn<At&&(At=Hn),In>Re&&(Re=In),Hn>Xt&&(Xt=Hn));if(We){this.left=At/this.pixelRatio,this.top=wt/this.pixelRatio,this.width=(Xt-At)/this.pixelRatio,this.height=(Re-wt)/this.pixelRatio;var Un=document.createElement("canvas");Un.width=Xt-At,Un.height=Re-wt,Un.getContext("2d").putImageData(this.canvasContext.getImageData(At,wt,Xt-At,Re-wt),0,0),this.drawingImgUrl=Un.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},kt.prototype.setDrawingImage=function(){Ht.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ht.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},kt.prototype.setColor=function(Ct){this.color=Ct,this.colorChanged(Ct)},kt.prototype.setLineWidth=function(Ct){this.lineWidth=Ct},Object.defineProperty(kt.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),kt.prototype.getState=function(){var Ct=Object.assign({drawingImgUrl:this.drawingImgUrl},qt.prototype.getState.call(this));return Ct.typeName=kt.typeName,Ct},kt.prototype.restoreState=function(Ct){this.createVisual(),qt.prototype.restoreState.call(this,Ct),this.drawingImgUrl=Ct.drawingImgUrl,this.setDrawingImage()},kt.prototype.scale=function(Ct,Pt){qt.prototype.scale.call(this,Ct,Pt),this.setDrawingImage()},kt.typeName="FreehandMarker",kt.title="Freehand marker",kt.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>',kt}(be),Vn=function(qt){function kt(Ct,Pt,At){var wt=qt.call(this,Ct,At||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return wt.typeBoxes=[],wt.currentType=Pt,wt.setCurrentType=wt.setCurrentType.bind(wt),wt}return Ft(kt,qt),kt.prototype.getUi=function(){var Ct=this,Pt=document.createElement("div");Pt.style.display="flex",Pt.style.overflow="hidden",Pt.style.flexGrow="2";for(var At=function(Re){var We="both";switch(Re){case 0:We="both";break;case 1:We="start";break;case 2:We="end";break;case 3:We="none"}var In=document.createElement("div");if(In.style.display="flex",In.style.flexGrow="2",In.style.alignItems="center",In.style.justifyContent="space-between",In.style.padding="5px",In.style.borderWidth="2px",In.style.borderStyle="solid",In.style.borderColor=We===wt.currentType?wt.uiStyleSettings.toolboxAccentColor:"transparent",In.addEventListener("click",function(){Ct.setCurrentType(We,In)}),Pt.appendChild(In),We==="both"||We==="start"){var Hn=document.createElement("div");Hn.style.display="flex",Hn.style.alignItems="center",Hn.style.minHeight="20px",Hn.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="`+(wt.uiStyleSettings!==void 0?wt.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Hn.style.marginLeft="5px",In.appendChild(Hn)}var Un=document.createElement("div");Un.style.display="flex",Un.style.alignItems="center",Un.style.minHeight="20px",Un.style.flexGrow="2";var Yn=document.createElement("hr");if(Yn.style.minWidth="20px",Yn.style.border="0px",Yn.style.borderTop="3px solid "+(wt.uiStyleSettings!==void 0?wt.uiStyleSettings.toolboxColor:"#eeeeee"),Yn.style.flexGrow="2",Un.appendChild(Yn),In.appendChild(Un),We==="both"||We==="end"){var Fe=document.createElement("div");Fe.style.display="flex",Fe.style.alignItems="center",Fe.style.minHeight="20px",Fe.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="`+(wt.uiStyleSettings!==void 0?wt.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Fe.style.marginRight="5px",In.appendChild(Fe)}wt.typeBoxes.push(In)},wt=this,Xt=0;Xt<4;Xt++)At(Xt);return Pt},kt.prototype.setCurrentType=function(Ct,Pt){var At=this;this.currentType=Ct,this.typeBoxes.forEach(function(wt){wt.style.borderColor=wt===Pt?At.uiStyleSettings!==void 0?At.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},kt}(ue),Ne=function(qt){function kt(Ct,Pt,At){var wt=qt.call(this,Ct,Pt,At)||this;return wt.arrowType="end",wt.arrowBaseHeight=10,wt.arrowBaseWidth=10,wt.getArrowPoints=wt.getArrowPoints.bind(wt),wt.setArrowType=wt.setArrowType.bind(wt),wt.arrowTypePanel=new Vn("Arrow type","end"),wt.arrowTypePanel.onArrowTypeChanged=wt.setArrowType,wt}return Ft(kt,qt),kt.prototype.ownsTarget=function(Ct){return!(!qt.prototype.ownsTarget.call(this,Ct)&&Ct!==this.arrow1&&Ct!==this.arrow2)},kt.prototype.getArrowPoints=function(Ct,Pt){var At=this.arrowBaseWidth+2*this.strokeWidth,wt=this.arrowBaseHeight+2*this.strokeWidth;return Ct-At/2+","+(Pt+wt/2)+" "+Ct+","+(Pt-wt/2)+" "+(Ct+At/2)+","+(Pt+wt/2)},kt.prototype.createTips=function(){this.arrow1=Ht.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ht.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ht.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ht.createTransform()),this.visual.appendChild(this.arrow2)},kt.prototype.pointerDown=function(Ct,Pt){qt.prototype.pointerDown.call(this,Ct,Pt),this.state==="creating"&&this.createTips()},kt.prototype.adjustVisual=function(){if(qt.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",Ht.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ht.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var Ct=0;Math.abs(this.x1-this.x2)>.1&&(Ct=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Pt=this.arrow1.transform.baseVal.getItem(0);Pt.setRotate(Ct,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Pt,0);var At=this.arrow2.transform.baseVal.getItem(0);At.setRotate(Ct+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(At,0)}},kt.prototype.setArrowType=function(Ct){this.arrowType=Ct,this.adjustVisual(),this.stateChanged()},Object.defineProperty(kt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),kt.prototype.getState=function(){var Ct=Object.assign({arrowType:this.arrowType},qt.prototype.getState.call(this));return Ct.typeName=kt.typeName,Ct},kt.prototype.restoreState=function(Ct){qt.prototype.restoreState.call(this,Ct);var Pt=Ct;this.arrowType=Pt.arrowType,this.createTips(),this.adjustVisual()},kt.typeName="ArrowMarker",kt.title="Arrow marker",kt.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',kt}(en),Ye=function(qt){function kt(Ct,Pt,At){var wt=qt.call(this,Ct,Pt,At)||this;return wt.fillColor=At.defaultFillColor,wt.strokeWidth=0,wt.fillPanel=new he("Color",At.defaultColorSet,At.defaultFillColor),wt.fillPanel.onColorChanged=wt.setFillColor,wt}return Ft(kt,qt),Object.defineProperty(kt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),kt.prototype.getState=function(){var Ct=qt.prototype.getState.call(this);return Ct.typeName=kt.typeName,Ct},kt.typeName="CoverMarker",kt.title="Cover marker",kt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',kt}(Rt),zn=function(qt){function kt(Ct,Pt,At,wt){var Xt=qt.call(this,Ct,wt||'<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 Xt.opacities=[],Xt.opacityBoxes=[],Xt.opacities=Pt,Xt.currentOpacity=At,Xt.setCurrentOpacity=Xt.setCurrentOpacity.bind(Xt),Xt}return Ft(kt,qt),kt.prototype.getUi=function(){var Ct=this,Pt=document.createElement("div");return Pt.style.display="flex",Pt.style.overflow="hidden",Pt.style.flexGrow="2",Pt.style.justifyContent="space-between",this.opacities.forEach(function(At){var wt=document.createElement("div");wt.style.display="flex",wt.style.alignItems="center",wt.style.justifyContent="center",wt.style.padding="5px",wt.style.borderWidth="2px",wt.style.borderStyle="solid",wt.style.borderColor=At===Ct.currentOpacity?Ct.uiStyleSettings.toolboxAccentColor:"transparent",wt.addEventListener("click",function(){Ct.setCurrentOpacity(At,wt)}),Pt.appendChild(wt);var Xt=document.createElement("div");Xt.innerText=100*At+"%",wt.appendChild(Xt),Ct.opacityBoxes.push(wt)}),Pt},kt.prototype.setCurrentOpacity=function(Ct,Pt){var At=this;this.currentOpacity=Ct,this.opacityBoxes.forEach(function(wt){wt.style.borderColor=wt===Pt?At.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},kt}(ue),Gn=function(qt){function kt(Ct,Pt,At){var wt=qt.call(this,Ct,Pt,At)||this;return wt.setOpacity=wt.setOpacity.bind(wt),wt.fillColor=At.defaultHighlightColor,wt.strokeWidth=0,wt.opacity=At.defaultHighlightOpacity,wt.fillPanel=new he("Color",At.defaultColorSet,wt.fillColor),wt.fillPanel.onColorChanged=wt.setFillColor,wt.opacityPanel=new zn("Opacity",At.defaultOpacitySteps,wt.opacity),wt.opacityPanel.onOpacityChanged=wt.setOpacity,wt}return Ft(kt,qt),kt.prototype.setOpacity=function(Ct){this.opacity=Ct,this.visual&&Ht.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(kt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),kt.prototype.getState=function(){var Ct=qt.prototype.getState.call(this);return Ct.typeName=kt.typeName,Ct},kt.typeName="HighlightMarker",kt.title="Highlight marker",kt.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>',kt}(Ye),Me='<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>',_t='<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>',rn=function(qt){function kt(Ct,Pt,At){var wt=qt.call(this,Ct,Pt,At)||this;return wt.bgColor="transparent",wt.tipPosition={x:0,y:0},wt.tipBase1Position={x:0,y:0},wt.tipBase2Position={x:0,y:0},wt.tipMoving=!1,wt.color=At.defaultStrokeColor,wt.bgColor=At.defaultFillColor,wt.fontFamily=At.defaultFontFamily,wt.defaultSize={x:100,y:30},wt.setBgColor=wt.setBgColor.bind(wt),wt.getTipPoints=wt.getTipPoints.bind(wt),wt.positionTip=wt.positionTip.bind(wt),wt.setTipPoints=wt.setTipPoints.bind(wt),wt.colorPanel=new he("Text color",At.defaultColorSet,wt.color,Me),wt.colorPanel.onColorChanged=wt.setColor,wt.bgColorPanel=new he("Fill color",At.defaultColorSet,wt.bgColor,_t),wt.bgColorPanel.onColorChanged=wt.setBgColor,wt.fontFamilyPanel=new ie("Font",At.defaultFontFamilies,At.defaultFontFamily),wt.fontFamilyPanel.onFontChanged=wt.setFont,wt.tipGrip=new Ze,wt.tipGrip.visual.transform.baseVal.appendItem(Ht.createTransform()),wt.controlBox.appendChild(wt.tipGrip.visual),wt}return Ft(kt,qt),kt.prototype.ownsTarget=function(Ct){return qt.prototype.ownsTarget.call(this,Ct)||this.tipGrip.ownsTarget(Ct)||this.tip===Ct},kt.prototype.createTip=function(){Ht.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ht.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},kt.prototype.pointerDown=function(Ct,Pt){this.state==="new"&&qt.prototype.pointerDown.call(this,Ct,Pt),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Pt)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):qt.prototype.pointerDown.call(this,Ct,Pt)},kt.prototype.pointerUp=function(Ct){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,qt.prototype.pointerUp.call(this,Ct);else{var Pt=this.state==="creating";qt.prototype.pointerUp.call(this,Ct),this.setTipPoints(Pt),this.positionTip()}},kt.prototype.manipulate=function(Ct){if(this.tipMoving){var Pt=this.unrotatePoint(Ct);this.tipPosition={x:Pt.x-this.manipulationStartLeft,y:Pt.y-this.manipulationStartTop},this.positionTip()}else qt.prototype.manipulate.call(this,Ct)},kt.prototype.setBgColor=function(Ct){this.bgRectangle&&this.tip&&(Ht.setAttributes(this.bgRectangle,[["fill",Ct]]),Ht.setAttributes(this.tip,[["fill",Ct]])),this.bgColor=Ct,this.fillColorChanged(Ct)},kt.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},kt.prototype.setTipPoints=function(Ct){Ct===void 0&&(Ct=!1);var Pt=Math.min(this.height/2,15),At=this.height/5;Ct&&(this.tipPosition={x:Pt+At/2,y:this.height+20});var wt=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?wt<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(At=this.width/5,Pt=Math.min(this.width/2,15),this.tipBase1Position={x:Pt,y:0},this.tipBase2Position={x:Pt+At,y:0}):(this.tipBase1Position={x:0,y:Pt},this.tipBase2Position={x:0,y:Pt+At}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?wt<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(At=this.width/5,Pt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Pt-At,y:0},this.tipBase2Position={x:this.width-Pt,y:0}):(this.tipBase1Position={x:this.width,y:Pt},this.tipBase2Position={x:this.width,y:Pt+At}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?wt<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(At=this.width/5,Pt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Pt-At,y:this.height},this.tipBase2Position={x:this.width-Pt,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Pt-At},this.tipBase2Position={x:this.width,y:this.height-Pt}):wt<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(At=this.width/5,Pt=Math.min(this.width/2,15),this.tipBase1Position={x:Pt,y:this.height},this.tipBase2Position={x:Pt+At,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Pt},this.tipBase2Position={x:0,y:this.height-Pt-At})},kt.prototype.resize=function(Ct){qt.prototype.resize.call(this,Ct),this.positionTip()},kt.prototype.positionTip=function(){Ht.setAttributes(this.tip,[["points",this.getTipPoints()]]);var Ct=this.tipGrip.visual.transform.baseVal.getItem(0);Ct.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(Ct,0)},Object.defineProperty(kt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),kt.prototype.select=function(){this.positionTip(),qt.prototype.select.call(this)},kt.prototype.getState=function(){var Ct=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},qt.prototype.getState.call(this));return Ct.typeName=kt.typeName,Ct},kt.prototype.restoreState=function(Ct){var Pt=Ct;this.bgColor=Pt.bgColor,this.tipPosition=Pt.tipPosition,qt.prototype.restoreState.call(this,Ct),this.createTip(),this.setTipPoints()},kt.prototype.scale=function(Ct,Pt){qt.prototype.scale.call(this,Ct,Pt),this.tipPosition={x:this.tipPosition.x*Ct,y:this.tipPosition.y*Pt},this.positionTip()},kt.typeName="CalloutMarker",kt.title="Callout marker",kt.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>',kt}(an),ti=function(qt){function kt(Ct,Pt,At){var wt=qt.call(this,Ct,Pt,At)||this;return wt.fillColor="transparent",wt.strokeColor="transparent",wt.strokeWidth=0,wt.strokeDasharray="",wt.opacity=1,wt.strokeColor=At.defaultColor,wt.strokeWidth=At.defaultStrokeWidth,wt.strokeDasharray=At.defaultStrokeDasharray,wt.fillColor=At.defaultFillColor,wt.setStrokeColor=wt.setStrokeColor.bind(wt),wt.setFillColor=wt.setFillColor.bind(wt),wt.setStrokeWidth=wt.setStrokeWidth.bind(wt),wt.setStrokeDasharray=wt.setStrokeDasharray.bind(wt),wt.setOpacity=wt.setOpacity.bind(wt),wt.createVisual=wt.createVisual.bind(wt),wt.strokePanel=new he("Line color",Dt(At.defaultColorSet,["transparent"]),At.defaultColor),wt.strokePanel.onColorChanged=wt.setStrokeColor,wt.fillPanel=new he("Fill color",Dt(At.defaultColorSet,["transparent"]),wt.fillColor,_t),wt.fillPanel.onColorChanged=wt.setFillColor,wt.strokeWidthPanel=new zt("Line width",At.defaultStrokeWidths,At.defaultStrokeWidth),wt.strokeWidthPanel.onWidthChanged=wt.setStrokeWidth,wt.strokeStylePanel=new Qt("Line style",At.defaultStrokeDasharrays,At.defaultStrokeDasharray),wt.strokeStylePanel.onStyleChanged=wt.setStrokeDasharray,wt.opacityPanel=new zn("Opacity",At.defaultOpacitySteps,wt.opacity),wt.opacityPanel.onOpacityChanged=wt.setOpacity,wt}return Ft(kt,qt),kt.prototype.ownsTarget=function(Ct){return!(!qt.prototype.ownsTarget.call(this,Ct)&&Ct!==this.visual)},kt.prototype.createVisual=function(){this.visual=Ht.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)},kt.prototype.pointerDown=function(Ct,Pt){qt.prototype.pointerDown.call(this,Ct,Pt),this.state==="new"&&(this.createVisual(),this.moveVisual(Ct),this._state="creating")},kt.prototype.manipulate=function(Ct){qt.prototype.manipulate.call(this,Ct)},kt.prototype.resize=function(Ct){qt.prototype.resize.call(this,Ct),this.setSize()},kt.prototype.setSize=function(){qt.prototype.setSize.call(this),Ht.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},kt.prototype.pointerUp=function(Ct){qt.prototype.pointerUp.call(this,Ct),this.setSize()},kt.prototype.setStrokeColor=function(Ct){this.strokeColor=Ct,this.visual&&Ht.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Ct),this.stateChanged()},kt.prototype.setFillColor=function(Ct){this.fillColor=Ct,this.visual&&Ht.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Ct),this.stateChanged()},kt.prototype.setStrokeWidth=function(Ct){this.strokeWidth=Ct,this.visual&&Ht.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},kt.prototype.setStrokeDasharray=function(Ct){this.strokeDasharray=Ct,this.visual&&Ht.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},kt.prototype.setOpacity=function(Ct){this.opacity=Ct,this.visual&&Ht.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(kt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),kt.prototype.getState=function(){var Ct=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},qt.prototype.getState.call(this));return Ct.typeName=kt.typeName,Ct},kt.prototype.restoreState=function(Ct){var Pt=Ct;this.fillColor=Pt.fillColor,this.strokeColor=Pt.strokeColor,this.strokeWidth=Pt.strokeWidth,this.strokeDasharray=Pt.strokeDasharray,this.opacity=Pt.opacity,this.createVisual(),qt.prototype.restoreState.call(this,Ct),this.setSize()},kt.prototype.scale=function(Ct,Pt){qt.prototype.scale.call(this,Ct,Pt),this.setSize()},kt.typeName="EllipseMarker",kt.title="Ellipse marker",kt.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>',kt}(be),vn=function(qt){function kt(Ct,Pt,At){return qt.call(this,Ct,Pt,At)||this}return Ft(kt,qt),Object.defineProperty(kt.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),kt.prototype.ownsTarget=function(Ct){return!(!qt.prototype.ownsTarget.call(this,Ct)&&Ct!==this.tip1&&Ct!==this.tip2)},kt.prototype.createTips=function(){this.tip1=Ht.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(Ht.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Ht.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(Ht.createTransform()),this.visual.appendChild(this.tip2)},kt.prototype.pointerDown=function(Ct,Pt){qt.prototype.pointerDown.call(this,Ct,Pt),this.state==="creating"&&this.createTips()},kt.prototype.adjustVisual=function(){if(qt.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Ht.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()]]),Ht.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 Ct=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Pt=this.tip1.transform.baseVal.getItem(0);Pt.setRotate(Ct,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Pt,0);var At=this.tip2.transform.baseVal.getItem(0);At.setRotate(Ct+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(At,0)}},Object.defineProperty(kt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),kt.prototype.getState=function(){var Ct=qt.prototype.getState.call(this);return Ct.typeName=kt.typeName,Ct},kt.prototype.restoreState=function(Ct){qt.prototype.restoreState.call(this,Ct),this.createTips(),this.adjustVisual()},kt.typeName="MeasurementMarker",kt.title="Measurement marker",kt.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>',kt}(en),ze=function(qt){function kt(Ct,Pt,At){var wt=qt.call(this,Ct,Pt,At)||this;return wt.strokePanel.colors=At.defaultColorSet,wt.fillColor="transparent",wt}return Ft(kt,qt),Object.defineProperty(kt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),kt.prototype.getState=function(){var Ct=qt.prototype.getState.call(this);return Ct.typeName=kt.typeName,Ct},kt.typeName="EllipseFrameMarker",kt.title="Ellipse frame marker",kt.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>',kt}(ti),on=function(){function qt(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(qt.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(qt.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(qt.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(qt.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),qt.prototype.addUndoStep=function(kt){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(kt)||(this.undoStack.push(kt),JSON.stringify(this.lastRedoStep)!==JSON.stringify(kt)&&this.redoStack.splice(0,this.redoStack.length))},qt.prototype.replaceLastUndoStep=function(kt){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=kt)},qt.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},qt.prototype.undo=function(){if(this.undoStack.length>1){var kt=this.undoStack.pop();return kt!==void 0&&this.redoStack.push(kt),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},qt.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},qt}(),On=function(qt){function kt(Ct,Pt,At){var wt=qt.call(this,Ct,Pt,At)||this;return wt.strokeColor="transparent",wt.strokeWidth=0,wt.strokeDasharray="",wt.curveX=0,wt.curveY=0,wt.manipulationStartCurveX=0,wt.manipulationStartCurveY=0,wt.setStrokeColor=wt.setStrokeColor.bind(wt),wt.setStrokeWidth=wt.setStrokeWidth.bind(wt),wt.setStrokeDasharray=wt.setStrokeDasharray.bind(wt),wt.positionGrips=wt.positionGrips.bind(wt),wt.addControlGrips=wt.addControlGrips.bind(wt),wt.adjustVisual=wt.adjustVisual.bind(wt),wt.setupControlBox=wt.setupControlBox.bind(wt),wt.resize=wt.resize.bind(wt),wt.strokeColor=At.defaultColor,wt.strokeWidth=At.defaultStrokeWidth,wt.strokeDasharray=At.defaultStrokeDasharray,wt.strokePanel=new he("Line color",At.defaultColorSet,At.defaultColor),wt.strokePanel.onColorChanged=wt.setStrokeColor,wt.strokeWidthPanel=new zt("Line width",At.defaultStrokeWidths,At.defaultStrokeWidth),wt.strokeWidthPanel.onWidthChanged=wt.setStrokeWidth,wt.strokeStylePanel=new Qt("Line style",At.defaultStrokeDasharrays,At.defaultStrokeDasharray),wt.strokeStylePanel.onStyleChanged=wt.setStrokeDasharray,wt}return Ft(kt,qt),kt.prototype.ownsTarget=function(Ct){return!(!qt.prototype.ownsTarget.call(this,Ct)&&Ct!==this.visual&&Ct!==this.selectorCurve&&Ct!==this.visibleCurve&&!this.curveGrip.ownsTarget(Ct))},kt.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},kt.prototype.createVisual=function(){this.visual=Ht.createGroup(),this.selectorCurve=Ht.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ht.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)},kt.prototype.pointerDown=function(Ct,Pt){qt.prototype.pointerDown.call(this,Ct,Pt),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Ct.x,this.curveY=Ct.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Pt)&&(this.activeGrip=this.curveGrip,this._state="resize")},kt.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ht.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ht.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ht.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},kt.prototype.setupControlBox=function(){qt.prototype.setupControlBox.call(this),this.curveControlLine1=Ht.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ht.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)},kt.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,qt.prototype.addControlGrips.call(this)},kt.prototype.positionGrips=function(){qt.prototype.positionGrips.call(this);var Ct=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Ct/2,this.curveY-Ct/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()))},kt.prototype.manipulate=function(Ct){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Ct.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Ct.y-this.manipulationStartY),qt.prototype.manipulate.call(this,Ct)},kt.prototype.resize=function(Ct){this.activeGrip===this.curveGrip&&(this.curveX=Ct.x,this.curveY=Ct.y),qt.prototype.resize.call(this,Ct),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},kt.prototype.setStrokeColor=function(Ct){this.strokeColor=Ct,this.adjustVisual(),this.colorChanged(Ct)},kt.prototype.setStrokeWidth=function(Ct){this.strokeWidth=Ct,this.adjustVisual()},kt.prototype.setStrokeDasharray=function(Ct){this.strokeDasharray=Ct,this.adjustVisual()},kt.prototype.scale=function(Ct,Pt){this.curveX=this.curveX*Ct,this.curveY=this.curveY*Pt,qt.prototype.scale.call(this,Ct,Pt)},Object.defineProperty(kt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),kt.prototype.getState=function(){var Ct=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},qt.prototype.getState.call(this));return Ct.typeName=kt.typeName,Ct},kt.prototype.restoreState=function(Ct){qt.prototype.restoreState.call(this,Ct);var Pt=Ct;this.strokeColor=Pt.strokeColor,this.strokeWidth=Pt.strokeWidth,this.strokeDasharray=Pt.strokeDasharray,this.curveX=Pt.curveX,this.curveY=Pt.curveY,this.createVisual(),this.adjustVisual()},kt.typeName="CurveMarker",kt.title="Curve marker",kt.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>',kt}(He),Ni=function(qt){function kt(Ct,Pt,At){var wt=qt.call(this,Ct,Pt,At)||this;return wt.fillColor="transparent",wt.strokeColor="transparent",wt.strokeWidth=0,wt.strokeDasharray="",wt.textColor="transparent",wt.fontSize="1rem",wt.isMoved=!1,wt.captionText="Caption",wt.PADDING=5,wt.captionBoxWidth=0,wt.captionBoxHeight=0,wt.strokeColor=At.defaultColor,wt.strokeWidth=At.defaultStrokeWidth,wt.strokeDasharray=At.defaultStrokeDasharray,wt.fillColor=At.defaultFillColor,wt.textColor=At.defaultStrokeColor,wt.fontFamily=At.defaultFontFamily,wt.fontSize=At.defaultCaptionFontSize,wt.captionText=At.defaultCaptionText,wt.setStrokeColor=wt.setStrokeColor.bind(wt),wt.setFillColor=wt.setFillColor.bind(wt),wt.setStrokeWidth=wt.setStrokeWidth.bind(wt),wt.setStrokeDasharray=wt.setStrokeDasharray.bind(wt),wt.createVisual=wt.createVisual.bind(wt),wt.sizeCaption=wt.sizeCaption.bind(wt),wt.setCaptionText=wt.setCaptionText.bind(wt),wt.showTextEditor=wt.showTextEditor.bind(wt),wt.positionTextEditor=wt.positionTextEditor.bind(wt),wt.finishTextEditing=wt.finishTextEditing.bind(wt),wt.setFont=wt.setFont.bind(wt),wt.setTextColor=wt.setTextColor.bind(wt),wt.strokePanel=new he("Line color",Dt(At.defaultColorSet,["transparent"]),wt.strokeColor),wt.strokePanel.onColorChanged=wt.setStrokeColor,wt.fillPanel=new he("Fill color",Dt(At.defaultColorSet,["transparent"]),wt.fillColor,_t),wt.fillPanel.onColorChanged=wt.setFillColor,wt.strokeWidthPanel=new zt("Line width",At.defaultStrokeWidths,At.defaultStrokeWidth),wt.strokeWidthPanel.onWidthChanged=wt.setStrokeWidth,wt.strokeStylePanel=new Qt("Line style",At.defaultStrokeDasharrays,At.defaultStrokeDasharray),wt.strokeStylePanel.onStyleChanged=wt.setStrokeDasharray,wt.fontFamilyPanel=new ie("Font",At.defaultFontFamilies,At.defaultFontFamily),wt.fontFamilyPanel.onFontChanged=wt.setFont,wt.textColorPanel=new he("Text color",At.defaultColorSet,wt.textColor,Me),wt.textColorPanel.onColorChanged=wt.setTextColor,wt}return Ft(kt,qt),kt.prototype.ownsTarget=function(Ct){return!(!qt.prototype.ownsTarget.call(this,Ct)&&Ct!==this.visual&&Ct!==this.frame&&Ct!==this.captionBg&&Ct!==this.captionElement)},kt.prototype.createVisual=function(){this.visual=Ht.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Ht.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Ht.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=Ht.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()},kt.prototype.setCaptionText=function(Ct){this.captionText=Ct,this.captionElement.textContent=this.captionText,this.sizeCaption()},kt.prototype.pointerDown=function(Ct,Pt){qt.prototype.pointerDown.call(this,Ct,Pt),this.isMoved=!1,this.pointerDownPoint=Ct,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Ct),this._state="creating")},kt.prototype.manipulate=function(Ct){qt.prototype.manipulate.call(this,Ct),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Ct.x-this.pointerDownPoint.x)>5||Math.abs(Ct.y-this.pointerDownPoint.y)>5)},kt.prototype.resize=function(Ct){qt.prototype.resize.call(this,Ct),this.setSize()},kt.prototype.sizeCaption=function(){var Ct=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Ct.width+2*this.PADDING,this.captionBoxHeight=Ct.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Ht.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')"]]),Ht.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')"]])},kt.prototype.showTextEditor=function(){var Ct=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(Pt){Pt.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Pt){Pt.key==="Enter"&&Ct.finishTextEditing(Ct.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Pt){Pt.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Ct.finishTextEditing(Ct.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Ct.finishTextEditing(Ct.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},kt.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"))},kt.prototype.finishTextEditing=function(Ct){this.setCaptionText(Ct.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},kt.prototype.setFont=function(Ct){this.captionElement&&Ht.setAttributes(this.captionElement,[["font-family",Ct]]),this.fontFamily=Ct,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},kt.prototype.setTextColor=function(Ct){this.captionElement&&Ht.setAttributes(this.captionElement,[["fill",Ct]]),this.textColor=Ct,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},kt.prototype.setSize=function(){qt.prototype.setSize.call(this),Ht.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},kt.prototype.pointerUp=function(Ct){qt.prototype.pointerUp.call(this,Ct),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},kt.prototype.dblClick=function(Ct,Pt){qt.prototype.dblClick.call(this,Ct,Pt),this.showTextEditor()},kt.prototype.setStrokeColor=function(Ct){this.strokeColor=Ct,this.frame&&Ht.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Ct),this.stateChanged()},kt.prototype.setFillColor=function(Ct){this.fillColor=Ct,this.captionBg&&Ht.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Ct),this.stateChanged()},kt.prototype.setStrokeWidth=function(Ct){this.strokeWidth=Ct,this.frame&&Ht.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},kt.prototype.setStrokeDasharray=function(Ct){this.strokeDasharray=Ct,this.frame&&Ht.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(kt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),kt.prototype.getState=function(){var Ct=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},qt.prototype.getState.call(this));return Ct.typeName=this.typeName,Ct},kt.prototype.restoreState=function(Ct){var Pt=Ct;this.fillColor=Pt.fillColor,this.strokeColor=Pt.strokeColor,this.strokeWidth=Pt.strokeWidth,this.strokeDasharray=Pt.strokeDasharray,this.textColor=Pt.textColor,this.fontFamily=Pt.fontFamily,this.captionText=Pt.captionText,this.fontSize=Pt.fontSize,this.createVisual(),qt.prototype.restoreState.call(this,Ct),this.setSize()},kt.prototype.scale=function(Ct,Pt){qt.prototype.scale.call(this,Ct,Pt),this.setSize()},kt.typeName="CaptionFrameMarker",kt.title="Caption frame marker",kt.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>',kt}(be),gi=function(){function qt(kt,Ct){Ct===void 0&&(Ct=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=kt,this.cancelable=Ct}return Object.defineProperty(qt.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),qt.prototype.preventDefault=function(){this._defaultPrevented=!0},qt}(),Dn=function(qt){function kt(Ct,Pt,At){var wt=qt.call(this,Ct,!1)||this;return wt.dataUrl=Pt,wt.state=At,wt}return Ft(kt,qt),kt}(gi),Jn=function(qt){function kt(Ct,Pt,At){At===void 0&&(At=!1);var wt=qt.call(this,Ct,At)||this;return wt.marker=Pt,wt}return Ft(kt,qt),kt}(gi),Ai=function(){function qt(){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 qt.prototype.addEventListener=function(kt,Ct){this[kt].push(Ct)},qt.prototype.removeEventListener=function(kt,Ct){var Pt=this[kt].indexOf(Ct);Pt>-1&&this[kt].splice(Pt,1)},qt}(),hi=function(){function qt(kt){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ie,this._isOpen=!1,this.undoRedoManager=new on,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 Ai,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=qt.instanceCounter++,this.styles=new Ut(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=kt,this.targetRoot=document.body,this.width=kt.clientWidth,this.height=kt.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(qt.prototype,"ALL_MARKER_TYPES",{get:function(){return[te,nn,Ne,an,ze,ti,Gn,rn,vn,Ye,en,On,Ni]},enumerable:!1,configurable:!0}),Object.defineProperty(qt.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[te,nn,Ne,an,ti,Gn,rn]},enumerable:!1,configurable:!0}),Object.defineProperty(qt.prototype,"BASIC_MARKER_TYPES",{get:function(){return[te,nn,Ne,an,Gn]},enumerable:!1,configurable:!0}),Object.defineProperty(qt.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(kt){var Ct=this;this._availableMarkerTypes.splice(0),kt.forEach(function(Pt){if(typeof Pt=="string"){var At=Ct.ALL_MARKER_TYPES.find(function(wt){return wt.typeName===Pt});At!==void 0&&Ct._availableMarkerTypes.push(At)}else Ct._availableMarkerTypes.push(Pt)})},enumerable:!1,configurable:!0}),Object.defineProperty(qt.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(qt.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(qt.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(qt.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(qt.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(kt){this._zoomLevel=kt,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(qt.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),qt.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Wt.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},qt.prototype.show=function(){var kt=this;this.styles.styleSheetRoot===void 0&&Nt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Nt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Ct){return Ct(new gi(kt))})},qt.prototype.render=function(){return $t(this,void 0,void 0,function(){var kt;return ne(this,function(Ct){switch(Ct.label){case 0:return this.setCurrentMarker(),(kt=new jt).naturalSize=this.renderAtNaturalSize,kt.imageType=this.renderImageType,kt.imageQuality=this.renderImageQuality,kt.markersOnly=this.renderMarkersOnly,kt.width=this.renderWidth,kt.height=this.renderHeight,[4,kt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Ct.sent(),[4,kt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Ct.sent()]}})})},qt.prototype.close=function(kt){var Ct=this;if(kt===void 0&&(kt=!1),this.isOpen){var Pt=!1;kt||this.eventListeners.beforeclose.forEach(function(At){var wt=new gi(Ct,!0);At(wt),wt.defaultPrevented&&(Pt=!0)}),Pt||(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(At){return At(new gi(Ct))}),this.detachEvents(),this._isOpen=!1)}},qt.prototype.addMarkersToToolbar=function(){for(var kt,Ct=[],Pt=0;Pt<arguments.length;Pt++)Ct[Pt]=arguments[Pt];(kt=this._availableMarkerTypes).push.apply(kt,Ct)},qt.prototype.addRenderEventListener=function(kt){this.addEventListener("render",function(Ct){kt(Ct.dataUrl,Ct.state)})},qt.prototype.removeRenderEventListener=function(kt){},qt.prototype.addCloseEventListener=function(kt){this.addEventListener("close",function(){kt()})},qt.prototype.removeCloseEventListener=function(kt){},qt.prototype.setupResizeObserver=function(){var kt=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){kt.resize(kt.target.clientWidth,kt.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return kt.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},qt.prototype.onPopupTargetResize=function(){var kt=1*this.target.clientWidth/this.target.clientHeight,Ct=this.editorCanvas.clientWidth/kt>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*kt:this.editorCanvas.clientWidth,Pt=Ct<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/kt;this.resize(Ct,Pt)},qt.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},qt.prototype.resize=function(kt,Ct){this._isResizing=!0;var Pt=kt/this.imageWidth,At=Ct/this.imageHeight;this.imageWidth=Math.round(kt),this.imageHeight=Math.round(Ct),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(Pt,At),this._isResizing=!1},qt.prototype.scaleMarkers=function(kt,Ct){var Pt,At=this;this._currentMarker&&this._currentMarker instanceof an?this._currentMarker.scale(kt,Ct):(Pt=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(wt){wt!==At._currentMarker&&wt.scale(kt,Ct)}),Pt!==void 0&&this.setCurrentMarker(Pt)},qt.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"},qt.prototype.setTopLeft=function(){var kt=this.editingTarget.getBoundingClientRect(),Ct=this.editorCanvas.getBoundingClientRect();this.left=kt.left-Ct.left,this.top=kt.top-Ct.top},qt.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)},qt.prototype.addDefs=function(){for(var kt,Ct=[],Pt=0;Pt<arguments.length;Pt++)Ct[Pt]=arguments[Pt];this.defs=Ht.createDefs(),this.addDefsToImage(),(kt=this.defs).append.apply(kt,Ct)},qt.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},qt.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)},qt.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},qt.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},qt.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)},qt.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},qt.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)},qt.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 kt=document.createElement("a");kt.href="https://markerjs.com/",kt.target="_blank",kt.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>',kt.title="Powered by marker.js",kt.style.display="grid",kt.style.alignItems="center",kt.style.justifyItems="center",kt.style.padding="3px",kt.style.width="20px",kt.style.height="20px",this.logoUI.appendChild(kt),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},qt.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")},qt.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"},qt.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},qt.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 kt=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=kt+"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 de(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 we(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},qt.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},qt.prototype.removeMarker=function(kt){this.markerImage.removeChild(kt.container),this.markers.indexOf(kt)>-1&&this.markers.splice(this.markers.indexOf(kt),1),kt.dispose()},qt.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())},qt.prototype.toolbarButtonClicked=function(kt,Ct){if(kt==="marker"&&Ct!==void 0)this.createNewMarker(Ct);else if(kt==="action")switch(Ct){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()}},qt.prototype.deleteSelectedMarker=function(){var kt=this;if(this._currentMarker!==void 0){var Ct=!1;if(this.eventListeners.markerbeforedelete.forEach(function(At){var wt=new Jn(kt,kt._currentMarker,!0);At(wt),wt.defaultPrevented&&(Ct=!0)}),!Ct){var Pt=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(At){return At(new Jn(kt,Pt))})}}},qt.prototype.clear=function(){var kt=this,Ct=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Xt){var Re=new Jn(kt,void 0,!0);Xt(Re),Re.defaultPrevented&&(Ct=!0)}),!Ct)){this.setCurrentMarker();for(var Pt=function(Xt){var Re=At.markers[Xt];At.setCurrentMarker(At.markers[Xt]),At._currentMarker.dispose(),At.markerImage.removeChild(At._currentMarker.container),At.markers.splice(At.markers.indexOf(At._currentMarker),1),At.eventListeners.markerdelete.forEach(function(We){return We(new Jn(kt,Re))})},At=this,wt=this.markers.length-1;wt>=0;wt--)Pt(wt);this.addUndoStep()}},Object.defineProperty(qt.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),qt.prototype.showNotesEditor=function(){var kt;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=(kt=this._currentMarker.notes)!==null&&kt!==void 0?kt:"",this.overlayContainer.appendChild(this.notesArea))},qt.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)},qt.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},qt.prototype.addUndoStep=function(){var kt=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Ct=this.getState(),Pt=this.undoRedoManager.getLastUndoStep();if(!Pt||Pt.width===Ct.width&&Pt.height===Ct.height){var At=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Ct),At<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(wt){return wt(new gi(kt))})}else this.undoRedoManager.replaceLastUndoStep(Ct),this.eventListeners.statechange.forEach(function(wt){return wt(new gi(kt))})}},qt.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},qt.prototype.undoStep=function(){var kt=this,Ct=this.undoRedoManager.undo();Ct!==void 0&&(this.restoreState(Ct),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Pt){return Pt(new gi(kt))}))},qt.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},qt.prototype.redoStep=function(){var kt=this,Ct=this.undoRedoManager.redo();Ct!==void 0&&(this.restoreState(Ct),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Pt){return Pt(new gi(kt))}))},qt.prototype.stepZoom=function(){var kt=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=kt<this.zoomSteps.length-1?this.zoomSteps[kt+1]:this.zoomSteps[0]},qt.prototype.panTo=function(kt){this.contentDiv.scrollBy({left:this.prevPanPoint.x-kt.x,top:this.prevPanPoint.y-kt.y}),this.prevPanPoint=kt},qt.prototype.startRenderAndClose=function(){return $t(this,void 0,void 0,function(){var kt,Ct,Pt=this;return ne(this,function(At){switch(At.label){case 0:return[4,this.render()];case 1:return kt=At.sent(),Ct=this.getState(),this.eventListeners.render.forEach(function(wt){return wt(new Dn(Pt,kt,Ct))}),this.close(!0),[2]}})})},qt.prototype.getState=function(kt){kt===!0&&this.setCurrentMarker();var Ct={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Pt){return Ct.markers.push(Pt.getState())}),Ct},qt.prototype.restoreState=function(kt){var Ct=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);kt.markers.forEach(function(Pt){var At=Ct._availableMarkerTypes.find(function(Xt){return Xt.typeName===Pt.typeName});if(At!==void 0){var wt=Ct.addNewMarker(At);wt.restoreState(Pt),Ct.markers.push(wt)}}),kt.width&&kt.height&&(kt.width!==this.imageWidth||kt.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/kt.width,this.imageHeight/kt.height),this.eventListeners.restorestate.forEach(function(Pt){return Pt(new gi(Ct))})},qt.prototype.addNewMarker=function(kt){var Ct=Ht.createGroup();return this.markerImage.appendChild(Ct),new kt(Ct,this.overlayContainer,this.settings)},qt.prototype.createNewMarker=function(kt){var Ct,Pt=this;(Ct=typeof kt=="string"?this._availableMarkerTypes.find(function(At){return At.typeName===kt}):kt)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(Ct),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(Ct.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(At){return At(new Jn(Pt,Pt._currentMarker))}))},qt.prototype.markerCreated=function(kt){var Ct=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(kt),this.setCurrentMarker(kt),kt instanceof nn&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(nn):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Pt){return Pt(new Jn(Ct,Ct._currentMarker))})},qt.prototype.colorChanged=function(kt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=kt,this.settings.defaultStrokeColor=kt)},qt.prototype.fillColorChanged=function(kt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=kt)},qt.prototype.markerStateChanged=function(kt){var Ct=this;this.eventListeners.markerchange.forEach(function(Pt){return Pt(new Jn(Ct,kt))})},qt.prototype.setCurrentMarker=function(kt){var Ct=this;this._currentMarker!==kt&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Pt){return Pt(new Jn(Ct,Ct._currentMarker))})),this._currentMarker=kt,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(Pt){return Pt(new Jn(Ct,Ct._currentMarker))}))},qt.prototype.onPointerDown=function(kt){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||kt.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var Ct=this.markers.find(function(Pt){return Pt.ownsTarget(kt.target)});Ct!==void 0?(this.setCurrentMarker(Ct),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(kt.clientX,kt.clientY),kt.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:kt.clientX,y:kt.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(kt.clientX,kt.clientY))},qt.prototype.onDblClick=function(kt){if(this._isFocused||this.focus(),this.mode==="select"){var Ct=this.markers.find(function(Pt){return Pt.ownsTarget(kt.target)});Ct!==void 0&&Ct!==this._currentMarker&&this.setCurrentMarker(Ct),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(kt.clientX,kt.clientY),kt.target):this.setCurrentMarker()}},qt.prototype.onPointerMove=function(kt){this.touchPoints!==1&&kt.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||kt.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(kt.clientX,kt.clientY)):this.zoomLevel>1&&this.panTo({x:kt.clientX,y:kt.clientY}))},qt.prototype.onPointerUp=function(kt){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(kt.clientX,kt.clientY)),this.isDragging=!1,this.addUndoStep()},qt.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},qt.prototype.onKeyUp=function(kt){this._currentMarker===void 0||this.notesArea!==void 0||kt.key!=="Delete"&&kt.key!=="Backspace"||this.deleteSelectedMarker()},qt.prototype.clientToLocalCoordinates=function(kt,Ct){var Pt=this.markerImage.getBoundingClientRect();return{x:(kt-Pt.left)/this.zoomLevel,y:(Ct-Pt.top)/this.zoomLevel}},qt.prototype.onWindowResize=function(){this.positionUI()},qt.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var kt=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=kt+"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()},qt.prototype.addLicenseKey=function(kt){Wt.addKey(kt)},qt.prototype.addEventListener=function(kt,Ct){this.eventListeners.addEventListener(kt,Ct)},qt.prototype.removeEventListener=function(kt,Ct){this.eventListeners.removeEventListener(kt,Ct)},qt.prototype.renderState=function(kt){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(kt),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(qt.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),qt.prototype.focus=function(){var kt=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Ct){return Ct(new gi(kt))}))},qt.prototype.blur=function(){var kt=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Ct){return Ct(new gi(kt))}))},qt.instanceCounter=0,qt}()},95860:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return pe}});var ft=mt(87462),Ft=mt(1413),$t=mt(4942),ne=mt(97685),Dt=mt(45987),Ht=mt(94184),Wt=mt.n(Ht),jt=mt(67294);function Nt(be){var Rt=jt.useRef();Rt.current=be;var zt=jt.useCallback(function(){for(var Qt,te=arguments.length,Ie=new Array(te),He=0;He<te;He++)Ie[He]=arguments[He];return(Qt=Rt.current)===null||Qt===void 0?void 0:Qt.call.apply(Qt,[Rt].concat(Ie))},[]);return zt}function Ut(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var De=Ut()?jt.useLayoutEffect:jt.useEffect,Yt=function(Rt,zt){var Qt=jt.useRef(!0);De(function(){return Rt(Qt.current)},zt),De(function(){return Qt.current=!1,function(){Qt.current=!0}},[])},de=function(Rt,zt){Yt(function(Qt){if(!Qt)return Rt()},zt)},we=null;function ue(be){var Rt=jt.useRef(!1),zt=jt.useState(be),Qt=(0,ne.Z)(zt,2),te=Qt[0],Ie=Qt[1];jt.useEffect(function(){return Rt.current=!1,function(){Rt.current=!0}},[]);function He(en,ie){ie&&Rt.current||Ie(en)}return[te,He]}function he(be){return be!==void 0}function It(be,Rt){var zt=Rt||{},Qt=zt.defaultValue,te=zt.value,Ie=zt.onChange,He=zt.postState,en=ue(function(){return he(te)?te:he(Qt)?typeof Qt=="function"?Qt():Qt:typeof be=="function"?be():be}),ie=(0,ne.Z)(en,2),an=ie[0],nn=ie[1],Vn=te!==void 0?te:an,Ne=He?He(Vn):Vn,Ye=Nt(Ie),zn=ue([Vn]),Gn=(0,ne.Z)(zn,2),Me=Gn[0],_t=Gn[1];de(function(){var ti=Me[0];an!==ti&&Ye(an,ti)},[Me]),de(function(){he(te)||nn(te)},[te]);var rn=Nt(function(ti,vn){nn(ti,vn),_t([Vn],vn)});return[Ne,rn]}var ye=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Ze=(0,jt.forwardRef)(function(be,Rt){var zt,Qt=be.prefixCls,te=Qt===void 0?"rc-checkbox":Qt,Ie=be.className,He=be.style,en=be.checked,ie=be.disabled,an=be.defaultChecked,nn=an===void 0?!1:an,Vn=be.type,Ne=Vn===void 0?"checkbox":Vn,Ye=be.title,zn=be.onChange,Gn=(0,Dt.Z)(be,ye),Me=(0,jt.useRef)(null),_t=It(nn,{value:en}),rn=(0,ne.Z)(_t,2),ti=rn[0],vn=rn[1];(0,jt.useImperativeHandle)(Rt,function(){return{focus:function(){var Ni;(Ni=Me.current)===null||Ni===void 0||Ni.focus()},blur:function(){var Ni;(Ni=Me.current)===null||Ni===void 0||Ni.blur()},input:Me.current}});var ze=Wt()(te,Ie,(zt={},(0,$t.Z)(zt,"".concat(te,"-checked"),ti),(0,$t.Z)(zt,"".concat(te,"-disabled"),ie),zt)),on=function(Ni){ie||("checked"in be||vn(Ni.target.checked),zn==null||zn({target:(0,Ft.Z)((0,Ft.Z)({},be),{},{type:Ne,checked:Ni.target.checked}),stopPropagation:function(){Ni.stopPropagation()},preventDefault:function(){Ni.preventDefault()},nativeEvent:Ni.nativeEvent}))};return jt.createElement("span",{className:ze,title:Ye,style:He},jt.createElement("input",(0,ft.Z)({},Gn,{className:"".concat(te,"-input"),ref:Me,onChange:on,disabled:ie,checked:!!ti,type:Ne})),jt.createElement("span",{className:"".concat(te,"-inner")}))}),pe=Ze},26819:function(jn,tn){"use strict";var mt;var ft=typeof Symbol=="function"&&Symbol.for,Ft=ft?Symbol.for("react.element"):60103,$t=ft?Symbol.for("react.portal"):60106,ne=ft?Symbol.for("react.fragment"):60107,Dt=ft?Symbol.for("react.strict_mode"):60108,Ht=ft?Symbol.for("react.profiler"):60114,Wt=ft?Symbol.for("react.provider"):60109,jt=ft?Symbol.for("react.context"):60110,Nt=ft?Symbol.for("react.async_mode"):60111,Ut=ft?Symbol.for("react.concurrent_mode"):60111,De=ft?Symbol.for("react.forward_ref"):60112,Yt=ft?Symbol.for("react.suspense"):60113,de=ft?Symbol.for("react.suspense_list"):60120,we=ft?Symbol.for("react.memo"):60115,ue=ft?Symbol.for("react.lazy"):60116,he=ft?Symbol.for("react.block"):60121,It=ft?Symbol.for("react.fundamental"):60117,ye=ft?Symbol.for("react.responder"):60118,Ze=ft?Symbol.for("react.scope"):60119;function pe(Rt){if(typeof Rt=="object"&&Rt!==null){var zt=Rt.$$typeof;switch(zt){case Ft:switch(Rt=Rt.type,Rt){case Nt:case Ut:case ne:case Ht:case Dt:case Yt:return Rt;default:switch(Rt=Rt&&Rt.$$typeof,Rt){case jt:case De:case ue:case we:case Wt:return Rt;default:return zt}}case $t:return zt}}}function be(Rt){return pe(Rt)===Ut}mt=Nt,mt=Ut,mt=jt,mt=Wt,mt=Ft,mt=De,mt=ne,mt=ue,mt=we,mt=$t,mt=Ht,mt=Dt,mt=Yt,mt=function(Rt){return be(Rt)||pe(Rt)===Nt},mt=be,mt=function(Rt){return pe(Rt)===jt},mt=function(Rt){return pe(Rt)===Wt},mt=function(Rt){return typeof Rt=="object"&&Rt!==null&&Rt.$$typeof===Ft},mt=function(Rt){return pe(Rt)===De},mt=function(Rt){return pe(Rt)===ne},mt=function(Rt){return pe(Rt)===ue},tn.isMemo=function(Rt){return pe(Rt)===we},mt=function(Rt){return pe(Rt)===$t},mt=function(Rt){return pe(Rt)===Ht},mt=function(Rt){return pe(Rt)===Dt},mt=function(Rt){return pe(Rt)===Yt},mt=function(Rt){return typeof Rt=="string"||typeof Rt=="function"||Rt===ne||Rt===Ut||Rt===Ht||Rt===Dt||Rt===Yt||Rt===de||typeof Rt=="object"&&Rt!==null&&(Rt.$$typeof===ue||Rt.$$typeof===we||Rt.$$typeof===Wt||Rt.$$typeof===jt||Rt.$$typeof===De||Rt.$$typeof===It||Rt.$$typeof===ye||Rt.$$typeof===Ze||Rt.$$typeof===he)},mt=pe},18459:function(jn,tn,mt){"use strict";jn.exports=mt(26819)},16651:function(jn,tn){"use strict";var mt;var ft=Symbol.for("react.element"),Ft=Symbol.for("react.portal"),$t=Symbol.for("react.fragment"),ne=Symbol.for("react.strict_mode"),Dt=Symbol.for("react.profiler"),Ht=Symbol.for("react.provider"),Wt=Symbol.for("react.context"),jt=Symbol.for("react.server_context"),Nt=Symbol.for("react.forward_ref"),Ut=Symbol.for("react.suspense"),De=Symbol.for("react.suspense_list"),Yt=Symbol.for("react.memo"),de=Symbol.for("react.lazy"),we=Symbol.for("react.offscreen"),ue;ue=Symbol.for("react.module.reference");function he(It){if(typeof It=="object"&&It!==null){var ye=It.$$typeof;switch(ye){case ft:switch(It=It.type,It){case $t:case Dt:case ne:case Ut:case De:return It;default:switch(It=It&&It.$$typeof,It){case jt:case Wt:case Nt:case de:case Yt:case Ht:return It;default:return ye}}case Ft:return ye}}}mt=Wt,mt=Ht,mt=ft,mt=Nt,mt=$t,mt=de,mt=Yt,mt=Ft,mt=Dt,mt=ne,mt=Ut,mt=De,mt=function(){return!1},mt=function(){return!1},mt=function(It){return he(It)===Wt},mt=function(It){return he(It)===Ht},mt=function(It){return typeof It=="object"&&It!==null&&It.$$typeof===ft},mt=function(It){return he(It)===Nt},mt=function(It){return he(It)===$t},mt=function(It){return he(It)===de},mt=function(It){return he(It)===Yt},mt=function(It){return he(It)===Ft},mt=function(It){return he(It)===Dt},mt=function(It){return he(It)===ne},mt=function(It){return he(It)===Ut},mt=function(It){return he(It)===De},mt=function(It){return typeof It=="string"||typeof It=="function"||It===$t||It===Dt||It===ne||It===Ut||It===De||It===we||typeof It=="object"&&It!==null&&(It.$$typeof===de||It.$$typeof===Yt||It.$$typeof===Ht||It.$$typeof===Wt||It.$$typeof===Nt||It.$$typeof===ue||It.getModuleId!==void 0)},mt=he},33993:function(jn,tn,mt){"use strict";mt(16651)},82523:function(jn,tn){"use strict";var mt;var ft=Symbol.for("react.element"),Ft=Symbol.for("react.portal"),$t=Symbol.for("react.fragment"),ne=Symbol.for("react.strict_mode"),Dt=Symbol.for("react.profiler"),Ht=Symbol.for("react.provider"),Wt=Symbol.for("react.context"),jt=Symbol.for("react.server_context"),Nt=Symbol.for("react.forward_ref"),Ut=Symbol.for("react.suspense"),De=Symbol.for("react.suspense_list"),Yt=Symbol.for("react.memo"),de=Symbol.for("react.lazy"),we=Symbol.for("react.offscreen"),ue;ue=Symbol.for("react.module.reference");function he(It){if(typeof It=="object"&&It!==null){var ye=It.$$typeof;switch(ye){case ft:switch(It=It.type,It){case $t:case Dt:case ne:case Ut:case De:return It;default:switch(It=It&&It.$$typeof,It){case jt:case Wt:case Nt:case de:case Yt:case Ht:return It;default:return ye}}case Ft:return ye}}}mt=Wt,mt=Ht,mt=ft,mt=Nt,mt=$t,mt=de,mt=Yt,mt=Ft,mt=Dt,mt=ne,mt=Ut,mt=De,mt=function(){return!1},mt=function(){return!1},mt=function(It){return he(It)===Wt},mt=function(It){return he(It)===Ht},mt=function(It){return typeof It=="object"&&It!==null&&It.$$typeof===ft},mt=function(It){return he(It)===Nt},mt=function(It){return he(It)===$t},mt=function(It){return he(It)===de},mt=function(It){return he(It)===Yt},mt=function(It){return he(It)===Ft},mt=function(It){return he(It)===Dt},mt=function(It){return he(It)===ne},mt=function(It){return he(It)===Ut},mt=function(It){return he(It)===De},mt=function(It){return typeof It=="string"||typeof It=="function"||It===$t||It===Dt||It===ne||It===Ut||It===De||It===we||typeof It=="object"&&It!==null&&(It.$$typeof===de||It.$$typeof===Yt||It.$$typeof===Ht||It.$$typeof===Wt||It.$$typeof===Nt||It.$$typeof===ue||It.getModuleId!==void 0)},mt=he},27183:function(jn,tn,mt){"use strict";mt(82523)},67656:function(jn,tn,mt){"use strict";mt.r(tn),mt.d(tn,{BaseInput:function(){return Ut},default:function(){return Ze}});var ft=mt(87462),Ft=mt(1413),$t=mt(4942),ne=mt(71002),Dt=mt(94184),Ht=mt.n(Dt),Wt=mt(67294),jt=mt(87887),Nt=function(be){var Rt,zt,Qt=be.inputElement,te=be.prefixCls,Ie=be.prefix,He=be.suffix,en=be.addonBefore,ie=be.addonAfter,an=be.className,nn=be.style,Vn=be.disabled,Ne=be.readOnly,Ye=be.focused,zn=be.triggerFocus,Gn=be.allowClear,Me=be.value,_t=be.handleReset,rn=be.hidden,ti=be.classes,vn=be.classNames,ze=be.dataAttrs,on=be.styles,On=be.components,Ni=(On==null?void 0:On.affixWrapper)||"span",gi=(On==null?void 0:On.groupWrapper)||"span",Dn=(On==null?void 0:On.wrapper)||"span",Jn=(On==null?void 0:On.groupAddon)||"span",Ai=(0,Wt.useRef)(null),hi=function(Un){var Yn;(Yn=Ai.current)!==null&&Yn!==void 0&&Yn.contains(Un.target)&&(zn==null||zn())},qt=function(){var Un;if(!Gn)return null;var Yn=!Vn&&!Ne&&Me,Fe="".concat(te,"-clear-icon"),bn=(0,ne.Z)(Gn)==="object"&&Gn!==null&&Gn!==void 0&&Gn.clearIcon?Gn.clearIcon:"\u2716";return Wt.createElement("span",{onClick:_t,onMouseDown:function(Qn){return Qn.preventDefault()},className:Ht()(Fe,(Un={},(0,$t.Z)(Un,"".concat(Fe,"-hidden"),!Yn),(0,$t.Z)(Un,"".concat(Fe,"-has-suffix"),!!He),Un)),role:"button",tabIndex:-1},bn)},kt=(0,Wt.cloneElement)(Qt,{value:Me,hidden:rn,className:Ht()((Rt=Qt.props)===null||Rt===void 0?void 0:Rt.className,!(0,jt.X3)(be)&&!(0,jt.He)(be)&&an)||null,style:(0,Ft.Z)((0,Ft.Z)({},(zt=Qt.props)===null||zt===void 0?void 0:zt.style),!(0,jt.X3)(be)&&!(0,jt.He)(be)?nn:{})});if((0,jt.X3)(be)){var Ct,Pt="".concat(te,"-affix-wrapper"),At=Ht()(Pt,(Ct={},(0,$t.Z)(Ct,"".concat(Pt,"-disabled"),Vn),(0,$t.Z)(Ct,"".concat(Pt,"-focused"),Ye),(0,$t.Z)(Ct,"".concat(Pt,"-readonly"),Ne),(0,$t.Z)(Ct,"".concat(Pt,"-input-with-clear-btn"),He&&Gn&&Me),Ct),!(0,jt.He)(be)&&an,ti==null?void 0:ti.affixWrapper,vn==null?void 0:vn.affixWrapper),wt=(He||Gn)&&Wt.createElement("span",{className:Ht()("".concat(te,"-suffix"),vn==null?void 0:vn.suffix),style:on==null?void 0:on.suffix},qt(),He);kt=Wt.createElement(Ni,(0,ft.Z)({className:At,style:(0,Ft.Z)((0,Ft.Z)({},(0,jt.He)(be)?void 0:nn),on==null?void 0:on.affixWrapper),hidden:!(0,jt.He)(be)&&rn,onClick:hi},ze==null?void 0:ze.affixWrapper,{ref:Ai}),Ie&&Wt.createElement("span",{className:Ht()("".concat(te,"-prefix"),vn==null?void 0:vn.prefix),style:on==null?void 0:on.prefix},Ie),(0,Wt.cloneElement)(Qt,{value:Me,hidden:null}),wt)}if((0,jt.He)(be)){var Xt="".concat(te,"-group"),Re="".concat(Xt,"-addon"),We=Ht()("".concat(te,"-wrapper"),Xt,ti==null?void 0:ti.wrapper),In=Ht()("".concat(te,"-group-wrapper"),an,ti==null?void 0:ti.group);return Wt.createElement(gi,{className:In,style:nn,hidden:rn},Wt.createElement(Dn,{className:We},en&&Wt.createElement(Jn,{className:Re},en),(0,Wt.cloneElement)(kt,{hidden:null}),ie&&Wt.createElement(Jn,{className:Re},ie)))}return kt},Ut=Nt,De=mt(74902),Yt=mt(97685),de=mt(45987),we=mt(21770),ue=mt(98423),he=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],It=(0,Wt.forwardRef)(function(pe,be){var Rt=pe.autoComplete,zt=pe.onChange,Qt=pe.onFocus,te=pe.onBlur,Ie=pe.onPressEnter,He=pe.onKeyDown,en=pe.prefixCls,ie=en===void 0?"rc-input":en,an=pe.disabled,nn=pe.htmlSize,Vn=pe.className,Ne=pe.maxLength,Ye=pe.suffix,zn=pe.showCount,Gn=pe.type,Me=Gn===void 0?"text":Gn,_t=pe.classes,rn=pe.classNames,ti=pe.styles,vn=(0,de.Z)(pe,he),ze=(0,we.Z)(pe.defaultValue,{value:pe.value}),on=(0,Yt.Z)(ze,2),On=on[0],Ni=on[1],gi=(0,Wt.useState)(!1),Dn=(0,Yt.Z)(gi,2),Jn=Dn[0],Ai=Dn[1],hi=(0,Wt.useRef)(null),qt=function(In){hi.current&&(0,jt.nH)(hi.current,In)};(0,Wt.useImperativeHandle)(be,function(){return{focus:qt,blur:function(){var In;(In=hi.current)===null||In===void 0||In.blur()},setSelectionRange:function(In,Hn,Un){var Yn;(Yn=hi.current)===null||Yn===void 0||Yn.setSelectionRange(In,Hn,Un)},select:function(){var In;(In=hi.current)===null||In===void 0||In.select()},input:hi.current}}),(0,Wt.useEffect)(function(){Ai(function(We){return We&&an?!1:We})},[an]);var kt=function(In){pe.value===void 0&&Ni(In.target.value),hi.current&&(0,jt.rJ)(hi.current,In,zt)},Ct=function(In){Ie&&In.key==="Enter"&&Ie(In),He==null||He(In)},Pt=function(In){Ai(!0),Qt==null||Qt(In)},At=function(In){Ai(!1),te==null||te(In)},wt=function(In){Ni(""),qt(),hi.current&&(0,jt.rJ)(hi.current,In,zt)},Xt=function(){var In=(0,ue.Z)(pe,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return Wt.createElement("input",(0,ft.Z)({autoComplete:Rt},In,{onChange:kt,onFocus:Pt,onBlur:At,onKeyDown:Ct,className:Ht()(ie,(0,$t.Z)({},"".concat(ie,"-disabled"),an),rn==null?void 0:rn.input),style:ti==null?void 0:ti.input,ref:hi,size:nn,type:Me}))},Re=function(){var In=Number(Ne)>0;if(Ye||zn){var Hn=(0,jt.D7)(On),Un=(0,De.Z)(Hn).length,Yn=(0,ne.Z)(zn)==="object"?zn.formatter({value:Hn,count:Un,maxLength:Ne}):"".concat(Un).concat(In?" / ".concat(Ne):"");return Wt.createElement(Wt.Fragment,null,!!zn&&Wt.createElement("span",{className:Ht()("".concat(ie,"-show-count-suffix"),(0,$t.Z)({},"".concat(ie,"-show-count-has-suffix"),!!Ye),rn==null?void 0:rn.count),style:(0,Ft.Z)({},ti==null?void 0:ti.count)},Yn),Ye)}return null};return Wt.createElement(Ut,(0,ft.Z)({},vn,{prefixCls:ie,className:Vn,inputElement:Xt(),handleReset:wt,value:(0,jt.D7)(On),focused:Jn,triggerFocus:qt,suffix:Re(),disabled:an,classes:_t,classNames:rn,styles:ti}))}),ye=It,Ze=ye},87887:function(jn,tn,mt){"use strict";mt.d(tn,{D7:function(){return Dt},He:function(){return ft},X3:function(){return Ft},nH:function(){return ne},rJ:function(){return $t}});function ft(Ht){return!!(Ht.addonBefore||Ht.addonAfter)}function Ft(Ht){return!!(Ht.prefix||Ht.suffix||Ht.allowClear)}function $t(Ht,Wt,jt,Nt){if(jt){var Ut=Wt;if(Wt.type==="click"){var De=Ht.cloneNode(!0);Ut=Object.create(Wt,{target:{value:De},currentTarget:{value:De}}),De.value="",jt(Ut);return}if(Nt!==void 0){Ut=Object.create(Wt,{target:{value:Ht},currentTarget:{value:Ht}}),Ht.value=Nt,jt(Ut);return}jt(Ut)}}function ne(Ht,Wt){if(Ht){Ht.focus(Wt);var jt=Wt||{},Nt=jt.cursor;if(Nt){var Ut=Ht.value.length;switch(Nt){case"start":Ht.setSelectionRange(0,0);break;case"end":Ht.setSelectionRange(Ut,Ut);break;default:Ht.setSelectionRange(0,Ut)}}}}function Dt(Ht){return typeof Ht=="undefined"||Ht===null?"":String(Ht)}},78595:function(jn,tn,mt){"use strict";mt.d(tn,{iz:function(){return jr},ck:function(){return vr},BW:function(){return Cr},sN:function(){return vr},Wd:function(){return si},ZP:function(){return ee},Xl:function(){return Yn}});var ft=mt(87462),Ft=mt(4942),$t=mt(1413),ne=mt(74902),Dt=mt(97685),Ht=mt(45987),Wt=mt(94184),jt=mt.n(Wt),Nt=mt(67294),Ut=mt(48555);function De(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Yt=De()?Nt.useLayoutEffect:Nt.useEffect,de=function(xe,fe){var Ee=Nt.useRef(!0);Yt(function(){return xe(Ee.current)},fe),Yt(function(){return Ee.current=!1,function(){Ee.current=!0}},[])},we=function(xe,fe){de(function(Ee){if(!Ee)return xe()},fe)},ue=de,he=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],It=void 0;function ye(le,xe){var fe=le.prefixCls,Ee=le.invalidate,Ae=le.item,yn=le.renderItem,Rn=le.responsive,Pi=le.responsiveDisabled,An=le.registerSize,Mi=le.itemKey,pi=le.className,di=le.style,Wn=le.children,Bi=le.display,sr=le.order,_i=le.component,Ui=_i===void 0?"div":_i,qi=(0,Ht.Z)(le,he),lr=Rn&&!Bi;function je(ni){An(Mi,ni)}Nt.useEffect(function(){return function(){je(null)}},[]);var ve=yn&&Ae!==It?yn(Ae):Wn,ke;Ee||(ke={opacity:lr?0:1,height:lr?0:It,overflowY:lr?"hidden":It,order:Rn?sr:It,pointerEvents:lr?"none":It,position:lr?"absolute":It});var xn={};lr&&(xn["aria-hidden"]=!0);var cn=Nt.createElement(Ui,(0,ft.Z)({className:jt()(!Ee&&fe,pi),style:(0,$t.Z)((0,$t.Z)({},ke),di)},xn,qi,{ref:xe}),ve);return Rn&&(cn=Nt.createElement(Ut.Z,{onResize:function(Ti){var qe=Ti.offsetWidth;je(qe)},disabled:Pi},cn)),cn}var Ze=Nt.forwardRef(ye);Ze.displayName="Item";var pe=Ze;function be(le){var xe=Nt.useRef();xe.current=le;var fe=Nt.useCallback(function(){for(var Ee,Ae=arguments.length,yn=new Array(Ae),Rn=0;Rn<Ae;Rn++)yn[Rn]=arguments[Rn];return(Ee=xe.current)===null||Ee===void 0?void 0:Ee.call.apply(Ee,[xe].concat(yn))},[]);return fe}var Rt=mt(73935),zt=function(xe){return+setTimeout(xe,16)},Qt=function(xe){return clearTimeout(xe)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(zt=function(xe){return window.requestAnimationFrame(xe)},Qt=function(xe){return window.cancelAnimationFrame(xe)});var te=0,Ie=new Map;function He(le){Ie.delete(le)}var en=function(xe){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;te+=1;var Ee=te;function Ae(yn){if(yn===0)He(Ee),xe();else{var Rn=zt(function(){Ae(yn-1)});Ie.set(Ee,Rn)}}return Ae(fe),Ee};en.cancel=function(le){var xe=Ie.get(le);return He(xe),Qt(xe)};var ie=en;function an(le){if(typeof MessageChannel=="undefined")ie(le);else{var xe=new MessageChannel;xe.port1.onmessage=function(){return le()},xe.port2.postMessage(void 0)}}function nn(){var le=Nt.useRef(null),xe=function(Ee){le.current||(le.current=[],an(function(){(0,Rt.unstable_batchedUpdates)(function(){le.current.forEach(function(Ae){Ae()}),le.current=null})})),le.current.push(Ee)};return xe}function Vn(le,xe){var fe=Nt.useState(xe),Ee=(0,Dt.Z)(fe,2),Ae=Ee[0],yn=Ee[1],Rn=be(function(Pi){le(function(){yn(Pi)})});return[Ae,Rn]}var Ne=Nt.createContext(null),Ye=["component"],zn=["className"],Gn=["className"],Me=function(xe,fe){var Ee=Nt.useContext(Ne);if(!Ee){var Ae=xe.component,yn=Ae===void 0?"div":Ae,Rn=(0,Ht.Z)(xe,Ye);return Nt.createElement(yn,(0,ft.Z)({},Rn,{ref:fe}))}var Pi=Ee.className,An=(0,Ht.Z)(Ee,zn),Mi=xe.className,pi=(0,Ht.Z)(xe,Gn);return Nt.createElement(Ne.Provider,{value:null},Nt.createElement(pe,(0,ft.Z)({ref:fe,className:jt()(Pi,Mi)},An,pi)))},_t=Nt.forwardRef(Me);_t.displayName="RawItem";var rn=_t,ti=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],vn="responsive",ze="invalidate";function on(le){return"+ ".concat(le.length," ...")}function On(le,xe){var fe=le.prefixCls,Ee=fe===void 0?"rc-overflow":fe,Ae=le.data,yn=Ae===void 0?[]:Ae,Rn=le.renderItem,Pi=le.renderRawItem,An=le.itemKey,Mi=le.itemWidth,pi=Mi===void 0?10:Mi,di=le.ssr,Wn=le.style,Bi=le.className,sr=le.maxCount,_i=le.renderRest,Ui=le.renderRawRest,qi=le.suffix,lr=le.component,je=lr===void 0?"div":lr,ve=le.itemComponent,ke=le.onVisibleChange,xn=(0,Ht.Z)(le,ti),cn=di==="full",ni=nn(),Ti=Vn(ni,null),qe=(0,Dt.Z)(Ti,2),Je=qe[0],sn=qe[1],hn=Je||0,bi=Vn(ni,new Map),zi=(0,Dt.Z)(bi,2),li=zi[0],Kn=zi[1],ur=Vn(ni,0),Ln=(0,Dt.Z)(ur,2),wn=Ln[0],_n=Ln[1],Ei=Vn(ni,0),gn=(0,Dt.Z)(Ei,2),Ji=gn[0],er=gn[1],Qi=Vn(ni,0),Ir=(0,Dt.Z)(Qi,2),Fr=Ir[0],yr=Ir[1],xo=(0,Nt.useState)(null),No=(0,Dt.Z)(xo,2),mo=No[0],oo=No[1],to=(0,Nt.useState)(null),Io=(0,Dt.Z)(to,2),so=Io[0],Zr=Io[1],Oo=Nt.useMemo(function(){return so===null&&cn?Number.MAX_SAFE_INTEGER:so||0},[so,Je]),Uo=(0,Nt.useState)(!1),Ls=(0,Dt.Z)(Uo,2),bs=Ls[0],ms=Ls[1],ds="".concat(Ee,"-item"),es=Math.max(wn,Ji),jo=sr===vn,Is=yn.length&&jo,Yo=sr===ze,Lo=Is||typeof sr=="number"&&yn.length>sr,Ao=(0,Nt.useMemo)(function(){var ii=yn;return Is?Je===null&&cn?ii=yn:ii=yn.slice(0,Math.min(yn.length,hn/pi)):typeof sr=="number"&&(ii=yn.slice(0,sr)),ii},[yn,pi,Je,sr,Is]),Ps=(0,Nt.useMemo)(function(){return Is?yn.slice(Oo+1):yn.slice(Ao.length)},[yn,Ao,Is,Oo]),os=(0,Nt.useCallback)(function(ii,rs){var Ns;return typeof An=="function"?An(ii):(Ns=An&&(ii==null?void 0:ii[An]))!==null&&Ns!==void 0?Ns:rs},[An]),xs=(0,Nt.useCallback)(Rn||function(ii){return ii},[Rn]);function Vo(ii,rs,Ns){so===ii&&(rs===void 0||rs===mo)||(Zr(ii),Ns||(ms(ii<yn.length-1),ke==null||ke(ii)),rs!==void 0&&oo(rs))}function fs(ii,rs){sn(rs.clientWidth)}function gs(ii,rs){Kn(function(Ns){var Rs=new Map(Ns);return rs===null?Rs.delete(ii):Rs.set(ii,rs),Rs})}function is(ii,rs){er(rs),_n(Ji)}function vs(ii,rs){yr(rs)}function Hs(ii){return li.get(os(Ao[ii],ii))}ue(function(){if(hn&&typeof es=="number"&&Ao){var ii=Fr,rs=Ao.length,Ns=rs-1;if(!rs){Vo(0,null);return}for(var Rs=0;Rs<rs;Rs+=1){var Qs=Hs(Rs);if(cn&&(Qs=Qs||0),Qs===void 0){Vo(Rs-1,void 0,!0);break}if(ii+=Qs,Ns===0&&ii<=hn||Rs===Ns-1&&ii+Hs(Ns)<=hn){Vo(Ns,null);break}else if(ii+es>hn){Vo(Rs-1,ii-Qs-Fr+Ji);break}}qi&&Hs(0)+Fr>hn&&oo(null)}},[hn,li,Ji,Fr,os,Ao]);var ua=bs&&!!Ps.length,ss={};mo!==null&&Is&&(ss={position:"absolute",left:mo,top:0});var _s={prefixCls:ds,responsive:Is,component:ve,invalidate:Yo},Ea=Pi?function(ii,rs){var Ns=os(ii,rs);return Nt.createElement(Ne.Provider,{key:Ns,value:(0,$t.Z)((0,$t.Z)({},_s),{},{order:rs,item:ii,itemKey:Ns,registerSize:gs,display:rs<=Oo})},Pi(ii,rs))}:function(ii,rs){var Ns=os(ii,rs);return Nt.createElement(pe,(0,ft.Z)({},_s,{order:rs,key:Ns,item:ii,renderItem:xs,itemKey:Ns,registerSize:gs,display:rs<=Oo}))},ya,Hr={order:ua?Oo:Number.MAX_SAFE_INTEGER,className:"".concat(ds,"-rest"),registerSize:is,display:ua};if(Ui)Ui&&(ya=Nt.createElement(Ne.Provider,{value:(0,$t.Z)((0,$t.Z)({},_s),Hr)},Ui(Ps)));else{var na=_i||on;ya=Nt.createElement(pe,(0,ft.Z)({},_s,Hr),typeof na=="function"?na(Ps):na)}var Ke=Nt.createElement(je,(0,ft.Z)({className:jt()(!Yo&&Ee,Bi),style:Wn,ref:xe},xn),Ao.map(Ea),Lo?ya:null,qi&&Nt.createElement(pe,(0,ft.Z)({},_s,{responsive:jo,responsiveDisabled:!Is,order:Oo,className:"".concat(ds,"-suffix"),registerSize:vs,display:!0,style:ss}),qi));return jo&&(Ke=Nt.createElement(Ut.Z,{onResize:fs,disabled:!Is},Ke)),Ke}var Ni=Nt.forwardRef(On);Ni.displayName="Overflow",Ni.Item=rn,Ni.RESPONSIVE=vn,Ni.INVALIDATE=ze;var gi=Ni,Dn=gi,Jn=mt(21770),Ai=mt(80334),hi=mt(91881),qt=Nt.createContext(null);function kt(le,xe){return le===void 0?null:"".concat(le,"-").concat(xe)}function Ct(le){var xe=Nt.useContext(qt);return kt(xe,le)}var Pt=mt(56982),At=["children","locked"],wt=Nt.createContext(null);function Xt(le,xe){var fe=(0,$t.Z)({},le);return Object.keys(xe).forEach(function(Ee){var Ae=xe[Ee];Ae!==void 0&&(fe[Ee]=Ae)}),fe}function Re(le){var xe=le.children,fe=le.locked,Ee=(0,Ht.Z)(le,At),Ae=Nt.useContext(wt),yn=(0,Pt.Z)(function(){return Xt(Ae,Ee)},[Ae,Ee],function(Rn,Pi){return!fe&&(Rn[0]!==Pi[0]||!(0,hi.Z)(Rn[1],Pi[1],!0))});return Nt.createElement(wt.Provider,{value:yn},xe)}var We=[],In=Nt.createContext(null);function Hn(){return Nt.useContext(In)}var Un=Nt.createContext(We);function Yn(le){var xe=Nt.useContext(Un);return Nt.useMemo(function(){return le!==void 0?[].concat((0,ne.Z)(xe),[le]):xe},[xe,le])}var Fe=Nt.createContext(null),bn=Nt.createContext({}),En=bn,Qn=mt(15105),Sn=mt(75164),Vi=function(le){if(!le)return!1;if(le instanceof Element){if(le.offsetParent)return!0;if(le.getBBox){var xe=le.getBBox(),fe=xe.width,Ee=xe.height;if(fe||Ee)return!0}if(le.getBoundingClientRect){var Ae=le.getBoundingClientRect(),yn=Ae.width,Rn=Ae.height;if(yn||Rn)return!0}}return!1};function Qe(le){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Vi(le)){var fe=le.nodeName.toLowerCase(),Ee=["input","select","textarea","button"].includes(fe)||le.isContentEditable||fe==="a"&&!!le.getAttribute("href"),Ae=le.getAttribute("tabindex"),yn=Number(Ae),Rn=null;return Ae&&!Number.isNaN(yn)?Rn=yn:Ee&&Rn===null&&(Rn=0),Ee&&le.disabled&&(Rn=null),Rn!==null&&(Rn>=0||xe&&Rn<0)}return!1}function Pn(le){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,fe=(0,ne.Z)(le.querySelectorAll("*")).filter(function(Ee){return Qe(Ee,xe)});return Qe(le,xe)&&fe.unshift(le),fe}var Ci=null;function yi(){Ci=document.activeElement}function Oi(){Ci=null}function ar(){if(Ci)try{Ci.focus()}catch(le){}}function br(le,xe){if(xe.keyCode===9){var fe=Pn(le),Ee=fe[xe.shiftKey?0:fe.length-1],Ae=Ee===document.activeElement||le===document.activeElement;if(Ae){var yn=fe[xe.shiftKey?fe.length-1:0];yn.focus(),xe.preventDefault()}}}var wr=Qn.Z.LEFT,cr=Qn.Z.RIGHT,Ar=Qn.Z.UP,ir=Qn.Z.DOWN,kr=Qn.Z.ENTER,po=Qn.Z.ESC,So=Qn.Z.HOME,Eo=Qn.Z.END,Yr=[Ar,ir,wr,cr];function Mn(le,xe,fe,Ee){var Ae,yn,Rn,Pi,An="prev",Mi="next",pi="children",di="parent";if(le==="inline"&&Ee===kr)return{inlineTrigger:!0};var Wn=(Ae={},(0,Ft.Z)(Ae,Ar,An),(0,Ft.Z)(Ae,ir,Mi),Ae),Bi=(yn={},(0,Ft.Z)(yn,wr,fe?Mi:An),(0,Ft.Z)(yn,cr,fe?An:Mi),(0,Ft.Z)(yn,ir,pi),(0,Ft.Z)(yn,kr,pi),yn),sr=(Rn={},(0,Ft.Z)(Rn,Ar,An),(0,Ft.Z)(Rn,ir,Mi),(0,Ft.Z)(Rn,kr,pi),(0,Ft.Z)(Rn,po,di),(0,Ft.Z)(Rn,wr,fe?pi:di),(0,Ft.Z)(Rn,cr,fe?di:pi),Rn),_i={inline:Wn,horizontal:Bi,vertical:sr,inlineSub:Wn,horizontalSub:sr,verticalSub:sr},Ui=(Pi=_i["".concat(le).concat(xe?"":"Sub")])===null||Pi===void 0?void 0:Pi[Ee];switch(Ui){case An:return{offset:-1,sibling:!0};case Mi:return{offset:1,sibling:!0};case di:return{offset:-1,sibling:!1};case pi:return{offset:1,sibling:!1};default:return null}}function St(le){for(var xe=le;xe;){if(xe.getAttribute("data-menu-list"))return xe;xe=xe.parentElement}return null}function Zi(le,xe){for(var fe=le||document.activeElement;fe;){if(xe.has(fe))return fe;fe=fe.parentElement}return null}function mi(le,xe){var fe=Pn(le,!0);return fe.filter(function(Ee){return xe.has(Ee)})}function rr(le,xe,fe){var Ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!le)return null;var Ae=mi(le,xe),yn=Ae.length,Rn=Ae.findIndex(function(Pi){return fe===Pi});return Ee<0?Rn===-1?Rn=yn-1:Rn-=1:Ee>0&&(Rn+=1),Rn=(Rn+yn)%yn,Ae[Rn]}function fr(le,xe,fe,Ee,Ae,yn,Rn,Pi,An,Mi){var pi=Nt.useRef(),di=Nt.useRef();di.current=xe;var Wn=function(){Sn.Z.cancel(pi.current)};return Nt.useEffect(function(){return function(){Wn()}},[]),function(Bi){var sr=Bi.which;if([].concat(Yr,[kr,po,So,Eo]).includes(sr)){var _i,Ui,qi,lr=function(){_i=new Set,Ui=new Map,qi=new Map;var zi=yn();return zi.forEach(function(li){var Kn=document.querySelector("[data-menu-id='".concat(kt(Ee,li),"']"));Kn&&(_i.add(Kn),qi.set(Kn,li),Ui.set(li,Kn))}),_i};lr();var je=Ui.get(xe),ve=Zi(je,_i),ke=qi.get(ve),xn=Mn(le,Rn(ke,!0).length===1,fe,sr);if(!xn&&sr!==So&&sr!==Eo)return;(Yr.includes(sr)||[So,Eo].includes(sr))&&Bi.preventDefault();var cn=function(zi){if(zi){var li=zi,Kn=zi.querySelector("a");Kn!=null&&Kn.getAttribute("href")&&(li=Kn);var ur=qi.get(zi);Pi(ur),Wn(),pi.current=(0,Sn.Z)(function(){di.current===ur&&li.focus()})}};if([So,Eo].includes(sr)||xn.sibling||!ve){var ni;!ve||le==="inline"?ni=Ae.current:ni=St(ve);var Ti,qe=mi(ni,_i);sr===So?Ti=qe[0]:sr===Eo?Ti=qe[qe.length-1]:Ti=rr(ni,_i,ve,xn.offset),cn(Ti)}else if(xn.inlineTrigger)An(ke);else if(xn.offset>0)An(ke,!0),Wn(),pi.current=(0,Sn.Z)(function(){lr();var bi=ve.getAttribute("aria-controls"),zi=document.getElementById(bi),li=rr(zi,_i);cn(li)},5);else if(xn.offset<0){var Je=Rn(ke,!0),sn=Je[Je.length-2],hn=Ui.get(sn);An(sn,!1),cn(hn)}}Mi==null||Mi(Bi)}}function pr(le){Promise.resolve().then(le)}var tr="__RC_UTIL_PATH_SPLIT__",Xe=function(xe){return xe.join(tr)},mn=function(xe){return xe.split(tr)},Tn="rc-menu-more";function Nn(){var le=Nt.useState({}),xe=(0,Dt.Z)(le,2),fe=xe[1],Ee=(0,Nt.useRef)(new Map),Ae=(0,Nt.useRef)(new Map),yn=Nt.useState([]),Rn=(0,Dt.Z)(yn,2),Pi=Rn[0],An=Rn[1],Mi=(0,Nt.useRef)(0),pi=(0,Nt.useRef)(!1),di=function(){pi.current||fe({})},Wn=(0,Nt.useCallback)(function(je,ve){var ke=Xe(ve);Ae.current.set(ke,je),Ee.current.set(je,ke),Mi.current+=1;var xn=Mi.current;pr(function(){xn===Mi.current&&di()})},[]),Bi=(0,Nt.useCallback)(function(je,ve){var ke=Xe(ve);Ae.current.delete(ke),Ee.current.delete(je)},[]),sr=(0,Nt.useCallback)(function(je){An(je)},[]),_i=(0,Nt.useCallback)(function(je,ve){var ke=Ee.current.get(je)||"",xn=mn(ke);return ve&&Pi.includes(xn[0])&&xn.unshift(Tn),xn},[Pi]),Ui=(0,Nt.useCallback)(function(je,ve){return je.some(function(ke){var xn=_i(ke,!0);return xn.includes(ve)})},[_i]),qi=function(){var ve=(0,ne.Z)(Ee.current.keys());return Pi.length&&ve.push(Tn),ve},lr=(0,Nt.useCallback)(function(je){var ve="".concat(Ee.current.get(je)).concat(tr),ke=new Set;return(0,ne.Z)(Ae.current.keys()).forEach(function(xn){xn.startsWith(ve)&&ke.add(Ae.current.get(xn))}),ke},[]);return Nt.useEffect(function(){return function(){pi.current=!0}},[]),{registerPath:Wn,unregisterPath:Bi,refreshOverflowKeys:sr,isSubPathKey:Ui,getKeyPath:_i,getKeys:qi,getSubPathKeys:lr}}function ge(le){var xe=Nt.useRef(le);xe.current=le;var fe=Nt.useCallback(function(){for(var Ee,Ae=arguments.length,yn=new Array(Ae),Rn=0;Rn<Ae;Rn++)yn[Rn]=arguments[Rn];return(Ee=xe.current)===null||Ee===void 0?void 0:Ee.call.apply(Ee,[xe].concat(yn))},[]);return le?fe:void 0}var Cn=Math.random().toFixed(5).toString().slice(2),ai=0;function Te(le){var xe=(0,Jn.Z)(le,{value:le}),fe=(0,Dt.Z)(xe,2),Ee=fe[0],Ae=fe[1];return Nt.useEffect(function(){ai+=1;var yn="".concat(Cn,"-").concat(ai);Ae("rc-menu-uuid-".concat(yn))},[]),Ee}var ce=mt(15671),Oe=mt(43144),pn=mt(60136),fi=mt(51630),$n=mt(98423),_e=mt(42550);function ri(le,xe,fe,Ee){var Ae=Nt.useContext(wt),yn=Ae.activeKey,Rn=Ae.onActive,Pi=Ae.onInactive,An={active:yn===le};return xe||(An.onMouseEnter=function(Mi){fe==null||fe({key:le,domEvent:Mi}),Rn(le)},An.onMouseLeave=function(Mi){Ee==null||Ee({key:le,domEvent:Mi}),Pi(le)}),An}function Ri(le){var xe=Nt.useContext(wt),fe=xe.mode,Ee=xe.rtl,Ae=xe.inlineIndent;if(fe!=="inline")return null;var yn=le;return Ee?{paddingRight:yn*Ae}:{paddingLeft:yn*Ae}}function $e(le){var xe=le.icon,fe=le.props,Ee=le.children,Ae;return xe===null||xe===!1?null:(typeof xe=="function"?Ae=Nt.createElement(xe,(0,$t.Z)({},fe)):typeof xe!="boolean"&&(Ae=xe),Ae||Ee||null)}var Ge=["item"];function un(le){var xe=le.item,fe=(0,Ht.Z)(le,Ge);return Object.defineProperty(fe,"item",{get:function(){return(0,Ai.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),xe}}),fe}var xi=["title","attribute","elementRef"],Yi=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ci=["active"],Xn=function(le){(0,pn.Z)(fe,le);var xe=(0,fi.Z)(fe);function fe(){return(0,ce.Z)(this,fe),xe.apply(this,arguments)}return(0,Oe.Z)(fe,[{key:"render",value:function(){var Ae=this.props,yn=Ae.title,Rn=Ae.attribute,Pi=Ae.elementRef,An=(0,Ht.Z)(Ae,xi),Mi=(0,$n.Z)(An,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,Ai.ZP)(!Rn,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),Nt.createElement(Dn.Item,(0,ft.Z)({},Rn,{title:typeof yn=="string"?yn:void 0},Mi,{ref:Pi}))}}]),fe}(Nt.Component),qn=Nt.forwardRef(function(le,xe){var fe,Ee=le.style,Ae=le.className,yn=le.eventKey,Rn=le.warnKey,Pi=le.disabled,An=le.itemIcon,Mi=le.children,pi=le.role,di=le.onMouseEnter,Wn=le.onMouseLeave,Bi=le.onClick,sr=le.onKeyDown,_i=le.onFocus,Ui=(0,Ht.Z)(le,Yi),qi=Ct(yn),lr=Nt.useContext(wt),je=lr.prefixCls,ve=lr.onItemClick,ke=lr.disabled,xn=lr.overflowDisabled,cn=lr.itemIcon,ni=lr.selectedKeys,Ti=lr.onActive,qe=Nt.useContext(En),Je=qe._internalRenderMenuItem,sn="".concat(je,"-item"),hn=Nt.useRef(),bi=Nt.useRef(),zi=ke||Pi,li=(0,_e.x1)(xe,bi),Kn=Yn(yn),ur=function(No){return{key:yn,keyPath:(0,ne.Z)(Kn).reverse(),item:hn.current,domEvent:No}},Ln=An||cn,wn=ri(yn,zi,di,Wn),_n=wn.active,Ei=(0,Ht.Z)(wn,ci),gn=ni.includes(yn),Ji=Ri(Kn.length),er=function(No){if(!zi){var mo=ur(No);Bi==null||Bi(un(mo)),ve(mo)}},Qi=function(No){if(sr==null||sr(No),No.which===Qn.Z.ENTER){var mo=ur(No);Bi==null||Bi(un(mo)),ve(mo)}},Ir=function(No){Ti(yn),_i==null||_i(No)},Fr={};le.role==="option"&&(Fr["aria-selected"]=gn);var yr=Nt.createElement(Xn,(0,ft.Z)({ref:hn,elementRef:li,role:pi===null?"none":pi||"menuitem",tabIndex:Pi?null:-1,"data-menu-id":xn&&qi?null:qi},Ui,Ei,Fr,{component:"li","aria-disabled":Pi,style:(0,$t.Z)((0,$t.Z)({},Ji),Ee),className:jt()(sn,(fe={},(0,Ft.Z)(fe,"".concat(sn,"-active"),_n),(0,Ft.Z)(fe,"".concat(sn,"-selected"),gn),(0,Ft.Z)(fe,"".concat(sn,"-disabled"),zi),fe),Ae),onClick:er,onKeyDown:Qi,onFocus:Ir}),Mi,Nt.createElement($e,{props:(0,$t.Z)((0,$t.Z)({},le),{},{isSelected:gn}),icon:Ln}));return Je&&(yr=Je(yr,le,{selected:gn})),yr});function Ki(le,xe){var fe=le.eventKey,Ee=Hn(),Ae=Yn(fe);return Nt.useEffect(function(){if(Ee)return Ee.registerPath(fe,Ae),function(){Ee.unregisterPath(fe,Ae)}},[Ae]),Ee?null:Nt.createElement(qn,(0,ft.Z)({},le,{ref:xe}))}var vr=Nt.forwardRef(Ki),ki=["className","children"],Or=function(xe,fe){var Ee=xe.className,Ae=xe.children,yn=(0,Ht.Z)(xe,ki),Rn=Nt.useContext(wt),Pi=Rn.prefixCls,An=Rn.mode,Mi=Rn.rtl;return Nt.createElement("ul",(0,ft.Z)({className:jt()(Pi,Mi&&"".concat(Pi,"-rtl"),"".concat(Pi,"-sub"),"".concat(Pi,"-").concat(An==="inline"?"inline":"vertical"),Ee),role:"menu"},yn,{"data-menu-list":!0,ref:fe}),Ae)},Ii=Nt.forwardRef(Or);Ii.displayName="SubMenuList";var ao=Ii,qr=mt(50344);function Do(le,xe){return(0,qr.Z)(le).map(function(fe,Ee){if(Nt.isValidElement(fe)){var Ae,yn,Rn=fe.key,Pi=(Ae=(yn=fe.props)===null||yn===void 0?void 0:yn.eventKey)!==null&&Ae!==void 0?Ae:Rn,An=Pi==null;An&&(Pi="tmp_key-".concat([].concat((0,ne.Z)(xe),[Ee]).join("-")));var Mi={key:Pi,eventKey:Pi};return Nt.cloneElement(fe,Mi)}return fe})}var ui=mt(62709),Co={adjustX:1,adjustY:1},bo={topLeft:{points:["bl","tl"],overflow:Co},topRight:{points:["br","tr"],overflow:Co},bottomLeft:{points:["tl","bl"],overflow:Co},bottomRight:{points:["tr","br"],overflow:Co},leftTop:{points:["tr","tl"],overflow:Co},leftBottom:{points:["br","bl"],overflow:Co},rightTop:{points:["tl","tr"],overflow:Co},rightBottom:{points:["bl","br"],overflow:Co}},Kr={topLeft:{points:["bl","tl"],overflow:Co},topRight:{points:["br","tr"],overflow:Co},bottomLeft:{points:["tl","bl"],overflow:Co},bottomRight:{points:["tr","br"],overflow:Co},rightTop:{points:["tr","tl"],overflow:Co},rightBottom:{points:["br","bl"],overflow:Co},leftTop:{points:["tl","tr"],overflow:Co},leftBottom:{points:["bl","br"],overflow:Co}},wo=null;function Sr(le,xe,fe){if(xe)return xe;if(fe)return fe[le]||fe.other}var Xr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Br(le){var xe=le.prefixCls,fe=le.visible,Ee=le.children,Ae=le.popup,yn=le.popupStyle,Rn=le.popupClassName,Pi=le.popupOffset,An=le.disabled,Mi=le.mode,pi=le.onVisibleChange,di=Nt.useContext(wt),Wn=di.getPopupContainer,Bi=di.rtl,sr=di.subMenuOpenDelay,_i=di.subMenuCloseDelay,Ui=di.builtinPlacements,qi=di.triggerSubMenuAction,lr=di.forceSubMenuRender,je=di.rootClassName,ve=di.motion,ke=di.defaultMotions,xn=Nt.useState(!1),cn=(0,Dt.Z)(xn,2),ni=cn[0],Ti=cn[1],qe=Bi?(0,$t.Z)((0,$t.Z)({},Kr),Ui):(0,$t.Z)((0,$t.Z)({},bo),Ui),Je=Xr[Mi],sn=Sr(Mi,ve,ke),hn=Nt.useRef(sn);Mi!=="inline"&&(hn.current=sn);var bi=(0,$t.Z)((0,$t.Z)({},hn.current),{},{leavedClassName:"".concat(xe,"-hidden"),removeOnLeave:!1,motionAppear:!0}),zi=Nt.useRef();return Nt.useEffect(function(){return zi.current=(0,Sn.Z)(function(){Ti(fe)}),function(){Sn.Z.cancel(zi.current)}},[fe]),Nt.createElement(ui.Z,{prefixCls:xe,popupClassName:jt()("".concat(xe,"-popup"),(0,Ft.Z)({},"".concat(xe,"-rtl"),Bi),Rn,je),stretch:Mi==="horizontal"?"minWidth":null,getPopupContainer:Wn,builtinPlacements:qe,popupPlacement:Je,popupVisible:ni,popup:Ae,popupStyle:yn,popupAlign:Pi&&{offset:Pi},action:An?[]:[qi],mouseEnterDelay:sr,mouseLeaveDelay:_i,onPopupVisibleChange:pi,forceRender:lr,popupMotion:bi,fresh:!0},Ee)}var yo=mt(62874);function ko(le){var xe=le.id,fe=le.open,Ee=le.keyPath,Ae=le.children,yn="inline",Rn=Nt.useContext(wt),Pi=Rn.prefixCls,An=Rn.forceSubMenuRender,Mi=Rn.motion,pi=Rn.defaultMotions,di=Rn.mode,Wn=Nt.useRef(!1);Wn.current=di===yn;var Bi=Nt.useState(!Wn.current),sr=(0,Dt.Z)(Bi,2),_i=sr[0],Ui=sr[1],qi=Wn.current?fe:!1;Nt.useEffect(function(){Wn.current&&Ui(!1)},[di]);var lr=(0,$t.Z)({},Sr(yn,Mi,pi));Ee.length>1&&(lr.motionAppear=!1);var je=lr.onVisibleChanged;return lr.onVisibleChanged=function(ve){return!Wn.current&&!ve&&Ui(!0),je==null?void 0:je(ve)},_i?null:Nt.createElement(Re,{mode:yn,locked:!Wn.current},Nt.createElement(yo.Z,(0,ft.Z)({visible:qi},lr,{forceRender:An,removeOnLeave:!1,leavedClassName:"".concat(Pi,"-hidden")}),function(ve){var ke=ve.className,xn=ve.style;return Nt.createElement(ao,{id:xe,className:ke,style:xn},Ae)}))}var oi=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],kn=["active"],Ce=function(xe){var fe,Ee=xe.style,Ae=xe.className,yn=xe.title,Rn=xe.eventKey,Pi=xe.warnKey,An=xe.disabled,Mi=xe.internalPopupClose,pi=xe.children,di=xe.itemIcon,Wn=xe.expandIcon,Bi=xe.popupClassName,sr=xe.popupOffset,_i=xe.popupStyle,Ui=xe.onClick,qi=xe.onMouseEnter,lr=xe.onMouseLeave,je=xe.onTitleClick,ve=xe.onTitleMouseEnter,ke=xe.onTitleMouseLeave,xn=(0,Ht.Z)(xe,oi),cn=Ct(Rn),ni=Nt.useContext(wt),Ti=ni.prefixCls,qe=ni.mode,Je=ni.openKeys,sn=ni.disabled,hn=ni.overflowDisabled,bi=ni.activeKey,zi=ni.selectedKeys,li=ni.itemIcon,Kn=ni.expandIcon,ur=ni.onItemClick,Ln=ni.onOpenChange,wn=ni.onActive,_n=Nt.useContext(En),Ei=_n._internalRenderSubMenuItem,gn=Nt.useContext(Fe),Ji=gn.isSubPathKey,er=Yn(),Qi="".concat(Ti,"-submenu"),Ir=sn||An,Fr=Nt.useRef(),yr=Nt.useRef(),xo=di!=null?di:li,No=Wn!=null?Wn:Kn,mo=Je.includes(Rn),oo=!hn&&mo,to=Ji(zi,Rn),Io=ri(Rn,Ir,ve,ke),so=Io.active,Zr=(0,Ht.Z)(Io,kn),Oo=Nt.useState(!1),Uo=(0,Dt.Z)(Oo,2),Ls=Uo[0],bs=Uo[1],ms=function(vs){Ir||bs(vs)},ds=function(vs){ms(!0),qi==null||qi({key:Rn,domEvent:vs})},es=function(vs){ms(!1),lr==null||lr({key:Rn,domEvent:vs})},jo=Nt.useMemo(function(){return so||(qe!=="inline"?Ls||Ji([bi],Rn):!1)},[qe,so,bi,Ls,Rn,Ji]),Is=Ri(er.length),Yo=function(vs){Ir||(je==null||je({key:Rn,domEvent:vs}),qe==="inline"&&Ln(Rn,!mo))},Lo=ge(function(is){Ui==null||Ui(un(is)),ur(is)}),Ao=function(vs){qe!=="inline"&&Ln(Rn,vs)},Ps=function(){wn(Rn)},os=cn&&"".concat(cn,"-popup"),xs=Nt.createElement("div",(0,ft.Z)({role:"menuitem",style:Is,className:"".concat(Qi,"-title"),tabIndex:Ir?null:-1,ref:Fr,title:typeof yn=="string"?yn:null,"data-menu-id":hn&&cn?null:cn,"aria-expanded":oo,"aria-haspopup":!0,"aria-controls":os,"aria-disabled":Ir,onClick:Yo,onFocus:Ps},Zr),yn,Nt.createElement($e,{icon:qe!=="horizontal"?No:void 0,props:(0,$t.Z)((0,$t.Z)({},xe),{},{isOpen:oo,isSubMenu:!0})},Nt.createElement("i",{className:"".concat(Qi,"-arrow")}))),Vo=Nt.useRef(qe);if(qe!=="inline"&&er.length>1?Vo.current="vertical":Vo.current=qe,!hn){var fs=Vo.current;xs=Nt.createElement(Br,{mode:fs,prefixCls:Qi,visible:!Mi&&oo&&qe!=="inline",popupClassName:Bi,popupOffset:sr,popupStyle:_i,popup:Nt.createElement(Re,{mode:fs==="horizontal"?"vertical":fs},Nt.createElement(ao,{id:os,ref:yr},pi)),disabled:Ir,onVisibleChange:Ao},xs)}var gs=Nt.createElement(Dn.Item,(0,ft.Z)({role:"none"},xn,{component:"li",style:Ee,className:jt()(Qi,"".concat(Qi,"-").concat(qe),Ae,(fe={},(0,Ft.Z)(fe,"".concat(Qi,"-open"),oo),(0,Ft.Z)(fe,"".concat(Qi,"-active"),jo),(0,Ft.Z)(fe,"".concat(Qi,"-selected"),to),(0,Ft.Z)(fe,"".concat(Qi,"-disabled"),Ir),fe)),onMouseEnter:ds,onMouseLeave:es}),xs,!hn&&Nt.createElement(ko,{id:os,open:oo,keyPath:er},pi));return Ei&&(gs=Ei(gs,xe,{selected:to,active:jo,open:oo,disabled:Ir})),Nt.createElement(Re,{onItemClick:Lo,mode:qe==="horizontal"?"vertical":qe,itemIcon:xo,expandIcon:No},gs)};function si(le){var xe=le.eventKey,fe=le.children,Ee=Yn(xe),Ae=Do(fe,Ee),yn=Hn();Nt.useEffect(function(){if(yn)return yn.registerPath(xe,Ee),function(){yn.unregisterPath(xe,Ee)}},[Ee]);var Rn;return yn?Rn=Ae:Rn=Nt.createElement(Ce,le,Ae),Nt.createElement(Un.Provider,{value:Ee},Rn)}var Wi=mt(71002),Gi=["className","title","eventKey","children"],Tr=["children"],Lr=function(xe){var fe=xe.className,Ee=xe.title,Ae=xe.eventKey,yn=xe.children,Rn=(0,Ht.Z)(xe,Gi),Pi=Nt.useContext(wt),An=Pi.prefixCls,Mi="".concat(An,"-item-group");return Nt.createElement("li",(0,ft.Z)({role:"presentation"},Rn,{onClick:function(di){return di.stopPropagation()},className:jt()(Mi,fe)}),Nt.createElement("div",{role:"presentation",className:"".concat(Mi,"-title"),title:typeof Ee=="string"?Ee:void 0},Ee),Nt.createElement("ul",{role:"group",className:"".concat(Mi,"-list")},yn))};function Cr(le){var xe=le.children,fe=(0,Ht.Z)(le,Tr),Ee=Yn(fe.eventKey),Ae=Do(xe,Ee),yn=Hn();return yn?Ae:Nt.createElement(Lr,(0,$n.Z)(fe,["warnKey"]),Ae)}function jr(le){var xe=le.className,fe=le.style,Ee=Nt.useContext(wt),Ae=Ee.prefixCls,yn=Hn();return yn?null:Nt.createElement("li",{role:"separator",className:jt()("".concat(Ae,"-item-divider"),xe),style:fe})}var Jr=["label","children","key","type"];function Wr(le){return(le||[]).map(function(xe,fe){if(xe&&(0,Wi.Z)(xe)==="object"){var Ee=xe,Ae=Ee.label,yn=Ee.children,Rn=Ee.key,Pi=Ee.type,An=(0,Ht.Z)(Ee,Jr),Mi=Rn!=null?Rn:"tmp-".concat(fe);return yn||Pi==="group"?Pi==="group"?Nt.createElement(Cr,(0,ft.Z)({key:Mi},An,{title:Ae}),Wr(yn)):Nt.createElement(si,(0,ft.Z)({key:Mi},An,{title:Ae}),Wr(yn)):Pi==="divider"?Nt.createElement(jr,(0,ft.Z)({key:Mi},An)):Nt.createElement(vr,(0,ft.Z)({key:Mi},An),Ae)}return null}).filter(function(xe){return xe})}function or(le,xe,fe){var Ee=le;return xe&&(Ee=Wr(xe)),Do(Ee,fe)}var Gt=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Zn=[],wi=Nt.forwardRef(function(le,xe){var fe,Ee,Ae=le,yn=Ae.prefixCls,Rn=yn===void 0?"rc-menu":yn,Pi=Ae.rootClassName,An=Ae.style,Mi=Ae.className,pi=Ae.tabIndex,di=pi===void 0?0:pi,Wn=Ae.items,Bi=Ae.children,sr=Ae.direction,_i=Ae.id,Ui=Ae.mode,qi=Ui===void 0?"vertical":Ui,lr=Ae.inlineCollapsed,je=Ae.disabled,ve=Ae.disabledOverflow,ke=Ae.subMenuOpenDelay,xn=ke===void 0?.1:ke,cn=Ae.subMenuCloseDelay,ni=cn===void 0?.1:cn,Ti=Ae.forceSubMenuRender,qe=Ae.defaultOpenKeys,Je=Ae.openKeys,sn=Ae.activeKey,hn=Ae.defaultActiveFirst,bi=Ae.selectable,zi=bi===void 0?!0:bi,li=Ae.multiple,Kn=li===void 0?!1:li,ur=Ae.defaultSelectedKeys,Ln=Ae.selectedKeys,wn=Ae.onSelect,_n=Ae.onDeselect,Ei=Ae.inlineIndent,gn=Ei===void 0?24:Ei,Ji=Ae.motion,er=Ae.defaultMotions,Qi=Ae.triggerSubMenuAction,Ir=Qi===void 0?"hover":Qi,Fr=Ae.builtinPlacements,yr=Ae.itemIcon,xo=Ae.expandIcon,No=Ae.overflowedIndicator,mo=No===void 0?"...":No,oo=Ae.overflowedIndicatorPopupClassName,to=Ae.getPopupContainer,Io=Ae.onClick,so=Ae.onOpenChange,Zr=Ae.onKeyDown,Oo=Ae.openAnimation,Uo=Ae.openTransitionName,Ls=Ae._internalRenderMenuItem,bs=Ae._internalRenderSubMenuItem,ms=(0,Ht.Z)(Ae,Gt),ds=Nt.useMemo(function(){return or(Bi,Wn,Zn)},[Bi,Wn]),es=Nt.useState(!1),jo=(0,Dt.Z)(es,2),Is=jo[0],Yo=jo[1],Lo=Nt.useRef(),Ao=Te(_i),Ps=sr==="rtl",os=(0,Jn.Z)(qe,{value:Je,postState:function(Vs){return Vs||Zn}}),xs=(0,Dt.Z)(os,2),Vo=xs[0],fs=xs[1],gs=function(Vs){var ba=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function _a(){fs(Vs),so==null||so(Vs)}ba?(0,Rt.flushSync)(_a):_a()},is=Nt.useState(Vo),vs=(0,Dt.Z)(is,2),Hs=vs[0],ua=vs[1],ss=Nt.useRef(!1),_s=Nt.useMemo(function(){return(qi==="inline"||qi==="vertical")&&lr?["vertical",lr]:[qi,!1]},[qi,lr]),Ea=(0,Dt.Z)(_s,2),ya=Ea[0],Hr=Ea[1],na=ya==="inline",Ke=Nt.useState(ya),ii=(0,Dt.Z)(Ke,2),rs=ii[0],Ns=ii[1],Rs=Nt.useState(Hr),Qs=(0,Dt.Z)(Rs,2),Na=Qs[0],Ka=Qs[1];Nt.useEffect(function(){Ns(ya),Ka(Hr),ss.current&&(na?fs(Hs):gs(Zn))},[ya,Hr]);var vl=Nt.useState(0),Bs=(0,Dt.Z)(vl,2),co=Bs[0],xa=Bs[1],ps=co>=ds.length-1||rs!=="horizontal"||ve;Nt.useEffect(function(){na&&ua(Vo)},[Vo]),Nt.useEffect(function(){return ss.current=!0,function(){ss.current=!1}},[]);var zo=Nn(),Fo=zo.registerPath,ys=zo.unregisterPath,Ys=zo.refreshOverflowKeys,us=zo.isSubPathKey,Ha=zo.getKeyPath,ha=zo.getKeys,Tl=zo.getSubPathKeys,vo=Nt.useMemo(function(){return{registerPath:Fo,unregisterPath:ys}},[Fo,ys]),Vr=Nt.useMemo(function(){return{isSubPathKey:us}},[us]);Nt.useEffect(function(){Ys(ps?Zn:ds.slice(co+1).map(function(ka){return ka.key}))},[co,ps]);var _r=(0,Jn.Z)(sn||hn&&((fe=ds[0])===null||fe===void 0?void 0:fe.key),{value:sn}),no=(0,Dt.Z)(_r,2),ho=no[0],cs=no[1],Zo=ge(function(ka){cs(ka)}),Dl=ge(function(){cs(void 0)});(0,Nt.useImperativeHandle)(xe,function(){return{list:Lo.current,focus:function(Vs){var ba,_a=ho!=null?ho:(ba=ds.find(function(ju){return!ju.props.disabled}))===null||ba===void 0?void 0:ba.key;if(_a){var da,Bl,Ta;(da=Lo.current)===null||da===void 0||(Bl=da.querySelector("li[data-menu-id='".concat(kt(Ao,_a),"']")))===null||Bl===void 0||(Ta=Bl.focus)===null||Ta===void 0||Ta.call(Bl,Vs)}}}});var Mo=(0,Jn.Z)(ur||[],{value:Ln,postState:function(Vs){return Array.isArray(Vs)?Vs:Vs==null?Zn:[Vs]}}),Fu=(0,Dt.Z)(Mo,2),Po=Fu[0],Cl=Fu[1],Ol=function(Vs){if(zi){var ba=Vs.key,_a=Po.includes(ba),da;Kn?_a?da=Po.filter(function(Ta){return Ta!==ba}):da=[].concat((0,ne.Z)(Po),[ba]):da=[ba],Cl(da);var Bl=(0,$t.Z)((0,$t.Z)({},Vs),{},{selectedKeys:da});_a?_n==null||_n(Bl):wn==null||wn(Bl)}!Kn&&Vo.length&&rs!=="inline"&&gs(Zn)},Mc=ge(function(ka){Io==null||Io(un(ka)),Ol(ka)}),Hc=ge(function(ka,Vs){var ba=Vo.filter(function(da){return da!==ka});if(Vs)ba.push(ka);else if(rs!=="inline"){var _a=Tl(ka);ba=ba.filter(function(da){return!_a.has(da)})}(0,hi.Z)(Vo,ba,!0)||gs(ba,!0)}),Ru=function(Vs,ba){var _a=ba!=null?ba:!Vo.includes(Vs);Hc(Vs,_a)},yl=fr(rs,ho,Ps,Ao,Lo,ha,Ha,cs,Ru,Zr);Nt.useEffect(function(){Yo(!0)},[]);var sc=Nt.useMemo(function(){return{_internalRenderMenuItem:Ls,_internalRenderSubMenuItem:bs}},[Ls,bs]),ws=rs!=="horizontal"||ve?ds:ds.map(function(ka,Vs){return Nt.createElement(Re,{key:ka.key,overflowDisabled:Vs>co},ka)}),zu=Nt.createElement(Dn,(0,ft.Z)({id:_i,ref:Lo,prefixCls:"".concat(Rn,"-overflow"),component:"ul",itemComponent:vr,className:jt()(Rn,"".concat(Rn,"-root"),"".concat(Rn,"-").concat(rs),Mi,(Ee={},(0,Ft.Z)(Ee,"".concat(Rn,"-inline-collapsed"),Na),(0,Ft.Z)(Ee,"".concat(Rn,"-rtl"),Ps),Ee),Pi),dir:sr,style:An,role:"menu",tabIndex:di,data:ws,renderRawItem:function(Vs){return Vs},renderRawRest:function(Vs){var ba=Vs.length,_a=ba?ds.slice(-ba):null;return Nt.createElement(si,{eventKey:Tn,title:mo,disabled:ps,internalPopupClose:ba===0,popupClassName:oo},_a)},maxCount:rs!=="horizontal"||ve?Dn.INVALIDATE:Dn.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Vs){xa(Vs)},onKeyDown:yl},ms));return Nt.createElement(En.Provider,{value:sc},Nt.createElement(qt.Provider,{value:Ao},Nt.createElement(Re,{prefixCls:Rn,rootClassName:Pi,mode:rs,openKeys:Vo,rtl:Ps,disabled:je,motion:Is?Ji:null,defaultMotions:Is?er:null,activeKey:ho,onActive:Zo,onInactive:Dl,selectedKeys:Po,inlineIndent:gn,subMenuOpenDelay:xn,subMenuCloseDelay:ni,forceSubMenuRender:Ti,builtinPlacements:Fr,triggerSubMenuAction:Ir,getPopupContainer:to,itemIcon:yr,expandIcon:xo,onItemClick:Mc,onOpenChange:Hc},Nt.createElement(Fe.Provider,{value:Vr},zu),Nt.createElement("div",{style:{display:"none"},"aria-hidden":!0},Nt.createElement(In.Provider,{value:vo},ds)))))}),Fi=wi,Tt=Fi;Tt.Item=vr,Tt.SubMenu=si,Tt.ItemGroup=Cr,Tt.Divider=jr;var ee=Tt},81626:function(jn,tn){"use strict";tn.Z={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"}},66680:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Ft}});var ft=mt(67294);function Ft($t){var ne=ft.useRef();ne.current=$t;var Dt=ft.useCallback(function(){for(var Ht,Wt=arguments.length,jt=new Array(Wt),Nt=0;Nt<Wt;Nt++)jt[Nt]=arguments[Nt];return(Ht=ne.current)===null||Ht===void 0?void 0:Ht.call.apply(Ht,[ne].concat(jt))},[]);return Dt}},21770:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Ht}});var ft=mt(97685),Ft=mt(66680),$t=mt(8410),ne=mt(63896);function Dt(Wt){return Wt!==void 0}function Ht(Wt,jt){var Nt=jt||{},Ut=Nt.defaultValue,De=Nt.value,Yt=Nt.onChange,de=Nt.postState,we=(0,ne.Z)(function(){return Dt(De)?De:Dt(Ut)?typeof Ut=="function"?Ut():Ut:typeof Wt=="function"?Wt():Wt}),ue=(0,ft.Z)(we,2),he=ue[0],It=ue[1],ye=De!==void 0?De:he,Ze=de?de(ye):ye,pe=(0,Ft.Z)(Yt),be=(0,ne.Z)([ye]),Rt=(0,ft.Z)(be,2),zt=Rt[0],Qt=Rt[1];(0,$t.o)(function(){var Ie=zt[0];he!==Ie&&pe(he,Ie)},[zt]),(0,$t.o)(function(){Dt(De)||It(De)},[De]);var te=(0,Ft.Z)(function(Ie,He){It(Ie,He),Qt([ye],He)});return[Ze,te]}},91881:function(jn,tn,mt){"use strict";var ft=mt(71002),Ft=mt(80334);function $t(ne,Dt){var Ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Wt=new Set;function jt(Nt,Ut){var De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Yt=Wt.has(Nt);if((0,Ft.ZP)(!Yt,"Warning: There may be circular references"),Yt)return!1;if(Nt===Ut)return!0;if(Ht&&De>1)return!1;Wt.add(Nt);var de=De+1;if(Array.isArray(Nt)){if(!Array.isArray(Ut)||Nt.length!==Ut.length)return!1;for(var we=0;we<Nt.length;we++)if(!jt(Nt[we],Ut[we],de))return!1;return!0}if(Nt&&Ut&&(0,ft.Z)(Nt)==="object"&&(0,ft.Z)(Ut)==="object"){var ue=Object.keys(Nt);return ue.length!==Object.keys(Ut).length?!1:ue.every(function(he){return jt(Nt[he],Ut[he],de)})}return!1}return jt(ne,Dt)}tn.Z=$t},98423:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Ft}});var ft=mt(1413);function Ft($t,ne){var Dt=(0,ft.Z)({},$t);return Array.isArray(ne)&&ne.forEach(function(Ht){delete Dt[Ht]}),Dt}},64217:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return jt}});var ft=mt(1413),Ft=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,$t=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ne="".concat(Ft," ").concat($t).split(/[\s\n]+/),Dt="aria-",Ht="data-";function Wt(Nt,Ut){return Nt.indexOf(Ut)===0}function jt(Nt){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,De;Ut===!1?De={aria:!0,data:!0,attr:!0}:Ut===!0?De={aria:!0}:De=(0,ft.Z)({},Ut);var Yt={};return Object.keys(Nt).forEach(function(de){(De.aria&&(de==="role"||Wt(de,Dt))||De.data&&Wt(de,Ht)||De.attr&&ne.includes(de))&&(Yt[de]=Nt[de])}),Yt}},73299:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return Yr}});var ft=mt(87462),Ft=mt(1413),$t=mt(71002),ne=mt(97685),Dt=mt(4942),Ht=mt(45987),Wt=mt(67294),jt=mt(73935),Nt=mt(94184),Ut=mt.n(Nt),De=mt(48555),Yt=Wt.forwardRef(function(Mn,St){var Zi=Mn.height,mi=Mn.offsetY,rr=Mn.offsetX,fr=Mn.children,pr=Mn.prefixCls,tr=Mn.onInnerResize,Xe=Mn.innerProps,mn=Mn.rtl,Tn=Mn.extra,Nn={},ge={display:"flex",flexDirection:"column"};if(mi!==void 0){var Cn;Nn={height:Zi,position:"relative",overflow:"hidden"},ge=(0,Ft.Z)((0,Ft.Z)({},ge),{},(Cn={transform:"translateY(".concat(mi,"px)")},(0,Dt.Z)(Cn,mn?"marginRight":"marginLeft",-rr),(0,Dt.Z)(Cn,"position","absolute"),(0,Dt.Z)(Cn,"left",0),(0,Dt.Z)(Cn,"right",0),(0,Dt.Z)(Cn,"top",0),Cn))}return Wt.createElement("div",{style:Nn},Wt.createElement(De.Z,{onResize:function(Te){var ce=Te.offsetHeight;ce&&tr&&tr()}},Wt.createElement("div",(0,ft.Z)({style:ge,className:Ut()((0,Dt.Z)({},"".concat(pr,"-holder-inner"),pr)),ref:St},Xe),fr,Tn)))});Yt.displayName="Filler";var de=Yt,we=function(St){return+setTimeout(St,16)},ue=function(St){return clearTimeout(St)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(we=function(St){return window.requestAnimationFrame(St)},ue=function(St){return window.cancelAnimationFrame(St)});var he=0,It=new Map;function ye(Mn){It.delete(Mn)}var Ze=function(St){var Zi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;he+=1;var mi=he;function rr(fr){if(fr===0)ye(mi),St();else{var pr=we(function(){rr(fr-1)});It.set(mi,pr)}}return rr(Zi),mi};Ze.cancel=function(Mn){var St=It.get(Mn);return ye(St),ue(St)};var pe=Ze;function be(Mn,St){var Zi="touches"in Mn?Mn.touches[0]:Mn;return Zi[St?"pageX":"pageY"]}var Rt=Wt.forwardRef(function(Mn,St){var Zi,mi=Mn.prefixCls,rr=Mn.rtl,fr=Mn.scrollOffset,pr=Mn.scrollRange,tr=Mn.onStartMove,Xe=Mn.onStopMove,mn=Mn.onScroll,Tn=Mn.horizontal,Nn=Mn.spinSize,ge=Mn.containerSize,Cn=Mn.style,ai=Mn.thumbStyle,Te=Wt.useState(!1),ce=(0,ne.Z)(Te,2),Oe=ce[0],pn=ce[1],fi=Wt.useState(null),$n=(0,ne.Z)(fi,2),_e=$n[0],ri=$n[1],Ri=Wt.useState(null),$e=(0,ne.Z)(Ri,2),Ge=$e[0],un=$e[1],xi=!rr,Yi=Wt.useRef(),ci=Wt.useRef(),Xn=Wt.useState(!1),qn=(0,ne.Z)(Xn,2),Ki=qn[0],vr=qn[1],ki=Wt.useRef(),Or=function(){clearTimeout(ki.current),vr(!0),ki.current=setTimeout(function(){vr(!1)},3e3)},Ii=pr-ge||0,ao=ge-Nn||0,qr=Ii>0,Do=Wt.useMemo(function(){if(fr===0||Ii===0)return 0;var yo=fr/Ii;return yo*ao},[fr,Ii,ao]),ui=function(ko){ko.stopPropagation(),ko.preventDefault()},Co=Wt.useRef({top:Do,dragging:Oe,pageY:_e,startTop:Ge});Co.current={top:Do,dragging:Oe,pageY:_e,startTop:Ge};var bo=function(ko){pn(!0),ri(be(ko,Tn)),un(Co.current.top),tr(),ko.stopPropagation(),ko.preventDefault()};Wt.useEffect(function(){var yo=function(Ce){Ce.preventDefault()},ko=Yi.current,oi=ci.current;return ko.addEventListener("touchstart",yo),oi.addEventListener("touchstart",bo),function(){ko.removeEventListener("touchstart",yo),oi.removeEventListener("touchstart",bo)}},[]);var Kr=Wt.useRef();Kr.current=Ii;var wo=Wt.useRef();wo.current=ao,Wt.useEffect(function(){if(Oe){var yo,ko=function(Ce){var si=Co.current,Wi=si.dragging,Gi=si.pageY,Tr=si.startTop;if(pe.cancel(yo),Wi){var Lr=be(Ce,Tn)-Gi,Cr=Tr;!xi&&Tn?Cr-=Lr:Cr+=Lr;var jr=Kr.current,Jr=wo.current,Wr=Jr?Cr/Jr:0,or=Math.ceil(Wr*jr);or=Math.max(or,0),or=Math.min(or,jr),yo=pe(function(){mn(or,Tn)})}},oi=function(){pn(!1),Xe()};return window.addEventListener("mousemove",ko),window.addEventListener("touchmove",ko),window.addEventListener("mouseup",oi),window.addEventListener("touchend",oi),function(){window.removeEventListener("mousemove",ko),window.removeEventListener("touchmove",ko),window.removeEventListener("mouseup",oi),window.removeEventListener("touchend",oi),pe.cancel(yo)}}},[Oe]),Wt.useEffect(function(){Or()},[fr]),Wt.useImperativeHandle(St,function(){return{delayHidden:Or}});var Sr="".concat(mi,"-scrollbar"),Xr={position:"absolute",visibility:Ki&&qr?null:"hidden"},Br={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Tn?(Xr.height=8,Xr.left=0,Xr.right=0,Xr.bottom=0,Br.height="100%",Br.width=Nn,xi?Br.left=Do:Br.right=Do):(Xr.width=8,Xr.top=0,Xr.bottom=0,xi?Xr.right=0:Xr.left=0,Br.width="100%",Br.height=Nn,Br.top=Do),Wt.createElement("div",{ref:Yi,className:Ut()(Sr,(Zi={},(0,Dt.Z)(Zi,"".concat(Sr,"-horizontal"),Tn),(0,Dt.Z)(Zi,"".concat(Sr,"-vertical"),!Tn),(0,Dt.Z)(Zi,"".concat(Sr,"-visible"),Ki),Zi)),style:(0,Ft.Z)((0,Ft.Z)({},Xr),Cn),onMouseDown:ui,onMouseMove:Or},Wt.createElement("div",{ref:ci,className:Ut()("".concat(Sr,"-thumb"),(0,Dt.Z)({},"".concat(Sr,"-thumb-moving"),Oe)),style:(0,Ft.Z)((0,Ft.Z)({},Br),ai),onMouseDown:bo}))}),zt=Rt;function Qt(Mn){var St=Mn.children,Zi=Mn.setRef,mi=Wt.useCallback(function(rr){Zi(rr)},[]);return Wt.cloneElement(St,{ref:mi})}function te(Mn,St,Zi,mi,rr,fr,pr){var tr=pr.getKey;return Mn.slice(St,Zi+1).map(function(Xe,mn){var Tn=St+mn,Nn=fr(Xe,Tn,{style:{width:mi}}),ge=tr(Xe);return Wt.createElement(Qt,{key:ge,setRef:function(ai){return rr(Xe,ai)}},Nn)})}function Ie(Mn){return Mn instanceof HTMLElement||Mn instanceof SVGElement}function He(Mn){return Ie(Mn)?Mn:Mn instanceof Wt.Component?jt.findDOMNode(Mn):null}var en=mt(15671),ie=mt(43144),an=function(){function Mn(){(0,en.Z)(this,Mn),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,ie.Z)(Mn,[{key:"set",value:function(Zi,mi){this.maps[Zi]=mi,this.id+=1}},{key:"get",value:function(Zi){return this.maps[Zi]}}]),Mn}(),nn=an;function Vn(Mn,St,Zi){var mi=Wt.useState(0),rr=(0,ne.Z)(mi,2),fr=rr[0],pr=rr[1],tr=(0,Wt.useRef)(new Map),Xe=(0,Wt.useRef)(new nn),mn=(0,Wt.useRef)();function Tn(){pe.cancel(mn.current)}function Nn(){var Cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Tn();var ai=function(){tr.current.forEach(function(ce,Oe){if(ce&&ce.offsetParent){var pn=He(ce),fi=pn.offsetHeight;Xe.current.get(Oe)!==fi&&Xe.current.set(Oe,pn.offsetHeight)}}),pr(function(ce){return ce+1})};Cn?ai():mn.current=pe(ai)}function ge(Cn,ai){var Te=Mn(Cn),ce=tr.current.get(Te);ai?(tr.current.set(Te,ai),Nn()):tr.current.delete(Te),!ce!=!ai&&(ai?St==null||St(Cn):Zi==null||Zi(Cn))}return(0,Wt.useEffect)(function(){return Tn},[]),[ge,Nn,Xe.current,fr]}function Ne(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ye=Ne()?Wt.useLayoutEffect:Wt.useEffect,zn=function(St,Zi){var mi=Wt.useRef(!0);Ye(function(){return St(mi.current)},Zi),Ye(function(){return mi.current=!1,function(){mi.current=!0}},[])},Gn=function(St,Zi){zn(function(mi){if(!mi)return St()},Zi)},Me=zn;function _t(Mn){var St=Wt.useRef();St.current=Mn;var Zi=Wt.useCallback(function(){for(var mi,rr=arguments.length,fr=new Array(rr),pr=0;pr<rr;pr++)fr[pr]=arguments[pr];return(mi=St.current)===null||mi===void 0?void 0:mi.call.apply(mi,[St].concat(fr))},[]);return Zi}function rn(Mn){var St=React.useRef(!1),Zi=React.useState(Mn),mi=_slicedToArray(Zi,2),rr=mi[0],fr=mi[1];React.useEffect(function(){return St.current=!1,function(){St.current=!0}},[]);function pr(tr,Xe){Xe&&St.current||fr(tr)}return[rr,pr]}function ti(Mn){return Mn!==void 0}function vn(Mn,St){var Zi=St||{},mi=Zi.defaultValue,rr=Zi.value,fr=Zi.onChange,pr=Zi.postState,tr=useState(function(){return ti(rr)?rr:ti(mi)?typeof mi=="function"?mi():mi:typeof Mn=="function"?Mn():Mn}),Xe=_slicedToArray(tr,2),mn=Xe[0],Tn=Xe[1],Nn=rr!==void 0?rr:mn,ge=pr?pr(Nn):Nn,Cn=useEvent(fr),ai=useState([Nn]),Te=_slicedToArray(ai,2),ce=Te[0],Oe=Te[1];useLayoutUpdateEffect(function(){var fi=ce[0];mn!==fi&&Cn(mn,fi)},[ce]),useLayoutUpdateEffect(function(){ti(rr)||Tn(rr)},[rr]);var pn=useEvent(function(fi,$n){Tn(fi,$n),Oe([Nn],$n)});return[ge,pn]}var ze=mt(31461);function on(Mn,St,Zi){var mi=React.useRef({});return(!("value"in mi.current)||Zi(mi.current.condition,St))&&(mi.current.value=Mn(),mi.current.condition=St),mi.current.value}function On(Mn,St){typeof Mn=="function"?Mn(St):_typeof(Mn)==="object"&&Mn&&"current"in Mn&&(Mn.current=St)}function Ni(){for(var Mn=arguments.length,St=new Array(Mn),Zi=0;Zi<Mn;Zi++)St[Zi]=arguments[Zi];var mi=St.filter(function(rr){return rr});return mi.length<=1?mi[0]:function(rr){St.forEach(function(fr){On(fr,rr)})}}function gi(){for(var Mn=arguments.length,St=new Array(Mn),Zi=0;Zi<Mn;Zi++)St[Zi]=arguments[Zi];return useMemo(function(){return Ni.apply(void 0,St)},St,function(mi,rr){return mi.length!==rr.length||mi.every(function(fr,pr){return fr!==rr[pr]})})}function Dn(Mn){var St,Zi,mi=isMemo(Mn)?Mn.type.type:Mn.type;return!(typeof mi=="function"&&!((St=mi.prototype)!==null&&St!==void 0&&St.render)||typeof Mn=="function"&&!((Zi=Mn.prototype)!==null&&Zi!==void 0&&Zi.render))}function Jn(Mn){return!isValidElement(Mn)||isFragment(Mn)?!1:Dn(Mn)}function Ai(Mn,St,Zi,mi){if(!St.length)return Zi;var rr=_toArray(St),fr=rr[0],pr=rr.slice(1),tr;return!Mn&&typeof fr=="number"?tr=[]:Array.isArray(Mn)?tr=_toConsumableArray(Mn):tr=_objectSpread({},Mn),mi&&Zi===void 0&&pr.length===1?delete tr[fr][pr[0]]:tr[fr]=Ai(tr[fr],pr,Zi,mi),tr}function hi(Mn,St,Zi){var mi=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return St.length&&mi&&Zi===void 0&&!get(Mn,St.slice(0,-1))?Mn:Ai(Mn,St,Zi,mi)}function qt(Mn){return _typeof(Mn)==="object"&&Mn!==null&&Object.getPrototypeOf(Mn)===Object.prototype}function kt(Mn){return Array.isArray(Mn)?[]:{}}var Ct=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Pt(){for(var Mn=arguments.length,St=new Array(Mn),Zi=0;Zi<Mn;Zi++)St[Zi]=arguments[Zi];var mi=kt(St[0]);return St.forEach(function(rr){function fr(pr,tr){var Xe=new Set(tr),mn=get(rr,pr),Tn=Array.isArray(mn);if(Tn||qt(mn)){if(!Xe.has(mn)){Xe.add(mn);var Nn=get(mi,pr);Tn?mi=hi(mi,pr,[]):(!Nn||_typeof(Nn)!=="object")&&(mi=hi(mi,pr,kt(mn))),Ct(mn).forEach(function(ge){fr([].concat(_toConsumableArray(pr),[ge]),Xe)})}}else mi=hi(mi,pr,mn)}fr([])}),mi}var At={},wt=[],Xt=function(St){wt.push(St)};function Re(Mn,St){if(0)var Zi}function We(Mn,St){if(0)var Zi}function In(){At={}}function Hn(Mn,St,Zi){!St&&!At[Zi]&&(Mn(!1,Zi),At[Zi]=!0)}function Un(Mn,St){Hn(Re,Mn,St)}function Yn(Mn,St){Hn(We,Mn,St)}Un.preMessage=Xt,Un.resetWarned=In,Un.noteOnce=Yn;var Fe=null,bn=10;function En(Mn,St,Zi,mi,rr,fr,pr,tr){var Xe=Wt.useRef(),mn=Wt.useState(null),Tn=(0,ne.Z)(mn,2),Nn=Tn[0],ge=Tn[1];return Me(function(){if(Nn&&Nn.times<bn){if(!Mn.current){ge(function(Or){return(0,Ft.Z)({},Or)});return}fr();var Cn=Nn.targetAlign,ai=Nn.originAlign,Te=Nn.index,ce=Nn.offset,Oe=Mn.current.clientHeight,pn=!1,fi=Cn,$n=null;if(Oe){for(var _e=Cn||ai,ri=0,Ri=0,$e=0,Ge=Math.min(St.length-1,Te),un=0;un<=Ge;un+=1){var xi=rr(St[un]);Ri=ri;var Yi=Zi.get(xi);$e=Ri+(Yi===void 0?mi:Yi),ri=$e}for(var ci=_e==="top"?ce:Oe-ce,Xn=Ge;Xn>=0;Xn-=1){var qn=rr(St[Xn]),Ki=Zi.get(qn);if(Ki===void 0){pn=!0;break}if(ci-=Ki,ci<=0)break}switch(_e){case"top":$n=Ri-ce;break;case"bottom":$n=$e-Oe+ce;break;default:{var vr=Mn.current.scrollTop,ki=vr+Oe;Ri<vr?fi="top":$e>ki&&(fi="bottom")}}$n!==null&&pr($n),$n!==Nn.lastTop&&(pn=!0)}pn&&ge(function(Or){return(0,Ft.Z)((0,Ft.Z)({},Or),{},{times:Or.times+1,targetAlign:fi,lastTop:$n})})}},[Nn,Mn.current]),function(Cn){if(Cn==null){tr();return}if(pe.cancel(Xe.current),typeof Cn=="number")pr(Cn);else if(Cn&&(0,$t.Z)(Cn)==="object"){var ai,Te=Cn.align;"index"in Cn?ai=Cn.index:ai=St.findIndex(function(pn){return rr(pn)===Cn.key});var ce=Cn.offset,Oe=ce===void 0?0:ce;ge({times:0,index:ai,offset:Oe,originAlign:Te})}}}function Qn(Mn,St,Zi,mi){var rr=Zi-Mn,fr=St-Zi,pr=Math.min(rr,fr)*2;if(mi<=pr){var tr=Math.floor(mi/2);return mi%2?Zi+tr+1:Zi-tr}return rr>fr?Zi-(mi-fr):Zi+(mi-rr)}function Sn(Mn,St,Zi){var mi=Mn.length,rr=St.length,fr,pr;if(mi===0&&rr===0)return null;mi<rr?(fr=Mn,pr=St):(fr=St,pr=Mn);var tr={__EMPTY_ITEM__:!0};function Xe(ai){return ai!==void 0?Zi(ai):tr}for(var mn=null,Tn=Math.abs(mi-rr)!==1,Nn=0;Nn<pr.length;Nn+=1){var ge=Xe(fr[Nn]),Cn=Xe(pr[Nn]);if(ge!==Cn){mn=Nn,Tn=Tn||ge!==Xe(pr[Nn+1]);break}}return mn===null?null:{index:mn,multiple:Tn}}function Vi(Mn,St,Zi){var mi=Wt.useState(Mn),rr=(0,ne.Z)(mi,2),fr=rr[0],pr=rr[1],tr=Wt.useState(null),Xe=(0,ne.Z)(tr,2),mn=Xe[0],Tn=Xe[1];return Wt.useEffect(function(){var Nn=Sn(fr||[],Mn||[],St);(Nn==null?void 0:Nn.index)!==void 0&&(Zi==null||Zi(Nn.index),Tn(Mn[Nn.index])),pr(Mn)},[Mn]),[mn]}var Qe=(typeof navigator=="undefined"?"undefined":(0,$t.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Pn=Qe,Ci=function(Mn,St){var Zi=(0,Wt.useRef)(!1),mi=(0,Wt.useRef)(null);function rr(){clearTimeout(mi.current),Zi.current=!0,mi.current=setTimeout(function(){Zi.current=!1},50)}var fr=(0,Wt.useRef)({top:Mn,bottom:St});return fr.current.top=Mn,fr.current.bottom=St,function(pr){var tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xe=pr<0&&fr.current.top||pr>0&&fr.current.bottom;return tr&&Xe?(clearTimeout(mi.current),Zi.current=!1):(!Xe||Zi.current)&&rr(),!Zi.current&&Xe}};function yi(Mn,St,Zi,mi,rr){var fr=(0,Wt.useRef)(0),pr=(0,Wt.useRef)(null),tr=(0,Wt.useRef)(null),Xe=(0,Wt.useRef)(!1),mn=Ci(St,Zi);function Tn(ce,Oe){pe.cancel(pr.current),fr.current+=Oe,tr.current=Oe,!mn(Oe)&&(Pn||ce.preventDefault(),pr.current=pe(function(){var pn=Xe.current?10:1;rr(fr.current*pn),fr.current=0}))}function Nn(ce,Oe){rr(Oe,!0),Pn||ce.preventDefault()}var ge=(0,Wt.useRef)(null),Cn=(0,Wt.useRef)(null);function ai(ce){if(Mn){pe.cancel(Cn.current),Cn.current=pe(function(){ge.current=null},2);var Oe=ce.deltaX,pn=ce.deltaY,fi=ce.shiftKey,$n=Oe,_e=pn;(ge.current==="sx"||!ge.current&&fi&&pn&&!Oe)&&($n=pn,_e=0,ge.current="sx");var ri=Math.abs($n),Ri=Math.abs(_e);ge.current===null&&(ge.current=mi&&ri>Ri?"x":"y"),ge.current==="y"?Tn(ce,_e):Nn(ce,$n)}}function Te(ce){Mn&&(Xe.current=ce.detail===tr.current)}return[ai,Te]}var Oi=14/15;function ar(Mn,St,Zi){var mi=(0,Wt.useRef)(!1),rr=(0,Wt.useRef)(0),fr=(0,Wt.useRef)(null),pr=(0,Wt.useRef)(null),tr,Xe=function(ge){if(mi.current){var Cn=Math.ceil(ge.touches[0].pageY),ai=rr.current-Cn;rr.current=Cn,Zi(ai)&&ge.preventDefault(),clearInterval(pr.current),pr.current=setInterval(function(){ai*=Oi,(!Zi(ai,!0)||Math.abs(ai)<=.1)&&clearInterval(pr.current)},16)}},mn=function(){mi.current=!1,tr()},Tn=function(ge){tr(),ge.touches.length===1&&!mi.current&&(mi.current=!0,rr.current=Math.ceil(ge.touches[0].pageY),fr.current=ge.target,fr.current.addEventListener("touchmove",Xe),fr.current.addEventListener("touchend",mn))};tr=function(){fr.current&&(fr.current.removeEventListener("touchmove",Xe),fr.current.removeEventListener("touchend",mn))},Me(function(){return Mn&&St.current.addEventListener("touchstart",Tn),function(){var Nn;(Nn=St.current)===null||Nn===void 0||Nn.removeEventListener("touchstart",Tn),tr(),clearInterval(pr.current)}},[Mn])}var br=20;function wr(){var Mn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Zi=Mn/St*100;return isNaN(Zi)&&(Zi=0),Zi=Math.max(Zi,br),Zi=Math.min(Zi,Mn/2),Math.floor(Zi)}function cr(Mn,St,Zi,mi){var rr=Wt.useMemo(function(){return[new Map,[]]},[Mn,Zi.id,mi]),fr=(0,ne.Z)(rr,2),pr=fr[0],tr=fr[1],Xe=function(Tn){var Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Tn,ge=pr.get(Tn),Cn=pr.get(Nn);if(ge===void 0||Cn===void 0)for(var ai=Mn.length,Te=tr.length;Te<ai;Te+=1){var ce,Oe=Mn[Te],pn=St(Oe);pr.set(pn,Te);var fi=(ce=Zi.get(pn))!==null&&ce!==void 0?ce:mi;if(tr[Te]=(tr[Te-1]||0)+fi,pn===Tn&&(ge=Te),pn===Nn&&(Cn=Te),ge!==void 0&&Cn!==void 0)break}return{top:tr[ge-1]||0,bottom:tr[Cn]}};return Xe}var Ar=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],ir=[],kr={overflowY:"auto",overflowAnchor:"none"};function po(Mn,St){var Zi=Mn.prefixCls,mi=Zi===void 0?"rc-virtual-list":Zi,rr=Mn.className,fr=Mn.height,pr=Mn.itemHeight,tr=Mn.fullHeight,Xe=tr===void 0?!0:tr,mn=Mn.style,Tn=Mn.data,Nn=Mn.children,ge=Mn.itemKey,Cn=Mn.virtual,ai=Mn.direction,Te=Mn.scrollWidth,ce=Mn.component,Oe=ce===void 0?"div":ce,pn=Mn.onScroll,fi=Mn.onVirtualScroll,$n=Mn.onVisibleChange,_e=Mn.innerProps,ri=Mn.extraRender,Ri=Mn.styles,$e=(0,Ht.Z)(Mn,Ar),Ge=!!(Cn!==!1&&fr&&pr),un=Ge&&Tn&&(pr*Tn.length>fr||!!Te),xi=ai==="rtl",Yi=Ut()(mi,(0,Dt.Z)({},"".concat(mi,"-rtl"),xi),rr),ci=Tn||ir,Xn=(0,Wt.useRef)(),qn=(0,Wt.useRef)(),Ki=(0,Wt.useState)(0),vr=(0,ne.Z)(Ki,2),ki=vr[0],Or=vr[1],Ii=(0,Wt.useState)(0),ao=(0,ne.Z)(Ii,2),qr=ao[0],Do=ao[1],ui=(0,Wt.useState)(!1),Co=(0,ne.Z)(ui,2),bo=Co[0],Kr=Co[1],wo=function(){Kr(!0)},Sr=function(){Kr(!1)},Xr=Wt.useCallback(function(hn){return typeof ge=="function"?ge(hn):hn==null?void 0:hn[ge]},[ge]),Br={getKey:Xr};function yo(hn){Or(function(bi){var zi;typeof hn=="function"?zi=hn(bi):zi=hn;var li=Pi(zi);return Xn.current.scrollTop=li,li})}var ko=(0,Wt.useRef)({start:0,end:ci.length}),oi=(0,Wt.useRef)(),kn=Vi(ci,Xr),Ce=(0,ne.Z)(kn,1),si=Ce[0];oi.current=si;var Wi=Vn(Xr,null,null),Gi=(0,ne.Z)(Wi,4),Tr=Gi[0],Lr=Gi[1],Cr=Gi[2],jr=Gi[3],Jr=Wt.useMemo(function(){if(!Ge)return{scrollHeight:void 0,start:0,end:ci.length-1,offset:void 0};if(!un){var hn;return{scrollHeight:((hn=qn.current)===null||hn===void 0?void 0:hn.offsetHeight)||0,start:0,end:ci.length-1,offset:void 0}}for(var bi=0,zi,li,Kn,ur=ci.length,Ln=0;Ln<ur;Ln+=1){var wn=ci[Ln],_n=Xr(wn),Ei=Cr.get(_n),gn=bi+(Ei===void 0?pr:Ei);gn>=ki&&zi===void 0&&(zi=Ln,li=bi),gn>ki+fr&&Kn===void 0&&(Kn=Ln),bi=gn}return zi===void 0&&(zi=0,li=0,Kn=Math.ceil(fr/pr)),Kn===void 0&&(Kn=ci.length-1),Kn=Math.min(Kn+1,ci.length-1),{scrollHeight:bi,start:zi,end:Kn,offset:li}},[un,Ge,ki,ci,jr,fr]),Wr=Jr.scrollHeight,or=Jr.start,Gt=Jr.end,Zn=Jr.offset;ko.current.start=or,ko.current.end=Gt;var wi=Wt.useState({width:0,height:fr}),Fi=(0,ne.Z)(wi,2),Tt=Fi[0],ee=Fi[1],le=function(bi){ee({width:bi.width||bi.offsetWidth,height:bi.height||bi.offsetHeight})},xe=(0,Wt.useRef)(),fe=(0,Wt.useRef)(),Ee=Wt.useMemo(function(){return wr(Tt.width,Te)},[Tt.width,Te]),Ae=Wt.useMemo(function(){return wr(Tt.height,Wr)},[Tt.height,Wr]),yn=Wr-fr,Rn=(0,Wt.useRef)(yn);Rn.current=yn;function Pi(hn){var bi=hn;return Number.isNaN(Rn.current)||(bi=Math.min(bi,Rn.current)),bi=Math.max(bi,0),bi}var An=ki<=0,Mi=ki>=yn,pi=Ci(An,Mi),di=function(){return{x:xi?-qr:qr,y:ki}},Wn=(0,Wt.useRef)(di()),Bi=_t(function(){if(fi){var hn=di();(Wn.current.x!==hn.x||Wn.current.y!==hn.y)&&(fi(hn),Wn.current=hn)}});function sr(hn,bi){var zi=hn;bi?((0,jt.flushSync)(function(){Do(zi)}),Bi()):yo(zi)}function _i(hn){var bi=hn.currentTarget.scrollTop;bi!==ki&&yo(bi),pn==null||pn(hn),Bi()}var Ui=function(bi){var zi=bi,li=Te-Tt.width;return zi=Math.max(zi,0),zi=Math.min(zi,li),zi},qi=_t(function(hn,bi){bi?((0,jt.flushSync)(function(){Do(function(zi){var li=zi+(xi?-hn:hn);return Ui(li)})}),Bi()):yo(function(zi){var li=zi+hn;return li})}),lr=yi(Ge,An,Mi,!!Te,qi),je=(0,ne.Z)(lr,2),ve=je[0],ke=je[1];ar(Ge,Xn,function(hn,bi){return pi(hn,bi)?!1:(ve({preventDefault:function(){},deltaY:hn}),!0)}),Me(function(){function hn(zi){Ge&&zi.preventDefault()}var bi=Xn.current;return bi.addEventListener("wheel",ve),bi.addEventListener("DOMMouseScroll",ke),bi.addEventListener("MozMousePixelScroll",hn),function(){bi.removeEventListener("wheel",ve),bi.removeEventListener("DOMMouseScroll",ke),bi.removeEventListener("MozMousePixelScroll",hn)}},[Ge]),Me(function(){Te&&Do(function(hn){return Ui(hn)})},[Tt.width,Te]);var xn=function(){var bi,zi;(bi=xe.current)===null||bi===void 0||bi.delayHidden(),(zi=fe.current)===null||zi===void 0||zi.delayHidden()},cn=En(Xn,ci,Cr,pr,Xr,function(){return Lr(!0)},yo,xn);Wt.useImperativeHandle(St,function(){return{getScrollInfo:di,scrollTo:function(bi){function zi(li){return li&&(0,$t.Z)(li)==="object"&&("left"in li||"top"in li)}zi(bi)?(bi.left!==void 0&&Do(Ui(bi.left)),cn(bi.top)):cn(bi)}}}),Me(function(){if($n){var hn=ci.slice(or,Gt+1);$n(hn,ci)}},[or,Gt,ci]);var ni=cr(ci,Xr,Cr,pr),Ti=ri==null?void 0:ri({start:or,end:Gt,virtual:un,offsetX:qr,offsetY:Zn,rtl:xi,getSize:ni}),qe=te(ci,or,Gt,Te,Tr,Nn,Br),Je=null;fr&&(Je=(0,Ft.Z)((0,Dt.Z)({},Xe?"height":"maxHeight",fr),kr),Ge&&(Je.overflowY="hidden",Te&&(Je.overflowX="hidden"),bo&&(Je.pointerEvents="none")));var sn={};return xi&&(sn.dir="rtl"),Wt.createElement("div",(0,ft.Z)({style:(0,Ft.Z)((0,Ft.Z)({},mn),{},{position:"relative"}),className:Yi},sn,$e),Wt.createElement(De.Z,{onResize:le},Wt.createElement(Oe,{className:"".concat(mi,"-holder"),style:Je,ref:Xn,onScroll:_i,onMouseEnter:xn},Wt.createElement(de,{prefixCls:mi,height:Wr,offsetX:qr,offsetY:Zn,scrollWidth:Te,onInnerResize:Lr,ref:qn,innerProps:_e,rtl:xi,extra:Ti},qe))),un&&Wr>fr&&Wt.createElement(zt,{ref:xe,prefixCls:mi,scrollOffset:ki,scrollRange:Wr,rtl:xi,onScroll:sr,onStartMove:wo,onStopMove:Sr,spinSize:Ae,containerSize:Tt.height,style:Ri==null?void 0:Ri.verticalScrollBar,thumbStyle:Ri==null?void 0:Ri.verticalScrollBarThumb}),un&&Te&&Wt.createElement(zt,{ref:fe,prefixCls:mi,scrollOffset:qr,scrollRange:Te,rtl:xi,onScroll:sr,onStartMove:wo,onStopMove:Sr,spinSize:Ee,containerSize:Tt.width,horizontal:!0,style:Ri==null?void 0:Ri.horizontalScrollBar,thumbStyle:Ri==null?void 0:Ri.horizontalScrollBarThumb}))}var So=Wt.forwardRef(po);So.displayName="List";var Eo=So,Yr=Eo},66392:function(jn,tn){"use strict";var mt;var ft=Symbol.for("react.element"),Ft=Symbol.for("react.portal"),$t=Symbol.for("react.fragment"),ne=Symbol.for("react.strict_mode"),Dt=Symbol.for("react.profiler"),Ht=Symbol.for("react.provider"),Wt=Symbol.for("react.context"),jt=Symbol.for("react.server_context"),Nt=Symbol.for("react.forward_ref"),Ut=Symbol.for("react.suspense"),De=Symbol.for("react.suspense_list"),Yt=Symbol.for("react.memo"),de=Symbol.for("react.lazy"),we=Symbol.for("react.offscreen"),ue;ue=Symbol.for("react.module.reference");function he(It){if(typeof It=="object"&&It!==null){var ye=It.$$typeof;switch(ye){case ft:switch(It=It.type,It){case $t:case Dt:case ne:case Ut:case De:return It;default:switch(It=It&&It.$$typeof,It){case jt:case Wt:case Nt:case de:case Yt:case Ht:return It;default:return ye}}case Ft:return ye}}}mt=Wt,mt=Ht,mt=ft,mt=Nt,mt=$t,mt=de,mt=Yt,mt=Ft,mt=Dt,mt=ne,mt=Ut,mt=De,mt=function(){return!1},mt=function(){return!1},mt=function(It){return he(It)===Wt},mt=function(It){return he(It)===Ht},mt=function(It){return typeof It=="object"&&It!==null&&It.$$typeof===ft},mt=function(It){return he(It)===Nt},mt=function(It){return he(It)===$t},mt=function(It){return he(It)===de},mt=function(It){return he(It)===Yt},mt=function(It){return he(It)===Ft},mt=function(It){return he(It)===Dt},mt=function(It){return he(It)===ne},mt=function(It){return he(It)===Ut},mt=function(It){return he(It)===De},mt=function(It){return typeof It=="string"||typeof It=="function"||It===$t||It===Dt||It===ne||It===Ut||It===De||It===we||typeof It=="object"&&It!==null&&(It.$$typeof===de||It.$$typeof===Yt||It.$$typeof===Ht||It.$$typeof===Wt||It.$$typeof===Nt||It.$$typeof===ue||It.getModuleId!==void 0)},mt=he},31461:function(jn,tn,mt){"use strict";mt(66392)},75668:function(jn,tn,mt){"use strict";Object.defineProperty(tn,"__esModule",{value:!0}),Object.defineProperty(tn,"DraggableCore",{enumerable:!0,get:function(){return jt.default}}),tn.default=void 0;var ft=Yt(mt(67294)),Ft=Ut(mt(45697)),$t=Ut(mt(73935)),ne=Ut(mt(86010)),Dt=mt(81825),Ht=mt(2849),Wt=mt(9280),jt=Ut(mt(80783)),Nt=Ut(mt(55904));function Ut(ye){return ye&&ye.__esModule?ye:{default:ye}}function De(ye){if(typeof WeakMap!="function")return null;var Ze=new WeakMap,pe=new WeakMap;return(De=function(be){return be?pe:Ze})(ye)}function Yt(ye,Ze){if(!Ze&&ye&&ye.__esModule)return ye;if(ye===null||typeof ye!="object"&&typeof ye!="function")return{default:ye};var pe=De(Ze);if(pe&&pe.has(ye))return pe.get(ye);var be={},Rt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var zt in ye)if(zt!=="default"&&Object.prototype.hasOwnProperty.call(ye,zt)){var Qt=Rt?Object.getOwnPropertyDescriptor(ye,zt):null;Qt&&(Qt.get||Qt.set)?Object.defineProperty(be,zt,Qt):be[zt]=ye[zt]}return be.default=ye,pe&&pe.set(ye,be),be}function de(){return de=Object.assign?Object.assign.bind():function(ye){for(var Ze=1;Ze<arguments.length;Ze++){var pe=arguments[Ze];for(var be in pe)Object.prototype.hasOwnProperty.call(pe,be)&&(ye[be]=pe[be])}return ye},de.apply(this,arguments)}function we(ye,Ze,pe){return Ze=ue(Ze),Ze in ye?Object.defineProperty(ye,Ze,{value:pe,enumerable:!0,configurable:!0,writable:!0}):ye[Ze]=pe,ye}function ue(ye){var Ze=he(ye,"string");return typeof Ze=="symbol"?Ze:String(Ze)}function he(ye,Ze){if(typeof ye!="object"||ye===null)return ye;var pe=ye[Symbol.toPrimitive];if(pe!==void 0){var be=pe.call(ye,Ze||"default");if(typeof be!="object")return be;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ze==="string"?String:Number)(ye)}class It extends ft.Component{static getDerivedStateFromProps(Ze,pe){let{position:be}=Ze,{prevPropsPosition:Rt}=pe;return be&&(!Rt||be.x!==Rt.x||be.y!==Rt.y)?((0,Nt.default)("Draggable: getDerivedStateFromProps %j",{position:be,prevPropsPosition:Rt}),{x:be.x,y:be.y,prevPropsPosition:F0({},be)}):null}constructor(Ze){super(Ze),we(this,"onDragStart",(pe,be)=>{if((0,Nt.default)("Draggable: onDragStart: %j",be),this.props.onStart(pe,(0,Ht.createDraggableData)(this,be))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),we(this,"onDrag",(pe,be)=>{if(!this.state.dragging)return!1;(0,Nt.default)("Draggable: onDrag: %j",be);const Rt=(0,Ht.createDraggableData)(this,be),zt={x:Rt.x,y:Rt.y,slackX:0,slackY:0};if(this.props.bounds){const{x:te,y:Ie}=zt;zt.x+=this.state.slackX,zt.y+=this.state.slackY;const[He,en]=(0,Ht.getBoundPosition)(this,zt.x,zt.y);zt.x=He,zt.y=en,zt.slackX=this.state.slackX+(te-zt.x),zt.slackY=this.state.slackY+(Ie-zt.y),Rt.x=zt.x,Rt.y=zt.y,Rt.deltaX=zt.x-this.state.x,Rt.deltaY=zt.y-this.state.y}if(this.props.onDrag(pe,Rt)===!1)return!1;this.setState(zt)}),we(this,"onDragStop",(pe,be)=>{if(!this.state.dragging||this.props.onStop(pe,(0,Ht.createDraggableData)(this,be))===!1)return!1;(0,Nt.default)("Draggable: onDragStop: %j",be);const zt={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:te,y:Ie}=this.props.position;zt.x=te,zt.y=Ie}this.setState(zt)}),this.state={dragging:!1,dragged:!1,x:Ze.position?Ze.position.x:Ze.defaultPosition.x,y:Ze.position?Ze.position.y:Ze.defaultPosition.y,prevPropsPosition:F0({},Ze.position),slackX:0,slackY:0,isElementSVG:!1},Ze.position&&!(Ze.onDrag||Ze.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 Ze,pe;return(Ze=(pe=this.props)===null||pe===void 0||(pe=pe.nodeRef)===null||pe===void 0?void 0:pe.current)!==null&&Ze!==void 0?Ze:$t.default.findDOMNode(this)}render(){const Me=this.props,{axis:Ze,bounds:pe,children:be,defaultPosition:Rt,defaultClassName:zt,defaultClassNameDragging:Qt,defaultClassNameDragged:te,position:Ie,positionOffset:He,scale:en}=Me,ie=j2(Me,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let an={},nn=null;const Ne=!!!Ie||this.state.dragging,Ye=Ie||Rt,zn={x:(0,Ht.canDragX)(this)&&Ne?this.state.x:Ye.x,y:(0,Ht.canDragY)(this)&&Ne?this.state.y:Ye.y};this.state.isElementSVG?nn=(0,Dt.createSVGTransform)(zn,He):an=(0,Dt.createCSSTransform)(zn,He);const Gn=(0,ne.default)(be.props.className||"",zt,{[Qt]:this.state.dragging,[te]:this.state.dragged});return ft.createElement(jt.default,de({},ie,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),ft.cloneElement(ft.Children.only(be),{className:Gn,style:F0(F0({},be.props.style),an),transform:nn}))}}tn.default=It,we(It,"displayName","Draggable"),we(It,"propTypes",C2(F0({},jt.default.propTypes),{axis:Ft.default.oneOf(["both","x","y","none"]),bounds:Ft.default.oneOfType([Ft.default.shape({left:Ft.default.number,right:Ft.default.number,top:Ft.default.number,bottom:Ft.default.number}),Ft.default.string,Ft.default.oneOf([!1])]),defaultClassName:Ft.default.string,defaultClassNameDragging:Ft.default.string,defaultClassNameDragged:Ft.default.string,defaultPosition:Ft.default.shape({x:Ft.default.number,y:Ft.default.number}),positionOffset:Ft.default.shape({x:Ft.default.oneOfType([Ft.default.number,Ft.default.string]),y:Ft.default.oneOfType([Ft.default.number,Ft.default.string])}),position:Ft.default.shape({x:Ft.default.number,y:Ft.default.number}),className:Wt.dontSetMe,style:Wt.dontSetMe,transform:Wt.dontSetMe})),we(It,"defaultProps",C2(F0({},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}))},80783:function(jn,tn,mt){"use strict";Object.defineProperty(tn,"__esModule",{value:!0}),tn.default=void 0;var ft=Ut(mt(67294)),Ft=jt(mt(45697)),$t=jt(mt(73935)),ne=mt(81825),Dt=mt(2849),Ht=mt(9280),Wt=jt(mt(55904));function jt(It){return It&&It.__esModule?It:{default:It}}function Nt(It){if(typeof WeakMap!="function")return null;var ye=new WeakMap,Ze=new WeakMap;return(Nt=function(pe){return pe?Ze:ye})(It)}function Ut(It,ye){if(!ye&&It&&It.__esModule)return It;if(It===null||typeof It!="object"&&typeof It!="function")return{default:It};var Ze=Nt(ye);if(Ze&&Ze.has(It))return Ze.get(It);var pe={},be=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Rt in It)if(Rt!=="default"&&Object.prototype.hasOwnProperty.call(It,Rt)){var zt=be?Object.getOwnPropertyDescriptor(It,Rt):null;zt&&(zt.get||zt.set)?Object.defineProperty(pe,Rt,zt):pe[Rt]=It[Rt]}return pe.default=It,Ze&&Ze.set(It,pe),pe}function De(It,ye,Ze){return ye=Yt(ye),ye in It?Object.defineProperty(It,ye,{value:Ze,enumerable:!0,configurable:!0,writable:!0}):It[ye]=Ze,It}function Yt(It){var ye=de(It,"string");return typeof ye=="symbol"?ye:String(ye)}function de(It,ye){if(typeof It!="object"||It===null)return It;var Ze=It[Symbol.toPrimitive];if(Ze!==void 0){var pe=Ze.call(It,ye||"default");if(typeof pe!="object")return pe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ye==="string"?String:Number)(It)}const we={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let ue=we.mouse;class he extends ft.Component{constructor(){super(...arguments),De(this,"dragging",!1),De(this,"lastX",NaN),De(this,"lastY",NaN),De(this,"touchIdentifier",null),De(this,"mounted",!1),De(this,"handleDragStart",ye=>{if(this.props.onMouseDown(ye),!this.props.allowAnyClick&&typeof ye.button=="number"&&ye.button!==0)return!1;const Ze=this.findDOMNode();if(!Ze||!Ze.ownerDocument||!Ze.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:pe}=Ze;if(this.props.disabled||!(ye.target instanceof pe.defaultView.Node)||this.props.handle&&!(0,ne.matchesSelectorAndParentsTo)(ye.target,this.props.handle,Ze)||this.props.cancel&&(0,ne.matchesSelectorAndParentsTo)(ye.target,this.props.cancel,Ze))return;ye.type==="touchstart"&&ye.preventDefault();const be=(0,ne.getTouchIdentifier)(ye);this.touchIdentifier=be;const Rt=(0,Dt.getControlPosition)(ye,be,this);if(Rt==null)return;const{x:zt,y:Qt}=Rt,te=(0,Dt.createCoreData)(this,zt,Qt);(0,Wt.default)("DraggableCore: handleDragStart: %j",te),(0,Wt.default)("calling",this.props.onStart),!(this.props.onStart(ye,te)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,ne.addUserSelectStyles)(pe),this.dragging=!0,this.lastX=zt,this.lastY=Qt,(0,ne.addEvent)(pe,ue.move,this.handleDrag),(0,ne.addEvent)(pe,ue.stop,this.handleDragStop))}),De(this,"handleDrag",ye=>{const Ze=(0,Dt.getControlPosition)(ye,this.touchIdentifier,this);if(Ze==null)return;let{x:pe,y:be}=Ze;if(Array.isArray(this.props.grid)){let Qt=pe-this.lastX,te=be-this.lastY;if([Qt,te]=(0,Dt.snapToGrid)(this.props.grid,Qt,te),!Qt&&!te)return;pe=this.lastX+Qt,be=this.lastY+te}const Rt=(0,Dt.createCoreData)(this,pe,be);if((0,Wt.default)("DraggableCore: handleDrag: %j",Rt),this.props.onDrag(ye,Rt)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(Qt){const te=document.createEvent("MouseEvents");te.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(te)}return}this.lastX=pe,this.lastY=be}),De(this,"handleDragStop",ye=>{if(!this.dragging)return;const Ze=(0,Dt.getControlPosition)(ye,this.touchIdentifier,this);if(Ze==null)return;let{x:pe,y:be}=Ze;if(Array.isArray(this.props.grid)){let te=pe-this.lastX||0,Ie=be-this.lastY||0;[te,Ie]=(0,Dt.snapToGrid)(this.props.grid,te,Ie),pe=this.lastX+te,be=this.lastY+Ie}const Rt=(0,Dt.createCoreData)(this,pe,be);if(this.props.onStop(ye,Rt)===!1||this.mounted===!1)return!1;const Qt=this.findDOMNode();Qt&&this.props.enableUserSelectHack&&(0,ne.removeUserSelectStyles)(Qt.ownerDocument),(0,Wt.default)("DraggableCore: handleDragStop: %j",Rt),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,Qt&&((0,Wt.default)("DraggableCore: Removing handlers"),(0,ne.removeEvent)(Qt.ownerDocument,ue.move,this.handleDrag),(0,ne.removeEvent)(Qt.ownerDocument,ue.stop,this.handleDragStop))}),De(this,"onMouseDown",ye=>(ue=we.mouse,this.handleDragStart(ye))),De(this,"onMouseUp",ye=>(ue=we.mouse,this.handleDragStop(ye))),De(this,"onTouchStart",ye=>(ue=we.touch,this.handleDragStart(ye))),De(this,"onTouchEnd",ye=>(ue=we.touch,this.handleDragStop(ye)))}componentDidMount(){this.mounted=!0;const ye=this.findDOMNode();ye&&(0,ne.addEvent)(ye,we.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const ye=this.findDOMNode();if(ye){const{ownerDocument:Ze}=ye;(0,ne.removeEvent)(Ze,we.mouse.move,this.handleDrag),(0,ne.removeEvent)(Ze,we.touch.move,this.handleDrag),(0,ne.removeEvent)(Ze,we.mouse.stop,this.handleDragStop),(0,ne.removeEvent)(Ze,we.touch.stop,this.handleDragStop),(0,ne.removeEvent)(ye,we.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,ne.removeUserSelectStyles)(Ze)}}findDOMNode(){var ye,Ze;return(ye=this.props)!==null&&ye!==void 0&&ye.nodeRef?(Ze=this.props)===null||Ze===void 0||(Ze=Ze.nodeRef)===null||Ze===void 0?void 0:Ze.current:$t.default.findDOMNode(this)}render(){return ft.cloneElement(ft.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}tn.default=he,De(he,"displayName","DraggableCore"),De(he,"propTypes",{allowAnyClick:Ft.default.bool,children:Ft.default.node.isRequired,disabled:Ft.default.bool,enableUserSelectHack:Ft.default.bool,offsetParent:function(It,ye){if(It[ye]&&It[ye].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Ft.default.arrayOf(Ft.default.number),handle:Ft.default.string,cancel:Ft.default.string,nodeRef:Ft.default.object,onStart:Ft.default.func,onDrag:Ft.default.func,onStop:Ft.default.func,onMouseDown:Ft.default.func,scale:Ft.default.number,className:Ht.dontSetMe,style:Ht.dontSetMe,transform:Ht.dontSetMe}),De(he,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},61193:function(jn,tn,mt){"use strict";const{default:ft,DraggableCore:Ft}=mt(75668);jn.exports=ft,jn.exports.default=ft,jn.exports.DraggableCore=Ft},81825:function(jn,tn,mt){"use strict";Object.defineProperty(tn,"__esModule",{value:!0}),tn.addClassName=Rt,tn.addEvent=jt,tn.addUserSelectStyles=pe,tn.createCSSTransform=ue,tn.createSVGTransform=he,tn.getTouch=ye,tn.getTouchIdentifier=Ze,tn.getTranslation=It,tn.innerHeight=Yt,tn.innerWidth=de,tn.matchesSelector=Ht,tn.matchesSelectorAndParentsTo=Wt,tn.offsetXYFromParent=we,tn.outerHeight=Ut,tn.outerWidth=De,tn.removeClassName=zt,tn.removeEvent=Nt,tn.removeUserSelectStyles=be;var ft=mt(9280),Ft=ne(mt(38650));function $t(Qt){if(typeof WeakMap!="function")return null;var te=new WeakMap,Ie=new WeakMap;return($t=function(He){return He?Ie:te})(Qt)}function ne(Qt,te){if(!te&&Qt&&Qt.__esModule)return Qt;if(Qt===null||typeof Qt!="object"&&typeof Qt!="function")return{default:Qt};var Ie=$t(te);if(Ie&&Ie.has(Qt))return Ie.get(Qt);var He={},en=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ie in Qt)if(ie!=="default"&&Object.prototype.hasOwnProperty.call(Qt,ie)){var an=en?Object.getOwnPropertyDescriptor(Qt,ie):null;an&&(an.get||an.set)?Object.defineProperty(He,ie,an):He[ie]=Qt[ie]}return He.default=Qt,Ie&&Ie.set(Qt,He),He}let Dt="";function Ht(Qt,te){return Dt||(Dt=(0,ft.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(Ie){return(0,ft.isFunction)(Qt[Ie])})),(0,ft.isFunction)(Qt[Dt])?Qt[Dt](te):!1}function Wt(Qt,te,Ie){let He=Qt;do{if(Ht(He,te))return!0;if(He===Ie)return!1;He=He.parentNode}while(He);return!1}function jt(Qt,te,Ie,He){if(!Qt)return;const en=F0({capture:!0},He);Qt.addEventListener?Qt.addEventListener(te,Ie,en):Qt.attachEvent?Qt.attachEvent("on"+te,Ie):Qt["on"+te]=Ie}function Nt(Qt,te,Ie,He){if(!Qt)return;const en=F0({capture:!0},He);Qt.removeEventListener?Qt.removeEventListener(te,Ie,en):Qt.detachEvent?Qt.detachEvent("on"+te,Ie):Qt["on"+te]=null}function Ut(Qt){let te=Qt.clientHeight;const Ie=Qt.ownerDocument.defaultView.getComputedStyle(Qt);return te+=(0,ft.int)(Ie.borderTopWidth),te+=(0,ft.int)(Ie.borderBottomWidth),te}function De(Qt){let te=Qt.clientWidth;const Ie=Qt.ownerDocument.defaultView.getComputedStyle(Qt);return te+=(0,ft.int)(Ie.borderLeftWidth),te+=(0,ft.int)(Ie.borderRightWidth),te}function Yt(Qt){let te=Qt.clientHeight;const Ie=Qt.ownerDocument.defaultView.getComputedStyle(Qt);return te-=(0,ft.int)(Ie.paddingTop),te-=(0,ft.int)(Ie.paddingBottom),te}function de(Qt){let te=Qt.clientWidth;const Ie=Qt.ownerDocument.defaultView.getComputedStyle(Qt);return te-=(0,ft.int)(Ie.paddingLeft),te-=(0,ft.int)(Ie.paddingRight),te}function we(Qt,te,Ie){const en=te===te.ownerDocument.body?{left:0,top:0}:te.getBoundingClientRect(),ie=(Qt.clientX+te.scrollLeft-en.left)/Ie,an=(Qt.clientY+te.scrollTop-en.top)/Ie;return{x:ie,y:an}}function ue(Qt,te){const Ie=It(Qt,te,"px");return{[(0,Ft.browserPrefixToKey)("transform",Ft.default)]:Ie}}function he(Qt,te){return It(Qt,te,"")}function It(Qt,te,Ie){let{x:He,y:en}=Qt,ie="translate(".concat(He).concat(Ie,",").concat(en).concat(Ie,")");if(te){const an="".concat(typeof te.x=="string"?te.x:te.x+Ie),nn="".concat(typeof te.y=="string"?te.y:te.y+Ie);ie="translate(".concat(an,", ").concat(nn,")")+ie}return ie}function ye(Qt,te){return Qt.targetTouches&&(0,ft.findInArray)(Qt.targetTouches,Ie=>te===Ie.identifier)||Qt.changedTouches&&(0,ft.findInArray)(Qt.changedTouches,Ie=>te===Ie.identifier)}function Ze(Qt){if(Qt.targetTouches&&Qt.targetTouches[0])return Qt.targetTouches[0].identifier;if(Qt.changedTouches&&Qt.changedTouches[0])return Qt.changedTouches[0].identifier}function pe(Qt){if(!Qt)return;let te=Qt.getElementById("react-draggable-style-el");te||(te=Qt.createElement("style"),te.type="text/css",te.id="react-draggable-style-el",te.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
|
`,te.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
|
`,Qt.getElementsByTagName("head")[0].appendChild(te)),Qt.body&&Rt(Qt.body,"react-draggable-transparent-selection")}function be(Qt){if(Qt)try{if(Qt.body&&zt(Qt.body,"react-draggable-transparent-selection"),Qt.selection)Qt.selection.empty();else{const te=(Qt.defaultView||window).getSelection();te&&te.type!=="Caret"&&te.removeAllRanges()}}catch(te){}}function Rt(Qt,te){Qt.classList?Qt.classList.add(te):Qt.className.match(new RegExp("(?:^|\\s)".concat(te,"(?!\\S)")))||(Qt.className+=" ".concat(te))}function zt(Qt,te){Qt.classList?Qt.classList.remove(te):Qt.className=Qt.className.replace(new RegExp("(?:^|\\s)".concat(te,"(?!\\S)"),"g"),"")}},38650:function(jn,tn){"use strict";Object.defineProperty(tn,"__esModule",{value:!0}),tn.browserPrefixToKey=Ft,tn.browserPrefixToStyle=$t,tn.default=void 0,tn.getPrefix=ft;const mt=["Moz","Webkit","O","ms"];function ft(){var Ht;let Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const jt=(Ht=window.document)===null||Ht===void 0||(Ht=Ht.documentElement)===null||Ht===void 0?void 0:Ht.style;if(!jt||Wt in jt)return"";for(let Nt=0;Nt<mt.length;Nt++)if(Ft(Wt,mt[Nt])in jt)return mt[Nt];return""}function Ft(Ht,Wt){return Wt?"".concat(Wt).concat(ne(Ht)):Ht}function $t(Ht,Wt){return Wt?"-".concat(Wt.toLowerCase(),"-").concat(Ht):Ht}function ne(Ht){let Wt="",jt=!0;for(let Nt=0;Nt<Ht.length;Nt++)jt?(Wt+=Ht[Nt].toUpperCase(),jt=!1):Ht[Nt]==="-"?jt=!0:Wt+=Ht[Nt];return Wt}var Dt=tn.default=ft()},55904:function(jn,tn){"use strict";Object.defineProperty(tn,"__esModule",{value:!0}),tn.default=mt;function mt(){}},2849:function(jn,tn,mt){"use strict";Object.defineProperty(tn,"__esModule",{value:!0}),tn.canDragX=Dt,tn.canDragY=Ht,tn.createCoreData=jt,tn.createDraggableData=Nt,tn.getBoundPosition=$t,tn.getControlPosition=Wt,tn.snapToGrid=ne;var ft=mt(9280),Ft=mt(81825);function $t(Yt,de,we){if(!Yt.props.bounds)return[de,we];let{bounds:ue}=Yt.props;ue=typeof ue=="string"?ue:Ut(ue);const he=De(Yt);if(typeof ue=="string"){const{ownerDocument:It}=he,ye=It.defaultView;let Ze;if(ue==="parent"?Ze=he.parentNode:Ze=It.querySelector(ue),!(Ze instanceof ye.HTMLElement))throw new Error('Bounds selector "'+ue+'" could not find an element.');const pe=Ze,be=ye.getComputedStyle(he),Rt=ye.getComputedStyle(pe);ue={left:-he.offsetLeft+(0,ft.int)(Rt.paddingLeft)+(0,ft.int)(be.marginLeft),top:-he.offsetTop+(0,ft.int)(Rt.paddingTop)+(0,ft.int)(be.marginTop),right:(0,Ft.innerWidth)(pe)-(0,Ft.outerWidth)(he)-he.offsetLeft+(0,ft.int)(Rt.paddingRight)-(0,ft.int)(be.marginRight),bottom:(0,Ft.innerHeight)(pe)-(0,Ft.outerHeight)(he)-he.offsetTop+(0,ft.int)(Rt.paddingBottom)-(0,ft.int)(be.marginBottom)}}return(0,ft.isNum)(ue.right)&&(de=Math.min(de,ue.right)),(0,ft.isNum)(ue.bottom)&&(we=Math.min(we,ue.bottom)),(0,ft.isNum)(ue.left)&&(de=Math.max(de,ue.left)),(0,ft.isNum)(ue.top)&&(we=Math.max(we,ue.top)),[de,we]}function ne(Yt,de,we){const ue=Math.round(de/Yt[0])*Yt[0],he=Math.round(we/Yt[1])*Yt[1];return[ue,he]}function Dt(Yt){return Yt.props.axis==="both"||Yt.props.axis==="x"}function Ht(Yt){return Yt.props.axis==="both"||Yt.props.axis==="y"}function Wt(Yt,de,we){const ue=typeof de=="number"?(0,Ft.getTouch)(Yt,de):null;if(typeof de=="number"&&!ue)return null;const he=De(we),It=we.props.offsetParent||he.offsetParent||he.ownerDocument.body;return(0,Ft.offsetXYFromParent)(ue||Yt,It,we.props.scale)}function jt(Yt,de,we){const ue=!(0,ft.isNum)(Yt.lastX),he=De(Yt);return ue?{node:he,deltaX:0,deltaY:0,lastX:de,lastY:we,x:de,y:we}:{node:he,deltaX:de-Yt.lastX,deltaY:we-Yt.lastY,lastX:Yt.lastX,lastY:Yt.lastY,x:de,y:we}}function Nt(Yt,de){const we=Yt.props.scale;return{node:de.node,x:Yt.state.x+de.deltaX/we,y:Yt.state.y+de.deltaY/we,deltaX:de.deltaX/we,deltaY:de.deltaY/we,lastX:Yt.state.x,lastY:Yt.state.y}}function Ut(Yt){return{left:Yt.left,top:Yt.top,right:Yt.right,bottom:Yt.bottom}}function De(Yt){const de=Yt.findDOMNode();if(!de)throw new Error("<DraggableCore>: Unmounted during event!");return de}},9280:function(jn,tn){"use strict";Object.defineProperty(tn,"__esModule",{value:!0}),tn.dontSetMe=ne,tn.findInArray=mt,tn.int=$t,tn.isFunction=ft,tn.isNum=Ft;function mt(Dt,Ht){for(let Wt=0,jt=Dt.length;Wt<jt;Wt++)if(Ht.apply(Ht,[Dt[Wt],Wt,Dt]))return Dt[Wt]}function ft(Dt){return typeof Dt=="function"||Object.prototype.toString.call(Dt)==="[object Function]"}function Ft(Dt){return typeof Dt=="number"&&!isNaN(Dt)}function $t(Dt){return parseInt(Dt,10)}function ne(Dt,Ht,Wt){if(Dt[Ht])return new Error("Invalid prop ".concat(Ht," passed to ").concat(Wt," - do not set this, set it on the child."))}},57761:function(jn,tn,mt){"use strict";Object.defineProperty(tn,"__esModule",{value:!0});var ft=function(){function Yt(de,we){for(var ue=0;ue<we.length;ue++){var he=we[ue];he.enumerable=he.enumerable||!1,he.configurable=!0,"value"in he&&(he.writable=!0),Object.defineProperty(de,he.key,he)}}return function(de,we,ue){return we&&Yt(de.prototype,we),ue&&Yt(de,ue),de}}(),Ft=mt(67294),$t=Ht(Ft),ne=mt(45697),Dt=Ht(ne);function Ht(Yt){return Yt&&Yt.__esModule?Yt:{default:Yt}}function Wt(Yt,de){var we={};for(var ue in Yt)de.indexOf(ue)>=0||Object.prototype.hasOwnProperty.call(Yt,ue)&&(we[ue]=Yt[ue]);return we}function jt(Yt,de){if(!(Yt instanceof de))throw new TypeError("Cannot call a class as a function")}function Nt(Yt,de){if(!Yt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return de&&(typeof de=="object"||typeof de=="function")?de:Yt}function Ut(Yt,de){if(typeof de!="function"&&de!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof de);Yt.prototype=Object.create(de&&de.prototype,{constructor:{value:Yt,enumerable:!1,writable:!0,configurable:!0}}),de&&(Object.setPrototypeOf?Object.setPrototypeOf(Yt,de):Yt.__proto__=de)}var De=function(Yt){Ut(de,Yt);function de(we){jt(this,de);var ue=Nt(this,(de.__proto__||Object.getPrototypeOf(de)).call(this,we));return ue.scrollListener=ue.scrollListener.bind(ue),ue.eventListenerOptions=ue.eventListenerOptions.bind(ue),ue.mousewheelListener=ue.mousewheelListener.bind(ue),ue}return ft(de,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var ue=this.getParentElement(this.scrollComponent);ue.scrollTop=ue.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var ue=!1,he={get passive(){ue=!0}};try{document.addEventListener("test",null,he),document.removeEventListener("test",null,he)}catch(It){}return ue}},{key:"eventListenerOptions",value:function(){var ue=this.props.useCapture;return this.isPassiveSupported()&&(ue={useCapture:this.props.useCapture,passive:!0}),ue}},{key:"setDefaultLoader",value:function(ue){this.defaultLoader=ue}},{key:"detachMousewheelListener",value:function(){var ue=window;this.props.useWindow===!1&&(ue=this.scrollComponent.parentNode),ue.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var ue=window;this.props.useWindow===!1&&(ue=this.getParentElement(this.scrollComponent)),ue.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),ue.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(ue){var he=this.props.getScrollParent&&this.props.getScrollParent();return he!=null?he:ue&&ue.parentNode}},{key:"filterProps",value:function(ue){return ue}},{key:"attachScrollListener",value:function(){var ue=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!ue)){var he=window;this.props.useWindow===!1&&(he=ue),he.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),he.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),he.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(ue){ue.deltaY===1&&!this.isPassiveSupported()&&ue.preventDefault()}},{key:"scrollListener",value:function(){var ue=this.scrollComponent,he=window,It=this.getParentElement(ue),ye=void 0;if(this.props.useWindow){var Ze=document.documentElement||document.body.parentNode||document.body,pe=he.pageYOffset!==void 0?he.pageYOffset:Ze.scrollTop;this.props.isReverse?ye=pe:ye=this.calculateOffset(ue,pe)}else this.props.isReverse?ye=It.scrollTop:ye=ue.scrollHeight-It.scrollTop-It.clientHeight;ye<Number(this.props.threshold)&&ue&&ue.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=It.scrollHeight,this.beforeScrollTop=It.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(ue,he){return ue?this.calculateTopPosition(ue)+(ue.offsetHeight-he-window.innerHeight):0}},{key:"calculateTopPosition",value:function(ue){return ue?ue.offsetTop+this.calculateTopPosition(ue.offsetParent):0}},{key:"render",value:function(){var ue=this,he=this.filterProps(this.props),It=he.children,ye=he.element,Ze=he.hasMore,pe=he.initialLoad,be=he.isReverse,Rt=he.loader,zt=he.loadMore,Qt=he.pageStart,te=he.ref,Ie=he.threshold,He=he.useCapture,en=he.useWindow,ie=he.getScrollParent,an=Wt(he,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);an.ref=function(Vn){ue.scrollComponent=Vn,te&&te(Vn)};var nn=[It];return Ze&&(Rt?be?nn.unshift(Rt):nn.push(Rt):this.defaultLoader&&(be?nn.unshift(this.defaultLoader):nn.push(this.defaultLoader))),$t.default.createElement(ye,an,nn)}}]),de}(Ft.Component);De.propTypes={children:Dt.default.node.isRequired,element:Dt.default.node,hasMore:Dt.default.bool,initialLoad:Dt.default.bool,isReverse:Dt.default.bool,loader:Dt.default.node,loadMore:Dt.default.func.isRequired,pageStart:Dt.default.number,ref:Dt.default.func,getScrollParent:Dt.default.func,threshold:Dt.default.number,useCapture:Dt.default.bool,useWindow:Dt.default.bool},De.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},tn.default=De,jn.exports=tn.default},246:function(jn,tn,mt){jn.exports=mt(57761)},25365:function(jn){"use strict";jn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAA0VJREFUOE+V03lI01EcAPD3fjucs4nmwrXNOY/VdBoe0Tqggi5NgsLaWriWZFQEEvRHBxmL+iMo/KMg6KJSCy03mbapo1vXzCvJUstjZTM1bUzZZP6uF5M0Zwr1/nsHn/d93+/7QjBn3GhuZkm5scvRJIgODWX7sKCQT0oRGIAQorlnp+cIAAhnJghhhobvWRPjQ/rJ8eEVXIxGwcFsGBYWQUTFLrN6yCB9qpjdthA2BSGEsEd1X08NOlrPSiM4PxWJCSNL+HwfSZBMp/Mbr6+vVyyVyQm+SJYrCWea5sOmoMqm4ezu9rqSrUpFjzxBPgpoCkCEwO+3IJIgWRWVpiR5cirF40crZZGc3rkYdDgQp+advUXC9YZs2rjBQRCTwK/T6E9KaJoGJEVxyw3GtNUbt11KWSYp+AuyfRlf86baVJezc0sLb1HIxGxg9mEIIaiurVXgJOiUq6WbV8KVRMD+s45hbftL082DWk0TQohaKJn+9bb3H6Ntr16hvfvU6TExMe4A6G2Xc4+ttqIkL1fXBAAIuGVORMje3BpvNRrxM8fz0xfHxY0F7Hd/HVSYjKVtGpWqI4TH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gGlnxS3MMw2glDUqzWKQTrPk42YizVxecak0ApFrn3kCqDqpikGAwTQrx/oQqpPJyED/XG5PU/dUx32BzfTaQeBlIzZRXGzHWJLheDRBAqphBwcTZ8HMySR9DlpVrHu/kbIOoO7FtuUZ2wtItJo3+WgaVA/CWXOYxROZLthxJjzEEqo8YehTD8rW0zi3WcbBVy9w51Sp/Q7x7B8kahCQXRnXDOhTLT2KSGDZxNPw4RpagMFFVQ5yxurK8zCOBtMBXIAkWwcQXRlbi8jBUmWmA2UxJbQEWOSzbpKkXo3Or2oI978ry7d66spT3iPmGauNc+oixw91ZQkXEM6q1WQ0/LlI4KAwk+du1wVTz9KoI2OyC2kAkXUvEGI/o4eilGnKBNbowO0jWX0nYQRIxyR2IwG70OAwkw+OJNU3ESHcn2WKBZGeRPcZwHSUng2RCy9lUB0jKfWnCQTJIV4TaaLJo0Ypx5dpBehAm1Q6SHD4RpVfHHAOXyPa/qqgLJOtPWSSTtPwLyIXp2R9Y5T8rqO+UrP8Gpjgw8TngMx8AAAAASUVORK5CYII="},19664:function(jn){"use strict";jn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAgCAYAAAD+Fz2gAAAAAXNSR0IArs4c6QAAElZJREFUaEPFWwd0VWW2/s5NL4AEBamDSpEhSBGEyFAEpESKgDAIKCgKTx2KyjAMIlVAUIo8Hk2QFXHAR3E9BESQEAJBKUoRlECoShqQAoQkpJwz699/Of8594Sg8+a9u8K69552z9nf/+397YIBAPkpn9UySzDPgNHRMozqBgwYhsF28XeDfacvYrv7nR9nAbAMAz46E7B84hoWnUr7ynv5THYVcT67Iv8DLEu9sy2WRb/Gt9NHfh7bTv/kuWy7ZcKyTNpvsnd2qGmB3bFlymuJY+T54p1d16Cf4efx67PP8ndN/tza8fx+2PX4Pcp97Olpm3av4uns5wPSfTD3GkbAhFqx068YDJySotITBowoGD4bEAkSwwdOkGgLAcf++DnsVjgeBkwvkKTVywHJEAYhY4sHkrByw0swbJDYdm5Eu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KS192p3IqhFa5AJ7dBoXKBJIN7QJCcEWPvpJDAyIhV1N81GOOIAZNJDkhmYZTdrTFUAhtrrOzUt1ujxj4C2E201JZgcZ/VNWkawOh62secBqLWufgcqCvLDs0z3+CAZIwYe9xdLVepXJScFOKWhWQOd1rVoqqDTMGnV2U85AEN2cQw5h245yd7OLo8oxt4wVyYGyQnkXUadIa6K4xARA9+HALJ8vvfsW0kKnen3JQDkptFyiUKAIUrctSaSGh56uZGIGn3ZTLJ+99dlOpz/lcFOSQxrizjSBCQboZJdYMkWxgekNxFTckgs9cTNM7IZpxqypkTriKZzoPt3xpREzYp6t7x2f8ARtZc8eay0EoAAAAASUVORK5CYII="},39057:function(jn){"use strict";jn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhYAAAByCAYAAAAPvZi2AAAAAXNSR0IArs4c6QAAIABJREFUeF7svWuXJMdxJWgRmVmP7gYIgEOOtLMjUY/R7v//OfthZ85KsyNRIgg0+lFVmRkx59o1czf38HhkVjXQAFE8TVRlRvjD3Nzsur28k19/fqXArxT4lQK/UuBXCvxKgV8p8EIU6F6onV+b+ZUCv1LgVwr8SoFfKfArBX6lgHT//O15/DHpUCOZH7Xz2Ylei68w+va7+LScG/9qv+FtxDc6GcdRm++ks7bGutH1pbt2amst21AxNv15Rj959hXFjFjPaNpmUbYwppVJozcK87l5npxf75JcsYdnEqca0ZSvnk+dtaV++e+dwktjzzQsFqTjmum3oRm2ZOtZbSc8hue5j/ie/x3n1nXeSv50ygv8RJ9MY7Hn08O+1+t9nfnNG8EW5xJHZs98NmCsEANdJ/tulLP2PEiP/442nw5z6/XzYTTq6HcmObSBXkSfm/uxtrTdtLk50/A3WgSZtHX812iA3imrbDq2kZxfoWVOo8hxGPXf0yDygP+eR8F3vtqdjrGTHsNN/0Pbo4z2Xadi0fcqZaSOeBTpMX/9KvDPZHnCu9V3vc2r7zvZYW6dyL4T2WE83nQgYlpy73MQwZqdz52czyKns8jTUeR06uR0FBkGdkhW04VN7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Van6UasJJiI6AV8jKgQWdQh+P8NewCBXTkFh5dNNOoB4NwLLtSc05opxCA5sQ2qkzqjlkPGndvq4I2alefyPfrwQWLWvK26J+U4VPtymGNvr6jJCkpX+Gv4bASrciDcnqMQ62IDT82UnbIvbP3v2aDjMISHRqDvhU/jScZAIuZpF7urMIRHhxMtxaDVxkP5s6/PTemjld9JmqnoUAXdp76ZqangOGXnmbuSSwINlw66vnonq757l0gHwoTNt7cz8nd3Yz4f/0XK6vduVqt42shwKRVC5U58oEJnXL9FPjpcPhFGHaBhdxW4sOsYHZjZGul8dDeXg4eBKtw86VGhGVwicBOpT6OxwMMV/3EQg6AWKIUvH5RNolA29CDT3wmNspggFJXkNUkl1IuQKnQixEgIwkJ5MjBYF/fTCG7E6XWDeW06oJpdinfW8BEx7JYaHE0aM0JdIN1IOF8WgwFO5YnABqrkUiiFDCsnyPqU9PKWXmCwc5De9OC0XNdja1QysjHUcte17BFMJCEZ5K6RCDwN/tGnKlws/cKIg8Kj4vMASYVKjdqXExZzAh8op+/5zRwrdHv1HgGwW+UeAbBb5R4BsFvlGgpcA3YPFtR3yjwDcKfKPANwp8o8A3ClyMAv8DD8nJIGmcntAAAAAASUVORK5CYII="},96908:function(jn){"use strict";jn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7E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YgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+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="},79633:function(jn){"use strict";jn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhYAAAByCAYAAAAPvZi2AAAAAXNSR0IArs4c6QAAIABJREFUeF7tvXlzJzmSJQaSeWcd3TOzvT270mpN0ppM3/+raDWS6TJp/9jpObq6rqw8SZkDcI+HB3ccwR+zsruZZlUkI3A4HH48OByIq/T475EDjxx45MAjBx458MiBRw5ciANXF2rnsZlH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DSJNizJpTcp3VYd/cKAhVIZWBTjTqR9M2fIQGDFIbLznvV9tHncq8n3XY4cs9c+P0O6vTFw+4dYHW+ONu9veFb4GIm+J/LaXmBtdsEFdgFAA8Up9wTiocZaDRgbuB3DNjNmjQGvQ74fwJl5+NYwSun8H2aBo8h54oZTxALkTR9Zd/uT1Gsoi0bHIRf3l902VNxoWm3ctqzAaaBjmYGLDsTw9gg6XeY7graRINU7FDwtiyyExzvWOA+AneF5t9UF43Rvya0MzrR74jwhAqtE1YdjrUyTrQ5JypT/LI+izkPjTQJ67DEWrh1j/oWACsm/+FryLzaOpzYAg2TFI8kFGoP8Cq+8yTvVE1Chl4PeF1gIizRKgb+rPC5FLHYM72PZRw48cuCRA48ceOTAIwceOTDB2o8MeuTAIwceOfDIgUcOPHLgkQOX4cD/Dy5hqdeaBa56AAAAAElFTkSuQmCC"},36459:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return ft}});function ft(Ft){if(Ft==null)throw new TypeError("Cannot destructure "+Ft)}},84279:function(jn,tn,mt){"use strict";var ft=Object.defineProperty,Ft=Object.defineProperties,$t=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable,Wt=(E,z,it)=>z in E?ft(E,z,{enumerable:!0,configurable:!0,writable:!0,value:it}):E[z]=it,jt=(E,z)=>{for(var it in z||(z={}))Dt.call(z,it)&&Wt(E,it,z[it]);if(ne)for(var it of ne(z))Ht.call(z,it)&&Wt(E,it,z[it]);return E},Nt=(E,z)=>Ft(E,$t(z)),Ut=E=>typeof E=="symbol"?E:E+"",De=(E,z)=>{var it={};for(var st in E)Dt.call(E,st)&&z.indexOf(st)<0&&(it[st]=E[st]);if(E!=null&&ne)for(var st of ne(E))z.indexOf(st)<0&&Ht.call(E,st)&&(it[st]=E[st]);return it};function Yt(E){return Array.isArray(E)}var de={en:{"keyboard.tooltip.symbols":"\u7B26\u53F7","keyboard.tooltip.greek":"\u5E0C\u814A\u5B57\u6BCD","keyboard.tooltip.numeric":"\u6570\u5B57","keyboard.tooltip.alphabetic":"\u7F57\u9A6C\u5B57\u6BCD","tooltip.cut to clipboard":"\u526A\u5207\u5230\u526A\u8D34\u677F","tooltip.copy to clipboard":"\u590D\u5236\u5230\u526A\u8D34\u677F","tooltip.paste from clipboard":"\u7C98\u8D34","tooltip.redo":"\u91CD\u505A","tooltip.toggle virtual keyboard":"\u5207\u6362\u865A\u62DF\u952E\u76D8","tooltip.undo":"\u64A4\u6D88","menu.insert matrix":"\u63D2\u5165\u77E9\u9635","menu.borders":"\u77E9\u9635\u5206\u9694\u7B26","menu.array.add row above":"\u5728\u540E\u9762\u6DFB\u52A0\u884C","menu.array.add row below":"\u5728\u524D\u9762\u6DFB\u52A0\u884C","menu.array.add column after":"\u5728\u540E\u9762\u6DFB\u52A0\u5217r","menu.array.add column before":"\u5728\u524D\u9762\u6DFB\u52A0\u5217","menu.array.delete row":"\u5220\u9664\u884C","menu.array.delete rows":"\u5220\u9664\u9009\u5B9A\u884C","menu.array.delete column":"\u5220\u9664\u5217","menu.array.delete columns":"\u5220\u9664\u9009\u5B9A\u7684\u5217","menu.mode":"\u6A21\u5F0F","menu.mode-math":"\u6570\u5B66","menu.mode-text":"\u6587\u672C","menu.mode-latex":"LaTeX","tooltip.blackboard":"\u9ED1\u677F","tooltip.bold":"\u7C97\u4F53","tooltip.italic":"\u659C\u4F53","tooltip.fraktur":"Fraktur","tooltip.script":"\u811A\u672C","tooltip.caligraphic":"\u8349\u4E66","tooltip.typewriter":"\u6253\u5B57\u673A","tooltip.roman-upright":"\u7F57\u9A6C\u76F4\u7ACB","tooltip.row-by-col":"%@ \xD7 %@","menu.font-style":"\u5B57\u4F53\u6837\u5F0F","menu.accent":"\u91CD\u97F3","menu.decoration":"\u88C5\u9970","menu.color":"\u989C\u8272","menu.background-color":"\u80CC\u666F","menu.evaluate":"\u8BA1\u7B97","menu.simplify":"\u7B80\u5316","menu.solve":"\u6C42\u89E3","menu.solve-for":"\u6C42\u89E3 %@","menu.cut":"\u526A\u5207","menu.copy":"\u590D\u5236","menu.copy-as-latex":"\u590D\u5236\u4E3A LaTeX","menu.copy-as-ascii-math":"\u590D\u5236\u4E3A ASCII Math","menu.copy-as-mathml":"\u590D\u5236\u4E3A MathML","menu.paste":"\u7C98\u8D34","menu.select-all":"\u5168\u9009","color.red":"\u7EA2\u8272","color.orange":"\u6A59\u8272","color.yellow":"\u9EC4\u8272","color.lime":"\u7EFF\u9EC4\u8272","color.green":"\u7EFF\u8272","color.teal":"\u9752\u8272","color.cyan":"\u84DD\u7EFF\u8272","color.blue":"\u84DD\u8272","color.indigo":"\u975B\u84DD\u8272","color.purple":"\u7D2B\u8272","color.magenta":"\u6D0B\u7EA2\u8272","color.black":"\u9ED1\u8272","color.dark-grey":"\u6DF1\u7070\u8272","color.grey":"\u7070\u8272","color.light-grey":"\u6D45\u7070\u8272","color.white":"\u767D\u8272"}};function we(){return"window"in globalThis&&"document"in globalThis}function ue(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function he(){return typeof navigator.vibrate=="function"}function It(){var E,z;if(!we())return"other";const it=(z=(E=navigator.userAgentData)==null?void 0:E.platform)!=null?z:navigator.platform;return/^mac/i.test(it)?navigator.maxTouchPoints===5?"ios":"macos":/^win/i.test(it)?"windows":/android/i.test(navigator.userAgent)?"android":/iphone|ipod|ipad/i.test(navigator.userAgent)?"ios":/\bcros\b/i.test(navigator.userAgent)?"chromeos":"other"}function ye(){if(!we())return!0;if(/firefox/i.test(navigator.userAgent)){const E=navigator.userAgent.match(/firefox\/(\d+)/i);return E?parseInt(E[1])>=78:!1}if(/trident/i.test(navigator.userAgent))return!1;if(/edge/i.test(navigator.userAgent)){const E=navigator.userAgent.match(/edg\/(\d+)/i);return E?parseInt(E[1])>=79:!1}return!0}function Ze(){return HTMLElement.prototype.hasOwnProperty("popover")}var pe={strings:de,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return pe._locale||(pe._locale=we()?navigator.language.slice(0,5):"en-US"),pe._locale},set locale(E){pe._locale=E,pe._numberFormatter=void 0,pe.dirty=!0},get numberFormatter(){return pe._numberFormatter||(pe._numberFormatter=new Intl.NumberFormat(pe.locale)),pe._numberFormatter},merge(E,z){if(typeof E=="string"&&z)pe.strings[E]=jt(jt({},pe.strings[E]),z),pe.dirty=!0;else for(const it of Object.keys(E))pe.merge(it,E[it])},get dirty(){return pe._dirty},set dirty(E){pe._dirty||pe._dirty===E||(pe._dirty=!0,setTimeout(()=>{pe._dirty=!1,this._subscribers.forEach(z=>z==null?void 0:z())},0))},subscribe(E){return pe._subscribers.push(E),pe._subscribers.length-1},unsubscribe(E){E<0||E>=pe._subscribers.length||(pe._subscribers[E]=void 0)},update(E){let z=E.querySelectorAll("[data-l10n-tooltip]");for(const it of z){const st=it.getAttribute("data-l10n-tooltip");if(st){const ct=be(st);ct&&it.setAttribute("data-tooltip",ct)}}z=E.querySelectorAll("[data-l10n-arial-label]");for(const it of z){const st=it.getAttribute("data-l10n-arial-label");if(st){const ct=be(st);ct&&it.setAttribute("aria-label",ct)}}}};function be(E,...z){if(E===void 0)return;let it="";const st=pe.locale;pe.strings[st]&&(it=pe.strings[st][E]);const ct=st.slice(0,2);if(!it&&pe.strings[ct]&&(it=pe.strings[ct][E]),it||(it=pe.strings.en[E]),!it)return;const vt=/(%@|%([0-9]+)\$@)/g;let xt=vt.exec(it),Ot=0;for(;xt;){if(z[Ot++]){const Zt=xt[2]?parseInt(xt[2],10)-1:Ot-1;let re=z[Zt];typeof re=="number"&&(re=pe.numberFormatter.format(re)),it=it.replace(xt[1],re)}xt=vt.exec(it)}return it=it.replace(/%%/g,"%"),it}var Rt={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},zt={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},Qt={red:"#fbbbb6",orange:"#ffe0c2",yellow:"#fff1c2",lime:"#d0e8b9",green:"#bceac4",teal:"#b9f1f1",cyan:"#b8e5c9",blue:"#b6d9fb",indigo:"#d1c2f0",purple:"#e3baf8",magenta:"#f9c8e0",black:"#353535","dark-grey":"#8C8C8C",grey:"#D0D0D0","light-grey":"#F0F0F0",white:"#ffffff"},te={red:"#d7170b",orange:"#fe8a2b",yellow:"#ffc02b",lime:"#63b215",green:"#21ba3a",teal:"#17cfcf",cyan:"#13a7ec",blue:"#0d80f2",indigo:"#63c",purple:"#a219e6",magenta:"#eb4799",black:"#000","dark-grey":"#666",grey:"#A6A6A6","light-grey":"#d4d5d2",white:"#ffffff"},Ie={Red:"red",Orange:"orange",Yellow:"yellow",LimeGreen:"lime",Green:"green",TealBlue:"teal",Blue:"blue",Violet:"indigo",Purple:"purple",Magenta:"magenta",Black:"black",Gray:"grey",White:"white"},He={Apricot:"#FBB982",Aquamarine:"#00B5BE",Bittersweet:"#C04F17",Black:"#221E1F",Blue:"#2D2F92",BlueGreen:"#00B3B8",BlueViolet:"#473992",BrickRed:"#B6321C",Brown:"#792500",BurntOrange:"#F7921D",CadetBlue:"#74729A",CarnationPink:"#F282B4",Cerulean:"#00A2E3",CornflowerBlue:"#41B0E4",Cyan:"#00AEEF",Dandelion:"#FDBC42",DarkOrchid:"#A4538A",Emerald:"#00A99D",ForestGreen:"#009B55",Fuchsia:"#8C368C",Goldenrod:"#FFDF42",Gray:"#949698",Green:"#00A64F",GreenYellow:"#DFE674",JungleGreen:"#00A99A",Lavender:"#F49EC4",Limegreen:"#8DC73E",Magenta:"#EC008C",Mahogany:"#A9341F",Maroon:"#AF3235",Melon:"#F89E7B",MidnightBlue:"#006795",Mulberry:"#A93C93",NavyBlue:"#006EB8",OliveGreen:"#3C8031",Orange:"#F58137",OrangeRed:"#ED135A",Orchid:"#AF72B0",Peach:"#F7965A",Periwinkle:"#7977B8",PineGreen:"#008B72",Plum:"#92268F",ProcessBlue:"#00B0F0",Purple:"#99479B",RawSienna:"#974006",Red:"#ED1B23",RedOrange:"#F26035",RedViolet:"#A1246B",Rhodamine:"#EF559F",RoyalBlue:"#0071BC",RoyalPurple:"#613F99",RubineRed:"#ED017D",Salmon:"#F69289",SeaGreen:"#3FBC9D",Sepia:"#671800",SkyBlue:"#46C5DD",SpringGreen:"#C6DC67",Tan:"#DA9D76",TealBlue:"#00AEB3",Thistle:"#D883B7",Turquoise:"#00B4CE",Violet:"#58429B",VioletRed:"#EF58A0",White:"#FFFFFF",WildStrawberry:"#EE2967",Yellow:"#FFF200",YellowGreen:"#98CC70",YellowOrange:"#FAA21A"};function en(E){var z,it,st,ct,vt,xt;const Ot=E.split("!");let Kt,Zt,re,Be=255,ln=255,Fn=255,ei=-1;const hr=Ot.length>0&&Ot[0].startsWith("-");hr&&(Ot[0]=Ot[0].slice(1));for(let Gr=0;Gr<Ot.length;Gr++){Kt=Be,Zt=ln,re=Fn;const $i=(z=Ot[Gr].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:z[1],Nr=$i==null?void 0:$i.toLowerCase(),eo=$i&&(xt=(vt=(ct=(st=(it=te[Nr])!=null?it:te[Ie[$i]])!=null?st:zt[$i])!=null?ct:He[$i])!=null?vt:Rt[$i])!=null?xt:Ot[Gr].trim();let zr=eo.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(zr!=null&&zr[1]&&zr[2]&&zr[3])Be=Math.max(0,Math.min(255,Number.parseInt(zr[1],16))),ln=Math.max(0,Math.min(255,Number.parseInt(zr[2],16))),Fn=Math.max(0,Math.min(255,Number.parseInt(zr[3],16)));else if(zr=eo.match(/^#([\da-f]{3})$/i),zr!=null&&zr[1]){const _o=Number.parseInt(zr[1][0],16),ns=Number.parseInt(zr[1][1],16),Go=Number.parseInt(zr[1][2],16);Be=Math.max(0,Math.min(255,_o*16+_o)),ln=Math.max(0,Math.min(255,ns*16+ns)),Fn=Math.max(0,Math.min(255,Go*16+Go))}else if(zr=eo.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),zr!=null&&zr[1]&&zr[2]&&zr[3])Be=Math.max(0,Math.min(255,Number.parseInt(zr[1]))),ln=Math.max(0,Math.min(255,Number.parseInt(zr[2]))),Fn=Math.max(0,Math.min(255,Number.parseInt(zr[3])));else return;ei>=0&&(Be=(1-ei)*Be+ei*Kt,ln=(1-ei)*ln+ei*Zt,Fn=(1-ei)*Fn+ei*re,ei=-1),Gr+1<Ot.length&&(ei=Math.max(0,Math.min(100,Number.parseInt(Ot[++Gr])))/100)}return ei>=0&&(Be=ei*Be+(1-ei)*Kt,ln=ei*ln+(1-ei)*Zt,Fn=ei*Fn+(1-ei)*re),hr&&(Be=255-Be,ln=255-ln,Fn=255-Fn),"#"+("00"+Math.round(Be).toString(16)).slice(-2)+("00"+Math.round(ln).toString(16)).slice(-2)+("00"+Math.round(Fn).toString(16)).slice(-2)}function ie(E){var z,it;return E=E.trim(),(it=(z=Qt[E.toLowerCase()])!=null?z:Qt[Ie[E]])!=null?it:en(E)}function an(E){if(!E||E[0]!=="#")return;E=E.slice(1);let z;return E.length<=4?(z={r:parseInt(E[0]+E[0],16),g:parseInt(E[1]+E[1],16),b:parseInt(E[2]+E[2],16)},E.length===4&&(z.a=parseInt(E[3]+E[3],16)/255)):(z={r:parseInt(E[0]+E[1],16),g:parseInt(E[2]+E[3],16),b:parseInt(E[4]+E[5],16)},E.length===8&&(z.a=parseInt(E[6]+E[7],16)/255)),z&&z.a===void 0&&(z.a=1),z}function nn(E,z,it){return it<0&&(it+=6),it>=6&&(it-=6),it<1?(z-E)*it+E:it<3?z:it<4?(z-E)*(4-it)+E:E}function Vn(E){let[z,it,st]=[E.h,E.s,E.l];z=(z+360)%360/60,st=Math.max(0,Math.min(st,1)),it=Math.max(0,Math.min(it,1));const ct=st<=.5?st*(it+1):st+it-st*it,vt=st*2-ct;return{r:Math.round(255*nn(vt,ct,z+2)),g:Math.round(255*nn(vt,ct,z)),b:Math.round(255*nn(vt,ct,z-2))}}function Ne(E){return E<0?0:E>255?255:Math.round(E)}function Ye(E){const{r:z,g:it,b:st}=E;let ct=((1<<24)+(Ne(z)<<16)+(Ne(it)<<8)+Ne(st)).toString(16).slice(1);return ct[0]===ct[1]&&ct[2]===ct[3]&&ct[4]===ct[5]&&ct[6]===ct[7]&&(ct=ct[0]+ct[2]+ct[4]),"#"+ct}function zn(E){let{r:z,g:it,b:st}=E;z=z/255,it=it/255,st=st/255;const ct=Math.min(z,it,st),vt=Math.max(z,it,st),xt=vt-ct;let Ot,Kt;vt===ct?Ot=0:z===vt?Ot=(it-st)/xt:it===vt?Ot=2+(st-z)/xt:st===vt&&(Ot=4+(z-it)/xt),Ot=Math.min(Ot*60,360),Ot<0&&(Ot+=360);const Zt=(ct+vt)/2;return vt===ct?Kt=0:Zt<=.5?Kt=xt/(vt+ct):Kt=xt/(2-vt-ct),{h:Ot,s:Kt,l:Zt}}function Gn(E){let z=an(E);if(!z)return E;let{h:it,s:st,l:ct}=zn(z);return st+=.1,ct-=.1,Ye(Vn({h:it,s:st,l:ct}))}var Me={60:"\\lt",62:"\\gt",111:"o",38:"\\&",123:"\\lbrace",125:"\\rbrace",91:"\\lbrack",93:"\\rbrack",58:"\\colon",160:"~",172:"\\neg",183:"\\cdot",188:"\\frac{1}{4}",189:"\\frac{1}{2}",190:"\\frac{3}{4}",8304:"^{0}",8305:"^{i}",185:"^{1}",178:"^{2}",179:"^{3}",8224:"\\dagger",8225:"\\ddagger",8230:"\\ldots",8308:"^{4}",8309:"^{5}",8310:"^{6}",8311:"^{7}",8312:"^{8}",8313:"^{9}",8314:"^{+}",8315:"^{-}",8316:"^{=}",8319:"^{n}",8320:"_{0}",8321:"_{1}",8322:"_{2}",8323:"_{3}",8324:"_{4}",8325:"_{5}",8326:"_{6}",8327:"_{7}",8328:"_{8}",8329:"_{9}",8330:"_{+}",8331:"_{-}",8332:"_{=}",8336:"_{a}",8337:"_{e}",8338:"_{o}",8339:"_{x}",8242:"\\prime",39:"\\prime",8592:"\\gets",8594:"\\to",9651:"\\triangle",9661:"\\triangledown",8715:"\\owns",8727:"\\ast",8739:"\\vert",8741:"\\Vert",8743:"\\land",8744:"\\lor",8901:"\\cdot",8904:"\\bowtie",8800:"\\ne",8804:"\\le",8805:"\\ge",8869:"\\bot",10231:"\\biconditional",10232:"\\impliedby",10233:"\\implies",10234:"\\iff",8450:"\\mathbb{C}",8469:"\\mathbb{N}",8473:"\\mathbb{P}",8474:"\\mathbb{Q}",8477:"\\mathbb{R}",8484:"\\mathbb{Z}",8461:"\\mathbb{H}",8476:"\\Re",8465:"\\Im",42:"\\ast",11036:"\\square",9633:"\\square",8720:"\\coprod",8716:"\\not\\ni",9671:"\\diamond",8846:"\\uplus",8851:"\\sqcap",8852:"\\sqcup",8768:"\\wr",8750:"\\oint",8226:"\\textbullet",8722:"-",978:"\\Upsilon"},_t={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},rn=[{start:119808,len:26,offset:65,style:"bold"},{start:119834,len:26,offset:97,style:"bold"},{start:119860,len:26,offset:65,style:"italic"},{start:119886,len:26,offset:97,style:"italic"},{start:119912,len:26,offset:65,style:"bolditalic"},{start:119938,len:26,offset:97,style:"bolditalic"},{start:119964,len:26,offset:65,variant:"script"},{start:119990,len:26,offset:97,variant:"script"},{start:120016,len:26,offset:65,variant:"script",style:"bold"},{start:120042,len:26,offset:97,variant:"script",style:"bold"},{start:120068,len:26,offset:65,variant:"fraktur"},{start:120094,len:26,offset:97,variant:"fraktur"},{start:120172,len:26,offset:65,variant:"fraktur",style:"bold"},{start:120198,len:26,offset:97,variant:"fraktur",style:"bold"},{start:120120,len:26,offset:65,variant:"double-struck"},{start:120146,len:26,offset:97,variant:"double-struck"},{start:120224,len:26,offset:65,variant:"sans-serif"},{start:120250,len:26,offset:97,variant:"sans-serif"},{start:120276,len:26,offset:65,variant:"sans-serif",style:"bold"},{start:120302,len:26,offset:97,variant:"sans-serif",style:"bold"},{start:120328,len:26,offset:65,variant:"sans-serif",style:"italic"},{start:120354,len:26,offset:97,variant:"sans-serif",style:"italic"},{start:120380,len:26,offset:65,variant:"sans-serif",style:"bolditalic"},{start:120406,len:26,offset:97,variant:"sans-serif",style:"bolditalic"},{start:120432,len:26,offset:65,variant:"monospace"},{start:120458,len:26,offset:97,variant:"monospace"},{start:120488,len:25,offset:913,style:"bold"},{start:120514,len:25,offset:945,style:"bold"},{start:120546,len:25,offset:913,style:"italic"},{start:120572,len:25,offset:945,style:"italic"},{start:120604,len:25,offset:913,style:"bolditalic"},{start:120630,len:25,offset:945,style:"bolditalic"},{start:120662,len:25,offset:913,variant:"sans-serif",style:"bold"},{start:120688,len:25,offset:945,variant:"sans-serif",style:"bold"},{start:120720,len:25,offset:913,variant:"sans-serif",style:"bolditalic"},{start:120746,len:25,offset:945,variant:"sans-serif",style:"bolditalic"},{start:120782,len:10,offset:48,variant:"main",style:"bold"},{start:120792,len:10,offset:48,variant:"double-struck"},{start:120803,len:10,offset:48,variant:"sans-serif"},{start:120812,len:10,offset:48,variant:"sans-serif",style:"bold"},{start:120822,len:10,offset:48,variant:"monospace"}];function ti(E,z,it){if(!/[A-Za-z\d]/.test(E)||(it==="up"&&(it=void 0),!z&&!it))return E;const st=E.codePointAt(0);if(st===void 0)return E;for(const ct of rn)if((!z||ct.variant===z)&&(!it||ct.style===it)&&st>=ct.offset&&st<ct.offset+ct.len){const vt=ct.start+st-ct.offset;return String.fromCodePoint(_t[vt]||vt)}return E}function vn(E){var z;if((E<119808||E>120831)&&(E<8448||E>8527))return{char:String.fromCodePoint(E)};for(const it in _t)if(_t[it]===E){E=(z=it.codePointAt(0))!=null?z:0;break}for(const it of rn)if(E>=it.start&&E<it.start+it.len)return{char:String.fromCodePoint(E-it.start+it.offset),variant:it.variant,style:it.style};return{char:String.fromCodePoint(E)}}function ze(E){var z;let it="";for(const st of E){if("{}<>[]$&#^_%:'\u02DC".includes(st)){it+=st;continue}const ct=(z=st.codePointAt(0))!=null?z:0;let vt=Me[ct];if(vt)vt.startsWith("\\")?it+=vt+" ":it+=vt;else{const{char:xt,variant:Ot,style:Kt}=vn(ct);switch(vt=xt,Ot){case"double-struck":vt=`\\mathbb{${vt}}`;break;case"fraktur":vt=`\\mathfrak{${vt}}`;break;case"script":vt=`\\mathscr{${vt}}`;break;case"sans-serif":vt=`\\mathsf{${vt}}`;break;case"monospace":vt=`\\mathtt{${vt}}`;break;case"calligraphic":vt=`\\mathcal{${vt}}`;break}switch(Kt){case"bold":vt=`\\mathbf{${vt}}`;break;case"italic":vt=`\\mathit{${vt}}`;break;case"bolditalic":vt=`\\mathbfit{${vt}}`;break}it+=vt}}return it}function on(E){return E?Array.isArray(E)?E:typeof E=="object"&&"group"in E?E.group:[]:[]}var On={},Ni=jt({},Me),gi={},Dn={},Jn={darr:"\\downarrow",dArr:"\\Downarrow",Darr:"\\Downarrow",lang:"\\langle",rang:"\\rangle",uarr:"\\uparrow",uArr:"\\Uparrow",Uarr:"\\Uparrow",N:"\\mathbb{N}",R:"\\mathbb{R}",Z:"\\mathbb{Z}",alef:"\\aleph",alefsym:"\\aleph",Alpha:"\\mathrm{A}",Beta:"\\mathrm{B}",bull:"\\bullet",Chi:"\\mathrm{X}",clubs:"\\clubsuit",cnums:"\\mathbb{C}",Complex:"\\mathbb{C}",Dagger:"\\ddagger",diamonds:"\\diamondsuit",empty:"\\emptyset",Epsilon:"\\mathrm{E}",Eta:"\\mathrm{H}",exist:"\\exists",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",Harr:"\\Leftrightarrow",hearts:"\\heartsuit",image:"\\Im",infin:"\\infty",Iota:"\\mathrm{I}",isin:"\\in",Kappa:"\\mathrm{K}",larr:"\\leftarrow",lArr:"\\Leftarrow",Larr:"\\Leftarrow",lrarr:"\\leftrightarrow",lrArr:"\\Leftrightarrow",Lrarr:"\\Leftrightarrow",Mu:"\\mathrm{M}",natnums:"\\mathbb{N}",Nu:"\\mathrm{N}",Omicron:"\\mathrm{O}",plusmn:"\\pm",rarr:"\\rightarrow",rArr:"\\Rightarrow",Rarr:"\\Rightarrow",real:"\\Re",reals:"\\mathbb{R}",Reals:"\\mathbb{R}",Rho:"\\mathrm{P}",sdot:"\\cdot",sect:"\\S",spades:"\\spadesuit",sub:"\\subset",sube:"\\subseteq",supe:"\\supseteq",Tau:"\\mathrm{T}",thetasym:"\\vartheta",weierp:"\\wp",Zeta:"\\mathrm{Z}"},Ai={varGamma:"\\mathit{\\Gamma}",varDelta:"\\mathit{\\Delta}",varTheta:"\\mathit{\\Theta}",varLambda:"\\mathit{\\Lambda}",varXi:"\\mathit{\\Xi}",varPi:"\\mathit{\\Pi}",varSigma:"\\mathit{\\Sigma}",varUpsilon:"\\mathit{\\Upsilon}",varPhi:"\\mathit{\\Phi}",varPsi:"\\mathit{\\Psi}",varOmega:"\\mathit{\\Omega}",pmod:{def:"\\quad(\\operatorname{mod}\\ #1)",args:1,expand:!1,captureSelection:!1},mod:{def:"\\quad\\operatorname{mod}\\,\\,#1",args:1,expand:!1},bmod:{def:"\\;\\mathbin{\\operatorname{mod }}",expand:!1}},hi={bra:{def:"\\mathinner{\\langle{#1}|}",args:1,captureSelection:!1},ket:{def:"\\mathinner{|{#1}\\rangle}",args:1,captureSelection:!1},braket:{def:"\\mathinner{\\langle{#1}\\rangle}",args:1,captureSelection:!1},set:{def:"\\mathinner{\\lbrace #1 \\rbrace}",args:1,captureSelection:!1},Bra:{def:"\\left\\langle #1\\right|",args:1,captureSelection:!1},Ket:{def:"\\left|#1\\right\\rangle",args:1,captureSelection:!1},Braket:{def:"\\left\\langle{#1}\\right\\rangle",args:1,captureSelection:!1},Set:{def:"\\left\\lbrace #1 \\right\\rbrace",args:1,captureSelection:!1}},qt={iff:{primitive:!0,captureSelection:!0,def:"\\;\u27FA\\;"},nicefrac:"^{#1}\\!\\!/\\!_{#2}",phase:{def:"\\enclose{phasorangle}{#1}",args:1,captureSelection:!1},rd:"\\mathrm{d}",rD:"\\mathrm{D}",doubleStruckCapitalN:"\\mathbb{N}",doubleStruckCapitalR:"\\mathbb{R}",doubleStruckCapitalQ:"\\mathbb{Q}",doubleStruckCapitalZ:"\\mathbb{Z}",doubleStruckCapitalP:"\\mathbb{P}",scriptCapitalE:"\\mathscr{E}",scriptCapitalH:"\\mathscr{H}",scriptCapitalL:"\\mathscr{L}",gothicCapitalC:"\\mathfrak{C}",gothicCapitalH:"\\mathfrak{H}",gothicCapitalI:"\\mathfrak{I}",gothicCapitalR:"\\mathfrak{R}",imaginaryI:"\\mathrm{i}",imaginaryJ:"\\mathrm{j}",exponentialE:"\\mathrm{e}",differentialD:"\\mathrm{d}",capitalDifferentialD:"\\mathrm{D}",mathstrut:{def:"\\vphantom{(}",primitive:!0},angl:"\\enclose{actuarial}{#1}",angln:"\\enclose{actuarial}{n}",anglr:"\\enclose{actuarial}{r}",anglk:"\\enclose{actuarial}{k}",mathtools:{primitive:!0,package:{ordinarycolon:":",vcentcolon:"\\mathrel{\\mathop\\ordinarycolon}",dblcolon:'{\\mathop{\\char"2237}}',coloneqq:'{\\mathop{\\char"2254}}',Coloneqq:'{\\mathop{\\char"2237\\char"3D}}',coloneq:'{\\mathop{\\char"3A\\char"2212}}',Coloneq:'{\\mathop{\\char"2237\\char"2212}}',eqqcolon:'{\\mathop{\\char"2255}}',Eqqcolon:'{\\mathop{\\char"3D\\char"2237}}',eqcolon:'{\\mathop{\\char"2239}}',Eqcolon:'{\\mathop{\\char"2212\\char"2237}}',colonapprox:'{\\mathop{\\char"003A\\char"2248}}',Colonapprox:'{\\mathop{\\char"2237\\char"2248}}',colonsim:'{\\mathop{\\char"3A\\char"223C}}',Colonsim:'{\\mathop{\\char"2237\\char"223C}}',colondash:"\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}",Colondash:"\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}",dashcolon:"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Dashcolon:"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}"}},ratio:"\\vcentcolon",coloncolon:"\\dblcolon",colonequals:"\\coloneq",coloncolonequals:"\\Coloneq",equalscolon:"\\eqcolon",equalscoloncolon:"\\Eqcolon",colonminus:"\\colondash",coloncolonminus:"\\Colondash",minuscolon:"\\dashcolon",minuscoloncolon:"\\Dashcolon",coloncolonapprox:"\\Colonapprox",coloncolonsim:"\\Colonsim",simcolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Simcolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",simcoloncolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",approxcolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Approxcolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",approxcoloncolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",notni:"\\mathrel{\\char`\u220C}",limsup:"\\operatorname*{lim\\,sup}",liminf:"\\operatorname*{lim\\,inf}",injlim:"\\operatorname*{inj\\,lim}",projlim:"\\operatorname*{proj\\,lim}",varlimsup:"\\operatorname*{\\overline{lim}}",varliminf:"\\operatorname*{\\underline{lim}}",varinjlim:"\\operatorname*{\\underrightarrow{lim}}",varprojlim:"\\operatorname*{\\underleftarrow{lim}}",argmin:"\\operatorname*{arg\\,min}",argmax:"\\operatorname*{arg\\,max}",plim:"\\mathop{\\operatorname{plim}}\\limits",tripledash:{def:"\\vphantom{-}\\raise{4mu}{\\mkern1.5mu\\rule{2mu}{1.5mu}\\mkern{2.25mu}\\rule{2mu}{1.5mu}\\mkern{2.25mu}\\rule{2mu}{1.5mu}\\mkern{2mu}}",expand:!0},"braket.sty":{package:hi},"amsmath.sty":{package:Ai,primitive:!0},"texvc.sty":{package:Jn,primitive:!1}},kt={" ":32,"\\!":33,"\\#":35,"\\$":36,"\\%":37,"\\&":38,"-":45,"\\textunderscore":95,"\\euro":8364,"\\maltese":10016,"\\{":123,"\\}":125,"\\textbraceleft":123,"\\textbraceright":125,"\\lbrace":123,"\\rbrace":125,"\\lbrack":91,"\\rbrack":93,"\\nobreakspace":160,"\\ldots":8230,"\\textellipsis":8230,"\\backslash":92,"`":8216,"'":8217,"``":8220,"''":8221,"\\degree":176,"\\textasciicircum":94,"\\textasciitilde":126,"\\textasteriskcentered":42,"\\textbackslash":92,"\\textbullet":8226,"\\textdollar":36,"\\textsterling":163,"\\textdagger":8224,"\\textdaggerdbl":8225,"\u2013":8211,"\u2014":8212,"\u2018":8216,"\u2019":8217,"\u201C":8220,"\u201D":8221,'"':8221,"\\ss":223,"\\ae":230,"\\oe":339,"\\AE":198,"\\OE":338,"\\O":216,"\\i":305,"\\j":567,"\\aa":229,"\\AA":197},Ct=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,Pt,At;ye()?(Pt=new RegExp("\\p{Letter}","u"),At=new RegExp("[0-9\\p{Letter}]","u")):(Pt=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,At=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function wt(E,z,it="mord",st){z!==void 0&&(On[E]={definitionType:"symbol",type:it,variant:st,codepoint:z},Ni[z]||(Ni[z]=E))}function Xt(E,z,it){if(typeof E=="string"){for(let st=0;st<E.length;st++){const ct=E.charAt(st);wt(ct,ct.codePointAt(0))}return}for(const[st,ct,vt,xt]of E)wt(st,ct,vt!=null?vt:z,xt!=null?xt:it)}function Re(E,z){for(let it=E;it<=z;it++)wt(String.fromCodePoint(it),it)}function We(E){var z;return(z=Dn[E])!=null?z:null}function In(E,z){var it,st;if(z.length===0||z==="\\"||!z.startsWith("\\"))return[];const ct=[];for(const xt in gi)xt.startsWith(z)&&!gi[xt].infix&&ct.push({match:xt,frequency:(it=gi[xt].frequency)!=null?it:0});for(const xt in On)xt.startsWith(z)&&ct.push({match:xt,frequency:(st=On[xt].frequency)!=null?st:0});const vt=z.substring(1);for(const xt of Object.keys(E.options.macros))xt.startsWith(vt)&&ct.push({match:"\\"+xt,frequency:0});return ct.sort((xt,Ot)=>{var Kt,Zt;return xt.frequency===Ot.frequency?xt.match.length===Ot.match.length?xt.match<Ot.match?-1:1:xt.match.length-Ot.match.length:((Kt=Ot.frequency)!=null?Kt:0)-((Zt=xt.frequency)!=null?Zt:0)}),ct.map(xt=>xt.match)}function Hn(E){let z="auto";const it=E.match(/:([^=]+)/);return it&&(z=it[1].trim()),z}function Un(E){if(!E)return[];const z=[];let it=E.split("]");if(it[0].startsWith("[")){z.push({isOptional:!0,type:Hn(it[0].slice(1))});for(let st=1;st<=it.length;st++)z.push(...Un(it[st]))}else if(it=E.split("}"),it[0].startsWith("{")){z.push({isOptional:!1,type:Hn(it[0].slice(1))});for(let st=1;st<=it.length;st++)z.push(...Un(it[st]))}return z}function Yn(E){if(!E)return"";let z="",it=!0;for(const st of E)typeof st.value=="string"?z+=st.value:it=!1;return it?z:""}function Fe(E,z){typeof E=="string"&&(E=[E]);const it={tabular:!1,params:[],createAtom:z};for(const st of E)Dn[st]=it}function bn(E,z,it){typeof E=="string"&&(E=[E]);const ct={tabular:!0,params:Un(z),createAtom:it};for(const vt of E)Dn[vt]=ct}function En(E,z,it){var st,ct;it||(it={});const vt={definitionType:"function",params:Un(z),ifMode:it.ifMode,isFunction:(st=it.isFunction)!=null?st:!1,applyMode:it.applyMode,infix:(ct=it.infix)!=null?ct:!1,parse:it.parse,createAtom:it.createAtom,applyStyle:it.applyStyle,serialize:it.serialize,render:it.render};if(typeof E=="string")gi["\\"+E]=vt;else for(const xt of E)gi["\\"+xt]=vt}var Qn;function Sn(E){return Qn||(Qn=Qe(qt)),E?Qe(jt(jt({},Qn),E)):Qn}function Vi(E,z){var it,st,ct,vt;if(typeof E=="string"){let xt=0;const Ot=E;return/(^|[^\\])#1/.test(Ot)&&(xt=1),/(^|[^\\])#2/.test(Ot)&&(xt=2),/(^|[^\\])#3/.test(Ot)&&(xt=3),/(^|[^\\])#4/.test(Ot)&&(xt=4),/(^|[^\\])#5/.test(Ot)&&(xt=5),/(^|[^\\])#6/.test(Ot)&&(xt=6),/(^|[^\\])#7/.test(Ot)&&(xt=7),/(^|[^\\])#8/.test(Ot)&&(xt=8),/(^|[^\\])#9/.test(Ot)&&(xt=9),{expand:(it=z==null?void 0:z.expand)!=null?it:!0,captureSelection:(st=z==null?void 0:z.captureSelection)!=null?st:!0,args:xt,def:Ot}}return jt({expand:(ct=z==null?void 0:z.expand)!=null?ct:!0,captureSelection:(vt=z==null?void 0:z.captureSelection)!=null?vt:!0,args:0},E)}function Qe(E){if(!E)return{};const z={};for(const it of Object.keys(E)){const st=E[it];if(st==null)delete z[it];else if(typeof st=="object"&&"package"in st)for(const ct of Object.keys(st.package))z[ct]=Vi(st.package[ct],{expand:!st.primitive,captureSelection:st.captureSelection});else z[it]=Vi(st)}return z}function Pn(E,z="math"){if(!E||E.length===0)return null;let it=null;if(E.startsWith("\\")){if(it=gi[E],it)return!it.ifMode||it.ifMode===z?it:null;z==="math"?it=On[E]:kt[E]&&(it={definitionType:"symbol",type:"mord",codepoint:kt[E]})}else if(z==="math"){if(it=On[E],!it&&E.length===1){const st=yi("math",E.codePointAt(0));return st.startsWith("\\")?Nt(jt({},Pn(st,"math")),{command:st}):null}}else kt[E]?it={definitionType:"symbol",type:"mord",codepoint:kt[E]}:z==="text"&&(it={definitionType:"symbol",type:"mord",codepoint:E.codePointAt(0)});return it!=null?it:null}function Ci(E,z){if(!E.startsWith("\\"))return null;const it=E.slice(1);return z[it]}function yi(E,z){if(z===void 0)return"";if(E==="math"&&Ni[z])return Ni[z];if(E==="text"){const it=Object.keys(kt).find(st=>kt[st]===z);return it||String.fromCodePoint(z)}return String.fromCodePoint(z)}var Oi=[0,.68889,0,0,.72222],ar=[0,.68889,0,0,.66667],br=[0,.68889,0,0,.77778],wr=[0,.68889,0,0,.61111],cr=[.16667,.68889,0,0,.77778],Ar=[0,.68889,0,0,.55556],ir=[0,0,0,0,.25],kr=[0,.825,0,0,2.33334],po=[0,.9,0,0,2.33334],So=[0,.68889,0,0,.54028],Eo=[-.03598,.46402,0,0,.5],Yr=[-.13313,.36687,0,0,1],Mn=[.01354,.52239,0,0,1],St=[.01354,.52239,0,0,1.11111],Zi=[0,.54986,0,0,1],mi=[0,.69224,0,0,.5],rr=[0,.43056,0,0,1],fr=[.08198,.58198,0,0,.77778],pr=[.19444,.69224,0,0,.41667],tr=[.1808,.675,0,0,1],Xe=[.19444,.69224,0,0,.83334],mn=[.13667,.63667,0,0,1],Tn=[-.064,.437,0,0,1.334],Nn=[.08167,.58167,0,0,.77778],ge=[0,.69224,0,0,.72222],Cn=[0,.69224,0,0,.66667],ai=[-.13313,.36687,0,0,.77778],Te=[.06062,.54986,0,0,.77778],ce=[0,.69224,0,0,.77778],Oe=[.25583,.75583,0,0,.77778],pn=[.25142,.75726,0,0,.77778],fi=[.20576,.70576,0,0,.77778],$n=[.30274,.79383,0,0,.77778],_e=[.22958,.72958,0,0,.77778],ri=[.1808,.675,0,0,.77778],Ri=[.13667,.63667,0,0,.77778],$e=[.13597,.63597,0,0,.77778],Ge=[.03517,.54986,0,0,.77778],un=[0,.675,0,0,.77778],xi=[.19444,.69224,0,0,.61111],Yi=[0,.54986,0,0,.76042],ci=[0,.54986,0,0,.66667],Xn=[.0391,.5391,0,0,.77778],qn=[.03517,.54986,0,0,1.33334],Ki=[.38569,.88569,0,0,.77778],vr=[.23222,.74111,0,0,.77778],ki=[.19444,.69224,0,0,.77778],Or=[0,.37788,0,0,.5],Ii=[0,.54986,0,0,.72222],ao=[0,.69224,0,0,.83334],qr=[.11111,.69224,0,0,.66667],Do=[.26167,.75726,0,0,.77778],ui=[.48256,.98256,0,0,.77778],Co=[.28481,.79383,0,0,.77778],bo=[.08167,.58167,0,0,.22222],Kr=[.08167,.58167,0,0,.38889],wo=[0,.43056,.04028,0,.66667],Sr=[.41951,.91951,0,0,.77778],Xr=[.24982,.74947,0,0,.38865],Br=[.08319,.58283,0,0,.75623],yo=[0,.10803,0,0,.27764],ko=[0,.47534,0,0,.50181],oi=[.18906,.47534,0,0,.50181],kn=[0,.69141,0,0,.50181],Ce=[.24982,.74947,0,0,.27764],si=[0,.69141,0,0,.21471],Wi=[.25,.75,0,0,.44722],Gi=[0,.64444,0,0,.575],Tr=[.08556,.58556,0,0,.89444],Lr=[0,.69444,0,0,.89444],Cr=[0,.68611,0,0,.9],jr=[0,.68611,0,0,.86944],Jr=[.25,.75,0,0,.575],Wr=[.25,.75,0,0,.31944],or=[0,.69444,0,0,.63889],Gt=[0,.69444,0,0,.31944],Zn=[0,.44444,0,0,.63889],wi=[0,.44444,0,0,.51111],Fi=[0,.69444,0,0,.575],Tt=[.13333,.63333,0,0,.89444],ee=[0,.44444,0,0,.31944],le=[0,.69444,0,0,.86944],xe=[0,.68611,0,0,.69166],fe=[0,.68611,0,0,.83055],Ee=[0,.68611,0,0,.89444],Ae=[0,.69444,0,0,.60278],yn=[.19444,.69444,0,0,.51111],Rn=[0,.69444,0,0,.83055],Pi=[-.10889,.39111,0,0,1.14999],An=[.19444,.69444,0,0,.575],Mi=[.19444,.69444,0,0,1.14999],pi=[.19444,.69444,0,0,.70277],di=[.05556,.75,0,0,.575],Wn=[0,.68611,0,0,.95833],Bi=[.08556,.58556,0,0,.76666],sr=[-.02639,.47361,0,0,.575],_i=[0,.44444,0,0,.89444],Ui=[0,.55556,0,0,.76666],qi=[-.10889,.39111,0,0,.89444],lr=[.00222,.50222,0,0,.89444],je=[.19667,.69667,0,0,.89444],ve=[.08556,.58556,0,0,1.14999],ke=[0,.69444,0,0,.70277],xn=[-.02778,.47222,0,0,.575],cn=[.25,.75,0,0,.51111],ni=[-.13889,.36111,0,0,1.14999],Ti=[.19444,.69444,0,0,1.02222],qe=[.12963,.69444,0,0,.89444],Je=[.19444,.69444,0,0,.44722],sn=[0,.64444,.13167,0,.59111],hn=[.19444,.64444,.13167,0,.59111],bi=[0,.68611,.17208,0,.8961],zi=[.19444,.44444,.105,0,.53222],li=[0,.44444,.085,0,.82666],Kn=[0,.69444,.06709,0,.59111],ur=[0,.69444,.12945,0,.35555],Ln=[0,.69444,0,0,.94888],wn=[0,.69444,.11472,0,.59111],_n=[0,.68611,.10778,0,.88555],Ei=[0,.69444,.07939,0,.62055],gn=[0,.69444,.12417,0,.30667],Ji=[0,.64444,.13556,0,.51111],er=[.19444,.64444,.13556,0,.51111],Qi=[0,.68333,.16389,0,.74333],Ir=[.19444,.43056,.08847,0,.46],Fr=[0,.43056,.07514,0,.71555],yr=[0,.69444,.06646,0,.51111],xo=[0,.69444,0,0,.83129],No=[0,.69444,.1225,0,.51111],mo=[0,.68333,.09403,0,.76666],oo=[0,.68333,.11111,0,.76666],to=[0,.69444,.06961,0,.51444],Io=[0,.69444,0,0,.27778],so=[.25,.75,0,0,.38889],Zr=[0,.64444,0,0,.5],Oo=[0,.69444,0,0,.77778],Uo=[0,.68333,0,0,.75],Ls=[0,.68333,0,0,.77778],bs=[0,.68333,0,0,.68056],ms=[0,.68333,0,0,.72222],ds=[.25,.75,0,0,.5],es=[.25,.75,0,0,.27778],jo=[0,.69444,0,0,.5],Is=[0,.69444,0,0,.55556],Yo=[0,.43056,0,0,.44445],Lo=[0,.43056,0,0,.5],Ao=[.19444,.43056,0,0,.55556],Ps=[0,.43056,0,0,.55556],os=[.08333,.58333,0,0,.77778],xs=[0,.43056,0,0,.27778],Vo=[0,.66786,0,0,.27778],fs=[0,.69444,0,0,.75],gs=[0,.66786,0,0,.5],is=[0,.68333,0,0,.625],vs=[.19444,.69444,0,0,.44445],Hs=[0,.69444,0,0,.72222],ua=[.19444,.69444,0,0,.5],ss=[.19444,.69444,0,0,1],_s=[.011,.511,0,0,1.126],Ea=[.19444,.69444,0,0,.61111],ya=[.05556,.75,0,0,.5],Hr=[0,.68333,0,0,.83334],na=[.0391,.5391,0,0,.66667],Ke=[-.05555,.44445,0,0,.5],ii=[0,.43056,0,0,.77778],rs=[0,.55556,0,0,.66667],Ns=[-.03625,.46375,0,0,.77778],Rs=[-.01688,.48312,0,0,.77778],Qs=[.0391,.5391,0,0,1],Na=[0,.69444,0,0,.61111],Ka=[-.03472,.46528,0,0,.5],vl=[.25,.75,0,0,.44445],Bs=[-.14236,.35764,0,0,1],co=[.244,.744,0,0,.412],xa=[.19444,.69444,0,0,.88889],ps=[.12963,.69444,0,0,.77778],zo=[.19444,.69444,0,0,.38889],Fo=[.011,.511,0,0,1.638],ys=[.19444,.69444,0,0,0],Ys=[0,.44444,0,0,.575],us=[.19444,.44444,0,0,.575],Ha=[0,.68611,0,0,.75555],ha=[0,.69444,0,0,.66759],Tl=[0,.68611,0,0,.80555],vo=[0,.68611,.08229,0,.98229],Vr=[0,.68611,0,0,.76666],_r=[0,.44444,0,0,.58472],no=[.19444,.44444,0,0,.6118],ho=[.19444,.43056,0,0,.5],cs=[0,.68333,.02778,.08334,.76278],Zo=[0,.68333,.08125,.05556,.83125],Dl=[0,.43056,0,.05556,.48472],Mo=[.19444,.43056,0,.08334,.51702],Fu=[.25,.75,0,0,.42778],Po=[0,.69444,0,0,.55],Cl=[0,.69444,0,0,.73334],Ol=[0,.69444,0,0,.79445],Mc=[0,.69444,0,0,.51945],Hc=[0,.69444,0,0,.70278],Ru=[0,.69444,0,0,.76389],yl=[.25,.75,0,0,.34306],sc=[0,.69444,0,0,.56111],ws=[0,.69444,0,0,.25556],zu=[.19444,.45833,0,0,.56111],ka=[0,.45833,0,0,.56111],Vs=[0,.69444,0,0,.30556],ba=[0,.69444,0,0,.58056],_a=[0,.69444,0,0,.67223],da=[0,.69444,0,0,.85556],Bl=[0,.69444,0,0,.55834],Ta=[0,.65556,.11156,0,.5],ju=[0,.69444,.08094,0,.70834],ud=[.17014,0,0,0,.44445],Wd=[0,.69444,.0799,0,.5],Df=[0,.69444,0,0,.73752],Op=[0,.69444,.09205,0,.5],_c=[0,.69444,.09031,0,.77778],Ec=[0,.69444,.07816,0,.27778],Bp=[0,.69444,.00316,0,.5],Of=[.19444,.69444,0,0,.83334],Xs=[.05556,.75,0,0,.83334],Fs=[0,.75,0,0,.5],zs=[.125,.08333,0,0,.27778],cl=[0,.08333,0,0,.27778],Qo=[0,.65556,0,0,.5],$s=[0,.69444,0,0,.47222],Zs=[0,.69444,0,0,.66667],Wa=[0,.69444,0,0,.59722],hu=[0,.69444,0,0,.54167],Da=[0,.69444,0,0,.70834],du=[.25,.75,0,0,.28889],Vd=[0,.69444,0,0,.51667],Wm=[0,.44444,0,0,.44445],fu=[.19444,.44444,0,0,.51667],Ip=[0,.44444,0,0,.38333],ra=[0,.44444,0,0,.51667],Ih=[0,.69444,0,0,.83334],j0=[.35001,.85,0,0,.45834],Fh=[.35001,.85,0,0,.57778],Rh=[.35001,.85,0,0,.41667],Fp=[.35001,.85,0,0,.58334],$a=[0,.72222,0,0,.55556],Ml=[1e-5,.6,0,0,.66667],cd=[1e-5,.6,0,0,.77778],Ku=[.25001,.75,0,0,.94445],zh=[.306,.805,.19445,0,.47222],bu=[.30612,.805,.19445,0,.47222],Oa=[.25001,.75,0,0,.83334],wu=[.35001,.85,0,0,.47222],Su=[.25001,.75,0,0,1.11111],El=[.65002,1.15,0,0,.59722],qu=[.65002,1.15,0,0,.81111],oa=[.65002,1.15,0,0,.47222],ac=[.65002,1.15,0,0,.66667],kc=[0,.75,0,0,1],jh=[.55001,1.05,0,0,1.27778],hd=[.862,1.36,.44445,0,.55556],Bf=[.86225,1.36,.44445,0,.55556],Wc=[.55001,1.05,0,0,1.11111],dd=[.65002,1.15,0,0,.52778],ks=[.65002,1.15,0,0,.61111],Ud=[.55001,1.05,0,0,1.51112],K0=[.95003,1.45,0,0,.73611],Rp=[.95003,1.45,0,0,1.04445],Ac=[.95003,1.45,0,0,.52778],Zd=[.95003,1.45,0,0,.75],fd=[0,.75,0,0,1.44445],H0=[.95003,1.45,0,0,.58334],Gd=[1.25003,1.75,0,0,.79167],zp=[1.25003,1.75,0,0,1.27778],Yd=[1.25003,1.75,0,0,.58334],pd=[1.25003,1.75,0,0,.80556],md=[0,.825,0,0,1.8889],If=[1.25003,1.75,0,0,.63889],gd=[.64502,1.155,0,0,.875],Xd=[1e-5,.6,0,0,.875],ah=[-99e-5,.601,0,0,.66667],Il=[.64502,1.155,0,0,.66667],Vc=[1e-5,.9,0,0,.88889],jp=[.65002,1.15,0,0,.88889],lh=[.90001,0,0,0,.88889],Kp=[-.00499,.605,0,0,1.05556],Jd=[0,.12,0,0,.45],Ho=[0,.61111,0,0,.525],$l=[.08333,.69444,0,0,.525],vd=[-.08056,.53055,0,0,.525],Vm=[-.05556,.55556,0,0,.525],ql=[0,.43056,0,0,.525],xl=[.22222,.43056,0,0,.525],yd=[0,0,0,0,.525],Um={"AMS-Regular":{32:ir,65:Oi,66:ar,67:Oi,68:Oi,69:ar,70:wr,71:br,72:br,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:br,76:ar,77:[0,.68889,0,0,.94445],78:Oi,79:cr,80:wr,81:cr,82:Oi,83:Ar,84:ar,85:Oi,86:Oi,87:[0,.68889,0,0,1],88:Oi,89:Oi,90:ar,107:Ar,160:ir,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:Ar,295:So,710:kr,732:po,770:kr,771:po,989:Nn,1008:wo,8245:[0,.54986,0,0,.275],8463:So,8487:Oi,8498:Ar,8502:ar,8503:[0,.68889,0,0,.44445],8504:ar,8513:[0,.68889,0,0,.63889],8592:Eo,8594:Eo,8602:Yr,8603:Yr,8606:Mn,8608:Mn,8610:St,8611:St,8619:Zi,8620:Zi,8621:[-.13313,.37788,0,0,1.38889],8622:Yr,8624:mi,8625:mi,8630:rr,8631:rr,8634:fr,8635:fr,8638:pr,8639:pr,8642:pr,8643:pr,8644:tr,8646:tr,8647:tr,8648:Xe,8649:tr,8650:Xe,8651:Mn,8652:Mn,8653:Yr,8654:Yr,8655:Yr,8666:mn,8667:mn,8669:[-.13313,.37788,0,0,1],8672:Tn,8674:Tn,8705:[0,.825,0,0,.5],8708:Ar,8709:Nn,8717:[0,.43056,0,0,.42917],8722:Eo,8724:[.08198,.69224,0,0,.77778],8726:Nn,8733:ce,8736:ge,8737:ge,8738:[.03517,.52239,0,0,.72222],8739:bo,8740:[.25142,.74111,0,0,.27778],8741:Kr,8742:[.25142,.74111,0,0,.5],8756:Cn,8757:Cn,8764:ai,8765:[-.13313,.37788,0,0,.77778],8769:ai,8770:Ns,8774:$n,8776:Rs,8778:Nn,8782:Te,8783:Te,8785:fr,8786:fr,8787:fr,8790:ce,8791:_e,8796:[.08198,.91667,0,0,.77778],8806:Oe,8807:Oe,8808:pn,8809:pn,8812:[.25583,.75583,0,0,.5],8814:fi,8815:fi,8816:$n,8817:$n,8818:_e,8819:_e,8822:ri,8823:ri,8828:Ri,8829:Ri,8830:_e,8831:_e,8832:fi,8833:fi,8840:$n,8841:$n,8842:$e,8843:$e,8847:Ge,8848:Ge,8858:fr,8859:fr,8861:fr,8862:un,8863:un,8864:un,8865:un,8872:[0,.69224,0,0,.61111],8873:ge,8874:[0,.69224,0,0,.88889],8876:wr,8877:wr,8878:Oi,8879:Oi,8882:Ge,8883:Ge,8884:Ri,8885:Ri,8888:[0,.54986,0,0,1.11111],8890:Ao,8891:xi,8892:xi,8901:[0,.54986,0,0,.27778],8903:Nn,8905:Nn,8906:Nn,8907:ce,8908:ce,8909:[-.03598,.46402,0,0,.77778],8910:Yi,8911:Yi,8912:Ge,8913:Ge,8914:ci,8915:ci,8916:Cn,8918:Xn,8919:Xn,8920:qn,8921:qn,8922:Ki,8923:Ki,8926:Ri,8927:Ri,8928:$n,8929:$n,8934:vr,8935:vr,8936:vr,8937:vr,8938:fi,8939:fi,8940:$n,8941:$n,8994:ki,8995:ki,9416:[.15559,.69224,0,0,.90222],9484:mi,9488:mi,9492:Or,9496:Or,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:un,9633:un,9650:Ii,9651:Ii,9654:Ge,9660:Ii,9661:Ii,9664:Ge,9674:qr,9733:[.19444,.69224,0,0,.94445],10003:ao,10016:ao,10731:qr,10846:[.19444,.75583,0,0,.61111],10877:Ri,10878:Ri,10885:Oe,10886:Oe,10887:$e,10888:$e,10889:Do,10890:Do,10891:ui,10892:ui,10901:Ri,10902:Ri,10933:pn,10934:pn,10935:Do,10936:Do,10937:Do,10938:Do,10949:Oe,10950:Oe,10955:Co,10956:Co,57350:bo,57351:Kr,57352:Nn,57353:wo,57356:pn,57357:pn,57358:Sr,57359:$n,57360:$n,57361:Sr,57366:pn,57367:pn,57368:pn,57369:pn,57370:$e,57371:$e},"Caligraphic-Regular":{32:ir,65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:ir},"Fraktur-Regular":{32:ir,33:[0,.69141,0,0,.29574],34:si,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:Xr,41:Xr,42:[0,.62119,0,0,.27764],43:Br,44:yo,45:Br,46:yo,47:[.24982,.74947,0,0,.50181],48:ko,49:ko,50:ko,51:oi,52:oi,53:oi,54:kn,55:oi,56:kn,57:oi,58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:Ce,93:Ce,94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:ir,8216:si,8217:si,58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:ir,33:[0,.69444,0,0,.35],34:Ae,35:[.19444,.69444,0,0,.95833],36:di,37:[.05556,.75,0,0,.95833],38:Lr,39:Gt,40:Wi,41:Wi,42:[0,.75,0,0,.575],43:Tt,44:[.19444,.15556,0,0,.31944],45:Ip,46:[0,.15556,0,0,.31944],47:Jr,48:Gi,49:Gi,50:Gi,51:Gi,52:Gi,53:Gi,54:Gi,55:Gi,56:Gi,57:Gi,58:ee,59:[.19444,.44444,0,0,.31944],60:Tr,61:qi,62:Tr,63:[0,.69444,0,0,.54305],64:Lr,65:jr,66:[0,.68611,0,0,.81805],67:fe,68:[0,.68611,0,0,.88194],69:Ha,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:Cr,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:xe,77:[0,.68611,0,0,1.09166],78:Cr,79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:jr,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Wr,92:Jr,93:Wr,94:Fi,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:or,99:wi,100:or,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:or,105:Gt,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:Gt,109:[0,.44444,0,0,.95833],110:Zn,111:Ys,112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:Zn,118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:wi,123:Jr,124:Wr,125:Jr,126:[.35,.34444,0,0,.575],160:ir,163:[0,.69444,0,0,.86853],168:Fi,172:[0,.44444,0,0,.76666],176:le,177:Tt,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:Tt,216:[.04861,.73472,0,0,.89444],223:Wa,230:[0,.44444,0,0,.83055],247:Tt,248:[.09722,.54167,0,0,.575],305:ee,338:[0,.68611,0,0,1.16944],339:_i,567:[.19444,.44444,0,0,.35139],710:Fi,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:Fi,715:Fi,728:Fi,729:Gt,730:le,732:Fi,733:Fi,915:xe,916:Wn,920:Ee,923:Tl,926:Vr,928:Cr,931:fe,933:Ee,934:fe,936:Ee,937:fe,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:Gt,8217:Gt,8220:Ae,8221:Ae,8224:yn,8225:yn,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:ha,8465:Rn,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:Rn,8501:ke,8592:Pi,8593:An,8594:Pi,8595:An,8596:Pi,8597:Jr,8598:Mi,8599:Mi,8600:Mi,8601:Mi,8636:Pi,8637:Pi,8640:Pi,8641:Pi,8656:Pi,8657:pi,8658:Pi,8659:pi,8660:Pi,8661:[.25,.75,0,0,.70277],8704:or,8706:[0,.69444,.06389,0,.62847],8707:or,8709:di,8711:Wn,8712:Bi,8715:Bi,8722:Tt,8723:Tt,8725:Jr,8726:Jr,8727:xn,8728:sr,8729:sr,8730:[.18,.82,0,0,.95833],8733:_i,8734:[0,.44444,0,0,1.14999],8736:ge,8739:Wr,8741:Jr,8743:Ui,8744:Ui,8745:Ui,8746:Ui,8747:[.19444,.69444,.12778,0,.56875],8764:qi,8768:[.19444,.69444,0,0,.31944],8771:lr,8776:[.02444,.52444,0,0,.89444],8781:lr,8801:lr,8804:je,8805:je,8810:ve,8811:ve,8826:Tr,8827:Tr,8834:Tr,8835:Tr,8838:je,8839:je,8846:Ui,8849:je,8850:je,8851:Ui,8852:Ui,8853:Tt,8854:Tt,8855:Tt,8856:Tt,8857:Tt,8866:ke,8867:ke,8868:Lr,8869:Lr,8900:sr,8901:[-.02639,.47361,0,0,.31944],8902:xn,8968:cn,8969:cn,8970:cn,8971:cn,8994:ni,8995:ni,9651:Ti,9657:xn,9661:Ti,9667:xn,9711:Mi,9824:qe,9825:qe,9826:qe,9827:qe,9837:[0,.75,0,0,.44722],9838:Je,9839:Je,10216:Wi,10217:Wi,10815:Cr,10927:je,10928:je,57376:ys},"Main-BoldItalic":{32:ir,33:[0,.69444,.11417,0,.38611],34:Ei,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:ur,40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:sn,49:sn,50:sn,51:sn,52:hn,53:sn,54:sn,55:hn,56:sn,57:sn,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:wn,64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:bi,73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:bi,79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:Kn,95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:zi,104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:zi,114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:ir,168:[0,.69444,.11473,0,.59111],176:Ln,184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:li,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:li,567:[.19444,.44444,.04611,0,.385],710:Kn,711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:ur,730:Ln,732:wn,733:wn,915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:bi,931:[0,.68611,.11431,0,.82666],933:_n,934:[0,.68611,.05632,0,.82666],936:_n,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:ur,8217:ur,8220:[0,.69444,.16772,0,.62055],8221:Ei},"Main-Italic":{32:ir,33:gn,34:to,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:gn,40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:Ji,49:Ji,50:Ji,51:Ji,52:er,53:Ji,54:Ji,55:er,56:Ji,57:Ji,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:No,64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:Qi,73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:Qi,79:mo,80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:Qi,86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:yr,95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:Ir,104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:Ir,114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:ir,168:[0,.66786,.10474,0,.51111],176:xo,184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:Fr,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:Fr,710:yr,711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:xo,732:[0,.66786,.11585,0,.51111],733:No,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:mo,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:Qi,931:[0,.68333,.12028,0,.71555],933:oo,934:[0,.68333,.05986,0,.71555],936:oo,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:gn,8217:gn,8220:[0,.69444,.1685,0,.51444],8221:to,8463:So},"Main-Regular":{32:ir,33:Io,34:jo,35:Of,36:ya,37:Xs,38:Oo,39:Io,40:so,41:so,42:Fs,43:os,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:ds,48:Zr,49:Zr,50:Zr,51:Zr,52:Zr,53:Zr,54:Zr,55:Zr,56:Zr,57:Zr,58:xs,59:[.19444,.43056,0,0,.27778],60:Xn,61:ai,62:Xn,63:$s,64:Oo,65:Uo,66:[0,.68333,0,0,.70834],67:ms,68:[0,.68333,0,0,.76389],69:bs,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:Uo,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:Ls,76:is,77:[0,.68333,0,0,.91667],78:Uo,79:Ls,80:bs,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:ms,85:Uo,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:Uo,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:es,92:ds,93:es,94:jo,95:[.31,.12056,.02778,0,.5],97:Lo,98:Is,99:Yo,100:Is,101:Yo,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:Is,105:Vo,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:Io,109:[0,.43056,0,0,.83334],110:Ps,111:Lo,112:Ao,113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:Ps,118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:Yo,123:ds,124:es,125:ds,126:[.35,.31786,0,0,.5],160:ir,163:[0,.69444,0,0,.76909],167:vs,168:gs,172:[0,.43056,0,0,.66667],176:fs,177:os,182:Ea,184:ud,198:[0,.68333,0,0,.90278],215:os,216:[.04861,.73194,0,0,.77778],223:jo,230:[0,.43056,0,0,.72222],247:os,248:[.09722,.52778,0,0,.5],305:xs,338:[0,.68333,0,0,1.01389],339:ii,567:[.19444,.43056,0,0,.30556],710:jo,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:jo,715:jo,728:jo,729:Vo,730:fs,732:gs,733:jo,915:is,916:Hr,920:Ls,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:Uo,931:ms,933:Ls,934:ms,936:Ls,937:ms,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:Io,8217:Io,8220:jo,8221:jo,8224:vs,8225:vs,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:So,8465:Hs,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:Hs,8501:Na,8592:Yr,8593:ua,8594:Yr,8595:ua,8596:Yr,8597:ds,8598:ss,8599:ss,8600:ss,8601:ss,8614:[.011,.511,0,0,1],8617:_s,8618:_s,8636:Yr,8637:Yr,8640:Yr,8641:Yr,8652:[.011,.671,0,0,1],8656:Yr,8657:Ea,8658:Yr,8659:Ea,8660:Yr,8661:[.25,.75,0,0,.61111],8704:Is,8706:[0,.69444,.05556,.08334,.5309],8707:Is,8709:ya,8711:Hr,8712:na,8715:na,8722:os,8723:os,8725:ds,8726:ds,8727:Ka,8728:Ke,8729:Ke,8730:[.2,.8,0,0,.83334],8733:ii,8734:rr,8736:ge,8739:es,8741:ds,8743:rs,8744:rs,8745:rs,8746:rs,8747:[.19444,.69444,.11111,0,.41667],8764:ai,8768:[.19444,.69444,0,0,.27778],8771:Ns,8773:[-.022,.589,0,0,1],8776:Rs,8781:Ns,8784:[-.133,.67,0,0,.778],8801:Ns,8804:$e,8805:$e,8810:Qs,8811:Qs,8826:Xn,8827:Xn,8834:Xn,8835:Xn,8838:$e,8839:$e,8846:rs,8849:$e,8850:$e,8851:rs,8852:rs,8853:os,8854:os,8855:os,8856:os,8857:os,8866:Na,8867:Na,8868:Oo,8869:Oo,8872:[.249,.75,0,0,.867],8900:Ke,8901:[-.05555,.44445,0,0,.27778],8902:Ka,8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:vl,8969:vl,8970:vl,8971:vl,8994:Bs,8995:Bs,9136:co,9137:co,9651:xa,9657:Ka,9661:xa,9667:Ka,9711:ss,9824:ps,9825:ps,9826:ps,9827:ps,9837:[0,.75,0,0,.38889],9838:zo,9839:zo,10216:so,10217:so,10222:co,10223:co,10229:[.011,.511,0,0,1.609],10230:Fo,10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:Fo,10815:Uo,10927:$e,10928:$e,57376:ys},"Math-BoldItalic":{32:ir,48:Ys,49:Ys,50:Ys,51:us,52:us,53:us,54:Gi,55:us,56:Gi,57:us,65:jr,66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:vo,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Ha,77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:ha,105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:_r,112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:ir,915:[0,.68611,.15972,0,.65694],916:Wn,920:[0,.68611,.03194,0,.86722],923:Tl,926:[0,.68611,.07458,0,.84125],928:vo,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:Vr,936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:_r,960:[0,.44444,.03704,0,.68241],961:no,962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:no,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:ir,48:Lo,49:Lo,50:Lo,51:ho,52:ho,53:ho,54:Zr,55:ho,56:Zr,57:ho,65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:Zo,73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:cs,80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:Dl,112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:ir,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:cs,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:Zo,931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:Dl,960:[0,.43056,.03588,0,.57003],961:Mo,962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:Mo,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:ir,33:[0,.69444,0,0,.36667],34:Bl,35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:Vs,40:Fu,41:Fu,42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:Po,49:Po,50:Po,51:Po,52:Po,53:Po,54:Po,55:Po,56:Po,57:Po,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:Mc,64:Cl,65:Cl,66:Cl,67:Hc,68:Ol,69:[0,.69444,0,0,.64167],70:Na,71:Cl,72:Ol,73:[0,.69444,0,0,.33056],74:Mc,75:Ru,76:ba,77:[0,.69444,0,0,.97778],78:Ol,79:Ol,80:Hc,81:[.10556,.69444,0,0,.79445],82:Hc,83:Na,84:Cl,85:Ru,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:Cl,89:[0,.69444,.0275,0,.73334],90:_a,91:yl,93:yl,94:Po,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:sc,99:[0,.45833,0,0,.48889],100:sc,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:sc,105:ws,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:ws,109:[0,.45833,0,0,.86667],110:ka,111:[0,.45833,0,0,.55],112:zu,113:zu,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:ka,118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:ir,168:Po,176:Cl,180:Po,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:Po,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:Po,729:Vs,730:Cl,732:Po,733:Po,915:ba,916:[0,.69444,0,0,.91667],920:da,923:_a,926:Cl,928:Ol,931:Ol,933:da,934:Ol,936:da,937:Ol,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:Vs,8217:Vs,8220:Bl,8221:Bl},"SansSerif-Italic":{32:ir,33:[0,.69444,.05733,0,.31945],34:Bp,35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:Ec,40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:zs,45:[0,.44444,.01946,0,.33333],46:cl,47:[.25,.75,.13164,0,.5],48:Ta,49:Ta,50:Ta,51:Ta,52:Ta,53:Ta,54:Ta,55:Ta,56:Ta,57:Ta,58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:Zs,66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:ju,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:hu,77:[0,.69444,.08094,0,.875],78:ju,79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:Wd,95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:ir,168:[0,.67937,.06385,0,.5],176:Df,184:ud,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:Wd,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:Op,715:jo,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:Df,732:[0,.67659,.08826,0,.5],733:Op,915:[0,.69444,.13372,0,.54167],916:Ih,920:[0,.69444,.07555,0,.77778],923:Na,926:[0,.69444,.12816,0,.66667],928:ju,931:[0,.69444,.11983,0,.72222],933:_c,934:[0,.69444,.04603,0,.72222],936:_c,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:Ec,8217:Ec,8220:[0,.69444,.14205,0,.5],8221:Bp},"SansSerif-Regular":{32:ir,33:[0,.69444,0,0,.31945],34:jo,35:Of,36:ya,37:Xs,38:[0,.69444,0,0,.75834],39:Io,40:so,41:so,42:Fs,43:os,44:zs,45:[0,.44444,0,0,.33333],46:cl,47:ds,48:Qo,49:Qo,50:Qo,51:Qo,52:Qo,53:Qo,54:Qo,55:Qo,56:Qo,57:Qo,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:$s,64:Zs,65:Zs,66:Zs,67:or,68:[0,.69444,0,0,.72223],69:Wa,70:[0,.69444,0,0,.56945],71:Zs,72:Da,73:Io,74:$s,75:[0,.69444,0,0,.69445],76:hu,77:[0,.69444,0,0,.875],78:Da,79:[0,.69444,0,0,.73611],80:or,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:Is,84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:Zs,89:[0,.69444,.025,0,.66667],90:Na,91:du,93:du,94:jo,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:Vd,99:Wm,100:Vd,101:Wm,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:Vd,105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:ra,111:[0,.44444,0,0,.5],112:fu,113:fu,114:[0,.44444,.01389,0,.34167],115:Ip,116:[0,.57143,0,0,.36111],117:ra,118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:ir,168:[0,.67937,0,0,.5],176:Zs,184:ud,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:jo,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:jo,715:jo,728:jo,729:[0,.67937,0,0,.27778],730:Zs,732:[0,.67659,0,0,.5],733:jo,915:hu,916:Ih,920:Oo,923:Na,926:Zs,928:Da,931:Hs,933:Oo,934:Hs,936:Oo,937:Hs,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:Io,8217:Io,8220:jo,8221:jo},"Script-Regular":{32:ir,65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:ir},"Size1-Regular":{32:ir,40:j0,41:j0,47:Fh,91:Rh,92:Fh,93:Rh,123:Fp,125:Fp,160:ir,710:$a,732:$a,770:$a,771:$a,8214:[-99e-5,.601,0,0,.77778],8593:Ml,8595:Ml,8657:cd,8659:cd,8719:Ku,8720:Ku,8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:bu,8748:zh,8749:zh,8750:bu,8896:Oa,8897:Oa,8898:Oa,8899:Oa,8968:wu,8969:wu,8970:wu,8971:wu,9168:ah,10216:wu,10217:wu,10752:Su,10753:Su,10754:Su,10756:Oa,10758:Oa},"Size2-Regular":{32:ir,40:El,41:El,47:qu,91:oa,92:qu,93:oa,123:ac,125:ac,160:ir,710:kc,732:kc,770:kc,771:kc,8719:jh,8720:jh,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:Bf,8748:hd,8749:hd,8750:Bf,8896:Wc,8897:Wc,8898:Wc,8899:Wc,8968:dd,8969:dd,8970:dd,8971:dd,10216:ks,10217:ks,10752:Ud,10753:Ud,10754:Ud,10756:Wc,10758:Wc},"Size3-Regular":{32:ir,40:K0,41:K0,47:Rp,91:Ac,92:Rp,93:Ac,123:Zd,125:Zd,160:ir,710:fd,732:fd,770:fd,771:fd,8730:[.95003,1.45,0,0,1],8968:H0,8969:H0,8970:H0,8971:H0,10216:Zd,10217:Zd},"Size4-Regular":{32:ir,40:Gd,41:Gd,47:zp,91:Yd,92:zp,93:Yd,123:pd,125:pd,160:ir,710:md,732:md,770:md,771:md,8730:[1.25003,1.75,0,0,1],8968:If,8969:If,8970:If,8971:If,9115:gd,9116:Xd,9117:gd,9118:gd,9119:Xd,9120:gd,9121:Il,9122:ah,9123:Il,9124:Il,9125:ah,9126:Il,9127:Vc,9128:jp,9129:lh,9130:[0,.3,0,0,.88889],9131:Vc,9132:jp,9133:lh,9143:[.88502,.915,0,0,1.05556],10216:pd,10217:pd,57344:Kp,57345:Kp,57680:Jd,57681:Jd,57682:Jd,57683:Jd},"Typewriter-Regular":{32:yd,33:Ho,34:Ho,35:Ho,36:$l,37:$l,38:Ho,39:Ho,40:$l,41:$l,42:[0,.52083,0,0,.525],43:vd,44:[.13889,.125,0,0,.525],45:vd,46:[0,.125,0,0,.525],47:$l,48:Ho,49:Ho,50:Ho,51:Ho,52:Ho,53:Ho,54:Ho,55:Ho,56:Ho,57:Ho,58:ql,59:[.13889,.43056,0,0,.525],60:Vm,61:[-.19549,.41562,0,0,.525],62:Vm,63:Ho,64:Ho,65:Ho,66:Ho,67:Ho,68:Ho,69:Ho,70:Ho,71:Ho,72:Ho,73:Ho,74:Ho,75:Ho,76:Ho,77:Ho,78:Ho,79:Ho,80:Ho,81:[.13889,.61111,0,0,.525],82:Ho,83:Ho,84:Ho,85:Ho,86:Ho,87:Ho,88:Ho,89:Ho,90:Ho,91:$l,92:$l,93:$l,94:Ho,95:[.09514,0,0,0,.525],96:Ho,97:ql,98:Ho,99:ql,100:Ho,101:ql,102:Ho,103:xl,104:Ho,105:Ho,106:[.22222,.61111,0,0,.525],107:Ho,108:Ho,109:ql,110:ql,111:ql,112:xl,113:xl,114:ql,115:ql,116:[0,.55358,0,0,.525],117:ql,118:ql,119:ql,120:ql,121:xl,122:ql,123:$l,124:$l,125:$l,126:Ho,127:Ho,160:yd,176:Ho,184:[.19445,0,0,0,.525],305:ql,567:xl,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:Ho,715:Ho,728:Ho,730:Ho,770:Ho,771:Ho,776:Ho,915:Ho,916:Ho,920:Ho,923:Ho,926:Ho,928:Ho,931:Ho,933:Ho,934:Ho,936:Ho,937:Ho,8216:Ho,8217:Ho,8242:Ho,9251:[.11111,.21944,0,0,.525]}},Hp=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,uh=10,_l=.25,_p=1.2,ch=.431,sl={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[ch,ch,ch],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.5,.732,.925],num2:[.394,.384,.5],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[_l,_l,_l],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04]},Qd=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],hh=5,xd={"\xA0":" ","\u200B":" ",\u00C5:"A",\u00C7:"C",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00E7:"c",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function dh(E,z){E===void 0&&(E=77);const it=Um[z][E];if(it)return{defaultMetrics:!1,depth:it[0],height:it[1],italic:it[2],skew:it[3],width:it[4]};if(E===11034)return{defaultMetrics:!0,depth:.2,height:.8,italic:0,skew:0,width:.8};const st=String.fromCodePoint(E);if(st in xd)E=xd[st].codePointAt(0);else if(Hp.test(st))return E=77,{defaultMetrics:!0,depth:.2,height:.9,italic:0,skew:0,width:1};return{defaultMetrics:!0,depth:.2,height:.7,italic:0,skew:0,width:.8}}var Wp={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],longrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],longleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],longleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],longrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],longleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],longleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],longRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716],longLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},bd={widehat1:[1062,239,.24],widehat2:[2364,300,.3],widehat3:[2364,360,.36],widehat4:[2364,420,.42],widecheck1:[1062,239,.24],widecheck2:[2364,300,.3],widecheck3:[2364,360,.36],widecheck4:[2364,420,.42],widetilde1:[600,260,.26],widetilde2:[1033,286,.286],widetilde3:[2339,306,.306],widetilde4:[2340,312,.34],overarc:[1061,159,.3],underarc:[1061,159,.3]},Zm={doubleleftarrow:`M262 157
|
|
|
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
|
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
|
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
|
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
|
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
|
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
|
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
|
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
|
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
|
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
|
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
|
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
|
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
|
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
|
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
|
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
|
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
|
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
|
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
|
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
|
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
|
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
|
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
|
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
|
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
|
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,overarc:"M529 0c179 0 524 115 524 115 5 1 9 5 9 10 0 1-1 2-1 3l-4 22c-1 5-5 9-11 9h-2s-338-93-512-92c-174 0-513 92-513 92h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13 0 0 342-115 520-115z",underarc:`m 529 160
|
|
|
c -179 0 -524 -115 -524 -115
|
|
|
c -5 -1 -9 -5 -9 -10
|
|
|
c 0 -1 1 -2 1 -3
|
|
|
l 4 -22
|
|
|
c 1 -5 5 -9 11 -9
|
|
|
h 2
|
|
|
s 338 93 512 92
|
|
|
c 174 0 513 -92 513 -92
|
|
|
h 2
|
|
|
c 5 0 9 4 11 9
|
|
|
l 5 22
|
|
|
c 1 6 -2 12 -8 13
|
|
|
c 0 0 -342 115 -520 115
|
|
|
z
|
|
|
`,leftgroup:`M400000 80
|
|
|
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
|
435 0h399565z`,leftgroupunder:`M400000 262
|
|
|
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
|
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
|
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
|
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
|
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
|
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
|
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
|
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
|
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
|
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
|
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
|
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
|
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
|
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
|
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
|
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
|
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
|
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
|
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
|
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
|
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
|
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
|
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
|
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
|
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
|
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
|
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
|
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
|
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
|
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
|
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
|
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
|
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
|
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
|
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
|
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
|
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
|
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
|
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
|
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
|
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
|
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
|
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
|
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
|
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
|
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
|
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
|
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
|
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
|
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
|
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
|
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
|
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
|
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
|
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
|
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
|
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
|
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
|
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
|
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
|
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
|
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
|
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
|
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
|
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
|
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
|
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
|
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|
|
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
|
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
|
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
|
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
|
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
|
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
|
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
|
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
|
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
|
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
|
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
|
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,widetilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
|
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
|
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
|
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
|
-68.267.847-113-73.952-191-73.952z`,widetilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
|
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
|
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
|
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
|
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,widetilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
|
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
|
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
|
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
|
-338 0-409-156.573-744-156.573z`,widetilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
|
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
|
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
|
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
|
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
|
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
|
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
|
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
|
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
|
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
|
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
|
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
|
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
|
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
|
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
|
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
|
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
|
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
|
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
|
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
|
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
|
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
|
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
|
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
|
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
|
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
|
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
|
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
|
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
|
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
|
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`};function $d(E){if(bd[E]){const[Zt,re,Be]=bd[E],ln=`<span class="stretchy" style="height:${Be}em"><svg width="100%" height="${Be}em" viewBox="0 0 ${Zt} ${re}" preserveAspectRatio="none" ><path fill="currentcolor" d="${Zm[E]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*Be/2)/100}em;min-width:0">${ln}</span>`}const[z,it,st,ct]=Wp[E];let vt,xt;const Ot=st/1e3;z.length===3?(vt=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],xt=["xMinYMin","xMidYMin","xMaxYMin"]):z.length===2?(vt=["slice-1-of-2","slice-2-of-2"],xt=["xMinYMin","xMaxYMin"]):(vt=["slice-1-of-1"],xt=[ct]);const Kt=z.map((Zt,re)=>`<span class="${vt[re]}" style=height:${Ot}em><svg width=400em height=${Ot}em viewBox="0 0 400000 ${st}" preserveAspectRatio="${xt[re]} slice"><path fill="currentcolor" d="${Zm[Zt]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${Ot}em;min-width:${it}em;">${Kt}</span>`}function lc(E){return Wp[E]?Wp[E][2]/1e3:bd[E][2]}function cv(E){const z=[];for(let it=0;it<E.length;it++){let st=E.charCodeAt(it);if(st===13&&E.charCodeAt(it+1)===10&&(st=10,it++),(st===13||st===12)&&(st=10),st===0&&(st=65533),st>=55296&&st<=56319){const ct=E.charCodeAt(it+1);if(ct>=56320&&ct<=57343){const vt=st-55296,xt=ct-56320;st=Dp(2,16)+vt*Dp(2,10)+xt,it++}}z.push(st)}return z}var Ff=8205,qd=[[Ff,1],[65038,2],[127995,5],[129456,4],[917536,96]],Kh,Ia=[127462,127487];function fh(E){var z;if(Kh===void 0){Kh={};for(const it of qd)for(let st=it[0];st<=it[0]+it[1]-1;st++)Kh[st]=!0}return(z=Kh[E])!=null?z:!1}function hv(E){return E>=Ia[0]&&E<=Ia[1]}function Vp(E){if(/^[\u0020-\u00FF]*$/.test(E))return E;const z=[],it=cv(E);let st=0;for(;st<it.length;){const ct=it[st++],vt=it[st];if(vt===Ff){const xt=st-1;for(st+=2;it[st]===Ff;)st+=2;z.push(String.fromCodePoint(...it.slice(xt,st-xt+1)))}else if(fh(vt)){const xt=st-1;for(;fh(it[st]);)st+=it[st]===Ff?2:1;z.push(String.fromCodePoint(...it.slice(xt,2*st-xt-1)))}else hv(ct)?(st+=1,z.push(String.fromCodePoint(...it.slice(st-2,2)))):z.push(String.fromCodePoint(ct))}return z}var dv=class{constructor(E){this.obeyspaces=!1,this.pos=0,this.s=Vp(E)}end(){return this.pos>=this.s.length}get(){return this.pos<this.s.length?this.s[this.pos++]:""}peek(){return this.s[this.pos]}match(E){const z=typeof this.s=="string"?E.exec(this.s.slice(this.pos)):E.exec(this.s.slice(this.pos).join(""));return z!=null&&z[0]?(this.pos+=z[0].length,z[0]):""}next(){if(this.end())return null;if(!this.obeyspaces&&this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]+/)||this.obeyspaces&&this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]/))return"<space>";const E=this.get();if(E==="\\"){if(!this.end()){let z=this.match(/^[a-zA-Z\*]+/);return z?this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]*/):z=this.get(),"\\"+z}}else{if(E==="{")return"<{>";if(E==="}")return"<}>";if(E==="^"){if(this.peek()==="^"){this.get();const z=this.match(/^(\^(\^(\^(\^[\da-f])?[\da-f])?[\da-f])?[\da-f])?[\da-f]{2}/);if(z)return String.fromCodePoint(Number.parseInt(z.slice(z.lastIndexOf("^")+1),16))}return E}else if(E==="#"){if(!this.end()){let z=!1;if(/[\d?@]/.test(this.peek())&&(z=!0,this.pos+1<this.s.length)){const it=this.s[this.pos+1];z=/[^\dA-Za-z]/.test(it)}return z?"#"+this.get():"#"}}else if(E==="$")return this.peek()==="$"?(this.get(),"<$$>"):"<$>"}return E}};function dn(E,z){var it,st,ct,vt;const xt=[];let Ot=E.next();if(Ot&&Ot!=="\\relax"){if(Ot==="\\noexpand")Ot=E.next(),Ot&&xt.push(Ot);else if(Ot==="\\obeyspaces")E.obeyspaces=!0;else if(Ot==="\\bgroup")xt.push("<{>");else if(Ot==="\\egroup")xt.push("<}>");else if(Ot==="\\string"){if(Ot=E.next(),Ot)if(Ot.startsWith("\\"))for(const Kt of Ot)xt.push(Kt==="\\"?"\\backslash":Kt);else Ot==="<{>"?xt.push("\\{"):Ot==="<space>"?xt.push("~"):Ot==="<}>"&&xt.push("\\}")}else if(Ot==="\\csname"){for(;E.peek()==="<space>";)E.next();let Kt="",Zt=!1,re=[];do{if(re.length===0)if(/^#[\d?@]$/.test(E.peek())){const Be=E.get().slice(1);re=ph((st=(it=z==null?void 0:z(Be))!=null?it:z==null?void 0:z("?"))!=null?st:"\\placeholder{}",z),Ot=re[0]}else Ot=E.next(),re=Ot?[Ot]:[];Zt=re.length===0,!Zt&&Ot==="\\endcsname"&&(Zt=!0,re.shift()),Zt||(Zt=Ot==="<$>"||Ot==="<$$>"||Ot==="<{>"||Ot==="<}>"||typeof Ot=="string"&&Ot.length>1&&Ot.startsWith("\\")),Zt||(Kt+=re.shift())}while(!Zt);Kt&&xt.push("\\"+Kt),xt.push(...re)}else if(Ot!=="\\endcsname")if(Ot.length>1&&Ot.startsWith("#")){const Kt=Ot.slice(1);xt.push(...ph((vt=(ct=z==null?void 0:z(Kt))!=null?ct:z==null?void 0:z("?"))!=null?vt:"\\placeholder{}",z))}else xt.push(Ot)}return xt}function ph(E,z=null){const it=[];let st="";for(const xt of E.toString().split(/\r?\n/)){st&&it.push(st),st=" ";const Ot=xt.match(/((?:\\%)|[^%])*/);Ot!==null&&it.push(Ot[0])}const ct=new dv(ze(it.join(""))),vt=[];do vt.push(...dn(ct,z));while(!ct.end());return vt}function Ts(E){let z="";const it=[];for(const st of E)st&&(z&&/^[a-zA-Z\*]/.test(st)&&it.push(z),it.push(st),/^\\[a-zA-Z]+\*?[\"\'][^\ ]+$/.test(st)&&it.push(" "),z=/\\[a-zA-Z]+\*?$/.test(st)?" ":"");return it.join("")}function Fa(E,...z){return console.assert(E.startsWith("\\")),z.length===0?E:Ts([E,...z.map(it=>`{${it}}`)])}function Hh(E){return Ts(E.map(z=>{var it;return(it={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[z])!=null?it:z}))}var Gm=class W1{constructor(z){W1._registry[z]=this}static createAtom(z,it,st){return W1._registry[z].createAtom(it,Pn(it,z),st)}static serialize(z,it){var st;if(!z||z.length===0)return"";if((st=it.skipStyles)!=null&&st){const ct=[];for(const vt of fv(z)){const xt=W1._registry[vt[0].mode];ct.push(...xt.serialize(vt,it))}return Ts(ct)}return Ts(pv(z,it))}static getFont(z,it,st){return W1._registry[z].getFont(it,st)}};Gm._registry={};var Hu=Gm;function fv(E){const z=[];let it=[],st="NONE";for(const ct of E)ct.type!=="first"&&(ct.mode!==st?(it.length>0&&z.push(it),it=[ct],st=ct.mode):it.push(ct));return it.length>0&&z.push(it),z}function qa(E,z){const it=[];let st=[],ct;for(const vt of E)if(vt.type!=="first"&&vt.style){let xt;z==="variant"?(xt=vt.style.variant,vt.style.variantStyle&&vt.style.variantStyle!=="up"&&(xt+="-"+vt.style.variantStyle)):xt=vt.style[z],xt===ct?st.push(vt):(st.length>0&&it.push(st),st=[vt],ct=xt)}return st.length>0&&it.push(st),it}function Rf(E,z){var it;const{parent:st}=E[0],ct=st==null?void 0:st.computedStyle.color,vt=[];for(const xt of fv(E)){const Ot=z.defaultMode;for(const Kt of qa(xt,"color")){const Zt=Kt[0].computedStyle,re=Hu._registry[Kt[0].mode].serialize(Kt,Nt(jt({},z),{defaultMode:Ot==="text"?"text":"math"}));!z.skipStyles&&Zt.color&&Zt.color!=="none"&&(!st||ct!==Zt.color)?vt.push(Fa("\\textcolor",(it=Zt.verbatimColor)!=null?it:Zt.color,Ts(re))):vt.push(Ts(re))}}return vt}function Ym(E,z){const{parent:it}=E[0],st=it==null?void 0:it.computedStyle.backgroundColor;return qa(E,"backgroundColor").map(ct=>{var vt;if(ct.length>0||ct[0].type!=="box"){const xt=ct[0].computedStyle;if(xt.backgroundColor&&xt.backgroundColor!=="none"&&(!it||st!==xt.backgroundColor))return Fa("\\colorbox",(vt=xt.verbatimBackgroundColor)!=null?vt:xt.backgroundColor,Ts(Rf(ct,Nt(jt({},z),{defaultMode:"text"}))))}return Ts(Rf(ct,z))})}function pv(E,z){if(E.length===0)return[];const{parent:it}=E[0],st=it==null?void 0:it.computedStyle.fontSize,ct=[];for(const vt of qa(E,"fontSize")){const xt=vt[0].computedStyle.fontSize,Ot=Ym(vt,z);Ot&&(xt&&xt!=="auto"&&(!it||st!==xt)?ct.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][xt],...Ot):ct.push(...Ot))}return ct}function _0(E){return E?{mord:"ord",mbin:"bin",mop:"op",mrel:"rel",mopen:"open",mclose:"close",mpunct:"punct",minner:"inner",spacing:"ignore",latex:"latex",composition:"inner",error:"inner",placeholder:"ord",supsub:"ignore"}[E]:void 0}function zf(E){if(E.length===0)return"ord";const z=_0(E[0].type),it=_0(E[E.length-1].type);return z&&z===it?z:"ord"}function jf(E,z){if(typeof E=="string")return E;if(typeof E=="number"){console.assert(Number.isFinite(E));const it=Math.ceil(100*E)/100;return it===0?"0":it.toString()+(z!=null?z:"")}return""}var Qr=class K2{constructor(z,it){var st,ct,vt,xt,Ot;if(typeof z=="number"?this.value=String.fromCodePoint(z):typeof z=="string"?this.value=z:Yt(z)?this.children=z.filter(Zt=>Zt!==null):z&&z instanceof K2&&(this.children=[z]),this.children)for(const Zt of this.children)Zt.parent=this;this.type=(st=it==null?void 0:it.type)!=null?st:"ignore",this.isSelected=(it==null?void 0:it.isSelected)===!0,it!=null&&it.caret&&(this.caret=it.caret),this.classes=(ct=it==null?void 0:it.classes)!=null?ct:"",this.isTight=(vt=it==null?void 0:it.isTight)!=null?vt:!1,it!=null&&it.attributes&&(this.attributes=it.attributes);let Kt=it==null?void 0:it.fontFamily;it!=null&&it.style&&this.value&&(Kt=(Ot=Hu.getFont((xt=it.mode)!=null?xt:"math",this,Nt(jt({variant:"normal"},it.style),{letterShapeStyle:it.letterShapeStyle})))!=null?Ot:void 0),Kt||(Kt="Main-Regular"),this._height=0,this._depth=0,this._width=0,this.hasExplicitWidth=!1,this.skew=0,this.italic=0,this.maxFontSize=0,this.scale=1,(it==null?void 0:it.maxFontSize)!==void 0&&(this.maxFontSize=it.maxFontSize),Up(this,Kt)}set atomID(z){z===void 0||z.length===0||(this.id=z)}selected(z){if(this.isSelected!==z&&(this.isSelected=z,this.children))for(const it of this.children)it.selected(z)}setStyle(z,it,st){if(it===void 0)return;const ct=jf(it,st);ct.length>0&&(this.cssProperties||(this.cssProperties={}),this.cssProperties[z]=ct)}setTop(z){Number.isFinite(z)&&Math.abs(z)>.01&&(this.cssProperties||(this.cssProperties={}),this.cssProperties.top=jf(z,"em"),this.height-=z,this.depth+=z)}get left(){var z;return(z=this.cssProperties)!=null&&z["margin-left"]?Number.parseFloat(this.cssProperties["margin-left"]):0}set left(z){Number.isFinite(z)&&(z===0?this.cssProperties&&delete this.cssProperties["margin-left"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-left"]=jf(z,"em")))}set right(z){Number.isFinite(z)&&(z===0?this.cssProperties&&delete this.cssProperties["margin-right"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-right"]=jf(z,"em")))}set bottom(z){Number.isFinite(z)&&(z===0?this.cssProperties&&delete this.cssProperties["margin-bottom"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-bottom"]=jf(z,"em")))}get width(){return this._width*this.scale}set width(z){this._width=z,this.hasExplicitWidth=!0}set softWidth(z){}get height(){return this._height*this.scale}set height(z){this._height=z}get depth(){return this._depth*this.scale}set depth(z){this._depth=z}wrap(z){const it=z.parent;if(!it)return this;z.isPhantom&&this.setStyle("opacity",0);const st=z.color;st&&st!==it.color&&this.setStyle("color",st);let ct=z.backgroundColor;this.isSelected&&(ct=Gn(ct)),ct&&ct!==it.backgroundColor&&(this.setStyle("background-color",ct),this.setStyle("display","inline-block"));const vt=z.scalingFactor;return this.scale=vt,this.skew*=vt,this.italic*=vt,this}toMarkup(){var z,it,st,ct;let vt=(z=this.value)!=null?z:"";if(this.children)for(const Fn of this.children)vt+=Fn.toMarkup();let xt="";if(this.svgBody)xt=$d(this.svgBody);else if(this.svgOverlay){xt='<span style="',xt+="display: inline-block;",xt+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,xt+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,xt+='">',xt+=vt,xt+="</span>",xt+='<svg style="position:absolute;overflow:visible;',xt+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const Fn=(it=this.cssProperties)==null?void 0:it.padding;Fn?(xt+=`top:${Fn};`,xt+=`left:${Fn};`,xt+=`width:calc(100% - 2 * ${Fn} );`):xt+="top:0;left:0;width:100%;",xt+="z-index:2;",xt+='"',this.svgStyle&&(xt+=this.svgStyle),xt+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,xt+=`>${this.svgOverlay}</svg>`}let Ot="";const Kt=this.classes.split(" ");Kt.push((st={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?st:""),this.caret==="latex"&&Kt.push("ML__latex-caret"),this.isSelected&&Kt.push("ML__selected");const Zt=Kt.length===1?Kt[0]:Kt.filter((Fn,ei,hr)=>Fn.length>0&&hr.indexOf(Fn)===ei).join(" ");if(Zt.length>0&&(Ot+=` class="${Zt}"`),this.id&&(Ot+=` data-atom-id=${this.id}`),this.cssId&&(Ot+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(Ot+=" "+Object.keys(this.attributes).map(Fn=>`${Fn}="${this.attributes[Fn]}"`).join(" ")),this.htmlData){const Fn=this.htmlData.split(",");for(const ei of Fn){const hr=ei.match(/([^=]+)=(.+$)/);if(hr){const Gr=hr[1].trim().replace(/ /g,"-");Gr&&(Ot+=` data-${Gr}="${hr[2]}" `)}else{const Gr=ei.trim().replace(/ /g,"-");Gr&&(Ot+=` data-${Gr} `)}}}const re=(ct=this.cssProperties)!=null?ct:{};this.hasExplicitWidth&&re.width===void 0&&(re.width=`${Math.ceil(this._width*100)/100}em`);const Be=Object.keys(re).map(Fn=>`${Fn}:${re[Fn]}`);if(this.scale!==void 0&&this.scale!==1&&(vt.length>0||xt.length>0)&&Be.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const Fn=this.htmlStyle.split(";");let ei="";for(const hr of Fn){const Gr=hr.match(/([^=]+):(.+$)/);if(Gr){const $i=Gr[1].trim().replace(/ /g,"-");$i&&(ei+=`${$i}:${Gr[2]};`)}}ei&&(Ot+=` style="${ei}"`)}Be.length>0&&(Ot+=` style="${Be.join(";")}"`);let ln="";return Ot.length>0||xt.length>0?ln=`<span${Ot}>${vt}${xt}</span>`:ln=vt,this.caret==="text"?ln+='<span class="ML__text-caret"></span>':this.caret==="math"&&(ln+='<span class="ML__caret"></span>'),ln}tryCoalesceWith(z){if(this.svgBody||!this.value||z.svgBody||!z.value)return!1;const it=this.children&&this.children.length>0,st=z.children&&z.children.length>0;if(it||st)return!1;if(z.cssProperties||this.cssProperties){for(const Kt of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(z.cssProperties&&Kt in z.cssProperties||this.cssProperties&&Kt in this.cssProperties)return!1}const ct=this.cssProperties?Object.keys(this.cssProperties).length:0,vt=z.cssProperties?Object.keys(z.cssProperties).length:0;if(ct!==vt)return!1;if(ct>0){for(const Kt of Object.keys(this.cssProperties))if(this.cssProperties[Kt]!==z.cssProperties[Kt])return!1}const xt=this.classes.trim().replace(/\s+/g," ").split(" "),Ot=z.classes.trim().replace(/\s+/g," ").split(" ");if(xt.length!==Ot.length)return!1;xt.sort(),Ot.sort();for(const[Kt,Zt]of xt.entries())if(Zt==="vertical-separator"||Zt!==Ot[Kt])return!1;return this.value+=z.value,this.height=Math.max(this.height,z.height),this.depth=Math.max(this.depth,z.depth),this._width=this._width+z._width,this.maxFontSize=Math.max(this.maxFontSize,z.maxFontSize),this.italic=z.italic,!0}};function Cu(E){if(!E||E.length===0)return[];E[0].children=Cu(E[0].children);const z=[E[0]];for(let it=1;it<E.length;it++)z[z.length-1].tryCoalesceWith(E[it])||(E[it].children=Cu(E[it].children),z.push(E[it]));return z}function _h(E){return E.children&&(E.children=Cu(E.children)),E}function Kf(E,z){if(!E)return new Qr(null,z);const it=new Qr(null,{classes:"ML__strut",type:"ignore"});it.setStyle("height",Math.max(0,E.height),"em");const st=[it];if(E.depth!==0){const ct=new Qr(null,{classes:"ML__strut--bottom",type:"ignore"});ct.setStyle("height",E.height+E.depth,"em"),ct.setStyle("vertical-align",-E.depth,"em"),st.push(ct)}return st.push(E),new Qr(st,Nt(jt({},z),{type:"lift"}))}function uc(E){const z=lc(E)/2,it=new Qr(null,{maxFontSize:0});return it.height=z+.166,it.depth=z-.166,it.svgBody=E,it}function Up(E,z){var it;if(E.type==="latex"){E.height=.9,E.depth=.2,E._width=1;return}if(E.value){E.height=-1/0,E.depth=-1/0,E._width=0,E.skew=-1/0,E.italic=-1/0;for(let st=0;st<E.value.length;st++){const ct=dh(E.value.codePointAt(st),z);E.height=Math.max(E.height,ct.height),E.depth=Math.max(E.depth,ct.depth),E._width+=ct.width,E.skew=ct.skew,E.italic=ct.italic}return}if(E.children&&E.children.length>0){let st=-1/0,ct=-1/0,vt=0;for(const xt of E.children)xt.height>st&&(st=xt.height),xt.depth>ct&&(ct=xt.depth),vt=Math.max(vt,(it=xt.maxFontSize)!=null?it:0);E.height=st,E.depth=ct,E._width=E.children.reduce((xt,Ot)=>xt+Ot.width,0),E.maxFontSize=vt}}function W0(E){if("individualShift"in E){const z=E.individualShift;let it=z[0];const st=[it],ct=-it.shift-it.box.depth;let vt=ct;for(let xt=1;xt<z.length;xt++){const Ot=z[xt],Kt=-Ot.shift-vt-Ot.box.depth,Zt=Kt-(it.box.height+it.box.depth);vt=vt+Kt,st.push(Zt),st.push(Ot),it=Ot}return[st,ct]}if("top"in E){let z=E.top;for(const it of E.children)z-=typeof it=="number"?it:it.box.height+it.box.depth;return[E.children,z]}else{if("bottom"in E)return[E.children,-E.bottom];if("firstBaseline"in E){const z=E.firstBaseline[0];if(typeof z=="number")throw new Error("First child must be an element.");return[E.firstBaseline,-z.box.depth]}else if("shift"in E){const z=E.children[0];if(typeof z=="number")throw new Error("First child must be an element.");return[E.children,-z.box.depth-E.shift]}}return[null,0]}function Zp(E){var z;const[it,st]=W0(E);if(!it)return[[],0,0];const ct=new Qr(null,{classes:"pstrut"});let vt=0;for(const ei of it)if(typeof ei!="number"){const hr=ei.box;vt=Math.max(vt,hr.maxFontSize,hr.height)}vt+=2,ct.height=vt,ct.setStyle("height",vt,"em");const xt=[];let Ot=st,Kt=st,Zt=st,re=0;for(const ei of it){if(typeof ei=="number")Zt+=ei;else{const hr=ei.box,Gr=(z=ei.classes)!=null?z:[],$i=new Qr([ct,hr],{classes:Gr.join(" "),style:ei.style});hr.setStyle("height",hr.height+hr.depth,"em"),hr.setStyle("display","inline-block"),$i.setStyle("top",-vt-Zt-hr.depth,"em"),ei.marginLeft&&$i.setStyle("margin-left",ei.marginLeft,"em"),ei.marginRight&&$i.setStyle("margin-right",ei.marginRight,"em"),xt.push($i),Zt+=hr.height+hr.depth,re=Math.max(re,$i.width)}Ot=Math.min(Ot,Zt),Kt=Math.max(Kt,Zt)}xt.forEach(ei=>{ei.softWidth=re});const Be=new Qr(xt,{classes:"vlist"});if(Be.softWidth=re,Be.height=Kt,Be.setStyle("height",Kt,"em"),Ot>=0)return[[new Qr(Be,{classes:"vlist-r"})],Kt,-Ot];const ln=new Qr(new Qr(null),{classes:"vlist"});ln.height=-Ot,ln.setStyle("height",-Ot,"em");const Fn=new Qr(8203,{classes:"vlist-s",maxFontSize:0});return Fn.softWidth=0,Fn.height=0,Fn.depth=0,[[new Qr([Be,Fn],{classes:"vlist-r"}),new Qr(ln,{classes:"vlist-r"})],Kt,-Ot]}var sa=class extends Qr{constructor(E,z){var it;const[st,ct,vt]=Zp(E);super(st.length===1?st[0]:st,{type:z==null?void 0:z.type,classes:((it=z==null?void 0:z.classes)!=null?it:"")+" vlist-t"+(st.length===2?" vlist-t2":"")}),this.height=ct,this.depth=vt,this.softWidth=st.reduce((xt,Ot)=>Math.max(xt,Ot.width),0)}};function Xm(E,z){var it,st,ct,vt,xt;const Ot=E.metrics,Kt=new Qr(z.base),Zt=(it=z.baseShift)!=null?it:0,re=(st=z.slant)!=null?st:0;let Be=0,ln=0;z.above&&(Be=(ct=z.aboveShift)!=null?ct:Math.max(Ot.bigOpSpacing1,Ot.bigOpSpacing3-z.above.depth)),z.below&&(ln=(vt=z.belowShift)!=null?vt:Math.max(Ot.bigOpSpacing2,Ot.bigOpSpacing4-z.below.height));let Fn=null;if(z.below&&z.above){const ei=Ot.bigOpSpacing5+z.below.height+z.below.depth+ln+Kt.depth+Zt;Fn=new sa({bottom:ei,children:[Ot.bigOpSpacing5,{box:z.below,marginLeft:-re,classes:["ML__center"]},ln,{box:Kt,classes:["ML__center"]},Be,{box:z.above,marginLeft:re,classes:["ML__center"]},Ot.bigOpSpacing5]}).wrap(E)}else if(z.below&&!z.above)Fn=new sa({top:Kt.height-Zt,children:[Ot.bigOpSpacing5,{box:z.below,marginLeft:-re,classes:["ML__center"]},ln,{box:Kt,classes:["ML__center"]}]}).wrap(E);else if(!z.below&&z.above){const ei=Kt.depth+Zt;Fn=new sa({bottom:ei,children:[{box:Kt,classes:["ML__center"]},Be,{box:z.above,marginLeft:re,classes:["ML__center"]},Ot.bigOpSpacing5]}).wrap(E)}else{const ei=Kt.depth+Zt;Fn=new sa({bottom:ei,children:[{box:Kt},Ot.bigOpSpacing5]}).wrap(E)}return new Qr(Fn,{type:(xt=z.type)!=null?xt:"op"})}var Gp=7,Mu=6,Wh=5,Vh=4,tf=3,Wl=2,kl=1,tu=0,wa=class{constructor(E,z,it){this.id=E,this.sizeDelta=z,this.cramped=it;const st={"-4":2,"-3":1,0:0}[z];this.metrics=Object.keys(sl).reduce((ct,vt)=>Nt(jt({},ct),{[vt]:sl[vt][st]}),{})}getFontSize(E){return Math.max(1,E+this.sizeDelta)}get sup(){return cc[[tu,kl,tu,kl,Wl,tf,Wl,tf][this.id]]}get sub(){return cc[[tu,tu,tu,tu,Wl,Wl,Wl,Wl][this.id]]}get fracNum(){return cc[[tu,kl,tu,kl,Wl,tf,Vh,Wh][this.id]]}get fracDen(){return cc[[tu,tu,tu,tu,Wl,Wl,Vh,Vh][this.id]]}get cramp(){return cc[[tu,tu,Wl,Wl,Vh,Vh,Mu,Mu][this.id]]}get isTight(){return this.sizeDelta<0}},Uh={7:new wa(Gp,0,!1),6:new wa(Mu,0,!0),5:new wa(Wh,0,!1),4:new wa(Vh,0,!0),3:new wa(tf,-3,!1),2:new wa(Wl,-3,!0),1:new wa(kl,-4,!1),0:new wa(tu,-4,!0)},cc=Nt(jt({},Uh),{displaystyle:Uh[Gp],textstyle:Uh[Wh],scriptstyle:Uh[tf],scriptscriptstyle:Uh[kl]});function Zh(E,z){var it;if(!E)return 0;const st={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:uh,bp:803/800,dd:1238/1157,pc:12,in:72.27,mu:10/18}[(it=E.unit)!=null?it:"pt"];if(Number.isFinite(z)){const ct=Dp(10,z);return Math.round(E.dimension/uh*st*ct)/ct}return E.dimension*st}function ef(E,z){if(E===null)return 0;const it=Zh(E)/uh;if(Number.isFinite(z)){const st=Dp(10,z);return Math.round(it*st)/st}return it}function wd(E){var z;return`${E.dimension}${(z=E.unit)!=null?z:"pt"}`}function Jm(E){let z=wd(E.glue);return E.grow&&E.grow.dimension!==0&&(z+=` plus ${wd(E.grow)}`),E.shrink&&E.shrink.dimension!==0&&(z+=` minus ${wd(E.shrink)}`),z}function fl(E){var z,it;if(E==null)return null;let st="";if("dimension"in E&&(st=`${E.dimension}${(z=E.unit)!=null?z:"pt"}`),"glue"in E&&(st=Jm(E)),"number"in E)if(!("base"in E)||E.base==="decimal")st=Number(E.number).toString();else if(E.base==="alpha")st=`\`${String.fromCodePoint(E.number)}`;else{const ct=Math.round(E.number)>>>0;E.base==="hexadecimal"?(st=Number(ct).toString(16).toUpperCase(),ct<=255?st=st.padStart(2,"0"):ct<=65535?st=st.padStart(4,"0"):ct<=16777215?st=st.padStart(6,"0"):st=st.padStart(8,"0"),st=`"${st}`):E.base==="octal"&&(st=Number(ct).toString(8),ct<=63?st=st.padStart(2,"0"):ct<=30583?st=st.padStart(4,"0"):st=st.padStart(8,"0"),st=`'${st}`)}return"register"in E&&("factor"in E&&(E.factor===-1?st="-":E.factor!==1&&(st=Number(E.factor).toString())),"global"in E&&E.global&&(st+="\\global"),st+=`\\${E.register}`),"string"in E&&(st=E.string),(it=E.relax)!=null&&it&&(st+="\\relax"),st}function Lc(E,z){return E==null?null:"number"in E?Nt(jt({},E),{number:E.number*z}):"register"in E?"factor"in E&&E.factor?Nt(jt({},E),{factor:E.factor*z}):Nt(jt({},E),{factor:z}):"dimension"in E?Nt(jt({},E),{dimension:E.dimension*z}):"glue"in E?E.shrink&&E.grow?{glue:Lc(E.glue,z),shrink:Lc(E.shrink,z),grow:Lc(E.grow,z)}:E.shrink?{glue:Lc(E.glue,z),shrink:Lc(E.shrink,z)}:E.grow?{glue:Lc(E.glue,z),grow:Lc(E.grow,z)}:{glue:Lc(E.glue,z)}:null}var mh={"p@":{dimension:1},"z@":{dimension:0},maxdimen:{dimension:16383.99999},hfuzz:{dimension:.1},vfuzz:{dimension:.1},overfullrule:{dimension:5},hsize:{dimension:6.5,unit:"in"},vsize:{dimension:8.9,unit:"in"},parindent:{dimension:20},maxdepth:{dimension:4},splitmaxdepth:{register:"maxdimen"},boxmaxdepth:{register:"maxdimen"},delimitershortfall:{dimension:5},nulldelimiterspace:{dimension:1.2,unit:"pt"},scriptspace:{dimension:.5},topskip:{dimension:10},splittopskip:{dimension:10},normalbaselineskip:{dimension:12},normallineskip:{dimension:1},normallineskiplimit:{dimension:0},jot:{dimension:3},doublerulesep:{dimension:2},arrayrulewidth:{dimension:.4},arraycolsep:{dimension:5},fboxsep:{dimension:3},fboxrule:{dimension:.4},"z@skip":{glue:{dimension:0},shrink:{dimension:0},grow:{dimension:0}},hideskip:{glue:{dimension:-1e3},grow:{dimension:1,unit:"fill"}},"@flushglue":{glue:{dimension:0},grow:{dimension:1,unit:"fill"}},parskip:{glue:{dimension:0},grow:{dimension:1}},abovedisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},abovedisplayshortskip:{glue:{dimension:0},grow:{dimension:3}},belowdisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},belowdisplayshortskip:{glue:{dimension:7},grow:{dimension:3},shrink:{dimension:4}},parfillskip:{glue:{dimension:0},grow:{dimension:1,unit:"fil"}},thinmuskip:{glue:{dimension:3,unit:"mu"}},medmuskip:{glue:{dimension:4,unit:"mu"},grow:{dimension:2,unit:"mu"},shrink:{dimension:4,unit:"mu"}},thickmuskip:{glue:{dimension:5,unit:"mu"},grow:{dimension:5,unit:"mu"}},smallskipamount:{glue:{dimension:3},grow:{dimension:1},shrink:{dimension:1}},medskipamount:{glue:{dimension:6},grow:{dimension:2},shrink:{dimension:3}},bigskipamount:{glue:{dimension:12},grow:{dimension:2},shrink:{dimension:4}},pretolerance:100,tolerance:200,hbadness:1e3,vbadness:1e3,linepenalty:10,hyphenpenalty:50,exhyphenpenalty:50,binoppenalty:700,relpenalty:500,clubpenalty:150,widowpenalty:150,displaywidowpenalty:50,brokenpenalty:100,predisplaypenalty:1e4,doublehyphendemerits:1e4,finalhyphendemerits:5e3,adjdemerits:1e4,tracinglostchars:1,uchyph:1,delimiterfactor:901,defaulthyphenchar:"\\-",defaultskewchar:-1,newlinechar:-1,showboxbreadth:5,showboxdepth:3,errorcontextlines:5,interdisplaylinepenalty:100,interfootnotelinepenalty:100,baselineSkip:1.2,arraystretch:1,month:new Date().getMonth()+1,day:new Date().getDate(),year:new Date().getFullYear()};function Sd(){return jt({},mh)}function Hf(){return{registers:Sd(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:pe.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:en,backgroundColorMap:ie,getMacro:E=>Ci(E,Sn())}}var Ws=class H2{constructor(z,it){var st,ct,vt,xt,Ot,Kt,Zt,re,Be,ln,Fn,ei,hr,Gr,$i;let Nr;z!=null&&z.parent?(this.parent=z.parent,Nr=z.parent,this.registers={}):(Nr=jt(jt({},Hf()),(st=z==null?void 0:z.from)!=null?st:{}),this.registers=Nr.registers),Nr.atomIdsSettings&&(this.atomIdsSettings=jt({},Nr.atomIdsSettings)),this.renderPlaceholder=Nr.renderPlaceholder,this.isPhantom=(xt=(vt=z==null?void 0:z.isPhantom)!=null?vt:(ct=this.parent)==null?void 0:ct.isPhantom)!=null?xt:!1,this.letterShapeStyle=Nr.letterShapeStyle,this.minFontScale=Nr.minFontScale,it!=null&&it.color&&it.color!=="none"?this.color=it.color:this.color=(Kt=(Ot=this.parent)==null?void 0:Ot.color)!=null?Kt:"",it!=null&&it.backgroundColor&&it.backgroundColor!=="none"?this.backgroundColor=it.backgroundColor:this.backgroundColor=(re=(Zt=this.parent)==null?void 0:Zt.backgroundColor)!=null?re:"",it!=null&&it.fontSize&&it.fontSize!=="auto"&&it.fontSize!==((Be=this.parent)==null?void 0:Be.size)?this.size=it.fontSize:this.size=(Fn=(ln=this.parent)==null?void 0:ln.size)!=null?Fn:hh;let eo=(hr=(ei=this.parent)==null?void 0:ei.mathstyle)!=null?hr:cc.displaystyle;if(typeof(z==null?void 0:z.mathstyle)=="string"){if(Nr instanceof H2)switch(z.mathstyle){case"cramp":eo=eo.cramp;break;case"superscript":eo=eo.sup;break;case"subscript":eo=eo.sub;break;case"numerator":eo=eo.fracNum;break;case"denominator":eo=eo.fracDen;break}switch(z.mathstyle){case"textstyle":eo=cc.textstyle;break;case"displaystyle":eo=cc.displaystyle;break;case"scriptstyle":eo=cc.scriptstyle;break;case"scriptscriptstyle":eo=cc.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=eo,this.smartFence=Nr.smartFence,this.placeholderSymbol=Nr.placeholderSymbol,this.colorMap=(Gr=Nr.colorMap)!=null?Gr:zr=>zr,this.backgroundColorMap=($i=Nr.backgroundColorMap)!=null?$i:zr=>zr,this.getMacro=Nr.getMacro,console.assert(this.parent!==void 0||this.registers!==void 0)}makeID(){if(!this.atomIdsSettings)return;if(this.atomIdsSettings.overrideID)return this.atomIdsSettings.overrideID;if(typeof this.atomIdsSettings.seed!="number")return`${Date.now().toString(36).slice(-2)}${Math.floor(Math.random()*1e5).toString(36)}`;const z=this.atomIdsSettings.seed.toString(36);return this.atomIdsSettings.seed+=1,z}scale(z){return z*this.effectiveFontSize}get scalingFactor(){return this.parent?this.effectiveFontSize/this.parent.effectiveFontSize:1}get isDisplayStyle(){return this.mathstyle.id===Gp||this.mathstyle.id===Mu}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(Qd[Math.max(1,this.size+this.mathstyle.sizeDelta)],this.minFontScale)}getRegister(z){var it;if((it=this.registers)!=null&&it[z])return this.registers[z];if(this.parent)return this.parent.getRegister(z)}getRegisterAsNumber(z){const it=this.getRegister(z);if(typeof it=="number")return it;if(typeof it=="string")return Number(it)}getRegisterAsGlue(z){var it;if((it=this.registers)!=null&&it[z]){const st=this.registers[z];return typeof st=="object"&&"glue"in st?st:typeof st=="object"&&"dimension"in st?{glue:{dimension:st.dimension}}:typeof st=="number"?{glue:{dimension:st}}:void 0}if(this.parent)return this.parent.getRegisterAsGlue(z)}getRegisterAsEm(z,it){return ef(this.getRegisterAsDimension(z),it)}getRegisterAsDimension(z){var it;if((it=this.registers)!=null&&it[z]){const st=this.registers[z];return typeof st=="object"&&"glue"in st?st.glue:typeof st=="object"&&"dimension"in st?st:typeof st=="number"?{dimension:st}:void 0}if(this.parent)return this.parent.getRegisterAsDimension(z)}setRegister(z,it){if(it===void 0){delete this.registers[z];return}this.registers[z]=it}evaluate(z){if(!z||!("register"in z))return z;let it=this;if("global"in z&&z.global)for(;it.parent;)it=it.parent;let st=1;"factor"in z&&z.factor!==1&&z.factor!==void 0&&(st=z.factor);const ct=it.getRegister(z.register);if(ct===void 0)return;if(typeof ct=="string")return{string:Number(ct).toString()+ct};if(typeof ct=="number")return{number:st*ct};const vt=it.evaluate(ct);if(vt!==void 0)return"string"in vt?{string:Number(ct).toString()+vt.string}:"number"in vt?{number:st*vt.number}:"dimension"in vt?Nt(jt({},vt),{dimension:st*vt.dimension}):"glue"in vt?Nt(jt({},vt),{glue:Nt(jt({},vt.glue),{dimension:st*vt.glue.dimension}),shrink:vt.shrink?Nt(jt({},vt.shrink),{dimension:st*vt.shrink.dimension}):void 0,grow:vt.grow?Nt(jt({},vt.grow),{dimension:st*vt.grow.dimension}):void 0}):z}toDimension(z){const it=this.evaluate(z);return it===void 0?null:"dimension"in it?it:"glue"in it?it.glue:"number"in it?{dimension:it.number}:null}toEm(z,it){if(z===null)return 0;const st=this.toDimension(z);return st===null?0:Zh(st,it)/uh}toNumber(z){if(z===null)return null;const it=this.evaluate(z);return it===void 0?null:"number"in it?it.number:"dimension"in it?it.dimension:"glue"in it?it.glue.dimension:"string"in it?Number(it.string):null}toColor(z){var it,st;if(z===null)return null;const ct=this.evaluate(z);return ct===void 0?null:"string"in ct?(st=(it=this.colorMap)==null?void 0:it.call(this,ct.string))!=null?st:ct.string:null}toBackgroundColor(z){var it,st;if(z===null)return null;const ct=this.evaluate(z);return ct===void 0?null:"string"in ct?(st=(it=this.backgroundColorMap)==null?void 0:it.call(this,ct.string))!=null?st:ct.string:null}},Gh=["body","above","below","superscript","subscript"];function hc(E){return typeof E=="string"&&Gh.includes(E)}function _f(E){return E!==void 0&&Array.isArray(E)&&E.length===2}var Mr=class R0{constructor(z){var it,st,ct,vt,xt,Ot;this.type=z.type,typeof z.value=="string"&&(this.value=z.value),this.command=(st=(it=z.command)!=null?it:this.value)!=null?st:"",this.mode=(ct=z.mode)!=null?ct:"math",z.isFunction&&(this.isFunction=!0),z.limits&&(this.subsupPlacement=z.limits),this.style=jt({},z.style),this.displayContainsHighlight=(vt=z.displayContainsHighlight)!=null?vt:!1,this.captureSelection=(xt=z.captureSelection)!=null?xt:!1,this.skipBoundary=(Ot=z.skipBoundary)!=null?Ot:!1,z.verbatimLatex!==void 0&&z.verbatimLatex!==null&&(this.verbatimLatex=z.verbatimLatex),z.args&&(this.args=z.args),z.body&&(this.body=z.body),this._changeCounter=0}static createBox(z,it,st){var ct;if(!it)return null;const vt=Qm(it),xt=[];for(const Kt of vt){const Zt=Kt[0].style,re=Uc(z,Kt,{style:{color:Zt.color,backgroundColor:Zt.backgroundColor,fontSize:Zt.fontSize}});re&&xt.push(re)}if(xt.length===0)return null;const Ot=((ct=st==null?void 0:st.classes)!=null?ct:"").trim();return xt.length===1&&!Ot&&!(st!=null&&st.type)?xt[0].wrap(z):new Qr(xt,{classes:Ot,type:st==null?void 0:st.type}).wrap(z)}static serialize(z,it){return Hu.serialize(z,it)}static commonAncestor(z,it){if(z===it||z.parent===it.parent)return z.parent;const st=new WeakSet;let{parent:ct}=z;for(;ct;)st.add(ct),ct=ct.parent;for(ct=it.parent;ct;){if(st.has(ct))return ct;ct=ct.parent}console.assert(!!ct)}static fromJson(z){return typeof z=="string"?new R0({type:"mord",value:z,mode:"math"}):new R0(z)}get latexMode(){return this.mode==="math"?"math":"text"}toJson(){const z={};if(this.type&&(z.type=this.type),this.mode!=="math"&&(z.mode=this.mode),this.command&&this.command!==this.value&&(z.command=this.command),this.value!==void 0&&(z.value=this.value),this.style&&Object.keys(this.style).length>0&&(z.style=jt({},this.style)),this.verbatimLatex!==void 0&&(z.verbatimLatex=this.verbatimLatex),this.subsupPlacement&&(z.subsupPlacement=this.subsupPlacement),this.explicitSubsupPlacement&&(z.explicitSubsupPlacement=!0),this.isFunction&&(z.isFunction=!0),this.displayContainsHighlight&&(z.displayContainsHighlight=!0),this.isExtensibleSymbol&&(z.isExtensibleSymbol=!0),this.skipBoundary&&(z.skipBoundary=!0),this.captureSelection&&(z.captureSelection=!0),this.args&&(z.args=$m(this.args)),this._branches)for(const it of Object.keys(this._branches))this._branches[it]&&(z[it]=this._branches[it].filter(st=>st.type!=="first").map(st=>st.toJson()));return z.type==="mord"&&Object.keys(z).length===2&&"value"in z?z.value:z}get changeCounter(){return this.parent?this.parent.changeCounter:this._changeCounter}set isDirty(z){if(z){this.parent||this._changeCounter++,"verbatimLatex"in this&&(this.verbatimLatex=void 0),this._children=void 0;let{parent:it}=this;for(;it;)it.parent||it._changeCounter++,"verbatimLatex"in it&&(it.verbatimLatex=void 0),it._children=void 0,it=it.parent}}_serialize(z){if(!(z.expandMacro||z.skipStyles||z.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const it=Pn(this.command,this.mode);return it!=null&&it.serialize?it.serialize(this,z):this.body&&this.command?Ts([Fa(this.command,this.bodyToLatex(z)),this.supsubToLatex(z)]):this.body?Ts([this.bodyToLatex(z),this.supsubToLatex(z)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(z){var it;return Hu.serialize(this.body,Nt(jt({},z),{defaultMode:(it=z.defaultMode)!=null?it:this.latexMode}))}aboveToLatex(z){return Hu.serialize(this.above,z)}belowToLatex(z){return Hu.serialize(this.below,z)}supsubToLatex(z){let it="";if(z=Nt(jt({},z),{defaultMode:"math"}),this.branch("subscript")!==void 0){const st=Hu.serialize(this.subscript,z);st.length===0?it+="_{}":st.length===1?/^[0-9]$/.test(st)?it+=`_${st}`:it+=`_{${st}}`:it+=`_{${st}}`}if(this.branch("superscript")!==void 0){const st=Hu.serialize(this.superscript,z);st.length===0?it+="^{}":st.length===1?st==="\u2032"?it+="^\\prime ":st==="\u2033"?it+="^\\doubleprime ":/^[0-9]$/.test(st)?it+=`^${st}`:it+=`^{${st}}`:it+=`^{${st}}`}return it}get treeDepth(){let z=1,it=this.parent;for(;it;)it=it.parent,z+=1;return z}get inCaptureSelection(){let z=this;for(;z;){if(z.captureSelection)return!0;z=z.parent}return!1}get parentPrompt(){let z=this.parent;for(;z;){if(z.type==="prompt"&&!z.captureSelection)return z;z=z.parent}return null}branch(z){if(hc(z)&&this._branches)return this._branches[z]}get branches(){if(!this._branches)return[];const z=[];for(const it of Gh)this._branches[it]&&z.push(it);return z}createBranch(z){return console.assert(hc(z)),hc(z)?(this._branches?this._branches[z]||(this._branches[z]=[this.makeFirstAtom(z)]):this._branches={[z]:[this.makeFirstAtom(z)]},this.isDirty=!0,this._branches[z]):[]}get row(){return _f(this.parentBranch)?this.parentBranch[0]:-1}get col(){return _f(this.parentBranch)?this.parentBranch[1]:-1}get body(){var z;return(z=this._branches)==null?void 0:z.body}set body(z){this.setChildren(z,"body")}get superscript(){var z;return(z=this._branches)==null?void 0:z.superscript}set superscript(z){this.setChildren(z,"superscript")}get subscript(){var z;return(z=this._branches)==null?void 0:z.subscript}set subscript(z){this.setChildren(z,"subscript")}get above(){var z;return(z=this._branches)==null?void 0:z.above}set above(z){this.setChildren(z,"above")}get below(){var z;return(z=this._branches)==null?void 0:z.below}set below(z){this.setChildren(z,"below")}get computedStyle(){var z,it;const st=typeof this.style.verbatimColor=="string",ct=typeof this.style.verbatimBackgroundColor=="string",vt=jt(jt({},(it=(z=this.parent)==null?void 0:z.computedStyle)!=null?it:{}),this.style);return delete vt.variant,delete vt.variantStyle,ct||delete vt.verbatimBackgroundColor,st||delete vt.verbatimColor,vt}applyStyle(z){this.isDirty=!0,this.style=jt(jt({},this.style),z),this.style.fontFamily==="none"&&delete this.style.fontFamily,this.style.fontShape==="auto"&&delete this.style.fontShape,this.style.fontSeries==="auto"&&delete this.style.fontSeries,this.style.color==="none"&&(delete this.style.color,delete this.style.verbatimColor),this.style.backgroundColor==="none"&&(delete this.style.backgroundColor,delete this.style.verbatimBackgroundColor),this.style.fontSize==="auto"&&delete this.style.fontSize;for(const it of this.children)it.applyStyle(z)}getInitialBaseElement(){var z,it,st;return this.hasEmptyBranch("body")?this:(console.assert(((z=this.body)==null?void 0:z[0].type)==="first"),(st=(it=this.body[1])==null?void 0:it.getInitialBaseElement())!=null?st:this)}getFinalBaseElement(){return this.hasEmptyBranch("body")?this:this.body[this.body.length-1].getFinalBaseElement()}isCharacterBox(){return this.type==="leftright"||this.type==="genfrac"||this.type==="subsup"||this.type==="delim"||this.type==="array"||this.type==="surd"?!1:this.getFinalBaseElement().type==="mord"}hasEmptyBranch(z){const it=this.branch(z);return it?(console.assert(it.length>0),console.assert(it[0].type==="first"),it.length===1):!0}setChildren(z,it){var st;if(!z||(console.assert(hc(it)),!hc(it)))return;console.assert(((st=z[0])==null?void 0:st.type)!=="first");const ct=[this.makeFirstAtom(it),...z];this._branches?this._branches[it]=ct:this._branches={[it]:ct};for(const vt of z)vt.parent=this,vt.parentBranch=it;this.isDirty=!0}makeFirstAtom(z){const it=new R0({type:"first",mode:this.mode});return it.parent=this,it.parentBranch=z,it}addChild(z,it){console.assert(z.type!=="first"),this.createBranch(it).push(z),this.isDirty=!0,z.parent=this,z.parentBranch=it}addChildBefore(z,it){console.assert(it.parentBranch!==void 0);const st=this.createBranch(it.parentBranch);st.splice(st.indexOf(it),0,z),this.isDirty=!0,z.parent=this,z.parentBranch=it.parentBranch}addChildAfter(z,it){console.assert(it.parentBranch!==void 0);const st=this.createBranch(it.parentBranch);st.splice(st.indexOf(it)+1,0,z),this.isDirty=!0,z.parent=this,z.parentBranch=it.parentBranch}addChildren(z,it){const st=this.createBranch(it);for(const ct of z)ct.parent=this,ct.parentBranch=it,st.push(ct);this.isDirty=!0}addChildrenAfter(z,it){console.assert(z.length===0||z[0].type!=="first"),console.assert(it.parentBranch!==void 0);const st=this.createBranch(it.parentBranch);st.splice(st.indexOf(it)+1,0,...z),this.isDirty=!0;for(const ct of z)ct.parent=this,ct.parentBranch=it.parentBranch;return z[z.length-1]}removeBranch(z){const it=this.branch(z);if(hc(z)&&(this._branches[z]=void 0),!it)return[];for(const st of it)st.parent=void 0,st.parentBranch=void 0;return console.assert(it[0].type==="first"),it.shift(),this.isDirty=!0,it}removeChild(z){if(console.assert(z.parent===this),z.type==="first")return;const it=this.branch(z.parentBranch),st=it.indexOf(z);console.assert(st>=0),it.splice(st,1),this.isDirty=!0,z.parent=void 0,z.parentBranch=void 0}get siblings(){return this.parent?this.parent.branch(this.parentBranch):[]}get firstSibling(){return this.siblings[0]}get lastSibling(){const{siblings:z}=this;return z[z.length-1]}get isFirstSibling(){return this===this.firstSibling}get isLastSibling(){return this===this.lastSibling}get hasNoSiblings(){return this.siblings.length===1}get leftSibling(){console.assert(this.parent!==void 0);const z=this.parent.branch(this.parentBranch);return z[z.indexOf(this)-1]}get rightSibling(){console.assert(this.parent!==void 0);const z=this.parent.branch(this.parentBranch);return z[z.indexOf(this)+1]}get hasChildren(){return!!(this._branches&&this.children.length>0)}get firstChild(){return console.assert(this.hasChildren),this.children[0]}get lastChild(){console.assert(this.hasChildren);const{children:z}=this;return z[z.length-1]}get children(){if(this._children)return this._children;if(!this._branches)return[];const z=[];for(const it of Gh)if(this._branches[it])for(const st of this._branches[it])z.push(...st.children),z.push(st);return this._children=z,z}render(z){if(this.type==="first"&&!z.atomIdsSettings)return null;const it=Pn(this.command,this.mode);if(it!=null&&it.render)return it.render(this,z);const st=new Ws({parent:z},this.style);let ct=this.createBox(st,{classes:this.parent?"":"ML__base"});return ct?(!this.subsupPlacement&&(this.superscript||this.subscript)&&(ct=this.attachSupsub(st,{base:ct})),ct.wrap(st)):null}attachSupsub(z,it){var st;const ct=it.base,vt=this.superscript,xt=this.subscript;if(!vt&&!xt)return ct;let Ot=null,Kt=null;const Zt=(st=it.isCharacterBox)!=null?st:this.isCharacterBox();let re=0;if(vt){const hr=new Ws({parent:z,mathstyle:"superscript"});Ot=R0.createBox(hr,vt),Zt||(re=ct.height-z.metrics.supDrop*hr.scalingFactor)}let Be=0;if(xt){const hr=new Ws({parent:z,mathstyle:"subscript"});Kt=R0.createBox(hr,xt),Zt||(Be=ct.depth+z.metrics.subDrop*hr.scalingFactor)}let ln;z.isDisplayStyle?ln=z.metrics.sup1:z.isCramped?ln=z.metrics.sup3:ln=z.metrics.sup2;const Fn=.5/uh/z.scalingFactor;let ei=null;if(Kt&&Ot){re=Math.max(re,ln,Ot.depth+.25*z.metrics.xHeight),Be=Math.max(Be,z.metrics.sub2);const hr=z.metrics.defaultRuleThickness;if(re-Ot.depth-(Kt.height-Be)<4*hr){Be=4*hr-(re-Ot.depth)+Kt.height;const $i=.8*z.metrics.xHeight-(re-Ot.depth);$i>0&&(re+=$i,Be-=$i)}const Gr=this.isExtensibleSymbol&&ct.italic?-ct.italic:0;ei=new sa({individualShift:[{box:Kt,shift:Be,marginLeft:Gr},{box:Ot,shift:-re}]}).wrap(z)}else Kt&&!Ot?(Be=Math.max(Be,z.metrics.sub1,Kt.height-.8*ch),ei=new sa({shift:Be,children:[{box:Kt,marginRight:Fn,marginLeft:this.isCharacterBox()?-ct.italic:0}]})):!Kt&&Ot&&(re=Math.max(re,ln,Ot.depth+.25*ch),ei=new sa({shift:-re,children:[{box:Ot,marginRight:Fn}]}));return new Qr([ct,new Qr(ei,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:it.type})}attachLimits(z,it){const st=this.superscript?R0.createBox(new Ws({parent:z,mathstyle:"superscript"},this.style),this.superscript):null,ct=this.subscript?R0.createBox(new Ws({parent:z,mathstyle:"subscript"},this.style),this.subscript):null;return!st&&!ct?it.base.wrap(z):Xm(z,Nt(jt({},it),{above:st,below:ct}))}bind(z,it){if(!it||z.isPhantom||this.value==="\u200B")return it;let st=this.parent;for(;st&&!st.captureSelection;)st=st.parent;return st!=null&&st.captureSelection||(this.id||(this.id=z.makeID()),it.atomID=this.id),it}createBox(z,it){var st,ct,vt,xt;const Ot=(st=this.value)!=null?st:this.body,Kt=(ct=it==null?void 0:it.boxType)!=null?ct:_0(this.type);let Zt=(vt=it==null?void 0:it.classes)!=null?vt:"";this.mode==="text"&&(Zt+=" ML__text");const re=typeof Ot=="string"||Ot===void 0?new Qr(Ot!=null?Ot:null,{type:Kt,isSelected:this.isSelected,mode:this.mode,maxFontSize:z.scalingFactor,style:Nt(jt({variant:"normal"},this.style),{fontSize:Math.max(1,z.size+z.mathstyle.sizeDelta)}),letterShapeStyle:z.letterShapeStyle,classes:Zt}):(xt=R0.createBox(z,Ot,{type:Kt,classes:Zt}))!=null?xt:new Qr(null);return z.isTight&&(re.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(re.italic=0),re.right=re.italic,this.bind(z,re),this.caret&&!this.superscript&&!this.subscript&&(re.caret=this.caret),re}isDigit(){var z;return this.type==="mord"&&this.value?/^[\d,\.]$/.test(this.value):this.type==="group"&&((z=this.body)==null?void 0:z.length)===2?this.body[0].type==="first"&&this.body[1].value===",":!1}asDigit(){var z;return this.type==="mord"&&this.value&&/^[\d,\.]$/.test(this.value)?this.value:this.type==="group"&&((z=this.body)==null?void 0:z.length)===2&&this.body[0].type==="first"&&this.body[1].value===","?".":""}};function Qm(E){let z;const it=[];let st=[];for(const ct of E)if(!z&&!ct.style)st.push(ct);else{const vt=ct.computedStyle;z&&vt.color===z.color&&vt.backgroundColor===z.backgroundColor&&vt.fontSize===z.fontSize?st.push(ct):(st.length>0&&it.push(st),st=[ct],z=vt)}return st.length>0&&it.push(st),it}function Uc(E,z,it){var st,ct,vt,xt,Ot;if(!z||z.length===0)return null;const Kt=new Ws({parent:E},it.style),Zt=!((st=Kt.atomIdsSettings)!=null&&st.groupNumbers);let re=[];if(z.length===1){const ln=z[0],Fn=ln.render(Kt);Fn&&(Zt&&ln.isSelected&&Fn.selected(!0),re=[Fn])}else{let ln="",Fn=!0;for(const ei of z){(ct=Kt.atomIdsSettings)!=null&&ct.groupNumbers&&ln&&(Fn&&ei.isDigit()||!Fn&&V0(ei))&&(Kt.atomIdsSettings.overrideID=ln);const hr=ei.render(Kt);Kt.atomIdsSettings&&(Kt.atomIdsSettings.overrideID=void 0),hr&&((vt=Kt.atomIdsSettings)!=null&&vt.groupNumbers&&((ei.isDigit()||V0(ei))&&(!ln||Fn!==ei.isDigit())&&(Fn=ei.isDigit(),ln=(xt=ei.id)!=null?xt:""),ln&&(!(ei.isDigit()||V0(ei))||!ei.hasEmptyBranch("superscript")||!ei.hasEmptyBranch("subscript"))&&(ln="")),Zt&&ei.isSelected&&hr.selected(!0),re.push(hr))}}if(re.length===0)return null;const Be=new Qr(re,Nt(jt({isTight:Kt.isTight},it),{type:(Ot=it.type)!=null?Ot:"lift"}));return Be.isSelected=re.every(ln=>ln.isSelected),Be.wrap(Kt)}function V0(E){return E.mode==="text"}function $m(E){return E.map(z=>z===null?"<null>":Array.isArray(z)&&z[0]instanceof Mr?{atoms:z.map(it=>it.toJson())}:typeof z=="object"&&"group"in z?{group:z.group.map(it=>it.toJson())}:z)}var gh=class _2 extends Mr{constructor(z,it,st){super({type:"text",command:z,mode:"text",displayContainsHighlight:!0}),this.value=it,this.verbatimLatex=it,this.applyStyle(st)}static fromJson(z){return new _2(z.command,z.value,z.style)}render(z){const it=this.createBox(z);return this.caret&&(it.caret=this.caret),it}_serialize(z){var it;return(it=this.verbatimLatex)!=null?it:yi("text",this.value.codePointAt(0))}};function nf(E,z){if(E.direction===z.direction){const it=E.ranges.length;if(z.ranges.length===it){let st=0;for(;st<it&&qm(E.ranges[st],z.ranges[st])==="equal";)st++;return st===it?"equal":"different"}}return"different"}function qm(E,z){return E[0]===z[0]&&E[1]===z[1]?"equal":"different"}function Va(E){let z=1/0,it=-1/0;for(const st of E.ranges)z=Math.min(z,st[0],st[1]),it=Math.max(it,st[0],st[1]);return[z,it]}function vh(E){return typeof E=="number"&&!Number.isNaN(E)}function rf(E){return Array.isArray(E)&&E.length===2}function Yp(E){return E!=null&&typeof E=="object"&&"ranges"in E&&Array.isArray(E.ranges)}function tg(E,z){const it=E.at(z);let st;if(it){st=it.mode;let ct=it.parent;for(;!st&&ct;)ct&&(st=ct.mode),ct=ct.parent}return st}function eg(E,z){if(!z)return"";if(typeof z=="string")return z;if(!E||z.after===void 0)return z.value;let it=!1,st=!1,ct=!1,vt=!1,xt=!1,Ot=!1,Kt=!1,Zt=!1,re=!1,Be=!1,ln=!1,Fn=!1,ei=!1,hr=!1,Gr=!1,$i=E[0],Nr=0;for(;$i!=null&&$i.type&&/^(subsup|placeholder)$/.test($i.type);)Nr+=1,$i=E[Nr];return it=!$i||$i.type==="first",$i&&(hr=$i.mode==="text",st=!hr&&$i.type==="mord"&&Pt.test($i.value),ct=!hr&&$i.type==="mord"&&/\d+$/.test($i.value),vt=!hr&&$i.isFunction,xt=$i.type==="genfrac",Ot=$i.type==="surd",Kt=$i.type==="mbin",Zt=$i.type==="mrel",re=$i.type==="mop"||$i.type==="operator"||$i.type==="extensible-symbol",Be=$i.type==="mpunct"||$i.type==="minner",ln=$i.type==="array",Fn=$i.type==="mopen",ei=$i.type==="mclose"||$i.type==="leftright",Gr=$i.type==="space"),z.after.includes("nothing")&&it||z.after.includes("letter")&&st||z.after.includes("digit")&&ct||z.after.includes("function")&&vt||z.after.includes("frac")&&xt||z.after.includes("surd")&&Ot||z.after.includes("binop")&&Kt||z.after.includes("relop")&&Zt||z.after.includes("operator")&&re||z.after.includes("punct")&&Be||z.after.includes("array")&&ln||z.after.includes("openfence")&&Fn||z.after.includes("closefence")&&ei||z.after.includes("text")&&hr||z.after.includes("space")&&Gr?z.value:""}function ng(E,z,it){return it?eg(E,it[z]):""}var ig={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\doubleprime}","'''":"^{\\prime\\prime\\prime}","''''":"^{\\prime\\prime\\prime\\prime}",alpha:"\\alpha",delta:"\\delta",Delta:"\\Delta",pi:"\\pi",Pi:"\\Pi",theta:"\\theta",Theta:"\\Theta",ii:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryI"},jj:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryJ"},ee:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\exponentialE"},nabla:"\\nabla",grad:"\\nabla",del:"\\partial",deg:{after:"digit+space",value:"\\degree"},infty:"\\infty","\u221E":"\\infty",oo:{after:"nothing+digit+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\infty"},"\u2211":"\\sum",sum:"\\sum_{#?}^{#?}",int:"\\int_{#?}^{#?}",prod:"\\prod_{#?}^{#?}",sqrt:"\\sqrt{#?}","\u2206":"\\differentialD","\u2202":"\\differentialD",arcsin:"\\arcsin",arccos:"\\arccos",arctan:"\\arctan",arcsec:"\\arcsec",arccsc:"\\arccsc",arsinh:"\\arsinh",arcosh:"\\arcosh",artanh:"\\artanh",arcsech:"\\arcsech",arccsch:"\\arccsch",arg:"\\arg",ch:"\\ch",cosec:"\\cosec",cosh:"\\cosh",cot:"\\cot",cotg:"\\cotg",coth:"\\coth",csc:"\\csc",ctg:"\\ctg",cth:"\\cth",sec:"\\sec",sinh:"\\sinh",sh:"\\sh",tanh:"\\tanh",tg:"\\tg",th:"\\th",sin:"\\sin",cos:"\\cos",tan:"\\tan",lg:"\\lg",lb:"\\lb",log:"\\log",ln:"\\ln",exp:"\\exp",lim:"\\lim_{#?}",dx:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD x"},dy:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD y"},dt:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD t"},AA:"\\forall",EE:"\\exists","!EE":"\\nexists","&&":"\\land",xin:{after:"nothing+text+relop+punct+openfence+space",value:"x \\in"},sint:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\sin t"},in:{after:"nothing+letter+closefence",value:"\\in"},"!in":"\\notin",NN:"\\mathbb{N}",ZZ:"\\Z",QQ:"\\Q",RR:"\\R",CC:"\\C",xx:"\\times","+-":"\\pm","\u2260":"\\ne","!=":"\\ne","\u2265":"\\ge",">=":"\\ge","\u2264":"\\le","<=":"\\le","<<":"\\ll",">>":"\\gg","~~":"\\approx","\u2248":"\\approx","?=":"\\questeq","\xF7":"\\div","\xAC":"\\neg",":=":"\\coloneq","::":"\\Colon","(:":"\\langle",":)":"\\rangle",beta:"\\beta",chi:"\\chi",epsilon:"\\epsilon",varepsilon:"\\varepsilon",eta:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\eta"},gamma:"\\gamma",Gamma:"\\Gamma",iota:"\\iota",kappa:"\\kappa",lambda:"\\lambda",Lambda:"\\Lambda",mu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\mu"},nu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\nu"},\u00B5:"\\mu",phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\phi"},Phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Phi"},varphi:"\\varphi",psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\psi"},Psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Psi"},rho:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\rho"},sigma:"\\sigma",Sigma:"\\Sigma",tau:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\tau"},vartheta:"\\vartheta",upsilon:"\\upsilon",xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\xi"},Xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Xi"},zeta:"\\zeta",omega:"\\omega",Omega:"\\Omega",\u03A9:"\\omega",forall:"\\forall",exists:"\\exists","!exists":"\\nexists",":.":"\\therefore",liminf:"\\liminf_{#?}",limsup:"\\limsup_{#?}",argmin:"\\operatorname*{arg~min}_{#?}",argmax:"\\operatorname*{arg~max}_{#?}",det:"\\det",mod:"\\bmod{#?}","(mod":"\\pmod{#?}",max:"\\max",min:"\\min",erf:"\\operatorname{erf}",erfc:"\\operatorname{erfc}",bessel:"\\operatorname{bessel}",mean:"\\operatorname{mean}",median:"\\operatorname{median}",fft:"\\operatorname{fft}",lcm:"\\operatorname{lcm}",gcd:"\\operatorname{gcd}",randomReal:"\\operatorname{randomReal}",randomInteger:"\\operatorname{randomInteger}",Re:"\\operatorname{Re}",Im:"\\operatorname{Im}",mm:{after:"nothing+digit+operator",value:"\\operatorname{mm}"},cm:{after:"nothing+digit+operator",value:"\\operatorname{cm}"},km:{after:"nothing+digit+operator",value:"\\operatorname{km}"},kg:{after:"nothing+digit+operator",value:"\\operatorname{kg}"},"...":"\\ldots","+...":"+\\cdots","-...":"-\\cdots","->...":"\\to\\cdots","-->...":"\\longrightarrow\\cdots","->":"\\to","|->":"\\mapsto","-->":"\\longrightarrow","<--":"\\longleftarrow","=>":"\\Rightarrow","==>":"\\Longrightarrow","<=>":"\\Leftrightarrow","<->":"\\leftrightarrow","(.)":"\\odot","(+)":"\\oplus","(/)":"\\oslash","(*)":"\\otimes","(-)":"\\ominus","||":"\\Vert","*":"\\cdot","**":"\\star","***":"\\ast","//":"\\slash","\\\\":"\\backslash",setminus:"\\backslash","|><":"\\ltimes","><|":"\\rtimes","|><|":"\\bowtie","-:":"\\div",divide:"\\div","@":"\\circ","^^":"\\wedge","^^^":"\\bigwedge",vv:"\\vee",vvv:"\\bigvee",nn:"\\cap",nnn:"\\bigcap",uu:"\\cup",uuu:"\\bigcup","-=":"\\equiv","~=":"\\cong",lt:"<","lt=":"\\leq",gt:">","gt=":"\\geq","-<":"\\prec","-lt":"\\prec","-<=":"\\preceq",">-=":"\\succeq",prop:"\\propto",diamond:"\\diamond",square:"\\square",iff:"\\iff",sub:"\\subset",sup:"\\supset",sube:"\\subseteq",supe:"\\supseteq",uarr:"\\uparrow",darr:"\\downarrow",rarr:"\\rightarrow",rArr:"\\Rightarrow",larr:"\\leftarrow",lArr:"\\Leftarrow",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",aleph:"\\aleph",and:"\\land",or:"\\lor",not:"\\neg","_|_":"\\bot",TT:"\\top","|--":"\\vdash","|==":"\\models","|__":"\\lfloor","__|":"\\rfloor","|~":"\\lceil","~|":"\\rceil",">->":"\\rightarrowtail","->>":"\\twoheadrightarrow",">->>":"\\twoheadrightarrowtail",frac:"\\frac{#?}{#?}",cbrt:"\\sqrt[3]{#?}",nthroot:"\\sqrt[#?]{#?}"};function of(E,z){var it;let st=(it=z==null?void 0:z.format)!=null?it:"auto";return st==="auto"&&([st,E]=og(E)),st==="ascii-math"?(E=E.replace(/\u2061/gu,""),E=E.replace(/\u3016/gu,"{"),E=E.replace(/\u3017/gu,"}"),E=E.replace(/([^\\])sinx/g,"$1\\sin x"),E=E.replace(/([^\\])cosx/g,"$1\\cos x "),E=E.replace(/\u2013/g,"-"),["ascii-math",eu(E,{inlineShortcuts:z==null?void 0:z.inlineShortcuts})]):["latex",E]}function eu(E,z){var it,st,ct;if(!E)return"";let vt=!1,xt;const Ot=(it=z.inlineShortcuts)!=null?it:ig;if(!vt&&(E.startsWith("^")||E.startsWith("_"))&&(xt=yh(E.slice(1),{inlineShortcuts:Ot,noWrap:!0}),E=E[0]+"{"+xt.match+"}",E+=eu(xt.rest,z),vt=!0),vt||(xt=E.match(/^(sqrt|\u221A)(.*)/),xt&&(xt=yh(xt[2],{inlineShortcuts:Ot,noWrap:!0}),E="\\sqrt{"+((st=xt.match)!=null?st:"\\placeholder{}")+"}",E+=eu(xt.rest,z),vt=!0)),vt||(xt=E.match(/^(\\cbrt|\u221B)(.*)/),xt&&(xt=yh(xt[2],{inlineShortcuts:Ot,noWrap:!0}),E="\\sqrt[3]{"+((ct=xt.match)!=null?ct:"\\placeholder{}")+"}",E+=eu(xt.rest,z),vt=!0)),vt||(xt=E.match(/^abs(.*)/),xt&&(xt=yh(xt[1],{inlineShortcuts:Ot,noWrap:!0}),E="\\left|"+xt.match+"\\right|",E+=eu(xt.rest,z),vt=!0)),vt||(xt=E.match(/^["”“](.*?)["”“](.*)/),xt&&(E="\\text{"+xt[1]+"}",E+=eu(xt[2],z),vt=!0)),vt||(xt=E.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),xt&&(E=rg(xt[1],Ot),E+=eu(xt[2],z),vt=!0)),!vt&&/^([fgh])[^a-zA-Z]/.test(E)&&(xt=yh(E.slice(1),{inlineShortcuts:Ot,noWrap:!0}),E=E[1]==="("?E[0]+"\\left("+xt.match+"\\right)":E[0]+xt.match,E+=eu(xt.rest,z),vt=!0),vt||(xt=E.match(/^([a-zA-Z]+)(.*)/),xt&&(E=rg(xt[1],Ot),E+=eu(xt[2],z),vt=!0)),!vt)if(xt=yh(E,{inlineShortcuts:Ot,noWrap:!0}),xt.match&&xt.rest[0]==="/"){const Kt=yh(xt.rest.slice(1),{inlineShortcuts:Ot,noWrap:!0});Kt.match&&(E="\\frac{"+xt.match+"}{"+Kt.match+"}"+eu(Kt.rest,z)),vt=!0}else xt.match&&(E=E.startsWith("(")?"\\left("+xt.match+"\\right)"+eu(xt.rest,z):xt.match+eu(xt.rest,z),vt=!0);return vt||(xt=E.match(/^(\s+)(.*)$/),xt&&(E=" "+eu(xt[2],z),vt=!0)),E}function yh(E,z){let it="";E=E.trim();let st=E,ct=E.charAt(0),vt={"(":")","{":"}","[":"]"}[ct];if(vt){let xt=1,Ot=1;for(;Ot<E.length&&xt>0;)E[Ot]===ct&&xt++,E[Ot]===vt&&xt--,Ot++;xt===0?(z.noWrap&&ct==="("?it=eu(E.substring(1,Ot-1),z):(ct==="{"&&vt==="}"&&(ct="\\{",vt="\\}"),it="\\left"+ct+eu(E.substring(1,Ot-1),z)+"\\right"+vt),st=E.slice(Math.max(0,Ot))):(it=E.substring(1,Ot),st="")}else{let xt=E.match(/^([a-zA-Z]+)/);if(xt){let Ot=ng(null,E,z.inlineShortcuts);if(Ot)return Ot=Ot.replace("_{#?}",""),Ot=Ot.replace("^{#?}",""),{match:Ot,rest:E.slice(Ot.length)}}if(xt=E.match(/^([a-zA-Z])/),xt)return{match:xt[1],rest:E.slice(1)};if(xt=E.match(/^(-)?\d+(\.\d*)?/),xt)return{match:xt[0],rest:E.slice(xt[0].length)};/^\\(left|right)/.test(E)||(xt=E.match(/^(\\[a-zA-Z]+)/),xt&&(st=E.slice(xt[1].length),it=xt[1]))}return{match:it,rest:st}}function rg(E,z){let it=ng(null,E,z);return it?(it=it.replace("_{#?}",""),it=it.replace("^{#?}",""),it+=" "):it=E,it}var Xp=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function xh(E){const z=E.trim();for(const it of Xp)if(z.startsWith(it[0])&&z.endsWith(it[1]))return[!0,z.substring(it[0].length,z.length-it[1].length)];return[!1,E]}function og(E){if(E=E.trim(),E.length<=1)return["latex",E];let z;return[z,E]=xh(E),z?["latex",E]:E.startsWith("`")&&E.endsWith("`")?(E=E.substring(1,E.length-1),["ascii-math",E]):E.includes("\\")?["latex",E]:/\$.+\$/.test(E)?["latex",`\\text{${E}}`]:[void 0,E]}var Jp="$$",mv="$$",U0=(E,z,it)=>(Xp.some(st=>z.startsWith(st[0])&&z.endsWith(st[1]))||(z=`${Jp} ${z} ${mv}`),z),sg=class Ob{constructor(z){Ob._modes[z]=this}static onPaste(z,it,st){var ct;if(!it.contentEditable&&it.userSelect==="none")return it.model.announce("plonk"),!1;if(typeof st=="string"){const xt=new DataTransfer;xt.setData("text/plain",st),st=xt}const vt=new ClipboardEvent("paste",{clipboardData:st,cancelable:!0});return(ct=it.host)!=null&&ct.dispatchEvent(vt)?Ob._modes[z].onPaste(it,st):!1}static copyToClipboard(z,it){if(!z.contentEditable&&z.userSelect==="none"){z.model.announce("plonk");return}const st=z.model,ct=st.selectionIsCollapsed?[0,st.lastOffset]:Va(st.selection),vt=st.getValue(ct,it);navigator.clipboard.writeText(vt).then(()=>{},()=>z.model.announce("plonk"))}static onCopy(z,it){var st;if(!it.clipboardData)return;if(!z.contentEditable&&z.userSelect==="none"){z.model.announce("plonk");return}const ct=z.model,vt=ct.selectionIsCollapsed?[0,ct.lastOffset]:Va(ct.selection);let xt=ct.getAtoms(vt);if(xt.every(Ot=>Ot.mode==="text"||!Ot.mode))it.clipboardData.setData("text/plain",xt.filter(Ot=>Ot instanceof gh).map(Ot=>Ot.value).join(""));else if(xt.every(Ot=>Ot.mode==="latex"))it.clipboardData.setData("text/plain",ct.getAtoms(vt,{includeChildren:!0}).map(Ot=>{var Kt;return(Kt=Ot.value)!=null?Kt:""}).join(""));else{let Ot;xt.length===1&&xt[0].verbatimLatex!==void 0?Ot=xt[0].verbatimLatex:Ot=ct.getValue(vt,"latex-expanded"),it.clipboardData.setData("application/x-latex",Ot);try{it.clipboardData.setData("text/plain",z.options.onExport(z,Ot,vt))}catch(Kt){}if(xt.length===1){const Kt=xt[0];(Kt.type==="root"||Kt.type==="group")&&(xt=Kt.body.filter(Zt=>Zt.type!=="first"))}try{it.clipboardData.setData("application/json+mathlive",JSON.stringify(xt.map(Kt=>Kt.toJson())))}catch(Kt){}if((st=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&st.ComputeEngine){const Kt=window.MathfieldElement.computeEngine;if(Kt)try{const Zt=Kt.jsonSerializationOptions;Kt.jsonSerializationOptions={metadata:["latex"]};const re=Kt.parse(ct.getValue(vt,"latex-unstyled"));Kt.jsonSerializationOptions=Zt;const Be=JSON.stringify(re.json);Be&&it.clipboardData.setData("application/json",Be)}catch(Zt){}}}it.preventDefault()}static insert(z,it,st={}){var ct;const vt=st.mode==="auto"?z.mode:(ct=st.mode)!=null?ct:z.mode;return Ob._modes[vt].insert(z,it,st)}onPaste(z,it){return!1}insert(z,it,st){return!1}};sg._modes={};var ts=sg,Wf=[{key:"left",command:"moveToPreviousChar"},{key:"right",command:"moveToNextChar"},{key:"up",command:"moveUp"},{key:"down",command:"moveDown"},{key:"shift+[ArrowLeft]",command:"extendSelectionBackward"},{key:"shift+[ArrowRight]",command:"extendSelectionForward"},{key:"shift+[ArrowUp]",command:"extendSelectionUpward"},{key:"shift+[ArrowDown]",command:"extendSelectionDownward"},{key:"[Backspace]",command:"deleteBackward"},{key:"alt+[Delete]",command:"deleteBackward"},{key:"[Delete]",command:"deleteForward"},{key:"alt+[Backspace]",command:"deleteForward"},{key:"alt+[ArrowLeft]",command:"moveToPreviousWord"},{key:"alt+[ArrowRight]",command:"moveToNextWord"},{key:"shift+alt+[ArrowLeft]",command:"extendToPreviousWord"},{key:"shift+alt+[ArrowRight]",command:"extendToNextWord"},{key:"ctrl+[ArrowLeft]",command:"moveToGroupStart"},{key:"ctrl+[ArrowRight]",command:"moveToGroupEnd"},{key:"shift+ctrl+[ArrowLeft]",command:"extendToGroupStart"},{key:"shift+ctrl+[ArrowRight]",command:"extendToGroupEnd"},{key:"[Home]",command:"moveToMathfieldStart"},{key:"cmd+[ArrowLeft]",command:"moveToMathfieldStart"},{key:"shift+[Home]",command:"extendToMathFieldStart"},{key:"shift+cmd+[ArrowLeft]",command:"extendToMathFieldStart"},{key:"[End]",command:"moveToMathfieldEnd"},{key:"cmd+[ArrowRight]",command:"moveToMathfieldEnd"},{key:"shift+[End]",command:"extendToMathFieldEnd"},{key:"shift+cmd+[ArrowRight]",command:"extendToMathFieldEnd"},{key:"[Pageup]",command:"moveToGroupStart"},{key:"[Pagedown]",command:"moveToGroupEnd"},{key:"[Tab]",command:"moveToNextGroup"},{key:"shift+[Tab]",command:"moveToPreviousGroup"},{key:"[Escape]",ifMode:"math",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"text",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"latex",command:["complete","complete",{selectItem:"true"}]},{key:"\\",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[IntlBackslash]",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[Tab]",ifMode:"latex",command:["complete","accept-suggestion"]},{key:"[Return]",ifMode:"latex",command:"complete"},{key:"[Enter]",ifMode:"latex",command:"complete"},{key:"shift+[Escape]",ifMode:"latex",command:["complete","reject"]},{key:"[ArrowDown]",ifMode:"latex",command:"nextSuggestion"},{key:"[ArrowUp]",ifMode:"latex",command:"previousSuggestion"},{key:"ctrl+a",ifPlatform:"!macos",command:"selectAll"},{key:"cmd+a",command:"selectAll"},{key:"[Cut]",command:"cutToClipboard"},{key:"[Copy]",command:"copyToClipboard"},{key:"[Paste]",command:"pasteFromClipboard"},{key:"[Clear]",command:"deleteBackward"},{key:"[Undo]",command:"undo"},{key:"[Redo]",command:"redo"},{key:"[EraseEof]",command:"deleteToGroupEnd"},{key:"ctrl+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"cmd+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"ctrl+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"cmd+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"ctrl+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"cmd+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"ctrl+z",ifPlatform:"!macos",command:"undo"},{key:"cmd+z",command:"undo"},{key:"ctrl+y",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+y",command:"redo"},{key:"shift+ctrl+z",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+z",command:"redo"},{key:"ctrl+b",ifPlatform:"macos",command:"moveToPreviousChar"},{key:"ctrl+f",ifPlatform:"macos",command:"moveToNextChar"},{key:"ctrl+p",ifPlatform:"macos",command:"moveUp"},{key:"ctrl+n",ifPlatform:"macos",command:"moveDown"},{key:"ctrl+a",ifPlatform:"macos",command:"moveToMathfieldStart"},{key:"ctrl+e",ifPlatform:"macos",command:"moveToMathfieldEnd"},{key:"shift+ctrl+b",ifPlatform:"macos",command:"extendSelectionBackward"},{key:"shift+ctrl+f",ifPlatform:"macos",command:"extendSelectionForward"},{key:"shift+ctrl+p",ifPlatform:"macos",command:"extendSelectionUpward"},{key:"shift+ctrl+n",ifPlatform:"macos",command:"extendSelectionDownward"},{key:"shift+ctrl+a",ifPlatform:"macos",command:"extendToMathFieldStart"},{key:"shift+ctrl+e",ifPlatform:"macos",command:"extendToMathFieldEnd"},{key:"alt+ctrl+b",ifPlatform:"macos",command:"moveToPreviousWord"},{key:"alt+ctrl+f",ifPlatform:"macos",command:"moveToNextWord"},{key:"shift+alt+ctrl+b",ifPlatform:"macos",command:"extendToPreviousWord"},{key:"shift+alt+ctrl+f",ifPlatform:"macos",command:"extendToNextWord"},{key:"ctrl+h",ifPlatform:"macos",command:"deleteBackward"},{key:"ctrl+d",ifPlatform:"macos",command:"deleteForward"},{key:"ctrl+l",ifPlatform:"macos",command:"scrollIntoView"},{key:"ctrl+[Digit2]",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"ctrl+[Digit5]",ifMode:"math",command:"moveToOpposite"},{key:"ctrl+[Digit6]",ifMode:"math",command:"moveToSuperscript"},{key:"ctrl+[Return]",ifMode:"math",command:"addRowAfter"},{key:"ctrl+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Return]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"alt+p",ifMode:"math",command:["insert","\\pi"]},{key:"alt+v",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"alt+o",ifMode:"math",command:["insert","\\emptyset"]},{key:"alt+d",ifMode:"math",command:["insert","\\differentialD"]},{key:"shift+alt+o",ifMode:"math",command:["insert","\\varnothing"]},{key:"shift+alt+d",ifMode:"math",command:["insert","\\partial"]},{key:"alt+[Backslash]",ifMode:"math",command:["insert","\\backslash"]},{key:"[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#?}{#@}"]},{key:"shift+alt+k",command:"toggleKeystrokeCaption"},{key:"alt+[Space]",command:"toggleContextMenu"},{key:"alt+shift+[Space]",command:"toggleVirtualKeyboard"},{key:"alt+ctrl+[ArrowUp]",command:["speak","all",{withHighlighting:!1}]},{key:"alt+ctrl+[ArrowDown]",command:["speak","selection",{withHighlighting:!1}]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["switchMode","text","",""]},{key:"shift+alt+[KeyT]",ifMode:"math",command:["switchMode","text","",""]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"text",command:["switchMode","math","",""]},{key:"shift+alt+[KeyT]",ifMode:"text",command:["switchMode","math","",""]},{key:"/",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+shift+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrack #0 \\right\\rbrack"]},{key:"ctrl+[Minus]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"moveToSubscript"},{key:"shift+alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrace #0 \\right\\rbrace"]},{key:"ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"shift+ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"shift+cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"ctrl+[Backspace]",ifMode:"math",command:"removeRow"},{key:"cmd+[Backspace]",ifMode:"math",command:"removeRow"},{key:"alt+[Tab]",ifMode:"math",command:"addColumnAfter"},{key:"shift+alt+[Tab]",ifMode:"math",command:"addColumnBefore"},{key:"alt+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Enter]",ifMode:"math",command:"addRowBefore"},{key:"alt+[Return]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Return]",ifMode:"math",command:"addRowBefore"},{key:"shift+[Backspace]",ifMode:"math",command:"removeColumn"},{key:"alt+[Digit5]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","$\\infty"]},{key:"alt+[Digit9]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","("]},{key:"alt+[Digit0]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert",")"]},{key:"alt+|",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","|"]},{key:"shift+[Backquote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\~"]},{key:"[Backquote]",ifLayout:["windows.french","linux.french"],ifMode:"math",command:["insert","^2"]},{key:"[Backquote]",ifLayout:["windows.german","linux.german"],ifMode:"math",command:["insert","^"]},{key:"[IntlBackslash]",ifLayout:["apple.german"],ifMode:"math",command:["insert","^"]}],sf={"\\sqrt":["alt+v","ctrl+[Digit2]"],"\\pi":"alt+p","\\infty":"alt+[Digit5]","\\differentialD":"alt+d","\\partial":"shift+alt+d","\\frac":"Slash","\\emptyset":"alt+o","\\varnothing":"shift+alt+o","\\~":"~"};function Ua(E){var z;return((z=E.element)==null?void 0:z.mathfield)===E}function Eu(E){var z,it;return(it=(z=E.querySelector(".ML__caret"))!=null?z:E.querySelector(".ML__text-caret"))!=null?it:E.querySelector(".ML__latex-caret")}function Zc(E){const z=Eu(E);if(!z)return null;const it=z.getBoundingClientRect();return{x:it.right,y:it.bottom,height:it.height}}function Qp(E){var z;if(!E.parent)return"root";let it=(z=E.parent.id)!=null?z:"";return it+=typeof E.parentBranch=="string"?"-"+E.parentBranch:`-${E.parentBranch[0]}/${E.parentBranch[0]}`,it}function Z0(E,z,it){if(!z)return null;const st=E.field.getBoundingClientRect(),ct=z.right-z.left,vt=z.bottom-z.top,xt=Math.ceil(z.left-st.left+E.field.scrollLeft*it),Ot=Math.ceil(z.top-st.top);return{left:xt,right:xt+ct,top:Ot,bottom:Ot+vt}}function G0(E){const z=E.getBoundingClientRect(),it=parseInt(getComputedStyle(E).marginRight),st={top:z.top-1,bottom:z.bottom,left:z.left,right:z.right-1+it};if(E.children.length===0||E.tagName.toUpperCase()==="SVG")return st;for(const ct of E.children)if(ct.nodeType===1&&"atomId"in ct.dataset&&!ct.classList.contains("pstrut")){const vt=G0(ct);st.left=Math.min(st.left,vt.left),st.right=Math.max(st.right,vt.right),st.top=Math.min(st.top,vt.top),st.bottom=Math.max(st.bottom,vt.bottom)}return st}function af(E,z){var it,st;if(!z.id)return null;let ct=(st=(it=E.atomBoundsCache)==null?void 0:it.get(z.id))!=null?st:null;if(ct!==null)return ct;const vt=E.field.querySelector(`[data-atom-id="${z.id}"]`);return ct=vt?G0(vt):null,E.atomBoundsCache&&(ct?E.atomBoundsCache.set(z.id,ct):E.atomBoundsCache.delete(z.id)),ct!=null?ct:null}function ag(E,z,it){const st=new Map;for(const ct of E.model.getAtoms(z,{includeChildren:!0})){if(it!=null&&it.excludeAtomsWithBackground&&ct.style.backgroundColor)continue;const vt=E.field,xt=vt.offsetWidth;let Kt=Math.floor(vt.getBoundingClientRect().width)/xt;Kt=isNaN(Kt)?1:Kt;const Zt=Z0(E,af(E,ct),Kt);if(Zt){const re=Qp(ct);if(st.has(re)){const Be=st.get(re);st.set(re,{left:Math.min(Be.left,Zt.left),right:Math.max(Be.right,Zt.right),top:Math.min(Be.top,Zt.top),bottom:Math.max(Be.bottom,Zt.bottom)})}else st.set(re,Zt)}}return[...st.values()]}function Y0(E,z){return E.model.selection.ranges.reduce((it,st)=>it.concat(...ag(E,st,z)),[])}function bh(E,z){return E==="*"||z==="none"?!0:z==="same-origin"?!window.origin||E===window.origin:typeof z=="function"?z(E):!1}function Vf(E){let z=0,it=0;const st=E.offsetWidth,ct=E.offsetHeight;for(;E instanceof HTMLElement;)z+=E.offsetTop,it+=E.offsetLeft,E=E.offsetParent;return new DOMRect(it,z,st,ct)}var Cd=`@keyframes ML__caret-blink {
|
|
|
0%,
|
|
|
100% {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
50% {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
}
|
|
|
.ML__container {
|
|
|
display: inline-flex;
|
|
|
flex-flow: row;
|
|
|
justify-content: space-between;
|
|
|
align-items: flex-end;
|
|
|
min-height: 39px;
|
|
|
/* Need some room for the virtual keyboard toggle */
|
|
|
width: 100%;
|
|
|
/* Encourage browsers to consider allocating a hardware accelerated
|
|
|
layer for this element. */
|
|
|
isolation: isolate;
|
|
|
/* Prevent the browser from trying to interpret touch gestures in the field */
|
|
|
/* "Disabling double-tap to zoom removes the need for browsers to
|
|
|
delay the generation of click events when the user taps the screen." */
|
|
|
touch-action: none;
|
|
|
--_caret-color: var(--caret-color, hsl(var(--_hue), 40%, 49%));
|
|
|
--_selection-color: var(--selection-color, #000);
|
|
|
--_selection-background-color: var(--selection-background-color, hsl(var(--_hue), 70%, 85%));
|
|
|
--_text-highlight-background-color: var(--highlight-text, hsla(var(--_hue), 40%, 50%, 0.1));
|
|
|
--_contains-highlight-background-color: var(--contains-highlight-background-color, hsl(var(--_hue), 40%, 95%));
|
|
|
--_smart-fence-color: var(--smart-fence-color, currentColor);
|
|
|
--_smart-fence-opacity: var(--smart-fence-opacity, 0.5);
|
|
|
--_latex-color: var(--latex-color, hsl(var(--_hue), 80%, 40%));
|
|
|
--_correct-color: var(--correct-color, #10a000);
|
|
|
--_incorrect-color: var(--incorrect-color, #a01b00);
|
|
|
--_composition-background-color: var(--composition-background-color, #fff1c2);
|
|
|
--_composition-text-color: var(--composition-text-color, black);
|
|
|
--_composition-underline-color: var(--composition-underline-color, transparent);
|
|
|
}
|
|
|
/* This is the actual field content (formula) */
|
|
|
.ML__content {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
align-self: center;
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
padding: 2px 3px 2px 1px;
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle,
|
|
|
.ML__menu-toggle {
|
|
|
box-sizing: border-box;
|
|
|
display: flex;
|
|
|
align-self: center;
|
|
|
align-items: center;
|
|
|
flex-shrink: 0;
|
|
|
flex-direction: column;
|
|
|
justify-content: center;
|
|
|
width: 34px;
|
|
|
height: 34px;
|
|
|
padding: 0;
|
|
|
margin-right: 4px;
|
|
|
cursor: pointer;
|
|
|
/* Avoid some weird blinking with :hover */
|
|
|
border-radius: 8px;
|
|
|
border: 1px solid transparent;
|
|
|
transition: background 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
|
|
|
color: hsl(var(--_hue), 40%, 50%);
|
|
|
fill: currentColor;
|
|
|
background: transparent;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle:hover,
|
|
|
.ML__menu-toggle:hover {
|
|
|
background: hsla(0, 0%, 70%, 0.3);
|
|
|
color: #333;
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle > span,
|
|
|
.ML__menu-toggle > span {
|
|
|
display: flex;
|
|
|
align-self: center;
|
|
|
align-items: center;
|
|
|
}
|
|
|
/* The invisible element used to capture keyboard events. We're just trying
|
|
|
really hard to make sure it doesn't show. */
|
|
|
.ML__keyboard-sink {
|
|
|
display: inline-block;
|
|
|
resize: none;
|
|
|
outline: none;
|
|
|
border: none;
|
|
|
/* Need these for Microsoft Edge */
|
|
|
position: fixed;
|
|
|
clip: rect(0 0 0 0);
|
|
|
/* Need this to prevent iOS Safari from auto-zooming */
|
|
|
font-size: 1em;
|
|
|
font-family: KaTeX_Main;
|
|
|
line-height: 0.5;
|
|
|
/* On Chromium, if this is 0, no keyboard events are received */
|
|
|
}
|
|
|
[part="placeholder"] {
|
|
|
color: var(--neutral-400);
|
|
|
}
|
|
|
.ML__composition {
|
|
|
background: var(--_composition-background-color);
|
|
|
color: var(--_composition-text-color);
|
|
|
text-decoration: underline var(--_composition-underline-color);
|
|
|
}
|
|
|
.ML__caret::after {
|
|
|
content: '';
|
|
|
visibility: hidden;
|
|
|
width: 0;
|
|
|
display: inline-block;
|
|
|
height: 0.76em;
|
|
|
--_caret-width: clamp(2px, 0.08em, 10px);
|
|
|
border: none;
|
|
|
border-radius: calc(var(--_caret-width) / 2);
|
|
|
border-right: var(--_caret-width) solid var(--_caret-color);
|
|
|
margin-right: calc(-1 * var(--_caret-width));
|
|
|
position: relative;
|
|
|
left: -0.045em;
|
|
|
bottom: -0.05em;
|
|
|
animation: ML__caret-blink 1.05s step-end forwards infinite;
|
|
|
}
|
|
|
.ML__text-caret::after {
|
|
|
content: '';
|
|
|
visibility: hidden;
|
|
|
width: 0;
|
|
|
display: inline-block;
|
|
|
height: 0.76em;
|
|
|
--_caret-width: clamp(2px, 0.08em, 10px);
|
|
|
border: none;
|
|
|
border-radius: calc(var(--_caret-width) / 2);
|
|
|
border-right: var(--_caret-width) solid var(--_caret-color);
|
|
|
margin-right: calc(-1 * var(--_caret-width));
|
|
|
position: relative;
|
|
|
left: -0.045em;
|
|
|
bottom: -0.05em;
|
|
|
animation: ML__caret-blink 1.05s step-end forwards infinite;
|
|
|
}
|
|
|
.ML__latex-caret::after {
|
|
|
content: '';
|
|
|
visibility: hidden;
|
|
|
--_caret-width: clamp(2px, 0.08em, 10px);
|
|
|
border: none;
|
|
|
border-radius: calc(var(--_caret-width) / 2);
|
|
|
border-right: var(--_caret-width) solid var(--_latex-color);
|
|
|
margin-right: calc(-1 * var(--_caret-width));
|
|
|
position: relative;
|
|
|
left: -0.019em;
|
|
|
animation: ML__caret-blink 1.05s step-end forwards infinite;
|
|
|
}
|
|
|
.ML__focused .ML__latex-caret::after,
|
|
|
.ML__focused .ML__text-caret::after,
|
|
|
.ML__focused .ML__caret::after {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
.ML__focused .ML__text {
|
|
|
background: var(--_text-highlight-background-color);
|
|
|
}
|
|
|
/* When using smartFence, the anticipated closing fence is displayed
|
|
|
with this style */
|
|
|
.ML__smart-fence__close {
|
|
|
opacity: var(--_smart-fence-opacity);
|
|
|
color: var(--_smart-fence-color);
|
|
|
}
|
|
|
.ML__selected,
|
|
|
.ML__focused .ML__selected .ML__contains-caret,
|
|
|
.ML__focused .ML__selected .ML__smart-fence__close,
|
|
|
.ML__focused .ML__selected .ML__placeholder {
|
|
|
color: var(--_selection-color);
|
|
|
opacity: 1;
|
|
|
}
|
|
|
.ML__selection {
|
|
|
box-sizing: border-box;
|
|
|
background: var(--_selection-background-color) !important;
|
|
|
}
|
|
|
.ML__contains-caret.ML__close,
|
|
|
.ML__contains-caret.ML__open,
|
|
|
.ML__contains-caret > .ML__close,
|
|
|
.ML__contains-caret > .ML__open,
|
|
|
.ML__contains-caret .ML__sqrt-sign,
|
|
|
.ML__contains-caret .ML__sqrt-line {
|
|
|
color: var(--_caret-color);
|
|
|
}
|
|
|
.ML__contains-highlight {
|
|
|
box-sizing: border-box;
|
|
|
background: transparent;
|
|
|
}
|
|
|
.ML__focused .ML__contains-highlight {
|
|
|
background: var(--_contains-highlight-background-color);
|
|
|
}
|
|
|
.ML__raw-latex {
|
|
|
font-family: 'Berkeley Mono', 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
|
|
|
font-weight: 400;
|
|
|
font-size: 0.8em;
|
|
|
letter-spacing: -0.05em;
|
|
|
color: var(--_latex-color);
|
|
|
}
|
|
|
.ML__suggestion {
|
|
|
color: var(--neutral-500);
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle.is-visible.is-pressed:hover {
|
|
|
background: hsl(var(--_hue), 25%, 35%);
|
|
|
color: #fafafa;
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle:focus {
|
|
|
outline: none;
|
|
|
border-radius: 8px;
|
|
|
border: 2px solid hsl(var(--_hue), 40%, 50%);
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle.is-pressed,
|
|
|
.ML__virtual-keyboard-toggle.is-active:hover,
|
|
|
.ML__virtual-keyboard-toggle.is-active {
|
|
|
background: hsl(var(--_hue), 25%, 35%);
|
|
|
color: #fafafa;
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
/* Add an attribute 'data-tooltip' to automatically show a
|
|
|
tooltip over a element on hover.
|
|
|
*/
|
|
|
[data-tooltip] {
|
|
|
position: relative;
|
|
|
}
|
|
|
[data-tooltip]::after {
|
|
|
content: attr(data-tooltip);
|
|
|
position: absolute;
|
|
|
display: block;
|
|
|
z-index: 2;
|
|
|
pointer-events: none;
|
|
|
right: auto;
|
|
|
top: calc(-100% - 4px);
|
|
|
width: max-content;
|
|
|
max-width: 200px;
|
|
|
padding: 8px 8px;
|
|
|
border-radius: 4px;
|
|
|
background: #616161;
|
|
|
color: #fff;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
text-align: center;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-style: normal;
|
|
|
font-weight: 400;
|
|
|
font-size: 13px;
|
|
|
/* Phone */
|
|
|
opacity: 0;
|
|
|
transform: scale(0.5);
|
|
|
}
|
|
|
@media only screen and (max-width: 767px) {
|
|
|
[data-tooltip]::after {
|
|
|
padding: 8px 16px;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
}
|
|
|
menu [data-tooltip]::after {
|
|
|
left: 100%;
|
|
|
top: 0%;
|
|
|
}
|
|
|
menu .ML__base {
|
|
|
cursor: default;
|
|
|
}
|
|
|
/** Don't display if we're tracking, i.e. have the pointer down */
|
|
|
.tracking [data-tooltip]:hover::after {
|
|
|
/* Use visibility, not display. Display will remove the after from the DOM, and the override below will not work */
|
|
|
visibility: hidden;
|
|
|
}
|
|
|
/** But do display if tracking and inside a menu */
|
|
|
.tracking menu li[data-tooltip]:hover::after,
|
|
|
[data-tooltip]:hover::after {
|
|
|
visibility: visible;
|
|
|
opacity: 1;
|
|
|
transform: scale(1);
|
|
|
transition-property: opacity, scale;
|
|
|
transition-duration: 0.15s;
|
|
|
transition-delay: 1s;
|
|
|
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__prompt {
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
.ML__editablePromptBox {
|
|
|
outline: 1px solid #acacac;
|
|
|
border-radius: 2px;
|
|
|
z-index: -1;
|
|
|
}
|
|
|
.ML__focusedPromptBox {
|
|
|
outline: highlight auto 1px;
|
|
|
}
|
|
|
.ML__lockedPromptBox {
|
|
|
background-color: rgba(142, 142, 141, 0.4);
|
|
|
z-index: -1;
|
|
|
}
|
|
|
.ML__correctPromptBox {
|
|
|
outline: 1px solid var(--_correct-color);
|
|
|
box-shadow: 0 0 5px var(--_correct-color);
|
|
|
}
|
|
|
.ML__incorrectPromptBox {
|
|
|
outline: 1px solid var(--_incorrect-color);
|
|
|
box-shadow: 0 0 5px var(--_incorrect-color);
|
|
|
}
|
|
|
.variant-submenu {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
padding: 8px;
|
|
|
}
|
|
|
.variant-submenu [part=menu-item] {
|
|
|
font-size: 2rem;
|
|
|
text-align: center;
|
|
|
margin: 0;
|
|
|
}
|
|
|
.insert-matrix-submenu {
|
|
|
display: grid;
|
|
|
padding: 8px;
|
|
|
align-content: center;
|
|
|
justify-content: center;
|
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
|
}
|
|
|
.insert-matrix-submenu [part=menu-item] {
|
|
|
font-size: 21px;
|
|
|
border: none;
|
|
|
border-radius: 0;
|
|
|
line-height: 21px;
|
|
|
text-align: center;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
}
|
|
|
.border-submenu [part=menu-item] {
|
|
|
font-size: 2rem;
|
|
|
line-height: 1.2;
|
|
|
text-align: center;
|
|
|
}
|
|
|
.swatches-submenu {
|
|
|
--_swatch-size: 2rem;
|
|
|
--_columns: 4;
|
|
|
display: flex;
|
|
|
flex-flow: wrap;
|
|
|
padding: 8px;
|
|
|
max-width: calc(var(--_columns) * (var(--_swatch-size) + 18px) + 16px);
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.menu-swatch {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
box-sizing: border-box;
|
|
|
width: fit-content;
|
|
|
height: fit-content;
|
|
|
margin: 2px;
|
|
|
padding: 0;
|
|
|
background: var(--neutral-200);
|
|
|
}
|
|
|
.menu-swatch > .label {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
line-height: 0;
|
|
|
}
|
|
|
.menu-swatch > .label > span {
|
|
|
display: inline-block;
|
|
|
margin: 6px;
|
|
|
min-width: var(--_swatch-size);
|
|
|
min-height: var(--_swatch-size);
|
|
|
border-radius: 50%;
|
|
|
}
|
|
|
.menu-swatch.active {
|
|
|
background: var(--neutral-100);
|
|
|
scale: 1.4;
|
|
|
}
|
|
|
.menu-swatch.active > .label > span {
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
.menu-swatch .ui-checkmark,
|
|
|
.menu-swatch .ui-mixedmark {
|
|
|
position: absolute;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
color: white;
|
|
|
}
|
|
|
.menu-swatch.dark-contrast .ui-checkmark,
|
|
|
.menu-swatch.dark-contrast .ui-mixedmark {
|
|
|
color: #000;
|
|
|
}
|
|
|
`,fa=`.ML__container {
|
|
|
min-height: auto !important;
|
|
|
--_hue: var(--hue, 212);
|
|
|
--_placeholder-color: var(--placeholder-color, hsl(var(--_hue), 40%, 49%));
|
|
|
--_placeholder-opacity: var(--placeholder-opacity, 0.4);
|
|
|
--_text-font-family: var(--text-font-family, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif);
|
|
|
}
|
|
|
.ML__sr-only {
|
|
|
position: absolute;
|
|
|
width: 1px;
|
|
|
height: 1px;
|
|
|
margin: -1px;
|
|
|
padding: 0;
|
|
|
overflow: hidden;
|
|
|
clip: rect(0, 0, 0, 0);
|
|
|
clip-path: inset(50%);
|
|
|
white-space: nowrap;
|
|
|
border: 0;
|
|
|
}
|
|
|
.ML__is-inline {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__base {
|
|
|
visibility: inherit;
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
cursor: text;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
box-sizing: content-box;
|
|
|
border: 0;
|
|
|
outline: 0;
|
|
|
vertical-align: baseline;
|
|
|
font-weight: inherit;
|
|
|
font-family: inherit;
|
|
|
font-style: inherit;
|
|
|
text-decoration: none;
|
|
|
width: min-content;
|
|
|
}
|
|
|
.ML__strut,
|
|
|
.ML__strut--bottom {
|
|
|
display: inline-block;
|
|
|
min-height: 0.5em;
|
|
|
}
|
|
|
.ML__small-delim {
|
|
|
font-family: KaTeX_Main;
|
|
|
}
|
|
|
/* Text mode */
|
|
|
.ML__text {
|
|
|
font-family: var(--_text-font-family);
|
|
|
white-space: pre;
|
|
|
}
|
|
|
/* Use cmr for 'math upright' */
|
|
|
.ML__cmr {
|
|
|
font-family: KaTeX_Main;
|
|
|
font-style: normal;
|
|
|
}
|
|
|
.ML__mathit {
|
|
|
font-family: KaTeX_Math;
|
|
|
/* The KaTeX_Math font is italic by default, so the font-style below is only
|
|
|
useful when a fallback font is used
|
|
|
*/
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__mathbf {
|
|
|
font-family: KaTeX_Main;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
/* Lowercase greek symbols should stick to math font when \\mathbf is applied
|
|
|
to match TeX idiosyncratic behavior */
|
|
|
.lcGreek.ML__mathbf {
|
|
|
font-family: KaTeX_Math;
|
|
|
font-weight: normal;
|
|
|
}
|
|
|
.ML__mathbfit {
|
|
|
font-family: KaTeX_Math;
|
|
|
font-weight: bold;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__ams {
|
|
|
font-family: KaTeX_AMS;
|
|
|
}
|
|
|
/* Blackboard */
|
|
|
.ML__bb {
|
|
|
font-family: KaTeX_AMS;
|
|
|
}
|
|
|
.ML__cal {
|
|
|
font-family: KaTeX_Caligraphic;
|
|
|
}
|
|
|
.ML__frak {
|
|
|
font-family: KaTeX_Fraktur;
|
|
|
}
|
|
|
.ML__tt {
|
|
|
font-family: KaTeX_Typewriter;
|
|
|
}
|
|
|
.ML__script {
|
|
|
font-family: KaTeX_Script;
|
|
|
}
|
|
|
.ML__sans {
|
|
|
font-family: KaTeX_SansSerif;
|
|
|
}
|
|
|
.ML__series_ul {
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.ML__series_el {
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.ML__series_l {
|
|
|
font-weight: 200;
|
|
|
}
|
|
|
.ML__series_sl {
|
|
|
font-weight: 300;
|
|
|
}
|
|
|
.ML__series_sb {
|
|
|
font-weight: 500;
|
|
|
}
|
|
|
.ML__bold,
|
|
|
.ML__boldsymbol {
|
|
|
font-weight: 700;
|
|
|
}
|
|
|
.ML__series_eb {
|
|
|
font-weight: 800;
|
|
|
}
|
|
|
.ML__series_ub {
|
|
|
font-weight: 900;
|
|
|
}
|
|
|
.ML__series_uc {
|
|
|
font-stretch: ultra-condensed;
|
|
|
}
|
|
|
.ML__series_ec {
|
|
|
font-stretch: extra-condensed;
|
|
|
}
|
|
|
.ML__series_c {
|
|
|
font-stretch: condensed;
|
|
|
}
|
|
|
.ML__series_sc {
|
|
|
font-stretch: semi-condensed;
|
|
|
}
|
|
|
.ML__series_sx {
|
|
|
font-stretch: semi-expanded;
|
|
|
}
|
|
|
.ML__series_x {
|
|
|
font-stretch: expanded;
|
|
|
}
|
|
|
.ML__series_ex {
|
|
|
font-stretch: extra-expanded;
|
|
|
}
|
|
|
.ML__series_ux {
|
|
|
font-stretch: ultra-expanded;
|
|
|
}
|
|
|
.ML__it {
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__shape_ol {
|
|
|
-webkit-text-stroke: 1px black;
|
|
|
text-stroke: 1px black;
|
|
|
color: transparent;
|
|
|
}
|
|
|
.ML__shape_sc {
|
|
|
font-variant: small-caps;
|
|
|
}
|
|
|
.ML__shape_sl {
|
|
|
font-style: oblique;
|
|
|
}
|
|
|
/* First level emphasis */
|
|
|
.ML__emph {
|
|
|
color: #bc2612;
|
|
|
}
|
|
|
/* Second level emphasis */
|
|
|
.ML__emph .ML__emph {
|
|
|
color: #0c7f99;
|
|
|
}
|
|
|
.ML__highlight {
|
|
|
color: #007cb2;
|
|
|
background: #edd1b0;
|
|
|
}
|
|
|
.ML__center {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__label_padding {
|
|
|
padding: 0 0.5em;
|
|
|
}
|
|
|
.ML__frac-line {
|
|
|
width: 100%;
|
|
|
min-height: 1px;
|
|
|
}
|
|
|
.ML__frac-line:after {
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: max(-1px, -0.04em);
|
|
|
min-height: max(1px, 0.04em);
|
|
|
/* Ensure the line is visible when printing even if "turn off background images" is on*/
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
/* There's a bug since Chrome 62 where
|
|
|
sub-pixel border lines don't draw at some zoom
|
|
|
levels (110%, 90%).
|
|
|
Setting the min-height used to work around it, but that workaround
|
|
|
broke in Chrome 84 or so.
|
|
|
Setting the background (and the min-height) seems to work for now.
|
|
|
*/
|
|
|
background: currentColor;
|
|
|
box-sizing: content-box;
|
|
|
/* Vuetify sets the box-sizing to inherit
|
|
|
causes the fraction line to not draw at all sizes (see #26) */
|
|
|
/* On some versions of Firefox on Windows, the line fails to
|
|
|
draw at some zoom levels, but setting the transform triggers
|
|
|
the hardware accelerated path, which works */
|
|
|
transform: translate(0, 0);
|
|
|
}
|
|
|
.ML__sqrt {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__sqrt-sign {
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__sqrt-line {
|
|
|
display: inline-block;
|
|
|
height: max(1px, 0.04em);
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__sqrt-line:before {
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: min(-1px, -0.04em);
|
|
|
min-height: max(1px, 0.04em);
|
|
|
/* Ensure the line is visible when printing even if "turn off background images" is on*/
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
background: currentColor;
|
|
|
/* On some versions of Firefox on Windows, the line fails to
|
|
|
draw at some zoom levels, but setting the transform triggers
|
|
|
the hardware accelerated path, which works */
|
|
|
transform: translate(0, 0);
|
|
|
}
|
|
|
.ML__sqrt-line:after {
|
|
|
border-bottom-width: 1px;
|
|
|
content: ' ';
|
|
|
display: block;
|
|
|
margin-top: -0.1em;
|
|
|
}
|
|
|
.ML__sqrt-index {
|
|
|
margin-left: 0.27777778em;
|
|
|
margin-right: -0.55555556em;
|
|
|
}
|
|
|
.ML__delim-size1 {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__delim-size2 {
|
|
|
font-family: KaTeX_Size2;
|
|
|
}
|
|
|
.ML__delim-size3 {
|
|
|
font-family: KaTeX_Size3;
|
|
|
}
|
|
|
.ML__delim-size4 {
|
|
|
font-family: KaTeX_Size4;
|
|
|
}
|
|
|
.ML__delim-mult .delim-size1 > span {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__delim-mult .delim-size4 > span {
|
|
|
font-family: KaTeX_Size4;
|
|
|
}
|
|
|
.ML__accent-body > span {
|
|
|
font-family: KaTeX_Main;
|
|
|
width: 0;
|
|
|
}
|
|
|
.ML__accent-vec {
|
|
|
position: relative;
|
|
|
left: 0.24em;
|
|
|
}
|
|
|
/** The markup for a LaTeX formula, either in an editable mathfield or
|
|
|
in a static display.
|
|
|
*/
|
|
|
.ML__latex {
|
|
|
display: inline-block;
|
|
|
direction: ltr;
|
|
|
text-align: left;
|
|
|
text-indent: 0;
|
|
|
text-rendering: auto;
|
|
|
font-family: KaTeX_Main, 'Times New Roman', serif;
|
|
|
font-style: normal;
|
|
|
font-size-adjust: none;
|
|
|
font-stretch: normal;
|
|
|
font-variant-caps: normal;
|
|
|
letter-spacing: normal;
|
|
|
line-height: 1.2;
|
|
|
word-wrap: normal;
|
|
|
word-spacing: normal;
|
|
|
white-space: nowrap;
|
|
|
text-shadow: none;
|
|
|
-webkit-user-select: none;
|
|
|
user-select: none;
|
|
|
width: min-content;
|
|
|
}
|
|
|
.ML__latex .style-wrap {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .mfrac {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .left-right {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .vlist-t {
|
|
|
display: inline-table;
|
|
|
table-layout: fixed;
|
|
|
border-collapse: collapse;
|
|
|
}
|
|
|
.ML__latex .vlist-r {
|
|
|
display: table-row;
|
|
|
}
|
|
|
.ML__latex .vlist {
|
|
|
display: table-cell;
|
|
|
vertical-align: bottom;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .vlist > span {
|
|
|
display: block;
|
|
|
height: 0;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .vlist > span > span {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .vlist > span > .pstrut {
|
|
|
overflow: hidden;
|
|
|
width: 0;
|
|
|
}
|
|
|
.ML__latex .vlist-t2 {
|
|
|
margin-right: -2px;
|
|
|
}
|
|
|
.ML__latex .vlist-s {
|
|
|
display: table-cell;
|
|
|
vertical-align: bottom;
|
|
|
font-size: 1px;
|
|
|
width: 2px;
|
|
|
min-width: 2px;
|
|
|
}
|
|
|
.ML__latex .msubsup {
|
|
|
text-align: left;
|
|
|
}
|
|
|
.ML__latex .negativethinspace {
|
|
|
display: inline-block;
|
|
|
margin-left: -0.16667em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .thinspace {
|
|
|
display: inline-block;
|
|
|
width: 0.16667em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .mediumspace {
|
|
|
display: inline-block;
|
|
|
width: 0.22222em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .thickspace {
|
|
|
display: inline-block;
|
|
|
width: 0.27778em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .enspace {
|
|
|
display: inline-block;
|
|
|
width: 0.5em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .quad {
|
|
|
display: inline-block;
|
|
|
width: 1em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .qquad {
|
|
|
display: inline-block;
|
|
|
width: 2em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .llap,
|
|
|
.ML__latex .rlap {
|
|
|
width: 0;
|
|
|
position: relative;
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .llap > .inner,
|
|
|
.ML__latex .rlap > .inner {
|
|
|
position: absolute;
|
|
|
}
|
|
|
.ML__latex .llap > .fix,
|
|
|
.ML__latex .rlap > .fix {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .llap > .inner {
|
|
|
right: 0;
|
|
|
}
|
|
|
.ML__latex .rlap > .inner {
|
|
|
left: 0;
|
|
|
}
|
|
|
.ML__latex .rule {
|
|
|
display: inline-block;
|
|
|
border: solid 0;
|
|
|
position: relative;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line,
|
|
|
.ML__latex .underline .underline-line {
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line:before,
|
|
|
.ML__latex .underline .underline-line:before {
|
|
|
content: '';
|
|
|
border-bottom-style: solid;
|
|
|
border-bottom-width: max(1px, 0.04em);
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
display: block;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line:after,
|
|
|
.ML__latex .underline .underline-line:after {
|
|
|
border-bottom-style: solid;
|
|
|
border-bottom-width: max(1px, 0.04em);
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: -1px;
|
|
|
}
|
|
|
.ML__latex .stretchy {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
left: 0;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .stretchy:before,
|
|
|
.ML__latex .stretchy:after {
|
|
|
content: '';
|
|
|
}
|
|
|
.ML__latex .stretchy svg {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
height: inherit;
|
|
|
fill: currentColor;
|
|
|
stroke: currentColor;
|
|
|
fill-rule: nonzero;
|
|
|
fill-opacity: 1;
|
|
|
stroke-width: 1;
|
|
|
stroke-linecap: butt;
|
|
|
stroke-linejoin: miter;
|
|
|
stroke-miterlimit: 4;
|
|
|
stroke-dasharray: none;
|
|
|
stroke-dashoffset: 0;
|
|
|
stroke-opacity: 1;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-2 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
width: 50.2%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-2-of-2 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
right: 0;
|
|
|
width: 50.2%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
width: 25.1%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-2-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 25%;
|
|
|
width: 50%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-3-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
right: 0;
|
|
|
width: 25.1%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-1 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
left: 0;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .nulldelimiter {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .op-group {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .op-symbol {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .op-symbol.small-op {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__latex .op-symbol.large-op {
|
|
|
font-family: KaTeX_Size2;
|
|
|
}
|
|
|
.ML__latex .mtable .vertical-separator {
|
|
|
display: inline-block;
|
|
|
min-width: 1px;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ML__latex .mtable .arraycolsep {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-m > .vlist-t {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-c > .vlist-t {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-l > .vlist-t {
|
|
|
text-align: left;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-r > .vlist-t {
|
|
|
text-align: right;
|
|
|
}
|
|
|
.ML__error {
|
|
|
display: inline-block;
|
|
|
background-image: radial-gradient(ellipse at center, hsl(341, 100%, 40%), rgba(0, 0, 0, 0) 70%);
|
|
|
background-color: hsla(341, 100%, 40%, 0.1);
|
|
|
background-repeat: repeat-x;
|
|
|
background-size: 3px 3px;
|
|
|
padding-bottom: 3px;
|
|
|
background-position: 0 100%;
|
|
|
}
|
|
|
.ML__error > .ML__error {
|
|
|
background: transparent;
|
|
|
padding: 0;
|
|
|
}
|
|
|
.ML__placeholder {
|
|
|
color: var(--_placeholder-color);
|
|
|
opacity: var(--_placeholder-opacity);
|
|
|
padding-left: 0.4ex;
|
|
|
padding-right: 0.4ex;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
}
|
|
|
.ML__notation {
|
|
|
position: absolute;
|
|
|
box-sizing: border-box;
|
|
|
line-height: 0;
|
|
|
}
|
|
|
/* This class is used to implement the \`\\mathtip\` and \`\\texttip\` commands
|
|
|
For UI elements, see \`[data-ML__tooltip]\`
|
|
|
*/
|
|
|
.ML__tooltip-container {
|
|
|
position: relative;
|
|
|
transform: scale(0);
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content {
|
|
|
position: fixed;
|
|
|
display: inline-table;
|
|
|
visibility: hidden;
|
|
|
z-index: 2;
|
|
|
width: max-content;
|
|
|
max-width: 400px;
|
|
|
padding: 12px 12px;
|
|
|
border-radius: 8px;
|
|
|
background: #616161;
|
|
|
--_selection-color: #fff;
|
|
|
color: #fff;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
opacity: 0;
|
|
|
transition: opacity 0.15s cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content .ML__text {
|
|
|
white-space: normal;
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content .ML__base {
|
|
|
display: contents;
|
|
|
}
|
|
|
.ML__tooltip-container:hover .ML__tooltip-content {
|
|
|
visibility: visible;
|
|
|
opacity: 1;
|
|
|
font-size: 0.75em;
|
|
|
transform: scale(1) translate(0, 3em);
|
|
|
}
|
|
|
`,X0=`#mathlive-environment-popover.is-visible {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
#mathlive-environment-popover {
|
|
|
--_environment-panel-height: var(--environment-panel-height, 70px);
|
|
|
--_accent-color: var(--accent-color, #aaa);
|
|
|
--_background: var(--environment-panel-background, #fff);
|
|
|
--_button-background: var(--environment-panel-button-background, white);
|
|
|
--_button-background-hover: var(--environment-panel-button-background-hover, #f5f5f7);
|
|
|
--_button-background-active: var(--environment-panel-button-background-active, #f5f5f7);
|
|
|
--_button-text: var(--environment-panel-button-text, #e3e4e8);
|
|
|
position: absolute;
|
|
|
width: calc(var(--_environment-panel-height) * 2);
|
|
|
height: var(--_environment-panel-height);
|
|
|
border-radius: 4px;
|
|
|
border: 1.5px solid var(--_accent-color);
|
|
|
background-color: var(--_background);
|
|
|
box-shadow: 0 0 30px 0 var(--environment-shadow, rgba(0, 0, 0, 0.4));
|
|
|
pointer-events: all;
|
|
|
visibility: hidden;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons {
|
|
|
height: calc(var(--_environment-panel-height) * 5/4);
|
|
|
width: calc(var(--_environment-panel-height) * 5/4);
|
|
|
margin-left: calc(0px - var(--_environment-panel-height) * 0.16);
|
|
|
margin-top: calc(0px - var(--_environment-panel-height) * 0.19);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons .font {
|
|
|
fill: white;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons circle {
|
|
|
fill: #7f7f7f;
|
|
|
transition: fill 300ms;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons .MLEP__array-insert-background {
|
|
|
fill-opacity: 1;
|
|
|
fill: var(--_background);
|
|
|
stroke: var(--_accent-color);
|
|
|
stroke-width: 3px;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons line {
|
|
|
stroke: var(--_accent-color);
|
|
|
stroke-opacity: 0;
|
|
|
stroke-width: 40;
|
|
|
pointer-events: none;
|
|
|
transition: stroke-opacity 300ms;
|
|
|
stroke-linecap: round;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover circle {
|
|
|
fill: var(--_accent-color);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover line {
|
|
|
stroke-opacity: 1;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls {
|
|
|
height: 100%;
|
|
|
width: 50%;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options {
|
|
|
width: var(--_environment-panel-height);
|
|
|
height: var(--_environment-panel-height);
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-around;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg {
|
|
|
pointer-events: all;
|
|
|
margin-top: 2px;
|
|
|
width: calc(var(--_environment-panel-height) / 3 * 28 / 24);
|
|
|
height: calc(var(--_environment-panel-height) / 3 - 2px);
|
|
|
border-radius: calc(var(--_environment-panel-height) / 25);
|
|
|
background-color: var(--_button-background);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg:hover {
|
|
|
background-color: var(--_button-background-hover);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg line {
|
|
|
stroke: var(--_button-text);
|
|
|
stroke-width: 2;
|
|
|
stroke-linecap: round;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg rect,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path {
|
|
|
fill-opacity: 0;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active {
|
|
|
pointer-events: none;
|
|
|
background-color: var(--_button-background-active);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active path,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active line {
|
|
|
stroke: var(--_accent-color);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active circle {
|
|
|
fill: var(--_accent-color);
|
|
|
}
|
|
|
`,lg=`/* The element that display info while in latex mode */
|
|
|
#mathlive-suggestion-popover {
|
|
|
background-color: rgba(97, 97, 97);
|
|
|
color: #fff;
|
|
|
text-align: center;
|
|
|
border-radius: 8px;
|
|
|
position: fixed;
|
|
|
z-index: 1;
|
|
|
display: none;
|
|
|
flex-direction: column;
|
|
|
justify-content: center;
|
|
|
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
|
|
|
}
|
|
|
#mathlive-suggestion-popover.top-tip::after {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
top: -15px;
|
|
|
left: calc(50% - 15px);
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
border-left: 15px solid transparent;
|
|
|
border-right: 15px solid transparent;
|
|
|
border-bottom: 15px solid rgba(97, 97, 97);
|
|
|
font-size: 1rem;
|
|
|
}
|
|
|
#mathlive-suggestion-popover.bottom-tip::after {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
bottom: -15px;
|
|
|
left: calc(50% - 15px);
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
border-left: 15px solid transparent;
|
|
|
border-right: 15px solid transparent;
|
|
|
border-top: 15px solid rgba(97, 97, 97);
|
|
|
font-size: 1rem;
|
|
|
}
|
|
|
#mathlive-suggestion-popover.is-animated {
|
|
|
transition: all 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
|
|
|
animation: ML__fade-in cubic-bezier(0, 0, 0.2, 1) 0.15s;
|
|
|
}
|
|
|
#mathlive-suggestion-popover.is-visible {
|
|
|
display: flex;
|
|
|
}
|
|
|
@keyframes ML__fade-in {
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
/* The wrapper class for the entire content of the popover panel */
|
|
|
#mathlive-suggestion-popover ul {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
list-style: none;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
align-items: flex-start;
|
|
|
max-height: 400px;
|
|
|
overflow-y: auto;
|
|
|
}
|
|
|
#mathlive-suggestion-popover li {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
margin: 8px;
|
|
|
padding: 8px;
|
|
|
width: calc(100% - 16px - 16px);
|
|
|
column-gap: 1em;
|
|
|
border-radius: 8px;
|
|
|
cursor: pointer;
|
|
|
/* Since the content can be clicked on, provide feedback on hover */
|
|
|
}
|
|
|
#mathlive-suggestion-popover li a {
|
|
|
color: #5ea6fd;
|
|
|
padding-top: 0.3em;
|
|
|
margin-top: 0.4em;
|
|
|
display: block;
|
|
|
}
|
|
|
#mathlive-suggestion-popover li a:hover {
|
|
|
color: #5ea6fd;
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
#mathlive-suggestion-popover li:hover,
|
|
|
#mathlive-suggestion-popover li.is-pressed,
|
|
|
#mathlive-suggestion-popover li.is-active {
|
|
|
background: rgba(255, 255, 255, 0.1);
|
|
|
}
|
|
|
/* The command inside a popover (inside a #mathlive-suggestion-popover) */
|
|
|
.ML__popover__command {
|
|
|
font-size: 1.6rem;
|
|
|
font-family: KaTeX_Main;
|
|
|
}
|
|
|
.ML__popover__current {
|
|
|
background: #5ea6fd;
|
|
|
color: #fff;
|
|
|
}
|
|
|
.ML__popover__latex {
|
|
|
font-family: 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
|
|
|
align-self: center;
|
|
|
}
|
|
|
/* The keyboard shortcuts for a symbol as displayed in the popover */
|
|
|
.ML__popover__keybinding {
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 0.8em;
|
|
|
opacity: 0.7;
|
|
|
}
|
|
|
/* Style for the character that joins the modifiers of a keyboard shortcut
|
|
|
(usually a "+" sign)*/
|
|
|
.ML__shortcut-join {
|
|
|
opacity: 0.5;
|
|
|
}
|
|
|
`,Uf=`/* The element that displays the keys as the user type them */
|
|
|
#mathlive-keystroke-caption-panel {
|
|
|
visibility: hidden;
|
|
|
/*min-width: 160px;*/
|
|
|
/*background-color: rgba(97, 97, 200, .95);*/
|
|
|
background: var(--secondary, hsl(var(--_hue), 19%, 26%));
|
|
|
border-color: var(--secondary-border, hsl(0, 0%, 91%));
|
|
|
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
|
|
|
text-align: center;
|
|
|
border-radius: 6px;
|
|
|
padding: 16px;
|
|
|
position: absolute;
|
|
|
z-index: 1;
|
|
|
display: flex;
|
|
|
flex-direction: row-reverse;
|
|
|
justify-content: center;
|
|
|
--keystroke: white;
|
|
|
--on-keystroke: #555;
|
|
|
--keystroke-border: #f7f7f7;
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
body:not([theme='light']) #mathlive-keystroke-caption-panel {
|
|
|
--keystroke: hsl(var(--_hue), 50%, 30%);
|
|
|
--on-keystroke: hsl(0, 0%, 98%);
|
|
|
--keystroke-border: hsl(var(--_hue), 50%, 25%);
|
|
|
}
|
|
|
}
|
|
|
body[theme='dark'] #mathlive-keystroke-caption-panel {
|
|
|
--keystroke: hsl(var(--_hue), 50%, 30%);
|
|
|
--on-keystroke: hsl(0, 0%, 98%);
|
|
|
--keystroke-border: hsl(var(--_hue), 50%, 25%);
|
|
|
}
|
|
|
#mathlive-keystroke-caption-panel > span {
|
|
|
min-width: 14px;
|
|
|
/*height: 8px;*/
|
|
|
margin: 0 8px 0 0;
|
|
|
padding: 4px;
|
|
|
background-color: var(--keystroke);
|
|
|
color: var(--on-keystroke);
|
|
|
fill: currentColor;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 1em;
|
|
|
border-radius: 6px;
|
|
|
border: 2px solid var(--keystroke-border);
|
|
|
/*box-shadow: 0 7px 14px rgba(0,0,0,0.25), 0 5px 5px rgba(0,0,0,0.22);*/
|
|
|
}
|
|
|
`,Zf=`.ML__keyboard {
|
|
|
--_keyboard-height: 0;
|
|
|
--_keyboard-zindex: var(--keyboard-zindex, 105);
|
|
|
--_accent-color: var(--keyboard-accent-color, #0c75d8);
|
|
|
--_background: var(--keyboard-background, #cacfd7);
|
|
|
--_border: var(--keyboard-border, #ddd);
|
|
|
--_padding-horizontal: var(--keyboard-padding-horizontal, 0px);
|
|
|
--_padding-top: var(--keyboard-padding-top, 5px);
|
|
|
--_padding-bottom: var(--keyboard-padding-bottom, 0px);
|
|
|
--_row-padding-left: var(--keyboard-row-padding-left, 0px);
|
|
|
--_row-padding-right: var(--keyboard-row-padding-right, 0px);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);
|
|
|
--_toolbar-text-active: var(--keyboard-toolbar-text-active, var(--_accent-color));
|
|
|
--_toolbar-background: var(--keyboard-toolbar-background, transparent);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);
|
|
|
--_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);
|
|
|
--_toolbar-font-size: var(--keyboard-toolbar-font-size, '135%');
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);
|
|
|
--_keycap-background: var(--keycap-background, white);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);
|
|
|
--_keycap-background-active: var(--keycap-background-active, var(--_accent-color));
|
|
|
--_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));
|
|
|
--_keycap-border: var(--keycap-border, #e5e6e9);
|
|
|
--_keycap-border-bottom: var(--keycap-border-bottom, #8d8f92);
|
|
|
--_keycap-text: var(--keycap-text, #000);
|
|
|
--_keycap-text-active: var(--keycap-text-active, #fff);
|
|
|
--_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));
|
|
|
--_keycap-text-pressed: var(--keycap-text-pressed, #fff);
|
|
|
--_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));
|
|
|
--_keycap-primary-background: var(--keycap-primary-background, var(--_accent-color));
|
|
|
--_keycap-primary-text: var(--keycap-primary-text, #ddd);
|
|
|
--_keycap-primary-background-hover: var(--keycap-primary-background-hover, #0d80f2);
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #060707);
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);
|
|
|
--_keycap-height: var(--keycap-height, 60px);
|
|
|
/* Keycap width (incl. margin) */
|
|
|
--_keycap-max-width: var(--keycap-max-width, 100px);
|
|
|
--_keycap-gap: var(--keycap-gap, 8px);
|
|
|
--_keycap-font-size: var(--keycap-font-size, clamp(16px, 4cqw, 24px));
|
|
|
--_keycap-small-font-size: var(--keycap-small-font-size, calc(var(--keycap-font-size) * 0.8));
|
|
|
--_keycap-extra-small-font-size: var(--keycap-extra-small-font-size, calc(var(--keycap-font-size) / 1.42));
|
|
|
--_variant-panel-background: var(--variant-panel-background, #fff);
|
|
|
--_variant-keycap-text: var(--variant-keycap-text, var(--_keycap-text));
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));
|
|
|
--_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 70px);
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 30px);
|
|
|
--_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 12px);
|
|
|
--_keycap-shift-font-size: var(--keycap-shift-font-size, 16px);
|
|
|
--_keycap-shift-color: var(--keycap-shift-color, var(--_accent-color));
|
|
|
--_box-placeholder-color: var(--box-placeholder-color, var(--_accent-color));
|
|
|
--_box-placeholder-pressed-color: var(--box-placeholder-pressed-color, var(--keycap-text-pressed));
|
|
|
}
|
|
|
.is-math-mode .MLK__rows .if-text-mode,
|
|
|
.is-text-mode .MLK__rows .if-math-mode {
|
|
|
display: none;
|
|
|
}
|
|
|
.if-can-undo,
|
|
|
.if-can-redo,
|
|
|
.if-can-copy,
|
|
|
.if-can-cut,
|
|
|
.if-can-paste {
|
|
|
opacity: 0.4;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.can-undo .if-can-undo,
|
|
|
.can-redo .if-can-redo,
|
|
|
.can-copy .if-can-copy,
|
|
|
.can-cut .if-can-cut,
|
|
|
.can-paste .if-can-paste {
|
|
|
opacity: 1;
|
|
|
pointer-events: all;
|
|
|
}
|
|
|
body > .ML__keyboard {
|
|
|
position: fixed;
|
|
|
--_padding-bottom: calc(var(--keyboard-padding-bottom, 0px) + env(safe-area-inset-bottom, 0));
|
|
|
}
|
|
|
body > .ML__keyboard.is-visible > .MLK__backdrop {
|
|
|
box-shadow: 0 -5px 6px rgba(0, 0, 0, 0.08);
|
|
|
border-top: 1px solid var(--_border);
|
|
|
}
|
|
|
body > .ML__keyboard.backdrop-is-transparent.is-visible > .MLK__backdrop {
|
|
|
box-shadow: none;
|
|
|
border: none;
|
|
|
}
|
|
|
body > .ML__keyboard.is-visible.animate > .MLK__backdrop {
|
|
|
transition: 0.28s cubic-bezier(0, 0, 0.2, 1);
|
|
|
transition-property: transform, opacity;
|
|
|
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__keyboard {
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
height: 100%;
|
|
|
width: 100%;
|
|
|
z-index: var(--_keyboard-zindex);
|
|
|
box-sizing: border-box;
|
|
|
outline: none;
|
|
|
border: none;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
line-height: 1;
|
|
|
overflow-wrap: unset;
|
|
|
text-align: left;
|
|
|
vertical-align: baseline;
|
|
|
cursor: auto;
|
|
|
white-space: pre;
|
|
|
box-shadow: none;
|
|
|
opacity: 1;
|
|
|
transform: none;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.ML__keyboard :where(div) {
|
|
|
box-sizing: border-box;
|
|
|
outline: none;
|
|
|
border: none;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
line-height: 1;
|
|
|
overflow-wrap: unset;
|
|
|
text-align: left;
|
|
|
vertical-align: baseline;
|
|
|
cursor: auto;
|
|
|
white-space: pre;
|
|
|
box-shadow: none;
|
|
|
transform: none;
|
|
|
}
|
|
|
.MLK__backdrop {
|
|
|
position: absolute;
|
|
|
bottom: calc(-1 * var(--_keyboard-height));
|
|
|
width: 100%;
|
|
|
height: var(--_keyboard-height);
|
|
|
box-sizing: border-box;
|
|
|
padding-top: var(--_padding-top);
|
|
|
padding-bottom: var(--_padding-bottom);
|
|
|
padding-left: var(--_padding-horizontal);
|
|
|
padding-right: var(--_padding-horizontal);
|
|
|
opacity: 0;
|
|
|
visibility: hidden;
|
|
|
transform: translate(0, 0);
|
|
|
background: var(--_background);
|
|
|
}
|
|
|
.backdrop-is-transparent .MLK__backdrop {
|
|
|
background: transparent;
|
|
|
}
|
|
|
/* If a custom layout has a custom container/backdrop
|
|
|
(backdrop-is-transparent), make sure to let pointer event go through. */
|
|
|
.backdrop-is-transparent .MLK__plate {
|
|
|
background: transparent;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
/* If a custom layout has a custom container/backdrop, make sure to
|
|
|
allow pointer events on it. */
|
|
|
.backdrop-is-transparent .MLK__layer > div > div {
|
|
|
pointer-events: all;
|
|
|
}
|
|
|
.ML__keyboard.is-visible > .MLK__backdrop {
|
|
|
transform: translate(0, calc(-1 * var(--_keyboard-height)));
|
|
|
opacity: 1;
|
|
|
visibility: visible;
|
|
|
}
|
|
|
.caps-lock-indicator {
|
|
|
display: none;
|
|
|
width: 8px;
|
|
|
height: 8px;
|
|
|
background: #0cbc0c;
|
|
|
box-shadow: inset 0 0 4px 0 #13ca13, 0 0 4px 0 #a9ef48;
|
|
|
border-radius: 8px;
|
|
|
right: 8px;
|
|
|
top: 8px;
|
|
|
position: absolute;
|
|
|
}
|
|
|
.ML__keyboard.is-caps-lock .caps-lock-indicator {
|
|
|
display: block;
|
|
|
}
|
|
|
.ML__keyboard.is-caps-lock .shift {
|
|
|
background: var(--_keycap-background-active);
|
|
|
color: var(--_keycap-text-active);
|
|
|
}
|
|
|
.MLK__plate {
|
|
|
position: absolute;
|
|
|
top: var(--_padding-top);
|
|
|
left: var(--_padding-horizontal);
|
|
|
width: calc(100% - 2 * var(--_padding-horizontal));
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
box-sizing: border-box;
|
|
|
container-type: inline-size;
|
|
|
touch-action: none;
|
|
|
-webkit-user-select: none;
|
|
|
user-select: none;
|
|
|
pointer-events: all;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 16px;
|
|
|
/* Size of toolbar labels */
|
|
|
font-weight: 400;
|
|
|
text-shadow: none;
|
|
|
}
|
|
|
.ML__box-placeholder {
|
|
|
color: var(--_box-placeholder-color);
|
|
|
}
|
|
|
.MLK__tex {
|
|
|
font-family: KaTeX_Main, KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
}
|
|
|
.MLK__tex-math {
|
|
|
font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.MLK__layer {
|
|
|
display: none;
|
|
|
outline: none;
|
|
|
}
|
|
|
.MLK__layer.is-visible {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
}
|
|
|
/* Keyboard layouts are made or rows of keys... */
|
|
|
.MLK__rows {
|
|
|
--_keycap-width: min(var(--_keycap-max-width), 10cqw);
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
align-items: center;
|
|
|
border-collapse: separate;
|
|
|
clear: both;
|
|
|
border: 0;
|
|
|
margin: 0;
|
|
|
margin-bottom: var(--_keycap-gap);
|
|
|
gap: var(--_keycap-gap);
|
|
|
/* If the styling include, e.g., some shadows, they will be
|
|
|
cut off by the overflow. In that case, set the padding to
|
|
|
compensate. */
|
|
|
padding-left: var(--_row-padding-left);
|
|
|
padding-right: var(--_row-padding-right);
|
|
|
overflow: visible;
|
|
|
touch-action: none;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row {
|
|
|
display: flex;
|
|
|
flex-flow: row;
|
|
|
justify-content: center;
|
|
|
width: 100%;
|
|
|
gap: var(--_keycap-gap);
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
/* For the alignment of the text on some modifiers (e.g. shift) */
|
|
|
/* Extra spacing between two adjacent keys */
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .tex {
|
|
|
font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .tex-math {
|
|
|
font-family: KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .big-op {
|
|
|
font-size: calc(1.25 * var(--_keycap-font-size));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .small {
|
|
|
font-size: var(--_keycap-small-font-size);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .bottom {
|
|
|
justify-content: flex-end;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .left {
|
|
|
align-items: flex-start;
|
|
|
padding-left: 12px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .right {
|
|
|
align-items: flex-end;
|
|
|
padding-right: 12px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w0 {
|
|
|
width: 0;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w5 {
|
|
|
width: calc(0.5 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w15 {
|
|
|
width: calc(1.5 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w20 {
|
|
|
width: calc(2 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w40 {
|
|
|
width: calc(4 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w50 {
|
|
|
width: calc(5 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .MLK__keycap.w50 {
|
|
|
font-size: 80%;
|
|
|
padding-top: 10px;
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .separator {
|
|
|
background: transparent;
|
|
|
border: none;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .horizontal-rule {
|
|
|
height: 6px;
|
|
|
margin-top: 3px;
|
|
|
margin-bottom: 0;
|
|
|
width: 100%;
|
|
|
border-radius: 0;
|
|
|
border-top: var(--_horizontal-rule);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .ghost {
|
|
|
background: var(--_toolbar-background);
|
|
|
border: none;
|
|
|
color: var(--_toolbar-text);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .ghost:hover {
|
|
|
background: var(--_toolbar-background-hover);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .bigfnbutton {
|
|
|
font-size: var(--_keycap-extra-small-font-size);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift,
|
|
|
.MLK__rows > .MLK__row .action {
|
|
|
color: var(--_keycap-secondary-text);
|
|
|
background: var(--_keycap-secondary-background);
|
|
|
border-color: var(--_keycap-secondary-border);
|
|
|
border-bottom-color: var(--_keycap-secondary-border-bottom);
|
|
|
line-height: 0.8;
|
|
|
font-size: min(1rem, var(--_keycap-small-font-size));
|
|
|
font-weight: 600;
|
|
|
padding: 8px 12px 8px 12px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift:hover,
|
|
|
.MLK__rows > .MLK__row .action:hover {
|
|
|
background: var(--_keycap-secondary-background-hover);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .action.primary {
|
|
|
background: var(--_keycap-primary-background);
|
|
|
color: var(--_keycap-primary-text);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .action.primary:hover {
|
|
|
background: var(--_keycap-primary-background-hover);
|
|
|
color: var(--_keycap-primary-text);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift.selected,
|
|
|
.MLK__rows > .MLK__row .action.selected {
|
|
|
color: var(--_toolbar-text-active);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift.selected.is-pressed,
|
|
|
.MLK__rows > .MLK__row .action.selected.is-pressed,
|
|
|
.MLK__rows > .MLK__row .shift.selected.is-active,
|
|
|
.MLK__rows > .MLK__row .action.selected.is-active {
|
|
|
color: white;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .warning {
|
|
|
background: #cd0030;
|
|
|
color: white;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .warning svg.svg-glyph {
|
|
|
width: 24px;
|
|
|
height: 24px;
|
|
|
min-height: 24px;
|
|
|
}
|
|
|
/** A regular keycap
|
|
|
* Use the :where() pseudo-class to give it a very low specifity,
|
|
|
* so that it can be overriden by custom style.
|
|
|
*/
|
|
|
:where(.MLK__rows > .MLK__row div) {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
align-items: center;
|
|
|
justify-content: space-evenly;
|
|
|
width: calc(var(--_keycap-width) - var(--_keycap-gap));
|
|
|
height: var(--_keycap-height);
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
vertical-align: top;
|
|
|
text-align: center;
|
|
|
float: left;
|
|
|
color: var(--_keycap-text);
|
|
|
fill: currentColor;
|
|
|
font-size: var(--_keycap-font-size);
|
|
|
background: var(--_keycap-background);
|
|
|
border: 1px solid var(--_keycap-border);
|
|
|
border-bottom-color: var(--_keycap-border-bottom);
|
|
|
border-radius: 6px;
|
|
|
cursor: pointer;
|
|
|
touch-action: none;
|
|
|
/* Keys with a variants panel */
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
-webkit-user-select: none;
|
|
|
user-select: none;
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div):hover {
|
|
|
overflow: visible;
|
|
|
background: var(--_keycap-background-hover);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) .ML__latex {
|
|
|
pointer-events: none;
|
|
|
touch-action: none;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) svg.svg-glyph {
|
|
|
margin: 8px 0;
|
|
|
width: 20px;
|
|
|
height: 20px;
|
|
|
min-height: 20px;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) svg.svg-glyph-lg {
|
|
|
margin: 8px 0;
|
|
|
width: 24px;
|
|
|
height: 24px;
|
|
|
min-height: 24px;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__tex-math {
|
|
|
font-size: 25px;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).is-pressed {
|
|
|
background: var(--_keycap-background-pressed);
|
|
|
color: var(--_keycap-text-pressed);
|
|
|
--_box-placeholder-color: var(--_box-placeholder-pressed-color);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed {
|
|
|
z-index: calc(var(--_keyboard-zindex) - 5);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active aside,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active aside,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed aside,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed aside {
|
|
|
display: none;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active .MLK__shift,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active .MLK__shift,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed .MLK__shift,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed .MLK__shift {
|
|
|
display: none;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).shift.is-pressed,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed {
|
|
|
background: var(--_keycap-background-pressed);
|
|
|
color: var(--_keycap-text-pressed);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).shift.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active {
|
|
|
background: var(--_keycap-background-active);
|
|
|
color: var(--_keycap-text-active);
|
|
|
--_box-placeholder-color: var(--_box-placeholder-pressed-color);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) small {
|
|
|
color: var(--_keycap-secondary-text);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) aside {
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 10px;
|
|
|
line-height: 10px;
|
|
|
color: var(--_keycap-secondary-text);
|
|
|
}
|
|
|
/* Add an attribute 'data-tooltip' to display a tooltip on hover.
|
|
|
Note there are a different set of tooltip rules for the keyboard toggle
|
|
|
(it's in a different CSS tree) */
|
|
|
.ML__keyboard [data-tooltip] {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__keyboard [data-tooltip]::after {
|
|
|
position: absolute;
|
|
|
display: inline-table;
|
|
|
content: attr(data-tooltip);
|
|
|
top: inherit;
|
|
|
bottom: 100%;
|
|
|
width: max-content;
|
|
|
max-width: 200px;
|
|
|
padding: 8px 8px;
|
|
|
background: #616161;
|
|
|
color: #fff;
|
|
|
text-align: center;
|
|
|
z-index: 2;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
border-radius: 2px;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-weight: 400;
|
|
|
font-size: 12px;
|
|
|
transition: all 0.15s cubic-bezier(0.4, 0, 1, 1) 1s;
|
|
|
opacity: 0;
|
|
|
transform: scale(0.5);
|
|
|
}
|
|
|
.ML__keyboard [data-tooltip]:hover {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__keyboard [data-tooltip]:hover::after {
|
|
|
opacity: 1;
|
|
|
transform: scale(1);
|
|
|
}
|
|
|
.MLK__toolbar {
|
|
|
align-self: center;
|
|
|
display: flex;
|
|
|
flex-flow: row;
|
|
|
justify-content: space-between;
|
|
|
width: 100%;
|
|
|
max-width: 996px;
|
|
|
min-height: 32px;
|
|
|
/* Icons for undo/redo, etc. */
|
|
|
}
|
|
|
.MLK__toolbar svg {
|
|
|
height: 20px;
|
|
|
width: 20px;
|
|
|
}
|
|
|
.MLK__toolbar > .left {
|
|
|
position: relative;
|
|
|
display: flex;
|
|
|
justify-content: flex-start;
|
|
|
flex-flow: row;
|
|
|
}
|
|
|
.MLK__toolbar > .right {
|
|
|
display: flex;
|
|
|
justify-content: flex-end;
|
|
|
flex-flow: row;
|
|
|
}
|
|
|
.MLK__toolbar > div > div {
|
|
|
/* "button" in the toolbar */
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
color: var(--_toolbar-text);
|
|
|
fill: currentColor;
|
|
|
background: var(--_toolbar-background);
|
|
|
font-size: var(--_toolbar-font-size);
|
|
|
padding: 4px 15px;
|
|
|
cursor: pointer;
|
|
|
width: max-content;
|
|
|
min-width: 42px;
|
|
|
min-height: 34px;
|
|
|
border: none;
|
|
|
padding-left: 10px;
|
|
|
padding-right: 10px;
|
|
|
padding-bottom: 8px;
|
|
|
padding-top: 8px;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 4px;
|
|
|
margin-left: 4px;
|
|
|
margin-right: 4px;
|
|
|
border-radius: 8px;
|
|
|
box-shadow: none;
|
|
|
border-bottom: 2px solid transparent;
|
|
|
}
|
|
|
.MLK__toolbar > div > div:not(.disabled):not(.selected):hover {
|
|
|
background: var(--_toolbar-background-hover);
|
|
|
}
|
|
|
.MLK__toolbar > div > div.disabled svg,
|
|
|
.MLK__toolbar > div > div.disabled:hover svg,
|
|
|
.MLK__toolbar > div > div.disabled.is-pressed svg {
|
|
|
color: var(--_toolbar-text);
|
|
|
opacity: 0.2;
|
|
|
}
|
|
|
.MLK__toolbar > div > div:hover,
|
|
|
.MLK__toolbar > div > div:active,
|
|
|
.MLK__toolbar > div > div.is-pressed,
|
|
|
.MLK__toolbar > div > div.is-active {
|
|
|
color: var(--_toolbar-text-active);
|
|
|
}
|
|
|
.MLK__toolbar > div > div.selected {
|
|
|
color: var(--_toolbar-text-active);
|
|
|
background: var(--_toolbar-background-selected);
|
|
|
border-radius: 0;
|
|
|
border-bottom-color: var(--_toolbar-text-active);
|
|
|
padding-bottom: 4px;
|
|
|
margin-bottom: 8px;
|
|
|
}
|
|
|
/* This is the element that displays variants on press+hold */
|
|
|
.MLK__variant-panel {
|
|
|
visibility: hidden;
|
|
|
position: fixed;
|
|
|
display: flex;
|
|
|
flex-flow: row wrap-reverse;
|
|
|
justify-content: center;
|
|
|
align-content: center;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
bottom: auto;
|
|
|
top: 0;
|
|
|
box-sizing: content-box;
|
|
|
transform: none;
|
|
|
z-index: calc(var(--_keyboard-zindex) + 1);
|
|
|
touch-action: none;
|
|
|
max-width: 350px;
|
|
|
background: var(--_variant-panel-background);
|
|
|
text-align: center;
|
|
|
border-radius: 6px;
|
|
|
padding: 6px;
|
|
|
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
|
|
|
transition: none;
|
|
|
}
|
|
|
.MLK__variant-panel.is-visible {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
.MLK__variant-panel.compact {
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 50px);
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
|
|
|
--_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 10px);
|
|
|
}
|
|
|
.MLK__variant-panel .item {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
font-size: var(--_variant-keycap-font-size);
|
|
|
height: var(--_variant-keycap-length);
|
|
|
width: var(--_variant-keycap-length);
|
|
|
margin: 0;
|
|
|
box-sizing: border-box;
|
|
|
border-radius: 5px;
|
|
|
border: 1px solid transparent;
|
|
|
background: transparent;
|
|
|
pointer-events: all;
|
|
|
cursor: pointer;
|
|
|
color: var(--_variant-keycap-text);
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
@media (max-height: 412px) {
|
|
|
.MLK__variant-panel .item {
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 50px);
|
|
|
}
|
|
|
}
|
|
|
.MLK__variant-panel .item .ML__latex {
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.MLK__variant-panel .item.is-active {
|
|
|
background: var(--_variant-keycap-background-active);
|
|
|
color: var(--_variant-keycap-text-active);
|
|
|
}
|
|
|
.MLK__variant-panel .item.is-pressed {
|
|
|
background: var(--_variant-keycap-background-pressed);
|
|
|
color: var(--_variant-keycap-text-pressed);
|
|
|
}
|
|
|
.MLK__variant-panel .item.small {
|
|
|
font-size: var(--_keycap-small-font-size);
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button {
|
|
|
box-sizing: border-box;
|
|
|
background: #fbfbfb;
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button > span {
|
|
|
display: inline-block;
|
|
|
margin: 6px;
|
|
|
width: calc(100% - 12px);
|
|
|
height: calc(100% - 12px);
|
|
|
border-radius: 50%;
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button:hover {
|
|
|
background: #f0f0f0;
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button:hover > span {
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
.MLK__variant-panel .item.box > div,
|
|
|
.MLK__variant-panel .item.box > span {
|
|
|
border: 1px dashed rgba(0, 0, 0, 0.24);
|
|
|
}
|
|
|
.MLK__variant-panel .item .warning {
|
|
|
min-height: 60px;
|
|
|
min-width: 60px;
|
|
|
background: #cd0030;
|
|
|
color: white;
|
|
|
padding: 5px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
border-radius: 5px;
|
|
|
}
|
|
|
.MLK__variant-panel .item .warning.is-pressed,
|
|
|
.MLK__variant-panel .item .warning.is-active {
|
|
|
background: red;
|
|
|
}
|
|
|
.MLK__variant-panel .item .warning svg.svg-glyph {
|
|
|
width: 50px;
|
|
|
height: 50px;
|
|
|
}
|
|
|
.MLK__variant-panel .item aside {
|
|
|
font-size: var(--_variant-keycap-aside-font-size);
|
|
|
line-height: 12px;
|
|
|
opacity: 0.78;
|
|
|
padding-top: 2px;
|
|
|
}
|
|
|
.MLK__keycap {
|
|
|
position: relative;
|
|
|
}
|
|
|
.MLK__shift {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
right: 4px;
|
|
|
top: 4px;
|
|
|
font-size: var(--_keycap-shift-font-size);
|
|
|
color: var(--_keycap-shift-color);
|
|
|
}
|
|
|
.hide-shift .MLK__shift {
|
|
|
display: none;
|
|
|
}
|
|
|
@media (max-width: 414px) {
|
|
|
.MLK__variant-panel {
|
|
|
max-width: 350px;
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 50px);
|
|
|
}
|
|
|
}
|
|
|
/* @xs breakpoint: iPhone 5 */
|
|
|
@container (max-width: 414px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-gap: max(var(--_keycap-gap, 2px), 2px);
|
|
|
--_keycap-height: max(var(--_keycap-height), 42px);
|
|
|
--_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);
|
|
|
}
|
|
|
.MLK__toolbar > div > div {
|
|
|
font-size: 100%;
|
|
|
margin-left: 2px;
|
|
|
margin-right: 2px;
|
|
|
}
|
|
|
.MLK__rows .shift,
|
|
|
.MLK__rows .action {
|
|
|
font-size: 65%;
|
|
|
}
|
|
|
.MLK__rows .warning svg.svg-glyph {
|
|
|
width: 14px;
|
|
|
height: 14px;
|
|
|
min-height: 14px;
|
|
|
}
|
|
|
}
|
|
|
@container (max-width: 744px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-gap: max(var(--keycap-gap, 2px), 2px);
|
|
|
--_keycap-height: max(var(--keycap-height, 52px), 52px);
|
|
|
--_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);
|
|
|
}
|
|
|
.MLK__toolbar > div > div {
|
|
|
padding-left: 0;
|
|
|
padding-right: 0;
|
|
|
}
|
|
|
.MLK__tooltip::after {
|
|
|
padding: 8px 16px;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div.fnbutton {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div.bigfnbutton {
|
|
|
font-size: calc(var(--_keycap-extra-small-font-size) / 1.55);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div.small {
|
|
|
font-size: 13px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div > aside {
|
|
|
display: none;
|
|
|
}
|
|
|
.MLK__shift {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
/* Medium breakpoint: larger phones */
|
|
|
@container (max-width: 768px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-height: max(var(--keycap-height, 42px), 42px);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div > small {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
}
|
|
|
@media (max-height: 768px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-height: max(var(--keycap-height, 42px), 42px);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div > small {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
}
|
|
|
@container (max-width: 1444px) {
|
|
|
.MLK__rows .if-wide {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
.ML__keyboard {
|
|
|
--_accent-color: var(--keyboard-accent-color, #0b5c9c);
|
|
|
--_background: var(--keyboard-background, #151515);
|
|
|
--_border: var(--keyboard-border, transparent);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);
|
|
|
--keyboard-toolbar-background-hover: #303030;
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);
|
|
|
--_keycap-background: var(--keycap-background, #1f2022);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #2f3032);
|
|
|
--_keycap-border: var(--_keycap-border, transparent);
|
|
|
--_keycap-border-bottom: var(--_keycap-border-bottom, transparent);
|
|
|
--_keycap-text: var(--keycap-text, #e3e4e8);
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);
|
|
|
--keycap-secondary-border: transparent;
|
|
|
--keycap-secondary-border-bottom: transparent;
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, transparent);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);
|
|
|
--_variant-panel-background: var(--variant-panel-background, #303030);
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);
|
|
|
}
|
|
|
}
|
|
|
/* Same as the media query, but with a class */
|
|
|
[theme='dark'] .ML__keyboard {
|
|
|
--_accent-color: var(--keyboard-accent-color, #0b5c9c);
|
|
|
--_background: var(--keyboard-background, #151515);
|
|
|
--_border: var(--keyboard-border, transparent);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);
|
|
|
--keyboard-toolbar-background-hover: #303030;
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);
|
|
|
--_keycap-background: var(--keycap-background, #1f2022);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #2f3032);
|
|
|
--_keycap-border: var(--_keycap-border, transparent);
|
|
|
--_keycap-border-bottom: var(--_keycap-border-bottom, transparent);
|
|
|
--_keycap-text: var(--keycap-text, #e3e4e8);
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);
|
|
|
--keycap-secondary-border: transparent;
|
|
|
--keycap-secondary-border-bottom: transparent;
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, transparent);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);
|
|
|
--_variant-panel-background: var(--variant-panel-background, #303030);
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);
|
|
|
}
|
|
|
[theme='light'] .ML__keyboard {
|
|
|
--_accent-color: var(--keyboard-accent-color, #0c75d8);
|
|
|
--_background: var(--keyboard-background, #cacfd7);
|
|
|
--_border: var(--keyboard-border, #ddd);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);
|
|
|
--_toolbar-background: var(--keyboard-toolbar-background, transparent);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);
|
|
|
--_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);
|
|
|
--_keycap-background: var(--keycap-background, white);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);
|
|
|
--_keycap-background-active: var(--keycap-background-active, var(--_accent-color));
|
|
|
--_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));
|
|
|
--_keycap-border: var(--_keycap-border, #e5e6e9);
|
|
|
--_keycap-border-bottom: var(--_keycap-border-bottom, #8d8f92);
|
|
|
--_keycap-text: var(--keycap-text, #000);
|
|
|
--_keycap-text-active: var(--keycap-text-active, #fff);
|
|
|
--_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));
|
|
|
--_keycap-text-pressed: var(--keycap-text-pressed, #fff);
|
|
|
--_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #060707);
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);
|
|
|
--_variant-panel-background: var(--variant-panel-background, #fff);
|
|
|
--_variant-keycap-text: var(--variant-keycap-textvar, var(--_keycap-text));
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));
|
|
|
--_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));
|
|
|
}
|
|
|
`,$p=`:host {
|
|
|
--primary-color: #5898ff;
|
|
|
--primary-color-dimmed: #c0c0f0;
|
|
|
--primary-color-dark: var(--blue-500);
|
|
|
--primary-color-light: var(--blue-100);
|
|
|
--primary-color-reverse: #ffffff;
|
|
|
--secondary-color: #ff8a65;
|
|
|
--secondary-color-dimmed: #f0d5c5;
|
|
|
--secondary-color-dark: var(--orange-500);
|
|
|
--secondary-color-light: var(--orange-100);
|
|
|
--secondary-color-reverse: #ffffff;
|
|
|
--link-color: #5898ff;
|
|
|
--link-color-dimmed: #c5c5c5;
|
|
|
--link-color-dark: #121212;
|
|
|
--link-color-light: #e2e2e2;
|
|
|
--link-color-reverse: #ffffff;
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--neutral-100: #f5f5f5;
|
|
|
--neutral-200: #eeeeee;
|
|
|
--neutral-300: #e0e0e0;
|
|
|
--neutral-400: #bdbdbd;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #757575;
|
|
|
--neutral-700: #616161;
|
|
|
--neutral-800: #424242;
|
|
|
--neutral-900: #212121;
|
|
|
--red-25: #fff8f7;
|
|
|
--red-50: #fff1ef;
|
|
|
--red-100: #ffeae6;
|
|
|
--red-200: #ffcac1;
|
|
|
--red-300: #ffa495;
|
|
|
--red-400: #ff7865;
|
|
|
--red-500: #f21c0d;
|
|
|
--red-600: #e50018;
|
|
|
--red-700: #d30024;
|
|
|
--red-800: #bd002c;
|
|
|
--red-900: #a1002f;
|
|
|
--orange-25: #fffbf8;
|
|
|
--orange-50: #fff7f1;
|
|
|
--orange-100: #fff3ea;
|
|
|
--orange-200: #ffe1c9;
|
|
|
--orange-300: #ffcca2;
|
|
|
--orange-400: #ffb677;
|
|
|
--orange-500: #fe9310;
|
|
|
--orange-600: #f58700;
|
|
|
--orange-700: #ea7c00;
|
|
|
--orange-800: #dc6d00;
|
|
|
--orange-900: #ca5b00;
|
|
|
--brown-25: #fff8ef;
|
|
|
--brown-50: #fff1df;
|
|
|
--brown-100: #ffe9ce;
|
|
|
--brown-200: #ebcca6;
|
|
|
--brown-300: #cdaf8a;
|
|
|
--brown-400: #af936f;
|
|
|
--brown-500: #856a47;
|
|
|
--brown-600: #7f5e34;
|
|
|
--brown-700: #78511f;
|
|
|
--brown-800: #6e4200;
|
|
|
--brown-900: #593200;
|
|
|
--yellow-25: #fffdf9;
|
|
|
--yellow-50: #fffcf2;
|
|
|
--yellow-100: #fffaec;
|
|
|
--yellow-200: #fff2ce;
|
|
|
--yellow-300: #ffe8ab;
|
|
|
--yellow-400: #ffdf85;
|
|
|
--yellow-500: #ffcf33;
|
|
|
--yellow-600: #f1c000;
|
|
|
--yellow-700: #dfb200;
|
|
|
--yellow-800: #c9a000;
|
|
|
--yellow-900: #ad8a00;
|
|
|
--lime-25: #f4ffee;
|
|
|
--lime-50: #e9ffdd;
|
|
|
--lime-100: #ddffca;
|
|
|
--lime-200: #a8fb6f;
|
|
|
--lime-300: #94e659;
|
|
|
--lime-400: #80d142;
|
|
|
--lime-500: #63b215;
|
|
|
--lime-600: #45a000;
|
|
|
--lime-700: #268e00;
|
|
|
--lime-800: #007417;
|
|
|
--lime-900: #005321;
|
|
|
--green-25: #f5fff5;
|
|
|
--green-50: #ebffea;
|
|
|
--green-100: #e0ffdf;
|
|
|
--green-200: #a7ffa7;
|
|
|
--green-300: #5afa65;
|
|
|
--green-400: #45e953;
|
|
|
--green-500: #17cf36;
|
|
|
--green-600: #00b944;
|
|
|
--green-700: #00a34a;
|
|
|
--green-800: #008749;
|
|
|
--green-900: #00653e;
|
|
|
--teal-25: #f3ffff;
|
|
|
--teal-50: #e6fffe;
|
|
|
--teal-100: #d9fffe;
|
|
|
--teal-200: #8dfffe;
|
|
|
--teal-300: #57f4f4;
|
|
|
--teal-400: #43e5e5;
|
|
|
--teal-500: #17cfcf;
|
|
|
--teal-600: #00c2c0;
|
|
|
--teal-700: #00b5b1;
|
|
|
--teal-800: #00a49e;
|
|
|
--teal-900: #009087;
|
|
|
--cyan-25: #f7fcff;
|
|
|
--cyan-50: #eff8ff;
|
|
|
--cyan-100: #e7f5ff;
|
|
|
--cyan-200: #c2e6ff;
|
|
|
--cyan-300: #95d5ff;
|
|
|
--cyan-400: #61c4ff;
|
|
|
--cyan-500: #13a7ec;
|
|
|
--cyan-600: #069eda;
|
|
|
--cyan-700: #0095c9;
|
|
|
--cyan-800: #0088b2;
|
|
|
--cyan-900: #0a7897;
|
|
|
--blue-25: #f7faff;
|
|
|
--blue-50: #eef5ff;
|
|
|
--blue-100: #e5f1ff;
|
|
|
--blue-200: #bfdbff;
|
|
|
--blue-300: #92c2ff;
|
|
|
--blue-400: #63a8ff;
|
|
|
--blue-500: #0d80f2;
|
|
|
--blue-600: #0077db;
|
|
|
--blue-700: #006dc4;
|
|
|
--blue-800: #0060a7;
|
|
|
--blue-900: #005086;
|
|
|
--indigo-25: #f8f7ff;
|
|
|
--indigo-50: #f1efff;
|
|
|
--indigo-100: #eae7ff;
|
|
|
--indigo-200: #ccc3ff;
|
|
|
--indigo-300: #ac99ff;
|
|
|
--indigo-400: #916aff;
|
|
|
--indigo-500: #63c;
|
|
|
--indigo-600: #5a21b2;
|
|
|
--indigo-700: #4e0b99;
|
|
|
--indigo-800: #3b0071;
|
|
|
--indigo-900: #220040;
|
|
|
--purple-25: #fbf7ff;
|
|
|
--purple-50: #f8f0ff;
|
|
|
--purple-100: #f4e8ff;
|
|
|
--purple-200: #e4c4ff;
|
|
|
--purple-300: #d49aff;
|
|
|
--purple-400: #c36aff;
|
|
|
--purple-500: #a219e6;
|
|
|
--purple-600: #9000c4;
|
|
|
--purple-700: #7c009f;
|
|
|
--purple-800: #600073;
|
|
|
--purple-900: #3d0043;
|
|
|
--magenta-25: #fff8fb;
|
|
|
--magenta-50: #fff2f6;
|
|
|
--magenta-100: #ffebf2;
|
|
|
--magenta-200: #ffcddf;
|
|
|
--magenta-300: #ffa8cb;
|
|
|
--magenta-400: #ff7fb7;
|
|
|
--magenta-500: #eb4799;
|
|
|
--magenta-600: #da3689;
|
|
|
--magenta-700: #c82179;
|
|
|
--magenta-800: #b00065;
|
|
|
--magenta-900: #8a004c;
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--semantic-bg-blue: var(--blue-25);
|
|
|
--semantic-bg-red: var(--red-25);
|
|
|
--semantic-bg-orange: var(--orange-25);
|
|
|
--semantic-bg-green: var(--green-25);
|
|
|
--neutral-100: #121212;
|
|
|
--neutral-200: #424242;
|
|
|
--neutral-300: #616161;
|
|
|
--neutral-400: #757575;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #bdbdbd;
|
|
|
--neutral-700: #e0e0e0;
|
|
|
--neutral-800: #eeeeee;
|
|
|
--neutral-900: #f5f5f5;
|
|
|
}
|
|
|
}
|
|
|
:host([theme='dark']) {
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--semantic-bg-blue: var(--blue-25);
|
|
|
--semantic-bg-red: var(--red-25);
|
|
|
--semantic-bg-orange: var(--orange-25);
|
|
|
--semantic-bg-green: var(--green-25);
|
|
|
--neutral-100: #121212;
|
|
|
--neutral-200: #424242;
|
|
|
--neutral-300: #616161;
|
|
|
--neutral-400: #757575;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #bdbdbd;
|
|
|
--neutral-700: #e0e0e0;
|
|
|
--neutral-800: #eeeeee;
|
|
|
--neutral-900: #f5f5f5;
|
|
|
}
|
|
|
/* @media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--label-color: #fff;
|
|
|
--active-label-color: #000;
|
|
|
--menu-bg: #525252;
|
|
|
--active-bg: #5898ff;
|
|
|
--active-bg-dimmed: #5c5c5c;
|
|
|
}
|
|
|
} */
|
|
|
:host {
|
|
|
--ui-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
|
|
|
'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
|
|
|
'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
|
--ui-font-size: 14px;
|
|
|
--ui-line-height: 1.5;
|
|
|
--ui-letter-spacing: 0.007em;
|
|
|
--mono-font-family: 'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono',
|
|
|
'Source Code Pro', Menlo, Monaco, 'Courier New', monospace;
|
|
|
--ui-layer-1: var(--neutral-100);
|
|
|
--ui-layer-2: var(--neutral-200);
|
|
|
--ui-layer-3: var(--neutral-300);
|
|
|
--ui-layer-4: var(--neutral-400);
|
|
|
--ui-layer-5: var(--neutral-500);
|
|
|
--ui-layer-6: var(--neutral-600);
|
|
|
--ui-border-color: var(--primary-color);
|
|
|
--ui-border-radius: 4px;
|
|
|
--ui-text: var(--neutral-900);
|
|
|
--ui-text-secondary: var(--neutral-700);
|
|
|
--ui-text-placeholder: var(--neutral-500);
|
|
|
--ui-text-muted: var(--neutral-300);
|
|
|
/** A field is a UI element in which a user can type data, for
|
|
|
* example an input or textarea element.
|
|
|
*/
|
|
|
--ui-field-bg: var(--neutral-100);
|
|
|
--ui-field-bg-hover: var(--neutral-100);
|
|
|
--ui-field-bg-disabled: var(--neutral-300);
|
|
|
--ui-field-bg-invalid: var(--red-100);
|
|
|
--ui-field-bg-focus: var(--neutral-100);
|
|
|
--ui-field-border: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-hover: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-disabled: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-invalid: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-focus: 0.5px solid var(--border-color);
|
|
|
--ui-menu-bg: var(--neutral-100);
|
|
|
--ui-menu-text: var(--neutral-900);
|
|
|
--ui-menu-bg-hover: var(--neutral-200);
|
|
|
--ui-menu-text-hover: var(--neutral-900);
|
|
|
/** The \`active\` state is used for the state of menu items
|
|
|
* when they are selected.
|
|
|
*/
|
|
|
--ui-menu-bg-active: var(--primary-color);
|
|
|
--ui-menu-text-active: var(--primary-color-reverse);
|
|
|
/** The \`active-muted\` set is used for the state of
|
|
|
* submenus when they are open.
|
|
|
*/
|
|
|
--ui-menu-bg-active-muted: var(--neutral-300);
|
|
|
--ui-menu-text-active-muted: var(--neutral-900);
|
|
|
/* --ui-menu-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.302),
|
|
|
0 2px 6px 2px rgba(60, 64, 67, 0.149); */
|
|
|
--ui-menu-shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.2);
|
|
|
--ui-menu-divider: 0.5px solid #c7c7c7;
|
|
|
/* var(--neutral-300); */
|
|
|
--ui-menu-z-index: 10000;
|
|
|
--page-bg: var(--neutral-100);
|
|
|
--content-bg: var(--neutral-200);
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--ui-menu-bg: var(--neutral-200);
|
|
|
}
|
|
|
}
|
|
|
:host([theme='dark']) {
|
|
|
--ui-menu-bg: var(--neutral-200);
|
|
|
}
|
|
|
/* PingFang SC is a macOS font. Microsoft Yahei is a Windows font.
|
|
|
Noto is a Linux/Android font.
|
|
|
*/
|
|
|
:lang(zh-cn),
|
|
|
:lang(zh-sg),
|
|
|
:lang(zh-my),
|
|
|
:lang(zh) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'PingFang SC', 'Hiragino Sans GB',
|
|
|
'Noto Sans CJK SC', 'Noto Sans SC', 'Noto Sans', 'Microsoft Yahei UI',
|
|
|
'Microsoft YaHei New', 'Microsoft Yahei', '\u5FAE\u8F6F\u96C5\u9ED1', SimSun, '\u5B8B\u4F53',
|
|
|
STXihei, '\u534E\u6587\u7EC6\u9ED1', sans-serif;
|
|
|
}
|
|
|
:lang(zh-tw),
|
|
|
:lang(zh-hk),
|
|
|
:lang(zh-mo) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans',
|
|
|
'Microsoft JhengHei UI', 'Microsoft JhengHei', '\u5FAE\u8EDF\u6B63\u9ED1\u9AD4', '\u65B0\u7D30\u660E\u9AD4',
|
|
|
'PMingLiU', '\u7D30\u660E\u9AD4', 'MingLiU', sans-serif;
|
|
|
}
|
|
|
:lang(ja),
|
|
|
:lang(ja-jp),
|
|
|
:lang(ja-jp-mac) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Hiragino Sans',
|
|
|
'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', 'Noto Sans JP', 'Noto Sans',
|
|
|
'\u6E38\u30B4\u30B7\u30C3\u30AF', '\u6E38\u30B4\u30B7\u30C3\u30AF\u4F53', YuGothic, 'Yu Gothic', '\u30E1\u30A4\u30EA\u30AA', Meiryo,
|
|
|
'\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF', 'MS PGothic', sans-serif;
|
|
|
}
|
|
|
:lang(ko),
|
|
|
:lang(ko-kr),
|
|
|
:lang(ko-kr-std) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
|
|
|
'Noto Sans', 'Malgun Gothic', '\uB9D1\uC740 \uACE0\uB515', 'Apple SD Gothic Neo',
|
|
|
'\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo', 'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
|
|
|
}
|
|
|
:lang(ko-kr-apple) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
|
|
|
'Noto Sans', 'Apple SD Gothic Neo', '\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo',
|
|
|
'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
|
|
|
}
|
|
|
:lang(zh-cn),
|
|
|
:lang(zh-sg),
|
|
|
:lang(zh-my),
|
|
|
:lang(zh),
|
|
|
:lang(zh-tw),
|
|
|
:lang(zh-hk),
|
|
|
:lang(zh-mo),
|
|
|
:lang(ja),
|
|
|
:lang(ja-jp),
|
|
|
:lang(ja-jp-mac),
|
|
|
:lang(ko),
|
|
|
:lang(ko-kr),
|
|
|
:lang(ko-kr-std),
|
|
|
:lang(ko-kr-apple) {
|
|
|
--ui-font-size: 1rem;
|
|
|
--ui-line-height: 1.7;
|
|
|
--ui-letter-spacing: 0;
|
|
|
}
|
|
|
:dir(rtl) {
|
|
|
--ui-line-height: auto;
|
|
|
--ui-letter-spacing: 0;
|
|
|
}
|
|
|
`,gv=`.ui-menu *,
|
|
|
.ui-menu ::before,
|
|
|
.ui-menu ::after {
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ui-menu {
|
|
|
display: none;
|
|
|
color-scheme: light dark;
|
|
|
-webkit-user-select: none;
|
|
|
/* Important: Safari iOS doesn't respect user-select */
|
|
|
user-select: none;
|
|
|
cursor: default;
|
|
|
-webkit-touch-callout: none;
|
|
|
-webkit-tap-highlight-color: rgba(0 0 0 0);
|
|
|
--active-label-color: #fff;
|
|
|
/* ui-menu-text-active */
|
|
|
--label-color: #121212;
|
|
|
/* ui-menu-text */
|
|
|
--menu-bg: #e2e2e2;
|
|
|
/* ui-menu-background */
|
|
|
--active-bg: #5898ff;
|
|
|
/* ui-menu-background-active */
|
|
|
--active-bg-dimmed: #c5c5c5;
|
|
|
/* ui-menu-background-active-muted */
|
|
|
}
|
|
|
/** Use the :where pseudo selector to make the specificity of the
|
|
|
* selector 0, so that it can be overridden by the user.
|
|
|
*/
|
|
|
:where(.ui-menu-container) {
|
|
|
position: absolute;
|
|
|
overflow: visible;
|
|
|
width: auto;
|
|
|
height: auto;
|
|
|
z-index: 10000;
|
|
|
border-radius: 8px;
|
|
|
background: var(--ui-menu-bg);
|
|
|
box-shadow: var(--ui-menu-shadow);
|
|
|
list-style: none;
|
|
|
padding: 6px 0 6px 0;
|
|
|
margin: 0;
|
|
|
user-select: none;
|
|
|
cursor: default;
|
|
|
color: var(--ui-menu-text);
|
|
|
font-weight: normal;
|
|
|
font-style: normal;
|
|
|
text-shadow: none;
|
|
|
text-transform: none;
|
|
|
letter-spacing: 0;
|
|
|
outline: none;
|
|
|
opacity: 1;
|
|
|
/* The [popover] elements have a 1px solid black border. Ugh. */
|
|
|
border: none;
|
|
|
width: fit-content;
|
|
|
height: fit-content;
|
|
|
}
|
|
|
:where(.ui-menu-container > li) {
|
|
|
display: flex;
|
|
|
flex-flow: row;
|
|
|
align-items: center;
|
|
|
padding: 1px 7px 1px 7px;
|
|
|
margin-top: 0;
|
|
|
margin-left: 6px;
|
|
|
margin-right: 6px;
|
|
|
border-radius: 4px;
|
|
|
white-space: nowrap;
|
|
|
position: relative;
|
|
|
outline: none;
|
|
|
fill: currentColor;
|
|
|
user-select: none;
|
|
|
cursor: default;
|
|
|
text-align: left;
|
|
|
color: inherit;
|
|
|
font-family: var(--ui-font-family);
|
|
|
font-size: var(--ui-font-size);
|
|
|
line-height: var(--ui-line-height);
|
|
|
letter-spacing: var(--ui-letter-spacing);
|
|
|
}
|
|
|
:where(.ui-menu-container > li > .label) {
|
|
|
appearance: none;
|
|
|
background: none;
|
|
|
outline: none;
|
|
|
width: 100%;
|
|
|
margin: 0;
|
|
|
padding: 1px 2px 1px 1px;
|
|
|
overflow: visible;
|
|
|
border: 1px solid transparent;
|
|
|
white-space: nowrap;
|
|
|
text-align: start;
|
|
|
}
|
|
|
:where(.ui-menu-container > li:has(.heading)) {
|
|
|
margin-top: 0.5em;
|
|
|
}
|
|
|
:where(.ui-menu-container > li > .label.heading) {
|
|
|
font-weight: bold;
|
|
|
opacity: 0.4;
|
|
|
}
|
|
|
:where(.ui-menu-container > li.indent > .label) {
|
|
|
margin-inline-start: 12px;
|
|
|
}
|
|
|
:where(.ui-menu-container > li > .label.indent) {
|
|
|
margin-inline-start: 12px;
|
|
|
}
|
|
|
:where(.ui-menu-container > li[role='divider']) {
|
|
|
border-bottom: 1px solid var(--ui-menu-divider);
|
|
|
border-radius: 0;
|
|
|
padding: 0;
|
|
|
margin-left: 15px;
|
|
|
margin-right: 15px;
|
|
|
padding-top: 5px;
|
|
|
margin-bottom: 5px;
|
|
|
width: calc(100% - 30px);
|
|
|
/** 100% - (margin-left + margin-right) */
|
|
|
}
|
|
|
:where(.ui-menu-container > li[aria-disabled='true']) {
|
|
|
opacity: 0.5;
|
|
|
}
|
|
|
:where(.ui-menu-container > li.active) {
|
|
|
background: var(--ui-menu-bg-active);
|
|
|
background: -apple-system-control-accent;
|
|
|
color: var(--ui-menu-text-active);
|
|
|
}
|
|
|
:where(.ui-menu-container > li.active.is-submenu-open) {
|
|
|
background: var(--ui-menu-bg-active-muted);
|
|
|
color: inherit;
|
|
|
}
|
|
|
:where(.ui-menu-container > li[aria-haspopup='true'] > .label) {
|
|
|
padding-inline-end: 0;
|
|
|
}
|
|
|
:where(.ui-menu-container > li[aria-haspopup='true'].active::after) {
|
|
|
color: var(--ui-menu-text-active);
|
|
|
}
|
|
|
/** Keyboard shortcut */
|
|
|
:where(.ui-menu-container > li > kbd) {
|
|
|
font-family: var(--ui-font-family);
|
|
|
margin-inline-start: 12px;
|
|
|
opacity: 0.4;
|
|
|
}
|
|
|
:where(.ui-menu-container > li.active > kbd) {
|
|
|
opacity: 0.85;
|
|
|
}
|
|
|
.ui-trailing-chevron {
|
|
|
display: flex;
|
|
|
margin-inline-start: 24px;
|
|
|
width: 10px;
|
|
|
height: 10px;
|
|
|
margin-bottom: 4px;
|
|
|
}
|
|
|
.ui-trailing-chevron:dir(rtl) {
|
|
|
transform: scaleX(-1);
|
|
|
}
|
|
|
.ui-checkmark {
|
|
|
display: flex;
|
|
|
margin-inline-end: -11px;
|
|
|
margin-inline-start: -4px;
|
|
|
margin-top: 2px;
|
|
|
width: 16px;
|
|
|
height: 16px;
|
|
|
}
|
|
|
.ui-mixedmark {
|
|
|
display: flex;
|
|
|
margin-inline-end: -11px;
|
|
|
margin-inline-start: -4px;
|
|
|
margin-top: 2px;
|
|
|
width: 16px;
|
|
|
height: 16px;
|
|
|
}
|
|
|
`,Ba;function Md(E){let z="";switch(E){case"mathfield-element":z=`
|
|
|
:host { display: inline-block; background-color: field; color: fieldtext; border-width: 1px; border-style: solid; border-color: #acacac; border-radius: 2px; padding:4px;}
|
|
|
:host([hidden]) { display: none; }
|
|
|
:host([disabled]), :host([disabled]:focus), :host([disabled]:focus-within) { outline: none; opacity: .5; }
|
|
|
:host(:focus), :host(:focus-within) {
|
|
|
outline: Highlight auto 1px; /* For Firefox */
|
|
|
outline: -webkit-focus-ring-color auto 1px;
|
|
|
}
|
|
|
:host([readonly]:focus), :host([readonly]:focus-within),
|
|
|
:host([read-only]:focus), :host([read-only]:focus-within) {
|
|
|
outline: none;
|
|
|
}
|
|
|
@media (hover: none) and (pointer: coarse) {
|
|
|
:host(:not(:focus)) :first-child { pointer-events: none !important; }
|
|
|
}`;break;case"core":z=fa;break;case"mathfield":z=Cd;break;case"environment-popover":z=X0;break;case"suggestion-popover":z=lg;break;case"keystroke-caption":z=Uf;break;case"virtual-keyboard":z=Zf;break;case"ui":z=$p;break;case"menu":z=gv;break;default:debugger}return z}function Gc(E){return Ba||(Ba={}),Ba[E]||(Ba[E]=new CSSStyleSheet,Ba[E].replaceSync(Md(E))),Ba[E]}var pu;function dc(E){var z;if(!("adoptedStyleSheets"in document)){if(window.document.getElementById(`mathlive-style-${E}`))return;const it=window.document.createElement("style");it.id=`mathlive-style-${E}`,it.append(window.document.createTextNode(Md(E))),window.document.head.appendChild(it);return}if(pu||(pu={}),((z=pu[E])!=null?z:0)!==0)pu[E]+=1;else{const it=Gc(E);document.adoptedStyleSheets=[...document.adoptedStyleSheets,it],pu[E]=1}}function rt(E){if("adoptedStyleSheets"in document&&pu!=null&&pu[E]&&(pu[E]-=1,pu[E]<=0)){const z=Ba[E];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(it=>it!==z)}}var lt=class W2 extends Mr{constructor(z){var it;super(Nt(jt({},z),{type:"accent",body:(it=z.body)!=null?it:void 0})),z.accentChar?this.accent=z.accentChar:this.svgAccent=z==null?void 0:z.svgAccent,this.skipBoundary=!0,this.captureSelection=!0}static fromJson(z){return new W2(z)}toJson(){return Nt(jt({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(z){var it;const st=new Ws({parent:z,mathstyle:"cramp"},this.style),ct=(it=Mr.createBox(st,this.body))!=null?it:new Qr("\u25A2",{style:this.style});let vt=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(vt=ct.skew);let xt=Math.min(ct.height,ch),Ot;if(this.svgAccent)Ot=uc(this.svgAccent),xt=st.metrics.bigOpSpacing1-xt;else if(this.accent){const Zt=new Qr(this.accent,{fontFamily:"Main-Regular"});Zt.italic=0;const re=this.accent===8407?" ML__accent-vec":"";Ot=new Qr(new Qr(Zt),{classes:"ML__accent-body"+re})}Ot=new sa({shift:0,children:[{box:new Qr(ct)},-xt,{box:Ot,marginLeft:ct.left+2*vt,classes:["ML__center"]}]});const Kt=new Qr(Ot,{type:"lift"});return this.caret&&(Kt.caret=this.caret),this.bind(st,Kt.wrap(st)),this.attachSupsub(st,{base:Kt})}},pt={"(":")","{":"}","[":"]","|":"|","\\lbrace":"\\rbrace","\\lparen":"\\rparen","\\{":"\\}","\\langle":"\\rangle","\\lfloor":"\\rfloor","\\lceil":"\\rceil","\\vert":"\\vert","\\lvert":"\\rvert","\\Vert":"\\Vert","\\lVert":"\\rVert","\\lbrack":"\\rbrack","\\ulcorner":"\\urcorner","\\llcorner":"\\lrcorner","\\lgroup":"\\rgroup","\\lmoustache":"\\rmoustache"},dt=Object.fromEntries(Object.entries(pt).map(([E,z])=>[z,E]));function yt(E){var z;return(z={"[":91,"]":93,"(":40,")":41,"\\mid":8739,"|":8739,"\u2223":8739,"\u2225":8741,"\\|":8739,"\\{":123,"\\}":125,"\\lbrace":123,"\\rbrace":125,"\\lparen":40,"\\rparen":41,"\\lbrack":91,"\\rbrack":93,"\\vert":8739,"\\lvert":8739,"\\mvert":8739,"\\rvert":8739,"\\Vert":8741,"\\lVert":8741,"\\mVert":8741,"\\rVert":8741,"\\parallel":8741,"\\shortparallel":8741,"\\langle":10216,"\\rangle":10217,"\\lfloor":8970,"\\rfloor":8971,"\\lceil":8968,"\\rceil":8969,"\\ulcorner":9484,"\\urcorner":9488,"\\llcorner":9492,"\\lrcorner":9496,"\\lgroup":10222,"\\rgroup":10223,"\\lmoustache":9136,"\\rmoustache":9137,"\\surd":8730}[E])!=null?z:E.codePointAt(0)}function Lt(E,z,it,st){var ct;const xt=new Qr(yt(E),{fontFamily:"Main-Regular",isSelected:st.isSelected,classes:"ML__small-delim "+((ct=st.classes)!=null?ct:"")}).wrap(z);return it&&xt.setTop((1-z.scalingFactor)*_l),xt}function Vt(E,z,it,st,ct){var vt,xt;const Ot=new Ws({parent:st,mathstyle:"textstyle"},ct==null?void 0:ct.style),Kt=new Qr(yt(E),{fontFamily:`Size${z}-Regular`,isSelected:ct.isSelected,classes:((vt=ct.classes)!=null?vt:"")+` ML__delim-size${z}`,type:(xt=ct.type)!=null?xt:"ignore"}).wrap(Ot);return it&&Kt.setTop((1-Ot.scalingFactor)*_l),Kt}function ae(E,z,it,st,ct){var vt;let xt,Ot,Kt,Zt;xt=Kt=Zt=yt(E),Ot=null;let re="Size1-Regular";E==="\\vert"||E==="\\lvert"||E==="\\rvert"||E==="\\mvert"||E==="\\mid"?Kt=xt=Zt=8739:E==="\\Vert"||E==="\\lVert"||E==="\\rVert"||E==="\\mVert"||E==="\\|"?Kt=xt=Zt=8741:E==="\\uparrow"?Kt=Zt=9168:E==="\\Uparrow"?Kt=Zt=8214:E==="\\downarrow"?xt=Kt=9168:E==="\\Downarrow"?xt=Kt=8214:E==="\\updownarrow"?(xt=8593,Kt=9168,Zt=8595):E==="\\Updownarrow"?(xt=8657,Kt=8214,Zt=8659):E==="["||E==="\\lbrack"?(xt=9121,Kt=9122,Zt=9123,re="Size4-Regular"):E==="]"||E==="\\rbrack"?(xt=9124,Kt=9125,Zt=9126,re="Size4-Regular"):E==="\\lfloor"||E==="\u230A"?(Kt=xt=9122,Zt=9123,re="Size4-Regular"):E==="\\lceil"||E==="\u2308"?(xt=9121,Kt=Zt=9122,re="Size4-Regular"):E==="\\rfloor"||E==="\u230B"?(Kt=xt=9125,Zt=9126,re="Size4-Regular"):E==="\\rceil"||E==="\u2309"?(xt=9124,Kt=Zt=9125,re="Size4-Regular"):E==="("||E==="\\lparen"?(xt=9115,Kt=9116,Zt=9117,re="Size4-Regular"):E===")"||E==="\\rparen"?(xt=9118,Kt=9119,Zt=9120,re="Size4-Regular"):E==="\\{"||E==="\\lbrace"?(xt=9127,Ot=9128,Zt=9129,Kt=9130,re="Size4-Regular"):E==="\\}"||E==="\\rbrace"?(xt=9131,Ot=9132,Zt=9133,Kt=9130,re="Size4-Regular"):E==="\\lgroup"||E==="\u27EE"?(xt=9127,Zt=9129,Kt=9130,re="Size4-Regular"):E==="\\rgroup"||E==="\u27EF"?(xt=9131,Zt=9133,Kt=9130,re="Size4-Regular"):E==="\\lmoustache"||E==="\u23B0"?(xt=9127,Zt=9133,Kt=9130,re="Size4-Regular"):E==="\\rmoustache"||E==="\u23B1"?(xt=9131,Zt=9129,Kt=9130,re="Size4-Regular"):E==="\\surd"?(xt=57345,Zt=9143,Kt=57344,re="Size4-Regular"):E==="\\ulcorner"?(xt=9484,Kt=Zt=32):E==="\\urcorner"?(xt=9488,Kt=Zt=32):E==="\\llcorner"?(Zt=9492,Kt=xt=32):E==="\\lrcorner"&&(xt=9496,Kt=xt=32);const Be=dh(xt,re),ln=Be.height+Be.depth,Fn=dh(Kt,re),ei=Fn.height+Fn.depth,hr=dh(Zt,re),Gr=hr.height+hr.depth;let $i=0,Nr=1;if(Ot!==null){const Yl=dh(Ot,re);$i=Yl.height+Yl.depth,Nr=2}const eo=ln+Gr+$i,zr=Math.max(0,Math.ceil((z-eo)/(Nr*ei))),_o=eo+zr*Nr*ei;let ns=_l;it&&(ns=ns*st.scalingFactor);const Go=_o/2-ns,Gs=.008,La=[];La.push({box:new Qr(Zt,{fontFamily:re})}),La.push(-Gs);const uo=new Qr(Kt,{fontFamily:re});if(Ot===null)for(let Yl=0;Yl<zr;Yl++)La.push({box:uo});else{for(let Yl=0;Yl<zr;Yl++)La.push({box:uo});La.push(-Gs),La.push({box:new Qr(Ot,{fontFamily:re})}),La.push(-Gs);for(let Yl=0;Yl<zr;Yl++)La.push({box:uo})}La.push(-Gs),La.push({box:new Qr(xt,{fontFamily:re})});let $c="";re==="Size1-Regular"?$c=" delim-size1":re==="Size4-Regular"&&($c=" delim-size4");const qc=new sa({bottom:Go,children:La},{classes:$c});return new Qr(qc,Nt(jt({},ct!=null?ct:{}),{classes:((vt=ct==null?void 0:ct.classes)!=null?vt:"")+" ML__delim-mult"}))}var oe=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),Pe=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),Bn=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Ue=[0,1.2,1.8,2.4,3];function Li(E,z,it,st){return E===void 0||E==="."?Ro(it,st.classes):(E==="<"||E==="\\lt"||E==="\u27E8"?E="\\langle":(E===">"||E==="\\gt"||E==="\u27E9")&&(E="\\rangle"),oe.has(E)||Bn.has(E)?Vt(E,z,!1,it,st):Pe.has(E)?ae(E,Ue[z],!1,it,st):(console.assert(!1,"Unknown delimiter '"+E+"'"),null))}var Si=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],xr=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],Er=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}];function Rr(E){return E.type==="small"?"Main-Regular":E.type==="large"?"Size"+E.size+"-Regular":(console.assert(E.type==="stack"),"Size4-Regular")}function io(E,z,it,st){const ct={"-4":0,"-3":1,0:2}[st.mathstyle.sizeDelta];for(let vt=ct;vt<it.length&&it[vt].type!=="stack";vt++){const xt=dh(E,Rr(it[vt]));if(xt.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let Ot=xt.height+xt.depth;if(it[vt].type==="small"&&(it[vt].mathstyle==="scriptscriptstyle"?Ot*=Math.max(Qd[Math.max(1,st.size-2)],st.minFontScale):it[vt].mathstyle==="scriptstyle"&&(Ot*=Math.max(Qd[Math.max(1,st.size-1)],st.minFontScale))),Ot>z)return it[vt]}return it[it.length-1]}function To(E,z,it,st,ct,vt){if(!z||z.length===0||z===".")return Ro(ct);z==="<"||z==="\\lt"?z="\\langle":(z===">"||z==="\\gt")&&(z="\\rangle");let xt;Bn.has(z)?xt=Si:oe.has(z)?xt=Er:xt=xr;const Ot=io(yt(z),it,xt,ct),Kt=new Ws({parent:ct,mathstyle:Ot.mathstyle},vt==null?void 0:vt.style);return Ot.type==="small"?Lt(z,Kt,st,Nt(jt({},vt),{type:E})):Ot.type==="large"?Vt(z,Ot.size,st,Kt,Nt(jt({},vt),{type:E})):(console.assert(Ot.type==="stack"),ae(z,it,st,Kt,Nt(jt({},vt),{type:E})))}function fo(E,z,it,st,ct,vt){if(z===".")return Ro(ct,vt==null?void 0:vt.classes);const xt=_l*ct.scalingFactor,Ot=901,Kt=5/uh,Zt=Math.max(it-xt,st+xt),re=Math.max(Zt/500*Ot,2*Zt-Kt);return To(E,z,re,!0,ct,vt)}function Ro(E,z){const it=new Qr(null,{classes:" nulldelimiter "+(z!=null?z:""),type:"ignore"});return it.width=E.getRegisterAsEm("nulldelimiterspace"),it.wrap(new Ws({parent:E,mathstyle:"textstyle"}))}var $o=class V2 extends Mr{constructor(z){var it;super({type:"placeholder",command:"\\placeholder",mode:(it=z==null?void 0:z.mode)!=null?it:"math",style:z==null?void 0:z.style}),this.captureSelection=!0}static fromJson(z){return new V2(z)}toJson(){return super.toJson()}render(z){let it;return this.value=z.placeholderSymbol,typeof z.renderPlaceholder=="function"?it=z.renderPlaceholder(z):it=this.createBox(z),this.caret&&(it.classes+=" ML__placeholder-selected"),it}_serialize(z){return z.skipPlaceholders?"":"\\placeholder{}"}},go=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],As=["cases","dcases","rcases"],Aa=["align","align*","aligned","gather","gathered","split"],Al=["array","subequations","eqnarray"];function Za(E){return Al.concat(Aa).concat(As).concat(go).includes(E)}function mu(E){return go.includes(E)}function nu(E){return As.includes(E)}function bl(E){return Aa.includes(E)}function _u(E,z,it){let st=0;for(const Zt of it)"align"in Zt&&(st+=1);let ct=0;const vt=[];for(const Zt of z){let re=0;for(ct=Math.max(ct,Math.min(Zt.length,st));re<Zt.length;){const Be=[],ln=Math.min(Zt.length,re+st);for(;re<ln;){const Fn=Zt[re];Fn.length===0?Be.push([new Mr({type:"first",mode:E.mode})]):Fn[0].type!=="first"?Be.push([new Mr({type:"first",mode:E.mode}),...Fn]):(console.assert(!Fn.slice(1).some(ei=>ei.type==="first")),Be.push(Fn)),re+=1}vt.push(Be)}}vt.length>0&&vt[vt.length-1].length===1&&vt[vt.length-1][0].length===1&&vt[vt.length-1][0][0].type==="first"&&vt.pop();const xt=[];for(const Zt of vt){if(Zt.length!==ct)for(let re=Zt.length;re<ct;re++)Zt.push([new Mr({type:"first",mode:E.mode}),new $o]);xt.push(Zt)}let Ot=0,Kt=0;for(const Zt of xt){Kt=0;for(const re of Zt){for(const Be of re)Be.parent=E,Be.parentBranch=[Ot,Kt];Kt+=1}Ot+=1}return E.isDirty=!0,xt}var Cs=class U2 extends Mr{constructor(z,it,st,ct={}){var vt;super({type:"array"}),this.environmentName=z,this.rowGaps=st,ct.mathstyleName&&(this.mathstyleName=ct.mathstyleName),ct.columns&&(ct.columns.length===0?this.colFormat=[{align:"l"}]:this.colFormat=ct.columns),this.colFormat||(this.colFormat=[{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"}]),this.array=_u(this,it,this.colFormat),ct.leftDelim&&(this.leftDelim=ct.leftDelim),ct.rightDelim&&(this.rightDelim=ct.rightDelim),ct.arraycolsep!==void 0&&(this.arraycolsep=ct.arraycolsep),this.colSeparationType=ct.colSeparationType,ct.arraystretch!==void 0&&(this.arraystretch=ct.arraystretch),this.minColumns=(vt=ct.minColumns)!=null?vt:1}static fromJson(z){return new U2(z.environmentName,z.array,z.rowGaps,z)}toJson(){const z=Nt(jt({},super.toJson()),{environmentName:this.environmentName,array:this.array.map(it=>it.map(st=>st.map(ct=>ct.toJson()))),rowGaps:this.rowGaps,columns:this.colFormat,colSeparationType:this.colSeparationType});return this.arraystretch!==void 0&&(z.arraystretch=this.arraystretch),this.arraycolsep!==void 0&&(z.arraycolsep=this.arraycolsep),this.leftDelim&&(z.leftDelim=this.leftDelim),this.rightDelim&&(z.rightDelim=this.rightDelim),z}branch(z){var it;if(_f(z))return(it=this.array[z[0]][z[1]])!=null?it:void 0}createBranch(z){var it;return _f(z)?(this.isDirty=!0,(it=this.branch(z))!=null?it:[]):[]}get rowCount(){return this.array.length}get colCount(){return this.array[0].length}get maxColumns(){return this.colFormat.filter(z=>!!z.align).length}removeBranch(z){if(hc(z))return super.removeBranch(z);const it=this.branch(z);return this.array[z[0]][z[1]]=void 0,it.forEach(st=>{st.parent=void 0,st.parentBranch=void 0}),console.assert(it[0].type==="first"),it.shift(),this.isDirty=!0,it}get hasChildren(){return this.children.length>0}get children(){const z=[];for(const it of this.array)for(const st of it)if(st)for(const ct of st)z.push(...ct.children),z.push(ct);return[...z,...super.children]}render(z){var it,st,ct,vt,xt,Ot;const Kt=new Ws({parent:z,mathstyle:this.mathstyleName},this.style),Zt=Kt.getRegisterAsEm("arrayrulewidth"),re=Kt.getRegisterAsEm("arraycolsep"),Be=Kt.getRegisterAsEm("doublerulesep"),ln=(st=(it=this.arraystretch)!=null?it:Kt.getRegisterAsNumber("arraystretch"))!=null?st:1;let Fn=typeof this.arraycolsep=="number"?this.arraycolsep:re;this.colSeparationType==="small"&&(Fn=.2778*(new Ws({parent:z,mathstyle:"scriptstyle"}).scalingFactor/z.scalingFactor));const ei=ln*_p,hr=.7*ei,Gr=.3*ei;let $i=0;const Nr=[];let eo=0;const zr=this.array.length;for(let ea=0;ea<zr;++ea){const Pa=this.array[ea];eo=Math.max(eo,Pa.length);const Nl=new Ws({parent:Kt,mathstyle:this.mathstyleName},this.style);let Ah=hr/Nl.scalingFactor,Fc=Gr/Nl.scalingFactor;const nh={cells:[],height:0,depth:0,pos:0};for(const ih of Pa){const Om=(ct=Mr.createBox(Nl,ih,{type:"ignore"}))!=null?ct:new Qr(null,{type:"ignore"});Fc=Math.max(Fc,Om.depth),Ah=Math.max(Ah,Om.height),nh.cells.push(Om)}let Lh=(vt=ef(this.rowGaps[ea]))!=null?vt:0;Lh>0&&(Lh+=Gr,Fc=Math.max(Fc,Lh),Lh=0),ea<zr-1&&!mu(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(Fc+=Kt.getRegisterAsEm("jot")),nh.height=Ah,nh.depth=Fc,$i+=Ah,nh.pos=$i,$i+=Fc+Lh,Nr.push(nh)}const _o=$i/2+_l,ns=[];for(let ea=0;ea<eo;ea++){const Pa=[];for(const Nl of Nr){const Ah=Nl.cells[ea];Ah.depth=Nl.depth,Ah.height=Nl.height,Pa.push({box:Ah,shift:Nl.pos-_o})}Pa.length>0&&ns.push(new sa({individualShift:Pa}))}const Go=[];let Gs=!1,La=!1,uo=0,$c=!this.leftDelim;const{colFormat:qc}=this;for(const ea of qc){if("align"in ea&&uo>=ns.length)break;if("align"in ea)Gs?Go.push(Us(2*Fn)):(La||$c)&&Go.push(Us(Fn)),Go.push(new Qr(ns[uo],{classes:"col-align-"+ea.align})),uo++,Gs=!0,La=!1,$c=!1;else if("gap"in ea){if(typeof ea.gap=="number")Go.push(Us(ea.gap));else{const Pa=tl(z,Nr,_o,ea.gap);Pa&&Go.push(Pa)}Gs=!1,La=!1,$c=!1}else if("separator"in ea){const Pa=new Qr(null,{classes:"vertical-separator"});Pa.height=$i,Pa.setStyle("height",$i,"em"),Pa.setStyle("border-right",`${Zt}em ${ea.separator} currentColor`),Pa.setStyle("vertical-align",-($i-_o),"em");let Nl=0;La?Nl=Be-Zt:Gs&&(Nl=Fn-Zt),Pa.left=Nl,Go.push(Pa),Gs=!1,La=!0,$c=!1}}Gs&&!this.rightDelim&&Go.push(Us(Fn));const th=new Qr(Go,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(th.caret=this.caret),this.bind(z,th);const Yl=th.height,eh=th.depth,Nu=this.bind(z,new Qr([this.bind(z,fo("open",(xt=this.leftDelim)!=null?xt:".",Yl,eh,Kt,{isSelected:this.isSelected})),th,this.bind(z,fo("close",(Ot=this.rightDelim)!=null?Ot:".",Yl,eh,Kt,{isSelected:this.isSelected}))],{type:"ord"}));return Nu?(Nu.setStyle("display","inline-block"),this.caret&&(Nu.caret=this.caret),this.bind(z,this.attachSupsub(z,{base:Nu}))):null}_serialize(z){var it;const st=[];if(this.environmentName==="lines"?st.push("{\\displaylines"):st.push(`\\begin{${this.environmentName}}`),this.environmentName==="array"){if(st.push("{"),this.colFormat!==void 0)for(const ct of this.colFormat)"align"in ct&&typeof ct.align=="string"?st.push(ct.align):"separator"in ct&&ct.separator==="solid"?st.push("|"):"separator"in ct&&ct.separator==="dashed"&&st.push(":");st.push("}")}for(let ct=0;ct<this.array.length;ct++){for(let vt=0;vt<this.array[ct].length;vt++)vt>0&&st.push(" & "),st.push(Mr.serialize(this.array[ct][vt],z));if(ct<this.array.length-1){const vt=this.rowGaps[ct];vt!=null&&vt.dimension?st.push(`\\\\[${vt.dimension} ${(it=vt.unit)!=null?it:"pt"}] `):st.push("\\\\ ")}}return this.environmentName==="lines"?st.push("}"):st.push(`\\end{${this.environmentName}}`),Ts(st)}getCell(z,it){return this.array[z][it]}setCell(z,it,st){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.array[z][it]!==void 0);for(const vt of this.array[z][it])vt.parent=void 0,vt.parentBranch=void 0;let ct=st;(st.length===0||st[0].type!=="first")&&(ct=[new Mr({type:"first",mode:this.mode}),...st]),this.array[z][it]=ct;for(const vt of ct)vt.parent=this,vt.parentBranch=[z,it];this.isDirty=!0}addRowBefore(z){console.assert(this.type==="array"&&Array.isArray(this.array));const it=[];for(let st=0;st<this.colCount;st++)it.push(al(this));this.array.splice(z,0,it);for(let st=z;st<this.rowCount;st++)for(let ct=0;ct<this.colCount;ct++){const vt=this.array[st][ct];if(vt)for(const xt of vt)xt.parentBranch=[st,ct]}this.isDirty=!0}addRowAfter(z){console.assert(this.type==="array"&&Array.isArray(this.array));const it=[];for(let st=0;st<this.colCount;st++)it.push(al(this));this.array.splice(z+1,0,it);for(let st=z+1;st<this.rowCount;st++)for(let ct=0;ct<this.colCount;ct++){const vt=this.array[st][ct];if(vt)for(const xt of vt)xt.parentBranch=[st,ct]}this.isDirty=!0}removeRow(z){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.rowCount>z);const it=this.array.splice(z,1);for(const st of it)for(const ct of st)if(ct)for(const vt of ct)vt.parent=void 0,vt.parentBranch=void 0;for(let st=z;st<this.rowCount;st++)for(let ct=0;ct<this.colCount;ct++){const vt=this.array[st][ct];if(vt)for(const xt of vt)xt.parentBranch=[st,ct]}this.isDirty=!0}addColumnBefore(z){console.assert(this.type==="array"&&Array.isArray(this.array));for(const it of this.array)it.splice(z,0,al(this));for(let it=0;it<this.rowCount;it++)for(let st=z;st<this.colCount;st++){const ct=this.array[it][st];if(ct)for(const vt of ct)vt.parentBranch=[it,st]}this.isDirty=!0}addColumnAfter(z){console.assert(this.type==="array"&&Array.isArray(this.array));for(const it of this.array)it.splice(z+1,0,al(this));for(let it=0;it<this.rowCount;it++)for(let st=z+1;st<this.colCount;st++){const ct=this.array[it][st];if(ct)for(const vt of ct)vt.parentBranch=[it,st]}this.isDirty=!0}addColumn(){this.addColumnAfter(this.colCount-1)}removeColumn(z){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.colCount>z);for(const it of this.array){const st=it.splice(z,1);for(const ct of st)if(ct)for(const vt of ct)vt.parent=void 0,vt.parentBranch=void 0}for(let it=0;it<this.rowCount;it++)for(let st=z;st<this.colCount;st++){const ct=this.array[it][st];if(ct)for(const vt of ct)vt.parentBranch=[it,st]}this.isDirty=!0}get cells(){const z=[];for(const it of this.array)for(const st of it)st&&z.push(st.filter(ct=>ct.type!=="first"));return z}};function al(E){const z=new Mr({type:"first",mode:E.mode});z.parent=E;const it=new $o;return it.parent=E,[z,it]}function Us(E){const z=new Qr(null,{classes:"arraycolsep"});return z.width=E,z}function tl(E,z,it,st){if(!st)return null;const ct=[];for(const vt of z){const xt=Mr.createBox(E,st,{type:"ignore"});xt&&(xt.depth=vt.depth,xt.height=vt.height,ct.push({box:xt,shift:vt.pos-it}))}return new sa({individualShift:ct}).wrap(E)}var Ga=class Z2 extends Mr{constructor(z){super({mode:z.mode,command:z.command,style:z.style,body:z.body,type:"box"}),this.framecolor=z.framecolor,this.backgroundcolor=z.backgroundcolor,this.padding=z.padding,this.offset=z.offset,this.border=z.border}static fromJson(z){return new Z2(z)}toJson(){return Nt(jt({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(z){var it,st,ct,vt;const xt=Mr.createBox(z,this.body,{type:"lift"});if(!xt)return null;const Ot=z.toEm((it=this.offset)!=null?it:{dimension:0});xt.depth+=Ot,xt.setStyle("display","inline-block"),xt.setStyle("position","relative"),xt.setStyle("height",Math.floor(100*xt.height+xt.depth)/100,"em"),xt.setStyle("vertical-align",-Math.floor(100*xt.height)/100,"em");const Kt=new Ws({parent:z},this.style),Zt=Kt.toEm((st=this.padding)!=null?st:{register:"fboxsep"}),re=new Qr(null,{classes:"ML__box"});re.height=xt.height+Zt,re.depth=xt.depth+Zt,re.setStyle("box-sizing","border-box"),re.setStyle("position","absolute"),re.setStyle("top",-Zt+.3,"em"),re.setStyle("left",0),re.setStyle("height",re.height+re.depth,"em"),re.setStyle("width","100%"),this.backgroundcolor&&re.setStyle("background-color",(ct=Kt.toColor(this.backgroundcolor))!=null?ct:"transparent"),this.framecolor&&re.setStyle("border",`${Kt.getRegisterAsEm("fboxrule",2)}em solid ${(vt=Kt.toColor(this.framecolor))!=null?vt:"black"}`),this.border&&re.setStyle("border",this.border);const Be=new Qr([re,xt],{type:"lift"});return Be.setStyle("display","inline-block"),Be.setStyle("position","relative"),Be.setStyle("line-height",0),Be.height=xt.height+Zt+(Ot>0?Ot:0),Be.depth=xt.depth+Zt+(Ot<0?-Ot:0),Be.setStyle("padding-left",Zt,"em"),Be.setStyle("padding-right",Zt,"em"),Be.setStyle("height",Math.floor(100*(xt.height+xt.depth+2*Zt+Math.abs(Ot)))/100,"em"),Be.setStyle("margin-top",-Zt,"em"),Be.setStyle("top",Math.floor(100*(xt.depth-xt.height+2*Zt-Ot))/100,"em"),Be.setStyle("vertical-align",Math.floor(100*(xt.depth+2*Zt))/100,"em"),this.caret&&(Be.caret=this.caret),this.attachSupsub(z,{base:Be})}_serialize(z){return z.skipStyles?Ts([this.bodyToLatex(z),this.supsubToLatex(z)]):super._serialize(z)}},Fl=class G2 extends Mr{constructor(z,it){var st;super({type:"composition",mode:(st=it==null?void 0:it.mode)!=null?st:"math",value:z})}static fromJson(z){return new G2(z.value,z)}toJson(){return super.toJson()}get computedStyle(){return{}}render(z){const it=new Qr(this.value,{classes:"ML__composition",type:"composition"});return this.bind(z,it),this.caret&&(it.caret=this.caret),it}_serialize(z){return""}},iu=class Y2 extends Mr{constructor(z){super({type:"error",value:z,command:z,mode:"math"}),this.verbatimLatex=z}static fromJson(z){return new Y2(z.command)}toJson(){return super.toJson()}render(z){const it=this.createBox(z,{classes:"ML__error"});return this.caret&&(it.caret=this.caret),it}},Ra=class X2 extends Mr{constructor(z,it,st){super({type:"group",mode:it,style:st}),this.body=z,this.boxType=z.length>1?"ord":"ignore",this.skipBoundary=!0,this.displayContainsHighlight=!1,z&&z.length===1&&z[0].command===","&&(this.captureSelection=!0)}static fromJson(z){return new X2(z.body,z.mode,z.style)}render(z){const it=Mr.createBox(z,this.body,{type:this.boxType});return it?(this.caret&&(it.caret=this.caret),this.bind(z,it)):null}_serialize(z){if(!(z.expandMacro||z.skipStyles||z.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const it=Pn(this.command,this.mode);return it!=null&&it.serialize?it.serialize(this,z):`{${this.bodyToLatex(z)}}`}},qs=class J2 extends Mr{constructor(z,it,st){super({type:"leftright",style:st.style,displayContainsHighlight:!0}),this.variant=z,this.body=it,this.leftDelim=st.leftDelim,this.rightDelim=st.rightDelim}static fromJson(z){var it;return new J2((it=z.variant)!=null?it:"",z.body,z)}toJson(){const z=super.toJson();return this.variant&&(z.variant=this.variant),this.leftDelim&&(z.leftDelim=this.leftDelim),this.rightDelim&&(z.rightDelim=this.rightDelim),z}_serialize(z){var it,st;const ct=this.matchingRightDelim();return this.variant==="left...right"?Ts(["\\left",(it=this.leftDelim)!=null?it:".",this.bodyToLatex(z),"\\right",ct]):this.variant==="mleft...mright"?Ts(["\\mleft",(st=this.leftDelim)!=null?st:".",this.bodyToLatex(z),"\\mright",ct]):Ts([!this.leftDelim||this.leftDelim==="."?"":this.leftDelim,this.bodyToLatex(z),ct])}matchingRightDelim(){var z,it;if(this.rightDelim&&this.rightDelim!=="?")return this.rightDelim;const st=(z=this.leftDelim)!=null?z:".";return(it=pt[st])!=null?it:st}render(z){var it,st;const ct=new Ws({parent:z},this.style);console.assert(this.body!==void 0);const vt=new Ws({parent:z,mathstyle:"textstyle"},this.style),xt=(it=Mr.createBox(ct,this.body,{type:"inner"}))!=null?it:new Qr(null,{type:"inner"}),Ot=xt.height/vt.scalingFactor,Kt=xt.depth/vt.scalingFactor,Zt=[];if(this.leftDelim&&Zt.push(this.bind(vt,fo("open",this.leftDelim,Ot,Kt,vt,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),xt&&(el(xt.children,this,ct,Ot,Kt),Zt.push(xt)),this.rightDelim){let Fn=this.containsCaret?" ML__contains-caret":"",ei=this.rightDelim;ei==="?"&&(ct.smartFence?(ei=this.matchingRightDelim(),Fn+=" ML__smart-fence__close"):ei="."),Zt.push(this.bind(vt,fo("close",ei,Ot,Kt,vt,{isSelected:this.isSelected,classes:Fn+" ML__close",mode:this.mode,style:this.style})))}let re=this.variant==="mleft...mright";const Be=this.leftSibling;Be&&(!re&&Be.isFunction&&(re=!0),!re&&Be.type==="subsup"&&((st=Be.leftSibling)!=null&&st.isFunction)&&(re=!0));const ln=new Qr(Zt,{type:re?"close":"inner",classes:"left-right"});return ln.setStyle("margin-top",`${-xt.depth}em`),ln.setStyle("height",`${xt.height+xt.depth}em`),this.caret&&(ln.caret=this.caret),this.bind(ct,ln.wrap(ct))}};function el(E,z,it,st,ct){if(E)for(let vt=0;vt<E.length;vt++){const xt=E[vt];xt.type==="middle"?(E[vt]=z.bind(it,fo("inner",xt.value,st,ct,it,{isSelected:z.isSelected})),E[vt].caret=xt.caret,E[vt].isSelected=xt.isSelected,E[vt].cssId=xt.cssId,E[vt].htmlData=xt.htmlData,E[vt].htmlStyle=xt.htmlStyle,E[vt].attributes=xt.attributes,E[vt].cssProperties=xt.cssProperties):xt.children&&el(xt.children,z,it,st,ct)}}var Gf=class Q2 extends Mr{constructor(z,it){var st;super({type:"macro",command:z,style:it.style}),this.body=it.body,it.captureSelection===void 0?it.args?this.captureSelection=!1:this.captureSelection=!0:this.captureSelection=it.captureSelection,this.macroArgs=it.args,this.expand=(st=it.expand)!=null?st:!1}static fromJson(z){return new Q2(z.command,z)}toJson(){const z=super.toJson();return this.expand&&(z.expand=!0),this.captureSelection!==void 0&&(z.captureSelection=this.captureSelection),this.macroArgs&&(z.args=this.macroArgs),z}_serialize(z){var it;return z.expandMacro&&this.expand?this.bodyToLatex(z):this.command+((it=this.macroArgs)!=null?it:"")}render(z){const it=Mr.createBox(z,this.body);return it?(this.caret&&(it.caret=this.caret),this.bind(z,it)):null}},tc=class $2 extends Mr{constructor(){super({type:"macro-argument"})}static fromJson(z){return new $2}toJson(){return super.toJson()}_serialize(z){return""}render(z){return null}},ku=class q2 extends Mr{constructor(z,it,st=!1,ct,vt){var xt;super({type:"prompt",mode:(xt=vt==null?void 0:vt.mode)!=null?xt:"math",style:vt==null?void 0:vt.style,command:"\\placeholder"}),this.body=ct,this.correctness=it,this.placeholderId=z,this.locked=st,this.captureSelection=this.locked}static fromJson(z){return new q2(z.placeholderId,z.correctness,z.locked,z.body,z)}toJson(){const z=super.toJson();return this.placeholderId&&(z.placeholderId=this.placeholderId),this.body||delete z.body,this.body&&(z.body=this.body.filter(it=>it.type!=="first").map(it=>it.toJson())),this.correctness&&(z.correctness=this.correctness),z.locked=this.locked,z}render(z){const it=new Ws({parent:z}),st=it.getRegisterAsEm("fboxsep"),ct=st,vt=st,xt=Mr.createBox(z,this.body);if(!xt)return null;xt.height||(xt.height=it.metrics.xHeight),xt.setStyle("vertical-align",-xt.height,"em"),this.correctness==="correct"?xt.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&xt.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const Ot=new Qr(xt,{type:"ord"});Ot.setStyle("display","inline-block"),Ot.setStyle("height",xt.height+xt.depth,"em"),Ot.setStyle("vertical-align",-vt,"em");let Kt="ML__prompt ";this.locked?Kt+=" ML__lockedPromptBox ":Kt+=" ML__editablePromptBox ",this.correctness==="correct"?Kt+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(Kt+=" ML__incorrectPromptBox "),this.containsCaret&&(Kt+=" ML__focusedPromptBox ");const Zt=new Qr(null,{classes:Kt,attributes:{part:"prompt"}});Zt.height=Ot.height+vt,Zt.depth=Ot.depth+vt,Zt.width=Ot.width+2*ct,Zt.setStyle("box-sizing","border-box"),Zt.setStyle("position","absolute"),Zt.setStyle("height",Ot.height+Ot.depth+2*vt,"em"),ct===0&&Zt.setStyle("width","100%"),ct!==0&&(Zt.setStyle("width",`calc(100% + ${2*ct}em)`),Zt.setStyle("top",st,"em"),Zt.setStyle("left",-ct,"em")),(!this.body||this.body.length===1)&&(Zt.width=3*ct,Zt.setStyle("width",`calc(100% + ${3*ct}em)`),Zt.setStyle("left",-1.5*ct,"em"));let re="";this.correctness==="incorrect"&&(re+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),re&&(Zt.svgOverlay=re);const Be=new Qr([Zt,Ot],{classes:"ML__prompt-atom"});return Be.setStyle("position","relative"),Be.setStyle("display","inline-block"),Be.setStyle("line-height",0),Be.height=Ot.height+vt+.2,Be.depth=Ot.depth+vt,Be.left=ct,Be.right=ct,Be.setStyle("height",Ot.height+vt,"em"),Be.setStyle("top",Ot.depth-Ot.height,"em"),Be.setStyle("vertical-align",Ot.depth+vt,"em"),Be.setStyle("margin-left",.5,"em"),Be.setStyle("margin-right",.5,"em"),this.caret&&(Be.caret=this.caret),this.bind(it,this.attachSupsub(z,{base:Be}))}_serialize(z){var it;const st=(it=this.bodyToLatex(z))!=null?it:"";if(z.skipPlaceholders)return st;let ct="\\placeholder";return this.placeholderId&&(ct+=`[${this.placeholderId}]`),this.correctness==="correct"?ct+="[correct]":this.correctness==="incorrect"&&(ct+="[incorrect]"),this.locked&&(ct+="[locked]"),Fa(ct,st)}},Vl=class tw extends Mr{constructor(z){super({type:"subsup",style:z==null?void 0:z.style}),this.subsupPlacement="auto"}static fromJson(z){const it=new tw(z);for(const st of Gh)z[st]&&it.setChildren(z[st],st);return it}render(z){var it;const st=new Ws({parent:z,isPhantom:!0}),ct=this.leftSibling,vt=(it=ct.render(st))!=null?it:new Qr(null),xt=new Qr(null);return xt.height=vt.height,xt.depth=vt.depth,this.attachSupsub(z,{base:xt,isCharacterBox:ct.isCharacterBox(),type:"ignore"})}_serialize(z){return this.supsubToLatex(z)}};function ta(E){return E?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(E):!1}var Ll=class{constructor(E,z,it){this.errors=[],this.index=0,this.endCount=0;var st,ct,vt,xt;it!=null||(it={}),this.tokens=E,this.context=z instanceof Ws&&!(it!=null&&it.parseMode)&&!it.mathstyle?z:new Ws({from:z,mathstyle:it.mathstyle},it.style),this.args=(st=it.args)!=null?st:void 0,this.smartFence=this.context.smartFence,this.parsingContext={parent:void 0,mathlist:[],style:(ct=it.style)!=null?ct:{},parseMode:(vt=it.parseMode)!=null?vt:"math",mathstyle:(xt=it.mathstyle)!=null?xt:"displaystyle",tabular:!1}}beginContext(E){var z,it,st;const ct=this.parsingContext,vt={parent:ct,mathlist:[],style:jt({},ct.style),parseMode:(z=E==null?void 0:E.mode)!=null?z:ct.parseMode,mathstyle:(it=E==null?void 0:E.mathstyle)!=null?it:ct.mathstyle,tabular:(st=E==null?void 0:E.tabular)!=null?st:!1};this.parsingContext=vt}endContext(){this.parsingContext=this.parsingContext.parent}onError(E){this.errors.push(jt({before:Hh(this.tokens.slice(this.index,this.index+10)),after:Hh(this.tokens.slice(Math.max(0,this.index-10),this.index))},E))}get mathlist(){return this.parsingContext.mathlist}set mathlist(E){this.parsingContext.mathlist=E}get parseMode(){return this.parsingContext.parseMode}set parseMode(E){this.parsingContext.parseMode=E}get tabularMode(){return this.parsingContext.tabular}get style(){let E=this.parsingContext;for(;E;){if(E.style)return jt({},E.style);E=E.parent}return{}}set style(E){this.parsingContext.style=E}end(){return this.endCount++,this.index>=this.tokens.length||this.endCount>1e3}next(){this.index+=1}get(){return this.endCount=0,this.index<this.tokens.length?this.tokens[this.index++]:""}peek(){return this.tokens[this.index]}match(E){return this.tokens[this.index]===E?(this.index++,!0):!1}lastSubsupAtom(){let E;return this.mathlist.length>0&&(E=this.mathlist[this.mathlist.length-1],E.type==="subsup"||E.subsupPlacement!==void 0)||(E=new Vl({style:this.style}),this.mathlist.push(E)),E}hasPattern(E){return E.test(this.tokens[this.index])}hasInfixCommand(){var E;const{index:z}=this;if(z<this.tokens.length&&this.tokens[z].startsWith("\\")){const it=Pn(this.tokens[z],this.parseMode);return!it||it.definitionType==="symbol"||it.ifMode&&!it.ifMode.includes(this.parseMode)?!1:(E=it.infix)!=null?E:!1}return!1}matchColumnSeparator(){return!this.tabularMode||this.peek()!=="&"?!1:(this.index++,!0)}matchRowSeparator(){if(!this.tabularMode)return!1;const E=this.peek();return E!=="\\\\"&&E!=="\\cr"&&E!=="\\tabularnewline"?!1:(this.index++,!0)}placeholder(){var E;const z=(E=this.args)==null?void 0:E.call(this,"?");return z?ll(z,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new $o({mode:this.parseMode,style:this.style})]}skipWhitespace(){for(;this.match("<space>"););}skipUntilToken(E){let z=this.tokens[this.index];for(;z&&z!==E;)z=this.tokens[++this.index];z===E&&this.index++}skipFiller(){for(;this.match("\\relax")||this.match("<space>"););}matchKeyword(E){const z=this.index;let it=this.end(),st="";for(;!it;){const vt=this.get();ta(vt)?(st+=vt,it=this.end()||st.length>=E.length):it=!0}const ct=E.toUpperCase()===st.toUpperCase();return ct||(this.index=z),ct}scanString(){let E="";for(;!this.end();){const z=this.peek();if(z==="]")return E;if(z==="<space>")E+=" ";else if(z.startsWith("\\"))this.onError({code:"unexpected-command-in-string"}),E+=z.substring(1);else if(ta(z))E+=z;else return E;this.next()}return E}scanBalancedString(){let E="",z=this.end(),it=1;for(;!z;){const st=this.get();st==="<space>"?E+=" ":st==="<{>"?(E+="{",it+=1):st==="<}>"?(it-=1,it>0?E+="}":this.index-=1):st==="<$>"?E+="$":st==="<$$>"?E+="$$":E+=st,z=it===0||this.end()}return E}scanLiteralGroup(){var E;if(!this.match("<{>"))return"";let z="",it=1;for(;it>0&&!this.end();){const st=this.get();st==="<}>"?(it-=1,it>0&&(z+="}")):st==="<{>"?(it+=1,z+="{"):(/\\[a-zA-Z]+$/.test(z)&&/^[a-zA-Z]/.test(st)&&(z+=" "),z+=(E={"<space>":" ","<$$>":"$$","<$>":"$"}[st])!=null?E:st)}return z}scanNumber(E=!0){var z,it;let st=!1,ct=this.peek();for(;ct==="<space>"||ct==="+"||ct==="-";)this.get(),ct==="-"&&(st=!st),ct=this.peek();E=!!E;let vt=10,xt=/\d/;if(this.match("'"))vt=8,xt=/[0-7]/,E=!0;else if(this.match('"'))vt=16,xt=/[\dA-F]/,E=!0;else if(this.match("x"))vt=16,xt=/[\dA-Fa-f]/,E=!0;else if(this.match("`"))return ct=this.get(),ct?ct.length===2&&ct.startsWith("\\")?{number:(st?-1:1)*((z=ct.codePointAt(1))!=null?z:0),base:"alpha"}:{number:(st?-1:1)*((it=ct.codePointAt(0))!=null?it:0),base:"alpha"}:null;let Ot="";for(;this.hasPattern(xt);)Ot+=this.get();if(!E&&(this.match(".")||this.match(",")))for(Ot+=".";this.hasPattern(xt);)Ot+=this.get();const Kt=E?Number.parseInt(Ot,vt):Number.parseFloat(Ot);return Number.isNaN(Kt)?null:{number:st?-Kt:Kt,base:vt===16?"hexadecimal":vt===8?"octal":"decimal"}}scanRegister(){var E;const z=this.index,it=this.scanNumber(!1);if(this.skipWhitespace(),this.match("\\relax"))return it;let st=!1;if(it===null)for(;;){const vt=this.peek();if(vt==="-")st=!st;else if(vt!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const vt=this.get();return vt.startsWith("\\")?it?{register:vt,global:!0,factor:(st?-1:1)*it.number}:st?{register:vt,global:!0,factor:-1}:{register:vt,global:!0}:(this.index=z,null)}let ct=this.get();return ct!=null&&ct.startsWith("\\")?(ct=ct.substring(1),this.context.registers[ct]?!st||it!==null?{register:ct,factor:(st?-1:1)*((E=it==null?void 0:it.number)!=null?E:1)}:{register:ct}:(this.index=z,null)):(this.index=z,null)}scanValue(){const E=this.scanRegister();if(E)return E;const z=this.index,it=this.scanGlueOrDimen();if(it&&("unit"in it||"glue"in it&&"unit"in it.glue))return it;this.index=z;const st=this.scanNumber();if(st)return st;if(this.end()||!ta(this.peek()))return null;const ct=this.scanString();return ct.length>0?{string:ct}:null}scanDimen(){const E=this.scanNumber(!1);if(E===null)return null;const z=E.number;this.skipWhitespace(),this.matchKeyword("true"),this.skipWhitespace();let it;return this.matchKeyword("pt")?it="pt":this.matchKeyword("mm")?it="mm":this.matchKeyword("cm")?it="cm":this.matchKeyword("ex")?it="ex":this.matchKeyword("px")?it="px":this.matchKeyword("em")?it="em":this.matchKeyword("bp")?it="bp":this.matchKeyword("dd")?it="dd":this.matchKeyword("pc")?it="pc":this.matchKeyword("in")?it="in":this.matchKeyword("mu")&&(it="mu"),it?{dimension:z,unit:it}:{dimension:z}}scanGlueOrDimen(){const E=this.scanDimen();if(E===null)return null;if(this.skipWhitespace(),this.match("\\relax"))return E;const z={glue:E};if(this.matchKeyword("plus")){const it=this.scanDimen();if(it)z.grow=it;else return z}if(this.skipWhitespace(),this.match("\\relax"))return z;if(this.skipWhitespace(),this.matchKeyword("minus")){const it=this.scanDimen();if(it)z.shrink=it;else return z}return!z.grow&&!z.shrink?E:z}scanColspec(){this.skipWhitespace();const E=[];for(;!this.end()&&!(this.peek()==="<}>"||this.peek()==="]");){const z=this.get();z==="c"||z==="r"||z==="l"?E.push({align:z}):z==="|"?E.push({separator:"solid"}):z===":"?E.push({separator:"dashed"}):z==="@"&&(this.match("<{>")&&(this.beginContext({mode:"math"}),E.push({gap:this.scan(it=>it==="<}>")}),this.endContext()),this.match("<}>")||this.onError({code:"unbalanced-braces"}))}return E}scanModeSet(){let E;if(this.match("\\(")&&(E="textstyle"),!E&&this.match("\\[")&&(E="displaystyle"),!E)return null;this.beginContext({mode:"math",mathstyle:E});const z=this.scan(it=>it===(E==="displaystyle"?"\\]":"\\)"));return this.match(E==="displaystyle"?"\\]":"\\)")||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),z}scanModeShift(){let E="";if(this.match("<$>")&&(E="<$>"),!E&&this.match("<$$>")&&(E="<$$>"),!E)return null;this.beginContext({mode:"math",mathstyle:"textstyle"});const z=this.scan(it=>it===E);return this.match(E)||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),z}scanEnvironment(){if(!this.match("\\begin"))return null;const E=this.scanArgument("string");if(!E)return null;const z=We(E);if(!z)return this.onError({code:"unknown-environment",arg:E}),null;const it=[];if(z.params)for(const Ot of z.params)if(Ot.isOptional)it.push(this.scanOptionalArgument(Ot.type));else{const Kt=this.scanArgument(Ot.type);Kt||this.onError({code:"missing-argument",arg:E}),it.push(Kt)}this.beginContext({tabular:z.tabular});const st=[],ct=[];let vt=[],xt=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:E}),xt=!0),!xt&&this.match("\\end")&&(this.scanArgument("string")!==E&&this.onError({code:"unbalanced-environment",arg:E}),xt=!0),!xt)if(this.matchColumnSeparator())vt.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){vt.push(this.mathlist),this.mathlist=[];let Ot=null;this.skipWhitespace(),this.match("[")&&(Ot=this.scanDimen(),this.skipWhitespace(),this.match("]")),ct.push(Ot!=null?Ot:{dimension:0}),st.push(vt),vt=[]}else this.mathlist.push(...this.scan(Ot=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(Ot)));while(!xt);return vt.push(this.mathlist),vt.length>0&&st.push(vt),this.endContext(),z.createAtom(E,st,ct,it)}scanExpression(){const E=this.mathlist;if(this.mathlist=[],this.parseExpression()){const z=this.mathlist;return this.mathlist=E,z}return this.mathlist=E,null}scan(E){this.beginContext(),E||(E=xt=>xt==="<}>");let z="",it=null,st=[],ct=null;for(;!this.end()&&!E(this.peek());)this.hasInfixCommand()&&!z?(z=this.get(),it=Pn(z,"math"),it&&(st=this.scanArguments(it)[1]),ct=this.mathlist,this.mathlist=[]):this.parseExpression();let vt;return z?(console.assert(!!it),st.unshift(this.mathlist),ct&&st.unshift(ct),vt=[it.createAtom({command:z,args:st,style:this.style,mode:this.parseMode})]):vt=this.mathlist,this.endContext(),vt}scanGroup(){const E=this.index;if(!this.match("<{>"))return null;const z=this.scan(st=>st==="<}>");this.match("<}>")||this.onError({code:"unbalanced-braces"});const it=new Ra(z,this.parseMode,this.style);return it.verbatimLatex=Hh(this.tokens.slice(E,this.index)),it}scanSmartFence(){if(this.skipWhitespace(),!this.match("("))return null;this.beginContext();let E=1;for(;!this.end()&&E!==0;)this.match("(")&&(E+=1),this.match(")")&&(E-=1),E!==0&&this.parseExpression();const z=new qs("",this.mathlist,{leftDelim:"(",rightDelim:E===0?")":"?"});return this.endContext(),z}scanDelim(){this.skipWhitespace();const E=this.peek();if(!E)return this.onError({code:"unexpected-end-of-string"}),null;if(!ta(E)&&!E.startsWith("\\"))return null;this.next();const z=Pn(E,"math");return z?z.definitionType==="function"&&z.ifMode&&!z.ifMode.includes(this.parseMode)?(this.onError({code:"unexpected-delimiter",arg:E}),null):z.definitionType==="symbol"&&(z.type==="mopen"||z.type==="mclose")||/^(\.|\?|\||<|>|\\vert|\\Vert|\\\||\\surd|\\uparrow|\\downarrow|\\Uparrow|\\Downarrow|\\updownarrow|\\Updownarrow|\\mid|\\mvert|\\mVert)$/.test(E)?E:(this.onError({code:"unexpected-delimiter",arg:E}),null):(this.onError({code:"unknown-command",arg:E}),null)}scanLeftRight(){var E;if(this.match("\\right"))return this.onError({code:"unbalanced-braces"}),new iu("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new iu("\\mright");let z="\\right";if(!this.match("\\left")){if(!this.match("\\mleft"))return null;z="\\mright"}const it=this.scanDelim();if(!it)return this.onError({code:"unexpected-delimiter"}),new iu(z==="\\right"?"\\left":"\\mleft");for(this.beginContext();!this.end()&&!this.match(z);)this.parseExpression();const st=this.mathlist;this.endContext();const ct=(E=this.scanDelim())!=null?E:".";return new qs(z==="\\right"?"left...right":"mleft...mright",st,{leftDelim:it,rightDelim:ct,style:this.style})}parseSupSub(){if(this.parseMode!=="math")return!1;let E=this.peek();if(E!=="^"&&E!=="_"&&E!=="'")return!1;const z=this.lastSubsupAtom();for(;E==="^"||E==="_"||E==="'";)this.match("'")?this.match("'")?z.addChild(new Mr({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):z.addChild(new Mr({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&z.addChildren(on(this.scanArgument("expression")),E==="_"?"subscript":"superscript"),E=this.peek();return!0}parseLimits(){if(this.parseMode!=="math")return!1;const E=this.match("\\limits"),z=!E&&this.match("\\nolimits"),it=!z&&!E&&this.match("\\displaylimits");if(!E&&!z&&!it)return!1;const st=this.mathlist.length>0?this.mathlist[this.mathlist.length-1]:null;return st===null?!1:(st.explicitSubsupPlacement=!0,E&&(st.subsupPlacement="over-under"),z&&(st.subsupPlacement="adjacent"),it&&(st.subsupPlacement="auto"),!0)}scanArguments(E){if(!(E!=null&&E.params))return[void 0,[]];let z;const it=[];let st=E.infix?2:0;for(;st<E.params.length;){const ct=E.params[st];ct.type==="rest"?it.push(this.scan(vt=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(vt))):ct.isOptional?it.push(this.scanOptionalArgument(ct.type)):ct.type.endsWith("*")?z=ct.type.slice(0,-1):it.push(this.scanArgument(ct.type)),st+=1}return[z,it]}scanSymbolOrLiteral(){const E=this.peek();if(!E)return null;this.next();let z;if(ta(E)){const it=Hu.createAtom(this.parseMode,E,jt({},this.style));return it?[it]:null}if(z=this.scanMacro(E),z)return[z];if(E.startsWith("\\")){const it=Pn(E,this.parseMode);if(!it)return this.onError({code:"unknown-command",arg:E}),[new iu(E)];if(it.definitionType==="symbol"){const st=jt({},this.style);it.variant&&(st.variant=it.variant),z=new Mr({type:it.type,command:E,style:st,value:String.fromCodePoint(it.codepoint),mode:this.parseMode,verbatimLatex:E})}else{if(it.applyMode||it.applyStyle||it.infix)return this.onError({code:"invalid-command",arg:E}),[new iu(E)];it.createAtom&&(z=it.createAtom({command:E,args:[],style:this.style,mode:this.parseMode}))}}return z?[z]:null}scanArgument(E){var z;this.skipFiller();const it=this.parseMode;if(E==="auto"&&(E=it),!this.match("<{>")){if(E==="string")return this.scanString();if(E==="value")return this.scanValue();if(E==="delim")return(z=this.scanDelim())!=null?z:".";if(E==="expression")return this.scanExpression();if(E==="math"){E!==it&&this.beginContext({mode:"math"});const ct=this.scanSymbolOrLiteral();return E!==it&&this.endContext(),ct}if(E==="text"){E!==it&&this.beginContext({mode:"text"});const ct=this.scanSymbolOrLiteral();return E!==it&&this.endContext(),ct}return E==="balanced-string"||console.assert(!1),null}if(E==="text"){this.beginContext({mode:"text"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ct=this.mathlist;return this.endContext(),{group:ct}}if(E==="math"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ct=this.mathlist;return this.endContext(),{group:ct}}let st=null;if(E==="expression"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ct=this.mathlist;return this.endContext(),{group:ct}}return E==="string"?st=this.scanString():E==="balanced-string"?st=this.scanBalancedString():E==="colspec"?st=this.scanColspec():E==="value"&&(st=this.scanValue()),this.skipUntilToken("<}>"),st}scanOptionalArgument(E){if(E=E==="auto"?this.parseMode:E,this.skipFiller(),!this.match("["))return null;let z=null;for(;!this.end()&&!this.match("]");)if(E==="string")z=this.scanString();else if(E==="value")z=this.scanValue();else if(E==="colspec")z=this.scanColspec();else if(E==="bbox"){const it={},st=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const ct of st){const vt=ct.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(vt)it.padding={dimension:parseInt(vt[1]),unit:vt[2]};else{const xt=ct.match(/^\s*border\s*:\s*(.*)/);xt?it.border=xt[1]:it.backgroundcolor={string:ct}}}z=it}else E==="math"&&(this.beginContext({mode:"math"}),z=this.mathlist.concat(this.scan(it=>it==="]")),this.endContext());return z}scanSymbolOrCommand(E){var z,it,st;if(E==="\\placeholder"){const Ot=this.scanOptionalArgument("string"),Kt=this.scanOptionalArgument("math"),Zt=Mr.serialize(Kt,{defaultMode:"math"});let re=[],Be;!Be&&Zt==="correct"?Be="correct":!Be&&Zt==="incorrect"?Be="incorrect":Zt!==""&&(re=Kt);const ln=this.scanOptionalArgument("string")==="locked",Fn=this.scanArgument("auto");let ei;return Fn&&Array.isArray(Fn)&&Fn.length>0?ei=Fn:Fn&&typeof Fn=="object"&&"group"in Fn?ei=Fn.group:ei=re,Ot?[new ku(Ot,Be,ln,ei!=null?ei:re,{mode:this.parseMode,style:this.style})]:[new $o({mode:this.parseMode,style:this.style})]}if(E==="\\renewcommand"||E==="\\newcommand"||E==="\\providecommand"||E==="\\def"){const Ot=this.index,Kt=this.scanLiteralGroup()||this.next();if(!Kt)return null;if(this.context.registers[Kt.substring(1)]){const Zt=this.scanArgument("string");Zt!==null&&(this.context.registers[Kt.substring(1)]=Zt);const re=Ts([E,Hh(this.tokens.slice(Ot,this.index))]);return[new Mr({type:"text",value:"",verbatimLatex:re})]}}let ct=this.scanMacro(E);if(ct)return[ct];const vt=Pn(E,this.parseMode);if(!vt)return this.parseMode==="text"?(/[a-zA-Z]/.test((z=this.peek())!=null?z:"")&&(E+=" "),[...E].map(Ot=>new Mr({type:"text",value:Ot,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:E}),[new iu(E)]);const xt=this.index;if(vt.definitionType==="symbol"){const Ot=jt({},this.style);vt.variant&&(Ot.variant=vt.variant),ct=new Mr({type:vt.type,command:E,style:Ot,value:String.fromCodePoint(vt.codepoint),mode:this.parseMode})}else{if(vt.ifMode&&!vt.ifMode.includes(this.parseMode))return[];const Ot=this.parseMode;vt.applyMode&&(this.parseMode=vt.applyMode);let Kt,Zt=[];if(vt.parse?Zt=vt.parse(this):[Kt,Zt]=this.scanArguments(vt),this.parseMode=Ot,vt.applyMode&&!vt.applyStyle&&!vt.createAtom)return on(Zt[0]);if(vt.infix)return this.onError({code:"too-many-infix-commands",arg:E}),null;if(typeof vt.createAtom=="function")ct=vt.createAtom({command:E,args:Zt,style:this.style,mode:this.parseMode}),Kt&&(ct.body=on(this.scanArgument(Kt)));else if(typeof vt.applyStyle=="function"){const re=jt(jt({},this.style),vt.applyStyle(E,Zt,this.context)),Be=this.parseMode;if(vt.applyMode&&(this.parseMode=vt.applyMode),Kt){const ln=this.style;this.style=re;const Fn=this.scanArgument(Kt);return this.style=ln,this.parseMode=Be,on(Fn)}this.style=re}else ct=new Mr({type:"mord",command:(it=vt.command)!=null?it:E,style:jt({},this.style),value:E,mode:(st=vt.applyMode)!=null?st:this.parseMode})}if(!ct)return null;if(ct instanceof Mr&&ct.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(E)){const Ot=Ts([E,Hh(this.tokens.slice(xt,this.index))]);Ot&&(ct.verbatimLatex=Ot)}if(ct.verbatimLatex===null&&(ct.verbatimLatex=void 0),ct.isFunction&&this.smartFence){const Ot=this.scanSmartFence();if(Ot)return[ct,Ot]}return[ct]}scanSymbolCommandOrLiteral(){const E=this.get();if(!E)return null;if(ta(E)){const z=Hu.createAtom(this.parseMode,E,jt({},this.style));if(!z)return null;if(z.isFunction&&this.smartFence){const it=this.scanSmartFence();if(it)return[z,it]}return[z]}return E.startsWith("\\")?this.scanSymbolOrCommand(E):E==="<space>"?this.parseMode==="text"?[new gh(" "," ",this.style)]:null:(E==="<}>"?this.onError({latex:"",code:"unbalanced-braces"}):this.onError({latex:"",code:"unexpected-token",arg:E}),null)}scanMacro(E){var z;const it=this.context.getMacro(E);if(!it)return null;const st=this.index,ct=it.args,vt={"?":(z=this.args)==null?void 0:z.call(this,"?")};for(let xt=1;xt<=ct;xt++){let Ot=this.scanLiteralGroup();if(!Ot){const Kt=this.index;this.scanExpression(),Ot=Hh(this.tokens.slice(Kt,this.index))}vt[xt]=Ot}return new Gf(E,{expand:it.expand,captureSelection:it.captureSelection,args:st===this.index?null:Hh(this.tokens.slice(st,this.index)),style:this.parsingContext.style,body:ll(it.def,{context:this.context,parseMode:this.parseMode,args:xt=>vt[xt],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var E,z,it,st;let ct=(st=(it=(z=(E=this.scanEnvironment())!=null?E:this.scanModeShift())!=null?z:this.scanModeSet())!=null?it:this.scanGroup())!=null?st:this.scanLeftRight();if(ct===null){if(this.parseSupSub()||this.parseLimits())return!0;ct=this.scanSymbolCommandOrLiteral()}return ct?(Array.isArray(ct)?this.mathlist.push(...ct):this.mathlist.push(ct),!0):!1}};function ll(E,z){var it,st,ct,vt;const xt=(it=z==null?void 0:z.args)!=null?it:void 0,Ot=new Ll(ph(E,xt),z==null?void 0:z.context,{args:xt,mathstyle:(st=z==null?void 0:z.mathstyle)!=null?st:"displaystyle",parseMode:(ct=z==null?void 0:z.parseMode)!=null?ct:"math",style:(vt=z==null?void 0:z.style)!=null?vt:{}}),Kt=[];for(;!Ot.end();)Kt.push(...Ot.scan(()=>!1));return Kt}function lf(E,z){var it;const st=new Ll(ph(E,null),z==null?void 0:z.context,{mathstyle:"displaystyle",parseMode:(it=z==null?void 0:z.parseMode)!=null?it:"math"});for(;!st.end();)st.scan();return st.errors}var Oy=class ew extends Mr{constructor(z,it){super({type:"chem"},{command:z,mode:"math"});const st=Ya.go(Dr.go(it,z==="\\pu"?"pu":"ce"),!1);this.body=ll(st),this._verbatimLatex=z+"{"+it+"}",this.arg=it,this.captureSelection=!0}static fromJson(z){return new ew(z.command,z.arg)}set verbatimLatex(z){}get verbatimLatex(){return this._verbatimLatex}toJson(){return Nt(jt({},super.toJson()),{arg:this.arg})}render(z){const it=Mr.createBox(z,this.body,{type:"inner"});return this.caret&&(it.caret=this.caret),this.bind(z,it)}_serialize(z){return console.assert(this.verbatimLatex!==void 0),this.verbatimLatex}};En(["ce","pu"],"{chemformula:balanced-string}",{createAtom:E=>{var z;return new Oy(E.command,(z=E.args[0])!=null?z:"")}});var Dr={go:function(E,z){if(!E)return[];z===void 0&&(z="ce");var it="0",st={};st.parenthesisLevel=0,E=E.replace(/\n/g," "),E=E.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),E=E.replace(/[\u2026]/g,"...");for(var ct,vt=10,xt=[];;){ct!==E?(vt=10,ct=E):vt--;var Ot=Dr.stateMachines[z],Kt=Ot.transitions[it]||Ot.transitions["*"];t:for(var Zt=0;Zt<Kt.length;Zt++){var re=Dr.patterns.match_(Kt[Zt].pattern,E);if(re){for(var Be=Kt[Zt].task,ln=0;ln<Be.action_.length;ln++){var Fn;if(Ot.actions[Be.action_[ln].type_])Fn=Ot.actions[Be.action_[ln].type_](st,re.match_,Be.action_[ln].option);else if(Dr.actions[Be.action_[ln].type_])Fn=Dr.actions[Be.action_[ln].type_](st,re.match_,Be.action_[ln].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+Be.action_[ln].type_+")"];Dr.concatArray(xt,Fn)}if(it=Be.nextState||it,E.length>0){if(Be.revisit||(E=re.remainder),!Be.toContinue)break t}else return xt}}if(vt<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(E,z){if(z)if(Object.prototype.toString.call(z)==="[object Array]")for(var it=0;it<z.length;it++)E.push(z[it]);else E.push(z)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(E){var z=E.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:(?:([eE])|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return z&&z[0]?{match_:z.slice(1),remainder:E.substr(z[0].length)}:null},"(-)(9)^(-9)":function(E){var z=E.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);return z&&z[0]?{match_:z.slice(1),remainder:E.substr(z[0].length)}:null},"state of aggregation $":function(E){var z=Dr.patterns.findObserveGroups(E,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(z&&z.remainder.match(/^($|[\s,;\)\]\}])/))return z;var it=E.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return it?{match_:it[0],remainder:E.substr(it[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". ":/^([.\u22C5\u00B7\u2022])\s*/,"...":/^\.\.\.(?=$|[^.])/,"* ":/^([*])\s*/,"^{(...)}":function(E){return Dr.patterns.findObserveGroups(E,"^{","","","}")},"^($...$)":function(E){return Dr.patterns.findObserveGroups(E,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(E){return Dr.patterns.findObserveGroups(E,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(E){return Dr.patterns.findObserveGroups(E,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(E){return Dr.patterns.findObserveGroups(E,"_{","","","}")},"_($...$)":function(E){return Dr.patterns.findObserveGroups(E,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(E){return Dr.patterns.findObserveGroups(E,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(E){return Dr.patterns.findObserveGroups(E,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(E){return Dr.patterns.findObserveGroups(E,"","{","}","")},"{(...)}":function(E){return Dr.patterns.findObserveGroups(E,"{","","","}")},"$...$":function(E){return Dr.patterns.findObserveGroups(E,"","$","$","")},"${(...)}$":function(E){return Dr.patterns.findObserveGroups(E,"${","","","}$")},"$(...)$":function(E){return Dr.patterns.findObserveGroups(E,"$","","","$")},"=<>":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(E){return Dr.patterns.findObserveGroups(E,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(E){return Dr.patterns.findObserveGroups(E,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(E){return Dr.patterns.findObserveGroups(E,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(E){return Dr.patterns.findObserveGroups(E,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(E){return Dr.patterns.findObserveGroups(E,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(E){return Dr.patterns.findObserveGroups(E,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(E){return Dr.patterns.findObserveGroups(E,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(E){return Dr.patterns.findObserveGroups(E,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(E){return Dr.patterns.findObserveGroups(E,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(E){return Dr.patterns.findObserveGroups(E,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(E){return Dr.patterns.findObserveGroups(E,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(E){return Dr.patterns.findObserveGroups(E,"\\ce{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(E){var z;if(z=E.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/),z)return{match_:z[0],remainder:E.substr(z[0].length)};var it=Dr.patterns.findObserveGroups(E,"","$","$","");return it&&(z=it.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/),z)?{match_:z[0],remainder:E.substr(z[0].length)}:null},amount2:function(E){return this.amount(E)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(E){if(E.match(/^\([a-z]+\)$/))return null;var z=E.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return z?{match_:z[0],remainder:E.substr(z[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(E,z,it,st,ct,vt,xt,Ot,Kt,Zt){var re=function($i,Nr){if(typeof Nr=="string")return $i.indexOf(Nr)!==0?null:Nr;var eo=$i.match(Nr);return eo?eo[0]:null},Be=function($i,Nr,eo){for(var zr=0;Nr<$i.length;){var _o=$i.charAt(Nr),ns=re($i.substr(Nr),eo);if(ns!==null&&zr===0)return{endMatchBegin:Nr,endMatchEnd:Nr+ns.length};if(_o==="{")zr++;else if(_o==="}"){if(zr===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];zr--}Nr++}return zr>0,null},ln=re(E,z);if(ln===null||(E=E.substr(ln.length),ln=re(E,it),ln===null))return null;var Fn=Be(E,ln.length,st||ct);if(Fn===null)return null;var ei=E.substring(0,st?Fn.endMatchEnd:Fn.endMatchBegin);if(vt||xt){var hr=this.findObserveGroups(E.substr(Fn.endMatchEnd),vt,xt,Ot,Kt);if(hr===null)return null;var Gr=[ei,hr.match_];return{match_:Zt?Gr.join(""):Gr,remainder:hr.remainder}}else return{match_:ei,remainder:E.substr(Fn.endMatchEnd)}},match_:function(E,z){var it=Dr.patterns.patterns[E];if(it===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+E+")"];if(typeof it=="function")return Dr.patterns.patterns[E](z);var st=z.match(it);if(st){var ct;return st[2]?ct=[st[1],st[2]]:st[1]?ct=st[1]:ct=st[0],{match_:ct,remainder:z.substr(st[0].length)}}return null}},actions:{"a=":function(E,z){E.a=(E.a||"")+z},"b=":function(E,z){E.b=(E.b||"")+z},"p=":function(E,z){E.p=(E.p||"")+z},"o=":function(E,z){E.o=(E.o||"")+z},"q=":function(E,z){E.q=(E.q||"")+z},"d=":function(E,z){E.d=(E.d||"")+z},"rm=":function(E,z){E.rm=(E.rm||"")+z},"text=":function(E,z){E.text_=(E.text_||"")+z},insert:function(E,z,it){return{type_:it}},"insert+p1":function(E,z,it){return{type_:it,p1:z}},"insert+p1+p2":function(E,z,it){return{type_:it,p1:z[0],p2:z[1]}},copy:function(E,z){return z},rm:function(E,z){return{type_:"rm",p1:z||""}},text:function(E,z){return Dr.go(z,"text")},"{text}":function(E,z){var it=["{"];return Dr.concatArray(it,Dr.go(z,"text")),it.push("}"),it},"tex-math":function(E,z){return Dr.go(z,"tex-math")},"tex-math tight":function(E,z){return Dr.go(z,"tex-math tight")},bond:function(E,z,it){return{type_:"bond",kind_:it||z}},"color0-output":function(E,z){return{type_:"color0",color:z[0]}},ce:function(E,z){return Dr.go(z)},"1/2":function(E,z){var it=[];z.match(/^[+\-]/)&&(it.push(z.substr(0,1)),z=z.substr(1));var st=z.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return st[1]=st[1].replace(/\$/g,""),it.push({type_:"frac",p1:st[1],p2:st[2]}),st[3]&&(st[3]=st[3].replace(/\$/g,""),it.push({type_:"tex-math",p1:st[3]})),it},"9,9":function(E,z){return Dr.go(z,"9,9")}},createTransitions:function(E){var z,it,st,ct,vt={};for(z in E)for(it in E[z])for(st=it.split("|"),E[z][it].stateArray=st,ct=0;ct<st.length;ct++)vt[st[ct]]=[];for(z in E)for(it in E[z])for(st=E[z][it].stateArray||[],ct=0;ct<st.length;ct++){var xt=E[z][it];if(xt.action_){xt.action_=[].concat(xt.action_);for(var Ot=0;Ot<xt.action_.length;Ot++)typeof xt.action_[Ot]=="string"&&(xt.action_[Ot]={type_:xt.action_[Ot]})}else xt.action_=[];for(var Kt=z.split("|"),Zt=0;Zt<Kt.length;Zt++)if(st[ct]==="*")for(var re in vt)vt[re].push({pattern:Kt[Zt],task:xt});else vt[st[ct]].push({pattern:Kt[Zt],task:xt})}return vt},stateMachines:{}};Dr.stateMachines={ce:{transitions:Dr.createTransitions({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:!0,toContinue:!0}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(E,z){var it;if((E.d||"").match(/^[0-9]+$/)){var st=E.d;E.d=void 0,it=this.output(E),E.b=st}else it=this.output(E);return Dr.actions["o="](E,z),it},"d= kv":function(E,z){E.d=z,E.dType="kv"},"charge or bond":function(E,z){if(E.beginsWithBond){var it=[];return Dr.concatArray(it,this.output(E)),Dr.concatArray(it,Dr.actions.bond(E,z,"-")),it}else E.d=z},"- after o/d":function(E,z,it){var st=Dr.patterns.match_("orbital",E.o||""),ct=Dr.patterns.match_("one lowercase greek letter $",E.o||""),vt=Dr.patterns.match_("one lowercase latin letter $",E.o||""),xt=Dr.patterns.match_("$one lowercase latin letter$ $",E.o||""),Ot=z==="-"&&(st&&st.remainder===""||ct||vt||xt);Ot&&!E.a&&!E.b&&!E.p&&!E.d&&!E.q&&!st&&vt&&(E.o="$"+E.o+"$");var Kt=[];return Ot?(Dr.concatArray(Kt,this.output(E)),Kt.push({type_:"hyphen"})):(st=Dr.patterns.match_("digits",E.d||""),it&&st&&st.remainder===""?(Dr.concatArray(Kt,Dr.actions["d="](E,z)),Dr.concatArray(Kt,this.output(E))):(Dr.concatArray(Kt,this.output(E)),Dr.concatArray(Kt,Dr.actions.bond(E,z,"-")))),Kt},"a to o":function(E){E.o=E.a,E.a=void 0},"sb=true":function(E){E.sb=!0},"sb=false":function(E){E.sb=!1},"beginsWithBond=true":function(E){E.beginsWithBond=!0},"beginsWithBond=false":function(E){E.beginsWithBond=!1},"parenthesisLevel++":function(E){E.parenthesisLevel++},"parenthesisLevel--":function(E){E.parenthesisLevel--},"state of aggregation":function(E,z){return{type_:"state of aggregation",p1:Dr.go(z,"o")}},comma:function(E,z){var it=z.replace(/\s*$/,""),st=it!==z;return st&&E.parenthesisLevel===0?{type_:"comma enumeration L",p1:it}:{type_:"comma enumeration M",p1:it}},output:function(E,z,it){var st;if(!E.r)st=[],!E.a&&!E.b&&!E.p&&!E.o&&!E.q&&!E.d&&!it||(E.sb&&st.push({type_:"entitySkip"}),!E.o&&!E.q&&!E.d&&!E.b&&!E.p&&it!==2?(E.o=E.a,E.a=void 0):!E.o&&!E.q&&!E.d&&(E.b||E.p)?(E.o=E.a,E.d=E.b,E.q=E.p,E.a=E.b=E.p=void 0):E.o&&E.dType==="kv"&&Dr.patterns.match_("d-oxidation$",E.d||"")?E.dType="oxidation":E.o&&E.dType==="kv"&&!E.q&&(E.dType=void 0),st.push({type_:"chemfive",a:Dr.go(E.a,"a"),b:Dr.go(E.b,"bd"),p:Dr.go(E.p,"pq"),o:Dr.go(E.o,"o"),q:Dr.go(E.q,"pq"),d:Dr.go(E.d,E.dType==="oxidation"?"oxidation":"bd"),dType:E.dType}));else{var ct;E.rdt==="M"?ct=Dr.go(E.rd,"tex-math"):E.rdt==="T"?ct=[{type_:"text",p1:E.rd||""}]:ct=Dr.go(E.rd);var vt;E.rqt==="M"?vt=Dr.go(E.rq,"tex-math"):E.rqt==="T"?vt=[{type_:"text",p1:E.rq||""}]:vt=Dr.go(E.rq),st={type_:"arrow",r:E.r,rd:ct,rq:vt}}for(var xt in E)xt!=="parenthesisLevel"&&xt!=="beginsWithBond"&&delete E[xt];return st},"oxidation-output":function(E,z){var it=["{"];return Dr.concatArray(it,Dr.go(z,"oxidation")),it.push("}"),it},"frac-output":function(E,z){return{type_:"frac-ce",p1:Dr.go(z[0]),p2:Dr.go(z[1])}},"overset-output":function(E,z){return{type_:"overset",p1:Dr.go(z[0]),p2:Dr.go(z[1])}},"underset-output":function(E,z){return{type_:"underset",p1:Dr.go(z[0]),p2:Dr.go(z[1])}},"underbrace-output":function(E,z){return{type_:"underbrace",p1:Dr.go(z[0]),p2:Dr.go(z[1])}},"color-output":function(E,z){return{type_:"color",color1:z[0],color2:Dr.go(z[1])}},"r=":function(E,z){E.r=z},"rdt=":function(E,z){E.rdt=z},"rd=":function(E,z){E.rd=z},"rqt=":function(E,z){E.rqt=z},"rq=":function(E,z){E.rq=z},operator:function(E,z,it){return{type_:"operator",kind_:it||z}}}},a:{transitions:Dr.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},"$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:Dr.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"{text}"}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:Dr.createTransitions({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(E){if(E.text_){var z={type_:"text",p1:E.text_};for(var it in E)delete E[it];return z}}}},pq:{transitions:Dr.createTransitions({empty:{"*":{}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"!f",revisit:!0}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(E,z){return{type_:"state of aggregation subscript",p1:Dr.go(z,"o")}},"color-output":function(E,z){return{type_:"color",color1:z[0],color2:Dr.go(z[1],"pq")}}}},bd:{transitions:Dr.createTransitions({empty:{"*":{}},x$:{0:{nextState:"!f",revisit:!0}},formula$:{0:{nextState:"f",revisit:!0}},else:{0:{nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(E,z){return{type_:"color",color1:z[0],color2:Dr.go(z[1],"bd")}}}},oxidation:{transitions:Dr.createTransitions({empty:{"*":{}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(E,z){return{type_:"roman numeral",p1:z||""}}}},"tex-math":{transitions:Dr.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(E){if(E.o){var z={type_:"tex-math",p1:E.o};for(var it in E)delete E[it];return z}}}},"tex-math tight":{transitions:Dr.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(E,z){E.o=(E.o||"")+"{"+z+"}"},output:function(E){if(E.o){var z={type_:"tex-math",p1:E.o};for(var it in E)delete E[it];return z}}}},"9,9":{transitions:Dr.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:Dr.createTransitions({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(E,z){var it=[];return z[0]==="+-"||z[0]==="+/-"?it.push("\\pm "):z[0]&&it.push(z[0]),z[1]&&(Dr.concatArray(it,Dr.go(z[1],"pu-9,9")),z[2]&&(z[2].match(/[,.]/)?Dr.concatArray(it,Dr.go(z[2],"pu-9,9")):it.push(z[2])),(z[3]||z[4])&&(z[3]==="e"||z[4]==="*"?it.push({type_:"cdot"}):it.push({type_:"times"}))),z[5]&&it.push("10^{"+z[5]+"}"),it},"number^":function(E,z){var it=[];return z[0]==="+-"||z[0]==="+/-"?it.push("\\pm "):z[0]&&it.push(z[0]),Dr.concatArray(it,Dr.go(z[1],"pu-9,9")),it.push("^{"+z[2]+"}"),it},operator:function(E,z,it){return{type_:"operator",kind_:it||z}},space:function(){return{type_:"pu-space-1"}},output:function(E){var z,it=Dr.patterns.match_("{(...)}",E.d||"");it&&it.remainder===""&&(E.d=it.match_);var st=Dr.patterns.match_("{(...)}",E.q||"");if(st&&st.remainder===""&&(E.q=st.match_),E.d&&(E.d=E.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),E.d=E.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),E.q){E.q=E.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),E.q=E.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var ct={d:Dr.go(E.d,"pu"),q:Dr.go(E.q,"pu")};E.o==="//"?z={type_:"pu-frac",p1:ct.d,p2:ct.q}:(z=ct.d,ct.d.length>1||ct.q.length>1?z.push({type_:" / "}):z.push({type_:"/"}),Dr.concatArray(z,ct.q))}else z=Dr.go(E.d,"pu-2");for(var vt in E)delete E[vt];return z}}},"pu-2":{transitions:Dr.createTransitions({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(E,z){E.rm+="^{"+z+"}"},space:function(){return{type_:"pu-space-2"}},output:function(E){var z=[];if(E.rm){var it=Dr.patterns.match_("{(...)}",E.rm||"");it&&it.remainder===""?z=Dr.go(it.match_,"pu"):z={type_:"rm",p1:E.rm}}for(var st in E)delete E[st];return z}}},"pu-9,9":{transitions:Dr.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(E){var z=[];if(E.text_=E.text_||"",E.text_.length>4){var it=E.text_.length%3;it===0&&(it=3);for(var st=E.text_.length-3;st>0;st-=3)z.push(E.text_.substr(st,3)),z.push({type_:"1000 separator"});z.push(E.text_.substr(0,it)),z.reverse()}else z.push(E.text_);for(var ct in E)delete E[ct];return z},"output-o":function(E){var z=[];if(E.text_=E.text_||"",E.text_.length>4){for(var it=E.text_.length-3,st=0;st<it;st+=3)z.push(E.text_.substr(st,3)),z.push({type_:"1000 separator"});z.push(E.text_.substr(st))}else z.push(E.text_);for(var ct in E)delete E[ct];return z}}}};var Ya={go:function(E,z){if(!E)return"";for(var it="",st=!1,ct=0;ct<E.length;ct++){var vt=E[ct];typeof vt=="string"?it+=vt:(it+=Ya._go2(vt),vt.type_==="1st-level escape"&&(st=!0))}return!z&&!st&&it&&(it="{"+it+"}"),it},_goInner:function(E){return E&&Ya.go(E,!0)},_go2:function(E){var z;switch(E.type_){case"chemfive":z="";var it={a:Ya._goInner(E.a),b:Ya._goInner(E.b),p:Ya._goInner(E.p),o:Ya._goInner(E.o),q:Ya._goInner(E.q),d:Ya._goInner(E.d)};it.a&&(it.a.match(/^[+\-]/)&&(it.a="{"+it.a+"}"),z+=it.a+"\\,"),(it.b||it.p)&&(z+="{\\vphantom{X}}",z+="^{\\hphantom{"+(it.b||"")+"}}_{\\hphantom{"+(it.p||"")+"}}",z+="{\\vphantom{X}}",z+="^{\\smash[t]{\\vphantom{2}}\\llap{"+(it.b||"")+"}}",z+="_{\\vphantom{2}\\llap{\\smash[t]{"+(it.p||"")+"}}}"),it.o&&(it.o.match(/^[+\-]/)&&(it.o="{"+it.o+"}"),z+=it.o),E.dType==="kv"?((it.d||it.q)&&(z+="{\\vphantom{X}}"),it.d&&(z+="^{"+it.d+"}"),it.q&&(z+="_{\\smash[t]{"+it.q+"}}")):E.dType==="oxidation"?(it.d&&(z+="{\\vphantom{X}}",z+="^{"+it.d+"}"),it.q&&(z+="{\\vphantom{X}}",z+="_{\\smash[t]{"+it.q+"}}")):(it.q&&(z+="{\\vphantom{X}}",z+="_{\\smash[t]{"+it.q+"}}"),it.d&&(z+="{\\vphantom{X}}",z+="^{"+it.d+"}"));break;case"rm":z="\\mathrm{"+E.p1+"}";break;case"text":E.p1.match(/[\^_]/)?(E.p1=E.p1.replace(" ","~").replace("-","\\text{-}"),z="\\mathrm{"+E.p1+"}"):z="\\text{"+E.p1+"}";break;case"roman numeral":z="\\mathrm{"+E.p1+"}";break;case"state of aggregation":z="\\mskip2mu "+Ya._goInner(E.p1);break;case"state of aggregation subscript":z="\\mskip1mu "+Ya._goInner(E.p1);break;case"bond":if(z=Ya._getBond(E.kind_),!z)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+E.kind_+")"];break;case"frac":var st="\\frac{"+E.p1+"}{"+E.p2+"}";z="\\mathchoice{\\textstyle"+st+"}{"+st+"}{"+st+"}{"+st+"}";break;case"pu-frac":var ct="\\frac{"+Ya._goInner(E.p1)+"}{"+Ya._goInner(E.p2)+"}";z="\\mathchoice{\\textstyle"+ct+"}{"+ct+"}{"+ct+"}{"+ct+"}";break;case"tex-math":z=E.p1+" ";break;case"frac-ce":z="\\frac{"+Ya._goInner(E.p1)+"}{"+Ya._goInner(E.p2)+"}";break;case"overset":z="\\overset{"+Ya._goInner(E.p1)+"}{"+Ya._goInner(E.p2)+"}";break;case"underset":z="\\underset{"+Ya._goInner(E.p1)+"}{"+Ya._goInner(E.p2)+"}";break;case"underbrace":z="\\underbrace{"+Ya._goInner(E.p1)+"}_{"+Ya._goInner(E.p2)+"}";break;case"color":z="{\\color{"+E.color1+"}{"+Ya._goInner(E.color2)+"}}";break;case"color0":z="\\color{"+E.color+"}";break;case"arrow":var vt={rd:Ya._goInner(E.rd),rq:Ya._goInner(E.rq)},xt=Ya._getArrow(E.r);vt.rd||vt.rq?E.r==="<=>"||E.r==="<=>>"||E.r==="<<=>"||E.r==="<-->"?(xt="\\long"+xt,vt.rd&&(xt="\\overset{"+vt.rd+"}{"+xt+"}"),vt.rq&&(E.r==="<-->"?xt="\\underset{\\lower2mu{"+vt.rq+"}}{"+xt+"}":xt="\\underset{\\lower6mu{"+vt.rq+"}}{"+xt+"}"),xt=" {}\\mathrel{"+xt+"}{} "):(vt.rq&&(xt+="[{"+vt.rq+"}]"),xt+="{"+vt.rd+"}",xt=" {}\\mathrel{\\x"+xt+"}{} "):xt=" {}\\mathrel{\\long"+xt+"}{} ",z=xt;break;case"operator":z=Ya._getOperator(E.kind_);break;case"1st-level escape":z=E.p1+" ";break;case"space":z=" ";break;case"entitySkip":z="~";break;case"pu-space-1":z="~";break;case"pu-space-2":z="\\mkern3mu ";break;case"1000 separator":z="\\mkern2mu ";break;case"commaDecimal":z="{,}";break;case"comma enumeration L":z="{"+E.p1+"}\\mkern6mu ";break;case"comma enumeration M":z="{"+E.p1+"}\\mkern3mu ";break;case"comma enumeration S":z="{"+E.p1+"}\\mkern1mu ";break;case"hyphen":z="\\text{-}";break;case"addition compound":z="\\,{\\cdot}\\,";break;case"electron dot":z="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":z="{\\times}";break;case"prime":z="\\prime ";break;case"cdot":z="\\cdot ";break;case"tight cdot":z="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":z="\\times ";break;case"circa":z="{\\sim}";break;case"^":z="uparrow";break;case"v":z="downarrow";break;case"ellipsis":z="\\ldots ";break;case"/":z="/";break;case" / ":z="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return z},_getArrow:function(E){switch(E){case"->":return"rightarrow";case"\u2192":return"rightarrow";case"\u27F6":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<-->":return"leftrightarrows";case"<=>":return"rightleftharpoons";case"\u21CC":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(E){switch(E){case"-":return"{-}";case"1":return"{-}";case"=":return"{=}";case"2":return"{=}";case"#":return"{\\equiv}";case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(E){switch(E){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":return" {}\\approx{} ";case"$\\approx$":return" {}\\approx{} ";case"v":return" \\downarrow{} ";case"(v)":return" \\downarrow{} ";case"^":return" \\uparrow{} ";case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};function uf(E){}function By(E){}var qp=class nw extends Mr{constructor(z){super(Nt(jt({},z),{type:"delim"})),this.value=z.delim,this.size=z.size}static fromJson(z){return new nw(z)}toJson(){return Nt(jt({},super.toJson()),{delim:this.value,size:this.size})}render(z){return new Qr(this.value,{type:"middle"})}_serialize(z){if(!(z.expandMacro||z.skipStyles||z.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const it=Pn(this.command,this.mode);return it!=null&&it.serialize?it.serialize(this,z):Fa(this.command,this.value)}},Yf=class iw extends Mr{constructor(z){super(Nt(jt({},z),{type:"sizeddelim",value:z.delim})),this.delimType=z.delimType,this.size=z.size}static fromJson(z){return new iw(z)}toJson(){return Nt(jt({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(z){let it=Li(this.value,this.size,z,{classes:{open:"mopen",close:"mclose"}[this.delimType],type:this.delimType,isSelected:this.isSelected});return it?(it=this.bind(z,it),this.caret&&(it.caret=this.caret),it):null}_serialize(z){if(!(z.expandMacro||z.skipStyles||z.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const it=Pn(this.command,this.mode);return it!=null&&it.serialize?it.serialize(this,z):Fa(this.command,this.value)}},Yc=class rw extends Mr{constructor(z,it,st,ct){var vt,xt;super({type:"enclose",command:z,style:ct.style}),this.body=it,this.backgroundcolor=ct.backgroundcolor,st.updiagonalarrow&&(st.updiagonalstrike=!1),st.box&&(st.left=!1,st.right=!1,st.bottom=!1,st.top=!1),this.notation=st,this.shadow=(vt=ct.shadow)!=null?vt:"none",this.strokeWidth=(xt=ct.strokeWidth)!=null?xt:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=ct.strokeStyle,this.svgStrokeStyle=ct.svgStrokeStyle,this.strokeColor=ct.strokeColor,this.borderStyle=ct.borderStyle,this.padding=ct.padding,this.captureSelection=!1}static fromJson(z){return new rw(z.command,z.body,z.notation,z)}toJson(){return Nt(jt({},super.toJson()),{notation:this.notation,shadow:this.shadow,strokeWidth:this.strokeWidth,strokeStyle:this.strokeStyle,svgStrokeStyle:this.svgStrokeStyle,strokeColor:this.strokeColor,borderStyle:this.borderStyle,padding:this.padding})}_serialize(z){var it;if(!(z.expandMacro||z.skipStyles||z.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const st=Pn(this.command,this.mode);if(st!=null&&st.serialize)return st.serialize(this,z);let ct=(it=this.command)!=null?it:"";if(this.command==="\\enclose"){ct+="{"+Object.keys(this.notation).join(" ")+"}";let vt="",xt="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(vt+=xt+'mathbackground="'+this.backgroundcolor+'"',xt=","),this.shadow&&this.shadow!=="auto"&&(vt+=xt+'shadow="'+this.shadow+'"',xt=","),this.strokeWidth||this.strokeStyle!=="solid"?(vt+=xt+this.borderStyle,xt=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(vt+=xt+'mathcolor="'+this.strokeColor+'"',xt=","),vt&&(ct+=`[${vt}]`)}return Fa(ct,this.bodyToLatex(z))}render(z){const it=new Ws({parent:z},this.style),st=Mr.createBox(it,this.body);if(!st)return null;const ct=Jf(this.borderStyle),vt=it.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});st.setStyle("position","relative"),st.setStyle("display","inline-block"),st.setStyle("top",vt,"em"),st.setStyle("height",st.height+st.depth,"em"),st.setStyle("width",st.width,"em");const xt=new Qr(null,{classes:"ML__notation"});let Ot=st.height+st.depth+2*vt;const Kt=st.width+2*vt;let Zt="";if(this.notation.horizontalstrike&&(Zt+=this.line(3,50,97,50)),this.notation.verticalstrike&&(Zt+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(Zt+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(Zt+=this.line(3,3,97,97)),this.notation.updiagonalarrow){Zt+=this.line(vt.toString(),(vt+st.depth+st.height).toString(),(vt+st.width).toString(),vt.toString());const ei=.03*Math.sqrt(Kt*Kt+Ot*Ot)*1,hr=st.width*ei,Gr=(st.depth+st.height)*ei,$i=vt+st.width;let Nr=vt;Nr+Gr-.4*hr<0&&(Nr=.4*hr-Gr),Zt+='<polygon points="',Zt+=`${$i},${Nr} ${$i-hr-.4*Gr},${Nr+Gr-.4*hr} `,Zt+=`${$i-.7*hr},${Nr+.7*Gr} ${$i-hr+.4*Gr},${Nr+Gr+.4*hr} `,Zt+=`${$i},${Nr}`,Zt+=`" stroke='none' fill="${this.strokeColor}"`,Zt+="/>"}let re=0;if(this.notation.phasorangle){const ln=Pc(it),Fn=(st.height+st.depth+2*ln+vt).toString(),ei=(st.height+st.depth)/2;Zt+=this.line(vt.toString(),Fn,(vt+ei+st.width).toString(),Fn),Zt+=this.line(vt.toString(),Fn,(vt+ei).toString(),(vt-ln).toString()),Ot+=ln,re=ei,st.left+=Ot/2-vt}if(this.notation.longdiv){const ln=Pc(it);Ot+=ln,Zt+=this.line(vt.toString(),vt.toString(),(vt+st.width).toString(),vt.toString());const Fn=.3;re=Fn+ln,st.left+=Fn+ln,st.setTop(vt+ln),Zt+='<path d="',Zt+=`M ${vt} ${vt} a${Fn} ${(st.depth+st.height+2*ln)/2}, 0, 1, 1, 0 ${st.depth+st.height+2*ln} "`,Zt+=` stroke-width="${t0(it)}" stroke="${this.strokeColor}" fill="none"`,Zt+="/>"}if(xt.width=st.width+2*vt+re,xt.height=st.height+vt,xt.depth=st.depth+vt,xt.setStyle("box-sizing","border-box"),xt.setStyle("left",`calc(-${ct} / 2 )`),xt.setStyle("height",`${Math.floor(100*Ot)/100}em`),xt.setStyle("top",`calc(${ct} / 2 )`),this.backgroundcolor&&xt.setStyle("background-color",this.backgroundcolor),this.notation.box&&xt.setStyle("border","1px solid red"),this.notation.actuarial&&(xt.setStyle("border-top",this.borderStyle),xt.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(xt.setStyle("border-bottom",this.borderStyle),xt.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(xt.setStyle("border-radius","8px"),xt.setStyle("border",this.borderStyle)),this.notation.circle&&(xt.setStyle("border-radius","50%"),xt.setStyle("border",this.borderStyle)),this.notation.top&&xt.setStyle("border-top",this.borderStyle),this.notation.left&&xt.setStyle("border-left",this.borderStyle),this.notation.right&&xt.setStyle("border-right",this.borderStyle),this.notation.bottom&&xt.setStyle("border-bottom",this.borderStyle),Zt){let ln="";this.shadow==="auto"&&(ln+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(ln+=`filter: drop-shadow(${this.shadow})`),ln+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,ln+=' stroke-linecap="round"',this.svgStrokeStyle&&(ln+=` stroke-dasharray="${this.svgStrokeStyle}"`),xt.svgStyle=ln,xt.svgOverlay=Zt}const Be=new Qr([xt,st]);return Be.setStyle("position","relative"),Be.setStyle("vertical-align",vt,"em"),Be.setStyle("height",`${Math.floor(100*(st.height+st.depth+2*vt))/100}em`),Be.setStyle("display","inline-block"),Be.height=xt.height,Be.depth=xt.depth,Be.width=xt.width-2*vt,Be.left=vt,Be.right=vt,this.caret&&(Be.caret=this.caret),Be.wrap(it)}line(z,it,st,ct){return`<line x1="${Xf(z)}" y1="${Xf(it)}" x2="${Xf(st)}" y2="${Xf(ct)}" vector-effect="non-scaling-stroke"></line>`}};function Xf(E){return typeof E=="number"?`${Math.floor(100*E)/100}%`:E}function Jf(E){if(!E)return"1px";const z=E.match(/([0-9][a-zA-Z\%]+)/);return z===null?"1px":z[1]}function t0(E){return(Math.floor(100*E.metrics.sqrtRuleThickness/E.scalingFactor)/100/10).toString()+"em"}function Pc(E){const z=E.isDisplayStyle?ch:E.metrics.defaultRuleThickness;return E.metrics.defaultRuleThickness+E.scalingFactor*z/4}var wl=class ow extends Mr{constructor(z,it,st){var ct,vt;super(Nt(jt({},st),{type:"genfrac",displayContainsHighlight:!0})),this.above=z,this.below=it,this.hasBarLine=(ct=st==null?void 0:st.hasBarLine)!=null?ct:!0,this.continuousFraction=(vt=st==null?void 0:st.continuousFraction)!=null?vt:!1,this.numerPrefix=st==null?void 0:st.numerPrefix,this.denomPrefix=st==null?void 0:st.denomPrefix,this.mathstyleName=st==null?void 0:st.mathstyleName,this.leftDelim=st==null?void 0:st.leftDelim,this.rightDelim=st==null?void 0:st.rightDelim,this.fractionNavigationOrder=st==null?void 0:st.fractionNavigationOrder}static fromJson(z){return new ow(z.above,z.below,z)}toJson(){const z={};return this.continuousFraction&&(z.continuousFraction=!0),this.numerPrefix&&(z.numerPrefix=this.numerPrefix),this.denomPrefix&&(z.denomPrefix=this.denomPrefix),this.leftDelim&&(z.leftDelim=this.leftDelim),this.rightDelim&&(z.rightDelim=this.rightDelim),this.hasBarLine||(z.hasBarLine=!1),this.mathstyleName&&(z.mathstyleName=this.mathstyleName),this.fractionNavigationOrder&&(z.fractionNavigationOrder=this.fractionNavigationOrder),jt(jt({},super.toJson()),z)}get children(){if(this._children)return this._children;const z=[];if(this.fractionNavigationOrder==="denominator-numerator"){for(const it of this.below)z.push(...it.children),z.push(it);for(const it of this.above)z.push(...it.children),z.push(it)}else{for(const it of this.above)z.push(...it.children),z.push(it);for(const it of this.below)z.push(...it.children),z.push(it)}return this._children=z,z}render(z){var it,st;const ct=new Ws({parent:z,mathstyle:this.mathstyleName},this.style),vt=ct.metrics,xt=new Ws({parent:ct,mathstyle:this.continuousFraction?"":"numerator"},this.style),Ot=this.numerPrefix?new Qr([new Qr(this.numerPrefix),Mr.createBox(xt,this.above)],{isTight:xt.isTight,type:"ignore"}):(it=Mr.createBox(xt,this.above,{type:"ignore"}))!=null?it:new Qr(null,{type:"ignore"}),Kt=new Ws({parent:ct,mathstyle:this.continuousFraction?"":"denominator"},this.style),Zt=this.denomPrefix?new Qr([new Qr(this.denomPrefix),Mr.createBox(Kt,this.below,{type:"ignore"})]):(st=Mr.createBox(Kt,this.below,{type:"ignore"}))!=null?st:new Qr(null,{type:"ignore"}),re=this.hasBarLine?vt.defaultRuleThickness:0;let Be,ln=0,Fn;ct.isDisplayStyle?(Be=xt.metrics.num1,ln=re>0?3*re:7*re,Fn=Kt.metrics.denom1):(re>0?(Be=xt.metrics.num2,ln=re):(Be=xt.metrics.num3,ln=3*vt.defaultRuleThickness),Fn=Kt.metrics.denom2);const ei=[];this.isSelected&&ei.push("ML__selected");const hr=Ot.depth,Gr=Zt.height;let $i;if(re<=0){const Go=Be-hr-(Gr-Fn);Go<ln&&(Be+=(ln-Go)/2,Fn+=(ln-Go)/2),$i=new sa({individualShift:[{box:Ot,shift:-Be,classes:[...ei,"ML__center"]},{box:Zt,shift:Fn,classes:[...ei,"ML__center"]}]}).wrap(ct)}else{const Go=new Qr(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});Go.softWidth=Math.max(Ot.width,Zt.width),Go.height=re/2,Go.depth=re/2;const Gs=_l+re/2;Be<ln+hr+Gs&&(Be=ln+hr+Gs);const La=_l-re/2;Fn<ln+Gr-La&&(Fn=ln+Gr-La),$i=new sa({individualShift:[{box:Zt,shift:Fn,classes:[...ei,"ML__center"]},{box:Go,shift:-La,classes:ei},{box:Ot,shift:-Be,classes:[...ei,"ML__center"]}]}).wrap(ct)}const Nr=ct.isDisplayStyle?vt.delim1:vt.delim2,eo=this.leftDelim?this.bind(z,To("open",this.leftDelim,Nr,!0,z,{style:this.style,mode:this.mode,isSelected:this.isSelected})):Ro(ct,"open");let zr=null;this.continuousFraction?zr=new Qr(null,{type:"close"}):this.rightDelim?zr=this.bind(z,To("close",this.rightDelim,Nr,!0,z,{style:this.style,mode:this.mode,isSelected:this.isSelected})):zr=Ro(ct,"close");const _o=new Qr([eo,$i,zr],{isTight:ct.isTight,type:"inner",classes:"mfrac"}),ns=this.bind(z,_o);return this.caret&&(ns.caret=this.caret),this.attachSupsub(z,{base:ns})}},ru=class sw extends Mr{constructor(z,it){var st;super({type:"latex",value:z,mode:"latex"}),this.isSuggestion=(st=it==null?void 0:it.isSuggestion)!=null?st:!1,this.isError=!1}static fromJson(z){const it=new sw(z.value);return z.isSuggestion&&(it.isSuggestion=!0),z.isError&&(it.isError=!0),it}toJson(){const z={};return this.isSuggestion&&(z.isSuggestion=!0),this.isError&&(z.isError=!0),jt({type:"latex",value:this.value},z)}get computedStyle(){return{}}render(z){const it=new Qr(this.value,{classes:this.isSuggestion?"ML__suggestion":this.isError?"ML__error":"",type:"latex",maxFontSize:1});return it?(this.caret&&(it.caret=this.caret),this.bind(z,it)):null}},J0=class aw extends Mr{constructor(z){super({type:"latexgroup",mode:"latex"}),this.body=[...z].map(it=>new ru(it)),this.skipBoundary=!1}static fromJson(z){return new aw("")}toJson(){return super.toJson()}render(z){const it=Mr.createBox(z,this.body);return it?(this.caret&&(it.caret=this.caret),this.bind(z,it)):null}_serialize(z){var it,st;return(st=(it=this.body)==null?void 0:it.map(ct=>ct.value).join(""))!=null?st:""}},vv=class lw extends Mr{constructor(z,it){super(Nt(jt({},it),{type:"extensible-symbol",isFunction:it==null?void 0:it.isFunction})),this.value=z,this.variant=it==null?void 0:it.variant,this.subsupPlacement=it==null?void 0:it.limits}static fromJson(z){return new lw(z.symbol,z)}toJson(){const z=super.toJson();return this.variant&&(z.variant=this.variant),this.subsupPlacement&&(z.limits=this.subsupPlacement),this.isExtensibleSymbol&&(z.isExtensibleSymbol=!0),this.value&&(z.symbol=this.value),z}render(z){var it;const st=z.isDisplayStyle&&this.value!=="\\smallint",ct=new Qr(this.value,{fontFamily:st?"Size2-Regular":"Size1-Regular",classes:"op-symbol "+(st?"large-op":"small-op"),type:"op",maxFontSize:z.scalingFactor,isSelected:this.isSelected});if(!ct)return null;ct.right=ct.italic;const vt=(ct.height-ct.depth)/2-_l*z.scalingFactor,xt=ct.italic;ct.setTop(vt);let Ot=ct;if(this.superscript||this.subscript){const Kt=(it=this.subsupPlacement)!=null?it:"auto";Ot=Kt==="over-under"||Kt==="auto"&&z.isDisplayStyle?this.attachLimits(z,{base:ct,baseShift:vt,slant:xt}):this.attachSupsub(z,{base:ct})}return new Qr(this.bind(z,Ot),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(z)}_serialize(z){if(!(z.expandMacro||z.skipStyles||z.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const it=Pn(this.command,this.mode);if(it!=null&&it.serialize)return it.serialize(this,z);const st=[];return st.push(this.command),this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&st.push("\\limits"),this.subsupPlacement==="adjacent"&&st.push("\\nolimits"),this.subsupPlacement==="auto"&&st.push("\\displaylimits")),st.push(this.supsubToLatex(z)),Ts(st)}},wh=class uw extends Mr{constructor(z){const it=z.body;super(Nt(jt({},z),{type:"overlap",body:typeof it=="string"?[new Mr({value:it})]:it,style:z==null?void 0:z.style})),this.skipBoundary=!0,this.align=z==null?void 0:z.align,this.boxType=z==null?void 0:z.boxType}static fromJson(z){return new uw(z)}toJson(){const z={};return this.align&&(z.align=this.align),this.boxType&&(z.boxType=this.boxType),jt(jt({},super.toJson()),z)}render(z){const it=Mr.createBox(z,this.body,{classes:"inner"});return it?(this.caret&&(it.caret=this.caret),this.bind(z,new Qr([it,new Qr(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},Nc=class cw extends Mr{constructor(z){var it,st,ct,vt;super({type:"overunder",command:z.command,style:z.style,mode:z.mode,body:z.body,skipBoundary:(it=z.skipBoundary)!=null?it:!0}),this.subsupPlacement=z.supsubPlacement,this.svgAbove=z.svgAbove,this.svgBelow=z.svgBelow,this.svgBody=z.svgBody,this.above=z.above,this.below=z.below,this.boxType=(st=z.boxType)!=null?st:"ord",this.paddedBody=(ct=z.paddedBody)!=null?ct:!1,this.paddedLabels=(vt=z.paddedLabels)!=null?vt:!1}static fromJson(z){return new cw(z)}toJson(){const z=super.toJson();return this.skipBoundary||(z.skipBoundary=!1),this.subsupPlacement&&(z.subsupPlacement=this.subsupPlacement),this.svgAbove&&(z.svgAbove=this.svgAbove),this.svgBelow&&(z.svgBelow=this.svgBelow),this.svgBody&&(z.svgBody=this.svgBody),this.boxType!=="ord"&&(z.boxType=this.boxType),this.paddedBody&&(z.paddedBody=!0),this.paddedLabels&&(z.paddedLabels=!0),z}render(z){let it=this.svgBody?uc(this.svgBody):Mr.createBox(z,this.body,{type:"ignore"});const st=new Ws({parent:z,mathstyle:"scriptstyle"},this.style);let ct=null;this.svgAbove?ct=uc(this.svgAbove):this.above&&(ct=Mr.createBox(st,this.above,{type:"ignore"}));let vt=null;this.svgBelow?vt=uc(this.svgBelow):this.below&&(vt=Mr.createBox(st,this.below,{type:"ignore"})),this.paddedBody&&(it=new Qr([Ro(z,"open"),it,Ro(z,"close")],{type:"ignore"}));let xt=V1(z,{base:it,above:ct,below:vt,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return xt?(this.subsupPlacement==="over-under"?xt=this.attachLimits(z,{base:xt,type:xt.type}):xt=this.attachSupsub(z,{base:xt}),this.caret&&(xt.caret=this.caret),this.bind(z,xt)):null}};function V1(E,z){if(!z.base)return null;if(!z.above&&!z.below){const Ot=new Qr(z.base,{type:z.type});return Ot.setStyle("position","relative"),Ot}let it=0;z.above&&(it=E.metrics.bigOpSpacing5);let st=null;const ct=z.base,vt=0,xt=["ML__center"];if(z.paddedAboveBelow&&xt.push("ML__label_padding"),z.below&&z.above){const Ot=E.metrics.bigOpSpacing5+z.below.height+z.below.depth+ct.depth+vt;st=new sa({bottom:Ot,children:[E.metrics.bigOpSpacing5,{box:z.below,classes:xt},{box:ct,classes:["ML__center"]},it,{box:z.above,classes:xt},E.metrics.bigOpSpacing5]})}else z.below?st=new sa({top:ct.height-vt,children:[E.metrics.bigOpSpacing5,{box:z.below,classes:xt},{box:ct,classes:["ML__center"]}]}):z.above&&(st=new sa({bottom:ct.depth+vt,children:[{box:ct,classes:["ML__center"]},it,{box:z.above,classes:xt},E.metrics.bigOpSpacing5]}));return new Qr(st,{type:z.type})}var Q0=class hw extends Mr{constructor(z){var it,st,ct,vt;super(Nt(jt({},z),{type:"phantom"})),this.captureSelection=!0,this.isInvisible=(it=z.isInvisible)!=null?it:!1,this.smashDepth=(st=z.smashDepth)!=null?st:!1,this.smashHeight=(ct=z.smashHeight)!=null?ct:!1,this.smashWidth=(vt=z.smashWidth)!=null?vt:!1}static fromJson(z){return new hw(z)}toJson(){const z={};return this.isInvisible&&(z.isInvisible=!0),this.smashDepth&&(z.smashDepth=!0),this.smashHeight&&(z.smashHeight=!0),this.smashWidth&&(z.smashWidth=!0),jt(jt({},super.toJson()),z)}render(z){const it=new Ws({parent:z,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),Mr.createBox(it,this.body,{classes:"inner"});const st=Mr.createBox(this.isInvisible?it:z,this.body);if(!st)return null;if(this.smashWidth){const ct=new Qr(null,{classes:"fix"});return new Qr([st,ct],{classes:"rlap"}).wrap(z)}if(!this.smashHeight&&!this.smashDepth)return st;if(this.smashHeight&&(st.height=0),this.smashDepth&&(st.depth=0),st.children)for(const ct of st.children)this.smashHeight&&(ct.height=0),this.smashDepth&&(ct.depth=0);return new sa({firstBaseline:[{box:st}]},{type:st.type}).wrap(z)}},e0=class dw extends Mr{constructor(z){var it;super(jt({type:"spacing"},z)),this.width=z==null?void 0:z.width,this._braced=(it=z==null?void 0:z.braced)!=null?it:!1}static fromJson(z){return new dw(z)}toJson(){const z=super.toJson();return this.width!==void 0&&(z.width=this.width),this._braced&&(z.braced=!0),z}render(z){var it;if(this.command==="space")return new Qr(this.mode==="math"?null:" ");let st;if(this.width!==void 0)st=new Qr(null,{classes:"mspace"}),st.left=z.toEm(this.width);else{const ct=(it={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\>":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.command])!=null?it:"mediumspace";st=new Qr(null,{classes:ct})}return st=this.bind(z,st),this.caret&&(st.caret=this.caret),st}_serialize(z){var it;if(!z.expandMacro&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const st=Pn(this.command,this.mode);if(st!=null&&st.serialize)return st.serialize(this,z);const ct=(it=this.command)!=null?it:"";return this.width===void 0?ct:this._braced&&!("register"in this.width)?`${ct}{${fl(this.width)}}`:`${ct}${fl(this.width)}`}},$0=class fw extends Mr{constructor(z){var it;super(Nt(jt({},z),{type:"surd",mode:(it=z.mode)!=null?it:"math",style:z.style,displayContainsHighlight:!0,body:z.body})),this.above=z.index}static fromJson(z){return new fw(Nt(jt({},z),{index:z.above}))}_serialize(z){if(!(z.expandMacro||z.skipStyles||z.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const it=Pn(this.command,this.mode);if(it!=null&&it.serialize)return it.serialize(this,z);const st=this.command,ct=this.bodyToLatex(z);return this.above&&!this.hasEmptyBranch("above")?Fa(`${st}[${this.aboveToLatex(z)}]`,ct):/^[0-9]$/.test(ct)?`${st}${ct}`:Fa(st,ct)}get children(){if(this._children)return this._children;const z=[];if(this.above)for(const it of this.above)z.push(...it.children),z.push(it);if(this.body)for(const it of this.body)z.push(...it.children),z.push(it);return this._children=z,z}render(z){var it;const st=new Ws({parent:z,mathstyle:"cramp"},this.style),ct=(it=Mr.createBox(st,this.body,{type:"inner"}))!=null?it:new Qr(null),vt=st.scalingFactor,xt=st.metrics.defaultRuleThickness/vt,Ot=z.isDisplayStyle?ch:xt,Kt=new Qr(null,{classes:"ML__sqrt-line",style:this.style});Kt.height=xt,Kt.softWidth=ct.width;let Zt=vt*(xt+Ot/4);const Be=Math.max(vt*2*Ot,ct.height+ct.depth)+Zt+xt,ln=new Ws({parent:z},this.style),Fn=this.bind(ln,new Qr(To("inner","\\surd",Be,!1,ln,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!Fn)return null;const ei=Fn.height+Fn.depth-xt;ei>ct.height+ct.depth+Zt&&(Zt=(Zt+ei-(ct.height+ct.depth))/2),Fn.setTop(Fn.height-ct.height-Zt);const hr=this.bind(z,new sa({firstBaseline:[{box:new Qr(ct)},Zt-2*xt,{box:Kt},xt]})),Gr=Mr.createBox(new Ws({parent:z,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!Gr){const eo=new Qr([Fn,hr],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return eo.setStyle("display","inline-block"),eo.setStyle("height",eo.height+eo.depth,"em"),this.caret&&(eo.caret=this.caret),this.bind(z,eo)}const $i=new sa({shift:-.6*(Math.max(Fn.height,hr.height)-Math.max(Fn.depth,hr.depth)),children:[{box:Gr}]}),Nr=new Qr([new Qr($i,{classes:"ML__sqrt-index",type:"ignore"}),Fn,hr],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return Nr.height=Fn.height,Nr.depth=Fn.depth,this.caret&&(Nr.caret=this.caret),this.bind(z,Nr)}},yv=class extends Qr{constructor(E){super(null,{type:"skip"}),this._width=E}toMarkup(){return`<span style="display:inline-block;width:${Math.ceil(this.width*100)/100}em"></span>`}};function fc(E,z){if(!E.parent)return;const it=E.parent.children,st=it.indexOf(E);let ct=st-1;for(;ct>=0&&it[ct].type==="ignore";)ct-=1;if(ct<0&&E.parent.parent&&E.parent.type==="lift"){fc(E.parent,z);return}st>0&&it[st-1].type==="skip"?it[st-1].width+=z:it.splice(st,0,new yv(z))}var Yh={ord:{op:3,bin:4,rel:5,inner:3},op:{ord:3,op:3,rel:5,inner:3},bin:{ord:4,op:4,open:4,inner:4},rel:{ord:5,op:5,open:5,inner:5},close:{op:3,bin:4,rel:5,inner:3},punct:{ord:3,op:3,rel:3,open:3,punct:3,inner:3},inner:{ord:3,op:3,bin:4,rel:5,open:3,punct:3,inner:3}},xv={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function ec(E){ug(E,(z,it)=>{it.type==="bin"&&(!z||/^(middle|bin|op|rel|open|punct)$/.test(z.type))&&(it.type="ord"),(z==null?void 0:z.type)==="bin"&&/^(rel|close|punct)$/.test(it.type)&&(z.type="ord"),it.type!=="ignore"&&(z=it)})}function Sh(E,z){if(!E.children)return E;const it=E.children;ec(it);const st=z.getRegisterAsEm("thinmuskip"),ct=z.getRegisterAsEm("medmuskip"),vt=z.getRegisterAsEm("thickmuskip");return ug(it,(xt,Ot)=>{var Kt,Zt,re;if(!xt)return;const Be=xt.type,ln=Ot.isTight?(Kt=xv[Be])!=null?Kt:null:(Zt=Yh[Be])!=null?Zt:null,Fn=(re=ln==null?void 0:ln[Ot.type])!=null?re:null;Fn===3&&fc(Ot,st),Fn===4&&fc(Ot,ct),Fn===5&&fc(Ot,vt)}),E}function ug(E,z,it=void 0){if(!E)return it;E=[...E];for(const st of E)st.type==="lift"?it=ug(st.children,z,it):st.type==="ignore"?ug(st.children,z):(z(it,st),ug(st.children,z),it=st);return it}var n0=class pw extends Mr{constructor(z){super({type:"tooltip",command:z.command,mode:z.mode,style:z.style,body:z.body,displayContainsHighlight:!0}),this.tooltip=new Mr({type:"root",mode:z.content,body:z.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(z){return new pw(Nt(jt({},z),{tooltip:cf(z.tooltip)}))}toJson(){var z;const it=(z=this.tooltip.body)==null?void 0:z.filter(st=>st.type!=="first").map(st=>st.toJson());return Nt(jt({},super.toJson()),{tooltip:it})}render(z){const it=Mr.createBox(new Ws,this.body);if(!it)return null;const st=new Ws({parent:z,mathstyle:"displaystyle"},{fontSize:hh}),ct=_h(Sh(new Qr(this.tooltip.render(st),{classes:"ML__tooltip-content"}),st)),vt=new Qr([ct,it],{classes:"ML__tooltip-container"});return this.caret&&(vt.caret=this.caret),this.bind(z,vt)}},Jo=class mw extends Mr{constructor(z,it){super(Nt(jt({},it),{type:"operator",isFunction:it==null?void 0:it.isFunction})),this.value=z,this.variant=it==null?void 0:it.variant,this.variantStyle=it==null?void 0:it.variantStyle,this.subsupPlacement=it==null?void 0:it.limits}static fromJson(z){return new mw(z.symbol,z)}toJson(){const z=super.toJson();return this.variant&&(z.variant=this.variant),this.variantStyle&&(z.variantStyle=this.variantStyle),this.subsupPlacement&&(z.limits=this.subsupPlacement),this.value&&(z.symbol=this.value),z}render(z){var it;const st=new Qr(this.value,{type:"op",mode:"math",maxFontSize:z.scalingFactor,style:{variant:this.variant,variantStyle:this.variantStyle},isSelected:this.isSelected,letterShapeStyle:z.letterShapeStyle});let ct=st;if(this.superscript||this.subscript){const vt=(it=this.subsupPlacement)!=null?it:"auto";ct=vt==="over-under"||vt==="auto"&&z.isDisplayStyle?this.attachLimits(z,{base:st}):this.attachSupsub(z,{base:st})}return new Qr(this.bind(z,ct),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(z)}_serialize(z){if(!(z.expandMacro||z.skipStyles||z.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const it=Pn(this.command,this.mode);if(it!=null&&it.serialize)return it.serialize(this,z);const st=[this.command];return this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&st.push("\\limits"),this.subsupPlacement==="adjacent"&&st.push("\\nolimits"),this.subsupPlacement==="auto"&&st.push("\\displaylimits")),st.push(this.supsubToLatex(z)),Ts(st)}};function cf(E){if(Yt(E))return E.map(st=>cf(st));if(typeof E=="string")return Mr.fromJson(E);E=jt({},E);for(const st of Gh)E[st]&&(E[st]=cf(E[st]));E.args&&(E.args=U1(E.args)),E.array&&(E.array=cf(E.array));const z=E.type;let it;z==="accent"&&(it=lt.fromJson(E)),z==="array"&&(it=Cs.fromJson(E)),z==="box"&&(it=Ga.fromJson(E)),z==="chem"&&(it=Oy.fromJson(E)),z==="composition"&&(it=Fl.fromJson(E)),z==="delim"&&(it=qp.fromJson(E)),z==="enclose"&&(it=Yc.fromJson(E)),z==="error"&&(it=iu.fromJson(E)),z==="extensible-symbol"&&(it=vv.fromJson(E)),z==="genfrac"&&(it=wl.fromJson(E)),z==="group"&&(it=Ra.fromJson(E)),z==="latex"&&(it=ru.fromJson(E)),z==="latexgroup"&&(it=J0.fromJson(E)),z==="leftright"&&(it=qs.fromJson(E)),z==="macro"&&(it=Gf.fromJson(E)),z==="macro-argument"&&(it=tc.fromJson(E)),z==="operator"&&(it=Jo.fromJson(E)),z==="overlap"&&(it=wh.fromJson(E)),z==="overunder"&&(it=Nc.fromJson(E)),z==="placeholder"&&(it=$o.fromJson(E)),z==="prompt"&&(it=ku.fromJson(E)),z==="phantom"&&(it=Q0.fromJson(E)),z==="sizeddelim"&&(it=Yf.fromJson(E)),z==="spacing"&&(it=e0.fromJson(E)),z==="subsup"&&(it=Vl.fromJson(E)),z==="surd"&&(it=$0.fromJson(E)),z==="text"&&(it=gh.fromJson(E)),z==="tooltip"&&(it=n0.fromJson(E)),it||(console.assert(!z||["first","mbin","mrel","mclose","minner","mop","mopen","mord","mpunct","root","space"].includes(z),`MathLive 0.98.5: an unexpected atom type "${z}" was encountered. Add new atom constructors to \`fromJson()\` in "atom.ts"`),it=Mr.fromJson(E));for(const st of Gh)E[st]&&it.setChildren(E[st],st);return E.verbatimLatex!==void 0&&(it.verbatimLatex=E.verbatimLatex),E.subsupPlacement&&(it.subsupPlacement=E.subsupPlacement),E.explicitSubsupPlacement&&(it.explicitSubsupPlacement=!0),E.isFunction&&(it.isFunction=!0),E.isExtensibleSymbol&&(it.isExtensibleSymbol=!0),E.skipBoundary&&(it.skipBoundary=!0),E.captureSelection&&(it.captureSelection=!0),it}function U1(E){if(E&&Array.isArray(E))return E.map(z=>z==="<null>"?null:typeof z=="object"&&"group"in z?{group:z.group.map(it=>cf(it))}:typeof z=="object"&&"atoms"in z?z.atoms.map(it=>cf(it)):z)}var bv={main:["Main-Regular","ML__cmr"],"main-italic":["Main-Italic","ML__cmr ML__it"],"main-bold":["Main-Bold","ML__cmr ML__bold"],"main-bolditalic":["Main-BoldItalic","ML__cmr ML__bold ML__it"],normal:["Main-Regular","ML__cmr"],"normal-bold":["Main-Bold","ML__mathbf"],"normal-italic":["Math-Italic","ML__mathit"],"normal-bolditalic":["Math-BoldItalic","ML__mathbfit"],ams:["AMS-Regular","ML__ams"],"ams-bold":["AMS-Regular","ML__ams"],"ams-italic":["AMS-Regular","ML__ams"],"ams-bolditalic":["AMS-Regular","ML__ams"],"sans-serif":["SansSerif-Regular","ML__sans"],"sans-serif-bold":["SansSerif-Regular","ML__sans ML__bold"],"sans-serif-italic":["SansSerif-Regular","ML__sans"],"sans-serif-bolditalic":["SansSerif-Regular","ML__sans"],calligraphic:["Caligraphic-Regular","ML__cal"],"calligraphic-bold":["Caligraphic-Regular","ML__cal ML__bold"],"calligraphic-italic":["Caligraphic-Regular","ML__cal ML__it"],"calligraphic-bolditalic":["Caligraphic-Regular","ML__cal ML__bold ML__it"],script:["Script-Regular","ML__script"],"script-bold":["Script-Regular","ML__script ML__bold"],"script-italic":["Script-Regular","ML__script ML__it"],"script-bolditalic":["Script-Regular","ML__script ML__bold ML__it"],fraktur:["Fraktur-Regular","ML__frak"],"fraktur-bold":["Fraktur-Regular","ML__frak"],"fraktur-italic":["Fraktur-Regular","ML__frak"],"fraktur-bolditalic":["Fraktur-Regular","ML__frak"],monospace:["Typewriter-Regular","ML__tt"],"monospace-bold":["Typewriter-Regular","ML__tt ML__bold"],"monospace-italic":["Typewriter-Regular","ML__tt ML__it"],"monospace-bolditalic":["Typewriter-Regular","ML__tt ML__bold ML__it"],"double-struck":["AMS-Regular","ML__bb"],"double-struck-bold":["AMS-Regular","ML__bb"],"double-struck-italic":["AMS-Regular","ML__bb"],"double-struck-bolditalic":["AMS-Regular","ML__bb"]},Qf={"double-struck":/^[A-Z ]$/,script:/^[A-Z ]$/,calligraphic:/^[\dA-Z ]$/,fraktur:/^[\dA-Za-z ]$|^[!"#$%&'()*+,\-./:;=?[]^’‘]$/,monospace:/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/,"sans-serif":/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/},i0=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,Xh=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,Iy=[/^[a-z]$/,/^[A-Z]$/,i0,Xh],Fy={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},Ry=class extends Hu{constructor(){super("math")}createAtom(E,z,it){var st,ct,vt,xt;if(z===null)return new Mr({type:"mord",mode:"math",command:E,value:E,style:it});const Ot=window.MathfieldElement.isFunction((st=z.command)!=null?st:E);if(z.definitionType==="symbol"){const Zt=new Mr({type:(ct=z.type)!=null?ct:"mord",mode:"math",command:(vt=z.command)!=null?vt:E,value:String.fromCodePoint(z.codepoint),style:it});return Ot&&(Zt.isFunction=!0),E.startsWith("\\")&&(Zt.verbatimLatex=E),Zt}const Kt=new Mr({type:"mord",mode:"math",command:(xt=z.command)!=null?xt:E,value:E,style:it});return Ot&&(Kt.isFunction=!0),E.startsWith("\\")&&(Kt.verbatimLatex=E),Kt}serialize(E,z){const it=zy(E,Nt(jt({},z),{defaultMode:"math"}));return it.length===0||z.defaultMode!=="text"?it:["$ ",...it," $"]}getFont(E,z){console.assert(z.variant!==void 0);let{variant:it}=z,{variantStyle:st}=z;it==="normal"&&!st&&/[\u00A3\u0131\u0237]/.test(E.value)&&(it="main",st="italic"),it==="normal"&&!st&&E.value.length===1&&Iy.forEach((Ot,Kt)=>{var Zt;Ot.test(E.value)&&Fy[(Zt=z.letterShapeStyle)!=null?Zt:"tex"][Kt]==="it"&&(st="italic")}),st==="up"&&(st=void 0);const ct=st?it+"-"+st:it;console.assert(bv[ct]!==void 0);const[vt,xt]=bv[ct];return Qf[it]&&!Qf[it].test(E.value)?(E.value=ti(E.value,it,st),null):(i0.test(E.value)&&(E.classes+=" lcGreek"),xt&&(E.classes+=" "+xt),vt)}};function zy(E,z){const{parent:it}=E[0],st=jy(it);return qa(E,"variant").map(ct=>{const vt=jy(ct[0]);let xt="";vt&&vt!==st&&(xt={calligraphic:"\\mathcal",fraktur:"\\mathfrak","double-struck":"\\mathbb",script:"\\mathscr",monospace:"\\mathtt","sans-serif":"\\mathsf",normal:"\\mathrm","normal-italic":"\\mathnormal","normal-bold":"\\mathbf","normal-bolditalic":"\\mathbfit",ams:"","ams-italic":"\\mathit","ams-bold":"\\mathbf","ams-bolditalic":"\\mathbfit",main:"","main-italic":"\\mathit","main-bold":"\\mathbf","main-bolditalic":"\\mathbfit"}[vt],console.assert(xt!==void 0));const Ot=Ts(ct.map(Kt=>Kt._serialize(z)));return xt?Fa(xt,Ot):Ot})}function jy(E){if(!E)return"";const{style:z}=E;if(z.variant===void 0)return"";let it=z.variant;return!["calligraphic","fraktur","double-struck","script","monospace","sans-serif"].includes(z.variant)&&z.variantStyle&&z.variantStyle!=="up"&&(it+="-"+z.variantStyle),it}new Ry;function r0(E,z){return E.map(it=>it._serialize(z))}function Ky(E,z){return qa(E,"fontShape").map(it=>{const st=r0(it,z),{fontShape:ct}=it[0].style;let vt="";return ct==="it"&&(vt="\\textit"),ct==="sl"&&(vt="\\textsl"),ct==="sc"&&(vt="\\textsc"),ct==="n"&&(vt="\\textup"),!vt&&ct?`{${Fa("\\fontshape",ct)}${Ts(st)}}`:vt?Fa(vt,Ts(st)):Ts(st)})}function Hy(E,z){return qa(E,"fontSeries").map(it=>{const st=Ky(it,z),{fontSeries:ct}=it[0].style;let vt="";return ct==="b"&&(vt="\\textbf"),ct==="l"&&(vt="\\textlf"),ct==="m"&&(vt="\\textmd"),ct&&!vt?`{${Fa("\\fontseries",ct)}${Ts(st)}}`:vt?Fa(vt,Ts(st)):Ts(st)})}function wv(E,z){return qa(E,"fontSize").map(it=>{var st,ct;const vt=Hy(it,z),xt=(ct=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(st=it[0].style.fontSize)!=null?st:""])!=null?ct:"";return xt?`${xt} ${Ts(vt)}`:Ts(vt)})}function q0(E,z,it){return qa(E,"fontFamily").map(st=>{var ct,vt;const xt=wv(st,z),Ot=(vt={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(ct=st[0].style.fontFamily)!=null?ct:""])!=null?vt:"";return Ot?`\\${Ot}{${Ts(xt)}}`:st[0].style.fontFamily?`{\\fontfamily{${st[0].style.fontFamily}} ${Ts(xt)}}`:it?`\\text{${Ts(xt)}}`:Ts(xt)})}var Sv={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},Ms=class extends Hu{constructor(){super("text")}createAtom(E,z,it){return z&&z.definitionType==="symbol"?new gh(E,String.fromCodePoint(z.codepoint),it!=null?it:{}):null}serialize(E,z){return q0(E,Nt(jt({},z),{defaultMode:"text"}),z.defaultMode!=="text")}getFont(E,z){var it,st,ct,vt,xt;const{fontFamily:Ot}=z;if(Sv[Ot]?E.classes+=" "+Sv[Ot]:Ot&&E.setStyle("font-family",Ot),z.fontShape&&(E.classes+=" ",E.classes+=(it={it:"ML__it",sl:"ML__shape_sl",sc:"ML__shape_sc",ol:"ML__shape_ol"}[z.fontShape])!=null?it:""),z.fontSeries){const Kt=z.fontSeries.match(/(.?[lbm])?(.?[cx])?/);Kt&&(E.classes+=" ",E.classes+=(ct={ul:"ML__series_ul",el:"ML__series_el",l:"ML__series_l",sl:"ML__series_sl",m:"",sb:"ML__series_sb",b:"ML__bold",eb:"ML__series_eb",ub:"ML__series_ub"}[(st=Kt[1])!=null?st:""])!=null?ct:"",E.classes+=" ",E.classes+=(xt={uc:"ML__series_uc",ec:"ML__series_ec",c:"ML__series_c",sc:"ML__series_sc",n:"",sx:"ML__series_sx",x:"ML__series_x",ex:"ML__series_ex",ux:"ML__series_ux"}[(vt=Kt[2])!=null?vt:""])!=null?xt:"")}return"Main-Regular"}};new Ms;var Au=class extends Hu{constructor(){super("latex")}createAtom(E){return new ru(E)}serialize(E,z){return E.filter(it=>it instanceof ru&&!it.isSuggestion).map(it=>it.value)}getFont(){return null}};new Au;var Rl={id:"dvorak",locale:"en",displayName:"Dvorak",virtualLayout:"dvorak",platform:"",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["x","X","\u2248","\u02DB"],KeyC:["j","J","\u2206","\xD4"],KeyD:["e","E","\xB4","\xB4"],KeyE:[".",">","\u2265","\u02D8"],KeyF:["u","U","\xA8","\xA8"],KeyG:["i","I","\u02C6","\u02C6"],KeyH:["d","D","\u2202","\xCE"],KeyI:["c","C","\xE7","\xC7"],KeyJ:["h","H","\u02D9","\xD3"],KeyK:["t","T","\u2020","\u02C7"],KeyL:["n","N","\u02DC","\u02DC"],KeyM:["m","M","\xB5","\xC2"],KeyN:["b","B","\u222B","\u0131"],KeyO:["r","R","\xAE","\u2030"],KeyP:["l","L","\xAC","\xD2"],KeyQ:["'",'"',"\xE6","\xC6"],KeyR:["p","P","\u03C0","\u220F"],KeyS:["o","O","\xF8","\xD8"],KeyT:["y","Y","\xA5","\xC1"],KeyU:["g","G","\xA9","\u02DD"],KeyV:["k","K","\u02DA","\uF8FF"],KeyW:[",","<","\u2264","\xAF"],KeyX:["q","Q","\u0153","\u0152"],KeyY:["f","F","\u0192","\xCF"],KeyZ:[";",":","\u2026","\xDA"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["[","{","\u201C","\u201D"],Equal:["]","}","\u2018","\u2019"],BracketLeft:["/","?","\xF7","\xBF"],BracketRight:["=","+","\u2260","\xB1"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:["s","S","\xDF","\xCD"],Quote:["-","_","\u2013","\u2014"],Backquote:["`","~","`","`"],Comma:["w","W","\u2211","\u201E"],Period:["v","V","\u221A","\u25CA"],Slash:["z","Z","\u03A9","\xB8"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},Tc={id:"apple.en-intl",displayName:"English (international)",virtualLayout:"qwerty",platform:"apple",locale:"en",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u0131"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\xCE"],KeyE:["e","E","\xB4","\xB4"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\u02DD"],KeyH:["h","H","\u02D9","\xD3"],KeyI:["i","I","\u02C6","\u02C6"],KeyJ:["j","J","\u2206","\xD4"],KeyK:["k","K","\u02DA","\uF8FF"],KeyL:["l","L","\xAC","\xD2"],KeyM:["m","M","\xB5","\xC2"],KeyN:["n","N","\u02DC","\u02DC"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE","\u2030"],KeyS:["s","S","\xDF","\xCD"],KeyT:["t","T","\u2020","\u02C7"],KeyU:["u","U","\xA8","\xA8"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\u02DB"],KeyY:["y","Y","\xA5","\xC1"],KeyZ:["z","Z","\u03A9","\xB8"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["-","_","\u2013","\u2014"],Equal:["=","+","\u2260","\xB1"],BracketLeft:["[","{","\u201C","\u201D"],BracketRight:["]","}","\u2018","\u2019"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:[";",":","\u2026","\xDA"],Quote:["'",'"',"\xE6","\xC6"],Backquote:["`","\u02DC","`","`"],Comma:[",","<","\u2264","\xAF"],Period:[".",">","\u2265","\u02D8"],Slash:["/","?","\xF7","\xBF"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},o0={id:"windows.en-intl",displayName:"English (international)",platform:"windows",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","\xE1","\xC1"],KeyB:["b","B","",""],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\xE9","\xC9"],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","\xED","\xCD"],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","\xF8","\xD8"],KeyM:["m","M","\xB5",""],KeyN:["n","N","\xF1","\xD1"],KeyO:["o","O","\xF3","\xD3"],KeyP:["p","P","\xF6","\xD6"],KeyQ:["q","Q","\xE4","\xC4"],KeyR:["r","R","\xAE",""],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\xFE","\xDE"],KeyU:["u","U","\xFA","\xDA"],KeyV:["v","V","",""],KeyW:["w","W","\xE5","\xC5"],KeyX:["x","X","",""],KeyY:["y","Y","\xFC","\xDC"],KeyZ:["z","Z","\xE6","\xC6"],Digit1:["1","!","\xA1","\xB9"],Digit2:["2","@","\xB2",""],Digit3:["3","#","\xB3",""],Digit4:["4","$","\xA4","\xA3"],Digit5:["5","%","\u20AC",""],Digit6:["6","^","\xBC",""],Digit7:["7","&","\xBD",""],Digit8:["8","*","\xBE",""],Digit9:["9","(","\u2018",""],Digit0:["0",")","\u2019",""],Space:[" "," ","",""],Minus:["-","_","\xA5",""],Equal:["=","+","\xD7","\xF7"],BracketLeft:["[","{","\xAB",""],BracketRight:["]","}","\xBB",""],Backslash:["\\","|","\xAC","\xA6"],Semicolon:[";",":","\xB6","\xB0"],Quote:["'",'"',"\xB4","\xA8"],Backquote:["`","~","",""],Comma:[",","<","\xE7","\xC7"],Period:[".",">","",""],Slash:["/","?","\xBF",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["\\","|","",""]}},Jh={id:"linux.en",displayName:"English",platform:"linux",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","a","A"],KeyB:["b","B","b","B"],KeyC:["c","C","c","C"],KeyD:["d","D","d","D"],KeyE:["e","E","e","E"],KeyF:["f","F","f","F"],KeyG:["g","G","g","G"],KeyH:["h","H","h","H"],KeyI:["i","I","i","I"],KeyJ:["j","J","j","J"],KeyK:["k","K","k","K"],KeyL:["l","L","l","L"],KeyM:["m","M","m","M"],KeyN:["n","N","n","N"],KeyO:["o","O","o","O"],KeyP:["p","P","p","P"],KeyQ:["q","Q","q","Q"],KeyR:["r","R","r","R"],KeyS:["s","S","s","S"],KeyT:["t","T","t","T"],KeyU:["u","U","u","U"],KeyV:["v","V","v","V"],KeyW:["w","W","w","W"],KeyX:["x","X","x","X"],KeyY:["y","Y","y","Y"],KeyZ:["z","Z","z","Z"],Digit1:["1","!","1","!"],Digit2:["2","@","2","@"],Digit3:["3","#","3","#"],Digit4:["4","$","4","$"],Digit5:["5","%","5","%"],Digit6:["6","^","6","^"],Digit7:["7","&","7","&"],Digit8:["8","*","8","*"],Digit9:["9","(","9","("],Digit0:["0",")","0",")"],Space:[" "," "," "," "],Minus:["-","_","-","_"],Equal:["=","+","=","+"],BracketLeft:["[","{","[","{"],BracketRight:["]","}","]","}"],Backslash:["\\","|","\\","|"],Semicolon:[";",":",";",":"],Quote:["'",'"',"'",'"'],Backquote:["`","~","`","~"],Comma:[",","<",",","<"],Period:[".",">",".",">"],Slash:["/","?","/","?"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}},Qh={id:"apple.french",locale:"fr",displayName:"French",platform:"apple",virtualLayout:"azerty",score:0,mapping:{KeyA:["q","Q","\u2021","\u03A9"],KeyB:["b","B","\xDF","\u222B"],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\xEA","\xCA"],KeyF:["f","F","\u0192","\xB7"],KeyG:["g","G","\uFB01","\uFB02"],KeyH:["h","H","\xCC","\xCE"],KeyI:["i","I","\xEE","\xEF"],KeyJ:["j","J","\xCF","\xCD"],KeyK:["k","K","\xC8","\xCB"],KeyL:["l","L","\xAC","|"],KeyM:[",","?","\u221E","\xBF"],KeyN:["n","N","~","\u0131"],KeyO:["o","O","\u0153","\u0152"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xAE","\u201A"],KeyS:["s","S","\xD2","\u2211"],KeyT:["t","T","\u2020","\u2122"],KeyU:["u","U","\xBA","\xAA"],KeyV:["v","V","\u25CA","\u221A"],KeyW:["z","Z","\xC2","\xC5"],KeyX:["x","X","\u2248","\u2044"],KeyY:["y","Y","\xDA","\u0178"],KeyZ:["w","W","\u2039","\u203A"],Digit1:["&","1","\uF8FF","\xB4"],Digit2:["\xE9","2","\xEB","\u201E"],Digit3:['"',"3","\u201C","\u201D"],Digit4:["'","4","\u2018","\u2019"],Digit5:["(","5","{","["],Digit6:["\xA7","6","\xB6","\xE5"],Digit7:["\xE8","7","\xAB","\xBB"],Digit8:["!","8","\xA1","\xDB"],Digit9:["\xE7","9","\xC7","\xC1"],Digit0:["\xE0","0","\xF8","\xD8"],Space:[" "," "," "," "],Minus:[")","\xB0","}","]"],Equal:["-","_","\u2014","\u2013"],BracketLeft:["^","\xA8","\xF4","\xD4"],BracketRight:["$","*","\u20AC","\xA5"],Backslash:["`","\xA3","@","#"],Semicolon:["m","M","\xB5","\xD3"],Quote:["\xF9","%","\xD9","\u2030"],Backquote:["<",">","\u2264","\u2265"],Comma:[";",".","\u2026","\u2022"],Period:[":","/","\xF7","\\"],Slash:["=","+","\u2260","\xB1"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",".",",","."],IntlBackslash:["@","#","\u2022","\u0178"],NumpadEqual:["=","=","=","="]}},Wu={id:"windows.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"windows",score:0,mapping:{KeyA:["q","Q","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:[",","?","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["a","A","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["z","Z","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["w","W","",""],Digit1:["&","1","",""],Digit2:["\xE9","2","~",""],Digit3:['"',"3","#",""],Digit4:["'","4","{",""],Digit5:["(","5","[",""],Digit6:["-","6","|",""],Digit7:["\xE8","7","`",""],Digit8:["_","8","\\",""],Digit9:["\xE7","9","^",""],Digit0:["\xE0","0","@",""],Space:[" "," ","",""],Minus:[")","\xB0","]",""],Equal:["=","+","}",""],BracketLeft:["^","\xA8","",""],BracketRight:["$","\xA3","\xA4",""],Backslash:["*","\xB5","",""],Semicolon:["m","M","",""],Quote:["\xF9","%","",""],Backquote:["\xB2","","",""],Comma:[";",".","",""],Period:[":","/","",""],Slash:["!","\xA7","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},tm={id:"linux.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"linux",score:0,mapping:{KeyA:["q","Q","@","\u03A9"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:[",","?","\u0301","\u030B"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["z","Z","\xAB","<"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["w","W","\u0142","\u0141"],Digit1:["&","1","\xB9","\xA1"],Digit2:["\xE9","2","~","\u215B"],Digit3:['"',"3","#","\xA3"],Digit4:["'","4","{","$"],Digit5:["(","5","[","\u215C"],Digit6:["-","6","|","\u215D"],Digit7:["\xE8","7","`","\u215E"],Digit8:["_","8","\\","\u2122"],Digit9:["\xE7","9","^","\xB1"],Digit0:["\xE0","0","@","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:[")","\xB0","]","\xBF"],Equal:["=","+","}","\u0328"],BracketLeft:["\u0302","\u0308","\u0308","\u030A"],BracketRight:["$","\xA3","\xA4","\u0304"],Backslash:["*","\xB5","\u0300","\u0306"],Semicolon:["m","M","\xB5","\xBA"],Quote:["\xF9","%","\u0302","\u030C"],Backquote:["\xB2","~","\xAC","\xAC"],Comma:[";",".","\u2500","\xD7"],Period:[":","/","\xB7","\xF7"],Slash:["!","\xA7","\u0323","\u0307"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"]}},em={id:"apple.german",locale:"de",displayName:"German",virtualLayout:"qwertz",platform:"apple",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u2039"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\u2122"],KeyE:["e","E","\u20AC","\u2030"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\xCC"],KeyH:["h","H","\xAA","\xD3"],KeyI:["i","I","\u2044","\xDB"],KeyJ:["j","J","\xBA","\u0131"],KeyK:["k","K","\u2206","\u02C6"],KeyL:["l","L","@","\uFB02"],KeyM:["m","M","\xB5","\u02D8"],KeyN:["n","N","~","\u203A"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\xAB","\xBB"],KeyR:["r","R","\xAE","\xB8"],KeyS:["s","S","\u201A","\xCD"],KeyT:["t","T","\u2020","\u02DD"],KeyU:["u","U","\xA8","\xC1"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\xD9"],KeyY:["z","Z","\u03A9","\u02C7"],KeyZ:["y","Y","\xA5","\u2021"],Digit1:["1","!","\xA1","\xAC"],Digit2:["2",'"',"\u201C","\u201D"],Digit3:["3","\xA7","\xB6","#"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","[","\uFB01"],Digit6:["6","&","]","^"],Digit7:["7","/","|","\\"],Digit8:["8","(","{","\u02DC"],Digit9:["9",")","}","\xB7"],Digit0:["0","=","\u2260","\xAF"],Space:[" "," "," "," "],Minus:["\xDF","?","\xBF","\u02D9"],Equal:["\xB4","`","'","\u02DA"],BracketLeft:["\xFC","\xDC","\u2022","\xB0"],BracketRight:["+","*","\xB1","\uF8FF"],Backslash:["#","'","\u2018","\u2019"],Semicolon:["\xF6","\xD6","\u0153","\u0152"],Quote:["\xE4","\xC4","\xE6","\xC6"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u221E","\u02DB"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",",",".","."],IntlBackslash:["^","\xB0","\u201E","\u201C"],NumpadEqual:["=","=","=","="]}},Z1={id:"windows.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","\xB5",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","@",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["z","Z","",""],KeyZ:["y","Y","",""],Digit1:["1","!","",""],Digit2:["2",'"',"\xB2",""],Digit3:["3","\xA7","\xB3",""],Digit4:["4","$","",""],Digit5:["5","%","",""],Digit6:["6","&","",""],Digit7:["7","/","{",""],Digit8:["8","(","[",""],Digit9:["9",")","]",""],Digit0:["0","=","}",""],Space:[" "," ","",""],Minus:["\xDF","?","\\","\u1E9E"],Equal:["\xB4","`","",""],BracketLeft:["\xFC","\xDC","",""],BracketRight:["+","*","~",""],Backslash:["#","'","",""],Semicolon:["\xF6","\xD6","",""],Quote:["\xE4","\xC4","",""],Backquote:["^","\xB0","",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","|",""]}},Sa={id:"linux.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201C","\u2018"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0323","\u0307"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","\u201D","\u2019"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\u017F","\u1E9E"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201E","\u201A"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xAB","\u2039"],KeyY:["z","Z","\u2190","\xA5"],KeyZ:["y","Y","\xBB","\u203A"],Digit1:["1","!","\xB9","\xA1"],Digit2:["2",'"',"\xB2","\u215B"],Digit3:["3","\xA7","\xB3","\xA3"],Digit4:["4","$","\xBC","\xA4"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["\xDF","?","\\","\xBF"],Equal:["\u0301","\u0300","\u0327","\u0328"],BracketLeft:["\xFC","\xDC","\u0308","\u030A"],BracketRight:["+","*","~","\xAF"],Backslash:["#","'","\u2019","\u0306"],Semicolon:["\xF6","\xD6","\u030B","\u0323"],Quote:["\xE4","\xC4","\u0302","\u030C"],Backquote:["\u0302","\xB0","\u2032","\u2033"],Comma:[",",";","\xB7","\xD7"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],PrintScreen:["","","",""],PageUp:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",",","",","],IntlBackslash:["<",">","|","\u0331"],AltRight:["\r","\r","\r","\r"],MetaRight:[".",".",".","."]}},Cv={id:"apple.spanish",locale:"es",displayName:"Spanish ISO",platform:"apple",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\xDF",""],KeyC:["c","C","\xA9"," "],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0192","\uFB01"],KeyG:["g","G","\uF8FF","\uFB02"],KeyH:["h","H","\u2122"," "],KeyI:["i","I"," "," "],KeyJ:["j","J","\xB6","\xAF"],KeyK:["k","K","\xA7","\u02C7"],KeyL:["l","L"," ","\u02D8"],KeyM:["m","M","\xB5","\u02DA"],KeyN:["n","N"," ","\u02D9"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE"," "],KeyS:["s","S","\u222B"," "],KeyT:["t","T","\u2020","\u2021"],KeyU:["u","U"," "," "],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\xE6","\xC6"],KeyX:["x","X","\u2211","\u203A"],KeyY:["y","Y","\xA5"," "],KeyZ:["z","Z","\u03A9","\u2039"],Digit1:["1","!","|","\u0131"],Digit2:["2",'"',"@","\u02DD"],Digit3:["3","\xB7","#","\u2022"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","\u221E","\u2030"],Digit6:["6","&","\xAC"," "],Digit7:["7","/","\xF7","\u2044"],Digit8:["8","(","\u201C","\u2018"],Digit9:["9",")","\u201D","\u2019"],Digit0:["0","=","\u2260","\u2248"],Space:[" "," "," "," "],Minus:["'","?","\xB4","\xB8"],Equal:["\xA1","\xBF","\u201A","\u02DB"],BracketLeft:["`","^","[","\u02C6"],BracketRight:["+","*","]","\xB1"],Backslash:["\xE7","\xC7","}","\xBB"],Semicolon:["\xF1","\xD1","~","\u02DC"],Quote:["\xB4","\xA8","{","\xAB"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u201E",""],Period:[".",":","\u2026","\u2026"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[",",",",",",","],IntlBackslash:["\xBA","\xAA","\\","\xB0"]}},Mv={id:"windows.spanish",locale:"es",displayName:"Spanish",platform:"windows",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["z","Z","",""],Digit1:["1","!","|",""],Digit2:["2",'"',"@",""],Digit3:["3","\xB7","#",""],Digit4:["4","$","~",""],Digit5:["5","%","\u20AC",""],Digit6:["6","&","\xAC",""],Digit7:["7","/","",""],Digit8:["8","(","",""],Digit9:["9",")","",""],Digit0:["0","=","",""],Space:[" "," ","",""],Minus:["'","?","",""],Equal:["\xA1","\xBF","",""],BracketLeft:["`","^","[",""],BracketRight:["+","*","]",""],Backslash:["\xE7","\xC7","}",""],Semicolon:["\xF1","\xD1","",""],Quote:["\xB4","\xA8","{",""],Backquote:["\xBA","\xAA","\\",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},Ev={id:"linux.spanish",locale:"es",displayName:"Spanish",platform:"linux",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["z","Z","\xAB","<"],Digit1:["1","!","|","\xA1"],Digit2:["2",'"',"@","\u215B"],Digit3:["3","\xB7","#","\xA3"],Digit4:["4","$","~","$"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["'","?","\\","\xBF"],Equal:["\xA1","\xBF","\u0303","~"],BracketLeft:["\u0300","\u0302","[","\u030A"],BracketRight:["+","*","]","\u0304"],Backslash:["\xE7","\xC7","}","\u0306"],Semicolon:["\xF1","\xD1","~","\u030B"],Quote:["\u0301","\u0308","{","{"],Backquote:["\xBA","\xAA","\\","\\"],Comma:[",",";","\u2500","\xD7"],Period:[".",":","\xB7","\xF7"],Slash:["-","_","\u0323","\u0307"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadEnter:["\r","\r","\r","\r"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}};function cg(E){const z=E.split("+"),it={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:z.pop()};return z.includes("shift")&&(it.shift=!0),z.includes("alt")&&(it.alt=!0),z.includes("ctrl")&&(it.ctrl=!0),z.includes("cmd")&&(it.cmd=!0),z.includes("win")&&(it.win=!0),z.includes("meta")&&(it.meta=!0),it}function $f(E){let z="";return E.shift&&(z+="shift+"),E.alt&&(z+="alt+"),E.ctrl&&(z+="ctrl+"),E.cmd&&(z+="cmd+"),E.win&&(z+="win+"),E.meta&&(z+="meta+"),z+E.key}var kv={enter:"[Enter]",escape:"[Escape]",backspace:"[Backspace]",tab:"[Tab]",space:"[Space]",pausebreak:"[Pause]",insert:"[Insert]",home:"[Home]",pageup:"[PageUp]",delete:"[Delete]",end:"[End]",pagedown:"[PageDown]",right:"[ArrowRight]",left:"[ArrowLeft]",down:"[ArrowDown]",up:"[ArrowUp]",numpad0:"[Numpad0]",numpad1:"[Numpad1]",numpad2:"[Numpad2]",numpad3:"[Numpad3]",numpad4:"[Numpad4]",numpad5:"[Numpad5]",numpad6:"[Numpad6]",numpad7:"[Numpad7]",numpad8:"[Numpad8]",numpad9:"[Numpad9]",numpad_divide:"[NumpadDivide]",numpad_multiply:"[NumpadMultiply]",numpad_subtract:"[NumpadSubtract]",numpad_add:"[NumpadAdd]",numpad_decimal:"[NumpadDecimal]",numpad_separator:"[NumpadComma]",capslock:"[Capslock]",f1:"[F1]",f2:"[F2]",f3:"[F3]",f4:"[F4]",f5:"[F5]",f6:"[F6]",f7:"[F7]",f8:"[F8]",f9:"[F9]",f10:"[F10]",f11:"[F11]",f12:"[F12]",f13:"[F13]",f14:"[F14]",f15:"[F15]",f16:"[F16]",f17:"[F17]",f18:"[F18]",f19:"[F19]"},qf=[],tp;function nm(){switch(It()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function nc(E){(!E.platform||E.platform===nm())&&qf.push(E)}function hg(E,z){var it;const st={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:""};if(!E)return st;for(const[ct,vt]of Object.entries(z.mapping)){if(vt[0]===E)return st.key=`[${ct}]`,st;if(vt[1]===E)return st.shift=!0,st.key=`[${ct}]`,st;if(vt[2]===E)return st.alt=!0,st.key=`[${ct}]`,st;if(vt[3]===E)return st.shift=!0,st.alt=!0,st.key=`[${ct}]`,st}return st.key=(it=kv[E])!=null?it:"",st}function Av(E){if(E.code)return E;const z=Object.entries(hf().mapping);let it=!1,st=!1,ct="";for(let vt=0;vt<4;vt++){for(const[xt,Ot]of z)if(Ot[vt]===E.key){ct=xt,vt===3?(it=!0,st=!0):vt===2?it=!0:vt===1&&(st=!0);break}if(ct)break}return new KeyboardEvent(E.type,Nt(jt({},E),{altKey:it,shiftKey:st,code:ct}))}function Lv(E){var z,it;if(!E||E.key==="Unidentified"||E.key==="Dead")return;const st=E.shiftKey&&E.altKey?3:E.altKey?2:E.shiftKey?1:0;for(const ct of qf)((z=ct.mapping[E.code])==null?void 0:z[st])===E.key?ct.score+=1:(it=ct.mapping[E.code])!=null&&it[st]&&(ct.score=0);qf.sort((ct,vt)=>vt.score-ct.score)}function G1(E){tp=qf.find(z=>E.startsWith(z.locale))}function hf(){return tp!=null?tp:qf[0]}function Di(){switch(nm()){case"apple":return Tc;case"windows":return o0;case"linux":return Jh}return Tc}switch(nm()){case"apple":nc(Tc),nc(Qh),nc(Cv),nc(em);break;case"windows":nc(o0),nc(Wu),nc(Mv),nc(Z1);break;case"linux":nc(Jh),nc(tm),nc(Ev),nc(Sa);break}nc(Rl);function dg(E){var z;const it=/macos|ios/.test(It()),st=E.split("+");let ct="";for(const vt of st)ct&&(ct+=it?"\u2009":'<span class="ML__shortcut-join">+</span>'),vt.startsWith("[Key")?ct+=vt.slice(4,5):vt.startsWith("Key")?ct+=vt.slice(3,4):vt.startsWith("[Digit")?ct+=vt.slice(6,7):vt.startsWith("Digit")?ct+=vt.slice(5,6):ct+=(z={cmd:"\u2318",meta:it?"\u2318":"Ctrl",shift:it?"\u21E7":"Shift",alt:it?"\u2325":"Alt",ctrl:it?"\u2303":"Ctrl","\n":it?"\u23CE":"Return","[return]":it?"\u23CE":"Return","[enter]":it?"\u2324":"Enter","[tab]":it?"\u21E5":"Tab","[escape]":"Esc","[backspace]":it?"\u232B":"Backspace","[delete]":it?"\u2326":"Del","[pageup]":it?"\u21DE":"Page Up","[pagedown]":it?"\u21DF":"Page Down","[home]":it?"\u2912":"Home","[end]":it?"\u2913":"End","[space]":"Space","[equal]":"=","[minus]":"-","[comma]":",","[slash]":"/","[backslash]":"\\","[bracketleft]":"[","[bracketright]":"]",semicolon:";",period:".",comma:",",minus:"-",equal:"=",quote:"'",backslash:"\\",intlbackslash:"\\",backquote:"`",slash:"/",numpadmultiply:"* 🔢",numpaddivide:"/ 🔢",numpadsubtract:"- 🔢",numpadadd:"+ 🔢",numpaddecimal:". 🔢",numpadcomma:", 🔢",help:"help",left:"\u21E0",up:"\u21E1",right:"\u21E2",down:"\u21E3","[arrowleft]":"\u21E0","[arrowup]":"\u21E1","[arrowright]":"\u21E2","[arrowdown]":"\u21E3"}[vt.toLowerCase()])!=null?z:vt.toUpperCase();return ct}function fg(E){if(E instanceof MouseEvent||E instanceof PointerEvent)return{x:E.clientX,y:E.clientY};if(E instanceof TouchEvent){const z=[...E.touches].reduce((st,ct)=>({x:st.x+ct.clientX,y:st.y+ct.clientY}),{x:0,y:0}),it=E.touches.length;return{x:z.x/it,y:z.y/it}}}function Ed(E){const z={alt:!1,control:!1,shift:!1,meta:!1};return(E instanceof MouseEvent||E instanceof PointerEvent||E instanceof TouchEvent||E instanceof KeyboardEvent)&&(E.altKey&&(z.alt=!0),E.ctrlKey&&(z.control=!0),E.metaKey&&(z.meta=!0),E.shiftKey&&(z.shift=!0)),z}function Y1(E,z){return!E&&z||E&&!z?!1:!E||!z?!0:E.alt===z.alt&&E.control===z.control&&E.shift===z.shift&&E.meta===z.meta}var _y=new Set(["Backquote","Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Minus","Equal","IntlYen","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Backslash","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","IntlBackslash","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","IntlRo","Space","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9","NumpadAdd","NumpadComma","NumpadDecimal","NumpadDivide","NumpadEqual","NumpadHash","NumpadMultiply","NumpadParenLeft","NumpadParenRight","NumpadStar","NumpadSubstract"]);function Dc(E){return E.ctrlKey||E.metaKey||["Dead","Process"].includes(E.key)?!1:E.code===""?!0:_y.has(E.code)}function $h(){var E;let z=document.activeElement;for(;(E=z==null?void 0:z.shadowRoot)!=null&&E.activeElement;)z=z.shadowRoot.activeElement;return z}var qh=class z0{static get scrim(){return z0._scrim||(z0._scrim=new z0),z0._scrim}static open(z){z0.scrim.open(z)}static close(){z0.scrim.close()}static get state(){return z0.scrim.state}static get element(){return z0.scrim.element}constructor(z){var it,st;this.lightDismiss=(it=z==null?void 0:z.lightDismiss)!=null?it:!0,this.translucent=(st=z==null?void 0:z.translucent)!=null?st:!1,this.state="closed"}get element(){if(this._element)return this._element;const z=document.createElement("div");return z.setAttribute("role","presentation"),z.style.position="fixed",z.style.contain="content",z.style.top="0",z.style.left="0",z.style.right="0",z.style.bottom="0",z.style.zIndex="var(--scrim-zindex, 10099)",z.style.outline="none",this.translucent?(z.style.background="rgba(255, 255, 255, .2)",z.style.backdropFilter="contrast(40%)"):z.style.background="transparent",this._element=z,z}open(z){var it;if(this.state!=="closed")return;this.state="opening",this.onDismiss=z==null?void 0:z.onDismiss,this.savedActiveElement=$h();const{element:st}=this;((it=z==null?void 0:z.root)!=null?it:document.body).appendChild(st),st.addEventListener("click",this),document.addEventListener("touchmove",this,!1),document.addEventListener("scroll",this,!1);const ct=window.innerWidth-document.documentElement.clientWidth;this.savedMarginRight=document.body.style.marginRight,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden";const vt=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${vt+ct}px`,z!=null&&z.child&&st.append(z.child),this.state="open"}close(){var z,it,st,ct;if(this.state!=="open"){console.assert(this.element.parentElement!==null);return}this.state="closing",typeof this.onDismiss=="function"&&this.onDismiss(),this.onDismiss=void 0;const{element:vt}=this;vt.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),vt.remove(),document.body.style.overflow=(z=this.savedOverflow)!=null?z:"",document.body.style.marginRight=(it=this.savedMarginRight)!=null?it:"",$h()!==this.savedActiveElement&&((ct=(st=this.savedActiveElement)==null?void 0:st.focus)==null||ct.call(st)),vt.innerHTML="",this.state="closed"}handleEvent(z){this.lightDismiss&&(z.target===this._element&&z.type==="click"?(this.close(),z.preventDefault(),z.stopPropagation()):z.target===document&&(z.type==="touchmove"||z.type==="scroll")&&(this.close(),z.preventDefault(),z.stopPropagation()))}};function Ib(E,z,it){let st=null,ct=null,vt=!1,xt=!1,Ot=!1;const Kt=new AbortController,Zt=Kt.signal;return E.addEventListener("keydown",re=>{if(vt||re.key==="Process"||re.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(re.code)){st=null;return}st=re,ct=null,it.onKeystroke(re)?E.textContent="":st=null},{capture:!0,signal:Zt}),E.addEventListener("keypress",re=>{vt||(st&&ct&&it.onKeystroke(st),ct=re)},{capture:!0,signal:Zt}),E.addEventListener("compositionstart",re=>{E.textContent="",vt=!0,it.onCompositionStart(re.data)},{capture:!0,signal:Zt}),E.addEventListener("compositionupdate",re=>{vt&&it.onCompositionUpdate(re.data)},{capture:!0,signal:Zt}),E.addEventListener("compositionend",re=>{E.textContent="",vt&&(vt=!1,it.onCompositionEnd(re.data))},{capture:!0,signal:Zt}),E.addEventListener("beforeinput",re=>re.stopImmediatePropagation(),{signal:Zt}),E.addEventListener("input",re=>{var Be;if(!vt&&(E.textContent="",re.inputType!=="insertCompositionText")){if(re.inputType==="insertFromPaste"){re.preventDefault(),re.stopPropagation();return}it.onInput((Be=re.data)!=null?Be:""),re.preventDefault(),re.stopPropagation()}},{signal:Zt}),E.addEventListener("paste",re=>{E.focus({preventScroll:!0}),E.textContent="",it.onPaste(re)||re.preventDefault(),re.stopImmediatePropagation()},{signal:Zt}),E.addEventListener("cut",re=>it.onCut(re),{capture:!0,signal:Zt}),E.addEventListener("copy",re=>it.onCopy(re),{capture:!0,signal:Zt}),E.addEventListener("blur",re=>{var Be,ln;if(((ln=(Be=re.relatedTarget)==null?void 0:Be._mathfield)==null?void 0:ln.element)===z){E.focus({preventScroll:!0}),re.preventDefault(),re.stopPropagation();return}const Fn=qh.state;if(Fn==="open"||Fn==="opening"){re.preventDefault(),re.stopPropagation();return}if(re.relatedTarget===re.target.getRootNode().host){re.preventDefault(),re.stopPropagation();return}Ot||xt||(Ot=!0,st=null,ct=null,it.onBlur(),Ot=!1)},{capture:!0,signal:Zt}),E.addEventListener("focus",re=>{Ot||xt||(xt=!0,it.onFocus(),xt=!1)},{capture:!0,signal:Zt}),{dispose:()=>Kt.abort(),cancelComposition:()=>{vt&&(E.blur(),requestAnimationFrame(()=>E.focus({preventScroll:!0})))},blur:()=>{typeof E.blur=="function"&&E.blur()},focus:()=>{!xt&&typeof E.focus=="function"&&E.focus({preventScroll:!0})},hasFocus:()=>$h()===E,setAriaLabel:re=>E.setAttribute("aria-label",re),setValue:re=>{var Be;E.textContent=re,E.style.left="-1000px",(Be=window.getSelection())==null||Be.selectAllChildren(E)},moveTo:(re,Be)=>{E.style.top=`${Be}px`,E.style.left=`${re}px`}}}function s0(E){var z;if(!E||!Dc(E))return"";let it;return E.key==="Unidentified"&&E.target&&(it=E.target.value),it=(z=it!=null?it:E.key)!=null?z:E.code,/^(Dead|Return|Enter|Tab|Escape|Delete|PageUp|PageDown|Home|End|Help|ArrowLeft|ArrowRight|ArrowUp|ArrowDown)$/.test(it)&&(it=""),it}function Wy(E){E=Av(E);const z=[];return E.ctrlKey&&z.push("ctrl"),E.metaKey&&z.push("meta"),E.altKey&&z.push("alt"),E.shiftKey&&z.push("shift"),z.length===0?`[${E.code}]`:(z.push(`[${E.code}]`),z.join("+"))}function X1(E){if(we()){const z=It(),it=E.startsWith("!"),st=E.endsWith(z);if(it&&!st||!it&&st)return!0}return E==="!other"?!1:E==="other"}function kd(E,z,it){if(E.length===0)return"";const st=$f(cg(Wy(it))),ct=$f({key:it.key,shift:it.shiftKey,alt:it.altKey,ctrl:it.ctrlKey,meta:it.metaKey||it.ctrlKey&&/macos|ios/.test(It()),cmd:!1,win:!1});for(let vt=E.length-1;vt>=0;vt--)if((E[vt].key===st||E[vt].key===ct)&&(!E[vt].ifMode||E[vt].ifMode===z))return E[vt].command;return""}function Pv(E){let z=E;return Yt(z)&&(z=z.length>0?z[0]+"("+z.slice(1).join("")+")":""),z}function Vy(E,z){let it=[];if(typeof z=="string"){const vt=sf[z];Yt(vt)?it=vt.slice():vt&&it.push(vt)}const st=Pv(z),ct=new RegExp("^"+st.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const vt of E)ct.test(Pv(vt.command))&&it.push(vt.key);return it.map(dg)}function Uy(E,z){if(E.ifPlatform&&!/^!?(macos|windows|android|ios|chromeos|other)$/.test(E.ifPlatform))throw new Error(`Unexpected platform "${E.ifPlatform}" for keybinding ${E.key}`);if(E.ifLayout!==void 0&&(z.score===0||!E.ifLayout.includes(z.id)))return;const it=cg(E.key);let st=E.ifPlatform;if(it.cmd){if(st&&st!=="macos"&&st!=="ios")throw new Error('Unexpected "cmd" modifier with platform "'+st+`"
|
|
|
"cmd" modifier can only be used with macOS or iOS platform.`);st||(st=It()==="ios"?"ios":"macos"),it.win=!1,it.cmd=!1,it.meta=!0}if(it.win){if(st&&st!=="windows")throw new Error('Unexpected "win" modifier with platform "'+st+`"
|
|
|
"win" modifier can only be used with Windows platform.`);st="windows",it.win=!1,it.cmd=!1,it.meta=!0}if(st&&!X1(st))return;if(/^\[.+\]$/.test(it.key))return Nt(jt({},E),{key:$f(it)});const ct=hg(it.key,z);if(!ct)return Nt(jt({},E),{key:$f(it)});if(ct.shift&&it.shift||ct.alt&&it.alt)throw new Error(`The keybinding ${E.key} (${pg(E.command)}) is conflicting with the key combination ${$f(ct)} using the ${z.displayName} keyboard layout`);return ct.shift=ct.shift||it.shift,ct.alt=ct.alt||it.alt,ct.meta=it.meta,ct.ctrl=it.ctrl,Nt(jt({},E),{key:$f(ct)})}function pg(E){if(Array.isArray(E)){const z=[...E];return z.shift()+"("+z.map(it=>typeof it=="string"?`"${it}"`:it.toString()).join(", ")+")"}return E}function J1(E,z){const it=[],st=[];for(const ct of E)try{const vt=Uy(ct,z);if(!vt)continue;const xt=st.find(Ot=>Ot.key===vt.key&&Ot.ifMode===vt.ifMode);if(xt)throw new Error(`Ambiguous key binding ${ct.key} (${pg(ct.command)}) matches ${xt.key} (${pg(xt.command)}) with the ${z.displayName} keyboard layout`);st.push(vt)}catch(vt){vt instanceof Error&&it.push(vt.message)}return[st,it]}var Q1=class extends ts{constructor(){super("latex")}createAtom(E){return new ru(E)}onPaste(E,z){if(!z)return!1;const it=typeof z=="string"?z:z.getData("application/x-latex")||z.getData("text/plain");return it&&E.model.contentWillChange({inputType:"insertFromPaste",data:it})?(E.stopCoalescingUndo(),E.stopRecording(),this.insert(E.model,it)&&(E.startRecording(),E.snapshot("paste"),E.model.contentDidChange({inputType:"insertFromPaste"}),nl(E)),E.startRecording(),!0):!1}insert(E,z,it){if(!E.contentWillChange({data:z,inputType:"insertText"}))return!1;it||(it={}),it.insertionMode||(it.insertionMode="replaceSelection"),it.selectionMode||(it.selectionMode="placeholder");const{silenceNotifications:st}=E;it.silenceNotifications&&(E.silenceNotifications=!0);const ct=E.silenceNotifications;E.silenceNotifications=!0,it.insertionMode==="replaceSelection"&&!E.selectionIsCollapsed?E.deleteAtoms(Va(E.selection)):it.insertionMode==="replaceAll"?(E.root.setChildren([],"body"),E.position=0):it.insertionMode==="insertBefore"?E.collapseSelection("backward"):it.insertionMode==="insertAfter"&&E.collapseSelection("forward");const vt=[];for(const Kt of z)Ct.test(Kt)&&vt.push(new ru(Kt));let xt=E.at(E.position);if(xt instanceof J0&&(xt=xt.lastChild),!(xt.parent instanceof J0)){const Kt=new J0("");xt.parent.addChildAfter(Kt,xt),xt=Kt.firstChild}const Ot=xt.parent.addChildrenAfter(vt,xt);return E.silenceNotifications=ct,it.selectionMode==="before"||(it.selectionMode==="item"?E.setSelection(E.anchor,E.offsetOf(Ot)):Ot&&(E.position=E.offsetOf(Ot))),E.contentDidChange({data:z,inputType:"insertText"}),E.silenceNotifications=st,!0}};function $1(E){return E.atoms.find(z=>z.type==="latexgroup")}function ou(E){var z,it;const st=E.atoms.find(ct=>ct.type==="latexgroup");return st?(it=(z=st.body)==null?void 0:z.filter(ct=>ct.type==="latex"))!=null?it:[]:[]}function q1(E,z){var it;let st=0,ct=!1;const vt=Number.isFinite(z==null?void 0:z.before)?(it=z==null?void 0:z.before)!=null?it:0:E.lastOffset;for(;st<=vt&&!ct;){const Kt=E.at(st);ct=Kt instanceof ru&&Kt.isSuggestion,ct||st++}if(!ct)return[void 0,void 0];let xt=st,Ot=!1;for(;xt<=vt&&!Ot;){const Kt=E.at(xt);Ot=!(Kt instanceof ru&&Kt.isSuggestion),Ot||xt++}return[st-1,xt-1]}new Q1;function ep(E){const z=ou(E.model).filter(it=>it.isSuggestion);if(z.length!==0){E.model.position=E.model.offsetOf(z[0].leftSibling);for(const it of z)it.parent.removeChild(it)}}function im(E,z){var it;const{model:st}=E;ep(E);for(const re of ou(st))re.isError=!1;if(!st.selectionIsCollapsed||E.options.popoverPolicy==="off"){su(E);return}const ct=[];let vt=st.at(st.position);for(;vt&&vt instanceof ru&&/^[a-zA-Z\*]$/.test(vt.value);)vt=vt.leftSibling;if(vt&&vt instanceof ru&&vt.value==="\\")for(ct.push(vt),vt=vt.rightSibling;vt&&vt instanceof ru&&/^[a-zA-Z\*]$/.test(vt.value);)ct.push(vt),vt=vt.rightSibling;const xt=ct.map(re=>re.value).join(""),Ot=In(E,xt);if(Ot.length===0){if(/^\\[a-zA-Z\*]+$/.test(xt))for(const re of ct)re.isError=!0;su(E);return}const Kt=(it=z==null?void 0:z.atIndex)!=null?it:0;E.suggestionIndex=Kt<0?Ot.length-1:Kt%Ot.length;const Zt=Ot[E.suggestionIndex];if(Zt!==xt){const re=ct[ct.length-1];re.parent.addChildrenAfter([...Zt.slice(xt.length-Zt.length)].map(Be=>new ru(Be,{isSuggestion:!0})),re),rp(E,{interactive:!0})}Xc(E,Ot)}function mg(E){const[z,it]=q1(E,{before:E.position});if(z===void 0||it===void 0)return!1;let st=!1;return E.getAtoms([z,it]).forEach(ct=>{ct.isSuggestion&&(ct.isSuggestion=!1,st=!0)}),st}function np(E,z="accept",it){var st,ct;su(E);const vt=$1(E.model);if(!vt)return!1;if(z==="accept-suggestion"||z==="accept-all"){const Zt=ou(E.model).filter(re=>re.isSuggestion);if(Zt.length!==0){for(const re of Zt)re.isSuggestion=!1;E.model.position=E.model.offsetOf(Zt[Zt.length-1])}if(z==="accept-suggestion")return Zt.length!==0}const Ot=ou(E.model).filter(Zt=>!Zt.isSuggestion).map(Zt=>Zt.value).join(""),Kt=vt.leftSibling;return vt.parent.removeChild(vt),E.model.position=E.model.offsetOf(Kt),E.switchMode((st=it==null?void 0:it.mode)!=null?st:"math"),z==="reject"||(ts.insert(E.model,Ot,{selectionMode:(ct=it==null?void 0:it.selectItem)!=null&&ct?"item":"placeholder",format:"latex",mode:"math"}),E.snapshot(),E.model.announce("replacement"),E.switchMode("math")),!0}function rm(E){var z;let it=document.getElementById(E);return it?it.dataset.refcount=Number(Number.parseInt((z=it.dataset.refcount)!=null?z:"0")+1).toString():(it=document.createElement("div"),it.setAttribute("aria-hidden","true"),it.dataset.refcount="1",it.id=E,document.body.append(it)),it}function gg(E){var z;const it=document.getElementById(E);if(!it)return;const st=Number.parseInt((z=it.getAttribute("data-refcount"))!=null?z:"0");st<=1?it.remove():it.dataset.refcount=Number(st-1).toString()}function Nv(E,z){const it=new Ws({from:E.context}),st=new Mr({mode:"math",type:"root",body:ll(z,{context:it})}),ct=_h(Sh(new Qr(st.render(it),{classes:"ML__base"}),it));return Kf(ct,{classes:"ML__latex"}).toMarkup()}function Xc(E,z){var it;if(z.length===0){su(E);return}let st="";for(const[vt,xt]of z.entries()){const Ot=xt,Kt=Nv(E,xt),Zt=Vy(E.keybindings,Ot).join("<br>");st+=`<li role="button" data-command="${Ot}" ${vt===E.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${Ot}</span><span class="ML__popover__command">${Kt}</span>`,Zt&&(st+=`<span class="ML__popover__keybinding">${Zt}</span>`),st+="</li>"}const ct=td(E,`<ul>${st}</ul>`);Tv()&&((it=ct.querySelector(".ML__popover__current"))==null||it.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var vt;ct&&!Tv()&&(ct.classList.add("is-visible"),vg(E),(vt=ct.querySelector(".ML__popover__current"))==null||vt.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function Tv(){const E=document.getElementById("mathlive-suggestion-popover");return E?E.classList.contains("is-visible"):!1}function vg(E,z){var it;if(!E.element||E.element.mathfield!==E||!Tv())return;if(((it=E.model.at(E.model.position))==null?void 0:it.type)!=="latex"){su(E);return}if(z!=null&&z.deferred){setTimeout(()=>vg(E),32);return}const st=Zc(E.field);if(!st)return;const ct=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,vt=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,xt=window.innerWidth-document.documentElement.clientWidth,Ot=window.innerHeight-document.documentElement.clientHeight,Kt=window.mathVirtualKeyboard.boundingRect.height,Zt=document.getElementById("mathlive-suggestion-popover");st.x+Zt.offsetWidth/2>vt-xt?Zt.style.left=`${vt-Zt.offsetWidth-xt}px`:st.x-Zt.offsetWidth/2<0?Zt.style.left="0":Zt.style.left=`${st.x-Zt.offsetWidth/2}px`;const re=st.y-st.height;ct-Ot-Kt-st.y<re?(Zt.classList.add("ML__popover--reverse-direction"),Zt.classList.remove("top-tip"),Zt.classList.add("bottom-tip"),Zt.style.top=`${st.y-st.height-Zt.offsetHeight-15}px`):(Zt.classList.remove("ML__popover--reverse-direction"),Zt.classList.add("top-tip"),Zt.classList.remove("bottom-tip"),Zt.style.top=`${st.y+15}px`)}function su(E){E.suggestionIndex=0;const z=document.getElementById("mathlive-suggestion-popover");z&&(z.classList.remove("is-visible"),z.innerHTML="")}function td(E,z){let it=document.getElementById("mathlive-suggestion-popover");return it||(it=rm("mathlive-suggestion-popover"),dc("suggestion-popover"),dc("core"),it.addEventListener("pointerdown",st=>st.preventDefault()),it.addEventListener("click",st=>{let ct=st.target;for(;ct&&!ct.dataset.command;)ct=ct.parentElement;ct&&(np(E,"reject"),ts.insert(E.model,ct.dataset.command,{selectionMode:"placeholder",format:"latex",mode:"math"}),E.dirty=!0,E.focus())})),it.innerHTML=window.MathfieldElement.createHTML(z),it}function Vu(){document.getElementById("mathlive-suggestion-popover")&&(gg("mathlive-suggestion-popover"),rt("suggestion-popover"),rt("core"))}function pa(){const E=String(new Error().stack).replace(/^Error.*\n/,"").split(`
|
|
|
`);if(E.length===0)return console.error(`Can't use relative paths to specify assets location because the sourcefile location could not be determined (unexpected stack trace format "${new Error().stack}").`),"";let z=E[1],it=z.match(/http.*\.ts[\?:]/);return it&&(z=E[2]),it=z.match(/(https?:.*):[0-9]+:[0-9]+/),it||(it=z.match(/at (.*(\.ts))[\?:]/),it||(it=z.match(/at (.*(\.mjs|\.js))[\?:]/))),it?it[1]:(console.error(E),console.error(`Can't use relative paths to specify assets location because the source file location could not be determined (unexpected location "${z}").`),"")}var a0=null,yg,Dv,l0=((Dv=(yg=globalThis==null?void 0:globalThis.document)==null?void 0:yg.currentScript)==null?void 0:Dv.src)||pa();function xg(E){return _m(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(E))return new URL(E).href;if(a0===null)try{const z=yield fetch(l0,{method:"HEAD"});z.status===200&&(a0=z.url)}catch(z){console.error(`Invalid URL "${E}" (relative to "${l0}")`)}return new URL(E,a0!=null?a0:l0).href})}function lo(E,z,it={}){return new FontFace(E,`url(${z}.woff2) format('woff2')`,it)}var au="not-loaded";function om(){return _m(this,null,function*(){return au="not-loaded",sm()})}function sm(){return _m(this,null,function*(){var E;if(au!=="not-loaded")return;if(au="loading",(E=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?E:!1){au="ready";return}if(document.body.classList.remove("ML__fonts-did-not-load"),"fonts"in document){const it=["KaTeX_Main","KaTeX_Math","KaTeX_AMS","KaTeX_Caligraphic","KaTeX_Fraktur","KaTeX_SansSerif","KaTeX_Script","KaTeX_Typewriter","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4"],st=Array.from(document.fonts).map(xt=>xt.family);if(it.every(xt=>st.includes(xt))){au="ready";return}if(!window.MathfieldElement.fontsDirectory){au="not-loaded";return}const ct=yield xg(window.MathfieldElement.fontsDirectory);if(!ct){document.body.classList.add("ML__fonts-did-not-load"),au="error";return}const vt=[["KaTeX_Main-Regular"],["KaTeX_Main-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_Main-Bold",{weight:"bold"}],["KaTeX_Main-Italic",{style:"italic"}],["KaTeX_Math-Italic",{style:"italic"}],["KaTeX_Math-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_AMS-Regular"],["KaTeX_Caligraphic-Regular"],["KaTeX_Caligraphic-Bold",{weight:"bold"}],["KaTeX_Fraktur-Regular"],["KaTeX_Fraktur-Bold",{weight:"bold"}],["KaTeX_SansSerif-Regular"],["KaTeX_SansSerif-Bold",{weight:"bold"}],["KaTeX_SansSerif-Italic",{style:"italic"}],["KaTeX_Script-Regular"],["KaTeX_Typewriter-Regular"],["KaTeX_Size1-Regular"],["KaTeX_Size2-Regular"],["KaTeX_Size3-Regular"],["KaTeX_Size4-Regular"]].map(xt=>lo(xt[0].replace(/-[a-zA-Z]+$/,""),`${ct}/${xt[0]}`,xt[1]));try{(yield Promise.all(vt.map(Ot=>{try{return Ot.load()}catch(Kt){}}))).forEach(Ot=>document.fonts.add(Ot)),au="ready";return}catch(xt){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${ct}"`,{cause:xt}),document.body.classList.add("ML__fonts-did-not-load")}au="error"}})}function Ov(E){let z=0;for(let it=0;it<E.length;it++)z=z*31+E.charCodeAt(it),z=z|0;return Math.abs(z)}function nl(E,z){E&&(E.dirty||(E.dirty=!0,requestAnimationFrame(()=>{Ua(E)&&E.dirty&&(E.atomBoundsCache=new Map,rp(E,z),E.atomBoundsCache=void 0)})))}function ip(E,z){var it;z=z!=null?z:{};const st=new Ws({from:Nt(jt({},E.context),{atomIdsSettings:{seed:z.forHighlighting?Ov(Mr.serialize([E.model.root],{expandMacro:!1,defaultMode:E.options.defaultMode})):"random",groupNumbers:(it=z.forHighlighting)!=null?it:!1},letterShapeStyle:E.options.letterShapeStyle}),mathstyle:E.options.defaultMode==="inline-math"?"textstyle":"displaystyle"}),ct=E.model.root.render(st);return Kf(Sh(ct,st),{classes:E.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function Zy(E,z){const{model:it}=E;it.root.caret=void 0,it.root.isSelected=!1,it.root.containsCaret=!0;for(const ct of it.atoms)ct.caret=void 0,ct.isSelected=!1,ct.containsCaret=!1;if(it.selectionIsCollapsed){const ct=it.at(it.position);ct.caret=E.model.mode;let vt=ct.parent;for(;vt;)vt.containsCaret=!0,vt=vt.parent}else{const ct=it.getAtoms(it.selection,{includeChildren:!0});for(const vt of ct)vt.isSelected=!0}return ip(E,z).toMarkup()}function rp(E,z){if(!Ua(E))return;z!=null||(z={});const it=E.element.querySelector("[part=virtual-keyboard-toggle]");it&&(it.style.display=E.hasEditableContent?"":"none");const st=E.field;if(!st)return;const ct=E.isSelectionEditable&&E.hasFocus(),vt=st.classList.contains("ML__focused");vt&&!ct?st.classList.remove("ML__focused"):!vt&&ct&&st.classList.add("ML__focused");let xt=Zy(E,z);const Ot=E.element.querySelector("[part=menu-toggle]");if(Ot&&(E.model.atoms.length<=1||E.disabled||E.readOnly&&!E.hasEditableContent||E.userSelect==="none"?Ot.style.display="none":Ot.style.display=""),E.model.atoms.length<=1){const Kt=E.options.contentPlaceholder;Kt&&(xt+=`<span part=placeholder class="ML__content-placeholder">${rl(Kt)}</span>`)}st.innerHTML=window.MathfieldElement.createHTML(xt),pc(E,z.interactive),E.dirty=!1}function pc(E,z){const it=E.field;if(!it)return;for(const Ot of it.querySelectorAll(".ML__selection, .ML__contains-highlight"))Ot.remove();!(z!=null&&z)&&au!=="error"&&au!=="ready"&&setTimeout(()=>{au==="ready"?pc(E):setTimeout(()=>pc(E),128)},32);const st=E.model,ct=it.offsetWidth,vt=it.getBoundingClientRect().width;let xt=Math.floor(vt)/ct;if(xt=isNaN(xt)?1:xt,st.selectionIsCollapsed){vg(E,{deferred:!0});let Ot=st.at(st.position);for(;Ot&&Ot.type!=="prompt"&&!(Ot.containsCaret&&Ot.displayContainsHighlight);)Ot=Ot.parent;if(Ot!=null&&Ot.containsCaret&&Ot.displayContainsHighlight){const Kt=Z0(E,af(E,Ot),xt);if(Kt){Kt.left/=xt,Kt.right/=xt,Kt.top/=xt,Kt.bottom/=xt;const Zt=document.createElement("div");Zt.classList.add("ML__contains-highlight"),Zt.style.position="absolute",Zt.style.left=`${Kt.left+1}px`,Zt.style.top=`${Math.ceil(Kt.top)}px`,Zt.style.width=`${Math.ceil(Kt.right-Kt.left)}px`,Zt.style.height=`${Math.ceil(Kt.bottom-Kt.top)}px`,it.insertBefore(Zt,it.childNodes[0])}}return}for(const Ot of Gy(Y0(E,{excludeAtomsWithBackground:!0}))){Ot.left/=xt,Ot.right/=xt,Ot.top/=xt,Ot.bottom/=xt;const Kt=document.createElement("div");Kt.classList.add("ML__selection"),Kt.style.position="absolute",Kt.style.left=`${Ot.left}px`,Kt.style.top=`${Ot.top}px`,Kt.style.width=`${Math.ceil(Ot.right-Ot.left)}px`,Kt.style.height=`${Math.ceil(Ot.bottom-Ot.top-1)}px`,it.insertBefore(Kt,it.childNodes[0])}}function Gy(E){let z=[];for(const it of E){let st=!1;for(const ct of z)if(it.left===ct.left&&it.right===ct.right&&it.top===ct.top&&it.bottom===ct.bottom){st=!0;break}st||z.push(it)}E=z,z=[];for(const it of E){let st=0;for(const ct of E)if(it.left>=ct.left&&it.right<=ct.right&&it.top>=ct.top&&it.bottom<=ct.bottom&&(st+=1,st>1))break;st===1&&z.push(it)}return z}var Bv=3,as;function hl(E,z){z=jt({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},z!=null?z:{}),as||(as={});for(const it of Object.keys(E))console.assert(!as[it],"Selector already defined: ",it),as[it]=Nt(jt({},z),{fn:E[it]})}function Iv(E){let z;if(Array.isArray(E)){if(E[0]==="performWithFeedback")return Iv(E[1]);z=E[0]}else z=E;return z=z.replace(/-\w/g,it=>it[1].toUpperCase()),as[z]}function Ad(E){var z;return(z=Iv(E))==null?void 0:z.target}function Yy(E,z){var it;if(!z)return!1;let st,ct=[],vt=!1,xt=!1;Yt(z)?(st=z[0],ct=z.slice(1)):st=z,st=st.replace(/-\w/g,Zt=>Zt[1].toUpperCase());const Ot=as[st],Kt=Ot==null?void 0:Ot.target;if(Kt==="model"){if(!E.isSelectionEditable&&(Ot!=null&&Ot.changeContent))return E.model.announce("plonk"),!1;/^(delete|add)/.test(st)&&(st!=="deleteBackward"&&E.flushInlineShortcutBuffer(),E.snapshot(st)),/^complete/.test(st)||ep(E),as[st].fn(E.model,...ct),im(E),xt=!0,vt=!0}else if(Kt==="virtual-keyboard")xt=(it=window.mathVirtualKeyboard.executeCommand(z))!=null?it:!1,vt=!0;else if(as[st]){if(!E.isSelectionEditable&&(Ot!=null&&Ot.changeContent))return E.model.announce("plonk"),!1;/^(undo|redo)/.test(st)&&E.flushInlineShortcutBuffer(),xt=as[st].fn(E,...ct),vt=!0}else throw new Error(`Unknown command "${st}"`);return Kt!=="virtual-keyboard"&&(!E.model.selectionIsCollapsed||Ot!=null&&Ot.changeSelection&&z!=="deleteBackward")&&(E.flushInlineShortcutBuffer(),Ot!=null&&Ot.changeContent||E.stopCoalescingUndo(),E.defaultStyle={}),xt&&nl(E),vt}function am(E,z){var it;if(!E)return!1;E.focus(),Dm.keypressVibration&&he()&&navigator.vibrate(Bv);const st=Iv(z);window.MathfieldElement.playSound((it=st==null?void 0:st.audioFeedback)!=null?it:"keypress");const ct=E.executeCommand(z);return E.scrollIntoView(),ct}hl({performWithFeedback:(E,z)=>am(E,z)});function mc(E){return im(E,{atIndex:E.suggestionIndex+1}),!1}function bg(E){return im(E,{atIndex:E.suggestionIndex-1}),!1}hl({complete:np},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),hl({nextSuggestion:mc,previousSuggestion:bg},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var wg="mathlive#virtual-keyboard-message";function Fv(E){var z;return E.type!=="message"?!1:((z=E.data)==null?void 0:z.type)===wg}var Rv=class gw{constructor(){this.targetOrigin=window.origin,this.originValidator="none",this._boundingRect=new DOMRect(0,0,0,0),this._isShifted=!1,window.addEventListener("message",this),this.sendMessage("proxy-created"),this.listeners={}}static get singleton(){return this._singleton||(this._singleton=new gw),this._singleton}set alphabeticLayout(z){this.sendMessage("update-setting",{alphabeticLayout:z})}set layouts(z){this.sendMessage("update-setting",{layouts:z})}get normalizedLayouts(){return[]}set editToolbar(z){this.sendMessage("update-setting",{editToolbar:z})}set actionKeycap(z){this.sendMessage("update-setting",{actionKeycap:z})}set shiftKeycap(z){this.sendMessage("update-setting",{shiftKeycap:z})}set backspaceKeycap(z){this.sendMessage("update-setting",{backspaceKeycap:z})}set tabKeycap(z){this.sendMessage("update-setting",{tabKeycap:z})}set container(z){throw new Error("Container inside an iframe cannot be changed")}show(z){this.sendMessage("show",z)}hide(z){this.sendMessage("hide",z)}get isShifted(){return this._isShifted}get visible(){return this._boundingRect.height>0}set visible(z){z?this.show():this.hide()}get boundingRect(){return this._boundingRect}executeCommand(z){return this.sendMessage("execute-command",{command:z}),!0}updateToolbar(z){this.sendMessage("update-toolbar",z)}update(z){this.sendMessage("update-setting",z)}connect(){this.sendMessage("connect")}disconnect(){this.sendMessage("disconnect")}addEventListener(z,it,st){this.listeners[z]||(this.listeners[z]=new Set),this.listeners[z].has(it)||this.listeners[z].add(it)}dispatchEvent(z){return!this.listeners[z.type]||this.listeners[z.type].size===0?!0:(this.listeners[z.type].forEach(it=>{typeof it=="function"?it(z):it==null||it.handleEvent(z)}),!z.defaultPrevented)}removeEventListener(z,it,st){this.listeners[z]&&this.listeners[z].delete(it)}handleEvent(z){if(Fv(z)){if(!bh(z.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${z.origin}) cannot be handled`,"SecurityError");this.handleMessage(z.data)}}handleMessage(z){const{action:it}=z;if(it==="execute-command"){const{command:st}=z;Ad(st)==="virtual-keyboard"&&this.executeCommand(st);return}if(it==="synchronize-proxy"){this._boundingRect=z.boundingRect,this._isShifted=z.isShifted;return}if(it==="geometry-changed"){this._boundingRect=z.boundingRect,this.dispatchEvent(new Event("geometrychange"));return}}sendMessage(z,it={}){if(!window.top)throw new DOMException("A frame does not have access to the top window and can\u2018t communicate with the keyboard. Review virtualKeyboardTargetOrigin and originValidator on mathfields embedded in an iframe","SecurityError");window.top.postMessage(jt({type:wg,action:z},it),this.targetOrigin)}},Sg={numeric:{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",rows:[[{latex:"x",shift:"y",variants:["y","z","t","r","x^2","x^n","x^{#?}","x_n","x_i","x_{#?}",{latex:"f(#?)",class:"small"},{latex:"g(#?)",class:"small"}]},{latex:"n",shift:"a",variants:["i","j","p","k","a","u"]},"[separator-5]","[7]","[8]","[9]","[/]","[separator-5]",{latex:"\\exponentialE",shift:"\\ln",variants:["\\exp","\\times 10^{#?}","\\ln","\\log_{10}","\\log"]},{latex:"\\imaginaryI",variants:["\\Re","\\Im","\\imaginaryJ","\\Vert #0 \\Vert"]},{latex:"\\pi",shift:"\\sin",variants:["\\prod",{latex:"\\theta",aside:"theta"},{latex:"\\rho",aside:"rho"},{latex:"\\tau",aside:"tau"},"\\sin","\\cos","\\tan"]}],[{label:"<",latex:"<",class:"hide-shift",shift:{latex:"\\le",label:"\u2264"}},{label:">",latex:">",class:"hide-shift",shift:{latex:"\\ge",label:"\u2265"}},"[separator-5]","[4]","[5]","[6]","[*]","[separator-5]",{class:"hide-shift",latex:"#@^2}",shift:"#@^{\\prime}}"},{latex:"#@^{#0}}",class:"hide-shift",shift:"#@_{#?}"},{class:"hide-shift",latex:"\\sqrt{#0}",shift:{latex:"\\sqrt[#0]{#?}}"}}],["[(]","[)]","[separator-5]","[1]","[2]","[3]","[-]","[separator-5]",{latex:"\\int^{\\infty}_{0}\\!#?\\,\\mathrm{d}x",class:"small hide-shift",shift:"\\int",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{class:"hide-shift",latex:"\\forall",shift:"\\exists"},{label:"[backspace]",width:1}],[{label:"[shift]",width:2},"[separator-5]","[0]","[.]","[=]","[+]","[separator-5]","[left]","[right]",{label:"[action]",width:1}]]},greek:{label:"αβγ",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.greek",rows:[[{label:"<i>φ</i>",class:"MLK__tex hide-shift",insert:"\\varphi",aside:"phi var.",shift:"\\Phi"},{label:"<i>ς</i>",class:"MLK__tex hide-shift",insert:"\\varsigma",aside:"sigma var.",shift:"\\Sigma"},{label:"<i>ϵ</i>",class:"MLK__tex hide-shift",insert:"\\epsilon",aside:"espilon",shift:'\\char"0190'},{label:"<i>ρ</i>",class:"MLK__tex hide-shift",insert:"\\rho",aside:"rho",shift:'\\char"3A1'},{label:"<i>τ</i>",class:"MLK__tex hide-shift",insert:"\\tau",aside:"tau",shift:'\\char"3A4'},{label:"<i>υ</i>",class:"MLK__tex hide-shift",insert:"\\upsilon",aside:"upsilon",shift:"\\Upsilon"},{label:"<i>θ</i>",class:"MLK__tex hide-shift",insert:"\\theta",aside:"theta",shift:"\\Theta"},{label:"<i>ι</i>",class:"MLK__tex hide-shift",insert:"\\iota",aside:"iota",shift:'\\char"399'},{label:"<i>ο</i>",class:"MLK__tex hide-shift",insert:"\\omicron",aside:"omicron",shift:'\\char"39F'},{label:"<i>π</i>",class:"MLK__tex hide-shift",insert:"\\pi",aside:"pi",shift:"\\Pi"}],["[separator-5]",{label:"<i>α</i>",class:"MLK__tex hide-shift",insert:"\\alpha",aside:"alpha",shift:'\\char"391'},{label:"<i>σ</i>",class:"MLK__tex hide-shift",insert:"\\sigma",aside:"sigma",shift:"\\Sigma"},{label:"<i>δ</i>",class:"MLK__tex hide-shift",insert:"\\delta",aside:"delta",shift:"\\Delta"},{latex:"\\phi",class:"MLK__tex hide-shift",insert:"\\phi",aside:"phi",shift:"\\Phi"},{label:"<i>γ</i>",class:"MLK__tex hide-shift",insert:"\\gamma",aside:"gamma",shift:"\\Gamma"},{label:"<i>η</i>",class:"MLK__tex hide-shift",insert:"\\eta",aside:"eta",shift:'\\char"397'},{label:"<i>ξ</i>",class:"MLK__tex hide-shift",insert:"\\xi",aside:"xi",shift:"\\Xi"},{label:"<i>κ</i>",class:"MLK__tex hide-shift",insert:"\\kappa",aside:"kappa",shift:"\\Kappa"},{label:"<i>λ</i>",class:"MLK__tex hide-shift",insert:"\\lambda",aside:"lambda",shift:"\\Lambda"},"[separator-5]"],["[shift]",{label:"<i>ζ</i>",class:"MLK__tex hide-shift",insert:"\\zeta",aside:"zeta",shift:'\\char"396'},{label:"<i>χ</i>",class:"MLK__tex hide-shift",insert:"\\chi",aside:"chi",shift:'\\char"3A7'},{label:"<i>ψ</i>",class:"MLK__tex hide-shift",insert:"\\psi",aside:"zeta",shift:"\\Psi"},{label:"<i>ω</i>",class:"MLK__tex hide-shift",insert:"\\omega",aside:"omega",shift:"\\Omega"},{label:"<i>β</i>",class:"MLK__tex hide-shift",insert:"\\beta",aside:"beta",shift:'\\char"392'},{label:"<i>ν</i>",class:"MLK__tex hide-shift",insert:"\\nu",aside:"nu",shift:'\\char"39D'},{label:"<i>μ</i>",class:"MLK__tex hide-shift",insert:"\\mu",aside:"mu",shift:'\\char"39C'},"[backspace]"],["[separator]",{label:"<i>ε</i>",class:"MLK__tex",insert:"\\varepsilon",aside:"espilon var."},{label:"<i>ϑ</i>",class:"MLK__tex",insert:"\\vartheta",aside:"theta var."},{label:"<i>ϰ</i>",class:"MLK__tex",insert:"\\varkappa",aside:"kappa var."},{label:"<i>ϖ</i>",class:"MLK__tex",insert:"\\varpi",aside:"pi var."},{label:"<i>ϱ</i>",class:"MLK__tex",insert:"\\varrho",aside:"rho var."},"[left]","[right]","[action]"]]},symbols:{label:"∞\u2260\u2208",labelClass:"MLK__tex",tooltip:"keyboard.tooltip.symbols",rows:[[{latex:"\\sin",shift:"\\sin^{-1}",variants:[{class:"small",latex:"\\sinh"},{class:"small",latex:"\\sin^{-1}"},{class:"small",latex:"\\arsinh"}]},"\\ln",{latex:"\\mathrm{abs}",insert:"\\mathrm{abs}\\left(#0\\right)"},{latex:"\\rarr",shift:"\\rArr",variants:[{latex:"\\implies",aside:"implies"},{latex:"\\to",aside:"to"},"\\dashv",{latex:"\\roundimplies",aside:"round implies"}]},{latex:"\\exists",variants:["\\nexists"],shift:"\\nexists"},{latex:"\\in",shift:"\\notin",variants:["\\notin","\\owns"]},"\\cup",{latex:"\\overrightarrow{#@}",shift:"\\overleftarrow{#@}",variants:["\\overleftarrow{#@}","\\bar{#@}","\\vec{#@}","\\hat{#@}","\\check{#@}","\\dot{#@}","\\ddot{#@}","\\mathring{#@}","\\breve{#@}","\\acute{#@}","\\tilde{#@}","\\grave{#@}"]},{class:"small",latex:"\\lim_{#?}",shift:"\\lim_{x\\to\\infty}",variants:[{class:"small",latex:"\\liminf_{#?}"},{class:"small",latex:"\\limsup_{#?}"}]},"\\exponentialE"],[{latex:"\\cos",shift:"\\cos^{-1}",variants:[{class:"small",latex:"\\cosh"},{class:"small",latex:"\\cos^{-1}"},{class:"small",latex:"\\arcosh"}]},{latex:"\\log",shift:"\\log_{10}",variants:["\\log_{#0}","\\log_{10}"]},"\\left\\vert#0\\right\\vert",{latex:"\\larr",shift:"\\lArr",variants:[{latex:"\\impliedby",aside:"implied by"},{latex:"\\gets",aside:"gets"},"\\lArr","\\vdash",{latex:"\\models",aside:"models"}]},{latex:"\\forall",shift:"\\lnot",variants:[{latex:"\\land",aside:"and"},{latex:"\\lor",aside:"or"},{latex:"\\oplus",aside:"xor"},{latex:"\\lnot",aside:"not"},{latex:"\\downarrow",aside:"nor"},{latex:"\\uparrow",aside:"nand"},{latex:"\\curlywedge",aside:"nor"},{latex:"\\bar\\curlywedge",aside:"nand"}]},{latex:"\\ni",shift:"\\not\\owns"},"\\cap",{latex:"\\overline{#@}",shift:"\\underline{#@}",variants:["\\overbrace{#@}","\\overlinesegment{#@}","\\overleftrightarrow{#@}","\\overrightarrow{#@}","\\overleftarrow{#@}","\\overgroup{#@}","\\underbrace{#@}","\\underlinesegment{#@}","\\underleftrightarrow{#@}","\\underrightarrow{#@}","\\underleftarrow{#@}","\\undergroup{#@}"]},{class:"hide-shift",latex:"\\int",shift:"\\iint",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\smallint",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\intop","\\iiint","\\oiint","\\oiiint","\\intclockwise","\\varointclockwise","\\ointctrclockwise","\\intctrclockwise"]},{latex:"\\pi",shift:"\\tau",variants:["\\tau"]}],[{latex:"\\tan",shift:"\\tan^{-1}",variants:[{class:"small",latex:"\\tanh"},{class:"small",latex:"\\tan^{-1}"},{class:"small",latex:"\\artanh"},{class:"small",latex:"\\arctan"},{class:"small",latex:"\\arctg"},{class:"small",latex:"\\tg"}]},{latex:"\\exp",insert:"\\exp\\left(#0\\right)",variants:["\\exponentialE^{#0}"]},"\\left\\Vert#0\\right\\Vert",{latex:"\\lrArr",shift:"\\leftrightarrow",variants:[{latex:"\\iff",aside:"if and only if"},"\\leftrightarrow","\\leftrightarrows","\\Leftrightarrow",{latex:"^\\biconditional",aside:"biconditional"}]},{latex:"\\vert",shift:"!"},{latex:"#@^{\\complement}",aside:"complement",variants:[{latex:"\\setminus",aside:"set minus"},{latex:"\\smallsetminus",aside:"small set minus"}]},{latex:"\\subset",shift:"\\subseteq",variants:["\\subset","\\subseteq","\\subsetneq","\\varsubsetneq","\\subsetneqq","\\nsubset","\\nsubseteq","\\supset","\\supseteq","\\supsetneq","\\supsetneqq","\\nsupset","\\nsupseteq"]},{latex:"#@^{\\prime}",shift:"#@^{\\doubleprime}",variants:["#@^{\\doubleprime}","#@\\degree"]},{latex:"\\mathrm{d}",shift:"\\partial",variants:["\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{latex:"\\infty",variants:["\\aleph_0","\\aleph_1","\\omega","\\mathfrak{m}"]}],[{label:"[shift]",width:2},{class:"box",latex:",",shift:";",variants:[";","?"]},{class:"box",latex:"\\colon",shift:"\\Colon",variants:[{latex:"\\Colon",aside:"such that",class:"box"},{latex:":",aside:"ratio",class:"box"},{latex:"\\vdots",aside:"",class:"box"},{latex:"\\ddots",aside:"",class:"box"},{latex:"\\ldotp",aside:"low dot",class:"box"},{latex:"\\cdotp",aside:"center dot",class:"box"},{latex:"\\ldots",aside:"low ellipsis",class:"box"},{latex:"\\cdots",aside:"center ellipsis",class:"box"},{latex:"\\therefore",aside:"therefore",class:"box"},{latex:"\\because",aside:"because",class:"box"}]},{class:"box",latex:"\\cdot",aside:"centered dot",shift:"\\ast",variants:["\\circ","\\bigcirc","\\bullet","\\odot","\\oslash","\\circledcirc","\\ast","\\star","\\times","\\doteq","\\doteqdot"]},"[separator]","[left]","[right]",{label:"[backspace]",width:1,class:"action hide-shift"},{label:"[action]",width:1}]]},compact:{label:"compact",rows:[["[+]","[-]","[*]","[/]","[=]","[.]","[(]","[)]","\\sqrt{#0}","#@^{#?}"],["[1]","[2]","[3]","[4]","[5]","[6]","[7]","[8]","[9]","[0]"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]},minimalist:{label:"minimalist",layers:[{style:`
|
|
|
.minimalist-backdrop {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
}
|
|
|
.minimalist-container {
|
|
|
--keycap-height: 40px;
|
|
|
--keycap-max-width: 53px;
|
|
|
--keycap-small-font-size: 12px;
|
|
|
background: var(--keyboard-background);
|
|
|
padding: 20px;
|
|
|
border-top-left-radius: 8px;
|
|
|
border-top-right-radius: 8px;
|
|
|
border: 1px solid var(--keyboard-border);
|
|
|
box-shadow: 0 0 32px rgb(0 0 0 / 30%);
|
|
|
}
|
|
|
`,backdrop:"minimalist-backdrop",container:"minimalist-container",rows:[["+","-","\\times",{latex:"\\frac{#@}{#0}",class:"small"},"=","[.]","(",")",{latex:"\\sqrt{#0}",class:"small"},{latex:"#@^{#?}",class:"small"}],["1","2","3","4","5","6","7","8","9","0"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]}]},"numeric-only":{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",id:"numeric-only",rows:[["7","8","9","[separator]",{label:"[backspace]",width:2}],["4","5","6","[separator]","[separator]","[separator]"],["1","2","3","[separator]","[separator]","[separator]"],["0",{label:"[.]",variants:[]},"-","[separator]","[left]","[right]"]]}},lm={0:["\\varnothing","\\infty"],1:["\\frac{1}{#@}","#@^{-1}","\\times 10^{#?}","\\phi","\\imaginaryI"],2:["\\frac{1}{2}","#@^2","\\sqrt2","\\exponentialE"],3:["\\frac{1}{3}","#@^3","\\sqrt3","\\pi"],4:["\\frac{1}{4}","#@^4"],5:["\\frac{1}{5}","#@^5","\\sqrt5"],6:["\\frac{1}{6}","#@^6"],7:["\\frac{1}{7}","#@^7"],8:["\\frac{1}{8}","#@^8"],9:["\\frac{1}{9}","#@^9"],".":[".",",",";","\\colon"],",":["{,}",".",";","\\colon"],a:[{latex:"\\aleph",aside:"aleph"},{latex:"\\forall",aside:"for all"},"\xE0","\xE1","\xE2","\xE4","\xE6"],b:[{latex:"\\beth",aside:"beth"}],c:[{latex:"\\C",aside:"set of complex numbers"},"\xE7"],d:[{latex:"\\daleth",aside:"daleth"}],e:[{latex:"\\exponentialE",aside:"exponential e"},{latex:"\\exists",aside:"there is"},{latex:"\\nexists",aside:"there isn\u2019t"},"\xE8","\xE9","\xEA","\xEB"],g:[{latex:"\\gimel",aside:"gimel"}],h:[{latex:"\\hbar",aside:"h bar"},{latex:"\\hslash",aside:"h slash"}],i:[{latex:"\\imaginaryI",aside:"imaginary i"},"\xEC","\xED","\xEE","\xEF"],j:[{latex:"\\imaginaryJ",aside:"imaginary j"}],l:[{latex:"\\ell",aside:"ell"}],n:[{latex:"\\mathbb{N}",aside:"set of natural numbers"},"\xF1"],o:["\xF8","\u0153","\xF2","\xF3","\xF4","\xF6","\u0153"],p:[{latex:"\\mathbb{P}",aside:"set of primes"}],q:[{latex:"\\mathbb{Q}",aside:"set of rational numbers"}],r:[{latex:"\\mathbb{R}",aside:"set of real numbers"}],u:["\xF9","\xFA","\xFB","\xFC"],z:[{latex:"\\mathbb{Z}",aside:"set of integers"}],y:["\xFD","\xFF"],space:[{latex:'\\char"203A\\!\\char"2039',insert:"\\!",aside:"negative thin space<br>\u207B\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\,\\char"2039',insert:"\\,",aside:"thin space<br>\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\:\\char"2039',insert:"\\:",aside:"medium space<br>\u2074\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\;\\char"2039',insert:"\\;",aside:"thick space<br>\u2075\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\ \\char"2039',insert:"\\ ",aside:"\u2153 em"},{latex:'\\char"203A\\enspace\\char"2039',insert:"\\enspace",aside:"\xBD em"},{latex:'\\char"203A\\quad\\char"2039',insert:"\\quad",aside:"1 em"},{latex:'\\char"203A\\qquad\\char"2039',insert:"\\qquad",aside:"2 em"}]},um;function zv(E,z){var it,st,ct;const vt=sp.singleton;if(!vt)return;const xt=gc(E),Ot=(st=(it=vt.getKeycap(xt==null?void 0:xt.id))==null?void 0:it.variants)!=null?st:"";if(typeof Ot=="string"&&!Cg(Ot)||Array.isArray(Ot)&&Ot.length===0){z==null||z();return}const Kt={};let Zt="";for(const hr of Mg(Ot)){const Gr=Qy(hr),$i=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);Kt[$i]=Gr;const[Nr,eo]=c0(Gr);Zt+=`<div id=${$i} class="item ${eo}">${Nr}</div>`}const re=document.createElement("div");re.setAttribute("aria-hidden","true"),re.className="MLK__variant-panel",re.style.height="auto";const Be=Object.keys(Kt).length;let ln=5;Be===1?ln=1:Be===2||Be===4?ln=2:Be===3||Be===5||Be===6?ln=3:Be>=7&&Be<14&&(ln=4),re.style.width=`calc(var(--variant-keycap-length) * ${ln} + 12px)`,re.innerHTML=Dm.createHTML(Zt),qh.open({root:(ct=vt==null?void 0:vt.container)==null?void 0:ct.querySelector(".ML__keyboard"),child:re}),um=new AbortController;const{signal:Fn}=um,ei=E==null?void 0:E.getBoundingClientRect();if(ei){ei.top-re.clientHeight<0&&(re.style.width="auto",Be<=6?re.style.height="56px":Be<=12?re.style.height="108px":Be<=18?re.style.height="205px":re.classList.add("compact"));const hr=Math.max(0,Math.min(window.innerWidth-re.offsetWidth,(ei.left+ei.right-re.offsetWidth)/2)),Gr=ei.top-re.clientHeight+5;re.style.transform=`translate(${hr}px, ${Gr}px)`,re.classList.add("is-visible"),requestAnimationFrame(()=>{re.addEventListener("pointerup",$i=>{const Nr=gc($i.target);!(Nr!=null&&Nr.id)||!Kt[Nr.id]||(op(Kt[Nr.id]),cm(),z==null||z(),$i.preventDefault())},{capture:!0,passive:!1,signal:Fn}),re.addEventListener("pointerenter",$i=>{const Nr=gc($i.target);!(Nr!=null&&Nr.id)||!Kt[Nr.id]||Nr.classList.add("is-active")},{capture:!0,signal:Fn}),re.addEventListener("pointerleave",$i=>{const Nr=gc($i.target);!(Nr!=null&&Nr.id)||!Kt[Nr.id]||Nr.classList.remove("is-active")},{capture:!0,signal:Fn}),window.addEventListener("pointercancel",()=>{cm(),z==null||z()},{signal:Fn}),window.addEventListener("pointerup",()=>{cm(),z==null||z()},{signal:Fn})})}}function cm(){um==null||um.abort(),um=null,qh.state==="open"&&qh.close()}function Xy(E){if(E==="foreground-color"){const z=[];for(const it of Object.keys(te))z.push({class:"swatch-button",label:'<span style="border: 3px solid '+te[it]+'"></span>',command:["applyStyle",{color:it}]});return z}if(E==="background-color"){const z=[];for(const it of Object.keys(Qt))z.push({class:"swatch-button",label:'<span style="background:'+Qt[it]+'"></span>',command:["applyStyle",{backgroundColor:it}]});return z}}function Cg(E){return lm[E]!==void 0}function Mg(E){var z;return typeof E!="string"?E:(lm[E]||(lm[E]=(z=Xy(E))!=null?z:[]),lm[E])}function tx(E){return typeof E=="string"?E:Object.entries(E).map(([z,it])=>`${z}:${it} !important`).join(";")}function Rb(E){return Object.keys(E).map(z=>`${z} {${tx(E[z])}}`).join("")}function u0(E){if(!E)return"";const z=new Ws,it=new Mr({mode:"math",type:"root",body:ll(E,{context:z,args:ct=>ct==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),st=_h(Sh(new Qr(it.render(z),{classes:"ML__base"}),z));return Kf(st,{classes:"ML__latex"}).toMarkup()}function hm(E){var z;if(Array.isArray(E))return E.map(st=>hm(st)).flat();const it=typeof E=="string"?{markup:E}:E;return"rows"in it&&Array.isArray(it.rows)&&(it.rows=it.rows.map(st=>st.map(ct=>Qy(ct)))),(z=it.id)!=null||(it.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36)),[it]}function jv(){var E,z;let st=window.mathVirtualKeyboard.alphabeticLayout;if(st==="auto"){const Ot=hf();Ot&&(st=Ot.virtualLayout),(!st||st==="auto")&&(st=(E={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[pe.locale.slice(0,2)])!=null?E:"qwerty")}const ct={qwerty:["qwertyuiop"," asdfghjkl ","^zxcvbnm~"],azerty:["azertyuiop","qsdfghjklm","^ wxcvbn ~"],qwertz:["qwertzuiop"," asdfghjkl ","^yxcvbnm~"],dvorak:["^ pyfgcrl ","aoeuidhtns","qjkxbmwvz~"],colemak:[" qwfpgjluy ","arstdhneio","^zxcvbkm~"]},vt=(z=ct[st])!=null?z:ct.qwerty,xt=st==="azerty"?[[{label:"1",variants:"1"},{label:"2",shift:{latex:"\xE9"},variants:"2"},{label:"3",shift:{latex:"\xF9"},variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{label:"(",latex:"("},variants:"5"},{label:"6",shift:{label:")",latex:")"},variants:"6"},{label:"7",shift:{latex:"\xE8"},variants:"7"},{label:"8",shift:{latex:"\xEA"},variants:"8"},{label:"9",shift:{latex:"\xE7"},variants:"9"},{label:"0",shift:{latex:"\xE0"},variants:"0"}]]:[[{label:"1",variants:"1"},{label:"2",variants:"2"},{label:"3",variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{latex:"\\frac{#@}{#?}"},variants:"5"},{label:"6",shift:{latex:"#@^#?"},variants:"6"},{label:"7",variants:"7"},{label:"8",shift:{latex:"\\times"},variants:"8"},{label:"9",shift:{label:"(",latex:"("},variants:"9"},{label:"0",shift:{label:")",latex:")"},variants:"0"}]];for(const Ot of vt){const Kt=[];for(const Zt of Ot)/[a-z]/.test(Zt)?Kt.push({label:Zt,class:"hide-shift",shift:{label:Zt.toUpperCase()},variants:Cg(Zt)?Zt:void 0}):Zt==="~"?st!=="dvorak"?Kt.push("[backspace]"):Kt.push({label:"[backspace]",width:1}):Zt==="^"?Kt.push("[shift]"):Zt===" "&&Kt.push("[separator-5]");xt.push(Kt)}return xt.push(["[-]","[+]","[=]",{label:" ",width:1.5},{label:",",shift:";",variants:".",class:"hide-shift"},"[.]","[left]","[right]",{label:"[action]",width:1.5}]),{label:"abc",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.alphabetic",layers:hm({rows:xt})}}function Kv(E){if(E==="alphabetic")return jv();if(typeof E=="string")return console.assert(Sg[E]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${E}"`),Kv(Sg[E]);let z;if("rows"in E&&Array.isArray(E.rows)){console.assert(!("layers"in E||"markup"in E),'MathLive 0.98.5: when providing a "rows" property, "layers" and "markup" are ignored');const ct=E,{rows:vt}=ct,xt=De(ct,["rows"]);z=Nt(jt({},xt),{layers:hm({rows:E.rows})})}else if("markup"in E&&typeof E.markup=="string"){const ct=E,{markup:vt}=ct,xt=De(ct,["markup"]);z=Nt(jt({},xt),{layers:hm(E.markup)})}else z=jt({},E),"layers"in E?z.layers=hm(E.layers):console.error('MathLive 0.98.5: provide either a "rows", "markup" or "layers" property');let it=!1,st=!1;for(const ct of z.layers)if(ct.rows)for(const vt of ct.rows.flat()){ff(vt)&&(it=!0);const xt=vt.command;typeof xt=="string"&&["undo","redo","cut","copy","paste"].includes(xt)&&(st=!0)}return(!("displayShiftedKeycaps"in E)||E.displayShiftedKeycaps===void 0)&&(z.displayShiftedKeycaps=it),(!("displayEditToolbar"in E)||E.displayEditToolbar===void 0)&&(z.displayEditToolbar=!st),z}function Eg(E,z){var it,st;let ct='<div class="left">';if(E.normalizedLayouts.length>1)for(const[vt,xt]of E.normalizedLayouts.entries()){const Ot=xt,Kt=[vt===z?"selected":"layer-switch"];Ot.tooltip&&Kt.push("MLK__tooltip"),Ot.labelClass&&Kt.push(...Ot.labelClass.split(" ")),ct+=`<div class="${Kt.join(" ")}"`,Ot.tooltip&&(ct+=" data-tooltip='"+((it=be(Ot.tooltip))!=null?it:Ot.tooltip)+"' "),vt!==z&&(ct+=`data-layer="${Ot.layers[0].id}"`),ct+=`>${(st=Ot.label)!=null?st:"untitled"}</div>`}return ct+="</div>",ct}function ex(E,z){let it="";if(E.editToolbar==="none")return"";const ct=[];z.selectionIsCollapsed?ct.push("undo","redo","pasteFromClipboard"):ct.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const vt={undo:`<div class='action ${z.canUndo===!1?"disabled":""}'
|
|
|
data-command='"undo"'
|
|
|
data-tooltip='${be("tooltip.undo")}'>
|
|
|
<svg><use xlink:href='#svg-undo' /></svg>
|
|
|
</div>`,redo:`<div class='action ${z.canRedo===!1?"disabled":""}'
|
|
|
data-command='"redo"'
|
|
|
data-tooltip='${be("tooltip.redo")}'>
|
|
|
<svg><use xlink:href='#svg-redo' /></svg>
|
|
|
</div>`,cutToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"cutToClipboard"'
|
|
|
data-tooltip='${be("tooltip.cut to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-cut' /></svg>
|
|
|
</div>
|
|
|
`,copyToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"copyToClipboard"'
|
|
|
data-tooltip='${be("tooltip.copy to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-copy' /></svg>
|
|
|
</div>
|
|
|
`,pasteFromClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"pasteFromClipboard"'
|
|
|
data-tooltip='${be("tooltip.paste from clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-paste' /></svg>
|
|
|
</div>
|
|
|
`};return it+=ct.map(xt=>vt[xt]).join(""),it}function Ul(E){for(const z of E)Hv(z)}function Hv(E){const z=sp.singleton;if(!z)return;const it={};if(!E.id){if(E.hasAttribute("data-label")&&(it.label=E.dataset.label),E.hasAttribute("data-latex")&&(it.latex=E.dataset.latex),E.hasAttribute("data-key")&&(it.key=E.dataset.key),E.hasAttribute("data-insert")&&(it.insert=E.dataset.insert),E.hasAttribute("data-variants")&&(it.variants=E.dataset.variants),E.hasAttribute("data-aside")&&(it.aside=E.dataset.aside),E.className&&(it.class=E.className),!it.label&&!it.latex&&!it.key&&!it.insert&&(it.latex=E.innerText,it.label=E.innerHTML),E.hasAttribute("data-command"))try{it.command=JSON.parse(E.dataset.command)}catch(st){}E.id=z.registerKeycap(it)}if(!E.innerHTML){const[st,ct]=c0(it);E.innerHTML=window.MathfieldElement.createHTML(st)}}function Jy(){dc("virtual-keyboard"),dc("core"),sm()}function Ch(){rt("core"),rt("virtual-keyboard")}var Zl=`<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
|
|
|
|
|
<symbol id="svg-delete-backward" viewBox="0 0 576 512">
|
|
|
<path d="M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-shift" viewBox="0 0 384 512">
|
|
|
<path d="M2.438 252.3C7.391 264.2 19.06 272 32 272h80v160c0 26.51 21.49 48 48 48h64C250.5 480 272 458.5 272 432v-160H352c12.94 0 24.61-7.797 29.56-19.75c4.953-11.97 2.219-25.72-6.938-34.88l-160-176C208.4 35.13 200.2 32 192 32S175.6 35.13 169.4 41.38l-160 176C.2188 226.5-2.516 240.3 2.438 252.3zM192 86.63L313.4 224H224v208H160V224H70.63L192 86.63z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-commit" viewBox="0 0 512 512">
|
|
|
<path d="M135 432.1l-128-128C2.344 300.3 0 294.2 0 288s2.344-12.28 7.031-16.97l128-128c9.375-9.375 24.56-9.375 33.94 0s9.375 24.56 0 33.94L81.94 264H464v-208C464 42.75 474.8 32 488 32S512 42.75 512 56V288c0 13.25-10.75 24-24 24H81.94l87.03 87.03c9.375 9.375 9.375 24.56 0 33.94S144.4 442.3 135 432.1z"/>
|
|
|
</symbol>
|
|
|
|
|
|
|
|
|
<symbol id="circle-plus" viewBox="0 0 512 512"><path d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344c0 13.3 10.7 24 24 24s24-10.7 24-24V280h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H280V168c0-13.3-10.7-24-24-24s-24 10.7-24 24v64H168c-13.3 0-24 10.7-24 24s10.7 24 24 24h64v64z"/></symbol>
|
|
|
|
|
|
<symbol id="svg-command" viewBox="0 0 640 512">
|
|
|
<path d="M34.495 36.465l211.051 211.05c4.686 4.686 4.686 12.284 0 16.971L34.495 475.535c-4.686 4.686-12.284 4.686-16.97 0l-7.071-7.07c-4.686-4.686-4.686-12.284 0-16.971L205.947 256 10.454 60.506c-4.686-4.686-4.686-12.284 0-16.971l7.071-7.07c4.686-4.687 12.284-4.687 16.97 0zM640 468v-10c0-6.627-5.373-12-12-12H300c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h328c6.627 0 12-5.373 12-12z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-undo" viewBox="0 0 512 512">
|
|
|
<path d="M20 8h10c6.627 0 12 5.373 12 12v110.625C85.196 57.047 165.239 7.715 256.793 8.001 393.18 8.428 504.213 120.009 504 256.396 503.786 393.181 392.834 504 256 504c-63.926 0-122.202-24.187-166.178-63.908-5.113-4.618-5.354-12.561-.482-17.433l7.069-7.069c4.503-4.503 11.749-4.714 16.482-.454C150.782 449.238 200.935 470 256 470c117.744 0 214-95.331 214-214 0-117.744-95.331-214-214-214-82.862 0-154.737 47.077-190.289 116H180c6.627 0 12 5.373 12 12v10c0 6.627-5.373 12-12 12H20c-6.627 0-12-5.373-12-12V20c0-6.627 5.373-12 12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-redo" viewBox="0 0 512 512">
|
|
|
<path d="M492 8h-10c-6.627 0-12 5.373-12 12v110.625C426.804 57.047 346.761 7.715 255.207 8.001 118.82 8.428 7.787 120.009 8 256.396 8.214 393.181 119.166 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-7.069-7.069c-4.503-4.503-11.749-4.714-16.482-.454C361.218 449.238 311.065 470 256 470c-117.744 0-214-95.331-214-214 0-117.744 95.331-214 214-214 82.862 0 154.737 47.077 190.289 116H332c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h160c6.627 0 12-5.373 12-12V20c0-6.627-5.373-12-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-arrow-left" viewBox="0 0 320 512">
|
|
|
<path d="M206.7 464.6l-183.1-191.1C18.22 267.1 16 261.1 16 256s2.219-11.97 6.688-16.59l183.1-191.1c9.152-9.594 24.34-9.906 33.9-.7187c9.625 9.125 9.938 24.37 .7187 33.91L73.24 256l168 175.4c9.219 9.5 8.906 24.78-.7187 33.91C231 474.5 215.8 474.2 206.7 464.6z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-arrow-right" viewBox="0 0 320 512">
|
|
|
<path d="M113.3 47.41l183.1 191.1c4.469 4.625 6.688 10.62 6.688 16.59s-2.219 11.97-6.688 16.59l-183.1 191.1c-9.152 9.594-24.34 9.906-33.9 .7187c-9.625-9.125-9.938-24.38-.7187-33.91l168-175.4L78.71 80.6c-9.219-9.5-8.906-24.78 .7187-33.91C88.99 37.5 104.2 37.82 113.3 47.41z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-tab" viewBox="0 0 448 512">
|
|
|
<path d="M32 217.1c0-8.8 7.2-16 16-16h144v-93.9c0-7.1 8.6-10.7 13.6-5.7l143.5 143.1c6.3 6.3 6.3 16.4 0 22.7L205.6 410.4c-5 5-13.6 1.5-13.6-5.7v-93.9H48c-8.8 0-16-7.2-16-16v-77.7m-32 0v77.7c0 26.5 21.5 48 48 48h112v61.9c0 35.5 43 53.5 68.2 28.3l143.6-143c18.8-18.8 18.8-49.2 0-68L228.2 78.9c-25.1-25.1-68.2-7.3-68.2 28.3v61.9H48c-26.5 0-48 21.6-48 48zM436 64h-8c-6.6 0-12 5.4-12 12v360c0 6.6 5.4 12 12 12h8c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-paste" viewBox="0 0 512 512"><path d="M160 32c11.6 0 21.3 8.2 23.5 19.2C185 58.6 191.6 64 199.2 64H208c8.8 0 16 7.2 16 16V96H96V80c0-8.8 7.2-16 16-16h8.8c7.6 0 14.2-5.4 15.7-12.8C138.7 40.2 148.4 32 160 32zM64 64h2.7C65 69 64 74.4 64 80V96c0 17.7 14.3 32 32 32H224c17.7 0 32-14.3 32-32V80c0-5.6-1-11-2.7-16H256c17.7 0 32 14.3 32 32h32c0-35.3-28.7-64-64-64H210.6c-9-18.9-28.3-32-50.6-32s-41.6 13.1-50.6 32H64C28.7 32 0 60.7 0 96V384c0 35.3 28.7 64 64 64H192V416H64c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM288 480c-17.7 0-32-14.3-32-32V192c0-17.7 14.3-32 32-32h96v56c0 22.1 17.9 40 40 40h56V448c0 17.7-14.3 32-32 32H288zM416 165.3L474.7 224H424c-4.4 0-8-3.6-8-8V165.3zM448 512c35.3 0 64-28.7 64-64V235.9c0-12.7-5.1-24.9-14.1-33.9l-59.9-59.9c-9-9-21.2-14.1-33.9-14.1H288c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H448z"/></symbol>
|
|
|
<symbol id="svg-cut" viewBox="0 0 512 512"><path d="M485.6 444.2L333.6 314.9C326.9 309.2 326.1 299.1 331.8 292.4C337.5 285.6 347.6 284.8 354.4 290.5L506.4 419.8C513.1 425.5 513.9 435.6 508.2 442.4C502.5 449.1 492.4 449.9 485.6 444.2zM485.7 67.76C492.5 62.07 502.5 62.94 508.2 69.69C513.9 76.45 513.1 86.55 506.3 92.24L208.5 343.1C218.3 359.7 224 379.2 224 400C224 461.9 173.9 512 112 512C50.14 512 0 461.9 0 400C0 338.1 50.14 288 112 288C141.5 288 168.4 299.4 188.4 318.1L262.2 256L188.4 193.9C168.4 212.6 141.5 224 112 224C50.14 224 0 173.9 0 112C0 50.14 50.14 0 112 0C173.9 0 224 50.14 224 112C224 132.8 218.3 152.3 208.5 168.9L287 235.1L485.7 67.76zM32 112C32 156.2 67.82 192 112 192C156.2 192 192 156.2 192 112C192 67.82 156.2 32 112 32C67.82 32 32 67.82 32 112zM112 480C156.2 480 192 444.2 192 400C192 355.8 156.2 320 112 320C67.82 320 32 355.8 32 400C32 444.2 67.82 480 112 480z"/></symbol>
|
|
|
<symbol id="svg-copy" viewBox="0 0 512 512"><path d="M272 416C263.2 416 256 423.2 256 432V448c0 17.67-14.33 32-32 32H64c-17.67 0-32-14.33-32-32V192c0-17.67 14.33-32 32-32h112C184.8 160 192 152.8 192 144C192 135.2 184.8 128 176 128H63.99c-35.35 0-64 28.65-64 64l.0098 256C0 483.3 28.65 512 64 512h160c35.35 0 64-28.65 64-64v-16C288 423.2 280.8 416 272 416zM502.6 86.63l-77.25-77.25C419.4 3.371 411.2 0 402.7 0H288C252.7 0 224 28.65 224 64v256c0 35.35 28.65 64 64 64h160c35.35 0 64-28.65 64-64V109.3C512 100.8 508.6 92.63 502.6 86.63zM416 45.25L466.7 96H416V45.25zM480 320c0 17.67-14.33 32-32 32h-160c-17.67 0-32-14.33-32-32V64c0-17.67 14.33-32 32-32h96l.0026 64c0 17.67 14.33 32 32 32H480V320z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-angle-double-right" viewBox="0 0 512 512"><path d="M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-angle-double-left" viewBox="0 0 512 512"><path d="M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L301.3 256 438.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-trash" viewBox="0 0 448 512">
|
|
|
<path d="M336 64l-33.6-44.8C293.3 7.1 279.1 0 264 0h-80c-15.1 0-29.3 7.1-38.4 19.2L112 64H24C10.7 64 0 74.7 0 88v2c0 3.3 2.7 6 6 6h26v368c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V96h26c3.3 0 6-2.7 6-6v-2c0-13.3-10.7-24-24-24h-88zM184 32h80c5 0 9.8 2.4 12.8 6.4L296 64H152l19.2-25.6c3-4 7.8-6.4 12.8-6.4zm200 432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V96h320v368zm-176-44V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm-80 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm160 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-keyboard-down" viewBox="0 0 576 512"><path d="M64 48c-8.8 0-16 7.2-16 16V240c0 8.8 7.2 16 16 16H512c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H64zM0 64C0 28.7 28.7 0 64 0H512c35.3 0 64 28.7 64 64V240c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zM159 359c9.4-9.4 24.6-9.4 33.9 0l95 95 95-95c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L305 505c-4.5 4.5-10.6 7-17 7s-12.5-2.5-17-7L159 393c-9.4-9.4-9.4-24.6 0-33.9zm1-167c0-8.8 7.2-16 16-16H400c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V192zM120 88h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H120c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H200c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H280c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H360c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H440c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16z"/></symbol>
|
|
|
</svg>`;function dm(E){E.resetKeycapRegistry(),Jy();const z=document.createElement("div");z.className="ML__keyboard";const it=document.createElement("div");it.className="MLK__plate",it.innerHTML=window.MathfieldElement.createHTML(Zl+E.normalizedLayouts.map((xt,Ot)=>fm(E,xt,Ot)).join(""));const st=document.createElement("div");st.className="MLK__backdrop",st.appendChild(it),z.appendChild(st),z.addEventListener("pointerdown",ix,{passive:!1});const ct=z.querySelectorAll(".ML__edit-toolbar");if(ct)for(const xt of ct)xt.addEventListener("click",Ot=>{var Kt,Zt;let re=Ot.target,Be="";for(;re&&!Be;)Be=(Kt=re==null?void 0:re.getAttribute("data-command"))!=null?Kt:"",re=(Zt=re==null?void 0:re.parentElement)!=null?Zt:null;Be&&E.executeCommand(JSON.parse(Be))});Ul(z.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const vt=z.querySelectorAll(".MLK__layer");console.assert(vt.length>0,"No virtual keyboards available");for(const xt of vt)xt.addEventListener("pointerdown",Ot=>Ot.preventDefault());return E.currentLayer=E.latentLayer,z}function fm(E,z,it){const st=[];if(!("layers"in z))return"";for(const ct of z.layers)st.push(`<div tabindex="-1" class="MLK__layer" id="${ct.id}">`),(E.normalizedLayouts.length>1||z.displayEditToolbar)&&(st.push("<div class='MLK__toolbar' role='toolbar'>"),st.push(Eg(E,it)),z.displayEditToolbar&&st.push('<div class="ML__edit-toolbar right"></div>'),st.push("</div>")),st.push(nx(E,ct)),st.push("</div>");return st.join("")}function nx(E,z){if(typeof z=="string")return z;let it="";if(typeof z.style=="string"?it+=`<style>${z.style}</style>`:typeof z.style=="object"&&(it+=`<style>${Rb(z.style)}</style>`),z.backdrop&&(it+=`<div class='${z.backdrop}'>`),z.container&&(it+=`<div class='${z.container}'>`),z.rows){it+="<div class=MLK__rows>";for(const st of z.rows){it+="<div dir='ltr' class=MLK__row>";for(const ct of st)if(ct){const vt=E.registerKeycap(ct),[xt,Ot]=c0(ct);/(^|\s)separator/.test(Ot)?it+=`<div class="${Ot}"`:it+=`<div tabindex="-1" id="${vt}" class="${Ot}"`,ct.tooltip&&(it+=` data-tooltip="${ct.tooltip}"`),it+=`>${xt}</div>`}it+="</div>"}it+="</div>"}else z.markup&&(it+=z.markup);return z.container&&(it+="</div>"),z.backdrop&&(it+="</div>"),it}function c0(E,z={shifted:!1}){var it,st,ct,vt,xt,Ot,Kt;let Zt="",re=(it=E.class)!=null?it:"";if(z.shifted&&ff(E)&&(re+=" is-active"),z.shifted&&"shift"in E)typeof E.shift=="string"?Zt=u0(E.shift):typeof E.shift=="object"&&(Zt=E.shift.label?E.shift.label:(st=u0(E.shift.latex||E.shift.insert||"")||E.shift.key)!=null?st:""),typeof E.shift=="object"&&(re=(vt=(ct=E.shift.class)!=null?ct:E.class)!=null?vt:"");else{if(Zt=E.label?E.label:(xt=u0(E.latex||E.insert||"")||E.key)!=null?xt:"",E.shift){let Be;typeof E.shift=="string"?Be=u0(E.shift):E.shift.label?Be=E.shift.label:Be=(Ot=u0(E.shift.latex||E.shift.insert||"")||E.shift.key)!=null?Ot:"",Zt+=`<span class="MLK__shift">${Be}</span>`}E.aside&&(Zt+=`<aside>${E.aside}</aside>`)}return E.layer&&!/layer-switch/.test(re)&&(re+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(re)||(re+=" MLK__keycap"),!/\bw[0-9]+\b/.test(re)&&E.width&&(re+=(Kt={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[E.width])!=null?Kt:""),[Zt,re||"MLK__keycap"]}var h0={"[left]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-left /></svg>",command:["performWithFeedback","moveToPreviousChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-left /></svg>",command:["performWithFeedback","extendSelectionBackward"]}},"[right]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-right /></svg>",command:["performWithFeedback","moveToNextChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-right /></svg>",command:["performWithFeedback","extendSelectionForward"]}},"[up]":{class:"action hide-shift",label:"\u2191",command:["performWithFeedback","moveUp"],shift:{label:"\u219F",command:["performWithFeedback","extendSelectionUpward"]}},"[down]":{class:"action hide-shift",label:"\u2193",command:["performWithFeedback","moveDown"],shift:{label:"\u21A1",command:["performWithFeedback","extendSelectionDownward"]}},"[return]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[action]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{label:"<svg class=svg-glyph><use xlink:href=#circle-plus /></svg>",command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[hr]":{class:"separator horizontal-rule"},"[hide-keyboard]":{class:"action",command:["hideVirtualKeyboard"],width:1.5,label:"<svg class=svg-glyph-lg><use xlink:href=#svg-keyboard-down /></svg>"},"[.]":{variants:".",command:["performWithFeedback","insertDecimalSeparator"],shift:",",class:"big-op hide-shift",label:"."},"[,]":{variants:",",command:["performWithFeedback","insertDecimalSeparator"],shift:".",class:"big-op hide-shift",label:","},"[+]":{variants:[{latex:"\\sum_{#0}^{#0}",class:"small"},"\\oplus"],latex:"+",label:"+",class:"big-op hide-shift",shift:{latex:"\\sum",insert:"\\sum",class:"small"}},"[-]":{variants:["\\pm","\\ominus"],latex:"-",label:"−",shift:"\\pm",class:"big-op hide-shift"},"[/]":{class:"big-op hide-shift",shift:{class:"",latex:"\\frac{1}{#@}"},variants:["/","\\div","\\%","\\oslash"],latex:"\\frac{#@}{#?}",label:"÷"},"[*]":{variants:[{latex:"\\prod_{#0}^{#0}",class:"small"},"\\otimes","\\cdot"],latex:"\\cdot",label:"×",shift:{latex:"\\times"},class:"big-op hide-shift"},"[=]":{variants:["\\neq","\\equiv","\\varpropto","\\thickapprox","\\lt","\\gt","\\le","\\ge"],latex:"=",label:"=",shift:{label:"\u2260",latex:"\\ne"},class:"big-op hide-shift"},"[backspace]":{class:"action bottom right hide-shift",width:1.5,command:["performWithFeedback","deleteBackward"],label:"<svg class=svg-glyph><use xlink:href=#svg-delete-backward /></svg>",shift:{class:"action warning",label:"<svg class=svg-glyph><use xlink:href=#svg-trash /></svg>",command:"deleteAll"}},"[undo]":{class:"ghost if-can-undo",command:"undo",label:"<svg class=svg-glyph><use xlink:href=#svg-undo /></svg>",tooltip:"tooltip.undo"},"[redo]":{class:"ghost if-can-redo",command:"redo",label:"<svg class=svg-glyph><use xlink:href=#svg-redo /></svg>",tooltip:"tooltip.redo"},"[(]":{variants:[{latex:"\\lbrack",key:"["},"\\langle","\\lfloor","\\lceil",{latex:"\\lbrace",key:"{"}],key:"(",label:"(",shift:{label:"[",key:"["},class:"hide-shift"},"[)]":{variants:[{latex:"\\rbrack",key:"]"},"\\rangle","\\rfloor","\\rceil",{latex:"\\rbrace",key:"]"}],key:")",label:")",shift:{label:"]",latex:"\\rbrack"},class:"hide-shift"},"[0]":{variants:"0",latex:"0",label:"0",shift:"\\infty",class:"hide-shift"},"[1]":{variants:"1",latex:"1",label:"1",shift:"#@^{-1}",class:"hide-shift"},"[2]":{variants:"2",latex:"2",label:"2",shift:"#@^2",class:"hide-shift"},"[3]":{variants:"3",latex:"3",label:"3",shift:"#@^3",class:"hide-shift"},"[4]":{variants:"4",latex:"4",label:"4",shift:"#@^4",class:"hide-shift"},"[5]":{variants:"5",latex:"5",label:"5",shift:"#@^5",class:"hide-shift"},"[6]":{variants:"6",latex:"6",label:"6",shift:"#@^6",class:"hide-shift"},"[7]":{variants:"7",latex:"7",label:"7",shift:"#@^7",class:"hide-shift"},"[8]":{variants:"8",latex:"8",label:"8",shift:"#@^8",class:"hide-shift"},"[9]":{variants:"9",latex:"9",label:"9",shift:"#@^9",class:"hide-shift"},"[separator-5]":{class:"separator",width:.5},"[separator]":{class:"separator"},"[separator-10]":{class:"separator"},"[separator-15]":{class:"separator",width:1.5},"[separator-20]":{class:"separator",width:2},"[separator-50]":{class:"separator",width:5},"[shift]":{class:"shift bottom left",width:1.5,label:"<span class=caps-lock-indicator></span><svg class=svg-glyph><use xlink:href=#svg-shift /></svg>"},"[foreground-color]":{variants:"foreground-color",command:["applyStyle",{color:"red"}],label:"<span style='border-radius: 50%;width:22px;height:22px; border: 3px solid #cc2428; box-sizing: border-box'>"},"[background-color]":{variants:"background-color",command:["applyStyle",{backgroundColor:"yellow"}],label:"<span style='border-radius: 50%;width:22px;height:22px; background:#fff590; box-sizing: border-box'></span>"}};function Qy(E){var z;if(typeof E=="string"){if(E==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(E="[,]"),!h0[E])return{latex:E};E={label:E}}let it;return"label"in E&&E.label&&h0[E.label]&&(it=Nt(jt(jt({},h0[E.label]),E),{label:h0[E.label].label})),"key"in E&&E.key&&h0[E.key]&&(it=Nt(jt(jt({},h0[E.key]),E),{key:h0[E.key].key})),it?(it.command==="insertDecimalSeparator"&&(it.label=(z=window.MathfieldElement.decimalSeparator)!=null?z:"."),E.label==="[action]"&&(it=jt(jt({},it),window.mathVirtualKeyboard.actionKeycap)),E.label==="[shift]"&&(it=jt(jt({},it),window.mathVirtualKeyboard.shiftKeycap)),E.label==="[backspace]"&&(it=jt(jt({},it),window.mathVirtualKeyboard.backspaceKeycap)),E.label==="[tab]"&&(it=jt(jt({},it),window.mathVirtualKeyboard.tabKeycap)),it):E}var pm;function ix(E){var z;if(E.button!==0)return;const it=sp.singleton;if(!it)return;let st=E.target;for(;st&&!st.getAttribute("data-layer");)st=st.parentElement;if(st){it.currentLayer=(z=st.getAttribute("data-layer"))!=null?z:"",E.preventDefault();return}const ct=gc(E.target);if(!(ct!=null&&ct.id))return;const vt=it.getKeycap(ct.id);if(!vt)return;console.assert(E.type==="pointerdown");const xt=new AbortController,Ot=xt.signal;ct.classList.add("is-pressed"),ct.addEventListener("pointerenter",df(xt),{capture:!0,signal:Ot}),ct.addEventListener("pointerleave",df(xt),{capture:!0,signal:Ot}),ct.addEventListener("pointercancel",df(xt),{signal:Ot}),ct.addEventListener("pointerup",df(xt),{signal:Ot}),ff(vt)&&(ct.classList.add("is-active"),it.shiftPressCount++),vt.variants&&(pm&&clearTimeout(pm),pm=setTimeout(()=>{ct.classList.contains("is-pressed")&&(ct.classList.remove("is-pressed"),ct.classList.add("is-active"),E.target&&"releasePointerCapture"in E.target&&E.target.releasePointerCapture(E.pointerId),zv(ct,()=>{xt.abort(),ct==null||ct.classList.remove("is-active")}))},300)),E.preventDefault()}function df(E){return z=>{const it=gc(z.target);if(!(it!=null&&it.id))return;const st=sp.singleton;if(!st)return;const ct=st.getKeycap(it.id);if(ct){if(z.type==="pointerenter"&&z.target===it&&z.isPrimary&&it.classList.add("is-pressed"),z.type==="pointercancel"){it.classList.remove("is-pressed"),ff(ct)&&(st.shiftPressCount--,it.classList.toggle("is-active",st.isShifted)),E.abort();return}if(z.type==="pointerleave"&&z.target===it){it.classList.remove("is-pressed"),ff(ct)&&(st.shiftPressCount--,it.classList.toggle("is-active",st.isShifted));return}if(z.type==="pointerup"){pm&&clearTimeout(pm),ff(ct)?it.classList.toggle("is-active",st.isShifted):it.classList.contains("is-pressed")&&(it.classList.remove("is-pressed"),st.isShifted&&ct.shift?typeof ct.shift=="string"?st.executeCommand(["insert",ct.shift,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]):op(ct.shift):op(ct),st.shiftPressCount===1&&!z.shiftKey&&(st.shiftPressCount=0)),E.abort(),z.preventDefault();return}}}}function op(E){var z;let it=E.command;!it&&E.insert&&(it=["insert",E.insert,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),!it&&E.key&&(it=["typedText",E.key,{focus:!0,feedback:!0,simulateKeystroke:!0}]),!it&&E.latex&&(it=["insert",E.latex,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),it||(it=["typedText",E.label,{focus:!0,feedback:!0,simulateKeystroke:!0}]),(z=sp.singleton)==null||z.executeCommand(it)}function Kb(E){if(E.nodeType!==1)return!1;const z=E.classList;return z.contains("MLK__keycap")||z.contains("shift")||z.contains("action")||z.contains("fnbutton")||z.contains("bigfnbutton")}function gc(E){if(!E)return;let z=E;for(;z&&!Kb(z);)z=z.parentElement;return z!=null?z:void 0}function ff(E){return!!E.class&&/(^|\s)shift($|\s)/.test(E.class)}var sp=class vw{constructor(){this.originalContainerBottomPadding=null,this.keycapRegistry={},this._shiftPressCount=0;var z,it,st;this.targetOrigin=window.origin,this.originValidator="none",this._alphabeticLayout="auto",this._layouts=Object.freeze(["default"]),this._editToolbar="default",this._container=(it=(z=window.document)==null?void 0:z.body)!=null?it:null,this._visible=!1,this._rebuilding=!1,this.observer=new ResizeObserver(ct=>{this.adjustBoundingRect(),this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect})}),this.listeners={};try{(st=window.top)==null||st.addEventListener("message",this)}catch(ct){window.addEventListener("message",this)}document.body.addEventListener("focusin",ct=>{const vt=ct.target;vt!=null&&vt.isConnected&&setTimeout(()=>{const xt=$y();xt&&!xt.readOnly&&xt.mathVirtualKeyboardPolicy==="auto"&&ue()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",ct=>{ct.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{$y()||this.hide()},300)})}get currentLayer(){var z,it,st;return(st=(it=(z=this._element)==null?void 0:z.querySelector(".MLK__layer.is-visible"))==null?void 0:it.id)!=null?st:""}set currentLayer(z){var it;if(!this._element){this.latentLayer=z;return}let st=z?this._element.querySelector(`#${z}.MLK__layer`):null;st||(st=this._element.querySelector(".MLK__layer")),st&&((it=this._element.querySelector(".MLK__layer.is-visible"))==null||it.classList.remove("is-visible"),st.classList.add("is-visible")),this.render()}get shiftPressCount(){return this._shiftPressCount}set shiftPressCount(z){var it;this._shiftPressCount=z>2||z<0?0:z,(it=this._element)==null||it.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.render()}get isShifted(){return this._shiftPressCount>0}resetKeycapRegistry(){this.keycapRegistry={}}registerKeycap(z){const it="ML__k"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);return this.keycapRegistry[it]=z,it}getKeycap(z){return z?this.keycapRegistry[z]:void 0}getLayer(z){const it=this.normalizedLayouts;for(const st of it)for(const ct of st.layers)if(ct.id===z)return ct}get alphabeticLayout(){return this._alphabeticLayout}set alphabeticLayout(z){this._alphabeticLayout=z,this.rebuild()}get actionKeycap(){return this._actionKeycap}set actionKeycap(z){this._actionKeycap=typeof z=="string"?{label:z}:z}get shiftKeycap(){return this._shiftKeycap}set shiftKeycap(z){this._shiftKeycap=typeof z=="string"?{label:z}:z}get backspaceKeycap(){return this._backspaceKeycap}set backspaceKeycap(z){this._backspaceKeycap=typeof z=="string"?{label:z}:z}get tabKeycap(){return this._tabKeycap}set tabKeycap(z){this._tabKeycap=typeof z=="string"?{label:z}:z}get layouts(){return this._layouts}set layouts(z){this.updateNormalizedLayouts(z),this.rebuild()}updateNormalizedLayouts(z){const it=Array.isArray(z)?[...z]:[z],st=it.findIndex(ct=>ct==="default");st>=0&&it.splice(st,1,"numeric","symbols","alphabetic","greek"),this._layouts=Object.freeze(it),this._normalizedLayouts=it.map(ct=>Kv(ct))}get normalizedLayouts(){return this._normalizedLayouts||this.updateNormalizedLayouts(this._layouts),this._normalizedLayouts}get editToolbar(){return this._editToolbar}set editToolbar(z){this._editToolbar=z,this.rebuild()}get container(){return this._container}set container(z){this._container=z,this.rebuild()}static get singleton(){if(this._singleton===void 0)try{this._singleton=new vw}catch(z){this._singleton=null}return this._singleton}get style(){return this._style}addEventListener(z,it,st){this.listeners[z]||(this.listeners[z]=new Set),this.listeners[z].has(it)||this.listeners[z].add(it)}dispatchEvent(z){return!this.listeners[z.type]||this.listeners[z.type].size===0?!0:(this.listeners[z.type].forEach(it=>{typeof it=="function"?it(z):it==null||it.handleEvent(z)}),!z.defaultPrevented)}removeEventListener(z,it,st){this.listeners[z]&&this.listeners[z].delete(it)}get element(){return this._element}set element(z){var it;this._element!==z&&((it=this._element)==null||it.remove(),this._element=z)}get visible(){return this._visible}set visible(z){z?this.show():this.hide()}get boundingRect(){var z;if(!this._visible)return new DOMRect;const it=(z=this._element)==null?void 0:z.getElementsByClassName("MLK__plate")[0];return it?it.getBoundingClientRect():new DOMRect}adjustBoundingRect(){var z,it;const st=this.boundingRect.height;if(this.container===document.body){(z=this._element)==null||z.style.setProperty("--_keyboard-height",`calc(${st}px + var(--_padding-top) + var(--_padding-bottom) + env(safe-area-inset-bottom, 0))`);const ct=st-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${ct}px)`:`${ct}px`}else(it=this._element)==null||it.style.setProperty("--_keyboard-height",`${st}px`)}rebuild(){if(this._rebuilding||!this._element)return;this._rebuilding=!0;const z=this.currentLayer;requestAnimationFrame(()=>{this._rebuilding=!1,this._element&&(this._element.remove(),this._element=void 0),this.visible&&(this.buildAndAttachElement(),this.currentLayer=z,this.render(),this.adjustBoundingRect(),this._element.classList.add("is-visible"))})}render(){if(!this._element)return;const z=this.getLayer(this.currentLayer);this._element.classList.toggle("backdrop-is-transparent",!!(z&&(z.backdrop||z.container)));const it=this._element.querySelectorAll(".MLK__layer.is-visible .MLK__keycap, .MLK__layer.is-visible .action, .fnbutton, .MLK__layer.is-visible .bigfnbutton, .MLK__layer.is-visible .shift");if(it)for(const st of it){const ct=this.getKeycap(st.id);if(ct){const[vt,xt]=c0(ct,{shifted:this.isShifted});st.innerHTML=window.MathfieldElement.createHTML(vt),st.className=xt}}}show(z){var it;if(this._visible)return;const st=this.container;if(st&&window.mathVirtualKeyboard&&this.stateWillChange(!0)){if(this._element||(this.buildAndAttachElement(),this.adjustBoundingRect()),!this._visible){const ct=this._element.getElementsByClassName("MLK__plate")[0];if(ct&&this.observer.observe(ct),st===window.document.body){const vt=st.style.paddingBottom;this.originalContainerBottomPadding=vt;const xt=ct.offsetHeight-1;st.style.paddingBottom=vt?`calc(${vt} + ${xt}px)`:`${xt}px`}window.addEventListener("mouseup",this),window.addEventListener("blur",this),window.addEventListener("keydown",this,{capture:!0}),window.addEventListener("keyup",this,{capture:!0}),(it=this._element)==null||it.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.currentLayer=this.latentLayer}this._visible=!0,z!=null&&z.animate?requestAnimationFrame(()=>{this._element&&(this._element.classList.add("animate"),this._element.addEventListener("transitionend",()=>{var ct;return(ct=this._element)==null?void 0:ct.classList.remove("animate")},{once:!0}),this._element.classList.add("is-visible"),this.stateChanged())}):(this._element.classList.add("is-visible"),this.stateChanged())}}hide(z){var it;const st=this.container;if(st&&this._visible&&this.stateWillChange(!1)){if(this._visible=!1,this._element){this.latentLayer=this.currentLayer;const ct=this._element.getElementsByClassName("MLK__plate")[0];ct&&this.observer.unobserve(ct),window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("keydown",this,{capture:!0}),window.removeEventListener("keyup",this,{capture:!0}),window.removeEventListener("contextmenu",this,{capture:!0}),cm(),Ch(),(it=this._element)==null||it.remove(),this._element=void 0,this.originalContainerBottomPadding!==null&&(st.style.paddingBottom=this.originalContainerBottomPadding)}this.stateChanged()}}get height(){var z,it;return(it=(z=this.element)==null?void 0:z.offsetHeight)!=null?it:0}buildAndAttachElement(){var z;console.assert(!this.element),this.element=dm(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",it=>{it.shiftKey||((it.ctrlKey||it.button===2)&&zv(it.target),it.preventDefault(),it.stopPropagation())},{capture:!0}),(z=this.container)==null||z.appendChild(this.element)}handleEvent(z){if(Fv(z)){if(!bh(z.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${z.origin}) cannot be handled`,"SecurityError");z.data.action==="disconnect"?this.connectedMathfieldWindow=void 0:z.data.action!=="update-setting"&&z.data.action!=="proxy-created"&&z.data.action!=="execute-command"&&(console.assert(z.source!==void 0),this.connectedMathfieldWindow=z.source),this.handleMessage(z.data,z.source)}if(this._element)switch(z.type){case"mouseup":case"blur":document.body.style.userSelect="",this.shiftPressCount=0;break;case"contextmenu":z.button!==2&&z.preventDefault();break;case"keydown":{z.key==="Shift"&&!z.repeat&&(this.shiftPressCount=1);break}case"keyup":{(z.key==="Shift"||!z.getModifierState("Shift")&&this.shiftPressCount!==2)&&(this.shiftPressCount=0);break}}}handleMessage(z,it){const{action:st}=z;if(st==="execute-command"){const{command:ct}=z,vt=Ad(ct);if(window.top!==void 0&&vt!=="virtual-keyboard")return;this.executeCommand(ct);return}if((st==="connect"||st==="show")&&this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},it),st!=="disconnect"&&window===window.top){if(st==="show"){typeof z.animate!="undefined"?this.show({animate:z.animate}):this.show();return}if(st==="hide"){typeof z.animate!="undefined"?this.hide({animate:z.animate}):this.hide();return}if(st==="update-setting"){z.alphabeticLayout&&(this.alphabeticLayout=z.alphabeticLayout),z.layouts&&(this.layouts=z.layouts),z.editToolbar&&(this.editToolbar=z.editToolbar);return}if(st==="proxy-created"){this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},it);return}}}sendMessage(z,it,st){if(st||(st=this.connectedMathfieldWindow),this.targetOrigin===null||this.targetOrigin==="null"||st===window){window.dispatchEvent(new MessageEvent("message",{source:window,data:jt({type:wg,action:z},it)}));return}if(st)st.postMessage(jt({type:wg,action:z},it),{targetOrigin:this.targetOrigin});else if(it.command&&this.dispatchEvent(new CustomEvent("math-virtual-keyboard-command",{detail:it.command})),z==="execute-command"&&Array.isArray(it.command)&&it.command[0]==="insert"){const ct=it.command[1].split("");for(const vt of ct)this.dispatchEvent(new KeyboardEvent("keydown",{key:vt,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:vt,bubbles:!0}))}}stateWillChange(z){return this.dispatchEvent(new CustomEvent("before-virtual-keyboard-toggle",{detail:{visible:z},bubbles:!0,cancelable:!0,composed:!0}))}stateChanged(){this.dispatchEvent(new Event("virtual-keyboard-toggle")),this._visible||(this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect}))}focus(){this.sendMessage("focus",{})}blur(){this.sendMessage("blur",{})}updateToolbar(z){const it=this._element;if(!it)return;it.classList.toggle("is-math-mode",z.mode==="math"),it.classList.toggle("is-text-mode",z.mode==="text"),it.classList.toggle("can-undo",z.canUndo),it.classList.toggle("can-redo",z.canRedo),it.classList.toggle("can-copy",!z.selectionIsCollapsed),it.classList.toggle("can-copy",!z.selectionIsCollapsed),it.classList.toggle("can-paste",!0);const st=it.querySelectorAll(".ML__edit-toolbar");if(st)for(const ct of st)ct.innerHTML=ex(this,z)}update(z){this._style=z.style,this.updateToolbar(z)}connect(){this.connectedMathfieldWindow=window}disconnect(){this.connectedMathfieldWindow=void 0}executeCommand(z){let it,st=[],ct=Ad(z);return Yt(z)?(it=z[0],it==="performWithFeedback"&&(z=z.slice(1),ct=Ad(z)),st=z.slice(1)):it=z,it=it.replace(/-\w/g,vt=>vt[1].toUpperCase()),ct==="virtual-keyboard"?as[it].fn(void 0,...st):(this.sendMessage("execute-command",{command:z}),!1)}dispose(){window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("message",this)}};function $y(){var E,z;let it=$h(),st=null;for(;it;){if("host"in it&&((z=(E=it.host)==null?void 0:E.tagName)==null?void 0:z.toLowerCase())==="math-field"){st=it.host;break}it=it.parentNode}return st}if(we()&&!("mathVirtualKeyboard"in window))if(window===window.top){const E=sp.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>E})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>Rv.singleton,configurable:!0});function d0(E){const z={};for(const it of Object.keys(E))switch(it){case"scriptDepth":const st=E.scriptDepth;if(Yt(st))z.scriptDepth=[st[0],st[1]];else if(typeof st=="number")z.scriptDepth=[st,st];else if(typeof st=="string"){const[vt,xt]=st.split(",").map(Ot=>parseInt(Ot.trim()));z.scriptDepth=[vt,xt]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let ct=E.mathVirtualKeyboardPolicy.toLowerCase();if(ct==="sandboxed"){if(window!==window.top){const vt=sp.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>vt})}ct="manual"}z.mathVirtualKeyboardPolicy=ct;break;case"letterShapeStyle":E.letterShapeStyle==="auto"?pe.locale.startsWith("fr")?z.letterShapeStyle="french":z.letterShapeStyle="tex":z.letterShapeStyle=E.letterShapeStyle;break;case"defaultMode":["text","math","inline-math"].includes(E.defaultMode)?z.defaultMode=E.defaultMode:(console.error('MathLive 0.98.5: valid values for defaultMode are "text", "math" or "inline-math"'),z.defaultMode="math");break;case"macros":z.macros=Qe(E.macros);break;default:Yt(E[it])?z[it]=[...E[it]]:typeof E[it]=="object"&&!(E[it]instanceof Element)&&it!=="computeEngine"?z[it]=jt({},E[it]):z[it]=E[it]}return z}function za(E,z){let it;typeof z=="string"?it=[z]:z===void 0?it=Object.keys(E):it=z;const st={};for(const ct of it)E[ct]===null?st[ct]=null:Yt(E[ct])?st[ct]=[...E[ct]]:typeof E[ct]=="object"&&!(E[ct]instanceof Element)&&ct!=="computeEngine"?st[ct]=jt({},E[ct]):st[ct]=E[ct];return typeof z=="string"?st[z]:st}function mm(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:en,backgroundColorMap:ie,letterShapeStyle:pe.locale.startsWith("fr")?"french":"tex",minFontScale:0,smartMode:!1,smartFence:!0,smartSuperscript:!0,scriptDepth:[1/0,1/0],removeExtraneousParentheses:!0,isImplicitFunction:E=>["\\sin","\\cos","\\tan","\\arcsin","\\arccos","\\arctan","\\arcsec","\\arccsc","\\arsinh","\\arcosh","\\artanh","\\arcsech","\\arccsch","\\arg","\\ch","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\sec","\\sinh","\\sh","\\tanh","\\tg","\\th","\\lg","\\lb","\\log","\\ln"].includes(E),mathModeSpace:"",placeholderSymbol:"\u25A2",contentPlaceholder:"",popoverPolicy:"auto",environmentPopoverPolicy:"off",keybindings:Wf,inlineShortcuts:ig,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:U0,value:""}}function Pr(E){return E.defaultMode==="inline-math"?"math":E.defaultMode}function il(E,z){!E||!z||(Yt(E)?E.forEach(it=>il(it,z)):typeof E=="object"&&!E.style.color&&!E.style.backgroundColor&&!E.style.fontFamily&&!E.style.fontShape&&!E.style.fontSeries&&!E.style.fontSize&&!E.style.variant&&!E.style.variantStyle&&(E.applyStyle(z),il(E.body,z),il(E.above,z),il(E.below,z),il(E.subscript,z),il(E.superscript,z)))}function kg(E,z,it,st){function ct(xt,Ot){for(const Kt of vt)if(Kt.style[xt]!==Ot)return!1;return!0}if(z=E.normalizeRange(z),z[0]===z[1])return!1;const vt=E.getAtoms(z,{includeChildren:!0});st.operation==="toggle"&&(it.color&&ct("color",it.color)&&(it.color="none",delete it.verbatimColor),it.backgroundColor&&ct("backgroundColor",it.backgroundColor)&&(it.backgroundColor="none",delete it.verbatimBackgroundColor),it.fontFamily&&ct("fontFamily",it.fontFamily)&&(it.fontFamily="none"),it.fontSeries&&ct("fontSeries",it.fontSeries)&&(it.fontSeries="auto"),it.fontShape&&ct("fontShape",it.fontShape)&&(it.fontShape="auto"),it.fontSize&&ct("fontSize",it.fontSize)&&(it.fontSize=hh),it.variant&&ct("variant",it.variant)&&(it.variant="normal"),it.variantStyle&&ct("variantStyle",it.variantStyle)&&(it.variantStyle=""));for(const xt of vt)xt.applyStyle(it);return!0}function Hb(E,z){const it=E.at(E.position);if(it.type==="composition")it.value=z;else{const{caret:st}=it;it.caret=void 0;const ct=new Fl(z,{mode:it.mode});ct.caret=st,it.parent.addChildAfter(ct,it),E.position+=1}}function _v(E){const z=E.at(E.position);z.type==="composition"&&(z.parent.removeChild(z),E.position-=1)}Fe(["math","displaymath"],Jc),Fe("center",Jc),En("displaylines","",{parse:E=>{const z=[];let it=[];E.beginContext({tabular:!0});do{if(E.end()||E.match("<}>"))break;E.matchColumnSeparator()||E.matchRowSeparator()?(z.push([it]),it=[]):it.push(...E.scan(st=>["<}>","&","\\cr","\\\\","\\tabularnewline"].includes(st)))}while(!0);return E.endContext(),z.push([it]),z},createAtom:E=>new Cs("lines",E.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),bn("array","{columns:colspec}",(E,z,it,st)=>new Cs(E,Mh(z),it,{columns:st[0],mathstyleName:"textstyle"})),bn(["equation","equation*","subequations"],"",(E,z,it)=>new Cs(E,Mh(z),it,{columns:[{align:"c"}]})),bn(["multline","multline*"],"",Jc),bn(["align","align*","aligned","eqnarray"],"",Jc),bn("split","",Jc),bn(["gather","gathered"],"",Jc),bn(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",Jc),bn(["smallmatrix","smallmatrix*"],"[columns:colspec]",Jc),bn(["cases","dcases","rcases"],"",Jc);function rx(E){for(const z of E)for(const it of z)if(it.length>0)return!1;return!0}function Mh(E,z=1){return rx(E)?Array(z).fill([[new Mr({type:"first"}),new $o]]):E.map(it=>it.length===0?[[new Mr({type:"first"})]]:it.map(st=>st.length===0?[new Mr({type:"first"})]:(st[0].type!=="first"&&st.unshift(new Mr({type:"first"})),st)))}function Jc(E,z=[[[]]],it=[],st=[]){switch(z=Mh(z,["split","align","align*","aligned","eqnarray"].includes(E)?2:1),E){case"math":return new Cs(E,z,it,{mathstyleName:"textstyle"});case"displaymath":return new Cs(E,z,it,{mathstyleName:"textstyle"});case"center":return new Cs(E,z,it,{columns:[{align:"c"}]});case"multline":case"multline*":return new Cs(E,z,it,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new Cs(E,z,it,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new Cs(E,z,it,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new Cs(E,z,it,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:Oc(st[0])});case"bmatrix":case"bmatrix*":return new Cs(E,z,it,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:Oc(st[0])});case"Bmatrix":case"Bmatrix*":return new Cs(E,z,it,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:Oc(st[0])});case"vmatrix":case"vmatrix*":return new Cs(E,z,it,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:Oc(st[0])});case"Vmatrix":case"Vmatrix*":return new Cs(E,z,it,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:Oc(st[0])});case"matrix":case"matrix*":return new Cs(E,z,it,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:Oc(st==null?void 0:st[0])});case"smallmatrix":case"smallmatrix*":return new Cs(E,z,it,{mathstyleName:"scriptstyle",columns:Oc(st==null?void 0:st[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new Cs(E,z,it,{mathstyleName:E==="dcases"?"displaystyle":"textstyle",arraystretch:1.2,leftDelim:"\\lbrace",rightDelim:".",columns:[{align:"l"},{gap:1},{align:"l"}]});case"rcases":return new Cs(E,z,it,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new Cs(E,z,it,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let ct=0;for(const Ot of z)ct=Math.max(ct,Ot.length);const vt=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let xt=2;for(;xt<ct;)vt.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),xt+=2;return vt.push({gap:0}),new Cs(E,z,it,{arraycolsep:0,columns:vt,minColumns:2})}}return new Cs(E,z,it,{mathstyleName:"textstyle"})}function Oc(E){return E!=null?E:[{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"}]}function ox(E,z){let it=E.at(E.position);for(;it&&!(it.parent instanceof Cs);)it=it.parent;if(it&&it.type==="array"&&it.environmentName,!it||!(it.parent instanceof Cs)){const st=E.at(E.position);if(it=st,!it.parent.parent){let ct=E.extractAtoms([E.position,E.lastOffset]),vt=E.extractAtoms([0,E.position]);vt.length===0&&(vt=Pg()),ct.length===0&&(ct=Pg());let xt;return z.endsWith("column")?(xt=Jc("split",[[vt,ct]]),E.root=xt,ap(xt,0,0)?lp(E,xt,0,0):ap(xt,0,1)?lp(E,xt,0,1):E.position=E.offsetOf(st)):(xt=Jc("lines",[[vt],[ct]]),E.root=xt,ap(xt,0,0)?lp(E,xt,0,0):ap(xt,1,0)?lp(E,xt,1,0):E.position=E.offsetOf(st)),[void 0,[0,0]]}if(it.parent instanceof qs){const ct=it.parent;let vt=E.extractAtoms([E.position,E.offsetOf(ct.lastChild)]),xt=E.extractAtoms([E.offsetOf(ct.firstChild),E.position]);xt.length===0&&(xt=Pg()),vt.length===0&&(vt=Pg());let Ot="pmatrix";const Kt=ct.leftDelim,Zt=ct.rightDelim;Kt==="("&&(Zt===")"||Zt==="?")?Ot="pmatrix":(Kt==="["||Kt==="\\lbrack")&&(Zt==="]"||Zt==="\\rbrack"||Zt==="?")?Ot="bmatrix":Kt==="\\vert"&&Zt==="\\vert"?Ot="vmatrix":Kt==="\\Vert"&&Zt==="\\Vert"?Ot="Vmatrix":(Kt==="{"||Kt==="\\lbrace")&&(Zt==="."||Zt==="?")&&(Ot="cases");const re=Jc(Ot,z.endsWith("column")?[[xt,vt]]:[[xt],[vt]]);return ct.parent.addChildBefore(re,ct),ct.parent.removeChild(ct),ap(re,0,0)?lp(E,re,0,0):z.endsWith("column")?ap(re,0,1)?lp(E,re,0,1):E.position=E.offsetOf(it):ap(re,1,0)?lp(E,re,1,0):E.position=E.offsetOf(it),[void 0,[0,0]]}}return it&&it.parent instanceof Cs?[it.parent,it.parentBranch]:[void 0,[0,0]]}function ap(E,z,it){const st=E.getCell(z,it);return!st||st.length!==2?!1:st[1].type==="placeholder"}function sx(E,z,it,st){const ct=z.getCell(it,st);return ct?[E.offsetOf(ct[0]),E.offsetOf(ct[ct.length-1])]:-1}function lp(E,z,it,st){const ct=sx(E,z,it,st);typeof ct!="number"&&E.setSelection(ct)}function Ag(E,z,it,st,ct){const vt=z.getCell(it,st);vt&&E.setPositionHandlingPlaceholder(E.offsetOf(vt[ct==="start"?0:vt.length-1]))}function gm(E,z){const[it,[st,ct]]=ox(E,z);if(it)switch(z){case"after row":it.addRowAfter(st),Ag(E,it,st+1,0,"end");break;case"after column":if(it.maxColumns<=it.colCount){E.announce("plonk");return}it.addColumnAfter(ct),Ag(E,it,st,ct+1,"end");break;case"before row":it.addRowBefore(st),Ag(E,it,st,0,"start");break;case"before column":if(it.maxColumns<=it.colCount){E.announce("plonk");return}it.addColumnBefore(ct),Ag(E,it,st,ct,"start");break}}function Ld(E){return E.contentWillChange({inputType:"insertText"})?(gm(E,"after row"),E.contentDidChange({inputType:"insertText"}),!0):!1}function qy(E){return E.contentWillChange({inputType:"insertText"})?(gm(E,"before row"),E.contentDidChange({inputType:"insertText"}),!0):!1}function Wv(E){return E.contentWillChange({inputType:"insertText"})?(gm(E,"after column"),E.contentDidChange({inputType:"insertText"}),!0):!1}function pf(E){return E.contentWillChange({inputType:"insertText"})?(gm(E,"before column"),E.contentDidChange({inputType:"insertText"}),!0):!1}function Lg(E,z){if(!E.contentWillChange({}))return!1;E.mathfield.snapshot();let it=".",st=".";switch(z){case"pmatrix":case"pmatrix*":it="(",st=")";break;case"bmatrix":case"bmatrix*":it="[",st="]";break;case"Bmatrix":case"Bmatrix*":it="\\lbrace",st="\\rbrace";break;case"vmatrix":case"vmatrix*":it="\\vert",st="\\vert";break;case"Vmatrix":case"Vmatrix*":it="\\Vert",st="\\Vert";break;case"matrix":case"matrix*":it=".",st=".";break;case"cases":case"dcases":it="\\lbrace";break;case"rcases":st="\\rbrace";break}const ct=E.at(E.position),vt=ct.type==="array"?ct:E.parentEnvironment;return vt.environmentName=z,vt.leftDelim=it,vt.rightDelim=st,E.contentDidChange({}),!0}function Vv(E,z){let it=E.at(E.position);for(;it&&!(Array.isArray(it.parentBranch)&&it.parent instanceof Cs);)it=it.parent;if(Array.isArray(it==null?void 0:it.parentBranch)&&(it==null?void 0:it.parent)instanceof Cs){const st=it.parent,ct=it.parentBranch;let vt;switch(z){case"row":if(st.rowCount>1){st.removeRow(ct[0]);const xt=st.getCell(Math.max(0,ct[0]-1),ct[1]);vt=E.offsetOf(xt[xt.length-1])}break;case"column":if(st.colCount>st.minColumns){st.removeColumn(ct[1]);const xt=st.getCell(ct[0],Math.max(0,ct[1]-1));vt=E.offsetOf(xt[xt.length-1])}break}vt&&E.setPositionHandlingPlaceholder(vt)}}function ax(E){return E.contentWillChange({inputType:"deleteContent"})?(Vv(E,"row"),E.contentDidChange({inputType:"deleteContent"}),!0):!1}function t1(E){return E.contentWillChange({inputType:"deleteContent"})?(Vv(E,"column"),E.contentDidChange({inputType:"deleteContent"}),!0):!1}hl({addRowAfter:Ld,addColumnAfter:Wv,addRowBefore:qy,addColumnBefore:pf,removeRow:ax,removeColumn:t1,setEnvironment:Lg},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function Pg(){return[new $o]}var Pd=class yw{constructor(z){this.recording=!1,this.model=z,this.reset()}reset(){this.stack=[],this.index=-1,this.lastOp=""}startRecording(){this.recording=!0}stopRecording(){this.recording=!1}canUndo(){return this.index-1>=0}canRedo(){return this.stack.length-1>this.index}stopCoalescing(z){z&&this.index>=0&&(this.stack[this.index].selection=z),this.lastOp=""}undo(){return this.canUndo()?(this.model.setState(this.stack[this.index-1],{silenceNotifications:!1,type:"undo"}),this.index-=1,this.lastOp="",!0):!1}redo(){return this.canRedo()?(this.index+=1,this.model.setState(this.stack[this.index],{silenceNotifications:!1,type:"redo"}),this.lastOp="",!0):!1}pop(){this.canUndo()&&(this.stack.splice(this.index,this.stack.length-this.index),this.index-=1)}snapshot(z){return this.recording?(z&&z===this.lastOp&&this.pop(),this.stack.splice(this.index+1,this.stack.length-this.index-1),this.stack.push(this.model.getState()),this.index+=1,this.stack.length>yw.maximumDepth&&(this.stack.shift(),this.index-=1),this.lastOp=z!=null?z:"",!0):!1}};Pd.maximumDepth=1e3;var lx=Pd;function Wo(E,z,it){if(E.at(z).mode!=="text")return z;const st=it==="backward"?-1:1;let ct;if(At.test(E.at(z).value)){let vt=z,xt;do xt=E.at(vt).mode==="text"&&At.test(E.at(vt).value),vt+=st;while(E.at(vt)&&xt);ct=E.at(vt)?vt-2*st:vt-st}else if(/\s/.test(E.at(z).value)){let vt=z;for(;E.at(vt)&&E.at(vt).mode==="text"&&/\s/.test(E.at(vt).value);)vt+=st;if(!E.at(vt))ct=vt-st;else{let xt=!0;do xt=E.at(vt).mode==="text"&&!/\s/.test(E.at(vt).value),vt+=st;while(E.at(vt)&&xt);ct=E.at(vt)?vt-2*st:vt-st}}else{let vt=z;for(;E.at(vt)&&E.at(vt).mode==="text"&&!/\s/.test(E.at(vt).value);)vt+=st;ct=E.at(vt)?vt:vt-st;let xt=!0;for(;E.at(vt)&&xt;)xt=E.at(vt).mode==="text"&&/\s/.test(E.at(vt).value),xt&&(ct=vt),vt+=st;ct=E.at(vt)?vt-2*st:vt-st}return ct-(st>0?0:1)}function up(E,z,it){var st,ct,vt,xt,Ot,Kt,Zt;const re=E.position;(st=it==null?void 0:it.extend)!=null&&st||E.collapseSelection(z);let Be=E.at(E.position);if(z==="forward"&&(Be.type==="subsup"?(Be=Be.rightSibling,Be||(Be=E.at(E.position+1))):Be=E.at(E.position+1)),!Be)return E.announce("plonk"),!1;let ln=E.offsetOf(Be);if(Be instanceof gh)ln=Wo(E,ln,z);else if(Be instanceof ru)if(Be.isSuggestion)for(console.assert(z==="forward");Be&&Be instanceof ru;)Be.isSuggestion=!1,ln=E.offsetOf(Be),Be=Be.rightSibling;else if(z==="forward"){if(Be=Be.rightSibling,!Be||!(Be instanceof ru))return E.announce("plonk"),!1;for(;Be&&Be instanceof ru&&/[a-zA-Z\*]/.test(Be.value);)ln=E.offsetOf(Be),Be=Be.rightSibling}else{if(Be=Be.leftSibling,!Be||!(Be instanceof ru))return E.announce("plonk"),!1;for(;Be&&Be instanceof ru&&/[a-zA-Z\*]/.test(Be.value);)ln=E.offsetOf(Be),Be=Be.leftSibling}else if(z==="forward"&&Be.type==="mopen"){let Fn=0;do Be.type==="mopen"?Fn+=1:Be.type==="mclose"&&(Fn-=1),Be=Be.rightSibling;while(!Be.isLastSibling&&Fn!==0);ln=E.offsetOf(Be.leftSibling)}else if(z==="backward"&&Be.type==="mclose"){let Fn=0;do Be.type==="mopen"?Fn+=1:Be.type==="mclose"&&(Fn-=1),Be=Be.leftSibling;while(!Be.isFirstSibling&&Fn!==0);ln=E.offsetOf(Be)}else if(z==="backward")if(Be.type==="first")for(;ln>0&&Be.type==="first";)ln-=1,Be=E.at(ln);else{const Fn=Be.type;Be.type==="subsup"&&(ln=E.offsetOf(E.at(ln).leftSibling)),ln-=1;let ei=(ct=E.at(ln))==null?void 0:ct.type;for(;ln>=0&&ei===Fn;)((vt=E.at(ln))==null?void 0:vt.type)==="subsup"?ln=E.offsetOf(E.at(ln).leftSibling):ln-=1,ei=E.at(ln).type}else{const{type:Fn}=Be;let ei=(xt=E.at(ln))==null?void 0:xt.type;const{lastOffset:hr}=E;for(;ln<=hr&&(ei===Fn||ei==="subsup");){for(;((Ot=E.at(ln).rightSibling)==null?void 0:Ot.type)==="subsup";)ln=E.offsetOf(E.at(ln).rightSibling);ln+=1,ei=(Kt=E.at(ln))==null?void 0:Kt.type}ln-=1}if((Zt=it==null?void 0:it.extend)!=null&&Zt){if(!E.setSelection(E.anchor,ln))return E.announce("plonk"),!1}else{if(ln===E.position)return E.announce("plonk"),!1;E.position=ln}return E.announce("move",re),E.mathfield.stopCoalescingUndo(),!0}function Xi(E,z,it){var st,ct;if(it=it!=null?it:{extend:!1},E.mathfield.adoptStyle=z==="backward"?"right":"left",z!=="forward"){const[Ot,Kt]=q1(E);Ot!==void 0&&Kt!==void 0&&E.deleteAtoms([Ot,Kt])}if(z==="upward")return gu(E,it);if(z==="downward")return cx(E,it);if(it.extend){let Ot=Qc(E,E.position,z);Ot<0&&(Ot=0),Ot>E.lastOffset&&(Ot=E.lastOffset);const Kt=E.setSelection(E.anchor,Ot);return E.mathfield.stopCoalescingUndo(),Kt}if(E.selectionIsPlaceholder){E.collapseSelection(z);const Ot=Xi(E,z);return E.mathfield.stopCoalescingUndo(),Ot}let vt=E.position;const xt=vt;if(E.collapseSelection(z)?(vt=E.position,e1(E,vt)||(vt=Qc(E,vt,z))):vt=Qc(E,vt,z),vt<0||vt>E.lastOffset){let Ot=!0;return E.silenceNotifications||(Ot=(ct=(st=E.mathfield.host)==null?void 0:st.dispatchEvent(new CustomEvent("move-out",{detail:{direction:z},cancelable:!0,bubbles:!0,composed:!0})))!=null?ct:!0),Ot&&E.announce("plonk"),Ot}return E.setPositionHandlingPlaceholder(vt),E.mathfield.stopCoalescingUndo(),E.announce("move",xt),!0}function Qc(E,z,it){return z=z+(it==="forward"?1:-1),z<0||z>E.lastOffset||e1(E,z)?z:Qc(E,z,it)}function e1(E,z){var it;const st=E.at(z);let ct=st.parent;for(;ct&&!ct.inCaptureSelection;)ct=ct.parent;return!(ct!=null&&ct.inCaptureSelection||(it=st.parent)!=null&&it.skipBoundary&&(!st.isFirstSibling&&st.isLastSibling||st.type==="first")||E.mathfield.hasEditablePrompts&&!st.parentPrompt)}function ux(E,z,it){let st=1/0,ct=0;for(;ct<z.length;ct++){const vt=Vf(E.getHTMLElement(z[ct])).right,xt=Math.abs(it-vt);if(xt<=st)st=xt;else break}return z[ct-1]}function Ng(E,z,it,st,ct){const vt=E.mathfield.hasEditablePrompts,xt=vt?it.filter(Zt=>Zt.type==="prompt"&&!Zt.captureSelection):it,Ot=Vf(E.mathfield.getHTMLElement(z)).right,Kt=E.offsetOf(ux(E.mathfield,xt,Ot))-(vt?1:0);if(st){const[Zt,re]=E.selection.ranges[0];let Be;Kt<(ct==="up"?Zt:re)?Be={ranges:[[Kt,re]],direction:"backward"}:Be={ranges:[[Zt,Kt]],direction:"forward"},E.setSelection(Be)}else E.setPositionHandlingPlaceholder(Kt);E.announce(`move ${ct}`)}function gu(E,z){var it,st;const ct=(it=z==null?void 0:z.extend)!=null?it:!1;ct||E.collapseSelection("backward");const vt=()=>{var Kt,Zt;let re=!0;return E.silenceNotifications||(re=(Zt=(Kt=E.mathfield.host)==null?void 0:Kt.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?Zt:!0),E.announce(re?"plonk":"line"),re},xt=E.at(E.position);let Ot=xt;for(;Ot&&Ot.parentBranch!=="below"&&!(Array.isArray(Ot.parentBranch)&&Ot.parent instanceof Cs);)Ot=Ot.parent;if(Array.isArray(Ot==null?void 0:Ot.parentBranch)&&Ot.parent instanceof Cs){const Kt=Ot.parent;if(Ot.parentBranch[0]<1)return vt();const Zt=Ot.parentBranch[0]-1,re=Kt.array[Zt][Ot.parentBranch[1]];if(!re.some(ln=>ln.type==="prompt"&&!ln.captureSelection)&&E.mathfield.hasEditablePrompts)return vt();Ng(E,xt,re,ct,"up")}else if(Ot){const Kt=(st=Ot.parent.branch("above"))!=null?st:Ot.parent.createBranch("above");if(!Kt.some(re=>re.type==="prompt"&&re.placeholderId)&&E.mathfield.hasEditablePrompts)return vt();Ng(E,xt,Kt,ct,"up")}else return vt();return E.mathfield.stopCoalescingUndo(),!0}function cx(E,z){var it,st;const ct=(it=z==null?void 0:z.extend)!=null?it:!1;ct||E.collapseSelection("forward");const vt=()=>{var Kt,Zt;let re=!0;return E.silenceNotifications||(re=(Zt=(Kt=E.mathfield.host)==null?void 0:Kt.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?Zt:!0),E.announce(re?"plonk":"line"),re},xt=E.at(E.position);let Ot=xt;for(;Ot&&Ot.parentBranch!=="above"&&!(Array.isArray(Ot.parentBranch)&&Ot.parent instanceof Cs);)Ot=Ot.parent;if(Array.isArray(Ot==null?void 0:Ot.parentBranch)&&Ot.parent instanceof Cs){const Kt=Ot.parent;if(Ot.parentBranch[0]+1>Kt.array.length-1)return vt();const Zt=Ot.parentBranch[0]+1,re=Kt.array[Zt][Ot.parentBranch[1]];if(!re.some(ln=>ln.type==="prompt"&&!ln.captureSelection)&&E.mathfield.hasEditablePrompts)return vt();Ng(E,xt,re,ct,"down")}else if(Ot){const Kt=(st=Ot.parent.branch("below"))!=null?st:Ot.parent.createBranch("below");if(!Kt.some(re=>re.type==="prompt")&&E.mathfield.hasEditablePrompts)return vt();Ng(E,xt,Kt,ct,"down")}else return vt();return!0}function Tg(E){const z=E.position,it=E.at(z).parent;return it!=null&&it.parent?(E.position=E.offsetOf(it),E.mathfield.stopCoalescingUndo(),E.announce("move",z),!0):(E.announce("plonk"),!1)}function Uv(E){let z=0,it=E.at(E.position),st=!1;for(;it;)(!it.hasEmptyBranch("superscript")||!it.hasEmptyBranch("subscript"))&&(z+=1),it.hasEmptyBranch("superscript")?it.hasEmptyBranch("subscript")||(st=!1):st=!0,it=it.parent;return st?z:0}function Dg(E){let z=0,it=E.at(E.position),st=!1;for(;it;)(!it.hasEmptyBranch("superscript")||!it.hasEmptyBranch("subscript"))&&(z+=1),it.hasEmptyBranch("superscript")?it.hasEmptyBranch("subscript")||(st=!0):st=!1,it=it.parent;return st?z:0}function n1(E){var z;if(E.collapseSelection(),Uv(E)>=E.mathfield.options.scriptDepth[1])return E.announce("plonk"),!1;let it=E.at(E.position);return it.subsupPlacement===void 0&&(((z=it.rightSibling)==null?void 0:z.type)!=="subsup"&&it.parent.addChildAfter(new Vl({style:it.computedStyle}),it),it=it.rightSibling),it.createBranch("superscript"),E.setSelection(E.getSiblingsRange(E.offsetOf(it.superscript[0]))),!0}function i1(E){var z;if(E.collapseSelection(),Dg(E)>=E.mathfield.options.scriptDepth[0])return E.announce("plonk"),!1;let it=E.at(E.position);return it.subsupPlacement===void 0&&(((z=E.at(E.position+1))==null?void 0:z.type)!=="subsup"&&it.parent.addChildAfter(new Vl({style:E.at(E.position).computedStyle}),it),it=E.at(E.position+1)),it.createBranch("subscript"),E.setSelection(E.getSiblingsRange(E.offsetOf(it.subscript[0]))),!0}function r1(){function E(Kt){const Zt=[],re=[];return[...Kt.querySelectorAll(`input, select, textarea, a[href], button,
|
|
|
[tabindex], audio[controls], video[controls],
|
|
|
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(z).forEach((ln,Fn)=>{const ei=st(ln);ei===0?Zt.push(ln):re.push({documentOrder:Fn,tabIndex:ei,node:ln})}),re.sort((ln,Fn)=>ln.tabIndex===Fn.tabIndex?ln.documentOrder-Fn.documentOrder:ln.tabIndex-Fn.tabIndex).map(ln=>ln.node).concat(Zt)}function z(Kt){return!(!it(Kt)||ct(Kt)||st(Kt)<0)}function it(Kt){return!(Kt.disabled||Kt.type==="hidden"&&Kt.tagName.toUpperCase()==="INPUT"||Ot(Kt))}function st(Kt){var Zt;const re=Number.parseInt((Zt=Kt.getAttribute("tabindex"))!=null?Zt:"NaN",10);return Number.isNaN(re)?Kt.contentEditable==="true"||(Kt.nodeName==="AUDIO"||Kt.nodeName==="VIDEO")&&Kt.getAttribute("tabindex")===null?0:Kt.tabIndex:re}function ct(Kt){return Kt.tagName.toUpperCase()==="INPUT"&&Kt.type==="radio"&&!xt(Kt)}function vt(Kt,Zt){for(const re of Kt)if(re.checked&&re.form===Zt)return re;return null}function xt(Kt){var Zt;if(!Kt.name)return!0;const Be=((Zt=Kt.form)!=null?Zt:Kt.ownerDocument).querySelectorAll('input[type="radio"][name="'+Kt.name+'"]'),ln=vt(Be,Kt.form);return!ln||ln===Kt}function Ot(Kt){if(!we()||Kt===document.activeElement||Kt.contains(document.activeElement))return!1;if(getComputedStyle(Kt).visibility==="hidden")return!0;const Zt=Kt.getBoundingClientRect();if(Zt.width===0||Zt.height===0)return!0;for(;Kt;){if(getComputedStyle(Kt).display==="none")return!0;Kt=Kt.parentElement}return!1}return we()?E(document.body):[]}function Uu(E,z,it="forward"){const st=E.position;if(Array.isArray(z)){const ct=E.offsetOf(z[0]),vt=E.offsetOf(z[z.length-1]);return it==="forward"?E.setSelection(ct,vt):E.setSelection(vt,ct),E.announce("move",st),E.mathfield.stopCoalescingUndo(),!0}return it==="forward"?Uu(E,[z.leftSibling,z]):Uu(E,[z,z.leftSibling])}function Eh(E,z){const it=E.position;if(typeof z=="number"&&(z=E.at(z)),z.type==="prompt")E.setSelection(E.offsetOf(z.firstChild),E.offsetOf(z.lastChild));else{const st=E.offsetOf(z);z.type==="placeholder"?E.setSelection(st-1,st):E.position=st}return E.announce("move",it),E.mathfield.stopCoalescingUndo(),!0}function Og(E,z,it=!0){var st,ct;const vt=z==="forward"?1:-1;E.at(E.anchor).type==="placeholder"&&Xi(E,z);let xt;const Ot=E.at(E.anchor).parentPrompt;Ot?z==="forward"?xt=E.offsetOf(Ot)+1:xt=E.offsetOf(Ot.leftSibling):xt=Math.max(E.position+vt,0);const Kt=Zv(E,xt,z);if(!Kt||z==="forward"&&E.offsetOf(Kt)<xt||z==="backward"&&E.offsetOf(Kt)>xt){if(!it||!((ct=(st=E.mathfield.host)==null?void 0:st.dispatchEvent(new CustomEvent("move-out",{detail:{direction:z},cancelable:!0,bubbles:!0,composed:!0})))==null||ct))return E.announce("plonk"),!1;const re=r1();if(!document.activeElement||re.length<=1)return E.announce("plonk"),!1;let Be=re.indexOf(document.activeElement)+vt;return Be<0&&(Be=re.length-1),Be>=re.length&&(Be=0),re[Be].focus(),E.mathfield.stopCoalescingUndo(),!0}return Eh(E,Kt),!0}function Zv(E,z=0,it="forward"){return E.findAtom(st=>st.type==="placeholder"||st.type==="prompt"||!E.mathfield.readOnly&&st.treeDepth>2&&st.isFirstSibling&&st.isLastSibling,z,it)}hl({moveToOpposite:E=>{const z={superscript:"subscript",subscript:"superscript",above:"below",below:"above"},it=E.at(E.position),{parent:st}=it;if(!st)return E.announce("plonk"),!1;const ct=it.parentBranch;let vt;if(typeof ct=="string"&&(vt=z[ct]),!vt){const Ot=it.subsupPlacement?i1(E):n1(E);return E.mathfield.stopCoalescingUndo(),Ot}st.branch(vt)||st.createBranch(vt);const xt=E.setSelection(E.getBranchRange(E.offsetOf(st),vt));return E.mathfield.stopCoalescingUndo(),xt},moveBeforeParent:E=>{const{parent:z}=E.at(E.position);return z?(E.position=E.offsetOf(z),E.mathfield.stopCoalescingUndo(),!0):(E.announce("plonk"),!1)},moveAfterParent:E=>Tg(E),moveToNextChar:E=>Xi(E,"forward"),moveToPreviousChar:E=>Xi(E,"backward"),moveUp:E=>Xi(E,"upward"),moveDown:E=>Xi(E,"downward"),moveToNextWord:E=>up(E,"forward"),moveToPreviousWord:E=>up(E,"backward"),moveToGroupStart:E=>{const z=E.offsetOf(E.at(E.position).firstSibling);return z===E.position?(E.announce("plonk"),!1):(E.position=z,E.mathfield.stopCoalescingUndo(),!0)},moveToGroupEnd:E=>{const z=E.offsetOf(E.at(E.position).lastSibling);return z===E.position?(E.announce("plonk"),!1):(E.position=z,E.mathfield.stopCoalescingUndo(),!0)},moveToNextGroup:E=>{var z,it,st,ct;if(E.position===E.lastOffset&&E.anchor===E.lastOffset)return Og(E,"forward");const vt=E.at(E.position);if(vt.mode==="text"){if(E.selectionIsCollapsed){let ln=vt;for(;ln&&ln.mode==="text";)ln=ln.leftSibling;let Fn=vt;for(;((z=Fn.rightSibling)==null?void 0:z.mode)==="text";)Fn=Fn.rightSibling;if(ln&&Fn)return Uu(E,[ln,Fn])}if(vt.rightSibling.mode==="text"){let ln=vt;for(;ln&&ln.mode==="text";)ln=ln.rightSibling;return ln?(Eh(E,(it=ln.leftSibling)!=null?it:ln),E.mathfield.switchMode("math"),!0):Eh(E,E.lastOffset)}}const Ot=E.at(E.anchor).parentPrompt,Kt=Ot?E.offsetOf(Ot)+1:Math.max(E.position+1,0),Zt=Zv(E,Kt,"forward");if(Zt)return Eh(E,Zt);const re=hx(E,vt,ln=>ln.type==="leftright"||ln.type==="text","forward");if(re){if(re.mode==="text"){let ln=re;for(;ln&&ln.mode==="text";)ln=ln.rightSibling;return Uu(E,[(st=re.leftSibling)!=null?st:re,(ct=ln.leftSibling)!=null?ct:ln])}return Uu(E,re)}const Be=vt.parent;if(Be){if(Be.type==="leftright"||Be.type==="surd")return Uu(E,Be);if(vt.parentBranch==="superscript"&&Be.subscript)return Uu(E,Be.subscript);if(vt.parentBranch==="above"&&Be.below)return Uu(E,Be.below);if(vt.parentBranch==="superscript"||vt.parentBranch==="subscript")return Eh(E,Be);if(vt.parentBranch==="above"||vt.parentBranch==="below")return Uu(E,Be)}return Eh(E,E.lastOffset)},moveToPreviousGroup:E=>{var z;if(E.position===0&&E.anchor===0)return Og(E,"backward");let it=E.at(E.position);const st=it.mode;if(st==="text"){if(E.selectionIsCollapsed){let Ot=it;for(;Ot&&Ot.mode==="text";)Ot=Ot.leftSibling;let Kt=it;for(;((z=Kt.rightSibling)==null?void 0:z.mode)==="text";)Kt=Kt.rightSibling;if(Ot&&Kt)return Uu(E,[Ot,Kt])}for(;it&&it.mode==="text";)it=it.leftSibling;return it?Eh(E,it):Eh(E,0)}const ct=E.at(E.anchor).parentPrompt,vt=ct?E.offsetOf(ct.leftSibling):Math.max(E.position-1,0),xt=Zv(E,vt,"backward");if(xt)return Eh(E,xt);if(st==="math"){const Ot=hx(E,it,Zt=>Zt.type==="leftright"||Zt.type==="text","backward");if(Ot){if(Ot.mode==="text"){let Zt=Ot;for(;Zt&&Zt.mode==="text";)Zt=Zt.leftSibling;return Uu(E,[Ot,Zt])}return Uu(E,Ot)}const Kt=it.parent;if(Kt){if(Kt.type==="leftright"||Kt.type==="surd")return Uu(E,Kt);if(it.parentBranch==="subscript"&&Kt.superscript)return Uu(E,Kt.superscript);if(it.parentBranch==="below"&&Kt.above)return Uu(E,Kt.above);if(it.parentBranch==="superscript"||it.parentBranch==="subscript")return Eh(E,Kt);if(it.parentBranch==="above"||it.parentBranch==="below")return Uu(E,Kt)}return Eh(E,0)}return!1},moveToMathfieldStart:E=>E.selectionIsCollapsed&&E.position===0?(E.announce("plonk"),!1):(E.position=0,E.mathfield.stopCoalescingUndo(),!0),moveToMathfieldEnd:E=>E.selectionIsCollapsed&&E.position===E.lastOffset?(E.announce("plonk"),!1):(E.position=E.lastOffset,E.mathfield.stopCoalescingUndo(),!0),moveToSuperscript:n1,moveToSubscript:i1},{target:"model",changeSelection:!0}),hl({moveToNextPlaceholder:E=>Og(E,"forward"),moveToPreviousPlaceholder:E=>Og(E,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function hx(E,z,it,st){if(st==="forward"){let vt=z.rightSibling;for(;vt&&!it(vt);)vt=vt.rightSibling;return vt}let ct=z.leftSibling;for(;ct&&!it(ct);)ct=ct.leftSibling;return ct}function f0(E,z,it){typeof z=="function"&&(it=z,z=1/0),z===void 0&&(z=1/0);let st=E.position,ct=!1,vt="";for(;!ct;){const xt=E.at(st);ct=z===0||xt===void 0||xt.type==="first"||xt.mode!=="math"||!(xt.type&&/mord|mpunct|operator/.test(xt.type)||xt.type==="mop"&&/[a-zA-Z ]+/.test(xt.value))||!xt.hasEmptyBranch("superscript")||!xt.hasEmptyBranch("subscript")||typeof it=="function"&&!it(xt),ct||(xt.mode="text",xt.command=xt.value,xt.verbatimLatex=void 0,vt+=xt.value),st-=1,z-=1}E.contentDidChange({data:vt,inputType:"insertText"})}function mf(E,z,it){typeof z=="function"&&(it=z,z=1/0),z===void 0&&(z=1/0);let st=E.position,ct=!1;const vt=[];for(;!ct;){const xt=E.at(st);ct=z===0||!xt||xt.type==="first"||xt.isFirstSibling||xt.mode!=="text"||xt.value===" "||typeof it=="function"&&!it(xt),ct||(vt.push(Mr.serialize([xt],{defaultMode:"math"})),xt.mode="math"),st-=1,z-=1}$r(E),E.contentDidChange({data:Ts(vt),inputType:"insertText"})}function $r(E){var z;let it=E.position-1;for(;it>=0&&((z=E.at(it))==null?void 0:z.mode)==="math";)it-=1;if(!(it<0)&&E.at(it).mode==="text"&&E.at(it).value===" "&&E.at(it-1).mode==="math"){E.at(it-1).parent.removeChild(E.at(it-1));const st=E.silenceNotifications;E.silenceNotifications=!0,E.position-=1,E.silenceNotifications=st,E.contentDidChange({inputType:"deleteContent"})}}function o1(E){let z="",it=E.position,st=!1;for(;!st;){const ct=E.at(it);st=!(ct&&(ct.mode==="text"||ct.mode==="math"&&ct.type&&/mord|mpunct/.test(ct.type))),st||(z=ct.value+z),it-=1}return z}function s1(E,z,it){const{model:st}=E;if(st.mode==="latex"||!st.at(st.position).isLastSibling||!it||!Dc(it))return!1;const ct=s0(it);if(!st.selectionIsCollapsed)return!!(E.model.mode==="text"&&/[/_^]/.test(ct));const vt=o1(st)+ct;if(E.model.mode==="text"){if(z==="Esc"||/[/\\]/.test(ct))return!0;if(/[\^_]/.test(ct))return/(^|\s)[a-zA-Z][^_]$/.test(vt)&&mf(st,1),!0;const xt={")":"(","}":"{","]":"["}[ct],{parent:Ot}=st.at(st.position);if(xt&&Ot instanceof qs&&Ot.leftDelim===xt)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(vt))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(ct))return!0;if(/(^|[^a-zA-Z'’])[a-zA-Z] $/.test(vt))return mf(st,1),!1;if(/\D\.[^\d\s]$/.test(vt)){mf(st,1);const Kt=st.at(st.position);return Kt.value="\u22C5",Kt.style.variant="normal",Kt.command="\\cdot",Kt.verbatimLatex=void 0,st.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(vt)||/\.\d$/.test(vt)||/\([\d+\-.]$/.test(vt))return mf(st,1),!0;if(/\([a-z][,;]$/.test(vt))return mf(st,2),!0;if(/[\d+\-=><*|]$/.test(ct))return $r(st),!0}else{if(z==="[Space]")return f0(st,void 0,xt=>/[a-z][:,;.]$/.test(xt.value)),!0;if(/[a-zA-Z]{3,}$/.test(vt)&&!/(dxd|abc|xyz|uvw)$/.test(vt))return f0(st,void 0,xt=>/[a-zA-Z]/.test(xt.value)),!0;if(/(^|\W)(if)$/i.test(vt))return f0(st,1),!0;if(/(\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5){3,}$/u.test(vt)&&!/(αβγ)$/.test(vt))return f0(st,void 0,xt=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(xt.value)),!0;if(ct==="?"||ct==="."&&!/[\d-+]\.$/.test(vt))return!0}return!1}function dx(E,z){if(!E.isSelectionEditable||!E.keystrokeCaptionVisible)return;const it=Pl(),st=E.element.getBoundingClientRect();it.style.left=`${st.left}px`,it.style.top=`${st.top-64}px`,it.innerHTML=window.MathfieldElement.createHTML("<span>"+(dg(z)||z)+"</span>"+it.innerHTML),it.style.visibility="visible",setTimeout(()=>{it.childNodes.length>0&&it.childNodes[it.childNodes.length-1].remove(),it.childNodes.length===0&&(it.style.visibility="hidden")},3e3)}function fx(E){if(E.keystrokeCaptionVisible=!E.keystrokeCaptionVisible,E.keystrokeCaptionVisible){const z=Pl();z.innerHTML=""}else{const z=rm("mathlive-keystroke-caption-panel");z.style.visibility="hidden"}return!1}function Pl(){const E=document.getElementById("mathlive-keystroke-caption-panel");return E||(dc("keystroke-caption"),dc("core"),rm("mathlive-keystroke-caption-panel"))}function ji(){document.getElementById("mathlive-keystroke-caption-panel")&&(gg("mathlive-keystroke-caption-panel"),rt("core"),rt("keystroke-caption"))}function p0(E,z){var it,st,ct;const{model:vt}=E,xt=Wy(z);if(z.isTrusted){Lv(z);const Fn=hf();E.keyboardLayout!==Fn.id&&(E.keyboardLayout=Fn.id,E._keybindings=void 0)}if(clearTimeout(E.inlineShortcutBufferFlushTimer),E.inlineShortcutBufferFlushTimer=0,dx(E,xt),z.isTrusted&&z.defaultPrevented)return E.flushInlineShortcutBuffer(),!1;let Ot,Kt="",Zt;const re=E.inlineShortcutBuffer;if(E.isSelectionEditable){if(vt.mode==="math")if(xt==="[Backspace]")re.pop();else if(!Dc(z))E.flushInlineShortcutBuffer();else{const Fn=s0(z),ei=[...(st=(it=re[re.length-1])==null?void 0:it.keystrokes)!=null?st:[],Fn];re.push({state:vt.getState(),keystrokes:ei,leftSiblings:Nd(E)});let hr=0,Gr="";for(;!Ot&&hr<ei.length;)Zt=re.length-(ei.length-hr),Gr=ei.slice(hr).join(""),Ot=ng(re[Zt].leftSiblings,Gr,E.options.inlineShortcuts),!Ot&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(Gr)&&(Ot=E.options.onInlineShortcut(E,Gr)),hr+=1;E.flushInlineShortcutBuffer({defer:!0})}E.options.smartMode&&(Ot?E.switchMode("math"):s1(E,xt,z)&&(E.switchMode({math:"text",text:"math"}[vt.mode]),Kt=""))}if(!Ot){if(Kt||(Kt=kd(E.keybindings,vt.mode,z)),!Kt&&(xt==="[Enter]"||xt==="[Return]")){let Fn=!1;return vt.contentWillChange({inputType:"insertLineBreak"})&&(E.host&&(Fn=!E.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),Fn||z.preventDefault&&(z.preventDefault(),z.stopPropagation()),vt.contentDidChange({inputType:"insertLineBreak"})),Fn}if((!Kt||xt==="[Space]")&&vt.mode==="math"){if(xt==="[Space]"){if(E.adoptStyle="none",E.flushInlineShortcutBuffer(),E.options.mathModeSpace)return ts.insert(vt,E.options.mathModeSpace,{format:"latex",mode:"math"}),E.snapshot("insert-space"),Kt="",E.dirty=!0,E.scrollIntoView(),z.preventDefault&&(z.preventDefault(),z.stopPropagation()),!1;const Fn=vt.at(vt.position+1),ei=vt.at(vt.position-1);if((Fn==null?void 0:Fn.mode)==="text"||(ei==null?void 0:ei.mode)==="text")return ts.insert(vt," ",{mode:"text"}),E.snapshot("insert-space"),E.dirty=!0,E.scrollIntoView(),!1}(ct=vt.at(vt.position))!=null&&ct.isDigit()&&window.MathfieldElement.decimalSeparator===","&&s0(z)===","&&(Kt="insertDecimalSeparator")}}if(!Ot&&!Kt){if(vt.mathfield.smartFence){if(vm(vt,s0(z),E.effectiveStyle))return E.dirty=!0,E.scrollIntoView(),z.preventDefault&&z.preventDefault(),!1}else{const{parent:Fn}=vt.at(vt.position);if(Fn instanceof qs&&Fn.rightDelim==="?"&&vt.at(vt.position).isLastSibling&&/^[)}\]|]$/.test(xt))return E.snapshot(),Fn.isDirty=!0,Fn.rightDelim=xt,vt.position+=1,vt.selectionDidChange(),vt.contentDidChange({data:s0(z),inputType:"insertText"}),E.snapshot("insert-fence"),E.dirty=!0,E.scrollIntoView(),z.preventDefault&&z.preventDefault(),!1;if(!vt.selectionIsCollapsed){const ei=s0(z);if(ei==="("||ei==="{"||ei==="["){const hr={"(":"(","{":"\\lbrace","[":"\\lbrack"}[ei],Gr={"(":")","{":"\\rbrace","[":"\\rbrack"}[ei],[$i,Nr]=Va(vt.selection);return E.snapshot(),vt.position=Nr,ts.insert(vt,Gr,{format:"latex"}),vt.position=$i,ts.insert(vt,hr,{format:"latex"}),vt.setSelection($i+1,Nr+1),vt.contentDidChange({data:ei,inputType:"insertText"}),E.snapshot("insert-fence"),E.dirty=!0,E.scrollIntoView(),z.preventDefault&&z.preventDefault(),!1}}}return!0}const Be=vt.at(Math.max(vt.position,vt.anchor)),{parent:ln}=Be;if(Kt==="moveAfterParent"&&(ln==null?void 0:ln.type)==="leftright"&&Be.isLastSibling&&E.options.smartFence&&vm(vt,".",E.defaultStyle)&&(Kt="",nl(E)),E.keyboardDelegate.cancelComposition(),Kt)E.executeCommand(Kt);else if(Ot){const Fn=E.effectiveStyle;vt.setState(re[Zt].state);const ei=re[re.length-1].keystrokes;for(const hr of ei)ts.insert(vt,hr,{silenceNotifications:!0,style:Fn});E.snapshot("insert-shortcut"),vt.setState(re[Zt].state),vt.deferNotifications({content:!0,selection:!0,data:Ot,type:"insertText"},()=>(ts.insert(vt,Ot,{format:"latex",style:Fn}),$r(E.model),Ot.endsWith(" ")&&(E.switchMode("text"),ts.insert(vt," ",{style:Fn,mode:"text"})),E.snapshot(),vt.selectionIsCollapsed||E.flushInlineShortcutBuffer(),!0)),E.dirty=!0,vt.announce("replacement")}return E.scrollIntoView(),z.preventDefault&&z.preventDefault(),!1}function Gv(E,z,it){const{model:st}=E;if(!E.isSelectionEditable){st.announce("plonk");return}it!=null||(it={}),it.focus&&E.focus(),it.feedback&&window.MathfieldElement.playSound("keypress"),typeof it.mode=="string"&&(E.switchMode(it.mode),E.snapshot());let ct=Vp(z);const vt=window.mathVirtualKeyboard;if(vt!=null&&vt.isShifted&&(ct=typeof ct=="string"?ct.toUpperCase():ct.map(Kt=>Kt.toUpperCase())),it.simulateKeystroke){let Kt=!0;for(const Zt of ct)p0(E,new KeyboardEvent("keypress",{key:Zt}))&&(Kt=!1);if(Kt)return}const xt=st.at(st.position),Ot=jt(jt({},xt.computedStyle),E.defaultStyle);if(st.selectionIsCollapsed||(st.deleteAtoms(Va(st.selection)),E.snapshot("delete")),st.mode==="latex")st.deferNotifications({content:!0,selection:!0,data:z,type:"insertText"},()=>{ep(E);for(const Kt of ct)ts.insert(st,Kt);E.snapshot("insert-latex"),im(E)});else if(st.mode==="text"){for(const Kt of ct)ts.insert(st,Kt,{style:Ot});E.snapshot("insert-text")}else if(st.mode==="math")for(const Kt of ct)Yv(E,Kt,Ot,xt);E.dirty=!0,E.scrollIntoView()}function Nd(E){const z=E.model,it=[];let st=z.at(Math.min(z.position,z.anchor));for(;st.type!=="first";)it.push(st),st=st.leftSibling;return it}function Yv(E,z,it,st){const ct=E.model;let vt={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[z];if(z===" "&&E.options.mathModeSpace&&(vt=["insert",E.options.mathModeSpace]),vt){E.executeCommand(vt);return}if(/\d/.test(z)&&E.options.smartSuperscript&&st.parentBranch==="superscript"&&st.parent.type!=="mop"&&st.parent.type!=="operator"&&st.parent.type!=="extensible-symbol"&&st.hasNoSiblings){a1(ct),ts.insert(ct,z,{style:it}),E.snapshot(),Tg(ct),E.snapshot();return}if(/[a-zA-Z0-9]/.test(z)&&E.adoptStyle!=="none"){const xt=E.adoptStyle==="left"?st:st.parent?st.rightSibling:null;(xt==null?void 0:xt.type)==="mord"&&/[a-zA-Z0-9]/.test(xt.value)&&(it=jt({},it),xt.style.variant&&(it.variant=xt.style.variant),xt.style.variantStyle&&(it.variantStyle=xt.style.variantStyle))}ts.insert(ct,z,{style:it}),E.snapshot(`insert-${ct.at(ct.position).type}`)}function a1(E){E.selectionIsCollapsed||(E.deleteAtoms(Va(E.selection)),E.mathfield.snapshot("delete"))}function vm(E,z,it){if(!z||E.mode!=="math")return!1;const st=E.at(E.position),{parent:ct}=st,vt={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[z];if(!vt)return!1;const xt=dt[vt],Ot=pt[vt];if(!E.selectionIsCollapsed){E.mathfield.snapshot();const[Kt,Zt]=Va(E.selection),re=E.extractAtoms([Kt,Zt]),Be=ct.addChildrenAfter([new qs("left...right",re,{leftDelim:vt,rightDelim:Ot})],E.at(Kt));return E.setSelection(E.offsetOf(Be.firstChild),E.offsetOf(Be.lastChild)),E.mathfield.snapshot("insert-fence"),E.contentDidChange({data:vt,inputType:"insertText"}),!0}if(vt==="|"){const Kt=ct instanceof qs?ct.leftDelim+ct.rightDelim:"";if(Kt==="\\lbrace\\rbrace"||Kt==="\\{\\}"||Kt==="\\lbrace?")return E.mathfield.snapshot(),ts.insert(E,"\\,\\middle\\vert\\,",{format:"latex",style:it}),E.mathfield.snapshot("insert-fence"),E.contentDidChange({data:vt,inputType:"insertText"}),!0}if(Ot){if(ct instanceof qs&&ct.firstChild===st&&(ct.leftDelim==="?"||ct.leftDelim==="."))return ct.leftDelim=vt,ct.isDirty=!0,E.mathfield.snapshot(),E.contentDidChange({data:vt,inputType:"insertText"}),E.mathfield.snapshot("insert-fence"),!0;if(!(ct instanceof qs)){let Be=st;for(;Be&&!(Be.type==="mclose"&&Be.value===Ot);)Be=Be.rightSibling;if(Be){E.mathfield.snapshot();const ln=E.extractAtoms([E.offsetOf(st),E.offsetOf(Be)]);return ln.pop(),ct.addChildrenAfter([new qs("left...right",ln,{leftDelim:vt,rightDelim:Ot})],st),E.position=E.offsetOf(ct.firstChild)+1,E.contentDidChange({data:vt,inputType:"insertText"}),E.mathfield.snapshot("insert-fence"),!0}}const Kt=E.offsetOf(st.lastSibling);let Zt;for(Zt=E.position;Zt<=Kt;Zt++){const Be=E.at(Zt);if(Be instanceof qs&&(Be.leftDelim==="?"||Be.leftDelim===".")&&Bg(vt,Be.rightDelim))break}const re=E.at(Zt);if(Zt<=Kt&&re instanceof qs){re.leftDelim=vt,E.mathfield.snapshot();let Be=E.extractAtoms([E.position,Zt-1]);return Be=Be.filter(ln=>ln.type!=="first"),re.addChildren(Be,re.parentBranch),E.position+=1,E.contentDidChange({data:vt,inputType:"insertText"}),E.mathfield.snapshot("insert-fence"),!0}if(ct instanceof qs&&(ct.leftDelim==="?"||ct.leftDelim===".")&&Bg(vt,ct.rightDelim)){ct.isDirty=!0,ct.leftDelim=vt,E.mathfield.snapshot();const Be=E.extractAtoms([E.offsetOf(st.firstSibling),E.position]);for(const ln of Be)ct.parent.addChildBefore(ln,ct);return E.contentDidChange({data:vt,inputType:"insertText"}),E.mathfield.snapshot("insert-fence"),!0}if(!(ct instanceof qs&&ct.leftDelim==="|")){if(E.mathfield.snapshot(),ts.insert(E,`\\left${vt}\\right?`,{format:"latex",style:it}),st.lastSibling.type!=="first"){const Be=E.offsetOf(st.lastSibling),ln=E.extractAtoms([E.position,Be]);E.at(E.position).body=ln,E.position-=1}return E.mathfield.snapshot("insert-fence"),!0}}if(xt){let Kt=st;for(;Kt;){if(Kt.type==="mopen"&&Kt.value===xt){E.mathfield.snapshot();const Fn=Kt.leftSibling,ei=E.extractAtoms([E.offsetOf(Kt.leftSibling),E.offsetOf(st)]);ei.shift();const hr=new qs("left...right",ei,{leftDelim:xt,rightDelim:vt});return ct.addChildrenAfter([hr],Fn),E.position=E.offsetOf(hr),E.contentDidChange({data:vt,inputType:"insertText"}),E.mathfield.snapshot("insert-fence"),!0}Kt=Kt.leftSibling}if(ct instanceof qs&&st.isLastSibling&&cp(ct.leftDelim,vt))return E.mathfield.snapshot(),ct.isDirty=!0,ct.rightDelim=vt,E.position+=1,E.contentDidChange({data:vt,inputType:"insertText"}),E.mathfield.snapshot("insert-fence"),!0;const Zt=E.offsetOf(st.firstSibling);let re;for(re=E.position;re>=Zt;re--){const Fn=E.at(re);if(Fn instanceof qs&&(Fn.rightDelim==="?"||Fn.rightDelim===".")&&cp(Fn.leftDelim,vt))break}const Be=E.at(re);if(re>=Zt&&Be instanceof qs)return E.mathfield.snapshot(),Be.rightDelim=vt,Be.addChildren(E.extractAtoms([re,E.position]),Be.parentBranch),E.contentDidChange({data:vt,inputType:"insertText"}),E.mathfield.snapshot("insert-fence"),!0;if(ct instanceof qs&&(ct.rightDelim==="?"||ct.rightDelim===".")&&cp(ct.leftDelim,vt))return E.mathfield.snapshot(),ct.isDirty=!0,ct.rightDelim=vt,ct.parent.addChildren(E.extractAtoms([E.position,E.offsetOf(st.lastSibling)]),ct.parentBranch),E.position=E.offsetOf(ct),E.contentDidChange({data:vt,inputType:"insertText"}),E.mathfield.snapshot("insert-fence"),!0;const ln=ct.parent;return ln instanceof qs&&(ln.rightDelim==="?"||ln.rightDelim===".")&&E.at(E.position).isLastSibling?(E.position=E.offsetOf(ln),vm(E,vt,it)):!1}return!1}function cp(E,z){return E?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(E)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(z):pt[E]===z:!0}function Bg(E,z){return z?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(z)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(E):dt[z]===E:!0}hl({undo:E=>(E.undo(),!0),redo:E=>(E.redo(),!0),scrollIntoView:E=>(E.scrollIntoView(),!0),scrollToStart:E=>(E.field.scroll(0,0),!0),scrollToEnd:E=>{const z=E.field.getBoundingClientRect();return E.field.scroll(z.left-window.scrollX,0),!0},toggleKeystrokeCaption:fx,toggleContextMenu:E=>{const z=E.toggleContextMenu();return z||E.model.announce("plonk"),z},plonk:E=>(E.model.announce("plonk"),!0),switchMode:(E,z,it,st)=>(E.switchMode(z,it,st),!0),insert:(E,z,it)=>E.insert(z,it),typedText:(E,z,it)=>(Gv(E,z,it),!0),insertDecimalSeparator:E=>{const z=E.model;return z.mode==="math"&&window.MathfieldElement.decimalSeparator===","&&z.at(Math.max(z.position,z.anchor)).isDigit()?(E.insert("{,}",{format:"latex"}),E.snapshot("insert-mord"),!0):(E.insert("."),!0)},commit:E=>{var z;return E.model.contentWillChange({inputType:"insertLineBreak"})&&((z=E.host)==null||z.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),E.model.contentDidChange({inputType:"insertLineBreak"})),!0},insertPrompt:(E,z,it)=>{const st=E.getPrompts();let ct="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),vt=0;for(;st.includes(ct)&&vt<100;){if(vt===99)return console.error("could not find a unique ID after 100 tries"),!1;ct="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),vt++}return E.insert(`\\placeholder[${z!=null?z:ct}]{}`,it),!0}}),hl({copyToClipboard:E=>(E.focus(),E.model.selectionIsCollapsed&&E.select(),"queryCommandSupported"in document&&document.queryCommandSupported("copy")?document.execCommand("copy"):E.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("copy",{bubbles:!0,composed:!0})),!1)},{target:"mathfield"}),hl({cutToClipboard:E=>(E.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("cut")?document.execCommand("cut"):E.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("cut",{bubbles:!0,composed:!0})),!0),pasteFromClipboard:E=>(E.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("paste")?(document.execCommand("paste"),!0):(navigator.clipboard.readText().then(z=>{z&&E.model.contentWillChange({inputType:"insertFromPaste",data:z})?(E.stopCoalescingUndo(),E.stopRecording(),E.insert(z,{mode:E.model.mode})&&(im(E),E.startRecording(),E.snapshot("paste"),E.model.contentDidChange({inputType:"insertFromPaste"}),nl(E))):E.model.announce("plonk"),E.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function l1(E,z){E.flushInlineShortcutBuffer(),E.stopCoalescingUndo();const it=Ig(E,z),{model:st}=E;return st.selectionIsCollapsed?(E.defaultStyle.fontSeries&&it.fontSeries===E.defaultStyle.fontSeries&&(it.fontSeries="auto"),it.fontShape&&it.fontShape===E.defaultStyle.fontShape&&(it.fontShape="auto"),it.color&&it.color===E.defaultStyle.color&&(it.color="none"),it.backgroundColor&&it.backgroundColor===E.defaultStyle.backgroundColor&&(it.backgroundColor="none"),it.fontSize&&it.fontSize===E.defaultStyle.fontSize&&(it.fontSize="auto"),E.defaultStyle=jt(jt({},E.defaultStyle),it)):E.model.deferNotifications({content:!0,type:"insertText"},()=>{st.selection.ranges.forEach(ct=>kg(st,ct,it,{operation:"toggle"})),E.snapshot("style-change")}),!0}hl({applyStyle:l1},{target:"mathfield",canUndo:!0,changeContent:!0});function Ig(E,z){var it,st,ct,vt,xt,Ot,Kt,Zt,re,Be;const ln={};if(typeof z.color=="string"){const ei=(st=E.colorMap((it=z.color)!=null?it:z.verbatimColor))!=null?st:"none";ei!==z.color&&(ln.verbatimColor=(ct=z.verbatimColor)!=null?ct:z.color),ln.color=ei}if(typeof z.backgroundColor=="string"){const ei=(xt=E.backgroundColorMap((vt=z.backgroundColor)!=null?vt:z.verbatimBackgroundColor))!=null?xt:"none";ei!==z.backgroundColor&&(ln.verbatimBackgroundColor=(Ot=z.verbatimBackgroundColor)!=null?Ot:z.backgroundColor),ln.backgroundColor=ei}typeof z.fontFamily=="string"&&(ln.fontFamily=z.fontFamily),typeof z.series=="string"&&(ln.fontSeries=z.series),typeof z.fontSeries=="string"&&(ln.fontSeries=z.fontSeries.toLowerCase()),ln.fontSeries&&(ln.fontSeries=(Kt={bold:"b",medium:"m",normal:"m"}[ln.fontSeries])!=null?Kt:ln.fontSeries),typeof z.shape=="string"&&(ln.fontShape=z.shape),typeof z.fontShape=="string"&&(ln.fontShape=z.fontShape.toLowerCase()),ln.fontShape&&(ln.fontShape=(Zt={italic:"it",up:"n",upright:"n",normal:"n"}[ln.fontShape])!=null?Zt:ln.fontShape),z.variant&&(ln.variant=z.variant.toLowerCase()),z.variantStyle&&(ln.variantStyle=z.variantStyle.toLowerCase());const Fn=(re=z.size)!=null?re:z.fontSize;return typeof Fn=="number"?ln.fontSize=Math.max(1,Math.min(10,Fn)):typeof Fn=="string"&&(ln.fontSize=(Be={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[Fn.toLowerCase()])!=null?Be:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[Fn]),ln}function ym(E){let[z,it]=Va(E.selection);if(z=hp(E,z,"backward"),it=hp(E,it,"forward"),z===it){const st=E.at(z);if(st.type==="leftright")return E.setSelection(E.offsetOf(st.firstChild)-1,it);if(st.type==="first"&&(st.parent.type==="leftright"||st.parent.type==="surd"))return E.setSelection(z-1,E.offsetOf(st.parent.lastChild)+1);E.setSelection(z-1,it)}else E.setSelection(z,it);return!0}function hp(E,z,it){var st,ct,vt;let xt=E.at(z);if(!xt)return z;const Ot=it==="forward"?1:-1;if(xt.mode==="text"){for(;xt&&!(xt.mode!=="text"||!At.test(xt.value));)z+=Ot,xt=E.at(z);return it==="backward"?z-1:z}if(xt.mode==="latex"){if(/[a-zA-Z\*]/.test(xt.value))if(it==="backward")for(;xt&&xt.mode==="latex"&&xt.value!=="\\"&&/[a-zA-Z]/.test(xt.value);)z+=Ot,xt=E.at(z);else for(;xt&&xt.mode==="latex"&&/[a-zA-Z\*]/.test(xt.value);)z+=Ot,xt=E.at(z);else if(xt.value==="{"){if(it==="forward"){for(;xt&&xt.mode==="latex"&&xt.value!=="}";)z+=Ot,xt=E.at(z);return z}return z-1}else if(xt.value==="}"){if(it==="backward"){for(;xt&&xt.mode==="latex"&&xt.value!=="{";)z+=Ot,xt=E.at(z);return z-1}return z}return z-1}if(xt.mode==="math"){if(xt.isDigit()){for(;(st=E.at(z+Ot))!=null&&st.isDigit();)z+=Ot;return it==="backward"?z-1:z}if(xt.style.variant||xt.style.variantStyle){let Kt=(ct=E.at(z))==null?void 0:ct.style;for(;Kt&&Kt.variant===xt.style.variant&&Kt.variantStyle===xt.style.variantStyle;)Kt=(vt=E.at(z+Ot))==null?void 0:vt.style,z+=Ot;return it==="backward"?z-1:z}return z}return z}hl({selectGroup:E=>{const z=ym(E);return z||E.announce("plonk"),z},selectAll:E=>E.setSelection(0,E.lastOffset),extendSelectionForward:E=>Xi(E,"forward",{extend:!0}),extendSelectionBackward:E=>Xi(E,"backward",{extend:!0}),extendToNextWord:E=>up(E,"forward",{extend:!0}),extendToPreviousWord:E=>up(E,"backward",{extend:!0}),extendSelectionUpward:E=>Xi(E,"upward",{extend:!0}),extendSelectionDownward:E=>Xi(E,"downward",{extend:!0}),extendToNextBoundary:E=>up(E,"forward",{extend:!0}),extendToPreviousBoundary:E=>up(E,"backward",{extend:!0}),extendToGroupStart:E=>{const z=E.setSelection(E.anchor,E.offsetOf(E.at(E.position).firstSibling));return z||E.announce("plonk"),z},extendToGroupEnd:E=>{const z=E.setSelection(E.anchor,E.offsetOf(E.at(E.position).lastSibling));return z||E.announce("plonk"),z},extendToMathFieldStart:E=>{const z=E.setSelection(E.anchor,0);return z||E.announce("plonk"),z},extendToMathFieldEnd:E=>{const z=E.setSelection(E.anchor,E.lastOffset);return z||E.announce("plonk"),z}},{target:"model",changeSelection:!0});var gf=null,ed=0,Xv=class _d{static start(z,it,st,ct){var vt;_d.element=z,(vt=_d.controller)==null||vt.abort(),_d.controller=new AbortController;const xt={signal:_d.controller.signal};"PointerEvent"in window?(z.addEventListener("pointermove",st,xt),z.addEventListener("pointerup",ct,xt),z.addEventListener("pointercancel",ct,xt),u1(it)&&(_d.pointerId=it.pointerId,z.setPointerCapture(it.pointerId))):(window.addEventListener("mousemove",st,xt),window.addEventListener("blur",ct,xt),window.addEventListener("mouseup",ct,xt))}static stop(){var z;(z=_d.controller)==null||z.abort(),_d.controller=void 0,typeof _d.pointerId=="number"&&(_d.element.releasePointerCapture(_d.pointerId),_d.pointerId=void 0)}};function u1(E){return E!==null&&globalThis.PointerEvent!==void 0&&E instanceof PointerEvent}function vf(E,z){var it;if(z.buttons>1)return;E.atomBoundsCache=new Map;const st=E;let ct,vt=!1,xt=!1,Ot="none",Kt=!1,Zt=!1;const re=z.clientX,Be=z.clientY,ln=Date.now(),Fn=st.field,ei=setInterval(()=>{Kt?Fn.scroll({top:0,left:Fn.scrollLeft-16}):Zt&&Fn.scroll({top:0,left:Fn.scrollLeft+16})},32);function hr(){Xv.stop(),vt=!1,clearInterval(ei),E.element.classList.remove("tracking"),z&&z.preventDefault()}function Gr(Nr){if(!st.hasFocus()){hr();return}const eo=Nr.clientX,zr=Nr.clientY,_o=u1(Nr)&&Nr.pointerType==="touch"?20:5;if(Date.now()<ln+500&&Math.abs(re-eo)<_o&&Math.abs(Be-zr)<_o){Nr.preventDefault(),Nr.stopPropagation();return}const ns=Fn.getBoundingClientRect();Zt=eo>ns.right,Kt=eo<ns.left;let Go=ct;u1(Nr)&&(Nr.isPrimary||(Go=yf(st,Nr.clientX,Nr.clientY,{bias:0})));const Gs=yf(st,eo,zr,{bias:eo<=re?eo===re?0:-1:1});Go>=0&&Gs>=0&&(st.model.extendSelectionTo(Go,Gs),nl(E)),xt&&ym(st.model)}gf&&Math.abs(gf.x-re)<5&&Math.abs(gf.y-Be)<5&&Date.now()<gf.time+500?(ed+=1,gf.time=ln):(gf={x:re,y:Be,time:ln},ed=1);const $i=Fn.getBoundingClientRect();if(re>=$i.left&&re<=$i.right&&Be>=$i.top&&Be<=$i.bottom){if(E.flushInlineShortcutBuffer(),E.adoptStyle="left",ct=yf(E,re,Be,{bias:0}),ct>=0){if(E.element.classList.add("tracking"),z.shiftKey){const Nr=E.model.selectionIsCollapsed;E.model.extendSelectionTo(E.model.anchor,ct),mg(E.model)||Nr?Ot="all":Ot="selection"}else E.model.at(ct).type==="placeholder"?(E.model.setSelection(ct-1,ct),Ot="selection"):((it=E.model.at(ct).rightSibling)==null?void 0:it.type)==="placeholder"?(E.model.setSelection(ct,ct+1),Ot="selection"):(E.model.position=ct,mg(E.model)?Ot="all":Ot="selection");E.defaultStyle={},z.detail===3||ed>2?(hr(),(z.detail===3||ed===3)&&(E.model.selection={ranges:[[0,E.model.lastOffset]]},Ot="all")):vt||(vt=!0,Xv.start(Fn,z,Gr,hr),(z.detail===2||ed===2)&&(xt=!0,ym(E.model),Ot="all"))}E.hasFocus()||(Ot="none",E.focus({preventScroll:!0}))}else gf=null;E.stopCoalescingUndo(),Ot!=="none"&&(E.model.selectionIsCollapsed&&(Ot="all"),nl(E)),z.preventDefault()}function Jv(E,z,it){if(E>=it.left&&E<=it.right&&z>=it.top&&z<=it.bottom)return 0;const st=E-(it.left+it.right)/2,ct=z-(it.top+it.bottom)/2;return st*st+ct*ct}function c1(E,z,it,st,ct){if(!it.id)return[1/0,null];if(z.has(it.id))return z.get(it.id);const vt=af(E,it);if(!vt)return[1/0,null];let xt=[1/0,null];if(it.hasChildren&&!it.captureSelection&&st>=vt.left&&st<=vt.right)for(const Ot of it.children){const Kt=c1(E,z,Ot,st,ct);Kt[0]<=xt[0]&&(xt=Kt)}return xt[1]||(xt=[Jv(st,ct,vt),it]),z.set(it.id,xt),xt}function Fg(E,z,it){const[,st]=c1(E,new Map,E.model.root,z,it);return st}function yf(E,z,it,st){var ct;const vt=E.field.querySelector(".ML__latex").getBoundingClientRect();if(!vt)return 0;if(z>vt.right||it>vt.bottom+8)return E.model.lastOffset;if(z<vt.left||it<vt.top-8)return 0;st=st!=null?st:{},st.bias=(ct=st.bias)!=null?ct:0;let xt=Fg(E,z,it);const Ot=[];let Kt=xt;for(;Kt;)Ot.unshift(Kt),Kt=Kt.parent;for(const re of Ot)if(re.captureSelection){xt=re;break}let Zt=E.model.offsetOf(xt);if(Zt<0)return-1;if(xt.leftSibling)if(st.bias===0&&xt.type!=="placeholder"){const re=af(E,xt);re&&z<(re.left+re.right)/2&&(Zt=E.model.offsetOf(xt.leftSibling))}else st.bias<0&&(Zt=E.model.offsetOf(xt.leftSibling));return Zt}var m0=class extends ts{constructor(){super("math")}onPaste(E,z){if(!z||!E.model.contentWillChange({data:typeof z=="string"?z:null,dataTransfer:typeof z=="string"?null:z,inputType:"insertFromPaste"}))return!1;let it="",st="auto",ct=typeof z!="string"?z.getData("application/json+mathlive"):"";if(ct)try{const vt=JSON.parse(ct);if(vt&&Array.isArray(vt)){E.snapshot();const xt=cf(vt),{model:Ot}=E;Ot.selectionIsCollapsed||Ot.deleteAtoms(Va(Ot.selection));const Kt=Ot.at(Ot.position);if(Kt.parent instanceof Cs){console.assert(Kt.parentBranch!==void 0);const Zt=[];let re=[];xt[0].type==="first"&&xt.shift(),xt[xt.length-1].type==="first"&&xt.pop();for(const ei of xt)ei.type==="first"&&re.length>0?(Zt.push(re),re=[ei]):re.push(ei);re.length>0&&Zt.push(re);let Be=Number(Kt.parentBranch[0]),ln=Number(Kt.parentBranch[1]);const Fn=Kt.parent.maxColumns;for(;Kt.parent.colCount-ln<Zt.length&&Kt.parent.colCount<Fn;)Kt.parent.addColumn();Kt.parent.addChildrenAfter(Zt[0],Kt);for(let ei=1;ei<Zt.length;ei++)ln++,ln>=Fn&&(ln=0,Kt.parent.addRowAfter(Be),Be++),Kt.parent.setCell(Be,ln,Zt[ei])}else Kt.parent.addChildrenAfter(xt.filter(Zt=>Zt.type!=="first"),Kt);return Ot.position=Ot.offsetOf(xt[xt.length-1]),Ot.contentDidChange({inputType:"insertFromPaste"}),nl(E),!0}}catch(vt){}if(ct=typeof z!="string"?z.getData("application/json"):"",ct&&window.MathfieldElement.computeEngine)try{const vt=JSON.parse(ct);if(typeof vt=="object"&&"latex"in vt&&vt.latex&&(it=vt.latex),!it){const xt=window.MathfieldElement.computeEngine.box(vt);xt&&!xt.has("Error")&&(it=xt.latex)}it||(st="latex")}catch(vt){}if(!it&&typeof z!="string"&&(it=z.getData("application/x-latex"),it&&(st="latex")),it||(it=typeof z=="string"?z:z.getData("text/plain")),it){let vt;return[vt,it]=xh(it),st==="auto"&&vt&&(st="latex"),E.stopCoalescingUndo(),E.stopRecording(),this.insert(E.model,it,{format:st})&&(E.startRecording(),E.snapshot("paste"),nl(E)),E.startRecording(),!0}return!1}insert(E,z,it){var st,ct;const vt=typeof z=="string"?z:(ct=(st=window.MathfieldElement.computeEngine)==null?void 0:st.box(z).latex)!=null?ct:"";if(!it.silenceNotifications&&!E.contentWillChange({data:vt,inputType:"insertText"}))return!1;it.insertionMode||(it.insertionMode="replaceSelection"),it.selectionMode||(it.selectionMode="placeholder"),it.format||(it.format="auto");const{silenceNotifications:xt}=E;it.silenceNotifications&&(E.silenceNotifications=!0);const Ot=E.silenceNotifications;E.silenceNotifications=!0;const Kt={"?":"\\placeholder{}","@":"\\placeholder{}"};Kt[0]=it.insertionMode==="replaceAll"?"":E.getValue(E.selection,"latex-unstyled"),it.insertionMode==="replaceSelection"&&!E.selectionIsCollapsed?E.deleteAtoms(Va(E.selection)):it.insertionMode==="replaceAll"?(E.root.setChildren([],"body"),E.position=0):it.insertionMode==="insertBefore"?E.collapseSelection("backward"):it.insertionMode==="insertAfter"&&E.collapseSelection("forward"),!E.at(E.position).isLastSibling&&E.at(E.position+1).type==="placeholder"?E.deleteAtoms([E.position,E.position+1]):E.at(E.position).type==="placeholder"&&E.deleteAtoms([E.position-1,E.position]);let Zt=-1;Kt[0]?Kt["@"]=Kt[0]:typeof z=="string"&&/(^|[^\\])#@/.test(z)&&(Zt=_b(E),Zt>=0&&(Kt["@"]=E.getValue(Zt,E.position,"latex"))),Kt[0]||(Kt[0]=Kt["?"]);let re=!1;const Be=eo=>(re=!0,Kt[eo]);let[ln,Fn]=dp(E,z,Be,it);if(!Fn)return!1;const ei=Fn.length===1&&Fn[0].type==="genfrac";ei&&Zt>=0&&typeof E.mathfield.options.isImplicitFunction=="function"&&E.mathfield.options.isImplicitFunction(E.at(E.position).command)?(Kt["@"]=Kt["?"],re=!1,[ln,Fn]=dp(E,z,Be,it)):Zt>=0&&E.deleteAtoms([Zt,E.position]);const{parent:hr}=E.at(E.position),Gr=hr.hasEmptyBranch("body");if(ei&&ln!=="latex"&&E.mathfield.options.removeExtraneousParentheses&&hr instanceof qs&&hr.leftDelim==="("&&Gr){const eo=hr.parent,zr=hr.parentBranch;eo.removeChild(hr),eo.setChildren(Fn,zr)}const $i=E.at(E.position);$i.parent.addChildrenAfter(Fn,$i),ln==="latex"&&typeof z=="string"&&(hr==null?void 0:hr.type)==="root"&&Gr&&!re&&(hr.verbatimLatex=z),E.silenceNotifications=Ot;const Nr=Fn[Fn.length-1];if(it.selectionMode==="placeholder"){const eo=Fn.flatMap(zr=>[zr,...zr.children]).find(zr=>zr.type==="placeholder");if(eo){const zr=E.offsetOf(eo);E.setSelection(zr-1,zr),E.announce("move")}else Nr&&(E.position=E.offsetOf(Nr))}else it.selectionMode==="before"||(it.selectionMode==="after"?Nr&&(E.position=E.offsetOf(Nr)):it.selectionMode==="item"&&E.setSelection(E.anchor,E.offsetOf(Nr)));return E.contentDidChange({data:vt,inputType:"insertText"}),E.silenceNotifications=xt,!0}};function dp(E,z,it,st){var ct;let vt,xt=[];if(typeof z!="string"||st.format==="math-json"){const Ot=window.MathfieldElement.computeEngine;if(!Ot)return["math-json",[]];[vt,z]=["latex",Ot.box(z).latex],xt=ll(z,{context:E.mathfield.context})}else typeof z=="string"&&st.format==="ascii-math"?([vt,z]=of(z,{format:"ascii-math",inlineShortcuts:E.mathfield.options.inlineShortcuts}),xt=ll(z,{context:E.mathfield.context}),vt!=="latex"&&E.mathfield.options.removeExtraneousParentheses&&Qv(xt)):(st.format==="auto"||(ct=st.format)!=null&&ct.startsWith("latex"))&&(st.format==="auto"&&([vt,z]=of(z,{format:"auto",inlineShortcuts:E.mathfield.options.inlineShortcuts})),st.format==="latex"&&([,z]=xh(z)),xt=ll(z,{context:E.mathfield.context,args:it}),st.format!=="latex"&&E.mathfield.options.removeExtraneousParentheses&&Qv(xt));return il(xt,st.style),[vt!=null?vt:"latex",xt]}function h1(E){if(!E||(console.assert(E[0].type==="first"),E.length>1))return null;const z=E[0];return z instanceof qs&&z.leftDelim==="("&&z.rightDelim===")"?z.removeBranch("body"):null}function Qv(E){if(E){for(let z=0;E[z];z++){const it=E[z];if(it instanceof qs&&it.leftDelim==="("){let st=0,ct=0,vt=0;for(let xt=0;it.body[xt];xt++)it.body[xt].type==="genfrac"&&(st++,ct=xt),vt++;vt===0&&st===1&&(E[z]=it.body[ct])}}for(const z of E){for(const it of z.branches)if(!z.hasEmptyBranch(it)){Qv(z.branch(it));const st=h1(z.branch(it));st&&z.setChildren(st,it)}if(z instanceof Cs)for(const it of z.cells)Qv(it)}}}function _b(E){let z=E.at(E.position);if(z.mode==="text"){for(;!z.isFirstSibling&&z.mode==="text";)z=z.leftSibling;return E.offsetOf(z)}const it=z;let st=!1;if(z.type==="mclose"){const ct=dt[z.value];for(;!z.isFirstSibling&&!(z.type==="mopen"&&z.value===ct);)z=z.leftSibling;z.isFirstSibling||(z=z.leftSibling),st=!0}else z.type==="leftright"&&(z=z.leftSibling,st=!0);if(st)for(;!z.isFirstSibling&&(z.isFunction||d1(z));)z=z.leftSibling;else{const ct=[];for(;!z.isFirstSibling&&(d1(z)||ct.length>0);)z.type==="mclose"&&ct.unshift(z.value),z.type==="mopen"&&ct.length>0&&z.value===dt[ct[0]]&&ct.shift(),z=z.leftSibling}return it===z?-1:E.offsetOf(z)}function d1(E){return E.isDigit()?!0:E.type&&/^(mord|surd|subsup|leftright|mop|mclose)$/.test(E.type)?!E.isExtensibleSymbol:!1}new m0;var zl=class extends ts{constructor(){super("text")}onPaste(E,z){if(!z)return!1;const it=typeof z=="string"?z:z.getData("text/plain");return it&&E.model.contentWillChange({inputType:"insertFromPaste",data:it})?(E.stopCoalescingUndo(),E.stopRecording(),this.insert(E.model,it)&&(E.model.contentDidChange({inputType:"insertFromPaste"}),E.startRecording(),E.snapshot("paste"),nl(E)),E.startRecording(),!0):!1}insert(E,z,it={}){if(!E.contentWillChange({data:z,inputType:"insertText"}))return!1;it.insertionMode||(it.insertionMode="replaceSelection"),it.selectionMode||(it.selectionMode="placeholder"),it.format||(it.format="auto");const{silenceNotifications:st}=E;it.silenceNotifications&&(E.silenceNotifications=!0);const ct=E.silenceNotifications;E.silenceNotifications=!0,it.insertionMode==="replaceSelection"&&!E.selectionIsCollapsed?E.deleteAtoms(Va(E.selection)):it.insertionMode==="replaceAll"?(E.root.setChildren([],"body"),E.position=0):it.insertionMode==="insertBefore"?E.collapseSelection("backward"):it.insertionMode==="insertAfter"&&E.collapseSelection("forward");const vt=Lu(z,E.mathfield.context);if(il(vt,it.style),!vt)return!1;const xt=E.at(E.position),Ot=xt.parent.addChildrenAfter(vt,xt);return E.silenceNotifications=ct,it.selectionMode==="before"||(it.selectionMode==="item"?E.setSelection(E.anchor,E.offsetOf(Ot)):Ot&&(E.position=E.offsetOf(Ot))),E.contentDidChange({data:z,inputType:"insertText"}),E.silenceNotifications=st,!0}};function Lu(E,z){return E=E.replace(/\\/g,"\\textbackslash "),E=E.replace(/#/g,"\\#"),E=E.replace(/\$/g,"\\$"),E=E.replace(/%/g,"\\%"),E=E.replace(/&/g,"\\&"),E=E.replace(/_/g,"\\_"),E=E.replace(/{/g,"\\textbraceleft "),E=E.replace(/}/g,"\\textbraceright "),E=E.replace(/lbrace/g,"\\textbraceleft "),E=E.replace(/rbrace/g,"\\textbraceright "),E=E.replace(/\^/g,"\\textasciicircum "),E=E.replace(/~/g,"\\textasciitilde "),E=E.replace(/£/g,"\\textsterling "),ll(E,{context:z,parseMode:"text"})}new zl;function vu(E){return{value:E.model.getValue(),selectionIsCollapsed:E.model.selectionIsCollapsed,canUndo:E.canUndo(),canRedo:E.canRedo(),style:E.selectionStyle,mode:E.model.mode}}var ma=4,yu=20,pl=2*(yu+ma),g0=(E,z)=>`
|
|
|
<line x1="${E+yu}" y1="${z+yu}"
|
|
|
x2="${E>z?E+yu:7*yu+10*ma}"
|
|
|
y2="${E<z?z+yu:7*yu+10*ma}"/>
|
|
|
<svg id="plus" viewBox="0 0 40 40" x="${E}" y="${z}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<path class="font" d="m33.33,20c0,1.84-1.49,3.34-3.33,3.34h-6.67v6.66c0,1.84-1.49,3.34-3.33,3.34s-3.34-1.5-3.34-3.34v-6.66h-6.66c-1.84,0-3.34-1.5-3.34-3.34s1.5-3.33,3.34-3.33h6.66v-6.67c0-1.84,1.5-3.33,3.34-3.33s3.33,1.49,3.33,3.33v6.67h6.67c1.84,0,3.33,1.49,3.33,3.33Z"/>
|
|
|
</svg>`,xm=(E,z)=>`
|
|
|
<line x1="${E+yu}" y1="${z+yu}"
|
|
|
x2="${E>z?E+yu:7*yu+10*ma}"
|
|
|
y2="${E<z?z+yu:7*yu+10*ma}"/>
|
|
|
<svg id="minus" viewBox="0 0 40 40" x="${E}" y="${z}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<path class="font" d="m33.33,20c0,1.84-1.49,3.33-3.33,3.33H10c-1.84,0-3.34-1.49-3.34-3.33s1.5-3.34,3.34-3.34h20c1.84,0,3.33,1.5,3.33,3.34Z"/>
|
|
|
</svg>`,fp=(E,z,it)=>`
|
|
|
<svg id="arrow" viewBox="0 0 40 40" x="${E}" y="${z}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<g transform="rotate(${it})" transform-origin="20 20">
|
|
|
<path class="font" d="m17.7,7.23h4.6c.52,0,.94.42.94.94v13.82c0,.52.42.94.94.94h3.39c.83,0,1.25,1.01.66,1.6l-7.56,7.56c-.37.37-.96.37-1.32,0l-7.56-7.56c-.59-.59-.17-1.6.66-1.6h3.39c.52,0,.94-.42.94-.94v-13.82c0-.52.42-.94.94-.94Z"/>
|
|
|
</g>
|
|
|
</svg>`,Rg=`
|
|
|
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
|
viewBox=
|
|
|
"-2 -2 ${8*yu+10*ma+5} ${8*yu+10*ma+5}">
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background rows"
|
|
|
x="0"
|
|
|
y="${pl+ma}"
|
|
|
height="${3*pl}"
|
|
|
width="${pl}"
|
|
|
rx="${pl/2}"/>
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background columns"
|
|
|
x="${pl+ma}"
|
|
|
y="0"
|
|
|
height="${pl}"
|
|
|
width="${3*pl}"
|
|
|
rx="${pl/2}"/>
|
|
|
<g data-command='"moveDown"'>
|
|
|
${fp(2*(ma+pl),2*ma+3*pl,0)}
|
|
|
</g>
|
|
|
<g data-command='"moveUp"'>
|
|
|
${fp(2*(ma+pl),2*ma+pl,180)}
|
|
|
</g>
|
|
|
<g data-command='"moveToNextWord"'>
|
|
|
${fp(2*ma+3*pl,2*(ma+pl),-90)}
|
|
|
</g>
|
|
|
<g data-command='"moveToPreviousWord"'>
|
|
|
${fp(2*ma+pl,2*(ma+pl),90)}
|
|
|
</g>
|
|
|
<g>
|
|
|
|
|
|
<g data-command='"addColumnBefore"'>
|
|
|
${g0(2*ma+pl,ma)}
|
|
|
</g>
|
|
|
<g data-command='"removeColumn"'>
|
|
|
${xm(2*ma+2*pl,ma)}
|
|
|
</g>
|
|
|
<g data-command='"addColumnAfter"'>
|
|
|
${g0(2*ma+3*pl,ma)}
|
|
|
</g>
|
|
|
<g data-command='"addRowBefore"'>
|
|
|
${g0(ma,2*ma+pl)}
|
|
|
</g>
|
|
|
<g data-command='"removeRow"'>
|
|
|
${xm(ma,2*ma+2*pl)}
|
|
|
</g>
|
|
|
<g data-command='"addRowAfter"'>
|
|
|
${g0(ma,2*ma+3*pl)}
|
|
|
</g>
|
|
|
</svg>`,f1=E=>`
|
|
|
<svg id="matrix" class="${E}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","matrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/></svg>`,$v=E=>`
|
|
|
<svg id="pmatrix" class="${E}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","pmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4c-3.96,4.6-3.96,11.4,0,16"/>
|
|
|
<path class="cls-2" d="m22,4c3.96,4.6,3.96,11.4,0,16"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/></svg>`,bm=E=>`
|
|
|
<svg id="Bmatrix" class="${E}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","Bmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
|
|
|
<path class="cls-2" d="m22,4c1.1,0,2,.9,2,2v3c0,1.66.9,3,2,3-1.1,0-2,1.34-2,3v3c0,1.1-.9,2-2,2"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
</svg>`,zg=E=>`
|
|
|
<svg id="bmatrix" class="${E}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","bmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4h-3v16h3"/>
|
|
|
<path class="cls-2" d="m22,4h3v16h-3"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
</svg>`,qv=E=>`
|
|
|
<svg id="vmatrix" class="${E}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","vmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
<line class="cls-2" x1="4" y1="4" x2="4" y2="20"/>
|
|
|
<line class="cls-2" x1="24" y1="4" x2="24" y2="20"/>
|
|
|
</svg>`,px=E=>`
|
|
|
<svg id="Vmatrix" class="${E}" xmlns="http://www.w3.org/2000/svg" viewBox="-3.5 -3 35 30"
|
|
|
data-command='["setEnvironment","Vmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
<line class="cls-2" x1="6" y1="4" x2="6" y2="20"/>
|
|
|
<line class="cls-2" x1="22" y1="4" x2="22" y2="20"/>
|
|
|
<line class="cls-2" x1="2" y1="4" x2="2" y2="20"/>
|
|
|
<line class="cls-2" x1="26" y1="4" x2="26" y2="20"/>
|
|
|
</svg>`,mx=E=>`
|
|
|
<svg id="cases" class="${E}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","cases"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m10,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
|
|
|
<circle cx="13" cy="8" r="1"/>
|
|
|
<circle cx="13" cy="16" r="1"/>
|
|
|
<circle cx="21" cy="8" r="1"/>
|
|
|
<circle cx="21" cy="16" r="1"/>
|
|
|
</svg>`,jg=E=>`
|
|
|
<svg id="rcases" class="${E}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","rcases"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m18,20c1.1,0,2-.9,2-2v-3c0-1.66.9-3,2-3-1.1,0-2-1.34-2-3v-3c0-1.1-.9-2-2-2"/>
|
|
|
<circle cx="15" cy="8" r="1"/>
|
|
|
<circle cx="15" cy="16" r="1"/>
|
|
|
<circle cx="7" cy="8" r="1"/>
|
|
|
<circle cx="7" cy="16" r="1"/>
|
|
|
</svg>`,wm={matrix:f1,pmatrix:$v,bmatrix:zg,Bmatrix:bm,vmatrix:qv,Vmatrix:px},v0={cases:mx,rcases:jg,Bmatrix:bm};function Sm(E){var z,it;const st=(z=E.model.parentEnvironment)==null?void 0:z.array;if(!st)return;let ct=0;st.forEach(ei=>{(!ct||ei.length>ct)&&(ct=ei.length)});let vt=document.getElementById("mathlive-environment-popover");vt||(vt=rm("mathlive-environment-popover"),dc("environment-popover"),dc("core"),vt.setAttribute("aria-hidden","true"));let xt;const Ot=vt.querySelector(".MLEP__environment-controls");Ot?xt=Ot:(xt=document.createElement("div"),vt.innerHTML="",vt.appendChild(xt)),xt.className="MLEP__environment-controls",xt.style.display="flex",xt.style.width="100%",xt.style.height="100%",xt.style.boxSizing="border-box",xt.innerHTML=Rg;let Kt=[],Zt="";const re=E.model.parentEnvironment.environmentName;if(mu(re)){const ei=ty(re);Zt=wm[ei]("active");const hr=wm,{[ei]:Gr}=hr,$i=De(hr,[Ut(ei)]);Kt=Object.values($i).map(Nr=>Nr("inactive"))}else if(nu(re)){const ei=ey(re);Zt=v0[ei]("active");const hr=v0,{[ei]:Gr}=hr,$i=De(hr,[Ut(ei)]);Kt=Object.values($i).map(Nr=>Nr("inactive"))}else bl(re)&&(Zt=wm.matrix("active"),Kt=Object.values(v0).map(ei=>ei("inactive")));const Be=document.createElement("div");Be.className="MLEP__environment-delimiter-controls",Be.style.display="flex",Be.style.flexDirection="column",Be.innerHTML=`
|
|
|
<div class='MLEP__array-delimiter-options'>
|
|
|
${Zt}
|
|
|
${Kt.join("")}
|
|
|
</div>`,Zt&&xt.appendChild(Be),xt.querySelectorAll("[data-command]").forEach(ei=>{const hr=ei.dataset.command;let Gr=hr;try{Gr=JSON.parse(hr)}catch($i){}ei.addEventListener("mousedown",$i=>$i.preventDefault()),Gr&&ei.addEventListener("click",()=>E.executeCommand(Gr))});const Fn=(it=E.field)==null?void 0:it.getBoundingClientRect();Fn&&(vt.style.top=`${window.scrollY+(Fn.top-vt.clientHeight-15)}px`,vt.style.left=`${Fn.left+20}px`,vt.classList.add("is-visible"))}function Bc(){const E=document.getElementById("mathlive-environment-popover");E==null||E.classList.remove("is-visible")}function gx(){document.getElementById("mathlive-environment-popover")&&(gg("mathlive-environment-popover"),rt("environment-popover"),rt("core"))}function vc(E){if(!E.hasFocus())return;let z=!1;if(E.model.mode==="math"){const it=E.model.parentEnvironment;if(it!=null&&it.array&&Za(it.environmentName)){const st=E.options.environmentPopoverPolicy;z=st==="auto"||st==="on"}}z?Sm(E):Bc()}function ty(E){return E.replace("*","")}function ey(E){return E==="dcases"?"cases":E}function p1(E){const z=getComputedStyle(E).direction;return z==="ltr"||z==="rtl"?z:"ltr"}function m1(E,z,it){return z==="left"||z==="leading"&&it==="ltr"||z==="trailing"&&it==="rtl"?E.left:E.right}function kh(E,z,it,st){return it==="middle"?E-z/2:it==="start"&&st==="rtl"||it==="end"&&st==="ltr"||it==="top"||it==="right"?Math.max(0,E-z):E}function pp(E,z,it,st){return it==="middle"?E-z/2:it==="start"&&st==="ltr"||it==="end"&&st==="rtl"||it==="top"||it==="right"?E:E-z}function Cm(E,z){var it,st,ct;const vt=(it=p1(E))!=null?it:"ltr";E.style.position="fixed",E.style.left="",E.style.top="",E.style.right="",E.style.bottom="",E.style.height="",E.style.width="";const xt=E.getBoundingClientRect(),Ot=Number.isFinite(z.maxHeight)?Math.min(z.maxHeight,window.innerHeight):window.innerHeight;let Kt=Math.min(Ot,(st=z.height)!=null?st:xt.height),Zt=kh(z.location.y,Kt,z.verticalPos,vt);Zt+Kt>window.innerHeight-8&&(z.alternateLocation?(Zt=kh(z.alternateLocation.y,Kt,z.verticalPos,vt),Zt+Kt>window.innerHeight-8&&(Zt=void 0)):Zt=void 0),Number.isFinite(Zt)||(Zt=Math.max(8,window.innerHeight-8-Kt),8+Kt>window.innerHeight-8&&(E.style.bottom="8px")),Kt=Math.min(Zt+Kt,window.innerHeight-8)-Zt;const re=Number.isFinite(z.maxWidth)?Math.min(z.maxWidth,window.innerWidth):window.innerWidth;let Be=Math.min(re,(ct=z.width)!=null?ct:xt.width),ln=kh(z.location.x,Be,z.horizontalPos,vt);ln+Be>window.innerWidth-8&&(z.alternateLocation?(ln=pp(z.alternateLocation.x,Be,z.verticalPos,vt),ln+Be>window.innerWidth-8&&(ln=void 0)):ln=void 0),Number.isFinite(ln)||(ln=Math.max(8,window.innerWidth-8-Be),8+Be>window.innerWidth-8&&(E.style.right="8px")),Be=Math.min(ln+Be,window.innerWidth-8)-ln,vt==="rtl"?E.style.right=`${Math.ceil(window.innerWidth-ln-Be).toString()}px`:E.style.left=`${Math.ceil(ln).toString()}px`,E.style.top=`${Math.ceil(Zt).toString()}px`,Kt!==xt.height&&(E.style.height=`${Math.ceil(Kt).toString()}px`),Be!==xt.width&&(E.style.width=`${Math.ceil(Be).toString()}px`)}function g1(E,z){return Math.hypot(z.x-E.x,z.y-E.y)}function mp(E){return"submenu"in E}function ic(E){return"type"in E&&E.type==="command"||"onMenuSelect"in E||"id"in E}function v1(E){return"type"in E&&E.type==="divider"}function ny(E){return"type"in E&&E.type==="heading"}var iy={};function Ds(E){let z=iy[E];if(!z){let it;switch(E){case"checkmark":it=`<span aria-hidden="true" class="ui-checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z"></path></svg>
|
|
|
</span>`;break;case"trailing-chevron":it='<span aria-hidden="true" class="ui-trailing-chevron"><svg focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path></svg></span>';break;case"mixedmark":it='<span aria-hidden="true" class="ui-mixedmark"><svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 512 512"><path fill="currentColor" d="M0 256c0-13.3 10.7-24 24-24H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24z"/></svg></span>'}if(it){const st=document.createElement("template");st.innerHTML=it,iy[E]=st,z=st}}if(z){if("content"in z)return z.content.cloneNode(!0);const it=document.createElement("svg");return it.innerHTML=z.innerHTML,it}}var Td=80,Mm=class{constructor(E,z){this._element=null;var it;this.parentMenu=z,this._declaration=E,mp(E)?(this.type="submenu",this.submenu=new ry(E.submenu,{parentMenu:z,submenuClass:E.submenuClass,columnCount:E.columnCount})):this.type=(it=E.type)!=null?it:"command",this.hasCheck=ic(E)&&E.checked!==void 0}get rootMenu(){return this.parentMenu.rootMenu}get abortController(){return this._abortController||(this._abortController=new AbortController),this._abortController}dispose(){var E,z;(E=this._abortController)==null||E.abort(),this._abortController=void 0,(z=this._element)==null||z.remove(),this._element=null,this.submenu&&this.submenu.dispose(),this.submenu=void 0}get menuItem(){return this._declaration}get label(){var E;return(E=this._label)!=null?E:""}set label(E){E===void 0&&(E=""),E!==this._label&&(this._label=E,this.dirty=!0)}get visible(){return this._visible}set visible(E){E!==this._visible&&(this._visible=E,this.dirty=!0)}get enabled(){return this._enabled}set enabled(E){this._enabled=E,this.element&&(E?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")),this.dirty=!0}get checked(){return this._checked}set checked(E){this._checked=E,this.dirty=!0}get tooltip(){return this._tooltip}set tooltip(E){E!==this._tooltip&&(this._tooltip=E,this.dirty=!0)}get ariaLabel(){return this._ariaLabel}set ariaLabel(E){E!==this._ariaLabel&&(this._ariaLabel=E,this.dirty=!0)}get active(){var E,z;return(z=(E=this.element)==null?void 0:E.classList.contains("active"))!=null?z:!1}set active(E){this.element&&this.element.classList.toggle("active",E)}updateState(E){var z,it,st;const ct=this._declaration;if(v1(ct)){this.enabled=!1,this.checked=!1;return}ny(ct)&&(this.enabled=!1,this.checked=!1,this.visible=!0),ic(ct)&&(this.checked=ic(ct)&&((z=y0(ct.checked,E))!=null?z:!1)),(ic(ct)||mp(ct))&&(this.enabled=(it=y0(ct.enabled,E))!=null?it:!0,this.visible=(st=y0(ct.visible,E))!=null?st:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(E),this.submenu.visible||(this.visible=!1))),(ic(ct)||ny(ct)||mp(ct))&&(this.label=y0(ct.label,E),this.tooltip=y0(ct.tooltip,E),this.ariaLabel=y0(ct.ariaLabel,E)),this._element&&this.updateElement()}set dirty(E){console.assert(E===!0),E&&this.parentMenu&&(this.parentMenu.dirty=!0)}updateElement(){if(!this.visible||!this.element)return;const E=this.element;E.textContent="",this.enabled?E.removeAttribute("aria-disabled"):E.setAttribute("aria-disabled","true"),this.checked===!0?(E.setAttribute("aria-checked","true"),E.append(Ds("checkmark"))):this.checked==="mixed"?(E.setAttribute("aria-checked","mixed"),E.append(Ds("mixedmark"))):E.removeAttribute("aria-checked"),this.ariaLabel&&E.setAttribute("aria-label",this.ariaLabel);const z=document.createElement("span");if(z.className=this.parentMenu.hasCheck?"label indent":"label",this.type==="heading"&&z.classList.add("heading"),z.innerHTML=this.label,E.append(z),this._tooltip&&E.setAttribute("data-tooltip",this._tooltip),ic(this._declaration)&&this._declaration.keyboardShortcut){const it=document.createElement("kbd");it.innerHTML=dg(this._declaration.keyboardShortcut),E.append(it)}this.type==="submenu"&&E.append(Ds("trailing-chevron"))}get element(){if(this._element)return this._element;if(v1(this._declaration)){const it=document.createElement("li");return it.setAttribute("part","menu-divider"),it.setAttribute("role","divider"),this._element=it,it}const E=document.createElement("li");this._element=E,(ic(this._declaration)||ny(this._declaration)||mp(this._declaration))&&this._declaration.class&&(E.className=this._declaration.class),E.setAttribute("part","menu-item"),E.setAttribute("tabindex","-1"),this.hasCheck?E.setAttribute("role","menuitemcheckbox"):E.setAttribute("role","menuitem"),this.type==="submenu"&&(E.setAttribute("aria-haspopup","true"),E.setAttribute("aria-expanded","false"));const z=this.abortController.signal;return E.addEventListener("pointerenter",this,{signal:z}),E.addEventListener("pointerleave",this,{signal:z}),E.addEventListener("pointerup",this,{signal:z}),E.addEventListener("click",this,{signal:z}),this._element}dispatchSelect(){if(!ic(this._declaration))return;const E=new CustomEvent("menu-select",{cancelable:!0,bubbles:!0,detail:{modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data}});this.parentMenu.dispatchEvent(E)&&typeof this._declaration.onMenuSelect=="function"&&this._declaration.onMenuSelect({modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data})}handleEvent(E){var z;if(!(!this.visible||!this.enabled)){if(E.type==="click"){this.rootMenu.state==="modal"&&this.select(),E.stopPropagation(),E.preventDefault();return}if(E.type==="pointerenter"){const it=E;this.rootMenu.cancelDelayedOperation(),this.parentMenu.isSubmenuOpen&&((z=this.parentMenu.activeMenuItem)!=null&&z.movingTowardSubmenu(it))?this.rootMenu.scheduleOperation(()=>{this.parentMenu.activeMenuItem=this,this.openSubmenu()}):(this.parentMenu.activeMenuItem=this,this.openSubmenu({withDelay:!0}));return}if(E.type==="pointerleave"){this.rootMenu.activeSubmenu===this.parentMenu&&(this.parentMenu.activeMenuItem=null);return}if(E.type==="pointerup"){this.rootMenu.state!=="modal"&&this.select(),E.stopPropagation(),E.preventDefault();return}}}select(){if(this.rootMenu.cancelDelayedOperation(),this.type==="submenu"){this.openSubmenu();return}this.active=!1,setTimeout(()=>{this.active=!0,setTimeout(()=>{this.rootMenu.hide(),this.dispatchSelect()},Td)},Td)}openSubmenu(E){var z;if(this.type!=="submenu"||!this.element)return;if((z=E==null?void 0:E.withDelay)!=null&&z){this.rootMenu.scheduleOperation(()=>this.openSubmenu());return}const it=this.element.getBoundingClientRect(),st=p1(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:m1(it,"trailing",st),y:it.top-4},alternateLocation:{x:m1(it,"leading",st),y:it.top-4}})}movingTowardSubmenu(E){if(!this.element||this.type!=="submenu")return!1;const z=this.rootMenu.lastMoveEvent;if(!z)return!1;const it=E.timeStamp-z.timeStamp;if(it>500)return!1;const st=E.clientX-z.clientX;if(Ss(st,z.clientY-E.clientY,it)<=.2)return!1;let vt="right";if(this.submenu.element){const xt=this.submenu.element.getBoundingClientRect(),Ot=this.element.getBoundingClientRect();xt.left<Ot.left+Ot.width/2&&(vt="left")}return vt==="right"?st>0:st<0}};function Ss(E,z,it){return Math.hypot(E,z)/it}function y0(E,z){return E===void 0||typeof E!="function"?E:(z!=null||(z={alt:!1,control:!1,shift:!1,meta:!1}),E(z))}var ry=class Dy{constructor(z,it){this._element=null,this._activeMenuItem=null,this._dirty=!0;var st,ct;this.parentMenu=(st=it==null?void 0:it.parentMenu)!=null?st:null,this._submenuClass=it==null?void 0:it.submenuClass,this.columnCount=(ct=it==null?void 0:it.columnCount)!=null?ct:1,this.isSubmenuOpen=!1,this.menuItems=z}get children(){return this._menuItems}set menuItems(z){const it=this.parentMenu;this.dispose(),this.parentMenu=it,z=[...z],this._menuItems=z.map(st=>st.onCreate?st.onCreate(st,this):new Mm(st,this)),this.hasCheck=void 0,this.dirty=!0}dispose(){var z;this.hide(),this._element&&this._element.remove(),this._abortController&&this._abortController.abort(),(z=this._menuItems)==null||z.forEach(it=>it.dispose()),this._menuItems=[],this._activeMenuItem=null,this.parentMenu=null}handleEvent(z){if(z.type==="wheel"&&this._element){const it=z;this._element.scrollBy(0,it.deltaY),z.stopPropagation()}}dispatchEvent(z){return this.rootMenu.dispatchEvent(z)}get rootMenu(){return this.parentMenu.rootMenu}updateState(z){var it,st,ct;this._menuItems.forEach(Zt=>Zt.updateState(z));const vt=this.hasCheck;this.hasCheck=this._menuItems.some(Zt=>Zt.visible&&Zt.hasCheck),this.hasCheck!==vt&&this._menuItems.forEach(Zt=>Zt.updateState(z));let xt,Ot=0;for(const Zt of this._menuItems)Zt.type==="heading"?(xt&&Ot===0&&(xt.visible=!1),xt=Zt,Ot=0):Zt.type==="divider"&&xt?(xt.visible=Ot>0,xt=void 0,Ot=0):xt&&Zt.visible&&(Ot+=1);xt&&(xt.visible=Ot>0);let Kt=!0;for(const Zt of this._menuItems)Zt.type==="divider"?(Zt.visible=!Kt,Kt=!0):Zt.visible&&(Kt=!1);(it=this.activeMenuItem)!=null&&it.visible||(this.activeMenuItem=null),!((st=this.activeMenuItem)!=null&&st.enabled)&&((ct=this.activeMenuItem)==null?void 0:ct.type)==="submenu"&&this._activeMenuItem.submenu.hide(),this._dirty=!1}get enabled(){return this.updateIfDirty(),this._menuItems.some(z=>z.type!=="divider"&&z.visible&&z.enabled)}get visible(){return this.updateIfDirty(),this._menuItems.some(z=>z.type!=="divider"&&z.visible)}set dirty(z){console.assert(z===!0),this._dirty!==z&&z&&this.parentMenu&&(this._dirty=!0,this.parentMenu.dirty=!0)}updateIfDirty(){this._dirty&&this.updateState(this.rootMenu.modifiers)}updateElement(){var z;if(this._element){this._element.textContent="";for(const{element:it,visible:st}of this._menuItems)it&&st&&this._element.append(it);(z=this._element.querySelector("li:first-of-type"))==null||z.setAttribute("tabindex","0")}}get element(){if(this._element)return this._element;const z=document.createElement("menu");z.setAttribute("role","menu"),z.setAttribute("tabindex","-1"),z.setAttribute("aria-orientation","vertical"),z.setAttribute("part","ui-menu-container"),this._submenuClass&&z.classList.add(this._submenuClass),z.classList.add("ui-menu-container"),this._abortController||(this._abortController=new AbortController);const it=this._abortController.signal;return z.addEventListener("focus",this,{signal:it}),z.addEventListener("wheel",this,{passive:!0,signal:it}),this._element=z,this.updateElement(),z}get activeMenuItem(){return this._activeMenuItem}set activeMenuItem(z){var it,st,ct,vt;if(this.rootMenu.cancelDelayedOperation(),z!==this._activeMenuItem){if(this.activeMenuItem){const xt=this.activeMenuItem;xt.active=!1,(it=xt.submenu)==null||it.hide()}if(!((st=z==null?void 0:z.visible)==null||st)){this._activeMenuItem=null;return}this._activeMenuItem=z,z&&(z.active=!0)}z?(ct=z.element)==null||ct.focus({preventScroll:!0}):(vt=this._element)==null||vt.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let z=0,it=!1;const st=this._menuItems;for(;!it&&z<=st.length-1;){const ct=st[z];it=ct.type!=="divider"&&ct.visible&&ct.enabled,z+=1}return it?st[z-1]:null}get lastMenuItem(){this.updateIfDirty();const z=this._menuItems;let it=z.length-1,st=!1;for(;!st&&it>=0;){const ct=z[it];st=ct.type!=="divider"&&ct.visible&&ct.enabled,it-=1}return st?z[it+1]:null}nextMenuItem(z){if(z===0)return this._activeMenuItem;if(!this._activeMenuItem)return z>0?this.firstMenuItem:this.lastMenuItem;if(!this.firstMenuItem||!this.lastMenuItem||!this._activeMenuItem)return null;this.updateIfDirty();const it=this._menuItems.indexOf(this.firstMenuItem),st=this._menuItems.indexOf(this.lastMenuItem);let ct=this._menuItems.indexOf(this._activeMenuItem),vt=1;for(;ct>=it&&ct<=st;){ct+=z>0?1:-1;const xt=this._menuItems[ct];if(!xt)break;if(xt.visible&&xt.enabled){if(vt===Math.abs(z))return this._menuItems[ct];vt+=1}}return z>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(z){this.updateIfDirty();const st=this._menuItems.filter(ct=>ct.visible&&ct.enabled).indexOf(z);return st<0?-1:st%this.columnCount}static get collator(){return Dy._collator||(Dy._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),Dy._collator}findMenuItem(z){var it;this.updateIfDirty();const st=this._menuItems.filter(Ot=>Ot.type!=="divider"&&Ot.visible&&Ot.enabled);if(st.length===0)return null;const ct=Math.max(...st.map(Ot=>Ot.label.length))-z.length;if(ct<0)return null;let vt=null,xt=0;for(;xt<ct&&!vt;)vt=(it=st.find(Ot=>Dy.collator.compare(z,Ot.label.substring(xt,z.length))===0))!=null?it:null,xt++;return vt}show(z){return!this.visible||!z.container?!1:(this.updateElement(),z.container.appendChild(this.element),Ze()&&(this.element.popover="manual",this.element.showPopover()),z.location&&Cm(this.element,{location:z.location,alternateLocation:z.alternateLocation,verticalPos:"bottom",horizontalPos:"start"}),this.element.focus({preventScroll:!0}),this.parentMenu&&(this.parentMenu.openSubmenu=this),!0)}hide(){var z,it,st,ct,vt;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),Ze()&&((z=this._element)!=null&&z.popover)&&this.element.hidePopover(),(st=(it=this.parentMenu)==null?void 0:it.element)==null||st.focus(),(vt=(ct=this._element)==null?void 0:ct.parentNode)==null||vt.removeChild(this._element)}set openSubmenu(z){var it,st,ct,vt;const xt=z!==null;((it=this.activeMenuItem)==null?void 0:it.type)==="submenu"&&((st=this.activeMenuItem.element)==null||st.setAttribute("aria-expanded",xt.toString())),(vt=(ct=this.activeMenuItem)==null?void 0:ct.element)==null||vt.classList.toggle("is-submenu-open",xt),this.isSubmenuOpen=xt}},oy=class xw extends ry{constructor(z,it){var st;super(z),this.state="closed",this.typingBufferResetTimer=0,this.hysteresisTimer=0,this._updating=!1,this._host=(st=it==null?void 0:it.host)!=null?st:null,this.isDynamic=z.some(sy),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(z){Y1(this._modifiers,z)||(this._modifiers=z,this.dirty=!0)}get activeSubmenu(){let z=this;for(;z.isSubmenuOpen;)z=z.activeMenuItem.submenu;return z}set dirty(z){this._updating||(console.assert(z===!0),this._dirty!==z&&(this._dirty=!0,z&&setTimeout(()=>{this.updateState(this.modifiers),this.updateElement()})))}updateState(z){this._updating=!0,this.modifiers=z!=null?z:this.modifiers,super.updateState(this.modifiers),this._updating=!1}handleKeyupEvent(z){this.isDynamic&&(this.modifiers=Ed(z)),z.stopImmediatePropagation()}handleKeydownEvent(z){var it,st,ct;if(z.key==="Tab"||z.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=Ed(z));let vt=!0;const xt=this.activeSubmenu,Ot=xt.activeMenuItem;switch(z.key){case" ":case"Space":case"Return":case"Enter":Ot==null||Ot.select(Ed(z));break;case"ArrowRight":if((Ot==null?void 0:Ot.type)==="submenu")Ot.select(Ed(z)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!Ot)xt.activeMenuItem=xt.firstMenuItem;else{const Kt=(it=xt.getMenuItemColumn(Ot))!=null?it:-1;if(Kt>=0&&Kt<((st=xt.columnCount)!=null?st:1)-1){const Zt=xt.nextMenuItem(1);Zt&&(xt.activeMenuItem=Zt)}}break;case"ArrowLeft":if(xt===this.rootMenu)Ot||(xt.activeMenuItem=xt.firstMenuItem);else if((Ot&&(ct=xt.getMenuItemColumn(Ot))!=null?ct:-1)<=0||!Ot){xt.hide();const Zt=xt.parentMenu.activeMenuItem;if(Zt){const{element:re}=Zt;re==null||re.focus(),re==null||re.classList.remove("is-submenu-open")}}else{const Zt=xt.nextMenuItem(-1);Zt&&(xt.activeMenuItem=Zt)}break;case"ArrowDown":xt.activeMenuItem=xt.nextMenuItem(xt.columnCount);break;case"ArrowUp":xt.activeMenuItem=xt.nextMenuItem(-xt.columnCount);break;case"Home":case"PageUp":xt.activeMenuItem=xt.firstMenuItem;break;case"End":case"PageDown":xt.activeMenuItem=xt.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const Kt=xt.findMenuItem(this.typingBuffer);Kt&&(xt.activeMenuItem=Kt),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(Dc(z)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=z.key;const Kt=xt.findMenuItem(this.typingBuffer);Kt&&(xt.activeMenuItem=Kt),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else vt=!1}vt&&(z.preventDefault(),z.stopPropagation())}handleEvent(z){if(z.type==="keydown")this.handleKeydownEvent(z);else if(z.type==="keyup")this.handleKeyupEvent(z);else if(z.type==="pointermove")this.lastMoveEvent=z;else if(z.type==="pointerup"&&z.target===this.scrim)Number.isFinite(this.rootMenu._openTimestamp)&&Date.now()-this.rootMenu._openTimestamp<120?this.state="modal":this.state==="modal"&&this.hide();else if(z.type==="contextmenu"){z.preventDefault(),z.stopPropagation();return}super.handleEvent(z)}dispatchEvent(z){return this._host?this._host.dispatchEvent(z):!0}get scrim(){return qh.element}connectScrim(z){const it=this.scrim;it.addEventListener("pointerup",this),it.addEventListener("contextmenu",this),it.addEventListener("keydown",this),it.addEventListener("keyup",this),it.addEventListener("pointermove",this),qh.open({root:z,onDismiss:()=>this.hide()})}disconnectScrim(){const z=this.scrim;z.removeEventListener("pointerup",this),z.removeEventListener("contextmenu",this),z.removeEventListener("keydown",this),z.removeEventListener("keyup",this),z.removeEventListener("pointermove",this),qh.state==="open"&&qh.scrim.close()}get rootMenu(){return this}show(z){return this._onDismiss=z==null?void 0:z.onDismiss,z!=null&&z.modifiers&&(this.modifiers=z.modifiers),this.updateState(),this.connectScrim(z==null?void 0:z.target),super.show(Nt(jt({},z),{container:this.scrim}))?(this._openTimestamp=Date.now(),this.state="open",!0):(this.disconnectScrim(),!1)}hide(){this.cancelDelayedOperation(),this.state!==void 0&&(this.state!=="closed"&&(this.activeMenuItem=null,qh.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(z){this.cancelDelayedOperation();const it=xw.SUBMENU_DELAY;if(it<=0){z();return}this.hysteresisTimer=setTimeout(()=>{this.hysteresisTimer=0,z()},it)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};oy.SUBMENU_DELAY=120;var Wb=oy;function sy(E){return v1(E)?!1:typeof E.label=="function"||typeof E.ariaLabel=="function"||typeof E.tooltip=="function"||(ic(E)||mp(E))&&(typeof E.enabled=="function"||typeof E.visible=="function")||ic(E)&&typeof E.checked=="function"?!0:mp(E)?E.submenu.some(sy):!1}var ca=class{};ca.DELAY=300,ca.MAX_DISTANCE=10;function y1(E){return new Promise((z,it)=>{const st=fg(E);st||z(!1);let ct=st;const vt=setTimeout(()=>{xt.abort(),z(g1(ct,st)<ca.MAX_DISTANCE)},ca.DELAY),xt=new AbortController,Ot=xt.signal;for(const Kt of["pointermove","pointerup","pointercancel"])window.addEventListener(Kt,Zt=>{if(Zt.type==="pointerup"||Zt.type==="pointercancel")clearTimeout(vt),xt.abort(),z(!1);else if(Zt.type==="pointermove"){const re=fg(Zt);re&&(ct=re)}},{passive:!0,signal:Ot})})}function lu(E,z,it){return _m(this,null,function*(){if(E.type==="contextmenu"){const st=E;if(it.show({target:z,location:fg(st),modifiers:Ed(st)}))return E.preventDefault(),E.stopPropagation(),!0}if(E.type==="keydown"){const st=E;if(st.code==="ContextMenu"||st.code==="F10"&&st.shiftKey){const ct=z==null?void 0:z.getBoundingClientRect();if(ct&&it.show({target:z,location:{x:Math.ceil(ct.left+ct.width/2),y:Math.ceil(ct.top+ct.height/2)},modifiers:Ed(st)}))return E.preventDefault(),E.stopPropagation(),!0}}if(E.type==="pointerdown"&&E.pointerType!=="mouse"&&E.button===0){let st=E.target;for(;st&&z!==st;)st=st.parentNode;if(!st||!it.visible)return!1;const ct=fg(E);if(yield y1(E))return it.state!=="closed"?!1:(it.show({target:z,location:ct}),!0)}return!1})}var Xa={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};En(Object.keys(Xa),"{body:auto}",{createAtom:E=>new lt(Nt(jt({},E),{body:on(E.args[0]),accentChar:Xa[E.command.slice(1)]}))}),En(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:E=>{const z=Yn(on(E.args[0]));return new lt(Nt(jt({},E),{body:on(E.args[0]),svgAccent:E.command.slice(1)+(z.length>5?"4":["1","1","2","2","3","3"][z.length])}))}}),En(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:E=>new lt(Nt(jt({},E),{body:on(E.args[0]),svgAccent:"overarc"}))}),En(["underarc","underparen"],"{body:auto}",{createAtom:E=>new Nc(Nt(jt({},E),{body:on(E.args[0]),svgBelow:"underarc"}))}),En("utilde","{body:auto}",{createAtom:E=>{const z=on(E.args[0]),it=Yn(z),st="widetilde"+(it.length>5?"4":["1","1","2","2","3","3"][it.length]);return new Nc(Nt(jt({},E),{body:z,svgBelow:st,boxType:zf(z)}))}}),En("^","{:string}",{createAtom:E=>{var z;return new Mr(Nt(jt({},E),{type:"mord",isFunction:!1,limits:"adjacent",value:E.args[0]&&(z={a:"\xE2",e:"\xEA",i:"\xEE",o:"\xF4",u:"\xFB",A:"\xC2",E:"\xCA",I:"\xCE",O:"\xD4",U:"\xDB"}[E.args[0]])!=null?z:"^"}))}}),En("`","{:string}",{createAtom:E=>{var z;return new Mr(Nt(jt({},E),{type:"mord",isFunction:!1,limits:"adjacent",value:E.args[0]&&(z={a:"\xE0",e:"\xE8",i:"\xEC",o:"\xF2",u:"\xF9",A:"\xC0",E:"\xC8",I:"\xCC",O:"\xD2",U:"\xD9"}[E.args[0]])!=null?z:"`"}))}}),En("'","{:string}",{createAtom:E=>{var z;return new Mr(Nt(jt({},E),{type:"mord",isFunction:!1,limits:"adjacent",value:E.args[0]&&(z={a:"\xE1",e:"\xE9",i:"\xED",o:"\xF3",u:"\xFA",A:"\xC1",E:"\xC9",I:"\xCD",O:"\xD3",U:"\xDA"}[E.args[0]])!=null?z:"'"}))}}),En('"',"{:string}",{createAtom:E=>{var z,it;return new Mr(Nt(jt({},E),{type:"mord",isFunction:!1,limits:"adjacent",value:(z=E.args)!=null&&z[0]?(it={a:"\xE4",e:"\xEB",i:"\xEF",o:"\xF6",u:"\xFC",A:"\xC4",E:"\xCB",I:"\xCB",O:"\xD6",U:"\xDC"}[E.args[0]])!=null?it:'"'+E.args[0]:'"'}))}}),En(".","{:string}",{createAtom:E=>{var z,it;return new Mr(Nt(jt({},E),{type:"mord",isFunction:!1,limits:"adjacent",value:(z=E.args)!=null&&z[0]?(it={a:"\u0227",e:"\u0117",i:"\u0307i",o:"\u022F",u:"\u0307u",A:"\u0226",E:"\u0116",I:"\u0130",O:"\u022E",U:"\u0307U"}[E.args[0]])!=null?it:"."+E.args[0]:"."}))}}),En("=","{:string}",{createAtom:E=>{var z,it;return new Mr(Nt(jt({},E),{type:"mord",isFunction:!1,limits:"adjacent",value:(z=E.args)!=null&&z[0]?(it={a:"\u0101",e:"\u0113",i:"\u012B",o:"\u014D",u:"\u016B",A:"\u0100",E:"\u0112",I:"\u012A",O:"\u014C",U:"\u016A"}[E.args[0]])!=null?it:"="+E.args[0]:"="}))}}),En("~","{:string}",{createAtom:E=>{var z;return new Mr(Nt(jt({type:"mord"},E),{isFunction:!1,limits:"adjacent",value:E.args[0]&&(z={n:"\xF1",N:"\xD1",a:"\xE3",o:"\xF5",A:"\xC3",O:"\xD5"}[E.args[0]])!=null?z:"\xB4"}))}}),En("c","{:string}",{createAtom:E=>{var z;return new Mr(Nt(jt({},E),{type:"mord",isFunction:!1,limits:"adjacent",value:E.args[0]&&(z={c:"\xE7",C:"\xC7"}[E.args[0]])!=null?z:""}))}}),En("enclose","{notation:string}[style:string]{body:auto}",{createAtom:E=>{var z,it;const st=E.args,ct={strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"none",svgStrokeStyle:void 0,borderStyle:void 0,style:(z=E.style)!=null?z:{}};if(st[1]){const xt=st[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const Ot of xt){const Kt=Ot.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(Kt)ct.strokeWidth=Kt[1],ct.strokeStyle=Kt[2],ct.strokeColor=Kt[3];else{const Zt=Ot.match(/\s*([a-z]*)\s*=\s*"(.*)"/);Zt&&(Zt[1]==="mathbackground"?ct.backgroundcolor=Zt[2]:Zt[1]==="mathcolor"?ct.strokeColor=Zt[2]:Zt[1]==="padding"?ct.padding=Zt[2]:Zt[1]==="shadow"&&(ct.shadow=Zt[2]))}}ct.strokeStyle==="dashed"?ct.svgStrokeStyle="5,5":ct.strokeStyle==="dotted"&&(ct.svgStrokeStyle="1,5")}ct.borderStyle=`${ct.strokeWidth} ${ct.strokeStyle} ${ct.strokeColor}`;const vt={};return((it=st[0])!=null?it:"").split(/[, ]/).filter(xt=>xt.length>0).forEach(xt=>{vt[xt.toLowerCase()]=!0}),new Yc(E.command,on(st[2]),vt,ct)}}),En("cancel","{body:auto}",{createAtom:E=>{var z;return new Yc(E.command,on(E.args[0]),{updiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(z=E.style)!=null?z:{}})}}),En("bcancel","{body:auto}",{createAtom:E=>{var z;return new Yc(E.command,on(E.args[0]),{downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(z=E.style)!=null?z:{}})}}),En("xcancel","{body:auto}",{createAtom:E=>{var z;return new Yc(E.command,on(E.args[0]),{updiagonalstrike:!0,downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(z=E.style)!=null?z:{}})}}),En(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:E=>{var z;return new Nc(Nt(jt({},E),{body:on((z=E.args)==null?void 0:z[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:E.command.slice(1)}))}}),En("overbrace","{:auto}",{createAtom:E=>new Nc(Nt(jt({},E),{body:on(E.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:E.command.slice(1)}))}),En(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:E=>new Nc(Nt(jt({},E),{body:on(E.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:E.command.slice(1)}))}),En(["underbrace"],"{:auto}",{createAtom:E=>new Nc(Nt(jt({},E),{body:on(E.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:E.command.slice(1)}))}),En(["xrightarrow","longrightarrow","xleftarrow","longleftarrow","xRightarrow","xLeftarrow","xleftharpoonup","xleftharpoondown","xrightharpoonup","xrightharpoondown","xlongequal","xtwoheadleftarrow","xtwoheadrightarrow","xleftrightarrow","longleftrightarrow","xLeftrightarrow","xrightleftharpoons","longrightleftharpoons","xleftrightharpoons","xhookleftarrow","xhookrightarrow","xmapsto","xtofrom","xleftrightarrows","longleftrightarrows","xRightleftharpoons","longRightleftharpoons","xLeftrightharpoons","longLeftrightharpoons"],"[:auto]{:auto}",{createAtom:E=>{var z,it,st,ct,vt;return new Nc(Nt(jt({},E),{svgBody:E.command.slice(1),above:((it=on((z=E.args)==null?void 0:z[1]))==null?void 0:it.length)===0?void 0:on((st=E.args)==null?void 0:st[1]),below:(vt=on((ct=E.args)==null?void 0:ct[0]))!=null?vt:null,skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,paddedLabels:!0,boxType:"rel"}))},serialize:(E,z)=>E.command+(E.hasEmptyBranch("below")?"":`[${E.belowToLatex(z)}]`)+`{${E.aboveToLatex(z)}}${E.supsubToLatex(z)}`}),En(["arccos","arcsin","arctan","arctg","arcctg","arg","ch","cos","cosh","cot","cotg","coth","ctg","cth","csc","cosec","deg","dim","exp","gcd","hom","inf","ker","lb","lg","ln","log","Pr","sec","sh","sin","sinh","sup","tan","tanh","tg","th","arcsec","arccsc","arsinh","arcosh","artanh","arcsech","arccsch"],"",{isFunction:!0,ifMode:"math",createAtom:E=>new Jo(E.command.slice(1),Nt(jt({},E),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),En(["liminf","limsup"],"",{ifMode:"math",createAtom:E=>new Jo({"\\liminf":"lim inf","\\limsup":"lim sup"}[E.command],Nt(jt({},E),{limits:"over-under",variant:"main"}))}),En(["lim","mod"],"",{ifMode:"math",createAtom:E=>new Jo(E.command.slice(1),Nt(jt({},E),{limits:"over-under",variant:"main"}))}),En(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:E=>new Jo(E.command.slice(1),Nt(jt({},E),{limits:"over-under",isFunction:!0,variant:"main"}))}),En(["ang"],"{:math}",{ifMode:"math",createAtom:E=>new Mr(Nt(jt({},E),{body:on(E.args[0])})),serialize:(E,z)=>`\\ang{${E.bodyToLatex(z)}}`,render:(E,z)=>{const it=E.createBox(z),st=it.caret;it.caret=void 0;const ct=new Qr("\xB0",{style:Nt(jt({},E.style),{variant:"normal",variantStyle:"up"})});return new Qr([it,ct],{type:"inner",isSelected:E.isSelected,caret:st})}}),En("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:E=>new $0(Nt(jt({},E),{body:on(E.args[1]),index:E.args[0]?on(E.args[0]):void 0}))}),En(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:E=>{const z=jt({},E),it=E.command,st=E.args;switch(it){case"\\dfrac":case"\\frac":case"\\tfrac":z.hasBarLine=!0;break;case"\\atopfrac":z.hasBarLine=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":z.hasBarLine=!1,z.leftDelim="(",z.rightDelim=")";break;case"\\cfrac":z.hasBarLine=!0,z.continuousFraction=!0;break;default:}switch(it){case"\\dfrac":case"\\dbinom":z.mathstyleName="displaystyle";break;case"\\tfrac":case"\\tbinom":z.mathstyleName="textstyle";break;default:}return new wl(st[0]?on(st[0]):[new $o],st[1]?on(st[1]):[new $o],z)},serialize:(E,z)=>{const it=E.aboveToLatex(z),st=E.belowToLatex(z);return/^[0-9]$/.test(it)&&/^[0-9]$/.test(st)?`${E.command}${it}${st}`:Fa(E.command,it,st)}}),En(["brace","brack"],"",{infix:!0,createAtom:E=>new wl(on(E.args[0]),on(E.args[1]),Nt(jt({},E),{hasBarLine:!1,leftDelim:E.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:E.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(E,z)=>Ts([E.aboveToLatex(z),E.command,E.belowToLatex(z)])}),En(["over","atop","choose"],"",{infix:!0,createAtom:E=>{let z,it;const st=E.args;return E.command==="\\choose"&&(z="(",it=")"),new wl(on(st[0]),on(st[1]),Nt(jt({},E),{hasBarLine:E.command==="\\over",leftDelim:z,rightDelim:it}))},serialize:(E,z)=>Ts([E.aboveToLatex(z),E.command,E.belowToLatex(z)])}),En(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0,createAtom:E=>{var z,it;const st=E.args;return new wl(on(st[0]),on(st[1]),Nt(jt({},E),{leftDelim:(z=st[2])!=null?z:".",rightDelim:(it=st[3])!=null?it:".",hasBarLine:!1}))},serialize:(E,z)=>`${E.aboveToLatex(z)} ${E.command}${E.leftDelim}${E.rightDelim}${E.belowToLatex(z)}`}),En("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:E=>new wl(on(E.args[0]),on(E.args[1]),Nt(jt({},E),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),En(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:E=>new vv({coprod:"\u2210",bigvee:"\u22C1",bigwedge:"\u22C0",biguplus:"\u2A04",bigcap:"\u22C2",bigcup:"\u22C3",intop:"\u222B",prod:"\u220F",sum:"\u2211",bigotimes:"\u2A02",bigoplus:"\u2A01",bigodot:"\u2A00",bigsqcup:"\u2A06",smallint:"\u222B"}[E.command.slice(1)],Nt(jt({},E),{limits:"auto",variant:"main"}))}),En("smallint","",{ifMode:"math",createAtom:E=>new Jo("\u222B",Nt(jt({},E),{limits:"adjacent",variant:"main"}))});var x1={int:"\u222B",iint:"\u222C",iiint:"\u222D",oint:"\u222E",oiint:"\u222F",oiiint:"\u2230",intclockwise:"\u2231",varointclockwise:"\u2232",ointctrclockwise:"\u2233",intctrclockwise:"\u2A11",sqcup:"\u2294",sqcap:"\u2293",uplus:"\u228E",wr:"\u2240",amalg:"\u2A3F",Cap:"\u22D2",Cup:"\u22D3",doublecap:"\u22D2",doublecup:"\u22D3"};En(Object.keys(x1),"",{ifMode:"math",createAtom:E=>{const z=E.command,it=x1[z.slice(1)];return new vv(it,Nt(jt({},E),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[it]}))}}),En(["Re","Im"],"",{ifMode:"math",createAtom:E=>new Jo({"\\Re":"\u211C","\\Im":"\u2111"}[E.command],Nt(jt({},E),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),En("middle","{:delim}",{ifMode:"math",createAtom:E=>{var z;return new qp(Nt(jt({},E),{delim:(z=E.args[0])!=null?z:"|",size:1}))}}),En("the","{:value}",{createAtom:E=>new Mr(Nt(jt({},E),{captureSelection:!0,verbatimLatex:null})),render:(E,z)=>{var it;const st=new Ws({parent:z},E.style);let ct="";E.isSelected&&(ct+=" ML__selected");const vt=st.evaluate(E.args[0]);return new Qr(((it=fl(vt))!=null?it:"").split("").map(xt=>new Qr(xt,{type:"ord",classes:ct,mode:E.mode,isSelected:E.isSelected,style:jt({variant:"main"},E.style)})),{type:"lift",style:E.style,caret:E.caret,isSelected:E.isSelected,classes:ct}).wrap(st)},serialize:E=>{var z;return`\\the${(z=fl(E.args[0]))!=null?z:"\\relax"}`}}),En("mathtip","{:auto}{:math}",{createAtom:E=>new n0(Nt(jt({},E),{body:on(E.args[0]),tooltip:on(E.args[1]),content:"math"})),serialize:(E,z)=>z.skipStyles?E.bodyToLatex(z):`\\texttip{${E.bodyToLatex(z)}}{${Mr.serialize([E.tooltip],Nt(jt({},z),{defaultMode:"math"}))}}`}),En("texttip","{:auto}{:text}",{createAtom:E=>new n0(Nt(jt({},E),{body:on(E.args[0]),tooltip:on(E.args[1]),content:"text"})),serialize:(E,z)=>z.skipStyles?E.bodyToLatex(z):`\\texttip{${E.bodyToLatex(z)}}{${Mr.serialize([E.tooltip],Nt(jt({},z),{defaultMode:"text"}))}}`}),En("error","{:math}",{createAtom:E=>new Mr(Nt(jt({},E),{body:on(E.args[0])})),serialize:(E,z)=>`\\error{${E.bodyToLatex(z)}}`,render:(E,z)=>E.createBox(z,{classes:"ML__error"})}),En("ensuremath","{:math}",{createAtom:E=>new Mr(Nt(jt({},E),{body:on(E.args[0])})),serialize:(E,z)=>`${E.command}{${E.bodyToLatex(Nt(jt({},z),{defaultMode:"math"}))}}`}),En("color","{:value}",{applyStyle:(E,z,it)=>{var st,ct;return{verbatimColor:(st=fl(z[0]))!=null?st:void 0,color:it.toColor((ct=z[0])!=null?ct:{string:"red"})}}}),En("textcolor","{:value}{content:auto*}",{applyStyle:(E,z,it)=>{var st,ct;return{verbatimColor:(st=fl(z[0]))!=null?st:void 0,color:it.toColor((ct=z[0])!=null?ct:{string:"red"})}}}),En("boxed","{content:math}",{createAtom:E=>new Ga(Nt(jt({},E),{body:on(E.args[0]),framecolor:{string:"black"}}))}),En("colorbox","{:value}{:text*}",{applyStyle:(E,z,it)=>{var st,ct;return{verbatimBackgroundColor:(st=fl(z[0]))!=null?st:void 0,backgroundColor:it.toBackgroundColor((ct=z[0])!=null?ct:{string:"yellow"})}}}),En("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:E=>{var z,it;return new Ga(Nt(jt({},E),{body:on(E.args[2]),framecolor:(z=E.args[0])!=null?z:{string:"blue"},backgroundcolor:(it=E.args[1])!=null?it:{string:"yellow"}}))},serialize:(E,z)=>{var it,st;return z.skipStyles?E.bodyToLatex(Nt(jt({},z),{defaultMode:"text"})):Fa(E.command,(it=fl(E.framecolor))!=null?it:"",(st=fl(E.backgroundcolor))!=null?st:"",E.bodyToLatex(Nt(jt({},z),{defaultMode:"text"})))}}),En("bbox","[:bbox]{body:auto}",{createAtom:E=>{var z;const it=E.args[0],st=on(E.args[1]);return it?new Ga(Nt(jt({},E),{body:st,padding:it.padding,border:it.border,backgroundcolor:(z=it.backgroundcolor)!=null?z:void 0})):new Ga(Nt(jt({},E),{body:st}))},serialize:(E,z)=>{var it,st;if(z.skipStyles)return E.bodyToLatex(z);let ct=E.command;if(Number.isFinite(E.padding)||E.border!==void 0||E.backgroundcolor!==void 0){const vt=[];E.padding&&vt.push((it=fl(E.padding))!=null?it:""),E.border&&vt.push(`border: ${E.border}`),E.backgroundcolor&&vt.push((st=fl(E.backgroundcolor))!=null?st:""),ct+=`[${vt.join(",")}]`}return Fa(ct,E.bodyToLatex(z))}}),En(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:E=>new Mr(Nt(jt({},E),{body:on(E.args[0])})),render:(E,z)=>{const it=new Ws({parent:z,mathstyle:E.command.slice(1)},E.style),st=Mr.createBox(it,E.body,{type:"lift"});return E.caret&&(st.caret=E.caret),E.bind(z,st)},serialize:(E,z)=>z.skipStyles?E.bodyToLatex(z):`{${Ts([E.command,E.bodyToLatex(z)])}}`}),En(["tiny","scriptsize","footnotesize","small","normalsize","large","Large","LARGE","huge","Huge"],"",{applyStyle:E=>({fontSize:{"\\tiny":1,"\\scriptsize":2,"\\footnotesize":3,"\\small":4,"\\normalsize":5,"\\large":6,"\\Large":7,"\\LARGE":8,"\\huge":9,"\\Huge":10}[E]})}),En("fontseries","{:string}",{ifMode:"text",applyStyle:(E,z)=>{var it;return{fontSeries:(it=z[0])!=null?it:"auto"}}}),En("fontshape","{:string}",{ifMode:"text",applyStyle:(E,z)=>{var it;return{fontShape:(it=z[0])!=null?it:"auto"}}}),En("fontfamily","{:string}",{ifMode:"text",applyStyle:(E,z)=>{var it;return{fontFamily:(it=z[0])!=null?it:"roman"}}}),En("selectfont","",{ifMode:"text",applyStyle:()=>({})}),En("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),En(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:E=>new Mr(Nt(jt({},E),{body:on(E.args[0])})),serialize:(E,z)=>`${E.command}{${E.bodyToLatex(z)}}`,render:(E,z)=>E.createBox(z,{classes:"ML__boldsymbol"})}),En("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),En("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),En("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),En("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),En("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),En("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),En("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),En("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),En("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),En("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),En("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),En("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),En("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),En("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),En("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),En("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),En("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),En("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),En("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),En("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),En("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),En("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),En("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),En("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),En("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),En("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),En("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),En(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),En(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),En("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),En("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),En("mbox","{:text}",{ifMode:"math",createAtom:E=>new Mr(Nt(jt({},E),{type:"mord",body:on(E.args[0]),mode:"math"})),serialize:(E,z)=>Fa("\\mbox",E.bodyToLatex(Nt(jt({},z),{defaultMode:"text"})))}),En("text","{:text}",{ifMode:"math",applyMode:"text"}),En(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:E=>new Mr(Nt(jt({},E),{body:on(E.args[1])})),serialize:(E,z)=>!E.args[0]||z.skipStyles?E.bodyToLatex(z):`${E.command}{${E.args[0]}}{${E.bodyToLatex(z)}}`,render:(E,z)=>{var it;return E.createBox(z,{classes:(it=E.args[0])!=null?it:""})}}),En(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:E=>new Mr(Nt(jt({},E),{body:on(E.args[1])})),serialize:(E,z)=>{var it;return!((it=E.args)!=null&&it[0])||z.skipStyles?E.bodyToLatex(z):`${E.command}{${E.args[0]}}{${E.bodyToLatex(z)}}`},render:(E,z)=>{var it;const st=E.createBox(z);return st.cssId=(it=E.args[0])!=null?it:"",st}}),En("htmlData","{data:string}{content:auto}",{createAtom:E=>new Mr(Nt(jt({},E),{body:on(E.args[1])})),serialize:(E,z)=>{var it;return!((it=E.args)!=null&&it[0])||z.skipStyles?E.bodyToLatex(z):`\\htmlData{${E.args[0]}}{${E.bodyToLatex(z)}}`},render:(E,z)=>{var it;const st=E.createBox(z);return st.htmlData=(it=E.args[0])!=null?it:"",st}}),En(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:E=>new Mr(Nt(jt({},E),{body:on(E.args[1])})),serialize:(E,z)=>{var it;return!((it=E.args)!=null&&it[0])||z.skipStyles?E.bodyToLatex(z):`${E.command}{${E.args[0]}}{${E.bodyToLatex(z)}}`},render:(E,z)=>{var it;const st=E.createBox(z);return st.htmlStyle=(it=E.args[0])!=null?it:"",st}}),En("em","{:rest}",{createAtom:E=>new Mr(Nt(jt({},E),{body:on(E.args[0])})),serialize:(E,z)=>z.skipStyles?E.bodyToLatex(z):`{\\em ${E.bodyToLatex(z)}}`,render:(E,z)=>E.createBox(z,{classes:"ML__emph",boxType:"lift"})}),En("emph","{:auto}",{createAtom:E=>new Mr(Nt(jt({},E),{body:on(E.args[1])})),serialize:(E,z)=>z.skipStyles?E.bodyToLatex(z):`\\emph{${E.bodyToLatex(z)}}`,render:(E,z)=>E.createBox(z,{classes:"ML__emph",boxType:"lift"})});var Kg={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}};En(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:E=>{var z;return new Yf(Nt(jt({},E),{delim:(z=E.args[0])!=null?z:".",size:Kg[E.command].size,delimType:Kg[E.command].mclass}))}}),En(["hspace","hspace*"],"{width:value}",{createAtom:E=>{var z;return new e0(Nt(jt({},E),{width:(z=E.args[0])!=null?z:{dimension:0}}))}}),En(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:E=>{var z;return new e0(Nt(jt({},E),{width:(z=E.args[0])!=null?z:{dimension:0}}))}}),En("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:E=>new Mr(E),render:(E,z)=>{let it=0;const st=z.mathstyle.id;(st===Wh||st===Vh)&&(it=1),(st===tf||st===Wl)&&(it=2),(st===kl||st===tu)&&(it=3);const ct=on(E.args[it]);return Mr.createBox(z,ct)},serialize:(E,z)=>`\\mathchoice{${Mr.serialize(E.args[0],z)}}{${Mr.serialize(E.args[1],z)}}{${Mr.serialize(E.args[2],z)}}{${Mr.serialize(E.args[3],z)}}`}),En("mathop","{:auto}",{createAtom:E=>new Mr(Nt(jt({},E),{type:"mop",body:on(E.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(E,z)=>{var it;let st=Mr.createBox(z,E.body);if(E.superscript||E.subscript){const ct=(it=E.subsupPlacement)!=null?it:"auto";st=ct==="over-under"||ct==="auto"&&z.isDisplayStyle?E.attachLimits(z,{base:st}):E.attachSupsub(z,{base:st})}return new Qr(E.bind(z,st),{type:"op",isSelected:E.isSelected,classes:"op-group"})},serialize:(E,z)=>{const it=[Fa(E.command,E.bodyToLatex(z))];return E.explicitSubsupPlacement&&(E.subsupPlacement==="over-under"&&it.push("\\limits"),E.subsupPlacement==="adjacent"&&it.push("\\nolimits"),E.subsupPlacement==="auto"&&it.push("\\displaylimits")),it.push(E.supsubToLatex(z)),Ts(it)}}),En(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:E=>new Mr(Nt(jt({},E),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[E.command],body:on(E.args[0])}))}),En(["operatorname","operatorname*"],"{operator:math}",{createAtom:E=>{const z=on(E.args[0]).map(it=>{var st;return it.type!=="first"&&(it.type="mord",it.value=(st={"\u2217":"*","\u2212":"-"}[it.value])!=null?st:it.value,it.isFunction=!1,!it.style.variant&&!it.style.variantStyle&&(it.style.variant="main",it.style.variantStyle="up")),it});return new Mr(Nt(jt({},E),{type:"mop",body:z,isFunction:!0,limits:E.command==="\\operatorname"?"adjacent":"over-under"}))},render:(E,z)=>{var it;let st=Mr.createBox(z,E.body);if(E.superscript||E.subscript){const ct=(it=E.subsupPlacement)!=null?it:"auto";st=ct==="over-under"||ct==="auto"&&z.isDisplayStyle?E.attachLimits(z,{base:st}):E.attachSupsub(z,{base:st})}return E.caret&&(st.caret=E.caret),new Qr(E.bind(z,st),{type:"op",isSelected:E.isSelected,classes:"op-group"})},serialize:(E,z)=>{const it=[Fa(E.command,E.bodyToLatex(z))];return E.explicitSubsupPlacement&&(E.subsupPlacement==="over-under"&&it.push("\\limits"),E.subsupPlacement==="adjacent"&&it.push("\\nolimits"),E.subsupPlacement==="auto"&&it.push("\\displaylimits")),it.push(E.supsubToLatex(z)),Ts(it)}}),En(["char","unicode"],"{charcode:value}",{createAtom:E=>new Mr(Nt(jt({},E),{type:E.mode==="text"?"text":"mord"})),serialize:E=>{var z;return`${E.command}${fl((z=E.args[0])!=null?z:{number:10067,base:"hexadecimal"})}`},render:(E,z)=>{let it=z.evaluate(E.args[0]);return(!it||!("number"in it))&&(it={number:10067,base:"hexadecimal"}),E.value=String.fromCodePoint(it.number),E.createBox(z)}}),En("rule","[raise:value]{width:value}{thickness:value}",{createAtom:E=>new Mr(E),render:(E,z)=>{var it,st,ct;const vt=new Ws({parent:z,mathstyle:"textstyle"},E.style),xt=vt.toEm((it=E.args[0])!=null?it:{dimension:0}),Ot=vt.toEm((st=E.args[1])!=null?st:{dimension:10}),Kt=vt.toEm((ct=E.args[2])!=null?ct:{dimension:10}),Zt=new Qr(null,{classes:"rule",type:"ord"});return Zt.width=Ot,Zt.height=Kt+xt,Zt.depth=-xt,Zt.setStyle("border-right-width",Ot,"em"),Zt.setStyle("border-top-width",Kt,"em"),Zt.setStyle("border-color",E.style.color),Zt.setStyle("vertical-align",xt,"em"),E.isSelected&&Zt.setStyle("opacity","50%"),E.bind(vt,Zt),E.caret&&(Zt.caret=E.caret),Zt.wrap(z)},serialize:E=>`\\rule${E.args[0]?`[${fl(E.args[0])}]`:""}{${fl(E.args[1])}}{${fl(E.args[2])}}`}),En(["overline","underline"],"{:auto}",{createAtom:E=>new Mr(Nt(jt({},E),{body:on(E.args[0])})),render:(E,z)=>{const it=E.command.substring(1),st=new Ws({parent:z,mathstyle:"cramp"},E.style),ct=Mr.createBox(st,E.body);if(!ct)return null;const vt=st.metrics.defaultRuleThickness/st.scalingFactor,xt=new Qr(null,{classes:it+"-line"});xt.height=vt,xt.maxFontSize=vt*1.125*st.scalingFactor;let Ot;return it==="overline"?Ot=new sa({shift:0,children:[{box:ct},3*vt,{box:xt},vt]}):Ot=new sa({top:ct.height,children:[vt,{box:xt},3*vt,{box:ct}]}),E.caret&&(Ot.caret=E.caret),new Qr(Ot,{classes:it,type:"ignore"})}}),En("overset","{:auto}{base:auto}",{createAtom:E=>{const z=on(E.args[1]);return new Nc(Nt(jt({},E),{above:on(E.args[0]),body:z,skipBoundary:!1,boxType:zf(z)}))},serialize:(E,z)=>Fa(E.command,E.aboveToLatex(z),E.bodyToLatex(z))}),En("underset","{:auto}{base:auto}",{createAtom:E=>{const z=on(E.args[1]);return new Nc(Nt(jt({},E),{below:on(E.args[0]),body:z,skipBoundary:!1,boxType:zf(z)}))},serialize:(E,z)=>Fa(E.command,E.belowToLatex(z),E.bodyToLatex(z))}),En("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:E=>{const z=on(E.args[2]);return new Nc(Nt(jt({},E),{above:on(E.args[0]),below:on(E.args[1]),body:z,skipBoundary:!1,boxType:zf(z)}))},serialize:(E,z)=>Fa(E.command,E.belowToLatex(z),E.bodyToLatex(z))}),En(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:E=>new Nc(Nt(jt({},E),{body:on(E.args[2]),above:on(E.args[1]),below:on(E.args[0]),skipBoundary:!1,boxType:E.command==="\\stackrel"?"rel":"bin"})),serialize:(E,z)=>Fa(E.command,E.aboveToLatex(z),E.bodyToLatex(z))}),En("smash","[:string]{:auto}",{createAtom:E=>{var z,it,st,ct;return new Q0(Nt(jt({},E),{body:on(E.args[1]),smashHeight:(it=(z=E.args[0])==null?void 0:z.includes("t"))!=null?it:!0,smashDepth:(ct=(st=E.args[0])==null?void 0:st.includes("b"))!=null?ct:!0}))}}),En(["vphantom"],"{:auto}",{createAtom:E=>new Q0(Nt(jt({},E),{body:on(E.args[0]),isInvisible:!0,smashWidth:!0}))}),En(["hphantom"],"{:auto}",{createAtom:E=>new Q0(Nt(jt({},E),{body:on(E.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),En(["phantom"],"{:auto}",{createAtom:E=>new Q0(Nt(jt({},E),{body:on(E.args[0]),isInvisible:!0}))}),En("not","{:math}",{createAtom:E=>{const z=on(E.args[0]);return z.length===0?new Mr(Nt(jt({},E),{type:"mrel",value:"\uE020"})):new Mr(Nt(jt({},E),{body:[new wh(Nt(jt({},E),{body:"\uE020",align:"right"})),...z],captureSelection:!0}))},serialize:(E,z)=>{const it=E.args[0],st=it&&typeof it=="object"&&"group"in it;return E.value!=="\uE020"?st?`\\not{${Mr.serialize(it.group,z)}}`:`\\not${Mr.serialize(it,z)}`:st?"\\not{}":"\\not"},render:(E,z)=>{if(E.value)return E.createBox(z);const st=E.args[0]&&typeof E.args[0]=="object"&&"group"in E.args[0]?"ord":zf(on(E.args[0])),ct=Mr.createBox(z,E.body,{type:st});return E.caret&&(ct.caret=E.caret),E.bind(z,ct)}}),En(["ne","neq"],"",{createAtom:E=>new Mr(Nt(jt({},E),{type:"mrel",body:[new wh(Nt(jt({},E),{body:"\uE020",align:"right",boxType:"rel"})),new Mr(Nt(jt({},E),{value:"="}))],captureSelection:!0})),serialize:E=>E.command}),En("rlap","{:auto}",{createAtom:E=>new wh(Nt(jt({},E),{body:on(E.args[0]),align:"right"}))}),En("llap","{:auto}",{createAtom:E=>new wh(Nt(jt({},E),{body:on(E.args[0]),align:"left"}))}),En("mathrlap","{:math}",{createAtom:E=>new wh(Nt(jt({},E),{body:on(E.args[0]),align:"left"}))}),En("mathllap","{:math}",{createAtom:E=>new wh(Nt(jt({},E),{body:on(E.args[0]),align:"left"}))}),En("raisebox","{:value}{:text}",{createAtom:E=>{var z;return new Ga(Nt(jt({},E),{body:on(E.args[1]),padding:{dimension:0},offset:(z=E.args[0])!=null?z:{dimension:0}}))},serialize:(E,z)=>{var it;return Fa("\\raisebox",(it=fl(E.offset))!=null?it:"0pt",E.bodyToLatex(z))}}),En("raise","{:value}{:auto}",{createAtom:E=>{var z;return new Ga(Nt(jt({},E),{body:on(E.args[1]),padding:{dimension:0},offset:(z=E.args[0])!=null?z:{dimension:0}}))},serialize:(E,z)=>{var it;return Fa("\\raise",(it=fl(E.offset))!=null?it:"0pt",E.bodyToLatex(z))}}),En("lower","{:value}{:auto}",{createAtom:E=>{var z;return new Ga(Nt(jt({},E),{body:on(E.args[1]),padding:{dimension:0},offset:(z=Lc(E.args[0],-1))!=null?z:{dimension:0}}))},serialize:(E,z)=>{var it,st;return Fa("\\lower",(st=fl(Lc((it=E.offset)!=null?it:{dimension:0},-1)))!=null?st:"0pt",E.bodyToLatex(z))}}),Xt("0123456789/@.?!"),Re(65,90),Re(97,122),Xt([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Xt([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Xt([["\\backslash",92],["\\nabla",8711],["\\partial",8706],["\\ell",8467],["\\hbar",8463],["\\Q",81,"mord","double-struck"],["\\C",67,"mord","double-struck"],["\\P",80,"mord","double-struck"],["\\pounds",163],["\\euro",8364]]),Xt([["\\rightarrow",8594],["\\to",8594],["\\leftarrow",8592],["\\gets",8592],["\\Rightarrow",8658],["\\Leftarrow",8656],["\\longrightarrow",10230],["\\longleftarrow",10229],["\\Longrightarrow",10233],["\\implies",10233],["\\Longleftarrow",10232],["\\impliedby",10232],["\\longleftrightarrow",10231],["\\biconditional",10231],["\\Longleftrightarrow",10234],["\\mapsto",8614],["\\longmapsto",10236],["\\uparrow",8593],["\\downarrow",8595],["\\Uparrow",8657],["\\Downarrow",8659],["\\updownarrow",8597],["\\Updownarrow",8661],["\\hookrightarrow",8618],["\\hookleftarrow",8617],["\\rightharpoonup",8640],["\\leftharpoonup",8636],["\\rightharpoondown",8641],["\\leftharpoondown",8637],["\\searrow",8600],["\\nearrow",8599],["\\swarrow",8601],["\\nwarrow",8598],["\\originalof",8886],["\\laplace",8886],["\\imageof",8887],["\\Laplace",8887]],"mrel"),Xt([["\\mapsfrom",8612,"mrel"],["\\Mapsfrom",10502,"mrel"],["\\MapsTo",10503,"mrel"],["\\Yup",8516,"mord"],["\\lightning",8623,"mrel"],["\\leftarrowtriangle",8701,"mrel"],["\\rightarrowtriangle",8702,"mrel"],["\\leftrightarrowtriangle",8703,"mrel"],["\\boxdot",8865,"mbin"],["\\bigtriangleup",9651,"mbin"],["\\bigtriangledown",9661,"mbin"],["\\boxbar",9707,"mbin"],["\\Lbag",10181,"mopen"],["\\Rbag",10182,"mclose"],["\\llbracket",10214,"mopen"],["\\rrbracket",10215,"mclose"],["\\longmapsfrom",10235,"mrel"],["\\Longmapsfrom",10237,"mrel"],["\\Longmapsto",10238,"mrel"],["\\boxslash",10692,"mbin"],["\\boxbslash",10693,"mbin"],["\\boxast",10694,"mbin"],["\\boxcircle",10695,"mbin"],["\\boxbox",10696,"mbin"],["\\fatsemi",10783,"mop"],["\\leftslice",10918,"mrel"],["\\rightslice",10919,"mrel"],["\\interleave",10996,"mbin"],["\\biginterleave",11004,"mop"],["\\sslash",11005,"mbin"],["\\talloblong",11006,"mbin"]]),Xt([["\\lbrace",123,"mopen"],["\\rbrace",125,"mclose"],["\\lparen",40,"mopen"],["\\rparen",41,"mclose"],["\\langle",10216,"mopen"],["\\rangle",10217,"mclose"],["\\lfloor",8970,"mopen"],["\\rfloor",8971,"mclose"],["\\lceil",8968,"mopen"],["\\rceil",8969,"mclose"],["\\vert",8739],["\\lvert",8739,"mopen"],["\\rvert",8739,"mclose"],["\\|",8741],["\\Vert",8741],["\\mVert",8741],["\\lVert",8741,"mopen"],["\\rVert",8741,"mclose"],["\\lbrack",91,"mopen"],["\\rbrack",93,"mclose"],["\\{",123,"mopen"],["\\}",125,"mclose"],["(",40,"mopen"],[")",41,"mclose"],["[",91,"mopen"],["]",93,"mclose"],["\\ulcorner",9484,"mopen","ams"],["\\urcorner",9488,"mclose","ams"],["\\llcorner",9492,"mopen","ams"],["\\lrcorner",9496,"mclose","ams"],["\\lgroup",10222,"mopen"],["\\rgroup",10223,"mclose"],["\\lmoustache",9136,"mopen"],["\\rmoustache",9137,"mclose"]]),Xt([["\\dashrightarrow",8674],["\\dashleftarrow",8672],["\\Rrightarrow",8667],["\\Lleftarrow",8666],["\\leftrightarrows",8646],["\\rightleftarrows",8644],["\\curvearrowright",8631],["\\curvearrowleft",8630],["\\rightrightarrows",8649],["\\leftleftarrows",8647],["\\upuparrows",8648],["\\downdownarrows",8650],["\\vartriangle",9651],["\\triangleq",8796],["\\vartriangleleft",8882],["\\trianglelefteq",8884],["\\ntriangleleft",8938],["\\ntrianglelefteq",8940],["\\vartriangleright",8883],["\\trianglerighteq",8885],["\\ntriangleright",8939],["\\ntrianglerighteq",8941],["\\blacktriangleleft",9664],["\\blacktriangleright",9654],["\\leftarrowtail",8610],["\\rightarrowtail",8611],["\\looparrowright",8620],["\\looparrowleft",8619],["\\twoheadleftarrow",8606],["\\twoheadrightarrow",8608],["\\twoheadrightarrowtail",10518],["\\rightleftharpoons",8652],["\\leftrightharpoons",8651],["\\Rsh",8625],["\\Lsh",8624],["\\circlearrowright",8635],["\\circlearrowleft",8634],["\\restriction",8638],["\\upharpoonright",8638],["\\upharpoonleft",8639],["\\downharpoonright",8642],["\\downharpoonleft",8643],["\\rightsquigarrow",8669],["\\leadsto",8669],["\\leftrightsquigarrow",8621],["\\multimap",8888],["\\nleftarrow",8602],["\\nrightarrow",8603],["\\nRightarrow",8655],["\\nLeftarrow",8653],["\\nleftrightarrow",8622],["\\nLeftrightarrow",8654],["\\nvrightarrow",8696],["\\nvtwoheadrightarrow",10496],["\\nvrightarrowtail",10516],["\\nvtwoheadrightarrowtail",10519],["\\shortparallel",8741],["\\nless",8814],["\\nleqslant",57360],["\\lneq",10887],["\\lneqq",8808],["\\nleqq",57361],["\\lvertneqq",57356],["\\lnsim",8934],["\\lnapprox",10889],["\\nprec",8832],["\\npreceq",8928],["\\precnsim",8936],["\\precnapprox",10937],["\\nsim",8769],["\\nshortmid",57350],["\\nmid",8740],["\\nvdash",8876],["\\nvDash",8877],["\\ngtr",8815],["\\ngeqslant",57359],["\\ngeqq",57358],["\\gneq",10888],["\\gneqq",8809],["\\gvertneqq",57357],["\\gnsim",8935],["\\gnapprox",10890],["\\nsucc",8833],["\\nsucceq",8929],["\\succnsim",8937],["\\succnapprox",10938],["\\ncong",8774],["\\nshortparallel",57351],["\\nparallel",8742],["\\nVDash",8879],["\\nsupseteqq",57368],["\\supsetneq",8843],["\\varsupsetneq",57371],["\\supsetneqq",10956],["\\varsupsetneqq",57369],["\\nVdash",8878],["\\precneqq",10933],["\\succneqq",10934],["\\nsubseteqq",57366],["\\leqslant",10877],["\\geqslant",10878],["\\gtrsim",8819],["\\approxeq",8778],["\\thickapprox",8776],["\\lessapprox",10885],["\\gtrapprox",10886],["\\precapprox",10935],["\\succapprox",10936],["\\thicksim",8764],["\\succsim",8831],["\\precsim",8830],["\\backsim",8765],["\\eqsim",8770],["\\backsimeq",8909],["\\lesssim",8818],["\\nleq",8816],["\\ngeq",8817],["\\smallsmile",8995],["\\smallfrown",8994],["\\leqq",8806],["\\eqslantless",10901],["\\lll",8920],["\\lessgtr",8822],["\\lesseqgtr",8922],["\\lesseqqgtr",10891],["\\risingdotseq",8787],["\\fallingdotseq",8786],["\\subseteqq",10949],["\\Subset",8912],["\\sqsubset",8847],["\\preccurlyeq",8828],["\\curlyeqprec",8926],["\\vDash",8872],["\\Vvdash",8874],["\\bumpeq",8783],["\\Bumpeq",8782],["\\geqq",8807],["\\eqslantgtr",10902],["\\ggg",8921],["\\gtrless",8823],["\\gtreqless",8923],["\\gtreqqless",10892],["\\supseteqq",10950],["\\Supset",8913],["\\sqsupset",8848],["\\succcurlyeq",8829],["\\curlyeqsucc",8927],["\\Vdash",8873],["\\shortmid",8739],["\\between",8812],["\\pitchfork",8916],["\\varpropto",8733],["\\backepsilon",8717],["\\llless",8920],["\\gggtr",8921],["\\doteqdot",8785],["\\Doteq",8785],["\\eqcirc",8790],["\\circeq",8791],["\\therefore",8756],["\\because",8757]],"mrel","ams"),Xt([["+",43],["-",8722],["\u2212",8722],["\\pm",177],["\\mp",8723],["*",8727],["\\times",215],["\\div",247],["\\divides",8739],["\\cdot",8901],["\\cap",8745],["\\cup",8746],["\\setminus",8726],["\\land",8743],["\\wedge",8743],["\\lor",8744],["\\vee",8744],["\\circ",8728],["\\bigcirc",9711],["\\bullet",8729],["\\oplus",8853],["\\ominus",8854],["\\otimes",8855],["\\odot",8857],["\\oslash",8856],["\\bigtriangleup",9651],["\\bigtriangledown",9661],["\\triangleleft",9667],["\\triangleright",9657],["\\And",38],["\\dagger",8224],["\\dag",8224],["\\ddag",8225],["\\ddagger",8225],["\\ast",8727],["\\star",8902],["\\bigstar",9733],["\\diamond",8900]],"mbin"),Xt([["\\lhd",8882],["\\rhd",8883],["\\lessdot",8918],["\\gtrdot",8919],["\\ltimes",8905],["\\rtimes",8906],["\\leftthreetimes",8907],["\\rightthreetimes",8908],["\\intercal",8890],["\\dotplus",8724],["\\doublebarwedge",10846],["\\divideontimes",8903],["\\centerdot",8901],["\\smallsetminus",8726],["\\barwedge",8892],["\\veebar",8891],["\\nor",8891],["\\curlywedge",8911],["\\curlyvee",8910],["\\boxminus",8863],["\\boxplus",8862],["\\boxtimes",8864],["\\boxdot",8865],["\\circleddash",8861],["\\circledast",8859],["\\circledcirc",8858],["\\unlhd",8884],["\\unrhd",8885]],"mbin","ams"),Xt([["\\surd",8730],["\\infty",8734],["\\prime",8242],["\\doubleprime",8243],["\\angle",8736],["`",8216],["\\$",36],["\\%",37],["\\_",95],["\\alpha",945],["\\beta",946],["\\gamma",947],["\\delta",948],["\\epsilon",1013],["\\varepsilon",949],["\\zeta",950],["\\eta",951],["\\theta",952],["\\vartheta",977],["\\iota",953],["\\kappa",954],["\\varkappa",1008,"mord","ams"],["\\lambda",955],["\\mu",956],["\\nu",957],["\\xi",958],["\\omicron",111],["\\pi",960],["\\varpi",982],["\\rho",961],["\\varrho",1009],["\\sigma",963],["\\varsigma",962],["\\tau",964],["\\phi",981],["\\varphi",966],["\\upsilon",965],["\\chi",967],["\\psi",968],["\\omega",969],["\\Gamma",915],["\\Delta",916],["\\Theta",920],["\\Lambda",923],["\\Xi",926],["\\Pi",928],["\\Sigma",931],["\\Upsilon",933],["\\Phi",934],["\\Psi",936],["\\Omega",937],["\\digamma",989,"mord","ams"],["\\emptyset",8709]]),Xt([["=",61],["<",60],["\\lt",60],[">",62],["\\gt",62],["\\le",8804],["\\leq",8804],["\\ge",8805],["\\geq",8805],["\\ll",8810],["\\gg",8811],["\\coloneq",8788],["\\coloneqq",8788],["\\colonequals",8788],["\\measeq",8797],["\\eqdef",8798],["\\questeq",8799],[":",58],["\\cong",8773],["\\equiv",8801],["\\prec",8826],["\\preceq",10927],["\\succ",8827],["\\succeq",10928],["\\perp",8869],["\\propto",8733],["\\Colon",8759],["\\smile",8995],["\\frown",8994],["\\sim",8764],["\\doteq",8784],["\\bowtie",8904],["\\Join",8904],["\\asymp",8781],["\\sqsubseteq",8849],["\\sqsupseteq",8850],["\\approx",8776],["\\~",126],["\\leftrightarrow",8596],["\\Leftrightarrow",8660],["\\models",8872],["\\vdash",8866],["\\dashv",8867],["\\roundimplies",10608],["\\in",8712],["\\notin",8713],["\\ni",8715],["\\owns",8715],["\\subset",8834],["\\supset",8835],["\\subseteq",8838],["\\supseteq",8839],["\\differencedelta",8710],["\\mvert",8739],["\\parallel",8741],["\\simeq",8771]],"mrel"),Xt([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Xt([["\\wp",8472],["\\aleph",8501]]),Xt([["\\blacktriangle",9650],["\\hslash",8463],["\\Finv",8498],["\\Game",8513],["\\eth",240],["\\mho",8487],["\\Bbbk",107],["\\yen",165],["\\square",9633],["\\Box",9633],["\\blacksquare",9632],["\\circledS",9416],["\\circledR",174],["\\triangledown",9661],["\\blacktriangledown",9660],["\\checkmark",10003],["\\diagup",9585],["\\measuredangle",8737],["\\sphericalangle",8738],["\\backprime",8245],["\\backdoubleprime",8246],["\\Diamond",9674],["\\lozenge",9674],["\\blacklozenge",10731],["\\varnothing",8709],["\\complement",8705],["\\maltese",10016],["\\beth",8502],["\\daleth",8504],["\\gimel",8503]],"mord","ams"),Xt([["\\ ",160],["~",160]],"space"),En(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:E=>new e0(E)}),En("space","",{createAtom:E=>new e0(E)}),Xt([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Xt([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Xt([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var Em="<mo>⁡</mo>",x0="<mo>⁢</mo>";function Zu(E){return E.replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Ca(E,z){return!E||!z.generateID?"":` extid="${E}"`}function ay(E,z,it){var st,ct,vt,xt,Ot,Kt,Zt,re,Be,ln,Fn;let ei=!1;z=z!=null?z:E.atoms.length;let hr="",Gr="",$i=E.atoms[E.index];const Nr=(ct=(st=$i.style)==null?void 0:st.variant)!=null?ct:"",eo=(xt=(vt=$i.style)==null?void 0:vt.variantStyle)!=null?xt:"";let zr="";if(Nr||eo){const ns=ti($i.value,(Ot=$i.style)==null?void 0:Ot.variant,(Kt=$i.style)==null?void 0:Kt.variantStyle);if(ns!==$i.value)return E.index+=1,hr=`<mi${Ca($i.id,it)}>${ns}</mi>`,Xo(hr,E,it)||(E.mathML+=hr,E.lastType="mi"),!0;zr=(Zt={upnormal:"normal",boldnormal:"bold",italicmain:"italic",bolditalicmain:"bold-italic","updouble-struck":"double-struck","double-struck":"double-struck",boldfraktur:"bold-fraktur",calligraphic:"script",upcalligraphic:"script",script:"script",boldscript:"bold-script",boldcalligraphic:"bold-script",fraktur:"fraktur","upsans-serif":"sans-serif","boldsans-serif":"bold-sans-serif","italicsans-serif":"sans-serif-italic","bolditalicsans-serif":"sans-serif-bold-italic",monospace:"monospace"}[eo+Nr])!=null?Zt:"",zr=` mathvariant="${zr}"`}const _o={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if($i.command==="!")return E.index+=1,hr="<mo>!</mo>",Xo(hr,E,it)||(E.mathML+=hr,E.lastType="mo"),!0;if(_o[$i.command]){E.index+=1;let ns=`<mi${Ca($i.id,it)}${zr}>${_o[$i.command]}</mi>`;return(E.lastType==="mi"||E.lastType==="mn"||E.lastType==="mtext"||E.lastType==="fence")&&(ns=x0+ns),Xo(ns,E,it)||(E.mathML+=ns,E.lastType="mi"),!0}if($i.command==="\\operatorname")Gr=bf($i.body),E.index+=1;else if(Nr||eo)for(;E.index<z&&($i.type==="mord"||$i.type==="macro")&&!$i.isDigit()&&Nr===((Be=(re=$i.style)==null?void 0:re.variant)!=null?Be:"")&&eo===((Fn=(ln=$i.style)==null?void 0:ln.variantStyle)!=null?Fn:"");)Gr+=bf([$i]),E.index+=1,$i=E.atoms[E.index];else($i.type==="mord"||$i.type==="macro")&&!$i.isDigit()&&(Gr+=bf([$i]),E.index+=1);if(Gr.length>0){ei=!0,hr=`<mi${zr}>${Gr}</mi>`;const ns=E.lastType;hr.endsWith(">f</mi>")||hr.endsWith(">g</mi>")?(hr+=Em,E.lastType="applyfunction"):E.lastType=/^<mo>(.*)<\/mo>$/.test(hr)?"mo":"mi",Xo(hr,E,it)||((ns==="mi"||ns==="mn"||ns==="mtext"||ns==="fence")&&(hr=x0+hr),E.mathML+=hr)}return ei}function Hg(E){return E.index<E.atoms.length&&E.atoms[E.index].superscript&&E.atoms[E.index].type==="subsup"}function ly(E){let z=-1,it=E.index,st=!1,ct=!1;for(;it<E.atoms.length&&!st&&!ct;){const vt=E.atoms[it];st=!vt.isDigit(),ct=!st&&vt.superscript!==void 0,it++}return ct&&(z=it-1),z}function Xo(E,z,it){var st;let ct=z.atoms[z.index-1];if(!ct)return!1;if(!ct.superscript&&!ct.subscript)if(((st=z.atoms[z.index])==null?void 0:st.type)==="subsup")ct=z.atoms[z.index],z.index+=1;else return!1;const vt=z.lastType;z.lastType="";const xt=ia(ct.superscript,it);z.lastType="";const Ot=ia(ct.subscript,it);if(z.lastType=vt,!xt&&!Ot)return!1;let Kt="";return xt&&Ot?Kt=`<msubsup>${E}${Ot}${xt}</msubsup>`:xt?Kt=`<msup>${E}${xt}</msup>`:Ot&&(Kt=`<msub>${E}${Ot}</msub>`),z.mathML+=Kt,z.lastType="",!0}function vx(E,z,it){z=z!=null?z:E.atoms.length;const st=E.index;let ct="";for(;E.index<z&&E.atoms[E.index].mode==="text";)ct+=E.atoms[E.index].value?E.atoms[E.index].value:" ",E.index+=1;return ct.length>0?(E.mathML+=`<mtext ${Ca(E.atoms[st].id,it)}>${ct}</mtext>`,E.lastType="mtext",!0):!1}function yx(E,z,it){z=z!=null?z:E.atoms.length;const st=E.index;let ct="",vt=ly(E);for(vt>=0&&vt<z&&(z=vt);E.index<z&&E.atoms[E.index].isDigit();)ct+=E.atoms[E.index].asDigit(),E.index+=1;return ct.length<=0?!1:(ct="<mn"+Ca(E.atoms[st].id,it)+">"+ct+"</mn>",vt<0&&Hg(E)&&(vt=E.index,E.index+=1),Xo(ct,E,it)||(E.mathML+=ct,E.lastType="mn"),!0)}function b1(E,z,it){let st=!1;z=z!=null?z:E.atoms.length;let ct="",vt="";if(E.index<z&&E.atoms[E.index].type==="mopen"){let xt=!1,Ot=0;const Kt=E.index;let Zt=-1,re=Kt+1;for(;re<z&&!xt;)E.atoms[re].type==="mopen"?Ot+=1:E.atoms[re].type==="mclose"&&(Ot-=1),Ot===-1&&(xt=!0,Zt=re),re+=1;xt&&(ct="<mrow>",ct+=xf(E.atoms[Kt],it),ct+=ia(E.atoms,it,Kt+1,Zt),ct+=xf(E.atoms[Zt],it),ct+="</mrow>",E.index=Zt+1,(E.lastType==="mi"||E.lastType==="mn"||E.lastType==="mfrac"||E.lastType==="fence")&&(E.mathML+=x0),Xo(ct,E,it)&&(st=!0,E.lastType="",ct=""),vt="fence")}return ct.length>0&&(st=!0,E.mathML+=ct,E.lastType=vt),st}function xx(E,z,it){let st=!1;z=z!=null?z:E.atoms.length;let ct="",vt="";const xt=E.atoms[E.index];if(!xt)return!1;const Ot={"\\ne":"≠","\\neq":"&neq;","\\pm":"±","\\times":"×","\\colon":":","\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lbrack":"[","\\rbrack":"]","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"};if(Ot[xt.command]){E.index+=1;const Kt=`<mo${Ca(xt.id,it)}>${Ot[xt.command]}</mo>`;return Xo(Kt,E,it)||(E.mathML+=Kt,E.lastType="mo"),!0}if(E.index<z&&(xt.type==="mbin"||xt.type==="mrel"))ct+=uy(E.atoms[E.index],it),E.index+=1,vt="mo";else if(E.index<z&&(xt.type==="mop"||xt.type==="operator"||xt.type==="extensible-symbol")){if(xt.subsupPlacement==="over-under"&&(xt.superscript||xt.subscript)){const Kt=xf(xt,it);return xt.superscript&&xt.subscript?(ct+="<munderover>"+Kt,ct+=ia(xt.subscript,it),ct+=ia(xt.superscript,it),ct+="</munderover>"):xt.superscript?(ct+="<mover>"+Kt,ct+=ia(xt.superscript,it),ct+="</mover>"):xt.subscript&&(ct+="<munder>"+Kt,ct+=ia(xt.subscript,it),ct+="</munder>"),E.mathML+=ct,E.lastType="mo",E.index+=1,!0}{const Kt=E.atoms[E.index],Zt=Kt.value==="\\operatorname",re=Zt?'<mi class="MathML-Unit"'+Ca(Kt.id,it)+">"+bf(Kt.value)+"</mi>":xf(Kt,it);ct+=re,!Zt&&!/^<mo>(.*)<\/mo>$/.test(re)?(ct+=Em,vt="applyfunction"):vt=Zt?"mi":"mo"}(E.lastType==="mi"||E.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(ct)&&(ct=x0+ct),E.index+=1}return ct.length>0&&(st=!0,Xo(ct,E,it)||(E.mathML+=ct,E.lastType=vt)),st}function ia(E,z,it,st){z!=null||(z={});const ct={atoms:[],index:it!=null?it:0,mathML:"",lastType:""};if(typeof E=="number"||typeof E=="boolean")ct.mathML=E.toString();else if(typeof E=="string")ct.mathML=E;else if(E instanceof Mr)ct.mathML=uy(E,z);else if(Array.isArray(E)){ct.atoms=E;let vt=0;for(st=st||(E?E.length:0);ct.index<st;)if(vx(ct,st,z)||yx(ct,st,z)||ay(ct,st,z)||xx(ct,st,z)||b1(ct,st,z))vt+=1;else if(ct.index<st){let xt=uy(ct.atoms[ct.index],z);ct.lastType==="mn"&&xt.length>0&&ct.atoms[ct.index].type==="genfrac"&&(xt="<mo>⁤</mo>"+xt),ct.atoms[ct.index].type==="genfrac"?ct.lastType="mfrac":ct.lastType="",ct.index+=1,Xo(xt,ct,z)?vt+=1:xt.length>0&&(ct.mathML+=xt,vt+=1)}vt>1&&(ct.mathML="<mrow>"+ct.mathML+"</mrow>")}return ct.mathML}function xf(E,z){let it="";const st=bf(E.value);return st&&(it="<mo"+Ca(E.id,z)+">"+st+"</mo>"),it}function bf(E){if(!E)return"";if(typeof E=="string")return Zu(E);if(!Array.isArray(E)&&typeof E.body=="string")return Zu(E.body);let z="";for(const it of E)typeof it.value=="string"&&(z+=it.value);return Zu(z)}function uy(E,z){var it,st,ct,vt,xt,Ot,Kt,Zt,re,Be,ln,Fn,ei,hr,Gr,$i,Nr,eo,zr,_o,ns,Go;if(E.mode==="text")return`<mi${Ca(E.id,z)}>${E.value}</mi>`;const Gs={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",longleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",longrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",longrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xleftrightarrows:"\u21C4",xRightleftharpoons:"\u21CC",longRightleftharpoons:"\u21CC",xLeftrightharpoons:"\u21CB",longLeftrightharpoons:"\u21CB"},La={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let uo="",$c="",qc,th,Yl,eh,Nu,ea;const{command:Pa}=E;if(E.command==="\\error")return`<merror${Ca(E.id,z)}>${ia(E.body,z)}</merror>`;const Nl={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},Ah={"\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};switch(E.type){case"first":break;case"group":case"root":uo=ia(E.body,z);break;case"array":if((E.leftDelim&&E.leftDelim!=="."||E.rightDelim&&E.rightDelim!==".")&&(uo+="<mrow>",E.leftDelim&&E.leftDelim!=="."&&(uo+="<mo>"+(Nl[E.leftDelim]||E.leftDelim)+"</mo>")),uo+="<mtable",E.colFormat){for(uo+=' columnalign="',Yl=0;Yl<E.colFormat.length;Yl++)E.colFormat[Yl].align&&(uo+={l:"left",c:"center",r:"right"}[E.colFormat[Yl].align]+" ");uo+='"'}for(uo+=">",th=0;th<E.array.length;th++){for(uo+="<mtr>",qc=0;qc<E.array[th].length;qc++)uo+="<mtd>"+ia(E.array[th][qc],z)+"</mtd>";uo+="</mtr>"}uo+="</mtable>",(E.leftDelim&&E.leftDelim!=="."||E.rightDelim&&E.rightDelim!==".")&&(E.rightDelim&&E.rightDelim!=="."&&(uo+="<mo>"+(Nl[E.leftDelim]||E.rightDelim)+"</mo>"),uo+="</mrow>");break;case"genfrac":(E.leftDelim||E.rightDelim)&&(uo+="<mrow>"),E.leftDelim&&E.leftDelim!=="."&&(uo+="<mo"+Ca(E.id,z)+">"+(Nl[E.leftDelim]||E.leftDelim)+"</mo>"),E.hasBarLine?(uo+="<mfrac>",uo+=ia(E.above,z)||"<mi> </mi>",uo+=ia(E.below,z)||"<mi> </mi>",uo+="</mfrac>"):(uo+="<mtable"+Ca(E.id,z)+">",uo+="<mtr>"+ia(E.above,z)+"</mtr>",uo+="<mtr>"+ia(E.below,z)+"</mtr>",uo+="</mtable>"),E.rightDelim&&E.rightDelim!=="."&&(uo+="<mo"+Ca(E.id,z)+">"+(Nl[E.rightDelim]||E.rightDelim)+"</mo>"),(E.leftDelim||E.rightDelim)&&(uo+="</mrow>");break;case"surd":E.hasEmptyBranch("above")?(uo+="<msqrt"+Ca(E.id,z)+">",uo+=ia(E.body,z),uo+="</msqrt>"):(uo+="<mroot"+Ca(E.id,z)+">",uo+=ia(E.body,z),uo+=ia(E.above,z),uo+="</mroot>");break;case"leftright":const Fc=E,nh=Fc.leftDelim;uo="<mrow>",nh&&nh!=="."&&(uo+=`<mo${Ca(E.id,z)}>${(it=Nl[nh])!=null?it:nh}</mo>`),E.body&&(uo+=ia(E.body,z));const Lh=Fc.matchingRightDelim();Lh&&Lh!=="."&&(uo+=`<mo${Ca(E.id,z)}>${(st=Nl[Lh])!=null?st:Lh}</mo>`),uo+="</mrow>";break;case"sizeddelim":case"delim":uo+=`<mo${Ca(E.id,z)}>${Nl[E.value]||E.value}</mo>`;break;case"accent":uo+='<mover accent="true"'+Ca(E.id,z)+">",uo+=ia(E.body,z),uo+="<mo>"+(Ah[Pa]||E.accent)+"</mo>",uo+="</mover>";break;case"line":case"overlap":break;case"overunder":Nu=E.above,eh=E.below,(E.svgAbove||Nu)&&(E.svgBelow||eh)?ea=E.body:Nu&&Nu.length>0?(ea=E.body,(vt=(ct=E.body)==null?void 0:ct[0])!=null&&vt.below?(eh=E.body[0].below,ea=E.body[0].body):((Ot=(xt=E.body)==null?void 0:xt[0])==null?void 0:Ot.type)==="first"&&((Zt=(Kt=E.body)==null?void 0:Kt[1])!=null&&Zt.below)&&(eh=E.body[1].below,ea=E.body[1].body)):eh&&eh.length>0&&(ea=E.body,(Be=(re=E.body)==null?void 0:re[0])!=null&&Be.above?(Nu=E.body[0].above,ea=E.body[0].body):((Fn=(ln=E.body)==null?void 0:ln[0])==null?void 0:Fn.type)==="first"&&((hr=(ei=E.body)==null?void 0:ei[1])!=null&&hr.above)&&(Nu=E.body[1].overscript,ea=E.body[1].body)),(E.svgAbove||Nu)&&(E.svgBelow||eh)?(uo+=`<munderover ${Ca(E.id,z)}>`,uo+=(Gr=Gs[E.svgBody])!=null?Gr:ia(ea,z),uo+=($i=Gs[E.svgBelow])!=null?$i:ia(eh,z),uo+=(Nr=Gs[E.svgAbove])!=null?Nr:ia(Nu,z),uo+="</munderover>"):E.svgAbove||Nu?(uo+=`<mover ${Ca(E.id,z)}>`+((eo=Gs[E.svgBody])!=null?eo:ia(ea,z)),uo+=(zr=Gs[E.svgAbove])!=null?zr:ia(Nu,z),uo+="</mover>"):(E.svgBelow||eh)&&(uo+=`<munder ${Ca(E.id,z)}>`+((_o=Gs[E.svgBody])!=null?_o:ia(ea,z)),uo+=(ns=Gs[E.svgBelow])!=null?ns:ia(eh,z),uo+="</munder>");break;case"placeholder":uo+="?";break;case"mord":{uo=typeof E.value=="string"?E.value:Pa,Pa==="\\char"?uo="&#x"+("000000"+E.args[0].number.toString(16)).slice(-4)+";":uo.length>0&&uo.startsWith("\\")&&(typeof E.value=="string"&&E.value.charCodeAt(0)>255?uo="&#x"+("000000"+E.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof E.value=="string"?uo=E.value.charAt(0):(console.error("Did not expect this"),uo=""));const ih=/\d/.test(uo)?"mn":"mi";uo=`<${ih}${Ca(E.id,z)}>${Zu(uo)}</${ih}>`;break}case"mbin":case"mrel":case"minner":uo=xf(E,z);break;case"mpunct":uo='<mo separator="true"'+Ca(E.id,z)+">"+Pa+"</mo>";break;case"mop":case"operator":case"extensible-symbol":E.body!=="\u200B"&&(uo="<mo"+Ca(E.id,z)+">",uo+=Pa==="\\operatorname"?E.body:Pa||E.body,uo+="</mo>");break;case"box":uo='<menclose notation="box"',E.backgroundcolor&&(uo+=' mathbackground="'+E.backgroundcolor+'"'),uo+=Ca(E.id,z)+">"+ia(E.body,z)+"</menclose>";break;case"spacing":uo+='<mspace width="'+((Go=La[Pa])!=null?Go:0)+'em"/>';break;case"enclose":uo='<menclose notation="';for(const ih in E.notation)Object.prototype.hasOwnProperty.call(E.notation,ih)&&E.notation[ih]&&(uo+=$c+ih,$c=" ");uo+=Ca(E.id,z)+'">'+ia(E.body,z)+"</menclose>";break;case"prompt":uo='<menclose notation="roundexbox""">'+ia(E.body,z)+"</menclose>";break;case"space":uo+=" ";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":uo+=xf(E,z);break;case"mclose":uo+=xf(E,z);break;case"macro":{const ih=E.command+bf(E.macroArgs);ih&&(uo+=`<mo ${Ca(E.id,z)}>${ih}</mo>`)}break;case"latexgroup":uo+=ia(E.body,z);break;case"latex":uo+="<mtext"+Ca(E.id,z)+">"+E.value+"</mtext>";break;case"tooltip":uo+=ia(E.body,z);break;case"text":uo+=`<mtext ${Ca(E.id,z)}x>${E.value}</mtext>`;break;default:if(E.command==="\\displaystyle")return`<mrow ${Ca(E.id,z)} displaystyle="true">${ia(E.body,z)}</mrow>`;if(E.command==="\\textstyle")return`<mrow ${Ca(E.id,z)} displaystyle="false">${ia(E.body,z)}</mrow>`;console.info("Unexpected element in conversion to MathML:",E)}return uo}var b0={"\\alpha":"alpha ","\\mu":"mew ","\\sigma":"sigma ","\\pi":"pie ","\\imaginaryI":"imaginary eye ","\\imaginaryJ":"imaginary jay ","\\sum":"Summation ","\\prod":"Product ","+":"plus ","-":"minus ",";":'<break time="150ms"/> semi-colon <break time="150ms"/>',",":'<break time="150ms"/> comma <break time="150ms"/>',"|":'<break time="150ms"/>Vertical bar<break time="150ms"/>',"(":'<break time="150ms"/>Open paren. <break time="150ms"/>',")":'<break time="150ms"/> Close paren. <break time="150ms"/>',"=":"equals ","<":"is less than ","\\lt":"is less than ","<=":"is less than or equal to ","\\le":"is less than or equal to ","\\gt":"is greater than ",">":"is greater than ","\\pm":"plus or minus","\\mp":"minus or plus","\\ge":"is greater than or equal to ","\\geq":"is greater than or equal to ","\\leq":"is less than or equal to ","\\ne":"is not equal to ","\\neq":"is not equal to ","!":"factorial ","\\sin":"sine ","\\cos":"cosine ","\u200B":"","\u2212":"minus ",":":'<break time="150ms"/> such that <break time="200ms"/> ',"\\colon":'<break time="150ms"/> such that <break time="200ms"/> ',"\\hbar":"etch bar ","\\iff":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\Longleftrightarrow":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\land":"and ","\\lor":"or ","\\neg":"not ","\\div":"divided by ","\\forall":"for all ","\\exists":"there exists ","\\nexists":"there does not exists ","\\in":"element of ","\\N":'the set <break time="150ms"/><say-as interpret-as="character">n</say-as>',"\\C":'the set <break time="150ms"/><say-as interpret-as="character">c</say-as>',"\\Z":'the set <break time="150ms"/><say-as interpret-as="character">z</say-as>',"\\Q":'the set <break time="150ms"/><say-as interpret-as="character">q</say-as>',"\\infty":"infinity ","\\nabla":"nabla ","\\partial":"partial derivative of ","\\cdot":"times ","\\cdots":"dot dot dot ","\\Rightarrow":"implies ","\\lparen":'<break time="150ms"/>open paren<break time="150ms"/>',"\\rparen":'<break time="150ms"/>close paren<break time="150ms"/>',"\\lbrace":'<break time="150ms"/>open brace<break time="150ms"/>',"\\{":'<break time="150ms"/>open brace<break time="150ms"/>',"\\rbrace":'<break time="150ms"/>close brace<break time="150ms"/>',"\\}":'<break time="150ms"/>close brace<break time="150ms"/>',"\\langle":'<break time="150ms"/>left angle bracket<break time="150ms"/>',"\\rangle":'<break time="150ms"/>right angle bracket<break time="150ms"/>',"\\lfloor":'<break time="150ms"/>open floor<break time="150ms"/>',"\\rfloor":'<break time="150ms"/>close floor<break time="150ms"/>',"\\lceil":'<break time="150ms"/>open ceiling<break time="150ms"/>',"\\rceil":'<break time="150ms"/>close ceiling<break time="150ms"/>',"\\vert":'<break time="150ms"/>vertical bar<break time="150ms"/>',"\\mvert":'<break time="150ms"/>divides<break time="150ms"/>',"\\lvert":'<break time="150ms"/>left vertical bar<break time="150ms"/>',"\\rvert":'<break time="150ms"/>right vertical bar<break time="150ms"/>',"\\lbrack":'<break time="150ms"/> open square bracket <break time="150ms"/>',"\\rbrack":'<break time="150ms"/> close square bracket <break time="150ms"/>',mm:"millimeters",cm:"centimeters",km:"kilometers",kg:"kilograms"},cy={array:"array",matrix:"matrix",pmatrix:"parenthesis matrix",bmatrix:"square brackets matrix",Bmatrix:"braces matrix",vmatrix:"bars matrix",Vmatrix:"double bars matrix","matrix*":"matrix",smallmatrix:"small matrix"};function ja(E){let z="";return E.startsWith("\\")&&(z=" "+E.replace("\\","")+" "),z}function km(E){let z=0;if(Yt(E))for(const it of E)it.type!=="first"&&(z+=1);return z===1}function bx(E){if(Yt(E)){for(const z of E)if(z.type!=="first"&&z.id)return z.id.toString()}return""}function w1(E){let z="";if(Yt(E))for(const it of E)it.type!=="first"&&typeof it.value=="string"&&(z+=it.value);return z}function Gu(E){return E?E.map(z=>z.value).join(""):""}function js(E,z){var it,st,ct,vt,xt;function Ot(re){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(re)?` <say-as interpret-as="character">${re}</say-as>`:/[A-Z]/.test(re)?`capital <say-as interpret-as="character">${re.toLowerCase()}</say-as>`:re:/[a-z]/.test(re)?" '"+re.toUpperCase()+"'":/[A-Z]/.test(re)?" 'capital "+re.toUpperCase()+"'":re}function Kt(re){return"<emphasis>"+re+"</emphasis>"}if(!z)return"";let Zt="";if(Yt(z)){let re=!1,Be=!1;for(let ln=0;ln<z.length;ln++)z[ln].type!=="first"&&(z[ln].mode!=="text"&&(Be=!1),ln<z.length-2&&z[ln].type==="mopen"&&z[ln+2].type==="mclose"&&z[ln+1].type==="mord"?(Zt+=" of ",Zt+=Kt(js(E,z[ln+1])),ln+=2):z[ln].mode==="text"?Be?Zt+=(it=z[ln].value)!=null?it:" ":(Be=!0,Zt+=js("text",z[ln])):z[ln].isDigit()?re?Zt+=z[ln].asDigit():(re=!0,Zt+=js(E,z[ln])):(re=!1,Zt+=js(E,z[ln])))}else if(z.mode==="text")z.id&&E==="math"&&(Zt+='<mark name="'+z.id.toString()+'"/>'),Zt+=z.value;else{z.id&&E==="math"&&(Zt+='<mark name="'+z.id.toString()+'"/>');let re="",Be="",ln="",Fn=!1;const{command:ei}=z;switch(ei){case"\\vec":return"vector "+js(E,z.body);case"\\acute":return js(E,z.body)+" acute";case"\\grave":return js(E,z.body)+" grave";case"\\dot":return"dot over"+js(E,z.body);case"\\ddot":return"double dot over"+js(E,z.body);case"\\mathring":return"ring over"+js(E,z.body);case"\\tilde":case"\\widetilde":return"tilde over"+js(E,z.body);case"\\bar":return js(E,z.body)+" bar";case"\\breve":return js(E,z.body)+" breve";case"\\check":case"\\widecheck":return"check over "+js(E,z.body);case"\\hat":case"\\widehat":return"hat over"+js(E,z.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+js(E,z.body);case"\\underarc":case"\\underparen":return"arc under "+js(E,z.body)}switch(z.type){case"prompt":const hr=z.body.length>1?'start input . <break time="500ms"/> '+js(E,z.body)+'. <break time="500ms"/> end input':"blank";Zt+=' <break time="300ms"/> '+hr+'. <break time="700ms"/>'+((st=z.correctness)!=null?st:"")+' . <break time="700ms"/> ';break;case"array":const Gr=z.array,$i=z.environmentName;if(Object.keys(cy).includes($i)){Zt+=` begin ${cy[$i]} `;for(let zr=0;zr<Gr.length;zr++){zr>0&&(Zt+=","),Zt+=` row ${zr+1} `;for(let _o=0;_o<Gr[zr].length;_o++)_o>0&&(Zt+=","),Zt+=` column ${_o+1}: `,Zt+=js("math",Gr[zr][_o])}Zt+=` end ${cy[$i]} `}break;case"group":ei==="\\ne"?Zt+=" not equal ":(ei==="\\not"&&(Zt+=" not "),Zt+=js("math",z.body));break;case"root":Zt+=js("math",z.body);break;case"genfrac":if(re=js("math",z.above),Be=js("math",z.below),km(z.above)&&km(z.below)){const _o={"1/2":" half ","1/3":" one third ","2/3":" two third","1/4":" one quarter ","3/4":" three quarter ","1/5":" one fifth ","2/5":" two fifths ","3/5":" three fifths ","4/5":" four fifths ","1/6":" one sixth ","5/6":" five sixths ","1/8":" one eight ","3/8":" three eights ","5/8":" five eights ","7/8":" seven eights ","1/9":" one ninth ","2/9":" two ninths ","4/9":" four ninths ","5/9":" five ninths ","7/9":" seven ninths ","8/9":" eight ninths "}[w1(z.above)+"/"+w1(z.below)];_o?Zt=_o:Zt+=re+" over "+Be}else Zt+=' the fraction <break time="150ms"/>'+re+' over <break time="150ms"/>'+Be+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(ln=js("math",z.body),z.hasEmptyBranch("above"))Zt+=km(z.body)?" the square root of "+ln+" , ":' the square root of <break time="200ms"/>'+ln+'. <break time="200ms"/> End square root';else{let zr=js("math",z.above);zr=zr.trim();const _o=zr.replace(/<mark([^/]*)\/>/g,"");_o==="3"?Zt+=' the cube root of <break time="200ms"/>'+ln+'. <break time="200ms"/> End cube root':_o==="n"?Zt+=' the nth root of <break time="200ms"/>'+ln+'. <break time="200ms"/> End root':Zt+=' the root with index: <break time="200ms"/>'+zr+', of <break time="200ms"/>'+ln+'. <break time="200ms"/> End root'}break;case"leftright":{const zr=z;Zt+=(ct=zr.leftDelim?b0[zr.leftDelim]:void 0)!=null?ct:zr.leftDelim,Zt+=js("math",z.body),Zt+=(vt=zr.rightDelim?b0[zr.rightDelim]:void 0)!=null?vt:zr.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const Nr=ei.replace(/^\\/g,""),eo=Sn()[Nr];eo&&(eo!=null&&eo.expand?Zt+=js("math",z.body):Zt+=`${Nr} `);break;case"placeholder":Zt+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(ei==="\\mathbin"||ei==="\\mathrel"||ei==="\\mathopen"||ei==="\\mathclose"||ei==="\\mathpunct"||ei==="\\mathord"||ei==="\\mathinner"){Zt=js(E,z.body);break}let zr=z.isDigit()?z.asDigit():z.value,_o=z.command;if((z.type==="delim"||z.type==="sizeddelim")&&(_o=z.value,zr=_o),E==="text")Zt+=zr;else{if(z.type==="mbin"&&(Zt+='<break time="150ms"/>'),zr){const ns=b0[zr]||(_o?b0[_o.trim()]:"");if(ns)Zt+=" "+ns;else{const Go=_o?ja(_o.trim()):"";Zt+=Go||Ot(zr)}}else Zt+=js("math",z.body);z.type==="mbin"&&(Zt+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(z.value!=="\u200B"){const zr=z.command;if(zr==="\\sum")if(!z.hasEmptyBranch("superscript")&&!z.hasEmptyBranch("subscript")){let _o=js("math",z.superscript);_o=_o.trim();let ns=js("math",z.subscript);ns=ns.trim(),Zt+=' the summation from <break time="200ms"/>'+ns+'<break time="200ms"/> to <break time="200ms"/>'+_o+'<break time="200ms"/> of <break time="150ms"/>',Fn=!0}else if(z.hasEmptyBranch("subscript"))Zt+=" the summation of";else{let _o=js("math",z.subscript);_o=_o.trim(),Zt+=' the summation from <break time="200ms"/>'+_o+'<break time="200ms"/> of <break time="150ms"/>',Fn=!0}else if(zr==="\\prod")if(!z.hasEmptyBranch("superscript")&&!z.hasEmptyBranch("subscript")){let _o=js("math",z.superscript);_o=_o.trim();let ns=js("math",z.subscript);ns=ns.trim(),Zt+=' the product from <break time="200ms"/>'+ns+'<break time="200ms"/> to <break time="200ms"/>'+_o+'<break time="200ms"/> of <break time="150ms"/>',Fn=!0}else if(z.hasEmptyBranch("subscript"))Zt+=" the product of ";else{let _o=js("math",z.subscript);_o=_o.trim(),Zt+=' the product from <break time="200ms"/>'+_o+'<break time="200ms"/> of <break time="150ms"/>',Fn=!0}else if(zr==="\\int")if(!z.hasEmptyBranch("superscript")&&!z.hasEmptyBranch("subscript")){let _o=js("math",z.superscript);_o=_o.trim();let ns=js("math",z.subscript);ns=ns.trim(),Zt+=' the integral from <break time="200ms"/>'+Kt(ns)+'<break time="200ms"/> to <break time="200ms"/>'+Kt(_o)+' <break time="200ms"/> of ',Fn=!0}else Zt+=' the integral of <break time="200ms"/> ';else if(typeof z.value=="string"){const _o=(xt=b0[z.value])!=null?xt:z.command?b0[z.command]:void 0;Zt+=_o||" "+z.value}else z.command&&(z.command==="\\mathop"?Zt+=js("math",z.body):z.command==="\\operatorname"?Zt+=Gu(z.body):Zt+=z.command.startsWith("\\")?" "+z.command.slice(1):" "+z.command)}break;case"enclose":ln=js("math",z.body),Zt+=" crossed out "+ln+". End crossed out.";break;case"space":case"spacing":break}if(!Fn&&!z.hasEmptyBranch("superscript")){let hr=js(E,z.superscript);hr=hr.trim();const Gr=hr.replace(/<[^>]*>/g,"");if(km(z.superscript)){if(E==="math"){const $i=bx(z.superscript);$i&&(Zt+='<mark name="'+$i+'"/>')}Gr==="\u2032"?Zt+=" prime ":Gr==="2"?Zt+=" squared ":Gr==="3"?Zt+=" cubed ":Number.isNaN(Number.parseInt(Gr))?Zt+=" to the "+hr+"; ":Zt+=' to the <say-as interpret-as="ordinal">'+Gr+"</say-as> power; "}else Number.isNaN(Number.parseInt(Gr))?Zt+=" raised to the "+hr+"; ":Zt+=' raised to the <say-as interpret-as="ordinal">'+Gr+"</say-as> power; "}if(!Fn&&!z.hasEmptyBranch("subscript")){let hr=js("math",z.subscript);hr=hr.trim(),Zt+=km(z.subscript)?" sub "+hr:" subscript "+hr+". End subscript. "}}return Zt}function gr(E){var z,it;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const ct=ia(E);if(ct){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(z=window.MathfieldElement.textToSpeechRulesOptions)!=null?z:{},window.MathfieldElement.textToSpeechRulesOptions=Nt(jt({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=Nt(jt({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=Nt(jt({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const vt=(it=window.SRE)!=null?it:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&vt.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let xt="";try{xt=vt.toSpeech(ct)}catch(Ot){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",Ot)}return xt}return""}let st=js("math",E);if(window.MathfieldElement.textToSpeechMarkup==="ssml"){let ct="";window.MathfieldElement.speechEngineRate&&(ct='<prosody rate="'+window.MathfieldElement.speechEngineRate+'">'),st='<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"><amazon:auto-breaths>'+ct+"<p><s>"+st+"</s></p>"+(ct?"</prosody>":"")+"</amazon:auto-breaths></speak>"}else window.MathfieldElement.textToSpeechMarkup==="mac"&&It()==="macos"?st=st.replace(/<mark([^/]*)\/>/g,"").replace(/<emphasis>/g,"[[emph+]]").replace(/<\/emphasis>/g,"").replace(/<break time="(\d*)ms"\/>/g,"[[slc $1]]").replace(/<say-as[^>]*>/g,"").replace(/<\/say-as>/g,""):st=st.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return st}var Dd={"\\ne":"\u2260","\\neq":"\u2260","\u2212":"-","-":"-","\\alpha":"alpha","\\beta":"beta","\\gamma":"gamma","\\delta":"delta","\\epsilon":"epsilon","\\varepsilon":"varepsilon","\\zeta":"zeta","\\eta":"eta","\\theta":"theta","\\vartheta":"vartheta","\\iota":"iota","\\kappa":"kappa","\\lambda":"lambda","\\mu":"mu","\\nu":"nu","\\xi":"xi","\\pi":"pi","\\rho":"rho","\\sigma":"sigma","\\tau":"tau","\\upsilon":"upsilon","\\phi":"phi","\\varphi":"varphi","\\chi":"chi","\\psi":"psi","\\omega":"omega","\\Gamma":"Gamma","\\Delta":"Delta","\\Theta":"Theta","\\Lambda":"Lambda","\\Xi":"Xi","\\Pi":"Pi","\\Sigma":"Sigma","\\Phi":"Phi","\\Psi":"Psi","\\Omega":"Omega","\\exponentialE":"e","\\imaginaryI":"i","\\imaginaryJ":"j","\\!":" ","\\,":" ","\\:":" ","\\>":" ","\\;":" ","\\enskip":" ","\\enspace":" ","\\qquad":" ","\\quad":" ","\\infty":"oo"},Am={"\\pm":"+-","\\colon":":","\\vert":"|","\\Vert":"||","\\mid":"|","\\lbrack":"[","\\rbrack":"]","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"(:","\\rangle":":)","\\sum":" sum ","\\prod":" prod ","\\bigcap":" nnn ","\\bigcup":" uuu ","\\int":" int ","\\oint":" oint ","\\ge":">=","\\le":"<=","\\ne":"!=","\\neq":"!=","\\lt":"<","\\gt":">","\\gets":"<-","\\to":"->","\\land":" and ","\\lor":" or ","\\lnot":" not ","\\forall":" AA ","\\exists":" EE ","\\in":" in ","\\notin":" !in ","\\mapsto":"|->","\\implies":"=>","\\iff":"<=>","\\cdot":"*","\\ast":"**","\\star":"***","\\times":"xx","\\div":"-:","\\ltimes":"|><","\\rtimes":"><|","\\bowtie":"|><|","\\circ":"@"};function wx(E){let z="";for(const it of E){const st=z[z.length-1];st!==void 0&&/\d/.test(st)&&/^\d/.test(it)&&(z+=" "),z+=it}return z}function ml(E){var z,it,st,ct,vt,xt,Ot,Kt,Zt,re,Be,ln,Fn;if(!E)return"";if(Yt(E)){if(E.length===0)return"";if(E[0].mode==="latex")return E.map(ml).join("");if(E[0].mode==="text"){let eo=0,zr="";for(;((z=E[eo])==null?void 0:z.mode)==="text";)zr+=E[eo].body?ml(E[eo].body):E[eo].value,eo++;return`"${zr}" ${ml(E.slice(eo))}`}let $i=0;const Nr=[];for(;E[$i]&&E[$i].mode==="math";){let eo="";for(;E[$i]&&E[$i].type==="mord"&&/\d/.test(E[$i].value);)eo+=E[$i++].value;eo?Nr.push(eo):Nr.push(ml(E[$i++]))}return Nr.push(ml(E.slice($i))),wx(Nr)}if(E.mode==="text")return`"${E.value}"`;let ei="";const{command:hr}=E;let Gr;if(hr==="\\placeholder")return`(${ml(E.body)})`;switch(E.type){case"accent":const $i={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[hr];ei=`${$i!=null?$i:""} ${ml(E.body)} `;break;case"first":return"";case"latexgroup":return E.body.map(Go=>Go.value).join("");case"group":case"root":ei=(it=Dd[hr])!=null?it:ml(E.body);break;case"genfrac":{const Go=E;(Go.leftDelim||Go.rightDelim)&&(ei=Go.leftDelim==="."||!Go.leftDelim?"{:":Go.leftDelim),Go.hasBarLine?(ei+="(",ei+=ml(Go.above),ei+=")/(",ei+=ml(Go.below),ei+=")"):(ei+="("+ml(Go.above)+"),",ei+="("+ml(Go.below)+")"),(Go.leftDelim||Go.rightDelim)&&(ei+=Go.rightDelim==="."||!Go.rightDelim?"{:":Go.rightDelim)}break;case"surd":ei+=E.hasEmptyBranch("above")?"sqrt("+ml(E.body)+")":"root("+ml(E.above)+")("+ml(E.body)+")";break;case"latex":ei=E.value;break;case"leftright":{const Go=E,Gs=Go.leftDelim;ei+=Gs==="."||!Gs?"{:":Gs,ei+=ml(Go.body);const La=Go.matchingRightDelim();ei+=La==="."||!La?":}":La}break;case"sizeddelim":case"delim":ei=E.value;break;case"overlap":break;case"overunder":break;case"mord":ei=(ct=(st=Dd[hr])!=null?st:hr)!=null?ct:typeof E.value=="string"?E.value:"",ei.startsWith("\\")&&(ei+=" "),Gr=hr?hr.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,Gr?ei=String.fromCodePoint(Number.parseInt("0x"+Gr[1])):ei.length>0&&ei.startsWith("\\")&&(ei=typeof E.value=="string"?E.value.charAt(0):E.command),ei=hy(ei,E.style);break;case"mbin":case"mrel":case"minner":ei=(xt=(vt=Dd[hr])!=null?vt:Am[hr])!=null?xt:E.value;break;case"mopen":case"mclose":ei=E.value;break;case"mpunct":ei=(Ot=Am[hr])!=null?Ot:hr;break;case"mop":case"operator":case"extensible-symbol":E.value!=="\u200B"&&(Am[hr]?ei=Am[hr]:ei=hr==="\\operatorname"?ml(E.body):(Kt=E.value)!=null?Kt:hr,ei+=" ");break;case"array":const Nr=E.array,eo=E.environmentName,zr=(Zt={bmatrix:["[","]"],"bmatrix*":["[","]"]}[eo])!=null?Zt:["(",")"],_o=[];for(const Go of Nr){const Gs=[];for(const La of Go)Gs.push(zr[0]+ml(La)+zr[1]);_o.push(Gs.join(","))}const ns=(re={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[eo])!=null?re:["(",")"];ei=ns[0]+_o.join(",")+ns[1];break;case"box":break;case"spacing":ei=(Be=Dd[hr])!=null?Be:" ";break;case"enclose":ei="("+ml(E.body)+")";break;case"space":ei=" ";break;case"subsup":ei="";break;case"macro":ei=(Fn=(ln=Dd[hr])!=null?ln:Am[hr])!=null?Fn:ml(E.body);break}if(!E.hasEmptyBranch("subscript")){ei+="_";const $i=ml(E.subscript);ei+=$i.length!==1?`(${$i})`:$i}if(!E.hasEmptyBranch("superscript")){ei+="^";const $i=ml(E.superscript);ei+=$i.length!==1?`(${$i})`:$i}return ei}function hy(E,z){if(!z)return E;let it=E;return z.variant==="double-struck"&&(it=`bbb "${it}"`),z.variant==="script"&&(it=`cc "${it}"`),z.variant==="fraktur"&&(it=`fr "${it}"`),z.variant==="sans-serif"&&(it=`sf "${it}"`),z.variant==="monospace"&&(it=`tt "${it}"`),z.variantStyle==="bold"&&(it=`bb "${it}"`),z.color?`color({${z.color}})(${it})`:it}function rl(E,z){var it,st;z!=null||(z={}),z.mathstyle=(it=z.mathstyle)!=null?it:"displaystyle";const ct=new Ws({from:Nt(jt({},Hf()),{renderPlaceholder:()=>new Qr(160,{maxFontSize:1}),letterShapeStyle:(st=z==null?void 0:z.letterShapeStyle)!=null?st:"tex"}),mathstyle:z.mathstyle}),xt=new Mr({mode:"math",type:"root",body:ll(E,{context:ct,parseMode:"math",mathstyle:z.mathstyle})}).render(ct);return xt?(_h(Sh(xt,ct)),Kf(xt,{classes:"ML__latex"}).toMarkup()):""}function Vb(E){return lf(E,{context:Hf()})}function jl(E,z={}){return ia(ll(E,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),z)}function S1(E){const z=ll(E,{parseMode:"math",mathstyle:"displaystyle"});return gr(z)}var gl;function Ub(E){var z,it;if(!gl){const st=(z=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:z.ComputeEngine;st?gl=new st:console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}return(it=gl==null?void 0:gl.box(E).latex)!=null?it:""}function Ma(E,z="math"){return ml(new Mr({type:"root",body:ll(E,{parseMode:z})}))}function gp(E){return of(E,{format:"ascii-math"})[1]}function dy(E){if(typeof E=="string"){const z=Ic(E);if(!z)throw new Error(`Invalid color: ${E}`);return z}return"C"in E?aa(E):"a"in E?fy(E):E}function w0(E){return E<0?0:E>255?255:Math.round(E)}function Ic(E){if(!E||E[0]!=="#")return;E=E.slice(1);let z;return E.length<=4?(z={r:parseInt(E[0]+E[0],16),g:parseInt(E[1]+E[1],16),b:parseInt(E[2]+E[2],16)},E.length===4&&(z.a=parseInt(E[3]+E[3],16)/255)):(z={r:parseInt(E[0]+E[1],16),g:parseInt(E[2]+E[3],16),b:parseInt(E[4]+E[5],16)},E.length===8&&(z.a=parseInt(E[6]+E[7],16)/255)),z&&typeof z.a=="undefined"&&(z.a=1),z}function rc(E){const[z,it,st]=[E.L,E.C,E.H],ct=st*Math.PI/180,vt={L:z,a:it*Math.cos(ct),b:it*Math.sin(ct)};return E.alpha!==void 0&&(vt.alpha=E.alpha),vt}function _g(E){const[z,it,st]=[E.L,E.a,E.b],ct=Math.sqrt(it*it+st*st),xt=Math.atan2(st,it)*180/Math.PI,Ot={L:z,C:ct,H:xt};return E.alpha!==void 0&&(Ot.alpha=E.alpha),Ot}function Lm(E){const[z,it,st]=[E.L,E.a,E.b],ct=Math.pow(.9999999984505198*z+.39633779217376786*it+.2158037580607588*st,3),vt=Math.pow(1.00000000888176*z-.10556134232365635*it-.0638541747717059*st,3),xt=Math.pow(z*1.000000054672411-.0894841820949657*it-1.2914855378640917*st,3),Ot=4.076741661347994*ct-3.307711590408193*vt+.230969928729428*xt,Kt=-1.2684380040921763*ct+2.6097574006633715*vt-.3413193963102197*xt,Zt=-.004196086541837188*ct-.7034186144594493*vt+1.7076147009309444*xt,re=Be=>{const ln=Math.abs(Be);return ln<=.0031308?Be*12.92:(Math.sign(Be)||1)*(1.055*Math.pow(ln,1/2.4)-.055)};return[re(Ot),re(Kt),re(Zt)]}function Wg(E){const[z,it,st]=E;return z>=0&&z<=1&&it>=0&&it<=1&&st>=0&&st<=1}function S0(E,z){let[it,st,ct]=E;return it=w0(it*255),st=w0(st*255),ct=w0(ct*255),z!==void 0?{r:it,g:st,b:ct,alpha:z}:{r:it,g:st,b:ct}}function fy(E){let[z,it,st]=Lm(E);if(Wg([z,it,st]))return S0([z,it,st],E.alpha);const ct=_g(E);if(ct.C=0,[z,it,st]=Lm(rc(ct)),!Wg([z,it,st]))return S0([z,it,st],E.alpha);let vt=0,xt=E.L,Ot=(vt+xt)/2;ct.C=Ot;const Kt=.36/Math.pow(2,12);for(;xt-vt>Kt;)Ot=(vt+xt)/2,ct.C=Ot,[z,it,st]=Lm(rc(ct)),Wg([z,it,st])?vt=Ot:xt=Ot;return S0([z,it,st],E.alpha)}function aa(E){return fy(rc(E))}function Os(E,z){const it=dy(E),st=dy(z),ct=.56,vt=.57,xt=.62,Ot=.65,Kt=.022,Zt=1.414,re=.1,Be=5e-4,ln=1.14,Fn=.027,ei=1.14,hr=.027;function Gr(Go){return Go>=Kt?Go:Go+Dp(Kt-Go,Zt)}function $i(Go){return(Go<0?-1:1)*Math.pow(Math.abs(Go),2.4)}const Nr=Gr($i(st.r/255)*.2126729+$i(st.g/255)*.7151522+$i(st.b/255)*.072175),eo=Gr($i(it.r/255)*.2126729+$i(it.g/255)*.7151522+$i(it.b/255)*.072175);let zr,_o,ns;return Math.abs(eo-Nr)<Be?_o=0:eo>Nr?(zr=Dp(eo,ct)-Dp(Nr,vt),_o=zr*ln):(zr=Dp(eo,Ot)-Dp(Nr,xt),_o=zr*ei),Math.abs(_o)<re?ns=0:_o>0?ns=_o-hr:ns=_o+Fn,ns*100}function C1(E,z,it){it!=null||(it="#fff"),z!=null||(z="#000");const st=Os(E,it),ct=Os(E,z);return Math.abs(st)>Math.abs(ct)?it:z}function yc(E){const z=dy(E);let it=((1<<24)+(w0(z.r)<<16)+(w0(z.g)<<8)+w0(z.b)).toString(16).slice(1);return z.alpha!==void 0&&z.alpha<1&&(it+=("00"+Math.round(z.alpha*255).toString(16)).slice(-2)),it[0]===it[1]&&it[2]===it[3]&&it[4]===it[5]&&it[6]===it[7]&&(it=it[0]+it[2]+it[4]+(z.alpha!==void 0&&z.alpha<1?it[6]:"")),"#"+it}function ls(E){const z=M1(E);let it="";for(const st of z){if(typeof st.value!="string")return"";it+=st.value}return it}function M1(E){const it=E.model.selection.ranges;return it.length!==1?[]:E.model.getAtoms(it[0])}function Zb(E,z){const it=M1(E);if(it.length!==1)return!1;const st=Qf[z];return st?!!st.test(it[0].value):!1}function Sx(E,z){return ls(E).length>0}function Vg(E){return[Ks(E,"double-struck","mathbb","tooltip.blackboard"),Ks(E,"fraktur","mathfrak","tooltip.fraktur"),Ks(E,"calligraphic","mathcal","tooltip.caligraphic"),C0(E,"up","mathrm","tooltip.roman-upright"),C0(E,"bold","mathbf","tooltip.bold"),C0(E,"italic","mathit","tooltip.italic")]}function Ko(E){return[{label:()=>rl(`\\vec{${ls(E)}}`),visible:()=>ls(E).length===1,onMenuSelect:()=>E.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>rl(`\\overrightarrow{${ls(E)}}`),visible:()=>ls(E).length>0,onMenuSelect:()=>E.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>rl(`\\overleftarrow{${ls(E)}}`),visible:()=>ls(E).length>0,onMenuSelect:()=>E.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>rl(`\\dot{${ls(E)}}`),visible:()=>ls(E).length===1,onMenuSelect:()=>E.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>rl(`\\ddot{${ls(E)}}`),visible:()=>ls(E).length===1,onMenuSelect:()=>E.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>rl(`\\bar{${ls(E)}}`),visible:()=>ls(E).length===1,onMenuSelect:()=>E.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>rl(`\\overline{${ls(E)}}`),visible:()=>ls(E).length>0,onMenuSelect:()=>E.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>rl(`\\overgroup{${ls(E)}}`),visible:()=>ls(E).length>0,onMenuSelect:()=>E.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>rl(`\\overbrace{${ls(E)}}`),visible:()=>ls(E).length>0,onMenuSelect:()=>E.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>rl(`\\underline{${ls(E)}}`),visible:()=>ls(E).length>0,onMenuSelect:()=>E.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>rl(`\\undergroup{${ls(E)}}`),visible:()=>ls(E).length>0,onMenuSelect:()=>E.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>rl(`\\underbrace{${ls(E)}}`),visible:()=>ls(E).length>0,onMenuSelect:()=>E.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function Cx(E){return[{label:()=>rl(`\\boxed{${E.getValue(E.model.selection)}}}`),onMenuSelect:()=>E.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>rl(`\\bbox[5px, border: 2px solid red]{${E.getValue(E.model.selection)}}`),onMenuSelect:()=>E.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>rl(`\\bbox[5px, border: 2px dashed black]{${E.getValue(E.model.selection)}}`),onMenuSelect:()=>E.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function Pu(E){const z=[];for(const it of Object.keys(Qt))z.push({class:(yc(C1(Qt[it]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Qt[it]} "></span>`,ariaLabel:()=>{var st;return(st=be(it))!=null?st:it},checked:()=>{var st;return{some:"mixed",all:!0}[(st=E.queryStyle({backgroundColor:it}))!=null?st:!1]},onMenuSelect:()=>{E.applyStyle({backgroundColor:it},{operation:"toggle"}),E.adoptStyle="none"}});return z}function Pm(E){const z=[];for(const it of Object.keys(te))z.push({class:(C1(te[it])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${te[it]} "></span>`,ariaLabel:()=>{var st;return(st=be(it))!=null?st:it},checked:()=>{var st;return{some:"mixed",all:!0}[(st=E.queryStyle({color:it}))!=null?st:!1]},onMenuSelect:()=>{E.applyStyle({color:it},{operation:"toggle"}),E.adoptStyle="none"}});return z}var py=class extends Mm{constructor(E,z,it,st){super(E,z),this.row=it,this.col=st}set active(E){const z=this.parentMenu.children;if(E)for(const it of z)it.element.classList.toggle("active",it.row<=this.row&&it.col<=this.col);else for(const it of z)it.element.classList.remove("active")}};function Nm(E){const z=[];for(let it=1;it<=5;it++)for(let st=1;st<=5;st++)z.push({onCreate:(ct,vt)=>new py(ct,vt,it,st),label:"\u2610",tooltip:()=>be("tooltip.row-by-col",it,st),data:{row:it,col:st},onMenuSelect:()=>{E.insert(`\\begin{pmatrix}${Array(it).fill(Array(st).fill("#?").join(" & ")).join("\\\\")}\\end{pmatrix}`,{selectionMode:"item"})}});return z}function Mx(E){return[{label:()=>be("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>E.executeCommand("addRowBefore"),visible:()=>vp(E)},{label:()=>be("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>E.executeCommand("addRowAfter"),visible:()=>vp(E)},{label:()=>be("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>E.executeCommand("addColumnBefore"),visible:()=>vp(E),enabled:()=>{const z=E.model.parentEnvironment;if(!z)return!1;const[it,st]=Ex(E);return it<z.maxColumns}},{label:()=>be("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>E.executeCommand("addColumnAfter"),visible:()=>vp(E)},{type:"divider"},{label:()=>be("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>E.executeCommand("removeRow"),visible:()=>vp(E)},{label:()=>be("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>E.executeCommand("removeColumn"),visible:()=>vp(E)},{type:"divider"},{label:()=>be("menu.borders"),visible:()=>(E1(E)||vp(E))&&E.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>yp(E,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>yp(E,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>yp(E,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>yp(E,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>yp(E,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>be("menu.insert matrix"),id:"insert-matrix",visible:()=>E.isSelectionEditable,submenu:Nm(E),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>be("menu.mode"),id:"mode",visible:()=>E.isSelectionEditable&&E.model.selectionIsCollapsed,submenu:[{label:()=>be("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{np(E,"accept-all"),E.executeCommand(["switchMode","math"])},checked:()=>E.model.mode==="math"},{label:()=>be("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{np(E,"accept-all"),E.executeCommand(["switchMode","text"])},checked:()=>E.model.mode==="text"},{label:()=>be("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>E.executeCommand(["switchMode","latex"]),checked:()=>E.model.mode==="latex"}]},{type:"divider"},{label:()=>be("menu.font-style"),id:"variant",visible:()=>E.isSelectionEditable,submenu:Vg(E),submenuClass:"variant-submenu"},{label:()=>be("menu.color"),id:"color",visible:()=>E.isSelectionEditable,submenu:Pm(E),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>be("menu.background-color"),id:"background-color",visible:()=>E.isSelectionEditable,submenu:Pu(E),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>be("menu.accent"),id:"accent",visible:()=>E.isSelectionEditable,submenu:Ko(E),submenuClass:"variant-submenu"},{label:()=>be("menu.decoration"),id:"decoration",visible:()=>E.isSelectionEditable&&ls(E).length>0,submenu:Cx(E),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>be("menu.evaluate"),id:"ce-evaluate",visible:()=>E.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const z=Kl(E);if(!z){E.model.announce("plonk");return}E.model.selectionIsCollapsed?(E.model.position=E.model.lastOffset,E.insert(`=${z}`,{insertionMode:"insertAfter",selectionMode:"item"})):E.insert(z,{insertionMode:"replaceSelection",selectionMode:"item"})}},{label:()=>be("menu.simplify"),id:"ce-simplify",visible:()=>E.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{var z,it;if(E.model.selectionIsCollapsed){const st=(z=E.expression)==null?void 0:z.simplify();if(E.model.position=E.model.lastOffset,!st){E.model.announce("plonk");return}E.insert(`=${st.latex}`,{insertionMode:"insertAfter",selectionMode:"item"})}else{const st=(it=window.MathfieldElement.computeEngine)==null?void 0:it.parse(E.getValue(E.model.selection)).simplify();if(!st){E.model.announce("plonk");return}E.insert(st.latex,{insertionMode:"replaceSelection",selectionMode:"item"})}}},{label:()=>{var z;if(window.MathfieldElement.computeEngine===null)return"";const it=(z=E.expression)==null?void 0:z.unknowns[0];return it?be("menu.solve-for",rl(it)):be("menu.solve")},id:"ce-solve",visible:()=>{var z;return E.isSelectionEditable&&window.MathfieldElement.computeEngine!==null&&((z=E.expression)==null?void 0:z.unknowns.length)===1&&E.expression.unknowns[0]!=="Nothing"},onMenuSelect:()=>{var z;const it=E.expression,st=it==null?void 0:it.unknowns[0],ct=(z=it.solve(st))==null?void 0:z.map(vt=>{var xt;return(xt=vt.simplify().latex)!=null?xt:""});if(!ct){E.model.announce("plonk");return}E.insert(`${st}=${ct.length===1?ct[0]:"\\left\\lbrace"+(ct==null?void 0:ct.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"})}},{type:"divider"},{label:()=>be("menu.cut"),onMenuSelect:()=>E.executeCommand("cutToClipboard"),visible:()=>!E.options.readOnly&&E.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>be("menu.copy"),id:"copy",submenu:[{label:()=>be("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>ts.copyToClipboard(E,"latex"),keyboardShortcut:"meta+C"},{label:()=>be("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>ts.copyToClipboard(E,"ascii-math")},{label:()=>be("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>ts.copyToClipboard(E,"math-ml")}]},{label:()=>be("menu.paste"),id:"paste",onMenuSelect:()=>E.executeCommand("pasteFromClipboard"),visible:()=>E.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>be("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>E.executeCommand("selectAll")}]}function vp(E){var z;return!!((z=E.model.parentEnvironment)!=null&&z.array)}function E1(E){return E.model.at(E.model.position).type==="array"}function Ex(E){var z;const it=(z=E.model.parentEnvironment)==null?void 0:z.array;return it?[it.length,it.reduce((st,ct)=>Math.max(st,ct.length),0)]:[0,0]}function yp(E,z){ep(E),E.flushInlineShortcutBuffer(),Lg(E.model,z),nl(E)}function Kl(E){var z,it;let st;if(E.model.selectionIsCollapsed?st=(z=window.MathfieldElement.computeEngine)==null?void 0:z.parse(E.getValue(),{canonical:!1}):st=(it=window.MathfieldElement.computeEngine)==null?void 0:it.parse(E.getValue(E.model.selection),{canonical:!1}),!st)return"";let ct=st.evaluate();return ct.isSame(st)&&(ct=st.N()),ct.latex}function Ks(E,z,it,st){return{label:()=>rl(`\\${it}{${ls(E)}}`),tooltip:()=>{var ct;return(ct=be(st))!=null?ct:st},visible:()=>Zb(E,z),checked:()=>{var ct;return{some:"mixed",all:!0}[(ct=E.queryStyle({variant:z}))!=null?ct:!1]},onMenuSelect:()=>{E.applyStyle({variant:z},{operation:"toggle"}),E.adoptStyle="none"}}}function C0(E,z,it,st){return{label:()=>rl(`\\${it}{${ls(E)}}`),tooltip:()=>{var ct;return(ct=be(st))!=null?ct:st},visible:()=>Sx(E,z),checked:()=>{var ct;return{some:"mixed",all:!0}[(ct=E.queryStyle({variantStyle:z}))!=null?ct:!1]},onMenuSelect:()=>{E.applyStyle({variantStyle:z},{operation:"toggle"}),E.adoptStyle="none"}}}function Od(E,z){return E+gr(z)}hl({speak:(E,z,it)=>Ug(E,z,it)},{target:"mathfield"});function Ug(E,z,it){var st,ct;it=it!=null?it:{withHighlighting:!1};const{model:vt}=E;function xt(re){let Be=null;switch(re){case"all":Be=vt.root;break;case"selection":Be=vt.getAtoms(vt.selection);break;case"left":{Be=vt.getAtoms(vt.offsetOf(vt.at(vt.position).leftSibling),vt.position);break}case"right":{Be=vt.getAtoms(vt.position,vt.offsetOf(vt.at(vt.position).rightSibling));break}case"group":Be=vt.getAtoms(vt.getSiblingsRange(vt.position));break;case"parent":{const{parent:ln}=vt.at(vt.position);ln!=null&&ln.parent?Be=ln:Be=vt.root;break}default:Be=vt.root}return Be}function Ot(re){let Be="";switch(re){case"all":console.log("Internal failure: speak all failed");break;case"selection":Be="no selection";break;case"left":Be="at start";break;case"right":Be="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":Be="no parent";break;default:console.log('unknown speak_ param value: "'+re+'"');break}return Be}const Kt=xt(z);if(Kt===null)return(ct=(st=window.MathfieldElement).speakHook)==null||ct.call(st,Ot(z)),!1;(it.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const Zt=gr(Kt);return we()&&it.withHighlighting?(rd().readAloudMathfield=E,rp(E,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(E.field,Zt)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(Zt),!1}function kx(E){var z,it;if(!we()){console.log("Speak:",E);return}if(!window.MathfieldElement.speechEngine||window.MathfieldElement.speechEngine==="local"){const st=new SpeechSynthesisUtterance(E);window.speechSynthesis.speak(st)}else if(window.MathfieldElement.speechEngine==="amazon")if(!("AWS"in window))console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");else{const st=new window.AWS.Polly({apiVersion:"2016-06-10"}),ct={OutputFormat:"mp3",VoiceId:(z=window.MathfieldElement.speechEngineVoice)!=null?z:"Joanna",Engine:["Amy","Emma","Brian","Ivy","Joanna","Kendra","Kimberly","Salli","Joey","Justin","Matthew"].includes((it=window.MathfieldElement.speechEngineVoice)!=null?it:"Joanna")?"neural":"standard",Text:E,TextType:"ssml"};st.synthesizeSpeech(ct,(vt,xt)=>{if(vt)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${vt}`);else if(xt!=null&&xt.AudioStream){const Ot=new Uint8Array(xt.AudioStream),Kt=new Blob([Ot.buffer],{type:"audio/mpeg"}),Zt=URL.createObjectURL(Kt);new Audio(Zt).play().catch(Be=>console.log(Be))}else console.log("polly.synthesizeSpeech():",xt)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function k1(E){var z;let it;if(E.parent.type==="prompt")E.parentBranch==="body"&&(it="prompt");else if(E.parentBranch==="body")it=E.type&&(z={enclose:"cross out",leftright:"delimiter",surd:"square root",root:"math field",mop:"operator",first:"first"}[E.type])!=null?z:"parent";else if(E.parent.type==="genfrac"){if(E.parentBranch==="above")return"numerator";if(E.parentBranch==="below")return"denominator"}else E.parent.type==="surd"?E.parentBranch==="above"&&(it="index"):E.parentBranch==="superscript"?it="superscript":E.parentBranch==="subscript"&&(it="subscript");return it||console.log("unknown relationship"),it!=null?it:"parent"}function Ax(E,z,it,st){let ct="";if(z==="plonk")window.MathfieldElement.playSound("plonk"),E.flushInlineShortcutBuffer();else if(z==="delete")ct=Od("deleted: ",st);else if(z==="focus"||z.includes("move"))ct=Lx(E.model,it)+(E.model.selectionIsCollapsed?"":"selected: ")+Px(E.model);else if(z==="replacement")ct=Od("",E.model.at(E.model.position));else if(z==="line"){const vt=Od("",E.model.root);E.keyboardDelegate.setAriaLabel(vt)}else ct=st?Od(z+" ",st):z;if(ct){const vt=E.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";E.ariaLiveText.textContent=ct+vt}}function Lx(E,z){if(Number.isNaN(z))return"";const it=E.at(z);if(!it||it.treeDepth<=E.at(E.position).treeDepth)return"";let st="",ct=it.parent;const vt=E.at(E.position).parent;for(;ct!==E.root&&ct!==vt;)st+=`out of ${k1(ct)};`,ct=ct.parent;return st}function Px(E){if(!E.selectionIsCollapsed)return Od("",E.getAtoms(E.selection));let z="";const it=E.at(E.position),st=k1(it);return it.isFirstSibling&&(z=(st?"start of "+st:"unknown")+": "),it.isLastSibling?it.isFirstSibling||(z+=st?"end of "+st:"unknown"):z+=Od("",it),z}var A1=class{constructor(E,z,it){this.mathfield=E,this.mode=z,this.silenceNotifications=!1,this._selection={ranges:[[0,0]],direction:"none"},this._anchor=0,this._position=0,this.root=it}dispose(){this.mathfield=void 0}getState(){const E={ranges:[...this._selection.ranges]};return this.selection.direction&&this.selection.direction!=="none"&&(E.direction=this.selection.direction),{content:this.root.toJson(),selection:E,mode:this.mode}}setState(E,z){var it;const st=this.silenceNotifications;this.silenceNotifications=(it=z==null?void 0:z.silenceNotifications)!=null?it:!0;let ct={};if((z==null?void 0:z.type)==="undo"&&(ct={inputType:"historyUndo"}),(z==null?void 0:z.type)==="redo"&&(ct={inputType:"historyRedo"}),this.contentWillChange(ct)){const vt=this.silenceNotifications;this.silenceNotifications=!0,this.mode=E.mode,this.root=cf(E.content),this.selection=E.selection,this.silenceNotifications=vt,this.contentDidChange(ct)}this.silenceNotifications=st}get atoms(){return this.root.children}get selection(){return this._selection}set selection(E){this.setSelection(E)}setSelection(E,z){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{var it,st,ct;const vt=this.normalizeSelection(E,z);if(vt===void 0)throw new TypeError("Invalid selection");if(vt.ranges.length===1&&vt.ranges[0][0]===vt.ranges[0][1]){const re=vt.ranges[0][0];if(!this.mathfield.dirty&&!((it=this.at(re))!=null&&it.parentPrompt)&&this.mathfield.hasEditablePrompts){if((st=this.at(re-1))!=null&&st.parentPrompt){this._anchor=this.normalizeOffset(re-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((ct=this.at(re+1))!=null&&ct.parentPrompt){this._anchor=this.normalizeOffset(re+1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}this._anchor=0,this._position=0,this._selection={ranges:[[0,0]]};return}this._anchor=re,this._position=re,this._selection=vt;return}const xt=Va(vt);vt.direction==="backward"?[this._position,this._anchor]=xt:[this._anchor,this._position]=xt;const Ot=this.at(xt[0]+1),Kt=this.at(xt[1]),Zt=Mr.commonAncestor(Ot,Kt);(Zt==null?void 0:Zt.type)==="array"&&Ot.parent===Zt&&Kt.parent===Zt?this._selection={ranges:[xt],direction:vt.direction}:this._selection={ranges:[xt],direction:vt.direction},console.assert(this._position>=0&&this._position<=this.lastOffset)})}setPositionHandlingPlaceholder(E){var z;const it=this.at(E);(it==null?void 0:it.type)==="placeholder"?this.setSelection(E-1,E):((z=it==null?void 0:it.rightSibling)==null?void 0:z.type)==="placeholder"?this.setSelection(E,E+1):this.position=E,it instanceof ru&&it.isSuggestion&&(it.isSuggestion=!1),this.mathfield.stopCoalescingUndo()}get position(){return this._position}set position(E){this.setSelection(E,E)}get anchor(){return this._anchor}get selectionIsCollapsed(){return this._anchor===this._position}get selectionIsPlaceholder(){return Math.abs(this._anchor-this._position)===1?this.at(Math.max(this._anchor,this._position)).type==="placeholder":!1}collapseSelection(E="forward"){return this._anchor===this._position?!1:(E==="backward"?this.position=Math.min(this._anchor,this._position):this.position=Math.max(this._anchor,this._position),!0)}get lastOffset(){return this.atoms.length-1}at(E){return this.atoms[E]}offsetOf(E){return this.atoms.indexOf(E)}getSiblingsRange(E){const z=this.at(E),{parent:it}=z;if(!it)return[0,this.lastOffset];const st=z.parent.branch(z.parentBranch);return[this.offsetOf(st[0]),this.offsetOf(st[st.length-1])]}getBranchRange(E,z){const it=this.at(E).branch(z);return[this.offsetOf(it[0]),this.offsetOf(it[it.length-1])]}getAtoms(E,z,it){let st=it!=null?it:{};if(Yp(E)){if(st=z!=null?z:{},E.ranges.length>1)return E.ranges.reduce((Zt,re)=>[...Zt,...this.getAtoms(re,st)],[]);E=E.ranges[0]}let ct,vt;if(vh(E)){if(ct=E,!vh(z))return[];vt=z}else[ct,vt]=E,st=z!=null?z:{};if(!Number.isFinite(ct))return[];st.includeChildren===void 0&&(st.includeChildren=!1),ct<0&&(ct=this.lastOffset-ct+1),vt<0&&(vt=this.lastOffset-vt+1);const xt=Math.min(ct,vt)+1,Ot=Math.max(ct,vt);if(!st.includeChildren&&xt===1&&Ot===this.lastOffset)return[this.root];let Kt=[];for(let Zt=xt;Zt<=Ot;Zt++){const re=this.atoms[Zt];Zg(this,re,xt,Ot)&&Kt.push(re)}return st.includeChildren||(Kt=Kt.filter(Zt=>{let re=!1,{parent:Be}=Zt;for(;Be&&!re;)re=Zg(this,Be,xt,Ot),Be=Be.parent;return!re})),Kt}getAllAtoms(E=0){const z=[],it=this.lastOffset;for(let st=E;st<=it;st++)z.push(this.atoms[st]);for(let st=0;st<E;st++)z.push(this.atoms[st]);return z}findAtom(E,z=0,it="forward"){let st;const ct=this.lastOffset;if(it==="forward"){for(let vt=z;vt<=ct;vt++)if(st=this.atoms[vt],E(st))return st;for(let vt=0;vt<z;vt++)if(st=this.atoms[vt],E(st))return st;return}for(let vt=z;vt>=0;vt--)if(st=this.atoms[vt],E(st))return st;for(let vt=ct;vt>z;vt--)if(st=this.atoms[vt],E(st))return st}extractAtoms(E){let z=this.getAtoms(E);if(z.length===1&&!z[0].parent)if(z[0].type==="root")z=[...z[0].body],z.shift();else return z=this.root.cells.flat(),this.root=new Mr({type:"root",body:[]}),z;for(const it of z)it.parent.removeChild(it);return z}deleteAtoms(E){this.extractAtoms(E),this.position=E[0]}atomToString(E,z){const it=z!=null?z:"latex";if(it.startsWith("latex"))return Mr.serialize([E],{expandMacro:it==="latex-expanded",skipStyles:it==="latex-unstyled",skipPlaceholders:it==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode});if(it==="math-ml")return ia(E);if(it==="spoken")return gr(E);if(it==="spoken-text"){const st=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const ct=gr(E);return window.MathfieldElement.textToSpeechMarkup=st,ct}if(it==="spoken-ssml"||it==="spoken-ssml-with-highlighting"){const st=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="ssml";const ct=gr(E);return window.MathfieldElement.textToSpeechMarkup=st,ct}return it==="ascii-math"?ml(E):(console.error(`MathLive 0.98.5: Unexpected format "${it}`),"")}getValue(E,z,it){if(E===void 0)return this.atomToString(this.root,"latex");if(typeof E=="string"&&E!=="math-json")return this.atomToString(this.root,E);let st,ct;if(vh(E)&&vh(z)?(st=[this.normalizeRange([E,z])],ct=it):rf(E)?(st=[this.normalizeRange(E)],ct=z):Yp(E)?(st=E.ranges,ct=z):(st=[this.normalizeRange([0,-1])],ct=E),ct!=null||(ct="latex"),ct==="math-json"){if(!window.MathfieldElement.computeEngine)return window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`The CortexJS Compute Engine library is not available.
|
|
|
Load the library, for example with:
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`),'["Error", "compute-engine-not-available"]';const vt=this.getValue({ranges:st},"latex-unstyled");try{const xt=window.MathfieldElement.computeEngine.parse(vt);return JSON.stringify(xt.json)}catch(xt){return JSON.stringify(["Error",`'${xt.toString()}'`])}}if(ct.startsWith("latex")){const vt={expandMacro:ct==="latex-expanded",skipStyles:ct==="latex-unstyled",skipPlaceholders:ct==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return Ts(st.map(xt=>Mr.serialize(this.getAtoms(xt),vt)))}return st.map(vt=>this.getAtoms(vt).map(xt=>this.atomToString(xt,ct)).join("")).join("")}extendSelectionTo(E,z){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{const it=this.normalizeRange([E,z]);let[st,ct]=it,{parent:vt}=this.at(ct);if(vt&&(vt.type==="genfrac"||vt.type==="subsup"))for(;vt!==this.root&&Tm(this,vt,[st,ct]);)ct=this.offsetOf(vt),vt=vt.parent;for(vt=this.at(st).parent;vt!==this.root&&Tm(this,vt,[st,ct]);)st=this.offsetOf(vt.leftSibling),vt=vt.parent;if(vt=this.at(ct).parent,(vt==null?void 0:vt.type)==="genfrac")for(;vt!==this.root&&Tm(this,vt,[st,ct]);)ct=this.offsetOf(vt),console.assert(ct>=0),vt=vt.parent;this._position=this.normalizeOffset(z),this._selection={ranges:[[st,ct]],direction:"none"}})}announce(E,z,it=[]){var st,ct;((ct=(st=this.mathfield.host)==null?void 0:st.dispatchEvent(new CustomEvent("announce",{detail:{command:E,previousPosition:z,atoms:it},cancelable:!0,bubbles:!0,composed:!0})))!=null?ct:!0)&&Ax(this.mathfield,E,z,it)}deferNotifications(E,z){const it=this._selection,st=this._anchor,ct=this._position,vt=this.silenceNotifications;this.silenceNotifications=!0;const xt=this.root.changeCounter;z();const Ot=this.root.changeCounter!==xt,Kt=st!==this._anchor||ct!==this._position||nf(this._selection,it)==="different";return this.silenceNotifications=vt,E.content&&Ot&&this.contentDidChange({inputType:E.type}),E.selection&&Kt&&this.selectionDidChange(),Ot||Kt}normalizeOffset(E){return E>0?E=Math.min(E,this.lastOffset):E<0&&(E=this.lastOffset+E+1),E}normalizeRange(E){let[z,it]=E;return z=this.normalizeOffset(z),it=this.normalizeOffset(it),z<it?[z,it]:[it,z]}normalizeSelection(E,z){var it;let st;if(vh(E)){const ct=this.normalizeOffset(E);if(vh(z)){const vt=this.normalizeOffset(z);st=ct<=vt?{ranges:[[ct,vt]],direction:"none"}:{ranges:[[vt,ct]],direction:"backward"}}else st={ranges:[[ct,ct]],direction:"none"}}else if(rf(E)){const ct=this.normalizeOffset(E[0]),vt=this.normalizeOffset(E[1]);st=ct<=vt?{ranges:[[ct,vt]],direction:"none"}:{ranges:[[vt,ct]],direction:"backward"}}else Yp(E)&&(st={ranges:E.ranges.map(ct=>this.normalizeRange(ct)),direction:(it=E.direction)!=null?it:"none"});return console.assert(st!==void 0),st}get parentEnvironment(){let E=this.at(this.position).parent;if(E){for(;E.parent&&E.type!=="array";)E=E.parent;if(E.type==="array")return E}}get cell(){var E;let z=this.at(this.position);if(z){for(;z&&((E=z.parent)==null?void 0:E.type)!=="array";)z=z.parent;if(!(!(z!=null&&z.parent)||z.parent.type!=="array"))return z.parentBranch}}contentWillChange(E={}){if(this.silenceNotifications||!this.mathfield)return!0;const z=this.silenceNotifications;this.silenceNotifications=!0;const it=this.mathfield.onContentWillChange(E);return this.silenceNotifications=z,it}contentDidChange(E){var z;if(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(vu(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const it=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",Nt(jt({},E),{data:E.data?E.data:(z=E.inputType)!=null?z:"",bubbles:!0,composed:!0}))),this.silenceNotifications=it}selectionDidChange(){if(!this.mathfield||(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(vu(this.mathfield)),this.silenceNotifications))return;const E=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=E}};function Zg(E,z,it,st){const ct=E.offsetOf(z);if(ct<it||ct>st)return!1;if(!z.hasChildren)return!0;const vt=E.offsetOf(z.firstChild);if(vt>=it&&vt<=st){const xt=E.offsetOf(z.lastChild);if(xt>=it&&xt<=st)return!0}return!1}function Tm(E,z,it){if(!(z!=null&&z.hasChildren))return!1;const[st,ct]=it,vt=E.offsetOf(z.firstChild),xt=E.offsetOf(z.lastChild);return vt>=st&&vt<=ct&&xt>=vt&&xt<=ct}function Gg(E,z,it,st){var ct,vt,xt,Ot,Kt,Zt;const re=it.parent;if(re&&it instanceof qs){const Be=!st&&z==="forward"||st==="body"&&z==="backward";let ln=Be?E.offsetOf(it.firstChild):E.offsetOf(it.lastChild);return Be?it.rightDelim!=="?"&&it.rightDelim!=="."?(it.leftDelim=".",it.isDirty=!0):(re.addChildrenAfter(it.removeBranch("body"),it),re.removeChild(it),ln--):it.leftDelim!=="?"&&it.leftDelim!=="."?(it.rightDelim=".",it.isDirty=!0):(re.addChildrenAfter(it.removeBranch("body"),it),re.removeChild(it),ln--),E.position=ln,!0}if(re&&it.type==="surd"){if(z==="forward"&&!st||z==="backward"&&st==="body"){const Be=it.leftSibling;it.hasChildren&&re.addChildrenAfter(it.removeBranch("body"),it),re.removeChild(it),E.position=E.offsetOf(Be)}else z==="forward"&&st==="body"?E.position=E.offsetOf(it):!st&&z==="backward"?it.hasChildren?E.position=E.offsetOf(it.lastChild):(E.position=Math.max(0,E.offsetOf(it)-1),re.removeChild(it)):st==="above"&&(it.hasEmptyBranch("above")&&it.removeBranch("above"),z==="backward"?E.position=E.offsetOf(it.leftSibling):E.position=E.offsetOf(it.body[0]));return!0}if(re&&(it.type==="box"||it.type==="enclose")){const Be=st&&z==="backward"||!st&&z==="forward"?it.leftSibling:it.lastChild;return re.addChildrenAfter(it.removeBranch("body"),it),re.removeChild(it),E.position=E.offsetOf(Be),!0}if(it.type==="genfrac"||it.type==="overunder"){if(!st)return it.type==="overunder"&&it.hasEmptyBranch("body")||it.type==="genfrac"&&it.hasEmptyBranch("below")&&it.hasEmptyBranch("above")?!1:(E.position=E.offsetOf(z==="forward"?it.firstChild:it.lastChild),!0);const Be=bp.fractionNavigationOrder==="numerator-denominator"?"above":"below",ln=Be==="above"?"below":"above";if(re&&(z==="forward"&&st===Be||z==="backward"&&st===ln)){const Fn=it.removeBranch(Be),ei=it.removeBranch(ln);return re.addChildrenAfter([...Fn,...ei],it),re.removeChild(it),E.position=E.offsetOf(Fn.length>0?Fn[Fn.length-1]:ei[0]),!0}return z==="backward"?E.position=E.offsetOf(it.leftSibling):E.position=E.offsetOf(it),!0}if(it.isExtensibleSymbol||it.type==="subsup"){if(!st&&z==="forward")return!1;if(!st){if(it.subscript||it.superscript){const Be=z==="forward"?(xt=(ct=it.superscript)==null?void 0:ct[0])!=null?xt:(vt=it.subscript)==null?void 0:vt[0]:(Zt=(Ot=it.subscript)==null?void 0:Ot[0].lastSibling)!=null?Zt:(Kt=it.superscript)==null?void 0:Kt[0].lastSibling;return Be&&(E.position=E.offsetOf(Be)),!0}return!1}if(!it.hasChildren&&it.type==="subsup"){const Be=z==="forward"?E.offsetOf(it):Math.max(0,E.offsetOf(it)-1);return it.parent.removeChild(it),E.position=Be,!0}if(st==="superscript")if(z==="backward"){const Be=E.offsetOf(it.firstChild)-1;console.assert(Be>=0),E.position=Be}else it.subscript?E.position=E.offsetOf(it.subscript[0]):E.position=E.offsetOf(it);else st==="subscript"&&(z==="backward"&&it.superscript?E.position=E.offsetOf(it.superscript[0].lastSibling):z==="backward"?E.position=E.offsetOf(it.firstChild)-1:E.position=E.offsetOf(it));if(st&&it.hasEmptyBranch(st)&&(it.removeBranch(st),it.type==="subsup"&&!it.subscript&&!it.superscript)){const Be=z==="forward"?E.offsetOf(it):Math.max(0,E.offsetOf(it)-1);it.parent.removeChild(it),E.position=Be}return!0}if((re==null?void 0:re.type)==="genfrac"&&!st&&it.type!=="first"){let Be=E.offsetOf(it.leftSibling);return re.removeChild(it),re.hasEmptyBranch("above")&&re.hasEmptyBranch("below")?(Be=E.offsetOf(re.leftSibling),re.parent.removeChild(re),E.announce("delete",void 0,[re]),E.position=Be,!0):(E.announce("delete",void 0,[it]),E.position=Be,!0)}if(z==="backward"&&((re==null?void 0:re.command)==="\\ln"||(re==null?void 0:re.command)==="\\log")&&it.parentBranch!=="body"){const Be=E.offsetOf(re.leftSibling);return re.parent.removeChild(re),E.announce("delete",void 0,[re]),E.position=Be,!0}return!1}function xc(E){return!E.mathfield.isSelectionEditable||!E.contentWillChange({inputType:"deleteContentBackward"})?!1:E.selectionIsCollapsed?E.deferNotifications({content:!0,selection:!0,type:"deleteContentBackward"},()=>{let z=E.at(E.position);if(!(z&&Gg(E,"backward",z))){if(z!=null&&z.isFirstSibling){if(Gg(E,"backward",z.parent,z.parentBranch))return;z=null}if(!z){E.announce("plonk");return}E.position=E.offsetOf(z.leftSibling),z.parent.removeChild(z),E.announce("delete",void 0,[z])}}):xu(E,Va(E.selection),"deleteContentBackward")}function wf(E){return!E.mathfield.isSelectionEditable||!E.contentWillChange({inputType:"deleteContentForward"})?!1:E.selectionIsCollapsed?E.deferNotifications({content:!0,selection:!0,type:"deleteContentForward"},()=>{var z,it;let st=E.at(E.position).rightSibling;if(st&&Gg(E,"forward",st))return;if(st){if(E.at(E.position).isLastSibling&&Gg(E,"forward",st.parent,st.parentBranch))return}else{if(st=E.at(E.position),st.isLastSibling&&Gg(E,"forward",st.parent,st.parentBranch))return;st=void 0}if(E.position===E.lastOffset||!st){E.announce("plonk");return}st.parent.removeChild(st);let ct=(z=E.at(E.position))==null?void 0:z.rightSibling;for(;(ct==null?void 0:ct.type)==="subsup";)ct.parent.removeChild(ct),ct=(it=E.at(E.position))==null?void 0:it.rightSibling;E.announce("delete",void 0,[st])}):xu(E,Va(E.selection),"deleteContentForward")}function xu(E,z,it){const st=E.getAtoms(z);if(st.length>0&&st[0].parent){let ct=st[0].parent.firstChild;ct.type==="first"&&(ct=ct.rightSibling);const vt=st[st.length-1].parent.lastChild;let xt=st[0];xt.type==="first"&&(xt=xt.rightSibling);const Ot=st[st.length-1];if(xt===ct&&Ot===vt){const Kt=st[0].parent;Kt.parent&&Kt.type!=="prompt"&&(z=[E.offsetOf(Kt.leftSibling),E.offsetOf(Kt)])}if(st.length===1&&st[0].type==="placeholder"&&st[0].parent.type==="genfrac"){const Kt=st[0].parent,Zt=st[0].parentBranch==="below"?"above":"below",re=E.offsetOf(Kt.leftSibling);return E.deferNotifications({content:!0,selection:!0,type:it},()=>{var Be,ln;const Fn=Kt.removeBranch(Zt);if(Fn.length===1&&Fn[0].type==="placeholder")(ln=Kt.parent)==null||ln.removeChild(Kt),E.position=Math.max(0,re);else{const ei=Kt.parent.addChildrenAfter(Fn,Kt);(Be=Kt.parent)==null||Be.removeChild(Kt),E.position=E.offsetOf(ei)}})}}return E.deferNotifications({content:!0,selection:!0,type:it},()=>E.deleteAtoms(z))}hl({deleteAll:E=>E.contentWillChange({inputType:"deleteContent"})&&xu(E,[0,-1],"deleteContent"),deleteForward:E=>wf(E),deleteBackward:E=>xc(E),deleteNextWord:E=>E.contentWillChange({inputType:"deleteWordForward"})&&xu(E,[E.anchor,Wo(E,E.position,"forward")],"deleteWordForward"),deletePreviousWord:E=>E.contentWillChange({inputType:"deleteWordBackward"})&&xu(E,[E.anchor,Wo(E,E.position,"backward")],"deleteWordBackward"),deleteToGroupStart:E=>E.contentWillChange({inputType:"deleteSoftLineBackward"})&&xu(E,[E.anchor,E.offsetOf(E.at(E.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:E=>E.contentWillChange({inputType:"deleteSoftLineForward"})&&xu(E,[E.anchor,E.offsetOf(E.at(E.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:E=>E.contentWillChange({inputType:"deleteHardLineBackward"})&&xu(E,[E.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:E=>E.contentWillChange({inputType:"deleteHardLineForward"})&&xu(E,[E.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var bc=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${be("tooltip.toggle virtual keyboard")}"><path d="M528 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm16 336c0 8.823-7.177 16-16 16H48c-8.823 0-16-7.177-16-16V112c0-8.823 7.177-16 16-16h480c8.823 0 16 7.177 16 16v288zM168 268v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-336 80v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm384 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zM120 188v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-96 152v-8c0-6.627-5.373-12-12-12H180c-6.627 0-12 5.373-12 12v8c0 6.627 5.373 12 12 12h216c6.627 0 12-5.373 12-12z"/></svg>`,Hl=`<svg xmlns="http://www.w3.org/2000/svg" style="height: 18px;" viewBox="0 0 448 512" role="img" aria-label="${be("tooltip.menu")}"><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>`,Sf=class{constructor(E,z){this.focusBlurInProgress=!1;var it,st,ct;this.options=jt(Nt(jt({},mm()),{macros:Sn(),registers:Sd()}),d0(z)),this.eventController=new AbortController;const vt=this.eventController.signal;z.eventSink&&(this.host=z.eventSink),this.element=E,E.mathfield=this,this.blurred=!0,this.keystrokeCaptionVisible=!1,this.suggestionIndex=0,this.inlineShortcutBuffer=[],this.inlineShortcutBufferFlushTimer=0,this.defaultStyle={},this.adoptStyle="left",this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline"),this.dirty=!1;let xt=(st=(it=z.value)!=null?it:this.element.textContent)!=null?st:"";xt=xt.trim();const Ot=Pr(this.options),Kt=new Mr({type:"root",mode:Ot,body:ll(xt,{context:this.context})});this.model=new A1(this,Ot,Kt),this.undoManager=new lx(this.model);const Zt=[];if(Zt.push("<span contenteditable=true aria-multiline=false part=keyboard-sink class=ML__keyboard-sink autocapitalize=off autocomplete=off autocorrect=off spellcheck=false inputmode=none tabindex=0></span>"),Zt.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),Zt.push("<span part=content class=ML__content>"),Zt.push(Zy(this)),Zt.push("</span>"),window.mathVirtualKeyboard&&(Zt.push(`<div part=virtual-keyboard-toggle class=ML__virtual-keyboard-toggle role=button ${this.hasEditableContent?"":'style="display:none;"'} data-l10n-tooltip="tooltip.toggle virtual keyboard">`),Zt.push(bc),Zt.push("</div>")),Zt.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),Zt.push(Hl),Zt.push("</div>"),Zt.push("</span>"),Zt.push("<span class=ML__sr-only>"),Zt.push("<span role=status aria-live=assertive aria-atomic=true></span>"),Zt.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(Zt.join("")),!this.element.children){console.error("%cMathLive 0.98.5: Something went wrong and the mathfield could not be created.%c\nIf you are using Vue, this may be because you are using the runtime-only build of Vue. Make sure to include `runtimeCompiler: true` in your Vue configuration. There may a warning from Vue in the log above.","color:red;font-family:system-ui;font-size:1.2rem;font-weight:bold","color:inherit;font-family:system-ui;font-size:inherit;font-weight:inherit");return}this._l10Subscription=pe.subscribe(()=>pe.update(this.element)),pe.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",Be=>Be.stopImmediatePropagation(),{capture:!1,signal:vt}),this.field.addEventListener("wheel",this,{passive:!1,signal:vt}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:vt}):this.field.addEventListener("mousedown",this,{signal:vt}),(ct=this.element.querySelector("[part=virtual-keyboard-toggle]"))==null||ct.addEventListener("click",()=>{window.mathVirtualKeyboard.visible?window.mathVirtualKeyboard.hide():(window.mathVirtualKeyboard.show({animate:!0}),window.mathVirtualKeyboard.update(vu(this)))},{signal:vt}),this._menu=new Wb(Mx(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:vt});const re=this.element.querySelector("[part=menu-toggle]");re==null||re.addEventListener("pointerdown",Be=>{if(Be.currentTarget!==re||this._menu.state!=="closed")return;this.element.classList.add("tracking");const ln=re.getBoundingClientRect();this._menu.modifiers=Ed(Be),this._menu.show({target:re,location:{x:ln.left,y:ln.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),Be.preventDefault(),Be.stopPropagation()},{signal:vt}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(re.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=Ib(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:vt}),document.addEventListener("scroll",this,{signal:vt}),this.resizeObserver=new ResizeObserver(()=>nl(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:vt}),tp&&!pe.locale.startsWith(tp.locale)&&G1(pe.locale),au!=="ready"&&document.fonts.ready.then(()=>pc(this)),E.querySelector("[part=container]").style.removeProperty("visibility"),this.undoManager.startRecording(),this.undoManager.snapshot("set-value")}get defaultStyle(){return this._defaultStyle}set defaultStyle(E){this._defaultStyle=E}get effectiveStyle(){if(this.adoptStyle==="none")return this.defaultStyle;const E=this.model.at(this.model.position),z=this.adoptStyle==="right"?E.rightSibling:E;if(!z)return this.defaultStyle;if(z.type==="group"){const it=z.branch("body");return!it||it.length<2?{}:this.adoptStyle==="right"?it[1].computedStyle:it[it.length-1].computedStyle}return z.computedStyle}connectToVirtualKeyboard(){this.connectedToVirtualKeyboard||(this.connectedToVirtualKeyboard=!0,window.addEventListener("message",this,{signal:this.eventController.signal}),window.mathVirtualKeyboard.connect(),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(vu(this)),vc(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,Bc())}showMenu(E){var z,it;const st=(it=(z=E==null?void 0:E.location)!=null?z:Zc(this.field))!=null?it:void 0,ct=E==null?void 0:E.modifiers,vt=this.element.querySelector("[part=container]");return this._menu.show({target:vt,location:st,modifiers:ct})}get colorMap(){return E=>{var z,it,st;return(st=(it=(z=this.options).colorMap)==null?void 0:it.call(z,E))!=null?st:en(E)}}get backgroundColorMap(){return E=>{var z,it,st,ct,vt,xt;return(xt=(vt=(it=(z=this.options).backgroundColorMap)==null?void 0:it.call(z,E))!=null?vt:(ct=(st=this.options).colorMap)==null?void 0:ct.call(st,E))!=null?xt:ie(E)}}get smartFence(){var E;return(E=this.options.smartFence)!=null?E:!1}get readOnly(){var E;return(E=this.options.readOnly)!=null?E:!1}get disabled(){var E,z;return(z=(E=this.host)==null?void 0:E.disabled)!=null?z:!1}get contentEditable(){return this.host?this.host.getAttribute("contenteditable")!=="false":!1}get userSelect(){if(!this.host)return"";const E=getComputedStyle(this.host);return E.getPropertyValue("user-select")||E.getPropertyValue("-webkit-user-select")}get hasEditableContent(){return this.disabled||!this.contentEditable?!1:!this.readOnly||this.hasEditablePrompts}get hasEditablePrompts(){return this.readOnly&&!this.disabled&&this.contentEditable&&this.model.findAtom(E=>E.type==="prompt"&&!E.locked)!==void 0}get isSelectionEditable(){if(this.disabled||!this.contentEditable)return!1;if(!this.readOnly)return!0;const E=this.model.at(this.model.anchor),z=this.model.at(this.model.position),it=Mr.commonAncestor(E,z);return!!((it==null?void 0:it.type)==="prompt"||it!=null&&it.parentPrompt)}get letterShapeStyle(){var E;return(E=this.options.letterShapeStyle)!=null?E:"tex"}get minFontScale(){return this.options.minFontScale}get selectionStyle(){if(this.model.selectionIsCollapsed)return this.effectiveStyle;const E=this.model.getAtoms(this.model.selection);if(E.length===0)return{};const z=jt({},E[0].style);for(const it of E)for(const[st,ct]of Object.entries(it.style))z[st]!==ct&&delete z[st];return z}queryStyle(E){const z=Ig(this,E);"verbatimColor"in z&&delete z.verbatimColor,"verbatimBackgroundColor"in z&&delete z.verbatimBackgroundColor;const it=Object.keys(z).length;if(it===0)return"all";if(it>1){for(const Kt of Object.keys(z)){const Zt=this.queryStyle({[Kt]:z[Kt]});if(Zt==="none")return"none";if(Zt==="some")return"some"}return"all"}const st=Object.keys(z)[0],ct=z[st];if(this.model.selectionIsCollapsed)return this.effectiveStyle[st]===ct?"all":"none";const vt=this.model.getAtoms(this.model.selection,{includeChildren:!0});let xt=vt.length;if(xt===0)return"none";let Ot=0;for(const Kt of vt){if(Kt.type==="first"){xt-=1;continue}Kt.style[st]===ct&&(Ot+=1)}return Ot===0?"none":Ot===xt?"all":"some"}get keybindings(){var E,z;if(this._keybindings)return this._keybindings;const[it,st]=J1(this.options.keybindings,(E=hf())!=null?E:Di());return((z=hf())==null?void 0:z.score)>0&&(this._keybindings=it,st.length>0&&console.error("MathLive 0.98.5: Invalid keybindings for current keyboard layout",st)),it}get menu(){return this._menu}setOptions(E){var z;this.options=jt(jt({},this.options),d0(E)),this._keybindings=void 0,this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline");let it=this.options.defaultMode;it==="inline-math"&&(it="math"),((z=this.model.root.firstChild)==null?void 0:z.mode)!==it&&(this.model.root.firstChild.mode=it),this.options.readOnly&&this.hasFocus()&&window.mathVirtualKeyboard.visible&&this.executeCommand("hideVirtualKeyboard");const st=Mr.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in E||this.model.getValue()!==st)&&ts.insert(this.model,st,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",silenceNotifications:!0,mode:"math"}),("value"in E||"macros"in E||"registers"in E||"colorMap"in E||"backgroundColorMap"in E||"letterShapeStyle"in E||"minFontScale"in E||"readOnly"in E||"placeholderSymbol"in E)&&nl(this)}getOptions(E){return za(this.options,E)}getOption(E){return za(this.options,E)}handleEvent(E){return _m(this,null,function*(){var z;if(Ua(this)){if(Fv(E)){if(!bh(E.origin,(z=this.options.originValidator)!=null?z:"none"))throw new DOMException(`Message from unknown origin (${E.origin}) cannot be handled`,"SecurityError");const{action:it}=E.data;if(it==="execute-command"){const st=E.data.command;if(Ad(st)==="virtual-keyboard")return;this.executeCommand(st)}else it==="update-state"||(it==="focus"?this.focus({preventScroll:!0}):it==="blur"&&this.blur());return}switch(E.type){case"focus":this.onFocus();break;case"blur":this.onBlur();break;case"mousedown":this.userSelect!=="none"&&vf(this,E);break;case"pointerdown":this.userSelect!=="none"&&(vf(this,E),E.shiftKey===!1&&(yield lu(E,this.element.querySelector("[part=container]"),this._menu))&&Xv.stop());break;case"contextmenu":this.userSelect!=="none"&&E.shiftKey===!1&&(yield lu(E,this.element.querySelector("[part=container]"),this._menu))&&Xv.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&vc(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Ua(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Ua(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(E);break;default:console.warn("Unexpected event type",E.type)}}})}dispose(){if(!Ua(this))return;pe.unsubscribe(this._l10Subscription),this.keyboardDelegate.dispose(),this.keyboardDelegate=void 0,this.eventController.abort(),this.eventController=void 0,this.resizeObserver.disconnect(),window.mathVirtualKeyboard.removeEventListener("virtual-keyboard-toggle",this),this.disconnectFromVirtualKeyboard(),this.model.dispose();const E=this.element;delete E.mathfield,this.element=void 0,this.host=void 0,this.field=void 0,this.ariaLiveText=void 0,ji(),Vu(),gx()}flushInlineShortcutBuffer(E){if(E!=null||(E={defer:!1}),!E.defer){this.inlineShortcutBuffer=[],clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=0;return}this.options.inlineShortcutTimeout>0&&(clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=setTimeout(()=>this.flushInlineShortcutBuffer(),this.options.inlineShortcutTimeout))}executeCommand(E){return Ad(E)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(E),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(vu(this))),!1):Yy(this,E)}get errors(){return lf(this.model.getValue(),{context:this.context})}getValue(E,z,it){return this.model.getValue(E,z,it)}setValue(E,z){var it;z=z!=null?z:{mode:"math"},z.insertionMode===void 0&&(z.insertionMode="replaceAll"),(z.format===void 0||z.format==="auto")&&(z.format="latex"),(z.mode===void 0||z.mode==="auto")&&(z.mode=(it=tg(this.model,this.model.position))!=null?it:"math");const st=this.undoManager.canUndo();ts.insert(this.model,E,z)&&(nl(this),st||this.undoManager.reset(),this.undoManager.snapshot("set-value"))}get expression(){const E=window.MathfieldElement.computeEngine;return E?E.box(E.parse(this.model.getValue("latex-unstyled"))):(console.error("MathLive 0.98.5: no compute engine available. Make sure the Compute Engine library is loaded."),null)}scrollIntoView(){var E;if(!this.element)return;if(this.host){if(this.options.onScrollIntoView)this.options.onScrollIntoView(this);else if(this.host.scrollIntoView({block:"nearest",inline:"nearest"}),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.container===window.document.body){const st=window.mathVirtualKeyboard.boundingRect,ct=this.host.getBoundingClientRect();ct.bottom>st.top&&((E=window.document.scrollingElement)==null||E.scrollBy(0,ct.bottom-st.top+8))}}this.dirty&&rp(this,{interactive:!0});const z=this.field.getBoundingClientRect();let it=null;if(this.model.selectionIsCollapsed)it=Zc(this.field);else{const st=Y0(this);if(st.length>0){let ct=-1/0,vt=-1/0;for(const xt of st)xt.right>ct&&(ct=xt.right),xt.top<vt&&(vt=xt.top);it={x:ct+z.left-this.field.scrollLeft,y:vt+z.top-this.field.scrollTop,height:0}}}if(this.host&&it){const st=this.host.getBoundingClientRect(),ct=it.y;let vt=this.host.scrollTop;ct<st.top?vt=ct-st.top+this.host.scrollTop:ct>st.bottom&&(vt=ct-st.bottom+this.host.scrollTop+it.height),this.host.scroll({top:vt,left:0})}if(it){const st=it.x-window.scrollX;let ct=this.field.scrollLeft;st<z.left?ct=st-z.left+this.field.scrollLeft-20:st>z.right&&(ct=st-z.right+this.field.scrollLeft+20),this.field.scroll({top:this.field.scrollTop,left:ct})}}insert(E,z){return typeof E!="string"||E.length===0&&((z==null?void 0:z.insertionMode)==="insertBefore"||(z==null?void 0:z.insertionMode)==="insertAfter")||E.length===0&&this.model.selectionIsCollapsed?!1:(this.flushInlineShortcutBuffer(),z=z!=null?z:{mode:"math"},z.focus&&this.focus(),z.feedback&&(window.MathfieldElement.keypressVibration&&he()&&navigator.vibrate(Bv),window.MathfieldElement.playSound("keypress")),E==="\\\\"?Ld(this.model):E==="&"?Wv(this.model):this.model.selectionIsCollapsed?ts.insert(this.model,E,jt({style:this.model.at(this.model.position).computedStyle},z)):ts.insert(this.model,E,z),this.snapshot(`insert-${this.model.at(this.model.position).type}`),nl(this),z.scrollIntoView&&this.scrollIntoView(),!0)}switchMode(E,z="",it=""){var st;if(this.model.mode===E||!this.hasEditableContent||!this.contentEditable||this.disabled)return;const ct=this.model.mode;if(this.model.mode=E,!((st=this.host)!=null&&st.dispatchEvent(new Event("mode-change",{bubbles:!0,composed:!0,cancelable:!0})))){this.model.mode=ct;return}const vt=this.model.mode,{model:xt}=this;xt.deferNotifications({content:!!it||!!z,selection:!0,type:"insertText"},()=>{let Ot=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),z&&E!=="latex"){const Kt=ll(z,{context:this.context,parseMode:E});xt.collapseSelection("forward");const Zt=xt.at(xt.position);xt.position=xt.offsetOf(Zt.parent.addChildrenAfter(Kt,Zt)),Ot=!0}if(this.model.mode=E,E==="latex"){let Kt=xt.selectionIsCollapsed;np(this,"accept");let Zt,re=xt.at(xt.position);if(Kt)Zt="\\";else{const ln=Va(xt.selection);Zt=this.model.getValue(ln,"latex");const Fn=this.model.extractAtoms(ln);Fn.length===1&&Fn[0].type==="placeholder"&&(Zt=z,Kt=!0),re=xt.at(ln[0])}const Be=new J0(Zt);re.parent.addChildAfter(Be,re),Kt?xt.position=xt.offsetOf(Be.lastChild):xt.setSelection(xt.offsetOf(Be.firstChild),xt.offsetOf(Be.lastChild))}else ou(xt).forEach(Kt=>{Kt.isError=!1});if(it){const Kt=ll(it,{context:this.context,parseMode:vt});xt.collapseSelection("forward");const Zt=xt.at(xt.position);xt.position=xt.offsetOf(Zt.parent.addChildrenAfter(Kt,Zt)),Ot=!0}return nl(this),this.undoManager.snapshot(E==="latex"?"insert-latex":"insert"),Ot}),this.model.mode=E,window.mathVirtualKeyboard.update(vu(this))}hasFocus(){return!this.blurred}focus(E){var z;this.hasFocus()||(this.keyboardDelegate.focus(),this.connectToVirtualKeyboard(),this.onFocus(),this.model.announce("line")),(z=E==null?void 0:E.preventScroll)!=null&&z||this.scrollIntoView()}blur(){this.disconnectFromVirtualKeyboard(),this.hasFocus()&&this.keyboardDelegate.blur()}select(){this.model.selection={ranges:[[0,this.model.lastOffset]]},this.focus()}applyStyle(E,z={}){var it,st;const ct={operation:"set",silenceNotifications:!1};rf(z)?ct.range=z:(z.operation==="toggle"&&(ct.operation="toggle"),ct.range=z.range,ct.silenceNotifications=(it=z.silenceNotifications)!=null?it:!1);const vt=Ig(this,E),xt=(st=ct.operation)!=null?st:"set";if(ct.range===void 0&&this.model.selectionIsCollapsed){if(xt==="set"){this.defaultStyle=jt(jt({},this.defaultStyle),vt);return}const Ot=jt({},this.defaultStyle);for(const Kt of Object.keys(vt))Ot[Kt]===vt[Kt]?(Kt==="color"&&delete Ot.verbatimColor,Kt==="backgroundColor"&&delete Ot.verbatimBackgroundColor,delete Ot[Kt]):Ot[Kt]=vt[Kt];this.defaultStyle=Ot;return}this.model.deferNotifications({content:!ct.silenceNotifications,type:"insertText"},()=>{if(ct.range===void 0)for(const Ot of this.model.selection.ranges)kg(this.model,Ot,vt,{operation:xt});else kg(this.model,ct.range,vt,{operation:xt})}),nl(this)}toggleContextMenu(){var E;return this._menu.visible?this._menu.state==="open"?(this._menu.hide(),!0):(this._menu.show({target:this.element.querySelector("[part=container]"),location:(E=this.getCaretPoint())!=null?E:void 0,onDismiss:()=>{var z;return(z=this.element)==null?void 0:z.focus()}}),!0):!1}getCaretPoint(){const E=Zc(this.field);return E?{x:E.x,y:E.y}:null}setCaretPoint(E,z){const it=yf(this,E,z,{bias:0});if(it<0)return!1;const st=this.model.position;return this.model.position=it,this.model.announce("move",st),nl(this),!0}getPrompt(E){const z=this.model.findAtom(it=>it.type==="prompt"&&it.placeholderId===E);return console.assert(z!==void 0,"MathLive 0.98.5: no prompts with matching ID found"),z}getPromptValue(E,z){const it=this.getPrompt(E);if(!it)return"";const st=this.model.offsetOf(it.firstChild),ct=this.model.offsetOf(it.lastChild);return this.model.getValue(st,ct,z)}getPrompts(E){return this.model.getAllAtoms().filter(z=>z.type!=="prompt"?!1:E?!(E.id&&z.placeholderId!==E.id||E.locked&&z.locked!==E.locked||E.correctness==="undefined"&&z.correctness||E.correctness&&z.correctness!==E.correctness):!0).map(z=>z.placeholderId)}setPromptValue(E,z,it){if(z!==void 0){const st=this.getPrompt(E);if(!st){console.error(`MathLive 0.98.5: unknown prompt ${E}`);return}const ct=this.model.getBranchRange(this.model.offsetOf(st),"body");this.model.setSelection(ct),this.insert(z,Nt(jt({},it),{insertionMode:"replaceSelection"}))}it!=null&&it.silenceNotifications&&(this.valueOnFocus=this.getValue()),nl(this)}setPromptState(E,z,it){const st=this.getPrompt(E);if(!st){console.error(`MathLive 0.98.5: unknown prompt ${E}`);return}z==="undefined"?st.correctness=void 0:typeof z=="string"&&(st.correctness=z),typeof it=="boolean"&&(st.locked=it,st.captureSelection=it),nl(this)}getPromptState(E){const z=this.getPrompt(E);return z?[z.correctness,z.locked]:(console.error(`MathLive 0.98.5: unknown prompt ${E}`),[void 0,!0])}getPromptRange(E){const z=this.getPrompt(E);return z?this.model.getBranchRange(this.model.offsetOf(z),"body"):(console.error(`MathLive 0.98.5: unknown prompt ${E}`),[0,0])}canUndo(){return this.undoManager.canUndo()}canRedo(){return this.undoManager.canRedo()}popUndoStack(){this.undoManager.pop()}snapshot(E){var z;this.undoManager.snapshot(E)&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(vu(this)),(z=this.host)==null||z.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"snapshot"}})))}stopCoalescingUndo(){this.undoManager.stopCoalescing(this.model.selection)}stopRecording(){this.undoManager.stopRecording()}startRecording(){this.undoManager.startRecording()}undo(){var E;this.undoManager.undo()&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(vu(this)),(E=this.host)==null||E.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}redo(){var E;this.undoManager.redo()&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(vu(this)),(E=this.host)==null||E.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}resetUndo(){var E;(E=this.undoManager)==null||E.reset()}onSelectionDidChange(){var E,z;const it=this.model;this.keyboardDelegate.setValue(it.getValue(this.model.selection,"latex-expanded"));{const st=it.at(it.position),ct=(E=st.mode)!=null?E:Pr(this.options);this.model.mode!==ct&&(this.model.mode==="latex"?(np(this,"accept",{mode:ct}),it.position=it.offsetOf(st)):this.switchMode(ct))}(z=this.host)==null||z.dispatchEvent(new Event("selection-change",{bubbles:!0,composed:!0})),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(vu(this)),vc(this)}onContentWillChange(E){var z,it,st;return(st=(it=this.host)==null?void 0:it.dispatchEvent(new InputEvent("beforeinput",Nt(jt({},E),{data:E.data?E.data:(z=E.inputType)!=null?z:"",cancelable:!0,bubbles:!0,composed:!0}))))!=null?st:!0}onFocus(){this.focusBlurInProgress||!this.blurred||(this.focusBlurInProgress=!0,this.blurred=!1,this.keyboardDelegate.focus(),this.stopCoalescingUndo(),rp(this,{interactive:!0}),this.valueOnFocus=this.model.getValue(),this.hasEditablePrompts&&!this.model.at(this.model.anchor).parentPrompt&&this.executeCommand("moveToNextPlaceholder"),this.focusBlurInProgress=!1)}onBlur(){var E,z,it;if(this.focusBlurInProgress||this.blurred)return;this.focusBlurInProgress=!0,this.stopCoalescingUndo(),this.blurred=!0,this.ariaLiveText.textContent="",su(this),this.model.getValue()!==this.valueOnFocus&&((E=this.host)==null||E.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),this.disconnectFromVirtualKeyboard(),(z=this.host)==null||z.dispatchEvent(new Event("blur",{bubbles:!1,composed:!0})),(it=this.host)==null||it.dispatchEvent(new UIEvent("focusout",{bubbles:!0,composed:!0})),nl(this),this.focusBlurInProgress=!1,Bc();const st=new AbortController,ct=st.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{Ua(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:ct})},{once:!0,signal:ct}),setTimeout(()=>st.abort(),100)}onInput(E){Gv(this,E)}onKeystroke(E){return p0(this,E)}onCompositionStart(E){this.model.deleteAtoms(Va(this.model.selection));const z=Zc(this.field);z&&requestAnimationFrame(()=>{rp(this),this.keyboardDelegate.moveTo(z.x,z.y-z.height)})}onCompositionUpdate(E){Hb(this.model,E),nl(this)}onCompositionEnd(E){_v(this.model),Gv(this,E,{simulateKeystroke:!0})}onCut(E){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),ts.onCopy(this,E),xu(this.model,Va(this.model.selection),"deleteByCut"),this.snapshot("cut"),nl(this))}onCopy(E){ts.onCopy(this,E)}onPaste(E){let z=this.isSelectionEditable;return z&&(z=ts.onPaste(this.model.at(this.model.position).mode,this,E.clipboardData)),z||this.model.announce("plonk"),E.preventDefault(),E.stopPropagation(),z}onGeometryChange(){this._menu.hide(),vg(this),vc(this)}onWheel(E){const z=5*E.deltaX;if(!Number.isFinite(z)||z===0)return;const it=this.field;z<0&&it.scrollLeft===0||z>0&&it.offsetWidth+it.scrollLeft>=it.scrollWidth||(it.scrollBy({top:0,left:z}),E.preventDefault(),E.stopPropagation())}getHTMLElement(E){let z=E;for(;!z.id&&z.hasChildren;)z=E.children[0];return this.field.querySelector(`[data-atom-id="${z.id}"]`)}get context(){var E,z;return{registers:(E=this.options.registers)!=null?E:{},smartFence:this.smartFence,letterShapeStyle:this.letterShapeStyle,minFontScale:this.minFontScale,placeholderSymbol:(z=this.options.placeholderSymbol)!=null?z:"\u25A2",colorMap:it=>this.colorMap(it),backgroundColorMap:it=>this.backgroundColorMap(it),getMacro:it=>Ci(it,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function Cf(E){if(E&&(E.classList.remove("ML__highlight"),E.children))for(const z of E.children)Cf(z)}function xp(E,z){var it;E&&(!z||((it=E.dataset)==null?void 0:it.atomId)===z?(E.classList.add("ML__highlight"),E.children&&E.children.length>0&&[...E.children].forEach(st=>{st instanceof HTMLElement&&xp(st)})):(E.classList.remove("ML__highlight"),E.children&&E.children.length>0&&[...E.children].forEach(st=>{st instanceof HTMLElement&&xp(st,z)})))}function my(E,z){var it;if(!we())return;if(window.MathfieldElement.speechEngine!=="amazon"){console.error("MathLive 0.98.5: Use Amazon TTS Engine for synchronized highlighting"),typeof window.MathfieldElement.speakHook=="function"&&window.MathfieldElement.speakHook(z);return}if(!window.AWS){console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");return}const st=new window.AWS.Polly({apiVersion:"2016-06-10"}),ct={OutputFormat:"json",VoiceId:(it=window.MathfieldElement.speechEngineVoice)!=null?it:"Joanna",Engine:"standard",Text:z,TextType:"ssml",SpeechMarkTypes:["ssml"]};rd().readAloudElement=E,st.synthesizeSpeech(ct,(vt,xt)=>{if(vt){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${vt}`);return}if(!(xt!=null&&xt.AudioStream)){console.log("polly.synthesizeSpeech():",xt);return}const Ot=new TextDecoder("utf-8").decode(new Uint8Array(xt.AudioStream));rd().readAloudMarks=Ot.split(`
|
|
|
`).map(Kt=>Kt?JSON.parse(Kt):{}),rd().readAloudTokens=[];for(const Kt of rd().readAloudMarks)Kt.value&&rd().readAloudTokens.push(Kt.value);rd().readAloudCurrentMark="",ct.OutputFormat="mp3",ct.SpeechMarkTypes=[],st.synthesizeSpeech(ct,(Kt,Zt)=>{if(Kt){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${z}") error:${Kt}`);return}if(!(Zt!=null&&Zt.AudioStream))return;const re=new Uint8Array(Zt.AudioStream),Be=new Blob([re.buffer],{type:"audio/mpeg"}),ln=URL.createObjectURL(Be),Fn=rd();Fn.readAloudAudio?Fn.readAloudAudio.pause():(Fn.readAloudAudio=new Audio,Fn.readAloudAudio.addEventListener("ended",()=>{const ei=Fn.readAloudMathfield;Fn.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),ei?(rp(ei),Fn.readAloudElement=null,Fn.readAloudMathfield=null,Fn.readAloudTokens=[],Fn.readAloudMarks=[],Fn.readAloudCurrentMark=""):Cf(Fn.readAloudElement)}),Fn.readAloudAudio.addEventListener("timeupdate",()=>{let ei="";const hr=Fn.readAloudAudio.currentTime*1e3+100;for(const Gr of Fn.readAloudMarks)Gr.time<hr&&(ei=Gr.value);Fn.readAloudCurrentMark!==ei&&(Fn.readAloudCurrentToken=ei,ei&&ei===Fn.readAloudFinalToken?Fn.readAloudAudio.pause():(Fn.readAloudCurrentMark=ei,xp(Fn.readAloudElement,Fn.readAloudCurrentMark)))})),Fn.readAloudAudio.src=ln,Fn.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Fn.readAloudAudio.play()})})}we()||console.error('MathLive 0.98.5: this version of the MathLive library is for use in the browser. A subset of the API is available on the server side in the "mathlive-ssr" library. If using server side rendering (with React for example) you may want to do a dynamic import of the MathLive library inside a `useEffect()` call.');var Js=new WeakMap,gy=.5,nd={letterShapeStyle:"mf.letterShapeStyle = ...",horizontalSpacingScale:'Removed. Use `"thinmuskip"`, `"medmuskip"`, and `"thickmuskip"` registers ',macros:"mf.macros = ...",registers:"mf.registers = ...",backgroundColorMap:"mf.backgroundColorMap = ...",colorMap:"mf.colorMap = ...",enablePopover:"mf.popoverPolicy = ...",mathModeSpace:"mf.mathModeSpace = ...",placeholderSymbol:"mf.placeholderSymbol = ...",readOnly:"mf.readOnly = ...",removeExtraneousParentheses:"mf.removeExtraneousParentheses = ...",scriptDepth:"mf.scriptDepth = ...",smartFence:"mf.smartFence = ...",smartMode:"mf.smartMode = ...",smartSuperscript:"mf.smartSuperscript = ...",inlineShortcutTimeout:"mf.inlineShortcutTimeout = ...",inlineShortcuts:"mf.inlineShortcuts = ...",keybindings:"mf.keybindings = ...",virtualKeyboardMode:"mf.mathVirtualKeyboardPolicy = ...",customVirtualKeyboardLayers:"mathVirtualKeyboard.layers = ...",customVirtualKeyboards:"mathVirtualKeyboard.layouts = ...",keypressSound:"mathVirtualKeyboard.keypressSound = ...",keypressVibration:"mathVirtualKeyboard.keypressVibration = ...",plonkSound:"mathVirtualKeyboard.plonkSound = ...",virtualKeyboardContainer:"mathVirtualKeyboard.container = ...",virtualKeyboardLayout:"mathVirtualKeyboard.alphabeticLayout = ...",virtualKeyboardTheme:"No longer supported",virtualKeyboardToggleGlyph:"No longer supported",virtualKeyboardToolbar:"mathVirtualKeyboard.editToolbar = ...",virtualKeyboards:"Use `mathVirtualKeyboard.layouts`",speechEngine:"`MathfieldElement.speechEngine`",speechEngineRate:"`MathfieldElement.speechEngineRate`",speechEngineVoice:"`MathfieldElement.speechEngineVoice`",textToSpeechMarkup:"`MathfieldElement.textToSpeechMarkup`",textToSpeechRules:"`MathfieldElement.textToSpeechRules`",textToSpeechRulesOptions:"`MathfieldElement.textToSpeechRulesOptions`",readAloudHook:"`MathfieldElement.readAloudHook`",speakHook:"`MathfieldElement.speakHook`",computeEngine:"`MathfieldElement.computeEngine`",fontsDirectory:"`MathfieldElement.fontsDirectory`",soundsDirectory:"`MathfieldElement.soundsDirectory`",createHTML:"`MathfieldElement.createHTML`",onExport:"`MathfieldElement.onExport`",onInlineShortcut:"`MathfieldElement.onInlineShortcut`",onScrollIntoView:"`MathfieldElement.onScrollIntoView`",locale:"MathfieldElement.locale = ...",strings:"MathfieldElement.strings = ...",decimalSeparator:"MathfieldElement.decimalSeparator = ...",fractionNavigationOrder:"MathfieldElement.fractionNavigationOrder = ..."},Sl=class uv extends HTMLElement{static get formAssociated(){return id()}static get optionsAttributes(){return{"default-mode":"string","letter-shape-style":"string","min-font-scale":"number","popover-policy":"string","math-mode-space":"string","read-only":"boolean","remove-extraneous-parentheses":"on/off","smart-fence":"on/off","smart-mode":"on/off","smart-superscript":"on/off","inline-shortcut-timeout":"string","script-depth":"string",placeholder:"string","virtual-keyboard-target-origin":"string","math-virtual-keyboard-policy":"string"}}static get observedAttributes(){return[...Object.keys(this.optionsAttributes),"contenteditable","disabled","readonly","read-only"]}static get fontsDirectory(){return this._fontsDirectory}static set fontsDirectory(z){z!==this._fontsDirectory&&(this._fontsDirectory=z,om())}get fontsDirectory(){throw new Error("Use MathfieldElement.fontsDirectory instead")}set fontsDirectory(z){throw new Error("Use MathfieldElement.fontsDirectory instead")}static get soundsDirectory(){return this._soundsDirectory}static set soundsDirectory(z){this._soundsDirectory=z,this.audioBuffers={}}get soundsDirectory(){throw new Error("Use MathfieldElement.soundsDirectory instead")}set soundsDirectory(z){throw new Error("Use MathfieldElement.soundsDirectory instead")}static get keypressSound(){return this._keypressSound}static set keypressSound(z){var it,st,ct;this.audioBuffers={},z===null?this._keypressSound={spacebar:null,return:null,delete:null,default:null}:typeof z=="string"?this._keypressSound={spacebar:z,return:z,delete:z,default:z}:typeof z=="object"&&"default"in z&&(this._keypressSound={spacebar:(it=z.spacebar)!=null?it:z.default,return:(st=z.return)!=null?st:z.default,delete:(ct=z.delete)!=null?ct:z.default,default:z.default})}static get plonkSound(){return this._plonkSound}static set plonkSound(z){this.audioBuffers={},this._plonkSound=z}static get audioContext(){return this._audioContext||(this._audioContext=new AudioContext),this._audioContext}static get speechEngine(){return this._speechEngine}static set speechEngine(z){this._speechEngine=z}static get speechEngineRate(){return this._speechEngineRate}static set speechEngineRate(z){this._speechEngineRate=z}static get speechEngineVoice(){return this._speechEngineVoice}static set speechEngineVoice(z){this._speechEngineVoice=z}static get textToSpeechMarkup(){return this._textToSpeechMarkup}static set textToSpeechMarkup(z){this._textToSpeechMarkup=z}static get textToSpeechRules(){return this._textToSpeechRules}static set textToSpeechRules(z){this._textToSpeechRules=z}static get textToSpeechRulesOptions(){return this._textToSpeechRulesOptions}static set textToSpeechRulesOptions(z){this._textToSpeechRulesOptions=z}static get locale(){return pe.locale}static set locale(z){z==="auto"&&(z=navigator.language.slice(0,5)),pe.locale=z}get locale(){throw new Error("Use MathfieldElement.locale instead")}set locale(z){throw new Error("Use MathfieldElement.locale instead")}static get strings(){return pe.strings}static set strings(z){pe.merge(z)}get strings(){throw new Error("Use MathfieldElement.strings instead")}set strings(z){throw new Error("Use MathfieldElement.strings instead")}static get decimalSeparator(){return this._decimalSeparator}static set decimalSeparator(z){this._decimalSeparator=z,this._computeEngine&&(this._computeEngine.latexOptions.decimalMarker=this.decimalSeparator===","?"{,}":".")}get decimalSeparator(){throw new Error("Use MathfieldElement.decimalSeparator instead")}set decimalSeparator(z){throw new Error("Use MathfieldElement.decimalSeparator instead")}static get computeEngine(){var z,it;if(this._computeEngine===void 0){const st=(z=window[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:z.ComputeEngine;if(!st)return null;this._computeEngine=new st,this._computeEngine&&this.decimalSeparator===","&&(this._computeEngine.latexOptions.decimalMarker="{,}")}return(it=this._computeEngine)!=null?it:null}static set computeEngine(z){this._computeEngine=z}get computeEngine(){throw new Error("Use MathfieldElement.computeEngine instead")}set computeEngine(z){throw new Error("Use MathfieldElement.computeEngine instead")}static get isFunction(){return typeof this._isFunction!="function"?()=>!1:this._isFunction}static set isFunction(z){this._isFunction=z}static loadSound(z){return _m(this,null,function*(){delete this.audioBuffers[z];let it="";switch(z){case"keypress":it=this._keypressSound.default;break;case"return":it=this._keypressSound.return;break;case"spacebar":it=this._keypressSound.spacebar;break;case"delete":it=this._keypressSound.delete;break;case"plonk":it=this.plonkSound;break}if(typeof it!="string")return;it=it.trim();const st=this.soundsDirectory;if(!(st==null||st==="null"||it==="none"||it==="null"))try{const vt=yield(yield fetch(yield xg(`${st}/${it}`))).arrayBuffer(),xt=yield this.audioContext.decodeAudioData(vt);this.audioBuffers[z]=xt}catch(ct){}})}static playSound(z){return _m(this,null,function*(){if((this.audioContext.state==="suspended"||this.audioContext.state==="interrupted")&&(yield this.audioContext.resume()),this.audioBuffers[z]||(yield this.loadSound(z)),!this.audioBuffers[z])return;const it=this.audioContext.createBufferSource();it.buffer=this.audioBuffers[z];const st=this.audioContext.createGain();st.gain.value=gy,it.connect(st).connect(this.audioContext.destination),it.start()})}constructor(z){if(super(),z){const it=[];for(const st of Object.keys(z))if(nd[st])if(nd[st].startsWith("mf."))if(nd[st].startsWith(`mf.${st}`))it.push(`Option \`${st}\` cannot be used as a constructor option. Use ${nd[st]}`);else{const ct=nd[st].match(/([a-zA-Z]+) =/);it.push(`Option \`${st}\` has been renamed \`${ct[1]}\``)}else it.push(`Option \`${st}\` cannot be used as a constructor option. Use ${nd[st]}`);if(it.length>0){console.group("%cMathLive 0.98.5: %cInvalid Options","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn("Some of the options passed to `new MathfieldElement(...)` are invalid. \n See https://cortexjs.io/mathlive/changelog/ for details.");for(const st of it)console.warn(st);console.groupEnd()}}if(id()&&(this._internals=this.attachInternals(),this._internals.role="math",this._internals.ariaLabel="math input field",this._internals.ariaMultiLine="false"),this.attachShadow({mode:"open",delegatesFocus:!0}),this.shadowRoot&&"adoptedStyleSheets"in this.shadowRoot){this.shadowRoot.adoptedStyleSheets=[Gc("core"),Gc("mathfield"),Gc("mathfield-element"),Gc("ui"),Gc("menu")],this.shadowRoot.appendChild(document.createElement("span"));const it=document.createElement("slot");it.style.display="none",this.shadowRoot.appendChild(it)}else this.shadowRoot.innerHTML="<style>"+Md("core")+Md("mathfield")+Md("mathfield-element")+Md("ui")+Md("menu")+'</style><span></span><slot style="display:none"></slot>';z&&this._setOptions(z),this.shadowRoot.addEventListener("slotchange",()=>{var it;const st=this.shadowRoot.querySelector("slot:not([name])");this.value=(it=st==null?void 0:st.assignedNodes().map(ct=>ct.nodeType===3?ct.textContent:"").join("").trim())!=null?it:""})}showMenu(z){var it,st;return(st=(it=this._mathfield)==null?void 0:it.showMenu(z))!=null?st:!1}get mathVirtualKeyboard(){throw new Error("The `mathVirtualKeyboard` property is not available on the MathfieldElement. Use `window.mathVirtualKeyboard` instead.")}onPointerDown(){window.addEventListener("pointerup",z=>{var it;z.target===this&&!((it=this._mathfield)!=null&&it.disabled)&&this.dispatchEvent(new MouseEvent("click",{altKey:z.altKey,button:z.button,buttons:z.buttons,clientX:z.clientX,clientY:z.clientY,ctrlKey:z.ctrlKey,metaKey:z.metaKey,movementX:z.movementX,movementY:z.movementY,relatedTarget:z.relatedTarget,screenX:z.screenX,screenY:z.screenY,shiftKey:z.shiftKey}))},{once:!0})}getPromptValue(z,it){var st,ct;return(ct=(st=this._mathfield)==null?void 0:st.getPromptValue(z,it))!=null?ct:""}setPromptValue(z,it,st){var ct;(ct=this._mathfield)==null||ct.setPromptValue(z,it,st)}getPromptRange(z){var it,st;return(st=(it=this._mathfield)==null?void 0:it.getPromptRange(z))!=null?st:null}getPrompts(z){var it,st;return(st=(it=this._mathfield)==null?void 0:it.getPrompts(z))!=null?st:[]}get form(){var z;return(z=this._internals)==null?void 0:z.form}get name(){var z;return(z=this.getAttribute("name"))!=null?z:""}get type(){return this.localName}get mode(){var z,it;return(it=(z=this._mathfield)==null?void 0:z.model.mode)!=null?it:this.defaultMode==="text"?"text":"math"}set mode(z){var it;(it=this._mathfield)==null||it.switchMode(z)}get expression(){if(this._mathfield)return window[Symbol.for("io.cortexjs.compute-engine")]?this._mathfield.expression:(console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`),null)}set expression(z){var it,st;if(!this._mathfield)return;const ct=(st=(it=uv.computeEngine)==null?void 0:it.box(z).latex)!=null?st:null;ct!==null&&this._mathfield.setValue(ct),window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}get errors(){var z,it;return(it=(z=this._mathfield)==null?void 0:z.errors)!=null?it:[]}_getOptions(z){return this._mathfield?za(this._mathfield.options,z):Js.has(this)?jt({},za(jt(jt({},mm()),d0(Js.get(this).options)),z)):null}getOptions(z){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOptions()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._mathfield?za(this._mathfield.options,z):Js.has(this)?za(jt(jt({},mm()),d0(Js.get(this).options)),z):null}reflectAttributes(){const z=mm(),it=this._getOptions();Object.keys(uv.optionsAttributes).forEach(st=>{const ct=wc(st);uv.optionsAttributes[st]==="on/off"?z[ct]!==it[ct]?this.setAttribute(st,it[ct]?"on":"off"):this.removeAttribute(st):z[ct]!==it[ct]&&(uv.optionsAttributes[st]==="boolean"?it[ct]?this.setAttribute(st,""):this.removeAttribute(st):(typeof it[ct]=="string"||typeof it[ct]=="number")&&this.setAttribute(st,it[ct].toString()))})}getOption(z){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOption()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._getOptions([z])[z]}_getOption(z){return this._getOptions([z])[z]}_setOptions(z){if(this._mathfield)this._mathfield.setOptions(z);else if(Js.has(this)){const it=jt(jt({},Js.get(this).options),z);Js.set(this,Nt(jt({},Js.get(this)),{selection:{ranges:it.readOnly?[[0,0]]:[[0,-1]]},options:it}))}else Js.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:z,menuItems:void 0});this.reflectAttributes()}setOptions(z){console.group("%cMathLive 0.98.5: %cDeprecated Usage","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn(" `mf.setOptions()` is deprecated. Set the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.");for(const it of Object.keys(z))nd[it]&&console.warn(`\`mf.setOptions({${it}:...})\` -> ${nd[it]}`);console.groupEnd(),this._setOptions(z)}executeCommand(z){var it,st;return(st=(it=this._mathfield)==null?void 0:it.executeCommand(z))!=null?st:!1}getValue(z,it,st){var ct,vt;if(this._mathfield)return this._mathfield.model.getValue(z,it,st);if(Js.has(this)){let xt,Ot,Kt;if(Yp(z)?([xt,Ot]=z.ranges[0],Kt=it):rf(z)?([xt,Ot]=z,Kt=it):vh(z)&&vh(it)?(xt=z,Ot=it,Kt=st):(xt=0,Ot=-1,Kt=z),(Kt===void 0||Kt==="latex")&&xt===0&&Ot===-1)return(vt=(ct=Js.get(this).value)!=null?ct:this.textContent)!=null?vt:""}return""}setValue(z,it){if(this._mathfield&&z!==void 0){it!=null||(it={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(z,it);return}if(Js.has(this)){const ct=Js.get(this).options;Js.set(this,{value:z,selection:{ranges:[[-1,-1]],direction:"forward"},options:ct,menuItems:void 0});return}const st=Mf(this);Js.set(this,{value:z,selection:{ranges:[[-1,-1]],direction:"forward"},options:st,menuItems:void 0})}hasFocus(){var z,it;return(it=(z=this._mathfield)==null?void 0:z.hasFocus())!=null?it:!1}focus(){var z;(z=this._mathfield)==null||z.focus()}blur(){var z;(z=this._mathfield)==null||z.blur()}select(){var z;(z=this._mathfield)==null||z.select()}insert(z,it){var st,ct;return(ct=(st=this._mathfield)==null?void 0:st.insert(z,it))!=null?ct:!1}applyStyle(z,it){var st;return(st=this._mathfield)==null?void 0:st.applyStyle(z,it)}queryStyle(z){var it,st;return(st=(it=this._mathfield)==null?void 0:it.queryStyle(z))!=null?st:"none"}get caretPoint(){var z,it;return(it=(z=this._mathfield)==null?void 0:z.getCaretPoint())!=null?it:null}set caretPoint(z){var it;z&&((it=this._mathfield)==null||it.setCaretPoint(z.x,z.y))}setCaretPoint(z,it){var st,ct;return(ct=(st=this._mathfield)==null?void 0:st.setCaretPoint(z,it))!=null?ct:!1}offsetFromPoint(z,it,st){return this._mathfield?yf(this._mathfield,z,it,st):-1}hitboxFromOffset(z){if(!this._mathfield)return null;const it=this._mathfield.model.at(z);if(!it)return null;const st=af(this._mathfield,it);return st?new DOMRect(st.left,st.top,st.right-st.left,st.bottom-st.top):null}resetUndo(){var z;(z=this._mathfield)==null||z.resetUndo()}canUndo(){return this._mathfield?this._mathfield.canUndo():!1}canRedo(){return this._mathfield?this._mathfield.canRedo():!1}handleEvent(z){var it,st,ct,vt;qh.state==="closed"&&((st=(it=this._mathfield)==null?void 0:it.menu)==null?void 0:st.state)==="closed"&&(z.type==="pointerdown"&&this.onPointerDown(),z.type==="focus"&&((ct=this._mathfield)==null||ct.focus()),z.type==="blur"&&((vt=this._mathfield)==null||vt.blur()))}connectedCallback(){var z,it,st,ct;const vt=window.getComputedStyle(this),xt=this.shadowRoot,Ot=vt.userSelect!=="none";if(Ot)xt.host.addEventListener("pointerdown",this,!0);else{const re=xt.querySelector("span");re.style.pointerEvents="none"}xt.host.addEventListener("focus",this,!0),xt.host.addEventListener("blur",this,!0),id()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),Ot&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const Kt=xt.querySelector("slot:not([name])");if(Kt)try{this._style=Kt.assignedElements().filter(re=>re.tagName.toLowerCase()==="style").map(re=>re.textContent).join("")}catch(re){console.error(re)}if(this._style){const re=document.createElement("style");re.textContent=this._style,xt.appendChild(re)}let Zt="";if(this.hasAttribute("value")?Zt=this.getAttribute("value"):Zt=(z=Kt==null?void 0:Kt.assignedNodes().map(re=>re.nodeType===3?re.textContent:"").join("").trim())!=null?z:"",this._mathfield=new Sf(xt.querySelector(":host > span"),Nt(jt({},(st=(it=Js.get(this))==null?void 0:it.options)!=null?st:Mf(this)),{eventSink:this,value:Zt})),!Js.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const re of Object.keys(uv.optionsAttributes))this.upgradeProperty(wc(re))}if(!((ct=this._mathfield)!=null&&ct.model)){this._mathfield=null;return}if(Js.has(this)){const re=this._mathfield,Be=Js.get(this),ln=Be.menuItems;re.model.deferNotifications({content:!1,selection:!1},()=>{const Fn=Be.value;Fn!==void 0&&re.setValue(Fn),re.model.selection=Be.selection,Js.delete(this)}),ln&&(this.menuItems=ln)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),sm()}disconnectedCallback(){var z,it;if(this.shadowRoot.host.removeEventListener("pointerdown",this,!0),!this._mathfield)return;window.queueMicrotask(()=>this.dispatchEvent(new Event("unmount",{cancelable:!1,bubbles:!0,composed:!0})));const st=za(this._mathfield.options,Object.keys(uv.optionsAttributes).map(ct=>wc(ct)));Js.set(this,{value:this._mathfield.getValue(),selection:this._mathfield.model.selection,menuItems:(it=(z=this._mathfield.menu)==null?void 0:z.menuItems)!=null?it:void 0,options:st}),this._mathfield.dispose(),this._mathfield=null}upgradeProperty(z){if(this.hasOwnProperty(z)){const it=this[z];delete this[z],(z==="readonly"||z==="read-only")&&(z="readOnly"),this[z]=it}}attributeChangedCallback(z,it,st){if(it===st)return;const ct=st!==null;switch(z){case"contenteditable":nl(this._mathfield);break;case"disabled":this.disabled=ct;break;case"read-only":case"readonly":this.readOnly=ct;break;default:}}get readonly(){return this.hasAttribute("readonly")||this.hasAttribute("read-only")}set readonly(z){const it=!!z;it?(this.setAttribute("readonly",""),id()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(id()?this._internals.ariaReadOnly="false":this.removeAttribute("aria-readonly"),this.removeAttribute("readonly"),this.removeAttribute("read-only")),this._setOptions({readOnly:it})}get disabled(){return this.hasAttribute("disabled")}set disabled(z){var it;const st=!!z;st?this.setAttribute("disabled",""):this.removeAttribute("disabled"),id()?this._internals.ariaDisabled=st?"true":"false":this.setAttribute("aria-disabled",st?"true":"false"),st&&((it=this._mathfield)!=null&&it.hasFocus)&&window.mathVirtualKeyboard.visible&&this._mathfield.executeCommand("hideVirtualKeyboard")}get value(){return this.getValue()}set value(z){this.setValue(z)}get defaultMode(){return this._getOption("defaultMode")}set defaultMode(z){this._setOptions({defaultMode:z})}get macros(){return this._getOption("macros")}set macros(z){this._setOptions({macros:z})}get registers(){const z=this;return new Proxy({},{get:(it,st)=>{if(typeof st=="string")return z._getOption("registers")[st]},set(it,st,ct){return typeof st!="string"?!1:(z._setOptions({registers:Nt(jt({},z._getOption("registers")),{[st]:ct})}),!0)}})}set registers(z){this._setOptions({registers:z})}get colorMap(){return this._getOption("colorMap")}set colorMap(z){this._setOptions({colorMap:z})}get backgroundColorMap(){return this._getOption("backgroundColorMap")}set backgroundColorMap(z){this._setOptions({backgroundColorMap:z})}get letterShapeStyle(){return this._getOption("letterShapeStyle")}set letterShapeStyle(z){this._setOptions({letterShapeStyle:z})}get minFontScale(){return this._getOption("minFontScale")}set minFontScale(z){this._setOptions({minFontScale:z})}get smartMode(){return this._getOption("smartMode")}set smartMode(z){this._setOptions({smartMode:z})}get smartFence(){return this._getOption("smartFence")}set smartFence(z){this._setOptions({smartFence:z})}get smartSuperscript(){return this._getOption("smartSuperscript")}set smartSuperscript(z){this._setOptions({smartSuperscript:z})}get scriptDepth(){return this._getOption("scriptDepth")}set scriptDepth(z){this._setOptions({scriptDepth:z})}get removeExtraneousParentheses(){return this._getOption("removeExtraneousParentheses")}set removeExtraneousParentheses(z){this._setOptions({removeExtraneousParentheses:z})}get mathModeSpace(){return this._getOption("mathModeSpace")}set mathModeSpace(z){this._setOptions({mathModeSpace:z})}get placeholderSymbol(){return this._getOption("placeholderSymbol")}set placeholderSymbol(z){this._setOptions({placeholderSymbol:z})}get popoverPolicy(){return this._getOption("popoverPolicy")}set popoverPolicy(z){this._setOptions({popoverPolicy:z})}get environmentPopoverPolicy(){return this._getOption("environmentPopoverPolicy")}set environmentPopoverPolicy(z){this._setOptions({environmentPopoverPolicy:z})}get menuItems(){var z,it,st;return this._mathfield?(z=this._mathfield.menu._menuItems.map(ct=>ct.menuItem))!=null?z:[]:(st=(it=Js.get(this))==null?void 0:it.menuItems)!=null?st:[]}set menuItems(z){var it;if(this._mathfield){const st=(it=this._mathfield.element)==null?void 0:it.querySelector("[part=menu-toggle]");st&&(st.style.display=z.length===0?"none":""),this._mathfield.menu.menuItems=z}Js.has(this)?Js.set(this,Nt(jt({},Js.get(this)),{menuItems:z})):Js.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:Mf(this),menuItems:z})}get mathVirtualKeyboardPolicy(){return this._getOption("mathVirtualKeyboardPolicy")}set mathVirtualKeyboardPolicy(z){this._setOptions({mathVirtualKeyboardPolicy:z})}get inlineShortcuts(){return this._getOption("inlineShortcuts")}set inlineShortcuts(z){this._setOptions({inlineShortcuts:z})}get inlineShortcutTimeout(){return this._getOption("inlineShortcutTimeout")}set inlineShortcutTimeout(z){this._setOptions({inlineShortcutTimeout:z})}get keybindings(){return this._getOption("keybindings")}set keybindings(z){this._setOptions({keybindings:z})}get onInlineShortcut(){return this._getOption("onInlineShortcut")}set onInlineShortcut(z){this._setOptions({onInlineShortcut:z})}get onScrollIntoView(){return this._getOption("onScrollIntoView")}set onScrollIntoView(z){this._setOptions({onScrollIntoView:z})}get onExport(){return this._getOption("onExport")}set onExport(z){this._setOptions({onExport:z})}get readOnly(){return this._getOption("readOnly")}set readOnly(z){this._setOptions({readOnly:z})}get isSelectionEditable(){var z,it;return(it=(z=this._mathfield)==null?void 0:z.isSelectionEditable)!=null?it:!1}setPromptState(z,it,st){var ct;(ct=this._mathfield)==null||ct.setPromptState(z,it,st)}getPromptState(z){var it,st;return(st=(it=this._mathfield)==null?void 0:it.getPromptState(z))!=null?st:[void 0,!0]}get virtualKeyboardTargetOrigin(){return this._getOption("virtualKeyboardTargetOrigin")}set virtualKeyboardTargetOrigin(z){this._setOptions({virtualKeyboardTargetOrigin:z})}get selection(){return this._mathfield?this._mathfield.model.selection:Js.has(this)?Js.get(this).selection:{ranges:[[0,0]],direction:"forward"}}set selection(z){if(typeof z=="number"&&(z={ranges:[[z,z]]}),this._mathfield){this._mathfield.model.selection=z,nl(this._mathfield);return}if(Js.has(this)){Js.set(this,Nt(jt({},Js.get(this)),{selection:z}));return}Js.set(this,{value:void 0,selection:z,options:Mf(this),menuItems:void 0})}get selectionIsCollapsed(){const z=this.selection;return z.ranges.length===1&&z.ranges[0][0]===z.ranges[0][1]}get position(){return this._mathfield?this._mathfield.model.position:Js.has(this)?Js.get(this).selection.ranges[0][0]:0}set position(z){if(this._mathfield&&(this._mathfield.model.position=z,nl(this._mathfield)),Js.has(this)){Js.set(this,Nt(jt({},Js.get(this)),{selection:{ranges:[[z,z]]}}));return}Js.set(this,{value:void 0,selection:{ranges:[[z,z]]},options:Mf(this),menuItems:void 0})}getOffsetDepth(z){var it,st;return this._mathfield?((st=(it=this._mathfield.model.at(z))==null?void 0:it.treeDepth)!=null?st:2)-2:0}get lastOffset(){var z,it;return(it=(z=this._mathfield)==null?void 0:z.model.lastOffset)!=null?it:-1}};Sl.version="0.98.5",Sl._fontsDirectory="./fonts",Sl._soundsDirectory="./sounds",Sl.keypressVibration=!0,Sl._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},Sl._plonkSound="plonk.wav",Sl.audioBuffers={},Sl.createHTML=E=>E,Sl._speechEngineRate="100%",Sl._speechEngineVoice="Joanna",Sl._textToSpeechMarkup="",Sl._textToSpeechRules="mathlive",Sl._textToSpeechRulesOptions={},Sl.speakHook=kx,Sl.readAloudHook=my,Sl._decimalSeparator=".",Sl.fractionNavigationOrder="numerator-denominator",Sl._isFunction=E=>{var z,it;const st=window.MathfieldElement.computeEngine;return(it=(z=st==null?void 0:st.parse(E).domain)==null?void 0:z.isFunction)!=null?it:!1};var bp=Sl;function wc(E){return E.replace(/[^a-zA-Z\d]+(.)/g,(z,it)=>it.toUpperCase())}function Mf(E){const z={readOnly:!1},it=bp.optionsAttributes;return Object.keys(it).forEach(st=>{if(E.hasAttribute(st)){const ct=E.getAttribute(st);st==="placeholder"?z.contentPlaceholder=ct!=null?ct:"":it[st]==="boolean"?z[wc(st)]=!0:it[st]==="on/off"?ct==="on"?z[wc(st)]=!0:ct==="off"?z[wc(st)]=!1:z[wc(st)]=void 0:it[st]==="number"?z[wc(st)]=Number.parseFloat(ct!=null?ct:"0"):z[wc(st)]=ct}}),z}function id(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var Dm=bp,Bd,Yg,ul,L1;if(we()&&!((Bd=window.customElements)!=null&&Bd.get("math-field"))){(ul=window[Yg=Symbol.for("io.cortexjs.mathlive")])!=null||(window[Yg]={});const E=window[Symbol.for("io.cortexjs.mathlive")];E.version="0.98.5",window.MathfieldElement=bp,(L1=window.customElements)==null||L1.define("math-field",bp)}function Yb(E,z,it){let st=it,ct=0;const vt=E.length;for(;st<z.length;){const xt=z[st];if(ct<=0&&z.slice(st,st+vt)===E)return st;xt==="\\"?st++:xt==="{"?ct++:xt==="}"&&ct--,st++}return-1}function vy(E,z,it,st,ct="latex"){const vt=[];for(const xt of E)if(xt.type==="text"){const Ot=xt.data;let Kt=!0,Zt=0,re;re=Ot.indexOf(z),re!==-1&&(Zt=re,Zt>0&&vt.push({type:"text",data:Ot.slice(0,Zt)}),Kt=!1);let Be=!1;for(;!Be;){if(Kt){if(re=Ot.indexOf(z,Zt),re===-1){Be=!0;break}Zt!==re&&vt.push({type:"text",data:Ot.slice(Zt,re)}),Zt=re}else{if(re=Yb(it,Ot,Zt+z.length),re===-1){Be=!0;break}let ln=Ot.slice(Zt+z.length,re);ct==="ascii-math"&&([,ln]=of(ln,{format:"ascii-math"})),vt.push({type:"math",data:ln,rawData:Ot.slice(Zt,re+it.length),mathstyle:st}),Zt=re+it.length}Kt=!Kt}Zt<Ot.length&&vt.push({type:"text",data:Ot.slice(Zt)})}else vt.push(xt);return vt}function Nx(E,z,it){let st=[{type:"text",data:E}];return z!=null&&z.inline&&z.inline.forEach(([ct,vt])=>{st=vy(st,ct,vt,"textstyle")}),z!=null&&z.display&&z.display.forEach(([ct,vt])=>{st=vy(st,ct,vt,"displaystyle")}),it!=null&&it.inline&&it.inline.forEach(([ct,vt])=>{st=vy(st,ct,vt,"textstyle","ascii-math")}),it!=null&&it.display&&it.display.forEach(([ct,vt])=>{st=vy(st,ct,vt,"displaystyle","ascii-math")}),st}function Xb(E,z){const it=document.createElement("span");it.setAttribute("translate","no");try{const st="<math xmlns='http://www.w3.org/1998/Math/MathML'>"+z.renderToMathML(E)+"</math>";it.innerHTML=window.MathfieldElement.createHTML(st)}catch(st){console.error(`MathLive 0.98.5: Could not convert "${E}"' to MathML with ${st}`),it.textContent=E}return it.className="ML__sr-only",it}function Tx(E,z,it,st){try{const ct=z.renderToMarkup(E,{mathstyle:it,format:"html"}),vt=document.createElement("span");return vt.dataset.latex=E,vt.style.display=it==="displaystyle"?"flex":"inline-flex",vt.setAttribute("aria-hidden","true"),vt.setAttribute("translate","no"),vt.innerHTML=window.MathfieldElement.createHTML(ct),vt}catch(ct){if(console.error("Could not parse'"+E+"' with ",ct),st)return document.createTextNode(E)}return null}function M0(E,z,it,st){var ct;const vt=Tx(E,it,z||"textstyle",st),xt=(ct=it.renderAccessibleContent)!=null?ct:"";if(vt&&/\b(mathml|speakable-text)\b/i.test(xt)){const Ot=document.createElement("span");if(/\bmathml\b/i.test(xt)&&it.renderToMathML&&Ot.append(Xb(E,it)),/\bspeakable-text\b/i.test(xt)&&it.renderToSpeakableText){const Kt=document.createElement("span");Kt.setAttribute("translate","no");const Zt=it.renderToSpeakableText(E);Kt.innerHTML=window.MathfieldElement.createHTML(Zt),Kt.className="ML__sr-only",Ot.append(Kt)}return Ot.append(vt),Ot}return vt}function Dx(E,z){var it,st,ct;let vt=null;if((it=z.TeX)!=null&&it.processEnvironments&&/^\s*\\begin/.test(E)){vt=document.createDocumentFragment();const xt=M0(E,"",z,!0);xt&&vt.appendChild(xt)}else{if(!E.trim())return null;const xt=Nx(E,(st=z.TeX)==null?void 0:st.delimiters,(ct=z.asciiMath)==null?void 0:ct.delimiters);if(xt.length===1&&xt[0].type==="text")return null;vt=document.createDocumentFragment();for(const Ot of xt)if(Ot.type==="text")vt.appendChild(document.createTextNode(Ot.data));else{const Kt=M0(Ot.data,Ot.mathstyle==="textstyle"?"textstyle":"displaystyle",z,!0);Kt&&vt.appendChild(Kt)}}return vt}function Ox(E,z){var it,st,ct,vt,xt,Ot,Kt,Zt,re,Be,ln,Fn,ei,hr,Gr,$i;if(E.childNodes.length===1&&E.childNodes[0].nodeType===3){const Nr=(it=E.childNodes[0].textContent)!=null?it:"";if((st=z.TeX)!=null&&st.processEnvironments&&/^\s*\\begin/.test(Nr)){E.textContent="";const zr=M0(Nr,"",z,!0);zr&&E.append(zr);return}const eo=Nx(Nr,(ct=z.TeX)==null?void 0:ct.delimiters,(vt=z.asciiMath)==null?void 0:vt.delimiters);if(eo.length===1&&eo[0].type==="math"){E.textContent="";const zr=M0(eo[0].data,eo[0].mathstyle==="textstyle"?"textstyle":"displaystyle",z,!0);zr&&E.append(zr);return}if(eo.length===1&&eo[0].type==="text")return}for(let Nr=E.childNodes.length-1;Nr>=0;Nr--){const eo=E.childNodes[Nr];if(eo.nodeType===3){const zr=Dx((xt=eo.textContent)!=null?xt:"",z);zr&&(Nr+=zr.childNodes.length-1,eo.replaceWith(zr))}else if(eo.nodeType===1){const zr=eo,_o=eo.nodeName.toLowerCase();if(_o==="script"){const ns=eo;let Go;if((Ot=z.processScriptTypePattern)!=null&&Ot.test(ns.type))Go=(Kt=ns.textContent)!=null?Kt:"";else if((Zt=z.processMathJSONScriptTypePattern)!=null&&Zt.test(ns.type))try{Go=(Be=z.serializeToLatex)==null?void 0:Be.call(z,JSON.parse((re=ns.textContent)!=null?re:""))}catch(Gs){console.error(Gs)}if(Go){let Gs="textstyle";for(const uo of ns.type.split(";")){const[$c,qc]=uo.toLowerCase().split("=");$c.trim()==="mode"&&(Gs=qc.trim()==="display"?"displaystyle":"textstyle")}const La=M0(Go,Gs,z,!0);La&&ns.parentNode.replaceChild(La,ns)}}else if(((Fn=(ln=z.processClassPattern)==null?void 0:ln.test(zr.className))!=null?Fn:!1)||!((hr=(ei=z.skipTags)==null?void 0:ei.includes(_o))!=null&&hr||($i=(Gr=z.ignoreClassPattern)==null?void 0:Gr.test(zr.className))!=null&&$i))if(E.childNodes.length===1&&E.childNodes[0].nodeType===3){const Go=E.textContent;E.textContent="";const Gs=M0(Go!=null?Go:"","displaystyle",z,!0);Gs&&E.append(Gs)}else Ox(zr,z)}}}var Bx={skipTags:["math-field","noscript","style","textarea","pre","code","annotation","annotation-xml"],processScriptType:"math/tex",processMathJSONScriptType:"math/json",ignoreClass:"tex2jax_ignore",processClass:"tex2jax_process",renderAccessibleContent:"mathml",asciiMath:{delimiters:{inline:[["`","`"]]}},TeX:{processEnvironments:!0,delimiters:{inline:[["\\(","\\)"]],display:[["$$","$$"],["\\[","\\]"]]}}};function E0(E,z){var it,st,ct,vt;try{const xt=jt(jt({},Bx),z);xt.ignoreClassPattern=new RegExp((it=xt.ignoreClass)!=null?it:""),xt.processClassPattern=new RegExp((st=xt.processClass)!=null?st:""),xt.processScriptTypePattern=new RegExp((ct=xt.processScriptType)!=null?ct:""),xt.processMathJSONScriptTypePattern=new RegExp((vt=xt.processMathJSONScriptType)!=null?vt:""),sm(),dc("core"),Ox(E,xt)}catch(xt){xt instanceof Error?console.error("renderMathInElement(): "+xt.message):console.error("renderMathInElement(): Could not render math for element",E)}}function Xg(E,z){const it=sp.singleton;return it?(it.show(),cm(),it.currentLayer=z,it.render(),it.focus(),!0):!1}function Jg(){const E=window.mathVirtualKeyboard;return E.visible?E.hide({animate:!0}):E.show({animate:!0}),!1}hl({switchKeyboardLayer:Xg,toggleVirtualKeyboard:Jg,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function rd(){var E,z;return(z=globalThis[E=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[E]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function hs(){return console.warn("%cMathLive 0.98.5: %cmakeSharedVirtualKeyboard() is deprecated. \n Use `window.mathVirtualKeyboard` to access the virtual keyboard instance.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),window.mathVirtualKeyboard}function Ix(E){Yu(document.body,E)}function Gl(E){if(typeof E=="string"){const z=document.getElementById(E);if(z===null)throw new Error(`The element with ID "${E}" could not be found.`);return z}return typeof E=="string"?null:E}function Yu(E,z){var it,st,ct,vt;const xt=Gl(E);if(!xt)return;const Ot=z!=null?z:{};(it=Ot.renderToMarkup)!=null||(Ot.renderToMarkup=rl),(st=Ot.renderToMathML)!=null||(Ot.renderToMathML=jl),(ct=Ot.renderToSpeakableText)!=null||(Ot.renderToSpeakableText=S1),(vt=Ot.serializeToLatex)!=null||(Ot.serializeToLatex=Ub),E0(xt,Ot)}var Jb={mathlive:"0.98.5"}},17423:function(jn,tn,mt){"use strict";mt.d(tn,{Z:function(){return jt}});const ft=Nt=>typeof Nt=="object"&&Nt!=null&&Nt.nodeType===1,Ft=(Nt,Ut)=>(!Ut||Nt!=="hidden")&&Nt!=="visible"&&Nt!=="clip",$t=(Nt,Ut)=>{if(Nt.clientHeight<Nt.scrollHeight||Nt.clientWidth<Nt.scrollWidth){const De=getComputedStyle(Nt,null);return Ft(De.overflowY,Ut)||Ft(De.overflowX,Ut)||(Yt=>{const de=(we=>{if(!we.ownerDocument||!we.ownerDocument.defaultView)return null;try{return we.ownerDocument.defaultView.frameElement}catch(ue){return null}})(Yt);return!!de&&(de.clientHeight<Yt.scrollHeight||de.clientWidth<Yt.scrollWidth)})(Nt)}return!1},ne=(Nt,Ut,De,Yt,de,we,ue,he)=>we<Nt&&ue>Ut||we>Nt&&ue<Ut?0:we<=Nt&&he<=De||ue>=Ut&&he>=De?we-Nt-Yt:ue>Ut&&he<De||we<Nt&&he>De?ue-Ut+de:0,Dt=Nt=>{const Ut=Nt.parentElement;return Ut==null?Nt.getRootNode().host||null:Ut},Ht=(Nt,Ut)=>{var De,Yt,de,we;if(typeof document=="undefined")return[];const{scrollMode:ue,block:he,inline:It,boundary:ye,skipOverflowHiddenElements:Ze}=Ut,pe=typeof ye=="function"?ye:vn=>vn!==ye;if(!ft(Nt))throw new TypeError("Invalid target");const be=document.scrollingElement||document.documentElement,Rt=[];let zt=Nt;for(;ft(zt)&&pe(zt);){if(zt=Dt(zt),zt===be){Rt.push(zt);break}zt!=null&&zt===document.body&&$t(zt)&&!$t(document.documentElement)||zt!=null&&$t(zt,Ze)&&Rt.push(zt)}const Qt=(Yt=(De=window.visualViewport)==null?void 0:De.width)!=null?Yt:innerWidth,te=(we=(de=window.visualViewport)==null?void 0:de.height)!=null?we:innerHeight,{scrollX:Ie,scrollY:He}=window,{height:en,width:ie,top:an,right:nn,bottom:Vn,left:Ne}=Nt.getBoundingClientRect(),{top:Ye,right:zn,bottom:Gn,left:Me}=(vn=>{const ze=window.getComputedStyle(vn);return{top:parseFloat(ze.scrollMarginTop)||0,right:parseFloat(ze.scrollMarginRight)||0,bottom:parseFloat(ze.scrollMarginBottom)||0,left:parseFloat(ze.scrollMarginLeft)||0}})(Nt);let _t=he==="start"||he==="nearest"?an-Ye:he==="end"?Vn+Gn:an+en/2-Ye+Gn,rn=It==="center"?Ne+ie/2-Me+zn:It==="end"?nn+zn:Ne-Me;const ti=[];for(let vn=0;vn<Rt.length;vn++){const ze=Rt[vn],{height:on,width:On,top:Ni,right:gi,bottom:Dn,left:Jn}=ze.getBoundingClientRect();if(ue==="if-needed"&&an>=0&&Ne>=0&&Vn<=te&&nn<=Qt&&an>=Ni&&Vn<=Dn&&Ne>=Jn&&nn<=gi)return ti;const Ai=getComputedStyle(ze),hi=parseInt(Ai.borderLeftWidth,10),qt=parseInt(Ai.borderTopWidth,10),kt=parseInt(Ai.borderRightWidth,10),Ct=parseInt(Ai.borderBottomWidth,10);let Pt=0,At=0;const wt="offsetWidth"in ze?ze.offsetWidth-ze.clientWidth-hi-kt:0,Xt="offsetHeight"in ze?ze.offsetHeight-ze.clientHeight-qt-Ct:0,Re="offsetWidth"in ze?ze.offsetWidth===0?0:On/ze.offsetWidth:0,We="offsetHeight"in ze?ze.offsetHeight===0?0:on/ze.offsetHeight:0;if(be===ze)Pt=he==="start"?_t:he==="end"?_t-te:he==="nearest"?ne(He,He+te,te,qt,Ct,He+_t,He+_t+en,en):_t-te/2,At=It==="start"?rn:It==="center"?rn-Qt/2:It==="end"?rn-Qt:ne(Ie,Ie+Qt,Qt,hi,kt,Ie+rn,Ie+rn+ie,ie),Pt=Math.max(0,Pt+He),At=Math.max(0,At+Ie);else{Pt=he==="start"?_t-Ni-qt:he==="end"?_t-Dn+Ct+Xt:he==="nearest"?ne(Ni,Dn,on,qt,Ct+Xt,_t,_t+en,en):_t-(Ni+on/2)+Xt/2,At=It==="start"?rn-Jn-hi:It==="center"?rn-(Jn+On/2)+wt/2:It==="end"?rn-gi+kt+wt:ne(Jn,gi,On,hi,kt+wt,rn,rn+ie,ie);const{scrollLeft:In,scrollTop:Hn}=ze;Pt=We===0?0:Math.max(0,Math.min(Hn+Pt/We,ze.scrollHeight-on/We+Xt)),At=Re===0?0:Math.max(0,Math.min(In+At/Re,ze.scrollWidth-On/Re+wt)),_t+=Hn-Pt,rn+=In-At}ti.push({el:ze,top:Pt,left:At})}return ti},Wt=Nt=>Nt===!1?{block:"end",inline:"nearest"}:(Ut=>Ut===Object(Ut)&&Object.keys(Ut).length!==0)(Nt)?Nt:{block:"start",inline:"nearest"};function jt(Nt,Ut){if(!Nt.isConnected||!(de=>{let we=de;for(;we&&we.parentNode;){if(we.parentNode===document)return!0;we=we.parentNode instanceof ShadowRoot?we.parentNode.host:we.parentNode}return!1})(Nt))return;const De=(de=>{const we=window.getComputedStyle(de);return{top:parseFloat(we.scrollMarginTop)||0,right:parseFloat(we.scrollMarginRight)||0,bottom:parseFloat(we.scrollMarginBottom)||0,left:parseFloat(we.scrollMarginLeft)||0}})(Nt);if((de=>typeof de=="object"&&typeof de.behavior=="function")(Ut))return Ut.behavior(Ht(Nt,Ut));const Yt=typeof Ut=="boolean"||Ut==null?void 0:Ut.behavior;for(const{el:de,top:we,left:ue}of Ht(Nt,Wt(Ut))){const he=we-De.top+De.bottom,It=ue-De.left+De.right;de.scroll({top:he,left:It,behavior:Yt})}}}}]);
|
|
|
}()); |