|
|
(self.webpackChunk=self.webpackChunk||[]).push([[5382],{86504:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return be}});var tt=Ke(5891),Pt=Ke(59301),oe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Ue=oe,Fe=Ke(31533),me=function(Se,ke){return Pt.createElement(Fe.Z,(0,tt.Z)({},Se,{ref:ke,icon:Ue}))},ce=Pt.forwardRef(me),be=ce},14051:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return be}});var tt=Ke(5891),Pt=Ke(59301),oe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Ue=oe,Fe=Ke(31533),me=function(Se,ke){return Pt.createElement(Fe.Z,(0,tt.Z)({},Se,{ref:ke,icon:Ue}))},ce=Pt.forwardRef(me),be=ce},89699:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return be}});var tt=Ke(5891),Pt=Ke(59301),oe={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"},Ue=oe,Fe=Ke(31533),me=function(Se,ke){return Pt.createElement(Fe.Z,(0,tt.Z)({},Se,{ref:ke,icon:Ue}))},ce=Pt.forwardRef(me),be=ce},76466:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return be}});var tt=Ke(5891),Pt=Ke(59301),oe={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"},Ue=oe,Fe=Ke(31533),me=function(Se,ke){return Pt.createElement(Fe.Z,(0,tt.Z)({},Se,{ref:ke,icon:Ue}))},ce=Pt.forwardRef(me),be=ce},55143:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return be}});var tt=Ke(5891),Pt=Ke(59301),oe={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"},Ue=oe,Fe=Ke(31533),me=function(Se,ke){return Pt.createElement(Fe.Z,(0,tt.Z)({},Se,{ref:ke,icon:Ue}))},ce=Pt.forwardRef(me),be=ce},37364:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return be}});var tt=Ke(5891),Pt=Ke(59301),oe={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"},Ue=oe,Fe=Ke(31533),me=function(Se,ke){return Pt.createElement(Fe.Z,(0,tt.Z)({},Se,{ref:ke,icon:Ue}))},ce=Pt.forwardRef(me),be=ce},21646:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return be}});var tt=Ke(5891),Pt=Ke(59301),oe={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"},Ue=oe,Fe=Ke(31533),me=function(Se,ke){return Pt.createElement(Fe.Z,(0,tt.Z)({},Se,{ref:ke,icon:Ue}))},ce=Pt.forwardRef(me),be=ce},20970:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return be}});var tt=Ke(5891),Pt=Ke(59301),oe={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"},Ue=oe,Fe=Ke(31533),me=function(Se,ke){return Pt.createElement(Fe.Z,(0,tt.Z)({},Se,{ref:ke,icon:Ue}))},ce=Pt.forwardRef(me),be=ce},23001:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return be}});var tt=Ke(5891),Pt=Ke(59301),oe={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"},Ue=oe,Fe=Ke(31533),me=function(Se,ke){return Pt.createElement(Fe.Z,(0,tt.Z)({},Se,{ref:ke,icon:Ue}))},ce=Pt.forwardRef(me),be=ce},53570:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return be}});var tt=Ke(5891),Pt=Ke(59301),oe={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"},Ue=oe,Fe=Ke(31533),me=function(Se,ke){return Pt.createElement(Fe.Z,(0,tt.Z)({},Se,{ref:ke,icon:Ue}))},ce=Pt.forwardRef(me),be=ce},39338:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return be}});var tt=Ke(5891),Pt=Ke(59301),oe={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"},Ue=oe,Fe=Ke(31533),me=function(Se,ke){return Pt.createElement(Fe.Z,(0,tt.Z)({},Se,{ref:ke,icon:Ue}))},ce=Pt.forwardRef(me),be=ce},81132:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return be}});var tt=Ke(5891),Pt=Ke(59301),oe={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"},Ue=oe,Fe=Ke(31533),me=function(Se,ke){return Pt.createElement(Fe.Z,(0,tt.Z)({},Se,{ref:ke,icon:Ue}))},ce=Pt.forwardRef(me),be=ce},88627:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return be}});var tt=Ke(5891),Pt=Ke(59301),oe={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"},Ue=oe,Fe=Ke(31533),me=function(Se,ke){return Pt.createElement(Fe.Z,(0,tt.Z)({},Se,{ref:ke,icon:Ue}))},ce=Pt.forwardRef(me),be=ce},1040:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return be}});var tt=Ke(5891),Pt=Ke(59301),oe={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"},Ue=oe,Fe=Ke(31533),me=function(Se,ke){return Pt.createElement(Fe.Z,(0,tt.Z)({},Se,{ref:ke,icon:Ue}))},ce=Pt.forwardRef(me),be=ce},385:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return be}});var tt=Ke(5891),Pt=Ke(59301),oe={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"},Ue=oe,Fe=Ke(31533),me=function(Se,ke){return Pt.createElement(Fe.Z,(0,tt.Z)({},Se,{ref:ke,icon:Ue}))},ce=Pt.forwardRef(me),be=ce},38226:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return be}});var tt=Ke(5891),Pt=Ke(59301),oe={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"},Ue=oe,Fe=Ke(31533),me=function(Se,ke){return Pt.createElement(Fe.Z,(0,tt.Z)({},Se,{ref:ke,icon:Ue}))},ce=Pt.forwardRef(me),be=ce},56981:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return be}});var tt=Ke(5891),Pt=Ke(59301),oe={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"},Ue=oe,Fe=Ke(31533),me=function(Se,ke){return Pt.createElement(Fe.Z,(0,tt.Z)({},Se,{ref:ke,icon:Ue}))},ce=Pt.forwardRef(me),be=ce},79906:function(){"use strict"},44383:function(){"use strict"},93938:function(Gn,vn){"use strict";vn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},37404:function(){"use strict";function Gn(fe,z,ee,ae){ee===void 0&&(ee=0),ae===void 0&&(ae=1/0),this._name=fe,this._defaultValue=z,this._minimum=ee,this._maximum=ae}Object.defineProperty(Gn.prototype,"name",{get:function(){return this._name},set:function(fe){if(typeof fe!="string"||fe==="")throw new Error("Shape name must be a valid string.");this._name=fe}}),Object.defineProperty(Gn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(fe){if(typeof fe!="number"||isNaN(fe))throw new Error("The default value must be a real number, not: "+fe);this._defaultValue=fe}}),Object.defineProperty(Gn.prototype,"minimum",{get:function(){return this._minimum},set:function(fe){if(typeof fe!="number"||isNaN(fe))throw new Error("Minimum must be a real number, not: "+fe);this._minimum=fe}}),Object.defineProperty(Gn.prototype,"maximum",{get:function(){return this._maximum},set:function(fe){if(typeof fe!="number"||isNaN(fe))throw new Error("Maximum must be a real number, not: "+fe);this._maximum=fe}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(fe,z){var ee=go.Shape._FigureParameters[fe];return ee?ee[z]:null},go.Shape.setFigureParameter=function(fe,z,ee){if(!(ee instanceof Gn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+ee);if(ee.defaultValue<ee.minimum||ee.defaultValue>ee.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+ee.defaultValue);var ae=go.Shape._FigureParameters[fe];ae||(ae=[],go.Shape._FigureParameters[fe]=ae),ae[z]=ee};var vn=[];function Ke(fe,z){var ee=vn.pop();return ee===void 0?new go.Point(fe,z):(ee.x=fe,ee.y=z,ee)}function tt(){var fe=vn.pop();return fe===void 0?new go.Point:fe}function Pt(fe){vn.push(fe)}function oe(fe,z,ee,ae,re,le,ue,pe,Ce){Ce||(Ce=new go.Point);var Pe=fe-ee,Ie=re-ue,Oe=NaN,Ae=NaN;if(Pe===0)if(Ie===0)fe===ee&&(Oe=fe,Ae=z);else{var je=(le-pe)/Ie,Be=le-je*re;Oe=fe,Ae=je*Oe+Be}else if(Ie===0){var _e=(z-ae)/Pe,qe=z-_e*fe;Oe=re,Ae=_e*Oe+qe}else{var _e=(z-ae)/Pe,je=(le-pe)/Ie,qe=z-_e*fe,Be=le-je*re;Oe=(Be-qe)/(_e-je),Ae=_e*Oe+qe}return Ce.x=Oe,Ce.y=Ae,Ce}function Ue(fe,z,ee,ae,re,le,ue,pe,Ce,Pe,Ie,Oe,Ae,je){var Be=1-Ce,_e=Ce,qe=fe*Be+ee*_e,ze=z*Be+ae*_e,Ye=ee*Be+re*_e,et=ae*Be+le*_e,lt=re*Be+ue*_e,dt=le*Be+pe*_e,vt=qe*Be+Ye*_e,Je=ze*Be+et*_e,ot=Ye*Be+lt*_e,ft=et*Be+dt*_e,xt=vt*Be+ot*_e,yt=Je*Be+ft*_e;Pe.x=qe,Pe.y=ze,Ie.x=vt,Ie.y=Je,Oe.x=xt,Oe.y=yt,Ae.x=ot,Ae.y=ft,je.x=lt,je.y=dt}var Fe=new go.Spot(.156,.156),me=new go.Spot(.844,.844),ce=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Gn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=5),ae=Math.min(ae,z/3),ae=Math.min(ae,ee/3);var re=ae*ce,le=new go.Geometry().add(new go.PathFigure(ae,0,!0).add(new go.PathSegment(go.PathSegment.Line,z-ae,0)).add(new go.PathSegment(go.PathSegment.Bezier,z,ae,z-re,0,z,re)).add(new go.PathSegment(go.PathSegment.Line,z,ee-ae)).add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z,ee-re,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,ae,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ae,re,ee,0,ee-re)).add(new go.PathSegment(go.PathSegment.Line,0,ae)).add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,re,re,0).close()));return re>1&&(le.spot1=new go.Spot(0,0,re,re),le.spot2=new go.Spot(1,1,-re,-re)),le}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,ee).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,ee).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(fe,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=0,ae.startY=ee/2,ae.endX=z,ae.endY=ee/2,ae}),go.Shape.defineFigureGenerator("LineV",function(fe,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=z/2,ae.startY=0,ae.endX=z/2,ae.endY=ee,ae}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee/2,!1).add(new go.PathSegment(go.PathSegment.Line,z,ee/2)).add(new go.PathSegment(go.PathSegment.Move,z/2,0)).add(new go.PathSegment(go.PathSegment.Line,z/2,ee)))}),go.Shape.defineFigureGenerator("XLine",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)))}),go.Shape.defineFigureGenerator("LineRight",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.25*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*z,ee)))}),go.Shape.defineFigureGenerator("LineDown",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,.25*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,.75*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)))}),go.Shape.defineFigureGenerator("LineLeft",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.75*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*z,ee)))}),go.Shape.defineFigureGenerator("LineUp",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,.75*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(fe,z,ee){var ae=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ae*z,(1-ae)*ee,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Move,ae*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,(1-ae)*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee/2)).add(new go.PathSegment(go.PathSegment.Line,z,ee/2)).add(new go.PathSegment(go.PathSegment.Move,z/2,0)).add(new go.PathSegment(go.PathSegment.Line,z/2,ee)))}),go.Shape.defineFigureGenerator("CircleLine",function(fe,z,ee){var ae=z/2,re=new go.Geometry().add(new go.PathFigure(z,z/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ae,ae,ae,ae).close()));return re.spot1=Fe,re.spot2=me,re.defaultStretch=go.GraphObject.Uniform,re}),go.Shape.defineFigureGenerator("Line1",function(fe,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=0,ae.startY=0,ae.endX=z,ae.endY=ee,ae}),go.Shape.defineFigureGenerator("Line2",function(fe,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=z,ae.startY=0,ae.endX=0,ae.endY=ee,ae}),go.Shape.defineFigureGenerator("Curve1",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,z,ee,ce*z,0,z,(1-ce)*ee)))}),go.Shape.defineFigureGenerator("Curve2",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,z,ee,0,ce*ee,(1-ce)*z,ee)))}),go.Shape.defineFigureGenerator("Curve3",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,ce*ee,ce*z,ee)))}),go.Shape.defineFigureGenerator("Curve4",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,(1-ce)*z,0,0,(1-ce)*ee)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Gn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)?ae=.1:ae<-1?ae=-1:ae>1&&(ae=1);var re=Math.abs(ae)*z;if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())),re<z/2&&le.setSpots(re/z,0,(z-re)/z,1),le}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Gn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)?ae=10:ae<-z?ae=-z:ae>z&&(ae=z);var re=Math.abs(ae);if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())),re<z/2&&le.setSpots(re/z,0,(z-re)/z,1),le}}),go.Shape.setFigureParameter("Trapezoid1",0,new Gn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)?ae=.2:ae<.5?ae=-.5:ae>.5&&(ae=.5);var re=Math.abs(ae)*z;if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())),re<z/2&&le.setSpots(re/z,0,(z-re)/z,1),le}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Gn("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)?ae=20:ae<-z?ae=-z/2:ae>z&&(ae=z/2);var re=Math.abs(ae);if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())),re<z/2&&le.setSpots(re/z,0,(z-re)/z,1),le}}),go.Shape.setFigureParameter("ManualOperation",0,new Gn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)?ae=10:ae<-z?ae=-z/2:ae>z&&(ae=z/2);var re=Math.abs(ae);if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())):le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())),re<z/2&&le.setSpots(re/z,0,(z-re)/z,1),le}});var be=[];function Le(){var fe=be.pop();return fe===void 0?[]:fe}function Se(fe){fe.length=0,be.push(fe)}function ke(fe){for(var z=Le(),ee=.5,ae=.5,re=Math.PI*1.5,le=0,ue=0;ue<fe;ue++)le=2*Math.PI/fe*ue+re,z[ue]=new go.Point(ae+ee*Math.cos(le),ae+ee*Math.sin(le));return z.push(z[0]),z}function ve(fe){var z=xe(fe),ee=Le();ee[0]=z[0];for(var ae=1,re=1;ae<z.length;ae+=2,re+=3)ee[re]=z[ae],ee[re+1]=z[ae],ee[re+2]=z[ae+1];return Se(z),ee}function xe(fe){for(var z=ke(fe),ee=Le(),ae=Math.floor(z.length/2),re=z.length-1,le=fe%2===0?2:1,ue=0;ue<re;ue++){var pe=z[ue],Ce=z[ue+1],Pe=z[(ae+ue-1)%re],Ie=z[(ae+ue+le)%re];ee[ue*2]=pe,ee[ue*2+1]=oe(pe.x,pe.y,Pe.x,Pe.y,Ce.x,Ce.y,Ie.x,Ie.y,new go.Point)}return ee[ee.length]=ee[0],Se(z),ee}go.Shape.defineFigureGenerator("Pentagon",function(fe,z,ee){var ae=ke(5),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<5;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.2,.22),re.spot2=new go.Spot(.8,.9),re}),go.Shape.defineFigureGenerator("Hexagon",function(fe,z,ee){var ae=ke(6),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<6;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.07,.25),re.spot2=new go.Spot(.93,.75),re}),go.Shape.defineFigureGenerator("Heptagon",function(fe,z,ee){var ae=ke(7),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<7;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.2,.15),re.spot2=new go.Spot(.8,.85),re}),go.Shape.defineFigureGenerator("Octagon",function(fe,z,ee){var ae=ke(8),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<8;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.15,.15),re.spot2=new go.Spot(.85,.85),re}),go.Shape.defineFigureGenerator("Nonagon",function(fe,z,ee){var ae=ke(9),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<9;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.17,.13),re.spot2=new go.Spot(.82,.82),re}),go.Shape.defineFigureGenerator("Decagon",function(fe,z,ee){var ae=ke(10),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<10;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.16,.16),re.spot2=new go.Spot(.84,.84),re}),go.Shape.defineFigureGenerator("Dodecagon",function(fe,z,ee){var ae=ke(12),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<12;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.16,.16),re.spot2=new go.Spot(.84,.84),re}),go.Shape.defineFigureGenerator("FivePointedStar",function(fe,z,ee){var ae=xe(5),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<10;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.266,.333),re.spot2=new go.Spot(.733,.733),re}),go.Shape.defineFigureGenerator("SixPointedStar",function(fe,z,ee){var ae=xe(6),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<12;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.17,.25),re.spot2=new go.Spot(.83,.75),re}),go.Shape.defineFigureGenerator("SevenPointedStar",function(fe,z,ee){var ae=xe(7),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<14;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.222,.277),re.spot2=new go.Spot(.777,.666),re}),go.Shape.defineFigureGenerator("EightPointedStar",function(fe,z,ee){var ae=xe(8),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<16;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.25,.25),re.spot2=new go.Spot(.75,.75),re}),go.Shape.defineFigureGenerator("NinePointedStar",function(fe,z,ee){var ae=xe(9),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<18;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.222,.277),re.spot2=new go.Spot(.777,.666),re}),go.Shape.defineFigureGenerator("TenPointedStar",function(fe,z,ee){var ae=xe(10),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<20;ue++)le.add(new go.PathSegment(go.PathSegment.Line,ae[ue].x*z,ae[ue].y*ee));return le.add(new go.PathSegment(go.PathSegment.Line,ae[0].x*z,ae[0].y*ee).close()),Se(ae),re.spot1=new go.Spot(.281,.261),re.spot2=new go.Spot(.723,.748),re}),go.Shape.defineFigureGenerator("FivePointedBurst",function(fe,z,ee){var ae=ve(5),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),Se(ae),re.spot1=new go.Spot(.222,.277),re.spot2=new go.Spot(.777,.777),re}),go.Shape.defineFigureGenerator("SixPointedBurst",function(fe,z,ee){var ae=ve(6),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),Se(ae),re.spot1=new go.Spot(.17,.222),re.spot2=new go.Spot(.833,.777),re}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(fe,z,ee){var ae=ve(7),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),Se(ae),re.spot1=new go.Spot(.222,.222),re.spot2=new go.Spot(.777,.777),re}),go.Shape.defineFigureGenerator("EightPointedBurst",function(fe,z,ee){var ae=ve(8),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),Se(ae),re.spot1=new go.Spot(.222,.222),re.spot2=new go.Spot(.777,.777),re}),go.Shape.defineFigureGenerator("NinePointedBurst",function(fe,z,ee){var ae=ve(9),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),Se(ae),re.spot1=new go.Spot(.222,.222),re.spot2=new go.Spot(.777,.777),re}),go.Shape.defineFigureGenerator("TenPointedBurst",function(fe,z,ee){var ae=ve(10),re=new go.Geometry,le=new go.PathFigure(ae[0].x*z,ae[0].y*ee,!0);re.add(le);for(var ue=1;ue<ae.length;ue+=3)le.add(new go.PathSegment(go.PathSegment.Bezier,ae[ue+2].x*z,ae[ue+2].y*ee,ae[ue].x*z,ae[ue].y*ee,ae[ue+1].x*z,ae[ue+1].y*ee));return le.segments.last().close(),Se(ae),re.spot1=new go.Spot(.222,.222),re.spot2=new go.Spot(.777,.777),re}),go.Shape.setFigureParameter("FramedRectangle",0,new Gn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Gn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(fe,z,ee){var ae=fe?fe.parameter1:NaN,re=fe?fe.parameter2:NaN;isNaN(ae)&&(ae=8),isNaN(re)&&(re=8);var le=new go.Geometry,ue=new go.PathFigure(0,0,!0);return le.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae<z/2&&re<ee/2&&(ue.add(new go.PathSegment(go.PathSegment.Move,ae,re)),ue.add(new go.PathSegment(go.PathSegment.Line,ae,ee-re)),ue.add(new go.PathSegment(go.PathSegment.Line,z-ae,ee-re)),ue.add(new go.PathSegment(go.PathSegment.Line,z-ae,re).close())),le.setSpots(0,0,1,1,ae,re,-ae,-re),le}),go.Shape.setFigureParameter("Ring",0,new Gn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=8);var re=z/2,le=new go.Geometry,ue=new go.PathFigure(z,z/2,!0);le.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,0,360,re,re,re,re).close());var pe=Math.max(re-ae,0);return pe>0&&(ue.add(new go.PathSegment(go.PathSegment.Move,z/2+pe,z/2)),ue.add(new go.PathSegment(go.PathSegment.Arc,0,-360,re,re,pe,pe).close())),le.spot1=Fe,le.spot2=me,le.defaultStretch=go.GraphObject.Uniform,le}),go.Shape.defineFigureGenerator("Cloud",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.08034461*z,.1944299*ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*z,.05349299*ee,-.09239631*z,.07836421*ee,.1406031*z,-.0542823*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*z,.074219*ee,.2450511*z,-.00697547*ee,.3776197*z,-.01112067*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*z,.07004196*ee,.4539471*z,0,.6066018*z,-.02526587*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*z,.08370865*ee,.6914277*z,-.01904177*ee,.8921095*z,-.01220843*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*z,.3194596*ee,1.036446*z,.04105738*ee,1.020377*z,.3022052*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*z,.562044*ee,1.04448*z,.360238*ee,.992256*z,.5219009*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*z,.8217117*ee,1.032337*z,.5771781*ee,1.018411*z,.8120651*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*z,.9156953*ee,1.028411*z,.9571472*ee,.8556702*z,1.052487*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*z,.9310455*ee,.7431877*z,1.009325*ee,.5624123*z,1.021761*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*z,.9344623*ee,.4820677*z,1.031761*ee,.3030112*z,1.002796*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*z,.870098*ee,.2329994*z,1.01518*ee,.03213784*z,1.01518*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*z,.6545475*ee,-.02812061*z,.9032597*ee,-.01205169*z,.6835638*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*z,.4265613*ee,-.01812061*z,.6089503*ee,-.00606892*z,.4555777*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*z,.1944299*ee,-.01606892*z,.3892545*ee,-.01205169*z,.1944299*ee))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(fe,z,ee){var ae=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ae*z,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,z,(1-ae)*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ee)).add(new go.PathSegment(go.PathSegment.Line,ae*z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ae)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ae*ee).close())).setSpots(ae/2,ae/2,1-ae/2,1-ae/2)}),go.Shape.setFigureParameter("Pie",0,new Gn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Gn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(fe,z,ee){var ae=fe?fe.parameter1:NaN,re=fe?fe.parameter2:NaN;isNaN(ae)&&(ae=0),isNaN(re)&&(re=315);var le=ae%360;le<0&&(le+=360);var ue=re%360,pe=Math.min(z,ee)/2;return new go.Geometry().add(new go.PathFigure(pe,pe).add(new go.PathSegment(go.PathSegment.Arc,le,ue,pe,pe,pe,pe).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(fe,z,ee){var ae=ce/Math.SQRT2*.5,re=Math.SQRT2/2,le=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(z,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,re*z,le*ee,z,(1-ae)*ee,(re+ae)*z,(le+ae)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Gn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=30);var re=Math.min(ae,z)/2,le=z/2,ue=ee/2;return new go.Geometry().add(new go.PathFigure(le-re,0,!0).add(new go.PathSegment(go.PathSegment.Line,le+re,0)).add(new go.PathSegment(go.PathSegment.Line,le+re,ue-re)).add(new go.PathSegment(go.PathSegment.Line,z,ue-re)).add(new go.PathSegment(go.PathSegment.Line,z,ue+re)).add(new go.PathSegment(go.PathSegment.Line,le+re,ue+re)).add(new go.PathSegment(go.PathSegment.Line,le+re,ee)).add(new go.PathSegment(go.PathSegment.Line,le-re,ee)).add(new go.PathSegment(go.PathSegment.Line,le-re,ue+re)).add(new go.PathSegment(go.PathSegment.Line,0,ue+re)).add(new go.PathSegment(go.PathSegment.Line,0,ue-re)).add(new go.PathSegment(go.PathSegment.Line,le-re,ue-re).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Gn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=10);var re=Math.min(ae,z)/2,le=z/2,ue=ee/2;return new go.Geometry().add(new go.PathFigure(le-re,0,!0).add(new go.PathSegment(go.PathSegment.Line,le+re,0)).add(new go.PathSegment(go.PathSegment.Line,le+re,ue-re)).add(new go.PathSegment(go.PathSegment.Line,z,ue-re)).add(new go.PathSegment(go.PathSegment.Line,z,ue+re)).add(new go.PathSegment(go.PathSegment.Line,le+re,ue+re)).add(new go.PathSegment(go.PathSegment.Line,le+re,ee)).add(new go.PathSegment(go.PathSegment.Line,le-re,ee)).add(new go.PathSegment(go.PathSegment.Line,le-re,ue+re)).add(new go.PathSegment(go.PathSegment.Line,0,ue+re)).add(new go.PathSegment(go.PathSegment.Line,0,ue-re)).add(new go.PathSegment(go.PathSegment.Line,le-re,ue-re).close()))}),go.Shape.setFigureParameter("ThickX",0,new Gn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;if((isNaN(ae)||ae<0)&&(ae=30),z===0||ee===0){var re=new go.Geometry(go.Geometry.Rectangle);return re.startX=0,re.startY=0,re.endX=z,re.endY=ee,re}else{var le=z/2,ue=ee/2,pe=Math.atan2(ee,z),Ce=ae-Math.min(Math.cos(pe)*ae/2,le),Pe=ae-Math.min(Math.sin(pe)*ae/2,ue),re=new go.Geometry,Ie=new go.PathFigure(Ce,0,!0);return re.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,le,.2*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,z-Ce,0)),Ie.add(new go.PathSegment(go.PathSegment.Line,z,Pe)),Ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,ue)),Ie.add(new go.PathSegment(go.PathSegment.Line,z,ee-Pe)),Ie.add(new go.PathSegment(go.PathSegment.Line,z-Ce,ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,le,.8*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,Ce,ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,ee-Pe)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,ue)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,Pe).close()),re}}),go.Shape.setFigureParameter("ThinX",0,new Gn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=10);var re=new go.Geometry,le=new go.PathFigure(.1*z,0,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee).close()),re}),go.Shape.setFigureParameter("SquareIBeam",0,new Gn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.2);var re=new go.Geometry,le=new go.PathFigure(0,0,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ae*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5+ae/2)*z,ae*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5+ae/2)*z,(1-ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,(1-ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,(1-ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5-ae/2)*z,(1-ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5-ae/2)*z,ae*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ae*ee).close()),re}),go.Shape.setFigureParameter("RoundedIBeam",0,new Gn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.5);var re=new go.Geometry,le=new go.PathFigure(0,0,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,ee,Math.abs(1-ae)*z,.25*ee,Math.abs(1-ae)*z,.75*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ae*z,.75*ee,ae*z,.25*ee).close()),re}),go.Shape.defineFigureGenerator("HalfEllipse",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,ce*z,0,z,(.5-ce/2)*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,(.5+ce/2)*ee,ce*z,ee).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,0,z,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*z,.75*ee,.5*z,.25*ee).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,.1*z,.8*ee,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*ee,0,0,.45*z,0)).add(new go.PathSegment(go.PathSegment.Bezier,z,.3*ee,.55*z,0,z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,.5*ee,.9*z,.8*ee).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*z,.01*ee)).add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,.6*z,.2*ee,z,.25*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.7*ee,z,.8*ee,.6*z,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.75*z,ee,.5*z,.75*ee,.55*z,.95*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*z,ee)).add(new go.PathSegment(go.PathSegment.Bezier,.45*z,.7*ee,.45*z,.95*ee,.5*z,.75*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.4*z,.8*ee,0,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.49*z,.01*ee,0,.25*ee,.4*z,.2*ee).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.4*z,.6*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.15*z,ee,.5*z,.75*ee,.45*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.85*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.6*z,.6*ee,.55*z,.95*ee,.5*z,.75*ee));var le=.2,ue=.3,pe=0,Ce=le*ce;return re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Ce+pe)*ee,(.5-Ce+ue)*z,(.5+le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ue)*z,(.5+pe)*ee,(.5+Ce+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Ce+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue)*z,(.5-Ce+pe)*ee,(.5+Ce+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.65*z,.36771243*ee,(.5-Ce+ue)*z,(.5-le+pe)*ee,(.5-le+ue+.05)*z,(.5-Ce+pe-.02)*ee)),le=.2,ue=0,pe=-.3,Ce=le*ce,re.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ue)*z,(.5+pe)*ee,(.5+Ce+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Ce+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue)*z,(.5-Ce+pe)*ee,(.5+Ce+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ue)*z,(.5+pe)*ee,(.5-Ce+ue)*z,(.5-le+pe)*ee,(.5-le+ue)*z,(.5-Ce+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Ce+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Ce+pe)*ee,(.5-Ce+ue)*z,(.5+le+pe)*ee)),le=.2,ue=-.3,pe=0,Ce=le*ce,re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue-.05)*z,(.5-Ce+pe-.02)*ee,(.5+Ce+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ue)*z,(.5+pe)*ee,(.5-Ce+ue)*z,(.5-le+pe)*ee,(.5-le+ue)*z,(.5-Ce+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Ce+pe)*ee,(.5-Ce+ue)*z,(.5+le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,.6*ee,(.5+Ce+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Ce+pe)*ee).close()),ae.setSpots(.06,.33,.93,.68),ae}),go.Shape.defineFigureGenerator("YinYang",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*.5,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,270,180,z*.5,z*.5,z*.5,z*.5)),re.add(new go.PathSegment(go.PathSegment.Arc,90,-180,z*.5,z*.75,z*.25,z*.25)),re.add(new go.PathSegment(go.PathSegment.Arc,90,180,z*.5,z*.25,z*.25,z*.25));var le=.1,ue=.5,pe=.25;return re.add(new go.PathSegment(go.PathSegment.Move,(ue+le)*z,pe*ee)),re.add(new go.PathSegment(go.PathSegment.Arc,0,-360,z*ue,ee*pe,le*z,le*z).close()),re=new go.PathFigure(z*.5,0,!1),ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,270,-180,z*.5,z*.5,z*.5,z*.5)),pe=.75,re=new go.PathFigure((ue+le)*z,pe*ee,!0),ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,0,360,z*ue,ee*pe,le*z,le*z).close()),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("Peace",function(fe,z,ee){var ae=.8535533905932737,re=.5*z,le=.5*ee;return new go.Geometry().add(new go.PathFigure(re,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,re,le,re,le)).add(new go.PathSegment(go.PathSegment.Line,re,ee)).add(new go.PathSegment(go.PathSegment.Move,re,le)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Move,re,le)).add(new go.PathSegment(go.PathSegment.Line,ae*z,ae*ee)))}),go.Shape.defineFigureGenerator("NotAllowed",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=.5,ue=.5,pe=.5,Ce=new go.PathFigure(ue*z,(pe-le)*ee);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),le=.4,re=ce*.4;var Pe=tt(),Ie=tt(),Oe=tt(),Ae=tt();Ue(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.42,Pe,Ie,Oe,Ae,Ae);var je=tt(),Be=tt(),_e=tt();Ue(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.58,Ae,Ae,_e,je,Be);var qe=tt(),ze=tt(),Ye=tt();Ue(ue,pe+le,ue-re,pe+le,ue-le,pe+re,ue-le,pe,.42,qe,ze,Ye,Ae,Ae);var et=tt(),lt=tt(),dt=tt();return Ue(ue,pe+le,ue-re,pe+le,ue-le,pe+re,ue-le,pe,.58,Ae,Ae,dt,et,lt),Ce.add(new go.PathSegment(go.PathSegment.Move,dt.x*z,dt.y*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,et.x*z,et.y*ee,lt.x*z,lt.y*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,Oe.x*z,Oe.y*ee,Pe.x*z,Pe.y*ee,Ie.x*z,Ie.y*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,dt.x*z,dt.y*ee).close()),Ce.add(new go.PathSegment(go.PathSegment.Move,Ye.x*z,Ye.y*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,_e.x*z,_e.y*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,je.x*z,je.y*ee,Be.x*z,Be.y*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,Ye.x*z,Ye.y*ee,qe.x*z,qe.y*ee,ze.x*z,ze.y*ee).close()),Pt(Pe),Pt(Ie),Pt(Oe),Pt(Ae),Pt(je),Pt(Be),Pt(_e),Pt(qe),Pt(ze),Pt(Ye),Pt(et),Pt(lt),Pt(dt),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("Fragile",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*z,0)).add(new go.PathSegment(go.PathSegment.Line,.2*z,.15*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.29*z,.33*ee)).add(new go.PathSegment(go.PathSegment.Line,.35*z,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.15*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.5*ee,z,.25*ee,.75*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.55*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.5*ee,0,.25*ee).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Gn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=30),ae>z&&(ae=z);var re=(z-ae)/2,le=re+ae;return new go.Geometry().add(new go.PathFigure(le,.5*ee).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,re,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,z,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,.55*ee).add(new go.PathSegment(go.PathSegment.Line,.6*z,0)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.55*ee).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(fe,z,ee){var ae=new go.Geometry,re=ce*.4,le=.4,ue=.5,pe=.5,Ce=tt(),Pe=tt(),Ie=tt(),Oe=tt(),Ae=new go.PathFigure((ue-le)*z,pe*ee,!1);ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Ue(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.44,Ie,Oe,Pe,Ce,Ce),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Pe.x*z,Pe.y*ee,Ie.x*z,Ie.y*ee,Oe.x*z,Oe.y*ee));var je=Ke(Pe.x,Pe.y);Ue(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.56,Ce,Ce,Pe,Ie,Oe);var Be=Ke(Pe.x,Pe.y);Ae.add(new go.PathSegment(go.PathSegment.Line,(je.x*.1+.95*.9)*z,je.y*.1*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.85*z,je.y*.1*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.85*z,0)),Ae.add(new go.PathSegment(go.PathSegment.Line,z,0)),Ae.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*z,.15*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*z,(Be.y*.1+.05*.9)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,Be.x*z,Be.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Ie.x*z,Ie.y*ee,Oe.x*z,Oe.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),le=.35,re=ce*.35;var _e=new go.PathFigure(ue*z,(pe-le)*ee,!1);ae.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee));var qe=new go.PathFigure((ue-le)*z,pe*ee,!1);return ae.add(qe),Pt(Ce),Pt(Pe),Pt(Ie),Pt(Oe),Pt(je),Pt(Be),ae.spot1=new go.Spot(.202,.257),ae.spot2=new go.Spot(.792,.739),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("GenderFemale",function(fe,z,ee){var ae=new go.Geometry,re=.375,le=0,ue=-.125,pe=re*ce,Ce=new go.PathFigure((.525+le)*z,(.5+re+ue)*ee,!1);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+re+le)*z,(.5+ue)*ee,(.5+pe+le)*z,(.5+re+ue)*ee,(.5+re+le)*z,(.5+pe+ue)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5-re+ue)*ee,(1-.5+re+le)*z,(.5-pe+ue)*ee,(.5+pe+le)*z,(.5-re+ue)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5-re+le)*z,(.5+ue)*ee,(.5-pe+le)*z,(.5-re+ue)*ee,(.5-re+le)*z,(.5-pe+ue)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.475+le)*z,(.5+re+ue)*ee,(.5-re+le)*z,(.5+pe+ue)*ee,(.5-pe+le)*z,(.5+re+ue)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.475*z,.85*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.425*z,.85*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.425*z,.9*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.475*z,.9*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.475*z,ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.525*z,ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.525*z,.9*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.575*z,.9*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.575*z,.85*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.525*z,.85*ee).close()),re=.325,le=0,ue=-.125,pe=re*ce;var Ce=new go.PathFigure((1-.5+re+le)*z,(.5+ue)*ee,!1);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5+re+ue)*ee,(.5+re+le)*z,(.5+pe+ue)*ee,(.5+pe+le)*z,(.5+re+ue)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5-re+le)*z,(.5+ue)*ee,(.5-pe+le)*z,(.5+re+ue)*ee,(.5-re+le)*z,(.5+pe+ue)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5-re+ue)*ee,(.5-re+le)*z,(.5-pe+ue)*ee,(.5-pe+le)*z,(.5-re+ue)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+re+le)*z,(.5+ue)*ee,(.5+pe+le)*z,(.5-re+ue)*ee,(1-.5+re+le)*z,(.5-pe+ue)*ee));var Ce=new go.PathFigure((.525+le)*z,(.5+re+ue)*ee,!1);return ae.add(Ce),ae.spot1=new go.Spot(.232,.136),ae.spot2=new go.Spot(.682,.611),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("LogicImplies",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;return isNaN(ae)&&(ae=.2),new go.Geometry().add(new go.PathFigure((1-ae)*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;return isNaN(ae)&&(ae=.2),new go.Geometry().add(new go.PathFigure((1-ae)*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,ae*z,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,ae*z,ee))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)))}),go.Shape.defineFigureGenerator("LogicAnd",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,z,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(fe,z,ee){var ae=new go.Geometry().add(new go.PathFigure(.5*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*z,.5*ee,.5*z,.5*ee)));return ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("LogicTruth",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,.5*z,0)).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Move,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)))}),go.Shape.defineFigureGenerator("LogicForAll",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,.25*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*ee))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee)).add(new go.PathSegment(go.PathSegment.Line,z,ee))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(fe,z,ee){var ae=.5;return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,0,ae*ee)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ae*z,ae*ee,ae*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,z,ee))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(fe,z,ee){var ae=.5;return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,ae*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ae*z,ae*ee,ae*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Gn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Gn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=fe?fe.parameter2:NaN;isNaN(re)&&(re=.3);var le=(1-ae)*z,ue=(.5-re/2)*ee,pe=(.5+re/2)*ee,Ce=new go.Geometry,Pe=new go.PathFigure(0,ue,!0);Ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,le,ue)),Pe.add(new go.PathSegment(go.PathSegment.Line,le,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,le,ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,le,pe)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,pe).close()),Ce.spot1=new go.Spot(0,ue/ee);var Ie=oe(0,pe/ee,1,pe/ee,le/z,1,1,.5,tt());return Ce.spot2=new go.Spot(Ie.x,Ie.y),Pt(Ie),Ce}),go.Shape.setFigureParameter("Arrow2",0,new Gn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Gn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=30),ae>z&&(ae=z);var re=fe?fe.parameter2:NaN;isNaN(re)&&(re=30),re=Math.min(re,ee/2);var le=z-ae,ue=(ee-re)/2,pe=ue+re,Ce=new go.Geometry,Pe=new go.PathFigure(0,ue,!0);Ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,le,ue)),Pe.add(new go.PathSegment(go.PathSegment.Line,le,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,le,ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,le,pe)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,pe).close()),Ce.spot1=new go.Spot(0,ue/ee);var Ie=oe(0,pe/ee,1,pe/ee,le/z,1,1,.5,tt());return Ce.spot2=new go.Spot(Ie.x,Ie.y),Pt(Ie),Ce}),go.Shape.defineFigureGenerator("Chevron",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee).close()),ae}),go.Shape.defineFigureGenerator("DoubleArrow",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,.214*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,1*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,.786*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,1*ee).close()),ae}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Gn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=(.5-ae/2)*ee,le=(.5+ae/2)*ee,ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close());var Ce=oe(0,.5,.3,0,0,re/ee,.1,re/ee,tt());return ue.spot1=new go.Spot(Ce.x,Ce.y),Ce=oe(.7,1,1,.5,0,le/ee,1,le/ee,Ce),ue.spot2=new go.Spot(Ce.x,Ce.y),Pt(Ce),ue}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Gn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Gn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=40);var re=fe?fe.parameter2:NaN;isNaN(re)&&(re=100);var le=(ee-ae)/2,ue=le+ae,pe=(ee-re)/2,Ce=pe+re;(ae>ee||re>ee)&&(re>ae?(ae=ae*ee/re,le=(ee-ae)/2,ue=le+ae,pe=0,Ce=ee):(le=0,ue=ee,pe=0,Ce=ee));var Pe=new go.Geometry,Ie=new go.PathFigure(z,.5*ee,!0);Pe.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,Ce)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,ue)),Ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,ue)),Ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,Ce)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,pe)),Ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,le)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,pe).close());var Oe=oe(0,.5,.3,pe/ee,0,le/ee,1,le/ee,tt());return Pe.spot1=new go.Spot(Oe.x,Oe.y),Oe=oe(.7,Ce/ee,1,.5,0,ue/ee,1,ue/ee,Oe),Pe.spot2=new go.Spot(Oe.x,Oe.y),Pt(Oe),Pe}),go.Shape.setFigureParameter("IBeamArrow",0,new Gn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=(.5-ae/2)*ee,le=(.5+ae/2)*ee,ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ue.spot1=new go.Spot(0,re/ee);var Ce=oe(.7,1,1,.5,0,le/ee,1,le/ee,tt());return ue.spot2=new go.Spot(Ce.x,Ce.y),Pt(Ce),ue}),go.Shape.setFigureParameter("IBeamArrow2",0,new Gn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Gn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=40);var re=fe?fe.parameter2:NaN;isNaN(re)&&(re=100);var le=(ee-ae)/2,ue=le+ae,pe=(ee-re)/2,Ce=pe+re;(ae>ee||re>ee)&&(re>ae?(ae=ae*ee/re,le=(ee-ae)/2,ue=le+ae,pe=0,Ce=ee):(le=0,ue=ee,pe=0,Ce=ee));var Pe=new go.Geometry,Ie=new go.PathFigure(z,.5*ee,!0);Pe.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,Ce)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,ue)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,ue)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,Ce)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,Ce)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,pe)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,pe)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,le)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,pe).close()),Pe.spot1=new go.Spot(0,le/ee);var Oe=oe(.7,Ce/ee,1,.5,0,ue/ee,1,ue/ee,tt());return Pe.spot2=new go.Spot(Oe.x,Oe.y),Pt(Oe),Pe}),go.Shape.setFigureParameter("Pointer",0,new Gn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.1);var re=new go.Geometry,le=new go.PathFigure(z,.5*ee,!0);re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,ae*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),re.spot1=new go.Spot(ae,.35);var ue=oe(.2,.65,1,.65,0,1,1,.5,tt());return re.spot2=new go.Spot(ue.x,ue.y),Pt(ue),re}),go.Shape.setFigureParameter("RoundedPointer",0,new Gn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=new go.Geometry,le=new go.PathFigure(z,.5*ee,!0);re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ae*z,.75*ee,ae*z,.25*ee).close()),re.spot1=new go.Spot(ae,.35);var ue=oe(0,.65,1,.65,0,1,1,.5,tt());return re.spot2=new go.Spot(ue.x,ue.y),Pt(ue),re}),go.Shape.setFigureParameter("SplitEndArrow",0,new Gn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.4);var re=(.5-ae/2)*ee,le=(.5+ae/2)*ee,ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,0,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ue.spot1=new go.Spot(.2,.3);var Ce=oe(.7,1,1,.5,0,le/ee,1,le/ee,tt());return ue.spot2=new go.Spot(Ce.x,Ce.y),Pt(Ce),ue}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Gn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=50);var re=(ee-ae)/2,le=re+ae;ae>ee&&(re=0,le=ee);var ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,0,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ue.spot1=new go.Spot(.2,re/ee);var Ce=oe(.7,1,1,.5,0,le/ee,1,le/ee,tt());return ue.spot2=new go.Spot(Ce.x,Ce.y),Pt(Ce),ue}),go.Shape.setFigureParameter("SquareArrow",0,new Gn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.7);var re=new go.Geometry,le=new go.PathFigure(z,.5*ee,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ae*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,ae*z,0).close()),re.spot1=go.Spot.TopLeft,re.spot2=new go.Spot(ae,1),re}),go.Shape.defineFigureGenerator("Cone1",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=ce*.1,ue=new go.PathFigure(0,.9*ee,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.9+le)*ee,(.5+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-re)*z,ee,0,(.9+le)*ee).close()),ae.spot1=new go.Spot(.25,.5),ae.spot2=new go.Spot(.75,.97),ae}),go.Shape.defineFigureGenerator("Cone2",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.9*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.9*ee,(1-.85/.9)*z,ee,.85/.9*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee).close());var le=new go.PathFigure(0,.9*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.9*ee,(1-.85/.9)*z,.8*ee,.85/.9*z,.8*ee)),ae.spot1=new go.Spot(.25,.5),ae.spot2=new go.Spot(.75,.82),ae}),go.Shape.defineFigureGenerator("Cube1",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var le=new go.PathFigure(.5*z,ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.5*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),ae.spot1=new go.Spot(0,.3),ae.spot2=new go.Spot(.5,.85),ae}),go.Shape.defineFigureGenerator("Cube2",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.3*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,0).close());var le=new go.PathFigure(0,.3*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.7*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Move,.7*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),ae.spot1=new go.Spot(0,.3),ae.spot2=new go.Spot(.7,1),ae}),go.Shape.defineFigureGenerator("Cylinder1",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,ee/3);var re=new go.Geometry,le=ce*.5,ue=new go.PathFigure(0,ae,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,ce*ae,(.5-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,1*z,ae,(.5+le)*z,0,1*z,ce*ae)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-ae)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,1*ee,1*z,ee-ce*ae,(.5+le)*z,1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ae,(.5-le)*z,1*ee,0,ee-ce*ae)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ae));var pe=new go.PathFigure(z,ae,!1);return re.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,2*ae,1*z,2*ae-ce*ae,(.5+le)*z,2*ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,ae,(.5-le)*z,2*ae,0,2*ae-ce*ae)),re.spot1=new go.Spot(0,0,0,2*ae),re.spot2=new go.Spot(1,1),re}),go.Shape.defineFigureGenerator("Cylinder2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,ee/3);var re=new go.Geometry,le=ce*.5,ue=new go.PathFigure(0,ee-ae,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ae)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,ce*ae,(.5-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,ae,(.5+le)*z,0,z,ce*ae)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-ae)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,ee-ce*ae,(.5+le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ae,(.5-le)*z,ee,0,ee-ce*ae));var pe=new go.PathFigure(0,ee-ae,!1);return re.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee-2*ae,0,ee-ae-ce*ae,(.5-le)*z,ee-2*ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z,ee-ae,(.5+le)*z,ee-2*ae,z,ee-ae-ce*ae)),re.spot1=new go.Spot(0,0),re.spot2=new go.Spot(1,1,0,-2*ae),re}),go.Shape.defineFigureGenerator("Cylinder3",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,z/3);var re=new go.Geometry,le=ce*.5,ue=new go.PathFigure(ae,0,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z-ae,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,z-ce*ae,0,z,(.5-le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z,(.5+le)*ee,z-ce*ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,ce*ae,ee,0,(.5+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,(.5-le)*ee,ce*ae,0));var pe=new go.PathFigure(ae,0,!1);return re.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,2*ae,.5*ee,ae+ce*ae,0,2*ae,(.5-le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ae,ee,2*ae,(.5+le)*ee,ae+ce*ae,ee)),re.spot1=new go.Spot(0,0,2*ae,0),re.spot2=new go.Spot(1,1),re}),go.Shape.defineFigureGenerator("Cylinder4",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,z/3);var re=new go.Geometry,le=ce*.5,ue=new go.PathFigure(z-ae,0,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,z-ce*ae,0,z,(.5-le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z,(.5+le)*ee,z-ce*ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,ce*ae,ee,0,(.5+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,(.5-le)*ee,ce*ae,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z-ae,0));var pe=new go.PathFigure(z-ae,0,!1);return re.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,z-2*ae,.5*ee,z-ae-ce*ae,0,z-2*ae,(.5-le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z-2*ae,(.5+le)*ee,z-ae-ce*ae,ee)),re.spot1=new go.Spot(0,0),re.spot2=new go.Spot(1,1,-2*ae,0),re}),go.Shape.defineFigureGenerator("Prism1",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.25*z,.25*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(.25*z,.25*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ae.spot1=new go.Spot(.408,.172),ae.spot2=new go.Spot(.833,.662),ae}),go.Shape.defineFigureGenerator("Prism2",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.25*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(0,ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*ee)),ae.spot1=new go.Spot(.25,.5),ae.spot2=new go.Spot(.75,.75),ae}),go.Shape.defineFigureGenerator("Pyramid1",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee).close());var le=new go.PathFigure(.5*z,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ae.spot1=new go.Spot(.25,.367),ae.spot2=new go.Spot(.75,.875),ae}),go.Shape.defineFigureGenerator("Pyramid2",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var le=new go.PathFigure(.5*z,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.5*z,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),ae.spot1=new go.Spot(.25,.367),ae.spot2=new go.Spot(.75,.875),ae}),go.Shape.defineFigureGenerator("Actor",function(fe,z,ee){var ae=new go.Geometry,re=.2,le=.1,ue=ce*re,pe=ce*le,Ce=.5,Pe=.1,Ie=new go.PathFigure(Ce*z,(Pe+le)*ee,!0);ae.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-re)*z,Pe*ee,(Ce-ue)*z,(Pe+le)*ee,(Ce-re)*z,(Pe+pe)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(Pe-le)*ee,(Ce-re)*z,(Pe-pe)*ee,(Ce-ue)*z,(Pe-le)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+re)*z,Pe*ee,(Ce+ue)*z,(Pe-le)*ee,(Ce+re)*z,(Pe-pe)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(Pe+le)*ee,(Ce+re)*z,(Pe+pe)*ee,(Ce+ue)*z,(Pe+le)*ee));var Oe=.05,Ae=ce*Oe;Ce=.05,Pe=.25;var je=new go.PathFigure(.5*z,.2*ee,!0);return ae.add(je),je.add(new go.PathSegment(go.PathSegment.Line,.95*z,.2*ee)),Ce=.95,Pe=.25,je.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+Oe)*z,Pe*ee,(Ce+Ae)*z,(Pe-Oe)*ee,(Ce+Oe)*z,(Pe-Ae)*ee)),je.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),je.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),je.add(new go.PathSegment(go.PathSegment.Line,.85*z,.35*ee)),Oe=.025,Ae=ce*Oe,Ce=.825,Pe=.35,je.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(Pe-Oe)*ee,(Ce+Oe)*z,(Pe-Ae)*ee,(Ce+Ae)*z,(Pe-Oe)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-Oe)*z,Pe*ee,(Ce-Ae)*z,(Pe-Oe)*ee,(Ce-Oe)*z,(Pe-Ae)*ee)),je.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),je.add(new go.PathSegment(go.PathSegment.Line,.55*z,ee)),je.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*ee)),Oe=.05,Ae=ce*Oe,Ce=.5,Pe=.7,je.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(Pe-Oe)*ee,(Ce+Oe)*z,(Pe-Ae)*ee,(Ce+Ae)*z,(Pe-Oe)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-Oe)*z,Pe*ee,(Ce-Ae)*z,(Pe-Oe)*ee,(Ce-Oe)*z,(Pe-Ae)*ee)),je.add(new go.PathSegment(go.PathSegment.Line,.45*z,ee)),je.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),je.add(new go.PathSegment(go.PathSegment.Line,.2*z,.35*ee)),Oe=.025,Ae=ce*Oe,Ce=.175,Pe=.35,je.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(Pe-Oe)*ee,(Ce+Oe)*z,(Pe-Ae)*ee,(Ce+Ae)*z,(Pe-Oe)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-Oe)*z,Pe*ee,(Ce-Ae)*z,(Pe-Oe)*ee,(Ce-Oe)*z,(Pe-Ae)*ee)),je.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee)),je.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),je.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),Oe=.05,Ae=ce*Oe,Ce=.05,Pe=.25,je.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(Pe-Oe)*ee,(Ce-Oe)*z,(Pe-Ae)*ee,(Ce-Ae)*z,(Pe-Oe)*ee)),je.add(new go.PathSegment(go.PathSegment.Line,.5*z,.2*ee)),ae.spot1=new go.Spot(.2,.2),ae.spot2=new go.Spot(.8,.65),ae}),go.Shape.setFigureParameter("Card",0,new Gn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.2);var re=new go.Geometry,le=new go.PathFigure(z,0,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ae*ee)),le.add(new go.PathSegment(go.PathSegment.Line,ae*z,0).close()),re.spot1=new go.Spot(0,ae),re.spot2=go.Spot.BottomRight,re}),go.Shape.defineFigureGenerator("Collate",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,.5*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee));var le=new go.PathFigure(.5*z,.5*ee,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),ae.spot1=new go.Spot(.25,0),ae.spot2=new go.Spot(.75,.25),ae}),go.Shape.defineFigureGenerator("CreateRequest",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.1);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure(0,re*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,re*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,0,(1-re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,(1-re)*ee)),ae}),go.Shape.defineFigureGenerator("Database",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=ce*.1,ue=new go.PathFigure(z,.1*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.9+le)*ee,(.5+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-re)*z,ee,0,(.9+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,(.1-le)*ee,(.5-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*ee,(.5+re)*z,0,z,(.1-le)*ee));var pe=new go.PathFigure(z,.1*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,z,(.1+le)*ee,(.5+re)*z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-re)*z,.2*ee,0,(.1+le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*ee,z,(.2+le)*ee,(.5+re)*z,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-re)*z,.3*ee,0,(.2+le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.4*ee,z,(.3+le)*ee,(.5+re)*z,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,(.5-re)*z,.4*ee,0,(.3+le)*ee)),ae.spot1=new go.Spot(0,.4),ae.spot2=new go.Spot(1,.9),ae}),go.Shape.defineFigureGenerator("DataStorage",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,ee,z,0,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.9*ee,.25*z,.1*ee).close()),ae.spot1=new go.Spot(.226,0),ae.spot2=new go.Spot(.81,1),ae}),go.Shape.defineFigureGenerator("DiskStorage",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=ce*.1,ue=new go.PathFigure(z,.1*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.9+le)*ee,(.5+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-re)*z,ee,0,(.9+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,(.1-le)*ee,(.5-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*ee,(.5+re)*z,0,z,(.1-le)*ee));var pe=new go.PathFigure(z,.1*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,z,(.1+le)*ee,(.5+re)*z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-re)*z,.2*ee,0,(.1+le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*ee,z,(.2+le)*ee,(.5+re)*z,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-re)*z,.3*ee,0,(.2+le)*ee)),ae.spot1=new go.Spot(0,.3),ae.spot2=new go.Spot(1,.9),ae}),go.Shape.defineFigureGenerator("Display",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.25*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,ee,z,0,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close()),ae.spot1=new go.Spot(.25,0),ae.spot2=new go.Spot(.75,1),ae}),go.Shape.defineFigureGenerator("DividedEvent",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)?re=.2:re<.15&&(re=.15);var le=ce*.2,ue=new go.PathFigure(0,.2*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,0,(.2-le)*ee,(.2-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.2*ee,(.8+le)*z,0,z,(.2-le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,ee,z,(.8+le)*ee,(.8+le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ee,(.2-le)*z,ee,0,(.8+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee));var pe=new go.PathFigure(0,re*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,re*ee)),ae}),go.Shape.defineFigureGenerator("DividedProcess",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;(isNaN(re)||re<.1)&&(re=.1);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure(0,re*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,re*ee)),ae}),go.Shape.defineFigureGenerator("Document",function(fe,z,ee){var ae=new go.Geometry;ee=ee/.8;var re=new go.PathFigure(0,.7*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*z,.4*ee,.5*z,ee).close()),ae.spot1=go.Spot.TopLeft,ae.spot2=new go.Spot(1,.6),ae}),go.Shape.defineFigureGenerator("ExternalOrganization",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;(isNaN(re)||re<.2)&&(re=.2);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure(re*z,0,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,re*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,z,re*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Move,0,(1-re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,(1-re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,(1-re)*ee)),ae}),go.Shape.defineFigureGenerator("ExternalProcess",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var le=new go.PathFigure(.1*z,.4*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.9*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.6*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.4*z,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.9*ee)),ae.spot1=new go.Spot(.25,.25),ae.spot2=new go.Spot(.75,.75),ae}),go.Shape.defineFigureGenerator("File",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(.75*z,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*z,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),ae.spot1=new go.Spot(0,.25),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("Interrupt",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,.5*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee));var le=new go.PathFigure(z,.5*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,ee));var ue=new go.PathFigure(z,.5*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.5,.75),ae}),go.Shape.defineFigureGenerator("InternalStorage",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN,le=fe?fe.parameter2:NaN;isNaN(re)&&(re=.1),isNaN(le)&&(le=.1);var ue=new go.PathFigure(0,0,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var pe=new go.PathFigure(re*z,0,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Move,0,le*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,z,le*ee)),ae}),go.Shape.defineFigureGenerator("Junction",function(fe,z,ee){var ae=new go.Geometry,re=1/Math.SQRT2,le=(1-1/Math.SQRT2)/2,ue=ce*.5,pe=.5,Ce=new go.PathFigure(z,pe*ee,!0);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,ee,z,(pe+ue)*ee,(pe+ue)*z,ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,pe*ee,(pe-ue)*z,ee,0,(pe+ue)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,0,0,(pe-ue)*ee,(pe-ue)*z,0)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,z,pe*ee,(pe+ue)*z,0,z,(pe-ue)*ee));var Pe=new go.PathFigure((le+re)*z,(le+re)*ee,!1);return ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,le*z,le*ee)),Pe.add(new go.PathSegment(go.PathSegment.Move,le*z,(le+re)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,(le+re)*z,le*ee)),ae}),go.Shape.defineFigureGenerator("LinedDocument",function(fe,z,ee){var ae=new go.Geometry;ee=ee/.8;var re=new go.PathFigure(0,.7*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*z,.4*ee,.5*z,ee).close());var le=new go.PathFigure(.1*z,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,.75*ee)),ae.spot1=new go.Spot(.1,0),ae.spot2=new go.Spot(1,.6),ae}),go.Shape.defineFigureGenerator("LoopLimit",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),ae.spot1=new go.Spot(0,.25),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("MagneticTape",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=.5,ue=new go.PathFigure(.5*z,ee,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ee,(le-re)*z,ee,0,(le+re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,0,0,(le-re)*ee,(le-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,le*ee,(le+re)*z,0,z,(le-re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(le+.1)*z,.9*ee,z,(le+re)*ee,(le+re)*z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ae.spot1=new go.Spot(.15,.15),ae.spot2=new go.Spot(.85,.8),ae}),go.Shape.defineFigureGenerator("ManualInput",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee).close()),ae.spot1=new go.Spot(0,.25),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("MessageFromUser",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.7);var le=new go.PathFigure(0,0,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,re*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=go.Spot.TopLeft,ae}),go.Shape.defineFigureGenerator("MicroformProcessing",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.25);var le=new go.PathFigure(0,0,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,re*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,(1-re)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae}),go.Shape.defineFigureGenerator("MicroformRecording",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(1,.75),ae}),go.Shape.defineFigureGenerator("MultiDocument",function(fe,z,ee){var ae=new go.Geometry;ee=ee/.8;var re=new go.PathFigure(z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.44*ee,.96*z,.47*ee,.93*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.54*ee,.86*z,.57*ee,.83*z,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.4*z,.4*ee,.4*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,0).close());var le=new go.PathFigure(.1*z,.2*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.54*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.44*ee)),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.8,.77),ae}),go.Shape.defineFigureGenerator("MultiProcess",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.1*z,.1*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*ee).close());var le=new go.PathFigure(.2*z,.1*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.1*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.9*ee)),ae.spot1=new go.Spot(0,.2),ae.spot2=new go.Spot(.8,1),ae}),go.Shape.defineFigureGenerator("OfflineStorage",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.1);var le=1-re,ue=new go.PathFigure(0,0,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee).close());var pe=new go.PathFigure(.5*re*z,re*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,(1-.5*re)*z,re*ee)),ae}),go.Shape.defineFigureGenerator("OffPageConnector",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=go.Spot.TopLeft,ae.spot2=new go.Spot(.75,1),ae}),go.Shape.defineFigureGenerator("Or",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=.5,ue=new go.PathFigure(z,le*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,ee,z,(le+re)*ee,(le+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ee,(le-re)*z,ee,0,(le+re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,0,0,(le-re)*ee,(le-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,le*ee,(le+re)*z,0,z,(le-re)*ee));var pe=new go.PathFigure(z,.5*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.5*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ae}),go.Shape.defineFigureGenerator("PaperTape",function(fe,z,ee){var ae=new go.Geometry;ee=ee/.8;var re=new go.PathFigure(0,.7*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.3*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.3*ee,.5*z,.6*ee,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*z,.4*ee,.5*z,ee).close()),ae.spot1=new go.Spot(0,.49),ae.spot2=new go.Spot(1,.75),ae}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN,le=fe?fe.parameter2:NaN;isNaN(re)&&(re=.1),isNaN(le)&&(le=.3);var ue=new go.PathFigure(0,0,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-le)*z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN,le=fe?fe.parameter2:NaN;isNaN(re)&&(re=.1),isNaN(le)&&(le=.3);var ue=new go.PathFigure(0,0,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,(1-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae}),go.Shape.defineFigureGenerator("Procedure",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.1);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure((1-re)*z,0,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,(1-re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,re*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),ae}),go.Shape.defineFigureGenerator("Process",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.1);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure(re*z,0,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("Sort",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var le=new go.PathFigure(0,.5*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ae.spot1=new go.Spot(.25,.25),ae.spot2=new go.Spot(.75,.5),ae}),go.Shape.defineFigureGenerator("Start",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.25);var le=new go.PathFigure(re*z,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*z,.5*ee,.25*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*z,.5*ee,.25*z,.5*ee));var ue=new go.PathFigure(re*z,0,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,(1-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-re)*z,ee)),ae.spot1=new go.Spot(re,0),ae.spot2=new go.Spot(1-re,1),ae}),go.Shape.defineFigureGenerator("Terminator",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.25*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*z,.5*ee,.25*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*z,.5*ee,.25*z,.5*ee)),ae.spot1=new go.Spot(.23,0),ae.spot2=new go.Spot(.77,1),ae}),go.Shape.defineFigureGenerator("TransmittalTape",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.1);var le=new go.PathFigure(0,0,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.75*z,(1-re)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,(1-re)*ee).close()),ae.spot1=go.Spot.TopLeft,ae}),go.Shape.defineFigureGenerator("AndGate",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=new go.PathFigure(0,0,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(.5+re)*z,0,z,(.5-re)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.5+re)*ee,(.5+re)*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=go.Spot.TopLeft,ae.spot2=new go.Spot(.55,1),ae}),go.Shape.defineFigureGenerator("Buffer",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.5,.75),ae}),go.Shape.defineFigureGenerator("Clock",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=.5,ue=new go.PathFigure(z,le*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,ee,z,(le+re)*ee,(le+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ee,(le-re)*z,ee,0,(le+re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,0,0,(le-re)*ee,(le-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,le*ee,(le+re)*z,0,z,(le-re)*ee));var pe=new go.PathFigure(z,le*ee,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,le*ee));var Ce=new go.PathFigure(.8*z,.75*ee,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.8*z,.25*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.6*z,.25*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.6*z,.75*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.4*z,.75*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.4*z,.25*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*z,.25*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*z,.75*ee)),ae}),go.Shape.defineFigureGenerator("Ground",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.3*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.4*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,ee)),ae}),go.Shape.defineFigureGenerator("Inverter",function(fe,z,ee){var ae=new go.Geometry,re=ce*.1,le=.1,ue=.9,pe=.5,Ce=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee));var Pe=new go.PathFigure((ue+le)*z,pe*ee,!0);return ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee)),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.4,.75),ae}),go.Shape.defineFigureGenerator("NandGate",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=ce*.4,ue=ce*.1,pe=.1,Ce=.9,Pe=.5,Ie=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,ee,.8*z,(.5+le)*ee,(.4+re)*z,ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ie.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(.4+re)*z,0,.8*z,(.5-le)*ee));var Oe=new go.PathFigure((Ce+pe)*z,Pe*ee,!0);return ae.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(Pe+pe)*ee,(Ce+pe)*z,(Pe+ue)*ee,(Ce+ue)*z,(Pe+pe)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-pe)*z,Pe*ee,(Ce-ue)*z,(Pe+pe)*ee,(Ce-pe)*z,(Pe+ue)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(Pe-pe)*ee,(Ce-pe)*z,(Pe-ue)*ee,(Ce-ue)*z,(Pe-pe)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+pe)*z,Pe*ee,(Ce+ue)*z,(Pe-pe)*ee,(Ce+pe)*z,(Pe-ue)*ee)),ae.spot1=new go.Spot(0,.05),ae.spot2=new go.Spot(.55,.95),ae}),go.Shape.defineFigureGenerator("NorGate",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*re,ue=0,pe=.5,Ce=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.7*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.75*ee,.25*z,.25*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(ue+le)*z,(pe-re)*ee,.7*z,(pe-le)*ee)),re=.1,le=ce*.1,ue=.9,pe=.5;var Pe=new go.PathFigure((ue-re)*z,pe*ee,!0);return ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),ae.spot1=new go.Spot(.2,.25),ae.spot2=new go.Spot(.6,.75),ae}),go.Shape.defineFigureGenerator("OrGate",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*re,ue=0,pe=.5,Ce=new go.PathFigure(0,0,!0);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(ue+le+le)*z,(pe-re)*ee,.8*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.8*z,(pe+le)*ee,(ue+le+le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.75*ee,.25*z,.25*ee).close()),ae.spot1=new go.Spot(.2,.25),ae.spot2=new go.Spot(.75,.75),ae}),go.Shape.defineFigureGenerator("XnorGate",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*re,ue=.2,pe=.5,Ce=new go.PathFigure(.1*z,0,!1);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,ee,.35*z,.25*ee,.35*z,.75*ee));var Pe=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,ee,.7*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,.45*z,.75*ee,.45*z,.25*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(ue+le)*z,(pe-re)*ee,.7*z,(pe-le)*ee)),re=.1,le=ce*.1,ue=.9,pe=.5;var Ie=new go.PathFigure((ue-re)*z,pe*ee,!0);return ae.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),ae.spot1=new go.Spot(.4,.25),ae.spot2=new go.Spot(.65,.75),ae}),go.Shape.defineFigureGenerator("XorGate",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*re,ue=.2,pe=.5,Ce=new go.PathFigure(.1*z,0,!1);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,ee,.35*z,.25*ee,.35*z,.75*ee));var Pe=new go.PathFigure(.2*z,0,!0);return ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(ue+le)*z,(pe-re)*ee,.9*z,(pe-le)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,ee,.9*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,.45*z,.75*ee,.45*z,.25*ee).close()),ae.spot1=new go.Spot(.4,.25),ae.spot2=new go.Spot(.8,.75),ae}),go.Shape.defineFigureGenerator("Capacitor",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae}),go.Shape.defineFigureGenerator("Resistor",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,.5*ee)),ae}),go.Shape.defineFigureGenerator("Inductor",function(fe,z,ee){var ae=new go.Geometry,re=ce*.1,le=.1,ue=.1,pe=.5,Ce=new go.PathFigure((ue-re*.5)*z,ee,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.3,Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.5,Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.7,Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.9,Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re*.5)*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),ae}),go.Shape.defineFigureGenerator("ACvoltageSource",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=.5,ue=.5,pe=.5,Ce=new go.PathFigure((ue-le)*z,pe*ee,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Move,(ue-le+.1)*z,pe*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le-.1)*z,pe*ee,ue*z,(pe-le)*ee,ue*z,(pe+le)*ee)),ae}),go.Shape.defineFigureGenerator("DCvoltageSource",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.75*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae}),go.Shape.defineFigureGenerator("Diode",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.5,.75),ae}),go.Shape.defineFigureGenerator("Wifi",function(fe,z,ee){var ae=new go.Geometry,re=z,le=ee;z=z*.38,ee=ee*.6;var ue=ce*.8,pe=.8,Ce=0,Pe=.5,Ie=(re-z)/2,Oe=(le-ee)/2,Ae=new go.PathFigure(Ce*z+Ie,(Pe+pe)*ee+Oe,!0);ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-pe)*z+Ie,Pe*ee+Oe,(Ce-ue)*z+Ie,(Pe+pe)*ee+Oe,(Ce-pe)*z+Ie,(Pe+ue)*ee+Oe)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z+Ie,(Pe-pe)*ee+Oe,(Ce-pe)*z+Ie,(Pe-ue)*ee+Oe,(Ce-ue)*z+Ie,(Pe-pe)*ee+Oe)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-pe+ue*.5)*z+Ie,Pe*ee+Oe,Ce*z+Ie,(Pe-pe)*ee+Oe,(Ce-pe+ue*.5)*z+Ie,(Pe-ue)*ee+Oe)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z+Ie,(Pe+pe)*ee+Oe,(Ce-pe+ue*.5)*z+Ie,(Pe+ue)*ee+Oe,Ce*z+Ie,(Pe+pe)*ee+Oe).close()),ue=ce*.4,pe=.4,Ce=.2,Pe=.5;var je=new go.PathFigure(Ce*z+Ie,(Pe+pe)*ee+Oe,!0);ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-pe)*z+Ie,Pe*ee+Oe,(Ce-ue)*z+Ie,(Pe+pe)*ee+Oe,(Ce-pe)*z+Ie,(Pe+ue)*ee+Oe)),je.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z+Ie,(Pe-pe)*ee+Oe,(Ce-pe)*z+Ie,(Pe-ue)*ee+Oe,(Ce-ue)*z+Ie,(Pe-pe)*ee+Oe)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-pe+ue*.5)*z+Ie,Pe*ee+Oe,Ce*z+Ie,(Pe-pe)*ee+Oe,(Ce-pe+ue*.5)*z+Ie,(Pe-ue)*ee+Oe)),je.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z+Ie,(Pe+pe)*ee+Oe,(Ce-pe+ue*.5)*z+Ie,(Pe+ue)*ee+Oe,Ce*z+Ie,(Pe+pe)*ee+Oe).close()),ue=ce*.2,pe=.2,Ce=.5,Pe=.5;var Be=new go.PathFigure((Ce-pe)*z+Ie,Pe*ee+Oe,!0);ae.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z+Ie,(Pe-pe)*ee+Oe,(Ce-pe)*z+Ie,(Pe-ue)*ee+Oe,(Ce-ue)*z+Ie,(Pe-pe)*ee+Oe)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+pe)*z+Ie,Pe*ee+Oe,(Ce+ue)*z+Ie,(Pe-pe)*ee+Oe,(Ce+pe)*z+Ie,(Pe-ue)*ee+Oe)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z+Ie,(Pe+pe)*ee+Oe,(Ce+pe)*z+Ie,(Pe+ue)*ee+Oe,(Ce+ue)*z+Ie,(Pe+pe)*ee+Oe)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-pe)*z+Ie,Pe*ee+Oe,(Ce-ue)*z+Ie,(Pe+pe)*ee+Oe,(Ce-pe)*z+Ie,(Pe+ue)*ee+Oe)),ue=ce*.4,pe=.4,Ce=.8,Pe=.5;var _e=new go.PathFigure(Ce*z+Ie,(Pe-pe)*ee+Oe,!0);ae.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+pe)*z+Ie,Pe*ee+Oe,(Ce+ue)*z+Ie,(Pe-pe)*ee+Oe,(Ce+pe)*z+Ie,(Pe-ue)*ee+Oe)),_e.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z+Ie,(Pe+pe)*ee+Oe,(Ce+pe)*z+Ie,(Pe+ue)*ee+Oe,(Ce+ue)*z+Ie,(Pe+pe)*ee+Oe)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+pe-ue*.5)*z+Ie,Pe*ee+Oe,Ce*z+Ie,(Pe+pe)*ee+Oe,(Ce+pe-ue*.5)*z+Ie,(Pe+ue)*ee+Oe)),_e.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z+Ie,(Pe-pe)*ee+Oe,(Ce+pe-ue*.5)*z+Ie,(Pe-ue)*ee+Oe,Ce*z+Ie,(Pe-pe)*ee+Oe).close()),ue=ce*.8,pe=.8,Ce=1,Pe=.5;var qe=new go.PathFigure(Ce*z+Ie,(Pe-pe)*ee+Oe,!0);return ae.add(qe),qe.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+pe)*z+Ie,Pe*ee+Oe,(Ce+ue)*z+Ie,(Pe-pe)*ee+Oe,(Ce+pe)*z+Ie,(Pe-ue)*ee+Oe)),qe.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z+Ie,(Pe+pe)*ee+Oe,(Ce+pe)*z+Ie,(Pe+ue)*ee+Oe,(Ce+ue)*z+Ie,(Pe+pe)*ee+Oe)),qe.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+pe-ue*.5)*z+Ie,Pe*ee+Oe,Ce*z+Ie,(Pe+pe)*ee+Oe,(Ce+pe-ue*.5)*z+Ie,(Pe+ue)*ee+Oe)),qe.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z+Ie,(Pe-pe)*ee+Oe,(Ce+pe-ue*.5)*z+Ie,(Pe-ue)*ee+Oe,Ce*z+Ie,(Pe-pe)*ee+Oe).close()),ae}),go.Shape.defineFigureGenerator("Email",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(0,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Move,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.45*z,.54*ee)),le.add(new go.PathSegment(go.PathSegment.Move,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.55*z,.54*ee)),ae}),go.Shape.defineFigureGenerator("Ethernet",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.35*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,0).close());var le=new go.PathFigure(.1*z,ee,!0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,ee).close());var ue=new go.PathFigure(.6*z,ee,!0,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*z,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*z,ee).close());var pe=new go.PathFigure(0,.5*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.5*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.75*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.75*z,.6*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.25*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.25*z,.6*ee)),ae}),go.Shape.defineFigureGenerator("Power",function(fe,z,ee){var ae=new go.Geometry,re=ce*.4,le=.4,ue=.5,pe=.5,Ce=tt(),Pe=tt(),Ie=tt(),Oe=tt();Ue(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.5,Ce,Ce,Pe,Ie,Oe);var Ae=Ke(Pe.x,Pe.y),je=new go.PathFigure(Pe.x*z,Pe.y*ee,!0);ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Ie.x*z,Ie.y*ee,Oe.x*z,Oe.y*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),Ue(ue-le,pe,ue-le,pe-re,ue-re,pe-le,ue,pe-le,.5,Ie,Oe,Pe,Ce,Ce),je.add(new go.PathSegment(go.PathSegment.Bezier,Pe.x*z,Pe.y*ee,Ie.x*z,Ie.y*ee,Oe.x*z,Oe.y*ee)),re=ce*.3,le=.3,Ue(ue-le,pe,ue-le,pe-re,ue-re,pe-le,ue,pe-le,.5,Ie,Oe,Pe,Ce,Ce),je.add(new go.PathSegment(go.PathSegment.Line,Pe.x*z,Pe.y*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,Oe.x*z,Oe.y*ee,Ie.x*z,Ie.y*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ue(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.5,Ce,Ce,Pe,Ie,Oe),je.add(new go.PathSegment(go.PathSegment.Bezier,Pe.x*z,Pe.y*ee,Oe.x*z,Oe.y*ee,Ie.x*z,Ie.y*ee).close());var je=new go.PathFigure(.45*z,0,!0);return ae.add(je),je.add(new go.PathSegment(go.PathSegment.Line,.45*z,.5*ee)),je.add(new go.PathSegment(go.PathSegment.Line,.55*z,.5*ee)),je.add(new go.PathSegment(go.PathSegment.Line,.55*z,0).close()),Pt(Ce),Pt(Pe),Pt(Ie),Pt(Oe),Pt(Ae),ae.spot1=new go.Spot(.25,.45),ae.spot2=new go.Spot(.75,.8),ae}),go.Shape.defineFigureGenerator("Fallout",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee/2,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,180,360,z/2,ee/2,z/2,ee/2));function le(ue,pe,Ce){ue.add(new go.PathSegment(go.PathSegment.Move,(.3+pe)*z,(.8+Ce)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.5+pe)*z,(.5+Ce)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.1+pe)*z,(.5+Ce)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.3+pe)*z,(.8+Ce)*ee).close())}return le(re,0,0),le(re,.4,0),le(re,.2,-.3),ae}),go.Shape.defineFigureGenerator("IrritationHazard",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.2*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.3*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close()),ae.spot1=new go.Spot(.3,.3),ae.spot2=new go.Spot(.7,.7),ae}),go.Shape.defineFigureGenerator("ElectricalHazard",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.37*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.11*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.77*z,.04*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,.49*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.37*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.63*z,.86*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.77*z,.91*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.34*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.34*z,.78*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.44*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,.56*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee).close()),ae}),go.Shape.defineFigureGenerator("FireHazard",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.1*z,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.29*z,0,-.25*z,.63*ee,.45*z,.44*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.51*z,.42*ee,.48*z,.17*ee,.54*z,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.59*z,.18*ee,.59*z,.29*ee,.58*z,.28*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,.6*ee,.8*z,.34*ee,.88*z,.43*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.88*z,.31*ee,.87*z,.48*ee,.88*z,.43*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,ee,1.17*z,.76*ee,.82*z,.8*ee).close()),ae.spot1=new go.Spot(.07,.445),ae.spot2=new go.Spot(.884,.958),ae}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=0,ue=0,pe=re*ce,Ce=.4*Math.SQRT2/2+.5,Pe=.5-.5*Math.SQRT2/2,Ie=1,Oe=.5,Ae=.5,je=0,Be=new go.PathFigure(Ce*z,(1-Pe)*ee,!1);return ae.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Ie*z,Oe*ee,Ie*z,.7*ee,Ie*z,Oe*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+le)*z,(je+le)*ee,(.5+re+le)*z,(.5-pe+le)*ee,(.5+pe+le)*z,(.5-re+le)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-re+le)*z,(.5+ue)*ee,(.5-pe+le)*z,(.5-re+ue)*ee,(.5-re+le)*z,(.5-pe+ue)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.35+le)*z,.9*ee,(.5-re+le)*z,(.5+pe+ue)*ee,(.5-pe+le)*z,.9*ee)),Be.add(new go.PathSegment(go.PathSegment.Move,(.25+le)*z,.8*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,(.35+le)*z,.9*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,(.2+le)*z,.95*ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Move,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);ae.add(re);var le=new go.PathFigure(z,ee,!1);ae.add(le);var ue=new go.PathFigure(0,.5*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.5*ee,.2*z,.35*ee,.3*z,.35*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,.7*z,.65*ee,.8*z,.65*ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee).close()),ae}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.2*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee).close());var re=new go.PathFigure(0,.2*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),ae}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.7*z,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,0,.6*z,.5*ee,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,ee,.4*z,.5*ee,z,.5*ee).close());var le=new go.PathFigure(.45*z,.73*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.7*z,.73*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.38*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.63*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.31*z,.27*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.56*z,.27*ee)),ae}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);ae.add(re);var le=new go.PathFigure(.335*z,(1-.555)*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.335*z,(1-.405)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.405)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.555)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.68*ee,(1-.12)*z,.46*ee,(1-.02)*z,.54*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.335*z,(1-.555)*ee,.02*z,.54*ee,.12*z,.46*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.365*z,(1-.595)*ee));var ue=.5-.285,pe=.5,Ce=ue,Pe=Math.PI/4,Ie=4*(1-Math.cos(Pe))/(3*Math.sin(Pe)),Oe=Ie*.5,Ae=ue,je=ue,Be=Ie*Ae,_e=Ie*je;le.add(new go.PathSegment(go.PathSegment.Bezier,(pe-Ae)*z,Ce*ee,(pe-(Be+Ae)/2)*z,(Ce+(je+_e)/2)*ee,(pe-Ae)*z,(Ce+_e)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,(Ce-je)*ee,(pe-Ae)*z,(Ce-_e)*ee,(pe-Be)*z,(Ce-je)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(pe+Ae)*z,Ce*ee,(pe+Be)*z,(Ce-je)*ee,(pe+Ae)*z,(Ce-_e)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*z,(1-.595)*ee,(pe+Ae)*z,(Ce+_e)*ee,(pe+(Be+Ae)/2)*z,(Ce+(je+_e)/2)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*z,(1-.595)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.555)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.405)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.335*z,(1-.405)*ee));var qe=new go.PathFigure(.2*z,ee,!1);ae.add(qe),qe.add(new go.PathSegment(go.PathSegment.Line,.2*z,.8*ee));var ze=new go.PathFigure(.8*z,ee,!1);return ae.add(ze),ze.add(new go.PathSegment(go.PathSegment.Line,.8*z,.8*ee)),ae}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.1*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,ee).close());var le=new go.PathFigure(.2*z,.2*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.8*ee)),ae}),go.Shape.defineFigureGenerator("BpmnEventError",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.66*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.66*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,.5*ee).close()),ae}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);ae.add(re);var le=new go.PathFigure(z,ee,!1);ae.add(le);var ue=new go.PathFigure(.1*z,ee,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee).close()),ae}),go.Shape.defineFigureGenerator("Caution",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.05*z,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,.8*ee,0,ee,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.45*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.1*ee,.5*z,0,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.95*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,ee,z,ee,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.05*z,ee));var le=.05;return re.add(new go.PathSegment(go.PathSegment.Move,(.5-le)*z,.875*ee)),re.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*z,.875*ee,le*z,le*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.325*ee,.575*z,.725*ee,.625*z,.375*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.75*ee,.375*z,.375*ee,.425*z,.725*ee)),ae}),go.Shape.defineFigureGenerator("Recycle",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.45*z,.95*ee,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.185*z,.85*ee,.17*z,.95*ee,.15*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.235*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,.625*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.275*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.05*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.05*z,.575*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.1875*z,.95*ee,0,.675*ee,0,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.45*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.45*z,.775*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.22*z,.775*ee));var le=new go.PathFigure(.475*z,.2*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.225*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.275*z,.175*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.325*z,.05*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,.05*ee,.35*z,0,.375*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.575*z,.375*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.525*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.75*z,.475*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.85*z,.315*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.32*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.65*z,.05*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.575*z,0,.65*z,.05*ee,.625*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.38*z,.0105*ee));var ue=new go.PathFigure(.675*z,.575*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.875*z,.525*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.85*z,.95*ee,z,.8*ee,z,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,.95*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,.725*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.675*z,.575*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.775*z,.775*ee)),ae}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*.5,ue=new go.PathFigure(z,re*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*z,ee,z,(re+le)*ee,(re+le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,re*ee,(re-le)*z,ee,0,(re+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*z,0,0,(re-le)*ee,(re-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,re*ee,(re+le)*z,0,z,(re-le)*ee));var pe=new go.PathFigure(re*z,0,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,re*z,.15*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,re*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,re*z,.85*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,0,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.15*z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,re*z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.58*z,.1*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,re*z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.78*z,.54*ee)),ae}),go.Shape.defineFigureGenerator("Package",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.15*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(0,.15*ee,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.65*z,.15*ee).close()),ae.spot1=new go.Spot(0,.1),ae.spot2=new go.Spot(1,1),ae}),go.Shape.defineFigureGenerator("Class",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(0,.2*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee).close());var ue=new go.PathFigure(0,.5*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee).close()),ae}),go.Shape.defineFigureGenerator("Component",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee).close());var le=new go.PathFigure(0,.2*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.45*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close());var ue=new go.PathFigure(0,.6*ee,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.45*z,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*z,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee).close()),ae}),go.Shape.defineFigureGenerator("Boat Shipment",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.15*z,.6*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.85*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee));var le=new go.PathFigure(.15*z,.6*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),ae}),go.Shape.defineFigureGenerator("Customer/Supplier",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.66*z,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.66*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),ae}),go.Shape.defineFigureGenerator("Workcell",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae}),go.Shape.defineFigureGenerator("Supermarket",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.66*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.66*ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,.66*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ae}),go.Shape.defineFigureGenerator("TruckShipment",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(z,.8*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee).close());var ue=.1,pe=ce*.1,Ce=.2,Pe=.9,Ie=new go.PathFigure((Ce-ue)*z,Pe*ee,!0);ae.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(Pe-ue)*ee,(Ce-ue)*z,(Pe-pe)*ee,(Ce-pe)*z,(Pe-ue)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+ue)*z,Pe*ee,(Ce+pe)*z,(Pe-ue)*ee,(Ce+ue)*z,(Pe-pe)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(Pe+ue)*ee,(Ce+ue)*z,(Pe+pe)*ee,(Ce+pe)*z,(Pe+ue)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-ue)*z,Pe*ee,(Ce-pe)*z,(Pe+ue)*ee,(Ce-ue)*z,(Pe+pe)*ee).close()),ue=.1,pe=ce*.1,Ce=.8,Pe=.9;var Oe=new go.PathFigure((Ce-ue)*z,Pe*ee,!0);return ae.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(Pe-ue)*ee,(Ce-ue)*z,(Pe-pe)*ee,(Ce-pe)*z,(Pe-ue)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+ue)*z,Pe*ee,(Ce+pe)*z,(Pe-ue)*ee,(Ce+ue)*z,(Pe-pe)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(Pe+ue)*ee,(Ce+ue)*z,(Pe+pe)*ee,(Ce+pe)*z,(Pe+ue)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-ue)*z,Pe*ee,(Ce-pe)*z,(Pe+ue)*ee,(Ce-ue)*z,(Pe+pe)*ee).close()),ae}),go.Shape.defineFigureGenerator("KanbanPost",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.2*z,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),ae}),go.Shape.defineFigureGenerator("Forklift",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,0));var le=new go.PathFigure(0,.5*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var ue=new go.PathFigure(.5*z,.8*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,.8*ee));var pe=new go.PathFigure(.5*z,.7*ee,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee));var Ce=.1,Pe=ce*.1,Ie=.1,Oe=.9,Ae=new go.PathFigure((Ie-Ce)*z,Oe*ee,!0);ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ie*z,(Oe-Ce)*ee,(Ie-Ce)*z,(Oe-Pe)*ee,(Ie-Pe)*z,(Oe-Ce)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Ie+Ce)*z,Oe*ee,(Ie+Pe)*z,(Oe-Ce)*ee,(Ie+Ce)*z,(Oe-Pe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ie*z,(Oe+Ce)*ee,(Ie+Ce)*z,(Oe+Pe)*ee,(Ie+Pe)*z,(Oe+Ce)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Ie-Ce)*z,Oe*ee,(Ie-Pe)*z,(Oe+Ce)*ee,(Ie-Ce)*z,(Oe+Pe)*ee)),Ce=.1,Pe=ce*.1,Ie=.4,Oe=.9;var je=new go.PathFigure((Ie-Ce)*z,Oe*ee,!0);return ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,Ie*z,(Oe-Ce)*ee,(Ie-Ce)*z,(Oe-Pe)*ee,(Ie-Pe)*z,(Oe-Ce)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ie+Ce)*z,Oe*ee,(Ie+Pe)*z,(Oe-Ce)*ee,(Ie+Ce)*z,(Oe-Pe)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,Ie*z,(Oe+Ce)*ee,(Ie+Ce)*z,(Oe+Pe)*ee,(Ie+Pe)*z,(Oe+Ce)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ie-Ce)*z,Oe*ee,(Ie-Pe)*z,(Oe+Ce)*ee,(Ie-Ce)*z,(Oe+Pe)*ee)),ae}),go.Shape.defineFigureGenerator("RailShipment",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.1*z,.4*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.45*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.45*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.4*ee).close());var le=new go.PathFigure(.45*z,.7*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*ee));var ue=new go.PathFigure(.55*z,.4*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.4*ee).close());var Ie=.05,Oe=ce*.05,Ae=.175,je=.95,pe=new go.PathFigure((Ae-Ie)*z,je*ee,!0);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,Ae*z,(je-Ie)*ee,(Ae-Ie)*z,(je-Oe)*ee,(Ae-Oe)*z,(je-Ie)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+Ie)*z,je*ee,(Ae+Oe)*z,(je-Ie)*ee,(Ae+Ie)*z,(je-Oe)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,Ae*z,(je+Ie)*ee,(Ae+Ie)*z,(je+Oe)*ee,(Ae+Oe)*z,(je+Ie)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-Ie)*z,je*ee,(Ae-Oe)*z,(je+Ie)*ee,(Ae-Ie)*z,(je+Oe)*ee));var Ie=.05,Oe=ce*.05,Ae=.375,je=.95,Ce=new go.PathFigure((Ae-Ie)*z,je*ee,!0);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,Ae*z,(je-Ie)*ee,(Ae-Ie)*z,(je-Oe)*ee,(Ae-Oe)*z,(je-Ie)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+Ie)*z,je*ee,(Ae+Oe)*z,(je-Ie)*ee,(Ae+Ie)*z,(je-Oe)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,Ae*z,(je+Ie)*ee,(Ae+Ie)*z,(je+Oe)*ee,(Ae+Oe)*z,(je+Ie)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-Ie)*z,je*ee,(Ae-Oe)*z,(je+Ie)*ee,(Ae-Ie)*z,(je+Oe)*ee));var Ie=.05,Oe=ce*.05,Ae=.625,je=.95,Pe=new go.PathFigure((Ae-Ie)*z,je*ee,!0);ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Ae*z,(je-Ie)*ee,(Ae-Ie)*z,(je-Oe)*ee,(Ae-Oe)*z,(je-Ie)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+Ie)*z,je*ee,(Ae+Oe)*z,(je-Ie)*ee,(Ae+Ie)*z,(je-Oe)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Ae*z,(je+Ie)*ee,(Ae+Ie)*z,(je+Oe)*ee,(Ae+Oe)*z,(je+Ie)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-Ie)*z,je*ee,(Ae-Oe)*z,(je+Ie)*ee,(Ae-Ie)*z,(je+Oe)*ee));var Ie=.05,Oe=ce*.05,Ae=.825,je=.95,Be=new go.PathFigure((Ae-Ie)*z,je*ee,!0);ae.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Ae*z,(je-Ie)*ee,(Ae-Ie)*z,(je-Oe)*ee,(Ae-Oe)*z,(je-Ie)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+Ie)*z,je*ee,(Ae+Oe)*z,(je-Ie)*ee,(Ae+Ie)*z,(je-Oe)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Ae*z,(je+Ie)*ee,(Ae+Ie)*z,(je+Oe)*ee,(Ae+Oe)*z,(je+Ie)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-Ie)*z,je*ee,(Ae-Oe)*z,(je+Ie)*ee,(Ae-Ie)*z,(je+Oe)*ee).close());var _e=new go.PathFigure(0,ee,!1);return ae.add(_e),_e.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),ae}),go.Shape.defineFigureGenerator("Warehouse",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(0,.2*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee).close());var ue=new go.PathFigure(.15*z,ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.15*z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee).close());var pe=.05,Ce=ce*.05,Pe=.35,Ie=.775,Oe=new go.PathFigure((Pe-pe)*z,Ie*ee,!0);return ae.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*z,(Ie-pe)*ee,(Pe-pe)*z,(Ie-Ce)*ee,(Pe-Ce)*z,(Ie-pe)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+pe)*z,Ie*ee,(Pe+Ce)*z,(Ie-pe)*ee,(Pe+pe)*z,(Ie-Ce)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*z,(Ie+pe)*ee,(Pe+pe)*z,(Ie+Ce)*ee,(Pe+Ce)*z,(Ie+pe)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-pe)*z,Ie*ee,(Pe-Ce)*z,(Ie+pe)*ee,(Pe-pe)*z,(Ie+Ce)*ee).close()),ae}),go.Shape.defineFigureGenerator("ControlCenter",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.1*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee).close()),ae}),go.Shape.defineFigureGenerator("Bluetooth",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.75*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),ae}),go.Shape.defineFigureGenerator("Bookmark",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*ee)),ae}),go.Shape.defineFigureGenerator("Bookmark",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*ee)),ae}),go.Shape.defineFigureGenerator("Globe",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,.75*z,0,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,.75*ee,.75*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.25*z,ee,0,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,.25*ee,.25*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,.15*z,.25*ee,.15*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.85*z,.75*ee,.85*z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.1675*z,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8325*z,.15*ee,.35*z,.3*ee,.65*z,.3*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.1675*z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8325*z,.85*ee,.35*z,.7*ee,.65*z,.7*ee)),ae}),go.Shape.defineFigureGenerator("Wave",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.25*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.25*ee,.1*z,0,.2*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,.25*ee,.425*z,.5*ee,.575*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.25*ee,.8*z,0,.9*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.75*ee,.1*z,.5*ee,.2*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,.75*ee,.425*z,ee,.575*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.75*ee,.8*z,.5*ee,.9*z,.5*ee)),ae}),go.Shape.defineFigureGenerator("Operator",function(fe,z,ee){var ae=new go.Geometry,re=.3,le=ce*.3,ue=.5,pe=.7,Ce=new go.PathFigure((ue-re)*z,pe*ee,!0);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee));var Pe=new go.PathFigure(0,.7*ee,!1);return ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,z,.7*ee,0,0,z,0)),ae}),go.Shape.defineFigureGenerator("TripleFanBlades",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*ee,.65*z,.3*ee,.65*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.35*z,.5*ee,.35*z,.3*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.3*z,.6*ee,.1*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*ee,.2*z,ee,.35*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,ee,.7*z,.6*ee,.9*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*ee,.8*z,ee,.65*z,.95*ee)),ae}),go.Shape.defineFigureGenerator("CentrifugalPump",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,0,.075*ee,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,ee,0,ee,.4*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.4*ee,.8*z,ee,.85*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),ae}),go.Shape.defineFigureGenerator("Battery",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.4*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.1*ee));var le=new go.PathFigure(0,.6*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Move,0,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.4*ee)),ae}),go.Shape.defineFigureGenerator("Delete",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*.5,ue=.5,pe=.5,Ce=new go.PathFigure((ue-re)*z,pe*ee,!0);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee));var Pe=new go.PathFigure(.15*z,.5*ee,!1);return ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.85*z,.5*ee)),ae}),go.Shape.defineFigureGenerator("Flag",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.1*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,0,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.1*ee,.15*z,0,.35*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*ee,.65*z,.2*ee,.85*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.5*ee,.85*z,.6*ee,.65*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.35*z,.4*ee,.15*z,.4*ee).close()),ae}),go.Shape.defineFigureGenerator("Help",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*.5,ue=.5,pe=.5,Ce=new go.PathFigure((ue-re)*z,pe*ee,!1);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee).close()),re=.05,le=ce*.05,ue=.5,pe=.8;var Pe=new go.PathFigure((ue-re)*z,pe*ee,!1);return ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee).close()),Pe.add(new go.PathSegment(go.PathSegment.Move,.5*z,.7*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,.75*z,.475*ee,.75*z,.225*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.35*ee,.4*z,.2*ee,.3*z,.25*ee)),ae}),go.Shape.defineFigureGenerator("Location",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,ee,!0).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.975*z,.025*ee,.5*z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*z,.5*ee,.5*z,0,.025*z,.025*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*z,.2*ee)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*z,.3*ee,.1*z,.1*ee).close()))}),go.Shape.defineFigureGenerator("Lock",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var le=new go.PathFigure(.2*z,.5*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.2*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.3*ee,.25*z,0,.75*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.3*ee)),ae}),go.Shape.defineFigureGenerator("Unlocked",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var le=new go.PathFigure(.2*z,.5*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.2*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.3*ee,.25*z,0,.75*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.35*ee)),ae}),go.Shape.defineFigureGenerator("Gear",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.9375*z,.56246875*ee,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*z,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.80621875*z,.4375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.763*z,.3316875*ee,.79840625*z,.39915625*ee,.7834375*z,.3635*ee)).add(new go.PathSegment(go.PathSegment.Line,.8566875*z,.23796875*ee)).add(new go.PathSegment(go.PathSegment.Line,.76825*z,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.67596875*z,.24184375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*z,.19378125*ee,.64228125*z,.2188125*ee,.603875*z,.2021875*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*z,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*z,.19378125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*z,.239375*ee,.39759375*z,.20190625*ee,.36053125*z,.2176875*ee)).add(new go.PathSegment(go.PathSegment.Line,.2379375*z,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.14953125*z,.2379375*ee)).add(new go.PathSegment(go.PathSegment.Line,.23934375*z,.3278125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*z,.4375*ee,.21765625*z,.36059375*ee,.201875*z,.397625*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*z,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*z,.5625*ee)).add(new go.PathSegment(go.PathSegment.Line,.1938125*z,.5625*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*z,.67596875*ee,.20221875*z,.603875*ee,.21884375*z,.64228125*ee)).add(new go.PathSegment(go.PathSegment.Line,.1495625*z,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.238*z,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.3316875*z,.76296875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*z,.80621875*ee,.36353125*z,.78340625*ee,.3991875*z,.79840625*ee)).add(new go.PathSegment(go.PathSegment.Line,.43753125*z,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.80621875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*z,.760625*ee,.602375*z,.79809375*ee,.63946875*z,.78234375*ee)).add(new go.PathSegment(go.PathSegment.Line,.76828125*z,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.85671875*z,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.76065625*z,.67221875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*z,.56246875*ee,.78234375*z,.63940625*ee,.798125*z,.602375*ee)).add(new go.PathSegment(go.PathSegment.Line,.9375*z,.56246875*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*z,.5*ee,.1*z,.1*ee).close()))}),go.Shape.defineFigureGenerator("Hand",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,.3*ee,0,.375*ee,.05*z,.325*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.45*z,.075*ee,.3*z,.225*ee,.4*z,.175*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.525*z,.075*ee,.46*z,.05*ee,.525*z,.05*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.4*ee,.525*z,.275*ee,.475*z,.325*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.55*ee,z,.4*ee,z,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.425*z,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.6*z,.7*ee,.675*z,.55*ee,.675*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.575*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.575*z,.85*ee,.65*z,.7*ee,.65*z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.525*z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.535*z,ee,.61*z,.85*ee,.61*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,.435*z,ee,0,ee).close()),ae}),go.Shape.defineFigureGenerator("Map",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.2*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),re.add(new go.PathSegment(go.PathSegment.Move,.25*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.8*ee)),ae}),go.Shape.defineFigureGenerator("Eject",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee*.7)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.7).close());var le=new go.PathFigure(0,ee*.6,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,0).close()),ae}),go.Shape.defineFigureGenerator("Pencil",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*ee).close()))}),go.Shape.defineFigureGenerator("Building",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*1,ee*1,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.85)),re.add(new go.PathSegment(go.PathSegment.Line,.046*z,ee*.85)),re.add(new go.PathSegment(go.PathSegment.Line,.046*z,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.3)),re.add(new go.PathSegment(go.PathSegment.Line,.046*z,ee*.3)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,ee*.3)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee*.3)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,ee*.85)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee*.85).close());var le=new go.PathFigure(.126*z,.85*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.126*z,.45*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.322*z,.45*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.322*z,.85*ee).close());var ue=new go.PathFigure(.402*z,.85*ee,!1);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.402*z,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.598*z,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.598*z,.85*ee).close());var pe=new go.PathFigure(.678*z,.85*ee,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.678*z,.45*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.874*z,.45*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.874*z,.85*ee).close());var Ce=new go.PathFigure(.5*z,.1*ee,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*z,.3*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*z,.3*ee).close()),ae}),go.Shape.defineFigureGenerator("Staircase",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee*1,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*.8)),re.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.8)),re.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.6)),re.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.6)),re.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.4)),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*.4)),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*.2)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.2)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.15)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.15)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.35)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.35)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.15,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.15,ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.95).close()),ae}),go.Shape.defineFigureGenerator("5Bars",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee*1,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.184,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.184,ee*(1-.184)).close());var le=new go.PathFigure(z*.204,ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.204,ee*(1-.184))),le.add(new go.PathSegment(go.PathSegment.Line,z*.388,ee*(1-.184*2))),le.add(new go.PathSegment(go.PathSegment.Line,z*.388,ee*1).close());var ue=new go.PathFigure(z*.408,ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.408,ee*(1-.184*2))),ue.add(new go.PathSegment(go.PathSegment.Line,z*.592,ee*(1-.184*3))),ue.add(new go.PathSegment(go.PathSegment.Line,z*.592,ee*1).close());var pe=new go.PathFigure(z*.612,ee,!0);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*.612,ee*(1-.184*3))),pe.add(new go.PathSegment(go.PathSegment.Line,z*.796,ee*(1-.184*4))),pe.add(new go.PathSegment(go.PathSegment.Line,z*.796,ee*1).close());var Ce=new go.PathFigure(z*.816,ee,!0);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,z*.816,ee*(1-.184*4))),Ce.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-.184*5))),Ce.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1).close()),ae}),go.Shape.defineFigureGenerator("PC",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,0).close());var le=new go.PathFigure(z*.055,.07*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.07)),le.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.055,ee*.1).close());var ue=new go.PathFigure(z*.055,.13*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.13)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.16)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.055,ee*.16).close());var pe=new go.PathFigure(z*.055,.18*ee,!0);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.18)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.21)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.055,ee*.21).close());var Ce=new go.PathFigure(z*1,0,!0);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,z*.4,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.65)),Ce.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.65).close()),ae}),go.Shape.defineFigureGenerator("Plane",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.55*z,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.475*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.35*z,.525*ee,0,.4*ee,.225*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,.475*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.325*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.325*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.85*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.2*ee,.975*z,0,z,.08*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.55*z,ee).close()),ae}),go.Shape.defineFigureGenerator("Key",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*1,ee*.5,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.9,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.15,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.15,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.6,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.65,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.7,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.85,.575*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.9,.6*ee).close()),re.add(new go.PathSegment(go.PathSegment.Move,.17*z,.425*ee)),re.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*z,.5*ee,.075*z,.075*ee).close()),ae}),go.Shape.defineFigureGenerator("FilmTape",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,270,180,z*0,z*.3,z*.055)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.08,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.08,ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*1),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*1),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*2),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*2),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*3),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*3),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*4),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*4),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*5),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*5),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*6),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*6),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*7),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*7),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*8),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*8),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*9),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*9),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*10),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*10),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*11),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*11),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*12),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*12),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*13),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*13),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*14),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*14),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*15),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*15),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1));var le=new go.PathFigure(0,0,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*0)),le.add(new go.PathSegment(go.PathSegment.Arc,270,-180,z*1,z*.3,z*.055)),le.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1));var ue=new go.PathFigure(z*.11,ee*.1,!1);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*0),ee*.1)),ue.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*0),ee*.8)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.11,ee*.8).close());var pe=new go.PathFigure(z*(.11+.24133333*1+.028*1),ee*.1,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*1),ee*.1)),pe.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*1),ee*.8)),pe.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*1),ee*.8).close());var Ce=new go.PathFigure(z*(.11+.24133333*2+.028*2),ee*.1,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),ee*.1)),Ce.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),ee*.8)),Ce.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*2),ee*.8).close()),ae}),go.Shape.defineFigureGenerator("FloppyDisk",function(fe,z,ee){var ae=new go.Geometry,re=8,le=re*ce,ue=new go.PathFigure(re,0,!1);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.86,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.14)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-re,ee,z,ee-le,z-le,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,re,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-re,le,ee,0,ee-le)),ue.add(new go.PathSegment(go.PathSegment.Line,0,re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,re,0,0,le,le,0).close());var pe=new go.PathFigure(z*.83,0,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*.83,ee*.3)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*.3)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*0).close());var Ce=new go.PathFigure(z*.83,ee*1,!1);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,z*.83,ee*.5)),Ce.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*.5)),Ce.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*1).close());var Pe=new go.PathFigure(z*.78,ee*.05,!1);return ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.05)),Pe.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.25)),Pe.add(new go.PathSegment(go.PathSegment.Line,z*.78,ee*.25).close()),ae}),go.Shape.defineFigureGenerator("SpeechBubble",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=15),ae=Math.min(ae,z/3),ae=Math.min(ae,ee/3);var re=ae*ce,le=ee*.8,ue=new go.Geometry,pe=new go.PathFigure(ae,0,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z-ae,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z,ae,z-re,0,z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,z,le-ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,le,z,le-re,z-re,le)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.7,le)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.55,le)),pe.add(new go.PathSegment(go.PathSegment.Line,ae,le)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,le-ae,re,le,0,le-re)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,re,re,0).close()),re>1?(ue.spot1=new go.Spot(0,0,re,re),ue.spot2=new go.Spot(1,.8,-re,-re)):(ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(1,.8)),ue}),go.Shape.defineFigureGenerator("Repeat",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*.45,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*.9)),re.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.9)),re.add(new go.PathSegment(go.PathSegment.Line,z*.65,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*.45).close());var le=new go.PathFigure(z*1,ee*.55,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.55)),le.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*.55)),le.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*.1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*.55).close()),ae}),go.Shape.defineFigureGenerator("Windows",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()).add(new go.PathSegment(go.PathSegment.Move,.4*z,.4*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*z,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.2*z,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,.2*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.1*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.1*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.1*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee).close()))}),go.Shape.defineFigureGenerator("Terminal",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*.1,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.9)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*.9).close());var le=new go.PathFigure(z*.1,ee*.2,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.1,ee*.25)),le.add(new go.PathSegment(go.PathSegment.Line,z*.22,ee*.285)),le.add(new go.PathSegment(go.PathSegment.Line,z*.1,ee*.32)),le.add(new go.PathSegment(go.PathSegment.Line,z*.1,ee*.37)),le.add(new go.PathSegment(go.PathSegment.Line,z*.275,ee*.32)),le.add(new go.PathSegment(go.PathSegment.Line,z*.275,ee*.25).close());var ue=new go.PathFigure(z*.28,ee*.37,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.37)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.41)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.28,ee*.41).close()),ae}),go.Shape.defineFigureGenerator("Beaker",function(fe,z,ee){var ae=new go.Geometry,re=15,le=re*ce,ue=new go.PathFigure(z*.62,ee*.475,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-re,ee,z,ee-le,z-le,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,re,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-re,le,ee,0,ee-le)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.38,ee*.475)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.38,ee*.03)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.62,ee*.03).close()),le>1?(ae.spot1=new go.Spot(0,0,le,le),ae.spot2=new go.Spot(1,1,-le,-le)):(ae.spot1=go.Spot.TopLeft,ae.spot2=go.Spot.BottomRight),ae}),go.Shape.defineFigureGenerator("Download",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*1,!0);ae.add(re);var le=.1/.3;re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.755,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.93,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.61,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.39,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.07,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*(1-le)).close());var ue=new go.PathFigure(z*.4,ee*0,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.26,ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.66)),ue.add(new go.PathSegment(go.PathSegment.Line,z*(1-.26),ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*0).close()),ae}),go.Shape.defineFigureGenerator("Bin",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*1,!0);ae.add(re);var le=.1/.3;return re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.755,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.93,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.61,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.39,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.07,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*(1-le)).close()),ae}),go.Shape.defineFigureGenerator("Upload",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*1,!0);ae.add(re);var le=.1/.3;re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.755,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.93,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.61,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.39,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.07,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*(1-le)).close());var ue=new go.PathFigure(z*.5,ee*0,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.26,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.63)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.63)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.74,ee*.25).close()),ae}),go.Shape.defineFigureGenerator("EmptyDrink",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*.15,ee*0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.85,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*1).close()),ae}),go.Shape.defineFigureGenerator("Drink",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*.15,ee*0,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.85,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*1).close());var le=new go.PathFigure(z*.235,ee*.28,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.765,ee*.28)),le.add(new go.PathSegment(go.PathSegment.Line,z*.655,ee*.97)),le.add(new go.PathSegment(go.PathSegment.Line,z*.345,ee*.97).close()),ae}),go.Shape.defineFigureGenerator("4Arrows",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*.5,ee*0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.65,ee*.25)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.25)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.35)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.5)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.65)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.65,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.65)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*.5)),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.35)),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.25)),re.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.25).close()),ae}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},98598:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Gn={},vn="5.0",Ke={},tt=null,Pt=!1,oe=!1,Ue=null,Fe=!1,me=null,ce=null,be=0;be<arguments.length;be++){var Le=arguments[be];if(Le!==null)switch(typeof Le){case"number":vn=Le.toFixed(1);break;case"string":Le.match(new RegExp("^[0-9]\\.[0-9]+$"))?vn=Le:Ue=Le;break;case"object":typeof Le.is3D!="undefined"?tt=Le:Ke=Le;break;case"boolean":Pt=Le,oe=!0;break}}tt===null&&(tt={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Ke.material_id!==void 0&&!oe&&(Pt=!0)),Ue!==null&&Ke.id===void 0&&(Ke.id=Ue);var Se="",ke="",ve=!1,xe=null,fe=null,z=null,ee=!1,ae=null,re=null,le=null,ue=null,pe=null;Ke.height!==void 0&&(Ke.height=Math.round(Ke.height)),Ke.width!==void 0&&(Ke.width=Math.round(Ke.width));var Ce=function(pt){return parseFloat(pt)>4?parseFloat(pt):5};Gn.setHTML5Codebase=function(pt,gt){ce=pt,ft(pt,gt)},Gn.setJavaCodebase=Gn.setJavaCodebaseVersion=Gn.isCompiledInstalled=Gn.setPreCompiledScriptPath=Gn.setPreCompiledResourcePath=function(){},Gn.setHTML5CodebaseVersion=function(pt,gt){var mt=parseFloat(pt);if(mt!==NaN&&mt<5){console.log("The GeoGebra HTML5 codebase version "+mt+" is deprecated. Using version latest instead.");return}me=pt,ot(pt,gt)},Gn.getHTML5CodebaseVersion=function(){return fe},Gn.getParameters=function(){return Ke},Gn.setFontsCSSURL=function(pt){ue=pt},Gn.setGiacJSURL=function(pt){},Gn.setJNLPFile=function(pt){Se=pt},Gn.setJNLPBaseDir=function(pt){},Gn.inject=function(){function pt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var gt="auto",mt=Ke.id,Mt,Ct=!1,zt=0;zt<arguments.length;zt++){var St=arguments[zt];typeof St=="string"?(St=St.toLowerCase(),St.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?gt=St:mt=arguments[zt]):typeof St=="boolean"?Ct=St:St instanceof HTMLElement&&(Mt=St)}bt();function bt(){if(!Fe){setTimeout(bt,200);return}gt=vt(gt);var at=Mt||document.getElementById(mt);if(!at){console.log("possibly bug on ajax loading? ");return}if(Gn.removeExistingApplet(at,!1),Ke.width===void 0&&at.clientWidth&&(Ke.width=at.clientWidth),Ke.height===void 0&&at.clientHeight&&(Ke.height=at.clientHeight),!(Ke.width&&Ke.height)&>==="html5"&&(delete Ke.width,delete Ke.height),xe=gt,gt==="screenshot")ze(at,Ke);else{var nt=!1;Ke.hasOwnProperty("playButton")&&Ke.playButton||Ke.hasOwnProperty("clickToLoad")&&Ke.clickToLoad?nt=!0:Ke.hasOwnProperty("playButtonAutoDecide")&&Ke.playButtonAutoDecide&&(nt=(!Pe()||pt())&&Ie()),nt?(xe="screenshot",et(at,Ke,Ct,gt)):qe(at,Ke,Ct)}}};function Pe(){try{return window.self!==window.top}catch(pt){return!0}}function Ie(){return Ke.hasOwnProperty("screenshotGenerator")&&Ke.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Gn.getViews=function(){return tt},Gn.isJavaInstalled=function(){return!1};var Oe=function(pt){var gt=function(zt){var St=JSON.parse(zt),bt=function(we){return we.type=="G"||we.type=="E"},at=St.elements?St.elements.filter(bt)[0]:St;if(!at||!at.url){mt();return}Ke.fileName=at.url,Ae(at.settings||{}),tt.is3D=!0;var nt="https://www.geogebra.org/images/";Gn.setPreviewImage(ae||at.previewUrl,nt+"GeoGebra_loading.png",nt+"applet_play.png"),pt()},mt=function(){Ke.onError&&Ke.onError(),xt("Error: Fetching material (id "+Ke.material_id+") failed.",Ke)},Mt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ct="/materials/"+Ke.material_id+"?scope=basic";je("https://"+Mt+"/api/proxy.php?path="+encodeURIComponent(Ct),gt,mt)};function Ae(pt){var gt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(mt){pt[mt]=!!pt[mt]}),gt.forEach(function(mt){Ke[mt]===void 0&&pt[mt]!==void 0&&(Ke[mt]=pt[mt])}),Ke.showToolBarHelp===void 0&&(Ke.showToolBarHelp=Ke.showToolBar)}function je(pt,gt,mt){var Mt=new XMLHttpRequest;Mt.open("GET",pt),Mt.onload=function(){gt(Mt.responseText)},Mt.onerror=mt,Mt.send()}Gn.isHTML5Installed=function(){return!0},Gn.getLoadedAppletType=function(){return xe},Gn.setPreviewImage=function(pt,gt,mt){ae=pt,re=gt,le=mt},Gn.removeExistingApplet=function(pt,gt){var mt;typeof pt=="string"&&(pt=document.getElementById(pt)),xe=null;var Mt=null;for(mt=0;mt<pt.childNodes.length;mt++){var Ct=pt.childNodes[mt],zt=Ct.className;zt==="applet_screenshot"?gt?(Ct.style.display="block",xe="screenshot"):Ct.style.display="none":zt!=="applet_scaler prerender"&&(pt.removeChild(Ct),Mt=zt&&zt.indexOf("appletParameters")!=-1?Ct.id:null,mt--)}var St=Ke.id!==void 0?Ke.id:Mt,bt=window[St];bt&&typeof bt.getBase64=="function"&&(bt.remove(),window[St]=null)},Gn.refreshHitPoints=function(){if(Ce(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var pt=Gn.getAppletObject();return pt&&typeof pt.recalculateEnvironments=="function"?(pt.recalculateEnvironments(),!0):!1},Gn.startAnimation=function(){var pt=Gn.getAppletObject();return pt&&typeof pt.startAnimation=="function"?(pt.startAnimation(),!0):!1},Gn.stopAnimation=function(){var pt=Gn.getAppletObject();return pt&&typeof pt.stopAnimation=="function"?(pt.stopAnimation(),!0):!1},Gn.getAppletObject=function(){var pt=Ke.id!==void 0?Ke.id:"ggbApplet";return window[pt]},Gn.resize=function(){};var Be=function(pt,gt,mt){var Mt=document.createElement("param");Mt.setAttribute("name",gt),Mt.setAttribute("value",mt),pt.appendChild(Mt)},_e=function(pt){return pt&&pt!=="false"},qe=function(pt,gt,mt){Ce(fe)<=4.2&&(mt=!0);var Mt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==fe||ggbHTML5LoadedCodebaseIsWebSimple&&!ee)&&(Mt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ct=document.createElement("div");Ct.classList.add("appletParameters","notranslate");var zt=gt.width,St=gt.height;if(gt.disableAutoScale=gt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():gt.disableAutoScale,gt.width!==void 0)if(Ce(fe)<=4.4)_e(gt.showToolBar)&&(gt.height-=7),_e(gt.showAlgebraInput)&&(gt.height-=37),gt.width<605&&_e(gt.showToolBar)&&(gt.width=605,zt=605);else{var bt=100;(_e(gt.showToolBar)||_e(gt.showMenuBar))&&(gt.hasOwnProperty("customToolBar")&&(gt.customToolbar=gt.customToolBar),bt=_e(gt.showMenuBar)?245:155),zt<bt&&(gt.width=bt,zt=bt)}Ct.style.border="none",Ct.style.display="inline-block";for(var at in gt)gt.hasOwnProperty(at)&&at!=="appletOnLoad"&&Ct.setAttribute("data-param-"+at,gt[at]);ue&&Ct.setAttribute("data-param-fontscssurl",ue),Gn.resize=function(){GGBAppletUtils.responsiveResize(pt,gt)},window.addEventListener("resize",function(ht){Gn.resize()});var nt=typeof gt.appletOnLoad=="function"?gt.appletOnLoad:function(){};if(!mt&>.width!==void 0){gt.hasOwnProperty("showSplash")||Ct.setAttribute("data-param-showSplash","false");var we=pt.querySelector(".applet_scaler.prerender"),Te=we!==null;if(Te)var Ve=we.querySelector(".ggb_preview");else{var Ve=dt(zt,St,gt.borderColor,!1);we=document.createElement("div"),we.className="applet_scaler",we.style.position="relative",we.style.display="block",we.style.width=zt+"px",we.style.height=St+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(we,"66%"),Ce(fe)>=5?(gt.appletOnLoad=function(ht){var It=pt.querySelector(".ggb_preview");It&&It.parentNode.removeChild(It),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(we),window.GGBT_wsf_view&&$(window).trigger("resize"),nt(ht)},Te||we.appendChild(Ve)):Ct.appendChild(Ve),we.appendChild(Ct),Te||pt.appendChild(we),setTimeout(function(){Gn.resize()},1)}else{var Ze=document.createElement("div");Ze.className="applet_scaler",Ze.style.position="relative",Ze.style.display="block",Ze.appendChild(Ct),pt.appendChild(Ze),gt.appletOnLoad=function(ht){Gn.resize(),nt(ht)}}function Ee(ht,It){It&&typeof It.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ht,It.appletOnLoad):renderGGBElement(ht),xt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",It)}function Ge(ht,It){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ht,params:It}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(qt){Ee(qt.article,qt.params)}),html5AppletsToProcess=null)},Ce(fe)<5&&(ht.className+=" geogebraweb")):Ee(ht,It)}if(Mt){scriptLoadStarted=!0;for(var He=0;He<Ct.childNodes.length;He++){var We=Ct.childNodes[He].tagName;We==="TABLE"&&(Ct.removeChild(Ct.childNodes[He]),He--)}if(ggbHTML5LoadedScript!==null){var Xe=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Xe!=null&&Xe.parentNode.removeChild(Xe)}var ct=document.createElement("script"),Et=function(){Ge(Ct,gt)};ct.src=ke+z,ggbHTML5LoadedCodebaseIsWebSimple=ee,ggbHTML5LoadedCodebaseVersion=fe,ggbHTML5LoadedScript=ct.src,xt("GeoGebra HTML5 codebase loaded: '"+ke+"'.",gt),!ce&&(!me||me=="5.0")?(ee?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Et()):ke.requirejs?__webpack_require__.e(7374).then(function(){var ht=[__webpack_require__(97374)];Et.apply(null,ht)}.bind(this)).catch(__webpack_require__.oe):(ct.onload=Et,pt.appendChild(ct))}else Ge(Ct,gt);gt.height=St,gt.width=zt},ze=function(pt,gt,mt){var Mt=dt(gt.width,gt.height,gt.borderColor,mt),Ct=document.createElement("div");Ct.style.position="relative",Ct.style.display="block",Ct.style.width=gt.width+"px",Ct.style.height=gt.height+"px",Ct.className="applet_screenshot applet_scaler"+(mt?" applet_screenshot_play":""),Ct.appendChild(Mt);var zt=GGBAppletUtils.getScale(gt,pt,mt);mt?(pt.appendChild(lt()),window.GGBT_wsf_view||(pt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ct,"66%"),pt.appendChild(Ct),zt!==1&&!isNaN(zt)&&(GGBAppletUtils.scaleElement(Ct,zt),Ct.style.width=gt.width+"px",Ct.style.height=gt.height+"px",Ct.parentNode.style.width=gt.width*zt+"px",Ct.parentNode.style.height=gt.height*zt+"px"),Gn.resize=function(){Ye(pt,Mt,Ct,mt)},window.addEventListener("resize",function(St){Gn.resize()}),Gn.resize()};function Ye(pt,gt,mt,Mt){if(pt.contains(gt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(pt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(pt)}var Ct=GGBAppletUtils.getScale(Ke,pt,Mt);mt.parentNode!==null&&(!isNaN(Ct)&&Ct!==1?(GGBAppletUtils.scaleElement(mt,Ct),mt.parentNode.style.width=Ke.width*Ct+"px",mt.parentNode.style.height=Ke.height*Ct+"px"):(GGBAppletUtils.scaleElement(mt,1),mt.parentNode.style.width=Ke.width+"px",mt.parentNode.style.height=Ke.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(pt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Gn.onExitFullscreen=function(pt,gt){gt.appendChild(pt)};var et=function(pt,gt,mt,Mt){ze(pt,gt,!0);for(var Ct=function(){var bt=[];for(St=0;St<pt.childNodes.length;St++)bt.push(pt.childNodes[St]);if(window.GGBT_wsf_view){var at=window.GGBT_wsf_view.renderFullScreen(pt,gt.id),nt=document.getElementById("fullscreencontainer"),we=jQuery(pt).find(".fullscreencontent");we.length>0?(at.remove(),we.attr("id","fullscreencontent").show(),jQuery(nt).append(we),window.dispatchEvent(new Event("resize"))):qe(at,gt,!1),window.GGBT_wsf_view.launchFullScreen(nt)}else xe=Mt,qe(pt,gt,!1);if(!window.GGBT_wsf_view)for(St=0;St<bt.length;St++)pt.removeChild(bt[St])},zt=pt.getElementsByClassName("ggb_preview_play"),St=0;St<zt.length;St++)zt[St].addEventListener("click",Ct,!1),zt[St].addEventListener("ontouchstart",Ct,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(pt),Ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},lt=function(){var pt=document.createElement("div");if(pt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var gt='.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");}',mt=document.createElement("style");mt.styleSheet?mt.styleSheet.cssText=gt:mt.appendChild(document.createTextNode(gt)),document.getElementsByTagName("head")[0].appendChild(mt)}return pt},dt=function(pt,gt,mt,Mt){var Ct=document.createElement("div");Ct.className="ggb_preview",Ct.style.position="absolute",Ct.style.zIndex="90",Ct.style.width=pt-2+"px",Ct.style.height=gt-2+"px",Ct.style.top="0px",Ct.style.left="0px",Ct.style.overflow="hidden",Ct.style.backgroundColor="white";var zt="lightgrey";mt!==void 0&&(mt==="none"?zt="transparent":zt=mt),Ct.style.border="1px solid "+zt;var St=document.createElement("img");if(St.style.position="relative",St.style.zIndex="1000",St.style.top="-1px",St.style.left="-1px",ae!==null&&St.setAttribute("src",ae),St.style.opacity=.7,re!==null){var bt,at,nt;if(!Mt){bt=document.createElement("img"),bt.style.position="absolute",bt.style.zIndex="1001",bt.style.opacity=1,St.style.opacity=.3,at=360,at>pt/4*3&&(at=pt/4*3),nt=at/5.8,bt.setAttribute("src",re),bt.setAttribute("width",at),bt.setAttribute("height",nt);var we=(pt-at)/2,Te=(gt-nt)/2;bt.style.left=we+"px",bt.style.top=Te+"px",Ct.appendChild(bt)}}return Ct.appendChild(St),Ct},vt=function(pt){return pt=pt.toLowerCase(),pt==="html5"||pt==="screenshot"?pt:"html5"},Je=["web","webSimple","web3d","tablet","tablet3d","phone"],ot=function(pt,gt){if(fe=pt,gt){ft(fe,!0);return}var mt=!Pt;if(mt){var Mt=Ce(fe);!isNaN(Mt)&&Mt<4.4&&(mt=!1)}var Ct,zt;window.location.protocol.substr(0,4)==="http"?Ct=window.location.protocol:Ct="http:";var St=fe.indexOf("//");St>0?zt=fe:St===0?zt=Ct+fe:zt="https://www.geogebra.org/apps/5.2.814.0/";for(var bt in Je)if(fe.slice(Je[bt].length*-1)===Je[bt]||fe.slice((Je[bt].length+1)*-1)===Je[bt]+"/"){ft(zt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&mt&&!tt.is3D&&!tt.AV&&!tt.SV&&!tt.CV&&!tt.EV2&&!tt.CP&&!tt.PC&&!tt.DA&&!tt.FI&&!tt.PV&&!_e(Ke.showToolBar)&&!_e(Ke.showMenuBar)&&!_e(Ke.showAlgebraInput)&&!_e(Ke.enableRightClick)&&(!Ke.appName||Ke.appName=="classic")?zt+="webSimple/":zt+="web3d/",ft(zt,!1)},ft=function(pt,gt){if(pt.requirejs){ke=pt;return}pt.slice(-1)!=="/"&&(pt+="/"),ke=pt,gt===null&&(gt=pt.indexOf("http")===-1),ve=gt,z="web.nocache.js",ee=!1;var mt=ke.split("/");mt.length>1&&(!gt&&mt[mt.length-2]==="webSimple"?(z="webSimple.nocache.js",ee=!0):Je.indexOf(mt[mt.length-2])>=0&&(z=mt[mt.length-2]+".nocache.js")),mt=pt.split("/"),fe=mt[mt.length-3],fe.substr(0,4)==="test"?fe=fe.substr(4,1)+"."+fe.substr(5,1):(fe.substr(0,3)==="war"||fe.substr(0,4)==="beta")&&(fe="5.0");var Mt=parseFloat(fe);Mt!==NaN&&Mt<5&&pt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Mt+" is deprecated. Using version latest instead."),ot("5.0",gt))},xt=function(pt,gt){window.console&&window.console.log&&(!gt||typeof gt.showLogging=="undefined"||gt.showLogging&>.showLogging!=="false")&&console.log(pt)};Ke.material_id!==void 0?Oe(yt):yt();function yt(){var pt=vn;me!==null?pt=me:parseFloat(pt)<5&&(pt="5.0"),ot(pt,!1),ce!==null&&ft(ce,ve),Fe=!0}return Gn},GGBAppletUtils=function(){"use strict";function Gn(){return window.GGBT_wsf_edit!==void 0}function vn(Fe,me){me!=1?(Fe.style.transformOrigin="0% 0% 0px",Fe.style.webkitTransformOrigin="0% 0% 0px",Fe.style.transform="scale("+me+","+me+")",Fe.style.webkitTransform="scale("+me+","+me+")",Fe.style.maxWidth="initial",Fe.querySelector(".ggb_preview")!==null&&(Fe.querySelector(".ggb_preview").style.maxWidth="initial"),Fe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Fe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Fe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Fe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Fe.style.transform="none",Fe.style.webkitTransform="none")}function Ke(Fe,me,ce,be,Le,Se){var ke=null;if(Se!=null&&Se!="")for(var ve=Fe.parentNode;ve!=null;)if((" "+ve.className+" ").indexOf(" "+Se+" ")>-1){ke=ve;break}else ve=ve.parentNode;var xe=0,fe=0,z=0,ee=0,ae=0,re=0,le=0;if(ke)xe=ke.offsetWidth,fe=Math.max(be?ke.offsetWidth:0,ke.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(xe=Math.min(window.innerWidth,document.documentElement.clientWidth),fe=Math.min(window.innerHeight,document.documentElement.clientHeight),z=xe):(xe=window.innerWidth,fe=window.innerHeight,z=window.innerWidth),Fe){var ue=Fe.getBoundingClientRect();ue.left>0&&ue.left<=xe&&(Le===void 0||!Le)&&(document.dir==="rtl"?(ae=xe-ue.width-ue.left,re=z<=480?10:30):(re=ue.left,ae=z<=480?10:30),ee=re+ae)}if(Fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var pe=Fe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ee=40,le=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee=0,le=40)}}return Fe&&((ce===void 0||!ce)&&me>0&&me+ee<xe?xe=me:xe-=ee,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ce===void 0||!ce)&&(fe-=le)),{width:xe,height:fe}}function tt(Fe,me,ce,be,Le){if(Fe.isScreenshoGenerator)return 1;var Se=be!==void 0&&be,ke=Fe.noScaleMargin!=null&&Fe.noScaleMargin,ve=function(pe){return pe&&pe!=="false"},xe=ve(Fe.autoHeight),fe=Ke(me,Fe.width,ce,xe,Se&&window.GGBT_wsf_view||ke,Le),z=parseInt(fe.width),ee=Fe.width,ae=Fe.height;if(ee===void 0){var re=me.querySelector(".appletParameters");re&&(ee=re.offsetWidth,ae=re.offsetHeight)}var le=z/ee,ue=Se?1:fe.height/ae;return ce!==void 0&&!ce&&(le=Math.min(1,le),ue=Math.min(1,ue)),Math.min(le,ue)}function Pt(Fe,me,ce){var be=1,Le,Se=!1;if(Fe.hasOwnProperty("allowUpscale")&&(Se=Fe.allowUpscale),Fe.hasOwnProperty("scale")&&(be=parseFloat(Fe.scale),(isNaN(be)||be===null||be===0)&&(be=1),be>1&&(Se=!0)),me&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Se=!0),!(Fe.hasOwnProperty("disableAutoScale")&&Fe.disableAutoScale))Le=tt(Fe,me,Se,ce,Fe.scaleContainerClass);else return be;return Se&&(!Fe.hasOwnProperty("scale")||be===1)?Le:Math.min(be,Le)}function oe(Fe){var me=Math.min(window.innerWidth,document.documentElement.clientWidth),ce=Math.min(window.innerHeight,document.documentElement.clientHeight),be=Fe.getBoundingClientRect(),Le=(me-be.width)/2,Se=(ce-be.height)/2;Se<0&&(Se=0),Fe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Le<40?Fe.style.left="40px":Fe.style.left=Le+"px",Fe.style.top=Se+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Se<40?Fe.style.top="40px":Fe.style.top=Se+"px",Fe.style.left=Le+"px")}function Ue(Fe,me){var ce=Fe.querySelector(".appletParameters");if(ce){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(me.id!==ce.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Fe)}if(ce.parentElement&&/fullscreen/.test(ce.parentElement.className))return;var be=Pt(me,Fe);Gn()&&ce.setAttribute("data-param-scale",be);for(var Le=null,Se=0;Se<Fe.childNodes.length;Se++)if(Fe.childNodes[Se].className!==void 0&&Fe.childNodes[Se].className.match(/^applet_scaler/)){Le=Fe.childNodes[Se];break}if(Le!==null&&Le.querySelector(".noscale")!==null)return;var ke=me.id!==void 0?me.id:"ggbApplet",ve=window[ke];(ve==null||!ve.recalculateEnvironments)&&Le!==null&&!Le.className.match(/fullscreen/)&&(Le.parentNode.style.transform="",!isNaN(be)&&be!==1?(Le.parentNode.style.width=me.width*be+"px",Le.parentNode.style.height=me.height*be+"px",vn(Le,be)):(vn(Le,1),Le.parentNode.style.width=me.width+"px",Le.parentNode.style.height=me.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&oe(Fe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ce).parents(".content-added-content"))}}return{responsiveResize:Ue,isFlexibleWorksheetEditor:Gn,positionCenter:oe,getScale:Pt,scaleElement:vn}}();__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 Gn=n.location.search;return Gn.indexOf(J)!=-1||Gn.indexOf(K)!=-1}function q(Gn,vn){}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(Gn){var vn=s[L].bindings;s[L].bindings=function(){for(var Ke=vn?vn():{},tt=Gn[webModule.__softPermutationId],Pt=O;Pt<tt.length;Pt++){var oe=tt[Pt];Ke[oe[O]]=oe[P]}return Ke}};var t;function u(){return v(),t}function v(){if(!t){var Gn=o.createElement(Q);if(Gn.id=L,Gn.style.cssText=R+S,Gn.tabIndex=-1,o.body.appendChild(Gn),t=Gn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var vn=document.compatMode==U?V:W;t.write(vn+X),t.close()}}}function w(Gn){function vn(tt){function Pt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var oe=Pt();if(oe){tt();return}function Ue(){if(!oe){if(!Pt())return;oe=!0,tt(),o.removeEventListener&&o.removeEventListener(Z,Ue,!1),Fe&&clearInterval(Fe)}}o.addEventListener&&o.addEventListener(Z,Ue,!1);var Fe=setInterval(function(){Ue()},$)}function Ke(tt){var Pt=u(),oe=Pt.body,Ue=Pt.createElement(_);Ue.language=ab,Ue.crossOrigin=W,Ue.src=tt,webModule.__errFn&&(Ue.onerror=function(){webModule.__errFn(L,new Error(bb+tt))}),oe.appendChild(Ue)}vn(function(){Ke(Gn)})}webModule.__startLoadingFragment=function(Gn){return C(Gn)},webModule.__installRunAsyncCode=function(Gn){var vn=u(),Ke=vn.body,tt=vn.createElement(_);tt.language=ab,tt.text=Gn,Ke.appendChild(tt),Ke.removeChild(tt)};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(Gn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Gn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Gn){var vn=c[Gn];return vn==null?null:vn},r=d,webModule.__errFn=e}function B(){function Gn(Fe){var me=Fe.lastIndexOf(rb);me==-1&&(me=Fe.length);var ce=Fe.indexOf(sb);ce==-1&&(ce=Fe.length);var be=Fe.lastIndexOf(tb,Math.min(ce,me));return be>=O?Fe.substring(O,be+P):W}function vn(Fe){if(!Fe.match(/^\w+:\/\//)){var me=o.createElement(ub);me.src=Fe+vb,Fe=Gn(me.src)}return Fe}function Ke(){var Fe=__gwt_getMetaProperty(wb);return Fe!=null?Fe:W}function tt(){for(var Fe=o.getElementsByTagName(_),me=O;me<Fe.length;++me)if(Fe[me].src.indexOf(xb)!=-1)return Gn(Fe[me].src);return W}function Pt(){var Fe=o.getElementsByTagName(yb);return Fe.length>O?Fe[Fe.length-P].href:W}function oe(){var Fe=o.location;return Fe.href==Fe.protocol+zb+Fe.host+Fe.pathname+Fe.search+Fe.hash}var Ue=Ke();return Ue==W&&(Ue=tt()),Ue==W&&(Ue=Pt()),Ue==W&&oe()&&(Ue=Gn(o.location.href)),Ue=vn(Ue),Ue}function C(Gn){return Gn.match(/^\//)||Gn.match(/^[a-zA-Z]+:\/\//)?Gn:webModule.__moduleBase+Gn}function D(){var Gn=[],vn=O,Ke=[],tt=[];function Pt(Fe){var me=tt[Fe](),ce=Ke[Fe];if(me in ce)return me;var be=[];for(var Le in ce)be[ce[Le]]=Le;throw r&&r(Fe,be,me),null}if(__gwt_isKnownPropertyValue=function(Fe,me){return me in Ke[Fe]},webModule.__getPropMap=function(){var Fe={};for(var me in Ke)Ke.hasOwnProperty(me)&&(Fe[me]=Pt(me));return Fe},webModule.__computePropValue=Pt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var oe;try{oe=Cb;var Ue=oe.indexOf(Db);Ue!=-1&&(vn=parseInt(oe.substring(Ue+P),$),oe=oe.substring(O,Ue))}catch(Fe){}return webModule.__softPermutationId=vn,C(oe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},58788:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Ax:function(){return Ue},Ds:function(){return Fe},KI:function(){return ce},SI:function(){return oe},f1:function(){return Pt}});var tt=Ke(10148);function Pt(be){let Le=!0;if(be.length>0){for(let Se=0;Se<be.length;Se++)if(be[Se].compile_success==0||!be[Se].compile_success){Le=!1;break}}else Le=!1;return Le}function oe(be,Le=""){let Se=[];for(let ke=0;ke<be.length;ke++){let ve=be[ke],xe=Le?`${Le}/${ve.name}`:`${ve.name}`;Se.push({title:ve.name,type:ve.type,isLeaf:ve.type!=="tree",key:xe})}return Se}function Ue(be,Le,Se){for(let ke=0;ke<be.length;ke++){let ve=be[ke];if(ve.key===Le){ve.children=Se;break}ve.children&&Ue(ve.children,Le,Se)}return be}function Fe(be,Le,Se){let ke;return function(){let ve=this,xe=arguments,fe=function(){ke=null,Se||be.apply(ve,xe)},z=Se&&!ke;clearTimeout(ke),ke=setTimeout(fe,Le),z&&be.apply(ve,xe)}}const me=!0,ce=tt.Z.API_SERVER},12963:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return ke}});var tt=Ke(59301),Pt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},oe=Ke(92310),Ue=Ke.n(oe),Fe=Ke(71418),me=Ke(2859),ce=Ke(70635),be=Ke(58130),Le=(ve,xe,fe)=>new Promise((z,ee)=>{var ae=ue=>{try{le(fe.next(ue))}catch(pe){ee(pe)}},re=ue=>{try{le(fe.throw(ue))}catch(pe){ee(pe)}},le=ue=>ue.done?z(ue.value):Promise.resolve(ue.value).then(ae,re);le((fe=fe.apply(ve,xe)).next())}),ke=({data:ve,className:xe,fullWidth:fe,style:z={},onClose:ee,onOk:ae,showFullTools:re,noAssociationId:le})=>{const ue=(0,tt.useRef)(null),pe=(0,tt.useRef)(null),Ce=(0,tt.useRef)(null),Pe=(0,tt.useRef)(null),[Ie,Oe]=(0,tt.useState)(!1),[Ae,je]=(0,tt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,tt.useEffect)(()=>{Ce.current||(Ce.current=document.createElement("style"),document.head.appendChild(Ce.current)),ve!=null&&ve.visible?(document.body.setAttribute("data-custom","y-hidden"),Ce.current.innerHTML=" html { overflow-y: hidden; }",ve!=null&&ve.src&&Be()):(document.body.removeAttribute("data-custom"),Ce.current&&(document.head.removeChild(Ce.current),Ce.current=null))},[ve==null?void 0:ve.visible]);const Be=()=>Le(void 0,null,function*(){Oe(!0),je("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ye=yield(0,be.ZJ)(ve==null?void 0:ve.src);ue.current.src="",ue.current.src=Ye,ue.current.onload=function(){ze()},Oe(!1),je("")}),_e=Ye=>Le(void 0,null,function*(){Oe(!0),je("\u6B63\u5728\u4FDD\u5B58\u4E2D");const et=yield(0,ce.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ve.title,file:Ye.dataUrl}});et!=null&&et.id&&!le?(yield(0,ce.ZP)(`/api/attachments/${ve.id}/add_subitem.json`,{method:"post",body:{subitem_id:et==null?void 0:et.id,settings:JSON.stringify(Ye.state)}})).status===0&&ae():et!=null&&et.id&&ae(et),Oe(!1),je("")}),qe=()=>{const Ye=document.querySelector('a[href="https://markerjs.com/"]');Ye&&Ye.parentNode&&(Ye.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(lt=>{const dt=document.querySelector(lt.name);dt&&dt.setAttribute("title",lt.title)})},ze=()=>{pe.current=new me.hP(ue.current),pe.current.targetRoot=Pe.current,pe.current.addEventListener("render",_e),pe.current.addEventListener("beforeclose",ee),re&&(pe.current.availableMarkerTypes=pe.current.ALL_MARKER_TYPES,pe.current.uiStyleSettings.redoButtonVisible=!0,pe.current.uiStyleSettings.notesButtonVisible=!0,pe.current.uiStyleSettings.zoomButtonVisible=!0,pe.current.uiStyleSettings.zoomOutButtonVisible=!0,pe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=pe.current.uiStyleSettings,pe.current.show(),ve!=null&&ve.snapshotData&&pe.current.restoreState(ve.snapshotData),setTimeout(()=>{window.scrollTo(0,0),qe()},300)};return tt.createElement(tt.Fragment,null,(ve==null?void 0:ve.visible)&&tt.createElement(Fe.Z,{spinning:Ie,tip:Ae,style:{position:"absolute"}},tt.createElement("div",{ref:Pe,className:Ue()(Pt.imageDimensions,xe,fe?Pt.fullWidth:""),style:z},tt.createElement("img",{className:Pt.img,ref:ue}))))}},75890:function(Gn,vn,Ke){"use strict";var tt=Ke(59301),Pt=Ke(95237),oe=Ke(43604),Ue=Ke(99313),Fe=Ke(3113),me=Ke(25711),ce=Ke(93938),be=Ke(48136),Le=Ke(59301);const Se=(0,tt.forwardRef)(({callback:ke,showSaveButton:ve,value:xe=""},fe)=>{const z=(0,tt.useRef)(),ee=[{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 "}]}]}],ae=[{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}`}]}]}],re=pe=>{z.current.setValue(z.current.getValue()+" "+pe.value+" ")},le=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Le.createElement(Pt.Z,{className:ce.Z.lists,gutter:[10,10]},ee.map((pe,Ce)=>Le.createElement(oe.Z,{flex:"110px",className:ce.Z.item},Le.createElement("div",null,Le.createElement(me.Z,{value:`$$${pe.value}$$`}),pe.name),Le.createElement("div",{className:ce.Z.children},pe.children.map((Pe,Ie)=>Le.createElement("div",{key:Ie},Le.createElement("h1",null,Pe.name),Le.createElement(Pt.Z,{gutter:[10,10]},Pe.data.map((Oe,Ae)=>Le.createElement(oe.Z,{key:Ae,onClick:()=>re(Oe),className:ce.Z.diamond},Le.createElement(me.Z,{value:"`$$"+Oe.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Le.createElement(Pt.Z,{className:ce.Z.lists,gutter:[10,10]},ae.map((pe,Ce)=>Le.createElement(oe.Z,{flex:"110px",className:ce.Z.item},Le.createElement("div",null,Le.createElement(me.Z,{value:"`$$"+pe.value+"$$`"}),pe.name),Le.createElement("div",{className:ce.Z.children},pe.children.map((Pe,Ie)=>Le.createElement("div",{key:Ie},Pe.name&&Le.createElement("h1",null,Pe.name),Le.createElement(Pt.Z,{gutter:[10,10]},Pe.data.map((Oe,Ae)=>Le.createElement(oe.Z,{key:Ae,onClick:()=>re(Oe),className:ce.Z.diamond},Le.createElement(me.Z,{value:"`$$"+Oe.value+"$$`"}))))))))))}],ue=()=>{var pe=document.createElement("div");pe.innerHTML=z.current.getValue();var Ce=pe.innerText;return ke&&ke(Ce),Ce};return(0,tt.useImperativeHandle)(fe,()=>({getData:ue})),Le.createElement("div",{className:ce.Z.mathWrap},Le.createElement(Ue.default,{defaultActiveKey:"1",items:le}),Le.createElement("math-field",{locale:"zh_cn",className:ce.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:z,style:{width:800,marginTop:30,fontSize:18}},xe||""),ve&&Le.createElement("div",{className:ce.Z.button},Le.createElement(Fe.ZP,{size:"large",onClick:ue,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});vn.Z=Se},97267:function(Gn,vn,Ke){"use strict";var tt=Ke(59301),Pt=Ke(93314),oe=Ke(3113),Ue=Object.defineProperty,Fe=Object.defineProperties,me=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,Se=(fe,z,ee)=>z in fe?Ue(fe,z,{enumerable:!0,configurable:!0,writable:!0,value:ee}):fe[z]=ee,ke=(fe,z)=>{for(var ee in z||(z={}))be.call(z,ee)&&Se(fe,ee,z[ee]);if(ce)for(var ee of ce(z))Le.call(z,ee)&&Se(fe,ee,z[ee]);return fe},ve=(fe,z)=>Fe(fe,me(z));const xe=({img:fe,buttonProps:z={},styles:ee={},customText:ae,ButtonText:re,ButtonClick:le,Buttonclass:ue,ButtonTwo:pe,imgStyles:Ce,loading:Pe=!1})=>tt.createElement("section",{className:"tc animated fadeIn",style:ke(ke({},{color:"#999",margin:"100px auto",visibility:Pe?"hidden":"visible"}),ee)},tt.createElement("img",{src:fe||Pt,style:ve(ke({},Ce),{pointerEvents:"none",userSelect:"none"})}),tt.createElement("p",{className:"mt20 font14"},ae||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),re&&tt.createElement(oe.ZP,ke({className:ue,onClick:le},z),re),pe&&pe);vn.Z=xe},79646:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return ue}});var tt=Ke(59301),Pt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},oe=Ke(3113),Ue=Ke(12497),Fe=Ke(48551),me=Ke(6848),ce=Ke(58130),be=Ke(79124),Le=Ke(97267),Se=Ke(10148),ke=Ke(63486),ve=Ke(59301),xe=Object.defineProperty,fe=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(pe,Ce,Pe)=>Ce in pe?xe(pe,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):pe[Ce]=Pe,re=(pe,Ce)=>{for(var Pe in Ce||(Ce={}))z.call(Ce,Pe)&&ae(pe,Pe,Ce[Pe]);if(fe)for(var Pe of fe(Ce))ee.call(Ce,Pe)&&ae(pe,Pe,Ce[Pe]);return pe},le=(pe,Ce,Pe)=>new Promise((Ie,Oe)=>{var Ae=_e=>{try{Be(Pe.next(_e))}catch(qe){Oe(qe)}},je=_e=>{try{Be(Pe.throw(_e))}catch(qe){Oe(qe)}},Be=_e=>_e.done?Ie(_e.value):Promise.resolve(_e.value).then(Ae,je);Be((Pe=Pe.apply(pe,Ce)).next())}),ue=({editOffice:pe="view",data:Ce,theme:Pe,type:Ie,filename:Oe,monacoEditor:Ae,className:je,style:Be,close:_e,onClose:qe,hasMask:ze,disabledDownload:Ye,onImgDimensions:et,showNodata:lt,recordInfo:dt})=>{const[vt,Je]=(0,tt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[ot,ft]=(0,tt.useState)(""),[xt,yt]=(0,tt.useState)(),pt=window.ENV==="build"?"/react/build":"",gt=location.host.startsWith("localhost")?Se.Z.PROXY_SERVER:Se.Z.API_SERVER,Mt=10*(1024*1024),Ct=(0,tt.useRef)();Ce!=null&&Ce.startsWith("/api")&&Ie!=="txt"&&(Ce=Se.Z.API_SERVER+Ce);const zt=nt=>nt.substring(nt.lastIndexOf("/")+1).split(".").pop();Oe&&Ae&&(Ae.filename=Oe),(0,tt.useEffect)(()=>{var nt,we;const Te=(we=(nt=document.cookie)==null?void 0:nt.replace(/\s/g,""))==null?void 0:we.split(";");Te==null||Te.map(Ve=>{let Ze=Ve.split("=");Ze[0]==="_educoder_session"&&ft(Ze[1])})},[]),(0,tt.useEffect)(()=>{Ie==="office"&&(Ce.indexOf("bigfilescdn.")>-1||Ce.indexOf("bigfiles1")>-1?yt({url:Ce,fileType:zt(Ce),model:Ce.indexOf("model=edit")?"edit":"view"}):St())},[Ie,Ce]);const St=()=>le(void 0,null,function*(){console.log("data:",Ce);let nt=Ce;Ce.startsWith("http")||(nt=location.origin+nt);let we=new URL(nt).pathname.split("/").pop();const Te=yield(0,be.gJ)({attachment_id:we});Te.url=gt+Te.url,yt(Te)}),bt=()=>{if(Ce.startsWith("http")||Ce.startsWith("blob:")){at();return}(0,ce.Sv)(Oe||"educoder",Ce,Oe)},at=()=>{dt&&(0,ke.fc)({id:dt==null?void 0:dt.id,watch_type:1,course_id:dt==null?void 0:dt.course_id}),(0,ce.Nd)(Oe||"educoder",decodeURIComponent(Ce))};return ve.createElement("div",{style:re({},Be||{}),className:`${ze&&Pt.bgBlack} ${Ie?Pt.wrp:"hide"}`},_e&&ve.createElement("div",{className:Pt.close,ref:Ct},!!et&&ve.createElement(me.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Ct.current},ve.createElement("span",{onClick:()=>{qe(),et()}},ve.createElement("i",{className:"icon-yulanpizhu"}))),!Ye&&ve.createElement(me.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Ct.current},ve.createElement("span",{onClick:at},ve.createElement("i",{className:"icon-quxiaozhiding"}))),ve.createElement(me.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Ct.current},ve.createElement("span",{className:"",onClick:qe},ve.createElement("i",{className:"icon-guanbi1"})))),ve.createElement("div",{className:`${Pt[je]} ${je} ${Pt.monaco} ${Ie==="txt"?"show":"hide"}`},Ie==="txt"&&ve.createElement(ve.Fragment,null,ve.createElement(Fe.ZP,re({},Ae)))),Ie==="audio"&&ve.createElement("audio",{src:`${(Ce==null?void 0:Ce.indexOf("http://"))>-1||(Ce==null?void 0:Ce.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ce}`,autoPlay:!0}),Ie==="video"&&ve.createElement(ve.Fragment,null,(Ce==null?void 0:Ce.indexOf("http"))>-1?ve.createElement("video",{controls:!0,src:`${Ce}`,autoPlay:!0}):ve.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ce}`,autoPlay:!0})),Ie==="office"&&xt&&ve.createElement("iframe",{src:`${pt}/office.html?key=${xt.key}&url=${btoa(xt.url)}&callbackUrl=${gt+(xt.callbackUrl||"")}&fileType=${xt.fileType}&title=${xt.title||""}&model=${pe}&officeServer=${Se.Z.ONLYOFFICE}&disabledDownload=${!!Ye}`}),Ie==="html"&&ve.createElement("iframe",{src:Ce+"&disposition=inline"}),Ie==="pdf"&&ve.createElement("iframe",{src:`${pt}/js/pdfview/index.html?filename=${Oe||"educoder.pdf"}&url=${encodeURIComponent(Ce)}&disabledDownload=${!!Ye}`}),Ie==="image"&&ve.createElement("img",{src:`${(Ce==null?void 0:Ce.indexOf("http://"))>-1||(Ce==null?void 0:Ce.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ce}`}),(Ie==="other"||Ie==="download")&&ve.createElement(ve.Fragment,null,lt?ve.createElement(Le.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ve.createElement(oe.ZP,{icon:ve.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:bt,disabled:Ye},"\u4E0B\u8F7D")}):ve.createElement(oe.ZP,{type:"primary",size:"middle",onClick:bt,disabled:Ye},ve.createElement(Ue.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},25711:function(Gn,vn,Ke){"use strict";Ke.d(vn,{z:function(){return Ie},Z:function(){return Oe}});var tt=Ke(59301),Pt=Ke(1751),oe=Ke(31087),Ue=Ke(64018),Fe=Ke(40846),me=Ke(10148),ce=Ke(58130),be=Ke(15342),Le=Ke(1012),Se=Ke(79646),ke=Ke(59301),xe=({html:Ae})=>{const je=(0,tt.useRef)(null),Be=(0,tt.useRef)(null),_e=`.markdown-body p {
|
|
|
margin: 0 0 16px 0 !important;
|
|
|
line-height: 28px;
|
|
|
white-space: pre-wrap;
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
li {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
dl {
|
|
|
margin-bottom: 0px;
|
|
|
}
|
|
|
|
|
|
.markdown-body {
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
color: #333;
|
|
|
overflow: hidden;
|
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
|
word-break: break-word;
|
|
|
font-size: 16px;
|
|
|
line-height: 1.6;
|
|
|
white-space: normal;
|
|
|
word-wrap: break-word;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul>li {
|
|
|
list-style-type: disc;
|
|
|
}
|
|
|
|
|
|
.markdown-body ol>li {
|
|
|
list-style-type: decimal;
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:active,
|
|
|
.markdown-body a:hover {
|
|
|
outline: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body strong {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 2em;
|
|
|
margin: 0.67em 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
-moz-box-sizing: content-box;
|
|
|
box-sizing: content-box;
|
|
|
height: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
overflow: auto;
|
|
|
}
|
|
|
|
|
|
.markdown-body code,
|
|
|
.markdown-body kbd,
|
|
|
.markdown-body pre {
|
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
color: inherit;
|
|
|
font: inherit;
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body html input[disabled] {
|
|
|
cursor: default;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
line-height: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
border-collapse: collapse;
|
|
|
border-spacing: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body td,
|
|
|
.markdown-body th {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body * {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
color: #4183c4;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:hover,
|
|
|
.markdown-body a:active {
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
height: 0;
|
|
|
margin: 15px 0;
|
|
|
overflow: hidden;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:before {
|
|
|
display: table;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:after {
|
|
|
display: table;
|
|
|
clear: both;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
margin-top: 15px;
|
|
|
margin-bottom: 15px;
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
font-size: 21px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 11px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding: 0;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
ul.linenums,
|
|
|
ol.linenums {
|
|
|
padding: 16px 0 0 36px !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding-left: 2em;
|
|
|
}
|
|
|
|
|
|
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ul ol {
|
|
|
list-style-type: lower-roman;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul ol,
|
|
|
.markdown-body ul ol ol,
|
|
|
.markdown-body ol ul ol,
|
|
|
.markdown-body ol ol ol {
|
|
|
list-style-type: lower-alpha;
|
|
|
}
|
|
|
|
|
|
.markdown-body dd {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon {
|
|
|
font: normal normal 16px octicons-anchor;
|
|
|
line-height: 1;
|
|
|
display: inline-block;
|
|
|
text-decoration: none;
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon-link:before {
|
|
|
content: '\f05c';
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:first-child {
|
|
|
margin-top: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:last-child {
|
|
|
margin-bottom: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
display: block;
|
|
|
padding-right: 6px;
|
|
|
padding-left: 30px;
|
|
|
margin-left: -30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
position: relative;
|
|
|
margin-top: 1em;
|
|
|
margin-bottom: 16px;
|
|
|
font-weight: bold;
|
|
|
line-height: 1.4;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
|
.markdown-body h2 .octicon-link,
|
|
|
.markdown-body h3 .octicon-link,
|
|
|
.markdown-body h4 .octicon-link,
|
|
|
.markdown-body h5 .octicon-link,
|
|
|
.markdown-body h6 .octicon-link {
|
|
|
display: none;
|
|
|
color: #000;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
|
.markdown-body h2:hover .anchor,
|
|
|
.markdown-body h3:hover .anchor,
|
|
|
.markdown-body h4:hover .anchor,
|
|
|
.markdown-body h5:hover .anchor,
|
|
|
.markdown-body h6:hover .anchor {
|
|
|
padding-left: 8px;
|
|
|
margin-left: -30px;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 2.25em;
|
|
|
line-height: 1.2;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 1.75em;
|
|
|
line-height: 1.225;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 1.5em;
|
|
|
line-height: 1.43;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 1.25em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 1em;
|
|
|
color: #777;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul,
|
|
|
.markdown-body ul ol,
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ol ul {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body li>p {
|
|
|
margin-top: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dt {
|
|
|
padding: 0;
|
|
|
margin-top: 16px;
|
|
|
font-size: 1em;
|
|
|
font-style: italic;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dd {
|
|
|
padding: 0 16px;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
padding: 0 15px;
|
|
|
color: #777;
|
|
|
border-left: 4px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
|
margin-top: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
overflow: auto;
|
|
|
word-break: normal;
|
|
|
word-break: keep-all;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th {
|
|
|
font-weight: bold;
|
|
|
text-align: revert;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th,
|
|
|
.markdown-body table td {
|
|
|
padding: 6px 13px;
|
|
|
border: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr {
|
|
|
background-color: #fff;
|
|
|
border-top: 1px solid #ccc;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
|
background-color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
max-width: 100%;
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
padding: 0;
|
|
|
padding-top: 0.2em;
|
|
|
padding-bottom: 0.2em;
|
|
|
margin: 0;
|
|
|
font-size: 85%;
|
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:has(.katex) {
|
|
|
background-color: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:before,
|
|
|
.markdown-body code:after {
|
|
|
letter-spacing: -0.2em;
|
|
|
content: "\\00a0";
|
|
|
}
|
|
|
|
|
|
.markdown-body pre>code {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
font-size: 100%;
|
|
|
word-break: normal;
|
|
|
white-space: pre;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight {
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre,
|
|
|
.markdown-body pre {
|
|
|
padding: 16px;
|
|
|
overflow: auto;
|
|
|
font-size: 85%;
|
|
|
line-height: 1.45;
|
|
|
background-color: #f7f7f7;
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre {
|
|
|
margin-bottom: 0;
|
|
|
word-break: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
word-wrap: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code {
|
|
|
display: inline;
|
|
|
max-width: initial;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
overflow: initial;
|
|
|
line-height: inherit;
|
|
|
word-wrap: normal;
|
|
|
background-color: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code:before,
|
|
|
.markdown-body pre code:after {
|
|
|
content: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font-size: 11px;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c {
|
|
|
color: #969896;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c1,
|
|
|
.markdown-body .pl-mdh,
|
|
|
.markdown-body .pl-mm,
|
|
|
.markdown-body .pl-mp,
|
|
|
.markdown-body .pl-mr,
|
|
|
.markdown-body .pl-s1 .pl-v,
|
|
|
.markdown-body .pl-s3,
|
|
|
.markdown-body .pl-sc,
|
|
|
.markdown-body .pl-sv {
|
|
|
color: #0086b3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-e,
|
|
|
.markdown-body .pl-en {
|
|
|
color: #795da3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
|
.markdown-body .pl-smi,
|
|
|
.markdown-body .pl-smp,
|
|
|
.markdown-body .pl-stj,
|
|
|
.markdown-body .pl-vo,
|
|
|
.markdown-body .pl-vpf {
|
|
|
color: #333;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ent {
|
|
|
color: #63a35c;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-k,
|
|
|
.markdown-body .pl-s,
|
|
|
.markdown-body .pl-st {
|
|
|
color: #a71d5d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-pds,
|
|
|
.markdown-body .pl-s1,
|
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
|
.markdown-body .pl-sr,
|
|
|
.markdown-body .pl-sr .pl-cce,
|
|
|
.markdown-body .pl-sr .pl-sra,
|
|
|
.markdown-body .pl-sr .pl-sre,
|
|
|
.markdown-body .pl-src {
|
|
|
color: #df5000;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mo,
|
|
|
.markdown-body .pl-v {
|
|
|
color: #1d3e81;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-id {
|
|
|
color: #b52a1d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ii {
|
|
|
background-color: #b52a1d;
|
|
|
color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
|
color: #63a35c;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ml {
|
|
|
color: #693a17;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mh,
|
|
|
.markdown-body .pl-mh .pl-en,
|
|
|
.markdown-body .pl-ms {
|
|
|
color: #1d3e81;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mq {
|
|
|
color: #008080;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mi {
|
|
|
color: #333;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mb {
|
|
|
color: #333;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-md,
|
|
|
.markdown-body .pl-mdhf {
|
|
|
background-color: #ffecec;
|
|
|
color: #bd2c00;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdht,
|
|
|
.markdown-body .pl-mi1 {
|
|
|
background-color: #eaffea;
|
|
|
color: #55a532;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdr {
|
|
|
color: #795da3;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item {
|
|
|
list-style-type: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
|
margin-top: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item input {
|
|
|
float: left;
|
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
|
z-index: 1;
|
|
|
position: relative;
|
|
|
border-color: #4183c4;
|
|
|
}
|
|
|
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
|
.pln {
|
|
|
color: #000
|
|
|
}
|
|
|
|
|
|
/* plain text */
|
|
|
|
|
|
@media screen {
|
|
|
.str {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* string content */
|
|
|
.kwd {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a keyword */
|
|
|
.com {
|
|
|
color: #800
|
|
|
}
|
|
|
|
|
|
/* a comment */
|
|
|
.typ {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a type name */
|
|
|
.lit {
|
|
|
color: #066
|
|
|
}
|
|
|
|
|
|
/* a literal value */
|
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #660
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a markup tag name */
|
|
|
.atn {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a markup attribute name */
|
|
|
.atv {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* a markup attribute value */
|
|
|
.dec,
|
|
|
.var {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a declaration; a variable name */
|
|
|
.fun {
|
|
|
color: red
|
|
|
}
|
|
|
|
|
|
/* a function name */
|
|
|
}
|
|
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
|
@media print,
|
|
|
projection {
|
|
|
.str {
|
|
|
color: #060
|
|
|
}
|
|
|
|
|
|
.kwd {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.com {
|
|
|
color: #600;
|
|
|
font-style: italic
|
|
|
}
|
|
|
|
|
|
.typ {
|
|
|
color: #404;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.lit {
|
|
|
color: #044
|
|
|
}
|
|
|
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #440
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.atn {
|
|
|
color: #404
|
|
|
}
|
|
|
|
|
|
.atv {
|
|
|
color: #060
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
|
pre.prettyprint {
|
|
|
padding: 2px;
|
|
|
/* border: 1px solid #888 */
|
|
|
}
|
|
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
|
ol.linenums {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0
|
|
|
}
|
|
|
|
|
|
/* IE indents via margin-left */
|
|
|
li.L0,
|
|
|
li.L1,
|
|
|
li.L2,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L6,
|
|
|
li.L7,
|
|
|
li.L8 {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
/* Alternate shading for lines */
|
|
|
li.L1,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L7,
|
|
|
li.L9 {
|
|
|
background: #eee
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}`;return(0,tt.useEffect)(()=>{const qe=je.current.attachShadow({mode:"open"});Be.current=document.createElement("div"),Be.current.className="markdown-body",Be.current.innerHTML=Ae,qe.appendChild(Be.current);const ze=document.createElement("style");return ze.textContent=_e,qe.appendChild(ze),()=>{qe.innerHTML=""}},[]),(0,tt.useEffect)(()=>{Be.current&&(Be.current.innerHTML=Ae)},[Ae]),ke.createElement("div",{ref:je})},fe=Object.defineProperty,z=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,re=(Ae,je,Be)=>je in Ae?fe(Ae,je,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ae[je]=Be,le=(Ae,je)=>{for(var Be in je||(je={}))ee.call(je,Be)&&re(Ae,Be,je[Be]);if(z)for(var Be of z(je))ae.call(je,Be)&&re(Ae,Be,je[Be]);return Ae};const ue="@\u2581\u2581@",pe="@\u2581@",Ce=/<pre[^>]*>/g;function Pe(Ae){let je=document.createElement("div");return je.innerHTML=Ae,je.childNodes.length===0?"":je.childNodes[0].nodeValue}const Ie=(Ae,je)=>{Ae=Ae||"";const Be=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,_e=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,qe=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ze=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return je?Ae.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Be,(Ye,et,lt,dt,vt,Je,ot)=>{const ft=et||dt||Je,xt=lt||vt||ot||"?";return me.Z.API_SERVER+"/api/attachments/"+ft+xt+"&t="+(0,ce.Jn)(ft,Date.now())+(Ye.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Ae=Ae.replace(ze,(Ye,et,lt,dt,vt,Je,ot)=>{const ft=et||dt||Je,xt=lt||vt||ot||"?";return me.Z.API_SERVER+"/attachments/download/"+ft+xt+"&t="+(0,ce.Jn)(ft,Date.now())+(Ye.indexOf(")")>-1?")":"&")}).replace(Be,(Ye,et,lt,dt,vt,Je,ot)=>{const ft=et||dt||Je,xt=lt||vt||ot||"?";return me.Z.API_SERVER+"/api/attachments/"+ft+xt+"&t="+(0,ce.Jn)(ft,Date.now())+(Ye.indexOf(")")>-1?")":"&")}).replace(_e,(Ye,et,lt,dt,vt)=>{const Je=et||dt,ot=lt||vt||"";return'"'+me.Z.API_SERVER+"/api/attachments/"+Je+ot+Je+ot+"&t="+(0,ce.Jn)(Je,Date.now())}).replace(qe,(Ye,et,lt,dt,vt)=>{const Je=et||dt,ot=lt||vt||"";return"("+me.Z.API_SERVER+"/files/uploads/"+Je+ot+Je+ot+"&t="+(0,ce.Jn)(Je,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),Ae)};var Oe=({value:Ae="",className:je,showTextOnly:Be,showLines:_e,style:qe={},stylesPrev:ze={},highlightKeywords:Ye,showProgramFill:et,isProgramFill:lt,disabledFill:dt=!1,programFillValue:vt,onFillChange:Je=xt=>{},onFillBlur:ot=()=>{},onFillFocus:ft=()=>{}})=>{let xt=String(Ae);const[yt,pt]=(0,tt.useState)(""),[gt,mt]=(0,tt.useState)("office"),[Mt,Ct]=(0,tt.useState)([]),zt=(0,tt.useRef)("a"+(0,Le.Z)()),St={},bt=(ct,Et,ht)=>{const It=document.createElement(ct===pe?"input":"textarea");It.style.width="100%",It.style.height=ct===pe?"40px":"151px",It.rows=5,It.spellcheck=!1,It.name="edu-program-fill",It.placeholder="\u8BF7\u8F93\u5165",It.dataset.id=Et;const qt=Object.keys(St).length;return St[qt]=It,`<span class="edu-program-fill-wrap ${ct===pe?"":"show"}" style="width:${ct===pe?"400px":"100%"}" title=${ht||""}><span>${It.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function at(ct){return ct=ct.replace(/!\[.*?\]\(.*?\)/g,""),ct=ct.replace(/\[.*?\]\(.*?\)/g,""),ct=ct.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),ct=ct.replace(/<embed.*?>/g,""),ct=ct.replace(/<img.*?>/g,""),ct=ct.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),ct=ct.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),ct=ct.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),ct=ct.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),ct}const nt=ct=>ct.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Et,ht){let It=ht.replace(/(\n|\r)/g,"").split("}"),qt=[];return It.map($t=>{$t!=""&&qt.push(`.${zt.current} ${$t}`)}),`<style>${qt.join("}")}</style>`}),we=(0,tt.useMemo)(()=>{try{const It=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,qt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,$t=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Wt=/\(\/attachments\/download\//g;xt=xt.replace(Wt,"("+me.Z.API_SERVER+"/attachments/download/").replace(It,"("+me.Z.API_SERVER+"/api/attachments/").replace(qt,'"'+me.Z.API_SERVER+"/api/attachments/").replace($t,'"'+me.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`)}catch(It){}if(et){let It=-1;return xt=xt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(qt,$t,Wt){var Ut;return++It,bt(qt,It,(Ut=vt==null?void 0:vt[It])==null?void 0:Ut.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${nt(xt||"")}</pre>`}let ct=nt(xt);ct=(0,oe.ZP)(ct);const Et=(0,oe.ez)();xt.match(/\[TOC\]/)&&(ct=ct.replace("<p>[TOC]</p>",(0,oe.Qv)()),(0,oe.Iy)()),ct=ct.replace(/(__special_katext_id_\d+__)/g,(It,qt)=>{const{type:$t,expression:Wt}=Et[qt];return(0,be.renderToString)(Pe(Wt)||"",{displayMode:$t==="block",throwOnError:!1,output:"html"})}),ct=ct.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,oe.AL)();const ht=document.createElement("div");if(ht.innerHTML=ct,Be)return ht.innerText;if(Ye){const It=Ye.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Ee(ht,It),ht.innerHTML}return setTimeout(()=>We(),500),ht.innerHTML},[xt,Ye]);(0,tt.useEffect)(()=>{Ge.current&&Ge.current.querySelectorAll(["input","textarea"]).forEach(Et=>{Et.oninput=Te,Et.onblur=Ve,Et.onfocus=Ze})},[Mt]),(0,tt.useEffect)(()=>{var ct,Et,ht,It,qt;if(vt!=null&&vt.length)try{const $t=Ge.current.querySelectorAll(".edu-program-fill-score"),Wt=Ge.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ut,ln]of Wt.entries())ln.value=((ct=vt==null?void 0:vt[Ut])==null?void 0:ct.value)||"",((Et=vt==null?void 0:vt[Ut])==null?void 0:Et.type)==="warning"?ln.className="program-fill-warning":((ht=vt==null?void 0:vt[Ut])==null?void 0:ht.type)==="success"?ln.className="program-fill-success":ln.className="";for(const[Ut,ln]of $t.entries())ln.innerHTML=(It=vt==null?void 0:vt[Ut])!=null&&It.score?`${(qt=vt==null?void 0:vt[Ut])==null?void 0:qt.score}\u5206`:"";Ct(vt)}catch($t){console.log($t,"error")}},[vt]);const Te=ct=>{Mt[ct.target.dataset.id]=Mt[ct.target.dataset.id]||{},Mt[ct.target.dataset.id].value=ct.target.value,Ct([...Mt]),Je(Mt,ct.target.dataset.id)},Ve=ct=>{Mt[ct.target.dataset.id]=Mt[ct.target.dataset.id]||{},Mt[ct.target.dataset.id].value=ct.target.value,Ct([...Mt]),ot(Mt,ct.target.dataset.id)},Ze=ct=>{Mt[ct.target.dataset.id]=Mt[ct.target.dataset.id]||{},Mt[ct.target.dataset.id].value=ct.target.value,Ct([...Mt]),ft(Mt,ct.target.dataset.id)};function Ee(ct,Et){return ct.childNodes.forEach(ht=>{var It;if(ht.childNodes.length>0)Ee(ht,Et);else if(ht.nodeName!=="IMG")if(ht.innerHTML)ht.innerHTML=(It=ht.innerHTML)==null?void 0:It.replace(new RegExp(Et,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const qt=document.createElement("span");qt.innerHTML=ht.textContent.replace(new RegExp(Et,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),ht.replaceWith(qt)}})}const Ge=(0,tt.useRef)();oe.jb.WebkitLineClamp=_e,_e&&(qe=le(le({},qe),oe.jb));function He(ct){let Et=ct.target;if(Et.tagName.toUpperCase()==="A"){let ht=Et.getAttribute("href");if(ht.indexOf("office")>-1)ct.preventDefault(),pt(ht),mt("office");else if(ht.indexOf("application/pdf")>-1)ct.preventDefault(),pt(ht),mt("pdf");else if(ht.indexOf("text/html")>-1)ct.preventDefault(),pt(ht),mt("html");else if(ht.startsWith("#")){ct.preventDefault();let It=document.getElementById(ht.replace("#",""));It&&It.scrollIntoView(!0)}}}const We=()=>{var ct;const Et=(ct=Ge.current)==null?void 0:ct.querySelectorAll("video");Et==null||Et.forEach(ht=>{if(ht.oncontextmenu=()=>!1,ht.src.indexOf(".m3u8")>-1&&!ht.canPlayType("application/vnd.apple.mpegurl")){if(Fe.ZP.isSupported()){var It=new Fe.ZP;It.loadSource(ht.src),It.attachMedia(ht)}}})};(0,tt.useEffect)(()=>{if(Ge.current&&we&&we.match(Ce)&&window.PR.prettyPrint(),Ge.current)return Ge.current.addEventListener("click",He),()=>{var ct;(ct=Ge.current)==null||ct.removeEventListener("click",He),(0,oe.AL)(),(0,oe.Iy)()}},[we,Ge.current,He]),(0,tt.useEffect)(()=>{var ct;const Et=ht=>{ht.preventDefault(),ht.clipboardData.setData("text",window.getSelection().toString())};return(ct=Ge.current)==null||ct.addEventListener("copy",Et),()=>{var ht;(ht=Ge.current)==null||ht.removeEventListener("copy",Et)}},[Ge.current]);const Xe=ct=>/<style[\s\S]*?>/i.test(ct||"");return tt.createElement(tt.Fragment,null,Be&&tt.createElement("div",{ref:Ge},we),!Be&&!Xe(we)&&tt.createElement("div",{ref:Ge,style:le({},qe),className:`${je||""} ${dt?"disabled-fill":""} markdown-body ${zt.current}`,dangerouslySetInnerHTML:{__html:we}}),!Be&&Xe(we)&&tt.createElement(xe,{html:we}),tt.createElement(Se.Z,{close:!0,data:yt,type:yt!=null&&yt.length?gt:"",style:le({},ze),onClose:()=>pt("")}))}},9168:function(Gn,vn,Ke){"use strict";Ke.d(vn,{cT:function(){return Ae},pe:function(){return Pe}});var tt=Ke(59301),Pt=Ke(41889),oe=Ke(8591),Ue=Ke(70635),Fe=Ke(28209),me=Ke.n(Fe),ce=Ke(1012),be=Ke(42203),Le=Ke(47257),Se=Ke.n(Le),ke=Object.defineProperty,ve=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(Be,_e,qe)=>_e in Be?ke(Be,_e,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Be[_e]=qe,re=(Be,_e)=>{for(var qe in _e||(_e={}))z.call(_e,qe)&&ae(Be,qe,_e[qe]);if(fe)for(var qe of fe(_e))ee.call(_e,qe)&&ae(Be,qe,_e[qe]);return Be},le=(Be,_e)=>ve(Be,xe(_e)),ue=(Be,_e)=>{var qe={};for(var ze in Be)z.call(Be,ze)&&_e.indexOf(ze)<0&&(qe[ze]=Be[ze]);if(Be!=null&&fe)for(var ze of fe(Be))_e.indexOf(ze)<0&&ee.call(Be,ze)&&(qe[ze]=Be[ze]);return qe},pe=(Be,_e,qe)=>new Promise((ze,Ye)=>{var et=vt=>{try{dt(qe.next(vt))}catch(Je){Ye(Je)}},lt=vt=>{try{dt(qe.throw(vt))}catch(Je){Ye(Je)}},dt=vt=>vt.done?ze(vt.value):Promise.resolve(vt.value).then(et,lt);dt((qe=qe.apply(Be,_e)).next())});const{Dragger:Ce}=Pt.default,Pe=Be=>{const _e="bf3c199c2470cb477d907b1e0917c17b",qe="5183666c72eec9e4";var ze=me().enc.Utf8.parse(_e);let Ye=me().enc.Utf8.parse(qe);var et=me().AES.decrypt(Be,ze,{iv:Ye,mode:me().mode.CBC});return et.toString(me().enc.Utf8)};let Ie;const Oe=Be=>pe(void 0,[Be],function*({identifier:_e,oldFilename:qe,newFilename:ze}){var Ye,et,lt,dt,vt,Je;const ot=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});ot.data=JSON.parse(Pe(ot.data));const ft=new OSS({endpoint:(Ye=ot==null?void 0:ot.data)==null?void 0:Ye.end_point,region:(et=ot==null?void 0:ot.data)==null?void 0:et.region,accessKeyId:(lt=ot==null?void 0:ot.data)==null?void 0:lt.access_key_id,accessKeySecret:(dt=ot==null?void 0:ot.data)==null?void 0:dt.access_key_secret,bucket:(vt=ot==null?void 0:ot.data)==null?void 0:vt.bucket,stsToken:(Je=ot==null?void 0:ot.data)==null?void 0:Je.security_token});return new Promise((xt,yt)=>{console.log(11111,`${_e}/${qe}`,`${_e}/${ze}`,ot.data),ft.copy(`/${_e}/${qe}`,`/${_e}/${ze}`).then(pt=>{console.log("\u62F7\u8D1D\u6210\u529F",pt)}).catch(pt=>{console.log(pt)})})}),Ae=(Be,_e,qe)=>pe(void 0,null,function*(){var ze,Ye,et,lt,dt,vt;_e.file_name=Be.name;const Je=yield(0,Ue.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",Pe(Je.data)),Je.data=JSON.parse(Pe(Je.data));const ot=Be.name.split(".");ot.pop();const ft=_e.realFileName?ot.join(""):(0,ce.Z)(),xt=new(Se())({endpoint:(ze=Je==null?void 0:Je.data)==null?void 0:ze.end_point,region:(Ye=Je==null?void 0:Je.data)==null?void 0:Ye.region,accessKeyId:(et=Je==null?void 0:Je.data)==null?void 0:et.access_key_id,accessKeySecret:(lt=Je==null?void 0:Je.data)==null?void 0:lt.access_key_secret,bucket:(dt=Je==null?void 0:Je.data)==null?void 0:dt.bucket,stsToken:(vt=Je==null?void 0:Je.data)==null?void 0:vt.security_token});return new Promise((yt,pt)=>{var gt;xt.multipartUpload(`${ft}`,new Blob([Be],{type:Be.type}),le(re({timeout:200*1e3,partSize:102400},qe),{callback:{url:(gt=Je==null?void 0:Je.data)==null?void 0:gt.callback_url,host:Je==null?void 0:Je.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Ue.rz)(_e)}})).then(function(mt){var Mt;Be.response=(Mt=mt.data)==null?void 0:Mt.data,yt(mt==null?void 0:mt.data)}).catch(function(mt){pt(mt),console.log("err:",mt)})})}),je=Be=>{var _e=Be,{user:qe,cancelUpload:ze}=_e,Ye=ue(_e,["user","cancelUpload"]);const[et,lt]=(0,tt.useState)([]);let[dt,vt]=(0,tt.useState)();const Je={onRemove:ft=>{lt([...et.filter(xt=>xt.name!==ft.name)]),Ye.onChange(et.filter(xt=>xt.name!==ft.name))},disabled:Ye.disabled,multiple:!0,fileList:et==null?void 0:et.map(ft=>ft.file),customRequest:()=>{},beforeUpload:ft=>pe(void 0,null,function*(){let xt=Ye.maxSize||1073741824;if(et.filter(yt=>yt.name===ft.name).length){oe.ZP.info(`${ft.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(ft==null?void 0:ft.size)>xt?(oe.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${xt/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(et.push({name:ft.name,file:ft}),lt([...et]),Ye.onChange(et),!1)})},ot=(ft,xt)=>pe(void 0,null,function*(){var yt,pt,gt,mt,Mt,Ct;xt.file_name=ft.name;const zt=ft.name,St=yield(0,Ue.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(St.data=JSON.parse(Pe(St.data)),(St==null?void 0:St.status)!==0){et[et.findIndex(nt=>nt.name===zt)].status="error",et[et.findIndex(nt=>nt.name===zt)].file.status="error",Ye.onChange(et),oe.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}dt=new(Se())({endpoint:(yt=St==null?void 0:St.data)==null?void 0:yt.end_point,region:(pt=St==null?void 0:St.data)==null?void 0:pt.region,accessKeyId:(gt=St==null?void 0:St.data)==null?void 0:gt.access_key_id,accessKeySecret:(mt=St==null?void 0:St.data)==null?void 0:mt.access_key_secret,bucket:(Mt=St==null?void 0:St.data)==null?void 0:Mt.bucket,stsToken:(Ct=St==null?void 0:St.data)==null?void 0:Ct.security_token}),console.log(ft,"file"),vt(dt);const bt=ft.name.split(".");bt.pop();const at=zt.indexOf(".")>-1?xt.realFileName?bt.join("."):(0,ce.Z)():zt;return new Promise((nt,we)=>{var Te;try{dt.multipartUpload(`${Ye.identifier}/${at}${zt.indexOf(".")>-1?"."+zt.split(".").pop():""}`,new Blob([ft.file],{type:ft.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Ve,Ze,Ee)=>{try{console.log("\u8FDB\u5EA6",Ve,Ze,Ee);const Ge=et.findIndex(He=>He.name===zt);et[Ge].file.percent=Ve*100,et[Ge].tempCheckpoint=Ze,lt([...et])}catch(Ge){}},checkpoint:et[et.findIndex(Ve=>Ve.name===zt)].tempCheckpoint,callback:{customValue:{id:zt+""},url:(Te=St==null?void 0:St.data)==null?void 0:Te.callback_url,host:St==null?void 0:St.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Ue.rz)(xt)}}).then(function(Ve){var Ze,Ee,Ge;const He=et.findIndex(Xe=>Xe.name===zt);let We="done";if(((Ze=Ve.data)==null?void 0:Ze.status)===0){ft.response=(Ee=Ve.data)==null?void 0:Ee.data;const Xe=et.findIndex(ct=>ct.name===zt);et[Xe].status="done",et[Xe].file.status="done"}else oe.ZP.warning((Ge=Ve.data)==null?void 0:Ge.message),We="error";et[He].status=We,et[He].file.status=We,Ye.onChange(et),nt(Ve==null?void 0:Ve.data)}).catch(function(Ve){et[et.findIndex(Ze=>Ze.name===zt)].status="error",et[et.findIndex(Ze=>Ze.name===zt)].file.status="error",oe.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),lt([...et]),Ye.onChange(et),we(Ve),console.log("err:",Ve)})}catch(Ve){}})});return(0,tt.useEffect)(()=>{et.every(ft=>ft==="done"||ft==="error")&&Ye.onComplete(et)},[et]),(0,tt.useEffect)(()=>{ze&&(dt==null||dt.cancel())},[ze]),(0,tt.useEffect)(()=>{Ye.uploading&&et.map(ft=>pe(void 0,null,function*(){var xt;if((!ft.status||ft.status==="error")&&!ze){ft.status="uploading",ft.file.status="uploading";const yt=yield ot(ft,{login:(xt=qe==null?void 0:qe.userInfo)==null?void 0:xt.login,container_type:Ye.container_type,container_id:Ye.container_id,description:Ye.description,realFileName:Ye.realFileName})}}))},[Ye.uploading]),tt.createElement(Ce,le(re({},Je),{height:Ye.height,className:Ye.className}),tt.createElement("p",{className:"ant-upload-hint"},Ye.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};vn.ZP=(0,be.connect)(({loading:Be,globalSetting:_e,user:qe})=>({globalSetting:_e,loading:Be.models.competitions,user:qe}))(je)},1568:function(Gn,vn,Ke){"use strict";Ke.d(vn,{h:function(){return pe}});var tt=Ke(59301),Pt=Ke(57809),oe=Ke(78241),Ue=Ke(3113),Fe=Ke(89780),me=Ke.n(Fe),ce=Ke(79906),be=Ke(44383),Le=Object.defineProperty,Se=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,z=(Ce,Pe,Ie)=>Pe in Ce?Le(Ce,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Ce[Pe]=Ie,ee=(Ce,Pe)=>{for(var Ie in Pe||(Pe={}))xe.call(Pe,Ie)&&z(Ce,Ie,Pe[Ie]);if(ve)for(var Ie of ve(Pe))fe.call(Pe,Ie)&&z(Ce,Ie,Pe[Ie]);return Ce},ae=(Ce,Pe)=>Se(Ce,ke(Pe));const re=Pt.default.Option,le={labelCol:{span:4},wrapperCol:{span:20}},ue={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"]};vn.Z=({callback:Ce,onCancel:Pe})=>{const[Ie,Oe]=(0,tt.useState)("python");function Ae(Be){Oe(ue[Be][1])}function je(Be){Ce(Be)}return tt.createElement(oe.default,ae(ee({},le),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:je,style:{width:500}}),tt.createElement(oe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},tt.createElement(Pt.default,{getPopupContainer:Be=>Be.parentNode,onChange:Ae},Object.keys(ue).map(Be=>tt.createElement(re,{key:Be,value:Be},ue[Be][0])))),tt.createElement(oe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},tt.createElement(pe,{mode:Ie})),tt.createElement("div",{className:"flex-container flex-end"},tt.createElement(Ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),tt.createElement(Ue.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))};function pe({value:Ce,onChange:Pe,mode:Ie,options:Oe={}}){const Ae=(0,tt.useRef)(),[je,Be]=(0,tt.useState)();return(0,tt.useEffect)(()=>{if(je){let _e=function(qe){const ze=qe.getValue();Pe&&Pe(ze)};return je.on("change",_e),()=>{je.off("change",_e)}}},[je,Pe]),(0,tt.useEffect)(()=>{je&&je.setOption("mode",Ie)},[je,Ie]),(0,tt.useEffect)(()=>{je&&(Ce!==je.getValue()||Ce==="")&&setTimeout(()=>{je.setValue(Ce||"")},300)},[je,Ce]),(0,tt.useEffect)(()=>{if(Ae.current&&!je){const _e=me().fromTextArea(Ae.current,ee({mode:Ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Oe));Be(_e)}},[Ae.current,je]),tt.createElement("div",{className:"my-codemirror-container"},tt.createElement("textarea",{ref:Ae}))}},23469:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return hr}});var tt=Ke(59301),Pt=Ke(89780),oe=Ke.n(Pt),Ue=Ke(76374),Fe=Ke(79906),me=Ke(6313),ce=Ke(25717),be=Ke(99498),Le=Ke(25419),Se=Ke(67549),ke=Ke(25711),ve=({value:un="",className:on,showTextOnly:Jt,showLines:jt,style:Pn={}})=>{const Cn=(0,tt.useMemo)(()=>"",[un]);return tt.createElement(tt.Fragment,null,tt.createElement("div",{dangerouslySetInnerHTML:{__html:Cn}}))},xe=Ke(59301),fe=Object.defineProperty,z=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,ae=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,ue=(un,on,Jt)=>on in un?fe(un,on,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):un[on]=Jt,pe=(un,on)=>{for(var Jt in on||(on={}))re.call(on,Jt)&&ue(un,Jt,on[Jt]);if(ae)for(var Jt of ae(on))le.call(on,Jt)&&ue(un,Jt,on[Jt]);return un},Ce=(un,on)=>z(un,ee(on));let Pe=[{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 Ie({onActionCallback:un,title:on,icon:Jt,actionName:jt,className:Pn="",children:Cn}){function Kt(){un(jt)}return xe.createElement("a",{title:on,className:Pn,onClick:Kt},xe.createElement("i",{className:`${Jt}`}),Cn)}var Oe=({watch:un,showNullButton:on,showNullProgramButton:Jt,onActionCallback:jt,fullScreen:Pn,insertTemp:Cn,hidetoolBar:Kt,extraUse:Dt})=>{const pn=[...Pe,{title:`${un?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${un?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return xe.createElement("ul",{className:"markdown-toolbar-container"},!Kt&&pn.map((yn,Jn)=>xe.createElement("li",{key:Jn},yn.actionName?xe.createElement(Ie,Ce(pe({},yn),{onActionCallback:jt})):xe.createElement("span",{className:"v-line"}))),on?xe.createElement("li",null,xe.createElement(Ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:jt},xe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Jt?xe.createElement(xe.Fragment,null,xe.createElement("li",null,xe.createElement(Ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:jt},xe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),xe.createElement("li",null,xe.createElement(Ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:jt},xe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Cn&&xe.createElement("li",null,xe.createElement(Ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Cn}`,onActionCallback:jt},xe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Dt&&xe.createElement("li",null,Dt),xe.createElement("li",{className:"btn-full-screen"},xe.createElement(Ie,{icon:`${Pn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Pn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:jt})))},Ae=Ke(50474),je=Ke(78241),Be=Ke(92832),_e=Ke(3113),qe=Object.defineProperty,ze=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,vt=(un,on,Jt)=>on in un?qe(un,on,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):un[on]=Jt,Je=(un,on)=>{for(var Jt in on||(on={}))lt.call(on,Jt)&&vt(un,Jt,on[Jt]);if(et)for(var Jt of et(on))dt.call(on,Jt)&&vt(un,Jt,on[Jt]);return un},ot=(un,on)=>ze(un,Ye(on));const ft={labelCol:{span:4},wrapperCol:{span:20}};var xt=({callback:un,onCancel:on})=>{function Jt(jt){un(jt)}return tt.createElement(je.default,ot(Je({},ft),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Jt,style:{width:500}}),tt.createElement(je.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},tt.createElement(Be.default,null)),tt.createElement(je.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},tt.createElement(Be.default,null)),tt.createElement("div",{className:"flex-container flex-end"},tt.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),tt.createElement(_e.ZP,{type:"ghost",onClick:on},"\u53D6\u6D88")))},yt=Ke(1568),pt=Ke(56701),gt=Ke(43418),mt=Ke(95237),Mt=Ke(12963),Ct=Ke(59301),zt=({callback:un,onCancel:on})=>{const Jt=document.createElement("canvas"),jt=Jt.getContext("2d");Jt.width=1e3,Jt.height=800,jt.fillStyle="#ffffff",jt.fillRect(0,0,Jt.width,Jt.height);const Pn=Jt.toDataURL("image/png");return Ct.createElement(gt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ct.createElement(mt.Z,{style:{height:"100vh"}},Ct.createElement(Mt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Pn,visible:!0,title:String(Date.now())},onOk:Cn=>{un({src:Cn.url})},onClose:on})))},St=Ke(12378);function bt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(bt,go.CommandHandler),bt.prototype.canAlignSelection=function(){var un=this.diagram;return!(un===null||un.isReadOnly||un.isModelReadOnly||un.selection.count<2)},bt.prototype.alignLeft=function(){var un=this.diagram;un.startTransaction("aligning left");var on=1/0;un.selection.each(function(Jt){Jt instanceof go.Link||(on=Math.min(Jt.position.x,on))}),un.selection.each(function(Jt){Jt instanceof go.Link||Jt.move(new go.Point(on,Jt.position.y))}),un.commitTransaction("aligning left")},bt.prototype.alignRight=function(){var un=this.diagram;un.startTransaction("aligning right");var on=-1/0;un.selection.each(function(Jt){if(!(Jt instanceof go.Link)){var jt=Jt.actualBounds.x+Jt.actualBounds.width;on=Math.max(jt,on)}}),un.selection.each(function(Jt){Jt instanceof go.Link||Jt.move(new go.Point(on-Jt.actualBounds.width,Jt.position.y))}),un.commitTransaction("aligning right")},bt.prototype.alignTop=function(){var un=this.diagram;un.startTransaction("alignTop");var on=1/0;un.selection.each(function(Jt){Jt instanceof go.Link||(on=Math.min(Jt.position.y,on))}),un.selection.each(function(Jt){Jt instanceof go.Link||Jt.move(new go.Point(Jt.position.x,on))}),un.commitTransaction("alignTop")},bt.prototype.alignBottom=function(){var un=this.diagram;un.startTransaction("aligning bottom");var on=-1/0;un.selection.each(function(Jt){if(!(Jt instanceof go.Link)){var jt=Jt.actualBounds.y+Jt.actualBounds.height;on=Math.max(jt,on)}}),un.selection.each(function(Jt){Jt instanceof go.Link||Jt.move(new go.Point(Jt.actualBounds.x,on-Jt.actualBounds.height))}),un.commitTransaction("aligning bottom")},bt.prototype.alignCenterX=function(){var un=this.diagram,on=un.selection.first();if(on){un.startTransaction("aligning Center X");var Jt=on.actualBounds.x+on.actualBounds.width/2;un.selection.each(function(jt){jt instanceof go.Link||jt.move(new go.Point(Jt-jt.actualBounds.width/2,jt.actualBounds.y))}),un.commitTransaction("aligning Center X")}},bt.prototype.alignCenterY=function(){var un=this.diagram,on=un.selection.first();if(on){un.startTransaction("aligning Center Y");var Jt=on.actualBounds.y+on.actualBounds.height/2;un.selection.each(function(jt){jt instanceof go.Link||jt.move(new go.Point(jt.actualBounds.x,Jt-jt.actualBounds.height/2))}),un.commitTransaction("aligning Center Y")}},bt.prototype.alignColumn=function(un){var on=this.diagram;on.startTransaction("align Column"),un===void 0&&(un=0),un=parseFloat(un);var Jt=new Array;on.selection.each(function(Dt){Dt instanceof go.Link||Jt.push(Dt)});for(var jt=0;jt<Jt.length-1;jt++){var Pn=Jt[jt],Cn=Pn.actualBounds.y+Pn.actualBounds.height+un,Kt=Jt[jt+1];Kt.move(new go.Point(Pn.actualBounds.x,Cn))}on.commitTransaction("align Column")},bt.prototype.alignRow=function(un){un===void 0&&(un=0),un=parseFloat(un);var on=this.diagram;on.startTransaction("align Row");var Jt=new Array;on.selection.each(function(Dt){Dt instanceof go.Link||Jt.push(Dt)});for(var jt=0;jt<Jt.length-1;jt++){var Pn=Jt[jt],Cn=Pn.actualBounds.x+Pn.actualBounds.width+un,Kt=Jt[jt+1];Kt.move(new go.Point(Cn,Pn.actualBounds.y))}on.commitTransaction("align Row")},bt.prototype.canRotate=function(un){var on=this.diagram;return!(on===null||on.isReadOnly||on.isModelReadOnly||on.selection.count<1)},bt.prototype.rotate=function(un){un===void 0&&(un=90);var on=this.diagram;on.startTransaction("rotate "+un.toString());var on=this.diagram;on.selection.each(function(Jt){Jt instanceof go.Link||Jt instanceof go.Group||(Jt.angle+=un)}),on.commitTransaction("rotate "+un.toString())},bt.prototype.pullToFront=function(){var un=this.diagram;un.startTransaction("pullToFront");var on=new go.Map;un.selection.each(function(Jt){on.set(Jt.layer,0)}),on.iteratorKeys.each(function(Jt){var jt=0;Jt.parts.each(function(Pn){if(!Pn.isSelected){var Cn=Pn.zOrder;isNaN(Cn)?Pn.zOrder=0:jt=Math.max(jt,Cn)}}),on.set(Jt,jt)}),un.selection.each(function(Jt){bt._assignZOrder(Jt,on.get(Jt.layer)+1)}),un.commitTransaction("pullToFront")},bt.prototype.pushToBack=function(){var un=this.diagram;un.startTransaction("pushToBack");var on=new go.Map;un.selection.each(function(Jt){on.set(Jt.layer,0)}),on.iteratorKeys.each(function(Jt){var jt=0;Jt.parts.each(function(Pn){if(!Pn.isSelected){var Cn=Pn.zOrder;isNaN(Cn)?Pn.zOrder=0:jt=Math.min(jt,Cn)}}),on.set(Jt,jt)}),un.selection.each(function(Jt){bt._assignZOrder(Jt,on.get(Jt.layer)-1-bt._findGroupDepth(Jt))}),un.commitTransaction("pushToBack")},bt._assignZOrder=function(un,on,Jt){Jt===void 0&&(Jt=un),un.layer===Jt.layer&&(un.zOrder=on),un instanceof go.Group&&un.memberParts.each(function(jt){bt._assignZOrder(jt,on+1,Jt)})},bt._findGroupDepth=function(un){if(un instanceof go.Group){var on=0;return un.memberParts.each(function(Jt){on=Math.max(on,bt._findGroupDepth(Jt))}),on+1}else return 0},bt.prototype.doKeyDown=function(){var un=this.diagram;if(un!==null){var on=un.lastInput;if(on.key==="Up"||on.key==="Down"||on.key==="Left"||on.key==="Right"){var Jt=this.arrowKeyBehavior;if(Jt==="none")return;if(Jt==="select"){this._arrowKeySelect();return}else if(Jt==="move"){this._arrowKeyMove();return}else if(Jt==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},bt.prototype._getAllParts=function(){var un=new Array;return this.diagram.nodes.each(function(on){un.push(on)}),this.diagram.parts.each(function(on){un.push(on)}),un},bt.prototype._arrowKeyMove=function(){var un=this.diagram,on=un.lastInput,Jt=0,jt=0;if(on.control||on.meta)Jt=1,jt=1;else if(un.grid!==null){var Pn=un.grid.gridCellSize;jt=Pn.width,Jt=Pn.height}un.startTransaction("arrowKeyMove"),un.selection.each(function(Cn){on.key==="Up"?Cn.move(new go.Point(Cn.actualBounds.x,Cn.actualBounds.y-Jt)):on.key==="Down"?Cn.move(new go.Point(Cn.actualBounds.x,Cn.actualBounds.y+Jt)):on.key==="Left"?Cn.move(new go.Point(Cn.actualBounds.x-jt,Cn.actualBounds.y)):on.key==="Right"&&Cn.move(new go.Point(Cn.actualBounds.x+jt,Cn.actualBounds.y))}),un.commitTransaction("arrowKeyMove")},bt.prototype._arrowKeySelect=function(){var un=this.diagram,on=un.lastInput,Jt=null;on.key==="Up"?Jt=this._findNearestPartTowards(270):on.key==="Down"?Jt=this._findNearestPartTowards(90):on.key==="Left"?Jt=this._findNearestPartTowards(180):on.key==="Right"&&(Jt=this._findNearestPartTowards(0)),Jt!==null&&(on.shift?Jt.isSelected=!0:on.control||on.meta?Jt.isSelected=!Jt.isSelected:un.select(Jt))},bt.prototype._findNearestPartTowards=function(un){var on=this.diagram.selection.first();if(on===null)return null;for(var Jt=on.actualBounds.center,jt=this._getAllParts(),Pn=1/0,Cn=on,Kt=0;Kt<jt.length;Kt++){var Dt=jt[Kt];if(Dt!==on&&Dt.canSelect()){var pn=Dt.actualBounds.center,yn=Jt.directionPoint(pn),Jn=this._angleCloseness(yn,un);if(Jn<=45){var bn=Jt.distanceSquaredPoint(pn);bn*=1+Math.sin(Jn*Math.PI/180),bn<Pn&&(Pn=bn,Cn=Dt)}}}return Cn},bt.prototype._angleCloseness=function(un,on){return Math.min(Math.abs(on-un),Math.min(Math.abs(on+360-un),Math.abs(on-360-un)))},bt.prototype._arrowKeyTree=function(){var un=this.diagram,on=un.selection.first();if(on instanceof go.Node){var Jt=un.lastInput;if(Jt.key==="Right"){if(!on.isTreeLeaf)if(!on.isTreeExpanded)un.commandHandler.canExpandTree(on)&&un.commandHandler.expandTree(on);else{var jt=this._sortTreeChildrenByY(on).first();jt!==null&&un.select(jt)}}else if(Jt.key==="Left")if(!on.isTreeLeaf&&on.isTreeExpanded)un.commandHandler.canCollapseTree(on)&&un.commandHandler.collapseTree(on);else{var Pn=on.findTreeParentNode();Pn!==null&&un.select(Pn)}else if(Jt.key==="Up"){var Pn=on.findTreeParentNode();if(Pn!==null){var Cn=this._sortTreeChildrenByY(Pn),Kt=Cn.indexOf(on);if(Kt>0){for(var Dt=Cn.elt(Kt-1);Dt!==null&&Dt.isTreeExpanded&&!Dt.isTreeLeaf;){var pn=this._sortTreeChildrenByY(Dt);Dt=pn.last()}Dt!==null&&un.select(Dt)}else un.select(Pn)}}else if(Jt.key==="Down")if(on.isTreeExpanded&&!on.isTreeLeaf){var jt=this._sortTreeChildrenByY(on).first();jt!==null&&un.select(jt)}else for(;on!==null;){var Pn=on.findTreeParentNode();if(Pn===null)break;var Cn=this._sortTreeChildrenByY(Pn),Kt=Cn.indexOf(on);if(Kt<Cn.length-1){un.select(Cn.elt(Kt+1));break}else on=Pn}var yn=un.selection.first();yn!==null&&un.scrollToRect(yn.actualBounds)}},bt.prototype._sortTreeChildrenByY=function(un){var on=new go.List().addAll(un.findTreeChildrenNodes());return on.sort(function(Jt,jt){var Pn=Jt.location,Cn=jt.location;return Pn.y<Cn.y?-1:Pn.y>Cn.y?1:Pn.x<Cn.x?-1:Pn.x>Cn.x?1:0}),on},bt.prototype.copyToClipboard=function(un){go.CommandHandler.prototype.copyToClipboard.call(this,un),this._lastPasteOffset.set(this.pasteOffset)},bt.prototype.pasteFromClipboard=function(){var un=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(un,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),un},Object.defineProperty(bt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(un){if(un!=="move"&&un!=="select"&&un!=="scroll"&&un!=="tree"&&un!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+un);this._arrowKeyBehavior=un}}),Object.defineProperty(bt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(un){if(!(un instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+un);this._pasteOffset.set(un)}});var at=bt,nt=Ke(37404),we=Ke(43604),Te=Ke(70635),Ve={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ze=Ke(59301),Ee=(un,on,Jt)=>new Promise((jt,Pn)=>{var Cn=pn=>{try{Dt(Jt.next(pn))}catch(yn){Pn(yn)}},Kt=pn=>{try{Dt(Jt.throw(pn))}catch(yn){Pn(yn)}},Dt=pn=>pn.done?jt(pn.value):Promise.resolve(pn.value).then(Cn,Kt);Dt((Jt=Jt.apply(un,on)).next())});function Ge({onCancel:un,callback:on}){let Jt=(0,tt.useRef)(),jt=(0,tt.useRef)(),Pn=(0,tt.useRef)(),Cn=(0,tt.useRef)(!1);const Kt=(0,tt.useRef)(!1),[Dt,pn]=(0,tt.useState)(0);function yn(){const bn=St.bx.make,Zt={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Jt.current=new St.S0(jt.current,{padding:20,grid:bn(St.s_,"Grid",bn(St.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),bn(St.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:en=>{var ur=en.diagram.commandHandler.addTopLevelParts(en.diagram.selection,!0);ur||en.diagram.currentTool.doCancel()},commandHandler:bn(at),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:en=>{var ur=en.subject;ur.location=ur.location.copy().snapToGridPoint(en.diagram.grid.gridOrigin,en.diagram.grid.gridCellSize),setTimeout(()=>{en.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:en=>{var ur=en.subject;setTimeout(()=>{en.diagram.commandHandler.editTextBlock()})},LinkRelinked:en=>{var ur=en.parameter.part;ur.invalidateConnectedLinks();var Mr=en.subject;en.diagram.toolManager.linkingTool.isForwards?Mr.toNode.invalidateConnectedLinks():Mr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Jt.current.nodeTemplate=bn(St.NB,"Auto",{locationSpot:St.z6.Center,locationObjectName:"SHAPE",desiredSize:new St.$u(120,60),minSize:new St.$u(40,40),resizable:!0,resizeCellSize:new St.$u(10,10),rotatable:!0},new St.KX("location","loc",St.E9.parse).makeTwoWay(St.E9.stringify),new St.KX("desiredSize","size",St.$u.parse).makeTwoWay(St.$u.stringify),bn(St.bn,{name:"SHAPE",fill:Zt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:St.z6.AllSides,toSpot:St.z6.AllSides},new St.KX("figure"),new St.KX("fill"),new St.KX("stroke","borderColor"),new St.KX("strokeWidth","thickness"),new St.KX("strokeDashArray","dash")),bn(St.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),bn(St.al,{margin:1,textAlign:"center",overflow:St.al.OverflowEllipsis,editable:!0},new St.KX("text").makeTwoWay(),new St.KX("stroke","color"))),Jt.current.nodeTemplate.toolTip=bn("ToolTip",bn(St.s_,"Vertical",{maxSize:new St.$u(200,NaN)},bn(St.al,{font:"bold 10pt sans-serif",textAlign:"center"},new St.KX("text")),bn(St.al,{font:"10pt sans-serif",textAlign:"center"},new St.KX("text","details"))));function jn(en,ur){var Mr=(pr,Ar)=>{pr.handled=!0,pr.diagram.model.commit(Zr=>{var gi=Ar.part.adornedPart,_r=new St.E9().setRectSpot(gi.actualBounds,en);_r.subtract(gi.location),_r.scale(2,2),_r.x+=Math.sign(_r.x)*130,_r.y+=Math.sign(_r.y)*130,_r.add(gi.location),_r.snapToGridPoint(pr.diagram.grid.gridOrigin,pr.diagram.grid.gridCellSize);var vr=Zr.copyNodeData(gi.data);Zr.setGroupKeyForNodeData(vr,Zr.getGroupKeyForNodeData(gi.data)),Zr.addNodeData(vr);var Qr={from:gi.key,to:Zr.getKeyForNodeData(vr)};Zr.addLinkData(Qr);var An=pr.diagram.findNodeForData(vr);An.location=_r,pr.diagram.select(An),setTimeout(()=>{pr.diagram.commandHandler.editTextBlock()},20)})};return bn(St.bn,{figure:ur,alignment:en,alignmentFocus:en.opposite(),width:en.equals(St.z6.Top)||en.equals(St.z6.Bottom)?25:18,height:en.equals(St.z6.Top)||en.equals(St.z6.Bottom)?18:25,fill:"orange",stroke:Zt.white,strokeWidth:4,mouseEnter:(pr,Ar)=>Ar.fill="dodgerblue",mouseLeave:(pr,Ar)=>Ar.fill="orange",isActionable:!0,click:Mr,contextClick:Mr})}function Fn(en){return bn(St.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(ur,Mr)=>Mr.fill="dodgerblue",mouseLeave:(ur,Mr)=>Mr.fill="orange",click:(ur,Mr)=>{ur.diagram.commandHandler.showContextMenu(Mr.part.adornedPart)}},en||{})}Jt.current.nodeTemplate.selectionAdornmentTemplate=bn(St.uz,"Spot",bn(St.Vm,{padding:10}),jn(St.z6.Top,"TriangleUp"),jn(St.z6.Left,"TriangleLeft"),jn(St.z6.Right,"TriangleRight"),jn(St.z6.Bottom,"TriangleDown"),Fn({alignment:new St.z6(.75,0)}));function ar(en,ur){return(Mr,pr)=>{Mr.handled=!0,Mr.diagram.model.commit(Ar=>{Ar.set(pr.part.adornedPart.data,en,ur)})}}function nn(en,ur){return ur||(ur="color"),bn(St.bn,{width:16,height:16,stroke:"lightgray",fill:en,margin:1,background:"transparent",mouseEnter:(Mr,pr)=>pr.stroke="dodgerblue",mouseLeave:(Mr,pr)=>pr.stroke="lightgray",click:ar(ur,en),contextClick:ar(ur,en)})}function On(){return[bn("ContextMenuButton",bn(St.s_,"Horizontal",nn(Zt.white,"fill"),nn(Zt.beige,"fill"),nn(Zt.extralightblue,"fill"),nn(Zt.extralightred,"fill"))),bn("ContextMenuButton",bn(St.s_,"Horizontal",nn(Zt.lightgray,"fill"),nn(Zt.lightgreen,"fill"),nn(Zt.lightblue,"fill"),nn(Zt.lightred,"fill")))]}function an(){return[bn("ContextMenuButton",bn(St.s_,"Horizontal",nn(Zt.black),nn(Zt.green),nn(Zt.blue),nn(Zt.red))),bn("ContextMenuButton",bn(St.s_,"Horizontal",nn(Zt.white),nn(Zt.magenta),nn(Zt.purple),nn(Zt.orange)))]}function mn(en,ur){return ur||(ur="thickness"),bn(St.bn,"LineH",{width:16,height:16,strokeWidth:en,margin:1,background:"transparent",mouseEnter:(Mr,pr)=>pr.background="dodgerblue",mouseLeave:(Mr,pr)=>pr.background="transparent",click:ar(ur,en),contextClick:ar(ur,en)})}function Ln(en,ur){return ur||(ur="dash"),bn(St.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:en,margin:1,background:"transparent",mouseEnter:(Mr,pr)=>pr.background="dodgerblue",mouseLeave:(Mr,pr)=>pr.background="transparent",click:ar(ur,en),contextClick:ar(ur,en)})}function xn(){return[bn("ContextMenuButton",bn(St.s_,"Horizontal",mn(1),mn(2),mn(3),mn(4))),bn("ContextMenuButton",bn(St.s_,"Horizontal",Ln(null),Ln([2,4]),Ln([4,4])))]}function In(en,ur){return ur||(ur="figure"),bn(St.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:en,margin:1,background:"transparent",mouseEnter:(Mr,pr)=>pr.fill="dodgerblue",mouseLeave:(Mr,pr)=>pr.fill="lightgray",click:ar(ur,en),contextClick:ar(ur,en)})}Jt.current.nodeTemplate.contextMenu=bn("ContextMenu",bn("ContextMenuButton",bn(St.s_,"Horizontal",In("Rectangle"),In("RoundedRectangle"),In("Ellipse"),In("Diamond"))),bn("ContextMenuButton",bn(St.s_,"Horizontal",In("Parallelogram2"),In("ManualOperation"),In("Procedure"),In("Cylinder1"))),bn("ContextMenuButton",bn(St.s_,"Horizontal",In("Terminator"),In("CreateRequest"),In("Document"),In("TriangleDown"))),On(),an(),xn()),Jt.current.groupTemplate=bn(St.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:St.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(en,ur)=>{var Mr=ur.addMembers(ur.diagram.selection,!0);Mr||ur.diagram.currentTool.doCancel()},avoidable:!1},new St.KX("location","loc",St.E9.parse).makeTwoWay(St.E9.stringify),bn(St.s_,"Auto",{name:"BODY"},bn(St.bn,{parameter1:10,fill:Zt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:St.z6.AllSides,toSpot:St.z6.AllSides},new St.KX("fill"),new St.KX("stroke","color"),new St.KX("strokeWidth","thickness"),new St.KX("strokeDashArray","dash")),bn(St.Vm,{background:"transparent",margin:20})),bn(St.al,{alignment:St.z6.Top,alignmentFocus:St.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new St.KX("text"),new St.KX("stroke","color"))),Jt.current.groupTemplate.selectionAdornmentTemplate=bn(St.uz,"Spot",bn(St.s_,"Auto",bn(St.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),bn(St.Vm,{margin:1.5})),Fn({alignment:St.z6.TopRight,alignmentFocus:St.z6.BottomRight})),Jt.current.groupTemplate.contextMenu=bn("ContextMenu",On(),an(),xn()),Jt.current.linkTemplate=bn(St.rU,{layerName:"Foreground",routing:St.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new St.KX("fromSpot","fromSpot",St.z6.parse),new St.KX("toSpot","toSpot",St.z6.parse),new St.KX("fromShortLength","dir",en=>en>=1?10:0),new St.KX("toShortLength","dir",en=>en>=1?10:0),new St.KX("points").makeTwoWay(),bn(St.bn,{strokeWidth:2},new St.KX("stroke","color"),new St.KX("strokeWidth","thickness"),new St.KX("strokeDashArray","dash")),bn(St.bn,{segmentIndex:0,segmentOffset:new St.E9(15,0),segmentOrientation:St.rU.OrientAlong,alignmentFocus:St.z6.Right,figure:"circle",width:10,strokeWidth:0},new St.KX("fill","color"),new St.KX("visible","dir",en=>en===1)),bn(St.bn,{segmentIndex:-1,segmentOffset:new St.E9(-10,6),segmentOrientation:St.rU.OrientPlus90,alignmentFocus:St.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new St.KX("fill","color"),new St.KX("visible","dir",en=>en>=1),new St.KX("width","thickness",en=>7+3*en),new St.KX("height","thickness",en=>7+3*en),new St.KX("segmentOffset","thickness",en=>new St.E9(-15,4+1.5*en))),bn(St.bn,{segmentIndex:0,segmentOffset:new St.E9(15,-6),segmentOrientation:St.rU.OrientMinus90,alignmentFocus:St.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new St.KX("fill","color"),new St.KX("visible","dir",en=>en===2),new St.KX("width","thickness",en=>7+3*en),new St.KX("height","thickness",en=>7+3*en),new St.KX("segmentOffset","thickness",en=>new St.E9(-15,4+1.5*en))),bn(St.al,{alignmentFocus:new St.z6(0,1,-4,0),editable:!0},new St.KX("text").makeTwoWay(),new St.KX("stroke","color"))),Jt.current.linkTemplate.selectionAdornmentTemplate=bn(St.uz,bn(St.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:gn(2)},new St.KX("pathPattern","thickness",gn)),Fn({alignmentFocus:new St.z6(0,0,-6,-4)}));function gn(en){return bn(St.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(en+4).toString()+" H3"})}function Nn(en){var ur="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return en===0?ur="M0 0 M16 16 M0 8 L16 8":en===2&&(ur="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),bn(St.bn,{geometryString:ur,margin:2,background:"transparent",mouseEnter:(Mr,pr)=>pr.background="dodgerblue",mouseLeave:(Mr,pr)=>pr.background="transparent",click:ar("dir",en),contextClick:ar("dir",en)})}function kn(en){var ur=(Mr,pr)=>{Mr.handled=!0,Mr.diagram.model.commit(Ar=>{var Zr=pr.part.adornedPart;Ar.set(Zr.data,en?"toSpot":"fromSpot",St.z6.stringify(St.z6.AllSides)),(en?Zr.toNode:Zr.fromNode).invalidateConnectedLinks()})};return bn(St.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Mr,pr)=>pr.background="dodgerblue",mouseLeave:(Mr,pr)=>pr.background="transparent",click:ur,contextClick:ur})}function En(en,ur){var Mr=0,pr=St.z6.RightSide;en.equals(St.z6.Top)?(Mr=270,pr=St.z6.TopSide):en.equals(St.z6.Left)?(Mr=180,pr=St.z6.LeftSide):en.equals(St.z6.Bottom)&&(Mr=90,pr=St.z6.BottomSide),ur||(Mr-=180);var Ar=(Zr,gi)=>{Zr.handled=!0,Zr.diagram.model.commit(_r=>{var vr=gi.part.adornedPart;_r.set(vr.data,ur?"toSpot":"fromSpot",St.z6.stringify(pr)),(ur?vr.toNode:vr.fromNode).invalidateConnectedLinks()})};return bn(St.bn,{alignment:en,alignmentFocus:en.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Mr,background:"transparent",mouseEnter:(Zr,gi)=>gi.background="dodgerblue",mouseLeave:(Zr,gi)=>gi.background="transparent",click:Ar,contextClick:Ar})}Jt.current.linkTemplate.contextMenu=bn("ContextMenu",an(),xn(),bn("ContextMenuButton",bn(St.s_,"Horizontal",Nn(0),Nn(1),Nn(2))),bn("ContextMenuButton",bn(St.s_,"Horizontal",bn(St.s_,"Spot",kn(!1),En(St.z6.Top,!1),En(St.z6.Left,!1),En(St.z6.Right,!1),En(St.z6.Bottom,!1)),bn(St.s_,"Spot",{margin:new St.Zt(0,0,0,2)},kn(!0),En(St.z6.Top,!0),En(St.z6.Left,!0),En(St.z6.Right,!0),En(St.z6.Bottom,!0)))));const $n=`{ "class": "GraphLinksModel",
|
|
|
"nodeDataArray": [
|
|
|
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
|
|
|
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
|
|
|
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
|
|
|
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
|
|
|
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
|
|
|
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
|
|
|
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
|
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
|
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
|
|
|
],
|
|
|
"linkDataArray": [
|
|
|
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
|
|
|
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
|
|
|
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
|
|
|
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
|
|
|
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
|
|
|
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
|
|
|
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
|
|
|
]}`;var mr=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function Hr(en){return console.log("shapeName:",en),mr.indexOf(en)>=0}var Lr=new St.YI(Pn.current,{maxSelectionCount:1,linkTemplate:bn(St.rU,{locationSpot:St.z6.Center,selectionAdornmentTemplate:bn(St.uz,"Link",{locationSpot:St.z6.Center},bn(St.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),bn(St.bn,{toArrow:"Standard",stroke:null}))},{routing:St.rU.AvoidsNodes,curve:St.rU.JumpOver,corner:5,toShortLength:4},new St.KX("points"),bn(St.bn,{isPanelMain:!0,strokeWidth:2}),bn(St.bn,{toArrow:"Standard",stroke:null})),model:new St.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...St.bn.getFigureGenerators().toArray().map(en=>({text:"\u672A\u547D\u540D",size:"100 100",figure:en.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Jt.current.addDiagramListener("TextEdited",function(en){var ur;const Mr=en.subject.part;var pr=(ur=document.activeElement)==null?void 0:ur.value;typeof pr=="string"&&pr.trim()===""&&Jt.current.model.commit(function(Ar){Ar.set(Mr.data,"text","\u672A\u547D\u540D"),Jt.current.commandHandler.stopCommand()},"increment")}),Lr.nodeTemplate=bn(St.NB,"Auto",{locationSpot:St.z6.Center},new St.KX("location","location",St.E9.parse).makeTwoWay(St.E9.stringify),bn(St.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new St.KX("stroke").makeTwoWay(),new St.KX("fill").makeTwoWay(),new St.KX("figure")),bn(St.al,{margin:new St.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new St.$u(16,16),maxSize:new St.$u(10,NaN),textAlign:"center",editable:!0},new St.KX("key").makeTwoWay())),setTimeout(()=>{Jt.current.grid=bn(St.s_,"Grid",bn(St.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),bn(St.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Jt.current.grid.visible=!0,Jt.current.grid.gridCellStroke="darkgray",Jt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Jt.current,Jt.current}const Jn=()=>Ee(this,null,function*(){var bn=Jt.current.makeImage();const Zt=yield(0,Te.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:bn.src}});on({src:Zt.url})});return(0,tt.useEffect)(()=>(setTimeout(()=>{yn()},500),pn(Dt+1),()=>{Jt.current=null}),[]),Ze.createElement("div",{ref:Kt,className:Cn.current?`${Ve.maxH60} body-overflow-initial`:"body-overflow-initial"},Ze.createElement(gt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Dt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ze.createElement(mt.Z,null,Ze.createElement(we.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ze.createElement(we.Z,{onClick:()=>{var bn,Zt,jn=Jt.current.selection.first();if(Cn.current=!Cn.current,document.activeElement&&jn){let Fn=(Zt=(bn=document.activeElement)==null?void 0:bn.value)==null?void 0:Zt.trim();typeof Fn=="string"&&Jt.current.model.commit(function(ar){ar.set(jn.data,"text",Fn||"\u672A\u547D\u540D"),Jt.current.commandHandler.stopCommand()},"increment")}pn(Dt+1)}},Ze.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:un},Ze.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ve.flowChartWrp},Ze.createElement("div",{style:{display:"flex",height:"100%"}},Ze.createElement("div",{style:{width:"300px",height:"100%"}},Ze.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ze.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ve.myPaletteDiv,ref:Pn})),Ze.createElement("div",{style:{flex:1,position:"relative"}},Ze.createElement("div",{ref:jt,style:{height:"80vh"}}))),Ze.createElement("div",{className:"tr"},Ze.createElement(_e.ZP,{size:"large",onClick:Jn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var He=Ge,We=Ke(5112),Xe=Ke(88897);const ct=We.ZP.Group,Et={margin:"0 8px"};var ht=({callback:un,onCancel:on})=>{function Jt(jt){un(jt)}return tt.createElement(je.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Jt},tt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},tt.createElement("span",{style:Et},"\u5355\u5143\u683C\u6570\uFF1A"),tt.createElement("span",{style:Et},"\u884C\u6570"),tt.createElement(je.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},tt.createElement(Xe.Z,null)),tt.createElement("span",{style:Et},"\u5217\u6570"),tt.createElement(je.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},tt.createElement(Xe.Z,null))),tt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},tt.createElement("span",{style:Et},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),tt.createElement(je.default.Item,{name:"align"},tt.createElement(ct,null,tt.createElement(We.ZP,{value:"default"},tt.createElement("i",{className:"fa fa-align-justify"})),tt.createElement(We.ZP,{value:"left"},tt.createElement("i",{className:"fa fa-align-left"})),tt.createElement(We.ZP,{value:"center"},tt.createElement("i",{className:"fa fa-align-center"})),tt.createElement(We.ZP,{value:"right"},tt.createElement("i",{className:"fa fa-align-right"}))))),tt.createElement("div",{className:"flex-container flex-end"},tt.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),tt.createElement(_e.ZP,{type:"ghost",onClick:on},"\u53D6\u6D88")))},It=Ke(78673),qt=Ke(98598),$t=Ke.n(qt),Ut=(0,tt.forwardRef)(({use3d:un,width:on,height:Jt,callback:jt,showSaveButton:Pn},Cn)=>{const Kt=(0,tt.useRef)(),Dt=(0,tt.useRef)(),[pn,yn]=(0,tt.useState)(!1),Jn=(0,tt.useRef)({id:Kt,appName:"graphing",width:on||1e3,height:Jt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,tt.useEffect)(()=>{Dt.current=new($t())(Jn.current,!0),window.onload=function(){Dt.current.inject("applet_container")}},[]);const bn=()=>{var Zt=window.ggbApplet.getPNGBase64(1,!0,72);return jt&&jt(Zt),Zt};return(0,tt.useEffect)(()=>{Jn.current.appName=pn?"3D":"graphing",Dt.current.inject("applet_container")},[pn]),(0,tt.useEffect)(()=>{yn(un)},[un]),(0,tt.useImperativeHandle)(Cn,()=>({getImgData:bn})),tt.createElement(tt.Fragment,null,tt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Kt}),tt.createElement(mt.Z,{align:"middle"},tt.createElement(we.Z,{flex:1},tt.createElement(It.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:pn,onChange:Zt=>yn(Zt)})),tt.createElement(we.Z,null,tt.createElement(_e.ZP,{size:"large",onClick:bn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),ln=Ke(75890),kt=Ke(8591);const Xt="link",tn="upload-image",dn="add-flowchart",Mn="draw-image",Rn="add-flowchart",ir="code-block",qn="add-table",Cr="------------",er={default:Cr,left:`:${Cr}`,center:`:${Cr}:`,right:`${Cr}:`};var Fr=Ke(91300);function jr(){}let fi=0;const Si=1e4,tr="\u2581",gr="@\u2581\u2581@",Qn="@\u2581@",it=`
|
|
|
**\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`,Ur=["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 Rr(un){return/^\d+$/.test(un)?`${un}px`:un}const Vr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Br={[Vr+"-B"]:"bold",[Vr+"-I"]:"italic"},Xr={[Xt]:"\u6DFB\u52A0\u94FE\u63A5",[ir]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[tn]:"\u6DFB\u52A0\u56FE\u7247",[Mn]:"\u6DFB\u52A0\u753B\u56FE",[dn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[qn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var hr=({defaultValue:un="",onChange:on,width:Jt="100%",height:jt=400,miniToolbar:Pn=!1,isFocus:Cn=!1,watch:Kt,insertTemp:Dt,mode:pn="markdown",id:yn="markdown-editor-id",showResizeBar:Jn=!1,noStorage:bn=!1,showNullButton:Zt=!1,showNullProgramButton:jn=!1,hidetoolBar:Fn=!1,fullScreen:ar=!1,onBlur:nn,onCMBeforeChange:On,onFullScreen:an,className:mn="",disablePaste:Ln=!1,disabled:xn=!1,disabledFill:In=!1,placeholder:gn="",values:Nn="",extraUse:kn})=>{const[En,$n]=(0,tt.useState)(null),[mr,Hr]=(0,tt.useState)(un),[Lr,en]=(0,tt.useState)(Kt),[ur,Mr]=(0,tt.useState)(ar),[pr,Ar]=(0,tt.useState)(""),[Zr,gi]=(0,tt.useState)(0),[_r,vr]=(0,tt.useState)(jt),[Qr,An]=(0,tt.useState)(!1),[ki,Dn]=(0,tt.useState)(0),[ui,fo]=(0,tt.useState)(0),Mi=(0,tt.useRef)(),Zo=(0,tt.useRef)(),co=(0,tt.useRef)(),$r=(0,tt.useRef)();(0,tt.useEffect)(()=>{const Or=window.scrollY||window.pageYOffset;Hr(Nn),En==null||En.setValue(Nn),window.scrollTo(0,Or)},[Nn]),(0,tt.useEffect)(()=>{an==null||an(ur)},[ur]),(0,tt.useEffect)(()=>{if(Mi.current){let Or=function(ai,Xn){var no;if(Ln){Xn.preventDefault();return}const po=Xn.clipboardData;if(po){const Vo=po.types.toString(),To=po.items;if(Vo==="Files"||po.types.indexOf("Files")>-1){if(Xn.preventDefault(),pn=="stex")return;try{let ea=To[1];((no=To[0])==null?void 0:no.kind)==="file"&&(ea=To[0]);const ba=ea.getAsFile(),Ia=ba.name.split(".").pop();(0,pt.I)(ba,Va=>{var xs,fs,Tn;Va.id?((xs=ba==null?void 0:ba.type)==null?void 0:xs.indexOf("image"))>-1?Ir.replaceSelection(``):((fs=ba==null?void 0:ba.type)==null?void 0:fs.indexOf("video"))>-1?Ir.replaceSelection(`<video width="100%" controls src="/api/attachments/${Va.id}"></video>`):((Tn=ba==null?void 0:ba.type)==null?void 0:Tn.indexOf("pdf"))>-1?Ir.replaceSelection(`<a href="/api/attachments/${Va.id}?type=${ba.type}&disposition=inline" target="_blank">${ba.name}</a>`):Ur.includes(Ia)?Ir.replaceSelection(`<a href="/api/attachments/${Va.id}?type=office&disposition=inline" target="_blank">${ba.name}</a>`):Ir.replaceSelection(`[${ba.name}](/api/attachments/${Va.id}?type=${Va.content_type})`):(Va==null?void 0:Va.status)===401&&(document.location.href="/user/login")})}catch(ea){kt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ir=oe().fromTextArea(Mi.current,{mode:pn,lineNumbers:!Pn,lineWrapping:!0,value:un,autoCloseTags:!0,autoCloseBrackets:!0});return Ir.on("keyup",function(ai,Xn){Xn.keyCode===8&&(ai.getValue()==""?Ir.setOption("placeholder",gn):Ir.setOption("placeholder",null))}),Ir.on("keydown",function(ai,Xn){if(Xn.keyCode===8){var no=Ni(ai);no&&Xn.preventDefault()}}),Cn&&Ir.focus(),Ir.on("paste",Or),xn&&Ir.on("beforeChange",function(ai,Xn){(Xn.origin==="paste"||Xn.origin==="+input")&&Xn.cancel()}),$n(Ir),()=>{Ir.off("paste",Or)}}},[]);const Gr=(0,tt.useCallback)(()=>{if(Zo.current)try{}catch(Or){console.log(Or,"---- to set md editor body height")}},[_r,Zo,ur]);(0,tt.useEffect)(()=>{function Or(){let Ir=new Ue.Z(ai=>{for(let Xn of ai)(Xn.target.offsetHeight>0||Xn.target.offsetWidth>0)&&(Gr(),En.setSize("100%","100%"),En.refresh())});return Ir.observe(Mi.current.parentElement),Ir}if(En){const Ir=Or();return()=>{var ai,Xn;(ai=Mi.current)!=null&&ai.parentElement&&Ir.unobserve((Xn=Mi.current)==null?void 0:Xn.parentElement)}}},[En,Gr]),(0,tt.useEffect)(()=>{if(En){let Or=[];for(const[Ir,ai]of Object.entries(Br)){let Xn={[Ir]:()=>{Wi(ai)}};Or.push(Xn),En.addKeyMap(Xn)}return()=>{for(let Ir of Or)En.removeKeyMap(Ir)}}},[En]),(0,tt.useEffect)(()=>{ar!==ur&&Mr(ar)},[ar]),(0,Fr.Z)(()=>{if(!bn&&Zr>0){let Or=new Date().getTime(),Ir=window.sessionStorage.getItem(yn);Or>=Zr+Si&&(!Ir||Ir!==mr)&&(window.sessionStorage.setItem(yn,mr),An(!0))}},Si),(0,tt.useEffect)(()=>{en(Kt)},[En,Kt]),(0,tt.useEffect)(()=>{En&&Cn&&En.focus()},[En,Cn]),(0,tt.useEffect)(()=>{if(Lr&&En){let Or=function(ai){let Xn=ai.target;if($r.current){let no=Xn.scrollTop/Xn.scrollHeight;$r.current.scrollTop=$r.current.scrollHeight*no}};const Ir=En.getScrollerElement();return Ir.addEventListener("scroll",Or),()=>{Ir.removeEventListener("scroll",Or)}}},[En,Lr]),(0,tt.useEffect)(()=>{if(En&&On){let Or=function(Ir,ai){On(Ir,ai)};return En.on("beforeChange",Or),()=>{En.off("beforeChange",Or)}}},[En,On]),(0,tt.useEffect)(()=>{if(En&&nn){let Or=function(){nn(En.getValue())};return En.on("blur",Or),()=>{En.off("blur",Or)}}},[En,nn]);function Ni(Or,Ir){var ai=Or.getDoc(),Xn=ai.getCursor(),no=ai.getLine(Xn.line),po=no.charAt(Xn.ch-1),Vo=no.lastIndexOf("@\u2581@",Xn.ch),To=no.lastIndexOf("@\u2581\u2581@",Xn.ch),ea=Vo>To?Vo:To,ba=Vo>To?3:4;if(gr.indexOf(po)===-1)return null;if(console.log("change1:",Ir,Or,no,Xn,ea,Vo,To,po),ea>=0&&Xn.ch-ea<5){var Ia=ea+ba;return ai.replaceRange("",{line:Xn.line,ch:ea},{line:Xn.line,ch:Ia}),{line:Xn.line,ch:Ia}}return null}(0,tt.useEffect)(()=>{if(En){let Or=function(Ir,ai){const Xn=Ir.getValue();Hr(Xn),gi(new Date().getTime()),Ir.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),on&&(jn?on(Xn,ko(Xn)):on(Xn))};return En.on("change",Or),()=>{En.off("change",Or)}}},[En,on]),(0,tt.useEffect)(()=>{if(En)if(un==null)En.setValue(""),Hr("");else{const Or=window.scrollY||window.pageYOffset;un!==En.getValue()&&(En.setValue(un),Hr(un),En.setCursor(xn?1:En.lineCount(),0),window.scrollTo(0,Or))}},[En,un]);const Wi=(0,tt.useCallback)(Or=>{const Ir=En.getCursor(),ai=En.getSelection();let Xn=ai.split(`
|
|
|
`);switch(Or){case"bold":return En.replaceSelection("**"+ai+"**"),ai===""&&En.setCursor(Ir.line,Ir.ch+2),En.focus();case"italic":return En.replaceSelection("*"+ai+"*"),ai===""&&En.setCursor(Ir.line,Ir.ch+1),En.focus();case"code":return En.replaceSelection("`"+ai+"`"),ai===""&&En.setCursor(Ir.line,Ir.ch+1),En.focus();case"inline-latex":return Ar("inline-latex"),En.focus();case"latex":return En.replaceSelection("```latex\n"+ai+"\n```"),En.setCursor(Ir.line+1,ai.length+1),En.focus();case"line-break":return En.replaceSelection(`<br/>
|
|
|
`),En.focus();case"list-ul":return ai===""?En.replaceSelection("- "+ai):En.replaceSelection(Xn.map(no=>no===""?"":`- ${no}`).join(`
|
|
|
`)),En.focus();case"list-ol":return ai===""?En.replaceSelection("1. "+ai):En.replaceSelection(Xn.map((no,po)=>no===""?"":`${po+1}. ${no}`).join(`
|
|
|
`)),En.focus();case"add-null-ch":return ai===""&&En.setCursor(Ir.line,Ir.ch),En.replaceSelection(tr),En.focus();case"add-signal":return ai===""&&En.setCursor(Ir.line,Ir.ch),En.replaceSelection(Qn),En.focus();case"add-multiple":return ai===""&&En.setCursor(Ir.line,Ir.ch),En.replaceSelection(gr),En.focus();case"inster-template-1":return ai===""&&En.setCursor(Ir.line,Ir.ch),En.replaceSelection(it),En.focus();case"eraser":return En.setValue(""),En.focus();case"trigger-watch":return en(!Lr),En.focus();case"trigger-full-screen":return Mr(!ur),En.focus();case Xt:Ar(Xt);return;case ir:Ar(ir);return;case tn:Ar(tn);return;case Mn:Ar(Mn);return;case"maths-latex":Ar("maths-latex");return;case dn:Ar(dn);return;case qn:Ar(qn);return;default:throw new Error}},[En,Lr,ur]),dr=(0,tt.useCallback)((Or,Ir)=>{var ai,Xn,no,po,Vo,To;switch(Ar(""),pr){case Xt:const{title:xs,link:fs}=Or;return En.replaceSelection(`[${xs}](${fs})`),En.focus();case ir:const{language:Tn,content:qa}=Or;return En.replaceSelection(["```"+Tn,qa,"```"].join(`
|
|
|
`)),En.focus();case"maths-latex":for(var ea=atob(Or),ba=new Uint8Array(ea.length),Ia=0;Ia<ea.length;Ia++)ba[Ia]=ea.charCodeAt(Ia);var Va=new Blob([ba],{type:"image/png"});(0,pt.I)(Va,Wa=>{Wa.id?En.replaceSelection(``):(Wa==null?void 0:Wa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":En.replaceSelection("`$$"+Or+"$$`");break;case tn:case Mn:case Rn:const{src:jl,alt:Il}=Or,Zi=Ir,jo=(no=(Xn=(ai=Zi==null?void 0:Zi.name)==null?void 0:ai.split("."))==null?void 0:Xn.pop)==null?void 0:no.call(Xn);return((po=Zi==null?void 0:Zi.type)==null?void 0:po.indexOf("image"))>-1||!(Zi!=null&&Zi.type)?Il?En.replaceSelection(``):En.replaceSelection(``):((Vo=Zi==null?void 0:Zi.type)==null?void 0:Vo.indexOf("video"))>-1?En.replaceSelection(`<video width="100%" controls src="${jl}"></video>`):((To=Zi==null?void 0:Zi.type)==null?void 0:To.indexOf("pdf"))>-1?En.replaceSelection(`<a href="${jl}?type=${Zi.type}&disposition=inline" target="_blank">${Zi.name}</a>`):Ur.includes(jo)?En.replaceSelection(`<a href="${jl}?type=office&disposition=inline" target="_blank">${Zi.name}</a>`):En.replaceSelection(`[${Zi.name}](${jl})`),En.focus();case qn:const{row:pa,col:No,align:Qi}=Or;let Po=`
|
|
|
`;for(let Wa=0;Wa<pa;Wa++){let Ei=[],ro=[];for(let eo=0;eo<No;eo++)Wa===1&&ro.push(er[Qi]),Ei.push(" ");Wa===1&&(Po+=`| ${ro.join(" | ")} |
|
|
|
`),Po+=`| ${Ei.join(No===1?"":" | ")} |
|
|
|
`}return En.replaceSelection(Po+`
|
|
|
`),En.focus();default:throw new Error}},[En,pr]),Lt=(0,tt.useMemo)(()=>{switch(pr){case Xt:return tt.createElement(xt,{callback:dr,onCancel:Pi});case ir:return tt.createElement(yt.Z,{callback:dr,onCancel:Pi});case tn:return tt.createElement(pt.Z,{callback:dr,onCancel:Pi});case dn:return tt.createElement(He,{callback:dr,onCancel:Pi});case qn:return tt.createElement(ht,{callback:dr,onCancel:Pi});case"maths-latex":return tt.createElement(Ut,{showSaveButton:!0,callback:dr});case"inline-latex":return tt.createElement(ln.Z,{showSaveButton:!0,callback:dr});default:return null}},[pr]);function Pi(){Ar("")}(0,tt.useEffect)(()=>{if(co.current){let Or=function(Vo){no=!0,po=Vo.pageY},Ir=function(){no=!1},ai=function(Vo){if(no){let To=Vo.pageY-po;To<0&&(To=0),To>300&&(To=300);let ea=jt+To+"px";vr(ea)}},Xn=co.current,no=!1,po=0;return Xn.addEventListener("mousedown",Or),document.addEventListener("mousemove",ai),document.addEventListener("mouseup",Ir),()=>{Xn.removeEventListener("mousedown",Or),document.removeEventListener("mousemove",ai),document.removeEventListener("mouseup",Ir)}}},[En,co]),(0,tt.useEffect)(()=>{vr(jt)},[jt]);const Mo=Rr(Jt),Oi=Rr(_r),wo={width:Mo,height:Oi},Lo=(0,tt.useMemo)(()=>{if(Zr){let Or=new Date(Zr),Ir=Or.getHours(),ai=Or.getMinutes(),Xn=Or.getSeconds();return Ir=Ir<10?"0"+Ir:Ir,ai=ai<10?"0"+ai:ai,Xn=Xn<10?"0"+Xn:Xn,`${Ir}:${ai}:${Xn}`}return 0},[Zr]),ko=Or=>{const Ir=[];if(jn){let ai=-1;Or=Or.replace(/(@▁▁@|@▁@)/g,function(Xn,no,po){Ir.push({multiLine:Xn!==Qn})})}return Ir};function xi(){window.sessionStorage.removeItem(yn),An(!1),gi(0)}function ci(){An(!1),gi(0),En.setValue(window.sessionStorage.getItem(yn))}(0,tt.useEffect)(()=>{Xr[pr]&&pr!==Mn&&pr!==dn&&setTimeout(()=>{const Or=document.getElementsByClassName("markdown-popup-form")[0],Ir=window.innerWidth/2-Or.offsetWidth/2,ai=window.innerHeight/2-Or.offsetHeight/2;Dn(Ir),fo(ai)},0)},[pr]);const ii=Or=>{Or.preventDefault();const Ir=Or.clientX-ki,ai=Or.clientY-ui;document.body.onmousemove=Xn=>{let no=Xn.clientX-Ir,po=Xn.clientY-ai;const Vo=document.getElementsByClassName("markdown-popup-form")[0],To=window.innerWidth-Vo.offsetWidth,ea=window.innerHeight-Vo.offsetHeight;no=Math.max(0,Math.min(no,To)),po=Math.max(0,Math.min(po,ea)),Ji(Xn.clientX,Xn.clientY,Ir,ai)&&(Dn(no),fo(po))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ji=(Or,Ir,ai,Xn)=>{const no=document.body.clientHeight,po=document.body.clientWidth;return Or<20&&ai>Or||Or>po-20&&ai<Or||Ir<20&&Xn>Ir||Ir>no-20&&Xn<Ir?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return tt.createElement(tt.Fragment,null,tt.createElement("div",{className:"markdown-editor-wrapper",ref:Zo},tt.createElement("div",{className:`markdown-editor-container ${mn} ${Lr?"on-preview":""} ${Pn?"mini":""} ${ur?"full-screen":""}`,style:wo},tt.createElement(Oe,{insertTemp:Dt,watch:Lr,fullScreen:ur,showNullButton:Zt,showNullProgramButton:jn,onActionCallback:Wi,hidetoolBar:Fn,extraUse:kn}),tt.createElement("div",{className:"markdown-editor-body"},tt.createElement("div",{className:"codemirror-container"},tt.createElement("textarea",{ref:Mi,placeholder:gn})),Lr?tt.createElement("div",{ref:$r,className:"preview-container"},pn==="stex"&&tt.createElement(ve,{value:mr}),pn!=="stex"&&tt.createElement(ke.Z,{disabledFill:In,showProgramFill:jn,value:mr})):null))),Jn?tt.createElement("a",{ref:co,className:"editor-resize"}):null,pr===Mn&&tt.createElement(zt,{callback:dr,onCancel:Pi}),pr===dn&&tt.createElement(He,{callback:dr,onCancel:Pi}),tt.createElement(Ae.Z,null,Xr[pr]&&pr!==Mn&&pr!==dn?tt.createElement(gt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ki,top:ui},title:tt.createElement("div",{style:{cursor:"move"},onMouseDown:ii},Xr[pr]),open:!0,onCancel:Pi,footer:null,destroyOnClose:!0,width:pr===dn?"1200px":null,height:pr===dn?"80vh":null,className:"markdown-popup-form"},Lt):null))}},56701:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return ue},I:function(){return Ce}});var tt=Ke(78241),Pt=Ke(8591),oe=Ke(92832),Ue=Ke(3113),Fe=Ke(58788),me=Ke(59301),ce=Ke(59301),be=Object.defineProperty,Le=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,fe=(Pe,Ie,Oe)=>Ie in Pe?be(Pe,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Pe[Ie]=Oe,z=(Pe,Ie)=>{for(var Oe in Ie||(Ie={}))ve.call(Ie,Oe)&&fe(Pe,Oe,Ie[Oe]);if(ke)for(var Oe of ke(Ie))xe.call(Ie,Oe)&&fe(Pe,Oe,Ie[Oe]);return Pe},ee=(Pe,Ie)=>Le(Pe,Se(Ie));const{useForm:ae}=tt.default,re={width:280,marginRight:10},le={labelCol:{span:5},wrapperCol:{span:19}};var ue=({callback:Pe,onCancel:Ie})=>{const[Oe]=ae();let Ae=(0,me.useRef)();function je(qe){Pe(qe,Ae.current)}function Be(qe,ze){if(qe.status===-1){Pt.ZP.error(qe.message);return}Oe.setFieldsValue({src:`/api/attachments/${qe.id}`,type:ze.type})}function _e(qe){let ze=qe.target.files[0];Ae.current=ze,Ce(ze,Be)}return ce.createElement(tt.default,ee(z({form:Oe},le),{className:"upload-image-panel",onFinish:je,style:{width:470,overflow:"hidden"}}),ce.createElement(tt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ce.createElement("div",{className:"flex-container"},ce.createElement(tt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ce.createElement(oe.default,{style:re})),ce.createElement(pe,{onFileChange:_e}))),ce.createElement(tt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ce.createElement(oe.default,{style:{width:264}})),ce.createElement(tt.default.Item,{style:{textAlign:"right"}},ce.createElement(Ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ce.createElement(Ue.ZP,{type:"default",onClick:Ie},"\u53D6\u6D88")))};function pe({onFileChange:Pe}){return ce.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ce.createElement("input",{type:"file",onChange:Pe}))}function Ce(Pe,Ie){if(!Pe)throw new String("\u6CA1\u6709\u6587\u4EF6");let Oe=new FormData;Oe.append("editormd-image-file",Pe),Oe.append("file_param_name","editormd-image-file"),Oe.append("byxhr","true");var Ae=new window.XMLHttpRequest;Ae.withCredentials=!0,Ae.addEventListener("load",function(je){Ie(JSON.parse(je.target.responseText),Pe)},!1),Ae.addEventListener("error",function(je){console.error(je)},!1),Ae.open("POST",`${Fe.KI}/api/attachments.json`),Ae.send(Oe)}},50474:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return oe}});var tt=Ke(59301),Pt=Ke(4676);class oe extends tt.Component{constructor(Fe){super(Fe);const me=window.document;this.node=me.createElement("div"),me.body.appendChild(this.node)}render(){const{children:Fe}=this.props;return(0,Pt.createPortal)(Fe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},48551:function(Gn,vn,Ke){"use strict";Ke.d(vn,{SV:function(){return Ge},ZP:function(){return Ee}});var tt=Ke(59301),Pt=Ke(76374);const oe={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Ue={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},Fe={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
|
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
|
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
|
`)}]},me={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
|
`)}]},ce={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
|
|
|
`)}]};var be=Ke(86061),Le=Ke.n(be),Se=Object.defineProperty,ke=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(He,We,Xe)=>We in He?Se(He,We,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):He[We]=Xe,ae=(He,We)=>{for(var Xe in We||(We={}))fe.call(We,Xe)&&ee(He,Xe,We[Xe]);if(xe)for(var Xe of xe(We))z.call(We,Xe)&&ee(He,Xe,We[Xe]);return He},re=(He,We)=>ke(He,ve(We)),le=(He,We,Xe)=>new Promise((ct,Et)=>{var ht=$t=>{try{qt(Xe.next($t))}catch(Wt){Et(Wt)}},It=$t=>{try{qt(Xe.throw($t))}catch(Wt){Et(Wt)}},qt=$t=>$t.done?ct($t.value):Promise.resolve($t.value).then(ht,It);qt((Xe=Xe.apply(He,We)).next())});const ue={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},pe=(He,We)=>We.map(Xe=>({label:Xe,kind:He.languages.CompletionItemKind.Keyword,insertText:Xe})),Ce=He=>Object.keys(ue.tables).map(We=>({label:We,kind:He.languages.CompletionItemKind.Variable,insertText:We})),Pe=(He,We)=>{const Xe=ue.tables[He];return Xe?Xe.map(ct=>({label:ct,kind:We.languages.CompletionItemKind.Field,insertText:ct})):[]};function Ie(He,We,Xe,ct,Et){let ht=We.getWordUntilPosition(Xe),It={startLineNumber:Xe.lineNumber,endLineNumber:Xe.lineNumber,startColumn:ht.startColumn,endColumn:ht.endColumn},qt=ct.map($t=>({label:$t,kind:He.languages.CompletionItemKind.Keyword,insertText:$t,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:It}));return Et.map($t=>{qt.push(re(ae({},$t),{range:It}))}),qt}var Oe=He=>{ue.languages.map(Et=>(He.languages.registerDocumentFormattingEditProvider(Et,{provideDocumentFormattingEdits(ht,It,qt){return le(this,null,function*(){const $t=Le()(ht.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:ht.getFullModelRange(),text:$t}]})}}),Et));const We=Fe.quickKey.map(Et=>({label:Et.label,kind:He.languages.CompletionItemKind.Method,insertText:Et.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Xe=me.quickKey.map(Et=>({label:Et.label,kind:He.languages.CompletionItemKind.Method,insertText:Et.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ct=Ue.quickKey.map(Et=>({label:Et.label,kind:He.languages.CompletionItemKind.Method,insertText:Et.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet}));He.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Et,ht){var It=Et.getWordUntilPosition(ht),qt={startLineNumber:ht.lineNumber,endLineNumber:ht.lineNumber,startColumn:It.startColumn,endColumn:It.endColumn},$t=Et.getLineContent(ht.lineNumber).substring(It.startColumn-2,It.endColumn);return{suggestions:[...Fe.keywords.map(Wt=>({label:Wt,kind:He.languages.CompletionItemKind.Function,documentation:Wt,insertText:Wt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:qt})),...Fe.quickKey.map(Wt=>({label:Wt.label,kind:He.languages.CompletionItemKind.Function,documentation:Wt.content,insertText:$t.startsWith("#")?Wt.content.replace(/#/,""):Wt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:qt}))]}}}),He.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Et,ht){var It=Et.getWordUntilPosition(ht),qt={startLineNumber:ht.lineNumber,endLineNumber:ht.lineNumber,startColumn:It.startColumn,endColumn:It.endColumn};return{suggestions:[...oe.keywords.map($t=>({label:$t,kind:He.languages.CompletionItemKind.Function,documentation:$t,insertText:$t,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:qt}))]}}}),He.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Et,ht){var It=Et.getWordUntilPosition(ht),qt={startLineNumber:ht.lineNumber,endLineNumber:ht.lineNumber,startColumn:It.startColumn,endColumn:It.endColumn},$t=Et.getLineContent(ht.lineNumber).substring(It.startColumn-2,It.endColumn);return{suggestions:[...Ue.keywords.map(Wt=>({label:Wt,kind:He.languages.CompletionItemKind.Function,documentation:Wt,insertText:Wt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:qt})),...Ue.quickKey.map(Wt=>({label:Wt.label,kind:He.languages.CompletionItemKind.Function,documentation:Wt.content,insertText:$t.startsWith("#")?Wt.content.replace(/#/,""):Wt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:qt}))]}}}),He.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Et,ht){var It=Et.getWordUntilPosition(ht),qt={startLineNumber:ht.lineNumber,endLineNumber:ht.lineNumber,startColumn:It.startColumn,endColumn:It.endColumn},$t=Et.getLineContent(ht.lineNumber).substring(It.startColumn-2,It.endColumn);return{suggestions:[...ce.keywords.map(Wt=>({label:Wt,kind:He.languages.CompletionItemKind.Function,documentation:Wt,insertText:Wt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:qt})),...ce.quickKey.map(Wt=>({label:Wt.label,kind:He.languages.CompletionItemKind.Function,documentation:Wt.content,insertText:$t.startsWith("#")?Wt.content.replace(/#/,""):Wt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:qt}))]}}}),He.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Et,ht){var It=Et.getWordUntilPosition(ht),qt={startLineNumber:ht.lineNumber,endLineNumber:ht.lineNumber,startColumn:It.startColumn,endColumn:It.endColumn},$t=Et.getLineContent(ht.lineNumber).substring(It.startColumn-2,It.endColumn);return{suggestions:[...me.keywords.map(Wt=>({label:Wt,kind:He.languages.CompletionItemKind.Function,documentation:Wt,insertText:Wt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:qt})),...me.quickKey.map(Wt=>({label:Wt.label,kind:He.languages.CompletionItemKind.Function,documentation:Wt.content,insertText:$t.startsWith("#")?Wt.content.replace(/#/,""):Wt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:qt}))]}}})};const Ae="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var je=Object.defineProperty,Be=(He,We,Xe)=>We in He?je(He,We,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):He[We]=Xe,_e=(He,We,Xe)=>Be(He,typeof We!="symbol"?We+"":We,Xe);const qe=class mx{constructor(We,Xe,ct){this.placeholder=We,this.editor=Xe,this.monaco=ct,Xe.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return mx.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};_e(qe,"ID","editor.widget.placeholderHint");var Ye=qe,et=Ke(96236),lt=Ke(8591),dt=Ke(6848),vt=Ke(89392),Je=Ke(86766),ot=Ke(56102),ft=Object.defineProperty,xt=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,Mt=(He,We,Xe)=>We in He?ft(He,We,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):He[We]=Xe,Ct=(He,We)=>{for(var Xe in We||(We={}))gt.call(We,Xe)&&Mt(He,Xe,We[Xe]);if(pt)for(var Xe of pt(We))mt.call(We,Xe)&&Mt(He,Xe,We[Xe]);return He},zt=(He,We)=>xt(He,yt(We)),St=(He,We)=>{var Xe={};for(var ct in He)gt.call(He,ct)&&We.indexOf(ct)<0&&(Xe[ct]=He[ct]);if(He!=null&&pt)for(var ct of pt(He))We.indexOf(ct)<0&&mt.call(He,ct)&&(Xe[ct]=He[ct]);return Xe},bt=(He,We,Xe)=>new Promise((ct,Et)=>{var ht=$t=>{try{qt(Xe.next($t))}catch(Wt){Et(Wt)}},It=$t=>{try{qt(Xe.throw($t))}catch(Wt){Et(Wt)}},qt=$t=>$t.done?ct($t.value):Promise.resolve($t.value).then(ht,It);qt((Xe=Xe.apply(He,We)).next())});function at(He){return/^\d+$/.test(He)?`${He}px`:He}function nt(){}let we=!1;const Te={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Ve(He=[]){let We=He;if(Array.isArray(He)){for(let Xe=0;Xe<He.length;Xe++){let ct=Te[He[Xe]];if(ct)return ct}return We[0]}return Te[We]||We}let Ze=null;var Ee=He=>{var We=He,{width:Xe="100%",height:ct="100%",value:Et,language:ht="javascript",style:It={},options:qt={},overrideServices:$t={},theme:Wt="vs-dark",onEditBlur:Ut,isCopy:ln=!1,onSave:kt,autoHeight:Xt=!1,forbidCopy:tn=!1,onChange:dn=nt,editorDidMount:Mn=nt,onFocus:Rn=nt,onBreakPoint:ir=nt,breakPointValue:qn=[],filename:Cr="educoder.txt",errorLine:er,errorContent:Fr="",highlightLine:jr,openBreakPoint:fi=!1,placeholder:Si=""}=We,tr=St(We,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const gr=(0,tt.useRef)(),Qn=(0,tt.useRef)({}),it=(0,tt.useRef)(),Ur=(0,tt.useRef)(),Rr=(0,tt.useRef)([]),di=(0,tt.useRef)(!1),Vr=(0,tt.useRef)(),Br=(0,tt.useRef)(),Xr=(0,tt.useRef)(!1),[hr,un]=(0,tt.useState)(!1);function on(){let nn;return gr.current&&(nn=new Pt.Z(On=>{for(let an of On)(an.target.offsetHeight>0||an.target.offsetWidth>0)&&Qn.current.instance.layout()}),nn.observe(gr.current)),nn}function Jt(){lt.ZP.warning({content:decodeURIComponent(Ae),key:"monaco-editor-tip"})}const jt=()=>{let nn=Qn.current.instance;if(Et!=null&&nn&&hr){const On=nn.getModel();On&&Et!==On.getValue()&&(we=!0,On.setValue(Et),nn.layout(),we=!1)}};(0,tt.useEffect)(()=>{const nn=Je.Z.subscribe("formatDocument",On=>{var an;let mn=Qn.current.instance;(an=mn==null?void 0:mn.getAction)==null||an.call(mn,"editor.action.formatDocument").run()});return window.updateMonacoValue=On=>{dn(On)},nn},[]),(0,tt.useEffect)(()=>{var nn;let On=Qn.current.instance;Ur.current&&clearTimeout(Ur.current),Ur.current=setTimeout(()=>{jt()},500),Et&&(Et!=null&&Et.length)&&((nn=On==null?void 0:On.updateOptions)==null||nn.call(On,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Et.split(/\r\n|\r|\n/g).length))+3,5)}))},[Et,hr,Qn.current]),(0,tt.useEffect)(()=>{if(er&&Qn.current&&Qn.current.instance){let On=Qn.current.instance;On.changeViewZones(function(an){var mn=document.createElement("div");mn.style.padding="10px 20px",mn.style.width="calc(100% - 20px)",mn.className="my-error-line-wrp",mn.innerHTML=Fr,an.addZone({afterLineNumber:er||11,heightInLines:3,domNode:mn})});var nn={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};On.addOverlayWidget(nn),On.revealPositionInCenter({lineNumber:20,column:1})}},[er,Qn.current,hr]);const Pn=(nn="",On)=>{if(!nn||nn.trim()==="")return!0;const mn=Qn.current.instance.getModel().getLineTokens(On);let Ln=!1;for(let xn=0;xn<2;xn++)mn.getStandardTokenType(xn)===1&&(Ln=!0);return Ln};(0,tt.useEffect)(()=>{var nn;const On=(nn=Qn.current)==null?void 0:nn.instance;if(On&&hr&&tn){const an=On.onDidBlurEditorWidget(()=>{Xr.current=!1}),mn=On.onDidFocusEditorText(()=>{Xr.current=!0});return()=>{an.dispose(),mn.dispose()}}},[Qn.current,hr,tn]),(0,tt.useEffect)(()=>{var nn;if((nn=Qn.current)!=null&&nn.instance&&hr&&fi){let On=Qn.current.instance,an=On.getModel();if(!an)return;(()=>{var Lr;let en=[],ur=[];const Mr=an.getAllDecorations();for(let Ar of Mr)Ar.options.className==="highlighted-line"&&(en.push((Lr=Ar==null?void 0:Ar.range)==null?void 0:Lr.startLineNumber),ur.push(Ar==null?void 0:Ar.id));if(jr===en[0])return;an.deltaDecorations(ur,[]);const pr=an.getLineCount();jr&&jr<=pr&&(On.deltaDecorations([],[{range:new Ze.Range(jr,1,jr,an.getLineMaxColumn(jr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),On.revealLineInCenter(jr))})();const Ln=(Lr=!1)=>{var en;let ur=[],Mr=[];const pr=an.getAllDecorations();for(let Ar of pr)Ar.options.linesDecorationsClassName==="breakpoints-select"&&(ur.push((en=Ar==null?void 0:Ar.range)==null?void 0:en.startLineNumber),Mr.push(Ar==null?void 0:Ar.id));if(Lr)return{lines:ur,ids:Mr};ir(ur)},xn=Lr=>bt(void 0,null,function*(){let en={range:new Ze.Range(Lr,1,Lr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield an.deltaDecorations([],[en]),Ln()}),In=Lr=>bt(void 0,null,function*(){let en=[];const ur=On.getLineDecorations(Lr);for(let Mr of ur)Mr.options.linesDecorationsClassName==="breakpoints-select"&&en.push(Mr.id);yield an.deltaDecorations(en,[]),Ln()}),gn=Lr=>{let en=On.getLineDecorations(Lr);for(let ur of en)if(ur.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,vt.isEqual)(qn,Ln(!0).lines)){an.deltaDecorations(Ln(!0).ids,[]);const Lr=qn.map(en=>({range:new Ze.Range(en,1,en,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));an.deltaDecorations([],Lr)}const Nn=On.onDidChangeModelContent(Lr=>{let en=On.getPosition();if(en){let ur=en.lineNumber;clearTimeout(Br.current),Br.current=setTimeout(()=>{Pn(an.getLineContent(ur),ur)?In(ur):gn(ur)?(In(ur),xn(ur)):Ln()},100)}}),kn=On.onMouseDown(Lr=>{var en,ur,Mr;if(Lr.target.detail&&((Mr=(ur=(en=Lr.target)==null?void 0:en.element)==null?void 0:ur.className)!=null&&Mr.includes("line-numbers"))){let pr=Lr.target.position.lineNumber;if(Pn(an.getLineContent(pr),pr))return;gn(pr)?In(pr):xn(pr)}}),En=Lr=>{let en={range:new Ze.Range(Lr,1,Lr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Rr.current=On.deltaDecorations(Rr.current,[en])},$n=()=>{Rr.current=On.deltaDecorations(Rr.current,[])},mr=On.onMouseMove(Lr=>{var en,ur,Mr;if($n(),Lr.target.detail&&((Mr=(ur=(en=Lr.target)==null?void 0:en.element)==null?void 0:ur.className)!=null&&Mr.includes("line-numbers"))){let pr=Lr.target.position.lineNumber;if(Pn(an.getLineContent(pr),pr))return;En(pr)}}),Hr=On.onMouseLeave(()=>{$n()});return()=>{Nn.dispose(),kn.dispose(),mr.dispose(),Hr.dispose()}}},[Qn.current,hr,qn,jr,fi,ht]),(0,tt.useEffect)(()=>{var nn;(nn=Qn.current)!=null&&nn.instance&&fi&&Qn.current.instance.setPosition({lineNumber:0,column:0})},[jr]);function Cn(){let nn=Qn.current.instance;if(nn){const On=nn.getSelection(),an=Qn.current.pastePos||{},mn=new Ze.Range(an.startLineNumber||On.endLineNumber,an.startColumn||On.endColumn,an.endLineNumber||On.endLineNumber,an.endColumn||On.endColumn);setTimeout(()=>{nn.executeEdits("",[{range:mn,text:""}])},300)}}function Kt(nn){(window.navigator.platform.match("Mac")?nn.metaKey:nn.ctrlKey)&&nn.keyCode==83&&(nn.preventDefault(),kt())}const Dt=()=>{if(Xt&&Qn.current.instance){const nn=Qn.current.instance.getContentHeight();Fn(nn<ct?ct:nn)}else Fn(ct)};function pn(nn){var On=document.createEvent("MouseEvents");On.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),nn.dispatchEvent(On)}const yn=nn=>{if(!Xr.current)return;const{keyCode:On,ctrlKey:an,metaKey:mn,target:Ln,type:xn}=nn;return(xn==="paste"||(On===67||On===86)&&(mn||an))&&Ln.nodeName==="TEXTAREA"&&(Jt(),nn.preventDefault()),!1};function Jn(nn,On){var an=window.URL||window.webkitURL||window,mn=new Blob([On]),Ln=document.createElementNS("http://www.w3.org/1999/xhtml","a");Ln.href=an.createObjectURL(mn),Ln.download=nn,pn(Ln)}(0,tt.useEffect)(()=>{Dt()},[Dt]),(0,tt.useEffect)(()=>{gr.current&&!hr&&Promise.all([Ke.e(8909),Ke.e(1810)]).then(Ke.bind(Ke,71448)).then(nn=>{try{Ze=nn,Qn.current.instance=Ze.editor.create(gr.current,{value:Et,language:Ve(ht),theme:Wt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},$t);const On=Qn.current.instance;let Ln=[...et.BH._menuItems].find(Nn=>Nn[0]._debugName=="EditorContext")[1],xn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],In=(Nn,kn)=>{var En,$n;let mr=Nn._first;do kn.includes(($n=(En=mr.element)==null?void 0:En.command)==null?void 0:$n.id)&&Nn._remove(mr);while(mr=mr.next)};if(Mn(On,Ze),setTimeout(()=>{Dt(),Qn.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Jn(Cr||"educoder.txt",On.getValue())}})},500),Qn.current.subscription=On.onDidChangeModelContent(Nn=>{di.current?clearTimeout(Vr.current):(Dt(),dn(On.getValue(),Nn)),Vr.current=setTimeout(()=>{di.current=!1},500)}),window.Monaco||Oe(Ze,Ve(ht)),tn&&(In(Ln,xn),gr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",yn),window.removeEventListener("paste",yn),window.addEventListener("keydown",yn),window.addEventListener("paste",yn)),window.Monaco=Ze,Ut&&On.onDidBlurEditorWidget(()=>{Ut(On.getValue())}),Rn&&On.onDidFocusEditorText(()=>{Rn(On.getValue())}),tn)try{On.onDidPaste(Nn=>{const kn=On.getSelection(),En=Qn.current.pastePos||{},$n=new Ze.Range(En.startLineNumber||kn.endLineNumber,En.startColumn||kn.endColumn,En.endLineNumber||kn.endLineNumber,En.endColumn||kn.endColumn);On.executeEdits("",[{range:Nn.range,text:""}])})}catch(Nn){}let gn=on();return Si&&typeof Si=="string"&&new Ye(Si,On,Ze),un(!0),()=>{const Nn=Qn.current.instance;Nn.dispose();const kn=Nn.getModel();kn&&kn.dispose(),Qn.current.subscription&&Qn.current.subscription.dispose(),gn.unobserve(gr.current)}}catch(On){}})},[]),(0,tt.useEffect)(()=>{if(Qn.current.instance&&hr)return document.addEventListener("keydown",Kt,!1),()=>{document.removeEventListener("keydown",Kt)}},[kt,hr]),(0,tt.useEffect)(()=>{let nn=Qn.current.instance;if(nn&&hr){let On=Ve(ht);Ze.editor.setModelLanguage(nn.getModel(),On)}},[ht,hr]),(0,tt.useEffect)(()=>{Qn.current.instance&&hr&&Ze.editor.setTheme(Wt)},[Wt,hr]),(0,tt.useEffect)(()=>{let nn=Qn.current.instance;it.current=qt,nn&&hr&&(nn.updateOptions(Ct({},qt)),setTimeout(()=>{nn.getModel().updateOptions(Ct({},qt))},200))},[JSON.stringify(qt),hr]),(0,tt.useEffect)(()=>{let nn=Qn.current.instance;nn&&hr&&nn.layout()},[Xe,ct,hr]);const[bn,Zt]=(0,tt.useState)(at(Xe)),[jn,Fn]=(0,tt.useState)(at(ct)),ar=zt(Ct({},It),{width:bn,height:jn,position:"relative"});return tt.createElement("div",{className:"my-monaco-editor",ref:gr,style:ar},ln&&tt.createElement(ot.CopyToClipboard,{text:Et,onCopy:()=>lt.ZP.success("\u590D\u5236\u6210\u529F")},tt.createElement(dt.Z,{title:"\u590D\u5236\u4EE3\u7801"},tt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},tt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ge({width:He="100%",height:We="100%",original:Xe,modified:ct,language:Et,options:ht={}}){const It=(0,tt.useRef)(),[qt,$t]=(0,tt.useState)(null);function Wt(Xt){let tn;return It.current&&(tn=new Pt.Z(dn=>{for(let Mn of dn)(Mn.target.offsetHeight>0||Mn.target.offsetWidth>0)&&Xt.layout()}),tn.observe(It.current)),tn}(0,tt.useEffect)(()=>(It.current&&Promise.all([Ke.e(8909),Ke.e(9404)]).then(Ke.bind(Ke,2550)).then(Xt=>{Ze=Xt;const tn=Ze.editor.createDiffEditor(It.current,zt(Ct({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ht),{wordWrap:!0}));$t(tn);let dn=Wt(tn);return()=>{tn.dispose();const Mn=tn.getModel();Mn&&Mn.dispose(),dn.unobserve(It.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,tt.useEffect)(()=>{qt&&qt.setModel({original:Ze.editor.createModel(Xe,Et),modified:Ze.editor.createModel(ct,Et)})},[Xe,ct,Et,qt]);const Ut=at(He),ln=at(We),kt={width:Ut,height:ln};return tt.createElement("div",{className:"my-diff-editor",ref:It,style:kt})}},94606:function(Gn,vn,Ke){"use strict";Ke.d(vn,{jL:function(){return Fe},w9:function(){return gt},QD:function(){return dn},cQ:function(){return ot},op:function(){return Wt},O5:function(){return Xr},_b:function(){return er},t7:function(){return re},Gi:function(){return bt},YG:function(){return zt},qp:function(){return ke},vr:function(){return ir},qE:function(){return kt},Je:function(){return pe},wb:function(){return et},cq:function(){return Ze},tp:function(){return fe}});var tt=Ke(59301),Pt={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"},oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBDeAZWFijo79JnpLQxXSo7iICiIyD8qUfdxuQRRx24x5MvB95uBzfW1G+XFn4GoMMojQNOYWUK45b+jG9mW+PvFNAKEkqVYgI583VZcOB7WRrCqGwiaQovU1lAlaXKM/BMQNIGbN0FLGh0lySCVv0OP3aPOnKf2a2XCm+3ghuc1AvzOdwmLSwIwkQlBoxMtgZYCkvwQLafBYo0l2v6gBcCxRxQyifwM9PckRCniXIGbjo8wiI4bgnRRFul0XAZMABbaggVoytvo12vff7Qt/Rc8LqBm5jQndrBr3MFHOwyemaJbGaaAKzMp00zV2O+6VVnSTCPcYCNdrItEGAOcKxpVUQKLjPZ6VHVgEuf3Kf/rLk0Y4ViTpiAEUYKJaEgVDg2OTq1+j3r5w68FHi7TXFDU/El1Yr8VLudDM4IjUpLVWW2Mg0GgubybATNfN/0C5+eqjQ9oO0ngAmR0ZF5X2bKjLRZBUFgNE03AKhcPqk62wJsm+qjvyM4Aa0idFN1zcmvHraq90uvObihqej4YsH6nzCEyHwRB0WFZeZJ05xupsZSp6sty+2mXX2a/5rP0fT8MAHRZpmWph48J38zi6xUF1Vqft9KAg2BES6PmyChGGFTBVJ1kb/dq7XeeuTBs0deLLxXrLhHn2nP6+4s3Gk7Yl6Q5mpZMMjAGWjT0o+dgkR6BVnUzJSW2PpzhpHVqIygdPiEET3rzwiHP2QCSlrjUm1epE0el+R1/E6SmjDa2nGEat5Bu9089bC9O7/1moDT0GJkMv5eR6f1oVY7MRfjp2SiNgOO5pkFBpnkadmD/qflRrAtiUrBhJFdPnauJhI6SU6noXSyb2BmUZUqzYKEqSSSZ6SUSU34WagYVUsg9N27R7DtkONWrmRcf8HHK1Lc4EjrqHJn6ZdxBIsXkXU2MqVZqU/ja5ZU/MyWR5/Bps1/wfD2p+G7TUy1QziWRHfZgVXsREd3H1YtnoW+vl709nSjv7f0V4MwPnRaRUGlxSm8rG7N0pAMlim/CE4Jk+tRbTxmAoYK4Qit/Mhb9/a9eze9ILW/YQwv5jvmM/fcs720YMnMDeWStabtJrmVUVaqtsy3sRqgAm+96yH85qbb4DZqWNjfi57uHlRKJViWjSCM0Wr5aDRaqDebqDeaqLkRLFugp7OIQudMrFn+JvT3z8Ee8+dgVldxp+tkpUB42ZZgqLrEnyUq89MkODkunjVVoREFMao5G367een6lZ2fejEQXrbiBgbbn+qZUbyETcWs2KZ/Ynsoi6aMgEPjLVz6Xz/B1OjT2P8tyzB7Zm/i6IMQYRghDGk2ielkLaKIPiiM4PshGk0XzWYDU40a6m6Ickmi3N2Lt+y1B5a+eQ+sXLIQM7rLxi1QiR47I2l3xPizFFyitsQnmqhq8juNks1go2BrDRG4WwMv3veItT1TLwTvZYH7w0NP9y7sn3NPqSgXMiCYRuNz1MbE9eEnRnDhpVdh1fxu7L1iCYIwghcECKMYUfaMY4Rh8jogxJgQNQjP+CECpUK4H8bwPR8tgmzW0Ao8lEsW+vrn4sA1S7Fs2VKsXDIP1UrO3BymMD7PEwvj6wJjnjTTJFAEsUJOJj4y8iMUWIfE8bp1Kzs2virgtg23PtHTV7os9JI0wASFNPWg4vI54LGBMZz/je/i71YvQv/sWXA9D2EYIooiAzCOYoRxDM/z4Xo+PC+Az2MR31NpkU4fpKGUQKRkoiSCjCSiSCAKVPLddgON9hQsK0TXjA7su3YVDjt0Hdbu82ZzbQYgVZb6OJOW0GQjZW54XtACInTkHXjt5kXr9+r4zG4Hd/bZZ8uTTz1rY7liHxiHiR9h+sFAQHNxJMulCGed/x2jtHlv6ofruogILaZpEl6MIAiML2u1XQRhaIDxeKZGqoEAObgoTkBGkUp7bvRRfC0QRpZRkYqk6SjHcYDQryNXVNj/oLX4yIc/iMULZyVVSFr0GxVmlQWDg0xSFG5j372rV1fXr1wpdhldX7Kpbn2mtbqrs7jRkqLIC6VDzgIBwZUKwGXfuwFjA49g331WoO26CSwDh/BieK6HyakaPM9LTZbv0WQJL0r2o9ioMkhN2gDka0JkDhYpExW1FtCQEMKGlg6gbWhTxjPFaKBvZgUfP/njOHz9WrRS5QXG9AkvzeXoHxXrVw0n9puxEm8+dGVlaFeqe8ngBifiT1Y65aUha7+0+M7Sj0IeeOixYXznO1fiHQfvY1REs4wiBoIAcRQZkBOTk/B9P1GSCRBBoraQn/dTmDxOiATGLV+nioxjA49wINjAY4YtIaQFwX1hQYtkn/AtW+Okfzsdf/+OA9H2Uj+XdoiZltBebaGh2a9DrONYvfdtK8q/2L3gaurXxaI4WqUJJH2ETTPltVsaX73wvzG7IjGrrwce4RhoieKCMMDY+LiBZ2AwGJjAQKg0Sx6jCrWBmQAlTJo3vx+ZvIvOXLBEEAJCMPFNQrkBBwnNfcuGMFAFlIqRyxdw+he/gv1WL0PDTftzSicd41jBYaURa/SUHLTrjc+vX9mxy47JS1LcpoGB4qKOuZvzebFMpyUPT0BoTD023P0wfvWL67DfPsvhut4O80z8Woip+hQma41UWVQRDMwEXIQ43Se4OApSYEAYeAijwADSmp1RghPGt3Kb5MMJxEx9VJ2QNu8mYNlQUYj+hUtx9nnnolIpw83KrrSSMOCURmfOQejWr37bis6P7DbFba/ptZal77SlyPFy6WC5ZedBKYWLLrkKs6oOCvl8AoR+zWwjeL6L4dFRuJ5CEGpTsEeBQBD4iFWMWEWIwjpU6Ca+kNswNll+zCgECSkcKM02CQtS/nK0oxPDFDzRIYFSfYRIcFRfzgDktRz7z5/E8Scci7ar0g4xc0aePen0VaSAiLxHutVTe6/cRfn1khQ3OBEdU6xYv4oZbzjJopJISrX96aFtuOaH12D5ogXw/QABVZQFhCDC5NQ4xienEIQCbijh+RKTvXPhVYrIPTGAXLOOOJ4AwhAxzTKomTTEdHy1l/guc5voWTmXSPWFSVAwf7FRH83YuD5jxgQooS3HqE9Bomf2fJx9wcXo7KjAp3swLSZApjPeJUvDioLBkttYvHZtf/v5VPeSwD09Fp9Z7pDnEhzvD1MEqo2d2ut+swEPbr4fM3p7jIqYbhjlBKHxdcMjQ0ZtXmjDbSsMLFqJx048AWDWv/kvWPjNy2DXB5hXAHEIpZqwZNVct1INSFkyoJRyE1g6hjaFnp2IDyrxezqFaMClHQdjsjljsrzuk8/4Cg46ZF9zPQYc05k0qpYswFH+uCW9VYcsm7F994CbiL5fKlkf4lyC1nSswnRlWcBfftVP0RgZRqGQR2jKKd/4JZrpxOQExicmEIQWvDCHhu9gyz99FN76VQCt0AZmnnUxSg/cAUuGEKoJaBdSZjVpBCk7EnDahxRlKHCfjbccNPMis29mWSGMH6TqNKQxWStJVayccQvrjv4ATj7lRLTcpL1k2kym0GUJJlASvuvo6JADV3RtfsngbtXa3gsoBA3k3Rakb8GtiuiaUtk+xveUqRjoU9gmKuYFLr/yGkwMjSBH5xrQ4dNPBaYiGBwehOu24QUCXuhgSnTjsTPOQDxvRjqjrNB31tdRfvwB5O0cEI9BaA9SVhCpGqA56+NAa/oIC5AER2XlmfdDhT60FLBoxlYAof0UnjLukAo1arPyxhev2vcAnHbWOSaJNmWe6elRCAm4TukrS0XvOGivrt+9aHDba8GaQt56r4A8XADztYIVKgimXH6M7iDUebackzJLIm8LlIsSP/jRz/HU1ieQcywDLnHwAWq1BsbGR5M6lYrzJEZmLsHw5z8LlOm0AWwfQ885X0Ol/oypHRFPwpZF2FYXwngEgoBEHpEaNwpTyJsqROsCgupMtFeshLt8Oap/ug8d998CKQgvgICfRFppm/QEBAdg1oIlOOMrF6BcLsAPlCnHIjPvClQcgW4nhFThPxy8ovPXLwjugaGh8uxyzwXlvPOxsoPC9PUaZpYoLZobHtAMtAEhoVDKSXSUHdy+YSN+d9MGFKm4NK0gwKHhUTSaNZPL+ZEFzwXGVrwNk6edlkDjHMLmrei78DzkLR8W18qoEUiRgxR5xKoJ2+ox4EJVh5B9UDqPel8vWgccAW/Naug5Myk84OkJzDn3FOTbIwacFASXJMSC/XOZhxISHTP6ceZ5F6GzuxNekEb5IKlIOvISvU7AhPiog5ZVbtgluE0DurigHPx4RnfunXQXbNJm8wEZQAYCphDs99c9YMqDKbALtjJNyNGRQVx++dWwtDA5GHMyz/ewfXAYntdE4AfwjFkINHsXY+JzXwPmdptGXunKH6D79uuRzxVhqwBKDSFnzTTRNIrHIQXz+RAxTVF1obFqPcY/ehLQVU2CLG+AApwNGzHjR99GTk0Bqg0pvCQ9sRxIY6o5aGmjWOnCmed/A70zZ8INmCpxbGwoAF0Fgd5cEBVkfNj+Szvu2CW4rUPumTN6C+faCijwxqTTeNmXssV+bM1w9oiqm2wToELgt1AtSHQULVxzzU/w5/u2mKUMcRCg3W7hmeFhBF4rKaPY6WDGJDrQnrcUrdX7wRkcQuXe22HHU7CFgDT+zE/AKR9au7CsPkSqAWWiaieG3nkCvPe9G+DSGQrqwUdRuHUjylvvQS4ahaObELoBAVqFSCsJzto4Jkg4OQdn/sd/ord/Plw/MtAIj5Y1oywxq+DXrThae8CKzq3PC+6ux4dndRZ67uut2nM68sn6jWxtx/QvZebKiWKCq7WAmtm2IZSPGR0FjI9uxxVXfB+tqTokYgNu++AQVOSZ1EErunSWRBXTyYASkLIAbdGnMBhI6Lhu5COlA61Ck39JUTHRVAtO73ej0TMbEyeeBj1vjlGauP8RVL7/A+SDQdiowVF1SN02UVaa2fAkl2NU5TNnC5z+5QswY/5iuG4EN1KmhtWxwNwuBws7w+G85S1ftaBr8nnB3f1Y8/hqtfzDzhzQU0qm0v4WOLam6ecIjl2GWhuYaFF5IcamJtFZtNDX4WDzvZvxv9dej9BzoaIIo+Oj0FEAzSxfhyYSa50W5iAU20RNafIuwmol/k0yGPAGJJ0OZSJqHkqWEcU22vPegua/nAR0dxvVWZv+iI6fXomcrsNRDWhNU9UmAWZoVVYOgsFBOCjlLXzqjC+ia+6eaHsRmp5GMScxu8NCf4eF7qKIRBQ8mnfkz4PQ/83SuX/d2BSbHmne3Fktv72vDHQUEsWxGnjuIwPH3hf93FQbGKnTXDUeGhiCFDFmVHPoKlu49dYN+O1vb4alYozXpqBjggvNBHDyYIHDhJVQ+IiSYolFuXHqBQhGT+VCWiUTGaOYQIuIhYWQ34tLcBeugH/ch4DuXmBkEJXvXoB8ewwWXGiT77GWSBoA9G9cKBcLB92dFZx02umI8r0m9Vszv4QVsx10FYUZu7GuNHeuN1XkB9FN7Xbwmb0XVh/KuIhNWwOvs2Tn+6rCZAecITezU9PWc5i0Ml0JZKbfwsTHDU0Bky6wYcs20w7qrThGeaW8xJ0bN+HW2+5Eo9k0lQT9jWkEMVHl2dnhoNp4VLBc4uI4JrKRAcgEO7HDXFLQE64oGNz0k0pUkvUhCxZDrz4A4tEHkXvwLtgihNSJa0gEQNfAXp0NZTnGVSxeuADHHHcCpJXD+9f0YcUc2zRgn6sXnr9O3yeBlqeGJyfDE1cvKlxvkuvfP6512QF6y8kCFwYHllHZsgSezAwh7ZhyPIRHH/fMJDDWAn72x8dQb7XRVbZNoKgWLBRyAvfe/wBuuf0u1CYnIWVaQ9K5pRMrdNw8v5khM2rjZ2iYVGJWfxJunJbwBGjm0kx6ohj/zQpryyS82lKQpopgI0AnLodmaop9C4rVAwTWH3wgluy9Fh/cbxbWLSqa6idbJfpcS3PNupNkQnuioVrDk976I1eV7xW3b2lvL5eKczoLQKWQrIqk6rIeWwYuWw1kymwFTLaAgQlgsK5xxa1bUGu66ChYqOSpXMss4Ms5EtsGnsatGzahMTaWhutsLWsaug2s7F5nix7S/CKZ/08L+7RlZMqpDJ4hk62JShWbLj805Ve2II9zlCbJQqW7C/sftA4HrZiPUw/vRweD7S7A0a/XXW1SsLYSeGpIbxiZeOpIccufG8dVOys/5r2o5JNVQaw9WUrxhDRbk46k62/5moobbySKu397gK/9ZgsKFlDNSZQJzhHI2xKOJVDISTRbbfzpwS0YePxxxL73rJzNwNJZ62yG2dzydNlOUqVnK4PTdpKRWLqfLe/JPpO9nuZnTFRNyFj5Apbtswr5rpn4wpELcPiyqhHKrhTHsTJ4TLnCWNdgA3Dr/lHiuo2j1XJf7x2VvNiHTbZyBs9OA8U02zcTMjKJrsNTwEgT+NE9ow9864Ytt/dVZVDNW6LsSBT5XUsgZ7P7L5BzbDPX+qeHH8HAlr+YZQeJjSWpwk4P2pdhk05mcHfHa3YyzXKa9GD6mez9hOiOhHjHwjzzOzZ65s3B/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Fe=({dataSource:hr=[],img:un,imgWidth:on=346,title:Jt,sunTitle:jt,bannerExtraContent:Pn})=>tt.createElement("div",{className:Pt.banner},tt.createElement("div",{className:Pt.content},tt.createElement("aside",null,tt.createElement("p",null,tt.createElement("b",null,Jt),tt.createElement("span",null,jt)),hr.length>0&&tt.createElement("div",{className:Pt.btns},hr.map((Cn,Kt)=>tt.createElement("div",{key:Kt,onClick:Cn.click},Cn.name,Cn.sign?tt.createElement("img",{src:oe,width:39}):null))),Pn),un&&tt.createElement("img",{style:{marginTop:33,marginRight:38},src:un,width:on}))),me={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"},ce=Ke(92310),be=Ke.n(ce),Le=Ke(89392),ke=({dataSource:hr=[],value:un,onChange:on,onTitleChange:Jt,className:jt,title:Pn,titleWidth:Cn=41,style:Kt={},fontColor:Dt="#6A7283",showCount:pn})=>{const[yn,Jn]=(0,tt.useState)(0),[bn,Zt]=(0,tt.useState)(!1),jn=(0,tt.useRef)(null),Fn=(0,tt.useRef)(null);return(0,tt.useEffect)(()=>{var ar;hr.length!==0&&(((ar=jn==null?void 0:jn.current)==null?void 0:ar.clientHeight)>97?Jn(1):Jn(0)),hr.length===0&&Jn(0),Zt(!1)},[hr]),tt.createElement("div",{className:be()(me.row,jt),style:Kt},tt.createElement("div",{onClick:(0,Le.throttle)(()=>Jt==null?void 0:Jt(),2e3),style:{width:Cn,marginTop:bn?12:4},className:`${me.title} ${Jt?"current":""}`},Pn),tt.createElement("div",{className:bn?`${me.tagsWrap} ${me.tagsBorderWrap}`:me.tagsWrap},tt.createElement("div",{className:me.bar,ref:Fn,style:yn>0?{height:yn===1?97:"auto",overflow:yn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},tt.createElement("div",{className:me.tag,ref:jn},hr==null?void 0:hr.map(ar=>tt.createElement("span",{onClick:()=>on(ar.id),key:ar.id,style:{color:Dt},className:un===ar.id?me.active:""},tt.createElement("span",{title:ar.name,className:me.name},ar.name),!!pn&&tt.createElement("span",{className:me.num},ar.count))))),!!yn&&tt.createElement(tt.Fragment,null,yn===1?tt.createElement("div",{onClick:()=>{var ar;Jn(2),((ar=jn==null?void 0:jn.current)==null?void 0:ar.clientHeight)>245?Zt(!0):Zt(!1)},className:me.action},"\u5C55\u5F00",tt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):tt.createElement("div",{onClick:()=>{Fn.current.scrollTop=0,Jn(1),Zt(!1)},className:me.action},"\u6536\u8D77",tt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ve={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"},fe=({dataSource:hr=[],value:un,onChange:on,className:Jt,style:jt={}})=>tt.createElement("div",{style:jt,className:be()(ve.tabs,Jt)},hr.map(Pn=>tt.createElement("span",{onClick:()=>on(Pn.id),className:un===Pn.id?ve.active:"",key:Pn.id},Pn.name))),z={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"},ee=Ke(92832),re=({dataSource:hr=[],value:un="",onChange:on,onInputChange:Jt=()=>{},className:jt,style:Pn={},placeholder:Cn,allowClear:Kt=!1})=>{var Dt;const[pn,yn]=(0,tt.useState)(""),[Jn,bn]=(0,tt.useState)("");(0,tt.useEffect)(()=>{var Fn;let ar=un;(Fn=JSON.stringify(un))!=null&&Fn.includes("{")&&(yn(un.id),ar=un.value||"");try{bn(decodeURIComponent(ar||""))}catch(nn){bn(decodeURIComponent(ar||""))}},[un]);const Zt=()=>{on(encodeURIComponent(Jn),pn||null)},jn=Fn=>{Fn!==pn&&(yn(Fn),on(encodeURIComponent(Jn),Fn))};return tt.createElement("div",{className:be()(z.input,jt),style:Pn},!!hr.length&&tt.createElement("div",{className:z.dropdown},tt.createElement("div",{className:z.text},(Dt=hr.find(Fn=>Fn.id===pn))==null?void 0:Dt.name,tt.createElement("i",{className:"iconfont icon-zhankai4"}),tt.createElement("b",{className:z.b1}),tt.createElement("b",{className:z.b2})),tt.createElement("div",{className:z.menu},hr.map((Fn,ar)=>tt.createElement("div",{key:ar,onClick:()=>jn(Fn.id)},Fn.name)))),tt.createElement(ee.default,{onPressEnter:Zt,value:Jn,onChange:Fn=>{bn(Fn.target.value),Jt(encodeURIComponent(Fn.target.value),pn||null)},bordered:!1,placeholder:Cn}),tt.createElement("i",{onClick:Zt,className:"iconfont icon-sousuo9 font14 pl10 current"}))},le={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"},pe=({value:hr,onChange:un,className:on,total:Jt,pageSize:jt,style:Pn={}})=>{const Cn=hr<2,Kt=hr>=Math.ceil(Jt/jt);return Jt<=jt?tt.createElement(tt.Fragment,null):tt.createElement("div",{className:be()(le.quickPager,on),style:Pn},tt.createElement("div",{onClick:()=>{Cn||un(hr-1,"prev")},className:Cn?le.disabled:""},"\u4E0A\u4E00\u9875"),tt.createElement("div",{onClick:()=>{Kt||un(hr+1,"next")},className:Kt?le.disabled:""},"\u4E0B\u4E00\u9875"))},Ce={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"},Pe=Ke(71418),Ie=Ke(6848),Oe=Ke(68610),Ae=Ke(10148),je=Ke(58130),Be=Ke(96908),_e=Ke(57177),qe=Ke(81378),ze=Ke(97267),et=({className:hr,dataSource:un=[],col:on=4,right:Jt,bottom:jt=23,precision:Pn=0,wrapWidth:Cn=1200,trackEventItems:Kt,loading:Dt})=>{const pn=Math.floor((Cn-(on-1)*Jt)/on);return tt.createElement(Pe.Z,{spinning:Dt},tt.createElement("div",{className:be()(Ce.list,hr)},!!un.length&&un.map((yn,Jn)=>{const{name:bn,id:Zt,identifier:jn,power:Fn,cover_image_id:ar,pic:nn}=yn;return tt.createElement("div",{className:Ce.wrap,key:Zt,style:{width:pn,marginRight:(1+Jn)%on===0?0:Jt+Pn,marginBottom:jt}},tt.createElement("a",{target:"_blank",href:`/shixuns/${jn}/challenges`,className:Ce.li,onClick:On=>{On.preventDefault(),Kt&&(0,je.L9)([Kt]),Fn&&(0,je.xg)(`/shixuns/${jn}/challenges`)}},tt.createElement("div",{className:Ce.img},tt.createElement("img",{className:Ce.cover,src:`${nn}`}),yn.is_jupyter&&tt.createElement("img",{className:Ce.sign,src:Be}),yn.is_jupyter_lab&&tt.createElement("img",{className:Ce.sign,src:_e}),yn.is_unity_3d&&tt.createElement("img",{className:Ce.sign,src:qe})),tt.createElement("div",{className:Ce.name},tt.createElement(Ie.Z,{title:bn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},tt.createElement("span",{className:Ce.e},bn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),tt.createElement("div",{className:Ce.tags},tt.createElement(Ie.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},tt.createElement("span",null,tt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),tt.createElement("span",null,yn.challenges_count))),!!yn.myshixuns_count&&tt.createElement(Ie.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},tt.createElement("span",null,tt.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),tt.createElement("span",null,yn.myshixuns_count))),tt.createElement(Ie.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},tt.createElement("span",null,tt.createElement("span",null,yn.level))),tt.createElement("div",{className:Ce.rate},tt.createElement(Oe.Z,{allowHalf:!0,disabled:!0,defaultValue:yn.score_info}),tt.createElement("span",null,"\xA0",yn.score_info?`${yn.score_info}\u5206`:"5\u5206")))),!Fn&&tt.createElement("div",{className:Ce.lockWrap},tt.createElement("img",{src:`${Ae.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),tt.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!un.length&&tt.createElement(ze.Z,null)))},lt={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"},dt=Ke(2119),vt=Ke(59301),ot=({className:hr,dataSource:un=[],col:on=4,right:Jt,bottom:jt=23,precision:Pn=0,wrapWidth:Cn=1200,trackEventItems:Kt,loading:Dt,onRemove:pn=()=>{},isCurrent:yn=!0,showAlias:Jn=!1})=>{const bn=Math.floor((Cn-(on-1)*Jt)/on),Zt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return vt.createElement(Pe.Z,{spinning:Dt},vt.createElement("div",{className:be()(lt.list,hr)},!!(un!=null&&un.length)&&(un==null?void 0:un.map((jn,Fn)=>{var ar;const{name:nn,id:On,identifier:an,featured:mn,school_name:Ln,image_url:xn,excellent:In,is_plan:gn}=jn;return vt.createElement("div",{key:On,className:lt.wrap,style:{width:bn,marginRight:(1+Fn)%on===0?0:Jt+Pn,marginBottom:jt}},vt.createElement("a",{className:lt.li,onClick:Nn=>{Nn.preventDefault(),Nn.stopPropagation(),Kt&&(0,je.L9)([Kt]),(0,je.xg)(`/paths/${an}`)}},vt.createElement("div",{className:lt.img},vt.createElement("img",{className:lt.cover,src:`${xn}`}),yn&&(0,dt.bg)()&&(jn==null?void 0:jn.studying)&&vt.createElement("div",{className:`${lt.movebq} user-path-items`,onClick:Nn=>{Nn.stopPropagation(),pn(jn)}},vt.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),vt.createElement("span",{className:"c-red"},"\u79FB\u9664")),(ar=jn==null?void 0:jn.subject_tags)==null?void 0:ar.map((Nn,kn)=>{var En,$n;if(kn===0){const Hr=(En=Zt.find(Lr=>Lr.name==Nn))==null?void 0:En.swimg;return vt.createElement("img",{className:lt.sign,src:Hr,style:{left:"-4px"}})}const mr=($n=Zt.find(Hr=>Hr.name==Nn))==null?void 0:$n.ptimg;return vt.createElement("img",{className:lt.sign,src:mr,style:{left:`${48+52*(kn-1)+2*kn}px`}})}),vt.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(jn==null?void 0:jn.excellent)&&vt.createElement("div",{className:lt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),vt.createElement("div",{className:lt.name},vt.createElement(Ie.Z,{title:Jn&&(jn!=null&&jn.excellent_alias_name)?vt.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${nn}`,vt.createElement("br",null),vt.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${jn==null?void 0:jn.excellent_alias_name}`)):nn},vt.createElement("span",{className:lt.e},Jn&&(jn==null?void 0:jn.excellent_alias_name)||nn))),vt.createElement(Ie.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Ln}`},vt.createElement("div",{className:lt.unit},vt.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Ln)),vt.createElement("div",{className:lt.tags},vt.createElement("div",null,vt.createElement(Ie.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},vt.createElement("span",null,vt.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),vt.createElement("span",null,jn.stages_count))),vt.createElement(Ie.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},vt.createElement("span",null,vt.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),vt.createElement("span",null,jn.members_count)))))))})),!un.length&&vt.createElement(ze.Z,null)))},ft={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"},xt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",yt=Ke(59301),gt=({className:hr,dataSource:un=[],col:on=4,right:Jt,bottom:jt=23,precision:Pn=0,wrapWidth:Cn=1200,trackEventItems:Kt,loading:Dt})=>{const pn=Math.floor((Cn-(on-1)*Jt)/on);return yt.createElement(Pe.Z,{spinning:Dt},yt.createElement("div",{className:be()(ft.list,hr)},!!un.length&&un.map((yn,Jn)=>{const{subject_identifier:bn,id:Zt,identifier:jn,power:Fn}=yn,ar=yn.is_public!=0&&yn.is_public;return yt.createElement("div",{className:ft.wrap,key:Zt,style:{width:pn,marginRight:(1+Jn)%on===0?0:Jt+Pn,marginBottom:jt}},yt.createElement("a",{className:ft.li,onClick:nn=>{nn.preventDefault(),Kt&&(0,je.L9)([Kt]),(0,je.xg)(yn.first_category_url)}},yt.createElement("div",{className:ft.top},yt.createElement(Ie.Z,{title:yn.name},yt.createElement("div",{className:ft.name},yn.name)),yt.createElement("img",{className:ft.img,src:Ae.Z.IMG_SERVER+"/images/"+yn.avatar_url}),yt.createElement("div",{className:ft.text,title:yn.creator},yn.creator),bn&&yt.createElement("div",{className:ft.btns},yt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),yt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),ar&&yt.createElement("div",{className:ft.sign},"\u516C\u5F00")),yt.createElement("div",{className:ft.bottom},yn.visits>0&&yt.createElement(Ie.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},yt.createElement("span",null,yt.createElement("i",{className:"iconfont icon-liulanyan"}),yt.createElement("span",null,yn.visits))),yn.course_members_count>0&&yt.createElement(Ie.Z,{title:"\u6210\u5458",placement:"bottom"},yt.createElement("span",null,yt.createElement("i",{className:"iconfont icon-chengyuan"}),yn.course_members_count)),yn.tasks_count>0&&yt.createElement(Ie.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},yt.createElement("span",null,yt.createElement("i",{className:"iconfont icon-zuoye"}),yn.tasks_count)),yn.is_end?yt.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):yt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!yn.is_accessible&&yt.createElement("div",{className:ft.lockWrap},yt.createElement("img",{src:`${Ae.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),yt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!un.length&&yt.createElement(ze.Z,null)))},mt={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"},Mt=Ke(42203),zt=({dataSource:hr=[],value:un,onChange:on,className:Jt,style:jt={},tabBarExtraContent:Pn})=>tt.createElement("div",{className:be()(mt.tabs,Jt),style:jt},tt.createElement("div",{className:mt.tabsWrap},hr.map((Cn,Kt)=>tt.createElement("aside",{className:mt.tab,onClick:()=>{on(Cn.id),Cn.link&&Mt.history.push(Cn.link)},key:Kt},tt.createElement("div",{className:un===Cn.id?mt.active:""},Cn.name),(Cn==null?void 0:Cn.resetCount)==null&&(Cn==null?void 0:Cn.total)!==void 0&&tt.createElement("span",null,"\uFF08",Cn==null?void 0:Cn.total,"\uFF09"),(Cn==null?void 0:Cn.resetCount)!==void 0&&(Cn==null?void 0:Cn.total)!==void 0&&tt.createElement(Ie.Z,{title:(Cn==null?void 0:Cn.tip)!=null?Cn==null?void 0:Cn.tip:""},tt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",tt.createElement("span",{style:{color:"#000"}},Cn==null?void 0:Cn.resetCount),"/",tt.createElement("span",null,Cn==null?void 0:Cn.total),"\uFF09"))))),tt.createElement("div",{className:mt.tabBar},Pn)),bt=({className:hr,style:un={},children:on})=>tt.createElement("div",{className:be()(hr),style:un},on),at={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},nt=Ke(38854),we=Ke(20834);const Te=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Ze=({sortValue:hr,dropValue:un,className:on,onSort:Jt,onDrop:jt,dataSource:Pn=Te})=>{var Cn;return tt.createElement("div",{className:be()(at.orderWrap,on)},tt.createElement(nt.Z,{dropdownRender:()=>tt.createElement(we.default,null,Pn.map((Kt,Dt)=>tt.createElement(we.default.Item,{key:Dt,onClick:()=>jt(Kt.id)},Kt.name)))},tt.createElement("span",{className:at.orderTextWrap},(Cn=Pn.find(Kt=>un===Kt.id))==null?void 0:Cn.name)),tt.createElement("span",{className:at.orderIconWrap},tt.createElement("span",{className:at.orderAsc},tt.createElement("i",{className:hr==="asc"?`iconfont icon-sanjiaoxing-up font12 ${at.cursorPointer} ${at.active}`:`iconfont icon-sanjiaoxing-up font12 ${at.cursorPointer}`,onClick:()=>Jt(hr==="asc"?"desc":"asc")})),tt.createElement("span",{className:at.orderDesc},tt.createElement("i",{className:hr==="desc"?`iconfont icon-sanjiaoxing-down font12 ${at.cursorPointer} ${at.active}`:`iconfont icon-sanjiaoxing-down font12 ${at.cursorPointer}`,onClick:()=>Jt(hr==="asc"?"desc":"asc")}))))},Ee={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"},Ge=Ke(3113),He=Object.defineProperty,We=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,Et=(hr,un,on)=>un in hr?He(hr,un,{enumerable:!0,configurable:!0,writable:!0,value:on}):hr[un]=on,ht=(hr,un)=>{for(var on in un||(un={}))Xe.call(un,on)&&Et(hr,on,un[on]);if(We)for(var on of We(un))ct.call(un,on)&&Et(hr,on,un[on]);return hr},It=(hr,un)=>{var on={};for(var Jt in hr)Xe.call(hr,Jt)&&un.indexOf(Jt)<0&&(on[Jt]=hr[Jt]);if(hr!=null&&We)for(var Jt of We(hr))un.indexOf(Jt)<0&&ct.call(hr,Jt)&&(on[Jt]=hr[Jt]);return on},qt=(hr,un,on)=>new Promise((Jt,jt)=>{var Pn=Dt=>{try{Kt(on.next(Dt))}catch(pn){jt(pn)}},Cn=Dt=>{try{Kt(on.throw(Dt))}catch(pn){jt(pn)}},Kt=Dt=>Dt.done?Jt(Dt.value):Promise.resolve(Dt.value).then(Pn,Cn);Kt((on=on.apply(hr,un)).next())}),Wt=hr=>{var un=hr,{className:on,style:Jt,children:jt,loading:Pn=!1,openLoading:Cn,onClick:Kt=()=>{},size:Dt="middle",shape:pn="round"}=un,yn=It(un,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Jn,bn]=(0,tt.useState)(!1);return tt.createElement(Ge.ZP,ht({onClick:(0,Le.throttle)(Zt=>qt(void 0,null,function*(){Cn&&bn(!0);try{yield Kt(Zt)}catch(jn){console.log("error",jn)}Cn&&bn(!1)}),2e3,{leading:!0,trailing:!1}),className:be()(Ee.btn,Ee[`${Dt}-${pn}`],on),style:Jt,size:Dt,shape:pn,loading:Jn||Pn},yn),jt)},Ut={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"},kt=({className:hr,style:un,children:on=null,onClick:Jt,title:jt})=>tt.createElement("div",{className:be()(Ut.head,hr),style:un},tt.createElement("span",{className:"primary-hover",onClick:Jt},tt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),tt.createElement("b",{title:jt},jt),tt.createElement("div",{className:Ut.node},on)),Xt={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"},dn=({confirmShow:hr=!0,confirmTitle:un,confirmClick:on,cancelShow:Jt=!0,cancelTitle:jt,cancelClick:Pn,className:Cn,style:Kt,confirmLoading:Dt=!1})=>tt.createElement("div",{className:be()(Xt.btns,Cn),style:Kt},hr&&tt.createElement(Ge.ZP,{loading:Dt,onClick:on,type:"primary",className:Xt.confirm},un),Jt&&tt.createElement(Ge.ZP,{onClick:Pn,className:Xt.cancel},jt)),Mn={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"},ir=({className:hr,style:un={},LeftContent:on,children:Jt,RightContent:jt})=>tt.createElement("div",{className:be()(Mn.fixedBottom,hr),style:un},tt.createElement("div",{className:Mn.wrap},tt.createElement("div",{className:Mn.left},on),tt.createElement("div",{className:Mn.center},Jt),tt.createElement("div",{className:Mn.right},jt))),qn={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"},er=({className:hr,style:un={},dataSource:on=[]})=>tt.createElement("div",{className:be()(qn.crumbs,hr),style:un},on.map((Jt,jt)=>jt<on.length-1?tt.createElement(tt.Fragment,{key:jt},Jt.path||Jt.onClick?tt.createElement("span",{className:qn.hover,onClick:Jt!=null&&Jt.onClick?Jt.onClick:()=>Mt.history.push(Jt.path)},Jt.name):tt.createElement("span",null,Jt.name),tt.createElement("span",null,"\xA0",">","\xA0")):tt.createElement("span",{key:jt,style:{color:"#5F6368"}},Jt.name))),Fr=Ke(31797),jr=Object.defineProperty,fi=Object.defineProperties,Si=Object.getOwnPropertyDescriptors,tr=Object.getOwnPropertySymbols,gr=Object.prototype.hasOwnProperty,Qn=Object.prototype.propertyIsEnumerable,it=(hr,un,on)=>un in hr?jr(hr,un,{enumerable:!0,configurable:!0,writable:!0,value:on}):hr[un]=on,Ur=(hr,un)=>{for(var on in un||(un={}))gr.call(un,on)&&it(hr,on,un[on]);if(tr)for(var on of tr(un))Qn.call(un,on)&&it(hr,on,un[on]);return hr},Rr=(hr,un)=>fi(hr,Si(un)),di=(hr,un)=>{var on={};for(var Jt in hr)gr.call(hr,Jt)&&un.indexOf(Jt)<0&&(on[Jt]=hr[Jt]);if(hr!=null&&tr)for(var Jt of tr(hr))un.indexOf(Jt)<0&&Qn.call(hr,Jt)&&(on[Jt]=hr[Jt]);return on};const{Countdown:Vr}=Fr.default;var Xr=hr=>{var un=hr,{onChange:on}=un,Jt=di(un,["onChange"]);const[jt,Pn]=(0,tt.useState)(null);(0,tt.useEffect)(()=>{typeof jt=="number"&&jt>=0&&on(jt)},[jt]);const Cn=Kt=>{const Dt=Math.floor(Kt/1e3);Pn(Dt)};return tt.createElement(Vr,Rr(Ur({},Jt),{onChange:Cn}))}},91300:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return Pt}});var tt=Ke(59301);function Pt(oe,Ue){const Fe=(0,tt.useRef)();(0,tt.useEffect)(()=>{Fe.current=oe}),(0,tt.useEffect)(()=>{function me(){Fe.current()}if(Ue!==null){let ce=setInterval(me,Ue);return()=>clearInterval(ce)}},[Ue])}},1498:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return ze}});var tt=Ke(59301),Pt=Ke(92832),oe=Ke(78241),Ue=Ke(8591),Fe=Ke(43418),me=Ke(71418),ce=Ke(41889),be=Ke(6848),Le=Ke(93948),Se=Ke(5112),ke={flex_box_center:"flex_box_center___SntrE",flex_space_between:"flex_space_between___g4tse",flex_box_vertical_center:"flex_box_vertical_center___ooGcI",flex_box_center_end:"flex_box_center_end___UM2Cs",flex_box_column:"flex_box_column___vRGBc",prompt:"prompt___a_aRk",box:"box___X84XK",row:"row___wofpN",icon:"icon___ixIOQ"},ve=Ke(70635),xe=Ke(58130),fe=Ke(9168),z=Ke(1012),ee=Ke(47257),ae=Ke.n(ee),re=Ke(60419),le=Ke(94606),ue=Ke(2119),pe=Ke(59301),Ce=Object.defineProperty,Pe=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,Ae=(Ye,et,lt)=>et in Ye?Ce(Ye,et,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Ye[et]=lt,je=(Ye,et)=>{for(var lt in et||(et={}))Ie.call(et,lt)&&Ae(Ye,lt,et[lt]);if(Pe)for(var lt of Pe(et))Oe.call(et,lt)&&Ae(Ye,lt,et[lt]);return Ye},Be=(Ye,et,lt)=>new Promise((dt,vt)=>{var Je=xt=>{try{ft(lt.next(xt))}catch(yt){vt(yt)}},ot=xt=>{try{ft(lt.throw(xt))}catch(yt){vt(yt)}},ft=xt=>xt.done?dt(xt.value):Promise.resolve(xt.value).then(Je,ot);ft((lt=lt.apply(Ye,et)).next())});const _e=Pt.default.TextArea;var ze=({dataSetInfo:Ye,attachmentInfo:et,visible:lt,onClose:dt=()=>{},onSuccess:vt=()=>{}})=>{const[Je,ot]=(0,tt.useState)([]),[ft,xt]=(0,tt.useState)(!1),[yt,pt]=(0,tt.useState)(!1),[gt]=oe.default.useForm(),[mt,Mt]=(0,tt.useState)([]),[Ct,zt]=(0,tt.useState)({}),St=(0,tt.useRef)([]);(0,tt.useEffect)(()=>{if(lt){if(Ye){const{title:He,is_public:We,desc:Xe,attachments:ct,data_set_tags:Et}=Ye||{},ht=ct.map(qt=>({id:String(Math.random()).slice(-6),name:qt.title,response:{attachment_id:qt.id},size:qt.size,description:qt.description||"",percent:100,status:"done"}));ot(ht),Mt(Et);const It={title:He,is_public:We,desc:Xe};gt.setFieldsValue(It)}if(et){const He=et.map(We=>({id:String(Math.random()).slice(-6),name:We.title,response:{attachment_id:We.id},size:We.size,description:We.description||"",percent:100,status:"done"}));ot(He)}bt()}},[lt]),(0,tt.useEffect)(()=>{St.current=Je},[Je]),(0,tt.useEffect)(()=>{Je!=null&&Je.length?gt.setFields([{name:"attachments",errors:[]}]):gt.setFields([{name:"attachments",errors:["\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"]}])},[Je.length]),(0,tt.useEffect)(()=>{mt!=null&&mt.length?gt.setFields([{name:"tag_ids",errors:[]}]):gt.setFields([{name:"tag_ids",errors:["\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"]}])},[mt.length]);const bt=()=>Be(void 0,null,function*(){pt(!0);const He=yield(0,ve.ZP)("/api/data_sets/extra_info.jsoin",{method:"get"});He.status===0&&(zt(He==null?void 0:He.data),pt(!1))}),at={multiple:!0,withCredentials:!0,showUploadList:!1,beforeUpload:He=>Be(void 0,null,function*(){var We,Xe,ct,Et;if(((Et=(ct=(Xe=(We=He.name)==null?void 0:We.split("."))==null?void 0:Xe.slice(0,-1))==null?void 0:ct.join("."))==null?void 0:Et.length)>60)return Ue.ZP.warning(`\u300A${He.name}\u300B\u6587\u4EF6\u540D\u79F0\u8FC7\u957F\uFF0C\u65E0\u6CD5\u4E0A\u4F20`),Promise.reject();if([...Ct.data_set_filenames,...St.current.map(Ut=>Ut.name)].includes(He.name))return Ue.ZP.warning(`\u300A${He.name}\u300B\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`),Promise.reject();const It=He.size/1024/1024/1024;let qt=Ct==null?void 0:Ct.data_sets_filesize;if(St.current.forEach(Ut=>{qt+=Ut==null?void 0:Ut.size}),qt=qt/1024/1024/1024,(0,ue.Ny)()){if(It>50)return Ue.ZP.warning(`\u300A${He.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(50GB)`),Promise.reject()}else if(It>2)return Ue.ZP.warning(`\u300A${He.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(2GB)`),Promise.reject();if(qt+It>10&&!(Ct!=null&&Ct.current_user_no_limit))return Ue.ZP.warning(`\u300A${He.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u50A8\u5B58\u7A7A\u95F4\u5927\u5C0F\u9650\u5236(10GB)`),Promise.reject();const Wt={id:String(Math.random()).slice(-6),name:He.name,size:He.size,file:He,description:"",percent:0,status:"uploading"};return Te(Wt,{login:Ct==null?void 0:Ct.login,container_type:"DataSet",container_id:null,description:"",realFileName:!1}),ot(Ut=>[...Ut,Wt]),Promise.reject()})},nt=He=>Be(void 0,null,function*(){var We,Xe,ct;const Et=St.current.find(ht=>ht.name===He.name);(We=Et==null?void 0:Et.response)!=null&&We.attachment_id&&(yield(0,ve.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:{attachment_id:(Xe=Et==null?void 0:Et.response)==null?void 0:Xe.attachment_id}})),Et!=null&&Et.client&&((ct=Et==null?void 0:Et.client)==null||ct.cancel()),ot(ht=>ht.filter(It=>It.name!==He.name))}),we=()=>{var He;(He=St.current)==null||He.forEach(We=>{var Xe;We!=null&&We.client&&((Xe=We==null?void 0:We.client)==null||Xe.cancel())})};console.log(Je,"fileList1");const Te=(He,We)=>Be(void 0,null,function*(){var Xe,ct,Et,ht,It,qt,$t,Wt,Ut;We.file_name=He.name;const ln=He.name,kt=yield(0,ve.ZP)("/api/buckets/get_data_set_token.json",{method:"get"});if((kt==null?void 0:kt.status)!==0){ot(Mn=>(Mn[Mn.findIndex(Rn=>Rn.name===ln)].status="error",[...Mn])),Ue.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}kt.data=JSON.parse((0,fe.pe)(kt.data));const Xt=new(ae())({endpoint:(Xe=kt==null?void 0:kt.data)==null?void 0:Xe.end_point,region:(ct=kt==null?void 0:kt.data)==null?void 0:ct.region,accessKeyId:(Et=kt==null?void 0:kt.data)==null?void 0:Et.access_key_id,accessKeySecret:(ht=kt==null?void 0:kt.data)==null?void 0:ht.access_key_secret,bucket:(It=kt==null?void 0:kt.data)==null?void 0:It.bucket,stsToken:(qt=kt==null?void 0:kt.data)==null?void 0:qt.security_token}),tn=He.name.split(".");tn.pop();const dn=We.realFileName?tn.join("."):(0,z.Z)();Xt.multipartUpload(`datasets/${We==null?void 0:We.login}/${dn}${ln.indexOf(".")>-1?"."+ln.split(".").pop():""}`,new Blob([He.file],{type:He.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Mn,Rn,ir)=>{console.log("\u8FDB\u5EA6",Mn,Rn,ir),ot(qn=>{const Cr=qn.findIndex(er=>er.name===ln);return qn[Cr].client=Xt,qn[Cr].percent=Mn*100,qn[Cr].checkpoint=Rn,[...qn]})},checkpoint:(Wt=St.current[($t=St.current)==null?void 0:$t.findIndex(Mn=>Mn.name===ln)])==null?void 0:Wt.checkpoint,callback:{customValue:{id:ln+""},url:(Ut=kt==null?void 0:kt.data)==null?void 0:Ut.callback_url,host:kt==null?void 0:kt.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ve.rz)(We)}}).then(function(Mn){ot(Rn=>{var ir,qn,Cr;const er=Rn.findIndex(jr=>jr.name===ln);let Fr="done";return((ir=Mn.data)==null?void 0:ir.status)===0?Rn[er].response=(qn=Mn.data)==null?void 0:qn.data:(Ue.ZP.warning((Cr=Mn.data)==null?void 0:Cr.message),Fr="error"),Rn[er].status=Fr,[...Rn]})}).catch(function(Mn){console.log("\u63A5\u53E3\u9519\u8BEF\uFF1A",Mn),(Mn==null?void 0:Mn.name)!=="cancel"&&ot(Rn=>{const ir=Rn.findIndex(qn=>qn.name===ln);return Rn[ir].status="error",[...Rn]})})}),Ve=He=>(He=He||"",He=String(He),He=He.replace(/\s+/g,""),He),Ze=()=>Be(void 0,null,function*(){var He;const We=gt.getFieldsValue(),{title:Xe,is_public:ct,desc:Et}=We,ht=[];if(Ve(Xe)||ht.push({name:"title",errors:["\u6570\u636E\u96C6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"]}),Je!=null&&Je.length||ht.push({name:"attachments",errors:["\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"]}),mt!=null&&mt.length||ht.push({name:"tag_ids",errors:["\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"]}),ht.length){gt.setFields(ht);return}const It=Je.map(Wt=>{var Ut;return{attachment_id:(Ut=Wt.response)==null?void 0:Ut.attachment_id,description:Wt.description}});xt(!0);const qt={title:We.title,attachments:It,tag_ids:mt.map(Wt=>Wt.id),is_public:ct,desc:Et};let $t;Ye?$t=yield(0,ve.ZP)(`/api/data_sets/${Ye==null?void 0:Ye.id}.json`,{method:"put",body:qt}):$t=yield(0,ve.ZP)("/api/data_sets.json",{method:"post",body:qt}),$t.status===0&&(Ue.ZP.success("\u64CD\u4F5C\u6210\u529F"),vt((He=$t==null?void 0:$t.data)==null?void 0:He.data_set_id)),xt(!1)}),Ee=He=>{Mt(He)},Ge=Je.some(He=>He.status==="uploading");return console.log("fileList",Je),pe.createElement(Fe.default,{destroyOnClose:!0,confirmLoading:ft,bodyStyle:{paddingLeft:16,paddingTop:20},okButtonProps:{disabled:Ge},title:Ye?"\u7F16\u8F91\u6570\u636E\u96C6":"\u521B\u5EFA\u6570\u636E\u96C6",width:660,onCancel:()=>{if(Ge){Fe.default.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20\uFF0C\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{dt()}});return}dt()},okText:"\u786E\u5B9A",onOk:Ze,open:lt,afterClose:()=>{ot([]),Mt([]),xt(!1),pt(!1),we(),gt.resetFields()}},pe.createElement(me.Z,{spinning:yt},!(Ct!=null&&Ct.current_user_no_limit)&&!yt&&pe.createElement("div",{className:ke.prompt},pe.createElement("i",{className:"icon icon-tishi11 font12 mr10"}),"\u6E29\u99A8\u63D0\u793A:\u5E73\u53F0\u4E3A\u7528\u6237\u63D0\u4F9B\u4E86",pe.createElement("span",{style:{color:"#3061D0",margin:"0 5px"}},"10GB"),"\u7684\u6570\u636E\u96C6\u5B58\u50A8\u7A7A\u95F4\uFF0C\u60A8\u76EE\u524D\u5DF2\u4F7F\u7528\u4E86",pe.createElement("span",{style:{color:"#FF9D18",margin:"0 5px"}},((Ct==null?void 0:Ct.data_sets_filesize)/(1024*1024*1024)).toFixed(2),"GB")),pe.createElement(oe.default,{form:gt,colon:!1,labelCol:{span:4},wrapperCol:{span:20},size:"large"},pe.createElement(oe.default.Item,{label:"\u6570\u636E\u96C6\u540D\u79F0",name:"title",rules:[{required:!0,message:"\u6570\u636E\u96C6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},pe.createElement(Pt.default,{placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u96C6\u540D\u79F0",showCount:!0,maxLength:60})),pe.createElement(oe.default.Item,{style:{marginBottom:0},name:"attachments",label:"\u4E0A\u4F20\u6570\u636E\u96C6",rules:[{required:!0,message:"\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"}]},pe.createElement("div",{style:{position:"relative"}},pe.createElement(ce.default,je({},at),pe.createElement(le.op,{style:{borderRadius:2}},pe.createElement("i",{className:"icon-shangchuan3 mr5 font14"}),"\u4E0A\u4F20\u6587\u4EF6")),pe.createElement("div",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px",position:"absolute",left:"115px",top:"-2px"}},pe.createElement("div",null,"1.\u5355\u4E2A\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7",(0,ue.Ny)()?50:2,"G"),pe.createElement("div",null,"2.",Ct!=null&&Ct.current_user_no_limit?"":"\u4E2A\u4EBA\u4E0A\u4F20\u603B\u4F53\u79EF\u4E0D\u8D85\u8FC710GB\uFF0C","\u6587\u4EF6\u540D\u4E0D\u8D85\u8FC760\u5B57")))),pe.createElement("div",{className:ke.box},Je.map(He=>pe.createElement("div",{key:He.id,className:ke.row},pe.createElement("div",{className:ke.icon},He.status==="done"&&pe.createElement("i",{className:"iconfont icon-wancheng",style:{color:"#19CB70"}}),He.status==="error"&&pe.createElement("i",{className:"iconfont icon-cuowu",style:{color:"#E30000",marginLeft:1,fontSize:13}})),pe.createElement("div",{style:{width:176}},pe.createElement(be.Z,{title:He==null?void 0:He.name},pe.createElement("div",{style:{color:He.status==="error"?"#E30000":"#3061D0",textDecoration:"underline"}},(0,xe.tP)(He==null?void 0:He.name,9))),He.status==="uploading"&&pe.createElement(Le.Z,{strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:He.percent,showInfo:!1,size:[168,4]})),pe.createElement("i",{onClick:()=>nt(He),className:"iconfont icon-shanchu14 font14 ml20 mr20",style:{cursor:"pointer",color:"#F65160"}}),pe.createElement(Pt.default,{value:He.description,onChange:We=>{ot(Xe=>{const ct=Xe.findIndex(Et=>Et.name===He.name);return Xe[ct].description=We.target.value,[...Xe]})},placeholder:"\u5907\u6CE8\u8BF4\u660E",showCount:!0,maxLength:255,style:{width:"286px"}})))),pe.createElement(oe.default.Item,{label:"\u6807\u7B7E",name:"tag_ids",rules:[{required:!0,message:"\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"}]},pe.createElement(re.Z,{isTagsValue:!0,width:"514",selectWidth:"514",placeholder:"\u6DFB\u52A0\u6807\u7B7E",getDataSet:Ee,tags:mt})),pe.createElement(oe.default.Item,{initialValue:0,label:"\u662F\u5426\u516C\u5F00",name:"is_public",rules:[{required:!0}]},pe.createElement(Se.ZP.Group,null,pe.createElement(Se.ZP,{value:1},"\u662F"),pe.createElement(Se.ZP,{value:0},"\u5426"))),pe.createElement("div",{style:{position:"relative",left:"100px",top:"-20px",width:"400px",color:"#9096A3",fontSize:"12px"}},"\u516C\u5F00\u9700\u8981\u7BA1\u7406\u5458\u5BA1\u6838\u901A\u8FC7\u540E\u53EF\u88AB\u5176\u4ED6\u7528\u6237\u8BBF\u95EE"),pe.createElement(oe.default.Item,{label:"\u7B80\u4ECB\u6458\u8981",name:"desc",style:{marginBottom:0}},pe.createElement(_e,{placeholder:"\u6B64\u6570\u636E\u96C6\u4E3B\u8981\u5305\u542B\u4EC0\u4E48\u5185\u5BB9\uFF0C\u53EF\u4EE5\u7528\u6765\u505A\u4EC0\u4E48\uFF1F"})))))}},59230:function(Gn,vn,Ke){"use strict";Ke.r(vn),Ke.d(vn,{default:function(){return Si}});var tt=Ke(59301),Pt=Ke(42203),oe=Ke(71418),Ue=Ke(66104),Fe=Ke(6848),me=Ke(43418),ce=Ke(24905),be=Ke(8591),Le=Ke(38854),Se=Ke(5112),ke={flex_box_center:"flex_box_center___eNs_C",flex_space_between:"flex_space_between___oJc0d",flex_box_vertical_center:"flex_box_vertical_center___MoDEY",flex_box_center_end:"flex_box_center_end___BtlAV",flex_box_column:"flex_box_column___nUGZ8",bg:"bg___kj21E",wrap:"wrap___TtbC8",leftContent:"leftContent___FGaJd",header:"header___kobCa",headerBack:"headerBack___TI5PF",title:"title___B5Aew",time:"time___Ab938",introduction:"introduction___JKUBJ",from:"from___WId6_",bottom:"bottom___Expju",user_img:"user_img___igguI",user_name:"user_name___xNcx6",tags_name:"tags_name___xhTee",buttonList:"buttonList___ayDi1",buttonItem:"buttonItem___p_BX_",rightContent:"rightContent___XTwKA",share:"share___o0Kxt",publicStyle:"publicStyle___I8HuS",more:"more___ZQSDV",collectStyle:"collectStyle___FwPiJ",collectActiveStyle:"collectActiveStyle___vbqkD",content:"content___dl660",addTypeRadio:"addTypeRadio___iEl2Y",addBtn:"addBtn___SYc61",shixunTooltip:"shixunTooltip___krR3m",pageStyle:"pageStyle___UXmCF",pageCan:"pageCan___yNiQI",pageUnCan:"pageUnCan___M1D84",dropList:"dropList___KP6TZ",dropName:"dropName___hgrPU"},ve=Ke(10148),xe={flex_box_center:"flex_box_center___Kaphe",flex_space_between:"flex_space_between___dzJWD",flex_box_vertical_center:"flex_box_vertical_center___iwu7i",flex_box_center_end:"flex_box_center_end___izksF",flex_box_column:"flex_box_column___ntJPh",content:"content___gDHym",addTypeRadio:"addTypeRadio___oUKH0",introduceNoData:"introduceNoData___iILly",introduceAdd:"introduceAdd___v9keU",introduceText:"introduceText___iTf1W",introduceButton:"introduceButton___bwZMR",close:"close___csBZw",submit:"submit___SQ6af",introduceContent:"introduceContent___Yad8G",introduceTitle:"introduceTitle___DfmXh",introContentWrap:"introContentWrap___bmjAL",action:"action___DPbIq",fileTable:"fileTable___xqsXc",addBtn:"addBtn___em6e3",wrap:"wrap___Q3aN8",colorBlue:"colorBlue____HNqk",repeatedName:"repeatedName___RIjaL",row:"row___ngnyh",icon:"icon___fQvup"},fe=Ke(23469),z=Ke(25711),ee=Ke(78241),ae=Ke(36546),re=Ke(92832),le=Ke(41889),ue=Ke(93948),pe=Ke(41807),Ce=Ke(61186),Pe=Ke.n(Ce),Ie=Ke(58130),Oe=Ke(1643),Ae=Ke(70635),je=Ke(47257),Be=Ke.n(je),_e=Ke(9168),qe=Ke(1012),ze=Ke(59301),Ye=Object.defineProperty,et=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,ot=(tr,gr,Qn)=>gr in tr?Ye(tr,gr,{enumerable:!0,configurable:!0,writable:!0,value:Qn}):tr[gr]=Qn,ft=(tr,gr)=>{for(var Qn in gr||(gr={}))vt.call(gr,Qn)&&ot(tr,Qn,gr[Qn]);if(dt)for(var Qn of dt(gr))Je.call(gr,Qn)&&ot(tr,Qn,gr[Qn]);return tr},xt=(tr,gr)=>et(tr,lt(gr)),yt=(tr,gr,Qn)=>new Promise((it,Ur)=>{var Rr=Br=>{try{Vr(Qn.next(Br))}catch(Xr){Ur(Xr)}},di=Br=>{try{Vr(Qn.throw(Br))}catch(Xr){Ur(Xr)}},Vr=Br=>Br.done?it(Br.value):Promise.resolve(Br.value).then(Rr,di);Vr((Qn=Qn.apply(tr,gr)).next())});const pt=({polls:tr,globalSetting:gr,loading:Qn,dispatch:it,user:Ur,dataSetInfo:Rr,indexType:di,getInfo:Vr})=>{const Br=(0,Pt.useParams)(),[Xr,hr]=(0,tt.useState)(!1),[un,on]=(0,tt.useState)(0),Jt=(0,tt.useRef)(null),jt=(0,tt.useRef)(null),[Pn,Cn]=(0,tt.useState)(""),[Kt,Dt]=(0,tt.useState)(""),[pn]=ee.default.useForm(),[yn,Jn]=(0,tt.useState)([]),bn=(0,tt.useRef)([]),[Zt,jn]=(0,tt.useState)(!1),[Fn,ar]=(0,tt.useState)(!1),[nn,On]=(0,tt.useState)(""),an=yn.some(gn=>gn.status==="uploading");(0,tt.useEffect)(()=>{var gn;((gn=Jt==null?void 0:Jt.current)==null?void 0:gn.clientHeight)>80?on(1):on(0)},[Pn]),(0,tt.useEffect)(()=>{bn.current=yn},[yn]),(0,tt.useEffect)(()=>{Cn(Rr==null?void 0:Rr.introduce),Dt(Rr==null?void 0:Rr.introduce)},[Rr==null?void 0:Rr.introduce]);const mn={multiple:!1,withCredentials:!0,showUploadList:!1,fileList:yn==null?void 0:yn.map(gn=>gn.file),beforeUpload:gn=>yt(void 0,null,function*(){var Nn,kn,En,$n,mr;if((($n=(En=(kn=(Nn=gn.name)==null?void 0:Nn.split("."))==null?void 0:kn.slice(0,-1))==null?void 0:En.join("."))==null?void 0:$n.length)>60)return be.ZP.warning(`\u300A${gn.name}\u300B\u6587\u4EF6\u540D\u79F0\u8FC7\u957F\uFF0C\u65E0\u6CD5\u4E0A\u4F20`),Promise.reject();if([...bn.current.map(ur=>ur.name)].includes(gn.name))return be.ZP.warning(`\u300A${gn.name}\u300B\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`),Promise.reject();if(gn.size/1024/1024/1024>2)return be.ZP.warning(`\u300A${gn.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(2GB)`),Promise.reject();const en={id:String(Math.random()).slice(-6),name:gn.name,size:gn.size,file:gn,description:"",percent:0,status:"uploading"};return In(en,{login:(mr=Ur==null?void 0:Ur.userInfo)==null?void 0:mr.login,container_type:"DataSet",container_id:null,description:"",realFileName:!1}),Jn(ur=>[...ur,en]),Promise.reject()})},Ln=gn=>yt(void 0,null,function*(){var Nn,kn,En;const $n=bn.current.find(mr=>mr.name===gn.name);(Nn=$n==null?void 0:$n.response)!=null&&Nn.attachment_id&&(yield(0,Ae.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:{attachment_id:(kn=$n==null?void 0:$n.response)==null?void 0:kn.attachment_id}})),$n!=null&&$n.client&&((En=$n==null?void 0:$n.client)==null||En.cancel()),Jn(mr=>mr.filter(Hr=>Hr.name!==gn.name))}),xn=()=>{var gn;(gn=bn.current)==null||gn.forEach(Nn=>{var kn;Nn!=null&&Nn.client&&((kn=Nn==null?void 0:Nn.client)==null||kn.cancel())})},In=(gn,Nn)=>yt(void 0,null,function*(){var kn,En,$n,mr,Hr,Lr,en,ur,Mr;Nn.file_name=gn.name;const pr=gn.name,Ar=yield(0,Ae.ZP)("/api/buckets/get_data_set_token.json",{method:"get"});if((Ar==null?void 0:Ar.status)!==0){Jn(vr=>(vr[vr.findIndex(Qr=>Qr.name===pr)].status="error",[...vr])),be.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}Ar.data=JSON.parse((0,_e.pe)(Ar.data));const Zr=new(Be())({endpoint:(kn=Ar==null?void 0:Ar.data)==null?void 0:kn.end_point,region:(En=Ar==null?void 0:Ar.data)==null?void 0:En.region,accessKeyId:($n=Ar==null?void 0:Ar.data)==null?void 0:$n.access_key_id,accessKeySecret:(mr=Ar==null?void 0:Ar.data)==null?void 0:mr.access_key_secret,bucket:(Hr=Ar==null?void 0:Ar.data)==null?void 0:Hr.bucket,stsToken:(Lr=Ar==null?void 0:Ar.data)==null?void 0:Lr.security_token}),gi=gn.name.split(".");gi.pop();const _r=Nn.realFileName?gi.join("."):(0,qe.Z)();Zr.multipartUpload(`datasets/${Nn==null?void 0:Nn.login}/${_r}${pr.indexOf(".")>-1?"."+pr.split(".").pop():""}`,new Blob([gn.file],{type:gn.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(vr,Qr,An)=>{console.log("\u8FDB\u5EA6",vr,Qr,An),console.log("client--",Zr),Jn(ki=>{const Dn=ki.findIndex(ui=>ui.name===pr);return Dn!==-1&&(ki[Dn].client=Zr,ki[Dn].percent=vr*100,ki[Dn].checkpoint=Qr),[...ki]})},checkpoint:(ur=bn.current[(en=bn.current)==null?void 0:en.findIndex(vr=>vr.name===pr)])==null?void 0:ur.checkpoint,callback:{customValue:{id:pr+""},url:(Mr=Ar==null?void 0:Ar.data)==null?void 0:Mr.callback_url,host:Ar==null?void 0:Ar.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Ae.rz)(Nn)}}).then(function(vr){Jn(Qr=>{var An,ki,Dn;const ui=Qr.findIndex(Mi=>Mi.name===pr);let fo="done";return ui!==-1&&(((An=vr.data)==null?void 0:An.status)===0?Qr[ui].response=(ki=vr.data)==null?void 0:ki.data:(be.ZP.warning((Dn=vr.data)==null?void 0:Dn.message),fo="error"),Qr[ui].status=fo),[...Qr]})}).catch(function(vr){console.log("\u63A5\u53E3\u9519\u8BEF\uFF1A",vr),(vr==null?void 0:vr.name)!=="cancel"&&Jn(Qr=>{const An=Qr.findIndex(ki=>ki.name===pr);return An!==-1&&(Qr[An].status="error"),[...Qr]})})});return ze.createElement("div",{className:xe.content},!Xr&&!Pn&&di&&ze.createElement("div",{className:xe.introduceNoData,onClick:()=>{hr(!0)}},ze.createElement("div",{className:xe.introduceAdd},ze.createElement("i",{className:"icon icon-tianjia4 mr5 font12"})," \u6DFB\u52A0\u6570\u636E\u96C6\u4ECB\u7ECD"),ze.createElement("div",{className:xe.introduceText},"\u8BA9\u4F60\u7684\u6570\u636E\u96C6\u66F4\u53D7\u6B22\u8FCE")),!Xr&&Pn&&ze.createElement("div",{className:xe.introduceContent},ze.createElement("div",{className:xe.introduceTitle},"\u6570\u636E\u96C6\u4ECB\u7ECD",di&&ze.createElement("i",{className:"icon icon-bianji9 font14 ml10",style:{color:"#3061D0",cursor:"pointer"},onClick:()=>{hr(!0)}})),ze.createElement("div",{className:xe.introContentWrap},ze.createElement("div",null,ze.createElement("div",{ref:jt,style:un>0?{height:un===1?80:"auto",overflow:un===1?"hidden":"auto"}:{paddingRight:0}},ze.createElement("div",{ref:Jt},ze.createElement(z.Z,{value:Pn,style:{fontSize:"14px"}}))),!!un&&ze.createElement(tt.Fragment,null,un===1?ze.createElement("div",{onClick:()=>{on(2)},className:xe.action},"\u5C55\u5F00",ze.createElement("i",{className:"iconfont icon-zhankaixiaojiantou",style:{fontSize:"10px",marginLeft:"3px"}})):ze.createElement("div",{onClick:()=>{on(1)},className:xe.action},"\u6536\u8D77",ze.createElement("i",{className:"iconfont icon-shouqixiaojiantou",style:{fontSize:"10px",marginLeft:"3px"}})))))),Xr&&ze.createElement("div",{style:{marginTop:"30px"}},ze.createElement(fe.Z,{watch:!0,onChange:gn=>{Dt(gn)},defaultValue:Kt,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26"}),ze.createElement("div",{className:xe.introduceButton},ze.createElement("div",{className:xe.close,onClick:gn=>{gn.stopPropagation(),hr(!1)}},"\u53D6\u6D88"),ze.createElement("div",{className:xe.submit,onClick:gn=>{gn.stopPropagation(),(0,pe.R2)({id:Br==null?void 0:Br.id,introduce:Kt}).then(Nn=>{(Nn==null?void 0:Nn.status)==0&&(be.ZP.success("\u64CD\u4F5C\u6210\u529F"),hr(!1),Vr(!0))})}},"\u786E\u8BA4"))),ze.createElement("div",{className:xe.fileTable},ze.createElement("div",null,"\u6587\u4EF6\u5217\u8868"),di&&ze.createElement("div",{className:xe.addBtn,onClick:()=>{jn(!0)}},"\u4E0A\u4F20\u6587\u4EF6")),ze.createElement(ae.default,{dataSource:Rr==null?void 0:Rr.attachments,pagination:!1,style:{marginTop:"20px"},scroll:{y:300},columns:[{title:"\u6587\u4EF6",align:"left",width:400,dataIndex:"title",ellipsis:!0},{title:"\u5907\u6CE8",align:"left",dataIndex:"description",ellipsis:!0},{title:"\u521B\u5EFA\u65F6\u95F4",align:"left",ellipsis:!0,dataIndex:"created_on",render:gn=>ze.createElement("span",{style:{color:"#666666"}},gn?Pe()(gn).format("YYYY-MM-DD"):"--")},{title:"\u6587\u4EF6\u5927\u5C0F",align:"left",dataIndex:"filesize",ellipsis:!0},{title:"\u64CD\u4F5C",align:"right",dataIndex:"role",width:di?130:60,render:(gn,Nn,kn)=>ze.createElement("span",{style:{color:"#3061D0"}},ze.createElement("div",{style:{display:"flex"}},ze.createElement("div",{style:{marginRight:"10px",color:"#3061D0",cursor:"pointer"},onClick:()=>{(0,Ie.Nd)(Nn.title,Nn==null?void 0:Nn.download_url)}},"\u4E0B\u8F7D"),di&&ze.createElement("div",{style:{marginRight:"10px",color:"#3061D0",cursor:"pointer"},onClick:()=>{var En,$n,mr,Hr;let Lr=($n=Nn==null?void 0:Nn.title)==null?void 0:$n.substring(((En=Nn==null?void 0:Nn.title)==null?void 0:En.lastIndexOf("."))+1);pn.setFieldsValue({title:(Hr=Nn==null?void 0:Nn.title)==null?void 0:Hr.substring(0,(mr=Nn==null?void 0:Nn.title)==null?void 0:mr.lastIndexOf(".")),description:Nn==null?void 0:Nn.description}),me.default.confirm({icon:null,title:"\u7F16\u8F91",width:700,centered:!0,content:ze.createElement("div",null,ze.createElement(ee.default,{form:pn,colon:!1,labelCol:{span:3},style:{marginBottom:"-20px"},wrapperCol:{span:21}},ze.createElement(ee.default.Item,{label:"\u6587\u4EF6\u540D\u79F0",name:"title",rules:[{required:!0,message:"\u5FC5\u586B\u9879"}]},ze.createElement(re.default,{placeholder:"\u6587\u4EF6\u540D\u79F0\u6700\u591A\u53EF\u8F93\u5165255\u5B57",size:"large",suffix:ze.createElement("span",null,".",Lr)})),ze.createElement(ee.default.Item,{label:"\u5907\u6CE8",name:"description"},ze.createElement(Oe.Z,{placeholder:"\u5907\u6CE8\u8BF4\u660E\uFF0C\u6700\u591A255\u5B57",size:"large"})))),onOk:()=>yt(void 0,null,function*(){yield pn.validateFields(),(0,pe.A0)({id:Br==null?void 0:Br.id,attachment_id:Nn.id,filename:pn.getFieldValue("title")+"."+Lr,description:pn.getFieldValue("description")}).then(en=>{(en==null?void 0:en.status)==0&&(be.ZP.success("\u7F16\u8F91\u6210\u529F"),Vr())})})})}},"\u7F16\u8F91"),di&&ze.createElement("div",{style:{color:"#9096A3",cursor:"pointer"},onClick:()=>{me.default.confirm({icon:null,centered:!0,title:"\u63D0\u793A",content:"\u5220\u9664\u6570\u636E\u96C6\u4E0D\u4F1A\u5F71\u54CD\u5230\u5F15\u7528\u8BE5\u6570\u636E\u96C6\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4F46\u5220\u9664\u540E\u6570\u636E\u5C06\u4E0D\u53EF\u6062\u590D\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664",onOk:()=>yt(void 0,null,function*(){(0,pe.Il)({attachment_id:Nn==null?void 0:Nn.id}).then(En=>{(En==null?void 0:En.status)==0&&(be.ZP.success("\u5220\u9664\u6210\u529F"),Vr(!0))})})})}},"\u5220\u9664")))}]}),ze.createElement(me.default,{centered:!0,keyboard:!1,maskClosable:!1,destroyOnClose:!0,open:Zt,title:"\u4E0A\u4F20\u6587\u4EF6",okButtonProps:{loading:Fn,disabled:an},width:"1000px",onOk:()=>yt(void 0,null,function*(){const gn=yn.map(kn=>{var En;return{attachment_id:(En=kn.response)==null?void 0:En.attachment_id,description:nn}});if(yn.length===0){be.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u6587\u4EF6\uFF01");return}ar(!0);const Nn=yield(0,Ae.ZP)(`/api/data_sets/${Br==null?void 0:Br.id}/upload_attachments.json`,{method:"post",body:{attachments:gn}});(Nn==null?void 0:Nn.status)==0&&(be.ZP.success("\u4E0A\u4F20\u6210\u529F\uFF01"),Vr(),jn(!1)),ar(!1)}),onCancel:()=>{if(an){me.default.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20\uFF0C\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{jn(!1)}});return}jn(!1)},afterClose:()=>{Jn([]),On(""),ar(!1),xn()}},ze.createElement("div",{className:xe.wrap},ze.createElement("div",{className:"mb10"},ze.createElement("span",{style:{color:"#ff4d4f",marginRight:"5px"}},"*"),"\u9009\u62E9\u6587\u4EF6 ",ze.createElement("span",{className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC72GB)")),ze.createElement("div",null,ze.createElement(le.default.Dragger,xt(ft({},mn),{height:300}),ze.createElement("div",null,ze.createElement("i",{className:`iconfont icon-shangchuan font50 ${xe.colorBlue}`})),ze.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",ze.createElement("span",{className:`${xe.colorBlue} ml5`},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),ze.createElement("div",{className:xe.box},yn.map(gn=>ze.createElement("div",{key:gn.id,className:xe.row},ze.createElement("div",{style:{display:"flex",alignItems:"center"}},ze.createElement("div",{className:xe.icon},gn.status==="done"&&ze.createElement("i",{className:"iconfont icon-wancheng",style:{color:"#19CB70"}}),gn.status==="error"&&ze.createElement("i",{className:"iconfont icon-cuowu",style:{color:"#E30000",marginLeft:1,fontSize:13}})),ze.createElement("div",{style:{flex:1}},ze.createElement(Fe.Z,{title:gn==null?void 0:gn.name},ze.createElement("div",{style:{width:"100%",color:gn.status==="error"?"#E30000":"#3061D0",textDecoration:"underline"}},(0,Ie.tP)(gn==null?void 0:gn.name,9))),gn.status==="uploading"&&ze.createElement(ue.Z,{strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:gn.percent,showInfo:!1,style:{width:"900px"}}))),ze.createElement("i",{onClick:()=>Ln(gn),className:"iconfont icon-shanchu14 font14 ml20",style:{cursor:"pointer",color:"#F65160"}})))),ze.createElement("div",{style:{marginTop:"20px"}},"\u5907\u6CE8\uFF1A"),ze.createElement("div",null,ze.createElement(re.default,{allowClear:!0,value:nn,onChange:gn=>{On(gn.target.value)},bordered:!1,showCount:!0,maxLength:255,placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"})))))};var gt=(0,Pt.connect)(({polls:tr,loading:gr,user:Qn,globalSetting:it})=>({polls:tr,globalSetting:it,user:Qn,loading:gr.effects}))(pt),mt=Ke(76466),Mt=Ke(95237),Ct=Ke(43604),zt=Ke(3113),St={flex_box_center:"flex_box_center___kjELP",flex_space_between:"flex_space_between___IoBKu",flex_box_vertical_center:"flex_box_vertical_center___NuujF",flex_box_center_end:"flex_box_center_end___Kc5UK",flex_box_column:"flex_box_column___ebFBu",reply:"reply___xDf2z",replyList:"replyList___zMH5f",comment:"comment___qHsYF",content:"content___vTju0",commentItem:"commentItem___aGdcc",commentParItem:"commentParItem___XkqkQ",submitStyle:"submitStyle___RwXx8"},bt=Ke(18209),at=Ke(59301),nt=Object.defineProperty,we=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,Ge=(tr,gr,Qn)=>gr in tr?nt(tr,gr,{enumerable:!0,configurable:!0,writable:!0,value:Qn}):tr[gr]=Qn,He=(tr,gr)=>{for(var Qn in gr||(gr={}))Ze.call(gr,Qn)&&Ge(tr,Qn,gr[Qn]);if(Ve)for(var Qn of Ve(gr))Ee.call(gr,Qn)&&Ge(tr,Qn,gr[Qn]);return tr},We=(tr,gr)=>we(tr,Te(gr)),Xe=(tr,gr,Qn)=>new Promise((it,Ur)=>{var Rr=Br=>{try{Vr(Qn.next(Br))}catch(Xr){Ur(Xr)}},di=Br=>{try{Vr(Qn.throw(Br))}catch(Xr){Ur(Xr)}},Vr=Br=>Br.done?it(Br.value):Promise.resolve(Br.value).then(Rr,di);Vr((Qn=Qn.apply(tr,gr)).next())});Pe().locale("ZH-cn");function ct({user:tr,vlist:gr=[],dispatch:Qn,params:it,id:Ur,memo_replies:Rr,forumsDetail:di}){return at.createElement("aside",{className:St.comment},gr.map(function(Vr,Br){var Xr,hr;return at.createElement(Mt.Z,{key:Br,className:St.commentItem},at.createElement(Ct.Z,{span:24},at.createElement(Mt.Z,null,at.createElement(Ct.Z,{flex:"1"},at.createElement("a",{href:`/users/${Vr.user_login}`,target:"_blank",style:{color:"#9096A3",fontSize:"12px"}},Vr==null?void 0:Vr.username),at.createElement("span",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px"}},Vr.time)),(Vr.can_delete||Vr.user_id===((Xr=tr.userInfo)==null?void 0:Xr.user_id)||Vr.user_login===((hr=tr.userInfo)==null?void 0:hr.login))&&at.createElement(Ct.Z,{className:"forums-comment-delete",style:{display:"none"}},at.createElement(Fe.Z,{title:"\u5220\u9664"},at.createElement(mt.Z,{className:"current",onClick:()=>{me.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:at.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>Xe(this,null,function*(){const un=yield(0,bt.sW)({id:Vr.id,memo_type:"data_set"}),on=Rr.find(Jt=>Jt.id===Ur).children.filter(Jt=>Jt.id!==Vr.id);Rr.find(Jt=>Jt.id===Ur).children=on,Qn({type:"forumsDetail/setForumsDetailData",payload:We(He({},di.forumsDetailData),{memo_replies:[...Rr],memo_type:"data_set"})})})})}}))))),at.createElement(Ct.Z,null,at.createElement(z.Z,{value:Vr.content,style:{color:"#232B40",fontSize:"14px"}})))}))}var Et=ct,ht=Ke(59301),It=Object.defineProperty,qt=Object.defineProperties,$t=Object.getOwnPropertyDescriptors,Wt=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,kt=(tr,gr,Qn)=>gr in tr?It(tr,gr,{enumerable:!0,configurable:!0,writable:!0,value:Qn}):tr[gr]=Qn,Xt=(tr,gr)=>{for(var Qn in gr||(gr={}))Ut.call(gr,Qn)&&kt(tr,Qn,gr[Qn]);if(Wt)for(var Qn of Wt(gr))ln.call(gr,Qn)&&kt(tr,Qn,gr[Qn]);return tr},tn=(tr,gr)=>qt(tr,$t(gr)),dn=(tr,gr,Qn)=>new Promise((it,Ur)=>{var Rr=Br=>{try{Vr(Qn.next(Br))}catch(Xr){Ur(Xr)}},di=Br=>{try{Vr(Qn.throw(Br))}catch(Xr){Ur(Xr)}},Vr=Br=>Br.done?it(Br.value):Promise.resolve(Br.value).then(Rr,di);Vr((Qn=Qn.apply(tr,gr)).next())});Pe().locale("ZH-cn");const Mn=({user:tr,forumsDetail:gr,globalSetting:Qn,loading:it,dispatch:Ur,handleClick:Rr,memoId:di},Vr)=>{const{memo:Br,memo_replies:Xr}=gr.forumsDetailData||{},hr=(0,Pt.useParams)(),[un,on]=(0,tt.useState)(""),[Jt,jt]=(0,tt.useState)(""),[Pn,Cn]=(0,tt.useState)(-1),[Kt,Dt]=(0,tt.useState)(!1),[pn,yn]=(0,tt.useState)(!1),[Jn,bn]=(0,tt.useState)(1);(0,tt.useEffect)(()=>{Dt((Br==null?void 0:Br.reply_for_memo_count)>10)},[Br==null?void 0:Br.reply_for_memo_count]),(0,tt.useEffect)(()=>{Ur({type:"forumsDetail/getForumsDetailData",payload:{id:di,memo_type:"data_set"}})},[]);const Zt=()=>dn(void 0,null,function*(){var Fn;const ar=Jn+1;bn(ar);const nn=yield(0,bt.z5)({id:di,page:ar,memo_type:"data_set"});nn!=null&&nn.memo_replies&&(Ur({type:"forumsDetail/setForumsDetailData",payload:tn(Xt({},gr.forumsDetailData),{memo_replies:[...Xr,...nn.memo_replies]})}),Dt(((Fn=nn.memo_replies)==null?void 0:Fn.length)===10))}),jn=Fn=>{var ar,nn,On,an;return tn(Xt({},Fn),{image_url:(ar=tr.userInfo)==null?void 0:ar.image_url,children:[],user_id:(nn=tr.userInfo)==null?void 0:nn.user_id,user_login:(On=tr.userInfo)==null?void 0:On.login,username:(an=tr.userInfo)==null?void 0:an.username,time:`${(0,Ie.li)((new Date().getTime()-new Date(Fn.created_at).getTime())/1e3)}\u524D`})};return ht.createElement("section",{className:St.wrap},!!(Xr!=null&&Xr.length)&&ht.createElement("aside",{className:St.content},ht.createElement("aside",{className:St.replyList},Xr==null?void 0:Xr.map(function(Fn,ar){var nn,On,an;return ht.createElement(Mt.Z,{gutter:[12,12],key:ar},ht.createElement(Ct.Z,{flex:"40px"},ht.createElement("a",{href:`/users/${Fn.user_login}`,target:"_blank"},ht.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",width:"46",height:"46",src:`${ve.Z.IMG_SERVER}/images/${Fn==null?void 0:Fn.image_url}`}))),ht.createElement(Ct.Z,{flex:"1"},ht.createElement(Mt.Z,{align:"middle",className:St.commentParItem},ht.createElement(Ct.Z,{span:24},ht.createElement(Mt.Z,null,ht.createElement(Ct.Z,{flex:"1"},ht.createElement("a",{href:`/users/${Fn.user_login}`,target:"_blank"},ht.createElement("span",{style:{color:"#9096A3",fontSize:"12px"}},Fn==null?void 0:Fn.username)),ht.createElement("span",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px"}},Fn.time)),(Fn.can_delete||Fn.user_id===((nn=tr.userInfo)==null?void 0:nn.user_id)||Fn.user_login===((On=tr.userInfo)==null?void 0:On.login))&&ht.createElement(Ct.Z,{className:"forums-comment-par-delete",style:{display:"none"}},ht.createElement(Fe.Z,{title:"\u5220\u9664"},ht.createElement(mt.Z,{className:"current",onClick:()=>{me.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ht.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>dn(this,null,function*(){const mn=yield(0,bt.sW)({id:Fn.id,memo_type:"data_set"}),Ln=Xr.filter(xn=>xn.id!==Fn.id);Ur({type:"forumsDetail/setForumsDetailData",payload:tn(Xt({},gr.forumsDetailData),{memo_replies:[...Ln],memo_type:"data_set"})})})})}}))))),ht.createElement(Ct.Z,{span:24,style:{marginTop:"5px"}},ht.createElement("div",{onClick:Rr},ht.createElement(z.Z,{value:Fn.content,style:{color:"#232B40",fontSize:"14px"}}))),!!((an=Fn==null?void 0:Fn.children)!=null&&an.length)&&ht.createElement(Et,{user:tr,id:Fn==null?void 0:Fn.id,vlist:Fn==null?void 0:Fn.children,dispatch:Ur,params:hr,memo_replies:Xr,forumsDetail:gr}),ht.createElement(Ct.Z,{span:24,className:"mt5 c-light-black"},Pn===ar?ht.createElement("aside",null,ht.createElement(fe.Z,{onChange:mn=>{jt(mn)},height:150,isFocus:!0,placeholder:"\u6211\u8981\u56DE\u590D..."}),ht.createElement(Mt.Z,null,ht.createElement(Ct.Z,{span:24,className:"tr"},ht.createElement(zt.ZP,{type:"primary",size:"middle",onClick:()=>dn(this,null,function*(){if(Jt==="")be.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const mn=yield(0,bt.ts)({parent_id:Fn.id,content:Jt,memo_type:"data_set"});jt(null),mn&&(Cn(-1),Xr.find(Ln=>Ln.id===mn.parent_id).children.push(jn(mn)),Ur({type:"forumsDetail/setForumsDetailData",payload:tn(Xt({},gr.forumsDetailData),{memo:tn(Xt({},Br),{reply_for_memo_count:(Br==null?void 0:Br.reply_for_memo_count)+1}),memo_replies:[...Xr],memo_type:"data_set"})}))}})},"\u53D1\u9001")))):ht.createElement("div",{className:"tr",style:{textAlign:"left"}},ht.createElement("span",{className:"iconfont icon-xiaopinglun mr30 current font14",onClick:()=>Cn(ar)}),ht.createElement(Fe.Z,{title:Fn.user_praise?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},ht.createElement("span",{className:Fn.user_praise?"c-orange":"c-gery-888"},ht.createElement("i",{className:"iconfont icon-dianzan4 mr5 current font14",onClick:()=>dn(this,null,function*(){const mn=yield(0,bt.vL)({id:Fn.id,container_type:"Memo",type:Fn.user_praise?0:1,memo_type:"data_set"});(mn==null?void 0:mn.praise_count)>=0&&(Xr.find(Ln=>Ln.id===Fn.id).user_praise=!Fn.user_praise,Xr.find(Ln=>Ln.id===Fn.id).praise_count=mn==null?void 0:mn.praise_count,Ur({type:"forumsDetail/setForumsDetailData",payload:tn(Xt({},gr.forumsDetailData),{memo_replies:[...Xr],memo_type:"data_set"})}))})}),Fn.praise_count>0?Fn.praise_count:"")))))))}))),Kt&&ht.createElement("aside",{className:"bg-white pb20",style:{display:"flex",justifyContent:"center",marginTop:"20px"}},ht.createElement(Mt.Z,{justify:"space-between"},ht.createElement(Ct.Z,null),ht.createElement(Ct.Z,null,Kt&&ht.createElement("a",{style:{color:"#3061D0",fontSize:"14px"},onClick:Zt},"\u67E5\u770B\u66F4\u591A\u8BC4\u8BBA",ht.createElement("i",{className:"icon icon-zhankaixiaojiantou ",style:{fontSize:"10px",marginLeft:"3px"}}))))),ht.createElement("aside",{className:St.reply},ht.createElement(fe.Z,{onBlur:()=>yn(!1),isFocus:pn,defaultValue:un,id:"writeForumsReviewId",onChange:Fn=>{on(Fn)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),ht.createElement(Mt.Z,null,ht.createElement(Ct.Z,{flex:"1"}),ht.createElement(Ct.Z,null,ht.createElement("div",{className:St.submitStyle,style:{width:"60px",height:"32px",textAlign:"center"},onClick:()=>dn(void 0,null,function*(){if(un==="")be.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const Fn=yield(0,bt.ts)({parent_id:Br==null?void 0:Br.id,content:un,memo_type:"data_set"});on(null),Fn&&Ur({type:"forumsDetail/setForumsDetailData",payload:tn(Xt({},gr.forumsDetailData),{memo:tn(Xt({},Br),{reply_for_memo_count:(Br==null?void 0:Br.reply_for_memo_count)+1}),memo_replies:[jn(Fn),...Xr],memo_type:"data_set"})})}})},"\u53D1\u9001")))))};var Rn=(0,Pt.connect)(({user:tr,forumsDetail:gr,loading:Qn,globalSetting:it})=>({user:tr,forumsDetail:gr,globalSetting:it,loading:Qn.models.forumsDetail}),null,null,{forwardRef:!0})((0,tt.forwardRef)(Mn)),ir=Ke(94606),qn=Ke(2119),Cr=Ke(1498),er=Ke(59301),Fr=(tr,gr,Qn)=>new Promise((it,Ur)=>{var Rr=Br=>{try{Vr(Qn.next(Br))}catch(Xr){Ur(Xr)}},di=Br=>{try{Vr(Qn.throw(Br))}catch(Xr){Ur(Xr)}},Vr=Br=>Br.done?it(Br.value):Promise.resolve(Br.value).then(Rr,di);Vr((Qn=Qn.apply(tr,gr)).next())});let jr={public:"\u516C\u5F00\u6570\u636E\u96C6",mine:"\u6211\u7684\u6570\u636E\u96C6",share:"\u56E2\u961F\u5171\u4EAB",collect:"\u6211\u6536\u85CF\u7684"};const fi=({polls:tr,globalSetting:gr,loading:Qn,dispatch:it,user:Ur})=>{var Rr,di,Vr;const Br=(0,Pt.useParams)(),[Xr]=(0,Pt.useSearchParams)(),[hr,un]=(0,tt.useState)(!1),[on,Jt]=(0,tt.useState)(1),[jt,Pn]=(0,tt.useState)(null),[Cn,Kt]=(0,tt.useState)(""),[Dt,pn]=(0,tt.useState)(),[yn,Jn]=(0,tt.useState)(1),[bn,Zt]=(0,tt.useState)(1),jn=(0,tt.useRef)([]),[Fn,ar]=(0,tt.useState)([]),[nn,On]=(0,tt.useState)(!1),[an,mn]=(0,tt.useState)(!1);(0,tt.useEffect)(()=>{In(),(0,Ae.ZP)("/api/teach_group_shares.json",{method:"get"}).then(kn=>{(kn==null?void 0:kn.status)==0&&ar(kn==null?void 0:kn.groups)})},[]),(0,tt.useEffect)(()=>{on==2&&xn()},[on,yn]);const Ln=(kn,En)=>(kn=Math.max(kn,0),En=Math.max(En,1),Math.ceil(kn/En)),xn=()=>{(0,pe.Ce)({id:Br==null?void 0:Br.id,page:yn,limit:16}).then(kn=>{var En,$n;(kn==null?void 0:kn.status)==0&&(pn((En=kn==null?void 0:kn.data)==null?void 0:En.shixuns),Zt(Ln(($n=kn==null?void 0:kn.data)==null?void 0:$n.count,16)))})},In=(kn=!1)=>{mn(!0),(0,pe.Ru)(Br==null?void 0:Br.id).then(En=>{var $n,mr;(En==null?void 0:En.status)==0&&(Pn(En==null?void 0:En.data),un((0,qn.Ny)()||(($n=En==null?void 0:En.data)==null?void 0:$n.is_creator)),jn.current=(mr=En==null?void 0:En.data)==null?void 0:mr.share_group_ids,kn&&Kt(new Date),mn(!1))})},gn=()=>{On(!1)},Nn=()=>{In(),On(!1)};return er.createElement(oe.Z,{spinning:an},er.createElement("section",{className:ke.bg},jt&&er.createElement(er.Fragment,null,er.createElement("div",{className:"edu-container"},er.createElement("aside",{className:"mt10"},er.createElement(Ue.Z,{separator:">"},er.createElement(Ue.Z.Item,null,er.createElement(Pt.Link,{to:"/dataset"},"\u6570\u636E\u96C6")),er.createElement(Ue.Z.Item,null,er.createElement(Pt.Link,{to:`/dataset?tabId=${Xr.get("tabId")}`},jr[Xr.get("tabId")])),er.createElement(Ue.Z.Item,null,jt==null?void 0:jt.title))),er.createElement("aside",{className:ke.wrap},er.createElement("div",{className:ke.leftContent,style:{width:hr?"78%":"87%"}},er.createElement("div",{className:ke.header},er.createElement("div",{className:ke.headerBack,onClick:()=>{Pt.history.push(`/dataset?tabId=${Xr.get("tabId")}`)}},er.createElement("i",{className:"iconfont icon-fanhui4 ",style:{fontSize:"10px",margin:"0 3px 0 5px"}}),"\u8FD4\u56DE"),er.createElement("div",{className:ke.title},jt==null?void 0:jt.title),er.createElement("div",{className:ke.time},jt==null?void 0:jt.create_at)),er.createElement("div",{className:ke.introduction},jt==null?void 0:jt.desc),er.createElement("div",{className:ke.bottom},((Rr=jt==null?void 0:jt.user_info)==null?void 0:Rr.image_url)&&er.createElement("img",{className:ke.user_img,alt:"\u7528\u6237\u5934\u50CF",src:`${ve.Z.IMG_SERVER}/images/${(di=jt==null?void 0:jt.user_info)==null?void 0:di.image_url}`}),er.createElement("div",{className:ke.user_name},jt==null?void 0:jt.user_info_name),(Vr=jt==null?void 0:jt.data_set_tags)==null?void 0:Vr.map((kn,En)=>{var $n;return En<3?er.createElement("div",{key:En,className:ke.tags_name},kn==null?void 0:kn.tag_name):En==3?er.createElement(Fe.Z,{key:En,title:($n=jt==null?void 0:jt.data_set_tags)==null?void 0:$n.map((mr,Hr)=>{var Lr;if(Hr>2)return(mr==null?void 0:mr.tag_name)+(Hr===((Lr=jt==null?void 0:jt.data_set_tags)==null?void 0:Lr.length)-1?"":"\u3001")}).join("")},er.createElement("div",{key:En,className:ke.tags_name},"...")):null}),er.createElement("div",{className:ke.buttonList},er.createElement(Fe.Z,{title:`\u5F15\u7528\u6570\uFF1A${jt==null?void 0:jt.used_count}`},er.createElement("div",{className:`${ke.buttonItem} current`},er.createElement("i",{className:"iconfont icon-yinyong font12 mr5"}),jt==null?void 0:jt.used_count)),er.createElement(Fe.Z,{title:`\u6D4F\u89C8\u6570\uFF1A${jt==null?void 0:jt.visited_count}`},er.createElement("div",{className:`${ke.buttonItem} current`},er.createElement("i",{className:"iconfont icon-chakanrenshu font12 mr5"}),jt==null?void 0:jt.visited_count)),er.createElement(Fe.Z,{title:`\u8BC4\u8BBA\u6570\uFF1A${jt==null?void 0:jt.comment_count}`},er.createElement("div",{className:`${ke.buttonItem} current`},er.createElement("i",{className:"iconfont icon-xiaopinglun font12 mr5"}),jt==null?void 0:jt.comment_count))))),er.createElement("div",{className:ke.rightContent,style:{width:hr?"22%":"13%"}},hr?er.createElement("div",{style:{display:"flex",marginLeft:"auto"}},er.createElement("div",{className:ke.share,onClick:()=>Fr(void 0,null,function*(){me.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5171\u4EAB\u81F3\u6559\u7814\u56E2\u961F",maskClosable:!0,icon:null,content:er.createElement("div",{className:`font14 ${ke.overflow}`},er.createElement("div",{className:ke.tips},"\u63D0\u793A\uFF1A\u5171\u4EAB\u540E\u7684\u6570\u636E\u96C6\u652F\u6301\u56E2\u961F\u6210\u5458\u8FDB\u884C\u7F16\u8F91\uFF0C\u5982\u9700\u64A4\u9500\u672C\u6570\u636E\u96C6\u5BF9\u9009\u4E2D\u6559\u7814\u56E2\u961F\u7684\u5206\u4EAB\uFF0C\u53D6\u6D88\u9009\u4E2D\u5E76\u786E\u5B9A\u5373\u53EF\u3002"),er.createElement(ce.default.Group,{style:{marginTop:"10px"},defaultValue:jt==null?void 0:jt.share_group_ids,onChange:kn=>{jn.current=kn}},Fn==null?void 0:Fn.map(kn=>er.createElement(ce.default,{key:kn==null?void 0:kn.group_id,value:kn==null?void 0:kn.group_id},kn==null?void 0:kn.name)))),onOk:()=>{(0,pe.l5)({ids:[jt==null?void 0:jt.id],clazz:"DataSet",group_ids:jn.current}).then(kn=>{(kn==null?void 0:kn.status)==0&&(be.ZP.success("\u5171\u4EAB\u6210\u529F"),In())})}})})},"\u5171\u4EAB"),er.createElement("div",{className:ke.publicStyle,onClick:()=>{me.default.confirm({centered:!0,okText:"\u786E\u5B9A",icon:null,cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:(jt==null?void 0:jt.public_status)==0?"\u7533\u8BF7\u516C\u5F00\u9700\u8981\u5F85\u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u901A\u8FC7\u540E\uFF0C\u81EA\u52A8\u516C\u5F00":(jt==null?void 0:jt.public_status)==1?"\u53D6\u6D88\u516C\u5F00\u540E\uFF0C\u5176\u4ED6\u7528\u6237\u5C06\u4E0D\u53EF\u89C1\uFF0C\u540C\u65F6\u518D\u6B21\u516C\u5F00\u9700\u8981\u91CD\u65B0\u8FDB\u884C\u7533\u8BF7":"\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u540E\uFF0C\u7533\u8BF7\u8BB0\u5F55\u5C06\u5220\u9664\uFF0C\u5982\u9700\u516C\u5F00\u8BF7\u518D\u6B21\u7533\u8BF7",onOk:()=>Fr(void 0,null,function*(){let kn;switch(jt==null?void 0:jt.public_status){case 0:kn=(0,pe.To)(jt==null?void 0:jt.id);break;case 1:kn=(0,pe.a6)(jt==null?void 0:jt.id);break;case 2:kn=(0,pe.Dx)(jt==null?void 0:jt.id);break;default:return}kn.then(En=>{(En==null?void 0:En.status)===0&&(be.ZP.success("\u64CD\u4F5C\u6210\u529F"),In())})})})}},(jt==null?void 0:jt.public_status)==0?"\u7533\u8BF7\u516C\u5F00":(jt==null?void 0:jt.public_status)==1?"\u53D6\u6D88\u516C\u5F00":"\u64A4\u9500\u7533\u8BF7\u516C\u5F00"),er.createElement(Le.Z,{menu:{items:[{label:er.createElement("div",null,"\u7F16\u8F91"),key:"4",onClick:()=>{On(!0)}},{label:er.createElement("div",{onClick:()=>{me.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,content:"\u5220\u9664\u6570\u636E\u96C6\u4E2D\u7684\u6587\u4EF6\u4E0D\u4F1A\u5F71\u54CD\u5230\u5F15\u7528\u8BE5\u6570\u636E\u96C6\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4F46\u5220\u9664\u540E\u6570\u636E\u5C06\u4E0D\u53EF\u6062\u590D\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664",onOk(){return Fr(this,null,function*(){(0,pe.pP)(jt==null?void 0:jt.id).then(kn=>{(kn==null?void 0:kn.status)==0&&(be.ZP.success("\u5220\u9664\u6210\u529F"),Pt.history.push("/dataset"))})})}})}},"\u5220\u9664"),key:"5"}]}},er.createElement("div",{className:ke.more},er.createElement("i",{className:"iconfont icon-gengduo6 font12"})))):er.createElement("div",{className:jt!=null&&jt.current_user_is_collect?ke.collectActiveStyle:ke.collectStyle,onClick:()=>{let kn;jt!=null&&jt.current_user_is_collect?kn=(0,pe.R9)({container_id:jt==null?void 0:jt.id,container_type:"DataSet"}):kn=(0,pe.nW)({container_id:jt==null?void 0:jt.id,container_type:"DataSet"}),kn.then(En=>{(En==null?void 0:En.status)===0&&In()})}},er.createElement("i",{className:"iconfont icon-shoucang4 font12"})," ",jt==null?void 0:jt.collect_count))),er.createElement("div",{className:ke.content},er.createElement("div",{style:{display:"flex",alignItems:"center"}},er.createElement(Se.ZP.Group,{className:ke.addTypeRadio,optionType:"button",options:[{label:"\u8BE6\u60C5",value:1},{label:"\u5B9E\u8DF5\u9879\u76EE",value:2},{label:"\u8BA8\u8BBA",value:3}],onChange:kn=>{var En;Jt((En=kn==null?void 0:kn.target)==null?void 0:En.value)},value:on}),er.createElement("div",{className:ke.addBtn,onClick:()=>{window.open(`/shixuns/new?dataSetId=${Br==null?void 0:Br.id}`)}},"\u521B\u5EFA\u5B9E\u8DF5\u9879\u76EE")),on==1&&er.createElement(gt,{dataSetInfo:jt,getInfo:In,key:Cn,indexType:hr}),on==2&&er.createElement("div",null,er.createElement("div",{className:ke.shixunTooltip},er.createElement("i",{className:"icon icon-tishi11 font12 mr10"}),"\u6E29\u99A8\u63D0\u793A\uFF1A\u4EC5\u5C55\u793A\u5F15\u7528\u8BE5\u6570\u636E\u96C6\u4E14\u516C\u5F00\u7684\u5B9E\u8DF5\u9879\u76EE"),er.createElement(ir.wb,{dataSource:Dt,right:23,col:4,precision:1,loading:!1,wrapWidth:1140,trackEventItems:["\u5B9E\u8DF5\u9879\u76EE","\u9996\u9875","\u5B9E\u8BAD\u5217\u8868\u67E5\u770B\u8BE6\u60C5"]}),bn>1&&er.createElement("div",{className:ke.pageStyle},er.createElement("div",{className:yn==1?ke.pageUnCan:ke.pageCan,style:{marginRight:"10px"},onClick:()=>{yn>1&&Jn(yn-1)}},"\u4E0A\u4E00\u9875"),er.createElement("div",{className:yn==bn?ke.pageUnCan:ke.pageCan,style:{marginLeft:"10px"},onClick:()=>{yn<bn&&Jn(yn+1)}},"\u4E0B\u4E00\u9875"))),on==3&&er.createElement(Rn,{memoId:jt==null?void 0:jt.memo_id})))),er.createElement(Cr.Z,{dataSetInfo:jt,visible:nn,onClose:gn,onSuccess:Nn})))};var Si=(0,Pt.connect)(({polls:tr,loading:gr,user:Qn,globalSetting:it})=>({polls:tr,globalSetting:it,user:Qn,loading:gr.effects}))(fi)},60419:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return ke}});var tt=Ke(59301),Pt=Ke(42203),oe=Ke(57809),Ue=Ke(71418),Fe=Ke(8591),me={flex_box_center:"flex_box_center___OmLFa",flex_space_between:"flex_space_between___Pwqhp",flex_box_vertical_center:"flex_box_vertical_center___UJzms",flex_box_center_end:"flex_box_center_end___qMu25",flex_box_column:"flex_box_column___AimtA",selectList:"selectList___hGJUN",selectHeader:"selectHeader___HxdBZ",selectContent:"selectContent___oWjby",contentTitle:"contentTitle___xlVyW",contentTags:"contentTags___BGCLU",tagName:"tagName___MIGDL",tagNameActive:"tagNameActive___JCRev",activeStyle:"activeStyle___FvXnt",activeLabel:"activeLabel___RzW9T",activeValue:"activeValue___qxoch",activeItem:"activeItem___NfFjA",activeClose:"activeClose___Su7dS",activeSubmit:"activeSubmit___gjhQA"},ce=Ke(41807),be=Ke(59301),Le=(ve,xe,fe)=>new Promise((z,ee)=>{var ae=ue=>{try{le(fe.next(ue))}catch(pe){ee(pe)}},re=ue=>{try{le(fe.throw(ue))}catch(pe){ee(pe)}},le=ue=>ue.done?z(ue.value):Promise.resolve(ue.value).then(ae,re);le((fe=fe.apply(ve,xe)).next())});const Se=({user:ve,width:xe,selectWidth:fe,tags:z,getDataSet:ee,placeholder:ae="\u5168\u90E8\u6807\u7B7E",isTagsValue:re=!1})=>{const[le,ue]=(0,tt.useState)([]),[pe,Ce]=(0,tt.useState)([]),[Pe,Ie]=(0,tt.useState)(!1),Oe=(0,tt.useRef)(null);(0,tt.useEffect)(()=>{Ae()},[]);const Ae=()=>Le(void 0,null,function*(){Ie(!0),yield(0,ce.bj)({}).then(Be=>{(Be==null?void 0:Be.status)==0&&ue(Be==null?void 0:Be.data)}),Ie(!1)}),je=z==null?void 0:z.map(Be=>Be.tag_name).join("\u3001");return be.createElement(oe.default,{onFocus:()=>{Ce(z)},ref:Oe,style:{width:fe?fe+"px":300},placeholder:(z==null?void 0:z.length)>0?re?be.createElement("span",{className:"c-grey-333"},je):`\u5DF2\u9009\u4E2D${z==null?void 0:z.length}\u4E2A\u6807\u7B7E`:ae,size:"large",dropdownStyle:{width:xe+"px",zIndex:1e3},className:me.selectStyle,dropdownRender:()=>be.createElement("div",{className:me.selectList,style:{width:xe+"px"}},be.createElement("div",{className:me.selectHeader},"\u8BF7\u9009\u62E91\uFF5E5\u4E2A\u6807\u7B7E"),be.createElement(Ue.Z,{spinning:Pe},be.createElement("div",{className:me.selectContent},le==null?void 0:le.map((Be,_e)=>{var qe;return be.createElement("aside",{key:_e},be.createElement("div",{className:me.contentTitle,style:{marginTop:_e>0?"20px":"0"}},Be==null?void 0:Be.tag_type_cn),be.createElement("div",{className:me.contentTags},(qe=Be==null?void 0:Be.child)==null?void 0:qe.map((ze,Ye)=>{var et;return be.createElement("div",{key:Ye,className:(et=pe==null?void 0:pe.map(lt=>lt==null?void 0:lt.id))!=null&&et.includes(ze==null?void 0:ze.id)?me.tagNameActive:me.tagName,onClick:()=>{var lt;(lt=pe==null?void 0:pe.map(dt=>dt==null?void 0:dt.id))!=null&<.includes(ze==null?void 0:ze.id)?Ce(pe.filter(dt=>(dt==null?void 0:dt.id)!=(ze==null?void 0:ze.id))):(pe==null?void 0:pe.length)<5?Ce([...pe,ze]):Fe.ZP.warning("\u6700\u591A\u53EF\u9009\u62E95\u4E2A\u6807\u7B7E")}},ze==null?void 0:ze.tag_name)})))}))),be.createElement("div",{className:me.activeStyle},be.createElement("div",{className:me.activeLabel},"\u5DF2\u9009\u6807\u7B7E:"),be.createElement("div",{className:me.activeValue,style:{width:xe-120+"px"}},pe==null?void 0:pe.map((Be,_e)=>be.createElement("div",{key:_e,className:me.activeItem},Be==null?void 0:Be.tag_name,be.createElement("i",{className:"iconfont icon-guanbi11 ml5 mr5",style:{fontSize:"10px",cursor:"pointer"},onClick:()=>{Ce(pe.filter(qe=>(qe==null?void 0:qe.id)!==(Be==null?void 0:Be.id)))}}))))),be.createElement("div",{style:{display:"flex",marginBottom:"20px"}},be.createElement("div",{className:me.activeClose,onClick:Be=>{Be.stopPropagation(),ee([...z]),Ce([]),setTimeout(()=>{Oe.current&&Oe.current.blur()},10)}},"\u53D6\u6D88"),be.createElement("div",{className:me.activeSubmit,onClick:Be=>{Be.stopPropagation(),ee([...pe]),Ce([]),setTimeout(()=>{Oe.current&&Oe.current.blur()},10)}},"\u786E\u8BA4")))})};var ke=(0,Pt.connect)(({user:ve})=>({user:ve}))(Se)},41807:function(Gn,vn,Ke){"use strict";Ke.d(vn,{A0:function(){return Pe},Ce:function(){return re},Dx:function(){return ve},Il:function(){return Ce},R2:function(){return ae},R9:function(){return z},Ru:function(){return ee},To:function(){return ke},_S:function(){return Se},a6:function(){return xe},bj:function(){return Le},l5:function(){return pe},nW:function(){return fe},pP:function(){return ue},pi:function(){return le}});var tt=Ke(70635),Pt=Object.defineProperty,oe=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,me=(Ie,Oe,Ae)=>Oe in Ie?Pt(Ie,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):Ie[Oe]=Ae,ce=(Ie,Oe)=>{for(var Ae in Oe||(Oe={}))Ue.call(Oe,Ae)&&me(Ie,Ae,Oe[Ae]);if(oe)for(var Ae of oe(Oe))Fe.call(Oe,Ae)&&me(Ie,Ae,Oe[Ae]);return Ie},be=(Ie,Oe,Ae)=>new Promise((je,Be)=>{var _e=Ye=>{try{ze(Ae.next(Ye))}catch(et){Be(et)}},qe=Ye=>{try{ze(Ae.throw(Ye))}catch(et){Be(et)}},ze=Ye=>Ye.done?je(Ye.value):Promise.resolve(Ye.value).then(_e,qe);ze((Ae=Ae.apply(Ie,Oe)).next())});function Le(Ie){return be(this,null,function*(){return(0,tt.ZP)("/api/data_sets/tags.json",{method:"get",params:ce({},Ie)})})}function Se(Ie){return be(this,null,function*(){return(0,tt.ZP)("/api/data_sets.json",{method:"get",params:ce({},Ie)})})}function ke(Ie){return be(this,null,function*(){return(0,tt.ZP)(`/api/data_sets/${Ie}/apply_public.json`,{method:"post"})})}function ve(Ie){return be(this,null,function*(){return(0,tt.ZP)(`/api/data_sets/${Ie}/revoke_apply_public.json`,{method:"post"})})}function xe(Ie){return be(this,null,function*(){return(0,tt.ZP)(`/api/data_sets/${Ie}/cancel_public.json`,{method:"post"})})}function fe(Ie){return be(this,null,function*(){return(0,tt.ZP)("/api/collections.json",{method:"post",body:ce({},Ie)})})}function z(Ie){return be(this,null,function*(){return(0,tt.ZP)("/api/collections/cancel.json",{method:"delete",body:ce({},Ie)})})}function ee(Ie){return be(this,null,function*(){return(0,tt.ZP)(`/api/data_sets/${Ie}.json`,{method:"get"})})}function ae(Ie){return be(this,null,function*(){return(0,tt.ZP)(`/api/data_sets/${Ie==null?void 0:Ie.id}/edit_introduce.json`,{method:"put",body:ce({},Ie)})})}function re(Ie){return be(this,null,function*(){return(0,tt.ZP)(`/api/data_sets/${Ie==null?void 0:Ie.id}/used_shixuns.json`,{method:"get",params:ce({},Ie)})})}function le(Ie){return be(this,null,function*(){return(0,tt.ZP)(`/api/shixuns/${Ie}/data_sets_list.json`,{method:"get"})})}function ue(Ie){return be(this,null,function*(){return(0,tt.ZP)(`/api/data_sets/${Ie}/delete.json`,{method:"delete"})})}function pe(Ie){return be(this,null,function*(){return(0,tt.ZP)("/api/teach_group_shares.json",{method:"post",body:ce({},Ie)})})}function Ce(Ie){return be(this,null,function*(){return(0,tt.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:ce({},Ie)})})}function Pe(Ie){return be(this,null,function*(){return(0,tt.ZP)(`/api/data_sets/${Ie==null?void 0:Ie.id}/edit_file_info.json`,{method:"put",body:ce({},Ie)})})}},31087:function(Gn,vn,Ke){"use strict";Ke.d(vn,{AL:function(){return pe},Iy:function(){return ke},Qv:function(){return fe},ez:function(){return ue},jb:function(){return ve}});var tt=Ke(32834),Pt=Ke.n(tt),oe=Ke(11690),Ue=Ke.n(oe);let Fe=1;function me(Ae,je){const Be=Ae.match(/^(\s+)(?:```)/);if(Be===null)return je;const _e=Be[1];return je.split(`
|
|
|
`).map(qe=>{const ze=qe.match(/^\s+/);if(ze===null)return qe;const[Ye]=ze;return Ye.length>=_e.length?qe.slice(_e.length):qe}).join(`
|
|
|
`)}let ce=[],be=["<ul>"];const Le=new(Pt()).Renderer,Se=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function ke(){ce.length=0,be=["<ul>"]}const ve={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function xe(Ae,je,Be,_e){if(je>=Ae.length||Ae[je].level<=Be)return je;var qe=Ae[je];_e.push("<li><a href='#"+Fe+qe.anchor+"'>"+qe.text+"</a>"),je++;var ze=[];return je=xe(Ae,je,qe.level,ze),ze.length>0&&(_e.push("<ul>"),ze.forEach(function(Ye){_e.push(Ye)}),_e.push("</ul>")),_e.push("</li>"),je=xe(Ae,je,Be,_e),je}function fe(){return xe(ce,0,0,be),be.push("</ul>"),be.join("")}const z={heading(Ae){const je=Se.exec(Ae);if(Fe+=1,je)return{type:"heading",raw:je[0],depth:je[1].length,text:je[2]}},fences(Ae){const je=this.rules.block.fences.exec(Ae);if(je){const Be=je[0];let _e=me(Be,je[3]||"");const qe=je[2]?je[2].trim():je[2];if(["latex","katex","math"].indexOf(qe)>=0){const ze=re(),Ye=_e;_e=ze,le[ze]={type:"block",expression:Ye}}return{type:"code",raw:Be,lang:qe,text:_e}}}},ee=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ae=0;const re=()=>`__special_katext_id_${ae++}__`;let le={};function ue(){return le}function pe(){ae=0,le={}}function Ce(Ae){return Ae=Ae.replace(ee,(je,Be)=>{const _e=re();return le[_e]={type:"inline",expression:Be},_e}),Ae}const Pe=Le.listitem;Le.listitem=function(Ae){return Pe(Ce(Ae))};const Ie=Le.paragraph;Le.paragraph=function(Ae){return Ie(Ce(Ae))};const Oe=Le.tablecell;Le.tablecell=function(Ae,je){return Oe(Ce(Ae),je)},Le.code=function(Ae,je,Be){const _e=(je||"").match(/\S*/)[0];return _e?["latex","katex","math"].indexOf(_e)>=0?`<p class='editormd-tex'>${Ae}</p>`:`<pre class="prettyprint linenums"><code class="language-${je}">${Be?Ae:(0,oe.escape)(Ae,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Be?Ae:(0,oe.escape)(Ae,!0))+"</code></pre>"},Le.heading=function(Ae,je,Be){let _e=this.options.headerPrefix+Be.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ce.push({anchor:_e,level:je,text:Ae}),"<h"+je+' id="'+Fe+_e+'">'+Ae+"</h"+je+">"},Pt().setOptions({silent:!0,gfm:!0,pedantic:!1}),Pt().use({tokenizer:z,renderer:Le}),vn.ZP=Pt()},47257:function(Gn){(function(vn){(function(Ke){if(1)Gn.exports=Ke();else var tt})(function(){var Ke,tt,Pt;return function(){function oe(Ue,Fe,me){function ce(Se,ke){if(!Fe[Se]){if(!Ue[Se]){var ve=void 0;if(!ke&&ve)return require(Se,!0);if(be)return be(Se,!0);var xe=new Error("Cannot find module '"+Se+"'");throw xe.code="MODULE_NOT_FOUND",xe}var fe=Fe[Se]={exports:{}};Ue[Se][0].call(fe.exports,function(z){var ee=Ue[Se][1][z];return ce(ee||z)},fe,fe.exports,oe,Ue,Fe,me)}return Fe[Se].exports}for(var be=void 0,Le=0;Le<me.length;Le++)ce(me[Le]);return ce}return oe}()({1:[function(oe,Ue,Fe){"use strict";var me=oe("./browser/client");me.Buffer=oe("buffer").Buffer,me.urllib=oe("../shims/xhr"),me.version=oe("./browser/version").version,Ue.exports=me},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator")),be=me(oe("@babel/runtime/helpers/asyncToGenerator"));oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.slice.js");var Le=oe("assert"),Se=oe("../common/utils/checkBucketName"),ke=Se.checkBucketName,ve=Fe;function xe(z){return Array.isArray?Array.isArray(z):Object.prototype.toString.call(z)==="[object Array]"}function fe(z){return z?xe(z)?z:[z]:[]}ve.useBucket=function(ee){return ke(ee),this.options.bucket=ee,this},ve.setBucket=function(ee){return ke(ee),this.options.bucket=ee,this},ve.getBucket=function(){return this.options.bucket},ve.deleteBucket=function(){var z=(0,be.default)(ce.default.mark(function ae(re,le){var ue,pe;return ce.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return ue=this._bucketRequestParams("DELETE",re,"",le),Pe.next=3,this.request(ue);case 3:if(pe=Pe.sent,!(pe.status===200||pe.status===204)){Pe.next=6;break}return Pe.abrupt("return",{res:pe.res});case 6:return Pe.next=8,this.requestError(pe);case 8:throw Pe.sent;case 9:case"end":return Pe.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),ve.putBucketACL=function(){var z=(0,be.default)(ce.default.mark(function ae(re,le,ue){var pe,Ce;return ce.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return pe=this._bucketRequestParams("PUT",re,"acl",ue),pe.headers={"x-oss-acl":le},pe.successStatuses=[200],Ie.next=5,this.request(pe);case 5:return Ce=Ie.sent,Ie.abrupt("return",{bucket:Ce.headers.location&&Ce.headers.location.substring(1)||null,res:Ce.res});case 7:case"end":return Ie.stop()}},ae,this)}));function ee(ae,re,le){return z.apply(this,arguments)}return ee}(),ve.getBucketACL=function(){var z=(0,be.default)(ce.default.mark(function ae(re,le){var ue,pe;return ce.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return ue=this._bucketRequestParams("GET",re,"acl",le),ue.successStatuses=[200],ue.xmlResponse=!0,Pe.next=5,this.request(ue);case 5:return pe=Pe.sent,Pe.abrupt("return",{acl:pe.data.AccessControlList.Grant,owner:{id:pe.data.Owner.ID,displayName:pe.data.Owner.DisplayName},res:pe.res});case 7:case"end":return Pe.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),ve.putBucketLogging=function(){var z=(0,be.default)(ce.default.mark(function ae(re,le,ue){var pe,Ce,Pe;return ce.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return pe=this._bucketRequestParams("PUT",re,"logging",ue),Ce=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<BucketLoggingStatus>
|
|
|
<LoggingEnabled>
|
|
|
<TargetBucket>`.concat(re,`</TargetBucket>
|
|
|
`),le&&(Ce+="<TargetPrefix>".concat(le,`</TargetPrefix>
|
|
|
`)),Ce+=`</LoggingEnabled>
|
|
|
</BucketLoggingStatus>`,pe.content=Ce,pe.mime="xml",pe.successStatuses=[200],Oe.next=9,this.request(pe);case 9:return Pe=Oe.sent,Oe.abrupt("return",{res:Pe.res});case 11:case"end":return Oe.stop()}},ae,this)}));function ee(ae,re,le){return z.apply(this,arguments)}return ee}(),ve.getBucketLogging=function(){var z=(0,be.default)(ce.default.mark(function ae(re,le){var ue,pe,Ce;return ce.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return ue=this._bucketRequestParams("GET",re,"logging",le),ue.successStatuses=[200],ue.xmlResponse=!0,Ie.next=5,this.request(ue);case 5:return pe=Ie.sent,Ce=pe.data.LoggingEnabled,Ie.abrupt("return",{enable:!!Ce,prefix:Ce&&Ce.TargetPrefix||null,res:pe.res});case 8:case"end":return Ie.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),ve.deleteBucketLogging=function(){var z=(0,be.default)(ce.default.mark(function ae(re,le){var ue,pe;return ce.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return ue=this._bucketRequestParams("DELETE",re,"logging",le),ue.successStatuses=[204,200],Pe.next=4,this.request(ue);case 4:return pe=Pe.sent,Pe.abrupt("return",{res:pe.res});case 6:case"end":return Pe.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),ve.putBucketCORS=function(){var z=(0,be.default)(ce.default.mark(function ae(re,le,ue){var pe,Ce,Pe,Ie,Oe,Ae,je,Be,_e,qe;return ce.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:for(le=le||[],Le(le.length,"rules is required"),le.forEach(function(et){Le(et.allowedOrigin,"allowedOrigin is required"),Le(et.allowedMethod,"allowedMethod is required")}),pe=this._bucketRequestParams("PUT",re,"cors",ue),Ce=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CORSConfiguration>`,Pe=function(lt){Ce+="<AllowedOrigin>".concat(lt,"</AllowedOrigin>")},Ie=function(lt){Ce+="<AllowedMethod>".concat(lt,"</AllowedMethod>")},Oe=function(lt){Ce+="<AllowedHeader>".concat(lt,"</AllowedHeader>")},Ae=function(lt){Ce+="<ExposeHeader>".concat(lt,"</ExposeHeader>")},je=0,Be=le.length;je<Be;je++)_e=le[je],Ce+="<CORSRule>",fe(_e.allowedOrigin).forEach(Pe),fe(_e.allowedMethod).forEach(Ie),fe(_e.allowedHeader).forEach(Oe),fe(_e.exposeHeader).forEach(Ae),_e.maxAgeSeconds&&(Ce+="<MaxAgeSeconds>".concat(_e.maxAgeSeconds,"</MaxAgeSeconds>")),Ce+="</CORSRule>";return Ce+="</CORSConfiguration>",pe.content=Ce,pe.mime="xml",pe.successStatuses=[200],Ye.next=16,this.request(pe);case 16:return qe=Ye.sent,Ye.abrupt("return",{res:qe.res});case 18:case"end":return Ye.stop()}},ae,this)}));function ee(ae,re,le){return z.apply(this,arguments)}return ee}(),ve.getBucketCORS=function(){var z=(0,be.default)(ce.default.mark(function ae(re,le){var ue,pe,Ce,Pe;return ce.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return ue=this._bucketRequestParams("GET",re,"cors",le),ue.successStatuses=[200],ue.xmlResponse=!0,Oe.next=5,this.request(ue);case 5:return pe=Oe.sent,Ce=[],pe.data&&pe.data.CORSRule&&(Pe=pe.data.CORSRule,xe(Pe)||(Pe=[Pe]),Pe.forEach(function(Ae){var je={};Object.keys(Ae).forEach(function(Be){je[Be.slice(0,1).toLowerCase()+Be.slice(1,Be.length)]=Ae[Be]}),Ce.push(je)})),Oe.abrupt("return",{rules:Ce,res:pe.res});case 9:case"end":return Oe.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),ve.deleteBucketCORS=function(){var z=(0,be.default)(ce.default.mark(function ae(re,le){var ue,pe;return ce.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return ue=this._bucketRequestParams("DELETE",re,"cors",le),ue.successStatuses=[204],Pe.next=4,this.request(ue);case 4:return pe=Pe.sent,Pe.abrupt("return",{res:pe.res});case 6:case"end":return Pe.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),ve.putBucketReferer=function(){var z=(0,be.default)(ce.default.mark(function ae(re,le,ue,pe){var Ce,Pe,Ie,Oe;return ce.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(Ce=this._bucketRequestParams("PUT",re,"referer",pe),Pe=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<RefererConfiguration>
|
|
|
`,Pe+=" <AllowEmptyReferer>".concat(le?"true":"false",`</AllowEmptyReferer>
|
|
|
`),ue&&ue.length>0){for(Pe+=` <RefererList>
|
|
|
`,Ie=0;Ie<ue.length;Ie++)Pe+=" <Referer>".concat(ue[Ie],`</Referer>
|
|
|
`);Pe+=` </RefererList>
|
|
|
`}else Pe+=` <RefererList />
|
|
|
`;return Pe+="</RefererConfiguration>",Ce.content=Pe,Ce.mime="xml",Ce.successStatuses=[200],je.next=10,this.request(Ce);case 10:return Oe=je.sent,je.abrupt("return",{res:Oe.res});case 12:case"end":return je.stop()}},ae,this)}));function ee(ae,re,le,ue){return z.apply(this,arguments)}return ee}(),ve.getBucketReferer=function(){var z=(0,be.default)(ce.default.mark(function ae(re,le){var ue,pe,Ce;return ce.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return ue=this._bucketRequestParams("GET",re,"referer",le),ue.successStatuses=[200],ue.xmlResponse=!0,Ie.next=5,this.request(ue);case 5:return pe=Ie.sent,Ce=pe.data.RefererList.Referer||null,Ce&&(xe(Ce)||(Ce=[Ce])),Ie.abrupt("return",{allowEmpty:pe.data.AllowEmptyReferer==="true",referers:Ce,res:pe.res});case 9:case"end":return Ie.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),ve.deleteBucketReferer=function(){var z=(0,be.default)(ce.default.mark(function ae(re,le){return ce.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.next=2,this.putBucketReferer(re,!0,null,le);case 2:return pe.abrupt("return",pe.sent);case 3:case"end":return pe.stop()}},ae,this)}));function ee(ae,re){return z.apply(this,arguments)}return ee}(),ve._bucketRequestParams=function(ee,ae,re,le){return{method:ee,bucket:ae,subres:re,timeout:le&&le.timeout,ctx:le&&le.ctx}}},{"../common/utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,assert:82,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],3:[function(oe,Ue,Fe){(function(me,ce){(function(){"use strict";var be=oe("@babel/runtime/helpers/interopRequireDefault"),Le=be(oe("@babel/runtime/regenerator")),Se=be(oe("@babel/runtime/helpers/asyncToGenerator"));oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.split.js"),oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.symbol.js"),oe("core-js/modules/es.symbol.description.js"),oe("core-js/modules/es.array.slice.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.regexp.to-string.js");var ke=oe("debug")("ali-oss"),ve=oe("xml2js"),xe=oe("agentkeepalive"),fe=oe("merge-descriptors"),z=oe("platform"),ee=oe("utility"),ae=oe("urllib"),re=oe("./version"),le=oe("bowser"),ue=oe("../common/signUtils"),pe=oe("../common/client/initOptions"),Ce=oe("../common/utils/createRequest"),Pe=Ce.createRequest,Ie=oe("../common/utils/encoder"),Oe=Ie.encoder,Ae=oe("../common/client/getReqUrl"),je=Ae.getReqUrl,Be=oe("../common/utils/setSTSToken"),_e=Be.setSTSToken,qe=oe("../common/utils/retry"),ze=qe.retry,Ye=oe("../common/utils/isFunction"),et=Ye.isFunction,lt=new xe;function dt(){var yt=z.name,pt=z.version;yt&&yt.toLowerCase&&yt.toLowerCase()==="ie"&&pt.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function vt(){return location&&location.protocol==="https:"}function Je(yt,pt){if(dt(),!(this instanceof Je))return new Je(yt,pt);yt&&yt.inited?this.options=yt:this.options=Je.initOptions(yt),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=ae,this.agent=this.options.agent||lt),this.ctx=pt,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}Ue.exports=Je,Je.initOptions=function(pt){pt.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var gt=Object.assign({secure:vt(),useFetch:!1},pt);return pe(gt)};var ot=Je.prototype;ot.debug=ke,fe(ot,oe("./object")),fe(ot,oe("./bucket")),fe(ot,oe("../common/bucket/getBucketWebsite")),fe(ot,oe("../common/bucket/putBucketWebsite")),fe(ot,oe("../common/bucket/deleteBucketWebsite")),fe(ot,oe("../common/bucket/getBucketLifecycle")),fe(ot,oe("../common/bucket/putBucketLifecycle")),fe(ot,oe("../common/bucket/deleteBucketLifecycle")),fe(ot,oe("../common/bucket/putBucketVersioning")),fe(ot,oe("../common/bucket/getBucketVersioning")),fe(ot,oe("../common/bucket/getBucketInventory")),fe(ot,oe("../common/bucket/deleteBucketInventory")),fe(ot,oe("../common/bucket/listBucketInventory")),fe(ot,oe("../common/bucket/putBucketInventory")),fe(ot,oe("../common/bucket/abortBucketWorm")),fe(ot,oe("../common/bucket/completeBucketWorm")),fe(ot,oe("../common/bucket/extendBucketWorm")),fe(ot,oe("../common/bucket/getBucketWorm")),fe(ot,oe("../common/bucket/initiateBucketWorm")),fe(ot,oe("./managed-upload")),fe(ot,oe("../common/multipart-copy")),fe(ot,oe("../common/multipart")),fe(ot,oe("../common/parallel")),ot.signature=function(pt){return this.debug("authorization stringToSign: %s",pt,"info"),ue.computeSignature(this.options.accessKeySecret,pt,this.options.headerEncoding)},ot._getReqUrl=je,ot.authorization=function(pt,gt,mt,Mt){var Ct=ue.buildCanonicalString(pt.toUpperCase(),gt,{headers:Mt,parameters:mt});return ue.authorization(this.options.accessKeyId,this.options.accessKeySecret,Ct,this.options.headerEncoding)},ot.request=function(){var yt=(0,Se.default)(Le.default.mark(function pt(gt){var mt=this;return Le.default.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:if(!this.options.retryMax){Ct.next=6;break}return Ct.next=3,ze(ft.bind(this),this.options.retryMax,{errorHandler:function(St){var bt=function(nt){if(gt.stream)return!1;var we=[-1,-2].includes(nt.status),Te=mt.options.requestErrorRetryHandle||function(){return!0};return we&&Te(nt)};return!!bt(St)}})(gt);case 3:return Ct.abrupt("return",Ct.sent);case 6:return Ct.abrupt("return",ft.call(this,gt));case 7:case"end":return Ct.stop()}},pt,this)}));return function(pt){return yt.apply(this,arguments)}}();function ft(yt){return xt.apply(this,arguments)}function xt(){return xt=(0,Se.default)(Le.default.mark(function yt(pt){var gt,mt,Mt,Ct,zt,St;return Le.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(!(this.options.stsToken&&et(this.options.refreshSTSToken))){at.next=3;break}return at.next=3,_e.call(this);case 3:return gt=Pe.call(this,pt),this.options.useFetch||(gt.params.mode="disable-fetch"),Ct=!!pt.stream,at.prev=6,at.next=9,this.urllib.request(gt.url,gt.params);case 9:mt=at.sent,this.debug("response %s %s, got %s, headers: %j",pt.method,gt.url,mt.status,mt.headers,"info"),at.next=16;break;case 13:at.prev=13,at.t0=at.catch(6),Mt=at.t0;case 16:if(!(mt&&pt.successStatuses&&pt.successStatuses.indexOf(mt.status)===-1)){at.next=28;break}return at.next=19,this.requestError(mt);case 19:if(zt=at.sent,!(zt.code==="RequestTimeTooSkewed"&&!Ct)){at.next=25;break}return this.options.amendTimeSkewed=+new Date(zt.serverTime)-new Date,at.next=24,this.request(pt);case 24:return at.abrupt("return",at.sent);case 25:zt.params=pt,at.next=32;break;case 28:if(!Mt){at.next=32;break}return at.next=31,this.requestError(Mt);case 31:zt=at.sent;case 32:if(!zt){at.next=34;break}throw zt;case 34:if(!pt.xmlResponse){at.next=39;break}return at.next=37,this.parseXML(mt.data);case 37:St=at.sent,mt.data=St;case 39:return at.abrupt("return",mt);case 40:case"end":return at.stop()}},yt,this,[[6,13]])})),xt.apply(this,arguments)}ot._getResource=function(pt){var gt="/";return pt.bucket&&(gt+="".concat(pt.bucket,"/")),pt.object&&(gt+=Oe(pt.object,this.options.headerEncoding)),gt},ot._escape=function(pt){return ee.encodeURIComponent(pt).replace(/%2F/g,"/")},ot._getUserAgent=function(){var pt=ce&&ce.browser?"js":"nodejs",gt="aliyun-sdk-".concat(pt,"/").concat(re.version),mt=z.description;return!mt&&ce&&(mt="Node.js ".concat(ce.version.slice(1)," on ").concat(ce.platform," ").concat(ce.arch)),this._checkUserAgent("".concat(gt," ").concat(mt))},ot._checkUserAgent=function(pt){var gt=pt.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return gt},ot.checkBrowserAndVersion=function(pt,gt){return le.name===pt&&le.version.split(".")[0]===gt},ot.parseXML=function(pt){return new Promise(function(gt,mt){me.isBuffer(pt)&&(pt=pt.toString()),ve.parseString(pt,{explicitRoot:!1,explicitArray:!1},function(Mt,Ct){Mt?mt(Mt):gt(Ct)})})},ot.requestError=function(){var yt=(0,Se.default)(Le.default.mark(function gt(mt){var Mt,Ct,zt,St;return Le.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(Mt=null,!(!mt.data||!mt.data.length)){at.next=5;break}mt.status===-1||mt.status===-2?(Mt=new Error(mt.message),Mt.name=mt.name,Mt.status=mt.status,Mt.code=mt.name):(mt.status===404?(Mt=new Error("Object not exists"),Mt.name="NoSuchKeyError",Mt.status=404,Mt.code="NoSuchKey"):mt.status===412?(Mt=new Error("Pre condition failed"),Mt.name="PreconditionFailedError",Mt.status=412,Mt.code="PreconditionFailed"):(Mt=new Error("Unknow error, status: ".concat(mt.status)),Mt.name="UnknownError",Mt.status=mt.status),Mt.requestId=mt.headers["x-oss-request-id"],Mt.host=""),at.next=32;break;case 5:return Ct=String(mt.data),this.debug("request response error data: %s",Ct,"error"),at.prev=7,at.next=10,this.parseXML(Ct);case 10:if(at.t0=at.sent,at.t0){at.next=13;break}at.t0={};case 13:zt=at.t0,at.next=23;break;case 16:return at.prev=16,at.t1=at.catch(7),this.debug(Ct,"error"),at.t1.message+=`
|
|
|
raw xml: `.concat(Ct),at.t1.status=mt.status,at.t1.requestId=mt.headers["x-oss-request-id"],at.abrupt("return",at.t1);case 23:St=zt.Message||"unknow request error, status: ".concat(mt.status),zt.Condition&&(St+=" (condition: ".concat(zt.Condition,")")),Mt=new Error(St),Mt.name=zt.Code?"".concat(zt.Code,"Error"):"UnknownError",Mt.status=mt.status,Mt.code=zt.Code,Mt.requestId=zt.RequestId,Mt.hostId=zt.HostId,Mt.serverTime=zt.ServerTime;case 32:return this.debug("generate error %j",Mt,"error"),at.abrupt("return",Mt);case 34:case"end":return at.stop()}},gt,this,[[7,16]])}));function pt(gt){return yt.apply(this,arguments)}return pt}()}).call(this)}).call(this,{isBuffer:oe("../../node_modules/is-buffer/index.js")},oe("_process"))},{"../../node_modules/is-buffer/index.js":366,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":49,"../common/signUtils":50,"../common/utils/createRequest":56,"../common/utils/encoder":59,"../common/utils/isFunction":68,"../common/utils/retry":74,"../common/utils/setSTSToken":76,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,agentkeepalive:81,bowser:88,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.split.js":307,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.js":313,debug:465,"merge-descriptors":372,platform:379,urllib:475,utility:474,xml2js:426}],4:[function(oe,Ue,Fe){(function(me){(function(){"use strict";var ce=oe("@babel/runtime/helpers/interopRequireDefault"),be=ce(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.array.from.js"),oe("core-js/modules/es.string.iterator.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.array.filter.js"),oe("core-js/modules/es.array.find.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.regexp.to-string.js"),oe("core-js/modules/es.array.slice.js"),oe("core-js/modules/es.array.iterator.js"),oe("core-js/modules/es.array-buffer.slice.js"),oe("core-js/modules/es.typed-array.uint8-array.js"),oe("core-js/modules/es.typed-array.copy-within.js"),oe("core-js/modules/es.typed-array.every.js"),oe("core-js/modules/es.typed-array.fill.js"),oe("core-js/modules/es.typed-array.filter.js"),oe("core-js/modules/es.typed-array.find.js"),oe("core-js/modules/es.typed-array.find-index.js"),oe("core-js/modules/es.typed-array.for-each.js"),oe("core-js/modules/es.typed-array.includes.js"),oe("core-js/modules/es.typed-array.index-of.js"),oe("core-js/modules/es.typed-array.iterator.js"),oe("core-js/modules/es.typed-array.join.js"),oe("core-js/modules/es.typed-array.last-index-of.js"),oe("core-js/modules/es.typed-array.map.js"),oe("core-js/modules/es.typed-array.reduce.js"),oe("core-js/modules/es.typed-array.reduce-right.js"),oe("core-js/modules/es.typed-array.reverse.js"),oe("core-js/modules/es.typed-array.set.js"),oe("core-js/modules/es.typed-array.slice.js"),oe("core-js/modules/es.typed-array.some.js"),oe("core-js/modules/es.typed-array.sort.js"),oe("core-js/modules/es.typed-array.subarray.js"),oe("core-js/modules/es.typed-array.to-locale-string.js"),oe("core-js/modules/es.typed-array.to-string.js");var Le=ce(oe("@babel/runtime/helpers/asyncToGenerator")),Se=oe("util"),ke=oe("path"),ve=oe("mime"),xe=oe("copy-to"),fe=oe("../common/utils/isBlob"),z=fe.isBlob,ee=oe("../common/utils/isFile"),ae=ee.isFile,re=oe("../common/utils/isBuffer"),le=re.isBuffer,ue=Fe;ue.multipartUpload=function(){var Oe=(0,Le.default)(be.default.mark(function je(Be,_e){var qe,ze,Ye,et,lt,dt,vt,Je,ot,ft=arguments;return be.default.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:if(qe=ft.length>2&&ft[2]!==void 0?ft[2]:{},this.resetCancelFlag(),qe.disabledMD5=qe.disabledMD5===void 0?!0:!!qe.disabledMD5,!(qe.checkpoint&&qe.checkpoint.uploadId)){yt.next=8;break}return _e&&ae(_e)&&(qe.checkpoint.file=_e),yt.next=7,this._resumeMultipart(qe.checkpoint,qe);case 7:return yt.abrupt("return",yt.sent);case 8:return ze=102400,qe.mime||(ae(_e)?qe.mime=ve.getType(ke.extname(_e.name)):z(_e)?qe.mime=_e.type:le(_e)?qe.mime="":qe.mime=ve.getType(ke.extname(_e))),qe.headers=qe.headers||{},this._convertMetaToHeaders(qe.meta,qe.headers),yt.next=14,this._getFileSize(_e);case 14:if(Ye=yt.sent,!(Ye<ze)){yt.next=26;break}return qe.contentLength=Ye,yt.next=19,this.put(Be,_e,qe);case 19:if(et=yt.sent,!(qe&&qe.progress)){yt.next=23;break}return yt.next=23,qe.progress(1);case 23:return lt={res:et.res,bucket:this.options.bucket,name:Be,etag:et.res.headers.etag},(qe.headers&&qe.headers["x-oss-callback"]||qe.callback)&&(lt.data=et.data),yt.abrupt("return",lt);case 26:if(!(qe.partSize&&parseInt(qe.partSize,10)!==qe.partSize)){yt.next=28;break}throw new Error("partSize must be int number");case 28:if(!(qe.partSize&&qe.partSize<ze)){yt.next=30;break}throw new Error("partSize must not be smaller than ".concat(ze));case 30:return yt.next=32,this.initMultipartUpload(Be,qe);case 32:if(dt=yt.sent,vt=dt.uploadId,Je=this._getPartSize(Ye,qe.partSize),ot={file:_e,name:Be,fileSize:Ye,partSize:Je,uploadId:vt,doneParts:[]},!(qe&&qe.progress)){yt.next=39;break}return yt.next=39,qe.progress(0,ot,dt.res);case 39:return yt.next=41,this._resumeMultipart(ot,qe);case 41:return yt.abrupt("return",yt.sent);case 42:case"end":return yt.stop()}},je,this)}));function Ae(je,Be){return Oe.apply(this,arguments)}return Ae}(),ue._resumeMultipart=function(){var Oe=(0,Le.default)(be.default.mark(function je(Be,_e){var qe,ze,Ye,et,lt,dt,vt,Je,ot,ft,xt,yt,pt,gt,mt,Mt,Ct,zt,St;return be.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(qe=this,!this.isCancel()){at.next=3;break}throw this._makeCancelEvent();case 3:return ze=Be.file,Ye=Be.fileSize,et=Be.partSize,lt=Be.uploadId,dt=Be.doneParts,vt=Be.name,Je=[],dt.length>0&&xe(dt).to(Je),ot=this._divideParts(Ye,et),ft=ot.length,xt=!1,yt=function(we,Te){return new Promise(function(){var Ve=(0,Le.default)(be.default.mark(function Ze(Ee,Ge){var He,We,Xe,ct,Et;return be.default.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:if(It.prev=0,we.isCancel()){It.next=29;break}return He=ot[Te-1],It.next=5,we._createBuffer(ze,He.start,He.end);case 5:return We=It.sent,Xe={content:We,size:He.end-He.start},It.prev=7,It.next=10,we._uploadPart(vt,lt,Te,Xe,_e);case 10:ct=It.sent,It.next=18;break;case 13:if(It.prev=13,It.t0=It.catch(7),It.t0.status!==404){It.next=17;break}throw we._makeAbortEvent();case 17:throw It.t0;case 18:if(!(!we.isCancel()&&!xt)){It.next=26;break}if(Be.doneParts.push({number:Te,etag:ct.res.headers.etag}),!_e.progress){It.next=23;break}return It.next=23,_e.progress(dt.length/(ft+1),Be,ct.res);case 23:Ee({number:Te,etag:ct.res.headers.etag}),It.next=27;break;case 26:Ee();case 27:It.next=30;break;case 29:Ee();case 30:It.next=41;break;case 32:It.prev=32,It.t1=It.catch(0),Et=new Error,Et.name=It.t1.name,Et.message=It.t1.message,Et.stack=It.t1.stack,Et.partNum=Te,xe(It.t1).to(Et),Ge(Et);case 41:case"end":return It.stop()}},Ze,null,[[0,32],[7,13]])}));return function(Ze,Ee){return Ve.apply(this,arguments)}}())},pt=Array.from(new Array(ft),function(nt,we){return we+1}),gt=Je.map(function(nt){return nt.number}),mt=pt.filter(function(nt){return gt.indexOf(nt)<0}),Mt=5,Ct=_e.parallel||Mt,at.next=17,this._parallel(mt,Ct,function(nt){return new Promise(function(we,Te){yt(qe,nt).then(function(Ve){Ve&&Je.push(Ve),we()}).catch(function(Ve){Te(Ve)})})});case 17:if(zt=at.sent,xt=!0,St=zt.find(function(nt){return nt.name==="abort"}),!St){at.next=22;break}throw St;case 22:if(!this.isCancel()){at.next=25;break}throw yt=null,this._makeCancelEvent();case 25:if(!(zt&&zt.length>0)){at.next=28;break}throw zt[0].message="Failed to upload some parts with error: ".concat(zt[0].toString()," part_num: ").concat(zt[0].partNum),zt[0];case 28:return at.next=30,this.completeMultipartUpload(vt,lt,Je,_e);case 30:return at.abrupt("return",at.sent);case 31:case"end":return at.stop()}},je,this)}));function Ae(je,Be){return Oe.apply(this,arguments)}return Ae}(),ue._getFileSize=function(){var Oe=(0,Le.default)(be.default.mark(function je(Be){return be.default.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:if(!le(Be)){qe.next=4;break}return qe.abrupt("return",Be.length);case 4:if(!(z(Be)||ae(Be))){qe.next=6;break}return qe.abrupt("return",Be.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return qe.stop()}},je)}));function Ae(je){return Oe.apply(this,arguments)}return Ae}();var pe=oe("stream"),Ce=pe.Readable;function Pe(Oe,Ae){if(!(this instanceof Pe))return new Pe(Oe,Ae);Ce.call(this,Ae),this.file=Oe,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}Se.inherits(Pe,Ce),Pe.prototype.readFileAndPush=function(Ae){if(this.fileBuffer)for(var je=!0;je&&this.fileBuffer&&this.start<this.fileBuffer.length;){var Be=this.start,_e=Be+Ae;_e=_e>this.fileBuffer.length?this.fileBuffer.length:_e,this.start=_e,je=this.push(this.fileBuffer.slice(Be,_e))}},Pe.prototype._read=function(Ae){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var je=16*1024;Ae=Ae||je;var Be=this;this.reader.onload=function(qe){Be.fileBuffer=me.from(new Uint8Array(qe.target.result)),Be.file=null,Be.readFileAndPush(Ae)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(Ae)};function Ie(Oe){return Oe.arrayBuffer?Oe.arrayBuffer():new Promise(function(Ae,je){var Be=new FileReader;Be.onload=function(_e){Ae(_e.target.result)},Be.onerror=function(_e){je(_e)},Be.readAsArrayBuffer(Oe)})}ue._createBuffer=function(){var Oe=(0,Le.default)(be.default.mark(function je(Be,_e,qe){var ze,Ye;return be.default.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:if(!(z(Be)||ae(Be))){lt.next=8;break}return ze=Be.slice(_e,qe),lt.next=4,Ie(ze);case 4:return Ye=lt.sent,lt.abrupt("return",me.from(Ye));case 8:if(!le(Be)){lt.next=12;break}return lt.abrupt("return",Be.subarray(_e,qe));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return lt.stop()}},je)}));function Ae(je,Be,_e){return Oe.apply(this,arguments)}return Ae}(),ue._getPartSize=function(Ae,je){var Be=1e4,_e=1*1024*1024;je||(je=_e);var qe=Math.ceil(Ae/Be);return je<qe&&(je=qe,console.warn("partSize has been set to ".concat(je,", because the partSize you provided causes partNumber to be greater than 10,000"))),je},ue._divideParts=function(Ae,je){for(var Be=Math.ceil(Ae/je),_e=[],qe=0;qe<Be;qe++){var ze=je*qe,Ye=Math.min(ze+je,Ae);_e.push({start:ze,end:Ye})}return _e}}).call(this)}).call(this,oe("buffer").Buffer)},{"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,buffer:90,"copy-to":94,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,mime:374,path:378,stream:398,util:419}],5:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault");oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.number.constructor.js"),oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.promise.js");var ce=me(oe("@babel/runtime/regenerator")),be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("fs"),Se=oe("copy-to"),ke=oe("path"),ve=oe("mime"),xe=oe("../common/callback"),fe=oe("merge-descriptors"),z=oe("../common/utils/isBlob"),ee=z.isBlob,ae=oe("../common/utils/isFile"),re=ae.isFile,le=oe("../common/utils/isBuffer"),ue=le.isBuffer,pe=oe("../common/utils/obj2xml"),Ce=pe.obj2xml,Pe=Fe;Pe.append=function(){var Ie=(0,be.default)(ce.default.mark(function Ae(je,Be,_e){var qe;return ce.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return _e=_e||{},_e.position===void 0&&(_e.position="0"),_e.subres={append:"",position:_e.position},_e.method="POST",Ye.next=6,this.put(je,Be,_e);case 6:return qe=Ye.sent,qe.nextAppendPosition=qe.res.headers["x-oss-next-append-position"],Ye.abrupt("return",qe);case 9:case"end":return Ye.stop()}},Ae,this)}));function Oe(Ae,je,Be){return Ie.apply(this,arguments)}return Oe}(),Pe.put=function(){var Ie=(0,be.default)(ce.default.mark(function Ae(je,Be,_e){var qe,ze,Ye,et,lt;return ce.default.wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:if(_e=_e||{},_e.disabledMD5=_e.disabledMD5===void 0?!0:!!_e.disabledMD5,_e.headers=_e.headers||{},je=this._objectName(je),!ue(Be)){vt.next=8;break}qe=Be,vt.next=19;break;case 8:if(!(ee(Be)||re(Be))){vt.next=18;break}return _e.mime||(re(Be)?_e.mime=ve.getType(ke.extname(Be.name)):_e.mime=Be.type),vt.next=12,this._createBuffer(Be,0,Be.size);case 12:return qe=vt.sent,vt.next=15,this._getFileSize(Be);case 15:_e.contentLength=vt.sent,vt.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(_e.meta,_e.headers),ze=_e.method||"PUT",Ye=this._objectRequestParams(ze,je,_e),xe.encodeCallback(Ye,_e),Ye.mime=_e.mime,Ye.disabledMD5=_e.disabledMD5,Ye.content=qe,Ye.successStatuses=[200],vt.next=29,this.request(Ye);case 29:return et=vt.sent,lt={name:je,url:this._objectUrl(je),res:et.res},Ye.headers&&Ye.headers["x-oss-callback"]&&(lt.data=JSON.parse(et.data.toString())),vt.abrupt("return",lt);case 33:case"end":return vt.stop()}},Ae,this)}));function Oe(Ae,je,Be){return Ie.apply(this,arguments)}return Oe}(),Pe.putStream=function(){var Ie=(0,be.default)(ce.default.mark(function Ae(je,Be,_e){var qe,ze,Ye,et;return ce.default.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return _e=_e||{},_e.headers=_e.headers||{},je=this._objectName(je),_e.contentLength?_e.headers["Content-Length"]=_e.contentLength:_e.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(_e.meta,_e.headers),qe=_e.method||"PUT",ze=this._objectRequestParams(qe,je,_e),xe.encodeCallback(ze,_e),ze.mime=_e.mime,ze.stream=Be,ze.successStatuses=[200],dt.next=13,this.request(ze);case 13:return Ye=dt.sent,et={name:je,url:this._objectUrl(je),res:Ye.res},ze.headers&&ze.headers["x-oss-callback"]&&(et.data=JSON.parse(Ye.data.toString())),dt.abrupt("return",et);case 17:case"end":return dt.stop()}},Ae,this)}));function Oe(Ae,je,Be){return Ie.apply(this,arguments)}return Oe}(),fe(Pe,oe("../common/object/copyObject")),fe(Pe,oe("../common/object/getObjectTagging")),fe(Pe,oe("../common/object/putObjectTagging")),fe(Pe,oe("../common/object/deleteObjectTagging")),fe(Pe,oe("../common/image")),fe(Pe,oe("../common/object/getBucketVersions")),fe(Pe,oe("../common/object/getACL")),fe(Pe,oe("../common/object/putACL")),fe(Pe,oe("../common/object/head")),fe(Pe,oe("../common/object/delete")),fe(Pe,oe("../common/object/get")),fe(Pe,oe("../common/object/putSymlink")),fe(Pe,oe("../common/object/getSymlink")),fe(Pe,oe("../common/object/deleteMulti")),fe(Pe,oe("../common/object/getObjectMeta")),fe(Pe,oe("../common/object/getObjectUrl")),fe(Pe,oe("../common/object/generateObjectUrl")),fe(Pe,oe("../common/object/signatureUrl")),fe(Pe,oe("../common/object/asyncSignatureUrl")),Pe.putMeta=function(){var Ie=(0,be.default)(ce.default.mark(function Ae(je,Be,_e){var qe;return ce.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return Ye.next=2,this.copy(je,je,{meta:Be||{},timeout:_e&&_e.timeout,ctx:_e&&_e.ctx});case 2:return qe=Ye.sent,Ye.abrupt("return",qe);case 4:case"end":return Ye.stop()}},Ae,this)}));function Oe(Ae,je,Be){return Ie.apply(this,arguments)}return Oe}(),Pe.list=function(){var Ie=(0,be.default)(ce.default.mark(function Ae(je,Be){var _e,qe,ze,Ye,et;return ce.default.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return _e=this._objectRequestParams("GET","",Be),_e.query=je,_e.xmlResponse=!0,_e.successStatuses=[200],dt.next=6,this.request(_e);case 6:return qe=dt.sent,ze=qe.data.Contents||[],Ye=this,ze&&(Array.isArray(ze)||(ze=[ze]),ze=ze.map(function(vt){return{name:vt.Key,url:Ye._objectUrl(vt.Key),lastModified:vt.LastModified,etag:vt.ETag,type:vt.Type,size:Number(vt.Size),storageClass:vt.StorageClass,owner:{id:vt.Owner.ID,displayName:vt.Owner.DisplayName}}})),et=qe.data.CommonPrefixes||null,et&&(Array.isArray(et)||(et=[et]),et=et.map(function(vt){return vt.Prefix})),dt.abrupt("return",{res:qe.res,objects:ze,prefixes:et,nextMarker:qe.data.NextMarker||null,isTruncated:qe.data.IsTruncated==="true"});case 13:case"end":return dt.stop()}},Ae,this)}));function Oe(Ae,je){return Ie.apply(this,arguments)}return Oe}(),Pe.listV2=function(){var Ie=(0,be.default)(ce.default.mark(function Ae(je){var Be,_e,qe,ze,Ye,et,lt,dt=arguments;return ce.default.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Be=dt.length>1&&dt[1]!==void 0?dt[1]:{},_e=je["continuation-token"]||je.continuationToken,_e&&(Be.subres=Object.assign({"continuation-token":_e},Be.subres)),qe=this._objectRequestParams("GET","",Be),qe.query=Object.assign({"list-type":2},je),delete qe.query["continuation-token"],delete qe.query.continuationToken,qe.xmlResponse=!0,qe.successStatuses=[200],Je.next=11,this.request(qe);case 11:return ze=Je.sent,Ye=ze.data.Contents||[],et=this,Ye&&(Array.isArray(Ye)||(Ye=[Ye]),Ye=Ye.map(function(ot){var ft=null;return ot.Owner&&(ft={id:ot.Owner.ID,displayName:ot.Owner.DisplayName}),{name:ot.Key,url:et._objectUrl(ot.Key),lastModified:ot.LastModified,etag:ot.ETag,type:ot.Type,size:Number(ot.Size),storageClass:ot.StorageClass,owner:ft}})),lt=ze.data.CommonPrefixes||null,lt&&(Array.isArray(lt)||(lt=[lt]),lt=lt.map(function(ot){return ot.Prefix})),Je.abrupt("return",{res:ze.res,objects:Ye,prefixes:lt,isTruncated:ze.data.IsTruncated==="true",keyCount:+ze.data.KeyCount,continuationToken:ze.data.ContinuationToken||null,nextContinuationToken:ze.data.NextContinuationToken||null});case 18:case"end":return Je.stop()}},Ae,this)}));function Oe(Ae){return Ie.apply(this,arguments)}return Oe}(),Pe.restore=function(){var Ie=(0,be.default)(ce.default.mark(function Ae(je){var Be,_e,qe,ze,Ye=arguments;return ce.default.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return Be=Ye.length>1&&Ye[1]!==void 0?Ye[1]:{type:"Archive"},Be=Be||{},Be.subres=Object.assign({restore:""},Be.subres),Be.versionId&&(Be.subres.versionId=Be.versionId),_e=this._objectRequestParams("POST",je,Be),Be.type==="ColdArchive"&&(qe={RestoreRequest:{Days:Be.Days?Be.Days:2,JobParameters:{Tier:Be.JobParameters?Be.JobParameters:"Standard"}}},_e.content=Ce(qe,{headers:!0}),_e.mime="xml"),_e.successStatuses=[202],lt.next=9,this.request(_e);case 9:return ze=lt.sent,lt.abrupt("return",{res:ze.res});case 11:case"end":return lt.stop()}},Ae,this)}));function Oe(Ae){return Ie.apply(this,arguments)}return Oe}(),Pe._objectUrl=function(Oe){return this._getReqUrl({bucket:this.options.bucket,object:Oe})},Pe._objectRequestParams=function(Oe,Ae,je){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");je=je||{},Ae=this._objectName(Ae);var Be={object:Ae,bucket:this.options.bucket,method:Oe,subres:je&&je.subres,timeout:je&&je.timeout,ctx:je&&je.ctx};return je.headers&&(Be.headers={},Se(je.headers).to(Be.headers)),Be},Pe._objectName=function(Oe){return Oe.replace(/^\/+/,"")},Pe._convertMetaToHeaders=function(Oe,Ae){Oe&&Object.keys(Oe).forEach(function(je){Ae["x-oss-meta-".concat(je)]=Oe[je]})},Pe._deleteFileSafe=function(Oe){var Ae=this;return new Promise(function(je){Le.exists(Oe,function(Be){Be?Le.unlink(Oe,function(_e){_e&&Ae.debug("unlink %j error: %s",Oe,_e,"error"),je()}):je()})})}},{"../common/callback":24,"../common/image":27,"../common/object/asyncSignatureUrl":31,"../common/object/copyObject":32,"../common/object/delete":33,"../common/object/deleteMulti":34,"../common/object/deleteObjectTagging":35,"../common/object/generateObjectUrl":36,"../common/object/get":37,"../common/object/getACL":38,"../common/object/getBucketVersions":39,"../common/object/getObjectMeta":40,"../common/object/getObjectTagging":41,"../common/object/getObjectUrl":42,"../common/object/getSymlink":43,"../common/object/head":44,"../common/object/putACL":45,"../common/object/putObjectTagging":46,"../common/object/putSymlink":47,"../common/object/signatureUrl":48,"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"../common/utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,fs:89,"merge-descriptors":372,mime:374,path:378}],6:[function(oe,Ue,Fe){"use strict";Fe.version="6.18.1"},{}],7:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator")),be=me(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.abortBucketWorm=void 0;var Le=oe("../utils/checkBucketName");function Se(ve,xe){return ke.apply(this,arguments)}function ke(){return ke=(0,be.default)(ce.default.mark(function ve(xe,fe){var z,ee;return ce.default.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return Le.checkBucketName(xe),z=this._bucketRequestParams("DELETE",xe,"worm",fe),re.next=4,this.request(z);case 4:return ee=re.sent,re.abrupt("return",{res:ee.res,status:ee.status});case 6:case"end":return re.stop()}},ve,this)})),ke.apply(this,arguments)}Fe.abortBucketWorm=Se},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator")),be=me(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.completeBucketWorm=void 0;var Le=oe("../utils/checkBucketName");function Se(ve,xe,fe){return ke.apply(this,arguments)}function ke(){return ke=(0,be.default)(ce.default.mark(function ve(xe,fe,z){var ee,ae;return ce.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return Le.checkBucketName(xe),ee=this._bucketRequestParams("POST",xe,{wormId:fe},z),le.next=4,this.request(ee);case 4:return ae=le.sent,le.abrupt("return",{res:ae.res,status:ae.status});case 6:case"end":return le.stop()}},ve,this)})),ke.apply(this,arguments)}Fe.completeBucketWorm=Se},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var be=me(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.deleteBucketInventory=void 0;var Le=oe("../utils/checkBucketName");function Se(ve,xe){return ke.apply(this,arguments)}function ke(){return ke=(0,be.default)(ce.default.mark(function ve(xe,fe){var z,ee,ae,re,le=arguments;return ce.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return z=le.length>2&&le[2]!==void 0?le[2]:{},ee=Object.assign({inventory:"",inventoryId:fe},z.subres),Le.checkBucketName(xe),ae=this._bucketRequestParams("DELETE",xe,ee,z),ae.successStatuses=[204],pe.next=7,this.request(ae);case 7:return re=pe.sent,pe.abrupt("return",{status:re.status,res:re.res});case 9:case"end":return pe.stop()}},ve,this)})),ke.apply(this,arguments)}Fe.deleteBucketInventory=Se},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],10:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator")),be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("../utils/checkBucketName"),Se=Le.checkBucketName,ke=Fe;ke.deleteBucketLifecycle=function(){var ve=(0,be.default)(ce.default.mark(function fe(z,ee){var ae,re;return ce.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return Se(z),ae=this._bucketRequestParams("DELETE",z,"lifecycle",ee),ae.successStatuses=[204],ue.next=5,this.request(ae);case 5:return re=ue.sent,ue.abrupt("return",{res:re.res});case 7:case"end":return ue.stop()}},fe,this)}));function xe(fe,z){return ve.apply(this,arguments)}return xe}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator")),be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("../utils/checkBucketName"),Se=Le.checkBucketName,ke=Fe;ke.deleteBucketWebsite=function(){var ve=(0,be.default)(ce.default.mark(function fe(z,ee){var ae,re;return ce.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return Se(z),ae=this._bucketRequestParams("DELETE",z,"website",ee),ae.successStatuses=[204],ue.next=5,this.request(ae);case 5:return re=ue.sent,ue.abrupt("return",{res:re.res});case 7:case"end":return ue.stop()}},fe,this)}));function xe(fe,z){return ve.apply(this,arguments)}return xe}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator")),be=me(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.extendBucketWorm=void 0;var Le=oe("../utils/checkBucketName"),Se=oe("../utils/obj2xml");function ke(xe,fe,z,ee){return ve.apply(this,arguments)}function ve(){return ve=(0,be.default)(ce.default.mark(function xe(fe,z,ee,ae){var re,le,ue;return ce.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Le.checkBucketName(fe),re=this._bucketRequestParams("POST",fe,{wormExtend:"",wormId:z},ae),le={ExtendWormConfiguration:{RetentionPeriodInDays:ee}},re.mime="xml",re.content=Se.obj2xml(le,{headers:!0}),re.successStatuses=[200],Ce.next=8,this.request(re);case 8:return ue=Ce.sent,Ce.abrupt("return",{res:ue.res,status:ue.status});case 10:case"end":return Ce.stop()}},xe,this)})),ve.apply(this,arguments)}Fe.extendBucketWorm=ke},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var be=me(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.getBucketInventory=void 0;var Le=oe("../utils/checkBucketName"),Se=oe("../utils/formatInventoryConfig");function ke(xe,fe){return ve.apply(this,arguments)}function ve(){return ve=(0,be.default)(ce.default.mark(function xe(fe,z){var ee,ae,re,le,ue=arguments;return ce.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ee=ue.length>2&&ue[2]!==void 0?ue[2]:{},ae=Object.assign({inventory:"",inventoryId:z},ee.subres),Le.checkBucketName(fe),re=this._bucketRequestParams("GET",fe,ae,ee),re.successStatuses=[200],re.xmlResponse=!0,Ce.next=8,this.request(re);case 8:return le=Ce.sent,Ce.abrupt("return",{status:le.status,res:le.res,inventory:Se.formatInventoryConfig(le.data)});case 10:case"end":return Ce.stop()}},xe,this)})),ve.apply(this,arguments)}Fe.getBucketInventory=ke},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],14:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.map.js");var be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("../utils/checkBucketName"),Se=Le.checkBucketName,ke=oe("../utils/isArray"),ve=ke.isArray,xe=oe("../utils/formatObjKey"),fe=xe.formatObjKey,z=Fe;z.getBucketLifecycle=function(){var ee=(0,be.default)(ce.default.mark(function re(le,ue){var pe,Ce,Pe;return ce.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return Se(le),pe=this._bucketRequestParams("GET",le,"lifecycle",ue),pe.successStatuses=[200],pe.xmlResponse=!0,Oe.next=6,this.request(pe);case 6:return Ce=Oe.sent,Pe=Ce.data.Rule||null,Pe&&(ve(Pe)||(Pe=[Pe]),Pe=Pe.map(function(Ae){return Ae.ID&&(Ae.id=Ae.ID,delete Ae.ID),Ae.Tag&&!ve(Ae.Tag)&&(Ae.Tag=[Ae.Tag]),fe(Ae,"firstLowerCase")})),Oe.abrupt("return",{rules:Pe,res:Ce.res});case 10:case"end":return Oe.stop()}},re,this)}));function ae(re,le){return ee.apply(this,arguments)}return ae}()},{"../utils/checkBucketName":51,"../utils/formatObjKey":61,"../utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280}],15:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator")),be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("../utils/checkBucketName"),Se=Le.checkBucketName,ke=Fe;ke.getBucketVersioning=function(){var ve=(0,be.default)(ce.default.mark(function fe(z,ee){var ae,re,le;return ce.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return Se(z),ae=this._bucketRequestParams("GET",z,"versioning",ee),ae.xmlResponse=!0,ae.successStatuses=[200],pe.next=6,this.request(ae);case 6:return re=pe.sent,le=re.data.Status,pe.abrupt("return",{status:re.status,versionStatus:le,res:re.res});case 9:case"end":return pe.stop()}},fe,this)}));function xe(fe,z){return ve.apply(this,arguments)}return xe}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator")),be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("../utils/checkBucketName"),Se=Le.checkBucketName,ke=oe("../utils/isObject"),ve=ke.isObject,xe=Fe;xe.getBucketWebsite=function(){var fe=(0,be.default)(ce.default.mark(function ee(ae,re){var le,ue,pe;return ce.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return Se(ae),le=this._bucketRequestParams("GET",ae,"website",re),le.successStatuses=[200],le.xmlResponse=!0,Pe.next=6,this.request(le);case 6:return ue=Pe.sent,pe=[],ue.data.RoutingRules&&ue.data.RoutingRules.RoutingRule&&(ve(ue.data.RoutingRules.RoutingRule)?pe=[ue.data.RoutingRules.RoutingRule]:pe=ue.data.RoutingRules.RoutingRule),Pe.abrupt("return",{index:ue.data.IndexDocument&&ue.data.IndexDocument.Suffix||"",supportSubDir:ue.data.IndexDocument&&ue.data.IndexDocument.SupportSubDir||"false",type:ue.data.IndexDocument&&ue.data.IndexDocument.Type,routingRules:pe,error:ue.data.ErrorDocument&&ue.data.ErrorDocument.Key||null,res:ue.res});case 10:case"end":return Pe.stop()}},ee,this)}));function z(ee,ae){return fe.apply(this,arguments)}return z}()},{"../utils/checkBucketName":51,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],17:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var be=me(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.getBucketWorm=void 0;var Le=oe("../utils/checkBucketName"),Se=oe("../utils/dataFix");function ke(xe,fe){return ve.apply(this,arguments)}function ve(){return ve=(0,be.default)(ce.default.mark(function xe(fe,z){var ee,ae;return ce.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return Le.checkBucketName(fe),ee=this._bucketRequestParams("GET",fe,"worm",z),ee.successStatuses=[200],ee.xmlResponse=!0,le.next=6,this.request(ee);case 6:return ae=le.sent,Se.dataFix(ae.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),le.abrupt("return",Object.assign(Object.assign({},ae.data),{res:ae.res,status:ae.status}));case 9:case"end":return le.stop()}},xe,this)})),ve.apply(this,arguments)}Fe.getBucketWorm=ke},{"../utils/checkBucketName":51,"../utils/dataFix":57,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],18:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator")),be=me(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.initiateBucketWorm=void 0;var Le=oe("../utils/obj2xml"),Se=oe("../utils/checkBucketName");function ke(xe,fe,z){return ve.apply(this,arguments)}function ve(){return ve=(0,be.default)(ce.default.mark(function xe(fe,z,ee){var ae,re,le;return ce.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return Se.checkBucketName(fe),ae=this._bucketRequestParams("POST",fe,"worm",ee),re={InitiateWormConfiguration:{RetentionPeriodInDays:z}},ae.mime="xml",ae.content=Le.obj2xml(re,{headers:!0}),ae.successStatuses=[200],pe.next=8,this.request(ae);case 8:return le=pe.sent,pe.abrupt("return",{res:le.res,wormId:le.res.headers["x-oss-worm-id"],status:le.status});case 10:case"end":return pe.stop()}},xe,this)})),ve.apply(this,arguments)}Fe.initiateBucketWorm=ke},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var be=me(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.listBucketInventory=void 0;var Le=oe("../utils/checkBucketName"),Se=oe("../utils/formatInventoryConfig");function ke(xe){return ve.apply(this,arguments)}function ve(){return ve=(0,be.default)(ce.default.mark(function xe(fe){var z,ee,ae,re,le,ue,pe,Ce,Pe=arguments;return ce.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return z=Pe.length>1&&Pe[1]!==void 0?Pe[1]:{},ee=z.continuationToken,ae=Object.assign({inventory:""},ee&&{"continuation-token":ee},z.subres),Le.checkBucketName(fe),re=this._bucketRequestParams("GET",fe,ae,z),re.successStatuses=[200],re.xmlResponse=!0,Oe.next=9,this.request(re);case 9:return le=Oe.sent,ue=le.data,pe=le.res,Ce=le.status,Oe.abrupt("return",{isTruncated:ue.IsTruncated==="true",nextContinuationToken:ue.NextContinuationToken,inventoryList:Se.formatInventoryConfig(ue.InventoryConfiguration,!0),status:Ce,res:pe});case 12:case"end":return Oe.stop()}},xe,this)})),ve.apply(this,arguments)}Fe.listBucketInventory=ke},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],20:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.concat.js");var be=me(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.putBucketInventory=void 0;var Le=oe("../utils/checkBucketName"),Se=oe("../utils/obj2xml");function ke(xe,fe){return ve.apply(this,arguments)}function ve(){return ve=(0,be.default)(ce.default.mark(function xe(fe,z){var ee,ae,re,le,ue,pe,Ce,Pe,Ie,Oe,Ae,je=arguments;return ce.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return ee=je.length>2&&je[2]!==void 0?je[2]:{},ae=Object.assign({inventory:"",inventoryId:z.id},ee.subres),Le.checkBucketName(fe),re=z.OSSBucketDestination,le=z.optionalFields,ue=z.includedObjectVersions,pe="acs:oss:::",Ce="acs:ram::".concat(re.accountId,":role/"),Pe={InventoryConfiguration:{Id:z.id,IsEnabled:z.isEnabled,Filter:{Prefix:z.prefix||""},Destination:{OSSBucketDestination:{Format:re.format,AccountId:re.accountId,RoleArn:"".concat(Ce).concat(re.rolename),Bucket:"".concat(pe).concat(re.bucket),Prefix:re.prefix||"",Encryption:re.encryption||""}},Schedule:{Frequency:z.frequency},IncludedObjectVersions:ue,OptionalFields:{Field:(le==null?void 0:le.field)||[]}}},Ie=Se.obj2xml(Pe,{headers:!0,firstUpperCase:!0}),Oe=this._bucketRequestParams("PUT",fe,ae,ee),Oe.successStatuses=[200],Oe.mime="xml",Oe.content=Ie,_e.next=14,this.request(Oe);case 14:return Ae=_e.sent,_e.abrupt("return",{status:Ae.status,res:Ae.res});case 16:case"end":return _e.stop()}},xe,this)})),ve.apply(this,arguments)}Fe.putBucketInventory=ke},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287}],21:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.array.includes.js");var be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("../utils/checkBucketName"),Se=Le.checkBucketName,ke=oe("../utils/isArray"),ve=ke.isArray,xe=oe("../utils/deepCopy"),fe=xe.deepCopy,z=oe("../utils/isObject"),ee=z.isObject,ae=oe("../utils/obj2xml"),re=ae.obj2xml,le=oe("../utils/checkObjectTag"),ue=le.checkObjectTag,pe=oe("../utils/getStrBytesCount"),Ce=pe.getStrBytesCount,Pe=Fe;Pe.putBucketLifecycle=function(){var Be=(0,be.default)(ce.default.mark(function qe(ze,Ye,et){var lt,dt,vt,Je,ot;return ce.default.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:if(Se(ze),ve(Ye)){xt.next=3;break}throw new Error("rules must be Array");case 3:return lt=this._bucketRequestParams("PUT",ze,"lifecycle",et),dt=[],vt={LifecycleConfiguration:{Rule:dt}},Ye.forEach(function(yt){Ie(yt),je(yt),yt.id&&(yt.ID=yt.id,delete yt.id),dt.push(yt)}),Je=re(vt,{headers:!0,firstUpperCase:!0}),lt.content=Je,lt.mime="xml",lt.successStatuses=[200],xt.next=13,this.request(lt);case 13:return ot=xt.sent,xt.abrupt("return",{res:ot.res});case 15:case"end":return xt.stop()}},qe,this)}));function _e(qe,ze,Ye){return Be.apply(this,arguments)}return _e}();function Ie(Be){Be.days&&(Be.expiration={days:Be.days}),Be.date&&(Be.expiration={createdBeforeDate:Be.date})}function Oe(Be,_e){var qe=Be.days,ze=Be.createdBeforeDate;if(!qe&&!ze)throw new Error("".concat(_e," must includes days or createdBeforeDate"));if(qe&&!/^[1-9][0-9]*$/.test(qe))throw new Error("days must be a positive integer");if(ze&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(ze))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function Ae(Be){if(!ve(Be)&&!ee(Be))throw new Error("tag must be Object or Array");Be=ee(Be)?[Be]:Be;var _e={},qe=fe(Be);qe.forEach(function(ze){_e[ze.key]=ze.value}),ue(_e)}function je(Be){if(Be.id&&Ce(Be.id)>255)throw new Error("ID is composed of 255 bytes at most");if(Be.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(Be.status))throw new Error("Status must be Enabled or Disabled");if(Be.transition){if(!["IA","Archive"].includes(Be.transition.storageClass))throw new Error("StorageClass must be IA or Archive");Oe(Be.transition,"Transition")}if(Be.expiration){if(!Be.expiration.expiredObjectDeleteMarker)Oe(Be.expiration,"Expiration");else if(Be.expiration.days||Be.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(Be.abortMultipartUpload&&Oe(Be.abortMultipartUpload,"AbortMultipartUpload"),!Be.expiration&&!Be.abortMultipartUpload&&!Be.transition&&!Be.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(Be.tag){if(Be.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");Ae(Be.tag)}}},{"../utils/checkBucketName":51,"../utils/checkObjectTag":54,"../utils/deepCopy":58,"../utils/getStrBytesCount":62,"../utils/isArray":63,"../utils/isObject":70,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],22:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.includes.js");var be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("../utils/checkBucketName"),Se=Le.checkBucketName,ke=oe("../utils/obj2xml"),ve=ke.obj2xml,xe=Fe;xe.putBucketVersioning=function(){var fe=(0,be.default)(ce.default.mark(function ee(ae,re){var le,ue,pe,Ce,Pe=arguments;return ce.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(le=Pe.length>2&&Pe[2]!==void 0?Pe[2]:{},Se(ae),["Enabled","Suspended"].includes(re)){Oe.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return ue=this._bucketRequestParams("PUT",ae,"versioning",le),pe={VersioningConfiguration:{Status:re}},ue.mime="xml",ue.content=ve(pe,{headers:!0}),Oe.next=10,this.request(ue);case 10:return Ce=Oe.sent,Oe.abrupt("return",{res:Ce.res,status:Ce.status});case 12:case"end":return Oe.stop()}},ee,this)}));function z(ee,ae){return fe.apply(this,arguments)}return z}()},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277}],23:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator")),be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("../utils/checkBucketName"),Se=Le.checkBucketName,ke=oe("../utils/obj2xml"),ve=ke.obj2xml,xe=oe("../utils/isArray"),fe=xe.isArray,z=Fe;z.putBucketWebsite=function(){var ee=(0,be.default)(ce.default.mark(function re(le){var ue,pe,Ce,Pe,Ie,Oe,Ae,je=arguments;return ce.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(ue=je.length>1&&je[1]!==void 0?je[1]:{},pe=je.length>2?je[2]:void 0,Se(le),Ce=this._bucketRequestParams("PUT",le,"website",pe),Pe={Suffix:ue.index||"index.html"},Ie={IndexDocument:Pe},Oe={WebsiteConfiguration:Ie},ue.supportSubDir&&(Pe.SupportSubDir=ue.supportSubDir),ue.type&&(Pe.Type=ue.type),ue.error&&(Ie.ErrorDocument={Key:ue.error}),ue.routingRules===void 0){_e.next=14;break}if(fe(ue.routingRules)){_e.next=13;break}throw new Error("RoutingRules must be Array");case 13:Ie.RoutingRules={RoutingRule:ue.routingRules};case 14:return Oe=ve(Oe),Ce.content=Oe,Ce.mime="xml",Ce.successStatuses=[200],_e.next=20,this.request(Ce);case 20:return Ae=_e.sent,_e.abrupt("return",{res:Ae.res});case 22:case"end":return _e.stop()}},re,this)}));function ae(re){return ee.apply(this,arguments)}return ae}()},{"../utils/checkBucketName":51,"../utils/isArray":63,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],24:[function(oe,Ue,Fe){(function(me){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),Fe.encodeCallback=function(be,Le){if(be.headers=be.headers||{},!Object.prototype.hasOwnProperty.call(be.headers,"x-oss-callback")&&Le.callback){var Se={callbackUrl:encodeURI(Le.callback.url),callbackBody:Le.callback.body};Le.callback.host&&(Se.callbackHost=Le.callback.host),Le.callback.contentType&&(Se.callbackBodyType=Le.callback.contentType);var ke=me.from(JSON.stringify(Se)).toString("base64");if(be.headers["x-oss-callback"]=ke,Le.callback.customValue){var ve={};Object.keys(Le.callback.customValue).forEach(function(xe){ve["x:".concat(xe)]=Le.callback.customValue[xe].toString()}),be.headers["x-oss-callback-var"]=me.from(JSON.stringify(ve)).toString("base64")}}}}).call(this)}).call(this,oe("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/web.dom-collections.for-each.js":339}],25:[function(oe,Ue,Fe){"use strict";oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js");var me=function(fe){return fe&&fe.__esModule?fe:{default:fe}};Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.getReqUrl=void 0;var ce=me(oe("copy-to")),be=me(oe("url")),Le=me(oe("merge-descriptors")),Se=me(oe("is-type-of")),ke=oe("../utils/isIP"),ve=oe("../utils/checkConfigValid");function xe(fe){var z={},ee=this.options.cname;ve.checkConfigValid(this.options.endpoint,"endpoint"),ce.default(this.options.endpoint,!1).to(z),fe.bucket&&!ee&&!ke.isIP(z.hostname)&&!this.options.sldEnable&&(z.host="".concat(fe.bucket,".").concat(z.host));var ae="/";fe.bucket&&this.options.sldEnable&&(ae+="".concat(fe.bucket,"/")),fe.object&&(ae+=this._escape(fe.object).replace(/\+/g,"%2B")),z.pathname=ae;var re={};if(fe.query&&Le.default(re,fe.query),fe.subres){var le={};Se.default.string(fe.subres)?le[fe.subres]="":Se.default.array(fe.subres)?fe.subres.forEach(function(ue){le[ue]=""}):le=fe.subres,Le.default(re,le)}return z.query=re,be.default.format(z)}Fe.getReqUrl=xe},{"../utils/checkConfigValid":52,"../utils/isIP":69,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466,"merge-descriptors":372,url:472}],26:[function(oe,Ue,Fe){"use strict";oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.string.trim.js");var me=oe("humanize-ms"),ce=oe("url"),be=oe("../utils/checkBucketName"),Le=be.checkBucketName,Se=oe("../utils/setRegion"),ke=Se.setRegion,ve=oe("../utils/checkConfigValid"),xe=ve.checkConfigValid;function fe(z,ee){xe(z,"endpoint");var ae=ce.parse(z);if(ae.protocol||(ae=ce.parse("http".concat(ee?"s":"","://").concat(z))),ae.protocol!=="http:"&&ae.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return ae}Ue.exports=function(z){if(!z||!z.accessKeyId||!z.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");z.stsToken&&!z.refreshSTSToken&&!z.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),z.bucket&&Le(z.bucket);var ee=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:6e4*5,retryMax:0},z);if(ee.accessKeyId=ee.accessKeyId.trim(),ee.accessKeySecret=ee.accessKeySecret.trim(),ee.timeout&&(ee.timeout=me(ee.timeout)),ee.endpoint)ee.endpoint=fe(ee.endpoint,ee.secure);else if(ee.region)ee.endpoint=ke(ee.region,ee.internal,ee.secure);else throw new Error("require options.endpoint or options.region");return ee.inited=!0,ee}},{"../utils/checkBucketName":51,"../utils/checkConfigValid":52,"../utils/setRegion":75,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.trim.js":308,"humanize-ms":356,url:472}],27:[function(oe,Ue,Fe){"use strict";var me=oe("merge-descriptors"),ce=Fe;me(ce,oe("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.concat.js");var be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("../utils/checkBucketName"),Se=Le.checkBucketName,ke=oe("querystring"),ve=oe("js-base64"),xe=ve.Base64.encode,fe=Fe;fe.processObjectSave=function(){var ee=(0,be.default)(ce.default.mark(function re(le,ue,pe,Ce){var Pe,Ie,Oe,Ae;return ce.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return z(le,"sourceObject"),z(ue,"targetObject"),z(pe,"process"),ue=this._objectName(ue),Ce&&Se(Ce),Pe=this._objectRequestParams("POST",le,{subres:"x-oss-process"}),Ie=Ce?",b_".concat(xe(Ce)):"",ue=xe(ue),Oe={"x-oss-process":"".concat(pe,"|sys/saveas,o_").concat(ue).concat(Ie)},Pe.content=ke.stringify(Oe),Be.next=12,this.request(Pe);case 12:return Ae=Be.sent,Be.abrupt("return",{res:Ae.res,status:Ae.res.status});case 14:case"end":return Be.stop()}},re,this)}));function ae(re,le,ue,pe){return ee.apply(this,arguments)}return ae}();function z(ee,ae){if(!ee)throw new Error("".concat(ae," is required"));if(typeof ee!="string")throw new Error("".concat(ae," must be String"))}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"js-base64":371,querystring:385}],29:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.array.from.js"),oe("core-js/modules/es.string.iterator.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.array.filter.js"),oe("core-js/modules/es.array.find.js"),oe("core-js/modules/es.regexp.to-string.js");var be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("debug")("ali-oss:multipart-copy"),Se=oe("copy-to"),ke=Fe;ke.uploadPartCopy=function(){var ve=(0,be.default)(ce.default.mark(function fe(z,ee,ae,re,le){var ue,pe,Ce,Pe,Ie,Oe=arguments;return ce.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return ue=Oe.length>5&&Oe[5]!==void 0?Oe[5]:{},ue.headers=ue.headers||{},pe=ue.versionId||ue.subres&&ue.subres.versionId||null,pe?Ce="/".concat(le.sourceBucketName,"/").concat(encodeURIComponent(le.sourceKey),"?versionId=").concat(pe):Ce="/".concat(le.sourceBucketName,"/").concat(encodeURIComponent(le.sourceKey)),ue.headers["x-oss-copy-source"]=Ce,re&&(ue.headers["x-oss-copy-source-range"]="bytes=".concat(re)),ue.subres={partNumber:ae,uploadId:ee},Pe=this._objectRequestParams("PUT",z,ue),Pe.mime=ue.mime,Pe.successStatuses=[200],je.next=12,this.request(Pe);case 12:return Ie=je.sent,je.abrupt("return",{name:z,etag:Ie.res.headers.etag,res:Ie.res});case 14:case"end":return je.stop()}},fe,this)}));function xe(fe,z,ee,ae,re){return ve.apply(this,arguments)}return xe}(),ke.multipartUploadCopy=function(){var ve=(0,be.default)(ce.default.mark(function fe(z,ee){var ae,re,le,ue,pe,Ce,Pe,Ie,Oe,Ae,je,Be,_e=arguments;return ce.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return ae=_e.length>2&&_e[2]!==void 0?_e[2]:{},this.resetCancelFlag(),re=ae.versionId,le=re===void 0?null:re,ue={versionId:le},ze.next=6,this._getObjectMeta(ee.sourceBucketName,ee.sourceKey,ue);case 6:if(pe=ze.sent,Ce=pe.res.headers["content-length"],ee.startOffset=ee.startOffset||0,ee.endOffset=ee.endOffset||Ce,!(ae.checkpoint&&ae.checkpoint.uploadId)){ze.next=14;break}return ze.next=13,this._resumeMultipartCopy(ae.checkpoint,ee,ae);case 13:return ze.abrupt("return",ze.sent);case 14:if(Pe=102400,Ie=ee.endOffset-ee.startOffset,!(Ie<Pe)){ze.next=18;break}throw new Error("copySize must not be smaller than ".concat(Pe));case 18:if(!(ae.partSize&&ae.partSize<Pe)){ze.next=20;break}throw new Error("partSize must not be smaller than ".concat(Pe));case 20:return ze.next=22,this.initMultipartUpload(z,ae);case 22:if(Oe=ze.sent,Ae=Oe.uploadId,je=this._getPartSize(Ie,ae.partSize),Be={name:z,copySize:Ie,partSize:je,uploadId:Ae,doneParts:[]},!(ae&&ae.progress)){ze.next=29;break}return ze.next=29,ae.progress(0,Be,Oe.res);case 29:return ze.next=31,this._resumeMultipartCopy(Be,ee,ae);case 31:return ze.abrupt("return",ze.sent);case 32:case"end":return ze.stop()}},fe,this)}));function xe(fe,z){return ve.apply(this,arguments)}return xe}(),ke._resumeMultipartCopy=function(){var ve=(0,be.default)(ce.default.mark(function fe(z,ee,ae){var re,le,ue,pe,Ce,Pe,Ie,Oe,Ae,je,Be,_e,qe,ze,Ye,et,lt,dt,vt,Je,ot;return ce.default.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:if(!this.isCancel()){xt.next=2;break}throw this._makeCancelEvent();case 2:if(re=ae.versionId,le=re===void 0?null:re,ue={versionId:le},pe=z.copySize,Ce=z.partSize,Pe=z.uploadId,Ie=z.doneParts,Oe=z.name,Ae=this._divideMultipartCopyParts(pe,Ce,ee.startOffset),je=Ae.length,Be={headers:{}},ae.copyheaders&&Se(ae.copyheaders).to(Be.headers),le&&Se(ue).to(Be),_e=function(pt,gt,mt){return new Promise(function(){var Mt=(0,be.default)(ce.default.mark(function Ct(zt,St){var bt,at,nt;return ce.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:if(Te.prev=0,pt.isCancel()){Te.next=22;break}return bt=Ae[gt-1],at="".concat(bt.start,"-").concat(bt.end-1),Te.prev=4,Te.next=7,pt.uploadPartCopy(Oe,Pe,gt,at,mt,Be);case 7:nt=Te.sent,Te.next=15;break;case 10:if(Te.prev=10,Te.t0=Te.catch(4),Te.t0.status!==404){Te.next=14;break}throw pt._makeAbortEvent();case 14:throw Te.t0;case 15:if(pt.isCancel()){Te.next=22;break}if(Le("content-range ".concat(nt.res.headers["content-range"])),Ie.push({number:gt,etag:nt.res.headers.etag}),z.doneParts=Ie,!(ae&&ae.progress)){Te.next=22;break}return Te.next=22,ae.progress(Ie.length/je,z,nt.res);case 22:zt(),Te.next=29;break;case 25:Te.prev=25,Te.t1=Te.catch(0),Te.t1.partNum=gt,St(Te.t1);case 29:case"end":return Te.stop()}},Ct,null,[[0,25],[4,10]])}));return function(Ct,zt){return Mt.apply(this,arguments)}}())},qe=Array.from(new Array(je),function(yt,pt){return pt+1}),ze=Ie.map(function(yt){return yt.number}),Ye=qe.filter(function(yt){return ze.indexOf(yt)<0}),et=5,lt=ae.parallel||et,!(this.checkBrowserAndVersion("Internet Explorer","10")||lt===1)){xt.next=28;break}dt=0;case 18:if(!(dt<Ye.length)){xt.next=26;break}if(!this.isCancel()){xt.next=21;break}throw this._makeCancelEvent();case 21:return xt.next=23,_e(this,Ye[dt],ee);case 23:dt++,xt.next=18;break;case 26:xt.next=40;break;case 28:return xt.next=30,this._parallelNode(Ye,lt,_e,ee);case 30:if(vt=xt.sent,Je=vt.find(function(yt){return yt.name==="abort"}),!Je){xt.next=34;break}throw Je;case 34:if(!this.isCancel()){xt.next=36;break}throw this._makeCancelEvent();case 36:if(!(vt&&vt.length>0)){xt.next=40;break}throw ot=vt[0],ot.message="Failed to copy some parts with error: ".concat(ot.toString()," part_num: ").concat(ot.partNum),ot;case 40:return xt.next=42,this.completeMultipartUpload(Oe,Pe,Ie,ae);case 42:return xt.abrupt("return",xt.sent);case 43:case"end":return xt.stop()}},fe,this)}));function xe(fe,z,ee){return ve.apply(this,arguments)}return xe}(),ke._divideMultipartCopyParts=function(xe,fe,z){for(var ee=Math.ceil(xe/fe),ae=[],re=0;re<ee;re++){var le=fe*re+z,ue=Math.min(le+fe,xe+z);ae.push({start:le,end:ue})}return ae},ke._getObjectMeta=function(){var ve=(0,be.default)(ce.default.mark(function fe(z,ee,ae){var re,le;return ce.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return re=this.getBucket(),this.setBucket(z),pe.next=4,this.head(ee,ae);case 4:return le=pe.sent,this.setBucket(re),pe.abrupt("return",le);case 7:case"end":return pe.stop()}},fe,this)}));function xe(fe,z,ee){return ve.apply(this,arguments)}return xe}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,debug:465}],30:[function(oe,Ue,Fe){(function(me){(function(){"use strict";var ce=oe("@babel/runtime/helpers/interopRequireDefault"),be=ce(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.array.filter.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.array.sort.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.regexp.to-string.js");var Le=ce(oe("@babel/runtime/helpers/asyncToGenerator")),Se=oe("copy-to"),ke=oe("./callback"),ve=oe("./utils/deepCopy"),xe=ve.deepCopyWith,fe=oe("./utils/isBuffer"),z=fe.isBuffer,ee=oe("./utils/omit"),ae=ee.omit,re=Fe;re.listUploads=function(){var le=(0,Le.default)(be.default.mark(function pe(Ce,Pe){var Ie,Oe,Ae,je;return be.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return Pe=Pe||{},Ie={},Se(Pe).to(Ie),Ie.subres="uploads",Oe=this._objectRequestParams("GET","",Ie),Oe.query=Ce,Oe.xmlResponse=!0,Oe.successStatuses=[200],_e.next=10,this.request(Oe);case 10:return Ae=_e.sent,je=Ae.data.Upload||[],Array.isArray(je)||(je=[je]),je=je.map(function(qe){return{name:qe.Key,uploadId:qe.UploadId,initiated:qe.Initiated}}),_e.abrupt("return",{res:Ae.res,uploads:je,bucket:Ae.data.Bucket,nextKeyMarker:Ae.data.NextKeyMarker,nextUploadIdMarker:Ae.data.NextUploadIdMarker,isTruncated:Ae.data.IsTruncated==="true"});case 15:case"end":return _e.stop()}},pe,this)}));function ue(pe,Ce){return le.apply(this,arguments)}return ue}(),re.listParts=function(){var le=(0,Le.default)(be.default.mark(function pe(Ce,Pe,Ie,Oe){var Ae,je,Be;return be.default.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return Oe=Oe||{},Ae={},Se(Oe).to(Ae),Ae.subres={uploadId:Pe},je=this._objectRequestParams("GET",Ce,Ae),je.query=Ie,je.xmlResponse=!0,je.successStatuses=[200],qe.next=10,this.request(je);case 10:return Be=qe.sent,qe.abrupt("return",{res:Be.res,uploadId:Be.data.UploadId,bucket:Be.data.Bucket,name:Be.data.Key,partNumberMarker:Be.data.PartNumberMarker,nextPartNumberMarker:Be.data.NextPartNumberMarker,maxParts:Be.data.MaxParts,isTruncated:Be.data.IsTruncated,parts:Be.data.Part||[]});case 12:case"end":return qe.stop()}},pe,this)}));function ue(pe,Ce,Pe,Ie){return le.apply(this,arguments)}return ue}(),re.abortMultipartUpload=function(){var le=(0,Le.default)(be.default.mark(function pe(Ce,Pe,Ie){var Oe,Ae,je;return be.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return this._stop(),Ie=Ie||{},Oe={},Se(Ie).to(Oe),Oe.subres={uploadId:Pe},Ae=this._objectRequestParams("DELETE",Ce,Oe),Ae.successStatuses=[204],_e.next=9,this.request(Ae);case 9:return je=_e.sent,_e.abrupt("return",{res:je.res});case 11:case"end":return _e.stop()}},pe,this)}));function ue(pe,Ce,Pe){return le.apply(this,arguments)}return ue}(),re.initMultipartUpload=function(){var le=(0,Le.default)(be.default.mark(function pe(Ce,Pe){var Ie,Oe,Ae;return be.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return Pe=Pe||{},Ie={},Se(Pe).to(Ie),Ie.headers=Ie.headers||{},this._convertMetaToHeaders(Pe.meta,Ie.headers),Ie.subres="uploads",Oe=this._objectRequestParams("POST",Ce,Ie),Oe.mime=Pe.mime,Oe.xmlResponse=!0,Oe.successStatuses=[200],Be.next=12,this.request(Oe);case 12:return Ae=Be.sent,Be.abrupt("return",{res:Ae.res,bucket:Ae.data.Bucket,name:Ae.data.Key,uploadId:Ae.data.UploadId});case 14:case"end":return Be.stop()}},pe,this)}));function ue(pe,Ce){return le.apply(this,arguments)}return ue}(),re.uploadPart=function(){var le=(0,Le.default)(be.default.mark(function pe(Ce,Pe,Ie,Oe,Ae,je,Be){var _e,qe;return be.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(_e={size:je-Ae},qe=me&&me.browser,!qe){Ye.next=8;break}return Ye.next=5,this._createBuffer(Oe,Ae,je);case 5:_e.content=Ye.sent,Ye.next=11;break;case 8:return Ye.next=10,this._createStream(Oe,Ae,je);case 10:_e.stream=Ye.sent;case 11:return Ye.next=13,this._uploadPart(Ce,Pe,Ie,_e,Be);case 13:return Ye.abrupt("return",Ye.sent);case 14:case"end":return Ye.stop()}},pe,this)}));function ue(pe,Ce,Pe,Ie,Oe,Ae,je){return le.apply(this,arguments)}return ue}(),re.completeMultipartUpload=function(){var le=(0,Le.default)(be.default.mark(function pe(Ce,Pe,Ie,Oe){var Ae,je,Be,_e,qe,ze,Ye,et;return be.default.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:for(Ae=Ie.concat().sort(function(vt,Je){return vt.number-Je.number}).filter(function(vt,Je,ot){return!Je||vt.number!==ot[Je-1].number}),je=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,Be=0;Be<Ae.length;Be++)_e=Ae[Be],je+=`<Part>
|
|
|
`,je+="<PartNumber>".concat(_e.number,`</PartNumber>
|
|
|
`),je+="<ETag>".concat(_e.etag,`</ETag>
|
|
|
`),je+=`</Part>
|
|
|
`;return je+="</CompleteMultipartUpload>",Oe=Oe||{},qe={},qe=xe(Oe,function(vt){if(z(vt))return null}),qe.subres={uploadId:Pe},qe.headers=ae(qe.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),ze=this._objectRequestParams("POST",Ce,qe),ke.encodeCallback(ze,qe),ze.mime="xml",ze.content=je,ze.headers&&ze.headers["x-oss-callback"]||(ze.xmlResponse=!0),ze.successStatuses=[200],dt.next=17,this.request(ze);case 17:if(Ye=dt.sent,!Oe.progress){dt.next=21;break}return dt.next=21,Oe.progress(1,null,Ye.res);case 21:return et={res:Ye.res,bucket:ze.bucket,name:Ce,etag:Ye.res.headers.etag},ze.headers&&ze.headers["x-oss-callback"]&&(et.data=JSON.parse(Ye.data.toString())),dt.abrupt("return",et);case 24:case"end":return dt.stop()}},pe,this)}));function ue(pe,Ce,Pe,Ie){return le.apply(this,arguments)}return ue}(),re._uploadPart=function(){var le=(0,Le.default)(be.default.mark(function pe(Ce,Pe,Ie,Oe,Ae){var je,Be,_e,qe;return be.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return Ae=Ae||{},je={},Se(Ae).to(je),je.headers=je.headers||{},je.headers["Content-Length"]=Oe.size,je.headers=ae(je.headers,["x-oss-server-side-encryption"]),je.subres={partNumber:Ie,uploadId:Pe},Be=this._objectRequestParams("PUT",Ce,je),Be.mime=je.mime,_e=me&&me.browser,_e?Be.content=Oe.content:Be.stream=Oe.stream,Be.successStatuses=[200],Be.disabledMD5=Ae.disabledMD5,Ye.next=15,this.request(Be);case 15:if(qe=Ye.sent,qe.res.headers.etag){Ye.next=18;break}throw new Error(`Please set the etag of expose-headers in OSS
|
|
|
https://help.aliyun.com/document_detail/32069.html`);case 18:return Oe.stream&&(Oe.stream=null,Be.stream=null),Ye.abrupt("return",{name:Ce,etag:qe.res.headers.etag,res:qe.res});case 20:case"end":return Ye.stop()}},pe,this)}));function ue(pe,Ce,Pe,Ie,Oe){return le.apply(this,arguments)}return ue}()}).call(this)}).call(this,oe("_process"))},{"./callback":24,"./utils/deepCopy":58,"./utils/isBuffer":65,"./utils/omit":73,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],31:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator")),be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("url"),Se=oe("utility"),ke=oe("copy-to"),ve=oe("../../common/signUtils"),xe=oe("../utils/isIP"),fe=xe.isIP,z=oe("../utils/setSTSToken"),ee=z.setSTSToken,ae=oe("../utils/isFunction"),re=ae.isFunction,le=Fe;le.asyncSignatureUrl=function(){var ue=(0,be.default)(ce.default.mark(function Ce(Pe,Ie){var Oe,Ae,je,Be,_e;return ce.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:if(!fe(this.options.endpoint.hostname)){ze.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(Ie=Ie||{},Pe=this._objectName(Pe),Ie.method=Ie.method||"GET",Oe=Se.timestamp()+(Ie.expires||1800),Ae={bucket:this.options.bucket,object:Pe},je=this._getResource(Ae),!(this.options.stsToken&&re(this.options.refreshSTSToken))){ze.next=11;break}return ze.next=11,ee.call(this);case 11:return this.options.stsToken&&(Ie["security-token"]=this.options.stsToken),Be=ve._signatureForURL(this.options.accessKeySecret,Ie,je,Oe),_e=Le.parse(this._getReqUrl(Ae)),_e.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Oe,Signature:Be.Signature},ke(Be.subResource).to(_e.query),ze.abrupt("return",_e.format());case 17:case"end":return ze.stop()}},Ce,this)}));function pe(Ce,Pe){return ue.apply(this,arguments)}return pe}()},{"../../common/signUtils":50,"../utils/isFunction":68,"../utils/isIP":69,"../utils/setSTSToken":76,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,url:472,utility:474}],32:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.find.js"),oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js");var be=me(oe("@babel/runtime/helpers/typeof")),Le=me(oe("@babel/runtime/helpers/asyncToGenerator")),Se=oe("../utils/checkBucketName"),ke=Se.checkBucketName,ve=Fe,xe=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];ve.copy=function(){var fe=(0,Le.default)(ce.default.mark(function ee(ae,re,le,ue){var pe,Ce,Pe;return ce.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return(0,be.default)(le)==="object"&&(ue=le),ue=ue||{},ue.headers=ue.headers||{},Object.keys(ue.headers).forEach(function(Ae){ue.headers["x-oss-copy-source-".concat(Ae.toLowerCase())]=ue.headers[Ae]}),(ue.meta||Object.keys(ue.headers).find(function(Ae){return xe.includes(Ae.toLowerCase())}))&&(ue.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(ue.meta,ue.headers),re=this._getSourceName(re,le),ue.versionId&&(re="".concat(re,"?versionId=").concat(ue.versionId)),ue.headers["x-oss-copy-source"]=re,pe=this._objectRequestParams("PUT",ae,ue),pe.xmlResponse=!0,pe.successStatuses=[200,304],Oe.next=14,this.request(pe);case 14:return Ce=Oe.sent,Pe=Ce.data,Pe&&(Pe={etag:Pe.ETag,lastModified:Pe.LastModified}),Oe.abrupt("return",{data:Pe,res:Ce.res});case 18:case"end":return Oe.stop()}},ee,this)}));function z(ee,ae,re,le){return fe.apply(this,arguments)}return z}(),ve._getSourceName=function(z,ee){return typeof ee=="string"?z=this._objectName(z):z[0]!=="/"?ee=this.options.bucket:(ee=z.replace(/\/(.+?)(\/.*)/,"$1"),z=z.replace(/(\/.+?\/)(.*)/,"$2")),ke(ee),z=encodeURIComponent(z),z="/".concat(ee,"/").concat(z),z}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],33:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=Fe;Le.delete=function(){var Se=(0,be.default)(ce.default.mark(function ve(xe){var fe,z,ee,ae=arguments;return ce.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return fe=ae.length>1&&ae[1]!==void 0?ae[1]:{},fe.subres=Object.assign({},fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),z=this._objectRequestParams("DELETE",xe,fe),z.successStatuses=[204],le.next=7,this.request(z);case 7:return ee=le.sent,le.abrupt("return",{res:ee.res});case 9:case"end":return le.stop()}},ve,this)}));function ke(ve){return Se.apply(this,arguments)}return ke}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],34:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("utility"),Se=oe("../utils/obj2xml"),ke=Se.obj2xml,ve=Fe;ve.deleteMulti=function(){var xe=(0,be.default)(ce.default.mark(function z(ee){var ae,re,le,ue,pe,Ce,Pe,Ie,Oe,Ae,je,Be,_e,qe=arguments;return ce.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(ae=qe.length>1&&qe[1]!==void 0?qe[1]:{},re=[],!(!ee||!ee.length)){Ye.next=4;break}throw new Error("names is required");case 4:for(le=0;le<ee.length;le++)ue={},typeof ee[le]=="string"?ue.Key=Le.escape(this._objectName(ee[le])):(pe=ee[le],Ce=pe.key,Pe=pe.versionId,ue.Key=Le.escape(this._objectName(Ce)),ue.VersionId=Pe),re.push(ue);return Ie={Delete:{Quiet:!!ae.quiet,Object:re}},Oe=ke(Ie,{headers:!0}),ae.subres=Object.assign({delete:""},ae.subres),ae.versionId&&(ae.subres.versionId=ae.versionId),Ae=this._objectRequestParams("POST","",ae),Ae.mime="xml",Ae.content=Oe,Ae.xmlResponse=!0,Ae.successStatuses=[200],Ye.next=16,this.request(Ae);case 16:return je=Ye.sent,Be=je.data,_e=Be&&Be.Deleted||null,_e&&(Array.isArray(_e)||(_e=[_e])),Ye.abrupt("return",{res:je.res,deleted:_e||[]});case 21:case"end":return Ye.stop()}},z,this)}));function fe(z){return xe.apply(this,arguments)}return fe}()},{"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,utility:474}],35:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=Fe;Le.deleteObjectTagging=function(){var Se=(0,be.default)(ce.default.mark(function ve(xe){var fe,z,ee,ae=arguments;return ce.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return fe=ae.length>1&&ae[1]!==void 0?ae[1]:{},fe.subres=Object.assign({tagging:""},fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),xe=this._objectName(xe),z=this._objectRequestParams("DELETE",xe,fe),z.successStatuses=[204],le.next=8,this.request(z);case 8:return ee=le.sent,le.abrupt("return",{status:ee.status,res:ee.res});case 10:case"end":return le.stop()}},ve,this)}));function ke(ve){return Se.apply(this,arguments)}return ke}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],36:[function(oe,Ue,Fe){"use strict";oe("core-js/modules/es.array.concat.js");var me=oe("url"),ce=oe("../utils/isIP"),be=ce.isIP,Le=Fe;Le.generateObjectUrl=function(ke,ve){if(be(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(ve)ve[ve.length-1]!=="/"&&(ve+="/");else{ve=this.options.endpoint.format();var xe=me.parse(ve),fe=this.options.bucket;xe.hostname="".concat(fe,".").concat(xe.hostname),xe.host="".concat(fe,".").concat(xe.host),ve=xe.format()}return ve+this._escape(this._objectName(ke))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(oe,Ue,Fe){(function(me){(function(){"use strict";var ce=oe("@babel/runtime/helpers/interopRequireDefault"),be=ce(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var Le=ce(oe("@babel/runtime/helpers/asyncToGenerator")),Se=oe("fs"),ke=oe("is-type-of"),ve=Fe;ve.get=function(){var xe=(0,Le.default)(be.default.mark(function z(ee,ae){var re,le,ue,pe,Ce,Pe,Ie,Oe,Ae=arguments;return be.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return re=Ae.length>2&&Ae[2]!==void 0?Ae[2]:{},le=null,ue=!1,ke.writableStream(ae)?le=ae:ke.string(ae)?(le=Se.createWriteStream(ae),ue=!0):re=ae,re=re||{},pe=me&&me.browser,Ce=re.responseCacheControl===null?"":"no-cache",Pe=pe&&Ce?{"response-cache-control":Ce}:{},re.subres=Object.assign(Pe,re.subres),re.versionId&&(re.subres.versionId=re.versionId),re.process&&(re.subres["x-oss-process"]=re.process),Be.prev=11,Oe=this._objectRequestParams("GET",ee,re),Oe.writeStream=le,Oe.successStatuses=[200,206,304],Be.next=17,this.request(Oe);case 17:Ie=Be.sent,ue&&le.destroy(),Be.next=28;break;case 21:if(Be.prev=21,Be.t0=Be.catch(11),!ue){Be.next=27;break}return le.destroy(),Be.next=27,this._deleteFileSafe(ae);case 27:throw Be.t0;case 28:return Be.abrupt("return",{res:Ie.res,content:Ie.data});case 29:case"end":return Be.stop()}},z,this,[[11,21]])}));function fe(z,ee){return xe.apply(this,arguments)}return fe}()}).call(this)}).call(this,oe("_process"))},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"core-js/modules/es.object.assign.js":287,fs:89,"is-type-of":466}],38:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=Fe;Le.getACL=function(){var Se=(0,be.default)(ce.default.mark(function ve(xe){var fe,z,ee,ae=arguments;return ce.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return fe=ae.length>1&&ae[1]!==void 0?ae[1]:{},fe.subres=Object.assign({acl:""},fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),xe=this._objectName(xe),z=this._objectRequestParams("GET",xe,fe),z.successStatuses=[200],z.xmlResponse=!0,le.next=9,this.request(z);case 9:return ee=le.sent,le.abrupt("return",{acl:ee.data.AccessControlList.Grant,owner:{id:ee.data.Owner.ID,displayName:ee.data.Owner.DisplayName},res:ee.res});case 11:case"end":return le.stop()}},ve,this)}));function ke(ve){return Se.apply(this,arguments)}return ke}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],39:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.number.constructor.js");var be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=Fe,Se=oe("../utils/isObject"),ke=Se.isObject,ve=oe("../utils/isArray"),xe=ve.isArray;Le.getBucketVersions=fe,Le.listObjectVersions=fe;function fe(){return z.apply(this,arguments)}function z(){return z=(0,be.default)(ce.default.mark(function re(){var le,ue,pe,Ce,Pe,Ie,Oe,Ae,je=arguments;return ce.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(le=je.length>0&&je[0]!==void 0?je[0]:{},ue=je.length>1&&je[1]!==void 0?je[1]:{},!(le.versionIdMarker&&le.keyMarker===void 0)){_e.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return ue.subres=Object.assign({versions:""},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),pe=this._objectRequestParams("GET","",ue),pe.xmlResponse=!0,pe.successStatuses=[200],pe.query=ae(le),_e.next=12,this.request(pe);case 12:return Ce=_e.sent,Pe=Ce.data.Version||[],Ie=Ce.data.DeleteMarker||[],Oe=this,Pe&&(Array.isArray(Pe)||(Pe=[Pe]),Pe=Pe.map(function(qe){return{name:qe.Key,url:Oe._objectUrl(qe.Key),lastModified:qe.LastModified,isLatest:qe.IsLatest==="true",versionId:qe.VersionId,etag:qe.ETag,type:qe.Type,size:Number(qe.Size),storageClass:qe.StorageClass,owner:{id:qe.Owner.ID,displayName:qe.Owner.DisplayName}}})),Ie&&(xe(Ie)||(Ie=[Ie]),Ie=Ie.map(function(qe){return{name:qe.Key,lastModified:qe.LastModified,versionId:qe.VersionId,owner:{id:qe.Owner.ID,displayName:qe.Owner.DisplayName}}})),Ae=Ce.data.CommonPrefixes||null,Ae&&(xe(Ae)||(Ae=[Ae]),Ae=Ae.map(function(qe){return qe.Prefix})),_e.abrupt("return",{res:Ce.res,objects:Pe,deleteMarker:Ie,prefixes:Ae,nextMarker:Ce.data.NextKeyMarker||null,NextVersionIdMarker:Ce.data.NextVersionIdMarker||null,nextKeyMarker:Ce.data.NextKeyMarker||null,nextVersionIdMarker:Ce.data.NextVersionIdMarker||null,isTruncated:Ce.data.IsTruncated==="true"});case 21:case"end":return _e.stop()}},re,this)})),z.apply(this,arguments)}function ee(re){return re.replace(/([A-Z])/g,"-$1").toLowerCase()}function ae(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le={};return ke(re)&&Object.keys(re).forEach(function(ue){le[ee(ue)]=re[ue]}),le}},{"../utils/isArray":63,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],40:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=Fe;Le.getObjectMeta=function(){var Se=(0,be.default)(ce.default.mark(function ve(xe,fe){var z,ee;return ce.default.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return fe=fe||{},xe=this._objectName(xe),fe.subres=Object.assign({objectMeta:""},fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),z=this._objectRequestParams("HEAD",xe,fe),z.successStatuses=[200],re.next=8,this.request(z);case 8:return ee=re.sent,re.abrupt("return",{status:ee.status,res:ee.res});case 10:case"end":return re.stop()}},ve,this)}));function ke(ve,xe){return Se.apply(this,arguments)}return ke}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],41:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js");var be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=Fe,Se=oe("../utils/isObject"),ke=Se.isObject;Le.getObjectTagging=function(){var ve=(0,be.default)(ce.default.mark(function fe(z){var ee,ae,re,le,ue,pe,Ce=arguments;return ce.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return ee=Ce.length>1&&Ce[1]!==void 0?Ce[1]:{},ee.subres=Object.assign({tagging:""},ee.subres),ee.versionId&&(ee.subres.versionId=ee.versionId),z=this._objectName(z),ae=this._objectRequestParams("GET",z,ee),ae.successStatuses=[200],Ie.next=8,this.request(ae);case 8:return re=Ie.sent,Ie.next=11,this.parseXML(re.data);case 11:return le=Ie.sent,ue=le.TagSet.Tag,ue=ue&&ke(ue)?[ue]:ue||[],pe={},ue.forEach(function(Oe){pe[Oe.Key]=Oe.Value}),Ie.abrupt("return",{status:re.status,res:re.res,tag:pe});case 17:case"end":return Ie.stop()}},fe,this)}));function xe(fe){return ve.apply(this,arguments)}return xe}()},{"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],42:[function(oe,Ue,Fe){"use strict";var me=oe("../utils/isIP"),ce=me.isIP,be=Fe;be.getObjectUrl=function(Se,ke){if(ce(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return ke?ke[ke.length-1]!=="/"&&(ke+="/"):ke=this.options.endpoint.format(),ke+this._escape(this._objectName(Se))}},{"../utils/isIP":69}],43:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=Fe;Le.getSymlink=function(){var Se=(0,be.default)(ce.default.mark(function ve(xe){var fe,z,ee,ae,re=arguments;return ce.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return fe=re.length>1&&re[1]!==void 0?re[1]:{},fe.subres=Object.assign({symlink:""},fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),xe=this._objectName(xe),z=this._objectRequestParams("GET",xe,fe),z.successStatuses=[200],ue.next=8,this.request(z);case 8:return ee=ue.sent,ae=ee.res.headers["x-oss-symlink-target"],ue.abrupt("return",{targetName:decodeURIComponent(ae),res:ee.res});case 11:case"end":return ue.stop()}},ve,this)}));function ke(ve){return Se.apply(this,arguments)}return ke}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],44:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js");var be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("../utils/checkEnv"),Se=Le.checkEnv,ke=Fe;ke.head=function(){var ve=(0,be.default)(ce.default.mark(function fe(z){var ee,ae,re,le,ue=arguments;return ce.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ee=ue.length>1&&ue[1]!==void 0?ue[1]:{},Se("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),ee.subres=Object.assign({},ee.subres),ee.versionId&&(ee.subres.versionId=ee.versionId),ae=this._objectRequestParams("HEAD",z,ee),ae.successStatuses=[200,304],Ce.next=8,this.request(ae);case 8:return re=Ce.sent,le={meta:null,res:re.res,status:re.status},re.status===200&&Object.keys(re.headers).forEach(function(Pe){Pe.indexOf("x-oss-meta-")===0&&(le.meta||(le.meta={}),le.meta[Pe.substring(11)]=re.headers[Pe])}),Ce.abrupt("return",le);case 12:case"end":return Ce.stop()}},fe,this)}));function xe(fe){return ve.apply(this,arguments)}return xe}()},{"../utils/checkEnv":53,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],45:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=Fe;Le.putACL=function(){var Se=(0,be.default)(ce.default.mark(function ve(xe,fe,z){var ee,ae;return ce.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return z=z||{},z.subres=Object.assign({acl:""},z.subres),z.versionId&&(z.subres.versionId=z.versionId),z.headers=z.headers||{},z.headers["x-oss-object-acl"]=fe,xe=this._objectName(xe),ee=this._objectRequestParams("PUT",xe,z),ee.successStatuses=[200],le.next=10,this.request(ee);case 10:return ae=le.sent,le.abrupt("return",{res:ae.res});case 12:case"end":return le.stop()}},ve,this)}));function ke(ve,xe,fe){return Se.apply(this,arguments)}return ke}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],46:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.object.keys.js");var be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("../utils/obj2xml"),Se=Le.obj2xml,ke=oe("../utils/checkObjectTag"),ve=ke.checkObjectTag,xe=Fe;xe.putObjectTagging=function(){var fe=(0,be.default)(ce.default.mark(function ee(ae,re){var le,ue,pe,Ce,Pe=arguments;return ce.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return le=Pe.length>2&&Pe[2]!==void 0?Pe[2]:{},ve(re),le.subres=Object.assign({tagging:""},le.subres),le.versionId&&(le.subres.versionId=le.versionId),ae=this._objectName(ae),ue=this._objectRequestParams("PUT",ae,le),ue.successStatuses=[200],re=Object.keys(re).map(function(Ae){return{Key:Ae,Value:re[Ae]}}),pe={Tagging:{TagSet:{Tag:re}}},ue.mime="xml",ue.content=Se(pe),Oe.next=13,this.request(ue);case 13:return Ce=Oe.sent,Oe.abrupt("return",{res:Ce.res,status:Ce.status});case 15:case"end":return Oe.stop()}},ee,this)}));function z(ee,ae){return fe.apply(this,arguments)}return z}()},{"../utils/checkObjectTag":54,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290}],47:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.assign.js");var be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=Fe;Le.putSymlink=function(){var Se=(0,be.default)(ce.default.mark(function ve(xe,fe,z){var ee,ae;return ce.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return z=z||{},z.headers=z.headers||{},fe=this._escape(this._objectName(fe)),this._convertMetaToHeaders(z.meta,z.headers),z.headers["x-oss-symlink-target"]=fe,z.subres=Object.assign({symlink:""},z.subres),z.versionId&&(z.subres.versionId=z.versionId),z.storageClass&&(z.headers["x-oss-storage-class"]=z.storageClass),xe=this._objectName(xe),ee=this._objectRequestParams("PUT",xe,z),ee.successStatuses=[200],le.next=13,this.request(ee);case 13:return ae=le.sent,le.abrupt("return",{res:ae.res});case 15:case"end":return le.stop()}},ve,this)}));function ke(ve,xe,fe){return Se.apply(this,arguments)}return ke}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],48:[function(oe,Ue,Fe){"use strict";var me=oe("url"),ce=oe("utility"),be=oe("copy-to"),Le=oe("../../common/signUtils"),Se=oe("../utils/isIP"),ke=Se.isIP,ve=Fe;ve.signatureUrl=function(fe,z){if(ke(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");z=z||{},fe=this._objectName(fe),z.method=z.method||"GET";var ee=ce.timestamp()+(z.expires||1800),ae={bucket:this.options.bucket,object:fe},re=this._getResource(ae);this.options.stsToken&&(z["security-token"]=this.options.stsToken);var le=Le._signatureForURL(this.options.accessKeySecret,z,re,ee),ue=me.parse(this._getReqUrl(ae));return ue.query={OSSAccessKeyId:this.options.accessKeyId,Expires:ee,Signature:le.Signature},be(le.subResource).to(ue.query),ue.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.array.iterator.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.string.iterator.js"),oe("core-js/modules/web.dom-collections.iterator.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.function.name.js");var be=me(oe("@babel/runtime/helpers/asyncToGenerator")),Le=oe("./utils/isArray"),Se=Le.isArray,ke=Fe;ke._parallelNode=function(){var ve=(0,be.default)(ce.default.mark(function fe(z,ee,ae,re){var le,ue,pe,Ce,Pe,Ie,Oe,Ae;return ce.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:le=this,ue=[],pe=[],Ce=z.length/ee,Pe=z.length%ee,Ie=Pe===0?Ce:(z.length-Pe)/ee+1,Oe=1,Ae=0;case 8:if(!(Ae<z.length)){Be.next=26;break}if(!le.isCancel()){Be.next=11;break}return Be.abrupt("break",26);case 11:if(re?pe.push(ae(le,z[Ae],re)):pe.push(ae(le,z[Ae])),!(pe.length===ee||Oe===Ie&&Ae===z.length-1)){Be.next=23;break}return Be.prev=13,Oe+=1,Be.next=17,Promise.all(pe);case 17:Be.next=22;break;case 19:Be.prev=19,Be.t0=Be.catch(13),ue.push(Be.t0);case 22:pe=[];case 23:Ae++,Be.next=8;break;case 26:return Be.abrupt("return",ue);case 27:case"end":return Be.stop()}},fe,this,[[13,19]])}));function xe(fe,z,ee,ae){return ve.apply(this,arguments)}return xe}(),ke._parallel=function(xe,fe,z){var ee=this;return new Promise(function(ae){var re=[];if(fe<=0||!xe){ae(re);return}function le(Be){return function(){if(Be===null)throw new Error("Callback was already called.");var _e=Be;Be=null;for(var qe=arguments.length,ze=new Array(qe),Ye=0;Ye<qe;Ye++)ze[Ye]=arguments[Ye];_e.apply(this,ze)}}function ue(Be){var _e=-1,qe=Be.length;return function(){return++_e<qe&&!ee.isCancel()?{value:Be[_e],key:_e}:null}}var pe=ue(xe),Ce=!1,Pe=0,Ie=!1;function Oe(Be){Pe-=1,Be?(Ce=!0,re.push(Be),ae(re)):Ce&&Pe<=0?(Ce=!0,ae(re)):Ie||(ee.isCancel()?ae(re):je())}function Ae(Be,_e){z(Be).then(function(qe){_e(null,qe)}).catch(function(qe){_e(qe)})}function je(){for(Ie=!0;Pe<fe&&!Ce&&!ee.isCancel();){var Be=pe();if(Be===null||re.length>0){Ce=!0,Pe<=0&&ae(re);return}Pe+=1,Ae(Be.value,le(Oe))}Ie=!1}je()})},ke.cancel=function(xe){this.options.cancelFlag=!0,Se(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(fe){if(fe.destroyed===!1){var z={name:"cancel",message:"cancel"};fe.destroy(z)}}),this.multipartUploadStreams=[],xe&&this.abortMultipartUpload(xe.name,xe.uploadId,xe.options)},ke.isCancel=function(){return this.options.cancelFlag},ke.resetCancelFlag=function(){this.options.cancelFlag=!1},ke._stop=function(){this.options.cancelFlag=!0},ke._makeCancelEvent=function(){var xe={status:0,name:"cancel"};return xe},ke._makeAbortEvent=function(){var xe={status:0,name:"abort",message:"upload task has been abort"};return xe}},{"./utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.string.iterator.js":303,"core-js/modules/web.dom-collections.for-each.js":339,"core-js/modules/web.dom-collections.iterator.js":340}],50:[function(oe,Ue,Fe){(function(me){(function(){"use strict";oe("core-js/modules/es.string.trim.js"),oe("core-js/modules/es.array.sort.js"),oe("core-js/modules/es.array.join.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.regexp.to-string.js");var ce=oe("./../../shims/crypto/crypto.js"),be=oe("is-type-of"),Le=oe("./utils/lowercaseKeyHeader"),Se=Le.lowercaseKeyHeader;Fe.buildCanonicalizedResource=function(ve,xe){var fe="".concat(ve),z="?";if(be.string(xe)&&xe.trim()!=="")fe+=z+xe;else if(be.array(xe))xe.sort(),fe+=z+xe.join("&");else if(xe){var ee=function(le,ue){return le[0]>ue[0]?1:le[0]<ue[0]?-1:0},ae=function(le){fe+=z+le,(xe[le]||xe[le]===0)&&(fe+="=".concat(xe[le])),z="&"};Object.keys(xe).sort(ee).forEach(ae)}return fe},Fe.buildCanonicalString=function(ve,xe,fe,z){fe=fe||{};var ee=Se(fe.headers),ae="x-oss-",re=[],le={},ue=[ve.toUpperCase(),ee["content-md5"]||"",ee["content-type"],z||ee["x-oss-date"]];return Object.keys(ee).forEach(function(pe){var Ce=pe.toLowerCase();Ce.indexOf(ae)===0&&(le[Ce]=String(ee[pe]).trim())}),Object.keys(le).sort().forEach(function(pe){re.push("".concat(pe,":").concat(le[pe]))}),ue=ue.concat(re),ue.push(this.buildCanonicalizedResource(xe,fe.parameters)),ue.join(`
|
|
|
`)},Fe.computeSignature=function(ve,xe){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",z=ce.createHmac("sha1",ve);return z.update(me.from(xe,fe)).digest("base64")},Fe.authorization=function(ve,xe,fe,z){return"OSS ".concat(ve,":").concat(this.computeSignature(xe,fe,z))},Fe._signatureForURL=function(ve){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fe=arguments.length>2?arguments[2]:void 0,z=arguments.length>3?arguments[3]:void 0,ee=arguments.length>4?arguments[4]:void 0,ae={},re=xe.subResource,le=re===void 0?{}:re;if(xe.process){var ue="x-oss-process";le[ue]=xe.process}if(xe.trafficLimit){var pe="x-oss-traffic-limit";le[pe]=xe.trafficLimit}if(xe.response&&Object.keys(xe.response).forEach(function(Oe){var Ae="response-".concat(Oe.toLowerCase());le[Ae]=xe.response[Oe]}),Object.keys(xe).forEach(function(Oe){var Ae=Oe.toLowerCase(),je=xe[Oe];Ae.indexOf("x-oss-")===0?ae[Ae]=je:(Ae.indexOf("content-md5")===0||Ae.indexOf("content-type")===0)&&(ae[Oe]=je)}),Object.prototype.hasOwnProperty.call(xe,"security-token")&&(le["security-token"]=xe["security-token"]),Object.prototype.hasOwnProperty.call(xe,"callback")){var Ce={callbackUrl:encodeURI(xe.callback.url),callbackBody:xe.callback.body};if(xe.callback.host&&(Ce.callbackHost=xe.callback.host),xe.callback.contentType&&(Ce.callbackBodyType=xe.callback.contentType),le.callback=me.from(JSON.stringify(Ce)).toString("base64"),xe.callback.customValue){var Pe={};Object.keys(xe.callback.customValue).forEach(function(Oe){Pe["x:".concat(Oe)]=xe.callback.customValue[Oe]}),le["callback-var"]=me.from(JSON.stringify(Pe)).toString("base64")}}var Ie=this.buildCanonicalString(xe.method,fe,{headers:ae,parameters:le},z.toString());return{Signature:this.computeSignature(ve,Ie,ee),subResource:le}}}).call(this)}).call(this,oe("buffer").Buffer)},{"./../../shims/crypto/crypto.js":461,"./utils/lowercaseKeyHeader":71,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.trim.js":308,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466}],51:[function(oe,Ue,Fe){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.checkBucketName=void 0,Fe.checkBucketName=function(me){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,be=ce?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!be.test(me))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(oe,Ue,Fe){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.checkConfigValid=void 0;var me={endpoint:ce,region:/^[a-zA-Z0-9\-_]+$/};function ce(be){return typeof be=="string"?/^[a-zA-Z0-9._:/-]+$/.test(be):be.host?/^[a-zA-Z0-9._:/-]+$/.test(be.host):!1}Fe.checkConfigValid=function(be,Le){if(me[Le]){var Se=!0;if(me[Le]instanceof Function?Se=me[Le](be):Se=me[Le].test(be),!Se)throw new Error("The ".concat(Le," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(oe,Ue,Fe){(function(me){(function(){"use strict";Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.checkEnv=void 0;function ce(be){me.browser&&console.warn(be)}Fe.checkEnv=ce}).call(this)}).call(this,oe("_process"))},{_process:467}],54:[function(oe,Ue,Fe){"use strict";oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.object.entries.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.checkObjectTag=void 0;var me=oe("./checkValid"),ce=me.checkValid,be=oe("./isObject"),Le=be.isObject,Se=[{validator:function(fe){if(typeof fe!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],ke={key:[].concat(Se,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(Se,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function ve(xe){if(!Le(xe))throw new Error("tag must be Object");var fe=Object.entries(xe);if(fe.length>10)throw new Error("maximum of 10 tags for a object");var z=["key","value"];fe.forEach(function(ee){ee.forEach(function(ae,re){ce(ae,ke[z[re]])})})}Fe.checkObjectTag=ve},{"./checkValid":55,"./isObject":70,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],55:[function(oe,Ue,Fe){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.checkValid=void 0;function me(ce,be){be.forEach(function(Le){if(Le.validator)Le.validator(ce);else if(Le.pattern&&!Le.pattern.test(ce))throw new Error(Le.msg)})}Fe.checkValid=me},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],56:[function(oe,Ue,Fe){(function(me){(function(){"use strict";oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.string.includes.js"),oe("core-js/modules/es.object.assign.js"),oe("core-js/modules/es.array.concat.js"),Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.createRequest=void 0;var ce=oe("./../../../shims/crypto/crypto.js"),be=oe("debug")("ali-oss"),Le=oe("mime"),Se=oe("dateformat"),ke=oe("copy-to"),ve=oe("path"),xe=oe("./encoder"),fe=xe.encoder,z=oe("./isIP"),ee=z.isIP,ae=oe("./setRegion"),re=ae.setRegion,le=oe("../client/getReqUrl"),ue=le.getReqUrl,pe=oe("./isDingTalk"),Ce=pe.isDingTalk;function Pe(Ae,je){return Ae[je]||Ae[je.toLowerCase()]}function Ie(Ae,je){delete Ae[je],delete Ae[je.toLowerCase()]}function Oe(Ae){var je=new Date;this.options.amendTimeSkewed&&(je=+new Date+this.options.amendTimeSkewed);var Be={"x-oss-date":Se(je,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(Be["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(Be["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(Be,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(Be["x-oss-security-token"]=this.options.stsToken),ke(Ae.headers).to(Be),Pe(Be,"Content-Type")||(Ae.mime&&Ae.mime.indexOf("/")>0?Be["Content-Type"]=Ae.mime:Ce()?Be["Content-Type"]="application/octet-stream":Be["Content-Type"]=Le.getType(Ae.mime||ve.extname(Ae.object||""))),Pe(Be,"Content-Type")||Ie(Be,"Content-Type"),Ae.content&&(Ae.disabledMD5||(!Ae.headers||!Ae.headers["Content-MD5"]?Be["Content-MD5"]=ce.createHash("md5").update(me.from(Ae.content,"utf8")).digest("base64"):Be["Content-MD5"]=Ae.headers["Content-MD5"]),Be["Content-Length"]||(Be["Content-Length"]=Ae.content.length));var _e=Object.prototype.hasOwnProperty;for(var qe in Be)Be[qe]&&_e.call(Be,qe)&&(Be[qe]=fe(String(Be[qe]),this.options.headerEncoding));var ze=this._getResource(Ae);if(Be.authorization=this.authorization(Ae.method,ze,Ae.subres,Be,this.options.headerEncoding),ee(this.options.endpoint.hostname)){var Ye=this.options,et=Ye.region,lt=Ye.internal,dt=Ye.secure,vt=re(et,lt,dt);Be.host="".concat(Ae.bucket,".").concat(vt.host)}var Je=ue.bind(this)(Ae);be("request %s %s, with headers %j, !!stream: %s",Ae.method,Je,Be,!!Ae.stream);var ot=Ae.timeout||this.options.timeout,ft={method:Ae.method,content:Ae.content,stream:Ae.stream,headers:Be,timeout:ot,writeStream:Ae.writeStream,customResponse:Ae.customResponse,ctx:Ae.ctx||this.ctx};return this.agent&&(ft.agent=this.agent),this.httpsAgent&&(ft.httpsAgent=this.httpsAgent),ft.enableProxy=!!this.options.enableProxy,ft.proxy=this.options.proxy?this.options.proxy:null,{url:Je,params:ft}}Fe.createRequest=Oe}).call(this)}).call(this,oe("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":461,"./encoder":59,"./isDingTalk":66,"./isIP":69,"./setRegion":75,buffer:90,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.includes.js":302,dateformat:342,debug:465,mime:374,path:378}],57:[function(oe,Ue,Fe){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.entries.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.object.keys.js"),Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.dataFix=void 0;var me=oe("./isObject"),ce=["true","TRUE","1",1],be=["false","FALSE","0",0];function Le(ve,xe,fe){if(me.isObject(ve)){var z=xe.remove,ee=z===void 0?[]:z,ae=xe.rename,re=ae===void 0?{}:ae,le=xe.camel,ue=le===void 0?[]:le,pe=xe.bool,Ce=pe===void 0?[]:pe,Pe=xe.lowerFirst,Ie=Pe===void 0?!1:Pe;return ee.forEach(function(Oe){return delete ve[Oe]}),Object.entries(re).forEach(function(Oe){ve[Oe[0]]&&(ve[Oe[1]]||(ve[Oe[1]]=ve[Oe[0]],delete ve[Oe[0]]))}),ue.forEach(function(Oe){if(ve[Oe]){var Ae=Oe.replace(/^(.)/,function(je){return je.toLowerCase()}).replace(/-(\w)/g,function(je,Be){return Be.toUpperCase()});ve[Ae]||(ve[Ae]=ve[Oe])}}),Ce.forEach(function(Oe){ve[Oe]=Se(ve[Oe])}),typeof fe=="function"&&fe(ve),ke(ve,Ie),Le}}Fe.dataFix=Le;function Se(ve){return ve?ce.includes(ve)?!0:be.includes(ve)?!1:ve:!1}function ke(ve,xe){xe&&Object.keys(ve).forEach(function(fe){var z=fe.replace(/^\w/,function(ee){return ee.toLowerCase()});typeof ve[z]=="undefined"&&(ve[z]=ve[fe],delete ve[fe])})}},{"./isObject":70,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],58:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault");oe("core-js/modules/es.array.slice.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js");var ce=me(oe("@babel/runtime/helpers/typeof"));Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.deepCopyWith=Fe.deepCopy=void 0;var be=oe("./isBuffer");Fe.deepCopy=function(Le){if(Le===null||(0,ce.default)(Le)!=="object")return Le;if(be.isBuffer(Le))return Le.slice();var Se=Array.isArray(Le)?[]:{};return Object.keys(Le).forEach(function(ke){Se[ke]=Fe.deepCopy(Le[ke])}),Se},Fe.deepCopyWith=function(Le,Se){function ke(ve,xe,fe){var z=Se(ve,xe,fe);if(z!==void 0)return z;if(ve===null||(0,ce.default)(ve)!=="object")return ve;if(be.isBuffer(ve))return ve.slice();var ee=Array.isArray(ve)?[]:{};return Object.keys(ve).forEach(function(ae){ee[ae]=ke(ve[ae],ae,ve)}),ee}return Se?ke(Le,"",null):Fe.deepCopy(Le)}},{"./isBuffer":65,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],59:[function(oe,Ue,Fe){(function(me){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.encoder=void 0;function ce(be){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return Le==="utf-8"?be:me.from(be).toString("latin1")}Fe.encoder=ce}).call(this)}).call(this,oe("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(oe,Ue,Fe){"use strict";oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.formatInventoryConfig=void 0;var me=oe("../utils/dataFix"),ce=oe("../utils/isObject"),be=oe("../utils/isArray"),Le=oe("../utils/formatObjKey");function Se(ve){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return xe&&ce.isObject(ve)&&(ve=[ve]),be.isArray(ve)?ve=ve.map(ke):ve=ke(ve),ve}Fe.formatInventoryConfig=Se;function ke(ve){return me.dataFix(ve,{bool:["IsEnabled"]},function(xe){var fe,z;xe.prefix=xe.Filter.Prefix,delete xe.Filter,xe.OSSBucketDestination=xe.Destination.OSSBucketDestination,xe.OSSBucketDestination.rolename=xe.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete xe.OSSBucketDestination.RoleArn,xe.OSSBucketDestination.bucket=xe.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete xe.OSSBucketDestination.Bucket,delete xe.Destination,xe.frequency=xe.Schedule.Frequency,delete xe.Schedule.Frequency,!((fe=xe==null?void 0:xe.OptionalFields)===null||fe===void 0)&&fe.Field&&!be.isArray((z=xe.OptionalFields)===null||z===void 0?void 0:z.Field)&&(xe.OptionalFields.Field=[xe.OptionalFields.Field])}),ve=Le.formatObjKey(ve,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),ve}},{"../utils/dataFix":57,"../utils/formatObjKey":61,"../utils/isArray":63,"../utils/isObject":70,"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305}],61:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault");oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.string.includes.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js");var ce=me(oe("@babel/runtime/helpers/typeof"));Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.formatObjKey=void 0;function be(Se,ke,ve){if(Se===null||(0,ce.default)(Se)!=="object")return Se;var xe;if(Array.isArray(Se)){xe=[];for(var fe=0;fe<Se.length;fe++)xe.push(be(Se[fe],ke,ve))}else xe={},Object.keys(Se).forEach(function(z){xe[Le(z,ke,ve)]=be(Se[z],ke,ve)});return xe}Fe.formatObjKey=be;function Le(Se,ke,ve){return ve&&ve.exclude&&ve.exclude.includes(Se)||(ke==="firstUpperCase"?Se=Se.replace(/^./,function(xe){return xe.toUpperCase()}):ke==="firstLowerCase"&&(Se=Se.replace(/^./,function(xe){return xe.toLowerCase()}))),Se}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.includes.js":302,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],62:[function(oe,Ue,Fe){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.getStrBytesCount=void 0;function me(ce){for(var be=0,Le=0;Le<ce.length;Le++){var Se=ce.charAt(Le);/^[\u00-\uff]$/.test(Se)?be+=1:be+=2}return be}Fe.getStrBytesCount=me},{"core-js/modules/es.regexp.exec.js":300}],63:[function(oe,Ue,Fe){"use strict";oe("core-js/modules/es.object.to-string.js"),Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.isArray=void 0,Fe.isArray=function(me){return Object.prototype.toString.call(me)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(oe,Ue,Fe){"use strict";Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.isBlob=void 0;function me(ce){return typeof Blob!="undefined"&&ce instanceof Blob}Fe.isBlob=me},{}],65:[function(oe,Ue,Fe){(function(me){(function(){"use strict";Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.isBuffer=void 0;function ce(be){return me.isBuffer(be)}Fe.isBuffer=ce}).call(this)}).call(this,{isBuffer:oe("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(oe,Ue,Fe){(function(me){(function(){"use strict";oe("core-js/modules/es.array.includes.js"),oe("core-js/modules/es.string.includes.js"),Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.isDingTalk=void 0;function ce(){return!!(me.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}Fe.isDingTalk=ce}).call(this)}).call(this,oe("_process"))},{_process:467,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.string.includes.js":302}],67:[function(oe,Ue,Fe){"use strict";Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.isFile=void 0,Fe.isFile=function(me){return typeof File!="undefined"&&me instanceof File}},{}],68:[function(oe,Ue,Fe){"use strict";Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.isFunction=void 0,Fe.isFunction=function(me){return typeof me=="function"}},{}],69:[function(oe,Ue,Fe){"use strict";oe("core-js/modules/es.regexp.exec.js"),Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.isIP=void 0,Fe.isIP=function(me){var ce=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,be=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return ce.test(me)||be.test(me)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(oe,Ue,Fe){"use strict";oe("core-js/modules/es.object.to-string.js"),Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.isObject=void 0,Fe.isObject=function(me){return Object.prototype.toString.call(me)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(oe,Ue,Fe){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.lowercaseKeyHeader=void 0;var me=oe("./isObject");function ce(be){var Le={};return me.isObject(be)&&Object.keys(be).forEach(function(Se){Le[Se.toLowerCase()]=be[Se]}),Le}Fe.lowercaseKeyHeader=ce},{"./isObject":70,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],72:[function(oe,Ue,Fe){"use strict";oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.array.join.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.obj2xml=void 0;var me=oe("./formatObjKey");function ce(Le){return Object.prototype.toString.call(Le).replace(/(.*? |])/g,"").toLowerCase()}function be(Le,Se){var ke="";return Se&&Se.headers&&(ke=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),Se&&Se.firstUpperCase&&(Le=me.formatObjKey(Le,"firstUpperCase")),ce(Le)==="object"?Object.keys(Le).forEach(function(ve){ce(Le[ve])!=="undefined"&&ce(Le[ve])!=="null"&&(ce(Le[ve])==="string"||ce(Le[ve])==="number"?ke+="<".concat(ve,">").concat(Le[ve],"</").concat(ve,">"):ce(Le[ve])==="object"?ke+="<".concat(ve,">").concat(be(Le[ve]),"</").concat(ve,">"):ce(Le[ve])==="array"?ke+=Le[ve].map(function(xe){return"<".concat(ve,">").concat(be(xe),"</").concat(ve,">")}).join(""):ke+="<".concat(ve,">").concat(Le[ve].toString(),"</").concat(ve,">"))}):ke+=Le.toString(),ke}Fe.obj2xml=be},{"./formatObjKey":61,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],73:[function(oe,Ue,Fe){"use strict";oe("core-js/modules/es.array.slice.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.array.from.js"),oe("core-js/modules/es.string.iterator.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.symbol.js"),oe("core-js/modules/es.symbol.description.js"),oe("core-js/modules/es.symbol.iterator.js"),oe("core-js/modules/es.array.iterator.js"),oe("core-js/modules/web.dom-collections.iterator.js"),oe("core-js/modules/es.object.assign.js");function me(Se,ke){var ve=typeof Symbol!="undefined"&&Se[Symbol.iterator]||Se["@@iterator"];if(!ve){if(Array.isArray(Se)||(ve=ce(Se))||ke&&Se&&typeof Se.length=="number"){ve&&(Se=ve);var xe=0,fe=function(){};return{s:fe,n:function(){return xe>=Se.length?{done:!0}:{done:!1,value:Se[xe++]}},e:function(le){throw le},f:fe}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z=!0,ee=!1,ae;return{s:function(){ve=ve.call(Se)},n:function(){var le=ve.next();return z=le.done,le},e:function(le){ee=!0,ae=le},f:function(){try{!z&&ve.return!=null&&ve.return()}finally{if(ee)throw ae}}}}function ce(Se,ke){if(Se){if(typeof Se=="string")return be(Se,ke);var ve=Object.prototype.toString.call(Se).slice(8,-1);if(ve==="Object"&&Se.constructor&&(ve=Se.constructor.name),ve==="Map"||ve==="Set")return Array.from(Se);if(ve==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ve))return be(Se,ke)}}function be(Se,ke){(ke==null||ke>Se.length)&&(ke=Se.length);for(var ve=0,xe=new Array(ke);ve<ke;ve++)xe[ve]=Se[ve];return xe}Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.omit=void 0;function Le(Se,ke){var ve=Object.assign({},Se),xe=me(ke),fe;try{for(xe.s();!(fe=xe.n()).done;){var z=fe.value;delete ve[z]}}catch(ee){xe.e(ee)}finally{xe.f()}return ve}Fe.omit=Le},{"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.iterator.js":312,"core-js/modules/es.symbol.js":313,"core-js/modules/web.dom-collections.iterator.js":340}],74:[function(oe,Ue,Fe){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.retry=void 0;function me(ce,be){var Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Se=0,ke=Le.retryDelay,ve=ke===void 0?500:ke,xe=Le.errorHandler,fe=xe===void 0?function(){return!0}:xe,z=function ee(){for(var ae=arguments.length,re=new Array(ae),le=0;le<ae;le++)re[le]=arguments[le];return new Promise(function(ue,pe){ce.apply(void 0,re).then(function(Ce){Se=0,ue(Ce)}).catch(function(Ce){Se<be&&fe(Ce)?(Se++,setTimeout(function(){ue(ee.apply(void 0,re))},ve)):(Se=0,pe(Ce))})})};return z}Fe.retry=me},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(oe,Ue,Fe){"use strict";var me=function(Se){return Se&&Se.__esModule?Se:{default:Se}};Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.setRegion=void 0;var ce=me(oe("url")),be=oe("./checkConfigValid");function Le(Se){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;be.checkConfigValid(Se,"region");var xe=ve?"https://":"http://",fe=ke?"-internal.aliyuncs.com":".aliyuncs.com",z="vpc100-oss-cn-";return Se.substr(0,z.length)===z&&(fe=".aliyuncs.com"),ce.default.parse(xe+Se+fe)}Fe.setRegion=Le},{"./checkConfigValid":52,url:472}],76:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/regenerator"));oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.array.find.js"),oe("core-js/modules/es.object.assign.js");var be=me(oe("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.checkCredentials=Fe.setSTSToken=void 0;var Le=oe("./formatObjKey");function Se(){return ke.apply(this,arguments)}function ke(){return ke=(0,be.default)(ce.default.mark(function xe(){var fe,z;return ce.default.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:if(this.options||(this.options={}),fe=new Date,!this.stsTokenFreshTime){ae.next=14;break}if(!(+fe-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){ae.next=12;break}return this.stsTokenFreshTime=fe,ae.next=7,this.options.refreshSTSToken();case 7:z=ae.sent,z=Le.formatObjKey(z,"firstLowerCase"),z.securityToken&&(z.stsToken=z.securityToken),ve(z),Object.assign(this.options,z);case 12:ae.next=15;break;case 14:this.stsTokenFreshTime=fe;case 15:return ae.abrupt("return",null);case 16:case"end":return ae.stop()}},xe,this)})),ke.apply(this,arguments)}Fe.setSTSToken=Se;function ve(xe){var fe=["accessKeySecret","accessKeyId","stsToken"],z=Object.keys(xe);fe.forEach(function(ee){if(!z.find(function(ae){return ae===ee}))throw Error("refreshSTSToken must return contains ".concat(ee))})}Fe.checkCredentials=ve},{"./formatObjKey":61,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.find.js":275,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291}],77:[function(oe,Ue,Fe){function me(be,Le,Se,ke,ve,xe,fe){try{var z=be[xe](fe),ee=z.value}catch(ae){Se(ae);return}z.done?Le(ee):Promise.resolve(ee).then(ke,ve)}function ce(be){return function(){var Le=this,Se=arguments;return new Promise(function(ke,ve){var xe=be.apply(Le,Se);function fe(ee){me(xe,ke,ve,fe,z,"next",ee)}function z(ee){me(xe,ke,ve,fe,z,"throw",ee)}fe(void 0)})}}Ue.exports=ce,Ue.exports.__esModule=!0,Ue.exports.default=Ue.exports},{}],78:[function(oe,Ue,Fe){function me(ce){return ce&&ce.__esModule?ce:{default:ce}}Ue.exports=me,Ue.exports.__esModule=!0,Ue.exports.default=Ue.exports},{}],79:[function(oe,Ue,Fe){function me(ce){"@babel/helpers - typeof";return Ue.exports=me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(be){return typeof be}:function(be){return be&&typeof Symbol=="function"&&be.constructor===Symbol&&be!==Symbol.prototype?"symbol":typeof be},Ue.exports.__esModule=!0,Ue.exports.default=Ue.exports,me(ce)}Ue.exports=me,Ue.exports.__esModule=!0,Ue.exports.default=Ue.exports},{}],80:[function(oe,Ue,Fe){Ue.exports=oe("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(oe,Ue,Fe){Ue.exports=me,Ue.exports.HttpsAgent=me;function me(){}},{}],82:[function(oe,Ue,Fe){(function(me){(function(){"use strict";var ce=oe("object-assign");function be(et,lt){if(et===lt)return 0;for(var dt=et.length,vt=lt.length,Je=0,ot=Math.min(dt,vt);Je<ot;++Je)if(et[Je]!==lt[Je]){dt=et[Je],vt=lt[Je];break}return dt<vt?-1:vt<dt?1:0}function Le(et){return me.Buffer&&typeof me.Buffer.isBuffer=="function"?me.Buffer.isBuffer(et):!!(et!=null&&et._isBuffer)}var Se=oe("util/"),ke=Object.prototype.hasOwnProperty,ve=Array.prototype.slice,xe=function(){return function(){}.name==="foo"}();function fe(et){return Object.prototype.toString.call(et)}function z(et){return Le(et)||typeof me.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(et):et?!!(et instanceof DataView||et.buffer&&et.buffer instanceof ArrayBuffer):!1}var ee=Ue.exports=Pe,ae=/\s*function\s+([^\(\s]*)\s*/;function re(et){if(Se.isFunction(et)){if(xe)return et.name;var lt=et.toString(),dt=lt.match(ae);return dt&&dt[1]}}ee.AssertionError=function(lt){this.name="AssertionError",this.actual=lt.actual,this.expected=lt.expected,this.operator=lt.operator,lt.message?(this.message=lt.message,this.generatedMessage=!1):(this.message=pe(this),this.generatedMessage=!0);var dt=lt.stackStartFunction||Ce;if(Error.captureStackTrace)Error.captureStackTrace(this,dt);else{var vt=new Error;if(vt.stack){var Je=vt.stack,ot=re(dt),ft=Je.indexOf(`
|
|
|
`+ot);if(ft>=0){var xt=Je.indexOf(`
|
|
|
`,ft+1);Je=Je.substring(xt+1)}this.stack=Je}}},Se.inherits(ee.AssertionError,Error);function le(et,lt){return typeof et=="string"?et.length<lt?et:et.slice(0,lt):et}function ue(et){if(xe||!Se.isFunction(et))return Se.inspect(et);var lt=re(et),dt=lt?": "+lt:"";return"[Function"+dt+"]"}function pe(et){return le(ue(et.actual),128)+" "+et.operator+" "+le(ue(et.expected),128)}function Ce(et,lt,dt,vt,Je){throw new ee.AssertionError({message:dt,actual:et,expected:lt,operator:vt,stackStartFunction:Je})}ee.fail=Ce;function Pe(et,lt){et||Ce(et,!0,lt,"==",ee.ok)}ee.ok=Pe,ee.equal=function(lt,dt,vt){lt!=dt&&Ce(lt,dt,vt,"==",ee.equal)},ee.notEqual=function(lt,dt,vt){lt==dt&&Ce(lt,dt,vt,"!=",ee.notEqual)},ee.deepEqual=function(lt,dt,vt){Ie(lt,dt,!1)||Ce(lt,dt,vt,"deepEqual",ee.deepEqual)},ee.deepStrictEqual=function(lt,dt,vt){Ie(lt,dt,!0)||Ce(lt,dt,vt,"deepStrictEqual",ee.deepStrictEqual)};function Ie(et,lt,dt,vt){if(et===lt)return!0;if(Le(et)&&Le(lt))return be(et,lt)===0;if(Se.isDate(et)&&Se.isDate(lt))return et.getTime()===lt.getTime();if(Se.isRegExp(et)&&Se.isRegExp(lt))return et.source===lt.source&&et.global===lt.global&&et.multiline===lt.multiline&&et.lastIndex===lt.lastIndex&&et.ignoreCase===lt.ignoreCase;if((et===null||typeof et!="object")&&(lt===null||typeof lt!="object"))return dt?et===lt:et==lt;if(z(et)&&z(lt)&&fe(et)===fe(lt)&&!(et instanceof Float32Array||et instanceof Float64Array))return be(new Uint8Array(et.buffer),new Uint8Array(lt.buffer))===0;if(Le(et)!==Le(lt))return!1;vt=vt||{actual:[],expected:[]};var Je=vt.actual.indexOf(et);return Je!==-1&&Je===vt.expected.indexOf(lt)?!0:(vt.actual.push(et),vt.expected.push(lt),Ae(et,lt,dt,vt))}function Oe(et){return Object.prototype.toString.call(et)=="[object Arguments]"}function Ae(et,lt,dt,vt){if(et==null||lt===null||lt===void 0)return!1;if(Se.isPrimitive(et)||Se.isPrimitive(lt))return et===lt;if(dt&&Object.getPrototypeOf(et)!==Object.getPrototypeOf(lt))return!1;var Je=Oe(et),ot=Oe(lt);if(Je&&!ot||!Je&&ot)return!1;if(Je)return et=ve.call(et),lt=ve.call(lt),Ie(et,lt,dt);var ft=Ye(et),xt=Ye(lt),yt,pt;if(ft.length!==xt.length)return!1;for(ft.sort(),xt.sort(),pt=ft.length-1;pt>=0;pt--)if(ft[pt]!==xt[pt])return!1;for(pt=ft.length-1;pt>=0;pt--)if(yt=ft[pt],!Ie(et[yt],lt[yt],dt,vt))return!1;return!0}ee.notDeepEqual=function(lt,dt,vt){Ie(lt,dt,!1)&&Ce(lt,dt,vt,"notDeepEqual",ee.notDeepEqual)},ee.notDeepStrictEqual=je;function je(et,lt,dt){Ie(et,lt,!0)&&Ce(et,lt,dt,"notDeepStrictEqual",je)}ee.strictEqual=function(lt,dt,vt){lt!==dt&&Ce(lt,dt,vt,"===",ee.strictEqual)},ee.notStrictEqual=function(lt,dt,vt){lt===dt&&Ce(lt,dt,vt,"!==",ee.notStrictEqual)};function Be(et,lt){if(!et||!lt)return!1;if(Object.prototype.toString.call(lt)=="[object RegExp]")return lt.test(et);try{if(et instanceof lt)return!0}catch(dt){}return Error.isPrototypeOf(lt)?!1:lt.call({},et)===!0}function _e(et){var lt;try{et()}catch(dt){lt=dt}return lt}function qe(et,lt,dt,vt){var Je;if(typeof lt!="function")throw new TypeError('"block" argument must be a function');typeof dt=="string"&&(vt=dt,dt=null),Je=_e(lt),vt=(dt&&dt.name?" ("+dt.name+").":".")+(vt?" "+vt:"."),et&&!Je&&Ce(Je,dt,"Missing expected exception"+vt);var ot=typeof vt=="string",ft=!et&&Se.isError(Je),xt=!et&&Je&&!dt;if((ft&&ot&&Be(Je,dt)||xt)&&Ce(Je,dt,"Got unwanted exception"+vt),et&&Je&&dt&&!Be(Je,dt)||!et&&Je)throw Je}ee.throws=function(et,lt,dt){qe(!0,et,lt,dt)},ee.doesNotThrow=function(et,lt,dt){qe(!1,et,lt,dt)},ee.ifError=function(et){if(et)throw et};function ze(et,lt){et||Ce(et,!0,lt,"==",ze)}ee.strict=ce(ze,ee,{equal:ee.strictEqual,deepEqual:ee.deepStrictEqual,notEqual:ee.notStrictEqual,notDeepEqual:ee.notDeepStrictEqual}),ee.strict.strict=ee.strict;var Ye=Object.keys||function(et){var lt=[];for(var dt in et)ke.call(et,dt)&<.push(dt);return lt}}).call(this)}).call(this,typeof vn!="undefined"?vn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(oe,Ue,Fe){typeof Object.create=="function"?Ue.exports=function(ce,be){ce.super_=be,ce.prototype=Object.create(be.prototype,{constructor:{value:ce,enumerable:!1,writable:!0,configurable:!0}})}:Ue.exports=function(ce,be){ce.super_=be;var Le=function(){};Le.prototype=be.prototype,ce.prototype=new Le,ce.prototype.constructor=ce}},{}],84:[function(oe,Ue,Fe){Ue.exports=function(ce){return ce&&typeof ce=="object"&&typeof ce.copy=="function"&&typeof ce.fill=="function"&&typeof ce.readUInt8=="function"}},{}],85:[function(oe,Ue,Fe){(function(me,ce){(function(){var be=/%[sdj%]/g;Fe.format=function(xt){if(!Ae(xt)){for(var yt=[],pt=0;pt<arguments.length;pt++)yt.push(ke(arguments[pt]));return yt.join(" ")}for(var pt=1,gt=arguments,mt=gt.length,Mt=String(xt).replace(be,function(zt){if(zt==="%%")return"%";if(pt>=mt)return zt;switch(zt){case"%s":return String(gt[pt++]);case"%d":return Number(gt[pt++]);case"%j":try{return JSON.stringify(gt[pt++])}catch(St){return"[Circular]"}default:return zt}}),Ct=gt[pt];pt<mt;Ct=gt[++pt])Pe(Ct)||!qe(Ct)?Mt+=" "+Ct:Mt+=" "+ke(Ct);return Mt},Fe.deprecate=function(xt,yt){if(Be(ce.process))return function(){return Fe.deprecate(xt,yt).apply(this,arguments)};if(me.noDeprecation===!0)return xt;var pt=!1;function gt(){if(!pt){if(me.throwDeprecation)throw new Error(yt);me.traceDeprecation?console.trace(yt):console.error(yt),pt=!0}return xt.apply(this,arguments)}return gt};var Le={},Se;Fe.debuglog=function(xt){if(Be(Se)&&(Se=me.env.NODE_DEBUG||""),xt=xt.toUpperCase(),!Le[xt])if(new RegExp("\\b"+xt+"\\b","i").test(Se)){var yt=me.pid;Le[xt]=function(){var pt=Fe.format.apply(Fe,arguments);console.error("%s %d: %s",xt,yt,pt)}}else Le[xt]=function(){};return Le[xt]};function ke(xt,yt){var pt={seen:[],stylize:xe};return arguments.length>=3&&(pt.depth=arguments[2]),arguments.length>=4&&(pt.colors=arguments[3]),Ce(yt)?pt.showHidden=yt:yt&&Fe._extend(pt,yt),Be(pt.showHidden)&&(pt.showHidden=!1),Be(pt.depth)&&(pt.depth=2),Be(pt.colors)&&(pt.colors=!1),Be(pt.customInspect)&&(pt.customInspect=!0),pt.colors&&(pt.stylize=ve),z(pt,xt,pt.depth)}Fe.inspect=ke,ke.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},ke.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ve(xt,yt){var pt=ke.styles[yt];return pt?"\x1B["+ke.colors[pt][0]+"m"+xt+"\x1B["+ke.colors[pt][1]+"m":xt}function xe(xt,yt){return xt}function fe(xt){var yt={};return xt.forEach(function(pt,gt){yt[pt]=!0}),yt}function z(xt,yt,pt){if(xt.customInspect&&yt&&et(yt.inspect)&&yt.inspect!==Fe.inspect&&!(yt.constructor&&yt.constructor.prototype===yt)){var gt=yt.inspect(pt,xt);return Ae(gt)||(gt=z(xt,gt,pt)),gt}var mt=ee(xt,yt);if(mt)return mt;var Mt=Object.keys(yt),Ct=fe(Mt);if(xt.showHidden&&(Mt=Object.getOwnPropertyNames(yt)),Ye(yt)&&(Mt.indexOf("message")>=0||Mt.indexOf("description")>=0))return ae(yt);if(Mt.length===0){if(et(yt)){var zt=yt.name?": "+yt.name:"";return xt.stylize("[Function"+zt+"]","special")}if(_e(yt))return xt.stylize(RegExp.prototype.toString.call(yt),"regexp");if(ze(yt))return xt.stylize(Date.prototype.toString.call(yt),"date");if(Ye(yt))return ae(yt)}var St="",bt=!1,at=["{","}"];if(pe(yt)&&(bt=!0,at=["[","]"]),et(yt)){var nt=yt.name?": "+yt.name:"";St=" [Function"+nt+"]"}if(_e(yt)&&(St=" "+RegExp.prototype.toString.call(yt)),ze(yt)&&(St=" "+Date.prototype.toUTCString.call(yt)),Ye(yt)&&(St=" "+ae(yt)),Mt.length===0&&(!bt||yt.length==0))return at[0]+St+at[1];if(pt<0)return _e(yt)?xt.stylize(RegExp.prototype.toString.call(yt),"regexp"):xt.stylize("[Object]","special");xt.seen.push(yt);var we;return bt?we=re(xt,yt,pt,Ct,Mt):we=Mt.map(function(Te){return le(xt,yt,pt,Ct,Te,bt)}),xt.seen.pop(),ue(we,St,at)}function ee(xt,yt){if(Be(yt))return xt.stylize("undefined","undefined");if(Ae(yt)){var pt="'"+JSON.stringify(yt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return xt.stylize(pt,"string")}if(Oe(yt))return xt.stylize(""+yt,"number");if(Ce(yt))return xt.stylize(""+yt,"boolean");if(Pe(yt))return xt.stylize("null","null")}function ae(xt){return"["+Error.prototype.toString.call(xt)+"]"}function re(xt,yt,pt,gt,mt){for(var Mt=[],Ct=0,zt=yt.length;Ct<zt;++Ct)ft(yt,String(Ct))?Mt.push(le(xt,yt,pt,gt,String(Ct),!0)):Mt.push("");return mt.forEach(function(St){St.match(/^\d+$/)||Mt.push(le(xt,yt,pt,gt,St,!0))}),Mt}function le(xt,yt,pt,gt,mt,Mt){var Ct,zt,St;if(St=Object.getOwnPropertyDescriptor(yt,mt)||{value:yt[mt]},St.get?St.set?zt=xt.stylize("[Getter/Setter]","special"):zt=xt.stylize("[Getter]","special"):St.set&&(zt=xt.stylize("[Setter]","special")),ft(gt,mt)||(Ct="["+mt+"]"),zt||(xt.seen.indexOf(St.value)<0?(Pe(pt)?zt=z(xt,St.value,null):zt=z(xt,St.value,pt-1),zt.indexOf(`
|
|
|
`)>-1&&(Mt?zt=zt.split(`
|
|
|
`).map(function(bt){return" "+bt}).join(`
|
|
|
`).substr(2):zt=`
|
|
|
`+zt.split(`
|
|
|
`).map(function(bt){return" "+bt}).join(`
|
|
|
`))):zt=xt.stylize("[Circular]","special")),Be(Ct)){if(Mt&&mt.match(/^\d+$/))return zt;Ct=JSON.stringify(""+mt),Ct.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Ct=Ct.substr(1,Ct.length-2),Ct=xt.stylize(Ct,"name")):(Ct=Ct.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Ct=xt.stylize(Ct,"string"))}return Ct+": "+zt}function ue(xt,yt,pt){var gt=0,mt=xt.reduce(function(Mt,Ct){return gt++,Ct.indexOf(`
|
|
|
`)>=0&>++,Mt+Ct.replace(/\u001b\[\d\d?m/g,"").length+1},0);return mt>60?pt[0]+(yt===""?"":yt+`
|
|
|
`)+" "+xt.join(`,
|
|
|
`)+" "+pt[1]:pt[0]+yt+" "+xt.join(", ")+" "+pt[1]}function pe(xt){return Array.isArray(xt)}Fe.isArray=pe;function Ce(xt){return typeof xt=="boolean"}Fe.isBoolean=Ce;function Pe(xt){return xt===null}Fe.isNull=Pe;function Ie(xt){return xt==null}Fe.isNullOrUndefined=Ie;function Oe(xt){return typeof xt=="number"}Fe.isNumber=Oe;function Ae(xt){return typeof xt=="string"}Fe.isString=Ae;function je(xt){return typeof xt=="symbol"}Fe.isSymbol=je;function Be(xt){return xt===void 0}Fe.isUndefined=Be;function _e(xt){return qe(xt)&&dt(xt)==="[object RegExp]"}Fe.isRegExp=_e;function qe(xt){return typeof xt=="object"&&xt!==null}Fe.isObject=qe;function ze(xt){return qe(xt)&&dt(xt)==="[object Date]"}Fe.isDate=ze;function Ye(xt){return qe(xt)&&(dt(xt)==="[object Error]"||xt instanceof Error)}Fe.isError=Ye;function et(xt){return typeof xt=="function"}Fe.isFunction=et;function lt(xt){return xt===null||typeof xt=="boolean"||typeof xt=="number"||typeof xt=="string"||typeof xt=="symbol"||typeof xt=="undefined"}Fe.isPrimitive=lt,Fe.isBuffer=oe("./support/isBuffer");function dt(xt){return Object.prototype.toString.call(xt)}function vt(xt){return xt<10?"0"+xt.toString(10):xt.toString(10)}var Je=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ot(){var xt=new Date,yt=[vt(xt.getHours()),vt(xt.getMinutes()),vt(xt.getSeconds())].join(":");return[xt.getDate(),Je[xt.getMonth()],yt].join(" ")}Fe.log=function(){console.log("%s - %s",ot(),Fe.format.apply(Fe,arguments))},Fe.inherits=oe("inherits"),Fe._extend=function(xt,yt){if(!yt||!qe(yt))return xt;for(var pt=Object.keys(yt),gt=pt.length;gt--;)xt[pt[gt]]=yt[pt[gt]];return xt};function ft(xt,yt){return Object.prototype.hasOwnProperty.call(xt,yt)}}).call(this)}).call(this,oe("_process"),typeof vn!="undefined"?vn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(oe,Ue,Fe){(function(me){(function(){"use strict";var ce=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],be=typeof globalThis=="undefined"?me:globalThis;Ue.exports=function(){for(var Se=[],ke=0;ke<ce.length;ke++)typeof be[ce[ke]]=="function"&&(Se[Se.length]=ce[ke]);return Se}}).call(this)}).call(this,typeof vn!="undefined"?vn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(oe,Ue,Fe){"use strict";Fe.byteLength=xe,Fe.toByteArray=z,Fe.fromByteArray=re;for(var me=[],ce=[],be=typeof Uint8Array!="undefined"?Uint8Array:Array,Le="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Se=0,ke=Le.length;Se<ke;++Se)me[Se]=Le[Se],ce[Le.charCodeAt(Se)]=Se;ce[45]=62,ce[95]=63;function ve(le){var ue=le.length;if(ue%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var pe=le.indexOf("=");pe===-1&&(pe=ue);var Ce=pe===ue?0:4-pe%4;return[pe,Ce]}function xe(le){var ue=ve(le),pe=ue[0],Ce=ue[1];return(pe+Ce)*3/4-Ce}function fe(le,ue,pe){return(ue+pe)*3/4-pe}function z(le){var ue,pe=ve(le),Ce=pe[0],Pe=pe[1],Ie=new be(fe(le,Ce,Pe)),Oe=0,Ae=Pe>0?Ce-4:Ce,je;for(je=0;je<Ae;je+=4)ue=ce[le.charCodeAt(je)]<<18|ce[le.charCodeAt(je+1)]<<12|ce[le.charCodeAt(je+2)]<<6|ce[le.charCodeAt(je+3)],Ie[Oe++]=ue>>16&255,Ie[Oe++]=ue>>8&255,Ie[Oe++]=ue&255;return Pe===2&&(ue=ce[le.charCodeAt(je)]<<2|ce[le.charCodeAt(je+1)]>>4,Ie[Oe++]=ue&255),Pe===1&&(ue=ce[le.charCodeAt(je)]<<10|ce[le.charCodeAt(je+1)]<<4|ce[le.charCodeAt(je+2)]>>2,Ie[Oe++]=ue>>8&255,Ie[Oe++]=ue&255),Ie}function ee(le){return me[le>>18&63]+me[le>>12&63]+me[le>>6&63]+me[le&63]}function ae(le,ue,pe){for(var Ce,Pe=[],Ie=ue;Ie<pe;Ie+=3)Ce=(le[Ie]<<16&16711680)+(le[Ie+1]<<8&65280)+(le[Ie+2]&255),Pe.push(ee(Ce));return Pe.join("")}function re(le){for(var ue,pe=le.length,Ce=pe%3,Pe=[],Ie=16383,Oe=0,Ae=pe-Ce;Oe<Ae;Oe+=Ie)Pe.push(ae(le,Oe,Oe+Ie>Ae?Ae:Oe+Ie));return Ce===1?(ue=le[pe-1],Pe.push(me[ue>>2]+me[ue<<4&63]+"==")):Ce===2&&(ue=(le[pe-2]<<8)+le[pe-1],Pe.push(me[ue>>10]+me[ue>>4&63]+me[ue<<2&63]+"=")),Pe.join("")}},{}],88:[function(oe,Ue,Fe){(function(me,ce,be){typeof Ue!="undefined"&&Ue.exports?Ue.exports=be():typeof Ke=="function"&&Ke.amd?Ke(ce,be):me[ce]=be()})(this,"bowser",function(){var me=!0;function ce(fe){function z(yt){var pt=fe.match(yt);return pt&&pt.length>1&&pt[1]||""}function ee(yt){var pt=fe.match(yt);return pt&&pt.length>1&&pt[2]||""}var ae=z(/(ipod|iphone|ipad)/i).toLowerCase(),re=/like android/i.test(fe),le=!re&&/android/i.test(fe),ue=/nexus\s*[0-6]\s*/i.test(fe),pe=!ue&&/nexus\s*[0-9]+/i.test(fe),Ce=/CrOS/.test(fe),Pe=/silk/i.test(fe),Ie=/sailfish/i.test(fe),Oe=/tizen/i.test(fe),Ae=/(web|hpw)(o|0)s/i.test(fe),je=/windows phone/i.test(fe),Be=/SamsungBrowser/i.test(fe),_e=!je&&/windows/i.test(fe),qe=!ae&&!Pe&&/macintosh/i.test(fe),ze=!le&&!Ie&&!Oe&&!Ae&&/linux/i.test(fe),Ye=ee(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),et=z(/version\/(\d+(\.\d+)?)/i),lt=/tablet/i.test(fe)&&!/tablet pc/i.test(fe),dt=!lt&&/[^-]mobi/i.test(fe),vt=/xbox/i.test(fe),Je;/opera/i.test(fe)?Je={name:"Opera",opera:me,version:et||z(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(fe)?Je={name:"Opera",opera:me,version:z(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||et}:/SamsungBrowser/i.test(fe)?Je={name:"Samsung Internet for Android",samsungBrowser:me,version:et||z(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(fe)?Je={name:"NAVER Whale browser",whale:me,version:z(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(fe)?Je={name:"MZ Browser",mzbrowser:me,version:z(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(fe)?Je={name:"Opera Coast",coast:me,version:et||z(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(fe)?Je={name:"Focus",focus:me,version:z(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(fe)?Je={name:"Yandex Browser",yandexbrowser:me,version:et||z(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(fe)?Je={name:"UC Browser",ucbrowser:me,version:z(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(fe)?Je={name:"Maxthon",maxthon:me,version:z(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(fe)?Je={name:"Epiphany",epiphany:me,version:z(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(fe)?Je={name:"Puffin",puffin:me,version:z(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(fe)?Je={name:"Sleipnir",sleipnir:me,version:z(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(fe)?Je={name:"K-Meleon",kMeleon:me,version:z(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:je?(Je={name:"Windows Phone",osname:"Windows Phone",windowsphone:me},Ye?(Je.msedge=me,Je.version=Ye):(Je.msie=me,Je.version=z(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(fe)?Je={name:"Internet Explorer",msie:me,version:z(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:Ce?Je={name:"Chrome",osname:"Chrome OS",chromeos:me,chromeBook:me,chrome:me,version:z(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(fe)?Je={name:"Microsoft Edge",msedge:me,version:Ye}:/vivaldi/i.test(fe)?Je={name:"Vivaldi",vivaldi:me,version:z(/vivaldi\/(\d+(\.\d+)?)/i)||et}:Ie?Je={name:"Sailfish",osname:"Sailfish OS",sailfish:me,version:z(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(fe)?Je={name:"SeaMonkey",seamonkey:me,version:z(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(fe)?(Je={name:"Firefox",firefox:me,version:z(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(fe)&&(Je.firefoxos=me,Je.osname="Firefox OS")):Pe?Je={name:"Amazon Silk",silk:me,version:z(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(fe)?Je={name:"PhantomJS",phantom:me,version:z(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(fe)?Je={name:"SlimerJS",slimer:me,version:z(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(fe)||/rim\stablet/i.test(fe)?Je={name:"BlackBerry",osname:"BlackBerry OS",blackberry:me,version:et||z(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:Ae?(Je={name:"WebOS",osname:"WebOS",webos:me,version:et||z(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(fe)&&(Je.touchpad=me)):/bada/i.test(fe)?Je={name:"Bada",osname:"Bada",bada:me,version:z(/dolfin\/(\d+(\.\d+)?)/i)}:Oe?Je={name:"Tizen",osname:"Tizen",tizen:me,version:z(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||et}:/qupzilla/i.test(fe)?Je={name:"QupZilla",qupzilla:me,version:z(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||et}:/chromium/i.test(fe)?Je={name:"Chromium",chromium:me,version:z(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||et}:/chrome|crios|crmo/i.test(fe)?Je={name:"Chrome",chrome:me,version:z(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:le?Je={name:"Android",version:et}:/safari|applewebkit/i.test(fe)?(Je={name:"Safari",safari:me},et&&(Je.version=et)):ae?(Je={name:ae=="iphone"?"iPhone":ae=="ipad"?"iPad":"iPod"},et&&(Je.version=et)):/googlebot/i.test(fe)?Je={name:"Googlebot",googlebot:me,version:z(/googlebot\/(\d+(\.\d+))/i)||et}:Je={name:z(/^(.*)\/(.*) /),version:ee(/^(.*)\/(.*) /)},!Je.msedge&&/(apple)?webkit/i.test(fe)?(/(apple)?webkit\/537\.36/i.test(fe)?(Je.name=Je.name||"Blink",Je.blink=me):(Je.name=Je.name||"Webkit",Je.webkit=me),!Je.version&&et&&(Je.version=et)):!Je.opera&&/gecko\//i.test(fe)&&(Je.name=Je.name||"Gecko",Je.gecko=me,Je.version=Je.version||z(/gecko\/(\d+(\.\d+)?)/i)),!Je.windowsphone&&(le||Je.silk)?(Je.android=me,Je.osname="Android"):!Je.windowsphone&&ae?(Je[ae]=me,Je.ios=me,Je.osname="iOS"):qe?(Je.mac=me,Je.osname="macOS"):vt?(Je.xbox=me,Je.osname="Xbox"):_e?(Je.windows=me,Je.osname="Windows"):ze&&(Je.linux=me,Je.osname="Linux");function ot(yt){switch(yt){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var ft="";Je.windows?ft=ot(z(/Windows ((NT|XP)( \d\d?.\d)?)/i)):Je.windowsphone?ft=z(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):Je.mac?(ft=z(/Mac OS X (\d+([_\.\s]\d+)*)/i),ft=ft.replace(/[_\s]/g,".")):ae?(ft=z(/os (\d+([_\s]\d+)*) like mac os x/i),ft=ft.replace(/[_\s]/g,".")):le?ft=z(/android[ \/-](\d+(\.\d+)*)/i):Je.webos?ft=z(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):Je.blackberry?ft=z(/rim\stablet\sos\s(\d+(\.\d+)*)/i):Je.bada?ft=z(/bada\/(\d+(\.\d+)*)/i):Je.tizen&&(ft=z(/tizen[\/\s](\d+(\.\d+)*)/i)),ft&&(Je.osversion=ft);var xt=!Je.windows&&ft.split(".")[0];return lt||pe||ae=="ipad"||le&&(xt==3||xt>=4&&!dt)||Je.silk?Je.tablet=me:(dt||ae=="iphone"||ae=="ipod"||le||ue||Je.blackberry||Je.webos||Je.bada)&&(Je.mobile=me),Je.msedge||Je.msie&&Je.version>=10||Je.yandexbrowser&&Je.version>=15||Je.vivaldi&&Je.version>=1||Je.chrome&&Je.version>=20||Je.samsungBrowser&&Je.version>=4||Je.whale&&ke([Je.version,"1.0"])===1||Je.mzbrowser&&ke([Je.version,"6.0"])===1||Je.focus&&ke([Je.version,"1.0"])===1||Je.firefox&&Je.version>=20||Je.safari&&Je.version>=6||Je.opera&&Je.version>=10||Je.ios&&Je.osversion&&Je.osversion.split(".")[0]>=6||Je.blackberry&&Je.version>=10.1||Je.chromium&&Je.version>=20?Je.a=me:Je.msie&&Je.version<10||Je.chrome&&Je.version<20||Je.firefox&&Je.version<20||Je.safari&&Je.version<6||Je.opera&&Je.version<10||Je.ios&&Je.osversion&&Je.osversion.split(".")[0]<6||Je.chromium&&Je.version<20?Je.c=me:Je.x=me,Je}var be=ce(typeof navigator!="undefined"&&navigator.userAgent||"");be.test=function(fe){for(var z=0;z<fe.length;++z){var ee=fe[z];if(typeof ee=="string"&&ee in be)return!0}return!1};function Le(fe){return fe.split(".").length}function Se(fe,z){var ee=[],ae;if(Array.prototype.map)return Array.prototype.map.call(fe,z);for(ae=0;ae<fe.length;ae++)ee.push(z(fe[ae]));return ee}function ke(fe){for(var z=Math.max(Le(fe[0]),Le(fe[1])),ee=Se(fe,function(ae){var re=z-Le(ae);return ae=ae+new Array(re+1).join(".0"),Se(ae.split("."),function(le){return new Array(20-le.length).join("0")+le}).reverse()});--z>=0;){if(ee[0][z]>ee[1][z])return 1;if(ee[0][z]===ee[1][z]){if(z===0)return 0}else return-1}}function ve(fe,z,ee){var ae=be;typeof z=="string"&&(ee=z,z=void 0),z===void 0&&(z=!1),ee&&(ae=ce(ee));var re=""+ae.version;for(var le in fe)if(fe.hasOwnProperty(le)&&ae[le]){if(typeof fe[le]!="string")throw new Error("Browser version in the minVersion map should be a string: "+le+": "+String(fe));return ke([re,fe[le]])<0}return z}function xe(fe,z,ee){return!ve(fe,z,ee)}return be.isUnsupportedBrowser=ve,be.compareVersions=ke,be.check=xe,be._detect=ce,be.detect=ce,be})},{}],89:[function(oe,Ue,Fe){},{}],90:[function(oe,Ue,Fe){(function(me){(function(){"use strict";var ce=oe("base64-js"),be=oe("ieee754");Fe.Buffer=ve,Fe.SlowBuffer=Ce,Fe.INSPECT_MAX_BYTES=50;var Le=2147483647;Fe.kMaxLength=Le,ve.TYPED_ARRAY_SUPPORT=Se(),!ve.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Se(){try{var Ge=new Uint8Array(1);return Ge.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Ge.foo()===42}catch(He){return!1}}Object.defineProperty(ve.prototype,"parent",{enumerable:!0,get:function(){if(ve.isBuffer(this))return this.buffer}}),Object.defineProperty(ve.prototype,"offset",{enumerable:!0,get:function(){if(ve.isBuffer(this))return this.byteOffset}});function ke(Ge){if(Ge>Le)throw new RangeError('The value "'+Ge+'" is invalid for option "size"');var He=new Uint8Array(Ge);return He.__proto__=ve.prototype,He}function ve(Ge,He,We){if(typeof Ge=="number"){if(typeof He=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ee(Ge)}return xe(Ge,He,We)}typeof Symbol!="undefined"&&Symbol.species!=null&&ve[Symbol.species]===ve&&Object.defineProperty(ve,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),ve.poolSize=8192;function xe(Ge,He,We){if(typeof Ge=="string")return ae(Ge,He);if(ArrayBuffer.isView(Ge))return re(Ge);if(Ge==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ge);if(Ze(Ge,ArrayBuffer)||Ge&&Ze(Ge.buffer,ArrayBuffer))return le(Ge,He,We);if(typeof Ge=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Xe=Ge.valueOf&&Ge.valueOf();if(Xe!=null&&Xe!==Ge)return ve.from(Xe,He,We);var ct=ue(Ge);if(ct)return ct;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Ge[Symbol.toPrimitive]=="function")return ve.from(Ge[Symbol.toPrimitive]("string"),He,We);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ge)}ve.from=function(Ge,He,We){return xe(Ge,He,We)},ve.prototype.__proto__=Uint8Array.prototype,ve.__proto__=Uint8Array;function fe(Ge){if(typeof Ge!="number")throw new TypeError('"size" argument must be of type number');if(Ge<0)throw new RangeError('The value "'+Ge+'" is invalid for option "size"')}function z(Ge,He,We){return fe(Ge),Ge<=0?ke(Ge):He!==void 0?typeof We=="string"?ke(Ge).fill(He,We):ke(Ge).fill(He):ke(Ge)}ve.alloc=function(Ge,He,We){return z(Ge,He,We)};function ee(Ge){return fe(Ge),ke(Ge<0?0:pe(Ge)|0)}ve.allocUnsafe=function(Ge){return ee(Ge)},ve.allocUnsafeSlow=function(Ge){return ee(Ge)};function ae(Ge,He){if((typeof He!="string"||He==="")&&(He="utf8"),!ve.isEncoding(He))throw new TypeError("Unknown encoding: "+He);var We=Pe(Ge,He)|0,Xe=ke(We),ct=Xe.write(Ge,He);return ct!==We&&(Xe=Xe.slice(0,ct)),Xe}function re(Ge){for(var He=Ge.length<0?0:pe(Ge.length)|0,We=ke(He),Xe=0;Xe<He;Xe+=1)We[Xe]=Ge[Xe]&255;return We}function le(Ge,He,We){if(He<0||Ge.byteLength<He)throw new RangeError('"offset" is outside of buffer bounds');if(Ge.byteLength<He+(We||0))throw new RangeError('"length" is outside of buffer bounds');var Xe;return He===void 0&&We===void 0?Xe=new Uint8Array(Ge):We===void 0?Xe=new Uint8Array(Ge,He):Xe=new Uint8Array(Ge,He,We),Xe.__proto__=ve.prototype,Xe}function ue(Ge){if(ve.isBuffer(Ge)){var He=pe(Ge.length)|0,We=ke(He);return We.length===0||Ge.copy(We,0,0,He),We}if(Ge.length!==void 0)return typeof Ge.length!="number"||Ee(Ge.length)?ke(0):re(Ge);if(Ge.type==="Buffer"&&Array.isArray(Ge.data))return re(Ge.data)}function pe(Ge){if(Ge>=Le)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Le.toString(16)+" bytes");return Ge|0}function Ce(Ge){return+Ge!=Ge&&(Ge=0),ve.alloc(+Ge)}ve.isBuffer=function(He){return He!=null&&He._isBuffer===!0&&He!==ve.prototype},ve.compare=function(He,We){if(Ze(He,Uint8Array)&&(He=ve.from(He,He.offset,He.byteLength)),Ze(We,Uint8Array)&&(We=ve.from(We,We.offset,We.byteLength)),!ve.isBuffer(He)||!ve.isBuffer(We))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(He===We)return 0;for(var Xe=He.length,ct=We.length,Et=0,ht=Math.min(Xe,ct);Et<ht;++Et)if(He[Et]!==We[Et]){Xe=He[Et],ct=We[Et];break}return Xe<ct?-1:ct<Xe?1:0},ve.isEncoding=function(He){switch(String(He).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},ve.concat=function(He,We){if(!Array.isArray(He))throw new TypeError('"list" argument must be an Array of Buffers');if(He.length===0)return ve.alloc(0);var Xe;if(We===void 0)for(We=0,Xe=0;Xe<He.length;++Xe)We+=He[Xe].length;var ct=ve.allocUnsafe(We),Et=0;for(Xe=0;Xe<He.length;++Xe){var ht=He[Xe];if(Ze(ht,Uint8Array)&&(ht=ve.from(ht)),!ve.isBuffer(ht))throw new TypeError('"list" argument must be an Array of Buffers');ht.copy(ct,Et),Et+=ht.length}return ct};function Pe(Ge,He){if(ve.isBuffer(Ge))return Ge.length;if(ArrayBuffer.isView(Ge)||Ze(Ge,ArrayBuffer))return Ge.byteLength;if(typeof Ge!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ge);var We=Ge.length,Xe=arguments.length>2&&arguments[2]===!0;if(!Xe&&We===0)return 0;for(var ct=!1;;)switch(He){case"ascii":case"latin1":case"binary":return We;case"utf8":case"utf-8":return at(Ge).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return We*2;case"hex":return We>>>1;case"base64":return Te(Ge).length;default:if(ct)return Xe?-1:at(Ge).length;He=(""+He).toLowerCase(),ct=!0}}ve.byteLength=Pe;function Ie(Ge,He,We){var Xe=!1;if((He===void 0||He<0)&&(He=0),He>this.length||((We===void 0||We>this.length)&&(We=this.length),We<=0)||(We>>>=0,He>>>=0,We<=He))return"";for(Ge||(Ge="utf8");;)switch(Ge){case"hex":return xt(this,He,We);case"utf8":case"utf-8":return dt(this,He,We);case"ascii":return ot(this,He,We);case"latin1":case"binary":return ft(this,He,We);case"base64":return lt(this,He,We);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return yt(this,He,We);default:if(Xe)throw new TypeError("Unknown encoding: "+Ge);Ge=(Ge+"").toLowerCase(),Xe=!0}}ve.prototype._isBuffer=!0;function Oe(Ge,He,We){var Xe=Ge[He];Ge[He]=Ge[We],Ge[We]=Xe}ve.prototype.swap16=function(){var He=this.length;if(He%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var We=0;We<He;We+=2)Oe(this,We,We+1);return this},ve.prototype.swap32=function(){var He=this.length;if(He%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var We=0;We<He;We+=4)Oe(this,We,We+3),Oe(this,We+1,We+2);return this},ve.prototype.swap64=function(){var He=this.length;if(He%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var We=0;We<He;We+=8)Oe(this,We,We+7),Oe(this,We+1,We+6),Oe(this,We+2,We+5),Oe(this,We+3,We+4);return this},ve.prototype.toString=function(){var He=this.length;return He===0?"":arguments.length===0?dt(this,0,He):Ie.apply(this,arguments)},ve.prototype.toLocaleString=ve.prototype.toString,ve.prototype.equals=function(He){if(!ve.isBuffer(He))throw new TypeError("Argument must be a Buffer");return this===He?!0:ve.compare(this,He)===0},ve.prototype.inspect=function(){var He="",We=Fe.INSPECT_MAX_BYTES;return He=this.toString("hex",0,We).replace(/(.{2})/g,"$1 ").trim(),this.length>We&&(He+=" ... "),"<Buffer "+He+">"},ve.prototype.compare=function(He,We,Xe,ct,Et){if(Ze(He,Uint8Array)&&(He=ve.from(He,He.offset,He.byteLength)),!ve.isBuffer(He))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof He);if(We===void 0&&(We=0),Xe===void 0&&(Xe=He?He.length:0),ct===void 0&&(ct=0),Et===void 0&&(Et=this.length),We<0||Xe>He.length||ct<0||Et>this.length)throw new RangeError("out of range index");if(ct>=Et&&We>=Xe)return 0;if(ct>=Et)return-1;if(We>=Xe)return 1;if(We>>>=0,Xe>>>=0,ct>>>=0,Et>>>=0,this===He)return 0;for(var ht=Et-ct,It=Xe-We,qt=Math.min(ht,It),$t=this.slice(ct,Et),Wt=He.slice(We,Xe),Ut=0;Ut<qt;++Ut)if($t[Ut]!==Wt[Ut]){ht=$t[Ut],It=Wt[Ut];break}return ht<It?-1:It<ht?1:0};function Ae(Ge,He,We,Xe,ct){if(Ge.length===0)return-1;if(typeof We=="string"?(Xe=We,We=0):We>2147483647?We=2147483647:We<-2147483648&&(We=-2147483648),We=+We,Ee(We)&&(We=ct?0:Ge.length-1),We<0&&(We=Ge.length+We),We>=Ge.length){if(ct)return-1;We=Ge.length-1}else if(We<0)if(ct)We=0;else return-1;if(typeof He=="string"&&(He=ve.from(He,Xe)),ve.isBuffer(He))return He.length===0?-1:je(Ge,He,We,Xe,ct);if(typeof He=="number")return He=He&255,typeof Uint8Array.prototype.indexOf=="function"?ct?Uint8Array.prototype.indexOf.call(Ge,He,We):Uint8Array.prototype.lastIndexOf.call(Ge,He,We):je(Ge,[He],We,Xe,ct);throw new TypeError("val must be string, number or Buffer")}function je(Ge,He,We,Xe,ct){var Et=1,ht=Ge.length,It=He.length;if(Xe!==void 0&&(Xe=String(Xe).toLowerCase(),Xe==="ucs2"||Xe==="ucs-2"||Xe==="utf16le"||Xe==="utf-16le")){if(Ge.length<2||He.length<2)return-1;Et=2,ht/=2,It/=2,We/=2}function qt(kt,Xt){return Et===1?kt[Xt]:kt.readUInt16BE(Xt*Et)}var $t;if(ct){var Wt=-1;for($t=We;$t<ht;$t++)if(qt(Ge,$t)===qt(He,Wt===-1?0:$t-Wt)){if(Wt===-1&&(Wt=$t),$t-Wt+1===It)return Wt*Et}else Wt!==-1&&($t-=$t-Wt),Wt=-1}else for(We+It>ht&&(We=ht-It),$t=We;$t>=0;$t--){for(var Ut=!0,ln=0;ln<It;ln++)if(qt(Ge,$t+ln)!==qt(He,ln)){Ut=!1;break}if(Ut)return $t}return-1}ve.prototype.includes=function(He,We,Xe){return this.indexOf(He,We,Xe)!==-1},ve.prototype.indexOf=function(He,We,Xe){return Ae(this,He,We,Xe,!0)},ve.prototype.lastIndexOf=function(He,We,Xe){return Ae(this,He,We,Xe,!1)};function Be(Ge,He,We,Xe){We=Number(We)||0;var ct=Ge.length-We;Xe?(Xe=Number(Xe),Xe>ct&&(Xe=ct)):Xe=ct;var Et=He.length;Xe>Et/2&&(Xe=Et/2);for(var ht=0;ht<Xe;++ht){var It=parseInt(He.substr(ht*2,2),16);if(Ee(It))return ht;Ge[We+ht]=It}return ht}function _e(Ge,He,We,Xe){return Ve(at(He,Ge.length-We),Ge,We,Xe)}function qe(Ge,He,We,Xe){return Ve(nt(He),Ge,We,Xe)}function ze(Ge,He,We,Xe){return qe(Ge,He,We,Xe)}function Ye(Ge,He,We,Xe){return Ve(Te(He),Ge,We,Xe)}function et(Ge,He,We,Xe){return Ve(we(He,Ge.length-We),Ge,We,Xe)}ve.prototype.write=function(He,We,Xe,ct){if(We===void 0)ct="utf8",Xe=this.length,We=0;else if(Xe===void 0&&typeof We=="string")ct=We,Xe=this.length,We=0;else if(isFinite(We))We=We>>>0,isFinite(Xe)?(Xe=Xe>>>0,ct===void 0&&(ct="utf8")):(ct=Xe,Xe=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Et=this.length-We;if((Xe===void 0||Xe>Et)&&(Xe=Et),He.length>0&&(Xe<0||We<0)||We>this.length)throw new RangeError("Attempt to write outside buffer bounds");ct||(ct="utf8");for(var ht=!1;;)switch(ct){case"hex":return Be(this,He,We,Xe);case"utf8":case"utf-8":return _e(this,He,We,Xe);case"ascii":return qe(this,He,We,Xe);case"latin1":case"binary":return ze(this,He,We,Xe);case"base64":return Ye(this,He,We,Xe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return et(this,He,We,Xe);default:if(ht)throw new TypeError("Unknown encoding: "+ct);ct=(""+ct).toLowerCase(),ht=!0}},ve.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function lt(Ge,He,We){return He===0&&We===Ge.length?ce.fromByteArray(Ge):ce.fromByteArray(Ge.slice(He,We))}function dt(Ge,He,We){We=Math.min(Ge.length,We);for(var Xe=[],ct=He;ct<We;){var Et=Ge[ct],ht=null,It=Et>239?4:Et>223?3:Et>191?2:1;if(ct+It<=We){var qt,$t,Wt,Ut;switch(It){case 1:Et<128&&(ht=Et);break;case 2:qt=Ge[ct+1],(qt&192)===128&&(Ut=(Et&31)<<6|qt&63,Ut>127&&(ht=Ut));break;case 3:qt=Ge[ct+1],$t=Ge[ct+2],(qt&192)===128&&($t&192)===128&&(Ut=(Et&15)<<12|(qt&63)<<6|$t&63,Ut>2047&&(Ut<55296||Ut>57343)&&(ht=Ut));break;case 4:qt=Ge[ct+1],$t=Ge[ct+2],Wt=Ge[ct+3],(qt&192)===128&&($t&192)===128&&(Wt&192)===128&&(Ut=(Et&15)<<18|(qt&63)<<12|($t&63)<<6|Wt&63,Ut>65535&&Ut<1114112&&(ht=Ut))}}ht===null?(ht=65533,It=1):ht>65535&&(ht-=65536,Xe.push(ht>>>10&1023|55296),ht=56320|ht&1023),Xe.push(ht),ct+=It}return Je(Xe)}var vt=4096;function Je(Ge){var He=Ge.length;if(He<=vt)return String.fromCharCode.apply(String,Ge);for(var We="",Xe=0;Xe<He;)We+=String.fromCharCode.apply(String,Ge.slice(Xe,Xe+=vt));return We}function ot(Ge,He,We){var Xe="";We=Math.min(Ge.length,We);for(var ct=He;ct<We;++ct)Xe+=String.fromCharCode(Ge[ct]&127);return Xe}function ft(Ge,He,We){var Xe="";We=Math.min(Ge.length,We);for(var ct=He;ct<We;++ct)Xe+=String.fromCharCode(Ge[ct]);return Xe}function xt(Ge,He,We){var Xe=Ge.length;(!He||He<0)&&(He=0),(!We||We<0||We>Xe)&&(We=Xe);for(var ct="",Et=He;Et<We;++Et)ct+=bt(Ge[Et]);return ct}function yt(Ge,He,We){for(var Xe=Ge.slice(He,We),ct="",Et=0;Et<Xe.length;Et+=2)ct+=String.fromCharCode(Xe[Et]+Xe[Et+1]*256);return ct}ve.prototype.slice=function(He,We){var Xe=this.length;He=~~He,We=We===void 0?Xe:~~We,He<0?(He+=Xe,He<0&&(He=0)):He>Xe&&(He=Xe),We<0?(We+=Xe,We<0&&(We=0)):We>Xe&&(We=Xe),We<He&&(We=He);var ct=this.subarray(He,We);return ct.__proto__=ve.prototype,ct};function pt(Ge,He,We){if(Ge%1!==0||Ge<0)throw new RangeError("offset is not uint");if(Ge+He>We)throw new RangeError("Trying to access beyond buffer length")}ve.prototype.readUIntLE=function(He,We,Xe){He=He>>>0,We=We>>>0,Xe||pt(He,We,this.length);for(var ct=this[He],Et=1,ht=0;++ht<We&&(Et*=256);)ct+=this[He+ht]*Et;return ct},ve.prototype.readUIntBE=function(He,We,Xe){He=He>>>0,We=We>>>0,Xe||pt(He,We,this.length);for(var ct=this[He+--We],Et=1;We>0&&(Et*=256);)ct+=this[He+--We]*Et;return ct},ve.prototype.readUInt8=function(He,We){return He=He>>>0,We||pt(He,1,this.length),this[He]},ve.prototype.readUInt16LE=function(He,We){return He=He>>>0,We||pt(He,2,this.length),this[He]|this[He+1]<<8},ve.prototype.readUInt16BE=function(He,We){return He=He>>>0,We||pt(He,2,this.length),this[He]<<8|this[He+1]},ve.prototype.readUInt32LE=function(He,We){return He=He>>>0,We||pt(He,4,this.length),(this[He]|this[He+1]<<8|this[He+2]<<16)+this[He+3]*16777216},ve.prototype.readUInt32BE=function(He,We){return He=He>>>0,We||pt(He,4,this.length),this[He]*16777216+(this[He+1]<<16|this[He+2]<<8|this[He+3])},ve.prototype.readIntLE=function(He,We,Xe){He=He>>>0,We=We>>>0,Xe||pt(He,We,this.length);for(var ct=this[He],Et=1,ht=0;++ht<We&&(Et*=256);)ct+=this[He+ht]*Et;return Et*=128,ct>=Et&&(ct-=Math.pow(2,8*We)),ct},ve.prototype.readIntBE=function(He,We,Xe){He=He>>>0,We=We>>>0,Xe||pt(He,We,this.length);for(var ct=We,Et=1,ht=this[He+--ct];ct>0&&(Et*=256);)ht+=this[He+--ct]*Et;return Et*=128,ht>=Et&&(ht-=Math.pow(2,8*We)),ht},ve.prototype.readInt8=function(He,We){return He=He>>>0,We||pt(He,1,this.length),this[He]&128?(255-this[He]+1)*-1:this[He]},ve.prototype.readInt16LE=function(He,We){He=He>>>0,We||pt(He,2,this.length);var Xe=this[He]|this[He+1]<<8;return Xe&32768?Xe|4294901760:Xe},ve.prototype.readInt16BE=function(He,We){He=He>>>0,We||pt(He,2,this.length);var Xe=this[He+1]|this[He]<<8;return Xe&32768?Xe|4294901760:Xe},ve.prototype.readInt32LE=function(He,We){return He=He>>>0,We||pt(He,4,this.length),this[He]|this[He+1]<<8|this[He+2]<<16|this[He+3]<<24},ve.prototype.readInt32BE=function(He,We){return He=He>>>0,We||pt(He,4,this.length),this[He]<<24|this[He+1]<<16|this[He+2]<<8|this[He+3]},ve.prototype.readFloatLE=function(He,We){return He=He>>>0,We||pt(He,4,this.length),be.read(this,He,!0,23,4)},ve.prototype.readFloatBE=function(He,We){return He=He>>>0,We||pt(He,4,this.length),be.read(this,He,!1,23,4)},ve.prototype.readDoubleLE=function(He,We){return He=He>>>0,We||pt(He,8,this.length),be.read(this,He,!0,52,8)},ve.prototype.readDoubleBE=function(He,We){return He=He>>>0,We||pt(He,8,this.length),be.read(this,He,!1,52,8)};function gt(Ge,He,We,Xe,ct,Et){if(!ve.isBuffer(Ge))throw new TypeError('"buffer" argument must be a Buffer instance');if(He>ct||He<Et)throw new RangeError('"value" argument is out of bounds');if(We+Xe>Ge.length)throw new RangeError("Index out of range")}ve.prototype.writeUIntLE=function(He,We,Xe,ct){if(He=+He,We=We>>>0,Xe=Xe>>>0,!ct){var Et=Math.pow(2,8*Xe)-1;gt(this,He,We,Xe,Et,0)}var ht=1,It=0;for(this[We]=He&255;++It<Xe&&(ht*=256);)this[We+It]=He/ht&255;return We+Xe},ve.prototype.writeUIntBE=function(He,We,Xe,ct){if(He=+He,We=We>>>0,Xe=Xe>>>0,!ct){var Et=Math.pow(2,8*Xe)-1;gt(this,He,We,Xe,Et,0)}var ht=Xe-1,It=1;for(this[We+ht]=He&255;--ht>=0&&(It*=256);)this[We+ht]=He/It&255;return We+Xe},ve.prototype.writeUInt8=function(He,We,Xe){return He=+He,We=We>>>0,Xe||gt(this,He,We,1,255,0),this[We]=He&255,We+1},ve.prototype.writeUInt16LE=function(He,We,Xe){return He=+He,We=We>>>0,Xe||gt(this,He,We,2,65535,0),this[We]=He&255,this[We+1]=He>>>8,We+2},ve.prototype.writeUInt16BE=function(He,We,Xe){return He=+He,We=We>>>0,Xe||gt(this,He,We,2,65535,0),this[We]=He>>>8,this[We+1]=He&255,We+2},ve.prototype.writeUInt32LE=function(He,We,Xe){return He=+He,We=We>>>0,Xe||gt(this,He,We,4,4294967295,0),this[We+3]=He>>>24,this[We+2]=He>>>16,this[We+1]=He>>>8,this[We]=He&255,We+4},ve.prototype.writeUInt32BE=function(He,We,Xe){return He=+He,We=We>>>0,Xe||gt(this,He,We,4,4294967295,0),this[We]=He>>>24,this[We+1]=He>>>16,this[We+2]=He>>>8,this[We+3]=He&255,We+4},ve.prototype.writeIntLE=function(He,We,Xe,ct){if(He=+He,We=We>>>0,!ct){var Et=Math.pow(2,8*Xe-1);gt(this,He,We,Xe,Et-1,-Et)}var ht=0,It=1,qt=0;for(this[We]=He&255;++ht<Xe&&(It*=256);)He<0&&qt===0&&this[We+ht-1]!==0&&(qt=1),this[We+ht]=(He/It>>0)-qt&255;return We+Xe},ve.prototype.writeIntBE=function(He,We,Xe,ct){if(He=+He,We=We>>>0,!ct){var Et=Math.pow(2,8*Xe-1);gt(this,He,We,Xe,Et-1,-Et)}var ht=Xe-1,It=1,qt=0;for(this[We+ht]=He&255;--ht>=0&&(It*=256);)He<0&&qt===0&&this[We+ht+1]!==0&&(qt=1),this[We+ht]=(He/It>>0)-qt&255;return We+Xe},ve.prototype.writeInt8=function(He,We,Xe){return He=+He,We=We>>>0,Xe||gt(this,He,We,1,127,-128),He<0&&(He=255+He+1),this[We]=He&255,We+1},ve.prototype.writeInt16LE=function(He,We,Xe){return He=+He,We=We>>>0,Xe||gt(this,He,We,2,32767,-32768),this[We]=He&255,this[We+1]=He>>>8,We+2},ve.prototype.writeInt16BE=function(He,We,Xe){return He=+He,We=We>>>0,Xe||gt(this,He,We,2,32767,-32768),this[We]=He>>>8,this[We+1]=He&255,We+2},ve.prototype.writeInt32LE=function(He,We,Xe){return He=+He,We=We>>>0,Xe||gt(this,He,We,4,2147483647,-2147483648),this[We]=He&255,this[We+1]=He>>>8,this[We+2]=He>>>16,this[We+3]=He>>>24,We+4},ve.prototype.writeInt32BE=function(He,We,Xe){return He=+He,We=We>>>0,Xe||gt(this,He,We,4,2147483647,-2147483648),He<0&&(He=4294967295+He+1),this[We]=He>>>24,this[We+1]=He>>>16,this[We+2]=He>>>8,this[We+3]=He&255,We+4};function mt(Ge,He,We,Xe,ct,Et){if(We+Xe>Ge.length)throw new RangeError("Index out of range");if(We<0)throw new RangeError("Index out of range")}function Mt(Ge,He,We,Xe,ct){return He=+He,We=We>>>0,ct||mt(Ge,He,We,4,34028234663852886e22,-34028234663852886e22),be.write(Ge,He,We,Xe,23,4),We+4}ve.prototype.writeFloatLE=function(He,We,Xe){return Mt(this,He,We,!0,Xe)},ve.prototype.writeFloatBE=function(He,We,Xe){return Mt(this,He,We,!1,Xe)};function Ct(Ge,He,We,Xe,ct){return He=+He,We=We>>>0,ct||mt(Ge,He,We,8,17976931348623157e292,-17976931348623157e292),be.write(Ge,He,We,Xe,52,8),We+8}ve.prototype.writeDoubleLE=function(He,We,Xe){return Ct(this,He,We,!0,Xe)},ve.prototype.writeDoubleBE=function(He,We,Xe){return Ct(this,He,We,!1,Xe)},ve.prototype.copy=function(He,We,Xe,ct){if(!ve.isBuffer(He))throw new TypeError("argument should be a Buffer");if(Xe||(Xe=0),!ct&&ct!==0&&(ct=this.length),We>=He.length&&(We=He.length),We||(We=0),ct>0&&ct<Xe&&(ct=Xe),ct===Xe||He.length===0||this.length===0)return 0;if(We<0)throw new RangeError("targetStart out of bounds");if(Xe<0||Xe>=this.length)throw new RangeError("Index out of range");if(ct<0)throw new RangeError("sourceEnd out of bounds");ct>this.length&&(ct=this.length),He.length-We<ct-Xe&&(ct=He.length-We+Xe);var Et=ct-Xe;if(this===He&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(We,Xe,ct);else if(this===He&&Xe<We&&We<ct)for(var ht=Et-1;ht>=0;--ht)He[ht+We]=this[ht+Xe];else Uint8Array.prototype.set.call(He,this.subarray(Xe,ct),We);return Et},ve.prototype.fill=function(He,We,Xe,ct){if(typeof He=="string"){if(typeof We=="string"?(ct=We,We=0,Xe=this.length):typeof Xe=="string"&&(ct=Xe,Xe=this.length),ct!==void 0&&typeof ct!="string")throw new TypeError("encoding must be a string");if(typeof ct=="string"&&!ve.isEncoding(ct))throw new TypeError("Unknown encoding: "+ct);if(He.length===1){var Et=He.charCodeAt(0);(ct==="utf8"&&Et<128||ct==="latin1")&&(He=Et)}}else typeof He=="number"&&(He=He&255);if(We<0||this.length<We||this.length<Xe)throw new RangeError("Out of range index");if(Xe<=We)return this;We=We>>>0,Xe=Xe===void 0?this.length:Xe>>>0,He||(He=0);var ht;if(typeof He=="number")for(ht=We;ht<Xe;++ht)this[ht]=He;else{var It=ve.isBuffer(He)?He:ve.from(He,ct),qt=It.length;if(qt===0)throw new TypeError('The value "'+He+'" is invalid for argument "value"');for(ht=0;ht<Xe-We;++ht)this[ht+We]=It[ht%qt]}return this};var zt=/[^+/0-9A-Za-z-_]/g;function St(Ge){if(Ge=Ge.split("=")[0],Ge=Ge.trim().replace(zt,""),Ge.length<2)return"";for(;Ge.length%4!==0;)Ge=Ge+"=";return Ge}function bt(Ge){return Ge<16?"0"+Ge.toString(16):Ge.toString(16)}function at(Ge,He){He=He||1/0;for(var We,Xe=Ge.length,ct=null,Et=[],ht=0;ht<Xe;++ht){if(We=Ge.charCodeAt(ht),We>55295&&We<57344){if(!ct){if(We>56319){(He-=3)>-1&&Et.push(239,191,189);continue}else if(ht+1===Xe){(He-=3)>-1&&Et.push(239,191,189);continue}ct=We;continue}if(We<56320){(He-=3)>-1&&Et.push(239,191,189),ct=We;continue}We=(ct-55296<<10|We-56320)+65536}else ct&&(He-=3)>-1&&Et.push(239,191,189);if(ct=null,We<128){if((He-=1)<0)break;Et.push(We)}else if(We<2048){if((He-=2)<0)break;Et.push(We>>6|192,We&63|128)}else if(We<65536){if((He-=3)<0)break;Et.push(We>>12|224,We>>6&63|128,We&63|128)}else if(We<1114112){if((He-=4)<0)break;Et.push(We>>18|240,We>>12&63|128,We>>6&63|128,We&63|128)}else throw new Error("Invalid code point")}return Et}function nt(Ge){for(var He=[],We=0;We<Ge.length;++We)He.push(Ge.charCodeAt(We)&255);return He}function we(Ge,He){for(var We,Xe,ct,Et=[],ht=0;ht<Ge.length&&!((He-=2)<0);++ht)We=Ge.charCodeAt(ht),Xe=We>>8,ct=We%256,Et.push(ct),Et.push(Xe);return Et}function Te(Ge){return ce.toByteArray(St(Ge))}function Ve(Ge,He,We,Xe){for(var ct=0;ct<Xe&&!(ct+We>=He.length||ct>=Ge.length);++ct)He[ct+We]=Ge[ct];return ct}function Ze(Ge,He){return Ge instanceof He||Ge!=null&&Ge.constructor!=null&&Ge.constructor.name!=null&&Ge.constructor.name===He.name}function Ee(Ge){return Ge!==Ge}}).call(this)}).call(this,oe("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(oe,Ue,Fe){Ue.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],92:[function(oe,Ue,Fe){"use strict";var me=oe("get-intrinsic"),ce=oe("./"),be=ce(me("String.prototype.indexOf"));Ue.exports=function(Se,ke){var ve=me(Se,!!ke);return typeof ve=="function"&&be(Se,".prototype.")>-1?ce(ve):ve}},{"./":93,"get-intrinsic":348}],93:[function(oe,Ue,Fe){"use strict";var me=oe("function-bind"),ce=oe("get-intrinsic"),be=ce("%Function.prototype.apply%"),Le=ce("%Function.prototype.call%"),Se=ce("%Reflect.apply%",!0)||me.call(Le,be),ke=ce("%Object.getOwnPropertyDescriptor%",!0),ve=ce("%Object.defineProperty%",!0),xe=ce("%Math.max%");if(ve)try{ve({},"a",{value:1})}catch(z){ve=null}Ue.exports=function(ee){var ae=Se(me,Le,arguments);if(ke&&ve){var re=ke(ae,"length");re.configurable&&ve(ae,"length",{value:1+xe(0,ee.length-(arguments.length-1))})}return ae};var fe=function(){return Se(me,be,arguments)};ve?ve(Ue.exports,"apply",{value:fe}):Ue.exports.apply=fe},{"function-bind":347,"get-intrinsic":348}],94:[function(oe,Ue,Fe){"use strict";var me=Array.prototype.slice;Ue.exports=ce;function ce(Le,Se){if(!(this instanceof ce))return new ce(Le,Se);this.src=Le,this._withAccess=Se}ce.prototype.withAccess=function(Le){return this._withAccess=Le!==!1,this},ce.prototype.pick=function(Le){return Array.isArray(Le)||(Le=me.call(arguments)),Le.length&&(this.keys=Le),this},ce.prototype.to=function(Le){if(Le=Le||{},!this.src)return Le;var Se=this.keys||Object.keys(this.src);if(!this._withAccess){for(var ke=0;ke<Se.length;ke++)ve=Se[ke],Le[ve]===void 0&&(Le[ve]=this.src[ve]);return Le}for(var ke=0;ke<Se.length;ke++){var ve=Se[ke];if(be(Le,ve)){var xe=this.src.__lookupGetter__(ve),fe=this.src.__lookupSetter__(ve);xe&&Le.__defineGetter__(ve,xe),fe&&Le.__defineSetter__(ve,fe),!xe&&!fe&&(Le[ve]=this.src[ve])}}return Le},ce.prototype.toCover=function(Le){for(var Se=this.keys||Object.keys(this.src),ke=0;ke<Se.length;ke++){var ve=Se[ke];delete Le[ve];var xe=this.src.__lookupGetter__(ve),fe=this.src.__lookupSetter__(ve);xe&&Le.__defineGetter__(ve,xe),fe&&Le.__defineSetter__(ve,fe),!xe&&!fe&&(Le[ve]=this.src[ve])}},ce.prototype.override=ce.prototype.toCover,ce.prototype.and=function(Le){var Se={};return this.to(Se),this.src=Le,this.to(Se),this.src=Se,this};function be(Le,Se){return Le[Se]===void 0&&Le.__lookupGetter__(Se)===void 0&&Le.__lookupSetter__(Se)===void 0}},{}],95:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/is-callable"),be=oe("../internals/try-to-string"),Le=me.TypeError;Ue.exports=function(Se){if(ce(Se))return Se;throw Le(be(Se)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/is-constructor"),be=oe("../internals/try-to-string"),Le=me.TypeError;Ue.exports=function(Se){if(ce(Se))return Se;throw Le(be(Se)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/is-callable"),be=me.String,Le=me.TypeError;Ue.exports=function(Se){if(typeof Se=="object"||ce(Se))return Se;throw Le("Can't set "+be(Se)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(oe,Ue,Fe){var me=oe("../internals/well-known-symbol"),ce=oe("../internals/object-create"),be=oe("../internals/object-define-property"),Le=me("unscopables"),Se=Array.prototype;Se[Le]==null&&be.f(Se,Le,{configurable:!0,value:ce(null)}),Ue.exports=function(ke){Se[Le][ke]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/string-multibyte").charAt;Ue.exports=function(ce,be,Le){return be+(Le?me(ce,be).length:1)}},{"../internals/string-multibyte":239}],100:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/object-is-prototype-of"),be=me.TypeError;Ue.exports=function(Le,Se){if(ce(Se,Le))return Le;throw be("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/is-object"),be=me.String,Le=me.TypeError;Ue.exports=function(Se){if(ce(Se))return Se;throw Le(be(Se)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(oe,Ue,Fe){Ue.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/array-buffer-native"),ce=oe("../internals/descriptors"),be=oe("../internals/global"),Le=oe("../internals/is-callable"),Se=oe("../internals/is-object"),ke=oe("../internals/has-own-property"),ve=oe("../internals/classof"),xe=oe("../internals/try-to-string"),fe=oe("../internals/create-non-enumerable-property"),z=oe("../internals/redefine"),ee=oe("../internals/object-define-property").f,ae=oe("../internals/object-is-prototype-of"),re=oe("../internals/object-get-prototype-of"),le=oe("../internals/object-set-prototype-of"),ue=oe("../internals/well-known-symbol"),pe=oe("../internals/uid"),Ce=be.Int8Array,Pe=Ce&&Ce.prototype,Ie=be.Uint8ClampedArray,Oe=Ie&&Ie.prototype,Ae=Ce&&re(Ce),je=Pe&&re(Pe),Be=Object.prototype,_e=be.TypeError,qe=ue("toStringTag"),ze=pe("TYPED_ARRAY_TAG"),Ye=pe("TYPED_ARRAY_CONSTRUCTOR"),et=me&&!!le&&ve(be.opera)!=="Opera",lt=!1,dt,vt,Je,ot={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},ft={BigInt64Array:8,BigUint64Array:8},xt=function(zt){if(!Se(zt))return!1;var St=ve(zt);return St==="DataView"||ke(ot,St)||ke(ft,St)},yt=function(Ct){if(!Se(Ct))return!1;var zt=ve(Ct);return ke(ot,zt)||ke(ft,zt)},pt=function(Ct){if(yt(Ct))return Ct;throw _e("Target is not a typed array")},gt=function(Ct){if(Le(Ct)&&(!le||ae(Ae,Ct)))return Ct;throw _e(xe(Ct)+" is not a typed array constructor")},mt=function(Ct,zt,St,bt){if(ce){if(St)for(var at in ot){var nt=be[at];if(nt&&ke(nt.prototype,Ct))try{delete nt.prototype[Ct]}catch(we){try{nt.prototype[Ct]=zt}catch(Te){}}}(!je[Ct]||St)&&z(je,Ct,St?zt:et&&Pe[Ct]||zt,bt)}},Mt=function(Ct,zt,St){var bt,at;if(ce){if(le){if(St){for(bt in ot)if(at=be[bt],at&&ke(at,Ct))try{delete at[Ct]}catch(nt){}}if(!Ae[Ct]||St)try{return z(Ae,Ct,St?zt:et&&Ae[Ct]||zt)}catch(nt){}else return}for(bt in ot)at=be[bt],at&&(!at[Ct]||St)&&z(at,Ct,zt)}};for(dt in ot)vt=be[dt],Je=vt&&vt.prototype,Je?fe(Je,Ye,vt):et=!1;for(dt in ft)vt=be[dt],Je=vt&&vt.prototype,Je&&fe(Je,Ye,vt);if((!et||!Le(Ae)||Ae===Function.prototype)&&(Ae=function(){throw _e("Incorrect invocation")},et))for(dt in ot)be[dt]&&le(be[dt],Ae);if((!et||!je||je===Be)&&(je=Ae.prototype,et))for(dt in ot)be[dt]&&le(be[dt].prototype,je);if(et&&re(Oe)!==je&&le(Oe,je),ce&&!ke(je,qe)){lt=!0,ee(je,qe,{get:function(){return Se(this)?this[ze]:void 0}});for(dt in ot)be[dt]&&fe(be[dt],ze,dt)}Ue.exports={NATIVE_ARRAY_BUFFER_VIEWS:et,TYPED_ARRAY_CONSTRUCTOR:Ye,TYPED_ARRAY_TAG:lt&&ze,aTypedArray:pt,aTypedArrayConstructor:gt,exportTypedArrayMethod:mt,exportTypedArrayStaticMethod:Mt,isView:xt,isTypedArray:yt,TypedArray:Ae,TypedArrayPrototype:je}},{"../internals/array-buffer-native":102,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-define-property":198,"../internals/object-get-prototype-of":203,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/try-to-string":257,"../internals/uid":263,"../internals/well-known-symbol":268}],104:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/global"),ce=oe("../internals/function-uncurry-this"),be=oe("../internals/descriptors"),Le=oe("../internals/array-buffer-native"),Se=oe("../internals/function-name"),ke=oe("../internals/create-non-enumerable-property"),ve=oe("../internals/redefine-all"),xe=oe("../internals/fails"),fe=oe("../internals/an-instance"),z=oe("../internals/to-integer-or-infinity"),ee=oe("../internals/to-length"),ae=oe("../internals/to-index"),re=oe("../internals/ieee754"),le=oe("../internals/object-get-prototype-of"),ue=oe("../internals/object-set-prototype-of"),pe=oe("../internals/object-get-own-property-names").f,Ce=oe("../internals/object-define-property").f,Pe=oe("../internals/array-fill"),Ie=oe("../internals/array-slice-simple"),Oe=oe("../internals/set-to-string-tag"),Ae=oe("../internals/internal-state"),je=Se.PROPER,Be=Se.CONFIGURABLE,_e=Ae.get,qe=Ae.set,ze="ArrayBuffer",Ye="DataView",et="prototype",lt="Wrong length",dt="Wrong index",vt=me[ze],Je=vt,ot=Je&&Je[et],ft=me[Ye],xt=ft&&ft[et],yt=Object.prototype,pt=me.Array,gt=me.RangeError,mt=ce(Pe),Mt=ce([].reverse),Ct=re.pack,zt=re.unpack,St=function(ht){return[ht&255]},bt=function(ht){return[ht&255,ht>>8&255]},at=function(ht){return[ht&255,ht>>8&255,ht>>16&255,ht>>24&255]},nt=function(ht){return ht[3]<<24|ht[2]<<16|ht[1]<<8|ht[0]},we=function(ht){return Ct(ht,23,4)},Te=function(ht){return Ct(ht,52,8)},Ve=function(ht,It){Ce(ht[et],It,{get:function(){return _e(this)[It]}})},Ze=function(ht,It,qt,$t){var Wt=ae(qt),Ut=_e(ht);if(Wt+It>Ut.byteLength)throw gt(dt);var ln=_e(Ut.buffer).bytes,kt=Wt+Ut.byteOffset,Xt=Ie(ln,kt,kt+It);return $t?Xt:Mt(Xt)},Ee=function(ht,It,qt,$t,Wt,Ut){var ln=ae(qt),kt=_e(ht);if(ln+It>kt.byteLength)throw gt(dt);for(var Xt=_e(kt.buffer).bytes,tn=ln+kt.byteOffset,dn=$t(+Wt),Mn=0;Mn<It;Mn++)Xt[tn+Mn]=dn[Ut?Mn:It-Mn-1]};if(!Le)Je=function(It){fe(this,ot);var qt=ae(It);qe(this,{bytes:mt(pt(qt),0),byteLength:qt}),be||(this.byteLength=qt)},ot=Je[et],ft=function(It,qt,$t){fe(this,xt),fe(It,ot);var Wt=_e(It).byteLength,Ut=z(qt);if(Ut<0||Ut>Wt)throw gt("Wrong offset");if($t=$t===void 0?Wt-Ut:ee($t),Ut+$t>Wt)throw gt(lt);qe(this,{buffer:It,byteLength:$t,byteOffset:Ut}),be||(this.buffer=It,this.byteLength=$t,this.byteOffset=Ut)},xt=ft[et],be&&(Ve(Je,"byteLength"),Ve(ft,"buffer"),Ve(ft,"byteLength"),Ve(ft,"byteOffset")),ve(xt,{getInt8:function(It){return Ze(this,1,It)[0]<<24>>24},getUint8:function(It){return Ze(this,1,It)[0]},getInt16:function(It){var qt=Ze(this,2,It,arguments.length>1?arguments[1]:void 0);return(qt[1]<<8|qt[0])<<16>>16},getUint16:function(It){var qt=Ze(this,2,It,arguments.length>1?arguments[1]:void 0);return qt[1]<<8|qt[0]},getInt32:function(It){return nt(Ze(this,4,It,arguments.length>1?arguments[1]:void 0))},getUint32:function(It){return nt(Ze(this,4,It,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(It){return zt(Ze(this,4,It,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(It){return zt(Ze(this,8,It,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(It,qt){Ee(this,1,It,St,qt)},setUint8:function(It,qt){Ee(this,1,It,St,qt)},setInt16:function(It,qt){Ee(this,2,It,bt,qt,arguments.length>2?arguments[2]:void 0)},setUint16:function(It,qt){Ee(this,2,It,bt,qt,arguments.length>2?arguments[2]:void 0)},setInt32:function(It,qt){Ee(this,4,It,at,qt,arguments.length>2?arguments[2]:void 0)},setUint32:function(It,qt){Ee(this,4,It,at,qt,arguments.length>2?arguments[2]:void 0)},setFloat32:function(It,qt){Ee(this,4,It,we,qt,arguments.length>2?arguments[2]:void 0)},setFloat64:function(It,qt){Ee(this,8,It,Te,qt,arguments.length>2?arguments[2]:void 0)}});else{var Ge=je&&vt.name!==ze;if(!xe(function(){vt(1)})||!xe(function(){new vt(-1)})||xe(function(){return new vt,new vt(1.5),new vt(NaN),Ge&&!Be})){Je=function(It){return fe(this,ot),new vt(ae(It))},Je[et]=ot;for(var He=pe(vt),We=0,Xe;He.length>We;)(Xe=He[We++])in Je||ke(Je,Xe,vt[Xe]);ot.constructor=Je}else Ge&&Be&&ke(vt,"name",ze);ue&&le(xt)!==yt&&ue(xt,yt);var ct=new ft(new Je(2)),Et=ce(xt.setInt8);ct.setInt8(0,2147483648),ct.setInt8(1,2147483649),(ct.getInt8(0)||!ct.getInt8(1))&&ve(xt,{setInt8:function(It,qt){Et(this,It,qt<<24>>24)},setUint8:function(It,qt){Et(this,It,qt<<24>>24)}},{unsafe:!0})}Oe(Je,ze),Oe(ft,Ye),Ue.exports={ArrayBuffer:Je,DataView:ft}},{"../internals/an-instance":100,"../internals/array-buffer-native":102,"../internals/array-fill":106,"../internals/array-slice-simple":116,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/ieee754":169,"../internals/internal-state":173,"../internals/object-define-property":198,"../internals/object-get-own-property-names":201,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine-all":221,"../internals/set-to-string-tag":234,"../internals/to-index":246,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],105:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/to-object"),ce=oe("../internals/to-absolute-index"),be=oe("../internals/length-of-array-like"),Le=Math.min;Ue.exports=[].copyWithin||function(ke,ve){var xe=me(this),fe=be(xe),z=ce(ke,fe),ee=ce(ve,fe),ae=arguments.length>2?arguments[2]:void 0,re=Le((ae===void 0?fe:ce(ae,fe))-ee,fe-z),le=1;for(ee<z&&z<ee+re&&(le=-1,ee+=re-1,z+=re-1);re-- >0;)ee in xe?xe[z]=xe[ee]:delete xe[z],z+=le,ee+=le;return xe}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/to-object"),ce=oe("../internals/to-absolute-index"),be=oe("../internals/length-of-array-like");Ue.exports=function(Se){for(var ke=me(this),ve=be(ke),xe=arguments.length,fe=ce(xe>1?arguments[1]:void 0,ve),z=xe>2?arguments[2]:void 0,ee=z===void 0?ve:ce(z,ve);ee>fe;)ke[fe++]=Se;return ke}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/array-iteration").forEach,ce=oe("../internals/array-method-is-strict"),be=ce("forEach");Ue.exports=be?[].forEach:function(Se){return me(this,Se,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(oe,Ue,Fe){var me=oe("../internals/length-of-array-like");Ue.exports=function(ce,be){for(var Le=0,Se=me(be),ke=new ce(Se);Se>Le;)ke[Le]=be[Le++];return ke}},{"../internals/length-of-array-like":188}],109:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/global"),ce=oe("../internals/function-bind-context"),be=oe("../internals/function-call"),Le=oe("../internals/to-object"),Se=oe("../internals/call-with-safe-iteration-closing"),ke=oe("../internals/is-array-iterator-method"),ve=oe("../internals/is-constructor"),xe=oe("../internals/length-of-array-like"),fe=oe("../internals/create-property"),z=oe("../internals/get-iterator"),ee=oe("../internals/get-iterator-method"),ae=me.Array;Ue.exports=function(le){var ue=Le(le),pe=ve(this),Ce=arguments.length,Pe=Ce>1?arguments[1]:void 0,Ie=Pe!==void 0;Ie&&(Pe=ce(Pe,Ce>2?arguments[2]:void 0));var Oe=ee(ue),Ae=0,je,Be,_e,qe,ze,Ye;if(Oe&&!(this==ae&&ke(Oe)))for(qe=z(ue,Oe),ze=qe.next,Be=pe?new this:[];!(_e=be(ze,qe)).done;Ae++)Ye=Ie?Se(qe,Pe,[_e.value,Ae],!0):_e.value,fe(Be,Ae,Ye);else for(je=xe(ue),Be=pe?new this(je):ae(je);je>Ae;Ae++)Ye=Ie?Pe(ue[Ae],Ae):ue[Ae],fe(Be,Ae,Ye);return Be.length=Ae,Be}},{"../internals/call-with-safe-iteration-closing":121,"../internals/create-property":131,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/is-constructor":177,"../internals/length-of-array-like":188,"../internals/to-object":250}],110:[function(oe,Ue,Fe){var me=oe("../internals/to-indexed-object"),ce=oe("../internals/to-absolute-index"),be=oe("../internals/length-of-array-like"),Le=function(Se){return function(ke,ve,xe){var fe=me(ke),z=be(fe),ee=ce(xe,z),ae;if(Se&&ve!=ve){for(;z>ee;)if(ae=fe[ee++],ae!=ae)return!0}else for(;z>ee;ee++)if((Se||ee in fe)&&fe[ee]===ve)return Se||ee||0;return!Se&&-1}};Ue.exports={includes:Le(!0),indexOf:Le(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(oe,Ue,Fe){var me=oe("../internals/function-bind-context"),ce=oe("../internals/function-uncurry-this"),be=oe("../internals/indexed-object"),Le=oe("../internals/to-object"),Se=oe("../internals/length-of-array-like"),ke=oe("../internals/array-species-create"),ve=ce([].push),xe=function(fe){var z=fe==1,ee=fe==2,ae=fe==3,re=fe==4,le=fe==6,ue=fe==7,pe=fe==5||le;return function(Ce,Pe,Ie,Oe){for(var Ae=Le(Ce),je=be(Ae),Be=me(Pe,Ie),_e=Se(je),qe=0,ze=Oe||ke,Ye=z?ze(Ce,_e):ee||ue?ze(Ce,0):void 0,et,lt;_e>qe;qe++)if((pe||qe in je)&&(et=je[qe],lt=Be(et,qe,Ae),fe))if(z)Ye[qe]=lt;else if(lt)switch(fe){case 3:return!0;case 5:return et;case 6:return qe;case 2:ve(Ye,et)}else switch(fe){case 4:return!1;case 7:ve(Ye,et)}return le?-1:ae||re?re:Ye}};Ue.exports={forEach:xe(0),map:xe(1),filter:xe(2),some:xe(3),every:xe(4),find:xe(5),findIndex:xe(6),filterReject:xe(7)}},{"../internals/array-species-create":120,"../internals/function-bind-context":153,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],112:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/function-apply"),ce=oe("../internals/to-indexed-object"),be=oe("../internals/to-integer-or-infinity"),Le=oe("../internals/length-of-array-like"),Se=oe("../internals/array-method-is-strict"),ke=Math.min,ve=[].lastIndexOf,xe=!!ve&&1/[1].lastIndexOf(1,-0)<0,fe=Se("lastIndexOf"),z=xe||!fe;Ue.exports=z?function(ae){if(xe)return me(ve,this,arguments)||0;var re=ce(this),le=Le(re),ue=le-1;for(arguments.length>1&&(ue=ke(ue,be(arguments[1]))),ue<0&&(ue=le+ue);ue>=0;ue--)if(ue in re&&re[ue]===ae)return ue||0;return-1}:ve},{"../internals/array-method-is-strict":114,"../internals/function-apply":152,"../internals/length-of-array-like":188,"../internals/to-indexed-object":247,"../internals/to-integer-or-infinity":248}],113:[function(oe,Ue,Fe){var me=oe("../internals/fails"),ce=oe("../internals/well-known-symbol"),be=oe("../internals/engine-v8-version"),Le=ce("species");Ue.exports=function(Se){return be>=51||!me(function(){var ke=[],ve=ke.constructor={};return ve[Le]=function(){return{foo:1}},ke[Se](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/fails");Ue.exports=function(ce,be){var Le=[][ce];return!!Le&&me(function(){Le.call(null,be||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/a-callable"),be=oe("../internals/to-object"),Le=oe("../internals/indexed-object"),Se=oe("../internals/length-of-array-like"),ke=me.TypeError,ve=function(xe){return function(fe,z,ee,ae){ce(z);var re=be(fe),le=Le(re),ue=Se(re),pe=xe?ue-1:0,Ce=xe?-1:1;if(ee<2)for(;;){if(pe in le){ae=le[pe],pe+=Ce;break}if(pe+=Ce,xe?pe<0:ue<=pe)throw ke("Reduce of empty array with no initial value")}for(;xe?pe>=0:ue>pe;pe+=Ce)pe in le&&(ae=z(ae,le[pe],pe,re));return ae}};Ue.exports={left:ve(!1),right:ve(!0)}},{"../internals/a-callable":95,"../internals/global":163,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],116:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/to-absolute-index"),be=oe("../internals/length-of-array-like"),Le=oe("../internals/create-property"),Se=me.Array,ke=Math.max;Ue.exports=function(ve,xe,fe){for(var z=be(ve),ee=ce(xe,z),ae=ce(fe===void 0?z:fe,z),re=Se(ke(ae-ee,0)),le=0;ee<ae;ee++,le++)Le(re,le,ve[ee]);return re.length=le,re}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(oe,Ue,Fe){var me=oe("../internals/function-uncurry-this");Ue.exports=me([].slice)},{"../internals/function-uncurry-this":157}],118:[function(oe,Ue,Fe){var me=oe("../internals/array-slice-simple"),ce=Math.floor,be=function(ke,ve){var xe=ke.length,fe=ce(xe/2);return xe<8?Le(ke,ve):Se(ke,be(me(ke,0,fe),ve),be(me(ke,fe),ve),ve)},Le=function(ke,ve){for(var xe=ke.length,fe=1,z,ee;fe<xe;){for(ee=fe,z=ke[fe];ee&&ve(ke[ee-1],z)>0;)ke[ee]=ke[--ee];ee!==fe++&&(ke[ee]=z)}return ke},Se=function(ke,ve,xe,fe){for(var z=ve.length,ee=xe.length,ae=0,re=0;ae<z||re<ee;)ke[ae+re]=ae<z&&re<ee?fe(ve[ae],xe[re])<=0?ve[ae++]:xe[re++]:ae<z?ve[ae++]:xe[re++];return ke};Ue.exports=be},{"../internals/array-slice-simple":116}],119:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/is-array"),be=oe("../internals/is-constructor"),Le=oe("../internals/is-object"),Se=oe("../internals/well-known-symbol"),ke=Se("species"),ve=me.Array;Ue.exports=function(xe){var fe;return ce(xe)&&(fe=xe.constructor,be(fe)&&(fe===ve||ce(fe.prototype))?fe=void 0:Le(fe)&&(fe=fe[ke],fe===null&&(fe=void 0))),fe===void 0?ve:fe}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(oe,Ue,Fe){var me=oe("../internals/array-species-constructor");Ue.exports=function(ce,be){return new(me(ce))(be===0?0:be)}},{"../internals/array-species-constructor":119}],121:[function(oe,Ue,Fe){var me=oe("../internals/an-object"),ce=oe("../internals/iterator-close");Ue.exports=function(be,Le,Se,ke){try{return ke?Le(me(Se)[0],Se[1]):Le(Se)}catch(ve){ce(be,"throw",ve)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(oe,Ue,Fe){var me=oe("../internals/well-known-symbol"),ce=me("iterator"),be=!1;try{var Le=0,Se={next:function(){return{done:!!Le++}},return:function(){be=!0}};Se[ce]=function(){return this},Array.from(Se,function(){throw 2})}catch(ke){}Ue.exports=function(ke,ve){if(!ve&&!be)return!1;var xe=!1;try{var fe={};fe[ce]=function(){return{next:function(){return{done:xe=!0}}}},ke(fe)}catch(z){}return xe}},{"../internals/well-known-symbol":268}],123:[function(oe,Ue,Fe){var me=oe("../internals/function-uncurry-this"),ce=me({}.toString),be=me("".slice);Ue.exports=function(Le){return be(ce(Le),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/to-string-tag-support"),be=oe("../internals/is-callable"),Le=oe("../internals/classof-raw"),Se=oe("../internals/well-known-symbol"),ke=Se("toStringTag"),ve=me.Object,xe=Le(function(){return arguments}())=="Arguments",fe=function(z,ee){try{return z[ee]}catch(ae){}};Ue.exports=ce?Le:function(z){var ee,ae,re;return z===void 0?"Undefined":z===null?"Null":typeof(ae=fe(ee=ve(z),ke))=="string"?ae:xe?Le(ee):(re=Le(ee))=="Object"&&be(ee.callee)?"Arguments":re}},{"../internals/classof-raw":123,"../internals/global":163,"../internals/is-callable":176,"../internals/to-string-tag-support":255,"../internals/well-known-symbol":268}],125:[function(oe,Ue,Fe){var me=oe("../internals/has-own-property"),ce=oe("../internals/own-keys"),be=oe("../internals/object-get-own-property-descriptor"),Le=oe("../internals/object-define-property");Ue.exports=function(Se,ke,ve){for(var xe=ce(ke),fe=Le.f,z=be.f,ee=0;ee<xe.length;ee++){var ae=xe[ee];!me(Se,ae)&&!(ve&&me(ve,ae))&&fe(Se,ae,z(ke,ae))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(oe,Ue,Fe){var me=oe("../internals/well-known-symbol"),ce=me("match");Ue.exports=function(be){var Le=/./;try{"/./"[be](Le)}catch(Se){try{return Le[ce]=!1,"/./"[be](Le)}catch(ke){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(oe,Ue,Fe){var me=oe("../internals/fails");Ue.exports=!me(function(){function ce(){}return ce.prototype.constructor=null,Object.getPrototypeOf(new ce)!==ce.prototype})},{"../internals/fails":150}],128:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/iterators-core").IteratorPrototype,ce=oe("../internals/object-create"),be=oe("../internals/create-property-descriptor"),Le=oe("../internals/set-to-string-tag"),Se=oe("../internals/iterators"),ke=function(){return this};Ue.exports=function(ve,xe,fe,z){var ee=xe+" Iterator";return ve.prototype=ce(me,{next:be(+!z,fe)}),Le(ve,ee,!1,!0),Se[ee]=ke,ve}},{"../internals/create-property-descriptor":130,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-create":196,"../internals/set-to-string-tag":234}],129:[function(oe,Ue,Fe){var me=oe("../internals/descriptors"),ce=oe("../internals/object-define-property"),be=oe("../internals/create-property-descriptor");Ue.exports=me?function(Le,Se,ke){return ce.f(Le,Se,be(1,ke))}:function(Le,Se,ke){return Le[Se]=ke,Le}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(oe,Ue,Fe){Ue.exports=function(me,ce){return{enumerable:!(me&1),configurable:!(me&2),writable:!(me&4),value:ce}}},{}],131:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/to-property-key"),ce=oe("../internals/object-define-property"),be=oe("../internals/create-property-descriptor");Ue.exports=function(Le,Se,ke){var ve=me(Se);ve in Le?ce.f(Le,ve,be(0,ke)):Le[ve]=ke}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/export"),ce=oe("../internals/function-call"),be=oe("../internals/is-pure"),Le=oe("../internals/function-name"),Se=oe("../internals/is-callable"),ke=oe("../internals/create-iterator-constructor"),ve=oe("../internals/object-get-prototype-of"),xe=oe("../internals/object-set-prototype-of"),fe=oe("../internals/set-to-string-tag"),z=oe("../internals/create-non-enumerable-property"),ee=oe("../internals/redefine"),ae=oe("../internals/well-known-symbol"),re=oe("../internals/iterators"),le=oe("../internals/iterators-core"),ue=Le.PROPER,pe=Le.CONFIGURABLE,Ce=le.IteratorPrototype,Pe=le.BUGGY_SAFARI_ITERATORS,Ie=ae("iterator"),Oe="keys",Ae="values",je="entries",Be=function(){return this};Ue.exports=function(_e,qe,ze,Ye,et,lt,dt){ke(ze,qe,Ye);var vt=function(Ct){if(Ct===et&&yt)return yt;if(!Pe&&Ct in ft)return ft[Ct];switch(Ct){case Oe:return function(){return new ze(this,Ct)};case Ae:return function(){return new ze(this,Ct)};case je:return function(){return new ze(this,Ct)}}return function(){return new ze(this)}},Je=qe+" Iterator",ot=!1,ft=_e.prototype,xt=ft[Ie]||ft["@@iterator"]||et&&ft[et],yt=!Pe&&xt||vt(et),pt=qe=="Array"&&ft.entries||xt,gt,mt,Mt;if(pt&&(gt=ve(pt.call(new _e)),gt!==Object.prototype&>.next&&(!be&&ve(gt)!==Ce&&(xe?xe(gt,Ce):Se(gt[Ie])||ee(gt,Ie,Be)),fe(gt,Je,!0,!0),be&&(re[Je]=Be))),ue&&et==Ae&&xt&&xt.name!==Ae&&(!be&&pe?z(ft,"name",Ae):(ot=!0,yt=function(){return ce(xt,this)})),et)if(mt={values:vt(Ae),keys:lt?yt:vt(Oe),entries:vt(je)},dt)for(Mt in mt)(Pe||ot||!(Mt in ft))&&ee(ft,Mt,mt[Mt]);else me({target:qe,proto:!0,forced:Pe||ot},mt);return(!be||dt)&&ft[Ie]!==yt&&ee(ft,Ie,yt,{name:et}),re[qe]=yt,mt}},{"../internals/create-iterator-constructor":128,"../internals/create-non-enumerable-property":129,"../internals/export":149,"../internals/function-call":155,"../internals/function-name":156,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/well-known-symbol":268}],133:[function(oe,Ue,Fe){var me=oe("../internals/path"),ce=oe("../internals/has-own-property"),be=oe("../internals/well-known-symbol-wrapped"),Le=oe("../internals/object-define-property").f;Ue.exports=function(Se){var ke=me.Symbol||(me.Symbol={});ce(ke,Se)||Le(ke,Se,{value:be.f(Se)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(oe,Ue,Fe){var me=oe("../internals/fails");Ue.exports=!me(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/is-object"),be=me.document,Le=ce(be)&&ce(be.createElement);Ue.exports=function(Se){return Le?be.createElement(Se):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(oe,Ue,Fe){Ue.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],137:[function(oe,Ue,Fe){var me=oe("../internals/document-create-element"),ce=me("span").classList,be=ce&&ce.constructor&&ce.constructor.prototype;Ue.exports=be===Object.prototype?void 0:be},{"../internals/document-create-element":135}],138:[function(oe,Ue,Fe){var me=oe("../internals/engine-user-agent"),ce=me.match(/firefox\/(\d+)/i);Ue.exports=!!ce&&+ce[1]},{"../internals/engine-user-agent":145}],139:[function(oe,Ue,Fe){Ue.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(oe,Ue,Fe){var me=oe("../internals/engine-user-agent");Ue.exports=/MSIE|Trident/.test(me)},{"../internals/engine-user-agent":145}],141:[function(oe,Ue,Fe){var me=oe("../internals/engine-user-agent"),ce=oe("../internals/global");Ue.exports=/ipad|iphone|ipod/i.test(me)&&ce.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(oe,Ue,Fe){var me=oe("../internals/engine-user-agent");Ue.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(me)},{"../internals/engine-user-agent":145}],143:[function(oe,Ue,Fe){var me=oe("../internals/classof-raw"),ce=oe("../internals/global");Ue.exports=me(ce.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(oe,Ue,Fe){var me=oe("../internals/engine-user-agent");Ue.exports=/web0s(?!.*chrome)/i.test(me)},{"../internals/engine-user-agent":145}],145:[function(oe,Ue,Fe){var me=oe("../internals/get-built-in");Ue.exports=me("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/engine-user-agent"),be=me.process,Le=me.Deno,Se=be&&be.versions||Le&&Le.version,ke=Se&&Se.v8,ve,xe;ke&&(ve=ke.split("."),xe=ve[0]>0&&ve[0]<4?1:+(ve[0]+ve[1])),!xe&&ce&&(ve=ce.match(/Edge\/(\d+)/),(!ve||ve[1]>=74)&&(ve=ce.match(/Chrome\/(\d+)/),ve&&(xe=+ve[1]))),Ue.exports=xe},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(oe,Ue,Fe){var me=oe("../internals/engine-user-agent"),ce=me.match(/AppleWebKit\/(\d+)\./);Ue.exports=!!ce&&+ce[1]},{"../internals/engine-user-agent":145}],148:[function(oe,Ue,Fe){Ue.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/object-get-own-property-descriptor").f,be=oe("../internals/create-non-enumerable-property"),Le=oe("../internals/redefine"),Se=oe("../internals/set-global"),ke=oe("../internals/copy-constructor-properties"),ve=oe("../internals/is-forced");Ue.exports=function(xe,fe){var z=xe.target,ee=xe.global,ae=xe.stat,re,le,ue,pe,Ce,Pe;if(ee?le=me:ae?le=me[z]||Se(z,{}):le=(me[z]||{}).prototype,le)for(ue in fe){if(Ce=fe[ue],xe.noTargetGet?(Pe=ce(le,ue),pe=Pe&&Pe.value):pe=le[ue],re=ve(ee?ue:z+(ae?".":"#")+ue,xe.forced),!re&&pe!==void 0){if(typeof Ce==typeof pe)continue;ke(Ce,pe)}(xe.sham||pe&&pe.sham)&&be(Ce,"sham",!0),Le(le,ue,Ce,xe)}}},{"../internals/copy-constructor-properties":125,"../internals/create-non-enumerable-property":129,"../internals/global":163,"../internals/is-forced":178,"../internals/object-get-own-property-descriptor":199,"../internals/redefine":222,"../internals/set-global":232}],150:[function(oe,Ue,Fe){Ue.exports=function(me){try{return!!me()}catch(ce){return!0}}},{}],151:[function(oe,Ue,Fe){"use strict";oe("../modules/es.regexp.exec");var me=oe("../internals/function-uncurry-this"),ce=oe("../internals/redefine"),be=oe("../internals/regexp-exec"),Le=oe("../internals/fails"),Se=oe("../internals/well-known-symbol"),ke=oe("../internals/create-non-enumerable-property"),ve=Se("species"),xe=RegExp.prototype;Ue.exports=function(fe,z,ee,ae){var re=Se(fe),le=!Le(function(){var Pe={};return Pe[re]=function(){return 7},""[fe](Pe)!=7}),ue=le&&!Le(function(){var Pe=!1,Ie=/a/;return fe==="split"&&(Ie={},Ie.constructor={},Ie.constructor[ve]=function(){return Ie},Ie.flags="",Ie[re]=/./[re]),Ie.exec=function(){return Pe=!0,null},Ie[re](""),!Pe});if(!le||!ue||ee){var pe=me(/./[re]),Ce=z(re,""[fe],function(Pe,Ie,Oe,Ae,je){var Be=me(Pe),_e=Ie.exec;return _e===be||_e===xe.exec?le&&!je?{done:!0,value:pe(Ie,Oe,Ae)}:{done:!0,value:Be(Oe,Ie,Ae)}:{done:!1}});ce(String.prototype,fe,Ce[0]),ce(xe,re,Ce[1])}ae&&ke(xe[re],"sham",!0)}},{"../internals/create-non-enumerable-property":129,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/redefine":222,"../internals/regexp-exec":224,"../internals/well-known-symbol":268,"../modules/es.regexp.exec":300}],152:[function(oe,Ue,Fe){var me=oe("../internals/function-bind-native"),ce=Function.prototype,be=ce.apply,Le=ce.call;Ue.exports=typeof Reflect=="object"&&Reflect.apply||(me?Le.bind(be):function(){return Le.apply(be,arguments)})},{"../internals/function-bind-native":154}],153:[function(oe,Ue,Fe){var me=oe("../internals/function-uncurry-this"),ce=oe("../internals/a-callable"),be=oe("../internals/function-bind-native"),Le=me(me.bind);Ue.exports=function(Se,ke){return ce(Se),ke===void 0?Se:be?Le(Se,ke):function(){return Se.apply(ke,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(oe,Ue,Fe){var me=oe("../internals/fails");Ue.exports=!me(function(){var ce=function(){}.bind();return typeof ce!="function"||ce.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(oe,Ue,Fe){var me=oe("../internals/function-bind-native"),ce=Function.prototype.call;Ue.exports=me?ce.bind(ce):function(){return ce.apply(ce,arguments)}},{"../internals/function-bind-native":154}],156:[function(oe,Ue,Fe){var me=oe("../internals/descriptors"),ce=oe("../internals/has-own-property"),be=Function.prototype,Le=me&&Object.getOwnPropertyDescriptor,Se=ce(be,"name"),ke=Se&&function(){}.name==="something",ve=Se&&(!me||me&&Le(be,"name").configurable);Ue.exports={EXISTS:Se,PROPER:ke,CONFIGURABLE:ve}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(oe,Ue,Fe){var me=oe("../internals/function-bind-native"),ce=Function.prototype,be=ce.bind,Le=ce.call,Se=me&&be.bind(Le,Le);Ue.exports=me?function(ke){return ke&&Se(ke)}:function(ke){return ke&&function(){return Le.apply(ke,arguments)}}},{"../internals/function-bind-native":154}],158:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/is-callable"),be=function(Le){return ce(Le)?Le:void 0};Ue.exports=function(Le,Se){return arguments.length<2?be(me[Le]):me[Le]&&me[Le][Se]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(oe,Ue,Fe){var me=oe("../internals/classof"),ce=oe("../internals/get-method"),be=oe("../internals/iterators"),Le=oe("../internals/well-known-symbol"),Se=Le("iterator");Ue.exports=function(ke){if(ke!=null)return ce(ke,Se)||ce(ke,"@@iterator")||be[me(ke)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/function-call"),be=oe("../internals/a-callable"),Le=oe("../internals/an-object"),Se=oe("../internals/try-to-string"),ke=oe("../internals/get-iterator-method"),ve=me.TypeError;Ue.exports=function(xe,fe){var z=arguments.length<2?ke(xe):fe;if(be(z))return Le(ce(z,xe));throw ve(Se(xe)+" is not iterable")}},{"../internals/a-callable":95,"../internals/an-object":101,"../internals/function-call":155,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/try-to-string":257}],161:[function(oe,Ue,Fe){var me=oe("../internals/a-callable");Ue.exports=function(ce,be){var Le=ce[be];return Le==null?void 0:me(Le)}},{"../internals/a-callable":95}],162:[function(oe,Ue,Fe){var me=oe("../internals/function-uncurry-this"),ce=oe("../internals/to-object"),be=Math.floor,Le=me("".charAt),Se=me("".replace),ke=me("".slice),ve=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,xe=/\$([$&'`]|\d{1,2})/g;Ue.exports=function(fe,z,ee,ae,re,le){var ue=ee+fe.length,pe=ae.length,Ce=xe;return re!==void 0&&(re=ce(re),Ce=ve),Se(le,Ce,function(Pe,Ie){var Oe;switch(Le(Ie,0)){case"$":return"$";case"&":return fe;case"`":return ke(z,0,ee);case"'":return ke(z,ue);case"<":Oe=re[ke(Ie,1,-1)];break;default:var Ae=+Ie;if(Ae===0)return Pe;if(Ae>pe){var je=be(Ae/10);return je===0?Pe:je<=pe?ae[je-1]===void 0?Le(Ie,1):ae[je-1]+Le(Ie,1):Pe}Oe=ae[Ae-1]}return Oe===void 0?"":Oe})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(oe,Ue,Fe){(function(me){(function(){var ce=function(be){return be&&be.Math==Math&&be};Ue.exports=ce(typeof globalThis=="object"&&globalThis)||ce(typeof window=="object"&&window)||ce(typeof self=="object"&&self)||ce(typeof me=="object"&&me)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof vn!="undefined"?vn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(oe,Ue,Fe){var me=oe("../internals/function-uncurry-this"),ce=oe("../internals/to-object"),be=me({}.hasOwnProperty);Ue.exports=Object.hasOwn||function(Se,ke){return be(ce(Se),ke)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(oe,Ue,Fe){Ue.exports={}},{}],166:[function(oe,Ue,Fe){var me=oe("../internals/global");Ue.exports=function(ce,be){var Le=me.console;Le&&Le.error&&(arguments.length==1?Le.error(ce):Le.error(ce,be))}},{"../internals/global":163}],167:[function(oe,Ue,Fe){var me=oe("../internals/get-built-in");Ue.exports=me("document","documentElement")},{"../internals/get-built-in":158}],168:[function(oe,Ue,Fe){var me=oe("../internals/descriptors"),ce=oe("../internals/fails"),be=oe("../internals/document-create-element");Ue.exports=!me&&!ce(function(){return Object.defineProperty(be("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=me.Array,be=Math.abs,Le=Math.pow,Se=Math.floor,ke=Math.log,ve=Math.LN2,xe=function(z,ee,ae){var re=ce(ae),le=ae*8-ee-1,ue=(1<<le)-1,pe=ue>>1,Ce=ee===23?Le(2,-24)-Le(2,-77):0,Pe=z<0||z===0&&1/z<0?1:0,Ie=0,Oe,Ae,je;for(z=be(z),z!=z||z===1/0?(Ae=z!=z?1:0,Oe=ue):(Oe=Se(ke(z)/ve),je=Le(2,-Oe),z*je<1&&(Oe--,je*=2),Oe+pe>=1?z+=Ce/je:z+=Ce*Le(2,1-pe),z*je>=2&&(Oe++,je/=2),Oe+pe>=ue?(Ae=0,Oe=ue):Oe+pe>=1?(Ae=(z*je-1)*Le(2,ee),Oe=Oe+pe):(Ae=z*Le(2,pe-1)*Le(2,ee),Oe=0));ee>=8;)re[Ie++]=Ae&255,Ae/=256,ee-=8;for(Oe=Oe<<ee|Ae,le+=ee;le>0;)re[Ie++]=Oe&255,Oe/=256,le-=8;return re[--Ie]|=Pe*128,re},fe=function(z,ee){var ae=z.length,re=ae*8-ee-1,le=(1<<re)-1,ue=le>>1,pe=re-7,Ce=ae-1,Pe=z[Ce--],Ie=Pe&127,Oe;for(Pe>>=7;pe>0;)Ie=Ie*256+z[Ce--],pe-=8;for(Oe=Ie&(1<<-pe)-1,Ie>>=-pe,pe+=ee;pe>0;)Oe=Oe*256+z[Ce--],pe-=8;if(Ie===0)Ie=1-ue;else{if(Ie===le)return Oe?NaN:Pe?-1/0:1/0;Oe=Oe+Le(2,ee),Ie=Ie-ue}return(Pe?-1:1)*Oe*Le(2,Ie-ee)};Ue.exports={pack:xe,unpack:fe}},{"../internals/global":163}],170:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/function-uncurry-this"),be=oe("../internals/fails"),Le=oe("../internals/classof-raw"),Se=me.Object,ke=ce("".split);Ue.exports=be(function(){return!Se("z").propertyIsEnumerable(0)})?function(ve){return Le(ve)=="String"?ke(ve,""):Se(ve)}:Se},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(oe,Ue,Fe){var me=oe("../internals/is-callable"),ce=oe("../internals/is-object"),be=oe("../internals/object-set-prototype-of");Ue.exports=function(Le,Se,ke){var ve,xe;return be&&me(ve=Se.constructor)&&ve!==ke&&ce(xe=ve.prototype)&&xe!==ke.prototype&&be(Le,xe),Le}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(oe,Ue,Fe){var me=oe("../internals/function-uncurry-this"),ce=oe("../internals/is-callable"),be=oe("../internals/shared-store"),Le=me(Function.toString);ce(be.inspectSource)||(be.inspectSource=function(Se){return Le(Se)}),Ue.exports=be.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(oe,Ue,Fe){var me=oe("../internals/native-weak-map"),ce=oe("../internals/global"),be=oe("../internals/function-uncurry-this"),Le=oe("../internals/is-object"),Se=oe("../internals/create-non-enumerable-property"),ke=oe("../internals/has-own-property"),ve=oe("../internals/shared-store"),xe=oe("../internals/shared-key"),fe=oe("../internals/hidden-keys"),z="Object already initialized",ee=ce.TypeError,ae=ce.WeakMap,re,le,ue,pe=function(Be){return ue(Be)?le(Be):re(Be,{})},Ce=function(Be){return function(_e){var qe;if(!Le(_e)||(qe=le(_e)).type!==Be)throw ee("Incompatible receiver, "+Be+" required");return qe}};if(me||ve.state){var Pe=ve.state||(ve.state=new ae),Ie=be(Pe.get),Oe=be(Pe.has),Ae=be(Pe.set);re=function(Be,_e){if(Oe(Pe,Be))throw new ee(z);return _e.facade=Be,Ae(Pe,Be,_e),_e},le=function(Be){return Ie(Pe,Be)||{}},ue=function(Be){return Oe(Pe,Be)}}else{var je=xe("state");fe[je]=!0,re=function(Be,_e){if(ke(Be,je))throw new ee(z);return _e.facade=Be,Se(Be,je,_e),_e},le=function(Be){return ke(Be,je)?Be[je]:{}},ue=function(Be){return ke(Be,je)}}Ue.exports={set:re,get:le,has:ue,enforce:pe,getterFor:Ce}},{"../internals/create-non-enumerable-property":129,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/is-object":180,"../internals/native-weak-map":192,"../internals/shared-key":235,"../internals/shared-store":236}],174:[function(oe,Ue,Fe){var me=oe("../internals/well-known-symbol"),ce=oe("../internals/iterators"),be=me("iterator"),Le=Array.prototype;Ue.exports=function(Se){return Se!==void 0&&(ce.Array===Se||Le[be]===Se)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(oe,Ue,Fe){var me=oe("../internals/classof-raw");Ue.exports=Array.isArray||function(be){return me(be)=="Array"}},{"../internals/classof-raw":123}],176:[function(oe,Ue,Fe){Ue.exports=function(me){return typeof me=="function"}},{}],177:[function(oe,Ue,Fe){var me=oe("../internals/function-uncurry-this"),ce=oe("../internals/fails"),be=oe("../internals/is-callable"),Le=oe("../internals/classof"),Se=oe("../internals/get-built-in"),ke=oe("../internals/inspect-source"),ve=function(){},xe=[],fe=Se("Reflect","construct"),z=/^\s*(?:class|function)\b/,ee=me(z.exec),ae=!z.exec(ve),re=function(pe){if(!be(pe))return!1;try{return fe(ve,xe,pe),!0}catch(Ce){return!1}},le=function(pe){if(!be(pe))return!1;switch(Le(pe)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ae||!!ee(z,ke(pe))}catch(Ce){return!0}};le.sham=!0,Ue.exports=!fe||ce(function(){var ue;return re(re.call)||!re(Object)||!re(function(){ue=!0})||ue})?le:re},{"../internals/classof":124,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/inspect-source":172,"../internals/is-callable":176}],178:[function(oe,Ue,Fe){var me=oe("../internals/fails"),ce=oe("../internals/is-callable"),be=/#|\.prototype\./,Le=function(fe,z){var ee=ke[Se(fe)];return ee==xe?!0:ee==ve?!1:ce(z)?me(z):!!z},Se=Le.normalize=function(fe){return String(fe).replace(be,".").toLowerCase()},ke=Le.data={},ve=Le.NATIVE="N",xe=Le.POLYFILL="P";Ue.exports=Le},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(oe,Ue,Fe){var me=oe("../internals/is-object"),ce=Math.floor;Ue.exports=Number.isInteger||function(Le){return!me(Le)&&isFinite(Le)&&ce(Le)===Le}},{"../internals/is-object":180}],180:[function(oe,Ue,Fe){var me=oe("../internals/is-callable");Ue.exports=function(ce){return typeof ce=="object"?ce!==null:me(ce)}},{"../internals/is-callable":176}],181:[function(oe,Ue,Fe){Ue.exports=!1},{}],182:[function(oe,Ue,Fe){var me=oe("../internals/is-object"),ce=oe("../internals/classof-raw"),be=oe("../internals/well-known-symbol"),Le=be("match");Ue.exports=function(Se){var ke;return me(Se)&&((ke=Se[Le])!==void 0?!!ke:ce(Se)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/get-built-in"),be=oe("../internals/is-callable"),Le=oe("../internals/object-is-prototype-of"),Se=oe("../internals/use-symbol-as-uid"),ke=me.Object;Ue.exports=Se?function(ve){return typeof ve=="symbol"}:function(ve){var xe=ce("Symbol");return be(xe)&&Le(xe.prototype,ke(ve))}},{"../internals/get-built-in":158,"../internals/global":163,"../internals/is-callable":176,"../internals/object-is-prototype-of":204,"../internals/use-symbol-as-uid":264}],184:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/function-bind-context"),be=oe("../internals/function-call"),Le=oe("../internals/an-object"),Se=oe("../internals/try-to-string"),ke=oe("../internals/is-array-iterator-method"),ve=oe("../internals/length-of-array-like"),xe=oe("../internals/object-is-prototype-of"),fe=oe("../internals/get-iterator"),z=oe("../internals/get-iterator-method"),ee=oe("../internals/iterator-close"),ae=me.TypeError,re=function(ue,pe){this.stopped=ue,this.result=pe},le=re.prototype;Ue.exports=function(ue,pe,Ce){var Pe=Ce&&Ce.that,Ie=!!(Ce&&Ce.AS_ENTRIES),Oe=!!(Ce&&Ce.IS_ITERATOR),Ae=!!(Ce&&Ce.INTERRUPTED),je=ce(pe,Pe),Be,_e,qe,ze,Ye,et,lt,dt=function(Je){return Be&&ee(Be,"normal",Je),new re(!0,Je)},vt=function(Je){return Ie?(Le(Je),Ae?je(Je[0],Je[1],dt):je(Je[0],Je[1])):Ae?je(Je,dt):je(Je)};if(Oe)Be=ue;else{if(_e=z(ue),!_e)throw ae(Se(ue)+" is not iterable");if(ke(_e)){for(qe=0,ze=ve(ue);ze>qe;qe++)if(Ye=vt(ue[qe]),Ye&&xe(le,Ye))return Ye;return new re(!1)}Be=fe(ue,_e)}for(et=Be.next;!(lt=be(et,Be)).done;){try{Ye=vt(lt.value)}catch(Je){ee(Be,"throw",Je)}if(typeof Ye=="object"&&Ye&&xe(le,Ye))return Ye}return new re(!1)}},{"../internals/an-object":101,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/iterator-close":185,"../internals/length-of-array-like":188,"../internals/object-is-prototype-of":204,"../internals/try-to-string":257}],185:[function(oe,Ue,Fe){var me=oe("../internals/function-call"),ce=oe("../internals/an-object"),be=oe("../internals/get-method");Ue.exports=function(Le,Se,ke){var ve,xe;ce(Le);try{if(ve=be(Le,"return"),!ve){if(Se==="throw")throw ke;return ke}ve=me(ve,Le)}catch(fe){xe=!0,ve=fe}if(Se==="throw")throw ke;if(xe)throw ve;return ce(ve),ke}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/fails"),ce=oe("../internals/is-callable"),be=oe("../internals/object-create"),Le=oe("../internals/object-get-prototype-of"),Se=oe("../internals/redefine"),ke=oe("../internals/well-known-symbol"),ve=oe("../internals/is-pure"),xe=ke("iterator"),fe=!1,z,ee,ae;[].keys&&(ae=[].keys(),"next"in ae?(ee=Le(Le(ae)),ee!==Object.prototype&&(z=ee)):fe=!0);var re=z==null||me(function(){var le={};return z[xe].call(le)!==le});re?z={}:ve&&(z=be(z)),ce(z[xe])||Se(z,xe,function(){return this}),Ue.exports={IteratorPrototype:z,BUGGY_SAFARI_ITERATORS:fe}},{"../internals/fails":150,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/object-create":196,"../internals/object-get-prototype-of":203,"../internals/redefine":222,"../internals/well-known-symbol":268}],187:[function(oe,Ue,Fe){arguments[4][165][0].apply(Fe,arguments)},{dup:165}],188:[function(oe,Ue,Fe){var me=oe("../internals/to-length");Ue.exports=function(ce){return me(ce.length)}},{"../internals/to-length":249}],189:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/function-bind-context"),be=oe("../internals/object-get-own-property-descriptor").f,Le=oe("../internals/task").set,Se=oe("../internals/engine-is-ios"),ke=oe("../internals/engine-is-ios-pebble"),ve=oe("../internals/engine-is-webos-webkit"),xe=oe("../internals/engine-is-node"),fe=me.MutationObserver||me.WebKitMutationObserver,z=me.document,ee=me.process,ae=me.Promise,re=be(me,"queueMicrotask"),le=re&&re.value,ue,pe,Ce,Pe,Ie,Oe,Ae,je;le||(ue=function(){var Be,_e;for(xe&&(Be=ee.domain)&&Be.exit();pe;){_e=pe.fn,pe=pe.next;try{_e()}catch(qe){throw pe?Pe():Ce=void 0,qe}}Ce=void 0,Be&&Be.enter()},!Se&&!xe&&!ve&&fe&&z?(Ie=!0,Oe=z.createTextNode(""),new fe(ue).observe(Oe,{characterData:!0}),Pe=function(){Oe.data=Ie=!Ie}):!ke&&ae&&ae.resolve?(Ae=ae.resolve(void 0),Ae.constructor=ae,je=ce(Ae.then,Ae),Pe=function(){je(ue)}):xe?Pe=function(){ee.nextTick(ue)}:(Le=ce(Le,me),Pe=function(){Le(ue)})),Ue.exports=le||function(Be){var _e={fn:Be,next:void 0};Ce&&(Ce.next=_e),pe||(pe=_e,Pe()),Ce=_e}},{"../internals/engine-is-ios":142,"../internals/engine-is-ios-pebble":141,"../internals/engine-is-node":143,"../internals/engine-is-webos-webkit":144,"../internals/function-bind-context":153,"../internals/global":163,"../internals/object-get-own-property-descriptor":199,"../internals/task":243}],190:[function(oe,Ue,Fe){var me=oe("../internals/native-symbol");Ue.exports=me&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(oe,Ue,Fe){var me=oe("../internals/engine-v8-version"),ce=oe("../internals/fails");Ue.exports=!!Object.getOwnPropertySymbols&&!ce(function(){var be=Symbol();return!String(be)||!(Object(be)instanceof Symbol)||!Symbol.sham&&me&&me<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/is-callable"),be=oe("../internals/inspect-source"),Le=me.WeakMap;Ue.exports=ce(Le)&&/native code/.test(be(Le))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/a-callable"),ce=function(be){var Le,Se;this.promise=new be(function(ke,ve){if(Le!==void 0||Se!==void 0)throw TypeError("Bad Promise constructor");Le=ke,Se=ve}),this.resolve=me(Le),this.reject=me(Se)};Ue.exports.f=function(be){return new ce(be)}},{"../internals/a-callable":95}],194:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/is-regexp"),be=me.TypeError;Ue.exports=function(Le){if(ce(Le))throw be("The method doesn't accept regular expressions");return Le}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/descriptors"),ce=oe("../internals/function-uncurry-this"),be=oe("../internals/function-call"),Le=oe("../internals/fails"),Se=oe("../internals/object-keys"),ke=oe("../internals/object-get-own-property-symbols"),ve=oe("../internals/object-property-is-enumerable"),xe=oe("../internals/to-object"),fe=oe("../internals/indexed-object"),z=Object.assign,ee=Object.defineProperty,ae=ce([].concat);Ue.exports=!z||Le(function(){if(me&&z({b:1},z(ee({},"a",{enumerable:!0,get:function(){ee(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var re={},le={},ue=Symbol(),pe="abcdefghijklmnopqrst";return re[ue]=7,pe.split("").forEach(function(Ce){le[Ce]=Ce}),z({},re)[ue]!=7||Se(z({},le)).join("")!=pe})?function(le,ue){for(var pe=xe(le),Ce=arguments.length,Pe=1,Ie=ke.f,Oe=ve.f;Ce>Pe;)for(var Ae=fe(arguments[Pe++]),je=Ie?ae(Se(Ae),Ie(Ae)):Se(Ae),Be=je.length,_e=0,qe;Be>_e;)qe=je[_e++],(!me||be(Oe,Ae,qe))&&(pe[qe]=Ae[qe]);return pe}:z},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/object-get-own-property-symbols":202,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-object":250}],196:[function(oe,Ue,Fe){var me=oe("../internals/an-object"),ce=oe("../internals/object-define-properties"),be=oe("../internals/enum-bug-keys"),Le=oe("../internals/hidden-keys"),Se=oe("../internals/html"),ke=oe("../internals/document-create-element"),ve=oe("../internals/shared-key"),xe=">",fe="<",z="prototype",ee="script",ae=ve("IE_PROTO"),re=function(){},le=function(Ie){return fe+ee+xe+Ie+fe+"/"+ee+xe},ue=function(Ie){Ie.write(le("")),Ie.close();var Oe=Ie.parentWindow.Object;return Ie=null,Oe},pe=function(){var Ie=ke("iframe"),Oe="java"+ee+":",Ae;return Ie.style.display="none",Se.appendChild(Ie),Ie.src=String(Oe),Ae=Ie.contentWindow.document,Ae.open(),Ae.write(le("document.F=Object")),Ae.close(),Ae.F},Ce,Pe=function(){try{Ce=new ActiveXObject("htmlfile")}catch(Oe){}Pe=typeof document!="undefined"?document.domain&&Ce?ue(Ce):pe():ue(Ce);for(var Ie=be.length;Ie--;)delete Pe[z][be[Ie]];return Pe()};Le[ae]=!0,Ue.exports=Object.create||function(Oe,Ae){var je;return Oe!==null?(re[z]=me(Oe),je=new re,re[z]=null,je[ae]=Oe):je=Pe(),Ae===void 0?je:ce.f(je,Ae)}},{"../internals/an-object":101,"../internals/document-create-element":135,"../internals/enum-bug-keys":148,"../internals/hidden-keys":165,"../internals/html":167,"../internals/object-define-properties":197,"../internals/shared-key":235}],197:[function(oe,Ue,Fe){var me=oe("../internals/descriptors"),ce=oe("../internals/v8-prototype-define-bug"),be=oe("../internals/object-define-property"),Le=oe("../internals/an-object"),Se=oe("../internals/to-indexed-object"),ke=oe("../internals/object-keys");Fe.f=me&&!ce?Object.defineProperties:function(xe,fe){Le(xe);for(var z=Se(fe),ee=ke(fe),ae=ee.length,re=0,le;ae>re;)be.f(xe,le=ee[re++],z[le]);return xe}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/object-define-property":198,"../internals/object-keys":206,"../internals/to-indexed-object":247,"../internals/v8-prototype-define-bug":265}],198:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/descriptors"),be=oe("../internals/ie8-dom-define"),Le=oe("../internals/v8-prototype-define-bug"),Se=oe("../internals/an-object"),ke=oe("../internals/to-property-key"),ve=me.TypeError,xe=Object.defineProperty,fe=Object.getOwnPropertyDescriptor,z="enumerable",ee="configurable",ae="writable";Fe.f=ce?Le?function(le,ue,pe){if(Se(le),ue=ke(ue),Se(pe),typeof le=="function"&&ue==="prototype"&&"value"in pe&&ae in pe&&!pe[ae]){var Ce=fe(le,ue);Ce&&Ce[ae]&&(le[ue]=pe.value,pe={configurable:ee in pe?pe[ee]:Ce[ee],enumerable:z in pe?pe[z]:Ce[z],writable:!1})}return xe(le,ue,pe)}:xe:function(le,ue,pe){if(Se(le),ue=ke(ue),Se(pe),be)try{return xe(le,ue,pe)}catch(Ce){}if("get"in pe||"set"in pe)throw ve("Accessors not supported");return"value"in pe&&(le[ue]=pe.value),le}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/global":163,"../internals/ie8-dom-define":168,"../internals/to-property-key":254,"../internals/v8-prototype-define-bug":265}],199:[function(oe,Ue,Fe){var me=oe("../internals/descriptors"),ce=oe("../internals/function-call"),be=oe("../internals/object-property-is-enumerable"),Le=oe("../internals/create-property-descriptor"),Se=oe("../internals/to-indexed-object"),ke=oe("../internals/to-property-key"),ve=oe("../internals/has-own-property"),xe=oe("../internals/ie8-dom-define"),fe=Object.getOwnPropertyDescriptor;Fe.f=me?fe:function(ee,ae){if(ee=Se(ee),ae=ke(ae),xe)try{return fe(ee,ae)}catch(re){}if(ve(ee,ae))return Le(!ce(be.f,ee,ae),ee[ae])}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/function-call":155,"../internals/has-own-property":164,"../internals/ie8-dom-define":168,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247,"../internals/to-property-key":254}],200:[function(oe,Ue,Fe){var me=oe("../internals/classof-raw"),ce=oe("../internals/to-indexed-object"),be=oe("../internals/object-get-own-property-names").f,Le=oe("../internals/array-slice-simple"),Se=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ke=function(ve){try{return be(ve)}catch(xe){return Le(Se)}};Ue.exports.f=function(xe){return Se&&me(xe)=="Window"?ke(xe):be(ce(xe))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(oe,Ue,Fe){var me=oe("../internals/object-keys-internal"),ce=oe("../internals/enum-bug-keys"),be=ce.concat("length","prototype");Fe.f=Object.getOwnPropertyNames||function(Se){return me(Se,be)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(oe,Ue,Fe){Fe.f=Object.getOwnPropertySymbols},{}],203:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/has-own-property"),be=oe("../internals/is-callable"),Le=oe("../internals/to-object"),Se=oe("../internals/shared-key"),ke=oe("../internals/correct-prototype-getter"),ve=Se("IE_PROTO"),xe=me.Object,fe=xe.prototype;Ue.exports=ke?xe.getPrototypeOf:function(z){var ee=Le(z);if(ce(ee,ve))return ee[ve];var ae=ee.constructor;return be(ae)&&ee instanceof ae?ae.prototype:ee instanceof xe?fe:null}},{"../internals/correct-prototype-getter":127,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/shared-key":235,"../internals/to-object":250}],204:[function(oe,Ue,Fe){var me=oe("../internals/function-uncurry-this");Ue.exports=me({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(oe,Ue,Fe){var me=oe("../internals/function-uncurry-this"),ce=oe("../internals/has-own-property"),be=oe("../internals/to-indexed-object"),Le=oe("../internals/array-includes").indexOf,Se=oe("../internals/hidden-keys"),ke=me([].push);Ue.exports=function(ve,xe){var fe=be(ve),z=0,ee=[],ae;for(ae in fe)!ce(Se,ae)&&ce(fe,ae)&&ke(ee,ae);for(;xe.length>z;)ce(fe,ae=xe[z++])&&(~Le(ee,ae)||ke(ee,ae));return ee}},{"../internals/array-includes":110,"../internals/function-uncurry-this":157,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/to-indexed-object":247}],206:[function(oe,Ue,Fe){var me=oe("../internals/object-keys-internal"),ce=oe("../internals/enum-bug-keys");Ue.exports=Object.keys||function(Le){return me(Le,ce)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(oe,Ue,Fe){"use strict";var me={}.propertyIsEnumerable,ce=Object.getOwnPropertyDescriptor,be=ce&&!me.call({1:2},1);Fe.f=be?function(Se){var ke=ce(this,Se);return!!ke&&ke.enumerable}:me},{}],208:[function(oe,Ue,Fe){var me=oe("../internals/function-uncurry-this"),ce=oe("../internals/an-object"),be=oe("../internals/a-possible-prototype");Ue.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var Le=!1,Se={},ke;try{ke=me(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),ke(Se,[]),Le=Se instanceof Array}catch(ve){}return function(xe,fe){return ce(xe),be(fe),Le?ke(xe,fe):xe.__proto__=fe,xe}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(oe,Ue,Fe){var me=oe("../internals/descriptors"),ce=oe("../internals/function-uncurry-this"),be=oe("../internals/object-keys"),Le=oe("../internals/to-indexed-object"),Se=oe("../internals/object-property-is-enumerable").f,ke=ce(Se),ve=ce([].push),xe=function(fe){return function(z){for(var ee=Le(z),ae=be(ee),re=ae.length,le=0,ue=[],pe;re>le;)pe=ae[le++],(!me||ke(ee,pe))&&ve(ue,fe?[pe,ee[pe]]:ee[pe]);return ue}};Ue.exports={entries:xe(!0),values:xe(!1)}},{"../internals/descriptors":134,"../internals/function-uncurry-this":157,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247}],210:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/to-string-tag-support"),ce=oe("../internals/classof");Ue.exports=me?{}.toString:function(){return"[object "+ce(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/function-call"),be=oe("../internals/is-callable"),Le=oe("../internals/is-object"),Se=me.TypeError;Ue.exports=function(ke,ve){var xe,fe;if(ve==="string"&&be(xe=ke.toString)&&!Le(fe=ce(xe,ke))||be(xe=ke.valueOf)&&!Le(fe=ce(xe,ke))||ve!=="string"&&be(xe=ke.toString)&&!Le(fe=ce(xe,ke)))return fe;throw Se("Can't convert object to primitive value")}},{"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/is-object":180}],212:[function(oe,Ue,Fe){var me=oe("../internals/get-built-in"),ce=oe("../internals/function-uncurry-this"),be=oe("../internals/object-get-own-property-names"),Le=oe("../internals/object-get-own-property-symbols"),Se=oe("../internals/an-object"),ke=ce([].concat);Ue.exports=me("Reflect","ownKeys")||function(xe){var fe=be.f(Se(xe)),z=Le.f;return z?ke(fe,z(xe)):fe}},{"../internals/an-object":101,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-symbols":202}],213:[function(oe,Ue,Fe){var me=oe("../internals/global");Ue.exports=me},{"../internals/global":163}],214:[function(oe,Ue,Fe){Ue.exports=function(me){try{return{error:!1,value:me()}}catch(ce){return{error:!0,value:ce}}}},{}],215:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/promise-native-constructor"),be=oe("../internals/is-callable"),Le=oe("../internals/is-forced"),Se=oe("../internals/inspect-source"),ke=oe("../internals/well-known-symbol"),ve=oe("../internals/engine-is-browser"),xe=oe("../internals/is-pure"),fe=oe("../internals/engine-v8-version"),z=ce&&ce.prototype,ee=ke("species"),ae=!1,re=be(me.PromiseRejectionEvent),le=Le("Promise",function(){var ue=Se(ce),pe=ue!==String(ce);if(!pe&&fe===66||xe&&!(z.catch&&z.finally))return!0;if(fe>=51&&/native code/.test(ue))return!1;var Ce=new ce(function(Oe){Oe(1)}),Pe=function(Oe){Oe(function(){},function(){})},Ie=Ce.constructor={};return Ie[ee]=Pe,ae=Ce.then(function(){})instanceof Pe,ae?!pe&&ve&&!re:!0});Ue.exports={CONSTRUCTOR:le,REJECTION_EVENT:re,SUBCLASSING:ae}},{"../internals/engine-is-browser":139,"../internals/engine-v8-version":146,"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176,"../internals/is-forced":178,"../internals/is-pure":181,"../internals/promise-native-constructor":216,"../internals/well-known-symbol":268}],216:[function(oe,Ue,Fe){var me=oe("../internals/global");Ue.exports=me.Promise},{"../internals/global":163}],217:[function(oe,Ue,Fe){var me=oe("../internals/an-object"),ce=oe("../internals/is-object"),be=oe("../internals/new-promise-capability");Ue.exports=function(Le,Se){if(me(Le),ce(Se)&&Se.constructor===Le)return Se;var ke=be.f(Le),ve=ke.resolve;return ve(Se),ke.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(oe,Ue,Fe){var me=oe("../internals/promise-native-constructor"),ce=oe("../internals/check-correctness-of-iteration"),be=oe("../internals/promise-constructor-detection").CONSTRUCTOR;Ue.exports=be||!ce(function(Le){me.all(Le).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(oe,Ue,Fe){var me=oe("../internals/object-define-property").f;Ue.exports=function(ce,be,Le){Le in ce||me(ce,Le,{configurable:!0,get:function(){return be[Le]},set:function(Se){be[Le]=Se}})}},{"../internals/object-define-property":198}],220:[function(oe,Ue,Fe){var me=function(){this.head=null,this.tail=null};me.prototype={add:function(ce){var be={item:ce,next:null};this.head?this.tail.next=be:this.head=be,this.tail=be},get:function(){var ce=this.head;if(ce)return this.head=ce.next,this.tail===ce&&(this.tail=null),ce.item}},Ue.exports=me},{}],221:[function(oe,Ue,Fe){var me=oe("../internals/redefine");Ue.exports=function(ce,be,Le){for(var Se in be)me(ce,Se,be[Se],Le);return ce}},{"../internals/redefine":222}],222:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/is-callable"),be=oe("../internals/has-own-property"),Le=oe("../internals/create-non-enumerable-property"),Se=oe("../internals/set-global"),ke=oe("../internals/inspect-source"),ve=oe("../internals/internal-state"),xe=oe("../internals/function-name").CONFIGURABLE,fe=ve.get,z=ve.enforce,ee=String(String).split("String");(Ue.exports=function(ae,re,le,ue){var pe=ue?!!ue.unsafe:!1,Ce=ue?!!ue.enumerable:!1,Pe=ue?!!ue.noTargetGet:!1,Ie=ue&&ue.name!==void 0?ue.name:re,Oe;if(ce(le)&&(String(Ie).slice(0,7)==="Symbol("&&(Ie="["+String(Ie).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!be(le,"name")||xe&&le.name!==Ie)&&Le(le,"name",Ie),Oe=z(le),Oe.source||(Oe.source=ee.join(typeof Ie=="string"?Ie:""))),ae===me){Ce?ae[re]=le:Se(re,le);return}else pe?!Pe&&ae[re]&&(Ce=!0):delete ae[re];Ce?ae[re]=le:Le(ae,re,le)})(Function.prototype,"toString",function(){return ce(this)&&fe(this).source||ke(this)})},{"../internals/create-non-enumerable-property":129,"../internals/function-name":156,"../internals/global":163,"../internals/has-own-property":164,"../internals/inspect-source":172,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/set-global":232}],223:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/function-call"),be=oe("../internals/an-object"),Le=oe("../internals/is-callable"),Se=oe("../internals/classof-raw"),ke=oe("../internals/regexp-exec"),ve=me.TypeError;Ue.exports=function(xe,fe){var z=xe.exec;if(Le(z)){var ee=ce(z,xe,fe);return ee!==null&&be(ee),ee}if(Se(xe)==="RegExp")return ce(ke,xe,fe);throw ve("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":101,"../internals/classof-raw":123,"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/regexp-exec":224}],224:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/function-call"),ce=oe("../internals/function-uncurry-this"),be=oe("../internals/to-string"),Le=oe("../internals/regexp-flags"),Se=oe("../internals/regexp-sticky-helpers"),ke=oe("../internals/shared"),ve=oe("../internals/object-create"),xe=oe("../internals/internal-state").get,fe=oe("../internals/regexp-unsupported-dot-all"),z=oe("../internals/regexp-unsupported-ncg"),ee=ke("native-string-replace",String.prototype.replace),ae=RegExp.prototype.exec,re=ae,le=ce("".charAt),ue=ce("".indexOf),pe=ce("".replace),Ce=ce("".slice),Pe=function(){var je=/a/,Be=/b*/g;return me(ae,je,"a"),me(ae,Be,"a"),je.lastIndex!==0||Be.lastIndex!==0}(),Ie=Se.BROKEN_CARET,Oe=/()??/.exec("")[1]!==void 0,Ae=Pe||Oe||Ie||fe||z;Ae&&(re=function(Be){var _e=this,qe=xe(_e),ze=be(Be),Ye=qe.raw,et,lt,dt,vt,Je,ot,ft;if(Ye)return Ye.lastIndex=_e.lastIndex,et=me(re,Ye,ze),_e.lastIndex=Ye.lastIndex,et;var xt=qe.groups,yt=Ie&&_e.sticky,pt=me(Le,_e),gt=_e.source,mt=0,Mt=ze;if(yt&&(pt=pe(pt,"y",""),ue(pt,"g")===-1&&(pt+="g"),Mt=Ce(ze,_e.lastIndex),_e.lastIndex>0&&(!_e.multiline||_e.multiline&&le(ze,_e.lastIndex-1)!==`
|
|
|
`)&&(gt="(?: "+gt+")",Mt=" "+Mt,mt++),lt=new RegExp("^(?:"+gt+")",pt)),Oe&&(lt=new RegExp("^"+gt+"$(?!\\s)",pt)),Pe&&(dt=_e.lastIndex),vt=me(ae,yt?lt:_e,Mt),yt?vt?(vt.input=Ce(vt.input,mt),vt[0]=Ce(vt[0],mt),vt.index=_e.lastIndex,_e.lastIndex+=vt[0].length):_e.lastIndex=0:Pe&&vt&&(_e.lastIndex=_e.global?vt.index+vt[0].length:dt),Oe&&vt&&vt.length>1&&me(ee,vt[0],lt,function(){for(Je=1;Je<arguments.length-2;Je++)arguments[Je]===void 0&&(vt[Je]=void 0)}),vt&&xt)for(vt.groups=ot=ve(null),Je=0;Je<xt.length;Je++)ft=xt[Je],ot[ft[0]]=vt[ft[1]];return vt}),Ue.exports=re},{"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/internal-state":173,"../internals/object-create":196,"../internals/regexp-flags":225,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/shared":237,"../internals/to-string":256}],225:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/an-object");Ue.exports=function(){var ce=me(this),be="";return ce.hasIndices&&(be+="d"),ce.global&&(be+="g"),ce.ignoreCase&&(be+="i"),ce.multiline&&(be+="m"),ce.dotAll&&(be+="s"),ce.unicode&&(be+="u"),ce.sticky&&(be+="y"),be}},{"../internals/an-object":101}],226:[function(oe,Ue,Fe){var me=oe("../internals/function-call"),ce=oe("../internals/has-own-property"),be=oe("../internals/object-is-prototype-of"),Le=oe("../internals/regexp-flags"),Se=RegExp.prototype;Ue.exports=function(ke){var ve=ke.flags;return ve===void 0&&!("flags"in Se)&&!ce(ke,"flags")&&be(Se,ke)?me(Le,ke):ve}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(oe,Ue,Fe){var me=oe("../internals/fails"),ce=oe("../internals/global"),be=ce.RegExp,Le=me(function(){var ve=be("a","y");return ve.lastIndex=2,ve.exec("abcd")!=null}),Se=Le||me(function(){return!be("a","y").sticky}),ke=Le||me(function(){var ve=be("^r","gy");return ve.lastIndex=2,ve.exec("str")!=null});Ue.exports={BROKEN_CARET:ke,MISSED_STICKY:Se,UNSUPPORTED_Y:Le}},{"../internals/fails":150,"../internals/global":163}],228:[function(oe,Ue,Fe){var me=oe("../internals/fails"),ce=oe("../internals/global"),be=ce.RegExp;Ue.exports=me(function(){var Le=be(".","s");return!(Le.dotAll&&Le.exec(`
|
|
|
`)&&Le.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(oe,Ue,Fe){var me=oe("../internals/fails"),ce=oe("../internals/global"),be=ce.RegExp;Ue.exports=me(function(){var Le=be("(?<a>b)","g");return Le.exec("b").groups.a!=="b"||"b".replace(Le,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=me.TypeError;Ue.exports=function(be){if(be==null)throw ce("Can't call method on "+be);return be}},{"../internals/global":163}],231:[function(oe,Ue,Fe){Ue.exports=Object.is||function(ce,be){return ce===be?ce!==0||1/ce===1/be:ce!=ce&&be!=be}},{}],232:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=Object.defineProperty;Ue.exports=function(be,Le){try{ce(me,be,{value:Le,configurable:!0,writable:!0})}catch(Se){me[be]=Le}return Le}},{"../internals/global":163}],233:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/get-built-in"),ce=oe("../internals/object-define-property"),be=oe("../internals/well-known-symbol"),Le=oe("../internals/descriptors"),Se=be("species");Ue.exports=function(ke){var ve=me(ke),xe=ce.f;Le&&ve&&!ve[Se]&&xe(ve,Se,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":134,"../internals/get-built-in":158,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],234:[function(oe,Ue,Fe){var me=oe("../internals/object-define-property").f,ce=oe("../internals/has-own-property"),be=oe("../internals/well-known-symbol"),Le=be("toStringTag");Ue.exports=function(Se,ke,ve){Se&&!ve&&(Se=Se.prototype),Se&&!ce(Se,Le)&&me(Se,Le,{configurable:!0,value:ke})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(oe,Ue,Fe){var me=oe("../internals/shared"),ce=oe("../internals/uid"),be=me("keys");Ue.exports=function(Le){return be[Le]||(be[Le]=ce(Le))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/set-global"),be="__core-js_shared__",Le=me[be]||ce(be,{});Ue.exports=Le},{"../internals/global":163,"../internals/set-global":232}],237:[function(oe,Ue,Fe){var me=oe("../internals/is-pure"),ce=oe("../internals/shared-store");(Ue.exports=function(be,Le){return ce[be]||(ce[be]=Le!==void 0?Le:{})})("versions",[]).push({version:"3.22.1",mode:me?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":181,"../internals/shared-store":236}],238:[function(oe,Ue,Fe){var me=oe("../internals/an-object"),ce=oe("../internals/a-constructor"),be=oe("../internals/well-known-symbol"),Le=be("species");Ue.exports=function(Se,ke){var ve=me(Se).constructor,xe;return ve===void 0||(xe=me(ve)[Le])==null?ke:ce(xe)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(oe,Ue,Fe){var me=oe("../internals/function-uncurry-this"),ce=oe("../internals/to-integer-or-infinity"),be=oe("../internals/to-string"),Le=oe("../internals/require-object-coercible"),Se=me("".charAt),ke=me("".charCodeAt),ve=me("".slice),xe=function(fe){return function(z,ee){var ae=be(Le(z)),re=ce(ee),le=ae.length,ue,pe;return re<0||re>=le?fe?"":void 0:(ue=ke(ae,re),ue<55296||ue>56319||re+1===le||(pe=ke(ae,re+1))<56320||pe>57343?fe?Se(ae,re):ue:fe?ve(ae,re,re+2):(ue-55296<<10)+(pe-56320)+65536)}};Ue.exports={codeAt:xe(!1),charAt:xe(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(oe,Ue,Fe){var me=oe("../internals/function-name").PROPER,ce=oe("../internals/fails"),be=oe("../internals/whitespaces"),Le="\u200B\x85\u180E";Ue.exports=function(Se){return ce(function(){return!!be[Se]()||Le[Se]()!==Le||me&&be[Se].name!==Se})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(oe,Ue,Fe){var me=oe("../internals/function-uncurry-this"),ce=oe("../internals/require-object-coercible"),be=oe("../internals/to-string"),Le=oe("../internals/whitespaces"),Se=me("".replace),ke="["+Le+"]",ve=RegExp("^"+ke+ke+"*"),xe=RegExp(ke+ke+"*$"),fe=function(z){return function(ee){var ae=be(ce(ee));return z&1&&(ae=Se(ae,ve,"")),z&2&&(ae=Se(ae,xe,"")),ae}};Ue.exports={start:fe(1),end:fe(2),trim:fe(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(oe,Ue,Fe){var me=oe("../internals/function-call"),ce=oe("../internals/get-built-in"),be=oe("../internals/well-known-symbol"),Le=oe("../internals/redefine");Ue.exports=function(){var Se=ce("Symbol"),ke=Se&&Se.prototype,ve=ke&&ke.valueOf,xe=be("toPrimitive");ke&&!ke[xe]&&Le(ke,xe,function(fe){return me(ve,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/function-apply"),be=oe("../internals/function-bind-context"),Le=oe("../internals/is-callable"),Se=oe("../internals/has-own-property"),ke=oe("../internals/fails"),ve=oe("../internals/html"),xe=oe("../internals/array-slice"),fe=oe("../internals/document-create-element"),z=oe("../internals/validate-arguments-length"),ee=oe("../internals/engine-is-ios"),ae=oe("../internals/engine-is-node"),re=me.setImmediate,le=me.clearImmediate,ue=me.process,pe=me.Dispatch,Ce=me.Function,Pe=me.MessageChannel,Ie=me.String,Oe=0,Ae={},je="onreadystatechange",Be,_e,qe,ze;try{Be=me.location}catch(vt){}var Ye=function(vt){if(Se(Ae,vt)){var Je=Ae[vt];delete Ae[vt],Je()}},et=function(vt){return function(){Ye(vt)}},lt=function(vt){Ye(vt.data)},dt=function(vt){me.postMessage(Ie(vt),Be.protocol+"//"+Be.host)};(!re||!le)&&(re=function(Je){z(arguments.length,1);var ot=Le(Je)?Je:Ce(Je),ft=xe(arguments,1);return Ae[++Oe]=function(){ce(ot,void 0,ft)},_e(Oe),Oe},le=function(Je){delete Ae[Je]},ae?_e=function(vt){ue.nextTick(et(vt))}:pe&&pe.now?_e=function(vt){pe.now(et(vt))}:Pe&&!ee?(qe=new Pe,ze=qe.port2,qe.port1.onmessage=lt,_e=be(ze.postMessage,ze)):me.addEventListener&&Le(me.postMessage)&&!me.importScripts&&Be&&Be.protocol!=="file:"&&!ke(dt)?(_e=dt,me.addEventListener("message",lt,!1)):je in fe("script")?_e=function(vt){ve.appendChild(fe("script"))[je]=function(){ve.removeChild(this),Ye(vt)}}:_e=function(vt){setTimeout(et(vt),0)}),Ue.exports={set:re,clear:le}},{"../internals/array-slice":117,"../internals/document-create-element":135,"../internals/engine-is-ios":142,"../internals/engine-is-node":143,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-bind-context":153,"../internals/global":163,"../internals/has-own-property":164,"../internals/html":167,"../internals/is-callable":176,"../internals/validate-arguments-length":266}],244:[function(oe,Ue,Fe){var me=oe("../internals/function-uncurry-this");Ue.exports=me(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(oe,Ue,Fe){var me=oe("../internals/to-integer-or-infinity"),ce=Math.max,be=Math.min;Ue.exports=function(Le,Se){var ke=me(Le);return ke<0?ce(ke+Se,0):be(ke,Se)}},{"../internals/to-integer-or-infinity":248}],246:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/to-integer-or-infinity"),be=oe("../internals/to-length"),Le=me.RangeError;Ue.exports=function(Se){if(Se===void 0)return 0;var ke=ce(Se),ve=be(ke);if(ke!==ve)throw Le("Wrong length or index");return ve}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(oe,Ue,Fe){var me=oe("../internals/indexed-object"),ce=oe("../internals/require-object-coercible");Ue.exports=function(be){return me(ce(be))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(oe,Ue,Fe){var me=Math.ceil,ce=Math.floor;Ue.exports=function(be){var Le=+be;return Le!==Le||Le===0?0:(Le>0?ce:me)(Le)}},{}],249:[function(oe,Ue,Fe){var me=oe("../internals/to-integer-or-infinity"),ce=Math.min;Ue.exports=function(be){return be>0?ce(me(be),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/require-object-coercible"),be=me.Object;Ue.exports=function(Le){return be(ce(Le))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/to-positive-integer"),be=me.RangeError;Ue.exports=function(Le,Se){var ke=ce(Le);if(ke%Se)throw be("Wrong offset");return ke}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/to-integer-or-infinity"),be=me.RangeError;Ue.exports=function(Le){var Se=ce(Le);if(Se<0)throw be("The argument can't be less than 0");return Se}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/function-call"),be=oe("../internals/is-object"),Le=oe("../internals/is-symbol"),Se=oe("../internals/get-method"),ke=oe("../internals/ordinary-to-primitive"),ve=oe("../internals/well-known-symbol"),xe=me.TypeError,fe=ve("toPrimitive");Ue.exports=function(z,ee){if(!be(z)||Le(z))return z;var ae=Se(z,fe),re;if(ae){if(ee===void 0&&(ee="default"),re=ce(ae,z,ee),!be(re)||Le(re))return re;throw xe("Can't convert object to primitive value")}return ee===void 0&&(ee="number"),ke(z,ee)}},{"../internals/function-call":155,"../internals/get-method":161,"../internals/global":163,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/ordinary-to-primitive":211,"../internals/well-known-symbol":268}],254:[function(oe,Ue,Fe){var me=oe("../internals/to-primitive"),ce=oe("../internals/is-symbol");Ue.exports=function(be){var Le=me(be,"string");return ce(Le)?Le:Le+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(oe,Ue,Fe){var me=oe("../internals/well-known-symbol"),ce=me("toStringTag"),be={};be[ce]="z",Ue.exports=String(be)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/classof"),be=me.String;Ue.exports=function(Le){if(ce(Le)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return be(Le)}},{"../internals/classof":124,"../internals/global":163}],257:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=me.String;Ue.exports=function(be){try{return ce(be)}catch(Le){return"Object"}}},{"../internals/global":163}],258:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/export"),ce=oe("../internals/global"),be=oe("../internals/function-call"),Le=oe("../internals/descriptors"),Se=oe("../internals/typed-array-constructors-require-wrappers"),ke=oe("../internals/array-buffer-view-core"),ve=oe("../internals/array-buffer"),xe=oe("../internals/an-instance"),fe=oe("../internals/create-property-descriptor"),z=oe("../internals/create-non-enumerable-property"),ee=oe("../internals/is-integral-number"),ae=oe("../internals/to-length"),re=oe("../internals/to-index"),le=oe("../internals/to-offset"),ue=oe("../internals/to-property-key"),pe=oe("../internals/has-own-property"),Ce=oe("../internals/classof"),Pe=oe("../internals/is-object"),Ie=oe("../internals/is-symbol"),Oe=oe("../internals/object-create"),Ae=oe("../internals/object-is-prototype-of"),je=oe("../internals/object-set-prototype-of"),Be=oe("../internals/object-get-own-property-names").f,_e=oe("../internals/typed-array-from"),qe=oe("../internals/array-iteration").forEach,ze=oe("../internals/set-species"),Ye=oe("../internals/object-define-property"),et=oe("../internals/object-get-own-property-descriptor"),lt=oe("../internals/internal-state"),dt=oe("../internals/inherit-if-required"),vt=lt.get,Je=lt.set,ot=Ye.f,ft=et.f,xt=Math.round,yt=ce.RangeError,pt=ve.ArrayBuffer,gt=pt.prototype,mt=ve.DataView,Mt=ke.NATIVE_ARRAY_BUFFER_VIEWS,Ct=ke.TYPED_ARRAY_CONSTRUCTOR,zt=ke.TYPED_ARRAY_TAG,St=ke.TypedArray,bt=ke.TypedArrayPrototype,at=ke.aTypedArrayConstructor,nt=ke.isTypedArray,we="BYTES_PER_ELEMENT",Te="Wrong length",Ve=function(Xe,ct){at(Xe);for(var Et=0,ht=ct.length,It=new Xe(ht);ht>Et;)It[Et]=ct[Et++];return It},Ze=function(Xe,ct){ot(Xe,ct,{get:function(){return vt(this)[ct]}})},Ee=function(Xe){var ct;return Ae(gt,Xe)||(ct=Ce(Xe))=="ArrayBuffer"||ct=="SharedArrayBuffer"},Ge=function(Xe,ct){return nt(Xe)&&!Ie(ct)&&ct in Xe&&ee(+ct)&&ct>=0},He=function(ct,Et){return Et=ue(Et),Ge(ct,Et)?fe(2,ct[Et]):ft(ct,Et)},We=function(ct,Et,ht){return Et=ue(Et),Ge(ct,Et)&&Pe(ht)&&pe(ht,"value")&&!pe(ht,"get")&&!pe(ht,"set")&&!ht.configurable&&(!pe(ht,"writable")||ht.writable)&&(!pe(ht,"enumerable")||ht.enumerable)?(ct[Et]=ht.value,ct):ot(ct,Et,ht)};Le?(Mt||(et.f=He,Ye.f=We,Ze(bt,"buffer"),Ze(bt,"byteOffset"),Ze(bt,"byteLength"),Ze(bt,"length")),me({target:"Object",stat:!0,forced:!Mt},{getOwnPropertyDescriptor:He,defineProperty:We}),Ue.exports=function(Xe,ct,Et){var ht=Xe.match(/\d+$/)[0]/8,It=Xe+(Et?"Clamped":"")+"Array",qt="get"+Xe,$t="set"+Xe,Wt=ce[It],Ut=Wt,ln=Ut&&Ut.prototype,kt={},Xt=function(Mn,Rn){var ir=vt(Mn);return ir.view[qt](Rn*ht+ir.byteOffset,!0)},tn=function(Mn,Rn,ir){var qn=vt(Mn);Et&&(ir=(ir=xt(ir))<0?0:ir>255?255:ir&255),qn.view[$t](Rn*ht+qn.byteOffset,ir,!0)},dn=function(Mn,Rn){ot(Mn,Rn,{get:function(){return Xt(this,Rn)},set:function(ir){return tn(this,Rn,ir)},enumerable:!0})};Mt?Se&&(Ut=ct(function(Mn,Rn,ir,qn){return xe(Mn,ln),dt(function(){return Pe(Rn)?Ee(Rn)?qn!==void 0?new Wt(Rn,le(ir,ht),qn):ir!==void 0?new Wt(Rn,le(ir,ht)):new Wt(Rn):nt(Rn)?Ve(Ut,Rn):be(_e,Ut,Rn):new Wt(re(Rn))}(),Mn,Ut)}),je&&je(Ut,St),qe(Be(Wt),function(Mn){Mn in Ut||z(Ut,Mn,Wt[Mn])}),Ut.prototype=ln):(Ut=ct(function(Mn,Rn,ir,qn){xe(Mn,ln);var Cr=0,er=0,Fr,jr,fi;if(!Pe(Rn))fi=re(Rn),jr=fi*ht,Fr=new pt(jr);else if(Ee(Rn)){Fr=Rn,er=le(ir,ht);var Si=Rn.byteLength;if(qn===void 0){if(Si%ht||(jr=Si-er,jr<0))throw yt(Te)}else if(jr=ae(qn)*ht,jr+er>Si)throw yt(Te);fi=jr/ht}else return nt(Rn)?Ve(Ut,Rn):be(_e,Ut,Rn);for(Je(Mn,{buffer:Fr,byteOffset:er,byteLength:jr,length:fi,view:new mt(Fr)});Cr<fi;)dn(Mn,Cr++)}),je&&je(Ut,St),ln=Ut.prototype=Oe(bt)),ln.constructor!==Ut&&z(ln,"constructor",Ut),z(ln,Ct,Ut),zt&&z(ln,zt,It),kt[It]=Ut,me({global:!0,forced:Ut!=Wt,sham:!Mt},kt),we in Ut||z(Ut,we,ht),we in ln||z(ln,we,ht),ze(It)}):Ue.exports=function(){}},{"../internals/an-instance":100,"../internals/array-buffer":104,"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-integral-number":179,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/object-create":196,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/set-species":233,"../internals/to-index":246,"../internals/to-length":249,"../internals/to-offset":251,"../internals/to-property-key":254,"../internals/typed-array-constructors-require-wrappers":259,"../internals/typed-array-from":261}],259:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/fails"),be=oe("../internals/check-correctness-of-iteration"),Le=oe("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,Se=me.ArrayBuffer,ke=me.Int8Array;Ue.exports=!Le||!ce(function(){ke(1)})||!ce(function(){new ke(-1)})||!be(function(ve){new ke,new ke(null),new ke(1.5),new ke(ve)},!0)||ce(function(){return new ke(new Se(2),1,void 0).length!==1})},{"../internals/array-buffer-view-core":103,"../internals/check-correctness-of-iteration":122,"../internals/fails":150,"../internals/global":163}],260:[function(oe,Ue,Fe){var me=oe("../internals/array-from-constructor-and-list"),ce=oe("../internals/typed-array-species-constructor");Ue.exports=function(be,Le){return me(ce(be),Le)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(oe,Ue,Fe){var me=oe("../internals/function-bind-context"),ce=oe("../internals/function-call"),be=oe("../internals/a-constructor"),Le=oe("../internals/to-object"),Se=oe("../internals/length-of-array-like"),ke=oe("../internals/get-iterator"),ve=oe("../internals/get-iterator-method"),xe=oe("../internals/is-array-iterator-method"),fe=oe("../internals/array-buffer-view-core").aTypedArrayConstructor;Ue.exports=function(ee){var ae=be(this),re=Le(ee),le=arguments.length,ue=le>1?arguments[1]:void 0,pe=ue!==void 0,Ce=ve(re),Pe,Ie,Oe,Ae,je,Be;if(Ce&&!xe(Ce))for(je=ke(re,Ce),Be=je.next,re=[];!(Ae=ce(Be,je)).done;)re.push(Ae.value);for(pe&&le>2&&(ue=me(ue,arguments[2])),Ie=Se(re),Oe=new(fe(ae))(Ie),Pe=0;Ie>Pe;Pe++)Oe[Pe]=pe?ue(re[Pe],Pe):re[Pe];return Oe}},{"../internals/a-constructor":96,"../internals/array-buffer-view-core":103,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/is-array-iterator-method":174,"../internals/length-of-array-like":188,"../internals/to-object":250}],262:[function(oe,Ue,Fe){var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/species-constructor"),be=me.TYPED_ARRAY_CONSTRUCTOR,Le=me.aTypedArrayConstructor;Ue.exports=function(Se){return Le(ce(Se,Se[be]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(oe,Ue,Fe){var me=oe("../internals/function-uncurry-this"),ce=0,be=Math.random(),Le=me(1 .toString);Ue.exports=function(Se){return"Symbol("+(Se===void 0?"":Se)+")_"+Le(++ce+be,36)}},{"../internals/function-uncurry-this":157}],264:[function(oe,Ue,Fe){var me=oe("../internals/native-symbol");Ue.exports=me&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(oe,Ue,Fe){var me=oe("../internals/descriptors"),ce=oe("../internals/fails");Ue.exports=me&&ce(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=me.TypeError;Ue.exports=function(be,Le){if(be<Le)throw ce("Not enough arguments");return be}},{"../internals/global":163}],267:[function(oe,Ue,Fe){var me=oe("../internals/well-known-symbol");Fe.f=me},{"../internals/well-known-symbol":268}],268:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/shared"),be=oe("../internals/has-own-property"),Le=oe("../internals/uid"),Se=oe("../internals/native-symbol"),ke=oe("../internals/use-symbol-as-uid"),ve=ce("wks"),xe=me.Symbol,fe=xe&&xe.for,z=ke?xe:xe&&xe.withoutSetter||Le;Ue.exports=function(ee){if(!be(ve,ee)||!(Se||typeof ve[ee]=="string")){var ae="Symbol."+ee;Se&&be(xe,ee)?ve[ee]=xe[ee]:ke&&fe?ve[ee]=fe(ae):ve[ee]=z(ae)}return ve[ee]}},{"../internals/global":163,"../internals/has-own-property":164,"../internals/native-symbol":191,"../internals/shared":237,"../internals/uid":263,"../internals/use-symbol-as-uid":264}],269:[function(oe,Ue,Fe){Ue.exports=`
|
|
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},{}],270:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/export"),ce=oe("../internals/global"),be=oe("../internals/array-buffer"),Le=oe("../internals/set-species"),Se="ArrayBuffer",ke=be[Se],ve=ce[Se];me({global:!0,forced:ve!==ke},{ArrayBuffer:ke}),Le(Se)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/export"),ce=oe("../internals/function-uncurry-this"),be=oe("../internals/fails"),Le=oe("../internals/array-buffer"),Se=oe("../internals/an-object"),ke=oe("../internals/to-absolute-index"),ve=oe("../internals/to-length"),xe=oe("../internals/species-constructor"),fe=Le.ArrayBuffer,z=Le.DataView,ee=z.prototype,ae=ce(fe.prototype.slice),re=ce(ee.getUint8),le=ce(ee.setUint8),ue=be(function(){return!new fe(2).slice(1,void 0).byteLength});me({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:ue},{slice:function(Ce,Pe){if(ae&&Pe===void 0)return ae(Se(this),Ce);for(var Ie=Se(this).byteLength,Oe=ke(Ce,Ie),Ae=ke(Pe===void 0?Ie:Pe,Ie),je=new(xe(this,fe))(ve(Ae-Oe)),Be=new z(this),_e=new z(je),qe=0;Oe<Ae;)le(_e,qe++,re(Be,Oe++));return je}})},{"../internals/an-object":101,"../internals/array-buffer":104,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/species-constructor":238,"../internals/to-absolute-index":245,"../internals/to-length":249}],272:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/export"),ce=oe("../internals/global"),be=oe("../internals/fails"),Le=oe("../internals/is-array"),Se=oe("../internals/is-object"),ke=oe("../internals/to-object"),ve=oe("../internals/length-of-array-like"),xe=oe("../internals/create-property"),fe=oe("../internals/array-species-create"),z=oe("../internals/array-method-has-species-support"),ee=oe("../internals/well-known-symbol"),ae=oe("../internals/engine-v8-version"),re=ee("isConcatSpreadable"),le=9007199254740991,ue="Maximum allowed index exceeded",pe=ce.TypeError,Ce=ae>=51||!be(function(){var Ae=[];return Ae[re]=!1,Ae.concat()[0]!==Ae}),Pe=z("concat"),Ie=function(Ae){if(!Se(Ae))return!1;var je=Ae[re];return je!==void 0?!!je:Le(Ae)},Oe=!Ce||!Pe;me({target:"Array",proto:!0,forced:Oe},{concat:function(je){var Be=ke(this),_e=fe(Be,0),qe=0,ze,Ye,et,lt,dt;for(ze=-1,et=arguments.length;ze<et;ze++)if(dt=ze===-1?Be:arguments[ze],Ie(dt)){if(lt=ve(dt),qe+lt>le)throw pe(ue);for(Ye=0;Ye<lt;Ye++,qe++)Ye in dt&&xe(_e,qe,dt[Ye])}else{if(qe>=le)throw pe(ue);xe(_e,qe++,dt)}return _e.length=qe,_e}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/engine-v8-version":146,"../internals/export":149,"../internals/fails":150,"../internals/global":163,"../internals/is-array":175,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/well-known-symbol":268}],273:[function(oe,Ue,Fe){var me=oe("../internals/export"),ce=oe("../internals/array-fill"),be=oe("../internals/add-to-unscopables");me({target:"Array",proto:!0},{fill:ce}),be("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/export"),ce=oe("../internals/array-iteration").filter,be=oe("../internals/array-method-has-species-support"),Le=be("filter");me({target:"Array",proto:!0,forced:!Le},{filter:function(ke){return ce(this,ke,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/export"),ce=oe("../internals/array-iteration").find,be=oe("../internals/add-to-unscopables"),Le="find",Se=!0;Le in[]&&Array(1)[Le](function(){Se=!1}),me({target:"Array",proto:!0,forced:Se},{find:function(ve){return ce(this,ve,arguments.length>1?arguments[1]:void 0)}}),be(Le)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(oe,Ue,Fe){var me=oe("../internals/export"),ce=oe("../internals/array-from"),be=oe("../internals/check-correctness-of-iteration"),Le=!be(function(Se){Array.from(Se)});me({target:"Array",stat:!0,forced:Le},{from:ce})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/export"),ce=oe("../internals/array-includes").includes,be=oe("../internals/add-to-unscopables");me({target:"Array",proto:!0},{includes:function(Se){return ce(this,Se,arguments.length>1?arguments[1]:void 0)}}),be("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/to-indexed-object"),ce=oe("../internals/add-to-unscopables"),be=oe("../internals/iterators"),Le=oe("../internals/internal-state"),Se=oe("../internals/object-define-property").f,ke=oe("../internals/define-iterator"),ve=oe("../internals/is-pure"),xe=oe("../internals/descriptors"),fe="Array Iterator",z=Le.set,ee=Le.getterFor(fe);Ue.exports=ke(Array,"Array",function(re,le){z(this,{type:fe,target:me(re),index:0,kind:le})},function(){var re=ee(this),le=re.target,ue=re.kind,pe=re.index++;return!le||pe>=le.length?(re.target=void 0,{value:void 0,done:!0}):ue=="keys"?{value:pe,done:!1}:ue=="values"?{value:le[pe],done:!1}:{value:[pe,le[pe]],done:!1}},"values");var ae=be.Arguments=be.Array;if(ce("keys"),ce("values"),ce("entries"),!ve&&xe&&ae.name!=="values")try{Se(ae,"name",{value:"values"})}catch(re){}},{"../internals/add-to-unscopables":98,"../internals/define-iterator":132,"../internals/descriptors":134,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/iterators":187,"../internals/object-define-property":198,"../internals/to-indexed-object":247}],279:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/export"),ce=oe("../internals/function-uncurry-this"),be=oe("../internals/indexed-object"),Le=oe("../internals/to-indexed-object"),Se=oe("../internals/array-method-is-strict"),ke=ce([].join),ve=be!=Object,xe=Se("join",",");me({target:"Array",proto:!0,forced:ve||!xe},{join:function(z){return ke(Le(this),z===void 0?",":z)}})},{"../internals/array-method-is-strict":114,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/to-indexed-object":247}],280:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/export"),ce=oe("../internals/array-iteration").map,be=oe("../internals/array-method-has-species-support"),Le=be("map");me({target:"Array",proto:!0,forced:!Le},{map:function(ke){return ce(this,ke,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/export"),ce=oe("../internals/global"),be=oe("../internals/is-array"),Le=oe("../internals/is-constructor"),Se=oe("../internals/is-object"),ke=oe("../internals/to-absolute-index"),ve=oe("../internals/length-of-array-like"),xe=oe("../internals/to-indexed-object"),fe=oe("../internals/create-property"),z=oe("../internals/well-known-symbol"),ee=oe("../internals/array-method-has-species-support"),ae=oe("../internals/array-slice"),re=ee("slice"),le=z("species"),ue=ce.Array,pe=Math.max;me({target:"Array",proto:!0,forced:!re},{slice:function(Pe,Ie){var Oe=xe(this),Ae=ve(Oe),je=ke(Pe,Ae),Be=ke(Ie===void 0?Ae:Ie,Ae),_e,qe,ze;if(be(Oe)&&(_e=Oe.constructor,Le(_e)&&(_e===ue||be(_e.prototype))?_e=void 0:Se(_e)&&(_e=_e[le],_e===null&&(_e=void 0)),_e===ue||_e===void 0))return ae(Oe,je,Be);for(qe=new(_e===void 0?ue:_e)(pe(Be-je,0)),ze=0;je<Be;je++,ze++)je in Oe&&fe(qe,ze,Oe[je]);return qe.length=ze,qe}})},{"../internals/array-method-has-species-support":113,"../internals/array-slice":117,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247,"../internals/well-known-symbol":268}],282:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/export"),ce=oe("../internals/function-uncurry-this"),be=oe("../internals/a-callable"),Le=oe("../internals/to-object"),Se=oe("../internals/length-of-array-like"),ke=oe("../internals/to-string"),ve=oe("../internals/fails"),xe=oe("../internals/array-sort"),fe=oe("../internals/array-method-is-strict"),z=oe("../internals/engine-ff-version"),ee=oe("../internals/engine-is-ie-or-edge"),ae=oe("../internals/engine-v8-version"),re=oe("../internals/engine-webkit-version"),le=[],ue=ce(le.sort),pe=ce(le.push),Ce=ve(function(){le.sort(void 0)}),Pe=ve(function(){le.sort(null)}),Ie=fe("sort"),Oe=!ve(function(){if(ae)return ae<70;if(!(z&&z>3)){if(ee)return!0;if(re)return re<603;var Be="",_e,qe,ze,Ye;for(_e=65;_e<76;_e++){switch(qe=String.fromCharCode(_e),_e){case 66:case 69:case 70:case 72:ze=3;break;case 68:case 71:ze=4;break;default:ze=2}for(Ye=0;Ye<47;Ye++)le.push({k:qe+Ye,v:ze})}for(le.sort(function(et,lt){return lt.v-et.v}),Ye=0;Ye<le.length;Ye++)qe=le[Ye].k.charAt(0),Be.charAt(Be.length-1)!==qe&&(Be+=qe);return Be!=="DGBEFHACIJK"}}),Ae=Ce||!Pe||!Ie||!Oe,je=function(Be){return function(_e,qe){return qe===void 0?-1:_e===void 0?1:Be!==void 0?+Be(_e,qe)||0:ke(_e)>ke(qe)?1:-1}};me({target:"Array",proto:!0,forced:Ae},{sort:function(_e){_e!==void 0&&be(_e);var qe=Le(this);if(Oe)return _e===void 0?ue(qe):ue(qe,_e);var ze=[],Ye=Se(qe),et,lt;for(lt=0;lt<Ye;lt++)lt in qe&&pe(ze,qe[lt]);for(xe(ze,je(_e)),et=ze.length,lt=0;lt<et;)qe[lt]=ze[lt++];for(;lt<Ye;)delete qe[lt++];return qe}})},{"../internals/a-callable":95,"../internals/array-method-is-strict":114,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-string":256}],283:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/export"),ce=oe("../internals/global"),be=oe("../internals/to-absolute-index"),Le=oe("../internals/to-integer-or-infinity"),Se=oe("../internals/length-of-array-like"),ke=oe("../internals/to-object"),ve=oe("../internals/array-species-create"),xe=oe("../internals/create-property"),fe=oe("../internals/array-method-has-species-support"),z=fe("splice"),ee=ce.TypeError,ae=Math.max,re=Math.min,le=9007199254740991,ue="Maximum allowed length exceeded";me({target:"Array",proto:!0,forced:!z},{splice:function(Ce,Pe){var Ie=ke(this),Oe=Se(Ie),Ae=be(Ce,Oe),je=arguments.length,Be,_e,qe,ze,Ye,et;if(je===0?Be=_e=0:je===1?(Be=0,_e=Oe-Ae):(Be=je-2,_e=re(ae(Le(Pe),0),Oe-Ae)),Oe+Be-_e>le)throw ee(ue);for(qe=ve(Ie,_e),ze=0;ze<_e;ze++)Ye=Ae+ze,Ye in Ie&&xe(qe,ze,Ie[Ye]);if(qe.length=_e,Be<_e){for(ze=Ae;ze<Oe-_e;ze++)Ye=ze+_e,et=ze+Be,Ye in Ie?Ie[et]=Ie[Ye]:delete Ie[et];for(ze=Oe;ze>Oe-_e+Be;ze--)delete Ie[ze-1]}else if(Be>_e)for(ze=Oe-_e;ze>Ae;ze--)Ye=ze+_e-1,et=ze+Be-1,Ye in Ie?Ie[et]=Ie[Ye]:delete Ie[et];for(ze=0;ze<Be;ze++)Ie[ze+Ae]=arguments[ze+2];return Ie.length=Oe-_e+Be,qe}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-integer-or-infinity":248,"../internals/to-object":250}],284:[function(oe,Ue,Fe){var me=oe("../internals/descriptors"),ce=oe("../internals/function-name").EXISTS,be=oe("../internals/function-uncurry-this"),Le=oe("../internals/object-define-property").f,Se=Function.prototype,ke=be(Se.toString),ve=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,xe=be(ve.exec),fe="name";me&&!ce&&Le(Se,fe,{configurable:!0,get:function(){try{return xe(ve,ke(this))[1]}catch(z){return""}}})},{"../internals/descriptors":134,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/object-define-property":198}],285:[function(oe,Ue,Fe){var me=oe("../internals/export"),ce=oe("../internals/get-built-in"),be=oe("../internals/function-apply"),Le=oe("../internals/function-call"),Se=oe("../internals/function-uncurry-this"),ke=oe("../internals/fails"),ve=oe("../internals/is-array"),xe=oe("../internals/is-callable"),fe=oe("../internals/is-object"),z=oe("../internals/is-symbol"),ee=oe("../internals/array-slice"),ae=oe("../internals/native-symbol"),re=ce("JSON","stringify"),le=Se(/./.exec),ue=Se("".charAt),pe=Se("".charCodeAt),Ce=Se("".replace),Pe=Se(1 .toString),Ie=/[\uD800-\uDFFF]/g,Oe=/^[\uD800-\uDBFF]$/,Ae=/^[\uDC00-\uDFFF]$/,je=!ae||ke(function(){var ze=ce("Symbol")();return re([ze])!="[null]"||re({a:ze})!="{}"||re(Object(ze))!="{}"}),Be=ke(function(){return re("\uDF06\uD834")!=='"\\udf06\\ud834"'||re("\uDEAD")!=='"\\udead"'}),_e=function(ze,Ye){var et=ee(arguments),lt=Ye;if(!(!fe(Ye)&&ze===void 0||z(ze)))return ve(Ye)||(Ye=function(dt,vt){if(xe(lt)&&(vt=Le(lt,this,dt,vt)),!z(vt))return vt}),et[1]=Ye,be(re,null,et)},qe=function(ze,Ye,et){var lt=ue(et,Ye-1),dt=ue(et,Ye+1);return le(Oe,ze)&&!le(Ae,dt)||le(Ae,ze)&&!le(Oe,lt)?"\\u"+Pe(pe(ze,0),16):ze};re&&me({target:"JSON",stat:!0,forced:je||Be},{stringify:function(Ye,et,lt){var dt=ee(arguments),vt=be(je?_e:re,null,dt);return Be&&typeof vt=="string"?Ce(vt,Ie,qe):vt}})},{"../internals/array-slice":117,"../internals/export":149,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/is-array":175,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/native-symbol":191}],286:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/descriptors"),ce=oe("../internals/global"),be=oe("../internals/function-uncurry-this"),Le=oe("../internals/is-forced"),Se=oe("../internals/redefine"),ke=oe("../internals/has-own-property"),ve=oe("../internals/inherit-if-required"),xe=oe("../internals/object-is-prototype-of"),fe=oe("../internals/is-symbol"),z=oe("../internals/to-primitive"),ee=oe("../internals/fails"),ae=oe("../internals/object-get-own-property-names").f,re=oe("../internals/object-get-own-property-descriptor").f,le=oe("../internals/object-define-property").f,ue=oe("../internals/this-number-value"),pe=oe("../internals/string-trim").trim,Ce="Number",Pe=ce[Ce],Ie=Pe.prototype,Oe=ce.TypeError,Ae=be("".slice),je=be("".charCodeAt),Be=function(lt){var dt=z(lt,"number");return typeof dt=="bigint"?dt:_e(dt)},_e=function(lt){var dt=z(lt,"number"),vt,Je,ot,ft,xt,yt,pt,gt;if(fe(dt))throw Oe("Cannot convert a Symbol value to a number");if(typeof dt=="string"&&dt.length>2){if(dt=pe(dt),vt=je(dt,0),vt===43||vt===45){if(Je=je(dt,2),Je===88||Je===120)return NaN}else if(vt===48){switch(je(dt,1)){case 66:case 98:ot=2,ft=49;break;case 79:case 111:ot=8,ft=55;break;default:return+dt}for(xt=Ae(dt,2),yt=xt.length,pt=0;pt<yt;pt++)if(gt=je(xt,pt),gt<48||gt>ft)return NaN;return parseInt(xt,ot)}}return+dt};if(Le(Ce,!Pe(" 0o1")||!Pe("0b1")||Pe("+0x1"))){for(var qe=function(dt){var vt=arguments.length<1?0:Pe(Be(dt)),Je=this;return xe(Ie,Je)&&ee(function(){ue(Je)})?ve(Object(vt),Je,qe):vt},ze=me?ae(Pe):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Ye=0,et;ze.length>Ye;Ye++)ke(Pe,et=ze[Ye])&&!ke(qe,et)&&le(qe,et,re(Pe,et));qe.prototype=Ie,Ie.constructor=qe,Se(ce,Ce,qe)}},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/is-forced":178,"../internals/is-symbol":183,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/redefine":222,"../internals/string-trim":241,"../internals/this-number-value":244,"../internals/to-primitive":253}],287:[function(oe,Ue,Fe){var me=oe("../internals/export"),ce=oe("../internals/object-assign");me({target:"Object",stat:!0,forced:Object.assign!==ce},{assign:ce})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(oe,Ue,Fe){var me=oe("../internals/export"),ce=oe("../internals/object-to-array").entries;me({target:"Object",stat:!0},{entries:function(Le){return ce(Le)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(oe,Ue,Fe){var me=oe("../internals/export"),ce=oe("../internals/native-symbol"),be=oe("../internals/fails"),Le=oe("../internals/object-get-own-property-symbols"),Se=oe("../internals/to-object"),ke=!ce||be(function(){Le.f(1)});me({target:"Object",stat:!0,forced:ke},{getOwnPropertySymbols:function(xe){var fe=Le.f;return fe?fe(Se(xe)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(oe,Ue,Fe){var me=oe("../internals/export"),ce=oe("../internals/to-object"),be=oe("../internals/object-keys"),Le=oe("../internals/fails"),Se=Le(function(){be(1)});me({target:"Object",stat:!0,forced:Se},{keys:function(ve){return be(ce(ve))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(oe,Ue,Fe){var me=oe("../internals/to-string-tag-support"),ce=oe("../internals/redefine"),be=oe("../internals/object-to-string");me||ce(Object.prototype,"toString",be,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/export"),ce=oe("../internals/function-call"),be=oe("../internals/a-callable"),Le=oe("../internals/new-promise-capability"),Se=oe("../internals/perform"),ke=oe("../internals/iterate"),ve=oe("../internals/promise-statics-incorrect-iteration");me({target:"Promise",stat:!0,forced:ve},{all:function(fe){var z=this,ee=Le.f(z),ae=ee.resolve,re=ee.reject,le=Se(function(){var ue=be(z.resolve),pe=[],Ce=0,Pe=1;ke(fe,function(Ie){var Oe=Ce++,Ae=!1;Pe++,ce(ue,z,Ie).then(function(je){Ae||(Ae=!0,pe[Oe]=je,--Pe||ae(pe))},re)}),--Pe||ae(pe)});return le.error&&re(le.value),ee.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],293:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/export"),ce=oe("../internals/is-pure"),be=oe("../internals/promise-constructor-detection").CONSTRUCTOR,Le=oe("../internals/promise-native-constructor"),Se=oe("../internals/get-built-in"),ke=oe("../internals/is-callable"),ve=oe("../internals/redefine"),xe=Le&&Le.prototype;if(me({target:"Promise",proto:!0,forced:be,real:!0},{catch:function(z){return this.then(void 0,z)}}),!ce&&ke(Le)){var fe=Se("Promise").prototype.catch;xe.catch!==fe&&ve(xe,"catch",fe,{unsafe:!0})}},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/redefine":222}],294:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/export"),ce=oe("../internals/is-pure"),be=oe("../internals/engine-is-node"),Le=oe("../internals/global"),Se=oe("../internals/function-call"),ke=oe("../internals/redefine"),ve=oe("../internals/redefine-all"),xe=oe("../internals/object-set-prototype-of"),fe=oe("../internals/set-to-string-tag"),z=oe("../internals/set-species"),ee=oe("../internals/a-callable"),ae=oe("../internals/is-callable"),re=oe("../internals/is-object"),le=oe("../internals/an-instance"),ue=oe("../internals/species-constructor"),pe=oe("../internals/task").set,Ce=oe("../internals/microtask"),Pe=oe("../internals/host-report-errors"),Ie=oe("../internals/perform"),Oe=oe("../internals/queue"),Ae=oe("../internals/internal-state"),je=oe("../internals/promise-native-constructor"),Be=oe("../internals/promise-constructor-detection"),_e=oe("../internals/new-promise-capability"),qe="Promise",ze=Be.CONSTRUCTOR,Ye=Be.REJECTION_EVENT,et=Be.SUBCLASSING,lt=Ae.getterFor(qe),dt=Ae.set,vt=je&&je.prototype,Je=je,ot=vt,ft=Le.TypeError,xt=Le.document,yt=Le.process,pt=_e.f,gt=pt,mt=!!(xt&&xt.createEvent&&Le.dispatchEvent),Mt="unhandledrejection",Ct="rejectionhandled",zt=0,St=1,bt=2,at=1,nt=2,we,Te,Ve,Ze,Ee=function($t){var Wt;return re($t)&&ae(Wt=$t.then)?Wt:!1},Ge=function($t,Wt){var Ut=Wt.value,ln=Wt.state==St,kt=ln?$t.ok:$t.fail,Xt=$t.resolve,tn=$t.reject,dn=$t.domain,Mn,Rn,ir;try{kt?(ln||(Wt.rejection===nt&&Et(Wt),Wt.rejection=at),kt===!0?Mn=Ut:(dn&&dn.enter(),Mn=kt(Ut),dn&&(dn.exit(),ir=!0)),Mn===$t.promise?tn(ft("Promise-chain cycle")):(Rn=Ee(Mn))?Se(Rn,Mn,Xt,tn):Xt(Mn)):tn(Ut)}catch(qn){dn&&!ir&&dn.exit(),tn(qn)}},He=function($t,Wt){$t.notified||($t.notified=!0,Ce(function(){for(var Ut=$t.reactions,ln;ln=Ut.get();)Ge(ln,$t);$t.notified=!1,Wt&&!$t.rejection&&Xe($t)}))},We=function($t,Wt,Ut){var ln,kt;mt?(ln=xt.createEvent("Event"),ln.promise=Wt,ln.reason=Ut,ln.initEvent($t,!1,!0),Le.dispatchEvent(ln)):ln={promise:Wt,reason:Ut},!Ye&&(kt=Le["on"+$t])?kt(ln):$t===Mt&&Pe("Unhandled promise rejection",Ut)},Xe=function($t){Se(pe,Le,function(){var Wt=$t.facade,Ut=$t.value,ln=ct($t),kt;if(ln&&(kt=Ie(function(){be?yt.emit("unhandledRejection",Ut,Wt):We(Mt,Wt,Ut)}),$t.rejection=be||ct($t)?nt:at,kt.error))throw kt.value})},ct=function($t){return $t.rejection!==at&&!$t.parent},Et=function($t){Se(pe,Le,function(){var Wt=$t.facade;be?yt.emit("rejectionHandled",Wt):We(Ct,Wt,$t.value)})},ht=function($t,Wt,Ut){return function(ln){$t(Wt,ln,Ut)}},It=function($t,Wt,Ut){$t.done||($t.done=!0,Ut&&($t=Ut),$t.value=Wt,$t.state=bt,He($t,!0))},qt=function($t,Wt,Ut){if(!$t.done){$t.done=!0,Ut&&($t=Ut);try{if($t.facade===Wt)throw ft("Promise can't be resolved itself");var ln=Ee(Wt);ln?Ce(function(){var kt={done:!1};try{Se(ln,Wt,ht(qt,kt,$t),ht(It,kt,$t))}catch(Xt){It(kt,Xt,$t)}}):($t.value=Wt,$t.state=St,He($t,!1))}catch(kt){It({done:!1},kt,$t)}}};if(ze&&(Je=function(Wt){le(this,ot),ee(Wt),Se(we,this);var Ut=lt(this);try{Wt(ht(qt,Ut),ht(It,Ut))}catch(ln){It(Ut,ln)}},ot=Je.prototype,we=function(Wt){dt(this,{type:qe,done:!1,notified:!1,parent:!1,reactions:new Oe,rejection:!1,state:zt,value:void 0})},we.prototype=ve(ot,{then:function(Wt,Ut){var ln=lt(this),kt=pt(ue(this,Je));return ln.parent=!0,kt.ok=ae(Wt)?Wt:!0,kt.fail=ae(Ut)&&Ut,kt.domain=be?yt.domain:void 0,ln.state==zt?ln.reactions.add(kt):Ce(function(){Ge(kt,ln)}),kt.promise}}),Te=function(){var $t=new we,Wt=lt($t);this.promise=$t,this.resolve=ht(qt,Wt),this.reject=ht(It,Wt)},_e.f=pt=function($t){return $t===Je||$t===Ve?new Te($t):gt($t)},!ce&&ae(je)&&vt!==Object.prototype)){Ze=vt.then,et||ke(vt,"then",function(Wt,Ut){var ln=this;return new Je(function(kt,Xt){Se(Ze,ln,kt,Xt)}).then(Wt,Ut)},{unsafe:!0});try{delete vt.constructor}catch($t){}xe&&xe(vt,ot)}me({global:!0,wrap:!0,forced:ze},{Promise:Je}),fe(Je,qe,!1,!0),z(qe)},{"../internals/a-callable":95,"../internals/an-instance":100,"../internals/engine-is-node":143,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/host-report-errors":166,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-pure":181,"../internals/microtask":189,"../internals/new-promise-capability":193,"../internals/object-set-prototype-of":208,"../internals/perform":214,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/queue":220,"../internals/redefine":222,"../internals/redefine-all":221,"../internals/set-species":233,"../internals/set-to-string-tag":234,"../internals/species-constructor":238,"../internals/task":243}],295:[function(oe,Ue,Fe){oe("../modules/es.promise.constructor"),oe("../modules/es.promise.all"),oe("../modules/es.promise.catch"),oe("../modules/es.promise.race"),oe("../modules/es.promise.reject"),oe("../modules/es.promise.resolve")},{"../modules/es.promise.all":292,"../modules/es.promise.catch":293,"../modules/es.promise.constructor":294,"../modules/es.promise.race":296,"../modules/es.promise.reject":297,"../modules/es.promise.resolve":298}],296:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/export"),ce=oe("../internals/function-call"),be=oe("../internals/a-callable"),Le=oe("../internals/new-promise-capability"),Se=oe("../internals/perform"),ke=oe("../internals/iterate"),ve=oe("../internals/promise-statics-incorrect-iteration");me({target:"Promise",stat:!0,forced:ve},{race:function(fe){var z=this,ee=Le.f(z),ae=ee.reject,re=Se(function(){var le=be(z.resolve);ke(fe,function(ue){ce(le,z,ue).then(ee.resolve,ae)})});return re.error&&ae(re.value),ee.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],297:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/export"),ce=oe("../internals/function-call"),be=oe("../internals/new-promise-capability"),Le=oe("../internals/promise-constructor-detection").CONSTRUCTOR;me({target:"Promise",stat:!0,forced:Le},{reject:function(ke){var ve=be.f(this);return ce(ve.reject,void 0,ke),ve.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/export"),ce=oe("../internals/get-built-in"),be=oe("../internals/is-pure"),Le=oe("../internals/promise-native-constructor"),Se=oe("../internals/promise-constructor-detection").CONSTRUCTOR,ke=oe("../internals/promise-resolve"),ve=ce("Promise"),xe=be&&!Se;me({target:"Promise",stat:!0,forced:be||Se},{resolve:function(z){return ke(xe&&this===ve?Le:this,z)}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/promise-resolve":217}],299:[function(oe,Ue,Fe){var me=oe("../internals/descriptors"),ce=oe("../internals/global"),be=oe("../internals/function-uncurry-this"),Le=oe("../internals/is-forced"),Se=oe("../internals/inherit-if-required"),ke=oe("../internals/create-non-enumerable-property"),ve=oe("../internals/object-get-own-property-names").f,xe=oe("../internals/object-is-prototype-of"),fe=oe("../internals/is-regexp"),z=oe("../internals/to-string"),ee=oe("../internals/regexp-get-flags"),ae=oe("../internals/regexp-sticky-helpers"),re=oe("../internals/proxy-accessor"),le=oe("../internals/redefine"),ue=oe("../internals/fails"),pe=oe("../internals/has-own-property"),Ce=oe("../internals/internal-state").enforce,Pe=oe("../internals/set-species"),Ie=oe("../internals/well-known-symbol"),Oe=oe("../internals/regexp-unsupported-dot-all"),Ae=oe("../internals/regexp-unsupported-ncg"),je=Ie("match"),Be=ce.RegExp,_e=Be.prototype,qe=ce.SyntaxError,ze=be(_e.exec),Ye=be("".charAt),et=be("".replace),lt=be("".indexOf),dt=be("".slice),vt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Je=/a/g,ot=/a/g,ft=new Be(Je)!==Je,xt=ae.MISSED_STICKY,yt=ae.UNSUPPORTED_Y,pt=me&&(!ft||xt||Oe||Ae||ue(function(){return ot[je]=!1,Be(Je)!=Je||Be(ot)==ot||Be(Je,"i")!="/a/i"})),gt=function(St){for(var bt=St.length,at=0,nt="",we=!1,Te;at<=bt;at++){if(Te=Ye(St,at),Te==="\\"){nt+=Te+Ye(St,++at);continue}!we&&Te==="."?nt+="[\\s\\S]":(Te==="["?we=!0:Te==="]"&&(we=!1),nt+=Te)}return nt},mt=function(St){for(var bt=St.length,at=0,nt="",we=[],Te={},Ve=!1,Ze=!1,Ee=0,Ge="",He;at<=bt;at++){if(He=Ye(St,at),He==="\\")He=He+Ye(St,++at);else if(He==="]")Ve=!1;else if(!Ve)switch(!0){case He==="[":Ve=!0;break;case He==="(":ze(vt,dt(St,at+1))&&(at+=2,Ze=!0),nt+=He,Ee++;continue;case(He===">"&&Ze):if(Ge===""||pe(Te,Ge))throw new qe("Invalid capture group name");Te[Ge]=!0,we[we.length]=[Ge,Ee],Ze=!1,Ge="";continue}Ze?Ge+=He:nt+=He}return[nt,we]};if(Le("RegExp",pt)){for(var Mt=function(bt,at){var nt=xe(_e,this),we=fe(bt),Te=at===void 0,Ve=[],Ze=bt,Ee,Ge,He,We,Xe,ct;if(!nt&&we&&Te&&bt.constructor===Mt)return bt;if((we||xe(_e,bt))&&(bt=bt.source,Te&&(at=ee(Ze))),bt=bt===void 0?"":z(bt),at=at===void 0?"":z(at),Ze=bt,Oe&&"dotAll"in Je&&(Ge=!!at&<(at,"s")>-1,Ge&&(at=et(at,/s/g,""))),Ee=at,xt&&"sticky"in Je&&(He=!!at&<(at,"y")>-1,He&&yt&&(at=et(at,/y/g,""))),Ae&&(We=mt(bt),bt=We[0],Ve=We[1]),Xe=Se(Be(bt,at),nt?this:_e,Mt),(Ge||He||Ve.length)&&(ct=Ce(Xe),Ge&&(ct.dotAll=!0,ct.raw=Mt(gt(bt),Ee)),He&&(ct.sticky=!0),Ve.length&&(ct.groups=Ve)),bt!==Ze)try{ke(Xe,"source",Ze===""?"(?:)":Ze)}catch(Et){}return Xe},Ct=ve(Be),zt=0;Ct.length>zt;)re(Mt,Be,Ct[zt++]);_e.constructor=Mt,Mt.prototype=_e,le(ce,"RegExp",Mt)}Pe("RegExp")},{"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-forced":178,"../internals/is-regexp":182,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/proxy-accessor":219,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/set-species":233,"../internals/to-string":256,"../internals/well-known-symbol":268}],300:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/export"),ce=oe("../internals/regexp-exec");me({target:"RegExp",proto:!0,forced:/./.exec!==ce},{exec:ce})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/function-name").PROPER,ce=oe("../internals/redefine"),be=oe("../internals/an-object"),Le=oe("../internals/to-string"),Se=oe("../internals/fails"),ke=oe("../internals/regexp-get-flags"),ve="toString",xe=RegExp.prototype,fe=xe[ve],z=Se(function(){return fe.call({source:"a",flags:"b"})!="/a/b"}),ee=me&&fe.name!=ve;(z||ee)&&ce(RegExp.prototype,ve,function(){var re=be(this),le=Le(re.source),ue=Le(ke(re));return"/"+le+"/"+ue},{unsafe:!0})},{"../internals/an-object":101,"../internals/fails":150,"../internals/function-name":156,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/to-string":256}],302:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/export"),ce=oe("../internals/function-uncurry-this"),be=oe("../internals/not-a-regexp"),Le=oe("../internals/require-object-coercible"),Se=oe("../internals/to-string"),ke=oe("../internals/correct-is-regexp-logic"),ve=ce("".indexOf);me({target:"String",proto:!0,forced:!ke("includes")},{includes:function(fe){return!!~ve(Se(Le(this)),Se(be(fe)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":126,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/not-a-regexp":194,"../internals/require-object-coercible":230,"../internals/to-string":256}],303:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/string-multibyte").charAt,ce=oe("../internals/to-string"),be=oe("../internals/internal-state"),Le=oe("../internals/define-iterator"),Se="String Iterator",ke=be.set,ve=be.getterFor(Se);Le(String,"String",function(xe){ke(this,{type:Se,string:ce(xe),index:0})},function(){var fe=ve(this),z=fe.string,ee=fe.index,ae;return ee>=z.length?{value:void 0,done:!0}:(ae=me(z,ee),fe.index+=ae.length,{value:ae,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/function-call"),ce=oe("../internals/fix-regexp-well-known-symbol-logic"),be=oe("../internals/an-object"),Le=oe("../internals/to-length"),Se=oe("../internals/to-string"),ke=oe("../internals/require-object-coercible"),ve=oe("../internals/get-method"),xe=oe("../internals/advance-string-index"),fe=oe("../internals/regexp-exec-abstract");ce("match",function(z,ee,ae){return[function(le){var ue=ke(this),pe=le==null?void 0:ve(le,z);return pe?me(pe,le,ue):new RegExp(le)[z](Se(ue))},function(re){var le=be(this),ue=Se(re),pe=ae(ee,le,ue);if(pe.done)return pe.value;if(!le.global)return fe(le,ue);var Ce=le.unicode;le.lastIndex=0;for(var Pe=[],Ie=0,Oe;(Oe=fe(le,ue))!==null;){var Ae=Se(Oe[0]);Pe[Ie]=Ae,Ae===""&&(le.lastIndex=xe(ue,Le(le.lastIndex),Ce)),Ie++}return Ie===0?null:Pe}]})},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-length":249,"../internals/to-string":256}],305:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/function-apply"),ce=oe("../internals/function-call"),be=oe("../internals/function-uncurry-this"),Le=oe("../internals/fix-regexp-well-known-symbol-logic"),Se=oe("../internals/fails"),ke=oe("../internals/an-object"),ve=oe("../internals/is-callable"),xe=oe("../internals/to-integer-or-infinity"),fe=oe("../internals/to-length"),z=oe("../internals/to-string"),ee=oe("../internals/require-object-coercible"),ae=oe("../internals/advance-string-index"),re=oe("../internals/get-method"),le=oe("../internals/get-substitution"),ue=oe("../internals/regexp-exec-abstract"),pe=oe("../internals/well-known-symbol"),Ce=pe("replace"),Pe=Math.max,Ie=Math.min,Oe=be([].concat),Ae=be([].push),je=be("".indexOf),Be=be("".slice),_e=function(et){return et===void 0?et:String(et)},qe=function(){return"a".replace(/./,"$0")==="$0"}(),ze=function(){return/./[Ce]?/./[Ce]("a","$0")==="":!1}(),Ye=!Se(function(){var et=/./;return et.exec=function(){var lt=[];return lt.groups={a:"7"},lt},"".replace(et,"$<a>")!=="7"});Le("replace",function(et,lt,dt){var vt=ze?"$":"$0";return[function(ot,ft){var xt=ee(this),yt=ot==null?void 0:re(ot,Ce);return yt?ce(yt,ot,xt,ft):ce(lt,z(xt),ot,ft)},function(Je,ot){var ft=ke(this),xt=z(Je);if(typeof ot=="string"&&je(ot,vt)===-1&&je(ot,"$<")===-1){var yt=dt(lt,ft,xt,ot);if(yt.done)return yt.value}var pt=ve(ot);pt||(ot=z(ot));var gt=ft.global;if(gt){var mt=ft.unicode;ft.lastIndex=0}for(var Mt=[];;){var Ct=ue(ft,xt);if(Ct===null||(Ae(Mt,Ct),!gt))break;var zt=z(Ct[0]);zt===""&&(ft.lastIndex=ae(xt,fe(ft.lastIndex),mt))}for(var St="",bt=0,at=0;at<Mt.length;at++){Ct=Mt[at];for(var nt=z(Ct[0]),we=Pe(Ie(xe(Ct.index),xt.length),0),Te=[],Ve=1;Ve<Ct.length;Ve++)Ae(Te,_e(Ct[Ve]));var Ze=Ct.groups;if(pt){var Ee=Oe([nt],Te,we,xt);Ze!==void 0&&Ae(Ee,Ze);var Ge=z(me(ot,void 0,Ee))}else Ge=le(nt,xt,we,Te,Ze,ot);we>=bt&&(St+=Be(xt,bt,we)+Ge,bt=we+nt.length)}return St+Be(xt,bt)}]},!Ye||!qe||ze)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/get-substitution":162,"../internals/is-callable":176,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-length":249,"../internals/to-string":256,"../internals/well-known-symbol":268}],306:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/function-call"),ce=oe("../internals/fix-regexp-well-known-symbol-logic"),be=oe("../internals/an-object"),Le=oe("../internals/require-object-coercible"),Se=oe("../internals/same-value"),ke=oe("../internals/to-string"),ve=oe("../internals/get-method"),xe=oe("../internals/regexp-exec-abstract");ce("search",function(fe,z,ee){return[function(re){var le=Le(this),ue=re==null?void 0:ve(re,fe);return ue?me(ue,re,le):new RegExp(re)[fe](ke(le))},function(ae){var re=be(this),le=ke(ae),ue=ee(z,re,le);if(ue.done)return ue.value;var pe=re.lastIndex;Se(pe,0)||(re.lastIndex=0);var Ce=xe(re,le);return Se(re.lastIndex,pe)||(re.lastIndex=pe),Ce===null?-1:Ce.index}]})},{"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/same-value":231,"../internals/to-string":256}],307:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/function-apply"),ce=oe("../internals/function-call"),be=oe("../internals/function-uncurry-this"),Le=oe("../internals/fix-regexp-well-known-symbol-logic"),Se=oe("../internals/is-regexp"),ke=oe("../internals/an-object"),ve=oe("../internals/require-object-coercible"),xe=oe("../internals/species-constructor"),fe=oe("../internals/advance-string-index"),z=oe("../internals/to-length"),ee=oe("../internals/to-string"),ae=oe("../internals/get-method"),re=oe("../internals/array-slice-simple"),le=oe("../internals/regexp-exec-abstract"),ue=oe("../internals/regexp-exec"),pe=oe("../internals/regexp-sticky-helpers"),Ce=oe("../internals/fails"),Pe=pe.UNSUPPORTED_Y,Ie=4294967295,Oe=Math.min,Ae=[].push,je=be(/./.exec),Be=be(Ae),_e=be("".slice),qe=!Ce(function(){var ze=/(?:)/,Ye=ze.exec;ze.exec=function(){return Ye.apply(this,arguments)};var et="ab".split(ze);return et.length!==2||et[0]!=="a"||et[1]!=="b"});Le("split",function(ze,Ye,et){var lt;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?lt=function(dt,vt){var Je=ee(ve(this)),ot=vt===void 0?Ie:vt>>>0;if(ot===0)return[];if(dt===void 0)return[Je];if(!Se(dt))return ce(Ye,Je,dt,ot);for(var ft=[],xt=(dt.ignoreCase?"i":"")+(dt.multiline?"m":"")+(dt.unicode?"u":"")+(dt.sticky?"y":""),yt=0,pt=new RegExp(dt.source,xt+"g"),gt,mt,Mt;(gt=ce(ue,pt,Je))&&(mt=pt.lastIndex,!(mt>yt&&(Be(ft,_e(Je,yt,gt.index)),gt.length>1&>.index<Je.length&&me(Ae,ft,re(gt,1)),Mt=gt[0].length,yt=mt,ft.length>=ot)));)pt.lastIndex===gt.index&&pt.lastIndex++;return yt===Je.length?(Mt||!je(pt,""))&&Be(ft,""):Be(ft,_e(Je,yt)),ft.length>ot?re(ft,0,ot):ft}:"0".split(void 0,0).length?lt=function(dt,vt){return dt===void 0&&vt===0?[]:ce(Ye,this,dt,vt)}:lt=Ye,[function(vt,Je){var ot=ve(this),ft=vt==null?void 0:ae(vt,ze);return ft?ce(ft,vt,ot,Je):ce(lt,ee(ot),vt,Je)},function(dt,vt){var Je=ke(this),ot=ee(dt),ft=et(lt,Je,ot,vt,lt!==Ye);if(ft.done)return ft.value;var xt=xe(Je,RegExp),yt=Je.unicode,pt=(Je.ignoreCase?"i":"")+(Je.multiline?"m":"")+(Je.unicode?"u":"")+(Pe?"g":"y"),gt=new xt(Pe?"^(?:"+Je.source+")":Je,pt),mt=vt===void 0?Ie:vt>>>0;if(mt===0)return[];if(ot.length===0)return le(gt,ot)===null?[ot]:[];for(var Mt=0,Ct=0,zt=[];Ct<ot.length;){gt.lastIndex=Pe?0:Ct;var St=le(gt,Pe?_e(ot,Ct):ot),bt;if(St===null||(bt=Oe(z(gt.lastIndex+(Pe?Ct:0)),ot.length))===Mt)Ct=fe(ot,Ct,yt);else{if(Be(zt,_e(ot,Mt,Ct)),zt.length===mt)return zt;for(var at=1;at<=St.length-1;at++)if(Be(zt,St[at]),zt.length===mt)return zt;Ct=Mt=bt}}return Be(zt,_e(ot,Mt)),zt}]},!qe,Pe)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/array-slice-simple":116,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/is-regexp":182,"../internals/regexp-exec":224,"../internals/regexp-exec-abstract":223,"../internals/regexp-sticky-helpers":227,"../internals/require-object-coercible":230,"../internals/species-constructor":238,"../internals/to-length":249,"../internals/to-string":256}],308:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/export"),ce=oe("../internals/string-trim").trim,be=oe("../internals/string-trim-forced");me({target:"String",proto:!0,forced:be("trim")},{trim:function(){return ce(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/export"),ce=oe("../internals/global"),be=oe("../internals/function-call"),Le=oe("../internals/function-uncurry-this"),Se=oe("../internals/is-pure"),ke=oe("../internals/descriptors"),ve=oe("../internals/native-symbol"),xe=oe("../internals/fails"),fe=oe("../internals/has-own-property"),z=oe("../internals/object-is-prototype-of"),ee=oe("../internals/an-object"),ae=oe("../internals/to-indexed-object"),re=oe("../internals/to-property-key"),le=oe("../internals/to-string"),ue=oe("../internals/create-property-descriptor"),pe=oe("../internals/object-create"),Ce=oe("../internals/object-keys"),Pe=oe("../internals/object-get-own-property-names"),Ie=oe("../internals/object-get-own-property-names-external"),Oe=oe("../internals/object-get-own-property-symbols"),Ae=oe("../internals/object-get-own-property-descriptor"),je=oe("../internals/object-define-property"),Be=oe("../internals/object-define-properties"),_e=oe("../internals/object-property-is-enumerable"),qe=oe("../internals/redefine"),ze=oe("../internals/shared"),Ye=oe("../internals/shared-key"),et=oe("../internals/hidden-keys"),lt=oe("../internals/uid"),dt=oe("../internals/well-known-symbol"),vt=oe("../internals/well-known-symbol-wrapped"),Je=oe("../internals/define-well-known-symbol"),ot=oe("../internals/symbol-define-to-primitive"),ft=oe("../internals/set-to-string-tag"),xt=oe("../internals/internal-state"),yt=oe("../internals/array-iteration").forEach,pt=Ye("hidden"),gt="Symbol",mt="prototype",Mt=xt.set,Ct=xt.getterFor(gt),zt=Object[mt],St=ce.Symbol,bt=St&&St[mt],at=ce.TypeError,nt=ce.QObject,we=Ae.f,Te=je.f,Ve=Ie.f,Ze=_e.f,Ee=Le([].push),Ge=ze("symbols"),He=ze("op-symbols"),We=ze("wks"),Xe=!nt||!nt[mt]||!nt[mt].findChild,ct=ke&&xe(function(){return pe(Te({},"a",{get:function(){return Te(this,"a",{value:7}).a}})).a!=7})?function(kt,Xt,tn){var dn=we(zt,Xt);dn&&delete zt[Xt],Te(kt,Xt,tn),dn&&kt!==zt&&Te(zt,Xt,dn)}:Te,Et=function(kt,Xt){var tn=Ge[kt]=pe(bt);return Mt(tn,{type:gt,tag:kt,description:Xt}),ke||(tn.description=Xt),tn},ht=function(Xt,tn,dn){Xt===zt&&ht(He,tn,dn),ee(Xt);var Mn=re(tn);return ee(dn),fe(Ge,Mn)?(dn.enumerable?(fe(Xt,pt)&&Xt[pt][Mn]&&(Xt[pt][Mn]=!1),dn=pe(dn,{enumerable:ue(0,!1)})):(fe(Xt,pt)||Te(Xt,pt,ue(1,{})),Xt[pt][Mn]=!0),ct(Xt,Mn,dn)):Te(Xt,Mn,dn)},It=function(Xt,tn){ee(Xt);var dn=ae(tn),Mn=Ce(dn).concat(ln(dn));return yt(Mn,function(Rn){(!ke||be($t,dn,Rn))&&ht(Xt,Rn,dn[Rn])}),Xt},qt=function(Xt,tn){return tn===void 0?pe(Xt):It(pe(Xt),tn)},$t=function(Xt){var tn=re(Xt),dn=be(Ze,this,tn);return this===zt&&fe(Ge,tn)&&!fe(He,tn)?!1:dn||!fe(this,tn)||!fe(Ge,tn)||fe(this,pt)&&this[pt][tn]?dn:!0},Wt=function(Xt,tn){var dn=ae(Xt),Mn=re(tn);if(!(dn===zt&&fe(Ge,Mn)&&!fe(He,Mn))){var Rn=we(dn,Mn);return Rn&&fe(Ge,Mn)&&!(fe(dn,pt)&&dn[pt][Mn])&&(Rn.enumerable=!0),Rn}},Ut=function(Xt){var tn=Ve(ae(Xt)),dn=[];return yt(tn,function(Mn){!fe(Ge,Mn)&&!fe(et,Mn)&&Ee(dn,Mn)}),dn},ln=function(kt){var Xt=kt===zt,tn=Ve(Xt?He:ae(kt)),dn=[];return yt(tn,function(Mn){fe(Ge,Mn)&&(!Xt||fe(zt,Mn))&&Ee(dn,Ge[Mn])}),dn};ve||(St=function(){if(z(bt,this))throw at("Symbol is not a constructor");var Xt=!arguments.length||arguments[0]===void 0?void 0:le(arguments[0]),tn=lt(Xt),dn=function(Mn){this===zt&&be(dn,He,Mn),fe(this,pt)&&fe(this[pt],tn)&&(this[pt][tn]=!1),ct(this,tn,ue(1,Mn))};return ke&&Xe&&ct(zt,tn,{configurable:!0,set:dn}),Et(tn,Xt)},bt=St[mt],qe(bt,"toString",function(){return Ct(this).tag}),qe(St,"withoutSetter",function(kt){return Et(lt(kt),kt)}),_e.f=$t,je.f=ht,Be.f=It,Ae.f=Wt,Pe.f=Ie.f=Ut,Oe.f=ln,vt.f=function(kt){return Et(dt(kt),kt)},ke&&(Te(bt,"description",{configurable:!0,get:function(){return Ct(this).description}}),Se||qe(zt,"propertyIsEnumerable",$t,{unsafe:!0}))),me({global:!0,wrap:!0,forced:!ve,sham:!ve},{Symbol:St}),yt(Ce(We),function(kt){Je(kt)}),me({target:gt,stat:!0,forced:!ve},{useSetter:function(){Xe=!0},useSimple:function(){Xe=!1}}),me({target:"Object",stat:!0,forced:!ve,sham:!ke},{create:qt,defineProperty:ht,defineProperties:It,getOwnPropertyDescriptor:Wt}),me({target:"Object",stat:!0,forced:!ve},{getOwnPropertyNames:Ut}),ot(),ft(St,gt),et[pt]=!0},{"../internals/an-object":101,"../internals/array-iteration":111,"../internals/create-property-descriptor":130,"../internals/define-well-known-symbol":133,"../internals/descriptors":134,"../internals/export":149,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/native-symbol":191,"../internals/object-create":196,"../internals/object-define-properties":197,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-names-external":200,"../internals/object-get-own-property-symbols":202,"../internals/object-is-prototype-of":204,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/shared":237,"../internals/shared-key":235,"../internals/symbol-define-to-primitive":242,"../internals/to-indexed-object":247,"../internals/to-property-key":254,"../internals/to-string":256,"../internals/uid":263,"../internals/well-known-symbol":268,"../internals/well-known-symbol-wrapped":267}],310:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/export"),ce=oe("../internals/descriptors"),be=oe("../internals/global"),Le=oe("../internals/function-uncurry-this"),Se=oe("../internals/has-own-property"),ke=oe("../internals/is-callable"),ve=oe("../internals/object-is-prototype-of"),xe=oe("../internals/to-string"),fe=oe("../internals/object-define-property").f,z=oe("../internals/copy-constructor-properties"),ee=be.Symbol,ae=ee&&ee.prototype;if(ce&&ke(ee)&&(!("description"in ae)||ee().description!==void 0)){var re={},le=function(){var je=arguments.length<1||arguments[0]===void 0?void 0:xe(arguments[0]),Be=ve(ae,this)?new ee(je):je===void 0?ee():ee(je);return je===""&&(re[Be]=!0),Be};z(le,ee),le.prototype=ae,ae.constructor=le;var ue=String(ee("test"))=="Symbol(test)",pe=Le(ae.toString),Ce=Le(ae.valueOf),Pe=/^Symbol\((.*)\)[^)]+$/,Ie=Le("".replace),Oe=Le("".slice);fe(ae,"description",{configurable:!0,get:function(){var je=Ce(this),Be=pe(je);if(Se(re,je))return"";var _e=ue?Oe(Be,7,-1):Ie(Be,Pe,"$1");return _e===""?void 0:_e}}),me({global:!0,forced:!0},{Symbol:le})}},{"../internals/copy-constructor-properties":125,"../internals/descriptors":134,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/object-define-property":198,"../internals/object-is-prototype-of":204,"../internals/to-string":256}],311:[function(oe,Ue,Fe){var me=oe("../internals/export"),ce=oe("../internals/get-built-in"),be=oe("../internals/has-own-property"),Le=oe("../internals/to-string"),Se=oe("../internals/shared"),ke=oe("../internals/native-symbol-registry"),ve=Se("string-to-symbol-registry"),xe=Se("symbol-to-string-registry");me({target:"Symbol",stat:!0,forced:!ke},{for:function(fe){var z=Le(fe);if(be(ve,z))return ve[z];var ee=ce("Symbol")(z);return ve[z]=ee,xe[ee]=z,ee}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/has-own-property":164,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/to-string":256}],312:[function(oe,Ue,Fe){var me=oe("../internals/define-well-known-symbol");me("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(oe,Ue,Fe){oe("../modules/es.symbol.constructor"),oe("../modules/es.symbol.for"),oe("../modules/es.symbol.key-for"),oe("../modules/es.json.stringify"),oe("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":285,"../modules/es.object.get-own-property-symbols":289,"../modules/es.symbol.constructor":309,"../modules/es.symbol.for":311,"../modules/es.symbol.key-for":314}],314:[function(oe,Ue,Fe){var me=oe("../internals/export"),ce=oe("../internals/has-own-property"),be=oe("../internals/is-symbol"),Le=oe("../internals/try-to-string"),Se=oe("../internals/shared"),ke=oe("../internals/native-symbol-registry"),ve=Se("symbol-to-string-registry");me({target:"Symbol",stat:!0,forced:!ke},{keyFor:function(fe){if(!be(fe))throw TypeError(Le(fe)+" is not a symbol");if(ce(ve,fe))return ve[fe]}})},{"../internals/export":149,"../internals/has-own-property":164,"../internals/is-symbol":183,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/try-to-string":257}],315:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/function-uncurry-this"),ce=oe("../internals/array-buffer-view-core"),be=oe("../internals/array-copy-within"),Le=me(be),Se=ce.aTypedArray,ke=ce.exportTypedArrayMethod;ke("copyWithin",function(xe,fe){return Le(Se(this),xe,fe,arguments.length>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-copy-within":105,"../internals/function-uncurry-this":157}],316:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").every,be=me.aTypedArray,Le=me.exportTypedArrayMethod;Le("every",function(ke){return ce(be(this),ke,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/function-call"),be=oe("../internals/array-fill"),Le=me.aTypedArray,Se=me.exportTypedArrayMethod;Se("fill",function(ve){var xe=arguments.length;return ce(be,Le(this),ve,xe>1?arguments[1]:void 0,xe>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").filter,be=oe("../internals/typed-array-from-species-and-list"),Le=me.aTypedArray,Se=me.exportTypedArrayMethod;Se("filter",function(ve){var xe=ce(Le(this),ve,arguments.length>1?arguments[1]:void 0);return be(this,xe)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").findIndex,be=me.aTypedArray,Le=me.exportTypedArrayMethod;Le("findIndex",function(ke){return ce(be(this),ke,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").find,be=me.aTypedArray,Le=me.exportTypedArrayMethod;Le("find",function(ke){return ce(be(this),ke,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").forEach,be=me.aTypedArray,Le=me.exportTypedArrayMethod;Le("forEach",function(ke){ce(be(this),ke,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-includes").includes,be=me.aTypedArray,Le=me.exportTypedArrayMethod;Le("includes",function(ke){return ce(be(this),ke,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-includes").indexOf,be=me.aTypedArray,Le=me.exportTypedArrayMethod;Le("indexOf",function(ke){return ce(be(this),ke,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/global"),ce=oe("../internals/fails"),be=oe("../internals/function-uncurry-this"),Le=oe("../internals/array-buffer-view-core"),Se=oe("../modules/es.array.iterator"),ke=oe("../internals/well-known-symbol"),ve=ke("iterator"),xe=me.Uint8Array,fe=be(Se.values),z=be(Se.keys),ee=be(Se.entries),ae=Le.aTypedArray,re=Le.exportTypedArrayMethod,le=xe&&xe.prototype,ue=!ce(function(){le[ve].call([1])}),pe=!!le&&le.values&&le[ve]===le.values&&le.values.name==="values",Ce=function(){return fe(ae(this))};re("entries",function(){return ee(ae(this))},ue),re("keys",function(){return z(ae(this))},ue),re("values",Ce,ue||!pe,{name:"values"}),re(ve,Ce,ue||!pe,{name:"values"})},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],325:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/function-uncurry-this"),be=me.aTypedArray,Le=me.exportTypedArrayMethod,Se=ce([].join);Le("join",function(ve){return Se(be(this),ve)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/function-apply"),be=oe("../internals/array-last-index-of"),Le=me.aTypedArray,Se=me.exportTypedArrayMethod;Se("lastIndexOf",function(ve){var xe=arguments.length;return ce(be,Le(this),xe>1?[ve,arguments[1]]:[ve])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").map,be=oe("../internals/typed-array-species-constructor"),Le=me.aTypedArray,Se=me.exportTypedArrayMethod;Se("map",function(ve){return ce(Le(this),ve,arguments.length>1?arguments[1]:void 0,function(xe,fe){return new(be(xe))(fe)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-reduce").right,be=me.aTypedArray,Le=me.exportTypedArrayMethod;Le("reduceRight",function(ke){var ve=arguments.length;return ce(be(this),ke,ve,ve>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-reduce").left,be=me.aTypedArray,Le=me.exportTypedArrayMethod;Le("reduce",function(ke){var ve=arguments.length;return ce(be(this),ke,ve,ve>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=me.aTypedArray,be=me.exportTypedArrayMethod,Le=Math.floor;be("reverse",function(){for(var ke=this,ve=ce(ke).length,xe=Le(ve/2),fe=0,z;fe<xe;)z=ke[fe],ke[fe++]=ke[--ve],ke[ve]=z;return ke})},{"../internals/array-buffer-view-core":103}],331:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/global"),ce=oe("../internals/function-call"),be=oe("../internals/array-buffer-view-core"),Le=oe("../internals/length-of-array-like"),Se=oe("../internals/to-offset"),ke=oe("../internals/to-object"),ve=oe("../internals/fails"),xe=me.RangeError,fe=me.Int8Array,z=fe&&fe.prototype,ee=z&&z.set,ae=be.aTypedArray,re=be.exportTypedArrayMethod,le=!ve(function(){var pe=new Uint8ClampedArray(2);return ce(ee,pe,{length:1,0:3},1),pe[1]!==3}),ue=le&&be.NATIVE_ARRAY_BUFFER_VIEWS&&ve(function(){var pe=new fe(2);return pe.set(1),pe.set("2",1),pe[0]!==0||pe[1]!==2});re("set",function(Ce){ae(this);var Pe=Se(arguments.length>1?arguments[1]:void 0,1),Ie=ke(Ce);if(le)return ce(ee,this,Ie,Pe);var Oe=this.length,Ae=Le(Ie),je=0;if(Ae+Pe>Oe)throw xe("Wrong length");for(;je<Ae;)this[Pe+je]=Ie[je++]},!le||ue)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-call":155,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-offset":251}],332:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/typed-array-species-constructor"),be=oe("../internals/fails"),Le=oe("../internals/array-slice"),Se=me.aTypedArray,ke=me.exportTypedArrayMethod,ve=be(function(){new Int8Array(1).slice()});ke("slice",function(fe,z){for(var ee=Le(Se(this),fe,z),ae=ce(this),re=0,le=ee.length,ue=new ae(le);le>re;)ue[re]=ee[re++];return ue},ve)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/array-iteration").some,be=me.aTypedArray,Le=me.exportTypedArrayMethod;Le("some",function(ke){return ce(be(this),ke,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/global"),ce=oe("../internals/function-uncurry-this"),be=oe("../internals/fails"),Le=oe("../internals/a-callable"),Se=oe("../internals/array-sort"),ke=oe("../internals/array-buffer-view-core"),ve=oe("../internals/engine-ff-version"),xe=oe("../internals/engine-is-ie-or-edge"),fe=oe("../internals/engine-v8-version"),z=oe("../internals/engine-webkit-version"),ee=ke.aTypedArray,ae=ke.exportTypedArrayMethod,re=me.Uint16Array,le=re&&ce(re.prototype.sort),ue=!!le&&!(be(function(){le(new re(2),null)})&&be(function(){le(new re(2),{})})),pe=!!le&&!be(function(){if(fe)return fe<74;if(ve)return ve<67;if(xe)return!0;if(z)return z<602;var Pe=new re(516),Ie=Array(516),Oe,Ae;for(Oe=0;Oe<516;Oe++)Ae=Oe%4,Pe[Oe]=515-Oe,Ie[Oe]=Oe-2*Ae+3;for(le(Pe,function(je,Be){return(je/4|0)-(Be/4|0)}),Oe=0;Oe<516;Oe++)if(Pe[Oe]!==Ie[Oe])return!0}),Ce=function(Pe){return function(Ie,Oe){return Pe!==void 0?+Pe(Ie,Oe)||0:Oe!==Oe?-1:Ie!==Ie?1:Ie===0&&Oe===0?1/Ie>0&&1/Oe<0?1:-1:Ie>Oe}};ae("sort",function(Ie){return Ie!==void 0&&Le(Ie),pe?le(this,Ie):Se(ee(this),Ce(Ie))},!pe||ue)},{"../internals/a-callable":95,"../internals/array-buffer-view-core":103,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],335:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/array-buffer-view-core"),ce=oe("../internals/to-length"),be=oe("../internals/to-absolute-index"),Le=oe("../internals/typed-array-species-constructor"),Se=me.aTypedArray,ke=me.exportTypedArrayMethod;ke("subarray",function(xe,fe){var z=Se(this),ee=z.length,ae=be(xe,ee),re=Le(z);return new re(z.buffer,z.byteOffset+ae*z.BYTES_PER_ELEMENT,ce((fe===void 0?ee:be(fe,ee))-ae))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/global"),ce=oe("../internals/function-apply"),be=oe("../internals/array-buffer-view-core"),Le=oe("../internals/fails"),Se=oe("../internals/array-slice"),ke=me.Int8Array,ve=be.aTypedArray,xe=be.exportTypedArrayMethod,fe=[].toLocaleString,z=!!ke&&Le(function(){fe.call(new ke(1))}),ee=Le(function(){return[1,2].toLocaleString()!=new ke([1,2]).toLocaleString()})||!Le(function(){ke.prototype.toLocaleString.call([1,2])});xe("toLocaleString",function(){return ce(fe,z?Se(ve(this)):ve(this),Se(arguments))},ee)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/function-apply":152,"../internals/global":163}],337:[function(oe,Ue,Fe){"use strict";var me=oe("../internals/array-buffer-view-core").exportTypedArrayMethod,ce=oe("../internals/fails"),be=oe("../internals/global"),Le=oe("../internals/function-uncurry-this"),Se=be.Uint8Array,ke=Se&&Se.prototype||{},ve=[].toString,xe=Le([].join);ce(function(){ve.call({})})&&(ve=function(){return xe(this)});var fe=ke.toString!=ve;me("toString",ve,fe)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(oe,Ue,Fe){var me=oe("../internals/typed-array-constructor");me("Uint8",function(ce){return function(Le,Se,ke){return ce(this,Le,Se,ke)}})},{"../internals/typed-array-constructor":258}],339:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/dom-iterables"),be=oe("../internals/dom-token-list-prototype"),Le=oe("../internals/array-for-each"),Se=oe("../internals/create-non-enumerable-property"),ke=function(xe){if(xe&&xe.forEach!==Le)try{Se(xe,"forEach",Le)}catch(fe){xe.forEach=Le}};for(var ve in ce)ce[ve]&&ke(me[ve]&&me[ve].prototype);ke(be)},{"../internals/array-for-each":107,"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163}],340:[function(oe,Ue,Fe){var me=oe("../internals/global"),ce=oe("../internals/dom-iterables"),be=oe("../internals/dom-token-list-prototype"),Le=oe("../modules/es.array.iterator"),Se=oe("../internals/create-non-enumerable-property"),ke=oe("../internals/well-known-symbol"),ve=ke("iterator"),xe=ke("toStringTag"),fe=Le.values,z=function(ae,re){if(ae){if(ae[ve]!==fe)try{Se(ae,ve,fe)}catch(ue){ae[ve]=fe}if(ae[xe]||Se(ae,xe,re),ce[re]){for(var le in Le)if(ae[le]!==Le[le])try{Se(ae,le,Le[le])}catch(ue){ae[le]=Le[le]}}}};for(var ee in ce)z(me[ee]&&me[ee].prototype,ee);z(be,"DOMTokenList")},{"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],341:[function(oe,Ue,Fe){function me(pe){return Array.isArray?Array.isArray(pe):ue(pe)==="[object Array]"}Fe.isArray=me;function ce(pe){return typeof pe=="boolean"}Fe.isBoolean=ce;function be(pe){return pe===null}Fe.isNull=be;function Le(pe){return pe==null}Fe.isNullOrUndefined=Le;function Se(pe){return typeof pe=="number"}Fe.isNumber=Se;function ke(pe){return typeof pe=="string"}Fe.isString=ke;function ve(pe){return typeof pe=="symbol"}Fe.isSymbol=ve;function xe(pe){return pe===void 0}Fe.isUndefined=xe;function fe(pe){return ue(pe)==="[object RegExp]"}Fe.isRegExp=fe;function z(pe){return typeof pe=="object"&&pe!==null}Fe.isObject=z;function ee(pe){return ue(pe)==="[object Date]"}Fe.isDate=ee;function ae(pe){return ue(pe)==="[object Error]"||pe instanceof Error}Fe.isError=ae;function re(pe){return typeof pe=="function"}Fe.isFunction=re;function le(pe){return pe===null||typeof pe=="boolean"||typeof pe=="number"||typeof pe=="string"||typeof pe=="symbol"||typeof pe=="undefined"}Fe.isPrimitive=le,Fe.isBuffer=oe("buffer").Buffer.isBuffer;function ue(pe){return Object.prototype.toString.call(pe)}},{buffer:90}],342:[function(oe,Ue,Fe){(function(me){"use strict";var ce=function(){var ve=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,xe=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,fe=/[^-+\dA-Z]/g;return function(z,ee,ae,re){if(arguments.length===1&&ke(z)==="string"&&!/\d/.test(z)&&(ee=z,z=void 0),z=z||new Date,z instanceof Date||(z=new Date(z)),isNaN(z))throw TypeError("Invalid date");ee=String(ce.masks[ee]||ee||ce.masks.default);var le=ee.slice(0,4);(le==="UTC:"||le==="GMT:")&&(ee=ee.slice(4),ae=!0,le==="GMT:"&&(re=!0));var ue=ae?"getUTC":"get",pe=z[ue+"Date"](),Ce=z[ue+"Day"](),Pe=z[ue+"Month"](),Ie=z[ue+"FullYear"](),Oe=z[ue+"Hours"](),Ae=z[ue+"Minutes"](),je=z[ue+"Seconds"](),Be=z[ue+"Milliseconds"](),_e=ae?0:z.getTimezoneOffset(),qe=Le(z),ze=Se(z),Ye={d:pe,dd:be(pe),ddd:ce.i18n.dayNames[Ce],dddd:ce.i18n.dayNames[Ce+7],m:Pe+1,mm:be(Pe+1),mmm:ce.i18n.monthNames[Pe],mmmm:ce.i18n.monthNames[Pe+12],yy:String(Ie).slice(2),yyyy:Ie,h:Oe%12||12,hh:be(Oe%12||12),H:Oe,HH:be(Oe),M:Ae,MM:be(Ae),s:je,ss:be(je),l:be(Be,3),L:be(Math.round(Be/10)),t:Oe<12?"a":"p",tt:Oe<12?"am":"pm",T:Oe<12?"A":"P",TT:Oe<12?"AM":"PM",Z:re?"GMT":ae?"UTC":(String(z).match(xe)||[""]).pop().replace(fe,""),o:(_e>0?"-":"+")+be(Math.floor(Math.abs(_e)/60)*100+Math.abs(_e)%60,4),S:["th","st","nd","rd"][pe%10>3?0:(pe%100-pe%10!=10)*pe%10],W:qe,N:ze};return ee.replace(ve,function(et){return et in Ye?Ye[et]:et.slice(1,et.length-1)})}}();ce.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},ce.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function be(ve,xe){for(ve=String(ve),xe=xe||2;ve.length<xe;)ve="0"+ve;return ve}function Le(ve){var xe=new Date(ve.getFullYear(),ve.getMonth(),ve.getDate());xe.setDate(xe.getDate()-(xe.getDay()+6)%7+3);var fe=new Date(xe.getFullYear(),0,4);fe.setDate(fe.getDate()-(fe.getDay()+6)%7+3);var z=xe.getTimezoneOffset()-fe.getTimezoneOffset();xe.setHours(xe.getHours()-z);var ee=(xe-fe)/(864e5*7);return 1+Math.floor(ee)}function Se(ve){var xe=ve.getDay();return xe===0&&(xe=7),xe}function ke(ve){return ve===null?"null":ve===void 0?"undefined":typeof ve!="object"?typeof ve:Array.isArray(ve)?"array":{}.toString.call(ve).slice(8,-1).toLowerCase()}typeof Ke=="function"&&Ke.amd?Ke(function(){return ce}):typeof Fe=="object"?Ue.exports=ce:me.dateFormat=ce})(this)},{}],343:[function(oe,Ue,Fe){"use strict";var me=/["'&<>]/;Ue.exports=ce;function ce(be){var Le=""+be,Se=me.exec(Le);if(!Se)return Le;var ke,ve="",xe=0,fe=0;for(xe=Se.index;xe<Le.length;xe++){switch(Le.charCodeAt(xe)){case 34:ke=""";break;case 38:ke="&";break;case 39:ke="'";break;case 60:ke="<";break;case 62:ke=">";break;default:continue}fe!==xe&&(ve+=Le.substring(fe,xe)),fe=xe+1,ve+=ke}return fe!==xe?ve+Le.substring(fe,xe):ve}},{}],344:[function(oe,Ue,Fe){"use strict";var me=typeof Reflect=="object"?Reflect:null,ce=me&&typeof me.apply=="function"?me.apply:function(je,Be,_e){return Function.prototype.apply.call(je,Be,_e)},be;me&&typeof me.ownKeys=="function"?be=me.ownKeys:Object.getOwnPropertySymbols?be=function(je){return Object.getOwnPropertyNames(je).concat(Object.getOwnPropertySymbols(je))}:be=function(je){return Object.getOwnPropertyNames(je)};function Le(Ae){console&&console.warn&&console.warn(Ae)}var Se=Number.isNaN||function(je){return je!==je};function ke(){ke.init.call(this)}Ue.exports=ke,Ue.exports.once=Pe,ke.EventEmitter=ke,ke.prototype._events=void 0,ke.prototype._eventsCount=0,ke.prototype._maxListeners=void 0;var ve=10;function xe(Ae){if(typeof Ae!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Ae)}Object.defineProperty(ke,"defaultMaxListeners",{enumerable:!0,get:function(){return ve},set:function(Ae){if(typeof Ae!="number"||Ae<0||Se(Ae))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Ae+".");ve=Ae}}),ke.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ke.prototype.setMaxListeners=function(je){if(typeof je!="number"||je<0||Se(je))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+je+".");return this._maxListeners=je,this};function fe(Ae){return Ae._maxListeners===void 0?ke.defaultMaxListeners:Ae._maxListeners}ke.prototype.getMaxListeners=function(){return fe(this)},ke.prototype.emit=function(je){for(var Be=[],_e=1;_e<arguments.length;_e++)Be.push(arguments[_e]);var qe=je==="error",ze=this._events;if(ze!==void 0)qe=qe&&ze.error===void 0;else if(!qe)return!1;if(qe){var Ye;if(Be.length>0&&(Ye=Be[0]),Ye instanceof Error)throw Ye;var et=new Error("Unhandled error."+(Ye?" ("+Ye.message+")":""));throw et.context=Ye,et}var lt=ze[je];if(lt===void 0)return!1;if(typeof lt=="function")ce(lt,this,Be);else for(var dt=lt.length,vt=ue(lt,dt),_e=0;_e<dt;++_e)ce(vt[_e],this,Be);return!0};function z(Ae,je,Be,_e){var qe,ze,Ye;if(xe(Be),ze=Ae._events,ze===void 0?(ze=Ae._events=Object.create(null),Ae._eventsCount=0):(ze.newListener!==void 0&&(Ae.emit("newListener",je,Be.listener?Be.listener:Be),ze=Ae._events),Ye=ze[je]),Ye===void 0)Ye=ze[je]=Be,++Ae._eventsCount;else if(typeof Ye=="function"?Ye=ze[je]=_e?[Be,Ye]:[Ye,Be]:_e?Ye.unshift(Be):Ye.push(Be),qe=fe(Ae),qe>0&&Ye.length>qe&&!Ye.warned){Ye.warned=!0;var et=new Error("Possible EventEmitter memory leak detected. "+Ye.length+" "+String(je)+" listeners added. Use emitter.setMaxListeners() to increase limit");et.name="MaxListenersExceededWarning",et.emitter=Ae,et.type=je,et.count=Ye.length,Le(et)}return Ae}ke.prototype.addListener=function(je,Be){return z(this,je,Be,!1)},ke.prototype.on=ke.prototype.addListener,ke.prototype.prependListener=function(je,Be){return z(this,je,Be,!0)};function ee(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function ae(Ae,je,Be){var _e={fired:!1,wrapFn:void 0,target:Ae,type:je,listener:Be},qe=ee.bind(_e);return qe.listener=Be,_e.wrapFn=qe,qe}ke.prototype.once=function(je,Be){return xe(Be),this.on(je,ae(this,je,Be)),this},ke.prototype.prependOnceListener=function(je,Be){return xe(Be),this.prependListener(je,ae(this,je,Be)),this},ke.prototype.removeListener=function(je,Be){var _e,qe,ze,Ye,et;if(xe(Be),qe=this._events,qe===void 0)return this;if(_e=qe[je],_e===void 0)return this;if(_e===Be||_e.listener===Be)--this._eventsCount===0?this._events=Object.create(null):(delete qe[je],qe.removeListener&&this.emit("removeListener",je,_e.listener||Be));else if(typeof _e!="function"){for(ze=-1,Ye=_e.length-1;Ye>=0;Ye--)if(_e[Ye]===Be||_e[Ye].listener===Be){et=_e[Ye].listener,ze=Ye;break}if(ze<0)return this;ze===0?_e.shift():pe(_e,ze),_e.length===1&&(qe[je]=_e[0]),qe.removeListener!==void 0&&this.emit("removeListener",je,et||Be)}return this},ke.prototype.off=ke.prototype.removeListener,ke.prototype.removeAllListeners=function(je){var Be,_e,qe;if(_e=this._events,_e===void 0)return this;if(_e.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):_e[je]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete _e[je]),this;if(arguments.length===0){var ze=Object.keys(_e),Ye;for(qe=0;qe<ze.length;++qe)Ye=ze[qe],Ye!=="removeListener"&&this.removeAllListeners(Ye);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Be=_e[je],typeof Be=="function")this.removeListener(je,Be);else if(Be!==void 0)for(qe=Be.length-1;qe>=0;qe--)this.removeListener(je,Be[qe]);return this};function re(Ae,je,Be){var _e=Ae._events;if(_e===void 0)return[];var qe=_e[je];return qe===void 0?[]:typeof qe=="function"?Be?[qe.listener||qe]:[qe]:Be?Ce(qe):ue(qe,qe.length)}ke.prototype.listeners=function(je){return re(this,je,!0)},ke.prototype.rawListeners=function(je){return re(this,je,!1)},ke.listenerCount=function(Ae,je){return typeof Ae.listenerCount=="function"?Ae.listenerCount(je):le.call(Ae,je)},ke.prototype.listenerCount=le;function le(Ae){var je=this._events;if(je!==void 0){var Be=je[Ae];if(typeof Be=="function")return 1;if(Be!==void 0)return Be.length}return 0}ke.prototype.eventNames=function(){return this._eventsCount>0?be(this._events):[]};function ue(Ae,je){for(var Be=new Array(je),_e=0;_e<je;++_e)Be[_e]=Ae[_e];return Be}function pe(Ae,je){for(;je+1<Ae.length;je++)Ae[je]=Ae[je+1];Ae.pop()}function Ce(Ae){for(var je=new Array(Ae.length),Be=0;Be<je.length;++Be)je[Be]=Ae[Be].listener||Ae[Be];return je}function Pe(Ae,je){return new Promise(function(Be,_e){function qe(Ye){Ae.removeListener(je,ze),_e(Ye)}function ze(){typeof Ae.removeListener=="function"&&Ae.removeListener("error",qe),Be([].slice.call(arguments))}Oe(Ae,je,ze,{once:!0}),je!=="error"&&Ie(Ae,qe,{once:!0})})}function Ie(Ae,je,Be){typeof Ae.on=="function"&&Oe(Ae,"error",je,Be)}function Oe(Ae,je,Be,_e){if(typeof Ae.on=="function")_e.once?Ae.once(je,Be):Ae.on(je,Be);else if(typeof Ae.addEventListener=="function")Ae.addEventListener(je,function qe(ze){_e.once&&Ae.removeEventListener(je,qe),Be(ze)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Ae)}},{}],345:[function(oe,Ue,Fe){"use strict";var me=oe("is-callable"),ce=Object.prototype.toString,be=Object.prototype.hasOwnProperty,Le=function(fe,z,ee){for(var ae=0,re=fe.length;ae<re;ae++)be.call(fe,ae)&&(ee==null?z(fe[ae],ae,fe):z.call(ee,fe[ae],ae,fe))},Se=function(fe,z,ee){for(var ae=0,re=fe.length;ae<re;ae++)ee==null?z(fe.charAt(ae),ae,fe):z.call(ee,fe.charAt(ae),ae,fe)},ke=function(fe,z,ee){for(var ae in fe)be.call(fe,ae)&&(ee==null?z(fe[ae],ae,fe):z.call(ee,fe[ae],ae,fe))},ve=function(fe,z,ee){if(!me(z))throw new TypeError("iterator must be a function");var ae;arguments.length>=3&&(ae=ee),ce.call(fe)==="[object Array]"?Le(fe,z,ae):typeof fe=="string"?Se(fe,z,ae):ke(fe,z,ae)};Ue.exports=ve},{"is-callable":367}],346:[function(oe,Ue,Fe){"use strict";var me="Function.prototype.bind called on incompatible ",ce=Array.prototype.slice,be=Object.prototype.toString,Le="[object Function]";Ue.exports=function(ke){var ve=this;if(typeof ve!="function"||be.call(ve)!==Le)throw new TypeError(me+ve);for(var xe=ce.call(arguments,1),fe,z=function(){if(this instanceof fe){var ue=ve.apply(this,xe.concat(ce.call(arguments)));return Object(ue)===ue?ue:this}else return ve.apply(ke,xe.concat(ce.call(arguments)))},ee=Math.max(0,ve.length-xe.length),ae=[],re=0;re<ee;re++)ae.push("$"+re);if(fe=Function("binder","return function ("+ae.join(",")+"){ return binder.apply(this,arguments); }")(z),ve.prototype){var le=function(){};le.prototype=ve.prototype,fe.prototype=new le,le.prototype=null}return fe}},{}],347:[function(oe,Ue,Fe){"use strict";var me=oe("./implementation");Ue.exports=Function.prototype.bind||me},{"./implementation":346}],348:[function(oe,Ue,Fe){"use strict";var me,ce=SyntaxError,be=Function,Le=TypeError,Se=function(lt){try{return be('"use strict"; return ('+lt+").constructor;")()}catch(dt){}},ke=Object.getOwnPropertyDescriptor;if(ke)try{ke({},"")}catch(lt){ke=null}var ve=function(){throw new Le},xe=ke?function(){try{return arguments.callee,ve}catch(lt){try{return ke(arguments,"callee").get}catch(dt){return ve}}}():ve,fe=oe("has-symbols")(),z=oe("has-proto")(),ee=Object.getPrototypeOf||(z?function(lt){return lt.__proto__}:null),ae={},re=typeof Uint8Array=="undefined"||!ee?me:ee(Uint8Array),le={"%AggregateError%":typeof AggregateError=="undefined"?me:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?me:ArrayBuffer,"%ArrayIteratorPrototype%":fe&&ee?ee([][Symbol.iterator]()):me,"%AsyncFromSyncIteratorPrototype%":me,"%AsyncFunction%":ae,"%AsyncGenerator%":ae,"%AsyncGeneratorFunction%":ae,"%AsyncIteratorPrototype%":ae,"%Atomics%":typeof Atomics=="undefined"?me:Atomics,"%BigInt%":typeof BigInt=="undefined"?me:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?me:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?me:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?me:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?me:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?me:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?me:FinalizationRegistry,"%Function%":be,"%GeneratorFunction%":ae,"%Int8Array%":typeof Int8Array=="undefined"?me:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?me:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?me:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":fe&&ee?ee(ee([][Symbol.iterator]())):me,"%JSON%":typeof JSON=="object"?JSON:me,"%Map%":typeof Map=="undefined"?me:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!fe||!ee?me:ee(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?me:Promise,"%Proxy%":typeof Proxy=="undefined"?me:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?me:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?me:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!fe||!ee?me:ee(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?me:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":fe&&ee?ee(""[Symbol.iterator]()):me,"%Symbol%":fe?Symbol:me,"%SyntaxError%":ce,"%ThrowTypeError%":xe,"%TypedArray%":re,"%TypeError%":Le,"%Uint8Array%":typeof Uint8Array=="undefined"?me:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?me:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?me:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?me:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?me:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?me:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?me:WeakSet};if(ee)try{null.error}catch(lt){var ue=ee(ee(lt));le["%Error.prototype%"]=ue}var pe=function lt(dt){var vt;if(dt==="%AsyncFunction%")vt=Se("async function () {}");else if(dt==="%GeneratorFunction%")vt=Se("function* () {}");else if(dt==="%AsyncGeneratorFunction%")vt=Se("async function* () {}");else if(dt==="%AsyncGenerator%"){var Je=lt("%AsyncGeneratorFunction%");Je&&(vt=Je.prototype)}else if(dt==="%AsyncIteratorPrototype%"){var ot=lt("%AsyncGenerator%");ot&&ee&&(vt=ee(ot.prototype))}return le[dt]=vt,vt},Ce={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Pe=oe("function-bind"),Ie=oe("has"),Oe=Pe.call(Function.call,Array.prototype.concat),Ae=Pe.call(Function.apply,Array.prototype.splice),je=Pe.call(Function.call,String.prototype.replace),Be=Pe.call(Function.call,String.prototype.slice),_e=Pe.call(Function.call,RegExp.prototype.exec),qe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ze=/\\(\\)?/g,Ye=function(dt){var vt=Be(dt,0,1),Je=Be(dt,-1);if(vt==="%"&&Je!=="%")throw new ce("invalid intrinsic syntax, expected closing `%`");if(Je==="%"&&vt!=="%")throw new ce("invalid intrinsic syntax, expected opening `%`");var ot=[];return je(dt,qe,function(ft,xt,yt,pt){ot[ot.length]=yt?je(pt,ze,"$1"):xt||ft}),ot},et=function(dt,vt){var Je=dt,ot;if(Ie(Ce,Je)&&(ot=Ce[Je],Je="%"+ot[0]+"%"),Ie(le,Je)){var ft=le[Je];if(ft===ae&&(ft=pe(Je)),typeof ft=="undefined"&&!vt)throw new Le("intrinsic "+dt+" exists, but is not available. Please file an issue!");return{alias:ot,name:Je,value:ft}}throw new ce("intrinsic "+dt+" does not exist!")};Ue.exports=function(dt,vt){if(typeof dt!="string"||dt.length===0)throw new Le("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof vt!="boolean")throw new Le('"allowMissing" argument must be a boolean');if(_e(/^%?[^%]*%?$/,dt)===null)throw new ce("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Je=Ye(dt),ot=Je.length>0?Je[0]:"",ft=et("%"+ot+"%",vt),xt=ft.name,yt=ft.value,pt=!1,gt=ft.alias;gt&&(ot=gt[0],Ae(Je,Oe([0,1],gt)));for(var mt=1,Mt=!0;mt<Je.length;mt+=1){var Ct=Je[mt],zt=Be(Ct,0,1),St=Be(Ct,-1);if((zt==='"'||zt==="'"||zt==="`"||St==='"'||St==="'"||St==="`")&&zt!==St)throw new ce("property names with quotes must have matching quotes");if((Ct==="constructor"||!Mt)&&(pt=!0),ot+="."+Ct,xt="%"+ot+"%",Ie(le,xt))yt=le[xt];else if(yt!=null){if(!(Ct in yt)){if(!vt)throw new Le("base intrinsic for "+dt+" exists, but the property is not available.");return}if(ke&&mt+1>=Je.length){var bt=ke(yt,Ct);Mt=!!bt,Mt&&"get"in bt&&!("originalValue"in bt.get)?yt=bt.get:yt=yt[Ct]}else Mt=Ie(yt,Ct),yt=yt[Ct];Mt&&!pt&&(le[xt]=yt)}}return yt}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(oe,Ue,Fe){"use strict";var me=oe("get-intrinsic"),ce=me("%Object.getOwnPropertyDescriptor%",!0);if(ce)try{ce([],"length")}catch(be){ce=null}Ue.exports=ce},{"get-intrinsic":348}],350:[function(oe,Ue,Fe){"use strict";var me={foo:{}},ce=Object;Ue.exports=function(){return{__proto__:me}.foo===me.foo&&!({__proto__:null}instanceof ce)}},{}],351:[function(oe,Ue,Fe){"use strict";var me=typeof Symbol!="undefined"&&Symbol,ce=oe("./shams");Ue.exports=function(){return typeof me!="function"||typeof Symbol!="function"||typeof me("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ce()}},{"./shams":352}],352:[function(oe,Ue,Fe){"use strict";Ue.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var ce={},be=Symbol("test"),Le=Object(be);if(typeof be=="string"||Object.prototype.toString.call(be)!=="[object Symbol]"||Object.prototype.toString.call(Le)!=="[object Symbol]")return!1;var Se=42;ce[be]=Se;for(be in ce)return!1;if(typeof Object.keys=="function"&&Object.keys(ce).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(ce).length!==0)return!1;var ke=Object.getOwnPropertySymbols(ce);if(ke.length!==1||ke[0]!==be||!Object.prototype.propertyIsEnumerable.call(ce,be))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var ve=Object.getOwnPropertyDescriptor(ce,be);if(ve.value!==Se||ve.enumerable!==!0)return!1}return!0}},{}],353:[function(oe,Ue,Fe){"use strict";var me=oe("has-symbols/shams");Ue.exports=function(){return me()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(oe,Ue,Fe){"use strict";var me=oe("function-bind");Ue.exports=me.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(oe,Ue,Fe){var me=oe("http"),ce=oe("url"),be=Ue.exports;for(var Le in me)me.hasOwnProperty(Le)&&(be[Le]=me[Le]);be.request=function(ke,ve){return ke=Se(ke),me.request.call(this,ke,ve)},be.get=function(ke,ve){return ke=Se(ke),me.get.call(this,ke,ve)};function Se(ke){if(typeof ke=="string"&&(ke=ce.parse(ke)),ke.protocol||(ke.protocol="https:"),ke.protocol!=="https:")throw new Error('Protocol "'+ke.protocol+'" not supported. Expected "https:"');return ke}},{http:468,url:472}],356:[function(oe,Ue,Fe){"use strict";var me=oe("util"),ce=oe("ms");Ue.exports=function(be){if(typeof be=="number")return be;var Le=ce(be);if(Le===void 0){var Se=new Error(me.format("humanize-ms(%j) result undefined",be));console.warn(Se.stack)}return Le}},{ms:376,util:419}],357:[function(oe,Ue,Fe){Fe.read=function(me,ce,be,Le,Se){var ke,ve,xe=Se*8-Le-1,fe=(1<<xe)-1,z=fe>>1,ee=-7,ae=be?Se-1:0,re=be?-1:1,le=me[ce+ae];for(ae+=re,ke=le&(1<<-ee)-1,le>>=-ee,ee+=xe;ee>0;ke=ke*256+me[ce+ae],ae+=re,ee-=8);for(ve=ke&(1<<-ee)-1,ke>>=-ee,ee+=Le;ee>0;ve=ve*256+me[ce+ae],ae+=re,ee-=8);if(ke===0)ke=1-z;else{if(ke===fe)return ve?NaN:(le?-1:1)*(1/0);ve=ve+Math.pow(2,Le),ke=ke-z}return(le?-1:1)*ve*Math.pow(2,ke-Le)},Fe.write=function(me,ce,be,Le,Se,ke){var ve,xe,fe,z=ke*8-Se-1,ee=(1<<z)-1,ae=ee>>1,re=Se===23?Math.pow(2,-24)-Math.pow(2,-77):0,le=Le?0:ke-1,ue=Le?1:-1,pe=ce<0||ce===0&&1/ce<0?1:0;for(ce=Math.abs(ce),isNaN(ce)||ce===1/0?(xe=isNaN(ce)?1:0,ve=ee):(ve=Math.floor(Math.log(ce)/Math.LN2),ce*(fe=Math.pow(2,-ve))<1&&(ve--,fe*=2),ve+ae>=1?ce+=re/fe:ce+=re*Math.pow(2,1-ae),ce*fe>=2&&(ve++,fe/=2),ve+ae>=ee?(xe=0,ve=ee):ve+ae>=1?(xe=(ce*fe-1)*Math.pow(2,Se),ve=ve+ae):(xe=ce*Math.pow(2,ae-1)*Math.pow(2,Se),ve=0));Se>=8;me[be+le]=xe&255,le+=ue,xe/=256,Se-=8);for(ve=ve<<Se|xe,z+=Se;z>0;me[be+le]=ve&255,le+=ue,ve/=256,z-=8);me[be+le-ue]|=pe*128}},{}],358:[function(oe,Ue,Fe){"use strict";var me=[oe("./nextTick"),oe("./queueMicrotask"),oe("./mutation.js"),oe("./messageChannel"),oe("./stateChange"),oe("./timeout")],ce,be,Le=-1,Se=[],ke=!1;function ve(){!ce||!be||(ce=!1,be.length?Se=be.concat(Se):Le=-1,Se.length&&xe())}function xe(){if(!ce){ke=!1,ce=!0;for(var le=Se.length,ue=setTimeout(ve);le;){for(be=Se,Se=[];be&&++Le<le;)be[Le].run();Le=-1,le=Se.length}be=null,Le=-1,ce=!1,clearTimeout(ue)}}for(var fe,z=-1,ee=me.length;++z<ee;)if(me[z]&&me[z].test&&me[z].test()){fe=me[z].install(xe);break}function ae(le,ue){this.fun=le,this.array=ue}ae.prototype.run=function(){var le=this.fun,ue=this.array;switch(ue.length){case 0:return le();case 1:return le(ue[0]);case 2:return le(ue[0],ue[1]);case 3:return le(ue[0],ue[1],ue[2]);default:return le.apply(null,ue)}},Ue.exports=re;function re(le){var ue=new Array(arguments.length-1);if(arguments.length>1)for(var pe=1;pe<arguments.length;pe++)ue[pe-1]=arguments[pe];Se.push(new ae(le,ue)),!ke&&!ce&&(ke=!0,fe())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(oe,Ue,Fe){(function(me){(function(){"use strict";Fe.test=function(){return me.setImmediate?!1:typeof me.MessageChannel!="undefined"},Fe.install=function(ce){var be=new me.MessageChannel;return be.port1.onmessage=ce,function(){be.port2.postMessage(0)}}}).call(this)}).call(this,typeof vn!="undefined"?vn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(oe,Ue,Fe){(function(me){(function(){"use strict";var ce=me.MutationObserver||me.WebKitMutationObserver;Fe.test=function(){return ce},Fe.install=function(be){var Le=0,Se=new ce(be),ke=me.document.createTextNode("");return Se.observe(ke,{characterData:!0}),function(){ke.data=Le=++Le%2}}}).call(this)}).call(this,typeof vn!="undefined"?vn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(oe,Ue,Fe){(function(me){(function(){"use strict";Fe.test=function(){return typeof me.queueMicrotask=="function"},Fe.install=function(ce){return function(){me.queueMicrotask(ce)}}}).call(this)}).call(this,typeof vn!="undefined"?vn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(oe,Ue,Fe){(function(me){(function(){"use strict";Fe.test=function(){return"document"in me&&"onreadystatechange"in me.document.createElement("script")},Fe.install=function(ce){return function(){var be=me.document.createElement("script");return be.onreadystatechange=function(){ce(),be.onreadystatechange=null,be.parentNode.removeChild(be),be=null},me.document.documentElement.appendChild(be),ce}}}).call(this)}).call(this,typeof vn!="undefined"?vn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(oe,Ue,Fe){"use strict";Fe.test=function(){return!0},Fe.install=function(me){return function(){setTimeout(me,0)}}},{}],364:[function(oe,Ue,Fe){typeof Object.create=="function"?Ue.exports=function(ce,be){be&&(ce.super_=be,ce.prototype=Object.create(be.prototype,{constructor:{value:ce,enumerable:!1,writable:!0,configurable:!0}}))}:Ue.exports=function(ce,be){if(be){ce.super_=be;var Le=function(){};Le.prototype=be.prototype,ce.prototype=new Le,ce.prototype.constructor=ce}}},{}],365:[function(oe,Ue,Fe){"use strict";var me=oe("has-tostringtag/shams")(),ce=oe("call-bind/callBound"),be=ce("Object.prototype.toString"),Le=function(xe){return me&&xe&&typeof xe=="object"&&Symbol.toStringTag in xe?!1:be(xe)==="[object Arguments]"},Se=function(xe){return Le(xe)?!0:xe!==null&&typeof xe=="object"&&typeof xe.length=="number"&&xe.length>=0&&be(xe)!=="[object Array]"&&be(xe.callee)==="[object Function]"},ke=function(){return Le(arguments)}();Le.isLegacyArguments=Se,Ue.exports=ke?Le:Se},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(oe,Ue,Fe){Ue.exports=function(be){return be!=null&&(me(be)||ce(be)||!!be._isBuffer)};function me(be){return!!be.constructor&&typeof be.constructor.isBuffer=="function"&&be.constructor.isBuffer(be)}function ce(be){return typeof be.readFloatLE=="function"&&typeof be.slice=="function"&&me(be.slice(0,0))}},{}],367:[function(oe,Ue,Fe){"use strict";var me=Function.prototype.toString,ce=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,be,Le;if(typeof ce=="function"&&typeof Object.defineProperty=="function")try{be=Object.defineProperty({},"length",{get:function(){throw Le}}),Le={},ce(function(){throw 42},null,be)}catch(Ie){Ie!==Le&&(ce=null)}else ce=null;var Se=/^\s*class\b/,ke=function(Oe){try{var Ae=me.call(Oe);return Se.test(Ae)}catch(je){return!1}},ve=function(Oe){try{return ke(Oe)?!1:(me.call(Oe),!0)}catch(Ae){return!1}},xe=Object.prototype.toString,fe="[object Object]",z="[object Function]",ee="[object GeneratorFunction]",ae="[object HTMLAllCollection]",re="[object HTML document.all class]",le="[object HTMLCollection]",ue=typeof Symbol=="function"&&!!Symbol.toStringTag,pe=!(0 in[,]),Ce=function(){return!1};if(typeof document=="object"){var Pe=document.all;xe.call(Pe)===xe.call(document.all)&&(Ce=function(Oe){if((pe||!Oe)&&(typeof Oe=="undefined"||typeof Oe=="object"))try{var Ae=xe.call(Oe);return(Ae===ae||Ae===re||Ae===le||Ae===fe)&&Oe("")==null}catch(je){}return!1})}Ue.exports=ce?function(Oe){if(Ce(Oe))return!0;if(!Oe||typeof Oe!="function"&&typeof Oe!="object")return!1;try{ce(Oe,null,be)}catch(Ae){if(Ae!==Le)return!1}return!ke(Oe)&&ve(Oe)}:function(Oe){if(Ce(Oe))return!0;if(!Oe||typeof Oe!="function"&&typeof Oe!="object")return!1;if(ue)return ve(Oe);if(ke(Oe))return!1;var Ae=xe.call(Oe);return Ae!==z&&Ae!==ee&&!/^\[object HTML/.test(Ae)?!1:ve(Oe)}},{}],368:[function(oe,Ue,Fe){"use strict";var me=Object.prototype.toString,ce=Function.prototype.toString,be=/^\s*(?:function)?\*/,Le=oe("has-tostringtag/shams")(),Se=Object.getPrototypeOf,ke=function(){if(!Le)return!1;try{return Function("return function*() {}")()}catch(xe){}},ve;Ue.exports=function(fe){if(typeof fe!="function")return!1;if(be.test(ce.call(fe)))return!0;if(!Le){var z=me.call(fe);return z==="[object GeneratorFunction]"}if(!Se)return!1;if(typeof ve=="undefined"){var ee=ke();ve=ee?Se(ee):!1}return Se(fe)===ve}},{"has-tostringtag/shams":353}],369:[function(oe,Ue,Fe){"use strict";var me=oe("which-typed-array");Ue.exports=function(be){return!!me(be)}},{"which-typed-array":420}],370:[function(oe,Ue,Fe){var me={}.toString;Ue.exports=Array.isArray||function(ce){return me.call(ce)=="[object Array]"}},{}],371:[function(oe,Ue,Fe){(function(me){(function(){(function(ce,be){typeof Fe=="object"&&typeof Ue!="undefined"?Ue.exports=be(ce):typeof Ke=="function"&&Ke.amd?Ke(be):be(ce)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof me!="undefined"?me:this,function(ce){"use strict";ce=ce||{};var be=ce.Base64,Le="2.6.4",Se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ke=function(dt){for(var vt={},Je=0,ot=dt.length;Je<ot;Je++)vt[dt.charAt(Je)]=Je;return vt}(Se),ve=String.fromCharCode,xe=function(dt){if(dt.length<2){var vt=dt.charCodeAt(0);return vt<128?dt:vt<2048?ve(192|vt>>>6)+ve(128|vt&63):ve(224|vt>>>12&15)+ve(128|vt>>>6&63)+ve(128|vt&63)}else{var vt=65536+(dt.charCodeAt(0)-55296)*1024+(dt.charCodeAt(1)-56320);return ve(240|vt>>>18&7)+ve(128|vt>>>12&63)+ve(128|vt>>>6&63)+ve(128|vt&63)}},fe=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,z=function(dt){return dt.replace(fe,xe)},ee=function(dt){var vt=[0,2,1][dt.length%3],Je=dt.charCodeAt(0)<<16|(dt.length>1?dt.charCodeAt(1):0)<<8|(dt.length>2?dt.charCodeAt(2):0),ot=[Se.charAt(Je>>>18),Se.charAt(Je>>>12&63),vt>=2?"=":Se.charAt(Je>>>6&63),vt>=1?"=":Se.charAt(Je&63)];return ot.join("")},ae=ce.btoa&&typeof ce.btoa=="function"?function(dt){return ce.btoa(dt)}:function(dt){if(dt.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return dt.replace(/[\s\S]{1,3}/g,ee)},re=function(dt){return ae(z(String(dt)))},le=function(dt){return dt.replace(/[+\/]/g,function(vt){return vt=="+"?"-":"_"}).replace(/=/g,"")},ue=function(dt,vt){return vt?le(re(dt)):re(dt)},pe=function(dt){return ue(dt,!0)},Ce;ce.Uint8Array&&(Ce=function(dt,vt){for(var Je="",ot=0,ft=dt.length;ot<ft;ot+=3){var xt=dt[ot],yt=dt[ot+1],pt=dt[ot+2],gt=xt<<16|yt<<8|pt;Je+=Se.charAt(gt>>>18)+Se.charAt(gt>>>12&63)+(typeof yt!="undefined"?Se.charAt(gt>>>6&63):"=")+(typeof pt!="undefined"?Se.charAt(gt&63):"=")}return vt?le(Je):Je});var Pe=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Ie=function(dt){switch(dt.length){case 4:var vt=(7&dt.charCodeAt(0))<<18|(63&dt.charCodeAt(1))<<12|(63&dt.charCodeAt(2))<<6|63&dt.charCodeAt(3),Je=vt-65536;return ve((Je>>>10)+55296)+ve((Je&1023)+56320);case 3:return ve((15&dt.charCodeAt(0))<<12|(63&dt.charCodeAt(1))<<6|63&dt.charCodeAt(2));default:return ve((31&dt.charCodeAt(0))<<6|63&dt.charCodeAt(1))}},Oe=function(dt){return dt.replace(Pe,Ie)},Ae=function(dt){var vt=dt.length,Je=vt%4,ot=(vt>0?ke[dt.charAt(0)]<<18:0)|(vt>1?ke[dt.charAt(1)]<<12:0)|(vt>2?ke[dt.charAt(2)]<<6:0)|(vt>3?ke[dt.charAt(3)]:0),ft=[ve(ot>>>16),ve(ot>>>8&255),ve(ot&255)];return ft.length-=[0,0,2,1][Je],ft.join("")},je=ce.atob&&typeof ce.atob=="function"?function(dt){return ce.atob(dt)}:function(dt){return dt.replace(/\S{1,4}/g,Ae)},Be=function(dt){return je(String(dt).replace(/[^A-Za-z0-9\+\/]/g,""))},_e=function(dt){return Oe(je(dt))},qe=function(dt){return String(dt).replace(/[-_]/g,function(vt){return vt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ze=function(dt){return _e(qe(dt))},Ye;ce.Uint8Array&&(Ye=function(dt){return Uint8Array.from(Be(qe(dt)),function(vt){return vt.charCodeAt(0)})});var et=function(){var dt=ce.Base64;return ce.Base64=be,dt};if(ce.Base64={VERSION:Le,atob:Be,btoa:ae,fromBase64:ze,toBase64:ue,utob:z,encode:ue,encodeURI:pe,btou:Oe,decode:ze,noConflict:et,fromUint8Array:Ce,toUint8Array:Ye},typeof Object.defineProperty=="function"){var lt=function(dt){return{value:dt,enumerable:!1,writable:!0,configurable:!0}};ce.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",lt(function(){return ze(this)})),Object.defineProperty(String.prototype,"toBase64",lt(function(dt){return ue(this,dt)})),Object.defineProperty(String.prototype,"toBase64URI",lt(function(){return ue(this,!0)}))}}return ce.Meteor&&(Base64=ce.Base64),typeof Ue!="undefined"&&Ue.exports?Ue.exports.Base64=ce.Base64:typeof Ke=="function"&&Ke.amd&&Ke([],function(){return ce.Base64}),{Base64:ce.Base64}})}).call(this)}).call(this,typeof vn!="undefined"?vn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(oe,Ue,Fe){"use strict";Ue.exports=ce;var me=Object.prototype.hasOwnProperty;function ce(be,Le,Se){if(!be)throw new TypeError("argument dest is required");if(!Le)throw new TypeError("argument src is required");return Se===void 0&&(Se=!0),Object.getOwnPropertyNames(Le).forEach(function(ve){if(!(!Se&&me.call(be,ve))){var xe=Object.getOwnPropertyDescriptor(Le,ve);Object.defineProperty(be,ve,xe)}}),be}},{}],373:[function(oe,Ue,Fe){"use strict";oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.regexp.constructor.js"),oe("core-js/modules/es.regexp.to-string.js");function me(){this._types=Object.create(null),this._extensions=Object.create(null);for(var ce=0;ce<arguments.length;ce++)this.define(arguments[ce]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}me.prototype.define=function(ce,be){for(var Le in ce){var Se=ce[Le].map(function(fe){return fe.toLowerCase()});Le=Le.toLowerCase();for(var ke=0;ke<Se.length;ke++){var ve=Se[ke];if(ve[0]!=="*"){if(!be&&ve in this._types)throw new Error('Attempt to change mapping for "'+ve+'" extension from "'+this._types[ve]+'" to "'+Le+'". Pass `force=true` to allow this, otherwise remove "'+ve+'" from the list of extensions for "'+Le+'".');this._types[ve]=Le}}if(be||!this._extensions[Le]){var xe=Se[0];this._extensions[Le]=xe[0]!=="*"?xe:xe.substr(1)}}},me.prototype.getType=function(ce){ce=String(ce);var be=ce.replace(/^.*[/\\]/,"").toLowerCase(),Le=be.replace(/^.*\./,"").toLowerCase(),Se=be.length<ce.length,ke=Le.length<be.length-1;return(ke||!Se)&&this._types[Le]||null},me.prototype.getExtension=function(ce){return ce=/^\s*([^;\s]*)/.test(ce)&&RegExp.$1,ce&&this._extensions[ce.toLowerCase()]||null},Ue.exports=me},{"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.constructor.js":299,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305}],374:[function(oe,Ue,Fe){"use strict";var me=oe("./Mime");Ue.exports=new me(oe("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(oe,Ue,Fe){"use strict";Ue.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],376:[function(oe,Ue,Fe){var me=1e3,ce=me*60,be=ce*60,Le=be*24,Se=Le*7,ke=Le*365.25;Ue.exports=function(ee,ae){ae=ae||{};var re=typeof ee;if(re==="string"&&ee.length>0)return ve(ee);if(re==="number"&&isFinite(ee))return ae.long?fe(ee):xe(ee);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(ee))};function ve(ee){if(ee=String(ee),!(ee.length>100)){var ae=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(ee);if(ae){var re=parseFloat(ae[1]),le=(ae[2]||"ms").toLowerCase();switch(le){case"years":case"year":case"yrs":case"yr":case"y":return re*ke;case"weeks":case"week":case"w":return re*Se;case"days":case"day":case"d":return re*Le;case"hours":case"hour":case"hrs":case"hr":case"h":return re*be;case"minutes":case"minute":case"mins":case"min":case"m":return re*ce;case"seconds":case"second":case"secs":case"sec":case"s":return re*me;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return re;default:return}}}}function xe(ee){var ae=Math.abs(ee);return ae>=Le?Math.round(ee/Le)+"d":ae>=be?Math.round(ee/be)+"h":ae>=ce?Math.round(ee/ce)+"m":ae>=me?Math.round(ee/me)+"s":ee+"ms"}function fe(ee){var ae=Math.abs(ee);return ae>=Le?z(ee,ae,Le,"day"):ae>=be?z(ee,ae,be,"hour"):ae>=ce?z(ee,ae,ce,"minute"):ae>=me?z(ee,ae,me,"second"):ee+" ms"}function z(ee,ae,re,le){var ue=ae>=re*1.5;return Math.round(ee/re)+" "+le+(ue?"s":"")}},{}],377:[function(oe,Ue,Fe){"use strict";var me=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable;function Le(ke){if(ke==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(ke)}function Se(){try{if(!Object.assign)return!1;var ke=new String("abc");if(ke[5]="de",Object.getOwnPropertyNames(ke)[0]==="5")return!1;for(var ve={},xe=0;xe<10;xe++)ve["_"+String.fromCharCode(xe)]=xe;var fe=Object.getOwnPropertyNames(ve).map(function(ee){return ve[ee]});if(fe.join("")!=="0123456789")return!1;var z={};return"abcdefghijklmnopqrst".split("").forEach(function(ee){z[ee]=ee}),Object.keys(Object.assign({},z)).join("")==="abcdefghijklmnopqrst"}catch(ee){return!1}}Ue.exports=Se()?Object.assign:function(ke,ve){for(var xe,fe=Le(ke),z,ee=1;ee<arguments.length;ee++){xe=Object(arguments[ee]);for(var ae in xe)ce.call(xe,ae)&&(fe[ae]=xe[ae]);if(me){z=me(xe);for(var re=0;re<z.length;re++)be.call(xe,z[re])&&(fe[z[re]]=xe[z[re]])}}return fe}},{}],378:[function(oe,Ue,Fe){(function(me){(function(){"use strict";function ce(ke){if(typeof ke!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(ke))}function be(ke,ve){for(var xe="",fe=0,z=-1,ee=0,ae,re=0;re<=ke.length;++re){if(re<ke.length)ae=ke.charCodeAt(re);else{if(ae===47)break;ae=47}if(ae===47){if(!(z===re-1||ee===1))if(z!==re-1&&ee===2){if(xe.length<2||fe!==2||xe.charCodeAt(xe.length-1)!==46||xe.charCodeAt(xe.length-2)!==46){if(xe.length>2){var le=xe.lastIndexOf("/");if(le!==xe.length-1){le===-1?(xe="",fe=0):(xe=xe.slice(0,le),fe=xe.length-1-xe.lastIndexOf("/")),z=re,ee=0;continue}}else if(xe.length===2||xe.length===1){xe="",fe=0,z=re,ee=0;continue}}ve&&(xe.length>0?xe+="/..":xe="..",fe=2)}else xe.length>0?xe+="/"+ke.slice(z+1,re):xe=ke.slice(z+1,re),fe=re-z-1;z=re,ee=0}else ae===46&&ee!==-1?++ee:ee=-1}return xe}function Le(ke,ve){var xe=ve.dir||ve.root,fe=ve.base||(ve.name||"")+(ve.ext||"");return xe?xe===ve.root?xe+fe:xe+ke+fe:fe}var Se={resolve:function(){for(var ve="",xe=!1,fe,z=arguments.length-1;z>=-1&&!xe;z--){var ee;z>=0?ee=arguments[z]:(fe===void 0&&(fe=me.cwd()),ee=fe),ce(ee),ee.length!==0&&(ve=ee+"/"+ve,xe=ee.charCodeAt(0)===47)}return ve=be(ve,!xe),xe?ve.length>0?"/"+ve:"/":ve.length>0?ve:"."},normalize:function(ve){if(ce(ve),ve.length===0)return".";var xe=ve.charCodeAt(0)===47,fe=ve.charCodeAt(ve.length-1)===47;return ve=be(ve,!xe),ve.length===0&&!xe&&(ve="."),ve.length>0&&fe&&(ve+="/"),xe?"/"+ve:ve},isAbsolute:function(ve){return ce(ve),ve.length>0&&ve.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var ve,xe=0;xe<arguments.length;++xe){var fe=arguments[xe];ce(fe),fe.length>0&&(ve===void 0?ve=fe:ve+="/"+fe)}return ve===void 0?".":Se.normalize(ve)},relative:function(ve,xe){if(ce(ve),ce(xe),ve===xe||(ve=Se.resolve(ve),xe=Se.resolve(xe),ve===xe))return"";for(var fe=1;fe<ve.length&&ve.charCodeAt(fe)===47;++fe);for(var z=ve.length,ee=z-fe,ae=1;ae<xe.length&&xe.charCodeAt(ae)===47;++ae);for(var re=xe.length,le=re-ae,ue=ee<le?ee:le,pe=-1,Ce=0;Ce<=ue;++Ce){if(Ce===ue){if(le>ue){if(xe.charCodeAt(ae+Ce)===47)return xe.slice(ae+Ce+1);if(Ce===0)return xe.slice(ae+Ce)}else ee>ue&&(ve.charCodeAt(fe+Ce)===47?pe=Ce:Ce===0&&(pe=0));break}var Pe=ve.charCodeAt(fe+Ce),Ie=xe.charCodeAt(ae+Ce);if(Pe!==Ie)break;Pe===47&&(pe=Ce)}var Oe="";for(Ce=fe+pe+1;Ce<=z;++Ce)(Ce===z||ve.charCodeAt(Ce)===47)&&(Oe.length===0?Oe+="..":Oe+="/..");return Oe.length>0?Oe+xe.slice(ae+pe):(ae+=pe,xe.charCodeAt(ae)===47&&++ae,xe.slice(ae))},_makeLong:function(ve){return ve},dirname:function(ve){if(ce(ve),ve.length===0)return".";for(var xe=ve.charCodeAt(0),fe=xe===47,z=-1,ee=!0,ae=ve.length-1;ae>=1;--ae)if(xe=ve.charCodeAt(ae),xe===47){if(!ee){z=ae;break}}else ee=!1;return z===-1?fe?"/":".":fe&&z===1?"//":ve.slice(0,z)},basename:function(ve,xe){if(xe!==void 0&&typeof xe!="string")throw new TypeError('"ext" argument must be a string');ce(ve);var fe=0,z=-1,ee=!0,ae;if(xe!==void 0&&xe.length>0&&xe.length<=ve.length){if(xe.length===ve.length&&xe===ve)return"";var re=xe.length-1,le=-1;for(ae=ve.length-1;ae>=0;--ae){var ue=ve.charCodeAt(ae);if(ue===47){if(!ee){fe=ae+1;break}}else le===-1&&(ee=!1,le=ae+1),re>=0&&(ue===xe.charCodeAt(re)?--re===-1&&(z=ae):(re=-1,z=le))}return fe===z?z=le:z===-1&&(z=ve.length),ve.slice(fe,z)}else{for(ae=ve.length-1;ae>=0;--ae)if(ve.charCodeAt(ae)===47){if(!ee){fe=ae+1;break}}else z===-1&&(ee=!1,z=ae+1);return z===-1?"":ve.slice(fe,z)}},extname:function(ve){ce(ve);for(var xe=-1,fe=0,z=-1,ee=!0,ae=0,re=ve.length-1;re>=0;--re){var le=ve.charCodeAt(re);if(le===47){if(!ee){fe=re+1;break}continue}z===-1&&(ee=!1,z=re+1),le===46?xe===-1?xe=re:ae!==1&&(ae=1):xe!==-1&&(ae=-1)}return xe===-1||z===-1||ae===0||ae===1&&xe===z-1&&xe===fe+1?"":ve.slice(xe,z)},format:function(ve){if(ve===null||typeof ve!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ve);return Le("/",ve)},parse:function(ve){ce(ve);var xe={root:"",dir:"",base:"",ext:"",name:""};if(ve.length===0)return xe;var fe=ve.charCodeAt(0),z=fe===47,ee;z?(xe.root="/",ee=1):ee=0;for(var ae=-1,re=0,le=-1,ue=!0,pe=ve.length-1,Ce=0;pe>=ee;--pe){if(fe=ve.charCodeAt(pe),fe===47){if(!ue){re=pe+1;break}continue}le===-1&&(ue=!1,le=pe+1),fe===46?ae===-1?ae=pe:Ce!==1&&(Ce=1):ae!==-1&&(Ce=-1)}return ae===-1||le===-1||Ce===0||Ce===1&&ae===le-1&&ae===re+1?le!==-1&&(re===0&&z?xe.base=xe.name=ve.slice(1,le):xe.base=xe.name=ve.slice(re,le)):(re===0&&z?(xe.name=ve.slice(1,ae),xe.base=ve.slice(1,le)):(xe.name=ve.slice(re,ae),xe.base=ve.slice(re,le)),xe.ext=ve.slice(ae,le)),re>0?xe.dir=ve.slice(0,re-1):z&&(xe.dir="/"),xe},sep:"/",delimiter:":",win32:null,posix:null};Se.posix=Se,Ue.exports=Se}).call(this)}).call(this,oe("_process"))},{_process:467}],379:[function(oe,Ue,Fe){(function(me){(function(){(function(){"use strict";var ce={function:!0,object:!0},be=ce[typeof window]&&window||this,Le=be,Se=ce[typeof Fe]&&Fe,ke=ce[typeof Ue]&&Ue&&!Ue.nodeType&&Ue,ve=Se&&ke&&typeof me=="object"&&me;ve&&(ve.global===ve||ve.window===ve||ve.self===ve)&&(be=ve);var xe=Math.pow(2,53)-1,fe=/\bOpera/,z=this,ee=Object.prototype,ae=ee.hasOwnProperty,re=ee.toString;function le(ze){return ze=String(ze),ze.charAt(0).toUpperCase()+ze.slice(1)}function ue(ze,Ye,et){var lt={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return Ye&&et&&/^Win/i.test(ze)&&!/^Windows Phone /i.test(ze)&&(lt=lt[/[\d.]+$/.exec(ze)])&&(ze="Windows "+lt),ze=String(ze),Ye&&et&&(ze=ze.replace(RegExp(Ye,"i"),et)),ze=Ce(ze.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),ze}function pe(ze,Ye){var et=-1,lt=ze?ze.length:0;if(typeof lt=="number"&<>-1&<<=xe)for(;++et<lt;)Ye(ze[et],et,ze);else Pe(ze,Ye)}function Ce(ze){return ze=Be(ze),/^(?:webOS|i(?:OS|P))/.test(ze)?ze:le(ze)}function Pe(ze,Ye){for(var et in ze)ae.call(ze,et)&&Ye(ze[et],et,ze)}function Ie(ze){return ze==null?le(ze):re.call(ze).slice(8,-1)}function Oe(ze,Ye){var et=ze!=null?typeof ze[Ye]:"number";return!/^(?:boolean|number|string|undefined)$/.test(et)&&(et=="object"?!!ze[Ye]:!0)}function Ae(ze){return String(ze).replace(/([ -])(?!$)/g,"$1?")}function je(ze,Ye){var et=null;return pe(ze,function(lt,dt){et=Ye(et,lt,dt,ze)}),et}function Be(ze){return String(ze).replace(/^ +| +$/g,"")}function _e(ze){var Ye=be,et=ze&&typeof ze=="object"&&Ie(ze)!="String";et&&(Ye=ze,ze=null);var lt=Ye.navigator||{},dt=lt.userAgent||"";ze||(ze=dt);var vt=et||z==Le,Je=et?!!lt.likeChrome:/\bChrome\b/.test(ze)&&!/internal|\n/i.test(re.toString()),ot="Object",ft=et?ot:"ScriptBridgingProxyObject",xt=et?ot:"Environment",yt=et&&Ye.java?"JavaPackage":Ie(Ye.java),pt=et?ot:"RuntimeObject",gt=/\bJava/.test(yt)&&Ye.java,mt=gt&&Ie(Ye.environment)==xt,Mt=gt?"a":"\u03B1",Ct=gt?"b":"\u03B2",zt=Ye.document||{},St=Ye.operamini||Ye.opera,bt=fe.test(bt=et&&St?St["[[Class]]"]:Ie(St))?bt:St=null,at,nt=ze,we=[],Te=null,Ve=ze==dt,Ze=Ve&&St&&typeof St.version=="function"&&St.version(),Ee,Ge=Et([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),He=It(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),We=$t([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),Xe=ht({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),ct=qt(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function Et(kt){return je(kt,function(Xt,tn){return Xt||RegExp("\\b"+(tn.pattern||Ae(tn))+"\\b","i").exec(ze)&&(tn.label||tn)})}function ht(kt){return je(kt,function(Xt,tn,dn){return Xt||(tn[We]||tn[/^[a-z]+(?: +[a-z]+\b)*/i.exec(We)]||RegExp("\\b"+Ae(dn)+"(?:\\b|\\w*\\d)","i").exec(ze))&&dn})}function It(kt){return je(kt,function(Xt,tn){return Xt||RegExp("\\b"+(tn.pattern||Ae(tn))+"\\b","i").exec(ze)&&(tn.label||tn)})}function qt(kt){return je(kt,function(Xt,tn){var dn=tn.pattern||Ae(tn);return!Xt&&(Xt=RegExp("\\b"+dn+"(?:/[\\d.]+|[ \\w.]*)","i").exec(ze))&&(Xt=ue(Xt,dn,tn.label||tn)),Xt})}function $t(kt){return je(kt,function(Xt,tn){var dn=tn.pattern||Ae(tn);return!Xt&&(Xt=RegExp("\\b"+dn+" *\\d+[.\\w_]*","i").exec(ze)||RegExp("\\b"+dn+" *\\w+-[\\w]*","i").exec(ze)||RegExp("\\b"+dn+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(ze))&&((Xt=String(tn.label&&!RegExp(dn,"i").test(tn.label)?tn.label:Xt).split("/"))[1]&&!/[\d.]+/.test(Xt[0])&&(Xt[0]+=" "+Xt[1]),tn=tn.label||tn,Xt=Ce(Xt[0].replace(RegExp(dn,"i"),tn).replace(RegExp("; *(?:"+tn+"[_-])?","i")," ").replace(RegExp("("+tn+")[-_.]?(\\w)","i"),"$1 $2"))),Xt})}function Wt(kt){return je(kt,function(Xt,tn){return Xt||(RegExp(tn+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(ze)||0)[1]||null})}function Ut(){return this.description||""}if(Ge&&(Ge=[Ge]),/\bAndroid\b/.test(ct)&&!We&&(at=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(ze))&&(We=Be(at[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),Xe&&!We?We=$t([Xe]):Xe&&We&&(We=We.replace(RegExp("^("+Ae(Xe)+")[-_.\\s]","i"),Xe+" ").replace(RegExp("^("+Ae(Xe)+")[-_.]?(\\w)","i"),Xe+" $2")),(at=/\bGoogle TV\b/.exec(We))&&(We=at[0]),/\bSimulator\b/i.test(ze)&&(We=(We?We+" ":"")+"Simulator"),He=="Opera Mini"&&/\bOPiOS\b/.test(ze)&&we.push("running in Turbo/Uncompressed mode"),He=="IE"&&/\blike iPhone OS\b/.test(ze)?(at=_e(ze.replace(/like iPhone OS/,"")),Xe=at.manufacturer,We=at.product):/^iP/.test(We)?(He||(He="Safari"),ct="iOS"+((at=/ OS ([\d_]+)/i.exec(ze))?" "+at[1].replace(/_/g,"."):"")):He=="Konqueror"&&/^Linux\b/i.test(ct)?ct="Kubuntu":Xe&&Xe!="Google"&&(/Chrome/.test(He)&&!/\bMobile Safari\b/i.test(ze)||/\bVita\b/.test(We))||/\bAndroid\b/.test(ct)&&/^Chrome/.test(He)&&/\bVersion\//i.test(ze)?(He="Android Browser",ct=/\bAndroid\b/.test(ct)?ct:"Android"):He=="Silk"?(/\bMobi/i.test(ze)||(ct="Android",we.unshift("desktop mode")),/Accelerated *= *true/i.test(ze)&&we.unshift("accelerated")):He=="UC Browser"&&/\bUCWEB\b/.test(ze)?we.push("speed mode"):He=="PaleMoon"&&(at=/\bFirefox\/([\d.]+)\b/.exec(ze))?we.push("identifying as Firefox "+at[1]):He=="Firefox"&&(at=/\b(Mobile|Tablet|TV)\b/i.exec(ze))?(ct||(ct="Firefox OS"),We||(We=at[1])):!He||(at=!/\bMinefield\b/i.test(ze)&&/\b(?:Firefox|Safari)\b/.exec(He))?(He&&!We&&/[\/,]|^[^(]+?\)/.test(ze.slice(ze.indexOf(at+"/")+8))&&(He=null),(at=We||Xe||ct)&&(We||Xe||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(ct))&&(He=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(ct)?ct:at)+" Browser")):He=="Electron"&&(at=(/\bChrome\/([\d.]+)\b/.exec(ze)||0)[1])&&we.push("Chromium "+at),Ze||(Ze=Wt(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",Ae(He),"(?:Firefox|Minefield|NetFront)"])),(at=Ge=="iCab"&&parseFloat(Ze)>3&&"WebKit"||/\bOpera\b/.test(He)&&(/\bOPR\b/.test(ze)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(ze)&&!/^(?:Trident|EdgeHTML)$/.test(Ge)&&"WebKit"||!Ge&&/\bMSIE\b/i.test(ze)&&(ct=="Mac OS"?"Tasman":"Trident")||Ge=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(He)&&"NetFront")&&(Ge=[at]),He=="IE"&&(at=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(ze)||0)[1])?(He+=" Mobile",ct="Windows Phone "+(/\+$/.test(at)?at:at+".x"),we.unshift("desktop mode")):/\bWPDesktop\b/i.test(ze)?(He="IE Mobile",ct="Windows Phone 8.x",we.unshift("desktop mode"),Ze||(Ze=(/\brv:([\d.]+)/.exec(ze)||0)[1])):He!="IE"&&Ge=="Trident"&&(at=/\brv:([\d.]+)/.exec(ze))&&(He&&we.push("identifying as "+He+(Ze?" "+Ze:"")),He="IE",Ze=at[1]),Ve){if(Oe(Ye,"global"))if(gt&&(at=gt.lang.System,nt=at.getProperty("os.arch"),ct=ct||at.getProperty("os.name")+" "+at.getProperty("os.version")),mt){try{Ze=Ye.require("ringo/engine").version.join("."),He="RingoJS"}catch(kt){(at=Ye.system)&&at.global.system==Ye.system&&(He="Narwhal",ct||(ct=at[0].os||null))}He||(He="Rhino")}else typeof Ye.process=="object"&&!Ye.process.browser&&(at=Ye.process)&&(typeof at.versions=="object"&&(typeof at.versions.electron=="string"?(we.push("Node "+at.versions.node),He="Electron",Ze=at.versions.electron):typeof at.versions.nw=="string"&&(we.push("Chromium "+Ze,"Node "+at.versions.node),He="NW.js",Ze=at.versions.nw)),He||(He="Node.js",nt=at.arch,ct=at.platform,Ze=/[\d.]+/.exec(at.version),Ze=Ze?Ze[0]:null));else Ie(at=Ye.runtime)==ft?(He="Adobe AIR",ct=at.flash.system.Capabilities.os):Ie(at=Ye.phantom)==pt?(He="PhantomJS",Ze=(at=at.version||null)&&at.major+"."+at.minor+"."+at.patch):typeof zt.documentMode=="number"&&(at=/\bTrident\/(\d+)/i.exec(ze))?(Ze=[Ze,zt.documentMode],(at=+at[1]+4)!=Ze[1]&&(we.push("IE "+Ze[1]+" mode"),Ge&&(Ge[1]=""),Ze[1]=at),Ze=He=="IE"?String(Ze[1].toFixed(1)):Ze[0]):typeof zt.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(He)&&(we.push("masking as "+He+" "+Ze),He="IE",Ze="11.0",Ge=["Trident"],ct="Windows");ct=ct&&Ce(ct)}if(Ze&&(at=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Ze)||/(?:alpha|beta)(?: ?\d)?/i.exec(ze+";"+(Ve&<.appMinorVersion))||/\bMinefield\b/i.test(ze)&&"a")&&(Te=/b/i.test(at)?"beta":"alpha",Ze=Ze.replace(RegExp(at+"\\+?$"),"")+(Te=="beta"?Ct:Mt)+(/\d+\+?/.exec(at)||"")),He=="Fennec"||He=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(ct))He="Firefox Mobile";else if(He=="Maxthon"&&Ze)Ze=Ze.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(We))We=="Xbox 360"&&(ct=null),We=="Xbox 360"&&/\bIEMobile\b/.test(ze)&&we.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(He)||He&&!We&&!/Browser|Mobi/.test(He))&&(ct=="Windows CE"||/Mobi/i.test(ze)))He+=" Mobile";else if(He=="IE"&&Ve)try{Ye.external===null&&we.unshift("platform preview")}catch(kt){we.unshift("embedded")}else(/\bBlackBerry\b/.test(We)||/\bBB10\b/.test(ze))&&(at=(RegExp(We.replace(/ +/g," *")+"/([.\\d]+)","i").exec(ze)||0)[1]||Ze)?(at=[at,/BB10/.test(ze)],ct=(at[1]?(We=null,Xe="BlackBerry"):"Device Software")+" "+at[0],Ze=null):this!=Pe&&We!="Wii"&&(Ve&&St||/Opera/.test(He)&&/\b(?:MSIE|Firefox)\b/i.test(ze)||He=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(ct)||He=="IE"&&(ct&&!/^Win/.test(ct)&&Ze>5.5||/\bWindows XP\b/.test(ct)&&Ze>8||Ze==8&&!/\bTrident\b/.test(ze)))&&!fe.test(at=_e.call(Pe,ze.replace(fe,"")+";"))&&at.name&&(at="ing as "+at.name+((at=at.version)?" "+at:""),fe.test(He)?(/\bIE\b/.test(at)&&ct=="Mac OS"&&(ct=null),at="identify"+at):(at="mask"+at,bt?He=Ce(bt.replace(/([a-z])([A-Z])/g,"$1 $2")):He="Opera",/\bIE\b/.test(at)&&(ct=null),Ve||(Ze=null)),Ge=["Presto"],we.push(at));(at=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(ze)||0)[1])&&(at=[parseFloat(at.replace(/\.(\d)$/,".0$1")),at],He=="Safari"&&at[1].slice(-1)=="+"?(He="WebKit Nightly",Te="alpha",Ze=at[1].slice(0,-1)):(Ze==at[1]||Ze==(at[2]=(/\bSafari\/([\d.]+\+?)/i.exec(ze)||0)[1]))&&(Ze=null),at[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(ze)||0)[1],at[0]==537.36&&at[2]==537.36&&parseFloat(at[1])>=28&&Ge=="WebKit"&&(Ge=["Blink"]),!Ve||!Je&&!at[1]?(Ge&&(Ge[1]="like Safari"),at=(at=at[0],at<400?1:at<500?2:at<526?3:at<533?4:at<534?"4+":at<535?5:at<537?6:at<538?7:at<601?8:at<602?9:at<604?10:at<606?11:at<608?12:"12")):(Ge&&(Ge[1]="like Chrome"),at=at[1]||(at=at[0],at<530?1:at<532?2:at<532.05?3:at<533?4:at<534.03?5:at<534.07?6:at<534.1?7:at<534.13?8:at<534.16?9:at<534.24?10:at<534.3?11:at<535.01?12:at<535.02?"13+":at<535.07?15:at<535.11?16:at<535.19?17:at<536.05?18:at<536.1?19:at<537.01?20:at<537.11?"21+":at<537.13?23:at<537.18?24:at<537.24?25:at<537.36?26:Ge!="Blink"?"27":"28")),Ge&&(Ge[1]+=" "+(at+=typeof at=="number"?".x":/[.+]/.test(at)?"":"+")),He=="Safari"&&(!Ze||parseInt(Ze)>45)?Ze=at:He=="Chrome"&&/\bHeadlessChrome/i.test(ze)&&we.unshift("headless")),He=="Opera"&&(at=/\bzbov|zvav$/.exec(ct))?(He+=" ",we.unshift("desktop mode"),at=="zvav"?(He+="Mini",Ze=null):He+="Mobile",ct=ct.replace(RegExp(" *"+at+"$"),"")):He=="Safari"&&/\bChrome\b/.exec(Ge&&Ge[1])?(we.unshift("desktop mode"),He="Chrome Mobile",Ze=null,/\bOS X\b/.test(ct)?(Xe="Apple",ct="iOS 4.3+"):ct=null):/\bSRWare Iron\b/.test(He)&&!Ze&&(Ze=Wt("Chrome")),Ze&&Ze.indexOf(at=/[\d.]+$/.exec(ct))==0&&ze.indexOf("/"+at+"-")>-1&&(ct=Be(ct.replace(at,""))),ct&&ct.indexOf(He)!=-1&&!RegExp(He+" OS").test(ct)&&(ct=ct.replace(RegExp(" *"+Ae(He)+" *"),"")),Ge&&!/\b(?:Avant|Nook)\b/.test(He)&&(/Browser|Lunascape|Maxthon/.test(He)||He!="Safari"&&/^iOS/.test(ct)&&/\bSafari\b/.test(Ge[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(He)&&Ge[1])&&(at=Ge[Ge.length-1])&&we.push(at),we.length&&(we=["("+we.join("; ")+")"]),Xe&&We&&We.indexOf(Xe)<0&&we.push("on "+Xe),We&&we.push((/^on /.test(we[we.length-1])?"":"on ")+We),ct&&(at=/ ([\d.+]+)$/.exec(ct),Ee=at&&ct.charAt(ct.length-at[0].length-1)=="/",ct={architecture:32,family:at&&!Ee?ct.replace(at[0],""):ct,version:at?at[1]:null,toString:function(){var kt=this.version;return this.family+(kt&&!Ee?" "+kt:"")+(this.architecture==64?" 64-bit":"")}}),(at=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(nt))&&!/\bi686\b/i.test(nt)?(ct&&(ct.architecture=64,ct.family=ct.family.replace(RegExp(" *"+at),"")),He&&(/\bWOW64\b/i.test(ze)||Ve&&/\w(?:86|32)$/.test(lt.cpuClass||lt.platform)&&!/\bWin64; x64\b/i.test(ze))&&we.unshift("32-bit")):ct&&/^OS X/.test(ct.family)&&He=="Chrome"&&parseFloat(Ze)>=39&&(ct.architecture=64),ze||(ze=null);var ln={};return ln.description=ze,ln.layout=Ge&&Ge[0],ln.manufacturer=Xe,ln.name=He,ln.prerelease=Te,ln.product=We,ln.ua=ze,ln.version=He&&Ze,ln.os=ct||{architecture:null,family:null,version:null,toString:function(){return"null"}},ln.parse=_e,ln.toString=Ut,ln.version&&we.unshift(Ze),ln.name&&we.unshift(He),ct&&He&&!(ct==String(ct).split(" ")[0]&&(ct==He.split(" ")[0]||We))&&we.push(We?"("+ct+")":"on "+ct),we.length&&(ln.description=we.join(" ")),ln}var qe=_e();typeof Ke=="function"&&typeof Ke.amd=="object"&&Ke.amd?(be.platform=qe,Ke(function(){return qe})):Se&&ke?Pe(qe,function(ze,Ye){Se[Ye]=ze}):be.platform=qe}).call(this)}).call(this)}).call(this,typeof vn!="undefined"?vn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(oe,Ue,Fe){(function(me){(function(){"use strict";typeof me=="undefined"||!me.version||me.version.indexOf("v0.")===0||me.version.indexOf("v1.")===0&&me.version.indexOf("v1.8.")!==0?Ue.exports={nextTick:ce}:Ue.exports=me;function ce(be,Le,Se,ke){if(typeof be!="function")throw new TypeError('"callback" argument must be a function');var ve=arguments.length,xe,fe;switch(ve){case 0:case 1:return me.nextTick(be);case 2:return me.nextTick(function(){be.call(null,Le)});case 3:return me.nextTick(function(){be.call(null,Le,Se)});case 4:return me.nextTick(function(){be.call(null,Le,Se,ke)});default:for(xe=new Array(ve-1),fe=0;fe<xe.length;)xe[fe++]=arguments[fe];return me.nextTick(function(){be.apply(null,xe)})}}}).call(this)}).call(this,oe("_process"))},{_process:467}],381:[function(oe,Ue,Fe){var me=Ue.exports={},ce,be;function Le(){throw new Error("setTimeout has not been defined")}function Se(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ce=setTimeout:ce=Le}catch(pe){ce=Le}try{typeof clearTimeout=="function"?be=clearTimeout:be=Se}catch(pe){be=Se}})();function ke(pe){if(ce===setTimeout)return setTimeout(pe,0);if((ce===Le||!ce)&&setTimeout)return ce=setTimeout,setTimeout(pe,0);try{return ce(pe,0)}catch(Ce){try{return ce.call(null,pe,0)}catch(Pe){return ce.call(this,pe,0)}}}function ve(pe){if(be===clearTimeout)return clearTimeout(pe);if((be===Se||!be)&&clearTimeout)return be=clearTimeout,clearTimeout(pe);try{return be(pe)}catch(Ce){try{return be.call(null,pe)}catch(Pe){return be.call(this,pe)}}}var xe=[],fe=!1,z,ee=-1;function ae(){!fe||!z||(fe=!1,z.length?xe=z.concat(xe):ee=-1,xe.length&&re())}function re(){if(!fe){var pe=ke(ae);fe=!0;for(var Ce=xe.length;Ce;){for(z=xe,xe=[];++ee<Ce;)z&&z[ee].run();ee=-1,Ce=xe.length}z=null,fe=!1,ve(pe)}}me.nextTick=function(pe){var Ce=new Array(arguments.length-1);if(arguments.length>1)for(var Pe=1;Pe<arguments.length;Pe++)Ce[Pe-1]=arguments[Pe];xe.push(new le(pe,Ce)),xe.length===1&&!fe&&ke(re)};function le(pe,Ce){this.fun=pe,this.array=Ce}le.prototype.run=function(){this.fun.apply(null,this.array)},me.title="browser",me.browser=!0,me.env={},me.argv=[],me.version="",me.versions={};function ue(){}me.on=ue,me.addListener=ue,me.once=ue,me.off=ue,me.removeListener=ue,me.removeAllListeners=ue,me.emit=ue,me.prependListener=ue,me.prependOnceListener=ue,me.listeners=function(pe){return[]},me.binding=function(pe){throw new Error("process.binding is not supported")},me.cwd=function(){return"/"},me.chdir=function(pe){throw new Error("process.chdir is not supported")},me.umask=function(){return 0}},{}],382:[function(oe,Ue,Fe){(function(me){(function(){(function(ce){var be=typeof Fe=="object"&&Fe&&!Fe.nodeType&&Fe,Le=typeof Ue=="object"&&Ue&&!Ue.nodeType&&Ue,Se=typeof me=="object"&&me;(Se.global===Se||Se.window===Se||Se.self===Se)&&(ce=Se);var ke,ve=2147483647,xe=36,fe=1,z=26,ee=38,ae=700,re=72,le=128,ue="-",pe=/^xn--/,Ce=/[^\x20-\x7E]/,Pe=/[\x2E\u3002\uFF0E\uFF61]/g,Ie={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Oe=xe-fe,Ae=Math.floor,je=String.fromCharCode,Be;function _e(yt){throw new RangeError(Ie[yt])}function qe(yt,pt){for(var gt=yt.length,mt=[];gt--;)mt[gt]=pt(yt[gt]);return mt}function ze(yt,pt){var gt=yt.split("@"),mt="";gt.length>1&&(mt=gt[0]+"@",yt=gt[1]),yt=yt.replace(Pe,".");var Mt=yt.split("."),Ct=qe(Mt,pt).join(".");return mt+Ct}function Ye(yt){for(var pt=[],gt=0,mt=yt.length,Mt,Ct;gt<mt;)Mt=yt.charCodeAt(gt++),Mt>=55296&&Mt<=56319&><mt?(Ct=yt.charCodeAt(gt++),(Ct&64512)==56320?pt.push(((Mt&1023)<<10)+(Ct&1023)+65536):(pt.push(Mt),gt--)):pt.push(Mt);return pt}function et(yt){return qe(yt,function(pt){var gt="";return pt>65535&&(pt-=65536,gt+=je(pt>>>10&1023|55296),pt=56320|pt&1023),gt+=je(pt),gt}).join("")}function lt(yt){return yt-48<10?yt-22:yt-65<26?yt-65:yt-97<26?yt-97:xe}function dt(yt,pt){return yt+22+75*(yt<26)-((pt!=0)<<5)}function vt(yt,pt,gt){var mt=0;for(yt=gt?Ae(yt/ae):yt>>1,yt+=Ae(yt/pt);yt>Oe*z>>1;mt+=xe)yt=Ae(yt/Oe);return Ae(mt+(Oe+1)*yt/(yt+ee))}function Je(yt){var pt=[],gt=yt.length,mt,Mt=0,Ct=le,zt=re,St,bt,at,nt,we,Te,Ve,Ze,Ee;for(St=yt.lastIndexOf(ue),St<0&&(St=0),bt=0;bt<St;++bt)yt.charCodeAt(bt)>=128&&_e("not-basic"),pt.push(yt.charCodeAt(bt));for(at=St>0?St+1:0;at<gt;){for(nt=Mt,we=1,Te=xe;at>=gt&&_e("invalid-input"),Ve=lt(yt.charCodeAt(at++)),(Ve>=xe||Ve>Ae((ve-Mt)/we))&&_e("overflow"),Mt+=Ve*we,Ze=Te<=zt?fe:Te>=zt+z?z:Te-zt,!(Ve<Ze);Te+=xe)Ee=xe-Ze,we>Ae(ve/Ee)&&_e("overflow"),we*=Ee;mt=pt.length+1,zt=vt(Mt-nt,mt,nt==0),Ae(Mt/mt)>ve-Ct&&_e("overflow"),Ct+=Ae(Mt/mt),Mt%=mt,pt.splice(Mt++,0,Ct)}return et(pt)}function ot(yt){var pt,gt,mt,Mt,Ct,zt,St,bt,at,nt,we,Te=[],Ve,Ze,Ee,Ge;for(yt=Ye(yt),Ve=yt.length,pt=le,gt=0,Ct=re,zt=0;zt<Ve;++zt)we=yt[zt],we<128&&Te.push(je(we));for(mt=Mt=Te.length,Mt&&Te.push(ue);mt<Ve;){for(St=ve,zt=0;zt<Ve;++zt)we=yt[zt],we>=pt&&we<St&&(St=we);for(Ze=mt+1,St-pt>Ae((ve-gt)/Ze)&&_e("overflow"),gt+=(St-pt)*Ze,pt=St,zt=0;zt<Ve;++zt)if(we=yt[zt],we<pt&&++gt>ve&&_e("overflow"),we==pt){for(bt=gt,at=xe;nt=at<=Ct?fe:at>=Ct+z?z:at-Ct,!(bt<nt);at+=xe)Ge=bt-nt,Ee=xe-nt,Te.push(je(dt(nt+Ge%Ee,0))),bt=Ae(Ge/Ee);Te.push(je(dt(bt,0))),Ct=vt(gt,Ze,mt==Mt),gt=0,++mt}++gt,++pt}return Te.join("")}function ft(yt){return ze(yt,function(pt){return pe.test(pt)?Je(pt.slice(4).toLowerCase()):pt})}function xt(yt){return ze(yt,function(pt){return Ce.test(pt)?"xn--"+ot(pt):pt})}if(ke={version:"1.4.1",ucs2:{decode:Ye,encode:et},decode:Je,encode:ot,toASCII:xt,toUnicode:ft},typeof Ke=="function"&&typeof Ke.amd=="object"&&Ke.amd)Ke("punycode",function(){return ke});else if(be&&Le)if(Ue.exports==be)Le.exports=ke;else for(Be in ke)ke.hasOwnProperty(Be)&&(be[Be]=ke[Be]);else ce.punycode=ke})(this)}).call(this)}).call(this,typeof vn!="undefined"?vn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(oe,Ue,Fe){"use strict";function me(be,Le){return Object.prototype.hasOwnProperty.call(be,Le)}Ue.exports=function(be,Le,Se,ke){Le=Le||"&",Se=Se||"=";var ve={};if(typeof be!="string"||be.length===0)return ve;var xe=/\+/g;be=be.split(Le);var fe=1e3;ke&&typeof ke.maxKeys=="number"&&(fe=ke.maxKeys);var z=be.length;fe>0&&z>fe&&(z=fe);for(var ee=0;ee<z;++ee){var ae=be[ee].replace(xe,"%20"),re=ae.indexOf(Se),le,ue,pe,Ce;re>=0?(le=ae.substr(0,re),ue=ae.substr(re+1)):(le=ae,ue=""),pe=decodeURIComponent(le),Ce=decodeURIComponent(ue),me(ve,pe)?ce(ve[pe])?ve[pe].push(Ce):ve[pe]=[ve[pe],Ce]:ve[pe]=Ce}return ve};var ce=Array.isArray||function(be){return Object.prototype.toString.call(be)==="[object Array]"}},{}],384:[function(oe,Ue,Fe){"use strict";var me=function(Se){switch(typeof Se){case"string":return Se;case"boolean":return Se?"true":"false";case"number":return isFinite(Se)?Se:"";default:return""}};Ue.exports=function(Se,ke,ve,xe){return ke=ke||"&",ve=ve||"=",Se===null&&(Se=void 0),typeof Se=="object"?be(Le(Se),function(fe){var z=encodeURIComponent(me(fe))+ve;return ce(Se[fe])?be(Se[fe],function(ee){return z+encodeURIComponent(me(ee))}).join(ke):z+encodeURIComponent(me(Se[fe]))}).join(ke):xe?encodeURIComponent(me(xe))+ve+encodeURIComponent(me(Se)):""};var ce=Array.isArray||function(Se){return Object.prototype.toString.call(Se)==="[object Array]"};function be(Se,ke){if(Se.map)return Se.map(ke);for(var ve=[],xe=0;xe<Se.length;xe++)ve.push(ke(Se[xe],xe));return ve}var Le=Object.keys||function(Se){var ke=[];for(var ve in Se)Object.prototype.hasOwnProperty.call(Se,ve)&&ke.push(ve);return ke}},{}],385:[function(oe,Ue,Fe){"use strict";Fe.decode=Fe.parse=oe("./decode"),Fe.encode=Fe.stringify=oe("./encode")},{"./decode":383,"./encode":384}],386:[function(oe,Ue,Fe){"use strict";var me=oe("process-nextick-args"),ce=Object.keys||function(ae){var re=[];for(var le in ae)re.push(le);return re};Ue.exports=fe;var be=Object.create(oe("core-util-is"));be.inherits=oe("inherits");var Le=oe("./_stream_readable"),Se=oe("./_stream_writable");be.inherits(fe,Le);for(var ke=ce(Se.prototype),ve=0;ve<ke.length;ve++){var xe=ke[ve];fe.prototype[xe]||(fe.prototype[xe]=Se.prototype[xe])}function fe(ae){if(!(this instanceof fe))return new fe(ae);Le.call(this,ae),Se.call(this,ae),ae&&ae.readable===!1&&(this.readable=!1),ae&&ae.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,ae&&ae.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",z)}Object.defineProperty(fe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function z(){this.allowHalfOpen||this._writableState.ended||me.nextTick(ee,this)}function ee(ae){ae.end()}Object.defineProperty(fe.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(ae){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=ae,this._writableState.destroyed=ae)}}),fe.prototype._destroy=function(ae,re){this.push(null),this.end(),me.nextTick(re,ae)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(oe,Ue,Fe){"use strict";Ue.exports=be;var me=oe("./_stream_transform"),ce=Object.create(oe("core-util-is"));ce.inherits=oe("inherits"),ce.inherits(be,me);function be(Le){if(!(this instanceof be))return new be(Le);me.call(this,Le)}be.prototype._transform=function(Le,Se,ke){ke(null,Le)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(oe,Ue,Fe){(function(me,ce){(function(){"use strict";var be=oe("process-nextick-args");Ue.exports=je;var Le=oe("isarray"),Se;je.ReadableState=Ae;var ke=oe("events").EventEmitter,ve=function(we,Te){return we.listeners(Te).length},xe=oe("./internal/streams/stream"),fe=oe("safe-buffer").Buffer,z=ce.Uint8Array||function(){};function ee(we){return fe.from(we)}function ae(we){return fe.isBuffer(we)||we instanceof z}var re=Object.create(oe("core-util-is"));re.inherits=oe("inherits");var le=oe("util"),ue=void 0;le&&le.debuglog?ue=le.debuglog("stream"):ue=function(){};var pe=oe("./internal/streams/BufferList"),Ce=oe("./internal/streams/destroy"),Pe;re.inherits(je,xe);var Ie=["error","close","destroy","pause","resume"];function Oe(we,Te,Ve){if(typeof we.prependListener=="function")return we.prependListener(Te,Ve);!we._events||!we._events[Te]?we.on(Te,Ve):Le(we._events[Te])?we._events[Te].unshift(Ve):we._events[Te]=[Ve,we._events[Te]]}function Ae(we,Te){Se=Se||oe("./_stream_duplex"),we=we||{};var Ve=Te instanceof Se;this.objectMode=!!we.objectMode,Ve&&(this.objectMode=this.objectMode||!!we.readableObjectMode);var Ze=we.highWaterMark,Ee=we.readableHighWaterMark,Ge=this.objectMode?16:16*1024;Ze||Ze===0?this.highWaterMark=Ze:Ve&&(Ee||Ee===0)?this.highWaterMark=Ee:this.highWaterMark=Ge,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new pe,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=we.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,we.encoding&&(Pe||(Pe=oe("string_decoder/").StringDecoder),this.decoder=new Pe(we.encoding),this.encoding=we.encoding)}function je(we){if(Se=Se||oe("./_stream_duplex"),!(this instanceof je))return new je(we);this._readableState=new Ae(we,this),this.readable=!0,we&&(typeof we.read=="function"&&(this._read=we.read),typeof we.destroy=="function"&&(this._destroy=we.destroy)),xe.call(this)}Object.defineProperty(je.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(we){this._readableState&&(this._readableState.destroyed=we)}}),je.prototype.destroy=Ce.destroy,je.prototype._undestroy=Ce.undestroy,je.prototype._destroy=function(we,Te){this.push(null),Te(we)},je.prototype.push=function(we,Te){var Ve=this._readableState,Ze;return Ve.objectMode?Ze=!0:typeof we=="string"&&(Te=Te||Ve.defaultEncoding,Te!==Ve.encoding&&(we=fe.from(we,Te),Te=""),Ze=!0),Be(this,we,Te,!1,Ze)},je.prototype.unshift=function(we){return Be(this,we,null,!0,!1)};function Be(we,Te,Ve,Ze,Ee){var Ge=we._readableState;if(Te===null)Ge.reading=!1,dt(we,Ge);else{var He;Ee||(He=qe(Ge,Te)),He?we.emit("error",He):Ge.objectMode||Te&&Te.length>0?(typeof Te!="string"&&!Ge.objectMode&&Object.getPrototypeOf(Te)!==fe.prototype&&(Te=ee(Te)),Ze?Ge.endEmitted?we.emit("error",new Error("stream.unshift() after end event")):_e(we,Ge,Te,!0):Ge.ended?we.emit("error",new Error("stream.push() after EOF")):(Ge.reading=!1,Ge.decoder&&!Ve?(Te=Ge.decoder.write(Te),Ge.objectMode||Te.length!==0?_e(we,Ge,Te,!1):ot(we,Ge)):_e(we,Ge,Te,!1))):Ze||(Ge.reading=!1)}return ze(Ge)}function _e(we,Te,Ve,Ze){Te.flowing&&Te.length===0&&!Te.sync?(we.emit("data",Ve),we.read(0)):(Te.length+=Te.objectMode?1:Ve.length,Ze?Te.buffer.unshift(Ve):Te.buffer.push(Ve),Te.needReadable&&vt(we)),ot(we,Te)}function qe(we,Te){var Ve;return!ae(Te)&&typeof Te!="string"&&Te!==void 0&&!we.objectMode&&(Ve=new TypeError("Invalid non-string/buffer chunk")),Ve}function ze(we){return!we.ended&&(we.needReadable||we.length<we.highWaterMark||we.length===0)}je.prototype.isPaused=function(){return this._readableState.flowing===!1},je.prototype.setEncoding=function(we){return Pe||(Pe=oe("string_decoder/").StringDecoder),this._readableState.decoder=new Pe(we),this._readableState.encoding=we,this};var Ye=8388608;function et(we){return we>=Ye?we=Ye:(we--,we|=we>>>1,we|=we>>>2,we|=we>>>4,we|=we>>>8,we|=we>>>16,we++),we}function lt(we,Te){return we<=0||Te.length===0&&Te.ended?0:Te.objectMode?1:we!==we?Te.flowing&&Te.length?Te.buffer.head.data.length:Te.length:(we>Te.highWaterMark&&(Te.highWaterMark=et(we)),we<=Te.length?we:Te.ended?Te.length:(Te.needReadable=!0,0))}je.prototype.read=function(we){ue("read",we),we=parseInt(we,10);var Te=this._readableState,Ve=we;if(we!==0&&(Te.emittedReadable=!1),we===0&&Te.needReadable&&(Te.length>=Te.highWaterMark||Te.ended))return ue("read: emitReadable",Te.length,Te.ended),Te.length===0&&Te.ended?bt(this):vt(this),null;if(we=lt(we,Te),we===0&&Te.ended)return Te.length===0&&bt(this),null;var Ze=Te.needReadable;ue("need readable",Ze),(Te.length===0||Te.length-we<Te.highWaterMark)&&(Ze=!0,ue("length less than watermark",Ze)),Te.ended||Te.reading?(Ze=!1,ue("reading or ended",Ze)):Ze&&(ue("do read"),Te.reading=!0,Te.sync=!0,Te.length===0&&(Te.needReadable=!0),this._read(Te.highWaterMark),Te.sync=!1,Te.reading||(we=lt(Ve,Te)));var Ee;return we>0?Ee=Mt(we,Te):Ee=null,Ee===null?(Te.needReadable=!0,we=0):Te.length-=we,Te.length===0&&(Te.ended||(Te.needReadable=!0),Ve!==we&&Te.ended&&bt(this)),Ee!==null&&this.emit("data",Ee),Ee};function dt(we,Te){if(!Te.ended){if(Te.decoder){var Ve=Te.decoder.end();Ve&&Ve.length&&(Te.buffer.push(Ve),Te.length+=Te.objectMode?1:Ve.length)}Te.ended=!0,vt(we)}}function vt(we){var Te=we._readableState;Te.needReadable=!1,Te.emittedReadable||(ue("emitReadable",Te.flowing),Te.emittedReadable=!0,Te.sync?be.nextTick(Je,we):Je(we))}function Je(we){ue("emit readable"),we.emit("readable"),mt(we)}function ot(we,Te){Te.readingMore||(Te.readingMore=!0,be.nextTick(ft,we,Te))}function ft(we,Te){for(var Ve=Te.length;!Te.reading&&!Te.flowing&&!Te.ended&&Te.length<Te.highWaterMark&&(ue("maybeReadMore read 0"),we.read(0),Ve!==Te.length);)Ve=Te.length;Te.readingMore=!1}je.prototype._read=function(we){this.emit("error",new Error("_read() is not implemented"))},je.prototype.pipe=function(we,Te){var Ve=this,Ze=this._readableState;switch(Ze.pipesCount){case 0:Ze.pipes=we;break;case 1:Ze.pipes=[Ze.pipes,we];break;default:Ze.pipes.push(we);break}Ze.pipesCount+=1,ue("pipe count=%d opts=%j",Ze.pipesCount,Te);var Ee=(!Te||Te.end!==!1)&&we!==me.stdout&&we!==me.stderr,Ge=Ee?We:Ut;Ze.endEmitted?be.nextTick(Ge):Ve.once("end",Ge),we.on("unpipe",He);function He(ln,kt){ue("onunpipe"),ln===Ve&&kt&&kt.hasUnpiped===!1&&(kt.hasUnpiped=!0,Et())}function We(){ue("onend"),we.end()}var Xe=xt(Ve);we.on("drain",Xe);var ct=!1;function Et(){ue("cleanup"),we.removeListener("close",$t),we.removeListener("finish",Wt),we.removeListener("drain",Xe),we.removeListener("error",qt),we.removeListener("unpipe",He),Ve.removeListener("end",We),Ve.removeListener("end",Ut),Ve.removeListener("data",It),ct=!0,Ze.awaitDrain&&(!we._writableState||we._writableState.needDrain)&&Xe()}var ht=!1;Ve.on("data",It);function It(ln){ue("ondata"),ht=!1;var kt=we.write(ln);kt===!1&&!ht&&((Ze.pipesCount===1&&Ze.pipes===we||Ze.pipesCount>1&&nt(Ze.pipes,we)!==-1)&&!ct&&(ue("false write response, pause",Ve._readableState.awaitDrain),Ve._readableState.awaitDrain++,ht=!0),Ve.pause())}function qt(ln){ue("onerror",ln),Ut(),we.removeListener("error",qt),ve(we,"error")===0&&we.emit("error",ln)}Oe(we,"error",qt);function $t(){we.removeListener("finish",Wt),Ut()}we.once("close",$t);function Wt(){ue("onfinish"),we.removeListener("close",$t),Ut()}we.once("finish",Wt);function Ut(){ue("unpipe"),Ve.unpipe(we)}return we.emit("pipe",Ve),Ze.flowing||(ue("pipe resume"),Ve.resume()),we};function xt(we){return function(){var Te=we._readableState;ue("pipeOnDrain",Te.awaitDrain),Te.awaitDrain&&Te.awaitDrain--,Te.awaitDrain===0&&ve(we,"data")&&(Te.flowing=!0,mt(we))}}je.prototype.unpipe=function(we){var Te=this._readableState,Ve={hasUnpiped:!1};if(Te.pipesCount===0)return this;if(Te.pipesCount===1)return we&&we!==Te.pipes?this:(we||(we=Te.pipes),Te.pipes=null,Te.pipesCount=0,Te.flowing=!1,we&&we.emit("unpipe",this,Ve),this);if(!we){var Ze=Te.pipes,Ee=Te.pipesCount;Te.pipes=null,Te.pipesCount=0,Te.flowing=!1;for(var Ge=0;Ge<Ee;Ge++)Ze[Ge].emit("unpipe",this,Ve);return this}var He=nt(Te.pipes,we);return He===-1?this:(Te.pipes.splice(He,1),Te.pipesCount-=1,Te.pipesCount===1&&(Te.pipes=Te.pipes[0]),we.emit("unpipe",this,Ve),this)},je.prototype.on=function(we,Te){var Ve=xe.prototype.on.call(this,we,Te);if(we==="data")this._readableState.flowing!==!1&&this.resume();else if(we==="readable"){var Ze=this._readableState;!Ze.endEmitted&&!Ze.readableListening&&(Ze.readableListening=Ze.needReadable=!0,Ze.emittedReadable=!1,Ze.reading?Ze.length&&vt(this):be.nextTick(yt,this))}return Ve},je.prototype.addListener=je.prototype.on;function yt(we){ue("readable nexttick read 0"),we.read(0)}je.prototype.resume=function(){var we=this._readableState;return we.flowing||(ue("resume"),we.flowing=!0,pt(this,we)),this};function pt(we,Te){Te.resumeScheduled||(Te.resumeScheduled=!0,be.nextTick(gt,we,Te))}function gt(we,Te){Te.reading||(ue("resume read 0"),we.read(0)),Te.resumeScheduled=!1,Te.awaitDrain=0,we.emit("resume"),mt(we),Te.flowing&&!Te.reading&&we.read(0)}je.prototype.pause=function(){return ue("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ue("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function mt(we){var Te=we._readableState;for(ue("flow",Te.flowing);Te.flowing&&we.read()!==null;);}je.prototype.wrap=function(we){var Te=this,Ve=this._readableState,Ze=!1;we.on("end",function(){if(ue("wrapped end"),Ve.decoder&&!Ve.ended){var He=Ve.decoder.end();He&&He.length&&Te.push(He)}Te.push(null)}),we.on("data",function(He){if(ue("wrapped data"),Ve.decoder&&(He=Ve.decoder.write(He)),!(Ve.objectMode&&He==null)&&!(!Ve.objectMode&&(!He||!He.length))){var We=Te.push(He);We||(Ze=!0,we.pause())}});for(var Ee in we)this[Ee]===void 0&&typeof we[Ee]=="function"&&(this[Ee]=function(He){return function(){return we[He].apply(we,arguments)}}(Ee));for(var Ge=0;Ge<Ie.length;Ge++)we.on(Ie[Ge],this.emit.bind(this,Ie[Ge]));return this._read=function(He){ue("wrapped _read",He),Ze&&(Ze=!1,we.resume())},this},Object.defineProperty(je.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),je._fromList=Mt;function Mt(we,Te){if(Te.length===0)return null;var Ve;return Te.objectMode?Ve=Te.buffer.shift():!we||we>=Te.length?(Te.decoder?Ve=Te.buffer.join(""):Te.buffer.length===1?Ve=Te.buffer.head.data:Ve=Te.buffer.concat(Te.length),Te.buffer.clear()):Ve=Ct(we,Te.buffer,Te.decoder),Ve}function Ct(we,Te,Ve){var Ze;return we<Te.head.data.length?(Ze=Te.head.data.slice(0,we),Te.head.data=Te.head.data.slice(we)):we===Te.head.data.length?Ze=Te.shift():Ze=Ve?zt(we,Te):St(we,Te),Ze}function zt(we,Te){var Ve=Te.head,Ze=1,Ee=Ve.data;for(we-=Ee.length;Ve=Ve.next;){var Ge=Ve.data,He=we>Ge.length?Ge.length:we;if(He===Ge.length?Ee+=Ge:Ee+=Ge.slice(0,we),we-=He,we===0){He===Ge.length?(++Ze,Ve.next?Te.head=Ve.next:Te.head=Te.tail=null):(Te.head=Ve,Ve.data=Ge.slice(He));break}++Ze}return Te.length-=Ze,Ee}function St(we,Te){var Ve=fe.allocUnsafe(we),Ze=Te.head,Ee=1;for(Ze.data.copy(Ve),we-=Ze.data.length;Ze=Ze.next;){var Ge=Ze.data,He=we>Ge.length?Ge.length:we;if(Ge.copy(Ve,Ve.length-we,0,He),we-=He,we===0){He===Ge.length?(++Ee,Ze.next?Te.head=Ze.next:Te.head=Te.tail=null):(Te.head=Ze,Ze.data=Ge.slice(He));break}++Ee}return Te.length-=Ee,Ve}function bt(we){var Te=we._readableState;if(Te.length>0)throw new Error('"endReadable()" called on non-empty stream');Te.endEmitted||(Te.ended=!0,be.nextTick(at,Te,we))}function at(we,Te){!we.endEmitted&&we.length===0&&(we.endEmitted=!0,Te.readable=!1,Te.emit("end"))}function nt(we,Te){for(var Ve=0,Ze=we.length;Ve<Ze;Ve++)if(we[Ve]===Te)return Ve;return-1}}).call(this)}).call(this,oe("_process"),typeof vn!="undefined"?vn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":386,"./internal/streams/BufferList":391,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,events:344,inherits:364,isarray:370,"process-nextick-args":380,"safe-buffer":396,"string_decoder/":413,util:89}],389:[function(oe,Ue,Fe){"use strict";Ue.exports=Le;var me=oe("./_stream_duplex"),ce=Object.create(oe("core-util-is"));ce.inherits=oe("inherits"),ce.inherits(Le,me);function be(ve,xe){var fe=this._transformState;fe.transforming=!1;var z=fe.writecb;if(!z)return this.emit("error",new Error("write callback called multiple times"));fe.writechunk=null,fe.writecb=null,xe!=null&&this.push(xe),z(ve);var ee=this._readableState;ee.reading=!1,(ee.needReadable||ee.length<ee.highWaterMark)&&this._read(ee.highWaterMark)}function Le(ve){if(!(this instanceof Le))return new Le(ve);me.call(this,ve),this._transformState={afterTransform:be.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,ve&&(typeof ve.transform=="function"&&(this._transform=ve.transform),typeof ve.flush=="function"&&(this._flush=ve.flush)),this.on("prefinish",Se)}function Se(){var ve=this;typeof this._flush=="function"?this._flush(function(xe,fe){ke(ve,xe,fe)}):ke(this,null,null)}Le.prototype.push=function(ve,xe){return this._transformState.needTransform=!1,me.prototype.push.call(this,ve,xe)},Le.prototype._transform=function(ve,xe,fe){throw new Error("_transform() is not implemented")},Le.prototype._write=function(ve,xe,fe){var z=this._transformState;if(z.writecb=fe,z.writechunk=ve,z.writeencoding=xe,!z.transforming){var ee=this._readableState;(z.needTransform||ee.needReadable||ee.length<ee.highWaterMark)&&this._read(ee.highWaterMark)}},Le.prototype._read=function(ve){var xe=this._transformState;xe.writechunk!==null&&xe.writecb&&!xe.transforming?(xe.transforming=!0,this._transform(xe.writechunk,xe.writeencoding,xe.afterTransform)):xe.needTransform=!0},Le.prototype._destroy=function(ve,xe){var fe=this;me.prototype._destroy.call(this,ve,function(z){xe(z),fe.emit("close")})};function ke(ve,xe,fe){if(xe)return ve.emit("error",xe);if(fe!=null&&ve.push(fe),ve._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(ve._transformState.transforming)throw new Error("Calling transform done when still transforming");return ve.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(oe,Ue,Fe){(function(me,ce,be){(function(){"use strict";var Le=oe("process-nextick-args");Ue.exports=Oe;function Se(gt,mt,Mt){this.chunk=gt,this.encoding=mt,this.callback=Mt,this.next=null}function ke(gt){var mt=this;this.next=null,this.entry=null,this.finish=function(){pt(mt,gt)}}var ve=!me.browser&&["v0.10","v0.9."].indexOf(me.version.slice(0,5))>-1?be:Le.nextTick,xe;Oe.WritableState=Pe;var fe=Object.create(oe("core-util-is"));fe.inherits=oe("inherits");var z={deprecate:oe("util-deprecate")},ee=oe("./internal/streams/stream"),ae=oe("safe-buffer").Buffer,re=ce.Uint8Array||function(){};function le(gt){return ae.from(gt)}function ue(gt){return ae.isBuffer(gt)||gt instanceof re}var pe=oe("./internal/streams/destroy");fe.inherits(Oe,ee);function Ce(){}function Pe(gt,mt){xe=xe||oe("./_stream_duplex"),gt=gt||{};var Mt=mt instanceof xe;this.objectMode=!!gt.objectMode,Mt&&(this.objectMode=this.objectMode||!!gt.writableObjectMode);var Ct=gt.highWaterMark,zt=gt.writableHighWaterMark,St=this.objectMode?16:16*1024;Ct||Ct===0?this.highWaterMark=Ct:Mt&&(zt||zt===0)?this.highWaterMark=zt:this.highWaterMark=St,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var bt=gt.decodeStrings===!1;this.decodeStrings=!bt,this.defaultEncoding=gt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(at){et(mt,at)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new ke(this)}Pe.prototype.getBuffer=function(){for(var mt=this.bufferedRequest,Mt=[];mt;)Mt.push(mt),mt=mt.next;return Mt},function(){try{Object.defineProperty(Pe.prototype,"buffer",{get:z.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(gt){}}();var Ie;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ie=Function.prototype[Symbol.hasInstance],Object.defineProperty(Oe,Symbol.hasInstance,{value:function(gt){return Ie.call(this,gt)?!0:this!==Oe?!1:gt&>._writableState instanceof Pe}})):Ie=function(gt){return gt instanceof this};function Oe(gt){if(xe=xe||oe("./_stream_duplex"),!Ie.call(Oe,this)&&!(this instanceof xe))return new Oe(gt);this._writableState=new Pe(gt,this),this.writable=!0,gt&&(typeof gt.write=="function"&&(this._write=gt.write),typeof gt.writev=="function"&&(this._writev=gt.writev),typeof gt.destroy=="function"&&(this._destroy=gt.destroy),typeof gt.final=="function"&&(this._final=gt.final)),ee.call(this)}Oe.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Ae(gt,mt){var Mt=new Error("write after end");gt.emit("error",Mt),Le.nextTick(mt,Mt)}function je(gt,mt,Mt,Ct){var zt=!0,St=!1;return Mt===null?St=new TypeError("May not write null values to stream"):typeof Mt!="string"&&Mt!==void 0&&!mt.objectMode&&(St=new TypeError("Invalid non-string/buffer chunk")),St&&(gt.emit("error",St),Le.nextTick(Ct,St),zt=!1),zt}Oe.prototype.write=function(gt,mt,Mt){var Ct=this._writableState,zt=!1,St=!Ct.objectMode&&ue(gt);return St&&!ae.isBuffer(gt)&&(gt=le(gt)),typeof mt=="function"&&(Mt=mt,mt=null),St?mt="buffer":mt||(mt=Ct.defaultEncoding),typeof Mt!="function"&&(Mt=Ce),Ct.ended?Ae(this,Mt):(St||je(this,Ct,gt,Mt))&&(Ct.pendingcb++,zt=_e(this,Ct,St,gt,mt,Mt)),zt},Oe.prototype.cork=function(){var gt=this._writableState;gt.corked++},Oe.prototype.uncork=function(){var gt=this._writableState;gt.corked&&(gt.corked--,!gt.writing&&!gt.corked&&!gt.finished&&!gt.bufferProcessing&>.bufferedRequest&&vt(this,gt))},Oe.prototype.setDefaultEncoding=function(mt){if(typeof mt=="string"&&(mt=mt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((mt+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+mt);return this._writableState.defaultEncoding=mt,this};function Be(gt,mt,Mt){return!gt.objectMode&>.decodeStrings!==!1&&typeof mt=="string"&&(mt=ae.from(mt,Mt)),mt}Object.defineProperty(Oe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function _e(gt,mt,Mt,Ct,zt,St){if(!Mt){var bt=Be(mt,Ct,zt);Ct!==bt&&(Mt=!0,zt="buffer",Ct=bt)}var at=mt.objectMode?1:Ct.length;mt.length+=at;var nt=mt.length<mt.highWaterMark;if(nt||(mt.needDrain=!0),mt.writing||mt.corked){var we=mt.lastBufferedRequest;mt.lastBufferedRequest={chunk:Ct,encoding:zt,isBuf:Mt,callback:St,next:null},we?we.next=mt.lastBufferedRequest:mt.bufferedRequest=mt.lastBufferedRequest,mt.bufferedRequestCount+=1}else qe(gt,mt,!1,at,Ct,zt,St);return nt}function qe(gt,mt,Mt,Ct,zt,St,bt){mt.writelen=Ct,mt.writecb=bt,mt.writing=!0,mt.sync=!0,Mt?gt._writev(zt,mt.onwrite):gt._write(zt,St,mt.onwrite),mt.sync=!1}function ze(gt,mt,Mt,Ct,zt){--mt.pendingcb,Mt?(Le.nextTick(zt,Ct),Le.nextTick(xt,gt,mt),gt._writableState.errorEmitted=!0,gt.emit("error",Ct)):(zt(Ct),gt._writableState.errorEmitted=!0,gt.emit("error",Ct),xt(gt,mt))}function Ye(gt){gt.writing=!1,gt.writecb=null,gt.length-=gt.writelen,gt.writelen=0}function et(gt,mt){var Mt=gt._writableState,Ct=Mt.sync,zt=Mt.writecb;if(Ye(Mt),mt)ze(gt,Mt,Ct,mt,zt);else{var St=Je(Mt);!St&&!Mt.corked&&!Mt.bufferProcessing&&Mt.bufferedRequest&&vt(gt,Mt),Ct?ve(lt,gt,Mt,St,zt):lt(gt,Mt,St,zt)}}function lt(gt,mt,Mt,Ct){Mt||dt(gt,mt),mt.pendingcb--,Ct(),xt(gt,mt)}function dt(gt,mt){mt.length===0&&mt.needDrain&&(mt.needDrain=!1,gt.emit("drain"))}function vt(gt,mt){mt.bufferProcessing=!0;var Mt=mt.bufferedRequest;if(gt._writev&&Mt&&Mt.next){var Ct=mt.bufferedRequestCount,zt=new Array(Ct),St=mt.corkedRequestsFree;St.entry=Mt;for(var bt=0,at=!0;Mt;)zt[bt]=Mt,Mt.isBuf||(at=!1),Mt=Mt.next,bt+=1;zt.allBuffers=at,qe(gt,mt,!0,mt.length,zt,"",St.finish),mt.pendingcb++,mt.lastBufferedRequest=null,St.next?(mt.corkedRequestsFree=St.next,St.next=null):mt.corkedRequestsFree=new ke(mt),mt.bufferedRequestCount=0}else{for(;Mt;){var nt=Mt.chunk,we=Mt.encoding,Te=Mt.callback,Ve=mt.objectMode?1:nt.length;if(qe(gt,mt,!1,Ve,nt,we,Te),Mt=Mt.next,mt.bufferedRequestCount--,mt.writing)break}Mt===null&&(mt.lastBufferedRequest=null)}mt.bufferedRequest=Mt,mt.bufferProcessing=!1}Oe.prototype._write=function(gt,mt,Mt){Mt(new Error("_write() is not implemented"))},Oe.prototype._writev=null,Oe.prototype.end=function(gt,mt,Mt){var Ct=this._writableState;typeof gt=="function"?(Mt=gt,gt=null,mt=null):typeof mt=="function"&&(Mt=mt,mt=null),gt!=null&&this.write(gt,mt),Ct.corked&&(Ct.corked=1,this.uncork()),!Ct.ending&&!Ct.finished&&yt(this,Ct,Mt)};function Je(gt){return gt.ending&>.length===0&>.bufferedRequest===null&&!gt.finished&&!gt.writing}function ot(gt,mt){gt._final(function(Mt){mt.pendingcb--,Mt&>.emit("error",Mt),mt.prefinished=!0,gt.emit("prefinish"),xt(gt,mt)})}function ft(gt,mt){!mt.prefinished&&!mt.finalCalled&&(typeof gt._final=="function"?(mt.pendingcb++,mt.finalCalled=!0,Le.nextTick(ot,gt,mt)):(mt.prefinished=!0,gt.emit("prefinish")))}function xt(gt,mt){var Mt=Je(mt);return Mt&&(ft(gt,mt),mt.pendingcb===0&&(mt.finished=!0,gt.emit("finish"))),Mt}function yt(gt,mt,Mt){mt.ending=!0,xt(gt,mt),Mt&&(mt.finished?Le.nextTick(Mt):gt.once("finish",Mt)),mt.ended=!0,gt.writable=!1}function pt(gt,mt,Mt){var Ct=gt.entry;for(gt.entry=null;Ct;){var zt=Ct.callback;mt.pendingcb--,zt(Mt),Ct=Ct.next}mt.corkedRequestsFree?mt.corkedRequestsFree.next=gt:mt.corkedRequestsFree=gt}Object.defineProperty(Oe.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(gt){this._writableState&&(this._writableState.destroyed=gt)}}),Oe.prototype.destroy=pe.destroy,Oe.prototype._undestroy=pe.undestroy,Oe.prototype._destroy=function(gt,mt){this.end(),mt(gt)}}).call(this)}).call(this,oe("_process"),typeof vn!="undefined"?vn:typeof self!="undefined"?self:typeof window!="undefined"?window:{},oe("timers").setImmediate)},{"./_stream_duplex":386,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,inherits:364,"process-nextick-args":380,"safe-buffer":396,timers:414,"util-deprecate":416}],391:[function(oe,Ue,Fe){"use strict";function me(Se,ke){if(!(Se instanceof ke))throw new TypeError("Cannot call a class as a function")}var ce=oe("safe-buffer").Buffer,be=oe("util");function Le(Se,ke,ve){Se.copy(ke,ve)}Ue.exports=function(){function Se(){me(this,Se),this.head=null,this.tail=null,this.length=0}return Se.prototype.push=function(ve){var xe={data:ve,next:null};this.length>0?this.tail.next=xe:this.head=xe,this.tail=xe,++this.length},Se.prototype.unshift=function(ve){var xe={data:ve,next:this.head};this.length===0&&(this.tail=xe),this.head=xe,++this.length},Se.prototype.shift=function(){if(this.length!==0){var ve=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,ve}},Se.prototype.clear=function(){this.head=this.tail=null,this.length=0},Se.prototype.join=function(ve){if(this.length===0)return"";for(var xe=this.head,fe=""+xe.data;xe=xe.next;)fe+=ve+xe.data;return fe},Se.prototype.concat=function(ve){if(this.length===0)return ce.alloc(0);if(this.length===1)return this.head.data;for(var xe=ce.allocUnsafe(ve>>>0),fe=this.head,z=0;fe;)Le(fe.data,xe,z),z+=fe.data.length,fe=fe.next;return xe},Se}(),be&&be.inspect&&be.inspect.custom&&(Ue.exports.prototype[be.inspect.custom]=function(){var Se=be.inspect({length:this.length});return this.constructor.name+" "+Se})},{"safe-buffer":396,util:89}],392:[function(oe,Ue,Fe){"use strict";var me=oe("process-nextick-args");function ce(Se,ke){var ve=this,xe=this._readableState&&this._readableState.destroyed,fe=this._writableState&&this._writableState.destroyed;return xe||fe?(ke?ke(Se):Se&&(!this._writableState||!this._writableState.errorEmitted)&&me.nextTick(Le,this,Se),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(Se||null,function(z){!ke&&z?(me.nextTick(Le,ve,z),ve._writableState&&(ve._writableState.errorEmitted=!0)):ke&&ke(z)}),this)}function be(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Le(Se,ke){Se.emit("error",ke)}Ue.exports={destroy:ce,undestroy:be}},{"process-nextick-args":380}],393:[function(oe,Ue,Fe){Ue.exports=oe("events").EventEmitter},{events:344}],394:[function(oe,Ue,Fe){Fe=Ue.exports=oe("./lib/_stream_readable.js"),Fe.Stream=Fe,Fe.Readable=Fe,Fe.Writable=oe("./lib/_stream_writable.js"),Fe.Duplex=oe("./lib/_stream_duplex.js"),Fe.Transform=oe("./lib/_stream_transform.js"),Fe.PassThrough=oe("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":386,"./lib/_stream_passthrough.js":387,"./lib/_stream_readable.js":388,"./lib/_stream_transform.js":389,"./lib/_stream_writable.js":390}],395:[function(oe,Ue,Fe){var me=function(ce){"use strict";var be=Object.prototype,Le=be.hasOwnProperty,Se,ke=typeof Symbol=="function"?Symbol:{},ve=ke.iterator||"@@iterator",xe=ke.asyncIterator||"@@asyncIterator",fe=ke.toStringTag||"@@toStringTag";function z(ft,xt,yt){return Object.defineProperty(ft,xt,{value:yt,enumerable:!0,configurable:!0,writable:!0}),ft[xt]}try{z({},"")}catch(ft){z=function(xt,yt,pt){return xt[yt]=pt}}function ee(ft,xt,yt,pt){var gt=xt&&xt.prototype instanceof Pe?xt:Pe,mt=Object.create(gt.prototype),Mt=new vt(pt||[]);return mt._invoke=Ye(ft,yt,Mt),mt}ce.wrap=ee;function ae(ft,xt,yt){try{return{type:"normal",arg:ft.call(xt,yt)}}catch(pt){return{type:"throw",arg:pt}}}var re="suspendedStart",le="suspendedYield",ue="executing",pe="completed",Ce={};function Pe(){}function Ie(){}function Oe(){}var Ae={};z(Ae,ve,function(){return this});var je=Object.getPrototypeOf,Be=je&&je(je(Je([])));Be&&Be!==be&&Le.call(Be,ve)&&(Ae=Be);var _e=Oe.prototype=Pe.prototype=Object.create(Ae);Ie.prototype=Oe,z(_e,"constructor",Oe),z(Oe,"constructor",Ie),Ie.displayName=z(Oe,fe,"GeneratorFunction");function qe(ft){["next","throw","return"].forEach(function(xt){z(ft,xt,function(yt){return this._invoke(xt,yt)})})}ce.isGeneratorFunction=function(ft){var xt=typeof ft=="function"&&ft.constructor;return xt?xt===Ie||(xt.displayName||xt.name)==="GeneratorFunction":!1},ce.mark=function(ft){return Object.setPrototypeOf?Object.setPrototypeOf(ft,Oe):(ft.__proto__=Oe,z(ft,fe,"GeneratorFunction")),ft.prototype=Object.create(_e),ft},ce.awrap=function(ft){return{__await:ft}};function ze(ft,xt){function yt(mt,Mt,Ct,zt){var St=ae(ft[mt],ft,Mt);if(St.type==="throw")zt(St.arg);else{var bt=St.arg,at=bt.value;return at&&typeof at=="object"&&Le.call(at,"__await")?xt.resolve(at.__await).then(function(nt){yt("next",nt,Ct,zt)},function(nt){yt("throw",nt,Ct,zt)}):xt.resolve(at).then(function(nt){bt.value=nt,Ct(bt)},function(nt){return yt("throw",nt,Ct,zt)})}}var pt;function gt(mt,Mt){function Ct(){return new xt(function(zt,St){yt(mt,Mt,zt,St)})}return pt=pt?pt.then(Ct,Ct):Ct()}this._invoke=gt}qe(ze.prototype),z(ze.prototype,xe,function(){return this}),ce.AsyncIterator=ze,ce.async=function(ft,xt,yt,pt,gt){gt===void 0&&(gt=Promise);var mt=new ze(ee(ft,xt,yt,pt),gt);return ce.isGeneratorFunction(xt)?mt:mt.next().then(function(Mt){return Mt.done?Mt.value:mt.next()})};function Ye(ft,xt,yt){var pt=re;return function(mt,Mt){if(pt===ue)throw new Error("Generator is already running");if(pt===pe){if(mt==="throw")throw Mt;return ot()}for(yt.method=mt,yt.arg=Mt;;){var Ct=yt.delegate;if(Ct){var zt=et(Ct,yt);if(zt){if(zt===Ce)continue;return zt}}if(yt.method==="next")yt.sent=yt._sent=yt.arg;else if(yt.method==="throw"){if(pt===re)throw pt=pe,yt.arg;yt.dispatchException(yt.arg)}else yt.method==="return"&&yt.abrupt("return",yt.arg);pt=ue;var St=ae(ft,xt,yt);if(St.type==="normal"){if(pt=yt.done?pe:le,St.arg===Ce)continue;return{value:St.arg,done:yt.done}}else St.type==="throw"&&(pt=pe,yt.method="throw",yt.arg=St.arg)}}}function et(ft,xt){var yt=ft.iterator[xt.method];if(yt===Se){if(xt.delegate=null,xt.method==="throw"){if(ft.iterator.return&&(xt.method="return",xt.arg=Se,et(ft,xt),xt.method==="throw"))return Ce;xt.method="throw",xt.arg=new TypeError("The iterator does not provide a 'throw' method")}return Ce}var pt=ae(yt,ft.iterator,xt.arg);if(pt.type==="throw")return xt.method="throw",xt.arg=pt.arg,xt.delegate=null,Ce;var gt=pt.arg;if(!gt)return xt.method="throw",xt.arg=new TypeError("iterator result is not an object"),xt.delegate=null,Ce;if(gt.done)xt[ft.resultName]=gt.value,xt.next=ft.nextLoc,xt.method!=="return"&&(xt.method="next",xt.arg=Se);else return gt;return xt.delegate=null,Ce}qe(_e),z(_e,fe,"Generator"),z(_e,ve,function(){return this}),z(_e,"toString",function(){return"[object Generator]"});function lt(ft){var xt={tryLoc:ft[0]};1 in ft&&(xt.catchLoc=ft[1]),2 in ft&&(xt.finallyLoc=ft[2],xt.afterLoc=ft[3]),this.tryEntries.push(xt)}function dt(ft){var xt=ft.completion||{};xt.type="normal",delete xt.arg,ft.completion=xt}function vt(ft){this.tryEntries=[{tryLoc:"root"}],ft.forEach(lt,this),this.reset(!0)}ce.keys=function(ft){var xt=[];for(var yt in ft)xt.push(yt);return xt.reverse(),function pt(){for(;xt.length;){var gt=xt.pop();if(gt in ft)return pt.value=gt,pt.done=!1,pt}return pt.done=!0,pt}};function Je(ft){if(ft){var xt=ft[ve];if(xt)return xt.call(ft);if(typeof ft.next=="function")return ft;if(!isNaN(ft.length)){var yt=-1,pt=function gt(){for(;++yt<ft.length;)if(Le.call(ft,yt))return gt.value=ft[yt],gt.done=!1,gt;return gt.value=Se,gt.done=!0,gt};return pt.next=pt}}return{next:ot}}ce.values=Je;function ot(){return{value:Se,done:!0}}return vt.prototype={constructor:vt,reset:function(ft){if(this.prev=0,this.next=0,this.sent=this._sent=Se,this.done=!1,this.delegate=null,this.method="next",this.arg=Se,this.tryEntries.forEach(dt),!ft)for(var xt in this)xt.charAt(0)==="t"&&Le.call(this,xt)&&!isNaN(+xt.slice(1))&&(this[xt]=Se)},stop:function(){this.done=!0;var ft=this.tryEntries[0],xt=ft.completion;if(xt.type==="throw")throw xt.arg;return this.rval},dispatchException:function(ft){if(this.done)throw ft;var xt=this;function yt(zt,St){return mt.type="throw",mt.arg=ft,xt.next=zt,St&&(xt.method="next",xt.arg=Se),!!St}for(var pt=this.tryEntries.length-1;pt>=0;--pt){var gt=this.tryEntries[pt],mt=gt.completion;if(gt.tryLoc==="root")return yt("end");if(gt.tryLoc<=this.prev){var Mt=Le.call(gt,"catchLoc"),Ct=Le.call(gt,"finallyLoc");if(Mt&&Ct){if(this.prev<gt.catchLoc)return yt(gt.catchLoc,!0);if(this.prev<gt.finallyLoc)return yt(gt.finallyLoc)}else if(Mt){if(this.prev<gt.catchLoc)return yt(gt.catchLoc,!0)}else if(Ct){if(this.prev<gt.finallyLoc)return yt(gt.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(ft,xt){for(var yt=this.tryEntries.length-1;yt>=0;--yt){var pt=this.tryEntries[yt];if(pt.tryLoc<=this.prev&&Le.call(pt,"finallyLoc")&&this.prev<pt.finallyLoc){var gt=pt;break}}gt&&(ft==="break"||ft==="continue")&>.tryLoc<=xt&&xt<=gt.finallyLoc&&(gt=null);var mt=gt?gt.completion:{};return mt.type=ft,mt.arg=xt,gt?(this.method="next",this.next=gt.finallyLoc,Ce):this.complete(mt)},complete:function(ft,xt){if(ft.type==="throw")throw ft.arg;return ft.type==="break"||ft.type==="continue"?this.next=ft.arg:ft.type==="return"?(this.rval=this.arg=ft.arg,this.method="return",this.next="end"):ft.type==="normal"&&xt&&(this.next=xt),Ce},finish:function(ft){for(var xt=this.tryEntries.length-1;xt>=0;--xt){var yt=this.tryEntries[xt];if(yt.finallyLoc===ft)return this.complete(yt.completion,yt.afterLoc),dt(yt),Ce}},catch:function(ft){for(var xt=this.tryEntries.length-1;xt>=0;--xt){var yt=this.tryEntries[xt];if(yt.tryLoc===ft){var pt=yt.completion;if(pt.type==="throw"){var gt=pt.arg;dt(yt)}return gt}}throw new Error("illegal catch attempt")},delegateYield:function(ft,xt,yt){return this.delegate={iterator:Je(ft),resultName:xt,nextLoc:yt},this.method==="next"&&(this.arg=Se),Ce}},ce}(typeof Ue=="object"?Ue.exports:{});try{regeneratorRuntime=me}catch(ce){typeof globalThis=="object"?globalThis.regeneratorRuntime=me:Function("r","regeneratorRuntime = r")(me)}},{}],396:[function(oe,Ue,Fe){var me=oe("buffer"),ce=me.Buffer;function be(Se,ke){for(var ve in Se)ke[ve]=Se[ve]}ce.from&&ce.alloc&&ce.allocUnsafe&&ce.allocUnsafeSlow?Ue.exports=me:(be(me,Fe),Fe.Buffer=Le);function Le(Se,ke,ve){return ce(Se,ke,ve)}be(ce,Le),Le.from=function(Se,ke,ve){if(typeof Se=="number")throw new TypeError("Argument must not be a number");return ce(Se,ke,ve)},Le.alloc=function(Se,ke,ve){if(typeof Se!="number")throw new TypeError("Argument must be a number");var xe=ce(Se);return ke!==void 0?typeof ve=="string"?xe.fill(ke,ve):xe.fill(ke):xe.fill(0),xe},Le.allocUnsafe=function(Se){if(typeof Se!="number")throw new TypeError("Argument must be a number");return ce(Se)},Le.allocUnsafeSlow=function(Se){if(typeof Se!="number")throw new TypeError("Argument must be a number");return me.SlowBuffer(Se)}},{buffer:90}],397:[function(oe,Ue,Fe){(function(me){(function(){(function(ce){ce.parser=function(bt,at){return new Le(bt,at)},ce.SAXParser=Le,ce.SAXStream=ee,ce.createStream=z,ce.MAX_BUFFER_LENGTH=64*1024;var be=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];ce.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function Le(bt,at){if(!(this instanceof Le))return new Le(bt,at);var nt=this;ke(nt),nt.q=nt.c="",nt.bufferCheckPosition=ce.MAX_BUFFER_LENGTH,nt.opt=at||{},nt.opt.lowercase=nt.opt.lowercase||nt.opt.lowercasetags,nt.looseCase=nt.opt.lowercase?"toLowerCase":"toUpperCase",nt.tags=[],nt.closed=nt.closedRoot=nt.sawRoot=!1,nt.tag=nt.error=null,nt.strict=!!bt,nt.noscript=!!(bt||nt.opt.noscript),nt.state=ze.BEGIN,nt.strictEntities=nt.opt.strictEntities,nt.ENTITIES=nt.strictEntities?Object.create(ce.XML_ENTITIES):Object.create(ce.ENTITIES),nt.attribList=[],nt.opt.xmlns&&(nt.ns=Object.create(pe)),nt.trackPosition=nt.opt.position!==!1,nt.trackPosition&&(nt.position=nt.line=nt.column=0),et(nt,"onready")}Object.create||(Object.create=function(bt){function at(){}at.prototype=bt;var nt=new at;return nt}),Object.keys||(Object.keys=function(bt){var at=[];for(var nt in bt)bt.hasOwnProperty(nt)&&at.push(nt);return at});function Se(bt){for(var at=Math.max(ce.MAX_BUFFER_LENGTH,10),nt=0,we=0,Te=be.length;we<Te;we++){var Ve=bt[be[we]].length;if(Ve>at)switch(be[we]){case"textNode":dt(bt);break;case"cdata":lt(bt,"oncdata",bt.cdata),bt.cdata="";break;case"script":lt(bt,"onscript",bt.script),bt.script="";break;default:Je(bt,"Max buffer length exceeded: "+be[we])}nt=Math.max(nt,Ve)}var Ze=ce.MAX_BUFFER_LENGTH-nt;bt.bufferCheckPosition=Ze+bt.position}function ke(bt){for(var at=0,nt=be.length;at<nt;at++)bt[be[at]]=""}function ve(bt){dt(bt),bt.cdata!==""&&(lt(bt,"oncdata",bt.cdata),bt.cdata=""),bt.script!==""&&(lt(bt,"onscript",bt.script),bt.script="")}Le.prototype={end:function(){ot(this)},write:St,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){ve(this)}};var xe;try{xe=oe("stream").Stream}catch(bt){xe=function(){}}var fe=ce.EVENTS.filter(function(bt){return bt!=="error"&&bt!=="end"});function z(bt,at){return new ee(bt,at)}function ee(bt,at){if(!(this instanceof ee))return new ee(bt,at);xe.apply(this),this._parser=new Le(bt,at),this.writable=!0,this.readable=!0;var nt=this;this._parser.onend=function(){nt.emit("end")},this._parser.onerror=function(we){nt.emit("error",we),nt._parser.error=null},this._decoder=null,fe.forEach(function(we){Object.defineProperty(nt,"on"+we,{get:function(){return nt._parser["on"+we]},set:function(Te){if(!Te)return nt.removeAllListeners(we),nt._parser["on"+we]=Te,Te;nt.on(we,Te)},enumerable:!0,configurable:!1})})}ee.prototype=Object.create(xe.prototype,{constructor:{value:ee}}),ee.prototype.write=function(bt){if(typeof me=="function"&&typeof me.isBuffer=="function"&&me.isBuffer(bt)){if(!this._decoder){var at=oe("string_decoder").StringDecoder;this._decoder=new at("utf8")}bt=this._decoder.write(bt)}return this._parser.write(bt.toString()),this.emit("data",bt),!0},ee.prototype.end=function(bt){return bt&&bt.length&&this.write(bt),this._parser.end(),!0},ee.prototype.on=function(bt,at){var nt=this;return!nt._parser["on"+bt]&&fe.indexOf(bt)!==-1&&(nt._parser["on"+bt]=function(){var we=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);we.splice(0,0,bt),nt.emit.apply(nt,we)}),xe.prototype.on.call(nt,bt,at)};var ae="[CDATA[",re="DOCTYPE",le="http://www.w3.org/XML/1998/namespace",ue="http://www.w3.org/2000/xmlns/",pe={xml:le,xmlns:ue},Ce=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Pe=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,Ie=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Oe=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function Ae(bt){return bt===" "||bt===`
|
|
|
`||bt==="\r"||bt===" "}function je(bt){return bt==='"'||bt==="'"}function Be(bt){return bt===">"||Ae(bt)}function _e(bt,at){return bt.test(at)}function qe(bt,at){return!_e(bt,at)}var ze=0;ce.STATE={BEGIN:ze++,BEGIN_WHITESPACE:ze++,TEXT:ze++,TEXT_ENTITY:ze++,OPEN_WAKA:ze++,SGML_DECL:ze++,SGML_DECL_QUOTED:ze++,DOCTYPE:ze++,DOCTYPE_QUOTED:ze++,DOCTYPE_DTD:ze++,DOCTYPE_DTD_QUOTED:ze++,COMMENT_STARTING:ze++,COMMENT:ze++,COMMENT_ENDING:ze++,COMMENT_ENDED:ze++,CDATA:ze++,CDATA_ENDING:ze++,CDATA_ENDING_2:ze++,PROC_INST:ze++,PROC_INST_BODY:ze++,PROC_INST_ENDING:ze++,OPEN_TAG:ze++,OPEN_TAG_SLASH:ze++,ATTRIB:ze++,ATTRIB_NAME:ze++,ATTRIB_NAME_SAW_WHITE:ze++,ATTRIB_VALUE:ze++,ATTRIB_VALUE_QUOTED:ze++,ATTRIB_VALUE_CLOSED:ze++,ATTRIB_VALUE_UNQUOTED:ze++,ATTRIB_VALUE_ENTITY_Q:ze++,ATTRIB_VALUE_ENTITY_U:ze++,CLOSE_TAG:ze++,CLOSE_TAG_SAW_WHITE:ze++,SCRIPT:ze++,SCRIPT_ENDING:ze++},ce.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},ce.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(ce.ENTITIES).forEach(function(bt){var at=ce.ENTITIES[bt],nt=typeof at=="number"?String.fromCharCode(at):at;ce.ENTITIES[bt]=nt});for(var Ye in ce.STATE)ce.STATE[ce.STATE[Ye]]=Ye;ze=ce.STATE;function et(bt,at,nt){bt[at]&&bt[at](nt)}function lt(bt,at,nt){bt.textNode&&dt(bt),et(bt,at,nt)}function dt(bt){bt.textNode=vt(bt.opt,bt.textNode),bt.textNode&&et(bt,"ontext",bt.textNode),bt.textNode=""}function vt(bt,at){return bt.trim&&(at=at.trim()),bt.normalize&&(at=at.replace(/\s+/g," ")),at}function Je(bt,at){return dt(bt),bt.trackPosition&&(at+=`
|
|
|
Line: `+bt.line+`
|
|
|
Column: `+bt.column+`
|
|
|
Char: `+bt.c),at=new Error(at),bt.error=at,et(bt,"onerror",at),bt}function ot(bt){return bt.sawRoot&&!bt.closedRoot&&ft(bt,"Unclosed root tag"),bt.state!==ze.BEGIN&&bt.state!==ze.BEGIN_WHITESPACE&&bt.state!==ze.TEXT&&Je(bt,"Unexpected end"),dt(bt),bt.c="",bt.closed=!0,et(bt,"onend"),Le.call(bt,bt.strict,bt.opt),bt}function ft(bt,at){if(typeof bt!="object"||!(bt instanceof Le))throw new Error("bad call to strictFail");bt.strict&&Je(bt,at)}function xt(bt){bt.strict||(bt.tagName=bt.tagName[bt.looseCase]());var at=bt.tags[bt.tags.length-1]||bt,nt=bt.tag={name:bt.tagName,attributes:{}};bt.opt.xmlns&&(nt.ns=at.ns),bt.attribList.length=0,lt(bt,"onopentagstart",nt)}function yt(bt,at){var nt=bt.indexOf(":"),we=nt<0?["",bt]:bt.split(":"),Te=we[0],Ve=we[1];return at&&bt==="xmlns"&&(Te="xmlns",Ve=""),{prefix:Te,local:Ve}}function pt(bt){if(bt.strict||(bt.attribName=bt.attribName[bt.looseCase]()),bt.attribList.indexOf(bt.attribName)!==-1||bt.tag.attributes.hasOwnProperty(bt.attribName)){bt.attribName=bt.attribValue="";return}if(bt.opt.xmlns){var at=yt(bt.attribName,!0),nt=at.prefix,we=at.local;if(nt==="xmlns")if(we==="xml"&&bt.attribValue!==le)ft(bt,"xml: prefix must be bound to "+le+`
|
|
|
Actual: `+bt.attribValue);else if(we==="xmlns"&&bt.attribValue!==ue)ft(bt,"xmlns: prefix must be bound to "+ue+`
|
|
|
Actual: `+bt.attribValue);else{var Te=bt.tag,Ve=bt.tags[bt.tags.length-1]||bt;Te.ns===Ve.ns&&(Te.ns=Object.create(Ve.ns)),Te.ns[we]=bt.attribValue}bt.attribList.push([bt.attribName,bt.attribValue])}else bt.tag.attributes[bt.attribName]=bt.attribValue,lt(bt,"onattribute",{name:bt.attribName,value:bt.attribValue});bt.attribName=bt.attribValue=""}function gt(bt,at){if(bt.opt.xmlns){var nt=bt.tag,we=yt(bt.tagName);nt.prefix=we.prefix,nt.local=we.local,nt.uri=nt.ns[we.prefix]||"",nt.prefix&&!nt.uri&&(ft(bt,"Unbound namespace prefix: "+JSON.stringify(bt.tagName)),nt.uri=we.prefix);var Te=bt.tags[bt.tags.length-1]||bt;nt.ns&&Te.ns!==nt.ns&&Object.keys(nt.ns).forEach(function(It){lt(bt,"onopennamespace",{prefix:It,uri:nt.ns[It]})});for(var Ve=0,Ze=bt.attribList.length;Ve<Ze;Ve++){var Ee=bt.attribList[Ve],Ge=Ee[0],He=Ee[1],We=yt(Ge,!0),Xe=We.prefix,ct=We.local,Et=Xe===""?"":nt.ns[Xe]||"",ht={name:Ge,value:He,prefix:Xe,local:ct,uri:Et};Xe&&Xe!=="xmlns"&&!Et&&(ft(bt,"Unbound namespace prefix: "+JSON.stringify(Xe)),ht.uri=Xe),bt.tag.attributes[Ge]=ht,lt(bt,"onattribute",ht)}bt.attribList.length=0}bt.tag.isSelfClosing=!!at,bt.sawRoot=!0,bt.tags.push(bt.tag),lt(bt,"onopentag",bt.tag),at||(!bt.noscript&&bt.tagName.toLowerCase()==="script"?bt.state=ze.SCRIPT:bt.state=ze.TEXT,bt.tag=null,bt.tagName=""),bt.attribName=bt.attribValue="",bt.attribList.length=0}function mt(bt){if(!bt.tagName){ft(bt,"Weird empty close tag."),bt.textNode+="</>",bt.state=ze.TEXT;return}if(bt.script){if(bt.tagName!=="script"){bt.script+="</"+bt.tagName+">",bt.tagName="",bt.state=ze.SCRIPT;return}lt(bt,"onscript",bt.script),bt.script=""}var at=bt.tags.length,nt=bt.tagName;bt.strict||(nt=nt[bt.looseCase]());for(var we=nt;at--;){var Te=bt.tags[at];if(Te.name!==we)ft(bt,"Unexpected close tag");else break}if(at<0){ft(bt,"Unmatched closing tag: "+bt.tagName),bt.textNode+="</"+bt.tagName+">",bt.state=ze.TEXT;return}bt.tagName=nt;for(var Ve=bt.tags.length;Ve-- >at;){var Ze=bt.tag=bt.tags.pop();bt.tagName=bt.tag.name,lt(bt,"onclosetag",bt.tagName);var Ee={};for(var Ge in Ze.ns)Ee[Ge]=Ze.ns[Ge];var He=bt.tags[bt.tags.length-1]||bt;bt.opt.xmlns&&Ze.ns!==He.ns&&Object.keys(Ze.ns).forEach(function(We){var Xe=Ze.ns[We];lt(bt,"onclosenamespace",{prefix:We,uri:Xe})})}at===0&&(bt.closedRoot=!0),bt.tagName=bt.attribValue=bt.attribName="",bt.attribList.length=0,bt.state=ze.TEXT}function Mt(bt){var at=bt.entity,nt=at.toLowerCase(),we,Te="";return bt.ENTITIES[at]?bt.ENTITIES[at]:bt.ENTITIES[nt]?bt.ENTITIES[nt]:(at=nt,at.charAt(0)==="#"&&(at.charAt(1)==="x"?(at=at.slice(2),we=parseInt(at,16),Te=we.toString(16)):(at=at.slice(1),we=parseInt(at,10),Te=we.toString(10))),at=at.replace(/^0+/,""),isNaN(we)||Te.toLowerCase()!==at?(ft(bt,"Invalid character entity"),"&"+bt.entity+";"):String.fromCodePoint(we))}function Ct(bt,at){at==="<"?(bt.state=ze.OPEN_WAKA,bt.startTagPosition=bt.position):Ae(at)||(ft(bt,"Non-whitespace before first tag."),bt.textNode=at,bt.state=ze.TEXT)}function zt(bt,at){var nt="";return at<bt.length&&(nt=bt.charAt(at)),nt}function St(bt){var at=this;if(this.error)throw this.error;if(at.closed)return Je(at,"Cannot write after close. Assign an onready handler.");if(bt===null)return ot(at);typeof bt=="object"&&(bt=bt.toString());for(var nt=0,we="";we=zt(bt,nt++),at.c=we,!!we;)switch(at.trackPosition&&(at.position++,we===`
|
|
|
`?(at.line++,at.column=0):at.column++),at.state){case ze.BEGIN:if(at.state=ze.BEGIN_WHITESPACE,we==="\uFEFF")continue;Ct(at,we);continue;case ze.BEGIN_WHITESPACE:Ct(at,we);continue;case ze.TEXT:if(at.sawRoot&&!at.closedRoot){for(var Te=nt-1;we&&we!=="<"&&we!=="&";)we=zt(bt,nt++),we&&at.trackPosition&&(at.position++,we===`
|
|
|
`?(at.line++,at.column=0):at.column++);at.textNode+=bt.substring(Te,nt-1)}we==="<"&&!(at.sawRoot&&at.closedRoot&&!at.strict)?(at.state=ze.OPEN_WAKA,at.startTagPosition=at.position):(!Ae(we)&&(!at.sawRoot||at.closedRoot)&&ft(at,"Text data outside of root node."),we==="&"?at.state=ze.TEXT_ENTITY:at.textNode+=we);continue;case ze.SCRIPT:we==="<"?at.state=ze.SCRIPT_ENDING:at.script+=we;continue;case ze.SCRIPT_ENDING:we==="/"?at.state=ze.CLOSE_TAG:(at.script+="<"+we,at.state=ze.SCRIPT);continue;case ze.OPEN_WAKA:if(we==="!")at.state=ze.SGML_DECL,at.sgmlDecl="";else if(!Ae(we))if(_e(Ce,we))at.state=ze.OPEN_TAG,at.tagName=we;else if(we==="/")at.state=ze.CLOSE_TAG,at.tagName="";else if(we==="?")at.state=ze.PROC_INST,at.procInstName=at.procInstBody="";else{if(ft(at,"Unencoded <"),at.startTagPosition+1<at.position){var Ve=at.position-at.startTagPosition;we=new Array(Ve).join(" ")+we}at.textNode+="<"+we,at.state=ze.TEXT}continue;case ze.SGML_DECL:(at.sgmlDecl+we).toUpperCase()===ae?(lt(at,"onopencdata"),at.state=ze.CDATA,at.sgmlDecl="",at.cdata=""):at.sgmlDecl+we==="--"?(at.state=ze.COMMENT,at.comment="",at.sgmlDecl=""):(at.sgmlDecl+we).toUpperCase()===re?(at.state=ze.DOCTYPE,(at.doctype||at.sawRoot)&&ft(at,"Inappropriately located doctype declaration"),at.doctype="",at.sgmlDecl=""):we===">"?(lt(at,"onsgmldeclaration",at.sgmlDecl),at.sgmlDecl="",at.state=ze.TEXT):(je(we)&&(at.state=ze.SGML_DECL_QUOTED),at.sgmlDecl+=we);continue;case ze.SGML_DECL_QUOTED:we===at.q&&(at.state=ze.SGML_DECL,at.q=""),at.sgmlDecl+=we;continue;case ze.DOCTYPE:we===">"?(at.state=ze.TEXT,lt(at,"ondoctype",at.doctype),at.doctype=!0):(at.doctype+=we,we==="["?at.state=ze.DOCTYPE_DTD:je(we)&&(at.state=ze.DOCTYPE_QUOTED,at.q=we));continue;case ze.DOCTYPE_QUOTED:at.doctype+=we,we===at.q&&(at.q="",at.state=ze.DOCTYPE);continue;case ze.DOCTYPE_DTD:at.doctype+=we,we==="]"?at.state=ze.DOCTYPE:je(we)&&(at.state=ze.DOCTYPE_DTD_QUOTED,at.q=we);continue;case ze.DOCTYPE_DTD_QUOTED:at.doctype+=we,we===at.q&&(at.state=ze.DOCTYPE_DTD,at.q="");continue;case ze.COMMENT:we==="-"?at.state=ze.COMMENT_ENDING:at.comment+=we;continue;case ze.COMMENT_ENDING:we==="-"?(at.state=ze.COMMENT_ENDED,at.comment=vt(at.opt,at.comment),at.comment&<(at,"oncomment",at.comment),at.comment=""):(at.comment+="-"+we,at.state=ze.COMMENT);continue;case ze.COMMENT_ENDED:we!==">"?(ft(at,"Malformed comment"),at.comment+="--"+we,at.state=ze.COMMENT):at.state=ze.TEXT;continue;case ze.CDATA:we==="]"?at.state=ze.CDATA_ENDING:at.cdata+=we;continue;case ze.CDATA_ENDING:we==="]"?at.state=ze.CDATA_ENDING_2:(at.cdata+="]"+we,at.state=ze.CDATA);continue;case ze.CDATA_ENDING_2:we===">"?(at.cdata&<(at,"oncdata",at.cdata),lt(at,"onclosecdata"),at.cdata="",at.state=ze.TEXT):we==="]"?at.cdata+="]":(at.cdata+="]]"+we,at.state=ze.CDATA);continue;case ze.PROC_INST:we==="?"?at.state=ze.PROC_INST_ENDING:Ae(we)?at.state=ze.PROC_INST_BODY:at.procInstName+=we;continue;case ze.PROC_INST_BODY:if(!at.procInstBody&&Ae(we))continue;we==="?"?at.state=ze.PROC_INST_ENDING:at.procInstBody+=we;continue;case ze.PROC_INST_ENDING:we===">"?(lt(at,"onprocessinginstruction",{name:at.procInstName,body:at.procInstBody}),at.procInstName=at.procInstBody="",at.state=ze.TEXT):(at.procInstBody+="?"+we,at.state=ze.PROC_INST_BODY);continue;case ze.OPEN_TAG:_e(Pe,we)?at.tagName+=we:(xt(at),we===">"?gt(at):we==="/"?at.state=ze.OPEN_TAG_SLASH:(Ae(we)||ft(at,"Invalid character in tag name"),at.state=ze.ATTRIB));continue;case ze.OPEN_TAG_SLASH:we===">"?(gt(at,!0),mt(at)):(ft(at,"Forward-slash in opening tag not followed by >"),at.state=ze.ATTRIB);continue;case ze.ATTRIB:if(Ae(we))continue;we===">"?gt(at):we==="/"?at.state=ze.OPEN_TAG_SLASH:_e(Ce,we)?(at.attribName=we,at.attribValue="",at.state=ze.ATTRIB_NAME):ft(at,"Invalid attribute name");continue;case ze.ATTRIB_NAME:we==="="?at.state=ze.ATTRIB_VALUE:we===">"?(ft(at,"Attribute without value"),at.attribValue=at.attribName,pt(at),gt(at)):Ae(we)?at.state=ze.ATTRIB_NAME_SAW_WHITE:_e(Pe,we)?at.attribName+=we:ft(at,"Invalid attribute name");continue;case ze.ATTRIB_NAME_SAW_WHITE:if(we==="=")at.state=ze.ATTRIB_VALUE;else{if(Ae(we))continue;ft(at,"Attribute without value"),at.tag.attributes[at.attribName]="",at.attribValue="",lt(at,"onattribute",{name:at.attribName,value:""}),at.attribName="",we===">"?gt(at):_e(Ce,we)?(at.attribName=we,at.state=ze.ATTRIB_NAME):(ft(at,"Invalid attribute name"),at.state=ze.ATTRIB)}continue;case ze.ATTRIB_VALUE:if(Ae(we))continue;je(we)?(at.q=we,at.state=ze.ATTRIB_VALUE_QUOTED):(ft(at,"Unquoted attribute value"),at.state=ze.ATTRIB_VALUE_UNQUOTED,at.attribValue=we);continue;case ze.ATTRIB_VALUE_QUOTED:if(we!==at.q){we==="&"?at.state=ze.ATTRIB_VALUE_ENTITY_Q:at.attribValue+=we;continue}pt(at),at.q="",at.state=ze.ATTRIB_VALUE_CLOSED;continue;case ze.ATTRIB_VALUE_CLOSED:Ae(we)?at.state=ze.ATTRIB:we===">"?gt(at):we==="/"?at.state=ze.OPEN_TAG_SLASH:_e(Ce,we)?(ft(at,"No whitespace between attributes"),at.attribName=we,at.attribValue="",at.state=ze.ATTRIB_NAME):ft(at,"Invalid attribute name");continue;case ze.ATTRIB_VALUE_UNQUOTED:if(!Be(we)){we==="&"?at.state=ze.ATTRIB_VALUE_ENTITY_U:at.attribValue+=we;continue}pt(at),we===">"?gt(at):at.state=ze.ATTRIB;continue;case ze.CLOSE_TAG:if(at.tagName)we===">"?mt(at):_e(Pe,we)?at.tagName+=we:at.script?(at.script+="</"+at.tagName,at.tagName="",at.state=ze.SCRIPT):(Ae(we)||ft(at,"Invalid tagname in closing tag"),at.state=ze.CLOSE_TAG_SAW_WHITE);else{if(Ae(we))continue;qe(Ce,we)?at.script?(at.script+="</"+we,at.state=ze.SCRIPT):ft(at,"Invalid tagname in closing tag."):at.tagName=we}continue;case ze.CLOSE_TAG_SAW_WHITE:if(Ae(we))continue;we===">"?mt(at):ft(at,"Invalid characters in closing tag");continue;case ze.TEXT_ENTITY:case ze.ATTRIB_VALUE_ENTITY_Q:case ze.ATTRIB_VALUE_ENTITY_U:var Ze,Ee;switch(at.state){case ze.TEXT_ENTITY:Ze=ze.TEXT,Ee="textNode";break;case ze.ATTRIB_VALUE_ENTITY_Q:Ze=ze.ATTRIB_VALUE_QUOTED,Ee="attribValue";break;case ze.ATTRIB_VALUE_ENTITY_U:Ze=ze.ATTRIB_VALUE_UNQUOTED,Ee="attribValue";break}we===";"?(at[Ee]+=Mt(at),at.entity="",at.state=Ze):_e(at.entity.length?Oe:Ie,we)?at.entity+=we:(ft(at,"Invalid character in entity name"),at[Ee]+="&"+at.entity+we,at.entity="",at.state=Ze);continue;default:throw new Error(at,"Unknown state: "+at.state)}return at.position>=at.bufferCheckPosition&&Se(at),at}String.fromCodePoint||function(){var bt=String.fromCharCode,at=Math.floor,nt=function(){var we=16384,Te=[],Ve,Ze,Ee=-1,Ge=arguments.length;if(!Ge)return"";for(var He="";++Ee<Ge;){var We=Number(arguments[Ee]);if(!isFinite(We)||We<0||We>1114111||at(We)!==We)throw RangeError("Invalid code point: "+We);We<=65535?Te.push(We):(We-=65536,Ve=(We>>10)+55296,Ze=We%1024+56320,Te.push(Ve,Ze)),(Ee+1===Ge||Te.length>we)&&(He+=bt.apply(null,Te),Te.length=0)}return He};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:nt,configurable:!0,writable:!0}):String.fromCodePoint=nt}()})(typeof Fe=="undefined"?this.sax={}:Fe)}).call(this)}).call(this,oe("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(oe,Ue,Fe){Ue.exports=be;var me=oe("events").EventEmitter,ce=oe("inherits");ce(be,me),be.Readable=oe("readable-stream/lib/_stream_readable.js"),be.Writable=oe("readable-stream/lib/_stream_writable.js"),be.Duplex=oe("readable-stream/lib/_stream_duplex.js"),be.Transform=oe("readable-stream/lib/_stream_transform.js"),be.PassThrough=oe("readable-stream/lib/_stream_passthrough.js"),be.finished=oe("readable-stream/lib/internal/streams/end-of-stream.js"),be.pipeline=oe("readable-stream/lib/internal/streams/pipeline.js"),be.Stream=be;function be(){me.call(this)}be.prototype.pipe=function(Le,Se){var ke=this;function ve(le){Le.writable&&Le.write(le)===!1&&ke.pause&&ke.pause()}ke.on("data",ve);function xe(){ke.readable&&ke.resume&&ke.resume()}Le.on("drain",xe),!Le._isStdio&&(!Se||Se.end!==!1)&&(ke.on("end",z),ke.on("close",ee));var fe=!1;function z(){fe||(fe=!0,Le.end())}function ee(){fe||(fe=!0,typeof Le.destroy=="function"&&Le.destroy())}function ae(le){if(re(),me.listenerCount(this,"error")===0)throw le}ke.on("error",ae),Le.on("error",ae);function re(){ke.removeListener("data",ve),Le.removeListener("drain",xe),ke.removeListener("end",z),ke.removeListener("close",ee),ke.removeListener("error",ae),Le.removeListener("error",ae),ke.removeListener("end",re),ke.removeListener("close",re),Le.removeListener("close",re)}return ke.on("end",re),ke.on("close",re),Le.on("close",re),Le.emit("pipe",ke),Le}},{events:344,inherits:364,"readable-stream/lib/_stream_duplex.js":400,"readable-stream/lib/_stream_passthrough.js":401,"readable-stream/lib/_stream_readable.js":402,"readable-stream/lib/_stream_transform.js":403,"readable-stream/lib/_stream_writable.js":404,"readable-stream/lib/internal/streams/end-of-stream.js":408,"readable-stream/lib/internal/streams/pipeline.js":410}],399:[function(oe,Ue,Fe){"use strict";function me(xe,fe){xe.prototype=Object.create(fe.prototype),xe.prototype.constructor=xe,xe.__proto__=fe}var ce={};function be(xe,fe,z){z||(z=Error);function ee(re,le,ue){return typeof fe=="string"?fe:fe(re,le,ue)}var ae=function(re){me(le,re);function le(ue,pe,Ce){return re.call(this,ee(ue,pe,Ce))||this}return le}(z);ae.prototype.name=z.name,ae.prototype.code=xe,ce[xe]=ae}function Le(xe,fe){if(Array.isArray(xe)){var z=xe.length;return xe=xe.map(function(ee){return String(ee)}),z>2?"one of ".concat(fe," ").concat(xe.slice(0,z-1).join(", "),", or ")+xe[z-1]:z===2?"one of ".concat(fe," ").concat(xe[0]," or ").concat(xe[1]):"of ".concat(fe," ").concat(xe[0])}else return"of ".concat(fe," ").concat(String(xe))}function Se(xe,fe,z){return xe.substr(!z||z<0?0:+z,fe.length)===fe}function ke(xe,fe,z){return(z===void 0||z>xe.length)&&(z=xe.length),xe.substring(z-fe.length,z)===fe}function ve(xe,fe,z){return typeof z!="number"&&(z=0),z+fe.length>xe.length?!1:xe.indexOf(fe,z)!==-1}be("ERR_INVALID_OPT_VALUE",function(xe,fe){return'The value "'+fe+'" is invalid for option "'+xe+'"'},TypeError),be("ERR_INVALID_ARG_TYPE",function(xe,fe,z){var ee;typeof fe=="string"&&Se(fe,"not ")?(ee="must not be",fe=fe.replace(/^not /,"")):ee="must be";var ae;if(ke(xe," argument"))ae="The ".concat(xe," ").concat(ee," ").concat(Le(fe,"type"));else{var re=ve(xe,".")?"property":"argument";ae='The "'.concat(xe,'" ').concat(re," ").concat(ee," ").concat(Le(fe,"type"))}return ae+=". Received type ".concat(typeof z),ae},TypeError),be("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),be("ERR_METHOD_NOT_IMPLEMENTED",function(xe){return"The "+xe+" method is not implemented"}),be("ERR_STREAM_PREMATURE_CLOSE","Premature close"),be("ERR_STREAM_DESTROYED",function(xe){return"Cannot call "+xe+" after a stream was destroyed"}),be("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),be("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),be("ERR_STREAM_WRITE_AFTER_END","write after end"),be("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),be("ERR_UNKNOWN_ENCODING",function(xe){return"Unknown encoding: "+xe},TypeError),be("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ue.exports.codes=ce},{}],400:[function(oe,Ue,Fe){(function(me){(function(){"use strict";var ce=Object.keys||function(ee){var ae=[];for(var re in ee)ae.push(re);return ae};Ue.exports=xe;var be=oe("./_stream_readable"),Le=oe("./_stream_writable");oe("inherits")(xe,be);for(var Se=ce(Le.prototype),ke=0;ke<Se.length;ke++){var ve=Se[ke];xe.prototype[ve]||(xe.prototype[ve]=Le.prototype[ve])}function xe(ee){if(!(this instanceof xe))return new xe(ee);be.call(this,ee),Le.call(this,ee),this.allowHalfOpen=!0,ee&&(ee.readable===!1&&(this.readable=!1),ee.writable===!1&&(this.writable=!1),ee.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",fe)))}Object.defineProperty(xe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(xe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(xe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function fe(){this._writableState.ended||me.nextTick(z,this)}function z(ee){ee.end()}Object.defineProperty(xe.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(ae){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=ae,this._writableState.destroyed=ae)}})}).call(this)}).call(this,oe("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(oe,Ue,Fe){"use strict";Ue.exports=ce;var me=oe("./_stream_transform");oe("inherits")(ce,me);function ce(be){if(!(this instanceof ce))return new ce(be);me.call(this,be)}ce.prototype._transform=function(be,Le,Se){Se(null,be)}},{"./_stream_transform":403,inherits:364}],402:[function(oe,Ue,Fe){(function(me,ce){(function(){"use strict";Ue.exports=lt;var be;lt.ReadableState=et;var Le=oe("events").EventEmitter,Se=function(Ge,He){return Ge.listeners(He).length},ke=oe("./internal/streams/stream"),ve=oe("buffer").Buffer,xe=(typeof ce!="undefined"?ce:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function fe(Ee){return ve.from(Ee)}function z(Ee){return ve.isBuffer(Ee)||Ee instanceof xe}var ee=oe("util"),ae;ee&&ee.debuglog?ae=ee.debuglog("stream"):ae=function(){};var re=oe("./internal/streams/buffer_list"),le=oe("./internal/streams/destroy"),ue=oe("./internal/streams/state"),pe=ue.getHighWaterMark,Ce=oe("../errors").codes,Pe=Ce.ERR_INVALID_ARG_TYPE,Ie=Ce.ERR_STREAM_PUSH_AFTER_EOF,Oe=Ce.ERR_METHOD_NOT_IMPLEMENTED,Ae=Ce.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,je,Be,_e;oe("inherits")(lt,ke);var qe=le.errorOrDestroy,ze=["error","close","destroy","pause","resume"];function Ye(Ee,Ge,He){if(typeof Ee.prependListener=="function")return Ee.prependListener(Ge,He);!Ee._events||!Ee._events[Ge]?Ee.on(Ge,He):Array.isArray(Ee._events[Ge])?Ee._events[Ge].unshift(He):Ee._events[Ge]=[He,Ee._events[Ge]]}function et(Ee,Ge,He){be=be||oe("./_stream_duplex"),Ee=Ee||{},typeof He!="boolean"&&(He=Ge instanceof be),this.objectMode=!!Ee.objectMode,He&&(this.objectMode=this.objectMode||!!Ee.readableObjectMode),this.highWaterMark=pe(this,Ee,"readableHighWaterMark",He),this.buffer=new re,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=Ee.emitClose!==!1,this.autoDestroy=!!Ee.autoDestroy,this.destroyed=!1,this.defaultEncoding=Ee.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Ee.encoding&&(je||(je=oe("string_decoder/").StringDecoder),this.decoder=new je(Ee.encoding),this.encoding=Ee.encoding)}function lt(Ee){if(be=be||oe("./_stream_duplex"),!(this instanceof lt))return new lt(Ee);var Ge=this instanceof be;this._readableState=new et(Ee,this,Ge),this.readable=!0,Ee&&(typeof Ee.read=="function"&&(this._read=Ee.read),typeof Ee.destroy=="function"&&(this._destroy=Ee.destroy)),ke.call(this)}Object.defineProperty(lt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Ge){this._readableState&&(this._readableState.destroyed=Ge)}}),lt.prototype.destroy=le.destroy,lt.prototype._undestroy=le.undestroy,lt.prototype._destroy=function(Ee,Ge){Ge(Ee)},lt.prototype.push=function(Ee,Ge){var He=this._readableState,We;return He.objectMode?We=!0:typeof Ee=="string"&&(Ge=Ge||He.defaultEncoding,Ge!==He.encoding&&(Ee=ve.from(Ee,Ge),Ge=""),We=!0),dt(this,Ee,Ge,!1,We)},lt.prototype.unshift=function(Ee){return dt(this,Ee,null,!0,!1)};function dt(Ee,Ge,He,We,Xe){ae("readableAddChunk",Ge);var ct=Ee._readableState;if(Ge===null)ct.reading=!1,yt(Ee,ct);else{var Et;if(Xe||(Et=Je(ct,Ge)),Et)qe(Ee,Et);else if(ct.objectMode||Ge&&Ge.length>0)if(typeof Ge!="string"&&!ct.objectMode&&Object.getPrototypeOf(Ge)!==ve.prototype&&(Ge=fe(Ge)),We)ct.endEmitted?qe(Ee,new Ae):vt(Ee,ct,Ge,!0);else if(ct.ended)qe(Ee,new Ie);else{if(ct.destroyed)return!1;ct.reading=!1,ct.decoder&&!He?(Ge=ct.decoder.write(Ge),ct.objectMode||Ge.length!==0?vt(Ee,ct,Ge,!1):mt(Ee,ct)):vt(Ee,ct,Ge,!1)}else We||(ct.reading=!1,mt(Ee,ct))}return!ct.ended&&(ct.length<ct.highWaterMark||ct.length===0)}function vt(Ee,Ge,He,We){Ge.flowing&&Ge.length===0&&!Ge.sync?(Ge.awaitDrain=0,Ee.emit("data",He)):(Ge.length+=Ge.objectMode?1:He.length,We?Ge.buffer.unshift(He):Ge.buffer.push(He),Ge.needReadable&&pt(Ee)),mt(Ee,Ge)}function Je(Ee,Ge){var He;return!z(Ge)&&typeof Ge!="string"&&Ge!==void 0&&!Ee.objectMode&&(He=new Pe("chunk",["string","Buffer","Uint8Array"],Ge)),He}lt.prototype.isPaused=function(){return this._readableState.flowing===!1},lt.prototype.setEncoding=function(Ee){je||(je=oe("string_decoder/").StringDecoder);var Ge=new je(Ee);this._readableState.decoder=Ge,this._readableState.encoding=this._readableState.decoder.encoding;for(var He=this._readableState.buffer.head,We="";He!==null;)We+=Ge.write(He.data),He=He.next;return this._readableState.buffer.clear(),We!==""&&this._readableState.buffer.push(We),this._readableState.length=We.length,this};var ot=1073741824;function ft(Ee){return Ee>=ot?Ee=ot:(Ee--,Ee|=Ee>>>1,Ee|=Ee>>>2,Ee|=Ee>>>4,Ee|=Ee>>>8,Ee|=Ee>>>16,Ee++),Ee}function xt(Ee,Ge){return Ee<=0||Ge.length===0&&Ge.ended?0:Ge.objectMode?1:Ee!==Ee?Ge.flowing&&Ge.length?Ge.buffer.head.data.length:Ge.length:(Ee>Ge.highWaterMark&&(Ge.highWaterMark=ft(Ee)),Ee<=Ge.length?Ee:Ge.ended?Ge.length:(Ge.needReadable=!0,0))}lt.prototype.read=function(Ee){ae("read",Ee),Ee=parseInt(Ee,10);var Ge=this._readableState,He=Ee;if(Ee!==0&&(Ge.emittedReadable=!1),Ee===0&&Ge.needReadable&&((Ge.highWaterMark!==0?Ge.length>=Ge.highWaterMark:Ge.length>0)||Ge.ended))return ae("read: emitReadable",Ge.length,Ge.ended),Ge.length===0&&Ge.ended?Te(this):pt(this),null;if(Ee=xt(Ee,Ge),Ee===0&&Ge.ended)return Ge.length===0&&Te(this),null;var We=Ge.needReadable;ae("need readable",We),(Ge.length===0||Ge.length-Ee<Ge.highWaterMark)&&(We=!0,ae("length less than watermark",We)),Ge.ended||Ge.reading?(We=!1,ae("reading or ended",We)):We&&(ae("do read"),Ge.reading=!0,Ge.sync=!0,Ge.length===0&&(Ge.needReadable=!0),this._read(Ge.highWaterMark),Ge.sync=!1,Ge.reading||(Ee=xt(He,Ge)));var Xe;return Ee>0?Xe=we(Ee,Ge):Xe=null,Xe===null?(Ge.needReadable=Ge.length<=Ge.highWaterMark,Ee=0):(Ge.length-=Ee,Ge.awaitDrain=0),Ge.length===0&&(Ge.ended||(Ge.needReadable=!0),He!==Ee&&Ge.ended&&Te(this)),Xe!==null&&this.emit("data",Xe),Xe};function yt(Ee,Ge){if(ae("onEofChunk"),!Ge.ended){if(Ge.decoder){var He=Ge.decoder.end();He&&He.length&&(Ge.buffer.push(He),Ge.length+=Ge.objectMode?1:He.length)}Ge.ended=!0,Ge.sync?pt(Ee):(Ge.needReadable=!1,Ge.emittedReadable||(Ge.emittedReadable=!0,gt(Ee)))}}function pt(Ee){var Ge=Ee._readableState;ae("emitReadable",Ge.needReadable,Ge.emittedReadable),Ge.needReadable=!1,Ge.emittedReadable||(ae("emitReadable",Ge.flowing),Ge.emittedReadable=!0,me.nextTick(gt,Ee))}function gt(Ee){var Ge=Ee._readableState;ae("emitReadable_",Ge.destroyed,Ge.length,Ge.ended),!Ge.destroyed&&(Ge.length||Ge.ended)&&(Ee.emit("readable"),Ge.emittedReadable=!1),Ge.needReadable=!Ge.flowing&&!Ge.ended&&Ge.length<=Ge.highWaterMark,nt(Ee)}function mt(Ee,Ge){Ge.readingMore||(Ge.readingMore=!0,me.nextTick(Mt,Ee,Ge))}function Mt(Ee,Ge){for(;!Ge.reading&&!Ge.ended&&(Ge.length<Ge.highWaterMark||Ge.flowing&&Ge.length===0);){var He=Ge.length;if(ae("maybeReadMore read 0"),Ee.read(0),He===Ge.length)break}Ge.readingMore=!1}lt.prototype._read=function(Ee){qe(this,new Oe("_read()"))},lt.prototype.pipe=function(Ee,Ge){var He=this,We=this._readableState;switch(We.pipesCount){case 0:We.pipes=Ee;break;case 1:We.pipes=[We.pipes,Ee];break;default:We.pipes.push(Ee);break}We.pipesCount+=1,ae("pipe count=%d opts=%j",We.pipesCount,Ge);var Xe=(!Ge||Ge.end!==!1)&&Ee!==me.stdout&&Ee!==me.stderr,ct=Xe?ht:Xt;We.endEmitted?me.nextTick(ct):He.once("end",ct),Ee.on("unpipe",Et);function Et(tn,dn){ae("onunpipe"),tn===He&&dn&&dn.hasUnpiped===!1&&(dn.hasUnpiped=!0,$t())}function ht(){ae("onend"),Ee.end()}var It=Ct(He);Ee.on("drain",It);var qt=!1;function $t(){ae("cleanup"),Ee.removeListener("close",ln),Ee.removeListener("finish",kt),Ee.removeListener("drain",It),Ee.removeListener("error",Ut),Ee.removeListener("unpipe",Et),He.removeListener("end",ht),He.removeListener("end",Xt),He.removeListener("data",Wt),qt=!0,We.awaitDrain&&(!Ee._writableState||Ee._writableState.needDrain)&&It()}He.on("data",Wt);function Wt(tn){ae("ondata");var dn=Ee.write(tn);ae("dest.write",dn),dn===!1&&((We.pipesCount===1&&We.pipes===Ee||We.pipesCount>1&&Ze(We.pipes,Ee)!==-1)&&!qt&&(ae("false write response, pause",We.awaitDrain),We.awaitDrain++),He.pause())}function Ut(tn){ae("onerror",tn),Xt(),Ee.removeListener("error",Ut),Se(Ee,"error")===0&&qe(Ee,tn)}Ye(Ee,"error",Ut);function ln(){Ee.removeListener("finish",kt),Xt()}Ee.once("close",ln);function kt(){ae("onfinish"),Ee.removeListener("close",ln),Xt()}Ee.once("finish",kt);function Xt(){ae("unpipe"),He.unpipe(Ee)}return Ee.emit("pipe",He),We.flowing||(ae("pipe resume"),He.resume()),Ee};function Ct(Ee){return function(){var He=Ee._readableState;ae("pipeOnDrain",He.awaitDrain),He.awaitDrain&&He.awaitDrain--,He.awaitDrain===0&&Se(Ee,"data")&&(He.flowing=!0,nt(Ee))}}lt.prototype.unpipe=function(Ee){var Ge=this._readableState,He={hasUnpiped:!1};if(Ge.pipesCount===0)return this;if(Ge.pipesCount===1)return Ee&&Ee!==Ge.pipes?this:(Ee||(Ee=Ge.pipes),Ge.pipes=null,Ge.pipesCount=0,Ge.flowing=!1,Ee&&Ee.emit("unpipe",this,He),this);if(!Ee){var We=Ge.pipes,Xe=Ge.pipesCount;Ge.pipes=null,Ge.pipesCount=0,Ge.flowing=!1;for(var ct=0;ct<Xe;ct++)We[ct].emit("unpipe",this,{hasUnpiped:!1});return this}var Et=Ze(Ge.pipes,Ee);return Et===-1?this:(Ge.pipes.splice(Et,1),Ge.pipesCount-=1,Ge.pipesCount===1&&(Ge.pipes=Ge.pipes[0]),Ee.emit("unpipe",this,He),this)},lt.prototype.on=function(Ee,Ge){var He=ke.prototype.on.call(this,Ee,Ge),We=this._readableState;return Ee==="data"?(We.readableListening=this.listenerCount("readable")>0,We.flowing!==!1&&this.resume()):Ee==="readable"&&!We.endEmitted&&!We.readableListening&&(We.readableListening=We.needReadable=!0,We.flowing=!1,We.emittedReadable=!1,ae("on readable",We.length,We.reading),We.length?pt(this):We.reading||me.nextTick(St,this)),He},lt.prototype.addListener=lt.prototype.on,lt.prototype.removeListener=function(Ee,Ge){var He=ke.prototype.removeListener.call(this,Ee,Ge);return Ee==="readable"&&me.nextTick(zt,this),He},lt.prototype.removeAllListeners=function(Ee){var Ge=ke.prototype.removeAllListeners.apply(this,arguments);return(Ee==="readable"||Ee===void 0)&&me.nextTick(zt,this),Ge};function zt(Ee){var Ge=Ee._readableState;Ge.readableListening=Ee.listenerCount("readable")>0,Ge.resumeScheduled&&!Ge.paused?Ge.flowing=!0:Ee.listenerCount("data")>0&&Ee.resume()}function St(Ee){ae("readable nexttick read 0"),Ee.read(0)}lt.prototype.resume=function(){var Ee=this._readableState;return Ee.flowing||(ae("resume"),Ee.flowing=!Ee.readableListening,bt(this,Ee)),Ee.paused=!1,this};function bt(Ee,Ge){Ge.resumeScheduled||(Ge.resumeScheduled=!0,me.nextTick(at,Ee,Ge))}function at(Ee,Ge){ae("resume",Ge.reading),Ge.reading||Ee.read(0),Ge.resumeScheduled=!1,Ee.emit("resume"),nt(Ee),Ge.flowing&&!Ge.reading&&Ee.read(0)}lt.prototype.pause=function(){return ae("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ae("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function nt(Ee){var Ge=Ee._readableState;for(ae("flow",Ge.flowing);Ge.flowing&&Ee.read()!==null;);}lt.prototype.wrap=function(Ee){var Ge=this,He=this._readableState,We=!1;Ee.on("end",function(){if(ae("wrapped end"),He.decoder&&!He.ended){var Et=He.decoder.end();Et&&Et.length&&Ge.push(Et)}Ge.push(null)}),Ee.on("data",function(Et){if(ae("wrapped data"),He.decoder&&(Et=He.decoder.write(Et)),!(He.objectMode&&Et==null)&&!(!He.objectMode&&(!Et||!Et.length))){var ht=Ge.push(Et);ht||(We=!0,Ee.pause())}});for(var Xe in Ee)this[Xe]===void 0&&typeof Ee[Xe]=="function"&&(this[Xe]=function(ht){return function(){return Ee[ht].apply(Ee,arguments)}}(Xe));for(var ct=0;ct<ze.length;ct++)Ee.on(ze[ct],this.emit.bind(this,ze[ct]));return this._read=function(Et){ae("wrapped _read",Et),We&&(We=!1,Ee.resume())},this},typeof Symbol=="function"&&(lt.prototype[Symbol.asyncIterator]=function(){return Be===void 0&&(Be=oe("./internal/streams/async_iterator")),Be(this)}),Object.defineProperty(lt.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(lt.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(lt.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Ge){this._readableState&&(this._readableState.flowing=Ge)}}),lt._fromList=we,Object.defineProperty(lt.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function we(Ee,Ge){if(Ge.length===0)return null;var He;return Ge.objectMode?He=Ge.buffer.shift():!Ee||Ee>=Ge.length?(Ge.decoder?He=Ge.buffer.join(""):Ge.buffer.length===1?He=Ge.buffer.first():He=Ge.buffer.concat(Ge.length),Ge.buffer.clear()):He=Ge.buffer.consume(Ee,Ge.decoder),He}function Te(Ee){var Ge=Ee._readableState;ae("endReadable",Ge.endEmitted),Ge.endEmitted||(Ge.ended=!0,me.nextTick(Ve,Ge,Ee))}function Ve(Ee,Ge){if(ae("endReadableNT",Ee.endEmitted,Ee.length),!Ee.endEmitted&&Ee.length===0&&(Ee.endEmitted=!0,Ge.readable=!1,Ge.emit("end"),Ee.autoDestroy)){var He=Ge._writableState;(!He||He.autoDestroy&&He.finished)&&Ge.destroy()}}typeof Symbol=="function"&&(lt.from=function(Ee,Ge){return _e===void 0&&(_e=oe("./internal/streams/from")),_e(lt,Ee,Ge)});function Ze(Ee,Ge){for(var He=0,We=Ee.length;He<We;He++)if(Ee[He]===Ge)return He;return-1}}).call(this)}).call(this,oe("_process"),typeof vn!="undefined"?vn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/async_iterator":405,"./internal/streams/buffer_list":406,"./internal/streams/destroy":407,"./internal/streams/from":409,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,events:344,inherits:364,"string_decoder/":413,util:89}],403:[function(oe,Ue,Fe){"use strict";Ue.exports=xe;var me=oe("../errors").codes,ce=me.ERR_METHOD_NOT_IMPLEMENTED,be=me.ERR_MULTIPLE_CALLBACK,Le=me.ERR_TRANSFORM_ALREADY_TRANSFORMING,Se=me.ERR_TRANSFORM_WITH_LENGTH_0,ke=oe("./_stream_duplex");oe("inherits")(xe,ke);function ve(ee,ae){var re=this._transformState;re.transforming=!1;var le=re.writecb;if(le===null)return this.emit("error",new be);re.writechunk=null,re.writecb=null,ae!=null&&this.push(ae),le(ee);var ue=this._readableState;ue.reading=!1,(ue.needReadable||ue.length<ue.highWaterMark)&&this._read(ue.highWaterMark)}function xe(ee){if(!(this instanceof xe))return new xe(ee);ke.call(this,ee),this._transformState={afterTransform:ve.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,ee&&(typeof ee.transform=="function"&&(this._transform=ee.transform),typeof ee.flush=="function"&&(this._flush=ee.flush)),this.on("prefinish",fe)}function fe(){var ee=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(ae,re){z(ee,ae,re)}):z(this,null,null)}xe.prototype.push=function(ee,ae){return this._transformState.needTransform=!1,ke.prototype.push.call(this,ee,ae)},xe.prototype._transform=function(ee,ae,re){re(new ce("_transform()"))},xe.prototype._write=function(ee,ae,re){var le=this._transformState;if(le.writecb=re,le.writechunk=ee,le.writeencoding=ae,!le.transforming){var ue=this._readableState;(le.needTransform||ue.needReadable||ue.length<ue.highWaterMark)&&this._read(ue.highWaterMark)}},xe.prototype._read=function(ee){var ae=this._transformState;ae.writechunk!==null&&!ae.transforming?(ae.transforming=!0,this._transform(ae.writechunk,ae.writeencoding,ae.afterTransform)):ae.needTransform=!0},xe.prototype._destroy=function(ee,ae){ke.prototype._destroy.call(this,ee,function(re){ae(re)})};function z(ee,ae,re){if(ae)return ee.emit("error",ae);if(re!=null&&ee.push(re),ee._writableState.length)throw new Se;if(ee._transformState.transforming)throw new Le;return ee.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(oe,Ue,Fe){(function(me,ce){(function(){"use strict";Ue.exports=et;function be(nt,we,Te){this.chunk=nt,this.encoding=we,this.callback=Te,this.next=null}function Le(nt){var we=this;this.next=null,this.entry=null,this.finish=function(){at(we,nt)}}var Se;et.WritableState=ze;var ke={deprecate:oe("util-deprecate")},ve=oe("./internal/streams/stream"),xe=oe("buffer").Buffer,fe=(typeof ce!="undefined"?ce:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function z(nt){return xe.from(nt)}function ee(nt){return xe.isBuffer(nt)||nt instanceof fe}var ae=oe("./internal/streams/destroy"),re=oe("./internal/streams/state"),le=re.getHighWaterMark,ue=oe("../errors").codes,pe=ue.ERR_INVALID_ARG_TYPE,Ce=ue.ERR_METHOD_NOT_IMPLEMENTED,Pe=ue.ERR_MULTIPLE_CALLBACK,Ie=ue.ERR_STREAM_CANNOT_PIPE,Oe=ue.ERR_STREAM_DESTROYED,Ae=ue.ERR_STREAM_NULL_VALUES,je=ue.ERR_STREAM_WRITE_AFTER_END,Be=ue.ERR_UNKNOWN_ENCODING,_e=ae.errorOrDestroy;oe("inherits")(et,ve);function qe(){}function ze(nt,we,Te){Se=Se||oe("./_stream_duplex"),nt=nt||{},typeof Te!="boolean"&&(Te=we instanceof Se),this.objectMode=!!nt.objectMode,Te&&(this.objectMode=this.objectMode||!!nt.writableObjectMode),this.highWaterMark=le(this,nt,"writableHighWaterMark",Te),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Ve=nt.decodeStrings===!1;this.decodeStrings=!Ve,this.defaultEncoding=nt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ze){yt(we,Ze)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=nt.emitClose!==!1,this.autoDestroy=!!nt.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Le(this)}ze.prototype.getBuffer=function(){for(var we=this.bufferedRequest,Te=[];we;)Te.push(we),we=we.next;return Te},function(){try{Object.defineProperty(ze.prototype,"buffer",{get:ke.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(nt){}}();var Ye;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ye=Function.prototype[Symbol.hasInstance],Object.defineProperty(et,Symbol.hasInstance,{value:function(we){return Ye.call(this,we)?!0:this!==et?!1:we&&we._writableState instanceof ze}})):Ye=function(we){return we instanceof this};function et(nt){Se=Se||oe("./_stream_duplex");var we=this instanceof Se;if(!we&&!Ye.call(et,this))return new et(nt);this._writableState=new ze(nt,this,we),this.writable=!0,nt&&(typeof nt.write=="function"&&(this._write=nt.write),typeof nt.writev=="function"&&(this._writev=nt.writev),typeof nt.destroy=="function"&&(this._destroy=nt.destroy),typeof nt.final=="function"&&(this._final=nt.final)),ve.call(this)}et.prototype.pipe=function(){_e(this,new Ie)};function lt(nt,we){var Te=new je;_e(nt,Te),me.nextTick(we,Te)}function dt(nt,we,Te,Ve){var Ze;return Te===null?Ze=new Ae:typeof Te!="string"&&!we.objectMode&&(Ze=new pe("chunk",["string","Buffer"],Te)),Ze?(_e(nt,Ze),me.nextTick(Ve,Ze),!1):!0}et.prototype.write=function(nt,we,Te){var Ve=this._writableState,Ze=!1,Ee=!Ve.objectMode&&ee(nt);return Ee&&!xe.isBuffer(nt)&&(nt=z(nt)),typeof we=="function"&&(Te=we,we=null),Ee?we="buffer":we||(we=Ve.defaultEncoding),typeof Te!="function"&&(Te=qe),Ve.ending?lt(this,Te):(Ee||dt(this,Ve,nt,Te))&&(Ve.pendingcb++,Ze=Je(this,Ve,Ee,nt,we,Te)),Ze},et.prototype.cork=function(){this._writableState.corked++},et.prototype.uncork=function(){var nt=this._writableState;nt.corked&&(nt.corked--,!nt.writing&&!nt.corked&&!nt.bufferProcessing&&nt.bufferedRequest&&mt(this,nt))},et.prototype.setDefaultEncoding=function(we){if(typeof we=="string"&&(we=we.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((we+"").toLowerCase())>-1))throw new Be(we);return this._writableState.defaultEncoding=we,this},Object.defineProperty(et.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function vt(nt,we,Te){return!nt.objectMode&&nt.decodeStrings!==!1&&typeof we=="string"&&(we=xe.from(we,Te)),we}Object.defineProperty(et.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Je(nt,we,Te,Ve,Ze,Ee){if(!Te){var Ge=vt(we,Ve,Ze);Ve!==Ge&&(Te=!0,Ze="buffer",Ve=Ge)}var He=we.objectMode?1:Ve.length;we.length+=He;var We=we.length<we.highWaterMark;if(We||(we.needDrain=!0),we.writing||we.corked){var Xe=we.lastBufferedRequest;we.lastBufferedRequest={chunk:Ve,encoding:Ze,isBuf:Te,callback:Ee,next:null},Xe?Xe.next=we.lastBufferedRequest:we.bufferedRequest=we.lastBufferedRequest,we.bufferedRequestCount+=1}else ot(nt,we,!1,He,Ve,Ze,Ee);return We}function ot(nt,we,Te,Ve,Ze,Ee,Ge){we.writelen=Ve,we.writecb=Ge,we.writing=!0,we.sync=!0,we.destroyed?we.onwrite(new Oe("write")):Te?nt._writev(Ze,we.onwrite):nt._write(Ze,Ee,we.onwrite),we.sync=!1}function ft(nt,we,Te,Ve,Ze){--we.pendingcb,Te?(me.nextTick(Ze,Ve),me.nextTick(St,nt,we),nt._writableState.errorEmitted=!0,_e(nt,Ve)):(Ze(Ve),nt._writableState.errorEmitted=!0,_e(nt,Ve),St(nt,we))}function xt(nt){nt.writing=!1,nt.writecb=null,nt.length-=nt.writelen,nt.writelen=0}function yt(nt,we){var Te=nt._writableState,Ve=Te.sync,Ze=Te.writecb;if(typeof Ze!="function")throw new Pe;if(xt(Te),we)ft(nt,Te,Ve,we,Ze);else{var Ee=Mt(Te)||nt.destroyed;!Ee&&!Te.corked&&!Te.bufferProcessing&&Te.bufferedRequest&&mt(nt,Te),Ve?me.nextTick(pt,nt,Te,Ee,Ze):pt(nt,Te,Ee,Ze)}}function pt(nt,we,Te,Ve){Te||gt(nt,we),we.pendingcb--,Ve(),St(nt,we)}function gt(nt,we){we.length===0&&we.needDrain&&(we.needDrain=!1,nt.emit("drain"))}function mt(nt,we){we.bufferProcessing=!0;var Te=we.bufferedRequest;if(nt._writev&&Te&&Te.next){var Ve=we.bufferedRequestCount,Ze=new Array(Ve),Ee=we.corkedRequestsFree;Ee.entry=Te;for(var Ge=0,He=!0;Te;)Ze[Ge]=Te,Te.isBuf||(He=!1),Te=Te.next,Ge+=1;Ze.allBuffers=He,ot(nt,we,!0,we.length,Ze,"",Ee.finish),we.pendingcb++,we.lastBufferedRequest=null,Ee.next?(we.corkedRequestsFree=Ee.next,Ee.next=null):we.corkedRequestsFree=new Le(we),we.bufferedRequestCount=0}else{for(;Te;){var We=Te.chunk,Xe=Te.encoding,ct=Te.callback,Et=we.objectMode?1:We.length;if(ot(nt,we,!1,Et,We,Xe,ct),Te=Te.next,we.bufferedRequestCount--,we.writing)break}Te===null&&(we.lastBufferedRequest=null)}we.bufferedRequest=Te,we.bufferProcessing=!1}et.prototype._write=function(nt,we,Te){Te(new Ce("_write()"))},et.prototype._writev=null,et.prototype.end=function(nt,we,Te){var Ve=this._writableState;return typeof nt=="function"?(Te=nt,nt=null,we=null):typeof we=="function"&&(Te=we,we=null),nt!=null&&this.write(nt,we),Ve.corked&&(Ve.corked=1,this.uncork()),Ve.ending||bt(this,Ve,Te),this},Object.defineProperty(et.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Mt(nt){return nt.ending&&nt.length===0&&nt.bufferedRequest===null&&!nt.finished&&!nt.writing}function Ct(nt,we){nt._final(function(Te){we.pendingcb--,Te&&_e(nt,Te),we.prefinished=!0,nt.emit("prefinish"),St(nt,we)})}function zt(nt,we){!we.prefinished&&!we.finalCalled&&(typeof nt._final=="function"&&!we.destroyed?(we.pendingcb++,we.finalCalled=!0,me.nextTick(Ct,nt,we)):(we.prefinished=!0,nt.emit("prefinish")))}function St(nt,we){var Te=Mt(we);if(Te&&(zt(nt,we),we.pendingcb===0&&(we.finished=!0,nt.emit("finish"),we.autoDestroy))){var Ve=nt._readableState;(!Ve||Ve.autoDestroy&&Ve.endEmitted)&&nt.destroy()}return Te}function bt(nt,we,Te){we.ending=!0,St(nt,we),Te&&(we.finished?me.nextTick(Te):nt.once("finish",Te)),we.ended=!0,nt.writable=!1}function at(nt,we,Te){var Ve=nt.entry;for(nt.entry=null;Ve;){var Ze=Ve.callback;we.pendingcb--,Ze(Te),Ve=Ve.next}we.corkedRequestsFree.next=nt}Object.defineProperty(et.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(we){this._writableState&&(this._writableState.destroyed=we)}}),et.prototype.destroy=ae.destroy,et.prototype._undestroy=ae.undestroy,et.prototype._destroy=function(nt,we){we(nt)}}).call(this)}).call(this,oe("_process"),typeof vn!="undefined"?vn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/destroy":407,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,inherits:364,"util-deprecate":416}],405:[function(oe,Ue,Fe){(function(me){(function(){"use strict";var ce;function be(Ae,je,Be){return je=Le(je),je in Ae?Object.defineProperty(Ae,je,{value:Be,enumerable:!0,configurable:!0,writable:!0}):Ae[je]=Be,Ae}function Le(Ae){var je=Se(Ae,"string");return typeof je=="symbol"?je:String(je)}function Se(Ae,je){if(typeof Ae!="object"||Ae===null)return Ae;var Be=Ae[Symbol.toPrimitive];if(Be!==void 0){var _e=Be.call(Ae,je||"default");if(typeof _e!="object")return _e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(je==="string"?String:Number)(Ae)}var ke=oe("./end-of-stream"),ve=Symbol("lastResolve"),xe=Symbol("lastReject"),fe=Symbol("error"),z=Symbol("ended"),ee=Symbol("lastPromise"),ae=Symbol("handlePromise"),re=Symbol("stream");function le(Ae,je){return{value:Ae,done:je}}function ue(Ae){var je=Ae[ve];if(je!==null){var Be=Ae[re].read();Be!==null&&(Ae[ee]=null,Ae[ve]=null,Ae[xe]=null,je(le(Be,!1)))}}function pe(Ae){me.nextTick(ue,Ae)}function Ce(Ae,je){return function(Be,_e){Ae.then(function(){if(je[z]){Be(le(void 0,!0));return}je[ae](Be,_e)},_e)}}var Pe=Object.getPrototypeOf(function(){}),Ie=Object.setPrototypeOf((ce={get stream(){return this[re]},next:function(){var je=this,Be=this[fe];if(Be!==null)return Promise.reject(Be);if(this[z])return Promise.resolve(le(void 0,!0));if(this[re].destroyed)return new Promise(function(Ye,et){me.nextTick(function(){je[fe]?et(je[fe]):Ye(le(void 0,!0))})});var _e=this[ee],qe;if(_e)qe=new Promise(Ce(_e,this));else{var ze=this[re].read();if(ze!==null)return Promise.resolve(le(ze,!1));qe=new Promise(this[ae])}return this[ee]=qe,qe}},be(ce,Symbol.asyncIterator,function(){return this}),be(ce,"return",function(){var je=this;return new Promise(function(Be,_e){je[re].destroy(null,function(qe){if(qe){_e(qe);return}Be(le(void 0,!0))})})}),ce),Pe),Oe=function(je){var Be,_e=Object.create(Ie,(Be={},be(Be,re,{value:je,writable:!0}),be(Be,ve,{value:null,writable:!0}),be(Be,xe,{value:null,writable:!0}),be(Be,fe,{value:null,writable:!0}),be(Be,z,{value:je._readableState.endEmitted,writable:!0}),be(Be,ae,{value:function(ze,Ye){var et=_e[re].read();et?(_e[ee]=null,_e[ve]=null,_e[xe]=null,ze(le(et,!1))):(_e[ve]=ze,_e[xe]=Ye)},writable:!0}),Be));return _e[ee]=null,ke(je,function(qe){if(qe&&qe.code!=="ERR_STREAM_PREMATURE_CLOSE"){var ze=_e[xe];ze!==null&&(_e[ee]=null,_e[ve]=null,_e[xe]=null,ze(qe)),_e[fe]=qe;return}var Ye=_e[ve];Ye!==null&&(_e[ee]=null,_e[ve]=null,_e[xe]=null,Ye(le(void 0,!0))),_e[z]=!0}),je.on("readable",pe.bind(null,_e)),_e};Ue.exports=Oe}).call(this)}).call(this,oe("_process"))},{"./end-of-stream":408,_process:467}],406:[function(oe,Ue,Fe){"use strict";function me(ue,pe){var Ce=Object.keys(ue);if(Object.getOwnPropertySymbols){var Pe=Object.getOwnPropertySymbols(ue);pe&&(Pe=Pe.filter(function(Ie){return Object.getOwnPropertyDescriptor(ue,Ie).enumerable})),Ce.push.apply(Ce,Pe)}return Ce}function ce(ue){for(var pe=1;pe<arguments.length;pe++){var Ce=arguments[pe]!=null?arguments[pe]:{};pe%2?me(Object(Ce),!0).forEach(function(Pe){be(ue,Pe,Ce[Pe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ue,Object.getOwnPropertyDescriptors(Ce)):me(Object(Ce)).forEach(function(Pe){Object.defineProperty(ue,Pe,Object.getOwnPropertyDescriptor(Ce,Pe))})}return ue}function be(ue,pe,Ce){return pe=ve(pe),pe in ue?Object.defineProperty(ue,pe,{value:Ce,enumerable:!0,configurable:!0,writable:!0}):ue[pe]=Ce,ue}function Le(ue,pe){if(!(ue instanceof pe))throw new TypeError("Cannot call a class as a function")}function Se(ue,pe){for(var Ce=0;Ce<pe.length;Ce++){var Pe=pe[Ce];Pe.enumerable=Pe.enumerable||!1,Pe.configurable=!0,"value"in Pe&&(Pe.writable=!0),Object.defineProperty(ue,ve(Pe.key),Pe)}}function ke(ue,pe,Ce){return pe&&Se(ue.prototype,pe),Ce&&Se(ue,Ce),Object.defineProperty(ue,"prototype",{writable:!1}),ue}function ve(ue){var pe=xe(ue,"string");return typeof pe=="symbol"?pe:String(pe)}function xe(ue,pe){if(typeof ue!="object"||ue===null)return ue;var Ce=ue[Symbol.toPrimitive];if(Ce!==void 0){var Pe=Ce.call(ue,pe||"default");if(typeof Pe!="object")return Pe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(pe==="string"?String:Number)(ue)}var fe=oe("buffer"),z=fe.Buffer,ee=oe("util"),ae=ee.inspect,re=ae&&ae.custom||"inspect";function le(ue,pe,Ce){z.prototype.copy.call(ue,pe,Ce)}Ue.exports=function(){function ue(){Le(this,ue),this.head=null,this.tail=null,this.length=0}return ke(ue,[{key:"push",value:function(Ce){var Pe={data:Ce,next:null};this.length>0?this.tail.next=Pe:this.head=Pe,this.tail=Pe,++this.length}},{key:"unshift",value:function(Ce){var Pe={data:Ce,next:this.head};this.length===0&&(this.tail=Pe),this.head=Pe,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Ce=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Ce}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Ce){if(this.length===0)return"";for(var Pe=this.head,Ie=""+Pe.data;Pe=Pe.next;)Ie+=Ce+Pe.data;return Ie}},{key:"concat",value:function(Ce){if(this.length===0)return z.alloc(0);for(var Pe=z.allocUnsafe(Ce>>>0),Ie=this.head,Oe=0;Ie;)le(Ie.data,Pe,Oe),Oe+=Ie.data.length,Ie=Ie.next;return Pe}},{key:"consume",value:function(Ce,Pe){var Ie;return Ce<this.head.data.length?(Ie=this.head.data.slice(0,Ce),this.head.data=this.head.data.slice(Ce)):Ce===this.head.data.length?Ie=this.shift():Ie=Pe?this._getString(Ce):this._getBuffer(Ce),Ie}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(Ce){var Pe=this.head,Ie=1,Oe=Pe.data;for(Ce-=Oe.length;Pe=Pe.next;){var Ae=Pe.data,je=Ce>Ae.length?Ae.length:Ce;if(je===Ae.length?Oe+=Ae:Oe+=Ae.slice(0,Ce),Ce-=je,Ce===0){je===Ae.length?(++Ie,Pe.next?this.head=Pe.next:this.head=this.tail=null):(this.head=Pe,Pe.data=Ae.slice(je));break}++Ie}return this.length-=Ie,Oe}},{key:"_getBuffer",value:function(Ce){var Pe=z.allocUnsafe(Ce),Ie=this.head,Oe=1;for(Ie.data.copy(Pe),Ce-=Ie.data.length;Ie=Ie.next;){var Ae=Ie.data,je=Ce>Ae.length?Ae.length:Ce;if(Ae.copy(Pe,Pe.length-Ce,0,je),Ce-=je,Ce===0){je===Ae.length?(++Oe,Ie.next?this.head=Ie.next:this.head=this.tail=null):(this.head=Ie,Ie.data=Ae.slice(je));break}++Oe}return this.length-=Oe,Pe}},{key:re,value:function(Ce,Pe){return ae(this,ce(ce({},Pe),{},{depth:0,customInspect:!1}))}}]),ue}()},{buffer:90,util:89}],407:[function(oe,Ue,Fe){(function(me){(function(){"use strict";function ce(xe,fe){var z=this,ee=this._readableState&&this._readableState.destroyed,ae=this._writableState&&this._writableState.destroyed;return ee||ae?(fe?fe(xe):xe&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,me.nextTick(ke,this,xe)):me.nextTick(ke,this,xe)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(xe||null,function(re){!fe&&re?z._writableState?z._writableState.errorEmitted?me.nextTick(Le,z):(z._writableState.errorEmitted=!0,me.nextTick(be,z,re)):me.nextTick(be,z,re):fe?(me.nextTick(Le,z),fe(re)):me.nextTick(Le,z)}),this)}function be(xe,fe){ke(xe,fe),Le(xe)}function Le(xe){xe._writableState&&!xe._writableState.emitClose||xe._readableState&&!xe._readableState.emitClose||xe.emit("close")}function Se(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ke(xe,fe){xe.emit("error",fe)}function ve(xe,fe){var z=xe._readableState,ee=xe._writableState;z&&z.autoDestroy||ee&&ee.autoDestroy?xe.destroy(fe):xe.emit("error",fe)}Ue.exports={destroy:ce,undestroy:Se,errorOrDestroy:ve}}).call(this)}).call(this,oe("_process"))},{_process:467}],408:[function(oe,Ue,Fe){"use strict";var me=oe("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function ce(ke){var ve=!1;return function(){if(!ve){ve=!0;for(var xe=arguments.length,fe=new Array(xe),z=0;z<xe;z++)fe[z]=arguments[z];ke.apply(this,fe)}}}function be(){}function Le(ke){return ke.setHeader&&typeof ke.abort=="function"}function Se(ke,ve,xe){if(typeof ve=="function")return Se(ke,null,ve);ve||(ve={}),xe=ce(xe||be);var fe=ve.readable||ve.readable!==!1&&ke.readable,z=ve.writable||ve.writable!==!1&&ke.writable,ee=function(){ke.writable||re()},ae=ke._writableState&&ke._writableState.finished,re=function(){z=!1,ae=!0,fe||xe.call(ke)},le=ke._readableState&&ke._readableState.endEmitted,ue=function(){fe=!1,le=!0,z||xe.call(ke)},pe=function(Oe){xe.call(ke,Oe)},Ce=function(){var Oe;if(fe&&!le)return(!ke._readableState||!ke._readableState.ended)&&(Oe=new me),xe.call(ke,Oe);if(z&&!ae)return(!ke._writableState||!ke._writableState.ended)&&(Oe=new me),xe.call(ke,Oe)},Pe=function(){ke.req.on("finish",re)};return Le(ke)?(ke.on("complete",re),ke.on("abort",Ce),ke.req?Pe():ke.on("request",Pe)):z&&!ke._writableState&&(ke.on("end",ee),ke.on("close",ee)),ke.on("end",ue),ke.on("finish",re),ve.error!==!1&&ke.on("error",pe),ke.on("close",Ce),function(){ke.removeListener("complete",re),ke.removeListener("abort",Ce),ke.removeListener("request",Pe),ke.req&&ke.req.removeListener("finish",re),ke.removeListener("end",ee),ke.removeListener("close",ee),ke.removeListener("finish",re),ke.removeListener("end",ue),ke.removeListener("error",pe),ke.removeListener("close",Ce)}}Ue.exports=Se},{"../../../errors":399}],409:[function(oe,Ue,Fe){Ue.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(oe,Ue,Fe){"use strict";var me;function ce(re){var le=!1;return function(){le||(le=!0,re.apply(void 0,arguments))}}var be=oe("../../../errors").codes,Le=be.ERR_MISSING_ARGS,Se=be.ERR_STREAM_DESTROYED;function ke(re){if(re)throw re}function ve(re){return re.setHeader&&typeof re.abort=="function"}function xe(re,le,ue,pe){pe=ce(pe);var Ce=!1;re.on("close",function(){Ce=!0}),me===void 0&&(me=oe("./end-of-stream")),me(re,{readable:le,writable:ue},function(Ie){if(Ie)return pe(Ie);Ce=!0,pe()});var Pe=!1;return function(Ie){if(!Ce&&!Pe){if(Pe=!0,ve(re))return re.abort();if(typeof re.destroy=="function")return re.destroy();pe(Ie||new Se("pipe"))}}}function fe(re){re()}function z(re,le){return re.pipe(le)}function ee(re){return!re.length||typeof re[re.length-1]!="function"?ke:re.pop()}function ae(){for(var re=arguments.length,le=new Array(re),ue=0;ue<re;ue++)le[ue]=arguments[ue];var pe=ee(le);if(Array.isArray(le[0])&&(le=le[0]),le.length<2)throw new Le("streams");var Ce,Pe=le.map(function(Ie,Oe){var Ae=Oe<le.length-1,je=Oe>0;return xe(Ie,Ae,je,function(Be){Ce||(Ce=Be),Be&&Pe.forEach(fe),!Ae&&(Pe.forEach(fe),pe(Ce))})});return le.reduce(z)}Ue.exports=ae},{"../../../errors":399,"./end-of-stream":408}],411:[function(oe,Ue,Fe){"use strict";var me=oe("../../../errors").codes.ERR_INVALID_OPT_VALUE;function ce(Le,Se,ke){return Le.highWaterMark!=null?Le.highWaterMark:Se?Le[ke]:null}function be(Le,Se,ke,ve){var xe=ce(Se,ve,ke);if(xe!=null){if(!(isFinite(xe)&&Math.floor(xe)===xe)||xe<0){var fe=ve?ke:"highWaterMark";throw new me(fe,xe)}return Math.floor(xe)}return Le.objectMode?16:16*1024}Ue.exports={getHighWaterMark:be}},{"../../../errors":399}],412:[function(oe,Ue,Fe){arguments[4][393][0].apply(Fe,arguments)},{dup:393,events:344}],413:[function(oe,Ue,Fe){"use strict";var me=oe("safe-buffer").Buffer,ce=me.isEncoding||function(Pe){switch(Pe=""+Pe,Pe&&Pe.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function be(Pe){if(!Pe)return"utf8";for(var Ie;;)switch(Pe){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return Pe;default:if(Ie)return;Pe=(""+Pe).toLowerCase(),Ie=!0}}function Le(Pe){var Ie=be(Pe);if(typeof Ie!="string"&&(me.isEncoding===ce||!ce(Pe)))throw new Error("Unknown encoding: "+Pe);return Ie||Pe}Fe.StringDecoder=Se;function Se(Pe){this.encoding=Le(Pe);var Ie;switch(this.encoding){case"utf16le":this.text=ae,this.end=re,Ie=4;break;case"utf8":this.fillLast=fe,Ie=4;break;case"base64":this.text=le,this.end=ue,Ie=3;break;default:this.write=pe,this.end=Ce;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=me.allocUnsafe(Ie)}Se.prototype.write=function(Pe){if(Pe.length===0)return"";var Ie,Oe;if(this.lastNeed){if(Ie=this.fillLast(Pe),Ie===void 0)return"";Oe=this.lastNeed,this.lastNeed=0}else Oe=0;return Oe<Pe.length?Ie?Ie+this.text(Pe,Oe):this.text(Pe,Oe):Ie||""},Se.prototype.end=ee,Se.prototype.text=z,Se.prototype.fillLast=function(Pe){if(this.lastNeed<=Pe.length)return Pe.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Pe.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Pe.length),this.lastNeed-=Pe.length};function ke(Pe){return Pe<=127?0:Pe>>5===6?2:Pe>>4===14?3:Pe>>3===30?4:Pe>>6===2?-1:-2}function ve(Pe,Ie,Oe){var Ae=Ie.length-1;if(Ae<Oe)return 0;var je=ke(Ie[Ae]);return je>=0?(je>0&&(Pe.lastNeed=je-1),je):--Ae<Oe||je===-2?0:(je=ke(Ie[Ae]),je>=0?(je>0&&(Pe.lastNeed=je-2),je):--Ae<Oe||je===-2?0:(je=ke(Ie[Ae]),je>=0?(je>0&&(je===2?je=0:Pe.lastNeed=je-3),je):0))}function xe(Pe,Ie,Oe){if((Ie[0]&192)!==128)return Pe.lastNeed=0,"\uFFFD";if(Pe.lastNeed>1&&Ie.length>1){if((Ie[1]&192)!==128)return Pe.lastNeed=1,"\uFFFD";if(Pe.lastNeed>2&&Ie.length>2&&(Ie[2]&192)!==128)return Pe.lastNeed=2,"\uFFFD"}}function fe(Pe){var Ie=this.lastTotal-this.lastNeed,Oe=xe(this,Pe,Ie);if(Oe!==void 0)return Oe;if(this.lastNeed<=Pe.length)return Pe.copy(this.lastChar,Ie,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Pe.copy(this.lastChar,Ie,0,Pe.length),this.lastNeed-=Pe.length}function z(Pe,Ie){var Oe=ve(this,Pe,Ie);if(!this.lastNeed)return Pe.toString("utf8",Ie);this.lastTotal=Oe;var Ae=Pe.length-(Oe-this.lastNeed);return Pe.copy(this.lastChar,0,Ae),Pe.toString("utf8",Ie,Ae)}function ee(Pe){var Ie=Pe&&Pe.length?this.write(Pe):"";return this.lastNeed?Ie+"\uFFFD":Ie}function ae(Pe,Ie){if((Pe.length-Ie)%2===0){var Oe=Pe.toString("utf16le",Ie);if(Oe){var Ae=Oe.charCodeAt(Oe.length-1);if(Ae>=55296&&Ae<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Pe[Pe.length-2],this.lastChar[1]=Pe[Pe.length-1],Oe.slice(0,-1)}return Oe}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Pe[Pe.length-1],Pe.toString("utf16le",Ie,Pe.length-1)}function re(Pe){var Ie=Pe&&Pe.length?this.write(Pe):"";if(this.lastNeed){var Oe=this.lastTotal-this.lastNeed;return Ie+this.lastChar.toString("utf16le",0,Oe)}return Ie}function le(Pe,Ie){var Oe=(Pe.length-Ie)%3;return Oe===0?Pe.toString("base64",Ie):(this.lastNeed=3-Oe,this.lastTotal=3,Oe===1?this.lastChar[0]=Pe[Pe.length-1]:(this.lastChar[0]=Pe[Pe.length-2],this.lastChar[1]=Pe[Pe.length-1]),Pe.toString("base64",Ie,Pe.length-Oe))}function ue(Pe){var Ie=Pe&&Pe.length?this.write(Pe):"";return this.lastNeed?Ie+this.lastChar.toString("base64",0,3-this.lastNeed):Ie}function pe(Pe){return Pe.toString(this.encoding)}function Ce(Pe){return Pe&&Pe.length?this.write(Pe):""}},{"safe-buffer":396}],414:[function(oe,Ue,Fe){(function(me,ce){(function(){var be=oe("process/browser.js").nextTick,Le=Function.prototype.apply,Se=Array.prototype.slice,ke={},ve=0;Fe.setTimeout=function(){return new xe(Le.call(setTimeout,window,arguments),clearTimeout)},Fe.setInterval=function(){return new xe(Le.call(setInterval,window,arguments),clearInterval)},Fe.clearTimeout=Fe.clearInterval=function(fe){fe.close()};function xe(fe,z){this._id=fe,this._clearFn=z}xe.prototype.unref=xe.prototype.ref=function(){},xe.prototype.close=function(){this._clearFn.call(window,this._id)},Fe.enroll=function(fe,z){clearTimeout(fe._idleTimeoutId),fe._idleTimeout=z},Fe.unenroll=function(fe){clearTimeout(fe._idleTimeoutId),fe._idleTimeout=-1},Fe._unrefActive=Fe.active=function(fe){clearTimeout(fe._idleTimeoutId);var z=fe._idleTimeout;z>=0&&(fe._idleTimeoutId=setTimeout(function(){fe._onTimeout&&fe._onTimeout()},z))},Fe.setImmediate=typeof me=="function"?me:function(fe){var z=ve++,ee=arguments.length<2?!1:Se.call(arguments,1);return ke[z]=!0,be(function(){ke[z]&&(ee?fe.apply(null,ee):fe.call(null),Fe.clearImmediate(z))}),z},Fe.clearImmediate=typeof ce=="function"?ce:function(fe){delete ke[fe]}}).call(this)}).call(this,oe("timers").setImmediate,oe("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(oe,Ue,Fe){var me=oe("buffer").Buffer;Ue.exports=function(ce){if(ce instanceof Uint8Array){if(ce.byteOffset===0&&ce.byteLength===ce.buffer.byteLength)return ce.buffer;if(typeof ce.buffer.slice=="function")return ce.buffer.slice(ce.byteOffset,ce.byteOffset+ce.byteLength)}if(me.isBuffer(ce)){for(var be=new Uint8Array(ce.length),Le=ce.length,Se=0;Se<Le;Se++)be[Se]=ce[Se];return be.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(oe,Ue,Fe){(function(me){(function(){Ue.exports=ce;function ce(Le,Se){if(be("noDeprecation"))return Le;var ke=!1;function ve(){if(!ke){if(be("throwDeprecation"))throw new Error(Se);be("traceDeprecation")?console.trace(Se):console.warn(Se),ke=!0}return Le.apply(this,arguments)}return ve}function be(Le){try{if(!me.localStorage)return!1}catch(ke){return!1}var Se=me.localStorage[Le];return Se==null?!1:String(Se).toLowerCase()==="true"}}).call(this)}).call(this,typeof vn!="undefined"?vn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(oe,Ue,Fe){arguments[4][84][0].apply(Fe,arguments)},{dup:84}],418:[function(oe,Ue,Fe){"use strict";var me=oe("is-arguments"),ce=oe("is-generator-function"),be=oe("which-typed-array"),Le=oe("is-typed-array");function Se(Xe){return Xe.call.bind(Xe)}var ke=typeof BigInt!="undefined",ve=typeof Symbol!="undefined",xe=Se(Object.prototype.toString),fe=Se(Number.prototype.valueOf),z=Se(String.prototype.valueOf),ee=Se(Boolean.prototype.valueOf);if(ke)var ae=Se(BigInt.prototype.valueOf);if(ve)var re=Se(Symbol.prototype.valueOf);function le(Xe,ct){if(typeof Xe!="object")return!1;try{return ct(Xe),!0}catch(Et){return!1}}Fe.isArgumentsObject=me,Fe.isGeneratorFunction=ce,Fe.isTypedArray=Le;function ue(Xe){return typeof Promise!="undefined"&&Xe instanceof Promise||Xe!==null&&typeof Xe=="object"&&typeof Xe.then=="function"&&typeof Xe.catch=="function"}Fe.isPromise=ue;function pe(Xe){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(Xe):Le(Xe)||mt(Xe)}Fe.isArrayBufferView=pe;function Ce(Xe){return be(Xe)==="Uint8Array"}Fe.isUint8Array=Ce;function Pe(Xe){return be(Xe)==="Uint8ClampedArray"}Fe.isUint8ClampedArray=Pe;function Ie(Xe){return be(Xe)==="Uint16Array"}Fe.isUint16Array=Ie;function Oe(Xe){return be(Xe)==="Uint32Array"}Fe.isUint32Array=Oe;function Ae(Xe){return be(Xe)==="Int8Array"}Fe.isInt8Array=Ae;function je(Xe){return be(Xe)==="Int16Array"}Fe.isInt16Array=je;function Be(Xe){return be(Xe)==="Int32Array"}Fe.isInt32Array=Be;function _e(Xe){return be(Xe)==="Float32Array"}Fe.isFloat32Array=_e;function qe(Xe){return be(Xe)==="Float64Array"}Fe.isFloat64Array=qe;function ze(Xe){return be(Xe)==="BigInt64Array"}Fe.isBigInt64Array=ze;function Ye(Xe){return be(Xe)==="BigUint64Array"}Fe.isBigUint64Array=Ye;function et(Xe){return xe(Xe)==="[object Map]"}et.working=typeof Map!="undefined"&&et(new Map);function lt(Xe){return typeof Map=="undefined"?!1:et.working?et(Xe):Xe instanceof Map}Fe.isMap=lt;function dt(Xe){return xe(Xe)==="[object Set]"}dt.working=typeof Set!="undefined"&&dt(new Set);function vt(Xe){return typeof Set=="undefined"?!1:dt.working?dt(Xe):Xe instanceof Set}Fe.isSet=vt;function Je(Xe){return xe(Xe)==="[object WeakMap]"}Je.working=typeof WeakMap!="undefined"&&Je(new WeakMap);function ot(Xe){return typeof WeakMap=="undefined"?!1:Je.working?Je(Xe):Xe instanceof WeakMap}Fe.isWeakMap=ot;function ft(Xe){return xe(Xe)==="[object WeakSet]"}ft.working=typeof WeakSet!="undefined"&&ft(new WeakSet);function xt(Xe){return ft(Xe)}Fe.isWeakSet=xt;function yt(Xe){return xe(Xe)==="[object ArrayBuffer]"}yt.working=typeof ArrayBuffer!="undefined"&&yt(new ArrayBuffer);function pt(Xe){return typeof ArrayBuffer=="undefined"?!1:yt.working?yt(Xe):Xe instanceof ArrayBuffer}Fe.isArrayBuffer=pt;function gt(Xe){return xe(Xe)==="[object DataView]"}gt.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&>(new DataView(new ArrayBuffer(1),0,1));function mt(Xe){return typeof DataView=="undefined"?!1:gt.working?gt(Xe):Xe instanceof DataView}Fe.isDataView=mt;var Mt=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function Ct(Xe){return xe(Xe)==="[object SharedArrayBuffer]"}function zt(Xe){return typeof Mt=="undefined"?!1:(typeof Ct.working=="undefined"&&(Ct.working=Ct(new Mt)),Ct.working?Ct(Xe):Xe instanceof Mt)}Fe.isSharedArrayBuffer=zt;function St(Xe){return xe(Xe)==="[object AsyncFunction]"}Fe.isAsyncFunction=St;function bt(Xe){return xe(Xe)==="[object Map Iterator]"}Fe.isMapIterator=bt;function at(Xe){return xe(Xe)==="[object Set Iterator]"}Fe.isSetIterator=at;function nt(Xe){return xe(Xe)==="[object Generator]"}Fe.isGeneratorObject=nt;function we(Xe){return xe(Xe)==="[object WebAssembly.Module]"}Fe.isWebAssemblyCompiledModule=we;function Te(Xe){return le(Xe,fe)}Fe.isNumberObject=Te;function Ve(Xe){return le(Xe,z)}Fe.isStringObject=Ve;function Ze(Xe){return le(Xe,ee)}Fe.isBooleanObject=Ze;function Ee(Xe){return ke&&le(Xe,ae)}Fe.isBigIntObject=Ee;function Ge(Xe){return ve&&le(Xe,re)}Fe.isSymbolObject=Ge;function He(Xe){return Te(Xe)||Ve(Xe)||Ze(Xe)||Ee(Xe)||Ge(Xe)}Fe.isBoxedPrimitive=He;function We(Xe){return typeof Uint8Array!="undefined"&&(pt(Xe)||zt(Xe))}Fe.isAnyArrayBuffer=We,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Xe){Object.defineProperty(Fe,Xe,{enumerable:!1,value:function(){throw new Error(Xe+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(oe,Ue,Fe){(function(me){(function(){var ce=Object.getOwnPropertyDescriptors||function(Mt){for(var Ct=Object.keys(Mt),zt={},St=0;St<Ct.length;St++)zt[Ct[St]]=Object.getOwnPropertyDescriptor(Mt,Ct[St]);return zt},be=/%[sdj%]/g;Fe.format=function(mt){if(!je(mt)){for(var Mt=[],Ct=0;Ct<arguments.length;Ct++)Mt.push(ve(arguments[Ct]));return Mt.join(" ")}for(var Ct=1,zt=arguments,St=zt.length,bt=String(mt).replace(be,function(nt){if(nt==="%%")return"%";if(Ct>=St)return nt;switch(nt){case"%s":return String(zt[Ct++]);case"%d":return Number(zt[Ct++]);case"%j":try{return JSON.stringify(zt[Ct++])}catch(we){return"[Circular]"}default:return nt}}),at=zt[Ct];Ct<St;at=zt[++Ct])Ie(at)||!ze(at)?bt+=" "+at:bt+=" "+ve(at);return bt},Fe.deprecate=function(mt,Mt){if(typeof me!="undefined"&&me.noDeprecation===!0)return mt;if(typeof me=="undefined")return function(){return Fe.deprecate(mt,Mt).apply(this,arguments)};var Ct=!1;function zt(){if(!Ct){if(me.throwDeprecation)throw new Error(Mt);me.traceDeprecation?console.trace(Mt):console.error(Mt),Ct=!0}return mt.apply(this,arguments)}return zt};var Le={},Se=/^$/;if(me.env.NODE_DEBUG){var ke=me.env.NODE_DEBUG;ke=ke.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Se=new RegExp("^"+ke+"$","i")}Fe.debuglog=function(mt){if(mt=mt.toUpperCase(),!Le[mt])if(Se.test(mt)){var Mt=me.pid;Le[mt]=function(){var Ct=Fe.format.apply(Fe,arguments);console.error("%s %d: %s",mt,Mt,Ct)}}else Le[mt]=function(){};return Le[mt]};function ve(mt,Mt){var Ct={seen:[],stylize:fe};return arguments.length>=3&&(Ct.depth=arguments[2]),arguments.length>=4&&(Ct.colors=arguments[3]),Pe(Mt)?Ct.showHidden=Mt:Mt&&Fe._extend(Ct,Mt),_e(Ct.showHidden)&&(Ct.showHidden=!1),_e(Ct.depth)&&(Ct.depth=2),_e(Ct.colors)&&(Ct.colors=!1),_e(Ct.customInspect)&&(Ct.customInspect=!0),Ct.colors&&(Ct.stylize=xe),ee(Ct,mt,Ct.depth)}Fe.inspect=ve,ve.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},ve.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function xe(mt,Mt){var Ct=ve.styles[Mt];return Ct?"\x1B["+ve.colors[Ct][0]+"m"+mt+"\x1B["+ve.colors[Ct][1]+"m":mt}function fe(mt,Mt){return mt}function z(mt){var Mt={};return mt.forEach(function(Ct,zt){Mt[Ct]=!0}),Mt}function ee(mt,Mt,Ct){if(mt.customInspect&&Mt&<(Mt.inspect)&&Mt.inspect!==Fe.inspect&&!(Mt.constructor&&Mt.constructor.prototype===Mt)){var zt=Mt.inspect(Ct,mt);return je(zt)||(zt=ee(mt,zt,Ct)),zt}var St=ae(mt,Mt);if(St)return St;var bt=Object.keys(Mt),at=z(bt);if(mt.showHidden&&(bt=Object.getOwnPropertyNames(Mt)),et(Mt)&&(bt.indexOf("message")>=0||bt.indexOf("description")>=0))return re(Mt);if(bt.length===0){if(lt(Mt)){var nt=Mt.name?": "+Mt.name:"";return mt.stylize("[Function"+nt+"]","special")}if(qe(Mt))return mt.stylize(RegExp.prototype.toString.call(Mt),"regexp");if(Ye(Mt))return mt.stylize(Date.prototype.toString.call(Mt),"date");if(et(Mt))return re(Mt)}var we="",Te=!1,Ve=["{","}"];if(Ce(Mt)&&(Te=!0,Ve=["[","]"]),lt(Mt)){var Ze=Mt.name?": "+Mt.name:"";we=" [Function"+Ze+"]"}if(qe(Mt)&&(we=" "+RegExp.prototype.toString.call(Mt)),Ye(Mt)&&(we=" "+Date.prototype.toUTCString.call(Mt)),et(Mt)&&(we=" "+re(Mt)),bt.length===0&&(!Te||Mt.length==0))return Ve[0]+we+Ve[1];if(Ct<0)return qe(Mt)?mt.stylize(RegExp.prototype.toString.call(Mt),"regexp"):mt.stylize("[Object]","special");mt.seen.push(Mt);var Ee;return Te?Ee=le(mt,Mt,Ct,at,bt):Ee=bt.map(function(Ge){return ue(mt,Mt,Ct,at,Ge,Te)}),mt.seen.pop(),pe(Ee,we,Ve)}function ae(mt,Mt){if(_e(Mt))return mt.stylize("undefined","undefined");if(je(Mt)){var Ct="'"+JSON.stringify(Mt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return mt.stylize(Ct,"string")}if(Ae(Mt))return mt.stylize(""+Mt,"number");if(Pe(Mt))return mt.stylize(""+Mt,"boolean");if(Ie(Mt))return mt.stylize("null","null")}function re(mt){return"["+Error.prototype.toString.call(mt)+"]"}function le(mt,Mt,Ct,zt,St){for(var bt=[],at=0,nt=Mt.length;at<nt;++at)xt(Mt,String(at))?bt.push(ue(mt,Mt,Ct,zt,String(at),!0)):bt.push("");return St.forEach(function(we){we.match(/^\d+$/)||bt.push(ue(mt,Mt,Ct,zt,we,!0))}),bt}function ue(mt,Mt,Ct,zt,St,bt){var at,nt,we;if(we=Object.getOwnPropertyDescriptor(Mt,St)||{value:Mt[St]},we.get?we.set?nt=mt.stylize("[Getter/Setter]","special"):nt=mt.stylize("[Getter]","special"):we.set&&(nt=mt.stylize("[Setter]","special")),xt(zt,St)||(at="["+St+"]"),nt||(mt.seen.indexOf(we.value)<0?(Ie(Ct)?nt=ee(mt,we.value,null):nt=ee(mt,we.value,Ct-1),nt.indexOf(`
|
|
|
`)>-1&&(bt?nt=nt.split(`
|
|
|
`).map(function(Te){return" "+Te}).join(`
|
|
|
`).slice(2):nt=`
|
|
|
`+nt.split(`
|
|
|
`).map(function(Te){return" "+Te}).join(`
|
|
|
`))):nt=mt.stylize("[Circular]","special")),_e(at)){if(bt&&St.match(/^\d+$/))return nt;at=JSON.stringify(""+St),at.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(at=at.slice(1,-1),at=mt.stylize(at,"name")):(at=at.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),at=mt.stylize(at,"string"))}return at+": "+nt}function pe(mt,Mt,Ct){var zt=0,St=mt.reduce(function(bt,at){return zt++,at.indexOf(`
|
|
|
`)>=0&&zt++,bt+at.replace(/\u001b\[\d\d?m/g,"").length+1},0);return St>60?Ct[0]+(Mt===""?"":Mt+`
|
|
|
`)+" "+mt.join(`,
|
|
|
`)+" "+Ct[1]:Ct[0]+Mt+" "+mt.join(", ")+" "+Ct[1]}Fe.types=oe("./support/types");function Ce(mt){return Array.isArray(mt)}Fe.isArray=Ce;function Pe(mt){return typeof mt=="boolean"}Fe.isBoolean=Pe;function Ie(mt){return mt===null}Fe.isNull=Ie;function Oe(mt){return mt==null}Fe.isNullOrUndefined=Oe;function Ae(mt){return typeof mt=="number"}Fe.isNumber=Ae;function je(mt){return typeof mt=="string"}Fe.isString=je;function Be(mt){return typeof mt=="symbol"}Fe.isSymbol=Be;function _e(mt){return mt===void 0}Fe.isUndefined=_e;function qe(mt){return ze(mt)&&vt(mt)==="[object RegExp]"}Fe.isRegExp=qe,Fe.types.isRegExp=qe;function ze(mt){return typeof mt=="object"&&mt!==null}Fe.isObject=ze;function Ye(mt){return ze(mt)&&vt(mt)==="[object Date]"}Fe.isDate=Ye,Fe.types.isDate=Ye;function et(mt){return ze(mt)&&(vt(mt)==="[object Error]"||mt instanceof Error)}Fe.isError=et,Fe.types.isNativeError=et;function lt(mt){return typeof mt=="function"}Fe.isFunction=lt;function dt(mt){return mt===null||typeof mt=="boolean"||typeof mt=="number"||typeof mt=="string"||typeof mt=="symbol"||typeof mt=="undefined"}Fe.isPrimitive=dt,Fe.isBuffer=oe("./support/isBuffer");function vt(mt){return Object.prototype.toString.call(mt)}function Je(mt){return mt<10?"0"+mt.toString(10):mt.toString(10)}var ot=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ft(){var mt=new Date,Mt=[Je(mt.getHours()),Je(mt.getMinutes()),Je(mt.getSeconds())].join(":");return[mt.getDate(),ot[mt.getMonth()],Mt].join(" ")}Fe.log=function(){console.log("%s - %s",ft(),Fe.format.apply(Fe,arguments))},Fe.inherits=oe("inherits"),Fe._extend=function(mt,Mt){if(!Mt||!ze(Mt))return mt;for(var Ct=Object.keys(Mt),zt=Ct.length;zt--;)mt[Ct[zt]]=Mt[Ct[zt]];return mt};function xt(mt,Mt){return Object.prototype.hasOwnProperty.call(mt,Mt)}var yt=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;Fe.promisify=function(Mt){if(typeof Mt!="function")throw new TypeError('The "original" argument must be of type Function');if(yt&&Mt[yt]){var Ct=Mt[yt];if(typeof Ct!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Ct,yt,{value:Ct,enumerable:!1,writable:!1,configurable:!0}),Ct}function Ct(){for(var zt,St,bt=new Promise(function(we,Te){zt=we,St=Te}),at=[],nt=0;nt<arguments.length;nt++)at.push(arguments[nt]);at.push(function(we,Te){we?St(we):zt(Te)});try{Mt.apply(this,at)}catch(we){St(we)}return bt}return Object.setPrototypeOf(Ct,Object.getPrototypeOf(Mt)),yt&&Object.defineProperty(Ct,yt,{value:Ct,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Ct,ce(Mt))},Fe.promisify.custom=yt;function pt(mt,Mt){if(!mt){var Ct=new Error("Promise was rejected with a falsy value");Ct.reason=mt,mt=Ct}return Mt(mt)}function gt(mt){if(typeof mt!="function")throw new TypeError('The "original" argument must be of type Function');function Mt(){for(var Ct=[],zt=0;zt<arguments.length;zt++)Ct.push(arguments[zt]);var St=Ct.pop();if(typeof St!="function")throw new TypeError("The last argument must be of type Function");var bt=this,at=function(){return St.apply(bt,arguments)};mt.apply(this,Ct).then(function(nt){me.nextTick(at.bind(null,null,nt))},function(nt){me.nextTick(pt.bind(null,nt,at))})}return Object.setPrototypeOf(Mt,Object.getPrototypeOf(mt)),Object.defineProperties(Mt,ce(mt)),Mt}Fe.callbackify=gt}).call(this)}).call(this,oe("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(oe,Ue,Fe){(function(me){(function(){"use strict";var ce=oe("for-each"),be=oe("available-typed-arrays"),Le=oe("call-bind"),Se=oe("call-bind/callBound"),ke=oe("gopd"),ve=Se("Object.prototype.toString"),xe=oe("has-tostringtag/shams")(),fe=typeof globalThis=="undefined"?me:globalThis,z=be(),ee=Se("String.prototype.slice"),ae=Object.getPrototypeOf,re=Se("Array.prototype.indexOf",!0)||function(Pe,Ie){for(var Oe=0;Oe<Pe.length;Oe+=1)if(Pe[Oe]===Ie)return Oe;return-1},le={__proto__:null};xe&&ke&&ae?ce(z,function(Ce){var Pe=new fe[Ce];if(Symbol.toStringTag in Pe){var Ie=ae(Pe),Oe=ke(Ie,Symbol.toStringTag);if(!Oe){var Ae=ae(Ie);Oe=ke(Ae,Symbol.toStringTag)}le["$"+Ce]=Le(Oe.get)}}):ce(z,function(Ce){var Pe=new fe[Ce];le["$"+Ce]=Le(Pe.slice)});var ue=function(Pe){var Ie=!1;return ce(le,function(Oe,Ae){if(!Ie)try{"$"+Oe(Pe)===Ae&&(Ie=ee(Ae,1))}catch(je){}}),Ie},pe=function(Pe){var Ie=!1;return ce(le,function(Oe,Ae){if(!Ie)try{Oe(Pe),Ie=ee(Ae,1)}catch(je){}}),Ie};Ue.exports=function(Pe){if(!Pe||typeof Pe!="object")return!1;if(!xe){var Ie=ee(ve(Pe),8,-1);return re(z,Ie)>-1?Ie:Ie!=="Object"?!1:pe(Pe)}return ke?ue(Pe):null}}).call(this)}).call(this,typeof vn!="undefined"?vn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"available-typed-arrays":86,"call-bind":93,"call-bind/callBound":92,"for-each":345,gopd:349,"has-tostringtag/shams":353}],421:[function(oe,Ue,Fe){(function(){"use strict";Fe.stripBOM=function(me){return me[0]==="\uFEFF"?me.substring(1):me}}).call(this)},{}],422:[function(oe,Ue,Fe){(function(){"use strict";var me,ce,be,Le,Se,ke={}.hasOwnProperty;me=oe("xmlbuilder"),ce=oe("./defaults").defaults,Le=function(ve){return typeof ve=="string"&&(ve.indexOf("&")>=0||ve.indexOf(">")>=0||ve.indexOf("<")>=0)},Se=function(ve){return"<![CDATA["+be(ve)+"]]>"},be=function(ve){return ve.replace("]]>","]]]]><![CDATA[>")},Fe.Builder=function(){function ve(xe){var fe,z,ee;this.options={},z=ce["0.2"];for(fe in z)ke.call(z,fe)&&(ee=z[fe],this.options[fe]=ee);for(fe in xe)ke.call(xe,fe)&&(ee=xe[fe],this.options[fe]=ee)}return ve.prototype.buildObject=function(xe){var fe,z,ee,ae,re;return fe=this.options.attrkey,z=this.options.charkey,Object.keys(xe).length===1&&this.options.rootName===ce["0.2"].rootName?(re=Object.keys(xe)[0],xe=xe[re]):re=this.options.rootName,ee=function(le){return function(ue,pe){var Ce,Pe,Ie,Oe,Ae,je;if(typeof pe!="object")le.options.cdata&&Le(pe)?ue.raw(Se(pe)):ue.txt(pe);else if(Array.isArray(pe)){for(Oe in pe)if(ke.call(pe,Oe)){Pe=pe[Oe];for(Ae in Pe)Ie=Pe[Ae],ue=ee(ue.ele(Ae),Ie).up()}}else for(Ae in pe)if(ke.call(pe,Ae))if(Pe=pe[Ae],Ae===fe){if(typeof Pe=="object")for(Ce in Pe)je=Pe[Ce],ue=ue.att(Ce,je)}else if(Ae===z)le.options.cdata&&Le(Pe)?ue=ue.raw(Se(Pe)):ue=ue.txt(Pe);else if(Array.isArray(Pe))for(Oe in Pe)ke.call(Pe,Oe)&&(Ie=Pe[Oe],typeof Ie=="string"?le.options.cdata&&Le(Ie)?ue=ue.ele(Ae).raw(Se(Ie)).up():ue=ue.ele(Ae,Ie).up():ue=ee(ue.ele(Ae),Ie).up());else typeof Pe=="object"?ue=ee(ue.ele(Ae),Pe).up():typeof Pe=="string"&&le.options.cdata&&Le(Pe)?ue=ue.ele(Ae).raw(Se(Pe)).up():(Pe==null&&(Pe=""),ue=ue.ele(Ae,Pe.toString()).up());return ue}}(this),ae=me.create(re,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),ee(ae,xe).end(this.options.renderOpts)},ve}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(oe,Ue,Fe){(function(){Fe.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
|
|
|
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],424:[function(oe,Ue,Fe){(function(){"use strict";var me,ce,be,Le,Se,ke,ve,xe,fe,z=function(re,le){return function(){return re.apply(le,arguments)}},ee=function(re,le){for(var ue in le)ae.call(le,ue)&&(re[ue]=le[ue]);function pe(){this.constructor=re}return pe.prototype=le.prototype,re.prototype=new pe,re.__super__=le.prototype,re},ae={}.hasOwnProperty;xe=oe("sax"),Le=oe("events"),me=oe("./bom"),ve=oe("./processors"),fe=oe("timers").setImmediate,ce=oe("./defaults").defaults,Se=function(re){return typeof re=="object"&&re!=null&&Object.keys(re).length===0},ke=function(re,le,ue){var pe,Ce,Pe;for(pe=0,Ce=re.length;pe<Ce;pe++)Pe=re[pe],le=Pe(le,ue);return le},be=function(re,le,ue){var pe;return pe=Object.create(null),pe.value=ue,pe.writable=!0,pe.enumerable=!0,pe.configurable=!0,Object.defineProperty(re,le,pe)},Fe.Parser=function(re){ee(le,re);function le(ue){this.parseStringPromise=z(this.parseStringPromise,this),this.parseString=z(this.parseString,this),this.reset=z(this.reset,this),this.assignOrPush=z(this.assignOrPush,this),this.processAsync=z(this.processAsync,this);var pe,Ce,Pe;if(!(this instanceof Fe.Parser))return new Fe.Parser(ue);this.options={},Ce=ce["0.2"];for(pe in Ce)ae.call(Ce,pe)&&(Pe=Ce[pe],this.options[pe]=Pe);for(pe in ue)ae.call(ue,pe)&&(Pe=ue[pe],this.options[pe]=Pe);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(ve.normalize)),this.reset()}return le.prototype.processAsync=function(){var ue,pe;try{return this.remaining.length<=this.options.chunkSize?(ue=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(ue),this.saxParser.close()):(ue=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(ue),fe(this.processAsync))}catch(Ce){if(pe=Ce,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(pe)}},le.prototype.assignOrPush=function(ue,pe,Ce){return pe in ue?(ue[pe]instanceof Array||be(ue,pe,[ue[pe]]),ue[pe].push(Ce)):this.options.explicitArray?be(ue,pe,[Ce]):be(ue,pe,Ce)},le.prototype.reset=function(){var ue,pe,Ce,Pe;return this.removeAllListeners(),this.saxParser=xe.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(Ie){return function(Oe){if(Ie.saxParser.resume(),!Ie.saxParser.errThrown)return Ie.saxParser.errThrown=!0,Ie.emit("error",Oe)}}(this),this.saxParser.onend=function(Ie){return function(){if(!Ie.saxParser.ended)return Ie.saxParser.ended=!0,Ie.emit("end",Ie.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,Pe=[],ue=this.options.attrkey,pe=this.options.charkey,this.saxParser.onopentag=function(Ie){return function(Oe){var Ae,je,Be,_e,qe;if(Be={},Be[pe]="",!Ie.options.ignoreAttrs){qe=Oe.attributes;for(Ae in qe)ae.call(qe,Ae)&&(!(ue in Be)&&!Ie.options.mergeAttrs&&(Be[ue]={}),je=Ie.options.attrValueProcessors?ke(Ie.options.attrValueProcessors,Oe.attributes[Ae],Ae):Oe.attributes[Ae],_e=Ie.options.attrNameProcessors?ke(Ie.options.attrNameProcessors,Ae):Ae,Ie.options.mergeAttrs?Ie.assignOrPush(Be,_e,je):be(Be[ue],_e,je))}return Be["#name"]=Ie.options.tagNameProcessors?ke(Ie.options.tagNameProcessors,Oe.name):Oe.name,Ie.options.xmlns&&(Be[Ie.options.xmlnskey]={uri:Oe.uri,local:Oe.local}),Pe.push(Be)}}(this),this.saxParser.onclosetag=function(Ie){return function(){var Oe,Ae,je,Be,_e,qe,ze,Ye,et,lt;if(qe=Pe.pop(),_e=qe["#name"],(!Ie.options.explicitChildren||!Ie.options.preserveChildrenOrder)&&delete qe["#name"],qe.cdata===!0&&(Oe=qe.cdata,delete qe.cdata),et=Pe[Pe.length-1],qe[pe].match(/^\s*$/)&&!Oe?(Ae=qe[pe],delete qe[pe]):(Ie.options.trim&&(qe[pe]=qe[pe].trim()),Ie.options.normalize&&(qe[pe]=qe[pe].replace(/\s{2,}/g," ").trim()),qe[pe]=Ie.options.valueProcessors?ke(Ie.options.valueProcessors,qe[pe],_e):qe[pe],Object.keys(qe).length===1&&pe in qe&&!Ie.EXPLICIT_CHARKEY&&(qe=qe[pe])),Se(qe)&&(typeof Ie.options.emptyTag=="function"?qe=Ie.options.emptyTag():qe=Ie.options.emptyTag!==""?Ie.options.emptyTag:Ae),Ie.options.validator!=null&&(lt="/"+function(){var dt,vt,Je;for(Je=[],dt=0,vt=Pe.length;dt<vt;dt++)Be=Pe[dt],Je.push(Be["#name"]);return Je}().concat(_e).join("/"),function(){var dt;try{return qe=Ie.options.validator(lt,et&&et[_e],qe)}catch(vt){return dt=vt,Ie.emit("error",dt)}}()),Ie.options.explicitChildren&&!Ie.options.mergeAttrs&&typeof qe=="object"){if(!Ie.options.preserveChildrenOrder)Be={},Ie.options.attrkey in qe&&(Be[Ie.options.attrkey]=qe[Ie.options.attrkey],delete qe[Ie.options.attrkey]),!Ie.options.charsAsChildren&&Ie.options.charkey in qe&&(Be[Ie.options.charkey]=qe[Ie.options.charkey],delete qe[Ie.options.charkey]),Object.getOwnPropertyNames(qe).length>0&&(Be[Ie.options.childkey]=qe),qe=Be;else if(et){et[Ie.options.childkey]=et[Ie.options.childkey]||[],ze={};for(je in qe)ae.call(qe,je)&&be(ze,je,qe[je]);et[Ie.options.childkey].push(ze),delete qe["#name"],Object.keys(qe).length===1&&pe in qe&&!Ie.EXPLICIT_CHARKEY&&(qe=qe[pe])}}return Pe.length>0?Ie.assignOrPush(et,_e,qe):(Ie.options.explicitRoot&&(Ye=qe,qe={},be(qe,_e,Ye)),Ie.resultObject=qe,Ie.saxParser.ended=!0,Ie.emit("end",Ie.resultObject))}}(this),Ce=function(Ie){return function(Oe){var Ae,je;if(je=Pe[Pe.length-1],je)return je[pe]+=Oe,Ie.options.explicitChildren&&Ie.options.preserveChildrenOrder&&Ie.options.charsAsChildren&&(Ie.options.includeWhiteChars||Oe.replace(/\\n/g,"").trim()!=="")&&(je[Ie.options.childkey]=je[Ie.options.childkey]||[],Ae={"#name":"__text__"},Ae[pe]=Oe,Ie.options.normalize&&(Ae[pe]=Ae[pe].replace(/\s{2,}/g," ").trim()),je[Ie.options.childkey].push(Ae)),je}}(this),this.saxParser.ontext=Ce,this.saxParser.oncdata=function(Ie){return function(Oe){var Ae;if(Ae=Ce(Oe),Ae)return Ae.cdata=!0}}(this)},le.prototype.parseString=function(ue,pe){var Ce;pe!=null&&typeof pe=="function"&&(this.on("end",function(Pe){return this.reset(),pe(null,Pe)}),this.on("error",function(Pe){return this.reset(),pe(Pe)}));try{return ue=ue.toString(),ue.trim()===""?(this.emit("end",null),!0):(ue=me.stripBOM(ue),this.options.async?(this.remaining=ue,fe(this.processAsync),this.saxParser):this.saxParser.write(ue).close())}catch(Pe){if(Ce=Pe,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw Ce}else return this.emit("error",Ce),this.saxParser.errThrown=!0}},le.prototype.parseStringPromise=function(ue){return new Promise(function(pe){return function(Ce,Pe){return pe.parseString(ue,function(Ie,Oe){return Ie?Pe(Ie):Ce(Oe)})}}(this))},le}(Le),Fe.parseString=function(re,le,ue){var pe,Ce,Pe;return ue!=null?(typeof ue=="function"&&(pe=ue),typeof le=="object"&&(Ce=le)):(typeof le=="function"&&(pe=le),Ce={}),Pe=new Fe.Parser(Ce),Pe.parseString(re,pe)},Fe.parseStringPromise=function(re,le){var ue,pe;return typeof le=="object"&&(ue=le),pe=new Fe.Parser(ue),pe.parseStringPromise(re)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(oe,Ue,Fe){(function(){"use strict";var me;me=new RegExp(/(?!xmlns)^.*:/),Fe.normalize=function(ce){return ce.toLowerCase()},Fe.firstCharLowerCase=function(ce){return ce.charAt(0).toLowerCase()+ce.slice(1)},Fe.stripPrefix=function(ce){return ce.replace(me,"")},Fe.parseNumbers=function(ce){return isNaN(ce)||(ce=ce%1===0?parseInt(ce,10):parseFloat(ce)),ce},Fe.parseBooleans=function(ce){return/^(?:true|false)$/i.test(ce)&&(ce=ce.toLowerCase()==="true"),ce}}).call(this)},{}],426:[function(oe,Ue,Fe){(function(){"use strict";var me,ce,be,Le,Se=function(ve,xe){for(var fe in xe)ke.call(xe,fe)&&(ve[fe]=xe[fe]);function z(){this.constructor=ve}return z.prototype=xe.prototype,ve.prototype=new z,ve.__super__=xe.prototype,ve},ke={}.hasOwnProperty;ce=oe("./defaults"),me=oe("./builder"),be=oe("./parser"),Le=oe("./processors"),Fe.defaults=ce.defaults,Fe.processors=Le,Fe.ValidationError=function(ve){Se(xe,ve);function xe(fe){this.message=fe}return xe}(Error),Fe.Builder=me.Builder,Fe.Parser=be.Parser,Fe.parseString=be.parseString,Fe.parseStringPromise=be.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(oe,Ue,Fe){(function(){Ue.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(oe,Ue,Fe){(function(){Ue.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},{}],429:[function(oe,Ue,Fe){(function(){var me,ce,be,Le,Se,ke,ve,xe=[].slice,fe={}.hasOwnProperty;me=function(){var z,ee,ae,re,le,ue;if(ue=arguments[0],le=2<=arguments.length?xe.call(arguments,1):[],Se(Object.assign))Object.assign.apply(null,arguments);else for(z=0,ae=le.length;z<ae;z++)if(re=le[z],re!=null)for(ee in re)fe.call(re,ee)&&(ue[ee]=re[ee]);return ue},Se=function(z){return!!z&&Object.prototype.toString.call(z)==="[object Function]"},ke=function(z){var ee;return!!z&&((ee=typeof z)=="function"||ee==="object")},be=function(z){return Se(Array.isArray)?Array.isArray(z):Object.prototype.toString.call(z)==="[object Array]"},Le=function(z){var ee;if(be(z))return!z.length;for(ee in z)if(fe.call(z,ee))return!1;return!0},ve=function(z){var ee,ae;return ke(z)&&(ae=Object.getPrototypeOf(z))&&(ee=ae.constructor)&&typeof ee=="function"&&ee instanceof ee&&Function.prototype.toString.call(ee)===Function.prototype.toString.call(Object)},ce=function(z){return Se(z.valueOf)?z.valueOf():z},Ue.exports.assign=me,Ue.exports.isFunction=Se,Ue.exports.isObject=ke,Ue.exports.isArray=be,Ue.exports.isEmpty=Le,Ue.exports.isPlainObject=ve,Ue.exports.getValue=ce}).call(this)},{}],430:[function(oe,Ue,Fe){(function(){Ue.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(oe,Ue,Fe){(function(){var me,ce,be;me=oe("./NodeType"),be=oe("./XMLNode"),Ue.exports=ce=function(){function Le(Se,ke,ve){if(this.parent=Se,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),ke==null)throw new Error("Missing attribute name. "+this.debugInfo(ke));this.name=this.stringify.name(ke),this.value=this.stringify.attValue(ve),this.type=me.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(Le.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(Le.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(Le.prototype,"textContent",{get:function(){return this.value},set:function(Se){return this.value=Se||""}}),Object.defineProperty(Le.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(Le.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(Le.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(Le.prototype,"specified",{get:function(){return!0}}),Le.prototype.clone=function(){return Object.create(this)},Le.prototype.toString=function(Se){return this.options.writer.attribute(this,this.options.writer.filterOptions(Se))},Le.prototype.debugInfo=function(Se){return Se=Se||this.name,Se==null?"parent: <"+this.parent.name+">":"attribute: {"+Se+"}, parent: <"+this.parent.name+">"},Le.prototype.isEqualNode=function(Se){return!(Se.namespaceURI!==this.namespaceURI||Se.prefix!==this.prefix||Se.localName!==this.localName||Se.value!==this.value)},Le}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(oe,Ue,Fe){(function(){var me,ce,be,Le=function(ke,ve){for(var xe in ve)Se.call(ve,xe)&&(ke[xe]=ve[xe]);function fe(){this.constructor=ke}return fe.prototype=ve.prototype,ke.prototype=new fe,ke.__super__=ve.prototype,ke},Se={}.hasOwnProperty;me=oe("./NodeType"),be=oe("./XMLCharacterData"),Ue.exports=ce=function(ke){Le(ve,ke);function ve(xe,fe){if(ve.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=me.CData,this.value=this.stringify.cdata(fe)}return ve.prototype.clone=function(){return Object.create(this)},ve.prototype.toString=function(xe){return this.options.writer.cdata(this,this.options.writer.filterOptions(xe))},ve}(be)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(oe,Ue,Fe){(function(){var me,ce,be=function(Se,ke){for(var ve in ke)Le.call(ke,ve)&&(Se[ve]=ke[ve]);function xe(){this.constructor=Se}return xe.prototype=ke.prototype,Se.prototype=new xe,Se.__super__=ke.prototype,Se},Le={}.hasOwnProperty;ce=oe("./XMLNode"),Ue.exports=me=function(Se){be(ke,Se);function ke(ve){ke.__super__.constructor.call(this,ve),this.value=""}return Object.defineProperty(ke.prototype,"data",{get:function(){return this.value},set:function(ve){return this.value=ve||""}}),Object.defineProperty(ke.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(ke.prototype,"textContent",{get:function(){return this.value},set:function(ve){return this.value=ve||""}}),ke.prototype.clone=function(){return Object.create(this)},ke.prototype.substringData=function(ve,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.appendData=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.insertData=function(ve,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.deleteData=function(ve,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.replaceData=function(ve,xe,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ke.prototype.isEqualNode=function(ve){return!(!ke.__super__.isEqualNode.apply(this,arguments).isEqualNode(ve)||ve.data!==this.data)},ke}(ce)}).call(this)},{"./XMLNode":450}],434:[function(oe,Ue,Fe){(function(){var me,ce,be,Le=function(ke,ve){for(var xe in ve)Se.call(ve,xe)&&(ke[xe]=ve[xe]);function fe(){this.constructor=ke}return fe.prototype=ve.prototype,ke.prototype=new fe,ke.__super__=ve.prototype,ke},Se={}.hasOwnProperty;me=oe("./NodeType"),ce=oe("./XMLCharacterData"),Ue.exports=be=function(ke){Le(ve,ke);function ve(xe,fe){if(ve.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=me.Comment,this.value=this.stringify.comment(fe)}return ve.prototype.clone=function(){return Object.create(this)},ve.prototype.toString=function(xe){return this.options.writer.comment(this,this.options.writer.filterOptions(xe))},ve}(ce)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(oe,Ue,Fe){(function(){var me,ce,be;ce=oe("./XMLDOMErrorHandler"),be=oe("./XMLDOMStringList"),Ue.exports=me=function(){function Le(){var Se;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new ce,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Se=Object.create(this.defaultParams)}return Object.defineProperty(Le.prototype,"parameterNames",{get:function(){return new be(Object.keys(this.defaultParams))}}),Le.prototype.getParameter=function(Se){return this.params.hasOwnProperty(Se)?this.params[Se]:null},Le.prototype.canSetParameter=function(Se,ke){return!0},Le.prototype.setParameter=function(Se,ke){return ke!=null?this.params[Se]=ke:delete this.params[Se]},Le}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(oe,Ue,Fe){(function(){var me;Ue.exports=me=function(){function ce(){}return ce.prototype.handleError=function(be){throw new Error(be)},ce}()}).call(this)},{}],437:[function(oe,Ue,Fe){(function(){var me;Ue.exports=me=function(){function ce(){}return ce.prototype.hasFeature=function(be,Le){return!0},ce.prototype.createDocumentType=function(be,Le,Se){throw new Error("This DOM method is not implemented.")},ce.prototype.createDocument=function(be,Le,Se){throw new Error("This DOM method is not implemented.")},ce.prototype.createHTMLDocument=function(be){throw new Error("This DOM method is not implemented.")},ce.prototype.getFeature=function(be,Le){throw new Error("This DOM method is not implemented.")},ce}()}).call(this)},{}],438:[function(oe,Ue,Fe){(function(){var me;Ue.exports=me=function(){function ce(be){this.arr=be||[]}return Object.defineProperty(ce.prototype,"length",{get:function(){return this.arr.length}}),ce.prototype.item=function(be){return this.arr[be]||null},ce.prototype.contains=function(be){return this.arr.indexOf(be)!==-1},ce}()}).call(this)},{}],439:[function(oe,Ue,Fe){(function(){var me,ce,be,Le=function(ke,ve){for(var xe in ve)Se.call(ve,xe)&&(ke[xe]=ve[xe]);function fe(){this.constructor=ke}return fe.prototype=ve.prototype,ke.prototype=new fe,ke.__super__=ve.prototype,ke},Se={}.hasOwnProperty;be=oe("./XMLNode"),me=oe("./NodeType"),Ue.exports=ce=function(ke){Le(ve,ke);function ve(xe,fe,z,ee,ae,re){if(ve.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(z==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(fe));if(!ee)throw new Error("Missing DTD attribute type. "+this.debugInfo(fe));if(!ae)throw new Error("Missing DTD attribute default. "+this.debugInfo(fe));if(ae.indexOf("#")!==0&&(ae="#"+ae),!ae.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(fe));if(re&&!ae.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(fe));this.elementName=this.stringify.name(fe),this.type=me.AttributeDeclaration,this.attributeName=this.stringify.name(z),this.attributeType=this.stringify.dtdAttType(ee),re&&(this.defaultValue=this.stringify.dtdAttDefault(re)),this.defaultValueType=ae}return ve.prototype.toString=function(xe){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(xe))},ve}(be)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(oe,Ue,Fe){(function(){var me,ce,be,Le=function(ke,ve){for(var xe in ve)Se.call(ve,xe)&&(ke[xe]=ve[xe]);function fe(){this.constructor=ke}return fe.prototype=ve.prototype,ke.prototype=new fe,ke.__super__=ve.prototype,ke},Se={}.hasOwnProperty;be=oe("./XMLNode"),me=oe("./NodeType"),Ue.exports=ce=function(ke){Le(ve,ke);function ve(xe,fe,z){if(ve.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing DTD element name. "+this.debugInfo());z||(z="(#PCDATA)"),Array.isArray(z)&&(z="("+z.join(",")+")"),this.name=this.stringify.name(fe),this.type=me.ElementDeclaration,this.value=this.stringify.dtdElementValue(z)}return ve.prototype.toString=function(xe){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(xe))},ve}(be)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(oe,Ue,Fe){(function(){var me,ce,be,Le,Se=function(ve,xe){for(var fe in xe)ke.call(xe,fe)&&(ve[fe]=xe[fe]);function z(){this.constructor=ve}return z.prototype=xe.prototype,ve.prototype=new z,ve.__super__=xe.prototype,ve},ke={}.hasOwnProperty;Le=oe("./Utility").isObject,be=oe("./XMLNode"),me=oe("./NodeType"),Ue.exports=ce=function(ve){Se(xe,ve);function xe(fe,z,ee,ae){if(xe.__super__.constructor.call(this,fe),ee==null)throw new Error("Missing DTD entity name. "+this.debugInfo(ee));if(ae==null)throw new Error("Missing DTD entity value. "+this.debugInfo(ee));if(this.pe=!!z,this.name=this.stringify.name(ee),this.type=me.EntityDeclaration,!Le(ae))this.value=this.stringify.dtdEntityValue(ae),this.internal=!0;else{if(!ae.pubID&&!ae.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(ee));if(ae.pubID&&!ae.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(ee));if(this.internal=!1,ae.pubID!=null&&(this.pubID=this.stringify.dtdPubID(ae.pubID)),ae.sysID!=null&&(this.sysID=this.stringify.dtdSysID(ae.sysID)),ae.nData!=null&&(this.nData=this.stringify.dtdNData(ae.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(ee))}}return Object.defineProperty(xe.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(xe.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(xe.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(xe.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(xe.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(xe.prototype,"xmlVersion",{get:function(){return null}}),xe.prototype.toString=function(fe){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(fe))},xe}(be)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(oe,Ue,Fe){(function(){var me,ce,be,Le=function(ke,ve){for(var xe in ve)Se.call(ve,xe)&&(ke[xe]=ve[xe]);function fe(){this.constructor=ke}return fe.prototype=ve.prototype,ke.prototype=new fe,ke.__super__=ve.prototype,ke},Se={}.hasOwnProperty;be=oe("./XMLNode"),me=oe("./NodeType"),Ue.exports=ce=function(ke){Le(ve,ke);function ve(xe,fe,z){if(ve.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing DTD notation name. "+this.debugInfo(fe));if(!z.pubID&&!z.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(fe));this.name=this.stringify.name(fe),this.type=me.NotationDeclaration,z.pubID!=null&&(this.pubID=this.stringify.dtdPubID(z.pubID)),z.sysID!=null&&(this.sysID=this.stringify.dtdSysID(z.sysID))}return Object.defineProperty(ve.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(ve.prototype,"systemId",{get:function(){return this.sysID}}),ve.prototype.toString=function(xe){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(xe))},ve}(be)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(oe,Ue,Fe){(function(){var me,ce,be,Le,Se=function(ve,xe){for(var fe in xe)ke.call(xe,fe)&&(ve[fe]=xe[fe]);function z(){this.constructor=ve}return z.prototype=xe.prototype,ve.prototype=new z,ve.__super__=xe.prototype,ve},ke={}.hasOwnProperty;Le=oe("./Utility").isObject,be=oe("./XMLNode"),me=oe("./NodeType"),Ue.exports=ce=function(ve){Se(xe,ve);function xe(fe,z,ee,ae){var re;xe.__super__.constructor.call(this,fe),Le(z)&&(re=z,z=re.version,ee=re.encoding,ae=re.standalone),z||(z="1.0"),this.type=me.Declaration,this.version=this.stringify.xmlVersion(z),ee!=null&&(this.encoding=this.stringify.xmlEncoding(ee)),ae!=null&&(this.standalone=this.stringify.xmlStandalone(ae))}return xe.prototype.toString=function(fe){return this.options.writer.declaration(this,this.options.writer.filterOptions(fe))},xe}(be)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(oe,Ue,Fe){(function(){var me,ce,be,Le,Se,ke,ve,xe,fe,z=function(ae,re){for(var le in re)ee.call(re,le)&&(ae[le]=re[le]);function ue(){this.constructor=ae}return ue.prototype=re.prototype,ae.prototype=new ue,ae.__super__=re.prototype,ae},ee={}.hasOwnProperty;fe=oe("./Utility").isObject,xe=oe("./XMLNode"),me=oe("./NodeType"),ce=oe("./XMLDTDAttList"),Le=oe("./XMLDTDEntity"),be=oe("./XMLDTDElement"),Se=oe("./XMLDTDNotation"),ve=oe("./XMLNamedNodeMap"),Ue.exports=ke=function(ae){z(re,ae);function re(le,ue,pe){var Ce,Pe,Ie,Oe,Ae,je;if(re.__super__.constructor.call(this,le),this.type=me.DocType,le.children){for(Oe=le.children,Pe=0,Ie=Oe.length;Pe<Ie;Pe++)if(Ce=Oe[Pe],Ce.type===me.Element){this.name=Ce.name;break}}this.documentObject=le,fe(ue)&&(Ae=ue,ue=Ae.pubID,pe=Ae.sysID),pe==null&&(je=[ue,pe],pe=je[0],ue=je[1]),ue!=null&&(this.pubID=this.stringify.dtdPubID(ue)),pe!=null&&(this.sysID=this.stringify.dtdSysID(pe))}return Object.defineProperty(re.prototype,"entities",{get:function(){var le,ue,pe,Ce,Pe;for(Ce={},Pe=this.children,ue=0,pe=Pe.length;ue<pe;ue++)le=Pe[ue],le.type===me.EntityDeclaration&&!le.pe&&(Ce[le.name]=le);return new ve(Ce)}}),Object.defineProperty(re.prototype,"notations",{get:function(){var le,ue,pe,Ce,Pe;for(Ce={},Pe=this.children,ue=0,pe=Pe.length;ue<pe;ue++)le=Pe[ue],le.type===me.NotationDeclaration&&(Ce[le.name]=le);return new ve(Ce)}}),Object.defineProperty(re.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(re.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(re.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),re.prototype.element=function(le,ue){var pe;return pe=new be(this,le,ue),this.children.push(pe),this},re.prototype.attList=function(le,ue,pe,Ce,Pe){var Ie;return Ie=new ce(this,le,ue,pe,Ce,Pe),this.children.push(Ie),this},re.prototype.entity=function(le,ue){var pe;return pe=new Le(this,!1,le,ue),this.children.push(pe),this},re.prototype.pEntity=function(le,ue){var pe;return pe=new Le(this,!0,le,ue),this.children.push(pe),this},re.prototype.notation=function(le,ue){var pe;return pe=new Se(this,le,ue),this.children.push(pe),this},re.prototype.toString=function(le){return this.options.writer.docType(this,this.options.writer.filterOptions(le))},re.prototype.ele=function(le,ue){return this.element(le,ue)},re.prototype.att=function(le,ue,pe,Ce,Pe){return this.attList(le,ue,pe,Ce,Pe)},re.prototype.ent=function(le,ue){return this.entity(le,ue)},re.prototype.pent=function(le,ue){return this.pEntity(le,ue)},re.prototype.not=function(le,ue){return this.notation(le,ue)},re.prototype.up=function(){return this.root()||this.documentObject},re.prototype.isEqualNode=function(le){return!(!re.__super__.isEqualNode.apply(this,arguments).isEqualNode(le)||le.name!==this.name||le.publicId!==this.publicId||le.systemId!==this.systemId)},re}(xe)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(oe,Ue,Fe){(function(){var me,ce,be,Le,Se,ke,ve,xe,fe=function(ee,ae){for(var re in ae)z.call(ae,re)&&(ee[re]=ae[re]);function le(){this.constructor=ee}return le.prototype=ae.prototype,ee.prototype=new le,ee.__super__=ae.prototype,ee},z={}.hasOwnProperty;xe=oe("./Utility").isPlainObject,be=oe("./XMLDOMImplementation"),ce=oe("./XMLDOMConfiguration"),Se=oe("./XMLNode"),me=oe("./NodeType"),ve=oe("./XMLStringifier"),ke=oe("./XMLStringWriter"),Ue.exports=Le=function(ee){fe(ae,ee);function ae(re){ae.__super__.constructor.call(this,null),this.name="#document",this.type=me.Document,this.documentURI=null,this.domConfig=new ce,re||(re={}),re.writer||(re.writer=new ke),this.options=re,this.stringify=new ve(re)}return Object.defineProperty(ae.prototype,"implementation",{value:new be}),Object.defineProperty(ae.prototype,"doctype",{get:function(){var re,le,ue,pe;for(pe=this.children,le=0,ue=pe.length;le<ue;le++)if(re=pe[le],re.type===me.DocType)return re;return null}}),Object.defineProperty(ae.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(ae.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(ae.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(ae.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===me.Declaration?this.children[0].encoding:null}}),Object.defineProperty(ae.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===me.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(ae.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===me.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(ae.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(ae.prototype,"origin",{get:function(){return null}}),Object.defineProperty(ae.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(ae.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(ae.prototype,"contentType",{get:function(){return null}}),ae.prototype.end=function(re){var le;return le={},re?xe(re)&&(le=re,re=this.options.writer):re=this.options.writer,re.document(this,re.filterOptions(le))},ae.prototype.toString=function(re){return this.options.writer.document(this,this.options.writer.filterOptions(re))},ae.prototype.createElement=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createTextNode=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createComment=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createCDATASection=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createProcessingInstruction=function(re,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createAttribute=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createEntityReference=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.getElementsByTagName=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.importNode=function(re,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createElementNS=function(re,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createAttributeNS=function(re,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.getElementsByTagNameNS=function(re,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.getElementById=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.adoptNode=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.renameNode=function(re,le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.getElementsByClassName=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createEvent=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createNodeIterator=function(re,le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.createTreeWalker=function(re,le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae}(Se)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(oe,Ue,Fe){(function(){var me,ce,be,Le,Se,ke,ve,xe,fe,z,ee,ae,re,le,ue,pe,Ce,Pe,Ie,Oe,Ae,je,Be,_e,qe={}.hasOwnProperty;_e=oe("./Utility"),je=_e.isObject,Ae=_e.isFunction,Be=_e.isPlainObject,Oe=_e.getValue,me=oe("./NodeType"),ae=oe("./XMLDocument"),le=oe("./XMLElement"),Le=oe("./XMLCData"),Se=oe("./XMLComment"),pe=oe("./XMLRaw"),Ie=oe("./XMLText"),ue=oe("./XMLProcessingInstruction"),z=oe("./XMLDeclaration"),ee=oe("./XMLDocType"),ke=oe("./XMLDTDAttList"),xe=oe("./XMLDTDEntity"),ve=oe("./XMLDTDElement"),fe=oe("./XMLDTDNotation"),be=oe("./XMLAttribute"),Pe=oe("./XMLStringifier"),Ce=oe("./XMLStringWriter"),ce=oe("./WriterState"),Ue.exports=re=function(){function ze(Ye,et,lt){var dt;this.name="?xml",this.type=me.Document,Ye||(Ye={}),dt={},Ye.writer?Be(Ye.writer)&&(dt=Ye.writer,Ye.writer=new Ce):Ye.writer=new Ce,this.options=Ye,this.writer=Ye.writer,this.writerOptions=this.writer.filterOptions(dt),this.stringify=new Pe(Ye),this.onDataCallback=et||function(){},this.onEndCallback=lt||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return ze.prototype.createChildNode=function(Ye){var et,lt,dt,vt,Je,ot,ft,xt;switch(Ye.type){case me.CData:this.cdata(Ye.value);break;case me.Comment:this.comment(Ye.value);break;case me.Element:dt={},ft=Ye.attribs;for(lt in ft)qe.call(ft,lt)&&(et=ft[lt],dt[lt]=et.value);this.node(Ye.name,dt);break;case me.Dummy:this.dummy();break;case me.Raw:this.raw(Ye.value);break;case me.Text:this.text(Ye.value);break;case me.ProcessingInstruction:this.instruction(Ye.target,Ye.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+Ye.constructor.name)}for(xt=Ye.children,Je=0,ot=xt.length;Je<ot;Je++)vt=xt[Je],this.createChildNode(vt),vt.type===me.Element&&this.up();return this},ze.prototype.dummy=function(){return this},ze.prototype.node=function(Ye,et,lt){var dt;if(Ye==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(Ye));return this.openCurrent(),Ye=Oe(Ye),et==null&&(et={}),et=Oe(et),je(et)||(dt=[et,lt],lt=dt[0],et=dt[1]),this.currentNode=new le(this,Ye,et),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,lt!=null&&this.text(lt),this},ze.prototype.element=function(Ye,et,lt){var dt,vt,Je,ot,ft,xt;if(this.currentNode&&this.currentNode.type===me.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(Ye)||je(Ye)||Ae(Ye))for(ot=this.options.noValidation,this.options.noValidation=!0,xt=new ae(this.options).element("TEMP_ROOT"),xt.element(Ye),this.options.noValidation=ot,ft=xt.children,vt=0,Je=ft.length;vt<Je;vt++)dt=ft[vt],this.createChildNode(dt),dt.type===me.Element&&this.up();else this.node(Ye,et,lt);return this},ze.prototype.attribute=function(Ye,et){var lt,dt;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(Ye));if(Ye!=null&&(Ye=Oe(Ye)),je(Ye))for(lt in Ye)qe.call(Ye,lt)&&(dt=Ye[lt],this.attribute(lt,dt));else Ae(et)&&(et=et.apply()),this.options.keepNullAttributes&&et==null?this.currentNode.attribs[Ye]=new be(this,Ye,""):et!=null&&(this.currentNode.attribs[Ye]=new be(this,Ye,et));return this},ze.prototype.text=function(Ye){var et;return this.openCurrent(),et=new Ie(this,Ye),this.onData(this.writer.text(et,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.cdata=function(Ye){var et;return this.openCurrent(),et=new Le(this,Ye),this.onData(this.writer.cdata(et,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.comment=function(Ye){var et;return this.openCurrent(),et=new Se(this,Ye),this.onData(this.writer.comment(et,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.raw=function(Ye){var et;return this.openCurrent(),et=new pe(this,Ye),this.onData(this.writer.raw(et,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.instruction=function(Ye,et){var lt,dt,vt,Je,ot;if(this.openCurrent(),Ye!=null&&(Ye=Oe(Ye)),et!=null&&(et=Oe(et)),Array.isArray(Ye))for(lt=0,Je=Ye.length;lt<Je;lt++)dt=Ye[lt],this.instruction(dt);else if(je(Ye))for(dt in Ye)qe.call(Ye,dt)&&(vt=Ye[dt],this.instruction(dt,vt));else Ae(et)&&(et=et.apply()),ot=new ue(this,Ye,et),this.onData(this.writer.processingInstruction(ot,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},ze.prototype.declaration=function(Ye,et,lt){var dt;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return dt=new z(this,Ye,et,lt),this.onData(this.writer.declaration(dt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.doctype=function(Ye,et,lt){if(this.openCurrent(),Ye==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new ee(this,et,lt),this.currentNode.rootNodeName=Ye,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},ze.prototype.dtdElement=function(Ye,et){var lt;return this.openCurrent(),lt=new ve(this,Ye,et),this.onData(this.writer.dtdElement(lt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.attList=function(Ye,et,lt,dt,vt){var Je;return this.openCurrent(),Je=new ke(this,Ye,et,lt,dt,vt),this.onData(this.writer.dtdAttList(Je,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.entity=function(Ye,et){var lt;return this.openCurrent(),lt=new xe(this,!1,Ye,et),this.onData(this.writer.dtdEntity(lt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.pEntity=function(Ye,et){var lt;return this.openCurrent(),lt=new xe(this,!0,Ye,et),this.onData(this.writer.dtdEntity(lt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.notation=function(Ye,et){var lt;return this.openCurrent(),lt=new fe(this,Ye,et),this.onData(this.writer.dtdNotation(lt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ze.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},ze.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},ze.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},ze.prototype.openNode=function(Ye){var et,lt,dt,vt;if(!Ye.isOpen){if(!this.root&&this.currentLevel===0&&Ye.type===me.Element&&(this.root=Ye),lt="",Ye.type===me.Element){this.writerOptions.state=ce.OpenTag,lt=this.writer.indent(Ye,this.writerOptions,this.currentLevel)+"<"+Ye.name,vt=Ye.attribs;for(dt in vt)qe.call(vt,dt)&&(et=vt[dt],lt+=this.writer.attribute(et,this.writerOptions,this.currentLevel));lt+=(Ye.children?">":"/>")+this.writer.endline(Ye,this.writerOptions,this.currentLevel),this.writerOptions.state=ce.InsideTag}else this.writerOptions.state=ce.OpenTag,lt=this.writer.indent(Ye,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+Ye.rootNodeName,Ye.pubID&&Ye.sysID?lt+=' PUBLIC "'+Ye.pubID+'" "'+Ye.sysID+'"':Ye.sysID&&(lt+=' SYSTEM "'+Ye.sysID+'"'),Ye.children?(lt+=" [",this.writerOptions.state=ce.InsideTag):(this.writerOptions.state=ce.CloseTag,lt+=">"),lt+=this.writer.endline(Ye,this.writerOptions,this.currentLevel);return this.onData(lt,this.currentLevel),Ye.isOpen=!0}},ze.prototype.closeNode=function(Ye){var et;if(!Ye.isClosed)return et="",this.writerOptions.state=ce.CloseTag,Ye.type===me.Element?et=this.writer.indent(Ye,this.writerOptions,this.currentLevel)+"</"+Ye.name+">"+this.writer.endline(Ye,this.writerOptions,this.currentLevel):et=this.writer.indent(Ye,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(Ye,this.writerOptions,this.currentLevel),this.writerOptions.state=ce.None,this.onData(et,this.currentLevel),Ye.isClosed=!0},ze.prototype.onData=function(Ye,et){return this.documentStarted=!0,this.onDataCallback(Ye,et+1)},ze.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},ze.prototype.debugInfo=function(Ye){return Ye==null?"":"node: <"+Ye+">"},ze.prototype.ele=function(){return this.element.apply(this,arguments)},ze.prototype.nod=function(Ye,et,lt){return this.node(Ye,et,lt)},ze.prototype.txt=function(Ye){return this.text(Ye)},ze.prototype.dat=function(Ye){return this.cdata(Ye)},ze.prototype.com=function(Ye){return this.comment(Ye)},ze.prototype.ins=function(Ye,et){return this.instruction(Ye,et)},ze.prototype.dec=function(Ye,et,lt){return this.declaration(Ye,et,lt)},ze.prototype.dtd=function(Ye,et,lt){return this.doctype(Ye,et,lt)},ze.prototype.e=function(Ye,et,lt){return this.element(Ye,et,lt)},ze.prototype.n=function(Ye,et,lt){return this.node(Ye,et,lt)},ze.prototype.t=function(Ye){return this.text(Ye)},ze.prototype.d=function(Ye){return this.cdata(Ye)},ze.prototype.c=function(Ye){return this.comment(Ye)},ze.prototype.r=function(Ye){return this.raw(Ye)},ze.prototype.i=function(Ye,et){return this.instruction(Ye,et)},ze.prototype.att=function(){return this.currentNode&&this.currentNode.type===me.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},ze.prototype.a=function(){return this.currentNode&&this.currentNode.type===me.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},ze.prototype.ent=function(Ye,et){return this.entity(Ye,et)},ze.prototype.pent=function(Ye,et){return this.pEntity(Ye,et)},ze.prototype.not=function(Ye,et){return this.notation(Ye,et)},ze}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLAttribute":431,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDocument":445,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLStringWriter":455,"./XMLStringifier":456,"./XMLText":457}],447:[function(oe,Ue,Fe){(function(){var me,ce,be,Le=function(ke,ve){for(var xe in ve)Se.call(ve,xe)&&(ke[xe]=ve[xe]);function fe(){this.constructor=ke}return fe.prototype=ve.prototype,ke.prototype=new fe,ke.__super__=ve.prototype,ke},Se={}.hasOwnProperty;be=oe("./XMLNode"),me=oe("./NodeType"),Ue.exports=ce=function(ke){Le(ve,ke);function ve(xe){ve.__super__.constructor.call(this,xe),this.type=me.Dummy}return ve.prototype.clone=function(){return Object.create(this)},ve.prototype.toString=function(xe){return""},ve}(be)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(oe,Ue,Fe){(function(){var me,ce,be,Le,Se,ke,ve,xe,fe,z=function(ae,re){for(var le in re)ee.call(re,le)&&(ae[le]=re[le]);function ue(){this.constructor=ae}return ue.prototype=re.prototype,ae.prototype=new ue,ae.__super__=re.prototype,ae},ee={}.hasOwnProperty;fe=oe("./Utility"),xe=fe.isObject,ve=fe.isFunction,ke=fe.getValue,Se=oe("./XMLNode"),me=oe("./NodeType"),ce=oe("./XMLAttribute"),Le=oe("./XMLNamedNodeMap"),Ue.exports=be=function(ae){z(re,ae);function re(le,ue,pe){var Ce,Pe,Ie,Oe;if(re.__super__.constructor.call(this,le),ue==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(ue),this.type=me.Element,this.attribs={},this.schemaTypeInfo=null,pe!=null&&this.attribute(pe),le.type===me.Document&&(this.isRoot=!0,this.documentObject=le,le.rootObject=this,le.children)){for(Oe=le.children,Pe=0,Ie=Oe.length;Pe<Ie;Pe++)if(Ce=Oe[Pe],Ce.type===me.DocType){Ce.name=this.name;break}}}return Object.defineProperty(re.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(re.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(re.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(re.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(re.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(re.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(re.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(re.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new Le(this.attribs)),this.attributeMap}}),re.prototype.clone=function(){var le,ue,pe,Ce;pe=Object.create(this),pe.isRoot&&(pe.documentObject=null),pe.attribs={},Ce=this.attribs;for(ue in Ce)ee.call(Ce,ue)&&(le=Ce[ue],pe.attribs[ue]=le.clone());return pe.children=[],this.children.forEach(function(Pe){var Ie;return Ie=Pe.clone(),Ie.parent=pe,pe.children.push(Ie)}),pe},re.prototype.attribute=function(le,ue){var pe,Ce;if(le!=null&&(le=ke(le)),xe(le))for(pe in le)ee.call(le,pe)&&(Ce=le[pe],this.attribute(pe,Ce));else ve(ue)&&(ue=ue.apply()),this.options.keepNullAttributes&&ue==null?this.attribs[le]=new ce(this,le,""):ue!=null&&(this.attribs[le]=new ce(this,le,ue));return this},re.prototype.removeAttribute=function(le){var ue,pe,Ce;if(le==null)throw new Error("Missing attribute name. "+this.debugInfo());if(le=ke(le),Array.isArray(le))for(pe=0,Ce=le.length;pe<Ce;pe++)ue=le[pe],delete this.attribs[ue];else delete this.attribs[le];return this},re.prototype.toString=function(le){return this.options.writer.element(this,this.options.writer.filterOptions(le))},re.prototype.att=function(le,ue){return this.attribute(le,ue)},re.prototype.a=function(le,ue){return this.attribute(le,ue)},re.prototype.getAttribute=function(le){return this.attribs.hasOwnProperty(le)?this.attribs[le].value:null},re.prototype.setAttribute=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getAttributeNode=function(le){return this.attribs.hasOwnProperty(le)?this.attribs[le]:null},re.prototype.setAttributeNode=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.removeAttributeNode=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getElementsByTagName=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getAttributeNS=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.setAttributeNS=function(le,ue,pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.removeAttributeNS=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getAttributeNodeNS=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.setAttributeNodeNS=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getElementsByTagNameNS=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.hasAttribute=function(le){return this.attribs.hasOwnProperty(le)},re.prototype.hasAttributeNS=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.setIdAttribute=function(le,ue){return this.attribs.hasOwnProperty(le)?this.attribs[le].isId:ue},re.prototype.setIdAttributeNS=function(le,ue,pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.setIdAttributeNode=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getElementsByTagName=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getElementsByTagNameNS=function(le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.getElementsByClassName=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.isEqualNode=function(le){var ue,pe,Ce;if(!re.__super__.isEqualNode.apply(this,arguments).isEqualNode(le)||le.namespaceURI!==this.namespaceURI||le.prefix!==this.prefix||le.localName!==this.localName||le.attribs.length!==this.attribs.length)return!1;for(ue=pe=0,Ce=this.attribs.length-1;0<=Ce?pe<=Ce:pe>=Ce;ue=0<=Ce?++pe:--pe)if(!this.attribs[ue].isEqualNode(le.attribs[ue]))return!1;return!0},re}(Se)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(oe,Ue,Fe){(function(){var me;Ue.exports=me=function(){function ce(be){this.nodes=be}return Object.defineProperty(ce.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),ce.prototype.clone=function(){return this.nodes=null},ce.prototype.getNamedItem=function(be){return this.nodes[be]},ce.prototype.setNamedItem=function(be){var Le;return Le=this.nodes[be.nodeName],this.nodes[be.nodeName]=be,Le||null},ce.prototype.removeNamedItem=function(be){var Le;return Le=this.nodes[be],delete this.nodes[be],Le||null},ce.prototype.item=function(be){return this.nodes[Object.keys(this.nodes)[be]]||null},ce.prototype.getNamedItemNS=function(be,Le){throw new Error("This DOM method is not implemented.")},ce.prototype.setNamedItemNS=function(be){throw new Error("This DOM method is not implemented.")},ce.prototype.removeNamedItemNS=function(be,Le){throw new Error("This DOM method is not implemented.")},ce}()}).call(this)},{}],450:[function(oe,Ue,Fe){(function(){var me,ce,be,Le,Se,ke,ve,xe,fe,z,ee,ae,re,le,ue,pe,Ce,Pe,Ie,Oe={}.hasOwnProperty;Ie=oe("./Utility"),Pe=Ie.isObject,Ce=Ie.isFunction,pe=Ie.isEmpty,ue=Ie.getValue,xe=null,be=null,Le=null,Se=null,ke=null,re=null,le=null,ae=null,ve=null,ce=null,ee=null,fe=null,me=null,Ue.exports=z=function(){function Ae(je){this.parent=je,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,xe||(xe=oe("./XMLElement"),be=oe("./XMLCData"),Le=oe("./XMLComment"),Se=oe("./XMLDeclaration"),ke=oe("./XMLDocType"),re=oe("./XMLRaw"),le=oe("./XMLText"),ae=oe("./XMLProcessingInstruction"),ve=oe("./XMLDummy"),ce=oe("./NodeType"),ee=oe("./XMLNodeList"),fe=oe("./XMLNamedNodeMap"),me=oe("./DocumentPosition"))}return Object.defineProperty(Ae.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(Ae.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(Ae.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(Ae.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(Ae.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new ee(this.children)),this.childNodeList}}),Object.defineProperty(Ae.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(Ae.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(Ae.prototype,"previousSibling",{get:function(){var je;return je=this.parent.children.indexOf(this),this.parent.children[je-1]||null}}),Object.defineProperty(Ae.prototype,"nextSibling",{get:function(){var je;return je=this.parent.children.indexOf(this),this.parent.children[je+1]||null}}),Object.defineProperty(Ae.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(Ae.prototype,"textContent",{get:function(){var je,Be,_e,qe,ze;if(this.nodeType===ce.Element||this.nodeType===ce.DocumentFragment){for(ze="",qe=this.children,Be=0,_e=qe.length;Be<_e;Be++)je=qe[Be],je.textContent&&(ze+=je.textContent);return ze}else return null},set:function(je){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Ae.prototype.setParent=function(je){var Be,_e,qe,ze,Ye;for(this.parent=je,je&&(this.options=je.options,this.stringify=je.stringify),ze=this.children,Ye=[],_e=0,qe=ze.length;_e<qe;_e++)Be=ze[_e],Ye.push(Be.setParent(this));return Ye},Ae.prototype.element=function(je,Be,_e){var qe,ze,Ye,et,lt,dt,vt,Je,ot,ft,xt;if(dt=null,Be===null&&_e==null&&(ot=[{},null],Be=ot[0],_e=ot[1]),Be==null&&(Be={}),Be=ue(Be),Pe(Be)||(ft=[Be,_e],_e=ft[0],Be=ft[1]),je!=null&&(je=ue(je)),Array.isArray(je))for(Ye=0,vt=je.length;Ye<vt;Ye++)ze=je[Ye],dt=this.element(ze);else if(Ce(je))dt=this.element(je.apply());else if(Pe(je)){for(lt in je)if(Oe.call(je,lt))if(xt=je[lt],Ce(xt)&&(xt=xt.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&<.indexOf(this.stringify.convertAttKey)===0)dt=this.attribute(lt.substr(this.stringify.convertAttKey.length),xt);else if(!this.options.separateArrayItems&&Array.isArray(xt)&&pe(xt))dt=this.dummy();else if(Pe(xt)&&pe(xt))dt=this.element(lt);else if(!this.options.keepNullNodes&&xt==null)dt=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(xt))for(et=0,Je=xt.length;et<Je;et++)ze=xt[et],qe={},qe[lt]=ze,dt=this.element(qe);else Pe(xt)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&<.indexOf(this.stringify.convertTextKey)===0?dt=this.element(xt):(dt=this.element(lt),dt.element(xt)):dt=this.element(lt,xt)}else!this.options.keepNullNodes&&_e===null?dt=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&je.indexOf(this.stringify.convertTextKey)===0?dt=this.text(_e):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&je.indexOf(this.stringify.convertCDataKey)===0?dt=this.cdata(_e):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&je.indexOf(this.stringify.convertCommentKey)===0?dt=this.comment(_e):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&je.indexOf(this.stringify.convertRawKey)===0?dt=this.raw(_e):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&je.indexOf(this.stringify.convertPIKey)===0?dt=this.instruction(je.substr(this.stringify.convertPIKey.length),_e):dt=this.node(je,Be,_e);if(dt==null)throw new Error("Could not create any elements with: "+je+". "+this.debugInfo());return dt},Ae.prototype.insertBefore=function(je,Be,_e){var qe,ze,Ye,et,lt;if(je!=null&&je.type)return Ye=je,et=Be,Ye.setParent(this),et?(ze=children.indexOf(et),lt=children.splice(ze),children.push(Ye),Array.prototype.push.apply(children,lt)):children.push(Ye),Ye;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(je));return ze=this.parent.children.indexOf(this),lt=this.parent.children.splice(ze),qe=this.parent.element(je,Be,_e),Array.prototype.push.apply(this.parent.children,lt),qe},Ae.prototype.insertAfter=function(je,Be,_e){var qe,ze,Ye;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(je));return ze=this.parent.children.indexOf(this),Ye=this.parent.children.splice(ze+1),qe=this.parent.element(je,Be,_e),Array.prototype.push.apply(this.parent.children,Ye),qe},Ae.prototype.remove=function(){var je,Be;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return je=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[je,je-je+1].concat(Be=[])),this.parent},Ae.prototype.node=function(je,Be,_e){var qe,ze;return je!=null&&(je=ue(je)),Be||(Be={}),Be=ue(Be),Pe(Be)||(ze=[Be,_e],_e=ze[0],Be=ze[1]),qe=new xe(this,je,Be),_e!=null&&qe.text(_e),this.children.push(qe),qe},Ae.prototype.text=function(je){var Be;return Pe(je)&&this.element(je),Be=new le(this,je),this.children.push(Be),this},Ae.prototype.cdata=function(je){var Be;return Be=new be(this,je),this.children.push(Be),this},Ae.prototype.comment=function(je){var Be;return Be=new Le(this,je),this.children.push(Be),this},Ae.prototype.commentBefore=function(je){var Be,_e,qe;return _e=this.parent.children.indexOf(this),qe=this.parent.children.splice(_e),Be=this.parent.comment(je),Array.prototype.push.apply(this.parent.children,qe),this},Ae.prototype.commentAfter=function(je){var Be,_e,qe;return _e=this.parent.children.indexOf(this),qe=this.parent.children.splice(_e+1),Be=this.parent.comment(je),Array.prototype.push.apply(this.parent.children,qe),this},Ae.prototype.raw=function(je){var Be;return Be=new re(this,je),this.children.push(Be),this},Ae.prototype.dummy=function(){var je;return je=new ve(this),je},Ae.prototype.instruction=function(je,Be){var _e,qe,ze,Ye,et;if(je!=null&&(je=ue(je)),Be!=null&&(Be=ue(Be)),Array.isArray(je))for(Ye=0,et=je.length;Ye<et;Ye++)_e=je[Ye],this.instruction(_e);else if(Pe(je))for(_e in je)Oe.call(je,_e)&&(qe=je[_e],this.instruction(_e,qe));else Ce(Be)&&(Be=Be.apply()),ze=new ae(this,je,Be),this.children.push(ze);return this},Ae.prototype.instructionBefore=function(je,Be){var _e,qe,ze;return qe=this.parent.children.indexOf(this),ze=this.parent.children.splice(qe),_e=this.parent.instruction(je,Be),Array.prototype.push.apply(this.parent.children,ze),this},Ae.prototype.instructionAfter=function(je,Be){var _e,qe,ze;return qe=this.parent.children.indexOf(this),ze=this.parent.children.splice(qe+1),_e=this.parent.instruction(je,Be),Array.prototype.push.apply(this.parent.children,ze),this},Ae.prototype.declaration=function(je,Be,_e){var qe,ze;return qe=this.document(),ze=new Se(qe,je,Be,_e),qe.children.length===0?qe.children.unshift(ze):qe.children[0].type===ce.Declaration?qe.children[0]=ze:qe.children.unshift(ze),qe.root()||qe},Ae.prototype.dtd=function(je,Be){var _e,qe,ze,Ye,et,lt,dt,vt,Je,ot;for(qe=this.document(),ze=new ke(qe,je,Be),Je=qe.children,Ye=et=0,dt=Je.length;et<dt;Ye=++et)if(_e=Je[Ye],_e.type===ce.DocType)return qe.children[Ye]=ze,ze;for(ot=qe.children,Ye=lt=0,vt=ot.length;lt<vt;Ye=++lt)if(_e=ot[Ye],_e.isRoot)return qe.children.splice(Ye,0,ze),ze;return qe.children.push(ze),ze},Ae.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},Ae.prototype.root=function(){var je;for(je=this;je;){if(je.type===ce.Document)return je.rootObject;if(je.isRoot)return je;je=je.parent}},Ae.prototype.document=function(){var je;for(je=this;je;){if(je.type===ce.Document)return je;je=je.parent}},Ae.prototype.end=function(je){return this.document().end(je)},Ae.prototype.prev=function(){var je;if(je=this.parent.children.indexOf(this),je<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[je-1]},Ae.prototype.next=function(){var je;if(je=this.parent.children.indexOf(this),je===-1||je===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[je+1]},Ae.prototype.importDocument=function(je){var Be;return Be=je.root().clone(),Be.parent=this,Be.isRoot=!1,this.children.push(Be),this},Ae.prototype.debugInfo=function(je){var Be,_e;return je=je||this.name,je==null&&!((Be=this.parent)!=null&&Be.name)?"":je==null?"parent: <"+this.parent.name+">":(_e=this.parent)!=null&&_e.name?"node: <"+je+">, parent: <"+this.parent.name+">":"node: <"+je+">"},Ae.prototype.ele=function(je,Be,_e){return this.element(je,Be,_e)},Ae.prototype.nod=function(je,Be,_e){return this.node(je,Be,_e)},Ae.prototype.txt=function(je){return this.text(je)},Ae.prototype.dat=function(je){return this.cdata(je)},Ae.prototype.com=function(je){return this.comment(je)},Ae.prototype.ins=function(je,Be){return this.instruction(je,Be)},Ae.prototype.doc=function(){return this.document()},Ae.prototype.dec=function(je,Be,_e){return this.declaration(je,Be,_e)},Ae.prototype.e=function(je,Be,_e){return this.element(je,Be,_e)},Ae.prototype.n=function(je,Be,_e){return this.node(je,Be,_e)},Ae.prototype.t=function(je){return this.text(je)},Ae.prototype.d=function(je){return this.cdata(je)},Ae.prototype.c=function(je){return this.comment(je)},Ae.prototype.r=function(je){return this.raw(je)},Ae.prototype.i=function(je,Be){return this.instruction(je,Be)},Ae.prototype.u=function(){return this.up()},Ae.prototype.importXMLBuilder=function(je){return this.importDocument(je)},Ae.prototype.replaceChild=function(je,Be){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ae.prototype.removeChild=function(je){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ae.prototype.appendChild=function(je){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ae.prototype.hasChildNodes=function(){return this.children.length!==0},Ae.prototype.cloneNode=function(je){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ae.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ae.prototype.isSupported=function(je,Be){return!0},Ae.prototype.hasAttributes=function(){return this.attribs.length!==0},Ae.prototype.compareDocumentPosition=function(je){var Be,_e;return Be=this,Be===je?0:this.document()!==je.document()?(_e=me.Disconnected|me.ImplementationSpecific,Math.random()<.5?_e|=me.Preceding:_e|=me.Following,_e):Be.isAncestor(je)?me.Contains|me.Preceding:Be.isDescendant(je)?me.Contains|me.Following:Be.isPreceding(je)?me.Preceding:me.Following},Ae.prototype.isSameNode=function(je){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ae.prototype.lookupPrefix=function(je){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ae.prototype.isDefaultNamespace=function(je){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ae.prototype.lookupNamespaceURI=function(je){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ae.prototype.isEqualNode=function(je){var Be,_e,qe;if(je.nodeType!==this.nodeType||je.children.length!==this.children.length)return!1;for(Be=_e=0,qe=this.children.length-1;0<=qe?_e<=qe:_e>=qe;Be=0<=qe?++_e:--_e)if(!this.children[Be].isEqualNode(je.children[Be]))return!1;return!0},Ae.prototype.getFeature=function(je,Be){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ae.prototype.setUserData=function(je,Be,_e){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ae.prototype.getUserData=function(je){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ae.prototype.contains=function(je){return je?je===this||this.isDescendant(je):!1},Ae.prototype.isDescendant=function(je){var Be,_e,qe,ze,Ye;for(Ye=this.children,qe=0,ze=Ye.length;qe<ze;qe++)if(Be=Ye[qe],je===Be||(_e=Be.isDescendant(je),_e))return!0;return!1},Ae.prototype.isAncestor=function(je){return je.isDescendant(this)},Ae.prototype.isPreceding=function(je){var Be,_e;return Be=this.treePosition(je),_e=this.treePosition(this),Be===-1||_e===-1?!1:Be<_e},Ae.prototype.isFollowing=function(je){var Be,_e;return Be=this.treePosition(je),_e=this.treePosition(this),Be===-1||_e===-1?!1:Be>_e},Ae.prototype.treePosition=function(je){var Be,_e;return _e=0,Be=!1,this.foreachTreeNode(this.document(),function(qe){if(_e++,!Be&&qe===je)return Be=!0}),Be?_e:-1},Ae.prototype.foreachTreeNode=function(je,Be){var _e,qe,ze,Ye,et;for(je||(je=this.document()),Ye=je.children,qe=0,ze=Ye.length;qe<ze;qe++){if(_e=Ye[qe],et=Be(_e))return et;if(et=this.foreachTreeNode(_e,Be),et)return et}},Ae}()}).call(this)},{"./DocumentPosition":427,"./NodeType":428,"./Utility":429,"./XMLCData":432,"./XMLComment":434,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLNamedNodeMap":449,"./XMLNodeList":451,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],451:[function(oe,Ue,Fe){(function(){var me;Ue.exports=me=function(){function ce(be){this.nodes=be}return Object.defineProperty(ce.prototype,"length",{get:function(){return this.nodes.length||0}}),ce.prototype.clone=function(){return this.nodes=null},ce.prototype.item=function(be){return this.nodes[be]||null},ce}()}).call(this)},{}],452:[function(oe,Ue,Fe){(function(){var me,ce,be,Le=function(ke,ve){for(var xe in ve)Se.call(ve,xe)&&(ke[xe]=ve[xe]);function fe(){this.constructor=ke}return fe.prototype=ve.prototype,ke.prototype=new fe,ke.__super__=ve.prototype,ke},Se={}.hasOwnProperty;me=oe("./NodeType"),ce=oe("./XMLCharacterData"),Ue.exports=be=function(ke){Le(ve,ke);function ve(xe,fe,z){if(ve.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=me.ProcessingInstruction,this.target=this.stringify.insTarget(fe),this.name=this.target,z&&(this.value=this.stringify.insValue(z))}return ve.prototype.clone=function(){return Object.create(this)},ve.prototype.toString=function(xe){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(xe))},ve.prototype.isEqualNode=function(xe){return!(!ve.__super__.isEqualNode.apply(this,arguments).isEqualNode(xe)||xe.target!==this.target)},ve}(ce)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(oe,Ue,Fe){(function(){var me,ce,be,Le=function(ke,ve){for(var xe in ve)Se.call(ve,xe)&&(ke[xe]=ve[xe]);function fe(){this.constructor=ke}return fe.prototype=ve.prototype,ke.prototype=new fe,ke.__super__=ve.prototype,ke},Se={}.hasOwnProperty;me=oe("./NodeType"),ce=oe("./XMLNode"),Ue.exports=be=function(ke){Le(ve,ke);function ve(xe,fe){if(ve.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=me.Raw,this.value=this.stringify.raw(fe)}return ve.prototype.clone=function(){return Object.create(this)},ve.prototype.toString=function(xe){return this.options.writer.raw(this,this.options.writer.filterOptions(xe))},ve}(ce)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(oe,Ue,Fe){(function(){var me,ce,be,Le,Se=function(ve,xe){for(var fe in xe)ke.call(xe,fe)&&(ve[fe]=xe[fe]);function z(){this.constructor=ve}return z.prototype=xe.prototype,ve.prototype=new z,ve.__super__=xe.prototype,ve},ke={}.hasOwnProperty;me=oe("./NodeType"),Le=oe("./XMLWriterBase"),ce=oe("./WriterState"),Ue.exports=be=function(ve){Se(xe,ve);function xe(fe,z){this.stream=fe,xe.__super__.constructor.call(this,z)}return xe.prototype.endline=function(fe,z,ee){return fe.isLastRootNode&&z.state===ce.CloseTag?"":xe.__super__.endline.call(this,fe,z,ee)},xe.prototype.document=function(fe,z){var ee,ae,re,le,ue,pe,Ce,Pe,Ie;for(Ce=fe.children,ae=re=0,ue=Ce.length;re<ue;ae=++re)ee=Ce[ae],ee.isLastRootNode=ae===fe.children.length-1;for(z=this.filterOptions(z),Pe=fe.children,Ie=[],le=0,pe=Pe.length;le<pe;le++)ee=Pe[le],Ie.push(this.writeChildNode(ee,z,0));return Ie},xe.prototype.attribute=function(fe,z,ee){return this.stream.write(xe.__super__.attribute.call(this,fe,z,ee))},xe.prototype.cdata=function(fe,z,ee){return this.stream.write(xe.__super__.cdata.call(this,fe,z,ee))},xe.prototype.comment=function(fe,z,ee){return this.stream.write(xe.__super__.comment.call(this,fe,z,ee))},xe.prototype.declaration=function(fe,z,ee){return this.stream.write(xe.__super__.declaration.call(this,fe,z,ee))},xe.prototype.docType=function(fe,z,ee){var ae,re,le,ue;if(ee||(ee=0),this.openNode(fe,z,ee),z.state=ce.OpenTag,this.stream.write(this.indent(fe,z,ee)),this.stream.write("<!DOCTYPE "+fe.root().name),fe.pubID&&fe.sysID?this.stream.write(' PUBLIC "'+fe.pubID+'" "'+fe.sysID+'"'):fe.sysID&&this.stream.write(' SYSTEM "'+fe.sysID+'"'),fe.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(fe,z,ee)),z.state=ce.InsideTag,ue=fe.children,re=0,le=ue.length;re<le;re++)ae=ue[re],this.writeChildNode(ae,z,ee+1);z.state=ce.CloseTag,this.stream.write("]")}return z.state=ce.CloseTag,this.stream.write(z.spaceBeforeSlash+">"),this.stream.write(this.endline(fe,z,ee)),z.state=ce.None,this.closeNode(fe,z,ee)},xe.prototype.element=function(fe,z,ee){var ae,re,le,ue,pe,Ce,Pe,Ie,Oe,Ae;ee||(ee=0),this.openNode(fe,z,ee),z.state=ce.OpenTag,this.stream.write(this.indent(fe,z,ee)+"<"+fe.name),Oe=fe.attribs;for(Pe in Oe)ke.call(Oe,Pe)&&(ae=Oe[Pe],this.attribute(ae,z,ee));if(le=fe.children.length,ue=le===0?null:fe.children[0],le===0||fe.children.every(function(je){return(je.type===me.Text||je.type===me.Raw)&&je.value===""}))z.allowEmpty?(this.stream.write(">"),z.state=ce.CloseTag,this.stream.write("</"+fe.name+">")):(z.state=ce.CloseTag,this.stream.write(z.spaceBeforeSlash+"/>"));else if(z.pretty&&le===1&&(ue.type===me.Text||ue.type===me.Raw)&&ue.value!=null)this.stream.write(">"),z.state=ce.InsideTag,z.suppressPrettyCount++,Ie=!0,this.writeChildNode(ue,z,ee+1),z.suppressPrettyCount--,Ie=!1,z.state=ce.CloseTag,this.stream.write("</"+fe.name+">");else{for(this.stream.write(">"+this.endline(fe,z,ee)),z.state=ce.InsideTag,Ae=fe.children,pe=0,Ce=Ae.length;pe<Ce;pe++)re=Ae[pe],this.writeChildNode(re,z,ee+1);z.state=ce.CloseTag,this.stream.write(this.indent(fe,z,ee)+"</"+fe.name+">")}return this.stream.write(this.endline(fe,z,ee)),z.state=ce.None,this.closeNode(fe,z,ee)},xe.prototype.processingInstruction=function(fe,z,ee){return this.stream.write(xe.__super__.processingInstruction.call(this,fe,z,ee))},xe.prototype.raw=function(fe,z,ee){return this.stream.write(xe.__super__.raw.call(this,fe,z,ee))},xe.prototype.text=function(fe,z,ee){return this.stream.write(xe.__super__.text.call(this,fe,z,ee))},xe.prototype.dtdAttList=function(fe,z,ee){return this.stream.write(xe.__super__.dtdAttList.call(this,fe,z,ee))},xe.prototype.dtdElement=function(fe,z,ee){return this.stream.write(xe.__super__.dtdElement.call(this,fe,z,ee))},xe.prototype.dtdEntity=function(fe,z,ee){return this.stream.write(xe.__super__.dtdEntity.call(this,fe,z,ee))},xe.prototype.dtdNotation=function(fe,z,ee){return this.stream.write(xe.__super__.dtdNotation.call(this,fe,z,ee))},xe}(Le)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(oe,Ue,Fe){(function(){var me,ce,be=function(Se,ke){for(var ve in ke)Le.call(ke,ve)&&(Se[ve]=ke[ve]);function xe(){this.constructor=Se}return xe.prototype=ke.prototype,Se.prototype=new xe,Se.__super__=ke.prototype,Se},Le={}.hasOwnProperty;ce=oe("./XMLWriterBase"),Ue.exports=me=function(Se){be(ke,Se);function ke(ve){ke.__super__.constructor.call(this,ve)}return ke.prototype.document=function(ve,xe){var fe,z,ee,ae,re;for(xe=this.filterOptions(xe),ae="",re=ve.children,z=0,ee=re.length;z<ee;z++)fe=re[z],ae+=this.writeChildNode(fe,xe,0);return xe.pretty&&ae.slice(-xe.newline.length)===xe.newline&&(ae=ae.slice(0,-xe.newline.length)),ae},ke}(ce)}).call(this)},{"./XMLWriterBase":458}],456:[function(oe,Ue,Fe){(function(){var me,ce=function(Le,Se){return function(){return Le.apply(Se,arguments)}},be={}.hasOwnProperty;Ue.exports=me=function(){function Le(Se){this.assertLegalName=ce(this.assertLegalName,this),this.assertLegalChar=ce(this.assertLegalChar,this);var ke,ve,xe;Se||(Se={}),this.options=Se,this.options.version||(this.options.version="1.0"),ve=Se.stringify||{};for(ke in ve)be.call(ve,ke)&&(xe=ve[ke],this[ke]=xe)}return Le.prototype.name=function(Se){return this.options.noValidation?Se:this.assertLegalName(""+Se||"")},Le.prototype.text=function(Se){return this.options.noValidation?Se:this.assertLegalChar(this.textEscape(""+Se||""))},Le.prototype.cdata=function(Se){return this.options.noValidation?Se:(Se=""+Se||"",Se=Se.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(Se))},Le.prototype.comment=function(Se){if(this.options.noValidation)return Se;if(Se=""+Se||"",Se.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+Se);return this.assertLegalChar(Se)},Le.prototype.raw=function(Se){return this.options.noValidation?Se:""+Se||""},Le.prototype.attValue=function(Se){return this.options.noValidation?Se:this.assertLegalChar(this.attEscape(Se=""+Se||""))},Le.prototype.insTarget=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Le.prototype.insValue=function(Se){if(this.options.noValidation)return Se;if(Se=""+Se||"",Se.match(/\?>/))throw new Error("Invalid processing instruction value: "+Se);return this.assertLegalChar(Se)},Le.prototype.xmlVersion=function(Se){if(this.options.noValidation)return Se;if(Se=""+Se||"",!Se.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+Se);return Se},Le.prototype.xmlEncoding=function(Se){if(this.options.noValidation)return Se;if(Se=""+Se||"",!Se.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+Se);return this.assertLegalChar(Se)},Le.prototype.xmlStandalone=function(Se){return this.options.noValidation?Se:Se?"yes":"no"},Le.prototype.dtdPubID=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Le.prototype.dtdSysID=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Le.prototype.dtdElementValue=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Le.prototype.dtdAttType=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Le.prototype.dtdAttDefault=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Le.prototype.dtdEntityValue=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Le.prototype.dtdNData=function(Se){return this.options.noValidation?Se:this.assertLegalChar(""+Se||"")},Le.prototype.convertAttKey="@",Le.prototype.convertPIKey="?",Le.prototype.convertTextKey="#text",Le.prototype.convertCDataKey="#cdata",Le.prototype.convertCommentKey="#comment",Le.prototype.convertRawKey="#raw",Le.prototype.assertLegalChar=function(Se){var ke,ve;if(this.options.noValidation)return Se;if(ke="",this.options.version==="1.0"){if(ke=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ve=Se.match(ke))throw new Error("Invalid character in string: "+Se+" at index "+ve.index)}else if(this.options.version==="1.1"&&(ke=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ve=Se.match(ke)))throw new Error("Invalid character in string: "+Se+" at index "+ve.index);return Se},Le.prototype.assertLegalName=function(Se){var ke;if(this.options.noValidation)return Se;if(this.assertLegalChar(Se),ke=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!Se.match(ke))throw new Error("Invalid character in name");return Se},Le.prototype.textEscape=function(Se){var ke;return this.options.noValidation?Se:(ke=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,Se.replace(ke,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},Le.prototype.attEscape=function(Se){var ke;return this.options.noValidation?Se:(ke=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,Se.replace(ke,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},Le}()}).call(this)},{}],457:[function(oe,Ue,Fe){(function(){var me,ce,be,Le=function(ke,ve){for(var xe in ve)Se.call(ve,xe)&&(ke[xe]=ve[xe]);function fe(){this.constructor=ke}return fe.prototype=ve.prototype,ke.prototype=new fe,ke.__super__=ve.prototype,ke},Se={}.hasOwnProperty;me=oe("./NodeType"),ce=oe("./XMLCharacterData"),Ue.exports=be=function(ke){Le(ve,ke);function ve(xe,fe){if(ve.__super__.constructor.call(this,xe),fe==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=me.Text,this.value=this.stringify.text(fe)}return Object.defineProperty(ve.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(ve.prototype,"wholeText",{get:function(){var xe,fe,z;for(z="",fe=this.previousSibling;fe;)z=fe.data+z,fe=fe.previousSibling;for(z+=this.data,xe=this.nextSibling;xe;)z=z+xe.data,xe=xe.nextSibling;return z}}),ve.prototype.clone=function(){return Object.create(this)},ve.prototype.toString=function(xe){return this.options.writer.text(this,this.options.writer.filterOptions(xe))},ve.prototype.splitText=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ve.prototype.replaceWholeText=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ve}(ce)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(oe,Ue,Fe){(function(){var me,ce,be,Le,Se,ke,ve,xe,fe,z,ee,ae,re,le,ue,pe,Ce,Pe={}.hasOwnProperty;Ce=oe("./Utility").assign,me=oe("./NodeType"),fe=oe("./XMLDeclaration"),z=oe("./XMLDocType"),be=oe("./XMLCData"),Le=oe("./XMLComment"),ae=oe("./XMLElement"),le=oe("./XMLRaw"),ue=oe("./XMLText"),re=oe("./XMLProcessingInstruction"),ee=oe("./XMLDummy"),Se=oe("./XMLDTDAttList"),ke=oe("./XMLDTDElement"),ve=oe("./XMLDTDEntity"),xe=oe("./XMLDTDNotation"),ce=oe("./WriterState"),Ue.exports=pe=function(){function Ie(Oe){var Ae,je,Be;Oe||(Oe={}),this.options=Oe,je=Oe.writer||{};for(Ae in je)Pe.call(je,Ae)&&(Be=je[Ae],this["_"+Ae]=this[Ae],this[Ae]=Be)}return Ie.prototype.filterOptions=function(Oe){var Ae,je,Be,_e,qe,ze,Ye,et;return Oe||(Oe={}),Oe=Ce({},this.options,Oe),Ae={writer:this},Ae.pretty=Oe.pretty||!1,Ae.allowEmpty=Oe.allowEmpty||!1,Ae.indent=(je=Oe.indent)!=null?je:" ",Ae.newline=(Be=Oe.newline)!=null?Be:`
|
|
|
`,Ae.offset=(_e=Oe.offset)!=null?_e:0,Ae.dontPrettyTextNodes=(qe=(ze=Oe.dontPrettyTextNodes)!=null?ze:Oe.dontprettytextnodes)!=null?qe:0,Ae.spaceBeforeSlash=(Ye=(et=Oe.spaceBeforeSlash)!=null?et:Oe.spacebeforeslash)!=null?Ye:"",Ae.spaceBeforeSlash===!0&&(Ae.spaceBeforeSlash=" "),Ae.suppressPrettyCount=0,Ae.user={},Ae.state=ce.None,Ae},Ie.prototype.indent=function(Oe,Ae,je){var Be;return!Ae.pretty||Ae.suppressPrettyCount?"":Ae.pretty&&(Be=(je||0)+Ae.offset+1,Be>0)?new Array(Be).join(Ae.indent):""},Ie.prototype.endline=function(Oe,Ae,je){return!Ae.pretty||Ae.suppressPrettyCount?"":Ae.newline},Ie.prototype.attribute=function(Oe,Ae,je){var Be;return this.openAttribute(Oe,Ae,je),Be=" "+Oe.name+'="'+Oe.value+'"',this.closeAttribute(Oe,Ae,je),Be},Ie.prototype.cdata=function(Oe,Ae,je){var Be;return this.openNode(Oe,Ae,je),Ae.state=ce.OpenTag,Be=this.indent(Oe,Ae,je)+"<![CDATA[",Ae.state=ce.InsideTag,Be+=Oe.value,Ae.state=ce.CloseTag,Be+="]]>"+this.endline(Oe,Ae,je),Ae.state=ce.None,this.closeNode(Oe,Ae,je),Be},Ie.prototype.comment=function(Oe,Ae,je){var Be;return this.openNode(Oe,Ae,je),Ae.state=ce.OpenTag,Be=this.indent(Oe,Ae,je)+"<!-- ",Ae.state=ce.InsideTag,Be+=Oe.value,Ae.state=ce.CloseTag,Be+=" -->"+this.endline(Oe,Ae,je),Ae.state=ce.None,this.closeNode(Oe,Ae,je),Be},Ie.prototype.declaration=function(Oe,Ae,je){var Be;return this.openNode(Oe,Ae,je),Ae.state=ce.OpenTag,Be=this.indent(Oe,Ae,je)+"<?xml",Ae.state=ce.InsideTag,Be+=' version="'+Oe.version+'"',Oe.encoding!=null&&(Be+=' encoding="'+Oe.encoding+'"'),Oe.standalone!=null&&(Be+=' standalone="'+Oe.standalone+'"'),Ae.state=ce.CloseTag,Be+=Ae.spaceBeforeSlash+"?>",Be+=this.endline(Oe,Ae,je),Ae.state=ce.None,this.closeNode(Oe,Ae,je),Be},Ie.prototype.docType=function(Oe,Ae,je){var Be,_e,qe,ze,Ye;if(je||(je=0),this.openNode(Oe,Ae,je),Ae.state=ce.OpenTag,ze=this.indent(Oe,Ae,je),ze+="<!DOCTYPE "+Oe.root().name,Oe.pubID&&Oe.sysID?ze+=' PUBLIC "'+Oe.pubID+'" "'+Oe.sysID+'"':Oe.sysID&&(ze+=' SYSTEM "'+Oe.sysID+'"'),Oe.children.length>0){for(ze+=" [",ze+=this.endline(Oe,Ae,je),Ae.state=ce.InsideTag,Ye=Oe.children,_e=0,qe=Ye.length;_e<qe;_e++)Be=Ye[_e],ze+=this.writeChildNode(Be,Ae,je+1);Ae.state=ce.CloseTag,ze+="]"}return Ae.state=ce.CloseTag,ze+=Ae.spaceBeforeSlash+">",ze+=this.endline(Oe,Ae,je),Ae.state=ce.None,this.closeNode(Oe,Ae,je),ze},Ie.prototype.element=function(Oe,Ae,je){var Be,_e,qe,ze,Ye,et,lt,dt,vt,Je,ot,ft,xt,yt;je||(je=0),Je=!1,ot="",this.openNode(Oe,Ae,je),Ae.state=ce.OpenTag,ot+=this.indent(Oe,Ae,je)+"<"+Oe.name,ft=Oe.attribs;for(vt in ft)Pe.call(ft,vt)&&(Be=ft[vt],ot+=this.attribute(Be,Ae,je));if(qe=Oe.children.length,ze=qe===0?null:Oe.children[0],qe===0||Oe.children.every(function(pt){return(pt.type===me.Text||pt.type===me.Raw)&&pt.value===""}))Ae.allowEmpty?(ot+=">",Ae.state=ce.CloseTag,ot+="</"+Oe.name+">"+this.endline(Oe,Ae,je)):(Ae.state=ce.CloseTag,ot+=Ae.spaceBeforeSlash+"/>"+this.endline(Oe,Ae,je));else if(Ae.pretty&&qe===1&&(ze.type===me.Text||ze.type===me.Raw)&&ze.value!=null)ot+=">",Ae.state=ce.InsideTag,Ae.suppressPrettyCount++,Je=!0,ot+=this.writeChildNode(ze,Ae,je+1),Ae.suppressPrettyCount--,Je=!1,Ae.state=ce.CloseTag,ot+="</"+Oe.name+">"+this.endline(Oe,Ae,je);else{if(Ae.dontPrettyTextNodes){for(xt=Oe.children,Ye=0,lt=xt.length;Ye<lt;Ye++)if(_e=xt[Ye],(_e.type===me.Text||_e.type===me.Raw)&&_e.value!=null){Ae.suppressPrettyCount++,Je=!0;break}}for(ot+=">"+this.endline(Oe,Ae,je),Ae.state=ce.InsideTag,yt=Oe.children,et=0,dt=yt.length;et<dt;et++)_e=yt[et],ot+=this.writeChildNode(_e,Ae,je+1);Ae.state=ce.CloseTag,ot+=this.indent(Oe,Ae,je)+"</"+Oe.name+">",Je&&Ae.suppressPrettyCount--,ot+=this.endline(Oe,Ae,je),Ae.state=ce.None}return this.closeNode(Oe,Ae,je),ot},Ie.prototype.writeChildNode=function(Oe,Ae,je){switch(Oe.type){case me.CData:return this.cdata(Oe,Ae,je);case me.Comment:return this.comment(Oe,Ae,je);case me.Element:return this.element(Oe,Ae,je);case me.Raw:return this.raw(Oe,Ae,je);case me.Text:return this.text(Oe,Ae,je);case me.ProcessingInstruction:return this.processingInstruction(Oe,Ae,je);case me.Dummy:return"";case me.Declaration:return this.declaration(Oe,Ae,je);case me.DocType:return this.docType(Oe,Ae,je);case me.AttributeDeclaration:return this.dtdAttList(Oe,Ae,je);case me.ElementDeclaration:return this.dtdElement(Oe,Ae,je);case me.EntityDeclaration:return this.dtdEntity(Oe,Ae,je);case me.NotationDeclaration:return this.dtdNotation(Oe,Ae,je);default:throw new Error("Unknown XML node type: "+Oe.constructor.name)}},Ie.prototype.processingInstruction=function(Oe,Ae,je){var Be;return this.openNode(Oe,Ae,je),Ae.state=ce.OpenTag,Be=this.indent(Oe,Ae,je)+"<?",Ae.state=ce.InsideTag,Be+=Oe.target,Oe.value&&(Be+=" "+Oe.value),Ae.state=ce.CloseTag,Be+=Ae.spaceBeforeSlash+"?>",Be+=this.endline(Oe,Ae,je),Ae.state=ce.None,this.closeNode(Oe,Ae,je),Be},Ie.prototype.raw=function(Oe,Ae,je){var Be;return this.openNode(Oe,Ae,je),Ae.state=ce.OpenTag,Be=this.indent(Oe,Ae,je),Ae.state=ce.InsideTag,Be+=Oe.value,Ae.state=ce.CloseTag,Be+=this.endline(Oe,Ae,je),Ae.state=ce.None,this.closeNode(Oe,Ae,je),Be},Ie.prototype.text=function(Oe,Ae,je){var Be;return this.openNode(Oe,Ae,je),Ae.state=ce.OpenTag,Be=this.indent(Oe,Ae,je),Ae.state=ce.InsideTag,Be+=Oe.value,Ae.state=ce.CloseTag,Be+=this.endline(Oe,Ae,je),Ae.state=ce.None,this.closeNode(Oe,Ae,je),Be},Ie.prototype.dtdAttList=function(Oe,Ae,je){var Be;return this.openNode(Oe,Ae,je),Ae.state=ce.OpenTag,Be=this.indent(Oe,Ae,je)+"<!ATTLIST",Ae.state=ce.InsideTag,Be+=" "+Oe.elementName+" "+Oe.attributeName+" "+Oe.attributeType,Oe.defaultValueType!=="#DEFAULT"&&(Be+=" "+Oe.defaultValueType),Oe.defaultValue&&(Be+=' "'+Oe.defaultValue+'"'),Ae.state=ce.CloseTag,Be+=Ae.spaceBeforeSlash+">"+this.endline(Oe,Ae,je),Ae.state=ce.None,this.closeNode(Oe,Ae,je),Be},Ie.prototype.dtdElement=function(Oe,Ae,je){var Be;return this.openNode(Oe,Ae,je),Ae.state=ce.OpenTag,Be=this.indent(Oe,Ae,je)+"<!ELEMENT",Ae.state=ce.InsideTag,Be+=" "+Oe.name+" "+Oe.value,Ae.state=ce.CloseTag,Be+=Ae.spaceBeforeSlash+">"+this.endline(Oe,Ae,je),Ae.state=ce.None,this.closeNode(Oe,Ae,je),Be},Ie.prototype.dtdEntity=function(Oe,Ae,je){var Be;return this.openNode(Oe,Ae,je),Ae.state=ce.OpenTag,Be=this.indent(Oe,Ae,je)+"<!ENTITY",Ae.state=ce.InsideTag,Oe.pe&&(Be+=" %"),Be+=" "+Oe.name,Oe.value?Be+=' "'+Oe.value+'"':(Oe.pubID&&Oe.sysID?Be+=' PUBLIC "'+Oe.pubID+'" "'+Oe.sysID+'"':Oe.sysID&&(Be+=' SYSTEM "'+Oe.sysID+'"'),Oe.nData&&(Be+=" NDATA "+Oe.nData)),Ae.state=ce.CloseTag,Be+=Ae.spaceBeforeSlash+">"+this.endline(Oe,Ae,je),Ae.state=ce.None,this.closeNode(Oe,Ae,je),Be},Ie.prototype.dtdNotation=function(Oe,Ae,je){var Be;return this.openNode(Oe,Ae,je),Ae.state=ce.OpenTag,Be=this.indent(Oe,Ae,je)+"<!NOTATION",Ae.state=ce.InsideTag,Be+=" "+Oe.name,Oe.pubID&&Oe.sysID?Be+=' PUBLIC "'+Oe.pubID+'" "'+Oe.sysID+'"':Oe.pubID?Be+=' PUBLIC "'+Oe.pubID+'"':Oe.sysID&&(Be+=' SYSTEM "'+Oe.sysID+'"'),Ae.state=ce.CloseTag,Be+=Ae.spaceBeforeSlash+">"+this.endline(Oe,Ae,je),Ae.state=ce.None,this.closeNode(Oe,Ae,je),Be},Ie.prototype.openNode=function(Oe,Ae,je){},Ie.prototype.closeNode=function(Oe,Ae,je){},Ie.prototype.openAttribute=function(Oe,Ae,je){},Ie.prototype.closeAttribute=function(Oe,Ae,je){},Ie}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],459:[function(oe,Ue,Fe){(function(){var me,ce,be,Le,Se,ke,ve,xe,fe,z;z=oe("./Utility"),xe=z.assign,fe=z.isFunction,be=oe("./XMLDOMImplementation"),Le=oe("./XMLDocument"),Se=oe("./XMLDocumentCB"),ve=oe("./XMLStringWriter"),ke=oe("./XMLStreamWriter"),me=oe("./NodeType"),ce=oe("./WriterState"),Ue.exports.create=function(ee,ae,re,le){var ue,pe;if(ee==null)throw new Error("Root element needs a name.");return le=xe({},ae,re,le),ue=new Le(le),pe=ue.element(ee),le.headless||(ue.declaration(le),(le.pubID!=null||le.sysID!=null)&&ue.dtd(le)),pe},Ue.exports.begin=function(ee,ae,re){var le;return fe(ee)&&(le=[ee,ae],ae=le[0],re=le[1],ee={}),ae?new Se(ee,ae,re):new Le(ee)},Ue.exports.stringWriter=function(ee){return new ve(ee)},Ue.exports.streamWriter=function(ee,ae){return new ke(ee,ae)},Ue.exports.implementation=new be,Ue.exports.nodeType=me,Ue.exports.writerState=ce}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(oe,Ue,Fe){Ue.exports=ce;var me=Object.prototype.hasOwnProperty;function ce(){for(var be={},Le=0;Le<arguments.length;Le++){var Se=arguments[Le];for(var ke in Se)me.call(Se,ke)&&(be[ke]=Se[ke])}return be}},{}],461:[function(oe,Ue,Fe){"use strict";oe("core-js/modules/es.array.fill.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),oe("core-js/modules/es.array.join.js"),oe("core-js/modules/es.array.slice.js");var me=oe("buffer").Buffer,ce=oe("./sha"),be=oe("./md5"),Le={sha1:ce,md5:be},Se=64,ke=me.alloc(Se);ke.fill(0);function ve(z,ee,ae){me.isBuffer(ee)||(ee=me.from(ee)),me.isBuffer(ae)||(ae=me.from(ae)),ee.length>Se?ee=z(ee):ee.length<Se&&(ee=me.concat([ee,ke],Se));for(var re=me.alloc(Se),le=me.alloc(Se),ue=0;ue<Se;ue++)re[ue]=ee[ue]^54,le[ue]=ee[ue]^92;var pe=z(me.concat([re,ae]));return z(me.concat([le,pe]))}function xe(z,ee){z=z||"sha1";var ae=Le[z],re=[],le=0;return ae||fe("algorithm:",z,"is not yet supported"),{update:function(pe){return me.isBuffer(pe)||(pe=me.from(pe)),re.push(pe),le+=pe.length,this},digest:function(pe){var Ce=me.concat(re),Pe=ee?ve(ae,ee,Ce):ae(Ce);return re=null,pe?Pe.toString(pe):Pe}}}function fe(){var z=[].slice.call(arguments).join(" ");throw new Error([z,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}Fe.createHash=function(z){return xe(z)},Fe.createHmac=function(z,ee){return xe(z,ee)},Fe.createCredentials=function(){fe("sorry,createCredentials is not implemented yet")},Fe.createCipher=function(){fe("sorry,createCipher is not implemented yet")},Fe.createCipheriv=function(){fe("sorry,createCipheriv is not implemented yet")},Fe.createDecipher=function(){fe("sorry,createDecipher is not implemented yet")},Fe.createDecipheriv=function(){fe("sorry,createDecipheriv is not implemented yet")},Fe.createSign=function(){fe("sorry,createSign is not implemented yet")},Fe.createVerify=function(){fe("sorry,createVerify is not implemented yet")},Fe.createDiffieHellman=function(){fe("sorry,createDiffieHellman is not implemented yet")},Fe.pbkdf2=function(){fe("sorry,pbkdf2 is not implemented yet")}},{"./md5":463,"./sha":464,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],462:[function(oe,Ue,Fe){"use strict";oe("core-js/modules/es.array.fill.js"),oe("core-js/modules/es.array.concat.js");var me=oe("buffer").Buffer,ce=4,be=me.alloc(ce);be.fill(0);var Le=8;function Se(xe,fe){if(xe.length%ce!==0){var z=xe.length+(ce-xe.length%ce);xe=me.concat([xe,be],z)}for(var ee=[],ae=fe?xe.readInt32BE:xe.readInt32LE,re=0;re<xe.length;re+=ce)ee.push(ae.call(xe,re));return ee}function ke(xe,fe,z){for(var ee=me.alloc(fe),ae=z?ee.writeInt32BE:ee.writeInt32LE,re=0;re<xe.length;re++)ae.call(ee,xe[re],re*4,!0);return ee}function ve(xe,fe,z,ee){me.isBuffer(xe)||(xe=me.from(xe));var ae=fe(Se(xe,ee),xe.length*Le);return ke(ae,z,ee)}Ue.exports={hash:ve}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(oe,Ue,Fe){"use strict";var me=oe("./helpers");function ce(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function be(ee,ae){ee[ae>>5]|=128<<ae%32,ee[(ae+64>>>9<<4)+14]=ae;for(var re=1732584193,le=-271733879,ue=-1732584194,pe=271733878,Ce=0;Ce<ee.length;Ce+=16){var Pe=re,Ie=le,Oe=ue,Ae=pe;re=Se(re,le,ue,pe,ee[Ce+0],7,-680876936),pe=Se(pe,re,le,ue,ee[Ce+1],12,-389564586),ue=Se(ue,pe,re,le,ee[Ce+2],17,606105819),le=Se(le,ue,pe,re,ee[Ce+3],22,-1044525330),re=Se(re,le,ue,pe,ee[Ce+4],7,-176418897),pe=Se(pe,re,le,ue,ee[Ce+5],12,1200080426),ue=Se(ue,pe,re,le,ee[Ce+6],17,-1473231341),le=Se(le,ue,pe,re,ee[Ce+7],22,-45705983),re=Se(re,le,ue,pe,ee[Ce+8],7,1770035416),pe=Se(pe,re,le,ue,ee[Ce+9],12,-1958414417),ue=Se(ue,pe,re,le,ee[Ce+10],17,-42063),le=Se(le,ue,pe,re,ee[Ce+11],22,-1990404162),re=Se(re,le,ue,pe,ee[Ce+12],7,1804603682),pe=Se(pe,re,le,ue,ee[Ce+13],12,-40341101),ue=Se(ue,pe,re,le,ee[Ce+14],17,-1502002290),le=Se(le,ue,pe,re,ee[Ce+15],22,1236535329),re=ke(re,le,ue,pe,ee[Ce+1],5,-165796510),pe=ke(pe,re,le,ue,ee[Ce+6],9,-1069501632),ue=ke(ue,pe,re,le,ee[Ce+11],14,643717713),le=ke(le,ue,pe,re,ee[Ce+0],20,-373897302),re=ke(re,le,ue,pe,ee[Ce+5],5,-701558691),pe=ke(pe,re,le,ue,ee[Ce+10],9,38016083),ue=ke(ue,pe,re,le,ee[Ce+15],14,-660478335),le=ke(le,ue,pe,re,ee[Ce+4],20,-405537848),re=ke(re,le,ue,pe,ee[Ce+9],5,568446438),pe=ke(pe,re,le,ue,ee[Ce+14],9,-1019803690),ue=ke(ue,pe,re,le,ee[Ce+3],14,-187363961),le=ke(le,ue,pe,re,ee[Ce+8],20,1163531501),re=ke(re,le,ue,pe,ee[Ce+13],5,-1444681467),pe=ke(pe,re,le,ue,ee[Ce+2],9,-51403784),ue=ke(ue,pe,re,le,ee[Ce+7],14,1735328473),le=ke(le,ue,pe,re,ee[Ce+12],20,-1926607734),re=ve(re,le,ue,pe,ee[Ce+5],4,-378558),pe=ve(pe,re,le,ue,ee[Ce+8],11,-2022574463),ue=ve(ue,pe,re,le,ee[Ce+11],16,1839030562),le=ve(le,ue,pe,re,ee[Ce+14],23,-35309556),re=ve(re,le,ue,pe,ee[Ce+1],4,-1530992060),pe=ve(pe,re,le,ue,ee[Ce+4],11,1272893353),ue=ve(ue,pe,re,le,ee[Ce+7],16,-155497632),le=ve(le,ue,pe,re,ee[Ce+10],23,-1094730640),re=ve(re,le,ue,pe,ee[Ce+13],4,681279174),pe=ve(pe,re,le,ue,ee[Ce+0],11,-358537222),ue=ve(ue,pe,re,le,ee[Ce+3],16,-722521979),le=ve(le,ue,pe,re,ee[Ce+6],23,76029189),re=ve(re,le,ue,pe,ee[Ce+9],4,-640364487),pe=ve(pe,re,le,ue,ee[Ce+12],11,-421815835),ue=ve(ue,pe,re,le,ee[Ce+15],16,530742520),le=ve(le,ue,pe,re,ee[Ce+2],23,-995338651),re=xe(re,le,ue,pe,ee[Ce+0],6,-198630844),pe=xe(pe,re,le,ue,ee[Ce+7],10,1126891415),ue=xe(ue,pe,re,le,ee[Ce+14],15,-1416354905),le=xe(le,ue,pe,re,ee[Ce+5],21,-57434055),re=xe(re,le,ue,pe,ee[Ce+12],6,1700485571),pe=xe(pe,re,le,ue,ee[Ce+3],10,-1894986606),ue=xe(ue,pe,re,le,ee[Ce+10],15,-1051523),le=xe(le,ue,pe,re,ee[Ce+1],21,-2054922799),re=xe(re,le,ue,pe,ee[Ce+8],6,1873313359),pe=xe(pe,re,le,ue,ee[Ce+15],10,-30611744),ue=xe(ue,pe,re,le,ee[Ce+6],15,-1560198380),le=xe(le,ue,pe,re,ee[Ce+13],21,1309151649),re=xe(re,le,ue,pe,ee[Ce+4],6,-145523070),pe=xe(pe,re,le,ue,ee[Ce+11],10,-1120210379),ue=xe(ue,pe,re,le,ee[Ce+2],15,718787259),le=xe(le,ue,pe,re,ee[Ce+9],21,-343485551),re=fe(re,Pe),le=fe(le,Ie),ue=fe(ue,Oe),pe=fe(pe,Ae)}return Array(re,le,ue,pe)}function Le(ee,ae,re,le,ue,pe){return fe(z(fe(fe(ae,ee),fe(le,pe)),ue),re)}function Se(ee,ae,re,le,ue,pe,Ce){return Le(ae&re|~ae&le,ee,ae,ue,pe,Ce)}function ke(ee,ae,re,le,ue,pe,Ce){return Le(ae&le|re&~le,ee,ae,ue,pe,Ce)}function ve(ee,ae,re,le,ue,pe,Ce){return Le(ae^re^le,ee,ae,ue,pe,Ce)}function xe(ee,ae,re,le,ue,pe,Ce){return Le(re^(ae|~le),ee,ae,ue,pe,Ce)}function fe(ee,ae){var re=(ee&65535)+(ae&65535),le=(ee>>16)+(ae>>16)+(re>>16);return le<<16|re&65535}function z(ee,ae){return ee<<ae|ee>>>32-ae}Ue.exports=function(ae){return me.hash(ae,be,16)}},{"./helpers":462}],464:[function(oe,Ue,Fe){"use strict";var me=oe("./helpers");function ce(ve,xe){ve[xe>>5]|=128<<24-xe%32,ve[(xe+64>>9<<4)+15]=xe;for(var fe=Array(80),z=1732584193,ee=-271733879,ae=-1732584194,re=271733878,le=-1009589776,ue=0;ue<ve.length;ue+=16){for(var pe=z,Ce=ee,Pe=ae,Ie=re,Oe=le,Ae=0;Ae<80;Ae++){Ae<16?fe[Ae]=ve[ue+Ae]:fe[Ae]=ke(fe[Ae-3]^fe[Ae-8]^fe[Ae-14]^fe[Ae-16],1);var je=Se(Se(ke(z,5),be(Ae,ee,ae,re)),Se(Se(le,fe[Ae]),Le(Ae)));le=re,re=ae,ae=ke(ee,30),ee=z,z=je}z=Se(z,pe),ee=Se(ee,Ce),ae=Se(ae,Pe),re=Se(re,Ie),le=Se(le,Oe)}return Array(z,ee,ae,re,le)}function be(ve,xe,fe,z){return ve<20?xe&fe|~xe&z:ve<40?xe^fe^z:ve<60?xe&fe|xe&z|fe&z:xe^fe^z}function Le(ve){return ve<20?1518500249:ve<40?1859775393:ve<60?-1894007588:-899497514}function Se(ve,xe){var fe=(ve&65535)+(xe&65535),z=(ve>>16)+(xe>>16)+(fe>>16);return z<<16|fe&65535}function ke(ve,xe){return ve<<xe|ve>>>32-xe}Ue.exports=function(xe){return me.hash(xe,ce,20,!0)}},{"./helpers":462}],465:[function(oe,Ue,Fe){"use strict";Ue.exports=function(){return function(){}}},{}],466:[function(oe,Ue,Fe){(function(me){(function(){"use strict";var ce=oe("@babel/runtime/helpers/interopRequireDefault"),be=ce(oe("@babel/runtime/helpers/typeof")),Le=oe("stream"),Se=Le.Stream,ke=oe("../lib/common/utils/isArray"),ve=ke.isArray;Ue.exports.string=function(z){return typeof z=="string"},Ue.exports.array=ve,Ue.exports.buffer=me.isBuffer;function xe(fe){return fe instanceof Se}Ue.exports.writableStream=function(z){return xe(z)&&typeof z._write=="function"&&(0,be.default)(z._writableState)==="object"}}).call(this)}).call(this,{isBuffer:oe("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":63,"../node_modules/is-buffer/index.js":366,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,stream:398}],467:[function(oe,Ue,Fe){"use strict";var me=oe("immediate"),ce=Ue.exports={};ce.nextTick=me,ce.title="browser",ce.browser=!0,ce.env={},ce.argv=[],ce.version="",ce.versions={};function be(){}ce.on=be,ce.addListener=be,ce.once=be,ce.off=be,ce.removeListener=be,ce.removeAllListeners=be,ce.emit=be,ce.prependListener=be,ce.prependOnceListener=be,ce.listeners=function(Le){return[]},ce.binding=function(Le){throw new Error("process.binding is not supported")},ce.cwd=function(){return"/"},ce.chdir=function(Le){throw new Error("process.chdir is not supported")},ce.umask=function(){return 0}},{immediate:358}],468:[function(oe,Ue,Fe){(function(me){(function(){"use strict";oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.search.js");var ce=oe("./lib/request"),be=oe("./lib/response"),Le=oe("xtend"),Se=oe("builtin-status-codes"),ke=oe("url"),ve=Fe;ve.request=function(xe,fe){typeof xe=="string"?xe=ke.parse(xe):xe=Le(xe);var z=me.location.protocol.search(/^https?:$/)===-1?"http:":"",ee=xe.protocol||z,ae=xe.hostname||xe.host,re=xe.port,le=xe.path||"/";ae&&ae.indexOf(":")!==-1&&(ae="["+ae+"]"),xe.url=(ae?ee+"//"+ae:"")+(re?":"+re:"")+le,xe.method=(xe.method||"GET").toUpperCase(),xe.headers=xe.headers||{};var ue=new ce(xe);return fe&&ue.on("response",fe),ue},ve.get=function(fe,z){var ee=ve.request(fe,z);return ee.end(),ee},ve.ClientRequest=ce,ve.IncomingMessage=be.IncomingMessage,ve.Agent=function(){},ve.Agent.defaultMaxSockets=4,ve.globalAgent=new ve.Agent,ve.STATUS_CODES=Se,ve.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,typeof vn!="undefined"?vn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":470,"./lib/response":471,"builtin-status-codes":91,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.search.js":306,url:472,xtend:460}],469:[function(oe,Ue,Fe){(function(me){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.array-buffer.constructor.js"),oe("core-js/modules/es.array-buffer.slice.js"),oe("core-js/modules/es.array.slice.js"),Fe.fetch=ve(me.fetch)&&ve(me.ReadableStream),Fe.writableStream=ve(me.WritableStream),Fe.abortController=ve(me.AbortController),Fe.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),Fe.blobConstructor=!0}catch(xe){}var ce;function be(){if(ce!==void 0)return ce;if(me.XMLHttpRequest){ce=new me.XMLHttpRequest;try{ce.open("GET",me.XDomainRequest?"/":"https://example.com")}catch(xe){ce=null}}else ce=null;return ce}function Le(xe){var fe=be();if(!fe)return!1;try{return fe.responseType=xe,fe.responseType===xe}catch(z){}return!1}var Se=typeof me.ArrayBuffer!="undefined",ke=Se&&ve(me.ArrayBuffer.prototype.slice);Fe.arraybuffer=Fe.fetch||Se&&Le("arraybuffer"),Fe.msstream=!Fe.fetch&&ke&&Le("ms-stream"),Fe.mozchunkedarraybuffer=!Fe.fetch&&Se&&Le("moz-chunked-arraybuffer"),Fe.overrideMimeType=Fe.fetch||(be()?ve(be().overrideMimeType):!1),Fe.vbArray=ve(me.VBArray);function ve(xe){return typeof xe=="function"}ce=null}).call(this)}).call(this,typeof vn!="undefined"?vn:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"core-js/modules/es.array-buffer.constructor.js":270,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],470:[function(oe,Ue,Fe){(function(me,ce,be){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.regexp.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.array.map.js"),oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.split.js");var Le=oe("./capability"),Se=oe("inherits"),ke=oe("./response"),ve=oe("readable-stream"),xe=oe("to-arraybuffer"),fe=ke.IncomingMessage,z=ke.readyStates;function ee(ue,pe){return Le.fetch&&pe?"fetch":Le.mozchunkedarraybuffer?"moz-chunked-arraybuffer":Le.msstream?"ms-stream":Le.arraybuffer&&ue?"arraybuffer":Le.vbArray&&ue?"text:vbarray":"text"}var ae=Ue.exports=function(ue){var pe=this;ve.Writable.call(pe),pe._opts=ue,pe._body=[],pe._headers={},ue.auth&&pe.setHeader("Authorization","Basic "+new be(ue.auth).toString("base64")),Object.keys(ue.headers).forEach(function(Ie){pe.setHeader(Ie,ue.headers[Ie])});var Ce,Pe=!0;if(ue.mode==="disable-fetch"||"requestTimeout"in ue&&!Le.abortController)Pe=!1,Ce=!0;else if(ue.mode==="prefer-streaming")Ce=!1;else if(ue.mode==="allow-wrong-content-type")Ce=!Le.overrideMimeType;else if(!ue.mode||ue.mode==="default"||ue.mode==="prefer-fast")Ce=!0;else throw new Error("Invalid value for opts.mode");pe._mode=ee(Ce,Pe),pe._fetchTimer=null,pe.on("finish",function(){pe._onFinish()})};Se(ae,ve.Writable),ae.prototype.setHeader=function(ue,pe){var Ce=this,Pe=ue.toLowerCase();le.indexOf(Pe)===-1&&(Ce._headers[Pe]={name:ue,value:pe})},ae.prototype.getHeader=function(ue){var pe=this._headers[ue.toLowerCase()];return pe?pe.value:null},ae.prototype.removeHeader=function(ue){var pe=this;delete pe._headers[ue.toLowerCase()]},ae.prototype._onFinish=function(){var ue=this;if(!ue._destroyed){var pe=ue._opts,Ce=ue._headers,Pe=null;pe.method!=="GET"&&pe.method!=="HEAD"&&(Le.arraybuffer?Pe=xe(be.concat(ue._body)):Le.blobConstructor?Pe=new ce.Blob(ue._body.map(function(_e){return xe(_e)}),{type:(Ce["content-type"]||{}).value||""}):Pe=be.concat(ue._body).toString());var Ie=[];if(Object.keys(Ce).forEach(function(_e){var qe=Ce[_e].name,ze=Ce[_e].value;Array.isArray(ze)?ze.forEach(function(Ye){Ie.push([qe,Ye])}):Ie.push([qe,ze])}),ue._mode==="fetch"){var Oe=null,Ae=null;if(Le.abortController){var je=new AbortController;Oe=je.signal,ue._fetchAbortController=je,"requestTimeout"in pe&&pe.requestTimeout!==0&&(ue._fetchTimer=ce.setTimeout(function(){ue.emit("requestTimeout"),ue._fetchAbortController&&ue._fetchAbortController.abort()},pe.requestTimeout))}ce.fetch(ue._opts.url,{method:ue._opts.method,headers:Ie,body:Pe||void 0,mode:"cors",credentials:pe.withCredentials?"include":"same-origin",signal:Oe}).then(function(_e){ue._fetchResponse=_e,ue._connect()},function(_e){ce.clearTimeout(ue._fetchTimer),ue._destroyed||ue.emit("error",_e)})}else{var Be=ue._xhr=new ce.XMLHttpRequest;try{Be.open(ue._opts.method,ue._opts.url,!0)}catch(_e){me.nextTick(function(){ue.emit("error",_e)});return}"responseType"in Be&&(Be.responseType=ue._mode.split(":")[0]),"withCredentials"in Be&&(Be.withCredentials=!!pe.withCredentials),ue._mode==="text"&&"overrideMimeType"in Be&&Be.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in pe&&(Be.timeout=pe.requestTimeout,Be.ontimeout=function(){ue.emit("requestTimeout")}),Ie.forEach(function(_e){Be.setRequestHeader(_e[0],_e[1])}),ue._response=null,Be.onreadystatechange=function(){switch(Be.readyState){case z.LOADING:case z.DONE:ue._onXHRProgress();break}},ue._mode==="moz-chunked-arraybuffer"&&(Be.onprogress=function(){ue._onXHRProgress()}),Be.onerror=function(){ue._destroyed||ue.emit("error",new Error("XHR error"))};try{Be.send(Pe)}catch(_e){me.nextTick(function(){ue.emit("error",_e)});return}}}};function re(ue){try{var pe=ue.status;return pe!==null&&pe!==0}catch(Ce){return!1}}ae.prototype._onXHRProgress=function(){var ue=this;!re(ue._xhr)||ue._destroyed||(ue._response||ue._connect(),ue._response._onXHRProgress())},ae.prototype._connect=function(){var ue=this;ue._destroyed||(ue._response=new fe(ue._xhr,ue._fetchResponse,ue._mode,ue._fetchTimer),ue._response.on("error",function(pe){ue.emit("error",pe)}),ue.emit("response",ue._response))},ae.prototype._write=function(ue,pe,Ce){var Pe=this;Pe._body.push(ue),Ce()},ae.prototype.abort=ae.prototype.destroy=function(){var ue=this;ue._destroyed=!0,ce.clearTimeout(ue._fetchTimer),ue._response&&(ue._response._destroyed=!0),ue._xhr?ue._xhr.abort():ue._fetchAbortController&&ue._fetchAbortController.abort()},ae.prototype.end=function(ue,pe,Ce){var Pe=this;typeof ue=="function"&&(Ce=ue,ue=void 0),ve.Writable.prototype.end.call(Pe,ue,pe,Ce)},ae.prototype.flushHeaders=function(){},ae.prototype.setTimeout=function(){},ae.prototype.setNoDelay=function(){},ae.prototype.setSocketKeepAlive=function(){};var le=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this)}).call(this,oe("_process"),typeof vn!="undefined"?vn:typeof self!="undefined"?self:typeof window!="undefined"?window:{},oe("buffer").Buffer)},{"./capability":469,"./response":471,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.split.js":307,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394,"to-arraybuffer":415}],471:[function(oe,Ue,Fe){(function(me,ce,be){(function(){"use strict";oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/web.dom-collections.for-each.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.split.js"),oe("core-js/modules/es.string.match.js"),oe("core-js/modules/es.array.iterator.js"),oe("core-js/modules/es.array-buffer.slice.js"),oe("core-js/modules/es.typed-array.uint8-array.js"),oe("core-js/modules/es.typed-array.copy-within.js"),oe("core-js/modules/es.typed-array.every.js"),oe("core-js/modules/es.typed-array.fill.js"),oe("core-js/modules/es.typed-array.filter.js"),oe("core-js/modules/es.typed-array.find.js"),oe("core-js/modules/es.typed-array.find-index.js"),oe("core-js/modules/es.typed-array.for-each.js"),oe("core-js/modules/es.typed-array.includes.js"),oe("core-js/modules/es.typed-array.index-of.js"),oe("core-js/modules/es.typed-array.iterator.js"),oe("core-js/modules/es.typed-array.join.js"),oe("core-js/modules/es.typed-array.last-index-of.js"),oe("core-js/modules/es.typed-array.map.js"),oe("core-js/modules/es.typed-array.reduce.js"),oe("core-js/modules/es.typed-array.reduce-right.js"),oe("core-js/modules/es.typed-array.reverse.js"),oe("core-js/modules/es.typed-array.set.js"),oe("core-js/modules/es.typed-array.slice.js"),oe("core-js/modules/es.typed-array.some.js"),oe("core-js/modules/es.typed-array.sort.js"),oe("core-js/modules/es.typed-array.subarray.js"),oe("core-js/modules/es.typed-array.to-locale-string.js"),oe("core-js/modules/es.typed-array.to-string.js"),oe("core-js/modules/es.array.slice.js");var Le=oe("./capability"),Se=oe("inherits"),ke=oe("readable-stream"),ve=Fe.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},xe=Fe.IncomingMessage=function(fe,z,ee,ae){var re=this;if(ke.Readable.call(re),re._mode=ee,re.headers={},re.rawHeaders=[],re.trailers={},re.rawTrailers=[],re.on("end",function(){me.nextTick(function(){re.emit("close")})}),ee==="fetch"){var le=function Oe(){pe.read().then(function(Ae){if(!re._destroyed){if(Ae.done){ce.clearTimeout(ae),re.push(null);return}re.push(new be(Ae.value)),Oe()}}).catch(function(Ae){ce.clearTimeout(ae),re._destroyed||re.emit("error",Ae)})};if(re._fetchResponse=z,re.url=z.url,re.statusCode=z.status,re.statusMessage=z.statusText,z.headers.forEach(function(Oe,Ae){re.headers[Ae.toLowerCase()]=Oe,re.rawHeaders.push(Ae,Oe)}),Le.writableStream){var ue=new WritableStream({write:function(Ae){return new Promise(function(je,Be){re._destroyed?Be():re.push(new be(Ae))?je():re._resumeFetch=je})},close:function(){ce.clearTimeout(ae),re._destroyed||re.push(null)},abort:function(Ae){re._destroyed||re.emit("error",Ae)}});try{z.body.pipeTo(ue).catch(function(Oe){ce.clearTimeout(ae),re._destroyed||re.emit("error",Oe)});return}catch(Oe){}}var pe=z.body.getReader();le()}else{re._xhr=fe,re._pos=0,re.url=fe.responseURL,re.statusCode=fe.status,re.statusMessage=fe.statusText;var Ce=fe.getAllResponseHeaders().split(/\r?\n/);if(Ce.forEach(function(Oe){var Ae=Oe.match(/^([^:]+):\s*(.*)/);if(Ae){var je=Ae[1].toLowerCase();je==="set-cookie"?(re.headers[je]===void 0&&(re.headers[je]=[]),re.headers[je].push(Ae[2])):re.headers[je]!==void 0?re.headers[je]+=", "+Ae[2]:re.headers[je]=Ae[2],re.rawHeaders.push(Ae[1],Ae[2])}}),re._charset="x-user-defined",!Le.overrideMimeType){var Pe=re.rawHeaders["mime-type"];if(Pe){var Ie=Pe.match(/;\s*charset=([^;])(;|$)/);Ie&&(re._charset=Ie[1].toLowerCase())}re._charset||(re._charset="utf-8")}}};Se(xe,ke.Readable),xe.prototype._read=function(){var fe=this,z=fe._resumeFetch;z&&(fe._resumeFetch=null,z())},xe.prototype._onXHRProgress=function(){var fe=this,z=fe._xhr,ee=null;switch(fe._mode){case"text:vbarray":if(z.readyState!==ve.DONE)break;try{ee=new ce.VBArray(z.responseBody).toArray()}catch(pe){}if(ee!==null){fe.push(new be(ee));break}case"text":try{ee=z.responseText}catch(pe){fe._mode="text:vbarray";break}if(ee.length>fe._pos){var ae=ee.substr(fe._pos);if(fe._charset==="x-user-defined"){for(var re=new be(ae.length),le=0;le<ae.length;le++)re[le]=ae.charCodeAt(le)&255;fe.push(re)}else fe.push(ae,fe._charset);fe._pos=ee.length}break;case"arraybuffer":if(z.readyState!==ve.DONE||!z.response)break;ee=z.response,fe.push(new be(new Uint8Array(ee)));break;case"moz-chunked-arraybuffer":if(ee=z.response,z.readyState!==ve.LOADING||!ee)break;fe.push(new be(new Uint8Array(ee)));break;case"ms-stream":if(ee=z.response,z.readyState!==ve.LOADING)break;var ue=new ce.MSStreamReader;ue.onprogress=function(){ue.result.byteLength>fe._pos&&(fe.push(new be(new Uint8Array(ue.result.slice(fe._pos)))),fe._pos=ue.result.byteLength)},ue.onload=function(){fe.push(null)},ue.readAsArrayBuffer(ee);break}fe._xhr.readyState===ve.DONE&&fe._mode!=="ms-stream"&&fe.push(null)}}).call(this)}).call(this,oe("_process"),typeof vn!="undefined"?vn:typeof self!="undefined"?self:typeof window!="undefined"?window:{},oe("buffer").Buffer)},{"./capability":469,_process:467,buffer:90,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.split.js":307,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394}],472:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/helpers/typeof"));oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.search.js"),oe("core-js/modules/es.array.concat.js"),oe("core-js/modules/es.string.split.js"),oe("core-js/modules/es.string.replace.js"),oe("core-js/modules/es.array.join.js"),oe("core-js/modules/es.string.trim.js"),oe("core-js/modules/es.string.match.js"),oe("core-js/modules/es.array.slice.js"),oe("core-js/modules/es.object.keys.js"),oe("core-js/modules/es.array.splice.js");var be=oe("punycode"),Le=oe("./util");Fe.parse=Ae,Fe.resolve=Be,Fe.resolveObject=_e,Fe.format=je,Fe.Url=Se;function Se(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var ke=/^([a-z0-9.+-]+:)/i,ve=/:[0-9]*$/,xe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,fe=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],z=["{","}","|","\\","^","`"].concat(fe),ee=["'"].concat(z),ae=["%","/","?",";","#"].concat(ee),re=["/","?","#"],le=255,ue=/^[+a-z0-9A-Z_-]{0,63}$/,pe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ce={javascript:!0,"javascript:":!0},Pe={javascript:!0,"javascript:":!0},Ie={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Oe=oe("querystring");function Ae(qe,ze,Ye){if(qe&&Le.isObject(qe)&&qe instanceof Se)return qe;var et=new Se;return et.parse(qe,ze,Ye),et}Se.prototype.parse=function(qe,ze,Ye){if(!Le.isString(qe))throw new TypeError("Parameter 'url' must be a string, not "+(0,ce.default)(qe));var et=qe.indexOf("?"),lt=et!==-1&&et<qe.indexOf("#")?"?":"#",dt=qe.split(lt),vt=/\\/g;dt[0]=dt[0].replace(vt,"/"),qe=dt.join(lt);var Je=qe;if(Je=Je.trim(),!Ye&&qe.split("#").length===1){var ot=xe.exec(Je);if(ot)return this.path=Je,this.href=Je,this.pathname=ot[1],ot[2]?(this.search=ot[2],ze?this.query=Oe.parse(this.search.substr(1)):this.query=this.search.substr(1)):ze&&(this.search="",this.query={}),this}var ft=ke.exec(Je);if(ft){ft=ft[0];var xt=ft.toLowerCase();this.protocol=xt,Je=Je.substr(ft.length)}if(Ye||ft||Je.match(/^\/\/[^@\/]+@[^@\/]+/)){var yt=Je.substr(0,2)==="//";yt&&!(ft&&Pe[ft])&&(Je=Je.substr(2),this.slashes=!0)}if(!Pe[ft]&&(yt||ft&&!Ie[ft])){for(var pt=-1,gt=0;gt<re.length;gt++){var mt=Je.indexOf(re[gt]);mt!==-1&&(pt===-1||mt<pt)&&(pt=mt)}var Mt,Ct;pt===-1?Ct=Je.lastIndexOf("@"):Ct=Je.lastIndexOf("@",pt),Ct!==-1&&(Mt=Je.slice(0,Ct),Je=Je.slice(Ct+1),this.auth=decodeURIComponent(Mt)),pt=-1;for(var gt=0;gt<ae.length;gt++){var mt=Je.indexOf(ae[gt]);mt!==-1&&(pt===-1||mt<pt)&&(pt=mt)}pt===-1&&(pt=Je.length),this.host=Je.slice(0,pt),Je=Je.slice(pt),this.parseHost(),this.hostname=this.hostname||"";var zt=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!zt)for(var St=this.hostname.split("."),gt=0,bt=St.length;gt<bt;gt++){var at=St[gt];if(at&&!at.match(ue)){for(var nt="",we=0,Te=at.length;we<Te;we++)at.charCodeAt(we)>127?nt+="x":nt+=at[we];if(!nt.match(ue)){var Ve=St.slice(0,gt),Ze=St.slice(gt+1),Ee=at.match(pe);Ee&&(Ve.push(Ee[1]),Ze.unshift(Ee[2])),Ze.length&&(Je="/"+Ze.join(".")+Je),this.hostname=Ve.join(".");break}}}this.hostname.length>le?this.hostname="":this.hostname=this.hostname.toLowerCase(),zt||(this.hostname=be.toASCII(this.hostname));var Ge=this.port?":"+this.port:"",He=this.hostname||"";this.host=He+Ge,this.href+=this.host,zt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Je[0]!=="/"&&(Je="/"+Je))}if(!Ce[xt])for(var gt=0,bt=ee.length;gt<bt;gt++){var We=ee[gt];if(Je.indexOf(We)!==-1){var Xe=encodeURIComponent(We);Xe===We&&(Xe=escape(We)),Je=Je.split(We).join(Xe)}}var ct=Je.indexOf("#");ct!==-1&&(this.hash=Je.substr(ct),Je=Je.slice(0,ct));var Et=Je.indexOf("?");if(Et!==-1?(this.search=Je.substr(Et),this.query=Je.substr(Et+1),ze&&(this.query=Oe.parse(this.query)),Je=Je.slice(0,Et)):ze&&(this.search="",this.query={}),Je&&(this.pathname=Je),Ie[xt]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ge=this.pathname||"",ht=this.search||"";this.path=Ge+ht}return this.href=this.format(),this};function je(qe){return Le.isString(qe)&&(qe=Ae(qe)),qe instanceof Se?qe.format():Se.prototype.format.call(qe)}Se.prototype.format=function(){var qe=this.auth||"";qe&&(qe=encodeURIComponent(qe),qe=qe.replace(/%3A/i,":"),qe+="@");var ze=this.protocol||"",Ye=this.pathname||"",et=this.hash||"",lt=!1,dt="";this.host?lt=qe+this.host:this.hostname&&(lt=qe+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(lt+=":"+this.port)),this.query&&Le.isObject(this.query)&&Object.keys(this.query).length&&(dt=Oe.stringify(this.query));var vt=this.search||dt&&"?"+dt||"";return ze&&ze.substr(-1)!==":"&&(ze+=":"),this.slashes||(!ze||Ie[ze])&<!==!1?(lt="//"+(lt||""),Ye&&Ye.charAt(0)!=="/"&&(Ye="/"+Ye)):lt||(lt=""),et&&et.charAt(0)!=="#"&&(et="#"+et),vt&&vt.charAt(0)!=="?"&&(vt="?"+vt),Ye=Ye.replace(/[?#]/g,function(Je){return encodeURIComponent(Je)}),vt=vt.replace("#","%23"),ze+lt+Ye+vt+et};function Be(qe,ze){return Ae(qe,!1,!0).resolve(ze)}Se.prototype.resolve=function(qe){return this.resolveObject(Ae(qe,!1,!0)).format()};function _e(qe,ze){return qe?Ae(qe,!1,!0).resolveObject(ze):ze}Se.prototype.resolveObject=function(qe){if(Le.isString(qe)){var ze=new Se;ze.parse(qe,!1,!0),qe=ze}for(var Ye=new Se,et=Object.keys(this),lt=0;lt<et.length;lt++){var dt=et[lt];Ye[dt]=this[dt]}if(Ye.hash=qe.hash,qe.href==="")return Ye.href=Ye.format(),Ye;if(qe.slashes&&!qe.protocol){for(var vt=Object.keys(qe),Je=0;Je<vt.length;Je++){var ot=vt[Je];ot!=="protocol"&&(Ye[ot]=qe[ot])}return Ie[Ye.protocol]&&Ye.hostname&&!Ye.pathname&&(Ye.path=Ye.pathname="/"),Ye.href=Ye.format(),Ye}if(qe.protocol&&qe.protocol!==Ye.protocol){if(!Ie[qe.protocol]){for(var ft=Object.keys(qe),xt=0;xt<ft.length;xt++){var yt=ft[xt];Ye[yt]=qe[yt]}return Ye.href=Ye.format(),Ye}if(Ye.protocol=qe.protocol,!qe.host&&!Pe[qe.protocol]){for(var bt=(qe.pathname||"").split("/");bt.length&&!(qe.host=bt.shift()););qe.host||(qe.host=""),qe.hostname||(qe.hostname=""),bt[0]!==""&&bt.unshift(""),bt.length<2&&bt.unshift(""),Ye.pathname=bt.join("/")}else Ye.pathname=qe.pathname;if(Ye.search=qe.search,Ye.query=qe.query,Ye.host=qe.host||"",Ye.auth=qe.auth,Ye.hostname=qe.hostname||qe.host,Ye.port=qe.port,Ye.pathname||Ye.search){var pt=Ye.pathname||"",gt=Ye.search||"";Ye.path=pt+gt}return Ye.slashes=Ye.slashes||qe.slashes,Ye.href=Ye.format(),Ye}var mt=Ye.pathname&&Ye.pathname.charAt(0)==="/",Mt=qe.host||qe.pathname&&qe.pathname.charAt(0)==="/",Ct=Mt||mt||Ye.host&&qe.pathname,zt=Ct,St=Ye.pathname&&Ye.pathname.split("/")||[],bt=qe.pathname&&qe.pathname.split("/")||[],at=Ye.protocol&&!Ie[Ye.protocol];if(at&&(Ye.hostname="",Ye.port=null,Ye.host&&(St[0]===""?St[0]=Ye.host:St.unshift(Ye.host)),Ye.host="",qe.protocol&&(qe.hostname=null,qe.port=null,qe.host&&(bt[0]===""?bt[0]=qe.host:bt.unshift(qe.host)),qe.host=null),Ct=Ct&&(bt[0]===""||St[0]==="")),Mt)Ye.host=qe.host||qe.host===""?qe.host:Ye.host,Ye.hostname=qe.hostname||qe.hostname===""?qe.hostname:Ye.hostname,Ye.search=qe.search,Ye.query=qe.query,St=bt;else if(bt.length)St||(St=[]),St.pop(),St=St.concat(bt),Ye.search=qe.search,Ye.query=qe.query;else if(!Le.isNullOrUndefined(qe.search)){if(at){Ye.hostname=Ye.host=St.shift();var nt=Ye.host&&Ye.host.indexOf("@")>0?Ye.host.split("@"):!1;nt&&(Ye.auth=nt.shift(),Ye.host=Ye.hostname=nt.shift())}return Ye.search=qe.search,Ye.query=qe.query,(!Le.isNull(Ye.pathname)||!Le.isNull(Ye.search))&&(Ye.path=(Ye.pathname?Ye.pathname:"")+(Ye.search?Ye.search:"")),Ye.href=Ye.format(),Ye}if(!St.length)return Ye.pathname=null,Ye.search?Ye.path="/"+Ye.search:Ye.path=null,Ye.href=Ye.format(),Ye;for(var we=St.slice(-1)[0],Te=(Ye.host||qe.host||St.length>1)&&(we==="."||we==="..")||we==="",Ve=0,Ze=St.length;Ze>=0;Ze--)we=St[Ze],we==="."?St.splice(Ze,1):we===".."?(St.splice(Ze,1),Ve++):Ve&&(St.splice(Ze,1),Ve--);if(!Ct&&!zt)for(;Ve--;Ve)St.unshift("..");Ct&&St[0]!==""&&(!St[0]||St[0].charAt(0)!=="/")&&St.unshift(""),Te&&St.join("/").substr(-1)!=="/"&&St.push("");var Ee=St[0]===""||St[0]&&St[0].charAt(0)==="/";if(at){Ye.hostname=Ye.host=Ee?"":St.length?St.shift():"";var nt=Ye.host&&Ye.host.indexOf("@")>0?Ye.host.split("@"):!1;nt&&(Ye.auth=nt.shift(),Ye.host=Ye.hostname=nt.shift())}return Ct=Ct||Ye.host&&St.length,Ct&&!Ee&&St.unshift(""),St.length?Ye.pathname=St.join("/"):(Ye.pathname=null,Ye.path=null),(!Le.isNull(Ye.pathname)||!Le.isNull(Ye.search))&&(Ye.path=(Ye.pathname?Ye.pathname:"")+(Ye.search?Ye.search:"")),Ye.auth=qe.auth||Ye.auth,Ye.slashes=Ye.slashes||qe.slashes,Ye.href=Ye.format(),Ye},Se.prototype.parseHost=function(){var qe=this.host,ze=ve.exec(qe);ze&&(ze=ze[0],ze!==":"&&(this.port=ze.substr(1)),qe=qe.substr(0,qe.length-ze.length)),qe&&(this.hostname=qe)}},{"./util":473,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.array.splice.js":283,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.search.js":306,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,punycode:382,querystring:385}],473:[function(oe,Ue,Fe){"use strict";var me=oe("@babel/runtime/helpers/interopRequireDefault"),ce=me(oe("@babel/runtime/helpers/typeof"));Ue.exports={isString:function(Le){return typeof Le=="string"},isObject:function(Le){return(0,ce.default)(Le)==="object"&&Le!==null},isNull:function(Le){return Le===null},isNullOrUndefined:function(Le){return Le==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(oe,Ue,Fe){"use strict";oe("core-js/modules/es.number.constructor.js"),Fe.encodeURIComponent=function(me){try{return encodeURIComponent(me)}catch(ce){return me}},Fe.escape=oe("escape-html"),Fe.timestamp=function(ce){if(ce){var be=ce;return typeof be=="string"&&(be=Number(be)),String(ce).length===10&&(be*=1e3),new Date(be)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(oe,Ue,Fe){(function(me,ce){(function(){"use strict";var be=oe("@babel/runtime/helpers/interopRequireDefault"),Le=be(oe("@babel/runtime/helpers/typeof"));oe("core-js/modules/es.string.trim.js"),oe("core-js/modules/es.regexp.exec.js"),oe("core-js/modules/es.string.split.js"),oe("core-js/modules/es.object.to-string.js"),oe("core-js/modules/es.promise.js"),oe("core-js/modules/es.function.name.js"),oe("core-js/modules/es.array.concat.js");var Se=oe("util"),ke=oe("url"),ve=oe("http"),xe=oe("https"),fe=oe("debug")("urllib"),z=oe("humanize-ms"),ee=0,ae=Math.pow(2,31)-10,re=/^https?:\/\//i;function le(Pe,Ie){return Pe===void 0?Ie:Pe}function ue(Pe){return Pe?Pe.split(";")[0].trim().toLowerCase():""}function pe(Pe,Ie){return function(Oe,Ae,je){if(Oe)return Ie(Oe);Pe({data:Ae,status:je.statusCode,headers:je.headers,res:je})}}Fe.TIMEOUTS=[z("300s"),z("300s")];var Ce=["json","text"];Fe.request=function(Ie,Oe,Ae){return arguments.length===2&&typeof Oe=="function"&&(Ae=Oe,Oe=null),typeof Ae=="function"?Fe.requestWithCallback(Ie,Oe,Ae):new Promise(function(je,Be){Fe.requestWithCallback(Ie,Oe,pe(je,Be))})},Fe.requestWithCallback=function(Ie,Oe,Ae){if(!Ie||typeof Ie!="string"&&(0,Le.default)(Ie)!=="object"){var je=Se.format("expect request url to be a string or a http request options, but got %j",Ie);throw new Error(je)}arguments.length===2&&typeof Oe=="function"&&(Ae=Oe,Oe=null),Oe=Oe||{},ee>=ae&&(ee=0);var Be=++ee;Oe.requestUrls=Oe.requestUrls||[];var _e={requestId:Be,url:Ie,args:Oe,ctx:Oe.ctx};Oe.emitter&&Oe.emitter.emit("request",_e),Oe.timeout=Oe.timeout||Fe.TIMEOUTS,Oe.maxRedirects=Oe.maxRedirects||10,Oe.streaming=Oe.streaming||Oe.customResponse;var qe=Date.now(),ze;typeof Ie=="string"?(re.test(Ie)||(Ie="https://"+Ie),ze=ke.parse(Ie)):ze=Ie;var Ye=(Oe.type||Oe.method||ze.method||"GET").toUpperCase(),et=ze.port||80,lt=ve,dt=le(Oe.agent,Fe.agent),vt=Oe.fixJSONCtlChars;ze.protocol==="https:"&&(lt=xe,dt=le(Oe.httpsAgent,Fe.httpsAgent),ze.port||(et=443));var Je={host:ze.hostname||ze.host||"localhost",path:ze.path||"/",method:Ye,port:et,agent:dt,headers:Oe.headers||{},lookup:Oe.lookup};Array.isArray(Oe.timeout)?Je.requestTimeout=Oe.timeout[Oe.timeout.length-1]:typeof Oe.timeout!="undefined"&&(Je.requestTimeout=Oe.timeout);var ot=Oe.auth||ze.auth;ot&&(Je.auth=ot);var ft=Oe.content||Oe.data,xt=Ye==="GET"||Ye==="HEAD"||Oe.dataAsQueryString;if(!Oe.content&&ft&&!(typeof ft=="string"||ce.isBuffer(ft)))if(xt)ft=Oe.nestedQuerystring?qs.stringify(ft):querystring.stringify(ft);else{var yt=Je.headers["Content-Type"]||Je.headers["content-type"];yt||(Oe.contentType==="json"?yt="application/json":yt="application/x-www-form-urlencoded",Je.headers["Content-Type"]=yt),ue(yt)==="application/json"?ft=JSON.stringify(ft):ft=Oe.nestedQuerystring?qs.stringify(ft):querystring.stringify(ft)}xt&&ft&&(Je.path+=(ze.query?"&":"?")+ft,ft=null);var pt=0;if(ft){var gt=ft.length;ce.isBuffer(ft)||(gt=ce.byteLength(ft)),pt=Je.headers["Content-Length"]=gt}Oe.dataType==="json"&&(Je.headers.Accept="application/json"),typeof Oe.beforeRequest=="function"&&Oe.beforeRequest(Je);var mt=null,Mt=null,Ct=null,zt=!1,St=!1,bt=0,at=-1,nt=!1,we="",Te="",Ve=null;Oe.timing&&(Ve={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function Ze(){mt&&(clearTimeout(mt),mt=null)}function Ee(){Mt&&(clearTimeout(Mt),Mt=null)}function Ge(Ut,ln,kt){if(Ee(),!Ae){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Be,me.pid,Je.method,Ie),Ut&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),Be,me.pid,Ut.name,Ut.message,Ut.stack);return}var Xt=Ae;Ae=null;var tn={};kt&&(at=kt.statusCode,tn=kt.headers);var dn=Date.now()-qe;Ve&&(Ve.contentDownload=dn),fe("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",dn,bt,at,Je.method,Je.host,Je.path,St,Ve);var Mn={status:at,statusCode:at,headers:tn,size:bt,aborted:nt,rt:dn,keepAliveSocket:St,data:ln,requestUrls:Oe.requestUrls,timing:Ve,remoteAddress:we,remotePort:Te};if(Ut){var Rn="";dt&&typeof dt.getCurrentStatus=="function"&&(Rn=", agent status: "+JSON.stringify(dt.getCurrentStatus())),Ut.message+=", "+Je.method+" "+Ie+" "+at+" (connected: "+zt+", keepalive socket: "+St+Rn+`)
|
|
|
headers: `+JSON.stringify(tn),Ut.data=ln,Ut.path=Je.path,Ut.status=at,Ut.headers=tn,Ut.res=Mn}Xt(Ut,ln,Oe.streaming?kt:Mn),Oe.emitter&&(_e.url=Ie,_e.socket=$t&&$t.connection,_e.options=Je,_e.size=pt,Oe.emitter.emit("response",{requestId:Be,error:Ut,ctx:Oe.ctx,req:_e,res:Mn}))}function He(Ut){var ln=null;if(Oe.followRedirect&&statuses.redirect[Ut.statusCode]){Oe._followRedirectCount=(Oe._followRedirectCount||0)+1;var kt=Ut.headers.location;if(!kt)ln=new Error("Got statusCode "+Ut.statusCode+" but cannot resolve next location from headers"),ln.name="FollowRedirectError";else if(Oe._followRedirectCount>Oe.maxRedirects)ln=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Ie),ln.name="MaxRedirectError";else{var Xt=Oe.formatRedirectUrl?Oe.formatRedirectUrl(Ie,kt):ke.resolve(Ie,kt);fe("Request#%d %s: `redirected` from %s to %s",Be,Je.path,Ie,Xt),Ee(),Oe.headers&&Oe.headers.Host&&re.test(kt)&&(Oe.headers.Host=null);var tn=Ae;return Ae=null,Fe.requestWithCallback(Xt,Oe,tn),{redirect:!0,error:null}}}return{redirect:!1,error:ln}}Oe.gzip&&!Je.headers["Accept-Encoding"]&&!Je.headers["accept-encoding"]&&(Je.headers["Accept-Encoding"]="gzip");function We(Ut,ln,kt){var Xt=Ut.headers["content-encoding"];return kt(null,ln,Xt)}var Xe=Oe.writeStream;fe("Request#%d %s %s with headers %j, options.path: %s",Be,Ye,Ie,Je.headers,Je.path),Oe.requestUrls.push(Ie);function ct(Ut){if(Ve&&(Ve.waiting=Date.now()-qe),fe("Request#%d %s `req response` event emit: status %d, headers: %j",Be,Ie,Ut.statusCode,Ut.headers),Oe.streaming){var ln=He(Ut);if(ln.redirect){Ut.resume();return}return ln.error?(Ut.resume(),Ge(ln.error,null,Ut)):Ge(null,null,Ut)}if(Ut.on("close",function(){fe("Request#%d %s: `res close` event emit, total size %d",Be,Ie,bt)}),Ut.on("error",function(){fe("Request#%d %s: `res error` event emit, total size %d",Be,Ie,bt)}),Ut.on("aborted",function(){nt=!0,fe("Request#%d %s: `res aborted` event emit, total size %d",Be,Ie,bt)}),Xe){var kt=He(Ut);if(kt.redirect){Ut.resume();return}return kt.error?(Ut.resume(),Xe.end(),Ge(kt.error,null,Ut)):(Oe.consumeWriteStream===!1?Ut.on("end",Ge.bind(null,null,null,Ut)):Xe.on("close",function(){fe("Request#%d %s: writeStream close event emitted",Be,Ie),Ge(Ct||null,null,Ut)}),Ut.pipe(Xe))}var Xt=[];Ut.on("data",function(tn){fe("Request#%d %s: `res data` event emit, size %d",Be,Ie,tn.length),bt+=tn.length,Xt.push(tn)}),Ut.on("end",function(){var tn=ce.concat(Xt,bt);if(fe("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Be,Ie,bt,Ut._dumped),Ct)return Ge(Ct,tn,Ut);var dn=He(Ut);if(dn.error)return Ge(dn.error,tn,Ut);dn.redirect||We(Ut,tn,function(Mn,Rn,ir){if(Mn)return Ge(Mn,tn,Ut);if(!ir&&Ce.indexOf(Oe.dataType)>=0){try{Rn=decodeBodyByCharset(Rn,Ut)}catch(Cr){return fe("decodeBodyByCharset error: %s",Cr),Ge(null,Rn,Ut)}if(Oe.dataType==="json")if(bt===0)Rn=null;else{var qn=parseJSON(Rn,vt);qn.error?Mn=qn.error:Rn=qn.data}}nt&&fe("Request#%d %s: Remote socket was terminated before `response.end()` was called",Be,Ie),Ge(Mn,Rn,Ut)})})}var Et,ht;Array.isArray(Oe.timeout)?(Et=z(Oe.timeout[0]),ht=z(Oe.timeout[1])):Et=ht=z(Oe.timeout),fe("ConnectTimeout: %d, ResponseTimeout: %d",Et,ht);function It(){fe("Connect timer ticking, timeout: %d",Et),mt=setTimeout(function(){mt=null,at===-1&&(at=-2);var Ut="Connect timeout for "+Et+"ms",ln="ConnectionTimeoutError";$t.socket||(ln="SocketAssignTimeoutError",Ut+=", working sockets is full"),Ct=new Error(Ut),Ct.name=ln,Ct.requestId=Be,fe("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Be,Ie,Ct.name,Ut,zt),Wt()},Et)}function qt(){fe("Response timer ticking, timeout: %d",ht),Mt=setTimeout(function(){Mt=null;var Ut="Response timeout for "+ht+"ms",ln="ResponseTimeoutError";Ct=new Error(Ut),Ct.name=ln,Ct.requestId=Be,fe("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Be,Ie,Ct.name,Ut,zt),Wt()},ht)}var $t;Je.mode=Oe.mode?Oe.mode:"";try{$t=lt.request(Je,ct)}catch(Ut){return Ge(Ut)}typeof window=="undefined"?It():$t.on("requestTimeout",function(){at===-1&&(at=-2);var Ut="Connect timeout for "+Et+"ms",ln="ConnectionTimeoutError";Ct=new Error(Ut),Ct.name=ln,Ct.requestId=Be,Wt()});function Wt(){fe("Request#%d %s abort, connected: %s",Be,Ie,zt),$t.socket||(Ct.noSocket=!0,Ge(Ct)),$t.abort()}return Ve&&$t.on("finish",function(){Ve.requestSent=Date.now()-qe}),$t.once("socket",function(Ut){Ve&&(Ve.queuing=Date.now()-qe);var ln=Ut.readyState;if(ln==="opening"){Ut.once("lookup",function(kt,Xt,tn){fe("Request#%d %s lookup: %s, %s, %s",Be,Ie,kt,Xt,tn),Ve&&(Ve.dnslookup=Date.now()-qe),Xt&&(we=Xt)}),Ut.once("connect",function(){Ve&&(Ve.connected=Date.now()-qe),Ze(),qt(),fe("Request#%d %s new socket connected",Be,Ie),zt=!0,we||(we=Ut.remoteAddress),Te=Ut.remotePort});return}fe("Request#%d %s reuse socket connected, readyState: %s",Be,Ie,ln),zt=!0,St=!0,we||(we=Ut.remoteAddress),Te=Ut.remotePort,Ze(),qt()}),$t.on("error",function(Ut){(Ut.name==="Error"||Ut.name==="TypeError")&&(Ut.name=zt?"ResponseError":"RequestError"),Ut.message+=' (req "error")',fe("Request#%d %s `req error` event emit, %s: %s",Be,Ie,Ut.name,Ut.message),Ge(Ct||Ut)}),Xe&&Xe.once("error",function(Ut){Ut.message+=' (writeStream "error")',Ct=Ut,fe("Request#%d %s `writeStream error` event emit, %s: %s",Be,Ie,Ut.name,Ut.message),Wt()}),Oe.stream?(Oe.stream.pipe($t),Oe.stream.once("error",function(Ut){Ut.message+=' (stream "error")',Ct=Ut,fe("Request#%d %s `readStream error` event emit, %s: %s",Be,Ie,Ut.name,Ut.message),Wt()})):$t.end(ft),$t.requestId=Be,$t}}).call(this)}).call(this,oe("_process"),oe("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,debug:465,http:468,https:355,"humanize-ms":356,url:472,util:419}]},{},[1])(1)})})(window)},50371:function(Gn,vn){"use strict";function Ke(){const tt=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Pt=1;Pt<arguments.length;Pt++){const oe=Pt<0||arguments.length<=Pt?void 0:arguments[Pt];oe&&Object.keys(oe).forEach(Ue=>{const Fe=oe[Ue];Fe!==void 0&&(tt[Ue]=Fe)})}return tt}vn.Z=Ke},13845:function(Gn,vn,Ke){"use strict";Ke.d(vn,{F:function(){return tt},Z:function(){return Pt}});function tt(oe){return oe!=null&&oe===oe.window}function Pt(oe,Ue){var Fe,me;if(typeof window=="undefined")return 0;const ce=Ue?"scrollTop":"scrollLeft";let be=0;return tt(oe)?be=oe[Ue?"pageYOffset":"pageXOffset"]:oe instanceof Document?be=oe.documentElement[ce]:(oe instanceof HTMLElement||oe)&&(be=oe[ce]),oe&&!tt(oe)&&typeof be!="number"&&(be=(me=((Fe=oe.ownerDocument)!==null&&Fe!==void 0?Fe:oe).documentElement)===null||me===void 0?void 0:me[ce]),be}},56762:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return Pt}});var tt=Ke(59301);function Pt(){const[,oe]=tt.useReducer(Ue=>Ue+1,0);return oe}},68031:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return Ue}});var tt=Ke(23073);function Pt(Fe,me,ce,be){const Le=ce-me;return Fe/=be/2,Fe<1?Le/2*Fe*Fe*Fe+me:Le/2*((Fe-=2)*Fe*Fe+2)+me}var oe=Ke(13845);function Ue(Fe){let me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ce=()=>window,callback:be,duration:Le=450}=me,Se=ce(),ke=(0,oe.Z)(Se,!0),ve=Date.now(),xe=()=>{const z=Date.now()-ve,ee=Pt(z>Le?Le:z,ke,Fe,Le);(0,oe.F)(Se)?Se.scrollTo(window.pageXOffset,ee):Se instanceof Document||Se.constructor.name==="HTMLDocument"?Se.documentElement.scrollTop=ee:Se.scrollTop=ee,z<Le?(0,tt.Z)(xe):typeof be=="function"&&be()};(0,tt.Z)(xe)}},66104:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return Ye}});var tt=Ke(92310),Pt=Ke.n(tt),oe=Ke(38298),Ue=Ke(36994),Fe=Ke(59301),me=Ke(92343),ce=Ke(36355),be=Ke(76995),Le=Ke(91857);const Se=et=>{let{children:lt}=et;const{getPrefixCls:dt}=Fe.useContext(ce.E_),vt=dt("breadcrumb");return Fe.createElement("li",{className:`${vt}-separator`,"aria-hidden":"true"},lt===""?lt:lt||"/")};Se.__ANT_BREADCRUMB_SEPARATOR=!0;var ke=Se,ve=function(et,lt){var dt={};for(var vt in et)Object.prototype.hasOwnProperty.call(et,vt)&<.indexOf(vt)<0&&(dt[vt]=et[vt]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,vt=Object.getOwnPropertySymbols(et);Je<vt.length;Je++)lt.indexOf(vt[Je])<0&&Object.prototype.propertyIsEnumerable.call(et,vt[Je])&&(dt[vt[Je]]=et[vt[Je]]);return dt};function xe(et,lt){if(et.title===void 0||et.title===null)return null;const dt=Object.keys(lt).join("|");return typeof et.title=="object"?et.title:String(et.title).replace(new RegExp(`:(${dt})`,"g"),(vt,Je)=>lt[Je]||vt)}function fe(et,lt,dt,vt){if(dt==null)return null;const{className:Je,onClick:ot}=lt,ft=ve(lt,["className","onClick"]),xt=Object.assign(Object.assign({},(0,Ue.Z)(ft,{data:!0,aria:!0})),{onClick:ot});return vt!==void 0?Fe.createElement("a",Object.assign({},xt,{className:Pt()(`${et}-link`,Je),href:vt}),dt):Fe.createElement("span",Object.assign({},xt,{className:Pt()(`${et}-link`,Je)}),dt)}function z(et,lt){return(vt,Je,ot,ft,xt)=>{if(lt)return lt(vt,Je,ot,ft);const yt=xe(vt,Je);return fe(et,vt,yt,xt)}}var ee=function(et,lt){var dt={};for(var vt in et)Object.prototype.hasOwnProperty.call(et,vt)&<.indexOf(vt)<0&&(dt[vt]=et[vt]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,vt=Object.getOwnPropertySymbols(et);Je<vt.length;Je++)lt.indexOf(vt[Je])<0&&Object.prototype.propertyIsEnumerable.call(et,vt[Je])&&(dt[vt[Je]]=et[vt[Je]]);return dt};const ae=et=>{const{prefixCls:lt,separator:dt="/",children:vt,menu:Je,overlay:ot,dropdownProps:ft,href:xt}=et,pt=(gt=>{if(Je||ot){const mt=Object.assign({},ft);if(Je){const Mt=Je||{},{items:Ct}=Mt,zt=ee(Mt,["items"]);mt.menu=Object.assign(Object.assign({},zt),{items:Ct==null?void 0:Ct.map((St,bt)=>{var{key:at,title:nt,label:we,path:Te}=St,Ve=ee(St,["key","title","label","path"]);let Ze=we!=null?we:nt;return Te&&(Ze=Fe.createElement("a",{href:`${xt}${Te}`},Ze)),Object.assign(Object.assign({},Ve),{key:at!=null?at:bt,label:Ze})})})}else ot&&(mt.overlay=ot);return Fe.createElement(Le.Z,Object.assign({placement:"bottom"},mt),Fe.createElement("span",{className:`${lt}-overlay-link`},gt,Fe.createElement(be.Z,null)))}return gt})(vt);return pt!=null?Fe.createElement(Fe.Fragment,null,Fe.createElement("li",null,pt),dt&&Fe.createElement(ke,null,dt)):null},re=et=>{const{prefixCls:lt,children:dt,href:vt}=et,Je=ee(et,["prefixCls","children","href"]),{getPrefixCls:ot}=Fe.useContext(ce.E_),ft=ot("breadcrumb",lt);return Fe.createElement(ae,Object.assign({},Je,{prefixCls:ft}),fe(ft,Je,dt,vt))};re.__ANT_BREADCRUMB_ITEM=!0;var le=re,ue=Ke(17313),pe=Ke(83116),Ce=Ke(37613);const Pe=et=>{const{componentCls:lt,iconCls:dt}=et;return{[lt]:Object.assign(Object.assign({},(0,ue.Wf)(et)),{color:et.itemColor,fontSize:et.fontSize,[dt]:{fontSize:et.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:et.linkColor,transition:`color ${et.motionDurationMid}`,padding:`0 ${et.paddingXXS}px`,borderRadius:et.borderRadiusSM,height:et.lineHeight*et.fontSize,display:"inline-block",marginInline:-et.marginXXS,"&:hover":{color:et.linkHoverColor,backgroundColor:et.colorBgTextHover}},(0,ue.Qy)(et)),"li:last-child":{color:et.lastItemColor},[`${lt}-separator`]:{marginInline:et.separatorMargin,color:et.separatorColor},[`${lt}-link`]:{[`
|
|
|
> ${dt} + span,
|
|
|
> ${dt} + a
|
|
|
`]:{marginInlineStart:et.marginXXS}},[`${lt}-overlay-link`]:{borderRadius:et.borderRadiusSM,height:et.lineHeight*et.fontSize,display:"inline-block",padding:`0 ${et.paddingXXS}px`,marginInline:-et.marginXXS,[`> ${dt}`]:{marginInlineStart:et.marginXXS,fontSize:et.fontSizeIcon},"&:hover":{color:et.linkHoverColor,backgroundColor:et.colorBgTextHover,a:{color:et.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${et.componentCls}-rtl`]:{direction:"rtl"}})}};var Ie=(0,pe.Z)("Breadcrumb",et=>{const lt=(0,Ce.TS)(et,{});return[Pe(lt)]},et=>({itemColor:et.colorTextDescription,lastItemColor:et.colorText,iconFontSize:et.fontSize,linkColor:et.colorTextDescription,linkHoverColor:et.colorText,separatorColor:et.colorTextDescription,separatorMargin:et.marginXS})),Oe=function(et,lt){var dt={};for(var vt in et)Object.prototype.hasOwnProperty.call(et,vt)&<.indexOf(vt)<0&&(dt[vt]=et[vt]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,vt=Object.getOwnPropertySymbols(et);Je<vt.length;Je++)lt.indexOf(vt[Je])<0&&Object.prototype.propertyIsEnumerable.call(et,vt[Je])&&(dt[vt[Je]]=et[vt[Je]]);return dt};function Ae(et){const{breadcrumbName:lt,children:dt}=et,vt=Oe(et,["breadcrumbName","children"]),Je=Object.assign({title:lt},vt);return dt&&(Je.menu={items:dt.map(ot=>{var{breadcrumbName:ft}=ot,xt=Oe(ot,["breadcrumbName"]);return Object.assign(Object.assign({},xt),{title:ft})})}),Je}function je(et,lt){return(0,Fe.useMemo)(()=>et||(lt?lt.map(Ae):null),[et,lt])}var Be=function(et,lt){var dt={};for(var vt in et)Object.prototype.hasOwnProperty.call(et,vt)&<.indexOf(vt)<0&&(dt[vt]=et[vt]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,vt=Object.getOwnPropertySymbols(et);Je<vt.length;Je++)lt.indexOf(vt[Je])<0&&Object.prototype.propertyIsEnumerable.call(et,vt[Je])&&(dt[vt[Je]]=et[vt[Je]]);return dt};const _e=(et,lt)=>{if(lt===void 0)return lt;let dt=(lt||"").replace(/^\//,"");return Object.keys(et).forEach(vt=>{dt=dt.replace(`:${vt}`,et[vt])}),dt},qe=et=>{const{prefixCls:lt,separator:dt="/",style:vt,className:Je,rootClassName:ot,routes:ft,items:xt,children:yt,itemRender:pt,params:gt={}}=et,mt=Be(et,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Mt,direction:Ct,breadcrumb:zt}=Fe.useContext(ce.E_);let St;const bt=Mt("breadcrumb",lt),[at,nt]=Ie(bt),we=je(xt,ft),Te=z(bt,pt);if(we&&we.length>0){const Ee=[],Ge=xt||ft;St=we.map((He,We)=>{const{path:Xe,key:ct,type:Et,menu:ht,overlay:It,onClick:qt,className:$t,separator:Wt,dropdownProps:Ut}=He,ln=_e(gt,Xe);ln!==void 0&&Ee.push(ln);const kt=ct!=null?ct:We;if(Et==="separator")return Fe.createElement(ke,{key:kt},Wt);const Xt={},tn=We===we.length-1;ht?Xt.menu=ht:It&&(Xt.overlay=It);let{href:dn}=He;return Ee.length&&ln!==void 0&&(dn=`#/${Ee.join("/")}`),Fe.createElement(ae,Object.assign({key:kt},Xt,(0,Ue.Z)(He,{data:!0,aria:!0}),{className:$t,dropdownProps:Ut,href:dn,separator:tn?"":dt,onClick:qt,prefixCls:bt}),Te(He,gt,Ge,Ee,dn))})}else if(yt){const Ee=(0,oe.Z)(yt).length;St=(0,oe.Z)(yt).map((Ge,He)=>{if(!Ge)return Ge;const We=He===Ee-1;return(0,me.Tm)(Ge,{separator:We?"":dt,key:He})})}const Ve=Pt()(bt,zt==null?void 0:zt.className,{[`${bt}-rtl`]:Ct==="rtl"},Je,ot,nt),Ze=Object.assign(Object.assign({},zt==null?void 0:zt.style),vt);return at(Fe.createElement("nav",Object.assign({className:Ve,style:Ze},mt),Fe.createElement("ol",null,St)))};qe.Item=le,qe.Separator=ke;var ze=qe,Ye=ze},24905:function(Gn,vn,Ke){"use strict";Ke.d(vn,{default:function(){return Ie}});var tt=Ke(92310),Pt=Ke.n(tt),oe=Ke(5630),Ue=Ke(59301),Fe=Ke(36355),me=Ke(1684),ce=Ke(32441),Le=Ue.createContext(null),Se=Ke(98447),ke=Ke(14088),ve=Ke(4572),xe=function(Oe,Ae){var je={};for(var Be in Oe)Object.prototype.hasOwnProperty.call(Oe,Be)&&Ae.indexOf(Be)<0&&(je[Be]=Oe[Be]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Be=Object.getOwnPropertySymbols(Oe);_e<Be.length;_e++)Ae.indexOf(Be[_e])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Be[_e])&&(je[Be[_e]]=Oe[Be[_e]]);return je};const fe=(Oe,Ae)=>{var je;const{prefixCls:Be,className:_e,rootClassName:qe,children:ze,indeterminate:Ye=!1,style:et,onMouseEnter:lt,onMouseLeave:dt,skipGroup:vt=!1,disabled:Je}=Oe,ot=xe(Oe,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:ft,direction:xt,checkbox:yt}=Ue.useContext(Fe.E_),pt=Ue.useContext(Le),{isFormItemInput:gt}=Ue.useContext(ce.aM),mt=Ue.useContext(me.Z),Mt=(je=(pt==null?void 0:pt.disabled)||Je)!==null&&je!==void 0?je:mt,Ct=Ue.useRef(ot.value);Ue.useEffect(()=>{pt==null||pt.registerValue(ot.value)},[]),Ue.useEffect(()=>{if(!vt)return ot.value!==Ct.current&&(pt==null||pt.cancelValue(Ct.current),pt==null||pt.registerValue(ot.value),Ct.current=ot.value),()=>pt==null?void 0:pt.cancelValue(ot.value)},[ot.value]);const zt=ft("checkbox",Be),[St,bt]=(0,Se.ZP)(zt),at=Object.assign({},ot);pt&&!vt&&(at.onChange=function(){ot.onChange&&ot.onChange.apply(ot,arguments),pt.toggleOption&&pt.toggleOption({label:ze,value:ot.value})},at.name=pt.name,at.checked=pt.value.includes(ot.value));const nt=Pt()(`${zt}-wrapper`,{[`${zt}-rtl`]:xt==="rtl",[`${zt}-wrapper-checked`]:at.checked,[`${zt}-wrapper-disabled`]:Mt,[`${zt}-wrapper-in-form-item`]:gt},yt==null?void 0:yt.className,_e,qe,bt),we=Pt()({[`${zt}-indeterminate`]:Ye},ve.A,bt),Te=Ye?"mixed":void 0;return St(Ue.createElement(ke.Z,{component:"Checkbox",disabled:Mt},Ue.createElement("label",{className:nt,style:Object.assign(Object.assign({},yt==null?void 0:yt.style),et),onMouseEnter:lt,onMouseLeave:dt},Ue.createElement(oe.Z,Object.assign({"aria-checked":Te},at,{prefixCls:zt,className:we,disabled:Mt,ref:Ae})),ze!==void 0&&Ue.createElement("span",null,ze))))};var ee=Ue.forwardRef(fe),ae=Ke(26390),re=Ke(64002),le=function(Oe,Ae){var je={};for(var Be in Oe)Object.prototype.hasOwnProperty.call(Oe,Be)&&Ae.indexOf(Be)<0&&(je[Be]=Oe[Be]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Be=Object.getOwnPropertySymbols(Oe);_e<Be.length;_e++)Ae.indexOf(Be[_e])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Be[_e])&&(je[Be[_e]]=Oe[Be[_e]]);return je};const ue=(Oe,Ae)=>{const{defaultValue:je,children:Be,options:_e=[],prefixCls:qe,className:ze,rootClassName:Ye,style:et,onChange:lt}=Oe,dt=le(Oe,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:vt,direction:Je}=Ue.useContext(Fe.E_),[ot,ft]=Ue.useState(dt.value||je||[]),[xt,yt]=Ue.useState([]);Ue.useEffect(()=>{"value"in dt&&ft(dt.value||[])},[dt.value]);const pt=Ue.useMemo(()=>_e.map(Ve=>typeof Ve=="string"||typeof Ve=="number"?{label:Ve,value:Ve}:Ve),[_e]),gt=Ve=>{yt(Ze=>Ze.filter(Ee=>Ee!==Ve))},mt=Ve=>{yt(Ze=>[].concat((0,ae.Z)(Ze),[Ve]))},Mt=Ve=>{const Ze=ot.indexOf(Ve.value),Ee=(0,ae.Z)(ot);Ze===-1?Ee.push(Ve.value):Ee.splice(Ze,1),"value"in dt||ft(Ee),lt==null||lt(Ee.filter(Ge=>xt.includes(Ge)).sort((Ge,He)=>{const We=pt.findIndex(ct=>ct.value===Ge),Xe=pt.findIndex(ct=>ct.value===He);return We-Xe}))},Ct=vt("checkbox",qe),zt=`${Ct}-group`,[St,bt]=(0,Se.ZP)(Ct),at=(0,re.Z)(dt,["value","disabled"]),nt=_e.length?pt.map(Ve=>Ue.createElement(ee,{prefixCls:Ct,key:Ve.value.toString(),disabled:"disabled"in Ve?Ve.disabled:dt.disabled,value:Ve.value,checked:ot.includes(Ve.value),onChange:Ve.onChange,className:`${zt}-item`,style:Ve.style,title:Ve.title},Ve.label)):Be,we={toggleOption:Mt,value:ot,disabled:dt.disabled,name:dt.name,registerValue:mt,cancelValue:gt},Te=Pt()(zt,{[`${zt}-rtl`]:Je==="rtl"},ze,Ye,bt);return St(Ue.createElement("div",Object.assign({className:Te,style:et},at,{ref:Ae}),Ue.createElement(Le.Provider,{value:we},nt)))},pe=Ue.forwardRef(ue);var Ce=Ue.memo(pe);const Pe=ee;Pe.Group=Ce,Pe.__ANT_CHECKBOX=!0;var Ie=Pe},98447:function(Gn,vn,Ke){"use strict";Ke.d(vn,{C2:function(){return Fe}});var tt=Ke(17313),Pt=Ke(37613),oe=Ke(83116);const Ue=me=>{const{checkboxCls:ce}=me,be=`${ce}-wrapper`;return[{[`${ce}-group`]:Object.assign(Object.assign({},(0,tt.Wf)(me)),{display:"inline-flex",flexWrap:"wrap",columnGap:me.marginXS,[`> ${me.antCls}-row`]:{flex:1}}),[be]:Object.assign(Object.assign({},(0,tt.Wf)(me)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${be}`]:{marginInlineStart:0},[`&${be}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ce]:Object.assign(Object.assign({},(0,tt.Wf)(me)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:me.borderRadiusSM,alignSelf:"center",[`${ce}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ce}-inner`]:Object.assign({},(0,tt.oN)(me))},[`${ce}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:me.checkboxSize,height:me.checkboxSize,direction:"ltr",backgroundColor:me.colorBgContainer,border:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`,borderRadius:me.borderRadiusSM,borderCollapse:"separate",transition:`all ${me.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:me.checkboxSize/14*5,height:me.checkboxSize/14*8,border:`${me.lineWidthBold}px solid ${me.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${me.motionDurationFast} ${me.motionEaseInBack}, opacity ${me.motionDurationFast}`}},"& + span":{paddingInlineStart:me.paddingXS,paddingInlineEnd:me.paddingXS}})},{[`
|
|
|
${be}:not(${be}-disabled),
|
|
|
${ce}:not(${ce}-disabled)
|
|
|
`]:{[`&:hover ${ce}-inner`]:{borderColor:me.colorPrimary}},[`${be}:not(${be}-disabled)`]:{[`&:hover ${ce}-checked:not(${ce}-disabled) ${ce}-inner`]:{backgroundColor:me.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ce}-checked:not(${ce}-disabled):after`]:{borderColor:me.colorPrimaryHover}}},{[`${ce}-checked`]:{[`${ce}-inner`]:{backgroundColor:me.colorPrimary,borderColor:me.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${me.motionDurationMid} ${me.motionEaseOutBack} ${me.motionDurationFast}`}}},[`
|
|
|
${be}-checked:not(${be}-disabled),
|
|
|
${ce}-checked:not(${ce}-disabled)
|
|
|
`]:{[`&:hover ${ce}-inner`]:{backgroundColor:me.colorPrimaryHover,borderColor:"transparent"}}},{[ce]:{"&-indeterminate":{[`${ce}-inner`]:{backgroundColor:me.colorBgContainer,borderColor:me.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:me.fontSizeLG/2,height:me.fontSizeLG/2,backgroundColor:me.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${be}-disabled`]:{cursor:"not-allowed"},[`${ce}-disabled`]:{[`&, ${ce}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ce}-inner`]:{background:me.colorBgContainerDisabled,borderColor:me.colorBorder,"&:after":{borderColor:me.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:me.colorTextDisabled},[`&${ce}-indeterminate ${ce}-inner::after`]:{background:me.colorTextDisabled}}}]};function Fe(me,ce){const be=(0,Pt.TS)(ce,{checkboxCls:`.${me}`,checkboxSize:ce.controlInteractiveSize});return[Ue(be)]}vn.ZP=(0,oe.Z)("Checkbox",(me,ce)=>{let{prefixCls:be}=ce;return[Fe(be,me)]})},93891:function(Gn,vn,Ke){"use strict";var tt=Ke(59301),Pt=Ke(36355),oe=Ke(64165);const Ue=Fe=>{const{componentName:me}=Fe,{getPrefixCls:ce}=(0,tt.useContext)(Pt.E_),be=ce("empty");switch(me){case"Table":case"List":return tt.createElement(oe.Z,{image:oe.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return tt.createElement(oe.Z,{image:oe.Z.PRESENTED_IMAGE_SIMPLE,className:`${be}-small`});default:return tt.createElement(oe.Z,null)}};vn.Z=Ue},91857:function(Gn,vn,Ke){"use strict";var tt=Ke(59301),Pt=Ke(38226),oe=Ke(92310),Ue=Ke.n(oe),Fe=Ke(31561),me=Ke(80764),ce=Ke(35788),be=Ke(64002),Le=Ke(79676),Se=Ke(53487),ke=Ke(92343),ve=Ke(36355),xe=Ke(20834),fe=Ke(40875),z=Ke(88088),ee=Ke(47211);const ae=null,re=Ce=>{const{menu:Pe,arrow:Ie,prefixCls:Oe,children:Ae,trigger:je,disabled:Be,dropdownRender:_e,getPopupContainer:qe,overlayClassName:ze,rootClassName:Ye,open:et,onOpenChange:lt,visible:dt,onVisibleChange:vt,mouseEnterDelay:Je=.15,mouseLeaveDelay:ot=.1,autoAdjustOverflow:ft=!0,placement:xt="",overlay:yt,transitionName:pt}=Ce,{getPopupContainer:gt,getPrefixCls:mt,direction:Mt}=tt.useContext(ve.E_),Ct=tt.useMemo(()=>{const ht=mt();return pt!==void 0?pt:xt.includes("top")?`${ht}-slide-down`:`${ht}-slide-up`},[mt,xt,pt]),zt=tt.useMemo(()=>xt?xt.includes("Center")?xt.slice(0,xt.indexOf("Center")):xt:Mt==="rtl"?"bottomRight":"bottomLeft",[xt,Mt]),St=mt("dropdown",Oe),[bt,at]=(0,ee.Z)(St),[,nt]=(0,z.Z)(),we=tt.Children.only(Ae),Te=(0,ke.Tm)(we,{className:Ue()(`${St}-trigger`,{[`${St}-rtl`]:Mt==="rtl"},we.props.className),disabled:Be}),Ve=Be?[]:je;let Ze;Ve&&Ve.includes("contextMenu")&&(Ze=!0);const[Ee,Ge]=(0,ce.Z)(!1,{value:et!=null?et:dt}),He=(0,me.useEvent)(ht=>{lt==null||lt(ht),vt==null||vt(ht),Ge(ht)}),We=Ue()(ze,Ye,at,{[`${St}-rtl`]:Mt==="rtl"}),Xe=(0,Le.Z)({arrowPointAtCenter:typeof Ie=="object"&&Ie.pointAtCenter,autoAdjustOverflow:ft,offset:nt.marginXXS,arrowWidth:Ie?nt.sizePopupArrow:0,borderRadius:nt.borderRadius}),ct=tt.useCallback(()=>{Ge(!1)},[]),Et=()=>{let ht;return Pe!=null&&Pe.items?ht=tt.createElement(xe.default,Object.assign({},Pe)):typeof yt=="function"?ht=yt():ht=yt,_e&&(ht=_e(ht)),ht=tt.Children.only(typeof ht=="string"?tt.createElement("span",null,ht):ht),tt.createElement(fe.J,{prefixCls:`${St}-menu`,expandIcon:tt.createElement("span",{className:`${St}-menu-submenu-arrow`},tt.createElement(Pt.Z,{className:`${St}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ct,validator:It=>{let{mode:qt}=It}},ht)};return bt(tt.createElement(Fe.Z,Object.assign({alignPoint:Ze},(0,be.Z)(Ce,["rootClassName"]),{mouseEnterDelay:Je,mouseLeaveDelay:ot,visible:Ee,builtinPlacements:Xe,arrow:!!Ie,overlayClassName:We,prefixCls:St,getPopupContainer:qe||gt,transitionName:Ct,trigger:Ve,overlay:Et,placement:zt,onVisibleChange:He}),Te))};function le(Ce){return Object.assign(Object.assign({},Ce),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ue=(0,Se.Z)(re,"dropdown",Ce=>Ce,le),pe=Ce=>tt.createElement(ue,Object.assign({},Ce),tt.createElement("span",null));re._InternalPanelDoNotUseOrYouWillBeFired=pe,vn.Z=re},38854:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return z}});var tt=Ke(91857),Pt=Ke(92310),oe=Ke.n(Pt),Ue=Ke(59301),Fe=Ke(24764),me=Ke(3113),ce=Ke(36355),be=Ke(81327),Le=Ke(33234),Se=Ke(47211),ke=function(ee,ae){var re={};for(var le in ee)Object.prototype.hasOwnProperty.call(ee,le)&&ae.indexOf(le)<0&&(re[le]=ee[le]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,le=Object.getOwnPropertySymbols(ee);ue<le.length;ue++)ae.indexOf(le[ue])<0&&Object.prototype.propertyIsEnumerable.call(ee,le[ue])&&(re[le[ue]]=ee[le[ue]]);return re};const ve=ee=>{const{getPopupContainer:ae,getPrefixCls:re,direction:le}=Ue.useContext(ce.E_),{prefixCls:ue,type:pe="default",danger:Ce,disabled:Pe,loading:Ie,onClick:Oe,htmlType:Ae,children:je,className:Be,menu:_e,arrow:qe,autoFocus:ze,overlay:Ye,trigger:et,align:lt,open:dt,onOpenChange:vt,placement:Je,getPopupContainer:ot,href:ft,icon:xt=Ue.createElement(Fe.Z,null),title:yt,buttonsRender:pt=Et=>Et,mouseEnterDelay:gt,mouseLeaveDelay:mt,overlayClassName:Mt,overlayStyle:Ct,destroyPopupOnHide:zt,dropdownRender:St}=ee,bt=ke(ee,["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"]),at=re("dropdown",ue),nt=`${at}-button`,[we,Te]=(0,Se.Z)(at),Ve={menu:_e,arrow:qe,autoFocus:ze,align:lt,disabled:Pe,trigger:Pe?[]:et,onOpenChange:vt,getPopupContainer:ot||ae,mouseEnterDelay:gt,mouseLeaveDelay:mt,overlayClassName:Mt,overlayStyle:Ct,destroyPopupOnHide:zt,dropdownRender:St},{compactSize:Ze,compactItemClassnames:Ee}=(0,Le.ri)(at,le),Ge=oe()(nt,Ee,Be,Te);"overlay"in ee&&(Ve.overlay=Ye),"open"in ee&&(Ve.open=dt),"placement"in ee?Ve.placement=Je:Ve.placement=le==="rtl"?"bottomLeft":"bottomRight";const He=Ue.createElement(me.ZP,{type:pe,danger:Ce,disabled:Pe,loading:Ie,onClick:Oe,htmlType:Ae,href:ft,title:yt},je),We=Ue.createElement(me.ZP,{type:pe,danger:Ce,icon:xt}),[Xe,ct]=pt([He,We]);return we(Ue.createElement(be.Z.Compact,Object.assign({className:Ge,size:Ze,block:!0},bt),Xe,Ue.createElement(tt.Z,Object.assign({},Ve),ct)))};ve.__ANT_BUTTON=!0;var xe=ve;const fe=tt.Z;fe.Button=xe;var z=fe},47211:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return ke}});var tt=Ke(17313),Pt=Ke(13826),oe=Ke(92899),Ue=Ke(29878),Fe=Ke(19447),me=Ke(83116),ce=Ke(37613),Le=ve=>{const{componentCls:xe,menuCls:fe,colorError:z,colorTextLightSolid:ee}=ve,ae=`${fe}-item`;return{[`${xe}, ${xe}-menu-submenu`]:{[`${fe} ${ae}`]:{[`&${ae}-danger:not(${ae}-disabled)`]:{color:z,"&:hover":{color:ee,backgroundColor:z}}}}}};const Se=ve=>{const{componentCls:xe,menuCls:fe,zIndexPopup:z,dropdownArrowDistance:ee,sizePopupArrow:ae,antCls:re,iconCls:le,motionDurationMid:ue,dropdownPaddingVertical:pe,fontSize:Ce,dropdownEdgeChildPadding:Pe,colorTextDisabled:Ie,fontSizeIcon:Oe,controlPaddingHorizontal:Ae,colorBgElevated:je}=ve;return[{[xe]:Object.assign(Object.assign({},(0,tt.Wf)(ve)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:z,display:"block","&::before":{position:"absolute",insetBlock:-ee+ae/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${re}-btn`]:{[`& > ${le}-down, & > ${re}-btn-icon > ${le}-down`]:{fontSize:Oe}},[`${xe}-wrap`]:{position:"relative",[`${re}-btn > ${le}-down`]:{fontSize:Oe},[`${le}-down::before`]:{transition:`transform ${ue}`}},[`${xe}-wrap-open`]:{[`${le}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${re}-slide-down-enter${re}-slide-down-enter-active${xe}-placement-bottomLeft,
|
|
|
&${re}-slide-down-appear${re}-slide-down-appear-active${xe}-placement-bottomLeft,
|
|
|
&${re}-slide-down-enter${re}-slide-down-enter-active${xe}-placement-bottom,
|
|
|
&${re}-slide-down-appear${re}-slide-down-appear-active${xe}-placement-bottom,
|
|
|
&${re}-slide-down-enter${re}-slide-down-enter-active${xe}-placement-bottomRight,
|
|
|
&${re}-slide-down-appear${re}-slide-down-appear-active${xe}-placement-bottomRight`]:{animationName:Pt.fJ},[`&${re}-slide-up-enter${re}-slide-up-enter-active${xe}-placement-topLeft,
|
|
|
&${re}-slide-up-appear${re}-slide-up-appear-active${xe}-placement-topLeft,
|
|
|
&${re}-slide-up-enter${re}-slide-up-enter-active${xe}-placement-top,
|
|
|
&${re}-slide-up-appear${re}-slide-up-appear-active${xe}-placement-top,
|
|
|
&${re}-slide-up-enter${re}-slide-up-enter-active${xe}-placement-topRight,
|
|
|
&${re}-slide-up-appear${re}-slide-up-appear-active${xe}-placement-topRight`]:{animationName:Pt.Qt},[`&${re}-slide-down-leave${re}-slide-down-leave-active${xe}-placement-bottomLeft,
|
|
|
&${re}-slide-down-leave${re}-slide-down-leave-active${xe}-placement-bottom,
|
|
|
&${re}-slide-down-leave${re}-slide-down-leave-active${xe}-placement-bottomRight`]:{animationName:Pt.Uw},[`&${re}-slide-up-leave${re}-slide-up-leave-active${xe}-placement-topLeft,
|
|
|
&${re}-slide-up-leave${re}-slide-up-leave-active${xe}-placement-top,
|
|
|
&${re}-slide-up-leave${re}-slide-up-leave-active${xe}-placement-topRight`]:{animationName:Pt.ly}})},(0,Fe.ZP)(ve,{colorBg:je,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${xe} ${fe}`]:{position:"relative",margin:0},[`${fe}-submenu-popup`]:{position:"absolute",zIndex:z,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${xe}, ${xe}-menu-submenu`]:{[fe]:Object.assign(Object.assign({padding:Pe,listStyleType:"none",backgroundColor:je,backgroundClip:"padding-box",borderRadius:ve.borderRadiusLG,outline:"none",boxShadow:ve.boxShadowSecondary},(0,tt.Qy)(ve)),{[`${fe}-item-group-title`]:{padding:`${pe}px ${Ae}px`,color:ve.colorTextDescription,transition:`all ${ue}`},[`${fe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${fe}-item-icon`]:{minWidth:Ce,marginInlineEnd:ve.marginXS,fontSize:ve.fontSizeSM},[`${fe}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ue}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${fe}-item, ${fe}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${pe}px ${Ae}px`,color:ve.colorText,fontWeight:"normal",fontSize:Ce,lineHeight:ve.lineHeight,cursor:"pointer",transition:`all ${ue}`,borderRadius:ve.borderRadiusSM,"&:hover, &-active":{backgroundColor:ve.controlItemBgHover}},(0,tt.Qy)(ve)),{"&-selected":{color:ve.colorPrimary,backgroundColor:ve.controlItemBgActive,"&:hover, &-active":{backgroundColor:ve.controlItemBgActiveHover}},"&-disabled":{color:Ie,cursor:"not-allowed","&:hover":{color:Ie,backgroundColor:je,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ve.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ve.colorSplit},[`${xe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ve.paddingXS,[`${xe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ve.colorTextDescription,fontSize:Oe,fontStyle:"normal"}}}),[`${fe}-item-group-list`]:{margin:`0 ${ve.marginXS}px`,padding:0,listStyle:"none"},[`${fe}-submenu-title`]:{paddingInlineEnd:Ae+ve.fontSizeSM},[`${fe}-submenu-vertical`]:{position:"relative"},[`${fe}-submenu${fe}-submenu-disabled ${xe}-menu-submenu-title`]:{[`&, ${xe}-menu-submenu-arrow-icon`]:{color:Ie,backgroundColor:je,cursor:"not-allowed"}},[`${fe}-submenu-selected ${xe}-menu-submenu-title`]:{color:ve.colorPrimary}})}},[(0,Pt.oN)(ve,"slide-up"),(0,Pt.oN)(ve,"slide-down"),(0,oe.Fm)(ve,"move-up"),(0,oe.Fm)(ve,"move-down"),(0,Ue._y)(ve,"zoom-big")]]};var ke=(0,me.Z)("Dropdown",(ve,xe)=>{let{rootPrefixCls:fe}=xe;const{marginXXS:z,sizePopupArrow:ee,controlHeight:ae,fontSize:re,lineHeight:le,paddingXXS:ue,componentCls:pe,borderRadiusLG:Ce}=ve,Pe=(ae-re*le)/2,{dropdownArrowOffset:Ie}=(0,Fe.fS)({contentRadius:Ce}),Oe=(0,ce.TS)(ve,{menuCls:`${pe}-menu`,rootPrefixCls:fe,dropdownArrowDistance:ee/2+z,dropdownArrowOffset:Ie,dropdownPaddingVertical:Pe,dropdownEdgeChildPadding:ue});return[Se(Oe),Le(Oe)]},ve=>({zIndexPopup:ve.zIndexPopupBase+50}))},64165:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return ue}});var tt=Ke(92310),Pt=Ke.n(tt),oe=Ke(59301),Ue=Ke(36355),Fe=Ke(9763),me=Ke(64993),ce=Ke(88088),Le=()=>{const[,pe]=(0,ce.Z)(),Pe=new me.C(pe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return oe.createElement("svg",{style:Pe,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},oe.createElement("g",{fill:"none",fillRule:"evenodd"},oe.createElement("g",{transform:"translate(24 31.67)"},oe.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),oe.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"}),oe.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)"}),oe.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"}),oe.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"})),oe.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"}),oe.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},oe.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),oe.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ke=()=>{const[,pe]=(0,ce.Z)(),{colorFill:Ce,colorFillTertiary:Pe,colorFillQuaternary:Ie,colorBgContainer:Oe}=pe,{borderColor:Ae,shadowColor:je,contentColor:Be}=(0,oe.useMemo)(()=>({borderColor:new me.C(Ce).onBackground(Oe).toHexShortString(),shadowColor:new me.C(Pe).onBackground(Oe).toHexShortString(),contentColor:new me.C(Ie).onBackground(Oe).toHexShortString()}),[Ce,Pe,Ie,Oe]);return oe.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},oe.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},oe.createElement("ellipse",{fill:je,cx:"32",cy:"33",rx:"32",ry:"7"}),oe.createElement("g",{fillRule:"nonzero",stroke:Ae},oe.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"}),oe.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Be}))))},ve=Ke(83116),xe=Ke(37613);const fe=pe=>{const{componentCls:Ce,margin:Pe,marginXS:Ie,marginXL:Oe,fontSize:Ae,lineHeight:je}=pe;return{[Ce]:{marginInline:Ie,fontSize:Ae,lineHeight:je,textAlign:"center",[`${Ce}-image`]:{height:pe.emptyImgHeight,marginBottom:Ie,opacity:pe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ce}-description`]:{color:pe.colorText},[`${Ce}-footer`]:{marginTop:Pe},"&-normal":{marginBlock:Oe,color:pe.colorTextDisabled,[`${Ce}-description`]:{color:pe.colorTextDisabled},[`${Ce}-image`]:{height:pe.emptyImgHeightMD}},"&-small":{marginBlock:Ie,color:pe.colorTextDisabled,[`${Ce}-image`]:{height:pe.emptyImgHeightSM}}}}};var z=(0,ve.Z)("Empty",pe=>{const{componentCls:Ce,controlHeightLG:Pe}=pe,Ie=(0,xe.TS)(pe,{emptyImgCls:`${Ce}-img`,emptyImgHeight:Pe*2.5,emptyImgHeightMD:Pe,emptyImgHeightSM:Pe*.875});return[fe(Ie)]}),ee=function(pe,Ce){var Pe={};for(var Ie in pe)Object.prototype.hasOwnProperty.call(pe,Ie)&&Ce.indexOf(Ie)<0&&(Pe[Ie]=pe[Ie]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Ie=Object.getOwnPropertySymbols(pe);Oe<Ie.length;Oe++)Ce.indexOf(Ie[Oe])<0&&Object.prototype.propertyIsEnumerable.call(pe,Ie[Oe])&&(Pe[Ie[Oe]]=pe[Ie[Oe]]);return Pe};const ae=oe.createElement(Le,null),re=oe.createElement(ke,null),le=pe=>{var{className:Ce,rootClassName:Pe,prefixCls:Ie,image:Oe=ae,description:Ae,children:je,imageStyle:Be,style:_e}=pe,qe=ee(pe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:ze,direction:Ye,empty:et}=oe.useContext(Ue.E_),lt=ze("empty",Ie),[dt,vt]=z(lt),[Je]=(0,Fe.Z)("Empty"),ot=typeof Ae!="undefined"?Ae:Je==null?void 0:Je.description,ft=typeof ot=="string"?ot:"empty";let xt=null;return typeof Oe=="string"?xt=oe.createElement("img",{alt:ft,src:Oe}):xt=Oe,dt(oe.createElement("div",Object.assign({className:Pt()(vt,lt,et==null?void 0:et.className,{[`${lt}-normal`]:Oe===re,[`${lt}-rtl`]:Ye==="rtl"},Ce,Pe),style:Object.assign(Object.assign({},et==null?void 0:et.style),_e)},qe),oe.createElement("div",{className:`${lt}-image`,style:Be},xt),ot&&oe.createElement("div",{className:`${lt}-description`},ot),je&&oe.createElement("div",{className:`${lt}-footer`},je)))};le.PRESENTED_IMAGE_DEFAULT=ae,le.PRESENTED_IMAGE_SIMPLE=re;var ue=le},78241:function(Gn,vn,Ke){"use strict";Ke.d(vn,{default:function(){return Jt}});var tt=Ke(26390),Pt=Ke(92310),oe=Ke.n(Pt),Ue=Ke(43469),Fe=Ke(59301),me=Ke(62892),ce=Ke(32441);function be(jt){const[Pn,Cn]=Fe.useState(jt);return Fe.useEffect(()=>{const Kt=setTimeout(()=>{Cn(jt)},jt.length?0:10);return()=>{clearTimeout(Kt)}},[jt]),Pn}var Le=Ke(17313),Se=Ke(29878),ke=Ke(8378),ve=Ke(37613),xe=Ke(83116),z=jt=>{const{componentCls:Pn}=jt,Cn=`${Pn}-show-help`,Kt=`${Pn}-show-help-item`;return{[Cn]:{transition:`opacity ${jt.motionDurationSlow} ${jt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Kt]:{overflow:"hidden",transition:`height ${jt.motionDurationSlow} ${jt.motionEaseInOut},
|
|
|
opacity ${jt.motionDurationSlow} ${jt.motionEaseInOut},
|
|
|
transform ${jt.motionDurationSlow} ${jt.motionEaseInOut} !important`,[`&${Kt}-appear, &${Kt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Kt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ee=jt=>({legend:{display:"block",width:"100%",marginBottom:jt.marginLG,padding:0,color:jt.colorTextDescription,fontSize:jt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${jt.lineWidth}px ${jt.lineType} ${jt.colorBorder}`},label:{fontSize:jt.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 ${jt.controlOutlineWidth}px ${jt.controlOutline}`},output:{display:"block",paddingTop:15,color:jt.colorText,fontSize:jt.fontSize,lineHeight:jt.lineHeight}}),ae=(jt,Pn)=>{const{formItemCls:Cn}=jt;return{[Cn]:{[`${Cn}-label > label`]:{height:Pn},[`${Cn}-control-input`]:{minHeight:Pn}}}},re=jt=>{const{componentCls:Pn}=jt;return{[jt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Le.Wf)(jt)),ee(jt)),{[`${Pn}-text`]:{display:"inline-block",paddingInlineEnd:jt.paddingSM},"&-small":Object.assign({},ae(jt,jt.controlHeightSM)),"&-large":Object.assign({},ae(jt,jt.controlHeightLG))})}},le=jt=>{const{formItemCls:Pn,iconCls:Cn,componentCls:Kt,rootPrefixCls:Dt,labelRequiredMarkColor:pn,labelColor:yn,labelFontSize:Jn,labelHeight:bn,labelColonMarginInlineStart:Zt,labelColonMarginInlineEnd:jn,itemMarginBottom:Fn}=jt;return{[Pn]:Object.assign(Object.assign({},(0,Le.Wf)(jt)),{marginBottom:Fn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Dt}-row`]:{display:"none"},"&-has-warning":{[`${Pn}-split`]:{color:jt.colorError}},"&-has-error":{[`${Pn}-split`]:{color:jt.colorWarning}},[`${Pn}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${jt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:bn,color:yn,fontSize:Jn,[`> ${Cn}`]:{fontSize:jt.fontSize,verticalAlign:"top"},[`&${Pn}-required:not(${Pn}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:jt.marginXXS,color:pn,fontSize:jt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Kt}-hide-required-mark &`]:{display:"none"}},[`${Pn}-optional`]:{display:"inline-block",marginInlineStart:jt.marginXXS,color:jt.colorTextDescription,[`${Kt}-hide-required-mark &`]:{display:"none"}},[`${Pn}-tooltip`]:{color:jt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:jt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Zt,marginInlineEnd:jn},[`&${Pn}-no-colon::after`]:{content:'"\\a0"'}}},[`${Pn}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Dt}-col-'"]):not([class*="' ${Dt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:jt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Pn]:{"&-explain, &-extra":{clear:"both",color:jt.colorTextDescription,fontSize:jt.fontSize,lineHeight:jt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:jt.controlHeightSM,transition:`color ${jt.motionDurationMid} ${jt.motionEaseOut}`},"&-explain":{"&-error":{color:jt.colorError},"&-warning":{color:jt.colorWarning}}},[`&-with-help ${Pn}-explain`]:{height:"auto",opacity:1},[`${Pn}-feedback-icon`]:{fontSize:jt.fontSize,textAlign:"center",visibility:"visible",animationName:Se.kr,animationDuration:jt.motionDurationMid,animationTimingFunction:jt.motionEaseOutBack,pointerEvents:"none","&-success":{color:jt.colorSuccess},"&-error":{color:jt.colorError},"&-warning":{color:jt.colorWarning},"&-validating":{color:jt.colorPrimary}}})}},ue=jt=>{const{componentCls:Pn,formItemCls:Cn}=jt;return{[`${Pn}-horizontal`]:{[`${Cn}-label`]:{flexGrow:0},[`${Cn}-control`]:{flex:"1 1 0",minWidth:0},[`${Cn}-label[class$='-24'], ${Cn}-label[class*='-24 ']`]:{[`& + ${Cn}-control`]:{minWidth:"unset"}}}}},pe=jt=>{const{componentCls:Pn,formItemCls:Cn}=jt;return{[`${Pn}-inline`]:{display:"flex",flexWrap:"wrap",[Cn]:{flex:"none",marginInlineEnd:jt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Cn}-label,
|
|
|
> ${Cn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Cn}-label`]:{flex:"none"},[`${Pn}-text`]:{display:"inline-block"},[`${Cn}-has-feedback`]:{display:"inline-block"}}}}},Ce=jt=>({padding:jt.verticalLabelPadding,margin:jt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Pe=jt=>{const{componentCls:Pn,formItemCls:Cn,rootPrefixCls:Kt}=jt;return{[`${Cn} ${Cn}-label`]:Ce(jt),[Pn]:{[Cn]:{flexWrap:"wrap",[`${Cn}-label, ${Cn}-control`]:{[`&:not([class*=" ${Kt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ie=jt=>{const{componentCls:Pn,formItemCls:Cn,rootPrefixCls:Kt}=jt;return{[`${Pn}-vertical`]:{[Cn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Pn}-item-control`]:{width:"100%"}}},[`${Pn}-vertical ${Cn}-label,
|
|
|
.${Kt}-col-24${Cn}-label,
|
|
|
.${Kt}-col-xl-24${Cn}-label`]:Ce(jt),[`@media (max-width: ${jt.screenXSMax}px)`]:[Pe(jt),{[Pn]:{[`.${Kt}-col-xs-24${Cn}-label`]:Ce(jt)}}],[`@media (max-width: ${jt.screenSMMax}px)`]:{[Pn]:{[`.${Kt}-col-sm-24${Cn}-label`]:Ce(jt)}},[`@media (max-width: ${jt.screenMDMax}px)`]:{[Pn]:{[`.${Kt}-col-md-24${Cn}-label`]:Ce(jt)}},[`@media (max-width: ${jt.screenLGMax}px)`]:{[Pn]:{[`.${Kt}-col-lg-24${Cn}-label`]:Ce(jt)}}}},Oe=(jt,Pn)=>(0,ve.TS)(jt,{formItemCls:`${jt.componentCls}-item`,rootPrefixCls:Pn});var Ae=(0,xe.Z)("Form",(jt,Pn)=>{let{rootPrefixCls:Cn}=Pn;const Kt=Oe(jt,Cn);return[re(Kt),le(Kt),z(Kt),ue(Kt),pe(Kt),Ie(Kt),(0,ke.Z)(Kt),Se.kr]},jt=>({labelRequiredMarkColor:jt.colorError,labelColor:jt.colorTextHeading,labelFontSize:jt.fontSize,labelHeight:jt.controlHeight,labelColonMarginInlineStart:jt.marginXXS/2,labelColonMarginInlineEnd:jt.marginXS,itemMarginBottom:jt.marginLG,verticalLabelPadding:`0 0 ${jt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const je=[];function Be(jt,Pn,Cn){let Kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof jt=="string"?jt:`${Pn}-${Kt}`,error:jt,errorStatus:Cn}}var qe=jt=>{let{help:Pn,helpStatus:Cn,errors:Kt=je,warnings:Dt=je,className:pn,fieldId:yn,onVisibleChanged:Jn}=jt;const{prefixCls:bn}=Fe.useContext(ce.Rk),Zt=`${bn}-item-explain`,[,jn]=Ae(bn),Fn=(0,Fe.useMemo)(()=>(0,me.Z)(bn),[bn]),ar=be(Kt),nn=be(Dt),On=Fe.useMemo(()=>Pn!=null?[Be(Pn,"help",Cn)]:[].concat((0,tt.Z)(ar.map((mn,Ln)=>Be(mn,"error","error",Ln))),(0,tt.Z)(nn.map((mn,Ln)=>Be(mn,"warning","warning",Ln)))),[Pn,Cn,ar,nn]),an={};return yn&&(an.id=`${yn}_help`),Fe.createElement(Ue.default,{motionDeadline:Fn.motionDeadline,motionName:`${bn}-show-help`,visible:!!On.length,onVisibleChanged:Jn},mn=>{const{className:Ln,style:xn}=mn;return Fe.createElement("div",Object.assign({},an,{className:oe()(Zt,Ln,pn,jn),style:xn,role:"alert"}),Fe.createElement(Ue.CSSMotionList,Object.assign({keys:On},(0,me.Z)(bn),{motionName:`${bn}-show-help-item`,component:!1}),In=>{const{key:gn,error:Nn,errorStatus:kn,className:En,style:$n}=In;return Fe.createElement("div",{key:gn,className:oe()(En,{[`${Zt}-${kn}`]:kn}),style:$n},Nn)}))})},ze=Ke(95013),Ye=Ke(36355),et=Ke(1684),lt=Ke(52946),dt=Ke(19716),vt=Ke(16722);const Je=["parentNode"],ot="form_item";function ft(jt){return jt===void 0||jt===!1?[]:Array.isArray(jt)?jt:[jt]}function xt(jt,Pn){if(!jt.length)return;const Cn=jt.join("_");return Pn?`${Pn}_${Cn}`:Je.includes(Cn)?`${ot}_${Cn}`:Cn}function yt(jt,Pn,Cn,Kt,Dt,pn){let yn=Kt;return pn!==void 0?yn=pn:Cn.validating?yn="validating":jt.length?yn="error":Pn.length?yn="warning":(Cn.touched||Dt&&Cn.validated)&&(yn="success"),yn}function pt(jt){return ft(jt).join("_")}function gt(jt){const[Pn]=(0,ze.useForm)(),Cn=Fe.useRef({}),Kt=Fe.useMemo(()=>jt!=null?jt:Object.assign(Object.assign({},Pn),{__INTERNAL__:{itemRef:Dt=>pn=>{const yn=pt(Dt);pn?Cn.current[yn]=pn:delete Cn.current[yn]}},scrollToField:function(Dt){let pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const yn=ft(Dt),Jn=xt(yn,Kt.__INTERNAL__.name),bn=Jn?document.getElementById(Jn):null;bn&&(0,vt.Z)(bn,Object.assign({scrollMode:"if-needed",block:"nearest"},pn))},getFieldInstance:Dt=>{const pn=pt(Dt);return Cn.current[pn]}}),[jt,Pn]);return[Kt]}var mt=Ke(28726),Mt=function(jt,Pn){var Cn={};for(var Kt in jt)Object.prototype.hasOwnProperty.call(jt,Kt)&&Pn.indexOf(Kt)<0&&(Cn[Kt]=jt[Kt]);if(jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Kt=Object.getOwnPropertySymbols(jt);Dt<Kt.length;Dt++)Pn.indexOf(Kt[Dt])<0&&Object.prototype.propertyIsEnumerable.call(jt,Kt[Dt])&&(Cn[Kt[Dt]]=jt[Kt[Dt]]);return Cn};const Ct=(jt,Pn)=>{const Cn=Fe.useContext(et.Z),{getPrefixCls:Kt,direction:Dt,form:pn}=Fe.useContext(Ye.E_),{prefixCls:yn,className:Jn,rootClassName:bn,size:Zt,disabled:jn=Cn,form:Fn,colon:ar,labelAlign:nn,labelWrap:On,labelCol:an,wrapperCol:mn,hideRequiredMark:Ln,layout:xn="horizontal",scrollToFirstError:In,requiredMark:gn,onFinishFailed:Nn,name:kn,style:En,feedbackIcons:$n}=jt,mr=Mt(jt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Hr=(0,dt.Z)(Zt),Lr=Fe.useContext(mt.Z),en=(0,Fe.useMemo)(()=>gn!==void 0?gn:pn&&pn.requiredMark!==void 0?pn.requiredMark:!Ln,[Ln,gn,pn]),ur=ar!=null?ar:pn==null?void 0:pn.colon,Mr=Kt("form",yn),[pr,Ar]=Ae(Mr),Zr=oe()(Mr,`${Mr}-${xn}`,{[`${Mr}-hide-required-mark`]:en===!1,[`${Mr}-rtl`]:Dt==="rtl",[`${Mr}-${Hr}`]:Hr},Ar,pn==null?void 0:pn.className,Jn,bn),[gi]=gt(Fn),{__INTERNAL__:_r}=gi;_r.name=kn;const vr=(0,Fe.useMemo)(()=>({name:kn,labelAlign:nn,labelCol:an,labelWrap:On,wrapperCol:mn,vertical:xn==="vertical",colon:ur,requiredMark:en,itemRef:_r.itemRef,form:gi,feedbackIcons:$n}),[kn,nn,an,mn,xn,ur,en,gi,$n]);Fe.useImperativeHandle(Pn,()=>gi);const Qr=(ki,Dn)=>{if(ki){let ui={block:"nearest"};typeof ki=="object"&&(ui=ki),gi.scrollToField(Dn,ui)}},An=ki=>{if(Nn==null||Nn(ki),ki.errorFields.length){const Dn=ki.errorFields[0].name;if(In!==void 0){Qr(In,Dn);return}pn&&pn.scrollToFirstError!==void 0&&Qr(pn.scrollToFirstError,Dn)}};return pr(Fe.createElement(et.n,{disabled:jn},Fe.createElement(lt.q,{size:Hr},Fe.createElement(ce.RV,Object.assign({},{validateMessages:Lr}),Fe.createElement(ce.q3.Provider,{value:vr},Fe.createElement(ze.default,Object.assign({id:kn},mr,{name:kn,onFinishFailed:An,form:gi,style:Object.assign(Object.assign({},pn==null?void 0:pn.style),En),className:Zr})))))))};var St=Fe.forwardRef(Ct),bt=Ke(12383),at=Ke(20475),nt=Ke(92343),we=Ke(38298);function Te(jt){if(typeof jt=="function")return jt;const Pn=(0,we.Z)(jt);return Pn.length<=1?Pn[0]:Pn}const Ve=()=>{const{status:jt,errors:Pn=[],warnings:Cn=[]}=(0,Fe.useContext)(ce.aM);return{status:jt,errors:Pn,warnings:Cn}};Ve.Context=ce.aM;var Ze=Ve,Ee=Ke(23073);function Ge(jt){const[Pn,Cn]=Fe.useState(jt),Kt=(0,Fe.useRef)(null),Dt=(0,Fe.useRef)([]),pn=(0,Fe.useRef)(!1);Fe.useEffect(()=>(pn.current=!1,()=>{pn.current=!0,Ee.Z.cancel(Kt.current),Kt.current=null}),[]);function yn(Jn){pn.current||(Kt.current===null&&(Dt.current=[],Kt.current=(0,Ee.Z)(()=>{Kt.current=null,Cn(bn=>{let Zt=bn;return Dt.current.forEach(jn=>{Zt=jn(Zt)}),Zt})})),Dt.current.push(Jn))}return[Pn,yn]}function He(){const{itemRef:jt}=Fe.useContext(ce.q3),Pn=Fe.useRef({});function Cn(Kt,Dt){const pn=Dt&&typeof Dt=="object"&&Dt.ref,yn=Kt.join("_");return(Pn.current.name!==yn||Pn.current.originRef!==pn)&&(Pn.current.name=yn,Pn.current.originRef=pn,Pn.current.ref=(0,at.sQ)(jt(Kt),pn)),Pn.current.ref}return Cn}var We=Ke(48886),Xe=Ke(28800),ct=Ke(64002),Et=Ke(27382),ht=Ke(37028);const It=jt=>{const{formItemCls:Pn}=jt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Pn}-control`]:{display:"flex"}}}};var qt=(0,xe.b)(["Form","item-item"],(jt,Pn)=>{let{rootPrefixCls:Cn}=Pn;const Kt=Oe(jt,Cn);return[It(Kt)]}),Wt=jt=>{const{prefixCls:Pn,status:Cn,wrapperCol:Kt,children:Dt,errors:pn,warnings:yn,_internalItemRender:Jn,extra:bn,help:Zt,fieldId:jn,marginBottom:Fn,onErrorVisibleChanged:ar}=jt,nn=`${Pn}-item`,On=Fe.useContext(ce.q3),an=Kt||On.wrapperCol||{},mn=oe()(`${nn}-control`,an.className),Ln=Fe.useMemo(()=>Object.assign({},On),[On]);delete Ln.labelCol,delete Ln.wrapperCol;const xn=Fe.createElement("div",{className:`${nn}-control-input`},Fe.createElement("div",{className:`${nn}-control-input-content`},Dt)),In=Fe.useMemo(()=>({prefixCls:Pn,status:Cn}),[Pn,Cn]),gn=Fn!==null||pn.length||yn.length?Fe.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},Fe.createElement(ce.Rk.Provider,{value:In},Fe.createElement(qe,{fieldId:jn,errors:pn,warnings:yn,help:Zt,helpStatus:Cn,className:`${nn}-explain-connected`,onVisibleChanged:ar})),!!Fn&&Fe.createElement("div",{style:{width:0,height:Fn}})):null,Nn={};jn&&(Nn.id=`${jn}_extra`);const kn=bn?Fe.createElement("div",Object.assign({},Nn,{className:`${nn}-extra`}),bn):null,En=Jn&&Jn.mark==="pro_table_render"&&Jn.render?Jn.render(jt,{input:xn,errorList:gn,extra:kn}):Fe.createElement(Fe.Fragment,null,xn,gn,kn);return Fe.createElement(ce.q3.Provider,{value:Ln},Fe.createElement(ht.Z,Object.assign({},an,{className:mn}),En),Fe.createElement(qt,{prefixCls:Pn}))},Ut=Ke(385),ln=Ke(31724),kt=Ke(9763),Xt=Ke(6848),tn=function(jt,Pn){var Cn={};for(var Kt in jt)Object.prototype.hasOwnProperty.call(jt,Kt)&&Pn.indexOf(Kt)<0&&(Cn[Kt]=jt[Kt]);if(jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Kt=Object.getOwnPropertySymbols(jt);Dt<Kt.length;Dt++)Pn.indexOf(Kt[Dt])<0&&Object.prototype.propertyIsEnumerable.call(jt,Kt[Dt])&&(Cn[Kt[Dt]]=jt[Kt[Dt]]);return Cn};function dn(jt){return jt?typeof jt=="object"&&!Fe.isValidElement(jt)?jt:{title:jt}:null}var Rn=jt=>{let{prefixCls:Pn,label:Cn,htmlFor:Kt,labelCol:Dt,labelAlign:pn,colon:yn,required:Jn,requiredMark:bn,tooltip:Zt}=jt;var jn;const[Fn]=(0,kt.Z)("Form"),{vertical:ar,labelAlign:nn,labelCol:On,labelWrap:an,colon:mn}=Fe.useContext(ce.q3);if(!Cn)return null;const Ln=Dt||On||{},xn=pn||nn,In=`${Pn}-item-label`,gn=oe()(In,xn==="left"&&`${In}-left`,Ln.className,{[`${In}-wrap`]:!!an});let Nn=Cn;const kn=yn===!0||mn!==!1&&yn!==!1;kn&&!ar&&typeof Cn=="string"&&Cn.trim()!==""&&(Nn=Cn.replace(/[:|:]\s*$/,""));const $n=dn(Zt);if($n){const{icon:en=Fe.createElement(Ut.Z,null)}=$n,ur=tn($n,["icon"]),Mr=Fe.createElement(Xt.Z,Object.assign({},ur),Fe.cloneElement(en,{className:`${Pn}-item-tooltip`,title:""}));Nn=Fe.createElement(Fe.Fragment,null,Nn,Mr)}const mr=bn==="optional",Hr=typeof bn=="function";Hr?Nn=bn(Nn,{required:!!Jn}):mr&&!Jn&&(Nn=Fe.createElement(Fe.Fragment,null,Nn,Fe.createElement("span",{className:`${Pn}-item-optional`,title:""},(Fn==null?void 0:Fn.optional)||((jn=ln.Z.Form)===null||jn===void 0?void 0:jn.optional))));const Lr=oe()({[`${Pn}-item-required`]:Jn,[`${Pn}-item-required-mark-optional`]:mr||Hr,[`${Pn}-item-no-colon`]:!kn});return Fe.createElement(ht.Z,Object.assign({},Ln,{className:gn}),Fe.createElement("label",{htmlFor:Kt,className:Lr,title:typeof Cn=="string"?Cn:""},Nn))},ir=Ke(5242),qn=Ke(37637),Cr=Ke(4715),er=Ke(78714);const Fr={success:ir.Z,warning:Cr.Z,error:qn.Z,validating:er.Z};function jr(jt){let{children:Pn,errors:Cn,warnings:Kt,hasFeedback:Dt,validateStatus:pn,prefixCls:yn,meta:Jn,noStyle:bn}=jt;const Zt=`${yn}-item`,{feedbackIcons:jn}=Fe.useContext(ce.q3),Fn=yt(Cn,Kt,Jn,null,!!Dt,pn),{isFormItemInput:ar,status:nn}=Fe.useContext(ce.aM),On=Fe.useMemo(()=>{var an;let mn;if(Dt){const In=Dt!==!0&&Dt.icons||jn,gn=Fn&&((an=In==null?void 0:In({status:Fn,errors:Cn,warnings:Kt}))===null||an===void 0?void 0:an[Fn]),Nn=Fn&&Fr[Fn];mn=gn!==!1&&Nn?Fe.createElement("span",{className:oe()(`${Zt}-feedback-icon`,`${Zt}-feedback-icon-${Fn}`)},gn||Fe.createElement(Nn,null)):null}let Ln=!0,xn=Fn||"";return bn&&(Ln=ar,xn=(Fn!=null?Fn:nn)||""),{status:xn,errors:Cn,warnings:Kt,hasFeedback:!!Dt,feedbackIcon:mn,isFormItemInput:Ln}},[Fn,Dt,bn,ar,nn]);return Fe.createElement(ce.aM.Provider,{value:On},Pn)}var fi=function(jt,Pn){var Cn={};for(var Kt in jt)Object.prototype.hasOwnProperty.call(jt,Kt)&&Pn.indexOf(Kt)<0&&(Cn[Kt]=jt[Kt]);if(jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Kt=Object.getOwnPropertySymbols(jt);Dt<Kt.length;Dt++)Pn.indexOf(Kt[Dt])<0&&Object.prototype.propertyIsEnumerable.call(jt,Kt[Dt])&&(Cn[Kt[Dt]]=jt[Kt[Dt]]);return Cn};function Si(jt){const{prefixCls:Pn,className:Cn,rootClassName:Kt,style:Dt,help:pn,errors:yn,warnings:Jn,validateStatus:bn,meta:Zt,hasFeedback:jn,hidden:Fn,children:ar,fieldId:nn,required:On,isRequired:an,onSubItemMetaChange:mn}=jt,Ln=fi(jt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),xn=`${Pn}-item`,{requiredMark:In}=Fe.useContext(ce.q3),gn=Fe.useRef(null),Nn=be(yn),kn=be(Jn),En=pn!=null,$n=!!(En||yn.length||Jn.length),mr=!!gn.current&&(0,We.Z)(gn.current),[Hr,Lr]=Fe.useState(null);(0,Xe.Z)(()=>{if($n&&gn.current){const Ar=getComputedStyle(gn.current);Lr(parseInt(Ar.marginBottom,10))}},[$n,mr]);const en=Ar=>{Ar||Lr(null)},Mr=function(){let Ar=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Zr=Ar?Nn:Zt.errors,gi=Ar?kn:Zt.warnings;return yt(Zr,gi,Zt,"",!!jn,bn)}(),pr=oe()(xn,Cn,Kt,{[`${xn}-with-help`]:En||Nn.length||kn.length,[`${xn}-has-feedback`]:Mr&&jn,[`${xn}-has-success`]:Mr==="success",[`${xn}-has-warning`]:Mr==="warning",[`${xn}-has-error`]:Mr==="error",[`${xn}-is-validating`]:Mr==="validating",[`${xn}-hidden`]:Fn});return Fe.createElement("div",{className:pr,style:Dt,ref:gn},Fe.createElement(Et.Z,Object.assign({className:`${xn}-row`},(0,ct.Z)(Ln,["_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"])),Fe.createElement(Rn,Object.assign({htmlFor:nn},jt,{requiredMark:In,required:On!=null?On:an,prefixCls:Pn})),Fe.createElement(Wt,Object.assign({},jt,Zt,{errors:Nn,warnings:kn,prefixCls:Pn,status:Mr,help:pn,marginBottom:Hr,onErrorVisibleChanged:en}),Fe.createElement(ce.qI.Provider,{value:mn},Fe.createElement(jr,{prefixCls:Pn,meta:Zt,errors:Zt.errors,warnings:Zt.warnings,hasFeedback:jn,validateStatus:Mr},ar)))),!!Hr&&Fe.createElement("div",{className:`${xn}-margin-offset`,style:{marginBottom:-Hr}}))}const tr="__SPLIT__",gr=null,Qn=Fe.memo(jt=>{let{children:Pn}=jt;return Pn},(jt,Pn)=>jt.value===Pn.value&&jt.update===Pn.update&&jt.childProps.length===Pn.childProps.length&&jt.childProps.every((Cn,Kt)=>Cn===Pn.childProps[Kt]));function it(jt){return jt!=null}function Ur(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Rr(jt){const{name:Pn,noStyle:Cn,className:Kt,dependencies:Dt,prefixCls:pn,shouldUpdate:yn,rules:Jn,children:bn,required:Zt,label:jn,messageVariables:Fn,trigger:ar="onChange",validateTrigger:nn,hidden:On,help:an}=jt,{getPrefixCls:mn}=Fe.useContext(Ye.E_),{name:Ln}=Fe.useContext(ce.q3),xn=Te(bn),In=typeof xn=="function",gn=Fe.useContext(ce.qI),{validateTrigger:Nn}=Fe.useContext(ze.FieldContext),kn=nn!==void 0?nn:Nn,En=it(Pn),$n=mn("form",pn),[mr,Hr]=Ae($n),Lr=Fe.useContext(ze.ListContext),en=Fe.useRef(),[ur,Mr]=Ge({}),[pr,Ar]=(0,bt.Z)(()=>Ur()),Zr=Dn=>{const ui=Lr==null?void 0:Lr.getKey(Dn.name);if(Ar(Dn.destroy?Ur():Dn,!0),Cn&&an!==!1&&gn){let fo=Dn.name;if(Dn.destroy)fo=en.current||fo;else if(ui!==void 0){const[Mi,Zo]=ui;fo=[Mi].concat((0,tt.Z)(Zo)),en.current=fo}gn(Dn,fo)}},gi=(Dn,ui)=>{Mr(fo=>{const Mi=Object.assign({},fo),co=[].concat((0,tt.Z)(Dn.name.slice(0,-1)),(0,tt.Z)(ui)).join(tr);return Dn.destroy?delete Mi[co]:Mi[co]=Dn,Mi})},[_r,vr]=Fe.useMemo(()=>{const Dn=(0,tt.Z)(pr.errors),ui=(0,tt.Z)(pr.warnings);return Object.values(ur).forEach(fo=>{Dn.push.apply(Dn,(0,tt.Z)(fo.errors||[])),ui.push.apply(ui,(0,tt.Z)(fo.warnings||[]))}),[Dn,ui]},[ur,pr.errors,pr.warnings]),Qr=He();function An(Dn,ui,fo){return Cn&&!On?Fe.createElement(jr,{prefixCls:$n,hasFeedback:jt.hasFeedback,validateStatus:jt.validateStatus,meta:pr,errors:_r,warnings:vr,noStyle:!0},Dn):Fe.createElement(Si,Object.assign({key:"row"},jt,{className:oe()(Kt,Hr),prefixCls:$n,fieldId:ui,isRequired:fo,errors:_r,warnings:vr,meta:pr,onSubItemMetaChange:gi}),Dn)}if(!En&&!In&&!Dt)return mr(An(xn));let ki={};return typeof jn=="string"?ki.label=jn:Pn&&(ki.label=String(Pn)),Fn&&(ki=Object.assign(Object.assign({},ki),Fn)),mr(Fe.createElement(ze.Field,Object.assign({},jt,{messageVariables:ki,trigger:ar,validateTrigger:kn,onMetaChange:Zr}),(Dn,ui,fo)=>{const Mi=ft(Pn).length&&ui?ui.name:[],Zo=xt(Mi,Ln),co=Zt!==void 0?Zt:!!(Jn&&Jn.some(Ni=>{if(Ni&&typeof Ni=="object"&&Ni.required&&!Ni.warningOnly)return!0;if(typeof Ni=="function"){const Wi=Ni(fo);return Wi&&Wi.required&&!Wi.warningOnly}return!1})),$r=Object.assign({},Dn);let Gr=null;if(Array.isArray(xn)&&En)Gr=xn;else if(!(In&&(!(yn||Dt)||En))){if(!(Dt&&!In&&!En))if((0,nt.l$)(xn)){const Ni=Object.assign(Object.assign({},xn.props),$r);if(Ni.id||(Ni.id=Zo),an||_r.length>0||vr.length>0||jt.extra){const Lt=[];(an||_r.length>0)&&Lt.push(`${Zo}_help`),jt.extra&&Lt.push(`${Zo}_extra`),Ni["aria-describedby"]=Lt.join(" ")}_r.length>0&&(Ni["aria-invalid"]="true"),co&&(Ni["aria-required"]="true"),(0,at.Yr)(xn)&&(Ni.ref=Qr(Mi,xn)),new Set([].concat((0,tt.Z)(ft(ar)),(0,tt.Z)(ft(kn)))).forEach(Lt=>{Ni[Lt]=function(){for(var Pi,Mo,Oi,wo,Lo,ko=arguments.length,xi=new Array(ko),ci=0;ci<ko;ci++)xi[ci]=arguments[ci];(Oi=$r[Lt])===null||Oi===void 0||(Pi=Oi).call.apply(Pi,[$r].concat(xi)),(Lo=(wo=xn.props)[Lt])===null||Lo===void 0||(Mo=Lo).call.apply(Mo,[wo].concat(xi))}});const dr=[Ni["aria-required"],Ni["aria-invalid"],Ni["aria-describedby"]];Gr=Fe.createElement(Qn,{value:$r[jt.valuePropName||"value"],update:xn,childProps:dr},(0,nt.Tm)(xn,Ni))}else In&&(yn||Dt)&&!En?Gr=xn(fo):Gr=xn}return An(Gr,Zo,co)}))}const di=Rr;di.useStatus=Ze;var Vr=di,Br=function(jt,Pn){var Cn={};for(var Kt in jt)Object.prototype.hasOwnProperty.call(jt,Kt)&&Pn.indexOf(Kt)<0&&(Cn[Kt]=jt[Kt]);if(jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Kt=Object.getOwnPropertySymbols(jt);Dt<Kt.length;Dt++)Pn.indexOf(Kt[Dt])<0&&Object.prototype.propertyIsEnumerable.call(jt,Kt[Dt])&&(Cn[Kt[Dt]]=jt[Kt[Dt]]);return Cn},hr=jt=>{var{prefixCls:Pn,children:Cn}=jt,Kt=Br(jt,["prefixCls","children"]);const{getPrefixCls:Dt}=Fe.useContext(Ye.E_),pn=Dt("form",Pn),yn=Fe.useMemo(()=>({prefixCls:pn,status:"error"}),[pn]);return Fe.createElement(ze.List,Object.assign({},Kt),(Jn,bn,Zt)=>Fe.createElement(ce.Rk.Provider,{value:yn},Cn(Jn.map(jn=>Object.assign(Object.assign({},jn),{fieldKey:jn.key})),bn,{errors:Zt.errors,warnings:Zt.warnings})))};function un(){const{form:jt}=(0,Fe.useContext)(ce.q3);return jt}const on=St;on.Item=Vr,on.List=hr,on.ErrorList=qe,on.useForm=gt,on.useFormInstance=un,on.useWatch=ze.useWatch,on.Provider=ce.RV,on.create=()=>{};var Jt=on},8628:function(Gn,vn,Ke){"use strict";var tt=Ke(59301),Pt=Ke(28800),oe=Ke(56762),Ue=Ke(69507);function Fe(){let me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ce=(0,tt.useRef)({}),be=(0,oe.Z)(),Le=(0,Ue.ZP)();return(0,Pt.Z)(()=>{const Se=Le.subscribe(ke=>{ce.current=ke,me&&be()});return()=>Le.unsubscribe(Se)},[]),ce.current}vn.Z=Fe},9432:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return le},n:function(){return ae}});var tt=Ke(37637),Pt=Ke(92310),oe=Ke.n(Pt),Ue=Ke(93681),Fe=Ke(20475),me=Ke(59301),ce=Ke(19080),be=Ke(36355),Le=Ke(1684),Se=Ke(19716),ke=Ke(32441),ve=Ke(33234),xe=Ke(59412),fe=Ke(9937);function z(ue){return!!(ue.prefix||ue.suffix||ue.allowClear)}var ee=function(ue,pe){var Ce={};for(var Pe in ue)Object.prototype.hasOwnProperty.call(ue,Pe)&&pe.indexOf(Pe)<0&&(Ce[Pe]=ue[Pe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Pe=Object.getOwnPropertySymbols(ue);Ie<Pe.length;Ie++)pe.indexOf(Pe[Ie])<0&&Object.prototype.propertyIsEnumerable.call(ue,Pe[Ie])&&(Ce[Pe[Ie]]=ue[Pe[Ie]]);return Ce};function ae(ue,pe){if(!ue)return;ue.focus(pe);const{cursor:Ce}=pe||{};if(Ce){const Pe=ue.value.length;switch(Ce){case"start":ue.setSelectionRange(0,0);break;case"end":ue.setSelectionRange(Pe,Pe);break;default:ue.setSelectionRange(0,Pe);break}}}var le=(0,me.forwardRef)((ue,pe)=>{var Ce;const{prefixCls:Pe,bordered:Ie=!0,status:Oe,size:Ae,disabled:je,onBlur:Be,onFocus:_e,suffix:qe,allowClear:ze,addonAfter:Ye,addonBefore:et,className:lt,style:dt,styles:vt,rootClassName:Je,onChange:ot,classNames:ft}=ue,xt=ee(ue,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:yt,direction:pt,input:gt}=me.useContext(be.E_),mt=yt("input",Pe),Mt=(0,me.useRef)(null),[Ct,zt]=(0,fe.ZP)(mt),{compactSize:St,compactItemClassnames:bt}=(0,ve.ri)(mt,pt),at=(0,Se.Z)(qt=>{var $t;return($t=Ae!=null?Ae:St)!==null&&$t!==void 0?$t:qt}),nt=me.useContext(Le.Z),we=je!=null?je:nt,{status:Te,hasFeedback:Ve,feedbackIcon:Ze}=(0,me.useContext)(ke.aM),Ee=(0,ce.F)(Te,Oe),Ge=z(ue)||!!Ve,He=(0,me.useRef)(Ge);(0,me.useEffect)(()=>{var qt;Ge&&He.current,He.current=Ge},[Ge]);const We=(0,xe.Z)(Mt,!0),Xe=qt=>{We(),Be==null||Be(qt)},ct=qt=>{We(),_e==null||_e(qt)},Et=qt=>{We(),ot==null||ot(qt)},ht=(Ve||qe)&&me.createElement(me.Fragment,null,qe,Ve&&Ze);let It;return typeof ze=="object"&&(ze!=null&&ze.clearIcon)?It=ze:ze&&(It={clearIcon:me.createElement(tt.Z,null)}),Ct(me.createElement(Ue.default,Object.assign({ref:(0,Fe.sQ)(pe,Mt),prefixCls:mt,autoComplete:gt==null?void 0:gt.autoComplete},xt,{disabled:we,onBlur:Xe,onFocus:ct,style:Object.assign(Object.assign({},gt==null?void 0:gt.style),dt),styles:Object.assign(Object.assign({},gt==null?void 0:gt.styles),vt),suffix:ht,allowClear:It,className:oe()(lt,Je,bt,gt==null?void 0:gt.className),onChange:Et,addonAfter:Ye&&me.createElement(ve.BR,null,me.createElement(ke.Ux,{override:!0,status:!0},Ye)),addonBefore:et&&me.createElement(ve.BR,null,me.createElement(ke.Ux,{override:!0,status:!0},et)),classNames:Object.assign(Object.assign(Object.assign({},ft),gt==null?void 0:gt.classNames),{input:oe()({[`${mt}-sm`]:at==="small",[`${mt}-lg`]:at==="large",[`${mt}-rtl`]:pt==="rtl",[`${mt}-borderless`]:!Ie},!Ge&&(0,ce.Z)(mt,Ee),ft==null?void 0:ft.input,(Ce=gt==null?void 0:gt.classNames)===null||Ce===void 0?void 0:Ce.input,zt)}),classes:{affixWrapper:oe()({[`${mt}-affix-wrapper-sm`]:at==="small",[`${mt}-affix-wrapper-lg`]:at==="large",[`${mt}-affix-wrapper-rtl`]:pt==="rtl",[`${mt}-affix-wrapper-borderless`]:!Ie},(0,ce.Z)(`${mt}-affix-wrapper`,Ee,Ve),zt),wrapper:oe()({[`${mt}-group-rtl`]:pt==="rtl"},zt),group:oe()({[`${mt}-group-wrapper-sm`]:at==="small",[`${mt}-group-wrapper-lg`]:at==="large",[`${mt}-group-wrapper-rtl`]:pt==="rtl",[`${mt}-group-wrapper-disabled`]:we},(0,ce.Z)(`${mt}-group-wrapper`,Ee,Ve),zt)}})))})},1643:function(Gn,vn,Ke){"use strict";var tt=Ke(37637),Pt=Ke(92310),oe=Ke.n(Pt),Ue=Ke(9296),Fe=Ke(59301),me=Ke(19080),ce=Ke(36355),be=Ke(1684),Le=Ke(19716),Se=Ke(32441),ke=Ke(9432),ve=Ke(9937),xe=function(z,ee){var ae={};for(var re in z)Object.prototype.hasOwnProperty.call(z,re)&&ee.indexOf(re)<0&&(ae[re]=z[re]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,re=Object.getOwnPropertySymbols(z);le<re.length;le++)ee.indexOf(re[le])<0&&Object.prototype.propertyIsEnumerable.call(z,re[le])&&(ae[re[le]]=z[re[le]]);return ae};const fe=(0,Fe.forwardRef)((z,ee)=>{const{prefixCls:ae,bordered:re=!0,size:le,disabled:ue,status:pe,allowClear:Ce,showCount:Pe,classNames:Ie,rootClassName:Oe,className:Ae}=z,je=xe(z,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Be,direction:_e}=Fe.useContext(ce.E_),qe=(0,Le.Z)(le),ze=Fe.useContext(be.Z),Ye=ue!=null?ue:ze,{status:et,hasFeedback:lt,feedbackIcon:dt}=Fe.useContext(Se.aM),vt=(0,me.F)(et,pe),Je=Fe.useRef(null);Fe.useImperativeHandle(ee,()=>{var pt;return{resizableTextArea:(pt=Je.current)===null||pt===void 0?void 0:pt.resizableTextArea,focus:gt=>{var mt,Mt;(0,ke.n)((Mt=(mt=Je.current)===null||mt===void 0?void 0:mt.resizableTextArea)===null||Mt===void 0?void 0:Mt.textArea,gt)},blur:()=>{var gt;return(gt=Je.current)===null||gt===void 0?void 0:gt.blur()}}});const ot=Be("input",ae);let ft;typeof Ce=="object"&&(Ce!=null&&Ce.clearIcon)?ft=Ce:Ce&&(ft={clearIcon:Fe.createElement(tt.Z,null)});const[xt,yt]=(0,ve.ZP)(ot);return xt(Fe.createElement(Ue.default,Object.assign({},je,{disabled:Ye,allowClear:ft,className:oe()(Ae,Oe),classes:{affixWrapper:oe()(`${ot}-textarea-affix-wrapper`,{[`${ot}-affix-wrapper-rtl`]:_e==="rtl",[`${ot}-affix-wrapper-borderless`]:!re,[`${ot}-affix-wrapper-sm`]:qe==="small",[`${ot}-affix-wrapper-lg`]:qe==="large",[`${ot}-textarea-show-count`]:Pe},(0,me.Z)(`${ot}-affix-wrapper`,vt),yt)},classNames:Object.assign(Object.assign({},Ie),{textarea:oe()({[`${ot}-borderless`]:!re,[`${ot}-sm`]:qe==="small",[`${ot}-lg`]:qe==="large"},(0,me.Z)(ot,vt),yt,Ie==null?void 0:Ie.textarea)}),prefixCls:ot,suffix:lt&&Fe.createElement("span",{className:`${ot}-textarea-suffix`},dt),showCount:Pe,ref:Je})))});vn.Z=fe},59412:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return Pt}});var tt=Ke(59301);function Pt(oe,Ue){const Fe=(0,tt.useRef)([]),me=()=>{Fe.current.push(setTimeout(()=>{var ce,be,Le,Se;!((ce=oe.current)===null||ce===void 0)&&ce.input&&((be=oe.current)===null||be===void 0?void 0:be.input.getAttribute("type"))==="password"&&(!((Le=oe.current)===null||Le===void 0)&&Le.input.hasAttribute("value"))&&((Se=oe.current)===null||Se===void 0||Se.input.removeAttribute("value"))}))};return(0,tt.useEffect)(()=>(Ue&&me(),()=>Fe.current.forEach(ce=>{ce&&clearTimeout(ce)})),[]),me}},92832:function(Gn,vn,Ke){"use strict";Ke.d(vn,{default:function(){return qe}});var tt=Ke(92310),Pt=Ke.n(tt),oe=Ke(59301),Ue=Ke(36355),Fe=Ke(32441),me=Ke(9937),be=ze=>{const{getPrefixCls:Ye,direction:et}=(0,oe.useContext)(Ue.E_),{prefixCls:lt,className:dt}=ze,vt=Ye("input-group",lt),Je=Ye("input"),[ot,ft]=(0,me.ZP)(Je),xt=Pt()(vt,{[`${vt}-lg`]:ze.size==="large",[`${vt}-sm`]:ze.size==="small",[`${vt}-compact`]:ze.compact,[`${vt}-rtl`]:et==="rtl"},ft,dt),yt=(0,oe.useContext)(Fe.aM),pt=(0,oe.useMemo)(()=>Object.assign(Object.assign({},yt),{isFormItemInput:!1}),[yt]);return ot(oe.createElement("span",{className:xt,style:ze.style,onMouseEnter:ze.onMouseEnter,onMouseLeave:ze.onMouseLeave,onFocus:ze.onFocus,onBlur:ze.onBlur},oe.createElement(Fe.aM.Provider,{value:pt},ze.children)))},Le=Ke(9432),Se=Ke(21646),ke=Ke(20970),ve=Ke(64002),xe=Ke(20475),fe=Ke(59412),z=function(ze,Ye){var et={};for(var lt in ze)Object.prototype.hasOwnProperty.call(ze,lt)&&Ye.indexOf(lt)<0&&(et[lt]=ze[lt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,lt=Object.getOwnPropertySymbols(ze);dt<lt.length;dt++)Ye.indexOf(lt[dt])<0&&Object.prototype.propertyIsEnumerable.call(ze,lt[dt])&&(et[lt[dt]]=ze[lt[dt]]);return et};const ee=ze=>ze?oe.createElement(ke.Z,null):oe.createElement(Se.Z,null),ae={click:"onClick",hover:"onMouseOver"};var le=oe.forwardRef((ze,Ye)=>{const{visibilityToggle:et=!0}=ze,lt=typeof et=="object"&&et.visible!==void 0,[dt,vt]=(0,oe.useState)(()=>lt?et.visible:!1),Je=(0,oe.useRef)(null);oe.useEffect(()=>{lt&&vt(et.visible)},[lt,et]);const ot=(0,fe.Z)(Je),ft=()=>{const{disabled:we}=ze;we||(dt&&ot(),vt(Te=>{var Ve;const Ze=!Te;return typeof et=="object"&&((Ve=et.onVisibleChange)===null||Ve===void 0||Ve.call(et,Ze)),Ze}))},xt=we=>{const{action:Te="click",iconRender:Ve=ee}=ze,Ze=ae[Te]||"",Ee=Ve(dt),Ge={[Ze]:ft,className:`${we}-icon`,key:"passwordIcon",onMouseDown:He=>{He.preventDefault()},onMouseUp:He=>{He.preventDefault()}};return oe.cloneElement(oe.isValidElement(Ee)?Ee:oe.createElement("span",null,Ee),Ge)},{className:yt,prefixCls:pt,inputPrefixCls:gt,size:mt}=ze,Mt=z(ze,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Ct}=oe.useContext(Ue.E_),zt=Ct("input",gt),St=Ct("input-password",pt),bt=et&&xt(St),at=Pt()(St,yt,{[`${St}-${mt}`]:!!mt}),nt=Object.assign(Object.assign({},(0,ve.Z)(Mt,["suffix","iconRender","visibilityToggle"])),{type:dt?"text":"password",className:at,prefixCls:zt,suffix:bt});return mt&&(nt.size=mt),oe.createElement(Le.Z,Object.assign({ref:(0,xe.sQ)(Ye,Je)},nt))}),ue=Ke(56981),pe=Ke(92343),Ce=Ke(3113),Pe=Ke(19716),Ie=Ke(33234),Oe=function(ze,Ye){var et={};for(var lt in ze)Object.prototype.hasOwnProperty.call(ze,lt)&&Ye.indexOf(lt)<0&&(et[lt]=ze[lt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,lt=Object.getOwnPropertySymbols(ze);dt<lt.length;dt++)Ye.indexOf(lt[dt])<0&&Object.prototype.propertyIsEnumerable.call(ze,lt[dt])&&(et[lt[dt]]=ze[lt[dt]]);return et},je=oe.forwardRef((ze,Ye)=>{const{prefixCls:et,inputPrefixCls:lt,className:dt,size:vt,suffix:Je,enterButton:ot=!1,addonAfter:ft,loading:xt,disabled:yt,onSearch:pt,onChange:gt,onCompositionStart:mt,onCompositionEnd:Mt}=ze,Ct=Oe(ze,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:zt,direction:St}=oe.useContext(Ue.E_),bt=oe.useRef(!1),at=zt("input-search",et),nt=zt("input",lt),{compactSize:we}=(0,Ie.ri)(at,St),Te=(0,Pe.Z)(Wt=>{var Ut;return(Ut=vt!=null?vt:we)!==null&&Ut!==void 0?Ut:Wt}),Ve=oe.useRef(null),Ze=Wt=>{Wt&&Wt.target&&Wt.type==="click"&&pt&&pt(Wt.target.value,Wt,{source:"clear"}),gt&>(Wt)},Ee=Wt=>{var Ut;document.activeElement===((Ut=Ve.current)===null||Ut===void 0?void 0:Ut.input)&&Wt.preventDefault()},Ge=Wt=>{var Ut,ln;pt&&pt((ln=(Ut=Ve.current)===null||Ut===void 0?void 0:Ut.input)===null||ln===void 0?void 0:ln.value,Wt,{source:"input"})},He=Wt=>{bt.current||xt||Ge(Wt)},We=typeof ot=="boolean"?oe.createElement(ue.Z,null):null,Xe=`${at}-button`;let ct;const Et=ot||{},ht=Et.type&&Et.type.__ANT_BUTTON===!0;ht||Et.type==="button"?ct=(0,pe.Tm)(Et,Object.assign({onMouseDown:Ee,onClick:Wt=>{var Ut,ln;(ln=(Ut=Et==null?void 0:Et.props)===null||Ut===void 0?void 0:Ut.onClick)===null||ln===void 0||ln.call(Ut,Wt),Ge(Wt)},key:"enterButton"},ht?{className:Xe,size:Te}:{})):ct=oe.createElement(Ce.ZP,{className:Xe,type:ot?"primary":void 0,size:Te,disabled:yt,key:"enterButton",onMouseDown:Ee,onClick:Ge,loading:xt,icon:We},ot),ft&&(ct=[ct,(0,pe.Tm)(ft,{key:"addonAfter"})]);const It=Pt()(at,{[`${at}-rtl`]:St==="rtl",[`${at}-${Te}`]:!!Te,[`${at}-with-button`]:!!ot},dt),qt=Wt=>{bt.current=!0,mt==null||mt(Wt)},$t=Wt=>{bt.current=!1,Mt==null||Mt(Wt)};return oe.createElement(Le.Z,Object.assign({ref:(0,xe.sQ)(Ve,Ye),onPressEnter:He},Ct,{size:Te,onCompositionStart:qt,onCompositionEnd:$t,prefixCls:nt,addonAfter:ct,suffix:Je,onChange:Ze,className:It,disabled:yt}))}),Be=Ke(1643);const _e=Le.Z;_e.Group=be,_e.Search=je,_e.TextArea=Be.Z,_e.Password=le;var qe=_e},71413:function(Gn,vn,Ke){"use strict";Ke.d(vn,{D:function(){return ue},Z:function(){return Pe}});var tt=Ke(5891),Pt=Ke(59301),oe={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"},Ue=oe,Fe=Ke(31533),me=function(Oe,Ae){return Pt.createElement(Fe.Z,(0,tt.Z)({},Oe,{ref:Ae,icon:Ue}))},ce=Pt.forwardRef(me),be=ce,Le=Ke(81132),Se=Ke(38226),ke=Ke(92310),ve=Ke.n(ke),xe=Ke(64002),z=Ie=>!isNaN(parseFloat(Ie))&&isFinite(Ie),ee=Ke(36355),ae=Ke(84966),re=function(Ie,Oe){var Ae={};for(var je in Ie)Object.prototype.hasOwnProperty.call(Ie,je)&&Oe.indexOf(je)<0&&(Ae[je]=Ie[je]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,je=Object.getOwnPropertySymbols(Ie);Be<je.length;Be++)Oe.indexOf(je[Be])<0&&Object.prototype.propertyIsEnumerable.call(Ie,je[Be])&&(Ae[je[Be]]=Ie[je[Be]]);return Ae};const le={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ue=Pt.createContext({}),pe=(()=>{let Ie=0;return function(){let Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ie+=1,`${Oe}${Ie}`}})();var Pe=Pt.forwardRef((Ie,Oe)=>{const{prefixCls:Ae,className:je,trigger:Be,children:_e,defaultCollapsed:qe=!1,theme:ze="dark",style:Ye={},collapsible:et=!1,reverseArrow:lt=!1,width:dt=200,collapsedWidth:vt=80,zeroWidthTriggerStyle:Je,breakpoint:ot,onCollapse:ft,onBreakpoint:xt}=Ie,yt=re(Ie,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:pt}=(0,Pt.useContext)(ae.Gs),[gt,mt]=(0,Pt.useState)("collapsed"in Ie?Ie.collapsed:qe),[Mt,Ct]=(0,Pt.useState)(!1);(0,Pt.useEffect)(()=>{"collapsed"in Ie&&mt(Ie.collapsed)},[Ie.collapsed]);const zt=(Te,Ve)=>{"collapsed"in Ie||mt(Te),ft==null||ft(Te,Ve)},St=(0,Pt.useRef)();St.current=Te=>{Ct(Te.matches),xt==null||xt(Te.matches),gt!==Te.matches&&zt(Te.matches,"responsive")},(0,Pt.useEffect)(()=>{function Te(Ze){return St.current(Ze)}let Ve;if(typeof window!="undefined"){const{matchMedia:Ze}=window;if(Ze&&ot&&ot in le){Ve=Ze(`(max-width: ${le[ot]})`);try{Ve.addEventListener("change",Te)}catch(Ee){Ve.addListener(Te)}Te(Ve)}}return()=>{try{Ve==null||Ve.removeEventListener("change",Te)}catch(Ze){Ve==null||Ve.removeListener(Te)}}},[ot]),(0,Pt.useEffect)(()=>{const Te=pe("ant-sider-");return pt.addSider(Te),()=>pt.removeSider(Te)},[]);const bt=()=>{zt(!gt,"clickTrigger")},{getPrefixCls:at}=(0,Pt.useContext)(ee.E_),nt=()=>{const Te=at("layout-sider",Ae),Ve=(0,xe.Z)(yt,["collapsed"]),Ze=gt?vt:dt,Ee=z(Ze)?`${Ze}px`:String(Ze),Ge=parseFloat(String(vt||0))===0?Pt.createElement("span",{onClick:bt,className:ve()(`${Te}-zero-width-trigger`,`${Te}-zero-width-trigger-${lt?"right":"left"}`),style:Je},Be||Pt.createElement(be,null)):null,Xe={expanded:lt?Pt.createElement(Se.Z,null):Pt.createElement(Le.Z,null),collapsed:lt?Pt.createElement(Le.Z,null):Pt.createElement(Se.Z,null)}[gt?"collapsed":"expanded"],ct=Be!==null?Ge||Pt.createElement("div",{className:`${Te}-trigger`,onClick:bt,style:{width:Ee}},Be||Xe):null,Et=Object.assign(Object.assign({},Ye),{flex:`0 0 ${Ee}`,maxWidth:Ee,minWidth:Ee,width:Ee}),ht=ve()(Te,`${Te}-${ze}`,{[`${Te}-collapsed`]:!!gt,[`${Te}-has-trigger`]:et&&Be!==null&&!Ge,[`${Te}-below`]:!!Mt,[`${Te}-zero-width`]:parseFloat(Ee)===0},je);return Pt.createElement("aside",Object.assign({className:ht},Ve,{style:Et,ref:Oe}),Pt.createElement("div",{className:`${Te}-children`},_e),et||Mt&&Ge?ct:null)},we=Pt.useMemo(()=>({siderCollapsed:gt}),[gt]);return Pt.createElement(ue.Provider,{value:we},nt())})},84966:function(Gn,vn,Ke){"use strict";Ke.d(vn,{VY:function(){return ue},$_:function(){return le},h4:function(){return re},Gs:function(){return xe},ZP:function(){return pe}});var tt=Ke(26390),Pt=Ke(92310),oe=Ke.n(Pt),Ue=Ke(64002),Fe=Ke(59301),me=Ke(36355),ce=Ke(83116),Le=Ce=>{const{componentCls:Pe,bodyBg:Ie,lightSiderBg:Oe,lightTriggerBg:Ae,lightTriggerColor:je}=Ce;return{[`${Pe}-sider-light`]:{background:Oe,[`${Pe}-sider-trigger`]:{color:je,background:Ae},[`${Pe}-sider-zero-width-trigger`]:{color:je,background:Ae,border:`1px solid ${Ie}`,borderInlineStart:0}}}};const Se=Ce=>{const{antCls:Pe,componentCls:Ie,colorText:Oe,triggerColor:Ae,footerBg:je,triggerBg:Be,headerHeight:_e,headerPadding:qe,headerColor:ze,footerPadding:Ye,triggerHeight:et,zeroTriggerHeight:lt,zeroTriggerWidth:dt,motionDurationMid:vt,motionDurationSlow:Je,fontSize:ot,borderRadius:ft,bodyBg:xt,headerBg:yt,siderBg:pt}=Ce;return{[Ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:xt,"&, *":{boxSizing:"border-box"},[`&${Ie}-has-sider`]:{flexDirection:"row",[`> ${Ie}, > ${Ie}-content`]:{width:0}},[`${Ie}-header, &${Ie}-footer`]:{flex:"0 0 auto"},[`${Ie}-sider`]:{position:"relative",minWidth:0,background:pt,transition:`all ${vt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Pe}-menu${Pe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:et},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:et,color:Ae,lineHeight:`${et}px`,textAlign:"center",background:Be,cursor:"pointer",transition:`all ${vt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:_e,insetInlineEnd:-dt,zIndex:1,width:dt,height:lt,color:Ae,fontSize:Ce.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:pt,borderStartStartRadius:0,borderStartEndRadius:ft,borderEndEndRadius:ft,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Je} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Je}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-dt,borderStartStartRadius:ft,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ft}}}}},Le(Ce)),{"&-rtl":{direction:"rtl"}}),[`${Ie}-header`]:{height:_e,padding:qe,color:ze,lineHeight:`${_e}px`,background:yt,[`${Pe}-menu`]:{lineHeight:"inherit"}},[`${Ie}-footer`]:{padding:Ye,color:Oe,fontSize:ot,background:je},[`${Ie}-content`]:{flex:"auto",minHeight:0}}};var ke=(0,ce.Z)("Layout",Ce=>[Se(Ce)],Ce=>{const{colorBgLayout:Pe,controlHeight:Ie,controlHeightLG:Oe,colorText:Ae,controlHeightSM:je,marginXXS:Be,colorTextLightSolid:_e,colorBgContainer:qe}=Ce,ze=Oe*1.25;return{colorBgHeader:"#001529",colorBgBody:Pe,colorBgTrigger:"#002140",bodyBg:Pe,headerBg:"#001529",headerHeight:Ie*2,headerPadding:`0 ${ze}px`,headerColor:Ae,footerPadding:`${je}px ${ze}px`,footerBg:Pe,siderBg:"#001529",triggerHeight:Oe+Be*2,triggerBg:"#002140",triggerColor:_e,zeroTriggerWidth:Oe,zeroTriggerHeight:Oe,lightSiderBg:qe,lightTriggerBg:qe,lightTriggerColor:Ae}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ve=function(Ce,Pe){var Ie={};for(var Oe in Ce)Object.prototype.hasOwnProperty.call(Ce,Oe)&&Pe.indexOf(Oe)<0&&(Ie[Oe]=Ce[Oe]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Oe=Object.getOwnPropertySymbols(Ce);Ae<Oe.length;Ae++)Pe.indexOf(Oe[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Oe[Ae])&&(Ie[Oe[Ae]]=Ce[Oe[Ae]]);return Ie};const xe=Fe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function fe(Ce){let{suffixCls:Pe,tagName:Ie,displayName:Oe}=Ce;return Ae=>Fe.forwardRef((Be,_e)=>Fe.createElement(Ae,Object.assign({ref:_e,suffixCls:Pe,tagName:Ie},Be)))}const z=Fe.forwardRef((Ce,Pe)=>{const{prefixCls:Ie,suffixCls:Oe,className:Ae,tagName:je}=Ce,Be=ve(Ce,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:_e}=Fe.useContext(me.E_),qe=_e("layout",Ie),[ze,Ye]=ke(qe),et=Oe?`${qe}-${Oe}`:qe;return ze(Fe.createElement(je,Object.assign({className:oe()(Ie||et,Ae,Ye),ref:Pe},Be)))}),ee=Fe.forwardRef((Ce,Pe)=>{const{direction:Ie}=Fe.useContext(me.E_),[Oe,Ae]=Fe.useState([]),{prefixCls:je,className:Be,rootClassName:_e,children:qe,hasSider:ze,tagName:Ye,style:et}=Ce,lt=ve(Ce,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),dt=(0,Ue.Z)(lt,["suffixCls"]),{getPrefixCls:vt,layout:Je}=Fe.useContext(me.E_),ot=vt("layout",je),[ft,xt]=ke(ot),yt=oe()(ot,{[`${ot}-has-sider`]:typeof ze=="boolean"?ze:Oe.length>0,[`${ot}-rtl`]:Ie==="rtl"},Je==null?void 0:Je.className,Be,_e,xt),pt=Fe.useMemo(()=>({siderHook:{addSider:gt=>{Ae(mt=>[].concat((0,tt.Z)(mt),[gt]))},removeSider:gt=>{Ae(mt=>mt.filter(Mt=>Mt!==gt))}}}),[]);return ft(Fe.createElement(xe.Provider,{value:pt},Fe.createElement(Ye,Object.assign({ref:Pe,className:yt,style:Object.assign(Object.assign({},Je==null?void 0:Je.style),et)},dt),qe)))}),ae=fe({tagName:"div",displayName:"Layout"})(ee),re=fe({suffixCls:"header",tagName:"header",displayName:"Header"})(z),le=fe({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(z),ue=fe({suffixCls:"content",tagName:"main",displayName:"Content"})(z);var pe=ae},40875:function(Gn,vn,Ke){"use strict";Ke.d(vn,{J:function(){return me}});var tt=Ke(59301),Pt=Ke(33234),oe=Ke(80764),Ue=function(ce,be){var Le={};for(var Se in ce)Object.prototype.hasOwnProperty.call(ce,Se)&&be.indexOf(Se)<0&&(Le[Se]=ce[Se]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Se=Object.getOwnPropertySymbols(ce);ke<Se.length;ke++)be.indexOf(Se[ke])<0&&Object.prototype.propertyIsEnumerable.call(ce,Se[ke])&&(Le[Se[ke]]=ce[Se[ke]]);return Le};const Fe=tt.createContext(null),me=tt.forwardRef((ce,be)=>{const{children:Le}=ce,Se=Ue(ce,["children"]),ke=tt.useContext(Fe),ve=tt.useMemo(()=>Object.assign(Object.assign({},ke),Se),[ke,Se.prefixCls,Se.mode,Se.selectable]);return tt.createElement(Fe.Provider,{value:ve},tt.createElement(Pt.BR,null,(0,oe.supportNodeRef)(Le)?tt.cloneElement(Le,{ref:be}):Le))});vn.Z=Fe},20834:function(Gn,vn,Ke){"use strict";Ke.d(vn,{default:function(){return we}});var tt=Ke(22798),Pt=Ke(59301),oe=Ke(71413),Ue=Ke(92310),Fe=Ke.n(Ue),me=Ke(36355),ce=function(Te,Ve){var Ze={};for(var Ee in Te)Object.prototype.hasOwnProperty.call(Te,Ee)&&Ve.indexOf(Ee)<0&&(Ze[Ee]=Te[Ee]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Ee=Object.getOwnPropertySymbols(Te);Ge<Ee.length;Ge++)Ve.indexOf(Ee[Ge])<0&&Object.prototype.propertyIsEnumerable.call(Te,Ee[Ge])&&(Ze[Ee[Ge]]=Te[Ee[Ge]]);return Ze},Le=Te=>{const{prefixCls:Ve,className:Ze,dashed:Ee}=Te,Ge=ce(Te,["prefixCls","className","dashed"]),{getPrefixCls:He}=Pt.useContext(me.E_),We=He("menu",Ve),Xe=Fe()({[`${We}-item-divider-dashed`]:!!Ee},Ze);return Pt.createElement(tt.iz,Object.assign({className:Xe},Ge))},Se=Ke(38298),ke=Ke(64002),ve=Ke(6848),xe=Ke(92343),z=(0,Pt.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ae=Te=>{var Ve;const{className:Ze,children:Ee,icon:Ge,title:He,danger:We}=Te,{prefixCls:Xe,firstLevel:ct,direction:Et,disableMenuItemTitleTooltip:ht,inlineCollapsed:It}=Pt.useContext(z),qt=Xt=>{const tn=Pt.createElement("span",{className:`${Xe}-title-content`},Ee);return(!Ge||(0,xe.l$)(Ee)&&Ee.type==="span")&&Ee&&Xt&&ct&&typeof Ee=="string"?Pt.createElement("div",{className:`${Xe}-inline-collapsed-noicon`},Ee.charAt(0)):tn},{siderCollapsed:$t}=Pt.useContext(oe.D);let Wt=He;typeof He=="undefined"?Wt=ct?Ee:"":He===!1&&(Wt="");const Ut={title:Wt};!$t&&!It&&(Ut.title=null,Ut.open=!1);const ln=(0,Se.Z)(Ee).length;let kt=Pt.createElement(tt.ck,Object.assign({},(0,ke.Z)(Te,["title","icon","danger"]),{className:Fe()({[`${Xe}-item-danger`]:We,[`${Xe}-item-only-child`]:(Ge?ln+1:ln)===1},Ze),title:typeof He=="string"?He:void 0}),(0,xe.Tm)(Ge,{className:Fe()((0,xe.l$)(Ge)?(Ve=Ge.props)===null||Ve===void 0?void 0:Ve.className:"",`${Xe}-item-icon`)}),qt(It));return ht||(kt=Pt.createElement(ve.Z,Object.assign({},Ut,{placement:Et==="rtl"?"left":"right",overlayClassName:`${Xe}-inline-collapsed-tooltip`}),kt)),kt},le=Te=>{var Ve;const{popupClassName:Ze,icon:Ee,title:Ge,theme:He}=Te,We=Pt.useContext(z),{prefixCls:Xe,inlineCollapsed:ct,theme:Et}=We,ht=(0,tt.Xl)();let It;if(!Ee)It=ct&&!ht.length&&Ge&&typeof Ge=="string"?Pt.createElement("div",{className:`${Xe}-inline-collapsed-noicon`},Ge.charAt(0)):Pt.createElement("span",{className:`${Xe}-title-content`},Ge);else{const $t=(0,xe.l$)(Ge)&&Ge.type==="span";It=Pt.createElement(Pt.Fragment,null,(0,xe.Tm)(Ee,{className:Fe()((0,xe.l$)(Ee)?(Ve=Ee.props)===null||Ve===void 0?void 0:Ve.className:"",`${Xe}-item-icon`)}),$t?Ge:Pt.createElement("span",{className:`${Xe}-title-content`},Ge))}const qt=Pt.useMemo(()=>Object.assign(Object.assign({},We),{firstLevel:!1}),[We]);return Pt.createElement(z.Provider,{value:qt},Pt.createElement(tt.Wd,Object.assign({},(0,ke.Z)(Te,["icon"]),{title:It,popupClassName:Fe()(Xe,Ze,`${Xe}-${He||Et}`)})))},ue=Ke(24764),pe=Ke(80764),Ce=Ke(62892),Pe=Ke(40875),Ie=function(Te,Ve){var Ze={};for(var Ee in Te)Object.prototype.hasOwnProperty.call(Te,Ee)&&Ve.indexOf(Ee)<0&&(Ze[Ee]=Te[Ee]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Ee=Object.getOwnPropertySymbols(Te);Ge<Ee.length;Ge++)Ve.indexOf(Ee[Ge])<0&&Object.prototype.propertyIsEnumerable.call(Te,Ee[Ge])&&(Ze[Ee[Ge]]=Te[Ee[Ge]]);return Ze};function Oe(Te){return(Te||[]).map((Ve,Ze)=>{if(Ve&&typeof Ve=="object"){const Ee=Ve,{label:Ge,children:He,key:We,type:Xe}=Ee,ct=Ie(Ee,["label","children","key","type"]),Et=We!=null?We:`tmp-${Ze}`;return He||Xe==="group"?Xe==="group"?Pt.createElement(tt.BW,Object.assign({key:Et},ct,{title:Ge}),Oe(He)):Pt.createElement(le,Object.assign({key:Et},ct,{title:Ge}),Oe(He)):Xe==="divider"?Pt.createElement(Le,Object.assign({key:Et},ct)):Pt.createElement(ae,Object.assign({key:Et},ct),Ge)}return null}).filter(Ve=>Ve)}function Ae(Te){return Pt.useMemo(()=>Te&&Oe(Te),[Te])}var je=Ke(64993),Be=Ke(17313),_e=Ke(8378),qe=Ke(13826),ze=Ke(29878),Ye=Ke(83116),et=Ke(37613),dt=Te=>{const{componentCls:Ve,motionDurationSlow:Ze,horizontalLineHeight:Ee,colorSplit:Ge,lineWidth:He,lineType:We,itemPaddingInline:Xe}=Te;return{[`${Ve}-horizontal`]:{lineHeight:Ee,border:0,borderBottom:`${He}px ${We} ${Ge}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ve}-item, ${Ve}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Xe},[`> ${Ve}-item:hover,
|
|
|
> ${Ve}-item-active,
|
|
|
> ${Ve}-submenu ${Ve}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ve}-item, ${Ve}-submenu-title`]:{transition:[`border-color ${Ze}`,`background ${Ze}`].join(",")},[`${Ve}-submenu-arrow`]:{display:"none"}}}},Je=Te=>{let{componentCls:Ve,menuArrowOffset:Ze}=Te;return{[`${Ve}-rtl`]:{direction:"rtl"},[`${Ve}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ve}-rtl${Ve}-vertical,
|
|
|
${Ve}-submenu-rtl ${Ve}-vertical`]:{[`${Ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Ze})`},"&::after":{transform:`rotate(45deg) translateY(${Ze})`}}}}};const ot=Te=>Object.assign({},(0,Be.oN)(Te));var xt=(Te,Ve)=>{const{componentCls:Ze,itemColor:Ee,itemSelectedColor:Ge,groupTitleColor:He,itemBg:We,subMenuItemBg:Xe,itemSelectedBg:ct,activeBarHeight:Et,activeBarWidth:ht,activeBarBorderWidth:It,motionDurationSlow:qt,motionEaseInOut:$t,motionEaseOut:Wt,itemPaddingInline:Ut,motionDurationMid:ln,itemHoverColor:kt,lineType:Xt,colorSplit:tn,itemDisabledColor:dn,dangerItemColor:Mn,dangerItemHoverColor:Rn,dangerItemSelectedColor:ir,dangerItemActiveBg:qn,dangerItemSelectedBg:Cr,itemHoverBg:er,itemActiveBg:Fr,menuSubMenuBg:jr,horizontalItemSelectedColor:fi,horizontalItemSelectedBg:Si,horizontalItemBorderRadius:tr,horizontalItemHoverBg:gr,popupBg:Qn}=Te;return{[`${Ze}-${Ve}, ${Ze}-${Ve} > ${Ze}`]:{color:Ee,background:We,[`&${Ze}-root:focus-visible`]:Object.assign({},ot(Te)),[`${Ze}-item-group-title`]:{color:He},[`${Ze}-submenu-selected`]:{[`> ${Ze}-submenu-title`]:{color:Ge}},[`${Ze}-item-disabled, ${Ze}-submenu-disabled`]:{color:`${dn} !important`},[`${Ze}-item:not(${Ze}-item-selected):not(${Ze}-submenu-selected)`]:{[`&:hover, > ${Ze}-submenu-title:hover`]:{color:kt}},[`&:not(${Ze}-horizontal)`]:{[`${Ze}-item:not(${Ze}-item-selected)`]:{"&:hover":{backgroundColor:er},"&:active":{backgroundColor:Fr}},[`${Ze}-submenu-title`]:{"&:hover":{backgroundColor:er},"&:active":{backgroundColor:Fr}}},[`${Ze}-item-danger`]:{color:Mn,[`&${Ze}-item:hover`]:{[`&:not(${Ze}-item-selected):not(${Ze}-submenu-selected)`]:{color:Rn}},[`&${Ze}-item:active`]:{background:qn}},[`${Ze}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ze}-item-selected`]:{color:Ge,[`&${Ze}-item-danger`]:{color:ir},"a, a:hover":{color:"inherit"}},[`& ${Ze}-item-selected`]:{backgroundColor:ct,[`&${Ze}-item-danger`]:{backgroundColor:Cr}},[`${Ze}-item, ${Ze}-submenu-title`]:{[`&:not(${Ze}-item-disabled):focus-visible`]:Object.assign({},ot(Te))},[`&${Ze}-submenu > ${Ze}`]:{backgroundColor:jr},[`&${Ze}-popup > ${Ze}`]:{backgroundColor:Qn},[`&${Ze}-horizontal`]:Object.assign(Object.assign({},Ve==="dark"?{borderBottom:0}:{}),{[`> ${Ze}-item, > ${Ze}-submenu`]:{top:It,marginTop:-It,marginBottom:0,borderRadius:tr,"&::after":{position:"absolute",insetInline:Ut,bottom:0,borderBottom:`${Et}px solid transparent`,transition:`border-color ${qt} ${$t}`,content:'""'},"&:hover, &-active, &-open":{background:gr,"&::after":{borderBottomWidth:Et,borderBottomColor:fi}},"&-selected":{color:fi,backgroundColor:Si,"&:hover":{backgroundColor:Si},"&::after":{borderBottomWidth:Et,borderBottomColor:fi}}}}),[`&${Ze}-root`]:{[`&${Ze}-inline, &${Ze}-vertical`]:{borderInlineEnd:`${It}px ${Xt} ${tn}`}},[`&${Ze}-inline`]:{[`${Ze}-sub${Ze}-inline`]:{background:Xe},[`${Ze}-item, ${Ze}-submenu-title`]:It&&ht?{width:`calc(100% + ${It}px)`}:{},[`${Ze}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ht}px solid ${Ge}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${ln} ${Wt}`,`opacity ${ln} ${Wt}`].join(","),content:'""'},[`&${Ze}-item-danger`]:{"&::after":{borderInlineEndColor:ir}}},[`${Ze}-selected, ${Ze}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ln} ${$t}`,`opacity ${ln} ${$t}`].join(",")}}}}}};const yt=Te=>{const{componentCls:Ve,itemHeight:Ze,itemMarginInline:Ee,padding:Ge,menuArrowSize:He,marginXS:We,itemMarginBlock:Xe}=Te,ct=Ge+He+We;return{[`${Ve}-item`]:{position:"relative",overflow:"hidden"},[`${Ve}-item, ${Ve}-submenu-title`]:{height:Ze,lineHeight:`${Ze}px`,paddingInline:Ge,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ee,marginBlock:Xe,width:`calc(100% - ${Ee*2}px)`},[`> ${Ve}-item,
|
|
|
> ${Ve}-submenu > ${Ve}-submenu-title`]:{height:Ze,lineHeight:`${Ze}px`},[`${Ve}-item-group-list ${Ve}-submenu-title,
|
|
|
${Ve}-submenu-title`]:{paddingInlineEnd:ct}}};var gt=Te=>{const{componentCls:Ve,iconCls:Ze,itemHeight:Ee,colorTextLightSolid:Ge,dropdownWidth:He,controlHeightLG:We,motionDurationMid:Xe,motionEaseOut:ct,paddingXL:Et,itemMarginInline:ht,fontSizeLG:It,motionDurationSlow:qt,paddingXS:$t,boxShadowSecondary:Wt,collapsedWidth:Ut,collapsedIconSize:ln}=Te,kt={height:Ee,lineHeight:`${Ee}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ve]:{"&-inline, &-vertical":Object.assign({[`&${Ve}-root`]:{boxShadow:"none"}},yt(Te))},[`${Ve}-submenu-popup`]:{[`${Ve}-vertical`]:Object.assign(Object.assign({},yt(Te)),{boxShadow:Wt})}},{[`${Ve}-submenu-popup ${Ve}-vertical${Ve}-sub`]:{minWidth:He,maxHeight:`calc(100vh - ${We*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ve}-inline`]:{width:"100%",[`&${Ve}-root`]:{[`${Ve}-item, ${Ve}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${qt}`,`background ${qt}`,`padding ${Xe} ${ct}`].join(","),[`> ${Ve}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ve}-sub${Ve}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ve}-submenu > ${Ve}-submenu-title`]:kt,[`& ${Ve}-item-group-title`]:{paddingInlineStart:Et}},[`${Ve}-item`]:kt}},{[`${Ve}-inline-collapsed`]:{width:Ut,[`&${Ve}-root`]:{[`${Ve}-item, ${Ve}-submenu ${Ve}-submenu-title`]:{[`> ${Ve}-inline-collapsed-noicon`]:{fontSize:It,textAlign:"center"}}},[`> ${Ve}-item,
|
|
|
> ${Ve}-item-group > ${Ve}-item-group-list > ${Ve}-item,
|
|
|
> ${Ve}-item-group > ${Ve}-item-group-list > ${Ve}-submenu > ${Ve}-submenu-title,
|
|
|
> ${Ve}-submenu > ${Ve}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${It/2}px - ${ht}px)`,textOverflow:"clip",[`
|
|
|
${Ve}-submenu-arrow,
|
|
|
${Ve}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${Ve}-item-icon, ${Ze}`]:{margin:0,fontSize:ln,lineHeight:`${Ee}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ve}-item-icon, ${Ze}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ve}-item-icon, ${Ze}`]:{display:"none"},"a, a:hover":{color:Ge}},[`${Ve}-item-group-title`]:Object.assign(Object.assign({},Be.vS),{paddingInline:$t})}}]};const mt=Te=>{const{componentCls:Ve,motionDurationSlow:Ze,motionDurationMid:Ee,motionEaseInOut:Ge,motionEaseOut:He,iconCls:We,iconSize:Xe,iconMarginInlineEnd:ct}=Te;return{[`${Ve}-item, ${Ve}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ze}`,`background ${Ze}`,`padding ${Ze} ${Ge}`].join(","),[`${Ve}-item-icon, ${We}`]:{minWidth:Xe,fontSize:Xe,transition:[`font-size ${Ee} ${He}`,`margin ${Ze} ${Ge}`,`color ${Ze}`].join(","),"+ span":{marginInlineStart:ct,opacity:1,transition:[`opacity ${Ze} ${Ge}`,`margin ${Ze}`,`color ${Ze}`].join(",")}},[`${Ve}-item-icon`]:Object.assign({},(0,Be.Ro)()),[`&${Ve}-item-only-child`]:{[`> ${We}, > ${Ve}-item-icon`]:{marginInlineEnd:0}}},[`${Ve}-item-disabled, ${Ve}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ve}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Mt=Te=>{const{componentCls:Ve,motionDurationSlow:Ze,motionEaseInOut:Ee,borderRadius:Ge,menuArrowSize:He,menuArrowOffset:We}=Te;return{[`${Ve}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Te.margin,width:He,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ze} ${Ee}, opacity ${Ze}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:He*.6,height:He*.15,backgroundColor:"currentcolor",borderRadius:Ge,transition:[`background ${Ze} ${Ee}`,`transform ${Ze} ${Ee}`,`top ${Ze} ${Ee}`,`color ${Ze} ${Ee}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${We})`},"&::after":{transform:`rotate(-45deg) translateY(${We})`}}}}},Ct=Te=>{const{antCls:Ve,componentCls:Ze,fontSize:Ee,motionDurationSlow:Ge,motionDurationMid:He,motionEaseInOut:We,paddingXS:Xe,padding:ct,colorSplit:Et,lineWidth:ht,zIndexPopup:It,borderRadiusLG:qt,subMenuItemBorderRadius:$t,menuArrowSize:Wt,menuArrowOffset:Ut,lineType:ln,menuPanelMaskInset:kt,groupTitleLineHeight:Xt,groupTitleFontSize:tn}=Te;return[{"":{[`${Ze}`]:Object.assign(Object.assign({},(0,Be.dF)()),{"&-hidden":{display:"none"}})},[`${Ze}-submenu-hidden`]:{display:"none"}},{[Ze]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Be.Wf)(Te)),(0,Be.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ee,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ge} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ze}-item`]:{flex:"none"}},[`${Ze}-item, ${Ze}-submenu, ${Ze}-submenu-title`]:{borderRadius:Te.itemBorderRadius},[`${Ze}-item-group-title`]:{padding:`${Xe}px ${ct}px`,fontSize:tn,lineHeight:Xt,transition:`all ${Ge}`},[`&-horizontal ${Ze}-submenu`]:{transition:[`border-color ${Ge} ${We}`,`background ${Ge} ${We}`].join(",")},[`${Ze}-submenu, ${Ze}-submenu-inline`]:{transition:[`border-color ${Ge} ${We}`,`background ${Ge} ${We}`,`padding ${He} ${We}`].join(",")},[`${Ze}-submenu ${Ze}-sub`]:{cursor:"initial",transition:[`background ${Ge} ${We}`,`padding ${Ge} ${We}`].join(",")},[`${Ze}-title-content`]:{transition:`color ${Ge}`},[`${Ze}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ze}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Et,borderStyle:ln,borderWidth:0,borderTopWidth:ht,marginBlock:ht,padding:0,"&-dashed":{borderStyle:"dashed"}}}),mt(Te)),{[`${Ze}-item-group`]:{[`${Ze}-item-group-list`]:{margin:0,padding:0,[`${Ze}-item, ${Ze}-submenu-title`]:{paddingInline:`${Ee*2}px ${ct}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:It,borderRadius:qt,boxShadow:"none",transformOrigin:"0 0",[`&${Ze}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${kt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:kt},"\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:Te.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Te.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Te.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Te.paddingXS},[`> ${Ze}`]:Object.assign(Object.assign(Object.assign({borderRadius:qt},mt(Te)),Mt(Te)),{[`${Ze}-item, ${Ze}-submenu > ${Ze}-submenu-title`]:{borderRadius:$t},[`${Ze}-submenu-title::after`]:{transition:`transform ${Ge} ${We}`}})}}),Mt(Te)),{[`&-inline-collapsed ${Ze}-submenu-arrow,
|
|
|
&-inline ${Ze}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ut})`},"&::after":{transform:`rotate(45deg) translateX(-${Ut})`}},[`${Ze}-submenu-open${Ze}-submenu-inline > ${Ze}-submenu-title > ${Ze}-submenu-arrow`]:{transform:`translateY(-${Wt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ut})`},"&::before":{transform:`rotate(45deg) translateX(${Ut})`}}})},{[`${Ve}-layout-header`]:{[Ze]:{lineHeight:"inherit"}}}]};var zt=(Te,Ve)=>(0,Ye.Z)("Menu",Ee=>{if(Ve===!1)return[];const{colorBgElevated:Ge,colorPrimary:He,colorTextLightSolid:We,controlHeightLG:Xe,fontSize:ct,darkItemColor:Et,darkDangerItemColor:ht,darkItemBg:It,darkSubMenuItemBg:qt,darkItemSelectedColor:$t,darkItemSelectedBg:Wt,darkDangerItemSelectedBg:Ut,darkItemHoverBg:ln,darkGroupTitleColor:kt,darkItemHoverColor:Xt,darkItemDisabledColor:tn,darkDangerItemHoverColor:dn,darkDangerItemSelectedColor:Mn,darkDangerItemActiveBg:Rn}=Ee,ir=ct/7*5,qn=(0,et.TS)(Ee,{menuArrowSize:ir,menuHorizontalHeight:Xe*1.15,menuArrowOffset:`${ir*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ge}),Cr=(0,et.TS)(qn,{itemColor:Et,itemHoverColor:Xt,groupTitleColor:kt,itemSelectedColor:$t,itemBg:It,popupBg:It,subMenuItemBg:qt,itemActiveBg:"transparent",itemSelectedBg:Wt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ln,itemDisabledColor:tn,dangerItemColor:ht,dangerItemHoverColor:dn,dangerItemSelectedColor:Mn,dangerItemActiveBg:Rn,dangerItemSelectedBg:Ut,menuSubMenuBg:qt,horizontalItemSelectedColor:We,horizontalItemSelectedBg:He});return[Ct(qn),dt(qn),gt(qn),xt(qn,"light"),xt(Cr,"dark"),Je(qn),(0,_e.Z)(qn),(0,qe.oN)(qn,"slide-up"),(0,qe.oN)(qn,"slide-down"),(0,ze._y)(qn,"zoom-big")]},Ee=>{const{colorPrimary:Ge,colorError:He,colorTextDisabled:We,colorErrorBg:Xe,colorText:ct,colorTextDescription:Et,colorBgContainer:ht,colorFillAlter:It,colorFillContent:qt,lineWidth:$t,lineWidthBold:Wt,controlItemBgActive:Ut,colorBgTextHover:ln,controlHeightLG:kt,lineHeight:Xt,colorBgElevated:tn,marginXXS:dn,padding:Mn,fontSize:Rn,controlHeightSM:ir,fontSizeLG:qn,colorTextLightSolid:Cr,colorErrorHover:er}=Ee,Fr=new je.C(Cr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ee.zIndexPopupBase+50,radiusItem:Ee.borderRadiusLG,itemBorderRadius:Ee.borderRadiusLG,radiusSubMenuItem:Ee.borderRadiusSM,subMenuItemBorderRadius:Ee.borderRadiusSM,colorItemText:ct,itemColor:ct,colorItemTextHover:ct,itemHoverColor:ct,colorItemTextHoverHorizontal:Ge,horizontalItemHoverColor:Ge,colorGroupTitle:Et,groupTitleColor:Et,colorItemTextSelected:Ge,itemSelectedColor:Ge,colorItemTextSelectedHorizontal:Ge,horizontalItemSelectedColor:Ge,colorItemBg:ht,itemBg:ht,colorItemBgHover:ln,itemHoverBg:ln,colorItemBgActive:qt,itemActiveBg:Ut,colorSubItemBg:It,subMenuItemBg:It,colorItemBgSelected:Ut,itemSelectedBg:Ut,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Wt,activeBarHeight:Wt,colorActiveBarBorderSize:$t,activeBarBorderWidth:$t,colorItemTextDisabled:We,itemDisabledColor:We,colorDangerItemText:He,dangerItemColor:He,colorDangerItemTextHover:He,dangerItemHoverColor:He,colorDangerItemTextSelected:He,dangerItemSelectedColor:He,colorDangerItemBgActive:Xe,dangerItemActiveBg:Xe,colorDangerItemBgSelected:Xe,dangerItemSelectedBg:Xe,itemMarginInline:Ee.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:kt,groupTitleLineHeight:Xt,collapsedWidth:kt*2,popupBg:tn,itemMarginBlock:dn,itemPaddingInline:Mn,horizontalLineHeight:`${kt*1.15}px`,iconSize:Rn,iconMarginInlineEnd:ir-Rn,collapsedIconSize:qn,groupTitleFontSize:Rn,darkItemDisabledColor:new je.C(Cr).setAlpha(.25).toRgbString(),darkItemColor:Fr,darkDangerItemColor:He,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Cr,darkItemSelectedBg:Ge,darkDangerItemSelectedBg:He,darkItemHoverBg:"transparent",darkGroupTitleColor:Fr,darkItemHoverColor:Cr,darkDangerItemHoverColor:er,darkDangerItemSelectedColor:Cr,darkDangerItemActiveBg:He}},{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"]]})(Te),St=function(Te,Ve){var Ze={};for(var Ee in Te)Object.prototype.hasOwnProperty.call(Te,Ee)&&Ve.indexOf(Ee)<0&&(Ze[Ee]=Te[Ee]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Ee=Object.getOwnPropertySymbols(Te);Ge<Ee.length;Ge++)Ve.indexOf(Ee[Ge])<0&&Object.prototype.propertyIsEnumerable.call(Te,Ee[Ge])&&(Ze[Ee[Ge]]=Te[Ee[Ge]]);return Ze},at=(0,Pt.forwardRef)((Te,Ve)=>{var Ze,Ee;const Ge=Pt.useContext(Pe.Z),He=Ge||{},{getPrefixCls:We,getPopupContainer:Xe,direction:ct,menu:Et}=Pt.useContext(me.E_),ht=We(),{prefixCls:It,className:qt,style:$t,theme:Wt="light",expandIcon:Ut,_internalDisableMenuItemTitleTooltip:ln,inlineCollapsed:kt,siderCollapsed:Xt,items:tn,children:dn,rootClassName:Mn,mode:Rn,selectable:ir,onClick:qn,overflowedIndicatorPopupClassName:Cr}=Te,er=St(Te,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Fr=(0,ke.Z)(er,["collapsedWidth"]),jr=Ae(tn)||dn;(Ze=He.validator)===null||Ze===void 0||Ze.call(He,{mode:Rn});const fi=(0,pe.useEvent)(function(){var Xr;qn==null||qn.apply(void 0,arguments),(Xr=He.onClick)===null||Xr===void 0||Xr.call(He)}),Si=He.mode||Rn,tr=ir!=null?ir:He.selectable,gr=Pt.useMemo(()=>Xt!==void 0?Xt:kt,[kt,Xt]),Qn={horizontal:{motionName:`${ht}-slide-up`},inline:(0,Ce.Z)(ht),other:{motionName:`${ht}-zoom-big`}},it=We("menu",It||He.prefixCls),[Ur,Rr]=zt(it,!Ge),di=Fe()(`${it}-${Wt}`,Et==null?void 0:Et.className,qt);let Vr;if(typeof Ut=="function")Vr=Ut;else if(Ut===null||Ut===!1)Vr=null;else if(He.expandIcon===null||He.expandIcon===!1)Vr=null;else{const Xr=Ut!=null?Ut:He.expandIcon;Vr=(0,xe.Tm)(Xr,{className:Fe()(`${it}-submenu-expand-icon`,(0,xe.l$)(Xr)?(Ee=Xr.props)===null||Ee===void 0?void 0:Ee.className:"")})}const Br=Pt.useMemo(()=>({prefixCls:it,inlineCollapsed:gr||!1,direction:ct,firstLevel:!0,theme:Wt,mode:Si,disableMenuItemTitleTooltip:ln}),[it,gr,ct,ln,Wt]);return Ur(Pt.createElement(Pe.Z.Provider,{value:null},Pt.createElement(z.Provider,{value:Br},Pt.createElement(tt.ZP,Object.assign({getPopupContainer:Xe,overflowedIndicator:Pt.createElement(ue.Z,null),overflowedIndicatorPopupClassName:Fe()(it,`${it}-${Wt}`,Cr),mode:Si,selectable:tr,onClick:fi},Fr,{inlineCollapsed:gr,style:Object.assign(Object.assign({},Et==null?void 0:Et.style),$t),className:di,prefixCls:it,direction:ct,defaultMotions:Qn,expandIcon:Vr,ref:Ve,rootClassName:Fe()(Mn,Rr)}),jr))))});const nt=(0,Pt.forwardRef)((Te,Ve)=>{const Ze=(0,Pt.useRef)(null),Ee=Pt.useContext(oe.D);return(0,Pt.useImperativeHandle)(Ve,()=>({menu:Ze.current,focus:Ge=>{var He;(He=Ze.current)===null||He===void 0||He.focus(Ge)}})),Pt.createElement(at,Object.assign({ref:Ze},Te,Ee))});nt.Item=ae,nt.SubMenu=le,nt.Divider=Le,nt.ItemGroup=tt.BW;var we=nt},19871:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return He}});var tt=Ke(5891),Pt=Ke(59301),oe={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"},Ue=oe,Fe=Ke(31533),me=function(Xe,ct){return Pt.createElement(Fe.Z,(0,tt.Z)({},Xe,{ref:ct,icon:Ue}))},ce=Pt.forwardRef(me),be=ce,Le=Ke(55143),Se=Ke(81132),ke=Ke(38226),ve=Ke(92310),xe=Ke.n(ve),fe=Ke(80962),z=Ke(57259),ee=Ke(79545),ae=Ke(68550),re=Ke(17928),le=Ke(7711),ue=Ke(36994),pe={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Ce=pe,Pe=Ke(91735),Ie=function(We){(0,re.Z)(ct,We);var Xe=(0,le.Z)(ct);function ct(){var Et;(0,ee.Z)(this,ct);for(var ht=arguments.length,It=new Array(ht),qt=0;qt<ht;qt++)It[qt]=arguments[qt];return Et=Xe.call.apply(Xe,[this].concat(It)),Et.state={goInputText:""},Et.getValidValue=function(){var $t=Et.state.goInputText;return!$t||Number.isNaN($t)?void 0:Number($t)},Et.buildOptionText=function($t){return"".concat($t," ").concat(Et.props.locale.items_per_page)},Et.changeSize=function($t){Et.props.changeSize(Number($t))},Et.handleChange=function($t){Et.setState({goInputText:$t.target.value})},Et.handleBlur=function($t){var Wt=Et.props,Ut=Wt.goButton,ln=Wt.quickGo,kt=Wt.rootPrefixCls,Xt=Et.state.goInputText;Ut||Xt===""||(Et.setState({goInputText:""}),!($t.relatedTarget&&($t.relatedTarget.className.indexOf("".concat(kt,"-item-link"))>=0||$t.relatedTarget.className.indexOf("".concat(kt,"-item"))>=0))&&ln(Et.getValidValue()))},Et.go=function($t){var Wt=Et.state.goInputText;Wt!==""&&($t.keyCode===Ce.ENTER||$t.type==="click")&&(Et.setState({goInputText:""}),Et.props.quickGo(Et.getValidValue()))},Et}return(0,ae.Z)(ct,[{key:"getPageSizeOptions",value:function(){var ht=this.props,It=ht.pageSize,qt=ht.pageSizeOptions;return qt.some(function($t){return $t.toString()===It.toString()})?qt:qt.concat([It.toString()]).sort(function($t,Wt){var Ut=Number.isNaN(Number($t))?0:Number($t),ln=Number.isNaN(Number(Wt))?0:Number(Wt);return Ut-ln})}},{key:"render",value:function(){var ht=this,It=this.props,qt=It.pageSize,$t=It.locale,Wt=It.rootPrefixCls,Ut=It.changeSize,ln=It.quickGo,kt=It.goButton,Xt=It.selectComponentClass,tn=It.buildOptionText,dn=It.selectPrefixCls,Mn=It.disabled,Rn=this.state.goInputText,ir="".concat(Wt,"-options"),qn=Xt,Cr=null,er=null,Fr=null;if(!Ut&&!ln)return null;var jr=this.getPageSizeOptions();if(Ut&&qn){var fi=jr.map(function(Si,tr){return Pt.createElement(qn.Option,{key:tr,value:Si.toString()},(tn||ht.buildOptionText)(Si))});Cr=Pt.createElement(qn,{disabled:Mn,prefixCls:dn,showSearch:!1,className:"".concat(ir,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(qt||jr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(tr){return tr.parentNode},"aria-label":$t.page_size,defaultOpen:!1},fi)}return ln&&(kt&&(Fr=typeof kt=="boolean"?Pt.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Mn,className:"".concat(ir,"-quick-jumper-button")},$t.jump_to_confirm):Pt.createElement("span",{onClick:this.go,onKeyUp:this.go},kt)),er=Pt.createElement("div",{className:"".concat(ir,"-quick-jumper")},$t.jump_to,Pt.createElement("input",{disabled:Mn,type:"text",value:Rn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":$t.page}),$t.page,Fr)),Pt.createElement("li",{className:"".concat(ir)},Cr,er)}}]),ct}(Pt.Component);Ie.defaultProps={pageSizeOptions:["10","20","50","100"]};var Oe=Ie,Ae=function(Xe){var ct,Et=Xe.rootPrefixCls,ht=Xe.page,It=Xe.active,qt=Xe.className,$t=Xe.showTitle,Wt=Xe.onClick,Ut=Xe.onKeyPress,ln=Xe.itemRender,kt="".concat(Et,"-item"),Xt=xe()(kt,"".concat(kt,"-").concat(ht),(ct={},(0,fe.Z)(ct,"".concat(kt,"-active"),It),(0,fe.Z)(ct,"".concat(kt,"-disabled"),!ht),(0,fe.Z)(ct,Xe.className,qt),ct)),tn=function(){Wt(ht)},dn=function(ir){Ut(ir,Wt,ht)},Mn=ln(ht,"page",Pt.createElement("a",{rel:"nofollow"},ht));return Mn?Pt.createElement("li",{title:$t?ht.toString():null,className:Xt,onClick:tn,onKeyPress:dn,tabIndex:0},Mn):null},je=Ae;function Be(){}function _e(We){var Xe=Number(We);return typeof Xe=="number"&&!Number.isNaN(Xe)&&isFinite(Xe)&&Math.floor(Xe)===Xe}var qe=function(Xe,ct,Et){return Et};function ze(We,Xe,ct){var Et=typeof We=="undefined"?Xe.pageSize:We;return Math.floor((ct.total-1)/Et)+1}var Ye=function(We){(0,re.Z)(ct,We);var Xe=(0,le.Z)(ct);function ct(Et){var ht;(0,ee.Z)(this,ct),ht=Xe.call(this,Et),ht.paginationNode=Pt.createRef(),ht.getJumpPrevPage=function(){return Math.max(1,ht.state.current-(ht.props.showLessItems?3:5))},ht.getJumpNextPage=function(){return Math.min(ze(void 0,ht.state,ht.props),ht.state.current+(ht.props.showLessItems?3:5))},ht.getItemIcon=function(Ut,ln){var kt=ht.props.prefixCls,Xt=Ut||Pt.createElement("button",{type:"button","aria-label":ln,className:"".concat(kt,"-item-link")});return typeof Ut=="function"&&(Xt=Pt.createElement(Ut,(0,z.Z)({},ht.props))),Xt},ht.isValid=function(Ut){var ln=ht.props.total;return _e(Ut)&&Ut!==ht.state.current&&_e(ln)&&ln>0},ht.shouldDisplayQuickJumper=function(){var Ut=ht.props,ln=Ut.showQuickJumper,kt=Ut.total,Xt=ht.state.pageSize;return kt<=Xt?!1:ln},ht.handleKeyDown=function(Ut){(Ut.keyCode===Ce.ARROW_UP||Ut.keyCode===Ce.ARROW_DOWN)&&Ut.preventDefault()},ht.handleKeyUp=function(Ut){var ln=ht.getValidValue(Ut),kt=ht.state.currentInputValue;ln!==kt&&ht.setState({currentInputValue:ln}),Ut.keyCode===Ce.ENTER?ht.handleChange(ln):Ut.keyCode===Ce.ARROW_UP?ht.handleChange(ln-1):Ut.keyCode===Ce.ARROW_DOWN&&ht.handleChange(ln+1)},ht.handleBlur=function(Ut){var ln=ht.getValidValue(Ut);ht.handleChange(ln)},ht.changePageSize=function(Ut){var ln=ht.state.current,kt=ze(Ut,ht.state,ht.props);ln=ln>kt?kt:ln,kt===0&&(ln=ht.state.current),typeof Ut=="number"&&("pageSize"in ht.props||ht.setState({pageSize:Ut}),"current"in ht.props||ht.setState({current:ln,currentInputValue:ln})),ht.props.onShowSizeChange(ln,Ut),"onChange"in ht.props&&ht.props.onChange&&ht.props.onChange(ln,Ut)},ht.handleChange=function(Ut){var ln=ht.props,kt=ln.disabled,Xt=ln.onChange,tn=ht.state,dn=tn.pageSize,Mn=tn.current,Rn=tn.currentInputValue;if(ht.isValid(Ut)&&!kt){var ir=ze(void 0,ht.state,ht.props),qn=Ut;return Ut>ir?qn=ir:Ut<1&&(qn=1),"current"in ht.props||ht.setState({current:qn}),qn!==Rn&&ht.setState({currentInputValue:qn}),Xt(qn,dn),qn}return Mn},ht.prev=function(){ht.hasPrev()&&ht.handleChange(ht.state.current-1)},ht.next=function(){ht.hasNext()&&ht.handleChange(ht.state.current+1)},ht.jumpPrev=function(){ht.handleChange(ht.getJumpPrevPage())},ht.jumpNext=function(){ht.handleChange(ht.getJumpNextPage())},ht.hasPrev=function(){return ht.state.current>1},ht.hasNext=function(){return ht.state.current<ze(void 0,ht.state,ht.props)},ht.runIfEnter=function(Ut,ln){if(Ut.key==="Enter"||Ut.charCode===13){for(var kt=arguments.length,Xt=new Array(kt>2?kt-2:0),tn=2;tn<kt;tn++)Xt[tn-2]=arguments[tn];ln.apply(void 0,Xt)}},ht.runIfEnterPrev=function(Ut){ht.runIfEnter(Ut,ht.prev)},ht.runIfEnterNext=function(Ut){ht.runIfEnter(Ut,ht.next)},ht.runIfEnterJumpPrev=function(Ut){ht.runIfEnter(Ut,ht.jumpPrev)},ht.runIfEnterJumpNext=function(Ut){ht.runIfEnter(Ut,ht.jumpNext)},ht.handleGoTO=function(Ut){(Ut.keyCode===Ce.ENTER||Ut.type==="click")&&ht.handleChange(ht.state.currentInputValue)},ht.renderPrev=function(Ut){var ln=ht.props,kt=ln.prevIcon,Xt=ln.itemRender,tn=Xt(Ut,"prev",ht.getItemIcon(kt,"prev page")),dn=!ht.hasPrev();return(0,Pt.isValidElement)(tn)?(0,Pt.cloneElement)(tn,{disabled:dn}):tn},ht.renderNext=function(Ut){var ln=ht.props,kt=ln.nextIcon,Xt=ln.itemRender,tn=Xt(Ut,"next",ht.getItemIcon(kt,"next page")),dn=!ht.hasNext();return(0,Pt.isValidElement)(tn)?(0,Pt.cloneElement)(tn,{disabled:dn}):tn};var It=Et.onChange!==Be,qt="current"in Et;qt&&!It&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var $t=Et.defaultCurrent;"current"in Et&&($t=Et.current);var Wt=Et.defaultPageSize;return"pageSize"in Et&&(Wt=Et.pageSize),$t=Math.min($t,ze(Wt,void 0,Et)),ht.state={current:$t,currentInputValue:$t,pageSize:Wt},ht}return(0,ae.Z)(ct,[{key:"componentDidUpdate",value:function(ht,It){var qt=this.props.prefixCls;if(It.current!==this.state.current&&this.paginationNode.current){var $t=this.paginationNode.current.querySelector(".".concat(qt,"-item-").concat(It.current));if($t&&document.activeElement===$t){var Wt;$t==null||(Wt=$t.blur)===null||Wt===void 0||Wt.call($t)}}}},{key:"getValidValue",value:function(ht){var It=ht.target.value,qt=ze(void 0,this.state,this.props),$t=this.state.currentInputValue,Wt;return It===""?Wt=It:Number.isNaN(Number(It))?Wt=$t:It>=qt?Wt=qt:Wt=Number(It),Wt}},{key:"getShowSizeChanger",value:function(){var ht=this.props,It=ht.showSizeChanger,qt=ht.total,$t=ht.totalBoundaryShowSizeChanger;return typeof It!="undefined"?It:qt>$t}},{key:"render",value:function(){var ht=this.props,It=ht.prefixCls,qt=ht.className,$t=ht.style,Wt=ht.disabled,Ut=ht.hideOnSinglePage,ln=ht.total,kt=ht.locale,Xt=ht.showQuickJumper,tn=ht.showLessItems,dn=ht.showTitle,Mn=ht.showTotal,Rn=ht.simple,ir=ht.itemRender,qn=ht.showPrevNextJumpers,Cr=ht.jumpPrevIcon,er=ht.jumpNextIcon,Fr=ht.selectComponentClass,jr=ht.selectPrefixCls,fi=ht.pageSizeOptions,Si=this.state,tr=Si.current,gr=Si.pageSize,Qn=Si.currentInputValue;if(Ut===!0&&ln<=gr)return null;var it=ze(void 0,this.state,this.props),Ur=[],Rr=null,di=null,Vr=null,Br=null,Xr=null,hr=Xt&&Xt.goButton,un=tn?1:2,on=tr-1>0?tr-1:0,Jt=tr+1<it?tr+1:it,jt=(0,ue.Z)(this.props,{aria:!0,data:!0}),Pn=Mn&&Pt.createElement("li",{className:"".concat(It,"-total-text")},Mn(ln,[ln===0?0:(tr-1)*gr+1,tr*gr>ln?ln:tr*gr]));if(Rn){hr&&(typeof hr=="boolean"?Xr=Pt.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},kt.jump_to_confirm):Xr=Pt.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},hr),Xr=Pt.createElement("li",{title:dn?"".concat(kt.jump_to).concat(tr,"/").concat(it):null,className:"".concat(It,"-simple-pager")},Xr));var Cn=this.renderPrev(on);return Pt.createElement("ul",(0,tt.Z)({className:xe()(It,"".concat(It,"-simple"),(0,fe.Z)({},"".concat(It,"-disabled"),Wt),qt),style:$t,ref:this.paginationNode},jt),Pn,Cn?Pt.createElement("li",{title:dn?kt.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:xe()("".concat(It,"-prev"),(0,fe.Z)({},"".concat(It,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Cn):null,Pt.createElement("li",{title:dn?"".concat(tr,"/").concat(it):null,className:"".concat(It,"-simple-pager")},Pt.createElement("input",{type:"text",value:Qn,disabled:Wt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Pt.createElement("span",{className:"".concat(It,"-slash")},"/"),it),Pt.createElement("li",{title:dn?kt.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:xe()("".concat(It,"-next"),(0,fe.Z)({},"".concat(It,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Jt)),Xr)}if(it<=3+un*2){var Kt={locale:kt,rootPrefixCls:It,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:dn,itemRender:ir};it||Ur.push(Pt.createElement(je,(0,tt.Z)({},Kt,{key:"noPager",page:1,className:"".concat(It,"-item-disabled")})));for(var Dt=1;Dt<=it;Dt+=1){var pn=tr===Dt;Ur.push(Pt.createElement(je,(0,tt.Z)({},Kt,{key:Dt,page:Dt,active:pn})))}}else{var yn=tn?kt.prev_3:kt.prev_5,Jn=tn?kt.next_3:kt.next_5,bn=ir(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Cr,"prev page")),Zt=ir(this.getJumpNextPage(),"jump-next",this.getItemIcon(er,"next page"));qn&&(Rr=bn?Pt.createElement("li",{title:dn?yn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:xe()("".concat(It,"-jump-prev"),(0,fe.Z)({},"".concat(It,"-jump-prev-custom-icon"),!!Cr))},bn):null,di=Zt?Pt.createElement("li",{title:dn?Jn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:xe()("".concat(It,"-jump-next"),(0,fe.Z)({},"".concat(It,"-jump-next-custom-icon"),!!er))},Zt):null),Br=Pt.createElement(je,{locale:kt,last:!0,rootPrefixCls:It,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:it,page:it,active:!1,showTitle:dn,itemRender:ir}),Vr=Pt.createElement(je,{locale:kt,rootPrefixCls:It,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:dn,itemRender:ir});var jn=Math.max(1,tr-un),Fn=Math.min(tr+un,it);tr-1<=un&&(Fn=1+un*2),it-tr<=un&&(jn=it-un*2);for(var ar=jn;ar<=Fn;ar+=1){var nn=tr===ar;Ur.push(Pt.createElement(je,{locale:kt,rootPrefixCls:It,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ar,page:ar,active:nn,showTitle:dn,itemRender:ir}))}tr-1>=un*2&&tr!==3&&(Ur[0]=(0,Pt.cloneElement)(Ur[0],{className:"".concat(It,"-item-after-jump-prev")}),Ur.unshift(Rr)),it-tr>=un*2&&tr!==it-2&&(Ur[Ur.length-1]=(0,Pt.cloneElement)(Ur[Ur.length-1],{className:"".concat(It,"-item-before-jump-next")}),Ur.push(di)),jn!==1&&Ur.unshift(Vr),Fn!==it&&Ur.push(Br)}var On=!this.hasPrev()||!it,an=!this.hasNext()||!it,mn=this.renderPrev(on),Ln=this.renderNext(Jt);return Pt.createElement("ul",(0,tt.Z)({className:xe()(It,qt,(0,fe.Z)({},"".concat(It,"-disabled"),Wt)),style:$t,ref:this.paginationNode},jt),Pn,mn?Pt.createElement("li",{title:dn?kt.prev_page:null,onClick:this.prev,tabIndex:On?null:0,onKeyPress:this.runIfEnterPrev,className:xe()("".concat(It,"-prev"),(0,fe.Z)({},"".concat(It,"-disabled"),On)),"aria-disabled":On},mn):null,Ur,Ln?Pt.createElement("li",{title:dn?kt.next_page:null,onClick:this.next,tabIndex:an?null:0,onKeyPress:this.runIfEnterNext,className:xe()("".concat(It,"-next"),(0,fe.Z)({},"".concat(It,"-disabled"),an)),"aria-disabled":an},Ln):null,Pt.createElement(Oe,{disabled:Wt,locale:kt,rootPrefixCls:It,selectComponentClass:Fr,selectPrefixCls:jr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:tr,pageSize:gr,pageSizeOptions:fi,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:hr}))}}],[{key:"getDerivedStateFromProps",value:function(ht,It){var qt={};if("current"in ht&&(qt.current=ht.current,ht.current!==It.current&&(qt.currentInputValue=qt.current)),"pageSize"in ht&&ht.pageSize!==It.pageSize){var $t=It.current,Wt=ze(ht.pageSize,It,ht);$t=$t>Wt?Wt:$t,"current"in ht||(qt.current=$t,qt.currentInputValue=$t),qt.pageSize=ht.pageSize}return qt}}]),ct}(Pt.Component);Ye.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Be,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Be,locale:Pe.Z,style:{},itemRender:qe,totalBoundaryShowSizeChanger:50};var et=Ye,lt=Ke(22075),dt=Ke(36355),vt=Ke(19716),Je=Ke(8628),ot=Ke(9763),ft=Ke(57809);const xt=We=>Pt.createElement(ft.default,Object.assign({},We,{showSearch:!0,size:"small"})),yt=We=>Pt.createElement(ft.default,Object.assign({},We,{showSearch:!0,size:"middle"}));xt.Option=ft.default.Option,yt.Option=ft.default.Option;var pt=Ke(9937),gt=Ke(17313),mt=Ke(83116),Mt=Ke(37613);const Ct=We=>{const{componentCls:Xe}=We;return{[`${Xe}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Xe}-item-link`]:{color:We.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Xe}-item-link`]:{color:We.colorTextDisabled,cursor:"not-allowed"}}},[`&${Xe}-disabled`]:{cursor:"not-allowed",[`${Xe}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:We.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:We.colorBorder,backgroundColor:We.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:We.itemActiveBgDisabled},a:{color:We.itemActiveColorDisabled}}},[`${Xe}-item-link`]:{color:We.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Xe}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Xe}-simple-pager`]:{color:We.colorTextDisabled},[`${Xe}-jump-prev, ${Xe}-jump-next`]:{[`${Xe}-item-link-icon`]:{opacity:0},[`${Xe}-item-ellipsis`]:{opacity:1}}},[`&${Xe}-simple`]:{[`${Xe}-prev, ${Xe}-next`]:{[`&${Xe}-disabled ${Xe}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},zt=We=>{const{componentCls:Xe}=We;return{[`&${Xe}-mini ${Xe}-total-text, &${Xe}-mini ${Xe}-simple-pager`]:{height:We.itemSizeSM,lineHeight:`${We.itemSizeSM}px`},[`&${Xe}-mini ${Xe}-item`]:{minWidth:We.itemSizeSM,height:We.itemSizeSM,margin:0,lineHeight:`${We.itemSizeSM-2}px`},[`&${Xe}-mini:not(${Xe}-disabled) ${Xe}-item:not(${Xe}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:We.colorBgTextHover},"&:active":{backgroundColor:We.colorBgTextActive}},[`&${Xe}-mini ${Xe}-prev, &${Xe}-mini ${Xe}-next`]:{minWidth:We.itemSizeSM,height:We.itemSizeSM,margin:0,lineHeight:`${We.itemSizeSM}px`},[`&${Xe}-mini:not(${Xe}-disabled)`]:{[`${Xe}-prev, ${Xe}-next`]:{[`&:hover ${Xe}-item-link`]:{backgroundColor:We.colorBgTextHover},[`&:active ${Xe}-item-link`]:{backgroundColor:We.colorBgTextActive},[`&${Xe}-disabled:hover ${Xe}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Xe}-mini ${Xe}-prev ${Xe}-item-link,
|
|
|
&${Xe}-mini ${Xe}-next ${Xe}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:We.itemSizeSM,lineHeight:`${We.itemSizeSM}px`}},[`&${Xe}-mini ${Xe}-jump-prev, &${Xe}-mini ${Xe}-jump-next`]:{height:We.itemSizeSM,marginInlineEnd:0,lineHeight:`${We.itemSizeSM}px`},[`&${Xe}-mini ${Xe}-options`]:{marginInlineStart:We.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:We.miniOptionsSizeChangerTop},"&-quick-jumper":{height:We.itemSizeSM,lineHeight:`${We.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,pt.x0)(We)),{width:We.paginationMiniQuickJumperInputWidth,height:We.controlHeightSM})}}}},St=We=>{const{componentCls:Xe}=We;return{[`
|
|
|
&${Xe}-simple ${Xe}-prev,
|
|
|
&${Xe}-simple ${Xe}-next
|
|
|
`]:{height:We.itemSizeSM,lineHeight:`${We.itemSizeSM}px`,verticalAlign:"top",[`${Xe}-item-link`]:{height:We.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:We.colorBgTextHover},"&:active":{backgroundColor:We.colorBgTextActive},"&::after":{height:We.itemSizeSM,lineHeight:`${We.itemSizeSM}px`}}},[`&${Xe}-simple ${Xe}-simple-pager`]:{display:"inline-block",height:We.itemSizeSM,marginInlineEnd:We.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:We.marginXS,padding:`0 ${We.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:We.itemInputBg,border:`${We.lineWidth}px ${We.lineType} ${We.colorBorder}`,borderRadius:We.borderRadius,outline:"none",transition:`border-color ${We.motionDurationMid}`,color:"inherit","&:hover":{borderColor:We.colorPrimary},"&:focus":{borderColor:We.colorPrimaryHover,boxShadow:`${We.inputOutlineOffset}px 0 ${We.controlOutlineWidth}px ${We.controlOutline}`},"&[disabled]":{color:We.colorTextDisabled,backgroundColor:We.colorBgContainerDisabled,borderColor:We.colorBorder,cursor:"not-allowed"}}}}},bt=We=>{const{componentCls:Xe}=We;return{[`${Xe}-jump-prev, ${Xe}-jump-next`]:{outline:0,[`${Xe}-item-container`]:{position:"relative",[`${Xe}-item-link-icon`]:{color:We.colorPrimary,fontSize:We.fontSizeSM,opacity:0,transition:`all ${We.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Xe}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:We.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:We.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:We.paginationEllipsisTextIndent,opacity:1,transition:`all ${We.motionDurationMid}`}},"&:hover":{[`${Xe}-item-link-icon`]:{opacity:1},[`${Xe}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Xe}-prev,
|
|
|
${Xe}-jump-prev,
|
|
|
${Xe}-jump-next
|
|
|
`]:{marginInlineEnd:We.marginXS},[`
|
|
|
${Xe}-prev,
|
|
|
${Xe}-next,
|
|
|
${Xe}-jump-prev,
|
|
|
${Xe}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:We.itemSize,height:We.itemSize,color:We.colorText,fontFamily:We.fontFamily,lineHeight:`${We.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:We.borderRadius,cursor:"pointer",transition:`all ${We.motionDurationMid}`},[`${Xe}-prev, ${Xe}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:We.colorText,cursor:"pointer",userSelect:"none"},[`${Xe}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:We.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${We.lineWidth}px ${We.lineType} transparent`,borderRadius:We.borderRadius,outline:"none",transition:`all ${We.motionDurationMid}`},[`&:hover ${Xe}-item-link`]:{backgroundColor:We.colorBgTextHover},[`&:active ${Xe}-item-link`]:{backgroundColor:We.colorBgTextActive},[`&${Xe}-disabled:hover`]:{[`${Xe}-item-link`]:{backgroundColor:"transparent"}}},[`${Xe}-slash`]:{marginInlineEnd:We.paginationSlashMarginInlineEnd,marginInlineStart:We.paginationSlashMarginInlineStart},[`${Xe}-options`]:{display:"inline-block",marginInlineStart:We.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:We.controlHeight,marginInlineStart:We.marginXS,lineHeight:`${We.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,pt.ik)(We)),{width:We.controlHeightLG*1.25,height:We.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:We.marginXS,marginInlineEnd:We.marginXS})}}}},at=We=>{const{componentCls:Xe}=We;return{[`${Xe}-item`]:{display:"inline-block",minWidth:We.itemSize,height:We.itemSize,marginInlineEnd:We.marginXS,fontFamily:We.fontFamily,lineHeight:`${We.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${We.lineWidth}px ${We.lineType} transparent`,borderRadius:We.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${We.paginationItemPaddingInline}px`,color:We.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Xe}-item-active)`]:{"&:hover":{transition:`all ${We.motionDurationMid}`,backgroundColor:We.colorBgTextHover},"&:active":{backgroundColor:We.colorBgTextActive}},"&-active":{fontWeight:We.fontWeightStrong,backgroundColor:We.itemActiveBg,borderColor:We.colorPrimary,a:{color:We.colorPrimary},"&:hover":{borderColor:We.colorPrimaryHover},"&:hover a":{color:We.colorPrimaryHover}}}}},nt=We=>{const{componentCls:Xe}=We;return{[Xe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,gt.Wf)(We)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Xe}-total-text`]:{display:"inline-block",height:We.itemSize,marginInlineEnd:We.marginXS,lineHeight:`${We.itemSize-2}px`,verticalAlign:"middle"}}),at(We)),bt(We)),St(We)),zt(We)),Ct(We)),{[`@media only screen and (max-width: ${We.screenLG}px)`]:{[`${Xe}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${We.screenSM}px)`]:{[`${Xe}-options`]:{display:"none"}}}),[`&${We.componentCls}-rtl`]:{direction:"rtl"}}},we=We=>{const{componentCls:Xe}=We;return{[`${Xe}${Xe}-disabled:not(${Xe}-mini)`]:{"&, &:hover":{[`${Xe}-item-link`]:{borderColor:We.colorBorder}},"&:focus-visible":{[`${Xe}-item-link`]:{borderColor:We.colorBorder}},[`${Xe}-item, ${Xe}-item-link`]:{backgroundColor:We.colorBgContainerDisabled,borderColor:We.colorBorder,[`&:hover:not(${Xe}-item-active)`]:{backgroundColor:We.colorBgContainerDisabled,borderColor:We.colorBorder,a:{color:We.colorTextDisabled}},[`&${Xe}-item-active`]:{backgroundColor:We.itemActiveBgDisabled}},[`${Xe}-prev, ${Xe}-next`]:{"&:hover button":{backgroundColor:We.colorBgContainerDisabled,borderColor:We.colorBorder,color:We.colorTextDisabled},[`${Xe}-item-link`]:{backgroundColor:We.colorBgContainerDisabled,borderColor:We.colorBorder}}},[`${Xe}:not(${Xe}-mini)`]:{[`${Xe}-prev, ${Xe}-next`]:{"&:hover button":{borderColor:We.colorPrimaryHover,backgroundColor:We.itemBg},[`${Xe}-item-link`]:{backgroundColor:We.itemLinkBg,borderColor:We.colorBorder},[`&:hover ${Xe}-item-link`]:{borderColor:We.colorPrimary,backgroundColor:We.itemBg,color:We.colorPrimary},[`&${Xe}-disabled`]:{[`${Xe}-item-link`]:{borderColor:We.colorBorder,color:We.colorTextDisabled}}},[`${Xe}-item`]:{backgroundColor:We.itemBg,border:`${We.lineWidth}px ${We.lineType} ${We.colorBorder}`,[`&:hover:not(${Xe}-item-active)`]:{borderColor:We.colorPrimary,backgroundColor:We.itemBg,a:{color:We.colorPrimary}},"&-active":{borderColor:We.colorPrimary}}}}},Te=We=>{const{componentCls:Xe}=We;return{[`${Xe}:not(${Xe}-disabled)`]:{[`${Xe}-item`]:Object.assign({},(0,gt.Qy)(We)),[`${Xe}-jump-prev, ${Xe}-jump-next`]:{"&:focus-visible":Object.assign({[`${Xe}-item-link-icon`]:{opacity:1},[`${Xe}-item-ellipsis`]:{opacity:0}},(0,gt.oN)(We))},[`${Xe}-prev, ${Xe}-next`]:{[`&:focus-visible ${Xe}-item-link`]:Object.assign({},(0,gt.oN)(We))}}}};var Ve=(0,mt.Z)("Pagination",We=>{const Xe=(0,Mt.TS)(We,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:We.marginXXS/2,paginationMiniQuickJumperInputWidth:We.controlHeightLG*1.1,paginationItemPaddingInline:We.marginXXS*1.5,paginationEllipsisLetterSpacing:We.marginXXS/2,paginationSlashMarginInlineStart:We.marginXXS,paginationSlashMarginInlineEnd:We.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,pt.e5)(We),(0,pt.TM)(We));return[nt(Xe),Te(Xe),We.wireframe&&we(Xe)]},We=>({itemBg:We.colorBgContainer,itemSize:We.controlHeight,itemSizeSM:We.controlHeightSM,itemActiveBg:We.colorBgContainer,itemLinkBg:We.colorBgContainer,itemActiveColorDisabled:We.colorTextDisabled,itemActiveBgDisabled:We.controlItemBgActiveDisabled,itemInputBg:We.colorBgContainer,miniOptionsSizeChangerTop:0})),Ze=function(We,Xe){var ct={};for(var Et in We)Object.prototype.hasOwnProperty.call(We,Et)&&Xe.indexOf(Et)<0&&(ct[Et]=We[Et]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,Et=Object.getOwnPropertySymbols(We);ht<Et.length;ht++)Xe.indexOf(Et[ht])<0&&Object.prototype.propertyIsEnumerable.call(We,Et[ht])&&(ct[Et[ht]]=We[Et[ht]]);return ct},Ge=We=>{const{prefixCls:Xe,selectPrefixCls:ct,className:Et,rootClassName:ht,style:It,size:qt,locale:$t,selectComponentClass:Wt,responsive:Ut,showSizeChanger:ln}=We,kt=Ze(We,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Xt}=(0,Je.Z)(Ut),{getPrefixCls:tn,direction:dn,pagination:Mn={}}=Pt.useContext(dt.E_),Rn=tn("pagination",Xe),[ir,qn]=Ve(Rn),Cr=ln!=null?ln:Mn.showSizeChanger,er=Pt.useMemo(()=>{const it=Pt.createElement("span",{className:`${Rn}-item-ellipsis`},"\u2022\u2022\u2022"),Ur=Pt.createElement("button",{className:`${Rn}-item-link`,type:"button",tabIndex:-1},dn==="rtl"?Pt.createElement(ke.Z,null):Pt.createElement(Se.Z,null)),Rr=Pt.createElement("button",{className:`${Rn}-item-link`,type:"button",tabIndex:-1},dn==="rtl"?Pt.createElement(Se.Z,null):Pt.createElement(ke.Z,null)),di=Pt.createElement("a",{className:`${Rn}-item-link`},Pt.createElement("div",{className:`${Rn}-item-container`},dn==="rtl"?Pt.createElement(Le.Z,{className:`${Rn}-item-link-icon`}):Pt.createElement(be,{className:`${Rn}-item-link-icon`}),it)),Vr=Pt.createElement("a",{className:`${Rn}-item-link`},Pt.createElement("div",{className:`${Rn}-item-container`},dn==="rtl"?Pt.createElement(be,{className:`${Rn}-item-link-icon`}):Pt.createElement(Le.Z,{className:`${Rn}-item-link-icon`}),it));return{prevIcon:Ur,nextIcon:Rr,jumpPrevIcon:di,jumpNextIcon:Vr}},[dn,Rn]),[Fr]=(0,ot.Z)("Pagination",lt.Z),jr=Object.assign(Object.assign({},Fr),$t),fi=(0,vt.Z)(qt),Si=fi==="small"||!!(Xt&&!fi&&Ut),tr=tn("select",ct),gr=xe()({[`${Rn}-mini`]:Si,[`${Rn}-rtl`]:dn==="rtl"},Mn==null?void 0:Mn.className,Et,ht,qn),Qn=Object.assign(Object.assign({},Mn==null?void 0:Mn.style),It);return ir(Pt.createElement(et,Object.assign({},er,kt,{style:Qn,prefixCls:Rn,selectPrefixCls:tr,className:gr,selectComponentClass:Wt||(Si?xt:yt),locale:jr,showSizeChanger:Cr})))},He=Ge},93948:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return ln}});var tt=Ke(59301),Pt=Ke(5242),oe=Ke(89699),Ue=Ke(37637),Fe=Ke(77318),me=Ke(92310),ce=Ke.n(me),be=Ke(64002),Le=Ke(36355),Se=Ke(5891),ke=Ke(57259),ve=Ke(19149),xe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},fe=function(){var Xt=(0,tt.useRef)([]),tn=(0,tt.useRef)(null);return(0,tt.useEffect)(function(){var dn=Date.now(),Mn=!1;Xt.current.forEach(function(Rn){if(Rn){Mn=!0;var ir=Rn.style;ir.transitionDuration=".3s, .3s, .3s, .06s",tn.current&&dn-tn.current<100&&(ir.transitionDuration="0s, 0s")}}),Mn&&(tn.current=Date.now())}),Xt.current},z=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ee=function(Xt){var tn=(0,ke.Z)((0,ke.Z)({},xe),Xt),dn=tn.className,Mn=tn.percent,Rn=tn.prefixCls,ir=tn.strokeColor,qn=tn.strokeLinecap,Cr=tn.strokeWidth,er=tn.style,Fr=tn.trailColor,jr=tn.trailWidth,fi=tn.transition,Si=(0,ve.Z)(tn,z);delete Si.gapPosition;var tr=Array.isArray(Mn)?Mn:[Mn],gr=Array.isArray(ir)?ir:[ir],Qn=fe(),it=Cr/2,Ur=100-Cr/2,Rr="M ".concat(qn==="round"?it:0,",").concat(it,`
|
|
|
L `).concat(qn==="round"?Ur:100,",").concat(it),di="0 0 100 ".concat(Cr),Vr=0;return tt.createElement("svg",(0,Se.Z)({className:ce()("".concat(Rn,"-line"),dn),viewBox:di,preserveAspectRatio:"none",style:er},Si),tt.createElement("path",{className:"".concat(Rn,"-line-trail"),d:Rr,strokeLinecap:qn,stroke:Fr,strokeWidth:jr||Cr,fillOpacity:"0"}),tr.map(function(Br,Xr){var hr=1;switch(qn){case"round":hr=1-Cr/100;break;case"square":hr=1-Cr/2/100;break;default:hr=1;break}var un={strokeDasharray:"".concat(Br*hr,"px, 100px"),strokeDashoffset:"-".concat(Vr,"px"),transition:fi||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},on=gr[Xr]||gr[gr.length-1];return Vr+=Br,tt.createElement("path",{key:Xr,className:"".concat(Rn,"-line-path"),d:Rr,strokeLinecap:qn,stroke:on,strokeWidth:Cr,fillOpacity:"0",ref:function(jt){Qn[Xr]=jt},style:un})}))},ae=ee,re=Ke(80665),le=Ke(29043),ue=Ke(87746),pe=0,Ce=(0,ue.Z)();function Pe(){var kt;return Ce?(kt=pe,pe+=1):kt="TEST_OR_SSR",kt}var Ie=function(kt){var Xt=tt.useState(),tn=(0,le.Z)(Xt,2),dn=tn[0],Mn=tn[1];return tt.useEffect(function(){Mn("rc_progress_".concat(Pe()))},[]),kt||dn},Oe=function(Xt){var tn=Xt.bg,dn=Xt.children;return tt.createElement("div",{style:{width:"100%",height:"100%",background:tn}},dn)};function Ae(kt,Xt){return Object.keys(kt).map(function(tn){var dn=parseFloat(tn),Mn="".concat(Math.floor(dn*Xt),"%");return"".concat(kt[tn]," ").concat(Mn)})}var je=tt.forwardRef(function(kt,Xt){var tn=kt.prefixCls,dn=kt.color,Mn=kt.gradientId,Rn=kt.radius,ir=kt.style,qn=kt.ptg,Cr=kt.strokeLinecap,er=kt.strokeWidth,Fr=kt.size,jr=kt.gapDegree,fi=dn&&(0,re.Z)(dn)==="object",Si=fi?"#FFF":void 0,tr=Fr/2,gr=tt.createElement("circle",{className:"".concat(tn,"-circle-path"),r:Rn,cx:tr,cy:tr,stroke:Si,strokeLinecap:Cr,strokeWidth:er,opacity:qn===0?0:1,style:ir,ref:Xt});if(!fi)return gr;var Qn="".concat(Mn,"-conic"),it=jr?"".concat(180+jr/2,"deg"):"0deg",Ur=Ae(dn,(360-jr)/360),Rr=Ae(dn,1),di="conic-gradient(from ".concat(it,", ").concat(Ur.join(", "),")"),Vr="linear-gradient(to ".concat(jr?"bottom":"top",", ").concat(Rr.join(", "),")");return tt.createElement(tt.Fragment,null,tt.createElement("mask",{id:Qn},gr),tt.createElement("foreignObject",{x:0,y:0,width:Fr,height:Fr,mask:"url(#".concat(Qn,")")},tt.createElement(Oe,{bg:Vr},tt.createElement(Oe,{bg:di}))))}),Be=je,_e=100,qe=function(Xt,tn,dn,Mn,Rn,ir,qn,Cr,er,Fr){var jr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,fi=dn/100*360*((360-ir)/360),Si=ir===0?0:{bottom:0,top:180,left:90,right:-90}[qn],tr=(100-Mn)/100*tn;er==="round"&&Mn!==100&&(tr+=Fr/2,tr>=tn&&(tr=tn-.01));var gr=_e/2;return{stroke:typeof Cr=="string"?Cr:void 0,strokeDasharray:"".concat(tn,"px ").concat(Xt),strokeDashoffset:tr+jr,transform:"rotate(".concat(Rn+fi+Si,"deg)"),transformOrigin:"".concat(gr,"px ").concat(gr,"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}},ze=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ye(kt){var Xt=kt!=null?kt:[];return Array.isArray(Xt)?Xt:[Xt]}var et=function(Xt){var tn=(0,ke.Z)((0,ke.Z)({},xe),Xt),dn=tn.id,Mn=tn.prefixCls,Rn=tn.steps,ir=tn.strokeWidth,qn=tn.trailWidth,Cr=tn.gapDegree,er=Cr===void 0?0:Cr,Fr=tn.gapPosition,jr=tn.trailColor,fi=tn.strokeLinecap,Si=tn.style,tr=tn.className,gr=tn.strokeColor,Qn=tn.percent,it=(0,ve.Z)(tn,ze),Ur=_e/2,Rr=Ie(dn),di="".concat(Rr,"-gradient"),Vr=Ur-ir/2,Br=Math.PI*2*Vr,Xr=er>0?90+er/2:-90,hr=Br*((360-er)/360),un=(0,re.Z)(Rn)==="object"?Rn:{count:Rn,space:2},on=un.count,Jt=un.space,jt=Ye(Qn),Pn=Ye(gr),Cn=Pn.find(function(Zt){return Zt&&(0,re.Z)(Zt)==="object"}),Kt=Cn&&(0,re.Z)(Cn)==="object",Dt=Kt?"butt":fi,pn=qe(Br,hr,0,100,Xr,er,Fr,jr,Dt,ir),yn=fe(),Jn=function(){var jn=0;return jt.map(function(Fn,ar){var nn=Pn[ar]||Pn[Pn.length-1],On=qe(Br,hr,jn,Fn,Xr,er,Fr,nn,Dt,ir);return jn+=Fn,tt.createElement(Be,{key:ar,color:nn,ptg:Fn,radius:Vr,prefixCls:Mn,gradientId:di,style:On,strokeLinecap:Dt,strokeWidth:ir,gapDegree:er,ref:function(mn){yn[ar]=mn},size:_e})}).reverse()},bn=function(){var jn=Math.round(on*(jt[0]/100)),Fn=100/on,ar=0;return new Array(on).fill(null).map(function(nn,On){var an=On<=jn-1?Pn[0]:jr,mn=an&&(0,re.Z)(an)==="object"?"url(#".concat(di,")"):void 0,Ln=qe(Br,hr,ar,Fn,Xr,er,Fr,an,"butt",ir,Jt);return ar+=(hr-Ln.strokeDashoffset+Jt)*100/hr,tt.createElement("circle",{key:On,className:"".concat(Mn,"-circle-path"),r:Vr,cx:Ur,cy:Ur,stroke:mn,strokeWidth:ir,opacity:1,style:Ln,ref:function(In){yn[On]=In}})})};return tt.createElement("svg",(0,Se.Z)({className:ce()("".concat(Mn,"-circle"),tr),viewBox:"0 0 ".concat(_e," ").concat(_e),style:Si,id:dn,role:"presentation"},it),!on&&tt.createElement("circle",{className:"".concat(Mn,"-circle-trail"),r:Vr,cx:Ur,cy:Ur,stroke:jr,strokeLinecap:Dt,strokeWidth:qn||ir,style:pn}),on?bn():Jn())},lt=et,dt={Line:ae,Circle:lt},vt=Ke(6848),Je=Ke(93398);function ot(kt){return!kt||kt<0?0:kt>100?100:kt}function ft(kt){let{success:Xt,successPercent:tn}=kt,dn=tn;return Xt&&"progress"in Xt&&(dn=Xt.progress),Xt&&"percent"in Xt&&(dn=Xt.percent),dn}const xt=kt=>{let{percent:Xt,success:tn,successPercent:dn}=kt;const Mn=ot(ft({success:tn,successPercent:dn}));return[Mn,ot(ot(Xt)-Mn)]},yt=kt=>{let{success:Xt={},strokeColor:tn}=kt;const{strokeColor:dn}=Xt;return[dn||Je.presetPrimaryColors.green,tn||null]},pt=(kt,Xt,tn)=>{var dn,Mn,Rn,ir;let qn=-1,Cr=-1;if(Xt==="step"){const er=tn.steps,Fr=tn.strokeWidth;typeof kt=="string"||typeof kt=="undefined"?(qn=kt==="small"?2:14,Cr=Fr!=null?Fr:8):typeof kt=="number"?[qn,Cr]=[kt,kt]:[qn=14,Cr=8]=kt,qn*=er}else if(Xt==="line"){const er=tn==null?void 0:tn.strokeWidth;typeof kt=="string"||typeof kt=="undefined"?Cr=er||(kt==="small"?6:8):typeof kt=="number"?[qn,Cr]=[kt,kt]:[qn=-1,Cr=8]=kt}else(Xt==="circle"||Xt==="dashboard")&&(typeof kt=="string"||typeof kt=="undefined"?[qn,Cr]=kt==="small"?[60,60]:[120,120]:typeof kt=="number"?[qn,Cr]=[kt,kt]:(qn=(Mn=(dn=kt[0])!==null&&dn!==void 0?dn:kt[1])!==null&&Mn!==void 0?Mn:120,Cr=(ir=(Rn=kt[0])!==null&&Rn!==void 0?Rn:kt[1])!==null&&ir!==void 0?ir:120));return[qn,Cr]},gt=3,mt=kt=>gt/kt*100;var Ct=kt=>{const{prefixCls:Xt,trailColor:tn=null,strokeLinecap:dn="round",gapPosition:Mn,gapDegree:Rn,width:ir=120,type:qn,children:Cr,success:er,size:Fr=ir}=kt,[jr,fi]=pt(Fr,"circle");let{strokeWidth:Si}=kt;Si===void 0&&(Si=Math.max(mt(jr),6));const tr={width:jr,height:fi,fontSize:jr*.15+6},gr=tt.useMemo(()=>{if(Rn||Rn===0)return Rn;if(qn==="dashboard")return 75},[Rn,qn]),Qn=Mn||qn==="dashboard"&&"bottom"||void 0,it=Object.prototype.toString.call(kt.strokeColor)==="[object Object]",Ur=yt({success:er,strokeColor:kt.strokeColor}),Rr=ce()(`${Xt}-inner`,{[`${Xt}-circle-gradient`]:it}),di=tt.createElement(lt,{percent:xt(kt),strokeWidth:Si,trailWidth:Si,strokeColor:Ur,strokeLinecap:dn,trailColor:tn,prefixCls:Xt,gapDegree:gr,gapPosition:Qn});return tt.createElement("div",{className:Rr,style:tr},jr<=20?tt.createElement(vt.Z,{title:Cr},tt.createElement("span",null,di)):tt.createElement(tt.Fragment,null,di,Cr))},zt=function(kt,Xt){var tn={};for(var dn in kt)Object.prototype.hasOwnProperty.call(kt,dn)&&Xt.indexOf(dn)<0&&(tn[dn]=kt[dn]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mn=0,dn=Object.getOwnPropertySymbols(kt);Mn<dn.length;Mn++)Xt.indexOf(dn[Mn])<0&&Object.prototype.propertyIsEnumerable.call(kt,dn[Mn])&&(tn[dn[Mn]]=kt[dn[Mn]]);return tn};const St=kt=>{let Xt=[];return Object.keys(kt).forEach(tn=>{const dn=parseFloat(tn.replace(/%/g,""));isNaN(dn)||Xt.push({key:dn,value:kt[tn]})}),Xt=Xt.sort((tn,dn)=>tn.key-dn.key),Xt.map(tn=>{let{key:dn,value:Mn}=tn;return`${Mn} ${dn}%`}).join(", ")},bt=(kt,Xt)=>{const{from:tn=Je.presetPrimaryColors.blue,to:dn=Je.presetPrimaryColors.blue,direction:Mn=Xt==="rtl"?"to left":"to right"}=kt,Rn=zt(kt,["from","to","direction"]);if(Object.keys(Rn).length!==0){const ir=St(Rn);return{backgroundImage:`linear-gradient(${Mn}, ${ir})`}}return{backgroundImage:`linear-gradient(${Mn}, ${tn}, ${dn})`}};var nt=kt=>{const{prefixCls:Xt,direction:tn,percent:dn,size:Mn,strokeWidth:Rn,strokeColor:ir,strokeLinecap:qn="round",children:Cr,trailColor:er=null,success:Fr}=kt,jr=ir&&typeof ir!="string"?bt(ir,tn):{backgroundColor:ir},fi=qn==="square"||qn==="butt"?0:void 0,Si={backgroundColor:er||void 0,borderRadius:fi},tr=Mn!=null?Mn:[-1,Rn||(Mn==="small"?6:8)],[gr,Qn]=pt(tr,"line",{strokeWidth:Rn}),it=Object.assign({width:`${ot(dn)}%`,height:Qn,borderRadius:fi},jr),Ur=ft(kt),Rr={width:`${ot(Ur)}%`,height:Qn,borderRadius:fi,backgroundColor:Fr==null?void 0:Fr.strokeColor},di={width:gr<0?"100%":gr,height:Qn};return tt.createElement(tt.Fragment,null,tt.createElement("div",{className:`${Xt}-outer`,style:di},tt.createElement("div",{className:`${Xt}-inner`,style:Si},tt.createElement("div",{className:`${Xt}-bg`,style:it}),Ur!==void 0?tt.createElement("div",{className:`${Xt}-success-bg`,style:Rr}):null)),Cr)},Te=kt=>{const{size:Xt,steps:tn,percent:dn=0,strokeWidth:Mn=8,strokeColor:Rn,trailColor:ir=null,prefixCls:qn,children:Cr}=kt,er=Math.round(tn*(dn/100)),Fr=Xt==="small"?2:14,jr=Xt!=null?Xt:[Fr,Mn],[fi,Si]=pt(jr,"step",{steps:tn,strokeWidth:Mn}),tr=fi/tn,gr=new Array(tn);for(let Qn=0;Qn<tn;Qn++){const it=Array.isArray(Rn)?Rn[Qn]:Rn;gr[Qn]=tt.createElement("div",{key:Qn,className:ce()(`${qn}-steps-item`,{[`${qn}-steps-item-active`]:Qn<=er-1}),style:{backgroundColor:Qn<=er-1?it:ir,width:tr,height:Si}})}return tt.createElement("div",{className:`${qn}-steps-outer`},gr,Cr)},Ve=Ke(88252),Ze=Ke(17313),Ee=Ke(83116),Ge=Ke(37613);const He=kt=>{const Xt=kt?"100%":"-100%";return new Ve.Keyframes(`antProgress${kt?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Xt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Xt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},We=kt=>{const{componentCls:Xt,iconCls:tn}=kt;return{[Xt]:Object.assign(Object.assign({},(0,Ze.Wf)(kt)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:kt.fontSize,marginInlineEnd:kt.marginXS,marginBottom:kt.marginXS},[`${Xt}-outer`]:{display:"inline-block",width:"100%"},[`&${Xt}-show-info`]:{[`${Xt}-outer`]:{marginInlineEnd:`calc(-2em - ${kt.marginXS}px)`,paddingInlineEnd:`calc(2em + ${kt.paddingXS}px)`}},[`${Xt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:kt.remainingColor,borderRadius:kt.lineBorderRadius},[`${Xt}-inner:not(${Xt}-circle-gradient)`]:{[`${Xt}-circle-path`]:{stroke:kt.defaultColor}},[`${Xt}-success-bg, ${Xt}-bg`]:{position:"relative",backgroundColor:kt.defaultColor,borderRadius:kt.lineBorderRadius,transition:`all ${kt.motionDurationSlow} ${kt.motionEaseInOutCirc}`},[`${Xt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:kt.colorSuccess},[`${Xt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:kt.marginXS,color:kt.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[tn]:{fontSize:kt.fontSize}},[`&${Xt}-status-active`]:{[`${Xt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:kt.colorBgContainer,borderRadius:kt.lineBorderRadius,opacity:0,animationName:He(),animationDuration:kt.progressActiveMotionDuration,animationTimingFunction:kt.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Xt}-rtl${Xt}-status-active`]:{[`${Xt}-bg::before`]:{animationName:He(!0)}},[`&${Xt}-status-exception`]:{[`${Xt}-bg`]:{backgroundColor:kt.colorError},[`${Xt}-text`]:{color:kt.colorError}},[`&${Xt}-status-exception ${Xt}-inner:not(${Xt}-circle-gradient)`]:{[`${Xt}-circle-path`]:{stroke:kt.colorError}},[`&${Xt}-status-success`]:{[`${Xt}-bg`]:{backgroundColor:kt.colorSuccess},[`${Xt}-text`]:{color:kt.colorSuccess}},[`&${Xt}-status-success ${Xt}-inner:not(${Xt}-circle-gradient)`]:{[`${Xt}-circle-path`]:{stroke:kt.colorSuccess}}})}},Xe=kt=>{const{componentCls:Xt,iconCls:tn}=kt;return{[Xt]:{[`${Xt}-circle-trail`]:{stroke:kt.remainingColor},[`&${Xt}-circle ${Xt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Xt}-circle ${Xt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:kt.circleTextColor,fontSize:kt.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[tn]:{fontSize:`${kt.fontSize/kt.fontSizeSM}em`}},[`${Xt}-circle&-status-exception`]:{[`${Xt}-text`]:{color:kt.colorError}},[`${Xt}-circle&-status-success`]:{[`${Xt}-text`]:{color:kt.colorSuccess}}},[`${Xt}-inline-circle`]:{lineHeight:1,[`${Xt}-inner`]:{verticalAlign:"bottom"}}}},ct=kt=>{const{componentCls:Xt}=kt;return{[Xt]:{[`${Xt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:kt.progressStepMinWidth,marginInlineEnd:kt.progressStepMarginInlineEnd,backgroundColor:kt.remainingColor,transition:`all ${kt.motionDurationSlow}`,"&-active":{backgroundColor:kt.defaultColor}}}}}},Et=kt=>{const{componentCls:Xt,iconCls:tn}=kt;return{[Xt]:{[`${Xt}-small&-line, ${Xt}-small&-line ${Xt}-text ${tn}`]:{fontSize:kt.fontSizeSM}}}};var ht=(0,Ee.Z)("Progress",kt=>{const Xt=kt.marginXXS/2,tn=(0,Ge.TS)(kt,{progressStepMarginInlineEnd:Xt,progressStepMinWidth:Xt,progressActiveMotionDuration:"2.4s"});return[We(tn),Xe(tn),ct(tn),Et(tn)]},kt=>({circleTextColor:kt.colorText,defaultColor:kt.colorInfo,remainingColor:kt.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),It=function(kt,Xt){var tn={};for(var dn in kt)Object.prototype.hasOwnProperty.call(kt,dn)&&Xt.indexOf(dn)<0&&(tn[dn]=kt[dn]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mn=0,dn=Object.getOwnPropertySymbols(kt);Mn<dn.length;Mn++)Xt.indexOf(dn[Mn])<0&&Object.prototype.propertyIsEnumerable.call(kt,dn[Mn])&&(tn[dn[Mn]]=kt[dn[Mn]]);return tn};const qt=null,$t=["normal","exception","active","success"];var Ut=tt.forwardRef((kt,Xt)=>{const{prefixCls:tn,className:dn,rootClassName:Mn,steps:Rn,strokeColor:ir,percent:qn=0,size:Cr="default",showInfo:er=!0,type:Fr="line",status:jr,format:fi,style:Si}=kt,tr=It(kt,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),gr=tt.useMemo(()=>{var jt,Pn;const Cn=ft(kt);return parseInt(Cn!==void 0?(jt=Cn!=null?Cn:0)===null||jt===void 0?void 0:jt.toString():(Pn=qn!=null?qn:0)===null||Pn===void 0?void 0:Pn.toString(),10)},[qn,kt.success,kt.successPercent]),Qn=tt.useMemo(()=>!$t.includes(jr)&&gr>=100?"success":jr||"normal",[jr,gr]),{getPrefixCls:it,direction:Ur,progress:Rr}=tt.useContext(Le.E_),di=it("progress",tn),[Vr,Br]=ht(di),Xr=tt.useMemo(()=>{if(!er)return null;const jt=ft(kt);let Pn;const Cn=fi||(Dt=>`${Dt}%`),Kt=Fr==="line";return fi||Qn!=="exception"&&Qn!=="success"?Pn=Cn(ot(qn),ot(jt)):Qn==="exception"?Pn=Kt?tt.createElement(Ue.Z,null):tt.createElement(Fe.Z,null):Qn==="success"&&(Pn=Kt?tt.createElement(Pt.Z,null):tt.createElement(oe.Z,null)),tt.createElement("span",{className:`${di}-text`,title:typeof Pn=="string"?Pn:void 0},Pn)},[er,qn,gr,Qn,Fr,di,fi]),hr=Array.isArray(ir)?ir[0]:ir,un=typeof ir=="string"||Array.isArray(ir)?ir:void 0;let on;Fr==="line"?on=Rn?tt.createElement(Te,Object.assign({},kt,{strokeColor:un,prefixCls:di,steps:Rn}),Xr):tt.createElement(nt,Object.assign({},kt,{strokeColor:hr,prefixCls:di,direction:Ur}),Xr):(Fr==="circle"||Fr==="dashboard")&&(on=tt.createElement(Ct,Object.assign({},kt,{strokeColor:hr,prefixCls:di,progressStatus:Qn}),Xr));const Jt=ce()(di,`${di}-status-${Qn}`,`${di}-${Fr==="dashboard"&&"circle"||Rn&&"steps"||Fr}`,{[`${di}-inline-circle`]:Fr==="circle"&&pt(Cr,"circle")[0]<=20,[`${di}-show-info`]:er,[`${di}-${Cr}`]:typeof Cr=="string",[`${di}-rtl`]:Ur==="rtl"},Rr==null?void 0:Rr.className,dn,Mn,Br);return Vr(tt.createElement("div",Object.assign({ref:Xt,style:Object.assign(Object.assign({},Rr==null?void 0:Rr.style),Si),className:Jt,role:"progressbar","aria-valuenow":gr},(0,be.Z)(tr,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),on))}),ln=Ut},68610:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return ot}});var tt=Ke(5891),Pt=Ke(59301),oe={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"},Ue=oe,Fe=Ke(31533),me=function(xt,yt){return Pt.createElement(Fe.Z,(0,tt.Z)({},xt,{ref:yt,icon:Ue}))},ce=Pt.forwardRef(me),be=ce,Le=Ke(92310),Se=Ke.n(Le),ke=Ke(80962),ve=Ke(29043),xe=Ke(19149),fe=Ke(35788),z=Ke(85108),ee=Ke(36994);function ae(ft,xt){var yt=ft.disabled,pt=ft.prefixCls,gt=ft.character,mt=ft.characterRender,Mt=ft.index,Ct=ft.count,zt=ft.value,St=ft.allowHalf,bt=ft.focused,at=ft.onHover,nt=ft.onClick,we=function(Xe){at(Xe,Mt)},Te=function(Xe){nt(Xe,Mt)},Ve=function(Xe){Xe.keyCode===z.Z.ENTER&&nt(Xe,Mt)},Ze=Mt+1,Ee=new Set([pt]);zt===0&&Mt===0&&bt?Ee.add("".concat(pt,"-focused")):St&&zt+.5>=Ze&&zt<Ze?(Ee.add("".concat(pt,"-half")),Ee.add("".concat(pt,"-active")),bt&&Ee.add("".concat(pt,"-focused"))):(Ze<=zt?Ee.add("".concat(pt,"-full")):Ee.add("".concat(pt,"-zero")),Ze===zt&&bt&&Ee.add("".concat(pt,"-focused")));var Ge=typeof gt=="function"?gt(ft):gt,He=Pt.createElement("li",{className:Se()(Array.from(Ee)),ref:xt},Pt.createElement("div",{onClick:yt?null:Te,onKeyDown:yt?null:Ve,onMouseMove:yt?null:we,role:"radio","aria-checked":zt>Mt?"true":"false","aria-posinset":Mt+1,"aria-setsize":Ct,tabIndex:yt?-1:0},Pt.createElement("div",{className:"".concat(pt,"-first")},Ge),Pt.createElement("div",{className:"".concat(pt,"-second")},Ge)));return mt&&(He=mt(He,ft)),He}var re=Pt.forwardRef(ae);function le(){var ft=Pt.useRef({});function xt(pt){return ft.current[pt]}function yt(pt){return function(gt){ft.current[pt]=gt}}return[xt,yt]}function ue(ft){var xt=ft.pageXOffset,yt="scrollLeft";if(typeof xt!="number"){var pt=ft.document;xt=pt.documentElement[yt],typeof xt!="number"&&(xt=pt.body[yt])}return xt}function pe(ft){var xt,yt,pt=ft.ownerDocument,gt=pt.body,mt=pt&&pt.documentElement,Mt=ft.getBoundingClientRect();return xt=Mt.left,yt=Mt.top,xt-=mt.clientLeft||gt.clientLeft||0,yt-=mt.clientTop||gt.clientTop||0,{left:xt,top:yt}}function Ce(ft){var xt=pe(ft),yt=ft.ownerDocument,pt=yt.defaultView||yt.parentWindow;return xt.left+=ue(pt),xt.left}var Pe=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ie(ft,xt){var yt,pt=ft.prefixCls,gt=pt===void 0?"rc-rate":pt,mt=ft.className,Mt=ft.defaultValue,Ct=ft.value,zt=ft.count,St=zt===void 0?5:zt,bt=ft.allowHalf,at=bt===void 0?!1:bt,nt=ft.allowClear,we=nt===void 0?!0:nt,Te=ft.character,Ve=Te===void 0?"\u2605":Te,Ze=ft.characterRender,Ee=ft.disabled,Ge=ft.direction,He=Ge===void 0?"ltr":Ge,We=ft.tabIndex,Xe=We===void 0?0:We,ct=ft.autoFocus,Et=ft.onHoverChange,ht=ft.onChange,It=ft.onFocus,qt=ft.onBlur,$t=ft.onKeyDown,Wt=ft.onMouseLeave,Ut=(0,xe.Z)(ft,Pe),ln=le(),kt=(0,ve.Z)(ln,2),Xt=kt[0],tn=kt[1],dn=Pt.useRef(null),Mn=function(){if(!Ee){var Dt;(Dt=dn.current)===null||Dt===void 0||Dt.focus()}};Pt.useImperativeHandle(xt,function(){return{focus:Mn,blur:function(){if(!Ee){var Dt;(Dt=dn.current)===null||Dt===void 0||Dt.blur()}}}});var Rn=(0,fe.Z)(Mt||0,{value:Ct}),ir=(0,ve.Z)(Rn,2),qn=ir[0],Cr=ir[1],er=(0,fe.Z)(null),Fr=(0,ve.Z)(er,2),jr=Fr[0],fi=Fr[1],Si=function(Dt,pn){var yn=He==="rtl",Jn=Dt+1;if(at){var bn=Xt(Dt),Zt=Ce(bn),jn=bn.clientWidth;(yn&&pn-Zt>jn/2||!yn&&pn-Zt<jn/2)&&(Jn-=.5)}return Jn},tr=function(Dt){Cr(Dt),ht==null||ht(Dt)},gr=Pt.useState(!1),Qn=(0,ve.Z)(gr,2),it=Qn[0],Ur=Qn[1],Rr=function(){Ur(!0),It==null||It()},di=function(){Ur(!1),qt==null||qt()},Vr=Pt.useState(null),Br=(0,ve.Z)(Vr,2),Xr=Br[0],hr=Br[1],un=function(Dt,pn){var yn=Si(pn,Dt.pageX);yn!==jr&&(hr(yn),fi(null)),Et==null||Et(yn)},on=function(Dt){Ee||(hr(null),fi(null),Et==null||Et(void 0)),Dt&&(Wt==null||Wt(Dt))},Jt=function(Dt,pn){var yn=Si(pn,Dt.pageX),Jn=!1;we&&(Jn=yn===qn),on(),tr(Jn?0:yn),fi(Jn?yn:null)},jt=function(Dt){var pn=Dt.keyCode,yn=He==="rtl",Jn=qn;pn===z.Z.RIGHT&&Jn<St&&!yn?(at?Jn+=.5:Jn+=1,tr(Jn),Dt.preventDefault()):pn===z.Z.LEFT&&Jn>0&&!yn||pn===z.Z.RIGHT&&Jn>0&&yn?(at?Jn-=.5:Jn-=1,tr(Jn),Dt.preventDefault()):pn===z.Z.LEFT&&Jn<St&&yn&&(at?Jn+=.5:Jn+=1,tr(Jn),Dt.preventDefault()),$t==null||$t(Dt)};Pt.useEffect(function(){ct&&!Ee&&Mn()},[]);var Pn=new Array(St).fill(0).map(function(Kt,Dt){return Pt.createElement(re,{ref:tn(Dt),index:Dt,count:St,disabled:Ee,prefixCls:"".concat(gt,"-star"),allowHalf:at,value:Xr===null?qn:Xr,onClick:Jt,onHover:un,key:Kt||Dt,character:Ve,characterRender:Ze,focused:it})}),Cn=Se()(gt,mt,(yt={},(0,ke.Z)(yt,"".concat(gt,"-disabled"),Ee),(0,ke.Z)(yt,"".concat(gt,"-rtl"),He==="rtl"),yt));return Pt.createElement("ul",(0,tt.Z)({className:Cn,onMouseLeave:on,tabIndex:Ee?-1:Xe,onFocus:Ee?null:Rr,onBlur:Ee?null:di,onKeyDown:Ee?null:jt,ref:dn,role:"radiogroup"},(0,ee.Z)(Ut,{aria:!0,data:!0,attr:!0})),Pn)}var Oe=Pt.forwardRef(Ie),Ae=Oe,je=Ke(36355),Be=Ke(6848),_e=Ke(17313),qe=Ke(83116),ze=Ke(37613);const Ye=ft=>{const{componentCls:xt}=ft;return{[`${xt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:ft.marginXS},"> div":{transition:`all ${ft.motionDurationMid}, outline 0s`,"&:hover":{transform:ft.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${ft.lineWidth}px dashed ${ft.starColor}`,transform:ft.starHoverScale}},"&-first, &-second":{color:ft.starBg,transition:`all ${ft.motionDurationMid}`,userSelect:"none",[ft.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${xt}-star-first, &-half ${xt}-star-second`]:{opacity:1},[`&-half ${xt}-star-first, &-full ${xt}-star-second`]:{color:"inherit"}}}},et=ft=>({[`&-rtl${ft.componentCls}`]:{direction:"rtl"}}),lt=ft=>{const{componentCls:xt}=ft;return{[xt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,_e.Wf)(ft)),{display:"inline-block",margin:0,padding:0,color:ft.starColor,fontSize:ft.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${xt} ${xt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ye(ft)),{[`+ ${xt}-text`]:{display:"inline-block",marginInlineStart:ft.marginXS,fontSize:ft.fontSize}}),et(ft))}};var dt=(0,qe.Z)("Rate",ft=>{const xt=(0,ze.TS)(ft,{});return[lt(xt)]},ft=>({starColor:ft.yellow6,starSize:ft.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:ft.colorFillContent})),vt=function(ft,xt){var yt={};for(var pt in ft)Object.prototype.hasOwnProperty.call(ft,pt)&&xt.indexOf(pt)<0&&(yt[pt]=ft[pt]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,pt=Object.getOwnPropertySymbols(ft);gt<pt.length;gt++)xt.indexOf(pt[gt])<0&&Object.prototype.propertyIsEnumerable.call(ft,pt[gt])&&(yt[pt[gt]]=ft[pt[gt]]);return yt},ot=Pt.forwardRef((ft,xt)=>{const{prefixCls:yt,className:pt,rootClassName:gt,style:mt,tooltips:Mt,character:Ct=Pt.createElement(be,null)}=ft,zt=vt(ft,["prefixCls","className","rootClassName","style","tooltips","character"]),St=(Ee,Ge)=>{let{index:He}=Ge;return Mt?Pt.createElement(Be.Z,{title:Mt[He]},Ee):Ee},{getPrefixCls:bt,direction:at,rate:nt}=Pt.useContext(je.E_),we=bt("rate",yt),[Te,Ve]=dt(we),Ze=Object.assign(Object.assign({},nt==null?void 0:nt.style),mt);return Te(Pt.createElement(Ae,Object.assign({ref:xt,character:Ct,characterRender:St},zt,{className:Se()(pt,gt,Ve,nt==null?void 0:nt.className),style:Ze,prefixCls:we,direction:at})))})},57809:function(Gn,vn,Ke){"use strict";var tt=Ke(92310),Pt=Ke.n(tt),oe=Ke(77861),Ue=Ke(64002),Fe=Ke(59301),me=Ke(53487),ce=Ke(62892),be=Ke(19080),Le=Ke(36355),Se=Ke(1684),ke=Ke(93891),ve=Ke(19716),xe=Ke(32441),fe=Ke(33234),z=Ke(14154),ee=Ke(58582),ae=Ke(84443),re=Ke(66339),le=function(Ie,Oe){var Ae={};for(var je in Ie)Object.prototype.hasOwnProperty.call(Ie,je)&&Oe.indexOf(je)<0&&(Ae[je]=Ie[je]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,je=Object.getOwnPropertySymbols(Ie);Be<je.length;Be++)Oe.indexOf(je[Be])<0&&Object.prototype.propertyIsEnumerable.call(Ie,je[Be])&&(Ae[je[Be]]=Ie[je[Be]]);return Ae};const ue="SECRET_COMBOBOX_MODE_DO_NOT_USE",pe=(Ie,Oe)=>{var Ae,{prefixCls:je,bordered:Be=!0,className:_e,rootClassName:qe,getPopupContainer:ze,popupClassName:Ye,dropdownClassName:et,listHeight:lt=256,placement:dt,listItemHeight:vt=24,size:Je,disabled:ot,notFoundContent:ft,status:xt,builtinPlacements:yt,dropdownMatchSelectWidth:pt,popupMatchSelectWidth:gt,direction:mt,style:Mt,allowClear:Ct}=Ie,zt=le(Ie,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:St,getPrefixCls:bt,renderEmpty:at,direction:nt,virtual:we,popupMatchSelectWidth:Te,popupOverflow:Ve,select:Ze}=Fe.useContext(Le.E_),Ee=bt("select",je),Ge=bt(),He=mt!=null?mt:nt,{compactSize:We,compactItemClassnames:Xe}=(0,fe.ri)(Ee,He),[ct,Et]=(0,z.Z)(Ee),ht=Fe.useMemo(()=>{const{mode:Qn}=zt;if(Qn!=="combobox")return Qn===ue?"combobox":Qn},[zt.mode]),It=ht==="multiple"||ht==="tags",qt=(0,ae.Z)(zt.suffixIcon,zt.showArrow),$t=(Ae=gt!=null?gt:pt)!==null&&Ae!==void 0?Ae:Te,{status:Wt,hasFeedback:Ut,isFormItemInput:ln,feedbackIcon:kt}=Fe.useContext(xe.aM),Xt=(0,be.F)(Wt,xt);let tn;ft!==void 0?tn=ft:ht==="combobox"?tn=null:tn=(at==null?void 0:at("Select"))||Fe.createElement(ke.Z,{componentName:"Select"});const{suffixIcon:dn,itemIcon:Mn,removeIcon:Rn,clearIcon:ir}=(0,re.Z)(Object.assign(Object.assign({},zt),{multiple:It,hasFeedback:Ut,feedbackIcon:kt,showSuffixIcon:qt,prefixCls:Ee,showArrow:zt.showArrow,componentName:"Select"})),qn=Ct===!0?{clearIcon:ir}:Ct,Cr=(0,Ue.Z)(zt,["suffixIcon","itemIcon"]),er=Pt()(Ye||et,{[`${Ee}-dropdown-${He}`]:He==="rtl"},qe,Et),Fr=(0,ve.Z)(Qn=>{var it;return(it=Je!=null?Je:We)!==null&&it!==void 0?it:Qn}),jr=Fe.useContext(Se.Z),fi=ot!=null?ot:jr,Si=Pt()({[`${Ee}-lg`]:Fr==="large",[`${Ee}-sm`]:Fr==="small",[`${Ee}-rtl`]:He==="rtl",[`${Ee}-borderless`]:!Be,[`${Ee}-in-form-item`]:ln},(0,be.Z)(Ee,Xt,Ut),Xe,Ze==null?void 0:Ze.className,_e,qe,Et),tr=Fe.useMemo(()=>dt!==void 0?dt:He==="rtl"?"bottomRight":"bottomLeft",[dt,He]),gr=(0,ee.Z)(yt,Ve);return ct(Fe.createElement(oe.ZP,Object.assign({ref:Oe,virtual:we,showSearch:Ze==null?void 0:Ze.showSearch},Cr,{style:Object.assign(Object.assign({},Ze==null?void 0:Ze.style),Mt),dropdownMatchSelectWidth:$t,builtinPlacements:gr,transitionName:(0,ce.m)(Ge,"slide-up",zt.transitionName),listHeight:lt,listItemHeight:vt,mode:ht,prefixCls:Ee,placement:tr,direction:He,suffixIcon:dn,menuItemSelectedIcon:Mn,removeIcon:Rn,allowClear:qn,notFoundContent:tn,className:Si,getPopupContainer:ze||St,dropdownClassName:er,disabled:fi})))},Ce=Fe.forwardRef(pe),Pe=(0,me.Z)(Ce);Ce.SECRET_COMBOBOX_MODE_DO_NOT_USE=ue,Ce.Option=oe.Wx,Ce.OptGroup=oe.Xo,Ce._InternalPanelDoNotUseOrYouWillBeFired=Pe,vn.default=Ce},14154:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return Ce}});var tt=Ke(17313),Pt=Ke(74207),oe=Ke(37613),Ue=Ke(83116),Fe=Ke(13826),me=Ke(92899);const ce=Pe=>{const{optionHeight:Ie,optionFontSize:Oe,optionLineHeight:Ae,optionPadding:je}=Pe;return{position:"relative",display:"block",minHeight:Ie,padding:je,color:Pe.colorText,fontWeight:"normal",fontSize:Oe,lineHeight:Ae,boxSizing:"border-box"}};var Le=Pe=>{const{antCls:Ie,componentCls:Oe}=Pe,Ae=`${Oe}-item`,je=`&${Ie}-slide-up-enter${Ie}-slide-up-enter-active`,Be=`&${Ie}-slide-up-appear${Ie}-slide-up-appear-active`,_e=`&${Ie}-slide-up-leave${Ie}-slide-up-leave-active`,qe=`${Oe}-dropdown-placement-`;return[{[`${Oe}-dropdown`]:Object.assign(Object.assign({},(0,tt.Wf)(Pe)),{position:"absolute",top:-9999,zIndex:Pe.zIndexPopup,boxSizing:"border-box",padding:Pe.paddingXXS,overflow:"hidden",fontSize:Pe.fontSize,fontVariant:"initial",backgroundColor:Pe.colorBgElevated,borderRadius:Pe.borderRadiusLG,outline:"none",boxShadow:Pe.boxShadowSecondary,[`
|
|
|
${je}${qe}bottomLeft,
|
|
|
${Be}${qe}bottomLeft
|
|
|
`]:{animationName:Fe.fJ},[`
|
|
|
${je}${qe}topLeft,
|
|
|
${Be}${qe}topLeft,
|
|
|
${je}${qe}topRight,
|
|
|
${Be}${qe}topRight
|
|
|
`]:{animationName:Fe.Qt},[`${_e}${qe}bottomLeft`]:{animationName:Fe.Uw},[`
|
|
|
${_e}${qe}topLeft,
|
|
|
${_e}${qe}topRight
|
|
|
`]:{animationName:Fe.ly},"&-hidden":{display:"none"},[`${Ae}`]:Object.assign(Object.assign({},ce(Pe)),{cursor:"pointer",transition:`background ${Pe.motionDurationSlow} ease`,borderRadius:Pe.borderRadiusSM,"&-group":{color:Pe.colorTextDescription,fontSize:Pe.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},tt.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ae}-option-disabled)`]:{backgroundColor:Pe.optionActiveBg},[`&-selected:not(${Ae}-option-disabled)`]:{color:Pe.optionSelectedColor,fontWeight:Pe.optionSelectedFontWeight,backgroundColor:Pe.optionSelectedBg,[`${Ae}-option-state`]:{color:Pe.colorPrimary}},"&-disabled":{[`&${Ae}-option-selected`]:{backgroundColor:Pe.colorBgContainerDisabled},color:Pe.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Pe.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,Fe.oN)(Pe,"slide-up"),(0,Fe.oN)(Pe,"slide-down"),(0,me.Fm)(Pe,"move-up"),(0,me.Fm)(Pe,"move-down")]};const Se=2,ke=Pe=>{let{controlHeightSM:Ie,controlHeight:Oe,lineWidth:Ae}=Pe;const je=(Oe-Ie)/2-Ae,Be=Math.ceil(je/2);return[je,Be]};function ve(Pe,Ie){const{componentCls:Oe,iconCls:Ae}=Pe,je=`${Oe}-selection-overflow`,Be=Pe.multipleSelectItemHeight,[_e]=ke(Pe),qe=Ie?`${Oe}-${Ie}`:"";return{[`${Oe}-multiple${qe}`]:{fontSize:Pe.fontSize,[je]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Oe}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${_e-Se}px ${Se*2}px`,borderRadius:Pe.borderRadius,[`${Oe}-show-search&`]:{cursor:"text"},[`${Oe}-disabled&`]:{background:Pe.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Se}px 0`,lineHeight:`${Be}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${Oe}-show-arrow ${Oe}-selector,
|
|
|
&${Oe}-allow-clear ${Oe}-selector
|
|
|
`]:{paddingInlineEnd:Pe.fontSizeIcon+Pe.controlPaddingHorizontal},[`${Oe}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Be,marginTop:Se,marginBottom:Se,lineHeight:`${Be-Pe.lineWidth*2}px`,background:Pe.multipleItemBg,border:`${Pe.lineWidth}px ${Pe.lineType} ${Pe.multipleItemBorderColor}`,borderRadius:Pe.borderRadiusSM,cursor:"default",transition:`font-size ${Pe.motionDurationSlow}, line-height ${Pe.motionDurationSlow}, height ${Pe.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Se*2,paddingInlineStart:Pe.paddingXS,paddingInlineEnd:Pe.paddingXS/2,[`${Oe}-disabled&`]:{color:Pe.multipleItemColorDisabled,borderColor:Pe.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Pe.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,tt.Ro)()),{display:"inline-flex",alignItems:"center",color:Pe.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ae}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Pe.colorIconHover}})},[`${je}-item + ${je}-item`]:{[`${Oe}-selection-search`]:{marginInlineStart:0}},[`${Oe}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Pe.inputPaddingHorizontalBase-_e,"\n &-input,\n &-mirror\n ":{height:Be,fontFamily:Pe.fontFamily,lineHeight:`${Be}px`,transition:`all ${Pe.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Oe}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Pe.inputPaddingHorizontalBase,insetInlineEnd:Pe.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Pe.motionDurationSlow}`}}}}var fe=Pe=>{const{componentCls:Ie}=Pe,Oe=(0,oe.TS)(Pe,{controlHeight:Pe.controlHeightSM,multipleSelectItemHeight:Pe.controlHeightXS,borderRadius:Pe.borderRadiusSM,borderRadiusSM:Pe.borderRadiusXS}),Ae=(0,oe.TS)(Pe,{fontSize:Pe.fontSizeLG,controlHeight:Pe.controlHeightLG,multipleSelectItemHeight:Pe.multipleItemHeightLG,borderRadius:Pe.borderRadiusLG,borderRadiusSM:Pe.borderRadius}),[,je]=ke(Pe);return[ve(Pe),ve(Oe,"sm"),{[`${Ie}-multiple${Ie}-sm`]:{[`${Ie}-selection-placeholder`]:{insetInline:Pe.controlPaddingHorizontalSM-Pe.lineWidth},[`${Ie}-selection-search`]:{marginInlineStart:je}}},ve(Ae,"lg")]};function z(Pe,Ie){const{componentCls:Oe,inputPaddingHorizontalBase:Ae,borderRadius:je}=Pe,Be=Pe.controlHeight-Pe.lineWidth*2,_e=Math.ceil(Pe.fontSize*1.25),qe=Ie?`${Oe}-${Ie}`:"";return{[`${Oe}-single${qe}`]:{fontSize:Pe.fontSize,[`${Oe}-selector`]:Object.assign(Object.assign({},(0,tt.Wf)(Pe)),{display:"flex",borderRadius:je,[`${Oe}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Ae,insetInlineEnd:Ae,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${Oe}-selection-item,
|
|
|
${Oe}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Be}px`,transition:`all ${Pe.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Be}px`}},[`${Oe}-selection-item`]:{position:"relative",userSelect:"none"},[`${Oe}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Oe}-selection-item:after`,`${Oe}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Oe}-show-arrow ${Oe}-selection-item,
|
|
|
&${Oe}-show-arrow ${Oe}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:_e},[`&${Oe}-open ${Oe}-selection-item`]:{color:Pe.colorTextPlaceholder},[`&:not(${Oe}-customize-input)`]:{[`${Oe}-selector`]:{width:"100%",height:Pe.controlHeight,padding:`0 ${Ae}px`,[`${Oe}-selection-search-input`]:{height:Be},"&:after":{lineHeight:`${Be}px`}}},[`&${Oe}-customize-input`]:{[`${Oe}-selector`]:{"&:after":{display:"none"},[`${Oe}-selection-search`]:{position:"static",width:"100%"},[`${Oe}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Ae}px`,"&:after":{display:"none"}}}}}}}function ee(Pe){const{componentCls:Ie}=Pe,Oe=Pe.controlPaddingHorizontalSM-Pe.lineWidth;return[z(Pe),z((0,oe.TS)(Pe,{controlHeight:Pe.controlHeightSM,borderRadius:Pe.borderRadiusSM}),"sm"),{[`${Ie}-single${Ie}-sm`]:{[`&:not(${Ie}-customize-input)`]:{[`${Ie}-selection-search`]:{insetInlineStart:Oe,insetInlineEnd:Oe},[`${Ie}-selector`]:{padding:`0 ${Oe}px`},[`&${Ie}-show-arrow ${Ie}-selection-search`]:{insetInlineEnd:Oe+Pe.fontSize*1.5},[`
|
|
|
&${Ie}-show-arrow ${Ie}-selection-item,
|
|
|
&${Ie}-show-arrow ${Ie}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Pe.fontSize*1.5}}}},z((0,oe.TS)(Pe,{controlHeight:Pe.singleItemHeightLG,fontSize:Pe.fontSizeLG,borderRadius:Pe.borderRadiusLG}),"lg")]}const ae=Pe=>{const{componentCls:Ie,selectorBg:Oe}=Pe;return{position:"relative",backgroundColor:Oe,border:`${Pe.lineWidth}px ${Pe.lineType} ${Pe.colorBorder}`,transition:`all ${Pe.motionDurationMid} ${Pe.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ie}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ie}-disabled&`]:{color:Pe.colorTextDisabled,background:Pe.colorBgContainerDisabled,cursor:"not-allowed",[`${Ie}-multiple&`]:{background:Pe.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},re=function(Pe,Ie){let Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Ae,borderHoverColor:je,outlineColor:Be,antCls:_e}=Ie,qe=Oe?{[`${Ae}-selector`]:{borderColor:je}}:{};return{[Pe]:{[`&:not(${Ae}-disabled):not(${Ae}-customize-input):not(${_e}-pagination-size-changer)`]:Object.assign(Object.assign({},qe),{[`${Ae}-focused& ${Ae}-selector`]:{borderColor:je,boxShadow:`0 0 0 ${Ie.controlOutlineWidth}px ${Be}`,outline:0},[`&:hover ${Ae}-selector`]:{borderColor:je}})}}},le=Pe=>{const{componentCls:Ie}=Pe;return{[`${Ie}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ue=Pe=>{const{componentCls:Ie,inputPaddingHorizontalBase:Oe,iconCls:Ae}=Pe;return{[Ie]:Object.assign(Object.assign({},(0,tt.Wf)(Pe)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ie}-customize-input) ${Ie}-selector`]:Object.assign(Object.assign({},ae(Pe)),le(Pe)),[`${Ie}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},tt.vS),[`${Ie}-selection-placeholder`]:Object.assign(Object.assign({},tt.vS),{flex:1,color:Pe.colorTextPlaceholder,pointerEvents:"none"}),[`${Ie}-arrow`]:Object.assign(Object.assign({},(0,tt.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Oe,height:Pe.fontSizeIcon,marginTop:-Pe.fontSizeIcon/2,color:Pe.colorTextQuaternary,fontSize:Pe.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Ae]:{verticalAlign:"top",transition:`transform ${Pe.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ie}-suffix)`]:{pointerEvents:"auto"}},[`${Ie}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ie}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Oe,zIndex:1,display:"inline-block",width:Pe.fontSizeIcon,height:Pe.fontSizeIcon,marginTop:-Pe.fontSizeIcon/2,color:Pe.colorTextQuaternary,fontSize:Pe.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Pe.clearBg,cursor:"pointer",opacity:0,transition:`color ${Pe.motionDurationMid} ease, opacity ${Pe.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Pe.colorTextTertiary}},"&:hover":{[`${Ie}-clear`]:{opacity:1}}}),[`${Ie}-has-feedback`]:{[`${Ie}-clear`]:{insetInlineEnd:Oe+Pe.fontSize+Pe.paddingXS}}}},pe=Pe=>{const{componentCls:Ie}=Pe;return[{[Ie]:{[`&-borderless ${Ie}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ie}-in-form-item`]:{width:"100%"}}},ue(Pe),ee(Pe),fe(Pe),Le(Pe),{[`${Ie}-rtl`]:{direction:"rtl"}},re(Ie,(0,oe.TS)(Pe,{borderHoverColor:Pe.colorPrimaryHover,outlineColor:Pe.controlOutline})),re(`${Ie}-status-error`,(0,oe.TS)(Pe,{borderHoverColor:Pe.colorErrorHover,outlineColor:Pe.colorErrorOutline}),!0),re(`${Ie}-status-warning`,(0,oe.TS)(Pe,{borderHoverColor:Pe.colorWarningHover,outlineColor:Pe.colorWarningOutline}),!0),(0,Pt.c)(Pe,{borderElCls:`${Ie}-selector`,focusElCls:`${Ie}-focused`})]};var Ce=(0,Ue.Z)("Select",(Pe,Ie)=>{let{rootPrefixCls:Oe}=Ie;const Ae=(0,oe.TS)(Pe,{rootPrefixCls:Oe,inputPaddingHorizontalBase:Pe.paddingSM-1,multipleSelectItemHeight:Pe.multipleItemHeight});return[pe(Ae)]},Pe=>{const{fontSize:Ie,lineHeight:Oe,controlHeight:Ae,controlPaddingHorizontal:je,zIndexPopupBase:Be,colorText:_e,fontWeightStrong:qe,controlItemBgActive:ze,controlItemBgHover:Ye,colorBgContainer:et,colorFillSecondary:lt,controlHeightLG:dt,controlHeightSM:vt,colorBgContainerDisabled:Je,colorTextDisabled:ot}=Pe;return{zIndexPopup:Be+50,optionSelectedColor:_e,optionSelectedFontWeight:qe,optionSelectedBg:ze,optionActiveBg:Ye,optionPadding:`${(Ae-Ie*Oe)/2}px ${je}px`,optionFontSize:Ie,optionLineHeight:Oe,optionHeight:Ae,selectorBg:et,clearBg:et,singleItemHeightLG:dt,multipleItemBg:lt,multipleItemBorderColor:"transparent",multipleItemHeight:vt,multipleItemHeightLG:Ae,multipleSelectorBgDisabled:Je,multipleItemColorDisabled:ot,multipleItemBorderColorDisabled:"transparent"}})},58582:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return Pt}});const tt=oe=>{const Fe={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:oe==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},Fe),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Fe),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Fe),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Fe),{points:["br","tr"],offset:[0,-4]})}};function Pt(oe,Ue){return oe||tt(Ue)}},84443:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return tt}});function tt(Pt,oe){return oe!==void 0?oe:Pt!==null}},66339:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return be}});var tt=Ke(89699),Pt=Ke(37637),oe=Ke(77318),Ue=Ke(76995),Fe=Ke(78714),me=Ke(56981),ce=Ke(59301);function be(Le){let{suffixIcon:Se,clearIcon:ke,menuItemSelectedIcon:ve,removeIcon:xe,loading:fe,multiple:z,hasFeedback:ee,prefixCls:ae,showSuffixIcon:re,feedbackIcon:le,showArrow:ue,componentName:pe}=Le;const Ce=ke!=null?ke:ce.createElement(Pt.Z,null),Pe=je=>Se===null&&!ee&&!ue?null:ce.createElement(ce.Fragment,null,re!==!1&&je,ee&&le);let Ie=null;if(Se!==void 0)Ie=Pe(Se);else if(fe)Ie=Pe(ce.createElement(Fe.Z,{spin:!0}));else{const je=`${ae}-suffix`;Ie=Be=>{let{open:_e,showSearch:qe}=Be;return Pe(_e&&qe?ce.createElement(me.Z,{className:je}):ce.createElement(Ue.Z,{className:je}))}}let Oe=null;ve!==void 0?Oe=ve:z?Oe=ce.createElement(tt.Z,null):Oe=null;let Ae=null;return xe!==void 0?Ae=xe:Ae=ce.createElement(oe.Z,null),{clearIcon:Ce,suffixIcon:Ie,itemIcon:Oe,removeIcon:Ae}}},69127:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return Ve}});var tt=Ke(92310),Pt=Ke.n(tt),oe=Ke(59301),Ue=Ke(36355),Fe=Ke(64002),ce=Ze=>{const{prefixCls:Ee,className:Ge,style:He,size:We,shape:Xe}=Ze,ct=Pt()({[`${Ee}-lg`]:We==="large",[`${Ee}-sm`]:We==="small"}),Et=Pt()({[`${Ee}-circle`]:Xe==="circle",[`${Ee}-square`]:Xe==="square",[`${Ee}-round`]:Xe==="round"}),ht=oe.useMemo(()=>typeof We=="number"?{width:We,height:We,lineHeight:`${We}px`}:{},[We]);return oe.createElement("span",{className:Pt()(Ee,ct,Et,Ge),style:Object.assign(Object.assign({},ht),He)})},be=Ke(88252),Le=Ke(83116),Se=Ke(37613);const ke=new be.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),ve=Ze=>({height:Ze,lineHeight:`${Ze}px`}),xe=Ze=>Object.assign({width:Ze},ve(Ze)),fe=Ze=>({background:Ze.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ke,animationDuration:Ze.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),z=Ze=>Object.assign({width:Ze*5,minWidth:Ze*5},ve(Ze)),ee=Ze=>{const{skeletonAvatarCls:Ee,gradientFromColor:Ge,controlHeight:He,controlHeightLG:We,controlHeightSM:Xe}=Ze;return{[`${Ee}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ge},xe(He)),[`${Ee}${Ee}-circle`]:{borderRadius:"50%"},[`${Ee}${Ee}-lg`]:Object.assign({},xe(We)),[`${Ee}${Ee}-sm`]:Object.assign({},xe(Xe))}},ae=Ze=>{const{controlHeight:Ee,borderRadiusSM:Ge,skeletonInputCls:He,controlHeightLG:We,controlHeightSM:Xe,gradientFromColor:ct}=Ze;return{[`${He}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ct,borderRadius:Ge},z(Ee)),[`${He}-lg`]:Object.assign({},z(We)),[`${He}-sm`]:Object.assign({},z(Xe))}},re=Ze=>Object.assign({width:Ze},ve(Ze)),le=Ze=>{const{skeletonImageCls:Ee,imageSizeBase:Ge,gradientFromColor:He,borderRadiusSM:We}=Ze;return{[`${Ee}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:He,borderRadius:We},re(Ge*2)),{[`${Ee}-path`]:{fill:"#bfbfbf"},[`${Ee}-svg`]:Object.assign(Object.assign({},re(Ge)),{maxWidth:Ge*4,maxHeight:Ge*4}),[`${Ee}-svg${Ee}-svg-circle`]:{borderRadius:"50%"}}),[`${Ee}${Ee}-circle`]:{borderRadius:"50%"}}},ue=(Ze,Ee,Ge)=>{const{skeletonButtonCls:He}=Ze;return{[`${Ge}${He}-circle`]:{width:Ee,minWidth:Ee,borderRadius:"50%"},[`${Ge}${He}-round`]:{borderRadius:Ee}}},pe=Ze=>Object.assign({width:Ze*2,minWidth:Ze*2},ve(Ze)),Ce=Ze=>{const{borderRadiusSM:Ee,skeletonButtonCls:Ge,controlHeight:He,controlHeightLG:We,controlHeightSM:Xe,gradientFromColor:ct}=Ze;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Ge}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ct,borderRadius:Ee,width:He*2,minWidth:He*2},pe(He))},ue(Ze,He,Ge)),{[`${Ge}-lg`]:Object.assign({},pe(We))}),ue(Ze,We,`${Ge}-lg`)),{[`${Ge}-sm`]:Object.assign({},pe(Xe))}),ue(Ze,Xe,`${Ge}-sm`))},Pe=Ze=>{const{componentCls:Ee,skeletonAvatarCls:Ge,skeletonTitleCls:He,skeletonParagraphCls:We,skeletonButtonCls:Xe,skeletonInputCls:ct,skeletonImageCls:Et,controlHeight:ht,controlHeightLG:It,controlHeightSM:qt,gradientFromColor:$t,padding:Wt,marginSM:Ut,borderRadius:ln,titleHeight:kt,blockRadius:Xt,paragraphLiHeight:tn,controlHeightXS:dn,paragraphMarginTop:Mn}=Ze;return{[`${Ee}`]:{display:"table",width:"100%",[`${Ee}-header`]:{display:"table-cell",paddingInlineEnd:Wt,verticalAlign:"top",[`${Ge}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:$t},xe(ht)),[`${Ge}-circle`]:{borderRadius:"50%"},[`${Ge}-lg`]:Object.assign({},xe(It)),[`${Ge}-sm`]:Object.assign({},xe(qt))},[`${Ee}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${He}`]:{width:"100%",height:kt,background:$t,borderRadius:Xt,[`+ ${We}`]:{marginBlockStart:qt}},[`${We}`]:{padding:0,"> li":{width:"100%",height:tn,listStyle:"none",background:$t,borderRadius:Xt,"+ li":{marginBlockStart:dn}}},[`${We}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Ee}-content`]:{[`${He}, ${We} > li`]:{borderRadius:ln}}},[`${Ee}-with-avatar ${Ee}-content`]:{[`${He}`]:{marginBlockStart:Ut,[`+ ${We}`]:{marginBlockStart:Mn}}},[`${Ee}${Ee}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Ce(Ze)),ee(Ze)),ae(Ze)),le(Ze)),[`${Ee}${Ee}-block`]:{width:"100%",[`${Xe}`]:{width:"100%"},[`${ct}`]:{width:"100%"}},[`${Ee}${Ee}-active`]:{[`
|
|
|
${He},
|
|
|
${We} > li,
|
|
|
${Ge},
|
|
|
${Xe},
|
|
|
${ct},
|
|
|
${Et}
|
|
|
`]:Object.assign({},fe(Ze))}}};var Ie=(0,Le.Z)("Skeleton",Ze=>{const{componentCls:Ee}=Ze,Ge=(0,Se.TS)(Ze,{skeletonAvatarCls:`${Ee}-avatar`,skeletonTitleCls:`${Ee}-title`,skeletonParagraphCls:`${Ee}-paragraph`,skeletonButtonCls:`${Ee}-button`,skeletonInputCls:`${Ee}-input`,skeletonImageCls:`${Ee}-image`,imageSizeBase:Ze.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Ze.gradientFromColor} 25%, ${Ze.gradientToColor} 37%, ${Ze.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Pe(Ge)]},Ze=>{const{colorFillContent:Ee,colorFill:Ge}=Ze,He=Ee,We=Ge;return{color:He,colorGradientEnd:We,gradientFromColor:He,gradientToColor:We,titleHeight:Ze.controlHeight/2,blockRadius:Ze.borderRadiusSM,paragraphMarginTop:Ze.marginLG+Ze.marginXXS,paragraphLiHeight:Ze.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Ae=Ze=>{const{prefixCls:Ee,className:Ge,rootClassName:He,active:We,shape:Xe="circle",size:ct="default"}=Ze,{getPrefixCls:Et}=oe.useContext(Ue.E_),ht=Et("skeleton",Ee),[It,qt]=Ie(ht),$t=(0,Fe.Z)(Ze,["prefixCls","className"]),Wt=Pt()(ht,`${ht}-element`,{[`${ht}-active`]:We},Ge,He,qt);return It(oe.createElement("div",{className:Wt},oe.createElement(ce,Object.assign({prefixCls:`${ht}-avatar`,shape:Xe,size:ct},$t))))},Be=Ze=>{const{prefixCls:Ee,className:Ge,rootClassName:He,active:We,block:Xe=!1,size:ct="default"}=Ze,{getPrefixCls:Et}=oe.useContext(Ue.E_),ht=Et("skeleton",Ee),[It,qt]=Ie(ht),$t=(0,Fe.Z)(Ze,["prefixCls"]),Wt=Pt()(ht,`${ht}-element`,{[`${ht}-active`]:We,[`${ht}-block`]:Xe},Ge,He,qt);return It(oe.createElement("div",{className:Wt},oe.createElement(ce,Object.assign({prefixCls:`${ht}-button`,size:ct},$t))))};const _e="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 ze=Ze=>{const{prefixCls:Ee,className:Ge,rootClassName:He,style:We,active:Xe}=Ze,{getPrefixCls:ct}=oe.useContext(Ue.E_),Et=ct("skeleton",Ee),[ht,It]=Ie(Et),qt=Pt()(Et,`${Et}-element`,{[`${Et}-active`]:Xe},Ge,He,It);return ht(oe.createElement("div",{className:qt},oe.createElement("div",{className:Pt()(`${Et}-image`,Ge),style:We},oe.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Et}-image-svg`},oe.createElement("path",{d:_e,className:`${Et}-image-path`})))))},et=Ze=>{const{prefixCls:Ee,className:Ge,rootClassName:He,active:We,block:Xe,size:ct="default"}=Ze,{getPrefixCls:Et}=oe.useContext(Ue.E_),ht=Et("skeleton",Ee),[It,qt]=Ie(ht),$t=(0,Fe.Z)(Ze,["prefixCls"]),Wt=Pt()(ht,`${ht}-element`,{[`${ht}-active`]:We,[`${ht}-block`]:Xe},Ge,He,qt);return It(oe.createElement("div",{className:Wt},oe.createElement(ce,Object.assign({prefixCls:`${ht}-input`,size:ct},$t))))},lt=Ke(5891),dt={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"},vt=dt,Je=Ke(31533),ot=function(Ee,Ge){return oe.createElement(Je.Z,(0,lt.Z)({},Ee,{ref:Ge,icon:vt}))},ft=oe.forwardRef(ot),xt=ft,pt=Ze=>{const{prefixCls:Ee,className:Ge,rootClassName:He,style:We,active:Xe,children:ct}=Ze,{getPrefixCls:Et}=oe.useContext(Ue.E_),ht=Et("skeleton",Ee),[It,qt]=Ie(ht),$t=Pt()(ht,`${ht}-element`,{[`${ht}-active`]:Xe},qt,Ge,He),Wt=ct!=null?ct:oe.createElement(xt,null);return It(oe.createElement("div",{className:$t},oe.createElement("div",{className:Pt()(`${ht}-image`,Ge),style:We},Wt)))},gt=Ke(26390),Mt=Ze=>{const Ee=Et=>{const{width:ht,rows:It=2}=Ze;if(Array.isArray(ht))return ht[Et];if(It-1===Et)return ht},{prefixCls:Ge,className:He,style:We,rows:Xe}=Ze,ct=(0,gt.Z)(Array(Xe)).map((Et,ht)=>oe.createElement("li",{key:ht,style:{width:Ee(ht)}}));return oe.createElement("ul",{className:Pt()(Ge,He),style:We},ct)},zt=Ze=>{let{prefixCls:Ee,className:Ge,width:He,style:We}=Ze;return oe.createElement("h3",{className:Pt()(Ee,Ge),style:Object.assign({width:He},We)})};function St(Ze){return Ze&&typeof Ze=="object"?Ze:{}}function bt(Ze,Ee){return Ze&&!Ee?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function at(Ze,Ee){return!Ze&&Ee?{width:"38%"}:Ze&&Ee?{width:"50%"}:{}}function nt(Ze,Ee){const Ge={};return(!Ze||!Ee)&&(Ge.width="61%"),!Ze&&Ee?Ge.rows=3:Ge.rows=2,Ge}const we=Ze=>{const{prefixCls:Ee,loading:Ge,className:He,rootClassName:We,style:Xe,children:ct,avatar:Et=!1,title:ht=!0,paragraph:It=!0,active:qt,round:$t}=Ze,{getPrefixCls:Wt,direction:Ut,skeleton:ln}=oe.useContext(Ue.E_),kt=Wt("skeleton",Ee),[Xt,tn]=Ie(kt);if(Ge||!("loading"in Ze)){const dn=!!Et,Mn=!!ht,Rn=!!It;let ir;if(dn){const er=Object.assign(Object.assign({prefixCls:`${kt}-avatar`},bt(Mn,Rn)),St(Et));ir=oe.createElement("div",{className:`${kt}-header`},oe.createElement(ce,Object.assign({},er)))}let qn;if(Mn||Rn){let er;if(Mn){const jr=Object.assign(Object.assign({prefixCls:`${kt}-title`},at(dn,Rn)),St(ht));er=oe.createElement(zt,Object.assign({},jr))}let Fr;if(Rn){const jr=Object.assign(Object.assign({prefixCls:`${kt}-paragraph`},nt(dn,Mn)),St(It));Fr=oe.createElement(Mt,Object.assign({},jr))}qn=oe.createElement("div",{className:`${kt}-content`},er,Fr)}const Cr=Pt()(kt,{[`${kt}-with-avatar`]:dn,[`${kt}-active`]:qt,[`${kt}-rtl`]:Ut==="rtl",[`${kt}-round`]:$t},ln==null?void 0:ln.className,He,We,tn);return Xt(oe.createElement("div",{className:Cr,style:Object.assign(Object.assign({},ln==null?void 0:ln.style),Xe)},ir,qn))}return typeof ct!="undefined"?ct:null};we.Button=Be,we.Avatar=Ae,we.Input=et,we.Image=ze,we.Node=pt;var Te=we,Ve=Te},81327:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return ae}});var tt=Ke(59301),Pt=Ke(92310),oe=Ke.n(Pt),Ue=Ke(38298),Fe=Ke(36355),me=Ke(33234);const ce=tt.createContext({latestIndex:0}),be=ce.Provider;var Se=re=>{let{className:le,index:ue,children:pe,split:Ce,style:Pe}=re;const{latestIndex:Ie}=tt.useContext(ce);return pe==null?null:tt.createElement(tt.Fragment,null,tt.createElement("div",{className:le,style:Pe},pe),ue<Ie&&Ce&&tt.createElement("span",{className:`${le}-split`},Ce))},ke=Ke(2856);function ve(re){return["small","middle","large"].includes(re)}function xe(re){return re?typeof re=="number"&&!Number.isNaN(re):!1}var fe=function(re,le){var ue={};for(var pe in re)Object.prototype.hasOwnProperty.call(re,pe)&&le.indexOf(pe)<0&&(ue[pe]=re[pe]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,pe=Object.getOwnPropertySymbols(re);Ce<pe.length;Ce++)le.indexOf(pe[Ce])<0&&Object.prototype.propertyIsEnumerable.call(re,pe[Ce])&&(ue[pe[Ce]]=re[pe[Ce]]);return ue};const ee=tt.forwardRef((re,le)=>{var ue,pe;const{getPrefixCls:Ce,space:Pe,direction:Ie}=tt.useContext(Fe.E_),{size:Oe=(Pe==null?void 0:Pe.size)||"small",align:Ae,className:je,rootClassName:Be,children:_e,direction:qe="horizontal",prefixCls:ze,split:Ye,style:et,wrap:lt=!1,classNames:dt,styles:vt}=re,Je=fe(re,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[ot,ft]=Array.isArray(Oe)?Oe:[Oe,Oe],xt=ve(ft),yt=ve(ot),pt=xe(ft),gt=xe(ot),mt=(0,Ue.Z)(_e,{keepEmpty:!0}),Mt=Ae===void 0&&qe==="horizontal"?"center":Ae,Ct=Ce("space",ze),[zt,St]=(0,ke.Z)(Ct),bt=oe()(Ct,Pe==null?void 0:Pe.className,St,`${Ct}-${qe}`,{[`${Ct}-rtl`]:Ie==="rtl",[`${Ct}-align-${Mt}`]:Mt,[`${Ct}-gap-row-${ft}`]:xt,[`${Ct}-gap-col-${ot}`]:yt},je,Be),at=oe()(`${Ct}-item`,(ue=dt==null?void 0:dt.item)!==null&&ue!==void 0?ue:(pe=Pe==null?void 0:Pe.classNames)===null||pe===void 0?void 0:pe.item);let nt=0;const we=mt.map((Ze,Ee)=>{var Ge,He;Ze!=null&&(nt=Ee);const We=Ze&&Ze.key||`${at}-${Ee}`;return tt.createElement(Se,{className:at,key:We,index:Ee,split:Ye,style:(Ge=vt==null?void 0:vt.item)!==null&&Ge!==void 0?Ge:(He=Pe==null?void 0:Pe.styles)===null||He===void 0?void 0:He.item},Ze)}),Te=tt.useMemo(()=>({latestIndex:nt}),[nt]);if(mt.length===0)return null;const Ve={};return lt&&(Ve.flexWrap="wrap"),!yt&>&&(Ve.columnGap=ot),!xt&&pt&&(Ve.rowGap=ft),zt(tt.createElement("div",Object.assign({ref:le,className:bt,style:Object.assign(Object.assign(Object.assign({},Ve),Pe==null?void 0:Pe.style),et)},Je),tt.createElement(be,{value:Te},we)))});ee.Compact=me.ZP;var ae=ee},31797:function(Gn,vn,Ke){"use strict";Ke.d(vn,{default:function(){return Ie}});var tt=Ke(59301),Pt=Ke(56762),oe=Ke(92343),Ue=Ke(92310),Fe=Ke.n(Ue),me=Ke(36355),ce=Ke(69127),Le=Oe=>{const{value:Ae,formatter:je,precision:Be,decimalSeparator:_e,groupSeparator:qe="",prefixCls:ze}=Oe;let Ye;if(typeof je=="function")Ye=je(Ae);else{const et=String(Ae),lt=et.match(/^(-?)(\d*)(\.(\d+))?$/);if(!lt||et==="-")Ye=et;else{const dt=lt[1];let vt=lt[2]||"0",Je=lt[4]||"";vt=vt.replace(/\B(?=(\d{3})+(?!\d))/g,qe),typeof Be=="number"&&(Je=Je.padEnd(Be,"0").slice(0,Be>0?Be:0)),Je&&(Je=`${_e}${Je}`),Ye=[tt.createElement("span",{key:"int",className:`${ze}-content-value-int`},dt,vt),Je&&tt.createElement("span",{key:"decimal",className:`${ze}-content-value-decimal`},Je)]}}return tt.createElement("span",{className:`${ze}-content-value`},Ye)},Se=Ke(17313),ke=Ke(83116),ve=Ke(37613);const xe=Oe=>{const{componentCls:Ae,marginXXS:je,padding:Be,colorTextDescription:_e,titleFontSize:qe,colorTextHeading:ze,contentFontSize:Ye,fontFamily:et}=Oe;return{[`${Ae}`]:Object.assign(Object.assign({},(0,Se.Wf)(Oe)),{[`${Ae}-title`]:{marginBottom:je,color:_e,fontSize:qe},[`${Ae}-skeleton`]:{paddingTop:Be},[`${Ae}-content`]:{color:ze,fontSize:Ye,fontFamily:et,[`${Ae}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Ae}-content-prefix, ${Ae}-content-suffix`]:{display:"inline-block"},[`${Ae}-content-prefix`]:{marginInlineEnd:je},[`${Ae}-content-suffix`]:{marginInlineStart:je}}})}};var fe=(0,ke.Z)("Statistic",Oe=>{const Ae=(0,ve.TS)(Oe,{});return[xe(Ae)]},Oe=>{const{fontSizeHeading3:Ae,fontSize:je}=Oe;return{titleFontSize:je,contentFontSize:Ae}}),ee=Oe=>{const{prefixCls:Ae,className:je,rootClassName:Be,style:_e,valueStyle:qe,value:ze=0,title:Ye,valueRender:et,prefix:lt,suffix:dt,loading:vt=!1,onMouseEnter:Je,onMouseLeave:ot,decimalSeparator:ft=".",groupSeparator:xt=","}=Oe,{getPrefixCls:yt,direction:pt,statistic:gt}=tt.useContext(me.E_),mt=yt("statistic",Ae),[Mt,Ct]=fe(mt),zt=tt.createElement(Le,Object.assign({decimalSeparator:ft,groupSeparator:xt,prefixCls:mt},Oe,{value:ze})),St=Fe()(mt,{[`${mt}-rtl`]:pt==="rtl"},gt==null?void 0:gt.className,je,Be,Ct);return Mt(tt.createElement("div",{className:St,style:Object.assign(Object.assign({},gt==null?void 0:gt.style),_e),onMouseEnter:Je,onMouseLeave:ot},Ye&&tt.createElement("div",{className:`${mt}-title`},Ye),tt.createElement(ce.Z,{paragraph:!1,loading:vt,className:`${mt}-skeleton`},tt.createElement("div",{style:qe,className:`${mt}-content`},lt&&tt.createElement("span",{className:`${mt}-content-prefix`},lt),et?et(zt):zt,dt&&tt.createElement("span",{className:`${mt}-content-suffix`},dt)))))};const ae=[["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 re(Oe,Ae){let je=Oe;const Be=/\[[^\]]*]/g,_e=(Ae.match(Be)||[]).map(et=>et.slice(1,-1)),qe=Ae.replace(Be,"[]"),ze=ae.reduce((et,lt)=>{let[dt,vt]=lt;if(et.includes(dt)){const Je=Math.floor(je/vt);return je-=Je*vt,et.replace(new RegExp(`${dt}+`,"g"),ot=>{const ft=ot.length;return Je.toString().padStart(ft,"0")})}return et},qe);let Ye=0;return ze.replace(Be,()=>{const et=_e[Ye];return Ye+=1,et})}function le(Oe,Ae){const{format:je=""}=Ae,Be=new Date(Oe).getTime(),_e=Date.now(),qe=Math.max(Be-_e,0);return re(qe,je)}const ue=1e3/30;function pe(Oe){return new Date(Oe).getTime()}const Ce=Oe=>{const{value:Ae,format:je="HH:mm:ss",onChange:Be,onFinish:_e}=Oe,qe=(0,Pt.Z)(),ze=tt.useRef(null),Ye=()=>{_e==null||_e(),ze.current&&(clearInterval(ze.current),ze.current=null)},et=()=>{const vt=pe(Ae);vt>=Date.now()&&(ze.current=setInterval(()=>{qe(),Be==null||Be(vt-Date.now()),vt<Date.now()&&Ye()},ue))};tt.useEffect(()=>(et(),()=>{ze.current&&(clearInterval(ze.current),ze.current=null)}),[Ae]);const lt=(vt,Je)=>le(vt,Object.assign(Object.assign({},Je),{format:je})),dt=vt=>(0,oe.Tm)(vt,{title:void 0});return tt.createElement(ee,Object.assign({},Oe,{valueRender:dt,formatter:lt}))};var Pe=tt.memo(Ce);ee.Countdown=Pe;var Ie=ee},15969:function(Gn,vn,Ke){"use strict";Ke.d(vn,{N:function(){return tt}});const tt=Pt=>({color:Pt.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${Pt.motionDurationSlow}`,"&:focus, &:hover":{color:Pt.colorLinkHover},"&:active":{color:Pt.colorLinkActive}})},78673:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return qe}});var tt=Ke(78714),Pt=Ke(92310),oe=Ke.n(Pt),Ue=Ke(5891),Fe=Ke(80962),me=Ke(29043),ce=Ke(19149),be=Ke(59301),Le=Ke(35788),Se=Ke(85108),ke=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ve=be.forwardRef(function(ze,Ye){var et,lt=ze.prefixCls,dt=lt===void 0?"rc-switch":lt,vt=ze.className,Je=ze.checked,ot=ze.defaultChecked,ft=ze.disabled,xt=ze.loadingIcon,yt=ze.checkedChildren,pt=ze.unCheckedChildren,gt=ze.onClick,mt=ze.onChange,Mt=ze.onKeyDown,Ct=(0,ce.Z)(ze,ke),zt=(0,Le.Z)(!1,{value:Je,defaultValue:ot}),St=(0,me.Z)(zt,2),bt=St[0],at=St[1];function nt(Ze,Ee){var Ge=bt;return ft||(Ge=Ze,at(Ge),mt==null||mt(Ge,Ee)),Ge}function we(Ze){Ze.which===Se.Z.LEFT?nt(!1,Ze):Ze.which===Se.Z.RIGHT&&nt(!0,Ze),Mt==null||Mt(Ze)}function Te(Ze){var Ee=nt(!bt,Ze);gt==null||gt(Ee,Ze)}var Ve=oe()(dt,vt,(et={},(0,Fe.Z)(et,"".concat(dt,"-checked"),bt),(0,Fe.Z)(et,"".concat(dt,"-disabled"),ft),et));return be.createElement("button",(0,Ue.Z)({},Ct,{type:"button",role:"switch","aria-checked":bt,disabled:ft,className:Ve,ref:Ye,onKeyDown:we,onClick:Te}),xt,be.createElement("span",{className:"".concat(dt,"-inner")},be.createElement("span",{className:"".concat(dt,"-inner-checked")},yt),be.createElement("span",{className:"".concat(dt,"-inner-unchecked")},pt)))});ve.displayName="Switch";var xe=ve,fe=Ke(14088),z=Ke(36355),ee=Ke(1684),ae=Ke(19716),re=Ke(64993),le=Ke(17313),ue=Ke(83116),pe=Ke(37613);const Ce=ze=>{const{componentCls:Ye,trackHeightSM:et,trackPadding:lt,trackMinWidthSM:dt,innerMinMarginSM:vt,innerMaxMarginSM:Je,handleSizeSM:ot}=ze,ft=`${Ye}-inner`;return{[Ye]:{[`&${Ye}-small`]:{minWidth:dt,height:et,lineHeight:`${et}px`,[`${Ye}-inner`]:{paddingInlineStart:Je,paddingInlineEnd:vt,[`${ft}-checked`]:{marginInlineStart:`calc(-100% + ${ot+lt*2}px - ${Je*2}px)`,marginInlineEnd:`calc(100% - ${ot+lt*2}px + ${Je*2}px)`},[`${ft}-unchecked`]:{marginTop:-et,marginInlineStart:0,marginInlineEnd:0}},[`${Ye}-handle`]:{width:ot,height:ot},[`${Ye}-loading-icon`]:{top:(ot-ze.switchLoadingIconSize)/2,fontSize:ze.switchLoadingIconSize},[`&${Ye}-checked`]:{[`${Ye}-inner`]:{paddingInlineStart:vt,paddingInlineEnd:Je,[`${ft}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ft}-unchecked`]:{marginInlineStart:`calc(100% - ${ot+lt*2}px + ${Je*2}px)`,marginInlineEnd:`calc(-100% + ${ot+lt*2}px - ${Je*2}px)`}},[`${Ye}-handle`]:{insetInlineStart:`calc(100% - ${ot+lt}px)`}},[`&:not(${Ye}-disabled):active`]:{[`&:not(${Ye}-checked) ${ft}`]:{[`${ft}-unchecked`]:{marginInlineStart:ze.marginXXS/2,marginInlineEnd:-ze.marginXXS/2}},[`&${Ye}-checked ${ft}`]:{[`${ft}-checked`]:{marginInlineStart:-ze.marginXXS/2,marginInlineEnd:ze.marginXXS/2}}}}}}},Pe=ze=>{const{componentCls:Ye,handleSize:et}=ze;return{[Ye]:{[`${Ye}-loading-icon${ze.iconCls}`]:{position:"relative",top:(et-ze.fontSize)/2,color:ze.switchLoadingIconColor,verticalAlign:"top"},[`&${Ye}-checked ${Ye}-loading-icon`]:{color:ze.switchColor}}}},Ie=ze=>{const{componentCls:Ye,motion:et,trackPadding:lt,handleBg:dt,handleShadow:vt,handleSize:Je}=ze,ot=`${Ye}-handle`;return{[Ye]:{[ot]:{position:"absolute",top:lt,insetInlineStart:lt,width:Je,height:Je,transition:`all ${ze.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:dt,borderRadius:Je/2,boxShadow:vt,transition:`all ${ze.switchDuration} ease-in-out`,content:'""'}},[`&${Ye}-checked ${ot}`]:{insetInlineStart:`calc(100% - ${Je+lt}px)`},[`&:not(${Ye}-disabled):active`]:et?{[`${ot}::before`]:{insetInlineEnd:ze.switchHandleActiveInset,insetInlineStart:0},[`&${Ye}-checked ${ot}::before`]:{insetInlineEnd:0,insetInlineStart:ze.switchHandleActiveInset}}:{}}}},Oe=ze=>{const{componentCls:Ye,trackHeight:et,trackPadding:lt,innerMinMargin:dt,innerMaxMargin:vt,handleSize:Je}=ze,ot=`${Ye}-inner`;return{[Ye]:{[ot]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:vt,paddingInlineEnd:dt,transition:`padding-inline-start ${ze.switchDuration} ease-in-out, padding-inline-end ${ze.switchDuration} ease-in-out`,[`${ot}-checked, ${ot}-unchecked`]:{display:"block",color:ze.colorTextLightSolid,fontSize:ze.fontSizeSM,transition:`margin-inline-start ${ze.switchDuration} ease-in-out, margin-inline-end ${ze.switchDuration} ease-in-out`,pointerEvents:"none"},[`${ot}-checked`]:{marginInlineStart:`calc(-100% + ${Je+lt*2}px - ${vt*2}px)`,marginInlineEnd:`calc(100% - ${Je+lt*2}px + ${vt*2}px)`},[`${ot}-unchecked`]:{marginTop:-et,marginInlineStart:0,marginInlineEnd:0}},[`&${Ye}-checked ${ot}`]:{paddingInlineStart:dt,paddingInlineEnd:vt,[`${ot}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ot}-unchecked`]:{marginInlineStart:`calc(100% - ${Je+lt*2}px + ${vt*2}px)`,marginInlineEnd:`calc(-100% + ${Je+lt*2}px - ${vt*2}px)`}},[`&:not(${Ye}-disabled):active`]:{[`&:not(${Ye}-checked) ${ot}`]:{[`${ot}-unchecked`]:{marginInlineStart:lt*2,marginInlineEnd:-lt*2}},[`&${Ye}-checked ${ot}`]:{[`${ot}-checked`]:{marginInlineStart:-lt*2,marginInlineEnd:lt*2}}}}}},Ae=ze=>{const{componentCls:Ye,trackHeight:et,trackMinWidth:lt}=ze;return{[Ye]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,le.Wf)(ze)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:lt,height:et,lineHeight:`${et}px`,verticalAlign:"middle",background:ze.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${ze.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ye}-disabled)`]:{background:ze.colorTextTertiary}}),(0,le.Qy)(ze)),{[`&${Ye}-checked`]:{background:ze.switchColor,[`&:hover:not(${Ye}-disabled)`]:{background:ze.colorPrimaryHover}},[`&${Ye}-loading, &${Ye}-disabled`]:{cursor:"not-allowed",opacity:ze.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ye}-rtl`]:{direction:"rtl"}})}};var je=(0,ue.Z)("Switch",ze=>{const Ye=(0,pe.TS)(ze,{switchDuration:ze.motionDurationMid,switchColor:ze.colorPrimary,switchDisabledOpacity:ze.opacityLoading,switchLoadingIconSize:ze.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${ze.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Ae(Ye),Oe(Ye),Ie(Ye),Pe(Ye),Ce(Ye)]},ze=>{const{fontSize:Ye,lineHeight:et,controlHeight:lt,colorWhite:dt}=ze,vt=Ye*et,Je=lt/2,ot=2,ft=vt-ot*2,xt=Je-ot*2;return{trackHeight:vt,trackHeightSM:Je,trackMinWidth:ft*2+ot*4,trackMinWidthSM:xt*2+ot*2,trackPadding:ot,handleBg:dt,handleSize:ft,handleSizeSM:xt,handleShadow:`0 2px 4px 0 ${new re.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:ft/2,innerMaxMargin:ft+ot+ot*2,innerMinMarginSM:xt/2,innerMaxMarginSM:xt+ot+ot*2}}),Be=function(ze,Ye){var et={};for(var lt in ze)Object.prototype.hasOwnProperty.call(ze,lt)&&Ye.indexOf(lt)<0&&(et[lt]=ze[lt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,lt=Object.getOwnPropertySymbols(ze);dt<lt.length;dt++)Ye.indexOf(lt[dt])<0&&Object.prototype.propertyIsEnumerable.call(ze,lt[dt])&&(et[lt[dt]]=ze[lt[dt]]);return et};const _e=be.forwardRef((ze,Ye)=>{const{prefixCls:et,size:lt,disabled:dt,loading:vt,className:Je,rootClassName:ot,style:ft}=ze,xt=Be(ze,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:yt,direction:pt,switch:gt}=be.useContext(z.E_),mt=be.useContext(ee.Z),Mt=(dt!=null?dt:mt)||vt,Ct=yt("switch",et),zt=be.createElement("div",{className:`${Ct}-handle`},vt&&be.createElement(tt.Z,{className:`${Ct}-loading-icon`})),[St,bt]=je(Ct),at=(0,ae.Z)(lt),nt=oe()(gt==null?void 0:gt.className,{[`${Ct}-small`]:at==="small",[`${Ct}-loading`]:vt,[`${Ct}-rtl`]:pt==="rtl"},Je,ot,bt),we=Object.assign(Object.assign({},gt==null?void 0:gt.style),ft);return St(be.createElement(fe.Z,{component:"Switch"},be.createElement(xe,Object.assign({},xt,{prefixCls:Ct,className:nt,style:we,disabled:Mt,ref:Ye,loadingIcon:zt}))))});_e.__ANT_SWITCH=!0;var qe=_e},36546:function(Gn,vn,Ke){"use strict";Ke.d(vn,{default:function(){return $p}});var tt={},Pt="rc-table-internal-hook",oe=Ke(29043),Ue=Ke(8107),Fe=Ke(28800),me=Ke(51346),ce=Ke(59301),be=Ke(4676);function Le(Ft){var Rt=ce.createContext(void 0),rn=function(wn){var fn=wn.value,Hn=wn.children,Wn=ce.useRef(fn);Wn.current=fn;var _n=ce.useState(function(){return{getValue:function(){return Wn.current},listeners:new Set}}),nr=(0,oe.Z)(_n,1),lr=nr[0];return(0,Fe.Z)(function(){(0,be.unstable_batchedUpdates)(function(){lr.listeners.forEach(function(or){or(fn)})})},[fn]),ce.createElement(Rt.Provider,{value:lr},Hn)};return{Context:Rt,Provider:rn,defaultValue:Ft}}function Se(Ft,Rt){var rn=(0,Ue.Z)(typeof Rt=="function"?Rt:function(or){if(Rt===void 0)return or;if(!Array.isArray(Rt))return or[Rt];var Nr={};return Rt.forEach(function(Er){Nr[Er]=or[Er]}),Nr}),sn=ce.useContext(Ft==null?void 0:Ft.Context),wn=sn||{},fn=wn.listeners,Hn=wn.getValue,Wn=ce.useRef();Wn.current=rn(sn?Hn():Ft==null?void 0:Ft.defaultValue);var _n=ce.useState({}),nr=(0,oe.Z)(_n,2),lr=nr[1];return(0,Fe.Z)(function(){if(!sn)return;function or(Nr){var Er=rn(Nr);(0,me.Z)(Wn.current,Er,!0)||lr({})}return fn.add(or),function(){fn.delete(or)}},[sn]),Wn.current}var ke=Ke(5891),ve=Ke(20475);function xe(){var Ft=ce.createContext(null);function Rt(){return ce.useContext(Ft)}function rn(wn,fn){var Hn=(0,ve.Yr)(wn),Wn=function(nr,lr){var or=Hn?{ref:lr}:{},Nr=ce.useRef(0),Er=ce.useRef(nr),Sr=Rt();return Sr!==null?ce.createElement(wn,(0,ke.Z)({},nr,or)):((!fn||fn(Er.current,nr))&&(Nr.current+=1),Er.current=nr,ce.createElement(Ft.Provider,{value:Nr.current},ce.createElement(wn,(0,ke.Z)({},nr,or))))};return Hn?ce.forwardRef(Wn):Wn}function sn(wn,fn){var Hn=(0,ve.Yr)(wn),Wn=function(nr,lr){var or=Hn?{ref:lr}:{};return Rt(),ce.createElement(wn,(0,ke.Z)({},nr,or))};return Hn?ce.memo(ce.forwardRef(Wn),fn):ce.memo(Wn,fn)}return{makeImmutable:rn,responseImmutable:sn,useImmutableMark:Rt}}var fe=xe(),z=fe.makeImmutable,ee=fe.responseImmutable,ae=fe.useImmutableMark,re=xe(),le=re.makeImmutable,ue=re.responseImmutable,pe=re.useImmutableMark,Ce=Le(),Pe=Ce;function Ie(Ft,Rt){var rn=ce.useRef(0);rn.current+=1;var sn=ce.useRef(Ft),wn=[];Object.keys(Ft||{}).map(function(Hn){var Wn;(Ft==null?void 0:Ft[Hn])!==((Wn=sn.current)===null||Wn===void 0?void 0:Wn[Hn])&&wn.push(Hn)}),sn.current=Ft;var fn=ce.useRef([]);return wn.length&&(fn.current=wn),ce.useDebugValue(rn.current),ce.useDebugValue(fn.current.join(", ")),Rt&&console.log("".concat(Rt,":"),rn.current,fn.current),rn.current}var Oe=null,Ae=ce.memo(function(){var Ft=Ie();return ce.createElement("h1",null,"Render Times: ",Ft)});Ae.displayName="RenderBlock";var je=Ke(80665),Be=Ke(57259),_e=Ke(80962),qe=Ke(92310),ze=Ke.n(qe),Ye=Ke(79722),et=Ke(69004),lt=Ke(51395),dt=ce.createContext({renderWithProps:!1}),vt=dt,Je="RC_TABLE_KEY";function ot(Ft){return Ft==null?[]:Array.isArray(Ft)?Ft:[Ft]}function ft(Ft){var Rt=[],rn={};return Ft.forEach(function(sn){for(var wn=sn||{},fn=wn.key,Hn=wn.dataIndex,Wn=fn||ot(Hn).join("-")||Je;rn[Wn];)Wn="".concat(Wn,"_next");rn[Wn]=!0,Rt.push(Wn)}),Rt}function xt(Ft){return Ft!=null}function yt(Ft){return Ft&&(0,je.Z)(Ft)==="object"&&!Array.isArray(Ft)&&!ce.isValidElement(Ft)}function pt(Ft,Rt,rn,sn,wn,fn){var Hn=ce.useContext(vt),Wn=pe(),_n=(0,Ye.Z)(function(){if(xt(sn))return[sn];var nr=Rt==null||Rt===""?[]:Array.isArray(Rt)?Rt:[Rt],lr=(0,et.Z)(Ft,nr),or=lr,Nr=void 0;if(wn){var Er=wn(lr,Ft,rn);yt(Er)?(or=Er.children,Nr=Er.props,Hn.renderWithProps=!0):or=Er}return[or,Nr]},[Wn,Ft,sn,Rt,wn,rn],function(nr,lr){if(fn){var or=(0,oe.Z)(nr,2),Nr=or[1],Er=(0,oe.Z)(lr,2),Sr=Er[1];return fn(Sr,Nr)}return Hn.renderWithProps?!0:!(0,me.Z)(nr,lr,!0)});return _n}function gt(Ft,Rt,rn,sn){var wn=Ft+Rt-1;return Ft<=sn&&wn>=rn}function mt(Ft,Rt){return Se(Pe,function(rn){var sn=gt(Ft,Rt||1,rn.hoverStartRow,rn.hoverEndRow);return[sn,rn.onHover]})}var Mt=function(Rt){var rn=Rt.ellipsis,sn=Rt.rowType,wn=Rt.children,fn,Hn=rn===!0?{showTitle:!0}:rn;return Hn&&(Hn.showTitle||sn==="header")&&(typeof wn=="string"||typeof wn=="number"?fn=wn.toString():ce.isValidElement(wn)&&typeof wn.props.children=="string"&&(fn=wn.props.children)),fn};function Ct(Ft){var Rt,rn,sn,wn,fn,Hn,Wn,_n,nr=Ft.component,lr=Ft.children,or=Ft.ellipsis,Nr=Ft.scope,Er=Ft.prefixCls,Sr=Ft.className,qr=Ft.align,br=Ft.record,Yr=Ft.render,Kr=Ft.dataIndex,li=Ft.renderIndex,Li=Ft.shouldCellUpdate,Hi=Ft.index,ti=Ft.rowType,Ti=Ft.colSpan,ao=Ft.rowSpan,si=Ft.fixLeft,wi=Ft.fixRight,oi=Ft.firstFixLeft,zr=Ft.lastFixLeft,vi=Ft.firstFixRight,Fi=Ft.lastFixRight,Ki=Ft.appendNode,Vi=Ft.additionalProps,ni=Vi===void 0?{}:Vi,lo=Ft.isSticky,mo="".concat(Er,"-cell"),Yo=Se(Pe,["supportSticky","allColumnsFixedLeft"]),Oo=Yo.supportSticky,La=Yo.allColumnsFixedLeft,Ca=pt(br,Kr,li,lr,Yr,Li),ho=(0,oe.Z)(Ca,2),_i=ho[0],Go=ho[1],ka={},ma=typeof si=="number"&&Oo,rs=typeof wi=="number"&&Oo;ma&&(ka.position="sticky",ka.left=si),rs&&(ka.position="sticky",ka.right=wi);var Xi=(Rt=(rn=(sn=Go==null?void 0:Go.colSpan)!==null&&sn!==void 0?sn:ni.colSpan)!==null&&rn!==void 0?rn:Ti)!==null&&Rt!==void 0?Rt:1,Ui=(wn=(fn=(Hn=Go==null?void 0:Go.rowSpan)!==null&&Hn!==void 0?Hn:ni.rowSpan)!==null&&fn!==void 0?fn:ao)!==null&&wn!==void 0?wn:1,Yi=mt(Hi,Ui),Ai=(0,oe.Z)(Yi,2),$o=Ai[0],ji=Ai[1],so=function(es){var ps;br&&ji(Hi,Hi+Ui-1),ni==null||(ps=ni.onMouseEnter)===null||ps===void 0||ps.call(ni,es)},Fo=function(es){var ps;br&&ji(-1,-1),ni==null||(ps=ni.onMouseLeave)===null||ps===void 0||ps.call(ni,es)};if(Xi===0||Ui===0)return null;var Bo=(Wn=ni.title)!==null&&Wn!==void 0?Wn:Mt({rowType:ti,ellipsis:or,children:_i}),bs=ze()(mo,Sr,(_n={},(0,_e.Z)(_n,"".concat(mo,"-fix-left"),ma&&Oo),(0,_e.Z)(_n,"".concat(mo,"-fix-left-first"),oi&&Oo),(0,_e.Z)(_n,"".concat(mo,"-fix-left-last"),zr&&Oo),(0,_e.Z)(_n,"".concat(mo,"-fix-left-all"),zr&&La&&Oo),(0,_e.Z)(_n,"".concat(mo,"-fix-right"),rs&&Oo),(0,_e.Z)(_n,"".concat(mo,"-fix-right-first"),vi&&Oo),(0,_e.Z)(_n,"".concat(mo,"-fix-right-last"),Fi&&Oo),(0,_e.Z)(_n,"".concat(mo,"-ellipsis"),or),(0,_e.Z)(_n,"".concat(mo,"-with-append"),Ki),(0,_e.Z)(_n,"".concat(mo,"-fix-sticky"),(ma||rs)&&lo&&Oo),(0,_e.Z)(_n,"".concat(mo,"-row-hover"),!Go&&$o),_n),ni.className,Go==null?void 0:Go.className),ss={};qr&&(ss.textAlign=qr);var Hs=(0,Be.Z)((0,Be.Z)((0,Be.Z)((0,Be.Z)({},ka),ni.style),ss),Go==null?void 0:Go.style),Jo=_i;return(0,je.Z)(Jo)==="object"&&!Array.isArray(Jo)&&!ce.isValidElement(Jo)&&(Jo=null),or&&(zr||vi)&&(Jo=ce.createElement("span",{className:"".concat(mo,"-content")},Jo)),ce.createElement(nr,(0,ke.Z)({},Go,ni,{className:bs,style:Hs,title:Bo,scope:Nr,onMouseEnter:so,onMouseLeave:Fo,colSpan:Xi!==1?Xi:null,rowSpan:Ui!==1?Ui:null}),Ki,Jo)}var zt=ce.memo(Ct);function St(Ft,Rt,rn,sn,wn,fn){var Hn=rn[Ft]||{},Wn=rn[Rt]||{},_n,nr;Hn.fixed==="left"?_n=sn.left[wn==="rtl"?Rt:Ft]:Wn.fixed==="right"&&(nr=sn.right[wn==="rtl"?Ft:Rt]);var lr=!1,or=!1,Nr=!1,Er=!1,Sr=rn[Rt+1],qr=rn[Ft-1],br=!(fn!=null&&fn.children);if(wn==="rtl"){if(_n!==void 0){var Yr=qr&&qr.fixed==="left";Er=!Yr&&br}else if(nr!==void 0){var Kr=Sr&&Sr.fixed==="right";Nr=!Kr&&br}}else if(_n!==void 0){var li=Sr&&Sr.fixed==="left";lr=!li&&br}else if(nr!==void 0){var Li=qr&&qr.fixed==="right";or=!Li&&br}return{fixLeft:_n,fixRight:nr,lastFixLeft:lr,firstFixRight:or,lastFixRight:Nr,firstFixLeft:Er,isSticky:sn.isSticky}}var bt=ce.createContext({}),at=bt;function nt(Ft){var Rt=Ft.className,rn=Ft.index,sn=Ft.children,wn=Ft.colSpan,fn=wn===void 0?1:wn,Hn=Ft.rowSpan,Wn=Ft.align,_n=Se(Pe,["prefixCls","direction"]),nr=_n.prefixCls,lr=_n.direction,or=ce.useContext(at),Nr=or.scrollColumnIndex,Er=or.stickyOffsets,Sr=or.flattenColumns,qr=or.columns,br=rn+fn-1,Yr=br+1===Nr?fn+1:fn,Kr=St(rn,rn+Yr-1,Sr,Er,lr,qr==null?void 0:qr[rn]);return ce.createElement(zt,(0,ke.Z)({className:Rt,index:rn,component:"td",prefixCls:nr,record:null,dataIndex:null,align:Wn,colSpan:Yr,rowSpan:Hn,render:function(){return sn}},Kr))}var we=Ke(19149),Te=["children"];function Ve(Ft){var Rt=Ft.children,rn=(0,we.Z)(Ft,Te);return ce.createElement("tr",rn,Rt)}function Ze(Ft){var Rt=Ft.children;return Rt}Ze.Row=Ve,Ze.Cell=nt;var Ee=Ze;function Ge(Ft){var Rt=Ft.children,rn=Ft.stickyOffsets,sn=Ft.flattenColumns,wn=Ft.columns,fn=Se(Pe,"prefixCls"),Hn=sn.length-1,Wn=sn[Hn],_n=ce.useMemo(function(){return{stickyOffsets:rn,flattenColumns:sn,scrollColumnIndex:Wn!=null&&Wn.scrollbar?Hn:null,columns:wn}},[Wn,sn,Hn,rn,wn]);return ce.createElement(at.Provider,{value:_n},ce.createElement("tfoot",{className:"".concat(fn,"-summary")},Rt))}var He=ue(Ge),We=Ee,Xe=Ke(80764),ct=Ke(29301),Et=Ke(48886),ht=Ke(24387),It=Ke(59055),qt=Ke(36994);function $t(Ft,Rt,rn,sn,wn,fn,Hn){Ft.push({record:Rt,indent:rn,index:Hn});var Wn=fn(Rt),_n=wn==null?void 0:wn.has(Wn);if(Rt&&Array.isArray(Rt[sn])&&_n)for(var nr=0;nr<Rt[sn].length;nr+=1)$t(Ft,Rt[sn][nr],rn+1,sn,wn,fn,nr)}function Wt(Ft,Rt,rn,sn){var wn=ce.useMemo(function(){if(rn!=null&&rn.size){for(var fn=[],Hn=0;Hn<(Ft==null?void 0:Ft.length);Hn+=1){var Wn=Ft[Hn];$t(fn,Wn,0,Rt,rn,sn,Hn)}return fn}return Ft==null?void 0:Ft.map(function(_n,nr){return{record:_n,indent:0,index:nr}})},[Ft,Rt,rn,sn]);return wn}function Ut(Ft){var Rt=Ft.prefixCls,rn=Ft.children,sn=Ft.component,wn=Ft.cellComponent,fn=Ft.className,Hn=Ft.expanded,Wn=Ft.colSpan,_n=Ft.isEmpty,nr=Se(Pe,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),lr=nr.scrollbarSize,or=nr.fixHeader,Nr=nr.fixColumn,Er=nr.componentWidth,Sr=nr.horizonScroll,qr=rn;return(_n?Sr&&Er:Nr)&&(qr=ce.createElement("div",{style:{width:Er-(or?lr:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Rt,"-expanded-row-fixed")},qr)),ce.createElement(sn,{className:fn,style:{display:Hn?null:"none"}},ce.createElement(zt,{component:wn,prefixCls:Rt,colSpan:Wn},qr))}var ln=Ut;function kt(Ft,Rt,rn,sn){var wn=Se(Pe,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),fn=wn.flattenColumns,Hn=wn.expandableType,Wn=wn.expandedKeys,_n=wn.childrenColumnName,nr=wn.onTriggerExpand,lr=wn.rowExpandable,or=wn.onRow,Nr=wn.expandRowByClick,Er=wn.rowClassName,Sr=Hn==="nest",qr=Hn==="row"&&(!lr||lr(Ft)),br=qr||Sr,Yr=Wn&&Wn.has(Rt),Kr=_n&&Ft&&Ft[_n],li=(0,Xe.useEvent)(nr),Li=or==null?void 0:or(Ft,rn),Hi=Li==null?void 0:Li.onClick,ti=function(wi){Nr&&br&&nr(Ft,wi);for(var oi=arguments.length,zr=new Array(oi>1?oi-1:0),vi=1;vi<oi;vi++)zr[vi-1]=arguments[vi];Hi==null||Hi.apply(void 0,[wi].concat(zr))},Ti;typeof Er=="string"?Ti=Er:typeof Er=="function"&&(Ti=Er(Ft,rn,sn));var ao=ft(fn);return(0,Be.Z)((0,Be.Z)({},wn),{},{columnsKey:ao,nestExpandable:Sr,expanded:Yr,hasNestChildren:Kr,record:Ft,onTriggerExpand:li,rowSupportExpand:qr,expandable:br,rowProps:(0,Be.Z)((0,Be.Z)({},Li),{},{className:ze()(Ti,Li==null?void 0:Li.className),onClick:ti})})}function Xt(Ft,Rt,rn,sn,wn){var fn=Ft.record,Hn=Ft.prefixCls,Wn=Ft.columnsKey,_n=Ft.fixedInfoList,nr=Ft.expandIconColumnIndex,lr=Ft.nestExpandable,or=Ft.indentSize,Nr=Ft.expandIcon,Er=Ft.expanded,Sr=Ft.hasNestChildren,qr=Ft.onTriggerExpand,br=Wn[rn],Yr=_n[rn],Kr;rn===(nr||0)&&lr&&(Kr=ce.createElement(ce.Fragment,null,ce.createElement("span",{style:{paddingLeft:"".concat(or*sn,"px")},className:"".concat(Hn,"-row-indent indent-level-").concat(sn)}),Nr({prefixCls:Hn,expanded:Er,expandable:Sr,record:fn,onExpand:qr})));var li;return Rt.onCell&&(li=Rt.onCell(fn,wn)),{key:br,fixedInfo:Yr,appendCellNode:Kr,additionalCellProps:li||{}}}function tn(Ft){var Rt=Ft.className,rn=Ft.style,sn=Ft.record,wn=Ft.index,fn=Ft.renderIndex,Hn=Ft.rowKey,Wn=Ft.indent,_n=Wn===void 0?0:Wn,nr=Ft.rowComponent,lr=Ft.cellComponent,or=Ft.scopeCellComponent,Nr=kt(sn,Hn,wn,_n),Er=Nr.prefixCls,Sr=Nr.flattenColumns,qr=Nr.expandedRowClassName,br=Nr.expandedRowRender,Yr=Nr.rowProps,Kr=Nr.expanded,li=Nr.rowSupportExpand,Li=ce.useState(!1),Hi=(0,oe.Z)(Li,2),ti=Hi[0],Ti=Hi[1];ce.useEffect(function(){Kr&&Ti(!0)},[Kr]);var ao=ce.createElement(nr,(0,ke.Z)({},Yr,{"data-row-key":Hn,className:ze()(Rt,"".concat(Er,"-row"),"".concat(Er,"-row-level-").concat(_n),Yr==null?void 0:Yr.className),style:(0,Be.Z)((0,Be.Z)({},rn),Yr==null?void 0:Yr.style)}),Sr.map(function(zr,vi){var Fi=zr.render,Ki=zr.dataIndex,Vi=zr.className,ni=Xt(Nr,zr,vi,_n,wn),lo=ni.key,mo=ni.fixedInfo,Yo=ni.appendCellNode,Oo=ni.additionalCellProps;return ce.createElement(zt,(0,ke.Z)({className:Vi,ellipsis:zr.ellipsis,align:zr.align,scope:zr.rowScope,component:zr.rowScope?or:lr,prefixCls:Er,key:lo,record:sn,index:wn,renderIndex:fn,dataIndex:Ki,render:Fi,shouldCellUpdate:zr.shouldCellUpdate},mo,{appendNode:Yo,additionalProps:Oo}))})),si;if(li&&(ti||Kr)){var wi=br(sn,wn,_n+1,Kr),oi=qr&&qr(sn,wn,_n);si=ce.createElement(ln,{expanded:Kr,className:ze()("".concat(Er,"-expanded-row"),"".concat(Er,"-expanded-row-level-").concat(_n+1),oi),prefixCls:Er,component:nr,cellComponent:lr,colSpan:Sr.length,isEmpty:!1},wi)}return ce.createElement(ce.Fragment,null,ao,si)}tn.displayName="BodyRow";var dn=ue(tn);function Mn(Ft){var Rt=Ft.columnKey,rn=Ft.onColumnResize,sn=ce.useRef();return ce.useEffect(function(){sn.current&&rn(Rt,sn.current.offsetWidth)},[]),ce.createElement(ct.Z,{data:Rt},ce.createElement("td",{ref:sn,style:{padding:0,border:0,height:0}},ce.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Rn(Ft){var Rt=Ft.prefixCls,rn=Ft.columnsKey,sn=Ft.onColumnResize;return ce.createElement("tr",{"aria-hidden":"true",className:"".concat(Rt,"-measure-row"),style:{height:0,fontSize:0}},ce.createElement(ct.Z.Collection,{onBatchResize:function(fn){fn.forEach(function(Hn){var Wn=Hn.data,_n=Hn.size;sn(Wn,_n.offsetWidth)})}},rn.map(function(wn){return ce.createElement(Mn,{key:wn,columnKey:wn,onColumnResize:sn})})))}function ir(Ft){var Rt=Ft.data,rn=Ft.measureColumnWidth,sn=Se(Pe,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),wn=sn.prefixCls,fn=sn.getComponent,Hn=sn.onColumnResize,Wn=sn.flattenColumns,_n=sn.getRowKey,nr=sn.expandedKeys,lr=sn.childrenColumnName,or=sn.emptyNode,Nr=Wt(Rt,lr,nr,_n),Er=ce.useRef({renderWithProps:!1}),Sr=fn(["body","wrapper"],"tbody"),qr=fn(["body","row"],"tr"),br=fn(["body","cell"],"td"),Yr=fn(["body","cell"],"th"),Kr;Rt.length?Kr=Nr.map(function(Li,Hi){var ti=Li.record,Ti=Li.indent,ao=Li.index,si=_n(ti,Hi);return ce.createElement(dn,{key:si,rowKey:si,record:ti,index:Hi,renderIndex:ao,rowComponent:qr,cellComponent:br,scopeCellComponent:Yr,getRowKey:_n,indent:Ti})}):Kr=ce.createElement(ln,{expanded:!0,className:"".concat(wn,"-placeholder"),prefixCls:wn,component:qr,cellComponent:br,colSpan:Wn.length,isEmpty:!0},or);var li=ft(Wn);return ce.createElement(vt.Provider,{value:Er.current},ce.createElement(Sr,{className:"".concat(wn,"-tbody")},rn&&ce.createElement(Rn,{prefixCls:wn,columnsKey:li,onColumnResize:Hn}),Kr))}ir.displayName="Body";var qn=ue(ir),Cr=["expandable"],er="RC_TABLE_INTERNAL_COL_DEFINE";function Fr(Ft){var Rt=Ft.expandable,rn=(0,we.Z)(Ft,Cr),sn;return"expandable"in Ft?sn=(0,Be.Z)((0,Be.Z)({},rn),Rt):sn=rn,sn.showExpandColumn===!1&&(sn.expandIconColumnIndex=-1),sn}var jr=["columnType"];function fi(Ft){for(var Rt=Ft.colWidths,rn=Ft.columns,sn=Ft.columCount,wn=[],fn=sn||rn.length,Hn=!1,Wn=fn-1;Wn>=0;Wn-=1){var _n=Rt[Wn],nr=rn&&rn[Wn],lr=nr&&nr[er];if(_n||lr||Hn){var or=lr||{},Nr=or.columnType,Er=(0,we.Z)(or,jr);wn.unshift(ce.createElement("col",(0,ke.Z)({key:Wn,style:{width:_n}},Er))),Hn=!0}}return ce.createElement("colgroup",null,wn)}var Si=fi,tr=Ke(26390),gr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Qn(Ft,Rt){return(0,ce.useMemo)(function(){for(var rn=[],sn=0;sn<Rt;sn+=1){var wn=Ft[sn];if(wn!==void 0)rn[sn]=wn;else return null}return rn},[Ft.join("_"),Rt])}var it=ce.forwardRef(function(Ft,Rt){var rn=Ft.className,sn=Ft.noData,wn=Ft.columns,fn=Ft.flattenColumns,Hn=Ft.colWidths,Wn=Ft.columCount,_n=Ft.stickyOffsets,nr=Ft.direction,lr=Ft.fixHeader,or=Ft.stickyTopOffset,Nr=Ft.stickyBottomOffset,Er=Ft.stickyClassName,Sr=Ft.onScroll,qr=Ft.maxContentScroll,br=Ft.children,Yr=(0,we.Z)(Ft,gr),Kr=Se(Pe,["prefixCls","scrollbarSize","isSticky"]),li=Kr.prefixCls,Li=Kr.scrollbarSize,Hi=Kr.isSticky,ti=Hi&&!lr?0:Li,Ti=ce.useRef(null),ao=ce.useCallback(function(Vi){(0,ve.mH)(Rt,Vi),(0,ve.mH)(Ti,Vi)},[]);ce.useEffect(function(){var Vi;function ni(lo){var mo=lo,Yo=mo.currentTarget,Oo=mo.deltaX;Oo&&(Sr({currentTarget:Yo,scrollLeft:Yo.scrollLeft+Oo}),lo.preventDefault())}return(Vi=Ti.current)===null||Vi===void 0||Vi.addEventListener("wheel",ni),function(){var lo;(lo=Ti.current)===null||lo===void 0||lo.removeEventListener("wheel",ni)}},[]);var si=ce.useMemo(function(){return fn.every(function(Vi){return Vi.width})},[fn]),wi=fn[fn.length-1],oi={fixed:wi?wi.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(li,"-cell-scrollbar")}}},zr=(0,ce.useMemo)(function(){return ti?[].concat((0,tr.Z)(wn),[oi]):wn},[ti,wn]),vi=(0,ce.useMemo)(function(){return ti?[].concat((0,tr.Z)(fn),[oi]):fn},[ti,fn]),Fi=(0,ce.useMemo)(function(){var Vi=_n.right,ni=_n.left;return(0,Be.Z)((0,Be.Z)({},_n),{},{left:nr==="rtl"?[].concat((0,tr.Z)(ni.map(function(lo){return lo+ti})),[0]):ni,right:nr==="rtl"?Vi:[].concat((0,tr.Z)(Vi.map(function(lo){return lo+ti})),[0]),isSticky:Hi})},[ti,_n,Hi]),Ki=Qn(Hn,Wn);return ce.createElement("div",{style:(0,Be.Z)({overflow:"hidden"},Hi?{top:or,bottom:Nr}:{}),ref:ao,className:ze()(rn,(0,_e.Z)({},Er,!!Er))},ce.createElement("table",{style:{tableLayout:"fixed",visibility:sn||Ki?null:"hidden"}},(!sn||!qr||si)&&ce.createElement(Si,{colWidths:Ki?[].concat((0,tr.Z)(Ki),[ti]):[],columCount:Wn+1,columns:vi}),br((0,Be.Z)((0,Be.Z)({},Yr),{},{stickyOffsets:Fi,columns:zr,flattenColumns:vi}))))});it.displayName="FixedHolder";var Ur=ce.memo(it);function Rr(Ft){var Rt=Ft.cells,rn=Ft.stickyOffsets,sn=Ft.flattenColumns,wn=Ft.rowComponent,fn=Ft.cellComponent,Hn=Ft.tdCellComponent,Wn=Ft.onHeaderRow,_n=Ft.index,nr=Se(Pe,["prefixCls","direction"]),lr=nr.prefixCls,or=nr.direction,Nr;Wn&&(Nr=Wn(Rt.map(function(Sr){return Sr.column}),_n));var Er=ft(Rt.map(function(Sr){return Sr.column}));return ce.createElement(wn,Nr,Rt.map(function(Sr,qr){var br=Sr.column,Yr=St(Sr.colStart,Sr.colEnd,sn,rn,or,br),Kr;return br&&br.onHeaderCell&&(Kr=Sr.column.onHeaderCell(br)),ce.createElement(zt,(0,ke.Z)({},Sr,{scope:br.title?Sr.colSpan>1?"colgroup":"col":null,ellipsis:br.ellipsis,align:br.align,component:br.title?fn:Hn,prefixCls:lr,key:Er[qr]},Yr,{additionalProps:Kr,rowType:"header"}))}))}Rr.displayName="HeaderRow";var di=Rr;function Vr(Ft){var Rt=[];function rn(Hn,Wn){var _n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Rt[_n]=Rt[_n]||[];var nr=Wn,lr=Hn.filter(Boolean).map(function(or){var Nr={key:or.key,className:or.className||"",children:or.title,column:or,colStart:nr},Er=1,Sr=or.children;return Sr&&Sr.length>0&&(Er=rn(Sr,nr,_n+1).reduce(function(qr,br){return qr+br},0),Nr.hasSubColumns=!0),"colSpan"in or&&(Er=or.colSpan),"rowSpan"in or&&(Nr.rowSpan=or.rowSpan),Nr.colSpan=Er,Nr.colEnd=Nr.colStart+Er-1,Rt[_n].push(Nr),nr+=Er,Er});return lr}rn(Ft,0);for(var sn=Rt.length,wn=function(Wn){Rt[Wn].forEach(function(_n){!("rowSpan"in _n)&&!_n.hasSubColumns&&(_n.rowSpan=sn-Wn)})},fn=0;fn<sn;fn+=1)wn(fn);return Rt}function Br(Ft){var Rt=Ft.stickyOffsets,rn=Ft.columns,sn=Ft.flattenColumns,wn=Ft.onHeaderRow,fn=Se(Pe,["prefixCls","getComponent"]),Hn=fn.prefixCls,Wn=fn.getComponent,_n=ce.useMemo(function(){return Vr(rn)},[rn]),nr=Wn(["header","wrapper"],"thead"),lr=Wn(["header","row"],"tr"),or=Wn(["header","cell"],"th"),Nr=Wn(["header","cell"],"td");return ce.createElement(nr,{className:"".concat(Hn,"-thead")},_n.map(function(Er,Sr){var qr=ce.createElement(di,{key:Sr,flattenColumns:sn,cells:Er,stickyOffsets:Rt,rowComponent:lr,cellComponent:or,tdCellComponent:Nr,onHeaderRow:wn,index:Sr});return qr}))}var Xr=ue(Br),hr=Ke(38298);function un(Ft){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Rt=="number"?Rt:Rt.endsWith("%")?Ft*parseFloat(Rt)/100:null}function on(Ft,Rt){return ce.useMemo(function(){if(Rt&&Rt>0){var rn=0,sn=0;Ft.forEach(function(nr){var lr=un(Rt,nr.width);lr?rn+=lr:sn+=1});var wn=Rt-rn,fn=sn,Hn=wn/sn,Wn=0,_n=Ft.map(function(nr){var lr=(0,Be.Z)({},nr),or=un(Rt,lr.width);if(or)lr.width=or;else{var Nr=Math.floor(Hn);lr.width=fn===1?wn:Nr,wn-=Nr,fn-=1}return Wn+=lr.width,lr});return[_n,Wn]}return[Ft,Rt]},[Ft,Rt])}var Jt=["children"],jt=["fixed"];function Pn(Ft){return(0,hr.Z)(Ft).filter(function(Rt){return ce.isValidElement(Rt)}).map(function(Rt){var rn=Rt.key,sn=Rt.props,wn=sn.children,fn=(0,we.Z)(sn,Jt),Hn=(0,Be.Z)({key:rn},fn);return wn&&(Hn.children=Pn(wn)),Hn})}function Cn(Ft){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ft.filter(function(rn){return rn&&(0,je.Z)(rn)==="object"}).reduce(function(rn,sn,wn){var fn=sn.fixed,Hn=fn===!0?"left":fn,Wn="".concat(Rt,"-").concat(wn),_n=sn.children;return _n&&_n.length>0?[].concat((0,tr.Z)(rn),(0,tr.Z)(Cn(_n,Wn).map(function(nr){return(0,Be.Z)({fixed:Hn},nr)}))):[].concat((0,tr.Z)(rn),[(0,Be.Z)((0,Be.Z)({key:Wn},sn),{},{fixed:Hn})])},[])}function Kt(Ft){for(var Rt=!0,rn=0;rn<Ft.length;rn+=1){var sn=Ft[rn];if(Rt&&sn.fixed!=="left")Rt=!1;else if(!Rt&&sn.fixed==="left"){warning(!1,"Index ".concat(rn-1," of `columns` missing `fixed='left'` prop."));break}}for(var wn=!0,fn=Ft.length-1;fn>=0;fn-=1){var Hn=Ft[fn];if(wn&&Hn.fixed!=="right")wn=!1;else if(!wn&&Hn.fixed==="right"){warning(!1,"Index ".concat(fn+1," of `columns` missing `fixed='right'` prop."));break}}}function Dt(Ft){return Ft.map(function(Rt){var rn=Rt.fixed,sn=(0,we.Z)(Rt,jt),wn=rn;return rn==="left"?wn="right":rn==="right"&&(wn="left"),(0,Be.Z)({fixed:wn},sn)})}function pn(Ft,Rt){var rn=Ft.prefixCls,sn=Ft.columns,wn=Ft.children,fn=Ft.expandable,Hn=Ft.expandedKeys,Wn=Ft.columnTitle,_n=Ft.getRowKey,nr=Ft.onTriggerExpand,lr=Ft.expandIcon,or=Ft.rowExpandable,Nr=Ft.expandIconColumnIndex,Er=Ft.direction,Sr=Ft.expandRowByClick,qr=Ft.columnWidth,br=Ft.fixed,Yr=Ft.scrollWidth,Kr=ce.useMemo(function(){return sn||Pn(wn)},[sn,wn]),li=ce.useMemo(function(){if(fn){var wi,oi=Kr.slice();if(!oi.includes(tt)){var zr=Nr||0;zr>=0&&oi.splice(zr,0,tt)}var vi=oi.indexOf(tt);oi=oi.filter(function(ni,lo){return ni!==tt||lo===vi});var Fi=Kr[vi],Ki;(br==="left"||br)&&!Nr?Ki="left":(br==="right"||br)&&Nr===Kr.length?Ki="right":Ki=Fi?Fi.fixed:null;var Vi=(wi={},(0,_e.Z)(wi,er,{className:"".concat(rn,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,_e.Z)(wi,"title",Wn),(0,_e.Z)(wi,"fixed",Ki),(0,_e.Z)(wi,"className","".concat(rn,"-row-expand-icon-cell")),(0,_e.Z)(wi,"width",qr),(0,_e.Z)(wi,"render",function(lo,mo,Yo){var Oo=_n(mo,Yo),La=Hn.has(Oo),Ca=or?or(mo):!0,ho=lr({prefixCls:rn,expanded:La,expandable:Ca,record:mo,onExpand:nr});return Sr?ce.createElement("span",{onClick:function(Go){return Go.stopPropagation()}},ho):ho}),wi);return oi.map(function(ni){return ni===tt?Vi:ni})}return Kr.filter(function(ni){return ni!==tt})},[fn,Kr,_n,Hn,lr,Er]),Li=ce.useMemo(function(){var wi=li;return Rt&&(wi=Rt(wi)),wi.length||(wi=[{render:function(){return null}}]),wi},[Rt,li,Er]),Hi=ce.useMemo(function(){return Er==="rtl"?Dt(Cn(Li)):Cn(Li)},[Li,Er,Yr]),ti=on(Hi,Yr),Ti=(0,oe.Z)(ti,2),ao=Ti[0],si=Ti[1];return[Li,ao,si]}var yn=pn;function Jn(Ft){var Rt,rn=Ft.prefixCls,sn=Ft.record,wn=Ft.onExpand,fn=Ft.expanded,Hn=Ft.expandable,Wn="".concat(rn,"-row-expand-icon");if(!Hn)return ce.createElement("span",{className:ze()(Wn,"".concat(rn,"-row-spaced"))});var _n=function(lr){wn(sn,lr),lr.stopPropagation()};return ce.createElement("span",{className:ze()(Wn,(Rt={},(0,_e.Z)(Rt,"".concat(rn,"-row-expanded"),fn),(0,_e.Z)(Rt,"".concat(rn,"-row-collapsed"),!fn),Rt)),onClick:_n})}function bn(Ft,Rt,rn){var sn=[];function wn(fn){(fn||[]).forEach(function(Hn,Wn){sn.push(Rt(Hn,Wn)),wn(Hn[rn])})}return wn(Ft),sn}function Zt(Ft,Rt,rn){var sn=Fr(Ft),wn=sn.expandIcon,fn=sn.expandedRowKeys,Hn=sn.defaultExpandedRowKeys,Wn=sn.defaultExpandAllRows,_n=sn.expandedRowRender,nr=sn.onExpand,lr=sn.onExpandedRowsChange,or=sn.childrenColumnName,Nr=wn||Jn,Er=or||"children",Sr=ce.useMemo(function(){return _n?"row":Ft.expandable&&Ft.internalHooks===Pt&&Ft.expandable.__PARENT_RENDER_ICON__||Rt.some(function(Hi){return Hi&&(0,je.Z)(Hi)==="object"&&Hi[Er]})?"nest":!1},[!!_n,Rt]),qr=ce.useState(function(){return Hn||(Wn?bn(Rt,rn,Er):[])}),br=(0,oe.Z)(qr,2),Yr=br[0],Kr=br[1],li=ce.useMemo(function(){return new Set(fn||Yr||[])},[fn,Yr]),Li=ce.useCallback(function(Hi){var ti=rn(Hi,Rt.indexOf(Hi)),Ti,ao=li.has(ti);ao?(li.delete(ti),Ti=(0,tr.Z)(li)):Ti=[].concat((0,tr.Z)(li),[ti]),Kr(Ti),nr&&nr(!ao,Hi),lr&&lr(Ti)},[rn,li,Rt,nr,lr]);return[sn,Sr,li,Nr,Er,Li]}function jn(Ft,Rt,rn,sn){var wn=Ft.map(function(fn,Hn){return St(Hn,Hn,Ft,Rt,rn,sn==null?void 0:sn[Hn])});return(0,Ye.Z)(function(){return wn},[wn],function(fn,Hn){return!(0,me.Z)(fn,Hn)})}function Fn(Ft){var Rt=(0,ce.useRef)(Ft),rn=(0,ce.useState)({}),sn=(0,oe.Z)(rn,2),wn=sn[1],fn=(0,ce.useRef)(null),Hn=(0,ce.useRef)([]);function Wn(_n){Hn.current.push(_n);var nr=Promise.resolve();fn.current=nr,nr.then(function(){if(fn.current===nr){var lr=Hn.current,or=Rt.current;Hn.current=[],lr.forEach(function(Nr){Rt.current=Nr(Rt.current)}),fn.current=null,or!==Rt.current&&wn({})}})}return(0,ce.useEffect)(function(){return function(){fn.current=null}},[]),[Rt.current,Wn]}function ar(Ft){var Rt=(0,ce.useRef)(Ft||null),rn=(0,ce.useRef)();function sn(){window.clearTimeout(rn.current)}function wn(Hn){Rt.current=Hn,sn(),rn.current=window.setTimeout(function(){Rt.current=null,rn.current=void 0},100)}function fn(){return Rt.current}return(0,ce.useEffect)(function(){return sn},[]),[wn,fn]}function nn(){var Ft=ce.useState(-1),Rt=(0,oe.Z)(Ft,2),rn=Rt[0],sn=Rt[1],wn=ce.useState(-1),fn=(0,oe.Z)(wn,2),Hn=fn[0],Wn=fn[1],_n=ce.useCallback(function(nr,lr){sn(nr),Wn(lr)},[]);return[rn,Hn,_n]}var On=Ke(87746),an=(0,On.Z)()?window:null;function mn(Ft,Rt){var rn=(0,je.Z)(Ft)==="object"?Ft:{},sn=rn.offsetHeader,wn=sn===void 0?0:sn,fn=rn.offsetSummary,Hn=fn===void 0?0:fn,Wn=rn.offsetScroll,_n=Wn===void 0?0:Wn,nr=rn.getContainer,lr=nr===void 0?function(){return an}:nr,or=lr()||an;return ce.useMemo(function(){var Nr=!!Ft;return{isSticky:Nr,stickyClassName:Nr?"".concat(Rt,"-sticky-holder"):"",offsetHeader:wn,offsetSummary:Hn,offsetScroll:_n,container:or}},[_n,wn,Hn,Rt,or])}function Ln(Ft,Rt,rn){var sn=(0,ce.useMemo)(function(){for(var wn=[],fn=[],Hn=0,Wn=0,_n=0;_n<Rt;_n+=1)if(rn==="rtl"){fn[_n]=Wn,Wn+=Ft[_n]||0;var nr=Rt-_n-1;wn[nr]=Hn,Hn+=Ft[nr]||0}else{wn[_n]=Hn,Hn+=Ft[_n]||0;var lr=Rt-_n-1;fn[lr]=Wn,Wn+=Ft[lr]||0}return{left:wn,right:fn}},[Ft,Rt,rn]);return sn}var xn=Ln;function In(Ft){var Rt=Ft.className,rn=Ft.children;return ce.createElement("div",{className:Rt},rn)}var gn=In,Nn=Ke(8178),kn=Ke(21783),En=function(Rt,rn){var sn,wn,fn=Rt.scrollBodyRef,Hn=Rt.onScroll,Wn=Rt.offsetScroll,_n=Rt.container,nr=Se(Pe,"prefixCls"),lr=((sn=fn.current)===null||sn===void 0?void 0:sn.scrollWidth)||0,or=((wn=fn.current)===null||wn===void 0?void 0:wn.clientWidth)||0,Nr=lr&&or*(or/lr),Er=ce.useRef(),Sr=Fn({scrollLeft:0,isHiddenScrollBar:!1}),qr=(0,oe.Z)(Sr,2),br=qr[0],Yr=qr[1],Kr=ce.useRef({delta:0,x:0}),li=ce.useState(!1),Li=(0,oe.Z)(li,2),Hi=Li[0],ti=Li[1],Ti=function(){ti(!1)},ao=function(vi){vi.persist(),Kr.current.delta=vi.pageX-br.scrollLeft,Kr.current.x=0,ti(!0),vi.preventDefault()},si=function(vi){var Fi,Ki=vi||((Fi=window)===null||Fi===void 0?void 0:Fi.event),Vi=Ki.buttons;if(!Hi||Vi===0){Hi&&ti(!1);return}var ni=Kr.current.x+vi.pageX-Kr.current.x-Kr.current.delta;ni<=0&&(ni=0),ni+Nr>=or&&(ni=or-Nr),Hn({scrollLeft:ni/or*(lr+2)}),Kr.current.x=vi.pageX},wi=function(){if(fn.current){var vi=(0,kn.os)(fn.current).top,Fi=vi+fn.current.offsetHeight,Ki=_n===window?document.documentElement.scrollTop+window.innerHeight:(0,kn.os)(_n).top+_n.clientHeight;Fi-(0,It.Z)()<=Ki||vi>=Ki-Wn?Yr(function(Vi){return(0,Be.Z)((0,Be.Z)({},Vi),{},{isHiddenScrollBar:!0})}):Yr(function(Vi){return(0,Be.Z)((0,Be.Z)({},Vi),{},{isHiddenScrollBar:!1})})}},oi=function(vi){Yr(function(Fi){return(0,Be.Z)((0,Be.Z)({},Fi),{},{scrollLeft:vi/lr*or||0})})};return ce.useImperativeHandle(rn,function(){return{setScrollLeft:oi}}),ce.useEffect(function(){var zr=(0,Nn.Z)(document.body,"mouseup",Ti,!1),vi=(0,Nn.Z)(document.body,"mousemove",si,!1);return wi(),function(){zr.remove(),vi.remove()}},[Nr,Hi]),ce.useEffect(function(){var zr=(0,Nn.Z)(_n,"scroll",wi,!1),vi=(0,Nn.Z)(window,"resize",wi,!1);return function(){zr.remove(),vi.remove()}},[_n]),ce.useEffect(function(){br.isHiddenScrollBar||Yr(function(zr){var vi=fn.current;return vi?(0,Be.Z)((0,Be.Z)({},zr),{},{scrollLeft:vi.scrollLeft/vi.scrollWidth*vi.clientWidth}):zr})},[br.isHiddenScrollBar]),lr<=or||!Nr||br.isHiddenScrollBar?null:ce.createElement("div",{style:{height:(0,It.Z)(),width:or,bottom:Wn},className:"".concat(nr,"-sticky-scroll")},ce.createElement("div",{onMouseDown:ao,ref:Er,className:ze()("".concat(nr,"-sticky-scroll-bar"),(0,_e.Z)({},"".concat(nr,"-sticky-scroll-bar-active"),Hi)),style:{width:"".concat(Nr,"px"),transform:"translate3d(".concat(br.scrollLeft,"px, 0, 0)")}}))},$n=ce.forwardRef(En);function mr(Ft){return null}var Hr=mr;function Lr(Ft){return null}var en=Lr,ur="rc-table",Mr=[],pr={};function Ar(){return"No Data"}function Zr(Ft){var Rt,rn=(0,Be.Z)({rowKey:"key",prefixCls:ur,emptyText:Ar},Ft),sn=rn.prefixCls,wn=rn.className,fn=rn.rowClassName,Hn=rn.style,Wn=rn.data,_n=rn.rowKey,nr=rn.scroll,lr=rn.tableLayout,or=rn.direction,Nr=rn.title,Er=rn.footer,Sr=rn.summary,qr=rn.caption,br=rn.id,Yr=rn.showHeader,Kr=rn.components,li=rn.emptyText,Li=rn.onRow,Hi=rn.onHeaderRow,ti=rn.internalHooks,Ti=rn.transformColumns,ao=rn.internalRefs,si=rn.tailor,wi=rn.sticky,oi=Wn||Mr,zr=!!oi.length,vi=ti===Pt,Fi=ce.useCallback(function(qo,Ea){return(0,et.Z)(Kr,qo)||Ea},[Kr]),Ki=ce.useMemo(function(){return typeof _n=="function"?_n:function(qo){var Ea=qo&&qo[_n];return Ea}},[_n]),Vi=Fi(["body"]),ni=nn(),lo=(0,oe.Z)(ni,3),mo=lo[0],Yo=lo[1],Oo=lo[2],La=Zt(rn,oi,Ki),Ca=(0,oe.Z)(La,6),ho=Ca[0],_i=Ca[1],Go=Ca[2],ka=Ca[3],ma=Ca[4],rs=Ca[5],Xi=nr==null?void 0:nr.x,Ui=ce.useState(0),Yi=(0,oe.Z)(Ui,2),Ai=Yi[0],$o=Yi[1],ji=yn((0,Be.Z)((0,Be.Z)((0,Be.Z)({},rn),ho),{},{expandable:!!ho.expandedRowRender,columnTitle:ho.columnTitle,expandedKeys:Go,getRowKey:Ki,onTriggerExpand:rs,expandIcon:ka,expandIconColumnIndex:ho.expandIconColumnIndex,direction:or,scrollWidth:vi&&si&&typeof Xi=="number"?Xi:null}),vi?Ti:null),so=(0,oe.Z)(ji,3),Fo=so[0],Bo=so[1],bs=so[2],ss=bs!=null?bs:Xi,Hs=ce.useMemo(function(){return{columns:Fo,flattenColumns:Bo}},[Fo,Bo]),Jo=ce.useRef(),Ps=ce.useRef(),es=ce.useRef(),ps=ce.useRef(),$u=ce.useRef(),Qo=ce.useState(!1),ra=(0,oe.Z)(Qo,2),la=ra[0],Za=ra[1],gs=ce.useState(!1),Co=(0,oe.Z)(gs,2),ha=Co[0],ms=Co[1],fl=Fn(new Map),Hl=(0,oe.Z)(fl,2),Cl=Hl[0],eu=Hl[1],tu=ft(Bo),Gl=tu.map(function(qo){return Cl.get(qo)}),ta=ce.useMemo(function(){return Gl},[Gl.join("_")]),Ts=xn(ta,Bo.length,or),za=nr&&xt(nr.y),da=nr&&xt(ss)||!!ho.fixed,Wl=da&&Bo.some(function(qo){var Ea=qo.fixed;return Ea}),oc=ce.useRef(),nu=mn(wi,sn),Mu=nu.isSticky,Ku=nu.offsetHeader,El=nu.offsetSummary,Ko=nu.offsetScroll,va=nu.stickyClassName,ls=nu.container,ya=ce.useMemo(function(){return Sr==null?void 0:Sr(oi)},[Sr,oi]),Ho=(za||Mu)&&ce.isValidElement(ya)&&ya.type===Ee&&ya.props.fixed,vs,pl,gu;za&&(pl={overflowY:"scroll",maxHeight:nr.y}),da&&(vs={overflowX:"auto"},za||(pl={overflowY:"hidden"}),gu={width:ss===!0?"auto":ss,minWidth:"100%"});var cf=ce.useCallback(function(qo,Ea){(0,Et.Z)(Jo.current)&&eu(function(js){if(js.get(qo)!==Ea){var ru=new Map(js);return ru.set(qo,Ea),ru}return js})},[]),cn=ar(null),Pc=(0,oe.Z)(cn,2),Zu=Pc[0],hf=Pc[1];function gh(qo,Ea){Ea&&(typeof Ea=="function"?Ea(qo):Ea.scrollLeft!==qo&&(Ea.scrollLeft=qo,Ea.scrollLeft!==qo&&setTimeout(function(){Ea.scrollLeft=qo},0)))}var Yc=(0,Ue.Z)(function(qo){var Ea=qo.currentTarget,js=qo.scrollLeft,ru=or==="rtl",iu=typeof js=="number"?js:Ea.scrollLeft,Dd=Ea||pr;if(!hf()||hf()===Dd){var Tc;Zu(Dd),gh(iu,Ps.current),gh(iu,es.current),gh(iu,$u.current),gh(iu,(Tc=oc.current)===null||Tc===void 0?void 0:Tc.setScrollLeft)}var Vh=Ea||Ps.current;if(Vh){var mu=Vh.scrollWidth,ac=Vh.clientWidth;if(mu===ac){Za(!1),ms(!1);return}ru?(Za(-iu<mu-ac),ms(-iu>0)):(Za(iu>0),ms(iu<mu-ac))}}),Md=function(){da&&es.current?Yc({currentTarget:es.current}):(Za(!1),ms(!1))},Kp=function(Ea){var js=Ea.width;js!==Ai&&(Md(),$o(Jo.current?Jo.current.offsetWidth:js))},Ms=ce.useRef(!1);ce.useEffect(function(){Ms.current&&Md()},[da,Wn,Fo.length]),ce.useEffect(function(){Ms.current=!0},[]);var Kh=ce.useState(0),Ld=(0,oe.Z)(Kh,2),Zh=Ld[0],df=Ld[1],Vf=ce.useState(!0),ff=(0,oe.Z)(Vf,2),kd=ff[0],Ul=ff[1];ce.useEffect(function(){(!si||!vi)&&(es.current instanceof Element?df((0,It.o)(es.current).width):df((0,It.o)(ps.current).width)),Ul((0,ht.G)("position","sticky"))},[]),ce.useEffect(function(){vi&&ao&&(ao.body.current=es.current)});var mh=ce.useCallback(function(qo){return ce.createElement(ce.Fragment,null,ce.createElement(Xr,qo),Ho==="top"&&ce.createElement(He,qo,ya))},[Ho,ya]),pf=ce.useCallback(function(qo){return ce.createElement(He,qo,ya)},[ya]),Lu=Fi(["table"],"table"),Cc=ce.useMemo(function(){return lr||(Wl?ss==="max-content"?"auto":"fixed":za||Mu||Bo.some(function(qo){var Ea=qo.ellipsis;return Ea})?"fixed":"auto")},[za,Wl,Bo,lr,Mu]),vh,Jc={colWidths:ta,columCount:Bo.length,stickyOffsets:Ts,onHeaderRow:Hi,fixHeader:za,scroll:nr},gl=ce.useMemo(function(){return zr?null:typeof li=="function"?li():li},[zr,li]),Nd=ce.createElement(qn,{data:oi,measureColumnWidth:za||da||Mu}),Od=ce.createElement(Si,{colWidths:Bo.map(function(qo){var Ea=qo.width;return Ea}),columns:Bo}),$l=qr!=null?ce.createElement("caption",{className:"".concat(sn,"-caption")},qr):void 0,yh=(0,qt.Z)(rn,{data:!0}),Ad=(0,qt.Z)(rn,{aria:!0});if(za||Mu){var jd;typeof Vi=="function"?(jd=Vi(oi,{scrollbarSize:Zh,ref:es,onScroll:Yc}),Jc.colWidths=Bo.map(function(qo,Ea){var js=qo.width,ru=Ea===Bo.length-1?js-Zh:js;return typeof ru=="number"&&!Number.isNaN(ru)?ru:0})):jd=ce.createElement("div",{style:(0,Be.Z)((0,Be.Z)({},vs),pl),onScroll:Yc,ref:es,className:ze()("".concat(sn,"-body"))},ce.createElement(Lu,(0,ke.Z)({style:(0,Be.Z)((0,Be.Z)({},gu),{},{tableLayout:Cc})},Ad),$l,Od,Nd,!Ho&&ya&&ce.createElement(He,{stickyOffsets:Ts,flattenColumns:Bo,columns:Fo},ya)));var Ec=(0,Be.Z)((0,Be.Z)((0,Be.Z)({noData:!oi.length,maxContentScroll:da&&ss==="max-content"},Jc),Hs),{},{direction:or,stickyClassName:va,onScroll:Yc});vh=ce.createElement(ce.Fragment,null,Yr!==!1&&ce.createElement(Ur,(0,ke.Z)({},Ec,{stickyTopOffset:Ku,className:"".concat(sn,"-header"),ref:Ps}),mh),jd,Ho&&Ho!=="top"&&ce.createElement(Ur,(0,ke.Z)({},Ec,{stickyBottomOffset:El,className:"".concat(sn,"-summary"),ref:$u}),pf),Mu&&ce.createElement($n,{ref:oc,offsetScroll:Ko,scrollBodyRef:es,onScroll:Yc,container:ls}))}else vh=ce.createElement("div",{style:(0,Be.Z)((0,Be.Z)({},vs),pl),className:ze()("".concat(sn,"-content")),onScroll:Yc,ref:es},ce.createElement(Lu,(0,ke.Z)({style:(0,Be.Z)((0,Be.Z)({},gu),{},{tableLayout:Cc})},Ad),$l,Od,Yr!==!1&&ce.createElement(Xr,(0,ke.Z)({},Jc,Hs)),Nd,ya&&ce.createElement(He,{stickyOffsets:Ts,flattenColumns:Bo,columns:Fo},ya)));var il=ce.createElement("div",(0,ke.Z)({className:ze()(sn,wn,(Rt={},(0,_e.Z)(Rt,"".concat(sn,"-rtl"),or==="rtl"),(0,_e.Z)(Rt,"".concat(sn,"-ping-left"),la),(0,_e.Z)(Rt,"".concat(sn,"-ping-right"),ha),(0,_e.Z)(Rt,"".concat(sn,"-layout-fixed"),lr==="fixed"),(0,_e.Z)(Rt,"".concat(sn,"-fixed-header"),za),(0,_e.Z)(Rt,"".concat(sn,"-fixed-column"),Wl),(0,_e.Z)(Rt,"".concat(sn,"-scroll-horizontal"),da),(0,_e.Z)(Rt,"".concat(sn,"-has-fix-left"),Bo[0]&&Bo[0].fixed),(0,_e.Z)(Rt,"".concat(sn,"-has-fix-right"),Bo[Bo.length-1]&&Bo[Bo.length-1].fixed==="right"),Rt)),style:Hn,id:br,ref:Jo},yh),Nr&&ce.createElement(gn,{className:"".concat(sn,"-title")},Nr(oi)),ce.createElement("div",{ref:ps,className:"".concat(sn,"-container")},vh),Er&&ce.createElement(gn,{className:"".concat(sn,"-footer")},Er(oi)));da&&(il=ce.createElement(ct.Z,{onResize:Kp},il));var Id=jn(Bo,Ts,or,Fo),us=ce.useMemo(function(){return{scrollX:ss,prefixCls:sn,getComponent:Fi,scrollbarSize:Zh,direction:or,fixedInfoList:Id,isSticky:Mu,supportSticky:kd,componentWidth:Ai,fixHeader:za,fixColumn:Wl,horizonScroll:da,tableLayout:Cc,rowClassName:fn,expandedRowClassName:ho.expandedRowClassName,expandIcon:ka,expandableType:_i,expandRowByClick:ho.expandRowByClick,expandedRowRender:ho.expandedRowRender,onTriggerExpand:rs,expandIconColumnIndex:ho.expandIconColumnIndex,indentSize:ho.indentSize,allColumnsFixedLeft:Bo.every(function(qo){return qo.fixed==="left"}),emptyNode:gl,columns:Fo,flattenColumns:Bo,onColumnResize:cf,hoverStartRow:mo,hoverEndRow:Yo,onHover:Oo,rowExpandable:ho.rowExpandable,onRow:Li,getRowKey:Ki,expandedKeys:Go,childrenColumnName:ma}},[ss,sn,Fi,Zh,or,Id,Mu,kd,Ai,za,Wl,da,Cc,fn,ho.expandedRowClassName,ka,_i,ho.expandRowByClick,ho.expandedRowRender,rs,ho.expandIconColumnIndex,ho.indentSize,gl,Fo,Bo,cf,mo,Yo,Oo,ho.rowExpandable,Li,Ki,Go,ma]);return ce.createElement(Pe.Provider,{value:us},il)}function gi(Ft){return le(Zr,Ft)}var _r=gi();_r.EXPAND_COLUMN=tt,_r.INTERNAL_HOOKS=Pt,_r.Column=Hr,_r.ColumnGroup=en,_r.Summary=We;var vr=_r,Qr=Ke(50030),An=Le(null),ki=Le(null);function Dn(Ft,Rt,rn){var sn=Rt||1;return rn[Ft+sn]-(rn[Ft]||0)}function ui(Ft){var Rt=Ft.rowInfo,rn=Ft.column,sn=Ft.colIndex,wn=Ft.indent,fn=Ft.index,Hn=Ft.renderIndex,Wn=Ft.record,_n=Ft.style,nr=Ft.className,lr=Ft.inverse,or=Ft.getHeight,Nr=rn.render,Er=rn.dataIndex,Sr=rn.className,qr=rn.width,br=Se(ki,["columnsOffset"]),Yr=br.columnsOffset,Kr=Xt(Rt,rn,sn,wn,fn),li=Kr.key,Li=Kr.fixedInfo,Hi=Kr.appendCellNode,ti=Kr.additionalCellProps,Ti=ti.style,ao=ti.colSpan,si=ao===void 0?1:ao,wi=ti.rowSpan,oi=wi===void 0?1:wi,zr=sn-1,vi=Dn(zr,si,Yr),Fi=si>1?qr-vi:0,Ki=(0,Be.Z)((0,Be.Z)((0,Be.Z)({},Ti),_n),{},{flex:"0 0 ".concat(vi,"px"),width:"".concat(vi,"px"),marginRight:Fi,pointerEvents:"auto"}),Vi=ce.useMemo(function(){return lr?oi<=1:si===0||oi===0||oi>1},[oi,si,lr]);Vi?Ki.visibility="hidden":lr&&(Ki.height=or==null?void 0:or(oi));var ni=Vi?function(){return null}:Nr,lo={};return(oi===0||si===0)&&(lo.rowSpan=1,lo.colSpan=1),ce.createElement(zt,(0,ke.Z)({className:ze()(Sr,nr),ellipsis:rn.ellipsis,align:rn.align,scope:rn.rowScope,component:"div",prefixCls:Rt.prefixCls,key:li,record:Wn,index:fn,renderIndex:Hn,dataIndex:Er,render:ni,shouldCellUpdate:rn.shouldCellUpdate},Li,{appendNode:Hi,additionalProps:(0,Be.Z)((0,Be.Z)({},ti),{},{style:Ki},lo)}))}var fo=ui,Mi=["data","index","className","rowKey","style","extra","getHeight"],Zo=ce.forwardRef(function(Ft,Rt){var rn=Ft.data,sn=Ft.index,wn=Ft.className,fn=Ft.rowKey,Hn=Ft.style,Wn=Ft.extra,_n=Ft.getHeight,nr=(0,we.Z)(Ft,Mi),lr=rn.record,or=rn.indent,Nr=rn.index,Er=Se(Pe,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Sr=Er.scrollX,qr=Er.flattenColumns,br=Er.prefixCls,Yr=Er.fixColumn,Kr=Er.componentWidth,li=kt(lr,fn,sn,or),Li=li.rowSupportExpand,Hi=li.expanded,ti=li.rowProps,Ti=li.expandedRowRender,ao=li.expandedRowClassName,si;if(Li&&Hi){var wi=Ti(lr,sn,or+1,Hi),oi=ao==null?void 0:ao(lr,sn,or),zr={};Yr&&(zr={style:(0,_e.Z)({},"--virtual-width","".concat(Kr,"px"))});var vi="".concat(br,"-expanded-row-cell");si=ce.createElement("div",{className:ze()("".concat(br,"-expanded-row"),"".concat(br,"-expanded-row-level-").concat(or+1),oi)},ce.createElement(zt,{component:"div",prefixCls:br,className:ze()(vi,(0,_e.Z)({},"".concat(vi,"-fixed"),Yr)),additionalProps:zr},wi))}var Fi=(0,Be.Z)((0,Be.Z)({},Hn),{},{width:Sr});Wn&&(Fi.position="absolute",Fi.pointerEvents="none");var Ki=ce.createElement("div",(0,ke.Z)({},ti,nr,{ref:Li?null:Rt,className:ze()(wn,"".concat(br,"-row"),ti==null?void 0:ti.className,(0,_e.Z)({},"".concat(br,"-row-extra"),Wn)),style:(0,Be.Z)((0,Be.Z)({},Fi),ti==null?void 0:ti.style)}),qr.map(function(Vi,ni){return ce.createElement(fo,{key:ni,rowInfo:li,column:Vi,colIndex:ni,indent:or,index:sn,renderIndex:Nr,record:lr,inverse:Wn,getHeight:_n})}));return Li?ce.createElement("div",{ref:Rt},Ki,si):Ki}),co=ue(Zo),$r=co,Gr=ce.forwardRef(function(Ft,Rt){var rn=Ft.data,sn=Ft.onScroll,wn=Se(Pe,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),fn=wn.flattenColumns,Hn=wn.onColumnResize,Wn=wn.getRowKey,_n=wn.expandedKeys,nr=wn.prefixCls,lr=wn.childrenColumnName,or=wn.emptyNode,Nr=wn.scrollX,Er=Se(An),Sr=Er.scrollY,qr=Er.listItemHeight,br=ce.useRef(),Yr=Wt(rn,lr,_n,Wn),Kr=ce.useMemo(function(){var si=0;return fn.map(function(wi){var oi=wi.width,zr=wi.key;return si+=oi,[zr,oi,si]})},[fn]),li=ce.useMemo(function(){return Kr.map(function(si){return si[2]})},[Kr]);ce.useEffect(function(){Kr.forEach(function(si){var wi=(0,oe.Z)(si,2),oi=wi[0],zr=wi[1];Hn(oi,zr)})},[Kr]),ce.useImperativeHandle(Rt,function(){var si={};return Object.defineProperty(si,"scrollLeft",{get:function(){var oi;return((oi=br.current)===null||oi===void 0?void 0:oi.getScrollInfo().x)||0},set:function(oi){var zr;(zr=br.current)===null||zr===void 0||zr.scrollTo({left:oi})}}),si});var Li=function(wi,oi){var zr,vi=(zr=Yr[oi])===null||zr===void 0?void 0:zr.record,Fi=wi.onCell;if(Fi){var Ki,Vi=Fi(vi,oi);return(Ki=Vi==null?void 0:Vi.rowSpan)!==null&&Ki!==void 0?Ki:1}return 1},Hi=function(wi){var oi=wi.start,zr=wi.end,vi=wi.getSize,Fi=wi.offsetY;if(zr<0)return null;for(var Ki=fn.filter(function(Xi){return Li(Xi,oi)===0}),Vi=oi,ni=function(Ui){if(Ki=Ki.filter(function(Yi){return Li(Yi,Ui)===0}),!Ki.length)return Vi=Ui,"break"},lo=oi;lo>=0;lo-=1){var mo=ni(lo);if(mo==="break")break}for(var Yo=fn.filter(function(Xi){return Li(Xi,zr)!==1}),Oo=zr,La=function(Ui){if(Yo=Yo.filter(function(Yi){return Li(Yi,Ui)!==1}),!Yo.length)return Oo=Math.max(Ui-1,zr),"break"},Ca=zr;Ca<Yr.length;Ca+=1){var ho=La(Ca);if(ho==="break")break}for(var _i=[],Go=function(Ui){var Yi=Yr[Ui];if(!Yi)return"continue";fn.some(function(Ai){return Li(Ai,Ui)>1})&&_i.push(Ui)},ka=Vi;ka<=Oo;ka+=1)var ma=Go(ka);var rs=_i.map(function(Xi){var Ui=Yr[Xi],Yi=Wn(Ui.record,Xi),Ai=function(so){var Fo=Xi+so-1,Bo=Wn(Yr[Fo].record,Fo),bs=vi(Yi,Bo);return bs.bottom-bs.top},$o=vi(Yi);return ce.createElement($r,{key:Xi,data:Ui,rowKey:Yi,index:Xi,style:{top:-Fi+$o.top},extra:!0,getHeight:Ai})});return rs},ti=ce.useMemo(function(){return{columnsOffset:li}},[li]),Ti="".concat(nr,"-tbody"),ao;return Yr.length?ao=ce.createElement(Qr.Z,{fullHeight:!1,ref:br,className:ze()(Ti,"".concat(Ti,"-virtual")),height:Sr,itemHeight:qr||24,data:Yr,itemKey:function(wi){return Wn(wi.record)},scrollWidth:Nr,onVirtualScroll:function(wi){var oi=wi.x;sn({scrollLeft:oi})},extraRender:Hi},function(si,wi,oi){var zr=Wn(si.record,wi);return ce.createElement($r,(0,ke.Z)({data:si,rowKey:zr,index:wi},oi))}):ao=ce.createElement("div",{className:ze()("".concat(nr,"-placeholder"))},ce.createElement(zt,{component:"div",prefixCls:nr},or)),ce.createElement(ki.Provider,{value:ti},ao)}),Ni=ue(Gr),Wi=Ni,dr=function(Rt,rn){var sn=rn.ref,wn=rn.onScroll;return ce.createElement(Wi,{ref:sn,data:Rt,onScroll:wn})},Lt=100;function Pi(Ft){var Rt=Ft.columns,rn=Ft.scroll,sn=Ft.prefixCls,wn=sn===void 0?ur:sn,fn=Ft.className,Hn=Ft.listItemHeight,Wn=rn||{},_n=Wn.x,nr=Wn.y;typeof _n!="number"&&(_n=((Rt||[]).length+1)*Lt),typeof nr!="number"&&(nr=500);var lr=ce.useMemo(function(){return{scrollY:nr,listItemHeight:Hn}},[nr,Hn]);return ce.createElement(An.Provider,{value:lr},ce.createElement(vr,(0,ke.Z)({},Ft,{className:ze()(fn,"".concat(wn,"-virtual")),scroll:(0,Be.Z)((0,Be.Z)({},rn),{},{x:_n}),components:{body:dr},columns:Rt,internalHooks:Pt,tailor:!0})))}function Mo(Ft){return le(Pi,Ft)}var Oi=Mo(),wo=null;function Lo(Ft){return null}var ko=Lo;function xi(Ft){return null}var ci=xi,ii=Ke(64002),Ji=Ke(68031),Or=Ke(36355),Ir=Ke(93891),ai=Ke(19716),Xn=Ke(8628),no=Ke(31724),po=Ke(19871),Vo=Ke(71418),To=Ke(88088);function ea(Ft){return function(rn){let{prefixCls:sn,onExpand:wn,record:fn,expanded:Hn,expandable:Wn}=rn;const _n=`${sn}-row-expand-icon`;return ce.createElement("button",{type:"button",onClick:nr=>{wn(fn,nr),nr.stopPropagation()},className:ze()(_n,{[`${_n}-spaced`]:!Wn,[`${_n}-expanded`]:Wn&&Hn,[`${_n}-collapsed`]:Wn&&!Hn}),"aria-label":Hn?Ft.collapse:Ft.expand,"aria-expanded":Hn})}}var ba=ea;function Ia(Ft,Rt){return"key"in Ft&&Ft.key!==void 0&&Ft.key!==null?Ft.key:Ft.dataIndex?Array.isArray(Ft.dataIndex)?Ft.dataIndex.join("."):Ft.dataIndex:Rt}function Va(Ft,Rt){return Rt?`${Rt}-${Ft}`:`${Ft}`}function xs(Ft,Rt){return typeof Ft=="function"?Ft(Rt):Ft}function fs(Ft,Rt){const rn=xs(Ft,Rt);return Object.prototype.toString.call(rn)==="[object Object]"?"":rn}var Tn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},qa=Tn,jl=Ke(31533),Il=function(Rt,rn){return ce.createElement(jl.Z,(0,ke.Z)({},Rt,{ref:rn,icon:qa}))},Zi=ce.forwardRef(Il),jo=Zi,pa=Ke(56762);function No(Ft){const Rt=ce.useRef(Ft),rn=(0,pa.Z)();return[()=>Rt.current,sn=>{Rt.current=sn,rn()}]}var Qi=Ke(3113),Po=Ke(24905),Wa=Ke(38854),Ei=Ke(64165),ro=Ke(20834),eo=Ke(40875),kr=Ke(5112),Da=Ke(99682),Fa=Ke(56981),Cs=Ke(92832);function Dl(Ft){let{value:Rt,onChange:rn,filterSearch:sn,tablePrefixCls:wn,locale:fn}=Ft;return sn?ce.createElement("div",{className:`${wn}-filter-dropdown-search`},ce.createElement(Cs.default,{prefix:ce.createElement(Fa.Z,null),placeholder:fn.filterSearchPlaceholder,onChange:rn,value:Rt,htmlSize:1,className:`${wn}-filter-dropdown-search-input`})):null}var ql=Dl,wr=Ke(85108);const oa=Ft=>{const{keyCode:Rt}=Ft;Rt===wr.Z.ENTER&&Ft.stopPropagation()};var bl=ce.forwardRef((Ft,Rt)=>ce.createElement("div",{className:Ft.className,onClick:rn=>rn.stopPropagation(),onKeyDown:oa,ref:Rt},Ft.children));function Fl(Ft){let Rt=[];return(Ft||[]).forEach(rn=>{let{value:sn,children:wn}=rn;Rt.push(sn),wn&&(Rt=[].concat((0,tr.Z)(Rt),(0,tr.Z)(Fl(wn))))}),Rt}function Bl(Ft){return Ft.some(Rt=>{let{children:rn}=Rt;return rn})}function Di(Ft,Rt){return typeof Rt=="string"||typeof Rt=="number"?Rt==null?void 0:Rt.toString().toLowerCase().includes(Ft.trim().toLowerCase()):!1}function mc(Ft){let{filters:Rt,prefixCls:rn,filteredKeys:sn,filterMultiple:wn,searchValue:fn,filterSearch:Hn}=Ft;return Rt.map((Wn,_n)=>{const nr=String(Wn.value);if(Wn.children)return{key:nr||_n,label:Wn.text,popupClassName:`${rn}-dropdown-submenu`,children:mc({filters:Wn.children,prefixCls:rn,filteredKeys:sn,filterMultiple:wn,searchValue:fn,filterSearch:Hn})};const lr=wn?Po.default:kr.ZP,or={key:Wn.value!==void 0?nr:_n,label:ce.createElement(ce.Fragment,null,ce.createElement(lr,{checked:sn.includes(nr)}),ce.createElement("span",null,Wn.text))};return fn.trim()?typeof Hn=="function"?Hn(fn,Wn)?or:null:Di(fn,Wn.text)?or:null:or})}function el(Ft){var Rt,rn;const{tablePrefixCls:sn,prefixCls:wn,column:fn,dropdownPrefixCls:Hn,columnKey:Wn,filterMultiple:_n,filterMode:nr="menu",filterSearch:lr=!1,filterState:or,triggerFilter:Nr,locale:Er,children:Sr,getPopupContainer:qr}=Ft,{filterDropdownOpen:br,onFilterDropdownOpenChange:Yr,filterResetToDefaultFilteredValue:Kr,defaultFilteredValue:li,filterDropdownVisible:Li,onFilterDropdownVisibleChange:Hi}=fn,[ti,Ti]=ce.useState(!1),ao=!!(or&&(!((Rt=or.filteredKeys)===null||Rt===void 0)&&Rt.length||or.forceFiltered)),si=ji=>{Ti(ji),Yr==null||Yr(ji),Hi==null||Hi(ji)},wi=(rn=br!=null?br:Li)!==null&&rn!==void 0?rn:ti,oi=or==null?void 0:or.filteredKeys,[zr,vi]=No(oi||[]),Fi=ji=>{let{selectedKeys:so}=ji;vi(so)},Ki=(ji,so)=>{let{node:Fo,checked:Bo}=so;Fi(_n?{selectedKeys:ji}:{selectedKeys:Bo&&Fo.key?[Fo.key]:[]})};ce.useEffect(()=>{ti&&Fi({selectedKeys:oi||[]})},[oi]);const[Vi,ni]=ce.useState([]),lo=ji=>{ni(ji)},[mo,Yo]=ce.useState(""),Oo=ji=>{const{value:so}=ji.target;Yo(so)};ce.useEffect(()=>{ti||Yo("")},[ti]);const La=ji=>{const so=ji&&ji.length?ji:null;if(so===null&&(!or||!or.filteredKeys)||(0,me.Z)(so,or==null?void 0:or.filteredKeys,!0))return null;Nr({column:fn,key:Wn,filteredKeys:so})},Ca=()=>{si(!1),La(zr())},ho=function(){let{confirm:ji,closeDropdown:so}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ji&&La([]),so&&si(!1),Yo(""),vi(Kr?(li||[]).map(Fo=>String(Fo)):[])},_i=function(){let{closeDropdown:ji}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ji&&si(!1),La(zr())},Go=ji=>{ji&&oi!==void 0&&vi(oi||[]),si(ji),!ji&&!fn.filterDropdown&&Ca()},ka=ze()({[`${Hn}-menu-without-submenu`]:!Bl(fn.filters||[])}),ma=ji=>{if(ji.target.checked){const so=Fl(fn==null?void 0:fn.filters).map(Fo=>String(Fo));vi(so)}else vi([])},rs=ji=>{let{filters:so}=ji;return(so||[]).map((Fo,Bo)=>{const bs=String(Fo.value),ss={title:Fo.text,key:Fo.value!==void 0?bs:Bo};return Fo.children&&(ss.children=rs({filters:Fo.children})),ss})},Xi=ji=>{var so;return Object.assign(Object.assign({},ji),{text:ji.title,value:ji.key,children:((so=ji.children)===null||so===void 0?void 0:so.map(Fo=>Xi(Fo)))||[]})};let Ui;if(typeof fn.filterDropdown=="function")Ui=fn.filterDropdown({prefixCls:`${Hn}-custom`,setSelectedKeys:ji=>Fi({selectedKeys:ji}),selectedKeys:zr(),confirm:_i,clearFilters:ho,filters:fn.filters,visible:wi,close:()=>{si(!1)}});else if(fn.filterDropdown)Ui=fn.filterDropdown;else{const ji=zr()||[],so=()=>(fn.filters||[]).length===0?ce.createElement(Ei.Z,{image:Ei.Z.PRESENTED_IMAGE_SIMPLE,description:Er.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):nr==="tree"?ce.createElement(ce.Fragment,null,ce.createElement(ql,{filterSearch:lr,value:mo,onChange:Oo,tablePrefixCls:sn,locale:Er}),ce.createElement("div",{className:`${sn}-filter-dropdown-tree`},_n?ce.createElement(Po.default,{checked:ji.length===Fl(fn.filters).length,indeterminate:ji.length>0&&ji.length<Fl(fn.filters).length,className:`${sn}-filter-dropdown-checkall`,onChange:ma},Er.filterCheckall):null,ce.createElement(Da.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:_n,checkStrictly:!_n,className:`${Hn}-menu`,onCheck:Ki,checkedKeys:ji,selectedKeys:ji,showIcon:!1,treeData:rs({filters:fn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:mo.trim()?Bo=>typeof lr=="function"?lr(mo,Xi(Bo)):Di(mo,Bo.title):void 0}))):ce.createElement(ce.Fragment,null,ce.createElement(ql,{filterSearch:lr,value:mo,onChange:Oo,tablePrefixCls:sn,locale:Er}),ce.createElement(ro.default,{selectable:!0,multiple:_n,prefixCls:`${Hn}-menu`,className:ka,onSelect:Fi,onDeselect:Fi,selectedKeys:ji,getPopupContainer:qr,openKeys:Vi,onOpenChange:lo,items:mc({filters:fn.filters||[],filterSearch:lr,prefixCls:wn,filteredKeys:zr(),filterMultiple:_n,searchValue:mo})})),Fo=()=>Kr?(0,me.Z)((li||[]).map(Bo=>String(Bo)),ji,!0):ji.length===0;Ui=ce.createElement(ce.Fragment,null,so(),ce.createElement("div",{className:`${wn}-dropdown-btns`},ce.createElement(Qi.ZP,{type:"link",size:"small",disabled:Fo(),onClick:()=>ho()},Er.filterReset),ce.createElement(Qi.ZP,{type:"primary",size:"small",onClick:Ca},Er.filterConfirm)))}fn.filterDropdown&&(Ui=ce.createElement(eo.J,{selectable:void 0},Ui));const Yi=()=>ce.createElement(bl,{className:`${wn}-dropdown`},Ui);let Ai;typeof fn.filterIcon=="function"?Ai=fn.filterIcon(ao):fn.filterIcon?Ai=fn.filterIcon:Ai=ce.createElement(jo,null);const{direction:$o}=ce.useContext(Or.E_);return ce.createElement("div",{className:`${wn}-column`},ce.createElement("span",{className:`${sn}-column-title`},Sr),ce.createElement(Wa.Z,{dropdownRender:Yi,trigger:["click"],open:wi,onOpenChange:Go,getPopupContainer:qr,placement:$o==="rtl"?"bottomLeft":"bottomRight"},ce.createElement("span",{role:"button",tabIndex:-1,className:ze()(`${wn}-trigger`,{active:ao}),onClick:ji=>{ji.stopPropagation()}},Ai)))}var tl=el;function As(Ft,Rt,rn){let sn=[];return(Ft||[]).forEach((wn,fn)=>{var Hn;const Wn=Va(fn,rn);if(wn.filters||"filterDropdown"in wn||"onFilter"in wn)if("filteredValue"in wn){let _n=wn.filteredValue;"filterDropdown"in wn||(_n=(Hn=_n==null?void 0:_n.map(String))!==null&&Hn!==void 0?Hn:_n),sn.push({column:wn,key:Ia(wn,Wn),filteredKeys:_n,forceFiltered:wn.filtered})}else sn.push({column:wn,key:Ia(wn,Wn),filteredKeys:Rt&&wn.defaultFilteredValue?wn.defaultFilteredValue:void 0,forceFiltered:wn.filtered});"children"in wn&&(sn=[].concat((0,tr.Z)(sn),(0,tr.Z)(As(wn.children,Rt,Wn))))}),sn}function Eu(Ft,Rt,rn,sn,wn,fn,Hn,Wn){return rn.map((_n,nr)=>{const lr=Va(nr,Wn),{filterMultiple:or=!0,filterMode:Nr,filterSearch:Er}=_n;let Sr=_n;if(Sr.filters||Sr.filterDropdown){const qr=Ia(Sr,lr),br=sn.find(Yr=>{let{key:Kr}=Yr;return qr===Kr});Sr=Object.assign(Object.assign({},Sr),{title:Yr=>ce.createElement(tl,{tablePrefixCls:Ft,prefixCls:`${Ft}-filter`,dropdownPrefixCls:Rt,column:Sr,columnKey:qr,filterState:br,filterMultiple:or,filterMode:Nr,filterSearch:Er,triggerFilter:fn,locale:wn,getPopupContainer:Hn},xs(_n.title,Yr))})}return"children"in Sr&&(Sr=Object.assign(Object.assign({},Sr),{children:Eu(Ft,Rt,Sr.children,sn,wn,fn,Hn,lr)})),Sr})}function Ru(Ft){const Rt={};return Ft.forEach(rn=>{let{key:sn,filteredKeys:wn,column:fn}=rn;const{filters:Hn,filterDropdown:Wn}=fn;if(Wn)Rt[sn]=wn||null;else if(Array.isArray(wn)){const _n=Fl(Hn);Rt[sn]=_n.filter(nr=>wn.includes(String(nr)))}else Rt[sn]=null}),Rt}function _s(Ft,Rt){return Rt.reduce((rn,sn)=>{const{column:{onFilter:wn,filters:fn},filteredKeys:Hn}=sn;return wn&&Hn&&Hn.length?rn.filter(Wn=>Hn.some(_n=>{const nr=Fl(fn),lr=nr.findIndex(Nr=>String(Nr)===String(_n)),or=lr!==-1?nr[lr]:_n;return wn(or,Wn)})):rn},Ft)}const hl=Ft=>Ft.flatMap(Rt=>"children"in Rt?[Rt].concat((0,tr.Z)(hl(Rt.children||[]))):[Rt]);function Hc(Ft){let{prefixCls:Rt,dropdownPrefixCls:rn,mergedColumns:sn,onFilterChange:wn,getPopupContainer:fn,locale:Hn}=Ft;const Wn=ce.useMemo(()=>hl(sn||[]),[sn]),[_n,nr]=ce.useState(()=>As(Wn,!0)),lr=ce.useMemo(()=>{const Sr=As(Wn,!1);if(Sr.length===0)return Sr;let qr=!0,br=!0;if(Sr.forEach(Yr=>{let{filteredKeys:Kr}=Yr;Kr!==void 0?qr=!1:br=!1}),qr){const Yr=(Wn||[]).map((Kr,li)=>Ia(Kr,Va(li)));return _n.filter(Kr=>{let{key:li}=Kr;return Yr.includes(li)}).map(Kr=>{const li=Wn[Yr.findIndex(Li=>Li===Kr.key)];return Object.assign(Object.assign({},Kr),{column:Object.assign(Object.assign({},Kr.column),li),forceFiltered:li.filtered})})}return Sr},[Wn,_n]),or=ce.useMemo(()=>Ru(lr),[lr]),Nr=Sr=>{const qr=lr.filter(br=>{let{key:Yr}=br;return Yr!==Sr.key});qr.push(Sr),nr(qr),wn(Ru(qr),qr)};return[Sr=>Eu(Rt,rn,Sr,lr,Hn,Nr,fn),lr,or]}var hh=Hc;function Gc(Ft,Rt,rn){const sn=ce.useRef({});function wn(fn){if(!sn.current||sn.current.data!==Ft||sn.current.childrenColumnName!==Rt||sn.current.getRowKey!==rn){let Wn=function(_n){_n.forEach((nr,lr)=>{const or=rn(nr,lr);Hn.set(or,nr),nr&&typeof nr=="object"&&Rt in nr&&Wn(nr[Rt]||[])})};const Hn=new Map;Wn(Ft),sn.current={data:Ft,childrenColumnName:Rt,kvMap:Hn,getRowKey:rn}}return sn.current.kvMap.get(fn)}return[wn]}var Wh=Ke(50371),Wc=function(Ft,Rt){var rn={};for(var sn in Ft)Object.prototype.hasOwnProperty.call(Ft,sn)&&Rt.indexOf(sn)<0&&(rn[sn]=Ft[sn]);if(Ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wn=0,sn=Object.getOwnPropertySymbols(Ft);wn<sn.length;wn++)Rt.indexOf(sn[wn])<0&&Object.prototype.propertyIsEnumerable.call(Ft,sn[wn])&&(rn[sn[wn]]=Ft[sn[wn]]);return rn};const vc=10;function _u(Ft,Rt){const rn={current:Ft.current,pageSize:Ft.pageSize};return Object.keys(Rt&&typeof Rt=="object"?Rt:{}).forEach(wn=>{const fn=Ft[wn];typeof fn!="function"&&(rn[wn]=fn)}),rn}function Rl(Ft,Rt,rn){const sn=rn&&typeof rn=="object"?rn:{},{total:wn=0}=sn,fn=Wc(sn,["total"]),[Hn,Wn]=(0,ce.useState)(()=>({current:"defaultCurrent"in fn?fn.defaultCurrent:1,pageSize:"defaultPageSize"in fn?fn.defaultPageSize:vc})),_n=(0,Wh.Z)(Hn,fn,{total:wn>0?wn:Ft}),nr=Math.ceil((wn||Ft)/_n.pageSize);_n.current>nr&&(_n.current=nr||1);const lr=(Nr,Er)=>{Wn({current:Nr!=null?Nr:1,pageSize:Er||_n.pageSize})},or=(Nr,Er)=>{var Sr;rn&&((Sr=rn.onChange)===null||Sr===void 0||Sr.call(rn,Nr,Er)),lr(Nr,Er),Rt(Nr,Er||(_n==null?void 0:_n.pageSize))};return rn===!1?[{},()=>{}]:[Object.assign(Object.assign({},_n),{onChange:or}),lr]}var dh=Rl,Uc=Ke(76995),yc=Ke(35654),qi=Ke(90782),Io=Ke(71430),Es=Ke(35788);const Xa={},Ba="SELECT_ALL",ua="SELECT_INVERT",Pa="SELECT_NONE",$a=[],Ra=(Ft,Rt)=>{let rn=[];return(Rt||[]).forEach(sn=>{rn.push(sn),sn&&typeof sn=="object"&&Ft in sn&&(rn=[].concat((0,tr.Z)(rn),(0,tr.Z)(Ra(Ft,sn[Ft]))))}),rn};var _l=(Ft,Rt)=>{const{preserveSelectedRowKeys:rn,selectedRowKeys:sn,defaultSelectedRowKeys:wn,getCheckboxProps:fn,onChange:Hn,onSelect:Wn,onSelectAll:_n,onSelectInvert:nr,onSelectNone:lr,onSelectMultiple:or,columnWidth:Nr,type:Er,selections:Sr,fixed:qr,renderCell:br,hideSelectAll:Yr,checkStrictly:Kr=!0}=Rt||{},{prefixCls:li,data:Li,pageData:Hi,getRecordByKey:ti,getRowKey:Ti,expandType:ao,childrenColumnName:si,locale:wi,getPopupContainer:oi}=Ft,[zr,vi]=(0,Es.Z)(sn||wn||$a,{value:sn}),Fi=ce.useRef(new Map),Ki=(0,ce.useCallback)(Xi=>{if(rn){const Ui=new Map;Xi.forEach(Yi=>{let Ai=ti(Yi);!Ai&&Fi.current.has(Yi)&&(Ai=Fi.current.get(Yi)),Ui.set(Yi,Ai)}),Fi.current=Ui}},[ti,rn]);ce.useEffect(()=>{Ki(zr)},[zr]);const{keyEntities:Vi}=(0,ce.useMemo)(()=>{if(Kr)return{keyEntities:null};let Xi=Li;if(rn){const Ui=new Set(Li.map((Ai,$o)=>Ti(Ai,$o))),Yi=Array.from(Fi.current).reduce((Ai,$o)=>{let[ji,so]=$o;return Ui.has(ji)?Ai:Ai.concat(so)},[]);Xi=[].concat((0,tr.Z)(Xi),(0,tr.Z)(Yi))}return(0,Io.I8)(Xi,{externalGetKey:Ti,childrenPropName:si})},[Li,Ti,Kr,si,rn]),ni=(0,ce.useMemo)(()=>Ra(si,Hi),[si,Hi]),lo=(0,ce.useMemo)(()=>{const Xi=new Map;return ni.forEach((Ui,Yi)=>{const Ai=Ti(Ui,Yi),$o=(fn?fn(Ui):null)||{};Xi.set(Ai,$o)}),Xi},[ni,Ti,fn]),mo=(0,ce.useCallback)(Xi=>{var Ui;return!!(!((Ui=lo.get(Ti(Xi)))===null||Ui===void 0)&&Ui.disabled)},[lo,Ti]),[Yo,Oo]=(0,ce.useMemo)(()=>{if(Kr)return[zr||[],[]];const{checkedKeys:Xi,halfCheckedKeys:Ui}=(0,qi.S)(zr,!0,Vi,mo);return[Xi||[],Ui]},[zr,Kr,Vi,mo]),La=(0,ce.useMemo)(()=>{const Xi=Er==="radio"?Yo.slice(0,1):Yo;return new Set(Xi)},[Yo,Er]),Ca=(0,ce.useMemo)(()=>Er==="radio"?new Set:new Set(Oo),[Oo,Er]),[ho,_i]=(0,ce.useState)(null);ce.useEffect(()=>{Rt||vi($a)},[!!Rt]);const Go=(0,ce.useCallback)((Xi,Ui)=>{let Yi,Ai;Ki(Xi),rn?(Yi=Xi,Ai=Xi.map($o=>Fi.current.get($o))):(Yi=[],Ai=[],Xi.forEach($o=>{const ji=ti($o);ji!==void 0&&(Yi.push($o),Ai.push(ji))})),vi(Yi),Hn==null||Hn(Yi,Ai,{type:Ui})},[vi,ti,Hn,rn]),ka=(0,ce.useCallback)((Xi,Ui,Yi,Ai)=>{if(Wn){const $o=Yi.map(ji=>ti(ji));Wn(ti(Xi),Ui,$o,Ai)}Go(Yi,"single")},[Wn,ti,Go]),ma=(0,ce.useMemo)(()=>!Sr||Yr?null:(Sr===!0?[Ba,ua,Pa]:Sr).map(Ui=>Ui===Ba?{key:"all",text:wi.selectionAll,onSelect(){Go(Li.map((Yi,Ai)=>Ti(Yi,Ai)).filter(Yi=>{const Ai=lo.get(Yi);return!(Ai!=null&&Ai.disabled)||La.has(Yi)}),"all")}}:Ui===ua?{key:"invert",text:wi.selectInvert,onSelect(){const Yi=new Set(La);Hi.forEach(($o,ji)=>{const so=Ti($o,ji),Fo=lo.get(so);Fo!=null&&Fo.disabled||(Yi.has(so)?Yi.delete(so):Yi.add(so))});const Ai=Array.from(Yi);nr&&nr(Ai),Go(Ai,"invert")}}:Ui===Pa?{key:"none",text:wi.selectNone,onSelect(){lr==null||lr(),Go(Array.from(La).filter(Yi=>{const Ai=lo.get(Yi);return Ai==null?void 0:Ai.disabled}),"none")}}:Ui).map(Ui=>Object.assign(Object.assign({},Ui),{onSelect:function(){for(var Yi,Ai,$o=arguments.length,ji=new Array($o),so=0;so<$o;so++)ji[so]=arguments[so];(Ai=Ui.onSelect)===null||Ai===void 0||(Yi=Ai).call.apply(Yi,[Ui].concat(ji)),_i(null)}})),[Sr,La,Hi,Ti,nr,Go]);return[(0,ce.useCallback)(Xi=>{var Ui;if(!Rt)return Xi.filter(Qo=>Qo!==Xa);let Yi=(0,tr.Z)(Xi);const Ai=new Set(La),$o=ni.map(Ti).filter(Qo=>!lo.get(Qo).disabled),ji=$o.every(Qo=>Ai.has(Qo)),so=$o.some(Qo=>Ai.has(Qo)),Fo=()=>{const Qo=[];ji?$o.forEach(la=>{Ai.delete(la),Qo.push(la)}):$o.forEach(la=>{Ai.has(la)||(Ai.add(la),Qo.push(la))});const ra=Array.from(Ai);_n==null||_n(!ji,ra.map(la=>ti(la)),Qo.map(la=>ti(la))),Go(ra,"all"),_i(null)};let Bo;if(Er!=="radio"){let Qo;if(ma){const Co={getPopupContainer:oi,items:ma.map((ha,ms)=>{const{key:fl,text:Hl,onSelect:Cl}=ha;return{key:fl!=null?fl:ms,onClick:()=>{Cl==null||Cl($o)},label:Hl}})};Qo=ce.createElement("div",{className:`${li}-selection-extra`},ce.createElement(Wa.Z,{menu:Co,getPopupContainer:oi},ce.createElement("span",null,ce.createElement(Uc.Z,null))))}const ra=ni.map((Co,ha)=>{const ms=Ti(Co,ha),fl=lo.get(ms)||{};return Object.assign({checked:Ai.has(ms)},fl)}).filter(Co=>{let{disabled:ha}=Co;return ha}),la=!!ra.length&&ra.length===ni.length,Za=la&&ra.every(Co=>{let{checked:ha}=Co;return ha}),gs=la&&ra.some(Co=>{let{checked:ha}=Co;return ha});Bo=!Yr&&ce.createElement("div",{className:`${li}-selection`},ce.createElement(Po.default,{checked:la?Za:!!ni.length&&ji,indeterminate:la?!Za&&gs:!ji&&so,onChange:Fo,disabled:ni.length===0||la,"aria-label":Qo?"Custom selection":"Select all",skipGroup:!0}),Qo)}let bs;Er==="radio"?bs=(Qo,ra,la)=>{const Za=Ti(ra,la),gs=Ai.has(Za);return{node:ce.createElement(kr.ZP,Object.assign({},lo.get(Za),{checked:gs,onClick:Co=>Co.stopPropagation(),onChange:Co=>{Ai.has(Za)||ka(Za,!0,[Za],Co.nativeEvent)}})),checked:gs}}:bs=(Qo,ra,la)=>{var Za;const gs=Ti(ra,la),Co=Ai.has(gs),ha=Ca.has(gs),ms=lo.get(gs);let fl;return ao==="nest"?fl=ha:fl=(Za=ms==null?void 0:ms.indeterminate)!==null&&Za!==void 0?Za:ha,{node:ce.createElement(Po.default,Object.assign({},ms,{indeterminate:fl,checked:Co,skipGroup:!0,onClick:Hl=>Hl.stopPropagation(),onChange:Hl=>{let{nativeEvent:Cl}=Hl;const{shiftKey:eu}=Cl;let tu=-1,Gl=-1;if(eu&&Kr){const ta=new Set([ho,gs]);$o.some((Ts,za)=>{if(ta.has(Ts))if(tu===-1)tu=za;else return Gl=za,!0;return!1})}if(Gl!==-1&&tu!==Gl&&Kr){const ta=$o.slice(tu,Gl+1),Ts=[];Co?ta.forEach(da=>{Ai.has(da)&&(Ts.push(da),Ai.delete(da))}):ta.forEach(da=>{Ai.has(da)||(Ts.push(da),Ai.add(da))});const za=Array.from(Ai);or==null||or(!Co,za.map(da=>ti(da)),Ts.map(da=>ti(da))),Go(za,"multiple")}else{const ta=Yo;if(Kr){const Ts=Co?(0,yc._5)(ta,gs):(0,yc.L0)(ta,gs);ka(gs,!Co,Ts,Cl)}else{const Ts=(0,qi.S)([].concat((0,tr.Z)(ta),[gs]),!0,Vi,mo),{checkedKeys:za,halfCheckedKeys:da}=Ts;let Wl=za;if(Co){const oc=new Set(za);oc.delete(gs),Wl=(0,qi.S)(Array.from(oc),{checked:!1,halfCheckedKeys:da},Vi,mo).checkedKeys}ka(gs,!Co,Wl,Cl)}}_i(Co?null:gs)}})),checked:Co}};const ss=(Qo,ra,la)=>{const{node:Za,checked:gs}=bs(Qo,ra,la);return br?br(gs,ra,la,Za):Za};if(!Yi.includes(Xa))if(Yi.findIndex(Qo=>{var ra;return((ra=Qo[er])===null||ra===void 0?void 0:ra.columnType)==="EXPAND_COLUMN"})===0){const[Qo,...ra]=Yi;Yi=[Qo,Xa].concat((0,tr.Z)(ra))}else Yi=[Xa].concat((0,tr.Z)(Yi));const Hs=Yi.indexOf(Xa);Yi=Yi.filter((Qo,ra)=>Qo!==Xa||ra===Hs);const Jo=Yi[Hs-1],Ps=Yi[Hs+1];let es=qr;es===void 0&&((Ps==null?void 0:Ps.fixed)!==void 0?es=Ps.fixed:(Jo==null?void 0:Jo.fixed)!==void 0&&(es=Jo.fixed)),es&&Jo&&((Ui=Jo[er])===null||Ui===void 0?void 0:Ui.columnType)==="EXPAND_COLUMN"&&Jo.fixed===void 0&&(Jo.fixed=es);const ps=ze()(`${li}-selection-col`,{[`${li}-selection-col-with-dropdown`]:Sr&&Er==="checkbox"}),$u={fixed:es,width:Nr,className:`${li}-selection-column`,title:Rt.columnTitle||Bo,render:ss,onCell:Rt.onCell,[er]:{className:ps}};return Yi.map(Qo=>Qo===Xa?$u:Qo)},[Ti,ni,Rt,Yo,La,Ca,Nr,ma,ao,ho,lo,or,ka,mo]),La]},Ta=Ke(86504),wd=Ke(14051),bd=Ke(6848);const $c="ascend",pi="descend";function fh(Ft){return typeof Ft.sorter=="object"&&typeof Ft.sorter.multiple=="number"?Ft.sorter.multiple:!1}function Qt(Ft){return typeof Ft=="function"?Ft:Ft&&typeof Ft=="object"&&Ft.compare?Ft.compare:!1}function Yn(Ft,Rt){return Rt?Ft[Ft.indexOf(Rt)+1]:Ft[0]}function Pd(Ft,Rt,rn){let sn=[];function wn(fn,Hn){sn.push({column:fn,key:Ia(fn,Hn),multiplePriority:fh(fn),sortOrder:fn.sortOrder})}return(Ft||[]).forEach((fn,Hn)=>{const Wn=Va(Hn,rn);fn.children?("sortOrder"in fn&&wn(fn,Wn),sn=[].concat((0,tr.Z)(sn),(0,tr.Z)(Pd(fn.children,Rt,Wn)))):fn.sorter&&("sortOrder"in fn?wn(fn,Wn):Rt&&fn.defaultSortOrder&&sn.push({column:fn,key:Ia(fn,Wn),multiplePriority:fh(fn),sortOrder:fn.defaultSortOrder}))}),sn}function af(Ft,Rt,rn,sn,wn,fn,Hn,Wn){return(Rt||[]).map((_n,nr)=>{const lr=Va(nr,Wn);let or=_n;if(or.sorter){const Nr=or.sortDirections||wn,Er=or.showSorterTooltip===void 0?Hn:or.showSorterTooltip,Sr=Ia(or,lr),qr=rn.find(ao=>{let{key:si}=ao;return si===Sr}),br=qr?qr.sortOrder:null,Yr=Yn(Nr,br);let Kr;if(_n.sortIcon)Kr=_n.sortIcon({sortOrder:br});else{const ao=Nr.includes($c)&&ce.createElement(wd.Z,{className:ze()(`${Ft}-column-sorter-up`,{active:br===$c})}),si=Nr.includes(pi)&&ce.createElement(Ta.Z,{className:ze()(`${Ft}-column-sorter-down`,{active:br===pi})});Kr=ce.createElement("span",{className:ze()(`${Ft}-column-sorter`,{[`${Ft}-column-sorter-full`]:!!(ao&&si)})},ce.createElement("span",{className:`${Ft}-column-sorter-inner`,"aria-hidden":"true"},ao,si))}const{cancelSort:li,triggerAsc:Li,triggerDesc:Hi}=fn||{};let ti=li;Yr===pi?ti=Hi:Yr===$c&&(ti=Li);const Ti=typeof Er=="object"?Er:{title:ti};or=Object.assign(Object.assign({},or),{className:ze()(or.className,{[`${Ft}-column-sort`]:br}),title:ao=>{const si=ce.createElement("div",{className:`${Ft}-column-sorters`},ce.createElement("span",{className:`${Ft}-column-title`},xs(_n.title,ao)),Kr);return Er?ce.createElement(bd.Z,Object.assign({},Ti),si):si},onHeaderCell:ao=>{const si=_n.onHeaderCell&&_n.onHeaderCell(ao)||{},wi=si.onClick,oi=si.onKeyDown;si.onClick=Fi=>{sn({column:_n,key:Sr,sortOrder:Yr,multiplePriority:fh(_n)}),wi==null||wi(Fi)},si.onKeyDown=Fi=>{Fi.keyCode===wr.Z.ENTER&&(sn({column:_n,key:Sr,sortOrder:Yr,multiplePriority:fh(_n)}),oi==null||oi(Fi))};const zr=fs(_n.title,{}),vi=zr==null?void 0:zr.toString();return br?si["aria-sort"]=br==="ascend"?"ascending":"descending":si["aria-label"]=vi||"",si.className=ze()(si.className,`${Ft}-column-has-sorters`),si.tabIndex=0,_n.ellipsis&&(si.title=(zr!=null?zr:"").toString()),si}})}return"children"in or&&(or=Object.assign(Object.assign({},or),{children:af(Ft,or.children,rn,sn,wn,fn,Hn,lr)})),or})}function Hu(Ft){const{column:Rt,sortOrder:rn}=Ft;return{column:Rt,order:rn,field:Rt.dataIndex,columnKey:Rt.key}}function Gu(Ft){const Rt=Ft.filter(rn=>{let{sortOrder:sn}=rn;return sn}).map(Hu);return Rt.length===0&&Ft.length?Object.assign(Object.assign({},Hu(Ft[Ft.length-1])),{column:void 0}):Rt.length<=1?Rt[0]||{}:Rt}function ic(Ft,Rt,rn){const sn=Rt.slice().sort((Hn,Wn)=>Wn.multiplePriority-Hn.multiplePriority),wn=Ft.slice(),fn=sn.filter(Hn=>{let{column:{sorter:Wn},sortOrder:_n}=Hn;return Qt(Wn)&&_n});return fn.length?wn.sort((Hn,Wn)=>{for(let _n=0;_n<fn.length;_n+=1){const nr=fn[_n],{column:{sorter:lr},sortOrder:or}=nr,Nr=Qt(lr);if(Nr&&or){const Er=Nr(Hn,Wn,or);if(Er!==0)return or===$c?Er:-Er}}return 0}).map(Hn=>{const Wn=Hn[rn];return Wn?Object.assign(Object.assign({},Hn),{[rn]:ic(Wn,Rt,rn)}):Hn}):wn}function Cd(Ft){let{prefixCls:Rt,mergedColumns:rn,onSorterChange:sn,sortDirections:wn,tableLocale:fn,showSorterTooltip:Hn}=Ft;const[Wn,_n]=ce.useState(Pd(rn,!0)),nr=ce.useMemo(()=>{let Sr=!0;const qr=Pd(rn,!1);if(!qr.length)return Wn;const br=[];function Yr(li){Sr?br.push(li):br.push(Object.assign(Object.assign({},li),{sortOrder:null}))}let Kr=null;return qr.forEach(li=>{Kr===null?(Yr(li),li.sortOrder&&(li.multiplePriority===!1?Sr=!1:Kr=!0)):(Kr&&li.multiplePriority!==!1||(Sr=!1),Yr(li))}),br},[rn,Wn]),lr=ce.useMemo(()=>{const Sr=nr.map(qr=>{let{column:br,sortOrder:Yr}=qr;return{column:br,order:Yr}});return{sortColumns:Sr,sortColumn:Sr[0]&&Sr[0].column,sortOrder:Sr[0]&&Sr[0].order}},[nr]);function or(Sr){let qr;Sr.multiplePriority===!1||!nr.length||nr[0].multiplePriority===!1?qr=[Sr]:qr=[].concat((0,tr.Z)(nr.filter(br=>{let{key:Yr}=br;return Yr!==Sr.key})),[Sr]),_n(qr),sn(Gu(qr),qr)}return[Sr=>af(Rt,Sr,nr,or,wn,fn,Hn),nr,lr,()=>Gu(nr)]}function ph(Ft,Rt){return Ft.map(rn=>{const sn=Object.assign({},rn);return sn.title=xs(rn.title,Rt),"children"in sn&&(sn.children=ph(sn.children,Rt)),sn})}function _a(Ft){return[ce.useCallback(rn=>ph(rn,Ft),[Ft])]}var zi=gi((Ft,Rt)=>{const{_renderTimes:rn}=Ft,{_renderTimes:sn}=Rt;return rn!==sn}),nl=Mo((Ft,Rt)=>{const{_renderTimes:rn}=Ft,{_renderTimes:sn}=Rt;return rn!==sn}),zs=Ke(64993),ga=Ke(17313),yo=Ke(83116),as=Ke(37613),ca=Ft=>{const{componentCls:Rt}=Ft,rn=`${Ft.lineWidth}px ${Ft.lineType} ${Ft.tableBorderColor}`,sn=(wn,fn,Hn)=>({[`&${Rt}-${wn}`]:{[`> ${Rt}-container`]:{[`> ${Rt}-content, > ${Rt}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Rt}-expanded-row-fixed`]:{margin:`-${fn}px -${Hn+Ft.lineWidth}px`}}}}}});return{[`${Rt}-wrapper`]:{[`${Rt}${Rt}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Rt}-title`]:{border:rn,borderBottom:0},[`> ${Rt}-container`]:{borderInlineStart:rn,borderTop:rn,[`
|
|
|
> ${Rt}-content,
|
|
|
> ${Rt}-header,
|
|
|
> ${Rt}-body,
|
|
|
> ${Rt}-summary
|
|
|
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:rn},"> thead":{"> tr:not(:last-child) > th":{borderBottom:rn},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Rt}-cell-fix-right-first::after`]:{borderInlineEnd:rn}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Rt}-expanded-row-fixed`]:{margin:`-${Ft.tablePaddingVertical}px -${Ft.tablePaddingHorizontal+Ft.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ft.lineWidth,bottom:0,borderInlineEnd:rn,content:'""'}}}}}},[`&${Rt}-scroll-horizontal`]:{[`> ${Rt}-container > ${Rt}-body`]:{"> table > tbody":{[`
|
|
|
> tr${Rt}-expanded-row,
|
|
|
> tr${Rt}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},sn("middle",Ft.tablePaddingVerticalMiddle,Ft.tablePaddingHorizontalMiddle)),sn("small",Ft.tablePaddingVerticalSmall,Ft.tablePaddingHorizontalSmall)),{[`> ${Rt}-footer`]:{border:rn,borderTop:0}}),[`${Rt}-cell`]:{[`${Rt}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Ft.lineWidth}px 0 ${Ft.lineWidth}px ${Ft.tableHeaderBg}`}},[`${Rt}-bordered ${Rt}-cell-scrollbar`]:{borderInlineEnd:rn}}}},ws=Ft=>{const{componentCls:Rt}=Ft;return{[`${Rt}-wrapper`]:{[`${Rt}-cell-ellipsis`]:Object.assign(Object.assign({},ga.vS),{wordBreak:"keep-all",[`
|
|
|
&${Rt}-cell-fix-left-last,
|
|
|
&${Rt}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${Rt}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Rt}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},_o=Ft=>{const{componentCls:Rt}=Ft;return{[`${Rt}-wrapper`]:{[`${Rt}-tbody > tr${Rt}-placeholder`]:{textAlign:"center",color:Ft.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Ft.colorBgContainer}}}}},rl=Ke(15969),sa=Ft=>{const{componentCls:Rt,antCls:rn,controlInteractiveSize:sn,motionDurationSlow:wn,lineWidth:fn,paddingXS:Hn,lineType:Wn,tableBorderColor:_n,tableExpandIconBg:nr,tableExpandColumnWidth:lr,borderRadius:or,fontSize:Nr,fontSizeSM:Er,lineHeight:Sr,tablePaddingVertical:qr,tablePaddingHorizontal:br,tableExpandedRowBg:Yr,paddingXXS:Kr}=Ft,li=sn/2-fn,Li=li*2+fn*3,Hi=`${fn}px ${Wn} ${_n}`,ti=Kr-fn;return{[`${Rt}-wrapper`]:{[`${Rt}-expand-icon-col`]:{width:lr},[`${Rt}-row-expand-icon-cell`]:{textAlign:"center",[`${Rt}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Rt}-row-indent`]:{height:1,float:"left"},[`${Rt}-row-expand-icon`]:Object.assign(Object.assign({},(0,rl.N)(Ft)),{position:"relative",float:"left",boxSizing:"border-box",width:Li,height:Li,padding:0,color:"inherit",lineHeight:`${Li}px`,background:nr,border:Hi,borderRadius:or,transform:`scale(${sn/Li})`,transition:`all ${wn}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${wn} ease-out`,content:'""'},"&::before":{top:li,insetInlineEnd:ti,insetInlineStart:ti,height:fn},"&::after":{top:ti,bottom:ti,insetInlineStart:li,width:fn,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${Rt}-row-indent + ${Rt}-row-expand-icon`]:{marginTop:(Nr*Sr-fn*3)/2-Math.ceil((Er*1.4-fn*3)/2),marginInlineEnd:Hn},[`tr${Rt}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Yr}},[`${rn}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Rt}-expanded-row-fixed`]:{position:"relative",margin:`-${qr}px -${br}px`,padding:`${qr}px ${br}px`}}}},Ka=Ft=>{const{componentCls:Rt,antCls:rn,iconCls:sn,tableFilterDropdownWidth:wn,tableFilterDropdownSearchWidth:fn,paddingXXS:Hn,paddingXS:Wn,colorText:_n,lineWidth:nr,lineType:lr,tableBorderColor:or,tableHeaderIconColor:Nr,fontSizeSM:Er,tablePaddingHorizontal:Sr,borderRadius:qr,motionDurationSlow:br,colorTextDescription:Yr,colorPrimary:Kr,tableHeaderFilterActiveBg:li,colorTextDisabled:Li,tableFilterDropdownBg:Hi,tableFilterDropdownHeight:ti,controlItemBgHover:Ti,controlItemBgActive:ao,boxShadowSecondary:si,filterDropdownMenuBg:wi}=Ft,oi=`${rn}-dropdown`,zr=`${Rt}-filter-dropdown`,vi=`${rn}-tree`,Fi=`${nr}px ${lr} ${or}`;return[{[`${Rt}-wrapper`]:{[`${Rt}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Rt}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Hn,marginInline:`${Hn}px ${-Sr/2}px`,padding:`0 ${Hn}px`,color:Nr,fontSize:Er,borderRadius:qr,cursor:"pointer",transition:`all ${br}`,"&:hover":{color:Yr,background:li},"&.active":{color:Kr}}}},{[`${rn}-dropdown`]:{[zr]:Object.assign(Object.assign({},(0,ga.Wf)(Ft)),{minWidth:wn,backgroundColor:Hi,borderRadius:qr,boxShadow:si,overflow:"hidden",[`${oi}-menu`]:{maxHeight:ti,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:wi,"&:empty::after":{display:"block",padding:`${Wn}px 0`,color:Li,fontSize:Er,textAlign:"center",content:'"Not Found"'}},[`${zr}-tree`]:{paddingBlock:`${Wn}px 0`,paddingInline:Wn,[vi]:{padding:0},[`${vi}-treenode ${vi}-node-content-wrapper:hover`]:{backgroundColor:Ti},[`${vi}-treenode-checkbox-checked ${vi}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:ao}}},[`${zr}-search`]:{padding:Wn,borderBottom:Fi,"&-input":{input:{minWidth:fn},[sn]:{color:Li}}},[`${zr}-checkall`]:{width:"100%",marginBottom:Hn,marginInlineStart:Hn},[`${zr}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Wn-nr}px ${Wn}px`,overflow:"hidden",borderTop:Fi}})}},{[`${rn}-dropdown ${zr}, ${zr}-submenu`]:{[`${rn}-checkbox-wrapper + span`]:{paddingInlineStart:Wn,color:_n},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Zc=Ft=>{const{componentCls:Rt,lineWidth:rn,colorSplit:sn,motionDurationSlow:wn,zIndexTableFixed:fn,tableBg:Hn,zIndexTableSticky:Wn}=Ft,_n=sn;return{[`${Rt}-wrapper`]:{[`
|
|
|
${Rt}-cell-fix-left,
|
|
|
${Rt}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:fn,background:Hn},[`
|
|
|
${Rt}-cell-fix-left-first::after,
|
|
|
${Rt}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-rn,width:30,transform:"translateX(100%)",transition:`box-shadow ${wn}`,content:'""',pointerEvents:"none"},[`${Rt}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${Rt}-cell-fix-right-first::after,
|
|
|
${Rt}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-rn,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${wn}`,content:'""',pointerEvents:"none"},[`${Rt}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Wn+1,width:30,transition:`box-shadow ${wn}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Rt}-ping-left`]:{[`&:not(${Rt}-has-fix-left) ${Rt}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${_n}`}},[`
|
|
|
${Rt}-cell-fix-left-first::after,
|
|
|
${Rt}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${_n}`},[`${Rt}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Rt}-ping-right`]:{[`&:not(${Rt}-has-fix-right) ${Rt}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${_n}`}},[`
|
|
|
${Rt}-cell-fix-right-first::after,
|
|
|
${Rt}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${_n}`}}}}},Wf=Ft=>{const{componentCls:Rt,antCls:rn}=Ft;return{[`${Rt}-wrapper`]:{[`${Rt}-pagination${rn}-pagination`]:{margin:`${Ft.margin}px 0`},[`${Rt}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Ft.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Uf=Ft=>{const{componentCls:Rt,tableRadius:rn}=Ft;return{[`${Rt}-wrapper`]:{[Rt]:{[`${Rt}-title, ${Rt}-header`]:{borderRadius:`${rn}px ${rn}px 0 0`},[`${Rt}-title + ${Rt}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Rt}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:rn,borderStartEndRadius:rn,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:rn},"> *:last-child":{borderStartEndRadius:rn}}},"&-footer":{borderRadius:`0 0 ${rn}px ${rn}px`}}}}},$h=Ft=>{const{componentCls:Rt}=Ft;return{[`${Rt}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Rt}-pagination-left`]:{justifyContent:"flex-end"},[`${Rt}-pagination-right`]:{justifyContent:"flex-start"},[`${Rt}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Rt}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Rt}-row-indent`]:{float:"right"}}}}},Ed=Ft=>{const{componentCls:Rt,antCls:rn,iconCls:sn,fontSizeIcon:wn,padding:fn,paddingXS:Hn,tableHeaderIconColor:Wn,tableHeaderIconColorHover:_n,tableSelectionColumnWidth:nr}=Ft;return{[`${Rt}-wrapper`]:{[`${Rt}-selection-col`]:{width:nr,[`&${Rt}-selection-col-with-dropdown`]:{width:nr+wn+fn/4}},[`${Rt}-bordered ${Rt}-selection-col`]:{width:nr+Hn*2,[`&${Rt}-selection-col-with-dropdown`]:{width:nr+wn+fn/4+Hn*2}},[`
|
|
|
table tr th${Rt}-selection-column,
|
|
|
table tr td${Rt}-selection-column
|
|
|
`]:{paddingInlineEnd:Ft.paddingXS,paddingInlineStart:Ft.paddingXS,textAlign:"center",[`${rn}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Rt}-selection-column${Rt}-cell-fix-left`]:{zIndex:Ft.zIndexTableFixed+1},[`table tr th${Rt}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Rt}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Rt}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Ft.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Ft.tablePaddingHorizontal/4}px`,[sn]:{color:Wn,fontSize:wn,verticalAlign:"baseline","&:hover":{color:_n}}}}}},Vc=Ft=>{const{componentCls:Rt}=Ft,rn=(sn,wn,fn,Hn)=>({[`${Rt}${Rt}-${sn}`]:{fontSize:Hn,[`
|
|
|
${Rt}-title,
|
|
|
${Rt}-footer,
|
|
|
${Rt}-cell,
|
|
|
${Rt}-thead > tr > th,
|
|
|
${Rt}-tbody > tr > th,
|
|
|
${Rt}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${wn}px ${fn}px`},[`${Rt}-filter-trigger`]:{marginInlineEnd:`-${fn/2}px`},[`${Rt}-expanded-row-fixed`]:{margin:`-${wn}px -${fn}px`},[`${Rt}-tbody`]:{[`${Rt}-wrapper:only-child ${Rt}`]:{marginBlock:`-${wn}px`,marginInline:`${Ft.tableExpandColumnWidth-fn}px -${fn}px`}},[`${Rt}-selection-column`]:{paddingInlineStart:`${fn/4}px`}}});return{[`${Rt}-wrapper`]:Object.assign(Object.assign({},rn("middle",Ft.tablePaddingVerticalMiddle,Ft.tablePaddingHorizontalMiddle,Ft.tableFontSizeMiddle)),rn("small",Ft.tablePaddingVerticalSmall,Ft.tablePaddingHorizontalSmall,Ft.tableFontSizeSmall))}},Wu=Ft=>{const{componentCls:Rt,marginXXS:rn,fontSizeIcon:sn,tableHeaderIconColor:wn,tableHeaderIconColorHover:fn}=Ft;return{[`${Rt}-wrapper`]:{[`${Rt}-thead th${Rt}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Ft.motionDurationSlow}`,"&:hover":{background:Ft.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Ft.colorPrimary},[`
|
|
|
&${Rt}-cell-fix-left:hover,
|
|
|
&${Rt}-cell-fix-right:hover
|
|
|
`]:{background:Ft.tableFixedHeaderSortActiveBg}},[`${Rt}-thead th${Rt}-column-sort`]:{background:Ft.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Rt}-column-sort`]:{background:Ft.tableBodySortBg},[`${Rt}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Rt}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Rt}-column-sorter`]:{marginInlineStart:rn,color:wn,fontSize:0,transition:`color ${Ft.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:sn,"&.active":{color:Ft.colorPrimary}},[`${Rt}-column-sorter-up + ${Rt}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Rt}-column-sorters:hover ${Rt}-column-sorter`]:{color:fn}}}},Xc=Ft=>{const{componentCls:Rt,opacityLoading:rn,tableScrollThumbBg:sn,tableScrollThumbBgHover:wn,tableScrollThumbSize:fn,tableScrollBg:Hn,zIndexTableSticky:Wn,stickyScrollBarBorderRadius:_n}=Ft,nr=`${Ft.lineWidth}px ${Ft.lineType} ${Ft.tableBorderColor}`;return{[`${Rt}-wrapper`]:{[`${Rt}-sticky`]:{"&-holder":{position:"sticky",zIndex:Wn,background:Ft.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${fn}px !important`,zIndex:Wn,display:"flex",alignItems:"center",background:Hn,borderTop:nr,opacity:rn,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:fn,backgroundColor:sn,borderRadius:_n,transition:`all ${Ft.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:wn}}}}}}},Uu=Ft=>{const{componentCls:Rt,lineWidth:rn,tableBorderColor:sn}=Ft,wn=`${rn}px ${Ft.lineType} ${sn}`;return{[`${Rt}-wrapper`]:{[`${Rt}-summary`]:{position:"relative",zIndex:Ft.zIndexTableFixed,background:Ft.tableBg,"> tr":{"> th, > td":{borderBottom:wn}}},[`div${Rt}-summary`]:{boxShadow:`0 -${rn}px 0 ${sn}`}}}},xc=Ft=>{const{componentCls:Rt}=Ft,rn=`${Ft.lineWidth}px ${Ft.lineType} ${Ft.tableBorderColor}`,sn=`${Rt}-expanded-row-cell`;return{[`${Rt}-wrapper`]:{[`${Rt}-tbody-virtual`]:{[`${Rt}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Rt}-cell`]:{borderBottom:rn},[`${Rt}-expanded-row`]:{[`${sn}${sn}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Ft.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Rt}-bordered`]:{[`${Rt}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:rn,position:"absolute"},[`${Rt}-cell`]:{borderInlineEnd:rn,[`&${Rt}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Ft.lineWidth,borderInlineStart:rn}}}}}}};const Tu=Ft=>{const{componentCls:Rt,fontWeightStrong:rn,tablePaddingVertical:sn,tablePaddingHorizontal:wn,lineWidth:fn,lineType:Hn,tableBorderColor:Wn,tableFontSize:_n,tableBg:nr,tableRadius:lr,tableHeaderTextColor:or,motionDurationMid:Nr,tableHeaderBg:Er,tableHeaderCellSplitColor:Sr,tableRowHoverBg:qr,tableSelectedRowBg:br,tableSelectedRowHoverBg:Yr,tableFooterTextColor:Kr,tableFooterBg:li,paddingContentVerticalLG:Li}=Ft,Hi=`${fn}px ${Hn} ${Wn}`;return{[`${Rt}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ga.dF)()),{[Rt]:Object.assign(Object.assign({},(0,ga.Wf)(Ft)),{fontSize:_n,background:nr,borderRadius:`${lr}px ${lr}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${lr}px ${lr}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${Rt}-cell,
|
|
|
${Rt}-thead > tr > th,
|
|
|
${Rt}-tbody > tr > th,
|
|
|
${Rt}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Li}px ${wn}px`,overflowWrap:"break-word"},[`${Rt}-title`]:{padding:`${sn}px ${wn}px`},[`${Rt}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:or,fontWeight:rn,textAlign:"start",background:Er,borderBottom:Hi,transition:`background ${Nr} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Rt}-selection-column):not(${Rt}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Sr,transform:"translateY(-50%)",transition:`background-color ${Nr}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Rt}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Nr}, border-color ${Nr}`,borderBottom:Hi,[`
|
|
|
> ${Rt}-wrapper:only-child,
|
|
|
> ${Rt}-expanded-row-fixed > ${Rt}-wrapper:only-child
|
|
|
`]:{[Rt]:{marginBlock:`-${sn}px`,marginInline:`${Ft.tableExpandColumnWidth-wn}px -${wn}px`,[`${Rt}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:or,fontWeight:rn,textAlign:"start",background:Er,borderBottom:Hi,transition:`background ${Nr} ease`},[`
|
|
|
&${Rt}-row:hover > th,
|
|
|
&${Rt}-row:hover > td,
|
|
|
> th${Rt}-cell-row-hover,
|
|
|
> td${Rt}-cell-row-hover
|
|
|
`]:{background:qr},[`&${Rt}-row-selected`]:{"> th, > td":{background:br},"&:hover > th, &:hover > td":{background:Yr}}}},[`${Rt}-footer`]:{padding:`${sn}px ${wn}px`,color:Kr,background:li}})}};var wc=(0,yo.Z)("Table",Ft=>{const{colorTextHeading:Rt,colorSplit:rn,colorIcon:sn,colorIconHover:wn,opacityLoading:fn,colorBgContainer:Hn,controlInteractiveSize:Wn,headerBg:_n,headerColor:nr,headerSortActiveBg:lr,headerSortHoverBg:or,bodySortBg:Nr,rowHoverBg:Er,rowSelectedBg:Sr,rowSelectedHoverBg:qr,rowExpandedBg:br,cellPaddingBlock:Yr,cellPaddingInline:Kr,cellPaddingBlockMD:li,cellPaddingInlineMD:Li,cellPaddingBlockSM:Hi,cellPaddingInlineSM:ti,borderColor:Ti,footerBg:ao,footerColor:si,headerBorderRadius:wi,cellFontSize:oi,cellFontSizeMD:zr,cellFontSizeSM:vi,headerSplitColor:Fi,fixedHeaderSortActiveBg:Ki,headerFilterHoverBg:Vi,filterDropdownBg:ni,expandIconBg:lo,selectionColumnWidth:mo,stickyScrollBarBg:Yo}=Ft,Oo=new zs.C(sn),La=new zs.C(wn),Ca=2,ho=(0,as.TS)(Ft,{tableFontSize:oi,tableBg:Hn,tableRadius:wi,tablePaddingVertical:Yr,tablePaddingHorizontal:Kr,tablePaddingVerticalMiddle:li,tablePaddingHorizontalMiddle:Li,tablePaddingVerticalSmall:Hi,tablePaddingHorizontalSmall:ti,tableBorderColor:Ti,tableHeaderTextColor:nr,tableHeaderBg:_n,tableFooterTextColor:si,tableFooterBg:ao,tableHeaderCellSplitColor:Fi,tableHeaderSortBg:lr,tableHeaderSortHoverBg:or,tableHeaderIconColor:Oo.clone().setAlpha(Oo.getAlpha()*fn).toRgbString(),tableHeaderIconColorHover:La.clone().setAlpha(La.getAlpha()*fn).toRgbString(),tableBodySortBg:Nr,tableFixedHeaderSortActiveBg:Ki,tableHeaderFilterActiveBg:Vi,tableFilterDropdownBg:ni,tableRowHoverBg:Er,tableSelectedRowBg:Sr,tableSelectedRowHoverBg:qr,zIndexTableFixed:Ca,zIndexTableSticky:Ca+1,tableFontSizeMiddle:zr,tableFontSizeSmall:vi,tableSelectionColumnWidth:mo,tableExpandIconBg:lo,tableExpandColumnWidth:Wn+2*Ft.padding,tableExpandedRowBg:br,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Yo,tableScrollThumbBgHover:Rt,tableScrollBg:rn});return[Tu(ho),Wf(ho),Uu(ho),Wu(ho),Ka(ho),ca(ho),Uf(ho),sa(ho),Uu(ho),_o(ho),Ed(ho),Zc(ho),Xc(ho),ws(ho),Vc(ho),$h(ho),xc(ho)]},Ft=>{const{colorFillAlter:Rt,colorBgContainer:rn,colorTextHeading:sn,colorFillSecondary:wn,colorFillContent:fn,controlItemBgActive:Hn,controlItemBgActiveHover:Wn,padding:_n,paddingSM:nr,paddingXS:lr,colorBorderSecondary:or,borderRadiusLG:Nr,fontSize:Er,controlHeight:Sr,colorTextPlaceholder:qr}=Ft,br=new zs.C(wn).onBackground(rn).toHexShortString(),Yr=new zs.C(fn).onBackground(rn).toHexShortString(),Kr=new zs.C(Rt).onBackground(rn).toHexShortString();return{headerBg:Kr,headerColor:sn,headerSortActiveBg:br,headerSortHoverBg:Yr,bodySortBg:Kr,rowHoverBg:Kr,rowSelectedBg:Hn,rowSelectedHoverBg:Wn,rowExpandedBg:Rt,cellPaddingBlock:_n,cellPaddingInline:_n,cellPaddingBlockMD:nr,cellPaddingInlineMD:lr,cellPaddingBlockSM:lr,cellPaddingInlineSM:lr,borderColor:or,headerBorderRadius:Nr,footerBg:Kr,footerColor:sn,cellFontSize:Er,cellFontSizeMD:Er,cellFontSizeSM:Er,headerSplitColor:or,fixedHeaderSortActiveBg:br,headerFilterHoverBg:fn,filterDropdownMenuBg:rn,filterDropdownBg:rn,expandIconBg:rn,selectionColumnWidth:Sr,stickyScrollBarBg:qr,stickyScrollBarBorderRadius:100}});const Td=[],lf=(Ft,Rt)=>{const{prefixCls:rn,className:sn,rootClassName:wn,style:fn,size:Hn,bordered:Wn,dropdownPrefixCls:_n,dataSource:nr,pagination:lr,rowSelection:or,rowKey:Nr="key",rowClassName:Er,columns:Sr,children:qr,childrenColumnName:br,onChange:Yr,getPopupContainer:Kr,loading:li,expandIcon:Li,expandable:Hi,expandedRowRender:ti,expandIconColumnIndex:Ti,indentSize:ao,scroll:si,sortDirections:wi,locale:oi,showSorterTooltip:zr=!0,virtual:vi}=Ft,Fi=ce.useMemo(()=>Sr||Pn(qr),[Sr,qr]),Ki=ce.useMemo(()=>Fi.some(Ko=>Ko.responsive),[Fi]),Vi=(0,Xn.Z)(Ki),ni=ce.useMemo(()=>{const Ko=new Set(Object.keys(Vi).filter(va=>Vi[va]));return Fi.filter(va=>!va.responsive||va.responsive.some(ls=>Ko.has(ls)))},[Fi,Vi]),lo=(0,ii.Z)(Ft,["className","style","columns"]),{locale:mo=no.Z,direction:Yo,table:Oo,renderEmpty:La,getPrefixCls:Ca,getPopupContainer:ho}=ce.useContext(Or.E_),_i=(0,ai.Z)(Hn),Go=Object.assign(Object.assign({},mo.Table),oi),ka=nr||Td,ma=Ca("table",rn),rs=Ca("dropdown",_n),Xi=Object.assign({childrenColumnName:br,expandIconColumnIndex:Ti},Hi),{childrenColumnName:Ui="children"}=Xi,Yi=ce.useMemo(()=>ka.some(Ko=>Ko==null?void 0:Ko[Ui])?"nest":ti||Hi&&Hi.expandedRowRender?"row":null,[ka]),Ai={body:ce.useRef()},$o=ce.useMemo(()=>typeof Nr=="function"?Nr:Ko=>Ko==null?void 0:Ko[Nr],[Nr]),[ji]=Gc(ka,Ui,$o),so={},Fo=function(Ko,va){let ls=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var ya,Ho,vs;const pl=Object.assign(Object.assign({},so),Ko);ls&&((ya=so.resetPagination)===null||ya===void 0||ya.call(so),!((Ho=pl.pagination)===null||Ho===void 0)&&Ho.current&&(pl.pagination.current=1),lr&&lr.onChange&&lr.onChange(1,(vs=pl.pagination)===null||vs===void 0?void 0:vs.pageSize)),si&&si.scrollToFirstRowOnChange!==!1&&Ai.body.current&&(0,Ji.Z)(0,{getContainer:()=>Ai.body.current}),Yr==null||Yr(pl.pagination,pl.filters,pl.sorter,{currentDataSource:_s(ic(ka,pl.sorterStates,Ui),pl.filterStates),action:va})},Bo=(Ko,va)=>{Fo({sorter:Ko,sorterStates:va},"sort",!1)},[bs,ss,Hs,Jo]=Cd({prefixCls:ma,mergedColumns:ni,onSorterChange:Bo,sortDirections:wi||["ascend","descend"],tableLocale:Go,showSorterTooltip:zr}),Ps=ce.useMemo(()=>ic(ka,ss,Ui),[ka,ss]);so.sorter=Jo(),so.sorterStates=ss;const es=(Ko,va)=>{Fo({filters:Ko,filterStates:va},"filter",!0)},[ps,$u,Qo]=hh({prefixCls:ma,locale:Go,dropdownPrefixCls:rs,mergedColumns:ni,onFilterChange:es,getPopupContainer:Kr||ho}),ra=_s(Ps,$u);so.filters=Qo,so.filterStates=$u;const la=ce.useMemo(()=>{const Ko={};return Object.keys(Qo).forEach(va=>{Qo[va]!==null&&(Ko[va]=Qo[va])}),Object.assign(Object.assign({},Hs),{filters:Ko})},[Hs,Qo]),[Za]=_a(la),gs=(Ko,va)=>{Fo({pagination:Object.assign(Object.assign({},so.pagination),{current:Ko,pageSize:va})},"paginate")},[Co,ha]=dh(ra.length,gs,lr);so.pagination=lr===!1?{}:_u(Co,lr),so.resetPagination=ha;const ms=ce.useMemo(()=>{if(lr===!1||!Co.pageSize)return ra;const{current:Ko=1,total:va,pageSize:ls=vc}=Co;return ra.length<va?ra.length>ls?ra.slice((Ko-1)*ls,Ko*ls):ra:ra.slice((Ko-1)*ls,Ko*ls)},[!!lr,ra,Co&&Co.current,Co&&Co.pageSize,Co&&Co.total]),[fl,Hl]=_l({prefixCls:ma,data:ra,pageData:ms,getRowKey:$o,getRecordByKey:ji,expandType:Yi,childrenColumnName:Ui,locale:Go,getPopupContainer:Kr||ho},or),Cl=(Ko,va,ls)=>{let ya;return typeof Er=="function"?ya=ze()(Er(Ko,va,ls)):ya=ze()(Er),ze()({[`${ma}-row-selected`]:Hl.has($o(Ko,va))},ya)};Xi.__PARENT_RENDER_ICON__=Xi.expandIcon,Xi.expandIcon=Xi.expandIcon||Li||ba(Go),Yi==="nest"&&Xi.expandIconColumnIndex===void 0?Xi.expandIconColumnIndex=or?1:0:Xi.expandIconColumnIndex>0&&or&&(Xi.expandIconColumnIndex-=1),typeof Xi.indentSize!="number"&&(Xi.indentSize=typeof ao=="number"?ao:15);const eu=ce.useCallback(Ko=>Za(fl(ps(bs(Ko)))),[bs,ps,fl]);let tu,Gl;if(lr!==!1&&(Co!=null&&Co.total)){let Ko;Co.size?Ko=Co.size:Ko=_i==="small"||_i==="middle"?"small":void 0;const va=Ho=>ce.createElement(po.Z,Object.assign({},Co,{className:ze()(`${ma}-pagination ${ma}-pagination-${Ho}`,Co.className),size:Ko})),ls=Yo==="rtl"?"left":"right",{position:ya}=Co;if(ya!==null&&Array.isArray(ya)){const Ho=ya.find(gu=>gu.includes("top")),vs=ya.find(gu=>gu.includes("bottom")),pl=ya.every(gu=>`${gu}`=="none");!Ho&&!vs&&!pl&&(Gl=va(ls)),Ho&&(tu=va(Ho.toLowerCase().replace("top",""))),vs&&(Gl=va(vs.toLowerCase().replace("bottom","")))}else Gl=va(ls)}let ta;typeof li=="boolean"?ta={spinning:li}:typeof li=="object"&&(ta=Object.assign({spinning:!0},li));const[Ts,za]=wc(ma),[,da]=(0,To.Z)(),Wl=ze()(`${ma}-wrapper`,Oo==null?void 0:Oo.className,{[`${ma}-wrapper-rtl`]:Yo==="rtl"},sn,wn,za),oc=Object.assign(Object.assign({},Oo==null?void 0:Oo.style),fn),nu=oi&&oi.emptyText||(La==null?void 0:La("Table"))||ce.createElement(Ir.Z,{componentName:"Table"}),Mu=vi?nl:zi,Ku={},El=ce.useMemo(()=>{const{fontSize:Ko,lineHeight:va,padding:ls,paddingXS:ya,paddingSM:Ho}=da,vs=Math.floor(Ko*va);switch(_i){case"large":return ls*2+vs;case"small":return ya*2+vs;default:return Ho*2+vs}},[da,_i]);return vi&&(Ku.listItemHeight=El),Ts(ce.createElement("div",{ref:Rt,className:Wl,style:oc},ce.createElement(Vo.Z,Object.assign({spinning:!1},ta),tu,ce.createElement(Mu,Object.assign({},Ku,lo,{columns:ni,direction:Yo,expandable:Xi,prefixCls:ma,className:ze()({[`${ma}-middle`]:_i==="middle",[`${ma}-small`]:_i==="small",[`${ma}-bordered`]:Wn,[`${ma}-empty`]:ka.length===0}),data:ms,rowKey:$o,rowClassName:Cl,emptyText:nu,internalHooks:Pt,internalRefs:Ai,transformColumns:eu})),Gl)))};var uf=ce.forwardRef(lf);const Zf=(Ft,Rt)=>{const rn=ce.useRef(0);return rn.current+=1,ce.createElement(uf,Object.assign({},Ft,{ref:Rt,_renderTimes:rn.current}))},dl=ce.forwardRef(Zf);dl.SELECTION_COLUMN=Xa,dl.EXPAND_COLUMN=tt,dl.SELECTION_ALL=Ba,dl.SELECTION_INVERT=ua,dl.SELECTION_NONE=Pa,dl.Column=ko,dl.ColumnGroup=ci,dl.Summary=We;var bc=dl,$p=bc},99682:function(Gn,vn,Ke){"use strict";Ke.d(vn,{default:function(){return Je}});var tt=Ke(99581),Pt=Ke(26390),oe=Ke(23001),Ue=Ke(53570),Fe=Ke(5891),me=Ke(59301),ce={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"},be=ce,Le=Ke(31533),Se=function(ft,xt){return me.createElement(Le.Z,(0,Fe.Z)({},ft,{ref:xt,icon:be}))},ke=me.forwardRef(Se),ve=ke,xe=Ke(92310),fe=Ke.n(xe),z=Ke(35654),ee=Ke(71430),ae=Ke(36355),re=Ke(39338),le=Ke(62892),ue=Ke(20648);const pe=4;function Ce(ot){const{dropPosition:ft,dropLevelOffset:xt,prefixCls:yt,indent:pt,direction:gt="ltr"}=ot,mt=gt==="ltr"?"left":"right",Mt=gt==="ltr"?"right":"left",Ct={[mt]:-xt*pt+pe,[Mt]:0};switch(ft){case-1:Ct.top=-3;break;case 1:Ct.bottom=-3;break;default:Ct.bottom=-3,Ct[mt]=pt+pe;break}return me.createElement("div",{style:Ct,className:`${yt}-drop-indicator`})}var Pe=Ke(43187),Oe=me.forwardRef((ot,ft)=>{const{getPrefixCls:xt,direction:yt,virtual:pt,tree:gt}=me.useContext(ae.E_),{prefixCls:mt,className:Mt,showIcon:Ct=!1,showLine:zt,switcherIcon:St,blockNode:bt=!1,children:at,checkable:nt=!1,selectable:we=!0,draggable:Te,motion:Ve,style:Ze}=ot,Ee=xt("tree",mt),Ge=xt(),He=Ve!=null?Ve:Object.assign(Object.assign({},(0,le.Z)(Ge)),{motionAppear:!1}),We=Object.assign(Object.assign({},ot),{checkable:nt,selectable:we,showIcon:Ct,motion:He,blockNode:bt,showLine:!!zt,dropIndicatorRender:Ce}),[Xe,ct]=(0,ue.ZP)(Ee),Et=me.useMemo(()=>{if(!Te)return!1;let It={};switch(typeof Te){case"function":It.nodeDraggable=Te;break;case"object":It=Object.assign({},Te);break;default:break}return It.icon!==!1&&(It.icon=It.icon||me.createElement(re.Z,null)),It},[Te]),ht=It=>me.createElement(Pe.Z,{prefixCls:Ee,switcherIcon:St,treeNodeProps:It,showLine:zt});return Xe(me.createElement(tt.Z,Object.assign({itemHeight:20,ref:ft,virtual:pt},We,{style:Object.assign(Object.assign({},gt==null?void 0:gt.style),Ze),prefixCls:Ee,className:fe()({[`${Ee}-icon-hide`]:!Ct,[`${Ee}-block-node`]:bt,[`${Ee}-unselectable`]:!we,[`${Ee}-rtl`]:yt==="rtl"},gt==null?void 0:gt.className,Mt,ct),direction:yt,checkable:nt&&me.createElement("span",{className:`${Ee}-checkbox-inner`}),selectable:we,switcherIcon:ht,draggable:Et}),at))}),Ae;(function(ot){ot[ot.None=0]="None",ot[ot.Start=1]="Start",ot[ot.End=2]="End"})(Ae||(Ae={}));function je(ot,ft){function xt(yt){const{key:pt,children:gt}=yt;ft(pt,yt)!==!1&&je(gt||[],ft)}ot.forEach(xt)}function Be(ot){let{treeData:ft,expandedKeys:xt,startKey:yt,endKey:pt}=ot;const gt=[];let mt=Ae.None;if(yt&&yt===pt)return[yt];if(!yt||!pt)return[];function Mt(Ct){return Ct===yt||Ct===pt}return je(ft,Ct=>{if(mt===Ae.End)return!1;if(Mt(Ct)){if(gt.push(Ct),mt===Ae.None)mt=Ae.Start;else if(mt===Ae.Start)return mt=Ae.End,!1}else mt===Ae.Start&>.push(Ct);return xt.includes(Ct)}),gt}function _e(ot,ft){const xt=(0,Pt.Z)(ft),yt=[];return je(ot,(pt,gt)=>{const mt=xt.indexOf(pt);return mt!==-1&&(yt.push(gt),xt.splice(mt,1)),!!xt.length}),yt}var qe=function(ot,ft){var xt={};for(var yt in ot)Object.prototype.hasOwnProperty.call(ot,yt)&&ft.indexOf(yt)<0&&(xt[yt]=ot[yt]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,yt=Object.getOwnPropertySymbols(ot);pt<yt.length;pt++)ft.indexOf(yt[pt])<0&&Object.prototype.propertyIsEnumerable.call(ot,yt[pt])&&(xt[yt[pt]]=ot[yt[pt]]);return xt};function ze(ot){const{isLeaf:ft,expanded:xt}=ot;return ft?me.createElement(oe.Z,null):xt?me.createElement(Ue.Z,null):me.createElement(ve,null)}function Ye(ot){let{treeData:ft,children:xt}=ot;return ft||(0,ee.zn)(xt)}const et=(ot,ft)=>{var{defaultExpandAll:xt,defaultExpandParent:yt,defaultExpandedKeys:pt}=ot,gt=qe(ot,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const mt=me.useRef(),Mt=me.useRef(),Ct=()=>{const{keyEntities:Et}=(0,ee.I8)(Ye(gt));let ht;return xt?ht=Object.keys(Et):yt?ht=(0,z.r7)(gt.expandedKeys||pt||[],Et):ht=gt.expandedKeys||pt,ht},[zt,St]=me.useState(gt.selectedKeys||gt.defaultSelectedKeys||[]),[bt,at]=me.useState(()=>Ct());me.useEffect(()=>{"selectedKeys"in gt&&St(gt.selectedKeys)},[gt.selectedKeys]),me.useEffect(()=>{"expandedKeys"in gt&&at(gt.expandedKeys)},[gt.expandedKeys]);const nt=(Et,ht)=>{var It;return"expandedKeys"in gt||at(Et),(It=gt.onExpand)===null||It===void 0?void 0:It.call(gt,Et,ht)},we=(Et,ht)=>{var It;const{multiple:qt}=gt,{node:$t,nativeEvent:Wt}=ht,{key:Ut=""}=$t,ln=Ye(gt),kt=Object.assign(Object.assign({},ht),{selected:!0}),Xt=(Wt==null?void 0:Wt.ctrlKey)||(Wt==null?void 0:Wt.metaKey),tn=Wt==null?void 0:Wt.shiftKey;let dn;qt&&Xt?(dn=Et,mt.current=Ut,Mt.current=dn,kt.selectedNodes=_e(ln,dn)):qt&&tn?(dn=Array.from(new Set([].concat((0,Pt.Z)(Mt.current||[]),(0,Pt.Z)(Be({treeData:ln,expandedKeys:bt,startKey:Ut,endKey:mt.current}))))),kt.selectedNodes=_e(ln,dn)):(dn=[Ut],mt.current=Ut,Mt.current=dn,kt.selectedNodes=_e(ln,dn)),(It=gt.onSelect)===null||It===void 0||It.call(gt,dn,kt),"selectedKeys"in gt||St(dn)},{getPrefixCls:Te,direction:Ve}=me.useContext(ae.E_),{prefixCls:Ze,className:Ee,showIcon:Ge=!0,expandAction:He="click"}=gt,We=qe(gt,["prefixCls","className","showIcon","expandAction"]),Xe=Te("tree",Ze),ct=fe()(`${Xe}-directory`,{[`${Xe}-directory-rtl`]:Ve==="rtl"},Ee);return me.createElement(Oe,Object.assign({icon:ze,ref:ft,blockNode:!0},We,{showIcon:Ge,expandAction:He,prefixCls:Xe,className:ct,expandedKeys:bt,selectedKeys:zt,onSelect:we,onExpand:nt}))};var dt=me.forwardRef(et);const vt=Oe;vt.DirectoryTree=dt,vt.TreeNode=tt.O;var Je=vt},20648:function(Gn,vn,Ke){"use strict";Ke.d(vn,{TM:function(){return xe},Yk:function(){return ve}});var tt=Ke(88252),Pt=Ke(98447),oe=Ke(17313),Ue=Ke(8378),Fe=Ke(37613),me=Ke(83116);const ce=new tt.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),be=(fe,z)=>({[`.${fe}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${z.motionDurationSlow}`}}}),Le=(fe,z)=>({[`.${fe}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:z.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${z.lineWidthBold}px solid ${z.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Se=(fe,z)=>{const{treeCls:ee,treeNodeCls:ae,treeNodePadding:re,titleHeight:le,nodeSelectedBg:ue,nodeHoverBg:pe}=z,Ce=z.paddingXS;return{[ee]:Object.assign(Object.assign({},(0,oe.Wf)(z)),{background:z.colorBgContainer,borderRadius:z.borderRadius,transition:`background-color ${z.motionDurationSlow}`,[`&${ee}-rtl`]:{[`${ee}-switcher`]:{"&_close":{[`${ee}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${ee}-active-focused)`]:Object.assign({},(0,oe.oN)(z)),[`${ee}-list-holder-inner`]:{alignItems:"flex-start"},[`&${ee}-block-node`]:{[`${ee}-list-holder-inner`]:{alignItems:"stretch",[`${ee}-node-content-wrapper`]:{flex:"auto"},[`${ae}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:re,insetInlineStart:0,border:`1px solid ${z.colorPrimary}`,opacity:0,animationName:ce,animationDuration:z.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ae}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${re}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${ee}-node-content-wrapper`]:{color:z.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${ee}-node-content-wrapper`]:Object.assign({},(0,oe.oN)(z)),[`&:not(${ae}-disabled).filter-node ${ee}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${ee}-draggable-icon`]:{flexShrink:0,width:le,lineHeight:`${le}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${z.motionDurationSlow}`,[`${ae}:hover &`]:{opacity:.45}},[`&${ae}-disabled`]:{[`${ee}-draggable-icon`]:{visibility:"hidden"}}}},[`${ee}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:le}},[`${ee}-draggable-icon`]:{visibility:"hidden"},[`${ee}-switcher`]:Object.assign(Object.assign({},be(fe,z)),{position:"relative",flex:"none",alignSelf:"stretch",width:le,margin:0,lineHeight:`${le}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${ee}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:z.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:le/2,bottom:-re,marginInlineStart:-1,borderInlineEnd:`1px solid ${z.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:le/2*.8,height:le/2,borderBottom:`1px solid ${z.colorBorder}`,content:'""'}}}),[`${ee}-checkbox`]:{top:"initial",marginInlineEnd:Ce},[`${ee}-node-content-wrapper, ${ee}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:le,margin:0,padding:`0 ${z.paddingXS/2}px`,color:"inherit",lineHeight:`${le}px`,background:"transparent",borderRadius:z.borderRadius,cursor:"pointer",transition:`all ${z.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:pe},[`&${ee}-node-selected`]:{backgroundColor:ue},[`${ee}-iconEle`]:{display:"inline-block",width:le,height:le,lineHeight:`${le}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${ee}-unselectable ${ee}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${ee}-node-content-wrapper`]:Object.assign({lineHeight:`${le}px`,userSelect:"none"},Le(fe,z)),[`${ae}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${z.colorPrimary}`}},"&-show-line":{[`${ee}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:le/2,bottom:-re,borderInlineEnd:`1px solid ${z.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${ee}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ae}-leaf-last`]:{[`${ee}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${le/2}px !important`}}}}})}},ke=fe=>{const{treeCls:z,treeNodeCls:ee,treeNodePadding:ae,directoryNodeSelectedBg:re,directoryNodeSelectedColor:le}=fe;return{[`${z}${z}-directory`]:{[ee]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ae,insetInlineStart:0,transition:`background-color ${fe.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:fe.controlItemBgHover}},"> *":{zIndex:1},[`${z}-switcher`]:{transition:`color ${fe.motionDurationMid}`},[`${z}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${z}-node-selected`]:{color:le,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:re},[`${z}-switcher`]:{color:le},[`${z}-node-content-wrapper`]:{color:le,background:"transparent"}}}}}},ve=(fe,z)=>{const ee=`.${fe}`,ae=`${ee}-treenode`,re=z.paddingXS/2,le=(0,Fe.TS)(z,{treeCls:ee,treeNodeCls:ae,treeNodePadding:re});return[Se(fe,le),ke(le)]},xe=fe=>{const{controlHeightSM:z}=fe;return{titleHeight:z,nodeHoverBg:fe.controlItemBgHover,nodeSelectedBg:fe.controlItemBgActive}};vn.ZP=(0,me.Z)("Tree",(fe,z)=>{let{prefixCls:ee}=z;return[{[fe.componentCls]:(0,Pt.C2)(`${ee}-checkbox`,fe)},ve(ee,fe),(0,Ue.Z)(fe)]},fe=>{const{colorTextLightSolid:z,colorPrimary:ee}=fe;return Object.assign(Object.assign({},xe(fe)),{directoryNodeSelectedColor:z,directoryNodeSelectedBg:ee})})},43187:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return ae}});var tt=Ke(5891),Pt=Ke(59301),oe={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"},Ue=oe,Fe=Ke(31533),me=function(le,ue){return Pt.createElement(Fe.Z,(0,tt.Z)({},le,{ref:ue,icon:Ue}))},ce=Pt.forwardRef(me),be=ce,Le=Ke(23001),Se=Ke(78714),ke=Ke(88627),ve=Ke(1040),xe=Ke(92310),fe=Ke.n(xe),z=Ke(92343),ae=re=>{const{prefixCls:le,switcherIcon:ue,treeNodeProps:pe,showLine:Ce}=re,{isLeaf:Pe,expanded:Ie,loading:Oe}=pe;if(Oe)return Pt.createElement(Se.Z,{className:`${le}-switcher-loading-icon`});let Ae;if(Ce&&typeof Ce=="object"&&(Ae=Ce.showLeafIcon),Pe){if(!Ce)return null;if(typeof Ae!="boolean"&&Ae){const _e=typeof Ae=="function"?Ae(pe):Ae,qe=`${le}-switcher-line-custom-icon`;return(0,z.l$)(_e)?(0,z.Tm)(_e,{className:fe()(_e.props.className||"",qe)}):_e}return Ae?Pt.createElement(Le.Z,{className:`${le}-switcher-line-icon`}):Pt.createElement("span",{className:`${le}-switcher-leaf-line`})}const je=`${le}-switcher-icon`,Be=typeof ue=="function"?ue(pe):ue;return(0,z.l$)(Be)?(0,z.Tm)(Be,{className:fe()(Be.props.className||"",je)}):Be!==void 0?Be:Ce?Ie?Pt.createElement(ke.Z,{className:`${le}-switcher-line-icon`}):Pt.createElement(ve.Z,{className:`${le}-switcher-line-icon`}):Pt.createElement(be,{className:je})}},41889:function(Gn,vn,Ke){"use strict";Ke.d(vn,{default:function(){return On}});var tt=Ke(59301),Pt=Ke(26390),oe=Ke(92310),Ue=Ke.n(oe),Fe=Ke(5891),me=Ke(79545),ce=Ke(68550),be=Ke(17928),Le=Ke(7711),Se=Ke(80962),ke=Ke(19149),ve=Ke(50204),xe=Ke(80665),fe=Ke(20959),z=Ke(36994);function ee(an,mn){var Ln="cannot ".concat(an.method," ").concat(an.action," ").concat(mn.status,"'"),xn=new Error(Ln);return xn.status=mn.status,xn.method=an.method,xn.url=an.action,xn}function ae(an){var mn=an.responseText||an.response;if(!mn)return mn;try{return JSON.parse(mn)}catch(Ln){return mn}}function re(an){var mn=new XMLHttpRequest;an.onProgress&&mn.upload&&(mn.upload.onprogress=function(gn){gn.total>0&&(gn.percent=gn.loaded/gn.total*100),an.onProgress(gn)});var Ln=new FormData;an.data&&Object.keys(an.data).forEach(function(In){var gn=an.data[In];if(Array.isArray(gn)){gn.forEach(function(Nn){Ln.append("".concat(In,"[]"),Nn)});return}Ln.append(In,gn)}),an.file instanceof Blob?Ln.append(an.filename,an.file,an.file.name):Ln.append(an.filename,an.file),mn.onerror=function(gn){an.onError(gn)},mn.onload=function(){return mn.status<200||mn.status>=300?an.onError(ee(an,mn),ae(mn)):an.onSuccess(ae(mn),mn)},mn.open(an.method,an.action,!0),an.withCredentials&&"withCredentials"in mn&&(mn.withCredentials=!0);var xn=an.headers||{};return xn["X-Requested-With"]!==null&&mn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(xn).forEach(function(In){xn[In]!==null&&mn.setRequestHeader(In,xn[In])}),mn.send(Ln),{abort:function(){mn.abort()}}}var le=+new Date,ue=0;function pe(){return"rc-upload-".concat(le,"-").concat(++ue)}var Ce=Ke(51395),Pe=function(an,mn){if(an&&mn){var Ln=Array.isArray(mn)?mn:mn.split(","),xn=an.name||"",In=an.type||"",gn=In.replace(/\/.*$/,"");return Ln.some(function(Nn){var kn=Nn.trim();if(/^\*(\/\*)?$/.test(Nn))return!0;if(kn.charAt(0)==="."){var En=xn.toLowerCase(),$n=kn.toLowerCase(),mr=[$n];return($n===".jpg"||$n===".jpeg")&&(mr=[".jpg",".jpeg"]),mr.some(function(Hr){return En.endsWith(Hr)})}return/\/\*$/.test(kn)?gn===kn.replace(/\/.*$/,""):In===kn?!0:/^\w+$/.test(kn)?((0,Ce.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(kn,"'.Skip for check.")),!0):!1})}return!0};function Ie(an,mn){var Ln=an.createReader(),xn=[];function In(){Ln.readEntries(function(gn){var Nn=Array.prototype.slice.apply(gn);xn=xn.concat(Nn);var kn=!Nn.length;kn?mn(xn):In()})}In()}var Oe=function(mn,Ln,xn){var In=function gn(Nn,kn){Nn&&(Nn.path=kn||"",Nn.isFile?Nn.file(function(En){xn(En)&&(Nn.fullPath&&!En.webkitRelativePath&&(Object.defineProperties(En,{webkitRelativePath:{writable:!0}}),En.webkitRelativePath=Nn.fullPath.replace(/^\//,""),Object.defineProperties(En,{webkitRelativePath:{writable:!1}})),Ln([En]))}):Nn.isDirectory&&Ie(Nn,function(En){En.forEach(function($n){gn($n,"".concat(kn).concat(Nn.name,"/"))})}))};mn.forEach(function(gn){In(gn.webkitGetAsEntry())})},Ae=Oe,je=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Be=function(an){(0,be.Z)(Ln,an);var mn=(0,Le.Z)(Ln);function Ln(){var xn;(0,me.Z)(this,Ln);for(var In=arguments.length,gn=new Array(In),Nn=0;Nn<In;Nn++)gn[Nn]=arguments[Nn];return xn=mn.call.apply(mn,[this].concat(gn)),xn.state={uid:pe()},xn.reqs={},xn.fileInput=void 0,xn._isMounted=void 0,xn.onChange=function(kn){var En=xn.props,$n=En.accept,mr=En.directory,Hr=kn.target.files,Lr=(0,Pt.Z)(Hr).filter(function(en){return!mr||Pe(en,$n)});xn.uploadFiles(Lr),xn.reset()},xn.onClick=function(kn){var En=xn.fileInput;if(En){var $n=kn.target,mr=xn.props.onClick;if($n&&$n.tagName==="BUTTON"){var Hr=En.parentNode;Hr.focus(),$n.blur()}En.click(),mr&&mr(kn)}},xn.onKeyDown=function(kn){kn.key==="Enter"&&xn.onClick(kn)},xn.onFileDrop=function(kn){var En=xn.props.multiple;if(kn.preventDefault(),kn.type!=="dragover")if(xn.props.directory)Ae(Array.prototype.slice.call(kn.dataTransfer.items),xn.uploadFiles,function(mr){return Pe(mr,xn.props.accept)});else{var $n=(0,Pt.Z)(kn.dataTransfer.files).filter(function(mr){return Pe(mr,xn.props.accept)});En===!1&&($n=$n.slice(0,1)),xn.uploadFiles($n)}},xn.uploadFiles=function(kn){var En=(0,Pt.Z)(kn),$n=En.map(function(mr){return mr.uid=pe(),xn.processFile(mr,En)});Promise.all($n).then(function(mr){var Hr=xn.props.onBatchStart;Hr==null||Hr(mr.map(function(Lr){var en=Lr.origin,ur=Lr.parsedFile;return{file:en,parsedFile:ur}})),mr.filter(function(Lr){return Lr.parsedFile!==null}).forEach(function(Lr){xn.post(Lr)})})},xn.processFile=function(){var kn=(0,fe.Z)((0,ve.Z)().mark(function En($n,mr){var Hr,Lr,en,ur,Mr,pr,Ar,Zr,gi;return(0,ve.Z)().wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:if(Hr=xn.props.beforeUpload,Lr=$n,!Hr){vr.next=14;break}return vr.prev=3,vr.next=6,Hr($n,mr);case 6:Lr=vr.sent,vr.next=12;break;case 9:vr.prev=9,vr.t0=vr.catch(3),Lr=!1;case 12:if(Lr!==!1){vr.next=14;break}return vr.abrupt("return",{origin:$n,parsedFile:null,action:null,data:null});case 14:if(en=xn.props.action,typeof en!="function"){vr.next=21;break}return vr.next=18,en($n);case 18:ur=vr.sent,vr.next=22;break;case 21:ur=en;case 22:if(Mr=xn.props.data,typeof Mr!="function"){vr.next=29;break}return vr.next=26,Mr($n);case 26:pr=vr.sent,vr.next=30;break;case 29:pr=Mr;case 30:return Ar=((0,xe.Z)(Lr)==="object"||typeof Lr=="string")&&Lr?Lr:$n,Ar instanceof File?Zr=Ar:Zr=new File([Ar],$n.name,{type:$n.type}),gi=Zr,gi.uid=$n.uid,vr.abrupt("return",{origin:$n,data:pr,parsedFile:gi,action:ur});case 35:case"end":return vr.stop()}},En,null,[[3,9]])}));return function(En,$n){return kn.apply(this,arguments)}}(),xn.saveFileInput=function(kn){xn.fileInput=kn},xn}return(0,ce.Z)(Ln,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(In){var gn=this,Nn=In.data,kn=In.origin,En=In.action,$n=In.parsedFile;if(this._isMounted){var mr=this.props,Hr=mr.onStart,Lr=mr.customRequest,en=mr.name,ur=mr.headers,Mr=mr.withCredentials,pr=mr.method,Ar=kn.uid,Zr=Lr||re,gi={action:En,filename:en,data:Nn,file:$n,headers:ur,withCredentials:Mr,method:pr||"post",onProgress:function(vr){var Qr=gn.props.onProgress;Qr==null||Qr(vr,$n)},onSuccess:function(vr,Qr){var An=gn.props.onSuccess;An==null||An(vr,$n,Qr),delete gn.reqs[Ar]},onError:function(vr,Qr){var An=gn.props.onError;An==null||An(vr,Qr,$n),delete gn.reqs[Ar]}};Hr(kn),this.reqs[Ar]=Zr(gi)}}},{key:"reset",value:function(){this.setState({uid:pe()})}},{key:"abort",value:function(In){var gn=this.reqs;if(In){var Nn=In.uid?In.uid:In;gn[Nn]&&gn[Nn].abort&&gn[Nn].abort(),delete gn[Nn]}else Object.keys(gn).forEach(function(kn){gn[kn]&&gn[kn].abort&&gn[kn].abort(),delete gn[kn]})}},{key:"render",value:function(){var In=this.props,gn=In.component,Nn=In.prefixCls,kn=In.className,En=In.disabled,$n=In.id,mr=In.style,Hr=In.multiple,Lr=In.accept,en=In.capture,ur=In.children,Mr=In.directory,pr=In.openFileDialogOnClick,Ar=In.onMouseEnter,Zr=In.onMouseLeave,gi=(0,ke.Z)(In,je),_r=Ue()((0,Se.Z)((0,Se.Z)((0,Se.Z)({},Nn,!0),"".concat(Nn,"-disabled"),En),kn,kn)),vr=Mr?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Qr=En?{}:{onClick:pr?this.onClick:function(){},onKeyDown:pr?this.onKeyDown:function(){},onMouseEnter:Ar,onMouseLeave:Zr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return tt.createElement(gn,(0,Fe.Z)({},Qr,{className:_r,role:"button",style:mr}),tt.createElement("input",(0,Fe.Z)({},(0,z.Z)(gi,{aria:!0,data:!0}),{id:$n,disabled:En,type:"file",ref:this.saveFileInput,onClick:function(ki){return ki.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Lr},vr,{multiple:Hr,onChange:this.onChange},en!=null?{capture:en}:{})),ur)}}]),Ln}(tt.Component),_e=Be;function qe(){}var ze=function(an){(0,be.Z)(Ln,an);var mn=(0,Le.Z)(Ln);function Ln(){var xn;(0,me.Z)(this,Ln);for(var In=arguments.length,gn=new Array(In),Nn=0;Nn<In;Nn++)gn[Nn]=arguments[Nn];return xn=mn.call.apply(mn,[this].concat(gn)),xn.uploader=void 0,xn.saveUploader=function(kn){xn.uploader=kn},xn}return(0,ce.Z)(Ln,[{key:"abort",value:function(In){this.uploader.abort(In)}},{key:"render",value:function(){return tt.createElement(_e,(0,Fe.Z)({},this.props,{ref:this.saveUploader}))}}]),Ln}(tt.Component);ze.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:qe,onError:qe,onSuccess:qe,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Ye=ze,et=Ye,lt=Ke(35788),dt=Ke(4676),vt=Ke(36355),Je=Ke(1684),ot=Ke(9763),ft=Ke(31724),xt={icon:function(mn,Ln){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Ln}},{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:mn}}]}},name:"file",theme:"twotone"},yt=xt,pt=Ke(31533),gt=function(mn,Ln){return tt.createElement(pt.Z,(0,Fe.Z)({},mn,{ref:Ln,icon:yt}))},mt=tt.forwardRef(gt),Mt=mt,Ct=Ke(78714),zt={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"},St=zt,bt=function(mn,Ln){return tt.createElement(pt.Z,(0,Fe.Z)({},mn,{ref:Ln,icon:St}))},at=tt.forwardRef(bt),nt=at,we={icon:function(mn,Ln){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:mn}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Ln}},{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:Ln}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Ln}},{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:mn}}]}},name:"picture",theme:"twotone"},Te=we,Ve=function(mn,Ln){return tt.createElement(pt.Z,(0,Fe.Z)({},mn,{ref:Ln,icon:Te}))},Ze=tt.forwardRef(Ve),Ee=Ze,Ge=Ke(43469),He=Ke(56762),We=Ke(62892),Xe=Ke(92343),ct=Ke(3113);function Et(an){return Object.assign(Object.assign({},an),{lastModified:an.lastModified,lastModifiedDate:an.lastModifiedDate,name:an.name,size:an.size,type:an.type,uid:an.uid,percent:0,originFileObj:an})}function ht(an,mn){const Ln=(0,Pt.Z)(mn),xn=Ln.findIndex(In=>{let{uid:gn}=In;return gn===an.uid});return xn===-1?Ln.push(an):Ln[xn]=an,Ln}function It(an,mn){const Ln=an.uid!==void 0?"uid":"name";return mn.filter(xn=>xn[Ln]===an[Ln])[0]}function qt(an,mn){const Ln=an.uid!==void 0?"uid":"name",xn=mn.filter(In=>In[Ln]!==an[Ln]);return xn.length===mn.length?null:xn}const $t=function(){const mn=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),xn=mn[mn.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(xn)||[""])[0]},Wt=an=>an.indexOf("image/")===0,Ut=an=>{if(an.type&&!an.thumbUrl)return Wt(an.type);const mn=an.thumbUrl||an.url||"",Ln=$t(mn);return/^data:image\//.test(mn)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Ln)?!0:!(/^data:/.test(mn)||Ln)},ln=200;function kt(an){return new Promise(mn=>{if(!an.type||!Wt(an.type)){mn("");return}const Ln=document.createElement("canvas");Ln.width=ln,Ln.height=ln,Ln.style.cssText=`position: fixed; left: 0; top: 0; width: ${ln}px; height: ${ln}px; z-index: 9999; display: none;`,document.body.appendChild(Ln);const xn=Ln.getContext("2d"),In=new Image;if(In.onload=()=>{const{width:gn,height:Nn}=In;let kn=ln,En=ln,$n=0,mr=0;gn>Nn?(En=Nn*(ln/gn),mr=-(En-kn)/2):(kn=gn*(ln/Nn),$n=-(kn-En)/2),xn.drawImage(In,$n,mr,kn,En);const Hr=Ln.toDataURL();document.body.removeChild(Ln),window.URL.revokeObjectURL(In.src),mn(Hr)},In.crossOrigin="anonymous",an.type.startsWith("image/svg+xml")){const gn=new FileReader;gn.onload=()=>{gn.result&&(In.src=gn.result)},gn.readAsDataURL(an)}else if(an.type.startsWith("image/gif")){const gn=new FileReader;gn.onload=()=>{gn.result&&mn(gn.result)},gn.readAsDataURL(an)}else In.src=window.URL.createObjectURL(an)})}var Xt=Ke(76466),tn=Ke(37364),dn=Ke(20970),Mn=Ke(93948),Rn=Ke(6848),qn=tt.forwardRef((an,mn)=>{let{prefixCls:Ln,className:xn,style:In,locale:gn,listType:Nn,file:kn,items:En,progress:$n,iconRender:mr,actionIconRender:Hr,itemRender:Lr,isImgUrl:en,showPreviewIcon:ur,showRemoveIcon:Mr,showDownloadIcon:pr,previewIcon:Ar,removeIcon:Zr,downloadIcon:gi,onPreview:_r,onDownload:vr,onClose:Qr}=an;var An,ki;const{status:Dn}=kn,[ui,fo]=tt.useState(Dn);tt.useEffect(()=>{Dn!=="removed"&&fo(Dn)},[Dn]);const[Mi,Zo]=tt.useState(!1);tt.useEffect(()=>{const Or=setTimeout(()=>{Zo(!0)},300);return()=>{clearTimeout(Or)}},[]);const co=mr(kn);let $r=tt.createElement("div",{className:`${Ln}-icon`},co);if(Nn==="picture"||Nn==="picture-card"||Nn==="picture-circle")if(ui==="uploading"||!kn.thumbUrl&&!kn.url){const Or=Ue()(`${Ln}-list-item-thumbnail`,{[`${Ln}-list-item-file`]:ui!=="uploading"});$r=tt.createElement("div",{className:Or},co)}else{const Or=en!=null&&en(kn)?tt.createElement("img",{src:kn.thumbUrl||kn.url,alt:kn.name,className:`${Ln}-list-item-image`,crossOrigin:kn.crossOrigin}):co,Ir=Ue()(`${Ln}-list-item-thumbnail`,{[`${Ln}-list-item-file`]:en&&!en(kn)});$r=tt.createElement("a",{className:Ir,onClick:ai=>_r(kn,ai),href:kn.url||kn.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Or)}const Gr=Ue()(`${Ln}-list-item`,`${Ln}-list-item-${ui}`),Ni=typeof kn.linkProps=="string"?JSON.parse(kn.linkProps):kn.linkProps,Wi=Mr?Hr((typeof Zr=="function"?Zr(kn):Zr)||tt.createElement(Xt.Z,null),()=>Qr(kn),Ln,gn.removeFile):null,dr=pr&&ui==="done"?Hr((typeof gi=="function"?gi(kn):gi)||tt.createElement(tn.Z,null),()=>vr(kn),Ln,gn.downloadFile):null,Lt=Nn!=="picture-card"&&Nn!=="picture-circle"&&tt.createElement("span",{key:"download-delete",className:Ue()(`${Ln}-list-item-actions`,{picture:Nn==="picture"})},dr,Wi),Pi=Ue()(`${Ln}-list-item-name`),Mo=kn.url?[tt.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Pi,title:kn.name},Ni,{href:kn.url,onClick:Or=>_r(kn,Or)}),kn.name),Lt]:[tt.createElement("span",{key:"view",className:Pi,onClick:Or=>_r(kn,Or),title:kn.name},kn.name),Lt],Oi={pointerEvents:"none",opacity:.5},wo=ur?tt.createElement("a",{href:kn.url||kn.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:kn.url||kn.thumbUrl?void 0:Oi,onClick:Or=>_r(kn,Or),title:gn.previewFile},typeof Ar=="function"?Ar(kn):Ar||tt.createElement(dn.Z,null)):null,Lo=(Nn==="picture-card"||Nn==="picture-circle")&&ui!=="uploading"&&tt.createElement("span",{className:`${Ln}-list-item-actions`},wo,ui==="done"&&dr,Wi),{getPrefixCls:ko}=tt.useContext(vt.E_),xi=ko(),ci=tt.createElement("div",{className:Gr},$r,Mo,Lo,Mi&&tt.createElement(Ge.default,{motionName:`${xi}-fade`,visible:ui==="uploading",motionDeadline:2e3},Or=>{let{className:Ir}=Or;const ai="percent"in kn?tt.createElement(Mn.Z,Object.assign({},$n,{type:"line",percent:kn.percent,"aria-label":kn["aria-label"],"aria-labelledby":kn["aria-labelledby"]})):null;return tt.createElement("div",{className:Ue()(`${Ln}-list-item-progress`,Ir)},ai)})),ii=kn.response&&typeof kn.response=="string"?kn.response:((An=kn.error)===null||An===void 0?void 0:An.statusText)||((ki=kn.error)===null||ki===void 0?void 0:ki.message)||gn.uploadError,Ji=ui==="error"?tt.createElement(Rn.Z,{title:ii,getPopupContainer:Or=>Or.parentNode},ci):ci;return tt.createElement("div",{className:Ue()(`${Ln}-list-item-container`,xn),style:In,ref:mn},Lr?Lr(Ji,kn,En,{download:vr.bind(null,kn),preview:_r.bind(null,kn),remove:Qr.bind(null,kn)}):Ji)});const Cr=(an,mn)=>{const{listType:Ln="text",previewFile:xn=kt,onPreview:In,onDownload:gn,onRemove:Nn,locale:kn,iconRender:En,isImageUrl:$n=Ut,prefixCls:mr,items:Hr=[],showPreviewIcon:Lr=!0,showRemoveIcon:en=!0,showDownloadIcon:ur=!1,removeIcon:Mr,previewIcon:pr,downloadIcon:Ar,progress:Zr={size:[-1,2],showInfo:!1},appendAction:gi,appendActionVisible:_r=!0,itemRender:vr,disabled:Qr}=an,An=(0,He.Z)(),[ki,Dn]=tt.useState(!1);tt.useEffect(()=>{Ln!=="picture"&&Ln!=="picture-card"&&Ln!=="picture-circle"||(Hr||[]).forEach(Oi=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Oi.originFileObj instanceof File||Oi.originFileObj instanceof Blob)||Oi.thumbUrl!==void 0||(Oi.thumbUrl="",xn&&xn(Oi.originFileObj).then(wo=>{Oi.thumbUrl=wo||"",An()}))})},[Ln,Hr,xn]),tt.useEffect(()=>{Dn(!0)},[]);const ui=(Oi,wo)=>{if(In)return wo==null||wo.preventDefault(),In(Oi)},fo=Oi=>{typeof gn=="function"?gn(Oi):Oi.url&&window.open(Oi.url)},Mi=Oi=>{Nn==null||Nn(Oi)},Zo=Oi=>{if(En)return En(Oi,Ln);const wo=Oi.status==="uploading",Lo=$n&&$n(Oi)?tt.createElement(Ee,null):tt.createElement(Mt,null);let ko=wo?tt.createElement(Ct.Z,null):tt.createElement(nt,null);return Ln==="picture"?ko=wo?tt.createElement(Ct.Z,null):Lo:(Ln==="picture-card"||Ln==="picture-circle")&&(ko=wo?kn.uploading:Lo),ko},co=(Oi,wo,Lo,ko)=>{const xi={type:"text",size:"small",title:ko,onClick:ci=>{wo(),(0,Xe.l$)(Oi)&&Oi.props.onClick&&Oi.props.onClick(ci)},className:`${Lo}-list-item-action`,disabled:Qr};if((0,Xe.l$)(Oi)){const ci=(0,Xe.Tm)(Oi,Object.assign(Object.assign({},Oi.props),{onClick:()=>{}}));return tt.createElement(ct.ZP,Object.assign({},xi,{icon:ci}))}return tt.createElement(ct.ZP,Object.assign({},xi),tt.createElement("span",null,Oi))};tt.useImperativeHandle(mn,()=>({handlePreview:ui,handleDownload:fo}));const{getPrefixCls:$r}=tt.useContext(vt.E_),Gr=$r("upload",mr),Ni=$r(),Wi=Ue()(`${Gr}-list`,`${Gr}-list-${Ln}`),dr=(0,Pt.Z)(Hr.map(Oi=>({key:Oi.uid,file:Oi})));let Pi={motionDeadline:2e3,motionName:`${Gr}-${Ln==="picture-card"||Ln==="picture-circle"?"animate-inline":"animate"}`,keys:dr,motionAppear:ki};const Mo=tt.useMemo(()=>{const Oi=Object.assign({},(0,We.Z)(Ni));return delete Oi.onAppearEnd,delete Oi.onEnterEnd,delete Oi.onLeaveEnd,Oi},[Ni]);return Ln!=="picture-card"&&Ln!=="picture-circle"&&(Pi=Object.assign(Object.assign({},Mo),Pi)),tt.createElement("div",{className:Wi},tt.createElement(Ge.CSSMotionList,Object.assign({},Pi,{component:!1}),Oi=>{let{key:wo,file:Lo,className:ko,style:xi}=Oi;return tt.createElement(qn,{key:wo,locale:kn,prefixCls:Gr,className:ko,style:xi,file:Lo,items:Hr,progress:Zr,listType:Ln,isImgUrl:$n,showPreviewIcon:Lr,showRemoveIcon:en,showDownloadIcon:ur,removeIcon:Mr,previewIcon:pr,downloadIcon:Ar,iconRender:Zo,actionIconRender:co,itemRender:vr,onPreview:ui,onDownload:fo,onClose:Mi})}),gi&&tt.createElement(Ge.default,Object.assign({},Pi,{visible:_r,forceRender:!0}),Oi=>{let{className:wo,style:Lo}=Oi;return(0,Xe.Tm)(gi,ko=>({className:Ue()(ko.className,wo),style:Object.assign(Object.assign(Object.assign({},Lo),{pointerEvents:wo?"none":void 0}),ko.style)}))}))};var Fr=tt.forwardRef(Cr),jr=Ke(17313),fi=Ke(8378),Si=Ke(83116),tr=Ke(37613),Qn=an=>{const{componentCls:mn,iconCls:Ln}=an;return{[`${mn}-wrapper`]:{[`${mn}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:an.colorFillAlter,border:`${an.lineWidth}px dashed ${an.colorBorder}`,borderRadius:an.borderRadiusLG,cursor:"pointer",transition:`border-color ${an.motionDurationSlow}`,[mn]:{padding:`${an.padding}px 0`},[`${mn}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${mn}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${mn}-disabled):hover`]:{borderColor:an.colorPrimaryHover},[`p${mn}-drag-icon`]:{marginBottom:an.margin,[Ln]:{color:an.colorPrimary,fontSize:an.uploadThumbnailSize}},[`p${mn}-text`]:{margin:`0 0 ${an.marginXXS}px`,color:an.colorTextHeading,fontSize:an.fontSizeLG},[`p${mn}-hint`]:{color:an.colorTextDescription,fontSize:an.fontSize},[`&${mn}-disabled`]:{cursor:"not-allowed",[`p${mn}-drag-icon ${Ln},
|
|
|
p${mn}-text,
|
|
|
p${mn}-hint
|
|
|
`]:{color:an.colorTextDisabled}}}}}},Ur=an=>{const{componentCls:mn,antCls:Ln,iconCls:xn,fontSize:In,lineHeight:gn}=an,Nn=`${mn}-list-item`,kn=`${Nn}-actions`,En=`${Nn}-action`,$n=Math.round(In*gn);return{[`${mn}-wrapper`]:{[`${mn}-list`]:Object.assign(Object.assign({},(0,jr.dF)()),{lineHeight:an.lineHeight,[Nn]:{position:"relative",height:an.lineHeight*In,marginTop:an.marginXS,fontSize:In,display:"flex",alignItems:"center",transition:`background-color ${an.motionDurationSlow}`,"&:hover":{backgroundColor:an.controlItemBgHover},[`${Nn}-name`]:Object.assign(Object.assign({},jr.vS),{padding:`0 ${an.paddingXS}px`,lineHeight:gn,flex:"auto",transition:`all ${an.motionDurationSlow}`}),[kn]:{[En]:{opacity:0},[`${En}${Ln}-btn-sm`]:{height:$n,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${En}:focus-visible,
|
|
|
&.picture ${En}
|
|
|
`]:{opacity:1},[xn]:{color:an.actionsColor,transition:`all ${an.motionDurationSlow}`},[`&:hover ${xn}`]:{color:an.colorText}},[`${mn}-icon ${xn}`]:{color:an.colorTextDescription,fontSize:In},[`${Nn}-progress`]:{position:"absolute",bottom:-an.uploadProgressOffset,width:"100%",paddingInlineStart:In+an.paddingXS,fontSize:In,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Nn}:hover ${En}`]:{opacity:1,color:an.colorText},[`${Nn}-error`]:{color:an.colorError,[`${Nn}-name, ${mn}-icon ${xn}`]:{color:an.colorError},[kn]:{[`${xn}, ${xn}:hover`]:{color:an.colorError},[En]:{opacity:1}}},[`${mn}-list-item-container`]:{transition:`opacity ${an.motionDurationSlow}, height ${an.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Rr=Ke(88252),di=Ke(1950);const Vr=new Rr.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Br=new Rr.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var hr=an=>{const{componentCls:mn}=an,Ln=`${mn}-animate-inline`;return[{[`${mn}-wrapper`]:{[`${Ln}-appear, ${Ln}-enter, ${Ln}-leave`]:{animationDuration:an.motionDurationSlow,animationTimingFunction:an.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Ln}-appear, ${Ln}-enter`]:{animationName:Vr},[`${Ln}-leave`]:{animationName:Br}}},{[`${mn}-wrapper`]:(0,di.J$)(an)},Vr,Br]},un=Ke(93398),on=Ke(64993);const Jt=an=>{const{componentCls:mn,iconCls:Ln,uploadThumbnailSize:xn,uploadProgressOffset:In}=an,gn=`${mn}-list`,Nn=`${gn}-item`;return{[`${mn}-wrapper`]:{[`
|
|
|
${gn}${gn}-picture,
|
|
|
${gn}${gn}-picture-card,
|
|
|
${gn}${gn}-picture-circle
|
|
|
`]:{[Nn]:{position:"relative",height:xn+an.lineWidth*2+an.paddingXS*2,padding:an.paddingXS,border:`${an.lineWidth}px ${an.lineType} ${an.colorBorder}`,borderRadius:an.borderRadiusLG,"&:hover":{background:"transparent"},[`${Nn}-thumbnail`]:Object.assign(Object.assign({},jr.vS),{width:xn,height:xn,lineHeight:`${xn+an.paddingSM}px`,textAlign:"center",flex:"none",[Ln]:{fontSize:an.fontSizeHeading2,color:an.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Nn}-progress`]:{bottom:In,width:`calc(100% - ${an.paddingSM*2}px)`,marginTop:0,paddingInlineStart:xn+an.paddingXS}},[`${Nn}-error`]:{borderColor:an.colorError,[`${Nn}-thumbnail ${Ln}`]:{[`svg path[fill='${un.blue[0]}']`]:{fill:an.colorErrorBg},[`svg path[fill='${un.blue.primary}']`]:{fill:an.colorError}}},[`${Nn}-uploading`]:{borderStyle:"dashed",[`${Nn}-name`]:{marginBottom:In}}},[`${gn}${gn}-picture-circle ${Nn}`]:{[`&, &::before, ${Nn}-thumbnail`]:{borderRadius:"50%"}}}}},jt=an=>{const{componentCls:mn,iconCls:Ln,fontSizeLG:xn,colorTextLightSolid:In}=an,gn=`${mn}-list`,Nn=`${gn}-item`,kn=an.uploadPicCardSize;return{[`
|
|
|
${mn}-wrapper${mn}-picture-card-wrapper,
|
|
|
${mn}-wrapper${mn}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,jr.dF)()),{display:"inline-block",width:"100%",[`${mn}${mn}-select`]:{width:kn,height:kn,marginInlineEnd:an.marginXS,marginBottom:an.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:an.colorFillAlter,border:`${an.lineWidth}px dashed ${an.colorBorder}`,borderRadius:an.borderRadiusLG,cursor:"pointer",transition:`border-color ${an.motionDurationSlow}`,[`> ${mn}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${mn}-disabled):hover`]:{borderColor:an.colorPrimary}},[`${gn}${gn}-picture-card, ${gn}${gn}-picture-circle`]:{[`${gn}-item-container`]:{display:"inline-block",width:kn,height:kn,marginBlock:`0 ${an.marginXS}px`,marginInline:`0 ${an.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Nn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${an.paddingXS*2}px)`,height:`calc(100% - ${an.paddingXS*2}px)`,backgroundColor:an.colorBgMask,opacity:0,transition:`all ${an.motionDurationSlow}`,content:'" "'}},[`${Nn}:hover`]:{[`&::before, ${Nn}-actions`]:{opacity:1}},[`${Nn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${an.motionDurationSlow}`,[`${Ln}-eye, ${Ln}-download, ${Ln}-delete`]:{zIndex:10,width:xn,margin:`0 ${an.marginXXS}px`,fontSize:xn,cursor:"pointer",transition:`all ${an.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Nn}-actions, ${Nn}-actions:hover`]:{[`${Ln}-eye, ${Ln}-download, ${Ln}-delete`]:{color:new on.C(In).setAlpha(.65).toRgbString(),"&:hover":{color:In}}},[`${Nn}-thumbnail, ${Nn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Nn}-name`]:{display:"none",textAlign:"center"},[`${Nn}-file + ${Nn}-name`]:{position:"absolute",bottom:an.margin,display:"block",width:`calc(100% - ${an.paddingXS*2}px)`},[`${Nn}-uploading`]:{[`&${Nn}`]:{backgroundColor:an.colorFillAlter},[`&::before, ${Ln}-eye, ${Ln}-download, ${Ln}-delete`]:{display:"none"}},[`${Nn}-progress`]:{bottom:an.marginXL,width:`calc(100% - ${an.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${mn}-wrapper${mn}-picture-circle-wrapper`]:{[`${mn}${mn}-select`]:{borderRadius:"50%"}}}};var Cn=an=>{const{componentCls:mn}=an;return{[`${mn}-rtl`]:{direction:"rtl"}}};const Kt=an=>{const{componentCls:mn,colorTextDisabled:Ln}=an;return{[`${mn}-wrapper`]:Object.assign(Object.assign({},(0,jr.Wf)(an)),{[mn]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${mn}-select`]:{display:"inline-block"},[`${mn}-disabled`]:{color:Ln,cursor:"not-allowed"}})}};var Dt=(0,Si.Z)("Upload",an=>{const{fontSizeHeading3:mn,fontSize:Ln,lineHeight:xn,lineWidth:In,controlHeightLG:gn}=an,Nn=Math.round(Ln*xn),kn=(0,tr.TS)(an,{uploadThumbnailSize:mn*2,uploadProgressOffset:Nn/2+In,uploadPicCardSize:gn*2.55});return[Kt(kn),Qn(kn),Jt(kn),jt(kn),Ur(kn),hr(kn),Cn(kn),(0,fi.Z)(kn)]},an=>({actionsColor:an.colorTextDescription})),pn=function(an,mn,Ln,xn){function In(gn){return gn instanceof Ln?gn:new Ln(function(Nn){Nn(gn)})}return new(Ln||(Ln=Promise))(function(gn,Nn){function kn(mr){try{$n(xn.next(mr))}catch(Hr){Nn(Hr)}}function En(mr){try{$n(xn.throw(mr))}catch(Hr){Nn(Hr)}}function $n(mr){mr.done?gn(mr.value):In(mr.value).then(kn,En)}$n((xn=xn.apply(an,mn||[])).next())})};const yn=`__LIST_IGNORE_${Date.now()}__`,Jn=(an,mn)=>{const{fileList:Ln,defaultFileList:xn,onRemove:In,showUploadList:gn=!0,listType:Nn="text",onPreview:kn,onDownload:En,onChange:$n,onDrop:mr,previewFile:Hr,disabled:Lr,locale:en,iconRender:ur,isImageUrl:Mr,progress:pr,prefixCls:Ar,className:Zr,type:gi="select",children:_r,style:vr,itemRender:Qr,maxCount:An,data:ki={},multiple:Dn=!1,action:ui="",accept:fo="",supportServerRender:Mi=!0,rootClassName:Zo}=an,co=tt.useContext(Je.Z),$r=Lr!=null?Lr:co,[Gr,Ni]=(0,lt.Z)(xn||[],{value:Ln,postState:Zi=>Zi!=null?Zi:[]}),[Wi,dr]=tt.useState("drop"),Lt=tt.useRef(null);tt.useMemo(()=>{const Zi=Date.now();(Ln||[]).forEach((jo,pa)=>{!jo.uid&&!Object.isFrozen(jo)&&(jo.uid=`__AUTO__${Zi}_${pa}__`)})},[Ln]);const Pi=(Zi,jo,pa)=>{let No=(0,Pt.Z)(jo),Qi=!1;An===1?No=No.slice(-1):An&&(Qi=No.length>An,No=No.slice(0,An)),(0,dt.flushSync)(()=>{Ni(No)});const Po={file:Zi,fileList:No};pa&&(Po.event=pa),(!Qi||No.some(Wa=>Wa.uid===Zi.uid))&&(0,dt.flushSync)(()=>{$n==null||$n(Po)})},Mo=(Zi,jo)=>pn(void 0,void 0,void 0,function*(){const{beforeUpload:pa,transformFile:No}=an;let Qi=Zi;if(pa){const Po=yield pa(Zi,jo);if(Po===!1)return!1;if(delete Zi[yn],Po===yn)return Object.defineProperty(Zi,yn,{value:!0,configurable:!0}),!1;typeof Po=="object"&&Po&&(Qi=Po)}return No&&(Qi=yield No(Qi)),Qi}),Oi=Zi=>{const jo=Zi.filter(Qi=>!Qi.file[yn]);if(!jo.length)return;const pa=jo.map(Qi=>Et(Qi.file));let No=(0,Pt.Z)(Gr);pa.forEach(Qi=>{No=ht(Qi,No)}),pa.forEach((Qi,Po)=>{let Wa=Qi;if(jo[Po].parsedFile)Qi.status="uploading";else{const{originFileObj:Ei}=Qi;let ro;try{ro=new File([Ei],Ei.name,{type:Ei.type})}catch(eo){ro=new Blob([Ei],{type:Ei.type}),ro.name=Ei.name,ro.lastModifiedDate=new Date,ro.lastModified=new Date().getTime()}ro.uid=Qi.uid,Wa=ro}Pi(Wa,No)})},wo=(Zi,jo,pa)=>{try{typeof Zi=="string"&&(Zi=JSON.parse(Zi))}catch(Po){}if(!It(jo,Gr))return;const No=Et(jo);No.status="done",No.percent=100,No.response=Zi,No.xhr=pa;const Qi=ht(No,Gr);Pi(No,Qi)},Lo=(Zi,jo)=>{if(!It(jo,Gr))return;const pa=Et(jo);pa.status="uploading",pa.percent=Zi.percent;const No=ht(pa,Gr);Pi(pa,No,Zi)},ko=(Zi,jo,pa)=>{if(!It(pa,Gr))return;const No=Et(pa);No.error=Zi,No.response=jo,No.status="error";const Qi=ht(No,Gr);Pi(No,Qi)},xi=Zi=>{let jo;Promise.resolve(typeof In=="function"?In(Zi):In).then(pa=>{var No;if(pa===!1)return;const Qi=qt(Zi,Gr);Qi&&(jo=Object.assign(Object.assign({},Zi),{status:"removed"}),Gr==null||Gr.forEach(Po=>{const Wa=jo.uid!==void 0?"uid":"name";Po[Wa]===jo[Wa]&&!Object.isFrozen(Po)&&(Po.status="removed")}),(No=Lt.current)===null||No===void 0||No.abort(jo),Pi(jo,Qi))})},ci=Zi=>{dr(Zi.type),Zi.type==="drop"&&(mr==null||mr(Zi))};tt.useImperativeHandle(mn,()=>({onBatchStart:Oi,onSuccess:wo,onProgress:Lo,onError:ko,fileList:Gr,upload:Lt.current}));const{getPrefixCls:ii,direction:Ji,upload:Or}=tt.useContext(vt.E_),Ir=ii("upload",Ar),ai=Object.assign(Object.assign({onBatchStart:Oi,onError:ko,onProgress:Lo,onSuccess:wo},an),{data:ki,multiple:Dn,action:ui,accept:fo,supportServerRender:Mi,prefixCls:Ir,disabled:$r,beforeUpload:Mo,onChange:void 0});delete ai.className,delete ai.style,(!_r||$r)&&delete ai.id;const[Xn,no]=Dt(Ir),[po]=(0,ot.Z)("Upload",ft.Z.Upload),{showRemoveIcon:Vo,showPreviewIcon:To,showDownloadIcon:ea,removeIcon:ba,previewIcon:Ia,downloadIcon:Va}=typeof gn=="boolean"?{}:gn,xs=(Zi,jo)=>gn?tt.createElement(Fr,{prefixCls:Ir,listType:Nn,items:Gr,previewFile:Hr,onPreview:kn,onDownload:En,onRemove:xi,showRemoveIcon:!$r&&Vo,showPreviewIcon:To,showDownloadIcon:ea,removeIcon:ba,previewIcon:Ia,downloadIcon:Va,iconRender:ur,locale:Object.assign(Object.assign({},po),en),isImageUrl:Mr,progress:pr,appendAction:Zi,appendActionVisible:jo,itemRender:Qr,disabled:$r}):Zi,fs=Ue()(`${Ir}-wrapper`,Zr,Zo,no,Or==null?void 0:Or.className,{[`${Ir}-rtl`]:Ji==="rtl",[`${Ir}-picture-card-wrapper`]:Nn==="picture-card",[`${Ir}-picture-circle-wrapper`]:Nn==="picture-circle"}),Tn=Object.assign(Object.assign({},Or==null?void 0:Or.style),vr);if(gi==="drag"){const Zi=Ue()(no,Ir,`${Ir}-drag`,{[`${Ir}-drag-uploading`]:Gr.some(jo=>jo.status==="uploading"),[`${Ir}-drag-hover`]:Wi==="dragover",[`${Ir}-disabled`]:$r,[`${Ir}-rtl`]:Ji==="rtl"});return Xn(tt.createElement("span",{className:fs},tt.createElement("div",{className:Zi,style:Tn,onDrop:ci,onDragOver:ci,onDragLeave:ci},tt.createElement(et,Object.assign({},ai,{ref:Lt,className:`${Ir}-btn`}),tt.createElement("div",{className:`${Ir}-drag-container`},_r))),xs()))}const qa=Ue()(Ir,`${Ir}-select`,{[`${Ir}-disabled`]:$r}),Il=(Zi=>tt.createElement("div",{className:qa,style:Zi},tt.createElement(et,Object.assign({},ai,{ref:Lt}))))(_r?void 0:{display:"none"});return Xn(Nn==="picture-card"||Nn==="picture-circle"?tt.createElement("span",{className:fs},xs(Il,!!_r)):tt.createElement("span",{className:fs},Il,xs()))};var Zt=tt.forwardRef(Jn),jn=function(an,mn){var Ln={};for(var xn in an)Object.prototype.hasOwnProperty.call(an,xn)&&mn.indexOf(xn)<0&&(Ln[xn]=an[xn]);if(an!=null&&typeof Object.getOwnPropertySymbols=="function")for(var In=0,xn=Object.getOwnPropertySymbols(an);In<xn.length;In++)mn.indexOf(xn[In])<0&&Object.prototype.propertyIsEnumerable.call(an,xn[In])&&(Ln[xn[In]]=an[xn[In]]);return Ln},ar=tt.forwardRef((an,mn)=>{var{style:Ln,height:xn}=an,In=jn(an,["style","height"]);return tt.createElement(Zt,Object.assign({ref:mn},In,{type:"drag",style:Object.assign(Object.assign({},Ln),{height:xn})}))});const nn=Zt;nn.Dragger=ar,nn.LIST_IGNORE=yn;var On=nn},99498:function(Gn,vn,Ke){(function(tt){tt(Ke(89780))})(function(tt){tt.defineOption("placeholder","",function(be,Le,Se){var ke=Se&&Se!=tt.Init;if(Le&&!ke)be.on("blur",Fe),be.on("change",me),be.on("swapDoc",me),tt.on(be.getInputField(),"compositionupdate",be.state.placeholderCompose=function(){Ue(be)}),me(be);else if(!Le&&ke){be.off("blur",Fe),be.off("change",me),be.off("swapDoc",me),tt.off(be.getInputField(),"compositionupdate",be.state.placeholderCompose),Pt(be);var ve=be.getWrapperElement();ve.className=ve.className.replace(" CodeMirror-empty","")}Le&&!be.hasFocus()&&Fe(be)});function Pt(be){be.state.placeholder&&(be.state.placeholder.parentNode.removeChild(be.state.placeholder),be.state.placeholder=null)}function oe(be){Pt(be);var Le=be.state.placeholder=document.createElement("pre");Le.style.cssText="height: 0; overflow: visible",Le.style.direction=be.getOption("direction"),Le.className="CodeMirror-placeholder CodeMirror-line-like";var Se=be.getOption("placeholder");typeof Se=="string"&&(Se=document.createTextNode(Se)),Le.appendChild(Se),be.display.lineSpace.insertBefore(Le,be.display.lineSpace.firstChild)}function Ue(be){setTimeout(function(){var Le=!1,Se=be.getInputField();Se.nodeName=="TEXTAREA"?Le=!Se.value:be.lineCount()==1&&(Le=!/[^\u200b]/.test(Se.querySelector(".CodeMirror-line").textContent)),Le?oe(be):Pt(be)},20)}function Fe(be){ce(be)&&oe(be)}function me(be){var Le=be.getWrapperElement(),Se=ce(be);Le.className=Le.className.replace(" CodeMirror-empty","")+(Se?" CodeMirror-empty":""),Se?oe(be):Pt(be)}function ce(be){return be.lineCount()===1&&be.getLine(0)===""}})},25717:function(Gn,vn,Ke){(function(tt){tt(Ke(89780))})(function(tt){var Pt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},oe=tt.Pos;tt.defineOption("autoCloseBrackets",!1,function(z,ee,ae){ae&&ae!=tt.Init&&(z.removeKeyMap(Fe),z.state.closeBrackets=null),ee&&(me(Ue(ee,"pairs")),z.state.closeBrackets=ee,z.addKeyMap(Fe))});function Ue(z,ee){return ee=="pairs"&&typeof z=="string"?z:typeof z=="object"&&z[ee]!=null?z[ee]:Pt[ee]}var Fe={Backspace:Le,Enter:Se};function me(z){for(var ee=0;ee<z.length;ee++){var ae=z.charAt(ee),re="'"+ae+"'";Fe[re]||(Fe[re]=ce(ae))}}me(Pt.pairs+"`");function ce(z){return function(ee){return ve(ee,z)}}function be(z){var ee=z.state.closeBrackets;if(!ee||ee.override)return ee;var ae=z.getModeAt(z.getCursor());return ae.closeBrackets||ee}function Le(z){var ee=be(z);if(!ee||z.getOption("disableInput"))return tt.Pass;for(var ae=Ue(ee,"pairs"),re=z.listSelections(),le=0;le<re.length;le++){if(!re[le].empty())return tt.Pass;var ue=xe(z,re[le].head);if(!ue||ae.indexOf(ue)%2!=0)return tt.Pass}for(var le=re.length-1;le>=0;le--){var pe=re[le].head;z.replaceRange("",oe(pe.line,pe.ch-1),oe(pe.line,pe.ch+1),"+delete")}}function Se(z){var ee=be(z),ae=ee&&Ue(ee,"explode");if(!ae||z.getOption("disableInput"))return tt.Pass;for(var re=z.listSelections(),le=0;le<re.length;le++){if(!re[le].empty())return tt.Pass;var ue=xe(z,re[le].head);if(!ue||ae.indexOf(ue)%2!=0)return tt.Pass}z.operation(function(){var pe=z.lineSeparator()||`
|
|
|
`;z.replaceSelection(pe+pe,null),z.execCommand("goCharLeft"),re=z.listSelections();for(var Ce=0;Ce<re.length;Ce++){var Pe=re[Ce].head.line;z.indentLine(Pe,null,!0),z.indentLine(Pe+1,null,!0)}})}function ke(z){var ee=tt.cmpPos(z.anchor,z.head)>0;return{anchor:new oe(z.anchor.line,z.anchor.ch+(ee?-1:1)),head:new oe(z.head.line,z.head.ch+(ee?1:-1))}}function ve(z,ee){var ae=be(z);if(!ae||z.getOption("disableInput"))return tt.Pass;var re=Ue(ae,"pairs"),le=re.indexOf(ee);if(le==-1)return tt.Pass;for(var ue=Ue(ae,"closeBefore"),pe=Ue(ae,"triples"),Ce=re.charAt(le+1)==ee,Pe=z.listSelections(),Ie=le%2==0,Oe,Ae=0;Ae<Pe.length;Ae++){var je=Pe[Ae],Be=je.head,_e,qe=z.getRange(Be,oe(Be.line,Be.ch+1));if(Ie&&!je.empty())_e="surround";else if((Ce||!Ie)&&qe==ee)Ce&&fe(z,Be)?_e="both":pe.indexOf(ee)>=0&&z.getRange(Be,oe(Be.line,Be.ch+3))==ee+ee+ee?_e="skipThree":_e="skip";else if(Ce&&Be.ch>1&&pe.indexOf(ee)>=0&&z.getRange(oe(Be.line,Be.ch-2),Be)==ee+ee){if(Be.ch>2&&/\bstring/.test(z.getTokenTypeAt(oe(Be.line,Be.ch-2))))return tt.Pass;_e="addFour"}else if(Ce){var ze=Be.ch==0?" ":z.getRange(oe(Be.line,Be.ch-1),Be);if(!tt.isWordChar(qe)&&ze!=ee&&!tt.isWordChar(ze))_e="both";else return tt.Pass}else if(Ie&&(qe.length===0||/\s/.test(qe)||ue.indexOf(qe)>-1))_e="both";else return tt.Pass;if(!Oe)Oe=_e;else if(Oe!=_e)return tt.Pass}var Ye=le%2?re.charAt(le-1):ee,et=le%2?ee:re.charAt(le+1);z.operation(function(){if(Oe=="skip")z.execCommand("goCharRight");else if(Oe=="skipThree")for(var lt=0;lt<3;lt++)z.execCommand("goCharRight");else if(Oe=="surround"){for(var dt=z.getSelections(),lt=0;lt<dt.length;lt++)dt[lt]=Ye+dt[lt]+et;z.replaceSelections(dt,"around"),dt=z.listSelections().slice();for(var lt=0;lt<dt.length;lt++)dt[lt]=ke(dt[lt]);z.setSelections(dt)}else Oe=="both"?(z.replaceSelection(Ye+et,null),z.triggerElectric(Ye+et),z.execCommand("goCharLeft")):Oe=="addFour"&&(z.replaceSelection(Ye+Ye+Ye+Ye,"before"),z.execCommand("goCharRight"))})}function xe(z,ee){var ae=z.getRange(oe(ee.line,ee.ch-1),oe(ee.line,ee.ch+1));return ae.length==2?ae:null}function fe(z,ee){var ae=z.getTokenAt(oe(ee.line,ee.ch+1));return/\bstring/.test(ae.type)&&ae.start==ee.ch&&(ee.ch==0||!/\bstring/.test(z.getTokenTypeAt(ee)))}})},6313:function(Gn,vn,Ke){(function(tt){tt(Ke(89780),Ke(32855))})(function(tt){tt.defineOption("autoCloseTags",!1,function(Le,Se,ke){if(ke!=tt.Init&&ke&&Le.removeKeyMap("autoCloseTags"),!!Se){var ve={name:"autoCloseTags"};(typeof Se!="object"||Se.whenClosing!==!1)&&(ve["'/'"]=function(xe){return me(xe)}),(typeof Se!="object"||Se.whenOpening!==!1)&&(ve["'>'"]=function(xe){return Ue(xe)}),Le.addKeyMap(ve)}});var Pt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],oe=["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 Ue(Le){if(Le.getOption("disableInput"))return tt.Pass;for(var Se=Le.listSelections(),ke=[],ve=Le.getOption("autoCloseTags"),xe=0;xe<Se.length;xe++){if(!Se[xe].empty())return tt.Pass;var fe=Se[xe].head,z=Le.getTokenAt(fe),ee=tt.innerMode(Le.getMode(),z.state),ae=ee.state,re=ee.mode.xmlCurrentTag&&ee.mode.xmlCurrentTag(ae),le=re&&re.name;if(!le)return tt.Pass;var ue=ee.mode.configuration=="html",pe=typeof ve=="object"&&ve.dontCloseTags||ue&&Pt,Ce=typeof ve=="object"&&ve.indentTags||ue&&oe;z.end>fe.ch&&(le=le.slice(0,le.length-z.end+fe.ch));var Pe=le.toLowerCase();if(!le||z.type=="string"&&(z.end!=fe.ch||!/[\"\']/.test(z.string.charAt(z.string.length-1))||z.string.length==1)||z.type=="tag"&&re.close||z.string.indexOf("/")==fe.ch-z.start-1||pe&&ce(pe,Pe)>-1||be(Le,ee.mode.xmlCurrentContext&&ee.mode.xmlCurrentContext(ae)||[],le,fe,!0))return tt.Pass;var Ie=typeof ve=="object"&&ve.emptyTags;if(Ie&&ce(Ie,le)>-1){ke[xe]={text:"/>",newPos:tt.Pos(fe.line,fe.ch+2)};continue}var Oe=Ce&&ce(Ce,Pe)>-1;ke[xe]={indent:Oe,text:">"+(Oe?`
|
|
|
|
|
|
`:"")+"</"+le+">",newPos:Oe?tt.Pos(fe.line+1,0):tt.Pos(fe.line,fe.ch+1)}}for(var Ae=typeof ve=="object"&&ve.dontIndentOnAutoClose,xe=Se.length-1;xe>=0;xe--){var je=ke[xe];Le.replaceRange(je.text,Se[xe].head,Se[xe].anchor,"+insert");var Be=Le.listSelections().slice(0);Be[xe]={head:je.newPos,anchor:je.newPos},Le.setSelections(Be),!Ae&&je.indent&&(Le.indentLine(je.newPos.line,null,!0),Le.indentLine(je.newPos.line+1,null,!0))}}function Fe(Le,Se){for(var ke=Le.listSelections(),ve=[],xe=Se?"/":"</",fe=Le.getOption("autoCloseTags"),z=typeof fe=="object"&&fe.dontIndentOnSlash,ee=0;ee<ke.length;ee++){if(!ke[ee].empty())return tt.Pass;var ae=ke[ee].head,re=Le.getTokenAt(ae),le=tt.innerMode(Le.getMode(),re.state),ue=le.state;if(Se&&(re.type=="string"||re.string.charAt(0)!="<"||re.start!=ae.ch-1))return tt.Pass;var pe,Ce=le.mode.name!="xml"&&Le.getMode().name=="htmlmixed";if(Ce&&le.mode.name=="javascript")pe=xe+"script";else if(Ce&&le.mode.name=="css")pe=xe+"style";else{var Pe=le.mode.xmlCurrentContext&&le.mode.xmlCurrentContext(ue);if(!Pe||Pe.length&&be(Le,Pe,Pe[Pe.length-1],ae))return tt.Pass;pe=xe+Pe[Pe.length-1]}Le.getLine(ae.line).charAt(re.end)!=">"&&(pe+=">"),ve[ee]=pe}if(Le.replaceSelections(ve),ke=Le.listSelections(),!z)for(var ee=0;ee<ke.length;ee++)(ee==ke.length-1||ke[ee].head.line<ke[ee+1].head.line)&&Le.indentLine(ke[ee].head.line)}function me(Le){return Le.getOption("disableInput")?tt.Pass:Fe(Le,!0)}tt.commands.closeTag=function(Le){return Fe(Le)};function ce(Le,Se){if(Le.indexOf)return Le.indexOf(Se);for(var ke=0,ve=Le.length;ke<ve;++ke)if(Le[ke]==Se)return ke;return-1}function be(Le,Se,ke,ve,xe){if(!tt.scanForClosingTag)return!1;var fe=Math.min(Le.lastLine()+1,ve.line+500),z=tt.scanForClosingTag(Le,ve,null,fe);if(!z||z.tag!=ke)return!1;for(var ee=xe?1:0,ae=Se.length-1;ae>=0&&Se[ae]==ke;ae--)++ee;ve=z.to;for(var ae=1;ae<ee;ae++){var re=tt.scanForClosingTag(Le,ve,null,fe);if(!re||re.tag!=ke)return!1;ve=re.to}return!0}})},32855:function(Gn,vn,Ke){(function(tt){tt(Ke(89780))})(function(tt){"use strict";var Pt=tt.Pos;function oe(ae,re){return ae.line-re.line||ae.ch-re.ch}var Ue="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",Fe=Ue+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",me=new RegExp("<(/?)(["+Ue+"]["+Fe+"]*)","g");function ce(ae,re,le,ue){this.line=re,this.ch=le,this.cm=ae,this.text=ae.getLine(re),this.min=ue?Math.max(ue.from,ae.firstLine()):ae.firstLine(),this.max=ue?Math.min(ue.to-1,ae.lastLine()):ae.lastLine()}function be(ae,re){var le=ae.cm.getTokenTypeAt(Pt(ae.line,re));return le&&/\btag\b/.test(le)}function Le(ae){if(!(ae.line>=ae.max))return ae.ch=0,ae.text=ae.cm.getLine(++ae.line),!0}function Se(ae){if(!(ae.line<=ae.min))return ae.text=ae.cm.getLine(--ae.line),ae.ch=ae.text.length,!0}function ke(ae){for(;;){var re=ae.text.indexOf(">",ae.ch);if(re==-1){if(Le(ae))continue;return}if(!be(ae,re+1)){ae.ch=re+1;continue}var le=ae.text.lastIndexOf("/",re),ue=le>-1&&!/\S/.test(ae.text.slice(le+1,re));return ae.ch=re+1,ue?"selfClose":"regular"}}function ve(ae){for(;;){var re=ae.ch?ae.text.lastIndexOf("<",ae.ch-1):-1;if(re==-1){if(Se(ae))continue;return}if(!be(ae,re+1)){ae.ch=re;continue}me.lastIndex=re,ae.ch=re;var le=me.exec(ae.text);if(le&&le.index==re)return le}}function xe(ae){for(;;){me.lastIndex=ae.ch;var re=me.exec(ae.text);if(!re){if(Le(ae))continue;return}if(!be(ae,re.index+1)){ae.ch=re.index+1;continue}return ae.ch=re.index+re[0].length,re}}function fe(ae){for(;;){var re=ae.ch?ae.text.lastIndexOf(">",ae.ch-1):-1;if(re==-1){if(Se(ae))continue;return}if(!be(ae,re+1)){ae.ch=re;continue}var le=ae.text.lastIndexOf("/",re),ue=le>-1&&!/\S/.test(ae.text.slice(le+1,re));return ae.ch=re+1,ue?"selfClose":"regular"}}function z(ae,re){for(var le=[];;){var ue=xe(ae),pe,Ce=ae.line,Pe=ae.ch-(ue?ue[0].length:0);if(!ue||!(pe=ke(ae)))return;if(pe!="selfClose")if(ue[1]){for(var Ie=le.length-1;Ie>=0;--Ie)if(le[Ie]==ue[2]){le.length=Ie;break}if(Ie<0&&(!re||re==ue[2]))return{tag:ue[2],from:Pt(Ce,Pe),to:Pt(ae.line,ae.ch)}}else le.push(ue[2])}}function ee(ae,re){for(var le=[];;){var ue=fe(ae);if(!ue)return;if(ue=="selfClose"){ve(ae);continue}var pe=ae.line,Ce=ae.ch,Pe=ve(ae);if(!Pe)return;if(Pe[1])le.push(Pe[2]);else{for(var Ie=le.length-1;Ie>=0;--Ie)if(le[Ie]==Pe[2]){le.length=Ie;break}if(Ie<0&&(!re||re==Pe[2]))return{tag:Pe[2],from:Pt(ae.line,ae.ch),to:Pt(pe,Ce)}}}}tt.registerHelper("fold","xml",function(ae,re){for(var le=new ce(ae,re.line,0);;){var ue=xe(le);if(!ue||le.line!=re.line)return;var pe=ke(le);if(!pe)return;if(!ue[1]&&pe!="selfClose"){var Ce=Pt(le.line,le.ch),Pe=z(le,ue[2]);return Pe&&oe(Pe.from,Ce)>0?{from:Ce,to:Pe.from}:null}}}),tt.findMatchingTag=function(ae,re,le){var ue=new ce(ae,re.line,re.ch,le);if(!(ue.text.indexOf(">")==-1&&ue.text.indexOf("<")==-1)){var pe=ke(ue),Ce=pe&&Pt(ue.line,ue.ch),Pe=pe&&ve(ue);if(!(!pe||!Pe||oe(ue,re)>0)){var Ie={from:Pt(ue.line,ue.ch),to:Ce,tag:Pe[2]};return pe=="selfClose"?{open:Ie,close:null,at:"open"}:Pe[1]?{open:ee(ue,Pe[2]),close:Ie,at:"close"}:(ue=new ce(ae,Ce.line,Ce.ch,le),{open:Ie,close:z(ue,Pe[2]),at:"open"})}}},tt.findEnclosingTag=function(ae,re,le,ue){for(var pe=new ce(ae,re.line,re.ch,le);;){var Ce=ee(pe,ue);if(!Ce)break;var Pe=new ce(ae,re.line,re.ch,le),Ie=z(Pe,Ce.tag);if(Ie)return{open:Ce,close:Ie}}},tt.scanForClosingTag=function(ae,re,le,ue){var pe=new ce(ae,re.line,re.ch,ue?{from:0,to:ue}:null);return z(pe,le)}})},89780:function(Gn){(function(vn,Ke){Gn.exports=Ke()})(this,function(){"use strict";var vn=navigator.userAgent,Ke=navigator.platform,tt=/gecko\/\d/i.test(vn),Pt=/MSIE \d/.test(vn),oe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(vn),Ue=/Edge\/(\d+)/.exec(vn),Fe=Pt||oe||Ue,me=Fe&&(Pt?document.documentMode||6:+(Ue||oe)[1]),ce=!Ue&&/WebKit\//.test(vn),be=ce&&/Qt\/\d+\.\d+/.test(vn),Le=!Ue&&/Chrome\//.test(vn),Se=/Opera\//.test(vn),ke=/Apple Computer/.test(navigator.vendor),ve=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(vn),xe=/PhantomJS/.test(vn),fe=!Ue&&/AppleWebKit/.test(vn)&&/Mobile\/\w+/.test(vn),z=/Android/.test(vn),ee=fe||z||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(vn),ae=fe||/Mac/.test(Ke),re=/\bCrOS\b/.test(vn),le=/win/i.test(Ke),ue=Se&&vn.match(/Version\/(\d*\.\d*)/);ue&&(ue=Number(ue[1])),ue&&ue>=15&&(Se=!1,ce=!0);var pe=ae&&(be||Se&&(ue==null||ue<12.11)),Ce=tt||Fe&&me>=9;function Pe(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Ie=function(ie,de){var Ne=ie.className,Me=Pe(de).exec(Ne);if(Me){var Re=Ne.slice(Me.index+Me[0].length);ie.className=Ne.slice(0,Me.index)+(Re?Me[1]+Re:"")}};function Oe(ie){for(var de=ie.childNodes.length;de>0;--de)ie.removeChild(ie.firstChild);return ie}function Ae(ie,de){return Oe(ie).appendChild(de)}function je(ie,de,Ne,Me){var Re=document.createElement(ie);if(Ne&&(Re.className=Ne),Me&&(Re.style.cssText=Me),typeof de=="string")Re.appendChild(document.createTextNode(de));else if(de)for(var st=0;st<de.length;++st)Re.appendChild(de[st]);return Re}function Be(ie,de,Ne,Me){var Re=je(ie,de,Ne,Me);return Re.setAttribute("role","presentation"),Re}var _e;document.createRange?_e=function(ie,de,Ne,Me){var Re=document.createRange();return Re.setEnd(Me||ie,Ne),Re.setStart(ie,de),Re}:_e=function(ie,de,Ne){var Me=document.body.createTextRange();try{Me.moveToElementText(ie.parentNode)}catch(Re){return Me}return Me.collapse(!0),Me.moveEnd("character",Ne),Me.moveStart("character",de),Me};function qe(ie,de){if(de.nodeType==3&&(de=de.parentNode),ie.contains)return ie.contains(de);do if(de.nodeType==11&&(de=de.host),de==ie)return!0;while(de=de.parentNode)}function ze(){var ie;try{ie=document.activeElement}catch(de){ie=document.body||null}for(;ie&&ie.shadowRoot&&ie.shadowRoot.activeElement;)ie=ie.shadowRoot.activeElement;return ie}function Ye(ie,de){var Ne=ie.className;Pe(de).test(Ne)||(ie.className+=(Ne?" ":"")+de)}function et(ie,de){for(var Ne=ie.split(" "),Me=0;Me<Ne.length;Me++)Ne[Me]&&!Pe(Ne[Me]).test(de)&&(de+=" "+Ne[Me]);return de}var lt=function(ie){ie.select()};fe?lt=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:Fe&&(lt=function(ie){try{ie.select()}catch(de){}});function dt(ie){var de=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,de)}}function vt(ie,de,Ne){de||(de={});for(var Me in ie)ie.hasOwnProperty(Me)&&(Ne!==!1||!de.hasOwnProperty(Me))&&(de[Me]=ie[Me]);return de}function Je(ie,de,Ne,Me,Re){de==null&&(de=ie.search(/[^\s\u00a0]/),de==-1&&(de=ie.length));for(var st=Me||0,wt=Re||0;;){var At=ie.indexOf(" ",st);if(At<0||At>=de)return wt+(de-st);wt+=At-st,wt+=Ne-wt%Ne,st=At+1}}var ot=function(){this.id=null,this.f=null,this.time=0,this.handler=dt(this.onTimeout,this)};ot.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},ot.prototype.set=function(ie,de){this.f=de;var Ne=+new Date+ie;(!this.id||Ne<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=Ne)};function ft(ie,de){for(var Ne=0;Ne<ie.length;++Ne)if(ie[Ne]==de)return Ne;return-1}var xt=50,yt={toString:function(){return"CodeMirror.Pass"}},pt={scroll:!1},gt={origin:"*mouse"},mt={origin:"+move"};function Mt(ie,de,Ne){for(var Me=0,Re=0;;){var st=ie.indexOf(" ",Me);st==-1&&(st=ie.length);var wt=st-Me;if(st==ie.length||Re+wt>=de)return Me+Math.min(wt,de-Re);if(Re+=st-Me,Re+=Ne-Re%Ne,Me=st+1,Re>=de)return Me}}var Ct=[""];function zt(ie){for(;Ct.length<=ie;)Ct.push(St(Ct)+" ");return Ct[ie]}function St(ie){return ie[ie.length-1]}function bt(ie,de){for(var Ne=[],Me=0;Me<ie.length;Me++)Ne[Me]=de(ie[Me],Me);return Ne}function at(ie,de,Ne){for(var Me=0,Re=Ne(de);Me<ie.length&&Ne(ie[Me])<=Re;)Me++;ie.splice(Me,0,de)}function nt(){}function we(ie,de){var Ne;return Object.create?Ne=Object.create(ie):(nt.prototype=ie,Ne=new nt),de&&vt(de,Ne),Ne}var Te=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ve(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||Te.test(ie))}function Ze(ie,de){return de?de.source.indexOf("\\w")>-1&&Ve(ie)?!0:de.test(ie):Ve(ie)}function Ee(ie){for(var de in ie)if(ie.hasOwnProperty(de)&&ie[de])return!1;return!0}var Ge=/[\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 He(ie){return ie.charCodeAt(0)>=768&&Ge.test(ie)}function We(ie,de,Ne){for(;(Ne<0?de>0:de<ie.length)&&He(ie.charAt(de));)de+=Ne;return de}function Xe(ie,de,Ne){for(var Me=de>Ne?-1:1;;){if(de==Ne)return de;var Re=(de+Ne)/2,st=Me<0?Math.ceil(Re):Math.floor(Re);if(st==de)return ie(st)?de:Ne;ie(st)?Ne=st:de=st+Me}}function ct(ie,de,Ne,Me){if(!ie)return Me(de,Ne,"ltr",0);for(var Re=!1,st=0;st<ie.length;++st){var wt=ie[st];(wt.from<Ne&&wt.to>de||de==Ne&&wt.to==de)&&(Me(Math.max(wt.from,de),Math.min(wt.to,Ne),wt.level==1?"rtl":"ltr",st),Re=!0)}Re||Me(de,Ne,"ltr")}var Et=null;function ht(ie,de,Ne){var Me;Et=null;for(var Re=0;Re<ie.length;++Re){var st=ie[Re];if(st.from<de&&st.to>de)return Re;st.to==de&&(st.from!=st.to&&Ne=="before"?Me=Re:Et=Re),st.from==de&&(st.from!=st.to&&Ne!="before"?Me=Re:Et=Re)}return Me!=null?Me:Et}var It=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",de="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function Ne(Gt){return Gt<=247?ie.charAt(Gt):1424<=Gt&&Gt<=1524?"R":1536<=Gt&&Gt<=1785?de.charAt(Gt-1536):1774<=Gt&&Gt<=2220?"r":8192<=Gt&&Gt<=8203?"w":Gt==8204?"b":"L"}var Me=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Re=/[stwN]/,st=/[LRr]/,wt=/[Lb1n]/,At=/[1n]/;function Nt(Gt,Sn,Yt){this.level=Gt,this.from=Sn,this.to=Yt}return function(Gt,Sn){var Yt=Sn=="ltr"?"L":"R";if(Gt.length==0||Sn=="ltr"&&!Me.test(Gt))return!1;for(var Un=Gt.length,zn=[],yr=0;yr<Un;++yr)zn.push(Ne(Gt.charCodeAt(yr)));for(var Pr=0,Dr=Yt;Pr<Un;++Pr){var ri=zn[Pr];ri=="m"?zn[Pr]=Dr:Dr=ri}for(var Ci=0,yi=Yt;Ci<Un;++Ci){var Bi=zn[Ci];Bi=="1"&&yi=="r"?zn[Ci]="n":st.test(Bi)&&(yi=Bi,Bi=="r"&&(zn[Ci]="R"))}for(var uo=1,mi=zn[0];uo<Un-1;++uo){var Eo=zn[uo];Eo=="+"&&mi=="1"&&zn[uo+1]=="1"?zn[uo]="1":Eo==","&&mi==zn[uo+1]&&(mi=="1"||mi=="n")&&(zn[uo]=mi),mi=Eo}for(var Ya=0;Ya<Un;++Ya){var Ds=zn[Ya];if(Ds==",")zn[Ya]="N";else if(Ds=="%"){var is=void 0;for(is=Ya+1;is<Un&&zn[is]=="%";++is);for(var Zl=Ya&&zn[Ya-1]=="!"||is<Un&&zn[is]=="1"?"1":"N",ml=Ya;ml<is;++ml)zn[ml]=Zl;Ya=is-1}}for(var ks=0,ou=Yt;ks<Un;++ks){var ol=zn[ks];ou=="L"&&ol=="1"?zn[ks]="L":st.test(ol)&&(ou=ol)}for(var Ns=0;Ns<Un;++Ns)if(Re.test(zn[Ns])){var ia=void 0;for(ia=Ns+1;ia<Un&&Re.test(zn[ia]);++ia);for(var cs=(Ns?zn[Ns-1]:Yt)=="L",Gs=(ia<Un?zn[ia]:Yt)=="L",al=cs==Gs?cs?"L":"R":Yt,Vu=Ns;Vu<ia;++Vu)zn[Vu]=al;Ns=ia-1}for(var os=[],ku,ys=0;ys<Un;)if(wt.test(zn[ys])){var xf=ys;for(++ys;ys<Un&&wt.test(zn[ys]);++ys);os.push(new Nt(0,xf,ys))}else{var vu=ys,au=os.length,Vl=Sn=="rtl"?1:0;for(++ys;ys<Un&&zn[ys]!="L";++ys);for(var Oa=vu;Oa<ys;)if(At.test(zn[Oa])){vu<Oa&&(os.splice(au,0,new Nt(1,vu,Oa)),au+=Vl);var Ws=Oa;for(++Oa;Oa<ys&&At.test(zn[Oa]);++Oa);os.splice(au,0,new Nt(2,Ws,Oa)),au+=Vl,vu=Oa}else++Oa;vu<ys&&os.splice(au,0,new Nt(1,vu,ys))}return Sn=="ltr"&&(os[0].level==1&&(ku=Gt.match(/^\s+/))&&(os[0].from=ku[0].length,os.unshift(new Nt(0,0,ku[0].length))),St(os).level==1&&(ku=Gt.match(/\s+$/))&&(St(os).to-=ku[0].length,os.push(new Nt(0,Un-ku[0].length,Un)))),Sn=="rtl"?os.reverse():os}}();function qt(ie,de){var Ne=ie.order;return Ne==null&&(Ne=ie.order=It(ie.text,de)),Ne}var $t=[],Wt=function(ie,de,Ne){if(ie.addEventListener)ie.addEventListener(de,Ne,!1);else if(ie.attachEvent)ie.attachEvent("on"+de,Ne);else{var Me=ie._handlers||(ie._handlers={});Me[de]=(Me[de]||$t).concat(Ne)}};function Ut(ie,de){return ie._handlers&&ie._handlers[de]||$t}function ln(ie,de,Ne){if(ie.removeEventListener)ie.removeEventListener(de,Ne,!1);else if(ie.detachEvent)ie.detachEvent("on"+de,Ne);else{var Me=ie._handlers,Re=Me&&Me[de];if(Re){var st=ft(Re,Ne);st>-1&&(Me[de]=Re.slice(0,st).concat(Re.slice(st+1)))}}}function kt(ie,de){var Ne=Ut(ie,de);if(Ne.length)for(var Me=Array.prototype.slice.call(arguments,2),Re=0;Re<Ne.length;++Re)Ne[Re].apply(null,Me)}function Xt(ie,de,Ne){return typeof de=="string"&&(de={type:de,preventDefault:function(){this.defaultPrevented=!0}}),kt(ie,Ne||de.type,ie,de),qn(de)||de.codemirrorIgnore}function tn(ie){var de=ie._handlers&&ie._handlers.cursorActivity;if(de)for(var Ne=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),Me=0;Me<de.length;++Me)ft(Ne,de[Me])==-1&&Ne.push(de[Me])}function dn(ie,de){return Ut(ie,de).length>0}function Mn(ie){ie.prototype.on=function(de,Ne){Wt(this,de,Ne)},ie.prototype.off=function(de,Ne){ln(this,de,Ne)}}function Rn(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function ir(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function qn(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function Cr(ie){Rn(ie),ir(ie)}function er(ie){return ie.target||ie.srcElement}function Fr(ie){var de=ie.which;return de==null&&(ie.button&1?de=1:ie.button&2?de=3:ie.button&4&&(de=2)),ae&&ie.ctrlKey&&de==1&&(de=3),de}var jr=function(){if(Fe&&me<9)return!1;var ie=je("div");return"draggable"in ie||"dragDrop"in ie}(),fi;function Si(ie){if(fi==null){var de=je("span","\u200B");Ae(ie,je("span",[de,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(fi=de.offsetWidth<=1&&de.offsetHeight>2&&!(Fe&&me<8))}var Ne=fi?je("span","\u200B"):je("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return Ne.setAttribute("cm-text",""),Ne}var tr;function gr(ie){if(tr!=null)return tr;var de=Ae(ie,document.createTextNode("A\u062EA")),Ne=_e(de,0,1).getBoundingClientRect(),Me=_e(de,1,2).getBoundingClientRect();return Oe(ie),!Ne||Ne.left==Ne.right?!1:tr=Me.right-Ne.right<3}var Qn=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(ie){for(var de=0,Ne=[],Me=ie.length;de<=Me;){var Re=ie.indexOf(`
|
|
|
`,de);Re==-1&&(Re=ie.length);var st=ie.slice(de,ie.charAt(Re-1)=="\r"?Re-1:Re),wt=st.indexOf("\r");wt!=-1?(Ne.push(st.slice(0,wt)),de+=wt+1):(Ne.push(st),de=Re+1)}return Ne}:function(ie){return ie.split(/\r\n?|\n/)},it=window.getSelection?function(ie){try{return ie.selectionStart!=ie.selectionEnd}catch(de){return!1}}:function(ie){var de;try{de=ie.ownerDocument.selection.createRange()}catch(Ne){}return!de||de.parentElement()!=ie?!1:de.compareEndPoints("StartToEnd",de)!=0},Ur=function(){var ie=je("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),Rr=null;function di(ie){if(Rr!=null)return Rr;var de=Ae(ie,je("span","x")),Ne=de.getBoundingClientRect(),Me=_e(de,0,1).getBoundingClientRect();return Rr=Math.abs(Ne.left-Me.left)>1}var Vr={},Br={};function Xr(ie,de){arguments.length>2&&(de.dependencies=Array.prototype.slice.call(arguments,2)),Vr[ie]=de}function hr(ie,de){Br[ie]=de}function un(ie){if(typeof ie=="string"&&Br.hasOwnProperty(ie))ie=Br[ie];else if(ie&&typeof ie.name=="string"&&Br.hasOwnProperty(ie.name)){var de=Br[ie.name];typeof de=="string"&&(de={name:de}),ie=we(de,ie),ie.name=de.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return un("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return un("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function on(ie,de){de=un(de);var Ne=Vr[de.name];if(!Ne)return on(ie,"text/plain");var Me=Ne(ie,de);if(Jt.hasOwnProperty(de.name)){var Re=Jt[de.name];for(var st in Re)Re.hasOwnProperty(st)&&(Me.hasOwnProperty(st)&&(Me["_"+st]=Me[st]),Me[st]=Re[st])}if(Me.name=de.name,de.helperType&&(Me.helperType=de.helperType),de.modeProps)for(var wt in de.modeProps)Me[wt]=de.modeProps[wt];return Me}var Jt={};function jt(ie,de){var Ne=Jt.hasOwnProperty(ie)?Jt[ie]:Jt[ie]={};vt(de,Ne)}function Pn(ie,de){if(de===!0)return de;if(ie.copyState)return ie.copyState(de);var Ne={};for(var Me in de){var Re=de[Me];Re instanceof Array&&(Re=Re.concat([])),Ne[Me]=Re}return Ne}function Cn(ie,de){for(var Ne;ie.innerMode&&(Ne=ie.innerMode(de),!(!Ne||Ne.mode==ie));)de=Ne.state,ie=Ne.mode;return Ne||{mode:ie,state:de}}function Kt(ie,de,Ne){return ie.startState?ie.startState(de,Ne):!0}var Dt=function(ie,de,Ne){this.pos=this.start=0,this.string=ie,this.tabSize=de||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=Ne};Dt.prototype.eol=function(){return this.pos>=this.string.length},Dt.prototype.sol=function(){return this.pos==this.lineStart},Dt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Dt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Dt.prototype.eat=function(ie){var de=this.string.charAt(this.pos),Ne;if(typeof ie=="string"?Ne=de==ie:Ne=de&&(ie.test?ie.test(de):ie(de)),Ne)return++this.pos,de},Dt.prototype.eatWhile=function(ie){for(var de=this.pos;this.eat(ie););return this.pos>de},Dt.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},Dt.prototype.skipToEnd=function(){this.pos=this.string.length},Dt.prototype.skipTo=function(ie){var de=this.string.indexOf(ie,this.pos);if(de>-1)return this.pos=de,!0},Dt.prototype.backUp=function(ie){this.pos-=ie},Dt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Je(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},Dt.prototype.indentation=function(){return Je(this.string,null,this.tabSize)-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},Dt.prototype.match=function(ie,de,Ne){if(typeof ie=="string"){var Me=function(wt){return Ne?wt.toLowerCase():wt},Re=this.string.substr(this.pos,ie.length);if(Me(Re)==Me(ie))return de!==!1&&(this.pos+=ie.length),!0}else{var st=this.string.slice(this.pos).match(ie);return st&&st.index>0?null:(st&&de!==!1&&(this.pos+=st[0].length),st)}},Dt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Dt.prototype.hideFirstChars=function(ie,de){this.lineStart+=ie;try{return de()}finally{this.lineStart-=ie}},Dt.prototype.lookAhead=function(ie){var de=this.lineOracle;return de&&de.lookAhead(ie)},Dt.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function pn(ie,de){if(de-=ie.first,de<0||de>=ie.size)throw new Error("There is no line "+(de+ie.first)+" in the document.");for(var Ne=ie;!Ne.lines;)for(var Me=0;;++Me){var Re=Ne.children[Me],st=Re.chunkSize();if(de<st){Ne=Re;break}de-=st}return Ne.lines[de]}function yn(ie,de,Ne){var Me=[],Re=de.line;return ie.iter(de.line,Ne.line+1,function(st){var wt=st.text;Re==Ne.line&&(wt=wt.slice(0,Ne.ch)),Re==de.line&&(wt=wt.slice(de.ch)),Me.push(wt),++Re}),Me}function Jn(ie,de,Ne){var Me=[];return ie.iter(de,Ne,function(Re){Me.push(Re.text)}),Me}function bn(ie,de){var Ne=de-ie.height;if(Ne)for(var Me=ie;Me;Me=Me.parent)Me.height+=Ne}function Zt(ie){if(ie.parent==null)return null;for(var de=ie.parent,Ne=ft(de.lines,ie),Me=de.parent;Me;de=Me,Me=Me.parent)for(var Re=0;Me.children[Re]!=de;++Re)Ne+=Me.children[Re].chunkSize();return Ne+de.first}function jn(ie,de){var Ne=ie.first;e:do{for(var Me=0;Me<ie.children.length;++Me){var Re=ie.children[Me],st=Re.height;if(de<st){ie=Re;continue e}de-=st,Ne+=Re.chunkSize()}return Ne}while(!ie.lines);for(var wt=0;wt<ie.lines.length;++wt){var At=ie.lines[wt],Nt=At.height;if(de<Nt)break;de-=Nt}return Ne+wt}function Fn(ie,de){return de>=ie.first&&de<ie.first+ie.size}function ar(ie,de){return String(ie.lineNumberFormatter(de+ie.firstLineNumber))}function nn(ie,de,Ne){if(Ne===void 0&&(Ne=null),!(this instanceof nn))return new nn(ie,de,Ne);this.line=ie,this.ch=de,this.sticky=Ne}function On(ie,de){return ie.line-de.line||ie.ch-de.ch}function an(ie,de){return ie.sticky==de.sticky&&On(ie,de)==0}function mn(ie){return nn(ie.line,ie.ch)}function Ln(ie,de){return On(ie,de)<0?de:ie}function xn(ie,de){return On(ie,de)<0?ie:de}function In(ie,de){return Math.max(ie.first,Math.min(de,ie.first+ie.size-1))}function gn(ie,de){if(de.line<ie.first)return nn(ie.first,0);var Ne=ie.first+ie.size-1;return de.line>Ne?nn(Ne,pn(ie,Ne).text.length):Nn(de,pn(ie,de.line).text.length)}function Nn(ie,de){var Ne=ie.ch;return Ne==null||Ne>de?nn(ie.line,de):Ne<0?nn(ie.line,0):ie}function kn(ie,de){for(var Ne=[],Me=0;Me<de.length;Me++)Ne[Me]=gn(ie,de[Me]);return Ne}var En=function(ie,de){this.state=ie,this.lookAhead=de},$n=function(ie,de,Ne,Me){this.state=de,this.doc=ie,this.line=Ne,this.maxLookAhead=Me||0,this.baseTokens=null,this.baseTokenPos=1};$n.prototype.lookAhead=function(ie){var de=this.doc.getLine(this.line+ie);return de!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),de},$n.prototype.baseToken=function(ie){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=ie;)this.baseTokenPos+=2;var de=this.baseTokens[this.baseTokenPos+1];return{type:de&&de.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-ie}},$n.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},$n.fromSaved=function(ie,de,Ne){return de instanceof En?new $n(ie,Pn(ie.mode,de.state),Ne,de.lookAhead):new $n(ie,Pn(ie.mode,de),Ne)},$n.prototype.save=function(ie){var de=ie!==!1?Pn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new En(de,this.maxLookAhead):de};function mr(ie,de,Ne,Me){var Re=[ie.state.modeGen],st={};gi(ie,de.text,ie.doc.mode,Ne,function(Gt,Sn){return Re.push(Gt,Sn)},st,Me);for(var wt=Ne.state,At=function(Gt){Ne.baseTokens=Re;var Sn=ie.state.overlays[Gt],Yt=1,Un=0;Ne.state=!0,gi(ie,de.text,Sn.mode,Ne,function(zn,yr){for(var Pr=Yt;Un<zn;){var Dr=Re[Yt];Dr>zn&&Re.splice(Yt,1,zn,Re[Yt+1],Dr),Yt+=2,Un=Math.min(zn,Dr)}if(yr)if(Sn.opaque)Re.splice(Pr,Yt-Pr,zn,"overlay "+yr),Yt=Pr+2;else for(;Pr<Yt;Pr+=2){var ri=Re[Pr+1];Re[Pr+1]=(ri?ri+" ":"")+"overlay "+yr}},st),Ne.state=wt,Ne.baseTokens=null,Ne.baseTokenPos=1},Nt=0;Nt<ie.state.overlays.length;++Nt)At(Nt);return{styles:Re,classes:st.bgClass||st.textClass?st:null}}function Hr(ie,de,Ne){if(!de.styles||de.styles[0]!=ie.state.modeGen){var Me=Lr(ie,Zt(de)),Re=de.text.length>ie.options.maxHighlightLength&&Pn(ie.doc.mode,Me.state),st=mr(ie,de,Me);Re&&(Me.state=Re),de.stateAfter=Me.save(!Re),de.styles=st.styles,st.classes?de.styleClasses=st.classes:de.styleClasses&&(de.styleClasses=null),Ne===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return de.styles}function Lr(ie,de,Ne){var Me=ie.doc,Re=ie.display;if(!Me.mode.startState)return new $n(Me,!0,de);var st=_r(ie,de,Ne),wt=st>Me.first&&pn(Me,st-1).stateAfter,At=wt?$n.fromSaved(Me,wt,st):new $n(Me,Kt(Me.mode),st);return Me.iter(st,de,function(Nt){en(ie,Nt.text,At);var Gt=At.line;Nt.stateAfter=Gt==de-1||Gt%5==0||Gt>=Re.viewFrom&&Gt<Re.viewTo?At.save():null,At.nextLine()}),Ne&&(Me.modeFrontier=At.line),At}function en(ie,de,Ne,Me){var Re=ie.doc.mode,st=new Dt(de,ie.options.tabSize,Ne);for(st.start=st.pos=Me||0,de==""&&ur(Re,Ne.state);!st.eol();)Mr(Re,st,Ne.state),st.start=st.pos}function ur(ie,de){if(ie.blankLine)return ie.blankLine(de);if(ie.innerMode){var Ne=Cn(ie,de);if(Ne.mode.blankLine)return Ne.mode.blankLine(Ne.state)}}function Mr(ie,de,Ne,Me){for(var Re=0;Re<10;Re++){Me&&(Me[0]=Cn(ie,Ne).mode);var st=ie.token(de,Ne);if(de.pos>de.start)return st}throw new Error("Mode "+ie.name+" failed to advance stream.")}var pr=function(ie,de,Ne){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=de||null,this.state=Ne};function Ar(ie,de,Ne,Me){var Re=ie.doc,st=Re.mode,wt;de=gn(Re,de);var At=pn(Re,de.line),Nt=Lr(ie,de.line,Ne),Gt=new Dt(At.text,ie.options.tabSize,Nt),Sn;for(Me&&(Sn=[]);(Me||Gt.pos<de.ch)&&!Gt.eol();)Gt.start=Gt.pos,wt=Mr(st,Gt,Nt.state),Me&&Sn.push(new pr(Gt,wt,Pn(Re.mode,Nt.state)));return Me?Sn:new pr(Gt,wt,Nt.state)}function Zr(ie,de){if(ie)for(;;){var Ne=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!Ne)break;ie=ie.slice(0,Ne.index)+ie.slice(Ne.index+Ne[0].length);var Me=Ne[1]?"bgClass":"textClass";de[Me]==null?de[Me]=Ne[2]:new RegExp("(?:^|\\s)"+Ne[2]+"(?:$|\\s)").test(de[Me])||(de[Me]+=" "+Ne[2])}return ie}function gi(ie,de,Ne,Me,Re,st,wt){var At=Ne.flattenSpans;At==null&&(At=ie.options.flattenSpans);var Nt=0,Gt=null,Sn=new Dt(de,ie.options.tabSize,Me),Yt,Un=ie.options.addModeClass&&[null];for(de==""&&Zr(ur(Ne,Me.state),st);!Sn.eol();){if(Sn.pos>ie.options.maxHighlightLength?(At=!1,wt&&en(ie,de,Me,Sn.pos),Sn.pos=de.length,Yt=null):Yt=Zr(Mr(Ne,Sn,Me.state,Un),st),Un){var zn=Un[0].name;zn&&(Yt="m-"+(Yt?zn+" "+Yt:zn))}if(!At||Gt!=Yt){for(;Nt<Sn.start;)Nt=Math.min(Sn.start,Nt+5e3),Re(Nt,Gt);Gt=Yt}Sn.start=Sn.pos}for(;Nt<Sn.pos;){var yr=Math.min(Sn.pos,Nt+5e3);Re(yr,Gt),Nt=yr}}function _r(ie,de,Ne){for(var Me,Re,st=ie.doc,wt=Ne?-1:de-(ie.doc.mode.innerMode?1e3:100),At=de;At>wt;--At){if(At<=st.first)return st.first;var Nt=pn(st,At-1),Gt=Nt.stateAfter;if(Gt&&(!Ne||At+(Gt instanceof En?Gt.lookAhead:0)<=st.modeFrontier))return At;var Sn=Je(Nt.text,null,ie.options.tabSize);(Re==null||Me>Sn)&&(Re=At-1,Me=Sn)}return Re}function vr(ie,de){if(ie.modeFrontier=Math.min(ie.modeFrontier,de),!(ie.highlightFrontier<de-10)){for(var Ne=ie.first,Me=de-1;Me>Ne;Me--){var Re=pn(ie,Me).stateAfter;if(Re&&(!(Re instanceof En)||Me+Re.lookAhead<de)){Ne=Me+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,Ne)}}var Qr=!1,An=!1;function ki(){Qr=!0}function Dn(){An=!0}function ui(ie,de,Ne){this.marker=ie,this.from=de,this.to=Ne}function fo(ie,de){if(ie)for(var Ne=0;Ne<ie.length;++Ne){var Me=ie[Ne];if(Me.marker==de)return Me}}function Mi(ie,de){for(var Ne,Me=0;Me<ie.length;++Me)ie[Me]!=de&&(Ne||(Ne=[])).push(ie[Me]);return Ne}function Zo(ie,de){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([de]):[de],de.marker.attachLine(ie)}function co(ie,de,Ne){var Me;if(ie)for(var Re=0;Re<ie.length;++Re){var st=ie[Re],wt=st.marker,At=st.from==null||(wt.inclusiveLeft?st.from<=de:st.from<de);if(At||st.from==de&&wt.type=="bookmark"&&(!Ne||!st.marker.insertLeft)){var Nt=st.to==null||(wt.inclusiveRight?st.to>=de:st.to>de);(Me||(Me=[])).push(new ui(wt,st.from,Nt?null:st.to))}}return Me}function $r(ie,de,Ne){var Me;if(ie)for(var Re=0;Re<ie.length;++Re){var st=ie[Re],wt=st.marker,At=st.to==null||(wt.inclusiveRight?st.to>=de:st.to>de);if(At||st.from==de&&wt.type=="bookmark"&&(!Ne||st.marker.insertLeft)){var Nt=st.from==null||(wt.inclusiveLeft?st.from<=de:st.from<de);(Me||(Me=[])).push(new ui(wt,Nt?null:st.from-de,st.to==null?null:st.to-de))}}return Me}function Gr(ie,de){if(de.full)return null;var Ne=Fn(ie,de.from.line)&&pn(ie,de.from.line).markedSpans,Me=Fn(ie,de.to.line)&&pn(ie,de.to.line).markedSpans;if(!Ne&&!Me)return null;var Re=de.from.ch,st=de.to.ch,wt=On(de.from,de.to)==0,At=co(Ne,Re,wt),Nt=$r(Me,st,wt),Gt=de.text.length==1,Sn=St(de.text).length+(Gt?Re:0);if(At)for(var Yt=0;Yt<At.length;++Yt){var Un=At[Yt];if(Un.to==null){var zn=fo(Nt,Un.marker);zn?Gt&&(Un.to=zn.to==null?null:zn.to+Sn):Un.to=Re}}if(Nt)for(var yr=0;yr<Nt.length;++yr){var Pr=Nt[yr];if(Pr.to!=null&&(Pr.to+=Sn),Pr.from==null){var Dr=fo(At,Pr.marker);Dr||(Pr.from=Sn,Gt&&(At||(At=[])).push(Pr))}else Pr.from+=Sn,Gt&&(At||(At=[])).push(Pr)}At&&(At=Ni(At)),Nt&&Nt!=At&&(Nt=Ni(Nt));var ri=[At];if(!Gt){var Ci=de.text.length-2,yi;if(Ci>0&&At)for(var Bi=0;Bi<At.length;++Bi)At[Bi].to==null&&(yi||(yi=[])).push(new ui(At[Bi].marker,null,null));for(var uo=0;uo<Ci;++uo)ri.push(yi);ri.push(Nt)}return ri}function Ni(ie){for(var de=0;de<ie.length;++de){var Ne=ie[de];Ne.from!=null&&Ne.from==Ne.to&&Ne.marker.clearWhenEmpty!==!1&&ie.splice(de--,1)}return ie.length?ie:null}function Wi(ie,de,Ne){var Me=null;if(ie.iter(de.line,Ne.line+1,function(zn){if(zn.markedSpans)for(var yr=0;yr<zn.markedSpans.length;++yr){var Pr=zn.markedSpans[yr].marker;Pr.readOnly&&(!Me||ft(Me,Pr)==-1)&&(Me||(Me=[])).push(Pr)}}),!Me)return null;for(var Re=[{from:de,to:Ne}],st=0;st<Me.length;++st)for(var wt=Me[st],At=wt.find(0),Nt=0;Nt<Re.length;++Nt){var Gt=Re[Nt];if(!(On(Gt.to,At.from)<0||On(Gt.from,At.to)>0)){var Sn=[Nt,1],Yt=On(Gt.from,At.from),Un=On(Gt.to,At.to);(Yt<0||!wt.inclusiveLeft&&!Yt)&&Sn.push({from:Gt.from,to:At.from}),(Un>0||!wt.inclusiveRight&&!Un)&&Sn.push({from:At.to,to:Gt.to}),Re.splice.apply(Re,Sn),Nt+=Sn.length-3}}return Re}function dr(ie){var de=ie.markedSpans;if(de){for(var Ne=0;Ne<de.length;++Ne)de[Ne].marker.detachLine(ie);ie.markedSpans=null}}function Lt(ie,de){if(de){for(var Ne=0;Ne<de.length;++Ne)de[Ne].marker.attachLine(ie);ie.markedSpans=de}}function Pi(ie){return ie.inclusiveLeft?-1:0}function Mo(ie){return ie.inclusiveRight?1:0}function Oi(ie,de){var Ne=ie.lines.length-de.lines.length;if(Ne!=0)return Ne;var Me=ie.find(),Re=de.find(),st=On(Me.from,Re.from)||Pi(ie)-Pi(de);if(st)return-st;var wt=On(Me.to,Re.to)||Mo(ie)-Mo(de);return wt||de.id-ie.id}function wo(ie,de){var Ne=An&&ie.markedSpans,Me;if(Ne)for(var Re=void 0,st=0;st<Ne.length;++st)Re=Ne[st],Re.marker.collapsed&&(de?Re.from:Re.to)==null&&(!Me||Oi(Me,Re.marker)<0)&&(Me=Re.marker);return Me}function Lo(ie){return wo(ie,!0)}function ko(ie){return wo(ie,!1)}function xi(ie,de){var Ne=An&&ie.markedSpans,Me;if(Ne)for(var Re=0;Re<Ne.length;++Re){var st=Ne[Re];st.marker.collapsed&&(st.from==null||st.from<de)&&(st.to==null||st.to>de)&&(!Me||Oi(Me,st.marker)<0)&&(Me=st.marker)}return Me}function ci(ie,de,Ne,Me,Re){var st=pn(ie,de),wt=An&&st.markedSpans;if(wt)for(var At=0;At<wt.length;++At){var Nt=wt[At];if(Nt.marker.collapsed){var Gt=Nt.marker.find(0),Sn=On(Gt.from,Ne)||Pi(Nt.marker)-Pi(Re),Yt=On(Gt.to,Me)||Mo(Nt.marker)-Mo(Re);if(!(Sn>=0&&Yt<=0||Sn<=0&&Yt>=0)&&(Sn<=0&&(Nt.marker.inclusiveRight&&Re.inclusiveLeft?On(Gt.to,Ne)>=0:On(Gt.to,Ne)>0)||Sn>=0&&(Nt.marker.inclusiveRight&&Re.inclusiveLeft?On(Gt.from,Me)<=0:On(Gt.from,Me)<0)))return!0}}}function ii(ie){for(var de;de=Lo(ie);)ie=de.find(-1,!0).line;return ie}function Ji(ie){for(var de;de=ko(ie);)ie=de.find(1,!0).line;return ie}function Or(ie){for(var de,Ne;de=ko(ie);)ie=de.find(1,!0).line,(Ne||(Ne=[])).push(ie);return Ne}function Ir(ie,de){var Ne=pn(ie,de),Me=ii(Ne);return Ne==Me?de:Zt(Me)}function ai(ie,de){if(de>ie.lastLine())return de;var Ne=pn(ie,de),Me;if(!Xn(ie,Ne))return de;for(;Me=ko(Ne);)Ne=Me.find(1,!0).line;return Zt(Ne)+1}function Xn(ie,de){var Ne=An&&de.markedSpans;if(Ne){for(var Me=void 0,Re=0;Re<Ne.length;++Re)if(Me=Ne[Re],!!Me.marker.collapsed){if(Me.from==null)return!0;if(!Me.marker.widgetNode&&Me.from==0&&Me.marker.inclusiveLeft&&no(ie,de,Me))return!0}}}function no(ie,de,Ne){if(Ne.to==null){var Me=Ne.marker.find(1,!0);return no(ie,Me.line,fo(Me.line.markedSpans,Ne.marker))}if(Ne.marker.inclusiveRight&&Ne.to==de.text.length)return!0;for(var Re=void 0,st=0;st<de.markedSpans.length;++st)if(Re=de.markedSpans[st],Re.marker.collapsed&&!Re.marker.widgetNode&&Re.from==Ne.to&&(Re.to==null||Re.to!=Ne.from)&&(Re.marker.inclusiveLeft||Ne.marker.inclusiveRight)&&no(ie,de,Re))return!0}function po(ie){ie=ii(ie);for(var de=0,Ne=ie.parent,Me=0;Me<Ne.lines.length;++Me){var Re=Ne.lines[Me];if(Re==ie)break;de+=Re.height}for(var st=Ne.parent;st;Ne=st,st=Ne.parent)for(var wt=0;wt<st.children.length;++wt){var At=st.children[wt];if(At==Ne)break;de+=At.height}return de}function Vo(ie){if(ie.height==0)return 0;for(var de=ie.text.length,Ne,Me=ie;Ne=Lo(Me);){var Re=Ne.find(0,!0);Me=Re.from.line,de+=Re.from.ch-Re.to.ch}for(Me=ie;Ne=ko(Me);){var st=Ne.find(0,!0);de-=Me.text.length-st.from.ch,Me=st.to.line,de+=Me.text.length-st.to.ch}return de}function To(ie){var de=ie.display,Ne=ie.doc;de.maxLine=pn(Ne,Ne.first),de.maxLineLength=Vo(de.maxLine),de.maxLineChanged=!0,Ne.iter(function(Me){var Re=Vo(Me);Re>de.maxLineLength&&(de.maxLineLength=Re,de.maxLine=Me)})}var ea=function(ie,de,Ne){this.text=ie,Lt(this,de),this.height=Ne?Ne(this):1};ea.prototype.lineNo=function(){return Zt(this)},Mn(ea);function ba(ie,de,Ne,Me){ie.text=de,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),dr(ie),Lt(ie,Ne);var Re=Me?Me(ie):1;Re!=ie.height&&bn(ie,Re)}function Ia(ie){ie.parent=null,dr(ie)}var Va={},xs={};function fs(ie,de){if(!ie||/^\s*$/.test(ie))return null;var Ne=de.addModeClass?xs:Va;return Ne[ie]||(Ne[ie]=ie.replace(/\S+/g,"cm-$&"))}function Tn(ie,de){var Ne=Be("span",null,null,ce?"padding-right: .1px":null),Me={pre:Be("pre",[Ne],"CodeMirror-line"),content:Ne,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};de.measure={};for(var Re=0;Re<=(de.rest?de.rest.length:0);Re++){var st=Re?de.rest[Re-1]:de.line,wt=void 0;Me.pos=0,Me.addToken=jl,gr(ie.display.measure)&&(wt=qt(st,ie.doc.direction))&&(Me.addToken=Zi(Me.addToken,wt)),Me.map=[];var At=de!=ie.display.externalMeasured&&Zt(st);pa(st,Me,Hr(ie,st,At)),st.styleClasses&&(st.styleClasses.bgClass&&(Me.bgClass=et(st.styleClasses.bgClass,Me.bgClass||"")),st.styleClasses.textClass&&(Me.textClass=et(st.styleClasses.textClass,Me.textClass||""))),Me.map.length==0&&Me.map.push(0,0,Me.content.appendChild(Si(ie.display.measure))),Re==0?(de.measure.map=Me.map,de.measure.cache={}):((de.measure.maps||(de.measure.maps=[])).push(Me.map),(de.measure.caches||(de.measure.caches=[])).push({}))}if(ce){var Nt=Me.content.lastChild;(/\bcm-tab\b/.test(Nt.className)||Nt.querySelector&&Nt.querySelector(".cm-tab"))&&(Me.content.className="cm-tab-wrap-hack")}return kt(ie,"renderLine",ie,de.line,Me.pre),Me.pre.className&&(Me.textClass=et(Me.pre.className,Me.textClass||"")),Me}function qa(ie){var de=je("span","\u2022","cm-invalidchar");return de.title="\\u"+ie.charCodeAt(0).toString(16),de.setAttribute("aria-label",de.title),de}function jl(ie,de,Ne,Me,Re,st,wt){if(de){var At=ie.splitSpaces?Il(de,ie.trailingSpace):de,Nt=ie.cm.state.specialChars,Gt=!1,Sn;if(!Nt.test(de))ie.col+=de.length,Sn=document.createTextNode(At),ie.map.push(ie.pos,ie.pos+de.length,Sn),Fe&&me<9&&(Gt=!0),ie.pos+=de.length;else{Sn=document.createDocumentFragment();for(var Yt=0;;){Nt.lastIndex=Yt;var Un=Nt.exec(de),zn=Un?Un.index-Yt:de.length-Yt;if(zn){var yr=document.createTextNode(At.slice(Yt,Yt+zn));Fe&&me<9?Sn.appendChild(je("span",[yr])):Sn.appendChild(yr),ie.map.push(ie.pos,ie.pos+zn,yr),ie.col+=zn,ie.pos+=zn}if(!Un)break;Yt+=zn+1;var Pr=void 0;if(Un[0]==" "){var Dr=ie.cm.options.tabSize,ri=Dr-ie.col%Dr;Pr=Sn.appendChild(je("span",zt(ri),"cm-tab")),Pr.setAttribute("role","presentation"),Pr.setAttribute("cm-text"," "),ie.col+=ri}else Un[0]=="\r"||Un[0]==`
|
|
|
`?(Pr=Sn.appendChild(je("span",Un[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Pr.setAttribute("cm-text",Un[0]),ie.col+=1):(Pr=ie.cm.options.specialCharPlaceholder(Un[0]),Pr.setAttribute("cm-text",Un[0]),Fe&&me<9?Sn.appendChild(je("span",[Pr])):Sn.appendChild(Pr),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,Pr),ie.pos++}}if(ie.trailingSpace=At.charCodeAt(de.length-1)==32,Ne||Me||Re||Gt||st||wt){var Ci=Ne||"";Me&&(Ci+=Me),Re&&(Ci+=Re);var yi=je("span",[Sn],Ci,st);if(wt)for(var Bi in wt)wt.hasOwnProperty(Bi)&&Bi!="style"&&Bi!="class"&&yi.setAttribute(Bi,wt[Bi]);return ie.content.appendChild(yi)}ie.content.appendChild(Sn)}}function Il(ie,de){if(ie.length>1&&!/ /.test(ie))return ie;for(var Ne=de,Me="",Re=0;Re<ie.length;Re++){var st=ie.charAt(Re);st==" "&&Ne&&(Re==ie.length-1||ie.charCodeAt(Re+1)==32)&&(st="\xA0"),Me+=st,Ne=st==" "}return Me}function Zi(ie,de){return function(Ne,Me,Re,st,wt,At,Nt){Re=Re?Re+" cm-force-border":"cm-force-border";for(var Gt=Ne.pos,Sn=Gt+Me.length;;){for(var Yt=void 0,Un=0;Un<de.length&&(Yt=de[Un],!(Yt.to>Gt&&Yt.from<=Gt));Un++);if(Yt.to>=Sn)return ie(Ne,Me,Re,st,wt,At,Nt);ie(Ne,Me.slice(0,Yt.to-Gt),Re,st,null,At,Nt),st=null,Me=Me.slice(Yt.to-Gt),Gt=Yt.to}}}function jo(ie,de,Ne,Me){var Re=!Me&&Ne.widgetNode;Re&&ie.map.push(ie.pos,ie.pos+de,Re),!Me&&ie.cm.display.input.needsContentAttribute&&(Re||(Re=ie.content.appendChild(document.createElement("span"))),Re.setAttribute("cm-marker",Ne.id)),Re&&(ie.cm.display.input.setUneditable(Re),ie.content.appendChild(Re)),ie.pos+=de,ie.trailingSpace=!1}function pa(ie,de,Ne){var Me=ie.markedSpans,Re=ie.text,st=0;if(!Me){for(var wt=1;wt<Ne.length;wt+=2)de.addToken(de,Re.slice(st,st=Ne[wt]),fs(Ne[wt+1],de.cm.options));return}for(var At=Re.length,Nt=0,Gt=1,Sn="",Yt,Un,zn=0,yr,Pr,Dr,ri,Ci;;){if(zn==Nt){yr=Pr=Dr=Un="",Ci=null,ri=null,zn=1/0;for(var yi=[],Bi=void 0,uo=0;uo<Me.length;++uo){var mi=Me[uo],Eo=mi.marker;if(Eo.type=="bookmark"&&mi.from==Nt&&Eo.widgetNode)yi.push(Eo);else if(mi.from<=Nt&&(mi.to==null||mi.to>Nt||Eo.collapsed&&mi.to==Nt&&mi.from==Nt)){if(mi.to!=null&&mi.to!=Nt&&zn>mi.to&&(zn=mi.to,Pr=""),Eo.className&&(yr+=" "+Eo.className),Eo.css&&(Un=(Un?Un+";":"")+Eo.css),Eo.startStyle&&mi.from==Nt&&(Dr+=" "+Eo.startStyle),Eo.endStyle&&mi.to==zn&&(Bi||(Bi=[])).push(Eo.endStyle,mi.to),Eo.title&&((Ci||(Ci={})).title=Eo.title),Eo.attributes)for(var Ya in Eo.attributes)(Ci||(Ci={}))[Ya]=Eo.attributes[Ya];Eo.collapsed&&(!ri||Oi(ri.marker,Eo)<0)&&(ri=mi)}else mi.from>Nt&&zn>mi.from&&(zn=mi.from)}if(Bi)for(var Ds=0;Ds<Bi.length;Ds+=2)Bi[Ds+1]==zn&&(Pr+=" "+Bi[Ds]);if(!ri||ri.from==Nt)for(var is=0;is<yi.length;++is)jo(de,0,yi[is]);if(ri&&(ri.from||0)==Nt){if(jo(de,(ri.to==null?At+1:ri.to)-Nt,ri.marker,ri.from==null),ri.to==null)return;ri.to==Nt&&(ri=!1)}}if(Nt>=At)break;for(var Zl=Math.min(At,zn);;){if(Sn){var ml=Nt+Sn.length;if(!ri){var ks=ml>Zl?Sn.slice(0,Zl-Nt):Sn;de.addToken(de,ks,Yt?Yt+yr:yr,Dr,Nt+ks.length==zn?Pr:"",Un,Ci)}if(ml>=Zl){Sn=Sn.slice(Zl-Nt),Nt=Zl;break}Nt=ml,Dr=""}Sn=Re.slice(st,st=Ne[Gt++]),Yt=fs(Ne[Gt++],de.cm.options)}}}function No(ie,de,Ne){this.line=de,this.rest=Or(de),this.size=this.rest?Zt(St(this.rest))-Ne+1:1,this.node=this.text=null,this.hidden=Xn(ie,de)}function Qi(ie,de,Ne){for(var Me=[],Re,st=de;st<Ne;st=Re){var wt=new No(ie.doc,pn(ie.doc,st),st);Re=st+wt.size,Me.push(wt)}return Me}var Po=null;function Wa(ie){Po?Po.ops.push(ie):ie.ownsGroup=Po={ops:[ie],delayedCallbacks:[]}}function Ei(ie){var de=ie.delayedCallbacks,Ne=0;do{for(;Ne<de.length;Ne++)de[Ne].call(null);for(var Me=0;Me<ie.ops.length;Me++){var Re=ie.ops[Me];if(Re.cursorActivityHandlers)for(;Re.cursorActivityCalled<Re.cursorActivityHandlers.length;)Re.cursorActivityHandlers[Re.cursorActivityCalled++].call(null,Re.cm)}}while(Ne<de.length)}function ro(ie,de){var Ne=ie.ownsGroup;if(Ne)try{Ei(Ne)}finally{Po=null,de(Ne)}}var eo=null;function kr(ie,de){var Ne=Ut(ie,de);if(Ne.length){var Me=Array.prototype.slice.call(arguments,2),Re;Po?Re=Po.delayedCallbacks:eo?Re=eo:(Re=eo=[],setTimeout(Da,0));for(var st=function(At){Re.push(function(){return Ne[At].apply(null,Me)})},wt=0;wt<Ne.length;++wt)st(wt)}}function Da(){var ie=eo;eo=null;for(var de=0;de<ie.length;++de)ie[de]()}function Fa(ie,de,Ne,Me){for(var Re=0;Re<de.changes.length;Re++){var st=de.changes[Re];st=="text"?wr(ie,de):st=="gutter"?Ua(ie,de,Ne,Me):st=="class"?oa(ie,de):st=="widget"&&bl(ie,de,Me)}de.changes=null}function Cs(ie){return ie.node==ie.text&&(ie.node=je("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),Fe&&me<8&&(ie.node.style.zIndex=2)),ie.node}function Dl(ie,de){var Ne=de.bgClass?de.bgClass+" "+(de.line.bgClass||""):de.line.bgClass;if(Ne&&(Ne+=" CodeMirror-linebackground"),de.background)Ne?de.background.className=Ne:(de.background.parentNode.removeChild(de.background),de.background=null);else if(Ne){var Me=Cs(de);de.background=Me.insertBefore(je("div",null,Ne),Me.firstChild),ie.display.input.setUneditable(de.background)}}function ql(ie,de){var Ne=ie.display.externalMeasured;return Ne&&Ne.line==de.line?(ie.display.externalMeasured=null,de.measure=Ne.measure,Ne.built):Tn(ie,de)}function wr(ie,de){var Ne=de.text.className,Me=ql(ie,de);de.text==de.node&&(de.node=Me.pre),de.text.parentNode.replaceChild(Me.pre,de.text),de.text=Me.pre,Me.bgClass!=de.bgClass||Me.textClass!=de.textClass?(de.bgClass=Me.bgClass,de.textClass=Me.textClass,oa(ie,de)):Ne&&(de.text.className=Ne)}function oa(ie,de){Dl(ie,de),de.line.wrapClass?Cs(de).className=de.line.wrapClass:de.node!=de.text&&(de.node.className="");var Ne=de.textClass?de.textClass+" "+(de.line.textClass||""):de.line.textClass;de.text.className=Ne||""}function Ua(ie,de,Ne,Me){if(de.gutter&&(de.node.removeChild(de.gutter),de.gutter=null),de.gutterBackground&&(de.node.removeChild(de.gutterBackground),de.gutterBackground=null),de.line.gutterClass){var Re=Cs(de);de.gutterBackground=je("div",null,"CodeMirror-gutter-background "+de.line.gutterClass,"left: "+(ie.options.fixedGutter?Me.fixedPos:-Me.gutterTotalWidth)+"px; width: "+Me.gutterTotalWidth+"px"),ie.display.input.setUneditable(de.gutterBackground),Re.insertBefore(de.gutterBackground,de.text)}var st=de.line.gutterMarkers;if(ie.options.lineNumbers||st){var wt=Cs(de),At=de.gutter=je("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?Me.fixedPos:-Me.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(At),wt.insertBefore(At,de.text),de.line.gutterClass&&(At.className+=" "+de.line.gutterClass),ie.options.lineNumbers&&(!st||!st["CodeMirror-linenumbers"])&&(de.lineNumber=At.appendChild(je("div",ar(ie.options,Ne),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+Me.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),st)for(var Nt=0;Nt<ie.display.gutterSpecs.length;++Nt){var Gt=ie.display.gutterSpecs[Nt].className,Sn=st.hasOwnProperty(Gt)&&st[Gt];Sn&&At.appendChild(je("div",[Sn],"CodeMirror-gutter-elt","left: "+Me.gutterLeft[Gt]+"px; width: "+Me.gutterWidth[Gt]+"px"))}}}function bl(ie,de,Ne){de.alignable&&(de.alignable=null);for(var Me=Pe("CodeMirror-linewidget"),Re=de.node.firstChild,st=void 0;Re;Re=st)st=Re.nextSibling,Me.test(Re.className)&&de.node.removeChild(Re);Bl(ie,de,Ne)}function Fl(ie,de,Ne,Me){var Re=ql(ie,de);return de.text=de.node=Re.pre,Re.bgClass&&(de.bgClass=Re.bgClass),Re.textClass&&(de.textClass=Re.textClass),oa(ie,de),Ua(ie,de,Ne,Me),Bl(ie,de,Me),de.node}function Bl(ie,de,Ne){if(Di(ie,de.line,de,Ne,!0),de.rest)for(var Me=0;Me<de.rest.length;Me++)Di(ie,de.rest[Me],de,Ne,!1)}function Di(ie,de,Ne,Me,Re){if(de.widgets)for(var st=Cs(Ne),wt=0,At=de.widgets;wt<At.length;++wt){var Nt=At[wt],Gt=je("div",[Nt.node],"CodeMirror-linewidget"+(Nt.className?" "+Nt.className:""));Nt.handleMouseEvents||Gt.setAttribute("cm-ignore-events","true"),mc(Nt,Gt,Ne,Me),ie.display.input.setUneditable(Gt),Re&&Nt.above?st.insertBefore(Gt,Ne.gutter||Ne.text):st.appendChild(Gt),kr(Nt,"redraw")}}function mc(ie,de,Ne,Me){if(ie.noHScroll){(Ne.alignable||(Ne.alignable=[])).push(de);var Re=Me.wrapperWidth;de.style.left=Me.fixedPos+"px",ie.coverGutter||(Re-=Me.gutterTotalWidth,de.style.paddingLeft=Me.gutterTotalWidth+"px"),de.style.width=Re+"px"}ie.coverGutter&&(de.style.zIndex=5,de.style.position="relative",ie.noHScroll||(de.style.marginLeft=-Me.gutterTotalWidth+"px"))}function el(ie){if(ie.height!=null)return ie.height;var de=ie.doc.cm;if(!de)return 0;if(!qe(document.body,ie.node)){var Ne="position: relative;";ie.coverGutter&&(Ne+="margin-left: -"+de.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(Ne+="width: "+de.display.wrapper.clientWidth+"px;"),Ae(de.display.measure,je("div",[ie.node],null,Ne))}return ie.height=ie.node.parentNode.offsetHeight}function tl(ie,de){for(var Ne=er(de);Ne!=ie.wrapper;Ne=Ne.parentNode)if(!Ne||Ne.nodeType==1&&Ne.getAttribute("cm-ignore-events")=="true"||Ne.parentNode==ie.sizer&&Ne!=ie.mover)return!0}function As(ie){return ie.lineSpace.offsetTop}function Eu(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function Ru(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var de=Ae(ie.measure,je("pre","x","CodeMirror-line-like")),Ne=window.getComputedStyle?window.getComputedStyle(de):de.currentStyle,Me={left:parseInt(Ne.paddingLeft),right:parseInt(Ne.paddingRight)};return!isNaN(Me.left)&&!isNaN(Me.right)&&(ie.cachedPaddingH=Me),Me}function _s(ie){return xt-ie.display.nativeBarWidth}function hl(ie){return ie.display.scroller.clientWidth-_s(ie)-ie.display.barWidth}function Hc(ie){return ie.display.scroller.clientHeight-_s(ie)-ie.display.barHeight}function hh(ie,de,Ne){var Me=ie.options.lineWrapping,Re=Me&&hl(ie);if(!de.measure.heights||Me&&de.measure.width!=Re){var st=de.measure.heights=[];if(Me){de.measure.width=Re;for(var wt=de.text.firstChild.getClientRects(),At=0;At<wt.length-1;At++){var Nt=wt[At],Gt=wt[At+1];Math.abs(Nt.bottom-Gt.bottom)>2&&st.push((Nt.bottom+Gt.top)/2-Ne.top)}}st.push(Ne.bottom-Ne.top)}}function Gc(ie,de,Ne){if(ie.line==de)return{map:ie.measure.map,cache:ie.measure.cache};for(var Me=0;Me<ie.rest.length;Me++)if(ie.rest[Me]==de)return{map:ie.measure.maps[Me],cache:ie.measure.caches[Me]};for(var Re=0;Re<ie.rest.length;Re++)if(Zt(ie.rest[Re])>Ne)return{map:ie.measure.maps[Re],cache:ie.measure.caches[Re],before:!0}}function Wh(ie,de){de=ii(de);var Ne=Zt(de),Me=ie.display.externalMeasured=new No(ie.doc,de,Ne);Me.lineN=Ne;var Re=Me.built=Tn(ie,Me);return Me.text=Re.pre,Ae(ie.display.lineMeasure,Re.pre),Me}function Wc(ie,de,Ne,Me){return Rl(ie,_u(ie,de),Ne,Me)}function vc(ie,de){if(de>=ie.display.viewFrom&&de<ie.display.viewTo)return ie.display.view[zs(ie,de)];var Ne=ie.display.externalMeasured;if(Ne&&de>=Ne.lineN&&de<Ne.lineN+Ne.size)return Ne}function _u(ie,de){var Ne=Zt(de),Me=vc(ie,Ne);Me&&!Me.text?Me=null:Me&&Me.changes&&(Fa(ie,Me,Ne,Cd(ie)),ie.curOp.forceUpdate=!0),Me||(Me=Wh(ie,de));var Re=Gc(Me,de,Ne);return{line:de,view:Me,rect:null,map:Re.map,cache:Re.cache,before:Re.before,hasHeights:!1}}function Rl(ie,de,Ne,Me,Re){de.before&&(Ne=-1);var st=Ne+(Me||""),wt;return de.cache.hasOwnProperty(st)?wt=de.cache[st]:(de.rect||(de.rect=de.view.text.getBoundingClientRect()),de.hasHeights||(hh(ie,de.view,de.rect),de.hasHeights=!0),wt=qi(ie,de,Ne,Me),wt.bogus||(de.cache[st]=wt)),{left:wt.left,right:wt.right,top:Re?wt.rtop:wt.top,bottom:Re?wt.rbottom:wt.bottom}}var dh={left:0,right:0,top:0,bottom:0};function Uc(ie,de,Ne){for(var Me,Re,st,wt,At,Nt,Gt=0;Gt<ie.length;Gt+=3)if(At=ie[Gt],Nt=ie[Gt+1],de<At?(Re=0,st=1,wt="left"):de<Nt?(Re=de-At,st=Re+1):(Gt==ie.length-3||de==Nt&&ie[Gt+3]>de)&&(st=Nt-At,Re=st-1,de>=Nt&&(wt="right")),Re!=null){if(Me=ie[Gt+2],At==Nt&&Ne==(Me.insertLeft?"left":"right")&&(wt=Ne),Ne=="left"&&Re==0)for(;Gt&&ie[Gt-2]==ie[Gt-3]&&ie[Gt-1].insertLeft;)Me=ie[(Gt-=3)+2],wt="left";if(Ne=="right"&&Re==Nt-At)for(;Gt<ie.length-3&&ie[Gt+3]==ie[Gt+4]&&!ie[Gt+5].insertLeft;)Me=ie[(Gt+=3)+2],wt="right";break}return{node:Me,start:Re,end:st,collapse:wt,coverStart:At,coverEnd:Nt}}function yc(ie,de){var Ne=dh;if(de=="left")for(var Me=0;Me<ie.length&&(Ne=ie[Me]).left==Ne.right;Me++);else for(var Re=ie.length-1;Re>=0&&(Ne=ie[Re]).left==Ne.right;Re--);return Ne}function qi(ie,de,Ne,Me){var Re=Uc(de.map,Ne,Me),st=Re.node,wt=Re.start,At=Re.end,Nt=Re.collapse,Gt;if(st.nodeType==3){for(var Sn=0;Sn<4;Sn++){for(;wt&&He(de.line.text.charAt(Re.coverStart+wt));)--wt;for(;Re.coverStart+At<Re.coverEnd&&He(de.line.text.charAt(Re.coverStart+At));)++At;if(Fe&&me<9&&wt==0&&At==Re.coverEnd-Re.coverStart?Gt=st.parentNode.getBoundingClientRect():Gt=yc(_e(st,wt,At).getClientRects(),Me),Gt.left||Gt.right||wt==0)break;At=wt,wt=wt-1,Nt="right"}Fe&&me<11&&(Gt=Io(ie.display.measure,Gt))}else{wt>0&&(Nt=Me="right");var Yt;ie.options.lineWrapping&&(Yt=st.getClientRects()).length>1?Gt=Yt[Me=="right"?Yt.length-1:0]:Gt=st.getBoundingClientRect()}if(Fe&&me<9&&!wt&&(!Gt||!Gt.left&&!Gt.right)){var Un=st.parentNode.getClientRects()[0];Un?Gt={left:Un.left,right:Un.left+ic(ie.display),top:Un.top,bottom:Un.bottom}:Gt=dh}for(var zn=Gt.top-de.rect.top,yr=Gt.bottom-de.rect.top,Pr=(zn+yr)/2,Dr=de.view.measure.heights,ri=0;ri<Dr.length-1&&!(Pr<Dr[ri]);ri++);var Ci=ri?Dr[ri-1]:0,yi=Dr[ri],Bi={left:(Nt=="right"?Gt.right:Gt.left)-de.rect.left,right:(Nt=="left"?Gt.left:Gt.right)-de.rect.left,top:Ci,bottom:yi};return!Gt.left&&!Gt.right&&(Bi.bogus=!0),ie.options.singleCursorHeightPerLine||(Bi.rtop=zn,Bi.rbottom=yr),Bi}function Io(ie,de){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!di(ie))return de;var Ne=screen.logicalXDPI/screen.deviceXDPI,Me=screen.logicalYDPI/screen.deviceYDPI;return{left:de.left*Ne,right:de.right*Ne,top:de.top*Me,bottom:de.bottom*Me}}function Es(ie){if(ie.measure&&(ie.measure.cache={},ie.measure.heights=null,ie.rest))for(var de=0;de<ie.rest.length;de++)ie.measure.caches[de]={}}function Xa(ie){ie.display.externalMeasure=null,Oe(ie.display.lineMeasure);for(var de=0;de<ie.display.view.length;de++)Es(ie.display.view[de])}function Ba(ie){Xa(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function ua(){return Le&&z?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Pa(){return Le&&z?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function $a(ie){var de=0;if(ie.widgets)for(var Ne=0;Ne<ie.widgets.length;++Ne)ie.widgets[Ne].above&&(de+=el(ie.widgets[Ne]));return de}function Ra(ie,de,Ne,Me,Re){if(!Re){var st=$a(de);Ne.top+=st,Ne.bottom+=st}if(Me=="line")return Ne;Me||(Me="local");var wt=po(de);if(Me=="local"?wt+=As(ie.display):wt-=ie.display.viewOffset,Me=="page"||Me=="window"){var At=ie.display.lineSpace.getBoundingClientRect();wt+=At.top+(Me=="window"?0:Pa());var Nt=At.left+(Me=="window"?0:ua());Ne.left+=Nt,Ne.right+=Nt}return Ne.top+=wt,Ne.bottom+=wt,Ne}function zu(ie,de,Ne){if(Ne=="div")return de;var Me=de.left,Re=de.top;if(Ne=="page")Me-=ua(),Re-=Pa();else if(Ne=="local"||!Ne){var st=ie.display.sizer.getBoundingClientRect();Me+=st.left,Re+=st.top}var wt=ie.display.lineSpace.getBoundingClientRect();return{left:Me-wt.left,top:Re-wt.top}}function _l(ie,de,Ne,Me,Re){return Me||(Me=pn(ie.doc,de.line)),Ra(ie,Me,Wc(ie,Me,de.ch,Re),Ne)}function Ta(ie,de,Ne,Me,Re,st){Me=Me||pn(ie.doc,de.line),Re||(Re=_u(ie,Me));function wt(yr,Pr){var Dr=Rl(ie,Re,yr,Pr?"right":"left",st);return Pr?Dr.left=Dr.right:Dr.right=Dr.left,Ra(ie,Me,Dr,Ne)}var At=qt(Me,ie.doc.direction),Nt=de.ch,Gt=de.sticky;if(Nt>=Me.text.length?(Nt=Me.text.length,Gt="before"):Nt<=0&&(Nt=0,Gt="after"),!At)return wt(Gt=="before"?Nt-1:Nt,Gt=="before");function Sn(yr,Pr,Dr){var ri=At[Pr],Ci=ri.level==1;return wt(Dr?yr-1:yr,Ci!=Dr)}var Yt=ht(At,Nt,Gt),Un=Et,zn=Sn(Nt,Yt,Gt=="before");return Un!=null&&(zn.other=Sn(Nt,Un,Gt!="before")),zn}function wd(ie,de){var Ne=0;de=gn(ie.doc,de),ie.options.lineWrapping||(Ne=ic(ie.display)*de.ch);var Me=pn(ie.doc,de.line),Re=po(Me)+As(ie.display);return{left:Ne,right:Ne,top:Re,bottom:Re+Me.height}}function bd(ie,de,Ne,Me,Re){var st=nn(ie,de,Ne);return st.xRel=Re,Me&&(st.outside=Me),st}function $c(ie,de,Ne){var Me=ie.doc;if(Ne+=ie.display.viewOffset,Ne<0)return bd(Me.first,0,null,-1,-1);var Re=jn(Me,Ne),st=Me.first+Me.size-1;if(Re>st)return bd(Me.first+Me.size-1,pn(Me,st).text.length,null,1,1);de<0&&(de=0);for(var wt=pn(Me,Re);;){var At=Yn(ie,wt,Re,de,Ne),Nt=xi(wt,At.ch+(At.xRel>0||At.outside>0?1:0));if(!Nt)return At;var Gt=Nt.find(1);if(Gt.line==Re)return Gt;wt=pn(Me,Re=Gt.line)}}function pi(ie,de,Ne,Me){Me-=$a(de);var Re=de.text.length,st=Xe(function(wt){return Rl(ie,Ne,wt-1).bottom<=Me},Re,0);return Re=Xe(function(wt){return Rl(ie,Ne,wt).top>Me},st,Re),{begin:st,end:Re}}function fh(ie,de,Ne,Me){Ne||(Ne=_u(ie,de));var Re=Ra(ie,de,Rl(ie,Ne,Me),"line").top;return pi(ie,de,Ne,Re)}function Qt(ie,de,Ne,Me){return ie.bottom<=Ne?!1:ie.top>Ne?!0:(Me?ie.left:ie.right)>de}function Yn(ie,de,Ne,Me,Re){Re-=po(de);var st=_u(ie,de),wt=$a(de),At=0,Nt=de.text.length,Gt=!0,Sn=qt(de,ie.doc.direction);if(Sn){var Yt=(ie.options.lineWrapping?af:Pd)(ie,de,Ne,st,Sn,Me,Re);Gt=Yt.level!=1,At=Gt?Yt.from:Yt.to-1,Nt=Gt?Yt.to:Yt.from-1}var Un=null,zn=null,yr=Xe(function(uo){var mi=Rl(ie,st,uo);return mi.top+=wt,mi.bottom+=wt,Qt(mi,Me,Re,!1)?(mi.top<=Re&&mi.left<=Me&&(Un=uo,zn=mi),!0):!1},At,Nt),Pr,Dr,ri=!1;if(zn){var Ci=Me-zn.left<zn.right-Me,yi=Ci==Gt;yr=Un+(yi?0:1),Dr=yi?"after":"before",Pr=Ci?zn.left:zn.right}else{!Gt&&(yr==Nt||yr==At)&&yr++,Dr=yr==0?"after":yr==de.text.length?"before":Rl(ie,st,yr-(Gt?1:0)).bottom+wt<=Re==Gt?"after":"before";var Bi=Ta(ie,nn(Ne,yr,Dr),"line",de,st);Pr=Bi.left,ri=Re<Bi.top?-1:Re>=Bi.bottom?1:0}return yr=We(de.text,yr,1),bd(Ne,yr,Dr,ri,Me-Pr)}function Pd(ie,de,Ne,Me,Re,st,wt){var At=Xe(function(Yt){var Un=Re[Yt],zn=Un.level!=1;return Qt(Ta(ie,nn(Ne,zn?Un.to:Un.from,zn?"before":"after"),"line",de,Me),st,wt,!0)},0,Re.length-1),Nt=Re[At];if(At>0){var Gt=Nt.level!=1,Sn=Ta(ie,nn(Ne,Gt?Nt.from:Nt.to,Gt?"after":"before"),"line",de,Me);Qt(Sn,st,wt,!0)&&Sn.top>wt&&(Nt=Re[At-1])}return Nt}function af(ie,de,Ne,Me,Re,st,wt){var At=pi(ie,de,Me,wt),Nt=At.begin,Gt=At.end;/\s/.test(de.text.charAt(Gt-1))&&Gt--;for(var Sn=null,Yt=null,Un=0;Un<Re.length;Un++){var zn=Re[Un];if(!(zn.from>=Gt||zn.to<=Nt)){var yr=zn.level!=1,Pr=Rl(ie,Me,yr?Math.min(Gt,zn.to)-1:Math.max(Nt,zn.from)).right,Dr=Pr<st?st-Pr+1e9:Pr-st;(!Sn||Yt>Dr)&&(Sn=zn,Yt=Dr)}}return Sn||(Sn=Re[Re.length-1]),Sn.from<Nt&&(Sn={from:Nt,to:Sn.to,level:Sn.level}),Sn.to>Gt&&(Sn={from:Sn.from,to:Gt,level:Sn.level}),Sn}var Hu;function Gu(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(Hu==null){Hu=je("pre",null,"CodeMirror-line-like");for(var de=0;de<49;++de)Hu.appendChild(document.createTextNode("x")),Hu.appendChild(je("br"));Hu.appendChild(document.createTextNode("x"))}Ae(ie.measure,Hu);var Ne=Hu.offsetHeight/50;return Ne>3&&(ie.cachedTextHeight=Ne),Oe(ie.measure),Ne||1}function ic(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var de=je("span","xxxxxxxxxx"),Ne=je("pre",[de],"CodeMirror-line-like");Ae(ie.measure,Ne);var Me=de.getBoundingClientRect(),Re=(Me.right-Me.left)/10;return Re>2&&(ie.cachedCharWidth=Re),Re||10}function Cd(ie){for(var de=ie.display,Ne={},Me={},Re=de.gutters.clientLeft,st=de.gutters.firstChild,wt=0;st;st=st.nextSibling,++wt){var At=ie.display.gutterSpecs[wt].className;Ne[At]=st.offsetLeft+st.clientLeft+Re,Me[At]=st.clientWidth}return{fixedPos:ph(de),gutterTotalWidth:de.gutters.offsetWidth,gutterLeft:Ne,gutterWidth:Me,wrapperWidth:de.wrapper.clientWidth}}function ph(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function _a(ie){var de=Gu(ie.display),Ne=ie.options.lineWrapping,Me=Ne&&Math.max(5,ie.display.scroller.clientWidth/ic(ie.display)-3);return function(Re){if(Xn(ie.doc,Re))return 0;var st=0;if(Re.widgets)for(var wt=0;wt<Re.widgets.length;wt++)Re.widgets[wt].height&&(st+=Re.widgets[wt].height);return Ne?st+(Math.ceil(Re.text.length/Me)||1)*de:st+de}}function zi(ie){var de=ie.doc,Ne=_a(ie);de.iter(function(Me){var Re=Ne(Me);Re!=Me.height&&bn(Me,Re)})}function nl(ie,de,Ne,Me){var Re=ie.display;if(!Ne&&er(de).getAttribute("cm-not-content")=="true")return null;var st,wt,At=Re.lineSpace.getBoundingClientRect();try{st=de.clientX-At.left,wt=de.clientY-At.top}catch(Yt){return null}var Nt=$c(ie,st,wt),Gt;if(Me&&Nt.xRel>0&&(Gt=pn(ie.doc,Nt.line).text).length==Nt.ch){var Sn=Je(Gt,Gt.length,ie.options.tabSize)-Gt.length;Nt=nn(Nt.line,Math.max(0,Math.round((st-Ru(ie.display).left)/ic(ie.display))-Sn))}return Nt}function zs(ie,de){if(de>=ie.display.viewTo||(de-=ie.display.viewFrom,de<0))return null;for(var Ne=ie.display.view,Me=0;Me<Ne.length;Me++)if(de-=Ne[Me].size,de<0)return Me}function ga(ie,de,Ne,Me){de==null&&(de=ie.doc.first),Ne==null&&(Ne=ie.doc.first+ie.doc.size),Me||(Me=0);var Re=ie.display;if(Me&&Ne<Re.viewTo&&(Re.updateLineNumbers==null||Re.updateLineNumbers>de)&&(Re.updateLineNumbers=de),ie.curOp.viewChanged=!0,de>=Re.viewTo)An&&Ir(ie.doc,de)<Re.viewTo&&as(ie);else if(Ne<=Re.viewFrom)An&&ai(ie.doc,Ne+Me)>Re.viewFrom?as(ie):(Re.viewFrom+=Me,Re.viewTo+=Me);else if(de<=Re.viewFrom&&Ne>=Re.viewTo)as(ie);else if(de<=Re.viewFrom){var st=Pl(ie,Ne,Ne+Me,1);st?(Re.view=Re.view.slice(st.index),Re.viewFrom=st.lineN,Re.viewTo+=Me):as(ie)}else if(Ne>=Re.viewTo){var wt=Pl(ie,de,de,-1);wt?(Re.view=Re.view.slice(0,wt.index),Re.viewTo=wt.lineN):as(ie)}else{var At=Pl(ie,de,de,-1),Nt=Pl(ie,Ne,Ne+Me,1);At&&Nt?(Re.view=Re.view.slice(0,At.index).concat(Qi(ie,At.lineN,Nt.lineN)).concat(Re.view.slice(Nt.index)),Re.viewTo+=Me):as(ie)}var Gt=Re.externalMeasured;Gt&&(Ne<Gt.lineN?Gt.lineN+=Me:de<Gt.lineN+Gt.size&&(Re.externalMeasured=null))}function yo(ie,de,Ne){ie.curOp.viewChanged=!0;var Me=ie.display,Re=ie.display.externalMeasured;if(Re&&de>=Re.lineN&&de<Re.lineN+Re.size&&(Me.externalMeasured=null),!(de<Me.viewFrom||de>=Me.viewTo)){var st=Me.view[zs(ie,de)];if(st.node!=null){var wt=st.changes||(st.changes=[]);ft(wt,Ne)==-1&&wt.push(Ne)}}}function as(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function Pl(ie,de,Ne,Me){var Re=zs(ie,de),st,wt=ie.display.view;if(!An||Ne==ie.doc.first+ie.doc.size)return{index:Re,lineN:Ne};for(var At=ie.display.viewFrom,Nt=0;Nt<Re;Nt++)At+=wt[Nt].size;if(At!=de){if(Me>0){if(Re==wt.length-1)return null;st=At+wt[Re].size-de,Re++}else st=At-de;de+=st,Ne+=st}for(;Ir(ie.doc,Ne)!=Ne;){if(Re==(Me<0?0:wt.length-1))return null;Ne+=Me*wt[Re-(Me<0?1:0)].size,Re+=Me}return{index:Re,lineN:Ne}}function ca(ie,de,Ne){var Me=ie.display,Re=Me.view;Re.length==0||de>=Me.viewTo||Ne<=Me.viewFrom?(Me.view=Qi(ie,de,Ne),Me.viewFrom=de):(Me.viewFrom>de?Me.view=Qi(ie,de,Me.viewFrom).concat(Me.view):Me.viewFrom<de&&(Me.view=Me.view.slice(zs(ie,de))),Me.viewFrom=de,Me.viewTo<Ne?Me.view=Me.view.concat(Qi(ie,Me.viewTo,Ne)):Me.viewTo>Ne&&(Me.view=Me.view.slice(0,zs(ie,Ne)))),Me.viewTo=Ne}function zl(ie){for(var de=ie.display.view,Ne=0,Me=0;Me<de.length;Me++){var Re=de[Me];!Re.hidden&&(!Re.node||Re.changes)&&++Ne}return Ne}function ws(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function Kc(ie,de){de===void 0&&(de=!0);for(var Ne=ie.doc,Me={},Re=Me.cursors=document.createDocumentFragment(),st=Me.selection=document.createDocumentFragment(),wt=0;wt<Ne.sel.ranges.length;wt++)if(!(!de&&wt==Ne.sel.primIndex)){var At=Ne.sel.ranges[wt];if(!(At.from().line>=ie.display.viewTo||At.to().line<ie.display.viewFrom)){var Nt=At.empty();(Nt||ie.options.showCursorWhenSelecting)&&_o(ie,At.head,Re),Nt||zo(ie,At,st)}}return Me}function _o(ie,de,Ne){var Me=Ta(ie,de,"div",null,null,!ie.options.singleCursorHeightPerLine),Re=Ne.appendChild(je("div","\xA0","CodeMirror-cursor"));if(Re.style.left=Me.left+"px",Re.style.top=Me.top+"px",Re.style.height=Math.max(0,Me.bottom-Me.top)*ie.options.cursorHeight+"px",Me.other){var st=Ne.appendChild(je("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));st.style.display="",st.style.left=Me.other.left+"px",st.style.top=Me.other.top+"px",st.style.height=(Me.other.bottom-Me.other.top)*.85+"px"}}function rl(ie,de){return ie.top-de.top||ie.left-de.left}function zo(ie,de,Ne){var Me=ie.display,Re=ie.doc,st=document.createDocumentFragment(),wt=Ru(ie.display),At=wt.left,Nt=Math.max(Me.sizerWidth,hl(ie)-Me.sizer.offsetLeft)-wt.right,Gt=Re.direction=="ltr";function Sn(yi,Bi,uo,mi){Bi<0&&(Bi=0),Bi=Math.round(Bi),mi=Math.round(mi),st.appendChild(je("div",null,"CodeMirror-selected","position: absolute; left: "+yi+`px;
|
|
|
top: `+Bi+"px; width: "+(uo==null?Nt-yi:uo)+`px;
|
|
|
height: `+(mi-Bi)+"px"))}function Yt(yi,Bi,uo){var mi=pn(Re,yi),Eo=mi.text.length,Ya,Ds;function is(ks,ou){return _l(ie,nn(yi,ks),"div",mi,ou)}function Zl(ks,ou,ol){var Ns=fh(ie,mi,null,ks),ia=ou=="ltr"==(ol=="after")?"left":"right",cs=ol=="after"?Ns.begin:Ns.end-(/\s/.test(mi.text.charAt(Ns.end-1))?2:1);return is(cs,ia)[ia]}var ml=qt(mi,Re.direction);return ct(ml,Bi||0,uo==null?Eo:uo,function(ks,ou,ol,Ns){var ia=ol=="ltr",cs=is(ks,ia?"left":"right"),Gs=is(ou-1,ia?"right":"left"),al=Bi==null&&ks==0,Vu=uo==null&&ou==Eo,os=Ns==0,ku=!ml||Ns==ml.length-1;if(Gs.top-cs.top<=3){var ys=(Gt?al:Vu)&&os,xf=(Gt?Vu:al)&&ku,vu=ys?At:(ia?cs:Gs).left,au=xf?Nt:(ia?Gs:cs).right;Sn(vu,cs.top,au-vu,cs.bottom)}else{var Vl,Oa,Ws,Mc;ia?(Vl=Gt&&al&&os?At:cs.left,Oa=Gt?Nt:Zl(ks,ol,"before"),Ws=Gt?At:Zl(ou,ol,"after"),Mc=Gt&&Vu&&ku?Nt:Gs.right):(Vl=Gt?Zl(ks,ol,"before"):At,Oa=!Gt&&al&&os?Nt:cs.right,Ws=!Gt&&Vu&&ku?At:Gs.left,Mc=Gt?Zl(ou,ol,"after"):Nt),Sn(Vl,cs.top,Oa-Vl,cs.bottom),cs.bottom<Gs.top&&Sn(At,cs.bottom,null,Gs.top),Sn(Ws,Gs.top,Mc-Ws,Gs.bottom)}(!Ya||rl(cs,Ya)<0)&&(Ya=cs),rl(Gs,Ya)<0&&(Ya=Gs),(!Ds||rl(cs,Ds)<0)&&(Ds=cs),rl(Gs,Ds)<0&&(Ds=Gs)}),{start:Ya,end:Ds}}var Un=de.from(),zn=de.to();if(Un.line==zn.line)Yt(Un.line,Un.ch,zn.ch);else{var yr=pn(Re,Un.line),Pr=pn(Re,zn.line),Dr=ii(yr)==ii(Pr),ri=Yt(Un.line,Un.ch,Dr?yr.text.length+1:null).end,Ci=Yt(zn.line,Dr?0:null,zn.ch).start;Dr&&(ri.top<Ci.top-2?(Sn(ri.right,ri.top,null,ri.bottom),Sn(At,Ci.top,Ci.left,Ci.bottom)):Sn(ri.right,ri.top,Ci.left-ri.right,ri.bottom)),ri.bottom<Ci.top&&Sn(At,ri.bottom,null,Ci.top)}Ne.appendChild(st)}function sa(ie){if(ie.state.focused){var de=ie.display;clearInterval(de.blinker);var Ne=!0;de.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?de.blinker=setInterval(function(){ie.hasFocus()||Zc(ie),de.cursorDiv.style.visibility=(Ne=!Ne)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(de.cursorDiv.style.visibility="hidden")}}function Ma(ie){ie.state.focused||(ie.display.input.focus(),Wo(ie))}function Ka(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,Zc(ie))},100)}function Wo(ie,de){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(kt(ie,"focus",ie,de),ie.state.focused=!0,Ye(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),ce&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),sa(ie))}function Zc(ie,de){ie.state.delayingBlurEvent||(ie.state.focused&&(kt(ie,"blur",ie,de),ie.state.focused=!1,Ie(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function Ri(ie){for(var de=ie.display,Ne=de.lineDiv.offsetTop,Me=0;Me<de.view.length;Me++){var Re=de.view[Me],st=ie.options.lineWrapping,wt=void 0,At=0;if(!Re.hidden){if(Fe&&me<8){var Nt=Re.node.offsetTop+Re.node.offsetHeight;wt=Nt-Ne,Ne=Nt}else{var Gt=Re.node.getBoundingClientRect();wt=Gt.bottom-Gt.top,!st&&Re.text.firstChild&&(At=Re.text.firstChild.getBoundingClientRect().right-Gt.left-1)}var Sn=Re.line.height-wt;if((Sn>.005||Sn<-.005)&&(bn(Re.line,wt),Wf(Re.line),Re.rest))for(var Yt=0;Yt<Re.rest.length;Yt++)Wf(Re.rest[Yt]);if(At>ie.display.sizerWidth){var Un=Math.ceil(At/ic(ie.display));Un>ie.display.maxLineLength&&(ie.display.maxLineLength=Un,ie.display.maxLine=Re.line,ie.display.maxLineChanged=!0)}}}}function Wf(ie){if(ie.widgets)for(var de=0;de<ie.widgets.length;++de){var Ne=ie.widgets[de],Me=Ne.node.parentNode;Me&&(Ne.height=Me.offsetHeight)}}function Do(ie,de,Ne){var Me=Ne&&Ne.top!=null?Math.max(0,Ne.top):ie.scroller.scrollTop;Me=Math.floor(Me-As(ie));var Re=Ne&&Ne.bottom!=null?Ne.bottom:Me+ie.wrapper.clientHeight,st=jn(de,Me),wt=jn(de,Re);if(Ne&&Ne.ensure){var At=Ne.ensure.from.line,Nt=Ne.ensure.to.line;At<st?(st=At,wt=jn(de,po(pn(de,At))+ie.wrapper.clientHeight)):Math.min(Nt,de.lastLine())>=wt&&(st=jn(de,po(pn(de,Nt))-ie.wrapper.clientHeight),wt=Nt)}return{from:st,to:Math.max(wt,st+1)}}function Uf(ie,de){if(!Xt(ie,"scrollCursorIntoView")){var Ne=ie.display,Me=Ne.sizer.getBoundingClientRect(),Re=null;if(de.top+Me.top<0?Re=!0:de.bottom+Me.top>(window.innerHeight||document.documentElement.clientHeight)&&(Re=!1),Re!=null&&!xe){var st=je("div","\u200B",null,`position: absolute;
|
|
|
top: `+(de.top-Ne.viewOffset-As(ie.display))+`px;
|
|
|
height: `+(de.bottom-de.top+_s(ie)+Ne.barHeight)+`px;
|
|
|
left: `+de.left+"px; width: "+Math.max(2,de.right-de.left)+"px;");ie.display.lineSpace.appendChild(st),st.scrollIntoView(Re),ie.display.lineSpace.removeChild(st)}}}function Uh(ie,de,Ne,Me){Me==null&&(Me=0);var Re;!ie.options.lineWrapping&&de==Ne&&(de=de.ch?nn(de.line,de.sticky=="before"?de.ch-1:de.ch,"after"):de,Ne=de.sticky=="before"?nn(de.line,de.ch+1,"before"):de);for(var st=0;st<5;st++){var wt=!1,At=Ta(ie,de),Nt=!Ne||Ne==de?At:Ta(ie,Ne);Re={left:Math.min(At.left,Nt.left),top:Math.min(At.top,Nt.top)-Me,right:Math.max(At.left,Nt.left),bottom:Math.max(At.bottom,Nt.bottom)+Me};var Gt=$f(ie,Re),Sn=ie.doc.scrollTop,Yt=ie.doc.scrollLeft;if(Gt.scrollTop!=null&&(Xc(ie,Gt.scrollTop),Math.abs(ie.doc.scrollTop-Sn)>1&&(wt=!0)),Gt.scrollLeft!=null&&(Uu(ie,Gt.scrollLeft),Math.abs(ie.doc.scrollLeft-Yt)>1&&(wt=!0)),!wt)break}return Re}function $h(ie,de){var Ne=$f(ie,de);Ne.scrollTop!=null&&Xc(ie,Ne.scrollTop),Ne.scrollLeft!=null&&Uu(ie,Ne.scrollLeft)}function $f(ie,de){var Ne=ie.display,Me=Gu(ie.display);de.top<0&&(de.top=0);var Re=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:Ne.scroller.scrollTop,st=Hc(ie),wt={};de.bottom-de.top>st&&(de.bottom=de.top+st);var At=ie.doc.height+Eu(Ne),Nt=de.top<Me,Gt=de.bottom>At-Me;if(de.top<Re)wt.scrollTop=Nt?0:de.top;else if(de.bottom>Re+st){var Sn=Math.min(de.top,(Gt?At:de.bottom)-st);Sn!=Re&&(wt.scrollTop=Sn)}var Yt=ie.options.fixedGutter?0:Ne.gutters.offsetWidth,Un=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:Ne.scroller.scrollLeft-Yt,zn=hl(ie)-Ne.gutters.offsetWidth,yr=de.right-de.left>zn;return yr&&(de.right=de.left+zn),de.left<10?wt.scrollLeft=0:de.left<Un?wt.scrollLeft=Math.max(0,de.left+Yt-(yr?0:10)):de.right>zn+Un-3&&(wt.scrollLeft=de.right+(yr?0:10)-zn),wt}function Ed(ie,de){de!=null&&(Wu(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+de)}function Sc(ie){Wu(ie);var de=ie.getCursor();ie.curOp.scrollToPos={from:de,to:de,margin:ie.options.cursorScrollMargin}}function Vc(ie,de,Ne){(de!=null||Ne!=null)&&Wu(ie),de!=null&&(ie.curOp.scrollLeft=de),Ne!=null&&(ie.curOp.scrollTop=Ne)}function Uo(ie,de){Wu(ie),ie.curOp.scrollToPos=de}function Wu(ie){var de=ie.curOp.scrollToPos;if(de){ie.curOp.scrollToPos=null;var Ne=wd(ie,de.from),Me=wd(ie,de.to);sf(ie,Ne,Me,de.margin)}}function sf(ie,de,Ne,Me){var Re=$f(ie,{left:Math.min(de.left,Ne.left),top:Math.min(de.top,Ne.top)-Me,right:Math.max(de.right,Ne.right),bottom:Math.max(de.bottom,Ne.bottom)+Me});Vc(ie,Re.scrollLeft,Re.scrollTop)}function Xc(ie,de){Math.abs(ie.doc.scrollTop-de)<2||(tt||Yr(ie,{top:de}),Kf(ie,de,!0),tt&&Yr(ie),nr(ie,100))}function Kf(ie,de,Ne){de=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,de)),!(ie.display.scroller.scrollTop==de&&!Ne)&&(ie.doc.scrollTop=de,ie.display.scrollbars.setScrollTop(de),ie.display.scroller.scrollTop!=de&&(ie.display.scroller.scrollTop=de))}function Uu(ie,de,Ne,Me){de=Math.max(0,Math.min(de,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((Ne?de==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-de)<2)&&!Me)&&(ie.doc.scrollLeft=de,Hi(ie),ie.display.scroller.scrollLeft!=de&&(ie.display.scroller.scrollLeft=de),ie.display.scrollbars.setScrollLeft(de))}function pu(ie){var de=ie.display,Ne=de.gutters.offsetWidth,Me=Math.round(ie.doc.height+Eu(ie.display));return{clientHeight:de.scroller.clientHeight,viewHeight:de.wrapper.clientHeight,scrollWidth:de.scroller.scrollWidth,clientWidth:de.scroller.clientWidth,viewWidth:de.wrapper.clientWidth,barLeft:ie.options.fixedGutter?Ne:0,docHeight:Me,scrollHeight:Me+_s(ie)+de.barHeight,nativeBarWidth:de.nativeBarWidth,gutterWidth:Ne}}var xc=function(ie,de,Ne){this.cm=Ne;var Me=this.vert=je("div",[je("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Re=this.horiz=je("div",[je("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");Me.tabIndex=Re.tabIndex=-1,ie(Me),ie(Re),Wt(Me,"scroll",function(){Me.clientHeight&&de(Me.scrollTop,"vertical")}),Wt(Re,"scroll",function(){Re.clientWidth&&de(Re.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Fe&&me<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};xc.prototype.update=function(ie){var de=ie.scrollWidth>ie.clientWidth+1,Ne=ie.scrollHeight>ie.clientHeight+1,Me=ie.nativeBarWidth;if(Ne){this.vert.style.display="block",this.vert.style.bottom=de?Me+"px":"0";var Re=ie.viewHeight-(de?Me:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+Re)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(de){this.horiz.style.display="block",this.horiz.style.right=Ne?Me+"px":"0",this.horiz.style.left=ie.barLeft+"px";var st=ie.viewWidth-ie.barLeft-(Ne?Me:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+st)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(Me==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:Ne?Me:0,bottom:de?Me:0}},xc.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},xc.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},xc.prototype.zeroWidthHack=function(){var ie=ae&&!ve?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ot,this.disableVert=new ot},xc.prototype.enableZeroWidthBar=function(ie,de,Ne){ie.style.pointerEvents="auto";function Me(){var Re=ie.getBoundingClientRect(),st=Ne=="vert"?document.elementFromPoint(Re.right-1,(Re.top+Re.bottom)/2):document.elementFromPoint((Re.right+Re.left)/2,Re.bottom-1);st!=ie?ie.style.pointerEvents="none":de.set(1e3,Me)}de.set(1e3,Me)},xc.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var Tu=function(){};Tu.prototype.update=function(){return{bottom:0,right:0}},Tu.prototype.setScrollLeft=function(){},Tu.prototype.setScrollTop=function(){},Tu.prototype.clear=function(){};function wc(ie,de){de||(de=pu(ie));var Ne=ie.display.barWidth,Me=ie.display.barHeight;Td(ie,de);for(var Re=0;Re<4&&Ne!=ie.display.barWidth||Me!=ie.display.barHeight;Re++)Ne!=ie.display.barWidth&&ie.options.lineWrapping&&Ri(ie),Td(ie,pu(ie)),Ne=ie.display.barWidth,Me=ie.display.barHeight}function Td(ie,de){var Ne=ie.display,Me=Ne.scrollbars.update(de);Ne.sizer.style.paddingRight=(Ne.barWidth=Me.right)+"px",Ne.sizer.style.paddingBottom=(Ne.barHeight=Me.bottom)+"px",Ne.heightForcer.style.borderBottom=Me.bottom+"px solid transparent",Me.right&&Me.bottom?(Ne.scrollbarFiller.style.display="block",Ne.scrollbarFiller.style.height=Me.bottom+"px",Ne.scrollbarFiller.style.width=Me.right+"px"):Ne.scrollbarFiller.style.display="",Me.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(Ne.gutterFiller.style.display="block",Ne.gutterFiller.style.height=Me.bottom+"px",Ne.gutterFiller.style.width=de.gutterWidth+"px"):Ne.gutterFiller.style.display=""}var lf={native:xc,null:Tu};function uf(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Ie(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new lf[ie.options.scrollbarStyle](function(de){ie.display.wrapper.insertBefore(de,ie.display.scrollbarFiller),Wt(de,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),de.setAttribute("cm-not-content","true")},function(de,Ne){Ne=="horizontal"?Uu(ie,de):Xc(ie,de)},ie),ie.display.scrollbars.addClass&&Ye(ie.display.wrapper,ie.display.scrollbars.addClass)}var Zf=0;function dl(ie){ie.curOp={cm:ie,viewChanged:!1,startHeight:ie.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:++Zf},Wa(ie.curOp)}function bc(ie){var de=ie.curOp;de&&ro(de,function(Ne){for(var Me=0;Me<Ne.ops.length;Me++)Ne.ops[Me].cm.curOp=null;$p(Ne)})}function $p(ie){for(var de=ie.ops,Ne=0;Ne<de.length;Ne++)Ft(de[Ne]);for(var Me=0;Me<de.length;Me++)Rt(de[Me]);for(var Re=0;Re<de.length;Re++)rn(de[Re]);for(var st=0;st<de.length;st++)sn(de[st]);for(var wt=0;wt<de.length;wt++)wn(de[wt])}function Ft(ie){var de=ie.cm,Ne=de.display;Nr(de),ie.updateMaxLine&&To(de),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<Ne.viewFrom||ie.scrollToPos.to.line>=Ne.viewTo)||Ne.maxLineChanged&&de.options.lineWrapping,ie.update=ie.mustUpdate&&new or(de,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function Rt(ie){ie.updatedDisplay=ie.mustUpdate&&qr(ie.cm,ie.update)}function rn(ie){var de=ie.cm,Ne=de.display;ie.updatedDisplay&&Ri(de),ie.barMeasure=pu(de),Ne.maxLineChanged&&!de.options.lineWrapping&&(ie.adjustWidthTo=Wc(de,Ne.maxLine,Ne.maxLine.text.length).left+3,de.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(Ne.scroller.clientWidth,Ne.sizer.offsetLeft+ie.adjustWidthTo+_s(de)+de.display.barWidth),ie.maxScrollLeft=Math.max(0,Ne.sizer.offsetLeft+ie.adjustWidthTo-hl(de))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=Ne.input.prepareSelection())}function sn(ie){var de=ie.cm;ie.adjustWidthTo!=null&&(de.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<de.doc.scrollLeft&&Uu(de,Math.min(de.display.scroller.scrollLeft,ie.maxScrollLeft),!0),de.display.maxLineChanged=!1);var Ne=ie.focus&&ie.focus==ze();ie.preparedSelection&&de.display.input.showSelection(ie.preparedSelection,Ne),(ie.updatedDisplay||ie.startHeight!=de.doc.height)&&wc(de,ie.barMeasure),ie.updatedDisplay&&Li(de,ie.barMeasure),ie.selectionChanged&&sa(de),de.state.focused&&ie.updateInput&&de.display.input.reset(ie.typing),Ne&&Ma(ie.cm)}function wn(ie){var de=ie.cm,Ne=de.display,Me=de.doc;if(ie.updatedDisplay&&br(de,ie.update),Ne.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(Ne.wheelStartX=Ne.wheelStartY=null),ie.scrollTop!=null&&Kf(de,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&Uu(de,ie.scrollLeft,!0,!0),ie.scrollToPos){var Re=Uh(de,gn(Me,ie.scrollToPos.from),gn(Me,ie.scrollToPos.to),ie.scrollToPos.margin);Uf(de,Re)}var st=ie.maybeHiddenMarkers,wt=ie.maybeUnhiddenMarkers;if(st)for(var At=0;At<st.length;++At)st[At].lines.length||kt(st[At],"hide");if(wt)for(var Nt=0;Nt<wt.length;++Nt)wt[Nt].lines.length&&kt(wt[Nt],"unhide");Ne.wrapper.offsetHeight&&(Me.scrollTop=de.display.scroller.scrollTop),ie.changeObjs&&kt(de,"changes",de,ie.changeObjs),ie.update&&ie.update.finish()}function fn(ie,de){if(ie.curOp)return de();dl(ie);try{return de()}finally{bc(ie)}}function Hn(ie,de){return function(){if(ie.curOp)return de.apply(ie,arguments);dl(ie);try{return de.apply(ie,arguments)}finally{bc(ie)}}}function Wn(ie){return function(){if(this.curOp)return ie.apply(this,arguments);dl(this);try{return ie.apply(this,arguments)}finally{bc(this)}}}function _n(ie){return function(){var de=this.cm;if(!de||de.curOp)return ie.apply(this,arguments);dl(de);try{return ie.apply(this,arguments)}finally{bc(de)}}}function nr(ie,de){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(de,dt(lr,ie))}function lr(ie){var de=ie.doc;if(!(de.highlightFrontier>=ie.display.viewTo)){var Ne=+new Date+ie.options.workTime,Me=Lr(ie,de.highlightFrontier),Re=[];de.iter(Me.line,Math.min(de.first+de.size,ie.display.viewTo+500),function(st){if(Me.line>=ie.display.viewFrom){var wt=st.styles,At=st.text.length>ie.options.maxHighlightLength?Pn(de.mode,Me.state):null,Nt=mr(ie,st,Me,!0);At&&(Me.state=At),st.styles=Nt.styles;var Gt=st.styleClasses,Sn=Nt.classes;Sn?st.styleClasses=Sn:Gt&&(st.styleClasses=null);for(var Yt=!wt||wt.length!=st.styles.length||Gt!=Sn&&(!Gt||!Sn||Gt.bgClass!=Sn.bgClass||Gt.textClass!=Sn.textClass),Un=0;!Yt&&Un<wt.length;++Un)Yt=wt[Un]!=st.styles[Un];Yt&&Re.push(Me.line),st.stateAfter=Me.save(),Me.nextLine()}else st.text.length<=ie.options.maxHighlightLength&&en(ie,st.text,Me),st.stateAfter=Me.line%5==0?Me.save():null,Me.nextLine();if(+new Date>Ne)return nr(ie,ie.options.workDelay),!0}),de.highlightFrontier=Me.line,de.modeFrontier=Math.max(de.modeFrontier,Me.line),Re.length&&fn(ie,function(){for(var st=0;st<Re.length;st++)yo(ie,Re[st],"text")})}}var or=function(ie,de,Ne){var Me=ie.display;this.viewport=de,this.visible=Do(Me,ie.doc,de),this.editorIsHidden=!Me.wrapper.offsetWidth,this.wrapperHeight=Me.wrapper.clientHeight,this.wrapperWidth=Me.wrapper.clientWidth,this.oldDisplayWidth=hl(ie),this.force=Ne,this.dims=Cd(ie),this.events=[]};or.prototype.signal=function(ie,de){dn(ie,de)&&this.events.push(arguments)},or.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)kt.apply(null,this.events[ie])};function Nr(ie){var de=ie.display;!de.scrollbarsClipped&&de.scroller.offsetWidth&&(de.nativeBarWidth=de.scroller.offsetWidth-de.scroller.clientWidth,de.heightForcer.style.height=_s(ie)+"px",de.sizer.style.marginBottom=-de.nativeBarWidth+"px",de.sizer.style.borderRightWidth=_s(ie)+"px",de.scrollbarsClipped=!0)}function Er(ie){if(ie.hasFocus())return null;var de=ze();if(!de||!qe(ie.display.lineDiv,de))return null;var Ne={activeElt:de};if(window.getSelection){var Me=window.getSelection();Me.anchorNode&&Me.extend&&qe(ie.display.lineDiv,Me.anchorNode)&&(Ne.anchorNode=Me.anchorNode,Ne.anchorOffset=Me.anchorOffset,Ne.focusNode=Me.focusNode,Ne.focusOffset=Me.focusOffset)}return Ne}function Sr(ie){if(!(!ie||!ie.activeElt||ie.activeElt==ze())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&qe(document.body,ie.anchorNode)&&qe(document.body,ie.focusNode))){var de=window.getSelection(),Ne=document.createRange();Ne.setEnd(ie.anchorNode,ie.anchorOffset),Ne.collapse(!1),de.removeAllRanges(),de.addRange(Ne),de.extend(ie.focusNode,ie.focusOffset)}}function qr(ie,de){var Ne=ie.display,Me=ie.doc;if(de.editorIsHidden)return as(ie),!1;if(!de.force&&de.visible.from>=Ne.viewFrom&&de.visible.to<=Ne.viewTo&&(Ne.updateLineNumbers==null||Ne.updateLineNumbers>=Ne.viewTo)&&Ne.renderedView==Ne.view&&zl(ie)==0)return!1;ti(ie)&&(as(ie),de.dims=Cd(ie));var Re=Me.first+Me.size,st=Math.max(de.visible.from-ie.options.viewportMargin,Me.first),wt=Math.min(Re,de.visible.to+ie.options.viewportMargin);Ne.viewFrom<st&&st-Ne.viewFrom<20&&(st=Math.max(Me.first,Ne.viewFrom)),Ne.viewTo>wt&&Ne.viewTo-wt<20&&(wt=Math.min(Re,Ne.viewTo)),An&&(st=Ir(ie.doc,st),wt=ai(ie.doc,wt));var At=st!=Ne.viewFrom||wt!=Ne.viewTo||Ne.lastWrapHeight!=de.wrapperHeight||Ne.lastWrapWidth!=de.wrapperWidth;ca(ie,st,wt),Ne.viewOffset=po(pn(ie.doc,Ne.viewFrom)),ie.display.mover.style.top=Ne.viewOffset+"px";var Nt=zl(ie);if(!At&&Nt==0&&!de.force&&Ne.renderedView==Ne.view&&(Ne.updateLineNumbers==null||Ne.updateLineNumbers>=Ne.viewTo))return!1;var Gt=Er(ie);return Nt>4&&(Ne.lineDiv.style.display="none"),Kr(ie,Ne.updateLineNumbers,de.dims),Nt>4&&(Ne.lineDiv.style.display=""),Ne.renderedView=Ne.view,Sr(Gt),Oe(Ne.cursorDiv),Oe(Ne.selectionDiv),Ne.gutters.style.height=Ne.sizer.style.minHeight=0,At&&(Ne.lastWrapHeight=de.wrapperHeight,Ne.lastWrapWidth=de.wrapperWidth,nr(ie,400)),Ne.updateLineNumbers=null,!0}function br(ie,de){for(var Ne=de.viewport,Me=!0;;Me=!1){if(!Me||!ie.options.lineWrapping||de.oldDisplayWidth==hl(ie)){if(Ne&&Ne.top!=null&&(Ne={top:Math.min(ie.doc.height+Eu(ie.display)-Hc(ie),Ne.top)}),de.visible=Do(ie.display,ie.doc,Ne),de.visible.from>=ie.display.viewFrom&&de.visible.to<=ie.display.viewTo)break}else Me&&(de.visible=Do(ie.display,ie.doc,Ne));if(!qr(ie,de))break;Ri(ie);var Re=pu(ie);ws(ie),wc(ie,Re),Li(ie,Re),de.force=!1}de.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(de.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function Yr(ie,de){var Ne=new or(ie,de);if(qr(ie,Ne)){Ri(ie),br(ie,Ne);var Me=pu(ie);ws(ie),wc(ie,Me),Li(ie,Me),Ne.finish()}}function Kr(ie,de,Ne){var Me=ie.display,Re=ie.options.lineNumbers,st=Me.lineDiv,wt=st.firstChild;function At(yr){var Pr=yr.nextSibling;return ce&&ae&&ie.display.currentWheelTarget==yr?yr.style.display="none":yr.parentNode.removeChild(yr),Pr}for(var Nt=Me.view,Gt=Me.viewFrom,Sn=0;Sn<Nt.length;Sn++){var Yt=Nt[Sn];if(!Yt.hidden)if(!Yt.node||Yt.node.parentNode!=st){var Un=Fl(ie,Yt,Gt,Ne);st.insertBefore(Un,wt)}else{for(;wt!=Yt.node;)wt=At(wt);var zn=Re&&de!=null&&de<=Gt&&Yt.lineNumber;Yt.changes&&(ft(Yt.changes,"gutter")>-1&&(zn=!1),Fa(ie,Yt,Gt,Ne)),zn&&(Oe(Yt.lineNumber),Yt.lineNumber.appendChild(document.createTextNode(ar(ie.options,Gt)))),wt=Yt.node.nextSibling}Gt+=Yt.size}for(;wt;)wt=At(wt)}function li(ie){var de=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=de+"px"}function Li(ie,de){ie.display.sizer.style.minHeight=de.docHeight+"px",ie.display.heightForcer.style.top=de.docHeight+"px",ie.display.gutters.style.height=de.docHeight+ie.display.barHeight+_s(ie)+"px"}function Hi(ie){var de=ie.display,Ne=de.view;if(!(!de.alignWidgets&&(!de.gutters.firstChild||!ie.options.fixedGutter))){for(var Me=ph(de)-de.scroller.scrollLeft+ie.doc.scrollLeft,Re=de.gutters.offsetWidth,st=Me+"px",wt=0;wt<Ne.length;wt++)if(!Ne[wt].hidden){ie.options.fixedGutter&&(Ne[wt].gutter&&(Ne[wt].gutter.style.left=st),Ne[wt].gutterBackground&&(Ne[wt].gutterBackground.style.left=st));var At=Ne[wt].alignable;if(At)for(var Nt=0;Nt<At.length;Nt++)At[Nt].style.left=st}ie.options.fixedGutter&&(de.gutters.style.left=Me+Re+"px")}}function ti(ie){if(!ie.options.lineNumbers)return!1;var de=ie.doc,Ne=ar(ie.options,de.first+de.size-1),Me=ie.display;if(Ne.length!=Me.lineNumChars){var Re=Me.measure.appendChild(je("div",[je("div",Ne)],"CodeMirror-linenumber CodeMirror-gutter-elt")),st=Re.firstChild.offsetWidth,wt=Re.offsetWidth-st;return Me.lineGutter.style.width="",Me.lineNumInnerWidth=Math.max(st,Me.lineGutter.offsetWidth-wt)+1,Me.lineNumWidth=Me.lineNumInnerWidth+wt,Me.lineNumChars=Me.lineNumInnerWidth?Ne.length:-1,Me.lineGutter.style.width=Me.lineNumWidth+"px",li(ie.display),!0}return!1}function Ti(ie,de){for(var Ne=[],Me=!1,Re=0;Re<ie.length;Re++){var st=ie[Re],wt=null;if(typeof st!="string"&&(wt=st.style,st=st.className),st=="CodeMirror-linenumbers")if(de)Me=!0;else continue;Ne.push({className:st,style:wt})}return de&&!Me&&Ne.push({className:"CodeMirror-linenumbers",style:null}),Ne}function ao(ie){var de=ie.gutters,Ne=ie.gutterSpecs;Oe(de),ie.lineGutter=null;for(var Me=0;Me<Ne.length;++Me){var Re=Ne[Me],st=Re.className,wt=Re.style,At=de.appendChild(je("div",null,"CodeMirror-gutter "+st));wt&&(At.style.cssText=wt),st=="CodeMirror-linenumbers"&&(ie.lineGutter=At,At.style.width=(ie.lineNumWidth||1)+"px")}de.style.display=Ne.length?"":"none",li(ie)}function si(ie){ao(ie.display),ga(ie),Hi(ie)}function wi(ie,de,Ne,Me){var Re=this;this.input=Ne,Re.scrollbarFiller=je("div",null,"CodeMirror-scrollbar-filler"),Re.scrollbarFiller.setAttribute("cm-not-content","true"),Re.gutterFiller=je("div",null,"CodeMirror-gutter-filler"),Re.gutterFiller.setAttribute("cm-not-content","true"),Re.lineDiv=Be("div",null,"CodeMirror-code"),Re.selectionDiv=je("div",null,null,"position: relative; z-index: 1"),Re.cursorDiv=je("div",null,"CodeMirror-cursors"),Re.measure=je("div",null,"CodeMirror-measure"),Re.lineMeasure=je("div",null,"CodeMirror-measure"),Re.lineSpace=Be("div",[Re.measure,Re.lineMeasure,Re.selectionDiv,Re.cursorDiv,Re.lineDiv],null,"position: relative; outline: none");var st=Be("div",[Re.lineSpace],"CodeMirror-lines");Re.mover=je("div",[st],null,"position: relative"),Re.sizer=je("div",[Re.mover],"CodeMirror-sizer"),Re.sizerWidth=null,Re.heightForcer=je("div",null,null,"position: absolute; height: "+xt+"px; width: 1px;"),Re.gutters=je("div",null,"CodeMirror-gutters"),Re.lineGutter=null,Re.scroller=je("div",[Re.sizer,Re.heightForcer,Re.gutters],"CodeMirror-scroll"),Re.scroller.setAttribute("tabIndex","-1"),Re.wrapper=je("div",[Re.scrollbarFiller,Re.gutterFiller,Re.scroller],"CodeMirror"),Fe&&me<8&&(Re.gutters.style.zIndex=-1,Re.scroller.style.paddingRight=0),!ce&&!(tt&&ee)&&(Re.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(Re.wrapper):ie(Re.wrapper)),Re.viewFrom=Re.viewTo=de.first,Re.reportedViewFrom=Re.reportedViewTo=de.first,Re.view=[],Re.renderedView=null,Re.externalMeasured=null,Re.viewOffset=0,Re.lastWrapHeight=Re.lastWrapWidth=0,Re.updateLineNumbers=null,Re.nativeBarWidth=Re.barHeight=Re.barWidth=0,Re.scrollbarsClipped=!1,Re.lineNumWidth=Re.lineNumInnerWidth=Re.lineNumChars=null,Re.alignWidgets=!1,Re.cachedCharWidth=Re.cachedTextHeight=Re.cachedPaddingH=null,Re.maxLine=null,Re.maxLineLength=0,Re.maxLineChanged=!1,Re.wheelDX=Re.wheelDY=Re.wheelStartX=Re.wheelStartY=null,Re.shift=!1,Re.selForContextMenu=null,Re.activeTouch=null,Re.gutterSpecs=Ti(Me.gutters,Me.lineNumbers),ao(Re),Ne.init(Re)}var oi=0,zr=null;Fe?zr=-.53:tt?zr=15:Le?zr=-.7:ke&&(zr=-1/3);function vi(ie){var de=ie.wheelDeltaX,Ne=ie.wheelDeltaY;return de==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(de=ie.detail),Ne==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?Ne=ie.detail:Ne==null&&(Ne=ie.wheelDelta),{x:de,y:Ne}}function Fi(ie){var de=vi(ie);return de.x*=zr,de.y*=zr,de}function Ki(ie,de){var Ne=vi(de),Me=Ne.x,Re=Ne.y,st=ie.display,wt=st.scroller,At=wt.scrollWidth>wt.clientWidth,Nt=wt.scrollHeight>wt.clientHeight;if(Me&&At||Re&&Nt){if(Re&&ae&&ce){e:for(var Gt=de.target,Sn=st.view;Gt!=wt;Gt=Gt.parentNode)for(var Yt=0;Yt<Sn.length;Yt++)if(Sn[Yt].node==Gt){ie.display.currentWheelTarget=Gt;break e}}if(Me&&!tt&&!Se&&zr!=null){Re&&Nt&&Xc(ie,Math.max(0,wt.scrollTop+Re*zr)),Uu(ie,Math.max(0,wt.scrollLeft+Me*zr)),(!Re||Re&&Nt)&&Rn(de),st.wheelStartX=null;return}if(Re&&zr!=null){var Un=Re*zr,zn=ie.doc.scrollTop,yr=zn+st.wrapper.clientHeight;Un<0?zn=Math.max(0,zn+Un-50):yr=Math.min(ie.doc.height,yr+Un+50),Yr(ie,{top:zn,bottom:yr})}oi<20&&(st.wheelStartX==null?(st.wheelStartX=wt.scrollLeft,st.wheelStartY=wt.scrollTop,st.wheelDX=Me,st.wheelDY=Re,setTimeout(function(){if(st.wheelStartX!=null){var Pr=wt.scrollLeft-st.wheelStartX,Dr=wt.scrollTop-st.wheelStartY,ri=Dr&&st.wheelDY&&Dr/st.wheelDY||Pr&&st.wheelDX&&Pr/st.wheelDX;st.wheelStartX=st.wheelStartY=null,ri&&(zr=(zr*oi+ri)/(oi+1),++oi)}},200)):(st.wheelDX+=Me,st.wheelDY+=Re))}}var Vi=function(ie,de){this.ranges=ie,this.primIndex=de};Vi.prototype.primary=function(){return this.ranges[this.primIndex]},Vi.prototype.equals=function(ie){if(ie==this)return!0;if(ie.primIndex!=this.primIndex||ie.ranges.length!=this.ranges.length)return!1;for(var de=0;de<this.ranges.length;de++){var Ne=this.ranges[de],Me=ie.ranges[de];if(!an(Ne.anchor,Me.anchor)||!an(Ne.head,Me.head))return!1}return!0},Vi.prototype.deepCopy=function(){for(var ie=[],de=0;de<this.ranges.length;de++)ie[de]=new ni(mn(this.ranges[de].anchor),mn(this.ranges[de].head));return new Vi(ie,this.primIndex)},Vi.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},Vi.prototype.contains=function(ie,de){de||(de=ie);for(var Ne=0;Ne<this.ranges.length;Ne++){var Me=this.ranges[Ne];if(On(de,Me.from())>=0&&On(ie,Me.to())<=0)return Ne}return-1};var ni=function(ie,de){this.anchor=ie,this.head=de};ni.prototype.from=function(){return xn(this.anchor,this.head)},ni.prototype.to=function(){return Ln(this.anchor,this.head)},ni.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function lo(ie,de,Ne){var Me=ie&&ie.options.selectionsMayTouch,Re=de[Ne];de.sort(function(Un,zn){return On(Un.from(),zn.from())}),Ne=ft(de,Re);for(var st=1;st<de.length;st++){var wt=de[st],At=de[st-1],Nt=On(At.to(),wt.from());if(Me&&!wt.empty()?Nt>0:Nt>=0){var Gt=xn(At.from(),wt.from()),Sn=Ln(At.to(),wt.to()),Yt=At.empty()?wt.from()==wt.head:At.from()==At.head;st<=Ne&&--Ne,de.splice(--st,2,new ni(Yt?Sn:Gt,Yt?Gt:Sn))}}return new Vi(de,Ne)}function mo(ie,de){return new Vi([new ni(ie,de||ie)],0)}function Yo(ie){return ie.text?nn(ie.from.line+ie.text.length-1,St(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function Oo(ie,de){if(On(ie,de.from)<0)return ie;if(On(ie,de.to)<=0)return Yo(de);var Ne=ie.line+de.text.length-(de.to.line-de.from.line)-1,Me=ie.ch;return ie.line==de.to.line&&(Me+=Yo(de).ch-de.to.ch),nn(Ne,Me)}function La(ie,de){for(var Ne=[],Me=0;Me<ie.sel.ranges.length;Me++){var Re=ie.sel.ranges[Me];Ne.push(new ni(Oo(Re.anchor,de),Oo(Re.head,de)))}return lo(ie.cm,Ne,ie.sel.primIndex)}function Ca(ie,de,Ne){return ie.line==de.line?nn(Ne.line,ie.ch-de.ch+Ne.ch):nn(Ne.line+(ie.line-de.line),ie.ch)}function ho(ie,de,Ne){for(var Me=[],Re=nn(ie.first,0),st=Re,wt=0;wt<de.length;wt++){var At=de[wt],Nt=Ca(At.from,Re,st),Gt=Ca(Yo(At),Re,st);if(Re=At.to,st=Gt,Ne=="around"){var Sn=ie.sel.ranges[wt],Yt=On(Sn.head,Sn.anchor)<0;Me[wt]=new ni(Yt?Gt:Nt,Yt?Nt:Gt)}else Me[wt]=new ni(Nt,Nt)}return new Vi(Me,ie.sel.primIndex)}function _i(ie){ie.doc.mode=on(ie.options,ie.doc.modeOption),Go(ie)}function Go(ie){ie.doc.iter(function(de){de.stateAfter&&(de.stateAfter=null),de.styles&&(de.styles=null)}),ie.doc.modeFrontier=ie.doc.highlightFrontier=ie.doc.first,nr(ie,100),ie.state.modeGen++,ie.curOp&&ga(ie)}function ka(ie,de){return de.from.ch==0&&de.to.ch==0&&St(de.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function ma(ie,de,Ne,Me){function Re(Ci){return Ne?Ne[Ci]:null}function st(Ci,yi,Bi){ba(Ci,yi,Bi,Me),kr(Ci,"change",Ci,de)}function wt(Ci,yi){for(var Bi=[],uo=Ci;uo<yi;++uo)Bi.push(new ea(Gt[uo],Re(uo),Me));return Bi}var At=de.from,Nt=de.to,Gt=de.text,Sn=pn(ie,At.line),Yt=pn(ie,Nt.line),Un=St(Gt),zn=Re(Gt.length-1),yr=Nt.line-At.line;if(de.full)ie.insert(0,wt(0,Gt.length)),ie.remove(Gt.length,ie.size-Gt.length);else if(ka(ie,de)){var Pr=wt(0,Gt.length-1);st(Yt,Yt.text,zn),yr&&ie.remove(At.line,yr),Pr.length&&ie.insert(At.line,Pr)}else if(Sn==Yt)if(Gt.length==1)st(Sn,Sn.text.slice(0,At.ch)+Un+Sn.text.slice(Nt.ch),zn);else{var Dr=wt(1,Gt.length-1);Dr.push(new ea(Un+Sn.text.slice(Nt.ch),zn,Me)),st(Sn,Sn.text.slice(0,At.ch)+Gt[0],Re(0)),ie.insert(At.line+1,Dr)}else if(Gt.length==1)st(Sn,Sn.text.slice(0,At.ch)+Gt[0]+Yt.text.slice(Nt.ch),Re(0)),ie.remove(At.line+1,yr);else{st(Sn,Sn.text.slice(0,At.ch)+Gt[0],Re(0)),st(Yt,Un+Yt.text.slice(Nt.ch),zn);var ri=wt(1,Gt.length-1);yr>1&&ie.remove(At.line+1,yr-1),ie.insert(At.line+1,ri)}kr(ie,"change",ie,de)}function rs(ie,de,Ne){function Me(Re,st,wt){if(Re.linked)for(var At=0;At<Re.linked.length;++At){var Nt=Re.linked[At];if(Nt.doc!=st){var Gt=wt&&Nt.sharedHist;Ne&&!Gt||(de(Nt.doc,Gt),Me(Nt.doc,Re,Gt))}}}Me(ie,null,!0)}function Xi(ie,de){if(de.cm)throw new Error("This document is already in use.");ie.doc=de,de.cm=ie,zi(ie),_i(ie),Ui(ie),ie.options.lineWrapping||To(ie),ie.options.mode=de.modeOption,ga(ie)}function Ui(ie){(ie.doc.direction=="rtl"?Ye:Ie)(ie.display.lineDiv,"CodeMirror-rtl")}function Yi(ie){fn(ie,function(){Ui(ie),ga(ie)})}function Ai(ie){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=ie||1}function $o(ie,de){var Ne={from:mn(de.from),to:Yo(de),text:yn(ie,de.from,de.to)};return Hs(ie,Ne,de.from.line,de.to.line+1),rs(ie,function(Me){return Hs(Me,Ne,de.from.line,de.to.line+1)},!0),Ne}function ji(ie){for(;ie.length;){var de=St(ie);if(de.ranges)ie.pop();else break}}function so(ie,de){if(de)return ji(ie.done),St(ie.done);if(ie.done.length&&!St(ie.done).ranges)return St(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),St(ie.done)}function Fo(ie,de,Ne,Me){var Re=ie.history;Re.undone.length=0;var st=+new Date,wt,At;if((Re.lastOp==Me||Re.lastOrigin==de.origin&&de.origin&&(de.origin.charAt(0)=="+"&&Re.lastModTime>st-(ie.cm?ie.cm.options.historyEventDelay:500)||de.origin.charAt(0)=="*"))&&(wt=so(Re,Re.lastOp==Me)))At=St(wt.changes),On(de.from,de.to)==0&&On(de.from,At.to)==0?At.to=Yo(de):wt.changes.push($o(ie,de));else{var Nt=St(Re.done);for((!Nt||!Nt.ranges)&&ss(ie.sel,Re.done),wt={changes:[$o(ie,de)],generation:Re.generation},Re.done.push(wt);Re.done.length>Re.undoDepth;)Re.done.shift(),Re.done[0].ranges||Re.done.shift()}Re.done.push(Ne),Re.generation=++Re.maxGeneration,Re.lastModTime=Re.lastSelTime=st,Re.lastOp=Re.lastSelOp=Me,Re.lastOrigin=Re.lastSelOrigin=de.origin,At||kt(ie,"historyAdded")}function Bo(ie,de,Ne,Me){var Re=de.charAt(0);return Re=="*"||Re=="+"&&Ne.ranges.length==Me.ranges.length&&Ne.somethingSelected()==Me.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function bs(ie,de,Ne,Me){var Re=ie.history,st=Me&&Me.origin;Ne==Re.lastSelOp||st&&Re.lastSelOrigin==st&&(Re.lastModTime==Re.lastSelTime&&Re.lastOrigin==st||Bo(ie,st,St(Re.done),de))?Re.done[Re.done.length-1]=de:ss(de,Re.done),Re.lastSelTime=+new Date,Re.lastSelOrigin=st,Re.lastSelOp=Ne,Me&&Me.clearRedo!==!1&&ji(Re.undone)}function ss(ie,de){var Ne=St(de);Ne&&Ne.ranges&&Ne.equals(ie)||de.push(ie)}function Hs(ie,de,Ne,Me){var Re=de["spans_"+ie.id],st=0;ie.iter(Math.max(ie.first,Ne),Math.min(ie.first+ie.size,Me),function(wt){wt.markedSpans&&((Re||(Re=de["spans_"+ie.id]={}))[st]=wt.markedSpans),++st})}function Jo(ie){if(!ie)return null;for(var de,Ne=0;Ne<ie.length;++Ne)ie[Ne].marker.explicitlyCleared?de||(de=ie.slice(0,Ne)):de&&de.push(ie[Ne]);return de?de.length?de:null:ie}function Ps(ie,de){var Ne=de["spans_"+ie.id];if(!Ne)return null;for(var Me=[],Re=0;Re<de.text.length;++Re)Me.push(Jo(Ne[Re]));return Me}function es(ie,de){var Ne=Ps(ie,de),Me=Gr(ie,de);if(!Ne)return Me;if(!Me)return Ne;for(var Re=0;Re<Ne.length;++Re){var st=Ne[Re],wt=Me[Re];if(st&&wt)e:for(var At=0;At<wt.length;++At){for(var Nt=wt[At],Gt=0;Gt<st.length;++Gt)if(st[Gt].marker==Nt.marker)continue e;st.push(Nt)}else wt&&(Ne[Re]=wt)}return Ne}function ps(ie,de,Ne){for(var Me=[],Re=0;Re<ie.length;++Re){var st=ie[Re];if(st.ranges){Me.push(Ne?Vi.prototype.deepCopy.call(st):st);continue}var wt=st.changes,At=[];Me.push({changes:At});for(var Nt=0;Nt<wt.length;++Nt){var Gt=wt[Nt],Sn=void 0;if(At.push({from:Gt.from,to:Gt.to,text:Gt.text}),de)for(var Yt in Gt)(Sn=Yt.match(/^spans_(\d+)$/))&&ft(de,Number(Sn[1]))>-1&&(St(At)[Yt]=Gt[Yt],delete Gt[Yt])}}return Me}function $u(ie,de,Ne,Me){if(Me){var Re=ie.anchor;if(Ne){var st=On(de,Re)<0;st!=On(Ne,Re)<0?(Re=de,de=Ne):st!=On(de,Ne)<0&&(de=Ne)}return new ni(Re,de)}else return new ni(Ne||de,de)}function Qo(ie,de,Ne,Me,Re){Re==null&&(Re=ie.cm&&(ie.cm.display.shift||ie.extend)),ha(ie,new Vi([$u(ie.sel.primary(),de,Ne,Re)],0),Me)}function ra(ie,de,Ne){for(var Me=[],Re=ie.cm&&(ie.cm.display.shift||ie.extend),st=0;st<ie.sel.ranges.length;st++)Me[st]=$u(ie.sel.ranges[st],de[st],null,Re);var wt=lo(ie.cm,Me,ie.sel.primIndex);ha(ie,wt,Ne)}function la(ie,de,Ne,Me){var Re=ie.sel.ranges.slice(0);Re[de]=Ne,ha(ie,lo(ie.cm,Re,ie.sel.primIndex),Me)}function Za(ie,de,Ne,Me){ha(ie,mo(de,Ne),Me)}function gs(ie,de,Ne){var Me={ranges:de.ranges,update:function(Re){this.ranges=[];for(var st=0;st<Re.length;st++)this.ranges[st]=new ni(gn(ie,Re[st].anchor),gn(ie,Re[st].head))},origin:Ne&&Ne.origin};return kt(ie,"beforeSelectionChange",ie,Me),ie.cm&&kt(ie.cm,"beforeSelectionChange",ie.cm,Me),Me.ranges!=de.ranges?lo(ie.cm,Me.ranges,Me.ranges.length-1):de}function Co(ie,de,Ne){var Me=ie.history.done,Re=St(Me);Re&&Re.ranges?(Me[Me.length-1]=de,ms(ie,de,Ne)):ha(ie,de,Ne)}function ha(ie,de,Ne){ms(ie,de,Ne),bs(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,Ne)}function ms(ie,de,Ne){(dn(ie,"beforeSelectionChange")||ie.cm&&dn(ie.cm,"beforeSelectionChange"))&&(de=gs(ie,de,Ne));var Me=Ne&&Ne.bias||(On(de.primary().head,ie.sel.primary().head)<0?-1:1);fl(ie,Cl(ie,de,Me,!0)),!(Ne&&Ne.scroll===!1)&&ie.cm&&Sc(ie.cm)}function fl(ie,de){de.equals(ie.sel)||(ie.sel=de,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,tn(ie.cm)),kr(ie,"cursorActivity",ie))}function Hl(ie){fl(ie,Cl(ie,ie.sel,null,!1))}function Cl(ie,de,Ne,Me){for(var Re,st=0;st<de.ranges.length;st++){var wt=de.ranges[st],At=de.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[st],Nt=tu(ie,wt.anchor,At&&At.anchor,Ne,Me),Gt=tu(ie,wt.head,At&&At.head,Ne,Me);(Re||Nt!=wt.anchor||Gt!=wt.head)&&(Re||(Re=de.ranges.slice(0,st)),Re[st]=new ni(Nt,Gt))}return Re?lo(ie.cm,Re,de.primIndex):de}function eu(ie,de,Ne,Me,Re){var st=pn(ie,de.line);if(st.markedSpans)for(var wt=0;wt<st.markedSpans.length;++wt){var At=st.markedSpans[wt],Nt=At.marker,Gt="selectLeft"in Nt?!Nt.selectLeft:Nt.inclusiveLeft,Sn="selectRight"in Nt?!Nt.selectRight:Nt.inclusiveRight;if((At.from==null||(Gt?At.from<=de.ch:At.from<de.ch))&&(At.to==null||(Sn?At.to>=de.ch:At.to>de.ch))){if(Re&&(kt(Nt,"beforeCursorEnter"),Nt.explicitlyCleared))if(st.markedSpans){--wt;continue}else break;if(!Nt.atomic)continue;if(Ne){var Yt=Nt.find(Me<0?1:-1),Un=void 0;if((Me<0?Sn:Gt)&&(Yt=Gl(ie,Yt,-Me,Yt&&Yt.line==de.line?st:null)),Yt&&Yt.line==de.line&&(Un=On(Yt,Ne))&&(Me<0?Un<0:Un>0))return eu(ie,Yt,de,Me,Re)}var zn=Nt.find(Me<0?-1:1);return(Me<0?Gt:Sn)&&(zn=Gl(ie,zn,Me,zn.line==de.line?st:null)),zn?eu(ie,zn,de,Me,Re):null}}return de}function tu(ie,de,Ne,Me,Re){var st=Me||1,wt=eu(ie,de,Ne,st,Re)||!Re&&eu(ie,de,Ne,st,!0)||eu(ie,de,Ne,-st,Re)||!Re&&eu(ie,de,Ne,-st,!0);return wt||(ie.cantEdit=!0,nn(ie.first,0))}function Gl(ie,de,Ne,Me){return Ne<0&&de.ch==0?de.line>ie.first?gn(ie,nn(de.line-1)):null:Ne>0&&de.ch==(Me||pn(ie,de.line)).text.length?de.line<ie.first+ie.size-1?nn(de.line+1,0):null:new nn(de.line,de.ch+Ne)}function ta(ie){ie.setSelection(nn(ie.firstLine(),0),nn(ie.lastLine()),pt)}function Ts(ie,de,Ne){var Me={canceled:!1,from:de.from,to:de.to,text:de.text,origin:de.origin,cancel:function(){return Me.canceled=!0}};return Ne&&(Me.update=function(Re,st,wt,At){Re&&(Me.from=gn(ie,Re)),st&&(Me.to=gn(ie,st)),wt&&(Me.text=wt),At!==void 0&&(Me.origin=At)}),kt(ie,"beforeChange",ie,Me),ie.cm&&kt(ie.cm,"beforeChange",ie.cm,Me),Me.canceled?(ie.cm&&(ie.cm.curOp.updateInput=2),null):{from:Me.from,to:Me.to,text:Me.text,origin:Me.origin}}function za(ie,de,Ne){if(ie.cm){if(!ie.cm.curOp)return Hn(ie.cm,za)(ie,de,Ne);if(ie.cm.state.suppressEdits)return}if(!((dn(ie,"beforeChange")||ie.cm&&dn(ie.cm,"beforeChange"))&&(de=Ts(ie,de,!0),!de))){var Me=Qr&&!Ne&&Wi(ie,de.from,de.to);if(Me)for(var Re=Me.length-1;Re>=0;--Re)da(ie,{from:Me[Re].from,to:Me[Re].to,text:Re?[""]:de.text,origin:de.origin});else da(ie,de)}}function da(ie,de){if(!(de.text.length==1&&de.text[0]==""&&On(de.from,de.to)==0)){var Ne=La(ie,de);Fo(ie,de,Ne,ie.cm?ie.cm.curOp.id:NaN),nu(ie,de,Ne,Gr(ie,de));var Me=[];rs(ie,function(Re,st){!st&&ft(Me,Re.history)==-1&&(va(Re.history,de),Me.push(Re.history)),nu(Re,de,null,Gr(Re,de))})}}function Wl(ie,de,Ne){var Me=ie.cm&&ie.cm.state.suppressEdits;if(!(Me&&!Ne)){for(var Re=ie.history,st,wt=ie.sel,At=de=="undo"?Re.done:Re.undone,Nt=de=="undo"?Re.undone:Re.done,Gt=0;Gt<At.length&&(st=At[Gt],!(Ne?st.ranges&&!st.equals(ie.sel):!st.ranges));Gt++);if(Gt!=At.length){for(Re.lastOrigin=Re.lastSelOrigin=null;;)if(st=At.pop(),st.ranges){if(ss(st,Nt),Ne&&!st.equals(ie.sel)){ha(ie,st,{clearRedo:!1});return}wt=st}else if(Me){At.push(st);return}else break;var Sn=[];ss(wt,Nt),Nt.push({changes:Sn,generation:Re.generation}),Re.generation=st.generation||++Re.maxGeneration;for(var Yt=dn(ie,"beforeChange")||ie.cm&&dn(ie.cm,"beforeChange"),Un=function(Pr){var Dr=st.changes[Pr];if(Dr.origin=de,Yt&&!Ts(ie,Dr,!1))return At.length=0,{};Sn.push($o(ie,Dr));var ri=Pr?La(ie,Dr):St(At);nu(ie,Dr,ri,es(ie,Dr)),!Pr&&ie.cm&&ie.cm.scrollIntoView({from:Dr.from,to:Yo(Dr)});var Ci=[];rs(ie,function(yi,Bi){!Bi&&ft(Ci,yi.history)==-1&&(va(yi.history,Dr),Ci.push(yi.history)),nu(yi,Dr,null,es(yi,Dr))})},zn=st.changes.length-1;zn>=0;--zn){var yr=Un(zn);if(yr)return yr.v}}}}function oc(ie,de){if(de!=0&&(ie.first+=de,ie.sel=new Vi(bt(ie.sel.ranges,function(Re){return new ni(nn(Re.anchor.line+de,Re.anchor.ch),nn(Re.head.line+de,Re.head.ch))}),ie.sel.primIndex),ie.cm)){ga(ie.cm,ie.first,ie.first-de,de);for(var Ne=ie.cm.display,Me=Ne.viewFrom;Me<Ne.viewTo;Me++)yo(ie.cm,Me,"gutter")}}function nu(ie,de,Ne,Me){if(ie.cm&&!ie.cm.curOp)return Hn(ie.cm,nu)(ie,de,Ne,Me);if(de.to.line<ie.first){oc(ie,de.text.length-1-(de.to.line-de.from.line));return}if(!(de.from.line>ie.lastLine())){if(de.from.line<ie.first){var Re=de.text.length-1-(ie.first-de.from.line);oc(ie,Re),de={from:nn(ie.first,0),to:nn(de.to.line+Re,de.to.ch),text:[St(de.text)],origin:de.origin}}var st=ie.lastLine();de.to.line>st&&(de={from:de.from,to:nn(st,pn(ie,st).text.length),text:[de.text[0]],origin:de.origin}),de.removed=yn(ie,de.from,de.to),Ne||(Ne=La(ie,de)),ie.cm?Mu(ie.cm,de,Me):ma(ie,de,Me),ms(ie,Ne,pt),ie.cantEdit&&tu(ie,nn(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Mu(ie,de,Ne){var Me=ie.doc,Re=ie.display,st=de.from,wt=de.to,At=!1,Nt=st.line;ie.options.lineWrapping||(Nt=Zt(ii(pn(Me,st.line))),Me.iter(Nt,wt.line+1,function(zn){if(zn==Re.maxLine)return At=!0,!0})),Me.sel.contains(de.from,de.to)>-1&&tn(ie),ma(Me,de,Ne,_a(ie)),ie.options.lineWrapping||(Me.iter(Nt,st.line+de.text.length,function(zn){var yr=Vo(zn);yr>Re.maxLineLength&&(Re.maxLine=zn,Re.maxLineLength=yr,Re.maxLineChanged=!0,At=!1)}),At&&(ie.curOp.updateMaxLine=!0)),vr(Me,st.line),nr(ie,400);var Gt=de.text.length-(wt.line-st.line)-1;de.full?ga(ie):st.line==wt.line&&de.text.length==1&&!ka(ie.doc,de)?yo(ie,st.line,"text"):ga(ie,st.line,wt.line+1,Gt);var Sn=dn(ie,"changes"),Yt=dn(ie,"change");if(Yt||Sn){var Un={from:st,to:wt,text:de.text,removed:de.removed,origin:de.origin};Yt&&kr(ie,"change",ie,Un),Sn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(Un)}ie.display.selForContextMenu=null}function Ku(ie,de,Ne,Me,Re){var st;Me||(Me=Ne),On(Me,Ne)<0&&(st=[Me,Ne],Ne=st[0],Me=st[1]),typeof de=="string"&&(de=ie.splitLines(de)),za(ie,{from:Ne,to:Me,text:de,origin:Re})}function El(ie,de,Ne,Me){Ne<ie.line?ie.line+=Me:de<ie.line&&(ie.line=de,ie.ch=0)}function Ko(ie,de,Ne,Me){for(var Re=0;Re<ie.length;++Re){var st=ie[Re],wt=!0;if(st.ranges){st.copied||(st=ie[Re]=st.deepCopy(),st.copied=!0);for(var At=0;At<st.ranges.length;At++)El(st.ranges[At].anchor,de,Ne,Me),El(st.ranges[At].head,de,Ne,Me);continue}for(var Nt=0;Nt<st.changes.length;++Nt){var Gt=st.changes[Nt];if(Ne<Gt.from.line)Gt.from=nn(Gt.from.line+Me,Gt.from.ch),Gt.to=nn(Gt.to.line+Me,Gt.to.ch);else if(de<=Gt.to.line){wt=!1;break}}wt||(ie.splice(0,Re+1),Re=0)}}function va(ie,de){var Ne=de.from.line,Me=de.to.line,Re=de.text.length-(Me-Ne)-1;Ko(ie.done,Ne,Me,Re),Ko(ie.undone,Ne,Me,Re)}function ls(ie,de,Ne,Me){var Re=de,st=de;return typeof de=="number"?st=pn(ie,In(ie,de)):Re=Zt(de),Re==null?null:(Me(st,Re)&&ie.cm&&yo(ie.cm,Re,Ne),st)}function ya(ie){this.lines=ie,this.parent=null;for(var de=0,Ne=0;Ne<ie.length;++Ne)ie[Ne].parent=this,de+=ie[Ne].height;this.height=de}ya.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,de){for(var Ne=ie,Me=ie+de;Ne<Me;++Ne){var Re=this.lines[Ne];this.height-=Re.height,Ia(Re),kr(Re,"delete")}this.lines.splice(ie,de)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,de,Ne){this.height+=Ne,this.lines=this.lines.slice(0,ie).concat(de).concat(this.lines.slice(ie));for(var Me=0;Me<de.length;++Me)de[Me].parent=this},iterN:function(ie,de,Ne){for(var Me=ie+de;ie<Me;++ie)if(Ne(this.lines[ie]))return!0}};function Ho(ie){this.children=ie;for(var de=0,Ne=0,Me=0;Me<ie.length;++Me){var Re=ie[Me];de+=Re.chunkSize(),Ne+=Re.height,Re.parent=this}this.size=de,this.height=Ne,this.parent=null}Ho.prototype={chunkSize:function(){return this.size},removeInner:function(ie,de){this.size-=de;for(var Ne=0;Ne<this.children.length;++Ne){var Me=this.children[Ne],Re=Me.chunkSize();if(ie<Re){var st=Math.min(de,Re-ie),wt=Me.height;if(Me.removeInner(ie,st),this.height-=wt-Me.height,Re==st&&(this.children.splice(Ne--,1),Me.parent=null),(de-=st)==0)break;ie=0}else ie-=Re}if(this.size-de<25&&(this.children.length>1||!(this.children[0]instanceof ya))){var At=[];this.collapse(At),this.children=[new ya(At)],this.children[0].parent=this}},collapse:function(ie){for(var de=0;de<this.children.length;++de)this.children[de].collapse(ie)},insertInner:function(ie,de,Ne){this.size+=de.length,this.height+=Ne;for(var Me=0;Me<this.children.length;++Me){var Re=this.children[Me],st=Re.chunkSize();if(ie<=st){if(Re.insertInner(ie,de,Ne),Re.lines&&Re.lines.length>50){for(var wt=Re.lines.length%25+25,At=wt;At<Re.lines.length;){var Nt=new ya(Re.lines.slice(At,At+=25));Re.height-=Nt.height,this.children.splice(++Me,0,Nt),Nt.parent=this}Re.lines=Re.lines.slice(0,wt),this.maybeSpill()}break}ie-=st}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var de=ie.children.splice(ie.children.length-5,5),Ne=new Ho(de);if(ie.parent){ie.size-=Ne.size,ie.height-=Ne.height;var Re=ft(ie.parent.children,ie);ie.parent.children.splice(Re+1,0,Ne)}else{var Me=new Ho(ie.children);Me.parent=ie,ie.children=[Me,Ne],ie=Me}Ne.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,de,Ne){for(var Me=0;Me<this.children.length;++Me){var Re=this.children[Me],st=Re.chunkSize();if(ie<st){var wt=Math.min(de,st-ie);if(Re.iterN(ie,wt,Ne))return!0;if((de-=wt)==0)break;ie=0}else ie-=st}}};var vs=function(ie,de,Ne){if(Ne)for(var Me in Ne)Ne.hasOwnProperty(Me)&&(this[Me]=Ne[Me]);this.doc=ie,this.node=de};vs.prototype.clear=function(){var ie=this.doc.cm,de=this.line.widgets,Ne=this.line,Me=Zt(Ne);if(!(Me==null||!de)){for(var Re=0;Re<de.length;++Re)de[Re]==this&&de.splice(Re--,1);de.length||(Ne.widgets=null);var st=el(this);bn(Ne,Math.max(0,Ne.height-st)),ie&&(fn(ie,function(){pl(ie,Ne,-st),yo(ie,Me,"widget")}),kr(ie,"lineWidgetCleared",ie,this,Me))}},vs.prototype.changed=function(){var ie=this,de=this.height,Ne=this.doc.cm,Me=this.line;this.height=null;var Re=el(this)-de;Re&&(Xn(this.doc,Me)||bn(Me,Me.height+Re),Ne&&fn(Ne,function(){Ne.curOp.forceUpdate=!0,pl(Ne,Me,Re),kr(Ne,"lineWidgetChanged",Ne,ie,Zt(Me))}))},Mn(vs);function pl(ie,de,Ne){po(de)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&Ed(ie,Ne)}function gu(ie,de,Ne,Me){var Re=new vs(ie,Ne,Me),st=ie.cm;return st&&Re.noHScroll&&(st.display.alignWidgets=!0),ls(ie,de,"widget",function(wt){var At=wt.widgets||(wt.widgets=[]);if(Re.insertAt==null?At.push(Re):At.splice(Math.min(At.length-1,Math.max(0,Re.insertAt)),0,Re),Re.line=wt,st&&!Xn(ie,wt)){var Nt=po(wt)<ie.scrollTop;bn(wt,wt.height+el(Re)),Nt&&Ed(st,Re.height),st.curOp.forceUpdate=!0}return!0}),st&&kr(st,"lineWidgetAdded",st,Re,typeof de=="number"?de:Zt(de)),Re}var cf=0,cn=function(ie,de){this.lines=[],this.type=de,this.doc=ie,this.id=++cf};cn.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,de=ie&&!ie.curOp;if(de&&dl(ie),dn(this,"clear")){var Ne=this.find();Ne&&kr(this,"clear",Ne.from,Ne.to)}for(var Me=null,Re=null,st=0;st<this.lines.length;++st){var wt=this.lines[st],At=fo(wt.markedSpans,this);ie&&!this.collapsed?yo(ie,Zt(wt),"text"):ie&&(At.to!=null&&(Re=Zt(wt)),At.from!=null&&(Me=Zt(wt))),wt.markedSpans=Mi(wt.markedSpans,At),At.from==null&&this.collapsed&&!Xn(this.doc,wt)&&ie&&bn(wt,Gu(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var Nt=0;Nt<this.lines.length;++Nt){var Gt=ii(this.lines[Nt]),Sn=Vo(Gt);Sn>ie.display.maxLineLength&&(ie.display.maxLine=Gt,ie.display.maxLineLength=Sn,ie.display.maxLineChanged=!0)}Me!=null&&ie&&this.collapsed&&ga(ie,Me,Re+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&Hl(ie.doc)),ie&&kr(ie,"markerCleared",ie,this,Me,Re),de&&bc(ie),this.parent&&this.parent.clear()}},cn.prototype.find=function(ie,de){ie==null&&this.type=="bookmark"&&(ie=1);for(var Ne,Me,Re=0;Re<this.lines.length;++Re){var st=this.lines[Re],wt=fo(st.markedSpans,this);if(wt.from!=null&&(Ne=nn(de?st:Zt(st),wt.from),ie==-1))return Ne;if(wt.to!=null&&(Me=nn(de?st:Zt(st),wt.to),ie==1))return Me}return Ne&&{from:Ne,to:Me}},cn.prototype.changed=function(){var ie=this,de=this.find(-1,!0),Ne=this,Me=this.doc.cm;!de||!Me||fn(Me,function(){var Re=de.line,st=Zt(de.line),wt=vc(Me,st);if(wt&&(Es(wt),Me.curOp.selectionChanged=Me.curOp.forceUpdate=!0),Me.curOp.updateMaxLine=!0,!Xn(Ne.doc,Re)&&Ne.height!=null){var At=Ne.height;Ne.height=null;var Nt=el(Ne)-At;Nt&&bn(Re,Re.height+Nt)}kr(Me,"markerChanged",Me,ie)})},cn.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var de=this.doc.cm.curOp;(!de.maybeHiddenMarkers||ft(de.maybeHiddenMarkers,this)==-1)&&(de.maybeUnhiddenMarkers||(de.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},cn.prototype.detachLine=function(ie){if(this.lines.splice(ft(this.lines,ie),1),!this.lines.length&&this.doc.cm){var de=this.doc.cm.curOp;(de.maybeHiddenMarkers||(de.maybeHiddenMarkers=[])).push(this)}},Mn(cn);function Pc(ie,de,Ne,Me,Re){if(Me&&Me.shared)return hf(ie,de,Ne,Me,Re);if(ie.cm&&!ie.cm.curOp)return Hn(ie.cm,Pc)(ie,de,Ne,Me,Re);var st=new cn(ie,Re),wt=On(de,Ne);if(Me&&vt(Me,st,!1),wt>0||wt==0&&st.clearWhenEmpty!==!1)return st;if(st.replacedWith&&(st.collapsed=!0,st.widgetNode=Be("span",[st.replacedWith],"CodeMirror-widget"),Me.handleMouseEvents||st.widgetNode.setAttribute("cm-ignore-events","true"),Me.insertLeft&&(st.widgetNode.insertLeft=!0)),st.collapsed){if(ci(ie,de.line,de,Ne,st)||de.line!=Ne.line&&ci(ie,Ne.line,de,Ne,st))throw new Error("Inserting collapsed marker partially overlapping an existing one");Dn()}st.addToHistory&&Fo(ie,{from:de,to:Ne,origin:"markText"},ie.sel,NaN);var At=de.line,Nt=ie.cm,Gt;if(ie.iter(At,Ne.line+1,function(Yt){Nt&&st.collapsed&&!Nt.options.lineWrapping&&ii(Yt)==Nt.display.maxLine&&(Gt=!0),st.collapsed&&At!=de.line&&bn(Yt,0),Zo(Yt,new ui(st,At==de.line?de.ch:null,At==Ne.line?Ne.ch:null)),++At}),st.collapsed&&ie.iter(de.line,Ne.line+1,function(Yt){Xn(ie,Yt)&&bn(Yt,0)}),st.clearOnEnter&&Wt(st,"beforeCursorEnter",function(){return st.clear()}),st.readOnly&&(ki(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),st.collapsed&&(st.id=++cf,st.atomic=!0),Nt){if(Gt&&(Nt.curOp.updateMaxLine=!0),st.collapsed)ga(Nt,de.line,Ne.line+1);else if(st.className||st.startStyle||st.endStyle||st.css||st.attributes||st.title)for(var Sn=de.line;Sn<=Ne.line;Sn++)yo(Nt,Sn,"text");st.atomic&&Hl(Nt.doc),kr(Nt,"markerAdded",Nt,st)}return st}var Zu=function(ie,de){this.markers=ie,this.primary=de;for(var Ne=0;Ne<ie.length;++Ne)ie[Ne].parent=this};Zu.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var ie=0;ie<this.markers.length;++ie)this.markers[ie].clear();kr(this,"clear")}},Zu.prototype.find=function(ie,de){return this.primary.find(ie,de)},Mn(Zu);function hf(ie,de,Ne,Me,Re){Me=vt(Me),Me.shared=!1;var st=[Pc(ie,de,Ne,Me,Re)],wt=st[0],At=Me.widgetNode;return rs(ie,function(Nt){At&&(Me.widgetNode=At.cloneNode(!0)),st.push(Pc(Nt,gn(Nt,de),gn(Nt,Ne),Me,Re));for(var Gt=0;Gt<Nt.linked.length;++Gt)if(Nt.linked[Gt].isParent)return;wt=St(st)}),new Zu(st,wt)}function gh(ie){return ie.findMarks(nn(ie.first,0),ie.clipPos(nn(ie.lastLine())),function(de){return de.parent})}function Yc(ie,de){for(var Ne=0;Ne<de.length;Ne++){var Me=de[Ne],Re=Me.find(),st=ie.clipPos(Re.from),wt=ie.clipPos(Re.to);if(On(st,wt)){var At=Pc(ie,st,wt,Me.primary,Me.primary.type);Me.markers.push(At),At.parent=Me}}}function Md(ie){for(var de=function(Me){var Re=ie[Me],st=[Re.primary.doc];rs(Re.primary.doc,function(Nt){return st.push(Nt)});for(var wt=0;wt<Re.markers.length;wt++){var At=Re.markers[wt];ft(st,At.doc)==-1&&(At.parent=null,Re.markers.splice(wt--,1))}},Ne=0;Ne<ie.length;Ne++)de(Ne)}var Kp=0,Ms=function(ie,de,Ne,Me,Re){if(!(this instanceof Ms))return new Ms(ie,de,Ne,Me,Re);Ne==null&&(Ne=0),Ho.call(this,[new ya([new ea("",null)])]),this.first=Ne,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=Ne;var st=nn(Ne,0);this.sel=mo(st),this.history=new Ai(null),this.id=++Kp,this.modeOption=de,this.lineSep=Me,this.direction=Re=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),ma(this,{from:st,to:st,text:ie}),ha(this,mo(st),pt)};Ms.prototype=we(Ho.prototype,{constructor:Ms,iter:function(ie,de,Ne){Ne?this.iterN(ie-this.first,de-ie,Ne):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,de){for(var Ne=0,Me=0;Me<de.length;++Me)Ne+=de[Me].height;this.insertInner(ie-this.first,de,Ne)},remove:function(ie,de){this.removeInner(ie-this.first,de)},getValue:function(ie){var de=Jn(this,this.first,this.first+this.size);return ie===!1?de:de.join(ie||this.lineSeparator())},setValue:_n(function(ie){var de=nn(this.first,0),Ne=this.first+this.size-1;za(this,{from:de,to:nn(Ne,pn(this,Ne).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&Vc(this.cm,0,0),ha(this,mo(de),pt)}),replaceRange:function(ie,de,Ne,Me){de=gn(this,de),Ne=Ne?gn(this,Ne):de,Ku(this,ie,de,Ne,Me)},getRange:function(ie,de,Ne){var Me=yn(this,gn(this,ie),gn(this,de));return Ne===!1?Me:Me.join(Ne||this.lineSeparator())},getLine:function(ie){var de=this.getLineHandle(ie);return de&&de.text},getLineHandle:function(ie){if(Fn(this,ie))return pn(this,ie)},getLineNumber:function(ie){return Zt(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=pn(this,ie)),ii(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return gn(this,ie)},getCursor:function(ie){var de=this.sel.primary(),Ne;return ie==null||ie=="head"?Ne=de.head:ie=="anchor"?Ne=de.anchor:ie=="end"||ie=="to"||ie===!1?Ne=de.to():Ne=de.from(),Ne},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:_n(function(ie,de,Ne){Za(this,gn(this,typeof ie=="number"?nn(ie,de||0):ie),null,Ne)}),setSelection:_n(function(ie,de,Ne){Za(this,gn(this,ie),gn(this,de||ie),Ne)}),extendSelection:_n(function(ie,de,Ne){Qo(this,gn(this,ie),de&&gn(this,de),Ne)}),extendSelections:_n(function(ie,de){ra(this,kn(this,ie),de)}),extendSelectionsBy:_n(function(ie,de){var Ne=bt(this.sel.ranges,ie);ra(this,kn(this,Ne),de)}),setSelections:_n(function(ie,de,Ne){if(ie.length){for(var Me=[],Re=0;Re<ie.length;Re++)Me[Re]=new ni(gn(this,ie[Re].anchor),gn(this,ie[Re].head));de==null&&(de=Math.min(ie.length-1,this.sel.primIndex)),ha(this,lo(this.cm,Me,de),Ne)}}),addSelection:_n(function(ie,de,Ne){var Me=this.sel.ranges.slice(0);Me.push(new ni(gn(this,ie),gn(this,de||ie))),ha(this,lo(this.cm,Me,Me.length-1),Ne)}),getSelection:function(ie){for(var de=this.sel.ranges,Ne,Me=0;Me<de.length;Me++){var Re=yn(this,de[Me].from(),de[Me].to());Ne=Ne?Ne.concat(Re):Re}return ie===!1?Ne:Ne.join(ie||this.lineSeparator())},getSelections:function(ie){for(var de=[],Ne=this.sel.ranges,Me=0;Me<Ne.length;Me++){var Re=yn(this,Ne[Me].from(),Ne[Me].to());ie!==!1&&(Re=Re.join(ie||this.lineSeparator())),de[Me]=Re}return de},replaceSelection:function(ie,de,Ne){for(var Me=[],Re=0;Re<this.sel.ranges.length;Re++)Me[Re]=ie;this.replaceSelections(Me,de,Ne||"+input")},replaceSelections:_n(function(ie,de,Ne){for(var Me=[],Re=this.sel,st=0;st<Re.ranges.length;st++){var wt=Re.ranges[st];Me[st]={from:wt.from(),to:wt.to(),text:this.splitLines(ie[st]),origin:Ne}}for(var At=de&&de!="end"&&ho(this,Me,de),Nt=Me.length-1;Nt>=0;Nt--)za(this,Me[Nt]);At?Co(this,At):this.cm&&Sc(this.cm)}),undo:_n(function(){Wl(this,"undo")}),redo:_n(function(){Wl(this,"redo")}),undoSelection:_n(function(){Wl(this,"undo",!0)}),redoSelection:_n(function(){Wl(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,de=0,Ne=0,Me=0;Me<ie.done.length;Me++)ie.done[Me].ranges||++de;for(var Re=0;Re<ie.undone.length;Re++)ie.undone[Re].ranges||++Ne;return{undo:de,redo:Ne}},clearHistory:function(){var ie=this;this.history=new Ai(this.history.maxGeneration),rs(this,function(de){return de.history=ie.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(ie){return ie&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(ie){return this.history.generation==(ie||this.cleanGeneration)},getHistory:function(){return{done:ps(this.history.done),undone:ps(this.history.undone)}},setHistory:function(ie){var de=this.history=new Ai(this.history.maxGeneration);de.done=ps(ie.done.slice(0),null,!0),de.undone=ps(ie.undone.slice(0),null,!0)},setGutterMarker:_n(function(ie,de,Ne){return ls(this,ie,"gutter",function(Me){var Re=Me.gutterMarkers||(Me.gutterMarkers={});return Re[de]=Ne,!Ne&&Ee(Re)&&(Me.gutterMarkers=null),!0})}),clearGutter:_n(function(ie){var de=this;this.iter(function(Ne){Ne.gutterMarkers&&Ne.gutterMarkers[ie]&&ls(de,Ne,"gutter",function(){return Ne.gutterMarkers[ie]=null,Ee(Ne.gutterMarkers)&&(Ne.gutterMarkers=null),!0})})}),lineInfo:function(ie){var de;if(typeof ie=="number"){if(!Fn(this,ie)||(de=ie,ie=pn(this,ie),!ie))return null}else if(de=Zt(ie),de==null)return null;return{line:de,handle:ie,text:ie.text,gutterMarkers:ie.gutterMarkers,textClass:ie.textClass,bgClass:ie.bgClass,wrapClass:ie.wrapClass,widgets:ie.widgets}},addLineClass:_n(function(ie,de,Ne){return ls(this,ie,de=="gutter"?"gutter":"class",function(Me){var Re=de=="text"?"textClass":de=="background"?"bgClass":de=="gutter"?"gutterClass":"wrapClass";if(!Me[Re])Me[Re]=Ne;else{if(Pe(Ne).test(Me[Re]))return!1;Me[Re]+=" "+Ne}return!0})}),removeLineClass:_n(function(ie,de,Ne){return ls(this,ie,de=="gutter"?"gutter":"class",function(Me){var Re=de=="text"?"textClass":de=="background"?"bgClass":de=="gutter"?"gutterClass":"wrapClass",st=Me[Re];if(st)if(Ne==null)Me[Re]=null;else{var wt=st.match(Pe(Ne));if(!wt)return!1;var At=wt.index+wt[0].length;Me[Re]=st.slice(0,wt.index)+(!wt.index||At==st.length?"":" ")+st.slice(At)||null}else return!1;return!0})}),addLineWidget:_n(function(ie,de,Ne){return gu(this,ie,de,Ne)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,de,Ne){return Pc(this,gn(this,ie),gn(this,de),Ne,Ne&&Ne.type||"range")},setBookmark:function(ie,de){var Ne={replacedWith:de&&(de.nodeType==null?de.widget:de),insertLeft:de&&de.insertLeft,clearWhenEmpty:!1,shared:de&&de.shared,handleMouseEvents:de&&de.handleMouseEvents};return ie=gn(this,ie),Pc(this,ie,ie,Ne,"bookmark")},findMarksAt:function(ie){ie=gn(this,ie);var de=[],Ne=pn(this,ie.line).markedSpans;if(Ne)for(var Me=0;Me<Ne.length;++Me){var Re=Ne[Me];(Re.from==null||Re.from<=ie.ch)&&(Re.to==null||Re.to>=ie.ch)&&de.push(Re.marker.parent||Re.marker)}return de},findMarks:function(ie,de,Ne){ie=gn(this,ie),de=gn(this,de);var Me=[],Re=ie.line;return this.iter(ie.line,de.line+1,function(st){var wt=st.markedSpans;if(wt)for(var At=0;At<wt.length;At++){var Nt=wt[At];!(Nt.to!=null&&Re==ie.line&&ie.ch>=Nt.to||Nt.from==null&&Re!=ie.line||Nt.from!=null&&Re==de.line&&Nt.from>=de.ch)&&(!Ne||Ne(Nt.marker))&&Me.push(Nt.marker.parent||Nt.marker)}++Re}),Me},getAllMarks:function(){var ie=[];return this.iter(function(de){var Ne=de.markedSpans;if(Ne)for(var Me=0;Me<Ne.length;++Me)Ne[Me].from!=null&&ie.push(Ne[Me].marker)}),ie},posFromIndex:function(ie){var de,Ne=this.first,Me=this.lineSeparator().length;return this.iter(function(Re){var st=Re.text.length+Me;if(st>ie)return de=ie,!0;ie-=st,++Ne}),gn(this,nn(Ne,de))},indexFromPos:function(ie){ie=gn(this,ie);var de=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var Ne=this.lineSeparator().length;return this.iter(this.first,ie.line,function(Me){de+=Me.text.length+Ne}),de},copy:function(ie){var de=new Ms(Jn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return de.scrollTop=this.scrollTop,de.scrollLeft=this.scrollLeft,de.sel=this.sel,de.extend=!1,ie&&(de.history.undoDepth=this.history.undoDepth,de.setHistory(this.getHistory())),de},linkedDoc:function(ie){ie||(ie={});var de=this.first,Ne=this.first+this.size;ie.from!=null&&ie.from>de&&(de=ie.from),ie.to!=null&&ie.to<Ne&&(Ne=ie.to);var Me=new Ms(Jn(this,de,Ne),ie.mode||this.modeOption,de,this.lineSep,this.direction);return ie.sharedHist&&(Me.history=this.history),(this.linked||(this.linked=[])).push({doc:Me,sharedHist:ie.sharedHist}),Me.linked=[{doc:this,isParent:!0,sharedHist:ie.sharedHist}],Yc(Me,gh(this)),Me},unlinkDoc:function(ie){if(ie instanceof na&&(ie=ie.doc),this.linked)for(var de=0;de<this.linked.length;++de){var Ne=this.linked[de];if(Ne.doc==ie){this.linked.splice(de,1),ie.unlinkDoc(this),Md(gh(this));break}}if(ie.history==this.history){var Me=[ie.id];rs(ie,function(Re){return Me.push(Re.id)},!0),ie.history=new Ai(null),ie.history.done=ps(this.history.done,Me),ie.history.undone=ps(this.history.undone,Me)}},iterLinkedDocs:function(ie){rs(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):Qn(ie)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:_n(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(de){return de.order=null}),this.cm&&Yi(this.cm))})}),Ms.prototype.eachLine=Ms.prototype.iter;var Kh=0;function Ld(ie){var de=this;if(Vf(de),!(Xt(de,ie)||tl(de.display,ie))){Rn(ie),Fe&&(Kh=+new Date);var Ne=nl(de,ie,!0),Me=ie.dataTransfer.files;if(!(!Ne||de.isReadOnly()))if(Me&&Me.length&&window.FileReader&&window.File)for(var Re=Me.length,st=Array(Re),wt=0,At=function(){++wt==Re&&Hn(de,function(){Ne=gn(de.doc,Ne);var zn={from:Ne,to:Ne,text:de.doc.splitLines(st.filter(function(yr){return yr!=null}).join(de.doc.lineSeparator())),origin:"paste"};za(de.doc,zn),Co(de.doc,mo(gn(de.doc,Ne),gn(de.doc,Yo(zn))))})()},Nt=function(zn,yr){if(de.options.allowDropFileTypes&&ft(de.options.allowDropFileTypes,zn.type)==-1){At();return}var Pr=new FileReader;Pr.onerror=function(){return At()},Pr.onload=function(){var Dr=Pr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Dr)){At();return}st[yr]=Dr,At()},Pr.readAsText(zn)},Gt=0;Gt<Me.length;Gt++)Nt(Me[Gt],Gt);else{if(de.state.draggingText&&de.doc.sel.contains(Ne)>-1){de.state.draggingText(ie),setTimeout(function(){return de.display.input.focus()},20);return}try{var Sn=ie.dataTransfer.getData("Text");if(Sn){var Yt;if(de.state.draggingText&&!de.state.draggingText.copy&&(Yt=de.listSelections()),ms(de.doc,mo(Ne,Ne)),Yt)for(var Un=0;Un<Yt.length;++Un)Ku(de.doc,"",Yt[Un].anchor,Yt[Un].head,"drag");de.replaceSelection(Sn,"around","paste"),de.display.input.focus()}}catch(zn){}}}}function Zh(ie,de){if(Fe&&(!ie.state.draggingText||+new Date-Kh<100)){Cr(de);return}if(!(Xt(ie,de)||tl(ie.display,de))&&(de.dataTransfer.setData("Text",ie.getSelection()),de.dataTransfer.effectAllowed="copyMove",de.dataTransfer.setDragImage&&!ke)){var Ne=je("img",null,null,"position: fixed; left: 0; top: 0;");Ne.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Se&&(Ne.width=Ne.height=1,ie.display.wrapper.appendChild(Ne),Ne._top=Ne.offsetTop),de.dataTransfer.setDragImage(Ne,0,0),Se&&Ne.parentNode.removeChild(Ne)}}function df(ie,de){var Ne=nl(ie,de);if(Ne){var Me=document.createDocumentFragment();_o(ie,Ne,Me),ie.display.dragCursor||(ie.display.dragCursor=je("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),Ae(ie.display.dragCursor,Me)}}function Vf(ie){ie.display.dragCursor&&(ie.display.lineSpace.removeChild(ie.display.dragCursor),ie.display.dragCursor=null)}function ff(ie){if(document.getElementsByClassName){for(var de=document.getElementsByClassName("CodeMirror"),Ne=[],Me=0;Me<de.length;Me++){var Re=de[Me].CodeMirror;Re&&Ne.push(Re)}Ne.length&&Ne[0].operation(function(){for(var st=0;st<Ne.length;st++)ie(Ne[st])})}}var kd=!1;function Ul(){kd||(mh(),kd=!0)}function mh(){var ie;Wt(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,ff(pf)},100))}),Wt(window,"blur",function(){return ff(Zc)})}function pf(ie){var de=ie.display;de.cachedCharWidth=de.cachedTextHeight=de.cachedPaddingH=null,de.scrollbarsClipped=!1,ie.setSize()}for(var Lu={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"},Cc=0;Cc<10;Cc++)Lu[Cc+48]=Lu[Cc+96]=String(Cc);for(var vh=65;vh<=90;vh++)Lu[vh]=String.fromCharCode(vh);for(var Jc=1;Jc<=12;Jc++)Lu[Jc+111]=Lu[Jc+63235]="F"+Jc;var gl={};gl.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"},gl.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"},gl.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"},gl.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"]},gl.default=ae?gl.macDefault:gl.pcDefault;function Nd(ie){var de=ie.split(/-(?!$)/);ie=de[de.length-1];for(var Ne,Me,Re,st,wt=0;wt<de.length-1;wt++){var At=de[wt];if(/^(cmd|meta|m)$/i.test(At))st=!0;else if(/^a(lt)?$/i.test(At))Ne=!0;else if(/^(c|ctrl|control)$/i.test(At))Me=!0;else if(/^s(hift)?$/i.test(At))Re=!0;else throw new Error("Unrecognized modifier name: "+At)}return Ne&&(ie="Alt-"+ie),Me&&(ie="Ctrl-"+ie),st&&(ie="Cmd-"+ie),Re&&(ie="Shift-"+ie),ie}function Od(ie){var de={};for(var Ne in ie)if(ie.hasOwnProperty(Ne)){var Me=ie[Ne];if(/^(name|fallthrough|(de|at)tach)$/.test(Ne))continue;if(Me=="..."){delete ie[Ne];continue}for(var Re=bt(Ne.split(" "),Nd),st=0;st<Re.length;st++){var wt=void 0,At=void 0;st==Re.length-1?(At=Re.join(" "),wt=Me):(At=Re.slice(0,st+1).join(" "),wt="...");var Nt=de[At];if(!Nt)de[At]=wt;else if(Nt!=wt)throw new Error("Inconsistent bindings for "+At)}delete ie[Ne]}for(var Gt in de)ie[Gt]=de[Gt];return ie}function $l(ie,de,Ne,Me){de=Ec(de);var Re=de.call?de.call(ie,Me):de[ie];if(Re===!1)return"nothing";if(Re==="...")return"multi";if(Re!=null&&Ne(Re))return"handled";if(de.fallthrough){if(Object.prototype.toString.call(de.fallthrough)!="[object Array]")return $l(ie,de.fallthrough,Ne,Me);for(var st=0;st<de.fallthrough.length;st++){var wt=$l(ie,de.fallthrough[st],Ne,Me);if(wt)return wt}}}function yh(ie){var de=typeof ie=="string"?ie:Lu[ie.keyCode];return de=="Ctrl"||de=="Alt"||de=="Shift"||de=="Mod"}function Ad(ie,de,Ne){var Me=ie;return de.altKey&&Me!="Alt"&&(ie="Alt-"+ie),(pe?de.metaKey:de.ctrlKey)&&Me!="Ctrl"&&(ie="Ctrl-"+ie),(pe?de.ctrlKey:de.metaKey)&&Me!="Mod"&&(ie="Cmd-"+ie),!Ne&&de.shiftKey&&Me!="Shift"&&(ie="Shift-"+ie),ie}function jd(ie,de){if(Se&&ie.keyCode==34&&ie.char)return!1;var Ne=Lu[ie.keyCode];return Ne==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(Ne=ie.code),Ad(Ne,ie,de))}function Ec(ie){return typeof ie=="string"?gl[ie]:ie}function il(ie,de){for(var Ne=ie.doc.sel.ranges,Me=[],Re=0;Re<Ne.length;Re++){for(var st=de(Ne[Re]);Me.length&&On(st.from,St(Me).to)<=0;){var wt=Me.pop();if(On(wt.from,st.from)<0){st.from=wt.from;break}}Me.push(st)}fn(ie,function(){for(var At=Me.length-1;At>=0;At--)Ku(ie.doc,"",Me[At].from,Me[At].to,"+delete");Sc(ie)})}function Id(ie,de,Ne){var Me=We(ie.text,de+Ne,Ne);return Me<0||Me>ie.text.length?null:Me}function us(ie,de,Ne){var Me=Id(ie,de.ch,Ne);return Me==null?null:new nn(de.line,Me,Ne<0?"after":"before")}function qo(ie,de,Ne,Me,Re){if(ie){de.doc.direction=="rtl"&&(Re=-Re);var st=qt(Ne,de.doc.direction);if(st){var wt=Re<0?St(st):st[0],At=Re<0==(wt.level==1),Nt=At?"after":"before",Gt;if(wt.level>0||de.doc.direction=="rtl"){var Sn=_u(de,Ne);Gt=Re<0?Ne.text.length-1:0;var Yt=Rl(de,Sn,Gt).top;Gt=Xe(function(Un){return Rl(de,Sn,Un).top==Yt},Re<0==(wt.level==1)?wt.from:wt.to-1,Gt),Nt=="before"&&(Gt=Id(Ne,Gt,1))}else Gt=Re<0?wt.to:wt.from;return new nn(Me,Gt,Nt)}}return new nn(Me,Re<0?Ne.text.length:0,Re<0?"before":"after")}function Ea(ie,de,Ne,Me){var Re=qt(de,ie.doc.direction);if(!Re)return us(de,Ne,Me);Ne.ch>=de.text.length?(Ne.ch=de.text.length,Ne.sticky="before"):Ne.ch<=0&&(Ne.ch=0,Ne.sticky="after");var st=ht(Re,Ne.ch,Ne.sticky),wt=Re[st];if(ie.doc.direction=="ltr"&&wt.level%2==0&&(Me>0?wt.to>Ne.ch:wt.from<Ne.ch))return us(de,Ne,Me);var At=function(ri,Ci){return Id(de,ri instanceof nn?ri.ch:ri,Ci)},Nt,Gt=function(ri){return ie.options.lineWrapping?(Nt=Nt||_u(ie,de),fh(ie,de,Nt,ri)):{begin:0,end:de.text.length}},Sn=Gt(Ne.sticky=="before"?At(Ne,-1):Ne.ch);if(ie.doc.direction=="rtl"||wt.level==1){var Yt=wt.level==1==Me<0,Un=At(Ne,Yt?1:-1);if(Un!=null&&(Yt?Un<=wt.to&&Un<=Sn.end:Un>=wt.from&&Un>=Sn.begin)){var zn=Yt?"before":"after";return new nn(Ne.line,Un,zn)}}var yr=function(ri,Ci,yi){for(var Bi=function(Ya,Ds){return Ds?new nn(Ne.line,At(Ya,1),"before"):new nn(Ne.line,Ya,"after")};ri>=0&&ri<Re.length;ri+=Ci){var uo=Re[ri],mi=Ci>0==(uo.level!=1),Eo=mi?yi.begin:At(yi.end,-1);if(uo.from<=Eo&&Eo<uo.to||(Eo=mi?uo.from:At(uo.to,-1),yi.begin<=Eo&&Eo<yi.end))return Bi(Eo,mi)}},Pr=yr(st+Me,Me,Sn);if(Pr)return Pr;var Dr=Me>0?Sn.end:At(Sn.begin,-1);return Dr!=null&&!(Me>0&&Dr==de.text.length)&&(Pr=yr(Me>0?0:Re.length-1,Me,Gt(Dr)),Pr)?Pr:null}var js={selectAll:ta,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),pt)},killLine:function(ie){return il(ie,function(de){if(de.empty()){var Ne=pn(ie.doc,de.head.line).text.length;return de.head.ch==Ne&&de.head.line<ie.lastLine()?{from:de.head,to:nn(de.head.line+1,0)}:{from:de.head,to:nn(de.head.line,Ne)}}else return{from:de.from(),to:de.to()}})},deleteLine:function(ie){return il(ie,function(de){return{from:nn(de.from().line,0),to:gn(ie.doc,nn(de.to().line+1,0))}})},delLineLeft:function(ie){return il(ie,function(de){return{from:nn(de.from().line,0),to:de.from()}})},delWrappedLineLeft:function(ie){return il(ie,function(de){var Ne=ie.charCoords(de.head,"div").top+5,Me=ie.coordsChar({left:0,top:Ne},"div");return{from:Me,to:de.from()}})},delWrappedLineRight:function(ie){return il(ie,function(de){var Ne=ie.charCoords(de.head,"div").top+5,Me=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:Ne},"div");return{from:de.from(),to:Me}})},undo:function(ie){return ie.undo()},redo:function(ie){return ie.redo()},undoSelection:function(ie){return ie.undoSelection()},redoSelection:function(ie){return ie.redoSelection()},goDocStart:function(ie){return ie.extendSelection(nn(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(nn(ie.lastLine()))},goLineStart:function(ie){return ie.extendSelectionsBy(function(de){return ru(ie,de.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(ie){return ie.extendSelectionsBy(function(de){return Dd(ie,de.head)},{origin:"+move",bias:1})},goLineEnd:function(ie){return ie.extendSelectionsBy(function(de){return iu(ie,de.head.line)},{origin:"+move",bias:-1})},goLineRight:function(ie){return ie.extendSelectionsBy(function(de){var Ne=ie.cursorCoords(de.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:Ne},"div")},mt)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(de){var Ne=ie.cursorCoords(de.head,"div").top+5;return ie.coordsChar({left:0,top:Ne},"div")},mt)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(de){var Ne=ie.cursorCoords(de.head,"div").top+5,Me=ie.coordsChar({left:0,top:Ne},"div");return Me.ch<ie.getLine(Me.line).search(/\S/)?Dd(ie,de.head):Me},mt)},goLineUp:function(ie){return ie.moveV(-1,"line")},goLineDown:function(ie){return ie.moveV(1,"line")},goPageUp:function(ie){return ie.moveV(-1,"page")},goPageDown:function(ie){return ie.moveV(1,"page")},goCharLeft:function(ie){return ie.moveH(-1,"char")},goCharRight:function(ie){return ie.moveH(1,"char")},goColumnLeft:function(ie){return ie.moveH(-1,"column")},goColumnRight:function(ie){return ie.moveH(1,"column")},goWordLeft:function(ie){return ie.moveH(-1,"word")},goGroupRight:function(ie){return ie.moveH(1,"group")},goGroupLeft:function(ie){return ie.moveH(-1,"group")},goWordRight:function(ie){return ie.moveH(1,"word")},delCharBefore:function(ie){return ie.deleteH(-1,"codepoint")},delCharAfter:function(ie){return ie.deleteH(1,"char")},delWordBefore:function(ie){return ie.deleteH(-1,"word")},delWordAfter:function(ie){return ie.deleteH(1,"word")},delGroupBefore:function(ie){return ie.deleteH(-1,"group")},delGroupAfter:function(ie){return ie.deleteH(1,"group")},indentAuto:function(ie){return ie.indentSelection("smart")},indentMore:function(ie){return ie.indentSelection("add")},indentLess:function(ie){return ie.indentSelection("subtract")},insertTab:function(ie){return ie.replaceSelection(" ")},insertSoftTab:function(ie){for(var de=[],Ne=ie.listSelections(),Me=ie.options.tabSize,Re=0;Re<Ne.length;Re++){var st=Ne[Re].from(),wt=Je(ie.getLine(st.line),st.ch,Me);de.push(zt(Me-wt%Me))}ie.replaceSelections(de)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return fn(ie,function(){for(var de=ie.listSelections(),Ne=[],Me=0;Me<de.length;Me++)if(de[Me].empty()){var Re=de[Me].head,st=pn(ie.doc,Re.line).text;if(st){if(Re.ch==st.length&&(Re=new nn(Re.line,Re.ch-1)),Re.ch>0)Re=new nn(Re.line,Re.ch+1),ie.replaceRange(st.charAt(Re.ch-1)+st.charAt(Re.ch-2),nn(Re.line,Re.ch-2),Re,"+transpose");else if(Re.line>ie.doc.first){var wt=pn(ie.doc,Re.line-1).text;wt&&(Re=new nn(Re.line,1),ie.replaceRange(st.charAt(0)+ie.doc.lineSeparator()+wt.charAt(wt.length-1),nn(Re.line-1,wt.length-1),Re,"+transpose"))}}Ne.push(new ni(Re,Re))}ie.setSelections(Ne)})},newlineAndIndent:function(ie){return fn(ie,function(){for(var de=ie.listSelections(),Ne=de.length-1;Ne>=0;Ne--)ie.replaceRange(ie.doc.lineSeparator(),de[Ne].anchor,de[Ne].head,"+input");de=ie.listSelections();for(var Me=0;Me<de.length;Me++)ie.indentLine(de[Me].from().line,null,!0);Sc(ie)})},openLine:function(ie){return ie.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function ru(ie,de){var Ne=pn(ie.doc,de),Me=ii(Ne);return Me!=Ne&&(de=Zt(Me)),qo(!0,ie,Me,de,1)}function iu(ie,de){var Ne=pn(ie.doc,de),Me=Ji(Ne);return Me!=Ne&&(de=Zt(Me)),qo(!0,ie,Ne,de,-1)}function Dd(ie,de){var Ne=ru(ie,de.line),Me=pn(ie.doc,Ne.line),Re=qt(Me,ie.doc.direction);if(!Re||Re[0].level==0){var st=Math.max(Ne.ch,Me.text.search(/\S/)),wt=de.line==Ne.line&&de.ch<=st&&de.ch;return nn(Ne.line,wt?0:st,Ne.sticky)}return Ne}function Tc(ie,de,Ne){if(typeof de=="string"&&(de=js[de],!de))return!1;ie.display.input.ensurePolled();var Me=ie.display.shift,Re=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),Ne&&(ie.display.shift=!1),Re=de(ie)!=yt}finally{ie.display.shift=Me,ie.state.suppressEdits=!1}return Re}function Vh(ie,de,Ne){for(var Me=0;Me<ie.state.keyMaps.length;Me++){var Re=$l(de,ie.state.keyMaps[Me],Ne,ie);if(Re)return Re}return ie.options.extraKeys&&$l(de,ie.options.extraKeys,Ne,ie)||$l(de,ie.options.keyMap,Ne,ie)}var mu=new ot;function ac(ie,de,Ne,Me){var Re=ie.state.keySeq;if(Re){if(yh(de))return"handled";if(/\'$/.test(de)?ie.state.keySeq=null:mu.set(50,function(){ie.state.keySeq==Re&&(ie.state.keySeq=null,ie.display.input.reset())}),Xf(ie,Re+" "+de,Ne,Me))return!0}return Xf(ie,de,Ne,Me)}function Xf(ie,de,Ne,Me){var Re=Vh(ie,de,Me);return Re=="multi"&&(ie.state.keySeq=de),Re=="handled"&&kr(ie,"keyHandled",ie,de,Ne),(Re=="handled"||Re=="multi")&&(Rn(Ne),sa(ie)),!!Re}function Yf(ie,de){var Ne=jd(de,!0);return Ne?de.shiftKey&&!ie.state.keySeq?ac(ie,"Shift-"+Ne,de,function(Me){return Tc(ie,Me,!0)})||ac(ie,Ne,de,function(Me){if(typeof Me=="string"?/^go[A-Z]/.test(Me):Me.motion)return Tc(ie,Me)}):ac(ie,Ne,de,function(Me){return Tc(ie,Me)}):!1}function Jf(ie,de,Ne){return ac(ie,"'"+Ne+"'",de,function(Me){return Tc(ie,Me,!0)})}var Xh=null;function Zp(ie){var de=this;if(!(ie.target&&ie.target!=de.display.input.getField())&&(de.curOp.focus=ze(),!Xt(de,ie))){Fe&&me<11&&ie.keyCode==27&&(ie.returnValue=!1);var Ne=ie.keyCode;de.display.shift=Ne==16||ie.shiftKey;var Me=Yf(de,ie);Se&&(Xh=Me?Ne:null,!Me&&Ne==88&&!Ur&&(ae?ie.metaKey:ie.ctrlKey)&&de.replaceSelection("",null,"cut")),tt&&!ae&&!Me&&Ne==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),Ne==18&&!/\bCodeMirror-crosshair\b/.test(de.display.lineDiv.className)&&Vp(de)}}function Vp(ie){var de=ie.display.lineDiv;Ye(de,"CodeMirror-crosshair");function Ne(Me){(Me.keyCode==18||!Me.altKey)&&(Ie(de,"CodeMirror-crosshair"),ln(document,"keyup",Ne),ln(document,"mouseover",Ne))}Wt(document,"keyup",Ne),Wt(document,"mouseover",Ne)}function Xp(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),Xt(this,ie)}function sc(ie){var de=this;if(!(ie.target&&ie.target!=de.display.input.getField())&&!(tl(de.display,ie)||Xt(de,ie)||ie.ctrlKey&&!ie.altKey||ae&&ie.metaKey)){var Ne=ie.keyCode,Me=ie.charCode;if(Se&&Ne==Xh){Xh=null,Rn(ie);return}if(!(Se&&(!ie.which||ie.which<10)&&Yf(de,ie))){var Re=String.fromCharCode(Me==null?Ne:Me);Re!="\b"&&(Jf(de,ie,Re)||de.display.input.onKeyPress(ie))}}}var om=400,Yp=function(ie,de,Ne){this.time=ie,this.pos=de,this.button=Ne};Yp.prototype.compare=function(ie,de,Ne){return this.time+om>ie&&On(de,this.pos)==0&&Ne==this.button};var Fd,Yh;function Jp(ie,de){var Ne=+new Date;return Yh&&Yh.compare(Ne,ie,de)?(Fd=Yh=null,"triple"):Fd&&Fd.compare(Ne,ie,de)?(Yh=new Yp(Ne,ie,de),Fd=null,"double"):(Fd=new Yp(Ne,ie,de),Yh=null,"single")}function lc(ie){var de=this,Ne=de.display;if(!(Xt(de,ie)||Ne.activeTouch&&Ne.input.supportsTouch())){if(Ne.input.ensurePolled(),Ne.shift=ie.shiftKey,tl(Ne,ie)){ce||(Ne.scroller.draggable=!1,setTimeout(function(){return Ne.scroller.draggable=!0},100));return}if(!ep(de,ie)){var Me=nl(de,ie),Re=Fr(ie),st=Me?Jp(Me,Re):"single";window.focus(),Re==1&&de.state.selectingText&&de.state.selectingText(ie),!(Me&&Qp(de,Re,Me,st,ie))&&(Re==1?Me?am(de,Me,st,ie):er(ie)==Ne.scroller&&Rn(ie):Re==2?(Me&&Qo(de.doc,Me),setTimeout(function(){return Ne.input.focus()},20)):Re==3&&(Ce?de.display.input.onContextMenu(ie):Ka(de)))}}}function Qp(ie,de,Ne,Me,Re){var st="Click";return Me=="double"?st="Double"+st:Me=="triple"&&(st="Triple"+st),st=(de==1?"Left":de==2?"Middle":"Right")+st,ac(ie,Ad(st,Re),Re,function(wt){if(typeof wt=="string"&&(wt=js[wt]),!wt)return!1;var At=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),At=wt(ie,Ne)!=yt}finally{ie.state.suppressEdits=!1}return At})}function Qf(ie,de,Ne){var Me=ie.getOption("configureMouse"),Re=Me?Me(ie,de,Ne):{};if(Re.unit==null){var st=re?Ne.shiftKey&&Ne.metaKey:Ne.altKey;Re.unit=st?"rectangle":de=="single"?"char":de=="double"?"word":"line"}return(Re.extend==null||ie.doc.extend)&&(Re.extend=ie.doc.extend||Ne.shiftKey),Re.addNew==null&&(Re.addNew=ae?Ne.metaKey:Ne.ctrlKey),Re.moveOnDrag==null&&(Re.moveOnDrag=!(ae?Ne.altKey:Ne.ctrlKey)),Re}function am(ie,de,Ne,Me){Fe?setTimeout(dt(Ma,ie),0):ie.curOp.focus=ze();var Re=Qf(ie,Ne,Me),st=ie.doc.sel,wt;ie.options.dragDrop&&jr&&!ie.isReadOnly()&&Ne=="single"&&(wt=st.contains(de))>-1&&(On((wt=st.ranges[wt]).from(),de)<0||de.xRel>0)&&(On(wt.to(),de)>0||de.xRel<0)?qp(ie,Me,de,Re):nv(ie,Me,de,Re)}function qp(ie,de,Ne,Me){var Re=ie.display,st=!1,wt=Hn(ie,function(Gt){ce&&(Re.scroller.draggable=!1),ie.state.draggingText=!1,ln(Re.wrapper.ownerDocument,"mouseup",wt),ln(Re.wrapper.ownerDocument,"mousemove",At),ln(Re.scroller,"dragstart",Nt),ln(Re.scroller,"drop",wt),st||(Rn(Gt),Me.addNew||Qo(ie.doc,Ne,null,null,Me.extend),ce&&!ke||Fe&&me==9?setTimeout(function(){Re.wrapper.ownerDocument.body.focus({preventScroll:!0}),Re.input.focus()},20):Re.input.focus())}),At=function(Gt){st=st||Math.abs(de.clientX-Gt.clientX)+Math.abs(de.clientY-Gt.clientY)>=10},Nt=function(){return st=!0};ce&&(Re.scroller.draggable=!0),ie.state.draggingText=wt,wt.copy=!Me.moveOnDrag,Re.scroller.dragDrop&&Re.scroller.dragDrop(),Wt(Re.wrapper.ownerDocument,"mouseup",wt),Wt(Re.wrapper.ownerDocument,"mousemove",At),Wt(Re.scroller,"dragstart",Nt),Wt(Re.scroller,"drop",wt),Ka(ie),setTimeout(function(){return Re.input.focus()},20)}function eg(ie,de,Ne){if(Ne=="char")return new ni(de,de);if(Ne=="word")return ie.findWordAt(de);if(Ne=="line")return new ni(nn(de.line,0),gn(ie.doc,nn(de.line+1,0)));var Me=Ne(ie,de);return new ni(Me.from,Me.to)}function nv(ie,de,Ne,Me){var Re=ie.display,st=ie.doc;Rn(de);var wt,At,Nt=st.sel,Gt=Nt.ranges;if(Me.addNew&&!Me.extend?(At=st.sel.contains(Ne),At>-1?wt=Gt[At]:wt=new ni(Ne,Ne)):(wt=st.sel.primary(),At=st.sel.primIndex),Me.unit=="rectangle")Me.addNew||(wt=new ni(Ne,Ne)),Ne=nl(ie,de,!0,!0),At=-1;else{var Sn=eg(ie,Ne,Me.unit);Me.extend?wt=$u(wt,Sn.anchor,Sn.head,Me.extend):wt=Sn}Me.addNew?At==-1?(At=Gt.length,ha(st,lo(ie,Gt.concat([wt]),At),{scroll:!1,origin:"*mouse"})):Gt.length>1&&Gt[At].empty()&&Me.unit=="char"&&!Me.extend?(ha(st,lo(ie,Gt.slice(0,At).concat(Gt.slice(At+1)),0),{scroll:!1,origin:"*mouse"}),Nt=st.sel):la(st,At,wt,gt):(At=0,ha(st,new Vi([wt],0),gt),Nt=st.sel);var Yt=Ne;function Un(yi){if(On(Yt,yi)!=0)if(Yt=yi,Me.unit=="rectangle"){for(var Bi=[],uo=ie.options.tabSize,mi=Je(pn(st,Ne.line).text,Ne.ch,uo),Eo=Je(pn(st,yi.line).text,yi.ch,uo),Ya=Math.min(mi,Eo),Ds=Math.max(mi,Eo),is=Math.min(Ne.line,yi.line),Zl=Math.min(ie.lastLine(),Math.max(Ne.line,yi.line));is<=Zl;is++){var ml=pn(st,is).text,ks=Mt(ml,Ya,uo);Ya==Ds?Bi.push(new ni(nn(is,ks),nn(is,ks))):ml.length>ks&&Bi.push(new ni(nn(is,ks),nn(is,Mt(ml,Ds,uo))))}Bi.length||Bi.push(new ni(Ne,Ne)),ha(st,lo(ie,Nt.ranges.slice(0,At).concat(Bi),At),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(yi)}else{var ou=wt,ol=eg(ie,yi,Me.unit),Ns=ou.anchor,ia;On(ol.anchor,Ns)>0?(ia=ol.head,Ns=xn(ou.from(),ol.anchor)):(ia=ol.anchor,Ns=Ln(ou.to(),ol.head));var cs=Nt.ranges.slice(0);cs[At]=sm(ie,new ni(gn(st,Ns),ia)),ha(st,lo(ie,cs,At),gt)}}var zn=Re.wrapper.getBoundingClientRect(),yr=0;function Pr(yi){var Bi=++yr,uo=nl(ie,yi,!0,Me.unit=="rectangle");if(uo)if(On(uo,Yt)!=0){ie.curOp.focus=ze(),Un(uo);var mi=Do(Re,st);(uo.line>=mi.to||uo.line<mi.from)&&setTimeout(Hn(ie,function(){yr==Bi&&Pr(yi)}),150)}else{var Eo=yi.clientY<zn.top?-20:yi.clientY>zn.bottom?20:0;Eo&&setTimeout(Hn(ie,function(){yr==Bi&&(Re.scroller.scrollTop+=Eo,Pr(yi))}),50)}}function Dr(yi){ie.state.selectingText=!1,yr=1/0,yi&&(Rn(yi),Re.input.focus()),ln(Re.wrapper.ownerDocument,"mousemove",ri),ln(Re.wrapper.ownerDocument,"mouseup",Ci),st.history.lastSelOrigin=null}var ri=Hn(ie,function(yi){yi.buttons===0||!Fr(yi)?Dr(yi):Pr(yi)}),Ci=Hn(ie,Dr);ie.state.selectingText=Ci,Wt(Re.wrapper.ownerDocument,"mousemove",ri),Wt(Re.wrapper.ownerDocument,"mouseup",Ci)}function sm(ie,de){var Ne=de.anchor,Me=de.head,Re=pn(ie.doc,Ne.line);if(On(Ne,Me)==0&&Ne.sticky==Me.sticky)return de;var st=qt(Re);if(!st)return de;var wt=ht(st,Ne.ch,Ne.sticky),At=st[wt];if(At.from!=Ne.ch&&At.to!=Ne.ch)return de;var Nt=wt+(At.from==Ne.ch==(At.level!=1)?0:1);if(Nt==0||Nt==st.length)return de;var Gt;if(Me.line!=Ne.line)Gt=(Me.line-Ne.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var Sn=ht(st,Me.ch,Me.sticky),Yt=Sn-wt||(Me.ch-Ne.ch)*(At.level==1?-1:1);Sn==Nt-1||Sn==Nt?Gt=Yt<0:Gt=Yt>0}var Un=st[Nt+(Gt?-1:0)],zn=Gt==(Un.level==1),yr=zn?Un.from:Un.to,Pr=zn?"after":"before";return Ne.ch==yr&&Ne.sticky==Pr?de:new ni(new nn(Ne.line,yr,Pr),Me)}function qf(ie,de,Ne,Me){var Re,st;if(de.touches)Re=de.touches[0].clientX,st=de.touches[0].clientY;else try{Re=de.clientX,st=de.clientY}catch(Un){return!1}if(Re>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;Me&&Rn(de);var wt=ie.display,At=wt.lineDiv.getBoundingClientRect();if(st>At.bottom||!dn(ie,Ne))return qn(de);st-=At.top-wt.viewOffset;for(var Nt=0;Nt<ie.display.gutterSpecs.length;++Nt){var Gt=wt.gutters.childNodes[Nt];if(Gt&&Gt.getBoundingClientRect().right>=Re){var Sn=jn(ie.doc,st),Yt=ie.display.gutterSpecs[Nt];return kt(ie,Ne,ie,Sn,Yt.className,de),qn(de)}}}function ep(ie,de){return qf(ie,de,"gutterClick",!0)}function tp(ie,de){tl(ie.display,de)||lm(ie,de)||Xt(ie,de,"contextmenu")||Ce||ie.display.input.onContextMenu(de)}function lm(ie,de){return dn(ie,"gutterContextMenu")?qf(ie,de,"gutterContextMenu",!1):!1}function np(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ba(ie)}var Sh={toString:function(){return"CodeMirror.Init"}},tg={},gf={};function um(ie){var de=ie.optionHandlers;function Ne(Me,Re,st,wt){ie.defaults[Me]=Re,st&&(de[Me]=wt?function(At,Nt,Gt){Gt!=Sh&&st(At,Nt,Gt)}:st)}ie.defineOption=Ne,ie.Init=Sh,Ne("value","",function(Me,Re){return Me.setValue(Re)},!0),Ne("mode",null,function(Me,Re){Me.doc.modeOption=Re,_i(Me)},!0),Ne("indentUnit",2,_i,!0),Ne("indentWithTabs",!1),Ne("smartIndent",!0),Ne("tabSize",4,function(Me){Go(Me),Ba(Me),ga(Me)},!0),Ne("lineSeparator",null,function(Me,Re){if(Me.doc.lineSep=Re,!!Re){var st=[],wt=Me.doc.first;Me.doc.iter(function(Nt){for(var Gt=0;;){var Sn=Nt.text.indexOf(Re,Gt);if(Sn==-1)break;Gt=Sn+Re.length,st.push(nn(wt,Sn))}wt++});for(var At=st.length-1;At>=0;At--)Ku(Me.doc,Re,st[At],nn(st[At].line,st[At].ch+Re.length))}}),Ne("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(Me,Re,st){Me.state.specialChars=new RegExp(Re.source+(Re.test(" ")?"":"| "),"g"),st!=Sh&&Me.refresh()}),Ne("specialCharPlaceholder",qa,function(Me){return Me.refresh()},!0),Ne("electricChars",!0),Ne("inputStyle",ee?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),Ne("spellcheck",!1,function(Me,Re){return Me.getInputField().spellcheck=Re},!0),Ne("autocorrect",!1,function(Me,Re){return Me.getInputField().autocorrect=Re},!0),Ne("autocapitalize",!1,function(Me,Re){return Me.getInputField().autocapitalize=Re},!0),Ne("rtlMoveVisually",!le),Ne("wholeLineUpdateBefore",!0),Ne("theme","default",function(Me){np(Me),si(Me)},!0),Ne("keyMap","default",function(Me,Re,st){var wt=Ec(Re),At=st!=Sh&&Ec(st);At&&At.detach&&At.detach(Me,wt),wt.attach&&wt.attach(Me,At||null)}),Ne("extraKeys",null),Ne("configureMouse",null),Ne("lineWrapping",!1,cm,!0),Ne("gutters",[],function(Me,Re){Me.display.gutterSpecs=Ti(Re,Me.options.lineNumbers),si(Me)},!0),Ne("fixedGutter",!0,function(Me,Re){Me.display.gutters.style.left=Re?ph(Me.display)+"px":"0",Me.refresh()},!0),Ne("coverGutterNextToScrollbar",!1,function(Me){return wc(Me)},!0),Ne("scrollbarStyle","native",function(Me){uf(Me),wc(Me),Me.display.scrollbars.setScrollTop(Me.doc.scrollTop),Me.display.scrollbars.setScrollLeft(Me.doc.scrollLeft)},!0),Ne("lineNumbers",!1,function(Me,Re){Me.display.gutterSpecs=Ti(Me.options.gutters,Re),si(Me)},!0),Ne("firstLineNumber",1,si,!0),Ne("lineNumberFormatter",function(Me){return Me},si,!0),Ne("showCursorWhenSelecting",!1,ws,!0),Ne("resetSelectionOnContextMenu",!0),Ne("lineWiseCopyCut",!0),Ne("pasteLinesPerSelection",!0),Ne("selectionsMayTouch",!1),Ne("readOnly",!1,function(Me,Re){Re=="nocursor"&&(Zc(Me),Me.display.input.blur()),Me.display.input.readOnlyChanged(Re)}),Ne("screenReaderLabel",null,function(Me,Re){Re=Re===""?null:Re,Me.display.input.screenReaderLabelChanged(Re)}),Ne("disableInput",!1,function(Me,Re){Re||Me.display.input.reset()},!0),Ne("dragDrop",!0,rp),Ne("allowDropFileTypes",null),Ne("cursorBlinkRate",530),Ne("cursorScrollMargin",0),Ne("cursorHeight",1,ws,!0),Ne("singleCursorHeightPerLine",!0,ws,!0),Ne("workTime",100),Ne("workDelay",100),Ne("flattenSpans",!0,Go,!0),Ne("addModeClass",!1,Go,!0),Ne("pollInterval",100),Ne("undoDepth",200,function(Me,Re){return Me.doc.history.undoDepth=Re}),Ne("historyEventDelay",1250),Ne("viewportMargin",10,function(Me){return Me.refresh()},!0),Ne("maxHighlightLength",1e4,Go,!0),Ne("moveInputWithCursor",!0,function(Me,Re){Re||Me.display.input.resetPosition()}),Ne("tabindex",null,function(Me,Re){return Me.display.input.getField().tabIndex=Re||""}),Ne("autofocus",null),Ne("direction","ltr",function(Me,Re){return Me.doc.setDirection(Re)},!0),Ne("phrases",null)}function rp(ie,de,Ne){var Me=Ne&&Ne!=Sh;if(!de!=!Me){var Re=ie.display.dragFunctions,st=de?Wt:ln;st(ie.display.scroller,"dragstart",Re.start),st(ie.display.scroller,"dragenter",Re.enter),st(ie.display.scroller,"dragover",Re.over),st(ie.display.scroller,"dragleave",Re.leave),st(ie.display.scroller,"drop",Re.drop)}}function cm(ie){ie.options.lineWrapping?(Ye(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Ie(ie.display.wrapper,"CodeMirror-wrap"),To(ie)),zi(ie),ga(ie),Ba(ie),setTimeout(function(){return wc(ie)},100)}function na(ie,de){var Ne=this;if(!(this instanceof na))return new na(ie,de);this.options=de=de?vt(de):{},vt(tg,de,!1);var Me=de.value;typeof Me=="string"?Me=new Ms(Me,de.mode,null,de.lineSeparator,de.direction):de.mode&&(Me.modeOption=de.mode),this.doc=Me;var Re=new na.inputStyles[de.inputStyle](this),st=this.display=new wi(ie,Me,Re,de);st.wrapper.CodeMirror=this,np(this),de.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),uf(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 ot,keySeq:null,specialChars:null},de.autofocus&&!ee&&st.input.focus(),Fe&&me<11&&setTimeout(function(){return Ne.display.input.reset(!0)},20),Bd(this),Ul(),dl(this),this.curOp.forceUpdate=!0,Xi(this,Me),de.autofocus&&!ee||this.hasFocus()?setTimeout(function(){Ne.hasFocus()&&!Ne.state.focused&&Wo(Ne)},20):Zc(this);for(var wt in gf)gf.hasOwnProperty(wt)&&gf[wt](this,de[wt],Sh);ti(this),de.finishInit&&de.finishInit(this);for(var At=0;At<Jh.length;++At)Jh[At](this);bc(this),ce&&de.lineWrapping&&getComputedStyle(st.lineDiv).textRendering=="optimizelegibility"&&(st.lineDiv.style.textRendering="auto")}na.defaults=tg,na.optionHandlers=gf;function Bd(ie){var de=ie.display;Wt(de.scroller,"mousedown",Hn(ie,lc)),Fe&&me<11?Wt(de.scroller,"dblclick",Hn(ie,function(Nt){if(!Xt(ie,Nt)){var Gt=nl(ie,Nt);if(!(!Gt||ep(ie,Nt)||tl(ie.display,Nt))){Rn(Nt);var Sn=ie.findWordAt(Gt);Qo(ie.doc,Sn.anchor,Sn.head)}}})):Wt(de.scroller,"dblclick",function(Nt){return Xt(ie,Nt)||Rn(Nt)}),Wt(de.scroller,"contextmenu",function(Nt){return tp(ie,Nt)}),Wt(de.input.getField(),"contextmenu",function(Nt){de.scroller.contains(Nt.target)||tp(ie,Nt)});var Ne,Me={end:0};function Re(){de.activeTouch&&(Ne=setTimeout(function(){return de.activeTouch=null},1e3),Me=de.activeTouch,Me.end=+new Date)}function st(Nt){if(Nt.touches.length!=1)return!1;var Gt=Nt.touches[0];return Gt.radiusX<=1&&Gt.radiusY<=1}function wt(Nt,Gt){if(Gt.left==null)return!0;var Sn=Gt.left-Nt.left,Yt=Gt.top-Nt.top;return Sn*Sn+Yt*Yt>20*20}Wt(de.scroller,"touchstart",function(Nt){if(!Xt(ie,Nt)&&!st(Nt)&&!ep(ie,Nt)){de.input.ensurePolled(),clearTimeout(Ne);var Gt=+new Date;de.activeTouch={start:Gt,moved:!1,prev:Gt-Me.end<=300?Me:null},Nt.touches.length==1&&(de.activeTouch.left=Nt.touches[0].pageX,de.activeTouch.top=Nt.touches[0].pageY)}}),Wt(de.scroller,"touchmove",function(){de.activeTouch&&(de.activeTouch.moved=!0)}),Wt(de.scroller,"touchend",function(Nt){var Gt=de.activeTouch;if(Gt&&!tl(de,Nt)&&Gt.left!=null&&!Gt.moved&&new Date-Gt.start<300){var Sn=ie.coordsChar(de.activeTouch,"page"),Yt;!Gt.prev||wt(Gt,Gt.prev)?Yt=new ni(Sn,Sn):!Gt.prev.prev||wt(Gt,Gt.prev.prev)?Yt=ie.findWordAt(Sn):Yt=new ni(nn(Sn.line,0),gn(ie.doc,nn(Sn.line+1,0))),ie.setSelection(Yt.anchor,Yt.head),ie.focus(),Rn(Nt)}Re()}),Wt(de.scroller,"touchcancel",Re),Wt(de.scroller,"scroll",function(){de.scroller.clientHeight&&(Xc(ie,de.scroller.scrollTop),Uu(ie,de.scroller.scrollLeft,!0),kt(ie,"scroll",ie))}),Wt(de.scroller,"mousewheel",function(Nt){return Ki(ie,Nt)}),Wt(de.scroller,"DOMMouseScroll",function(Nt){return Ki(ie,Nt)}),Wt(de.wrapper,"scroll",function(){return de.wrapper.scrollTop=de.wrapper.scrollLeft=0}),de.dragFunctions={enter:function(Nt){Xt(ie,Nt)||Cr(Nt)},over:function(Nt){Xt(ie,Nt)||(df(ie,Nt),Cr(Nt))},start:function(Nt){return Zh(ie,Nt)},drop:Hn(ie,Ld),leave:function(Nt){Xt(ie,Nt)||Vf(ie)}};var At=de.input.getField();Wt(At,"keyup",function(Nt){return Xp.call(ie,Nt)}),Wt(At,"keydown",Hn(ie,Zp)),Wt(At,"keypress",Hn(ie,sc)),Wt(At,"focus",function(Nt){return Wo(ie,Nt)}),Wt(At,"blur",function(Nt){return Zc(ie,Nt)})}var Jh=[];na.defineInitHook=function(ie){return Jh.push(ie)};function Is(ie,de,Ne,Me){var Re=ie.doc,st;Ne==null&&(Ne="add"),Ne=="smart"&&(Re.mode.indent?st=Lr(ie,de).state:Ne="prev");var wt=ie.options.tabSize,At=pn(Re,de),Nt=Je(At.text,null,wt);At.stateAfter&&(At.stateAfter=null);var Gt=At.text.match(/^\s*/)[0],Sn;if(!Me&&!/\S/.test(At.text))Sn=0,Ne="not";else if(Ne=="smart"&&(Sn=Re.mode.indent(st,At.text.slice(Gt.length),At.text),Sn==yt||Sn>150)){if(!Me)return;Ne="prev"}Ne=="prev"?de>Re.first?Sn=Je(pn(Re,de-1).text,null,wt):Sn=0:Ne=="add"?Sn=Nt+ie.options.indentUnit:Ne=="subtract"?Sn=Nt-ie.options.indentUnit:typeof Ne=="number"&&(Sn=Nt+Ne),Sn=Math.max(0,Sn);var Yt="",Un=0;if(ie.options.indentWithTabs)for(var zn=Math.floor(Sn/wt);zn;--zn)Un+=wt,Yt+=" ";if(Un<Sn&&(Yt+=zt(Sn-Un)),Yt!=Gt)return Ku(Re,Yt,nn(de,0),nn(de,Gt.length),"+input"),At.stateAfter=null,!0;for(var yr=0;yr<Re.sel.ranges.length;yr++){var Pr=Re.sel.ranges[yr];if(Pr.head.line==de&&Pr.head.ch<Gt.length){var Dr=nn(de,Gt.length);la(Re,yr,new ni(Dr,Dr));break}}}var Kl=null;function Qh(ie){Kl=ie}function mf(ie,de,Ne,Me,Re){var st=ie.doc;ie.display.shift=!1,Me||(Me=st.sel);var wt=+new Date-200,At=Re=="paste"||ie.state.pasteIncoming>wt,Nt=Qn(de),Gt=null;if(At&&Me.ranges.length>1)if(Kl&&Kl.text.join(`
|
|
|
`)==de){if(Me.ranges.length%Kl.text.length==0){Gt=[];for(var Sn=0;Sn<Kl.text.length;Sn++)Gt.push(st.splitLines(Kl.text[Sn]))}}else Nt.length==Me.ranges.length&&ie.options.pasteLinesPerSelection&&(Gt=bt(Nt,function(ri){return[ri]}));for(var Yt=ie.curOp.updateInput,Un=Me.ranges.length-1;Un>=0;Un--){var zn=Me.ranges[Un],yr=zn.from(),Pr=zn.to();zn.empty()&&(Ne&&Ne>0?yr=nn(yr.line,yr.ch-Ne):ie.state.overwrite&&!At?Pr=nn(Pr.line,Math.min(pn(st,Pr.line).text.length,Pr.ch+St(Nt).length)):At&&Kl&&Kl.lineWise&&Kl.text.join(`
|
|
|
`)==Nt.join(`
|
|
|
`)&&(yr=Pr=nn(yr.line,0)));var Dr={from:yr,to:Pr,text:Gt?Gt[Un%Gt.length]:Nt,origin:Re||(At?"paste":ie.state.cutIncoming>wt?"cut":"+input")};za(ie.doc,Dr),kr(ie,"inputRead",ie,Dr)}de&&!At&&rg(ie,de),Sc(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=Yt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function ng(ie,de){var Ne=ie.clipboardData&&ie.clipboardData.getData("Text");if(Ne)return ie.preventDefault(),!de.isReadOnly()&&!de.options.disableInput&&fn(de,function(){return mf(de,Ne,0,null,"paste")}),!0}function rg(ie,de){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var Ne=ie.doc.sel,Me=Ne.ranges.length-1;Me>=0;Me--){var Re=Ne.ranges[Me];if(!(Re.head.ch>100||Me&&Ne.ranges[Me-1].head.line==Re.head.line)){var st=ie.getModeAt(Re.head),wt=!1;if(st.electricChars){for(var At=0;At<st.electricChars.length;At++)if(de.indexOf(st.electricChars.charAt(At))>-1){wt=Is(ie,Re.head.line,"smart");break}}else st.electricInput&&st.electricInput.test(pn(ie.doc,Re.head.line).text.slice(0,Re.head.ch))&&(wt=Is(ie,Re.head.line,"smart"));wt&&kr(ie,"electricInput",ie,Re.head.line)}}}function ig(ie){for(var de=[],Ne=[],Me=0;Me<ie.doc.sel.ranges.length;Me++){var Re=ie.doc.sel.ranges[Me].head.line,st={anchor:nn(Re,0),head:nn(Re+1,0)};Ne.push(st),de.push(ie.getRange(st.anchor,st.head))}return{text:de,ranges:Ne}}function og(ie,de,Ne,Me){ie.setAttribute("autocorrect",Ne?"":"off"),ie.setAttribute("autocapitalize",Me?"":"off"),ie.setAttribute("spellcheck",!!de)}function ag(){var ie=je("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),de=je("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ce?ie.style.width="1000px":ie.setAttribute("wrap","off"),fe&&(ie.style.border="1px solid black"),og(ie),de}function xh(ie){var de=ie.optionHandlers,Ne=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(Me,Re){var st=this.options,wt=st[Me];st[Me]==Re&&Me!="mode"||(st[Me]=Re,de.hasOwnProperty(Me)&&Hn(this,de[Me])(this,Re,wt),kt(this,"optionChange",this,Me))},getOption:function(Me){return this.options[Me]},getDoc:function(){return this.doc},addKeyMap:function(Me,Re){this.state.keyMaps[Re?"push":"unshift"](Ec(Me))},removeKeyMap:function(Me){for(var Re=this.state.keyMaps,st=0;st<Re.length;++st)if(Re[st]==Me||Re[st].name==Me)return Re.splice(st,1),!0},addOverlay:Wn(function(Me,Re){var st=Me.token?Me:ie.getMode(this.options,Me);if(st.startState)throw new Error("Overlays may not be stateful.");at(this.state.overlays,{mode:st,modeSpec:Me,opaque:Re&&Re.opaque,priority:Re&&Re.priority||0},function(wt){return wt.priority}),this.state.modeGen++,ga(this)}),removeOverlay:Wn(function(Me){for(var Re=this.state.overlays,st=0;st<Re.length;++st){var wt=Re[st].modeSpec;if(wt==Me||typeof Me=="string"&&wt.name==Me){Re.splice(st,1),this.state.modeGen++,ga(this);return}}}),indentLine:Wn(function(Me,Re,st){typeof Re!="string"&&typeof Re!="number"&&(Re==null?Re=this.options.smartIndent?"smart":"prev":Re=Re?"add":"subtract"),Fn(this.doc,Me)&&Is(this,Me,Re,st)}),indentSelection:Wn(function(Me){for(var Re=this.doc.sel.ranges,st=-1,wt=0;wt<Re.length;wt++){var At=Re[wt];if(At.empty())At.head.line>st&&(Is(this,At.head.line,Me,!0),st=At.head.line,wt==this.doc.sel.primIndex&&Sc(this));else{var Nt=At.from(),Gt=At.to(),Sn=Math.max(st,Nt.line);st=Math.min(this.lastLine(),Gt.line-(Gt.ch?0:1))+1;for(var Yt=Sn;Yt<st;++Yt)Is(this,Yt,Me);var Un=this.doc.sel.ranges;Nt.ch==0&&Re.length==Un.length&&Un[wt].from().ch>0&&la(this.doc,wt,new ni(Nt,Un[wt].to()),pt)}}}),getTokenAt:function(Me,Re){return Ar(this,Me,Re)},getLineTokens:function(Me,Re){return Ar(this,nn(Me),Re,!0)},getTokenTypeAt:function(Me){Me=gn(this.doc,Me);var Re=Hr(this,pn(this.doc,Me.line)),st=0,wt=(Re.length-1)/2,At=Me.ch,Nt;if(At==0)Nt=Re[2];else for(;;){var Gt=st+wt>>1;if((Gt?Re[Gt*2-1]:0)>=At)wt=Gt;else if(Re[Gt*2+1]<At)st=Gt+1;else{Nt=Re[Gt*2+2];break}}var Sn=Nt?Nt.indexOf("overlay "):-1;return Sn<0?Nt:Sn==0?null:Nt.slice(0,Sn-1)},getModeAt:function(Me){var Re=this.doc.mode;return Re.innerMode?ie.innerMode(Re,this.getTokenAt(Me).state).mode:Re},getHelper:function(Me,Re){return this.getHelpers(Me,Re)[0]},getHelpers:function(Me,Re){var st=[];if(!Ne.hasOwnProperty(Re))return st;var wt=Ne[Re],At=this.getModeAt(Me);if(typeof At[Re]=="string")wt[At[Re]]&&st.push(wt[At[Re]]);else if(At[Re])for(var Nt=0;Nt<At[Re].length;Nt++){var Gt=wt[At[Re][Nt]];Gt&&st.push(Gt)}else At.helperType&&wt[At.helperType]?st.push(wt[At.helperType]):wt[At.name]&&st.push(wt[At.name]);for(var Sn=0;Sn<wt._global.length;Sn++){var Yt=wt._global[Sn];Yt.pred(At,this)&&ft(st,Yt.val)==-1&&st.push(Yt.val)}return st},getStateAfter:function(Me,Re){var st=this.doc;return Me=In(st,Me==null?st.first+st.size-1:Me),Lr(this,Me+1,Re).state},cursorCoords:function(Me,Re){var st,wt=this.doc.sel.primary();return Me==null?st=wt.head:typeof Me=="object"?st=gn(this.doc,Me):st=Me?wt.from():wt.to(),Ta(this,st,Re||"page")},charCoords:function(Me,Re){return _l(this,gn(this.doc,Me),Re||"page")},coordsChar:function(Me,Re){return Me=zu(this,Me,Re||"page"),$c(this,Me.left,Me.top)},lineAtHeight:function(Me,Re){return Me=zu(this,{top:Me,left:0},Re||"page").top,jn(this.doc,Me+this.display.viewOffset)},heightAtLine:function(Me,Re,st){var wt=!1,At;if(typeof Me=="number"){var Nt=this.doc.first+this.doc.size-1;Me<this.doc.first?Me=this.doc.first:Me>Nt&&(Me=Nt,wt=!0),At=pn(this.doc,Me)}else At=Me;return Ra(this,At,{top:0,left:0},Re||"page",st||wt).top+(wt?this.doc.height-po(At):0)},defaultTextHeight:function(){return Gu(this.display)},defaultCharWidth:function(){return ic(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(Me,Re,st,wt,At){var Nt=this.display;Me=Ta(this,gn(this.doc,Me));var Gt=Me.bottom,Sn=Me.left;if(Re.style.position="absolute",Re.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Re),Nt.sizer.appendChild(Re),wt=="over")Gt=Me.top;else if(wt=="above"||wt=="near"){var Yt=Math.max(Nt.wrapper.clientHeight,this.doc.height),Un=Math.max(Nt.sizer.clientWidth,Nt.lineSpace.clientWidth);(wt=="above"||Me.bottom+Re.offsetHeight>Yt)&&Me.top>Re.offsetHeight?Gt=Me.top-Re.offsetHeight:Me.bottom+Re.offsetHeight<=Yt&&(Gt=Me.bottom),Sn+Re.offsetWidth>Un&&(Sn=Un-Re.offsetWidth)}Re.style.top=Gt+"px",Re.style.left=Re.style.right="",At=="right"?(Sn=Nt.sizer.clientWidth-Re.offsetWidth,Re.style.right="0px"):(At=="left"?Sn=0:At=="middle"&&(Sn=(Nt.sizer.clientWidth-Re.offsetWidth)/2),Re.style.left=Sn+"px"),st&&$h(this,{left:Sn,top:Gt,right:Sn+Re.offsetWidth,bottom:Gt+Re.offsetHeight})},triggerOnKeyDown:Wn(Zp),triggerOnKeyPress:Wn(sc),triggerOnKeyUp:Xp,triggerOnMouseDown:Wn(lc),execCommand:function(Me){if(js.hasOwnProperty(Me))return js[Me].call(null,this)},triggerElectric:Wn(function(Me){rg(this,Me)}),findPosH:function(Me,Re,st,wt){var At=1;Re<0&&(At=-1,Re=-Re);for(var Nt=gn(this.doc,Me),Gt=0;Gt<Re&&(Nt=vf(this.doc,Nt,At,st,wt),!Nt.hitSide);++Gt);return Nt},moveH:Wn(function(Me,Re){var st=this;this.extendSelectionsBy(function(wt){return st.display.shift||st.doc.extend||wt.empty()?vf(st.doc,wt.head,Me,Re,st.options.rtlMoveVisually):Me<0?wt.from():wt.to()},mt)}),deleteH:Wn(function(Me,Re){var st=this.doc.sel,wt=this.doc;st.somethingSelected()?wt.replaceSelection("",null,"+delete"):il(this,function(At){var Nt=vf(wt,At.head,Me,Re,!1);return Me<0?{from:Nt,to:At.head}:{from:At.head,to:Nt}})}),findPosV:function(Me,Re,st,wt){var At=1,Nt=wt;Re<0&&(At=-1,Re=-Re);for(var Gt=gn(this.doc,Me),Sn=0;Sn<Re;++Sn){var Yt=Ta(this,Gt,"div");if(Nt==null?Nt=Yt.left:Yt.left=Nt,Gt=wh(this,Yt,At,st),Gt.hitSide)break}return Gt},moveV:Wn(function(Me,Re){var st=this,wt=this.doc,At=[],Nt=!this.display.shift&&!wt.extend&&wt.sel.somethingSelected();if(wt.extendSelectionsBy(function(Sn){if(Nt)return Me<0?Sn.from():Sn.to();var Yt=Ta(st,Sn.head,"div");Sn.goalColumn!=null&&(Yt.left=Sn.goalColumn),At.push(Yt.left);var Un=wh(st,Yt,Me,Re);return Re=="page"&&Sn==wt.sel.primary()&&Ed(st,_l(st,Un,"div").top-Yt.top),Un},mt),At.length)for(var Gt=0;Gt<wt.sel.ranges.length;Gt++)wt.sel.ranges[Gt].goalColumn=At[Gt]}),findWordAt:function(Me){var Re=this.doc,st=pn(Re,Me.line).text,wt=Me.ch,At=Me.ch;if(st){var Nt=this.getHelper(Me,"wordChars");(Me.sticky=="before"||At==st.length)&&wt?--wt:++At;for(var Gt=st.charAt(wt),Sn=Ze(Gt,Nt)?function(Yt){return Ze(Yt,Nt)}:/\s/.test(Gt)?function(Yt){return/\s/.test(Yt)}:function(Yt){return!/\s/.test(Yt)&&!Ze(Yt)};wt>0&&Sn(st.charAt(wt-1));)--wt;for(;At<st.length&&Sn(st.charAt(At));)++At}return new ni(nn(Me.line,wt),nn(Me.line,At))},toggleOverwrite:function(Me){Me!=null&&Me==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ye(this.display.cursorDiv,"CodeMirror-overwrite"):Ie(this.display.cursorDiv,"CodeMirror-overwrite"),kt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ze()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Wn(function(Me,Re){Vc(this,Me,Re)}),getScrollInfo:function(){var Me=this.display.scroller;return{left:Me.scrollLeft,top:Me.scrollTop,height:Me.scrollHeight-_s(this)-this.display.barHeight,width:Me.scrollWidth-_s(this)-this.display.barWidth,clientHeight:Hc(this),clientWidth:hl(this)}},scrollIntoView:Wn(function(Me,Re){Me==null?(Me={from:this.doc.sel.primary().head,to:null},Re==null&&(Re=this.options.cursorScrollMargin)):typeof Me=="number"?Me={from:nn(Me,0),to:null}:Me.from==null&&(Me={from:Me,to:null}),Me.to||(Me.to=Me.from),Me.margin=Re||0,Me.from.line!=null?Uo(this,Me):sf(this,Me.from,Me.to,Me.margin)}),setSize:Wn(function(Me,Re){var st=this,wt=function(Nt){return typeof Nt=="number"||/^\d+$/.test(String(Nt))?Nt+"px":Nt};Me!=null&&(this.display.wrapper.style.width=wt(Me)),Re!=null&&(this.display.wrapper.style.height=wt(Re)),this.options.lineWrapping&&Xa(this);var At=this.display.viewFrom;this.doc.iter(At,this.display.viewTo,function(Nt){if(Nt.widgets){for(var Gt=0;Gt<Nt.widgets.length;Gt++)if(Nt.widgets[Gt].noHScroll){yo(st,At,"widget");break}}++At}),this.curOp.forceUpdate=!0,kt(this,"refresh",this)}),operation:function(Me){return fn(this,Me)},startOperation:function(){return dl(this)},endOperation:function(){return bc(this)},refresh:Wn(function(){var Me=this.display.cachedTextHeight;ga(this),this.curOp.forceUpdate=!0,Ba(this),Vc(this,this.doc.scrollLeft,this.doc.scrollTop),li(this.display),(Me==null||Math.abs(Me-Gu(this.display))>.5||this.options.lineWrapping)&&zi(this),kt(this,"refresh",this)}),swapDoc:Wn(function(Me){var Re=this.doc;return Re.cm=null,this.state.selectingText&&this.state.selectingText(),Xi(this,Me),Ba(this),this.display.input.reset(),Vc(this,Me.scrollLeft,Me.scrollTop),this.curOp.forceScroll=!0,kr(this,"swapDoc",this,Re),Re}),phrase:function(Me){var Re=this.options.phrases;return Re&&Object.prototype.hasOwnProperty.call(Re,Me)?Re[Me]:Me},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}},Mn(ie),ie.registerHelper=function(Me,Re,st){Ne.hasOwnProperty(Me)||(Ne[Me]=ie[Me]={_global:[]}),Ne[Me][Re]=st},ie.registerGlobalHelper=function(Me,Re,st,wt){ie.registerHelper(Me,Re,wt),Ne[Me]._global.push({pred:st,val:wt})}}function vf(ie,de,Ne,Me,Re){var st=de,wt=Ne,At=pn(ie,de.line),Nt=Re&&ie.direction=="rtl"?-Ne:Ne;function Gt(){var Ci=de.line+Nt;return Ci<ie.first||Ci>=ie.first+ie.size?!1:(de=new nn(Ci,de.ch,de.sticky),At=pn(ie,Ci))}function Sn(Ci){var yi;if(Me=="codepoint"){var Bi=At.text.charCodeAt(de.ch+(Me>0?0:-1));isNaN(Bi)?yi=null:yi=new nn(de.line,Math.max(0,Math.min(At.text.length,de.ch+Ne*(Bi>=55296&&Bi<56320?2:1))),-Ne)}else Re?yi=Ea(ie.cm,At,de,Ne):yi=us(At,de,Ne);if(yi==null)if(!Ci&&Gt())de=qo(Re,ie.cm,At,de.line,Nt);else return!1;else de=yi;return!0}if(Me=="char"||Me=="codepoint")Sn();else if(Me=="column")Sn(!0);else if(Me=="word"||Me=="group")for(var Yt=null,Un=Me=="group",zn=ie.cm&&ie.cm.getHelper(de,"wordChars"),yr=!0;!(Ne<0&&!Sn(!yr));yr=!1){var Pr=At.text.charAt(de.ch)||`
|
|
|
`,Dr=Ze(Pr,zn)?"w":Un&&Pr==`
|
|
|
`?"n":!Un||/\s/.test(Pr)?null:"p";if(Un&&!yr&&!Dr&&(Dr="s"),Yt&&Yt!=Dr){Ne<0&&(Ne=1,Sn(),de.sticky="after");break}if(Dr&&(Yt=Dr),Ne>0&&!Sn(!yr))break}var ri=tu(ie,de,st,wt,!0);return an(st,ri)&&(ri.hitSide=!0),ri}function wh(ie,de,Ne,Me){var Re=ie.doc,st=de.left,wt;if(Me=="page"){var At=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Nt=Math.max(At-.5*Gu(ie.display),3);wt=(Ne>0?de.bottom:de.top)+Ne*Nt}else Me=="line"&&(wt=Ne>0?de.bottom+3:de.top-3);for(var Gt;Gt=$c(ie,st,wt),!!Gt.outside;){if(Ne<0?wt<=0:wt>=Re.height){Gt.hitSide=!0;break}wt+=Ne*5}return Gt}var Na=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ot,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Na.prototype.init=function(ie){var de=this,Ne=this,Me=Ne.cm,Re=Ne.div=ie.lineDiv;og(Re,Me.options.spellcheck,Me.options.autocorrect,Me.options.autocapitalize);function st(At){for(var Nt=At.target;Nt;Nt=Nt.parentNode){if(Nt==Re)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Nt.className))break}return!1}Wt(Re,"paste",function(At){!st(At)||Xt(Me,At)||ng(At,Me)||me<=11&&setTimeout(Hn(Me,function(){return de.updateFromDOM()}),20)}),Wt(Re,"compositionstart",function(At){de.composing={data:At.data,done:!1}}),Wt(Re,"compositionupdate",function(At){de.composing||(de.composing={data:At.data,done:!1})}),Wt(Re,"compositionend",function(At){de.composing&&(At.data!=de.composing.data&&de.readFromDOMSoon(),de.composing.done=!0)}),Wt(Re,"touchstart",function(){return Ne.forceCompositionEnd()}),Wt(Re,"input",function(){de.composing||de.readFromDOMSoon()});function wt(At){if(!(!st(At)||Xt(Me,At))){if(Me.somethingSelected())Qh({lineWise:!1,text:Me.getSelections()}),At.type=="cut"&&Me.replaceSelection("",null,"cut");else if(Me.options.lineWiseCopyCut){var Nt=ig(Me);Qh({lineWise:!0,text:Nt.text}),At.type=="cut"&&Me.operation(function(){Me.setSelections(Nt.ranges,0,pt),Me.replaceSelection("",null,"cut")})}else return;if(At.clipboardData){At.clipboardData.clearData();var Gt=Kl.text.join(`
|
|
|
`);if(At.clipboardData.setData("Text",Gt),At.clipboardData.getData("Text")==Gt){At.preventDefault();return}}var Sn=ag(),Yt=Sn.firstChild;Me.display.lineSpace.insertBefore(Sn,Me.display.lineSpace.firstChild),Yt.value=Kl.text.join(`
|
|
|
`);var Un=document.activeElement;lt(Yt),setTimeout(function(){Me.display.lineSpace.removeChild(Sn),Un.focus(),Un==Re&&Ne.showPrimarySelection()},50)}}Wt(Re,"copy",wt),Wt(Re,"cut",wt)},Na.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},Na.prototype.prepareSelection=function(){var ie=Kc(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},Na.prototype.showSelection=function(ie,de){!ie||!this.cm.display.view.length||((ie.focus||de)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},Na.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Na.prototype.showPrimarySelection=function(){var ie=this.getSelection(),de=this.cm,Ne=de.doc.sel.primary(),Me=Ne.from(),Re=Ne.to();if(de.display.viewTo==de.display.viewFrom||Me.line>=de.display.viewTo||Re.line<de.display.viewFrom){ie.removeAllRanges();return}var st=yf(de,ie.anchorNode,ie.anchorOffset),wt=yf(de,ie.focusNode,ie.focusOffset);if(!(st&&!st.bad&&wt&&!wt.bad&&On(xn(st,wt),Me)==0&&On(Ln(st,wt),Re)==0)){var At=de.display.view,Nt=Me.line>=de.display.viewFrom&&ip(de,Me)||{node:At[0].measure.map[2],offset:0},Gt=Re.line<de.display.viewTo&&ip(de,Re);if(!Gt){var Sn=At[At.length-1].measure,Yt=Sn.maps?Sn.maps[Sn.maps.length-1]:Sn.map;Gt={node:Yt[Yt.length-1],offset:Yt[Yt.length-2]-Yt[Yt.length-3]}}if(!Nt||!Gt){ie.removeAllRanges();return}var Un=ie.rangeCount&&ie.getRangeAt(0),zn;try{zn=_e(Nt.node,Nt.offset,Gt.offset,Gt.node)}catch(yr){}zn&&(!tt&&de.state.focused?(ie.collapse(Nt.node,Nt.offset),zn.collapsed||(ie.removeAllRanges(),ie.addRange(zn))):(ie.removeAllRanges(),ie.addRange(zn)),Un&&ie.anchorNode==null?ie.addRange(Un):tt&&this.startGracePeriod()),this.rememberSelection()}},Na.prototype.startGracePeriod=function(){var ie=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){ie.gracePeriod=!1,ie.selectionChanged()&&ie.cm.operation(function(){return ie.cm.curOp.selectionChanged=!0})},20)},Na.prototype.showMultipleSelections=function(ie){Ae(this.cm.display.cursorDiv,ie.cursors),Ae(this.cm.display.selectionDiv,ie.selection)},Na.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},Na.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var de=ie.getRangeAt(0).commonAncestorContainer;return qe(this.div,de)},Na.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Na.prototype.blur=function(){this.div.blur()},Na.prototype.getField=function(){return this.div},Na.prototype.supportsTouch=function(){return!0},Na.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():fn(this.cm,function(){return ie.cm.curOp.selectionChanged=!0});function de(){ie.cm.state.focused&&(ie.pollSelection(),ie.polling.set(ie.cm.options.pollInterval,de))}this.polling.set(this.cm.options.pollInterval,de)},Na.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},Na.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),de=this.cm;if(z&&Le&&this.cm.display.gutterSpecs.length&&sg(ie.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var Ne=yf(de,ie.anchorNode,ie.anchorOffset),Me=yf(de,ie.focusNode,ie.focusOffset);Ne&&Me&&fn(de,function(){ha(de.doc,mo(Ne,Me),pt),(Ne.bad||Me.bad)&&(de.curOp.selectionChanged=!0)})}}},Na.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,de=ie.display,Ne=ie.doc.sel.primary(),Me=Ne.from(),Re=Ne.to();if(Me.ch==0&&Me.line>ie.firstLine()&&(Me=nn(Me.line-1,pn(ie.doc,Me.line-1).length)),Re.ch==pn(ie.doc,Re.line).text.length&&Re.line<ie.lastLine()&&(Re=nn(Re.line+1,0)),Me.line<de.viewFrom||Re.line>de.viewTo-1)return!1;var st,wt,At;Me.line==de.viewFrom||(st=zs(ie,Me.line))==0?(wt=Zt(de.view[0].line),At=de.view[0].node):(wt=Zt(de.view[st].line),At=de.view[st-1].node.nextSibling);var Nt=zs(ie,Re.line),Gt,Sn;if(Nt==de.view.length-1?(Gt=de.viewTo-1,Sn=de.lineDiv.lastChild):(Gt=Zt(de.view[Nt+1].line)-1,Sn=de.view[Nt+1].node.previousSibling),!At)return!1;for(var Yt=ie.doc.splitLines(_d(ie,At,Sn,wt,Gt)),Un=yn(ie.doc,nn(wt,0),nn(Gt,pn(ie.doc,Gt).text.length));Yt.length>1&&Un.length>1;)if(St(Yt)==St(Un))Yt.pop(),Un.pop(),Gt--;else if(Yt[0]==Un[0])Yt.shift(),Un.shift(),wt++;else break;for(var zn=0,yr=0,Pr=Yt[0],Dr=Un[0],ri=Math.min(Pr.length,Dr.length);zn<ri&&Pr.charCodeAt(zn)==Dr.charCodeAt(zn);)++zn;for(var Ci=St(Yt),yi=St(Un),Bi=Math.min(Ci.length-(Yt.length==1?zn:0),yi.length-(Un.length==1?zn:0));yr<Bi&&Ci.charCodeAt(Ci.length-yr-1)==yi.charCodeAt(yi.length-yr-1);)++yr;if(Yt.length==1&&Un.length==1&&wt==Me.line)for(;zn&&zn>Me.ch&&Ci.charCodeAt(Ci.length-yr-1)==yi.charCodeAt(yi.length-yr-1);)zn--,yr++;Yt[Yt.length-1]=Ci.slice(0,Ci.length-yr).replace(/^\u200b+/,""),Yt[0]=Yt[0].slice(zn).replace(/\u200b+$/,"");var uo=nn(wt,zn),mi=nn(Gt,Un.length?St(Un).length-yr:0);if(Yt.length>1||Yt[0]||On(uo,mi))return Ku(ie.doc,Yt,uo,mi,"+input"),!0},Na.prototype.ensurePolled=function(){this.forceCompositionEnd()},Na.prototype.reset=function(){this.forceCompositionEnd()},Na.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Na.prototype.readFromDOMSoon=function(){var ie=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(ie.readDOMTimeout=null,ie.composing)if(ie.composing.done)ie.composing=null;else return;ie.updateFromDOM()},80))},Na.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&fn(this.cm,function(){return ga(ie.cm)})},Na.prototype.setUneditable=function(ie){ie.contentEditable="false"},Na.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||Hn(this.cm,mf)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},Na.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},Na.prototype.onContextMenu=function(){},Na.prototype.resetPosition=function(){},Na.prototype.needsContentAttribute=!0;function ip(ie,de){var Ne=vc(ie,de.line);if(!Ne||Ne.hidden)return null;var Me=pn(ie.doc,de.line),Re=Gc(Ne,Me,de.line),st=qt(Me,ie.doc.direction),wt="left";if(st){var At=ht(st,de.ch);wt=At%2?"right":"left"}var Nt=Uc(Re.map,de.ch,wt);return Nt.offset=Nt.collapse=="right"?Nt.end:Nt.start,Nt}function sg(ie){for(var de=ie;de;de=de.parentNode)if(/CodeMirror-gutter-wrapper/.test(de.className))return!0;return!1}function Rd(ie,de){return de&&(ie.bad=!0),ie}function _d(ie,de,Ne,Me,Re){var st="",wt=!1,At=ie.doc.lineSeparator(),Nt=!1;function Gt(zn){return function(yr){return yr.id==zn}}function Sn(){wt&&(st+=At,Nt&&(st+=At),wt=Nt=!1)}function Yt(zn){zn&&(Sn(),st+=zn)}function Un(zn){if(zn.nodeType==1){var yr=zn.getAttribute("cm-text");if(yr){Yt(yr);return}var Pr=zn.getAttribute("cm-marker"),Dr;if(Pr){var ri=ie.findMarks(nn(Me,0),nn(Re+1,0),Gt(+Pr));ri.length&&(Dr=ri[0].find(0))&&Yt(yn(ie.doc,Dr.from,Dr.to).join(At));return}if(zn.getAttribute("contenteditable")=="false")return;var Ci=/^(pre|div|p|li|table|br)$/i.test(zn.nodeName);if(!/^br$/i.test(zn.nodeName)&&zn.textContent.length==0)return;Ci&&Sn();for(var yi=0;yi<zn.childNodes.length;yi++)Un(zn.childNodes[yi]);/^(pre|p)$/i.test(zn.nodeName)&&(Nt=!0),Ci&&(wt=!0)}else zn.nodeType==3&&Yt(zn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Un(de),de!=Ne;)de=de.nextSibling,Nt=!1;return st}function yf(ie,de,Ne){var Me;if(de==ie.display.lineDiv){if(Me=ie.display.lineDiv.childNodes[Ne],!Me)return Rd(ie.clipPos(nn(ie.display.viewTo-1)),!0);de=null,Ne=0}else for(Me=de;;Me=Me.parentNode){if(!Me||Me==ie.display.lineDiv)return null;if(Me.parentNode&&Me.parentNode==ie.display.lineDiv)break}for(var Re=0;Re<ie.display.view.length;Re++){var st=ie.display.view[Re];if(st.node==Me)return hm(st,de,Ne)}}function hm(ie,de,Ne){var Me=ie.text.firstChild,Re=!1;if(!de||!qe(Me,de))return Rd(nn(Zt(ie.line),0),!0);if(de==Me&&(Re=!0,de=Me.childNodes[Ne],Ne=0,!de)){var st=ie.rest?St(ie.rest):ie.line;return Rd(nn(Zt(st),st.text.length),Re)}var wt=de.nodeType==3?de:null,At=de;for(!wt&&de.childNodes.length==1&&de.firstChild.nodeType==3&&(wt=de.firstChild,Ne&&(Ne=wt.nodeValue.length));At.parentNode!=Me;)At=At.parentNode;var Nt=ie.measure,Gt=Nt.maps;function Sn(Dr,ri,Ci){for(var yi=-1;yi<(Gt?Gt.length:0);yi++)for(var Bi=yi<0?Nt.map:Gt[yi],uo=0;uo<Bi.length;uo+=3){var mi=Bi[uo+2];if(mi==Dr||mi==ri){var Eo=Zt(yi<0?ie.line:ie.rest[yi]),Ya=Bi[uo]+Ci;return(Ci<0||mi!=Dr)&&(Ya=Bi[uo+(Ci?1:0)]),nn(Eo,Ya)}}}var Yt=Sn(wt,At,Ne);if(Yt)return Rd(Yt,Re);for(var Un=At.nextSibling,zn=wt?wt.nodeValue.length-Ne:0;Un;Un=Un.nextSibling){if(Yt=Sn(Un,Un.firstChild,0),Yt)return Rd(nn(Yt.line,Yt.ch-zn),Re);zn+=Un.textContent.length}for(var yr=At.previousSibling,Pr=Ne;yr;yr=yr.previousSibling){if(Yt=Sn(yr,yr.firstChild,-1),Yt)return Rd(nn(Yt.line,Yt.ch+Pr),Re);Pr+=yr.textContent.length}}var Ls=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new ot,this.hasSelection=!1,this.composing=null};Ls.prototype.init=function(ie){var de=this,Ne=this,Me=this.cm;this.createField(ie);var Re=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),fe&&(Re.style.width="0px"),Wt(Re,"input",function(){Fe&&me>=9&&de.hasSelection&&(de.hasSelection=null),Ne.poll()}),Wt(Re,"paste",function(wt){Xt(Me,wt)||ng(wt,Me)||(Me.state.pasteIncoming=+new Date,Ne.fastPoll())});function st(wt){if(!Xt(Me,wt)){if(Me.somethingSelected())Qh({lineWise:!1,text:Me.getSelections()});else if(Me.options.lineWiseCopyCut){var At=ig(Me);Qh({lineWise:!0,text:At.text}),wt.type=="cut"?Me.setSelections(At.ranges,null,pt):(Ne.prevInput="",Re.value=At.text.join(`
|
|
|
`),lt(Re))}else return;wt.type=="cut"&&(Me.state.cutIncoming=+new Date)}}Wt(Re,"cut",st),Wt(Re,"copy",st),Wt(ie.scroller,"paste",function(wt){if(!(tl(ie,wt)||Xt(Me,wt))){if(!Re.dispatchEvent){Me.state.pasteIncoming=+new Date,Ne.focus();return}var At=new Event("paste");At.clipboardData=wt.clipboardData,Re.dispatchEvent(At)}}),Wt(ie.lineSpace,"selectstart",function(wt){tl(ie,wt)||Rn(wt)}),Wt(Re,"compositionstart",function(){var wt=Me.getCursor("from");Ne.composing&&Ne.composing.range.clear(),Ne.composing={start:wt,range:Me.markText(wt,Me.getCursor("to"),{className:"CodeMirror-composing"})}}),Wt(Re,"compositionend",function(){Ne.composing&&(Ne.poll(),Ne.composing.range.clear(),Ne.composing=null)})},Ls.prototype.createField=function(ie){this.wrapper=ag(),this.textarea=this.wrapper.firstChild},Ls.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},Ls.prototype.prepareSelection=function(){var ie=this.cm,de=ie.display,Ne=ie.doc,Me=Kc(ie);if(ie.options.moveInputWithCursor){var Re=Ta(ie,Ne.sel.primary().head,"div"),st=de.wrapper.getBoundingClientRect(),wt=de.lineDiv.getBoundingClientRect();Me.teTop=Math.max(0,Math.min(de.wrapper.clientHeight-10,Re.top+wt.top-st.top)),Me.teLeft=Math.max(0,Math.min(de.wrapper.clientWidth-10,Re.left+wt.left-st.left))}return Me},Ls.prototype.showSelection=function(ie){var de=this.cm,Ne=de.display;Ae(Ne.cursorDiv,ie.cursors),Ae(Ne.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},Ls.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var de=this.cm;if(de.somethingSelected()){this.prevInput="";var Ne=de.getSelection();this.textarea.value=Ne,de.state.focused&<(this.textarea),Fe&&me>=9&&(this.hasSelection=Ne)}else ie||(this.prevInput=this.textarea.value="",Fe&&me>=9&&(this.hasSelection=null))}},Ls.prototype.getField=function(){return this.textarea},Ls.prototype.supportsTouch=function(){return!1},Ls.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ee||ze()!=this.textarea))try{this.textarea.focus()}catch(ie){}},Ls.prototype.blur=function(){this.textarea.blur()},Ls.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ls.prototype.receivedFocus=function(){this.slowPoll()},Ls.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},Ls.prototype.fastPoll=function(){var ie=!1,de=this;de.pollingFast=!0;function Ne(){var Me=de.poll();!Me&&!ie?(ie=!0,de.polling.set(60,Ne)):(de.pollingFast=!1,de.slowPoll())}de.polling.set(20,Ne)},Ls.prototype.poll=function(){var ie=this,de=this.cm,Ne=this.textarea,Me=this.prevInput;if(this.contextMenuPending||!de.state.focused||it(Ne)&&!Me&&!this.composing||de.isReadOnly()||de.options.disableInput||de.state.keySeq)return!1;var Re=Ne.value;if(Re==Me&&!de.somethingSelected())return!1;if(Fe&&me>=9&&this.hasSelection===Re||ae&&/[\uf700-\uf7ff]/.test(Re))return de.display.input.reset(),!1;if(de.doc.sel==de.display.selForContextMenu){var st=Re.charCodeAt(0);if(st==8203&&!Me&&(Me="\u200B"),st==8666)return this.reset(),this.cm.execCommand("undo")}for(var wt=0,At=Math.min(Me.length,Re.length);wt<At&&Me.charCodeAt(wt)==Re.charCodeAt(wt);)++wt;return fn(de,function(){mf(de,Re.slice(wt),Me.length-wt,null,ie.composing?"*compose":null),Re.length>1e3||Re.indexOf(`
|
|
|
`)>-1?Ne.value=ie.prevInput="":ie.prevInput=Re,ie.composing&&(ie.composing.range.clear(),ie.composing.range=de.markText(ie.composing.start,de.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ls.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ls.prototype.onKeyPress=function(){Fe&&me>=9&&(this.hasSelection=null),this.fastPoll()},Ls.prototype.onContextMenu=function(ie){var de=this,Ne=de.cm,Me=Ne.display,Re=de.textarea;de.contextMenuPending&&de.contextMenuPending();var st=nl(Ne,ie),wt=Me.scroller.scrollTop;if(!st||Se)return;var At=Ne.options.resetSelectionOnContextMenu;At&&Ne.doc.sel.contains(st)==-1&&Hn(Ne,ha)(Ne.doc,mo(st),pt);var Nt=Re.style.cssText,Gt=de.wrapper.style.cssText,Sn=de.wrapper.offsetParent.getBoundingClientRect();de.wrapper.style.cssText="position: static",Re.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(ie.clientY-Sn.top-5)+"px; left: "+(ie.clientX-Sn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(Fe?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Yt;ce&&(Yt=window.scrollY),Me.input.focus(),ce&&window.scrollTo(null,Yt),Me.input.reset(),Ne.somethingSelected()||(Re.value=de.prevInput=" "),de.contextMenuPending=zn,Me.selForContextMenu=Ne.doc.sel,clearTimeout(Me.detectingSelectAll);function Un(){if(Re.selectionStart!=null){var Pr=Ne.somethingSelected(),Dr="\u200B"+(Pr?Re.value:"");Re.value="\u21DA",Re.value=Dr,de.prevInput=Pr?"":"\u200B",Re.selectionStart=1,Re.selectionEnd=Dr.length,Me.selForContextMenu=Ne.doc.sel}}function zn(){if(de.contextMenuPending==zn&&(de.contextMenuPending=!1,de.wrapper.style.cssText=Gt,Re.style.cssText=Nt,Fe&&me<9&&Me.scrollbars.setScrollTop(Me.scroller.scrollTop=wt),Re.selectionStart!=null)){(!Fe||Fe&&me<9)&&Un();var Pr=0,Dr=function(){Me.selForContextMenu==Ne.doc.sel&&Re.selectionStart==0&&Re.selectionEnd>0&&de.prevInput=="\u200B"?Hn(Ne,ta)(Ne):Pr++<10?Me.detectingSelectAll=setTimeout(Dr,500):(Me.selForContextMenu=null,Me.input.reset())};Me.detectingSelectAll=setTimeout(Dr,200)}}if(Fe&&me>=9&&Un(),Ce){Cr(ie);var yr=function(){ln(window,"mouseup",yr),setTimeout(zn,20)};Wt(window,"mouseup",yr)}else setTimeout(zn,50)},Ls.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},Ls.prototype.setUneditable=function(){},Ls.prototype.needsContentAttribute=!1;function dm(ie,de){if(de=de?vt(de):{},de.value=ie.value,!de.tabindex&&ie.tabIndex&&(de.tabindex=ie.tabIndex),!de.placeholder&&ie.placeholder&&(de.placeholder=ie.placeholder),de.autofocus==null){var Ne=ze();de.autofocus=Ne==ie||ie.getAttribute("autofocus")!=null&&Ne==document.body}function Me(){ie.value=At.getValue()}var Re;if(ie.form&&(Wt(ie.form,"submit",Me),!de.leaveSubmitMethodAlone)){var st=ie.form;Re=st.submit;try{var wt=st.submit=function(){Me(),st.submit=Re,st.submit(),st.submit=wt}}catch(Nt){}}de.finishInit=function(Nt){Nt.save=Me,Nt.getTextArea=function(){return ie},Nt.toTextArea=function(){Nt.toTextArea=isNaN,Me(),ie.parentNode.removeChild(Nt.getWrapperElement()),ie.style.display="",ie.form&&(ln(ie.form,"submit",Me),!de.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=Re))}},ie.style.display="none";var At=na(function(Nt){return ie.parentNode.insertBefore(Nt,ie.nextSibling)},de);return At}function zd(ie){ie.off=ln,ie.on=Wt,ie.wheelEventPixels=Fi,ie.Doc=Ms,ie.splitLines=Qn,ie.countColumn=Je,ie.findColumn=Mt,ie.isWordChar=Ve,ie.Pass=yt,ie.signal=kt,ie.Line=ea,ie.changeEnd=Yo,ie.scrollbarModel=lf,ie.Pos=nn,ie.cmpPos=On,ie.modes=Vr,ie.mimeModes=Br,ie.resolveMode=un,ie.getMode=on,ie.modeExtensions=Jt,ie.extendMode=jt,ie.copyState=Pn,ie.startState=Kt,ie.innerMode=Cn,ie.commands=js,ie.keyMap=gl,ie.keyName=jd,ie.isModifierKey=yh,ie.lookupKey=$l,ie.normalizeKeyMap=Od,ie.StringStream=Dt,ie.SharedTextMarker=Zu,ie.TextMarker=cn,ie.LineWidget=vs,ie.e_preventDefault=Rn,ie.e_stopPropagation=ir,ie.e_stop=Cr,ie.addClass=Ye,ie.contains=qe,ie.rmClass=Ie,ie.keyNames=Lu}um(na),xh(na);var Qc="iter insert remove copy getEditor constructor".split(" ");for(var Sf in Ms.prototype)Ms.prototype.hasOwnProperty(Sf)&&ft(Qc,Sf)<0&&(na.prototype[Sf]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(Ms.prototype[Sf]));return Mn(Ms),na.inputStyles={textarea:Ls,contenteditable:Na},na.defineMode=function(ie){!na.defaults.mode&&ie!="null"&&(na.defaults.mode=ie),Xr.apply(this,arguments)},na.defineMIME=hr,na.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),na.defineMIME("text/plain","null"),na.defineExtension=function(ie,de){na.prototype[ie]=de},na.defineDocExtension=function(ie,de){Ms.prototype[ie]=de},na.fromTextArea=dm,zd(na),na.version="5.58.2",na})},25419:function(Gn,vn,Ke){(function(tt){tt(Ke(89780),Ke(15525),Ke(98101))})(function(tt){"use strict";tt.defineMode("markdown",function(Pt,oe){var Ue=tt.getMode(Pt,"text/html"),Fe=Ue.name=="null";function me(Je){if(tt.findModeByName){var ot=tt.findModeByName(Je);ot&&(Je=ot.mime||ot.mimes[0])}var ft=tt.getMode(Pt,Je);return ft.name=="null"?null:ft}oe.highlightFormatting===void 0&&(oe.highlightFormatting=!1),oe.maxBlockquoteDepth===void 0&&(oe.maxBlockquoteDepth=0),oe.taskLists===void 0&&(oe.taskLists=!1),oe.strikethrough===void 0&&(oe.strikethrough=!1),oe.emoji===void 0&&(oe.emoji=!1),oe.fencedCodeBlockHighlighting===void 0&&(oe.fencedCodeBlockHighlighting=!0),oe.fencedCodeBlockDefaultMode===void 0&&(oe.fencedCodeBlockDefaultMode="text/plain"),oe.xml===void 0&&(oe.xml=!0),oe.tokenTypeOverrides===void 0&&(oe.tokenTypeOverrides={});var ce={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 be in ce)ce.hasOwnProperty(be)&&oe.tokenTypeOverrides[be]&&(ce[be]=oe.tokenTypeOverrides[be]);var Le=/^([*\-_])(?:\s*\1){2,}\s*$/,Se=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,ke=/^\[(x| )\](?=\s)/i,ve=oe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,xe=/^ {0,3}(?:\={1,}|-{2,})\s*$/,fe=/^[^#!\[\]*_\\<>` "'(~:]+/,z=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ee=/^\s*\[[^\]]+?\]:.*$/,ae=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,re=" ";function le(Je,ot,ft){return ot.f=ot.inline=ft,ft(Je,ot)}function ue(Je,ot,ft){return ot.f=ot.block=ft,ft(Je,ot)}function pe(Je){return!Je||!/\S/.test(Je.string)}function Ce(Je){if(Je.linkTitle=!1,Je.linkHref=!1,Je.linkText=!1,Je.em=!1,Je.strong=!1,Je.strikethrough=!1,Je.quote=0,Je.indentedCode=!1,Je.f==Ie){var ot=Fe;if(!ot){var ft=tt.innerMode(Ue,Je.htmlState);ot=ft.mode.name=="xml"&&ft.state.tagStart===null&&!ft.state.context&&ft.state.tokenize.isInText}ot&&(Je.f=Be,Je.block=Pe,Je.htmlState=null)}return Je.trailingSpace=0,Je.trailingSpaceNewLine=!1,Je.prevLine=Je.thisLine,Je.thisLine={stream:null},null}function Pe(Je,ot){var ft=Je.column()===ot.indentation,xt=pe(ot.prevLine.stream),yt=ot.indentedCode,pt=ot.prevLine.hr,gt=ot.list!==!1,mt=(ot.listStack[ot.listStack.length-1]||0)+3;ot.indentedCode=!1;var Mt=ot.indentation;if(ot.indentationDiff===null&&(ot.indentationDiff=ot.indentation,gt)){for(ot.list=null;Mt<ot.listStack[ot.listStack.length-1];)ot.listStack.pop(),ot.listStack.length?ot.indentation=ot.listStack[ot.listStack.length-1]:ot.list=!1;ot.list!==!1&&(ot.indentationDiff=Mt-ot.listStack[ot.listStack.length-1])}var Ct=!xt&&!pt&&!ot.prevLine.header&&(!gt||!yt)&&!ot.prevLine.fencedCodeEnd,zt=(ot.list===!1||pt||xt)&&ot.indentation<=mt&&Je.match(Le),St=null;if(ot.indentationDiff>=4&&(yt||ot.prevLine.fencedCodeEnd||ot.prevLine.header||xt))return Je.skipToEnd(),ot.indentedCode=!0,ce.code;if(Je.eatSpace())return null;if(ft&&ot.indentation<=mt&&(St=Je.match(ve))&&St[1].length<=6)return ot.quote=0,ot.header=St[1].length,ot.thisLine.header=!0,oe.highlightFormatting&&(ot.formatting="header"),ot.f=ot.inline,Ae(ot);if(ot.indentation<=mt&&Je.eat(">"))return ot.quote=ft?1:ot.quote+1,oe.highlightFormatting&&(ot.formatting="quote"),Je.eatSpace(),Ae(ot);if(!zt&&!ot.setext&&ft&&ot.indentation<=mt&&(St=Je.match(Se))){var bt=St[1]?"ol":"ul";return ot.indentation=Mt+Je.current().length,ot.list=!0,ot.quote=0,ot.listStack.push(ot.indentation),ot.em=!1,ot.strong=!1,ot.code=!1,ot.strikethrough=!1,oe.taskLists&&Je.match(ke,!1)&&(ot.taskList=!0),ot.f=ot.inline,oe.highlightFormatting&&(ot.formatting=["list","list-"+bt]),Ae(ot)}else{if(ft&&ot.indentation<=mt&&(St=Je.match(z,!0)))return ot.quote=0,ot.fencedEndRE=new RegExp(St[1]+"+ *$"),ot.localMode=oe.fencedCodeBlockHighlighting&&me(St[2]||oe.fencedCodeBlockDefaultMode),ot.localMode&&(ot.localState=tt.startState(ot.localMode)),ot.f=ot.block=Oe,oe.highlightFormatting&&(ot.formatting="code-block"),ot.code=-1,Ae(ot);if(ot.setext||(!Ct||!gt)&&!ot.quote&&ot.list===!1&&!ot.code&&!zt&&!ee.test(Je.string)&&(St=Je.lookAhead(1))&&(St=St.match(xe)))return ot.setext?(ot.header=ot.setext,ot.setext=0,Je.skipToEnd(),oe.highlightFormatting&&(ot.formatting="header")):(ot.header=St[0].charAt(0)=="="?1:2,ot.setext=ot.header),ot.thisLine.header=!0,ot.f=ot.inline,Ae(ot);if(zt)return Je.skipToEnd(),ot.hr=!0,ot.thisLine.hr=!0,ce.hr;if(Je.peek()==="[")return le(Je,ot,et)}return le(Je,ot,ot.inline)}function Ie(Je,ot){var ft=Ue.token(Je,ot.htmlState);if(!Fe){var xt=tt.innerMode(Ue,ot.htmlState);(xt.mode.name=="xml"&&xt.state.tagStart===null&&!xt.state.context&&xt.state.tokenize.isInText||ot.md_inside&&Je.current().indexOf(">")>-1)&&(ot.f=Be,ot.block=Pe,ot.htmlState=null)}return ft}function Oe(Je,ot){var ft=ot.listStack[ot.listStack.length-1]||0,xt=ot.indentation<ft,yt=ft+3;if(ot.fencedEndRE&&ot.indentation<=yt&&(xt||Je.match(ot.fencedEndRE))){oe.highlightFormatting&&(ot.formatting="code-block");var pt;return xt||(pt=Ae(ot)),ot.localMode=ot.localState=null,ot.block=Pe,ot.f=Be,ot.fencedEndRE=null,ot.code=0,ot.thisLine.fencedCodeEnd=!0,xt?ue(Je,ot,ot.block):pt}else return ot.localMode?ot.localMode.token(Je,ot.localState):(Je.skipToEnd(),ce.code)}function Ae(Je){var ot=[];if(Je.formatting){ot.push(ce.formatting),typeof Je.formatting=="string"&&(Je.formatting=[Je.formatting]);for(var ft=0;ft<Je.formatting.length;ft++)ot.push(ce.formatting+"-"+Je.formatting[ft]),Je.formatting[ft]==="header"&&ot.push(ce.formatting+"-"+Je.formatting[ft]+"-"+Je.header),Je.formatting[ft]==="quote"&&(!oe.maxBlockquoteDepth||oe.maxBlockquoteDepth>=Je.quote?ot.push(ce.formatting+"-"+Je.formatting[ft]+"-"+Je.quote):ot.push("error"))}if(Je.taskOpen)return ot.push("meta"),ot.length?ot.join(" "):null;if(Je.taskClosed)return ot.push("property"),ot.length?ot.join(" "):null;if(Je.linkHref?ot.push(ce.linkHref,"url"):(Je.strong&&ot.push(ce.strong),Je.em&&ot.push(ce.em),Je.strikethrough&&ot.push(ce.strikethrough),Je.emoji&&ot.push(ce.emoji),Je.linkText&&ot.push(ce.linkText),Je.code&&ot.push(ce.code),Je.image&&ot.push(ce.image),Je.imageAltText&&ot.push(ce.imageAltText,"link"),Je.imageMarker&&ot.push(ce.imageMarker)),Je.header&&ot.push(ce.header,ce.header+"-"+Je.header),Je.quote&&(ot.push(ce.quote),!oe.maxBlockquoteDepth||oe.maxBlockquoteDepth>=Je.quote?ot.push(ce.quote+"-"+Je.quote):ot.push(ce.quote+"-"+oe.maxBlockquoteDepth)),Je.list!==!1){var xt=(Je.listStack.length-1)%3;xt?xt===1?ot.push(ce.list2):ot.push(ce.list3):ot.push(ce.list1)}return Je.trailingSpaceNewLine?ot.push("trailing-space-new-line"):Je.trailingSpace&&ot.push("trailing-space-"+(Je.trailingSpace%2?"a":"b")),ot.length?ot.join(" "):null}function je(Je,ot){if(Je.match(fe,!0))return Ae(ot)}function Be(Je,ot){var ft=ot.text(Je,ot);if(typeof ft!="undefined")return ft;if(ot.list)return ot.list=null,Ae(ot);if(ot.taskList){var xt=Je.match(ke,!0)[1]===" ";return xt?ot.taskOpen=!0:ot.taskClosed=!0,oe.highlightFormatting&&(ot.formatting="task"),ot.taskList=!1,Ae(ot)}if(ot.taskOpen=!1,ot.taskClosed=!1,ot.header&&Je.match(/^#+$/,!0))return oe.highlightFormatting&&(ot.formatting="header"),Ae(ot);var yt=Je.next();if(ot.linkTitle){ot.linkTitle=!1;var pt=yt;yt==="("&&(pt=")"),pt=(pt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var gt="^\\s*(?:[^"+pt+"\\\\]+|\\\\\\\\|\\\\.)"+pt;if(Je.match(new RegExp(gt),!0))return ce.linkHref}if(yt==="`"){var mt=ot.formatting;oe.highlightFormatting&&(ot.formatting="code"),Je.eatWhile("`");var Mt=Je.current().length;if(ot.code==0&&(!ot.quote||Mt==1))return ot.code=Mt,Ae(ot);if(Mt==ot.code){var Ct=Ae(ot);return ot.code=0,Ct}else return ot.formatting=mt,Ae(ot)}else if(ot.code)return Ae(ot);if(yt==="\\"&&(Je.next(),oe.highlightFormatting)){var zt=Ae(ot),St=ce.formatting+"-escape";return zt?zt+" "+St:St}if(yt==="!"&&Je.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ot.imageMarker=!0,ot.image=!0,oe.highlightFormatting&&(ot.formatting="image"),Ae(ot);if(yt==="["&&ot.imageMarker&&Je.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ot.imageMarker=!1,ot.imageAltText=!0,oe.highlightFormatting&&(ot.formatting="image"),Ae(ot);if(yt==="]"&&ot.imageAltText){oe.highlightFormatting&&(ot.formatting="image");var zt=Ae(ot);return ot.imageAltText=!1,ot.image=!1,ot.inline=ot.f=qe,zt}if(yt==="["&&!ot.image)return ot.linkText&&Je.match(/^.*?\]/)||(ot.linkText=!0,oe.highlightFormatting&&(ot.formatting="link")),Ae(ot);if(yt==="]"&&ot.linkText){oe.highlightFormatting&&(ot.formatting="link");var zt=Ae(ot);return ot.linkText=!1,ot.inline=ot.f=Je.match(/\(.*?\)| ?\[.*?\]/,!1)?qe:Be,zt}if(yt==="<"&&Je.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ot.f=ot.inline=_e,oe.highlightFormatting&&(ot.formatting="link");var zt=Ae(ot);return zt?zt+=" ":zt="",zt+ce.linkInline}if(yt==="<"&&Je.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ot.f=ot.inline=_e,oe.highlightFormatting&&(ot.formatting="link");var zt=Ae(ot);return zt?zt+=" ":zt="",zt+ce.linkEmail}if(oe.xml&&yt==="<"&&Je.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var bt=Je.string.indexOf(">",Je.pos);if(bt!=-1){var at=Je.string.substring(Je.start,bt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(at)&&(ot.md_inside=!0)}return Je.backUp(1),ot.htmlState=tt.startState(Ue),ue(Je,ot,Ie)}if(oe.xml&&yt==="<"&&Je.match(/^\/\w*?>/))return ot.md_inside=!1,"tag";if(yt==="*"||yt==="_"){for(var nt=1,we=Je.pos==1?" ":Je.string.charAt(Je.pos-2);nt<3&&Je.eat(yt);)nt++;var Te=Je.peek()||" ",Ve=!/\s/.test(Te)&&(!ae.test(Te)||/\s/.test(we)||ae.test(we)),Ze=!/\s/.test(we)&&(!ae.test(we)||/\s/.test(Te)||ae.test(Te)),Ee=null,Ge=null;if(nt%2&&(!ot.em&&Ve&&(yt==="*"||!Ze||ae.test(we))?Ee=!0:ot.em==yt&&Ze&&(yt==="*"||!Ve||ae.test(Te))&&(Ee=!1)),nt>1&&(!ot.strong&&Ve&&(yt==="*"||!Ze||ae.test(we))?Ge=!0:ot.strong==yt&&Ze&&(yt==="*"||!Ve||ae.test(Te))&&(Ge=!1)),Ge!=null||Ee!=null){oe.highlightFormatting&&(ot.formatting=Ee==null?"strong":Ge==null?"em":"strong em"),Ee===!0&&(ot.em=yt),Ge===!0&&(ot.strong=yt);var Ct=Ae(ot);return Ee===!1&&(ot.em=!1),Ge===!1&&(ot.strong=!1),Ct}}else if(yt===" "&&(Je.eat("*")||Je.eat("_"))){if(Je.peek()===" ")return Ae(ot);Je.backUp(1)}if(oe.strikethrough){if(yt==="~"&&Je.eatWhile(yt)){if(ot.strikethrough){oe.highlightFormatting&&(ot.formatting="strikethrough");var Ct=Ae(ot);return ot.strikethrough=!1,Ct}else if(Je.match(/^[^\s]/,!1))return ot.strikethrough=!0,oe.highlightFormatting&&(ot.formatting="strikethrough"),Ae(ot)}else if(yt===" "&&Je.match(/^~~/,!0)){if(Je.peek()===" ")return Ae(ot);Je.backUp(2)}}if(oe.emoji&&yt===":"&&Je.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ot.emoji=!0,oe.highlightFormatting&&(ot.formatting="emoji");var He=Ae(ot);return ot.emoji=!1,He}return yt===" "&&(Je.match(/^ +$/,!1)?ot.trailingSpace++:ot.trailingSpace&&(ot.trailingSpaceNewLine=!0)),Ae(ot)}function _e(Je,ot){var ft=Je.next();if(ft===">"){ot.f=ot.inline=Be,oe.highlightFormatting&&(ot.formatting="link");var xt=Ae(ot);return xt?xt+=" ":xt="",xt+ce.linkInline}return Je.match(/^[^>]+/,!0),ce.linkInline}function qe(Je,ot){if(Je.eatSpace())return null;var ft=Je.next();return ft==="("||ft==="["?(ot.f=ot.inline=Ye(ft==="("?")":"]"),oe.highlightFormatting&&(ot.formatting="link-string"),ot.linkHref=!0,Ae(ot)):"error"}var ze={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ye(Je){return function(ot,ft){var xt=ot.next();if(xt===Je){ft.f=ft.inline=Be,oe.highlightFormatting&&(ft.formatting="link-string");var yt=Ae(ft);return ft.linkHref=!1,yt}return ot.match(ze[Je]),ft.linkHref=!0,Ae(ft)}}function et(Je,ot){return Je.match(/^([^\]\\]|\\.)*\]:/,!1)?(ot.f=lt,Je.next(),oe.highlightFormatting&&(ot.formatting="link"),ot.linkText=!0,Ae(ot)):le(Je,ot,Be)}function lt(Je,ot){if(Je.match(/^\]:/,!0)){ot.f=ot.inline=dt,oe.highlightFormatting&&(ot.formatting="link");var ft=Ae(ot);return ot.linkText=!1,ft}return Je.match(/^([^\]\\]|\\.)+/,!0),ce.linkText}function dt(Je,ot){return Je.eatSpace()?null:(Je.match(/^[^\s]+/,!0),Je.peek()===void 0?ot.linkTitle=!0:Je.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ot.f=ot.inline=Be,ce.linkHref+" url")}var vt={startState:function(){return{f:Pe,prevLine:{stream:null},thisLine:{stream:null},block:Pe,htmlState:null,indentation:0,inline:Be,text:je,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(Je){return{f:Je.f,prevLine:Je.prevLine,thisLine:Je.thisLine,block:Je.block,htmlState:Je.htmlState&&tt.copyState(Ue,Je.htmlState),indentation:Je.indentation,localMode:Je.localMode,localState:Je.localMode?tt.copyState(Je.localMode,Je.localState):null,inline:Je.inline,text:Je.text,formatting:!1,linkText:Je.linkText,linkTitle:Je.linkTitle,linkHref:Je.linkHref,code:Je.code,em:Je.em,strong:Je.strong,strikethrough:Je.strikethrough,emoji:Je.emoji,header:Je.header,setext:Je.setext,hr:Je.hr,taskList:Je.taskList,list:Je.list,listStack:Je.listStack.slice(0),quote:Je.quote,indentedCode:Je.indentedCode,trailingSpace:Je.trailingSpace,trailingSpaceNewLine:Je.trailingSpaceNewLine,md_inside:Je.md_inside,fencedEndRE:Je.fencedEndRE}},token:function(Je,ot){if(ot.formatting=!1,Je!=ot.thisLine.stream){if(ot.header=0,ot.hr=!1,Je.match(/^\s*$/,!0))return Ce(ot),null;if(ot.prevLine=ot.thisLine,ot.thisLine={stream:Je},ot.taskList=!1,ot.trailingSpace=0,ot.trailingSpaceNewLine=!1,!ot.localState&&(ot.f=ot.block,ot.f!=Ie)){var ft=Je.match(/^\s*/,!0)[0].replace(/\t/g,re).length;if(ot.indentation=ft,ot.indentationDiff=null,ft>0)return null}}return ot.f(Je,ot)},innerMode:function(Je){return Je.block==Ie?{state:Je.htmlState,mode:Ue}:Je.localState?{state:Je.localState,mode:Je.localMode}:{state:Je,mode:vt}},indent:function(Je,ot,ft){return Je.block==Ie&&Ue.indent?Ue.indent(Je.htmlState,ot,ft):Je.localState&&Je.localMode.indent?Je.localMode.indent(Je.localState,ot,ft):tt.Pass},blankLine:Ce,getType:Ae,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return vt},"xml"),tt.defineMIME("text/markdown","markdown"),tt.defineMIME("text/x-markdown","markdown")})},98101:function(Gn,vn,Ke){(function(tt){tt(Ke(89780))})(function(tt){"use strict";tt.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 Pt=0;Pt<tt.modeInfo.length;Pt++){var oe=tt.modeInfo[Pt];oe.mimes&&(oe.mime=oe.mimes[0])}tt.findModeByMIME=function(Ue){Ue=Ue.toLowerCase();for(var Fe=0;Fe<tt.modeInfo.length;Fe++){var me=tt.modeInfo[Fe];if(me.mime==Ue)return me;if(me.mimes){for(var ce=0;ce<me.mimes.length;ce++)if(me.mimes[ce]==Ue)return me}}if(/\+xml$/.test(Ue))return tt.findModeByMIME("application/xml");if(/\+json$/.test(Ue))return tt.findModeByMIME("application/json")},tt.findModeByExtension=function(Ue){Ue=Ue.toLowerCase();for(var Fe=0;Fe<tt.modeInfo.length;Fe++){var me=tt.modeInfo[Fe];if(me.ext){for(var ce=0;ce<me.ext.length;ce++)if(me.ext[ce]==Ue)return me}}},tt.findModeByFileName=function(Ue){for(var Fe=0;Fe<tt.modeInfo.length;Fe++){var me=tt.modeInfo[Fe];if(me.file&&me.file.test(Ue))return me}var ce=Ue.lastIndexOf("."),be=ce>-1&&Ue.substring(ce+1,Ue.length);if(be)return tt.findModeByExtension(be)},tt.findModeByName=function(Ue){Ue=Ue.toLowerCase();for(var Fe=0;Fe<tt.modeInfo.length;Fe++){var me=tt.modeInfo[Fe];if(me.name.toLowerCase()==Ue)return me;if(me.alias){for(var ce=0;ce<me.alias.length;ce++)if(me.alias[ce].toLowerCase()==Ue)return me}}}})},67549:function(Gn,vn,Ke){(function(tt){tt(Ke(89780))})(function(tt){"use strict";tt.defineMode("stex",function(Pt,oe){"use strict";function Ue(fe,z){fe.cmdState.push(z)}function Fe(fe){return fe.cmdState.length>0?fe.cmdState[fe.cmdState.length-1]:null}function me(fe){var z=fe.cmdState.pop();z&&z.closeBracket()}function ce(fe){for(var z=fe.cmdState,ee=z.length-1;ee>=0;ee--){var ae=z[ee];if(ae.name!="DEFAULT")return ae}return{styleIdentifier:function(){return null}}}function be(fe,z,ee){return function(){this.name=fe,this.bracketNo=0,this.style=z,this.styles=ee,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Le={};Le.importmodule=be("importmodule","tag",["string","builtin"]),Le.documentclass=be("documentclass","tag",["","atom"]),Le.usepackage=be("usepackage","tag",["atom"]),Le.begin=be("begin","tag",["atom"]),Le.end=be("end","tag",["atom"]),Le.label=be("label","tag",["atom"]),Le.ref=be("ref","tag",["atom"]),Le.eqref=be("eqref","tag",["atom"]),Le.cite=be("cite","tag",["atom"]),Le.bibitem=be("bibitem","tag",["atom"]),Le.Bibitem=be("Bibitem","tag",["atom"]),Le.RBibitem=be("RBibitem","tag",["atom"]),Le.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Se(fe,z){fe.f=z}function ke(fe,z){var ee;if(fe.match(/^\\[a-zA-Z@]+/)){var ae=fe.current().slice(1);return ee=Le.hasOwnProperty(ae)?Le[ae]:Le.DEFAULT,ee=new ee,Ue(z,ee),Se(z,xe),ee.style}if(fe.match(/^\\[$&%#{}_]/)||fe.match(/^\\[,;!\/\\]/))return"tag";if(fe.match("\\["))return Se(z,function(le,ue){return ve(le,ue,"\\]")}),"keyword";if(fe.match("\\("))return Se(z,function(le,ue){return ve(le,ue,"\\)")}),"keyword";if(fe.match("$$"))return Se(z,function(le,ue){return ve(le,ue,"$$")}),"keyword";if(fe.match("$"))return Se(z,function(le,ue){return ve(le,ue,"$")}),"keyword";var re=fe.next();if(re=="%")return fe.skipToEnd(),"comment";if(re=="}"||re=="]"){if(ee=Fe(z),ee)ee.closeBracket(re),Se(z,xe);else return"error";return"bracket"}else return re=="{"||re=="["?(ee=Le.DEFAULT,ee=new ee,Ue(z,ee),"bracket"):/\d/.test(re)?(fe.eatWhile(/[\w.%]/),"atom"):(fe.eatWhile(/[\w\-_]/),ee=ce(z),ee.name=="begin"&&(ee.argument=fe.current()),ee.styleIdentifier())}function ve(fe,z,ee){if(fe.eatSpace())return null;if(ee&&fe.match(ee))return Se(z,ke),"keyword";if(fe.match(/^\\[a-zA-Z@]+/))return"tag";if(fe.match(/^[a-zA-Z]+/))return"variable-2";if(fe.match(/^\\[$&%#{}_]/)||fe.match(/^\\[,;!\/]/)||fe.match(/^[\^_&]/))return"tag";if(fe.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(fe.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ae=fe.next();return ae=="{"||ae=="}"||ae=="["||ae=="]"||ae=="("||ae==")"?"bracket":ae=="%"?(fe.skipToEnd(),"comment"):"error"}function xe(fe,z){var ee=fe.peek(),ae;return ee=="{"||ee=="["?(ae=Fe(z),ae.openBracket(ee),fe.eat(ee),Se(z,ke),"bracket"):/[ \t\r]/.test(ee)?(fe.eat(ee),null):(Se(z,ke),me(z),ke(fe,z))}return{startState:function(){var fe=oe.inMathMode?function(z,ee){return ve(z,ee)}:ke;return{cmdState:[],f:fe}},copyState:function(fe){return{cmdState:fe.cmdState.slice(),f:fe.f}},token:function(fe,z){return z.f(fe,z)},blankLine:function(fe){fe.f=ke,fe.cmdState.length=0},lineComment:"%"}}),tt.defineMIME("text/x-stex","stex"),tt.defineMIME("text/x-latex","stex")})},15525:function(Gn,vn,Ke){(function(tt){tt(Ke(89780))})(function(tt){"use strict";var Pt={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},oe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};tt.defineMode("xml",function(Ue,Fe){var me=Ue.indentUnit,ce={},be=Fe.htmlMode?Pt:oe;for(var Le in be)ce[Le]=be[Le];for(var Le in Fe)ce[Le]=Fe[Le];var Se,ke;function ve(_e,qe){function ze(lt){return qe.tokenize=lt,lt(_e,qe)}var Ye=_e.next();if(Ye=="<")return _e.eat("!")?_e.eat("[")?_e.match("CDATA[")?ze(z("atom","]]>")):null:_e.match("--")?ze(z("comment","-->")):_e.match("DOCTYPE",!0,!0)?(_e.eatWhile(/[\w\._\-]/),ze(ee(1))):null:_e.eat("?")?(_e.eatWhile(/[\w\._\-]/),qe.tokenize=z("meta","?>"),"meta"):(Se=_e.eat("/")?"closeTag":"openTag",qe.tokenize=xe,"tag bracket");if(Ye=="&"){var et;return _e.eat("#")?_e.eat("x")?et=_e.eatWhile(/[a-fA-F\d]/)&&_e.eat(";"):et=_e.eatWhile(/[\d]/)&&_e.eat(";"):et=_e.eatWhile(/[\w\.\-:]/)&&_e.eat(";"),et?"atom":"error"}else return _e.eatWhile(/[^&<]/),null}ve.isInText=!0;function xe(_e,qe){var ze=_e.next();if(ze==">"||ze=="/"&&_e.eat(">"))return qe.tokenize=ve,Se=ze==">"?"endTag":"selfcloseTag","tag bracket";if(ze=="=")return Se="equals",null;if(ze=="<"){qe.tokenize=ve,qe.state=ue,qe.tagName=qe.tagStart=null;var Ye=qe.tokenize(_e,qe);return Ye?Ye+" tag error":"tag error"}else return/[\'\"]/.test(ze)?(qe.tokenize=fe(ze),qe.stringStartCol=_e.column(),qe.tokenize(_e,qe)):(_e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function fe(_e){var qe=function(ze,Ye){for(;!ze.eol();)if(ze.next()==_e){Ye.tokenize=xe;break}return"string"};return qe.isInAttribute=!0,qe}function z(_e,qe){return function(ze,Ye){for(;!ze.eol();){if(ze.match(qe)){Ye.tokenize=ve;break}ze.next()}return _e}}function ee(_e){return function(qe,ze){for(var Ye;(Ye=qe.next())!=null;){if(Ye=="<")return ze.tokenize=ee(_e+1),ze.tokenize(qe,ze);if(Ye==">")if(_e==1){ze.tokenize=ve;break}else return ze.tokenize=ee(_e-1),ze.tokenize(qe,ze)}return"meta"}}function ae(_e,qe,ze){this.prev=_e.context,this.tagName=qe,this.indent=_e.indented,this.startOfLine=ze,(ce.doNotIndent.hasOwnProperty(qe)||_e.context&&_e.context.noIndent)&&(this.noIndent=!0)}function re(_e){_e.context&&(_e.context=_e.context.prev)}function le(_e,qe){for(var ze;;){if(!_e.context||(ze=_e.context.tagName,!ce.contextGrabbers.hasOwnProperty(ze)||!ce.contextGrabbers[ze].hasOwnProperty(qe)))return;re(_e)}}function ue(_e,qe,ze){return _e=="openTag"?(ze.tagStart=qe.column(),pe):_e=="closeTag"?Ce:ue}function pe(_e,qe,ze){return _e=="word"?(ze.tagName=qe.current(),ke="tag",Oe):ce.allowMissingTagName&&_e=="endTag"?(ke="tag bracket",Oe(_e,qe,ze)):(ke="error",pe)}function Ce(_e,qe,ze){if(_e=="word"){var Ye=qe.current();return ze.context&&ze.context.tagName!=Ye&&ce.implicitlyClosed.hasOwnProperty(ze.context.tagName)&&re(ze),ze.context&&ze.context.tagName==Ye||ce.matchClosing===!1?(ke="tag",Pe):(ke="tag error",Ie)}else return ce.allowMissingTagName&&_e=="endTag"?(ke="tag bracket",Pe(_e,qe,ze)):(ke="error",Ie)}function Pe(_e,qe,ze){return _e!="endTag"?(ke="error",Pe):(re(ze),ue)}function Ie(_e,qe,ze){return ke="error",Pe(_e,qe,ze)}function Oe(_e,qe,ze){if(_e=="word")return ke="attribute",Ae;if(_e=="endTag"||_e=="selfcloseTag"){var Ye=ze.tagName,et=ze.tagStart;return ze.tagName=ze.tagStart=null,_e=="selfcloseTag"||ce.autoSelfClosers.hasOwnProperty(Ye)?le(ze,Ye):(le(ze,Ye),ze.context=new ae(ze,Ye,et==ze.indented)),ue}return ke="error",Oe}function Ae(_e,qe,ze){return _e=="equals"?je:(ce.allowMissing||(ke="error"),Oe(_e,qe,ze))}function je(_e,qe,ze){return _e=="string"?Be:_e=="word"&&ce.allowUnquoted?(ke="string",Oe):(ke="error",Oe(_e,qe,ze))}function Be(_e,qe,ze){return _e=="string"?Be:Oe(_e,qe,ze)}return{startState:function(_e){var qe={tokenize:ve,state:ue,indented:_e||0,tagName:null,tagStart:null,context:null};return _e!=null&&(qe.baseIndent=_e),qe},token:function(_e,qe){if(!qe.tagName&&_e.sol()&&(qe.indented=_e.indentation()),_e.eatSpace())return null;Se=null;var ze=qe.tokenize(_e,qe);return(ze||Se)&&ze!="comment"&&(ke=null,qe.state=qe.state(Se||ze,_e,qe),ke&&(ze=ke=="error"?ze+" error":ke)),ze},indent:function(_e,qe,ze){var Ye=_e.context;if(_e.tokenize.isInAttribute)return _e.tagStart==_e.indented?_e.stringStartCol+1:_e.indented+me;if(Ye&&Ye.noIndent)return tt.Pass;if(_e.tokenize!=xe&&_e.tokenize!=ve)return ze?ze.match(/^(\s*)/)[0].length:0;if(_e.tagName)return ce.multilineTagIndentPastTag!==!1?_e.tagStart+_e.tagName.length+2:_e.tagStart+me*(ce.multilineTagIndentFactor||1);if(ce.alignCDATA&&/<!\[CDATA\[/.test(qe))return 0;var et=qe&&/^<(\/)?([\w_:\.-]*)/.exec(qe);if(et&&et[1])for(;Ye;)if(Ye.tagName==et[2]){Ye=Ye.prev;break}else if(ce.implicitlyClosed.hasOwnProperty(Ye.tagName))Ye=Ye.prev;else break;else if(et)for(;Ye;){var lt=ce.contextGrabbers[Ye.tagName];if(lt&<.hasOwnProperty(et[2]))Ye=Ye.prev;else break}for(;Ye&&Ye.prev&&!Ye.startOfLine;)Ye=Ye.prev;return Ye?Ye.indent+me:_e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ce.htmlMode?"html":"xml",helperType:ce.htmlMode?"html":"xml",skipAttribute:function(_e){_e.state==je&&(_e.state=Oe)},xmlCurrentTag:function(_e){return _e.tagName?{name:_e.tagName,close:_e.type=="closeTag"}:null},xmlCurrentContext:function(_e){for(var qe=[],ze=_e.context;ze;ze=ze.prev)ze.tagName&&qe.push(ze.tagName);return qe.reverse()}}}),tt.defineMIME("text/xml","xml"),tt.defineMIME("application/xml","xml"),tt.mimeModes.hasOwnProperty("text/html")||tt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Gn,vn,Ke){"use strict";Ke.d(vn,{$u:function(){return Le},BD:function(){return nt},E9:function(){return be},FF:function(){return fi},FJ:function(){return ue},Hn:function(){return le},KX:function(){return Ce},NB:function(){return ct},S0:function(){return St},UL:function(){return Se},Vk:function(){return re},Vm:function(){return ht},YI:function(){return bt},ZA:function(){return oe},Zt:function(){return ke},al:function(){return Ee},bn:function(){return Ze},bx:function(){return we},g2:function(){return at},h1:function(){return je},hD:function(){return Mn},l4:function(){return me},rU:function(){return Et},s_:function(){return Te},uz:function(){return Xe},z6:function(){return ve}}),Gn=Ke.hmd(Gn),function(){var it;function Ur(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Rr(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Ur(a)}}function di(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var Vr=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Br;if(typeof Object.setPrototypeOf=="function")Br=Object.setPrototypeOf;else{var Xr;e:{var hr={a:!0},un={};try{un.__proto__=hr,Xr=un.a;break e}catch(a){}Xr=!1}Br=Xr?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var on=Br;function Jt(a,y){if(a.prototype=Vr(y.prototype),a.prototype.constructor=a,on)on(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 jt=typeof Ke.g!="undefined"&&Ke.g!=null?Ke.g:self,Pn=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var b=arguments[x];if(b)for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(a[E]=b[E])}return a},Cn=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function Kt(a,y){if(y){var x=jt;a=a.split(".");for(var b=0;b<a.length-1;b++){var E=a[b];E in x||(x[E]={}),x=x[E]}a=a[a.length-1],b=x[a],y=y(b),y!=b&&y!=null&&Cn(x,a,{writable:!0,value:y})}}Kt("Object.assign",function(a){return a||Pn}),Kt("Array.prototype.fill",function(a){return a||function(y,x,b){var E=this.length||0;for(0>x&&(x=Math.max(0,E+x)),(b==null||b>E)&&(b=E),b=Number(b),0>b&&(b=Math.max(0,E+b)),x=Number(x||0);x<b;x++)this[x]=y;return this}});var Dt=typeof globalThis=="object"&&globalThis||typeof Ke.g=="object"&&Ke.g.global===Ke.g&&Ke.g||typeof self=="object"&&self.self===self&&self||{};Dt.requestAnimationFrame===void 0&&(Dt.setImmediate===void 0?Dt.requestAnimationFrame=function(a){Dt.setTimeout(a,0)}:Dt.requestAnimationFrame=Dt.setImmediate);function pn(){}function yn(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&Dt.clearTimeout(x),x=Jn(function(){x=-1,a.apply(b,E)},y)}}function Jn(a,y){return Dt.setTimeout(a,y)}function bn(a){return Dt.document.createElement(a)}function Zt(a){throw Error(a)}function jn(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),Zt(a)}function Fn(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),Zt(x+" is not in the range "+y+": "+a)}function ar(a){Dt.console&&Dt.console.log(a)}function nn(a){return typeof a=="object"&&a!==null}function On(a){return Array.isArray(a)||Dt.NodeList&&a instanceof Dt.NodeList||Dt.HTMLCollection&&a instanceof Dt.HTMLCollection}function an(a){return Array.prototype.slice.call(a)}function mn(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):Zt("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function Ln(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Zt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function xn(){var a=Lr.pop();return a===void 0?[]:a}function In(a){a.length=0,Lr.push(a)}function gn(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(nn(a)&&a.constructor)return gn(a.constructor);return typeof a}function Nn(a){var y=a;return nn(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 kn(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 En(a,y,x){Object.defineProperty(Do.prototype,a,{get:y,set:x})}function $n(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var b=0,E=0;E<a.length;E+=2)x[b++]=y[a.substr(E,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=b=0;256>x;x++)b=(b+y[x]+119)%256,E=y[x],y[x]=y[b],y[b]=E;b=x=0;for(var te="",ne=0;ne<a.length;ne++)x=(x+1)%256,b=(b+y[x])%256,E=y[x],y[x]=y[b],y[b]=E,te+=String.fromCharCode(a.charCodeAt(ne)^y[(y[x]+y[b])%256]);return te.indexOf("GoJS 2.1 evaluation")>-1||te.indexOf("\xA9 1998-2021 Northwoods Software")>-1||te.indexOf("Not for distribution or production use")>-1||te.indexOf("gojs.net")>-1?"":te}var mr=Dt.navigator!==void 0&&0<Dt.navigator.userAgent.indexOf("Trident/7"),Hr=Dt.navigator!==void 0&&Dt.navigator.platform!==void 0&&Dt.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Lr=[];Object.freeze([]),pn.className="Util",pn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",pn.adym="gojs.net",pn.vfo="28e645fdb266",pn.className="Util";function en(a,y,x){ui(this),this.j=a,this.xa=y,this.o=x}en.prototype.toString=function(){return"EnumValue."+this.xa};function ur(a,y){return y==null||y===""?null:a[y]}jt.Object.defineProperties(en.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),en.className="EnumValue";function Mr(){this.ew=[]}Mr.prototype.toString=function(){return this.ew.join("")},Mr.prototype.add=function(a){a!==""&&this.ew.push(a)},Mr.className="StringBuilder";function pr(){}pr.className="PropertyCollection";var Ar={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Dt.console&&Dt.console.log(a)},HA:function(a,y,x,b){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(x,x),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(b.left,b.top+20),a.lineTo(b.left,b.top),a.lineTo(b.left+20,b.top),a.moveTo(b.right,b.bottom-20),a.lineTo(b.right,b.bottom),a.lineTo(b.right-20,b.bottom),a.stroke(),a.fillText("DB: "+Math.round(b.x)+", "+Math.round(b.y)+", "+Math.round(b.width)+", "+Math.round(b.height),b.left,b.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var b=a[y.x];if(b.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(b.prototype);for(var E={Tj:0};E.Tj<y.Zl.length;E={Tj:E.Tj},E.Tj++){var te=Object.getOwnPropertyDescriptor(b.prototype,y.Zl[E.Tj]);te.get!==void 0&&te.set===void 0&&Object.defineProperty(b.prototype,y.Zl[E.Tj],{set:function(ne,se){return function(){throw Error("Property "+ne.Zl[se.Tj]+" of "+ne.x+" is read-only.")}}(y,E)})}}}y={Zl:y.Zl,x:y.x}}}};function Zr(){}Zr.prototype.reset=function(){},Zr.prototype.next=function(){return!1},Zr.prototype.Ad=function(){return!1},Zr.prototype.first=function(){return null},Zr.prototype.any=function(){return!1},Zr.prototype.all=function(){return!0},Zr.prototype.each=function(){return this},Zr.prototype.map=function(){return this},Zr.prototype.filter=function(){return this},Zr.prototype.de=function(){},Zr.prototype.toString=function(){return"EmptyIterator"},jt.Object.defineProperties(Zr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Zr.prototype.first=Zr.prototype.first,Zr.prototype.hasNext=Zr.prototype.Ad,Zr.prototype.next=Zr.prototype.next,Zr.prototype.reset=Zr.prototype.reset;var gi=null;Zr.className="EmptyIterator",gi=new Zr;function _r(a){this.key=-1,this.value=a}_r.prototype.reset=function(){this.key=-1},_r.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},_r.prototype.Ad=function(){return this.next()},_r.prototype.first=function(){return this.key=0,this.value},_r.prototype.any=function(a){return this.key=-1,a(this.value)},_r.prototype.all=function(a){return this.key=-1,a(this.value)},_r.prototype.each=function(a){return this.key=-1,a(this.value),this},_r.prototype.map=function(a){return new _r(a(this.value))},_r.prototype.filter=function(a){return a(this.value)?new _r(this.value):gi},_r.prototype.de=function(){this.value=null},_r.prototype.toString=function(){return"SingletonIterator("+this.value+")"},jt.Object.defineProperties(_r.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),_r.prototype.first=_r.prototype.first,_r.prototype.hasNext=_r.prototype.Ad,_r.prototype.next=_r.prototype.next,_r.prototype.reset=_r.prototype.reset,_r.className="SingletonIterator";function vr(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}vr.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},vr.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,x=++this.Za,b=this.qf;if(b!==null)for(;x<y;){var E=a[x];if(b(E))return this.key=this.Za=x,this.value=E,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},vr.prototype.Ad=function(){return this.next()},vr.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,x=this.qf;if(x!==null){for(var b=0;b<y;){var E=a[b];if(x(E))return this.key=this.Za=b,this.value=E;b++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},vr.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var te=y[E];if((b===null||b(te))&&a(te))return!0}return!1},vr.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var te=y[E];if((b===null||b(te))&&!a(te))return!1}return!0},vr.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var te=y[E];(b===null||b(te))&&a(te)}return this},vr.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,te=0;te<b;te++){var ne=y[te];(E===null||E(ne))&&x.push(a(ne))}return a=new An,a.s=x,a.xb(),a.iterator},vr.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,te=0;te<b;te++){var ne=y[te];(E===null||E(ne))&&a(ne)&&x.push(ne)}return a=new An,a.s=x,a.xb(),a.iterator},vr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},vr.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},jt.Object.defineProperties(vr.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(a){this.qf=a}},count:{get:function(){var a=this.qf;if(a!==null){for(var y=0,x=this.Bb.s,b=x.length,E=0;E<b;E++)a(x[E])&&y++;return y}return this.Bb.s.length}}}),vr.prototype.first=vr.prototype.first,vr.prototype.hasNext=vr.prototype.Ad,vr.prototype.next=vr.prototype.next,vr.prototype.reset=vr.prototype.reset,vr.className="ListIterator";function Qr(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Qr.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Qr.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)},Qr.prototype.Ad=function(){return this.next()},Qr.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},Qr.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},Qr.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},Qr.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},Qr.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 An,a.s=x,a.xb(),a.iterator},Qr.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--){var E=y[b];a(E)&&x.push(E)}return a=new An,a.s=x,a.xb(),a.iterator},Qr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Qr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},jt.Object.defineProperties(Qr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Qr.prototype.first=Qr.prototype.first,Qr.prototype.hasNext=Qr.prototype.Ad,Qr.prototype.next=Qr.prototype.next,Qr.prototype.reset=Qr.prototype.reset,Qr.className="ListIteratorBackwards";function An(a){ui(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Zt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}it=An.prototype,it.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return this._isFrozen=!1,this},it.toString=function(){return"List()#"+Mi(this)},it.add=function(a){return a===null?this:(this._isFrozen&&jn(this,a),this.s.push(a),this.xb(),this)},it.push=function(a){this.add(a)},it.addAll=function(a){if(a===null)return this;this._isFrozen&&jn(this);var y=this.s;if(On(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},it.clear=function(){this._isFrozen&&jn(this),this.s.length=0,this.xb()},it.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},it.has=function(a){return this.contains(a)},it.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},it.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Fn(a,"0 <= i < length",An,"elt:i"),y[a]},it.get=function(a){return this.M(a)},it.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Fn(a,"0 <= i < length",An,"setElt:i"),this._isFrozen&&jn(this,a),x[a]=y},it.set=function(a,y){this.cd(a,y)},it.first=function(){var a=this.s;return a.length===0?null:a[0]},it.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},it.pop=function(){this._isFrozen&&jn(this);var a=this.s;return 0<a.length?a.pop():null},An.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},An.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},An.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},An.prototype.map=function(a){for(var y=new An,x=[],b=this.s,E=b.length,te=0;te<E;te++)x.push(a(b[te]));return y.s=x,y.xb(),y},An.prototype.filter=function(a){for(var y=new An,x=[],b=this.s,E=b.length,te=0;te<E;te++){var ne=b[te];a(ne)&&x.push(ne)}return y.s=x,y.xb(),y},it=An.prototype,it.Gb=function(a,y){0>a&&Fn(a,">= 0",An,"insertAt:i"),this._isFrozen&&jn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},it.remove=function(a){if(a===null)return!1;this._isFrozen&&jn(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)},it.delete=function(a){return this.remove(a)},it.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Fn(a,"0 <= i < length",An,"removeAt:i"),this._isFrozen&&jn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},it.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&&jn(this);for(var E=a,te=y+1;te<b;)x[E++]=x[te++];return x.length=b-(y-a+1),this.xb(),this},An.prototype.copy=function(){var a=new An,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},it=An.prototype,it.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},it.Iv=function(){for(var a=new Dn,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},it.sort=function(a){return this._isFrozen&&jn(this),this.s.sort(a),this.xb(),this},it.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&jn(this);var te=x-y;if(1>=te)return this;if((0>y||y>=E-1)&&Fn(y,"0 <= from < length",An,"sortRange:from"),te===2)return x=b[y],E=b[y+1],0<a(x,E)&&(b[y]=E,b[y+1]=x,this.xb()),this;if(y===0)if(x>=E)b.sort(a);else for(y=b.slice(0,x),y.sort(a),a=0;a<x;a++)b[a]=y[a];else if(x>=E)for(x=b.slice(y),x.sort(a),a=y;a<E;a++)b[a]=x[a-y];else for(E=b.slice(y,x),E.sort(a),a=y;a<x;a++)b[a]=E[a-y];return this.xb(),this},it.reverse=function(){return this._isFrozen&&jn(this),this.s.reverse(),this.xb(),this},jt.Object.defineProperties(An.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 gi;var a=this.Sa;return a!==null?(a.reset(),a):new vr(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return gi;var a=this.Hg;return a!==null?(a.reset(),a):new Qr(this)}}}),An.prototype.reverse=An.prototype.reverse,An.prototype.sortRange=An.prototype.zi,An.prototype.sort=An.prototype.sort,An.prototype.toSet=An.prototype.Iv,An.prototype.toArray=An.prototype.Fa,An.prototype.removeRange=An.prototype.removeRange,An.prototype.removeAt=An.prototype.mb,An.prototype.delete=An.prototype.delete,An.prototype.remove=An.prototype.remove,An.prototype.insertAt=An.prototype.Gb,An.prototype.pop=An.prototype.pop,An.prototype.last=An.prototype.jc,An.prototype.first=An.prototype.first,An.prototype.set=An.prototype.set,An.prototype.setElt=An.prototype.cd,An.prototype.get=An.prototype.get,An.prototype.elt=An.prototype.M,An.prototype.indexOf=An.prototype.indexOf,An.prototype.has=An.prototype.has,An.prototype.contains=An.prototype.contains,An.prototype.clear=An.prototype.clear,An.prototype.addAll=An.prototype.addAll,An.prototype.push=An.prototype.push,An.prototype.add=An.prototype.add,An.prototype.thaw=An.prototype.ka,An.prototype.freeze=An.prototype.freeze,An.className="List";function ki(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}ki.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},ki.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)},ki.prototype.Ad=function(){return this.next()},ki.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},ki.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},ki.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},ki.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},ki.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new An;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},ki.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new An;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},ki.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},ki.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},jt.Object.defineProperties(ki.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),ki.prototype.first=ki.prototype.first,ki.prototype.hasNext=ki.prototype.Ad,ki.prototype.next=ki.prototype.next,ki.prototype.reset=ki.prototype.reset,ki.className="SetIterator";function Dn(a){ui(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Zt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}it=Dn.prototype,it.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return this._isFrozen=!1,this},it.toString=function(){return"Set()#"+Mi(this)},it.add=function(a){if(a===null)return this;this._isFrozen&&jn(this,a);var y=a;return nn(a)&&(y=fo(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Ni(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},it.addAll=function(a){if(a===null)return this;if(this._isFrozen&&jn(this),On(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},it.contains=function(a){if(a===null)return!1;var y=a;return nn(a)&&(y=Mi(a),y===void 0)?!1:this.Tb[y]!==void 0},it.has=function(a){return this.contains(a)},it.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},it.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},it.first=function(){var a=this.ea;return a===null?null:a.value},Dn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Dn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Dn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Dn.prototype.map=function(a){for(var y=new Dn,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Dn.prototype.filter=function(a){for(var y=new Dn,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},it=Dn.prototype,it.remove=function(a){if(a===null)return!1;this._isFrozen&&jn(this,a);var y=a;if(nn(a)&&(y=Mi(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},it.delete=function(a){return this.remove(a)},it.hp=function(a){if(a===null)return this;if(this._isFrozen&&jn(this),On(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},it.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&jn(this);var y=new Dn;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},it.clear=function(){this._isFrozen&&jn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Dn.prototype.copy=function(){var a=new Dn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Dn.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},Dn.prototype.Hv=function(){var a=new An,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function ui(a){a.__gohashid=Zo++}function fo(a){var y=a.__gohashid;return y===void 0&&(y=Zo++,a.__gohashid=y),y}function Mi(a){return a.__gohashid}jt.Object.defineProperties(Dn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return gi;var a=this.Sa;return a!==null?(a.reset(),a):new ki(this)}}}),Dn.prototype.toList=Dn.prototype.Hv,Dn.prototype.toArray=Dn.prototype.Fa,Dn.prototype.clear=Dn.prototype.clear,Dn.prototype.retainAll=Dn.prototype.pA,Dn.prototype.removeAll=Dn.prototype.hp,Dn.prototype.delete=Dn.prototype.delete,Dn.prototype.remove=Dn.prototype.remove,Dn.prototype.first=Dn.prototype.first,Dn.prototype.containsAny=Dn.prototype.Ty,Dn.prototype.containsAll=Dn.prototype.Sy,Dn.prototype.has=Dn.prototype.has,Dn.prototype.contains=Dn.prototype.contains,Dn.prototype.addAll=Dn.prototype.addAll,Dn.prototype.add=Dn.prototype.add,Dn.prototype.thaw=Dn.prototype.ka,Dn.prototype.freeze=Dn.prototype.freeze;var Zo=1;Dn.className="Set",Dn.uniqueHash=ui,Dn.hashIdUnique=fo,Dn.hashId=Mi;function co(a){this.ma=a,this.qa=a.Ja,this.sa=null}co.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},co.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)},co.prototype.Ad=function(){return this.next()},co.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},co.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},co.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},co.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},co.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new An;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},co.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new An;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},co.prototype.de=function(){this.value=this.key=null,this.qa=-1},co.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},jt.Object.defineProperties(co.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),co.prototype.first=co.prototype.first,co.prototype.hasNext=co.prototype.Ad,co.prototype.next=co.prototype.next,co.prototype.reset=co.prototype.reset,co.className="MapKeySetIterator";function $r(a){Dn.call(this),ui(this),this._isFrozen=!0,this.ma=a}Jt($r,Dn),it=$r.prototype,it.freeze=function(){return this},it.ka=function(){return this},it.toString=function(){return"MapKeySet("+this.ma.toString()+")"},it.add=function(){Zt("This Set is read-only: "+this.toString())},it.contains=function(a){return this.ma.contains(a)},it.has=function(a){return this.contains(a)},it.remove=function(){Zt("This Set is read-only: "+this.toString())},it.delete=function(a){return this.remove(a)},it.clear=function(){Zt("This Set is read-only: "+this.toString())},it.first=function(){var a=this.ma.ea;return a!==null?a.key:null},$r.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},$r.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},$r.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},$r.prototype.map=function(a){for(var y=new Dn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},$r.prototype.filter=function(a){for(var y=new Dn,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},$r.prototype.copy=function(){return new $r(this.ma)},$r.prototype.Iv=function(){var a=new Dn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},$r.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},$r.prototype.Hv=function(){var a=new An,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},jt.Object.defineProperties($r.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?gi:new co(this.ma)}}}),$r.prototype.toList=$r.prototype.Hv,$r.prototype.toArray=$r.prototype.Fa,$r.prototype.toSet=$r.prototype.Iv,$r.prototype.first=$r.prototype.first,$r.prototype.clear=$r.prototype.clear,$r.prototype.delete=$r.prototype.delete,$r.prototype.remove=$r.prototype.remove,$r.prototype.has=$r.prototype.has,$r.prototype.contains=$r.prototype.contains,$r.prototype.add=$r.prototype.add,$r.prototype.thaw=$r.prototype.ka,$r.prototype.freeze=$r.prototype.freeze,$r.className="MapKeySet";function Gr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Gr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Gr.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)},Gr.prototype.Ad=function(){return this.next()},Gr.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},Gr.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},Gr.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},Gr.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},Gr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new An;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Gr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new An;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Gr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Gr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},jt.Object.defineProperties(Gr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Gr.prototype.first=Gr.prototype.first,Gr.prototype.hasNext=Gr.prototype.Ad,Gr.prototype.next=Gr.prototype.next,Gr.prototype.reset=Gr.prototype.reset,Gr.className="MapValueSetIterator";function Ni(a,y){this.key=a,this.value=y,this.ll=this.va=null}Ni.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Ni.className="KeyValuePair";function Wi(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Wi.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Wi.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)},Wi.prototype.Ad=function(){return this.next()},Wi.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},Wi.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},Wi.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},Wi.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},Wi.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new An;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Wi.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new An;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Wi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Wi.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},jt.Object.defineProperties(Wi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Wi.prototype.first=Wi.prototype.first,Wi.prototype.hasNext=Wi.prototype.Ad,Wi.prototype.next=Wi.prototype.next,Wi.prototype.reset=Wi.prototype.reset,Wi.className="MapIterator";function dr(a){ui(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"&&Zt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}it=dr.prototype,it.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return this._isFrozen=!1,this},it.toString=function(){return"Map()#"+Mi(this)},it.add=function(a,y){this._isFrozen&&jn(this,a);var x=a;nn(a)&&(x=fo(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new Ni(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},it.set=function(a,y){return this.add(a,y)},it.addAll=function(a){if(a===null)return this;if(On(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 dr)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},it.first=function(){return this.ea},dr.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},dr.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},dr.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},dr.prototype.map=function(a){for(var y=new dr,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},dr.prototype.filter=function(a){for(var y=new dr,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},it=dr.prototype,it.contains=function(a){var y=a;return nn(a)&&(y=Mi(a),y===void 0)?!1:this.Tb[y]!==void 0},it.has=function(a){return this.contains(a)},it.I=function(a){var y=a;return nn(a)&&(y=Mi(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},it.get=function(a){return this.I(a)},it.remove=function(a){if(a===null)return!1;this._isFrozen&&jn(this,a);var y=a;if(nn(a)&&(y=Mi(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},it.delete=function(a){return this.remove(a)},it.clear=function(){this._isFrozen&&jn(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()},dr.prototype.copy=function(){var a=new dr,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},dr.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,b;for(b in a){var E=a[b];y[x]=new Ni(E.key,E.value),x++}return y},dr.prototype.Lf=function(){return new $r(this)},jt.Object.defineProperties(dr.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return gi;var a=this.Sa;return a!==null?(a.reset(),a):new Wi(this)}},iteratorKeys:{get:function(){return 0>=this.count?gi:new co(this)}},iteratorValues:{get:function(){if(0>=this.count)return gi;var a=this.jf;return a!==null?(a.reset(),a):new Gr(this)}}}),dr.prototype.toKeySet=dr.prototype.Lf,dr.prototype.toArray=dr.prototype.Fa,dr.prototype.clear=dr.prototype.clear,dr.prototype.delete=dr.prototype.delete,dr.prototype.remove=dr.prototype.remove,dr.prototype.get=dr.prototype.get,dr.prototype.getValue=dr.prototype.I,dr.prototype.has=dr.prototype.has,dr.prototype.contains=dr.prototype.contains,dr.prototype.first=dr.prototype.first,dr.prototype.addAll=dr.prototype.addAll,dr.prototype.set=dr.prototype.set,dr.prototype.add=dr.prototype.add,dr.prototype.thaw=dr.prototype.ka,dr.prototype.freeze=dr.prototype.freeze,dr.className="Map";function Lt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Zt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Pi,Mo,Oi,wo,Lo;Lt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Lt.prototype.h=function(a,y){return this.x=a,this.y=y,this},Lt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Lt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Lt.prototype.copy=function(){var a=new Lt;return a.x=this.x,a.y=this.y,a},it=Lt.prototype,it.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},it.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return Object.isFrozen(this)&&Zt("cannot thaw constant: "+this),this._isFrozen=!1,this};function ko(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new Lt(x,E)}return new Lt}function xi(a){return a.x.toString()+" "+a.y.toString()}it.toString=function(){return"Point("+this.x+","+this.y+")"},it.D=function(a){return a instanceof Lt?this.x===a.x&&this.y===a.y:!1},it.hi=function(a,y){return this.x===a&&this.y===y},it.Xa=function(a){return Qt.B(this.x,a.x)&&Qt.B(this.y,a.y)},it.add=function(a){return this.x+=a.x,this.y+=a.y,this},it.re=function(a){return this.x-=a.x,this.y-=a.y,this},it.offset=function(a,y){return this.x+=a,this.y+=y,this},Lt.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},it=Lt.prototype,it.scale=function(a,y){return this.x*=a,this.y*=y,this},it.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},it.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},it.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},it.ab=function(a){return ci(a.x-this.x,a.y-this.y)},it.direction=function(a,y){return ci(a-this.x,y-this.y)};function ci(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}it.Ry=function(a,y){return Qt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},it.fA=function(a,y,x,b){return Qt.qh(a,y,x,b,this.x,this.y,this),this},it.gA=function(a,y){return Qt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},it.uA=function(a,y,x,b){return Qt.No(this.x,this.y,a,y,x,b,this),this},it.vA=function(a,y){return Qt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},it.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},it.yi=function(a,y,x,b,E){return this.x=a+E.x*x+E.offsetX,this.y=y+E.y*b+E.offsetY,this},it.transform=function(a){return a.Ga(this),this};function ii(a,y){return y.Cd(a),a}function Ji(a,y,x,b,E,te){var ne=E-x,se=te-b,he=ne*ne+se*se;x-=a,b-=y;var ge=-x*ne-b*se;return 0>=ge||ge>=he?(ne=E-a,se=te-y,Math.min(x*x+b*b,ne*ne+se*se)):(a=ne*b-se*x,a*a/he)}function Or(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function Ir(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)}it.w=function(){return isFinite(this.x)&&isFinite(this.y)},Lt.alloc=function(){var a=ai.pop();return a===void 0?new Lt:a},Lt.allocAt=function(a,y){var x=ai.pop();return x===void 0?new Lt(a,y):(x.x=a,x.y=y,x)},Lt.free=function(a){ai.push(a)},Lt.prototype.isReal=Lt.prototype.w,Lt.prototype.setSpot=Lt.prototype.yi,Lt.prototype.setRectSpot=Lt.prototype.xi,Lt.prototype.snapToGridPoint=Lt.prototype.vA,Lt.prototype.snapToGrid=Lt.prototype.uA,Lt.prototype.projectOntoLineSegmentPoint=Lt.prototype.gA,Lt.prototype.projectOntoLineSegment=Lt.prototype.fA,Lt.intersectingLineSegments=function(a,y,x,b,E,te,ne,se){return Qt.Rl(a,y,x,b,E,te,ne,se)},Lt.prototype.compareWithLineSegmentPoint=Lt.prototype.Ry,Lt.compareWithLineSegment=function(a,y,x,b,E,te){return Qt.Fl(a,y,x,b,E,te)},Lt.prototype.direction=Lt.prototype.direction,Lt.prototype.directionPoint=Lt.prototype.ab,Lt.prototype.normalize=Lt.prototype.normalize,Lt.prototype.distanceSquared=Lt.prototype.zd,Lt.prototype.distanceSquaredPoint=Lt.prototype.Bf,Lt.prototype.scale=Lt.prototype.scale,Lt.prototype.rotate=Lt.prototype.rotate,Lt.prototype.offset=Lt.prototype.offset,Lt.prototype.subtract=Lt.prototype.re,Lt.prototype.add=Lt.prototype.add,Lt.prototype.equalsApprox=Lt.prototype.Xa,Lt.prototype.equalTo=Lt.prototype.hi,Lt.prototype.equals=Lt.prototype.D,Lt.prototype.set=Lt.prototype.set,Lt.prototype.setTo=Lt.prototype.sg;var ai=[];Lt.className="Point",Lt.parse=ko,Lt.stringify=xi,Lt.distanceLineSegmentSquared=Ji,Lt.distanceSquared=Or,Lt.direction=Ir,Lt.Origin=Pi=new Lt(0,0).ja(),Lt.InfiniteTopLeft=Mo=new Lt(-1/0,-1/0).ja(),Lt.InfiniteBottomRight=Oi=new Lt(1/0,1/0).ja(),Lt.SixPoint=wo=new Lt(6,6).ja(),Lt.NoPoint=Lo=new Lt(NaN,NaN).ja(),Lt.parse=ko,Lt.stringify=xi,Lt.distanceLineSegmentSquared=Ji,Lt.distanceSquared=Or,Lt.direction=Ir;function Xn(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):Zt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var no,po,Vo,To,ea,ba,Ia;Xn.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Xn.prototype.h=function(a,y){return this.width=a,this.height=y,this},Xn.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Xn.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Xn.prototype.copy=function(){var a=new Xn;return a.width=this.width,a.height=this.height,a},it=Xn.prototype,it.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},it.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return Object.isFrozen(this)&&Zt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Va(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new Xn(x,E)}return new Xn}function xs(a){return a.width.toString()+" "+a.height.toString()}it.toString=function(){return"Size("+this.width+","+this.height+")"},it.D=function(a){return a instanceof Xn?this.width===a.width&&this.height===a.height:!1},it.hi=function(a,y){return this.width===a&&this.height===y},it.Xa=function(a){return Qt.B(this.width,a.width)&&Qt.B(this.height,a.height)},it.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},it.w=function(){return isFinite(this.width)&&isFinite(this.height)},Xn.alloc=function(){var a=fs.pop();return a===void 0?new Xn:a},Xn.free=function(a){fs.push(a)},Xn.prototype.isReal=Xn.prototype.w,Xn.prototype.inflate=Xn.prototype.Bc,Xn.prototype.equalsApprox=Xn.prototype.Xa,Xn.prototype.equalTo=Xn.prototype.hi,Xn.prototype.equals=Xn.prototype.D,Xn.prototype.set=Xn.prototype.set,Xn.prototype.setTo=Xn.prototype.sg;var fs=[];Xn.className="Size",Xn.parse=Va,Xn.stringify=xs,Xn.ZeroSize=no=new Xn(0,0).ja(),Xn.OneSize=po=new Xn(1,1).ja(),Xn.SixSize=Vo=new Xn(6,6).ja(),Xn.EightSize=To=new Xn(8,8).ja(),Xn.TenSize=ea=new Xn(10,10).ja(),Xn.InfiniteSize=ba=new Xn(1/0,1/0).ja(),Xn.NoSize=Ia=new Xn(NaN,NaN).ja(),Xn.parse=Va,Xn.stringify=xs;function Tn(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 Lt?(x=a.x,a=a.y,y instanceof Lt?(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 Xn?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):Zt("Incorrect second argument supplied to Rect constructor "+y)):Zt("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}it=Tn.prototype,it.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},it.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function qa(a,y,x){a.width=y,a.height=x}it.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},it.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},it.dd=function(a){return this.x=a.x,this.y=a.y,this},it.tA=function(a){return this.width=a.width,this.height=a.height,this},Tn.prototype.copy=function(){var a=new Tn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},it=Tn.prototype,it.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},it.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return Object.isFrozen(this)&&Zt("cannot thaw constant: "+this),this._isFrozen=!1,this};function jl(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;(b=a[y++])&&(E=parseFloat(b));for(var te=0;a[y]==="";)y++;(b=a[y++])&&(te=parseFloat(b));for(var ne=0;a[y]==="";)y++;return(b=a[y++])&&(ne=parseFloat(b)),new Tn(x,E,te,ne)}return new Tn}function Il(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}it.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},it.D=function(a){return a instanceof Tn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},it.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},it.Xa=function(a){return Qt.B(this.x,a.x)&&Qt.B(this.y,a.y)&&Qt.B(this.width,a.width)&&Qt.B(this.height,a.height)};function Zi(a,y){return Qt.$(a.x,y.x)&&Qt.$(a.y,y.y)&&Qt.$(a.width,y.width)&&Qt.$(a.height,y.height)}it.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},it.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},it.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},it.offset=function(a,y){return this.x+=a,this.y+=y,this},it.Bc=function(a,y){return jo(this,y,a,y,a)},it.Co=function(a){return jo(this,a.top,a.right,a.bottom,a.left)},it.Fv=function(a){return jo(this,-a.top,-a.right,-a.bottom,-a.left)},it.Hz=function(a,y,x,b){return jo(this,a,y,x,b)};function jo(a,y,x,b,E){var te=a.width;return x+E<=-te?(a.x+=te/2,a.width=0):(a.x-=E,a.width+=x+E),x=a.height,y+b<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+b),a}it.Ex=function(a){return pa(this,a.x,a.y,a.width,a.height)},it.Uu=function(a,y,x,b){return pa(this,a,y,x,b)};function pa(a,y,x,b,E){var te=Math.max(a.x,y),ne=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+b),x=Math.min(a.y+a.height,x+E),a.x=te,a.y=ne,a.width=Math.max(0,y-te),a.height=Math.max(0,x-ne),a}it.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},it.Vu=function(a,y,x,b){var E=this.width,te=this.x;return E!==1/0&&x!==1/0&&(E+=te,x+=a,isNaN(x)||isNaN(E)||te>x||a>E)?!1:(a=this.height,x=this.y,!(a!==1/0&&b!==1/0&&(a+=x,b+=y,isNaN(b)||isNaN(a)||x>b||y>a)))};function No(a,y){var x=a.width,b=a.x,E=y.x-10;return b>y.width+10+10+E||E>x+b?!1:(x=a.height,a=a.y,b=y.y-10,!(a>y.height+10+10+b||b>x+a))}it.Ye=function(a){return Qi(this,a.x,a.y,0,0)},it.ed=function(a){return Qi(this,a.x,a.y,a.width,a.height)},it.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),Qi(this,a,y,x,b)};function Qi(a,y,x,b,E){var te=Math.min(a.x,y),ne=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+b),x=Math.max(a.y+a.height,x+E),a.x=te,a.y=ne,a.width=y-te,a.height=x-ne,a}it.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 Po(a,y,x,b,E,te,ne,se){return ne===void 0&&(ne=0),se===void 0&&(se=0),a<=E&&E+ne<=a+x&&y<=te&&te+se<=y+b}function Wa(a,y,x,b,E,te,ne,se){return a>ne+E||E>x+a?!1:!(y>se+te||te>b+y)}it.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},it.Mz=function(){return this.width===0&&this.height===0},Tn.alloc=function(){var a=eo.pop();return a===void 0?new Tn:a},Tn.allocAt=function(a,y,x,b){var E=eo.pop();return E===void 0?new Tn(a,y,x,b):E.h(a,y,x,b)},Tn.free=function(a){eo.push(a)},jt.Object.defineProperties(Tn.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 Lt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Xn(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Lt(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}}}),Tn.prototype.isEmpty=Tn.prototype.Mz,Tn.prototype.isReal=Tn.prototype.w,Tn.intersectsLineSegment=function(a,y,x,b,E,te,ne,se){return Qt.Fx(a,y,x,b,E,te,ne,se)},Tn.prototype.setSpot=Tn.prototype.yi,Tn.prototype.union=Tn.prototype.Kv,Tn.prototype.unionRect=Tn.prototype.ed,Tn.prototype.unionPoint=Tn.prototype.Ye,Tn.prototype.intersects=Tn.prototype.Vu,Tn.prototype.intersectsRect=Tn.prototype.Yc,Tn.prototype.intersect=Tn.prototype.Uu,Tn.prototype.intersectRect=Tn.prototype.Ex,Tn.prototype.grow=Tn.prototype.Hz,Tn.prototype.subtractMargin=Tn.prototype.Fv,Tn.prototype.addMargin=Tn.prototype.Co,Tn.prototype.inflate=Tn.prototype.Bc,Tn.prototype.offset=Tn.prototype.offset,Tn.prototype.contains=Tn.prototype.contains,Tn.prototype.containsRect=Tn.prototype.Re,Tn.prototype.containsPoint=Tn.prototype.ca,Tn.prototype.equalsApprox=Tn.prototype.Xa,Tn.prototype.equalTo=Tn.prototype.hi,Tn.prototype.equals=Tn.prototype.D,Tn.prototype.setSize=Tn.prototype.tA,Tn.prototype.setPoint=Tn.prototype.dd,Tn.prototype.set=Tn.prototype.set,Tn.prototype.setTo=Tn.prototype.sg;var Ei=null,ro=null,eo=[];Tn.className="Rect",Tn.parse=jl,Tn.stringify=Il,Tn.contains=Po,Tn.intersects=Wa,Tn.ZeroRect=Ei=new Tn(0,0,0,0).ja(),Tn.NoRect=ro=new Tn(NaN,NaN,NaN,NaN).ja(),Tn.parse=jl,Tn.stringify=Il,Tn.contains=Po,Tn.intersects=Wa;function kr(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):Zt("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}kr.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},kr.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},kr.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},kr.prototype.copy=function(){var a=new kr;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},it=kr.prototype,it.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},it.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return Object.isFrozen(this)&&Zt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Da(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 kr;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new kr(x);for(var te=NaN;a[y]==="";)y++;if((b=a[y++])&&(te=parseFloat(b)),isNaN(te))return new kr(x,E);for(var ne=NaN;a[y]==="";)y++;return(b=a[y++])&&(ne=parseFloat(b)),isNaN(ne)?new kr(x,E):new kr(x,E,te,ne)}return new kr}function Fa(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}it.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},it.D=function(a){return a instanceof kr?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},it.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},it.Xa=function(a){return Qt.B(this.top,a.top)&&Qt.B(this.right,a.right)&&Qt.B(this.bottom,a.bottom)&&Qt.B(this.left,a.left)},it.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},kr.alloc=function(){var a=ql.pop();return a===void 0?new kr:a},kr.free=function(a){ql.push(a)},kr.prototype.isReal=kr.prototype.w,kr.prototype.equalsApprox=kr.prototype.Xa,kr.prototype.equalTo=kr.prototype.hi,kr.prototype.equals=kr.prototype.D,kr.prototype.set=kr.prototype.set,kr.prototype.setTo=kr.prototype.sg;var Cs=null,Dl=null,ql=[];kr.className="Margin",kr.parse=Da,kr.stringify=Fa,kr.ZeroMargin=Cs=new kr(0,0,0,0).ja(),kr.TwoMargin=Dl=new kr(2,2,2,2).ja(),kr.parse=Da,kr.stringify=Fa;function wr(a,y,x,b){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),b===void 0&&(b=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=b),this._isFrozen=!1}var oa,Ua,bl,Fl,Bl,Di,mc,el,tl,As,Eu,Ru,_s,hl,Hc,hh,Gc,Wh,Wc,vc,_u,Rl,dh,Uc,yc,qi,Io,Es,Xa,Ba,ua,Pa,$a,Ra,zu,_l;wr.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},wr.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},wr.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},wr.prototype.copy=function(){var a=new wr;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},it=wr.prototype,it.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},it.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return Object.isFrozen(this)&&Zt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ta(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function wd(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return oa;if(a==="TopLeft")return Ua;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return bl;if(a==="TopRight")return Fl;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Bl;if(a==="Center")return Di;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return mc;if(a==="BottomLeft")return el;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return tl;if(a==="BottomRight")return As;if(a==="TopSide")return Eu;if(a==="LeftSide")return Ru;if(a==="RightSide")return _s;if(a==="BottomSide")return hl;if(a==="TopBottomSides")return Hc;if(a==="LeftRightSides")return hh;if(a==="TopLeftSides")return Gc;if(a==="TopRightSides")return Wh;if(a==="BottomLeftSides")return Wc;if(a==="BottomRightSides")return vc;if(a==="NotTopSide")return _u;if(a==="NotLeftSide")return Rl;if(a==="NotRightSide")return dh;if(a==="NotBottomSide")return Uc;if(a==="AllSides")return yc;if(a==="Default")return qi;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0<b.length&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(E=parseFloat(b));for(var te=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(te=parseFloat(b));for(var ne=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(ne=parseFloat(b)),new wr(x,E,te,ne)}return new wr}function bd(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}it.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(oa)?"None":this.D(Ua)?"TopLeft":this.D(bl)?"Top":this.D(Fl)?"TopRight":this.D(Bl)?"Left":this.D(Di)?"Center":this.D(mc)?"Right":this.D(el)?"BottomLeft":this.D(tl)?"Bottom":this.D(As)?"BottomRight":this.D(Eu)?"TopSide":this.D(Ru)?"LeftSide":this.D(_s)?"RightSide":this.D(hl)?"BottomSide":this.D(Hc)?"TopBottomSides":this.D(hh)?"LeftRightSides":this.D(Gc)?"TopLeftSides":this.D(Wh)?"TopRightSides":this.D(Wc)?"BottomLeftSides":this.D(vc)?"BottomRightSides":this.D(_u)?"NotTopSide":this.D(Rl)?"NotLeftSide":this.D(dh)?"NotRightSide":this.D(Uc)?"NotBottomSide":this.D(yc)?"AllSides":this.D(qi)?"Default":"None"},it.D=function(a){return a instanceof wr?(this.x===a.x||isNaN(this.x)&&isNaN(a.x))&&(this.y===a.y||isNaN(this.y)&&isNaN(a.y))&&this.offsetX===a.offsetX&&this.offsetY===a.offsetY:!1},it.gv=function(){return new wr(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},it.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(Io))a=Ru;else if(a.D(Es))a=_s;else if(a.D(Xa))a=Eu;else if(a.D(Ba))a=hl;else return!1;return a=a.offsetY,(this.offsetY&a)===a},it.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},it.Mc=function(){return isNaN(this.x)||isNaN(this.y)},it.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},it.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},it.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},wr.alloc=function(){var a=$c.pop();return a===void 0?new wr:a},wr.free=function(a){$c.push(a)},wr.prototype.isDefault=wr.prototype.Xb,wr.prototype.isNone=wr.prototype.ys,wr.prototype.isSide=wr.prototype.$c,wr.prototype.isNoSpot=wr.prototype.Mc,wr.prototype.isSpot=wr.prototype.sb,wr.prototype.includesSide=wr.prototype.Hf,wr.prototype.opposite=wr.prototype.gv,wr.prototype.equals=wr.prototype.D,wr.prototype.set=wr.prototype.set,wr.prototype.setTo=wr.prototype.sg;var $c=[];wr.className="Spot",wr.parse=wd,wr.stringify=bd,wr.None=oa=Ta(new wr(0,0,0,0),0).ja(),wr.Default=qi=Ta(new wr(0,0,-1,0),-1).ja(),wr.TopLeft=Ua=new wr(0,0,0,0).ja(),wr.TopCenter=bl=new wr(.5,0,0,0).ja(),wr.TopRight=Fl=new wr(1,0,0,0).ja(),wr.LeftCenter=Bl=new wr(0,.5,0,0).ja(),wr.Center=Di=new wr(.5,.5,0,0).ja(),wr.RightCenter=mc=new wr(1,.5,0,0).ja(),wr.BottomLeft=el=new wr(0,1,0,0).ja(),wr.BottomCenter=tl=new wr(.5,1,0,0).ja(),wr.BottomRight=As=new wr(1,1,0,0).ja(),wr.MiddleTop=ua=bl,wr.MiddleLeft=Pa=Bl,wr.MiddleRight=$a=mc,wr.MiddleBottom=Ra=tl,wr.Top=Xa=bl,wr.Left=Io=Bl,wr.Right=Es=mc,wr.Bottom=Ba=tl,wr.TopSide=Eu=Ta(new wr(0,0,1,1),1).ja(),wr.LeftSide=Ru=Ta(new wr(0,0,1,2),1).ja(),wr.RightSide=_s=Ta(new wr(0,0,1,4),1).ja(),wr.BottomSide=hl=Ta(new wr(0,0,1,8),1).ja(),wr.TopBottomSides=Hc=Ta(new wr(0,0,1,9),1).ja(),wr.LeftRightSides=hh=Ta(new wr(0,0,1,6),1).ja(),wr.TopLeftSides=Gc=Ta(new wr(0,0,1,3),1).ja(),wr.TopRightSides=Wh=Ta(new wr(0,0,1,5),1).ja(),wr.BottomLeftSides=Wc=Ta(new wr(0,0,1,10),1).ja(),wr.BottomRightSides=vc=Ta(new wr(0,0,1,12),1).ja(),wr.NotTopSide=_u=Ta(new wr(0,0,1,14),1).ja(),wr.NotLeftSide=Rl=Ta(new wr(0,0,1,13),1).ja(),wr.NotRightSide=dh=Ta(new wr(0,0,1,11),1).ja(),wr.NotBottomSide=Uc=Ta(new wr(0,0,1,7),1).ja(),wr.AllSides=yc=Ta(new wr(0,0,1,15),1).ja(),zu=new wr(.156,.156).ja(),_l=new wr(.844,.844).ja(),wr.parse=wd,wr.stringify=bd;function pi(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}pi.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},pi.prototype.setTransform=function(a,y,x,b,E,te){return this.m11=a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=te,this},pi.prototype.copy=function(){var a=new pi;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},pi.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},pi.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},pi.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},pi.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},pi.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,b=this.m11*a.m21+this.m21*a.m22,E=this.m12*a.m21+this.m22*a.m22;return this.dx=this.m11*a.dx+this.m21*a.dy+this.dx,this.dy=this.m12*a.dx+this.m22*a.dy+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},pi.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,b=-a.m12*y,E=-a.m21*y,te=a.m11*y,ne=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*x+this.m21*b,x=this.m12*x+this.m22*b,b=this.m11*E+this.m21*te,E=this.m12*E+this.m22*te,this.dx=this.m11*ne+this.m21*a+this.dx,this.dy=this.m12*ne+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},pi.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,b=this.m11*a,E=a*(this.m21*this.dy-this.m22*this.dx),te=a*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=te,this},pi.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.m12*a+this.m22*b,te=this.m11*-b+this.m21*a,ne=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=E,this.m21=te,this.m22=ne,this.translate(-y,-x),this},it=pi.prototype,it.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},it.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},it.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)},it.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))},it.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))},it.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,te=this.m11,ne=this.m12,se=this.m21,he=this.m22,ge=this.dx,ye=this.dy,De=y*te+x*se+ge,$e=y*ne+x*he+ye,Qe=b*te+x*se+ge,rt=b*ne+x*he+ye;return x=y*te+E*se+ge,y=y*ne+E*he+ye,te=b*te+E*se+ge,b=b*ne+E*he+ye,E=Math.min(De,Qe),De=Math.max(De,Qe),Qe=Math.min($e,rt),$e=Math.max($e,rt),E=Math.min(E,x),De=Math.max(De,x),Qe=Math.min(Qe,y),$e=Math.max($e,y),E=Math.min(E,te),De=Math.max(De,te),Qe=Math.min(Qe,b),$e=Math.max($e,b),a.h(E,Qe,De-E,$e-Qe),a},pi.alloc=function(){var a=fh.pop();return a===void 0?new pi:a},pi.free=function(a){fh.push(a)},pi.prototype.transformRect=pi.prototype.pp,pi.prototype.transformPoint=pi.prototype.Ga,pi.prototype.scale=pi.prototype.scale,pi.prototype.translate=pi.prototype.translate,pi.prototype.rotate=pi.prototype.rotate,pi.prototype.invert=pi.prototype.Vj,pi.prototype.multiplyInverted=pi.prototype.bv,pi.prototype.multiply=pi.prototype.multiply,pi.prototype.reset=pi.prototype.reset,pi.prototype.isIdentity=pi.prototype.ws,pi.prototype.equals=pi.prototype.D,pi.prototype.setTransform=pi.prototype.setTransform,pi.prototype.set=pi.prototype.set;var fh=[];pi.className="Transform",pi.xF="54a702f3e53909c447824c6706603faf4c";var Qt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Qt.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Qt.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5<a},$:function(a,y){return a-=y,5e-8>a&&-5e-8<a},Yb:function(a,y,x,b,E,te,ne){if(0>=E&&(E=1e-6),a<x)var se=a,he=x;else se=x,he=a;if(y<b)var ge=y,ye=b;else ge=b,ye=y;if(a===x)return ge<=ne&&ne<=ye&&a-E<=te&&te<=a+E;if(y===b)return se<=te&&te<=he&&y-E<=ne&&ne<=y+E;if(he+=E,se-=E,se<=te&&te<=he&&(ye+=E,ge-=E,ge<=ne&&ne<=ye))if(he-se>ye-ge)if(a-x>E||x-a>E){if(te=(b-y)/(x-a)*(te-a)+y,te-E<=ne&&ne<=te+E)return!0}else return!0;else if(y-b>E||b-y>E){if(ne=(x-a)/(b-y)*(ne-y)+a,ne-E<=te&&te<=ne+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,te,ne,se,he,ge,ye,De){if(Qt.Yb(a,y,ne,se,De,x,b)&&Qt.Yb(a,y,ne,se,De,E,te))return Qt.Yb(a,y,ne,se,De,ge,ye);var $e=(a+x)/2,Qe=(y+b)/2,rt=(x+E)/2,ut=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=($e+rt)/2,x=(Qe+ut)/2,rt=(rt+E)/2,ut=(ut+te)/2;var Ot=(b+rt)/2,Tt=(x+ut)/2;return Qt.cs(a,y,$e,Qe,b,x,Ot,Tt,he,ge,ye,De)||Qt.cs(Ot,Tt,rt,ut,E,te,ne,se,he,ge,ye,De)},ax:function(a,y,x,b,E,te,ne,se,he){var ge=(x+E)/2,ye=(b+te)/2;return he.h((((a+x)/2+ge)/2+(ge+(E+ne)/2)/2)/2,(((y+b)/2+ye)/2+(ye+(te+se)/2)/2)/2),he},My:function(a,y,x,b,E,te,ne,se){var he=(x+E)/2,ge=(b+te)/2;return Ir(((a+x)/2+he)/2,((y+b)/2+ge)/2,(he+(E+ne)/2)/2,(ge+(te+se)/2)/2)},Dl:function(a,y,x,b,E,te,ne,se,he,ge){if(Qt.Yb(a,y,ne,se,he,x,b)&&Qt.Yb(a,y,ne,se,he,E,te))Qi(ge,a,y,0,0),Qi(ge,ne,se,0,0);else{var ye=(a+x)/2,De=(y+b)/2,$e=(x+E)/2,Qe=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(ye+$e)/2,x=(De+Qe)/2,$e=($e+E)/2,Qe=(Qe+te)/2;var rt=(b+$e)/2,ut=(x+Qe)/2;Qt.Dl(a,y,ye,De,b,x,rt,ut,he,ge),Qt.Dl(rt,ut,$e,Qe,E,te,ne,se,he,ge)}return ge},Qe:function(a,y,x,b,E,te,ne,se,he,ge){if(Qt.Yb(a,y,ne,se,he,x,b)&&Qt.Yb(a,y,ne,se,he,E,te))ge.length===0&&(ge.push(a),ge.push(y)),ge.push(ne),ge.push(se);else{var ye=(a+x)/2,De=(y+b)/2,$e=(x+E)/2,Qe=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(ye+$e)/2,x=(De+Qe)/2,$e=($e+E)/2,Qe=(Qe+te)/2;var rt=(b+$e)/2,ut=(x+Qe)/2;Qt.Qe(a,y,ye,De,b,x,rt,ut,he,ge),Qt.Qe(rt,ut,$e,Qe,E,te,ne,se,he,ge)}return ge},jv:function(a,y,x,b,E,te,ne,se,he,ge){if(Qt.Yb(a,y,E,te,ge,x,b))return Qt.Yb(a,y,E,te,ge,se,he);var ye=(a+x)/2,De=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var $e=(ye+x)/2,Qe=(De+b)/2;return Qt.jv(a,y,ye,De,$e,Qe,ne,se,he,ge)||Qt.jv($e,Qe,x,b,E,te,ne,se,he,ge)},OA:function(a,y,x,b,E,te,ne){return ne.h(((a+x)/2+(x+E)/2)/2,((y+b)/2+(b+te)/2)/2),ne},iv:function(a,y,x,b,E,te,ne,se){if(Qt.Yb(a,y,E,te,ne,x,b))Qi(se,a,y,0,0),Qi(se,E,te,0,0);else{var he=(a+x)/2,ge=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var ye=(he+x)/2,De=(ge+b)/2;Qt.iv(a,y,he,ge,ye,De,ne,se),Qt.iv(ye,De,x,b,E,te,ne,se)}return se},ep:function(a,y,x,b,E,te,ne,se){if(Qt.Yb(a,y,E,te,ne,x,b))se.length===0&&(se.push(a),se.push(y)),se.push(E),se.push(te);else{var he=(a+x)/2,ge=(y+b)/2;x=(x+E)/2,b=(b+te)/2;var ye=(he+x)/2,De=(ge+b)/2;Qt.ep(a,y,he,ge,ye,De,ne,se),Qt.ep(ye,De,x,b,E,te,ne,se)}return se},Eo:function(a,y,x,b,E,te,ne,se,he,ge,ye,De,$e,Qe){if(Qt.Yb(a,y,ne,se,$e,x,b)&&Qt.Yb(a,y,ne,se,$e,E,te))return!Qt.Rl(a,y,ne,se,he,ge,ye,De)||($e=(a-ne)*(ge-De)-(y-se)*(he-ye),$e===0)?!1:(Qe.h(((a*se-y*ne)*(he-ye)-(a-ne)*(he*De-ge*ye))/$e,((a*se-y*ne)*(ge-De)-(y-se)*(he*De-ge*ye))/$e),!0);var rt=(a+x)/2,ut=(y+b)/2,Ot=(x+E)/2,Tt=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(rt+Ot)/2,x=(ut+Tt)/2,Ot=(Ot+E)/2,Tt=(Tt+te)/2;var Bt=(b+Ot)/2,_t=(x+Tt)/2,Ht=1/0,Vt=!1,hn=0,rr=0;return Qt.Eo(a,y,rt,ut,b,x,Bt,_t,he,ge,ye,De,$e,Qe)&&(a=(Qe.x-he)*(Qe.x-he)+(Qe.y-ge)*(Qe.y-ge),a<Ht&&(Ht=a,Vt=!0,hn=Qe.x,rr=Qe.y)),Qt.Eo(Bt,_t,Ot,Tt,E,te,ne,se,he,ge,ye,De,$e,Qe)&&(Qe.x-he)*(Qe.x-he)+(Qe.y-ge)*(Qe.y-ge)<Ht&&(Vt=!0,hn=Qe.x,rr=Qe.y),Vt&&(Qe.x=hn,Qe.y=rr),Vt},Fo:function(a,y,x,b,E,te,ne,se,he,ge,ye,De,$e){var Qe=0;if(Qt.Yb(a,y,ne,se,$e,x,b)&&Qt.Yb(a,y,ne,se,$e,E,te)){if($e=(a-ne)*(ge-De)-(y-se)*(he-ye),$e===0)return Qe;var rt=((a*se-y*ne)*(he-ye)-(a-ne)*(he*De-ge*ye))/$e,ut=((a*se-y*ne)*(ge-De)-(y-se)*(he*De-ge*ye))/$e;if(rt>=ye)return Qe;if((he>ye?he-ye:ye-he)<(ge>De?ge-De:De-ge)){if(y<se?(he=y,a=se):(he=se,a=y),ut<he||ut>a)return Qe}else if(a<ne?(he=a,a=ne):he=ne,rt<he||rt>a)return Qe;0<$e?Qe++:0>$e&&Qe--}else{rt=(a+x)/2,ut=(y+b)/2;var Ot=(x+E)/2,Tt=(b+te)/2;E=(E+ne)/2,te=(te+se)/2,b=(rt+Ot)/2,x=(ut+Tt)/2,Ot=(Ot+E)/2,Tt=(Tt+te)/2;var Bt=(b+Ot)/2,_t=(x+Tt)/2;Qe+=Qt.Fo(a,y,rt,ut,b,x,Bt,_t,he,ge,ye,De,$e),Qe+=Qt.Fo(Bt,_t,Ot,Tt,E,te,ne,se,he,ge,ye,De,$e)}return Qe},qh:function(a,y,x,b,E,te,ne){return Qt.$(a,x)?(y<b?(x=y,y=b):x=b,te<x?(ne.h(a,x),!1):te>y?(ne.h(a,y),!1):(ne.h(a,te),!0)):Qt.$(y,b)?(a<x?(b=a,a=x):b=x,E<b?(ne.h(b,y),!1):E>a?(ne.h(a,y),!1):(ne.h(E,y),!0)):(E=((a-E)*(a-x)+(y-te)*(y-b))/((x-a)*(x-a)+(b-y)*(b-y)),-5e-6>E?(ne.h(a,y),!1):1.000005<E?(ne.h(x,b),!1):(ne.h(a+E*(x-a),y+E*(b-y)),!0))},Ve:function(a,y,x,b,E,te,ne,se,he){return Qt.B(a,x)&&Qt.B(y,b)?(he.h(a,y),!1):Qt.$(E,ne)?Qt.$(a,x)?(Qt.qh(a,y,x,b,E,te,he),!1):Qt.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,he):(se=(se-te)/(ne-E),Qt.$(a,x)?(x=se*(a-E)+te,y<b?(E=y,y=b):E=b,x<E?(he.h(a,E),!1):x>y?(he.h(a,y),!1):(he.h(a,x),!0)):(ne=(b-y)/(x-a),Qt.$(se,ne)?(Qt.qh(a,y,x,b,E,te,he),!1):(E=(ne*a-se*E+te-y)/(ne-se),Qt.$(ne,0)?(a<x?(b=a,a=x):b=x,E<b?(he.h(b,y),!1):E>a?(he.h(a,y),!1):(he.h(E,y),!0)):Qt.qh(a,y,x,b,E,ne*(E-a)+y,he))))},MA:function(a,y,x,b,E){return Qt.Ve(x.x,x.y,b.x,b.y,a.x,a.y,y.x,y.y,E)},KA:function(a,y,x,b,E,te,ne,se,he,ge){function ye(Ot,Tt){var Bt=(Ot-a)*(Ot-a)+(Tt-y)*(Tt-y);Bt<De&&(De=Bt,he.h(Ot,Tt))}var De=1/0;ye(he.x,he.y);var $e=0,Qe=0,rt=0,ut=0;if(E<ne?($e=E,Qe=ne):($e=ne,Qe=E),te<se?(rt=E,ut=ne):(rt=ne,ut=E),$e=(Qe-$e)/2+ge,ge=(ut-rt)/2+ge,E=(E+ne)/2,te=(te+se)/2,$e===0||ge===0)return he;if(.5>(x>a?x-a:a-x)){if($e=1-(x-E)*(x-E)/($e*$e),0>$e)return he;$e=Math.sqrt($e),b=-ge*$e+te,ye(x,ge*$e+te),ye(x,b)}else{if(x=(b-y)/(x-a),b=1/($e*$e)+x*x/(ge*ge),se=2*x*(y-x*a)/(ge*ge)-2*x*te/(ge*ge)-2*E/($e*$e),$e=se*se-4*b*(2*x*a*te/(ge*ge)-2*y*te/(ge*ge)+te*te/(ge*ge)+E*E/($e*$e)-1+(y-x*a)*(y-x*a)/(ge*ge)),0>$e)return he;$e=Math.sqrt($e),ge=(-se+$e)/(2*b),ye(ge,x*ge-x*a+y),$e=(-se-$e)/(2*b),ye($e,x*$e-x*a+y)}return he},Ff:function(a,y,x,b,E,te,ne,se,he){var ge=1e21,ye=a,De=y;if(Qt.Ve(a,y,a,b,E,te,ne,se,he)){var $e=(he.x-E)*(he.x-E)+(he.y-te)*(he.y-te);$e<ge&&(ge=$e,ye=he.x,De=he.y)}return Qt.Ve(x,y,x,b,E,te,ne,se,he)&&($e=(he.x-E)*(he.x-E)+(he.y-te)*(he.y-te),$e<ge&&(ge=$e,ye=he.x,De=he.y)),Qt.Ve(a,y,x,y,E,te,ne,se,he)&&(y=(he.x-E)*(he.x-E)+(he.y-te)*(he.y-te),y<ge&&(ge=y,ye=he.x,De=he.y)),Qt.Ve(a,b,x,b,E,te,ne,se,he)&&(a=(he.x-E)*(he.x-E)+(he.y-te)*(he.y-te),a<ge&&(ge=a,ye=he.x,De=he.y)),he.h(ye,De),1e21>ge},us:function(a,y,x){return Qt.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,E,te,ne,se){var he=a+x,ge=y+b;return E===ne?(te<se?(ne=te,te=se):ne=se,a<=E&&E<=he&&ne<=ge&&te>=y):te===se?(E<ne?(se=E,E=ne):se=ne,y<=te&&te<=ge&&se<=he&&E>=a):!!(Po(a,y,x,b,E,te)||Po(a,y,x,b,ne,se)||Qt.Rl(a,y,he,y,E,te,ne,se)||Qt.Rl(he,y,he,ge,E,te,ne,se)||Qt.Rl(he,ge,a,ge,E,te,ne,se)||Qt.Rl(a,ge,a,y,E,te,ne,se))},Rl:function(a,y,x,b,E,te,ne,se){return a===x&&y===b&&E===ne&&te===se?a===E&&y===te:0>=Qt.Fl(a,y,x,b,E,te)*Qt.Fl(a,y,x,b,ne,se)&&0>=Qt.Fl(E,te,ne,se,a,y)*Qt.Fl(E,te,ne,se,x,b)},Fl:function(a,y,x,b,E,te){return x-=a,b-=y,a=E-a,y=te-y,te=a*b-y*x,te===0&&(te=a*x+y*b,0<te&&(te=(a-x)*x+(y-b)*b,0>te&&(te=0))),te},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,E,te){var ne=Math.PI;te||(b*=ne/180,E*=ne/180);var se=b>E?-1:1;te=[];var he=ne/2,ge=b;if(b=Math.min(2*ne,Math.abs(E-b)),1e-5>b)return he=ge+se*Math.min(b,he),se=a+x*Math.cos(ge),ge=y+x*Math.sin(ge),a+=x*Math.cos(he),y+=x*Math.sin(he),x=(se+a)/2,he=(ge+y)/2,te.push([se,ge,x,he,x,he,a,y]),te;for(;1e-5<b;)E=ge+se*Math.min(b,he),te.push(Qt.Vy(x,ge,E,a,y)),b-=Math.abs(E-ge),ge=E;return te},Vy:function(a,y,x,b,E){var te=(x-y)/2,ne=a*Math.cos(te),se=a*Math.sin(te),he=-se,ge=ne*ne+he*he,ye=ge+ne*ne+he*se;return ge=4/3*(Math.sqrt(2*ge*ye)-ye)/(ne*se-he*ne),se=ne-ge*he,ne=he+ge*ne,he=-ne,ge=te+y,te=Math.cos(ge),ge=Math.sin(ge),[b+a*Math.cos(y),E+a*Math.sin(y),b+se*te-ne*ge,E+se*ge+ne*te,b+se*te-he*ge,E+se*ge+he*te,b+a*Math.cos(x),E+a*Math.sin(x)]},No:function(a,y,x,b,E,te,ne){x=Math.floor((a-x)/E)*E+x,b=Math.floor((y-b)/te)*te+b;var se=x;return x+E-a<E/2&&(se=x+E),a=b,b+te-y<te/2&&(a=b+te),ne.h(se,a),ne},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var b;do y=x%a,x=b=a,a=y;while(0<y);return b},$y:function(a,y,x,b){var E=0>x,te=0>b;if(a<y)var ne=1,se=0;else ne=0,se=1;var he=ne===0?a:y,ge=ne===0?x:b;return(ne===0?E:te)&&(ge=-ge),ne=se,x=ne===0?x:b,(ne===0?E:te)&&(x=-x),Qt.az(he,ne===0?a:y,ge,x,0,0)},az:function(a,y,x,b,E,te){if(0<b)if(0<x){E=a*a,te=y*y,a*=x;var ne=y*b,se=-te+ne,he=-te+Math.sqrt(a*a+ne*ne);y=se;for(var ge=0;9999999999>ge&&(y=.5*(se+he),!(y===se||y===he));++ge){var ye=a/(y+E),De=ne/(y+te);if(ye=ye*ye+De*De-1,0<ye)se=y;else if(0>ye)he=y;else break}x=E*x/(y+E)-x,b=te*b/(y+te)-b,x=Math.sqrt(x*x+b*b)}else x=Math.abs(b-y);else b=a*a-y*y,te=a*x,te<b?(b=te/b,te=y*Math.sqrt(Math.abs(1-b*b)),x=a*b-x,x=Math.sqrt(x*x+te*te)):x=Math.abs(x-a);return x},Ze:new pr,um:new pr,Mf:new pr,Nf:0,vm:100};Qt.za=Qt.AA;function Yn(a){ui(this),this.l=2,a===void 0&&(a=Yn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Yn.o?this.ee=new An:(Yn.V===null&&(Yn.V=new An().freeze()),this.ee=Yn.V),this.aq=this.ee.Ja,this.Ip=new Tn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Ua,this.gg=As,this.Rk=this.Sk=NaN,this.Uf=Un}Yn.prototype.copy=function(){var a=new Yn;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===Yn.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},Yn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Yn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Yn.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},Yn.prototype.ka=function(){if(Object.isFrozen(this)&&Zt("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Yn.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},Yn.prototype.Xa=function(a){if(!(a instanceof Yn))return!1;if(this.type!==a.type)return this.type===Yn.j&&a.type===Yn.o?Pd(this,a):a.type===Yn.j&&this.type===Yn.o?Pd(a,this):!1;if(this.type===Yn.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 Qt.B(this.startX,a.startX)&&Qt.B(this.startY,a.startY)&&Qt.B(this.endX,a.endX)&&Qt.B(this.endY,a.endY)};function Pd(a,y){return a.type!==Yn.j||y.type!==Yn.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Qt.B(a.startX,y.startX)&&Qt.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===yo&&Qt.B(a.endX,y.endX)&&Qt.B(a.endY,y.endY))))}Yn.ia=function(a){return a.toString()},Yn.prototype.qb=function(a){a.classType===Yn&&(this.type=a)},Yn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Yn.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 Yn.u:var y=new Tn(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 Yn.F:if(y=new Tn(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 Yn.o:y="",x=this.figures.s;for(var b=x.length,E=0;E<b;E++){var te=x[E];0<E&&(y+=" x "),te.isFilled&&(y+="F "),y+=te.toString(a)}return y;default:return this.type.toString()}},Yn.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",b=0;b<y;b++){var E=a[b];x=E.match(/[Ff]/)!==null?b===0?x+E:x+("X"+(E[0]===" "?"":" ")+E):x+((b===0?"":"X ")+"F"+(E[0]===" "?"":" ")+E)}return x},Yn.parse=function(a,y){function x(){return ut>=Ht-1?!0:ge[ut+1].match(Vt)!==null}function b(){return ut++,ge[ut]}function E(Jr){var Wr=parseFloat(b()),$i=parseFloat(b());Ot===Ot.toLowerCase()&&(Wr=_t.x+Wr,$i=_t.y+$i),Jr.h(Wr,$i)}function te(){return E(_t),_t}function ne(){return E(Bt),Bt}function se(){var Jr=Tt.toLowerCase();return Jr!=="c"&&Jr!=="s"&&Jr!=="q"&&Jr!=="t"?_t:new Lt(2*_t.x-Bt.x,2*_t.y-Bt.y)}y===void 0&&(y=!1);var he=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(he,"$1 $2"),a=a.replace(he,"$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 ge=a.split(" ");for(a=0;a<ge.length;a++){var ye=ge[a];if(ye.match(/(\.[0-9]*)(\.)/gm)!==null){he=xn();for(var De="",$e=!1,Qe=0;Qe<ye.length;Qe++){var rt=ye[Qe];rt!=="."||$e?rt==="."?(he.push(De),De="."):De+=rt:($e=!0,De+=rt)}for(he.push(De),ge.splice(a,1),ye=0;ye<he.length;ye++)ge.splice(a+ye,0,he[ye]);a+=he.length-1,In(he)}}var ut=-1,Ot="",Tt="";he=new Lt(0,0);var Bt=new Lt(0,0),_t=new Lt(0,0),Ht=ge.length;a=O1(null),$e=De=ye=!1,Qe=!0,rt=null;for(var Vt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(ut>=Ht-1);)if(Tt=Ot,Ot=b(),Ot!=="")switch(Ot.toUpperCase()){case"X":Qe=!0,De=ye=!1;break;case"M":for(rt=te(),a.mc===null||Qe===!0?(yp(a,rt.x,rt.y,ye,!De,$e),Qe=!1):a.moveTo(rt.x,rt.y),he.assign(_t);!x();)rt=te(),a.lineTo(rt.x,rt.y);break;case"L":for(;!x();)rt=te(),a.lineTo(rt.x,rt.y);break;case"H":for(;!x();)_t=new Lt((Ot===Ot.toLowerCase()?_t.x:0)+parseFloat(b()),_t.y),a.lineTo(_t.x,_t.y);break;case"V":for(;!x();)_t=new Lt(_t.x,(Ot===Ot.toLowerCase()?_t.y:0)+parseFloat(b())),a.lineTo(_t.x,_t.y);break;case"C":for(;!x();){rt=new Lt,E(rt);var hn=ne(),rr=te();Eh(a,rt.x,rt.y,hn.x,hn.y,rr.x,rr.y)}break;case"S":for(;!x();)rt=se(),hn=ne(),rr=te(),Eh(a,rt.x,rt.y,hn.x,hn.y,rr.x,rr.y);break;case"Q":for(;!x();)rt=ne(),hn=te(),Gm(a,rt.x,rt.y,hn.x,hn.y);break;case"T":for(;!x();)Bt=rt=se(),hn=te(),Gm(a,rt.x,rt.y,hn.x,hn.y);break;case"B":for(;!x();){rt=parseFloat(b()),hn=parseFloat(b()),rr=parseFloat(b());var fr=parseFloat(b()),cr=parseFloat(b()),Zn=cr,Bn=!1;x()||(Zn=parseFloat(b()),x()||(Bn=parseFloat(b())!==0)),Ot===Ot.toLowerCase()&&(rr+=_t.x,fr+=_t.y),a.arcTo(rt,hn,rr,fr,cr,Zn,Bn)}break;case"A":for(;!x();)rt=Math.abs(parseFloat(b())),hn=Math.abs(parseFloat(b())),rr=parseFloat(b()),cr=fr=!1,Bn=Zn=0,Zn=b(),Zn.length===1?(fr=!!parseFloat(Zn),cr=!!parseFloat(b()),Zn=parseFloat(b())):Zn.length===2?(fr=!!parseFloat(Zn[0]),cr=!!parseFloat(Zn[1]),Zn=parseFloat(b())):(fr=!!parseFloat(Zn[0]),cr=!!parseFloat(Zn[1]),Zn=parseFloat(Zn.slice(2))),Bn=parseFloat(b()),Ot===Ot.toLowerCase()&&(Zn=_t.x+Zn,Bn=_t.y+Bn),_t.h(Zn,Bn),Px(a,rt,hn,rr,fr,cr,Zn,Bn);break;case"Z":bx(a),_t.assign(he);break;case"F":for(rt="",hn=1;ge[ut+hn];)if(ge[ut+hn]==="0")$e=!0,hn++;else if(ge[ut+hn].match(/[Uu]/)!==null)hn++;else if(ge[ut+hn].match(Vt)===null)hn++;else{rt=ge[ut+hn];break}rt.match(/[Mm]/)?ye=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(rt="",hn=1;ge[ut+hn];)if(ge[ut+hn].match(/[Ff]/)!==null)hn++;else if(ge[ut+hn].match(Vt)===null)hn++;else{rt=ge[ut+hn];break}rt.match(/[Mm]/)?De=!0:a.mc.isShadowed=!1}if(he=a.os,Wm=a,y)for(y=he.figures.iterator;y.next();)y.value.isFilled=!0;return he},Yn.Ha=function(a,y){for(var x=a.length,b=Lt.alloc(),E=0;E<x;E++){var te=a[E];b.x=te[0],b.y=te[1],y.Ga(b),te[0]=b.x,te[1]=b.y,b.x=te[2],b.y=te[3],y.Ga(b),te[2]=b.x,te[3]=b.y,b.x=te[4],b.y=te[5],y.Ga(b),te[4]=b.x,te[5]=b.y,b.x=te[6],b.y=te[7],y.Ga(b),te[6]=b.x,te[7]=b.y}Lt.free(b)},Yn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Yn.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},Yn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Yn.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var b=a[x];b._isInvalidBounds=!1;var E=b.segments;b.sr=E.Ja,b=E.s,E=b.length;for(var te=0;te<E;te++){var ne=b[te];ne._isInvalidBounds=!1,ne.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),af(this,a,!1),Qi(a,0,0,0,0),a.freeze()},Yn.prototype.ix=function(){var a=new Tn;return af(this,a,!0),a};function af(a,y,x){switch(a.type){case Yn.j:case Yn.u:case Yn.F:x?y.h(a.od,a.pd,0,0):Qi(y,a.od,a.pd,0,0),Qi(y,a.Dc,a.Ec,0,0);break;case Yn.o:var b=a.figures;a=b.s,b=b.length;for(var E=0;E<b;E++){var te=a[E];x&&E===0?y.h(te.startX,te.startY,0,0):Qi(y,te.startX,te.startY,0,0);for(var ne=te.segments.s,se=ne.length,he=te.startX,ge=te.startY,ye=0;ye<se;ye++){var De=ne[ye];switch(De.type){case yo:case ga:he=De.endX,ge=De.endY,Qi(y,he,ge,0,0);break;case as:Qt.Dl(he,ge,De.point1X,De.point1Y,De.point2X,De.point2Y,De.endX,De.endY,.5,y),he=De.endX,ge=De.endY;break;case Pl:Qt.iv(he,ge,De.point1X,De.point1Y,De.endX,De.endY,.5,y),he=De.endX,ge=De.endY;break;case ca:case zl:var $e=De.type===ca?nl(De,te):zs(De,te,he,ge),Qe=$e.length;if(Qe===0){he=De.type===ca?De.centerX:De.endX,ge=De.type===ca?De.centerY:De.endY,Qi(y,he,ge,0,0);break}De=null;for(var rt=0;rt<Qe;rt++)De=$e[rt],Qt.Dl(De[0],De[1],De[2],De[3],De[4],De[5],De[6],De[7],.5,y);De!==null&&(he=De[6],ge=De[7]);break;default:Zt("Unknown Segment type: "+De.type)}}}break;default:Zt("Unknown Geometry type: "+a.type)}}Yn.prototype.normalize=function(){this._isFrozen&&jn(this);var a=this.ix();return this.offset(-a.x,-a.y),new Lt(-a.x,-a.y)},Yn.prototype.offset=function(a,y){return this._isFrozen&&jn(this),this.transform(1,0,0,1,a,y),this},Yn.prototype.scale=function(a,y){return this._isFrozen&&jn(this),this.transform(a,0,0,y,0,0),this},Yn.prototype.rotate=function(a,y,x){this._isFrozen&&jn(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=pi.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),pi.free(b),this},it=Yn.prototype,it.transform=function(a,y,x,b,E,te){switch(this.type){case Yn.j:case Yn.u:case Yn.F:var ne=this.od,se=this.pd;this.od=ne*a+se*x+E,this.pd=ne*y+se*b+te,ne=this.Dc,se=this.Ec,this.Dc=ne*a+se*x+E,this.Ec=ne*y+se*b+te;break;case Yn.o:for(var he=this.figures.s,ge=he.length,ye=0;ye<ge;ye++){var De=he[ye];ne=De.startX,se=De.startY,De.startX=ne*a+se*x+E,De.startY=ne*y+se*b+te,De=De.segments.s;for(var $e=De.length,Qe=0;Qe<$e;Qe++){var rt=De[Qe];switch(rt.type){case yo:case ga:ne=rt.endX,se=rt.endY,rt.endX=ne*a+se*x+E,rt.endY=ne*y+se*b+te;break;case as:ne=rt.point1X,se=rt.point1Y,rt.point1X=ne*a+se*x+E,rt.point1Y=ne*y+se*b+te,ne=rt.point2X,se=rt.point2Y,rt.point2X=ne*a+se*x+E,rt.point2Y=ne*y+se*b+te,ne=rt.endX,se=rt.endY,rt.endX=ne*a+se*x+E,rt.endY=ne*y+se*b+te;break;case Pl:ne=rt.point1X,se=rt.point1Y,rt.point1X=ne*a+se*x+E,rt.point1Y=ne*y+se*b+te,ne=rt.endX,se=rt.endY,rt.endX=ne*a+se*x+E,rt.endY=ne*y+se*b+te;break;case ca:ne=rt.centerX,se=rt.centerY,rt.centerX=ne*a+se*x+E,rt.centerY=ne*y+se*b+te,y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),rt.startAngle+=ne),0>a&&(rt.startAngle=180-rt.startAngle,rt.sweepAngle=-rt.sweepAngle),0>b&&(rt.startAngle=-rt.startAngle,rt.sweepAngle=-rt.sweepAngle),rt.radiusX*=Math.sqrt(a*a+x*x),rt.radiusY!==void 0&&(rt.radiusY*=Math.sqrt(y*y+b*b));break;case zl:if(ne=rt.endX,se=rt.endY,rt.endX=ne*a+se*x+E,rt.endY=ne*y+se*b+te,rt.radiusX===0||rt.radiusY===0)break;y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),rt.xAxisRotation+=ne),0>a&&(rt.xAxisRotation=180-rt.xAxisRotation,rt.isClockwiseArc=!rt.isClockwiseArc),0>b&&(rt.xAxisRotation=-rt.xAxisRotation,rt.isClockwiseArc=!rt.isClockwiseArc),rt.radiusX*=Math.sqrt(a*a+x*x),rt.radiusY*=Math.sqrt(y*y+b*b);break;default:Zt("Unknown Segment type: "+rt.type)}}}}return this._isInvalidBounds=!0,this},it.ca=function(a,y){y===void 0&&(y=0);var x=this.od,b=this.pd,E=this.Dc,te=this.Ec;switch(this.type){case Yn.j:return Qt.Yb(x,b,E,te,y,a.x,a.y);case Yn.u:var ne=Tn.allocAt(Math.min(x,E)-y,Math.min(b,te)-y,Math.abs(E-x)+2*y,Math.abs(te-b)+2*y);return a=ne.ca(a),Tn.free(ne),a;case Yn.F:ne=Math.min(x,E)-y;var se=Math.min(b,te)-y;return x=(Math.abs(E-x)+2*y)/2,y=(Math.abs(te-b)+2*y)/2,0>=x||0>=y?!1:(ne=a.x-(ne+x),se=a.y-(se+y),1>=ne*ne/(x*x)+se*se/(y*y));case Yn.o:return Hu(this,a,y,!0,!1);default:return!1}};function Hu(a,y,x,b,E){var te=y.x;y=y.y;for(var ne=a.bounds.x-20,se=0,he,ge,ye,De,$e=a.figures.s,Qe=$e.length,rt=0;rt<Qe;rt++){var ut=$e[rt],Ot=!ut.isEvenOdd;if(ut.isFilled){if(b&&ut.ca(te,y,x))return!0;var Tt=ut.segments;he=ut.startX,ge=ut.startY;for(var Bt=he,_t=ge,Ht=Tt.s,Vt=0;Vt<=Tt.length;Vt++){var hn=void 0;if(Vt!==Tt.length){hn=Ht[Vt];var rr=hn.type;a=hn.endX,De=hn.endY}else rr=yo,a=Bt,De=_t;switch(rr){case ga:if(Bt=Gu(te,y,ne,y,he,ge,Bt,_t),isNaN(Bt))return!0;se+=Bt,Bt=a,_t=De;break;case yo:if(he=Gu(te,y,ne,y,he,ge,a,De),isNaN(he))return!0;se+=he;break;case as:ye=Qt.Fo(he,ge,hn.point1X,hn.point1Y,hn.point2X,hn.point2Y,a,De,ne,y,te,y,.5),se+=ye;break;case Pl:ye=Qt.Fo(he,ge,(he+2*hn.point1X)/3,(ge+2*hn.point1Y)/3,(2*hn.point1X+a)/3,(2*hn.point1Y+De)/3,a,De,ne,y,te,y,.5),se+=ye;break;case ca:case zl:rr=hn.type===ca?nl(hn,ut):zs(hn,ut,he,ge);var fr=rr.length;if(fr===0){if(he=Gu(te,y,ne,y,he,ge,hn.type===ca?hn.centerX:hn.endX,hn.type===ca?hn.centerY:hn.endY),isNaN(he))return!0;se+=he;break}hn=null;for(var cr=0;cr<fr;cr++){if(hn=rr[cr],cr===0){if(ye=Gu(te,y,ne,y,he,ge,hn[0],hn[1]),isNaN(ye))return!0;se+=ye}ye=Qt.Fo(hn[0],hn[1],hn[2],hn[3],hn[4],hn[5],hn[6],hn[7],ne,y,te,y,.5),se+=ye}hn!==null&&(a=hn[6],De=hn[7]);break;default:Zt("Unknown Segment type: "+hn.type)}he=a,ge=De}if(Ot){if(se!==0)return!0}else if(se%2!==0)return!0;se=0}else if(ut.ca(te,y,E?x:x+2))return!0}return!1}function Gu(a,y,x,b,E,te,ne,se){if(Qt.Yb(E,te,ne,se,.05,a,y))return NaN;var he=(a-x)*(te-se);if(he===0)return 0;var ge=((a*b-y*x)*(E-ne)-(a-x)*(E*se-te*ne))/he;if(y=(a*b-y*x)*(te-se)/he,ge>=a)return 0;if((E>ne?E-ne:ne-E)<(te>se?te-se:se-te)){if(te<se){if(y<te||y>se)return 0}else if(y<se||y>te)return 0}else if(E<ne){if(ge<E||ge>ne)return 0}else if(ge<ne||ge>E)return 0;return 0<he?1:-1}function ic(a,y,x,b){a=a.figures.s;for(var E=a.length,te=0;te<E;te++)if(a[te].ca(y,x,b))return!0;return!1}it.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Lt),this.type===Yn.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,te=this.flattenedTotalLength*a,ne=0,se=0;se<E;se++){var he=b[se],ge=he.length;for(a=0;a<ge;a++){var ye=he[a];if(ne+ye>=te)return b=te-ne,b=ye===0?0:b/ye,x=x[se],se=x[2*a],E=x[2*a+1],y.h(se+(x[2*a+2]-se)*b,E+(x[2*a+3]-E)*b),y;ne+=ye}}return y},it.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Yn.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,b=y.length,E=this.flattenedTotalLength*a,te=0,ne=0;ne<b;ne++){var se=x[ne],he=se.length;for(a=0;a<he;a++){var ge=se[a];if(te+ge>=E)return E=y[ne],y=E[2*a],x=E[2*a+1],b=E[2*a+2],a=E[2*a+3],1>Math.abs(b-y)&&1>Math.abs(a-x)?0:1>Math.abs(b-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=b-y?0:180:180*Math.atan2(a-x,b-y)/Math.PI;te+=ge}}return NaN},it.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Yn.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,te=this.flattenedTotalLength*a,ne=0,se=0;se<E;se++){var he=b[se],ge=he.length;for(a=0;a<ge;a++){var ye=he[a];if(ne+ye>=te)return b=te-ne,b=ye===0?0:b/ye,ye=x[se],x=ye[2*a],se=ye[2*a+1],E=ye[2*a+2],a=ye[2*a+3],y[0]=x+(E-x)*b,y[1]=se+(a-se)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-se)?0:1>Math.abs(E-x)?0<=a-se?90:270:1>Math.abs(a-se)?0<=E-x?0:180:180*Math.atan2(a-se,E-x)/Math.PI,y;ne+=ye}}return y},it.xx=function(a){if(this.type===Yn.j){var y=this.startX,x=this.startY,b=this.endX,E=this.endY;if(y!==b||x!==E){var te=a.x;if(a=a.y,y===b){if(x<E){var ne=x;b=E}else ne=E,b=x;return a<=ne?ne===x?0:1:a>=b?b===x?0:1:Math.abs(a-x)/(b-ne)}if(x===E)return y<b?ne=y:(ne=b,b=y),te<=ne?ne===y?0:1:te>=b?b===y?0:1:Math.abs(te-y)/(b-ne);ne=(b-y)*(b-y)+(E-x)*(E-x);var se=Lt.alloc();return Qt.qh(y,x,b,E,te,a,se),a=se.x,te=se.y,Lt.free(se),Math.sqrt(((a-y)*(a-y)+(te-x)*(te-x))/ne)}}else if(this.type===Yn.u){ne=this.startX,se=this.startY;var he=this.endX;if(E=this.endY,ne!==he||se!==E){y=he-ne,x=E-se,te=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,ne),he),a=Math.min(Math.max(a,se),E),ne=Math.abs(b-ne),he=Math.abs(b-he),se=Math.abs(a-se),E=Math.abs(a-E);var ge=Math.min(ne,he,se,E);if(ge===se)return b/te;if(ge===he)return(y+a)/te;if(ge===E)return(2*y+x-b)/te;if(ge===ne)return(2*y+2*x-a)/te}}else{y=this.flattenedSegments,x=this.flattenedLengths,te=this.flattenedTotalLength,b=Lt.alloc(),E=1/0,se=ne=0,he=y.length;for(var ye=ge=0,De=0;De<he;De++)for(var $e=y[De],Qe=x[De],rt=$e.length,ut=0;ut<rt;ut+=2){var Ot=$e[ut],Tt=$e[ut+1];if(ut!==0){Qt.qh(ge,ye,Ot,Tt,a.x,a.y,b);var Bt=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);Bt<E&&(E=Bt,ne=se,ne+=Math.sqrt((b.x-ge)*(b.x-ge)+(b.y-ye)*(b.y-ye))),se+=Qe[(ut-2)/2]}ge=Ot,ye=Tt}return Lt.free(b),a=ne/te,0>a?0:1<a?1:a}return 0};function Cd(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===Yn.j)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.endY),y.push(b),E.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(E);else if(a.type===Yn.u)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.startY),b.push(a.endX),b.push(a.endY),b.push(a.startX),b.push(a.endY),b.push(a.startX),b.push(a.startY),y.push(b),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),x.push(E);else if(a.type===Yn.F){var te=new _a;te.startX=a.endX,te.startY=(a.startY+a.endY)/2;var ne=new zi(ca);if(ne.startAngle=0,ne.sweepAngle=360,ne.centerX=(a.startX+a.endX)/2,ne.centerY=(a.startY+a.endY)/2,ne.radiusX=Math.abs(a.startX-a.endX)/2,ne.radiusY=Math.abs(a.startY-a.endY)/2,te.add(ne),a=nl(ne,te),E=a.length,E===0)b.push(ne.centerX),b.push(ne.centerY);else{ne=te.startX,te=te.startY;for(var se=0;se<E;se++){var he=a[se];Qt.Qe(ne,te,he[2],he[3],he[4],he[5],he[6],he[7],.5,b),ne=he[6],te=he[7]}}y.push(b),x.push(ph(b))}else for(a=a.figures.iterator;a.next();){E=a.value,b=[],b.push(E.startX),b.push(E.startY),ne=E.startX,te=E.startY,se=ne,he=te;for(var ge=E.segments.s,ye=ge.length,De=0;De<ye;De++){var $e=ge[De];switch($e.type){case ga:4<=b.length&&(y.push(b),x.push(ph(b))),b=[],b.push($e.endX),b.push($e.endY),ne=$e.endX,te=$e.endY,se=ne,he=te;break;case yo:b.push($e.endX),b.push($e.endY),ne=$e.endX,te=$e.endY;break;case as:Qt.Qe(ne,te,$e.point1X,$e.point1Y,$e.point2X,$e.point2Y,$e.endX,$e.endY,.5,b),ne=$e.endX,te=$e.endY;break;case Pl:Qt.ep(ne,te,$e.point1X,$e.point1Y,$e.endX,$e.endY,.5,b),ne=$e.endX,te=$e.endY;break;case ca:var Qe=nl($e,E),rt=Qe.length;if(rt===0){b.push($e.centerX),b.push($e.centerY),ne=$e.centerX,te=$e.centerY;break}for(var ut=0;ut<rt;ut++){var Ot=Qe[ut];Qt.Qe(ne,te,Ot[2],Ot[3],Ot[4],Ot[5],Ot[6],Ot[7],.5,b),ne=Ot[6],te=Ot[7]}break;case zl:if(Qe=zs($e,E,ne,te),rt=Qe.length,ut=$e.endX,Ot=$e.endY,rt===0){b.push(ut),b.push(Ot),ne=ut,te=Ot;break}for(ut=0;ut<rt;ut++)Ot=Qe[ut],Qt.Qe(ne,te,Ot[2],Ot[3],Ot[4],Ot[5],Ot[6],Ot[7],.5,b),ne=Ot[6],te=Ot[7];break;default:Zt("Segment not of valid type: "+$e.type)}$e.isClosed&&(b.push(se),b.push(he))}4<=b.length&&(y.push(b),x.push(ph(b)))}}}function ph(a){for(var y=[],x=0,b=0,E=a.length,te=0;te<E;te+=2){var ne=a[te],se=a[te+1];te!==0&&y.push(Math.sqrt(Or(x,b,ne,se))),x=ne,b=se}return y}it.add=function(a){return this.ee.add(a),this},it.pm=function(a,y,x,b,E,te,ne,se){return this._isFrozen&&jn(this),this.fg=new wr(a,y,E,te).freeze(),this.gg=new wr(x,b,ne,se).freeze(),this},jt.Object.defineProperties(Yn.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 Cd(this),this.tk}},flattenedLengths:{get:function(){return Cd(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Yn.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===Yn.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var x=y.length,b=a=0;b<x;b++)for(var E=y[b],te=E.length,ne=0;ne<te;ne++)a+=E[ne]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&jn(this,a),this.na=a,a===Yn.o?this.ee=new An:(Yn.V===null&&(Yn.V=new An().freeze()),this.ee=Yn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&jn(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&jn(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&jn(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&jn(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&jn(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&jn(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&jn(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&jn(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Yn.prototype.setSpots=Yn.prototype.pm,Yn.prototype.add=Yn.prototype.add,Yn.prototype.getFractionForPoint=Yn.prototype.xx,Yn.prototype.getPointAndAngleAlongPath=Yn.prototype.Qu,Yn.prototype.getAngleAlongPath=Yn.prototype.wx,Yn.prototype.getPointAlongPath=Yn.prototype.Pu,Yn.prototype.containsPoint=Yn.prototype.ca,Yn.prototype.transform=Yn.prototype.transform,Yn.prototype.rotate=Yn.prototype.rotate,Yn.prototype.scale=Yn.prototype.scale,Yn.prototype.offset=Yn.prototype.offset,Yn.prototype.normalize=Yn.prototype.normalize,Yn.prototype.computeBoundsWithoutOrigin=Yn.prototype.ix,Yn.prototype.equalsApprox=Yn.prototype.Xa,Yn.className="Geometry",Yn.j=new en(Yn,"Line",0),Yn.u=new en(Yn,"Rectangle",1),Yn.F=new en(Yn,"Ellipse",2),Yn.o=new en(Yn,"Path",3),Yn.V=null,Yn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Yn.className="Geometry",Yn.stringify=Yn.ia,Yn.fillPath=Yn.nb,Yn.parse=Yn.parse,Yn.Line=Yn.j,Yn.Rectangle=Yn.u,Yn.Ellipse=Yn.F,Yn.Path=Yn.o;function _a(a,y,x,b,E){ui(this),x===void 0&&(x=!0),b===void 0&&(b=!0),E===void 0&&(E=!1),this.l=2|(x?4:0)|(b?8:0)|(E?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new An,this.sr=this.pl.Ja,this.fw=null}_a.prototype.copy=function(){var a=new _a;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,b=a.pl,E=0;E<x;E++){var te=y[E].copy();b.add(te)}return a.sr=this.sr,a.fw=this.fw,a},it=_a.prototype,it.Xa=function(a){if(!(a instanceof _a&&Qt.B(this.startX,a.startX)&&Qt.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},it.toString=function(a){a===void 0&&(a=-1);for(var y=0>a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,b=x.length,E=0;E<b;E++)y+=" "+x[E].toString(a);return y},it.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},it.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},it.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},it.add=function(a){return this.pl.add(a),this},it.ca=function(a,y,x){for(var b=this.startX,E=this.startY,te=b,ne=E,se=this.segments.s,he=se.length,ge=0;ge<he;ge++){var ye=se[ge];switch(ye.type){case ga:te=ye.endX,ne=ye.endY,b=ye.endX,E=ye.endY;break;case yo:if(Qt.Yb(b,E,ye.endX,ye.endY,x,a,y))return!0;b=ye.endX,E=ye.endY;break;case as:if(Qt.cs(b,E,ye.point1X,ye.point1Y,ye.point2X,ye.point2Y,ye.endX,ye.endY,.5,a,y,x))return!0;b=ye.endX,E=ye.endY;break;case Pl:if(Qt.jv(b,E,ye.point1X,ye.point1Y,ye.endX,ye.endY,.5,a,y,x))return!0;b=ye.endX,E=ye.endY;break;case ca:case zl:var De=ye.type===ca?nl(ye,this):zs(ye,this,b,E),$e=De.length,Qe=ye.type===ca?ye.centerX:ye.endX,rt=ye.type===ca?ye.centerY:ye.endY;if($e===0){if(Qt.Yb(b,E,Qe,rt,x,a,y))return!0;b=Qe,E=rt;break}for(Qe=null,rt=0;rt<$e;rt++)if(Qe=De[rt],rt===0&&Qt.Yb(b,E,Qe[0],Qe[1],x,a,y)||Qt.cs(Qe[0],Qe[1],Qe[2],Qe[3],Qe[4],Qe[5],Qe[6],Qe[7],.5,a,y,x))return!0;Qe!==null&&(b=Qe[6],E=Qe[7]);break;default:Zt("Unknown Segment type: "+ye.type)}if(ye.isClosed&&(b!==te||E!==ne)&&Qt.Yb(b,E,te,ne,x,a,y))return!0}return!1},jt.Object.defineProperties(_a.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&&jn(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&jn(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&jn(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&jn(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&jn(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&jn(this,a),this.pl=a,this._isInvalidBounds=!0}}}),_a.prototype.add=_a.prototype.add,_a.prototype.equalsApprox=_a.prototype.Xa,_a.className="PathFigure";function zi(a,y,x,b,E,te,ne,se){ui(this),a===void 0&&(a=yo),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,b===void 0&&(b=0),E===void 0&&(E=0),te===void 0&&(te=0),ne===void 0&&(ne=0),a===zl?(a=te%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(E,0),typeof ne=="boolean"?ne&&(this.isLargeArc=!0):typeof ne=="number"&&ne&&(this.isLargeArc=!0),se&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===ca&&(te=Math.max(te,0)),this.Wh=te,typeof ne=="number"?(a===ca&&(ne=Math.max(ne,0)),this.Pg=ne):this.Pg=0),this.ae=null}zi.prototype.copy=function(){var a=new zi;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},it=zi.prototype,it.Xa=function(a){if(!(a instanceof zi)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case ga:case yo:return Qt.B(this.endX,a.endX)&&Qt.B(this.endY,a.endY);case as:return Qt.B(this.endX,a.endX)&&Qt.B(this.endY,a.endY)&&Qt.B(this.point1X,a.point1X)&&Qt.B(this.point1Y,a.point1Y)&&Qt.B(this.point2X,a.point2X)&&Qt.B(this.point2Y,a.point2Y);case Pl:return Qt.B(this.endX,a.endX)&&Qt.B(this.endY,a.endY)&&Qt.B(this.point1X,a.point1X)&&Qt.B(this.point1Y,a.point1Y);case ca:return Qt.B(this.startAngle,a.startAngle)&&Qt.B(this.sweepAngle,a.sweepAngle)&&Qt.B(this.centerX,a.centerX)&&Qt.B(this.centerY,a.centerY)&&Qt.B(this.radiusX,a.radiusX)&&Qt.B(this.radiusY,a.radiusY);case zl:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Qt.B(this.xAxisRotation,a.xAxisRotation)&&Qt.B(this.endX,a.endX)&&Qt.B(this.endY,a.endY)&&Qt.B(this.radiusX,a.radiusX)&&Qt.B(this.radiusY,a.radiusY);default:return!1}},it.qb=function(a){a.classType===zi&&(this.type=a)},it.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ga:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case yo:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case as: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 Pl: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 ca: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 zl: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":"")},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return this._isFrozen=!1,this},it.close=function(){return this.isClosed=!0,this};function nl(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,b=a.radiusY;if(b===void 0&&(b=x),x===0||b===0)return a.ae=[],a.ae;y=a.Ne;var E=a.Vh,te=Qt.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var ne=pi.alloc();ne.reset(),x<b?ne.scale(1,b/x):ne.scale(x/b,1),Yn.Ha(te,ne),pi.free(ne)}for(x=te.length,b=0;b<x;b++)ne=te[b],ne[0]+=y,ne[1]+=E,ne[2]+=y,ne[3]+=E,ne[4]+=y,ne[5]+=E,ne[6]+=y,ne[7]+=E;return a.ae=te,a.ae}function zs(a,y,x,b){function E(ut,Ot,Tt,Bt){return(ut*Bt<Ot*Tt?-1:1)*Math.acos((ut*Tt+Ot*Bt)/(Math.sqrt(ut*ut+Ot*Ot)*Math.sqrt(Tt*Tt+Bt*Bt)))}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 te=a.Pg;y===0&&(y=1e-4),te===0&&(te=1e-4);var ne=Math.PI/180*a.Ne,se=a.isLargeArc,he=a.isClockwiseArc,ge=a.Dc,ye=a.Ec,De=Math.cos(ne),$e=Math.sin(ne),Qe=De*(x-ge)/2+$e*(b-ye)/2;ne=-$e*(x-ge)/2+De*(b-ye)/2;var rt=Qe*Qe/(y*y)+ne*ne/(te*te);return 1<rt&&(y*=Math.sqrt(rt),te*=Math.sqrt(rt)),rt=(se===he?-1:1)*Math.sqrt((y*y*te*te-y*y*ne*ne-te*te*Qe*Qe)/(y*y*ne*ne+te*te*Qe*Qe)),isNaN(rt)&&(rt=0),se=rt*y*ne/te,rt=rt*-te*Qe/y,isNaN(se)&&(se=0),isNaN(rt)&&(rt=0),x=(x+ge)/2+De*se-$e*rt,b=(b+ye)/2+$e*se+De*rt,ye=E(1,0,(Qe-se)/y,(ne-rt)/te),De=(Qe-se)/y,ge=(ne-rt)/te,Qe=(-Qe-se)/y,se=(-ne-rt)/te,ne=E(De,ge,Qe,se),Qe=(De*Qe+ge*se)/(Math.sqrt(De*De+ge*ge)*Math.sqrt(Qe*Qe+se*se)),-1>=Qe?ne=Math.PI:1<=Qe&&(ne=0),!he&&0<ne&&(ne-=2*Math.PI),he&&0>ne&&(ne+=2*Math.PI),he=y>te?1:y/te,Qe=y>te?te/y:1,y=Qt.jx(0,0,y>te?y:te,ye,ye+ne,!0),te=pi.alloc(),te.reset(),te.translate(x,b),te.rotate(a.Ne,0,0),te.scale(he,Qe),Yn.Ha(y,te),pi.free(te),a.ae=y,a.ae}jt.Object.defineProperties(zi.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&&jn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&jn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&jn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&jn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&jn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&jn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&jn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&jn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&jn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Fn(a,">= zero",zi,"radiusX"),this._isFrozen&&jn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Fn(a,">= zero",zi,"radiusY"),this._isFrozen&&jn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&jn(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&&jn(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&&jn(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&&jn(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&&jn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),zi.prototype.equalsApprox=zi.prototype.Xa;var ga=new en(zi,"Move",0),yo=new en(zi,"Line",1),as=new en(zi,"Bezier",2),Pl=new en(zi,"QuadraticBezier",3),ca=new en(zi,"Arc",4),zl=new en(zi,"SvgArc",4);zi.className="PathSegment",zi.Move=ga,zi.Line=yo,zi.Bezier=as,zi.QuadraticBezier=Pl,zi.Arc=ca,zi.SvgArc=zl;function ws(){this.H=null,this.xu=new Lt(0,0).freeze(),this.mt=new Lt(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}ws.prototype.copy=function(){var a=new ws;return this.clone(a)},ws.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},ws.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},ws.prototype.So=function(a,y){var x=this.diagram;return x===null||Ad(x,a,y),y},ws.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Ad(x,a,y),y.assign(x.Ps(y))),y},jt.Object.defineProperties(ws.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}}}),ws.prototype.getMultiTouchDocumentPoint=ws.prototype.Bz,ws.prototype.getMultiTouchViewPoint=ws.prototype.So,ws.className="InputEvent";function Kc(){this.H=null,this.xa="",this.ar=this.Lr=null}Kc.prototype.copy=function(){var a=new Kc;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Kc.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},jt.Object.defineProperties(Kc.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}}}),Kc.className="DiagramEvent";function _o(){this.Fm=zo,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}_o.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},_o.prototype.copy=function(){var a=new _o;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=nn(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=nn(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=nn(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=nn(y)&&typeof y.J=="function"?y.J():y,a},_o.prototype.qb=function(a){a.classType===_o&&(this.change=a)},_o.prototype.toString=function(){var a="";return a=this.change===rl?a+"* ":this.change===zo?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===rl?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Nn(this.object)),this.oldValue!==null&&(a+=" old: "+Nn(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Nn(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},_o.prototype.I=function(a){return a?this.oldValue:this.newValue},_o.prototype.Dz=function(a){return a?this.oldParam:this.newParam},_o.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},_o.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},_o.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},_o.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},jt.Object.defineProperties(_o.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===rl&&(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}}}),_o.prototype.redo=_o.prototype.redo,_o.prototype.canRedo=_o.prototype.canRedo,_o.prototype.undo=_o.prototype.undo,_o.prototype.canUndo=_o.prototype.canUndo,_o.prototype.getParam=_o.prototype.Dz,_o.prototype.getValue=_o.prototype.I,_o.prototype.clear=_o.prototype.clear;var rl=new en(_o,"Transaction",-1),zo=new en(_o,"Property",0),sa=new en(_o,"Insert",1),Ma=new en(_o,"Remove",2);_o.className="ChangedEvent",_o.Transaction=rl,_o.Property=zo,_o.Insert=sa,_o.Remove=Ma;function Ka(){this.o=new An().freeze(),this.xa="",this.j=!1}Ka.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},Ka.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()},Ka.prototype.canUndo=function(){return this.isComplete},Ka.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()}},Ka.prototype.canRedo=function(){return this.isComplete},Ka.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()}},Ka.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new dr,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===zo&&b.object){var E=y.get(b.object);E||(E=new dr,y.set(b.object,E));var te=E.get(b.propertyName);te===null?E.set(b.propertyName,-1):(0<te&&a.cd(te,null),E.set(b.propertyName,x))}}for(x=y=0;x<a.count;x++)b=a.M(x),b!==null&&(x>y&&a.cd(y,b),y++);for(;a.length>y;)a.pop();a.freeze()}},jt.Object.defineProperties(Ka.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}}}),Ka.prototype.optimize=Ka.prototype.ak,Ka.prototype.redo=Ka.prototype.redo,Ka.prototype.canRedo=Ka.prototype.canRedo,Ka.prototype.undo=Ka.prototype.undo,Ka.prototype.canUndo=Ka.prototype.canUndo,Ka.prototype.clear=Ka.prototype.clear,Ka.className="Transaction";function Wo(){this.Pt=new Dn,this.Jd=!1,this.u=new An().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new An().freeze(),this.hl=new An,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Wo.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},Wo.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},Wo.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},it=Wo.prototype,it.Xw=function(a){this.Pt.add(a)},it.Rx=function(a){this.Pt.remove(a)},it.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},it.eb=function(a){return a===void 0&&(a=""),Zc(this,!0,a)},it.Kf=function(){return Zc(this,!1,"")};function Zc(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&ar("Ending transaction without having started a transaction: "+x);var b=a.transactionLevel===1,E=a.currentTransaction;b&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,E));var te=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var ne=a.Ie.count;0<ne&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(ne-1),a.Ie.freeze()),ne=a.hl.count,0<ne&&(te=a.hl.M(ne-1),a.hl.mb(ne-1))}if(b){if(y)a.rq=!1,E===null&&x!==""&&(E=a.currentTransaction),a.isEnabled&&E!==null&&(E.isComplete||(E.isComplete=!0,E.name=x),a.lx(),y=a.history,y.ka(),b=a.maxHistoryLength,0<=b&&(b===0?y.clear():y.count>=b&&(te=y.M(0),te!==null&&te.clear(),y.mb(0),a.Ce--)),b===0||y.count!==0&&y.get(y.count-1)===E||(y.add(E),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,E);else{a.Fe=!0;try{a.isEnabled&&E!==null&&(E.isComplete=!0,E.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,E),a.Fe=!1}E!==null&&E.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&E!==null){for(a=te,x=E.changes,E=x.count-1;E>=a;E--)y=x.M(E),y!==null&&y.undo(),x.ka(),x.mb(E);x.freeze()}return!1}it.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()}},Wo.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Wo.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){ar("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Wo.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Wo.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){ar("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Wo.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new _o;for(b.change=rl,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},Wo.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Ka);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||ar("Change not within a transaction: "+x.toString()))}},Wo.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},jt.Object.defineProperties(Wo.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}}}),Wo.prototype.handleChanged=Wo.prototype.Tu,Wo.prototype.redo=Wo.prototype.redo,Wo.prototype.undo=Wo.prototype.undo,Wo.prototype.canUndo=Wo.prototype.canUndo,Wo.prototype.discardHistoryAfterIndex=Wo.prototype.lx,Wo.prototype.rollbackTransaction=Wo.prototype.Kf,Wo.prototype.commitTransaction=Wo.prototype.eb,Wo.prototype.startTransaction=Wo.prototype.Ea,Wo.prototype.removeModel=Wo.prototype.Rx,Wo.prototype.addModel=Wo.prototype.Xw,Wo.prototype.clear=Wo.prototype.clear,Wo.className="UndoManager";function Ri(){ui(this),this.H=Zu,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new ws,this.Zr=-1}Ri.prototype.toString=function(){return this.name!==""?this.name+" Tool":gn(this.constructor)},Ri.prototype.updateAdornments=function(){},Ri.prototype.canStart=function(){return this.isEnabled},Ri.prototype.doStart=function(){},Ri.prototype.doActivate=function(){this.isActive=!0},Ri.prototype.doDeactivate=function(){this.isActive=!1},Ri.prototype.doStop=function(){},Ri.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Ri.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Ri.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Ri.prototype.doMouseMove=function(){},Ri.prototype.doMouseUp=function(){this.stopTool()},Ri.prototype.doMouseWheel=function(){},Ri.prototype.canStartMultiTouch=function(){return!0},Ri.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Lt.allocAt(NaN,NaN)),b=y.So(1,Lt.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var E=b.x-x.x,te=b.y-x.y;a.Jw=Math.sqrt(E*E+te*te),y.bubbles=!1}Lt.free(x),Lt.free(b)},Ri.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Lt.allocAt(NaN,NaN)),b=y.So(1,Lt.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var E=b.x-x.x,te=b.y-x.y;te=Math.sqrt(E*E+te*te)/a.Jw,E=new Lt((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),te*=a.Bw;var ne=a.commandHandler;if(te!==a.scale&&ne.canResetZoom(te)){var se=a.zoomPoint;a.zoomPoint=E,ne.resetZoom(te),a.zoomPoint=se}y.bubbles=!1}Lt.free(x),Lt.free(b)},Ri.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Ri.prototype.doKeyUp=function(){},Ri.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Ri.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Ri.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(Hr?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||(Hr?y.meta:y.control)||y.shift||a.clearSelection()}},Ri.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(E){return!E.layer.isTemporary});var x=this.diagram,b=x.lastInput;return a=x.ic(b.documentPoint,a,y),b.targetObject=a,Wf(a,b,x),b.handled};function Wf(a,y,x){if(y.handled=!1,a===null||a.If()){var b=0;y.left?b=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(b=3);var E="ObjectSingleClicked";if(a!==null){switch(b){case 1:E="ObjectSingleClicked";break;case 2:E="ObjectDoubleClicked";break;case 3:E="ObjectContextClicked"}b!==0&&x.R(E,a)}else{switch(b){case 1:E="BackgroundSingleClicked";break;case 2:E="BackgroundDoubleClicked";break;case 3:E="BackgroundContextClicked"}b!==0&&x.R(E)}if(a!==null)for(;a!==null;){switch(x=null,b){case 1:x=a.click;break;case 2:x=a.doubleClick?a.doubleClick:a.click;break;case 3:x=a.contextClick}if(x!==null&&(x(y,a),y.handled))break;a=a.panel}else{switch(a=null,b){case 1:a=x.click;break;case 2:a=x.doubleClick?x.doubleClick:x.click;break;case 3:a=x.contextClick}a!==null&&a(y)}}}Ri.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var b=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(b=null),y.targetObject=b;var E=!1;if(b!==a.Ck){var te=a.Ck,ne=te;for(a.Ck=b,this.doCurrentObjectChanged(te,b),y.handled=!1;te!==null;){var se=te.mouseLeave;if(se!==null&&(b===te||b!==null&&b.rg(te)||(se(y,te,b),E=!0,y.handled)))break;te=te.panel}for(te=ne,y.handled=!1;b!==null&&(ne=b.mouseEnter,!(ne!==null&&(te===b||te!==null&&te.rg(b)||(ne(y,b,te),E=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(te=b,ne="";te!==null&&(ne=te.cursor,ne==="");)te=te.panel;for(a.currentCursor=ne,y.handled=!1,te=b;te!==null&&(b=te.mouseOver,!(b!==null&&(b(y,te),E=!0,y.handled)));)te=te.panel}else this.doUpdateCursor(null),b=a.mouseOver,b!==null&&(b(y),E=!0);E&&a.$b(),a.skipsUndoManager=x}},Ri.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Ri.prototype.doCurrentObjectChanged=function(){},Ri.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var b=a.commandHandler,E=a.toolManager.mouseWheelBehavior;if(b!==null&&(E===$h&&!y.shift||E===Uh&&y.control))(0<x?b.canIncreaseZoom():b.canDecreaseZoom())&&(E=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?b.increaseZoom():b.decreaseZoom(),a.zoomPoint=E),y.bubbles=!1;else if(E===$h&&y.shift||E===Uh&&!y.control){b=a.position.copy();var te=y.event;E=te.deltaMode;var ne=te.deltaX;te=te.deltaY;var se="pixel";if(ne===0&&te===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(se,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(se,0<x?"left":"right",Math.abs(x)));else{switch(E){case 0:se="pixel";break;case 1:se="line";break;case 2:se="page"}ne!==0&&a.allowHorizontalScroll&&(ne*=a.scrollHorizontalLineChange/16,a.scroll(se,0<ne?"right":"left",Math.abs(ne))),te!==0&&a.allowVerticalScroll&&(te*=a.scrollVerticalLineChange/16,a.scroll(se,0<te?"down":"up",Math.abs(te)))}this.doWheelChange(a,b,y)}}},Ri.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},Ri.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=Jn(function(){x.doWaitAfter(b)},a)},Ri.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Dt.clearTimeout(this.Zr),this.Zr=-1},Ri.prototype.doWaitAfter=function(){},Ri.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Gi);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},Ri.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var b=x.toolManager.dragSize,E=b.width;return b=b.height,x.firstInput.isTouchEvent&&(E+=6,b+=6),Math.abs(y.x-a.x)>E||Math.abs(y.y-a.y)>b},jt.Object.defineProperties(Ri.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof cn&&(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}}}),Ri.prototype.startTransaction=Ri.prototype.Ea,Ri.className="Tool";function Do(){Ri.call(this),this.name="ToolManager",this.hb=new An,this.ob=new An,this.Hb=new An,this.F=this.V=850,this.o=new Xn(2,2).ja(),this.Ha=5e3,this.ia=Uh,this.u=Ed,this.Mp=this.j=null,this.zj=-1}Jt(Do,Ri),Do.prototype.initializeStandardTools=function(){},Do.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Gi&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Do.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Sc&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Vc){y.bubbles=!0;return}if(this.gestureBehavior===Sc)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===Uh?this.mouseWheelBehavior=$h:this.mouseWheelBehavior===$h&&(this.mouseWheelBehavior=Uh)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Do.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Vc){y.bubbles=!0;return}if(this.gestureBehavior===Sc)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,b=0;b<x;b++){var E=this.mouseMoveTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseMove());return}}Uf(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Uf(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Do.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Gi&&(y===a||y.rg(a))||this.hideToolTip()},Do.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()))},Do.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)},Do.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 Gi)||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()},Do.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Gi){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 vi&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Dt.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=Jn(function(){E.hideToolTip()},a)}},Do.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y=x.y+20/y.scale+b.height>E.bottom?x.y-(b.height+5/y.scale):x.y+20/y.scale,x.y<E.y&&(x.y=E.y),a.position=x}},Do.prototype.hideToolTip=function(){this.zj!==-1&&(Dt.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Gi?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof vi&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Do.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()},Do.prototype.doMouseWheel=function(){this.standardMouseWheel()},Do.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Do.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Do.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},Do.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.name===a)return y!==null?this.mouseDownTools.cd(b,y):this.mouseDownTools.mb(b),E}for(x=this.mouseMoveTools.length,b=0;b<x;b++)if(E=this.mouseMoveTools.M(b),E.name===a)return y!==null?this.mouseMoveTools.cd(b,y):this.mouseMoveTools.mb(b),E;for(x=this.mouseUpTools.length,b=0;b<x;b++)if(E=this.mouseUpTools.M(b),E.name===a)return y!==null?this.mouseUpTools.cd(b,y):this.mouseUpTools.mb(b),E;return null},Do.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)},jt.Object.defineProperties(Do.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 Gi?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}}}),Do.prototype.replaceStandardTool=Do.prototype.gb;var Uh=new en(Do,"WheelScroll",0),$h=new en(Do,"WheelZoom",1),$f=new en(Do,"WheelNone",2),Ed=new en(Do,"GestureZoom",3),Sc=new en(Do,"GestureCancel",4),Vc=new en(Do,"GestureNone",5);Do.className="ToolManager",Do.WheelScroll=Uh,Do.WheelZoom=$h,Do.WheelNone=$f,Do.GestureZoom=Ed,Do.GestureCancel=Sc,Do.GestureNone=Vc;function Uo(){Ri.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 Lt(NaN,NaN),this.Fr=new Lt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Dn().freeze(),this.ia=new de,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Wu;Jt(Uo,Ri),Uo.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},Uo.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},Uo.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,(Hr?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Uo.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),sn=null,this.isActive=!0,this.tl.set(a.position),sf(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&&Ms(a),Jf(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,sn=this,wn=this.diagram,this.doSimulatedDragOut()))};function sf(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof Vn?(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 Sr,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Uo.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Uo.prototype.Pd=function(a){return a===void 0?new Qc(Pi):this.isGridSnapEnabled?new Qc(new Lt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Qc(a.copy())},Uo.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),Xc(this),Xh(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Wu.count){for(var y=Wu,x=y.length,b=0;b<x;b++){var E=y.M(b);xc(E),pu(E),Xc(E),E.diagram.ug()}y.clear()}xc(this),this.tl.h(NaN,NaN),wn!==null&&(wn.currentCursor=""),sn=wn=null,pu(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Kh(a,!0)},Uo.prototype.stopTransaction=function(){var a=this.diagram,y=Ri.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function Xc(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,lf(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Kf(){var a=sn;pu(a),wc(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Uo.prototype.doCancel=function(){pu(this),wc(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Uo.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Uo.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Uu(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")):wc(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 dr,b=a.draggedParts.iterator;b.next();){var E=b.key;if(E.Zc()&&E.canCopy()){var te=y.I(E);te!==null&&(te.location=E.location,te.Va(),x.add(te,a.Pd(te.location)))}}for(y=y.iterator;y.next();)b=y.value,b instanceof Vn&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,sf(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Lh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function pu(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 Vn&&(x.value.point=new Lt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function xc(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 Tu(a,y,x){var b=a.diagram,E=a.startPoint,te=Lt.alloc();te.assign(b.lastInput.documentPoint),a.moveParts(y,te.re(E),x),Lt.free(te),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(Ms(b),b.hk())}Uo.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&ac(b,a,y,this.dragOptions,x)};function wc(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 Vn&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),Lh(b,-E.x,-E.y)}y.bd()}}function Td(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),dl(a,!1));var b=a.findDragOverObject(y),E=x.lastInput;E.targetObject=b,a.doUpdateCursor(b);var te=x.skipsUndoManager,ne=!1;try{if(x.skipsUndoManager=!0,ne=lf(a,E,b),!a.isActive&&sn===null)return;var se=b!==null?b.part:null;if(se===null||x.handlesDragDropForTopLevelParts&&se.isTopLevel&&!(se instanceof ei)){var he=x.mouseDragOver;he!==null&&(he(E),ne=!0)}if(!a.isActive&&sn===null||(a.doDragOver(y,b),!a.isActive&&sn===null))return}finally{x.skipsUndoManager=te,ne&&x.bd()}a.Bn=b,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(E.viewPoint)}Uo.prototype.findDragOverObject=function(a){var y=this;return Lu(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof Gi||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Uo.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 lf(a,y,x){var b=!1,E=a.Cg.length,te=0<E?a.Cg[0]:null;if(x===te)return!1;y.handled=!1;for(var ne=0;ne<E;ne++){var se=a.Cg[ne],he=se.mouseDragLeave;if(he!==null&&(he(y,se,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&sn===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=uf(E);for(E=a.Cg.length,x=0;x<E&&(ne=a.Cg[x],se=ne.mouseDragEnter,se===null||(se(y,ne,te),b=!0,!y.handled));x++);return b}function uf(a){var y=a.panel;return y!==null?y:a instanceof Tr&&!(a instanceof ei)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Zf(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(ge){return b.findValidLinkablePort(ge,x)});a=Lt.alloc();var te=1/0,ne=null;for(E=E.iterator;E.next();){var se=E.value;if(se.part!==null){var he=se.ga(Di,a);he=y.Bf(he),he<te&&(ne=se,te=he)}}return Lt.free(a),ne}function dl(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var E=a.Oe;if(E!==null){var te=null,ne=null;x.fromNode===null&&(te=Zf(a,x.i(0),!1),te!==null&&(ne=te.part));var se=null,he=null;x.toNode===null&&(se=Zf(a,x.i(x.pointsCount-1),!0),se!==null&&(he=se.part)),E.isValidLink(ne,te,he,se)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=ne,te!==null&&(x.fromPortId=te.portId),x.toNode=he,se!==null&&(x.toPortId=se.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):qr(E,ne,te,he,se):qr(E,null,null,null,null)}}}}Uo.prototype.doDragOver=function(){};function bc(a,y){var x=a.diagram;a.dragsLink&&dl(a,!0),Xc(a);var b=a.findDragOverObject(y),E=x.lastInput;if(E.targetObject=b,b!==null){E.handled=!1;for(var te=b;te!==null;){var ne=te.mouseDrop;if(ne!==null&&(ne(E,te),E.handled))break;$p(a,E,te),te=uf(te)}}else te=x.mouseDrop,te!==null&&te(E);if(a.isActive||sn!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)te=E.key,te instanceof sr&&te.linksConnected.each(function(se){se.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||sn!==null){for(a=Tn.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof sr&&Ft(x,b,a);Tn.free(a)}}}function $p(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof ei||(x=a.mouseDrop,x!==null&&x(y))}function Ft(a,y,x){var b=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(b=!0),a=a.Nu(x,function(E){return E.part},function(E){return E instanceof Vn},!0,function(E){return E instanceof Vn},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Uo.prototype.doDropOnto=function(){},Uo.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()?(Uu(this,!1),Jf(a,this.copiedParts),Tu(this,this.copiedParts,!1),Xh(a,this.copiedParts)):this.mayMove()?(pu(this),Tu(this,this.draggedParts,!0)):this.mayDragOut()?(Uu(this,!1),Tu(this,this.copiedParts,!1)):pu(this),Td(this,a.lastInput.documentPoint))}},Uo.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?(pu(this),Uu(this,!0),Jf(a,this.copiedParts),Tu(this,this.copiedParts,!1),Xh(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0}))):(y=!0,pu(this),this.mayMove()&&(Tu(this,this.draggedParts,!0),Td(this,a.lastInput.documentPoint))),this.Ym=!0,bc(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&Rt(this),a.Ya(),Xh(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Uo.prototype.simulatedMouseMove=function(a,y,x){if(sn===null)return!1;var b=sn.diagram;x instanceof cn||(x=null);var E=wn;return x!==E&&(E!==null&&E!==b&&(E.ug(),sn.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),wn=x,x!==null&&x!==b&&(Kf(),E=x.toolManager.findTool("Dragging"),E!==null&&(Wu.contains(E)||Wu.add(E),E.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===b||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(b=x.toolManager.findTool("Dragging"),b!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!1,b.doSimulatedDragOver()),!0)},Uo.prototype.simulatedMouseUp=function(a,y,x){if(sn===null)return!1;var b=wn,E=sn.diagram;if(x===null)return sn.doCancel(),!0;if(x!==b){var te=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&te!==null)return b.ug(),sn.isDragOutStarted=!1,te.doSimulatedDragLeave(),!1;wn=x,b=x.toolManager.findTool("Dragging"),b!==null&&(Kf(),Wu.contains(b)||Wu.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 Lt),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=sn,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function Rt(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof sr&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Uo.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Hr?!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())},Uo.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())},Uo.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())},Uo.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Uo.prototype.Az=function(){return sn},Uo.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=sn;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Uo.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),il(a),a.animationManager.Cc(),a=sn,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Uo.prototype.doSimulatedDragLeave=function(){var a=sn;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Uo.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=sn;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;rn(this,y.draggedParts.Lf(),!1,a.firstInput),Tu(this,this.copiedParts,!1),Td(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Uo.prototype.doSimulatedDrop=function(){var a=this.diagram,y=sn;if(y!==null){var x=y.diagram;if(y.Ym=!0,pu(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),rn(this,y.draggedParts.Lf(),!0,a.lastInput),Tu(this,this.copiedParts,!1);var b=new Dn;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),bc(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 rn(a,y,x,b){if(a.copiedParts===null){var E=a.diagram;if(!E.isReadOnly&&!E.isModelReadOnly){E.skipsUndoManager=!x,E.partManager.addsToTemporaryLayer=!x,a.startPoint=b.documentPoint,x=E.Kj(y,E,!0);var te=Tn.alloc();E=b=1/0;for(var ne=-1/0,se=-1/0,he=y.iterator;he.next();){var ge=he.value;if(ge.isVisible()){var ye=ge.location;ge=ye.x,ye=ye.y,isNaN(ge)||isNaN(ye)||(ge<b&&(b=ge),ye<E&&(E=ye),ge>ne&&(ne=ge),ye>se&&(se=ye))}}for(b===1/0?te.h(0,0,0,0):te.h(b,E,ne-b,se-E),b=te.x+te.width/2,E=te.y+te.height/2,Tn.free(te),te=a.Fr,ne=new dr,se=Lt.alloc(),he=y.iterator;he.next();)ge=he.value,ge instanceof Vn&&ge.canCopy()&&(ye=x.I(ge),ye!==null&&(ye.points=ge.points,Lh(ye,te.x-b,te.y-E),ye.suspendsRouting=!0,ne.add(ye,a.Pd())));for(y=y.iterator;y.next();)ge=y.value,ge.Zc()&&ge.canCopy()&&(he=x.I(ge),he!==null&&(ge=ge.location,se.h(te.x-(b-ge.x),te.y-(E-ge.y)),he.location=se,he.Va(),ne.add(he,a.Pd(se))));Lt.free(se),a.copiedParts=ne,sf(a,ne.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Lh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Uo.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Uo.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Lt},jt.Object.defineProperties(Uo.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}}}),Uo.prototype.getDraggingSource=Uo.prototype.Az;var sn=null,wn=null;Uo.className="DraggingTool",Wu=new An,En("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Do.prototype.doCancel=function(){sn!==null&&sn.doCancel(),Ri.prototype.doCancel.call(this)};function fn(){Ri.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Vn,y=new hi;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new hi,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new sr,y=new hi,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=po,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new sr,y=new hi,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=po,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 dr,this.Of=this.gj=this.Pf=null}Jt(fn,Ri),fn.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},fn.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var te=y.Df(),ne=Xn.alloc();ne.width=y.naturalBounds.width*te,ne.height=y.naturalBounds.height*te,b.desiredSize=ne,Xn.free(ne),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Di,te=Lt.alloc(),x.location=y.ga(Di,te),Lt.free(te),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},fn.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=po,y.fromSpot=oa,y.toSpot=oa),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},fn.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},fn.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof sr){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)}},fn.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof sr))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof sr)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},fn.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var E=this,te=y.og(x,b,function(De){return E.findValidLinkablePort(De,a)},null,!0);for(b=1/0,y=null,te=te.iterator;te.next();){var ne=te.value,se=ne.part;if(se instanceof sr){var he=ne.ga(Di,Lt.alloc()),ge=x.x-he.x,ye=x.y-he.y;Lt.free(he),he=ge*ge+ye*ye,he<b&&(ge=this.validPortsCache.I(ne),ge!==null?ge&&(y=ne,b=he):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,se,ne)||!a&&this.isValidLink(se,ne,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(ne,!0),y=ne,b=he):this.validPortsCache.add(ne,!1))}}return y!==null&&(x=y.part,x instanceof sr&&(x.layer===null||x.layer.allowLink))?y:null},fn.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},fn.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},fn.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},fn.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof sr))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof sr))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},fn.prototype.isValidLink=function(a,y,x,b){if(!this.isValidFrom(a,y)||!this.isValidTo(x,b)||!(y===null||b===null||(y.fromLinkableSelfNode&&b.toLinkableSelfNode||!this.isInSameNode(y,b))&&(y.fromLinkableDuplicates&&b.toLinkableDuplicates||!this.isLinked(y,b)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var E=a.linkValidation;if(E!==null&&!E(a,y,x,b,this.originalLink))return!1}return x!==null&&(E=x.linkValidation,E!==null&&!E(a,y,x,b,this.originalLink))?!1:(E=this.linkValidation,E!==null?E(a,y,x,b,this.originalLink):!0)},fn.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 Dn;return b.add(a),Hn(this,x,y,b)};function Hn(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),Hn(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),Hn(a,y.labeledLink,x,b))))}fn.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!==mf){if(b===og){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=y.linksConnected;b.next();){var E=b.value;if(E!==x&&E.isTreeLink&&E.toNode===y)return!1}return!Wn(this,a,y,x,!0)}if(b===ag){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=a.linksConnected;b.next();)if(E=b.value,E!==x&&E.isTreeLink&&E.fromNode===a)return!1;return!Wn(this,a,y,x,!0)}if(b===ng)return a===y?a=!0:(b=new Dn,b.add(y),a=_n(this,b,a,y,x)),!a;if(b===rg)return!Wn(this,a,y,x,!1);if(b===ig)return a===y?a=!0:(b=new Dn,b.add(y),a=nr(this,b,a,y,x)),!a}return!0};function Wn(a,y,x,b,E){if(y===x)return!0;if(y===null||x===null)return!1;for(var te=y.linksConnected;te.next();){var ne=te.value;if(ne!==b&&(!E||ne.isTreeLink)&&ne.toNode===y&&(ne=ne.fromNode,ne!==y&&Wn(a,ne,x,b,E)))return!0}return!1}function _n(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var te=x.linksConnected;te.next();){var ne=te.value;if(ne!==E&&ne.toNode===x&&(ne=ne.fromNode,ne!==x&&_n(a,y,ne,b,E)))return!0}return!1}function nr(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var te=x.linksConnected;te.next();){var ne=te.value;if(ne!==E){var se=ne.fromNode;if(ne=ne.toNode,se=se===x?ne:se,se!==x&&nr(a,y,se,b,E))return!0}}return!1}jt.Object.defineProperties(fn.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}}}),fn.className="LinkingBaseTool";function lr(){fn.call(this),this.name="Linking",this.V={},this.F=null,this.K=or,this.Xd=null}Jt(lr,fn),lr.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},lr.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 sr)))return null;var x=this.direction;if(x===or||x===Nr){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===or||x===Er)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},lr.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 sr&&(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 sr&&(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)},lr.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()},lr.prototype.doStop=function(){fn.prototype.doStop.call(this),this.startObject=null},lr.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,E=null,te=null;try{var ne=this.targetPort=this.findTargetPort(this.isForwards);if(ne!==null){var se=ne.part;se instanceof sr&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=se,E=ne):(y=se,x=ne,this.originalToNode!==null&&(b=this.originalToNode,E=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,E=this.originalToPort);y!==null||b!==null?(te=this.insertLink(y,x,b,E),te!==null?(ne===null&&(this.isForwards?te.defaultToPoint=a.lastInput.documentPoint:te.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),te.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",te)):this.doNoLink(y,x,b,E)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),te&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},lr.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Vn)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)},lr.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},lr.prototype.doNoLink=function(){},jt.Object.defineProperties(lr.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 or=new en(lr,"Either",0),Nr=new en(lr,"ForwardsOnly",0),Er=new en(lr,"BackwardsOnly",0);lr.className="LinkingTool",lr.Either=or,lr.ForwardsOnly=Nr,lr.BackwardsOnly=Er;function Sr(){fn.call(this),this.name="Relinking";var a=new hi;a.figure="Diamond",a.desiredSize=To,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new hi,a.figure="Diamond",a.desiredSize=To,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new Tn}Jt(Sr,fn),Sr.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Vn){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)}},Sr.prototype.makeAdornment=function(a,y){var x=new Gi;return x.type=Kn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Sr.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},Sr.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 Gi&&x.adornedPart instanceof Vn))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=no),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=no),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},Sr.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===wp||x===kh)&&(x=Ks),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}},Sr.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()},Sr.prototype.doStop=function(){fn.prototype.doStop.call(this),this.handle=null},Sr.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,b=this.originalToNode,E=this.originalToPort,te=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var ne=this.targetPort.part;ne instanceof sr&&(this.isForwards?(b=ne,E=this.targetPort):(y=ne,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?E=b=null:x=y=null:te=null;te!==null?(this.reconnectLink(te,this.isForwards?b:y,this.isForwards?E:x,this.isForwards),this.targetPort===null&&(this.isForwards?te.defaultToPoint=a.lastInput.documentPoint:te.defaultFromPoint=a.lastInput.documentPoint,te.bb()),this.transactionResult=this.name,a.R("LinkRelinked",te,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},Sr.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},Sr.prototype.doNoRelink=function(){};function qr(a,y,x,b,E){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),b!==null?(a.copyPortProperties(b,E,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}jt.Object.defineProperties(Sr.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 Gi))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),Sr.className="RelinkingTool",En("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),En("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function br(){Ri.call(this),this.name="LinkReshaping";var a=new hi;a.figure="Rectangle",a.desiredSize=Vo,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new hi,a.figure="Diamond",a.desiredSize=To,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Lt,this.Yq=new An}Jt(br,Ri),br.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:Kr},br.prototype.om=function(a,y){a.reshapingBehavior=y},br.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Vn){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)}},br.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new Gi,E.type=Kn.Link,x=y.firstPickIndex;var te=y.lastPickIndex,ne=b?1:0;if(y.resegmentable&&y.computeCurve()!==Yl)for(var se=x+ne;se<te-ne;se++){var he=this.makeResegmentHandle(a,se);he!==null&&(he.segmentIndex=se,he.segmentFraction=.5,he.fromMaxLinks=999,E.add(he))}for(ne=x+1;ne<te;ne++)if(se=this.makeHandle(a,ne),se!==null){if(se.segmentIndex=ne,ne!==x)if(ne===x+1&&b){he=y.i(x);var ge=y.i(x+1);Qt.B(he.x,ge.x)&&Qt.B(he.y,ge.y)&&(ge=y.i(x-1)),Qt.B(he.x,ge.x)?(this.om(se,Li),se.cursor="n-resize"):Qt.B(he.y,ge.y)&&(this.om(se,li),se.cursor="w-resize")}else ne===te-1&&b?(he=y.i(te-1),ge=y.i(te),Qt.B(he.x,ge.x)&&Qt.B(he.y,ge.y)&&(he=y.i(te+1)),Qt.B(he.x,ge.x)?(this.om(se,Li),se.cursor="n-resize"):Qt.B(he.y,ge.y)&&(this.om(se,li),se.cursor="w-resize")):ne!==te&&(this.om(se,Hi),se.cursor="move");E.add(se)}E.adornedObject=a}return E},br.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},br.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},br.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},br.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 Vn){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}}},br.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},br.prototype.stopTransaction=function(){var a=this.diagram,y=Ri.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},br.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},br.prototype.getResegmentingPoint=function(){return this.handle.ga(Di)},br.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},br.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var x=this.handle.segmentIndex,b=y.i(x-1),E=y.i(x),te=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var ne=y.i(x-2);if(Math.abs(b.x-E.x)<this.resegmentingDistance&&Math.abs(b.y-E.y)<this.resegmentingDistance&&(Yr(this,ne,b,E,te,!0)||Yr(this,ne,b,E,te,!1))){var se=y.points.copy();Yr(this,ne,b,E,te,!0)?(se.cd(x-2,new Lt(ne.x,(te.y+ne.y)/2)),se.cd(x+1,new Lt(te.x,(te.y+ne.y)/2))):(se.cd(x-2,new Lt((te.x+ne.x)/2,ne.y)),se.cd(x+1,new Lt((te.x+ne.x)/2,te.y))),se.mb(x),se.mb(x-1),y.points=se,y.Wb()}else ne=y.i(x+2),Math.abs(E.x-te.x)<this.resegmentingDistance&&Math.abs(E.y-te.y)<this.resegmentingDistance&&(Yr(this,b,E,te,ne,!0)||Yr(this,b,E,te,ne,!1))&&(se=y.points.copy(),Yr(this,b,E,te,ne,!0)?(se.cd(x-1,new Lt(b.x,(b.y+ne.y)/2)),se.cd(x+2,new Lt(ne.x,(b.y+ne.y)/2))):(se.cd(x-1,new Lt((b.x+ne.x)/2,b.y)),se.cd(x+2,new Lt((b.x+ne.x)/2,ne.y))),se.mb(x+1),se.mb(x),y.points=se,y.Wb())}}else ne=Lt.alloc(),Qt.qh(b.x,b.y,te.x,te.y,E.x,E.y,ne)&&ne.Bf(E)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),Lt.free(ne)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Yr(a,y,x,b,E,te){return te?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-b.y)<a.resegmentingDistance&&Math.abs(b.y-E.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-b.x)<a.resegmentingDistance&&Math.abs(b.x-E.x)<a.resegmentingDistance}br.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===Li?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===li&&(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===Li?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===li&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{b=x;var E=y.i(b),te=y.i(b-1),ne=y.i(b+1);Qt.B(te.x,E.x)&&Qt.B(E.y,ne.y)?(Qt.B(te.x,y.i(b-2).x)&&!Qt.B(te.y,y.i(b-2).y)?(y.m(b,a.x,te.y),x++,b++):y.L(b-1,a.x,te.y),Qt.B(ne.y,y.i(b+2).y)&&!Qt.B(ne.x,y.i(b+2).x)?y.m(b+1,ne.x,a.y):y.L(b+1,ne.x,a.y)):Qt.B(te.y,E.y)&&Qt.B(E.x,ne.x)?(Qt.B(te.y,y.i(b-2).y)&&!Qt.B(te.x,y.i(b-2).x)?(y.m(b,te.x,a.y),x++,b++):y.L(b-1,te.x,a.y),Qt.B(ne.x,y.i(b+2).x)&&!Qt.B(ne.y,y.i(b+2).y)?y.m(b+1,a.x,ne.y):y.L(b+1,a.x,ne.y)):Qt.B(te.x,E.x)&&Qt.B(E.x,ne.x)?(Qt.B(te.x,y.i(b-2).x)&&!Qt.B(te.y,y.i(b-2).y)?(y.m(b,a.x,te.y),x++,b++):y.L(b-1,a.x,te.y),Qt.B(ne.x,y.i(b+2).x)&&!Qt.B(ne.y,y.i(b+2).y)?y.m(b+1,a.x,ne.y):y.L(b+1,a.x,ne.y)):Qt.B(te.y,E.y)&&Qt.B(E.y,ne.y)&&(Qt.B(te.y,y.i(b-2).y)&&!Qt.B(te.x,y.i(b-2).x)?(y.m(b,te.x,a.y),x++,b++):y.L(b-1,te.x,a.y),Qt.B(ne.y,y.i(b+2).y)&&!Qt.B(ne.x,y.i(b+2).x)?y.m(b+1,ne.x,a.y):y.L(b+1,ne.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),b=y.fromNode,E=y.fromPort,b!==null&&(te=b.findVisibleNode(),te!==null&&te!==b&&(b=te,E=b.port)),x===1&&y.computeSpot(!0,E).Mc()&&(te=E.ga(Di,Lt.alloc()),b=y.getLinkPointFromPoint(b,E,te,a,!0,Lt.alloc()),y.L(0,b.x,b.y),Lt.free(te),Lt.free(b)),b=y.toNode,E=y.toPort,b!==null&&(te=b.findVisibleNode(),te!==null&&te!==b&&(b=te,E=b.port)),x===y.pointsCount-2&&y.computeSpot(!1,E).Mc()&&(x=E.ga(Di,Lt.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,Lt.alloc()),y.L(y.pointsCount-1,a.x,a.y),Lt.free(x),Lt.free(a));y.zf()},br.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Hi:return a;case Li:return new Lt(y.i(x).x,a.y);case li:return new Lt(a.x,y.i(x).y);default:case Kr:return y.i(x)}},jt.Object.defineProperties(br.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 Gi))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}}}),br.prototype.setReshapingBehavior=br.prototype.om,br.prototype.getReshapingBehavior=br.prototype.Ru;var Kr=new en(br,"None",0),li=new en(br,"Horizontal",1),Li=new en(br,"Vertical",2),Hi=new en(br,"All",3);br.className="LinkReshapingTool",br.None=Kr,br.Horizontal=li,br.Vertical=Li,br.All=Hi,En("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function ti(){Ri.call(this),this.name="Resizing",this.o=new Xn(1,1).freeze(),this.j=new Xn(9999,9999).freeze(),this.yg=new Xn(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new hi;a.alignmentFocus=Di,a.figure="Rectangle",a.desiredSize=Vo,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Lt,this.Dw=new Xn,this.Tn=new Lt,this.rt=new Xn(0,0),this.qt=new Xn(1/0,1/0),this.pt=new Xn(1,1)}Jt(ti,Ri),ti.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Vn)){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(),td(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},ti.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Gi,y.type=Kn.Spot,y.locationSpot=Di;var x=new $s;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Ua)),y.add(this.makeHandle(a,Fl)),y.add(this.makeHandle(a,As)),y.add(this.makeHandle(a,el)),y.add(this.makeHandle(a,ua)),y.add(this.makeHandle(a,$a)),y.add(this.makeHandle(a,Ra)),y.add(this.makeHandle(a,Pa))}else if(Su(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},ti.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},ti.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))e:{var x=a.alignment;if(x.Mc()&&(x=Di),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 e;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 Kn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},ti.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},ti.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},ti.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},ti.prototype.stopTransaction=function(){var a=this.diagram,y=Ri.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ti.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},ti.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,Lt.alloc()),te=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,te),this.resize(y),a.bd(),Lt.free(E)}},ti.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,Lt.alloc()),te=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,te),this.resize(y),Lt.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},ti.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof ei){var b=new An;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new de;E.dragsMembers=!1}y.moveParts(b,this.oppositePoint.copy().re(x),!0,E)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},ti.prototype.computeResize=function(a,y,x,b,E,te){y.Mc()&&(y=Di);var ne=this.adornedObject.naturalBounds,se=ne.x,he=ne.y,ge=ne.x+ne.width,ye=ne.y+ne.height,De=1;if(!te){De=ne.width;var $e=ne.height;0>=De&&(De=1),0>=$e&&($e=1),De=$e/De}return $e=Lt.alloc(),Qt.No(a.x,a.y,se,he,E.width,E.height,$e),a=ne.copy(),0>=y.x?0>=y.y?(a.x=Math.max($e.x,ge-b.width),a.x=Math.min(a.x,ge-x.width),a.width=Math.max(ge-a.x,x.width),a.y=Math.max($e.y,ye-b.height),a.y=Math.min(a.y,ye-x.height),a.height=Math.max(ye-a.y,x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(De*a.width,b.height),x.height),a.width=a.height/De):(a.width=Math.max(Math.min(a.height/De,b.width),x.width),a.height=De*a.width),a.x=ge-a.width,a.y=ye-a.height)):1<=y.y?(a.x=Math.max($e.x,ge-b.width),a.x=Math.min(a.x,ge-x.width),a.width=Math.max(ge-a.x,x.width),a.height=Math.max(Math.min($e.y-he,b.height),x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(De*a.width,b.height),x.height),a.width=a.height/De):(a.width=Math.max(Math.min(a.height/De,b.width),x.width),a.height=De*a.width),a.x=ge-a.width)):(a.x=Math.max($e.x,ge-b.width),a.x=Math.min(a.x,ge-x.width),a.width=ge-a.x,te||(a.height=Math.max(Math.min(De*a.width,b.height),x.height),a.width=a.height/De,a.y=he+.5*(ye-he-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min($e.x-se,b.width),x.width),a.y=Math.max($e.y,ye-b.height),a.y=Math.min(a.y,ye-x.height),a.height=Math.max(ye-a.y,x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(De*a.width,b.height),x.height),a.width=a.height/De):(a.width=Math.max(Math.min(a.height/De,b.width),x.width),a.height=De*a.width),a.y=ye-a.height)):1<=y.y?(a.width=Math.max(Math.min($e.x-se,b.width),x.width),a.height=Math.max(Math.min($e.y-he,b.height),x.height),te||(1<=a.height/a.width?(a.height=Math.max(Math.min(De*a.width,b.height),x.height),a.width=a.height/De):(a.width=Math.max(Math.min(a.height/De,b.width),x.width),a.height=De*a.width))):(a.width=Math.max(Math.min($e.x-se,b.width),x.width),te||(a.height=Math.max(Math.min(De*a.width,b.height),x.height),a.width=a.height/De,a.y=he+.5*(ye-he-a.height))):0>=y.y?(a.y=Math.max($e.y,ye-b.height),a.y=Math.min(a.y,ye-x.height),a.height=ye-a.y,te||(a.width=Math.max(Math.min(a.height/De,b.width),x.width),a.height=De*a.width,a.x=se+.5*(ge-se-a.width))):1<=y.y&&(a.height=Math.max(Math.min($e.y-he,b.height),x.height),te||(a.width=Math.max(Math.min(a.height/De,b.width),x.width),a.height=De*a.width,a.x=se+.5*(ge-se-a.width))),Lt.free($e),a},ti.prototype.computeReshape=function(){var a=zn;return this.adornedObject instanceof hi&&(a=Ev(this.adornedObject)),!(a===yr||this.diagram.lastInput.shift)},ti.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},ti.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.width<a.width&&(a.width=y.width),!isNaN(y.height)&&y.height<a.height&&(a.height=y.height),a},ti.prototype.computeCellSize=function(){var a=new Xn(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},jt.Object.defineProperties(ti.prototype,{handleArchetype:{get:function(){return this.F},set:function(a){this.F=a}},handle:{get:function(){return this.u},set:function(a){if(a!==null&&!(a.part instanceof Gi))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 Gi)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},minSize:{get:function(){return this.o},set:function(a){if(!this.o.D(a)){var y=a.width;isNaN(y)&&(y=0),a=a.height,isNaN(a)&&(a=0),this.o.h(y,a)}}},maxSize:{get:function(){return this.j},set:function(a){if(!this.j.D(a)){var y=a.width;isNaN(y)&&(y=1/0),a=a.height,isNaN(a)&&(a=1/0),this.j.h(y,a)}}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||this.yg.assign(a)}},isGridSnapEnabled:{get:function(){return this.V},set:function(a){this.V=a}},dragsMembers:{get:function(){return this.ia},set:function(a){this.ia=a}},oppositePoint:{get:function(){return this.Xq},set:function(a){this.Xq.D(a)||this.Xq.assign(a)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),ti.className="ResizingTool",En("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Ti(){Ri.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Lt,this.ue=null;var a=new hi;a.figure="Ellipse",a.desiredSize=To,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Lt(NaN,NaN),this.u=0,this.F=50}Jt(Ti,Ri),Ti.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)}},Ti.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Gi,y.type=Kn.Position,y.locationSpot=Di;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(Su(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Ti.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},Ti.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)},Ti.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(Di)},Ti.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)},Ti.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Lt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Ti.prototype.stopTransaction=function(){var a=this.diagram,y=Ri.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ti.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Ti.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Ti.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()},Ti.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()}},Ti.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},jt.Object.defineProperties(Ti.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 Gi))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 Gi)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}}}),Ti.className="RotatingTool",En("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function ao(){Ri.call(this),this.name="ClickSelecting"}Jt(ao,Ri),ao.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},ao.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},ao.className="ClickSelectingTool";function si(){Ri.call(this),this.name="Action",this.pk=null}Jt(si,Ri),si.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},si.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()},si.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))}},si.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()},si.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())},si.prototype.doStop=function(){this.pk=null},si.className="ActionTool";function wi(){Ri.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Lt(0,0)}Jt(wi,Ri),wi.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)},wi.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},wi.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 Tr)x.Zc()&&(Su(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);nn(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var te=Lt.allocAt(a.x,a.y);this.isGridSnapEnabled&&Yf(this.diagram,b,a,te),b.location=te,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Lt.free(te)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},jt.Object.defineProperties(wi.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}}}),wi.className="ClickCreatingTool";function oi(){Ri.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Tr;a.layerName="Tool",a.selectable=!1;var y=new hi;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Jt(oi,Ri),oi.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))},oi.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},oi.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},oi.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=Xn.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),Xn.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},oi.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()},oi.prototype.computeBoxBounds=function(){var a=this.diagram;return new Tn(a.firstInput.documentPoint,a.lastInput.documentPoint)},oi.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Hr?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 An,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)}},jt.Object.defineProperties(oi.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}}}),oi.className="DragSelectingTool";function zr(){Ri.call(this),this.name="Panning",this.Xt=new Lt,this.xy=new Lt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Dt.document,"scroll",a.Kw,!1),a.stopTool()}}Jt(zr,Ri),zr.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())},zr.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Dt.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},zr.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},zr.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},zr.prototype.doMouseMove=function(){this.move()},zr.prototype.doMouseUp=function(){this.move(),this.stopTool()},zr.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,x=a.firstInput.documentPoint,b=a.lastInput.documentPoint,E=y.x+x.x-b.x;x=y.y+x.y-b.y,a.allowHorizontalScroll||(E=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(E,x)}},jt.Object.defineProperties(zr.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),zr.className="PanningTool",En("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),En("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),En("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),En("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),En("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function vi(){this.F=this.u=this.j=this.o=null}jt.Object.defineProperties(vi.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}}}),vi.className="HTMLInfo";function Fi(a,y,x){this.text=a,this.hx=y,this.visible=x}Fi.className="ContextMenuButtonInfo";function Ki(){Ri.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Lt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Jt(Ki,Ri);function Vi(a){var y=new vi;y.show=function(E,te,ne){ne.showDefaultContextMenu()},y.hide=function(E,te){te.hideDefaultContextMenu()},Oo=y,a.tu=function(){a.stopTool()},y=bn("div");var x=bn("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=bn("style");Dt.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",ni,!1),b.addEventListener(y,"selectstart",ni,!1),b.addEventListener(x,"contextmenu",ni,!1)),y.className="goCXforeground",x.className="goCXbackground",Dt.document.body&&(Dt.document.body.appendChild(y),Dt.document.body.appendChild(x)),ho=y,Ca=x,La=!0}function ni(a){return a.preventDefault(),!1}Ki.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)},Ki.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Ki.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Ki.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof cn||(a instanceof Yt?b=a:b=y.ic(x.documentPoint,null,function(E){return!E.layer.isTemporary})),b!==null){for(a=b;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return b.part}else if(y.contextMenu!==null)return y;return null},Ki.prototype.doActivate=function(){},Ki.prototype.doMouseDown=function(){if(Ri.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Gi){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&lo(this)},Ki.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Gi){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}lo(this)};function lo(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof vi||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(mo(a,!0),a.isActive||a.stopTool())}Ki.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function mo(a,y,x){if(x===void 0&&(x=null),!a.Et&&(a.Et=!0,y&&a.standardMouseSelect(),y=a.standardMouseClick(),a.Et=!1,!y)){if(a.isActive=!0,y=Oo,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof Yt?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Gi&&!a.currentContextMenu.visible&&a.stopTool()}}Ki.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Ki.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Gi){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 vi&&a.show(y,x,this);this.currentContextMenu=a},Ki.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y+b.height>E.bottom&&(x.y-=b.height+5/y.scale),x.y<E.y&&(x.y=E.y),a.position=x}},Ki.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Gi?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof vi&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Yo(a){var y=new An;return y.add(new Fi("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Fi("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Fi("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Fi("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Fi("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Fi("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Fi("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Fi("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Fi("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Fi("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Fi("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Fi("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Fi("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}Ki.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Yo(this)),ho.innerHTML="",Ca.addEventListener("pointerdown",this.tu,!1);var y=this,x=bn("ul");x.className="goCXul",ho.appendChild(x),x.innerHTML="";for(var b=this.jt.iterator;b.next();){var E=b.value,te=E.visible;if(typeof E.hx=="function"&&(typeof te!="function"||te(a))){te=bn("li"),te.className="goCXli";var ne=bn("a");ne.className="goCXa",ne.href="#",ne.ky=E.hx,ne.addEventListener("pointerdown",function(se){return this.ky(a),y.stopTool(),se.preventDefault(),!1},!1),ne.textContent=E.text,te.appendChild(ne),x.appendChild(te)}}ho.style.display="block",Ca.style.display="block"},Ki.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Oo){ho.style.display="none",Ca.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(Ca,"pointerdown",this.tu,!1),this.currentContextMenu=null}},jt.Object.defineProperties(Ki.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Gi?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return La===!1&&Oo===null&&na&&Vi(this),Oo},set:function(a){a===null&&(La=!0),Oo=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Oo=null,La=!1,Ca=null,ho=null;Ki.className="ContextMenuTool",En("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function _i(){Ri.call(this),this.name="TextEditing",this.Zh=new So,this.ia=null,this.V=Ai,this.vj=null,this.qa=ji,this.u=1,this.F=!0,this.o=null,this.j=new vi,this.kt=null,Go(this,this.j)}Jt(_i,Ri);function Go(a,y){if(na){var x=bn("textarea");a.kt=x,x.addEventListener("input",function(){if(a.textBlock!==null){var b=a.Lx(this.value);this.style.width=20+b.measuredBounds.width*this.wA+"px",this.rows=b.lineCount}},!1),x.addEventListener("keydown",function(b){if(!b.isComposing&&a.textBlock!==null){var E=b.key;E==="Enter"?(a.textBlock.isMultiline===!1&&b.preventDefault(),a.acceptText(Ui)):E==="Tab"?(a.acceptText(Xi),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==ji){var b=a.kt;a.qa===so&&(a.qa=Fo),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==ji){var b=a.kt;typeof b.focus=="function"&&b.focus(),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(b,E,te){if(b instanceof So&&te instanceof _i)if(te.state===bs)x.style.border="3px solid red",x.focus();else{var ne=b.ga(Di),se=E.position,he=E.scale,ge=b.Df()*he;ge<te.minimumEditorScale&&(ge=te.minimumEditorScale);var ye=b.naturalBounds.width*ge+6,De=b.naturalBounds.height*ge+2,$e=(ne.x-se.x)*he;ne=(ne.y-se.y)*he,se=b.verticalAlignment,he=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*ge,De=se.y*De-se.y*he+se.offsetY-(.5*De-.5*he)-he/2,x.value=b.text,E.div.style.font=b.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*ge+"%",x.style.lineHeight="normal",x.style.width=ye+"px",x.style.left=($e-ye/2|0)-1+"px",x.style.top=(ne+De|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=ge,x.className="goTXarea",E.div.appendChild(x),x.focus(),te.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(x)}}}_i.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Hs&&Hs!==this&&(Hs.acceptText(rs),Hs&&Hs!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof So&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Ai&&!y.isSelected||this.starting===$o&&2>a.lastInput.clickCount)):!1},_i.prototype.doStart=function(){Hs=this,this.textBlock!==null&&this.doActivate()},_i.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 So&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=so;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new Tn(this.textBlock.ga(Ua),this.textBlock.ga(As));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},_i.prototype.doCancel=function(){this.stopTool()},_i.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},_i.prototype.doMouseDown=function(){this.isActive&&this.acceptText(rs)},_i.prototype.acceptText=function(a){switch(a){case rs:this.qa===ss?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===so||this.qa===bs||this.qa===Fo)&&(this.qa=Bo,ka(this));break;case ma:case Ui:case Xi:(Ui!==a||this.textBlock.isMultiline!==!0)&&(this.qa===so||this.qa===bs||this.qa===Fo)&&(this.qa=Bo,ka(this))}};function ka(a){var y=a.textBlock,x=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var E=y.text,te="";b.valueFunction!==null&&(te=b.valueFunction()),a.isValidText(y,E,te)?(a.Ea(a.name),a.qa=ss,a.transactionResult=a.name,y.text=te,a.doSuccess(E,te),x!==null&&x.R("TextEdited",y,E),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=bs,a.doError(E,te))}}_i.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)},_i.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},_i.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=ji,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},_i.prototype.doStop=function(){Hs=null},_i.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)))},_i.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},jt.Object.defineProperties(_i.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)}}}),_i.prototype.measureTemporaryTextBlock=_i.prototype.Lx;var ma=new en(_i,"LostFocus",0),rs=new en(_i,"MouseDown",1),Xi=new en(_i,"Tab",2),Ui=new en(_i,"Enter",3),Yi=new en(_i,"SingleClick",0),Ai=new en(_i,"SingleClickSelected",1),$o=new en(_i,"DoubleClick",2),ji=new en(_i,"StateNone",0),so=new en(_i,"StateActive",1),Fo=new en(_i,"StateEditing",2),Bo=new en(_i,"StateValidating",3),bs=new en(_i,"StateInvalid",4),ss=new en(_i,"StateValidated",5),Hs=null;_i.className="TextEditingTool",_i.LostFocus=ma,_i.MouseDown=rs,_i.Tab=Xi,_i.Enter=Ui,_i.SingleClick=Yi,_i.SingleClickSelected=Ai,_i.DoubleClick=$o,_i.StateNone=ji,_i.StateActive=so,_i.StateEditing=Fo,_i.StateValidating=Bo,_i.StateInvalid=bs,_i.StateValidated=ss,En("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Jo(a){Cl||(fl(),Cl=!0),this.H=Zu,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=eu,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Dn,this.ce=new ta,this.ce.Yd=this,this.Ei=new Dn,this.pu=new Dn,this.Sr=new Dn,this.pr=new Dn,a&&Object.assign(this,a)}Jo.prototype.Xe=function(a){this.H=a},Jo.prototype.canStart=function(){return!0};function Ps(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),us(a.H),a.zb=!0)}function es(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===eu?(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===Gl&&y.vc.clear(),a.Qw=!!(a.Pk===tu&&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(),Ts(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==Is&&b!==null&&(delete b.start.scale,delete b.end.scale),Dt.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Ms(x),Ld(x),a.zb=!1,y.start(),y.bc&&(la(a),x.Ya(),oc(y,0),il(x,!0),Za(a),x.R("AnimationStarting",a)))}))}}function ps(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function $u(a,y,x,b){a.isTicking||ps(a)||y instanceof Vn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}it=Jo.prototype,it.fv=function(a){return this.ce.fv(a)},it.Xu=function(a){return this.ce.Xu(a)};function Qo(a,y){function x(){if(0<E.Sr.count&&(b.addAll(E.Sr),E.Sr.clear(),E.bc=!0),E.bc!==!1&&b.count!==0){E.pu.addAll(b);for(var te=E.pu.iterator;te.next();){var ne=te.value;if(ne.bc!==!1){e:if(0<ne.yl.count)var se=!0;else{for(se=ne.vc.iterator;se.next();){var he=se.key;if(he instanceof Yt&&he.diagram!==null||he instanceof cn){se=!0;break e}}se=!1}se?Wl(ne,!1):ne.Xk=!0}}E.pu.clear(),E.bc!==!1&&(la(E),il(E.H),Za(E)),Dt.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),Dt.requestAnimationFrame(function(){x()}))}function ra(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function la(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 Za(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}it.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(),Ts(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Ts(y,this.H)},it.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))},it.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),ha(this,a))},it.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),za(this.ce,y,"position",y.position,y.position),ha(this,a))};function gs(a,y,x){!a.zb||y.D(x)||ps(a)||(a.H.pi||(y=x.copy()),za(a.ce,a.H,"position",y,x))}function Co(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function ha(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function ms(a,y,x,b,E){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var te=a[0],ne=a[1],se=a[2];a=a[3];var he=y[0],ge=y[1],ye=y[2];return y=y[3],se===0||se===100?(te=he,ne=ge):(ye===0||ye===100)&&(he=te,ge=ne),180<Math.abs(he-te)&&(he>te?te+=360:he+=360),te=E(x,te,he-te,b)%360,ne=E(x,ne,ge-ne,b),se=E(x,se,ye-se,b),x=E(x,a,y-a,b),"hsla("+te+", "+ne+"%, "+se+"%, "+x+")"}function fl(){function a(x,b,E,te,ne,se){x.position=new Lt(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se))}var y=new dr;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,te,ne,se){ne<se?x.mm(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se),!1):x.position=new Lt(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se))}),y.add("location",function(x,b,E,te,ne,se){ne<se?x.mm(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se),!0):x.location=new Lt(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se))}),y.add("position:placeholder",function(x,b,E,te,ne,se){ne<se?x.mm(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se),!1):x.position=new Lt(te(ne,b.x,E.x-b.x,se),te(ne,b.y,E.y-b.y,se))}),y.add("position:nodeCollapse",function(x,b,E,te,ne,se){var he=x.actualBounds,ge=E.actualBounds;E=ge.x+ge.width/2-he.width/2,he=ge.y+ge.height/2-he.height/2,ne<se?x.mm(te(ne,b.x,E-b.x,se),te(ne,b.y,he-b.y,se),!1):x.position=new Lt(te(ne,b.x,E-b.x,se),te(ne,b.y,he-b.y,se))}),y.add("desiredSize",function(x,b,E,te,ne,se){x.desiredSize=new Tn(te(ne,b.width,E.width-b.width,se),te(ne,b.height,E.height-b.height,se))}),y.add("width",function(x,b,E,te,ne,se){x.width=te(ne,b,E-b,se)}),y.add("height",function(x,b,E,te,ne,se){x.height=te(ne,b,E-b,se)}),y.add("fill",function(x,b,E,te,ne,se){x.fill=ms(b,E,ne,se,te)}),y.add("stroke",function(x,b,E,te,ne,se){x.stroke=ms(b,E,ne,se,te)}),y.add("strokeWidth",function(x,b,E,te,ne,se){x.strokeWidth=te(ne,b,E-b,se)}),y.add("strokeDashOffset",function(x,b,E,te,ne,se){x.strokeDashOffset=te(ne,b,E-b,se)}),y.add("background",function(x,b,E,te,ne,se){x.background=ms(b,E,ne,se,te)}),y.add("areaBackground",function(x,b,E,te,ne,se){x.areaBackground=ms(b,E,ne,se,te)}),y.add("opacity",function(x,b,E,te,ne,se){x.opacity=te(ne,b,E-b,se)}),y.add("scale",function(x,b,E,te,ne,se){x.scale=te(ne,b,E-b,se)}),y.add("angle",function(x,b,E,te,ne,se){x.angle=te(ne,b,E-b,se)}),Hl=y}jt.Object.defineProperties(Jo.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&&Fn(a,">= 1",Jo,"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}}}),Jo.prototype.stopAnimation=Jo.prototype.Cc;var Hl=null,Cl=!1,eu=new en(Jo,"Default",1),tu=new en(Jo,"AnimateLocations",2),Gl=new en(Jo,"None",3);Jo.className="AnimationManager",Jo.defineAnimationEffect=function(a,y){Cl||(fl(),Cl=!0),Hl.add(a,y)},Jo.Default=eu,Jo.AnimateLocations=tu,Jo.None=Gl;function ta(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=nu,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Pi,this.vc=new dr,this.Tt=new dr,this.yl=new Dn,this.Ut=new Dn,this.dw=xh,a&&Object.assign(this,a)}ta.prototype.suspend=function(){this.Xk=!0},ta.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Wl(this,!0),la(this.Yd),il(this.H),Za(this.Yd),this.H.redraw()};function Ts(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}it=ta.prototype,it.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 cn?a=x:x instanceof Yt&&(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===eu&&this===y.defaultAnimation&&(this.Lp=Mu,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=vf),la(y),this.yl.each(function(b){b.data=null,a.add(b)}),Za(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Qo(y,this),this)},it.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},it.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof cn?this.H=a:a instanceof Yt&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Tr){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return za(this,a,y,x,b,E),this};function za(a,y,x,b,E,te){var ne=a.vc;if(y instanceof cn&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(eh(b),sv(),b=[Xl.j,Xl.u,Xl.o,Xl.F],eh(E),sv(),E=[Xl.j,Xl.u,Xl.o,Xl.F]),ne.contains(y)){var se=ne.I(y),he=se.start,ge=se.end;he[x]===void 0&&(he[x]=da(b)),ge[x]=da(E)}else he={},ge={},he[x]=da(b),ge[x]=da(E),se=he.position,y instanceof Yt&&se instanceof Lt&&!se.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&se.assign(ge.position),se=new Ku(he,ge,te),ne.add(y,se);ne=he[x],ne instanceof Lt&&!ne.w()&&ne.assign(a.o),te&&x.indexOf("position:")===0&&y instanceof Tr?se.Ku.location=da(y.location):te&&(se.Ku[x]=da(b))}function da(a){return a instanceof Lt||a instanceof Xn?a.copy():a}it.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},it.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function Wl(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var b=+new Date,E=b>a.cn?a.Gd:b-a.Qd;y&&(E=a.gw,E<a.Gd?(a.Qd=+new Date-E,a.cn=a.Qd+a.Gd):E=a.Gd),la(x),oc(a,E),il(a.H,!0),Za(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 oc(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var te=b.key;if(!(te instanceof Yt&&te.diagram===null)){var ne=b.value,se=E?ne.end:ne.start;ne=E?ne.start:ne.end;var he=Hl,ge;for(ge in ne)ge==="position"&&(ne["position:placeholder"]||ne["position:nodeCollapse"])||he.get(ge)===null||he.get(ge)(te,se[ge],ne[ge],a.Lp,y,x,a)}}}it.stop=function(){return this.bc?(this.Ml(!0),this):this},it.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,la(x);for(var b=this.vc,E=this.yl.iterator;E.next();)y.remove(E.value);for(E=this.Ut.iterator;E.next();)E.value.v();E=this.ho,b=b.iterator;for(var te=Hl;b.next();){var ne=b.key,se=b.value,he=E?se.end:se.start,ge=E?se.start:se.end,ye=se.Ku,De;for(De in ge)if(te.get(De)!==null){var $e=De;!se.Hu||$e!=="position:nodeCollapse"&&$e!=="position:placeholder"||($e="position"),te.get($e)(ne,he[De],ye[De]!==void 0?ye[De]:se.Hu?he[De]:ge[De],this.Lp,this.Gd,this.Gd,this)}se.Hu&&ye.location!==void 0&&ne instanceof Tr&&(ne.location=ye.location),se.nv&&ne instanceof Tr&&ne.Zb(!1)}if(y.As.clear(),Kh(y,!1),y.Ya(),y.N(),il(y,!0),x.defaultAnimation===this){for(De=x.pr.iterator;De.next();)E=De.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}il(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Za(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Ts(this,null),x.Ml(this),y.$b())}},it.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof ei&&(b=y.placeholder),b!==null?(x=b.ga(Ua),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Lt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof ei)for(a=a.memberParts;a.next();)b=a.value,b instanceof sr&&this.Cj(b,y)},it.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof ei&&(x=y.placeholder),x!==null){var b=x.ga(Ua);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 ei)for(a=a.memberParts;a.next();)b=a.value,b instanceof sr&&this.Aj(b,y)}},it.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},jt.Object.defineProperties(ta.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Fn(a,">= 1",ta,"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:Zt("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}}}),ta.prototype.getTemporaryState=ta.prototype.Ez,ta.prototype.stop=ta.prototype.stop,ta.prototype.add=ta.prototype.add,ta.prototype.addTemporaryPart=ta.prototype.Iy;function nu(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Mu(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}ta.className="Animation",ta.EaseLinear=function(a,y,x,b){return x*a/b+y},ta.EaseInOutQuad=nu,ta.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},ta.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},ta.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},ta.EaseOutExpo=Mu;function Ku(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Ku.className="AnimationState";function El(a,y,x){this.xd=null,this.rf=a,this.so=x||va,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=ls))}El.prototype.copy=function(){var a=new El(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 Ko(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))}jt.Object.defineProperties(El.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 va=new en(El,"Default",1),ls=new en(El,"Immediate",2),ya=new en(El,"Bundled",3);El.className="AnimationTrigger",El.Default=va,El.Immediate=ls,El.Bundled=ya;function Ho(a){ui(this),this.H=null,this.Pa=new An,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)}it=Ho.prototype,it.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Ns(x)}a.clear(),this.Zq.length=0},it.Xe=function(a){this.H=a},it.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,b=0,E=0,te=0,ne=0,se=this.Pa.iterator;se.next();){var he=se.value;he instanceof ei?E++:he instanceof sr?b++:he instanceof Vn?te++:he instanceof Gi?ne++:x++}if(se="",0<x&&(se+=x+" Parts "),0<b&&(se+=b+" Nodes "),0<E&&(se+=E+" Groups "),0<te&&(se+=te+" Links "),0<ne&&(se+=ne+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,se+=`
|
|
|
`+x.toString(),b=x.data,b!==null&&Mi(b)&&(se+=" #"+Mi(b)),x instanceof sr?se+=" "+Nn(b):x instanceof Vn&&(se+=" "+Nn(x.fromNode)+" "+Nn(x.toNode));return y+" "+this.Pa.count+": "+se},it.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var E=Lt.alloc(),te=this.Pa.s,ne=te.length;ne--;){var se=te[ne];if((b!==!0||td(se)!==!1)&&se.isVisible()&&(E.assign(a),ii(E,se.oe),se=se.ic(E,y,x),se!==null&&(y!==null&&(se=y(se)),se!==null&&(x===null||x(se)))))return Lt.free(E),se}return Lt.free(E),null},it.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof An||b instanceof Dn||(b=new Dn),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var te=Lt.alloc(),ne=this.Pa.s,se=ne.length;se--;){var he=ne[se];if((E!==!0||td(he)!==!1)&&he.isVisible()){te.assign(a),ii(te,he.oe);var ge=he;he.ji(te,y,x,b)&&(y!==null&&(ge=y(ge)),ge===null||x!==null&&!x(ge)||b.add(ge))}}return Lt.free(te),b},it.Cf=function(a,y,x,b,E){if(y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof An||E instanceof Dn||(E=new Dn),this.Uh===!1)return E;var te=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(te=!0);for(var ne=this.Pa.s,se=ne.length;se--;){var he=ne[se];if((te!==!0||td(he)!==!1)&&he.isVisible()){var ge=he;he.Cf(a,y,x,b,E)&&(y!==null&&(ge=y(ge)),ge===null||x!==null&&!x(ge)||E.add(ge))}}return E},it.Nu=function(a,y,x,b,E,te,ne){if(this.Uh===!1)return E;for(var se=this.Pa.s,he=se.length;he--;){var ge=se[he];if((ne!==!0||td(ge)!==!1)&&te(ge)&&ge.isVisible()){var ye=ge;ge.Cf(a,y,x,b,E)&&(y!==null&&(ye=y(ye)),ye===null||x!==null&&!x(ye)||E.add(ye))}}return E},it.og=function(a,y,x,b,E,te){if(x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof An||E instanceof Dn)&&(te=E),E=!0),te instanceof An||te instanceof Dn||(te=new Dn),this.Uh===!1)return te;var ne=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ne=!0);for(var se=Lt.alloc(),he=Lt.alloc(),ge=this.Pa.s,ye=ge.length;ye--;){var De=ge[ye];if((ne!==!0||td(De)!==!1)&&De.isVisible()){se.assign(a),ii(se,De.oe),he.h(a.x+y,a.y),ii(he,De.oe);var $e=De;De.og(se,he,x,b,E,te)&&(x!==null&&($e=x($e)),$e===null||b!==null&&!b($e)||te.add($e))}}return Lt.free(se),Lt.free(he),te},it.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=xn();for(var E=xn(),te=0;te<b;te++){var ne=x[te];if(ne.vw=te,ne instanceof Vn){if(ne.fd===!1)continue}else if(ne instanceof Gi&&ne.adornedPart!==null)continue;var se=ne.actualBounds;ne.isVisible()&&No(se,y)?(ne.Fd(!0),a.push(ne)):(ne.Fd(!1),ne.adornments!==null&&0<ne.adornments.count&&E.push(ne))}for(y=0;y<a.length;y++)for(x=a[y],Fv(x),x=x.adornments;x.next();)b=x.value,b.measure(1/0,1/0),b.arrange(),b.Fd(!0);for(y=0;y<E.length;y++)Fv(E[y]);In(a),In(E)}}};function vs(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}it.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var b=x.length;if(b!==0){if(a.isTemporary)for(var E=0;E<b;E++)x[E].Gj();E=vs(this,a);var te=this.Zq;te.length=0;for(var ne=y.scale,se=Tn.alloc(),he=0;he<b;he++)this.Oj(a,x[he],y,te,ne,se,!0);if(Tn.free(se),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function pl(a,y,x,b,E){if(a.visible&&a.pb!==0&&(E||!a.isTemporary)){E=a.Pa.s;var te=E.length;if(te!==0){var ne=vs(a,y),se=a.Zq;se.length=0;for(var he=x.scale,ge=Tn.alloc(),ye=0;ye<te;ye++){var De=E[ye];b.contains(De)&&a.Oj(y,De,x,se,he,ge,!1)}Tn.free(ge),y.globalAlpha=ne}}}it.Oj=function(a,y,x,b,E,te,ne){if(ne&&!td(y))a.Hs(y);else{if(b!==null&&y instanceof Vn&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(ne=!1,b=y.containingGroup;b!==null;)ne?b.tb!==null&&te.Ex(b.tb):b.tb!==null&&(ne=!0,te.assign(b.tb)),b=b.containingGroup;var se=y.actualBounds;if(b=!1,ne&&y.isVisible()){if(!te.Yc(se)){a.Hs(y);return}b=!te.Re(se)}b&&(a.save(),a instanceof Tl?a.bk=te.copy():(a.beginPath(),a.rect(te.x,te.y,te.width,te.height),a.clip())),se.width*E>x.Oq||se.height*E>x.Oq?y.gc(a,x):(E=y.actualBounds,te=y.naturalBounds,E.width===0||E.height===0||isNaN(E.x)||isNaN(E.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(ia(y,a,y.areaBackground,!0,!0,te,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(ia(y,a,"rgba(0,0,0,0.3)",!0,!1,te,E),a.fillRect(E.x,E.y,E.width,E.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),ia(y,a,y.background,!0,!1,te,E),a.fillRect(0,0,te.width/2,te.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))}},it.g=function(a,y,x,b,E){var te=this.diagram;te!==null&&te.cb(zo,a,this,y,x,b,E)},it.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&Ns(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)),gu(this,a,y),a},it.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,Ns(y),a};function gu(a,y,x){if(y=cf(a,y,x),x instanceof ei&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,E=a.Pa.s,te=E.length,ne=0;ne<te;ne++){var se=E[ne];if(se===x&&(y=ne,0<=b)||0>b&&se.containingGroup===x&&(b=ne,0<=y))break}!(0>b)&&b<y&&(E=a.Pa,E.mb(y),E.Gb(b,x))}y=x.containingGroup,y!==null&&gu(a,-1,y)}x.svg!==null&&x.svg.remove()}function cf(a,y,x){var b=x.zOrder;if(isNaN(b))return y;a=a.Pa;var E=a.count;if(1>=E)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var te=y-1,ne=NaN;0<=te&&(ne=a.M(te).zOrder,!!isNaN(ne));)te--;for(var se=y+1,he=NaN;se<E&&(he=a.M(se).zOrder,!!isNaN(he));)se++;if(!isNaN(ne)&&ne>b)for(;;){if(te===-1||ne<=b){if(te++,te===y)break;return a.mb(y),a.Gb(te,x),te}for(ne=NaN;0<=--te&&(ne=a.M(te).zOrder,isNaN(ne)););}else if(!isNaN(he)&&he<b)for(;;){if(se===E||he>=b){if(se--,se===y)break;return a.mb(y),a.Gb(se,x),se}for(he=NaN;++se<E&&(he=a.M(se).zOrder,isNaN(he)););}return y}jt.Object.defineProperties(Ho.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===""&&Zt("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&Zt("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)&&Fn(a,"0 <= value <= 1",Ho,"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))}}}),Ho.prototype.findObjectsNear=Ho.prototype.og,Ho.prototype.findObjectsIn=Ho.prototype.Cf,Ho.prototype.findObjectsAt=Ho.prototype.ji,Ho.prototype.findObjectAt=Ho.prototype.ic,Ho.className="Layer";function cn(a,y){if(hm||(Ls(),hm=!0),ui(this),Zu=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,na){var x=this,b=function(){x.removeEventListener(Dt.document,"DOMContentLoaded",b,!1),x.setRTL()};Dt.document.body!==null?this.setRTL():x.addEventListener(Dt.document,"DOMContentLoaded",b,!1)}this.ol=null,rp.add("Model",io);var E=this;return this.Hb=function(te){var ne=E.partManager;if(te.model===ne.diagram.model&&ne.diagram.aa){ne.diagram.aa=!1;try{var se=te.change;te.modelChange===""&&se===zo&&ne.updateDataBindings(te.object,te.propertyName)}finally{ne.diagram.aa=!0}}},this.Oc=function(te){E.partManager.doModelChanged(te)},this.hu=this.ku=null,hf(this),this.model=hy(),this.Wg=!0,Zh(this),this.layout=new Ro,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 dm,a!==void 0&&(typeof a=="string"||Dt.Element&&a instanceof Element?Md(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var Pc,Zu;function hf(a){a.Yd=new Jo,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new An,a.pj=new dr,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Lt(NaN,NaN).freeze(),a.du=new Lt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Lt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new pi,a.zu=new Lt(NaN,NaN).freeze(),a.ut=new Tn(NaN,NaN,NaN,NaN).freeze(),a.rj=new kr(0,0,0,0).freeze(),a.sj=xh,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Is,a.zk=qi,a.Fg=Is,a.pq=qi,a.yt=Ua,a.Bt=Ua,a.Fc=!0,a.pn=!1,a.De=new Dn,a.Eh=new dr,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new kr(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new ws,a.bq.diagram=a,a.Qg=new ws,a.Qg.diagram=a,a.cj=new ws,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,nv(a),a.ai=new Dn,a.Ht=!0,a.uu=wh,a.pw=!1,a.wu=mf,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 dr,a.Xn=new An,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 kr(5).freeze(),a.Hw=new Dn().freeze(),a.Nt=999999999,a.nw=new Dn().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 Dn,a.ow=new Dn,a.Xh=null,a.aw=new Xn(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Lt,bounds:new Tn,Py:new Xn,bA:new Xn,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new Tn(NaN,NaN,NaN,NaN).freeze(),a.wo=new Xn(NaN,NaN).freeze(),a.Sp=new Tn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new dr;var y=new sr,x=new So;x.bind(new Sa("text","",Nn)),y.add(x),a.ny=y,a.Lg.add("",y),y=new sr,x=new So,x.stroke="brown",x.bind(new Sa("text","",Nn)),y.add(x),a.Lg.add("Comment",y),y=new sr,y.selectable=!1,y.avoidable=!1,x=new hi,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Xn(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new dr,y=new ei,y.selectionObjectName="GROUPPANEL",y.type=Kn.Vertical,x=new So,x.font="bold 12pt sans-serif",x.bind(new Sa("text","",Nn)),y.add(x),x=new Kn(Kn.Auto),x.name="GROUPPANEL";var b=new hi;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new $s,b.padding=new kr(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new dr,y=new Vn,x=new hi,x.isPanelMain=!0,y.add(x),x=new hi,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new Vn,x=new hi,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Gi,y.type=Kn.Auto,x=new hi,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new $s,x.margin=new kr(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Gi,y.type=Kn.Link,x=new hi,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 io,a.toolManager=new Do,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new de,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Yc(),a.eq=null,a.fq=Lo,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 Lt,a.zy=500,a.wp=new Lt,a.wq=!1}cn.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Bd=null,Jh="",gh(this,!1),this.Xn.clear(),mp(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function gh(a,y){a.animationManager.Cc(!0),a.Hw=new Dn().freeze(),a.nw=new Dn().freeze();var x=a.skipsUndoManager,b=a.cc!==null&&a.cc!==void 0;b&&(a.skipsUndoManager=!0);var E=null;a.fe!==null&&(E=a.fe.part,E!==null&&a.remove(E));var te=[],ne=a.Wa.length;if(y){for(y=0;y<ne;y++)for(var se=a.Wa.s[y].parts;se.next();){var he=se.value;he!==E&&he.data===null&&te.push(he)}for(y=0;y<te.length;y++)a.remove(te[y])}for(y=0;y<ne;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(),mp(),a.Og.clear(),Lr=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),te}function Yc(){return null}cn.prototype.reset=function(){this.clear(),this.vb=!0,hf(this),lc(this),this.Wg=!0,Zh(this),this.layout=new Ro,this.Wg=!1,this.model=hy(),this.model.undoManager=new Wo,this.vb=this.rn=!1,this.N()},cn.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Dt.document.body);var y=bn("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},cn.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Dt.document.body);var y=0;if(na){var x=cm;y=Pc,x===null&&(x=cm=bn("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=Pc=bn("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||Hr||(y=11)}this.Db=y,this.Gw=!0},cn.prototype.qb=function(a){a.classType===cn&&(this.autoScale=a)},cn.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 Md(a,y){if(na){if(y!=null||Zt("Diagram setup requires an argument DIV."),a.Ka!==null&&Zt("Diagram has already completed setup."),typeof y=="string"?a.Ka=Dt.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Zt("No DIV or DIV id supplied: "+y),a.Ka===null&&Zt("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Zt("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Dt.ResizeObserver){var x=yn(function(){a.$b()},250);a.ol=new Dt.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Dt.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=Dt.go;var E=new yu(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",Dt.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),E.style.zIndex="2",E.style.userSelect="none",E.style.MozUserSelect="none",E.style.touchAction="none",E.style.letterSpacing="normal !important",E.style.wordSpacing="normal !important"),a.ta=E,a.ib=E.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Dd(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new yu(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,na){E=bn("div");var te=bn("div");E.style.position="absolute",E.style.overflow="auto",E.style.width=a.Aa+"px",E.style.height=a.ya+"px",E.style.zIndex="1",te.style.position="absolute",te.style.width="1px",te.style.height="1px",a.Ka.appendChild(E),E.appendChild(te),E.onscroll=Vf,E.addEventListener("pointerdown",ff),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=te}a.hk=yn(function(){a.Yh=null,a.N()},300),a.Ov=yn(function(){Ld(a)},250),a.preventDefault=function(ne){return ne.preventDefault(),!1},a.$j=function(ne){if(a.isEnabled){var se=gl(a,ne,!0);se.bubbles=!0;var he=0,ge=0;se.delta=0,ne.deltaX!==void 0?(ne.deltaX!==0&&(he=0<ne.deltaX?1:-1),ne.deltaY!==0&&(ge=0<ne.deltaY?1:-1),se.delta=Math.abs(ne.deltaX)>Math.abs(ne.deltaY)?-he:-ge):ne.wheelDeltaX!==void 0?(ne.wheelDeltaX!==0&&(he=0<ne.wheelDeltaX?-1:1),ne.wheelDeltaY!==0&&(ge=0<ne.wheelDeltaY?-1:1),se.delta=Math.abs(ne.wheelDeltaX)>Math.abs(ne.wheelDeltaY)?-he:-ge):ne.wheelDelta!==void 0&&ne.wheelDelta!==0&&(se.delta=0<ne.wheelDelta?1:-1),a.doMouseWheel(),$l(se,ne)}},a.aA=function(ne){a.isEnabled&&(a.Vk=!1,gl(a,ne,!0),ne=a.currentTool,ne.cancelWaitAfter(),ne.standardMouseOver())},a.ui=function(ne){if(a.isEnabled){a.Vk=!0;var se=a.Yt;se[ne.pointerId]===void 0&&(se[ne.pointerId]=ne),se=a.oj;var he=!1;if(se[0]===null||se[0].pointerId!==ne.pointerId&&se[0].pointerType===ne.pointerType)if(se[1]!==null&&se[1].pointerId===ne.pointerId)se[1]=ne,he=!0;else if(se[0]===null)se[0]=ne;else if(se[1]===null)se[1]=ne,he=!0;else{ne.preventDefault();return}else se[0]=ne;(se=ne.pointerType==="touch"||ne.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var ge=he;he=Od(a,ne,!0,!1,!0,ge),yh(a,ne,he),he.targetDiagram=Nd(ne,ne.target),he.targetObject=null,ge||he.clone(a.bq),ge=a.uw,se=se?25:10,ne.timeStamp-a.tw<a.zy&&!(Math.abs(ge.x-ne.screenX)>se||Math.abs(ge.y-ne.screenY)>se)?a.yq++:a.yq=1,he.clickCount=a.yq,a.tw=ne.timeStamp,a.uw.sg(ne.screenX,ne.screenY),a.doMouseDown(),ne.button===1?ne.preventDefault():$l(he,ne)}},a.dk=function(ne){if(a.isEnabled){a.Vk=!0;var se=a.oj;if(se[0]===null||se[0].pointerId!==ne.pointerId&&se[0].pointerType===ne.pointerType){if(se[1]!==null&&se[1].pointerId===ne.pointerId){se[1]=ne;return}if(se[0]===null)se[0]=ne;else return}else se[0]=ne;if(se[0].pointerId===ne.pointerId){se=Od(a,ne,!1,!1,!1,se[1]!==null);var he=Dt.document.elementFromPoint(ne.clientX,ne.clientY)||null;he!==null&&he.shadowRoot!==void 0&&he.shadowRoot!==null&&(he=he.shadowRoot.elementFromPoint(ne.clientX,ne.clientY));var ge=a,ye=ne;he&&he.H&&(ye=ne,ge=he.H),se.targetDiagram=ge,yh(a,ye,se),se.targetObject=null,a.doMouseMove(),$l(se,ne)}}},a.fk=function(ne){if(a.isEnabled){a.Vk=!0;var se=ne.pointerType==="touch"||ne.pointerType==="pen",he=a.Yt;if(se&&a.qu)delete he[ne.pointerId],ne.preventDefault();else if(he=a.oj,he[0]===null||he[0].pointerId!==ne.pointerId&&he[0].pointerType===ne.pointerType)he[1]!==null&&he[1].pointerId===ne.pointerId&&(he[1]=null);else{he[0]=null,he=Od(a,ne,!1,!0,!0,!1);var ge=Dt.document.elementFromPoint(ne.clientX,ne.clientY)||null;ge!==null&&ge.shadowRoot!==void 0&&ge.shadowRoot!==null&&(ge=ge.shadowRoot.elementFromPoint(ne.clientX,ne.clientY)),ge!==null&&ge.H instanceof cn&&ge.H!==a&&yh(ge.H,ne,he),ge===null&&(ge=ne.target),yh(a,ne,he),he.clickCount=a.yq,he.targetDiagram=Nd(ne,ge),he.targetObject=null,a.doMouseUp(),$l(he,ne),se&&(a.wq=!1)}}},a.ek=function(ne){if(a.isEnabled){a.Vk=!1;var se=a.Yt;se[ne.pointerId]&&delete se[ne.pointerId],se=a.oj,se[0]!==null&&se[0].pointerId===ne.pointerId&&(se[0]=null),se[1]!==null&&se[1].pointerId===ne.pointerId&&(se[1]=null),ne.pointerType!=="touch"&&ne.pointerType!=="pen"&&(ne=a.currentTool,ne.cancelWaitAfter(),ne.standardMouseOver())}},a.ck=function(ne){var se=a.oj;se[0]!==null&&se[0].pointerId===ne.pointerId?(se[0]=null,a.wq=!1):se[1]!==null&&se[1].pointerId===ne.pointerId&&(se[1]=null)},a.Vp=b.Z["d"+Sf[1]+Sf[2]+"wI"+_d.slice(1,5)]["b"+jx.slice(1,y)](b.Z,yf,y,y),b.Vc(!0),Kp(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}cn.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},cn.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function Kp(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(Dt,"resize",a.Ov,!1)}function Ms(a){30<a.Sq&&(a.Yh=1)}function Kh(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Ar&&Ar.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}cn.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Dt.devicePixelRatio||1},cn.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},cn.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},cn.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},cn.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},cn.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},cn.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},cn.prototype.doFocus=function(){this.focus()},cn.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Dt.scrollX||Dt.pageXOffset,y=Dt.scrollY||Dt.pageYOffset;this.ta.focus(),Dt.scrollTo(a,y)}},cn.prototype.Oy=function(){this.H.R("GainedFocus")},cn.prototype.Ny=function(){this.H.R("LostFocus")};function Ld(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var x=a.gf?a.Db:0,b=a.Be?a.Db:0,E=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==E&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+b)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===Is&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Zh(a){var y=new Ho;y.name="Background",a.Al(y),y=new Ho,y.name="",a.Al(y),y=new Ho,y.name="Foreground",a.Al(y),y=new Ho,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Ho,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Ho,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function df(a){var y=new Kn(Kn.Grid);y.name="GRID";var x=new hi;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new hi,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new hi,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new hi,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new hi,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new hi,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Tr,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 Vf(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Tc(this.H)}function ff(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Tc(this.H)}cn.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var b=this.documentBounds,E=this.viewportBounds,te=this.rj,ne=b.x-te.left,se=b.y-te.top,he=b.width+te.left+te.right,ge=b.height+te.top+te.bottom,ye=b.right+te.right;te=b.bottom+te.bottom;var De=E.x;b=E.y;var $e=E.width,Qe=E.height,rt=E.right,ut=E.bottom;E=this.scale;var Ot=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Ot=Ot+a.scrollWidth-a.clientWidth;break;case"reverse":Ot=a.scrollWidth-Ot-a.clientWidth}var Tt=Ot;$e<he||Qe<ge?(Ot=Lt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Tt&&(Ot.x=Tt/E+ne,this.ju=Tt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Ot.y=a.scrollTop/E+se,this.lu=a.scrollTop),this.position=Ot,Lt.free(Ot),this.Ee=this.qr=!1):(Ot=Lt.alloc(),a.uy&&this.allowHorizontalScroll&&(ne<De&&(this.position=Ot.h(Tt+ne,this.position.y)),ye>rt&&(this.position=Ot.h(-(y.scrollWidth-this.Aa)+Tt-this.Aa/E+ye,this.position.y))),a.vy&&this.allowVerticalScroll&&(se<b&&(this.position=Ot.h(this.position.x,a.scrollTop+se)),te>ut&&(this.position=Ot.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+te))),Lt.free(Ot),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ye=b.right,rt=E.right,te=b.bottom,ut=E.bottom,ne=b.x,De=E.x,se=b.y,b=E.y,$e>=he&&ne>=De&&ye<=rt&&(x.style.width="1px"),Qe>=ge&&se>=b&&te<=ut&&(x.style.height="1px"))}},cn.prototype.computeBounds=function(a){return a===void 0&&(a=new Tn),us(this),kd(this,a)};function kd(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,b=a.Wa.s,E=b.length,te=0;te<E;te++){var ne=b[te];if(ne.visible&&ne.isInDocumentBounds){ne=ne.Pa.s;for(var se=ne.length,he=0;he<se;he++){var ge=ne[he];ge.isInDocumentBounds&&ge.isVisible()&&(ge=ge.actualBounds,ge.w()&&(x?(x=!1,y.assign(ge)):y.ed(ge)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}cn.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(On(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof Vn||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds))}else for(a=a.iterator;a.next();)b=a.value,!y&&b instanceof Vn||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new Tn(NaN,NaN,0,0):x};function Ul(a,y){if((y||a.hf)&&!a.vb&&a.ta!==null&&a.documentBounds.w()){if(a.vb=!0,y){var x=a.initialPosition;if(x.w()){a.vb=!1,a.position=x;return}x=Lt.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=Tn.allocAt(0,0,b.width,b.height);var E=Lt.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,Tn.free(b),Lt.free(E),Lt.free(x)}x=a.yh,y&&a.Fg!==Is&&(x=a.Fg);var te=x!==Is?mh(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/te;var ne=a.ya/te,se=a.zk,he=a.pq;y&&!se.sb()&&(he.sb()||he.Xb())&&(se=he.Xb()?Di:he),pf(a,a.documentBounds,E,ne,se,y),y=a.scale,a.scale=te,a.vb=!1,te=a.viewportBounds,Qt.B(te.x,x)&&Qt.B(te.y,b)&&Qt.B(te.width,E)&&Qt.B(te.height,ne)||a.onViewportBoundsChanged(new Tn(x,b,E,ne),te,y,!1)}}function mh(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var b=a.documentBounds;if(!b.w())return x;var E=b.width;b=b.height;var te=a.Aa+(a.gf?a.Db:0),ne=a.ya+(a.Be?a.Db:0),se=te/E,he=ne/b;return y===Kl?(y=Math.min(he,se),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Qh?(y=he>se?(ne-a.Db)/b:(te-a.Db)/E,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}cn.prototype.zoomToFit=function(){var a=this.sj;this.sj=xh,this.scale=mh(this,Kl),a!==xh&&(Ul(this,!1),pf(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},it=cn.prototype,it.BA=function(a,y){y===void 0&&(y=Kl);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===Kl||y===Qh)if(isNaN(x))E=this.viewportBounds.height*this.scale/b;else if(isNaN(b))E=this.viewportBounds.width*this.scale/x;else{E=this.Aa;var te=this.ya;E=y===Qh?te/b>E/x?(te-(this.Be?this.Db:0))/b:(E-(this.gf?this.Db:0))/x:Math.min(te/b,E/x)}this.scale=E,this.position=new Lt(a.x,a.y)}},it.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Lt(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))},it.zz=function(a){if(a instanceof Yt){this.eq=a;var y=Lt.alloc();this.fq=this.op(a.ga(Ua,y)),Lt.free(y)}else this.eq=null,this.fq=Lo};function pf(a,y,x,b,E,te){var ne=Lt.allocAt(a.pa.x,a.pa.y),se=ne.x,he=ne.y;if(a.eq!==null){var ge=Lt.alloc();ge=a.eq.ga(Ua,ge),se=ge.x-a.fq.x/a.scale,he=ge.y-a.fq.y/a.scale,E=oa,Lt.free(ge)}(te||a.scrollMode===xh)&&(E.sb()&&(x>y.width&&(se=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(he=y.y+(E.y*y.height+E.offsetY)-(E.y*b-E.offsetY))),E=a.rj,te=x-y.width,x<y.width+E.left+E.right?(se=Math.min(se+x/2,y.right+Math.max(te,E.right)-x/2),se=Math.max(se,y.left-Math.max(te,E.left)+x/2),se-=x/2):se>y.left?se=y.left:se<y.right-x&&(se=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(he=Math.min(he+b/2,y.bottom+Math.max(x,E.bottom)-b/2),he=Math.max(he,y.top-Math.max(x,E.top)+b/2),he-=b/2):he>y.top?he=y.top:he<y.bottom-b&&(he=y.bottom-b)),ne.x=isFinite(se)?se:-a.yb.left,ne.y=isFinite(he)?he:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ne),ne.x=y.x,ne.y=y.y),gs(a.Yd,a.pa,ne),a.pa.h(ne.x,ne.y),lc(a),Lt.free(ne)}it.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Lu(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof Tr)return a}else if(a=Lu(this,a,function(x){return x.part}),a instanceof Tr)return a;return null},it.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),us(this);for(var b=this.Wa.iteratorBackwards;b.next();){var E=b.value;if(E.visible&&(E=E.ic(a,y,x),E!==null))return E}return null};function Lu(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),us(a),a=a.Wa.iteratorBackwards;a.next();){var E=a.value;if(E.visible&&!E.isTemporary&&(E=E.ic(y,x,b),E!==null))return E}return null}it.lz=function(a,y,x){return y===void 0&&(y=!0),Cc(this,a,function(b){return b.part},y?function(b){return b instanceof Tr&&b.canSelect()}:null,x)};function Cc(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof An||E instanceof Dn||(E=new Dn),us(a),a=a.Wa.iteratorBackwards;a.next();){var te=a.value;te.visible&&!te.isTemporary&&te.ji(y,x,b,E)}return E}it.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof An||b instanceof Dn||(b=new Dn),us(this);for(var E=this.Wa.iteratorBackwards;E.next();){var te=E.value;te.visible&&te.ji(a,y,x,b)}return b},it.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),vh(this,a,function(E){return E instanceof Tr&&(!x||E.canSelect())},y,b)},it.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof An||E instanceof Dn||(E=new Dn),us(this);for(var te=this.Wa.iteratorBackwards;te.next();){var ne=te.value;ne.visible&&ne.Cf(a,y,x,b,E)}return E},it.Nu=function(a,y,x,b,E,te){var ne=new Dn;us(this);for(var se=this.Wa.iteratorBackwards;se.next();){var he=se.value;he.visible&&he.Nu(a,y,x,b,ne,E,te)}return ne};function vh(a,y,x,b,E){var te=null;for(te===void 0&&(te=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof An||E instanceof Dn||(E=new Dn),us(a),a=a.Wa.iteratorBackwards;a.next();){var ne=a.value;ne.visible&&!ne.isTemporary&&ne.Cf(y,te,x,b,E)}return E}it.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),Jc(this,a,y,function(te){return te instanceof Tr&&(!b||te.canSelect())},x,E)},it.og=function(a,y,x,b,E,te){x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof An||E instanceof Dn)&&(te=E),E=!0),te instanceof An||te instanceof Dn||(te=new Dn),us(this);for(var ne=this.Wa.iteratorBackwards;ne.next();){var se=ne.value;se.visible&&se.og(a,y,x,b,E,te)}return te};function Jc(a,y,x,b,E,te){var ne=null;for(ne===void 0&&(ne=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof An||E instanceof Dn)&&(te=E),E=!0),te instanceof An||te instanceof Dn||(te=new Dn),us(a),a=a.Wa.iteratorBackwards;a.next();){var se=a.value;se.visible&&!se.isTemporary&&se.og(y,x,ne,b,E,te)}return te}cn.prototype.acceptEvent=function(a){return gl(this,a,a instanceof MouseEvent)};function gl(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?yh(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),Hr&&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=Nd(y,y.target),b.targetObject=null,b}function Nd(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 Od(a,y,x,b,E,te){var ne=a.Qg;return a.Qg=a.cj,a.cj=ne,ne.diagram=a,ne.clickCount=1,a=ne.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),ne.modifiers=a,ne.event=y,ne.timestamp=y.timeStamp,ne.button=y.button,ne.buttons=y.buttons,Hr&&y.button===0&&y.ctrlKey&&(ne.button=2),ne.down=x,ne.up=b,ne.handled=!1,ne.bubbles=E,ne.isMultiTouch=te,ne}function $l(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}cn.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=gl(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(),$l(x,a)},cn.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=gl(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(),$l(x,a)},cn.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=gl(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),$l(x,a)},cn.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=gl(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),$l(x,a)},cn.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Lt(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?ii(new Lt(y,a),this.Ab):new Lt(y,a)};function yh(a,y,x){var b=a.ta,E=a.Aa,te=a.ya,ne=0,se=0;b!==null&&(b=b.getBoundingClientRect(),ne=y.clientX-E/b.width*b.left,se=y.clientY-te/b.height*b.top),x.viewPoint.h(ne,se),a.Ab!==null?(y=Lt.allocAt(ne,se),a.Ab.Cd(y),x.documentPoint.assign(y),Lt.free(y)):x.documentPoint.h(ne,se)}function Ad(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))}}cn.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function jd(a){a.ld||us(a),a.Va()}cn.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},it=cn.prototype,it.Pz=function(){return this.kg},it.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,il(this),this.hf=!1,this.du=new Lt(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&Jn(function(){b.ld=!1,Ps(y,"Model"),a(b)},1)},it.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Dt.requestAnimationFrame(function(){y.kg&&y.bd()})}},it.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),il(this))};function Ec(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Tc(a)||(y&&us(a),x&&Ul(a,!1))}function il(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,b=a.Xn;if(!x.isAnimating&&b.length!==0){for(var E=b.s,te=E.length,ne=0;ne<te;ne++){var se=E[ne];Oa(se,!1),se.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(he){he.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Ld(a),Ec(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(sc(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),us(a),te=!1,(!a.hf||a.xh)&&(a.hf?qp(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),qp(a,!1)),te=!0),a.Jk=!1,us(a),a.ou||jd(a),Ec(a,!0,!1),ne=!1,te?(x=Tn.alloc(),x.assign(a.viewportBounds),a.hf||(ne=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Id(a)),a.R("LayoutCompleted"),Ec(a,!0,!1),Tn.free(x)):x.Ok&&x.Qw&&(a.Fg!==Is?a.scale=mh(a,a.Fg):a.yh!==Is?a.scale=mh(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Ul(a,!0)),te&&ne&&a.eb("Initial Layout"),us(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function Id(a){if(a.Fg!==Is)a.scale=mh(a,a.Fg);else if(a.yh!==Is)a.scale=mh(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Ul(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),sc(a)}function us(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 Dn,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof ei&&b.U&65536&&(b.U=b.U^65536)})}}it.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof ei||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof ei&&x.isVisible()&&qo(this,x);for(a.reset();a.next();)x=a.value,x instanceof Vn&&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 Gi&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function qo(a,y){for(var x=xn(),b=xn(),E=y.memberParts;E.next();){var te=E.value;te.isVisible()&&(te instanceof ei?(Vl(te)||Ws(te)||ed(te))&&qo(a,te):te instanceof Vn?te.fromNode===y||te.toNode===y?b.push(te):x.push(te):(te.measure(1/0,1/0),te.arrange()))}for(a=x.length,E=0;E<a;E++)te=x[E],te.measure(1/0,1/0),te.arrange();for(In(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();In(b)}it.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},it.gc=function(a){if(this.Ka!==null){if(this.ta===null&&Zt("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){iu(this);var x=this.Aa,b=this.ya;if(a.Gv.resize(x,b,x,b),x=this.Wa.s,b=x.length,this.Fd(x,b,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var E=this.Ca,te=Math.round(y.x*E)/E,ne=Math.round(y.y*E)/E,se=this.Ab;for(se.reset(),E!==1&&se.scale(E),y.x===0&&y.y===0||se.translate(-te,-ne),a.ti=null,Xy(a,se.m11,se.m12,se.m21,se.m22,se.dx,se.dy),this.pb!==1&&(a.globalAlpha=this.pb),js(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?zd(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(pi.prototype.Cd=pi.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(te=this.animationManager,!te.zb&&(!te.isAnimating||te.isTicking)&&(x=new Date,iu(this),this.Ka.style.opacity!=="0")){if(b=a!==this.ib,y=this.Wa.s,E=y.length,this.Fd(y,E,this,this.viewportBounds),b)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!te.isAnimating)break e;te=this.Ab,te.reset(),ne=this.Mb,se=this.pa;var he=this.Ca,ge=Math.round(se.x*he)/he,ye=Math.round(se.y*he)/he;for(he!==1&&te.scale(he),se.x===0&&se.y===0||te.translate(-ge,-ye),a.setTransform(ne,0,0,ne,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),js(this,a),se=0;se<E;se++)a.setTransform(ne,0,0,ne,0,0),a.transform(te.m11,te.m12,te.m21,te.m22,te.dx,te.dy),a.yc(),y[se].gc(a,this);if(y=!1,this.Yf?zd(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(pi.prototype.Cd=pi.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=Ar&&Ar.nx,x=this.zw,b||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,E=y=0;E<x.length;E++)y+=x[E];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),b)for(a.setTransform(1,0,0,1,0,0),b=0;b<x.length;b++)a.fillText(x[b].toString(),20,150+ +(20*b))}}};function Ea(a,y,x,b,E,te,ne,se,he,ge){if(a.Ka!==null){a.ta===null&&Zt("No canvas specified"),ne===void 0&&(ne=null),se===void 0&&(se=null),he===void 0&&(he=!1),ge===void 0&&(ge=!1),iu(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ye=a.Ca;a.Ca=E;var De=a.Wa.s,$e=De.length;try{var Qe=new Tn(te.x,te.y,b.width/E,b.height/E),rt=Qe.copy();rt.Co(x),sc(a,rt),us(a),a.Fd(De,$e,a,Qe),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),se!==null&&se!==""&&(y.fillStyle=se,y.ox(0,0,b.width,b.height));var ut=a.Mb;y.scale(ut,ut);var Ot=pi.alloc();Ot.reset(),Ot.translate(x.left,x.top),Ot.scale(E),te.x===0&&te.y===0||Ot.translate(-te.x,-te.y),y.setTransform(Ot.m11,Ot.m12,Ot.m21,Ot.m22,Ot.dx,Ot.dy),y.yc(),y instanceof Tl&&Xy(y,Ot.m11,Ot.m12,Ot.m21,Ot.m22,Ot.dx,Ot.dy),pi.free(Ot),js(a,y),y.globalAlpha=a.pb;var Tt=a.Qj("Grid");if(ne){var Bt=new Dn,_t=ne.iterator;for(_t.reset();_t.next();){var Ht=_t.value;Ht instanceof Tr&&(ge||Ht.layer!==Tt)&&(Ht.Gj(),Bt.add(Ht))}for(ge=0;ge<$e;ge++)pl(De[ge],y,a,Bt,he);Bt.each(function(hn){return hn.Gj()})}else for(Bt=0;Bt<$e;Bt++){var Vt=De[Bt];Vt===Tt?ge&&Vt.gc(y,a,!0):Vt.gc(y,a,he)}a.$i=!1,a.Yf&&zd(a.Yf,a)&&a.Vp()}finally{a.Ca=ye,a.ib.Vc(!0),a.vd=!0,a.Fd(De,$e,a,a.viewportBounds),sc(a),a.ib instanceof Tl&&(a.ib.Nj.PA(),a.redraw())}}}it.Gf=function(a){return this.Rg[a]},it.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},it.Tx=function(){this.Rg=new pr,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Hr||mr),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function js(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}it.Ql=function(a){return this.on[a]},it.sA=function(a,y){this.on[a]=y},it.Sx=function(){this.on=new pr,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},it.set=function(a){return Object.assign(this,a),this},it.Du=function(a){return this.nm(a)},it.nm=function(a){return ru(this,a),this};function ru(a,y){var x=a instanceof Kn,b=a instanceof cn,E;for(E in y){E===""&&Zt("Setting properties requires non-empty property names");var te=a,ne=E;if(x||b){var se=E.indexOf(".");if(0<se){var he=E.substring(0,se);x?te=a.fb(he):(te=a[he],te==null&&(te=a.toolManager[he])),nn(te)?ne=E.substr(se+1):Zt("Unable to find object named: "+he+" in "+a.toString()+" when trying to set property: "+E)}}if(ne[0]!=="_"&&!kn(te,ne))if(b&&ne==="ModelChanged"){a.Yw(y[ne]);continue}else if(b&&ne==="Changed"){a.Pe(y[ne]);continue}else if(b&&kn(a.toolManager,ne))te=a.toolManager;else if(b&&sm(a,ne)){a.Bj(ne,y[ne]);continue}else if(a instanceof xr&&ne==="Changed"){a.Pe(y[ne]);continue}else Zt('Trying to set undefined property "'+ne+'" on object: '+te.toString());te[ne]=y[E],ne[0]==="_"&&te instanceof Yt&&te.Vw(ne)}}it.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new dr,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},it.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")},cn.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,E=Math.max(a.y,y.y),te=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,te-E)*b){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(b=Tn.alloc(),Qp(this,this.computeBounds(b)),Tn.free(b)),b=this.ta,b===null||b instanceof uc)))){var ne=this.Mb;E=this.Aa*ne;var se=this.ya*ne,he=this.scale*ne;te=Math.round(Math.round(y.x*he)-Math.round(a.x*he)),y=Math.round(Math.round(y.y*he)-Math.round(a.y*he)),he=this.jw,a=this.oy,he.width!==E&&(he.width=E),he.height!==se&&(he.height=se),a.clearRect(0,0,E,se),he=190*ne;var ge=70*ne,ye=Math.max(te,0),De=Math.max(y,0),$e=Math.floor(E-ye),Qe=Math.floor(se-De);a.drawImage(b.Oa,ye,De,$e,Qe,0,0,$e,Qe),zd(this.Yf,this)&&a.clearRect(0,0,he,ge),b=xn(),a=xn(),Qe=Math.abs(te),$e=Math.abs(y);var rt=ye===0?0:E-Qe;ye=Lt.allocAt(rt,0),Qe=Lt.allocAt(Qe+rt,se),a.push(new Tn(Math.min(ye.x,Qe.x),Math.min(ye.y,Qe.y),Math.abs(ye.x-Qe.x),Math.abs(ye.y-Qe.y)));var ut=this.Ab;if(ut.reset(),ut.scale(ne,ne),this.Ca!==1&&ut.scale(this.Ca),ne=this.pa,(ne.x!==0||ne.y!==0)&&isFinite(ne.x)&&isFinite(ne.y)&&ut.translate(-ne.x,-ne.y),ii(ye,ut),ii(Qe,ut),b.push(new Tn(Math.min(ye.x,Qe.x),Math.min(ye.y,Qe.y),Math.abs(ye.x-Qe.x),Math.abs(ye.y-Qe.y))),rt=De===0?0:se-$e,ye.h(0,rt),Qe.h(E,$e+rt),a.push(new Tn(Math.min(ye.x,Qe.x),Math.min(ye.y,Qe.y),Math.abs(ye.x-Qe.x),Math.abs(ye.y-Qe.y))),ii(ye,ut),ii(Qe,ut),b.push(new Tn(Math.min(ye.x,Qe.x),Math.min(ye.y,Qe.y),Math.abs(ye.x-Qe.x),Math.abs(ye.y-Qe.y))),zd(this.Yf,this)&&(E=0<te?0:-te,se=0<y?0:-y,ye.h(E,se),Qe.h(he+E,ge+se),a.push(new Tn(Math.min(ye.x,Qe.x),Math.min(ye.y,Qe.y),Math.abs(ye.x-Qe.x),Math.abs(ye.y-Qe.y))),ii(ye,ut),ii(Qe,ut),b.push(new Tn(Math.min(ye.x,Qe.x),Math.min(ye.y,Qe.y),Math.abs(ye.x-Qe.x),Math.abs(ye.y-Qe.y)))),Lt.free(ye),Lt.free(Qe),Ec(this,!1,!0),this.Ka===null&&Zt("No div specified"),this.ta===null&&Zt("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(iu(this),se=this.Mb,E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,this.Aa*se,this.ya*se),E.drawImage(this.jw.Oa,0<te?0:Math.round(-te),0<y?0:Math.round(-y)),te=this.pa,ne=this.Ca,he=Math.round(te.x*ne)/ne,ge=Math.round(te.y*ne)/ne,y=this.Ab,y.reset(),ne!==1&&y.scale(ne),te.x===0&&te.y===0||y.translate(-he,-ge),E.save(),E.beginPath(),te=a.length,ne=0;ne<te;ne++)he=a[ne],he.width!==0&&he.height!==0&&E.rect(Math.floor(he.x),Math.floor(he.y),Math.ceil(he.width),Math.ceil(he.height));for(E.clip(),E.setTransform(se,0,0,se,0,0),E.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),E.yc(),y=this.Wa.s,te=y.length,this.Fd(y,te,this,this.viewportBounds),js(this,E),E.globalAlpha=this.pb,se=0;se<te;se++)if(ne=y[se],he=b,ne.visible&&ne.pb!==0){ge=vs(ne,E),De=ne.Zq,De.length=0,ye=this.scale,$e=Tn.alloc(),Qe=ne.Pa.s,ut=Qe.length,rt=he.length;for(var Ot=0;Ot<ut;Ot++){var Tt=Qe[Ot],Bt=Zd(Tt,Tt.actualBounds);e:{for(var _t=2/ye,Ht=4/ye,Vt=0;Vt<rt;Vt++){var hn=he[Vt];if(hn.width!==0&&hn.height!==0&&Bt.Vu(hn.x-_t,hn.y-_t,hn.width+Ht,hn.height+Ht)){Bt=!0;break e}}Bt=!1}Bt&&ne.Oj(E,Tt,this,De,ye,$e,!0)}Tn.free($e),E.globalAlpha=ge}E.restore(),E.Vc(!0),this.Yf&&zd(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}In(b),In(a),this.ld=!1}}else this.bd();x&&(Ms(this),this.bd(),Kh(this,!0))}else x?(Ms(this),this.bd(),Kh(this,!0)):this.bd()}};function iu(a){a.pn!==!1&&(a.pn=!1,Dd(a,a.Aa,a.ya))}function Dd(a,y,x){lc(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Tc(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,b=a.ya,E=a.Ka,te=!1,ne=a.gf?a.Db:0,se=a.Be?a.Db:0,he=E.clientWidth||x+ne,ge=E.clientHeight||b+se,ye=a.viewportBounds;E=ye.x;var De=ye.y,$e=ye.width,Qe=ye.height;if((he!==x+ne||ge!==b+se)&&(a.gf=!1,a.Be=!1,se=ne=0,a.Aa=he,a.ya=ge,te=a.pn=!0,lc(a)),!a.hf||!a.viewportBounds.w())return!0;var rt=a.ku,ut=a.hu;if(a.Ee=!1,!(te||a.gf||a.Be||a.mn||a.nn))return!0;var Ot=a.documentBounds,Tt=0,Bt=0,_t=0,Ht=0,Vt=ye.width,hn=ye.height,rr=a.rj;a.contentAlignment.sb()?(Ot.width>Vt&&(Tt=rr.left,Bt=rr.right),Ot.height>hn&&(_t=rr.top,Ht=rr.bottom)):(Tt=rr.left,Bt=rr.right,_t=rr.top,Ht=rr.bottom);var fr=Ot.width+Tt+Bt,cr=Ot.height+_t+Ht;rr=a.scale;var Zn=fr>he/rr,Bn=cr>ge/rr;if(!(te||a.gf||a.Be||Zn||Bn))return!0;Tt=Ot.x-Tt,he=ye.x,Bt=Ot.right+Bt,ge=ye.right+ne,_t=Ot.y-_t;var Jr=ye.y;Ot=Ot.bottom+Ht,ye=ye.bottom+se;var Wr="1px";if(Ht="1px",a.scrollMode===xh&&(Zn||Bn)&&(Zn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Zn=1,Tt+1<he&&(Zn=Math.max((he-Tt)*rr+a.Aa,Zn)),Bt>ge+1&&(Zn=Math.max((Bt-ge)*rr+a.Aa,Zn)),Vt+ne+1<fr&&(Zn=Math.max((fr-Vt)*rr+a.Aa,Zn)),Wr=Zn.toString()+"px"),Bn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Zn=1,_t+1<Jr&&(Zn=Math.max((Jr-_t)*rr+a.ya,Zn)),Ot>ye+1&&(Zn=Math.max((Ot-ye)*rr+a.ya,Zn)),hn+se+1<cr&&(Zn=Math.max((cr-hn)*rr+a.ya,Zn)),Ht=Zn.toString()+"px")),Zn=Wr!=="1px",Bn=Ht!=="1px",Zn&&Bn||!Zn&&!Bn||(Bn&&(ge-=a.Db),Zn&&(ye-=a.Db),fr<Vt+ne||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ne=1,Tt+1<he&&(ne=Math.max((he-Tt)*rr+a.Aa,ne)),Bt>ge+1&&(ne=Math.max((Bt-ge)*rr+a.Aa,ne)),Vt+1<fr&&(ne=Math.max((fr-Vt)*rr+a.Aa,ne)),Wr=ne.toString()+"px"),Zn=Wr!=="1px",ne=a.ya,Zn!==a.Be&&(ne=Zn?a.ya-a.Db:a.ya+a.Db),cr<hn+se||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(se=1,_t+1<Jr&&(se=Math.max((Jr-_t)*rr+ne,se)),Ot>ye+1&&(se=Math.max((Ot-ye)*rr+ne,se)),hn+1<cr&&(se=Math.max((cr-hn)*rr+ne,se)),Ht=se.toString()+"px"),Bn=Ht!=="1px"),a.qr&&Zn===a.Be&&Bn===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(Zn!==a.Be&&(Wr==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),te=!0),a.Be=Zn,ut.style.width=Wr,Bn!==a.gf&&(Ht==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),te=!0,a.tn&&(se=Lt.alloc(),Bn?(y.style.left=a.Db+"px",a.position=se.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=se.h(a.pa.x-a.Db/a.scale,a.pa.y)),Lt.free(se))),te&&lc(a),a.gf=Bn,ut.style.height=Ht,a.gu=!0,te&&(a.pn=!0),y=rt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Vt+1<fr?y=(a.position.x-Tt)*rr:Tt+1<he?y=rt.scrollWidth-rt.clientWidth:Bt>ge+1&&(y=a.position.x*rr)),a.tn)switch(a.bu){case"negative":y=-(rt.scrollWidth-y-rt.clientWidth);break;case"reverse":y=rt.scrollWidth-y-rt.clientWidth}return rt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(hn+1<cr?rt.scrollTop=(a.position.y-_t)*rr:_t+1<Jr?rt.scrollTop=rt.scrollHeight-rt.clientHeight:Ot>ye+1&&(rt.scrollTop=a.position.y*rr)),he=a.Aa,ge=a.ya,rt.style.width=he+(a.gf?a.Db:0)+"px",rt.style.height=ge+(a.Be?a.Db:0)+"px",x!==he||b!==ge||a.animationManager.zb?(x=Tn.allocAt(E,De,$e,Qe),a.onViewportBoundsChanged(x,a.viewportBounds,rr,te),Tn.free(x),!1):!0}it=cn.prototype,it.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Zt("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&&Zt('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(sa,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},it.oi=function(a){this.partManager.oi(a);var y=this;Ud(a,function(x){Fd(y,x)}),(a instanceof Gi||a instanceof ei&&a.placeholder!==null)&&a.v(),a.data!==null&&Ud(a,function(x){ly(y.partManager,x)}),Ws(a)!==!0&&ed(a)!==!0||this.De.add(a),R1(a,!0,this),z1(a)?(a.actualBounds.w()&&this.N(Zd(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Zd(a,a.actualBounds)),this.$b()},it.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Ud(a,function(x){uy(y.partManager,x,y)}),this.De.remove(a),z1(a)?(a.actualBounds.w()&&this.N(Zd(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Zd(a,a.actualBounds)),this.$b()},it.remove=function(a){Vh(this,a,!0)};function Vh(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(Ma,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}it.Is=function(a,y){if(y===void 0&&(y=!1),On(a))for(var x=a.length,b=0;b<x;b++){var E=a[b];y&&!E.canDelete()||this.remove(E)}else for(x=new Dn,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},it.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},cn.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=Xf(this)),this.toolManager!==null){var E=new dr;if(a!==null)if(On(a))for(var te=0;te<a.length;te++)mu(this,E,a[te],x,b);else for(a=a.iterator;a.next();)mu(this,E,a.value,x,b);else{for(a=this.parts;a.next();)mu(this,E,a.value,x,b);for(a=this.nodes;a.next();)mu(this,E,a.value,x,b);for(a=this.links;a.next();)mu(this,E,a.value,x,b)}ac(this,E,y,b,x)}};function mu(a,y,x,b,E,te){if(!y.contains(x)&&(te===void 0&&(te=!1),!b||te||x.canMove()||x.canCopy()))if(E===void 0&&(E=Xf(a)),x instanceof sr){if(y.add(x,a.Pd(E,x,x.location)),x instanceof ei&&(x.placeholder!==null||E.dragsMembers))for(te=x.memberParts;te.next();)mu(a,y,te.value,b,E,E.groupsAlwaysMove);for(te=x.linksConnected;te.next();){var ne=te.value;if(!y.contains(ne)){var se=ne.fromNode,he=ne.toNode;se!==null&&y.contains(se)&&he!==null&&y.contains(he)&&mu(a,y,ne,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)mu(a,y,x.value,b,E)}else if(x instanceof Vn)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)mu(a,y,x.value,b,E);else x instanceof Gi||y.add(x,a.Pd(E,x,x.location))}function ac(a,y,x,b,E){if(y!==null&&y.count!==0){var te=Lt.alloc(),ne=Lt.alloc();ne.assign(x),isNaN(ne.x)&&(ne.x=0),isNaN(ne.y)&&(ne.y=0),(x=a.Mr)||Jf(a,y);for(var se=xn(),he=xn(),ge=y.iterator,ye=Lt.alloc();ge.next();){var De=ge.key,$e=ge.value;if(De.Zc()){var Qe=Zp(a,De,y);Qe!==null?se.push(new ie(De,$e,Qe)):(!E||De.canMove())&&(Qe=$e.point,te.assign(Qe),a.computeMove(De,te.add(ne),b,ye),De.location=ye,$e.shifted===void 0&&($e.shifted=new Lt),$e.shifted.assign(ye.re(Qe)))}else ge.key instanceof Vn&&he.push(ge.sa)}for(Lt.free(ye),E=se.length,ge=0;ge<E;ge++)De=se[ge],te.assign(De.info.point),De.Su.shifted===void 0&&(De.Su.shifted=new Lt),De.node.location=te.add(De.Su.shifted);for(E=Lt.alloc(),ge=Lt.alloc(),De=he.length,$e=0;$e<De;$e++){var rt=he[$e];if(Qe=rt.key,Qe instanceof Vn)if(Qe.suspendsRouting){Qe.Tg=null,ye=Qe.fromNode;var ut=Qe.toNode;if(a.draggedLink!==null&&b.dragsLink)if(ut=rt.value.point,Qe.dragComputation===null)y.add(Qe,a.Pd(b,Qe,ne)),Lh(Qe,ne.x-ut.x,ne.y-ut.y);else{rt=Lt.allocAt(0,0),(ye=Qe.i(0))&&ye.w()&&rt.assign(ye);var Ot=ye=Lt.alloc().assign(rt).add(ne);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(Ot=Lt.alloc(),Yf(a,Qe,ye,Ot,b)),ye.assign(Qe.dragComputation(Qe,ye,Ot)).re(rt),y.add(Qe,a.Pd(b,Qe,ye)),Lh(Qe,ye.x-ut.x,ye.y-ut.y),Lt.free(rt),Lt.free(ye),Ot!==ye&&Lt.free(Ot)}else ye!==null&&(E.assign(ye.location),Ot=y.I(ye),Ot!==null&&E.re(Ot.point)),ut!==null&&(ge.assign(ut.location),Ot=y.I(ut),Ot!==null&&ge.re(Ot.point)),ye!==null&&ut!==null?E.Xa(ge)?(ye=rt.value.point,ut=te,ut.assign(E),ut.re(ye),y.add(Qe,a.Pd(b,Qe,E)),Lh(Qe,ut.x,ut.y)):(Qe.suspendsRouting=!1,Qe.bb()):(rt=rt.value.point,ye=ye!==null?E:ut!==null?ge:ne,y.add(Qe,a.Pd(b,Qe,ye)),Lh(Qe,ye.x-rt.x,ye.y-rt.y))}else(Qe.fromNode===null||Qe.toNode===null)&&(ye=rt.value.point,y.add(Qe,a.Pd(b,Qe,ne)),Lh(Qe,ne.x-ye.x,ne.y-ye.y))}Lt.free(te),Lt.free(ne),Lt.free(E),Lt.free(ge),In(se),In(he),x||(us(a),Xh(a,y))}}cn.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new Lt),b.assign(y),a===null)return b;var E=y,te=x.isGridSnapEnabled;te&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=Lt.alloc(),Yf(this,a,y,E,x)),x=a.dragComputation!==null?a.dragComputation(a,y,E):E;var ne=a.minLocation,se=ne.x;isNaN(se)&&(se=te?Math.round(1e3*a.location.x)/1e3:a.location.x),ne=ne.y,isNaN(ne)&&(ne=te?Math.round(1e3*a.location.y)/1e3:a.location.y);var he=a.maxLocation,ge=he.x;return isNaN(ge)&&(ge=te?Math.round(1e3*a.location.x)/1e3:a.location.x),he=he.y,isNaN(he)&&(he=te?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(se,Math.min(x.x,ge)),Math.max(ne,Math.min(x.y,he))),E!==y&&Lt.free(E),b};function Xf(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function Yf(a,y,x,b,E){if(E===void 0&&(E=Xf(a)),b.assign(x),y!==null){var te=a.grid;y=E.gridSnapCellSize,a=y.width,y=y.height;var ne=E.gridSnapOrigin,se=ne.x;if(ne=ne.y,E=E.gridSnapCellSpot,te!==null){var he=te.gridCellSize;isNaN(a)&&(a=he.width),isNaN(y)&&(y=he.height),te=te.gridOrigin,isNaN(se)&&(se=te.x),isNaN(ne)&&(ne=te.y)}te=Lt.allocAt(0,0),te.yi(0,0,a,y,E),Qt.No(x.x,x.y,se+te.x,ne+te.y,a,y,b),Lt.free(te)}}function Jf(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Vn&&(y.suspendsRouting=!0)}function Xh(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof Vn&&(x.suspendsRouting=!1,Vv(x)&&x.bb())}a.Mr=!1}}function Zp(a,y,x){return y=y.containingGroup,y!==null&&(a=Zp(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}it=cn.prototype,it.Pd=function(a,y,x){if(x===void 0)return new Qc(Pi);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new Qc(new Lt(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new Qc(x.copy())};function Vp(a,y,x){if(y.diagram!==null&&y.diagram!==a&&Zt("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&Zt("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&Zt("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&Zt("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&&Zt("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}it.Al=function(a){Vp(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(sa,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},it.Ww=function(a,y){Vp(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Ma,"layers",this,a,null,b,null));var E=x.count,te;for(te=0;te<E;te++)if(x.M(te)===y){x.Gb(te,a);break}return this.cc!==null&&this.cb(sa,"layers",this,null,a,null,te),this.N(),0>b&&this.Ya(),this},it.Cy=function(a,y){Vp(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Ma,"layers",this,a,null,b,null));var E=x.count,te;for(te=0;te<E;te++)if(x.M(te)===y){x.Gb(te+1,a);break}return this.cc!==null&&this.cb(sa,"layers",this,null,a,null,te+1),this.N(),0>b&&this.Ya(),this},it.kA=function(a){if(a.diagram!==this&&Zt("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var b=y.value,E=b.layerName;E!==a.name?b.layerName=E:b.layerName=""}this.cc!==null&&this.cb(Ma,"layers",this,a,null,x,null),this.N(),this.Ya()}}},it.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},it.Yw=function(a){return this.pf===null&&(this.pf=new An),this.pf.add(a),this.model.Pe(a),this},it.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},it.Pe=function(a){return this.zg===null&&(this.zg=new An),this.zg.add(a),this},it.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},it.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==rl&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},it.cb=function(a,y,x,b,E,te,ne){te===void 0&&(te=null),ne===void 0&&(ne=null);var se=new _o;se.diagram=this,se.change=a,se.propertyName=y,se.object=x,se.oldValue=b,se.oldParam=te,se.newValue=E,se.newParam=ne,this.ds(se)},it.g=function(a,y,x,b,E){this.cb(zo,a,this,y,x,b,E)},cn.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===zo){var E=a.object;if(Ao(E,a.propertyName,a.I(y)),E instanceof Yt){var te=E.part;te!==null&&te.Wb()}this.isModified=!0}else if(b===sa){var ne=a.object,se=a.newParam,he=a.newValue;if(ne instanceof Kn)if(typeof se=="number"&&he instanceof Yt){y?ne.pc(se):ne.Gb(se,he);var ge=ne.part;ge!==null&&ge.Wb()}else typeof se=="number"&&he instanceof Aa&&(he.isRow?h1(ne,se,y?void 0:he):d1(ne,se,y?void 0:he));else if(ne instanceof Ho){var ye=a.oldParam===!0;typeof se=="number"&&he instanceof Tr&&(y?(he.isSelected=!1,he.isHighlighted=!1,he.Wb(),ne.pc(ye?se:-1,he,ye)):ne.oi(se,he,ye))}else ne instanceof cn?typeof se=="number"&&he instanceof Ho&&(y?this.Wa.mb(se):(he.Xe(this),this.Wa.Gb(se,he))):Zt("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===Ma){var De=a.object,$e=a.oldParam,Qe=a.oldValue;if(De instanceof Kn)typeof $e=="number"&&Qe instanceof Yt?y?De.Gb($e,Qe):De.pc($e):typeof $e=="number"&&Qe instanceof Aa&&(Qe.isRow?h1(De,$e,y?Qe:void 0):d1(De,$e,y?Qe:void 0));else if(De instanceof Ho){var rt=a.newParam===!0;typeof $e=="number"&&Qe instanceof Tr&&(y?0>De.Pa.indexOf(Qe)&&De.oi($e,Qe,rt):(Qe.isSelected=!1,Qe.isHighlighted=!1,Qe.Wb(),De.pc(rt?$e:-1,Qe,rt)))}else De instanceof cn?typeof $e=="number"&&Qe instanceof Ho&&(y?(Qe.Xe(this),this.Wa.Gb($e,Qe)):this.Wa.mb($e)):Zt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==rl&&Zt("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},cn.prototype.Ea=function(a){return this.undoManager.Ea(a)},cn.prototype.eb=function(a){return this.undoManager.eb(a)},cn.prototype.Kf=function(){return this.undoManager.Kf()},cn.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}},cn.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},cn.prototype.rp=function(){this.partManager.rp()};function Xp(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,lc(a),a.N(),a.Ee=!0,b.zb&&(ps(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,lc(a);else{a.vb=!0;var E=a.viewportBounds.copy(),te=a.Aa,ne=a.ya,se=a.zoomPoint.x,he=a.zoomPoint.y,ge=a.contentAlignment;isNaN(se)&&(ge.$c()?ge.Hf(Ru)?se=0:ge.Hf(_s)&&(se=te-1):se=ge.sb()?ge.x*(te-1):te/2),isNaN(he)&&(ge.$c()?ge.Hf(Eu)?he=0:ge.Hf(hl)&&(he=ne-1):he=ge.sb()?ge.y*(ne-1):ne/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),te=Lt.allocAt(a.pa.x+se/y-se/x,a.pa.y+he/y-he/x),a.position=te,Lt.free(te),a.Ca=x,lc(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),Ul(a,!1),b.zb&&(ps(b)||b.ce.add(b.H,"scale",y,a.Ca))}}cn.prototype.onViewportBoundsChanged=function(a,y,x,b){if(!a.D(y)){b===void 0&&(b=!1),b||(this.Ee=!0),this.vd=!0;var E=this.layout;E===null||!E.isViewportSized||this.autoScale!==Is||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof Do&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Uf(E,this)),this.vb||this.invalidateViewport(a,y),sc(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(te){te.isAvoiding&&te.actualBounds.Yc(y)&&te.bb()})}};function sc(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=Xn.alloc(),E=1,te=1,ne=x.O.s,se=ne.length,he=0;he<se;he++){var ge=ne[he],ye=Math.abs(ge.interval);2>ye||(mv(ge.figure)?te=te*ye/Qt.vx(te,ye):E=E*ye/Qt.vx(E,ye))}if(ne=x.gridCellSize,b.h(te*ne.width,E*ne.height),y!==void 0)E=y.width,te=y.height,a=y.x,ne=y.y;else{if(y=Tn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){Tn.free(y);return}E=y.width,te=y.height,a=y.x,ne=y.y,Tn.free(y)}x.width=E+2*b.width,x.height=te+2*b.height,y=Lt.alloc(),Qt.No(a,ne,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),Xn.free(b),x.part.location=y,Lt.free(y)}}cn.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),b=x.length,E=0;E<b;E++)x[E].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},cn.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))},cn.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),On(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof Tr||Zt("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 Tr||Zt("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},cn.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()}},it=cn.prototype,it.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},it.Jz=function(a){a=new Dn().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 Tr||Zt("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},it.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,te=Lt.alloc();if(a==="pixel")E=x;else if(a==="line")E=x*(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=b?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(E=x*Math.max(a-(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){E=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=te.h(x.x,E.y):y==="left"?this.position=te.h(E.x,x.y):y==="down"?this.position=te.h(x.x,E.bottom-x.height):y==="right"&&(this.position=te.h(E.right-x.width,x.y)),Lt.free(te);return}Zt("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}E/=this.scale,x=this.position,y==="up"?this.position=te.h(x.x,x.y-E):y==="down"?this.position=te.h(x.x,x.y+E):y==="left"?this.position=te.h(x.x-E,x.y):y==="right"?this.position=te.h(x.x+E,x.y):Zt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Lt.free(te)},it.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)},it.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},it.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)},it.zA=function(a){var y=this.Ab,x=a.x,b=a.y,E=x+a.width,te=b+a.height,ne=y.m11,se=y.m12,he=y.m21,ge=y.m22,ye=y.dx,De=y.dy,$e=x*ne+b*he+ye;y=x*se+b*ge+De;var Qe=E*ne+b*he+ye;return a=E*se+b*ge+De,b=x*ne+te*he+ye,x=x*se+te*ge+De,ne=E*ne+te*he+ye,E=E*se+te*ge+De,te=Math.min($e,Qe),$e=Math.max($e,Qe),Qe=Math.min(y,a),y=Math.max(y,a),te=Math.min(te,b),$e=Math.max($e,b),Qe=Math.min(Qe,x),y=Math.max(y,x),te=Math.min(te,ne),$e=Math.max($e,ne),Qe=Math.min(Qe,E),y=Math.max(y,E),new Tn(te,Qe,$e-te,y-Qe)},it.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),ii(a.copy(),this.Ab)};function om(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Yp(a){return a=rp.get(a),a!==null?new a:new io}cn.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===rl&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(he){return he.diagram=E}),a.mouseMoveTools.each(function(he){return he.diagram=E}),a.mouseUpTools.each(function(he){return he.diagram=E}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else b==="StartingUndo"||b==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):b==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&x===rl){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),us(this));var te=this.animationManager;b==="RolledBackTransaction"&&te.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||es(te),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 ne=a.isTransactionFinished;if(ne&&(om(this),this.As.clear(),ra(this.animationManager)),!this.Rt&&ne&&this.lastInput.targetDiagram){this.Rt=!0;var se=this;Jn(function(){se.currentTool.standardMouseOver(),se.Rt=!1},10)}}}finally{this.aa=!0}}}};function Fd(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)Yh(a,y[b])}function Yh(a,y){if(y instanceof ll){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof Dn&&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 Jp(a,y){if(y instanceof ll){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var b=x.getAttribute("src")||"",E=a.Og.I(b);if(E!==null){for(var te=0;te<E.length;te++)if(E[te]===y){E.splice(te,1),E.length===0&&(a.Og.remove(b),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof Dn&&x.Bg.remove(a),mp(b));break}}}}}cn.prototype.Wd=function(){this.partManager.Wd()},cn.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},cn.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},cn.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},cn.prototype.Vb=function(a){return this.partManager.Vb(a)},cn.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},it=cn.prototype,it.Lc=function(a){return this.partManager.Lc(a)},it.ii=function(a){return this.partManager.ii(a)},it.Kc=function(a){return this.partManager.Kc(a)},it.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:di(Rr(y)))},it.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:di(Rr(y)))};function lc(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 Qp(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Ul(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}it.Va=function(){if(this.Zi){var a=Tn.alloc();Qp(this,this.computeBounds(a)),Tn.free(a)}},it.rz=function(){for(var a=new Dn,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},it.qz=function(){return this.ai.iterator},it.Uz=function(a){us(this),a&&Qf(this,!0),this.ld?qp(this,!1):(this.Jk=!0,il(this))};function Qf(a,y){for(var x=a.ai.iterator;x.next();)am(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function am(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)am(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function qp(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var b=a.undoManager.transactionLevel,E=a.layout,te=a.animationManager;try{b===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=b&&!te.defaultAnimation.isAnimating&&!te.zb&&(y||Ps(te,"Layout")),a.xh=!1;for(var ne=a.ai.iterator;ne.next();)eg(a,ne.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),us(a),E.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,b===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||b!==0&&b!==1||es(te),a.aa=x}}}function eg(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)eg(a,E.value,x,b);E=y.layout,E===null||E.isValidLayout||(!x||E.isRealtime||b===0?(y.rh=!y.location.w(),E.doLayout(y),y.C(32),qo(a,y),E.isValidLayout=!0):a.xh=!0)}}it.yz=function(){for(var a=new An,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function nv(a){function y(E){var te=E.toLowerCase(),ne=new An;x.add(E,ne),x.add(te,ne),b.add(E,E),b.add(te,E)}var x=new dr,b=new dr;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 sm(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function qf(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;Zt("Unknown DiagramEvent name: "+y)}it.Bj=function(a,y){return a=qf(this,a),a!==null&&a.add(y),this},it.am=function(a,y){a=qf(this,a),a!==null&&a.remove(y)},it.R=function(a,y,x){var b=qf(this,a),E=new Kc;if(E.diagram=this,a=sm(this,a),a!==null&&(E.name=a),y!==void 0&&(E.subject=y),x!==void 0&&(E.parameter=x),y=b.length,y===1)b.M(0)(E);else if(y!==0)for(b=b.Fa(),x=0;x<y;x++)(0,b[x])(E)};function ep(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}it.Yj=function(a,y){return tp(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},cn.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?kd(this,a):a.assign(this.documentBounds)};function tp(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new kg(a.avoidanceCellSize)),E.vs||E.group!==x||E.Yx!==b){if(E.Hx=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),E.Ix=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=lm(a,x)),x===null){y=Tn.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),E.initialize(y);for(var te=a.nodes;te.next();){var ne=te.value,se=ne.layer;se!==null&&se.visible&&!se.isTemporary&&np(a,ne,b,y)}Tn.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=Tn.alloc(),te=x.memberParts;te.next();)ne=te.value,ne instanceof sr&&np(a,ne,b,y);Tn.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&oS(E);return E}function lm(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?lm(a,y.containingGroup):null}function np(a,y,x,b){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(b),a=a.Xh;var E=y.x,te=y.y;if(bp(a,E,te))for(x=(te-a.Od)/a.sc|0,b=Math.min((E+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((te+y.height-a.Od)/a.sc|0,a.ei),E=(E-a.Nd)/a.rc|0;E<=b;E++)if(te=a.ac[E],te.fill)te.fill(Nh,x,y+1);else for(var ne=x;ne<=y;ne++)te[ne]=Nh}else if(y instanceof ei)for(y=y.memberParts;y.next();)E=y.value,E instanceof sr&&np(a,E,x,b)}}function Sh(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}cn.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():tg(this)};function tg(a){a.vk===-1&&(a.vk=Jn(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=Tn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Qp(a,y),Tn.free(y),a.Fc=!0,a.bd(),tg(a))}},a.vp))}cn.prototype.ug=function(){this.vk!==-1&&(Dt.clearTimeout(this.vk),this.vk=-1)},cn.prototype.computeAutoScrollPosition=function(a){var y=this.position,x=this.xp;if(0>=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var b=this.viewportBounds,E=this.scale;b=Tn.allocAt(0,0,b.width*E,b.height*E);var te=Lt.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+x.left&&this.allowHorizontalScroll){var ne=Math.max(this.scrollHorizontalLineChange,1);ne|=0,te.x-=ne,a.x<b.x+x.left/2&&(te.x-=ne),a.x<b.x+x.left/4&&(te.x-=4*ne)}else a.x<=b.x+b.width&&a.x>b.x+b.width-x.right&&this.allowHorizontalScroll&&(ne=Math.max(this.scrollHorizontalLineChange,1),ne|=0,te.x+=ne,a.x>b.x+b.width-x.right/2&&(te.x+=ne),a.x>b.x+b.width-x.right/4&&(te.x+=4*ne));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(ne=Math.max(this.scrollVerticalLineChange,1),ne|=0,te.y-=ne,a.y<b.y+x.top/2&&(te.y-=ne),a.y<b.y+x.top/4&&(te.y-=4*ne)):a.y<=b.y+b.height&&a.y>b.y+b.height-x.bottom&&this.allowVerticalScroll&&(ne=Math.max(this.scrollVerticalLineChange,1),ne|=0,te.y+=ne,a.y>b.y+b.height-x.bottom/2&&(te.y+=ne),a.y>b.y+b.height-x.bottom/4&&(te.y+=4*ne)),te.Xa(Pi)||(y=new Lt(y.x+te.x/E,y.y+te.y/E)),Tn.free(b),Lt.free(te),y},it=cn.prototype,it.Cs=function(){return null},it.av=function(){return null},it.bs=function(a,y){this.pj.add(a,y)},it.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof ei&&(y.$p=null)})};function gf(a,y,x){function b(){var ye=+new Date;for(te=!0,ne.reset();ne.next();)if(!ne.value[0].al){te=!1;break}te||ye-ge>he?y(x,E,se):Dt.requestAnimationFrame(b)}for(var E=x.callback,te=!0,ne=a.Og.iterator;ne.next();)if(!ne.value[0].al){te=!1;break}if(typeof E!="function"||te)return y(x,E,a);var se=a,he=x.callbackTimeout||300,ge=+new Date;return Dt.requestAnimationFrame(function(){b()}),null}it.Wz=function(a){return na?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},it.Jx=function(a){return a===void 0&&(a={}),gf(this,this.Xz,a)},it.Xz=function(a,y,x){var b=um(x,a,"canvas",null);if(b===null)return null;x=b.Z.canvas;var E=null;if(x!==null)switch(E=a.returnType,E===void 0?E="string":E=E.toLowerCase(),E){case _d+"data":E=b.getImageData(0,0,x.width,x.height);break;case _d:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&Zt('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:E=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(E),null):E};function um(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&Zt("properties argument must be an Object.");var E=y.size||null,te=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(te="NaN");var ne=y.maxSize;y.maxSize===void 0&&(ne=x==="SVG"?new Xn(1/0,1/0):new Xn(2e3,2e3));var se=y.position||null,he=y.parts||null,ge=y.padding===void 0?1:y.padding,ye=y.background||null,De=y.omitTemporary;De===void 0&&(De=!0);var $e=y.document||document,Qe=y.elementFinished||null,rt=y.showTemporary;rt===void 0&&(rt=!De),y=y.showGrid,y===void 0&&(y=rt),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof ge=="number"?ge=new kr(ge):ge instanceof kr||Zt("MakeImage padding must be a Margin or a number."),ge.left=Math.max(ge.left,0),ge.right=Math.max(ge.right,0),ge.top=Math.max(ge.top,0),ge.bottom=Math.max(ge.bottom,0),a.ib.Vc(!0),De=new yu(null,$e,void 0,!0);var ut=De.context;if(!(E||te||he||se))return De.width=a.Aa+Math.ceil(ge.left+ge.right),De.height=a.ya+Math.ceil(ge.top+ge.bottom),x==="SVG"?b===null?null:(b.resize(De.width,De.height,De.width,De.height),b.ownerDocument=$e,b.hs=Qe,Ea(a,b.context,ge,new Xn(De.width,De.height),a.Ca,a.pa,he,ye,rt,y),b.context):(a.Xm=!1,Ea(a,ut,ge,new Xn(De.width,De.height),a.Ca,a.pa,he,ye,rt,y),a.Xm=!0,De.context);var Ot=a.Pp,Tt=a.documentBounds.copy();if(Tt.Fv(a.yb),rt)for(var Bt=a.Wa.s,_t=Bt.length,Ht=0;Ht<_t;Ht++){var Vt=Bt[Ht];if(Vt.visible&&Vt.isTemporary){Vt=Vt.Pa.s;for(var hn=Vt.length,rr=0;rr<hn;rr++){var fr=Vt[rr];fr.isInDocumentBounds&&fr.isVisible()&&(fr=fr.actualBounds,fr.w()&&Tt.ed(fr))}}}if(Bt=new Lt(Tt.x,Tt.y),he!==null){for(_t=new Tn(0,0,0,0),Ht=!0,Vt=he.iterator,Vt.reset();Vt.next();)hn=Vt.value,hn instanceof Tr&&(rr=hn.layer,rr!==null&&!rr.visible||rr!==null&&!rt&&rr.isTemporary||!hn.isVisible()||(hn=hn.actualBounds,hn.w()&&(Ht?(Ht=!1,_t.assign(hn)):_t.ed(hn))));Tt.width=_t.width,Tt.height=_t.height,Bt.x=_t.x,Bt.y=_t.y}return se!==null&&se.w()&&(Bt=se,te||(te=Ot)),_t=se=0,ge!==null&&(se=ge.left+ge.right,_t=ge.top+ge.bottom),Ht=Vt=0,E!==null&&(Vt=E.width,Ht=E.height,isFinite(Vt)&&(Vt=Math.max(0,Vt-se)),isFinite(Ht)&&(Ht=Math.max(0,Ht-_t))),E!==null&&te!==null?(te==="NaN"&&(te=Ot),E.w()?(E=Vt,Tt=Ht):isNaN(Ht)?(E=Vt,Tt=Tt.height*te):(E=Tt.width*te,Tt=Ht)):E!==null?E.w()?(te=Math.min(Vt/Tt.width,Ht/Tt.height),E=Vt,Tt=Ht):isNaN(Ht)?(te=Vt/Tt.width,E=Vt,Tt=Tt.height*te):(te=Ht/Tt.height,E=Tt.width*te,Tt=Ht):te!==null?te==="NaN"&&ne.w()?(te=Math.min((ne.width-se)/Tt.width,(ne.height-_t)/Tt.height),te>Ot?(te=Ot,E=Tt.width,Tt=Tt.height):(E=ne.width,Tt=ne.height)):(E=Tt.width*te,Tt=Tt.height*te):(te=Ot,E=Tt.width,Tt=Tt.height),ge!==null?(E+=se,Tt+=_t):ge=new kr(0),ne!==null&&(Ot=ne.width,ne=ne.height,isNaN(Ot)&&(Ot=2e3),isNaN(ne)&&(ne=2e3),isFinite(Ot)&&(E=Math.min(E,Ot)),isFinite(ne)&&(Tt=Math.min(Tt,ne))),De.width=Math.ceil(E),De.height=Math.ceil(Tt),x==="SVG"?b===null?null:(b.resize(De.width,De.height,De.width,De.height),b.ownerDocument=$e,b.hs=Qe,Ea(a,b.context,ge,new Xn(Math.ceil(E),Math.ceil(Tt)),te,Bt,he,ye,rt,y),b.context):(a.Xm=!1,Ea(a,ut,ge,new Xn(Math.ceil(E),Math.ceil(Tt)),te,Bt,he,ye,rt,y),a.Xm=!0,De.context)}jt.Object.defineProperties(cn.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof Re||(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 uc(this,Dt.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 uc(this,Dt.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(Dt,"resize",this.Ov,!1),this.removeEventListener(Dt,"wheel",this.$j,!0),Zu===this&&(Zu=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Md(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)&&Fn(a,"0 <= value <= 1",cn,"opacity"),this.pb=a,this.g("opacity",y,a),this.N())}},validCycle:{get:function(){return this.wu},set:function(a){var y=this.wu;y!==a&&(this.wu=a,this.g("validCycle",y,a))}},layers:{get:function(){return this.Wa.iterator}},isModelReadOnly:{get:function(){var a=this.cc;return a===null?!1:a.isReadOnly},set:function(a){var y=this.cc;y!==null&&(y.isReadOnly=a)}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},isEnabled:{get:function(){return this.Jd},set:function(a){var y=this.Jd;y!==a&&(this.Jd=a,this.g("isEnabled",y,a))}},allowClipboard:{get:function(){return this.Us},set:function(a){var y=this.Us;y!==a&&(this.Us=a,this.g("allowClipboard",y,a))}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowDragOut:{get:function(){return this.Vs},set:function(a){var y=this.Vs;y!==a&&(this.Vs=a,this.g("allowDragOut",y,a))}},allowDrop:{get:function(){return this.Ws},set:function(a){var y=this.Ws;y!==a&&(this.Ws=a,this.g("allowDrop",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowInsert:{get:function(){return this.Ys},set:function(a){var y=this.Ys;y!==a&&(this.Ys=a,this.g("allowInsert",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}},allowUndo:{get:function(){return this.Zs},set:function(a){var y=this.Zs;y!==a&&(this.Zs=a,this.g("allowUndo",y,a))}},allowZoom:{get:function(){return this.at},set:function(a){var y=this.at;y!==a&&(this.at=a,this.g("allowZoom",y,a))}},hasVerticalScrollbar:{get:function(){return this.nn},set:function(a){var y=this.nn;y!==a&&(this.nn=a,this.Ee=!0,this.N(),this.g("hasVerticalScrollbar",y,a),Ul(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.mn},set:function(a){var y=this.mn;y!==a&&(this.mn=a,this.Ee=!0,this.N(),this.g("hasHorizontalScrollbar",y,a),Ul(this,!1))}},allowHorizontalScroll:{get:function(){return this.Xs},set:function(a){var y=this.Xs;y!==a&&(this.Xs=a,this.g("allowHorizontalScroll",y,a),Ul(this,!1))}},allowVerticalScroll:{get:function(){return this.$s},set:function(a){var y=this.$s;y!==a&&(this.$s=a,this.g("allowVerticalScroll",y,a),Ul(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Fn(a,">= 0",cn,"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&&Fn(a,">= 0",cn,"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 Fn(a,">= 0",cn,"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||om(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&&Zt("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=gh(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Ps(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(te){return y.ik(te)}),y.ik(this.Oc)),this.cc=a,this.partManager=Yp(this.cc.type);for(var E=0;E<x.length;E++)this.add(x[E]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(te){return a.Pe(te)}),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(Dt,"pointermove",this.dk,!0),this.addEventListener(Dt,"pointerdown",this.ui,!0),this.addEventListener(Dt,"pointerup",this.fk,!0),this.addEventListener(Dt,"pointerout",this.ek,!0),this.addEventListener(Dt,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Dt,"wheel",this.$j,!0),this.addEventListener(Dt,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Dt,"pointermove",this.dk,!0),this.removeEventListener(Dt,"pointerdown",this.ui,!0),this.removeEventListener(Dt,"pointerup",this.fk,!0),this.removeEventListener(Dt,"pointerout",this.ek,!0),this.removeEventListener(Dt,"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(Dt,"wheel",this.$j,!0),this.removeEventListener(Dt,"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=Lt.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),gs(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?lc(this):(this.vb=!0,a=this.scale,pf(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)}Lt.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=df(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=df(this)),a.type!==Kn.Grid&&Zt("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),sc(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),lc(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||Zt("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 kr(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===xh&&Ul(this,!1),this.g("scrollMode",y,a),this.Ee=!0,this.N())}},scrollsPageOnFocus:{get:function(){return this.nu},set:function(a){var y=this.nu;y!==a&&(this.nu=a,this.g("scrollsPageOnFocus",y,a))}},positionComputation:{get:function(){return this.Zt},set:function(a){var y=this.Zt;y!==a&&(this.Zt=a,Ul(this,!1),this.g("positionComputation",y,a))}},scaleComputation:{get:function(){return this.fu},set:function(a){var y=this.fu;y!==a&&(this.fu=a,Xp(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&&Xp(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!==Is&&Ul(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(a){var y=this.Fg;y!==a&&(this.Fg=a,this.g("initialAutoScale",y,a))}},initialViewportSpot:{get:function(){return this.Bt},set:function(a){var y=this.Bt;y!==a&&(a.sb()||Zt("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()||Zt("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)):Fn(a,"> 0",cn,"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)):Fn(a,"> 0",cn,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),Ul(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new kr(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&&Zt("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();)Sg(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==wh&&a!==Na&&a!==ip&&Zt("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 Xn(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 kr(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),jt.Object.defineProperties(cn,{licenseKey:{get:function(){return sg.jc()},set:function(a){sg.add(a.replace(/\s/g,""))}},version:{get:function(){return Rd}}}),cn.prototype.makeImageData=cn.prototype.Jx,cn.prototype.makeImage=cn.prototype.Wz,cn.prototype.cacheGroupExternalLinks=cn.prototype.Fu,cn.prototype.addRenderer=cn.prototype.bs,cn.prototype.makeSVG=cn.prototype.av,cn.prototype.makeSvg=cn.prototype.Cs,cn.prototype.stopAutoScroll=cn.prototype.ug,cn.prototype.doAutoScroll=cn.prototype.gs,cn.prototype.isUnoccupied=cn.prototype.Yj,cn.prototype.raiseDiagramEvent=cn.prototype.R,cn.prototype.removeDiagramListener=cn.prototype.am,cn.prototype.addDiagramListener=cn.prototype.Bj,cn.prototype.findTreeRoots=cn.prototype.yz,cn.prototype.layoutDiagram=cn.prototype.Uz,cn.prototype.findTopLevelGroups=cn.prototype.qz,cn.prototype.findTopLevelNodesAndLinks=cn.prototype.rz,cn.prototype.ensureBounds=cn.prototype.Va,cn.prototype.findLinksByExample=cn.prototype.ls,cn.prototype.findNodesByExample=cn.prototype.ms,cn.prototype.findLinkForData=cn.prototype.Kc,cn.prototype.findNodeForData=cn.prototype.ii,cn.prototype.findPartForData=cn.prototype.Lc,cn.prototype.findLinkForKey=cn.prototype.findLinkForKey,cn.prototype.findNodeForKey=cn.prototype.Vb,cn.prototype.findPartForKey=cn.prototype.findPartForKey,cn.prototype.rebuildParts=cn.prototype.Wd,cn.prototype.transformViewToDoc=cn.prototype.Ps,cn.prototype.transformRectDocToView=cn.prototype.zA,cn.prototype.transformDocToView=cn.prototype.op,cn.prototype.centerRect=cn.prototype.es,cn.prototype.scrollToRect=cn.prototype.tv,cn.prototype.scroll=cn.prototype.scroll,cn.prototype.highlightCollection=cn.prototype.Jz,cn.prototype.highlight=cn.prototype.Iz,cn.prototype.selectCollection=cn.prototype.rA,cn.prototype.select=cn.prototype.select,cn.prototype.updateAllRelationshipsFromData=cn.prototype.rp,cn.prototype.updateAllTargetBindings=cn.prototype.updateAllTargetBindings,cn.prototype.commit=cn.prototype.commit,cn.prototype.rollbackTransaction=cn.prototype.Kf,cn.prototype.commitTransaction=cn.prototype.eb,cn.prototype.startTransaction=cn.prototype.Ea,cn.prototype.raiseChanged=cn.prototype.g,cn.prototype.raiseChangedEvent=cn.prototype.cb,cn.prototype.removeChangedListener=cn.prototype.ik,cn.prototype.addChangedListener=cn.prototype.Pe,cn.prototype.removeModelChangedListener=cn.prototype.mA,cn.prototype.addModelChangedListener=cn.prototype.Yw,cn.prototype.findLayer=cn.prototype.Qj,cn.prototype.removeLayer=cn.prototype.kA,cn.prototype.addLayerAfter=cn.prototype.Cy,cn.prototype.addLayerBefore=cn.prototype.Ww,cn.prototype.addLayer=cn.prototype.Al,cn.prototype.moveParts=cn.prototype.moveParts,cn.prototype.copyParts=cn.prototype.Kj,cn.prototype.removeParts=cn.prototype.Is,cn.prototype.remove=cn.prototype.remove,cn.prototype.add=cn.prototype.add,cn.prototype.clearDelayedGeometries=cn.prototype.bx,cn.prototype.setProperties=cn.prototype.nm,cn.prototype.attach=cn.prototype.Du,cn.prototype.set=cn.prototype.set,cn.prototype.resetInputOptions=cn.prototype.Sx,cn.prototype.setInputOption=cn.prototype.sA,cn.prototype.getInputOption=cn.prototype.Ql,cn.prototype.resetRenderingHints=cn.prototype.Tx,cn.prototype.setRenderingHint=cn.prototype.Xx,cn.prototype.getRenderingHint=cn.prototype.Gf,cn.prototype.maybeUpdate=cn.prototype.bd,cn.prototype.requestUpdate=cn.prototype.$b,cn.prototype.delayInitialization=cn.prototype.Xy,cn.prototype.isUpdateRequested=cn.prototype.Pz,cn.prototype.invalidateDocumentBounds=cn.prototype.Ya,cn.prototype.findObjectsNear=cn.prototype.og,cn.prototype.findPartsNear=cn.prototype.mz,cn.prototype.findObjectsIn=cn.prototype.Cf,cn.prototype.findPartsIn=cn.prototype.ux,cn.prototype.findObjectsAt=cn.prototype.ji,cn.prototype.findPartsAt=cn.prototype.lz,cn.prototype.findObjectAt=cn.prototype.ic,cn.prototype.findPartAt=cn.prototype.Ol,cn.prototype.focusObject=cn.prototype.zz,cn.prototype.alignDocument=cn.prototype.Jy,cn.prototype.zoomToRect=cn.prototype.BA,cn.prototype.zoomToFit=cn.prototype.zoomToFit,cn.prototype.diagramScroll=cn.prototype.kx,cn.prototype.focus=cn.prototype.focus;var rp=new dr,cm=null,na=Dt.document!==void 0,Bd=null,Jh="",Is=new en(cn,"None",0),Kl=new en(cn,"Uniform",1),Qh=new en(cn,"UniformToFill",2),mf=new en(cn,"CycleAll",10),ng=new en(cn,"CycleNotDirected",11),rg=new en(cn,"CycleNotDirectedFast",12),ig=new en(cn,"CycleNotUndirected",13),og=new en(cn,"CycleDestinationTree",14),ag=new en(cn,"CycleSourceTree",15),xh=new en(cn,"DocumentScroll",1),vf=new en(cn,"InfiniteScroll",2),wh=new en(cn,"TreeParentCollapsed",21),Na=new en(cn,"AllParentsCollapsed",22),ip=new en(cn,"AnyParentsCollapsed",23),sg=new An,Rd="2.3.10",_d="image",yf=null,hm=!1;function Ls(){if(na){var a=Dt.document.createElement("canvas"),y=a.getContext("2d"),x=$n("7ca11abfd022028846");y[x]=$n("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",pn.Dx+"4ae6247590da4bb21c324ba3a84e385776",pi.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Qt.za],E=1;5>E;E++)y[$n("7ca11abfd7330390")]($n(b[E-1]),10,15*E);for(y[x]=$n("39f046ebb36e4b"),x=1;5>x;x++)y[$n("7ca11abfd7330390")]($n(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(pi.prototype.Cd=pi.prototype.Eu),yf=a}}cn.className="Diagram",cn.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Dt.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof cn?y.H:null},cn.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},cn.useDOM=function(a){na=a?Dt.document!==void 0:!1},cn.isUsingDOM=function(){return na},cn.None=Is,cn.Uniform=Kl,cn.UniformToFill=Qh,cn.CycleAll=mf,cn.CycleNotDirected=ng,cn.CycleNotDirectedFast=rg,cn.CycleNotUndirected=ig,cn.CycleDestinationTree=og,cn.CycleSourceTree=ag,cn.DocumentScroll=xh,cn.InfiniteScroll=vf,cn.TreeParentCollapsed=wh,cn.AllParentsCollapsed=Na,cn.AnyParentsCollapsed=ip;function dm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function zd(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)e:{y="f";var x=Dt[$n("76a715b2f73f148a")][$n("72ba13b5")]||"";if(a.Rc=!0,na){var b=cn[$n("76a115b6ed251eaf4692")];if(b)for(var E=sg.iterator;E.next()&&(b=E.value,b=$n(b).split($n("39e9")),!(6>b.length));){var te=$n(b[1]).split(".");if(b[4]!=="7da71ca0")break;var ne=$n(pn[$n("6cae19")]).split(".");if(te[0]>ne[0]||te[0]===ne[0]&&te[1]>=ne[1]){var se=Dt[$n("74a900bae4370f8b51")][$n("6fbb13a1c2311e8a57")].toLowerCase();if(ne=se[$n("73a612b6fb191d")]($n("3aad1ab6e022098b4dc4")),te=$n(b[2]),-1<ne&&(se=se[$n("73a612b6fb191d")](te.toLowerCase()+"/"),a.Rc=!(-1<se&&se<ne),!a.Rc))break;for(ne=x[$n("76ad18b4f73e")],se=x[$n("73a612b6fb191d")]($n("35e7"))+2;se<ne;se++)y+=x[se];if(ne=y[$n("73a612b6fb191d")](te),0>ne&&te!==$n("7da71ca0ad381e90")&&(ne=y[$n("73a612b6fb191d")]($n("76a715b2ef3e149757"))),0>ne&&(ne=y[$n("73a612b6fb191d")]($n("76a715b2ef3e149757"))),0>ne&&(ne=y[$n("73a612b6fb191d")]($n("2bfa41fdb3784bca12"))),0>ne&&(ne=x[$n("73a612b6fb191d")]($n("7baa19a6f76c1988428554"))),a.Rc=!(0<=ne&&ne<y[$n("73a612b6fb191d")]($n("35"))||y[$n("73a612b6fb191d")]($n("35"))===-1),!a.Rc||x[$n("73a612b6fb191d")]($n("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[$n("73a612b6fb191d")](te)),!a.Rc)||(ne=Dt[$n("76a715b2f73f148a")][$n("69ad17a1e03e")],se=ne[$n("73a612b6fb191d")]($n("7fb002b6ed25128b4da25b2e")),-1<se&&(a.Rc=!(ne[$n("73a612b6fb191d")](te)>se),!a.Rc)))break;if(te[0]==="#"){ne=Dt.document.createElement("div");for(var he=b[0].replace(/[A-Za-z]/g,"");4>he.length;)he+="9";if(se=he,he=he.substr(he.length-4),b="",b+=["gsh","gsf"][parseInt(he.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(he.substr(0,1),10)%4],ne[$n("79a417a0f0181a8946")]=b,Dt.document[$n("78a712aa")]){Dt.document[$n("78a712aa")][$n("7bb806b6ed32388c4a875b")](ne),he=Dt.getComputedStyle(ne).getPropertyValue($n("78a704b7e62456904c9b12701b6532a8"));var ge=Dt.getComputedStyle(ne).getPropertyValue($n("75b817b0ea2202"));if(Dt.document[$n("78a712aa")][$n("68ad1bbcf533388c4a875b")](ne),he){if(ne=Dt[$n("77a902b0eb1b1e804a8a")],ge==="0."+parseInt(se,10)%100||he.indexOf(parseInt(te[1]+te[2],16))!==-1&&he.indexOf(parseInt(te[3]+te[4],16))!==-1){a.Rc=!1;break}else if(ne&&ne($n("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,te=0;te<document.styleSheets.length;te++){ne=document.styleSheets[te].rules||document.styleSheets[te].cssRules;for(var ye in ne)if(b===ne[ye].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(ye=x[$n("76ad18b4f73e")],E=x[$n("73a612b6fb191d")]($n("35e7"))+2;E<ye;E++)y+=x[E];x=y[$n("73a612b6fb191d")]($n("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[$n("73a612b6fb191d")]($n("35")))}}}return 0<a.Rc&&a!==a.wy}dm.className="DiagramHelper";function Qc(a){this.j=a===void 0?new Lt:a,this.o=new Lt}jt.Object.defineProperties(Qc.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 Sf="DraggingInfo";Qc.className="DraggingInfo";function ie(a,y,x){this.node=a,this.info=y,this.Su=x}ie.className="DraggingNodeInfoPair";function de(){this.reset()}de.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new Xn(NaN,NaN).freeze(),this.gridSnapCellSpot=Ua,this.gridSnapOrigin=new Lt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},de.className="DraggingOptions";function Ne(a,y){if(typeof a=="string"||Dt.Element&&a instanceof Element)var x=cn.call(this,a)||this;else x=cn.call(this)||this,y=a;return Me(x),y&&x.nm(y),x}Jt(Ne,cn);function Me(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=bl,a.layout=new hs}Ne.prototype.reset=function(){cn.prototype.reset.call(this),Me(this)},Ne.className="Palette";function Re(a,y){if(typeof a=="string"||Dt.Element&&a instanceof Element)var x=cn.call(this,a)||this;else x=cn.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 Tr;var E=new hi;return E.stroke="magenta",E.strokeWidth=2,E.fill="transparent",E.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(E),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new kr(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new At,x.toolManager.mouseMoveTools),x.click=function(){var te=b.observed;if(te!==null){var ne=te.viewportBounds,se=b.lastInput.documentPoint;te.position=new Lt(se.x-ne.width/2,se.y-ne.height/2)}},x.Pf=function(){b.Ya(),wt(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&&wt(b)},x.autoScale=Kl,x.vb=!1,y&&Object.assign(x,y),x}Jt(Re,cn),Re.prototype.computePixelRatio=function(){return 1},Re.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(iu(this),this.ql===null){var x=new yu(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),st(this)}finally{this.ta=a,this.ib=y}}}cn.prototype.redraw.call(this)},Re.prototype.gc=function(){if(this.Ka===null&&Zt("No div specified"),this.ta===null&&Zt("No canvas specified"),!(this.ta instanceof uc)&&(Fv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){iu(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?st(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 st(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,b=a.drawsGrid&&x,E=y.grid;b&&E!==null&&E.visible&&!isNaN(E.width)&&!isNaN(E.height)&&(E=Tn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),sc(y,E),Tn.free(E),us(y));var te=a.Ab;te.reset(),a.scale!==1&&te.scale(a.scale),a.position.x===0&&a.position.y===0||te.translate(-a.position.x,-a.position.y),E=a.ib,E.scale(a.Mb,a.Mb),E.transform(te.m11,te.m12,te.m21,te.m22,te.dx,te.dy),E.yc(),y=y.Wa.s,te=y.length;for(var ne=0;ne<te;ne++){var se=y[ne],he=a;if(se.visible&&se.opacity!==0){var ge=se.diagram.grid.part;if(!x&&se.isTemporary)b&&ge.layer===se&&(se=vs(se,E),ge.gc(E,he),E.globalAlpha=se);else{for(var ye=vs(se,E),De=he.scale,$e=Tn.alloc(),Qe=se.Pa.s,rt=Qe.length,ut=0;ut<rt;ut++){var Ot=Qe[ut];(b||Ot!==ge)&&se.Oj(E,Ot,he,null,De,$e,!1)}Tn.free($e),E.globalAlpha=ye}}}}}function wt(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var b=y.selectionObject,E=Xn.alloc();E.h(x.width,x.height),b.desiredSize=E,Xn.free(E),a=2/a.scale,b instanceof hi&&(b.strokeWidth=a),y.location=new Lt(x.x-a/2,x.y-a/2),y.isSelected=!0}}}Re.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Ei;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},Re.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},Re.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),wt(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))},jt.Object.defineProperties(Re.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof Re&&Zt("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),wt(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),wt(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)}}}),Re.className="Overview";function At(){Uo.call(this),this.j=null}Jt(At,Uo),At.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 Lt(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Lt(a.x-this.j.x,a.y-this.j.y)),!0)},At.prototype.doActivate=function(){this.j=null,Uo.prototype.doActivate.call(this)},At.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},At.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 Lt(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new Lt(a.x-this.j.x,a.y-this.j.y)}}},At.className="OverviewDraggingTool";function Nt(){ui(this),this.H=Zu,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=Ei,this.hb=!0,this.cg=null,this.ob=200}Nt.prototype.toString=function(){return"CommandHandler"},Nt.prototype.Xe=function(a){this.H=a},Nt.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Hr?y.meta:y.control,b=y.shift,E=y.alt,te=y.key;!x||te!=="C"&&te!=="Insert"?x&&te==="X"||b&&te==="Del"?this.canCutSelection()&&this.cutSelection():x&&te==="V"||b&&te==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&te==="Y"||E&&b&&te==="Backspace"?this.canRedo()&&this.redo():x&&te==="Z"||E&&te==="Backspace"?this.canUndo()&&this.undo():te==="Del"||te==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&te==="A"?this.canSelectAll()&&this.selectAll():te==="Esc"?this.canStopCommand()&&this.stopCommand():te==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):te==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):te==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):te==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):te==="PageUp"?b&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):te==="PageDown"?b&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):te==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):te==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):te===" "?this.canScrollToPart()&&this.scrollToPart():te==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():te==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&te==="0"?this.canResetZoom()&&this.resetZoom():b&&te==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!b&&te==="G"?this.canGroupSelection()&&this.groupSelection():x&&b&&te==="G"?this.canUngroupSelection()&&this.ungroupSelection():te==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():te==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},Nt.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Nt.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Do&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Nt.prototype.canStopCommand=function(){return!0},Nt.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=""}},Nt.prototype.canSelectAll=function(){return this.diagram.allowSelect},Nt.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 Dn,x=a.selection.iterator;x.next();)nd(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=""}},Nt.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Nt.prototype.copySelection=function(){var a=this.diagram,y=new Dn;for(a=a.selection.iterator;a.next();)nd(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},Nt.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Nt.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Nt.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Nt.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)Bd=null,Jh="";else{x=y.model;var b=!1,E=!1,te=null;try{x.Tl()&&(b=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(E=x.Ij,x.Ij=this.copiesGroupKey),te=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=b),x.Wj()&&(x.Ij=E),x=new An,x.addAll(te),Bd=x,Jh=y.model.dataFormat}}y.R("ClipboardChanged",x)},Nt.prototype.pasteFromClipboard=function(){var a=new Dn,y=Bd;if(y===null)return a;var x=this.diagram;if(Jh!==x.model.dataFormat)return a;var b=x.model,E=!1,te=!1,ne=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(te=b.Ij,b.Ij=this.copiesGroupKey),ne=x.Kj(y,x,!1)}finally{for(b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=te),y=ne.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},Nt.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var b=x.iterator;b.next();)b.value.isSelected=!0;if(a!==null){var E=y.computePartsBounds(y.selection);if(E.w()){var te=this.computeEffectiveCollection(y.selection,y.Wm);ac(y,te,new Lt(a.x-E.centerX,a.y-E.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Nt.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Bd===null||Bd.count===0||Jh!==a.model.dataFormat)},Nt.prototype.undo=function(){this.diagram.undoManager.undo()},Nt.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Nt.prototype.redo=function(){this.diagram.undoManager.redo()},Nt.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Nt.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Is&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Nt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Is?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Nt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Is&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Nt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Is?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Nt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Nt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Nt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Ps(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=Ei):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),es(y)},Nt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Nt.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(he){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;Ps(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=Gt(this,a,[a]);if(E.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var te=function(){y.Ea();for(var he=E.pop();0<E.length&&he instanceof sr&&he.isTreeExpanded&&(!(he instanceof ei)||he.isSubGraphExpanded);)he=E.pop();0<E.length?(he instanceof Tr&&y.tv(he.actualBounds),he instanceof sr&&!he.isTreeExpanded&&(he.isTreeExpanded=!0),he instanceof ei&&!he.isSubGraphExpanded&&(he.isSubGraphExpanded=!0)):(he instanceof Tr&&y.es(he.actualBounds),y.am("LayoutCompleted",ne)),y.eb("Scroll To Part")},ne=function(){Jn(te,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",ne),te()}}else{var se=y.position.copy();y.es(a.actualBounds),se.Xa(y.position)&&x.Cc()}}};function Gt(a,y,x){if(y.isVisible())return x;if(y instanceof Gi)Gt(a,y.adornedPart,x);else if(y instanceof Vn){var b=y.fromNode;b!==null&&Gt(a,b,x),y=y.toNode,y!==null&&Gt(a,y,x)}else y instanceof sr&&(b=y.labeledLink,b!==null&&Gt(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),Gt(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),Gt(a,y,x));return x}Nt.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Tr)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Nt.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Ps(y.animationManager,"Collapse Tree");var x=new An;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof sr&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},Nt.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof sr&&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 sr&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Nt.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Ps(y.animationManager,"Expand Tree");var x=new An;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof sr&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},Nt.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof sr)||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 sr&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Nt.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var b=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var E=new An,te=a.selection.iterator;te.next();){var ne=te.value;ne.Zc()&&ne.canGroup()&&E.add(ne)}for(var se=new An,he=E.iterator;he.next();){var ge=he.value;te=!1;for(var ye=E.iterator;ye.next();)if(ge.Td(ye.value)){te=!0;break}te||se.add(ge)}if(0<se.count){var De=se.first().containingGroup;if(De!==null)for(;De!==null;){E=!1;for(var $e=se.iterator;$e.next();)if(!$e.value.Td(De)){E=!0;break}if(E)De=De.containingGroup;else break}if(x instanceof ei)Su(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Qe=y.copyNodeData(x);nn(Qe)&&(y.xf(Qe),b=a.ii(Qe))}if(b!==null){De!==null&&this.isValidMember(De,b)&&(b.containingGroup=De);for(var rt=se.iterator;rt.next();){var ut=rt.value;this.isValidMember(b,ut)&&(ut.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},Nt.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 Sn(a){var y=xn();for(a=a.iterator;a.next();){var x=a.value;x instanceof Vn||y.push(x)}a=new Dn,x=y.length;for(var b=0;b<x;b++){for(var E=y[b],te=!0,ne=0;ne<x;ne++)if(E.Td(y[ne])){te=!1;break}te&&a.add(E)}return In(y),a}Nt.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Vn)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},Nt.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 An;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var te=E.value;te instanceof ei&&te.canUngroup()&&b.add(te)}var ne=new An;if(0<b.count){y.clearSelection(!0);for(var se=b.iterator;se.next();){var he=se.value;he.expandSubGraph();var ge=he.containingGroup,ye=ge!==null&&ge.data!==null?x.wa(ge.data):void 0;ne.addAll(he.memberParts);for(var De=ne.iterator;De.next();){var $e=De.value;if($e.isSelected=!0,!($e instanceof Vn)){var Qe=$e.data;Qe!==null?x.mp(Qe,ye):$e.containingGroup=ge}}y.remove(he)}}y.R("SelectionUngrouped",b,ne)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Nt.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 ei))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ei&&y.canUngroup())return!0;return!1},Nt.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=Sn(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},Nt.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Ps(y.animationManager,"Collapse SubGraph");var x=new An;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof ei&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},Nt.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof ei&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ei&&y.isSubGraphExpanded)return!0;return!1},Nt.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Ps(y.animationManager,"Expand SubGraph");var x=new An;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof ei&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},Nt.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof ei&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ei&&!y.isSubGraphExpanded)return!0;return!1},Nt.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.toolManager.findTool("TextEditing");if(x!==null){if(a===null){a=null;for(var b=y.selection.iterator;b.next();){var E=b.value;if(E.canEdit()){a=E;break}}if(a===null)return;a=a.Nl(function(te){return te instanceof So&&te.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},Nt.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 So))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 So&&x.editable}),a!==null))return!0;return!1},Nt.prototype.showContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");if(x!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=x.findObjectWithContextMenu(a),a!==null)){var b=y.lastInput,E=null;a instanceof Yt?E=a.ga(Di):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new Lt(E.x+E.width/2,E.y+E.height/2)),E!==null&&(b.viewPoint=y.op(E),b.documentPoint=E,b.left=!1,b.right=!0,b.up=!0),y.currentTool=x,mo(x,!1,a)}},Nt.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)},Nt.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,b=x.toolManager.findTool("Dragging"),E=x.currentTool===b;if(y===void 0&&(y=E?b.dragOptions:x.Wm),b=new dr,a===null)return b;for(var te=a.iterator;te.next();)mu(x,b,te.value,E,y);if(x.draggedLink!==null&&y.dragsLink)return b;for(te=a.iterator;te.next();)a=te.value,a instanceof Vn&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},jt.Object.defineProperties(Nt.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||Zt("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}}}),Nt.className="CommandHandler",Yc=function(){return new Nt};function Yt(){ui(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Lt(NaN,NaN).freeze(),this.jd=Ia,this.Ab=new pi,this.wh=new pi,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Cs,this.uc=new Tn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new Tn(NaN,NaN,NaN,NaN).freeze(),this.dc=new Tn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=qi,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 Un,zn,yr,Pr,Dr,ri,Ci,yi,Bi,uo;Yt.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=an(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Yt.prototype.Vw=function(a){var y=this.Dh;if(On(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},Yt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Yt.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},Yt.prototype.copy=function(){return this.clone()},it=Yt.prototype,it.qb=function(a){a.classType===Vn?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Zt("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Yt&&(this.stretch=a)},it.toString=function(){return gn(this.constructor)+"#"+Mi(this)},it.th=function(){this.A!==null&&(this.A.nc=!0)};function mi(a){a.A===null?a.A=new wf:a.A.nc&&(a.A=a.A.copy())}it.Xc=function(){if(this.ba===null){var a=new lg;a.Xi=oa,a.yj=oa,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},it.cb=function(a,y,x,b,E,te,ne){var se=this.part;if(se!==null&&(se.gk(a,y,x,b,E,te,ne),x===this&&a===zo&&ys(this)&&Eo(this,se,y),te=this.diagram,this.animationTriggers===null||te===null||!te.pi||te.undoManager.isUndoingRedoing||te.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&te.animationManager.isEnabled&&!te.animationManager.isTicking&&(this.jo===null&&(this.jo=new dr),ne=te.undoManager.transactionLevel===0,a.startCondition===ls?ne=!0:a.startCondition===ya&&(ne=!1),ne?(te=new ta,Ko(a,te),ne=this.jo.get(a),ne!==null&&ne.stop(),this.jo.add(a,te),te.vu=this,te.Nw=a,te.add(this,y,b,E),te.start()):(Ps(te.animationManager,"Trigger"),te.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof Kn&&x===se&&(se.l&16777216)!==0&&se.data!==null))for(x=this.O.s,b=x.length,E=0;E<b;E++)se=x[E],se instanceof Kn&&Ud(se,function(he){he.data!==null&&he.l&16777216&&he.La(y)})};function Eo(a,y,x){var b=a.ih();if(b!==null)for(var E=a.localBindings.iterator;E.next();){var te=E.value,ne=null;if(te.sourceName!==null){if(ne=MS(te,b,a),ne===null)continue;te.sp(a,ne,x,null)}else if(te.isToModel){var se=y.diagram;se===null||se.skipsModelSourceBindings||te.sp(a,se.model.modelData,x,b)}else{if(se=b.data,se===null)continue;var he=y.diagram;he===null||he.skipsModelSourceBindings||te.sp(a,se,x,b)}ne===a&&(se=b.ks(te.Ai),se!==null&&te.Mv(se,ne,x))}}it.ks=function(a){return this.bindingId===a?this:null},it.g=function(a,y,x){this.cb(zo,a,this,y,x)},it.Ge=function(a,y,x,b){var E=this.uc;if(E.h(a,y,x,b),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new pi);var te=this.Lb;te.reset(),this.no(te,a,y,x,b),te.pp(E)}};function Ya(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}it.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?Ji(a.x,a.y,0,0,0,b.height)<=y||Ji(a.x,a.y,0,b.height,b.width,b.height)<=y||Ji(a.x,a.y,b.width,b.height,b.width,0)<=y||Ji(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},it.se=function(){return!0},it.ca=function(a){var y=Lt.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Lt.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var E=b.Ql("extraTouchThreshold"),te=b.Ql("extraTouchArea"),ne=te/2,se=this.naturalBounds;b=this.Df()*b.scale;var he=1/b;if(se.width*b<E&&se.height*b<E)return a=Po(x.x-ne*he,x.y-ne*he,x.width+te*he,x.height+te*he,y.x,y.y),Lt.free(y),a}return E=!1,(this instanceof Gi||this instanceof hi?Po(x.x-5,x.y-5,x.width+10,x.height+10,y.x,y.y):x.ca(y))&&(this.tb&&!this.tb.ca(y)?E=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?E=!0:E=this.gh(a)),Lt.free(y),E},it.gh=function(a){var y=this.naturalBounds;return Po(0,0,y.width,y.height,a.x,a.y)},it.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=Tn.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=Lt.allocAt(a.x,a.y);return y.ca(x.Cd(E))&&(E.h(a.x,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.y),y.ca(x.Cd(E))&&(b=!0)))),Lt.free(E),Tn.free(y),b},it.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=Lt.allocAt(0,0);return a.ca(y.Ga(E))&&(E.h(0,x.height),a.ca(y.Ga(E))&&(E.h(x.width,x.height),a.ca(y.Ga(E))&&(E.h(x.width,0),a.ca(y.Ga(E))&&(b=!0)))),Lt.free(E),b},it.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=Lt.allocAt(0,0),E=Lt.allocAt(0,x.height),te=Lt.allocAt(x.width,x.height),ne=Lt.allocAt(x.width,0),se=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(E))||a.ca(y.Ga(te))||a.ca(y.Ga(ne)))se=!0;else{x=Tn.allocAt(0,0,x.width,x.height);var he=Lt.allocAt(a.x,a.y);x.ca(y.Cd(he))?se=!0:(he.h(a.x,a.bottom),x.ca(y.Cd(he))?se=!0:(he.h(a.right,a.bottom),x.ca(y.Cd(he))?se=!0:(he.h(a.right,a.y),x.ca(y.Cd(he))&&(se=!0)))),Lt.free(he),Tn.free(x),!se&&(Qt.us(a,b,E)||Qt.us(a,E,te)||Qt.us(a,te,ne)||Qt.us(a,ne,b))&&(se=!0)}return Lt.free(b),Lt.free(E),Lt.free(te),Lt.free(ne),se},it.ga=function(a,y){if(y===void 0&&(y=new Lt),a instanceof wr){var x=this.naturalBounds;y.h(a.x*x.width+a.offsetX,a.y*x.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},it.mi=function(a){a===void 0&&(a=new Tn);var y=this.naturalBounds,x=this.oe,b=Lt.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),Qi(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),Qi(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),Qi(a,b.x,b.y,0,0),Lt.free(b),a},it.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},it.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},it.qs=function(a,y){return y===void 0&&(y=new Lt),y.assign(a),this.oe.Cd(y),y},it.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},it.Sj=function(a,y,x,b,E){var te=this.transform,ne=1/(te.m11*te.m22-te.m12*te.m21),se=te.m22*ne,he=-te.m12*ne,ge=-te.m21*ne,ye=te.m11*ne,De=ne*(te.m21*te.dy-te.m22*te.dx),$e=ne*(te.m12*te.dx-te.m11*te.dy);return this.areaBackground!==null?(te=this.actualBounds,Qt.Ff(te.left,te.top,te.right,te.bottom,a,y,x,b,E)):(ne=a*se+y*ge+De,a=a*he+y*ye+$e,y=x*se+b*ge+De,x=x*he+b*ye+$e,E.h(0,0),b=this.naturalBounds,x=Qt.Ff(0,0,b.width,b.height,ne,a,y,x,E),E.transform(te),x)},Yt.prototype.measure=function(a,y,x,b){if(Vl(this)!==!1){var E=this.Kg,te=E.right+E.left;E=E.top+E.bottom,a=Math.max(a-te,0),y=Math.max(y-E,0),x=Math.max((x||0)-te,0),b=Math.max((b||0)-E,0),te=this.angle,E=this.desiredSize;var ne=this.kq();te===90||te===270?(a=isFinite(E.height)?E.height+ne:a,y=isFinite(E.width)?E.width+ne:y):(a=isFinite(E.width)?E.width+ne:a,y=isFinite(E.height)?E.height+ne:y),E=x||0,ne=b||0;var se=this instanceof Kn;switch(al(this,!0)){case zn:ne=E=0,se&&(y=a=1/0);break;case Un:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(ne=y);break;case Pr:isFinite(a)&&a>x&&(E=a),ne=0,se&&(y=1/0);break;case Dr:isFinite(y)&&y>b&&(ne=y),E=0,se&&(a=1/0)}se=this.maxSize;var he=this.minSize;E>se.width&&he.width<se.width&&(E=se.width),ne>se.height&&he.height<se.height&&(ne=se.height),x=Math.max(E,he.width),b=Math.max(ne,he.height),se.width<x&&(x=Math.min(he.width,x)),se.height<b&&(b=Math.min(he.height,b)),a=Math.min(se.width,a),y=Math.min(se.height,y),a=Math.max(x,a),y=Math.max(b,y),(te===90||te===270)&&(te=a,a=y,y=te,te=x,x=b,b=te),this.uc.ka(),this.Wl(a,y,x,b),this.uc.freeze(),this.uc.w()||Zt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Oa(this,!1)}},Yt.prototype.Wl=function(){},Yt.prototype.Dd=function(){return!1},Yt.prototype.arrange=function(a,y,x,b,E){this.Uk();var te=Tn.alloc();te.assign(this.Ib),this.Ib.ka(),Ws(this)===!1?this.Ib.h(a,y,x,b):this.eh(a,y,x,b),this.Ib.freeze(),E===void 0?this.tb=null:this.tb=E,x=!1,E!==void 0?x=!0:(E=this.panel,E!==null&&Ch(E)&&(E=E.panel),E!==null&&(E=E.dc,b=this.measuredBounds,this.areaBackground!==null&&(b=this.Ib),x=y+b.height,b=a+b.width,x=!(0<=a+.05&&b<=E.width+.05&&0<=y+.05&&x<=E.height+.05),this instanceof So&&(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()||Zt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(te,this.Ib),Mc(this,!1),Tn.free(te)},it=Yt.prototype,it.eh=function(){};function Ds(a,y,x,b,E){if(a.Ib.h(y,x,b,E),!a.desiredSize.w()){var te=a.uc;x=a.Kg,y=x.right+x.left;var ne=x.top+x.bottom;switch(x=te.width+y,te=te.height+ne,b+=y,E+=ne,y=al(a,!0),x===b&&te===E&&(y=zn),y){case zn:(x>b||te>E)&&(Oa(a,!0),a.measure(x>b?b:x,te>E?E:te,0,0));break;case Un:Oa(a,!0),a.measure(b,E,0,0);break;case Pr:Oa(a,!0),a.measure(b,te,0,0);break;case Dr:Oa(a,!0),a.measure(x,E,0,0)}}}it.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||_v(x,!0),this.N(),Zi(a,y)||(x.oh(),this.Pn(x)))},it.Pn=function(a){this.portId!==null&&(_v(a,!0),a instanceof sr&&U1(a,this))},it.gc=function(a,y){if(!ou(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var b=1;x!==1&&(b=a.globalAlpha,a.globalAlpha=b*x);var E="";this.filter!==""&&(E=a.filter,a.filter=this.filter);var te=this instanceof Kn&&Ch(this),ne=this.Ib;if(te){var se=this.Ib,he=this.dc,ge=this.areaBackground,ye=this.Ma;ge===null&&ye===null||a.yc(),ge!==null&&(ia(this,a,ge,!0,!0,he,se),ge instanceof to&&ge.type===lu?(a.beginPath(),a.rect(se.x,se.y,se.width,se.height),a.ng(ge)):a.fillRect(se.x,se.y,se.width,se.height)),ye!==null&&(ia(this,a,ye,!0,!1,he,se),ye instanceof to&&ye.type===lu?(a.beginPath(),a.rect(se.x,se.y,se.width,se.height),a.ng(ye)):a.fillRect(se.x,se.y,se.width,se.height)),this.hh(a,y)}if(!te&&(te||ne.width!==0&&ne.height!==0&&!isNaN(ne.x)&&!isNaN(ne.y))){te=this.transform,se=this.panel,this.l&4096&&cs(this),ge=this.part,he=!1;var De=0;ge&&y.Gf("drawShadows")&&(he=ge.isShadowed)&&(ye=ge.shadowOffset,De=Math.max(ye.y,ye.x)*y.scale*y.Mb),ye=this.Dd();var $e;if(!($e=y.$i||!ye)){var Qe=this.naturalBounds;$e=this.wh;var rt=$e.m11,ut=$e.m21,Ot=$e.dx,Tt=$e.m12,Bt=$e.m22,_t=$e.dy,Ht,Vt=Ht=0;$e=Ht*rt+Vt*ut+Ot;var hn=Ht*Tt+Vt*Bt+_t;Ht=Qe.width+De,Vt=0;var rr=Ht*rt+Vt*ut+Ot;Ht=Ht*Tt+Vt*Bt+_t,Vt=Math.min($e,rr);var fr=Math.min(hn,Ht),cr=Math.max($e+0,rr)-Vt,Zn=Math.max(hn+0,Ht)-fr;$e=Vt,hn=fr,Ht=Qe.width+De,Vt=Qe.height+De,rr=Ht*rt+Vt*ut+Ot,Ht=Ht*Tt+Vt*Bt+_t,Vt=Math.min($e,rr),fr=Math.min(hn,Ht),cr=Math.max($e+cr,rr)-Vt,Zn=Math.max(hn+Zn,Ht)-fr,$e=Vt,hn=fr,Ht=0,Vt=Qe.height+De,rr=Ht*rt+Vt*ut+Ot,Ht=Ht*Tt+Vt*Bt+_t,Vt=Math.min($e,rr),fr=Math.min(hn,Ht),cr=Math.max($e+cr,rr)-Vt,Zn=Math.max(hn+Zn,Ht)-fr,$e=Vt,hn=fr,De=y.viewportBounds,Qe=De.x,rt=De.y,$e=!($e>De.width+Qe||Qe>cr+$e||hn>De.height+rt||rt>Zn+hn)}if($e){if($e=(this.l&256)!==0,a.clipInsteadOfFill&&($e=!1),this instanceof So&&(a.font=this.font),$e){if(hn=se.se()?se.naturalBounds:se.actualBounds,cr=Math.max(ne.x,hn.x),Zn=Math.max(ne.y,hn.y),De=Math.min(ne.right,hn.right)-cr,Qe=Math.min(ne.bottom,hn.bottom)-Zn,rt=this.tb,rt!==null&&(cr=rt.x,Zn=rt.y,De=rt.width,Qe=rt.height),cr>ne.width+ne.x||ne.x>hn.width+hn.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(cr,Zn,De,Qe),a.clip()}if(ye){if(!ge.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}he&&(hn=ge.shadowOffset,a.Ev(hn.x*y.scale*this.scale*y.Mb,hn.y*y.scale*this.scale*y.Mb,ge.shadowBlur),qc(a),a.shadowColor=ge.shadowColor)}he&&this.shadowVisible===!0?qc(a):he&&this.shadowVisible===!1&&Lc(a),ge=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Zl(this,a,ge,ne)),a.transform(te.m11,te.m12,te.m21,te.m22,te.dx,te.dy),he&&is(this,se)&&this.shadowVisible===null&&Lc(a),this.Ma!==null&&(a.yc(),ml(this,a,ge,ne)),he&&(this.Ma!==null||this.areaBackground!==null||is(this,se))?(ku(this,!0),this.shadowVisible===null&&Lc(a)):ku(this,!1),this.hh(a,y),he&&this.l&512&&qc(a),ye&&he&&Lc(a),$e&&(a.restore(),a.Vc(this instanceof Kn)),te.ws()||(y=1/(te.m11*te.m22-te.m12*te.m21),a.transform(te.m22*y,-te.m12*y,-te.m21*y,te.m11*y,y*(te.m21*te.dy-te.m22*te.dx),y*(te.m12*te.dx-te.m11*te.dy)))}}x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E)}}};function is(a,y){return y===null?!1:(Ch(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Kn.Auto||y.type===Kn.Spot)&&y.Pb()!==a)}it.Dv=function(){};function Zl(a,y,x,b){ia(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof to&&a.areaBackground.type===lu?(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 ml(a,y,x,b){var E=a.kq(),te=x.x,ne=x.y,se=x.width+E,he=x.height+E;ia(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof to&&a.Ma.type===lu?(y.beginPath(),y.rect(te-E/2,ne-E/2,se,he),y.ng(a.Ma)):y.fillRect(te-E/2,ne-E/2,se,he)}function ks(a,y,x){for(var b=y.O.s,E=b.length,te=-1,ne=0;ne<E;ne++)if(b[ne]===a){te=ne;break}if(a=te,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===Kn.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 ou(a,y,x){if(!(y instanceof Tl))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var b=a.panel,E=a.nk(y);if(a.kk(y,x,E))return a.svg.parentElement!==null?(a.Dd()&&(y.ti=a.svg),!0):(a.Dd()?(y.ti!==null?y.ti.after(a.svg):y.Nj.prepend(a.svg),y.ti=a.svg):b&&ks(a,b,a.svg),!0);if(a.Dd()&&a.isShadowed){var te=a.shadowOffset;y.Ev(te.x*x.scale*a.scale*x.Mb,te.y*x.scale*a.scale*x.Mb,a.shadowBlur),qc(y),y.shadowColor=a.shadowColor}a instanceof So&&(y.font=a.font),y.yd=null;var ne=a.transform;te=a instanceof Kn;var se=a instanceof Kn?Ch(a):!1;a.l&4096&&cs(a);var he=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,te&&se?(ug(y,1,0,0,1,0,0),a.svg=y.ad):te?(ug(y,ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy),a.svg=y.ad):ug(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var ge=ne.copy().Vj();y.rb.ha=[ge.m11,ge.m12,ge.m21,ge.m22,ge.dx,ge.dy],Zl(a,y,E,he),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return te||(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy]),a.background!==null&&(te?(se&&(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy]),ml(a,y,E,he),se&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy],ml(a,y,E,he)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),ne=y.yd,E=a.part,se=!1,E&&x.Gf("drawShadows")&&(se=E.isShadowed),y.clipInsteadOfFill&&(se=!1),a.Dd()&&se&&qc(y),se&&a.shadowVisible===!0?qc(y):se&&a.shadowVisible===!1&&Lc(y),E=a.panel,se&&is(a,E)&&a.shadowVisible===null&&Lc(y),y.Il&&(ge=x.computePixelRatio(),ge="drop-shadow("+y.shadowOffsetX/ge+"px "+y.shadowOffsetY/ge+"px "+y.shadowBlur/ge/2+"px "+y.shadowColor+")",a.background!==null&&ne.Ma.setAttributeNS(null,"filter",ge),a.areaBackground!==null&&ne.gd.setAttributeNS(null,"filter",ge)),se&&(a.Ma!==null||a.areaBackground!==null||is(a,E))?(ku(a,!0),a.shadowVisible===null&&Lc(y)):ku(a,!1),E=se,a.hh(y,x),te&&y.nh.pop(),y.o&&y.nh.pop(),ne=y.Gv.hs,se=te?a.svg:y.yd,ge=a.svg,!te&&ge!==null&&se!==ge&&ge.parentNode===a.panel.svg?(a.svg.replaceWith(se),a.svg=se,se!==null&&a.$o(y,b,he,se),ol(y,ge),!0):(a.svg=se,ne!==null&&se===null&&(pm(y),y.nh.pop()),se===null||(a.$o(y,b,he,se),y.Il&&(x=x.computePixelRatio(),a.Dv(se,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),E&&a.l&512&&qc(y),a.Dd()&&Lc(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&se.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&se.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(se):y.Nj.prepend(se),y.ti=se):b!==null&&ks(a,b,se),ne!==null&&ne(a,se)),!0)}it.$o=function(a,y,x,b){var E=(this.l&256)!==0;if(a.clipInsteadOfFill&&(E=!1),E){var te=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,te.x),E=Math.max(x.y,te.y);var ne=Math.min(x.right,te.right)-y;x=Math.min(x.bottom,te.bottom)-E,te=this.tb,te!==null&&(y=te.x,E=te.y,ne=te.width,x=te.height),te=b.getAttribute("clip-path");var se=null;te!==null&&(se=a.svg.getElementById(te.split("#")[1].slice(0,-1))),se===null?(te="CLIP"+Zo++,se=a.Ud("clipPath",{id:te}),y=a.Ud("rect",{x:y,y:E,width:ne,height:x}),this instanceof Kn&&(E=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")),se.appendChild(y),a.svg.appendChild(se),b.setAttributeNS(null,"clip-path","url(#"+te+")")):(a=se.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",E.toString()),a.setAttribute("width",ne.toString()),a.setAttribute("height",x.toString()))}else b.removeAttributeNS(null,"clip-path"),ol(a,b)};function ol(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Ns(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=Rr(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()}}it.hh=function(){},it.lv=function(){this.Uc=!0},it.kk=function(a,y,x){if(this.Uc)return this.lv(),this.Uc=!1;if(y=this.svg,y===null)return!1;if(!this.visible)return y.remove(),!1;if(y.nodeName!=="g"&&x||y.nodeName==="g"&&!x)return!1;var b=this.transform,E=this instanceof Kn?Ch(this):!1;if(!(this instanceof Kn&&E))if(this instanceof ll){var te=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],te!==null&&Yy(a,te[0],te[1],te[2],te[3],te[4],te[5],te[6],te[7]),x?y.lastElementChild.setAttributeNS(null,"transform",Jy(a)):y.setAttributeNS(null,"transform",Jy(a))}else if(!x||this instanceof Kn)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof hi){te=y.getElementsByTagName("path");for(var ne=0;ne<te.length;ne++)te[ne].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 te=this.Dd()?this.opacity*a.globalAlpha:this.opacity,te===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",te.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(te=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(ne=b.copy().Vj(),a.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy],Zl(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(ne=y.gd.getAttribute("filter"),ne!==null&&a.ad.setAttribute("filter",ne),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),te&&gm(a,te)),(this.background!==null||y.Ma!==void 0)&&(te=y.Ma,this.background===null?(gm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof Kn))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),ml(this,a,this.naturalBounds,this.actualBounds),y.Ma?(gm(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),te&&gm(a,te)),this.$o(a,this.panel,this.actualBounds,y),!0},it.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 ia(a,y,x,b,E,te,ne){if(x!==null){var se=1,he=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Ph)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var ge=a.kq();if(se=te.width,he=te.height,E?(se=ne.width,he=ne.height):b||(se+=ge,he+=ge),(te=y instanceof Wd)&&x.xe&&(x.type===hp||x.yk===se&&x.ft===he))var ye=x.xe;else{var De=0,$e=0,Qe=0,rt=0,ut=0,Ot=0;if(Ot=ut=0,E?(ut=ne.x,Ot=ne.y):b||(ut-=ge/2,Ot-=ge/2),De=x.start.x*se+x.start.offsetX,$e=x.start.y*he+x.start.offsetY,Qe=x.end.x*se+x.end.offsetX,rt=x.end.y*he+x.end.offsetY,De+=ut,Qe+=ut,$e+=Ot,rt+=Ot,x.type===th)ye=y.createLinearGradient(De,$e,Qe,rt);else if(x.type===lu)Ot=isNaN(x.endRadius)?Math.max(se,he)/2:x.endRadius,isNaN(x.startRadius)?(ut=0,Ot=Math.max(se,he)/2):ut=x.startRadius,ye=y.createRadialGradient(De,$e,ut,Qe,rt,Ot);else if(x.type===hp)try{ye=y.createPattern(x.pattern,"repeat")}catch(Bt){ye=null}if(x.type!==hp&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)ye.addColorStop(E.key,E.value);if(te&&(x.xe=ye,ye!==null&&(x.yk=se,x.ft=he),ye===null&&x.type===hp&&x.yk!==-1)){x.yk=-1;var Tt=a.diagram;Tt!==null&&x.yk===-1&&Jn(function(){Tt.redraw()},600)}}b?y.fillStyle=ye:y.strokeStyle=ye}}}it.rg=function(a){if(a instanceof Kn)e:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break e}y=y.panel}a=!1}else a=!1;return a},it.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},it.If=function(){for(var a=this instanceof Kn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function cs(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){vu(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)}vu(a,!1),au(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,au(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,au(a,!1)))}it.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var te=Lt.alloc();te.yi(y,x,b,E,Di),a.rotate(this.Kb,te.x,te.y),Lt.free(te)}},it.v=function(a){if(!Vl(this)){a===void 0&&(a=!1),Oa(this,!0),Mc(this,!0);var y=this.panel;y===null||a||y.v()}},it.Uj=function(){Vl(this)||(Oa(this,!0),Mc(this,!0))};function Gs(a){if(!Ws(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof sr&&a.Bd(),y.$b())),Mc(a,!0)}}it.Uk=function(){!(this.l&2048)&&(vu(this,!0),au(this,!0))},it.Wu=function(){au(this,!0)},it.N=function(){var a=this.part;a!==null&&a.N()};function al(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===Kn.Table?Vu(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===Kn.Auto&&b.Pb()===a?os(a,Un,y):x===ri?b!==null?b.type===Kn.Spot&&b.Pb()===a?os(a,Un,y):(x=b.defaultStretch,x===ri?os(a,zn,y):os(a,x,y)):os(a,zn,y):os(a,x,y)}function Vu(a,y,x,b){var E=a.stretch;if(E!==ri)return os(a,E,b);var te=E=null;switch(y.stretch){case Dr:te=!0;break;case Un:te=!0}switch(x.stretch){case Pr:E=!0;break;case Un:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===Pr||y===Un),te===null&&(te=y===Dr||y===Un),E===!0&&te===!0?os(a,Un,b):E===!0?os(a,Pr,b):te===!0?os(a,Dr,b):os(a,zn,b)}function os(a,y,x){if(x)return y;if(y===zn||(x=a.desiredSize,x.w()))return zn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Pr)return zn;if(y===Un)return Dr}else{if(y===Dr)return zn;if(y===Un)return Pr}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===Dr)return zn;if(y===Un)return Pr}else{if(y===Pr)return zn;if(y===Un)return Dr}return y}function ku(a,y){a.l=y?a.l|512:a.l&-513}function ys(a){return(a.l&1024)!==0}function xf(a,y){a.l=y?a.l|1024:a.l&-1025}function vu(a,y){a.l=y?a.l|2048:a.l&-2049}function au(a,y){a.l=y?a.l|4096:a.l&-4097}function Vl(a){return(a.l&8192)!==0}function Oa(a,y){a.l=y?a.l|8192:a.l&-8193}function Ws(a){return(a.l&16384)!==0}function Mc(a,y){a.l=y?a.l|16384:a.l&-16385}it.Gj=function(){this.svg=null},it.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},it.Av=function(){},it.zv=function(a){return this.pa=a,Gs(this),!0},it.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},it.kq=function(){return 0};function Hd(a){var y=a.part;if(y instanceof sr&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||U1(y,a)}}function Vy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Kn?a instanceof sr?a.Bd():a.qm(a,function(x){Hd(x)}):Hd(a))}it.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new Sa(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&f1(a)&&Zt("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new An),this.localBindings.add(E),this},it.set=function(a){return Object.assign(this,a),this},it.Du=function(a){return rv(this,a),this},it.apply=function(a){return a(this),this},it.nm=function(a){return ru(this,a),this},it.pz=function(){return this.ih()},it.ih=function(){for(var a=this instanceof Kn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},it.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new dr),this.animationTriggers.add(a.propertyName,a),this};function su(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var b=null,E=null;if(typeof a=="function")E=a;else if(typeof a=="string"){var te=op.I(a);typeof te=="function"?(x=an(arguments),b=te(x),nn(b)||Zt('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=Dt.go[a]}if(b===null&&(E!=null&&E.constructor||Zt("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),b=new E),E=1,b instanceof cn&&1<x.length){te=b;var ne=x[1];(typeof ne=="string"||ne instanceof HTMLDivElement)&&(Md(te,ne),E++)}for(;E<x.length;E++)te=x[E],te===void 0?Zt("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):rv(b,te);return b}function rv(a,y){if(typeof y=="string")if(a instanceof So)a.text=y;else if(a instanceof hi)a.figure=y;else if(a instanceof ll)a.source=y;else if(a instanceof Kn)y=Nu.I(y),y!==null&&(a.type=y);else if(a instanceof to){var x=ur(to,y);x!==null?a.type=x:Zt("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Yn?(y=ur(Yn,y),y!==null&&(a.type=y)):a instanceof zi&&(y=ur(zi,y),y!==null&&(a.type=y));else if(y instanceof Yt)a instanceof Kn||Zt("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Aa){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 Aa?Om(b,y):Zt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof en)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Ha)a.type=y;else if(y instanceof Sa)a instanceof Yt||a instanceof Aa?a.bind(y):Zt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof El)a instanceof Yt?a.Jv(y):Zt("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof _a)a instanceof Yn&&a.type===Yn.o?a.figures.add(y):Zt("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof zi)a instanceof _a?a.segments.add(y):Zt("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Ro)a instanceof cn||a instanceof ei?a.layout=y:Zt("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++)rv(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof to){x=new pr;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);ru(a,x)}else if(a instanceof Aa){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&Zt("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+E),a.isRow=!0,a.index=E):y.column!==void 0&&(E=y.column,(E==null||E===1/0||isNaN(E)||0>E)&&Zt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new pr;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);ru(a,E)}else ru(a,y);else Zt('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function bh(a,y){op.add(a,y)}function fm(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}jt.Object.defineProperties(Yt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new wf),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 wf),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 wf),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(mi(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&&(mi(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Ks},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new qh),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Ks&&(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 qh),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 qh),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:Pi},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new qh),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:ri},set:function(a){var y=this.stretch;y!==a&&(mi(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&&(mi(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)&&Fn(a,"0 <= value <= 1",Yt,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Zd(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(Zd(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(),Vy(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&&Pf(a,"GraphObject.areaBackground"),a instanceof to&&a.freeze(),mi(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&&Pf(a,"GraphObject.background"),a instanceof to&&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 Tr)return this.Ng=a;a=a.panel}return null}},svg:{get:function(){return this.V},set:function(a){this.V=a}},panel:{get:function(){return this.Me}},layer:{get:function(){var a=this.part;return a!==null?a.layer:null}},diagram:{get:function(){var a=this.part;return a!==null?a.diagram:null}},position:{get:function(){return this.pa},set:function(a){var y=a.x,x=a.y,b=this.pa,E=b.x;b=b.y,(E===y||isNaN(E)&&isNaN(y))&&(b===x||isNaN(b)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,E,b)&&this.g("position",new Lt(E,b),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&Zt("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,Vy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,b=this.jd,E=b.width,te=b.height;(E===y||isNaN(E)&&isNaN(y))&&(te===x||isNaN(te)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof hi&&this.qc(),this.g("desiredSize",b,a),ys(this)&&(a=this.part,a!==null&&(Eo(this,a,"width"),Eo(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 Xn(a,this.jd.height).freeze(),this.v(),this instanceof hi&&this.qc(),this.g("desiredSize",y,a),ys(this)&&(a=this.part,a!==null&&Eo(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 Xn(this.jd.width,a).freeze(),this.v(),this instanceof hi&&this.qc(),this.g("desiredSize",y,a),ys(this)&&(a=this.part,a!==null&&Eo(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:no},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(),mi(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:ba},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(),mi(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 kr(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&&cs(this),this.Ab}},oe:{get:function(){return this.l&4096&&cs(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(mi(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:zn},set:function(a){this.reshapingBehavior!==a&&(mi(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()&&Zt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Gs(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&&Fn(a,">= 0",Yt,"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&&Fn(a,">= 1",Yt,"columnSpan"),mi(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&&Fn(a,">= 0",Yt,"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&&Fn(a,">= 1",Yt,"rowSpan"),mi(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&&(mi(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 sr||Zt("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Wv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,Z1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:oa},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Hd(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Fn(a,">= 0",Yt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Hd(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),Hd(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&&Fn(a,">= 0",Yt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:oa},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Hd(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Fn(a,">= 0",Yt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Hd(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),Hd(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&&Fn(a,">= 0",Yt,"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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(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&&(mi(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Yt.prototype.trigger=Yt.prototype.Jv,Yt.prototype.findBindingPanel=Yt.prototype.ih,Yt.prototype.findTemplateBinder=Yt.prototype.pz,Yt.prototype.setProperties=Yt.prototype.nm,Yt.prototype.apply=Yt.prototype.apply,Yt.prototype.attach=Yt.prototype.Du,Yt.prototype.set=Yt.prototype.set,Yt.prototype.isEnabledObject=Yt.prototype.If,Yt.prototype.isVisibleObject=Yt.prototype.Ed,Yt.prototype.isContainedBy=Yt.prototype.rg,Yt.prototype.getNearestIntersectionPoint=Yt.prototype.rs,Yt.prototype.getLocalPoint=Yt.prototype.qs,Yt.prototype.getDocumentScale=Yt.prototype.Df,Yt.prototype.getDocumentAngle=Yt.prototype.li,Yt.prototype.getDocumentBounds=Yt.prototype.mi,Yt.prototype.getDocumentPoint=Yt.prototype.ga,Yt.prototype.intersectsRect=Yt.prototype.Yc,Yt.prototype.containedInRect=Yt.prototype.fh,Yt.prototype.containsRect=Yt.prototype.Re,Yt.prototype.containsPoint=Yt.prototype.ca,Yt.prototype.raiseChanged=Yt.prototype.g,Yt.prototype.raiseChangedEvent=Yt.prototype.cb,Yt.prototype.addCopyProperty=Yt.prototype.Vw;var op=null;Yt.className="GraphObject",op=new dr,bh("Button",function(){function a(x,b){return x.diagram.ic(x.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E},function(E){return E===b})!==null}var y=su(Kn,Kn.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof Kn){var E=x.fb("ButtonBorder");E!==null&&(E.fill=b?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},su(hi,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new wr(0,0,2.76142374915397,2.761423749153969),spot2:new wr(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,b){if(b.If()&&b instanceof Kn&&(x=b.fb("ButtonBorder"),x instanceof hi)){var E=b._buttonFillOver;b._buttonFillNormal=x.fill,x.fill=E,E=b._buttonStrokeOver,b._buttonStrokeNormal=x.stroke,x.stroke=E}},y.mouseLeave=function(x,b){b.If()&&b instanceof Kn&&(x=b.fb("ButtonBorder"),x instanceof hi&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof Kn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof hi){x=x.diagram;var te=x.skipsUndoManager;x.skipsUndoManager=!0;var ne=b._buttonFillPressed;b._buttonFillOver=E.fill,E.fill=ne,ne=b._buttonStrokePressed,b._buttonStrokeOver=E.stroke,E.stroke=ne,x.skipsUndoManager=te}}},y.actionUp=function(x,b){if(b.If()&&b instanceof Kn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof hi){var te=x.diagram,ne=te.skipsUndoManager;te.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),te.skipsUndoManager=ne}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof Kn&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof hi){var te=x.diagram,ne=te.skipsUndoManager;te.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),te.skipsUndoManager=ne}}},y.actionMove=function(x,b){if(b.If()&&b instanceof Kn&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof hi))){var te=E.skipsUndoManager;E.skipsUndoManager=!0;var ne=b._buttonFillPressed;x.fill!==ne&&(x.fill=ne),ne=b._buttonStrokePressed,x.stroke!==ne&&(x.stroke=ne),E.skipsUndoManager=te}}},y}),bh("TreeExpanderButton",function(){var a=su("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},su(hi,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:To},new Sa("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Sa("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Gi&&(x=x.adornedPart),x instanceof sr){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}),bh("SubGraphExpanderButton",function(){var a=su("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},su(hi,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:To},new Sa("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 Gi&&(x=x.adornedPart),x instanceof ei){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}),bh("ToolTip",function(){return su(Gi,Kn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Lt(0,3),shadowBlur:5},su(hi,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new wr(0,0,4,6),spot2:new wr(1,1,-4,-4)}))}),bh("ContextMenu",function(){return su(Gi,Kn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Lt(0,3),shadowBlur:5},new Sa("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),bh("ContextMenuButton",function(){var a=su("Button");a.stretch=Pr;var y=a.fb("ButtonBorder");return y instanceof hi&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new wr(0,0,2,3),y.spot2=new wr(1,1,-2,-2)),a}),bh("PanelExpanderButton",function(a){var y=fm(a,"COLLAPSIBLE"),x=su("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},su(hi,{name:"ButtonIcon",strokeWidth:2},new Sa("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof hi&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,E){var te=E.diagram;if(te!==null&&!te.isReadOnly){var ne=E.ih();ne===null&&(ne=E.part),ne!==null&&(E=ne.fb(y),E!==null&&(b.handled=!0,te.Ea("Collapse/Expand Panel"),E.visible=!E.visible,te.eb("Collapse/Expand Panel")))}},x}),bh("CheckBoxButton",function(a){var y=fm(a);return a=su("Button",{desiredSize:new Xn(14,14)},su(hi,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Un,geometryStretch:yr,visible:!1},y!==""?new Sa("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof Kn){var E=x.diagram;if(!(E===null||E.isReadOnly||y!==""&&E.model.isReadOnly)){x.handled=!0;var te=b.fb("ButtonIcon");E.Ea("checkbox"),te.visible=!te.visible,typeof b._doClick=="function"&&b._doClick(x,b),E.eb("checkbox")}}},a}),bh("CheckBox",function(a){a=fm(a),a=su("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new kr(0,1,0,0)});var y=su(Kn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new kr(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}),Yt.None=zn=new en(Yt,"None",0),Yt.Default=ri=new en(Yt,"Default",0),Yt.Vertical=Dr=new en(Yt,"Vertical",4),Yt.Horizontal=Pr=new en(Yt,"Horizontal",5),Yt.Fill=Un=new en(Yt,"Fill",3),Yt.Uniform=yr=new en(Yt,"Uniform",1),Yt.UniformToFill=Ci=new en(Yt,"UniformToFill",2),Yt.FlipVertical=yi=new en(Yt,"FlipVertical",1),Yt.FlipHorizontal=Bi=new en(Yt,"FlipHorizontal",2),Yt.FlipBoth=uo=new en(Yt,"FlipBoth",3),Yt.make=su,Yt.getBuilders=function(){var a=new dr,y;for(y in op)if(y!==y.toLowerCase()){var x=op.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Yt.defineBuilder=bh,Yt.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=op.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof Yt))return y&&b.set(y),b;Zt('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Yt.takeBuilderArgument=fm;function wf(){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=no,this.o=ba,this.hg=ri,this.ob=this.Bi=1,this.Pf=zn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}wf.prototype.copy=function(){var a=new wf;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 qh(){this.u=-1/0,this.o=0,this.F=Pi,this.rr=Ks,this.j=this.V="None"}qh.prototype.copy=function(){var a=new qh;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},qh.className="LinkElementSettings";function lg(){this.yj=this.Xi=qi,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}lg.prototype.copy=function(){var a=new lg;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},lg.className="LinkSettings";function Gd(){this.ha=[1,0,0,1,0,0]}Gd.prototype.copy=function(){var a=new Gd;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},Gd.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},Gd.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Gd.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.ha[1]*a+this.ha[3]*b,te=this.ha[0]*-b+this.ha[2]*a,ne=this.ha[1]*-b+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*b,this.ha[1]=E,this.ha[2]=te,this.ha[3]=ne,this.translate(-y,-x)}},Gd.className="STransform";function bf(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}bf.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},bf.className="SGradient";function uc(a,y,x){this.ownerDocument=a=y===void 0?Dt.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 Tl(this,x)}uc.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},uc.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),nn(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},uc.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},uc.prototype.focus=function(){this.Oa.focus()},uc.prototype.mx=function(){this.ownerDocument=null},jt.Object.defineProperties(uc.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}}}),uc.className="SVGSurface";function Tl(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 Gd,this.j=pm(this),this.Nj=pm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Zo++,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 Xy(a,y,x,b,E,te,ne){a.Nj===void 0?ug(a,y,x,b,E,te,ne):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+te+", "+ne+")")}it=Tl.prototype,it.arc=function(a,y,x,b,E,te,ne,se){var he=2*Math.PI,ge=he-1e-6,ye=x*Math.cos(b),De=x*Math.sin(b),$e=a+ye,Qe=y+De,rt=te?0:1;b=te?b-E:E-b,(1e-6<Math.abs(ne-$e)||1e-6<Math.abs(se-Qe))&&this.path.push(["L",$e,+Qe]),0>b&&(b=b%he+he),b>ge?(this.path.push(["A",x,x,0,1,rt,a-ye,y-De]),this.path.push(["A",x,x,0,1,rt,$e,Qe])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),rt,a+x*Math.cos(E),y+x*Math.sin(E)])},it.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},it.Se=function(a){this.addPath(this.path,this.rb,a||0)},it.bezierCurveTo=function(a,y,x,b,E,te){this.path.push(["C",a,y,x,b,E,te])},it.clearRect=function(){},it.clip=function(){this.Yl.clipPath=!0},it.closePath=function(){this.path.push(["z"])},it.createLinearGradient=function(a,y,x,b){var E=new bf("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},it.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"+Zo++,E={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:b,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(_d,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},it.createRadialGradient=function(a,y,x,b,E,te){var ne=new bf("radial");return ne.x1=a,ne.y1=y,ne.r1=x,ne.x2=b,ne.y2=E,ne.r2=te,ne};function Yy(a,y,x,b,E,te,ne,se,he){b=se/b,E=he/E,te===0&&ne===0||a.rb.translate(te,ne),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}it.drawImage=function(a,y,x,b,E,te,ne,se,he){var ge="";a instanceof HTMLCanvasElement&&(ge=a.toDataURL()),a instanceof HTMLImageElement&&(ge=a.getAttribute("src"));var ye=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(te=y,ne=x,se=b=ye,he=E=a),b=b||0,E=E||0,se=se||0,he=he||0,Yy(this,y,x,b,E,te||0,ne||0,se,he),te={x:0,y:0,width:ye||b,height:a||E,href:ge},Qt.$(b,se)&&Qt.$(E,he)?ge.toLowerCase().indexOf(".svg")===-1&&ge.toLowerCase().indexOf("data:image/svg")===-1&&(te.preserveAspectRatio="xMidYMid slice"):te.preserveAspectRatio="none",(y!==0||x!==0||b!==ye||E!==a)&&(b+=y,E+=x,te["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),ap(this,_d,te,this.rb),this.addElement(_d,te)},it.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},it.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},it.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},ap(this,"fill",a,this.rb),this.addElement("rect",a)},it.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},ap(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},it.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},ap(this,"fill",y,this.rb),this.addElement("text",y,a[0])},it.lineTo=function(a,y){this.path.push(["L",a,y])},it.moveTo=function(a,y){this.path.push(["M",a,y])},it.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},it.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"])},it.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},it.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())},it.setTransform=function(a,y,x,b,E,te){a===1&&y===0&&x===0&&b===1&&E===0&&te===0||ug(this,a,y,x,b,E,te)};function Jy(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}it.scale=function(a,y){this.rb.scale(a,y)},it.translate=function(a,y){this.rb.translate(a,y)},it.transform=function(){},it.yc=function(){},it.stroke=function(){qy(this,this.Yl)},it.jk=function(){this.clipInsteadOfFill||this.stroke()},it.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},it.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 ap(a,y,x,b){y==="fill"?iv(a,x):y==="stroke"&&qy(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function iv(a,y){a.fillStyle instanceof bf?y.fill=ov(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 Qy(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof bf?y.setAttributeNS(null,"fill",ov(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 qy(a,y){if(a.strokeStyle instanceof bf)y.stroke=ov(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 ov(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"+Zo++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:b,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")x=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:b});else throw Error("invalid gradient");var E=y.gx;y=E.length;for(var te=[],ne=0;ne<y;ne++){var se=E[ne],he=se.color;se={offset:se.offset,"stop-color":he},/^rgba\(/.test(he)&&(he=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(he),se["stop-color"]="rgb("+he[1]+","+he[2]+","+he[3]+")",se["stop-opacity"]=he[4]),te.push(se)}for(te.sort(function(ge,ye){return ge.offset>ye.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",te[E]));return a.svg.appendChild(x),"url(#"+b+")"}it.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var te=an(a[E]),ne=[te.shift()];if(ne[0]==="A")ne.push(te.shift()+","+te.shift(),te.shift(),te.shift()+","+te.shift(),te.shift()+","+te.shift());else for(;te.length;)ne.push(te.shift()+","+te.shift());b.push(ne.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,ap(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var se in a)se!=="transform"&&y.setAttributeNS(null,se,a[se]);else{se=y.getElementsByTagName("path");for(var he in a)he!=="transform"&&se[x].setAttributeNS(null,he,a[he])}else this.addElement("path",a)};function ug(a,y,x,b,E,te,ne){var se=new Gd;se.ha=[y,x,b,E,te,ne],y={},ap(a,"g",y,se),se=a.addElement("g",y),a.nh.push(se)}function pm(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}it.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function Lc(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function qc(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}it.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},it.fs=function(){this.Ct=!1},it.Vc=function(){},it.Wx=function(){},Tl.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Tl.prototype.getImageData=function(){return null},Tl.prototype.measureText=function(){return null};function gm(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()))}Tl.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Tl.className="SVGContext",cn.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new uc(this,Dt.document));var y=new uc(this,Dt.document,!0);a===void 0&&(a=new pr);var x=this;return gf(this,function(b,E){return b=um(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},cn.prototype.makeSvg=cn.prototype.Cs,cn.prototype.av=function(a){return this.Cs(a)},cn.prototype.makeSVG=cn.prototype.av;function yu(a,y,x,b){this.ownerDocument=y=y===void 0?Dt.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Wd(y,x,b),y.H=a}yu.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},yu.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},yu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},yu.prototype.focus=function(){this.Oa.focus()},yu.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},jt.Object.defineProperties(yu.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}}}),yu.className="CanvasSurface";function Wd(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&Zt("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 pi,this.isTemporary=!!x}it=Wd.prototype,it.Wx=function(a){this.Z.imageSmoothingEnabled=a},it.arc=function(a,y,x,b,E,te){this.Z.arc(a,y,x,b,E,te)},it.beginPath=function(){this.Z.beginPath()},it.Se=function(){},it.bezierCurveTo=function(a,y,x,b,E,te){this.Z.bezierCurveTo(a,y,x,b,E,te)},it.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},it.clip=function(){this.Z.clip()},it.closePath=function(){this.Z.closePath()},it.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},it.createPattern=function(a,y){return this.Z.createPattern(a,y)},it.createRadialGradient=function(a,y,x,b,E,te){return this.Z.createRadialGradient(a,y,x,b,E,te)},it.drawImage=function(a,y,x,b,E,te,ne,se,he){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,te,ne,se,he)},it.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},it.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},it.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},it.fillText=function(a,y,x){this.Z.fillText(a,y,x)},it.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},it.lineTo=function(a,y){this.Z.lineTo(a,y)},it.measureText=function(a){return this.Z.measureText(a)},it.moveTo=function(a,y){this.Z.moveTo(a,y)},it.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},it.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},it.restore=function(){this.Z.restore()},it.save=function(){this.yc(),this.Z.save()},Wd.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},it=Wd.prototype,it.setTransform=function(a,y,x,b,E,te){this.El.setTransform(a,y,x,b,E,te)},it.scale=function(a,y){this.El.scale(a,y)},it.translate=function(a,y){this.El.translate(a,y)},it.stroke=function(){this.Z.stroke()},it.transform=function(a,y,x,b,E,te){if(a!==1||y!==0||x!==0||b!==1||E!==0||te!==0){var ne=this.El,se=ne.m11*a+ne.m21*y;a=ne.m12*a+ne.m22*y,y=ne.m11*x+ne.m21*b,x=ne.m12*x+ne.m22*b,ne.dx=ne.m11*E+ne.m21*te+ne.dx,ne.dy=ne.m12*E+ne.m22*te+ne.dy,ne.m11=se,ne.m12=a,ne.m21=y,ne.m22=x}},it.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},it.ng=function(a,y){if(a instanceof to&&a.type===lu){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)},it.jk=function(){this.Hm||this.stroke()},it.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},it.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},it.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(vx),a.lineDashOffset=0)},it.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},it.Hs=function(){},jt.Object.defineProperties(Wd.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 vx=Object.freeze([]);Wd.className="CanvasSurfaceContext";function cg(){this.F=this.o=this.u=this.j=0}cg.className="ColorNumbers";function to(a,y){cp||(hv(),cp=!0),ui(this),this._isFrozen=!1,a===void 0?(this.na=Ph,this.xk="black"):typeof a=="string"?(this.na=Ph,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===th?(this.Qd=bl,this.Lk=tl):this.Lk=a===lu?this.Qd=Di:this.Qd=oa,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}to.prototype.copy=function(){var a=new to;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},it=to.prototype,it.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},it.ka=function(){return Object.isFrozen(this)&&Zt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},it.qb=function(a){a.classType===to&&(this.type=a)},it.toString=function(){var a="Brush(";if(this.type===Ph)a+=this.color;else if(a=this.type===th?a+"Linear ":this.type===lu?a+"Radial ":this.type===hp?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+")"},it.addColorStop=function(a,y){return this._isFrozen&&jn(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Fn(a,"0 <= loc <= 1",to,"addColorStop:loc"),this.we===null&&(this.we=new dr),this.we.add(a,y),this.na===Ph&&(this.type=th),this.xe=null,this},it.Vz=function(a,y){if(this._isFrozen&&jn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?dp:y,this.type===Ph)eh(this.color),this.color=lp(a,y);else if((this.type===th||this.type===lu)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)eh(x.value),this.addColorStop(x.key,lp(a,y));return this};function e1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?dp:x,eh(a),lp(y,x)}it.Wy=function(a,y){if(this._isFrozen&&jn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?dp:y,this.type===Ph)eh(this.color),this.color=lp(-a,y);else if((this.type===th||this.type===lu)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)eh(x.value),this.addColorStop(x.key,lp(-a,y));return this};function t1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?dp:x,eh(a),lp(-y,x)}function av(a,y,x){eh(a),a=bo.j;var b=bo.u,E=bo.o,te=bo.F;return eh(y),x===void 0&&(x=.5),"rgba("+Math.round((bo.j-a)*x+a)+", "+Math.round((bo.u-b)*x+b)+", "+Math.round((bo.o-E)*x+E)+", "+Math.round((bo.F-te)*x+te)+")"}it.Gx=function(){if(this.type===Ph)return sp(this.color);if((this.type===th||this.type===lu)&&this.colorStops!==null){var a=this.colorStops;if(this.type===lu)return sp(a.first().value);if(a.get(.5)!==null)return sp(a.get(.5));if(a.count===2)return a=a.Fa(),sp(av(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,E=1,te=1;y.next();){var ne=y.key,se=Math.abs(.5-y.key);E>te&&se<E?(x=ne,E=se):te>=E&&se<te&&(b=ne,te=se)}return x>b&&(te=x,x=b,b=te,te=E),E=b-x,sp(av(a.get(x),a.get(b),1-te/E))}return!1};function sp(a){return a?a instanceof to?a.Gx():(eh(a),128>(299*bo.j+587*bo.u+114*bo.o)/1e3):!1}function lp(a,y){switch(y){case dp:y=100*lv(bo.j);var x=100*lv(bo.u),b=100*lv(bo.o);return Us.j=.4124564*y+.3575761*x+.1804375*b,Us.u=.2126729*y+.7151522*x+.072175*b,Us.o=.0193339*y+.119192*x+.9503041*b,Us.F=bo.F,y=cv(Us.j/up[0]),x=cv(Us.u/up[1]),b=cv(Us.o/up[2]),kc.j=116*x-16,kc.u=500*(y-x),kc.o=200*(x-b),kc.F=Us.F,kc.j=Math.min(100,Math.max(0,kc.j+100*a)),a=(kc.j+16)/116,y=a-kc.o/200,Us.j=up[0]*n1(kc.u/500+a),Us.u=up[1]*(kc.j>mm*dv?Math.pow(a,3):kc.j/mm),Us.o=up[2]*n1(y),Us.F=kc.F,a=-.969266*Us.j+1.8760108*Us.u+.041556*Us.o,y=.0556434*Us.j+-.2040259*Us.u+1.0572252*Us.o,bo.j=255*uv((3.2404542*Us.j+-1.5371385*Us.u+-.4985314*Us.o)/100),bo.u=255*uv(a/100),bo.o=255*uv(y/100),bo.F=Us.F,bo.j=Math.round(bo.j),255<bo.j?bo.j=255:0>bo.j&&(bo.j=0),bo.u=Math.round(bo.u),255<bo.u?bo.u=255:0>bo.u&&(bo.u=0),bo.o=Math.round(bo.o),255<bo.o?bo.o=255:0>bo.o&&(bo.o=0),"rgba("+bo.j+", "+bo.u+", "+bo.o+", "+bo.F+")";case r1:return sv(),Xl.o=Math.min(100,Math.max(0,Xl.o+100*a)),"hsla("+Xl.j+", "+Xl.u+"%, "+Xl.o+"%, "+Xl.F+")";default:Zt("Unknown color space: "+y)}}function eh(a){cp||(hv(),cp=!0);var y=fv;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,bo.j=a[0],bo.u=a[1],bo.o=a[2],bo.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,bo.j=0,bo.u=0,bo.o=0,bo.F=1)}}function sv(){var a=bo.j/255,y=bo.u/255,x=bo.o/255,b=Math.max(a,y,x),E=Math.min(a,y,x),te=b-E;if(E=(b+E)/2,te===0)var ne=a=0;else{switch(b){case a:ne=(y-x)/te%6;break;case y:ne=(x-a)/te+2;break;case x:ne=(a-y)/te+4}ne*=60,0>ne&&(ne+=360),a=te/(1-Math.abs(2*E-1))}Xl.j=Math.round(ne),Xl.u=Math.round(100*a),Xl.o=Math.round(100*E),Xl.F=bo.F}function lv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function uv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function cv(a){return a>dv?Math.pow(a,1/3):(mm*a+16)/116}function n1(a){var y=a*a*a;return y>dv?y:(116*a-16)/mm}function Pf(a,y){typeof a!="string"&&(a instanceof to||Zt("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){fv=na?new yu(null,void 0,{willReadFrequently:!0}).context:null}jt.Object.defineProperties(to.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&jn(this,a),this.na=a,this.start.Mc()&&(a===th?this.start=bl:a===lu&&(this.start=Di)),this.end.Mc()&&(a===th?this.end=tl:a===lu&&(this.end=Di)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&jn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&jn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&jn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&jn(this,a),0>a&&Fn(a,">= zero",to,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&jn(this,a),0>a&&Fn(a,">= zero",to,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&jn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&jn(this,a),this.cr=a,this.xe=null}}}),to.prototype.isDark=to.prototype.Gx,to.prototype.darkenBy=to.prototype.Wy,to.prototype.lightenBy=to.prototype.Vz,to.prototype.addColorStop=to.prototype.addColorStop;var dv=216/24389,mm=24389/27,up=[95.047,100,108.883],fv=null,bo=new cg,Xl=new cg,Us=new cg,kc=new cg,cp=!1;to.className="Brush";var Ph;to.Solid=Ph=new en(to,"Solid",0);var th;to.Linear=th=new en(to,"Linear",1);var lu;to.Radial=lu=new en(to,"Radial",2);var hp;to.Pattern=hp=new en(to,"Pattern",4);var dp;to.Lab=dp=new en(to,"Lab",5);var r1;to.HSL=r1=new en(to,"HSL",6),to.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},to.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;cp||(hv(),cp=!0);var y=fv;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)},to.lighten=function(a){return e1(a)},to.lightenBy=e1,to.darken=function(a){return t1(a)},to.darkenBy=t1,to.mix=av,to.isDark=sp;function Ha(){this.xa="Base"}Ha.prototype.measure=function(){},Ha.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Ha.prototype.arrange=function(){},Ha.prototype.Ly=function(a,y,x,b,E,te){a.arrange(y,x,b,E,te)},Ha.prototype.iA=function(a){a.Uj()},Ha.prototype.gc=function(){},jt.Object.defineProperties(Ha.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Kn}}}),Ha.prototype.remeasureObject=Ha.prototype.iA,Ha.prototype.arrangeElement=Ha.prototype.Ly,Ha.prototype.measureElement=Ha.prototype.Yz,Ha.className="PanelLayout";function vm(){this.xa="Base"}Jt(vm,Ha),vm.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length;a=nh(a);for(var he=0;he<se;he++){var ge=b[he];if(ge.visible||ge===a){var ye=ge.margin,De=ye.right+ye.left;ye=ye.top+ye.bottom,ge.measure(y,x,te,ne);var $e=ge.measuredBounds;De=Math.max($e.width+De,0),ye=Math.max($e.height+ye,0),$e=ge.position.x;var Qe=ge.position.y;isFinite($e)||($e=0),isFinite(Qe)||(Qe=0),ge instanceof hi&&ge.isGeometryPositioned&&(ge=ge.strokeWidth/2,$e-=ge,Qe-=ge),Qi(E,$e,Qe,De,ye)}}},vm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding;for(a=x.x-E.left,x=x.y-E.top,E=0;E<b;E++){var te=y[E],ne=te.measuredBounds,se=te.margin,he=te.position.x,ge=te.position.y;if(he=isNaN(he)?-a:he-a,ge=isNaN(ge)?-x:ge-x,te instanceof hi&&te.isGeometryPositioned){var ye=te.strokeWidth/2;he-=ye,ge-=ye}te.visible&&te.arrange(he+se.left,ge+se.top,ne.width,ne.height)}};function ym(){this.xa="Base"}Jt(ym,Ha),ym.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length;y=xn(),te=nh(a);for(var he=0;he<se;he++){var ge=b[he];if(ge.visible||ge===te){var ye=al(ge,!1);if(ye!==zn&&ye!==Pr)y.push(ge);else{ge.measure(1/0,x,0,ne),ye=ge.margin,ge=ge.measuredBounds;var De=Math.max(ge.height+ye.top+ye.bottom,0);E.width+=Math.max(ge.width+ye.right+ye.left,0),E.height=Math.max(E.height,De)}}}for(b=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):E.height!==0&&(x=Math.min(E.height,a.maxSize.height)),a=0;a<b;a++)he=y[a],(he.visible||he===te)&&(ye=he.margin,se=ye.right+ye.left,ye=ye.top+ye.bottom,he.measure(1/0,x,0,ne),he=he.measuredBounds,ye=Math.max(he.height+ye,0),E.width+=Math.max(he.width+se,0),E.height=Math.max(E.height,ye));In(y)},ym.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,te=E.top,ne=a.isOpposite,se=ne?x.width:E.left,he=0;he<b;he++){var ge=te,ye=y[he];if(ye.visible){var De=ye.measuredBounds,$e=ye.margin,Qe=$e.top+$e.bottom,rt=te+E.bottom,ut=De.height,Ot=al(ye,!1);(isNaN(ye.desiredSize.height)&&Ot===Un||Ot===Dr)&&(ut=Math.max(x.height-Qe-rt,0)),Qe=ut+Qe+rt,rt=ye.alignment,rt.Xb()&&(rt=a.defaultAlignment),rt.sb()||(rt=Di),ne&&(se-=De.width+$e.left+$e.right),ye.arrange(se+rt.offsetX+$e.left,ge+rt.offsetY+$e.top+(x.height*rt.y-Qe*rt.y),De.width,ut),ne||(se+=De.width+$e.left+$e.right)}}};function Sm(){this.xa="Base"}Jt(Sm,Ha),Sm.prototype.measure=function(a,y,x,b,E,te){var ne=b.length;x=xn();for(var se=nh(a),he=0;he<ne;he++){var ge=b[he];if(ge.visible||ge===se){var ye=al(ge,!1);if(ye!==zn&&ye!==Dr)x.push(ge);else{var De=ge.margin;ye=De.right+De.left,De=De.top+De.bottom,ge.measure(y,1/0,te,0),ge=ge.measuredBounds,qa(E,Math.max(E.width,Math.max(ge.width+ye,0)),E.height+Math.max(ge.height+De,0))}}}if(b=x.length,b!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):E.width!==0&&(y=Math.min(E.width,a.maxSize.width)),a=0;a<b;a++)he=x[a],(he.visible||he===se)&&(ge=he.margin,ne=ge.right+ge.left,ge=ge.top+ge.bottom,he.measure(y,1/0,te,0),he=he.measuredBounds,ge=Math.max(he.height+ge,0),E.width=Math.max(E.width,Math.max(he.width+ne,0)),E.height+=ge);In(x)}},Sm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,te=E.left,ne=a.isOpposite,se=ne?x.height:E.top,he=0;he<b;he++){var ge=te,ye=y[he];if(ye.visible){var De=ye.measuredBounds,$e=ye.margin,Qe=$e.left+$e.right,rt=te+E.right,ut=De.width,Ot=al(ye,!1);(isNaN(ye.desiredSize.width)&&Ot===Un||Ot===Pr)&&(ut=Math.max(x.width-Qe-rt,0)),Qe=ut+Qe+rt,rt=ye.alignment,rt.Xb()&&(rt=a.defaultAlignment),rt.sb()||(rt=Di),ne&&(se-=De.height+$e.bottom+$e.top),ye.arrange(ge+rt.offsetX+$e.left+(x.width*rt.x-Qe*rt.x),se+rt.offsetY+$e.top,ut,De.height),ne||(se+=De.height+$e.bottom+$e.top)}}};function xm(){this.xa="Base"}Jt(xm,Ha),xm.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length,he=a.Pb(),ge=he.margin,ye=ge.right+ge.left,De=ge.top+ge.bottom;he.measure(y,x,te,ne);var $e=he.measuredBounds;te=$e.width,ne=$e.height;var Qe=Math.max(te+ye,0),rt=Math.max(ne+De,0),ut=a.isClipping,Ot=Tn.allocAt(-ge.left,-ge.top,Qe,rt),Tt=Tn.allocAt(0,0,te,ne);pv(he,Tt,!0),te=Tt.width,ne=Tt.height;for(var Bt=!0,_t=nh(a),Ht=0;Ht<se;Ht++){var Vt=b[Ht];$e=y;var hn=x;if(Vt!==he&&(Vt.visible||Vt===_t)){ge=Vt.margin;var rr=ge.left,fr=ge.top;switch(Qe=ge.right+ge.left,rt=ge.top+ge.bottom,ge=al(Vt,!1),ge){case Un:$e=te,hn=ne,fr=rr=rt=Qe=0;break;case Pr:$e=te,rr=Qe=0;break;case Dr:hn=ne,fr=rt=0}Vt.measure($e,hn,0,0),$e=Vt.measuredBounds,Qe=Math.max($e.width+Qe,0),rt=Math.max($e.height+rt,0),ge=Vt.alignment,ge.Xb()&&(ge=a.defaultAlignment),ge.sb()||(ge=Di);var cr=Vt.alignmentFocus;if(cr.Xb()&&(cr=Di),hn=null,Vt instanceof Kn&&Vt.$e!==""&&(hn=Vt.fb(Vt.$e),hn===Vt&&(hn=null)),rr=Tt.x-rr,fr=Tt.y-fr,hn!==null){for(Vt.arrange(0,0,$e.width,$e.height),$e=hn.actualBounds,$e=Lt.allocAt($e.x+(cr.x*$e.width-cr.offsetX),$e.y+(cr.y*$e.height-cr.offsetY)),hn=hn.panel;hn!==Vt;)hn.transform.Ga($e),hn=hn.panel;rr+=ge.x*te+ge.offsetX-$e.x,fr+=ge.y*ne+ge.offsetY-$e.y,Lt.free($e)}else rr+=ge.x*te+ge.offsetX-(cr.x*$e.width+cr.offsetX),fr+=ge.y*ne+ge.offsetY-(cr.y*$e.height+cr.offsetY);Bt?(Bt=!1,E.h(rr,fr,Qe,rt)):Qi(E,rr,fr,Qe,rt)}}switch(Bt?E.assign(Ot):ut?E.Uu(Tt.x,Tt.y,Tt.width,Tt.height):Qi(E,Ot.x,Ot.y,Ot.width,Ot.height),Tn.free(Ot),Tn.free(Tt),ge=he.stretch,ge===ri&&(ge=al(he,!1)),ge){case zn:return;case Un:if(!isFinite(y)&&!isFinite(x))return;break;case Pr:if(!isFinite(y))return;break;case Dr:if(!isFinite(x))return}for($e=he.measuredBounds,te=$e.width,ne=$e.height,Qe=Math.max(te+ye,0),rt=Math.max(ne+De,0),ge=he.margin,Tt=Tn.allocAt(-ge.left,-ge.top,Qe,rt),pv(he,Tt,!0),te=Tt.width,ne=Tt.height,y=0;y<se;y++)x=b[y],x===he||!x.visible&&x!==_t||(ge=x.margin,Qe=ge.right+ge.left,rt=ge.top+ge.bottom,$e=x.measuredBounds,Qe=Math.max($e.width+Qe,0),rt=Math.max($e.height+rt,0),ye=x.alignment,ye.Xb()&&(ye=a.defaultAlignment),ye.sb()||(ye=Di),x=x.alignmentFocus,x.Xb()&&(x=Di),Bt?(Bt=!1,E.h(ye.x*te+ye.offsetX-(x.x*$e.width+x.offsetX)-ge.left,ye.y*ne+ye.offsetY-(x.y*$e.height+x.offsetY)-ge.top,Qe,rt)):Qi(E,ye.x*te+ye.offsetX-(x.x*$e.width+x.offsetX)-ge.left,ye.y*ne+ye.offsetY-(x.y*$e.height+x.offsetY)-ge.top,Qe,rt));Bt?E.assign(Ot):ut?E.Uu(Tt.x,Tt.y,Tt.width,Tt.height):Qi(E,Ot.x,Ot.y,Ot.width,Ot.height),Tn.free(Tt)},xm.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),te=E.measuredBounds,ne=te.width,se=te.height,he=a.padding;te=he.left,he=he.top;var ge=te-x.x,ye=he-x.y;for(E.arrange(ge,ye,ne,se),ne=Tn.allocAt(0,0,ne,se),pv(E,ne,!1),se=0;se<b;se++){var De=y[se];if(De!==E){ge=De.measuredBounds;var $e=ge.width,Qe=ge.height;ye=De.alignment,ye.Xb()&&(ye=a.defaultAlignment),ye.sb()||(ye=Di);var rt=De.alignmentFocus;if(rt.Xb()&&(rt=Di),ge=null,De instanceof Kn&&De.$e!==""&&(ge=De.fb(De.$e),ge===De&&(ge=null)),ge!==null){var ut=ge.actualBounds;for(rt=Lt.allocAt(ut.x+(rt.x*ut.width-rt.offsetX),ut.y+(rt.y*ut.height-rt.offsetY)),ge=ge.panel;ge!==De;)ge.transform.Ga(rt),ge=ge.panel;ge=ye.x*ne.width+ye.offsetX-rt.x,ye=ye.y*ne.height+ye.offsetY-rt.y,Lt.free(rt)}else ge=ye.x*ne.width+ye.offsetX-(rt.x*$e+rt.offsetX),ye=ye.y*ne.height+ye.offsetY-(rt.y*Qe+rt.offsetY);ge+=ne.x-x.x,ye+=ne.y-x.y,De.visible&&De.arrange(te+ge,he+ye,$e,Qe)}}Tn.free(ne)};function pv(a,y,x){var b=null;if(a instanceof Kn&&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 wm(){this.xa="Base"}Jt(wm,Ha),wm.prototype.measure=function(a,y,x,b,E,te,ne){var se=b.length,he=a.Pb(),ge=he.margin,ye=y,De=x,$e=ge.right+ge.left,Qe=ge.top+ge.bottom;he.measure(y,x,te,ne),ge=he.measuredBounds;var rt=0,ut=null;he instanceof hi&&(ut=he,rt=ut.strokeWidth*ut.scale);var Ot=Math.max(ge.width+$e,0);ge=Math.max(ge.height+Qe,0);var Tt=yv(he),Bt=Tt.x*Ot+Tt.offsetX;Tt=Tt.y*ge+Tt.offsetY;var _t=Sv(he),Ht=_t.x*Ot+_t.offsetX;for(_t=_t.y*ge+_t.offsetY,isFinite(y)&&(ye=Math.max(Math.abs(Bt-Ht)-rt,0)),isFinite(x)&&(De=Math.max(Math.abs(Tt-_t)-rt,0)),rt=Xn.alloc(),rt.h(0,0),a=nh(a),_t=0;_t<se;_t++)Tt=b[_t],Tt===he||!Tt.visible&&Tt!==a||(ge=Tt.margin,Ot=ge.right+ge.left,Bt=ge.top+ge.bottom,Tt.measure(ye,De,0,0),ge=Tt.measuredBounds,Ot=Math.max(ge.width+Ot,0),ge=Math.max(ge.height+Bt,0),rt.h(Math.max(Ot,rt.width),Math.max(ge,rt.height)));if(se===1)E.width=Ot,E.height=ge,Xn.free(rt);else{switch(Tt=yv(he),_t=Sv(he),se=b=0,_t.x!==Tt.x&&_t.y!==Tt.y&&(b=rt.width/Math.abs(_t.x-Tt.x),se=rt.height/Math.abs(_t.y-Tt.y)),Xn.free(rt),rt=0,ut!==null&&(rt=ut.strokeWidth*ut.scale,Ev(ut)===yr&&(b=se=Math.max(b,se))),b+=Math.abs(Tt.offsetX)+Math.abs(_t.offsetX)+rt,se+=Math.abs(Tt.offsetY)+Math.abs(_t.offsetY)+rt,ut=he.stretch,ut===ri&&(ut=al(he,!1)),ut){case zn:ne=te=0;break;case Un:isFinite(y)&&(b=y),isFinite(x)&&(se=x);break;case Pr:isFinite(y)&&(b=y),ne=0;break;case Dr:te=0,isFinite(x)&&(se=x)}he.Uj(),he.measure(b,se,te,ne),E.width=he.measuredBounds.width+$e,E.height=he.measuredBounds.height+Qe}},wm.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,te=Tn.alloc();te.h(0,0,1,1);var ne=b.margin,se=ne.left;ne=ne.top;var he=a.padding,ge=he.left;he=he.top,b.arrange(ge+se,he+ne,E.width,E.height);var ye=yv(b),De=Sv(b),$e=ye.y*E.height+ye.offsetY,Qe=De.x*E.width+De.offsetX;for(De=De.y*E.height+De.offsetY,te.x=ye.x*E.width+ye.offsetX,te.y=$e,Qi(te,Qe,De,0,0),te.x+=se+ge,te.y+=ne+he,E=0;E<x;E++)se=y[E],se!==b&&(ge=se.measuredBounds,ne=se.margin,he=Math.max(ge.width+ne.right+ne.left,0),ye=Math.max(ge.height+ne.top+ne.bottom,0),$e=se.alignment,$e.Xb()&&($e=a.defaultAlignment),$e.sb()||($e=Di),he=te.width*$e.x+$e.offsetX-he*$e.x+ne.left+te.x,ne=te.height*$e.y+$e.offsetY-ye*$e.y+ne.top+te.y,se.visible&&(Po(te.x,te.y,te.width,te.height,he,ne,ge.width,ge.height)?se.arrange(he,ne,ge.width,ge.height):se.arrange(he,ne,ge.width,ge.height,new Tn(te.x,te.y,te.width,te.height))));Tn.free(te)};function bm(){this.xa="Base",this.name="Table"}Jt(bm,Ha),bm.prototype.measure=function(a,y,x,b,E){for(var te=b.length,ne=xn(),se=xn(),he=0;he<te;he++){var ge=b[he],ye=ge instanceof Kn?ge:null;if(ye!==null&&Ch(ye)&&ge.visible){se.push(ye);for(var De=ye.O.s,$e=De.length,Qe=0;Qe<$e;Qe++){var rt=De[Qe];ye.type===Kn.TableRow?rt.row=ge.row:ye.type===Kn.TableColumn&&(rt.column=ge.column),ne.push(rt)}}else ne.push(ge)}te=ne.length,te===0&&(a.Fb(0),a.Eb(0));for(var ut=[],Ot=0;Ot<te;Ot++){var Tt=ne[Ot];Tt.visible&&(Oa(Tt,!0),Mc(Tt,!0),ut[Tt.row]||(ut[Tt.row]=[]),ut[Tt.row][Tt.column]||(ut[Tt.row][Tt.column]=[]),ut[Tt.row][Tt.column].push(Tt))}In(ne);var Bt=xn(),_t=xn(),Ht=xn(),Vt={count:0},hn={count:0},rr=y,fr=x,cr=a.rowDefs,Zn=a.colDefs,Bn=null;te=cr.length;for(var Jr=0;Jr<te;Jr++)Bn=cr[Jr],Bn!==void 0&&(Bn.actual=0);te=Zn.length;for(var Wr=0;Wr<te;Wr++)Bn=Zn[Wr],Bn!==void 0&&(Bn.actual=0);for(var $i=ut.length,vo=0,Ja=0;Ja<$i;Ja++)ut[Ja]&&(vo=Math.max(vo,ut[Ja].length));var ns=Math.min(a.topIndex,$i-1),Fs=Math.min(a.leftIndex,vo-1),Qa=0;$i=ut.length;for(var Ih=nh(a),xa=0;xa<$i;xa++)if(ut[xa]){vo=ut[xa].length;var qu=a.Fb(xa);qu.actual=0;for(var Bs=qu.oc=0;Bs<vo;Bs++)if(ut[xa][Bs]){var Dh=a.Eb(Bs);Bt[Bs]===void 0&&(Dh.actual=0,Dh.oc=0,Bt[Bs]=!0);for(var Ql=ut[xa][Bs],bu=Ql.length,kl=0;kl<bu;kl++){var yl=Ql[kl];if(yl.visible||yl===Ih){var fd=1<yl.rowSpan||1<yl.columnSpan;fd&&(xa<ns||Bs<Fs||_t.push(yl));var ec=yl.margin,Dp=ec.right+ec.left,Nl=ec.top+ec.bottom,Rs=Vu(yl,qu,Dh,!1),Jg=yl.desiredSize,Df=!isNaN(Jg.height),dc=!isNaN(Jg.width)&&Df;if(fd||Rs===zn||dc||xa<ns||Bs<Fs||(Vt[Bs]!==void 0||Rs!==Un&&Rs!==Pr||(Vt[Bs]=-1,Vt.count++),hn[xa]!==void 0||Rs!==Un&&Rs!==Dr||(hn[xa]=-1,hn.count++),Ht.push(yl)),yl.measure(1/0,1/0,0,0),!(xa<ns||Bs<Fs)){var Sl=yl.measuredBounds,Qd=Math.max(Sl.width+Dp,0),Ol=Math.max(Sl.height+Nl,0);if(yl.rowSpan===1&&(Rs===zn||Rs===Pr)){Bn=a.Fb(xa);var pd=Bn.Wc();Qa=Math.max(Ol-Bn.actual,0),Qa+pd>fr&&(Qa=Math.max(fr-pd,0));var $0=Bn.oa===0;Bn.oc=Bn.oc+Qa,Bn.actual=Bn.oa+Qa,fr=Math.max(fr-(Qa+($0?pd:0)),0)}if(yl.columnSpan===1&&(Rs===zn||Rs===Dr)){Bn=a.Eb(Bs);var Qg=Bn.Wc();Qa=Math.max(Qd-Bn.actual,0),Qa+Qg>rr&&(Qa=Math.max(rr-Qg,0));var Hy=Bn.oa===0;Bn.oc=Bn.oc+Qa,Bn.actual=Bn.oa+Qa,rr=Math.max(rr-(Qa+(Hy?Qg:0)),0)}fd&&yl.Uj()}}}}}In(Bt);var Rc=0,oh=0;te=a.columnCount;for(var Ff=0;Ff<te;Ff++){var gd=Zn[Ff];gd!==void 0&&(Rc+=isNaN(gd.Hc)?gd.oc:gd.Hc,gd.oc!==0&&(Rc+=gd.Wc()))}te=a.rowCount;for(var Fp=0;Fp<te;Fp++){var md=cr[Fp];md!==void 0&&(oh+=isNaN(md.Hc)?md.oc:md.Hc,md.oc!==0&&(oh+=md.Wc()))}rr=Math.max(y-Rc,0);var _c=fr=Math.max(x-oh,0),Fh=rr;te=Ht.length;for(var xl=0;xl<te;xl++){var fc=Ht[xl],K0=a.Fb(fc.row),ah=a.Eb(fc.column),Bp=fc.measuredBounds,tc=fc.margin,qd=tc.right+tc.left,pc=tc.top+tc.bottom;Vt[fc.column]=ah.oc===0&&Vt[fc.column]!==void 0?Math.max(Bp.width+qd,Vt[fc.column]):null,hn[fc.row]=K0.oc===0&&hn[fc.row]!==void 0?Math.max(Bp.height+pc,hn[fc.row]):null}var Bf=0,Rp=0,Fu;for(Fu in hn)Fu!=="count"&&(Bf+=hn[Fu]);for(Fu in Vt)Fu!=="count"&&(Rp+=Vt[Fu]);for(var ds=Xn.alloc(),qg=0;qg<te;qg++){var Js=Ht[qg];if(Js.visible||Js===Ih){var wa=a.Fb(Js.row),Qs=a.Eb(Js.column),sh=0;isFinite(Qs.width)?sh=Qs.width:(isFinite(rr)&&Vt[Js.column]!==null?Rp===0?sh=Qs.actual+rr:sh=Vt[Js.column]/Rp*Fh:Vt[Js.column]!==null?sh=rr:sh=Qs.actual||rr,sh=Math.max(0,sh-Qs.Wc()));var Bh=0;switch(isFinite(wa.height)?Bh=wa.height:(isFinite(fr)&&hn[Js.row]!==null?Bf===0?Bh=wa.actual+fr:Bh=hn[Js.row]/Bf*_c:hn[Js.row]!==null?Bh=fr:Bh=wa.actual||fr,Bh=Math.max(0,Bh-wa.Wc())),ds.h(Math.max(Qs.minimum,Math.min(sh,Qs.maximum)),Math.max(wa.minimum,Math.min(Bh,wa.maximum))),Rs=Vu(Js,wa,Qs,!1),Rs){case Pr:ds.height=Math.max(ds.height,wa.actual+fr);break;case Dr:ds.width=Math.max(ds.width,Qs.actual+rr)}var ef=Js.margin,Gy=ef.right+ef.left,Z0=ef.top+ef.bottom;Js.Uj(),Js.measure(ds.width,ds.height,Qs.minimum,wa.minimum);var _p=Js.measuredBounds,tf=Math.max(_p.width+Gy,0),Rf=Math.max(_p.height+Z0,0);isFinite(rr)&&(tf=Math.min(tf,ds.width)),isFinite(fr)&&(Rf=Math.min(Rf,ds.height));var wl=0;wl=wa.actual,wa.actual=Math.max(wa.actual,Rf),wa.oc=Math.max(wa.oc,Rf),Qa=wa.actual-wl,fr=Math.max(fr-Qa,0),hn[Js.row]===null&&(_c=Math.max(_c-Qa,0)),wl=Qs.actual,Qs.actual=Math.max(Qs.actual,tf),Qs.oc=Math.max(Qs.oc,tf),Qa=Qs.actual-wl,rr=Math.max(rr-Qa,0),Vt[Js.column]===null&&(Fh=Math.max(Fh-Qa,0))}}In(Ht);var lh=Xn.alloc(),nc=xn(),fu=xn();if(te=_t.length,te!==0){for(var vd=0;vd<$i;vd++)if(ut[vd]){vo=ut[vd].length;var zp=a.Fb(vd);nc[vd]=zp.actual;for(var yd=0;yd<vo;yd++)if(ut[vd][yd]){var V0=a.Eb(yd);fu[yd]=V0.actual}}}for(var Hp=0;Hp<te;Hp++){var aa=_t[Hp];if(aa.visible||aa===Ih){var Bu=a.Fb(aa.row),Pu=a.Eb(aa.column);switch(ds.h(Math.max(Pu.minimum,Math.min(y,Pu.maximum)),Math.max(Bu.minimum,Math.min(x,Bu.maximum))),Rs=Vu(aa,Bu,Pu,!1),Rs){case Un:fu[Pu.index]!==0&&(ds.width=Math.min(ds.width,fu[Pu.index])),nc[Bu.index]!==0&&(ds.height=Math.min(ds.height,nc[Bu.index]));break;case Pr:fu[Pu.index]!==0&&(ds.width=Math.min(ds.width,fu[Pu.index]));break;case Dr:nc[Bu.index]!==0&&(ds.height=Math.min(ds.height,nc[Bu.index]))}isFinite(Pu.width)&&(ds.width=Pu.width),isFinite(Bu.height)&&(ds.height=Bu.height),lh.h(0,0);for(var X0=Pu.minimum,Al=Bu.minimum,Rh=1;Rh<aa.rowSpan&&!(aa.row+Rh>=a.rowCount);Rh++)Bn=a.Fb(aa.row+Rh),Qa=0,Qa=Rs===Un||Rs===Dr?Math.max(Bn.minimum,nc[aa.row+Rh]===0?Bn.maximum:Math.min(nc[aa.row+Rh],Bn.maximum)):Math.max(Bn.minimum,isNaN(Bn.Hc)?Bn.maximum:Math.min(Bn.Hc,Bn.maximum)),lh.height+=Qa,Al+=Bn.minimum;for(var Cu=1;Cu<aa.columnSpan&&!(aa.column+Cu>=a.columnCount);Cu++)Bn=a.Eb(aa.column+Cu),Qa=0,Qa=Rs===Un||Rs===Pr?Math.max(Bn.minimum,fu[aa.column+Cu]===0?Bn.maximum:Math.min(fu[aa.column+Cu],Bn.maximum)):Math.max(Bn.minimum,isNaN(Bn.Hc)?Bn.maximum:Math.min(Bn.Hc,Bn.maximum)),lh.width+=Qa,X0+=Bn.minimum;ds.width+=lh.width,ds.height+=lh.height;var Gp=aa.margin,Sd=Gp.right+Gp.left,em=Gp.top+Gp.bottom;aa.measure(ds.width,ds.height,X0,Al);for(var Wp=aa.measuredBounds,gc=Math.max(Wp.width+Sd,0),nf=Math.max(Wp.height+em,0),xd=0,Up=0;Up<aa.rowSpan&&!(aa.row+Up>=a.rowCount);Up++)Bn=a.Fb(aa.row+Up),xd+=Bn.total||0;if(xd<nf){var _h=nf-xd,zc=nf-xd;if(aa.spanAllocation!==null)for(var zh=aa.spanAllocation,uh=0;uh<aa.rowSpan&&!(0>=_h)&&!(aa.row+uh>=a.rowCount);uh++){Bn=a.Fb(aa.row+uh);var Hh=Bn.oa||0,rf=zh(aa,Bn,zc);Bn.actual=Math.min(Bn.maximum,Hh+rf),Bn.oa!==Hh&&(_h-=Bn.oa-Hh)}for(;0<_h;){var rc=Bn.oa||0;if(isNaN(Bn.height)&&Bn.maximum>rc&&(Bn.actual=Math.min(Bn.maximum,rc+_h),Bn.oa!==rc&&(_h-=Bn.oa-rc)),Bn.index===0)break;Bn=a.Fb(Bn.index-1)}}for(var _f=0,Gh=0;Gh<aa.columnSpan&&!(aa.column+Gh>=a.columnCount);Gh++)Bn=a.Eb(aa.column+Gh),_f+=Bn.total||0;if(_f<gc){var zf=gc-_f,Wy=gc-_f;if(aa.spanAllocation!==null)for(var ch=aa.spanAllocation,of=0;of<aa.columnSpan&&!(0>=zf)&&!(aa.column+of>=a.columnCount);of++){Bn=a.Eb(aa.column+of);var tm=Bn.oa||0,Uy=ch(aa,Bn,Wy);Bn.actual=Math.min(Bn.maximum,tm+Uy),Bn.oa!==tm&&(zf-=Bn.oa-tm)}for(;0<zf;){var Y0=Bn.oa||0;if(isNaN(Bn.width)&&Bn.maximum>Y0&&(Bn.actual=Math.min(Bn.maximum,Y0+zf),Bn.oa!==Y0&&(zf-=Bn.oa-Y0)),Bn.index===0)break;Bn=a.Eb(Bn.index-1)}}}}In(_t),Xn.free(lh),Xn.free(ds),nc!==void 0&&In(nc),fu!==void 0&&In(fu);var Hf=0,Gf=0,J0=a.desiredSize,gx=a.maxSize;Rs=al(a,!0);var nm=oh=Rc=0,rm=0;te=a.columnCount;for(var Q0=0;Q0<te;Q0++)Zn[Q0]!==void 0&&(Bn=a.Eb(Q0),isFinite(Bn.width)?(nm+=Bn.width,nm+=Bn.Wc()):Am(Bn)===pg?(nm+=Bn.oa,nm+=Bn.Wc()):Bn.oa!==0&&(Rc+=Bn.oa,Rc+=Bn.Wc()));isFinite(J0.width)?Hf=Math.min(J0.width,gx.width):Hf=Rs!==zn&&isFinite(y)?y:Rc,Hf=Math.max(Hf,a.minSize.width),Hf=Math.max(Hf-nm,0);for(var Qx=Rc===0?1:Math.max(Hf/Rc,1),q0=0;q0<te;q0++)Zn[q0]!==void 0&&(Bn=a.Eb(q0),isFinite(Bn.width)||Am(Bn)===pg||(Bn.actual=Bn.oa*Qx),Bn.position=E.width,Bn.oa!==0&&(E.width+=Bn.oa,E.width+=Bn.Wc()));te=a.rowCount;for(var ev=0;ev<te;ev++)cr[ev]!==void 0&&(Bn=a.Fb(ev),isFinite(Bn.height)?(rm+=Bn.height,rm+=Bn.Wc()):Am(Bn)===pg?(rm+=Bn.oa,rm+=Bn.Wc()):Bn.oa!==0&&(oh+=Bn.oa,oh+=Bn.Wc()));isFinite(J0.height)?Gf=Math.min(J0.height,gx.height):Gf=Rs!==zn&&isFinite(x)?x:oh,Gf=Math.max(Gf,a.minSize.height),Gf=Math.max(Gf-rm,0);for(var qx=oh===0?1:Math.max(Gf/oh,1),tv=0;tv<te;tv++)cr[tv]!==void 0&&(Bn=a.Fb(tv),isFinite(Bn.height)||Am(Bn)===pg||(Bn.actual=Bn.oa*qx),Bn.position=E.height,Bn.oa!==0&&(E.height+=Bn.oa,E.height+=Bn.Wc()));te=se.length;for(var $y=0;$y<te;$y++){var im=se[$y],Ky=0,Zy=0;im.type===Kn.TableRow?(Ky=E.width,Bn=a.Fb(im.row),Zy=Bn.actual):(Bn=a.Eb(im.column),Ky=Bn.actual,Zy=E.height),im.measuredBounds.h(0,0,Ky,Zy),Oa(im,!1)}In(se),a.inRowsCols=ut},bm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding,te=E.left;E=E.top;var ne=a.inRowsCols;if(ne!==null){for(var se,he,ge=ne.length,ye=0,De=0;De<ge;De++)ne[De]&&(ye=Math.max(ye,ne[De].length));he=a.rowDefs,se=a.colDefs;var $e=De=0,Qe=Math.min(a.topIndex,ge-1);if(0<he.length){for(;Qe!==ge&&(he[Qe]===void 0||he[Qe].oa===0);)Qe++;Qe=Math.max(Math.min(Qe,ge-1),0),De=-he[Qe].position}var rt=Math.min(a.leftIndex,ye-1);if(0<se.length){for(;rt!==ye&&(se[rt]===void 0||se[rt].oa===0);)rt++;rt=Math.max(Math.min(rt,ye-1),0),$e=-se[rt].position}for(var ut=0,Ot=0;ut!==ge&&he[ut]===void 0;)ut++;for(;Ot!==ge&&se[Ot]===void 0;)Ot++;ye=a.part,a.Fb(ut),a.Eb(Ot);for(var Tt=0;Tt<y.length;Tt++){var Bt=y[Tt];if(Bt instanceof Kn&&Bt.visible&&Ch(Bt)){if(Bt.type===Kn.TableRow){se=a.Fb(Bt.row);var _t=a.Eb(Ot)}else se=a.Fb(ut),_t=a.Eb(Bt.column);he=se.position+De+E,se.oa!==0&&(he+=se.Io(Math.max(ut,Qe))),se=_t.position+$e+te,_t.oa!==0&&(se+=_t.Io(Math.max(Ot,rt))),_t=Bt.measuredBounds,Bt.Uk(),Bt.actualBounds.ka();var Ht=Bt.actualBounds,Vt=Tn.allocAt(Ht.x,Ht.y,Ht.width,Ht.height);Ht.x=Bt.type===Kn.TableRow?te:se,Ht.y=Bt.type===Kn.TableColumn?E:he,Ht.width=_t.width,Ht.height=_t.height,Bt.actualBounds.freeze(),Mc(Bt,!1),Zi(Vt,Ht)||ye===null||(ye.oh(),Bt.Pn(ye)),Tn.free(Vt)}}for(Tt=Xn.alloc(),Bt=0;Bt<ge;Bt++)if(ne[Bt]){for(ye=ne[Bt].length,_t=a.Fb(Bt),he=_t.position+De+E,_t.oa!==0&&(he+=_t.Io(Math.max(ut,Qe))),Ht=0;Ht<ye;Ht++)if(ne[Bt][Ht]){Vt=a.Eb(Ht),se=Vt.position+$e+te,Vt.oa!==0&&(se+=Vt.Io(Math.max(Ot,rt)));for(var hn=ne[Bt][Ht],rr=hn.length,fr=0;fr<rr;fr++){var cr=hn[fr],Zn=cr.measuredBounds;Tt.h(0,0);for(var Bn=1;Bn<cr.rowSpan&&!(Bt+Bn>=a.rowCount);Bn++){var Jr=a.Fb(Bt+Bn);Jr.oa!==0&&(Tt.height+=Jr.total)}for(Bn=1;Bn<cr.columnSpan&&!(Ht+Bn>=a.columnCount);Bn++)Jr=a.Eb(Ht+Bn),Jr.oa!==0&&(Tt.width+=Jr.total);var Wr=Vt.oa+Tt.width,$i=_t.oa+Tt.height;Bn=se,Jr=he;var vo=Wr,Ja=$i,ns=se,Fs=he,Qa=Wr,Ih=$i;se+Wr>x.width&&(Qa=Math.max(x.width-se,0)),he+$i>x.height&&(Ih=Math.max(x.height-he,0));var xa=cr.alignment;if(xa.Xb()){xa=a.defaultAlignment,xa.sb()||(xa=Di);var qu=xa.x,Bs=xa.y,Dh=xa.offsetX;xa=xa.offsetY;var Ql=Vt.alignment,bu=_t.alignment;Ql.sb()&&(qu=Ql.x,Dh=Ql.offsetX),bu.sb()&&(Bs=bu.y,xa=bu.offsetY)}else qu=xa.x,Bs=xa.y,Dh=xa.offsetX,xa=xa.offsetY;(isNaN(qu)||isNaN(Bs))&&(Bs=qu=.5,xa=Dh=0),Ql=Zn.width,bu=Zn.height;var kl=cr.margin,yl=kl.left+kl.right,fd=kl.top+kl.bottom,ec=Vu(cr,_t,Vt,!1);!isNaN(cr.desiredSize.width)||ec!==Un&&ec!==Pr||(Ql=Math.max(Wr-yl,0)),!isNaN(cr.desiredSize.height)||ec!==Un&&ec!==Dr||(bu=Math.max($i-fd,0)),Wr=cr.maxSize,$i=cr.minSize,Ql=Math.min(Wr.width,Ql),bu=Math.min(Wr.height,bu),Ql=Math.max($i.width,Ql),bu=Math.max($i.height,bu),Wr=bu+fd,Bn+=vo*qu-(Ql+yl)*qu+Dh+kl.left,Jr+=Ja*Bs-Wr*Bs+xa+kl.top,cr.visible&&(Po(ns,Fs,Qa,Ih,Bn,Jr,Zn.width,Zn.height)?cr.arrange(Bn,Jr,Ql,bu):cr.arrange(Bn,Jr,Ql,bu,new Tn(ns,Fs,Qa,Ih)))}}}for(Xn.free(Tt),a=0;a<b;a++)x=y[a],te=x instanceof Kn?x:null,te!==null&&Ch(te)&&(te=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,te.width,te.height),x.naturalBounds.freeze())}};function Pm(){this.xa="Base"}Jt(Pm,Ha),Pm.prototype.measure=function(){},Pm.prototype.arrange=function(){};function Cm(){this.xa="Base"}Jt(Cm,Ha),Cm.prototype.measure=function(){},Cm.prototype.arrange=function(){};function Em(){this.xa="Base"}Jt(Em,Ha),Em.prototype.measure=function(a,y,x,b,E,te,ne){1<b.length&&Zt("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,te,ne);var se=b.measuredBounds,he=b.margin,ge=he.right+he.left;if(he=he.top+he.bottom,isFinite(y)||isFinite(x)){var ye=b.scale,De=se.width;se=se.height;var $e=Math.max(y-ge,0),Qe=Math.max(x-he,0),rt=1;a.viewboxStretch===yr?De!==0&&se!==0&&(rt=Math.min($e/De,Qe/se)):De!==0&&se!==0&&(rt=Math.max($e/De,Qe/se)),rt===0&&(rt=1e-4),b.Ca*=rt,ye!==b.scale&&(Oa(b,!0),b.measure(1/0,1/0,te,ne))}se=b.measuredBounds,E.width=isFinite(y)?y:Math.max(se.width+ge,0),E.height=isFinite(x)?x:Math.max(se.height+he,0)},Em.prototype.arrange=function(a,y,x){y=y[0];var b=y.measuredBounds,E=y.margin,te=Math.max(b.width+(E.right+E.left),0);E=Math.max(b.height+(E.top+E.bottom),0);var ne=y.alignment;ne.Xb()&&(ne=a.defaultAlignment),ne.sb()||(ne=Di),y.arrange(x.width*ne.x-te*ne.x+ne.offsetX,x.height*ne.y-E*ne.y+ne.offsetY,b.width,b.height)};function hg(){this.xa="Base"}Jt(hg,Ha),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,E=b.width;b=b.height;var te=a.naturalBounds,ne=a.actualBounds,se=te.width,he=te.height,ge=Math.ceil(se/E),ye=Math.ceil(he/b),De=a.gridOrigin,$e=De.x;De=De.y,y.save(),y.beginPath(),y.rect(0,0,se,he),y.clip(),y.Se();for(var Qe=[],rt=a.O.s,ut=rt.length,Ot=0;Ot<ut;Ot++){var Tt=rt[Ot],Bt=[];if(Qe.push(Bt),Tt.visible){var _t=Tt.interval;if(!(0>_t)){Tt=mv(Tt.figure);for(var Ht=0;Ht<ut;Ht++)if(Ht!==Ot){var Vt=rt[Ht];Vt.visible&&mv(Vt.figure)===Tt&&(Vt=Vt.interval,Vt>_t&&Bt.push(Vt))}}}}for(rt=a.O.s,ut=rt.length,Ot=0;Ot<ut;Ot++){var hn=rt[Ot];if(hn.visible&&(Bt=hn.interval||1,Tt=Math.abs(Bt),!(2>E*Tt*x))){if(_t=hn.segmentIndex,(!isFinite(_t)||isNaN(_t))&&(_t=0),0>_t&&(_t=Tt-Math.min(-_t,Tt)),_t=Math.round(_t%Tt),Tt=hn.opacity,Ht=1,Tt!==1){if(Tt===0)continue;Ht=y.globalAlpha,y.globalAlpha=Ht*Tt}Vt=Qe[Ot];var rr=!1,fr=hn.strokeDashArray;if(fr!==null&&(rr=!0,y.js(fr,hn.strokeDashOffset)),hn.figure==="LineV"&&hn.stroke!==null&&0<hn.strokeWidth){for(y.lineWidth=hn.strokeWidth,ia(a,y,hn.stroke,!1,!1,te,ne),y.beginPath(),fr=hn=Math.floor(($e-E)/E);fr<=hn+ge;fr++){var cr=fr*E+$e;0<=cr&&cr<=se&&Tm(fr,Bt,_t,Vt)&&(y.moveTo(cr,0),y.lineTo(cr,he))}y.stroke(),y.Se()}else if(hn.figure==="LineH"&&hn.stroke!==null&&0<hn.strokeWidth){for(y.lineWidth=hn.strokeWidth,ia(a,y,hn.stroke,!1,!1,te,ne),y.beginPath(),fr=hn=Math.floor((De-b)/b);fr<=hn+ye;fr++)cr=fr*b+De,0<=cr&&cr<=he&&Tm(fr,Bt,_t,Vt)&&(y.moveTo(0,cr),y.lineTo(se,cr));y.stroke(),y.Se()}else if(hn.figure==="BarV"&&hn.fill!==null)for(ia(a,y,hn.fill,!0,!1,te,ne),hn=hn.width,isNaN(hn)&&(hn=E),cr=fr=Math.floor(($e-E)/E);cr<=fr+ge;cr++){var Zn=cr*E+$e;0<=Zn+hn&&Zn<=se&&Tm(cr,Bt,_t,Vt)&&y.fillRect(Zn,0,hn,he)}else if(hn.figure==="BarH"&&hn.fill!==null)for(ia(a,y,hn.fill,!0,!1,te,ne),hn=hn.height,isNaN(hn)&&(hn=b),cr=fr=Math.floor((De-b)/b);cr<=fr+ye;cr++)Zn=cr*b+De,0<=Zn+hn&&Zn<=he&&Tm(cr,Bt,_t,Vt)&&y.fillRect(0,Zn,se,hn);rr&&y.fs(),Tt!==1&&(y.globalAlpha=Ht)}}y.restore(),y.Vc(!1)};function Tm(a,y,x,b){if(0>y)return a%y===x;if(a%y!==x)return!1;y=b.length;for(var E=0;E<y;E++)if(a%b[E]===x)return!1;return!0}function Mm(){this.xa="Base"}Jt(Mm,Ha),Mm.prototype.measure=function(a,y,x,b,E){var te=b.length;if(a instanceof Gi||a instanceof Vn){var ne=null,se=null;if(a instanceof Vn&&(ne=a),a instanceof Gi&&(se=a,ne=se.adornedPart,a.j===null&&(a.j=[])),ne instanceof Vn){var he=ne;if(te===0)qa(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var ge=a instanceof Gi?null:ne.path;y=ne.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ye=he.points,De=ne.pointsCount;se!==null?se.Ul(!1):ne!==null&&ne.Ul(!1),se=y.width;var $e=y.height,Qe=a.j;if(Qe.length=0,ge!==null){i1(a,se,$e,ge);var rt=ge.measuredBounds;x.ed(rt),Qe.push(rt)}rt=pi.alloc();for(var ut=Lt.alloc(),Ot=Lt.alloc(),Tt=0;Tt<te;Tt++){var Bt=b[Tt];if(Bt!==ge)if(Bt.isPanelMain&&Bt instanceof hi){i1(a,se,$e,Bt);var _t=Bt.measuredBounds;x.ed(_t),Qe.push(_t)}else if(2>De)Bt.measure(1/0,1/0,0,0),_t=Bt.measuredBounds,x.ed(_t),Qe.push(_t);else{var Ht=Bt.segmentIndex,Vt=Bt.segmentFraction,hn=Bt.alignmentFocus;hn.Mc()&&(hn=Di);var rr=Bt.segmentOrientation,fr=Bt.segmentOffset;if(isNaN(Ht)){var cr=he.ua;_t=xn(),cr.Qu(Vt,_t);var Zn=Lt.allocAt(_t[0],_t[1]);if(Zn.add(he.i(0)),cr.type===Yn.j?Zn.offset(-cr.startX,-cr.startY):(cr=cr.figures.first(),cr!==null&&Zn.offset(-cr.startX,-cr.startY)),cr=_t[2],rr!==Ks){var Bn=he.computeAngle(Bt,rr,cr);Bt.Kb=Bn}Bn=Zn.x-y.x;var Jr=Zn.y-y.y;Lt.free(Zn),In(_t)}else if(Ht<-De||Ht>=De)_t=Lt.alloc(),he.vg(),he.computeMidPoint(_t),cr=he.midAngle,rr!==Ks&&(Bn=he.computeAngle(Bt,rr,cr),Bt.Kb=Bn),Bn=_t.x-y.x,Jr=_t.y-y.y,Lt.free(_t);else{if(Bn=0,0<=Ht?(Jr=ye.M(Ht),_t=Ht<De-1?ye.M(Ht+1):Jr):(Bn=De+Ht,Jr=ye.M(Bn),_t=0<Bn?ye.M(Bn-1):Jr),Jr.Xa(_t)){0<=Ht?(cr=0<Ht?ye.M(Ht-1):Jr,Bn=Ht<De-2?ye.M(Ht+2):_t):(cr=Bn<De-1?ye.M(Bn+1):Jr,Bn=1<Bn?ye.M(Bn-2):_t),Zn=cr.Bf(Jr);var Wr=_t.Bf(Bn);cr=Zn>Wr+10?0<=Ht?cr.ab(Jr):Jr.ab(cr):Wr>Zn+10?0<=Ht?_t.ab(Bn):Bn.ab(_t):0<=Ht?cr.ab(Bn):Bn.ab(cr)}else cr=0<=Ht?Jr.ab(_t):_t.ab(Jr);rr!==Ks&&(Bn=he.computeAngle(Bt,rr,cr),Bt.Kb=Bn),Bn=Jr.x+(_t.x-Jr.x)*Vt-y.x,Jr=Jr.y+(_t.y-Jr.y)*Vt-y.y}Bt.measure(1/0,1/0,0,0),_t=Bt.measuredBounds,Zn=Bt.naturalBounds;var $i=0;Bt instanceof hi&&($i=Bt.strokeWidth),Wr=Zn.width+$i;var vo=Zn.height+$i;rt.reset(),rt.translate(-_t.x,-_t.y),rt.scale(Bt.scale,Bt.scale),rt.rotate(rr===Ks?Bt.angle:cr,Wr/2,vo/2),rr!==Cg&&rr!==Tg||rt.rotate(90,Wr/2,vo/2),rr!==Eg&&rr!==Mg||rt.rotate(-90,Wr/2,vo/2),rr===r0&&(45<cr&&135>cr||225<cr&&315>cr)&&rt.rotate(-cr,Wr/2,vo/2),Zn=new Tn(0,0,Wr,vo),ut.xi(Zn,hn),rt.Ga(ut),hn=-ut.x+$i/2*Bt.scale,Bt=-ut.y+$i/2*Bt.scale,Ot.assign(fr),$i=isNaN(fr.x);var Ja=isNaN(fr.y);if($i||Ja){Wr=Wr/2+3,vo=vo/2+3;var ns=45<=cr&&135>=cr,Fs=225<=cr&&315>=cr;rr===Ks&&(ns||Fs)?(Ot.x=Ja?Wr:fr.y,Ot.y=$i?vo:fr.x,ns?0<=Ht||isNaN(Ht)&&.5>Vt||!$i||(Ot.y=-vo):Fs&&((0<=Ht||isNaN(Ht)&&.5>Vt)&&$i&&(Ot.y=-vo),Ja&&(Ot.x=-Wr))):($i&&(Ot.x=0<=Ht||isNaN(Ht)&&.5>Vt?Wr:-Wr),Ja&&(Ot.y=-vo),Ot.rotate(cr))}else Ot.rotate(cr);Bn+=Ot.x,Jr+=Ot.y,Zn.set(_t),Zn.h(Bn+hn,Jr+Bt,_t.width,_t.height),Qe.push(Zn),x.ed(Zn)}}if(ne!==null)for(b=ne.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),qa(E,x.width||0,x.height||0),pi.free(rt),Lt.free(ut),Lt.free(Ot)}}}},Mm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Gi||a instanceof Vn){var b=a,E=null;a instanceof Gi&&(E=a,b=E.adornedPart);var te=a instanceof Gi?null:b.path,ne=a.j;if(ne.length!==0){var se=0;if(te!==null&&se<ne.length){var he=ne[se];se++,te.arrange(he.x-a.jg.x,he.y-a.jg.y,he.width,he.height)}for(he=0;he<x;he++){var ge=y[he];if(ge!==te&&se<ne.length){var ye=ne[se];se++,ge.arrange(ye.x-a.jg.x,ye.y-a.jg.y,ye.width,ye.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof Vn)for(te=a.labelNodes;te.next();){var De=a;ne=te.value,se=ne.segmentIndex,he=ne.segmentFraction;var $e=ne.alignmentFocus;if(ge=ne.segmentOrientation,ye=ne.segmentOffset,isNaN(se)){var Qe=De.ua,rt=xn();Qe.Qu(he,rt);var ut=Lt.allocAt(rt[0],rt[1]);ut.add(De.i(0)),Qe.type===Yn.j||(Qe=Qe.figures.first()),ut.offset(-Qe.startX,-Qe.startY),Qe=rt[2],ge!==Ks&&(De=De.computeAngle(ne,ge,Qe),ne.angle=De),De=ut.x;var Ot=ut.y;Lt.free(ut),In(rt)}else if(se<-x||se>=x)rt=Lt.alloc(),Qe=De,Ot=rt,Qe.vg(),Qe.computeMidPoint(Ot),Qe=De.midAngle,ge!==Ks&&(De=De.computeAngle(ne,ge,Qe),ne.angle=De),De=rt.x,Ot=rt.y,Lt.free(rt);else{if(ut=0,0<=se?(rt=y.s[se],Ot=se<x-1?y.s[se+1]:rt):(ut=x+se,rt=y.s[ut],Ot=0<ut?y.s[ut-1]:rt),rt.Xa(Ot)){0<=se?(Qe=0<se?y.s[se-1]:rt,ut=se<x-2?y.s[se+2]:Ot):(Qe=ut<x-1?y.s[ut+1]:rt,ut=1<ut?y.s[ut-2]:Ot);var Tt=Qe.Bf(rt),Bt=Ot.Bf(ut);Qe=Tt>Bt+10?0<=se?Qe.ab(rt):rt.ab(Qe):Bt>Tt+10?0<=se?Ot.ab(ut):ut.ab(Ot):0<=se?Qe.ab(ut):ut.ab(Qe)}else Qe=0<=se?rt.ab(Ot):Ot.ab(rt);ge!==Ks&&(De=De.computeAngle(ne,ge,Qe),ne.angle=De),De=rt.x+(Ot.x-rt.x)*he,Ot=rt.y+(Ot.y-rt.y)*he}if($e.ys())ne.location=new Lt(De,Ot);else{$e.Mc()&&($e=Di),rt=pi.alloc(),rt.reset(),rt.scale(ne.scale,ne.scale),rt.rotate(ne.angle,0,0);var _t=ne.naturalBounds;ut=Tn.allocAt(0,0,_t.width,_t.height),Tt=Lt.alloc(),Tt.xi(ut,$e),rt.Ga(Tt),$e=-Tt.x,Bt=-Tt.y;var Ht=_t.width,Vt=_t.height;_t=Lt.alloc(),_t.assign(ye);var hn=isNaN(ye.x),rr=isNaN(ye.y);if(hn||rr){Ht=Ht/2+3,Vt=Vt/2+3;var fr=45<=Qe&&135>=Qe,cr=225<=Qe&&315>=Qe;ge===Ks&&(fr||cr)?(_t.x=rr?Ht:ye.y,_t.y=hn?Vt:ye.x,fr?0<=se||isNaN(se)&&.5>he||!hn||(_t.y=-Vt):cr&&((0<=se||isNaN(se)&&.5>he)&&hn&&(_t.y=-Vt),rr&&(_t.x=-Ht))):(hn&&(_t.x=0<=se||isNaN(se)&&.5>he?Ht:-Ht),rr&&(_t.y=-Vt),_t.rotate(Qe))}else _t.rotate(Qe);De+=_t.x,Ot+=_t.y,rt.pp(ut),$e+=ut.x,Bt+=ut.y,se=Lt.allocAt(De+$e,Ot+Bt),ne.move(se),Lt.free(se),Lt.free(_t),Lt.free(Tt),Tn.free(ut),pi.free(rt)}}E!==null?E.Ul(!1):b.Ul(!1),b=j1(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Lt.free(b)}};function i1(a,y,x,b){if(Vl(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof Gi&&a.type===Kn.Link&&a.adornedObject instanceof hi&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof Vn&&a.ua!==null?(a=a.geometry.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):a instanceof Gi&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):b.Ge(-(E/2),-(E/2),y+E,x+E),E=b.desiredSize,E.w()||b.ua===null?b.dc.h(0,0,E.width,E.height):b.dc.assign(b.ua.bounds),Oa(b,!1)}}function dg(){this.xa="Base"}Jt(dg,Ha),dg.prototype.measure=function(a,y,x,b,E,te,ne){var se=a.Pb();a.graduatedBounds=[];var he=se.margin,ge=he.right+he.left,ye=he.top+he.bottom;se.measure(y,x,te,ne);var De=se.measuredBounds,$e=new Tn(-he.left,-he.top,Math.max(De.width+ge,0),Math.max(De.height+ye,0));a.graduatedBounds.push($e),E.assign($e);for(var Qe=se.geometry,rt=se.strokeWidth,ut=Qe.flattenedSegments,Ot=Qe.flattenedLengths,Tt=Qe.flattenedTotalLength,Bt=ut.length,_t=0,Ht=0,Vt=xn(),hn=0;hn<Bt;hn++){var rr=ut[hn],fr=[];Ht=_t=0;for(var cr=rr.length,Zn=0;Zn<cr;Zn+=2){var Bn=rr[Zn],Jr=rr[Zn+1];if(Zn!==0){var Wr=180*Math.atan2(Jr-Ht,Bn-_t)/Math.PI;0>Wr&&(Wr+=360),fr.push(Wr)}_t=Bn,Ht=Jr}Vt.push(fr)}if(a.graduatedIntervals===null){for(var $i=[],vo=a.O.s,Ja=vo.length,ns=0;ns<Ja;ns++){var Fs=vo[ns],Qa=[];if($i.push(Qa),Fs.visible){var Ih=Fs.interval;if(!(0>Ih)){for(var xa=0;xa<Ja;xa++)if(xa!==ns){var qu=vo[xa];if(qu.visible&&Fs.constructor===qu.constructor){var Bs=qu.interval;Bs>Ih&&Qa.push(Bs)}}}}}a.graduatedIntervals=$i}var Dh=a.graduatedIntervals,Ql=a.O.s,bu=Ql.length,kl=0,yl=0,fd=Tt;a.graduatedMarks=[];for(var ec,Dp=0;Dp<bu;Dp++){var Nl=Ql[Dp];if(ec=[],Nl.visible&&Nl!==se){var Rs=Math.abs(Nl.interval),Jg=a.graduatedTickUnit;if(!(2>Jg*Rs*Tt/a.graduatedRange&&Nl.graduatedSkip===null)){var Df=Ot[0][0],dc=0,Sl=0;yl=Tt*Nl.graduatedStart-1e-4,fd=Tt*Nl.graduatedEnd+1e-4;var Qd=Jg*Rs,Ol=a.graduatedTickBase;if(Ol<a.graduatedMin){var pd=(a.graduatedMin-Ol)/Qd;pd=pd%1===0?pd:Math.floor(pd+1),Ol+=pd*Qd}else Ol>a.graduatedMin+Qd&&(Ol-=Math.floor((Ol-a.graduatedMin)/Qd)*Qd);for(var $0=Dh[Dp],Qg=Ol,Hy=1e-6*a.graduatedMax,Rc=1;Ol<=a.graduatedMax+Hy;Rc++){e:{for(var oh=$0.length,Ff=0;Ff<oh;Ff++){var gd=(Ol-a.graduatedTickBase)%($0[Ff]*a.graduatedTickUnit),Fp=1e-6*a.graduatedTickUnit;if(gd<Fp&&gd>-Fp){var md=!1;break e}}md=!0}if(md&&(Ol>a.graduatedMax&&(Ol=a.graduatedMax),Nl.graduatedSkip===null||Nl instanceof So&&!Nl.graduatedSkip(Ol,Nl)||Nl instanceof hi&&!Nl.graduatedSkip(Ol,Nl))&&(kl=(Ol-a.graduatedMin)*Tt/a.graduatedRange,kl>Tt&&(kl=Tt),yl<=kl&&kl<=fd)){for(var _c=Vt[dc][Sl],Fh=Ot[dc][Sl];dc<Ot.length;){for(;kl>Df&&Sl<Ot[dc].length-1;)Sl++,_c=Vt[dc][Sl],Fh=Ot[dc][Sl],Df+=Fh;if(kl<=Df)break;dc++,Sl=0,_c=Vt[dc][Sl],Fh=Ot[dc][Sl],Df+=Fh}var xl=ut[dc],fc=xl[2*Sl],K0=xl[2*Sl+1],ah=(kl-(Df-Fh))/Fh,Bp=new Lt(fc+(xl[2*Sl+2]-fc)*ah+rt/2-Qe.bounds.x,K0+(xl[2*Sl+3]-K0)*ah+rt/2-Qe.bounds.y);Bp.scale(se.scale,se.scale);e:{var tc=_c,qd=Vt[dc];if(!(.5005>ah&&.4995<ah)){var pc=tc;if(.5>ah?0<Sl?pc=qd[Sl-1]:Qt.$(xl[0],xl[xl.length-2])&&Qt.$(xl[1],xl[xl.length-1])&&(pc=qd[qd.length-1]):.5<ah&&(Sl+1<qd.length?pc=qd[Sl+1]:Qt.$(xl[0],xl[xl.length-2])&&Qt.$(xl[1],xl[xl.length-1])&&(pc=qd[0])),tc!==pc){var Bf=Math.abs(tc-pc);if(180<Bf&&(tc<pc?tc+=360:pc+=360,Bf=Math.abs(tc-pc)),5e-4>ah||.9995<ah){_c=(tc+pc)/2%360;break e}if(10>Bf){var Rp=1-Math.abs(.5-ah);_c=(tc*Rp+pc*(1-Rp))%360;break e}}}_c=tc}if(Nl instanceof So){var Fu="";Nl.graduatedFunction!==null?(Fu=Nl.graduatedFunction(Ol,Nl),Fu=Fu!=null?Fu.toString():""):Fu=(+Ol.toFixed(2)).toString(),Fu!==""&&ec.push({$l:Bp,angle:_c,text:Fu})}else ec.push({$l:Bp,angle:_c})}Ol=Qg+Rc*Qd}}}a.graduatedMarks.push(ec)}In(Vt);var ds=a.graduatedMarks;if(ds!==null)for(var qg=b.length,Js=0;Js<qg;Js++){var wa=b[Js],Qs=ds[Js];if(wa.visible&&wa!==se&&Qs.length!==0){if(wa instanceof hi){var sh=a,Bh=E,ef=wa.alignmentFocus;ef.Mc()&&(ef=bl);var Gy=wa.angle;wa.Kb=0,wa.measure(1/0,1/0,0,0),wa.Kb=Gy;var Z0=wa.measuredBounds,_p=Z0.width,tf=Z0.height,Rf=Tn.allocAt(0,0,_p,tf),wl=Lt.alloc();wl.xi(Rf,ef),Tn.free(Rf);for(var lh=-wl.x,nc=-wl.y,fu=new Tn,vd=Qs.length,zp=0;zp<vd;zp++)for(var yd=Qs[zp],V0=yd.$l.x,Hp=yd.$l.y,aa=yd.angle,Bu=0;4>Bu;Bu++){switch(Bu){case 0:wl.h(lh,nc);break;case 1:wl.h(lh+_p,nc);break;case 2:wl.h(lh,nc+tf);break;case 3:wl.h(lh+_p,nc+tf)}wl.rotate(aa+wa.angle),wl.offset(V0,Hp),zp===0&&Bu===0?fu.h(wl.x,wl.y,0,0):fu.Ye(wl),wl.offset(-V0,-Hp),wl.rotate(-aa-wa.angle)}Lt.free(wl),sh.graduatedBounds!==null&&sh.graduatedBounds.push(fu),Qi(Bh,fu.x,fu.y,fu.width,fu.height)}else if(wa instanceof So){var Pu=a,X0=E;Pu.temporaryTextBlock===null&&(Pu.temporaryTextBlock=new So);var Al=Pu.temporaryTextBlock;S1(Al,wa);var Rh=wa.alignmentFocus;Rh.Mc()&&(Rh=bl);for(var Cu=wa.segmentOrientation,Gp=wa.segmentOffset,Sd=new Tn,em=0,Wp=0,gc=0,nf=0,xd=0,Up=Qs.length,_h=0;_h<Up;_h++){var zc=Qs[_h];em=zc.$l.x,Wp=zc.$l.y,gc=zc.angle,xd=nf=wa.angle,Cu!==Ks&&(xd=Cu===Pg||Cu===n0?gc+wa.angle:gc,nf=Vn.computeAngle(Cu,xd)),Al.Kb=nf,Al.text=zc.text||"",Al.measure(1/0,1/0,0,0);var zh=Al.measuredBounds,uh=Al.naturalBounds,Hh=uh.width,rf=uh.height,rc=pi.alloc();rc.reset(),rc.translate(-zh.x,-zh.y),rc.scale(Al.scale,Al.scale),rc.rotate(xd,Hh/2,rf/2),Cu!==Cg&&Cu!==Tg||rc.rotate(90,Hh/2,rf/2),Cu!==Eg&&Cu!==Mg||rc.rotate(-90,Hh/2,rf/2),Cu===r0&&(45<gc&&135>gc||225<gc&&315>gc)&&rc.rotate(-gc,Hh/2,rf/2);var _f=Tn.allocAt(0,0,Hh,rf),Gh=Lt.alloc();Gh.xi(_f,Rh),rc.Ga(Gh);var zf=-Gh.x,Wy=-Gh.y,ch=Lt.alloc();ch.assign(Gp),isNaN(ch.x)&&(ch.x=Hh/2+3),isNaN(ch.y)&&(ch.y=-(rf/2+3)),ch.rotate(gc),em+=ch.x+zf,Wp+=ch.y+Wy;var of=new Tn(em,Wp,zh.width,zh.height),tm=new Tn(zh.x,zh.y,zh.width,zh.height),Uy=new Tn(uh.x,uh.y,uh.width,uh.height);zc.Sz=nf,zc.lineCount=Al.lineCount,zc.lines=[Al.Cb,Al.Ih,Al.df,Al.Le,Al.Qc,Al.Qb,Al.ze],zc.actualBounds=of,zc.measuredBounds=tm,zc.naturalBounds=Uy,_h===0?Sd.assign(of):Sd.ed(of),Lt.free(ch),Lt.free(Gh),Tn.free(_f),pi.free(rc)}Pu.graduatedBounds!==null&&Pu.graduatedBounds.push(Sd),Qi(X0,Sd.x,Sd.y,Sd.width,Sd.height)}Oa(wa,!1)}}},dg.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),E=a.graduatedMarks;if(E!==null){var te=a.graduatedBounds,ne=0,se=te[ne];ne++,b!==null&&b.arrange(se.x-x.x,se.y-x.y,se.width,se.height);for(var he=y.length,ge=0;ge<he;ge++){var ye=y[ge];se=E[ge],ye.visible&&ye!==b&&se.length!==0&&(se=te[ne],ne++,ye.arrange(se.x-x.x,se.y-x.y,se.width,se.height))}a.graduatedBounds=null}}},dg.prototype.gc=function(a,y,x){var b=x.$i;x.$i=!0;var E=a.naturalBounds,te=E.width,ne=E.height;E=y instanceof Tl,y.save(),y.beginPath(),y.rect(-1,-1,te+1,ne+1),y.clip(),y.Se(),te=a.Pb(),te.gc(y,x),ne=a.Df()*x.scale,0>=ne&&(ne=1);for(var se=te.actualBounds,he=a.O.s,ge=a.graduatedMarks,ye=he.length,De=0;De<ye;De++){var $e=he[De],Qe=ge[De],rt=Qe.length;if($e.visible&&$e!==te&&Qe.length!==0){if($e instanceof hi){if(!(2>a.graduatedTickUnit*$e.interval*te.geometry.flattenedTotalLength/a.graduatedRange*ne&&$e.graduatedSkip===null)){var ut=$e.measuredBounds,Ot=$e.strokeWidth*$e.scale,Tt=$e.alignmentFocus;Tt.Mc()&&(Tt=bl);for(var Bt=0;Bt<rt;Bt++){var _t=Qe[Bt].$l,Ht=Qe[Bt].angle,Vt=Tt,hn=$e.Ab;hn.reset(),hn.translate(_t.x+se.x,_t.y+se.y),hn.rotate(Ht+$e.angle,0,0),hn.translate(-ut.width*Vt.x+Vt.offsetX+Ot/2,-ut.height*Vt.y+Vt.offsetY+Ot/2),hn.scale($e.scale,$e.scale),vu($e,!1),$e.wh.set($e.Ab),$e.Kk=$e.scale,au($e,!1),$e.gc(y,x),E&&(a.svg.appendChild($e.svg),$e.svg=null),$e.Ab.reset()}}}else if($e instanceof So)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new So),ut=a.temporaryTextBlock,S1(ut,$e),Ot=0;Ot<rt;Ot++)Tt=Qe[Ot],Tt.actualBounds&&Tt.measuredBounds&&Tt.naturalBounds&&(ut.ec=Tt.text||"",ut.Kb=Tt.Sz||0,ut.Gc=Tt.lineCount||0,Bt=Tt.lines,Bt!==void 0&&(ut.Cb=Bt[0],ut.Ih=Bt[1],ut.df=Bt[2],ut.Le=Bt[3],ut.Qc=Bt[4],ut.Qb=Bt[5],ut.ze=Bt[6]),Tt.naturalBounds&&(ut.dc=Tt.naturalBounds),Tt.actualBounds&&(Bt=Tt.actualBounds,ut.arrange(Bt.x,Bt.y,Bt.width,Bt.height)),Bt=Tt.actualBounds,ut.arrange(Bt.x,Bt.y,Bt.width,Bt.height),_t=Tt.measuredBounds,Tt=Tt.naturalBounds,Ht=ut.Ab,Ht.reset(),Ht.translate(Bt.x+se.x,Bt.y+se.y),Ht.translate(-_t.x,-_t.y),ut.no(Ht,Tt.x,Tt.y,Tt.width,Tt.height),vu(ut,!1),ut.wh.set(ut.Ab),ut.Kk=ut.scale,au(ut,!1),ut.Ng=$e.part,ut.Me=$e.panel,ut.gc(y,x),ut.Me=null,ut.Ng=null,E&&(a.svg.appendChild(ut.svg),ut.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function Kn(a,y){if(Yt.call(this),this.na=null,a===void 0)this.na=Kn.Position;else if(typeof a=="string"){var x=Nu.I(a);x!==null&&(this.na=x)}else a instanceof Ha?this.na=a:a&&(this.na=Kn.Position,y=a);this.na===null&&Zt("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Kn.Grid?1048576:0),this.O=new An,this.yb=Cs,this.Tm=qi,this.Uf=ri,this.$g=null,this.$e="",this.jg=new Tn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=yr,this.jn=ea,this.kn=Pi,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Jt(Kn,Yt),Kn.prototype.cloneProtected=function(a){Yt.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},Kn.prototype.Af=function(a){Yt.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},Kn.prototype.copy=function(){var a=Yt.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].copy();E.wi(a),E.Ng=null;var te=a.O,ne=te.count;if(te.Gb(ne,E),te=a.part,te!==null){te.Rh=null,E.portId!==null&&te instanceof sr&&(te.Te=!0);var se=a.diagram;se!==null&&se.undoManager.isUndoingRedoing||te.cb(sa,"elements",a,null,E,null,ne)}}return a}return null},it=Kn.prototype,it.toString=function(){return"Panel("+this.type.name+")#"+Mi(this)},it.Pn=function(a){Yt.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},it.hh=function(a,y){if(this.na===Kn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Kn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Kn.Table)if(a.yc(),a instanceof Tl){var x=a.yd;a.yd=pm(a,"gojs-ts"),gv(this,a),a.nh.pop(),a.yd=x}else gv(this,a);(x=this.isClipping&&this.na===Kn.Spot)&&a.save();for(var b=this.Pb(),E=this.O.s,te=E.length,ne=0;ne<te;ne++){var se=E[ne];x&&se===b&&(a.clipInsteadOfFill=!0),se.gc(a,y),x&&se===b&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function gv(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&Lm(a,y,!0,x,!0),b!==null&&Lm(a,y,!1,b,!0),x!==null&&o1(a,y,!0,x),b!==null&&o1(a,y,!1,b),x!==null&&Lm(a,y,!0,x,!1),b!==null&&Lm(a,y,!1,b,!1)}function o1(a,y,x,b){for(var E=b.length,te=a.actualBounds,ne=a.naturalBounds,se=!0,he=0;he<E;he++){var ge=b[he];if(ge!==void 0&&ge.actual!==0)if(se)se=!1;else{if(x){if(ge.position>ne.height)continue}else if(ge.position>ne.width)continue;var ye=ge.separatorStrokeWidth;isNaN(ye)&&(ye=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var De=ge.separatorStroke;if(De===null&&(De=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ye!==0&&De!==null){ia(a,y,De,!1,!1,ne,te),De=!1;var $e=ge.separatorDashArray;$e===null&&($e=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),$e!==null&&(De=!0,y.js($e,0)),y.beginPath(),$e=ge.position+ye,x?$e>ne.height&&(ye-=$e-ne.height):$e>ne.width&&(ye-=$e-ne.width),ge=ge.position+ye/2,y.lineWidth=ye,ye=a.yb,x?(ge+=ye.top,$e=ne.width-ye.right,y.moveTo(ye.left,ge),y.lineTo($e,ge)):(ge+=ye.left,$e=ne.height-ye.bottom,y.moveTo(ge,ye.top),y.lineTo(ge,$e)),y.stroke(),y.Se(),De&&y.fs()}}}}function Lm(a,y,x,b,E){for(var te=b.length,ne=a.actualBounds,se=a.naturalBounds,he=a1(a,!0),ge=a1(a,!1),ye=0;ye<te;ye++){var De=b[ye];if(De!==void 0&&De.background!==null&&De.coversSeparators!==E&&De.actual!==0){var $e=x?ne.height:ne.width;if(!(De.position>$e)){var Qe=De.Wc(),rt=De.separatorStrokeWidth;isNaN(rt)&&(rt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ut=De.separatorStroke;ut===null&&(ut=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(ut===null||De.index===(x?he:ge))&&(rt=0),Qe-=rt,rt=De.position+rt,Qe+=De.actual,rt+Qe>$e&&(Qe=$e-rt),0>=Qe||($e=a.yb,ia(a,y,De.background,!0,!1,se,ne),x?y.fillRect($e.left,rt+$e.top,ne.width-($e.left+$e.right),Qe):y.fillRect(rt+$e.left,$e.top,Qe,ne.height-($e.top+$e.bottom)))}}}}function a1(a,y){for(var x=y?a.rowCount:a.columnCount,b=0;b<x;b++){var E=y?a.rowDefs[b]:a.colDefs[b];if(E!==void 0)return E.index}return 0}function mv(a){return a==="LineV"||a==="BarV"}it.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},it.kk=function(a,y,x){if(!Yt.prototype.kk.call(this,a,y,x))return!1;if(this.type===Kn.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,gv(this,a),a.yd=null;else if(this.na===Kn.Grid||this.na===Kn.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var b=x.length,E=0;E<b;E++)x[E].gc(a,y);return!0},it.nk=function(){return!0},it.$o=function(a,y,x,b){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var E=0,te=0,ne=0;ne<y.length;ne++)if(y[ne].Ed()){var se=y[ne].actualBounds;E=ne===0?se.x:Math.min(se.x,E),te=ne===0?se.y:Math.min(se.y,te)}b.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-E)+","+(a.y-x.y-te)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else Yt.prototype.$o.call(this,a,y,x,b)},it.Sj=function(a,y,x,b,E){var te=this.se(),ne=this.transform,se=1/(ne.m11*ne.m22-ne.m12*ne.m21),he=ne.m22*se,ge=-ne.m12*se,ye=-ne.m21*se,De=ne.m11*se,$e=se*(ne.m21*ne.dy-ne.m22*ne.dx),Qe=se*(ne.m12*ne.dx-ne.m11*ne.dy);if(this.areaBackground!==null)return ne=this.actualBounds,Qt.Ff(ne.left,ne.top,ne.right,ne.bottom,a,y,x,b,E);if(this.background!==null)return te=a*he+y*ye+$e,se=a*ge+y*De+Qe,a=x*he+b*ye+$e,he=x*ge+b*De+Qe,E.h(0,0),x=this.naturalBounds,te=Qt.Ff(0,0,x.width,x.height,te,se,a,he,E),E.transform(ne),te;te||(he=1,ye=ge=0,De=1,Qe=$e=0),se=a*he+y*ye+$e,a=a*ge+y*De+Qe,he=x*he+b*ye+$e,x=x*ge+b*De+Qe,E.h(he,x),b=(he-se)*(he-se)+(x-a)*(x-a),ge=!1,De=this.O.s,Qe=De.length,ye=Lt.alloc(),$e=null,y=1/0;var rt=null,ut=this.isClipping&&this.na===Kn.Spot;ut&&(rt=Lt.alloc(),$e=this.Pb(),(ge=$e.Sj(se,a,he,x,rt))&&(y=(se-rt.x)*(se-rt.x)+(a-rt.y)*(a-rt.y)));for(var Ot=0;Ot<Qe;Ot++){var Tt=De[Ot];Tt.visible&&Tt!==$e&&Tt.Sj(se,a,he,x,ye)&&(ge=!0,Tt=(se-ye.x)*(se-ye.x)+(a-ye.y)*(a-ye.y),Tt<b&&(b=Tt,E.set(ye)))}return ut&&(y>b&&E.set(rt),Lt.free(rt)),Lt.free(ye),te&&E.transform(ne),ge},it.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();Yt.prototype.Gj.call(this)},it.v=function(a){if(!Vl(this)){Yt.prototype.v.call(this,a),a=null,(this.na===Kn.Auto||this.na===Kn.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if((E===a||E.isPanelMain)&&E.v(!0),!E.desiredSize.w()){var te=al(E,!1);(E instanceof $s||E instanceof Kn||E instanceof So||te!==zn)&&E.v(!0)}}}},it.Uj=function(){if(!Vl(this)){Oa(this,!0),Mc(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},it.Uk=function(){if(!(this.l&2048)){vu(this,!0),au(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},it.Wu=function(){au(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},it.Wl=function(a,y,x,b){var E=this.jg;E.h(0,0,0,0);var te=this.desiredSize,ne=this.minSize;x===void 0&&(x=ne.width,b=ne.height),x=Math.max(x,ne.width),b=Math.max(b,ne.height);var se=this.maxSize;isNaN(te.width)||(a=Math.min(te.width,se.width)),isNaN(te.height)||(y=Math.min(te.height,se.height)),a=Math.max(x,a),y=Math.max(b,y);var he=this.yb;a=Math.max(a-he.left-he.right,0),y=Math.max(y-he.top-he.bottom,0);var ge=this.O.s;ge.length!==0&&this.na.measure(this,a,y,ge,E,x,b),a=E.width+he.left+he.right,he=E.height+he.top+he.bottom,isFinite(te.width)&&(a=te.width),isFinite(te.height)&&(he=te.height),a=Math.min(se.width,a),he=Math.min(se.height,he),a=Math.max(ne.width,a),he=Math.max(ne.height,he),a=Math.max(x,a),he=Math.max(b,he),qa(E,a,he),qa(this.naturalBounds,a,he),this.Ge(0,0,a,he)},it.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 nh(a){return a.part!==null?a.part.locationObject:null}it.eh=function(a,y,x,b){var E=this.O.s;if(this.actualBounds.h(a,y,x,b),E.length!==0){if(!this.desiredSize.w()){a=al(this,!0);var te=this.measuredBounds;y=te.width,te=te.height;var ne=this.Kg,se=ne.left+ne.right;switch(ne=ne.top+ne.bottom,y===x&&te===b&&(a=zn),a){case zn:(y>x||te>b)&&(this.v(),this.measure(y>x?x:y,te>b?b:te,0,0));break;case Un:this.v(!0),this.measure(x+se,b+ne,0,0);break;case Pr:this.v(!0),this.measure(x+se,te+ne,0,0);break;case Dr:this.v(!0),this.measure(y+se,b+ne,0,0)}}this.na.arrange(this,E,this.jg)}},it.gh=function(a){var y=this.naturalBounds,x=nh(this);if(Po(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=Lt.allocAt(0,0);b--;){var te=y[b];if((te.visible||te===x)&&(ii(E.set(a),te.transform),te.ca(E)))return Lt.free(E),!0}return Lt.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},it.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].ks(a);if(E!==null)return E}return null},it.qm=function(a,y){if(y(this,a),a instanceof Kn){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function Ud(a,y){s1(a,a,y)}function s1(a,y,x){x(y),y=y.O.s;for(var b=y.length,E=0;E<b;E++){var te=y[E];te instanceof Kn&&s1(a,te,x)}}function yx(a,y){l1(a,a,y)}function l1(a,y,x){if(x(y),y instanceof Kn){y=y.O.s;for(var b=y.length,E=0;E<b;E++)l1(a,y[E],x)}}it.Nl=function(a){return u1(this,this,a)};function u1(a,y,x){if(x(y))return y;if(y instanceof Kn){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var te=u1(a,y[E],x);if(te!==null)return te}}return null}it.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=fg(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof Kn){var te=E.fb(a);if(te!==null)return te}if(E.name===a)return E}return null};function c1(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof Kn?x=Math.max(x,c1(E)):E instanceof hi&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}it.se=function(){return!(this.type===Kn.TableRow||this.type===Kn.TableColumn)};function Ch(a){return a.type===Kn.TableRow||a.type===Kn.TableColumn}it.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Ws(this)))return null;var b=this.naturalBounds,E=1/this.Df(),te=this.se(),ne=te?a:ii(Lt.allocAt(a.x,a.y),this.transform),se=this.diagram,he=10,ge=5;if(se!==null&&(he=se.Ql("extraTouchArea"),ge=he/2),Po(-(ge*E),-(ge*E),b.width+he*E,b.height+he*E,ne.x,ne.y)){if(!this.isAtomic){E=this.O.s;var ye=E.length;if(se=Lt.alloc(),ge=(he=this.isClipping&&this.na===Kn.Spot)?this.Pb():null,he&&(ge.se()?ii(se.set(a),ge.transform):se.set(a),!ge.ca(se)))return Lt.free(se),te||Lt.free(ne),null;for(var De=nh(this);ye--;){var $e=E[ye];if(($e.visible||$e===De)&&($e.se()?ii(se.set(a),$e.transform):se.set(a),!he||$e!==ge)){var Qe=null;if($e instanceof Kn?Qe=$e.ic(se,y,x):$e.pickable===!0&&$e.ca(se)&&(Qe=$e),Qe!==null&&(y!==null&&(Qe=y(Qe)),Qe!==null&&(x===null||x(Qe))))return Lt.free(se),te||Lt.free(ne),Qe}}Lt.free(se)}return this.background===null&&this.areaBackground===null?(te||Lt.free(ne),null):(a=Po(0,0,b.width,b.height,ne.x,ne.y)?this:null,te||Lt.free(ne),a)}return te||Lt.free(ne),null},it.ji=function(a,y,x,b){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var E=this.naturalBounds,te=this.se(),ne=te?a:ii(Lt.allocAt(a.x,a.y),this.transform);if(E=Po(0,0,E.width,E.height,ne.x,ne.y),Ch(this)||E){if(!this.isAtomic){for(var se=this.O.s,he=se.length,ge=Lt.alloc(),ye=nh(this);he--;){var De=se[he];if(De.visible||De===ye){De.se()?ii(ge.set(a),De.transform):ge.set(a);var $e=De;De=De instanceof Kn?De:null,(De!==null?De.ji(ge,y,x,b):$e.ca(ge))&&$e.pickable!==!1&&(y!==null&&($e=y($e)),$e===null||x!==null&&!x($e)||b.add($e))}}Lt.free(ge)}return te||Lt.free(ne),E&&(this.background!==null||this.areaBackground!==null)}return te||Lt.free(ne),!1},it.Cf=function(a,y,x,b,E,te){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var ne=te;if(te===void 0&&(ne=pi.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return vv(this,y,x,E),te===void 0&&pi.free(ne),!0;if(this.Yc(a,ne)){if(!this.isAtomic)for(var se=nh(this),he=this.O.s,ge=he.length;ge--;){var ye=he[ge];if(ye.visible||ye===se){var De=ye.actualBounds,$e=this.naturalBounds;De.x>$e.width||De.y>$e.height||0>De.x+De.width||0>De.y+De.height||(De=ye,ye=ye instanceof Kn?ye:null,$e=pi.alloc(),$e.set(ne),(ye!==null?ye.Cf(a,y,x,b,E,$e):Ya(De,a,b,$e))&&(y!==null&&(De=y(De)),De===null||x!==null&&!x(De)||E.add(De)),pi.free($e))}}return te===void 0&&pi.free(ne),b}return te===void 0&&pi.free(ne),!1};function vv(a,y,x,b){for(var E=a.O.s,te=E.length;te--;){var ne=E[te];if(ne.visible){var se=ne.actualBounds,he=a.naturalBounds;se.x>he.width||se.y>he.height||0>se.x+se.width||0>se.y+se.height||(ne instanceof Kn&&vv(ne,y,x,b),y!==null&&(ne=y(ne)),ne===null||x!==null&&!x(ne)||b.add(ne))}}}it.og=function(a,y,x,b,E,te){if(this.pickable===!1)return!1;x===void 0&&(x=null),b===void 0&&(b=null);var ne=this.naturalBounds,se=this.se(),he=se?a:ii(Lt.allocAt(a.x,a.y),this.transform),ge=se?y:ii(Lt.allocAt(y.x,y.y),this.transform),ye=he.Bf(ge),De=0<he.x&&he.x<ne.width&&0<he.y&&he.y<ne.height||Ji(he.x,he.y,0,0,0,ne.height)<=ye||Ji(he.x,he.y,0,ne.height,ne.width,ne.height)<=ye||Ji(he.x,he.y,ne.width,ne.height,ne.width,0)<=ye||Ji(he.x,he.y,ne.width,0,0,0)<=ye;if(ne=he.zd(0,0)<=ye&&he.zd(0,ne.height)<=ye&&he.zd(ne.width,0)<=ye&&he.zd(ne.width,ne.height)<=ye,se||(Lt.free(he),Lt.free(ge)),De){if(!this.isAtomic){he=Lt.alloc(),ge=Lt.alloc(),ye=nh(this);for(var $e=this.O.s,Qe=$e.length;Qe--;){var rt=$e[Qe];if(rt.visible||rt===ye){var ut=rt.actualBounds,Ot=this.naturalBounds;(!se||!(ut.x>Ot.width||ut.y>Ot.height||0>ut.x+ut.width||0>ut.y+ut.height))&&(rt.se()?(ut=rt.transform,ii(he.set(a),ut),ii(ge.set(y),ut)):(he.set(a),ge.set(y)),ut=rt,rt=rt instanceof Kn?rt:null,(rt!==null?rt.og(he,ge,x,b,E,te):ut.tx(he,ge,E))&&(x!==null&&(ut=x(ut)),ut===null||b!==null&&!b(ut)||te.add(ut)))}}Lt.free(he),Lt.free(ge)}return E?De:ne}return!1};function yv(a){var y=null;return a instanceof hi&&(y=a.spot1,y===qi&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Ua),y}function Sv(a){var y=null;return a instanceof hi&&(y=a.spot2,y===qi&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=As),y}it.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},it.M=function(a){return this.O.M(a)},it.Gb=function(a,y){y instanceof Tr&&Zt("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&Zt("Cannot make a Panel contain itself: "+this.toString()),Zt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&Zt("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!==Kn.Grid||y instanceof hi||Zt("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Kn.Graduated||y instanceof hi||y instanceof So||Zt("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 dr),this.ge.add(b,y))}var E=this.O;if(b=-1,x===this){for(var te=-1,ne=this.O.s,se=ne.length,he=0;he<se;he++)if(ne[he]===y){te=he;break}if(te!==-1){if(te===a||te+1>=E.count&&a>=E.count)return;E.mb(te),b=te}else Zt("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>E.count)&&(a=E.count),E.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),Vl(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Kn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Nm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof sr&&(x.Te=!0),x.Te&&x instanceof sr&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(Ma,"elements",this,y,null,b,null),x.cb(sa,"elements",this,null,y,null,a)))};function xv(a,y){a.l=y?a.l|16777216:a.l&-16777217}it.remove=function(a){for(var y=this.O.s,x=y.length,b=-1,E=0;E<x;E++)if(y[E]===a){b=E;break}b!==-1&&this.pc(b,!0)},it.mb=function(a){0<=a&&this.pc(a,!0)},it.pc=function(a,y){var x=this.O,b=x.M(a);if(b.Ng=null,b.wi(null),this.ge!==null){var E=b.data;typeof E=="object"&&this.ge.remove(E)}x.mb(a),Oa(this,!1),this.v(),this.$g===b&&(this.$g=null),this.graduatedIntervals=null;var te=this.part;te!==null&&(te.Rh=null,te.ag=NaN,te.Wb(),te instanceof sr&&(b instanceof Kn?b.qm(b,function(ne,se){Wv(te,se,y)}):Wv(te,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||te.cb(Ma,"elements",this,b,null,a,null))},it.Fb=function(a){0>a&&Fn(a,">= 0",Kn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Aa;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(sa,"rowdefs",this,null,x,null,a)}return y[a]},it.oA=function(a){if(0>a&&Fn(a,">= 0",Kn,"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(Ma,"rowdefs",this,x,null,a,null),this.v()}}};function h1(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Aa?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}it.Eb=function(a){0>a&&Fn(a,">= 0",Kn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Aa;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(sa,"coldefs",this,null,x,null,a)}return y[a]},it.jA=function(a){if(0>a&&Fn(a,">= 0",Kn,"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(Ma,"coldefs",this,x,null,a,null),this.v()}}};function d1(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Aa?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}it.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Om(y,a),this},it.Hy=function(a,y){return(a=this.Fb(a))&&Om(a,new Aa(y)),this},it.By=function(a,y){return(a=this.Eb(a))&&Om(a,new Aa(y)),this},it.nz=function(a){if(0>a||this.type!==Kn.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,b=x.length,E=this.topIndex;E<b;E++){var te=x[E];if(te!==void 0&&(y+=te.total,a<y))break}return E},it.fz=function(a){if(0>a||this.type!==Kn.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,b=x.length,E=this.leftIndex;E<b;E++){var te=x[E];if(te!==void 0&&(y+=te.total,a<y))break}return E},it.Fz=function(a,y){if(y===void 0&&(y=new Lt(NaN,NaN)),this.type!==Kn.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)},it.Gz=function(a){if(this.type!==Kn.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function f1(a){return a=a.allBindings,a!==null&&a._isFrozen}function Su(a){var y=a.allBindings;if(y===null)a.data!==null&&Zt("Template cannot have .data be non-null: "+a),a.allBindings=y=new An;else if(y._isFrozen)return;var x=new An;xv(a,!1),a.qm(a,function(ge,ye){ye.th();var De=ye.localBindings;if(De!==null)for(xf(ye,!1),De=De.iterator;De.next();){var $e=De.value;$e.mode===Dg&&xf(ye,!0);var Qe=$e.sourceName;Qe!==null&&(Qe==="/"&&xv(ge,!0),Qe=MS($e,ge,ye),Qe!==null&&(x.add(Qe),Qe.srcBindings===null&&(Qe.srcBindings=new An),Qe.srcBindings.add($e))),y.add($e)}if(ye instanceof Kn&&ye.type===Kn.Table){if(0<ye.rowCount){for(ge=ye.rowDefs,De=ge.length,$e=0;$e<De;$e++)if(Qe=ge[$e],Qe!==void 0&&Qe.be!==null)for(var rt=Qe.be.iterator;rt.next();){var ut=rt.value;ut.xd=Qe,ut.to=2,ut.wl=Qe.index,y.add(ut)}}if(0<ye.columnCount){for(ye=ye.colDefs,ge=ye.length,De=0;De<ge;De++)if($e=ye[De],$e!==void 0&&$e.be!==null)for(Qe=$e.be.iterator;Qe.next();)rt=Qe.value,rt.xd=$e,rt.to=1,rt.wl=$e.index,y.add(rt)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){xf(E,!0);for(var te=E.srcBindings.iterator;te.next();){var ne=te.value;E.localBindings===null&&(E.localBindings=new An),E.localBindings.add(ne)}}E.srcBindings=null}for(b=y.iterator;b.next();)if(E=b.value,te=E.xd,te!==null){E.xd=null;var se=E.targetProperty,he=se.indexOf(".");0<he&&te instanceof Kn&&(ne=se.substring(0,he),se=se.substr(he+1),he=te.fb(ne),he!==null?(te=he,E.targetProperty=se):ar('Warning: unable to find GraphObject named "'+ne+'" for Binding: '+E.toString())),te instanceof Aa?(ne=Mi(te.panel),E.Ai=ne===void 0?-1:ne,te.panel.bindingId=E.Ai):te instanceof Yt?(ne=Mi(te),E.Ai=ne===void 0?-1:ne,te.bindingId=E.Ai):Zt("Unknown type of binding target: "+te)}y.freeze(),a instanceof Tr&&a.Zc()&&a.Va()}it.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return yx(y,function(x){x instanceof Kn&&(x.allBindings=null,x.ub=null);var b=x.localBindings;b!==null&&(x.localBindings=null,b.each(function(E){x.bind(E.copy())})),b=x.animationTriggers,b!==null&&(x.animationTriggers=null,b.each(function(E){x.Jv(E.value.copy())}))}),a&&Su(y),y},it.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,b=x.sourceProperty;if((a===""||b===""||b===a)&&(b=x.targetProperty,x.converter!==null||b!=="")){b=this.data;var E=x.sourceName;if(E!==null){if(E==="")b=this;else if(E==="/")b=this;else if(E===".")b=this;else if(E==="..")b=this;else if(b=this.fb(E),b===null)continue}else if(x.isToModel)if(b=this.diagram,b!==null)b=b.model.modelData;else continue;var te=this,ne=x.Ai;if(ne!==-1){if(te=this.ks(ne),te===null)continue}else x.xd!==null&&(te=x.xd);if(E==="/"?b=te.part:E==="."?b=te:E===".."&&(b=te.panel),E=x.to,E!==0){if(!(te instanceof Kn))continue;E===1?te=te.Eb(x.wl):E===2&&(te=te.Fb(x.wl))}te!==void 0&&x.Mv(te,b)}}},it.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function Sx(a,y){a=a.O.s;for(var x=a.length,b=y.length,E=0,te=null;E<x&&(te=a[E],!(te instanceof Kn&&te.data!==null));)E++,te=a[E];if(x-E!==b)return!0;if(te===null)return 0<b;for(var ne=0;E<x&&ne<b;){if(te=a[E],!(te instanceof Kn)||te.data!==y[ne])return!0;E++,ne++}return!1}function fg(a){if(a.type===Kn.Spot||a.type===Kn.Auto)return Math.min(a.O.length,1);if(a.type===Kn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof hi&&b.isPanelMain))break}return x}return a.type===Kn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Kn&&Ch(a))?1:0}it.mv=function(){for(var a=fg(this);this.O.length>a;)this.pc(this.O.length-1,!1);p1(this,this.itemArray)};function p1(a,y){var x=fg(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++)km(a,y[b],b,!0)}else{b=x;for(var E=0;E<y.length;E++,b++){var te=y[E],ne=b<a.O.length?a.O.M(b):null;if(ne instanceof Kn){if(ne.data!==te){var se=bv(a,ne.data),he=bv(a,te),ge=he!==se;ge||(se=Pv(a,se),ge=Pv(a,he)!==se),ge?(a.pc(b,!1),km(a,te,E,!1)):ne.data=te}}else km(a,te,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,wv(a,x,0),Vl(a)||a.v(),a.graduatedIntervals=null,a.If()||Nm(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof sr&&(y.Te=!0),y.Te&&y instanceof sr&&(y.wc=null))}}function km(a,y,x,b){if(!(y==null||0>x)){var E=bv(a,y);if(E=Pv(a,E),E!==null){if(Su(E),E=E.copy(),E.l&16777216){var te=a.ih();te!==null&&xv(te,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new dr),a.ge.add(y,E)),te=x+fg(a),a.Gb(te,E),b&&(E.ub=y,wv(a,te,x),E.ub=null),E.data=y}}}function wv(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof Kn){var E=y,te=x;b.type===Kn.TableRow?b.row=E:b.type===Kn.TableColumn&&(b.column=E),b.itemIndex=te}y++,x++}}function bv(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=fa(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;Zt("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Pv(a,y){var x=a.itemTemplateMap,b=null;return x!==null&&(b=x.I(y)),b===null&&(x!==null&&(b=x.I("")),b===null&&(g1||(g1=!0,ar('No item template Panel found for category "'+y+'" on '+a),ar(" Using default item template."),a=new Kn,y=new So,y.bind(new Sa("text","",Nn)),a.add(y),m1=a),b=m1)),b}function Nm(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof Kn){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var te=y[E];x&&te instanceof Kn&&!te.isEnabled||Nm(a,te,x)}}}function cc(a,y){y.name=a,Nu.add(a,y)}jt.Object.defineProperties(Kn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Kn.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&&Fn(a,">= 0",Kn,"padding"),a=new kr(a)):(0>a.left&&Fn(a.left,">= 0",Kn,"padding:value.left"),0>a.right&&Fn(a.right,">= 0",Kn,"padding:value.right"),0>a.top&&Fn(a.top,">= 0",Kn,"padding:value.top"),0>a.bottom&&Fn(a.bottom,">= 0",Kn,"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:Cs},set:function(a){typeof a=="number"&&(a=new kr(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new uu),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 to)&&(a instanceof to&&a.freeze(),this.T===null&&(this.T=new uu),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 uu),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var te=a[E];typeof te=="number"&&0<=te&&isFinite(te)||Zt("defaultRowSeparatorDashArray value "+te+" at index "+E+" must be a positive number or zero."),b+=te}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new uu),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 to)&&(a instanceof to&&a.freeze(),this.T===null&&(this.T=new uu),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 uu),this.T.F=a,this.v(),this.g("defaultColumnSeparatorStrokeWidth",y,a))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(a){var y=this.defaultColumnSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var te=a[E];typeof te=="number"&&0<=te&&isFinite(te)||Zt("defaultColumnSeparatorDashArray value "+te+" at index "+E+" must be a positive number or zero."),b+=te}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new uu),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 uu),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||Zt("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&sc(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()||Zt("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&sc(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 rh),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),ys(this)&&(a=this.part,a!==null&&Eo(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 rh),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),ys(this)&&(a=this.part,a!==null&&Eo(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 rh),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 rh),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 rh,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 rh,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 rh,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 rh,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 uu),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new uu),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:jm},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new uu),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:jm},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new uu),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)&&Zt("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new uu),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)&&Zt("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new uu),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 Tr&&!(this instanceof Gi);Su(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof Vn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Tr&&(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 wf),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&Sx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&uy(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&ly(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||p1(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 dr}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Tr||a.isPanelMain)&&Zt("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(););mi(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&&(mi(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 ei&&(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&&Nm(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))}}}),jt.Object.defineProperties(Kn,{Position:{get:function(){return Nu.I("Position")}},Horizontal:{get:function(){return Nu.I("Horizontal")}},Vertical:{get:function(){return Nu.I("Vertical")}},Spot:{get:function(){return Nu.I("Spot")}},Auto:{get:function(){return Nu.I("Auto")}},Table:{get:function(){return Nu.I("Table")}},Viewbox:{get:function(){return Nu.I("Viewbox")}},TableRow:{get:function(){return Nu.I("TableRow")}},TableColumn:{get:function(){return Nu.I("TableColumn")}},Link:{get:function(){return Nu.I("Link")}},Grid:{get:function(){return Nu.I("Grid")}},Graduated:{get:function(){return Nu.I("Graduated")}}}),Kn.prototype.rebuildItemElements=Kn.prototype.mv,Kn.prototype.findItemPanelForData=Kn.prototype.sx,Kn.prototype.updateTargetBindings=Kn.prototype.La,Kn.prototype.copyTemplate=Kn.prototype.Uy,Kn.prototype.graduatedValueForPoint=Kn.prototype.Gz,Kn.prototype.graduatedPointForValue=Kn.prototype.Fz,Kn.prototype.findColumnForLocalX=Kn.prototype.fz,Kn.prototype.findRowForLocalY=Kn.prototype.nz,Kn.prototype.addColumnDefinition=Kn.prototype.By,Kn.prototype.addRowDefinition=Kn.prototype.Hy,Kn.prototype.addRowColumnDefinition=Kn.prototype.Gy,Kn.prototype.removeColumnDefinition=Kn.prototype.jA,Kn.prototype.getColumnDefinition=Kn.prototype.Eb,Kn.prototype.removeRowDefinition=Kn.prototype.oA,Kn.prototype.getRowDefinition=Kn.prototype.Fb,Kn.prototype.removeAt=Kn.prototype.mb,Kn.prototype.remove=Kn.prototype.remove,Kn.prototype.insertAt=Kn.prototype.Gb,Kn.prototype.elt=Kn.prototype.M,Kn.prototype.add=Kn.prototype.add,Kn.prototype.findObject=Kn.prototype.fb,Kn.prototype.findInVisualTree=Kn.prototype.Nl,Kn.prototype.walkVisualTreeFrom=Kn.prototype.qm,Kn.prototype.findMainElement=Kn.prototype.Pb;var g1=!1,m1=null,Nu=new dr;Kn.className="Panel",Kn.definePanelLayout=cc,cc("Position",new vm),cc("Vertical",new Sm),cc("Auto",new wm),cc("Link",new Mm);function rh(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}rh.prototype.copy=function(){var a=new rh;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},rh.className="GradPanelSettings";function uu(){this.Pc=[],this.Oc=[],this.j=this.ob=jm,this.hb=this.Hb=0,this.Qp=Cs,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}uu.prototype.copy=function(a){for(var y=new uu,x=this.Pc,b=x.length,E=y.Pc,te=0;te<b;te++)if(x[te]!==void 0){var ne=x[te].copy();ne.wi(a),E[te]=ne}for(x=this.Oc,b=x.length,E=y.Oc,te=0;te<b;te++)x[te]!==void 0&&(ne=x[te].copy(),ne.wi(a),E[te]=ne);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},uu.className="TablePanelSettings";function Aa(a){ui(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=qi,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Cv,this.hg=ri,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))}Aa.prototype.copy=function(){var a=new Aa;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=an(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Om(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=an(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}it=Aa.prototype,it.qb=function(a){a.classType===Aa&&(this.sizing=a)},it.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Mi(this)},it.wi=function(a){this.Me=a},it.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)},it.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===Kn.Table)for(var E=b?y.rowDefs.length:y.colDefs.length,te=0;te<E;te++){var ne=b?y.rowDefs[te]:y.colDefs[te];if(ne!==void 0&&ne.oa!==0){x=ne.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)},it.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(zo,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 Am(a){if(a.sizing===Cv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}it.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new Sa(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&f1(y)&&Zt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new An),this.be.add(E),this},jt.Object.defineProperties(Aa.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&&Fn(a,">= 0",Aa,"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&&Fn(a,">= 0",Aa,"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))&&Fn(a,">= 0",Aa,"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&&Fn(a,">= 0",Aa,"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 kr(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&&Pf(a,"RowColumnDefinition.separatorStroke"),a instanceof to&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var te=a[E];typeof te=="number"&&0<=te&&isFinite(te)||Zt("separatorDashArray value "+te+" at index "+E+" must be a positive number or zero."),b+=te}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&&Pf(a,"RowColumnDefinition.background"),a instanceof to&&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}}}),Aa.prototype.computeEffectiveSpacing=Aa.prototype.Wc,Aa.prototype.computeEffectiveSpacingTop=Aa.prototype.Io;var Cv=new en(Aa,"Default",0),pg=new en(Aa,"None",1),jm=new en(Aa,"ProportionalExtra",2);Aa.className="RowColumnDefinition",Aa.Default=Cv,Aa.None=pg,Aa.ProportionalExtra=jm;function hi(a,y){Yt.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)}Jt(hi,Yt),hi.prototype.cloneProtected=function(a){Yt.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=an(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 $d(a){a.Na===null?a.Na=new Mv:a.Na.nc&&(a.Na=a.Na.copy())}it=hi.prototype,it.th=function(){Yt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},it.qb=function(a){a===zn||a===yr||a===Ci||a===ri?this.geometryStretch=a:Yt.prototype.qb.call(this,a)},it.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Mi(this)};function fp(a,y,x,b){var E=x.length;if(!(4>E)){var te=b.measuredBounds,ne=Math.max(1,te.width);te=te.height;for(var se=x[0],he=x[1],ge,ye,De,$e,Qe,rt,ut=0,Ot=xn(),Tt=2;Tt<E;Tt+=2)ge=x[Tt],ye=x[Tt+1],De=ge-se,se=ye-he,De===0&&(De=.001),$e=se/De,Qe=Math.atan2(se,De),rt=Math.sqrt(De*De+se*se),Ot.push([De,Qe,$e,rt]),ut+=rt,se=ge,he=ye;se=x[0],he=x[1],De=b.measuredBounds.width,b instanceof hi&&(De-=b.strokeWidth),1>De&&(De=1),E=x=De,ge=ne/2,ye=ge!==0,Tt=0,rt=Ot[Tt],De=rt[0],Qe=rt[1],$e=rt[2],rt=rt[3];for(var Bt=0;.1<=ut;){if(Bt===0&&(ye?(E=x,E-=ge,ut-=ge,ye=!1):E=x,E===0&&(E=1)),E>ut){In(Ot);return}E>rt?(Bt=E-rt,E=rt):Bt=0;var _t=Math.sqrt(E*E/(1+$e*$e));if(0>De&&(_t=-_t),se+=_t,he+=$e*_t,a.translate(se,he),a.rotate(Qe),a.translate(-(ne/2),-(te/2)),Bt===0&&b.hh(a,y),a.translate(ne/2,te/2),a.rotate(-Qe),a.translate(-se,-he),ut-=E,rt-=E,Bt!==0){if(Tt++,Tt===Ot.length){In(Ot);return}rt=Ot[Tt],De=rt[0],Qe=rt[1],$e=rt[2],rt=rt[3],E=Bt}}In(Ot)}}it.hh=function(a,y){var x=this.xc,b=this.Ui;if(x!==null||b!==null){var E=this.ua;if(E!==null){a.yc();var te=this.actualBounds,ne=this.naturalBounds;b!==null&&ia(this,a,b,!0,!1,ne,te);var se=this.part,he=this.ig;if(x===null||he!==0||se===null||!this.isPanelMain&&se.Pb()!==this||(he=se.type===Kn.Link&&se instanceof Gi&&se.category==="Selection"&&se.adornedObject instanceof hi&&se.adornedPart.Pb()===se.adornedObject?se.adornedObject.strokeWidth:0),he===0&&(x=null),x!==null&&he!==0&&(ia(this,a,x,!1,!1,ne,te),a.lineWidth=he,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),te=!1,se&&y.Gf("drawShadows")&&(te=se.isShadowed),a.Il===!1&&(te=!1),se=!0,x===null||b!==null&&b!=="transparent"||(se=!1),ne=!1,he=this.strokeDashArray,he!==null&&(ne=!0,a.js(he,this.strokeDashOffset)),E.type===Yn.j)a.beginPath(),a.moveTo(E.startX,E.startY),a.lineTo(E.endX,E.endY),x!==null&&a.jk(),a.Se();else if(E.type===Yn.u){var ge=E.startX;he=E.startY;var ye=E.endX,De=E.endY;E=Math.min(ge,ye);var $e=Math.min(he,De);ge=Math.abs(ye-ge),he=Math.abs(De-he),a.beginPath(),a.rect(E,$e,ge,he),b!==null&&a.ng(b),x!==null&&(se&&te&&Lc(a),a.jk(),se&&te&&qc(a)),a.Se()}else if(E.type===Yn.F)ge=E.startX,he=E.startY,ye=E.endX,De=E.endY,E=Math.abs(ye-ge)/2,$e=Math.abs(De-he)/2,ge=Math.min(ge,ye)+E,he=Math.min(he,De)+$e,a.beginPath(),a.moveTo(ge,he-$e),a.bezierCurveTo(ge+Qt.wg*E,he-$e,ge+E,he-Qt.wg*$e,ge+E,he),a.bezierCurveTo(ge+E,he+Qt.wg*$e,ge+Qt.wg*E,he+$e,ge,he+$e),a.bezierCurveTo(ge-Qt.wg*E,he+$e,ge-E,he+Qt.wg*$e,ge-E,he),a.bezierCurveTo(ge-E,he-Qt.wg*$e,ge-Qt.wg*E,he-$e,ge,he-$e),a.closePath(),b!==null&&a.ng(b),x!==null&&(se&&te&&Lc(a),a.jk(),se&&te&&qc(a)),a.Se();else if(E.type===Yn.o)for(E=E.figures,he=E.length,$e=0;$e<he;$e++){ge=E.s[$e],a.beginPath(),a.moveTo(ge.startX,ge.startY),ye=ge.segments.s,De=ye.length;for(var Qe=null,rt=0;rt<De;rt++){var ut=ye[rt];switch(ut.type){case ga:a.moveTo(ut.endX,ut.endY);break;case yo:a.lineTo(ut.endX,ut.endY);break;case as:a.bezierCurveTo(ut.point1X,ut.point1Y,ut.point2X,ut.point2Y,ut.endX,ut.endY);break;case Pl:a.quadraticCurveTo(ut.point1X,ut.point1Y,ut.endX,ut.endY);break;case ca:if(ut.radiusX===ut.radiusY){var Ot=Math.PI/180;a.arc(ut.point1X,ut.point1Y,ut.radiusX,ut.startAngle*Ot,(ut.startAngle+ut.sweepAngle)*Ot,0>ut.sweepAngle,Qe!==null?Qe.endX:ge.startX,Qe!==null?Qe.endY:ge.startY)}else if(Qe=nl(ut,ge),Ot=Qe.length,Ot===0)a.lineTo(ut.centerX,ut.centerY);else for(var Tt=0;Tt<Ot;Tt++){var Bt=Qe[Tt];Tt===0&&a.lineTo(Bt[0],Bt[1]),a.bezierCurveTo(Bt[2],Bt[3],Bt[4],Bt[5],Bt[6],Bt[7])}break;case zl:if(Tt=Ot=0,Qe!==null&&Qe.type===ca){if(Qe=nl(Qe,ge),Bt=Qe.length,Bt===0){a.lineTo(ut.endX,ut.endY);break}Qe=Qe[Bt-1]||null,Qe!==null&&(Ot=Qe[6],Tt=Qe[7])}else Ot=Qe!==null?Qe.endX:ge.startX,Tt=Qe!==null?Qe.endY:ge.startY;if(Qe=zs(ut,ge,Ot,Tt),Ot=Qe.length,Ot===0){a.lineTo(ut.endX,ut.endY);break}for(Tt=0;Tt<Ot;Tt++)Bt=Qe[Tt],a.bezierCurveTo(Bt[2],Bt[3],Bt[4],Bt[5],Bt[6],Bt[7]);break;default:Zt("Segment not of valid type: "+ut.type)}ut.isClosed&&a.closePath(),Qe=ut}ye=ge.isFilled,te?ge.isShadowed?(ye===!0&&b!=="transparent"&&b!==null&&a.ng(b,ge.isEvenOdd),x!==null&&(ye&&se&&Lc(a),a.jk(),ye&&se&&qc(a))):(Lc(a),ye&&b!=="transparent"&&b!==null&&a.ng(b,ge.isEvenOdd),x!==null&&a.jk(),qc(a)):(ye&&b!==null&&a.ng(b,ge.isEvenOdd),x!==null&&a.jk()),a.Se($e)}if(ne&&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),te=this.geometry,a.save(),a.beginPath(),b=xn(),te.type===Yn.j)b.push(te.startX),b.push(te.startY),b.push(te.endX),b.push(te.endY),fp(a,y,b,x);else if(te.type===Yn.o)for(te=te.figures.iterator;te.next();){for(se=te.value,b.length=0,b.push(se.startX),b.push(se.startY),ne=se.startX,E=se.startY,he=ne,$e=E,ge=se.segments.s,ye=ge.length,De=0;De<ye;De++){switch(rt=ge[De],rt.type){case ga:fp(a,y,b,x),b.length=0,b.push(rt.endX),b.push(rt.endY),ne=rt.endX,E=rt.endY,he=ne,$e=E;break;case yo:b.push(rt.endX),b.push(rt.endY),ne=rt.endX,E=rt.endY;break;case as:Qt.Qe(ne,E,rt.point1X,rt.point1Y,rt.point2X,rt.point2Y,rt.endX,rt.endY,.5,b),ne=rt.endX,E=rt.endY;break;case Pl:Qt.ep(ne,E,rt.point1X,rt.point1Y,rt.endX,rt.endY,.5,b),ne=rt.endX,E=rt.endY;break;case ca:if(ut=nl(rt,se),Qe=ut.length,Qe===0){b.push(rt.centerX),b.push(rt.centerY),ne=rt.centerX,E=rt.centerY;break}for(Ot=0;Ot<Qe;Ot++)Tt=ut[Ot],Qt.Qe(ne,E,Tt[2],Tt[3],Tt[4],Tt[5],Tt[6],Tt[7],.5,b),ne=Tt[6],E=Tt[7];break;case zl:if(ut=zs(rt,se,ne,E),Qe=ut.length,Qe===0){b.push(rt.endX),b.push(rt.endY),ne=rt.endX,E=rt.endY;break}for(Ot=0;Ot<Qe;Ot++)Tt=ut[Ot],Qt.Qe(ne,E,Tt[2],Tt[3],Tt[4],Tt[5],Tt[6],Tt[7],.5,b),ne=Tt[6],E=Tt[7];break;default:Zt("Segment not of valid type: "+rt.type)}rt.isClosed&&(b.push(he),b.push($e),fp(a,y,b,x))}fp(a,y,b,x)}else if(te.type===Yn.u)b.push(te.startX),b.push(te.startY),b.push(te.endX),b.push(te.startY),b.push(te.endX),b.push(te.endY),b.push(te.startX),b.push(te.endY),b.push(te.startX),b.push(te.startY),fp(a,y,b,x);else if(te.type===Yn.F){if(E=new _a,E.startX=te.endX,E.startY=(te.startY+te.endY)/2,ne=new zi(ca),ne.startAngle=0,ne.sweepAngle=360,ne.centerX=(te.startX+te.endX)/2,ne.centerY=(te.startY+te.endY)/2,ne.radiusX=Math.abs(te.startX-te.endX)/2,ne.radiusY=Math.abs(te.startY-te.endY)/2,E.add(ne),te=nl(ne,E),se=te.length,se===0)b.push(ne.centerX),b.push(ne.centerY);else for(ne=E.startX,E=E.startY,he=0;he<se;he++)$e=te[he],Qt.Qe(ne,E,$e[2],$e[3],$e[4],$e[5],$e[6],$e[7],.5,b),ne=$e[6],E=$e[7];fp(a,y,b,x)}In(b),a.restore(),a.Vc(!1)}}}},it.kk=function(a,y,x){return!Yt.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)},it.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Yt.prototype.nk.call(this,a)},it.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)}},it.ga=function(a,y){if(y===void 0&&(y=new Lt),a instanceof wr){a.Mc()&&Zt("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},it.mi=function(a){a===void 0&&(a=new Tn);var y=this.naturalBounds,x=this.oe;y=Tn.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=Lt.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),Qi(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),Qi(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),Qi(a,b.x,b.y,0,0),Tn.free(y),Lt.free(b),a},it.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var b=x.bounds,E=this.strokeWidth/2;x.type!==Yn.j||y||(E+=2);var te=Tn.alloc();if(te.assign(b),te.Bc(E+2,E+2),!te.ca(a))return Tn.free(te),!1;if(b=E+1e-4,x.type===Yn.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:(Tn.free(te),Qt.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===Yn.u){y=x.startX;var ne=x.startY,se=x.endX;if(x=x.endY,te.x=Math.min(y,se),te.y=Math.min(ne,x),te.width=Math.abs(se-y),te.height=Math.abs(x-ne),this.fill===null){if(te.Bc(-b,-b),te.ca(a))return Tn.free(te),!1;te.Bc(b,b)}return this.stroke!==null&&te.Bc(E,E),a=te.ca(a),Tn.free(te),a}if(x.type===Yn.F){ne=x.startX,E=x.startY,se=x.endX;var he=x.endY;if(x=Math.min(ne,se),y=Math.min(E,he),ne=Math.abs(se-ne)/2,E=Math.abs(he-E)/2,x=a.x-(x+ne),y=a.y-(y+E),this.fill===null){if(ne-=b,E-=b,0>=ne||0>=E||1>=x*x/(ne*ne)+y*y/(E*E))return Tn.free(te),!1;ne+=b,E+=b}return this.stroke!==null&&(ne+=b,E+=b),Tn.free(te),0>=ne||0>=E?!1:1>=x*x/(ne*ne)+y*y/(E*E)}if(x.type===Yn.o)return Tn.free(te),this.fill===null?ic(x,a.x,a.y,E):Hu(x,a,E,1<this.strokeWidth,y);Zt("Unknown Geometry type: "+x.type)},it.Wl=function(a,y,x,b){var E=this.desiredSize,te=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var ne=this.geometry.bounds;else{var se=this.figure,he=Tv[se];if(he===void 0){var ge=Qt.Ze[se];typeof ge=="string"&&(ge=Qt.Ze[ge]),typeof ge=="function"?(he=ge(null,100,100),Tv[se]=he):Zt("Unsupported Figure: "+se)}ne=he.bounds}se=ne.width,he=ne.height,ge=ne.width;var ye=ne.height;switch(al(this,!0)){case zn:b=x=0;break;case Un:ge=Math.max(a-te,0),ye=Math.max(y-te,0);break;case Pr:ge=Math.max(a-te,0),b=0;break;case Dr:x=0,ye=Math.max(y-te,0)}isFinite(E.width)&&(ge=E.width),isFinite(E.height)&&(ye=E.height);var De=this.maxSize,$e=this.minSize;switch(x=Math.max(x-te,$e.width),b=Math.max(b-te,$e.height),ge=Math.min(De.width,ge),ye=Math.min(De.height,ye),ge=isFinite(ge)?Math.max(x,ge):Math.max(se,x),ye=isFinite(ye)?Math.max(b,ye):Math.max(he,b),x=Ev(this),x){case zn:break;case Un:se=ge,he=ye;break;case yr:x=Math.min(ge/se,ye/he),isFinite(x)||(x=1),se*=x,he*=x;break;default:Zt(x+" is not a valid geometryStretch.")}this.Rd!==null?(se===0&&(se=.001),he===0&&(he=.001),x=this.Rd!==null?this.Rd:this.ua,ne=x.bounds,b=se/ne.width,ne=he/ne.height,isFinite(b)||(b=1),isFinite(ne)||(ne=1),this.ua=b===1&&ne===1?x:x.copy().scale(b,ne)):this.ua!==null&&Qt.$(this.ua.Sk,a-te)&&Qt.$(this.ua.Rk,y-te)||(this.ua=hi.makeGeometry(this,se,he)),ne=this.ua.bounds,a===1/0||y===1/0?this.Ge(ne.x-te/2,ne.y-te/2,a===0&&se===0?0:ne.width+te,y===0&&he===0?0:ne.height+te):this.Ge(-(te/2),-(te/2),ge+te,ye+te),E.w()?(ge=E.width,ye=E.height,ge=Math.min(De.width,ge),ye=Math.min(De.height,ye),ge=Math.max($e.width,ge),ye=Math.max($e.height,ye),this.dc.h(0,0,ge,ye)):this.dc.assign(ne)};function Ev(a){var y=a.geometryStretch;return a.Rd!==null?y===ri?Un:y:y===ri?Tv[a.figure].defaultStretch:y}it.eh=function(a,y,x,b){Ds(this,a,y,x,b)},it.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},it.Sj=function(a,y,x,b,E){var te=this.transform,ne=1/(te.m11*te.m22-te.m12*te.m21),se=te.m22*ne,he=-te.m12*ne,ge=-te.m21*ne,ye=te.m11*ne,De=ne*(te.m21*te.dy-te.m22*te.dx),$e=ne*(te.m12*te.dx-te.m11*te.dy);te=a*se+y*ge+De,ne=a*he+y*ye+$e,se=x*se+b*ge+De,he=x*he+b*ye+$e,De=this.ig/2,ge=this.ua,ge===null&&(this.measure(1/0,1/0),ge=this.ua);var Qe=ge.bounds;if(ye=!1,ge.type===Yn.j)if(1.5>=this.strokeWidth)ye=Qt.Ve(ge.startX,ge.startY,ge.endX,ge.endY,te,ne,se,he,E);else{if(ge.startX===ge.endX?(b=De,ye=0):(y=(ge.endY-ge.startY)/(ge.endX-ge.startX),ye=De/Math.sqrt(1+y*y),b=ye*y),y=xn(),a=new Lt,Qt.Ve(ge.startX+b,ge.startY+ye,ge.endX+b,ge.endY+ye,te,ne,se,he,a)&&y.push(a),a=new Lt,Qt.Ve(ge.startX-b,ge.startY-ye,ge.endX-b,ge.endY-ye,te,ne,se,he,a)&&y.push(a),a=new Lt,Qt.Ve(ge.startX+b,ge.startY+ye,ge.startX-b,ge.startY-ye,te,ne,se,he,a)&&y.push(a),a=new Lt,Qt.Ve(ge.endX+b,ge.endY+ye,ge.endX-b,ge.endY-ye,te,ne,se,he,a)&&y.push(a),se=y.length,se===0)return In(y),!1;for(ye=!0,he=1/0,b=0;b<se;b++)a=y[b],x=(a.x-te)*(a.x-te)+(a.y-ne)*(a.y-ne),x<he&&(he=x,E.x=a.x,E.y=a.y);In(y)}else if(ge.type===Yn.u)ye=Qt.Ff(Qe.x-De,Qe.y-De,Qe.x+Qe.width+De,Qe.y+Qe.height+De,te,ne,se,he,E);else if(ge.type===Yn.F){y=Tn.allocAt(Qe.x,Qe.y,Qe.width,Qe.height).Bc(De,De);e:if(y.width===0)ye=Qt.Ve(y.x,y.y,y.x,y.y+y.height,te,ne,se,he,E);else if(y.height===0)ye=Qt.Ve(y.x,y.y,y.x+y.width,y.y,te,ne,se,he,E);else{if(a=y.width/2,ge=y.height/2,b=y.x+a,ye=y.y+ge,x=9999,te!==se&&(x=(ne-he)/(te-se)),9999>Math.abs(x)){if(he=ne-ye-x*(te-b),0>a*a*x*x+ge*ge-he*he){E.x=NaN,E.y=NaN,ye=!1;break e}De=Math.sqrt(a*a*x*x+ge*ge-he*he),se=(-(a*a*x*he)+a*ge*De)/(ge*ge+a*a*x*x)+b,a=(-(a*a*x*he)-a*ge*De)/(ge*ge+a*a*x*x)+b,ge=x*(se-b)+he+ye,he=x*(a-b)+he+ye,Math.abs((te-se)*(te-se))+Math.abs((ne-ge)*(ne-ge))<Math.abs((te-a)*(te-a))+Math.abs((ne-he)*(ne-he))?(E.x=se,E.y=ge):(E.x=a,E.y=he)}else{if(se=ge*ge,he=te-b,se-=se/(a*a)*he*he,0>se){E.x=NaN,E.y=NaN,ye=!1;break e}he=Math.sqrt(se),se=ye+he,he=ye-he,Math.abs(se-ne)<Math.abs(he-ne)?(E.x=te,E.y=se):(E.x=te,E.y=he)}ye=!0}Tn.free(y)}else if(ge.type===Yn.o){$e=Lt.alloc();var rt=se-te,ut=he-ne,Ot=rt*rt+ut*ut,Tt=te,Bt=ne;if(0<Ot&&Qe.contains(Tt,Bt)&&($e.x=Tt,$e.y=Bt,this.ca($e)))for(rt!==0&&.5>Math.abs(rt)?(ut*=.5/rt,rt=.5):ut!==0&&.5>Math.abs(ut)&&(rt*=.5/ut,ut=.5),Tt-=rt,Bt-=ut;Qe.contains(Tt,Bt);)Tt-=rt,Bt-=ut;for(E.x=se,E.y=he,ut=0;ut<ge.figures.count;ut++){var _t=ge.figures.s[ut],Ht=_t.isFilled?Tt:te,Vt=_t.isFilled?Bt:ne,hn=_t.segments;Qe=_t.startX,rt=_t.startY;for(var rr=Qe,fr=rt,cr=0;cr<hn.count;cr++){var Zn=hn.s[cr],Bn=Zn.type,Jr=Zn.endX,Wr=Zn.endY,$i=!1;switch(Bn){case ga:rr=Jr,fr=Wr;break;case yo:$i=Dm(Qe,rt,Jr,Wr,Ht,Vt,se,he,$e);break;case as:$i=Qt.Eo(Qe,rt,Zn.point1X,Zn.point1Y,Zn.point2X,Zn.point2Y,Jr,Wr,Ht,Vt,se,he,.6,$e);break;case Pl:$i=Qt.Eo(Qe,rt,Qe+2/3*(Zn.point1X-Qe),rt+2/3*(Zn.point1Y-rt),Jr+2/3*(Zn.point1X-Jr),Wr+2/3*(Zn.point1Y-Wr),Jr,Wr,Ht,Vt,se,he,.6,$e);break;case ca:case zl:Bn=Zn.type===ca?nl(Zn,_t):zs(Zn,_t,Qe,rt);var vo=Bn.length;if(vo===0){$i=Dm(Qe,rt,Zn.type===ca?Zn.centerX:Zn.endX,Zn.type===ca?Zn.centerY:Zn.endY,Ht,Vt,se,he,$e);break}for(Wr=null,Jr=0;Jr<vo;Jr++){if(Wr=Bn[Jr],Jr===0&&Dm(Qe,rt,Wr[0],Wr[1],Ht,Vt,se,he,$e)){var Ja=Im(Ht,Vt,$e,Ot,E);Ja<Ot&&(Ot=Ja,ye=!0)}Qt.Eo(Wr[0],Wr[1],Wr[2],Wr[3],Wr[4],Wr[5],Wr[6],Wr[7],Ht,Vt,se,he,.6,$e)&&(Ja=Im(Ht,Vt,$e,Ot,E),Ja<Ot&&(Ot=Ja,ye=!0))}Jr=Wr[6],Wr=Wr[7];break;default:Zt("Unknown Segment type: "+Bn)}Qe=Jr,rt=Wr,$i&&($i=Im(Ht,Vt,$e,Ot,E),$i<Ot&&(Ot=$i,ye=!0)),Zn.isClosed&&(Jr=rr,Wr=fr,Dm(Qe,rt,Jr,Wr,Ht,Vt,se,he,$e)&&(Zn=Im(Ht,Vt,$e,Ot,E),Zn<Ot&&(Ot=Zn,ye=!0)))}}te=x-a,ne=b-y,se=Math.sqrt(te*te+ne*ne),se!==0&&(te/=se,ne/=se),E.x-=te*De,E.y-=ne*De,Lt.free($e)}else Zt("Unknown Geometry type: "+ge.type);return ye?(this.transform.Ga(E),!0):!1};function Im(a,y,x,b,E){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<b?(E.x=x.x,E.y=x.y,y):b}function Dm(a,y,x,b,E,te,ne,se,he){if(Qt.$(a,x)&&Qt.$(y,b)||Qt.$(E,ne)&&Qt.$(te,se))return!1;var ge=!1,ye=(E-ne)*(y-b)-(te-se)*(a-x);return ye===0?!1:(he.x=((E*se-te*ne)*(a-x)-(E-ne)*(a*b-y*x))/ye,he.y=((E*se-te*ne)*(y-b)-(te-se)*(a*b-y*x))/ye,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(he.y>a||Qt.$(he.y,a))&&(he.y<y||Qt.$(he.y,y))&&(ge=!0)):(y=a<x?a:x,a=a<x?x:a,(he.x>y||Qt.$(he.x,y))&&(he.x<a||Qt.$(he.x,a))&&(ge=!0)),ge)}it.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.ua;x===null&&(this.measure(1/0,1/0),x=this.ua),x=x.bounds;var b=this.strokeWidth/2,E=!1,te=Lt.alloc();return te.h(x.x-b,x.y-b),a.ca(y.Ga(te))&&(te.h(x.x-b,x.bottom+b),a.ca(y.Ga(te))&&(te.h(x.right+b,x.bottom+b),a.ca(y.Ga(te))&&(te.h(x.right+b,x.y-b),a.ca(y.Ga(te))&&(E=!0)))),Lt.free(te),E},it.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=pi.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,te=a.top;a=a.bottom;var ne=Lt.alloc();if(ne.h(b,te),x.Ga(ne),this.gh(ne,!0)||(ne.h(E,te),x.Ga(ne),this.gh(ne,!0))||(ne.h(b,a),x.Ga(ne),this.gh(ne,!0))||(ne.h(E,a),x.Ga(ne),this.gh(ne,!0)))return Lt.free(ne),!0;var se=Lt.alloc(),he=Lt.alloc();return x.set(y),x.bv(this.transform),x.Vj(),se.x=E,se.y=te,se.transform(x),ne.x=b,ne.y=te,ne.transform(x),y=!1,Kd(this,ne,se,he)?y=!0:(ne.x=E,ne.y=a,ne.transform(x),Kd(this,ne,se,he)?y=!0:(se.x=b,se.y=a,se.transform(x),Kd(this,ne,se,he)?y=!0:(ne.x=b,ne.y=te,ne.transform(x),Kd(this,ne,se,he)&&(y=!0)))),Lt.free(ne),pi.free(x),Lt.free(se),Lt.free(he),y};function Kd(a,y,x,b){if(!a.rs(y,x,b))return!1;a=y.x,y=y.y;var E=x.x,te=x.y;return x=b.x,b=b.y,a===E?(y<te?(a=y,y=te):a=te,b>=a&&b<=y):(a<E?(b=a,a=E):b=E,x>=b&&x<=a)}it.tx=function(a,y,x){function b(Ot,Tt){for(var Bt=Ot.length,_t=0;_t<Bt;_t+=2)if(Tt.zd(Ot[_t],Ot[_t+1])>E)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var E=a.Bf(y),te=E;if(1.5<this.strokeWidth&&(E=this.strokeWidth/2+Math.sqrt(E),E*=E),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var ne=y.bounds,se=ne.x,he=ne.y,ge=ne.x+ne.width;if(ne=ne.y+ne.height,Or(a.x,a.y,se,he)<=E&&Or(a.x,a.y,ge,he)<=E&&Or(a.x,a.y,se,ne)<=E&&Or(a.x,a.y,ge,ne)<=E)return!0}if(se=y.startX,he=y.startY,ge=y.endX,ne=y.endY,y.type===Yn.j){if(x=(se-ge)*(a.x-ge)+(he-ne)*(a.y-ne),Ji(a.x,a.y,se,he,ge,ne)<=(0<=(ge-se)*(a.x-se)+(ne-he)*(a.y-he)&&0<=x?E:te))return!0}else{if(y.type===Yn.u)return y=!1,x&&(y=Ji(a.x,a.y,se,he,se,ne)<=E||Ji(a.x,a.y,se,he,ge,he)<=E||Ji(a.x,a.y,ge,he,ge,ne)<=E||Ji(a.x,a.y,se,ne,ge,ne)<=E),y;if(y.type===Yn.F){y=a.x-(se+ge)/2,te=a.y-(he+ne)/2;var ye=Math.abs(ge-se)/2,De=Math.abs(ne-he)/2;if(ye===0||De===0)return Ji(a.x,a.y,se,he,ge,ne)<=E;if(x){if(a=Qt.$y(ye,De,y,te),a*a<=E)return!0}else return!(Or(y,te,-ye,0)>=E||Or(y,te,0,-De)>=E||Or(y,te,0,De)>=E||Or(y,te,ye,0)>=E)}else if(y.type===Yn.o){if(ge=y.bounds,te=ge.x,se=ge.y,he=ge.x+ge.width,ge=ge.y+ge.height,a.x>he&&a.x<te&&a.y>ge&&a.y<se&&Ji(a.x,a.y,te,se,te,ge)>E&&Ji(a.x,a.y,te,se,he,se)>E&&Ji(a.x,a.y,he,ge,te,ge)>E&&Ji(a.x,a.y,he,ge,he,se)>E)return!1;if(te=Math.sqrt(E),x){if(this.fill===null?ic(y,a.x,a.y,te):Hu(y,a,te,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(te=x.s[y],ne=te.startX,ye=te.startY,a.zd(ne,ye)>E)return!1;for(se=te.segments.s,he=se.length,ge=0;ge<he;ge++)switch(De=se[ge],De.type){case ga:case yo:if(ne=De.endX,ye=De.endY,a.zd(ne,ye)>E)return!1;break;case as:var $e=xn();if(Qt.Qe(ne,ye,De.point1X,De.point1Y,De.point2X,De.point2Y,De.endX,De.endY,.8,$e),ne=b($e,a),In($e),ne||(ne=De.endX,ye=De.endY,a.zd(ne,ye)>E))return!1;break;case Pl:if($e=xn(),Qt.ep(ne,ye,De.point1X,De.point1Y,De.endX,De.endY,.8,$e),ne=b($e,a),In($e),ne||(ne=De.endX,ye=De.endY,a.zd(ne,ye)>E))return!1;break;case ca:case zl:$e=De.type===ca?nl(De,te):zs(De,te,ne,ye);var Qe=$e.length;if(Qe===0){if(ne=De.type===ca?De.centerX:De.endX,ye=De.type===ca?De.centerY:De.endY,a.zd(ne,ye)>E)return!1;break}De=null;for(var rt=xn(),ut=0;ut<Qe;ut++)if(De=$e[ut],rt.length=0,Qt.Qe(De[0],De[1],De[2],De[3],De[4],De[5],De[6],De[7],.8,rt),b(rt,a))return In(rt),!1;In(rt),De!==null&&(ne=De[6],ye=De[7]);break;default:Zt("Unknown Segment type: "+De.type)}}return!0}}}return!1},it.qc=function(){this.ua=null},it.kq=function(){return this.ig};function v1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=Pg,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=$a):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new wr(1-$a.x,$a.y)))}hi.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=Nc[a.toArrow];else a.fromArrow!=="None"?b=Nc[a.fromArrow]:(b=Qt.Ze[a.figure],typeof b=="string"&&(b=Qt.Ze[b]),b===void 0&&Zt("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=Qt.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function y1(a){var y=Nc[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Nc[x],y===void 0){var b=null,E;for(E in Qt.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=Yn.parse(Qt.um[b],!1),Nc[b]=a,x!==b&&(Nc[x]=b),b}}return typeof y=="string"?y:y instanceof Yn?a:null}jt.Object.defineProperties(hi.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),ys(this)&&(a=this.part,a!==null&&Eo(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Yn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Lt.allocAt(-y.x,-y.y),Lt.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&&Pf(a,"Shape.fill"),a instanceof to&&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&&Pf(a,"Shape.stroke"),a instanceof to&&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 Fn(a,"value >= 0",hi,"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"?Fn(a,'"butt", "round", or "square"',hi,"strokeCap"):($d(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"?Fn(a,'"miter", "bevel", or "round"',hi,"strokeJoin"):($d(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){$d(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var te=a[E];0<=te&&isFinite(te)||Zt("strokeDashArray:value "+te+" at index "+E+" must be a positive number or zero."),b+=te}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&&($d(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=Qt.Ze[a];typeof x=="function"?x=a:(x=Qt.Ze[a.toLowerCase()])||Zt("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=y1(a);x===null?Zt("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new qh),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),v1(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=y1(a);x===null?Zt("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new qh),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),v1(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:qi},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),$d(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:qi},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),$d(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&&($d(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:ri},set:function(a){var y=this.geometryStretch;y!==a&&($d(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 Oc),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&sc(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 Oc),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 Oc),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 Oc),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),hi.prototype.intersectsRect=hi.prototype.Yc,hi.prototype.containedInRect=hi.prototype.fh,hi.prototype.getNearestIntersectionPoint=hi.prototype.rs,hi.prototype.getDocumentBounds=hi.prototype.mi,hi.prototype.getDocumentPoint=hi.prototype.ga;var Nc=new pr,Tv=new pr;hi.className="Shape",hi.getFigureGenerators=function(){var a=new dr,y;for(y in Qt.Ze)y!==y.toLowerCase()&&a.add(y,Qt.Ze[y]);return a.freeze(),a},hi.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Qt.Ze;b[a]=y,b[x]=a},hi.getArrowheadGeometries=function(){var a=new dr;for(b in Qt.um)if(Nc[b]===void 0){var y=Yn.parse(Qt.um[b],!1);Nc[b]=y,y=b.toLowerCase(),y!==b&&(Nc[y]=b)}for(var x in Nc)if(x!==x.toLowerCase()){var b=Nc[x];b instanceof Yn&&a.add(x,b)}return a.freeze(),a},hi.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=Yn.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||Zt("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=Nc;b[a]=x,b[y]=a};function Mv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=ri,this.gg=this.fg=qi}Mv.prototype.copy=function(){var a=new Mv;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 So(a,y){return Yt.call(this),zm||(sl=na?new yu(null).context:null,zm=!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}Jt(So,Yt),So.prototype.cloneProtected=function(a){Yt.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 hc(a){a.da===null?a.da=new Iv:a.da.nc&&(a.da=a.da.copy())}it=So.prototype,it.th=function(){Yt.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function S1(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}it.qb=function(a){a.classType===So?this.wrap=a:Yt.prototype.qb.call(this,a)},it.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},it.v=function(){Yt.prototype.v.call(this)},it.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,b=this.actualBounds,E=x.width,te=x.height,ne=mg(this),se=a.textAlign=this.textAlign,he=y.tn;se==="start"?se=he?"right":"left":se==="end"&&(se=he?"left":"right"),he=this.isUnderline;var ge=this.isStrikethrough;ia(this,a,this.xc,!0,!1,x,b),(he||ge)&&ia(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var ye=this.oe,De=ye.dx-(ne*ye.m21+ye.dx);ye=ye.dy-(ne*ye.m22+ye.dy);var $e=y.scale;switch(8>(De*De+ye*ye)*$e*$e&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Tl&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,De=this.spacingBelow,this.flip){case Bi:a.translate(E,0),a.scale(-1,1);break;case yi:a.translate(0,te),a.scale(1,-1);break;case uo:a.translate(E,te),a.scale(-1,-1)}if(a.yc(),ye=this.Gc,$e=(y+ne+De)*ye,te>$e&&(b=this.verticalAlignment,b=b.y*te-b.y*$e+b.offsetY),ye===1&&this.ze!==null)De=this.Cb,De>E&&(De=E),this.Oj(this.ze,a,0,b+y,E,ne,De,x,se,he,ge);else if(this.Qc!==null&&this.Qb!==null)for($e=0;$e<ye;$e++){var Qe=this.Qc[$e];Qe>E&&(Qe=E),b+=y,this.Oj(this.Qb[$e],a,0,b,E,ne,Qe,x,se,he,ge),b+=ne+De}switch(this.flip){case Bi:a.scale(-1,1),a.translate(-E,0);break;case yi:a.scale(1,-1),a.translate(0,-te);break;case uo:a.scale(-1,-1),a.translate(-E,-te)}}},it.Oj=function(a,y,x,b,E,te,ne,se,he,ge,ye){var De=0;if(se)he==="left"?De=0:he==="right"?De=E-ne:he==="center"&&(De=(E-ne)/2),y.fillRect(x+De,b+.25*te,ne,1);else{if(he==="left"?De=0:he==="right"?De=E:he==="center"&&(De=E/2),E=Fm!==null?Fm(this,te):.75*te,y.fillText(a,x+De,b+E),a=te/20|0,a===0&&(a=1),he==="right"?De-=ne:he==="center"&&(De-=ne/2),ge){se=Bm!==null?Bm(this,te):.8*te,he=x+De,ge=b+se,E=x+De+ne,se=b+se;var $e=a;y.beginPath(),y.lineWidth=$e,y.moveTo(he,ge),y.lineTo(E,se),y.stroke(),y.Se(),y instanceof Tl&&y.ad.classList.add("gojs-td")}ye&&(ye=b+te-te/2.2|0,a%2!==0&&(ye+=.5),b=x+De,te=ye,x=x+De+ne,ne=ye,De=a,y.beginPath(),y.lineWidth=De,y.moveTo(b,te),y.lineTo(x,ne),y.stroke(),y.Se(),y instanceof Tl&&y.ad.classList.add("gojs-td"))}},it.kk=function(a,y,x){if(!Yt.prototype.kk.call(this,a,y,x))return!1;if(ia(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++)Qy(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,Qy(a,y,!0);return!0},it.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Yt.prototype.nk.call(this,a)},it.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)}},it.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var te=this.Ae;sl!==null&&T1!==te&&(T1=sl.font=te),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var ne;if(isNaN(this.desiredSize.width)){if(te=this.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),te.length===0)te=8;else if(this.isMultiline){for(var se=ne=0,he=!1;!he;){var ge=te.indexOf(`
|
|
|
`,se);ge===-1&&(ge=te.length,he=!0),se=te.substr(se,ge-se),this.formatting===vg&&(se=se.trim()),ne=Math.max(ne,Ou(se)),se=ge+1}te=ne}else ne=te.indexOf(`
|
|
|
`,0),0<=ne&&(te=te.substr(0,ne)),te=Ou(te);te=Math.min(te,a/this.scale)}else te=this.desiredSize.width;if(this.panel!==null&&(te=Math.min(te,this.panel.maxSize.width)),ne=w1(this,te),isNaN(this.desiredSize.height)?ne=Math.min(ne,y/this.scale):ne=this.desiredSize.height,he=ne,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===Rm&&(y=this.Ae,y=this.overflow===Rm?x1(y):0,ge=this.spacingAbove+this.spacingBelow,ge=Math.max(0,mg(this)+ge),he=Math.min(this.maxLines-1,Math.max(Math.floor(he/ge+.01)-1,0)),!(he+1>=this.Qb.length))){for(this.l|=16777216,ge=this.Qb[he],y=Math.max(1,a-y);Ou(ge)>y&&1<ge.length;)ge=ge.substr(0,ge.length-1);ge+=yg,y=Ou(ge),this.Qb[he]=ge,this.Qb=this.Qb.slice(0,he+1),this.Qc[he]=y,this.Qc=this.Qc.slice(0,he+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===b1||isNaN(this.desiredSize.width))&&(te=isNaN(a)?this.Cb:Math.min(a,this.Cb)),te=Math.max(x,te),ne=Math.max(b,ne),qa(this.dc,te,ne),this.Ge(0,0,te,ne),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},it.eh=function(a,y,x,b){Ds(this,a,y,x,b)};function gg(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 Lv(a,y,x,b){var E=a.formatting===vg;E&&(y=y.trim());var te=0,ne=a.Ae,se=a.spacingAbove+a.spacingBelow;se=Math.max(0,mg(a)+se);var he=a.overflow===Rm?x1(ne):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,se);else if(ne=y,a.wrap===kv){a.Le=1;var ge=Ou(y);if(he===0||ge<=x)a.Cb=Math.max(a.Cb,ge),gg(a,y,a.Cb),b!==null&&b.h(ge,se);else{for(te=pp(a,ne),ne=ne.substr(te.length),y=pp(a,ne),ge=Ou(te+y);0<y.length&&ge<=x;)te+=y,ne=ne.substr(y.length),y=pp(a,ne),ge=te+y,E&&(ge=ge.trim()),ge=Ou(ge);for(E&&(y=y.trim()),te+=y,x=Math.max(1,x-he);Ou(te)>x&&1<te.length;)te=te.substr(0,te.length-1);a.l|=16777216,te+=yg;var ye=Ou(te);a.Cb=ye,gg(a,te,ye),b!==null&&b.h(ye,se)}}else{for(he=0,ne.length===0&&(he=1,gg(a,ne,0));0<ne.length;){for(y=pp(a,ne),ne=ne.substr(y.length);Ou(y)>x;){var De=1;for(ge=Ou(y.substr(0,De)),ye=0;ge<=x;)De++,ye=ge,ge=Ou(y.substr(0,De));if(De===1){var $e=ge;te=Math.max(te,ge)}else $e=ye,te=Math.max(te,ye);if(De--,1>De&&(De=1),gg(a,y.substr(0,De),$e),he++,y=y.substr(De),a.Gc+he>a.maxLines)break}for(ye=pp(a,ne),ge=Ou(y+ye);0<ye.length&&ge<=x;)y+=ye,ne=ne.substr(ye.length),ye=pp(a,ne),ge=y+ye,E&&(ge=ge.trim()),ge=Ou(ge);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ye.length===0?(De=ge,te=Math.max(te,ge)):(De=ye=Ou(y),te=Math.max(te,ye)),gg(a,y,De),he++,a.Gc+he>a.maxLines))break}a.Le=Math.min(a.maxLines,he),a.Cb=Math.max(a.Cb,te),b!==null&&b.h(a.Cb,se*a.Le)}}function pp(a,y){if(a.wrap===P1)return y.substr(0,1);for(var x=y.length,b=0,E=xx;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===C1&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function Ou(a){return sl===null?8*a.length:sl.measureText(a).width}function mg(a){if(a.df!==null)return a.df;var y=a.Ae;if(sl===null){var x=16;return a.df=x}return Av[y]!==void 0&&5e3>E1?x=Av[y]:(x=1.3*sl.measureText("M").width,Av[y]=x,E1++),a.df=x}function x1(a){if(sl===null)return 6;if(_m[a]!==void 0&&5e3>jv)var y=_m[a];else y=sl.measureText(yg).width,_m[a]=y,jv++;return y}function w1(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,mg(a)+b),x.length===0)return a.Cb=0,a.Gc=1,b;if(!a.isMultiline){var E=x.indexOf(`
|
|
|
`,0);0<=E&&(x=x.substr(0,E))}E=0;for(var te=a.Gc=0,ne,se=!1;!se;){if(ne=x.indexOf(`
|
|
|
`,te),ne===-1&&(ne=x.length,se=!0),te<=ne){if(te=x.substr(te,ne-te),a.wrap!==kv){a.Le=0;var he=Xn.alloc();Lv(a,te,y,he),E+=he.height,Xn.free(he),a.Gc+=a.Le}else Lv(a,te,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(se=!0)}te=ne+1}return a.Lq=E}jt.Object.defineProperties(So.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"||(hc(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:zn},set:function(a){var y=this.flip;y!==a&&(hc(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Xa},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),hc(this),this.da.Yr=a,Gs(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Xn.alloc();Lv(this,this.ec,999999,a);var y=a.width;Xn.free(a),a=w1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),qa(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:Nv},set:function(a){var y=this.wrap;y!==a&&(hc(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Ov},set:function(a){var y=this.overflow;y!==a&&(hc(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&&Pf(a,"TextBlock.stroke"),a instanceof to&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return mg(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&&(hc(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&&(hc(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 Oc),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 Oc),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 Oc),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 Oc),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 Oc),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&&(hc(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&&(hc(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&&(hc(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&&(hc(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:vg},set:function(a){var y=this.formatting;y!==a&&(hc(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&&Fn(a,"> 0",So,"maxLines"),hc(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 Fm=null,Bm=null,kv=new en(So,"None",0),b1=new en(So,"WrapFit",1),Nv=new en(So,"WrapDesiredSize",2),P1=new en(So,"WrapBreakAll",3),Ov=new en(So,"OverflowClip",0),Rm=new en(So,"OverflowEllipsis",1),vg=new en(So,"FormatTrim",0),C1=new en(So,"FormatNone",0),xx=/[ \u200b\u00ad]/,Av=new pr,E1=0,_m=new pr,jv=0,yg="...",T1="",sl=null,zm=!1;So.className="TextBlock";function Iv(){this.nc=!1,this.Hd=null,this.Xf=zn,this.gq=vg,this.Jq=1/0,this.$q=Ov,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Xa,this.$r=Nv}Iv.prototype.copy=function(){var a=new Iv;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},So.getEllipsis=function(){return yg},So.setEllipsis=function(a){yg=a,_m=new pr,jv=0},So.getBaseline=function(){return Fm},So.setBaseline=function(a){Fm=a},So.getUnderline=function(){return Bm},So.setUnderline=function(a){Bm=a},So.isValidFont=function(a){if(zm||(sl=na?new yu(null).context:null,zm=!0),sl===null)return!0;var y=sl.font;if(a===y||a==="10px sans-serif")return!0;sl.font="10px sans-serif",sl.font=a;var x=sl.font;if(x!=="10px sans-serif")return sl.font=y,!0;sl.font="19px serif";var b=sl.font;return sl.font=a,x=sl.font,sl.font=y,x!==b},So.FormatNone=C1,So.FormatTrim=vg,So.None=kv,So.OverflowClip=Ov,So.OverflowEllipsis=Rm,So.WrapBreakAll=P1,So.WrapDesiredSize=Nv,So.WrapFit=b1;function Oc(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Oc.prototype.copy=function(){var a=new Oc;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Oc.className="GradElementSettings";function ll(a,y){Yt.call(this),this.Eg=null,this.qo="",this.Xg=ro,this.Nk=Un,this.Zg=this.Hd=null,this.Mk=Di,this.Xf=zn,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 gp;Jt(ll,Yt),ll.prototype.cloneProtected=function(a){Yt.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},ll.prototype.qb=function(a){a===zn||a===yr||a===Ci?this.imageStretch=a:Yt.prototype.qb.call(this,a)},ll.prototype.toString=function(){return"Picture("+this.source+")#"+Mi(this)};function mp(a){a===void 0&&(a=""),a!==""?gp[a]&&(delete gp[a],Hm--):(gp=new pr,Hm=0)}function M1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value;E.N();var te=y.getAttribute("src")||"",ne=E.Og.I(te);if(ne!==null)for(var se=ne.length,he=0;he<se;he++)te=ne[he],E.Xn.add(te),te.Uc=!0,E.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),te.Zg!==null&&te.Zg(te,x))}y.Bg.clear()}a.desiredSize.w()||(Oa(a,!1),a.v())},y.Yp=function(x){y.ln=x;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value,te=y.getAttribute("src")||"",ne=E.Og.I(te);if(ne!==null){E=ne.length,te=xn();for(var se=0;se<E;se++)te.push(ne[se]);if(y.hn)for(se=0;se<E;se++)ne=te[se],ne.Hd!==null&&ne.Hd(ne,x);In(te)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}ll.prototype.hA=function(){if(this.source!==""){mp(this.source);var a=this.source;this.source="",this.source=a}},ll.prototype.redraw=function(){this.N(),this.Uc=!0},ll.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 Wd)){var E=a instanceof Tl;b=this.naturalBounds;var te=0,ne=0,se=this.qn,he=se?+x.width:x.naturalWidth;if(se=se?+x.height:x.naturalHeight,he===void 0&&x.videoWidth&&(he=x.videoWidth),se===void 0&&x.videoHeight&&(se=x.videoHeight),he=he||b.width,se=se||b.height,he!==0&&se!==0){var ge=he,ye=se;this.sourceRect.w()&&(te=this.Xg.x,ne=this.Xg.y,he=this.Xg.width,se=this.Xg.height);var De=he,$e=se,Qe=this.Nk,rt=this.Mk;switch(Qe){case zn:if(this.sourceRect.w())break;De>=b.width&&(te=te+rt.offsetX+(De*rt.x-b.width*rt.x)),$e>=b.height&&(ne=ne+rt.offsetY+($e*rt.y-b.height*rt.y)),he=Math.min(b.width,De),se=Math.min(b.height,$e);break;case Un:De=b.width,$e=b.height;break;case yr:case Ci:Qe===yr?(Qe=Math.min(b.height/$e,b.width/De),De*=Qe,$e*=Qe):Qe===Ci&&(Qe=Math.max(b.height/$e,b.width/De),De*=Qe,$e*=Qe,De>=b.width&&(te=(te+rt.offsetX+(De*rt.x-b.width*rt.x)/De)*he),$e>=b.height&&(ne=(ne+rt.offsetY+($e*rt.y-b.height*rt.y)/$e)*se),he*=1/(De/b.width),se*=1/($e/b.height),De=b.width,$e=b.height)}Qe=this.Df()*y.scale;var ut=De*Qe*$e*Qe,Ot=he*se/ut,Tt=x.__goCache;Qe=null;var Bt=wx;if(!E){if(x.sq&&Tt!==void 0&&4<ut&&Ot>Bt*Bt)for(Tt.gi===null&&(k1(Tt,4,ge,ye,x),k1(Tt,16,ge,ye,x)),E=Tt.gi,ge=E.length,ye=0;ye<ge&&E[ye].ratio*E[ye].ratio<Ot;ye++)Qe=E[ye];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new yu(null).context;try{E.drawImage(this.Eg,0,0)}catch(_t){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(_t){this.vl=!0}}if(this.vl)return}}switch(E=De<b.width?rt.offsetX+(b.width*rt.x-De*rt.x):0,rt=$e<b.height?rt.offsetY+(b.height*rt.y-$e*rt.y):0,this.flip){case Bi:a.translate(Math.min(b.width,De),0),a.scale(-1,1);break;case yi:a.translate(0,Math.min(b.height,$e)),a.scale(1,-1);break;case uo:a.translate(Math.min(b.width,De),Math.min(b.height,$e)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Tt!==void 0&&Qe!==null&&Qe.ratio!==1){a.save(),y=Qe.ratio;try{a.drawImage(Qe.source,te/y,ne/y,Math.min(Qe.source.width,he/y),Math.min(Qe.source.height,se/y),E,rt,Math.min(b.width,De),Math.min(b.height,$e)),a instanceof Tl&&(this.bt=[te/y,ne/y,Math.min(Qe.source.width,he/y),Math.min(Qe.source.height,se/y),E,rt,Math.min(b.width,De),Math.min(b.height,$e)])}catch(_t){this.en=!1}a.restore()}else try{a.drawImage(x,te,ne,he,se,E,rt,Math.min(b.width,De),Math.min(b.height,$e)),a instanceof Tl&&(this.bt=[te,ne,he,se,E,rt,Math.min(b.width,De),Math.min(b.height,$e)])}catch(_t){this.en=!1}switch(this.flip){case Bi:a.scale(-1,1),a.translate(-Math.min(b.width,De),0);break;case yi:a.scale(1,-1),a.translate(0,-Math.min(b.height,$e));break;case uo:a.scale(-1,-1),a.translate(-Math.min(b.width,De),-Math.min(b.height,$e))}}}}},ll.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,te=al(this,!0),ne=this.Eg,se=this.qn,he=0,ge=0;(se||!this.al&&ne&&ne.complete)&&(this.al=!0),ne===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(he=se?+ne.width:ne.naturalWidth,ge=se?+ne.height:ne.naturalHeight),isFinite(E.width)||te===Un||te===Pr?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:ne!==null&&(a=he)),x=0):ne!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:he),isFinite(E.height)||te===Un||te===Dr?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:ne!==null&&(y=ge)),b=0):ne!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:ge),isFinite(E.width)&&(a=E.width),isFinite(E.height)&&(y=E.height),E=this.maxSize,te=this.minSize,x=Math.max(x||0,te.width),b=Math.max(b||0,te.height),a=Math.min(E.width,a),y=Math.min(E.height,y),a=Math.max(x,a),y=Math.max(b,y),ne===null||ne.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),qa(this.dc,a,y),this.Ge(0,0,a,y)},ll.prototype.eh=function(a,y,x,b){Ds(this,a,y,x,b)},jt.Object.defineProperties(ll.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||Zt("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&Jp(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new Dn),b!==null&&x&&Yh(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()||(Oa(this,!1),this.v())):x&&M1(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=gp;if(na){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<Hm&&(mp(),x=gp),b=bn("img"),b.hn=!0,M1(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,Hm++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new L1),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}}}),ll.prototype.redraw=ll.prototype.redraw,ll.prototype.reloadSource=ll.prototype.hA;var Hm=0,wx=4;ll.className="Picture",gp=new pr,ll.clearCache=mp;function L1(){this.gi=null}function k1(a,y,x,b,E){a.gi===null&&(a.gi=[]);var te=new yu(null),ne=te.context,se=1/y;te.width=x/y,te.height=b/y,te.width!==0&&te.height!==0&&(y=new N1(te.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],E=x.source,x=x.ratio),ne.setTransform(se*x,0,0,se*x,0,0),ne.yc(),ne.drawImage(E,0,0),a.gi.push(y))}L1.className="PictureCacheArray";function N1(a,y){this.source=a,this.ratio=y}N1.className="PictureCacheInstance";function vp(){this.os=new Yn,this.mc=null}vp.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Yn,this.mc=null};function yp(a,y,x,b,E,te){a.mc=new _a,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=b,a.mc.isEvenOdd=te||!1,a.os.figures.add(a.mc),E!==void 0&&(a.mc.isShadowed=E)}function bx(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}vp.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new zi(ga);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},vp.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new zi(yo);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function Eh(a,y,x,b,E,te,ne){var se;se===void 0&&(se=!1);var he=new zi(as);he.point1X=y,he.point1Y=x,he.point2X=b,he.point2Y=E,he.endX=te,he.endY=ne,se&&he.close(),a.mc.segments.add(he)}function Gm(a,y,x,b,E){var te;te===void 0&&(te=!1);var ne=new zi(Pl);ne.point1X=y,ne.point1Y=x,ne.endX=b,ne.endY=E,te&&ne.close(),a.mc.segments.add(ne)}vp.prototype.arcTo=function(a,y,x,b,E,te,ne){te===void 0&&(te=0),ne===void 0&&(ne=!1);var se=new zi(ca);se.startAngle=a,se.sweepAngle=y,se.centerX=x,se.centerY=b,se.radiusX=E,se.radiusY=te!==0?te:E,ne&&se.close(),this.mc.segments.add(se)};function Px(a,y,x,b,E,te,ne,se){var he;he===void 0&&(he=!1),y=new zi(zl,ne,se,y,x,b,E,te),he&&y.close(),a.mc.segments.add(y)}function O1(a){var y=Wm;return y!==null?(Wm=null,y.reset(a),y):(y=new vp,y.reset(a),y)}var Wm=null;vp.className="StreamGeometryContext";function Os(a,y){var x=a.toLowerCase(),b=Qt.Ze;b[a]=y,b[x]=a}Os("Rectangle",function(a,y,x){a="r"+y+","+x;var b=Qt.Mf[a];return b!==void 0||(b=new Yn(Yn.u),b.endX=y,b.endY=x,Qt.Nf<Qt.vm&&(Qt.Mf[a]=b,Qt.Nf++)),b}),Os("Square",function(a,y,x){a="s"+y+","+x;var b=Qt.Mf[a];return b!==void 0||(b=new Yn(Yn.u),b.endX=y,b.endY=x,b.defaultStretch=yr,Qt.Nf<Qt.vm&&(Qt.Mf[a]=b,Qt.Nf++)),b}),Os("RoundedRectangle",function(a,y,x){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var b="rr"+y+","+x+","+a,E=Qt.Mf[b];if(E!==void 0)return E;var te=a*Qt.wg;return E=new Yn().add(new _a(a,0,!0).add(new zi(yo,y-a,0)).add(new zi(as,y,a,y-te,0,y,te)).add(new zi(yo,y,x-a)).add(new zi(as,y-a,x,y,x-te,y-te,x)).add(new zi(yo,a,x)).add(new zi(as,0,x-a,te,x,0,x-te)).add(new zi(yo,0,a)).add(new zi(as,a,0,0,te,te,0).close())),1<te&&(E.spot1=new wr(0,0,te,te),E.spot2=new wr(1,1,-te,-te)),Qt.Nf<Qt.vm&&(Qt.Mf[b]=E,Qt.Nf++),E}),Os("Border","RoundedRectangle"),Os("Ellipse",function(a,y,x){a="e"+y+","+x;var b=Qt.Mf[a];return b!==void 0||(b=new Yn(Yn.F),b.endX=y,b.endY=x,b.spot1=zu,b.spot2=_l,Qt.Nf<Qt.vm&&(Qt.Mf[a]=b,Qt.Nf++)),b}),Os("Circle",function(a,y,x){a="c"+y+","+x;var b=Qt.Mf[a];return b!==void 0||(b=new Yn(Yn.F),b.endX=y,b.endY=x,b.spot1=zu,b.spot2=_l,b.defaultStretch=yr,Qt.Nf<Qt.vm&&(Qt.Mf[a]=b,Qt.Nf++)),b}),Os("TriangleRight",function(a,y,x){return new Yn().add(new _a(0,0).add(new zi(yo,y,.5*x)).add(new zi(yo,0,x).close())).pm(0,.25,.5,.75)}),Os("TriangleDown",function(a,y,x){return new Yn().add(new _a(0,0).add(new zi(yo,y,0)).add(new zi(yo,.5*y,x).close())).pm(.25,0,.75,.5)}),Os("TriangleLeft",function(a,y,x){return new Yn().add(new _a(y,x).add(new zi(yo,0,.5*x)).add(new zi(yo,y,0).close())).pm(.5,.25,1,.75)}),Os("TriangleUp",function(a,y,x){return new Yn().add(new _a(y,x).add(new zi(yo,0,x)).add(new zi(yo,.5*y,0).close())).pm(.25,.5,.75,1)}),Os("Triangle","TriangleUp"),Os("Diamond",function(a,y,x){return new Yn().add(new _a(.5*y,0).add(new zi(yo,0,.5*x)).add(new zi(yo,.5*y,x)).add(new zi(yo,y,.5*x).close())).pm(.25,.25,.75,.75)}),Os("LineH",function(a,y,x){return a=new Yn(Yn.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),Os("LineV",function(a,y,x){return a=new Yn(Yn.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),Os("None","Rectangle"),Os("BarH","Rectangle"),Os("BarV","Rectangle"),Os("MinusLine","LineH"),Os("PlusLine",function(a,y,x){return new Yn().add(new _a(0,x/2,!1).add(new zi(yo,y,x/2)).add(new zi(ga,y/2,0)).add(new zi(yo,y/2,x)))}),Os("XLine",function(a,y,x){return new Yn().add(new _a(0,x,!1).add(new zi(yo,y,0)).add(new zi(ga,0,0)).add(new zi(yo,y,x)))}),Os("LineRight",function(a,y,x){return new Yn().add(new _a(.25*y,0,!1).add(new zi(yo,.75*y,.5*x)).add(new zi(yo,.25*y,x)))}),Os("LineDown",function(a,y,x){return new Yn().add(new _a(0,.25*x,!1).add(new zi(yo,.5*y,.75*x)).add(new zi(yo,y,.25*x)))}),Os("LineLeft",function(a,y,x){return new Yn().add(new _a(.75*y,0,!1).add(new zi(yo,.25*y,.5*x)).add(new zi(yo,.75*y,x)))}),Os("LineUp",function(a,y,x){return new Yn().add(new _a(0,.75*x,!1).add(new zi(yo,.5*y,.25*x)).add(new zi(yo,y,.75*x)))}),Qt.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 Dv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Ia,this.ir=null,this.jr="",this.lr=qi,this.Gq="",this.Hq=Ua,this.Pq=Mo,this.Kq=Oi,this.Up=null,this.Cq=127,this.zr=wo,this.yr="gray",this.Vg=4}Dv.prototype.copy=function(){var a=new Dv;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 Tr(a,y){a===void 0||a instanceof Ha||typeof a=="string"?Kn.call(this,a):(Kn.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 Lt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new Tn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Jt(Tr,Kn),Tr.prototype.cloneProtected=function(a){Kn.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},it=Tr.prototype,it.Af=function(a){Kn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},it.toString=function(){var a=gn(this.constructor)+"#"+Mi(this);return this.data!==null&&(a+="("+Nn(this.data)+")"),a};function ul(a){a.P===null?a.P=new Dv:a.P.nc&&(a.P=a.P.copy())}it.th=function(){Kn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},it.gk=function(a,y,x,b,E,te,ne){var se=this.diagram;se!==null&&(a===sa&&y==="elements"?E instanceof Kn?Ud(E,function(he){ly(se.partManager,he),Fd(se,he)}):Yh(se,E):a===Ma&&y==="elements"&&(E instanceof Kn?Ud(E,function(he){uy(se.partManager,he,se)}):Jp(se,E)),se.cb(a,y,x,b,E,te,ne))},it.La=function(a){if(Kn.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E instanceof Kn&&Ud(E,function(te){te.data!==null&&te.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Tr.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Tr.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Tr.prototype.bh=function(a,y){if(y!==null){var x=null,b=this.Qf;if(b!==null&&(x=b.I(a)),x!==y){if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}b===null&&(this.Qf=b=new dr),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)))}}},Tr.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)}},Tr.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]);In(y)}},Tr.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()}e:{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 ei?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Gi))break e;Su(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=Kn.Link),x.adornedObject=y)}if(x!==null){x.type===Kn.Link&&x.v(),this.bh("Selection",x);break e}}this.Jf("Selection")}for(Cx(this,a),y=this.adornments;y.next();)y.value.La()}},Tr.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Fv(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Cx(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function Um(a){if(ed(a)===!1){Rv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function A1(a){if(a.G|=2097152,ed(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||D1(a,y,x),x=a.Ib;var b=Tn.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),Tn.free(b),Rv(a,!1)}}Tr.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new pi);var te=this.Lb;te.reset(),this.no(te,a,y,x,b),this.Lb=te,te.ws()||te.pp(E)},Tr.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var te=Di;this.locationSpot.sb()&&(te=this.locationSpot);var ne=Lt.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,ne.yi(x.x,x.y,x.width,x.height,te),y.Lb!==null&&y.Lb.Ga(ne),ne.offset(-y.measuredBounds.x,-y.measuredBounds.y),te=y.panel;te!==null&&te!==this;)te.Lb!==null&&te.Lb.Ga(ne),ne.offset(-te.measuredBounds.x,-te.measuredBounds.y),te=te.panel;else ne.yi(y,x,b,E,te);a.rotate(this.Kb,ne.x,ne.y),Lt.free(ne)}},Tr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Tr.prototype.moveTo=function(a,y,x){a=Lt.allocAt(a,y),this.move(a,x),Lt.free(a)},Tr.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())},Tr.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())},Tr.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new dr),y.I(a)!==null)return y.I(a);var x=Kn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Th(a,y,x,b){b===void 0&&(b=new Lt),x=x.Mc()?Di:x;var E=y.naturalBounds;if(b.h(E.width*x.x+x.offsetX,E.height*x.y+x.offsetY),y===null||y===a)return b;for(y.transform.Ga(b),y=y.panel;y!==null&&y!==a;)y.transform.Ga(b),y=y.panel;return a.Lb!==null&&a.Lb.Ga(b),b.offset(-a.uc.x,-a.uc.y),b}Tr.prototype.mi=function(a){return a===void 0&&(a=new Tn),a.assign(this.actualBounds)},Tr.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function j1(a){var y=Lt.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof hi?x.strokeWidth:0;if(y.yi(0,0,b.width+E,b.height+E,a.locationSpot),x!==a)for(y.offset(-E/2,-E/2),x.transform.Ga(y),x=x.panel;x!==null&&x!==a;)x.transform.Ga(y),x=x.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function Zd(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=c1(a));var b=a.ag,E=2*b;if(!a.isShadowed)return x.h(y.x-1-b,y.y-1-b,y.width+2+E,y.height+2+E),x;b=y.x,E=y.y;var te=y.width;y=y.height;var ne=a.shadowBlur;return a=a.shadowOffset,te+=ne,y+=ne,b-=ne/2,E-=ne/2,0<a.x?te+=a.x:(b+=a.x,te-=a.x),0<a.y?y+=a.y:(E+=a.y,y-=a.y),x.h(b-1,E-1,te+2,y+2),x}Tr.prototype.arrange=function(){if(Ws(this)===!1)A1(this);else{Mc(this,!1);var a=this.Ib,y=Tn.alloc();y.assign(a);var x=td(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;D1(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()||Qt.B(y.width,a.width)&&Qt.B(y.height,a.height)||0<=this.vw&&this.C(16),Tn.free(y),Rv(this,!1)}},it=Tr.prototype,it.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=Tn.alloc();E.assign(x.documentBounds),E.Fv(x.padding),a.x>E.x&&a.y>E.y&&a.right<E.right&&a.bottom<E.bottom&&y.x>E.x&&y.y>E.y&&y.right<E.right&&y.bottom<E.bottom&&(b=!0),Tn.free(E)}!(this.G&65536)&&a.D(y)||R1(this,b,x),x.N(),!a.w()&&!y.w()||Zi(a,y)||(this instanceof sr&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},it.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&I1(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 Lt(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),ed(this)===!1&&Ws(this)===!1&&(Um(this),A1(this)),!0};function I1(a,y,x,b,E){y===null||a instanceof Gi||(y=y.animationManager,y.zb&&$u(y,a,new Lt(b,E),x))}it.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;ed(this)||Ws(this)?E.h(NaN,NaN):E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}else{if(E.x===a&&E.y===y)return;b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}Um(this)},it.Av=function(){this.G&=-2097153,Um(this)};function D1(a,y,x){var b=j1(a),E=a.diagram,te=x.w(),ne=y.w();te&&ne?a.G&2097152?F1(a,y,x,E,b):B1(a,y,x,E,b):te?F1(a,y,x,E,b):ne&&B1(a,y,x,E,b),a.G|=2097152,Lt.free(b),a.Uk()}function F1(a,y,x,b,E){var te=y.x,ne=y.y;y.h(x.x-E.x,x.y-E.y),b!==null&&(x=b.animationManager,(b=x.defaultAnimation.isAnimating)||!x.zb||a instanceof Gi||$u(x,a,new Lt(te,ne),y),b||y.x===te&&y.y===ne||a.g("position",new Lt(te,ne),y.copy()))}function B1(a,y,x,b,E){var te=x.copy();x.h(y.x+E.x,y.y+E.y),x.D(te)||b===null||a.g("location",te,x.copy())}function R1(a,y,x){_v(a,!1),a instanceof sr&&Sh(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?td(a)?(No(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}it.si=function(){return!0},it.Zc=function(){return!0},it.ph=function(){return!1},it.Dd=function(){return!0};function Bv(a,y,x,b){y.constructor===a.constructor||H1||(H1=!0,ar('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),ar(" Old class: "+gn(a.constructor)+", new class: "+gn(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var te=a.isSelected,ne=a.isHighlighted,se=!0,he=!0,ge=!1;a instanceof sr&&(se=a.isTreeLeaf,he=a.isTreeExpanded,ge=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=b,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,b=!0,y!==null&&(b=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=E,a.G=te?a.G|4096:a.G&-4097,a.G=ne?a.G|524288:a.G&-524289,a instanceof sr&&(a.U=se?a.U|4:a.U&-5,a.U=he?a.U|1:a.U&-2,a.U=ge?a.U|2:a.U&-3),E!==null&&a.La(),E=a.layerName,E!==x&&(a.Jg=x,a.layerName=E),y!==null&&(y.skipsUndoManager=b),a.Zc()&&a.C(64)}Tr.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},Tr.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},Tr.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},Tr.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},Tr.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},Tr.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},Tr.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},Tr.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},Tr.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 ed(a){return(a.G&32768)!==0}function Rv(a,y){a.G=y?a.G|32768:a.G&-32769}function _v(a,y){a.G=y?a.G|65536:a.G&-65537}function td(a){return(a.G&131072)!==0}it=Tr.prototype,it.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function $m(a,y){a.G=y?a.G|1048576:a.G&-1048577}it.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},it.N=function(){var a=this.diagram;a!==null&&!Ws(this)&&!ed(this)&&this.isVisible()&&this.Ib.w()&&a.N(Zd(this,this.Ib))},it.v=function(){Kn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof sr&&this.labeledLink!==null&&Gs(this.labeledLink),a.$b(!0))},it.Vo=function(a){a||(a=this.Ah,a!==null&&$v(a,this))},it.Wo=function(a){a||(a=this.Ah,a!==null&&Kv(a,this))},it.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},it.oz=function(){return zv(this,this)};function zv(a,y){var x=y.containingGroup;return x!==null?1+zv(a,x):y instanceof sr&&(y=y.labeledLink,y!==null)?zv(a,y):0}it.sz=function(){return _1(this,this)};function _1(a,y){var x=y.containingGroup;return x!==null||y instanceof sr&&(x=y.labeledLink,x!==null)?_1(a,x):y}it.Td=function(a){return a instanceof ei?Hv(this,this,a):!1};function Hv(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!Hv(a,b,x)?y instanceof sr&&(y=y.labeledLink,y!==null)?Hv(a,y,x):!1:!0}it.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof ei&&$m(y,!0),y instanceof sr){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 sr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof ei&&$m(y,!1),y instanceof sr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},Tr.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof sr&&this.isLinkLabel)},Tr.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 sr&&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 z1(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function nd(a,y,x,b,E,te){if(te===void 0&&(te=null),!(a.contains(y)||te!==null&&!te(y)||y instanceof Gi)){if(a.add(y),y instanceof sr){if(x&&y instanceof ei)for(var ne=y.memberParts;ne.next();)nd(a,ne.value,x,b,E,te);if(E!==!1)for(ne=y.linksConnected;ne.next();){var se=ne.value;if(!a.contains(se)){var he=se.fromNode,ge=se.toNode;he=he===null||a.contains(he),ge=ge===null||a.contains(ge),(E?he&&ge:he||ge)&&nd(a,se,x,b,E,te)}}if(1<b)for(y=y.Ou();y.next();)nd(a,y.value,x,b-1,E,te)}else if(y instanceof Vn)for(y=y.labelNodes;y.next();)nd(a,y.value,x,b,E,te)}}jt.Object.defineProperties(Tr.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?gi: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(Ma,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(sa,"parts",a,null,this,!0,b),b=this.layerChanged,b!==null){var E=x.aa;x.aa=!0,b(this,y,a),x.aa=E}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(ul(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&&gu(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 Gi?this.type!==Kn.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:Mo},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),ul(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:Oi},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),ul(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&&(ul(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:Ua},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),ul(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,Ws(this)===!1&&(Um(this),x=this.pa,x.w())){var E=this.diagram;if(E===null||E.animationManager.isTicking||!E.undoManager.isUndoingRedoing){var te=x.copy();x.h(x.x+(y.x-b.x),x.y+(y.y-b.y)),I1(this,E,x,te.x,te.y),this.g("position",te,x.copy())}}y=!0}y&&this.g("location",b,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var x=this.diagram,b=this.data,E=null;if(x!==null&&b!==null&&!(this instanceof Gi)){var te=x.model.undoManager;te.isEnabled&&!te.isUndoingRedoing&&(E=this.clone(),E.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||b===null||this instanceof Gi?this instanceof Gi&&(E=this.adornedPart,E!==null&&(a=E.Qf,a!==null&&a.remove(y),E.bh(this.category,this))):(te=x.model,te.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(b,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(Su(x),x=x.copy(),x!==null&&Bv(this,x,y,a))):(te!==null&&te.jm(b,a),x=dS(x.partManager,b,a),x!==null&&(Su(x),x=x.copy(),x===null||x instanceof Vn||(b=this.location.copy(),Bv(this,x,y,a),this.location.w()||(this.location=b)))),E!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",E,y))))}}},self:{get:function(){return this},set:function(a){Bv(this,a,this.category,a.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(a){var y=(this.G&1)!==0;y!==a&&(this.G^=1,this.g("copyable",y,a))}},deletable:{get:function(){return(this.G&2)!==0},set:function(a){var y=(this.G&2)!==0;y!==a&&(this.G^=2,this.g("deletable",y,a))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(a){var y=(this.G&4)!==0;y!==a&&(this.G^=4,this.g("textEditable",y,a),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(a){var y=(this.G&8)!==0;y!==a&&(this.G^=8,this.g("groupable",y,a))}},movable:{get:function(){return(this.G&16)!==0},set:function(a){var y=(this.G&16)!==0;y!==a&&(this.G^=16,this.g("movable",y,a))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(a){var y=(this.G&32)!==0;y!==a&&(this.G^=32,this.g("selectionAdorned",y,a),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(a){var y=(this.G&64)!==0;if(y!==a){this.G^=64;var x=this.diagram;x!==null&&x.Ya(),this.g("isInDocumentBounds",y,a)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(a){var y=(this.G&128)!==0;y!==a&&(this.G^=128,this.g("isLayoutPositioned",y,a),this.C(a?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(a){var y=(this.G&256)!==0;y!==a&&(this.G^=256,this.g("selectable",y,a),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(a){var y=(this.G&512)!==0;y!==a&&(this.G^=512,this.g("reshapable",y,a),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(a){var y=(this.G&1024)!==0;y!==a&&(this.G^=1024,this.g("resizable",y,a),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(a){var y=(this.G&2048)!==0;y!==a&&(this.G^=2048,this.g("rotatable",y,a),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(a){var y=(this.G&4096)!==0;if(y!==a){var x=this.diagram;if(!a||this.canSelect()&&!(x!==null&&x.selection.count>=x.maxSelectionCount)){this.G^=4096;var b=!1;if(x!==null){b=x.skipsUndoManager,x.skipsUndoManager=!0;var E=x.selection;E.ka(),a?E.add(this):E.remove(this),E.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=b)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(ul(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&&(ul(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&&(ul(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 Vn?(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&&(ul(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&&(ul(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&&(ul(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:Ia},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),ul(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&&(ul(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&&(ul(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:qi},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),ul(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&&Zt("Cannot make a Group a member of itself: "+this.toString()),Zt("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Kv(y,this):this instanceof ei&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?$v(a,this):this instanceof ei&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var b=this.data,E=x.model;if(b!==null&&E.Xj()){var te=E.wa(a!==null?a.data:null);E.mp(b,te)}}if(b=this.containingGroupChanged,b!==null&&(E=!0,x!==null&&(E=x.aa,x.aa=!0),b(this,y,a),x!==null&&(x.aa=E)),this instanceof ei){for(x=new Dn,nd(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof sr)for(b=b.linksConnected;b.next();)Sp(b.value)}if(this instanceof sr){for(x=this.linksConnected;x.next();)Sp(x.value);x=this.labeledLink,x!==null&&Sp(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&gu(y,-1,a))}}else Zt("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&&(ul(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof sr&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(ul(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&&(ul(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:wo},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),ul(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&&(ul(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&&(ul(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Tr.prototype.invalidateLayout=Tr.prototype.C,Tr.prototype.findCommonContainingGroup=Tr.prototype.px,Tr.prototype.isMemberOf=Tr.prototype.Td,Tr.prototype.findTopLevelPart=Tr.prototype.sz,Tr.prototype.findSubGraphLevel=Tr.prototype.oz,Tr.prototype.ensureBounds=Tr.prototype.Va,Tr.prototype.getDocumentBounds=Tr.prototype.mi,Tr.prototype.findObject=Tr.prototype.fb,Tr.prototype.moveTo=Tr.prototype.moveTo,Tr.prototype.invalidateAdornments=Tr.prototype.Wb,Tr.prototype.clearAdornments=Tr.prototype.Ej,Tr.prototype.removeAdornment=Tr.prototype.Jf,Tr.prototype.addAdornment=Tr.prototype.bh,Tr.prototype.findAdornment=Tr.prototype.Pj,Tr.prototype.updateTargetBindings=Tr.prototype.La;var H1=!1;Tr.className="Part",Tr.LayoutNone=0,Tr.LayoutAdded=1,Tr.LayoutRemoved=2,Tr.LayoutShown=4,Tr.LayoutHidden=8,Tr.LayoutNodeSized=16,Tr.LayoutGroupLayout=32,Tr.LayoutNodeReplaced=64,Tr.LayoutStandard=127,Tr.LayoutAll=16777215;function Gi(a,y){a===void 0||a instanceof Ha||typeof a=="string"?Tr.call(this,a):(Tr.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)}Jt(Gi,Tr),Gi.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Gi.prototype.updateRelationshipsFromData=function(){},Gi.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Vn&&y instanceof hi){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var b=0;b<y;b++){var E=x[b];E.isPanelMain&&E instanceof hi&&(E.ua=a)}}},Gi.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Ws(a))},Gi.prototype.Zc=function(){return!1},Gi.prototype.gk=function(a,y,x,b,E,te,ne){if(a===sa&&y==="elements"){if(E instanceof $s)this.$a===null&&(this.$a=E);else if(E instanceof Kn){var se=E.Nl(function(he){return he instanceof $s});se instanceof $s&&this.$a===null&&(this.$a=se)}}else a===Ma&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Kn&&this.$a.rg(b)&&(this.$a=null));Tr.prototype.gk.call(this,a,y,x,b,E,te,ne)},Gi.prototype.updateAdornments=function(){},Gi.prototype.Lj=function(){},jt.Object.defineProperties(Gi.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}}}),Gi.className="Adornment";function Gv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Dl,this.er=Vm,this.Kr=this.ij=this.Nq=this.Mq=null}Gv.prototype.copy=function(){var a=new Gv;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 sr(a,y){a===void 0||a instanceof Ha||typeof a=="string"?Tr.call(this,a):(Tr.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new An,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Jt(sr,Tr),sr.prototype.cloneProtected=function(a){Tr.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},it=sr.prototype,it.Af=function(a){Tr.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Mh(a){a.Ba===null?a.Ba=new Gv:a.Ba.nc&&(a.Ba=a.Ba.copy())}it.th=function(){Tr.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function G1(a,y){y!==null&&(a.af===null&&(a.af=new Dn),a.af.add(y))}function W1(a,y,x,b){if(y===null||a.af===null)return null;for(var E=a.af.iterator;E.next();){var te=E.value;if(te.Ds===a&&te.cv===y&&te.Ox===x&&te.Px===b||te.Ds===y&&te.cv===a&&te.Ox===b&&te.Px===x)return te}return null}it.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=W1(this,a,y,x),a!==null&&a.Sl()},it.gk=function(a,y,x,b,E,te,ne){a===sa&&y==="elements"?this.wc=null:a===Ma&&y==="elements"&&(this.wc=null),Tr.prototype.gk.call(this,a,y,x,b,E,te,ne)},it.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(Ml(x.fromPort),Ml(x.toPort),x.bb())}};function U1(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(Ml(x.fromPort),Ml(x.toPort),x.bb())}}function Ml(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Ml(y.port)}}it.si=function(){return!0},sr.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},sr.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},sr.prototype.isVisible=function(){if(!Tr.prototype.isVisible.call(this))return!1;var a=!0,y=wh,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===wh){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Na){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===ip&&(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},sr.prototype.Zb=function(a){Tr.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)}},sr.prototype.qx=function(){var a=new Dn,y=new Dn;return $1(this,this,a,y),y.iterator};function $1(a,y,x,b){if(y!==null&&!x.has(y)){x.add(y);var E=!0,te=a.diagram;te!==null&&(E=te.isTreePathToChildren),y.linksConnected.each(function(ne){ne.isTreeLink?(E?ne.fromNode===y:ne.toNode===y)&&$1(a,E?ne.toNode:ne.fromNode,x,b):b.add(ne)})}}sr.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new vr(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},it=sr.prototype,it.Mo=function(a){a===void 0&&(a=null);var y=new vr(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},it.Sd=function(a){a===void 0&&(a=null);var y=new vr(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},it.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode===this?(a===null||E.fromPortId===a)&&(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Dn,y.add(x),y.add(E)):x=E):E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Dn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new _r(x):gi},it.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode!==this||a!==null&&E.fromPortId!==a||(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Dn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new _r(x):gi},it.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Dn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new _r(x):gi},it.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new vr(this.jb),E=this;return b.predicate=function(te){return!((te.fromNode!==E||te.toNode!==a||y!==null&&te.fromPortId!==y||x!==null&&te.toPortId!==x)&&(te.fromNode!==a||te.toNode!==E||x!==null&&te.fromPortId!==x||y!==null&&te.toPortId!==y))},b},it.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new vr(this.jb),E=this;return b.predicate=function(te){return!(te.fromNode!==E||te.toNode!==a||y!==null&&te.fromPortId!==y||x!==null&&te.toPortId!==x)},b};function Km(a,y,x){Ml(x);var b=a.jb.contains(y);if(b||a.jb.add(y),!b||y.fromNode===y.toNode){var E=a.linkConnected;if(E!==null){var te=!0,ne=a.diagram;ne!==null&&(te=ne.aa,ne.aa=!0),E(a,y,x),ne!==null&&(ne.aa=te)}}!b&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(b=!0,a=a.diagram,a!==null&&(b=a.isTreePathToChildren),E=b?y:x,te=b?x:y,E.ci||(E.ci=te),!te.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(b?x===te&&(te.isTreeLeaf=!1):y===te&&(te.isTreeLeaf=!1))))}function Zm(a,y,x){Ml(x);var b=a.jb.remove(y),E=null;if(b||y.toNode===y.fromNode){var te=a.linkDisconnected;if(E=a.diagram,te!==null){var ne=!0;E!==null&&(ne=E.aa,E.aa=!0),te(a,y,x),E!==null&&(E.aa=ne)}}b&&y.isTreeLink&&(x=!0,E!==null&&(x=E.isTreePathToChildren),a=x?y.toNode:y.fromNode,y=x?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,E!==null&&E.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):Sg(y)))}function Sg(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}}}sr.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},it=sr.prototype,it.Vo=function(a){Tr.prototype.Vo.call(this,a),a||(Sg(this),a=this.Yk,a!==null&&eS(a,this))},it.Wo=function(a){Tr.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},it.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,Tr.prototype.Lj.call(this)},it.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;K1(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function K1(a){a.wc===null?a.wc=new dr:a.wc.clear(),a.qm(a,function(y,x){Z1(y,x)}),a.wc.count===0&&a.wc.add("",a)}function Z1(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Wv(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]);In(x)}}}it.Nz=function(a){if(a===null||a===this)return!1;var y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this,y)for(;x!==a;){y=null;for(var b=x.jb.iterator;b.next();){var E=b.value;if(E.isTreeLink&&(y=E.fromNode,y!==x&&y!==this))break}if(y===this||y===null||y===x)return!1;x=y}else for(;x!==a;){for(y=null,b=x.jb.iterator;b.next()&&(E=b.value,!E.isTreeLink||(y=E.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},it.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}},it.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)$m(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;)$m(y,!1),y=y.pg();return x},it.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},it.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof sr)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},it.vz=function(){function a(x,b){b.add(x);var E=x.kh();E!==null&&(b.add(E),x=x.pg(),x!==null&&a(x,b))}var y=new Dn;return a(this,y),y},it.uz=function(){return V1(this,this)};function V1(a,y){return y=y.pg(),y===null?0:1+V1(a,y)}it.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new vr(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},it.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 An,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 An,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new _r(x):gi},it.wz=function(a){a===void 0&&(a=1/0);var y=new Dn;return nd(y,this,!1,a,!0),y},sr.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 Dn;x.add(this),X1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===wh),y.Ue=!1}};function X1(a,y,x,b,E,te,ne){if(1<b)for(var se=x?a.Mo():a.Sd();se.next();){var he=se.value;he.isTreeLink&&(he=he.To(a),he===null||he===a||y.contains(he)||(y.add(he),X1(he,y,x,b-1,E,te,ne)))}else Y1(a,y,x,E,te,ne)}function Y1(a,y,x,b,E,te){for(var ne=E===a?!0:a.isTreeExpanded,se=x?a.Mo():a.Sd(),he={};se.next();){var ge=se.value;if(ge.isTreeLink&&(ge=ge.To(a),ge!==null&&ge!==a)){var ye=y.contains(ge);if(ye||y.add(ge),ne){var De=x?ge.Oo():ge.Po();he.uv=a,De.all(function($e){return function(Qe){return Qe===$e.uv||!Qe.isTreeExpanded}}(he))&&b.Aj(ge,E),ge.oh(),ge.Zb(!1)}ge.isTreeExpanded&&(ge.wasTreeExpanded=ge.isTreeExpanded,ye||Y1(ge,y,x,b,E,te))}he={uv:he.uv}}a.isTreeExpanded=!1}sr.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 Dn;x.add(this),J1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===wh),y.Ue=!1}};function J1(a,y,x,b,E,te,ne){for(var se=te===a?!1:a.isTreeExpanded,he=x?a.Mo():a.Sd(),ge={};he.next();){var ye=he.value;if(ye.isTreeLink&&(se||ye.fd||ye.bb(),ye=ye.To(a),ye!==null&&ye!==a&&!y.contains(ye))){if(y.add(ye),!se){ye.Zb(!0),ye.oh();var De=x?ye.Oo():ye.Po();ge.vv=a,De.all(function($e){return function(Qe){return Qe===$e.vv||!Qe.isTreeExpanded}}(ge))&&E.Cj(ye,te)}(2<b||ye.wasTreeExpanded)&&(ye.wasTreeExpanded=!1,J1(ye,y,x,b-1,E,te,ne))}ge={vv:ge.vv}}a.isTreeExpanded=!0}jt.Object.defineProperties(sr.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Vm},set:function(a){var y=this.portSpreading;y!==a&&(Mh(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&&Sh(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Dl},set:function(a){typeof a=="number"&&(a=new kr(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Mh(this),this.Ba.yp=a;var x=this.diagram;x!==null&&Sh(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&&(Mh(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&&(Mh(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&&(Mh(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var x=this.diagram,b=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&b!==null&&!x.undoManager.isUndoingRedoing){var E=y.data,te=x.model;if(E!==null&&te.ri()){var ne=te.wa(b);ne!==void 0&&te.Qx(E,ne)}}this.containingGroup=null}this.Yk=a,a!==null&&(eS(a,this),x===null||b===null||x.undoManager.isUndoingRedoing||(E=a.data,x=x.model,E!==null&&x.ri()&&(b=x.wa(b),b!==void 0&&x.Bu(E,b))),this.containingGroup=a.containingGroup),Gs(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&K1(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&&(Mh(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))}}}),sr.prototype.expandTree=sr.prototype.expandTree,sr.prototype.collapseTree=sr.prototype.collapseTree,sr.prototype.findTreeParts=sr.prototype.wz,sr.prototype.findTreeChildrenNodes=sr.prototype.Ou,sr.prototype.findTreeChildrenLinks=sr.prototype.Qo,sr.prototype.findTreeLevel=sr.prototype.uz,sr.prototype.findTreeParentChain=sr.prototype.vz,sr.prototype.findTreeParentNode=sr.prototype.pg,sr.prototype.findTreeParentLink=sr.prototype.kh,sr.prototype.findCommonTreeParent=sr.prototype.gz,sr.prototype.findTreeRoot=sr.prototype.xz,sr.prototype.isInTreeOf=sr.prototype.Nz,sr.prototype.findPort=sr.prototype.ns,sr.prototype.findLinksTo=sr.prototype.kz,sr.prototype.findLinksBetween=sr.prototype.jz,sr.prototype.findNodesInto=sr.prototype.Oo,sr.prototype.findNodesOutOf=sr.prototype.Po,sr.prototype.findNodesConnected=sr.prototype.Mu,sr.prototype.findLinksInto=sr.prototype.Sd,sr.prototype.findLinksOutOf=sr.prototype.Mo,sr.prototype.findExternalTreeLinksConnected=sr.prototype.qx,sr.prototype.invalidateConnectedLinks=sr.prototype.Bd,sr.prototype.invalidateLinkBundle=sr.prototype.Lz;var Ex=new en(sr,"SpreadingNone",10),Vm=new en(sr,"SpreadingEvenly",11),Uv=new en(sr,"SpreadingPacked",12);sr.className="Node",sr.SpreadingNone=Ex,sr.SpreadingEvenly=Vm,sr.SpreadingPacked=Uv;function ei(a,y){a===void 0||a instanceof Ha||typeof a=="string"?sr.call(this,a):(sr.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Dn,this.$a=null,this.Sc=new Ro,this.Sc.group=this,this.gl=new Dn,this.tb=this.$p=null,y&&Object.assign(this,y)}Jt(ei,sr),ei.prototype.cloneProtected=function(a){sr.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof $s});y instanceof $s?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())},it=ei.prototype,it.Af=function(a){sr.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 sr)x.Bd(y);else if(x instanceof Vn)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},it.gk=function(a,y,x,b,E,te,ne){if(a===sa&&y==="elements"){if(E instanceof $s)this.$a===null?this.$a=E:this.$a!==E&&Zt("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof Kn){var se=E.Nl(function(he){return he instanceof $s});se instanceof $s&&(this.$a===null?this.$a=se:this.$a!==se&&Zt("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Ma&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Kn&&this.$a.rg(b)&&(this.$a=null));sr.prototype.gk.call(this,a,y,x,b,E,te,ne)},it.Xl=function(a,y){sr.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Kn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Kn&&(a=a.Pb()),this.tb===null&&(this.tb=new Tn),a.mi(this.tb),a instanceof hi&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},it.eh=function(a,y,x,b){this.nf=this.$a,sr.prototype.eh.call(this,a,y,x,b)},it.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Vn||y.Va()}),sr.prototype.Va.call(this)},it.si=function(){if(!sr.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof sr){if(y.isVisible()&&Ws(y))return!1}else if(y instanceof Vn&&y.isVisible()&&Ws(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function $v(a,y){if(a.Gn.add(y)){y instanceof ei&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof Vn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Kv(a,y){if(a.Gn.remove(y)){y instanceof ei&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof Vn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}it.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)}sr.prototype.Lj.call(this)},ei.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=Sn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},ei.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=Sn(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},ei.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))},it=ei.prototype,it.Bd=function(a){var y=(this.U&65536)!==0;if(sr.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()?(Ml(x.fromPort),Ml(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(Ml(x.fromPort),Ml(x.toPort),x.bb()))}}},it.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 Dn,b=y.iterator;b.next();){var E=b.value;if(E instanceof sr)for(E=E.linksConnected;E.next();){var te=E.value;y.contains(te)||x.add(te)}}return a&&(this.$p=x),x.iterator},it.iz=function(){var a=this.Rj();a.add(this);for(var y=new Dn,x=a.iterator;x.next();){var b=x.value;if(b instanceof sr)for(b=b.linksConnected;b.next();){var E=b.value,te=E.fromNode;te===null||a.contains(te)&&te!==this||y.add(te),E=E.toNode,E===null||a.contains(E)&&E!==this||y.add(E)}}return y.iterator},it.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new Dn;return a(this,y),y},it.Rj=function(){var a=new Dn;return nd(a,this,!0,0,!0),a.remove(this),a},it.Zb=function(a){sr.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},ei.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();Q1(this,y,a,this),a.Ue=!1}};function Q1(a,y,x,b){for(var E=a.memberParts;E.next();){var te=E.value;if(te.Zb(!1),te instanceof ei&&te.isSubGraphExpanded&&(te.wasSubGraphExpanded=te.isSubGraphExpanded,Q1(te,y,x,b)),te instanceof sr)te.Bd(y),x.Aj(te,b);else if(te instanceof Vn)for(te=te.labelNodes;te.next();)te.value.Bd(y)}a.isSubGraphExpanded=!1}ei.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();q1(this,y,a,this),a.Ue=!1}};function q1(a,y,x,b){for(var E=a.memberParts;E.next();){var te=E.value;if(te.Zb(!0),te instanceof ei&&te.wasSubGraphExpanded&&(te.wasSubGraphExpanded=!1,q1(te,y,x,b)),te instanceof sr)te.Bd(y),x.Cj(te,b);else if(te instanceof Vn)for(te=te.labelNodes;te.next();)te.value.Bd(y)}a.isSubGraphExpanded=!0}ei.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,b=x.x;x=x.y;var E=a.x,te=a.y;if(!(b===E||isNaN(b)&&isNaN(E))||!(x===te||isNaN(x)&&isNaN(te))){for(b=E-(isNaN(b)?0:b),x=te-(isNaN(x)?0:x),te=Lt.alloc(),sr.prototype.move.call(this,a,y),a=new Dn,y=this.Rj().iterator;y.next();)E=y.value,E instanceof Vn&&(E.suspendsRouting&&a.add(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(E.suspendsRouting=!0);for(y.reset();y.next();)if(E=y.value,!(E.ph()||E instanceof sr&&E.isLinkLabel)){var ne=E.position,se=E.location;ne.w()?(te.x=ne.x+b,te.y=ne.y+x,E.position=te):se.w()&&(te.x=se.x+b,te.y=se.y+x,E.location=te)}for(y.reset();y.next();)E=y.value,E instanceof Vn&&(E.suspendsRouting=a.contains(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(ne=E.position,te.x=ne.x+b,te.y=ne.y+x,te.w()?E.move(te):E.bb(),Vv(E)&&E.bb());Lt.free(te)}},jt.Object.defineProperties(ei.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&&Zt("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&&(Mh(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&&(Mh(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&&(Mh(this),this.Ba.ij=a,this.g("memberValidation",y,a))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(a){var y=(this.U&256)!==0;y!==a&&(this.U^=256,this.g("ungroupable",y,a))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(a){var y=(this.U&512)!==0;if(y!==a){this.U^=512;var x=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(E){E.updateAdornments()})):a?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(a){var y=(this.U&1024)!==0;y!==a&&(this.U^=1024,this.g("wasSubGraphExpanded",y,a))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(a){var y=this.subGraphExpandedChanged;y!==a&&(Mh(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)}}}),ei.prototype.expandSubGraph=ei.prototype.expandSubGraph,ei.prototype.collapseSubGraph=ei.prototype.collapseSubGraph,ei.prototype.findSubGraphParts=ei.prototype.Rj,ei.prototype.findContainingGroupChain=ei.prototype.hz,ei.prototype.findExternalNodesConnected=ei.prototype.iz,ei.prototype.findExternalLinksConnected=ei.prototype.Lu,ei.prototype.ensureBounds=ei.prototype.Va,ei.className="Group";function $s(a){Yt.call(this),this.yb=Cs,this.ko=new Tn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Jt($s,Yt),$s.prototype.cloneProtected=function(a){Yt.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},$s.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Po(0,0,y.width,y.height,a.x,a.y)},$s.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof ei||a instanceof Gi)||Zt("Placeholder is not inside a Group or Adornment."),a instanceof ei){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(qa(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=Lt.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Lt.free(x))}else{y=this.dc,x=this.yb,b=x.left+x.right;var E=x.top+x.bottom,te=a.adornedObject;a.angle=te.li();var ne=0;te instanceof hi&&(ne=te.strokeWidth);var se=te.Df(),he=te.naturalBounds,ge=(he.width+ne)*se;ne=(he.height+ne)*se,a.type!==Kn.Link&&(se=te.ga(a.category==="Selection"?Ua:a.locationSpot,Lt.alloc()),a.location=se,Lt.free(se)),isNaN(ge)||isNaN(ne)?(a=te.ga(Ua,Lt.alloc()),ge=Tn.allocAt(a.x,a.y,0,0),ge.Ye(te.ga(As,a)),ge.Ye(te.ga(Fl,a)),ge.Ye(te.ga(el,a)),qa(y,ge.width+b||0,ge.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),Lt.free(a),Tn.free(ge)):(qa(y,ge+b||0,ne+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},$s.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},$s.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof ei&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var E=x.toolManager.findTool("Dragging");if(E===x.currentTool&&(x=E.computeBorder(y,this.ko,a),x!==null))return x}x=Tn.alloc(),E=this.computeMemberBounds(x);var te=this.yb;return y instanceof ei&&!y.isSubGraphExpanded?a.h(E.x-te.left,E.y-te.top,0,0):a.h(E.x-te.left,E.y-te.top,Math.max(E.width+te.left+te.right,0),Math.max(E.height+te.top+te.bottom,0)),Tn.free(x),b&&y instanceof ei&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},$s.prototype.computeMemberBounds=function(a){if(!(this.part instanceof ei))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,b=1/0,E=-1/0,te=-1/0,ne=y.memberParts;ne.next();){var se=ne.value;if(se.isVisible()){if(se instanceof Vn&&(!y.computesBoundsIncludingLinks||Vl(se)||se.fromNode===y||se.toNode===y))continue;se=se.actualBounds,se.left<x&&(x=se.left),se.top<b&&(b=se.top),se.right>E&&(E=se.right),se.bottom>te&&(te=se.bottom)}}return isFinite(x)&&isFinite(b)?a.h(x,b,E-x,te-b):(y=y.location,a.h(y.x,y.y,0,0)),a},jt.Object.defineProperties($s.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new kr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),$s.className="Placeholder";function Vn(a){Tr.call(this,Kn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Ks,this.Om=0,this.Qm=Ks,this.Rm=NaN,this.qj=Jv,this.po=.5,this.wd=null,this.Nb=new An().freeze(),this.Tg=this.Mg=null,this.ml=new Tn,this.ua=new Yn,this.u=this.o=this.Sf=this.Wf=null,this.su=new Lt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Jt(Vn,Tr),Vn.prototype.cloneProtected=function(a){Tr.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())},it=Vn.prototype,it.Af=function(a){Tr.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&&Ml(y),a=a.toPort,a!==null&&Ml(a)},it.qb=function(a){a.classType===Vn?(a.value&2)===2?this.routing=a:a===Yl||a===kh||a===wp?this.curve=a:a===bg||a===e0||a===t0?this.adjusting=a:a!==Jv&&a!==Ks&&Zt("Unknown Link enum value for a Link property: "+a):Tr.prototype.qb.call(this,a)},it.Xc=function(){this.ba===null&&(this.ba=new lg)},it.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Ws(a)||ed(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Ws(a)||ed(a)))},it.zv=function(){return!1},it.Av=function(){},it.Zc=function(){return!1},Vn.prototype.computeAngle=function(a,y,x){return Vn.computeAngle(y,x)},Vn.computeAngle=function(a,y){switch(a){default:case Ks:a=0;break;case Pg:a=y;break;case Cg:a=y+90;break;case Eg:a=y-90;break;case Qv:a=y+180;break;case n0:a=Qt.bp(y),90<a&&270>a&&(a-=180);break;case Tg:a=Qt.bp(y+90),90<a&&270>a&&(a-=180);break;case Mg:a=Qt.bp(y-90),90<a&&270>a&&(a-=180);break;case r0:if(a=Qt.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Qt.bp(a)};function Sp(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&&Kv(x,a),a.Ah=y,y!==null&&$v(y,a);var E=a.containingGroupChanged;if(E!==null){var te=!0,ne=a.diagram;ne!==null&&(te=ne.aa,ne.aa=!0),E(a,x,y),ne!==null&&(ne.aa=te)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}it=Vn.prototype,it.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Tr.prototype.oh.call(this)},it.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},it.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function eS(a,y){a.wd===null&&(a.wd=new Dn),a.wd.add(y),a.v()}it.Vo=function(a){if(Tr.prototype.Vo.call(this,a),Vd(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Km(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Km(x,this,b)}xg(this)}},it.Wo=function(a){if(Tr.prototype.Wo.call(this,a),Vd(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Zm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Zm(x,this,b)}wg(this)}},it.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))},Vn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Vn.prototype.move=function(a,y){var x=y?this.location:this.position,b=x.x;isNaN(b)&&(b=0);var E=x.y;for(isNaN(E)&&(E=0),b=a.x-b,E=a.y-E,y===!0?Tr.prototype.move.call(this,a,!1):(a=Lt.allocAt(x.x+b,x.y+E),Tr.prototype.move.call(this,a,!1),Lt.free(a)),Lh(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},Vn.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},Vn.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},Vn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Lo),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()===Yl))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()===Yl){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return Qt.ax(x.x,x.y,b.x,b.y,b.x,b.y,E.x,E.y,a),a}if(b=(y-1)/3|0,x=3*(b/2|0),b%2===1){b=this.i(x),E=this.i(x+1);var te=this.i(x+2);x=this.i(x+3),Qt.ax(b.x,b.y,E.x,E.y,te.x,te.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var ne=this.flattenedLengths;for(x=this.flattenedTotalLength,E=te=b=0;b<x/2&&te<y&&(E=ne[te],!(b+E>x/2));)b+=E,te++;return y=this.i(te),te=this.i(te+1),1>Math.abs(y.x-te.x)?y.y>te.y?a.h(y.x,y.y-(x/2-b)):a.h(y.x,y.y+(x/2-b)):1>Math.abs(y.y-te.y)?y.x>te.x?a.h(y.x-(x/2-b),y.y):a.h(y.x+(x/2-b),y.y):(x=(x/2-b)/E,a.h(y.x+x*(te.x-y.x),y.y+x*(te.y-y.y))),a},Vn.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()===Yl))return this.ua.wx(.5);if(this.computeCurve()===Yl&&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),Qt.My(a.x,a.y,y.x,y.y,b.x,b.y,x.x,x.y)}if(0<x&&x+1<a)return this.i(x-1).ab(this.i(x+1))}y=this.flattenedLengths,b=this.flattenedTotalLength;var E=0;x=0;for(var te;E<b/2&&x<a&&(te=y[x],!(E+te>b/2));)E+=te,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)},it=Vn.prototype,it.i=function(a){return this.Nb.s[a]},it.dd=function(a,y){this.Nb.cd(a,y)},it.L=function(a,y,x){this.Nb.cd(a,new Lt(y,x))},it.Kz=function(a,y){this.Nb.Gb(a,y)},it.m=function(a,y,x){this.Nb.Gb(a,new Lt(y,x))},it.ne=function(a){this.Nb.add(a)},it.yf=function(a,y){this.Nb.add(new Lt(a,y))},it.pv=function(a){this.Nb.mb(a)},it.Fj=function(){this.Nb.clear()};function Lh(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var b=a.fd,E=new An,te=a.Nb.iterator;te.next();){var ne=te.value;E.add(new Lt(ne.x+y,ne.y+x).freeze())}E.freeze(),te=a.Nb,a.Nb=E,ne=a.diagram,isNaN(y)||isNaN(x)||ne!==null&&ne.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),Gs(a)),b?Xm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ne!==null&&ne.animationManager.zb&&Co(ne.animationManager,a,E),a.g("points",te,E)}}it.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},it.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,E=a.s,te=E.length,ne=0;ne<te;ne++){var se=E[ne];x=Math.min(se.x,x),b=Math.min(se.y,b)}se=ne=1/0;for(var he=y.s,ge=he.length,ye=0;ye<ge;ye++){var De=he[ye];ne=Math.min(De.x,ne),se=Math.min(De.y,se),De.freeze()}if(y.freeze(),ge===te){for(te=0;te<ge;te++)if(ye=E[te],De=he[te],ye.x-x!==De.x-ne||ye.y-b!==De.y-se){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&Co(x.animationManager,this,y),Xm(this),this.g("points",a,y)}},it.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Xm(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),qm(a,!1))}it.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())}},it.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()}}},Vn.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(Tf||(Tf=new sr,Tf.desiredSize=no,Tf.Va()),this.defaultFromPoint&&(Tf.location=this.defaultFromPoint,Tf.Va(),y=a=Tf)):y=this.fromPort,y!==null&&!a.isVisible()){var x=a.findVisibleNode();x!==null&&x!==a?(a=x,y=x.port):a=x}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var b=this.toNode,E=null;if(b===null?(Mf||(Mf=new sr,Mf.desiredSize=no,Mf.Va()),this.defaultToPoint&&(Mf.location=this.defaultToPoint,Mf.Va(),E=b=Mf)):E=this.toPort,E===null||b.isVisible()||(x=b.findVisibleNode(),x!==null&&x!==b?(b=x,E=x.port):b=x),this.Mw=b,b===null||!b.location.w())return!1;for(;!(E===null||E.actualBounds.w()&&E.Ed());)E=E.panel;if(E===null)return!1;var te=this.pointsCount,ne=this.computeSpot(!0,y);x=this.computeSpot(!1,E);var se=xp(ne),he=xp(x),ge=y===E&&y!==null,ye=this.isOrthogonal,De=this.curve===Yl;this.Wf=ge&&!ye?De=!0:!1;var $e=this.computeAdjusting()===Ks||ge;if(!ye&&!ge&&se&&he){if(se=!1,!$e&&3<=te&&($e=this.getLinkPoint(a,y,ne,!0,!1,b,E),he=this.getLinkPoint(b,E,x,!1,!1,a,y),se=this.adjustPoints(0,$e,te-1,he))&&($e=this.getLinkPoint(a,y,ne,!0,!1,b,E),he=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,$e,te-1,he)),!se)if(this.Fj(),De){te=this.getLinkPoint(a,y,ne,!0,!1,b,E),$e=this.getLinkPoint(b,E,x,!1,!1,a,y),se=$e.x-te.x,he=$e.y-te.y,ge=this.computeCurviness(),De=ye=0;var Qe=te.x+se/3,rt=te.y+he/3,ut=Qe,Ot=rt;Qt.B(he,0)?Ot=0<se?Ot-ge:Ot+ge:(ye=-se/he,De=Math.sqrt(ge*ge/(ye*ye+1)),0>ge&&(De=-De),ut=(0>he?-1:1)*De+Qe,Ot=ye*(ut-Qe)+rt),Qe=te.x+2*se/3,rt=te.y+2*he/3;var Tt=Qe,Bt=rt;Qt.B(he,0)?Bt=0<se?Bt-ge:Bt+ge:(Tt=(0>he?-1:1)*De+Qe,Bt=ye*(Tt-Qe)+rt),this.Fj(),this.ne(te),this.yf(ut,Ot),this.yf(Tt,Bt),this.ne($e),this.dd(0,this.getLinkPoint(a,y,ne,!0,!1,b,E)),this.dd(3,this.getLinkPoint(b,E,x,!1,!1,a,y))}else te=b,$e=E,b=this.getLinkPoint(a,y,ne,!0,!1,te,$e),E=this.getLinkPoint(te,$e,x,!1,!1,a,y),this.hasCurviness()?($e=E.x-b.x,x=E.y-b.y,ne=this.computeCurviness(),a=b.x+$e/2,y=b.y+x/2,te=a,se=y,Qt.B(x,0)?se=0<$e?se-ne:se+ne:($e=-$e/x,te=Math.sqrt(ne*ne/($e*$e+1)),0>ne&&(te=-te),te=(0>x?-1:1)*te+a,se=$e*(te-a)+y),this.ne(b),this.yf(te,se),this.ne(E)):(this.ne(b),this.ne(E),se=Tn.alloc(),y.mi(se),he=se.ca(E),$e.mi(se),ge=se.ca(b),(he||ge)&&(ne=y.ga(Jm(ne),new Lt),this.dd(0,this.getLinkPointFromPoint(a,y,ne,E,!0,ne)),x=$e.ga(Jm(x),new Lt),this.dd(1,this.getLinkPointFromPoint(te,$e,x,b,!1,x))),Tn.free(se))}else{De=this.isAvoiding,$e&&(ye&&De||ge)&&this.Fj();var _t=ge?this.computeCurviness():0;De=this.getLinkPoint(a,y,ne,!0,ye,b,E),Qe=ut=rt=0,(ye||!se||ge)&&(Ot=this.computeEndSegmentLength(a,y,ne,!0),Qe=this.getLinkDirection(a,y,De,ne,!0,ye,b,E),ge&&(se||ne.D(x)||!ye&&ne.x+x.x===1&&ne.y+x.y===1)&&(Qe-=ye?90:30,0>_t&&(Qe-=180)),0>Qe?Qe+=360:360<=Qe&&(Qe-=360),ge&&(Ot+=Math.abs(_t)*(ye?1:2)),Qe===0?rt=Ot:Qe===90?ut=Ot:Qe===180?rt=-Ot:Qe===270?ut=-Ot:(rt=Ot*Math.cos(Qe*Math.PI/180),ut=Ot*Math.sin(Qe*Math.PI/180)),ne.Mc()&&ge&&(Ot=y.ga(Di,Lt.alloc()),Tt=Lt.allocAt(Ot.x+1e3*rt,Ot.y+1e3*ut),this.getLinkPointFromPoint(a,y,Ot,Tt,!0,De),Lt.free(Ot),Lt.free(Tt))),Ot=this.getLinkPoint(b,E,x,!1,ye,a,y);var Ht=Bt=Tt=0;if(ye||!he||ge){var Vt=this.computeEndSegmentLength(b,E,x,!1);Ht=this.getLinkDirection(b,E,Ot,x,!1,ye,a,y),ge&&(he||ne.D(x)||!ye&&ne.x+x.x===1&&ne.y+x.y===1)&&(Ht+=ye?0:30,0>_t&&(Ht+=180)),0>Ht?Ht+=360:360<=Ht&&(Ht-=360),ge&&(Vt+=Math.abs(_t)*(ye?1:2)),Ht===0?Tt=Vt:Ht===90?Bt=Vt:Ht===180?Tt=-Vt:Ht===270?Bt=-Vt:(Tt=Vt*Math.cos(Ht*Math.PI/180),Bt=Vt*Math.sin(Ht*Math.PI/180)),x.Mc()&&ge&&(x=E.ga(Di,Lt.alloc()),ne=Lt.allocAt(x.x+1e3*Tt,x.y+1e3*Bt),this.getLinkPointFromPoint(b,E,x,ne,!1,Ot),Lt.free(x),Lt.free(ne))}x=De,(ye||!se||ge)&&(x=new Lt(De.x+rt,De.y+ut)),ne=Ot,(ye||!he||ge)&&(ne=new Lt(Ot.x+Tt,Ot.y+Bt)),!$e&&!ye&&se&&3<te&&this.adjustPoints(0,De,te-2,ne)?this.dd(te-1,Ot):!$e&&!ye&&he&&3<te&&this.adjustPoints(1,x,te-1,Ot)?this.dd(0,De):!$e&&(ye?6<=te:4<te)&&this.adjustPoints(1,x,te-2,ne)?(this.dd(0,De),this.dd(te-1,Ot)):(this.Fj(),this.ne(De),(ye||!se||ge)&&this.ne(x),ye&&this.addOrthoPoints(x,Qe,ne,Ht,a,b),(ye||!he||ge)&&this.ne(ne),this.ne(Ot))}return!0};function Zv(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}Vn.prototype.getLinkPointFromPoint=function(a,y,x,b,E,te){if(te===void 0&&(te=new Lt),a===null||y===null)return te.assign(x),te;if(a.isVisible()||(E=a.findVisibleNode(),E!==null&&E!==a&&(y=E.port)),a=null,E=y.panel,E===null||E.se()||(E=E.panel),E===null){E=b.x,b=b.y;var ne=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),ne=a.m22*E;var se=-a.m12*E,he=-a.m21*E,ge=a.m11*E,ye=E*(a.m21*a.dy-a.m22*a.dx),De=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*ne+b.y*he+ye,b=b.x*se+b.y*ge+De,ne=x.x*ne+x.y*he+ye,x=x.x*se+x.y*ge+De}return y.Sj(E,b,ne,x,te),a!==null&&te.transform(a),te};function Ym(a,y){var x=y.Zn;return x===null&&(x=new Lf,x.port=y,x.node=y.part,y.Zn=x),lS(x,a)}Vn.prototype.getLinkPoint=function(a,y,x,b,E,te,ne,se){if(se===void 0&&(se=new Lt),x.sb()&&!xp(x))return y.ga(x,se),se;if(x.$c()){var he=Ym(this,y);if(he!==null){if(se.assign(he.Zo),E&&this.routing===nS){var ge=Ym(this,ne);if(ge!==null&&he.Gl<ge.Gl){he=Lt.alloc(),ge=Lt.alloc();var ye=new Tn(y.ga(Ua,he),y.ga(As,ge)),De=this.computeSpot(!b,ne);a=this.getLinkPoint(te,ne,De,!b,E,a,y,ge),(x.Hf(Ru)||x.Hf(_s))&&a.y>=ye.y&&a.y<=ye.y+ye.height?se.y=a.y:(x.Hf(Eu)||x.Hf(hl))&&a.x>=ye.x&&a.x<=ye.x+ye.width&&(se.x=a.x),Lt.free(he),Lt.free(ge)}}return se}}return x=y.ga(Jm(x),Lt.alloc()),this.pointsCount>(E?6:2)?(ne=b?this.i(1):this.i(this.pointsCount-2),E&&(ne=Zv(x,ne.copy()))):(he=this.computeSpot(!b,ne),te=Lt.alloc(),ne=ne.ga(Jm(he),te),E&&(ne=Zv(x,ne)),Lt.free(te)),this.getLinkPointFromPoint(a,y,x,ne,b,se),Lt.free(x),se},Vn.prototype.getLinkDirection=function(a,y,x,b,E,te,ne,se){e:if(b.sb())var he=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()&&(he=Ym(this,y),he!==null))switch(he.Nc){case 1:he=270;break e;case 2:he=180;break e;default:case 4:he=0;break e;case 8:he=90;break e}he=y.ga(Di,Lt.alloc()),this.pointsCount>(te?6:2)?(se=E?this.i(1):this.i(this.pointsCount-2),se=te?Zv(he,se.copy()):x):(x=Lt.alloc(),se=se.ga(Di,x),Lt.free(x)),x=Math.abs(se.x-he.x)>Math.abs(se.y-he.y)?se.x>=he.x?0:180:se.y>=he.y?90:270,Lt.free(he),he=x}return b.Mc()&&ne.Td(a)&&(he+=180,360<=he&&(he-=360)),xp(b)||(a=y.li(),a===0)||(45<=a&&135>a?he+=90:135<=a&&225>a?he+=180:225<=a&&315>a&&(he+=270),360<=he&&(he-=360)),he},Vn.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=Ym(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)},Vn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Di:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===qi?oa:y)):(a=y||this.toPort,a===null?a=Di:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===qi?oa:y)),a};function xp(a){return a===oa||a.x===.5&&a.y===.5}function Jm(a){return a.x===.5&&a.y===.5?a:Di}Vn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Ks&&4<this.pointsCount?this.computeMidPoint(new Lt):(a=y.Zn,a=a!==null?lS(a,this):null,a!==null?a.Zo:y.ga(Di))},Vn.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},Vn.prototype.Cf=function(a,y,x,b,E,te){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var ne=te;if(te===void 0&&(ne=pi.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return vv(this,y,x,E),te===void 0&&pi.free(ne),!0;if(this.Yc(a,ne)){var se=!1;if(!this.isAtomic)for(var he=this.O.s,ge=he.length;ge--;){var ye=he[ge];if(ye.visible||ye===this.locationObject){var De=ye.actualBounds,$e=this.naturalBounds;if(!(De.x>$e.width||De.y>$e.height||0>De.x+De.width||0>De.y+De.height)){if(De=pi.alloc(),De.set(ne),ye instanceof Kn)se=ye.Cf(a,y,x,b,E,De);else if(this.path===ye){if(ye instanceof hi)if(se=a,$e=b,ye.pickable===!1)se=!1;else if(De.multiply(ye.transform),$e)e:{var Qe=se,rt=De;if(ye.fh(Qe,rt))se=!0;else{if(rt===void 0&&(rt=ye.transform,Qe.Re(ye.actualBounds))){se=!0;break e}se=Qe.left,$e=Qe.right;var ut=Qe.top;Qe=Qe.bottom;var Ot=Lt.alloc(),Tt=Lt.alloc(),Bt=Lt.alloc(),_t=pi.alloc();_t.set(rt),_t.bv(ye.transform),_t.Vj(),Tt.x=$e,Tt.y=ut,Tt.transform(_t),Ot.x=se,Ot.y=ut,Ot.transform(_t),rt=!1,Kd(ye,Ot,Tt,Bt)?rt=!0:(Ot.x=$e,Ot.y=Qe,Ot.transform(_t),Kd(ye,Ot,Tt,Bt)?rt=!0:(Tt.x=se,Tt.y=Qe,Tt.transform(_t),Kd(ye,Ot,Tt,Bt)?rt=!0:(Ot.x=se,Ot.y=ut,Ot.transform(_t),Kd(ye,Ot,Tt,Bt)&&(rt=!0)))),pi.free(_t),Lt.free(Ot),Lt.free(Tt),Lt.free(Bt),se=rt}}else se=ye.fh(se,De)}else se=Ya(ye,a,b,De);se&&($e=ye,y!==null&&($e=y(ye)),$e&&(x===null||x($e))&&E.add($e)),pi.free(De)}}}return te===void 0&&pi.free(ne),se||this.background!==null||this.areaBackground!==null}return te===void 0&&pi.free(ne),!1},Vn.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?Yl:this.curve},Vn.prototype.computeCorner=function(){if(this.curve===Yl)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Vn.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if(E!==a&&!E.isPanelMain&&(E.segmentIndex===-1/0||isNaN(E.segmentIndex)))return E}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},Vn.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=iS;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var b=this.findMidLabel();if(b!==null){var E=b.naturalBounds,te=b.margin,ne=isNaN(E.width)?30:E.width*b.scale+te.left+te.right;E=isNaN(E.height)?14:E.height*b.scale+te.top+te.bottom,b=b.segmentOrientation,b===Pg||b===n0||b===Qv?a=Math.max(a,E):b===Eg||b===Mg||b===Cg||b===Tg?a=Math.max(a,ne):(y=y.ga(Di).ab(x.ga(Di))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ne)+Math.abs(Math.cos(y)*E)+1)),this.curve===Yl&&(a*=1.333)}}return a},Vn.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Ks&&x.bb()}},Vn.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=rS;var y=this.Sf;if(y!==null){for(var x=xn(),b=0,E=y.links,te=0;te<E.length;te++){var ne=E[te].computeSpacing();x.push(ne),b+=ne}for(b=-b/2,te=0;te<E.length;te++){if(E[te]===this){a=b+x[te]/2;break}b+=x[te]}y.Ds===this.fromNode&&(a=-a),In(x)}}return a},Vn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Vn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Vn.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===e0)return!1;E===t0&&(E=bg)}switch(E){case e0:var te=this.i(a),ne=this.i(x);if(!te.Xa(y)||!ne.Xa(b)){E=te.x,te=te.y;var se=ne.x-E,he=ne.y-te,ge=Math.sqrt(se*se+he*he);if(!Qt.$(ge,0)){if(Qt.$(se,0))var ye=0>he?-Math.PI/2:Math.PI/2;else ye=Math.atan(he/Math.abs(se)),0>se&&(ye=Math.PI-ye);ne=y.x;var De=y.y;se=b.x-ne;var $e=b.y-De;for(he=Math.sqrt(se*se+$e*$e),Qt.$(se,0)?$e=0>$e?-Math.PI/2:Math.PI/2:($e=Math.atan($e/Math.abs(se)),0>se&&($e=Math.PI-$e)),ge=he/ge,ye=$e-ye,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),se=y.x-E,he=y.y-te,y=Math.sqrt(se*se+he*he),Qt.$(y,0)||(Qt.$(se,0)?he=0>he?-Math.PI/2:Math.PI/2:(he=Math.atan(he/Math.abs(se)),0>se&&(he=Math.PI-he)),se=he+ye,y*=ge,this.L(a,ne+y*Math.cos(se),De+y*Math.sin(se)));this.dd(x,b)}}return!0;case t0:if(te=this.i(a),De=this.i(x),!te.Xa(y)||!De.Xa(b)){E=te.x,te=te.y,ne=De.x,De=De.y,ge=(ne-E)*(ne-E)+(De-te)*(De-te),se=y.x,ye=y.y,he=b.x,$e=b.y;var Qe=1;if(he-se!==0){var rt=($e-ye)/(he-se);Qe=Math.sqrt(1+1/(rt*rt))}else rt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var ut=y.x,Ot=y.y,Tt=.5;ge!==0&&(Tt=((E-ut)*(E-ne)+(te-Ot)*(te-De))/ge);var Bt=E+Tt*(ne-E),_t=te+Tt*(De-te);y=Math.sqrt((ut-Bt)*(ut-Bt)+(Ot-_t)*(Ot-_t)),Ot<rt*(ut-Bt)+_t&&(y=-y),0<rt&&(y=-y),ut=se+Tt*(he-se),Tt=ye+Tt*($e-ye),rt!==0?(y=ut+y/Qe,this.L(a,y,Tt-(y-ut)/rt)):this.L(a,ut,Tt+y)}this.dd(x,b)}return!0;case bg:e:{if(this.isOrthogonal&&(E=this.i(a),te=this.i(a+1),ne=this.i(a+2),se=te.x,ye=te.y,De=se,ge=ye,Qt.B(E.y,te.y)?Qt.B(te.x,ne.x)?ye=y.y:Qt.B(te.y,ne.y)&&(se=y.x):Qt.B(E.x,te.x)&&(Qt.B(te.y,ne.y)?se=y.x:Qt.B(te.x,ne.x)&&(ye=y.y)),this.L(a+1,se,ye),E=this.i(x),te=this.i(x-1),ne=this.i(x-2),se=te.x,ye=te.y,he=se,$e=ye,Qt.B(E.y,te.y)?Qt.B(te.x,ne.x)?ye=b.y:Qt.B(te.y,ne.y)&&(se=b.x):Qt.B(E.x,te.x)&&(Qt.B(te.y,ne.y)?se=b.x:Qt.B(te.x,ne.x)&&(ye=b.y)),this.L(x-1,se,ye),Vv(this))){this.L(a+1,De,ge),this.L(x-1,he,$e),x=!1;break e}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},Vn.prototype.addOrthoPoints=function(a,y,x,b,E,te){0>y?y+=360:360<=y&&(y-=360),0>b?b+=360:360<=b&&(b-=360);var ne=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 se=E.actualBounds.copy(),he=te.actualBounds.copy();if(se.w()&&he.w()){se.Bc(Lg,Lg),he.Bc(Lg,Lg),se.Ye(a),he.Ye(x);var ge=Lt.alloc(),ye=Lt.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&he.right>a.x||b===90&&x.y>a.y&&he.right>a.x?(ge.h(x.x,a.y),ye.h(x.x,(a.y+x.y)/2),b===180?(ge.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ye.x=ge.x,ye.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ge.x=a.x<he.left?this.computeMidOrthoPosition(a.x,a.y,he.left,x.y,!1):a.x<he.right&&(b===270&&a.y<he.top||b===90&&a.y>he.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):he.right,ye.x=ge.x,ye.y=x.y):b===0&&a.x<he.left&&a.y>he.top&&a.y<he.bottom&&(ge.x=a.x,ge.y=a.y<x.y?Math.min(x.y,he.top):Math.max(x.y,he.bottom),ye.y=ge.y)):(ge.h(a.x,x.y),ye.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<se.top||b===270&&x.y>se.bottom)&&(b===180&&(he.ca(a)||se.ca(x))?ge.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?ge.y=this.computeMidOrthoPosition(a.x,se.top,x.x,Math.max(x.y,he.bottom),!0):x.y>a.y&&(b===180||b===270)&&(ge.y=this.computeMidOrthoPosition(a.x,se.bottom,x.x,Math.min(x.y,he.top),!0)),ye.x=x.x,ye.y=ge.y),ge.y>se.top&&ge.y<se.bottom&&(x.x>=se.left&&x.x<=a.x||a.x<=he.right&&a.x>=x.x?(b===90||b===270)&&(ge.h(Math.max((a.x+x.x)/2,a.x),a.y),ye.h(ge.x,x.y)):(ge.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?se.top:Math.min(se.top,he.top)):Math.max(x.y,b===0?se.bottom:Math.max(se.bottom,he.bottom)),ye.x=x.x,ye.y=ge.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&he.left<a.x||b===90&&x.y>a.y&&he.left<a.x?(ge.h(x.x,a.y),ye.h(x.x,(a.y+x.y)/2),b===0?(ge.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ye.x=ge.x,ye.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ge.x=a.x>he.right?this.computeMidOrthoPosition(a.x,a.y,he.right,x.y,!1):a.x>he.left&&(b===270&&a.y<he.top||b===90&&a.y>he.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):he.left,ye.x=ge.x,ye.y=x.y):b===180&&a.x>he.right&&a.y>he.top&&a.y<he.bottom&&(ge.x=a.x,ge.y=a.y<x.y?Math.min(x.y,he.top):Math.max(x.y,he.bottom),ye.y=ge.y)):(ge.h(a.x,x.y),ye.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<se.top||b===270&&x.y>se.bottom)&&(b===0&&(he.ca(a)||se.ca(x))?ge.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?ge.y=this.computeMidOrthoPosition(a.x,se.top,x.x,Math.max(x.y,he.bottom),!0):x.y>a.y&&(b===0||b===270)&&(ge.y=this.computeMidOrthoPosition(a.x,se.bottom,x.x,Math.min(x.y,he.top),!0)),ye.x=x.x,ye.y=ge.y),ge.y>se.top&&ge.y<se.bottom&&(x.x<=se.right&&x.x>=a.x||a.x>=he.left&&a.x<=x.x?(b===90||b===270)&&(ge.h(Math.min((a.x+x.x)/2,a.x),a.y),ye.h(ge.x,x.y)):(ge.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?se.top:Math.min(se.top,he.top)):Math.max(x.y,b===180?se.bottom:Math.max(se.bottom,he.bottom)),ye.x=x.x,ye.y=ge.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&he.bottom>a.y||b===0&&x.x>a.x&&he.bottom>a.y?(ge.h(a.x,x.y),ye.h((a.x+x.x)/2,x.y),b===270?(ge.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ye.x=x.x,ye.y=ge.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(ge.y=a.y<he.top?this.computeMidOrthoPosition(a.x,a.y,x.x,he.top,!0):a.y<he.bottom&&(b===180&&a.x<he.left||b===0&&a.x>he.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):he.bottom,ye.x=x.x,ye.y=ge.y):b===90&&a.y<he.top&&a.x>he.left&&a.x<he.right&&(ge.x=a.x<x.x?Math.min(x.x,he.left):Math.max(x.x,he.right),ge.y=a.y,ye.x=ge.x)):(ge.h(x.x,a.y),ye.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<se.left||b===180&&x.x>se.right)&&(b===270&&(he.ca(a)||se.ca(x))?ge.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?ge.x=this.computeMidOrthoPosition(se.left,a.y,Math.max(x.x,he.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(ge.x=this.computeMidOrthoPosition(se.right,a.y,Math.min(x.x,he.left),x.y,!1)),ye.x=ge.x,ye.y=x.y),ge.x>se.left&&ge.x<se.right&&(x.y>=se.top&&x.y<=a.y||a.y<=he.bottom&&a.y>=x.y?(b===0||b===180)&&(ge.h(a.x,Math.max((a.y+x.y)/2,a.y)),ye.h(x.x,ge.y)):(ge.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?se.left:Math.min(se.left,he.left)):Math.max(x.x,b===90?se.right:Math.max(se.right,he.right)),ye.x=ge.x,ye.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&he.top<a.y||b===0&&x.x>a.x&&he.top<a.y?(ge.h(a.x,x.y),ye.h((a.x+x.x)/2,x.y),b===90?(ge.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ye.x=x.x,ye.y=ge.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(ge.y=a.y>he.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,he.bottom,!0):a.y>he.top&&(b===180&&a.x<he.left||b===0&&a.x>he.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):he.top,ye.x=x.x,ye.y=ge.y):b===270&&a.y>he.bottom&&a.x>he.left&&a.x<he.right&&(ge.x=a.x<x.x?Math.min(x.x,he.left):Math.max(x.x,he.right),ge.y=a.y,ye.x=ge.x)):(ge.h(x.x,a.y),ye.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<se.left||b===180&&x.x>se.right)&&(b===90&&(he.ca(a)||se.ca(x))?ge.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?ge.x=this.computeMidOrthoPosition(se.left,a.y,Math.max(x.x,he.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(ge.x=this.computeMidOrthoPosition(se.right,a.y,Math.min(x.x,he.left),x.y,!1)),ye.x=ge.x,ye.y=x.y),ge.x>se.left&&ge.x<se.right&&(x.y<=se.bottom&&x.y>=a.y||a.y>=he.top&&a.y<=x.y?(b===0||b===180)&&(ge.h(a.x,Math.min((a.y+x.y)/2,a.y)),ye.h(x.x,ge.y)):(ge.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?se.left:Math.min(se.left,he.left)):Math.max(x.x,b===270?se.right:Math.max(se.right,he.right)),ye.x=ge.x,ye.y=x.y)));var De=x;if(this.isAvoiding){var $e=this.diagram;if($e===null||E===te||this.layer.isTemporary||!ep($e)||se.ca(De)&&!te.Td(E)||he.ca(a)&&!E.Td(te))y=!1;else{var Qe=tp($e,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Qe.Yj(Math.min(a.x,ge.x),Math.min(a.y,ge.y),Math.abs(a.x-ge.x),Math.abs(a.y-ge.y))&&Qe.Yj(Math.min(ge.x,ye.x),Math.min(ge.y,ye.y),Math.abs(ge.x-ye.x),Math.abs(ge.y-ye.y))&&Qe.Yj(Math.min(ye.x,De.x),Math.min(ye.y,De.y),Math.abs(ye.x-De.x),Math.abs(ye.y-De.y)))y=!1;else{E=a,te=De;var rt=x=null;if($e.isVirtualized){$e=Qe.bounds.copy(),$e.Bc(-Qe.Ho,-Qe.Go);var ut=Lt.alloc();bp(Qe,a.x,a.y)||(Qt.Ff($e.x,$e.y,$e.x+$e.width,$e.y+$e.height,a.x,a.y,ge.x,ge.y,ut)?(x=a=ut.copy(),y=ut.ab(ge)):Qt.Ff($e.x,$e.y,$e.x+$e.width,$e.y+$e.height,ge.x,ge.y,ye.x,ye.y,ut)?(x=a=ut.copy(),y=ut.ab(ye)):Qt.Ff($e.x,$e.y,$e.x+$e.width,$e.y+$e.height,ye.x,ye.y,De.x,De.y,ut)&&(x=a=ut.copy(),y=ut.ab(De))),bp(Qe,De.x,De.y)||(Qt.Ff($e.x,$e.y,$e.x+$e.width,$e.y+$e.height,De.x,De.y,ye.x,ye.y,ut)?(rt=De=ut.copy(),b=ye.ab(ut)):Qt.Ff($e.x,$e.y,$e.x+$e.width,$e.y+$e.height,ye.x,ye.y,ge.x,ge.y,ut)?(rt=De=ut.copy(),b=ge.ab(ut)):Qt.Ff($e.x,$e.y,$e.x+$e.width,$e.y+$e.height,ge.x,ge.y,a.x,a.y,ut)&&(rt=De=ut.copy(),b=a.ab(ut))),Lt.free(ut)}se=se.copy().ed(he),se.Bc(Qe.Ho*Qe.Os,Qe.Go*Qe.Os),aS(Qe,a,y,De,b,se,!0),he=Ac(Qe,De.x,De.y),!Qe.abort&&he>=Pp&&(oS(Qe),se.Bc(Qe.Ho*Qe.Hx,Qe.Go*Qe.Ix),aS(Qe,a,y,De,b,se,!1),he=Ac(Qe,De.x,De.y)),!Qe.abort&&he<Pp&&Ac(Qe,De.x,De.y)!==Nh?(Xv(this,Qe,De.x,De.y,b,!0,ne),se=this.i(2),4>this.pointsCount?(y===0||y===180?(se.x=a.x,se.y=De.y):(se.x=De.x,se.y=a.y),this.L(2,se.x,se.y),this.m(3,se.x,se.y)):(ne=this.i(3),y===0||y===180?Qt.B(se.x,ne.x)?(se=y===0?Math.max(se.x,a.x):Math.min(se.x,a.x),this.L(2,se,a.y),this.L(3,se,ne.y)):Qt.B(se.y,ne.y)?(Math.abs(a.y-se.y)<=Qe.Go/2&&(this.L(2,se.x,a.y),this.L(3,ne.x,a.y)),this.m(2,se.x,a.y)):this.L(2,a.x,se.y):(y===90||y===270)&&(Qt.B(se.y,ne.y)?(se=y===90?Math.max(se.y,a.y):Math.min(se.y,a.y),this.L(2,a.x,se),this.L(3,ne.x,se)):Qt.B(se.x,ne.x)?(Math.abs(a.x-se.x)<=Qe.Ho/2&&(this.L(2,a.x,se.y),this.L(3,a.x,ne.y)),this.m(2,a.x,se.y)):this.L(2,se.x,a.y))),x!==null&&(a=this.i(1),ne=this.i(2),a.x!==ne.x&&a.y!==ne.y?y===0||y===180?this.m(2,a.x,ne.y):this.m(2,ne.x,a.y):y===0||y===180?this.m(2,E.x,x.y):this.m(2,x.x,E.y)),rt!==null&&(b===0||b===180?this.yf(te.x,rt.y):this.yf(rt.x,te.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(ge.copy()),this.ne(ye.copy())),Lt.free(ge),Lt.free(ye)}},Vn.prototype.computeMidOrthoPosition=function(a,y,x,b,E){var te=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(te=this.computeCurviness()),E?(y+b)/2+te:(a+x)/2+te};function Vv(a){if(a.diagram===null||!a.isAvoiding||!ep(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=tp(a.diagram,!0,a.containingGroup,null);for(var b=1;b<x-2;b++){var E=y[b],te=y[b+1];if(!a.Yj(Math.min(E.x,te.x),Math.min(E.y,te.y),Math.abs(E.x-te.x),Math.abs(E.y-te.y)))return!0}return!1}function Xv(a,y,x,b,E,te,ne){var se=y.Ho,he=y.Go,ge=Ac(y,x,b),ye=x,De=b;for(E===0?ye+=se:E===90?De+=he:E===180?ye-=se:De-=he,E!==ne&&ge>Xd&&Ac(y,ye,De)!==ge-1&&(Ac(y,x-se,b)===ge-1?(E=180,ye=x-se,De=b):Ac(y,x+se,b)===ge-1?(E=0,ye=x+se,De=b):Ac(y,x,b-he)===ge-1?(E=270,ye=x,De=b-he):Ac(y,x,b+he)===ge-1&&(E=90,ye=x,De=b+he));ge>Xd&&Ac(y,ye,De)===ge-1;)x=ye,b=De,E===0?ye+=se:E===90?De+=he:E===180?ye-=se:De-=he,--ge;te?ge>Xd&&(E===180||E===0?x=Math.floor(x/se)*se+se/2:(E===90||E===270)&&(b=Math.floor(b/he)*he+he/2)):(x=Math.floor(x/se)*se+se/2,b=Math.floor(b/he)*he+he/2),ge>Xd&&(te=E,ne=x,ye=b,E===0?(te=90,ye+=he):E===90?(te=180,ne-=se):E===180?(te=270,ye-=he):E===270&&(te=0,ne+=se),Ac(y,ne,ye)===ge-1?Xv(a,y,ne,ye,te,!1,te):(ne=x,ye=b,E===0?(te=270,ye-=he):E===90?(te=0,ne+=se):E===180?(te=90,ye+=he):E===270&&(te=180,ne-=se),Ac(y,ne,ye)===ge-1&&Xv(a,y,ne,ye,te,!1,te))),a.yf(x,b)}Vn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=Ji(y,a,x.x,x.y,b.x,b.y),te=0,ne=1;ne<this.pointsCount-1;ne++){x=this.i(ne+1);var se=Ji(y,a,b.x,b.y,x.x,x.y);b=x,se<E&&(te=ne,E=se)}return te},Vn.prototype.qc=function(){this.lk=!1,this.v()},Vn.prototype.Ul=function(a){if(!(!a&&(this.fd===!1||(a=this.Pb(),this.lk&&(a===null||a.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E!==a&&E.isPanelMain&&E instanceof hi&&(E.ua=this.ua)}}},Vn.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&Vd(this)&&b.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(b.animationManager.isAnimating||b.currentTool!==b.toolManager)&&(x=!0);var E=this.i(0).copy(),te=E.copy();b=this.Nb.s;var ne=this.computeCurve();if(ne===Yl&&3<=y&&!Qt.$(this.smoothness,0))if(y===3){var se=this.i(1);b=Math.min(E.x,se.x);var he=Math.min(E.y,se.y);se=this.i(2),b=Math.min(b,se.x),he=Math.min(he,se.y)}else{if(this.isOrthogonal)for(he=0;he<y;he++)se=b[he],te.x=Math.min(se.x,te.x),te.y=Math.min(se.y,te.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),he=this.i(b),te.x=Math.min(he.x,te.x),te.y=Math.min(he.y,te.y);b=te.x,he=te.y}else{for(he=0;he<y;he++)se=b[he],te.x=Math.min(se.x,te.x),te.y=Math.min(se.y,te.y);b=te.x,he=te.y}if(b-=this.su.x,he-=this.su.y,E.x-=b,E.y-=he,y!==2||Vd(this)){if(a.type=Yn.o,se=O1(a),this.computeShortLength(!0)!==0&&(E=Cf(this,E,!0,te)),yp(se,E.x,E.y,!1),ne===Yl&&3<=y&&!Qt.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-he,E=this.i(2).copy(),E.x-=b,E.y-=he,this.computeShortLength(!1)!==0&&(E=Cf(this,E,!1,te)),Eh(se,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=Lt.allocAt(b,he),x=Lt.alloc(),x.assign(this.i(1)),te=Lt.allocAt(b,he),E=Lt.allocAt(b,he),ne=this.i(0);for(var ge,ye=this.smoothness/3,De=1;De<this.pointsCount-1;De++){ge=this.i(De);var $e=ne,Qe=ge,rt=this.i(Yv(this,ge,De,!1));if((!Qt.$($e.x,Qe.x)||!Qt.$(Qe.x,rt.x))&&(!Qt.$($e.y,Qe.y)||!Qt.$(Qe.y,rt.y))){var ut=ye;isNaN(ut)&&(ut=this.smoothness/3);var Ot=$e.x;$e=$e.y;var Tt=Qe.x;Qe=Qe.y;var Bt=rt.x;rt=rt.y;var _t=ut*Qm(Ot,$e,Tt,Qe);ut*=Qm(Tt,Qe,Bt,rt),Qt.$($e,Qe)&&Qt.$(Tt,Bt)&&(Tt>Ot?rt>Qe?(te.x=Tt-_t,te.y=Qe-_t,E.x=Tt+ut,E.y=Qe+ut):(te.x=Tt-_t,te.y=Qe+_t,E.x=Tt+ut,E.y=Qe-ut):rt>Qe?(te.x=Tt+_t,te.y=Qe-_t,E.x=Tt-ut,E.y=Qe+ut):(te.x=Tt+_t,te.y=Qe+_t,E.x=Tt-ut,E.y=Qe-ut)),Qt.$(Ot,Tt)&&Qt.$(Qe,rt)&&(Qe>$e?(Bt>Tt?(te.x=Tt-_t,te.y=Qe-_t,E.x=Tt+ut):(te.x=Tt+_t,te.y=Qe-_t,E.x=Tt-ut),E.y=Qe+ut):(Bt>Tt?(te.x=Tt-_t,te.y=Qe+_t,E.x=Tt+ut):(te.x=Tt+_t,te.y=Qe+_t,E.x=Tt-ut),E.y=Qe-ut)),(Qt.$(Ot,Tt)&&Qt.$(Tt,Bt)||Qt.$($e,Qe)&&Qt.$(Qe,rt))&&(Ot=.5*(Ot+Bt),$e=.5*($e+rt),te.x=Ot,te.y=$e,E.x=Ot,E.y=$e),(De===1||De===2&&Qt.$(ne.x,this.i(0).x)&&Qt.$(ne.y,this.i(0).y))&&(x.x=.5*(ne.x+ge.x),x.y=.5*(ne.y+ge.y)),Eh(se,x.x-b,x.y-he,te.x-b,te.y-he,ge.x-b,ge.y-he),y.set(te),x.set(E),ne=ge}}ge=ne.x,ne=ne.y,ye=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ye=Cf(this,ye.copy(),!1,Pi)),ge=.5*(ge+ye.x),ne=.5*(ne+ye.y),Eh(se,E.x-b,E.y-he,ge-b,ne-he,ye.x-b,ye.y-he),Lt.free(y),Lt.free(x),Lt.free(te),Lt.free(E)}else for(x=3;x<y;x+=3)te=this.i(x-2),x+3>=y&&(x=y-1),E=this.i(x-1),ne=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(ne=Cf(this,ne.copy(),!1,Pi)),Eh(se,te.x-b,te.y-he,E.x-b,E.y-he,ne.x-b,ne.y-he);else{for(te=Lt.alloc(),te.assign(this.i(0)),E=Lt.alloc(),E.assign(te),ne=this.computeCorner(),De=1,ge=0;De<y;){if(De=Yv(this,te,De,1<De),ye=this.i(De),De>=y-1){if(!te.D(ye))this.computeShortLength(!1)!==0&&(ye=Cf(this,ye.copy(),!1,Pi)),Ef(this,se,-b,-he,te,ye,x);else if(ge===0)for(De=1;De<y;)E.assign(te),ye=this.i(De++),Ef(this,se,-b,-he,te,ye,x),te.assign(ye);break}if(ge=Yv(this,ye,De+1,De<y-3),De=-b,Ot=-he,$e=ye,Tt=this.i(ge),ut=x,Qt.B(te.y,$e.y)&&Qt.B($e.x,Tt.x))if(rt=Math.min(ne,Math.abs($e.x-E.x)/2),rt=_t=Math.min(rt,Math.abs(Tt.y-$e.y)/2),Qt.B(rt,0))Ef(this,se,De,Ot,te,$e,ut),te.assign($e);else{var Ht=$e.x,Vt=$e.y;Qe=Ht,Bt=Vt,$e.x>te.x?Ht=$e.x-rt:Ht=$e.x+rt,Tt.y>$e.y?Bt=$e.y+_t:Bt=$e.y-_t,Tt=Lt.allocAt(Ht,Vt),Ef(this,se,De,Ot,te,Tt,ut),Lt.free(Tt),Gm(se,$e.x+De,$e.y+Ot,Qe+De,Bt+Ot),te.h(Qe,Bt)}else Qt.B(te.x,$e.x)&&Qt.B($e.y,Tt.y)?(rt=Math.min(ne,Math.abs($e.y-E.y)/2),rt=_t=Math.min(rt,Math.abs(Tt.x-$e.x)/2),Qt.B(_t,0)?(Ef(this,se,De,Ot,te,$e,ut),te.assign($e)):(Ht=$e.x,Vt=$e.y,Qe=Ht,Bt=Vt,$e.y>te.y?Vt=$e.y-rt:Vt=$e.y+rt,Tt.x>$e.x?Qe=$e.x+_t:Qe=$e.x-_t,Tt=Lt.allocAt(Ht,Vt),Ef(this,se,De,Ot,te,Tt,ut),Lt.free(Tt),Gm(se,$e.x+De,$e.y+Ot,Qe+De,Bt+Ot),te.h(Qe,Bt))):(Ef(this,se,De,Ot,te,$e,ut),te.assign($e));E.assign(ye),De=ge}Lt.free(te)}Wm=se}else se=this.i(1).copy(),se.x-=b,se.y-=he,this.computeShortLength(!0)!==0&&(E=Cf(this,E,!0,te)),this.computeShortLength(!1)!==0&&(se=Cf(this,se,!1,te)),a.type=Yn.j,a.startX=E.x,a.startY=E.y,a.endX=se.x,a.endY=se.y;return this.lk=!0,a};function Qm(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),Qt.$(a,0)?y:Qt.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Cf(a,y,x,b){var E=a.pointsCount;if(2>E)return y;if(x){var te=a.i(1);if(x=te.x-b.x,te=te.y-b.y,b=Qm(y.x,y.y,x,te),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!0),a>E&&(a=E),E=a*(te-y.y)/b,y.x+=a*(x-y.x)/b,y.y+=E}else{if(te=a.i(E-2),x=te.x-b.x,te=te.y-b.y,b=Qm(y.x,y.y,x,te),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!1),a>E&&(a=E),E=a*(y.y-te)/b,y.x-=a*(y.x-x)/b,y.y-=E}return y}function Yv(a,y,x,b){for(var E=a.pointsCount,te=y;Qt.$(y.x,te.x)&&Qt.$(y.y,te.y);){if(x>=E)return E-1;te=a.i(x++)}if(!Qt.$(y.x,te.x)&&!Qt.$(y.y,te.y))return x-1;for(var ne=te;Qt.$(y.x,te.x)&&Qt.$(te.x,ne.x)&&(!b||(y.y>=te.y?te.y>=ne.y:te.y<=ne.y))||Qt.$(y.y,te.y)&&Qt.$(te.y,ne.y)&&(!b||(y.x>=te.x?te.x>=ne.x:te.x<=ne.x));){if(x>=E)return E-1;ne=a.i(x++)}return x-2}Vn.prototype.computeJumpLength=function(){return 10};function Ef(a,y,x,b,E,te,ne){if(!ne&&Vd(a)){ne=a.computeJumpLength();var se=ne/2,he=[],ge=0;if(a.isVisible()&&(ge=Tx(a,E,te,he)),0<ge){if(Qt.B(E.y,te.y))if(E.x<te.x)for(var ye=0;ye<ge;){var De=Math.max(E.x,Math.min(he[ye++]-se,te.x-ne));y.lineTo(De+x,te.y+b);for(var $e=De+x,Qe=Math.min(De+ne,te.x);ye<ge&&(De=he[ye],De<Qe+ne);)ye++,Qe=Math.min(De+se,te.x);De=te.y-ne+b,Qe+=x;var rt=te.y+b;a.curve===kh?yp(y,Qe,rt,!1):Eh(y,$e,De,Qe,De,Qe,rt)}else for(--ge;0<=ge;){for(ye=Math.min(E.x,Math.max(he[ge--]+se,te.x+ne)),y.lineTo(ye+x,te.y+b),$e=ye+x,De=Math.max(ye-ne,te.x);0<=ge&&(ye=he[ge],ye>De-ne);)ge--,De=Math.max(ye-se,te.x);ye=te.y-ne+b,De+=x,Qe=te.y+b,a.curve===kh?yp(y,De,Qe,!1):Eh(y,$e,ye,De,ye,De,Qe)}else if(Qt.B(E.x,te.x))if(E.y<te.y)for(ye=0;ye<ge;){for(De=Math.max(E.y,Math.min(he[ye++]-se,te.y-ne)),y.lineTo(te.x+x,De+b),$e=De+b,De=Math.min(De+ne,te.y);ye<ge&&(Qe=he[ye],Qe<De+ne);)ye++,De=Math.min(Qe+se,te.y);Qe=te.x-ne+x,rt=te.x+x,De+=b,a.curve===kh?yp(y,rt,De,!1):Eh(y,Qe,$e,Qe,De,rt,De)}else for(--ge;0<=ge;){for(ye=Math.min(E.y,Math.max(he[ge--]+se,te.y+ne)),y.lineTo(te.x+x,ye+b),$e=ye+b,ye=Math.max(ye-ne,te.y);0<=ge&&(De=he[ge],De>ye-ne);)ge--,ye=Math.max(De-se,te.y);De=te.x-ne+x,Qe=te.x+x,ye+=b,a.curve===kh?yp(y,Qe,ye,!1):Eh(y,De,$e,De,ye,Qe,ye)}}}y.lineTo(te.x+x,te.y+b)}function Tx(a,y,x,b){var E=a.diagram;if(E===null||y.D(x))return 0;for(E=E.layers;E.next();){var te=E.value;if(te!==null&&te.visible){te=te.Pa.s;for(var ne=te.length,se=0;se<ne;se++){var he=te[se];if(he instanceof Vn){if(he===a)return 0<b.length&&b.sort(function(ye,De){return ye-De}),b.length;if(he.isVisible()&&Vd(he)){var ge=he.routeBounds;ge.w()&&a.routeBounds.Yc(ge)&&!a.usesSamePort(he)&&(ge=he.path,ge!==null&&ge.Ed()&&Mx(y,x,b,he))}}}}}return 0<b.length&&b.sort(function(ye,De){return ye-De}),b.length}function Mx(a,y,x,b){for(var E=Qt.B(a.y,y.y),te=b.pointsCount,ne=b.i(0),se=Lt.alloc(),he=1;he<te;he++){var ge=b.i(he);if(he<te-1){var ye=b.i(he+1);if(ne.y===ge.y&&ge.y===ye.y){if(ge.x>ne.x&&ye.x>=ge.x||ge.x<ne.x&&ye.x<=ge.x)continue}else if(ne.x===ge.x&&ge.x===ye.x&&(ge.y>ne.y&&ye.y>=ge.y||ge.y<ne.y&&ye.y<=ge.y))continue}e:{ye=a.x;var De=a.y,$e=y.x,Qe=y.y,rt=ne.x;ne=ne.y;var ut=ge.x,Ot=ge.y;if(Qt.B(ye,$e)){if(!Qt.B(De,Qe)&&Qt.B(ne,Ot)&&Math.min(De,Qe)<ne&&Math.max(De,Qe)>ne&&Math.min(rt,ut)<ye&&Math.max(rt,ut)>ye&&!Qt.B(rt,ut)){se.x=ye,se.y=ne,ye=!0;break e}}else if(Qt.B(De,Qe)&&Qt.B(rt,ut)&&Math.min(ye,$e)<rt&&Math.max(ye,$e)>rt&&Math.min(ne,Ot)<De&&Math.max(ne,Ot)>De&&!Qt.B(ne,Ot)){se.x=rt,se.y=De,ye=!0;break e}se.x=0,se.y=0,ye=!1}ye&&(E?x.push(se.x):x.push(se.y)),ne=ge}Lt.free(se)}function Vd(a){return a=a.curve,a===wp||a===kh}function qm(a,y){(y||Vd(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()))}Vn.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var b=!1;for(x=x.layers;x.next();){var E=x.value;if(E.visible){if(E===y){b=!0;var te=!1;E=E.Pa.s;for(var ne=E.length,se=0;se<ne;se++){var he=E[se];he instanceof Vn&&(he===this?te=!0:te&&tS(this,he,a))}}else if(b)for(te=E.Pa.s,E=te.length,ne=0;ne<E;ne++)se=te[ne],se instanceof Vn&&tS(this,se,a)}}}}};function tS(a,y,x){if(y!==null&&y.lk&&y.fd&&Vd(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}Vn.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var b=this.i(0),E=a.i(0);if(b.Xa(E)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||b.Xa(a)||y.Xa(E)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},Vn.prototype.isVisible=function(){if(!Tr.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},Vn.prototype.Zb=function(a){if(Tr.prototype.Zb.call(this,a),a&&qm(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},Vn.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?bg:this.qk};function xg(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var b=a.ff,E=a.vf,te=a=null,ne=y.jb.s,se=ne.length,he=0;he<se;he++){var ge=ne[he];(ge.ef===y&&ge.ff===b&&ge.uf===x&&ge.vf===E||ge.ef===x&&ge.ff===E&&ge.uf===y&&ge.vf===b)&&(te===null?te=ge:(a===null&&(a=[],a.push(te)),a.push(ge)))}if(a!==null){for(te=W1(y,x,b,E),te===null&&(te=new i0(y,b,x,E),G1(y,te),G1(x,te)),te.links=a,y=0;y<a.length;y++)a[y].Sf=te;te.Sl()}}}}function wg(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(Ln(y.links,a),y.Sl()))}Vn.prototype.ph=function(){return!0},jt.Object.defineProperties(Vn.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&&Zm(y,this,x),wg(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setFromNodeForLink(this,a,y);var E=this.fromPort,te=this.fromPortChanged;if(te!==null){var ne=!0;b!==null&&(ne=b.aa,b.aa=!0),te(this,x,E),b!==null&&(b.aa=ne)}a!==null&&(this.uf!==a&&Km(a,this,E),xg(this),this.C(1)),this.g("fromNode",y,a),Sp(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&Ml(x),wg(this),this.ff=a;var b=this.fromPort;b!==null&&Ml(b);var E=this.diagram;if(E!==null){var te=this.data,ne=E.model;te!==null&&ne.ri()&&ne.xv(te,a)}x!==b&&(this.Wf=null,this.bb(),te=this.fromPortChanged,te!==null&&(ne=!0,E!==null&&(ne=E.aa,E.aa=!0),te(this,x,b),E!==null&&(E.aa=ne))),xg(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&&Zm(y,this,x),wg(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setToNodeForLink(this,a,y);var E=this.toPort,te=this.toPortChanged;if(te!==null){var ne=!0;b!==null&&(ne=b.aa,b.aa=!0),te(this,x,E),b!==null&&(b.aa=ne)}a!==null&&(this.ef!==a&&Km(a,this,E),xg(this),this.C(1)),this.g("toNode",y,a),Sp(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&Ml(x),wg(this),this.vf=a;var b=this.toPort;b!==null&&Ml(b);var E=this.diagram;if(E!==null){var te=this.data,ne=E.model;te!==null&&ne.ri()&&ne.Cv(te,a)}x!==b&&(this.Wf=null,this.bb(),te=this.toPortChanged,te!==null&&(ne=!0,E!==null&&(ne=E.aa,E.aa=!0),te(this,x,b),E!==null&&(E.aa=ne))),xg(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:qi},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&&Ml(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&&Fn(a,">= 0",Vn,"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:qi},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&&Ml(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&&Fn(a,">= 0",Vn,"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?gi: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&&Sg(this.fromNode),this.toNode!==null&&Sg(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof hi?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,b=this.pointsCount;if(b===0)a.h(NaN,NaN,0,0);else{if(b===1)b=this.i(0),y=Math.min(b.x,y),x=Math.min(b.y,x),a.h(b.x,b.y,0,0);else if(b===2){b=this.i(0);var E=this.i(1);y=Math.min(b.x,E.x),x=Math.min(b.y,E.y),a.h(b.x,b.y,0,0),a.Ye(E)}else if(this.computeCurve()===Yl&&3<=b&&!this.isOrthogonal)if(E=this.i(0),y=E.x,x=E.y,a.h(y,x,0,0),b===3){b=this.i(1),y=Math.min(b.x,y),x=Math.min(b.y,x);var te=this.i(2);y=Math.min(te.x,y),x=Math.min(te.y,x),Qt.Dl(E.x,E.y,b.x,b.y,b.x,b.y,te.x,te.y,.5,a)}else for(te=3;te<b;te+=3){var ne=this.i(te-2);te+3>=b&&(te=b-1);var se=this.i(te-1),he=this.i(te);Qt.Dl(E.x,E.y,ne.x,ne.y,se.x,se.y,he.x,he.y,.5,a),y=Math.min(he.x,y),x=Math.min(he.y,x),E=he}else for(E=this.i(0),te=this.i(1),y=Math.min(E.x,te.x),x=Math.min(E.y,te.y),a.h(E.x,E.y,0,0),a.Ye(te),E=2;E<b;E++)te=this.i(E),y=Math.min(te.x,y),x=Math.min(te.y,x),a.Ye(te);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new Lt)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Xm(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var b=this.i(x),E=this.i(x+1);Qt.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):Qt.$(b.y,E.y)?(b=E.x-b.x,0>b&&(b=-b)):b=Math.sqrt(b.Bf(E)),a.push(b)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,b=a=0;b<x;b++)a+=y[b];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var x=null;if(Array.isArray(a)){var b=a.length%2===0;if(b){for(var E=0;E<a.length;E++)if(typeof a[E]!="number"||isNaN(a[E])){b=!1;break}}if(b)for(x=new An,b=0;b<a.length/2;b++)E=new Lt(a[2*b],a[2*b+1]).freeze(),x.add(E);else{for(b=!0,E=0;E<a.length;E++){var te=a[E];if(!nn(te)||typeof te.x!="number"||isNaN(te.x)||typeof te.y!="number"||isNaN(te.y)){b=!1;break}}if(b)for(x=new An,b=0;b<a.length;b++)E=a[b],x.add(new Lt(E.x,E.y).freeze())}}else if(a instanceof An)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else Zt("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Xm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&Co(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||!xp(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!xp(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(),qm(this,y===kh||y===wp||a===kh||a===wp),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(),qm(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)}}}),Vn.prototype.invalidateOtherJumpOvers=Vn.prototype.Xo,Vn.prototype.findClosestSegment=Vn.prototype.ez,Vn.prototype.updateRoute=Vn.prototype.vg,Vn.prototype.invalidateRoute=Vn.prototype.bb,Vn.prototype.rollbackRoute=Vn.prototype.rv,Vn.prototype.commitRoute=Vn.prototype.zf,Vn.prototype.startRoute=Vn.prototype.uh,Vn.prototype.clearPoints=Vn.prototype.Fj,Vn.prototype.removePoint=Vn.prototype.pv,Vn.prototype.addPointAt=Vn.prototype.yf,Vn.prototype.addPoint=Vn.prototype.ne,Vn.prototype.insertPointAt=Vn.prototype.m,Vn.prototype.insertPoint=Vn.prototype.Kz,Vn.prototype.setPointAt=Vn.prototype.L,Vn.prototype.setPoint=Vn.prototype.dd,Vn.prototype.getPoint=Vn.prototype.i,Vn.prototype.getOtherPort=Vn.prototype.Cz,Vn.prototype.getOtherNode=Vn.prototype.To;var Tf=null,Mf=null,Jv=new en(Vn,"Normal",1),Lx=new en(Vn,"Orthogonal",2),kx=new en(Vn,"AvoidsNodes",6),nS=new en(Vn,"AvoidsNodesStraight",7),Ks=new en(Vn,"None",0),Yl=new en(Vn,"Bezier",9),kh=new en(Vn,"JumpGap",10),wp=new en(Vn,"JumpOver",11),bg=new en(Vn,"End",17),e0=new en(Vn,"Scale",18),t0=new en(Vn,"Stretch",19),Pg=new en(Vn,"OrientAlong",21),Cg=new en(Vn,"OrientPlus90",22),Eg=new en(Vn,"OrientMinus90",23),Qv=new en(Vn,"OrientOpposite",24),n0=new en(Vn,"OrientUpright",25),Tg=new en(Vn,"OrientPlus90Upright",26),Mg=new en(Vn,"OrientMinus90Upright",27),r0=new en(Vn,"OrientUpright45",28),rS=16,iS=14,Lg=8;Vn.className="Link",Vn.Normal=Jv,Vn.Orthogonal=Lx,Vn.AvoidsNodes=kx,Vn.AvoidsNodesStraight=nS,Vn.None=Ks,Vn.Bezier=Yl,Vn.JumpGap=kh,Vn.JumpOver=wp,Vn.End=bg,Vn.Scale=e0,Vn.Stretch=t0,Vn.OrientAlong=Pg,Vn.OrientPlus90=Cg,Vn.OrientMinus90=Eg,Vn.OrientOpposite=Qv,Vn.OrientUpright=n0,Vn.OrientPlus90Upright=Tg,Vn.OrientMinus90Upright=Mg,Vn.OrientUpright45=r0,Vn.EndSegmentStep=8,Vn.CurvinessStart=rS,Vn.SpacingMin=iS,Vn.OrthoShortCut=Lg;function i0(a,y,x,b){ui(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}i0.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},i0.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))}},i0.className="LinkBundle";function kg(a){ui(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}kg.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=qv,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 bp(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Ac(a,y,x){return bp(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):qv}function oS(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]>=Xd&&(x[b]=qv)}kg.prototype.Yj=function(a,y,x,b){if(a>this.En||a+x<this.Nd||y>this.Fn||y+b<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,x=Math.max(0,x)/this.rc+1|0;var E=Math.max(0,b)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(E+=y,y=0),0>x||0>E)return!0;for(b=Math.min(a+x-1,this.di)|0,x=Math.min(y+E-1,this.ei)|0;a<=b;a++){E=this.ac[a];for(var te=y;te<=x;te++)if(E[te]===Nh)return!1}return!0};function jc(a,y,x,b,E,te,ne,se,he){if(!(y<te||y>ne||x<se||x>he)){var ge=y|0,ye=x|0,De=a.ac[ge][ye];if(De>=Xd&&De<Pp)for(E?ye+=b:ge+=b,De+=1;te<=ge&&ge<=ne&&se<=ye&&ye<=he&&!(De>=a.ac[ge][ye]);)a.ac[ge][ye]=De,De+=1,E?ye+=b:ge+=b;if(ge=E?ye:ge,E)if(0<b)for(x+=b;x<ge;x+=b)jc(a,y,x,1,!E,te,ne,se,he),jc(a,y,x,-1,!E,te,ne,se,he);else for(x+=b;x>ge;x+=b)jc(a,y,x,1,!E,te,ne,se,he),jc(a,y,x,-1,!E,te,ne,se,he);else if(0<b)for(y+=b;y<ge;y+=b)jc(a,y,x,1,!E,te,ne,se,he),jc(a,y,x,-1,!E,te,ne,se,he);else for(y+=b;y>ge;y+=b)jc(a,y,x,1,!E,te,ne,se,he),jc(a,y,x,-1,!E,te,ne,se,he)}}function o0(a,y,x,b,E,te,ne,se,he){y|=0,x|=0;var ge=Nh,ye=Xd;for(a.ac[y][x]=ye;ge===Nh&&y>te&&y<ne&&x>se&&x<he;)ye+=1,a.ac[y][x]=ye,E?x+=b:y+=b,ge=a.ac[y][x]}function a0(a,y,x,b,E,te,ne,se,he){y|=0,x|=0;var ge=Nh,ye=Pp;for(a.ac[y][x]=ye;ge===Nh&&y>te&&y<ne&&x>se&&x<he;)a.ac[y][x]=ye,E?x+=b:y+=b,ge=a.ac[y][x]}function aS(a,y,x,b,E,te,ne){if(a.ac!==null){a.abort=!1;var se=y.x,he=y.y;if(bp(a,se,he)){se-=a.Nd,se/=a.rc,he-=a.Od,he/=a.sc;var ge=b.x,ye=b.y;if(bp(a,ge,ye))if(ge-=a.Nd,ge/=a.rc,ye-=a.Od,ye/=a.sc,1>=Math.abs(se-ge)&&1>=Math.abs(he-ye))a.abort=!0;else{var De=te.x;b=te.y,y=te.x+te.width;var $e=te.y+te.height;De-=a.Nd,De/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,$e-=a.Od,$e/=a.sc,te=Math.max(0,Math.min(a.di,De|0)),y=Math.min(a.di,Math.max(0,y|0)),De=Math.max(0,Math.min(a.ei,b|0)),$e=Math.min(a.ei,Math.max(0,$e|0)),b=a.ac,se|=0,he|=0,ge|=0,ye|=0;var Qe=x===0||x===90?1:-1;if(x=x===90||x===270,b[se][he]===Nh?(o0(a,se,he,Qe,x,te,y,De,$e),o0(a,se,he,1,!x,te,y,De,$e),o0(a,se,he,-1,!x,te,y,De,$e)):o0(a,se,he,Qe,x,se,he,se,he),b[ge][ye]===Nh?(a0(a,ge,ye,E===0||E===90?1:-1,E===90||E===270,te,y,De,$e),a0(a,ge,ye,1,!(E===90||E===270),te,y,De,$e),a0(a,ge,ye,-1,!(E===90||E===270),te,y,De,$e)):a0(a,ge,ye,Qe,x,ge,ye,ge,ye),x=xn(),ne&&sS(a,ge,ye,E,se,he,x))for((x[0]!==ge||x[1]!==ye)&&(x.unshift(ye),x.unshift(ge)),(x[x.length-2]!==se||x[x.length-1]!==he)&&(x.push(se),x.push(he)),a=Xd,E=x[x.length-2],ne=x[x.length-1],b[E][ne]=a++,te=x.length-4;0<=te;te-=2)for(E=x[te+2],ne=x[te+3],y=x[te],ge=x[te+1];y>E?E++:y<E?E--:ge>ne?ne++:ge<ne&&ne--,b[E][ne]=a++,E!==y||ne!==ge;);else jc(a,se,he,1,!1,te,y,De,$e),jc(a,se,he,-1,!1,te,y,De,$e),jc(a,se,he,1,!0,te,y,De,$e),jc(a,se,he,-1,!0,te,y,De,$e);In(x)}}}}function sS(a,y,x,b,E,te,ne){for(var se=a.ac,he=y,ge=x;;){if(he===E&&ge===te)return!0;var ye=he,De=ge;if(b===0)if(ye<E)ye++;else break;else if(b===90)if(De<te)De++;else break;else if(b===180)if(ye>E)ye--;else break;else if(De>te)De--;else break;var $e=se[ye][De];if($e===0||$e===ey)break;he=ye,ge=De}for(;;){if(ye=b,De=he,$e=ge,b===0?$e<te?(ye=90,$e++):$e>te&&(ye=270,$e--):b===90?De<E?(ye=0,De++):De>E&&(ye=180,De--):b===180?$e<te?(ye=90,$e++):$e>te&&(ye=270,$e--):De<E?(ye=0,De++):De>E&&(ye=180,De--),De=se[De][$e],ye!==b&&De!==0&&De!==ey){if(ne.push(he),ne.push(ge),sS(a,he,ge,ye,E,te,ne))return!0;ne.pop(),ne.pop()}if(se[he][ge]=ey,b===0){if(he===y)return!1;he--}else if(b===90){if(ge===x)return!1;ge--}else if(b===180){if(he===y)return!1;he++}else{if(ge===x)return!1;ge++}}}jt.Object.defineProperties(kg.prototype,{bounds:{get:function(){return new Tn(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 Nh=0,Xd=1,Pp=999999,qv=Pp+1,ey=Pp+2;kg.className="PositionArray";function Lf(){ui(this),this.port=this.node=null,this.pe=[],this.ap=!1}Lf.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 Nx(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}Lf.prototype.Sl=function(){this.pe.length=0};function lS(a,y){var x=a.pe;if(x.length===0){e:if(!a.ap){x=a.ap,a.ap=!0;var b=null,E=a.node,te=E instanceof ei?E:null;if(te===null||te.isSubGraphExpanded)var ne=E.isTreeExpanded?E.findLinksConnected(a.port.portId):E.qx();else{if(!te.actualBounds.w()){a.ap=x;break e}b=te,ne=b.Lu()}te=a.pe.length=0;var se=a.port.ga(Ua,Lt.alloc()),he=a.port.ga(As,Lt.alloc());for(E=Tn.allocAt(se.x,se.y,0,0),E.Ye(he),Lt.free(se),Lt.free(he),se=Lt.allocAt(E.x+E.width/2,E.y+E.height/2),he=a.port.li(),ne=ne.iterator;ne.next();){var ge=ne.value;if(ge.isVisible()&&ge.fromPort!==ge.toPort){var ye=ge.fromPort===a.port||ge.fromNode!==null&&ge.fromNode.Td(b),De=ge.computeSpot(ye,a.port);if(De.$c()&&(ye=ye?ge.toPort:ge.fromPort,ye!==null)){var $e=ye.part;if($e!==null){var Qe=$e.findVisibleNode();Qe!==null&&Qe!==$e&&($e=Qe,ye=$e.port),ye=ge.computeOtherPoint($e,ye),$e=se.ab(ye),$e-=he,0>$e?$e+=360:360<=$e&&($e-=360),De=Nx(E,De,$e,ge.isOrthogonal),De===0?(De=4,180<$e&&($e-=360)):De===90?(De=8,270<$e&&($e-=360)):De===180?De=2:(De=1,90>$e&&($e+=360)),Qe=a.pe[te],Qe===void 0?(Qe=new ty(ge,$e,De),a.pe[te]=Qe):(Qe.link=ge,Qe.angle=$e,Qe.Nc=De),Qe.hv.set(ye),te++}}}}for(Lt.free(se),a.pe.sort(Lf.prototype.j),he=a.pe.length,b=-1,te=se=0;te<he;te++)ne=a.pe[te],ne!==void 0&&(ne.Nc!==b&&(b=ne.Nc,se=0),ne.Uo=se,se++);for(b=-1,se=0,te=he-1;0<=te;te--)he=a.pe[te],he!==void 0&&(he.Nc!==b&&(b=he.Nc,se=he.Uo+1),he.Gl=se);if(te=a.pe,De=a.port,b=a.node.portSpreading,se=Lt.alloc(),he=Lt.alloc(),ne=Lt.alloc(),ge=Lt.alloc(),De.ga(Ua,se),De.ga(Fl,he),De.ga(As,ne),De.ga(el,ge),Qe=$e=ye=De=0,b===Uv)for(var rt=0;rt<te.length;rt++){var ut=te[rt];if(ut!==null){var Ot=ut.link.computeThickness();switch(ut.Nc){case 8:$e+=Ot;break;case 2:Qe+=Ot;break;case 1:De+=Ot;break;default:case 4:ye+=Ot}}}var Tt=rt=0,Bt=1,_t=ut=0;for(Ot=0;Ot<te.length;Ot++){var Ht=te[Ot];if(Ht!==null){if(rt!==Ht.Nc){switch(rt=Ht.Nc,rt){case 8:var Vt=ne;Tt=ge;break;case 2:Vt=ge,Tt=se;break;case 1:Vt=se,Tt=he;break;default:case 4:Vt=he,Tt=ne}switch(ut=Tt.x-Vt.x,_t=Tt.y-Vt.y,rt){case 8:$e>Math.abs(ut)?(Bt=Math.abs(ut)/$e,$e=Math.abs(ut)):Bt=1;break;case 2:Qe>Math.abs(_t)?(Bt=Math.abs(_t)/Qe,Qe=Math.abs(_t)):Bt=1;break;case 1:De>Math.abs(ut)?(Bt=Math.abs(ut)/De,De=Math.abs(ut)):Bt=1;break;default:case 4:ye>Math.abs(_t)?(Bt=Math.abs(_t)/ye,ye=Math.abs(_t)):Bt=1}Tt=0}var hn=Ht.Zo;if(b===Uv){switch(Ht=Ht.link.computeThickness(),Ht*=Bt,hn.set(Vt),rt){case 8:hn.x=Vt.x+ut/2+$e/2-Tt-Ht/2;break;case 2:hn.y=Vt.y+_t/2+Qe/2-Tt-Ht/2;break;case 1:hn.x=Vt.x+ut/2-De/2+Tt+Ht/2;break;default:case 4:hn.y=Vt.y+_t/2-ye/2+Tt+Ht/2}Tt+=Ht}else{var rr=.5;b===Vm&&(rr=(Ht.Uo+1)/(Ht.Gl+1)),hn.x=Vt.x+ut*rr,hn.y=Vt.y+_t*rr}}}for(Lt.free(se),Lt.free(he),Lt.free(ne),Lt.free(ge),Vt=a.pe,te=0;te<Vt.length;te++)b=Vt[te],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,Tn.free(E)}x=a.pe}for(a=0;a<x.length;a++)if(E=x[a],E!==null&&E.link===y)return E;return null}Lf.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},Lf.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,oa,y.fromPort===this.port),b=a.Uo;if(0>b)return x;var E=a.Gl;if(1>=E||!y.isOrthogonal)return x;y=a.hv;var te=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=E-1-b),((a=a.Nc===2||a.Nc===4)?y.y<te.y:y.x<te.x)?x+8*b:(a?y.y===te.y:y.x===te.x)?x:x+8*(E-1-b)},Lf.className="Knot";function ty(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Lt,this.Gl=this.Uo=0,this.Zo=new Lt,this.Ju=0}ty.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()},ty.className="LinkInfo";function Ro(a){ui(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Lt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Ro.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},Ro.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ro.prototype.qb=function(){},Ro.prototype.toString=function(){var a=gn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Ro.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())}}},Ro.prototype.createNetwork=function(){return new xo(this)},Ro.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof cn?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof ei?y.lg(a.memberParts):y.lg(a.iterator),y},Ro.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")}},Ro.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()}},Ro.prototype.doLayout=function(a){var y=new Dn;a instanceof cn?(rd(this,y,a.nodes,!0,this.rh,!0,!1,!0),rd(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof ei?rd(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},Ro.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,b=x,E=this.arrangementOrigin.y,te=0,ne=0;for(a=a.iterator;a.next();){var se=a.value;Ng(se);var he=se.measuredBounds,ge=he.width;he=he.height,se.moveTo(b,E),se instanceof ei&&(se.rh=!1),b+=Math.max(ge,50)+20,ne=Math.max(ne,Math.max(he,50)),te>=y-1?(te=0,b=x,E+=ne+20,ne=0):te++}},Ro.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,b=this.arrangementOrigin.y,E=0,te=0,ne=this.network.vertexes.iterator;ne.next();){var se=ne.value.node;if(!(se===null||se instanceof Vn)&&(Ng(se),this.rh(se))){var he=se.measuredBounds,ge=he.width;he=he.height,se.moveTo(x,b),se instanceof ei&&(se.rh=!1),x+=Math.max(ge,50)+20,te=Math.max(te,Math.max(he,50)),E>=a-1?(E=0,x=y,b+=te+20,te=0):E++}}},Ro.prototype.rh=function(a){return!!(!a.location.w()||a instanceof ei&&a.rh)};function rd(a,y,x,b,E,te,ne,se){for(x=x.iterator;x.next();){var he=x.value;b&&!he.isTopLevel||E!==null&&!E(he)||!he.canLayout()||(te&&he instanceof sr?he.isLinkLabel||(he instanceof ei&&he.layout===null?rd(a,y,he.memberParts,!1,E,te,ne,se):(Ng(he),y.add(he))):ne&&he instanceof Vn?y.add(he):!se||!he.Zc()||he instanceof sr||(Ng(he),y.add(he)))}}function Ng(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Ro.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new Tn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Ro.prototype.ex=function(a){var y=new Dn;return a instanceof cn?(rd(this,y,a.nodes,!0,null,!0,!0,!0),rd(this,y,a.links,!0,null,!0,!0,!0),rd(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof ei?rd(this,y,a.memberParts,!1,null,!0,!0,!0):rd(this,y,a.iterator,!1,null,!0,!0,!0),y},Ro.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(Ua),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},jt.Object.defineProperties(Ro.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())}}}),Ro.prototype.collectParts=Ro.prototype.ex,Ro.prototype.getLayoutBounds=Ro.prototype.ni,Ro.prototype.invalidateLayout=Ro.prototype.C,Ro.className="Layout";function xo(a){ui(this),this.Sc=a,this.wf=new Dn,this.ye=new Dn,this.Es=new dr,this.zs=new dr}xo.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 Dn,this.ye=new Dn,this.Es=new dr,this.zs=new dr},xo.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},xo.prototype.createVertex=function(){return new Ga(this)},xo.prototype.createEdge=function(){return new Ll(this)},xo.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(ne){if(ne instanceof sr)return!ne.isLinkLabel;if(ne instanceof Vn){var se=ne.fromNode;return se===null||se.isLinkLabel?!1:(ne=ne.toNode,!(ne===null||ne.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof sr&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof ei&&b.layout===null)this.lg(b.memberParts,!1);else if(this.ki(b)===null){var E=this.createVertex();E.node=b,this.dh(E)}}}for(a.reset();a.next();)if(b=a.value,b instanceof Vn&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)&&this.Lo(b)===null){var te=b.fromNode;E=b.toNode,te!==null&&E!==null&&te!==E&&(te=this.findGroupVertex(te),E=this.findGroupVertex(E),te!==null&&E!==null&&this.Zj(te,E,b))}}},xo.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},it=xo.prototype,it.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},it.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},it.Iu=function(a){if(a!==null&&uS(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 uS(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}it.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},it.ki=function(a){return a===null?null:this.Es.I(a)},it.Bo=function(a){if(a!==null){ny(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function ny(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}}it.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},it.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),ry(this,a)}};function ry(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}it.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},it.Lo=function(a){return a===null?null:this.zs.I(a)},it.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},it.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))}},it.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]);In(a)},xo.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]);In(a),In(y)};function Ox(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]);In(y)}xo.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Ox(this),this.Ko()),a=new An;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),iy(this,y,b),y=!0;break}}}return a.sort(function(E,te){return E===null||te===null||E===te?0:te.vertexes.count-E.vertexes.count}),a};function iy(a,y,x){if(x!==null&&x.network!==y){uS(a,x),y.dh(x);for(var b=x.sourceEdges;b.next();){var E=b.value;E.network!==y&&(ry(a,E),ny(y,E),iy(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(ry(a,x),ny(y,x),iy(a,y,x.toVertex))}}xo.prototype.dz=function(){for(var a=new Dn,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},jt.Object.defineProperties(xo.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}}}),xo.prototype.findAllParts=xo.prototype.dz,xo.prototype.splitIntoSubNetworks=xo.prototype.Zx,xo.prototype.deleteSelfEdges=xo.prototype.Ko,xo.prototype.reverseEdge=xo.prototype.gm,xo.prototype.linkVertexes=xo.prototype.Zj,xo.prototype.findEdge=xo.prototype.Lo,xo.prototype.deleteLink=xo.prototype.Yy,xo.prototype.deleteEdge=xo.prototype.Mj,xo.prototype.addLink=xo.prototype.Dy,xo.prototype.addEdge=xo.prototype.Bo,xo.prototype.findVertex=xo.prototype.ki,xo.prototype.deleteNode=xo.prototype.Zy,xo.prototype.deleteVertex=xo.prototype.Iu,xo.prototype.addNode=xo.prototype.Bl,xo.prototype.addVertex=xo.prototype.dh,xo.prototype.addParts=xo.prototype.lg,xo.className="LayoutNetwork";function Ga(a){ui(this),this.ob=a,this.j=new Tn(0,0,10,10).freeze(),this.o=new Lt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new An,this.mg=new An}Ga.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new An,this.mg=new An},Ga.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Mi(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,b=this.tg.iterator;b.next();){var E=b.value;x?x=!1:a+=",",a+=E.toString(0)}for(E="",x=!0,b=this.mg.iterator;b.next();){var te=b.value;x?x=!1:E+=",",E+=te.toString(0)}y+=" sources: "+a+" destinations: "+E}return y},Ga.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;nn(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 ei)){x=Tn.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(Di);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),Tn.free(x);return}Tn.free(x)}a.moveTo(y.x,y.y)}},Ga.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Ga.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Ga.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Ga.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function oy(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}jt.Object.defineProperties(Ga.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=Tn.alloc(),b=y.ni(a,x);y=b.x;var E=b.y,te=b.width;if(b=b.height,isNaN(y)&&(y=0),isNaN(E)&&(E=0),this.j.h(y,E,te,b),Tn.free(x),!(a instanceof ei)&&(a=a.locationObject.ga(Di),a.w())){this.o.h(a.x-y,a.y-E);return}this.o.h(te/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 Dn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Dn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Dn,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 An,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}}}),Ga.prototype.deleteDestinationEdge=Ga.prototype.Jl,Ga.prototype.addDestinationEdge=Ga.prototype.zl,Ga.prototype.deleteSourceEdge=Ga.prototype.Kl,Ga.prototype.addSourceEdge=Ga.prototype.Cl,Ga.className="LayoutVertex",Ga.standardComparer=oy,Ga.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x<y.length;x++)if(a[x]!==""&&a[x]!==void 0){var b=parseFloat(y[x]),E=parseFloat(a[x]);if(isNaN(b))if(isNaN(E)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(y[x]!=="")return 1;return a[x]!==""&&a[x]!==void 0?-1:0}return 1}return x!==null?-1:0}return 1}return y!==null?-1:0};function Ll(a){ui(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Ll.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Ll.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Mi(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},Ll.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Ll.prototype.commit=function(){},Ll.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},jt.Object.defineProperties(Ll.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)}}}),Ll.prototype.getOtherVertex=Ll.prototype.Ax,Ll.className="LayoutEdge";function hs(a){Ro.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Xn(NaN,NaN).freeze(),this.tf=new Xn(10,10).freeze(),this.Jb=Og,this.Rb=l0,this.nd=Ag,this.hd=cS,a&&Object.assign(this,a)}Jt(hs,Ro),hs.prototype.cloneProtected=function(a){Ro.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},hs.prototype.qb=function(a){a.classType===hs?a===Ag||a===c0||a===ay||a===u0?this.sorting=a:a===l0||a===Xu?this.arrangement=a:a===Og||a===s0?this.alignment=a:Zt("Unknown enum value: "+a):Ro.prototype.qb.call(this,a)},hs.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 ei)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var E=y.Fa();if(E.length!==0){switch(this.sorting){case u0:E.reverse();break;case Ag:E.sort(this.comparer);break;case c0:E.sort(this.comparer),E.reverse()}var te=this.wrappingColumn;isNaN(te)&&(te=0);var ne=this.wrappingWidth;switch(isNaN(ne)&&a!==null?(y=a.padding,ne=Math.max(a.viewportBounds.width-y.left-y.right,0)):ne=Math.max(this.wrappingWidth,0),0>=te&&0>=ne&&(te=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 s0:var se=y,he=x,ge=Tn.alloc(),ye=Math.max(this.cellSize.width,1);if(!isFinite(ye))for(var De=ye=0;De<E.length;De++){var $e=this.ni(E[De],ge);ye=Math.max(ye,$e.width)}if(ye=Math.max(ye+se,1),De=Math.max(this.cellSize.height,1),!isFinite(De))for($e=De=0;$e<E.length;$e++){var Qe=this.ni(E[$e],ge);De=Math.max(De,Qe.height)}De=Math.max(De+he,1),$e=this.arrangement;for(var rt=Qe=this.arrangementOrigin.x,ut=this.arrangementOrigin.y,Ot=0,Tt=0,Bt=0;Bt<E.length;Bt++){var _t=E[Bt],Ht=this.ni(_t,ge),Vt=Math.ceil((Ht.width+se)/ye)*ye,hn=Math.ceil((Ht.height+he)/De)*De;switch($e){case Xu:var rr=Math.abs(rt-Ht.width);break;default:rr=rt+Ht.width}switch((0<te&&Ot>te-1||0<ne&&0<Ot&&rr-Qe>ne)&&(b.push(new Tn(0,ut,ne+se,Tt)),Ot=0,rt=Qe,ut+=Tt,Tt=0),Tt=Math.max(Tt,hn),$e){case Xu:Ht=-Ht.width;break;default:Ht=0}switch(_t.moveTo(rt+Ht,ut),$e){case Xu:rt-=Vt;break;default:rt+=Vt}Ot++}b.push(new Tn(0,ut,ne+se,Tt)),Tn.free(ge);break;case Og:for(he=ne,ye=te,De=y,$e=x,ne=Tn.alloc(),Qe=Math.max(this.cellSize.width,1),te=ut=ge=0,se=Lt.alloc(),rt=0;rt<E.length;rt++)Tt=E[rt],Ot=this.ni(Tt,ne),Tt=Th(Tt,Tt.locationObject,Tt.locationSpot,se),ge=Math.max(ge,Tt.x),ut=Math.max(ut,Ot.width-Tt.x),te=Math.max(te,Tt.y);switch(rt=this.arrangement,rt){case Xu:ge+=De;break;default:ut+=De}Qe=isFinite(Qe)?Math.max(Qe+De,1):Math.max(ge+ut,1);var fr=Tt=this.arrangementOrigin.x;for(Bt=this.arrangementOrigin.y,ut=0,he>=ge&&(he-=ge),ge=_t=0,Vt=Math.max(this.cellSize.height,1),Ht=te=0,hn=!0,Ot=Lt.alloc(),rr=0;rr<E.length;rr++){var cr=E[rr],Zn=this.ni(cr,ne),Bn=Th(cr,cr.locationObject,cr.locationSpot,se);if(0<ut)switch(rt){case Xu:fr=(fr-Tt-(Zn.width-Bn.x))/Qe,fr=Qt.$(Math.round(fr),fr)?Math.round(fr):Math.floor(fr),fr=fr*Qe+Tt;break;default:fr=(fr-Tt+Bn.x)/Qe,fr=Qt.$(Math.round(fr),fr)?Math.round(fr):Math.ceil(fr),fr=fr*Qe+Tt}else switch(rt){case Xu:_t=fr+Bn.x+Zn.width;break;default:_t=fr-Bn.x}switch(rt){case Xu:var Jr=-(fr+Bn.x)+_t;break;default:Jr=fr+Zn.width-Bn.x-_t}if(0<ye&&ut>ye-1||0<he&&0<ut&&Jr>he){for(b.push(new Tn(0,hn?Bt-te:Bt,he+De,Ht+te+$e)),fr=0;fr<ut&&rr!==ut;fr++){Jr=E[rr-ut+fr];var Wr=Th(Jr,Jr.locationObject,Jr.locationSpot,Ot);Jr.moveTo(Jr.position.x,Jr.position.y+te-Wr.y)}Ht+=$e,Bt=hn?Bt+Ht:Bt+(Ht+te),ut=Ht=te=0,fr=Tt,hn=!1}switch(fr===Tt&&(ge=rt===Xu?Math.max(ge,Zn.width-Bn.x):Math.min(ge,-Bn.x)),te=Math.max(te,Bn.y),Ht=Math.max(Ht,Zn.height-Bn.y),isFinite(Vt)&&(Ht=Math.max(Ht,Math.max(Zn.height,Vt)-Bn.y)),hn?cr.moveTo(fr-Bn.x,Bt-Bn.y):cr.moveTo(fr-Bn.x,Bt),rt){case Xu:fr-=Bn.x+De;break;default:fr+=Zn.width-Bn.x+De}ut++}if(b.push(new Tn(0,Bt,he+De,(hn?Ht:Ht+te)+$e)),E.length!==ut)for(he=0;he<ut;he++)ye=E[E.length-ut+he],De=Th(ye,ye.locationObject,ye.locationSpot,se),ye.moveTo(ye.position.x,ye.position.y+te-De.y);if(Lt.free(se),Lt.free(Ot),rt===Xu)for(E=0;E<b.length;E++)te=b[E],te.width+=ge,te.x-=ge;else for(E=0;E<b.length;E++)te=b[E],te.x>ge&&(te.width+=te.x-ge,te.x=ge);Tn.free(ne)}for(se=te=ne=E=0;se<b.length;se++)he=b[se],E=Math.min(E,he.x),ne=Math.min(ne,he.y),te=Math.max(te,he.x+he.width);this.arrangement===Xu?this.commitLayers(b,new Lt(E+y/2-(te+E),ne-x/2)):this.commitLayers(b,new Lt(E-y/2,ne-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},hs.prototype.commitLayers=function(){};function cS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}jt.Object.defineProperties(hs.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!==Og&&a!==s0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==l0&&a!==Xu||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==ay&&a!==u0&&a!==Ag&&a!==c0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var s0=new en(hs,"Position",0),Og=new en(hs,"Location",1),l0=new en(hs,"LeftToRight",2),Xu=new en(hs,"RightToLeft",3),ay=new en(hs,"Forward",4),u0=new en(hs,"Reverse",5),Ag=new en(hs,"Ascending",6),c0=new en(hs,"Descending",7);hs.className="GridLayout",hs.standardComparer=cS,hs.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),y=y.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var x=0;x<a.length;x++)if(y[x]!==""&&y[x]!==void 0){var b=parseFloat(a[x]),E=parseFloat(y[x]);if(isNaN(b))if(isNaN(E)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},hs.Position=s0,hs.Location=Og,hs.LeftToRight=l0,hs.RightToLeft=Xu,hs.Forward=ay,hs.Reverse=u0,hs.Ascending=Ag,hs.Descending=c0;function io(){this.On=new Dn,this.Dn=new Dn,this.Pa=new Dn,this.cf=new dr,this.bf=new dr,this.aj=new dr,this.H=null,this.tp=!1}it=io.prototype,it.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},it.Xe=function(a){this.H=a},it.oi=function(a){if(a instanceof sr){if(this.On.add(a),a instanceof ei){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 Vn?this.Dn.add(a):a instanceof Gi||this.Pa.add(a);y=a.data,y===null||a instanceof Gi||(a instanceof Vn?this.bf.add(y,a):this.cf.add(y,a))},it.pc=function(a){if(a.Ej(),a instanceof sr){if(this.On.remove(a),a instanceof ei){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 Vn?this.Dn.remove(a):a instanceof Gi||this.Pa.remove(a);y=a.data,y===null||a instanceof Gi||(a instanceof Vn?this.bf.remove(y):this.cf.remove(y))},it.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 ei)&&Zt('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 ei||Zt('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 Vn||Zt('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 E=b.value;E.data!==null&&(a.push(E.data),a.push(E.location))}for(b=this.links.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(b=this.parts.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),b=0;b<y.length;b++)E=this.Lc(y[b]),E!==null&&(E.isSelected=!0);for(b=0;b<x.length;b++)E=this.Lc(x[b]),E!==null&&(E.isHighlighted=!0);for(b=0;b<a.length;b+=2)E=this.Lc(a[b]),E!==null&&(E.location=a[b+1]);In(y),In(x),In(a)}},io.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},io.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(E){b.lb(E)&&hS(x,E,!1)}),a.forEach(function(E){b.lb(E)&&x.resolveReferencesForData(E)}),y!==!1&&Qf(this.diagram,!1)};function hS(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);e:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var b=a.Ro(y),E=dS(a,y,b);if(E!==null&&(Su(E),E=E.copy(),E!==null)){var te=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=b,E.ub=y,a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=te,b=E;break e}}b=null}b!==null&&x&&a.resolveReferencesForData(y)}}io.prototype.insertLink=function(){return null},io.prototype.resolveReferencesForData=function(){},io.prototype.Ro=function(a){return this.H.model.Ro(a)};function dS(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&&(gS||(gS=!0,ar('No Group template found for category "'+x+'"'),ar(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(pS||(pS=!0,ar('No Node template found for category "'+x+'"'),ar(" Using default node template")),y=a.ny))),y}io.prototype.getLinkCategoryForData=function(){return""},io.prototype.setLinkCategoryForData=function(){},io.prototype.setFromNodeForLink=function(){},io.prototype.setToNodeForLink=function(){},io.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(mS||(mS=!0,ar('No Link template found for category "'+a+'"'),ar(" Using default link template")),x=y.my)),x},io.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},io.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},io.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Vh(this.diagram,a,!1),this.unresolveReferencesForPart(a))},io.prototype.unresolveReferencesForPart=function(){},io.prototype.removeDataForLink=function(){},io.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},io.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof sr?a:null)},io.prototype.findLinkForKey=function(){return null},it=io.prototype,it.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},it.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof sr?a:null)},it.Kc=function(a){return a===null?null:this.bf.I(a)},it.ms=function(a){for(var y=0;y<arguments.length;++y);y=new Dn;for(var x=this.On.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var te=0;te<arguments.length;te++){var ne=arguments[te];if(nn(ne)&&sy(this,E,ne)){y.add(b);break}}}return y.iterator},it.ls=function(a){for(var y=0;y<arguments.length;++y);y=new Dn;for(var x=this.Dn.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var te=0;te<arguments.length;te++){var ne=arguments[te];if(nn(ne)&&sy(this,E,ne)){y.add(b);break}}}return y.iterator};function sy(a,y,x){for(var b in x){var E=y[b],te=x[b];if(On(te)){if(!On(E)||E.length<te.length)return!1;for(var ne=0;ne<E.length;ne++){var se=te[ne];if(se!==void 0&&!fS(a,E[ne],se))return!1}}else if(!fS(a,E,te))return!1}return!0}function fS(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(nn(y)&&nn(x)){if(!sy(a,y,x))return!1}else if(y!==x)return!1;return!0}io.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===zo){if(b==="nodeCategory"){var E=this.Lc(a.object),te=a.newValue;E!==null&&typeof te=="string"&&(E.category=te)}else b==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===sa){var ne=a.newValue;b==="nodeDataArray"&&nn(ne)&&hS(this,ne),y.isModified=!0}else if(x===Ma){var se=a.oldValue;b==="nodeDataArray"&&nn(se)&&this.ip(se),y.isModified=!0}else x===rl&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===zo){var he=a.propertyName,ge=a.object;ge===y.model?(he==="nodeKeyProperty"||he==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(ge,he),y.isModified=!0}else if(x===sa||x===Ma){var ye=a.change===sa,De=ye?a.newParam:a.oldParam,$e=ye?a.newValue:a.oldValue,Qe=this.aj.I(a.object);if(Array.isArray(Qe))for(a=0;a<Qe.length;a++){var rt=Qe[a];if(ye)km(rt,$e,De,!0);else if(!(0>De)){var ut=De+fg(rt);rt.pc(ut,!0),wv(rt,ut,De)}}y.isModified=!0}}finally{y.aa=!0}}}}},io.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)},io.prototype.rp=function(){for(var a=this.H.model,y=new Dn,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var E=[];for(this.nodes.each(function(ne){ne.data===null||y.contains(ne.data)||E.push(ne.data)}),this.parts.each(function(ne){ne.data===null||y.contains(ne.data)||E.push(ne.data)}),E.forEach(function(ne){ES(a,ne,!1)}),b=0;b<x.length;b++){var te=x[b];this.Lc(te)===null&&CS(a,te,!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()},io.prototype.refreshDataBoundLinks=function(){},io.prototype.updateRelationshipsFromData=function(){},io.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var x=this.Lc(a);if(x!==null)x.La(y);else{x=null;for(var b=this.aj.iterator;b.next();){for(var E=b.value,te=0;te<E.length;te++){var ne=E[te].sx(a);ne!==null&&(x===null&&(x=xn()),x.push(ne))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);In(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function ly(a,y){var x=y.Hh;if(On(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 uy(a,y,x){Ud(y,function(ne){ne=ne.O.s;for(var se=ne.length,he=0;he<se;he++)Jp(x,ne[he])});var b=y.Hh;if(On(b)){var E=a.aj.I(b);if(E!==null){for(var te=0;te<E.length;te++)if(E[te]===y){E.splice(te,1),E.length===0&&a.aj.remove(b);break}}}}io.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new dr;if(On(a))for(var E=0;E<a.length;E++)h0(this,a[E],y,b,x);else for(a=a.iterator;a.next();)h0(this,a.value,y,b,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,E=new Dn;for(var te=new dr,ne=b.iterator;ne.next();){var se=ne.value;if(se instanceof Vn)a||se.fromNode!==null&&se.toNode!==null||E.add(se);else if(se instanceof sr&&se.data!==null&&x.Tl()){var he=se;se=ne.key;var ge=se.pg();ge!==null&&(ge=b.I(ge),ge!==null?(x.qe(he.data,x.wa(ge.data)),he=y.Kc(he.data),se=se.kh(),se!==null&&he!==null&&te.add(se,he)):x.qe(he.data,void 0))}}if(0<E.count&&y.Is(E,!1),0<te.count)for(x=te.iterator;x.next();)b.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var ye=new dr;b.each(function(De){De.key.data!==null&&ye.add(De.key.data,De.value.data)}),x(ye,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function h0(a,y,x,b,E){if(y===null||E&&!y.canCopy())return null;if(b.contains(y))return b.I(y);var te=a.copyPartData(y,x);if(!(te instanceof Tr))return null;if(te.isSelected=!1,te.isHighlighted=!1,b.add(y,te),y instanceof sr){for(var ne=y.linksConnected;ne.next();){var se=ne.value;if(se.fromNode===y){var he=b.I(se);he!==null&&(he.fromNode=te)}se.toNode===y&&(se=b.I(se),se!==null&&(se.toNode=te))}if(y instanceof ei&&te instanceof ei)for(y=y.memberParts;y.next();)ne=h0(a,y.value,x,b,E),ne instanceof Vn||ne===null||(ne.containingGroup=te)}else if(y instanceof Vn&&te instanceof Vn)for(ne=y.fromNode,ne!==null&&(ne=b.I(ne),ne!==null&&(te.fromNode=ne)),ne=y.toNode,ne!==null&&(ne=b.I(ne),ne!==null&&(te.toNode=ne)),y=y.labelNodes;y.next();)ne=h0(a,y.value,x,b,E),ne!==null&&ne instanceof sr&&(ne.labeledLink=te);return te}io.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof Vn||(b=E.copyNodeData(b),nn(b)&&(E.xf(b),x=y.Lc(b)))}else Su(a),x=a.copy(),x!==null&&(E=this.H,y!==null?y.add(x):b!==null&&E!==null&&E.commandHandler!==null&&E.commandHandler.copiesClipboardData&&(y=E.model,E=null,x instanceof Vn||(E=y.copyNodeData(b)),nn(E)&&(x.data=E)));return x},jt.Object.defineProperties(io.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}}}),io.prototype.updateAllRelationshipsFromData=io.prototype.rp,io.prototype.findLinksByExample=io.prototype.ls,io.prototype.findNodesByExample=io.prototype.ms,io.prototype.findLinkForData=io.prototype.Kc,io.prototype.findNodeForData=io.prototype.ii,io.prototype.findPartForData=io.prototype.Lc,io.prototype.findNodeForKey=io.prototype.Vb,io.prototype.removeModeledPart=io.prototype.ip,io.prototype.removeModeledParts=io.prototype.Gs,io.prototype.rebuildParts=io.prototype.Wd;var pS=!1,gS=!1,mS=!1;io.className="PartManager";function ts(a){io.apply(this,arguments)}Jt(ts,io),ts.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),vS(this,a.linkDataArray)},ts.prototype.addModeledParts=function(a){for(io.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Sp(a.value);Qf(this.diagram,!1)};function vS(a,y){y.forEach(function(x){yS(a,x)}),Qf(a.diagram,!1)}function yS(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){Su(b);var E=b.copy();if(E!==null){b=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,E.Tf=x,E.ub=y,x=a.diagram.model;var te=g0(x,y,!0);te!==""&&(E.fromPortId=te),te=Jl(x,y,!0),te!==void 0&&(te=a.Vb(te),te instanceof sr&&(E.fromNode=te)),te=g0(x,y,!1),te!==""&&(E.toPortId=te),te=Jl(x,y,!1),te!==void 0&&(te=a.Vb(te),te instanceof sr&&(E.toNode=te)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(ne){ne=a.Vb(ne),ne!==null&&(ne.labeledLink=E)}),a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=b}}}}ts.prototype.removeAllModeledParts=function(){var a=this.diagram.model;SS(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function SS(a,y){y.forEach(function(x){a.ip(x)})}ts.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},ts.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},ts.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},ts.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},ts.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},ts.prototype.findPartForKey=function(a){var y=io.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},ts.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},ts.prototype.doModelChanged=function(a){var y=this;if(io.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var b=a.change;if(x.aa){x.aa=!1;try{var E=a.modelChange;if(E!==""){if(b===zo){if(E==="linkFromKey"){var te=this.Kc(a.object);if(te!==null){var ne=this.Vb(a.newValue);te.fromNode=ne}}else if(E==="linkToKey"){var se=this.Kc(a.object);if(se!==null){var he=this.Vb(a.newValue);se.toNode=he}}else if(E==="linkFromPortId"){var ge=this.Kc(a.object);if(ge!==null){var ye=a.newValue;typeof ye=="string"&&(ge.fromPortId=ye)}}else if(E==="linkToPortId"){var De=this.Kc(a.object);if(De!==null){var $e=a.newValue;typeof $e=="string"&&(De.toPortId=$e)}}else if(E==="nodeGroupKey"){var Qe=this.Lc(a.object);if(Qe!==null){var rt=a.newValue;if(rt!==void 0){var ut=this.Vb(rt);ut instanceof ei?Qe.containingGroup=ut:Qe.containingGroup=null}else Qe.containingGroup=null}}else if(E==="linkLabelKeys"){var Ot=this.Kc(a.object);if(Ot!==null){var Tt=a.oldValue,Bt=a.newValue;Array.isArray(Tt)&&Tt.forEach(function(Bn){0<=Bt.indexOf(Bn)||(Bn=y.Vb(Bn),Bn!==null&&(Bn.labeledLink=null))}),Array.isArray(Bt)&&Bt.forEach(function(Bn){Bn=y.Vb(Bn),Bn!==null&&(Bn.labeledLink=Ot)})}}else if(E==="linkCategory"){var _t=this.Kc(a.object),Ht=a.newValue;_t!==null&&typeof Ht=="string"&&(_t.category=Ht)}else E==="linkDataArray"&&(SS(this,a.oldValue),vS(this,a.newValue));x.isModified=!0}else if(b===sa){var Vt=a.newValue;if(E==="linkDataArray"&&typeof Vt=="object"&&Vt!==null)yS(this,Vt);else if(E==="linkLabelKeys"&&od(Vt)){var hn=this.Kc(a.object),rr=this.Vb(Vt);hn!==null&&rr!==null&&(rr.labeledLink=hn)}x.isModified=!0}else if(b===Ma){var fr=a.oldValue;if(E==="linkDataArray"&&typeof fr=="object"&&fr!==null)this.ip(fr);else if(E==="linkLabelKeys"&&od(fr)){var cr=this.Vb(fr);cr!==null&&(cr.labeledLink=null)}x.isModified=!0}}else if(b===zo){var Zn=a.propertyName;a.object!==x.model||Zn!=="linkFromKeyProperty"&&Zn!=="linkToKeyProperty"&&Zn!=="linkFromPortIdProperty"&&Zn!=="linkToPortIdProperty"&&Zn!=="linkLabelKeysProperty"&&Zn!=="nodeIsGroupProperty"&&Zn!=="nodeGroupKeyProperty"&&Zn!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},ts.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new Dn,b=y.linkDataArray;b.forEach(function(te){x.add(te)});var E=[];this.links.each(function(te){te.data===null||x.contains(te.data)||E.push(te.data)}),E.forEach(function(te){OS(y,te,!1)}),b.forEach(function(te){a.Kc(te)===null&&NS(y,te,!1)})},ts.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 Vn){var E=Jl(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=Jl(b,y,!1),E=x.Vb(E),a.toNode=E,y=b.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){E=y[0];var te=a.labelNodes.first();if(b.wa(te.data)===E)return}E=new Dn().addAll(y);var ne=new Dn;a.labelNodes.each(function(se){se.data!==null&&(se=b.wa(se.data),se!==void 0&&ne.add(se))}),y=ne.copy(),y.hp(E),E=E.copy(),E.hp(ne),(0<y.count||0<E.count)&&(y.each(function(se){se=x.Vb(se),se!==null&&se.labeledLink===a&&(se.labeledLink=null)}),E.each(function(se){se=x.Vb(se),se!==null&&se.labeledLink!==a&&(se.labeledLink=a)}))}}else!(a instanceof Gi)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof ei)&&(a.containingGroup=y)}}},ts.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=jg(y,x),E=this.Lc(a);if(b!==null&&E!==null){b=b.iterator;for(var te={};b.next();){var ne=b.value;y.lb(ne)?E instanceof ei&&y.lh(ne)===x&&(ne=this.Lc(ne),ne!==null&&(ne.containingGroup=E)):(te.link=this.Kc(ne),te.link!==null&&E instanceof sr&&(Jl(y,ne,!0)===x&&(te.link.fromNode=E),Jl(y,ne,!1)===x&&(te.link.toNode=E),ne=y.Ef(ne),Array.isArray(ne)&&ne.some(function(se){return function(he){return he===x?(E.labeledLink=se.link,!0):!1}}(te)))),te={link:te.link}}Ju(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof ei&&(E.containingGroup=a))}},ts.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof sr){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)Yu(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&Yu(y,x,b.data)),a instanceof ei)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&Yu(y,x,b)}}},ts.prototype.copyPartData=function(a,y){var x=io.prototype.copyPartData.call(this,a,y);if(a instanceof Vn)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},ts.prototype.insertLink=function(a,y,x,b){var E=this.diagram,te=E.model,ne=E.toolManager.findTool("Linking"),se="";if(a!==null&&(y===null&&(y=a),se=y.portId,se===null&&(se="")),y="",x!==null&&(b===null&&(b=x),y=b.portId,y===null&&(y="")),b=ne.archetypeLinkData,b instanceof Vn){if(Su(b),te=b.copy(),te!==null)return te.fromNode=a,te.fromPortId=se,te.toNode=x,te.toPortId=y,E.add(te),a=ne.archetypeLabelNodeData,a instanceof sr&&(Su(a),a=a.copy(),a!==null&&(a.labeledLink=te,E.add(a))),te}else if(b!==null&&(b=te.Jo(b),typeof b=="object"&&b!==null))return a!==null&&Ep(te,b,te.wa(a.data),!0),Tp(te,b,se,!0),x!==null&&Ep(te,b,te.wa(x.data),!1),Tp(te,b,y,!1),te.fi(b),a=ne.archetypeLabelNodeData,a===null||a instanceof sr||(a=te.copyNodeData(a),typeof a=="object"&&a!==null&&(te.xf(a),a=te.wa(a),a!==void 0&&te.Bu(b,a))),E.Kc(b);return null},ts.prototype.findLinkForKey=ts.prototype.findLinkForKey,ts.prototype.findPartForKey=ts.prototype.findPartForKey,ts.prototype.removeAllModeledParts=ts.prototype.removeAllModeledParts,ts.prototype.addModeledParts=ts.prototype.addModeledParts,ts.prototype.addAllModeledParts=ts.prototype.addAllModeledParts,ts.className="GraphLinksPartManager";function cu(){io.apply(this,arguments),this.Sg=null}Jt(cu,io);function d0(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var b=a.diagram.toolManager.findTool("Linking"),E=y,te=x;if(a.diagram.isTreePathToChildren||(E=x,te=y),(b===null||!Wn(b,E,te,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(Su(b),b=b.copy(),b!==null))){var ne=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=y,b.ub=x.data,b.fromNode=E,b.toNode=te,a.diagram.add(b),b.ub=null,b.data=x.data,a.diagram.skipsModelSourceBindings=ne}}}cu.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},cu.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},cu.prototype.setFromNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)b.qe(a.data,b.wa(y));else{var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=E}},cu.prototype.setToNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=E}else b.qe(a.data,b.wa(y))},cu.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},cu.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},cu.prototype.doModelChanged=function(a){if(io.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===zo){if(b==="nodeParentKey"){var E=a.object,te=this.Vb(a.newValue),ne=this.ii(E);if(this.Sg!==null)te!==null&&(this.Sg.data=E,this.Sg.category=this.getLinkCategoryForData(E));else if(ne!==null){var se=ne.kh();se!==null?te===null?y.remove(se):y.isTreePathToChildren?se.fromNode=te:se.toNode=te:d0(this,te,ne)}}else if(b==="parentLinkCategory"){var he=this.ii(a.object),ge=a.newValue;if(he!==null&&typeof ge=="string"){var ye=he.kh();ye!==null&&(ye.category=ge)}}y.isModified=!0}}else if(x===zo){var De=a.propertyName;a.object===y.model&&De==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},cu.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof sr&&(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:d0(this,y,a):b!==null&&Vh(x,b,!1)))}}},cu.prototype.updateDataBindings=function(a,y){io.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},cu.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=jg(y,x),E=this.Lc(a);if(b!==null&&E!==null){for(b=b.iterator;b.next();){var te=b.value;y.lb(te)&&E instanceof sr&&y.mh(te)===x&&d0(this,E,this.ii(te))}Ju(y,x)}a=y.mh(a),a!==void 0&&E instanceof sr&&(a=this.Vb(a),d0(this,a,E))}},cu.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof sr){var x=y.wa(a.data),b=this.Kc(a.data);if(b!==null){b.isSelected=!1,b.isHighlighted=!1;var E=b.layer;if(E!==null){var te=E.pc(-1,b,!1);0<=te&&this.diagram.cb(Ma,"parts",E,b,null,te,null),te=b.layerChanged,te!==null&&te(b,E,null)}}for(b=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)E=a.value,E=(b?E.toNode:E.fromNode).data,y.lb(E)&&Yu(y,x,E)}},cu.prototype.insertLink=function(a,y,x){y=this.diagram.model;var b=a,E=x;return this.diagram.isTreePathToChildren||(b=x,E=a),b!==null&&E!==null?(y.qe(E.data,y.wa(b.data)),E.kh()):null},cu.prototype.findLinkForKey=cu.prototype.findLinkForKey,cu.className="TreePartManager";function xr(a,y){this.kl=new Dn,this.il=new Dn,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,ui(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new dr,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 dr,this.Lt=new An,this.Wg=!1,this.o=null,this.undoManager=new Wo,a!==void 0&&(On(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}xr.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},xr.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},xr.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},xr.prototype.toString=function(a){if(a===void 0&&(a=0),1<a)return this.np();var y=(this.name!==""?this.name:"")+" Model";if(0<a){y+=`
|
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Nn(E)}}return y},xr.prototype.xA=function(a){a.change!==rl&&Zt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Ka?(wS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},xr.prototype.Qv=function(a,y){var x=this,b=!1,E=new Dn,te=new Dn,ne=new Dn,se=this.vh;a.changes.each(function(De){De.model===x&&(De.modelChange==="nodeDataArray"?De.change===sa?E.add(De.newValue):De.change===Ma&&ne.add(De.oldValue):x.lb(De.object)?te.add(De.object):De.change!==zo||x.modelData!==De.object&&De.propertyName!=="modelData"?De.object!==null&&(se&&se.contains(De.object)?se.get(De.object).each(function($e){x.lb($e)&&te.add($e)}):De.object instanceof xr||x.ri()&&x.Jc(De.object)||bS(x,De.object).each(function($e){te.add($e)})):b=!0)});var he=this.il;he.clear(),E.each(function(De){he.add(x.wa(De)),y||te.add(De)});var ge=this.kl;ge.clear(),ne.each(function(De){ge.add(x.wa(De)),y&&te.add(De)}),a=x.cloneDeep(te.Fa());var ye=null;return b&&(ye===null&&(ye={}),ye.modelData=this.cloneDeep(this.modelData)),0<he.count&&(ye===null&&(ye={}),y?ye.removedNodeKeys=he.Fa():ye.insertedNodeKeys=he.Fa()),0<a.length&&(ye===null&&(ye={}),ye.modifiedNodeData=a),0<ge.count&&(ye===null&&(ye={}),y?ye.insertedNodeKeys=ge.Fa():ye.removedNodeKeys=ge.Fa()),ge.clear(),he.clear(),ye},xr.prototype.cloneDeep=function(a){return Cp(this,a,!0)};function Cp(a,y,x,b,E,te){function ne(De,$e){se?(De.__gohashid===void 0&&te.push(De),b.set(De,$e)):(De=Zo++,b.set(De,$e),E.set(De,y))}if(!nn(y))return y;te||(te=[]);var se=Object.isExtensible(y);if(b||(b=new dr),se){var he=b.get(y);if(he)return he}else for(E||(E=new dr),he=E.iterator;he.next();){var ge=he.key;if(he.value===y&&(ge=b.get(ge)))return ge}if(Array.isArray(y)){he=[],ne(y,he);for(var ye=0;ye<y.length;ye++)he.push(Cp(a,y[ye],!1,b,E,te))}else if(y instanceof Lt||y instanceof Xn||y instanceof Tn||y instanceof kr||y instanceof wr)he=y.copy(),ne(y,he);else{if(y instanceof to||y instanceof Yn||y instanceof en)return y;if(y instanceof An)he=new An().addAll(Cp(a,y.Fa(),!1,b,E,te)),ne(y,he);else if(y instanceof Dn)he=new Dn().addAll(Cp(a,y.Fa(),!1,b,E,te)),ne(y,he);else if(y instanceof dr)he=new dr().addAll(Cp(a,y.Fa(),!1,b,E,te)),ne(y,he);else if(y instanceof Date)he=new Date(y.getTime()),ne(y,he);else if(y instanceof RegExp)he=new RegExp(y),ne(y,he),he.lastIndex=y.lastIndex;else if(typeof y.copy=="function")he=y.copy(),ne(y,he);else for(ye in he={},ne(y,he),y)ye!=="__gohashid"&&(he[ye]=Cp(a,y[ye],!1,b,E,te))}return x&&te.forEach(function(De){delete De.__gohashid}),he}it=xr.prototype,it.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},it.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},it.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 xS(a,y){y=y.modelData,nn(y)&&(a.dm(y),a.modelData=y)}it.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!PS(x,a[x])){y=!0;break}return a="",y&&(a=`,
|
|
|
"modelData": `+cy(this,this.modelData)),a+`,
|
|
|
"nodeDataArray": `+id(this,this.nodeDataArray,!0)},it.kv=function(a){xS(this,a),a=a.nodeDataArray,On(a)&&(this.dm(a),this.nodeDataArray=a)};function wS(a,y){function x(E,te){if((te=te.part)&&(te=te.data,E!==te)){var ne=b.get(E);ne===null?(ne=new Dn,ne.add(te),b.add(E,ne)):ne.add(te)}}var b=a.vh;b===null&&(b=new dr,y.changes.each(function(E){if(E.diagram!==null){var te=E.change;te===zo?(E=E.object.panel)&&(te=E.data)&&x(te,E):(te===sa||te===Ma)&&(E=E.object,(te=E.itemArray)&&x(te,E))}}),a.vh=b)}function bS(a,y){for(var x=new Dn,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];f0(a,y,E,E,x)}return x}function f0(a,y,x,b,E){if(Array.isArray(x))for(var te=0;te<x.length;te++){var ne=x[te];if(ne===y)return E.add(b),!0;if(f0(a,y,ne,b,E))return!0}else if(nn(x)&&Object.getPrototypeOf(x)===Object.prototype)for(te in x){if(ne=x[te],ne===y)return E.add(b),!0;if(f0(a,y,ne,b,E))return!0}return!1}it.Pv=function(a,y){var x=this,b=!1,E=new Dn,te=new Dn,ne=new Dn,se=this.vh;a.changes.each(function(ye){ye.model===x&&(ye.modelChange==="nodeDataArray"?ye.change===sa?E.add(ye.newValue):ye.change===Ma&&ne.add(ye.oldValue):x.lb(ye.object)?te.add(ye.object):ye.change!==zo||x.modelData!==ye.object&&ye.propertyName!=="modelData"?ye.object!==null&&(se&&se.contains(ye.object)?se.get(ye.object).each(function(De){x.lb(De)&&te.add(De)}):ye.object instanceof xr||x.ri()&&x.Jc(ye.object)||bS(x,ye.object).each(function(De){te.add(De)})):b=!0)});var he=this.il;he.clear(),E.each(function(ye){he.add(x.wa(ye)),y||te.add(ye)});var ge=this.kl;return ge.clear(),ne.each(function(ye){ge.add(x.wa(ye)),y&&te.add(ye)}),a="",b&&(a+=`,
|
|
|
"modelData": `+cy(this,this.modelData)),0<he.count&&(a+=(y?this.Yv:this.Wv)+id(this,he.Fa(),!0)),0<te.count&&(a+=this.jy+id(this,te.Fa(),!0)),0<ge.count&&(a+=(y?this.Wv:this.Yv)+id(this,ge.Fa(),!0)),ge.clear(),he.clear(),a},it.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)&&Zt("applyIncrementalJson cannot change Model properties"),xS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new dr;if(Array.isArray(x))for(var E=0;E<x.length;E++){var te=x[E],ne=this.wa(te);ne!=null&&b.set(ne,te)}if(Array.isArray(y))for(E=y.length,te=0;te<E;te++){ne=y[te];var se=this.hc(ne);se===null&&(se=(se=b.get(ne))?se:this.copyNodeData({}),this.km(se,ne),this.xf(se))}if(Array.isArray(x)){for(y=x.length,b=0;b<y;b++)if(E=x[b],te=this.wa(E),te=this.hc(te),te!==null){for(var he in E)he==="__gohashid"||he===this.nodeKeyProperty||this.Wj()&&he===this.nodeIsGroupProperty||this.setDataProperty(te,he,E[he]);this.lm(E,te)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,he=0;he<x;he++)y=this.hc(a[he]),y!==null&&this.cm(y)},it.$x=function(a,y){a.change!==rl&&Zt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Ka?(y===void 0&&(y=Ig(this,this)),wS(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 }'},it.yA=function(a,y){return this.$x(a,y)},it.np=function(a){return a===void 0&&(a=Ig(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},it.toJSON=function(a){return this.np(a)},it.Zw=function(a){var y=null;if(typeof a=="string")try{y=Dt.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:Zt("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&Zt("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},it.Ky=function(a){return this.Zw(a)},xr.constructGraphLinksModel=function(){return new xr},it=xr.prototype,it.dm=function(a){if(On(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(nn(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:Zt("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(nn(a)){for(y in a)if(x=a[y],nn(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(E=x.length%2===0,b=0;b<x.length;b++)if(typeof x[b]!="number"){E=!1;break}if(E){for(E=new An,b=0;b<x.length/2;b++)E.add(new Lt(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Ax(a)}return a},it.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()):On(a)?id(this,a):nn(a)?cy(this,a):typeof a=="function"?"null":a.toString()};function id(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new Mr;E.add("["),x&&1<b&&E.add(`
|
|
|
`);for(var te=0;te<b;te++){var ne=y[te];ne!==void 0&&(0<te&&(E.add(","),x&&E.add(`
|
|
|
`)),E.add(a.sm(ne)))}return x&&1<b&&E.add(`
|
|
|
`),E.add("]"),E.toString()}function PS(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Zs(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function cy(a,y){var x=y;if(x instanceof Lt)y={class:"go.Point",x:Zs(x.x),y:Zs(x.y)};else if(x instanceof Xn)y={class:"go.Size",width:Zs(x.width),height:Zs(x.height)};else if(x instanceof Tn)y={class:"go.Rect",x:Zs(x.x),y:Zs(x.y),width:Zs(x.width),height:Zs(x.height)};else if(x instanceof kr)y={class:"go.Margin",top:Zs(x.top),right:Zs(x.right),bottom:Zs(x.bottom),left:Zs(x.left)};else if(x instanceof wr)x.sb()?y={class:"go.Spot",x:Zs(x.x),y:Zs(x.y),offsetX:Zs(x.offsetX),offsetY:Zs(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof to){if(y={class:"go.Brush",type:x.type.name},x.type===Ph?y.color=x.color:(x.type===th||x.type===lu)&&(y.start=x.start,y.end=x.end,x.type===lu&&(x.startRadius!==0&&(y.startRadius=Zs(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Zs(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 Yn?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Zs(x.startX)),x.startY!==0&&(y.startY=Zs(x.startY)),x.endX!==0&&(y.endX=Zs(x.endX)),x.endY!==0&&(y.endY=Zs(x.endY)),x.spot1.D(Ua)||(y.spot1=x.spot1),x.spot2.D(As)||(y.spot2=x.spot2),x.type===Yn.o&&(y.path=Yn.ia(x))):x instanceof en&&(y={class:"go.EnumValue",classType:Ig(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var te=fa(y,E);if(!PS(E,te))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&te instanceof An){var ne="[";for(te=te.iterator;te.next();){var se=te.value;1<ne.length&&(ne+=","),ne+=a.sm(se.x),ne+=",",ne+=a.sm(se.y)}ne+="]",b+=ne}else b+=a.sm(te)}return b+"}"}function Vs(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Ax(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 Lt(Vs(a.x),Vs(a.y));else if(y==="Size")x=new Xn(Vs(a.width),Vs(a.height));else if(y==="Rect")x=new Tn(Vs(a.x),Vs(a.y),Vs(a.width),Vs(a.height));else if(y==="Margin")x=new kr(Vs(a.top),Vs(a.right),Vs(a.bottom),Vs(a.left));else if(y==="Spot")typeof a.enum=="string"?x=wd(a.enum):x=new wr(Vs(a.x),Vs(a.y),Vs(a.offsetX),Vs(a.offsetY));else if(y==="Brush"){if(x=new to,x.type=ur(to,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof wr&&(x.start=a.start),a.end instanceof wr&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Vs(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Vs(a.endRadius)),a=a.colorStops,nn(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=Yn.parse(a.path):x=new Yn,x.type=ur(Yn,a.type),typeof a.startX=="number"&&(x.startX=Vs(a.startX)),typeof a.startY=="number"&&(x.startY=Vs(a.startY)),typeof a.endX=="number"&&(x.endX=Vs(a.endX)),typeof a.endY=="number"&&(x.endY=Vs(a.endY)),a.spot1 instanceof wr&&(x.spot1=a.spot1),a.spot2 instanceof wr&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=dy(b),typeof b=="function"&&(x=ur(b,a.name)));return x}it.Pe=function(a){return this.Lt.add(a),this},it.ik=function(a){this.Lt.remove(a)},it.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)},it.cb=function(a,y,x,b,E,te,ne){ja(this,"",a,y,x,b,E,te,ne)},it.g=function(a,y,x,b,E){ja(this,"",zo,a,this,y,x,b,E)},it.Fs=function(a,y,x,b,E,te){ja(this,"",zo,y,a,x,b,E,te)};function ja(a,y,x,b,E,te,ne,se,he){se===void 0&&(se=null),he===void 0&&(he=null);var ge=new _o;ge.model=a,ge.change=x,ge.modelChange=y,ge.propertyName=b,ge.object=E,ge.oldValue=te,ge.oldParam=se,ge.newValue=ne,ge.newParam=he,a.ds(ge)}xr.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===zo){var x=a.object,b=a.propertyName,E=a.I(y);b===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),E!==void 0&&this.kb.add(E,x)),Ao(x,b,E)}else a.change===sa?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,nn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&Ln(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&mn(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!On(b)&&a.propertyName&&(b=fa(a.object,a.propertyName)),On(b)&&typeof x=="number"&&(a=a.newValue,y?Ln(b,x):mn(b,x,a))):Zt("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Ma?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,nn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&mn(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&Ln(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!On(b)&&a.propertyName&&(b=fa(a.object,a.propertyName)),On(b)&&typeof x=="number"&&(a=a.oldValue,y?mn(b,x,a):Ln(b,x))):Zt("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==rl&&Zt("unknown ChangedEvent: "+a.toString())},xr.prototype.Ea=function(a){return this.undoManager.Ea(a)},xr.prototype.eb=function(a){return this.undoManager.eb(a)},xr.prototype.Kf=function(){return this.undoManager.Kf()},xr.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}},it=xr.prototype,it.La=function(a,y){y===void 0&&(y=""),ja(this,"SourceChanged",rl,y,a,null,null)},it.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=fa(a,y),y!==void 0)){if(od(y))return y;Zt("Key value for node data "+a+" is not a number or a string: "+y)}}},it.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=fa(a,x);b!==y&&this.hc(y)===null&&(Ao(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),ja(this,"nodeKey",zo,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else Ao(a,x,y)}};function od(a){return typeof a=="number"||typeof a=="string"}it.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},it.hc=function(a){return a===null&&Zt("Model.findNodeDataForKey:key must not be null"),a!==void 0&&od(a)?this.kb.I(a):null},it.$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))){Ao(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;Ao(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Ao(a,y,x)}}}}},it.xf=function(a){a!==null&&(fo(a),this.lb(a)||CS(this,a,!0))};function CS(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&&Zt("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,mn(a.Tc,b,y)),ja(a,"nodeDataArray",sa,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}it.Fy=function(a){if(On(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)},it.cm=function(a){a!==null&&ES(this,a,!0)};function ES(a,y,x){var b=a.wa(y);if(b!==void 0&&a.kb.remove(b),b=null,x){e:if(x=a.Tc,Array.isArray(x))b=x.indexOf(y);else{b=x.length;for(var E=0;E<b;E++)if(x[E]===y){b=E;break e}b=-1}if(0>b)return;Ln(a.Tc,b)}ja(a,"nodeDataArray",Ma,"nodeDataArray",a,y,null,b,null),a.qp(y)}it.nA=function(a){if(On(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)},it.$z=function(a){if(a!==this.nodeDataArray&&On(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var te=a[E],ne=this.wa(te);if(ne!==void 0){x.add(ne);var se=this.hc(ne);se!==te&&(se!==null?(this.Do(se,te),this.lm(te,se)):(te=this.cloneDeep(te),this.km(te,ne),this.xf(te)))}else ne=this.cloneDeep(te),this.xf(ne),x.add(this.wa(ne))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.hc(b))&&this.cm(b);y.clear(),x.clear()}},it.jp=function(a,y){y!==void 0&&(a=jg(this,a),a instanceof Dn&&this.Vf.add(y,a))},it.Lv=function(){},it.fm=function(){},it.em=function(){},it.qp=function(){};function Yu(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new Dn,a.Vf.add(y,b)),b.add(x)}}function Ju(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof Dn&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function jg(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof Dn?a:null)}it.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},xr.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):p0(this,a,!0),nn(a)&&ui(a),a};function p0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=p0(a,y[x],a.copiesArrayObjects);b.push(E)}return ui(b),b}if(x&&nn(y)){x=(x=y.constructor)?new x:{},E=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(b in y)if(b==="__gohashid")x.__gohashid=void 0;else if(b===E)x[E]=void 0;else{var te=fa(y,b),ne=Ig(a,te);ne==="GraphObject"||ne==="Diagram"||ne==="Layer"||ne==="RowColumnDefinition"||ne==="AnimationManager"||ne==="Tool"||ne==="CommandHandler"||ne==="Layout"||ne==="InputEvent"||ne==="DiagramEvent"||te instanceof xr||te instanceof Wo||te instanceof Ka||te instanceof _o||(te=p0(a,te,!1)),Ao(x,b,te)}return ui(x),x}return y instanceof Lt||y instanceof Xn||y instanceof Tn||y instanceof wr||y instanceof kr?y.copy():y}xr.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!TS&&a instanceof Yt&&(TS=!0,ar('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),ar(" Is that really your intent?"));var b=fa(a,y);b!==x&&(Ao(a,y,x),this.Fs(a,y,b,x))},it=xr.prototype,it.set=function(a,y,x){this.setDataProperty(a,y,x)},it.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])}},it.Ay=function(a,y){this.ts(a,-1,y)},it.ts=function(a,y,x){0>y&&(y=a.length),mn(a,y,x),ja(this,"",sa,"",a,null,x,null,y)},it.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Zt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Ln(a,y),ja(this,"",Ma,"",a,x,null,y,null)},it.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=fa(a,y),y===void 0))return"";if(typeof y=="string")return y;Zt("getCategoryForNodeData found a non-string category for "+a+": "+y)},it.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=fa(a,x);b===void 0&&(b=""),b!==y&&(Ao(a,x,y),ja(this,"nodeCategory",zo,x,a,b,y))}else Ao(a,x,y)}},it.lm=function(a,y){this.jm(y,this.Ro(a))},it.Tl=function(){return!1},it.Wj=function(){return!1},it.ri=function(){return!1},it.xs=function(){return!1},it.Xj=function(){return!1};function hy(){return new xr}function Ig(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 Ig(a,y.constructor);return typeof y}function dy(a){return Au[a]?Au[a]:Dt.go!==void 0&&Dt.go[a]?Dt.go[a]:null}function fa(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 Ao(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){}}jt.Object.defineProperties(xr.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===""&&Zt("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Zt("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=a,this.g("nodeKeyProperty",y,a))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(a){var y=this.bl;y!==a&&(this.bl=a,this.g("makeUniqueKeyFunction",y,a))}},nodeDataArray:{get:function(){return this.Tc},set:function(a){var y=this.Tc;if(y!==a){this.kb.clear(),this.Lv();for(var x=a.length,b=0;b<x;b++){var E=a[b];nn(E)||Zt("Model.nodeDataArray must only contain Objects, not: "+E),fo(E)}for(this.Tc=a,b=new An,E=0;E<x;E++){var te=a[E],ne=this.wa(te);ne===void 0||this.kb.I(ne)!==null?b.add(te):this.kb.add(ne,te)}for(b=b.iterator;b.next();)E=b.value,this.$u(E),te=this.wa(E),te!==void 0&&this.kb.add(te,E);for(ja(this,"nodeDataArray",zo,"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"}}}),xr.prototype.setCategoryForNodeData=xr.prototype.jm,xr.prototype.getCategoryForNodeData=xr.prototype.Ro,xr.prototype.removeArrayItem=xr.prototype.ov,xr.prototype.insertArrayItem=xr.prototype.ts,xr.prototype.addArrayItem=xr.prototype.Ay,xr.prototype.assignAllDataProperties=xr.prototype.Do,xr.prototype.set=xr.prototype.set,xr.prototype.clearUnresolvedReferences=xr.prototype.Qy,xr.prototype.mergeNodeDataArray=xr.prototype.$z,xr.prototype.removeNodeDataCollection=xr.prototype.nA,xr.prototype.removeNodeData=xr.prototype.cm,xr.prototype.addNodeDataCollection=xr.prototype.Fy,xr.prototype.addNodeData=xr.prototype.xf,xr.prototype.makeNodeDataKeyUnique=xr.prototype.$u,xr.prototype.findNodeDataForKey=xr.prototype.hc,xr.prototype.containsNodeData=xr.prototype.lb,xr.prototype.setKeyForNodeData=xr.prototype.km,xr.prototype.getKeyForNodeData=xr.prototype.wa,xr.prototype.updateTargetBindings=xr.prototype.La,xr.prototype.commit=xr.prototype.commit,xr.prototype.rollbackTransaction=xr.prototype.Kf,xr.prototype.commitTransaction=xr.prototype.eb,xr.prototype.startTransaction=xr.prototype.Ea,xr.prototype.raiseDataChanged=xr.prototype.Fs,xr.prototype.raiseChanged=xr.prototype.g,xr.prototype.raiseChangedEvent=xr.prototype.cb,xr.prototype.removeChangedListener=xr.prototype.ik,xr.prototype.addChangedListener=xr.prototype.Pe,xr.prototype.writeJsonValue=xr.prototype.sm,xr.prototype.replaceJsonObjects=xr.prototype.dm,xr.prototype.applyIncrementalJSON=xr.prototype.Ky,xr.prototype.applyIncrementalJson=xr.prototype.Zw,xr.prototype.toJSON=xr.prototype.toJSON,xr.prototype.toJson=xr.prototype.np,xr.prototype.toIncrementalJSON=xr.prototype.yA,xr.prototype.toIncrementalJson=xr.prototype.$x,xr.prototype.toIncrementalData=xr.prototype.xA,xr.prototype.clear=xr.prototype.clear;var TS=!1,Au={};xr.className="Model",xr.fromJSON=xr.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Dt.JSON.parse(a)}catch(te){}else typeof a=="object"?x=a:Zt("Unable to construct a Model from: "+a);if(y===null){a=null;var b=x.class;if(typeof b=="string")try{var E=null;b.indexOf("go.")===0?(b=b.substr(3),E=dy(b)):(E=dy(b),E===null&&(E=Dt[b])),typeof E=="function"&&(a=new E)}catch(te){}a===null||a instanceof xr?y=a:Zt("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=xr.constructGraphLinksModel()),y.gp(x),y.kv(x),y},xr.safePropertyValue=fa,xr.safePropertySet=Ao,Au.Brush=to,Au.ChangedEvent=_o,Au.Geometry=Yn,Au.Margin=kr,Au.Panel=Kn,Au.Point=Lt,Au.Rect=Tn,Au.Size=Xn,Au.Spot=wr,Au.Transaction=Ka,Au.UndoManager=Wo;function Sa(a,y,x,b){ui(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=LS,this.wk=null):(this.el=Dg,this.wk=b),this.st=new Dn}Sa.prototype.copy=function(){var a=new Sa;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},it=Sa.prototype,it.qb=function(a){a.classType===Sa&&(this.mode=a)},it.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},it.freeze=function(){return this._isFrozen=!0,this},it.ka=function(){return this._isFrozen=!1,this},it.Kx=function(a){return a===void 0&&(a=null),this.mode=Dg,this.backConverter=a,this},it.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},it.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function MS(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}it.Mv=function(a,y,x){var b=this.sl;if(x===void 0||b===""||b===x){x=this.xl;var E=this.Im;if(E===null&&x==="")ar("Binding error: target property is the empty string: "+this.toString());else{var te=y;if(b!==""&&(te=fa(y,b)),te!==void 0)if(E===null)x!==""&&Ao(a,x,te);else try{if(x!==""){var ne=E(te,a);Ao(a,x,ne)}else E(te,a)}catch(se){}}}},it.sp=function(a,y,x,b){if(this.el===Dg){var E=this.xl;if(x===void 0||E===x){x=this.sl;var te=this.wk,ne=a;if(E!==""&&(ne=fa(a,E)),ne!==void 0&&!this.st.contains(a))try{this.st.add(a);var se=b!==null?b.diagram:null,he=se!==null?se.model:null;if(te===null){if(x!=="")he!==null?he.setDataProperty(y,x,ne):Ao(y,x,ne);else if(he!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var ge=b.itemIndex,ye=b.panel.itemArray;he.ov(ye,ge),he.ts(ye,ge,ne)}}else try{if(x!==""){var De=te(ne,y,he);he!==null?he.setDataProperty(y,x,De):Ao(y,x,De)}else{var $e=te(ne,y,he);if($e!==void 0&&he!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Qe=b.itemIndex,rt=b.panel.itemArray;he.ov(rt,Qe),he.ts(rt,Qe,$e)}}}catch(ut){}}finally{this.st.remove(a)}}}},jt.Object.defineProperties(Sa.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&jn(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&jn(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&jn(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&jn(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&jn(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&jn(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&jn(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&jn(this),this.el=a}}}),Sa.prototype.updateSource=Sa.prototype.sp,Sa.prototype.updateTarget=Sa.prototype.Mv,Sa.prototype.ofModel=Sa.prototype.dA,Sa.prototype.ofObject=Sa.prototype.cp,Sa.prototype.makeTwoWay=Sa.prototype.Kx;var jx="Binding",LS=new en(Sa,"OneWay",1),Dg=new en(Sa,"TwoWay",2);Sa.className="Binding",Sa.parseEnum=function(a,y){return function(x){return x=ur(a,x),x===null?y:x}},Sa.toString=Nn,Sa.OneWay=LS,Sa.TwoWay=Dg;function Ii(a,y,x){xr.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new Dn,this.wb=new dr,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&&(On(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Jt(Ii,xr),Ii.constructGraphLinksModel=xr.constructGraphLinksModel,Ii.prototype.cloneProtected=function(a){xr.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},it=Ii.prototype,it.clear=function(){xr.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},it.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<a){y+=`
|
|
|
node data:`,a=this.nodeDataArray;var x=a.length,b;for(b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Nn(E)}for(y+=`
|
|
|
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+Jl(this,E,!0)+"-->"+Jl(this,E,!1)}return y},it.Qv=function(a,y){this.linkKeyProperty===""&&Zt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=xr.prototype.Qv.call(this,a,y),b=this,E=new Dn,te=new Dn,ne=new Dn,se=this.vh;a.changes.each(function(ye){ye.model===b&&(ye.modelChange==="linkDataArray"?ye.change===sa?E.add(ye.newValue):ye.change===Ma&&ne.add(ye.oldValue):b.Jc(ye.object)?te.add(ye.object):ye.object!==null&&(ye.object!==null&&se&&se.contains(ye.object)?se.get(ye.object).each(function(De){b.Jc(De)&&te.add(De)}):ye.object instanceof xr||b.lb(ye.object)||kS(b,ye.object).each(function(De){te.add(De)})))});var he=this.il;he.clear(),E.each(function(ye){he.add(b.Ac(ye)),y||te.add(ye)});var ge=this.kl;return ge.clear(),ne.each(function(ye){ge.add(b.Ac(ye)),y&&te.add(ye)}),a=b.cloneDeep(te.Fa()),0<he.count&&(x===null&&(x={}),y?x.removedLinkKeys=he.Fa():x.insertedLinkKeys=he.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<ge.count&&(x===null&&(x={}),y?x.insertedLinkKeys=ge.Fa():x.removedLinkKeys=ge.Fa()),ge.clear(),he.clear(),x},it.rm=function(){var a=xr.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},it.gp=function(a){xr.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)},it.Rv=function(){var a=xr.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+id(this,this.linkDataArray,!0);return a+y},it.kv=function(a){xr.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function kS(a,y){for(var x=new Dn,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];f0(a,y,E,E,x)}return x}it.Pv=function(a,y){this.linkKeyProperty===""&&Zt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=xr.prototype.Pv.call(this,a,y),b=this,E=new Dn,te=new Dn,ne=new Dn,se=this.vh;a.changes.each(function(ye){ye.model===b&&(ye.modelChange==="linkDataArray"?ye.change===sa?E.add(ye.newValue):ye.change===Ma&&ne.add(ye.oldValue):b.Jc(ye.object)?te.add(ye.object):ye.object!==null&&(ye.object!==null&&se&&se.contains(ye.object)?se.get(ye.object).each(function(De){b.Jc(De)&&te.add(De)}):ye.object instanceof xr||b.lb(ye.object)||kS(b,ye.object).each(function(De){te.add(De)})))});var he=this.il;he.clear(),E.each(function(ye){he.add(b.Ac(ye)),y||te.add(ye)});var ge=this.kl;return ge.clear(),ne.each(function(ye){ge.add(b.Ac(ye)),y&&te.add(ye)}),a=x,0<he.count&&(a+=(y?this.Xv:this.Vv)+id(this,he.Fa(),!0)),0<te.count&&(a+=this.iy+id(this,te.Fa(),!0)),0<ge.count&&(a+=(y?this.Vv:this.Xv)+id(this,ge.Fa(),!0)),ge.clear(),he.clear(),a},it.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)&&Zt("applyIncrementalJson cannot change Model properties"),xr.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,b=0;b<x;b++){var E=y[b],te=this.jh(E);te===null&&(te=this.Jo({}),this.Ks(te,E),this.fi(te))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,b=0;b<x;b++)if(E=y[b],te=this.Ac(E),te=this.jh(te),te!==null){for(var ne in E)ne!=="__gohashid"&&ne!==this.linkKeyProperty&&this.setDataProperty(te,ne,E[ne]);AS(this,E,te)}}if(a=a.removedLinkKeys,Array.isArray(a))for(ne=a.length,y=0;y<ne;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},Ii.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===zo){var x=a.object,b=a.propertyName;if(b===this.linkKeyProperty&&this.Jc(x)){var E=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),E!==void 0&&this.wb.add(E,x),Ao(x,b,E);return}}else if(a.change===sa){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,nn(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===Ma){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,nn(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}}xr.prototype.changeState.call(this,a,y)}},it=Ii.prototype,it.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),Ao(x,this.nodeKeyProperty,a),this.xf(x))}return a}},it.yx=function(a){return Jl(this,a,!0)},it.wv=function(a,y){Ep(this,a,y,!0)},it.Bx=function(a){return Jl(this,a,!1)},it.Bv=function(a,y){Ep(this,a,y,!1)};function Jl(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=fa(y,a),a!==void 0))){if(od(a))return a;Zt((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Ep(a,y,x,b){if(x===null&&(x=void 0),y!==null){var E=b?a.lf:a.mf;if(E!=="")if(x=a.Vl(x),a.Jc(y)){var te=fa(y,E);te!==x&&(Ju(a,te,y),Ao(y,E,x),a.hc(x)===null&&Yu(a,x,y),ja(a,b?"linkFromKey":"linkToKey",zo,E,y,te,x),typeof E=="string"&&a.La(y,E))}else Ao(y,E,x)}}it.zx=function(a){return g0(this,a,!0)},it.xv=function(a,y){Tp(this,a,y,!0)},it.Cx=function(a){return g0(this,a,!1)},it.Cv=function(a,y){Tp(this,a,y,!1)};function g0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=fa(y,a),y===void 0?"":y)}function Tp(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var te=fa(y,E);te===void 0&&(te=""),te!==x&&(Ao(y,E,x),ja(a,b?"linkFromPortId":"linkToPortId",zo,E,y,te,x),typeof E=="string"&&a.La(y,E))}else Ao(y,E,x)}}it.Ef=function(a){if(a===null)return m0;var y=this.je;return y===""?m0:(a=fa(a,y),a===void 0?m0:a)},it.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=fa(a,x);if(b===void 0&&(b=m0),b!==y){if(Array.isArray(b))for(var E=b.length,te=0;te<E;te++)Ju(this,b[te],a);for(Ao(a,x,y),E=y.length,te=0;te<E;te++){var ne=y[te];this.hc(ne)===null&&Yu(this,ne,a)}ja(this,"linkLabelKeys",zo,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else Ao(a,x,y)}},it.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=fa(a,x);if(b===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(b)){var E=b.indexOf(y);0<=E||(E=b.length,b.push(y),this.Jc(a)&&(this.hc(y)===null&&Yu(this,y,a),ja(this,"linkLabelKeys",sa,x,a,null,y,null,E)))}else Zt(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},it.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=fa(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(Ju(this,y,a),ja(this,"linkLabelKeys",Ma,x,a,y,null,E,null)))}else b!==void 0&&Zt(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},it.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=fa(a,y),y!==void 0)){if(od(y))return y;Zt("Key value for link data "+a+" is not a number or a string: "+y)}}},it.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=fa(a,x);b!==y&&this.jh(y)===null&&(Ao(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),ja(this,"linkKey",zo,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ao(a,x,y)}},it.jh=function(a){return a===null&&Zt("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&od(a)?this.wb.I(a):null},it.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))){Ao(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Ao(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Ao(a,y,x)}}}}},it.Jc=function(a){return a===null?!1:this.$f.contains(a)},it.fi=function(a){a!==null&&(fo(a),this.Jc(a)||NS(this,a,!0))};function NS(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&&Zt("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)),ja(a,"linkDataArray",sa,"linkDataArray",a,null,y,null,b),fy(a,y)}it.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)},it.bm=function(a){a!==null&&OS(this,a,!0)};function OS(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(ja(a,"linkDataArray",Ma,"linkDataArray",a,y,null,b,null),x=Jl(a,y,!0),Ju(a,x,y),x=Jl(a,y,!1),Ju(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,te=0;te<E;te++)x=b[te],Ju(a,x,y)}it.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)},it.Zz=function(a){if(this.linkKeyProperty===""&&Zt("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&On(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var te=a[E],ne=this.Ac(te);if(ne!==void 0){x.add(ne);var se=this.jh(ne);se!==te&&(se!==null?(this.Do(se,te),AS(this,te,se)):(te=this.cloneDeep(te),this.Ks(te,ne),this.fi(te)))}else ne=this.cloneDeep(te),this.fi(ne),x.add(this.Ac(ne))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),x.clear()}};function fy(a,y){var x=Jl(a,y,!0);x=a.Vl(x),a.hc(x)===null&&Yu(a,x,y),x=Jl(a,y,!1),x=a.Vl(x),a.hc(x)===null&&Yu(a,x,y);var b=a.Ef(y);if(Array.isArray(b))for(var E=b.length,te=0;te<E;te++)x=b[te],a.hc(x)===null&&Yu(a,x,y)}it.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):p0(this,a,!0),nn(a)&&(ui(a),this.lf!==""&&Ao(a,this.lf,void 0),this.mf!==""&&Ao(a,this.mf,void 0),this.je!==""&&Ao(a,this.je,[])),a},it.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!fa(a,y)},it.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=fa(a,y),y!==void 0)){if(od(y))return y;Zt("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},it.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=fa(a,x);b!==y&&(Ju(this,b,a),Ao(a,x,y),this.hc(y)===null&&Yu(this,y,a),ja(this,"nodeGroupKey",zo,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ao(a,x,y)}},Ii.prototype.copyNodeData=function(a){return a===null?null:(a=xr.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||fa(a,this.Je)===void 0||Ao(a,this.Je,void 0),a)},Ii.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){Ep(this,a,x,!0);return}if(y===this.linkToKeyProperty){Ep(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Tp(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Tp(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=fa(a,y);b!==x&&(Ao(a,y,x),this.Fs(a,y,b,x))},it=Ii.prototype,it.Do=function(a,y){if(y){var x=this.lb(a),b=this.Jc(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||x&&E===this.nodeIsGroupProperty&&fa(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},it.jp=function(a,y){xr.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y);for(x=this.$f.iterator;x.next();){var b=x.value,E=a,te=y;if(Jl(this,b,!0)===E){var ne=this.lf;Ao(b,ne,te),ja(this,"linkFromKey",zo,ne,b,E,te),typeof ne=="string"&&this.La(b,ne)}if(Jl(this,b,!1)===E&&(ne=this.mf,Ao(b,ne,te),ja(this,"linkToKey",zo,ne,b,E,te),typeof ne=="string"&&this.La(b,ne)),ne=this.Ef(b),Array.isArray(ne))for(var se=ne.length,he=this.je,ge=0;ge<se;ge++)ne[ge]===E&&(ne[ge]=te,ja(this,"linkLabelKeys",sa,he,b,E,te,ge,ge))}},it.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;Ao(a,b,x),ja(this,"nodeGroupKey",zo,b,a,y,x),typeof b=="string"&&this.La(a,b)}},it.Lv=function(){xr.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)fy(this,a[x])},it.fm=function(a){xr.prototype.fm.call(this,a),a=this.wa(a);var y=jg(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 E=this.Je;ja(this,"nodeGroupKey",zo,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(Jl(this,b,!0)===a&&(E=this.lf,ja(this,"linkFromKey",zo,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),Jl(this,b,!1)===a&&(E=this.mf,ja(this,"linkToKey",zo,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),E=this.Ef(b),Array.isArray(E))for(var te=E.length,ne=this.je,se=0;se<te;se++)E[se]===a&&(ja(this,"linkLabelKeys",sa,ne,b,a,a,se,se),x.push(b))}for(y=0;y<x.length;y++)Ju(this,a,x[y]);In(x)}},it.em=function(a){xr.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&Yu(this,y,a)},it.qp=function(a){xr.prototype.qp.call(this,a);var y=this.lh(a);Ju(this,y,a)},it.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=fa(a,y),y===void 0))return"";if(typeof y=="string")return y;Zt("getCategoryForLinkData found a non-string category for "+a+": "+y)},Ii.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Ii.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=fa(a,x);b===void 0&&(b=""),b!==y&&(Ao(a,x,y),ja(this,"linkCategory",zo,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ao(a,x,y)}},Ii.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},it=Ii.prototype,it.lm=function(a,y){xr.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function AS(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))}it.Wj=function(){return!0},it.ri=function(){return!0},it.xs=function(){return!0},it.Xj=function(){return!0},jt.Object.defineProperties(Ii.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var x=a.length,b=0;b<x;b++){var E=a[b];nn(E)||Zt("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),fo(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new An,E=0;E<x;E++){var te=a[E],ne=this.Ac(te);ne===void 0||this.wb.I(ne)!==null?b.add(te):this.wb.add(ne,te)}for(b=b.iterator;b.next();)E=b.value,this.Bs(E),te=this.Ac(E),te!==void 0&&this.wb.add(te,E)}for(b=new Dn,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,ja(this,"linkDataArray",zo,"linkDataArray",this,y,a),y=0;y<x;y++)fy(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var x=this.linkDataArray.length,b=0;b<x;b++){var E=this.linkDataArray[b],te=this.Ac(E);te===void 0&&(this.Bs(E),te=this.Ac(E)),te!==void 0&&this.wb.add(te,E)}this.g("linkKeyProperty",y,a)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(a){var y=this.cl;y!==a&&(this.cl=a,this.g("makeUniqueLinkKeyFunction",y,a))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(a){var y=this.Ak;y!==a&&(this.Ak=a,this.g("copyLinkDataFunction",y,a))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(a){var y=this.jl;y!==a&&(this.jl=a,this.g("nodeIsGroupProperty",y,a))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(a){var y=this.Je;y!==a&&(this.Je=a,this.g("nodeGroupKeyProperty",y,a))}},Ij:{get:function(){return this.Lm},set:function(a){this.Lm!==a&&(this.Lm=a)}},linkCategoryProperty:{get:function(){return this.dj},set:function(a){var y=this.dj;y!==a&&(this.dj=a,this.g("linkCategoryProperty",y,a))}},type:{get:function(){return"GraphLinksModel"}}}),Ii.prototype.setCategoryForLinkData=Ii.prototype.lp,Ii.prototype.getCategoryForLinkData=Ii.prototype.ps,Ii.prototype.assignAllDataProperties=Ii.prototype.Do,Ii.prototype.setGroupKeyForNodeData=Ii.prototype.mp,Ii.prototype.getGroupKeyForNodeData=Ii.prototype.lh,Ii.prototype.isGroupForNodeData=Ii.prototype.Yu,Ii.prototype.copyLinkData=Ii.prototype.Jo,Ii.prototype.mergeLinkDataArray=Ii.prototype.Zz,Ii.prototype.removeLinkDataCollection=Ii.prototype.lA,Ii.prototype.removeLinkData=Ii.prototype.bm,Ii.prototype.addLinkDataCollection=Ii.prototype.Ey,Ii.prototype.addLinkData=Ii.prototype.fi,Ii.prototype.containsLinkData=Ii.prototype.Jc,Ii.prototype.makeLinkDataKeyUnique=Ii.prototype.Bs,Ii.prototype.findLinkDataForKey=Ii.prototype.jh,Ii.prototype.setKeyForLinkData=Ii.prototype.Ks,Ii.prototype.getKeyForLinkData=Ii.prototype.Ac,Ii.prototype.removeLabelKeyForLinkData=Ii.prototype.Qx,Ii.prototype.addLabelKeyForLinkData=Ii.prototype.Bu,Ii.prototype.setLabelKeysForLinkData=Ii.prototype.Ls,Ii.prototype.getLabelKeysForLinkData=Ii.prototype.Ef,Ii.prototype.setToPortIdForLinkData=Ii.prototype.Cv,Ii.prototype.getToPortIdForLinkData=Ii.prototype.Cx,Ii.prototype.setFromPortIdForLinkData=Ii.prototype.xv,Ii.prototype.getFromPortIdForLinkData=Ii.prototype.zx,Ii.prototype.setToKeyForLinkData=Ii.prototype.Bv,Ii.prototype.getToKeyForLinkData=Ii.prototype.Bx,Ii.prototype.setFromKeyForLinkData=Ii.prototype.wv,Ii.prototype.getFromKeyForLinkData=Ii.prototype.yx,Ii.prototype.clear=Ii.prototype.clear;var m0=Object.freeze([]);Ii.className="GraphLinksModel",Au.GraphLinksModel=Ii,xr.constructGraphLinksModel=xr.constructGraphLinksModel=function(){return new Ii},xr.initDiagramModel=hy=function(){return new Ii};function Xs(a,y){xr.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(On(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Jt(Xs,xr),Xs.constructGraphLinksModel=xr.constructGraphLinksModel,Xs.prototype.cloneProtected=function(a){xr.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},it=Xs.prototype,it.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" TreeModel";if(0<a){y+=`
|
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Nn(E)}}return y},it.rm=function(){var a=xr.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},it.gp=function(a){xr.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},it.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Zt("applyIncrementalJson cannot change Model properties"),xr.prototype.fp.call(this,a)},it.Vl=function(a){return a},it.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=fa(a,y),y!==void 0)){if(od(y))return y;Zt("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},it.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=fa(a,x);b!==y&&(Ju(this,b,a),Ao(a,x,y),this.hc(y)===null&&Yu(this,y,a),ja(this,"nodeParentKey",zo,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ao(a,x,y)}},it.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=fa(a,y),y===void 0)?"":typeof y=="string"?y:(Zt("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Xs.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Xs.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=fa(a,x);b===void 0&&(b=""),b!==y&&(Ao(a,x,y),ja(this,"parentLinkCategory",zo,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ao(a,x,y)}},Xs.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Xs.prototype.copyNodeData=function(a){return a===null?null:(a=xr.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||fa(a,this.Ke)===void 0||Ao(a,this.Ke,void 0),a)},Xs.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=fa(a,y);b!==x&&(Ao(a,y,x),this.Fs(a,y,b,x))},it=Xs.prototype,it.jp=function(a,y){xr.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},it.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;Ao(a,b,x),ja(this,"nodeParentKey",zo,b,a,y,x),typeof b=="string"&&this.La(a,b)}},it.fm=function(a){xr.prototype.fm.call(this,a),a=this.wa(a);var y=jg(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 E=this.Ke;ja(this,"nodeParentKey",zo,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)Ju(this,a,x[y]);In(x)}},it.em=function(a){xr.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&Yu(this,y,a)},it.qp=function(a){xr.prototype.qp.call(this,a);var y=this.mh(a);Ju(this,y,a)},it.lm=function(a,y){xr.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},it.Tl=function(){return!0},it.xs=function(){return!0},jt.Object.defineProperties(Xs.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"}}}),Xs.prototype.setParentLinkCategoryForNodeData=Xs.prototype.Ms,Xs.prototype.getParentLinkCategoryForNodeData=Xs.prototype.ss,Xs.prototype.setParentKeyForNodeData=Xs.prototype.qe,Xs.prototype.getParentKeyForNodeData=Xs.prototype.mh,Xs.className="TreeModel",Au.TreeModel=Xs;function Xo(a){Ro.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=ju,this.Ti=0,this.Zv=new Lt,this.Jp=this.me=0,this.Xr=new _g,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=ju,this.K=Ys,this.nd=Lp,this.hd=oy,this.tf=6,this.Nn=P0,a&&Object.assign(this,a)}Jt(Xo,Ro),Xo.prototype.cloneProtected=function(a){Ro.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},Xo.prototype.qb=function(a){a.classType===Xo?a===w0||a===b0||a===S0||a===x0||a===Lp?this.sorting=a:a===Yd||a===Mp||a===Ys||a===sd?this.direction=a:a===Oh||a===ad||a===ju||a===Iu?this.arrangement=a:(a===kf||a===P0)&&(this.nodeDiameterFormula=a):Ro.prototype.qb.call(this,a)},Xo.prototype.createNetwork=function(){return new kp(this)},Xo.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 An;y.addAll(a.iterator),a=new An;var x=new An,b=this.sort(y),E,te,ne=this.Jp,se=this.arrangement,he=this.nodeDiameterFormula,ge=this.radius;(!isFinite(ge)||0>=ge)&&(ge=NaN);var ye=this.aspectRatio;(!isFinite(ye)||0>=ye)&&(ye=1);var De=this.startAngle;isFinite(De)||(De=0);var $e=this.sweepAngle;if((!isFinite($e)||360<$e||1>$e)&&($e=360),y=this.spacing,isFinite(y)||(y=NaN),se===Iu&&he===kf?se=ju:se===Iu&&he!==kf&&(se=this.arrangement),(this.direction===Yd||this.direction===Mp)&&this.sorting!==Lp){for(he=0;!(he>=b.length)&&(a.add(b.M(he)),!(he+1>=b.length));he+=2)x.add(b.M(he+1));this.direction===Yd?(this.arrangement===Iu&&a.reverse(),b=new An,b.addAll(a),b.addAll(x)):(this.arrangement===Iu&&x.reverse(),b=new An,b.addAll(x),b.addAll(a))}he=b.length;for(var Qe=te=E=0;Qe<b.length;Qe++){var rt=De+$e*te*(this.direction===Ys?1:-1)/he,ut=b.M(Qe).diameter;isNaN(ut)&&(ut=ld(b.M(Qe),rt)),360>$e&&(Qe===0||Qe===b.length-1)&&(ut/=2),E+=ut,te++}if(isNaN(ge)||se===Iu){if(isNaN(y)&&(y=6),se!==ju&&se!==Iu){for(te=-1/0,ne=0;ne<he;ne++)Qe=b.M(ne),E=b.M(ne===he-1?0:ne+1),isNaN(Qe.diameter)&&ld(Qe,0),isNaN(E.diameter)&&ld(E,0),te=Math.max(te,(Qe.diameter+E.diameter)/2);ne=te+y,se===Oh?ge=(te+y)/(2*Math.PI/he):ge=v0(this,ne*(360<=$e?he:he-1),ye,De*Math.PI/180,$e*Math.PI/180)}else ge=v0(this,E+(360<=$e?he:he-1)*(se!==Iu?y:1.6*y),ye,De*Math.PI/180,$e*Math.PI/180);te=ge*ye}else if(te=ge*ye,Qe=py(this,ge,te,De*Math.PI/180,$e*Math.PI/180),isNaN(y))(se===ju||se===Iu)&&(y=(Qe-E)/(360<=$e?he:he-1));else if(se===ju||se===Iu)Qe=(Qe-E)/(360<=$e?he:he-1),Qe<y?(ge=v0(this,E+y*(360<=$e?he:he-1),ye,De*Math.PI/180,$e*Math.PI/180),te=ge*ye):y=Qe;else{for(ne=-1/0,E=0;E<he;E++)rt=b.M(E),ut=b.M(E===he-1?0:E+1),isNaN(rt.diameter)&&ld(rt,0),isNaN(ut.diameter)&&ld(ut,0),ne=Math.max(ne,(rt.diameter+ut.diameter)/2);ne+=y,E=v0(this,ne*(360<=$e?he:he-1),ye,De*Math.PI/180,$e*Math.PI/180),E>ge?(ge=E,te=ge*ye):ne=Qe/(360<=$e?he:he-1)}if(this.kw=se,this.lc=ge,this.Zm=ye,this.lw=De,this.Wp=$e,this.Ti=y,this.me=te,this.Jp=ne,y=b,b=this.kw,se=this.lc,ge=this.lw,ye=this.Wp,De=this.Ti,$e=this.me,he=this.Jp,this.direction!==Yd&&this.direction!==Mp||b!==Iu)if(this.direction===Yd||this.direction===Mp){switch(ne=0,b){case ad:ne=180*y0(this,se,$e,ge,he)/Math.PI;break;case ju:he=y=0,ne=a.first(),ne!==null&&(y=ld(ne,Math.PI/2)),ne=x.first(),ne!==null&&(he=ld(ne,Math.PI/2)),ne=180*y0(this,se,$e,ge,De+(y+he)/2)/Math.PI;break;case Oh:ne=ye/y.length}if(this.direction===Yd){switch(b){case ad:Rg(this,a,ge,sd);break;case ju:Bg(this,a,ge,sd);break;case Oh:Fg(this,a,ye/2,ge,sd)}switch(b){case ad:Rg(this,x,ge+ne,Ys);break;case ju:Bg(this,x,ge+ne,Ys);break;case Oh:Fg(this,x,ye/2,ge+ne,Ys)}}else{switch(b){case ad:Rg(this,x,ge,sd);break;case ju:Bg(this,x,ge,sd);break;case Oh:Fg(this,x,ye/2,ge,sd)}switch(b){case ad:Rg(this,a,ge+ne,Ys);break;case ju:Bg(this,a,ge+ne,Ys);break;case Oh:Fg(this,a,ye/2,ge+ne,Ys)}}}else switch(b){case ad:Rg(this,y,ge,this.direction);break;case ju:Bg(this,y,ge,this.direction);break;case Oh:Fg(this,y,ye,ge,this.direction);break;case Iu:jS(this,y,ye,ge,this.direction)}else jS(this,y,ye,ge-ye/2,Ys)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Fg(a,y,x,b,E){var te=a.Wp,ne=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var se=y.length,he=0;he<se;he++){var ge=b+(E===Ys?he*x/(360<=te?se:se-1):-(he*x)/se),ye=y.M(he),De=ne*Math.tan(ge)/a;De=Math.sqrt((ne*ne+a*a*De*De)/(1+De*De)),ye.centerX=De*Math.cos(ge),ye.centerY=De*Math.sin(ge),ye.actualAngle=180*ge/Math.PI}}function Bg(a,y,x,b){var E=a.lc,te=a.me,ne=a.Ti;x=x*Math.PI/180;for(var se=y.length,he=0;he<se;he++){var ge=y.M(he),ye=y.M(he===se-1?0:he+1),De=te*Math.sin(x);ge.centerX=E*Math.cos(x),ge.centerY=De,ge.actualAngle=180*x/Math.PI,isNaN(ge.diameter)&&ld(ge,0),isNaN(ye.diameter)&&ld(ye,0),ge=y0(a,E,te,b===Ys?x:-x,(ge.diameter+ye.diameter)/2+ne),x+=b===Ys?ge:-ge}}function Rg(a,y,x,b){var E=a.lc,te=a.me,ne=a.Jp;x=x*Math.PI/180;for(var se=y.length,he=0;he<se;he++){var ge=y.M(he);ge.centerX=E*Math.cos(x),ge.centerY=te*Math.sin(x),ge.actualAngle=180*x/Math.PI,ge=y0(a,E,te,b===Ys?x:-x,ne),x+=b===Ys?ge:-ge}}function jS(a,y,x,b,E){var te=a.Wp;if(a.mj=0,a.Xr=new _g,360>x){for(te=b+(E===Ys?te:-te);0>te;)te+=360;te%=360,180<te&&(te-=360),te*=Math.PI/180,a.gt=te,DS(a,y,x,b,E)}else IS(a,y,x,b,E);a.Xr.commit(y)}function IS(a,y,x,b,E){var te=a.lc,ne=a.Ti,se=a.Zm,he=te*Math.cos(b*Math.PI/180),ge=a.me*Math.sin(b*Math.PI/180),ye=y.Fa();if(ye.length===3)ye[0].centerX=te,ye[0].centerY=0,ye[1].centerX=ye[0].centerX-ye[0].width/2-ye[1].width/2-ne,ye[1].y=ye[0].y,ye[2].centerX=(ye[0].centerX+ye[1].centerX)/2,ye[2].y=ye[0].y-ye[2].height-ne;else if(ye.length===4)ye[0].centerX=te,ye[0].centerY=0,ye[2].centerX=-ye[0].centerX,ye[2].centerY=ye[0].centerY,ye[1].centerX=0,ye[1].y=Math.min(ye[0].y,ye[2].y)-ye[1].height-ne,ye[3].centerX=0,ye[3].y=Math.max(ye[0].y+ye[0].height+ne,ye[2].y+ye[2].height+ne);else{te=Lt.alloc();for(var De=0;De<ye.length&&(ye[De].centerX=he,ye[De].centerY=ge,!(De>=ye.length-1));De++)FS(a,he,ge,ye,De,E,te)||BS(a,he,ge,ye,De,E,te),he=te.x,ge=te.y;if(Lt.free(te),a.mj++,!(23<a.mj)){he=ye[0].centerX,ge=ye[0].centerY,te=ye[ye.length-1].centerX,De=ye[ye.length-1].centerY;var $e=Math.abs(he-te)-((ye[0].width+ye[ye.length-1].width)/2+ne),Qe=Math.abs(ge-De)-((ye[0].height+ye[ye.length-1].height)/2+ne);ne=0,1>Math.abs(Qe)?Math.abs(he-te)<(ye[0].width+ye[ye.length-1].width)/2&&(ne=0):ne=0<Qe?Qe:1>Math.abs($e)?0:$e,he=Math.abs(te)>Math.abs(De)?0<te!=ge>De:0<De!=he<te,(he=E===Ys?he:!he)&&(ne=-Math.abs(ne),ne=Math.min(ne,-ye[ye.length-1].width),ne=Math.min(ne,-ye[ye.length-1].height)),a.Xr.compare(ne,ye),1<Math.abs(ne)&&(a.lc=8>a.mj?a.lc-ne/(2*Math.PI):5>ye.length&&10<ne?a.lc/2:a.lc-(0<ne?1.7:-2.3),a.me=a.lc*se,IS(a,y,x,b,E))}}}function DS(a,y,x,b,E){for(var te=a.lc,ne=a.me,se=a.Zm,he=te*Math.cos(b*Math.PI/180),ge=ne*Math.sin(b*Math.PI/180),ye=Lt.alloc(),De=y.Fa(),$e=0;$e<De.length&&(De[$e].centerX=he,De[$e].centerY=ge,!($e>=De.length-1));$e++)FS(a,he,ge,De,$e,E,ye)||BS(a,he,ge,De,$e,E,ye),he=ye.x,ge=ye.y;if(Lt.free(ye),a.mj++,!(23<a.mj)){if(he=Math.atan2(ge,he),he=E===Ys?a.gt-he:he-a.gt,he=Math.abs(he)<Math.abs(he-2*Math.PI)?he:he-2*Math.PI,te=he*(te+ne)/2,ne=a.Xr,Math.abs(te)<Math.abs(ne.Pl))for(ne.Pl=te,ne.mk=[],ne.tm=[],he=0;he<De.length;he++)ne.mk[he]=De[he].bounds.x,ne.tm[he]=De[he].bounds.y;1<Math.abs(te)&&(a.lc=8>a.mj?a.lc-te/(2*Math.PI):a.lc-(0<te?1.7:-2.3),a.me=a.lc*se,DS(a,y,x,b,E))}}function FS(a,y,x,b,E,te,ne){var se=a.lc,he=a.me,ge=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var ye=!1;if(0<=x!=(te===Ys)){if(te=y+a,te>se){if(te=y-a,te<-se)return ne.x=te,ne.y=ge,!1;ye=!0}}else if(te=y-a,te<-se){if(te=y+a,te>se)return ne.x=te,ne.y=ge,!1;ye=!0}return ge=Math.sqrt(1-Math.min(1,te*te/(se*se)))*he,0>x!==ye&&(ge=-ge),Math.abs(x-ge)>(b[E].height+b[E+1].height)/2?(ne.x=te,ne.y=ge,!1):(ne.x=te,ne.y=ge,!0)}function BS(a,y,x,b,E,te,ne){var se=a.lc,he=a.me,ge=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(te===Ys)){if(te=x-a,te<-he){if(te=x+a,te>he){ne.x=ge,ne.y=te;return}b=!0}}else if(te=x+a,te>he){if(te=x-a,te<-he){ne.x=ge,ne.y=te;return}b=!0}ge=Math.sqrt(1-Math.min(1,te*te/(he*he)))*se,0>y!==b&&(ge=-ge),ne.x=ge,ne.y=te}Xo.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Xo.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 Lt(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;E.x+=x.x,E.y+=x.y,E.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},Xo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function py(a,y,x,b,E){var te=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&E!==void 0?E*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var ne=0,se=b!==void 0&&E!==void 0?E/(te+1):Math.PI/(2*(te+1)),he=0,ge=0;ge<=te;ge++){b!==void 0&&E!==void 0?he=b+ge*E/te:he=ge*Math.PI/(2*te);var ye=Math.sin(he);ne+=Math.sqrt(1-a*a*ye*ye)*se}return b!==void 0&&E!==void 0?(y>x?y:x)*ne:4*(y>x?y:x)*ne}function v0(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?py(a,1,x,b,E):py(a,1,x))}function y0(a,y,x,b,E){if(.001>Math.abs(a.Zm-1))return E/y;var te=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,ne=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var se=0;;se++){var he=Math.sin(b+se*a);if(ne+=(y>x?y:x)*Math.sqrt(1-te*te*he*he)*a,ne>=E)return se*a}}Xo.prototype.sort=function(a){switch(this.sorting){case S0:break;case x0:a.reverse();break;case w0:a.sort(this.comparer);break;case b0:a.sort(this.comparer),a.reverse();break;case Lp:return this.ak(Ix(a));default:Zt("Invalid sorting type.")}return a};function Ix(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new An;for(var b=0;b<a.length;b++){var E=-1,te=-1;if(b===0)for(var ne=0;ne<a.length;ne++){var se=a.M(ne).edgesCount;se>E&&(E=se,te=ne)}else for(ne=0;ne<a.length;ne++)se=y[ne],se>E&&(E=se,te=ne);for(x.add(a.M(te)),y[te]=-1,te=a.M(te),ne=te.sourceEdges;ne.next();)E=a.indexOf(ne.value.fromVertex),0>E||0<=y[E]&&y[E]++;for(te=te.destinationEdges;te.next();)E=a.indexOf(te.value.toVertex),0>E||0<=y[E]&&y[E]++}return x}Xo.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var b=a.M(x);y[x]=[];for(var E,te=b.destinationEdges;te.next();)E=a.indexOf(te.value.toVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E);for(b=b.sourceEdges;b.next();)E=a.indexOf(b.value.fromVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E)}for(te=[],x=0;x<y.length;x++)te[x]=0;x=[];var ne=[],se=[];b=[],E=new An;for(var he=0,ge=0;ge<y.length;ge++){var ye=y[ge].length;if(ye===1)b.push(ge);else if(ye===0)E.add(a.M(ge));else{if(he===0)x.push(ge);else{for(var De=ye=1/0,$e=-1,Qe=[],rt=0;rt<x.length;rt++)0>y[x[rt]].indexOf(x[rt===x.length-1?0:rt+1])&&Qe.push(rt===x.length-1?0:rt+1);if(Qe.length===0)for(rt=0;rt<x.length;rt++)Qe.push(rt);for(rt=0;rt<Qe.length;rt++){for(var ut=Qe[rt],Ot=y[ge],Tt=0,Bt=0;Bt<ne.length;Bt++){var _t=te[ne[Bt]],Ht=te[se[Bt]];if(_t<Ht){var Vt=_t;_t=Ht}else Vt=Ht;if(Vt<ut&&ut<=_t)for(Ht=0;Ht<Ot.length;Ht++){var hn=Ot[Ht];0>x.indexOf(hn)||Vt<te[hn]&&te[hn]<_t||Vt===te[hn]||_t===te[hn]||Tt++}else for(Ht=0;Ht<Ot.length;Ht++)hn=Ot[Ht],0>x.indexOf(hn)||Vt<te[hn]&&te[hn]<_t&&Vt!==te[hn]&&_t!==te[hn]&&Tt++}for(Ot=Tt,Bt=Tt=0;Bt<y[ge].length;Bt++)Vt=x.indexOf(y[ge][Bt]),0<=Vt&&(Vt=Math.abs(ut-(Vt>=ut?Vt+1:Vt)),Tt+=Vt<x.length+1-Vt?Vt:x.length+1-Vt);for(Bt=0;Bt<ne.length;Bt++)Vt=te[ne[Bt]],_t=te[se[Bt]],Vt>=ut&&Vt++,_t>=ut&&_t++,Vt>_t&&(Ht=_t,_t=Vt,Vt=Ht),_t-Vt<(x.length+2)/2==(Vt<ut&&ut<=_t)&&Tt++;(Ot<ye||Ot===ye&&Tt<De)&&(ye=Ot,De=Tt,$e=ut)}for(x.splice($e,0,ge),ye=0;ye<x.length;ye++)te[x[ye]]=ye;for(ye=0;ye<y[ge].length;ye++)De=y[ge][ye],0<=x.indexOf(De)&&(ne.push(ge),se.push(De))}he++}}for(ne=x.length;;){for(te=!0,se=0;se<b.length;se++)if(he=b[se],ge=y[he][0],ye=x.indexOf(ge),0<=ye){for($e=De=0;$e<y[ge].length;$e++)Qe=x.indexOf(y[ge][$e]),0>Qe||Qe===ye||(rt=Qe>ye?Qe-ye:ye-Qe,De+=Qe<ye!=rt>ne-rt?1:-1);x.splice(0>De?ye:ye+1,0,he),b.splice(se,1),se--}else te=!1;if(te)break;x.push(b[0]),b.splice(0,1)}for(y=0;y<x.length;y++)E.add(a.M(x[y]));return E},jt.Object.defineProperties(Xo.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!==Iu&&a!==ju&&a!==ad&&a!==Oh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Ys&&a!==sd&&a!==Yd&&a!==Mp||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==S0&&a!==x0&&a!==w0&&!b0&&a!==Lp||(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!==P0&&a!==kf||(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 ju=new en(Xo,"ConstantSpacing",0),ad=new en(Xo,"ConstantDistance",1),Oh=new en(Xo,"ConstantAngle",2),Iu=new en(Xo,"Packed",3),Ys=new en(Xo,"Clockwise",4),sd=new en(Xo,"Counterclockwise",5),Yd=new en(Xo,"BidirectionalLeft",6),Mp=new en(Xo,"BidirectionalRight",7),S0=new en(Xo,"Forwards",8),x0=new en(Xo,"Reverse",9),w0=new en(Xo,"Ascending",10),b0=new en(Xo,"Descending",11),Lp=new en(Xo,"Optimized",12),P0=new en(Xo,"Pythagorean",13),kf=new en(Xo,"Circular",14);Xo.className="CircularLayout",Xo.ConstantSpacing=ju,Xo.ConstantDistance=ad,Xo.ConstantAngle=Oh,Xo.Packed=Iu,Xo.Clockwise=Ys,Xo.Counterclockwise=sd,Xo.BidirectionalLeft=Yd,Xo.BidirectionalRight=Mp,Xo.Forwards=S0,Xo.Reverse=x0,Xo.Ascending=w0,Xo.Descending=b0,Xo.Optimized=Lp,Xo.Pythagorean=P0,Xo.Circular=kf;function _g(){this.Pl=-1/0,this.tm=this.mk=null}_g.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},_g.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]}},_g.className="VertexArrangement";function kp(a){xo.call(this,a)}Jt(kp,xo),kp.prototype.createVertex=function(){return new zg(this)},kp.prototype.createEdge=function(){return new C0(this)},kp.className="CircularNetwork";function zg(a){Ga.call(this,a),this.u=this.Si=NaN}Jt(zg,Ga);function ld(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===Iu)if(x.nodeDiameterFormula===kf)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===kf?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}jt.Object.defineProperties(zg.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)}}}),zg.className="CircularVertex";function C0(a){Ll.call(this,a)}Jt(C0,Ll),C0.className="CircularEdge";function Ss(a){Ro.call(this),this.ah=null,this.An=0,this.$d=new Xn(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)}Jt(Ss,Ro),Ss.prototype.cloneProtected=function(a){Ro.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},Ss.prototype.createNetwork=function(){return new Nf(this)},Ss.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;x.charge=this.electricalCharge(x),x.mass=this.gravitationalMass(x)}for(y=this.network.edges.iterator;y.next();)x=y.value,x.stiffness=this.springStiffness(x),x.length=this.springLength(x);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,x=y.Zx();for(var b=x.iterator;b.next();){this.network=b.value;for(var E=this.network.vertexes.iterator;E.next();){var te=E.value;te.Vd=te.vertexes.count,te.sh=1,te.Hj=null,te.We=null}RS(this,0,a)}this.network=y;var ne=b=x.iterator;b=this.arrangementSpacing;var se=ne.count,he=!0;te=E=0;for(var ge=xn(),ye=0;ye<se+y.vertexes.count+2;ye++)ge[ye]=null;se=0,ne.reset();for(var De=Tn.alloc();ne.next();)if(ye=ne.value,this.computeBounds(ye,De),he)he=!1,E=De.x+De.width/2,te=De.y+De.height/2,ge[0]=new Lt(De.x+De.width+b.width,De.y),ge[1]=new Lt(De.x,De.y+De.height+b.height),se=2;else{var $e=_S(ge,se,E,te,De.width,De.height,b),Qe=ge[$e],rt=new Lt(Qe.x+De.width+b.width,Qe.y),ut=new Lt(Qe.x,Qe.y+De.height+b.height);for($e+1<se&&ge.splice($e+1,0,null),ge[$e]=rt,ge[$e+1]=ut,se++,$e=Qe.x-De.x,Qe=Qe.y-De.y,ye=ye.vertexes.iterator;ye.next();)rt=ye.value,rt.centerX+=$e,rt.centerY+=Qe}for(Tn.free(De),ye=y.vertexes.iterator;ye.next();)ne=ye.value,$e=ne.bounds,2>se?(E=$e.x+$e.width/2,te=$e.y+$e.height/2,ge[0]=new Lt($e.x+$e.width+b.width,$e.y),ge[1]=new Lt($e.x,$e.y+$e.height+b.height),se=2):(he=_S(ge,se,E,te,$e.width,$e.height,b),De=ge[he],Qe=new Lt(De.x+$e.width+b.width,De.y),$e=new Lt(De.x,De.y+$e.height+b.height),he+1<se&&ge.splice(he+1,0,null),ge[he]=Qe,ge[he+1]=$e,se++,ne.centerX=De.x+ne.width/2,ne.centerY=De.y+ne.height/2);for(In(ge),b=x.iterator;b.next();){for(x=b.value,E=x.vertexes.iterator;E.next();)y.dh(E.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}HS(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},Ss.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},Ss.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 RS(a,y,x){if(Dx(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var E=Fx(a,y),te=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=te,RS(a,y+1,x),HS(a,te),Bx(a,E),y=E.vertexes.Fa(),y.sort(function(ne,se){return ne===null||se===null||ne===se?0:se.Vd-ne.Vd}),x=0;x<y.length;x++)Rx(a,y[x]);a.Zf=b}}function Dx(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 Fx(a,y){for(var x=a.network,b=new Nf(a),E=0;E<a.ah.length;E++){var te=a.ah[E];if(1<te.Vd){b.dh(te);var ne=new GS;ne.Rs=te.Vd,ne.Ss=te.width,ne.Qs=te.height,ne.Sv=te.focus.x,ne.Tv=te.focus.y,te.We===null&&(te.We=new An),te.We.add(ne),te.sv=te.We.count-1}else break}for(te=x.edges.iterator;te.next();){var se=te.value;E=se.fromVertex,ne=se.toVertex,E.network===b&&ne.network===b?b.Bo(se):E.network===b?(se=E.Hj,se===null&&(se=new An,E.Hj=se),se.add(ne),E.Vd--,E.sh+=ne.sh):ne.network===b&&(se=ne.Hj,se===null&&(se=new An,ne.Hj=se),se.add(E),ne.Vd--,ne.sh+=E.sh)}for(E=b.edges.iterator;E.next();)te=E.value,te.length*=Math.max(1,Qt.sqrt((te.fromVertex.sh+te.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var he=E.Hj;if(he!==null&&0<he.count&&(ne=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=ne))){for(var ge=se=0,ye=he.count-ne;ye<he.count;ye++){var De=he.M(ye),$e=null;for(te=De.edges.iterator;te.next();){var Qe=te.value;if(Qe.Ax(De)===E){$e=Qe;break}}$e!==null&&(ge+=$e.length,se+=De.width*De.height)}te=E.centerX,he=E.centerY,ye=E.width,De=E.height,$e=E.focus,Qe=ye*De,1>Qe&&(Qe=1),se=Qt.sqrt((se+Qe+ge*ge*4/(ne*ne))/Qe),ne=(se-1)*ye/2,se=(se-1)*De/2,E.bounds=new Tn(te-$e.x-ne,he-$e.y-se,ye+2*ne,De+2*se),E.focus=new Lt($e.x+ne,$e.y+se)}}return a.network=b,x}function Bx(a,y){for(var x=a.network.vertexes.iterator;x.next();){var b=x.value;if(b.network=y,b.We!==null){var E=b.We.M(b.sv);b.Vd=E.Rs;var te=E.Sv,ne=E.Tv;b.bounds=new Tn(b.centerX-te,b.centerY-ne,E.Ss,E.Qs),b.focus=new Lt(te,ne),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Rx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,E=y.centerY,te=y.width,ne=y.height;y.We!==null&&0<y.We.count&&(ne=y.We.M(0),te=ne.Ss,ne=ne.Qs),te=Qt.sqrt(te*te+ne*ne)/2;for(var se=!1,he=ne=0,ge=0,ye=y.vertexes.iterator;ye.next();){var De=ye.value;1>=De.Vd?he++:(se=!0,ge++,ne+=Math.atan2(y.centerY-De.centerY,y.centerX-De.centerX))}if(he!==0){for(0<ge&&(ne/=ge),ge=y=0,y=se?2*Math.PI/(he+1):2*Math.PI/he,he%2===0&&(ge=y/2),1<x.count&&x.sort(function(Qe,rt){return Qe===null||rt===null||Qe===rt?0:rt.width*rt.height-Qe.width*Qe.height}),se=he%2===0?0:1,x=x.iterator;x.next();)if(he=x.value,!(1<he.Vd||a.isFixed(he))){for(ye=null,De=he.edges.iterator;De.next();){ye=De.value;break}De=he.width;var $e=he.height;De=Qt.sqrt(De*De+$e*$e)/2,ye=te+ye.length+De,De=ne+(y*(se/2>>1)+ge)*(se%2===0?1:-1),he.centerX=b+ye*Math.cos(De),he.centerY=E+ye*Math.sin(De),se++}}}}function _S(a,y,x,b,E,te,ne){var se=9e19,he=-1,ge=0;e:for(;ge<y;ge++){var ye=a[ge],De=ye.x-x,$e=ye.y-b;if(De=De*De+$e*$e,De<se){for($e=ge-1;0<=$e;$e--)if(a[$e].y>ye.y&&a[$e].x-ye.x<E+ne.width)continue e;for($e=ge+1;$e<y;$e++)if(a[$e].x>ye.x&&a[$e].y-ye.y<te+ne.height)continue e;he=ge,se=De}}return he}Ss.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Ss.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var x=y.value;if(x.category==="Comment"&&x.isVisible()){var b=this.network.ki(x);b===null&&(b=this.network.Bl(x)),b.charge=this.defaultCommentElectricalCharge,x=null;for(var E=b.destinationEdges;E.next();){var te=E.value;if(te.toVertex===a){x=te;break}}if(x===null){for(E=b.sourceEdges;E.next();)if(te=E.value,te.fromVertex===a){x=te;break}}x===null&&(x=this.network.Zj(a,b,null)),x.length=this.defaultCommentSpringLength}}};function zS(a,y){var x=a.bounds,b=x.x;a=x.y;var E=x.width;x=x.height;var te=y.bounds,ne=te.x;y=te.y;var se=te.width;return te=te.height,b+E<ne?a>y+te?(x=b+E-ne,a=a-y-te,Qt.sqrt(x*x+a*a)):a+x<y?(b=b+E-ne,a=a+x-y,Qt.sqrt(b*b+a*a)):ne-(b+E):b>ne+se?a>y+te?(x=b-ne-se,a=a-y-te,Qt.sqrt(x*x+a*a)):a+x<y?(b=b-ne-se,a=a+x-y,Qt.sqrt(b*b+a*a)):b-(ne+se):a>y+te?a-(y+te):a+x<y?y-(a+x):.1}function HS(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,_x(a)););a.ah=null}function _x(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var b=x.centerX,E=b,te=x=x.centerY,ne=1;ne<y.length;ne++){var se=y[ne];se.forceX=0,se.forceY=0;var he=se.centerX;se=se.centerY,b=Math.min(b,he),E=Math.max(E,he),x=Math.min(x,se),te=Math.max(te,se)}(E=E-b>te-x)?y.sort(function(ut,Ot){return ut===null||Ot===null||ut===Ot?0:ut.centerX-Ot.centerX}):y.sort(function(ut,Ot){return ut===null||Ot===null||ut===Ot?0:ut.centerY-Ot.centerY}),x=a.Zf;var ge=b=se=0;for(te=0;te<y.length;te++){ne=y[te],b=ne.bounds,se=ne.focus,he=b.x+se.x;var ye=b.y+se.y;b=ne.charge*a.electricalFieldX(he,ye),ge=ne.charge*a.electricalFieldY(he,ye),b+=ne.mass*a.gravitationalFieldX(he,ye),ge+=ne.mass*a.gravitationalFieldY(he,ye),ne.forceX+=b,ne.forceY+=ge;for(var De=te+1;De<y.length;De++){var $e=y[De];if($e!==ne){b=$e.bounds,se=$e.focus,ge=b.x+se.x;var Qe=b.y+se.y;if(he-ge>x||ge-he>x){if(E)break}else if(ye-Qe>x||Qe-ye>x){if(!E)break}else{var rt=zS(ne,$e);1>rt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new E0),rt=b.random(),se=b.random(),he>ge?(b=Math.abs($e.bounds.right-ne.bounds.x),b=(1+b)*rt):he<ge?(b=Math.abs($e.bounds.x-ne.bounds.right),b=-(1+b)*rt):(b=Math.max($e.width,ne.width),b=(1+b)*rt-b/2),ye>Qe?(ge=Math.abs($e.bounds.bottom-ne.bounds.y),ge=(1+ge)*se):he<ge?(ge=Math.abs($e.bounds.y-ne.bounds.bottom),ge=-(1+ge)*se):(ge=Math.max($e.height,ne.height),ge=(1+ge)*se-ge/2)):(se=-(ne.charge*$e.charge)/(rt*rt),b=(ge-he)/rt*se,ge=(Qe-ye)/rt*se),ne.forceX+=b,ne.forceY+=ge,$e.forceX-=b,$e.forceY-=ge}}}}for(E=a.network.edges.iterator;E.next();)se=E.value,x=se.fromVertex,te=se.toVertex,ne=x.bounds,he=x.focus,b=ne.x+he.x,ne=ne.y+he.y,ye=te.bounds,De=te.focus,he=ye.x+De.x,ye=ye.y+De.y,De=zS(x,te),1>De?(De=a.randomNumberGenerator,De===null&&(a.randomNumberGenerator=De=new E0),se=De.random(),De=De.random(),b=(b>he?1:-1)*(1+(te.width>x.width?te.width:x.width))*se,ge=(ne>ye?1:-1)*(1+(te.height>x.height?te.height:x.height))*De):(se=se.stiffness*(De-se.length),b=(he-b)/De*se,ge=(ye-ne)/De*se),x.forceX+=b,x.forceY+=ge,te.forceX-=b,te.forceY-=ge;for(E=b=0;E<y.length;E++)x=y[E],a.isFixed(x)?a.moveFixedVertex(x):b=Math.max(b,a.moveVertex(x)||0);return b>a.epsilonDistance*a.epsilonDistance}Ss.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},Ss.prototype.moveFixedVertex=function(){},Ss.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Ss.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=qi,y.toSpot=qi)}},Ss.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=Tn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,Tn.free(x)}x=Tn.alloc();for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;(a!==0||y!==0)&&(x.assign(E.bounds),x.x+=a,x.y+=y,E.bounds=x),E.commit()}Tn.free(x)},Ss.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Ss.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},Ss.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},Ss.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},Ss.prototype.electricalFieldX=function(){return 0},Ss.prototype.electricalFieldY=function(){return 0},Ss.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},Ss.prototype.gravitationalFieldX=function(){return 0},Ss.prototype.gravitationalFieldY=function(){return 0},Ss.prototype.isFixed=function(a){return a.isFixed},jt.Object.defineProperties(Ss.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"&&Zt('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())}}}),Ss.className="ForceDirectedLayout";function GS(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}GS.className="ForceDirectedSubnet";function Nf(a){xo.call(this,a)}Jt(Nf,xo),Nf.prototype.createVertex=function(){return new Hg(this)},Nf.prototype.createEdge=function(){return new Gg(this)},Nf.className="ForceDirectedNetwork";function Hg(a){Ga.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}Jt(Hg,Ga),jt.Object.defineProperties(Hg.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)}}}),Hg.className="ForceDirectedVertex";function Gg(a){Ll.call(this,a),this.j=this.o=NaN}Jt(Gg,Ll),jt.Object.defineProperties(Gg.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)}}}),Gg.className="ForceDirectedEdge";function E0(){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()}E0.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},E0.className="RandomNumberGenerator";function oo(a){Ro.call(this),this.kc=this.ie=25,this.K=0,this.Dk=N0,this.Zk=O0,this.Qk=A0,this.bj=4,this.rk=j0,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 Lt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Jt(oo,Ro),oo.prototype.cloneProtected=function(a){Ro.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},oo.prototype.qb=function(a){a.classType===oo?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:Zt("Unknown enum value: "+a):Ro.prototype.qb.call(this,a)},oo.prototype.createNetwork=function(){return new Op(this)},oo.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!==Ug&&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===Ug&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var b=x.value;b.valid=!1,y.push(b)}for(x=0;x<y.length;x++){b=y[x];var E=b.fromVertex,te=b.toVertex;if(!(b.valid||(E.node===null&&E.data===null||te.node===null&&te.data===null)&&E.layer===te.layer)){var ne=0,se=0,he=0,ge=0;if(b.link!==null){if(se=b.link,se===null)continue;var ye=E.node;if(ne=te.node,ye===null||ne===null)continue;var De=se.fromNode;he=se.toNode;for(var $e=se.fromPort;$e!==null&&!$e.Ed();)$e=$e.panel;for(se=se.toPort;se!==null&&!se.Ed();)se=se.panel;if(b.rev){ge=De;var Qe=$e;De=he,$e=se,he=ge,se=Qe}var rt=E.focus;ge=te.focus;var ut=b.rev?te.bounds:E.bounds;Qe=Lt.alloc(),ye!==De?ut.w()&&De.isVisible()?De.actualBounds.w()?(Th(De,$e,Di,Qe),Qe.x+=De.actualBounds.x-ut.x,Qe.y+=De.actualBounds.y-ut.y):(Th(De,$e,Di,Qe),Qe.w()||Qe.assign(rt)):Qe.assign(rt):ut.w()?(Th(De,$e,Di,Qe),Qe.w()||Qe.assign(rt)):Qe.assign(rt),De=b.rev?E.bounds:te.bounds,ye=Lt.alloc(),ne!==he?De.w()&&he.isVisible()?he.actualBounds.w()?(Th(he,se,Di,ye),ye.x+=he.actualBounds.x-De.x,ye.y+=he.actualBounds.y-De.y):(Th(he,se,Di,ye),ye.w()||ye.assign(ge)):ye.assign(ge):De.w()?(Th(he,se,Di,ye),ye.w()||ye.assign(ge)):ye.assign(ge),this.K===90||this.K===270?(ne=Math.round((Qe.x-rt.x)/this.kc),he=Qe.x,se=Math.round((ye.x-ge.x)/this.kc),ge=ye.x):(ne=Math.round((Qe.y-rt.y)/this.kc),he=Qe.y,se=Math.round((ye.y-ge.y)/this.kc),ge=ye.y),Lt.free(Qe),Lt.free(ye),b.portFromColOffset=ne,b.portFromPos=he,b.portToColOffset=se,b.portToPos=ge}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(Qe=E.layer,ye=te.layer,De=0,ut=b.link,ut!==null){var Ot=ut.fromPort,Tt=ut.toPort;if(Ot!==null&&Tt!==null){var Bt=ut.fromNode;if($e=ut.toNode,Bt!==null&&$e!==null){var _t=k0(this,!0),Ht=k0(this,!1),Vt=this.setsPortSpots?_t:ut.computeSpot(!0,Ot);rt=this.setsPortSpots?Ht:ut.computeSpot(!1,Tt);var hn=ut.isOrthogonal;Vt.$c()&&Vt.Hf(Ht)&&rt.$c()&&rt.Hf(_t)?De=0:(_t=ut.getLinkPoint(Bt,Ot,Vt,!0,hn,$e,Tt,Lt.alloc()),Ht=ut.getLinkDirection(Bt,Ot,_t,Vt,!0,hn,$e,Tt),Lt.free(_t),Vt.ys()||Ht!==JS(this,b,!0)?this.setsPortSpots&&Bt!==null&&Bt.ports.count===1&&b.rev&&(De+=1):De+=1,Vt=ut.getLinkPoint($e,Tt,rt,!1,hn,Bt,Ot,Lt.alloc()),ut=ut.getLinkDirection($e,Tt,Vt,rt,!1,hn,Bt,Ot),Lt.free(Vt),rt.ys()||ut!==JS(this,b,!1)?this.setsPortSpots&&$e!==null&&$e.ports.count===1&&b.rev&&(De+=2):De+=2)}}}if($e=De,De=$e===1||$e===3,($e=$e===2||$e===3)&&(rt=a.createVertex(),rt.node=null,rt.Dj=1,rt.layer=Qe,rt.near=E,a.dh(rt),E=a.Zj(E,rt,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=ne,E.portToColOffset=0,E.portFromPos=he,E.portToPos=0,E=rt),ut=1,De&&ut--,Qe-ye>ut&&0<Qe){for(b.valid=!1,rt=a.createVertex(),rt.node=null,rt.Dj=2,rt.layer=Qe-1,a.dh(rt),E=a.Zj(E,rt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=$e?0:ne,E.portToColOffset=0,E.portFromPos=$e?0:he,E.portToPos=0,E=rt,Qe--;Qe-ye>ut&&0<Qe;)rt=a.createVertex(),rt.node=null,rt.Dj=3,rt.layer=Qe-1,a.dh(rt),E=a.Zj(E,rt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=rt,Qe--;E=a.Zj(rt,te,b.link),E.valid=!De,De&&(rt.near=te),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=se,E.portFromPos=0,E.portToPos=ge}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=ud(this,a),x=0,b=this.tc[a],te=0;te<b;te++)E=y[te],x+=this.nodeMinColumnSpace(E,!0),E.column=x,x+=1,x+=this.nodeMinColumnSpace(E,!1);this.Ra=Math.max(this.Ra,x-1),cd(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},oo.prototype.linkMinLength=function(){return 1};function gy(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}oo.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},oo.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 cl(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 hu(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 WS(a,y,x){var b=ud(a,y),E=a.tc[y];(a.Jn===null||a.Jn.length<E*E)&&(a.Jn=[]);for(var te=a.Jn,ne=0;ne<E;ne++){var se=0,he=b[ne],ge=he.near;if(ge!==null&&ge.layer===he.layer)if(he=ge.index,he>ne)for(var ye=ne+1;ye<he;ye++){var De=b[ye];De.near===ge&&De.Dj===ge.Dj||se++}else for(ye=ne-1;ye>he;ye--)De=b[ye],De.near===ge&&De.Dj===ge.Dj||se++;var $e;if(0<=x)for(he=b[ne].sourceEdgesArrayAccess,ge=0;ge<he.length;ge++){var Qe=he[ge];if(Qe.valid&&Qe.fromVertex.layer!==y)for(De=Qe.fromVertex.index,ye=Qe.portToPos,Qe=Qe.portFromPos,$e=ge+1;$e<he.length;$e++){var rt=he[$e];if(rt.valid&&rt.fromVertex.layer!==y){var ut=rt.fromVertex.index,Ot=rt.portToPos;rt=rt.portFromPos,ye<Ot&&(De>ut||De===ut&&Qe>rt)&&se++,Ot<ye&&(ut>De||ut===De&&rt>Qe)&&se++}}}if(0>=x){for(he=b[ne].destinationEdgesArrayAccess,ge=0;ge<he.length;ge++)if(Qe=he[ge],Qe.valid&&Qe.toVertex.layer!==y)for(De=Qe.toVertex.index,ye=Qe.portToPos,Qe=Qe.portFromPos,$e=ge+1;$e<he.length;$e++)rt=he[$e],rt.valid&&rt.toVertex.layer!==y&&(ut=rt.toVertex.index,Ot=rt.portToPos,rt=rt.portFromPos,Qe<rt&&(De>ut||De===ut&&ye>Ot)&&se++,rt<Qe&&(ut>De||ut===De&&Ot>ye)&&se++)}for(te[ne*E+ne]=se,he=ne+1;he<E;he++){var Tt=0,Bt=0;if(0<=x){se=b[ne].sourceEdgesArrayAccess;var _t=b[he].sourceEdgesArrayAccess;for(ge=0;ge<se.length;ge++)if(Qe=se[ge],Qe.valid&&Qe.fromVertex.layer!==y)for(De=Qe.fromVertex.index,Qe=Qe.portFromPos,$e=0;$e<_t.length;$e++)rt=_t[$e],rt.valid&&rt.fromVertex.layer!==y&&(ut=rt.fromVertex.index,rt=rt.portFromPos,(De<ut||De===ut&&Qe<rt)&&Bt++,(ut<De||ut===De&&rt<Qe)&&Tt++)}if(0>=x){for(se=b[ne].destinationEdgesArrayAccess,_t=b[he].destinationEdgesArrayAccess,ge=0;ge<se.length;ge++)if(Qe=se[ge],Qe.valid&&Qe.toVertex.layer!==y)for(De=Qe.toVertex.index,ye=Qe.portToPos,$e=0;$e<_t.length;$e++)rt=_t[$e],rt.valid&&rt.toVertex.layer!==y&&(ut=rt.toVertex.index,Ot=rt.portToPos,(De<ut||De===ut&&ye<Ot)&&Bt++,(ut<De||ut===De&&Ot<ye)&&Tt++)}te[ne*E+he]=Tt,te[he*E+ne]=Bt}}return cd(a,y,b),te}oo.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=WS(this,y,1),b=this.tc[y],E=0;E<b;E++)for(var te=E;te<b;te++)a+=x[E*b+te];return a};function T0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,te=ud(b,E),ne=b.tc[E],se=0,he=0;he<ne;he++){var ge=te[he].destinationEdgesArrayAccess;if(ge!==null)for(var ye=0;ye<ge.length;ye++){var De=ge[ye];if(De.valid&&De.toVertex.layer!==E){var $e=De.fromVertex.column+De.portFromColOffset,Qe=De.toVertex.column+De.portToColOffset;se+=(Math.abs($e-Qe)+1)*gy(De)}}}cd(b,E,te),y+=se}return y}oo.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 my(a,y,x){for(var b=ud(a,y),E=a.tc[y],te=[],ne=0;ne<E;ne++){var se=b[ne],he=null;0>=x&&(he=se.sourceEdgesArrayAccess);var ge=null;0<=x&&(ge=se.destinationEdgesArrayAccess);var ye=0,De=0,$e=se.near;if($e!==null&&$e.layer===se.layer&&(ye+=$e.column-1,De++),he!==null)for($e=0;$e<he.length;$e++){se=he[$e];var Qe=se.fromVertex;se.valid&&!se.rev&&Qe.layer!==y&&(ye+=Qe.column,De++)}if(ge!==null)for(he=0;he<ge.length;he++)se=ge[he],$e=se.toVertex,se.valid&&!se.rev&&$e.layer!==y&&(ye+=$e.column,De++);te[ne]=De===0?-1:ye/De}return cd(a,y,b),te}function US(a,y,x){for(var b=ud(a,y),E=a.tc[y],te=[],ne=0;ne<E;ne++){var se=b[ne],he=null;0>=x&&(he=se.sourceEdgesArrayAccess);var ge=null;0<=x&&(ge=se.destinationEdgesArrayAccess);var ye=0,De=[],$e=se.near;if($e!==null&&$e.layer===se.layer&&(De[ye]=$e.column-1,ye++),se=void 0,he!==null)for($e=0;$e<he.length;$e++){se=he[$e];var Qe=se.fromVertex;se.valid&&!se.rev&&Qe.layer!==y&&(De[ye]=Qe.column+se.portFromColOffset,ye++)}if(ge!==null)for(he=0;he<ge.length;he++)se=ge[he],$e=se.toVertex,se.valid&&!se.rev&&$e.layer!==y&&(De[ye]=$e.column+se.portToColOffset,ye++);ye===0?te[ne]=-1:(De.sort(function(rt,ut){return rt-ut}),ge=ye>>1,te[ne]=ye&1?De[ge]:De[ge-1]+De[ge]>>1)}return cd(a,y,b),te}function Wg(a,y,x,b,E,te){if(y.component===b){if(y.component=x,E)for(var ne=y.destinationEdges;ne.next();){var se=ne.value,he=se.toVertex,ge=y.layer-he.layer;se=a.linkMinLength(se),ge===se&&Wg(a,he,x,b,E,te)}if(te)for(ne=y.sourceEdges;ne.next();)se=ne.value,he=se.fromVertex,ge=he.layer-y.layer,se=a.linkMinLength(se),ge===se&&Wg(a,he,x,b,E,te)}}function vy(a,y,x,b,E,te){if(y.component===b){if(y.component=x,E)for(var ne=y.destinationEdges;ne.next();)vy(a,ne.value.toVertex,x,b,E,te);if(te)for(y=y.sourceEdges;y.next();)vy(a,y.value.fromVertex,x,b,E,te)}}oo.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case xy:a=this.network;var y=0,x=a.vertexes.count-1,b=[];b.length=x+1;for(var E=a.vertexes.iterator;E.next();)E.value.valid=!0;for(;zx(a)!==null;){for(E=$S(a);E!==null;)b[x]=E,x--,E.valid=!1,E=$S(a);for(E=KS(a);E!==null;)b[y]=E,y++,E.valid=!1,E=KS(a);E=null;for(var te=0,ne=this.network.vertexes.iterator;ne.next();){var se=ne.value;if(se.valid){for(var he=0,ge=se.destinationEdges;ge.next();)ge.value.toVertex.valid&&he++;ge=0;for(var ye=se.sourceEdges;ye.next();)ye.value.fromVertex.valid&&ge++;(E===null||te<he-ge)&&(E=se,te=he-ge)}}E!==null&&(b[y]=E,y++,E.valid=!1)}for(y=0;y<a.vertexes.count;y++)b[y].index=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case N0: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&&yy(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&yy(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,E=b.toVertex,te=E.finish,E.Ll<y.Ll&&x<te&&(this.network.gm(b),b.rev=!0));break;case Ug:for(a=this.network,y=a.vertexes.iterator,b=1/0;y.next();)b=Math.min(b,y.value.layer);if(1/0>b){if(0>b)for(y.reset();y.next();)y.value.layer-=b;for(b=[],y.reset();y.next();)x=y.value,E=b[x.layer],E===void 0?b[x.layer]=[x]:E.push(x);for(x=y=0;x<b.length;x++)if(E=b[x],!E||E.length===0)y++;else if(0<x)for(te=0;te<E.length;te++)E[te].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 zx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function $S(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 KS(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 yy(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var b=x.value,E=b.toVertex;E.Ll===-1&&(b.forest=!0,yy(a,E))}y.finish=a.Kn,a.Kn++}oo.prototype.assignLayers=function(){switch(this.Zk){case wy:ZS(this);break;case by:for(var a,y=this.network.vertexes.iterator;y.next();)a=XS(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 O0:for(ZS(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&YS(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 ZS(a){for(var y=a.network.vertexes.iterator;y.next();){var x=VS(a,y.value);a.Ia=Math.max(x,a.Ia)}}function VS(a,y){var x=0;if(y.layer===-1){for(var b=y.destinationEdges;b.next();){var E=b.value,te=E.toVertex;E=a.linkMinLength(E),x=Math.max(x,VS(a,te)+E)}y.layer=x}else x=y.layer;return x}function XS(a,y){var x=0;if(y.layer===-1){for(var b=y.sourceEdges;b.next();){var E=b.value,te=E.fromVertex;E=a.linkMinLength(E),x=Math.max(x,XS(a,te)+E)}y.layer=x}else x=y.layer;return x}function YS(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)YS(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var b=y.sourceEdgesArrayAccess,E=b.length,te=0;te<E;te++){var ne=b[te],se=ne.fromVertex,he=ne.toVertex;ne=a.linkMinLength(ne),se.layer-he.layer>ne&&Wg(a,se,0,-1,!0,!1)}for(Wg(a,y,1,-1,!0,!0);y.component!==0;){for(te=0,b=1/0,se=0,he=null,ne=a.network.vertexes.iterator;ne.next();){var ge=ne.value;if(ge.component===1){var ye=0,De=!1,$e=ge.sourceEdgesArrayAccess;E=$e.length;for(var Qe=0;Qe<E;Qe++){var rt=$e[Qe],ut=rt.fromVertex;ye+=1,ut.component!==1&&(te+=1,ut=ut.layer-ge.layer,rt=a.linkMinLength(rt),b=Math.min(b,ut-rt))}for($e=ge.destinationEdgesArrayAccess,E=$e.length,Qe=0;Qe<E;Qe++)rt=$e[Qe].toVertex,--ye,rt.component!==1?--te:De=!0;(he===null||ye<se)&&!De&&(he=ge,se=ye)}}if(0<te){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else he.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(Wg(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,te=0,se=null,he=a.network.vertexes.iterator;he.next();)if(ne=he.value,ne.component===1){for(ge=0,ye=!1,$e=ne.sourceEdgesArrayAccess,De=$e.length,Qe=0;Qe<De;Qe++)rt=$e[Qe].fromVertex,ge+=1,rt.component!==1?b+=1:ye=!0;for($e=ne.destinationEdgesArrayAccess,De=$e.length,Qe=0;Qe<De;Qe++)rt=$e[Qe],ut=rt.toVertex,--ge,ut.component!==1&&(--b,ut=ne.layer-ut.layer,rt=a.linkMinLength(rt),E=Math.min(E,ut-rt));(se===null||ge>te)&&!ye&&(se=ne,te=ge)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else se.component=0}}}function JS(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}oo.prototype.initializeIndices=function(){switch(this.Qk){default:case Cy: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 A0: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&&QS(this,x);break;case Py: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&&qS(this,x)}};function QS(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var b=0;b<y.length-1;b++){var E=y[b],te=y[b+1];E.portFromColOffset>te.portFromColOffset&&(x=!0,y[b]=te,y[b+1]=E)}}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.toVertex,b.index===-1&&QS(a,b))}function qS(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var b=!0;b;)for(b=!1,x=0;x<y.length-1;x++){var E=y[x],te=y[x+1];E.portToColOffset>te.portToColOffset&&(b=!0,y[x]=te,y[x+1]=E)}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.fromVertex,b.index===-1&&qS(a,b))}oo.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=cl(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)M0(this,b,1),xu(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=cl(this)),b=this.Ia;0<=b;b--)M0(this,b,-1),xu(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=cl(this))}for(hu(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)M0(this,b,0),xu(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=cl(this)),b=this.Ia;0<=b;b--)M0(this,b,0),xu(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=cl(this))}hu(this,y);var te,ne,se;switch(this.rk){case Ey:break;case Ty:for(se=a+1;(b=this.countCrossings())<se;)for(se=b,x=this.Ia;0<=x;x--)for(ne=0;ne<=x;ne++){for(te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=xu(this,b,-1)||te;for(E=this.countCrossings(),E>=a?hu(this,y):(a=E,y=cl(this)),te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=xu(this,b,1)||te;for(E=this.countCrossings(),E>=a?hu(this,y):(a=E,y=cl(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=xu(this,b,1)||te;for(E>=a?hu(this,y):(a=E,y=cl(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=xu(this,b,-1)||te;for(E>=a?hu(this,y):(a=E,y=cl(this)),te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=xu(this,b,0)||te;for(E>=a?hu(this,y):(a=E,y=cl(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=xu(this,b,0)||te;E>=a?hu(this,y):(a=E,y=cl(this))}break;default:case j0:for(x=this.Ia,ne=0,se=a+1;(b=this.countCrossings())<se;){for(se=b,te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=xu(this,b,-1)||te;for(E=this.countCrossings(),E>=a?hu(this,y):(a=E,y=cl(this)),te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=xu(this,b,1)||te;for(E=this.countCrossings(),E>=a?hu(this,y):(a=E,y=cl(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=xu(this,b,1)||te;for(E>=a?hu(this,y):(a=E,y=cl(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=xu(this,b,-1)||te;for(E>=a?hu(this,y):(a=E,y=cl(this)),te=!0;te;)for(te=!1,b=x;b>=ne;b--)te=xu(this,b,0)||te;for(E>=a?hu(this,y):(a=E,y=cl(this)),te=!0;te;)for(te=!1,b=ne;b<=x;b++)te=xu(this,b,0)||te;E>=a?hu(this,y):(a=E,y=cl(this))}}hu(this,y)};function M0(a,y,x){var b=ud(a,y),E=a.tc[y],te=US(a,y,x),ne=my(a,y,x);for(x=0;x<E;x++)ne[x]===-1&&(ne[x]=b[x].column),te[x]===-1&&(te[x]=b[x].column);for(var se=!0,he;se;)for(se=!1,x=0;x<E-1;x++)(te[x+1]<te[x]||te[x+1]===te[x]&&ne[x+1]<ne[x])&&(se=!0,he=te[x],te[x]=te[x+1],te[x+1]=he,he=ne[x],ne[x]=ne[x+1],ne[x+1]=he,he=b[x],b[x]=b[x+1],b[x+1]=he);for(x=te=0;x<E;x++)he=b[x],he.index=x,te+=a.nodeMinColumnSpace(he,!0),he.column=te,te+=1,te+=a.nodeMinColumnSpace(he,!1);cd(a,y,b)}function xu(a,y,x){var b=ud(a,y),E=a.tc[y];x=WS(a,y,x);var te,ne=[];for(te=0;te<E;te++)ne[te]=-1;var se=[];for(te=0;te<E;te++)se[te]=-1;for(var he=!1,ge=!0;ge;)for(ge=!1,te=0;te<E-1;te++){var ye=x[b[te].index*E+b[te+1].index],De=x[b[te+1].index*E+b[te].index],$e=0,Qe=0,rt=b[te].column,ut=b[te+1].column,Ot=a.nodeMinColumnSpace(b[te],!0),Tt=a.nodeMinColumnSpace(b[te],!1),Bt=a.nodeMinColumnSpace(b[te+1],!0),_t=a.nodeMinColumnSpace(b[te+1],!1);Ot=rt-Ot+Bt,Tt=ut-Tt+_t;var Ht=b[te].sourceEdges.iterator;for(Ht.reset();Ht.next();)if(Bt=Ht.value,_t=Bt.fromVertex,Bt.valid&&_t.layer===y){for(Bt=0;b[Bt]!==_t;)Bt++;Bt<te&&($e+=2*(te-Bt),Qe+=2*(te+1-Bt)),Bt===te+1&&($e+=1),Bt>te+1&&($e+=4*(Bt-te),Qe+=4*(Bt-(te+1)))}for(Ht=b[te].destinationEdges.iterator,Ht.reset();Ht.next();)if(Bt=Ht.value,_t=Bt.toVertex,Bt.valid&&_t.layer===y){for(Bt=0;b[Bt]!==_t;)Bt++;Bt===te+1&&(Qe+=1)}for(Ht=b[te+1].sourceEdges.iterator,Ht.reset();Ht.next();)if(Bt=Ht.value,_t=Bt.fromVertex,Bt.valid&&_t.layer===y){for(Bt=0;b[Bt]!==_t;)Bt++;Bt<te&&($e+=2*(te+1-Bt),Qe+=2*(te-Bt)),Bt===te&&(Qe+=1),Bt>te+1&&($e+=4*(Bt-(te+1)),Qe+=4*(Bt-te))}for(Ht=b[te+1].destinationEdges.iterator,Ht.reset();Ht.next();)if(Bt=Ht.value,_t=Bt.toVertex,Bt.valid&&_t.layer===y){for(Bt=0;b[Bt]!==_t;)Bt++;Bt===te&&($e+=1)}Bt=_t=0,Ht=ne[b[te].index];var Vt=se[b[te].index],hn=ne[b[te+1].index],rr=se[b[te+1].index];Ht!==-1&&(_t+=Math.abs(Ht-rt),Bt+=Math.abs(Ht-Tt)),Vt!==-1&&(_t+=Math.abs(Vt-rt),Bt+=Math.abs(Vt-Tt)),hn!==-1&&(_t+=Math.abs(hn-ut),Bt+=Math.abs(hn-Ot)),rr!==-1&&(_t+=Math.abs(rr-ut),Bt+=Math.abs(rr-Ot)),(Qe<$e-.5||Qe===$e&&De<ye-.5||Qe===$e&&De===ye&&Bt<_t-.5)&&(ge=he=!0,b[te].column=Tt,b[te+1].column=Ot,ye=b[te],b[te]=b[te+1],b[te+1]=ye)}for(te=0;te<E;te++)b[te].index=te;return cd(a,y,b),he}oo.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&Vx)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var x=[];for(y=0;y<=this.Ia;y++)x[y]=0;for(var b,E=this.network.vertexes.iterator;E.next();){var te=E.value;y=te.layer,b=te.column,te=this.nodeMinColumnSpace(te,!1),x[y]=Math.max(x[y],b+te)}for(E.reset();E.next();)te=E.value,y=te.layer,b=te.column,te.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=Np(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Np(this,y,-1)||x;x=Np(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)Sy(this,y,1);for(y=this.Md-1;0<=y;y--)Sy(this,y,-1);Sy(this,this.Md,0)}if(a&&(ex(this,-1),ex(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Np(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Np(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Np(this,y,0)||x}}else Ux(this)};function Np(a,y,x){for(var b=!1;Hx(a,y,x);)b=!0;return b}function Hx(a,y,x){var b,E=ud(a,y),te=a.tc[y],ne=my(a,y,-1);if(0<x)for(b=0;b<te;b++)ne[b]=-1;var se=my(a,y,1);if(0>x)for(b=0;b<te;b++)se[b]=-1;for(var he=!1,ge=!0;ge;)for(ge=!1,b=0;b<te;b++){var ye=E[b].column,De=a.nodeMinColumnSpace(E[b],!0),$e=a.nodeMinColumnSpace(E[b],!1),Qe=0;0>b-1||ye-E[b-1].column-1>De+a.nodeMinColumnSpace(E[b-1],!1)?Qe=ye-1:Qe=ye,De=b+1>=te||E[b+1].column-ye-1>$e+a.nodeMinColumnSpace(E[b+1],!0)?ye+1:ye;var rt=$e=0,ut=0;if(0>=x)for(var Ot=E[b].sourceEdges.iterator;Ot.next();){var Tt=Ot.value,Bt=Tt.fromVertex;if(Tt.valid&&Bt.layer!==y){var _t=gy(Tt),Ht=Tt.portFromColOffset;Tt=Tt.portToColOffset,Bt=Bt.column,$e+=(Math.abs(ye+Tt-(Bt+Ht))+1)*_t,rt+=(Math.abs(Qe+Tt-(Bt+Ht))+1)*_t,ut+=(Math.abs(De+Tt-(Bt+Ht))+1)*_t}}if(0<=x)for(Ot=E[b].destinationEdges.iterator;Ot.next();)Tt=Ot.value,Bt=Tt.toVertex,Tt.valid&&Bt.layer!==y&&(_t=gy(Tt),Ht=Tt.portFromColOffset,Tt=Tt.portToColOffset,Bt=Bt.column,$e+=(Math.abs(ye+Ht-(Bt+Tt))+1)*_t,rt+=(Math.abs(Qe+Ht-(Bt+Tt))+1)*_t,ut+=(Math.abs(De+Ht-(Bt+Tt))+1)*_t);Tt=Ht=_t=0,Ot=ne[E[b].index],Bt=se[E[b].index],Ot!==-1&&(_t+=Math.abs(Ot-ye),Ht+=Math.abs(Ot-Qe),Tt+=Math.abs(Ot-De)),Bt!==-1&&(_t+=Math.abs(Bt-ye),Ht+=Math.abs(Bt-Qe),Tt+=Math.abs(Bt-De)),rt<$e||rt===$e&&Ht<_t?(ge=he=!0,E[b].column=Qe):(ut<$e||ut===$e&&Tt<_t)&&(ge=he=!0,E[b].column=De)}return cd(a,y,E),a.normalize(),he}function Sy(a,y,x){var b=ud(a,y),E=a.tc[y],te=US(a,y,x),ne=[];for(x=0;x<E;x++)ne[x]=te[x];for(te=!0;te;)for(te=!1,x=0;x<E;x++){var se=b[x].column,he=a.nodeMinColumnSpace(b[x],!0),ge=a.nodeMinColumnSpace(b[x],!1),ye=0;if(ne[x]===-1)if(x===0&&x===E-1)ye=se;else if(x===0){var De=b[x+1].column;De-se===ge+a.nodeMinColumnSpace(b[x+1],!0)?ye=se-1:ye=se}else x===E-1?(De=b[x-1].column,ye=se-De===he+a.nodeMinColumnSpace(b[x-1],!1)?se+1:se):(De=b[x-1].column,he=De+a.nodeMinColumnSpace(b[x-1],!1)+he+1,De=b[x+1].column,ge=De-a.nodeMinColumnSpace(b[x+1],!0)-ge-1,ye=(he+ge)/2|0);else x===0&&x===E-1?ye=ne[x]:x===0?(De=b[x+1].column,ge=De-a.nodeMinColumnSpace(b[x+1],!0)-ge-1,ye=Math.min(ne[x],ge)):x===E-1?(De=b[x-1].column,he=De+a.nodeMinColumnSpace(b[x-1],!1)+he+1,ye=Math.max(ne[x],he)):(De=b[x-1].column,he=De+a.nodeMinColumnSpace(b[x-1],!1)+he+1,De=b[x+1].column,ge=De-a.nodeMinColumnSpace(b[x+1],!0)-ge-1,he<ne[x]&&ne[x]<ge?ye=ne[x]:he>=ne[x]?ye=he:ge<=ne[x]&&(ye=ge));ye!==se&&(te=!0,b[x].column=ye)}cd(a,y,b),a.normalize()}function Gx(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var E=b.value,te=a.nodeMinColumnSpace(E,!0),ne=a.nodeMinColumnSpace(E,!1);if(E.column-te<=y&&E.column+ne>=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 Wx(a,y){var x=y+1,b,E=[],te=[];for(b=0;b<=a.Ia;b++)E[b]=!1,te[b]=!1;for(var ne=a.network.vertexes.iterator;ne.next();){b=ne.value;var se=b.column-a.nodeMinColumnSpace(b,!0),he=b.column+a.nodeMinColumnSpace(b,!1);se<=y&&he>=y&&(E[b.layer]=!0),se<=x&&he>=x&&(te[b.layer]=!0)}for(se=!0,x=!1,b=0;b<=a.Ia;b++)se=se&&!(E[b]&&te[b]);if(se)for(ne.reset();ne.next();)a=ne.value,a.column>y&&(--a.column,x=!0);return x}function ex(a,y){for(var x=0;x<=a.Ra;x++)for(;Gx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Wx(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=cl(a),te=T0(a);for(b=te+1;te<b;){b=te,tx(a,x,1);var ne=T0(a);ne>te?hu(a,E):ne<te&&(te=ne,E=cl(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=cl(a),te=T0(a),b=te+1;te<b;)b=te,tx(a,x,-1),ne=T0(a),ne>te?hu(a,E):ne<te&&(te=ne,E=cl(a));a.normalize()}function tx(a,y,x){a.le=0;for(var b=a.network.vertexes.iterator;b.next();)b.value.component=-1;if(0<x)for(b.reset();b.next();){var E=b.value;E.column-a.nodeMinColumnSpace(E,!0)<=y&&(E.component=a.le)}if(0>x)for(b.reset();b.next();)E=b.value,E.column+a.nodeMinColumnSpace(E,!1)>=y&&(E.component=a.le);for(a.le++,b.reset();b.next();)y=b.value,y.component===-1&&(vy(a,y,a.le,-1,!0,!0),a.le++);var te;for(y=[],te=0;te<a.le*a.le;te++)y[te]=!1;for(E=[],te=0;te<(a.Ia+1)*(a.Ra+1);te++)E[te]=-1;for(b.reset();b.next();){te=b.value;for(var ne=te.layer,se=Math.max(0,te.column-a.nodeMinColumnSpace(te,!0)),he=Math.min(a.Ra,te.column+a.nodeMinColumnSpace(te,!1));se<=he;se++)E[ne*(a.Ra+1)+se]=te.component}for(te=0;te<=a.Ia;te++){if(0<x)for(ne=0;ne<a.Ra;ne++)E[te*(a.Ra+1)+ne]!==-1&&E[te*(a.Ra+1)+ne+1]!==-1&&E[te*(a.Ra+1)+ne]!==E[te*(a.Ra+1)+ne+1]&&(y[E[te*(a.Ra+1)+ne]*a.le+E[te*(a.Ra+1)+ne+1]]=!0);if(0>x)for(ne=a.Ra;0<ne;ne--)E[te*(a.Ra+1)+ne]!==-1&&E[te*(a.Ra+1)+ne-1]!==-1&&E[te*(a.Ra+1)+ne]!==E[te*(a.Ra+1)+ne-1]&&(y[E[te*(a.Ra+1)+ne]*a.le+E[te*(a.Ra+1)+ne-1]]=!0)}for(E=[],te=0;te<a.le;te++)E[te]=!0;for(ne=[],ne.push(0);ne.length!==0;)if(he=ne[ne.length-1],ne.pop(),E[he])for(E[he]=!1,te=0;te<a.le;te++)y[he*a.le+te]&&ne.splice(0,0,te);if(0<x)for(b.reset();b.next();)a=b.value,E[a.component]&&--a.column;if(0>x)for(b.reset();b.next();)x=b.value,E[x.component]&&(x.column+=1)}function Ux(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 E=b.value;y[x-E.layer][E.index]=E}x=new Dn,$x(y,x);var te=null,ne=null,se=null,he=null,ge=(a.ve&1)!==0,ye=(a.ve&2)!==0,De=(a.ve&4)!==0,$e=(a.ve&8)!==0;for(ge&&(a.verticalAlignment(y,x,!0),te=L0(a,y,!0,!1)),y.reverse(),De&&(a.verticalAlignment(y,x,!1),se=L0(a,y,!1,!1)),b=Rr(y),E=b.next();!E.done;E=b.next())E.value.reverse();$e&&(a.verticalAlignment(y,x,!1),he=L0(a,y,!1,!0)),y.reverse(),ye&&(a.verticalAlignment(y,x,!0),ne=L0(a,y,!0,!0)),In(y),a.u(te,ne,se,he),a.network.vertexes.each(function(Qe){var rt=xn();ge&&rt.push(te.get(Qe)),ye&&rt.push(ne.get(Qe)),De&&rt.push(se.get(Qe)),$e&&rt.push(he.get(Qe)),rt.sort(function(Ot,Tt){return Ot-Tt});var ut=rt.length;ut=(rt[Math.floor((ut-1)/2)]+rt[Math.ceil((ut-1)/2)])/2,In(rt),Qe.zc=ut})}function $x(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var E=0,te=0,ne=a[b],se=a[b+1],he=0;te<se.length;he++){var ge=se[he];e:{if(ge.node===null){var ye=My(ge);if(0<ye.length){ye=ye[0].node===null;break e}}ye=!1}var De=ye;if(he===se.length-1||De){for(ye=ne.length-1,De&&(ye=My(ge)[0].index);te<=he;){if(ge=se[te],!ge.bo){De=[];for(var $e=Rr(ge.sourceEdgesArrayAccess),Qe=$e.next();!Qe.done;Qe=$e.next())Qe=Qe.value,Qe.valid&&De.push(Qe);ge.bo=De}for(ge=Rr(ge.bo),De=ge.next();!De.done;De=ge.next())De=De.value,$e=De.fromVertex.index,($e<E||$e>ye)&&y.add(De);te++}E=ye}}}oo.prototype.verticalAlignment=function(a,y,x){Kx(a),a=Rr(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=Rr(b.value);for(var te=b.next();!te.done;te=b.next()){te=te.value;var ne=x?My(te):Xx(te),se=ne.length;if(0<se){ne.sort(function(De,$e){return De.vi-$e.vi});var he=(se-1)/2;for(se=Math.floor(he),he=Math.ceil(he);se<=he;se++)if(te.align===te){var ge=ne[se],ye=void 0;ye=x?I0(ge,te):I0(te,ge),!y.contains(ye)&&E<ge.vi&&(ge.align=te,te.root=ge.root,te.align=ge.root,E=ge.vi)}}}}};function Kx(a){for(var y=0;y<a.length;y++)for(var x=a[y],b=0;b<x.length;b++){var E=x[b];E.root=E,E.align=E,E.Tz=y,E.vi=b}}function L0(a,y,x,b){for(var E=a.K===90||a.K===270,te=Rr(y),ne=te.next();!ne.done;ne=te.next()){var se=Rr(ne.value);for(ne=se.next();!ne.done;ne=se.next())ne=ne.value,ne.sd=ne,ne.shift=1/0,ne.zc=NaN,ne.qg=0}for(ne=a.K===90||a.K===270,te=Rr(y),se=te.next();!se.done;se=te.next()){se=Rr(se.value);for(var he=se.next();!he.done;he=se.next())if(he=he.value,he.root===he){for(var ge=0,ye=he;ye.align!==he;){var De=ye.align,$e=ne?ye.width:ye.height,Qe=ne?De.width:De.height;if(x){var rt=I0(ye,De),ut=rt.portFromPos,Ot=rt.portToPos;rt.link!==null&&(ye.node&&ye.node!==rt.link.fromNode&&(ut=ne?ye.focusX:ye.focusY),De.node&&De.node!==rt.link.toNode&&(Ot=ne?De.focusX:De.focusY))}else rt=I0(De,ye),ut=rt.portToPos,Ot=rt.portFromPos,rt.link!==null&&(ye.node&&ye.node!==rt.link.toNode&&(ut=ne?ye.focusX:ye.focusY),De.node&&De.node!==rt.link.fromNode&&(Ot=ne?De.focusX:De.focusY));$e=b?ye.qg+($e-ut)-(Qe-Ot):ye.qg+ut-Ot,De.qg=$e,ge=Math.min(ge,$e),ye=ye.align}ye=he;do ye.qg=ye.qg-ge,ye=ye.align;while(ye!==he)}}for(x=Rr(y),ne=x.next();!ne.done;ne=x.next())for(te=Rr(ne.value),ne=te.next();!ne.done;ne=te.next())ne=ne.value,ne.root===ne&&nx(a,ne,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(ne=y[x][0],ne.sd===ne)){ne.sd.shift===1/0&&(ne.sd.shift=0),ne=x,se=0;do{for(te=y[ne][se];te.align!==te.root;)te=te.align,ne++,0<te.vi&&(se=rx(te,y),se.sd.shift=Math.min(se.sd.shift,te.sd.shift+te.zc+te.qg-(se.zc+se.qg+(E?se.width:se.height)+a.columnSpacing)));se=te.vi+1}while(ne<y.length&&se<y[ne].length&&te.sd===y[ne][se].sd)}for(a=new dr,y=Rr(y),ne=y.next();!ne.done;ne=y.next())for(x=Rr(ne.value),ne=x.next();!ne.done;ne=x.next())ne=ne.value,ne.zc=ne.zc+ne.sd.shift+ne.qg,te=E?ne.width:ne.height,a.add(ne,b?-ne.zc-te:ne.zc);return a}function nx(a,y,x){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var E=rx(b,x),te=E.root;nx(a,te,x),y.sd===y&&(y.sd=te.sd);var ne=a.K===90||a.K===270?E.width:E.height;y.sd===te.sd&&(y.zc=Math.max(y.zc,te.zc+E.qg+ne-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 rx(a,y){var x=a.Tz;return a=a.vi,1>a&&Zt("Could not determine previous vertex in layer"),y[x][a-1]}oo.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=xn(),E=xn(),te=1/0,ne=0;4>ne;ne++)if(y[ne]){var se=Zx(this,y[ne],b,E,ne);se<te&&(x=ne,te=se)}for(te={},ne=0;4>ne;te={delta:te.delta},ne++)y[ne]&&(te.delta=ne===0||ne===2?b[x]-b[ne]:E[x]-E[ne],te.delta!==0&&y[ne].each(function(he){return function(ge){ge.value+=he.delta}}(te)));In(b),In(E)};function Zx(a,y,x,b,E){if(!y||y.count===0)return x[E]=0,b[E]=0,1/0;var te=1/0,ne=-1/0;return y.each(function(se){var he=se.key;se=se.value,he=a.K===90||a.K===270?he.width:he.height,se<te&&(te=se),se+he>ne&&(ne=se+he)}),x[E]=te,b[E]=ne,ne-te}oo.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=k0(this,!0),y=k0(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 k0(a,y){return a.K===270?y?ua:Ra:a.K===90?y?Ra:ua:a.K===180?y?Pa:$a:y?$a:Pa}oo.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var b=0;b<=this.Ia;b++){var E=x;0>=this.he[b]+this.Ld[b]&&(E=0),0<b&&(y+=E/2),this.K===90||this.K===0?(y+=this.Ld[b],this.Kd[b]=y,y+=this.he[b]):(y+=this.he[b],this.Kd[b]=y,y+=this.Ld[b]),b<this.Ia&&(y+=E/2),this.Ta[b]=y}for(x=y,y=this.arrangementOrigin,b=0;b<=this.Ia;b++)this.K===270?this.Kd[b]=y.y+this.Kd[b]:this.K===90?(this.Kd[b]=y.y+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]):this.K===180?this.Kd[b]=y.x+this.Kd[b]:(this.Kd[b]=y.x+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]);x=this.ve!==0,a.reset(),b=this.K===270||this.K===90;for(var te=1/0,ne=E=1/0,se=-1/0;a.next();){var he=a.value,ge=he.layer,ye=he.column|0;b?(ne=y.x+this.kc*ye,ge=this.Kd[ge]):(ne=this.Kd[ge],ge=y.y+this.kc*ye),he.centerX=ne,he.centerY=ge,x&&isFinite(he.zc)&&(b?he.node?he.x=y.x+he.zc:he.centerX=y.x+he.zc:he.node?he.y=y.y+he.zc:he.centerY=y.y+he.zc),te=Math.min(he.x,te),E=Math.min(he.y,E),b?(ne=te,se=Math.max(se,he.bounds.right)):(ne=E,se=Math.max(se,he.bounds.bottom))}for(this.xw=se-ne,te=y.x-te,y=y.y-E,this.Rf=new Lt(x&&b?0:te,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=te,x.y+=y,x.commit()},oo.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 Tn(0,0,x,Math.abs(this.Ta[0]))):y.push(new Tn(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new Tn(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new Tn(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new Tn(0,0,Math.abs(this.Ta[0]),x)):y.push(new Tn(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new Tn(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new Tn(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},oo.prototype.commitLayers=function(){},oo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var x=a.value;if(y=x.link,y!==null){y.uh();var b=y,E=b.fromNode,te=b.toNode,ne=b.fromPort,se=b.toPort;if(E!==null){var he=E.findVisibleNode();he!==null&&he!==E&&(E=he,ne=he.port)}te!==null&&(he=te.findVisibleNode(),he!==null&&he!==te&&(te=he,se=he.port));var ge=y.computeSpot(!0,ne);he=y.computeSpot(!1,se);var ye=x.fromVertex,De=x.toVertex;if(x.valid)y.curve===Yl&&y.pointsCount===4&&(ye.column===De.column&&this.alignOption===0?(x=y.getLinkPoint(E,ne,ge,!0,!1,te,se),se=y.getLinkPoint(te,se,he,!1,!1,E,ne),x.w()||x.set(E.actualBounds.center),se.w()||se.set(te.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+se.x)/3,(2*x.y+se.y)/3),y.yf((x.x+2*se.x)/3,(x.y+2*se.y)/3),y.yf(se.x,se.y)):(x=b=!1,ne!==null&&ge===oa&&(b=!0),se!==null&&he===oa&&(x=!0),(b||x)&&(he=null,b&&(he=y.getLinkPointFromPoint(E,ne,ne.ga(Di),y.i(3),!0),he.w()||he.set(E.actualBounds.center),y.L(0,he.x,he.y)),E=null,x&&(E=y.getLinkPointFromPoint(te,se,se.ga(Di),y.i(0),!1),E.w()||E.set(te.actualBounds.center),y.L(3,E.x,E.y)),he&&(te=y.i(2),y.L(1,(2*he.x+te.x)/3,(2*he.y+te.y)/3)),E&&(te=y.i(1),y.L(2,(2*E.x+te.x)/3,(2*E.y+te.y)/3))))),y.zf();else if(ye.layer===De.layer)y.zf();else{var $e=!1,Qe=!1,rt=this.ie,ut=y.firstPickIndex+1;if(y.isOrthogonal){Qe=!0;var Ot=y.pointsCount;4<Ot&&y.points.removeRange(2,Ot-3)}else if(y.curve===Yl)$e=!0,Ot=y.pointsCount,4<Ot&&y.points.removeRange(2,Ot-3),Ot===4&&(ut=2);else{Ot=y.pointsCount;var Tt=ge===oa,Bt=he===oa;2<Ot&&Tt&&Bt?y.points.removeRange(1,Ot-2):3<Ot&&Tt&&!Bt?y.points.removeRange(1,Ot-3):3<Ot&&!Tt&&Bt?y.points.removeRange(2,Ot-2):4<Ot&&!Tt&&!Bt&&y.points.removeRange(2,Ot-3)}if(x.rev){for(;De!==null&&ye!==De;){var _t=Ot=null;for(Tt=De.sourceEdges.iterator;Tt.next()&&(Bt=Tt.value,Bt.link!==x.link||(Ot=Bt.fromVertex,_t=Bt.toVertex,Ot.node!==null)););if(Ot===null)break;if(Ot!==ye){Tt=y.i(ut-1).x,Bt=y.i(ut-1).y;var Ht=Ot.centerX,Vt=Ot.centerY;if(Qe)this.K===180||this.K===0?ut===y.firstPickIndex+1?(y.m(ut++,Tt,Bt),y.m(ut++,Tt,Vt)):(_t!==null?_t.centerY:Bt)!==Vt&&(_t=this.Ta[Ot.layer-1]+this.Rf.x,y.m(ut++,_t,Bt),y.m(ut++,_t,Vt)):ut===y.firstPickIndex+1?(y.m(ut++,Tt,Bt),y.m(ut++,Ht,Bt)):(_t!==null?_t.centerX:Tt)!==Ht&&(_t=this.Ta[Ot.layer-1]+this.Rf.y,y.m(ut++,Tt,_t),y.m(ut++,Ht,_t));else if(ut===y.firstPickIndex+1){_t=Math.max(10,this.he[De.layer]);var hn=Math.max(10,this.Ld[De.layer]);if($e)this.K===180?Ht<=De.bounds.x?(De=De.bounds.x,y.m(ut++,De-_t,Vt),y.m(ut++,De,Vt),y.m(ut++,De+hn,Vt)):(y.m(ut++,Ht-_t,Vt),y.m(ut++,Ht,Vt),y.m(ut++,Ht+hn,Vt)):this.K===90?Vt>=De.bounds.bottom?(De=De.bounds.y+De.bounds.height,y.m(ut++,Ht,De+hn),y.m(ut++,Ht,De),y.m(ut++,Ht,De-_t)):(y.m(ut++,Ht,Vt+hn),y.m(ut++,Ht,Vt),y.m(ut++,Ht,Vt-_t)):this.K===270?Vt<=De.bounds.y?(De=De.bounds.y,y.m(ut++,Ht,De-_t),y.m(ut++,Ht,De),y.m(ut++,Ht,De+hn)):(y.m(ut++,Ht,Vt-_t),y.m(ut++,Ht,Vt),y.m(ut++,Ht,Vt+hn)):this.K===0&&(Ht>=De.bounds.right?(De=De.bounds.x+De.bounds.width,y.m(ut++,De+hn,Vt),y.m(ut++,De,Vt),y.m(ut++,De-_t,Vt)):(y.m(ut++,Ht+hn,Vt),y.m(ut++,Ht,Vt),y.m(ut++,Ht-_t,Vt)));else{y.m(ut++,Tt,Bt);var rr=0;this.K===180||this.K===0?((this.K===180?Ht>=De.bounds.right:Ht<=De.bounds.x)&&(rr=(this.K===0?-_t:hn)/2),y.m(ut++,Tt+rr,Vt)):((this.K===270?Vt>=De.bounds.bottom:Vt<=De.bounds.y)&&(rr=(this.K===90?-_t:hn)/2),y.m(ut++,Ht,Bt+rr)),y.m(ut++,Ht,Vt)}}else _t=Math.max(10,this.he[Ot.layer]),hn=Math.max(10,this.Ld[Ot.layer]),$e?this.K===180?(y.m(ut++,Ht-_t-rt,Vt),y.m(ut++,Math.min(Ht-_t+rt/2,Ht),Vt),y.m(ut++,Ht,Vt),y.m(ut++,Ht,Vt),y.m(ut++,Math.max(Ht+hn-rt/2,Ht),Vt),y.m(ut++,Ht+hn+rt,Vt)):this.K===90?(y.m(ut++,Ht,Vt+hn+rt),y.m(ut++,Ht,Math.max(Vt+hn-rt/2,Vt)),y.m(ut++,Ht,Vt),y.m(ut++,Ht,Vt),y.m(ut++,Ht,Math.min(Vt-_t+rt/2,Vt)),y.m(ut++,Ht,Vt-_t-rt)):this.K===270?(y.m(ut++,Ht,Vt-_t-rt),y.m(ut++,Ht,Math.min(Vt-_t+rt/2,Vt)),y.m(ut++,Ht,Vt),y.m(ut++,Ht,Vt),y.m(ut++,Ht,Math.max(Vt+hn-rt/2,Vt)),y.m(ut++,Ht,Vt+hn+rt)):(y.m(ut++,Ht+hn+rt,Vt),y.m(ut++,Math.max(Ht+hn-rt/2,Ht),Vt),y.m(ut++,Ht,Vt),y.m(ut++,Ht,Vt),y.m(ut++,Math.min(Ht-_t+rt/2,Ht),Vt),y.m(ut++,Ht-_t-rt,Vt)):y.m(ut++,Ht,Vt)}De=Ot}(se===null||ge!==oa||Qe)&&(Tt=y.i(ut-1).x,Bt=y.i(ut-1).y,Ht=y.i(ut).x,Vt=y.i(ut).y,Qe?(rt=this.Ld[ye.layer],this.K===180||this.K===0?(Qe=Bt,Qe>=ye.bounds.y&&Qe<=ye.bounds.bottom&&(this.K===180?Ht>=ye.bounds.x:Ht<=ye.bounds.right)&&(De=ye.centerX+(this.K===180?-rt:rt),Qe<ye.bounds.y+ye.bounds.height/2?Qe=ye.bounds.y-this.kc/2:Qe=ye.bounds.bottom+this.kc/2,y.m(ut++,De,Bt),y.m(ut++,De,Qe)),y.m(ut++,Ht,Qe)):(Qe=Tt,Qe>=ye.bounds.x&&Qe<=ye.bounds.right&&(this.K===270?Vt>=ye.bounds.y:Vt<=ye.bounds.bottom)&&(De=ye.centerY+(this.K===270?-rt:rt),Qe<ye.bounds.x+ye.bounds.width/2?Qe=ye.bounds.x-this.kc/2:Qe=ye.bounds.right+this.kc/2,y.m(ut++,Tt,De),y.m(ut++,Qe,De)),y.m(ut++,Qe,Vt)),y.m(ut++,Ht,Vt)):$e?(_t=Math.max(10,this.he[ye.layer]),hn=Math.max(10,this.Ld[ye.layer]),this.K===180&&Ht>=ye.bounds.x?(De=ye.bounds.x+ye.bounds.width,y.L(ut-2,De,Bt),y.L(ut-1,De+hn,Bt)):this.K===90&&Vt<=ye.bounds.bottom?(De=ye.bounds.y,y.L(ut-2,Tt,De),y.L(ut-1,Tt,De-_t)):this.K===270&&Vt>=ye.bounds.y?(De=ye.bounds.y+ye.bounds.height,y.L(ut-2,Tt,De),y.L(ut-1,Tt,De+hn)):this.K===0&&Ht<=ye.bounds.right&&(De=ye.bounds.x,y.L(ut-2,De,Bt),y.L(ut-1,De-_t,Bt))):(_t=Math.max(10,this.he[ye.layer]),hn=Math.max(10,this.Ld[ye.layer]),Qe=0,this.K===180||this.K===0?((this.K===180?Ht<=ye.bounds.x:Ht>=ye.bounds.right)&&(Qe=(this.K===0?hn:-_t)/2),y.m(ut++,Ht+Qe,Bt)):((this.K===270?Vt<=ye.bounds.y:Vt>=ye.bounds.bottom)&&(Qe=(this.K===90?hn:-_t)/2),y.m(ut++,Tt,Vt+Qe)),y.m(ut++,Ht,Vt)))}else{for(;ye!==null&&ye!==De;){for(_t=Ot=null,ye=ye.destinationEdges.iterator;ye.next()&&(Tt=ye.value,Tt.link!==x.link||(Ot=Tt.toVertex,_t=Tt.fromVertex,_t.node!==null&&(_t=null),Ot.node!==null)););if(Ot===null)break;Ot!==De&&(Tt=y.i(ut-1).x,Bt=y.i(ut-1).y,Ht=Ot.centerX,Vt=Ot.centerY,Qe?this.K===180||this.K===0?(_t!==null?_t.centerY:Bt)!==Vt&&(_t=this.Ta[Ot.layer]+this.Rf.x,ut===y.firstPickIndex+1&&(_t=this.K===0?Math.max(_t,Tt):Math.min(_t,Tt)),y.m(ut++,_t,Bt),y.m(ut++,_t,Vt)):(_t!==null?_t.centerX:Tt)!==Ht&&(_t=this.Ta[Ot.layer]+this.Rf.y,ut===y.firstPickIndex+1&&(_t=this.K===90?Math.max(_t,Bt):Math.min(_t,Bt)),y.m(ut++,Tt,_t),y.m(ut++,Ht,_t)):(_t=Math.max(10,this.he[Ot.layer]),hn=Math.max(10,this.Ld[Ot.layer]),$e?this.K===180?(y.m(ut++,Ht+hn+rt,Vt),y.m(ut++,Math.max(Ht+hn-rt/2,Ht),Vt),y.m(ut++,Ht,Vt),y.m(ut++,Ht,Vt),y.m(ut++,Math.min(Ht-_t+rt/2,Ht),Vt),y.m(ut++,Ht-_t-rt,Vt)):this.K===90?(y.m(ut++,Ht,Vt-_t-rt),y.m(ut++,Ht,Math.min(Vt-_t+rt/2,Vt)),y.m(ut++,Ht,Vt),y.m(ut++,Ht,Vt),y.m(ut++,Ht,Math.max(Vt+hn-rt/2,Vt)),y.m(ut++,Ht,Vt+hn+rt)):this.K===270?(y.m(ut++,Ht,Vt+hn+rt),y.m(ut++,Ht,Math.max(Vt+hn-rt/2,Vt)),y.m(ut++,Ht,Vt),y.m(ut++,Ht,Vt),y.m(ut++,Ht,Math.min(Vt-_t+rt/2,Vt)),y.m(ut++,Ht,Vt-_t-rt)):(y.m(ut++,Ht-_t-rt,Vt),y.m(ut++,Math.min(Ht-_t+rt/2,Ht),Vt),y.m(ut++,Ht,Vt),y.m(ut++,Ht,Vt),y.m(ut++,Math.max(Ht+hn-rt/2,Ht),Vt),y.m(ut++,Ht+hn+rt,Vt)):this.K===180?(y.m(ut++,Ht+hn,Vt),y.m(ut++,Ht-_t,Vt)):this.K===90?(y.m(ut++,Ht,Vt-_t),y.m(ut++,Ht,Vt+hn)):this.K===270?(y.m(ut++,Ht,Vt+hn),y.m(ut++,Ht,Vt-_t)):(y.m(ut++,Ht-_t,Vt),y.m(ut++,Ht+hn,Vt)))),ye=Ot}Qe&&(Tt=y.i(ut-1).x,Bt=y.i(ut-1).y,Ht=y.i(ut).x,Vt=y.i(ut).y,this.K===180||this.K===0?Bt!==Vt&&(_t=this.K===0?Math.min(Math.max((Ht+Tt)/2,this.Ta[De.layer]+this.Rf.x),Ht):Math.max(Math.min((Ht+Tt)/2,this.Ta[De.layer]+this.Rf.x),Ht),y.m(ut++,_t,Bt),y.m(ut++,_t,Vt)):Tt!==Ht&&(_t=this.K===90?Math.min(Math.max((Vt+Bt)/2,this.Ta[De.layer]+this.Rf.y),Vt):Math.max(Math.min((Vt+Bt)/2,this.Ta[De.layer]+this.Rf.y),Vt),y.m(ut++,Tt,_t),y.m(ut++,Ht,_t)))}b!==null&&$e&&4<=y.pointsCount&&(ne!==null&&(ne=ge===oa?y.getLinkPointFromPoint(E,ne,ne.ga(Di),y.i(3),!0):y.i(0),ge===oa&&(ge=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ne.x+ge.x)/2,ge.y),y.L(2,b.x,(ge.y+b.y)/2)):(y.L(1,ge.x,(ne.y+ge.y)/2),y.L(2,(ge.x+b.x)/2,b.y))),ne.w()||ne.set(E.actualBounds.center),y.L(0,ne.x,ne.y)),se!==null&&(E=he===oa?y.getLinkPointFromPoint(te,se,se.ga(Di),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),he===oa&&(se=y.i(y.pointsCount-3),he=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+se.x)/2,se.y),y.L(y.pointsCount-2,he.x,(se.y+he.y)/2)):(y.L(y.pointsCount-2,se.x,(E.y+se.y)/2),y.L(y.pointsCount-3,(se.x+he.x)/2,he.y))),E.w()||E.set(te.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},oo.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new An,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,x=[],a=a.iterator;a.next();){var b=a.value;if(b!==null&&b.isOrthogonal)for(var E=2;E<b.pointsCount-3;E++){var te=b.i(E),ne=b.i(E+1);if(this.B(te.y,ne.y)&&!this.B(te.x,ne.x)){var se=new hd;se.layer=Math.floor(te.y/2);var he=b.i(0),ge=b.i(b.pointsCount-1);if(se.first=he.x*he.x+he.y,se.jc=ge.x*ge.x+ge.y,se.rd=Math.min(te.x,ne.x),se.Ic=Math.max(te.x,ne.x),se.index=E,se.link=b,E+2<b.pointsCount){he=b.i(E-1),ge=b.i(E+2);var ye=0;he.y<te.y?ye=ge.y<te.y?3:te.x<ne.x?2:1:he.y>te.y&&(ye=ge.y>te.y?0:ne.x<te.x?2:1),se.j=ye}x.push(se)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(te=x[a].layer,b=a+1;b<x.length&&x[b].layer===te;)b++;if(1<b-a)for(te=a;te<b;){for(ne=x[te].Ic,E=a+1;E<b&&x[E].rd<ne;)ne=Math.max(ne,x[E].Ic),E++;if(ne=E-te,1<ne){for(this.zi(x,this.Js,te,te+ne),ye=1,se=x[te].jc,he=te;he<E;he++)ge=x[he],ge.jc!==se&&(ye++,se=ge.jc);this.zi(x,this.Ux,te,te+ne);var De=1;for(se=x[te].first,he=te;he<E;he++)ge=x[he],ge.first!==se&&(De++,se=ge.first);for(he=!0,ge=De,ye<De?(he=!1,ge=ye,se=x[te].jc,this.zi(x,this.Js,te,te+ne)):se=x[te].first,ye=0,De=te;De<E;De++){var $e=x[De];(he?$e.first:$e.jc)!==se&&(ye++,se=he?$e.first:$e.jc);var Qe=$e.link;te=Qe.i($e.index),ne=Qe.i($e.index+1);var rt=this.linkSpacing*(ye-(ge-1)/2);y++,Qe.uh(),Qe.L($e.index,te.x,te.y+rt),Qe.L($e.index+1,ne.x,ne.y+rt),Qe.zf()}}te=E}a=b}}else{for(y=0,x=[],a=a.iterator;a.next();)if(b=a.value,b!==null&&b.isOrthogonal)for(E=2;E<b.pointsCount-3;E++)te=b.i(E),ne=b.i(E+1),this.B(te.x,ne.x)&&!this.B(te.y,ne.y)&&(se=new hd,se.layer=Math.floor(te.x/2),he=b.i(0),ge=b.i(b.pointsCount-1),se.first=he.x+he.y*he.y,se.jc=ge.x+ge.y*ge.y,se.rd=Math.min(te.y,ne.y),se.Ic=Math.max(te.y,ne.y),se.index=E,se.link=b,E+2<b.pointsCount&&(he=b.i(E-1),ge=b.i(E+2),ye=0,he.x<te.x?ye=ge.x<te.x?3:te.y<ne.y?2:1:he.x>te.x&&(ye=ge.x>te.x?0:ne.y<te.y?2:1),se.j=ye),x.push(se));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(te=x[a].layer,b=a+1;b<x.length&&x[b].layer===te;)b++;if(1<b-a)for(te=a;te<b;){for(ne=x[te].Ic,E=a+1;E<b&&x[E].rd<ne;)ne=Math.max(ne,x[E].Ic),E++;if(ne=E-te,1<ne){for(this.zi(x,this.Js,te,te+ne),ye=1,se=x[te].jc,he=te;he<E;he++)ge=x[he],ge.jc!==se&&(ye++,se=ge.jc);for(this.zi(x,this.Ux,te,te+ne),De=1,se=x[te].first,he=te;he<E;he++)ge=x[he],ge.first!==se&&(De++,se=ge.first);for(he=!0,ge=De,ye<De?(he=!1,ge=ye,se=x[te].jc,this.zi(x,this.Js,te,te+ne)):se=x[te].first,ye=0,De=te;De<E;De++)$e=x[De],(he?$e.first:$e.jc)!==se&&(ye++,se=he?$e.first:$e.jc),Qe=$e.link,te=Qe.i($e.index),ne=Qe.i($e.index+1),rt=this.linkSpacing*(ye-(ge-1)/2),y++,Qe.uh(),Qe.L($e.index,te.x+rt,te.y),Qe.L($e.index+1,ne.x+rt,ne.y),Qe.zf()}te=E}a=b}}}},it=oo.prototype,it.Vx=function(a,y){return a instanceof hd&&y instanceof hd&&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},it.Ux=function(a,y){return a instanceof hd&&y instanceof hd&&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},it.Js=function(a,y){return a instanceof hd&&y instanceof hd&&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},it.B=function(a,y){return a-=y,-1<a&&1>a},it.zi=function(a,y,x,b){var E=a.length,te=b-x;if(!(1>=te))if((0>x||x>=E-1)&&Zt("not in range 0 <= from < length: "+x),te===2)b=a[x],E=a[x+1],0<y(b,E)&&(a[x]=E,a[x+1]=b);else if(x===0)if(b>=E)a.sort(y);else for(x=a.slice(0,b),x.sort(y),y=0;y<b;y++)a[y]=x[y];else if(b>=E)for(b=a.slice(x),b.sort(y),y=x;y<E;y++)a[y]=b[y-x];else for(E=a.slice(x,b),E.sort(y),y=x;y<b;y++)a[y]=E[y-x]};function ud(a,y){var x=a.tc[y];if(x>=a.He.length){for(var b=[],E=0;E<a.He.length;E++)b[E]=a.He[E];a.He=b}for(a.He[x]===void 0||a.He[x]===null?b=[]:(b=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],b[x.index]=x;return b}function cd(a,y,x){a.He[a.tc[y]]=x}jt.Object.defineProperties(oo.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()):Zt("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==xy&&a!==N0&&a!==Ug||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==O0&&a!==wy&&a!==by||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==A0&&a!==Py&&a!==Cy||(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!==Ey&&a!==j0&&a!==Ty||(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 N0=new en(oo,"CycleDepthFirst",0),xy=new en(oo,"CycleGreedy",1),Ug=new en(oo,"CycleFromLayers",2),O0=new en(oo,"LayerOptimalLinkLength",0),wy=new en(oo,"LayerLongestPathSink",1),by=new en(oo,"LayerLongestPathSource",2),A0=new en(oo,"InitDepthFirstOut",0),Py=new en(oo,"InitDepthFirstIn",1),Cy=new en(oo,"InitNaive",2),Ey=new en(oo,"AggressiveNone",0),j0=new en(oo,"AggressiveLess",1),Ty=new en(oo,"AggressiveMore",2),Vx=8;oo.className="LayeredDigraphLayout",oo.CycleDepthFirst=N0,oo.CycleGreedy=xy,oo.CycleFromLayers=Ug,oo.LayerOptimalLinkLength=O0,oo.LayerLongestPathSink=wy,oo.LayerLongestPathSource=by,oo.InitDepthFirstOut=A0,oo.InitDepthFirstIn=Py,oo.InitNaive=Cy,oo.AggressiveNone=Ey,oo.AggressiveLess=j0,oo.AggressiveMore=Ty,oo.PackNone=0,oo.PackExpand=1,oo.PackStraighten=2,oo.PackMedian=4,oo.PackAll=15,oo.AlignNone=0,oo.AlignUpperLeft=1,oo.AlignUpperRight=2,oo.AlignLowerLeft=4,oo.AlignLowerRight=8,oo.AlignAll=15;function hd(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}hd.className="SegInfo";function Op(a){xo.call(this,a)}Jt(Op,xo),Op.prototype.createVertex=function(){return new du(this)},Op.prototype.createEdge=function(){return new $g(this)},Op.className="LayeredDigraphNetwork";function du(a){Ga.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}Jt(du,Ga);function ix(a,y){return a.index-y.index}function I0(a,y){if(!a.$n){for(var x=[],b=Rr(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=Rr(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Zt("Unable to find destination edge to given vertex")}function My(a){if(!a.co){for(var y=[],x=Rr(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(ix),a.co=y}return a.co}function Xx(a){if(!a.ao){for(var y=[],x=Rr(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(ix),a.ao=y}return a.ao}du.prototype.Cl=function(a){Ga.prototype.Cl.call(this,a),this.bo=this.co=null},du.prototype.Kl=function(a){Ga.prototype.Kl.call(this,a),this.bo=this.co=null},du.prototype.zl=function(a){Ga.prototype.zl.call(this,a),this.$n=this.ao=null},du.prototype.Jl=function(a){Ga.prototype.Jl.call(this,a),this.$n=this.ao=null},jt.Object.defineProperties(du.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)}}}),du.prototype.deleteDestinationEdge=du.prototype.Jl,du.prototype.addDestinationEdge=du.prototype.zl,du.prototype.deleteSourceEdge=du.prototype.Kl,du.prototype.addSourceEdge=du.prototype.Cl,du.className="LayeredDigraphVertex";function $g(a){Ll.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Jt($g,Ll),jt.Object.defineProperties($g.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)}}}),$g.className="LayeredDigraphEdge";function bi(a){Ro.call(this),this.Ub=new Dn,this.Wn=R0,this.ud=Ic,this.vo=z0,this.Bq=Ry,this.$v=[],this.td=!0,this.Rb=H0,this.$d=new Xn(10,10).freeze();var y=new If(this);this.W=new wu(y),this.Y=new wu(y),this.ru=[],a&&Object.assign(this,a)}Jt(bi,Ro),bi.prototype.cloneProtected=function(a){Ro.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)},bi.prototype.qb=function(a){a.classType===bi?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:Zt("Unknown enum value: "+a):Ro.prototype.qb.call(this,a)},bi.prototype.createNetwork=function(){return new If(this)},bi.prototype.makeNetwork=function(a){function y(b){if(b instanceof sr)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof Vn){var E=b.fromNode;return E===null||E.isLinkLabel||E.category==="Comment"?!1:(b=b.toNode,!(b===null||b.isLinkLabel||b.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof cn?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof ei?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},bi.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==G0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof cn&&(y=a),this.path===R0&&y!==null?this.ud=y.isTreePathToChildren?Ic:Af:this.ud=this.path===R0?Ic: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 Dn,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof sr?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof wu&&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,Ly(this,y));for(y=this.network.vertexes,a=null;a=Yx(y),0<a.count;)y=ox(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,Ly(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof wu&&sx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof wu&&lx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof wu&&ux(this,y);if(this.Cu(),this.layerStyle===W0){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var b=x.parent;b===null&&(b=x),b=b.angle===0||b.angle===180;var E=a[x.level];E===void 0&&(E=0),a[x.level]=Math.max(E,b?x.width:x.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)x=y.value,b=x.parent,b===null&&(b=x),b.angle===0||b.angle===180?(b.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(b.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===_y)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,b=-1,E=0;E<y.children.length;E++){var te=y.children[E];b=Math.max(b,x?te.width:te.height)}if(0<=b)for(E=0;E<y.children.length;E++)te=y.children[E],x?(y.angle===180&&(te.focusX+=b-te.width),te.width=b):(y.angle===270&&(te.focusY+=b-te.height),te.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof wu&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Dn,this.isValidLayout=!0};function Yx(a){var y=new Dn;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}bi.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Ic:x.sourceEdges.count===0&&this.Ub.add(x);break;case Af:x.destinationEdges.count===0&&this.Ub.add(x);break;default:Zt("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=ox(this,a),a!==null&&this.Ub.add(a))};function ox(a,y){var x=999999,b=null;for(y=y.iterator;y.next();){var E=y.value;switch(a.ud){case Ic:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case Af:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:Zt("Unhandled path value "+a.ud.toString())}}return b}function Ly(a,y){if(y!==null){switch(a.ud){case Ic:if(0<y.destinationEdges.count){for(var x=new An,b=y.destinationVertexes;b.next();){var E=b.value;ax(a,y,E)&&x.add(E)}0<x.count&&(y.children=x.Fa())}break;case Af:if(0<y.sourceEdges.count){for(x=new An,b=y.sourceVertexes;b.next();)E=b.value,ax(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:Zt("Unhandled path value"+a.ud.toString())}for(x=y.children,b=x.length,E=0;E<b;E++){var te=x[E];te.initialized=!0,te.level=y.level+1,te.parent=y,a.Ub.remove(te)}for(y=0;y<b;y++)Ly(a,x[y])}}function ax(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}bi.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,b=0,E=0;E<x.length;E++)x[E]===y&&b++;if(0<b){b=Array(x.length-b);for(var te=E=0;te<x.length;te++)x[te]!==y&&(b[E++]=x[te]);a.children=b}}};function sx(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===Bc&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,te=y.children,ne=te.length,se=0;se<ne;se++){var he=te[se];sx(a,he),x+=he.descendantCount+1,b=Math.max(b,he.maxChildrenCount),E=Math.max(E,he.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function Jx(a,y){switch(a.vo){default:case z0:return y.parent!==null?y.parent:a.W;case Fy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case Dy:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Iy:var x=!0;if(y.childrenCount===0)x=!1;else for(var b=y.children,E=b.length,te=0;te<E;te++)if(0<b[te].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}bi.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Jx(this,a)),a.parent!==null&&a.parent.alignment===Bc){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 lx(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,b=0;b<x;b++)lx(a,y[b])}}bi.prototype.assignTreeVertexValues=function(){};function ux(a,y){if(y!==null){y.alignment!==Bc&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)ux(a,y[b])}}bi.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Ap:break;case Zg:a.children.reverse();break;case Vg:a.children.sort(a.comparer);break;case Xg:a.children.sort(a.comparer),a.children.reverse();break;default:Zt("Unhandled sorting value "+a.sorting.toString())}},bi.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},bi.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=dd(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var te=0,ne=0,se=0,he=a.commentSpacing;if(a.node!==null)for(var ge=a.node.Mu();ge.next();){var ye=ge.value;ye.category==="Comment"&&ye.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ye),ye.Va(),ye=ye.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(te=Math.max(te,ye.width),ne+=ye.height+Math.abs(se)):(te+=ye.width+Math.abs(se),ne=Math.max(ne,ye.height)),se=he)}a.comments!==null&&(y&&!x||!E&&!b&&x||E&&b&&x?(te+=Math.abs(a.commentMargin),ne=Math.max(0,ne-a.height)):(ne+=Math.abs(a.commentMargin),te=Math.max(0,te-a.width)),E=Tn.allocAt(0,0,a.bounds.width+te,a.bounds.height+ne),a.bounds=E,Tn.free(E))};function dd(a){return a===Ah||a===Bc||a===jh||a===ih}function Kg(a){return a===Ah||a===Bc}function ky(a){var y=a.parent;if(y!==null){var x=y.alignment;if(dd(x)){if(Kg(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===jh)return!0}}return!1}bi.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,b=a.angle,E=0,te=!1;x!==null&&(E=x.angle,te=x.alignment,te=dd(te)),b=b===90||b===270,x=E===90||E===270;for(var ne=a.childrenCount===0,se=ky(a),he=0,ge=a.comments,ye=ge.length,De=Lt.alloc(),$e=0;$e<ye;$e++){var Qe=ge[$e],rt=Qe.measuredBounds;if(b&&!ne||!te&&!x&&ne||te&&x&&ne){if(135<E&&!te||x&&se)if(0<=a.commentMargin)for(De.h(a.bounds.x-a.commentMargin-rt.width,a.bounds.y+he),Qe.move(De),Qe=Qe.Sd();Qe.next();){var ut=Qe.value;ut.fromSpot=Pa,ut.toSpot=$a}else for(De.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+he),Qe.move(De),Qe=Qe.Sd();Qe.next();)ut=Qe.value,ut.fromSpot=$a,ut.toSpot=Pa;else if(0<=a.commentMargin)for(De.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+he),Qe.move(De),Qe=Qe.Sd();Qe.next();)ut=Qe.value,ut.fromSpot=$a,ut.toSpot=Pa;else for(De.h(a.bounds.x+a.commentMargin-rt.width,a.bounds.y+he),Qe.move(De),Qe=Qe.Sd();Qe.next();)ut=Qe.value,ut.fromSpot=Pa,ut.toSpot=$a;he=0<=a.commentSpacing?he+(rt.height+a.commentSpacing):he+(a.commentSpacing-rt.height)}else{if(135<E&&!te||!x&&se)if(0<=a.commentMargin)for(De.h(a.bounds.x+he,a.bounds.y-a.commentMargin-rt.height),Qe.move(De),Qe=Qe.Sd();Qe.next();)ut=Qe.value,ut.fromSpot=ua,ut.toSpot=Ra;else for(De.h(a.bounds.x+he,a.bounds.y+2*a.focus.y-a.commentMargin),Qe.move(De),Qe=Qe.Sd();Qe.next();)ut=Qe.value,ut.fromSpot=Ra,ut.toSpot=ua;else if(0<=a.commentMargin)for(De.h(a.bounds.x+he,a.bounds.y+2*a.focus.y+a.commentMargin),Qe.move(De),Qe=Qe.Sd();Qe.next();)ut=Qe.value,ut.fromSpot=Ra,ut.toSpot=ua;else for(De.h(a.bounds.x+he,a.bounds.y+a.commentMargin-rt.height),Qe.move(De),Qe=Qe.Sd();Qe.next();)ut=Qe.value,ut.fromSpot=ua,ut.toSpot=Ra;he=0<=a.commentSpacing?he+(rt.width+a.commentSpacing):he+(a.commentSpacing-rt.width)}}if(Lt.free(De),y=he-a.commentSpacing-(b?y.height:y.width),this.ud===Ic)for(a=a.destinationEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.toEndSegmentLength=0<y?y:NaN)}},bi.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 _0:cx(this,a);break;case Yg:if(a.alignment===Bc)cx(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=dd(x)),b=ky(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!b?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&b?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var E=Du(a);y=E===90||E===270;var te=0,ne=a.children,se=ne.length;for(x=0;x<se;x++)b=ne[x],te=Math.max(te,y?b.Da.width:b.Da.height);var he=a.alignment;b=he===Dc;var ge=he===Fc,ye=dd(he),De=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var $e=a.nodeSpacing,Qe=this.computeNodeIndent(a),rt=a.rowSpacing,ut=0;(b||ge||a.hm||a.im&&a.maxGenerationCount===1)&&(ut=Math.max(0,a.rowIndent)),b=a.width;var Ot=a.height,Tt=0,Bt=0,_t=0,Ht=null,Vt=null,hn=0,rr=0,fr=0,cr=0,Zn=0,Bn=0,Jr=0,Wr=0;if(ye&&!Kg(he)&&135<E&&ne.reverse(),Kg(he))if(1<se)for(var $i=0;$i<se;$i++)$i%2===0&&$i!==se-1&&(Wr=Math.max(Wr,y?ne[$i].Da.width:ne[$i].Da.height));else se===1&&(Wr=y?ne[0].Da.width:ne[0].Da.height);if(ye){switch(he){case Ah:Bt=135>E?hx(this,a,ne,Wr,Tt,Bt):dx(this,a,ne,Wr,Tt,Bt),Wr=Bt.x,Tt=Bt.width,Bt=Bt.height;break;case jh:for(Ht=0;Ht<se;Ht++)Vt=ne[Ht],De=Vt.Da,_t=Bn===0?0:rt,y?(Vt.S.h(te-De.width,cr+_t),Tt=Math.max(Tt,De.width),Bt=Math.max(Bt,cr+_t+De.height),cr+=_t+De.height):(Vt.S.h(fr+_t,te-De.height),Tt=Math.max(Tt,fr+_t+De.width),Bt=Math.max(Bt,De.height),fr+=_t+De.width),Bn++;break;case ih:for(Ht=0;Ht<se;Ht++)Vt=ne[Ht],te=Vt.Da,De=Bn===0?0:rt,y?(Vt.S.h($e/2+a.focus.x,cr+De),Tt=Math.max(Tt,te.width),Bt=Math.max(Bt,cr+De+te.height),cr+=De+te.height):(Vt.S.h(fr+De,$e/2+a.focus.y),Tt=Math.max(Tt,fr+De+te.width),Bt=Math.max(Bt,te.height),fr+=De+te.width),Bn++}Ht=vl(this,2),Vt=vl(this,2),y?(Ht[0].h(0,0),Ht[1].h(0,Bt),Vt[0].h(Tt,0)):(Ht[0].h(0,0),Ht[1].h(Tt,0),Vt[0].h(0,Bt)),Vt[1].h(Tt,Bt)}else for($i=0;$i<se;$i++){var vo=ne[$i],Ja=vo.Da;if(y){0<De&&0<Bn&&fr+$e+Ja.width>De&&(fr<te&&Jd(a,he,te-fr,0,Jr,$i-1),Zn++,Bn=0,Jr=$i,_t=Bt,fr=0,cr=135<E?-Bt-rt:Bt+rt),F0(this,vo,0,cr);var ns=0;if(Bn===0)Ht=vo.Yo,Vt=vo.kp,hn=Ja.width,rr=Ja.height,(Ht===null||Vt===null||E!==Du(vo))&&(Ht=vl(this,2),Vt=vl(this,2),Ht[0].h(0,0),Ht[1].h(0,rr),Vt[0].h(hn,0),Vt[1].h(hn,rr));else{var Fs=xn();rr=fx(this,a,vo,Ht,Vt,hn,rr,Fs),ns=rr.x,Ht=Fs[0],Vt=Fs[1],hn=rr.width,rr=rr.height,In(Fs),fr<Ja.width&&0>ns&&(Of(a,-ns,0,Jr,$i-1),B0(Ht,-ns,0),B0(Vt,-ns,0),ns=0)}vo.S.h(ns,cr),Tt=Math.max(Tt,hn),Bt=Math.max(Bt,_t+(Zn===0?0:rt)+Ja.height),fr=hn}else 0<De&&0<Bn&&cr+$e+Ja.height>De&&(cr<te&&Jd(a,he,0,te-cr,Jr,$i-1),Zn++,Bn=0,Jr=$i,_t=Tt,cr=0,fr=135<E?-Tt-rt:Tt+rt),F0(this,vo,fr,0),ns=0,Bn===0?(Ht=vo.Yo,Vt=vo.kp,hn=Ja.width,rr=Ja.height,(Ht===null||Vt===null||E!==Du(vo))&&(Ht=vl(this,2),Vt=vl(this,2),Ht[0].h(0,0),Ht[1].h(hn,0),Vt[0].h(0,rr),Vt[1].h(hn,rr))):(Fs=xn(),rr=fx(this,a,vo,Ht,Vt,hn,rr,Fs),ns=rr.x,Ht=Fs[0],Vt=Fs[1],hn=rr.width,rr=rr.height,In(Fs),cr<Ja.height&&0>ns&&(Of(a,0,-ns,Jr,$i-1),B0(Ht,0,-ns),B0(Vt,0,-ns),ns=0)),vo.S.h(fr,ns),Bt=Math.max(Bt,rr),Tt=Math.max(Tt,_t+(Zn===0?0:rt)+Ja.width),cr=rr;Bn++}switch(0<Zn&&(y?(Bt+=Math.max(0,x),fr<Tt&&Jd(a,he,Tt-fr,0,Jr,se-1),0<ut&&(ge||Of(a,ut,0,0,se-1),Tt+=ut)):(Tt+=Math.max(0,x),cr<Bt&&Jd(a,he,0,Bt-cr,Jr,se-1),0<ut&&(ge||Of(a,0,ut,0,se-1),Bt+=ut))),ut=ge=0,he){case jp:y?ge+=Tt/2-a.focus.x-Qe/2:ut+=Bt/2-a.focus.y-Qe/2;break;case jf:0<Zn?y?ge+=Tt/2-a.focus.x-Qe/2:ut+=Bt/2-a.focus.y-Qe/2:y?(Wr=ne[0].S.x+ne[0].la.x,ge+=Wr+(ne[se-1].S.x+ne[se-1].la.x+2*ne[se-1].focus.x-Wr)/2-a.focus.x-Qe/2):(Wr=ne[0].S.y+ne[0].la.y,ut+=Wr+(ne[se-1].S.y+ne[se-1].la.y+2*ne[se-1].focus.y-Wr)/2-a.focus.y-Qe/2);break;case Dc:y?(ge-=Qe,Tt+=Qe):(ut-=Qe,Bt+=Qe);break;case Fc:y?(ge+=Tt-a.width+Qe,Tt+=Qe):(ut+=Bt-a.height+Qe,Bt+=Qe);break;case Ah:y?1<se?ge+=Wr+$e/2-a.focus.x:ge+=ne[0].focus.x-a.focus.x+ne[0].la.x:1<se?ut+=Wr+$e/2-a.focus.y:ut+=ne[0].focus.y-a.focus.y+ne[0].la.y;break;case jh:y?ge+=Tt+$e/2-a.focus.x:ut+=Bt+$e/2-a.focus.y;break;case ih:break;default:Bt=this.customAlignment(a,ge,ut,Tt,Bt),ge=Bt[0],ut=Bt[1],Tt=Bt[2],Bt=Bt[3]}for(Qe=0;Qe<se;Qe++)Wr=ne[Qe],y?Wr.S.h(Wr.S.x+Wr.la.x-ge,Wr.S.y+(135<E?(ye?-Bt:-Wr.Da.height)+Wr.la.y-x:Ot+x+Wr.la.y)):Wr.S.h(Wr.S.x+(135<E?(ye?-Tt:-Wr.Da.width)+Wr.la.x-x:b+x+Wr.la.x),Wr.S.y+Wr.la.y-ut);if(se=ne=0,ye?y?(Tt=Ny(a,Tt,ge),0>ge&&(ge=0),135<E&&(ut+=Bt+x),Bt+=Ot+x,he===ih&&(ne+=$e/2+a.focus.x),se+=Ot+x):(135<E&&(ge+=Tt+x),Tt+=b+x,Bt=Oy(a,Bt,ut),0>ut&&(ut=0),he===ih&&(se+=$e/2+a.focus.y),ne+=b+x):y?(a.comments===null?b>Tt&&(Tt=Ay(he,b-Tt,0),ne=Tt.x,se=Tt.y,Tt=b,ge=0):Tt=Ny(a,Tt,ge),0>ge&&(ne-=ge,ge=0),135<E&&(ut+=Bt+x),Bt=Math.max(Math.max(Bt,Ot),Bt+Ot+x),se+=Ot+x):(135<E&&(ge+=Tt+x),Tt=Math.max(Math.max(Tt,b),Tt+b+x),a.comments===null?Ot>Bt&&(Bt=Ay(he,0,Ot-Bt),ne=Bt.x,se=Bt.y,Bt=Ot,ut=0):Bt=Oy(a,Bt,ut),0>ut&&(se-=ut,ut=0),ne+=b+x),0<Zn)E=vl(this,4),Zn=vl(this,4),y?(E[2].h(0,Ot+x),E[3].h(E[2].x,Bt),Zn[2].h(Tt,E[2].y),Zn[3].h(Zn[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Tt,E[2].y),Zn[2].h(E[2].x,Bt),Zn[3].h(E[3].x,Zn[2].y));else{for(E=vl(this,Ht.length+2),Zn=vl(this,Vt.length+2),he=0;he<Ht.length;he++)ye=Ht[he],E[he+2].h(ye.x+ne,ye.y+se);for(he=0;he<Vt.length;he++)ye=Vt[he],Zn[he+2].h(ye.x+ne,ye.y+se)}y?(E[0].h(ge,0),E[1].h(E[0].x,Ot),E[2].y<E[1].y&&(E[2].x>E[0].x?E[2].assign(E[1]):E[1].assign(E[2])),E[3].y<E[2].y&&(E[3].x>E[0].x?E[3].assign(E[2]):E[2].assign(E[3])),Zn[0].h(ge+b,0),Zn[1].h(Zn[0].x,Ot),Zn[2].y<Zn[1].y&&(Zn[2].x<Zn[0].x?Zn[2].assign(Zn[1]):Zn[1].assign(Zn[2])),Zn[3].y<Zn[2].y&&(Zn[3].x<Zn[0].x?Zn[3].assign(Zn[2]):Zn[2].assign(Zn[3])),E[2].y-=x/2,Zn[2].y-=x/2):(E[0].h(0,ut),E[1].h(b,E[0].y),E[2].x<E[1].x&&(E[2].y>E[0].y?E[2].assign(E[1]):E[1].assign(E[2])),E[3].x<E[2].x&&(E[3].y>E[0].y?E[3].assign(E[2]):E[2].assign(E[3])),Zn[0].h(0,ut+Ot),Zn[1].h(b,Zn[0].y),Zn[2].x<Zn[1].x&&(Zn[2].y<Zn[0].y?Zn[2].assign(Zn[1]):Zn[1].assign(Zn[2])),Zn[3].x<Zn[2].x&&(Zn[3].y<Zn[0].y?Zn[3].assign(Zn[2]):Zn[2].assign(Zn[3])),E[2].x-=x/2,Zn[2].x-=x/2),Qu(this,Ht),Qu(this,Vt),a.Yo=E,a.kp=Zn,a.la.h(ge,ut),a.Da.h(Tt,Bt)}break;default:Zt("Unhandled compaction value "+a.compaction.toString())}}};function cx(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=dd(x));var E=ky(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(b!==180&&b!==270||x)&&!E?y.la.h(0,0):b===180&&!x||(b===90||b===270)&&E?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{b=Du(y),x=b===90||b===270;var te=0;E=y.children;for(var ne=E.length,se=0;se<ne;se++){var he=E[se];te=Math.max(te,x?he.Da.width:he.Da.height)}var ge=y.alignment,ye=ge===Dc,De=ge===Fc;se=dd(ge);var $e=Math.max(0,y.breadthLimit);he=a.computeLayerSpacing(y);var Qe=y.nodeSpacing,rt=a.computeNodeIndent(y),ut=ye||De?0:rt/2,Ot=y.rowSpacing,Tt=0;(ye||De||y.hm||y.im&&y.maxGenerationCount===1)&&(Tt=Math.max(0,y.rowIndent)),ye=y.width;var Bt=y.height,_t=0,Ht=0,Vt=0,hn=0,rr=0,fr=0,cr=0,Zn=0,Bn=0,Jr=0;if(se&&!Kg(ge)&&135<b&&E.reverse(),Kg(ge))if(1<ne)for(var Wr=0;Wr<ne;Wr++){var $i=E[Wr],vo=$i.Da;Wr%2===0&&Wr!==ne-1?Bn=Math.max(Bn,(x?vo.width:vo.height)+a.computeBusNodeSpacing($i)-Qe):Wr%2!==0&&(Jr=Math.max(Jr,(x?vo.width:vo.height)+a.computeBusNodeSpacing($i)-Qe))}else ne===1&&(Bn=x?E[0].Da.width:E[0].Da.height);if(se)switch(ge){case Ah:case Bc:Ht=135>b?hx(a,y,E,Bn,_t,Ht):dx(a,y,E,Bn,_t,Ht),Bn=Ht.x,_t=Ht.width,Ht=Ht.height;break;case jh:for($e=0;$e<ne;$e++)ut=E[$e],Vt=ut.Da,Jr=cr===0?0:Ot,x?(ut.S.h(te-Vt.width,rr+Jr),_t=Math.max(_t,Vt.width),Ht=Math.max(Ht,rr+Jr+Vt.height),rr+=Jr+Vt.height):(ut.S.h(hn+Jr,te-Vt.height),_t=Math.max(_t,hn+Jr+Vt.width),Ht=Math.max(Ht,Vt.height),hn+=Jr+Vt.width),cr++;break;case ih:for(te=0;te<ne;te++)$e=E[te],ut=$e.Da,Vt=cr===0?0:Ot,x?($e.S.h(Qe/2+y.focus.x,rr+Vt),_t=Math.max(_t,ut.width),Ht=Math.max(Ht,rr+Vt+ut.height),rr+=Vt+ut.height):($e.S.h(hn+Vt,Qe/2+y.focus.y),_t=Math.max(_t,hn+Vt+ut.width),Ht=Math.max(Ht,ut.height),hn+=Vt+ut.width),cr++}else for(Jr=0;Jr<ne;Jr++)Wr=E[Jr],$i=Wr.Da,x?(0<$e&&0<cr&&hn+Qe+$i.width>$e&&(hn<te&&Jd(y,ge,te-hn,0,Zn,Jr-1),fr++,cr=0,Zn=Jr,Vt=Ht,hn=0,rr=135<b?-Ht-Ot:Ht+Ot),vo=cr===0?ut:Qe,F0(a,Wr,0,rr),Wr.S.h(hn+vo,rr),_t=Math.max(_t,hn+vo+$i.width),Ht=Math.max(Ht,Vt+(fr===0?0:Ot)+$i.height),hn+=vo+$i.width):(0<$e&&0<cr&&rr+Qe+$i.height>$e&&(rr<te&&Jd(y,ge,0,te-rr,Zn,Jr-1),fr++,cr=0,Zn=Jr,Vt=_t,rr=0,hn=135<b?-_t-Ot:_t+Ot),vo=cr===0?ut:Qe,F0(a,Wr,hn,0),Wr.S.h(hn,rr+vo),Ht=Math.max(Ht,rr+vo+$i.height),_t=Math.max(_t,Vt+(fr===0?0:Ot)+$i.width),rr+=vo+$i.height),cr++;switch(0<fr&&(x?(Ht+=Math.max(0,he),hn<_t&&Jd(y,ge,_t-hn,0,Zn,ne-1),0<Tt&&(De||Of(y,Tt,0,0,ne-1),_t+=Tt)):(_t+=Math.max(0,he),rr<Ht&&Jd(y,ge,0,Ht-rr,Zn,ne-1),0<Tt&&(De||Of(y,0,Tt,0,ne-1),Ht+=Tt))),Tt=De=0,ge){case jp:x?De+=_t/2-y.focus.x-rt/2:Tt+=Ht/2-y.focus.y-rt/2;break;case jf:0<fr?x?De+=_t/2-y.focus.x-rt/2:Tt+=Ht/2-y.focus.y-rt/2:x?(a=E[0].S.x+E[0].la.x,De+=a+(E[ne-1].S.x+E[ne-1].la.x+2*E[ne-1].focus.x-a)/2-y.focus.x-rt/2):(a=E[0].S.y+E[0].la.y,Tt+=a+(E[ne-1].S.y+E[ne-1].la.y+2*E[ne-1].focus.y-a)/2-y.focus.y-rt/2);break;case Dc:x?(De-=rt,_t+=rt):(Tt-=rt,Ht+=rt);break;case Fc:x?(De+=_t-y.width+rt,_t+=rt):(Tt+=Ht-y.height+rt,Ht+=rt);break;case Ah:case Bc:x?1<ne?De+=Bn+Qe/2-y.focus.x:De+=E[0].focus.x-y.focus.x+E[0].la.x:1<ne?Tt+=Bn+Qe/2-y.focus.y:Tt+=E[0].focus.y-y.focus.y+E[0].la.y;break;case jh:x?De+=_t+Qe/2-y.focus.x:Tt+=Ht+Qe/2-y.focus.y;break;case ih:break;default:a=a.customAlignment(y,De,Tt,_t,Ht),De=a[0],Tt=a[1],_t=a[2],Ht=a[3]}for(a=0;a<ne;a++)rt=E[a],x?rt.S.h(rt.S.x+rt.la.x-De,rt.S.y+(135<b?(se?-Ht:-rt.Da.height)+rt.la.y-he:Bt+he+rt.la.y)):rt.S.h(rt.S.x+(135<b?(se?-_t:-rt.Da.width)+rt.la.x-he:ye+he+rt.la.x),rt.S.y+rt.la.y-Tt);x?(_t=Ny(y,_t,De),0>De&&(De=0),135<b&&(Tt+=Ht+he),Ht=Math.max(Math.max(Ht,Bt),Ht+Bt+he)):(135<b&&(De+=_t+he),_t=Math.max(Math.max(_t,ye),_t+ye+he),Ht=Oy(y,Ht,Tt),0>Tt&&(Tt=0)),y.la.h(De,Tt),y.Da.h(_t,Ht)}}bi.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function hx(a,y,x,b,E,te){var ne=x.length;if(ne===0)return new Tn(b,0,E,te);if(ne===1)return y=x[0],E=y.Da.width,te=y.Da.height,new Tn(b,0,E,te);for(var se=y.nodeSpacing,he=y.rowSpacing,ge=Du(y)===90,ye=0,De=0,$e=0,Qe=0;Qe<ne;Qe++)if(!(Qe%2!==0||1<ne&&Qe===ne-1)){var rt=x[Qe],ut=rt.Da,Ot=ye===0?0:he;if(ge){var Tt=a.computeBusNodeSpacing(rt)-se;rt.S.h(b-(ut.width+Tt),$e+Ot),E=Math.max(E,ut.width+Tt),te=Math.max(te,$e+Ot+ut.height),$e+=Ot+ut.height}else Tt=a.computeBusNodeSpacing(rt)-se,rt.S.h(De+Ot,b-(ut.height+Tt)),te=Math.max(te,ut.height+Tt),E=Math.max(E,De+Ot+ut.width),De+=Ot+ut.width;ye++}for(ye=0,rt=De,Qe=$e,ge?(De=b+se,$e=0):(De=0,$e=b+se),ut=0;ut<ne;ut++)if(ut%2!==0){Ot=x[ut],Tt=Ot.Da;var Bt=ye===0?0:he;if(ge){var _t=a.computeBusNodeSpacing(Ot)-se;Ot.S.h(De+_t,$e+Bt),E=Math.max(E,De+Tt.width+_t),te=Math.max(te,$e+Bt+Tt.height),$e+=Bt+Tt.height}else _t=a.computeBusNodeSpacing(Ot)-se,Ot.S.h(De+Bt,$e+_t),E=Math.max(E,De+Bt+Tt.width),te=Math.max(te,$e+Tt.height+_t),De+=Bt+Tt.width;ye++}return 1<ne&&ne%2===1&&(x=x[ne-1],ne=x.Da,a=a.computeBusLastRowSpacing(x,ge?Math.max(Math.abs(Qe),Math.abs($e)):Math.max(Math.abs(rt),Math.abs(De))),ge?(x.S.h(b+se/2-x.focus.x-x.la.x,te+a),ge=b+se/2-x.focus.x-x.la.x,E=Math.max(E,ge+ne.width),0>ge&&(E-=ge),te=Math.max(te,Math.max(Qe,$e)+a+ne.height),0>x.S.x&&(b=D0(y,x.S.x,!1,b,se))):(x.S.h(E+a,b+se/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(rt,De)+a+ne.width),$e=b+se/2-x.focus.y-x.la.y,te=Math.max(te,$e+ne.height),0>$e&&(te-=$e),0>x.S.y&&(b=D0(y,x.S.y,!0,b,se)))),new Tn(b,0,E,te)}function dx(a,y,x,b,E,te){var ne=x.length;if(ne===0)return new Tn(b,0,E,te);if(ne===1)return x=x[0],E=x.Da.width,te=x.Da.height,new Tn(b,0,E,te);for(var se=y.nodeSpacing,he=y.rowSpacing,ge=Du(y)===270,ye=0,De=0,$e=0,Qe=0;Qe<ne;Qe++)if(!(Qe%2!==0||1<ne&&Qe===ne-1)){var rt=x[Qe],ut=rt.Da,Ot=ye===0?0:he;if(ge){var Tt=a.computeBusNodeSpacing(rt)-se;$e-=Ot+ut.height,rt.S.h(b-(ut.width+Tt),$e),E=Math.max(E,ut.width+Tt),te=Math.max(te,Math.abs($e))}else Tt=a.computeBusNodeSpacing(rt)-se,De-=Ot+ut.width,rt.S.h(De,b-(ut.height+Tt)),te=Math.max(te,ut.height+Tt),E=Math.max(E,Math.abs(De));ye++}for(ye=0,rt=De,Qe=$e,ge?(De=b+se,$e=0):(De=0,$e=b+se),ut=0;ut<ne;ut++)if(ut%2!==0){Ot=x[ut],Tt=Ot.Da;var Bt=ye===0?0:he;if(ge){var _t=a.computeBusNodeSpacing(Ot)-se;$e-=Bt+Tt.height,Ot.S.h(De+_t,$e),E=Math.max(E,De+Tt.width+_t),te=Math.max(te,Math.abs($e))}else _t=a.computeBusNodeSpacing(Ot)-se,De-=Bt+Tt.width,Ot.S.h(De,$e+_t),te=Math.max(te,$e+Tt.height+_t),E=Math.max(E,Math.abs(De));ye++}for(1<ne&&ne%2===1&&(he=x[ne-1],ye=he.Da,a=a.computeBusLastRowSpacing(he,ge?Math.max(Math.abs(Qe),Math.abs($e)):Math.max(Math.abs(rt),Math.abs(De))),ge?(he.S.h(b+se/2-he.focus.x-he.la.x,-te-ye.height-a),De=b+se/2-he.focus.x-he.la.x,E=Math.max(E,De+ye.width),0>De&&(E-=De),te=Math.max(te,Math.abs(Math.min(Qe,$e))+a+ye.height),0>he.S.x&&(b=D0(y,he.S.x,!1,b,se))):(he.S.h(-E-ye.width-a,b+se/2-he.focus.y-he.la.y),E=Math.max(E,Math.abs(Math.min(rt,De))+a+ye.width),$e=b+se/2-he.focus.y-he.la.y,te=Math.max(te,$e+ye.height),0>$e&&(te-=$e),0>he.S.y&&(b=D0(y,he.S.y,!0,b,se)))),y=0;y<ne;y++)se=x[y],ge?se.S.h(se.S.x,se.S.y+te):se.S.h(se.S.x+E,se.S.y);return new Tn(b,0,E,te)}bi.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},bi.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function D0(a,y,x,b,E){a=a.children;for(var te=a.length,ne=0;ne<te;ne++)x?a[ne].S.h(a[ne].S.x,a[ne].S.y-y):a[ne].S.h(a[ne].S.x-y,a[ne].S.y);return y=a[te-1],Math.max(b,x?y.la.y+y.focus.y-E/2:y.la.x+y.focus.x-E/2)}function Ny(a,y,x){switch(a.alignment){case jf:case jp:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Dc:return a.width>y?a.width:y;case Fc:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Ah:case Bc:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case jh:return a.width-a.focus.x+a.nodeSpacing/2+y;case ih:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Oy(a,y,x){switch(a.alignment){case jf:case jp:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Dc:return a.height>y?a.height:y;case Fc:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Ah:case Bc:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case jh:return a.height-a.focus.y+a.nodeSpacing/2+y;case ih:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Ay(a,y,x){switch(a){case jp:y/=2,x/=2;break;case jf:y/=2,x/=2;break;case Dc:x=y=0;break;case Fc:break;default:Zt("Unhandled alignment value "+a.toString())}return new Lt(y,x)}function Jd(a,y,x,b,E,te){y=Ay(y,x,b),Of(a,y.x,y.y,E,te)}function Of(a,y,x,b,E){if(y!==0||x!==0)for(a=a.children;b<=E;b++){var te=a[b].S;te.x+=y,te.y+=x}}function F0(a,y,x,b){var E=y.parent;switch(a.ud){case Ic:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case Af:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:Zt("Unhandled path value "+a.ud.toString())}}function B0(a,y,x){for(var b=0;b<a.length;b++){var E=a[b];E.x+=y,E.y+=x}}function fx(a,y,x,b,E,te,ne,se){var he=Du(y),ge=he===90||he===270,ye=y.nodeSpacing;y=b;var De=E;b=te;var $e=ne,Qe=x.Yo,rt=x.kp;ne=x.Da;var ut=ge?Math.max($e,ne.height):Math.max(b,ne.width);if((Qe===null||he!==Du(x))&&(Qe=vl(a,2),rt=vl(a,2),ge?(Qe[0].h(0,0),Qe[1].h(0,ne.height),rt[0].h(ne.width,0),rt[1].h(rt[0].x,Qe[1].y)):(Qe[0].h(0,0),Qe[1].h(ne.width,0),rt[0].h(0,ne.height),rt[1].h(Qe[1].x,rt[0].y))),ge){if($e=9999999,!(De===null||2>De.length||Qe===null||2>Qe.length))for(E=x=0;x<De.length&&E<Qe.length;){te=De[x];var Ot=Qe[E];he=Ot.x,ge=Ot.y,he+=b;var Tt=te;x+1<De.length&&(Tt=De[x+1]);var Bt=Ot;Ot=Bt.x,Bt=Bt.y,E+1<Qe.length&&(Bt=Qe[E+1],Ot=Bt.x,Bt=Bt.y,Ot+=b);var _t=$e;te.y===ge?_t=he-te.x:te.y>ge&&te.y<Bt?_t=he+(te.y-ge)/(Bt-ge)*(Ot-he)-te.x:ge>te.y&&ge<Tt.y&&(_t=he-(te.x+(ge-te.y)/(Tt.y-te.y)*(Tt.x-te.x))),_t<$e&&($e=_t),Tt.y<=te.y?x++:Bt<=ge?E++:(Tt.y<=Bt&&x++,Bt<=Tt.y&&E++)}if($e=b-$e,$e+=ye,x=Qe,E=$e,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ye=vl(a,y.length+x.length),b=te=he=0;te<x.length&&x[te].y<y[0].y;)ge=x[te++],ye[b++].h(ge.x+E,ge.y);for(;he<y.length;)ge=y[he++],ye[b++].h(ge.x,ge.y);for(he=y[y.length-1].y;te<x.length&&x[te].y<=he;)te++;for(;te<x.length&&x[te].y>he;)ge=x[te++],ye[b++].h(ge.x+E,ge.y);for(x=vl(a,b),he=0;he<b;he++)x[he].assign(ye[he]);Qu(a,ye),b=x}if(te=rt,he=$e,De===null||2>De.length||te===null||2>te.length)E=null;else{for(ye=vl(a,De.length+te.length),E=ge=x=0;x<De.length&&De[x].y<te[0].y;)Tt=De[x++],ye[E++].h(Tt.x,Tt.y);for(;ge<te.length;)Tt=te[ge++],ye[E++].h(Tt.x+he,Tt.y);for(te=te[te.length-1].y;x<De.length&&De[x].y<=te;)x++;for(;x<De.length&&De[x].y>te;)he=De[x++],ye[E++].h(he.x,he.y);for(te=vl(a,E),x=0;x<E;x++)te[x].assign(ye[x]);Qu(a,ye),E=te}return te=Math.max(0,$e)+ne.width,ne=ut,Qu(a,y),Qu(a,Qe),Qu(a,De),Qu(a,rt),se[0]=b,se[1]=E,new Tn($e,0,te,ne)}if(b=9999999,!(De===null||2>De.length||Qe===null||2>Qe.length))for(E=x=0;x<De.length&&E<Qe.length;)te=De[x],Ot=Qe[E],he=Ot.x,ge=Ot.y,ge+=$e,Tt=te,x+1<De.length&&(Tt=De[x+1]),Bt=Ot,Ot=Bt.x,Bt=Bt.y,E+1<Qe.length&&(Bt=Qe[E+1],Ot=Bt.x,Bt=Bt.y,Bt+=$e),_t=b,te.x===he?_t=ge-te.y:te.x>he&&te.x<Ot?_t=ge+(te.x-he)/(Ot-he)*(Bt-ge)-te.y:he>te.x&&he<Tt.x&&(_t=ge-(te.y+(he-te.x)/(Tt.x-te.x)*(Tt.y-te.y))),_t<b&&(b=_t),Tt.x<=te.x?x++:Ot<=he?E++:(Tt.x<=Ot&&x++,Ot<=Tt.x&&E++);if($e-=b,$e+=ye,x=Qe,E=$e,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ye=vl(a,y.length+x.length),b=te=he=0;te<x.length&&x[te].x<y[0].x;)ge=x[te++],ye[b++].h(ge.x,ge.y+E);for(;he<y.length;)ge=y[he++],ye[b++].h(ge.x,ge.y);for(he=y[y.length-1].x;te<x.length&&x[te].x<=he;)te++;for(;te<x.length&&x[te].x>he;)ge=x[te++],ye[b++].h(ge.x,ge.y+E);for(x=vl(a,b),he=0;he<b;he++)x[he].assign(ye[he]);Qu(a,ye),b=x}if(te=rt,he=$e,De===null||2>De.length||te===null||2>te.length)E=null;else{for(ye=vl(a,De.length+te.length),E=ge=x=0;x<De.length&&De[x].x<te[0].x;)Tt=De[x++],ye[E++].h(Tt.x,Tt.y);for(;ge<te.length;)Tt=te[ge++],ye[E++].h(Tt.x,Tt.y+he);for(te=te[te.length-1].x;x<De.length&&De[x].x<=te;)x++;for(;x<De.length&&De[x].x>te;)he=De[x++],ye[E++].h(he.x,he.y);for(te=vl(a,E),x=0;x<E;x++)te[x].assign(ye[x]);Qu(a,ye),E=te}return te=ut,ne=Math.max(0,$e)+ne.height,Qu(a,y),Qu(a,Qe),Qu(a,De),Qu(a,rt),se[0]=b,se[1]=E,new Tn($e,0,te,ne)}function vl(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 Lt;return a}function Qu(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}bi.prototype.arrangeTrees=function(){if(this.Rb===G0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof wu){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),jy(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof wu&&a.push(x);switch(this.sorting){case Ap:break;case Zg:a.reverse();break;case Vg:a.sort(this.comparer);break;case Xg:a.sort(this.comparer),a.reverse();break;default:Zt("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,b=0;b<a.length;b++){var E=a[b];switch(jy(this,E,y+E.la.x,x+E.la.y),this.Rb){case H0:x+=E.Da.height+this.$d.height;break;case By:y+=E.Da.width+this.$d.width;break;default:Zt("Unhandled arrangement value "+this.Rb.toString())}}}};function jy(a,y,x,b){if(y!==null){y.x=x,y.y=b,y=y.children;for(var E=y.length,te=0;te<E;te++){var ne=y[te];jy(a,ne,x+ne.S.x,b+ne.S.y)}}}bi.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},bi.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},bi.prototype.Gu=function(){if(this.layerStyle===W0){for(var a=this.$v,y=[],x=null,b=this.network.vertexes.iterator;b.next();){var E=b.value;x===null?x=E.bounds.copy():x.ed(E.bounds);var te=y[E.level];te===void 0?te=this.computeLayerSpacing(E):te=Math.max(te,this.computeLayerSpacing(E)),y[E.level]=te}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 Lt(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new Lt(-this.layerSpacing/2,-this.nodeSpacing/2)),E=[],x=this.angle===90||this.angle===270?x.width:x.height,te=0,this.angle===180||this.angle===270)for(var ne=0;ne<a.length;ne++)te+=a[ne]+y[ne];for(ne=0;ne<a.length;ne++){var se=a[ne]+y[ne];this.angle===270?(te-=se,E.push(new Tn(0,te,x,se))):this.angle===90?(E.push(new Tn(0,te,x,se)),te+=se):this.angle===180?(te-=se,E.push(new Tn(te,0,se,x))):(E.push(new Tn(te,0,se,x)),te+=se)}this.commitLayers(E,b)}},bi.prototype.commitLayers=function(){},bi.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},bi.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof wu&&px(this,y)}};function px(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)px(a,y[b])}}bi.prototype.setPortSpots=function(a){var y=a.alignment;if(dd(y)){var x=this.ud===Ic,b=Du(a);switch(b){case 0:var E=$a;break;case 90:E=Ra;break;case 180:E=Pa;break;default:E=ua}var te=a.children,ne=te.length;switch(y){case Ah:case Bc:for(y=0;y<ne;y++){var se=te[y];if(se=(x?se.sourceEdges:se.destinationEdges).first(),se!==null&&(se=se.link,se!==null)){var he=b===90||b===270?Pa:ua;if(ne===1||y===ne-1&&ne%2===1)switch(b){case 0:he=Pa;break;case 90:he=ua;break;case 180:he=$a;break;default:he=Ra}else y%2===0&&(he=b===90||b===270?$a:Ra);x?(a.setsPortSpot&&(se.fromSpot=E),a.setsChildPortSpot&&(se.toSpot=he)):(a.setsPortSpot&&(se.fromSpot=he),a.setsChildPortSpot&&(se.toSpot=E))}}break;case jh:for(b=b===90||b===270?$a:Ra,te=x?a.destinationEdges:a.sourceEdges;te.next();)ne=te.value.link,ne!==null&&(x?(a.setsPortSpot&&(ne.fromSpot=E),a.setsChildPortSpot&&(ne.toSpot=b)):(a.setsPortSpot&&(ne.fromSpot=b),a.setsChildPortSpot&&(ne.toSpot=E)));break;case ih:for(b=b===90||b===270?Pa:ua,te=x?a.destinationEdges:a.sourceEdges;te.next();)ne=te.value.link,ne!==null&&(x?(a.setsPortSpot&&(ne.fromSpot=E),a.setsChildPortSpot&&(ne.toSpot=b)):(a.setsPortSpot&&(ne.fromSpot=b),a.setsChildPortSpot&&(ne.toSpot=E)))}}else if(x=Du(a),this.ud===Ic){for(E=a.destinationEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.fromSpot=$a;break;case 90:b.fromSpot=Ra;break;case 180:b.fromSpot=Pa;break;default:b.fromSpot=ua}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=Pa;break;case 90:b.toSpot=ua;break;case 180:b.toSpot=$a;break;default:b.toSpot=Ra}else b.toSpot=a.childPortSpot}}else for(E=a.sourceEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.toSpot=$a;break;case 90:b.toSpot=Ra;break;case 180:b.toSpot=Pa;break;default:b.toSpot=ua}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=Pa;break;case 90:b.fromSpot=ua;break;case 180:b.fromSpot=$a;break;default:b.fromSpot=Ra}else b.fromSpot=a.childPortSpot}};function Du(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}bi.prototype.computeLayerSpacing=function(a){var y=Du(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},bi.prototype.computeNodeIndent=function(a){var y=Du(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)},jt.Object.defineProperties(bi.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!==z0&&a!==Dy&&a!==Iy&&a!==Fy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Ry&&a!==_y&&a!==W0||(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!==H0&&a!==By&&a!==G0||(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!==Ap&&a!==Zg&&a!==Vg&&!Xg||(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()):Zt("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!==_0&&a!==Yg||(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!==Ap&&a!==Zg&&a!==Vg&&!Xg||(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!==_0&&a!==Yg||(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 R0=new en(bi,"PathDefault",-1),Ic=new en(bi,"PathDestination",0),Af=new en(bi,"PathSource",1),Ap=new en(bi,"SortingForwards",10),Zg=new en(bi,"SortingReverse",11),Vg=new en(bi,"SortingAscending",12),Xg=new en(bi,"SortingDescending",13),jp=new en(bi,"AlignmentCenterSubtrees",20),jf=new en(bi,"AlignmentCenterChildren",21),Dc=new en(bi,"AlignmentStart",22),Fc=new en(bi,"AlignmentEnd",23),Ah=new en(bi,"AlignmentBus",24),Bc=new en(bi,"AlignmentBusBranching",25),jh=new en(bi,"AlignmentTopLeftBus",26),ih=new en(bi,"AlignmentBottomRightBus",27),_0=new en(bi,"CompactionNone",30),Yg=new en(bi,"CompactionBlock",31),z0=new en(bi,"StyleLayered",40),Iy=new en(bi,"StyleLastParents",41),Dy=new en(bi,"StyleAlternating",42),Fy=new en(bi,"StyleRootOnly",43),H0=new en(bi,"ArrangementVertical",50),By=new en(bi,"ArrangementHorizontal",51),G0=new en(bi,"ArrangementFixedRoots",52),Ry=new en(bi,"LayerIndividual",60),_y=new en(bi,"LayerSiblings",61),W0=new en(bi,"LayerUniform",62);bi.className="TreeLayout",bi.PathDefault=R0,bi.PathDestination=Ic,bi.PathSource=Af,bi.SortingForwards=Ap,bi.SortingReverse=Zg,bi.SortingAscending=Vg,bi.SortingDescending=Xg,bi.AlignmentCenterSubtrees=jp,bi.AlignmentCenterChildren=jf,bi.AlignmentStart=Dc,bi.AlignmentEnd=Fc,bi.AlignmentBus=Ah,bi.AlignmentBusBranching=Bc,bi.AlignmentTopLeftBus=jh,bi.AlignmentBottomRightBus=ih,bi.CompactionNone=_0,bi.CompactionBlock=Yg,bi.StyleLayered=z0,bi.StyleLastParents=Iy,bi.StyleAlternating=Dy,bi.StyleRootOnly=Fy,bi.ArrangementVertical=H0,bi.ArrangementHorizontal=By,bi.ArrangementFixedRoots=G0,bi.LayerIndividual=Ry,bi.LayerSiblings=_y,bi.LayerUniform=W0;function If(a){xo.call(this,a)}Jt(If,xo),If.prototype.createVertex=function(){return new wu(this)},If.prototype.createEdge=function(){return new Ip(this)},If.className="TreeNetwork";function wu(a){Ga.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 Lt(0,0),this.Da=new Xn(0,0),this.la=new Lt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Ap,this.hd=oy,this.Kb=0,this.Jb=jf,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Yg,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=qi,this.wr=!0,this.Dp=qi}Jt(wu,Ga),wu.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)},jt.Object.defineProperties(wu.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)}}}),wu.className="TreeVertex";function Ip(a){Ll.call(this,a),this.$t=new Lt(0,0)}Jt(Ip,Ll),Ip.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 Ic:x=this.fromVertex,b=this.toVertex;break;case Af:x=this.toVertex,b=this.fromVertex;break;default:Zt("Unhandled path value "+y.ud.toString())}if(x!==null&&b!==null){var E=this.$t;if(E.x!==0||E.y!==0||x.qA){b=x.bounds;var te=Du(x),ne=y.computeLayerSpacing(x),se=x.rowSpacing;a.vg();var he=a.curve===Yl,ge=a.isOrthogonal,ye;if(a.uh(),ge||he){for(ye=2;4<a.pointsCount;)a.pv(2);var De=a.i(1),$e=a.i(2)}else{for(ye=1;3<a.pointsCount;)a.pv(1);De=a.i(0),$e=a.i(a.pointsCount-1)}var Qe=a.i(a.pointsCount-1);te===0?(x.alignment===Fc?(te=b.bottom+E.y,E.y===0&&De.y>Qe.y+x.rowIndent&&(te=Math.min(te,Math.max(De.y,te-y.computeNodeIndent(x))))):x.alignment===Dc?(te=b.top+E.y,E.y===0&&De.y<Qe.y-x.rowIndent&&(te=Math.max(te,Math.min(De.y,te+y.computeNodeIndent(x))))):te=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,he?(a.m(ye,De.x,te),ye++,a.m(ye,b.right+ne,te),ye++,a.m(ye,b.right+ne+(E.x-se)/3,te),ye++,a.m(ye,b.right+ne+2*(E.x-se)/3,te),ye++,a.m(ye,b.right+ne+(E.x-se),te),ye++,a.m(ye,$e.x,te)):(ge&&(a.m(ye,b.right+ne/2,De.y),ye++),a.m(ye,b.right+ne/2,te),ye++,a.m(ye,b.right+ne+E.x-(ge?se/2:se),te),ye++,ge&&a.m(ye,a.i(ye-1).x,$e.y))):te===90?(x.alignment===Fc?(te=b.right+E.x,E.x===0&&De.x>Qe.x+x.rowIndent&&(te=Math.min(te,Math.max(De.x,te-y.computeNodeIndent(x))))):x.alignment===Dc?(te=b.left+E.x,E.x===0&&De.x<Qe.x-x.rowIndent&&(te=Math.max(te,Math.min(De.x,te+y.computeNodeIndent(x))))):te=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,he?(a.m(ye,te,De.y),ye++,a.m(ye,te,b.bottom+ne),ye++,a.m(ye,te,b.bottom+ne+(E.y-se)/3),ye++,a.m(ye,te,b.bottom+ne+2*(E.y-se)/3),ye++,a.m(ye,te,b.bottom+ne+(E.y-se)),ye++,a.m(ye,te,$e.y)):(ge&&(a.m(ye,De.x,b.bottom+ne/2),ye++),a.m(ye,te,b.bottom+ne/2),ye++,a.m(ye,te,b.bottom+ne+E.y-(ge?se/2:se)),ye++,ge&&a.m(ye,$e.x,a.i(ye-1).y))):te===180?(x.alignment===Fc?(te=b.bottom+E.y,E.y===0&&De.y>Qe.y+x.rowIndent&&(te=Math.min(te,Math.max(De.y,te-y.computeNodeIndent(x))))):x.alignment===Dc?(te=b.top+E.y,E.y===0&&De.y<Qe.y-x.rowIndent&&(te=Math.max(te,Math.min(De.y,te+y.computeNodeIndent(x))))):te=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,he?(a.m(ye,De.x,te),ye++,a.m(ye,b.left-ne,te),ye++,a.m(ye,b.left-ne+(E.x+se)/3,te),ye++,a.m(ye,b.left-ne+2*(E.x+se)/3,te),ye++,a.m(ye,b.left-ne+(E.x+se),te),ye++,a.m(ye,$e.x,te)):(ge&&(a.m(ye,b.left-ne/2,De.y),ye++),a.m(ye,b.left-ne/2,te),ye++,a.m(ye,b.left-ne+E.x+(ge?se/2:se),te),ye++,ge&&a.m(ye,a.i(ye-1).x,$e.y))):te===270?(x.alignment===Fc?(te=b.right+E.x,E.x===0&&De.x>Qe.x+x.rowIndent&&(te=Math.min(te,Math.max(De.x,te-y.computeNodeIndent(x))))):x.alignment===Dc?(te=b.left+E.x,E.x===0&&De.x<Qe.x-x.rowIndent&&(te=Math.max(te,Math.min(De.x,te+y.computeNodeIndent(x))))):te=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,he?(a.m(ye,te,De.y),ye++,a.m(ye,te,b.top-ne),ye++,a.m(ye,te,b.top-ne+(E.y+se)/3),ye++,a.m(ye,te,b.top-ne+2*(E.y+se)/3),ye++,a.m(ye,te,b.top-ne+(E.y+se)),ye++,a.m(ye,te,$e.y)):(ge&&(a.m(ye,De.x,b.top-ne/2),ye++),a.m(ye,te,b.top-ne/2),ye++,a.m(ye,te,b.top-ne+E.y+(ge?se/2:se)),ye++,ge&&a.m(ye,$e.x,a.i(ye-1).y))):Zt("Invalid angle "+te),a.zf()}else E=b,a=this.link,b=this.network.layout,y=Du(x),y!==Du(E)&&(ne=b.computeLayerSpacing(x),se=x.bounds,x=E.bounds,y===0&&x.left-se.right<ne+1||y===90&&x.top-se.bottom<ne+1||y===180&&se.left-x.right<ne+1||y===270&&se.top-x.bottom<ne+1||(a.vg(),x=a.curve===Yl,E=a.isOrthogonal,b=dd(this.fromVertex.alignment),a.uh(),y===0?(y=se.right+ne/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,x),a.m(3,y,x),a.m(4,y+20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=se.bottom+ne/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,x,y-20),a.m(3,x,y),a.m(4,x,y+20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=se.left-ne/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,x),a.m(3,y,x),a.m(4,y-20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=se.top-ne/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,x,y+20),a.m(3,x,y),a.m(4,x,y-20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},jt.Object.defineProperties(Ip.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)}}}),Ip.className="TreeEdge",Do.prototype.initializeStandardTools=function(){this.gb("Action",new si,this.mouseDownTools),this.gb("Relinking",new Sr,this.mouseDownTools),this.gb("LinkReshaping",new br,this.mouseDownTools),this.gb("Rotating",new Ti,this.mouseDownTools),this.gb("Resizing",new ti,this.mouseDownTools),this.gb("Linking",new lr,this.mouseMoveTools),this.gb("Dragging",new Uo,this.mouseMoveTools),this.gb("DragSelecting",new oi,this.mouseMoveTools),this.gb("Panning",new zr,this.mouseMoveTools),this.gb("ContextMenu",new Ki,this.mouseUpTools),this.gb("TextEditing",new _i,this.mouseUpTools),this.gb("ClickCreating",new wi,this.mouseUpTools),this.gb("ClickSelecting",new ao,this.mouseUpTools)},cc("Horizontal",new ym),cc("Spot",new xm),cc("Table",new bm),cc("Viewbox",new Em),cc("TableRow",new Pm),cc("TableColumn",new Cm),cc("Graduated",new dg),cc("Grid",new hg),rp.add("GraphLinksModel",ts),rp.add("TreeModel",cu);var U0=Dt.go,zy={get licenseKey(){return cn.licenseKey},set licenseKey(a){cn.licenseKey=a},get version(){return cn.version},Group:ei,EnumValue:en,List:An,Set:Dn,Map:dr,Point:Lt,Size:Xn,Rect:Tn,Margin:kr,Spot:wr,Geometry:Yn,PathFigure:_a,PathSegment:zi,InputEvent:ws,DiagramEvent:Kc,ChangedEvent:_o,Model:xr,GraphLinksModel:Ii,TreeModel:Xs,Binding:Sa,Transaction:Ka,UndoManager:Wo,CommandHandler:Nt,Tool:Ri,DraggingTool:Uo,DraggingInfo:Qc,DraggingOptions:de,LinkingBaseTool:fn,LinkingTool:lr,RelinkingTool:Sr,LinkReshapingTool:br,ResizingTool:ti,RotatingTool:Ti,ClickSelectingTool:ao,ActionTool:si,ClickCreatingTool:wi,HTMLInfo:vi,ContextMenuTool:Ki,DragSelectingTool:oi,PanningTool:zr,TextEditingTool:_i,ToolManager:Do,Animation:ta,AnimationManager:Jo,AnimationTrigger:El,Layer:Ho,Diagram:cn,Palette:Ne,Overview:Re,Brush:to,GraphObject:Yt,Panel:Kn,RowColumnDefinition:Aa,Shape:hi,TextBlock:So,Picture:ll,Part:Tr,Adornment:Gi,Node:sr,Link:Vn,Placeholder:$s,Layout:Ro,LayoutNetwork:xo,LayoutVertex:Ga,LayoutEdge:Ll,GridLayout:hs,PanelLayout:Ha,CircularLayout:Xo,CircularNetwork:kp,CircularVertex:zg,CircularEdge:C0,ForceDirectedLayout:Ss,ForceDirectedNetwork:Nf,ForceDirectedVertex:Hg,ForceDirectedEdge:Gg,LayeredDigraphLayout:oo,LayeredDigraphNetwork:Op,LayeredDigraphVertex:du,LayeredDigraphEdge:$g,TreeLayout:bi,TreeNetwork:If,TreeVertex:wu,TreeEdge:Ip};typeof U0=="object"&&U0.version&&ar("WARNING: a `go` object on the root object is already defined. "+("Debug"in U0?"debug ":"")+"version: "+U0.version+", replaced with version: "+zy.version),cn.prototype.go=zy,Dt.go=zy,typeof Gn.exports=="object"&&(Gn.exports=typeof Ke.g!="undefined"?Ke.g.go:self.go)}();var tt=typeof Ke.g!="undefined"?Ke.g.go:self.go;const Pt=typeof Ke.g!="undefined"?Ke.g.go:self.go,oe=Pt.Group,Ue=Pt.EnumValue,Fe=Pt.List,me=Pt.Set,ce=Pt.Map,be=Pt.Point,Le=Pt.Size,Se=Pt.Rect,ke=Pt.Margin,ve=Pt.Spot,xe=Pt.Geometry,fe=Pt.PathFigure,z=Pt.PathSegment,ee=Pt.InputEvent,ae=Pt.DiagramEvent,re=Pt.ChangedEvent,le=Pt.Model,ue=Pt.GraphLinksModel,pe=Pt.TreeModel,Ce=Pt.Binding,Pe=Pt.Transaction,Ie=Pt.UndoManager,Oe=Pt.CommandHandler,Ae=Pt.Tool,je=Pt.DraggingTool,Be=Pt.DraggingInfo,_e=Pt.LinkingBaseTool,qe=Pt.LinkingTool,ze=Pt.RelinkingTool,Ye=Pt.LinkReshapingTool,et=Pt.ResizingTool,lt=Pt.RotatingTool,dt=Pt.ClickSelectingTool,vt=Pt.ActionTool,Je=Pt.ClickCreatingTool,ot=Pt.HTMLInfo,ft=Pt.ContextMenuTool,xt=Pt.DragSelectingTool,yt=Pt.PanningTool,pt=Pt.TextEditingTool,gt=Pt.ToolManager,mt=Pt.Animation,Mt=Pt.AnimationManager,Ct=Pt.AnimationTrigger,zt=Pt.Layer,St=Pt.Diagram,bt=Pt.Palette,at=Pt.Overview,nt=Pt.Brush,we=Pt.GraphObject,Te=Pt.Panel,Ve=Pt.RowColumnDefinition,Ze=Pt.Shape,Ee=Pt.TextBlock,Ge=Pt.TextBlockMetrics,He=Pt.Picture,We=Pt.Part,Xe=Pt.Adornment,ct=Pt.Node,Et=Pt.Link,ht=Pt.Placeholder,It=Pt.Layout,qt=Pt.LayoutNetwork,$t=Pt.LayoutVertex,Wt=Pt.LayoutEdge,Ut=Pt.GridLayout,ln=Pt.PanelLayout,kt=Pt.CircularLayout,Xt=Pt.CircularNetwork,tn=Pt.CircularVertex,dn=Pt.CircularEdge,Mn=Pt.ForceDirectedLayout,Rn=Pt.ForceDirectedNetwork,ir=Pt.ForceDirectedVertex,qn=Pt.ForceDirectedEdge,Cr=Pt.LayeredDigraphLayout,er=Pt.LayeredDigraphNetwork,Fr=Pt.LayeredDigraphVertex,jr=Pt.LayeredDigraphEdge,fi=Pt.TreeLayout,Si=Pt.TreeNetwork,tr=Pt.TreeVertex,gr=Pt.TreeEdge,Qn=Pt.version},2859:function(Gn,vn,Ke){"use strict";Ke.d(vn,{hP:function(){return at}});var tt=function(nt,we){return(tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Te,Ve){Te.__proto__=Ve}||function(Te,Ve){for(var Ze in Ve)Object.prototype.hasOwnProperty.call(Ve,Ze)&&(Te[Ze]=Ve[Ze])})(nt,we)};function Pt(nt,we){function Te(){this.constructor=nt}tt(nt,we),nt.prototype=we===null?Object.create(we):(Te.prototype=we.prototype,new Te)}function oe(nt,we,Te,Ve){return new(Te||(Te=Promise))(function(Ze,Ee){function Ge(Xe){try{We(Ve.next(Xe))}catch(ct){Ee(ct)}}function He(Xe){try{We(Ve.throw(Xe))}catch(ct){Ee(ct)}}function We(Xe){var ct;Xe.done?Ze(Xe.value):(ct=Xe.value,ct instanceof Te?ct:new Te(function(Et){Et(ct)})).then(Ge,He)}We((Ve=Ve.apply(nt,we||[])).next())})}function Ue(nt,we){var Te,Ve,Ze,Ee,Ge={label:0,sent:function(){if(1&Ze[0])throw Ze[1];return Ze[1]},trys:[],ops:[]};return Ee={next:He(0),throw:He(1),return:He(2)},typeof Symbol=="function"&&(Ee[Symbol.iterator]=function(){return this}),Ee;function He(We){return function(Xe){return function(ct){if(Te)throw new TypeError("Generator is already executing.");for(;Ge;)try{if(Te=1,Ve&&(Ze=2&ct[0]?Ve.return:ct[0]?Ve.throw||((Ze=Ve.return)&&Ze.call(Ve),0):Ve.next)&&!(Ze=Ze.call(Ve,ct[1])).done)return Ze;switch(Ve=0,Ze&&(ct=[2&ct[0],Ze.value]),ct[0]){case 0:case 1:Ze=ct;break;case 4:return Ge.label++,{value:ct[1],done:!1};case 5:Ge.label++,Ve=ct[1],ct=[0];continue;case 7:ct=Ge.ops.pop(),Ge.trys.pop();continue;default:if(Ze=Ge.trys,!((Ze=Ze.length>0&&Ze[Ze.length-1])||ct[0]!==6&&ct[0]!==2)){Ge=0;continue}if(ct[0]===3&&(!Ze||ct[1]>Ze[0]&&ct[1]<Ze[3])){Ge.label=ct[1];break}if(ct[0]===6&&Ge.label<Ze[1]){Ge.label=Ze[1],Ze=ct;break}if(Ze&&Ge.label<Ze[2]){Ge.label=Ze[2],Ge.ops.push(ct);break}Ze[2]&&Ge.ops.pop(),Ge.trys.pop();continue}ct=we.call(nt,Ge)}catch(Et){ct=[6,Et],Ve=0}finally{Te=Ze=0}if(5&ct[0])throw ct[1];return{value:ct[0]?ct[1]:void 0,done:!0}}([We,Xe])}}}function Fe(){for(var nt=0,we=0,Te=arguments.length;we<Te;we++)nt+=arguments[we].length;var Ve=Array(nt),Ze=0;for(we=0;we<Te;we++)for(var Ee=arguments[we],Ge=0,He=Ee.length;Ge<He;Ge++,Ze++)Ve[Ze]=Ee[Ge];return Ve}var me=function(){function nt(){}return nt.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},nt.setAttributes=function(we,Te){for(var Ve=0,Ze=Te;Ve<Ze.length;Ve++){var Ee=Ze[Ve],Ge=Ee[0],He=Ee[1];we.setAttribute(Ge,He)}},nt.createRect=function(we,Te,Ve){var Ze=document.createElementNS("http://www.w3.org/2000/svg","rect");return Ze.setAttribute("width",we.toString()),Ze.setAttribute("height",Te.toString()),Ve&&nt.setAttributes(Ze,Ve),Ze},nt.createLine=function(we,Te,Ve,Ze,Ee){var Ge=document.createElementNS("http://www.w3.org/2000/svg","line");return Ge.setAttribute("x1",we.toString()),Ge.setAttribute("y1",Te.toString()),Ge.setAttribute("x2",Ve.toString()),Ge.setAttribute("y2",Ze.toString()),Ee&&nt.setAttributes(Ge,Ee),Ge},nt.createPolygon=function(we,Te){var Ve=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ve.setAttribute("points",we),Te&&nt.setAttributes(Ve,Te),Ve},nt.createCircle=function(we,Te){var Ve=document.createElementNS("http://www.w3.org/2000/svg","circle");return Ve.setAttribute("cx",(we/2).toString()),Ve.setAttribute("cy",(we/2).toString()),Ve.setAttribute("r",we.toString()),Te&&nt.setAttributes(Ve,Te),Ve},nt.createEllipse=function(we,Te,Ve){var Ze=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Ze.setAttribute("cx",(we/2).toString()),Ze.setAttribute("cy",(Te/2).toString()),Ze.setAttribute("rx",(we/2).toString()),Ze.setAttribute("ry",(Te/2).toString()),Ve&&nt.setAttributes(Ze,Ve),Ze},nt.createGroup=function(we){var Te=document.createElementNS("http://www.w3.org/2000/svg","g");return we&&nt.setAttributes(Te,we),Te},nt.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},nt.createMarker=function(we,Te,Ve,Ze,Ee,Ge,He){var We=document.createElementNS("http://www.w3.org/2000/svg","marker");return nt.setAttributes(We,[["id",we],["orient",Te],["markerWidth",Ve.toString()],["markerHeight",Ze.toString()],["refX",Ee.toString()],["refY",Ge.toString()]]),We.appendChild(He),We},nt.createText=function(we){var Te=document.createElementNS("http://www.w3.org/2000/svg","text");return Te.setAttribute("x","0"),Te.setAttribute("y","0"),we&&nt.setAttributes(Te,we),Te},nt.createTSpan=function(we,Te){var Ve=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ve.textContent=we,Te&&nt.setAttributes(Ve,Te),Ve},nt.createImage=function(we){var Te=document.createElementNS("http://www.w3.org/2000/svg","image");return we&&nt.setAttributes(Te,we),Te},nt.createPoint=function(we,Te){var Ve=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ve.x=we,Ve.y=Te,Ve},nt.createPath=function(we,Te){var Ve=document.createElementNS("http://www.w3.org/2000/svg","path");return Ve.setAttribute("d",we),Te&&nt.setAttributes(Ve,Te),Ve},nt}(),ce=function(){function nt(){}return nt.addKey=function(we){nt.key=we},Object.defineProperty(nt,"isLicensed",{get:function(){return!!nt.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(nt.key)},enumerable:!1,configurable:!0}),nt}(),be=function(){function nt(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return nt.prototype.rasterize=function(we,Te,Ve){var Ze=this;return new Promise(function(Ee){var Ge=Ve!==void 0?Ve:document.createElement("canvas");we===null&&(Ze.markersOnly=!0,Ze.naturalSize=!1);var He=document.createElementNS("http://www.w3.org/2000/svg","svg");He.setAttribute("xmlns","http://www.w3.org/2000/svg"),He.setAttribute("width",Te.width.baseVal.valueAsString),He.setAttribute("height",Te.height.baseVal.valueAsString),He.setAttribute("viewBox","0 0 "+Te.viewBox.baseVal.width.toString()+" "+Te.viewBox.baseVal.height.toString()),He.innerHTML=Te.innerHTML,Ze.naturalSize===!0?(He.width.baseVal.value=we.naturalWidth,He.height.baseVal.value=we.naturalHeight):Ze.width!==void 0&&Ze.height!==void 0&&(He.width.baseVal.value=Ze.width,He.height.baseVal.value=Ze.height),Ge.width=He.width.baseVal.value,Ge.height=He.height.baseVal.value;var We=He.outerHTML,Xe=Ge.getContext("2d");Ze.markersOnly!==!0&&Xe.drawImage(we,0,0,Ge.width,Ge.height);var ct=window.URL,Et=new Image(Ge.width,Ge.height);Et.setAttribute("crossOrigin","anonymous");var ht=new Blob([We],{type:"image/svg+xml"}),It=ct.createObjectURL(ht);Et.onload=function(){Xe.drawImage(Et,0,0),ct.revokeObjectURL(It);var qt=Ge.toDataURL(Ze.imageType,Ze.imageQuality);Ee(qt)},Et.src=It})},nt}(),Le=function(){},Se=function(){function nt(we){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+we+"_"}return Object.defineProperty(nt.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),nt.prototype.addClass=function(we){return this.styleSheet===void 0&&this.addStyleSheet(),we.name=""+this.classNamePrefix+we.localName,this.classes.push(we),this.styleSheet.sheet.insertRule("."+we.name+" {"+we.style+"}",this.styleSheet.sheet.cssRules.length),we},nt.prototype.addRule=function(we){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(we),this.styleSheet.sheet.insertRule(we.selector+" {"+we.style+"}",this.styleSheet.sheet.cssRules.length)},nt.prototype.addStyleSheet=function(){var we;this.styleSheet=document.createElement("style"),((we=this.styleSheetRoot)!==null&&we!==void 0?we:document.head).appendChild(this.styleSheet),this.addRule(new ke("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ke("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new ke("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new ve("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new ve("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},nt.prototype.removeStyleSheet=function(){var we;this.styleSheet&&(((we=this.styleSheetRoot)!==null&&we!==void 0?we:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},nt}(),ke=function(nt,we){this.selector=nt,this.style=we},ve=function(nt,we){this.localName=nt,this.style=we},xe=function(){function nt(we,Te,Ve,Ze,Ee){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=we,this.displayMode=Te,this.markerItems=Ve,this.uiStyleSettings=Ze,this.styles=Ee,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return nt.prototype.show=function(we){var Te=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=we,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Ve=document.createElement("div");Ve.className=this.toolbarBlockStyleClass.name,Ve.style.whiteSpace="nowrap",this.uiContainer.appendChild(Ve),this.addActionButton(Ve,'<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(Ve,'<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(Ve,'<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(Ve,'<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(Ve,'<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(Ve,'<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(Ve,'<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(Ve,'<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(Ee){var Ge=document.createElement("div");Ge.className=""+Te.toolbarButtonStyleClass.name,Ge.setAttribute("data-type-name",Ee.typeName),Ge.innerHTML=Ee.icon,Ge.addEventListener("click",function(){Te.markerToolbarButtonClicked(Ge,Ee)}),Te.buttons.push(Ge),Te.markerButtons.push(Ge)}),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 Ze=document.createElement("div");Ze.className=this.toolbarBlockStyleClass.name,Ze.style.whiteSpace="nowrap",Ze.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Ze),this.addActionButton(Ze,'<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(Ze,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},nt.prototype.addButtonClickListener=function(we){this.buttonClickListeners.push(we)},nt.prototype.removeButtonClickListener=function(we){this.buttonClickListeners.indexOf(we)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(we),1)},nt.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},nt.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var we=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Te=0;Te<this.markerButtons.length;Te++)Te<we||Te===we&&this.markerButtons.length-1===we?this.markerButtonBlock.appendChild(this.markerButtons[Te]):(Te===we&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Te]))}},nt.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},nt.prototype.resetButtonStyles=function(){var we=this;this.buttons.forEach(function(Te){Te.className=Te.className.replace(we.uiStyleSettings.toolbarButtonStyleColorsClassName?we.uiStyleSettings.toolbarButtonStyleColorsClassName:we.toolbarButtonStyleColorsClass.name,"").trim(),Te.className=Te.className.replace(we.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?we.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:we.toolbarActiveButtonStyleColorsClass.name,"").trim(),Te.className+=" "+(we.uiStyleSettings.toolbarButtonStyleColorsClassName?we.uiStyleSettings.toolbarButtonStyleColorsClassName:we.toolbarButtonStyleColorsClass.name)})},nt.prototype.addActionButton=function(we,Te,Ve){var Ze=this,Ee=document.createElement("div");switch(Ee.className=""+this.toolbarButtonStyleClass.name,Ee.innerHTML=Te,Ee.setAttribute("data-action",Ve),Ee.addEventListener("click",function(){Ze.actionToolbarButtonClicked(Ee,Ve)}),Ve){case"select":Ee.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Ee.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Ee.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Ee.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Ee.style.fill=this.uiStyleSettings.closeButtonColor}we.appendChild(Ee),this.buttons.push(Ee)},nt.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ve("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 ve("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ve("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ve("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 ve("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var we=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ve("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*we)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*we)+`px;
|
|
|
padding: `+we+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ve("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ve("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ke("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new ke("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},nt.prototype.markerToolbarButtonClicked=function(we,Te){this.setActiveButton(we),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ve){return Ve("marker",Te)}),this.markerButtonOverflowBlock.style.display="none"},nt.prototype.actionToolbarButtonClicked=function(we,Te){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ve){return Ve("action",Te)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},nt.prototype.setActiveButton=function(we){this.resetButtonStyles(),we.className=we.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),we.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},nt.prototype.setActiveMarkerButton=function(we){var Te=this.markerButtons.find(function(Ve){return Ve.getAttribute("data-type-name")===we});Te&&this.setActiveButton(Te)},nt.prototype.setCurrentMarker=function(we){var Te=this;this.currentMarker=we,this.buttons.filter(function(Ve){return/delete|notes/.test(Ve.getAttribute("data-action"))}).forEach(function(Ve){Te.currentMarker===void 0?(Ve.style.fillOpacity="0.4",Ve.style.pointerEvents="none"):(Ve.style.fillOpacity="1",Ve.style.pointerEvents="all")})},nt}(),fe=function(){function nt(we,Te,Ve,Ze){this.panels=[],this.panelButtons=[],this.markerjsContainer=we,this.displayMode=Te,this.uiStyleSettings=Ve,this.styles=Ze,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return nt.prototype.addStyles=function(){var we;this.toolboxStyleClass=this.styles.addClass(new ve("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 ve("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var Te=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ve("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ve("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ve("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 ve("toolbox-panel-row_colors",`
|
|
|
background-color: `+((we=this.uiStyleSettings.toolboxBackgroundColor)!==null&&we!==void 0?we:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ve("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Te)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Te)+`px;
|
|
|
padding: `+Te+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ve("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ve("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new ke("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ke("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},nt.prototype.show=function(we){var Te;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=we,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Te=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Te!==void 0?Te:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},nt.prototype.setPanelButtons=function(we){var Te,Ve,Ze=this;this.panels=we,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Te=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Te!==void 0?Te:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Ve=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ve!==void 0?Ve:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Ee){var Ge;Ee.uiStyleSettings=Ze.uiStyleSettings;var He=document.createElement("div");He.className=Ze.toolboxButtonStyleClass.name+" "+((Ge=Ze.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ge!==void 0?Ge:Ze.toolboxButtonStyleColorsClass.name),He.innerHTML=Ee.icon,He.title=Ee.title,He.addEventListener("click",function(){Ze.panelButtonClick(Ee)}),Ze.panelButtons.push(He),Ze.buttonRow.appendChild(He)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},nt.prototype.panelButtonClick=function(we){var Te=this,Ve=-1;if(we!==this.activePanel){Ve=this.panels.indexOf(we),this.panelRow.innerHTML="";var Ze=we.getUi();Ze.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Ze),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=we}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Te.displayMode==="inline"?Te.panelRow.style.display="none":Te.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Ee,Ge){var He,We;Ee.className=Te.toolboxButtonStyleClass.name+" "+(Ge===Ve?""+((He=Te.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&He!==void 0?He:Te.toolboxActiveButtonStyleColorsClass.name):""+((We=Te.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&We!==void 0?We:Te.toolboxButtonStyleColorsClass.name))})},nt}(),z=function(nt,we){this.title=nt,this.icon=we},ee=function(nt){function we(Te,Ve,Ze,Ee){var Ge=nt.call(this,Te,Ee||'<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 Ge.colors=[],Ge.addTransparent=!1,Ge.colorBoxes=[],Ge.colors=Ve,Ge.currentColor=Ze,Ge.setCurrentColor=Ge.setCurrentColor.bind(Ge),Ge.getColorBox=Ge.getColorBox.bind(Ge),Ge}return Pt(we,nt),we.prototype.getUi=function(){var Te=this,Ve=document.createElement("div");return Ve.style.overflow="hidden",Ve.style.whiteSpace="nowrap",this.colors.forEach(function(Ze){var Ee=Te.getColorBox(Ze);Ve.appendChild(Ee),Te.colorBoxes.push(Ee)}),Ve},we.prototype.getColorBox=function(Te){var Ve=this,Ze=this.uiStyleSettings.toolbarHeight/4,Ee=this.uiStyleSettings.toolbarHeight-Ze,Ge=document.createElement("div");Ge.style.display="inline-block",Ge.style.boxSizing="content-box",Ge.style.width=Ee-2+"px",Ge.style.height=Ee-2+"px",Ge.style.padding="1px",Ge.style.marginRight="2px",Ge.style.marginBottom="2px",Ge.style.borderWidth="2px",Ge.style.borderStyle="solid",Ge.style.borderRadius=(Ee+2)/2+"px",Ge.style.borderColor=Te===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ge.addEventListener("click",function(){Ve.setCurrentColor(Te,Ge)});var He=document.createElement("div");return He.style.display="inline-block",He.style.width=Ee-2+"px",He.style.height=Ee-2+"px",He.style.backgroundColor=Te,He.style.borderRadius=Ee/2+"px",Te==="transparent"&&(He.style.fill=this.uiStyleSettings.toolboxAccentColor,He.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>`),Ge.appendChild(He),Ge},we.prototype.setCurrentColor=function(Te,Ve){var Ze=this;this.currentColor=Te,this.colorBoxes.forEach(function(Ee){Ee.style.borderColor=Ee===Ve?Ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Te)},we}(z),ae=function(){function nt(we,Te,Ve){this._state="new",this._isSelected=!1,this._container=we,this._overlayContainer=Te,this.globalSettings=Ve,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(nt.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),nt.prototype.ownsTarget=function(we){return!1},Object.defineProperty(nt.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),nt.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},nt.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},nt.prototype.pointerDown=function(we,Te){},nt.prototype.dblClick=function(we,Te){},nt.prototype.manipulate=function(we){},nt.prototype.pointerUp=function(we){this.stateChanged()},nt.prototype.dispose=function(){},nt.prototype.addMarkerVisualToContainer=function(we){this.container.childNodes.length>0?this.container.insertBefore(we,this.container.childNodes[0]):this.container.appendChild(we)},nt.prototype.getState=function(){return{typeName:nt.typeName,state:this.state,notes:this.notes}},nt.prototype.restoreState=function(we){this._state=we.state,this.notes=we.notes},nt.prototype.scale=function(we,Te){},nt.prototype.colorChanged=function(we){this.onColorChanged&&this.onColorChanged(we),this.stateChanged()},nt.prototype.fillColorChanged=function(we){this.onFillColorChanged&&this.onFillColorChanged(we),this.stateChanged()},nt.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var we=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),we.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(we)&&this.onStateChanged(this)}},nt.typeName="MarkerBase",nt}(),re=function(){function nt(){this.findGripByVisual=this.findGripByVisual.bind(this)}return nt.prototype.findGripByVisual=function(we){return this.topLeft.ownsTarget(we)?this.topLeft:this.topCenter.ownsTarget(we)?this.topCenter:this.topRight.ownsTarget(we)?this.topRight:this.centerLeft.ownsTarget(we)?this.centerLeft:this.centerRight.ownsTarget(we)?this.centerRight:this.bottomLeft.ownsTarget(we)?this.bottomLeft:this.bottomCenter.ownsTarget(we)?this.bottomCenter:this.bottomRight.ownsTarget(we)?this.bottomRight:void 0},nt}(),le=function(){function nt(){this.GRIP_SIZE=10,this.visual=me.createGroup(),this.visual.appendChild(me.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(me.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return nt.prototype.ownsTarget=function(we){return we===this.visual||we===this.visual.childNodes[0]||we===this.visual.childNodes[1]},nt}(),ue=function(){function nt(){}return nt.toITransformMatrix=function(we){return{a:we.a,b:we.b,c:we.c,d:we.d,e:we.e,f:we.f}},nt.toSVGMatrix=function(we,Te){return we.a=Te.a,we.b=Te.b,we.c=Te.c,we.d=Te.d,we.e=Te.e,we.f=Te.f,we},nt}(),pe=function(nt){function we(Te,Ve,Ze){var Ee=nt.call(this,Te,Ve,Ze)||this;return Ee.left=0,Ee.top=0,Ee.width=0,Ee.height=0,Ee.defaultSize={x:50,y:20},Ee.offsetX=0,Ee.offsetY=0,Ee.rotationAngle=0,Ee.CB_DISTANCE=10,Ee._suppressMarkerCreateEvent=!1,Ee.container.transform.baseVal.appendItem(me.createTransform()),Ee.setupControlBox(),Ee}return Pt(we,nt),Object.defineProperty(we.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"visual",{get:function(){return this._visual},set:function(Te){this._visual=Te;var Ve=me.createTransform();this._visual.transform.baseVal.appendItem(Ve)},enumerable:!1,configurable:!0}),we.prototype.ownsTarget=function(Te){return!!nt.prototype.ownsTarget.call(this,Te)||!!(this.controlGrips.findGripByVisual(Te)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Te))},we.prototype.pointerDown=function(Te,Ve){nt.prototype.pointerDown.call(this,Te,Ve),this.state==="new"&&(this.left=Te.x,this.top=Te.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Ze=this.unrotatePoint(Te);if(this.manipulationStartX=Ze.x,this.manipulationStartY=Ze.y,this.offsetX=Ze.x-this.left,this.offsetY=Ze.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ve),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ve)){this.activeGrip=this.rotatorGrip;var Ee=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Ee.x-this.width/2,this.top=Ee.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ge=this.container.transform.baseVal.getItem(0);Ge.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ge,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},we.prototype.pointerUp=function(Te){var Ve=this.state;nt.prototype.pointerUp.call(this,Te),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Te),this._state="select",Ve==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},we.prototype.moveVisual=function(Te){this.visual.style.transform="translate("+Te.x+"px, "+Te.y+"px)"},we.prototype.manipulate=function(Te){var Ve=this.unrotatePoint(Te);this.state==="creating"?this.resize(Te):this.state==="move"?(this.left=this.manipulationStartLeft+(Ve.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ve.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ve):this.state==="rotate"&&this.rotate(Te)},we.prototype.resize=function(Te){var Ve=this.manipulationStartLeft,Ze=this.manipulationStartWidth,Ee=this.manipulationStartTop,Ge=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ve=this.manipulationStartLeft+Te.x-this.manipulationStartX,Ze=this.manipulationStartWidth+this.manipulationStartLeft-Ve;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Ze=this.manipulationStartWidth+Te.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Ee=this.manipulationStartTop+Te.y-this.manipulationStartY,Ge=this.manipulationStartHeight+this.manipulationStartTop-Ee;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ge=this.manipulationStartHeight+Te.y-this.manipulationStartY}Ze>=0?(this.left=Ve,this.width=Ze):(this.left=Ve+Ze,this.width=-Ze),Ge>=0?(this.top=Ee,this.height=Ge):(this.top=Ee+Ge,this.height=-Ge),this.setSize()},we.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},we.prototype.rotate=function(Te){if(Math.abs(Te.x-this.centerX)>.1){var Ve=Math.sign(Te.x-this.centerX);this.rotationAngle=180*Math.atan((Te.y-this.centerY)/(Te.x-this.centerX))/Math.PI+90*Ve,this.applyRotation()}},we.prototype.applyRotation=function(){var Te=this.container.transform.baseVal.getItem(0);Te.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Te,0)},we.prototype.rotatePoint=function(Te){if(this.rotationAngle===0)return Te;var Ve=this.container.getCTM(),Ze=me.createPoint(Te.x,Te.y);return{x:(Ze=Ze.matrixTransform(Ve)).x,y:Ze.y}},we.prototype.unrotatePoint=function(Te){if(this.rotationAngle===0)return Te;var Ve=this.container.getCTM();Ve=Ve.inverse();var Ze=me.createPoint(Te.x,Te.y);return{x:(Ze=Ze.matrixTransform(Ve)).x,y:Ze.y}},we.prototype.select=function(){nt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},we.prototype.deselect=function(){nt.prototype.deselect.call(this),this.controlBox.style.display="none"},we.prototype.setupControlBox=function(){this.controlBox=me.createGroup();var Te=me.createTransform();Te.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Te),this.container.appendChild(this.controlBox),this.controlRect=me.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=me.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 re,this.addControlGrips(),this.controlBox.style.display="none"},we.prototype.adjustControlBox=function(){var Te=this.controlBox.transform.baseVal.getItem(0);Te.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Te,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()},we.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()},we.prototype.createGrip=function(){var Te=new le;return Te.visual.transform.baseVal.appendItem(me.createTransform()),this.controlBox.appendChild(Te.visual),Te},we.prototype.positionGrips=function(){var Te=this.controlGrips.topLeft.GRIP_SIZE,Ve=-Te/2,Ze=Ve,Ee=(this.width+this.CB_DISTANCE)/2-Te/2,Ge=(this.height+this.CB_DISTANCE)/2-Te/2,He=this.height+this.CB_DISTANCE-Te/2,We=this.width+this.CB_DISTANCE-Te/2;this.positionGrip(this.controlGrips.topLeft.visual,Ve,Ze),this.positionGrip(this.controlGrips.topCenter.visual,Ee,Ze),this.positionGrip(this.controlGrips.topRight.visual,We,Ze),this.positionGrip(this.controlGrips.centerLeft.visual,Ve,Ge),this.positionGrip(this.controlGrips.centerRight.visual,We,Ge),this.positionGrip(this.controlGrips.bottomLeft.visual,Ve,He),this.positionGrip(this.controlGrips.bottomCenter.visual,Ee,He),this.positionGrip(this.controlGrips.bottomRight.visual,We,He),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Ee,Ze-3*this.CB_DISTANCE)},we.prototype.positionGrip=function(Te,Ve,Ze){var Ee=Te.transform.baseVal.getItem(0);Ee.setTranslate(Ve,Ze),Te.transform.baseVal.replaceItem(Ee,0)},we.prototype.hideControlBox=function(){this.controlBox.style.display="none"},we.prototype.showControlBox=function(){this.controlBox.style.display=""},we.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ue.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ue.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},nt.prototype.getState.call(this))},we.prototype.restoreState=function(Te){nt.prototype.restoreState.call(this,Te);var Ve=Te;this.left=Ve.left,this.top=Ve.top,this.width=Ve.width,this.height=Ve.height,this.rotationAngle=Ve.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ue.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ve.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ue.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ve.containerTransformMatrix))},we.prototype.scale=function(Te,Ve){nt.prototype.scale.call(this,Te,Ve);var Ze=this.rotatePoint({x:this.left,y:this.top}),Ee=this.unrotatePoint({x:Ze.x*Te,y:Ze.y*Ve});this.left=Ee.x,this.top=Ee.y,this.width=this.width*Te,this.height=this.height*Ve,this.adjustControlBox()},we}(ae),Ce=function(nt){function we(Te,Ve,Ze){var Ee=nt.call(this,Te,Ve,Ze)||this;return Ee.fillColor="transparent",Ee.strokeColor="transparent",Ee.strokeWidth=0,Ee.strokeDasharray="",Ee.opacity=1,Ee.setStrokeColor=Ee.setStrokeColor.bind(Ee),Ee.setFillColor=Ee.setFillColor.bind(Ee),Ee.setStrokeWidth=Ee.setStrokeWidth.bind(Ee),Ee.setStrokeDasharray=Ee.setStrokeDasharray.bind(Ee),Ee.createVisual=Ee.createVisual.bind(Ee),Ee}return Pt(we,nt),we.prototype.ownsTarget=function(Te){return!(!nt.prototype.ownsTarget.call(this,Te)&&Te!==this.visual)},we.prototype.createVisual=function(){this.visual=me.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)},we.prototype.pointerDown=function(Te,Ve){nt.prototype.pointerDown.call(this,Te,Ve),this.state==="new"&&(this.createVisual(),this.moveVisual(Te),this._state="creating")},we.prototype.manipulate=function(Te){nt.prototype.manipulate.call(this,Te)},we.prototype.resize=function(Te){nt.prototype.resize.call(this,Te),this.setSize()},we.prototype.setSize=function(){nt.prototype.setSize.call(this),me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},we.prototype.pointerUp=function(Te){nt.prototype.pointerUp.call(this,Te),this.setSize()},we.prototype.setStrokeColor=function(Te){this.strokeColor=Te,this.visual&&me.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Te),this.stateChanged()},we.prototype.setFillColor=function(Te){this.fillColor=Te,this.visual&&me.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},we.prototype.setStrokeWidth=function(Te){this.strokeWidth=Te,this.visual&&me.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},we.prototype.setStrokeDasharray=function(Te){this.strokeDasharray=Te,this.visual&&me.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},we.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},nt.prototype.getState.call(this))},we.prototype.restoreState=function(Te){var Ve=Te;this.fillColor=Ve.fillColor,this.strokeColor=Ve.strokeColor,this.strokeWidth=Ve.strokeWidth,this.strokeDasharray=Ve.strokeDasharray,this.opacity=Ve.opacity,this.createVisual(),nt.prototype.restoreState.call(this,Te),this.setSize()},we.prototype.scale=function(Te,Ve){nt.prototype.scale.call(this,Te,Ve),this.setSize()},we.title="Rectangle marker",we}(pe),Pe=function(nt){function we(Te,Ve,Ze,Ee){var Ge=nt.call(this,Te,Ee||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Ge.widths=[],Ge.widthBoxes=[],Ge.widths=Ve,Ge.currentWidth=Ze,Ge.setCurrentWidth=Ge.setCurrentWidth.bind(Ge),Ge}return Pt(we,nt),we.prototype.getUi=function(){var Te=this,Ve=document.createElement("div");return Ve.style.display="flex",Ve.style.overflow="hidden",Ve.style.flexGrow="2",this.widths.forEach(function(Ze){var Ee=document.createElement("div");Ee.style.display="flex",Ee.style.flexGrow="2",Ee.style.alignItems="center",Ee.style.justifyContent="space-between",Ee.style.padding="5px",Ee.style.borderWidth="2px",Ee.style.borderStyle="solid",Ee.style.borderColor=Ze===Te.currentWidth?Te.uiStyleSettings.toolboxAccentColor:"transparent",Ee.addEventListener("click",function(){Te.setCurrentWidth(Ze,Ee)}),Ve.appendChild(Ee);var Ge=document.createElement("div");Ge.innerText=Ze.toString(),Ge.style.marginRight="5px",Ee.appendChild(Ge);var He=document.createElement("div");He.style.minHeight="20px",He.style.flexGrow="2",He.style.display="flex",He.style.alignItems="center";var We=document.createElement("hr");We.style.minWidth="20px",We.style.border="0px",We.style.borderTop=Ze+"px solid "+Te.uiStyleSettings.toolboxColor,We.style.flexGrow="2",He.appendChild(We),Ee.appendChild(He),Te.widthBoxes.push(Ee)}),Ve},we.prototype.setCurrentWidth=function(Te,Ve){var Ze=this;this.currentWidth=Te,this.widthBoxes.forEach(function(Ee){Ee.style.borderColor=Ee===Ve?Ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},we}(z),Ie=function(nt){function we(Te,Ve,Ze,Ee){var Ge=nt.call(this,Te,Ee||'<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 Ge.styles=[],Ge.styleBoxes=[],Ge.styles=Ve,Ge.currentStyle=Ze,Ge.setCurrentStyle=Ge.setCurrentStyle.bind(Ge),Ge}return Pt(we,nt),we.prototype.getUi=function(){var Te=this,Ve=document.createElement("div");return Ve.style.display="flex",Ve.style.overflow="hidden",Ve.style.flexGrow="2",this.styles.forEach(function(Ze){var Ee=document.createElement("div");Ee.style.display="flex",Ee.style.alignItems="center",Ee.style.justifyContent="space-between",Ee.style.padding="5px",Ee.style.borderWidth="2px",Ee.style.borderStyle="solid",Ee.style.overflow="hidden",Ee.style.maxWidth=100/Te.styles.length-5+"%",Ee.style.borderColor=Ze===Te.currentStyle?Te.uiStyleSettings.toolboxAccentColor:"transparent",Ee.addEventListener("click",function(){Te.setCurrentStyle(Ze,Ee)}),Ve.appendChild(Ee);var Ge=document.createElement("div");Ge.style.minHeight="20px",Ge.style.flexGrow="2",Ge.style.overflow="hidden";var He=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Te.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Ze!==""?'stroke-dasharray="'+Ze+'"':"")+` />
|
|
|
</svg>`;Ge.innerHTML=He,Ee.appendChild(Ge),Te.styleBoxes.push(Ee)}),Ve},we.prototype.setCurrentStyle=function(Te,Ve){var Ze=this;this.currentStyle=Te,this.styleBoxes.forEach(function(Ee){Ee.style.borderColor=Ee===Ve?Ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},we}(z),Oe=function(nt){function we(Te,Ve,Ze){var Ee=nt.call(this,Te,Ve,Ze)||this;return Ee.strokeColor=Ze.defaultColor,Ee.strokeWidth=Ze.defaultStrokeWidth,Ee.strokeDasharray=Ze.defaultStrokeDasharray,Ee.strokePanel=new ee("Line color",Ze.defaultColorSet,Ze.defaultColor),Ee.strokePanel.onColorChanged=Ee.setStrokeColor,Ee.strokeWidthPanel=new Pe("Line width",Ze.defaultStrokeWidths,Ze.defaultStrokeWidth),Ee.strokeWidthPanel.onWidthChanged=Ee.setStrokeWidth,Ee.strokeStylePanel=new Ie("Line style",Ze.defaultStrokeDasharrays,Ze.defaultStrokeDasharray),Ee.strokeStylePanel.onStyleChanged=Ee.setStrokeDasharray,Ee}return Pt(we,nt),Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var Te=nt.prototype.getState.call(this);return Te.typeName=we.typeName,Te},we.typeName="FrameMarker",we.title="Frame marker",we.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',we}(Ce),Ae=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},je=function(nt){function we(Te,Ve,Ze){var Ee=nt.call(this,Te,Ve,Ze)||this;return Ee.x1=0,Ee.y1=0,Ee.x2=0,Ee.y2=0,Ee.defaultLength=50,Ee.manipulationStartX=0,Ee.manipulationStartY=0,Ee.manipulationStartX1=0,Ee.manipulationStartY1=0,Ee.manipulationStartX2=0,Ee.manipulationStartY2=0,Ee.setupControlBox(),Ee}return Pt(we,nt),we.prototype.ownsTarget=function(Te){return!!nt.prototype.ownsTarget.call(this,Te)||!(!this.grip1.ownsTarget(Te)&&!this.grip2.ownsTarget(Te))},we.prototype.pointerDown=function(Te,Ve){nt.prototype.pointerDown.call(this,Te,Ve),this.manipulationStartX=Te.x,this.manipulationStartY=Te.y,this.state==="new"&&(this.x1=Te.x,this.y1=Te.y,this.x2=Te.x,this.y2=Te.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(Ve)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ve)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},we.prototype.pointerUp=function(Te){var Ve=this.state;nt.prototype.pointerUp.call(this,Te),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(Te),this._state="select",Ve==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},we.prototype.adjustVisual=function(){},we.prototype.manipulate=function(Te){this.state==="creating"?this.resize(Te):this.state==="move"?(this.x1=this.manipulationStartX1+Te.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Te.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Te.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Te.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Te)},we.prototype.resize=function(Te){switch(this.activeGrip){case this.grip1:this.x1=Te.x,this.y1=Te.y;break;case this.grip2:case void 0:this.x2=Te.x,this.y2=Te.y}this.adjustVisual(),this.adjustControlBox()},we.prototype.select=function(){nt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},we.prototype.deselect=function(){nt.prototype.deselect.call(this),this.controlBox.style.display="none"},we.prototype.setupControlBox=function(){this.controlBox=me.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},we.prototype.adjustControlBox=function(){this.positionGrips()},we.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},we.prototype.createGrip=function(){var Te=new le;return Te.visual.transform.baseVal.appendItem(me.createTransform()),this.controlBox.appendChild(Te.visual),Te},we.prototype.positionGrips=function(){var Te=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Te/2,this.y1-Te/2),this.positionGrip(this.grip2.visual,this.x2-Te/2,this.y2-Te/2)},we.prototype.positionGrip=function(Te,Ve,Ze){var Ee=Te.transform.baseVal.getItem(0);Ee.setTranslate(Ve,Ze),Te.transform.baseVal.replaceItem(Ee,0)},we.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},nt.prototype.getState.call(this))},we.prototype.restoreState=function(Te){nt.prototype.restoreState.call(this,Te);var Ve=Te;this.x1=Ve.x1,this.y1=Ve.y1,this.x2=Ve.x2,this.y2=Ve.y2},we.prototype.scale=function(Te,Ve){nt.prototype.scale.call(this,Te,Ve),this.x1=this.x1*Te,this.y1=this.y1*Ve,this.x2=this.x2*Te,this.y2=this.y2*Ve,this.adjustVisual(),this.adjustControlBox()},we}(ae),Be=function(nt){function we(Te,Ve,Ze){var Ee=nt.call(this,Te,Ve,Ze)||this;return Ee.strokeColor="transparent",Ee.strokeWidth=0,Ee.strokeDasharray="",Ee.setStrokeColor=Ee.setStrokeColor.bind(Ee),Ee.setStrokeWidth=Ee.setStrokeWidth.bind(Ee),Ee.setStrokeDasharray=Ee.setStrokeDasharray.bind(Ee),Ee.strokeColor=Ze.defaultColor,Ee.strokeWidth=Ze.defaultStrokeWidth,Ee.strokeDasharray=Ze.defaultStrokeDasharray,Ee.strokePanel=new ee("Line color",Ze.defaultColorSet,Ze.defaultColor),Ee.strokePanel.onColorChanged=Ee.setStrokeColor,Ee.strokeWidthPanel=new Pe("Line width",Ze.defaultStrokeWidths,Ze.defaultStrokeWidth),Ee.strokeWidthPanel.onWidthChanged=Ee.setStrokeWidth,Ee.strokeStylePanel=new Ie("Line style",Ze.defaultStrokeDasharrays,Ze.defaultStrokeDasharray),Ee.strokeStylePanel.onStyleChanged=Ee.setStrokeDasharray,Ee}return Pt(we,nt),we.prototype.ownsTarget=function(Te){return!(!nt.prototype.ownsTarget.call(this,Te)&&Te!==this.visual&&Te!==this.selectorLine&&Te!==this.visibleLine)},we.prototype.createVisual=function(){this.visual=me.createGroup(),this.selectorLine=me.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=me.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)},we.prototype.pointerDown=function(Te,Ve){nt.prototype.pointerDown.call(this,Te,Ve),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},we.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()),me.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),me.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),me.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},we.prototype.setStrokeColor=function(Te){this.strokeColor=Te,this.adjustVisual(),this.colorChanged(Te)},we.prototype.setStrokeWidth=function(Te){this.strokeWidth=Te,this.adjustVisual()},we.prototype.setStrokeDasharray=function(Te){this.strokeDasharray=Te,this.adjustVisual(),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var Te=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},nt.prototype.getState.call(this));return Te.typeName=we.typeName,Te},we.prototype.restoreState=function(Te){nt.prototype.restoreState.call(this,Te);var Ve=Te;this.strokeColor=Ve.strokeColor,this.strokeWidth=Ve.strokeWidth,this.strokeDasharray=Ve.strokeDasharray,this.createVisual(),this.adjustVisual()},we.typeName="LineMarker",we.title="Line marker",we.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',we}(je),_e=function(nt){function we(Te,Ve,Ze,Ee){var Ge=nt.call(this,Te,Ee||'<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 Ge.fonts=[],Ge.fontBoxes=[],Ge.fonts=Ve,Ge.currentFont=Ze,Ge.setCurrentFont=Ge.setCurrentFont.bind(Ge),Ge}return Pt(we,nt),we.prototype.getUi=function(){var Te=this,Ve=document.createElement("div");return Ve.style.overflow="hidden",Ve.style.flexGrow="2",this.fonts.forEach(function(Ze){var Ee=document.createElement("div");Ee.style.display="inline-block",Ee.style.alignItems="center",Ee.style.justifyContent="space-between",Ee.style.padding="5px",Ee.style.borderWidth="2px",Ee.style.borderStyle="solid",Ee.style.overflow="hidden",Ee.style.maxWidth=100/Te.fonts.length-5+"%",Ee.style.borderColor=Ze===Te.currentFont?Te.uiStyleSettings.toolboxAccentColor:"transparent",Ee.addEventListener("click",function(){Te.setCurrentFont(Ze,Ee)}),Ve.appendChild(Ee);var Ge=document.createElement("div");Ge.style.display="flex",Ge.style.minHeight="20px",Ge.style.flexGrow="2",Ge.style.fontFamily=Ze,Ge.style.overflow="hidden";var He=document.createElement("div");He.style.whiteSpace="nowrap",He.style.overflow="hidden",He.style.textOverflow="ellipsis",He.innerHTML="The quick brown fox jumps over the lazy dog",Ge.appendChild(He),Ee.appendChild(Ge),Te.fontBoxes.push(Ee)}),Ve},we.prototype.setCurrentFont=function(Te,Ve){var Ze=this;this.currentFont=Te,this.fontBoxes.forEach(function(Ee){Ee.style.borderColor=Ee===Ve?Ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},we}(z),qe=function(nt){function we(Te,Ve,Ze){var Ee=nt.call(this,Te,Ve,Ze)||this;return Ee.color="transparent",Ee.padding=5,Ee.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Ee.text=Ee.DEFAULT_TEXT,Ee.isMoved=!1,Ee.color=Ze.defaultColor,Ee.fontFamily=Ze.defaultFontFamily,Ee.defaultSize={x:100,y:30},Ee.setColor=Ee.setColor.bind(Ee),Ee.setFont=Ee.setFont.bind(Ee),Ee.renderText=Ee.renderText.bind(Ee),Ee.sizeText=Ee.sizeText.bind(Ee),Ee.textEditDivClicked=Ee.textEditDivClicked.bind(Ee),Ee.showTextEditor=Ee.showTextEditor.bind(Ee),Ee.setSize=Ee.setSize.bind(Ee),Ee.positionTextEditor=Ee.positionTextEditor.bind(Ee),Ee.colorPanel=new ee("Color",Ze.defaultColorSet,Ze.defaultColor),Ee.colorPanel.onColorChanged=Ee.setColor,Ee.fontFamilyPanel=new _e("Font",Ze.defaultFontFamilies,Ze.defaultFontFamily),Ee.fontFamilyPanel.onFontChanged=Ee.setFont,Ee}return Pt(we,nt),we.prototype.ownsTarget=function(Te){if(nt.prototype.ownsTarget.call(this,Te)||Te===this.visual||Te===this.textElement||Te===this.bgRectangle)return!0;var Ve=!1;return this.textElement.childNodes.forEach(function(Ze){Ze===Te&&(Ve=!0)}),Ve},we.prototype.createVisual=function(){this.visual=me.createGroup(),this.bgRectangle=me.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=me.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(me.createTransform()),this.textElement.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},we.prototype.pointerDown=function(Te,Ve){nt.prototype.pointerDown.call(this,Te,Ve),this.isMoved=!1,this.pointerDownPoint=Te,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Te),this._state="creating")},we.prototype.renderText=function(){var Te=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(Ve){Te.textElement.appendChild(me.createTSpan(Ve.trim()===""?" ":Ve.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},we.prototype.getTextScale=function(){var Te=this.textElement.getBBox(),Ve=1;if(Te.width>0&&Te.height>0){var Ze=(1*this.width-this.width*this.padding*2/100)/Te.width,Ee=(1*this.height-this.height*this.padding*2/100)/Te.height;Ve=Math.min(Ze,Ee)}return Ve},we.prototype.getTextPosition=function(Te){var Ve=this.textElement.getBBox(),Ze=0,Ee=0;return Ve.width>0&&Ve.height>0&&(Ze=(this.width-Ve.width*Te)/2,Ee=this.height/2-Ve.height*Te/2),{x:Ze,y:Ee}},we.prototype.sizeText=function(){var Te=this.textElement.getBBox(),Ve=this.getTextScale(),Ze=this.getTextPosition(Ve);Ze.y-=Te.y*Ve,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Ze.x+"px, "+Ze.y+"px) scale("+Ve+", "+Ve+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Ze.x,Ze.y),this.textElement.transform.baseVal.getItem(1).setScale(Ve,Ve))},we.prototype.manipulate=function(Te){nt.prototype.manipulate.call(this,Te),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Te.x-this.pointerDownPoint.x)>5||Math.abs(Te.y-this.pointerDownPoint.y)>5)},we.prototype.resize=function(Te){nt.prototype.resize.call(this,Te),this.isMoved=!0,this.setSize(),this.sizeText()},we.prototype.setSize=function(){nt.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},we.prototype.pointerUp=function(Te){var Ve=this.state;Ve==="creating"&&(this._suppressMarkerCreateEvent=!0),nt.prototype.pointerUp.call(this,Te),this.setSize(),(Ve==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},we.prototype.showTextEditor=function(){var Te=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(Ve){Ve.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ve=Number.parseFloat(Te.textEditor.style.fontSize);Te.textEditor.clientWidth>=Number.parseInt(Te.textEditor.style.maxWidth)&&Ve>.9;)Ve-=.1,Te.textEditor.style.fontSize=Math.max(Ve,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ve){Ve.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ve){if(Ve.clipboardData){var Ze=Ve.clipboardData.getData("text"),Ee=window.getSelection();if(!Ee.rangeCount)return!1;Ee.deleteFromDocument(),Ee.getRangeAt(0).insertNode(document.createTextNode(Ze)),Ve.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Te.textEditDivClicked(Te.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},we.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Te=this.getTextScale(),Ve=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Ze=this.textElement.getBBox(),Ee={x:Ze.width*Te,y:Ze.height*Te};Ve.x-=Ee.x/2,Ve.y-=Ee.y/2,this.textEditor.style.top=Ve.y+"px",this.textEditor.style.left=Ve.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ve.x+"px",this.textEditor.style.fontSize=Math.max(16*Te,12)+"px",this.textElement.style.display="none"}},we.prototype.textEditDivClicked=function(Te){this.text=Te.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},we.prototype.select=function(){nt.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},we.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),nt.prototype.deselect.call(this)},we.prototype.dblClick=function(Te,Ve){nt.prototype.dblClick.call(this,Te,Ve),this.showTextEditor()},we.prototype.setColor=function(Te){this.textElement&&me.setAttributes(this.textElement,[["fill",Te]]),this.color=Te,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Te)},we.prototype.setFont=function(Te){this.textElement&&me.setAttributes(this.textElement,[["font-family",Te]]),this.fontFamily=Te,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},we.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},we.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var Te=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},nt.prototype.getState.call(this));return Te.typeName=we.typeName,Te},we.prototype.restoreState=function(Te){var Ve=Te;this.color=Ve.color,this.fontFamily=Ve.fontFamily,this.padding=Ve.padding,this.text=Ve.text,this.createVisual(),nt.prototype.restoreState.call(this,Te),this.setSize()},we.prototype.scale=function(Te,Ve){nt.prototype.scale.call(this,Te,Ve),this.setSize(),this.sizeText(),this.positionTextEditor()},we.typeName="TextMarker",we.title="Text marker",we.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>',we}(pe),ze=function(nt){function we(Te,Ve,Ze){var Ee=nt.call(this,Te,Ve,Ze)||this;return Ee.color="transparent",Ee.lineWidth=3,Ee.drawing=!1,Ee.pixelRatio=1,Ee.color=Ze.defaultColor,Ee.lineWidth=Ze.defaultStrokeWidth,Ee.pixelRatio=Ze.freehandPixelRatio,Ee.setColor=Ee.setColor.bind(Ee),Ee.addCanvas=Ee.addCanvas.bind(Ee),Ee.finishCreation=Ee.finishCreation.bind(Ee),Ee.setLineWidth=Ee.setLineWidth.bind(Ee),Ee.colorPanel=new ee("Color",Ze.defaultColorSet,Ze.defaultColor),Ee.colorPanel.onColorChanged=Ee.setColor,Ee.lineWidthPanel=new Pe("Line width",Ze.defaultStrokeWidths,Ze.defaultStrokeWidth),Ee.lineWidthPanel.onWidthChanged=Ee.setLineWidth,Ee}return Pt(we,nt),we.prototype.ownsTarget=function(Te){return!(!nt.prototype.ownsTarget.call(this,Te)&&Te!==this.visual&&Te!==this.drawingImage)},we.prototype.createVisual=function(){this.visual=me.createGroup(),this.drawingImage=me.createImage(),this.visual.appendChild(this.drawingImage);var Te=me.createTransform();this.visual.transform.baseVal.appendItem(Te),this.addMarkerVisualToContainer(this.visual)},we.prototype.pointerDown=function(Te,Ve){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(Te.x,Te.y),this.drawing=!0):nt.prototype.pointerDown.call(this,Te,Ve)},we.prototype.manipulate=function(Te){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Te.x,Te.y),this.canvasContext.stroke()):nt.prototype.manipulate.call(this,Te)},we.prototype.resize=function(Te){nt.prototype.resize.call(this,Te),me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},we.prototype.pointerUp=function(Te){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):nt.prototype.pointerUp.call(this,Te)},we.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)},we.prototype.select=function(){this.state==="creating"&&this.finishCreation(),nt.prototype.select.call(this)},we.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),nt.prototype.deselect.call(this)},we.prototype.finishCreation=function(){for(var Te=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ve=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Ze=Ve[0],Ee=Ve[1],Ge=Ve[2],He=Ve[3],We=!1,Xe=0;Xe<this.canvasElement.height;Xe++)for(var ct=0;ct<this.canvasElement.width;ct++)Te.data[Xe*this.canvasElement.width*4+4*ct+3]>0&&(We=!0,Xe<Ee&&(Ee=Xe),ct<Ze&&(Ze=ct),Xe>He&&(He=Xe),ct>Ge&&(Ge=ct));if(We){this.left=Ze/this.pixelRatio,this.top=Ee/this.pixelRatio,this.width=(Ge-Ze)/this.pixelRatio,this.height=(He-Ee)/this.pixelRatio;var Et=document.createElement("canvas");Et.width=Ge-Ze,Et.height=He-Ee,Et.getContext("2d").putImageData(this.canvasContext.getImageData(Ze,Ee,Ge-Ze,He-Ee),0,0),this.drawingImgUrl=Et.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},we.prototype.setDrawingImage=function(){me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},we.prototype.setColor=function(Te){this.color=Te,this.colorChanged(Te)},we.prototype.setLineWidth=function(Te){this.lineWidth=Te},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var Te=Object.assign({drawingImgUrl:this.drawingImgUrl},nt.prototype.getState.call(this));return Te.typeName=we.typeName,Te},we.prototype.restoreState=function(Te){this.createVisual(),nt.prototype.restoreState.call(this,Te),this.drawingImgUrl=Te.drawingImgUrl,this.setDrawingImage()},we.prototype.scale=function(Te,Ve){nt.prototype.scale.call(this,Te,Ve),this.setDrawingImage()},we.typeName="FreehandMarker",we.title="Freehand marker",we.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>',we}(pe),Ye=function(nt){function we(Te,Ve,Ze){var Ee=nt.call(this,Te,Ze||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Ee.typeBoxes=[],Ee.currentType=Ve,Ee.setCurrentType=Ee.setCurrentType.bind(Ee),Ee}return Pt(we,nt),we.prototype.getUi=function(){var Te=this,Ve=document.createElement("div");Ve.style.display="flex",Ve.style.overflow="hidden",Ve.style.flexGrow="2";for(var Ze=function(He){var We="both";switch(He){case 0:We="both";break;case 1:We="start";break;case 2:We="end";break;case 3:We="none"}var Xe=document.createElement("div");if(Xe.style.display="flex",Xe.style.flexGrow="2",Xe.style.alignItems="center",Xe.style.justifyContent="space-between",Xe.style.padding="5px",Xe.style.borderWidth="2px",Xe.style.borderStyle="solid",Xe.style.borderColor=We===Ee.currentType?Ee.uiStyleSettings.toolboxAccentColor:"transparent",Xe.addEventListener("click",function(){Te.setCurrentType(We,Xe)}),Ve.appendChild(Xe),We==="both"||We==="start"){var ct=document.createElement("div");ct.style.display="flex",ct.style.alignItems="center",ct.style.minHeight="20px",ct.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="`+(Ee.uiStyleSettings!==void 0?Ee.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,ct.style.marginLeft="5px",Xe.appendChild(ct)}var Et=document.createElement("div");Et.style.display="flex",Et.style.alignItems="center",Et.style.minHeight="20px",Et.style.flexGrow="2";var ht=document.createElement("hr");if(ht.style.minWidth="20px",ht.style.border="0px",ht.style.borderTop="3px solid "+(Ee.uiStyleSettings!==void 0?Ee.uiStyleSettings.toolboxColor:"#eeeeee"),ht.style.flexGrow="2",Et.appendChild(ht),Xe.appendChild(Et),We==="both"||We==="end"){var It=document.createElement("div");It.style.display="flex",It.style.alignItems="center",It.style.minHeight="20px",It.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="`+(Ee.uiStyleSettings!==void 0?Ee.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,It.style.marginRight="5px",Xe.appendChild(It)}Ee.typeBoxes.push(Xe)},Ee=this,Ge=0;Ge<4;Ge++)Ze(Ge);return Ve},we.prototype.setCurrentType=function(Te,Ve){var Ze=this;this.currentType=Te,this.typeBoxes.forEach(function(Ee){Ee.style.borderColor=Ee===Ve?Ze.uiStyleSettings!==void 0?Ze.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},we}(z),et=function(nt){function we(Te,Ve,Ze){var Ee=nt.call(this,Te,Ve,Ze)||this;return Ee.arrowType="end",Ee.arrowBaseHeight=10,Ee.arrowBaseWidth=10,Ee.getArrowPoints=Ee.getArrowPoints.bind(Ee),Ee.setArrowType=Ee.setArrowType.bind(Ee),Ee.arrowTypePanel=new Ye("Arrow type","end"),Ee.arrowTypePanel.onArrowTypeChanged=Ee.setArrowType,Ee}return Pt(we,nt),we.prototype.ownsTarget=function(Te){return!(!nt.prototype.ownsTarget.call(this,Te)&&Te!==this.arrow1&&Te!==this.arrow2)},we.prototype.getArrowPoints=function(Te,Ve){var Ze=this.arrowBaseWidth+2*this.strokeWidth,Ee=this.arrowBaseHeight+2*this.strokeWidth;return Te-Ze/2+","+(Ve+Ee/2)+" "+Te+","+(Ve-Ee/2)+" "+(Te+Ze/2)+","+(Ve+Ee/2)},we.prototype.createTips=function(){this.arrow1=me.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=me.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.arrow2)},we.prototype.pointerDown=function(Te,Ve){nt.prototype.pointerDown.call(this,Te,Ve),this.state==="creating"&&this.createTips()},we.prototype.adjustVisual=function(){if(nt.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",me.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),me.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var Te=0;Math.abs(this.x1-this.x2)>.1&&(Te=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Ve=this.arrow1.transform.baseVal.getItem(0);Ve.setRotate(Te,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ve,0);var Ze=this.arrow2.transform.baseVal.getItem(0);Ze.setRotate(Te+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Ze,0)}},we.prototype.setArrowType=function(Te){this.arrowType=Te,this.adjustVisual(),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var Te=Object.assign({arrowType:this.arrowType},nt.prototype.getState.call(this));return Te.typeName=we.typeName,Te},we.prototype.restoreState=function(Te){nt.prototype.restoreState.call(this,Te);var Ve=Te;this.arrowType=Ve.arrowType,this.createTips(),this.adjustVisual()},we.typeName="ArrowMarker",we.title="Arrow marker",we.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',we}(Be),lt=function(nt){function we(Te,Ve,Ze){var Ee=nt.call(this,Te,Ve,Ze)||this;return Ee.fillColor=Ze.defaultFillColor,Ee.strokeWidth=0,Ee.fillPanel=new ee("Color",Ze.defaultColorSet,Ze.defaultFillColor),Ee.fillPanel.onColorChanged=Ee.setFillColor,Ee}return Pt(we,nt),Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var Te=nt.prototype.getState.call(this);return Te.typeName=we.typeName,Te},we.typeName="CoverMarker",we.title="Cover marker",we.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',we}(Ce),dt=function(nt){function we(Te,Ve,Ze,Ee){var Ge=nt.call(this,Te,Ee||'<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 Ge.opacities=[],Ge.opacityBoxes=[],Ge.opacities=Ve,Ge.currentOpacity=Ze,Ge.setCurrentOpacity=Ge.setCurrentOpacity.bind(Ge),Ge}return Pt(we,nt),we.prototype.getUi=function(){var Te=this,Ve=document.createElement("div");return Ve.style.display="flex",Ve.style.overflow="hidden",Ve.style.flexGrow="2",Ve.style.justifyContent="space-between",this.opacities.forEach(function(Ze){var Ee=document.createElement("div");Ee.style.display="flex",Ee.style.alignItems="center",Ee.style.justifyContent="center",Ee.style.padding="5px",Ee.style.borderWidth="2px",Ee.style.borderStyle="solid",Ee.style.borderColor=Ze===Te.currentOpacity?Te.uiStyleSettings.toolboxAccentColor:"transparent",Ee.addEventListener("click",function(){Te.setCurrentOpacity(Ze,Ee)}),Ve.appendChild(Ee);var Ge=document.createElement("div");Ge.innerText=100*Ze+"%",Ee.appendChild(Ge),Te.opacityBoxes.push(Ee)}),Ve},we.prototype.setCurrentOpacity=function(Te,Ve){var Ze=this;this.currentOpacity=Te,this.opacityBoxes.forEach(function(Ee){Ee.style.borderColor=Ee===Ve?Ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},we}(z),vt=function(nt){function we(Te,Ve,Ze){var Ee=nt.call(this,Te,Ve,Ze)||this;return Ee.setOpacity=Ee.setOpacity.bind(Ee),Ee.fillColor=Ze.defaultHighlightColor,Ee.strokeWidth=0,Ee.opacity=Ze.defaultHighlightOpacity,Ee.fillPanel=new ee("Color",Ze.defaultColorSet,Ee.fillColor),Ee.fillPanel.onColorChanged=Ee.setFillColor,Ee.opacityPanel=new dt("Opacity",Ze.defaultOpacitySteps,Ee.opacity),Ee.opacityPanel.onOpacityChanged=Ee.setOpacity,Ee}return Pt(we,nt),we.prototype.setOpacity=function(Te){this.opacity=Te,this.visual&&me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var Te=nt.prototype.getState.call(this);return Te.typeName=we.typeName,Te},we.typeName="HighlightMarker",we.title="Highlight marker",we.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>',we}(lt),Je='<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>',ot='<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>',ft=function(nt){function we(Te,Ve,Ze){var Ee=nt.call(this,Te,Ve,Ze)||this;return Ee.bgColor="transparent",Ee.tipPosition={x:0,y:0},Ee.tipBase1Position={x:0,y:0},Ee.tipBase2Position={x:0,y:0},Ee.tipMoving=!1,Ee.color=Ze.defaultStrokeColor,Ee.bgColor=Ze.defaultFillColor,Ee.fontFamily=Ze.defaultFontFamily,Ee.defaultSize={x:100,y:30},Ee.setBgColor=Ee.setBgColor.bind(Ee),Ee.getTipPoints=Ee.getTipPoints.bind(Ee),Ee.positionTip=Ee.positionTip.bind(Ee),Ee.setTipPoints=Ee.setTipPoints.bind(Ee),Ee.colorPanel=new ee("Text color",Ze.defaultColorSet,Ee.color,Je),Ee.colorPanel.onColorChanged=Ee.setColor,Ee.bgColorPanel=new ee("Fill color",Ze.defaultColorSet,Ee.bgColor,ot),Ee.bgColorPanel.onColorChanged=Ee.setBgColor,Ee.fontFamilyPanel=new _e("Font",Ze.defaultFontFamilies,Ze.defaultFontFamily),Ee.fontFamilyPanel.onFontChanged=Ee.setFont,Ee.tipGrip=new le,Ee.tipGrip.visual.transform.baseVal.appendItem(me.createTransform()),Ee.controlBox.appendChild(Ee.tipGrip.visual),Ee}return Pt(we,nt),we.prototype.ownsTarget=function(Te){return nt.prototype.ownsTarget.call(this,Te)||this.tipGrip.ownsTarget(Te)||this.tip===Te},we.prototype.createTip=function(){me.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=me.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},we.prototype.pointerDown=function(Te,Ve){this.state==="new"&&nt.prototype.pointerDown.call(this,Te,Ve),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ve)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):nt.prototype.pointerDown.call(this,Te,Ve)},we.prototype.pointerUp=function(Te){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,nt.prototype.pointerUp.call(this,Te);else{var Ve=this.state==="creating";nt.prototype.pointerUp.call(this,Te),this.setTipPoints(Ve),this.positionTip()}},we.prototype.manipulate=function(Te){if(this.tipMoving){var Ve=this.unrotatePoint(Te);this.tipPosition={x:Ve.x-this.manipulationStartLeft,y:Ve.y-this.manipulationStartTop},this.positionTip()}else nt.prototype.manipulate.call(this,Te)},we.prototype.setBgColor=function(Te){this.bgRectangle&&this.tip&&(me.setAttributes(this.bgRectangle,[["fill",Te]]),me.setAttributes(this.tip,[["fill",Te]])),this.bgColor=Te,this.fillColorChanged(Te)},we.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},we.prototype.setTipPoints=function(Te){Te===void 0&&(Te=!1);var Ve=Math.min(this.height/2,15),Ze=this.height/5;Te&&(this.tipPosition={x:Ve+Ze/2,y:this.height+20});var Ee=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Ee<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Ze=this.width/5,Ve=Math.min(this.width/2,15),this.tipBase1Position={x:Ve,y:0},this.tipBase2Position={x:Ve+Ze,y:0}):(this.tipBase1Position={x:0,y:Ve},this.tipBase2Position={x:0,y:Ve+Ze}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Ee<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Ze=this.width/5,Ve=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ve-Ze,y:0},this.tipBase2Position={x:this.width-Ve,y:0}):(this.tipBase1Position={x:this.width,y:Ve},this.tipBase2Position={x:this.width,y:Ve+Ze}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Ee<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Ze=this.width/5,Ve=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ve-Ze,y:this.height},this.tipBase2Position={x:this.width-Ve,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Ve-Ze},this.tipBase2Position={x:this.width,y:this.height-Ve}):Ee<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Ze=this.width/5,Ve=Math.min(this.width/2,15),this.tipBase1Position={x:Ve,y:this.height},this.tipBase2Position={x:Ve+Ze,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Ve},this.tipBase2Position={x:0,y:this.height-Ve-Ze})},we.prototype.resize=function(Te){nt.prototype.resize.call(this,Te),this.positionTip()},we.prototype.positionTip=function(){me.setAttributes(this.tip,[["points",this.getTipPoints()]]);var Te=this.tipGrip.visual.transform.baseVal.getItem(0);Te.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(Te,0)},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),we.prototype.select=function(){this.positionTip(),nt.prototype.select.call(this)},we.prototype.getState=function(){var Te=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},nt.prototype.getState.call(this));return Te.typeName=we.typeName,Te},we.prototype.restoreState=function(Te){var Ve=Te;this.bgColor=Ve.bgColor,this.tipPosition=Ve.tipPosition,nt.prototype.restoreState.call(this,Te),this.createTip(),this.setTipPoints()},we.prototype.scale=function(Te,Ve){nt.prototype.scale.call(this,Te,Ve),this.tipPosition={x:this.tipPosition.x*Te,y:this.tipPosition.y*Ve},this.positionTip()},we.typeName="CalloutMarker",we.title="Callout marker",we.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>',we}(qe),xt=function(nt){function we(Te,Ve,Ze){var Ee=nt.call(this,Te,Ve,Ze)||this;return Ee.fillColor="transparent",Ee.strokeColor="transparent",Ee.strokeWidth=0,Ee.strokeDasharray="",Ee.opacity=1,Ee.strokeColor=Ze.defaultColor,Ee.strokeWidth=Ze.defaultStrokeWidth,Ee.strokeDasharray=Ze.defaultStrokeDasharray,Ee.fillColor=Ze.defaultFillColor,Ee.setStrokeColor=Ee.setStrokeColor.bind(Ee),Ee.setFillColor=Ee.setFillColor.bind(Ee),Ee.setStrokeWidth=Ee.setStrokeWidth.bind(Ee),Ee.setStrokeDasharray=Ee.setStrokeDasharray.bind(Ee),Ee.setOpacity=Ee.setOpacity.bind(Ee),Ee.createVisual=Ee.createVisual.bind(Ee),Ee.strokePanel=new ee("Line color",Fe(Ze.defaultColorSet,["transparent"]),Ze.defaultColor),Ee.strokePanel.onColorChanged=Ee.setStrokeColor,Ee.fillPanel=new ee("Fill color",Fe(Ze.defaultColorSet,["transparent"]),Ee.fillColor,ot),Ee.fillPanel.onColorChanged=Ee.setFillColor,Ee.strokeWidthPanel=new Pe("Line width",Ze.defaultStrokeWidths,Ze.defaultStrokeWidth),Ee.strokeWidthPanel.onWidthChanged=Ee.setStrokeWidth,Ee.strokeStylePanel=new Ie("Line style",Ze.defaultStrokeDasharrays,Ze.defaultStrokeDasharray),Ee.strokeStylePanel.onStyleChanged=Ee.setStrokeDasharray,Ee.opacityPanel=new dt("Opacity",Ze.defaultOpacitySteps,Ee.opacity),Ee.opacityPanel.onOpacityChanged=Ee.setOpacity,Ee}return Pt(we,nt),we.prototype.ownsTarget=function(Te){return!(!nt.prototype.ownsTarget.call(this,Te)&&Te!==this.visual)},we.prototype.createVisual=function(){this.visual=me.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)},we.prototype.pointerDown=function(Te,Ve){nt.prototype.pointerDown.call(this,Te,Ve),this.state==="new"&&(this.createVisual(),this.moveVisual(Te),this._state="creating")},we.prototype.manipulate=function(Te){nt.prototype.manipulate.call(this,Te)},we.prototype.resize=function(Te){nt.prototype.resize.call(this,Te),this.setSize()},we.prototype.setSize=function(){nt.prototype.setSize.call(this),me.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},we.prototype.pointerUp=function(Te){nt.prototype.pointerUp.call(this,Te),this.setSize()},we.prototype.setStrokeColor=function(Te){this.strokeColor=Te,this.visual&&me.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Te),this.stateChanged()},we.prototype.setFillColor=function(Te){this.fillColor=Te,this.visual&&me.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Te),this.stateChanged()},we.prototype.setStrokeWidth=function(Te){this.strokeWidth=Te,this.visual&&me.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},we.prototype.setStrokeDasharray=function(Te){this.strokeDasharray=Te,this.visual&&me.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},we.prototype.setOpacity=function(Te){this.opacity=Te,this.visual&&me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var Te=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},nt.prototype.getState.call(this));return Te.typeName=we.typeName,Te},we.prototype.restoreState=function(Te){var Ve=Te;this.fillColor=Ve.fillColor,this.strokeColor=Ve.strokeColor,this.strokeWidth=Ve.strokeWidth,this.strokeDasharray=Ve.strokeDasharray,this.opacity=Ve.opacity,this.createVisual(),nt.prototype.restoreState.call(this,Te),this.setSize()},we.prototype.scale=function(Te,Ve){nt.prototype.scale.call(this,Te,Ve),this.setSize()},we.typeName="EllipseMarker",we.title="Ellipse marker",we.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>',we}(pe),yt=function(nt){function we(Te,Ve,Ze){return nt.call(this,Te,Ve,Ze)||this}return Pt(we,nt),Object.defineProperty(we.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),we.prototype.ownsTarget=function(Te){return!(!nt.prototype.ownsTarget.call(this,Te)&&Te!==this.tip1&&Te!==this.tip2)},we.prototype.createTips=function(){this.tip1=me.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(me.createTransform()),this.visual.appendChild(this.tip1),this.tip2=me.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(me.createTransform()),this.visual.appendChild(this.tip2)},we.prototype.pointerDown=function(Te,Ve){nt.prototype.pointerDown.call(this,Te,Ve),this.state==="creating"&&this.createTips()},we.prototype.adjustVisual=function(){if(nt.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(me.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()]]),me.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 Te=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Ve=this.tip1.transform.baseVal.getItem(0);Ve.setRotate(Te,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ve,0);var Ze=this.tip2.transform.baseVal.getItem(0);Ze.setRotate(Te+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Ze,0)}},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var Te=nt.prototype.getState.call(this);return Te.typeName=we.typeName,Te},we.prototype.restoreState=function(Te){nt.prototype.restoreState.call(this,Te),this.createTips(),this.adjustVisual()},we.typeName="MeasurementMarker",we.title="Measurement marker",we.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>',we}(Be),pt=function(nt){function we(Te,Ve,Ze){var Ee=nt.call(this,Te,Ve,Ze)||this;return Ee.strokePanel.colors=Ze.defaultColorSet,Ee.fillColor="transparent",Ee}return Pt(we,nt),Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var Te=nt.prototype.getState.call(this);return Te.typeName=we.typeName,Te},we.typeName="EllipseFrameMarker",we.title="Ellipse frame marker",we.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>',we}(xt),gt=function(){function nt(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(nt.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),nt.prototype.addUndoStep=function(we){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(we)||(this.undoStack.push(we),JSON.stringify(this.lastRedoStep)!==JSON.stringify(we)&&this.redoStack.splice(0,this.redoStack.length))},nt.prototype.replaceLastUndoStep=function(we){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=we)},nt.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},nt.prototype.undo=function(){if(this.undoStack.length>1){var we=this.undoStack.pop();return we!==void 0&&this.redoStack.push(we),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},nt.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},nt}(),mt=function(nt){function we(Te,Ve,Ze){var Ee=nt.call(this,Te,Ve,Ze)||this;return Ee.strokeColor="transparent",Ee.strokeWidth=0,Ee.strokeDasharray="",Ee.curveX=0,Ee.curveY=0,Ee.manipulationStartCurveX=0,Ee.manipulationStartCurveY=0,Ee.setStrokeColor=Ee.setStrokeColor.bind(Ee),Ee.setStrokeWidth=Ee.setStrokeWidth.bind(Ee),Ee.setStrokeDasharray=Ee.setStrokeDasharray.bind(Ee),Ee.positionGrips=Ee.positionGrips.bind(Ee),Ee.addControlGrips=Ee.addControlGrips.bind(Ee),Ee.adjustVisual=Ee.adjustVisual.bind(Ee),Ee.setupControlBox=Ee.setupControlBox.bind(Ee),Ee.resize=Ee.resize.bind(Ee),Ee.strokeColor=Ze.defaultColor,Ee.strokeWidth=Ze.defaultStrokeWidth,Ee.strokeDasharray=Ze.defaultStrokeDasharray,Ee.strokePanel=new ee("Line color",Ze.defaultColorSet,Ze.defaultColor),Ee.strokePanel.onColorChanged=Ee.setStrokeColor,Ee.strokeWidthPanel=new Pe("Line width",Ze.defaultStrokeWidths,Ze.defaultStrokeWidth),Ee.strokeWidthPanel.onWidthChanged=Ee.setStrokeWidth,Ee.strokeStylePanel=new Ie("Line style",Ze.defaultStrokeDasharrays,Ze.defaultStrokeDasharray),Ee.strokeStylePanel.onStyleChanged=Ee.setStrokeDasharray,Ee}return Pt(we,nt),we.prototype.ownsTarget=function(Te){return!(!nt.prototype.ownsTarget.call(this,Te)&&Te!==this.visual&&Te!==this.selectorCurve&&Te!==this.visibleCurve&&!this.curveGrip.ownsTarget(Te))},we.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},we.prototype.createVisual=function(){this.visual=me.createGroup(),this.selectorCurve=me.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=me.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)},we.prototype.pointerDown=function(Te,Ve){nt.prototype.pointerDown.call(this,Te,Ve),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Te.x,this.curveY=Te.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Ve)&&(this.activeGrip=this.curveGrip,this._state="resize")},we.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),me.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),me.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),me.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},we.prototype.setupControlBox=function(){nt.prototype.setupControlBox.call(this),this.curveControlLine1=me.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=me.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)},we.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,nt.prototype.addControlGrips.call(this)},we.prototype.positionGrips=function(){nt.prototype.positionGrips.call(this);var Te=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Te/2,this.curveY-Te/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()))},we.prototype.manipulate=function(Te){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Te.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Te.y-this.manipulationStartY),nt.prototype.manipulate.call(this,Te)},we.prototype.resize=function(Te){this.activeGrip===this.curveGrip&&(this.curveX=Te.x,this.curveY=Te.y),nt.prototype.resize.call(this,Te),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},we.prototype.setStrokeColor=function(Te){this.strokeColor=Te,this.adjustVisual(),this.colorChanged(Te)},we.prototype.setStrokeWidth=function(Te){this.strokeWidth=Te,this.adjustVisual()},we.prototype.setStrokeDasharray=function(Te){this.strokeDasharray=Te,this.adjustVisual()},we.prototype.scale=function(Te,Ve){this.curveX=this.curveX*Te,this.curveY=this.curveY*Ve,nt.prototype.scale.call(this,Te,Ve)},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var Te=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},nt.prototype.getState.call(this));return Te.typeName=we.typeName,Te},we.prototype.restoreState=function(Te){nt.prototype.restoreState.call(this,Te);var Ve=Te;this.strokeColor=Ve.strokeColor,this.strokeWidth=Ve.strokeWidth,this.strokeDasharray=Ve.strokeDasharray,this.curveX=Ve.curveX,this.curveY=Ve.curveY,this.createVisual(),this.adjustVisual()},we.typeName="CurveMarker",we.title="Curve marker",we.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>',we}(je),Mt=function(nt){function we(Te,Ve,Ze){var Ee=nt.call(this,Te,Ve,Ze)||this;return Ee.fillColor="transparent",Ee.strokeColor="transparent",Ee.strokeWidth=0,Ee.strokeDasharray="",Ee.textColor="transparent",Ee.fontSize="1rem",Ee.isMoved=!1,Ee.captionText="Caption",Ee.PADDING=5,Ee.captionBoxWidth=0,Ee.captionBoxHeight=0,Ee.strokeColor=Ze.defaultColor,Ee.strokeWidth=Ze.defaultStrokeWidth,Ee.strokeDasharray=Ze.defaultStrokeDasharray,Ee.fillColor=Ze.defaultFillColor,Ee.textColor=Ze.defaultStrokeColor,Ee.fontFamily=Ze.defaultFontFamily,Ee.fontSize=Ze.defaultCaptionFontSize,Ee.captionText=Ze.defaultCaptionText,Ee.setStrokeColor=Ee.setStrokeColor.bind(Ee),Ee.setFillColor=Ee.setFillColor.bind(Ee),Ee.setStrokeWidth=Ee.setStrokeWidth.bind(Ee),Ee.setStrokeDasharray=Ee.setStrokeDasharray.bind(Ee),Ee.createVisual=Ee.createVisual.bind(Ee),Ee.sizeCaption=Ee.sizeCaption.bind(Ee),Ee.setCaptionText=Ee.setCaptionText.bind(Ee),Ee.showTextEditor=Ee.showTextEditor.bind(Ee),Ee.positionTextEditor=Ee.positionTextEditor.bind(Ee),Ee.finishTextEditing=Ee.finishTextEditing.bind(Ee),Ee.setFont=Ee.setFont.bind(Ee),Ee.setTextColor=Ee.setTextColor.bind(Ee),Ee.strokePanel=new ee("Line color",Fe(Ze.defaultColorSet,["transparent"]),Ee.strokeColor),Ee.strokePanel.onColorChanged=Ee.setStrokeColor,Ee.fillPanel=new ee("Fill color",Fe(Ze.defaultColorSet,["transparent"]),Ee.fillColor,ot),Ee.fillPanel.onColorChanged=Ee.setFillColor,Ee.strokeWidthPanel=new Pe("Line width",Ze.defaultStrokeWidths,Ze.defaultStrokeWidth),Ee.strokeWidthPanel.onWidthChanged=Ee.setStrokeWidth,Ee.strokeStylePanel=new Ie("Line style",Ze.defaultStrokeDasharrays,Ze.defaultStrokeDasharray),Ee.strokeStylePanel.onStyleChanged=Ee.setStrokeDasharray,Ee.fontFamilyPanel=new _e("Font",Ze.defaultFontFamilies,Ze.defaultFontFamily),Ee.fontFamilyPanel.onFontChanged=Ee.setFont,Ee.textColorPanel=new ee("Text color",Ze.defaultColorSet,Ee.textColor,Je),Ee.textColorPanel.onColorChanged=Ee.setTextColor,Ee}return Pt(we,nt),we.prototype.ownsTarget=function(Te){return!(!nt.prototype.ownsTarget.call(this,Te)&&Te!==this.visual&&Te!==this.frame&&Te!==this.captionBg&&Te!==this.captionElement)},we.prototype.createVisual=function(){this.visual=me.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=me.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=me.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=me.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()},we.prototype.setCaptionText=function(Te){this.captionText=Te,this.captionElement.textContent=this.captionText,this.sizeCaption()},we.prototype.pointerDown=function(Te,Ve){nt.prototype.pointerDown.call(this,Te,Ve),this.isMoved=!1,this.pointerDownPoint=Te,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Te),this._state="creating")},we.prototype.manipulate=function(Te){nt.prototype.manipulate.call(this,Te),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Te.x-this.pointerDownPoint.x)>5||Math.abs(Te.y-this.pointerDownPoint.y)>5)},we.prototype.resize=function(Te){nt.prototype.resize.call(this,Te),this.setSize()},we.prototype.sizeCaption=function(){var Te=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Te.width+2*this.PADDING,this.captionBoxHeight=Te.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),me.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')"]]),me.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')"]])},we.prototype.showTextEditor=function(){var Te=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(Ve){Ve.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ve){Ve.key==="Enter"&&Te.finishTextEditing(Te.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ve){Ve.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Te.finishTextEditing(Te.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Te.finishTextEditing(Te.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},we.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"))},we.prototype.finishTextEditing=function(Te){this.setCaptionText(Te.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},we.prototype.setFont=function(Te){this.captionElement&&me.setAttributes(this.captionElement,[["font-family",Te]]),this.fontFamily=Te,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},we.prototype.setTextColor=function(Te){this.captionElement&&me.setAttributes(this.captionElement,[["fill",Te]]),this.textColor=Te,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},we.prototype.setSize=function(){nt.prototype.setSize.call(this),me.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},we.prototype.pointerUp=function(Te){nt.prototype.pointerUp.call(this,Te),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},we.prototype.dblClick=function(Te,Ve){nt.prototype.dblClick.call(this,Te,Ve),this.showTextEditor()},we.prototype.setStrokeColor=function(Te){this.strokeColor=Te,this.frame&&me.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Te),this.stateChanged()},we.prototype.setFillColor=function(Te){this.fillColor=Te,this.captionBg&&me.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Te),this.stateChanged()},we.prototype.setStrokeWidth=function(Te){this.strokeWidth=Te,this.frame&&me.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},we.prototype.setStrokeDasharray=function(Te){this.strokeDasharray=Te,this.frame&&me.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var Te=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},nt.prototype.getState.call(this));return Te.typeName=this.typeName,Te},we.prototype.restoreState=function(Te){var Ve=Te;this.fillColor=Ve.fillColor,this.strokeColor=Ve.strokeColor,this.strokeWidth=Ve.strokeWidth,this.strokeDasharray=Ve.strokeDasharray,this.textColor=Ve.textColor,this.fontFamily=Ve.fontFamily,this.captionText=Ve.captionText,this.fontSize=Ve.fontSize,this.createVisual(),nt.prototype.restoreState.call(this,Te),this.setSize()},we.prototype.scale=function(Te,Ve){nt.prototype.scale.call(this,Te,Ve),this.setSize()},we.typeName="CaptionFrameMarker",we.title="Caption frame marker",we.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>',we}(pe),Ct=function(){function nt(we,Te){Te===void 0&&(Te=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=we,this.cancelable=Te}return Object.defineProperty(nt.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),nt.prototype.preventDefault=function(){this._defaultPrevented=!0},nt}(),zt=function(nt){function we(Te,Ve,Ze){var Ee=nt.call(this,Te,!1)||this;return Ee.dataUrl=Ve,Ee.state=Ze,Ee}return Pt(we,nt),we}(Ct),St=function(nt){function we(Te,Ve,Ze){Ze===void 0&&(Ze=!1);var Ee=nt.call(this,Te,Ze)||this;return Ee.marker=Ve,Ee}return Pt(we,nt),we}(Ct),bt=function(){function nt(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return nt.prototype.addEventListener=function(we,Te){this[we].push(Te)},nt.prototype.removeEventListener=function(we,Te){var Ve=this[we].indexOf(Te);Ve>-1&&this[we].splice(Ve,1)},nt}(),at=function(){function nt(we){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ae,this._isOpen=!1,this.undoRedoManager=new gt,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 bt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=nt.instanceCounter++,this.styles=new Se(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=we,this.targetRoot=document.body,this.width=we.clientWidth,this.height=we.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(nt.prototype,"ALL_MARKER_TYPES",{get:function(){return[Oe,ze,et,qe,pt,xt,vt,ft,yt,lt,Be,mt,Mt]},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Oe,ze,et,qe,xt,vt,ft]},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Oe,ze,et,qe,vt]},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(we){var Te=this;this._availableMarkerTypes.splice(0),we.forEach(function(Ve){if(typeof Ve=="string"){var Ze=Te.ALL_MARKER_TYPES.find(function(Ee){return Ee.typeName===Ve});Ze!==void 0&&Te._availableMarkerTypes.push(Ze)}else Te._availableMarkerTypes.push(Ve)})},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(we){this._zoomLevel=we,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(nt.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),nt.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ce.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},nt.prototype.show=function(){var we=this;this.styles.styleSheetRoot===void 0&&Le.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Le.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Te){return Te(new Ct(we))})},nt.prototype.render=function(){return oe(this,void 0,void 0,function(){var we;return Ue(this,function(Te){switch(Te.label){case 0:return this.setCurrentMarker(),(we=new be).naturalSize=this.renderAtNaturalSize,we.imageType=this.renderImageType,we.imageQuality=this.renderImageQuality,we.markersOnly=this.renderMarkersOnly,we.width=this.renderWidth,we.height=this.renderHeight,[4,we.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Te.sent(),[4,we.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Te.sent()]}})})},nt.prototype.close=function(we){var Te=this;if(we===void 0&&(we=!1),this.isOpen){var Ve=!1;we||this.eventListeners.beforeclose.forEach(function(Ze){var Ee=new Ct(Te,!0);Ze(Ee),Ee.defaultPrevented&&(Ve=!0)}),Ve||(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(Ze){return Ze(new Ct(Te))}),this.detachEvents(),this._isOpen=!1)}},nt.prototype.addMarkersToToolbar=function(){for(var we,Te=[],Ve=0;Ve<arguments.length;Ve++)Te[Ve]=arguments[Ve];(we=this._availableMarkerTypes).push.apply(we,Te)},nt.prototype.addRenderEventListener=function(we){this.addEventListener("render",function(Te){we(Te.dataUrl,Te.state)})},nt.prototype.removeRenderEventListener=function(we){},nt.prototype.addCloseEventListener=function(we){this.addEventListener("close",function(){we()})},nt.prototype.removeCloseEventListener=function(we){},nt.prototype.setupResizeObserver=function(){var we=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){we.resize(we.target.clientWidth,we.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return we.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},nt.prototype.onPopupTargetResize=function(){var we=1*this.target.clientWidth/this.target.clientHeight,Te=this.editorCanvas.clientWidth/we>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*we:this.editorCanvas.clientWidth,Ve=Te<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/we;this.resize(Te,Ve)},nt.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},nt.prototype.resize=function(we,Te){this._isResizing=!0;var Ve=we/this.imageWidth,Ze=Te/this.imageHeight;this.imageWidth=Math.round(we),this.imageHeight=Math.round(Te),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(Ve,Ze),this._isResizing=!1},nt.prototype.scaleMarkers=function(we,Te){var Ve,Ze=this;this._currentMarker&&this._currentMarker instanceof qe?this._currentMarker.scale(we,Te):(Ve=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Ee){Ee!==Ze._currentMarker&&Ee.scale(we,Te)}),Ve!==void 0&&this.setCurrentMarker(Ve)},nt.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},nt.prototype.setTopLeft=function(){var we=this.editingTarget.getBoundingClientRect(),Te=this.editorCanvas.getBoundingClientRect();this.left=we.left-Te.left,this.top=we.top-Te.top},nt.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},nt.prototype.addDefs=function(){for(var we,Te=[],Ve=0;Ve<arguments.length;Ve++)Te[Ve]=arguments[Ve];this.defs=me.createDefs(),this.addDefsToImage(),(we=this.defs).append.apply(we,Te)},nt.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},nt.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},nt.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},nt.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},nt.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},nt.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},nt.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},nt.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var we=document.createElement("a");we.href="https://markerjs.com/",we.target="_blank",we.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>',we.title="Powered by marker.js",we.style.display="grid",we.style.alignItems="center",we.style.justifyItems="center",we.style.padding="3px",we.style.width="20px",we.style.height="20px",this.logoUI.appendChild(we),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},nt.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},nt.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},nt.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},nt.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var we=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=we+"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 xe(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 fe(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},nt.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},nt.prototype.removeMarker=function(we){this.markerImage.removeChild(we.container),this.markers.indexOf(we)>-1&&this.markers.splice(this.markers.indexOf(we),1),we.dispose()},nt.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},nt.prototype.toolbarButtonClicked=function(we,Te){if(we==="marker"&&Te!==void 0)this.createNewMarker(Te);else if(we==="action")switch(Te){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},nt.prototype.deleteSelectedMarker=function(){var we=this;if(this._currentMarker!==void 0){var Te=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Ze){var Ee=new St(we,we._currentMarker,!0);Ze(Ee),Ee.defaultPrevented&&(Te=!0)}),!Te){var Ve=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(Ze){return Ze(new St(we,Ve))})}}},nt.prototype.clear=function(){var we=this,Te=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ge){var He=new St(we,void 0,!0);Ge(He),He.defaultPrevented&&(Te=!0)}),!Te)){this.setCurrentMarker();for(var Ve=function(Ge){var He=Ze.markers[Ge];Ze.setCurrentMarker(Ze.markers[Ge]),Ze._currentMarker.dispose(),Ze.markerImage.removeChild(Ze._currentMarker.container),Ze.markers.splice(Ze.markers.indexOf(Ze._currentMarker),1),Ze.eventListeners.markerdelete.forEach(function(We){return We(new St(we,He))})},Ze=this,Ee=this.markers.length-1;Ee>=0;Ee--)Ve(Ee);this.addUndoStep()}},Object.defineProperty(nt.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),nt.prototype.showNotesEditor=function(){var we;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=(we=this._currentMarker.notes)!==null&&we!==void 0?we:"",this.overlayContainer.appendChild(this.notesArea))},nt.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},nt.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},nt.prototype.addUndoStep=function(){var we=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Te=this.getState(),Ve=this.undoRedoManager.getLastUndoStep();if(!Ve||Ve.width===Te.width&&Ve.height===Te.height){var Ze=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Te),Ze<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Ee){return Ee(new Ct(we))})}else this.undoRedoManager.replaceLastUndoStep(Te),this.eventListeners.statechange.forEach(function(Ee){return Ee(new Ct(we))})}},nt.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},nt.prototype.undoStep=function(){var we=this,Te=this.undoRedoManager.undo();Te!==void 0&&(this.restoreState(Te),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ve){return Ve(new Ct(we))}))},nt.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},nt.prototype.redoStep=function(){var we=this,Te=this.undoRedoManager.redo();Te!==void 0&&(this.restoreState(Te),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ve){return Ve(new Ct(we))}))},nt.prototype.stepZoom=function(){var we=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=we<this.zoomSteps.length-1?this.zoomSteps[we+1]:this.zoomSteps[0]},nt.prototype.panTo=function(we){this.contentDiv.scrollBy({left:this.prevPanPoint.x-we.x,top:this.prevPanPoint.y-we.y}),this.prevPanPoint=we},nt.prototype.startRenderAndClose=function(){return oe(this,void 0,void 0,function(){var we,Te,Ve=this;return Ue(this,function(Ze){switch(Ze.label){case 0:return[4,this.render()];case 1:return we=Ze.sent(),Te=this.getState(),this.eventListeners.render.forEach(function(Ee){return Ee(new zt(Ve,we,Te))}),this.close(!0),[2]}})})},nt.prototype.getState=function(we){we===!0&&this.setCurrentMarker();var Te={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Ve){return Te.markers.push(Ve.getState())}),Te},nt.prototype.restoreState=function(we){var Te=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);we.markers.forEach(function(Ve){var Ze=Te._availableMarkerTypes.find(function(Ge){return Ge.typeName===Ve.typeName});if(Ze!==void 0){var Ee=Te.addNewMarker(Ze);Ee.restoreState(Ve),Te.markers.push(Ee)}}),we.width&&we.height&&(we.width!==this.imageWidth||we.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/we.width,this.imageHeight/we.height),this.eventListeners.restorestate.forEach(function(Ve){return Ve(new Ct(Te))})},nt.prototype.addNewMarker=function(we){var Te=me.createGroup();return this.markerImage.appendChild(Te),new we(Te,this.overlayContainer,this.settings)},nt.prototype.createNewMarker=function(we){var Te,Ve=this;(Te=typeof we=="string"?this._availableMarkerTypes.find(function(Ze){return Ze.typeName===we}):we)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(Te),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(Te.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Ze){return Ze(new St(Ve,Ve._currentMarker))}))},nt.prototype.markerCreated=function(we){var Te=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(we),this.setCurrentMarker(we),we instanceof ze&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(ze):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Ve){return Ve(new St(Te,Te._currentMarker))})},nt.prototype.colorChanged=function(we){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=we,this.settings.defaultStrokeColor=we)},nt.prototype.fillColorChanged=function(we){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=we)},nt.prototype.markerStateChanged=function(we){var Te=this;this.eventListeners.markerchange.forEach(function(Ve){return Ve(new St(Te,we))})},nt.prototype.setCurrentMarker=function(we){var Te=this;this._currentMarker!==we&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Ve){return Ve(new St(Te,Te._currentMarker))})),this._currentMarker=we,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(Ve){return Ve(new St(Te,Te._currentMarker))}))},nt.prototype.onPointerDown=function(we){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||we.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var Te=this.markers.find(function(Ve){return Ve.ownsTarget(we.target)});Te!==void 0?(this.setCurrentMarker(Te),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(we.clientX,we.clientY),we.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:we.clientX,y:we.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(we.clientX,we.clientY))},nt.prototype.onDblClick=function(we){if(this._isFocused||this.focus(),this.mode==="select"){var Te=this.markers.find(function(Ve){return Ve.ownsTarget(we.target)});Te!==void 0&&Te!==this._currentMarker&&this.setCurrentMarker(Te),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(we.clientX,we.clientY),we.target):this.setCurrentMarker()}},nt.prototype.onPointerMove=function(we){this.touchPoints!==1&&we.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||we.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(we.clientX,we.clientY)):this.zoomLevel>1&&this.panTo({x:we.clientX,y:we.clientY}))},nt.prototype.onPointerUp=function(we){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(we.clientX,we.clientY)),this.isDragging=!1,this.addUndoStep()},nt.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},nt.prototype.onKeyUp=function(we){this._currentMarker===void 0||this.notesArea!==void 0||we.key!=="Delete"&&we.key!=="Backspace"||this.deleteSelectedMarker()},nt.prototype.clientToLocalCoordinates=function(we,Te){var Ve=this.markerImage.getBoundingClientRect();return{x:(we-Ve.left)/this.zoomLevel,y:(Te-Ve.top)/this.zoomLevel}},nt.prototype.onWindowResize=function(){this.positionUI()},nt.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var we=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=we+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},nt.prototype.addLicenseKey=function(we){ce.addKey(we)},nt.prototype.addEventListener=function(we,Te){this.eventListeners.addEventListener(we,Te)},nt.prototype.removeEventListener=function(we,Te){this.eventListeners.removeEventListener(we,Te)},nt.prototype.renderState=function(we){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(we),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(nt.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),nt.prototype.focus=function(){var we=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Te){return Te(new Ct(we))}))},nt.prototype.blur=function(){var we=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Te){return Te(new Ct(we))}))},nt.instanceCounter=0,nt}()},17115:function(Gn,vn,Ke){"use strict";Ke.d(vn,{ZP:function(){return ce}});var tt=Ke(29043),Pt=Ke(59301),oe=Ke(87746),Ue=0,Fe=(0,oe.Z)();function me(){var be;return Fe?(be=Ue,Ue+=1):be="TEST_OR_SSR",be}function ce(be){var Le=Pt.useState(),Se=(0,tt.Z)(Le,2),ke=Se[0],ve=Se[1];return Pt.useEffect(function(){ve("rc_select_".concat(me()))},[]),be||ke}},77861:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Ac:function(){return It},Xo:function(){return qn},Wx:function(){return er},ZP:function(){return Cn},lk:function(){return pe}});var tt=Ke(5891),Pt=Ke(26390),oe=Ke(80962),Ue=Ke(57259),Fe=Ke(29043),me=Ke(19149),ce=Ke(80665),be=Ke(35788),Le=Ke(51395),Se=Ke(59301),ke=Ke(92310),ve=Ke.n(ke),xe=Ke(28800),fe=Ke(93144),z=Ke(85108),ee=Ke(20475),ae=function(Dt){var pn=Dt.className,yn=Dt.customizeIcon,Jn=Dt.customizeIconProps,bn=Dt.onMouseDown,Zt=Dt.onClick,jn=Dt.children,Fn;return typeof yn=="function"?Fn=yn(Jn):Fn=yn,Se.createElement("span",{className:pn,onMouseDown:function(nn){nn.preventDefault(),bn&&bn(nn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Zt,"aria-hidden":!0},Fn!==void 0?Fn:Se.createElement("span",{className:ve()(pn.split(/\s+/).map(function(ar){return"".concat(ar,"-icon")}))},jn))},re=ae;function le(Kt,Dt,pn,yn,Jn){var bn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Zt=arguments.length>6?arguments[6]:void 0,jn=arguments.length>7?arguments[7]:void 0,Fn=Se.useMemo(function(){if((0,ce.Z)(yn)==="object")return yn.clearIcon;if(Jn)return Jn},[yn,Jn]),ar=Se.useMemo(function(){return!!(!bn&&yn&&(pn.length||Zt)&&!(jn==="combobox"&&Zt===""))},[yn,bn,pn.length,Zt,jn]);return{allowClear:ar,clearIcon:Se.createElement(re,{className:"".concat(Kt,"-clear"),onMouseDown:Dt,customizeIcon:Fn},"\xD7")}}var ue=Se.createContext(null);function pe(){return Se.useContext(ue)}function Ce(){var Kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Dt=Se.useState(!1),pn=(0,Fe.Z)(Dt,2),yn=pn[0],Jn=pn[1],bn=Se.useRef(null),Zt=function(){window.clearTimeout(bn.current)};Se.useEffect(function(){return Zt},[]);var jn=function(ar,nn){Zt(),bn.current=window.setTimeout(function(){Jn(ar),nn&&nn()},Kt)};return[yn,jn,Zt]}function Pe(){var Kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Dt=Se.useRef(null),pn=Se.useRef(null);Se.useEffect(function(){return function(){window.clearTimeout(pn.current)}},[]);function yn(Jn){(Jn||Dt.current===null)&&(Dt.current=Jn),window.clearTimeout(pn.current),pn.current=window.setTimeout(function(){Dt.current=null},Kt)}return[function(){return Dt.current},yn]}function Ie(Kt,Dt,pn,yn){var Jn=Se.useRef(null);Jn.current={open:Dt,triggerOpen:pn,customizedTrigger:yn},Se.useEffect(function(){function bn(Zt){var jn;if(!((jn=Jn.current)!==null&&jn!==void 0&&jn.customizedTrigger)){var Fn=Zt.target;Fn.shadowRoot&&Zt.composed&&(Fn=Zt.composedPath()[0]||Fn),Jn.current.open&&Kt().filter(function(ar){return ar}).every(function(ar){return!ar.contains(Fn)&&ar!==Fn})&&Jn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",bn),function(){return window.removeEventListener("mousedown",bn)}},[])}var Oe=Ke(36994),Ae=Ke(11780),je=function(Dt,pn){var yn,Jn,bn=Dt.prefixCls,Zt=Dt.id,jn=Dt.inputElement,Fn=Dt.disabled,ar=Dt.tabIndex,nn=Dt.autoFocus,On=Dt.autoComplete,an=Dt.editable,mn=Dt.activeDescendantId,Ln=Dt.value,xn=Dt.maxLength,In=Dt.onKeyDown,gn=Dt.onMouseDown,Nn=Dt.onChange,kn=Dt.onPaste,En=Dt.onCompositionStart,$n=Dt.onCompositionEnd,mr=Dt.open,Hr=Dt.attrs,Lr=jn||Se.createElement("input",null),en=Lr,ur=en.ref,Mr=en.props,pr=Mr.onKeyDown,Ar=Mr.onChange,Zr=Mr.onMouseDown,gi=Mr.onCompositionStart,_r=Mr.onCompositionEnd,vr=Mr.style;return(0,Le.Kp)(!("maxLength"in Lr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Lr=Se.cloneElement(Lr,(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({type:"search"},Mr),{},{id:Zt,ref:(0,ee.sQ)(pn,ur),disabled:Fn,tabIndex:ar,autoComplete:On||"off",autoFocus:nn,className:ve()("".concat(bn,"-selection-search-input"),(yn=Lr)===null||yn===void 0||(Jn=yn.props)===null||Jn===void 0?void 0:Jn.className),role:"combobox","aria-label":"Search","aria-expanded":mr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Zt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Zt,"_list"),"aria-activedescendant":mr?mn:void 0},Hr),{},{value:an?Ln:"",maxLength:xn,readOnly:!an,unselectable:an?null:"on",style:(0,Ue.Z)((0,Ue.Z)({},vr),{},{opacity:an?null:0}),onKeyDown:function(An){In(An),pr&&pr(An)},onMouseDown:function(An){gn(An),Zr&&Zr(An)},onChange:function(An){Nn(An),Ar&&Ar(An)},onCompositionStart:function(An){En(An),gi&&gi(An)},onCompositionEnd:function(An){$n(An),_r&&_r(An)},onPaste:kn})),Lr},Be=Se.forwardRef(je);Be.displayName="Input";var _e=Be;function qe(Kt){return Array.isArray(Kt)?Kt:Kt!==void 0?[Kt]:[]}var ze=typeof window!="undefined"&&window.document&&window.document.documentElement,Ye=ze;function et(Kt){return Kt!=null}function lt(Kt){return!Kt&&Kt!==0}function dt(Kt){return["string","number"].includes((0,ce.Z)(Kt))}function vt(Kt){var Dt=void 0;return Kt&&(dt(Kt.title)?Dt=Kt.title.toString():dt(Kt.label)&&(Dt=Kt.label.toString())),Dt}function Je(Kt,Dt){Ye?Se.useLayoutEffect(Kt,Dt):Se.useEffect(Kt,Dt)}function ot(Kt){var Dt;return(Dt=Kt.key)!==null&&Dt!==void 0?Dt:Kt.value}var ft=function(Dt){Dt.preventDefault(),Dt.stopPropagation()},xt=function(Dt){var pn=Dt.id,yn=Dt.prefixCls,Jn=Dt.values,bn=Dt.open,Zt=Dt.searchValue,jn=Dt.autoClearSearchValue,Fn=Dt.inputRef,ar=Dt.placeholder,nn=Dt.disabled,On=Dt.mode,an=Dt.showSearch,mn=Dt.autoFocus,Ln=Dt.autoComplete,xn=Dt.activeDescendantId,In=Dt.tabIndex,gn=Dt.removeIcon,Nn=Dt.maxTagCount,kn=Dt.maxTagTextLength,En=Dt.maxTagPlaceholder,$n=En===void 0?function(Pi){return"+ ".concat(Pi.length," ...")}:En,mr=Dt.tagRender,Hr=Dt.onToggleOpen,Lr=Dt.onRemove,en=Dt.onInputChange,ur=Dt.onInputPaste,Mr=Dt.onInputKeyDown,pr=Dt.onInputMouseDown,Ar=Dt.onInputCompositionStart,Zr=Dt.onInputCompositionEnd,gi=Se.useRef(null),_r=(0,Se.useState)(0),vr=(0,Fe.Z)(_r,2),Qr=vr[0],An=vr[1],ki=(0,Se.useState)(!1),Dn=(0,Fe.Z)(ki,2),ui=Dn[0],fo=Dn[1],Mi="".concat(yn,"-selection"),Zo=bn||On==="multiple"&&jn===!1||On==="tags"?Zt:"",co=On==="tags"||On==="multiple"&&jn===!1||an&&(bn||ui);Je(function(){An(gi.current.scrollWidth)},[Zo]);function $r(Pi,Mo,Oi,wo,Lo){return Se.createElement("span",{className:ve()("".concat(Mi,"-item"),(0,oe.Z)({},"".concat(Mi,"-item-disabled"),Oi)),title:vt(Pi)},Se.createElement("span",{className:"".concat(Mi,"-item-content")},Mo),wo&&Se.createElement(re,{className:"".concat(Mi,"-item-remove"),onMouseDown:ft,onClick:Lo,customizeIcon:gn},"\xD7"))}function Gr(Pi,Mo,Oi,wo,Lo){var ko=function(ci){ft(ci),Hr(!bn)};return Se.createElement("span",{onMouseDown:ko},mr({label:Mo,value:Pi,disabled:Oi,closable:wo,onClose:Lo}))}function Ni(Pi){var Mo=Pi.disabled,Oi=Pi.label,wo=Pi.value,Lo=!nn&&!Mo,ko=Oi;if(typeof kn=="number"&&(typeof Oi=="string"||typeof Oi=="number")){var xi=String(ko);xi.length>kn&&(ko="".concat(xi.slice(0,kn),"..."))}var ci=function(Ji){Ji&&Ji.stopPropagation(),Lr(Pi)};return typeof mr=="function"?Gr(wo,ko,Mo,Lo,ci):$r(Pi,ko,Mo,Lo,ci)}function Wi(Pi){var Mo=typeof $n=="function"?$n(Pi):$n;return $r({title:Mo},Mo,!1)}var dr=Se.createElement("div",{className:"".concat(Mi,"-search"),style:{width:Qr},onFocus:function(){fo(!0)},onBlur:function(){fo(!1)}},Se.createElement(_e,{ref:Fn,open:bn,prefixCls:yn,id:pn,inputElement:null,disabled:nn,autoFocus:mn,autoComplete:Ln,editable:co,activeDescendantId:xn,value:Zo,onKeyDown:Mr,onMouseDown:pr,onChange:en,onPaste:ur,onCompositionStart:Ar,onCompositionEnd:Zr,tabIndex:In,attrs:(0,Oe.Z)(Dt,!0)}),Se.createElement("span",{ref:gi,className:"".concat(Mi,"-search-mirror"),"aria-hidden":!0},Zo,"\xA0")),Lt=Se.createElement(Ae.Z,{prefixCls:"".concat(Mi,"-overflow"),data:Jn,renderItem:Ni,renderRest:Wi,suffix:dr,itemKey:ot,maxCount:Nn});return Se.createElement(Se.Fragment,null,Lt,!Jn.length&&!Zo&&Se.createElement("span",{className:"".concat(Mi,"-placeholder")},ar))},yt=xt,pt=function(Dt){var pn=Dt.inputElement,yn=Dt.prefixCls,Jn=Dt.id,bn=Dt.inputRef,Zt=Dt.disabled,jn=Dt.autoFocus,Fn=Dt.autoComplete,ar=Dt.activeDescendantId,nn=Dt.mode,On=Dt.open,an=Dt.values,mn=Dt.placeholder,Ln=Dt.tabIndex,xn=Dt.showSearch,In=Dt.searchValue,gn=Dt.activeValue,Nn=Dt.maxLength,kn=Dt.onInputKeyDown,En=Dt.onInputMouseDown,$n=Dt.onInputChange,mr=Dt.onInputPaste,Hr=Dt.onInputCompositionStart,Lr=Dt.onInputCompositionEnd,en=Dt.title,ur=Se.useState(!1),Mr=(0,Fe.Z)(ur,2),pr=Mr[0],Ar=Mr[1],Zr=nn==="combobox",gi=Zr||xn,_r=an[0],vr=In||"";Zr&&gn&&!pr&&(vr=gn),Se.useEffect(function(){Zr&&Ar(!1)},[Zr,gn]);var Qr=nn!=="combobox"&&!On&&!xn?!1:!!vr,An=en===void 0?vt(_r):en,ki=function(){if(_r)return null;var ui=Qr?{visibility:"hidden"}:void 0;return Se.createElement("span",{className:"".concat(yn,"-selection-placeholder"),style:ui},mn)};return Se.createElement(Se.Fragment,null,Se.createElement("span",{className:"".concat(yn,"-selection-search")},Se.createElement(_e,{ref:bn,prefixCls:yn,id:Jn,open:On,inputElement:pn,disabled:Zt,autoFocus:jn,autoComplete:Fn,editable:gi,activeDescendantId:ar,value:vr,onKeyDown:kn,onMouseDown:En,onChange:function(ui){Ar(!0),$n(ui)},onPaste:mr,onCompositionStart:Hr,onCompositionEnd:Lr,tabIndex:Ln,attrs:(0,Oe.Z)(Dt,!0),maxLength:Zr?Nn:void 0})),!Zr&&_r?Se.createElement("span",{className:"".concat(yn,"-selection-item"),title:An,style:Qr?{visibility:"hidden"}:void 0},_r.label):null,ki())},gt=pt;function mt(Kt){return![z.Z.ESC,z.Z.SHIFT,z.Z.BACKSPACE,z.Z.TAB,z.Z.WIN_KEY,z.Z.ALT,z.Z.META,z.Z.WIN_KEY_RIGHT,z.Z.CTRL,z.Z.SEMICOLON,z.Z.EQUALS,z.Z.CAPS_LOCK,z.Z.CONTEXT_MENU,z.Z.F1,z.Z.F2,z.Z.F3,z.Z.F4,z.Z.F5,z.Z.F6,z.Z.F7,z.Z.F8,z.Z.F9,z.Z.F10,z.Z.F11,z.Z.F12].includes(Kt)}var Mt=function(Dt,pn){var yn=(0,Se.useRef)(null),Jn=(0,Se.useRef)(!1),bn=Dt.prefixCls,Zt=Dt.open,jn=Dt.mode,Fn=Dt.showSearch,ar=Dt.tokenWithEnter,nn=Dt.autoClearSearchValue,On=Dt.onSearch,an=Dt.onSearchSubmit,mn=Dt.onToggleOpen,Ln=Dt.onInputKeyDown,xn=Dt.domRef;Se.useImperativeHandle(pn,function(){return{focus:function(){yn.current.focus()},blur:function(){yn.current.blur()}}});var In=Pe(0),gn=(0,Fe.Z)(In,2),Nn=gn[0],kn=gn[1],En=function(vr){var Qr=vr.which;(Qr===z.Z.UP||Qr===z.Z.DOWN)&&vr.preventDefault(),Ln&&Ln(vr),Qr===z.Z.ENTER&&jn==="tags"&&!Jn.current&&!Zt&&(an==null||an(vr.target.value)),mt(Qr)&&mn(!0)},$n=function(){kn(!0)},mr=(0,Se.useRef)(null),Hr=function(vr){On(vr,!0,Jn.current)!==!1&&mn(!0)},Lr=function(){Jn.current=!0},en=function(vr){Jn.current=!1,jn!=="combobox"&&Hr(vr.target.value)},ur=function(vr){var Qr=vr.target.value;if(ar&&mr.current&&/[\r\n]/.test(mr.current)){var An=mr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Qr=Qr.replace(An,mr.current)}mr.current=null,Hr(Qr)},Mr=function(vr){var Qr=vr.clipboardData,An=Qr.getData("text");mr.current=An},pr=function(vr){var Qr=vr.target;if(Qr!==yn.current){var An=document.body.style.msTouchAction!==void 0;An?setTimeout(function(){yn.current.focus()}):yn.current.focus()}},Ar=function(vr){var Qr=Nn();vr.target!==yn.current&&!Qr&&jn!=="combobox"&&vr.preventDefault(),(jn!=="combobox"&&(!Fn||!Qr)||!Zt)&&(Zt&&nn!==!1&&On("",!0,!1),mn())},Zr={inputRef:yn,onInputKeyDown:En,onInputMouseDown:$n,onInputChange:ur,onInputPaste:Mr,onInputCompositionStart:Lr,onInputCompositionEnd:en},gi=jn==="multiple"||jn==="tags"?Se.createElement(yt,(0,tt.Z)({},Dt,Zr)):Se.createElement(gt,(0,tt.Z)({},Dt,Zr));return Se.createElement("div",{ref:xn,className:"".concat(bn,"-selector"),onClick:pr,onMouseDown:Ar},gi)},Ct=Se.forwardRef(Mt);Ct.displayName="Selector";var zt=Ct,St=Ke(35593),bt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],at=function(Dt){var pn=Dt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:pn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:pn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:pn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:pn,adjustY:1},htmlRegion:"scroll"}}},nt=function(Dt,pn){var yn=Dt.prefixCls,Jn=Dt.disabled,bn=Dt.visible,Zt=Dt.children,jn=Dt.popupElement,Fn=Dt.animation,ar=Dt.transitionName,nn=Dt.dropdownStyle,On=Dt.dropdownClassName,an=Dt.direction,mn=an===void 0?"ltr":an,Ln=Dt.placement,xn=Dt.builtinPlacements,In=Dt.dropdownMatchSelectWidth,gn=Dt.dropdownRender,Nn=Dt.dropdownAlign,kn=Dt.getPopupContainer,En=Dt.empty,$n=Dt.getTriggerDOMNode,mr=Dt.onPopupVisibleChange,Hr=Dt.onPopupMouseEnter,Lr=(0,me.Z)(Dt,bt),en="".concat(yn,"-dropdown"),ur=jn;gn&&(ur=gn(jn));var Mr=Se.useMemo(function(){return xn||at(In)},[xn,In]),pr=Fn?"".concat(en,"-").concat(Fn):ar,Ar=typeof In=="number",Zr=Se.useMemo(function(){return Ar?null:In===!1?"minWidth":"width"},[In,Ar]),gi=nn;Ar&&(gi=(0,Ue.Z)((0,Ue.Z)({},gi),{},{width:In}));var _r=Se.useRef(null);return Se.useImperativeHandle(pn,function(){return{getPopupElement:function(){return _r.current}}}),Se.createElement(St.Z,(0,tt.Z)({},Lr,{showAction:mr?["click"]:[],hideAction:mr?["click"]:[],popupPlacement:Ln||(mn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Mr,prefixCls:en,popupTransitionName:pr,popup:Se.createElement("div",{ref:_r,onMouseEnter:Hr},ur),stretch:Zr,popupAlign:Nn,popupVisible:bn,getPopupContainer:kn,popupClassName:ve()(On,(0,oe.Z)({},"".concat(en,"-empty"),En)),popupStyle:gi,getTriggerDOMNode:$n,onPopupVisibleChange:mr}),Zt)},we=Se.forwardRef(nt);we.displayName="SelectTrigger";var Te=we,Ve=Ke(17953);function Ze(Kt,Dt){var pn=Kt.key,yn;return"value"in Kt&&(yn=Kt.value),pn!=null?pn:yn!==void 0?yn:"rc-index-key-".concat(Dt)}function Ee(Kt,Dt){var pn=Kt||{},yn=pn.label,Jn=pn.value,bn=pn.options,Zt=pn.groupLabel,jn=yn||(Dt?"children":"label");return{label:jn,value:Jn||"value",options:bn||"options",groupLabel:Zt||jn}}function Ge(Kt){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pn=Dt.fieldNames,yn=Dt.childrenAsData,Jn=[],bn=Ee(pn,!1),Zt=bn.label,jn=bn.value,Fn=bn.options,ar=bn.groupLabel;function nn(On,an){On.forEach(function(mn){if(an||!(Fn in mn)){var Ln=mn[jn];Jn.push({key:Ze(mn,Jn.length),groupOption:an,data:mn,label:mn[Zt],value:Ln})}else{var xn=mn[ar];xn===void 0&&yn&&(xn=mn.label),Jn.push({key:Ze(mn,Jn.length),group:!0,data:mn,label:xn}),nn(mn[Fn],!0)}})}return nn(Kt,!1),Jn}function He(Kt){var Dt=(0,Ue.Z)({},Kt);return"props"in Dt||Object.defineProperty(Dt,"props",{get:function(){return(0,Le.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Dt}}),Dt}function We(Kt,Dt){if(!Dt||!Dt.length)return null;var pn=!1;function yn(bn,Zt){var jn=(0,Ve.Z)(Zt),Fn=jn[0],ar=jn.slice(1);if(!Fn)return[bn];var nn=bn.split(Fn);return pn=pn||nn.length>1,nn.reduce(function(On,an){return[].concat((0,Pt.Z)(On),(0,Pt.Z)(yn(an,ar)))},[]).filter(function(On){return On})}var Jn=yn(Kt,Dt);return pn?Jn:null}var Xe=["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"],ct=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Et(Kt){return Kt==="tags"||Kt==="multiple"}var ht=Se.forwardRef(function(Kt,Dt){var pn,yn,Jn=Kt.id,bn=Kt.prefixCls,Zt=Kt.className,jn=Kt.showSearch,Fn=Kt.tagRender,ar=Kt.direction,nn=Kt.omitDomProps,On=Kt.displayValues,an=Kt.onDisplayValuesChange,mn=Kt.emptyOptions,Ln=Kt.notFoundContent,xn=Ln===void 0?"Not Found":Ln,In=Kt.onClear,gn=Kt.mode,Nn=Kt.disabled,kn=Kt.loading,En=Kt.getInputElement,$n=Kt.getRawInputElement,mr=Kt.open,Hr=Kt.defaultOpen,Lr=Kt.onDropdownVisibleChange,en=Kt.activeValue,ur=Kt.onActiveValueChange,Mr=Kt.activeDescendantId,pr=Kt.searchValue,Ar=Kt.autoClearSearchValue,Zr=Kt.onSearch,gi=Kt.onSearchSplit,_r=Kt.tokenSeparators,vr=Kt.allowClear,Qr=Kt.suffixIcon,An=Kt.clearIcon,ki=Kt.OptionList,Dn=Kt.animation,ui=Kt.transitionName,fo=Kt.dropdownStyle,Mi=Kt.dropdownClassName,Zo=Kt.dropdownMatchSelectWidth,co=Kt.dropdownRender,$r=Kt.dropdownAlign,Gr=Kt.placement,Ni=Kt.builtinPlacements,Wi=Kt.getPopupContainer,dr=Kt.showAction,Lt=dr===void 0?[]:dr,Pi=Kt.onFocus,Mo=Kt.onBlur,Oi=Kt.onKeyUp,wo=Kt.onKeyDown,Lo=Kt.onMouseDown,ko=(0,me.Z)(Kt,Xe),xi=Et(gn),ci=(jn!==void 0?jn:xi)||gn==="combobox",ii=(0,Ue.Z)({},ko);ct.forEach(function(qi){delete ii[qi]}),nn==null||nn.forEach(function(qi){delete ii[qi]});var Ji=Se.useState(!1),Or=(0,Fe.Z)(Ji,2),Ir=Or[0],ai=Or[1];Se.useEffect(function(){ai((0,fe.Z)())},[]);var Xn=Se.useRef(null),no=Se.useRef(null),po=Se.useRef(null),Vo=Se.useRef(null),To=Se.useRef(null),ea=Ce(),ba=(0,Fe.Z)(ea,3),Ia=ba[0],Va=ba[1],xs=ba[2];Se.useImperativeHandle(Dt,function(){var qi,Io;return{focus:(qi=Vo.current)===null||qi===void 0?void 0:qi.focus,blur:(Io=Vo.current)===null||Io===void 0?void 0:Io.blur,scrollTo:function(Xa){var Ba;return(Ba=To.current)===null||Ba===void 0?void 0:Ba.scrollTo(Xa)}}});var fs=Se.useMemo(function(){var qi;if(gn!=="combobox")return pr;var Io=(qi=On[0])===null||qi===void 0?void 0:qi.value;return typeof Io=="string"||typeof Io=="number"?String(Io):""},[pr,gn,On]),Tn=gn==="combobox"&&typeof En=="function"&&En()||null,qa=typeof $n=="function"&&$n(),jl=(0,ee.x1)(no,qa==null||(pn=qa.props)===null||pn===void 0?void 0:pn.ref),Il=Se.useState(!1),Zi=(0,Fe.Z)(Il,2),jo=Zi[0],pa=Zi[1];(0,xe.Z)(function(){pa(!0)},[]);var No=(0,be.Z)(!1,{defaultValue:Hr,value:mr}),Qi=(0,Fe.Z)(No,2),Po=Qi[0],Wa=Qi[1],Ei=jo?Po:!1,ro=!xn&&mn;(Nn||ro&&Ei&&gn==="combobox")&&(Ei=!1);var eo=ro?!1:Ei,kr=Se.useCallback(function(qi){var Io=qi!==void 0?qi:!Ei;Nn||(Wa(Io),Ei!==Io&&(Lr==null||Lr(Io)))},[Nn,Ei,Wa,Lr]),Da=Se.useMemo(function(){return(_r||[]).some(function(qi){return[`
|
|
|
`,`\r
|
|
|
`].includes(qi)})},[_r]),Fa=function(Io,Es,Xa){var Ba=!0,ua=Io;ur==null||ur(null);var Pa=Xa?null:We(Io,_r);return gn!=="combobox"&&Pa&&(ua="",gi==null||gi(Pa),kr(!1),Ba=!1),Zr&&fs!==ua&&Zr(ua,{source:Es?"typing":"effect"}),Ba},Cs=function(Io){!Io||!Io.trim()||Zr(Io,{source:"submit"})};Se.useEffect(function(){!Ei&&!xi&&gn!=="combobox"&&Fa("",!1,!1)},[Ei]),Se.useEffect(function(){Po&&Nn&&Wa(!1),Nn&&Va(!1)},[Nn]);var Dl=Pe(),ql=(0,Fe.Z)(Dl,2),wr=ql[0],oa=ql[1],Ua=function(Io){var Es=wr(),Xa=Io.which;if(Xa===z.Z.ENTER&&(gn!=="combobox"&&Io.preventDefault(),Ei||kr(!0)),oa(!!fs),Xa===z.Z.BACKSPACE&&!Es&&xi&&!fs&&On.length){for(var Ba=(0,Pt.Z)(On),ua=null,Pa=Ba.length-1;Pa>=0;Pa-=1){var $a=Ba[Pa];if(!$a.disabled){Ba.splice(Pa,1),ua=$a;break}}ua&&an(Ba,{type:"remove",values:[ua]})}for(var Ra=arguments.length,zu=new Array(Ra>1?Ra-1:0),_l=1;_l<Ra;_l++)zu[_l-1]=arguments[_l];if(Ei&&To.current){var Ta;(Ta=To.current).onKeyDown.apply(Ta,[Io].concat(zu))}wo==null||wo.apply(void 0,[Io].concat(zu))},bl=function(Io){for(var Es=arguments.length,Xa=new Array(Es>1?Es-1:0),Ba=1;Ba<Es;Ba++)Xa[Ba-1]=arguments[Ba];if(Ei&&To.current){var ua;(ua=To.current).onKeyUp.apply(ua,[Io].concat(Xa))}Oi==null||Oi.apply(void 0,[Io].concat(Xa))},Fl=function(Io){var Es=On.filter(function(Xa){return Xa!==Io});an(Es,{type:"remove",values:[Io]})},Bl=Se.useRef(!1),Di=function(){Va(!0),Nn||(Pi&&!Bl.current&&Pi.apply(void 0,arguments),Lt.includes("focus")&&kr(!0)),Bl.current=!0},mc=function(){Va(!1,function(){Bl.current=!1,kr(!1)}),!Nn&&(fs&&(gn==="tags"?Zr(fs,{source:"submit"}):gn==="multiple"&&Zr("",{source:"blur"})),Mo&&Mo.apply(void 0,arguments))},el=[];Se.useEffect(function(){return function(){el.forEach(function(qi){return clearTimeout(qi)}),el.splice(0,el.length)}},[]);var tl=function(Io){var Es,Xa=Io.target,Ba=(Es=po.current)===null||Es===void 0?void 0:Es.getPopupElement();if(Ba&&Ba.contains(Xa)){var ua=setTimeout(function(){var zu=el.indexOf(ua);if(zu!==-1&&el.splice(zu,1),xs(),!Ir&&!Ba.contains(document.activeElement)){var _l;(_l=Vo.current)===null||_l===void 0||_l.focus()}});el.push(ua)}for(var Pa=arguments.length,$a=new Array(Pa>1?Pa-1:0),Ra=1;Ra<Pa;Ra++)$a[Ra-1]=arguments[Ra];Lo==null||Lo.apply(void 0,[Io].concat($a))},As=Se.useState({}),Eu=(0,Fe.Z)(As,2),Ru=Eu[1];function _s(){Ru({})}var hl;qa&&(hl=function(Io){kr(Io)}),Ie(function(){var qi;return[Xn.current,(qi=po.current)===null||qi===void 0?void 0:qi.getPopupElement()]},eo,kr,!!qa);var Hc=Se.useMemo(function(){return(0,Ue.Z)((0,Ue.Z)({},Kt),{},{notFoundContent:xn,open:Ei,triggerOpen:eo,id:Jn,showSearch:ci,multiple:xi,toggleOpen:kr})},[Kt,xn,eo,Ei,Jn,ci,xi,kr]),hh=!!Qr||kn,Gc;hh&&(Gc=Se.createElement(re,{className:ve()("".concat(bn,"-arrow"),(0,oe.Z)({},"".concat(bn,"-arrow-loading"),kn)),customizeIcon:Qr,customizeIconProps:{loading:kn,searchValue:fs,open:Ei,focused:Ia,showSearch:ci}}));var Wh=function(){var Io;In==null||In(),(Io=Vo.current)===null||Io===void 0||Io.focus(),an([],{type:"clear",values:On}),Fa("",!1,!1)},Wc=le(bn,Wh,On,vr,An,Nn,fs,gn),vc=Wc.allowClear,_u=Wc.clearIcon,Rl=Se.createElement(ki,{ref:To}),dh=ve()(bn,Zt,(yn={},(0,oe.Z)(yn,"".concat(bn,"-focused"),Ia),(0,oe.Z)(yn,"".concat(bn,"-multiple"),xi),(0,oe.Z)(yn,"".concat(bn,"-single"),!xi),(0,oe.Z)(yn,"".concat(bn,"-allow-clear"),vr),(0,oe.Z)(yn,"".concat(bn,"-show-arrow"),hh),(0,oe.Z)(yn,"".concat(bn,"-disabled"),Nn),(0,oe.Z)(yn,"".concat(bn,"-loading"),kn),(0,oe.Z)(yn,"".concat(bn,"-open"),Ei),(0,oe.Z)(yn,"".concat(bn,"-customize-input"),Tn),(0,oe.Z)(yn,"".concat(bn,"-show-search"),ci),yn)),Uc=Se.createElement(Te,{ref:po,disabled:Nn,prefixCls:bn,visible:eo,popupElement:Rl,animation:Dn,transitionName:ui,dropdownStyle:fo,dropdownClassName:Mi,direction:ar,dropdownMatchSelectWidth:Zo,dropdownRender:co,dropdownAlign:$r,placement:Gr,builtinPlacements:Ni,getPopupContainer:Wi,empty:mn,getTriggerDOMNode:function(){return no.current},onPopupVisibleChange:hl,onPopupMouseEnter:_s},qa?Se.cloneElement(qa,{ref:jl}):Se.createElement(zt,(0,tt.Z)({},Kt,{domRef:no,prefixCls:bn,inputElement:Tn,ref:Vo,id:Jn,showSearch:ci,autoClearSearchValue:Ar,mode:gn,activeDescendantId:Mr,tagRender:Fn,values:On,open:Ei,onToggleOpen:kr,activeValue:en,searchValue:fs,onSearch:Fa,onSearchSubmit:Cs,onRemove:Fl,tokenWithEnter:Da}))),yc;return qa?yc=Uc:yc=Se.createElement("div",(0,tt.Z)({className:dh},ii,{ref:Xn,onMouseDown:tl,onKeyDown:Ua,onKeyUp:bl,onFocus:Di,onBlur:mc}),Ia&&!Ei&&Se.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(On.map(function(qi){var Io=qi.label,Es=qi.value;return["number","string"].includes((0,ce.Z)(Io))?Io:Es}).join(", "))),Uc,Gc,vc&&_u),Se.createElement(ue.Provider,{value:Hc},yc)}),It=ht,qt=function(Kt,Dt){var pn=Se.useRef({values:new Map,options:new Map}),yn=Se.useMemo(function(){var bn=pn.current,Zt=bn.values,jn=bn.options,Fn=Kt.map(function(On){if(On.label===void 0){var an;return(0,Ue.Z)((0,Ue.Z)({},On),{},{label:(an=Zt.get(On.value))===null||an===void 0?void 0:an.label})}return On}),ar=new Map,nn=new Map;return Fn.forEach(function(On){ar.set(On.value,On),nn.set(On.value,Dt.get(On.value)||jn.get(On.value))}),pn.current.values=ar,pn.current.options=nn,Fn},[Kt,Dt]),Jn=Se.useCallback(function(bn){return Dt.get(bn)||pn.current.options.get(bn)},[Dt]);return[yn,Jn]};function $t(Kt,Dt){return qe(Kt).join("").toUpperCase().includes(Dt)}var Wt=function(Kt,Dt,pn,yn,Jn){return Se.useMemo(function(){if(!pn||yn===!1)return Kt;var bn=Dt.options,Zt=Dt.label,jn=Dt.value,Fn=[],ar=typeof yn=="function",nn=pn.toUpperCase(),On=ar?yn:function(mn,Ln){return Jn?$t(Ln[Jn],nn):Ln[bn]?$t(Ln[Zt!=="children"?Zt:"label"],nn):$t(Ln[jn],nn)},an=ar?function(mn){return He(mn)}:function(mn){return mn};return Kt.forEach(function(mn){if(mn[bn]){var Ln=On(pn,an(mn));if(Ln)Fn.push(mn);else{var xn=mn[bn].filter(function(In){return On(pn,an(In))});xn.length&&Fn.push((0,Ue.Z)((0,Ue.Z)({},mn),{},(0,oe.Z)({},bn,xn)))}return}On(pn,an(mn))&&Fn.push(mn)}),Fn},[Kt,yn,Jn,pn,Dt])},Ut=Ke(17115),ln=Ke(38298),kt=["children","value"],Xt=["children"];function tn(Kt){var Dt=Kt,pn=Dt.key,yn=Dt.props,Jn=yn.children,bn=yn.value,Zt=(0,me.Z)(yn,kt);return(0,Ue.Z)({key:pn,value:bn!==void 0?bn:pn,children:Jn},Zt)}function dn(Kt){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,ln.Z)(Kt).map(function(pn,yn){if(!Se.isValidElement(pn)||!pn.type)return null;var Jn=pn,bn=Jn.type.isSelectOptGroup,Zt=Jn.key,jn=Jn.props,Fn=jn.children,ar=(0,me.Z)(jn,Xt);return Dt||!bn?tn(pn):(0,Ue.Z)((0,Ue.Z)({key:"__RC_SELECT_GRP__".concat(Zt===null?yn:Zt,"__"),label:Zt},ar),{},{options:dn(Fn)})}).filter(function(pn){return pn})}function Mn(Kt,Dt,pn,yn,Jn){return Se.useMemo(function(){var bn=Kt,Zt=!Kt;Zt&&(bn=dn(Dt));var jn=new Map,Fn=new Map,ar=function(an,mn,Ln){Ln&&typeof Ln=="string"&&an.set(mn[Ln],mn)};function nn(On){for(var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,mn=0;mn<On.length;mn+=1){var Ln=On[mn];!Ln[pn.options]||an?(jn.set(Ln[pn.value],Ln),ar(Fn,Ln,pn.label),ar(Fn,Ln,yn),ar(Fn,Ln,Jn)):nn(Ln[pn.options],!0)}}return nn(bn),{options:bn,valueOptions:jn,labelOptions:Fn}},[Kt,Dt,pn,yn,Jn])}function Rn(Kt){var Dt=Se.useRef();Dt.current=Kt;var pn=Se.useCallback(function(){return Dt.current.apply(Dt,arguments)},[]);return pn}var ir=function(){return null};ir.isSelectOptGroup=!0;var qn=ir,Cr=function(){return null};Cr.isSelectOption=!0;var er=Cr,Fr=Ke(79722),jr=Ke(64002),fi=Ke(50030),Si=Se.createContext(null),tr=Si;function gr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Qn=["disabled","title","children","style","className"];function it(Kt){return typeof Kt=="string"||typeof Kt=="number"}var Ur=function(Dt,pn){var yn=pe(),Jn=yn.prefixCls,bn=yn.id,Zt=yn.open,jn=yn.multiple,Fn=yn.mode,ar=yn.searchValue,nn=yn.toggleOpen,On=yn.notFoundContent,an=yn.onPopupScroll,mn=Se.useContext(tr),Ln=mn.flattenOptions,xn=mn.onActiveValue,In=mn.defaultActiveFirstOption,gn=mn.onSelect,Nn=mn.menuItemSelectedIcon,kn=mn.rawValues,En=mn.fieldNames,$n=mn.virtual,mr=mn.direction,Hr=mn.listHeight,Lr=mn.listItemHeight,en="".concat(Jn,"-item"),ur=(0,Fr.Z)(function(){return Ln},[Zt,Ln],function($r,Gr){return Gr[0]&&$r[1]!==Gr[1]}),Mr=Se.useRef(null),pr=function(Gr){Gr.preventDefault()},Ar=function(Gr){Mr.current&&Mr.current.scrollTo(typeof Gr=="number"?{index:Gr}:Gr)},Zr=function(Gr){for(var Ni=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Wi=ur.length,dr=0;dr<Wi;dr+=1){var Lt=(Gr+dr*Ni+Wi)%Wi,Pi=ur[Lt],Mo=Pi.group,Oi=Pi.data;if(!Mo&&!Oi.disabled)return Lt}return-1},gi=Se.useState(function(){return Zr(0)}),_r=(0,Fe.Z)(gi,2),vr=_r[0],Qr=_r[1],An=function(Gr){var Ni=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Qr(Gr);var Wi={source:Ni?"keyboard":"mouse"},dr=ur[Gr];if(!dr){xn(null,-1,Wi);return}xn(dr.value,Gr,Wi)};(0,Se.useEffect)(function(){An(In!==!1?Zr(0):-1)},[ur.length,ar]);var ki=Se.useCallback(function($r){return kn.has($r)&&Fn!=="combobox"},[Fn,(0,Pt.Z)(kn).toString(),kn.size]);(0,Se.useEffect)(function(){var $r=setTimeout(function(){if(!jn&&Zt&&kn.size===1){var Ni=Array.from(kn)[0],Wi=ur.findIndex(function(dr){var Lt=dr.data;return Lt.value===Ni});Wi!==-1&&(An(Wi),Ar(Wi))}});if(Zt){var Gr;(Gr=Mr.current)===null||Gr===void 0||Gr.scrollTo(void 0)}return function(){return clearTimeout($r)}},[Zt,ar,Ln.length]);var Dn=function(Gr){Gr!==void 0&&gn(Gr,{selected:!kn.has(Gr)}),jn||nn(!1)};if(Se.useImperativeHandle(pn,function(){return{onKeyDown:function(Gr){var Ni=Gr.which,Wi=Gr.ctrlKey;switch(Ni){case z.Z.N:case z.Z.P:case z.Z.UP:case z.Z.DOWN:{var dr=0;if(Ni===z.Z.UP?dr=-1:Ni===z.Z.DOWN?dr=1:gr()&&Wi&&(Ni===z.Z.N?dr=1:Ni===z.Z.P&&(dr=-1)),dr!==0){var Lt=Zr(vr+dr,dr);Ar(Lt),An(Lt,!0)}break}case z.Z.ENTER:{var Pi=ur[vr];Pi&&!Pi.data.disabled?Dn(Pi.value):Dn(void 0),Zt&&Gr.preventDefault();break}case z.Z.ESC:nn(!1),Zt&&Gr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Gr){Ar(Gr)}}}),ur.length===0)return Se.createElement("div",{role:"listbox",id:"".concat(bn,"_list"),className:"".concat(en,"-empty"),onMouseDown:pr},On);var ui=Object.keys(En).map(function($r){return En[$r]}),fo=function(Gr){return Gr.label};function Mi($r,Gr){var Ni=$r.group;return{role:Ni?"presentation":"option",id:"".concat(bn,"_list_").concat(Gr)}}var Zo=function(Gr){var Ni=ur[Gr];if(!Ni)return null;var Wi=Ni.data||{},dr=Wi.value,Lt=Ni.group,Pi=(0,Oe.Z)(Wi,!0),Mo=fo(Ni);return Ni?Se.createElement("div",(0,tt.Z)({"aria-label":typeof Mo=="string"&&!Lt?Mo:null},Pi,{key:Gr},Mi(Ni,Gr),{"aria-selected":ki(dr)}),dr):null},co={role:"listbox",id:"".concat(bn,"_list")};return Se.createElement(Se.Fragment,null,$n&&Se.createElement("div",(0,tt.Z)({},co,{style:{height:0,width:0,overflow:"hidden"}}),Zo(vr-1),Zo(vr),Zo(vr+1)),Se.createElement(fi.Z,{itemKey:"key",ref:Mr,data:ur,height:Hr,itemHeight:Lr,fullHeight:!1,onMouseDown:pr,onScroll:an,virtual:$n,direction:mr,innerProps:$n?null:co},function($r,Gr){var Ni,Wi=$r.group,dr=$r.groupOption,Lt=$r.data,Pi=$r.label,Mo=$r.value,Oi=Lt.key;if(Wi){var wo,Lo=(wo=Lt.title)!==null&&wo!==void 0?wo:it(Pi)?Pi.toString():void 0;return Se.createElement("div",{className:ve()(en,"".concat(en,"-group")),title:Lo},Pi!==void 0?Pi:Oi)}var ko=Lt.disabled,xi=Lt.title,ci=Lt.children,ii=Lt.style,Ji=Lt.className,Or=(0,me.Z)(Lt,Qn),Ir=(0,jr.Z)(Or,ui),ai=ki(Mo),Xn="".concat(en,"-option"),no=ve()(en,Xn,Ji,(Ni={},(0,oe.Z)(Ni,"".concat(Xn,"-grouped"),dr),(0,oe.Z)(Ni,"".concat(Xn,"-active"),vr===Gr&&!ko),(0,oe.Z)(Ni,"".concat(Xn,"-disabled"),ko),(0,oe.Z)(Ni,"".concat(Xn,"-selected"),ai),Ni)),po=fo($r),Vo=!Nn||typeof Nn=="function"||ai,To=typeof po=="number"?po:po||Mo,ea=it(To)?To.toString():void 0;return xi!==void 0&&(ea=xi),Se.createElement("div",(0,tt.Z)({},(0,Oe.Z)(Ir),$n?{}:Mi($r,Gr),{"aria-selected":ai,className:no,title:ea,onMouseMove:function(){vr===Gr||ko||An(Gr)},onClick:function(){ko||Dn(Mo)},style:ii}),Se.createElement("div",{className:"".concat(Xn,"-content")},To),Se.isValidElement(Nn)||ai,Vo&&Se.createElement(re,{className:"".concat(en,"-option-state"),customizeIcon:Nn,customizeIconProps:{isSelected:ai}},ai?"\u2713":null))}))},Rr=Se.forwardRef(Ur);Rr.displayName="OptionList";var di=Rr;function Vr(Kt){var Dt=Kt.mode,pn=Kt.options,yn=Kt.children,Jn=Kt.backfill,bn=Kt.allowClear,Zt=Kt.placeholder,jn=Kt.getInputElement,Fn=Kt.showSearch,ar=Kt.onSearch,nn=Kt.defaultOpen,On=Kt.autoFocus,an=Kt.labelInValue,mn=Kt.value,Ln=Kt.inputValue,xn=Kt.optionLabelProp,In=isMultiple(Dt),gn=Fn!==void 0?Fn:In||Dt==="combobox",Nn=pn||convertChildrenToData(yn);if(warning(Dt!=="tags"||Nn.every(function(mr){return!mr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Dt==="tags"||Dt==="combobox"){var kn=Nn.some(function(mr){return mr.options?mr.options.some(function(Hr){return typeof("value"in Hr?Hr.value:Hr.key)=="number"}):typeof("value"in mr?mr.value:mr.key)=="number"});warning(!kn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Dt!=="combobox"||!xn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Dt==="combobox"||!Jn,"`backfill` only works with `combobox` mode."),warning(Dt==="combobox"||!jn,"`getInputElement` only work with `combobox` mode."),noteOnce(Dt!=="combobox"||!jn||!bn||!Zt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ar&&!gn&&Dt!=="combobox"&&Dt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!nn||On,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),mn!=null){var En=toArray(mn);warning(!an||En.every(function(mr){return _typeof(mr)==="object"&&("key"in mr||"value"in mr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!In||Array.isArray(mn),"`value` should be array when `mode` is `multiple` or `tags`")}if(yn){var $n=null;toNodeArray(yn).some(function(mr){if(!React.isValidElement(mr)||!mr.type)return!1;var Hr=mr,Lr=Hr.type;if(Lr.isSelectOption)return!1;if(Lr.isSelectOptGroup){var en=toNodeArray(mr.props.children).every(function(ur){return!React.isValidElement(ur)||!mr.type||ur.type.isSelectOption?!0:($n=ur.type,!1)});return!en}return $n=Lr,!0}),$n&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat($n.displayName||$n.name||$n,"`.")),warning(Ln===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Br(Kt,Dt){if(Kt){var pn=function yn(Jn){for(var bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Zt=0;Zt<Jn.length;Zt++){var jn=Jn[Zt];if(jn[Dt==null?void 0:Dt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!bn&&Array.isArray(jn[Dt==null?void 0:Dt.options])&&yn(jn[Dt==null?void 0:Dt.options],!0))break}};pn(Kt)}}var Xr=null,hr=["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"],un=["inputValue"];function on(Kt){return!Kt||(0,ce.Z)(Kt)!=="object"}var Jt=Se.forwardRef(function(Kt,Dt){var pn=Kt.id,yn=Kt.mode,Jn=Kt.prefixCls,bn=Jn===void 0?"rc-select":Jn,Zt=Kt.backfill,jn=Kt.fieldNames,Fn=Kt.inputValue,ar=Kt.searchValue,nn=Kt.onSearch,On=Kt.autoClearSearchValue,an=On===void 0?!0:On,mn=Kt.onSelect,Ln=Kt.onDeselect,xn=Kt.dropdownMatchSelectWidth,In=xn===void 0?!0:xn,gn=Kt.filterOption,Nn=Kt.filterSort,kn=Kt.optionFilterProp,En=Kt.optionLabelProp,$n=Kt.options,mr=Kt.children,Hr=Kt.defaultActiveFirstOption,Lr=Kt.menuItemSelectedIcon,en=Kt.virtual,ur=Kt.direction,Mr=Kt.listHeight,pr=Mr===void 0?200:Mr,Ar=Kt.listItemHeight,Zr=Ar===void 0?20:Ar,gi=Kt.value,_r=Kt.defaultValue,vr=Kt.labelInValue,Qr=Kt.onChange,An=(0,me.Z)(Kt,hr),ki=(0,Ut.ZP)(pn),Dn=Et(yn),ui=!!(!$n&&mr),fo=Se.useMemo(function(){return gn===void 0&&yn==="combobox"?!1:gn},[gn,yn]),Mi=Se.useMemo(function(){return Ee(jn,ui)},[JSON.stringify(jn),ui]),Zo=(0,be.Z)("",{value:ar!==void 0?ar:Fn,postState:function(ro){return ro||""}}),co=(0,Fe.Z)(Zo,2),$r=co[0],Gr=co[1],Ni=Mn($n,mr,Mi,kn,En),Wi=Ni.valueOptions,dr=Ni.labelOptions,Lt=Ni.options,Pi=Se.useCallback(function(Ei){var ro=qe(Ei);return ro.map(function(eo){var kr,Da,Fa,Cs,Dl;if(on(eo))kr=eo;else{var ql;Fa=eo.key,Da=eo.label,kr=(ql=eo.value)!==null&&ql!==void 0?ql:Fa}var wr=Wi.get(kr);if(wr){var oa;if(Da===void 0&&(Da=wr==null?void 0:wr[En||Mi.label]),Fa===void 0&&(Fa=(oa=wr==null?void 0:wr.key)!==null&&oa!==void 0?oa:kr),Cs=wr==null?void 0:wr.disabled,Dl=wr==null?void 0:wr.title,0)var Ua}return{label:Da,value:kr,key:Fa,disabled:Cs,title:Dl}})},[Mi,En,Wi]),Mo=(0,be.Z)(_r,{value:gi}),Oi=(0,Fe.Z)(Mo,2),wo=Oi[0],Lo=Oi[1],ko=Se.useMemo(function(){var Ei,ro=Pi(wo);return yn==="combobox"&<((Ei=ro[0])===null||Ei===void 0?void 0:Ei.value)?[]:ro},[wo,Pi,yn]),xi=qt(ko,Wi),ci=(0,Fe.Z)(xi,2),ii=ci[0],Ji=ci[1],Or=Se.useMemo(function(){if(!yn&&ii.length===1){var Ei=ii[0];if(Ei.value===null&&(Ei.label===null||Ei.label===void 0))return[]}return ii.map(function(ro){var eo;return(0,Ue.Z)((0,Ue.Z)({},ro),{},{label:(eo=ro.label)!==null&&eo!==void 0?eo:ro.value})})},[yn,ii]),Ir=Se.useMemo(function(){return new Set(ii.map(function(Ei){return Ei.value}))},[ii]);Se.useEffect(function(){if(yn==="combobox"){var Ei,ro=(Ei=ii[0])===null||Ei===void 0?void 0:Ei.value;Gr(et(ro)?String(ro):"")}},[ii]);var ai=Rn(function(Ei,ro){var eo,kr=ro!=null?ro:Ei;return eo={},(0,oe.Z)(eo,Mi.value,Ei),(0,oe.Z)(eo,Mi.label,kr),eo}),Xn=Se.useMemo(function(){if(yn!=="tags")return Lt;var Ei=(0,Pt.Z)(Lt),ro=function(kr){return Wi.has(kr)};return(0,Pt.Z)(ii).sort(function(eo,kr){return eo.value<kr.value?-1:1}).forEach(function(eo){var kr=eo.value;ro(kr)||Ei.push(ai(kr,eo.label))}),Ei},[ai,Lt,Wi,ii,yn]),no=Wt(Xn,Mi,$r,fo,kn),po=Se.useMemo(function(){return yn!=="tags"||!$r||no.some(function(Ei){return Ei[kn||"value"]===$r})||no.some(function(Ei){return Ei[Mi.value]===$r})?no:[ai($r)].concat((0,Pt.Z)(no))},[ai,kn,yn,no,$r,Mi]),Vo=Se.useMemo(function(){return Nn?(0,Pt.Z)(po).sort(function(Ei,ro){return Nn(Ei,ro)}):po},[po,Nn]),To=Se.useMemo(function(){return Ge(Vo,{fieldNames:Mi,childrenAsData:ui})},[Vo,Mi,ui]),ea=function(ro){var eo=Pi(ro);if(Lo(eo),Qr&&(eo.length!==ii.length||eo.some(function(Fa,Cs){var Dl;return((Dl=ii[Cs])===null||Dl===void 0?void 0:Dl.value)!==(Fa==null?void 0:Fa.value)}))){var kr=vr?eo:eo.map(function(Fa){return Fa.value}),Da=eo.map(function(Fa){return He(Ji(Fa.value))});Qr(Dn?kr:kr[0],Dn?Da:Da[0])}},ba=Se.useState(null),Ia=(0,Fe.Z)(ba,2),Va=Ia[0],xs=Ia[1],fs=Se.useState(0),Tn=(0,Fe.Z)(fs,2),qa=Tn[0],jl=Tn[1],Il=Hr!==void 0?Hr:yn!=="combobox",Zi=Se.useCallback(function(Ei,ro){var eo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},kr=eo.source,Da=kr===void 0?"keyboard":kr;jl(ro),Zt&&yn==="combobox"&&Ei!==null&&Da==="keyboard"&&xs(String(Ei))},[Zt,yn]),jo=function(ro,eo,kr){var Da=function(){var Bl,Di=Ji(ro);return[vr?{label:Di==null?void 0:Di[Mi.label],value:ro,key:(Bl=Di==null?void 0:Di.key)!==null&&Bl!==void 0?Bl:ro}:ro,He(Di)]};if(eo&&mn){var Fa=Da(),Cs=(0,Fe.Z)(Fa,2),Dl=Cs[0],ql=Cs[1];mn(Dl,ql)}else if(!eo&&Ln&&kr!=="clear"){var wr=Da(),oa=(0,Fe.Z)(wr,2),Ua=oa[0],bl=oa[1];Ln(Ua,bl)}},pa=Rn(function(Ei,ro){var eo,kr=Dn?ro.selected:!0;kr?eo=Dn?[].concat((0,Pt.Z)(ii),[Ei]):[Ei]:eo=ii.filter(function(Da){return Da.value!==Ei}),ea(eo),jo(Ei,kr),yn==="combobox"?xs(""):(!Et||an)&&(Gr(""),xs(""))}),No=function(ro,eo){ea(ro);var kr=eo.type,Da=eo.values;(kr==="remove"||kr==="clear")&&Da.forEach(function(Fa){jo(Fa.value,!1,kr)})},Qi=function(ro,eo){if(Gr(ro),xs(null),eo.source==="submit"){var kr=(ro||"").trim();if(kr){var Da=Array.from(new Set([].concat((0,Pt.Z)(Ir),[kr])));ea(Da),jo(kr,!0),Gr("")}return}eo.source!=="blur"&&(yn==="combobox"&&ea(ro),nn==null||nn(ro))},Po=function(ro){var eo=ro;yn!=="tags"&&(eo=ro.map(function(Da){var Fa=dr.get(Da);return Fa==null?void 0:Fa.value}).filter(function(Da){return Da!==void 0}));var kr=Array.from(new Set([].concat((0,Pt.Z)(Ir),(0,Pt.Z)(eo))));ea(kr),kr.forEach(function(Da){jo(Da,!0)})},Wa=Se.useMemo(function(){var Ei=en!==!1&&In!==!1;return(0,Ue.Z)((0,Ue.Z)({},Ni),{},{flattenOptions:To,onActiveValue:Zi,defaultActiveFirstOption:Il,onSelect:pa,menuItemSelectedIcon:Lr,rawValues:Ir,fieldNames:Mi,virtual:Ei,direction:ur,listHeight:pr,listItemHeight:Zr,childrenAsData:ui})},[Ni,To,Zi,Il,pa,Lr,Ir,Mi,en,In,pr,Zr,ui]);return Se.createElement(tr.Provider,{value:Wa},Se.createElement(It,(0,tt.Z)({},An,{id:ki,prefixCls:bn,ref:Dt,omitDomProps:un,mode:yn,displayValues:Or,onDisplayValuesChange:No,direction:ur,searchValue:$r,onSearch:Qi,autoClearSearchValue:an,onSearchSplit:Po,dropdownMatchSelectWidth:In,OptionList:di,emptyOptions:!To.length,activeValue:Va,activeDescendantId:"".concat(ki,"_list_").concat(qa)})))}),jt=Jt;jt.Option=er,jt.OptGroup=qn;var Pn=jt,Cn=Pn},9296:function(Gn,vn,Ke){"use strict";Ke.r(vn),Ke.d(vn,{ResizableTextArea:function(){return Be},default:function(){return lt}});var tt=Ke(5891),Pt=Ke(57259),oe=Ke(80962),Ue=Ke(80665),Fe=Ke(29043),me=Ke(19149),ce=Ke(26390),be=Ke(92310),Le=Ke.n(be),Se=Ke(93681),ke=Ke(5643),ve=Ke(35788),xe=Ke(59301),fe=Ke(29301),z=Ke(28800),ee=Ke(23073),ae=`
|
|
|
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;
|
|
|
`,re=["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"],le={},ue;function pe(dt){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Je=dt.getAttribute("id")||dt.getAttribute("data-reactid")||dt.getAttribute("name");if(vt&&le[Je])return le[Je];var ot=window.getComputedStyle(dt),ft=ot.getPropertyValue("box-sizing")||ot.getPropertyValue("-moz-box-sizing")||ot.getPropertyValue("-webkit-box-sizing"),xt=parseFloat(ot.getPropertyValue("padding-bottom"))+parseFloat(ot.getPropertyValue("padding-top")),yt=parseFloat(ot.getPropertyValue("border-bottom-width"))+parseFloat(ot.getPropertyValue("border-top-width")),pt=re.map(function(mt){return"".concat(mt,":").concat(ot.getPropertyValue(mt))}).join(";"),gt={sizingStyle:pt,paddingSize:xt,borderSize:yt,boxSizing:ft};return vt&&Je&&(le[Je]=gt),gt}function Ce(dt){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ot=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ue||(ue=document.createElement("textarea"),ue.setAttribute("tab-index","-1"),ue.setAttribute("aria-hidden","true"),document.body.appendChild(ue)),dt.getAttribute("wrap")?ue.setAttribute("wrap",dt.getAttribute("wrap")):ue.removeAttribute("wrap");var ft=pe(dt,vt),xt=ft.paddingSize,yt=ft.borderSize,pt=ft.boxSizing,gt=ft.sizingStyle;ue.setAttribute("style","".concat(gt,";").concat(ae)),ue.value=dt.value||dt.placeholder||"";var mt=void 0,Mt=void 0,Ct,zt=ue.scrollHeight;if(pt==="border-box"?zt+=yt:pt==="content-box"&&(zt-=xt),Je!==null||ot!==null){ue.value=" ";var St=ue.scrollHeight-xt;Je!==null&&(mt=St*Je,pt==="border-box"&&(mt=mt+xt+yt),zt=Math.max(mt,zt)),ot!==null&&(Mt=St*ot,pt==="border-box"&&(Mt=Mt+xt+yt),Ct=zt>Mt?"":"hidden",zt=Math.min(Mt,zt))}var bt={height:zt,overflowY:Ct,resize:"none"};return mt&&(bt.minHeight=mt),Mt&&(bt.maxHeight=Mt),bt}var Pe=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ie=0,Oe=1,Ae=2,je=xe.forwardRef(function(dt,vt){var Je=dt,ot=Je.prefixCls,ft=Je.onPressEnter,xt=Je.defaultValue,yt=Je.value,pt=Je.autoSize,gt=Je.onResize,mt=Je.className,Mt=Je.style,Ct=Je.disabled,zt=Je.onChange,St=Je.onInternalAutoSize,bt=(0,me.Z)(Je,Pe),at=(0,ve.Z)(xt,{value:yt,postState:function(qn){return qn!=null?qn:""}}),nt=(0,Fe.Z)(at,2),we=nt[0],Te=nt[1],Ve=function(qn){Te(qn.target.value),zt==null||zt(qn)},Ze=xe.useRef();xe.useImperativeHandle(vt,function(){return{textArea:Ze.current}});var Ee=xe.useMemo(function(){return pt&&(0,Ue.Z)(pt)==="object"?[pt.minRows,pt.maxRows]:[]},[pt]),Ge=(0,Fe.Z)(Ee,2),He=Ge[0],We=Ge[1],Xe=!!pt,ct=function(){try{if(document.activeElement===Ze.current){var qn=Ze.current,Cr=qn.selectionStart,er=qn.selectionEnd,Fr=qn.scrollTop;Ze.current.setSelectionRange(Cr,er),Ze.current.scrollTop=Fr}}catch(jr){}},Et=xe.useState(Ae),ht=(0,Fe.Z)(Et,2),It=ht[0],qt=ht[1],$t=xe.useState(),Wt=(0,Fe.Z)($t,2),Ut=Wt[0],ln=Wt[1],kt=function(){qt(Ie)};(0,z.Z)(function(){Xe&&kt()},[yt,He,We,Xe]),(0,z.Z)(function(){if(It===Ie)qt(Oe);else if(It===Oe){var ir=Ce(Ze.current,!1,He,We);qt(Ae),ln(ir)}else ct()},[It]);var Xt=xe.useRef(),tn=function(){ee.Z.cancel(Xt.current)},dn=function(qn){It===Ae&&(gt==null||gt(qn),pt&&(tn(),Xt.current=(0,ee.Z)(function(){kt()})))};xe.useEffect(function(){return tn},[]);var Mn=Xe?Ut:null,Rn=(0,Pt.Z)((0,Pt.Z)({},Mt),Mn);return(It===Ie||It===Oe)&&(Rn.overflowY="hidden",Rn.overflowX="hidden"),xe.createElement(fe.Z,{onResize:dn,disabled:!(pt||gt)},xe.createElement("textarea",(0,tt.Z)({},bt,{ref:Ze,style:Rn,className:Le()(ot,mt,(0,oe.Z)({},"".concat(ot,"-disabled"),Ct)),disabled:Ct,value:we,onChange:Ve})))}),Be=je,_e=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function qe(dt,vt){return(0,ce.Z)(dt||"").slice(0,vt).join("")}function ze(dt,vt,Je,ot){var ft=Je;return dt?ft=qe(Je,ot):(0,ce.Z)(vt||"").length<Je.length&&(0,ce.Z)(Je||"").length>ot&&(ft=vt),ft}var Ye=xe.forwardRef(function(dt,vt){var Je,ot=dt.defaultValue,ft=dt.value,xt=dt.onFocus,yt=dt.onBlur,pt=dt.onChange,gt=dt.allowClear,mt=dt.maxLength,Mt=dt.onCompositionStart,Ct=dt.onCompositionEnd,zt=dt.suffix,St=dt.prefixCls,bt=St===void 0?"rc-textarea":St,at=dt.classes,nt=dt.showCount,we=dt.className,Te=dt.style,Ve=dt.disabled,Ze=dt.hidden,Ee=dt.classNames,Ge=dt.styles,He=dt.onResize,We=(0,me.Z)(dt,_e),Xe=(0,ve.Z)(ot,{value:ft,defaultValue:ot}),ct=(0,Fe.Z)(Xe,2),Et=ct[0],ht=ct[1],It=(0,xe.useRef)(null),qt=xe.useState(!1),$t=(0,Fe.Z)(qt,2),Wt=$t[0],Ut=$t[1],ln=xe.useState(!1),kt=(0,Fe.Z)(ln,2),Xt=kt[0],tn=kt[1],dn=xe.useRef(),Mn=xe.useRef(0),Rn=xe.useState(null),ir=(0,Fe.Z)(Rn,2),qn=ir[0],Cr=ir[1],er=function(){var on;(on=It.current)===null||on===void 0||on.textArea.focus()};(0,xe.useImperativeHandle)(vt,function(){return{resizableTextArea:It.current,focus:er,blur:function(){var on;(on=It.current)===null||on===void 0||on.textArea.blur()}}}),(0,xe.useEffect)(function(){Ut(function(un){return!Ve&&un})},[Ve]);var Fr=Number(mt)>0,jr=function(on){tn(!0),dn.current=Et,Mn.current=on.currentTarget.selectionStart,Mt==null||Mt(on)},fi=function(on){tn(!1);var Jt=on.currentTarget.value;if(Fr){var jt,Pn=Mn.current>=mt+1||Mn.current===((jt=dn.current)===null||jt===void 0?void 0:jt.length);Jt=ze(Pn,dn.current,Jt,mt)}Jt!==Et&&(ht(Jt),(0,ke.rJ)(on.currentTarget,on,pt,Jt)),Ct==null||Ct(on)},Si=function(on){var Jt=on.target.value;if(!Xt&&Fr){var jt=on.target.selectionStart>=mt+1||on.target.selectionStart===Jt.length||!on.target.selectionStart;Jt=ze(jt,Et,Jt,mt)}ht(Jt),(0,ke.rJ)(on.currentTarget,on,pt,Jt)},tr=function(on){var Jt=We.onPressEnter,jt=We.onKeyDown;on.key==="Enter"&&Jt&&Jt(on),jt==null||jt(on)},gr=function(on){Ut(!0),xt==null||xt(on)},Qn=function(on){Ut(!1),yt==null||yt(on)},it=function(on){var Jt;ht(""),er(),(0,ke.rJ)((Jt=It.current)===null||Jt===void 0?void 0:Jt.textArea,on,pt)},Ur=(0,ke.D7)(Et);!Xt&&Fr&&ft==null&&(Ur=qe(Ur,mt));var Rr=zt,di;if(nt){var Vr=(0,ce.Z)(Ur).length;(0,Ue.Z)(nt)==="object"?di=nt.formatter({value:Ur,count:Vr,maxLength:mt}):di="".concat(Vr).concat(Fr?" / ".concat(mt):""),Rr=xe.createElement(xe.Fragment,null,Rr,xe.createElement("span",{className:Le()("".concat(bt,"-data-count"),Ee==null?void 0:Ee.count),style:Ge==null?void 0:Ge.count},di))}var Br=function(on){var Jt;He==null||He(on),(Jt=It.current)!==null&&Jt!==void 0&&Jt.textArea.style.height&&Cr(!0)},Xr=!We.autoSize&&!nt&&!gt,hr=xe.createElement(Se.BaseInput,{value:Ur,allowClear:gt,handleReset:it,suffix:Rr,prefixCls:bt,classes:{affixWrapper:Le()(at==null?void 0:at.affixWrapper,(Je={},(0,oe.Z)(Je,"".concat(bt,"-show-count"),nt),(0,oe.Z)(Je,"".concat(bt,"-textarea-allow-clear"),gt),Je))},disabled:Ve,focused:Wt,className:we,style:(0,Pt.Z)((0,Pt.Z)({},Te),qn&&!Xr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof di=="string"?di:void 0}},hidden:Ze,inputElement:xe.createElement(Be,(0,tt.Z)({},We,{onKeyDown:tr,onChange:Si,onFocus:gr,onBlur:Qn,onCompositionStart:jr,onCompositionEnd:fi,className:Ee==null?void 0:Ee.textarea,style:(0,Pt.Z)((0,Pt.Z)({},Ge==null?void 0:Ge.textarea),{},{resize:Te==null?void 0:Te.resize}),disabled:Ve,prefixCls:bt,onResize:Br,ref:It}))});return hr}),et=Ye,lt=et},39417:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return Oe}});var tt=Ke(5891),Pt=Ke(80962),oe=Ke(19149),Ue=Ke(57259),Fe=Ke(79545),me=Ke(68550),ce=Ke(21882),be=Ke(17928),Le=Ke(7711),Se=Ke(92310),ke=Ke.n(Se),ve=Ke(36994),xe=Ke(59301),fe=Ke(39378),z=function(je){for(var Be=je.prefixCls,_e=je.level,qe=je.isStart,ze=je.isEnd,Ye="".concat(Be,"-indent-unit"),et=[],lt=0;lt<_e;lt+=1){var dt;et.push(xe.createElement("span",{key:lt,className:ke()(Ye,(dt={},(0,Pt.Z)(dt,"".concat(Ye,"-start"),qe[lt]),(0,Pt.Z)(dt,"".concat(Ye,"-end"),ze[lt]),dt))}))}return xe.createElement("span",{"aria-hidden":"true",className:"".concat(Be,"-indent")},et)},ee=xe.memo(z),ae=Ke(67841),re=Ke(71430),le=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ue="open",pe="close",Ce="---",Pe=function(Ae){(0,be.Z)(Be,Ae);var je=(0,Le.Z)(Be);function Be(){var _e;(0,Fe.Z)(this,Be);for(var qe=arguments.length,ze=new Array(qe),Ye=0;Ye<qe;Ye++)ze[Ye]=arguments[Ye];return _e=je.call.apply(je,[this].concat(ze)),_e.state={dragNodeHighlight:!1},_e.selectHandle=void 0,_e.cacheIndent=void 0,_e.onSelectorClick=function(et){var lt=_e.props.context.onNodeClick;lt(et,(0,re.F)(_e.props)),_e.isSelectable()?_e.onSelect(et):_e.onCheck(et)},_e.onSelectorDoubleClick=function(et){var lt=_e.props.context.onNodeDoubleClick;lt(et,(0,re.F)(_e.props))},_e.onSelect=function(et){if(!_e.isDisabled()){var lt=_e.props.context.onNodeSelect;lt(et,(0,re.F)(_e.props))}},_e.onCheck=function(et){if(!_e.isDisabled()){var lt=_e.props,dt=lt.disableCheckbox,vt=lt.checked,Je=_e.props.context.onNodeCheck;if(!(!_e.isCheckable()||dt)){var ot=!vt;Je(et,(0,re.F)(_e.props),ot)}}},_e.onMouseEnter=function(et){var lt=_e.props.context.onNodeMouseEnter;lt(et,(0,re.F)(_e.props))},_e.onMouseLeave=function(et){var lt=_e.props.context.onNodeMouseLeave;lt(et,(0,re.F)(_e.props))},_e.onContextMenu=function(et){var lt=_e.props.context.onNodeContextMenu;lt(et,(0,re.F)(_e.props))},_e.onDragStart=function(et){var lt=_e.props.context.onNodeDragStart;et.stopPropagation(),_e.setState({dragNodeHighlight:!0}),lt(et,(0,ce.Z)(_e));try{et.dataTransfer.setData("text/plain","")}catch(dt){}},_e.onDragEnter=function(et){var lt=_e.props.context.onNodeDragEnter;et.preventDefault(),et.stopPropagation(),lt(et,(0,ce.Z)(_e))},_e.onDragOver=function(et){var lt=_e.props.context.onNodeDragOver;et.preventDefault(),et.stopPropagation(),lt(et,(0,ce.Z)(_e))},_e.onDragLeave=function(et){var lt=_e.props.context.onNodeDragLeave;et.stopPropagation(),lt(et,(0,ce.Z)(_e))},_e.onDragEnd=function(et){var lt=_e.props.context.onNodeDragEnd;et.stopPropagation(),_e.setState({dragNodeHighlight:!1}),lt(et,(0,ce.Z)(_e))},_e.onDrop=function(et){var lt=_e.props.context.onNodeDrop;et.preventDefault(),et.stopPropagation(),_e.setState({dragNodeHighlight:!1}),lt(et,(0,ce.Z)(_e))},_e.onExpand=function(et){var lt=_e.props,dt=lt.loading,vt=lt.context.onNodeExpand;dt||vt(et,(0,re.F)(_e.props))},_e.setSelectHandle=function(et){_e.selectHandle=et},_e.getNodeState=function(){var et=_e.props.expanded;return _e.isLeaf()?null:et?ue:pe},_e.hasChildren=function(){var et=_e.props.eventKey,lt=_e.props.context.keyEntities,dt=(0,ae.Z)(lt,et)||{},vt=dt.children;return!!(vt||[]).length},_e.isLeaf=function(){var et=_e.props,lt=et.isLeaf,dt=et.loaded,vt=_e.props.context.loadData,Je=_e.hasChildren();return lt===!1?!1:lt||!vt&&!Je||vt&&dt&&!Je},_e.isDisabled=function(){var et=_e.props.disabled,lt=_e.props.context.disabled;return!!(lt||et)},_e.isCheckable=function(){var et=_e.props.checkable,lt=_e.props.context.checkable;return!lt||et===!1?!1:lt},_e.syncLoadData=function(et){var lt=et.expanded,dt=et.loading,vt=et.loaded,Je=_e.props.context,ot=Je.loadData,ft=Je.onNodeLoad;dt||ot&<&&!_e.isLeaf()&&!_e.hasChildren()&&!vt&&ft((0,re.F)(_e.props))},_e.isDraggable=function(){var et=_e.props,lt=et.data,dt=et.context.draggable;return!!(dt&&(!dt.nodeDraggable||dt.nodeDraggable(lt)))},_e.renderDragHandler=function(){var et=_e.props.context,lt=et.draggable,dt=et.prefixCls;return lt!=null&<.icon?xe.createElement("span",{className:"".concat(dt,"-draggable-icon")},lt.icon):null},_e.renderSwitcherIconDom=function(et){var lt=_e.props.switcherIcon,dt=_e.props.context.switcherIcon,vt=lt||dt;return typeof vt=="function"?vt((0,Ue.Z)((0,Ue.Z)({},_e.props),{},{isLeaf:et})):vt},_e.renderSwitcher=function(){var et=_e.props.expanded,lt=_e.props.context.prefixCls;if(_e.isLeaf()){var dt=_e.renderSwitcherIconDom(!0);return dt!==!1?xe.createElement("span",{className:ke()("".concat(lt,"-switcher"),"".concat(lt,"-switcher-noop"))},dt):null}var vt=ke()("".concat(lt,"-switcher"),"".concat(lt,"-switcher_").concat(et?ue:pe)),Je=_e.renderSwitcherIconDom(!1);return Je!==!1?xe.createElement("span",{onClick:_e.onExpand,className:vt},Je):null},_e.renderCheckbox=function(){var et=_e.props,lt=et.checked,dt=et.halfChecked,vt=et.disableCheckbox,Je=_e.props.context.prefixCls,ot=_e.isDisabled(),ft=_e.isCheckable();if(!ft)return null;var xt=typeof ft!="boolean"?ft:null;return xe.createElement("span",{className:ke()("".concat(Je,"-checkbox"),lt&&"".concat(Je,"-checkbox-checked"),!lt&&dt&&"".concat(Je,"-checkbox-indeterminate"),(ot||vt)&&"".concat(Je,"-checkbox-disabled")),onClick:_e.onCheck},xt)},_e.renderIcon=function(){var et=_e.props.loading,lt=_e.props.context.prefixCls;return xe.createElement("span",{className:ke()("".concat(lt,"-iconEle"),"".concat(lt,"-icon__").concat(_e.getNodeState()||"docu"),et&&"".concat(lt,"-icon_loading"))})},_e.renderSelector=function(){var et=_e.state.dragNodeHighlight,lt=_e.props,dt=lt.title,vt=dt===void 0?Ce:dt,Je=lt.selected,ot=lt.icon,ft=lt.loading,xt=lt.data,yt=_e.props.context,pt=yt.prefixCls,gt=yt.showIcon,mt=yt.icon,Mt=yt.loadData,Ct=yt.titleRender,zt=_e.isDisabled(),St="".concat(pt,"-node-content-wrapper"),bt;if(gt){var at=ot||mt;bt=at?xe.createElement("span",{className:ke()("".concat(pt,"-iconEle"),"".concat(pt,"-icon__customize"))},typeof at=="function"?at(_e.props):at):_e.renderIcon()}else Mt&&ft&&(bt=_e.renderIcon());var nt;typeof vt=="function"?nt=vt(xt):Ct?nt=Ct(xt):nt=vt;var we=xe.createElement("span",{className:"".concat(pt,"-title")},nt);return xe.createElement("span",{ref:_e.setSelectHandle,title:typeof vt=="string"?vt:"",className:ke()("".concat(St),"".concat(St,"-").concat(_e.getNodeState()||"normal"),!zt&&(Je||et)&&"".concat(pt,"-node-selected")),onMouseEnter:_e.onMouseEnter,onMouseLeave:_e.onMouseLeave,onContextMenu:_e.onContextMenu,onClick:_e.onSelectorClick,onDoubleClick:_e.onSelectorDoubleClick},bt,we,_e.renderDropIndicator())},_e.renderDropIndicator=function(){var et=_e.props,lt=et.disabled,dt=et.eventKey,vt=_e.props.context,Je=vt.draggable,ot=vt.dropLevelOffset,ft=vt.dropPosition,xt=vt.prefixCls,yt=vt.indent,pt=vt.dropIndicatorRender,gt=vt.dragOverNodeKey,mt=vt.direction,Mt=!!Je,Ct=!lt&&Mt&>===dt,zt=yt!=null?yt:_e.cacheIndent;return _e.cacheIndent=yt,Ct?pt({dropPosition:ft,dropLevelOffset:ot,indent:zt,prefixCls:xt,direction:mt}):null},_e}return(0,me.Z)(Be,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var qe=this.props.selectable,ze=this.props.context.selectable;return typeof qe=="boolean"?qe:ze}},{key:"render",value:function(){var qe,ze=this.props,Ye=ze.eventKey,et=ze.className,lt=ze.style,dt=ze.dragOver,vt=ze.dragOverGapTop,Je=ze.dragOverGapBottom,ot=ze.isLeaf,ft=ze.isStart,xt=ze.isEnd,yt=ze.expanded,pt=ze.selected,gt=ze.checked,mt=ze.halfChecked,Mt=ze.loading,Ct=ze.domRef,zt=ze.active,St=ze.data,bt=ze.onMouseMove,at=ze.selectable,nt=(0,oe.Z)(ze,le),we=this.props.context,Te=we.prefixCls,Ve=we.filterTreeNode,Ze=we.keyEntities,Ee=we.dropContainerKey,Ge=we.dropTargetKey,He=we.draggingNodeKey,We=this.isDisabled(),Xe=(0,ve.Z)(nt,{aria:!0,data:!0}),ct=(0,ae.Z)(Ze,Ye)||{},Et=ct.level,ht=xt[xt.length-1],It=this.isDraggable(),qt=!We&&It,$t=He===Ye,Wt=at!==void 0?{"aria-selected":!!at}:void 0;return xe.createElement("div",(0,tt.Z)({ref:Ct,className:ke()(et,"".concat(Te,"-treenode"),(qe={},(0,Pt.Z)(qe,"".concat(Te,"-treenode-disabled"),We),(0,Pt.Z)(qe,"".concat(Te,"-treenode-switcher-").concat(yt?"open":"close"),!ot),(0,Pt.Z)(qe,"".concat(Te,"-treenode-checkbox-checked"),gt),(0,Pt.Z)(qe,"".concat(Te,"-treenode-checkbox-indeterminate"),mt),(0,Pt.Z)(qe,"".concat(Te,"-treenode-selected"),pt),(0,Pt.Z)(qe,"".concat(Te,"-treenode-loading"),Mt),(0,Pt.Z)(qe,"".concat(Te,"-treenode-active"),zt),(0,Pt.Z)(qe,"".concat(Te,"-treenode-leaf-last"),ht),(0,Pt.Z)(qe,"".concat(Te,"-treenode-draggable"),It),(0,Pt.Z)(qe,"dragging",$t),(0,Pt.Z)(qe,"drop-target",Ge===Ye),(0,Pt.Z)(qe,"drop-container",Ee===Ye),(0,Pt.Z)(qe,"drag-over",!We&&dt),(0,Pt.Z)(qe,"drag-over-gap-top",!We&&vt),(0,Pt.Z)(qe,"drag-over-gap-bottom",!We&&Je),(0,Pt.Z)(qe,"filter-node",Ve&&Ve((0,re.F)(this.props))),qe)),style:lt,draggable:qt,"aria-grabbed":$t,onDragStart:qt?this.onDragStart:void 0,onDragEnter:It?this.onDragEnter:void 0,onDragOver:It?this.onDragOver:void 0,onDragLeave:It?this.onDragLeave:void 0,onDrop:It?this.onDrop:void 0,onDragEnd:It?this.onDragEnd:void 0,onMouseMove:bt},Wt,Xe),xe.createElement(ee,{prefixCls:Te,level:Et,isStart:ft,isEnd:xt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Be}(xe.Component),Ie=function(je){return xe.createElement(fe.k.Consumer,null,function(Be){return xe.createElement(Pe,(0,tt.Z)({},je,{context:Be}))})};Ie.displayName="TreeNode",Ie.isTreeNode=1;var Oe=Ie},39378:function(Gn,vn,Ke){"use strict";Ke.d(vn,{k:function(){return Pt}});var tt=Ke(59301),Pt=tt.createContext(null)},99581:function(Gn,vn,Ke){"use strict";Ke.d(vn,{O:function(){return Oe.Z},Z:function(){return we}});var tt=Ke(5891),Pt=Ke(80962),oe=Ke(80665),Ue=Ke(57259),Fe=Ke(26390),me=Ke(79545),ce=Ke(68550),be=Ke(21882),Le=Ke(17928),Se=Ke(7711),ke=Ke(92310),ve=Ke.n(ke),xe=Ke(85108),fe=Ke(36994),z=Ke(51395),ee=Ke(59301),ae=Ke(39378);function re(Te){var Ve=Te.dropPosition,Ze=Te.dropLevelOffset,Ee=Te.indent,Ge={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Ve){case-1:Ge.top=0,Ge.left=-Ze*Ee;break;case 1:Ge.bottom=0,Ge.left=-Ze*Ee;break;case 0:Ge.bottom=0,Ge.left=Ee;break}return ee.createElement("div",{style:Ge})}function le(Te){if(Te==null)throw new TypeError("Cannot destructure "+Te)}var ue=Ke(29043),pe=Ke(19149),Ce=Ke(28800),Pe=Ke(50030),Ie=Ke(43469),Oe=Ke(39417);function Ae(Te,Ve){var Ze=ee.useState(!1),Ee=(0,ue.Z)(Ze,2),Ge=Ee[0],He=Ee[1];ee.useLayoutEffect(function(){if(Ge)return Te(),function(){Ve()}},[Ge]),ee.useLayoutEffect(function(){return He(!0),function(){He(!1)}},[])}var je=Ke(71430),Be=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],_e=function(Ve,Ze){var Ee=Ve.className,Ge=Ve.style,He=Ve.motion,We=Ve.motionNodes,Xe=Ve.motionType,ct=Ve.onMotionStart,Et=Ve.onMotionEnd,ht=Ve.active,It=Ve.treeNodeRequiredProps,qt=(0,pe.Z)(Ve,Be),$t=ee.useState(!0),Wt=(0,ue.Z)($t,2),Ut=Wt[0],ln=Wt[1],kt=ee.useContext(ae.k),Xt=kt.prefixCls,tn=We&&Xe!=="hide";(0,Ce.Z)(function(){We&&tn!==Ut&&ln(tn)},[We]);var dn=function(){We&&ct()},Mn=ee.useRef(!1),Rn=function(){We&&!Mn.current&&(Mn.current=!0,Et())};Ae(dn,Rn);var ir=function(Cr){tn===Cr&&Rn()};return We?ee.createElement(Ie.default,(0,tt.Z)({ref:Ze,visible:Ut},He,{motionAppear:Xe==="show",onVisibleChanged:ir}),function(qn,Cr){var er=qn.className,Fr=qn.style;return ee.createElement("div",{ref:Cr,className:ve()("".concat(Xt,"-treenode-motion"),er),style:Fr},We.map(function(jr){var fi=(0,tt.Z)({},(le(jr.data),jr.data)),Si=jr.title,tr=jr.key,gr=jr.isStart,Qn=jr.isEnd;delete fi.children;var it=(0,je.H8)(tr,It);return ee.createElement(Oe.Z,(0,tt.Z)({},fi,it,{title:Si,active:ht,data:jr.data,key:tr,isStart:gr,isEnd:Qn}))}))}):ee.createElement(Oe.Z,(0,tt.Z)({domRef:Ze,className:Ee,style:Ge},qt,{active:ht}))};_e.displayName="MotionTreeNode";var qe=ee.forwardRef(_e),ze=qe;function Ye(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ze=Te.length,Ee=Ve.length;if(Math.abs(Ze-Ee)!==1)return{add:!1,key:null};function Ge(He,We){var Xe=new Map;He.forEach(function(Et){Xe.set(Et,!0)});var ct=We.filter(function(Et){return!Xe.has(Et)});return ct.length===1?ct[0]:null}return Ze<Ee?{add:!0,key:Ge(Te,Ve)}:{add:!1,key:Ge(Ve,Te)}}function et(Te,Ve,Ze){var Ee=Te.findIndex(function(Xe){return Xe.key===Ze}),Ge=Te[Ee+1],He=Ve.findIndex(function(Xe){return Xe.key===Ze});if(Ge){var We=Ve.findIndex(function(Xe){return Xe.key===Ge.key});return Ve.slice(He+1,We)}return Ve.slice(He+1)}var lt=["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"],dt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},vt=function(){},Je="RC_TREE_MOTION_".concat(Math.random()),ot={key:Je},ft={key:Je,level:0,index:0,pos:"0",node:ot,nodes:[ot]},xt={parent:null,children:[],pos:ft.pos,data:ot,title:null,key:Je,isStart:[],isEnd:[]};function yt(Te,Ve,Ze,Ee){return Ve===!1||!Ze?Te:Te.slice(0,Math.ceil(Ze/Ee)+1)}function pt(Te){var Ve=Te.key,Ze=Te.pos;return(0,je.km)(Ve,Ze)}function gt(Te){for(var Ve=String(Te.data.key),Ze=Te;Ze.parent;)Ze=Ze.parent,Ve="".concat(Ze.data.key," > ").concat(Ve);return Ve}var mt=ee.forwardRef(function(Te,Ve){var Ze=Te.prefixCls,Ee=Te.data,Ge=Te.selectable,He=Te.checkable,We=Te.expandedKeys,Xe=Te.selectedKeys,ct=Te.checkedKeys,Et=Te.loadedKeys,ht=Te.loadingKeys,It=Te.halfCheckedKeys,qt=Te.keyEntities,$t=Te.disabled,Wt=Te.dragging,Ut=Te.dragOverNodeKey,ln=Te.dropPosition,kt=Te.motion,Xt=Te.height,tn=Te.itemHeight,dn=Te.virtual,Mn=Te.focusable,Rn=Te.activeItem,ir=Te.focused,qn=Te.tabIndex,Cr=Te.onKeyDown,er=Te.onFocus,Fr=Te.onBlur,jr=Te.onActiveChange,fi=Te.onListChangeStart,Si=Te.onListChangeEnd,tr=(0,pe.Z)(Te,lt),gr=ee.useRef(null),Qn=ee.useRef(null);ee.useImperativeHandle(Ve,function(){return{scrollTo:function(On){gr.current.scrollTo(On)},getIndentWidth:function(){return Qn.current.offsetWidth}}});var it=ee.useState(We),Ur=(0,ue.Z)(it,2),Rr=Ur[0],di=Ur[1],Vr=ee.useState(Ee),Br=(0,ue.Z)(Vr,2),Xr=Br[0],hr=Br[1],un=ee.useState(Ee),on=(0,ue.Z)(un,2),Jt=on[0],jt=on[1],Pn=ee.useState([]),Cn=(0,ue.Z)(Pn,2),Kt=Cn[0],Dt=Cn[1],pn=ee.useState(null),yn=(0,ue.Z)(pn,2),Jn=yn[0],bn=yn[1],Zt=ee.useRef(Ee);Zt.current=Ee;function jn(){var nn=Zt.current;hr(nn),jt(nn),Dt([]),bn(null),Si()}(0,Ce.Z)(function(){di(We);var nn=Ye(Rr,We);if(nn.key!==null)if(nn.add){var On=Xr.findIndex(function(gn){var Nn=gn.key;return Nn===nn.key}),an=yt(et(Xr,Ee,nn.key),dn,Xt,tn),mn=Xr.slice();mn.splice(On+1,0,xt),jt(mn),Dt(an),bn("show")}else{var Ln=Ee.findIndex(function(gn){var Nn=gn.key;return Nn===nn.key}),xn=yt(et(Ee,Xr,nn.key),dn,Xt,tn),In=Ee.slice();In.splice(Ln+1,0,xt),jt(In),Dt(xn),bn("hide")}else Xr!==Ee&&(hr(Ee),jt(Ee))},[We,Ee]),ee.useEffect(function(){Wt||jn()},[Wt]);var Fn=kt?Jt:Ee,ar={expandedKeys:We,selectedKeys:Xe,loadedKeys:Et,loadingKeys:ht,checkedKeys:ct,halfCheckedKeys:It,dragOverNodeKey:Ut,dropPosition:ln,keyEntities:qt};return ee.createElement(ee.Fragment,null,ir&&Rn&&ee.createElement("span",{style:dt,"aria-live":"assertive"},gt(Rn)),ee.createElement("div",null,ee.createElement("input",{style:dt,disabled:Mn===!1||$t,tabIndex:Mn!==!1?qn:null,onKeyDown:Cr,onFocus:er,onBlur:Fr,value:"",onChange:vt,"aria-label":"for screen reader"})),ee.createElement("div",{className:"".concat(Ze,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ee.createElement("div",{className:"".concat(Ze,"-indent")},ee.createElement("div",{ref:Qn,className:"".concat(Ze,"-indent-unit")}))),ee.createElement(Pe.Z,(0,tt.Z)({},tr,{data:Fn,itemKey:pt,height:Xt,fullHeight:!1,virtual:dn,itemHeight:tn,prefixCls:"".concat(Ze,"-list"),ref:gr,onVisibleChange:function(On,an){var mn=new Set(On),Ln=an.filter(function(xn){return!mn.has(xn)});Ln.some(function(xn){return pt(xn)===Je})&&jn()}}),function(nn){var On=nn.pos,an=(0,tt.Z)({},(le(nn.data),nn.data)),mn=nn.title,Ln=nn.key,xn=nn.isStart,In=nn.isEnd,gn=(0,je.km)(Ln,On);delete an.key,delete an.children;var Nn=(0,je.H8)(gn,ar);return ee.createElement(ze,(0,tt.Z)({},an,Nn,{title:mn,active:!!Rn&&Ln===Rn.key,pos:On,data:nn.data,isStart:xn,isEnd:In,motion:kt,motionNodes:Ln===Je?Kt:null,motionType:Jn,onMotionStart:fi,onMotionEnd:jn,treeNodeRequiredProps:ar,onMouseMove:function(){jr(null)}}))}))});mt.displayName="NodeList";var Mt=mt,Ct=Ke(35654),zt=Ke(90782),St=Ke(67841),bt=10,at=function(Te){(0,Le.Z)(Ze,Te);var Ve=(0,Se.Z)(Ze);function Ze(){var Ee;(0,me.Z)(this,Ze);for(var Ge=arguments.length,He=new Array(Ge),We=0;We<Ge;We++)He[We]=arguments[We];return Ee=Ve.call.apply(Ve,[this].concat(He)),Ee.destroyed=!1,Ee.delayedDragEnterLogic=void 0,Ee.loadingRetryTimes={},Ee.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,je.w$)()},Ee.dragStartMousePosition=null,Ee.dragNode=void 0,Ee.currentMouseOverDroppableNodeKey=null,Ee.listRef=ee.createRef(),Ee.onNodeDragStart=function(Xe,ct){var Et=Ee.state,ht=Et.expandedKeys,It=Et.keyEntities,qt=Ee.props.onDragStart,$t=ct.props.eventKey;Ee.dragNode=ct,Ee.dragStartMousePosition={x:Xe.clientX,y:Xe.clientY};var Wt=(0,Ct._5)(ht,$t);Ee.setState({draggingNodeKey:$t,dragChildrenKeys:(0,Ct.wA)($t,It),indent:Ee.listRef.current.getIndentWidth()}),Ee.setExpandedKeys(Wt),window.addEventListener("dragend",Ee.onWindowDragEnd),qt==null||qt({event:Xe,node:(0,je.F)(ct.props)})},Ee.onNodeDragEnter=function(Xe,ct){var Et=Ee.state,ht=Et.expandedKeys,It=Et.keyEntities,qt=Et.dragChildrenKeys,$t=Et.flattenNodes,Wt=Et.indent,Ut=Ee.props,ln=Ut.onDragEnter,kt=Ut.onExpand,Xt=Ut.allowDrop,tn=Ut.direction,dn=ct.props,Mn=dn.pos,Rn=dn.eventKey,ir=(0,be.Z)(Ee),qn=ir.dragNode;if(Ee.currentMouseOverDroppableNodeKey!==Rn&&(Ee.currentMouseOverDroppableNodeKey=Rn),!qn){Ee.resetDragState();return}var Cr=(0,Ct.OM)(Xe,qn,ct,Wt,Ee.dragStartMousePosition,Xt,$t,It,ht,tn),er=Cr.dropPosition,Fr=Cr.dropLevelOffset,jr=Cr.dropTargetKey,fi=Cr.dropContainerKey,Si=Cr.dropTargetPos,tr=Cr.dropAllowed,gr=Cr.dragOverNodeKey;if(qt.indexOf(jr)!==-1||!tr){Ee.resetDragState();return}if(Ee.delayedDragEnterLogic||(Ee.delayedDragEnterLogic={}),Object.keys(Ee.delayedDragEnterLogic).forEach(function(Qn){clearTimeout(Ee.delayedDragEnterLogic[Qn])}),qn.props.eventKey!==ct.props.eventKey&&(Xe.persist(),Ee.delayedDragEnterLogic[Mn]=window.setTimeout(function(){if(Ee.state.draggingNodeKey!==null){var Qn=(0,Fe.Z)(ht),it=(0,St.Z)(It,ct.props.eventKey);it&&(it.children||[]).length&&(Qn=(0,Ct.L0)(ht,ct.props.eventKey)),"expandedKeys"in Ee.props||Ee.setExpandedKeys(Qn),kt==null||kt(Qn,{node:(0,je.F)(ct.props),expanded:!0,nativeEvent:Xe.nativeEvent})}},800)),qn.props.eventKey===jr&&Fr===0){Ee.resetDragState();return}Ee.setState({dragOverNodeKey:gr,dropPosition:er,dropLevelOffset:Fr,dropTargetKey:jr,dropContainerKey:fi,dropTargetPos:Si,dropAllowed:tr}),ln==null||ln({event:Xe,node:(0,je.F)(ct.props),expandedKeys:ht})},Ee.onNodeDragOver=function(Xe,ct){var Et=Ee.state,ht=Et.dragChildrenKeys,It=Et.flattenNodes,qt=Et.keyEntities,$t=Et.expandedKeys,Wt=Et.indent,Ut=Ee.props,ln=Ut.onDragOver,kt=Ut.allowDrop,Xt=Ut.direction,tn=(0,be.Z)(Ee),dn=tn.dragNode;if(dn){var Mn=(0,Ct.OM)(Xe,dn,ct,Wt,Ee.dragStartMousePosition,kt,It,qt,$t,Xt),Rn=Mn.dropPosition,ir=Mn.dropLevelOffset,qn=Mn.dropTargetKey,Cr=Mn.dropContainerKey,er=Mn.dropAllowed,Fr=Mn.dropTargetPos,jr=Mn.dragOverNodeKey;ht.indexOf(qn)!==-1||!er||(dn.props.eventKey===qn&&ir===0?Ee.state.dropPosition===null&&Ee.state.dropLevelOffset===null&&Ee.state.dropTargetKey===null&&Ee.state.dropContainerKey===null&&Ee.state.dropTargetPos===null&&Ee.state.dropAllowed===!1&&Ee.state.dragOverNodeKey===null||Ee.resetDragState():Rn===Ee.state.dropPosition&&ir===Ee.state.dropLevelOffset&&qn===Ee.state.dropTargetKey&&Cr===Ee.state.dropContainerKey&&Fr===Ee.state.dropTargetPos&&er===Ee.state.dropAllowed&&jr===Ee.state.dragOverNodeKey||Ee.setState({dropPosition:Rn,dropLevelOffset:ir,dropTargetKey:qn,dropContainerKey:Cr,dropTargetPos:Fr,dropAllowed:er,dragOverNodeKey:jr}),ln==null||ln({event:Xe,node:(0,je.F)(ct.props)}))}},Ee.onNodeDragLeave=function(Xe,ct){Ee.currentMouseOverDroppableNodeKey===ct.props.eventKey&&!Xe.currentTarget.contains(Xe.relatedTarget)&&(Ee.resetDragState(),Ee.currentMouseOverDroppableNodeKey=null);var Et=Ee.props.onDragLeave;Et==null||Et({event:Xe,node:(0,je.F)(ct.props)})},Ee.onWindowDragEnd=function(Xe){Ee.onNodeDragEnd(Xe,null,!0),window.removeEventListener("dragend",Ee.onWindowDragEnd)},Ee.onNodeDragEnd=function(Xe,ct){var Et=Ee.props.onDragEnd;Ee.setState({dragOverNodeKey:null}),Ee.cleanDragState(),Et==null||Et({event:Xe,node:(0,je.F)(ct.props)}),Ee.dragNode=null,window.removeEventListener("dragend",Ee.onWindowDragEnd)},Ee.onNodeDrop=function(Xe,ct){var Et,ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,It=Ee.state,qt=It.dragChildrenKeys,$t=It.dropPosition,Wt=It.dropTargetKey,Ut=It.dropTargetPos,ln=It.dropAllowed;if(ln){var kt=Ee.props.onDrop;if(Ee.setState({dragOverNodeKey:null}),Ee.cleanDragState(),Wt!==null){var Xt=(0,Ue.Z)((0,Ue.Z)({},(0,je.H8)(Wt,Ee.getTreeNodeRequiredProps())),{},{active:((Et=Ee.getActiveItem())===null||Et===void 0?void 0:Et.key)===Wt,data:(0,St.Z)(Ee.state.keyEntities,Wt).node}),tn=qt.indexOf(Wt)!==-1;(0,z.ZP)(!tn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var dn=(0,Ct.yx)(Ut),Mn={event:Xe,node:(0,je.F)(Xt),dragNode:Ee.dragNode?(0,je.F)(Ee.dragNode.props):null,dragNodesKeys:[Ee.dragNode.props.eventKey].concat(qt),dropToGap:$t!==0,dropPosition:$t+Number(dn[dn.length-1])};ht||kt==null||kt(Mn),Ee.dragNode=null}}},Ee.cleanDragState=function(){var Xe=Ee.state.draggingNodeKey;Xe!==null&&Ee.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Ee.dragStartMousePosition=null,Ee.currentMouseOverDroppableNodeKey=null},Ee.triggerExpandActionExpand=function(Xe,ct){var Et=Ee.state,ht=Et.expandedKeys,It=Et.flattenNodes,qt=ct.expanded,$t=ct.key,Wt=ct.isLeaf;if(!(Wt||Xe.shiftKey||Xe.metaKey||Xe.ctrlKey)){var Ut=It.filter(function(kt){return kt.key===$t})[0],ln=(0,je.F)((0,Ue.Z)((0,Ue.Z)({},(0,je.H8)($t,Ee.getTreeNodeRequiredProps())),{},{data:Ut.data}));Ee.setExpandedKeys(qt?(0,Ct._5)(ht,$t):(0,Ct.L0)(ht,$t)),Ee.onNodeExpand(Xe,ln)}},Ee.onNodeClick=function(Xe,ct){var Et=Ee.props,ht=Et.onClick,It=Et.expandAction;It==="click"&&Ee.triggerExpandActionExpand(Xe,ct),ht==null||ht(Xe,ct)},Ee.onNodeDoubleClick=function(Xe,ct){var Et=Ee.props,ht=Et.onDoubleClick,It=Et.expandAction;It==="doubleClick"&&Ee.triggerExpandActionExpand(Xe,ct),ht==null||ht(Xe,ct)},Ee.onNodeSelect=function(Xe,ct){var Et=Ee.state.selectedKeys,ht=Ee.state,It=ht.keyEntities,qt=ht.fieldNames,$t=Ee.props,Wt=$t.onSelect,Ut=$t.multiple,ln=ct.selected,kt=ct[qt.key],Xt=!ln;Xt?Ut?Et=(0,Ct.L0)(Et,kt):Et=[kt]:Et=(0,Ct._5)(Et,kt);var tn=Et.map(function(dn){var Mn=(0,St.Z)(It,dn);return Mn?Mn.node:null}).filter(function(dn){return dn});Ee.setUncontrolledState({selectedKeys:Et}),Wt==null||Wt(Et,{event:"select",selected:Xt,node:ct,selectedNodes:tn,nativeEvent:Xe.nativeEvent})},Ee.onNodeCheck=function(Xe,ct,Et){var ht=Ee.state,It=ht.keyEntities,qt=ht.checkedKeys,$t=ht.halfCheckedKeys,Wt=Ee.props,Ut=Wt.checkStrictly,ln=Wt.onCheck,kt=ct.key,Xt,tn={event:"check",node:ct,checked:Et,nativeEvent:Xe.nativeEvent};if(Ut){var dn=Et?(0,Ct.L0)(qt,kt):(0,Ct._5)(qt,kt),Mn=(0,Ct._5)($t,kt);Xt={checked:dn,halfChecked:Mn},tn.checkedNodes=dn.map(function(Fr){return(0,St.Z)(It,Fr)}).filter(function(Fr){return Fr}).map(function(Fr){return Fr.node}),Ee.setUncontrolledState({checkedKeys:dn})}else{var Rn=(0,zt.S)([].concat((0,Fe.Z)(qt),[kt]),!0,It),ir=Rn.checkedKeys,qn=Rn.halfCheckedKeys;if(!Et){var Cr=new Set(ir);Cr.delete(kt);var er=(0,zt.S)(Array.from(Cr),{checked:!1,halfCheckedKeys:qn},It);ir=er.checkedKeys,qn=er.halfCheckedKeys}Xt=ir,tn.checkedNodes=[],tn.checkedNodesPositions=[],tn.halfCheckedKeys=qn,ir.forEach(function(Fr){var jr=(0,St.Z)(It,Fr);if(jr){var fi=jr.node,Si=jr.pos;tn.checkedNodes.push(fi),tn.checkedNodesPositions.push({node:fi,pos:Si})}}),Ee.setUncontrolledState({checkedKeys:ir},!1,{halfCheckedKeys:qn})}ln==null||ln(Xt,tn)},Ee.onNodeLoad=function(Xe){var ct=Xe.key,Et=new Promise(function(ht,It){Ee.setState(function(qt){var $t=qt.loadedKeys,Wt=$t===void 0?[]:$t,Ut=qt.loadingKeys,ln=Ut===void 0?[]:Ut,kt=Ee.props,Xt=kt.loadData,tn=kt.onLoad;if(!Xt||Wt.indexOf(ct)!==-1||ln.indexOf(ct)!==-1)return null;var dn=Xt(Xe);return dn.then(function(){var Mn=Ee.state.loadedKeys,Rn=(0,Ct.L0)(Mn,ct);tn==null||tn(Rn,{event:"load",node:Xe}),Ee.setUncontrolledState({loadedKeys:Rn}),Ee.setState(function(ir){return{loadingKeys:(0,Ct._5)(ir.loadingKeys,ct)}}),ht()}).catch(function(Mn){if(Ee.setState(function(ir){return{loadingKeys:(0,Ct._5)(ir.loadingKeys,ct)}}),Ee.loadingRetryTimes[ct]=(Ee.loadingRetryTimes[ct]||0)+1,Ee.loadingRetryTimes[ct]>=bt){var Rn=Ee.state.loadedKeys;(0,z.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Ee.setUncontrolledState({loadedKeys:(0,Ct.L0)(Rn,ct)}),ht()}It(Mn)}),{loadingKeys:(0,Ct.L0)(ln,ct)}})});return Et.catch(function(){}),Et},Ee.onNodeMouseEnter=function(Xe,ct){var Et=Ee.props.onMouseEnter;Et==null||Et({event:Xe,node:ct})},Ee.onNodeMouseLeave=function(Xe,ct){var Et=Ee.props.onMouseLeave;Et==null||Et({event:Xe,node:ct})},Ee.onNodeContextMenu=function(Xe,ct){var Et=Ee.props.onRightClick;Et&&(Xe.preventDefault(),Et({event:Xe,node:ct}))},Ee.onFocus=function(){var Xe=Ee.props.onFocus;Ee.setState({focused:!0});for(var ct=arguments.length,Et=new Array(ct),ht=0;ht<ct;ht++)Et[ht]=arguments[ht];Xe==null||Xe.apply(void 0,Et)},Ee.onBlur=function(){var Xe=Ee.props.onBlur;Ee.setState({focused:!1}),Ee.onActiveChange(null);for(var ct=arguments.length,Et=new Array(ct),ht=0;ht<ct;ht++)Et[ht]=arguments[ht];Xe==null||Xe.apply(void 0,Et)},Ee.getTreeNodeRequiredProps=function(){var Xe=Ee.state,ct=Xe.expandedKeys,Et=Xe.selectedKeys,ht=Xe.loadedKeys,It=Xe.loadingKeys,qt=Xe.checkedKeys,$t=Xe.halfCheckedKeys,Wt=Xe.dragOverNodeKey,Ut=Xe.dropPosition,ln=Xe.keyEntities;return{expandedKeys:ct||[],selectedKeys:Et||[],loadedKeys:ht||[],loadingKeys:It||[],checkedKeys:qt||[],halfCheckedKeys:$t||[],dragOverNodeKey:Wt,dropPosition:Ut,keyEntities:ln}},Ee.setExpandedKeys=function(Xe){var ct=Ee.state,Et=ct.treeData,ht=ct.fieldNames,It=(0,je.oH)(Et,Xe,ht);Ee.setUncontrolledState({expandedKeys:Xe,flattenNodes:It},!0)},Ee.onNodeExpand=function(Xe,ct){var Et=Ee.state.expandedKeys,ht=Ee.state,It=ht.listChanging,qt=ht.fieldNames,$t=Ee.props,Wt=$t.onExpand,Ut=$t.loadData,ln=ct.expanded,kt=ct[qt.key];if(!It){var Xt=Et.indexOf(kt),tn=!ln;if((0,z.ZP)(ln&&Xt!==-1||!ln&&Xt===-1,"Expand state not sync with index check"),tn?Et=(0,Ct.L0)(Et,kt):Et=(0,Ct._5)(Et,kt),Ee.setExpandedKeys(Et),Wt==null||Wt(Et,{node:ct,expanded:tn,nativeEvent:Xe.nativeEvent}),tn&&Ut){var dn=Ee.onNodeLoad(ct);dn&&dn.then(function(){var Mn=(0,je.oH)(Ee.state.treeData,Et,qt);Ee.setUncontrolledState({flattenNodes:Mn})}).catch(function(){var Mn=Ee.state.expandedKeys,Rn=(0,Ct._5)(Mn,kt);Ee.setExpandedKeys(Rn)})}}},Ee.onListChangeStart=function(){Ee.setUncontrolledState({listChanging:!0})},Ee.onListChangeEnd=function(){setTimeout(function(){Ee.setUncontrolledState({listChanging:!1})})},Ee.onActiveChange=function(Xe){var ct=Ee.state.activeKey,Et=Ee.props.onActiveChange;ct!==Xe&&(Ee.setState({activeKey:Xe}),Xe!==null&&Ee.scrollTo({key:Xe}),Et==null||Et(Xe))},Ee.getActiveItem=function(){var Xe=Ee.state,ct=Xe.activeKey,Et=Xe.flattenNodes;return ct===null?null:Et.find(function(ht){var It=ht.key;return It===ct})||null},Ee.offsetActiveKey=function(Xe){var ct=Ee.state,Et=ct.flattenNodes,ht=ct.activeKey,It=Et.findIndex(function(Wt){var Ut=Wt.key;return Ut===ht});It===-1&&Xe<0&&(It=Et.length),It=(It+Xe+Et.length)%Et.length;var qt=Et[It];if(qt){var $t=qt.key;Ee.onActiveChange($t)}else Ee.onActiveChange(null)},Ee.onKeyDown=function(Xe){var ct=Ee.state,Et=ct.activeKey,ht=ct.expandedKeys,It=ct.checkedKeys,qt=ct.fieldNames,$t=Ee.props,Wt=$t.onKeyDown,Ut=$t.checkable,ln=$t.selectable;switch(Xe.which){case xe.Z.UP:{Ee.offsetActiveKey(-1),Xe.preventDefault();break}case xe.Z.DOWN:{Ee.offsetActiveKey(1),Xe.preventDefault();break}}var kt=Ee.getActiveItem();if(kt&&kt.data){var Xt=Ee.getTreeNodeRequiredProps(),tn=kt.data.isLeaf===!1||!!(kt.data[qt.children]||[]).length,dn=(0,je.F)((0,Ue.Z)((0,Ue.Z)({},(0,je.H8)(Et,Xt)),{},{data:kt.data,active:!0}));switch(Xe.which){case xe.Z.LEFT:{tn&&ht.includes(Et)?Ee.onNodeExpand({},dn):kt.parent&&Ee.onActiveChange(kt.parent.key),Xe.preventDefault();break}case xe.Z.RIGHT:{tn&&!ht.includes(Et)?Ee.onNodeExpand({},dn):kt.children&&kt.children.length&&Ee.onActiveChange(kt.children[0].key),Xe.preventDefault();break}case xe.Z.ENTER:case xe.Z.SPACE:{Ut&&!dn.disabled&&dn.checkable!==!1&&!dn.disableCheckbox?Ee.onNodeCheck({},dn,!It.includes(Et)):!Ut&&ln&&!dn.disabled&&dn.selectable!==!1&&Ee.onNodeSelect({},dn);break}}}Wt==null||Wt(Xe)},Ee.setUncontrolledState=function(Xe){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Ee.destroyed){var ht=!1,It=!0,qt={};Object.keys(Xe).forEach(function($t){if($t in Ee.props){It=!1;return}ht=!0,qt[$t]=Xe[$t]}),ht&&(!ct||It)&&Ee.setState((0,Ue.Z)((0,Ue.Z)({},qt),Et))}},Ee.scrollTo=function(Xe){Ee.listRef.current.scrollTo(Xe)},Ee}return(0,ce.Z)(Ze,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ge=this.props.activeKey;Ge!==void 0&&Ge!==this.state.activeKey&&(this.setState({activeKey:Ge}),Ge!==null&&this.scrollTo({key:Ge}))}},{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 Ge,He=this.state,We=He.focused,Xe=He.flattenNodes,ct=He.keyEntities,Et=He.draggingNodeKey,ht=He.activeKey,It=He.dropLevelOffset,qt=He.dropContainerKey,$t=He.dropTargetKey,Wt=He.dropPosition,Ut=He.dragOverNodeKey,ln=He.indent,kt=this.props,Xt=kt.prefixCls,tn=kt.className,dn=kt.style,Mn=kt.showLine,Rn=kt.focusable,ir=kt.tabIndex,qn=ir===void 0?0:ir,Cr=kt.selectable,er=kt.showIcon,Fr=kt.icon,jr=kt.switcherIcon,fi=kt.draggable,Si=kt.checkable,tr=kt.checkStrictly,gr=kt.disabled,Qn=kt.motion,it=kt.loadData,Ur=kt.filterTreeNode,Rr=kt.height,di=kt.itemHeight,Vr=kt.virtual,Br=kt.titleRender,Xr=kt.dropIndicatorRender,hr=kt.onContextMenu,un=kt.onScroll,on=kt.direction,Jt=kt.rootClassName,jt=kt.rootStyle,Pn=(0,fe.Z)(this.props,{aria:!0,data:!0}),Cn;return fi&&((0,oe.Z)(fi)==="object"?Cn=fi:typeof fi=="function"?Cn={nodeDraggable:fi}:Cn={}),ee.createElement(ae.k.Provider,{value:{prefixCls:Xt,selectable:Cr,showIcon:er,icon:Fr,switcherIcon:jr,draggable:Cn,draggingNodeKey:Et,checkable:Si,checkStrictly:tr,disabled:gr,keyEntities:ct,dropLevelOffset:It,dropContainerKey:qt,dropTargetKey:$t,dropPosition:Wt,dragOverNodeKey:Ut,indent:ln,direction:on,dropIndicatorRender:Xr,loadData:it,filterTreeNode:Ur,titleRender:Br,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}},ee.createElement("div",{role:"tree",className:ve()(Xt,tn,Jt,(Ge={},(0,Pt.Z)(Ge,"".concat(Xt,"-show-line"),Mn),(0,Pt.Z)(Ge,"".concat(Xt,"-focused"),We),(0,Pt.Z)(Ge,"".concat(Xt,"-active-focused"),ht!==null),Ge)),style:jt},ee.createElement(Mt,(0,tt.Z)({ref:this.listRef,prefixCls:Xt,style:dn,data:Xe,disabled:gr,selectable:Cr,checkable:!!Si,motion:Qn,dragging:Et!==null,height:Rr,itemHeight:di,virtual:Vr,focusable:Rn,focused:We,tabIndex:qn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:hr,onScroll:un},this.getTreeNodeRequiredProps(),Pn))))}}],[{key:"getDerivedStateFromProps",value:function(Ge,He){var We=He.prevProps,Xe={prevProps:Ge};function ct(Rn){return!We&&Rn in Ge||We&&We[Rn]!==Ge[Rn]}var Et,ht=He.fieldNames;if(ct("fieldNames")&&(ht=(0,je.w$)(Ge.fieldNames),Xe.fieldNames=ht),ct("treeData")?Et=Ge.treeData:ct("children")&&((0,z.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Et=(0,je.zn)(Ge.children)),Et){Xe.treeData=Et;var It=(0,je.I8)(Et,{fieldNames:ht});Xe.keyEntities=(0,Ue.Z)((0,Pt.Z)({},Je,ft),It.keyEntities)}var qt=Xe.keyEntities||He.keyEntities;if(ct("expandedKeys")||We&&ct("autoExpandParent"))Xe.expandedKeys=Ge.autoExpandParent||!We&&Ge.defaultExpandParent?(0,Ct.r7)(Ge.expandedKeys,qt):Ge.expandedKeys;else if(!We&&Ge.defaultExpandAll){var $t=(0,Ue.Z)({},qt);delete $t[Je],Xe.expandedKeys=Object.keys($t).map(function(Rn){return $t[Rn].key})}else!We&&Ge.defaultExpandedKeys&&(Xe.expandedKeys=Ge.autoExpandParent||Ge.defaultExpandParent?(0,Ct.r7)(Ge.defaultExpandedKeys,qt):Ge.defaultExpandedKeys);if(Xe.expandedKeys||delete Xe.expandedKeys,Et||Xe.expandedKeys){var Wt=(0,je.oH)(Et||He.treeData,Xe.expandedKeys||He.expandedKeys,ht);Xe.flattenNodes=Wt}if(Ge.selectable&&(ct("selectedKeys")?Xe.selectedKeys=(0,Ct.BT)(Ge.selectedKeys,Ge):!We&&Ge.defaultSelectedKeys&&(Xe.selectedKeys=(0,Ct.BT)(Ge.defaultSelectedKeys,Ge))),Ge.checkable){var Ut;if(ct("checkedKeys")?Ut=(0,Ct.E6)(Ge.checkedKeys)||{}:!We&&Ge.defaultCheckedKeys?Ut=(0,Ct.E6)(Ge.defaultCheckedKeys)||{}:Et&&(Ut=(0,Ct.E6)(Ge.checkedKeys)||{checkedKeys:He.checkedKeys,halfCheckedKeys:He.halfCheckedKeys}),Ut){var ln=Ut,kt=ln.checkedKeys,Xt=kt===void 0?[]:kt,tn=ln.halfCheckedKeys,dn=tn===void 0?[]:tn;if(!Ge.checkStrictly){var Mn=(0,zt.S)(Xt,!0,qt);Xt=Mn.checkedKeys,dn=Mn.halfCheckedKeys}Xe.checkedKeys=Xt,Xe.halfCheckedKeys=dn}}return ct("loadedKeys")&&(Xe.loadedKeys=Ge.loadedKeys),Xe}}]),Ze}(ee.Component);at.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:re,allowDrop:function(){return!0},expandAction:!1},at.TreeNode=Oe.Z;var nt=at,we=nt},35654:function(Gn,vn,Ke){"use strict";Ke.d(vn,{BT:function(){return ee},E6:function(){return le},L0:function(){return Se},OM:function(){return z},_5:function(){return Le},r7:function(){return ue},wA:function(){return ve},yx:function(){return ke}});var tt=Ke(26390),Pt=Ke(80665),oe=Ke(51395),Ue=Ke(59301),Fe=Ke(39417),me=Ke(67841),ce=Ke(71430),be=null;function Le(pe,Ce){if(!pe)return[];var Pe=pe.slice(),Ie=Pe.indexOf(Ce);return Ie>=0&&Pe.splice(Ie,1),Pe}function Se(pe,Ce){var Pe=(pe||[]).slice();return Pe.indexOf(Ce)===-1&&Pe.push(Ce),Pe}function ke(pe){return pe.split("-")}function ve(pe,Ce){var Pe=[],Ie=(0,me.Z)(Ce,pe);function Oe(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ae.forEach(function(je){var Be=je.key,_e=je.children;Pe.push(Be),Oe(_e)})}return Oe(Ie.children),Pe}function xe(pe){if(pe.parent){var Ce=ke(pe.pos);return Number(Ce[Ce.length-1])===pe.parent.children.length-1}return!1}function fe(pe){var Ce=ke(pe.pos);return Number(Ce[Ce.length-1])===0}function z(pe,Ce,Pe,Ie,Oe,Ae,je,Be,_e,qe){var ze,Ye=pe.clientX,et=pe.clientY,lt=pe.target.getBoundingClientRect(),dt=lt.top,vt=lt.height,Je=(qe==="rtl"?-1:1)*(((Oe==null?void 0:Oe.x)||0)-Ye),ot=(Je-12)/Ie,ft=(0,me.Z)(Be,Pe.props.eventKey);if(et<dt+vt/2){var xt=je.findIndex(function(we){return we.key===ft.key}),yt=xt<=0?0:xt-1,pt=je[yt].key;ft=(0,me.Z)(Be,pt)}var gt=ft.key,mt=ft,Mt=ft.key,Ct=0,zt=0;if(!_e.includes(gt))for(var St=0;St<ot&&xe(ft);St+=1)ft=ft.parent,zt+=1;var bt=Ce.props.data,at=ft.node,nt=!0;return fe(ft)&&ft.level===0&&et<dt+vt/2&&Ae({dragNode:bt,dropNode:at,dropPosition:-1})&&ft.key===Pe.props.eventKey?Ct=-1:(mt.children||[]).length&&_e.includes(Mt)?Ae({dragNode:bt,dropNode:at,dropPosition:0})?Ct=0:nt=!1:zt===0?ot>-1.5?Ae({dragNode:bt,dropNode:at,dropPosition:1})?Ct=1:nt=!1:Ae({dragNode:bt,dropNode:at,dropPosition:0})?Ct=0:Ae({dragNode:bt,dropNode:at,dropPosition:1})?Ct=1:nt=!1:Ae({dragNode:bt,dropNode:at,dropPosition:1})?Ct=1:nt=!1,{dropPosition:Ct,dropLevelOffset:zt,dropTargetKey:ft.key,dropTargetPos:ft.pos,dragOverNodeKey:Mt,dropContainerKey:Ct===0?null:((ze=ft.parent)===null||ze===void 0?void 0:ze.key)||null,dropAllowed:nt}}function ee(pe,Ce){if(pe){var Pe=Ce.multiple;return Pe?pe.slice():pe.length?[pe[0]]:pe}}var ae=function(Ce){return Ce};function re(pe,Ce){if(!pe)return[];var Pe=Ce||{},Ie=Pe.processProps,Oe=Ie===void 0?ae:Ie,Ae=Array.isArray(pe)?pe:[pe];return Ae.map(function(je){var Be=je.children,_e=_objectWithoutProperties(je,be),qe=re(Be,Ce);return React.createElement(TreeNode,_extends({key:_e.key},Oe(_e)),qe)})}function le(pe){if(!pe)return null;var Ce;if(Array.isArray(pe))Ce={checkedKeys:pe,halfCheckedKeys:void 0};else if((0,Pt.Z)(pe)==="object")Ce={checkedKeys:pe.checked||void 0,halfCheckedKeys:pe.halfChecked||void 0};else return(0,oe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ce}function ue(pe,Ce){var Pe=new Set;function Ie(Oe){if(!Pe.has(Oe)){var Ae=(0,me.Z)(Ce,Oe);if(Ae){Pe.add(Oe);var je=Ae.parent,Be=Ae.node;Be.disabled||je&&Ie(je.key)}}}return(pe||[]).forEach(function(Oe){Ie(Oe)}),(0,tt.Z)(Pe)}},90782:function(Gn,vn,Ke){"use strict";Ke.d(vn,{S:function(){return ce}});var tt=Ke(51395),Pt=Ke(67841);function oe(be,Le){var Se=new Set;return be.forEach(function(ke){Le.has(ke)||Se.add(ke)}),Se}function Ue(be){var Le=be||{},Se=Le.disabled,ke=Le.disableCheckbox,ve=Le.checkable;return!!(Se||ke)||ve===!1}function Fe(be,Le,Se,ke){for(var ve=new Set(be),xe=new Set,fe=0;fe<=Se;fe+=1){var z=Le.get(fe)||new Set;z.forEach(function(le){var ue=le.key,pe=le.node,Ce=le.children,Pe=Ce===void 0?[]:Ce;ve.has(ue)&&!ke(pe)&&Pe.filter(function(Ie){return!ke(Ie.node)}).forEach(function(Ie){ve.add(Ie.key)})})}for(var ee=new Set,ae=Se;ae>=0;ae-=1){var re=Le.get(ae)||new Set;re.forEach(function(le){var ue=le.parent,pe=le.node;if(!(ke(pe)||!le.parent||ee.has(le.parent.key))){if(ke(le.parent.node)){ee.add(ue.key);return}var Ce=!0,Pe=!1;(ue.children||[]).filter(function(Ie){return!ke(Ie.node)}).forEach(function(Ie){var Oe=Ie.key,Ae=ve.has(Oe);Ce&&!Ae&&(Ce=!1),!Pe&&(Ae||xe.has(Oe))&&(Pe=!0)}),Ce&&ve.add(ue.key),Pe&&xe.add(ue.key),ee.add(ue.key)}})}return{checkedKeys:Array.from(ve),halfCheckedKeys:Array.from(oe(xe,ve))}}function me(be,Le,Se,ke,ve){for(var xe=new Set(be),fe=new Set(Le),z=0;z<=ke;z+=1){var ee=Se.get(z)||new Set;ee.forEach(function(ue){var pe=ue.key,Ce=ue.node,Pe=ue.children,Ie=Pe===void 0?[]:Pe;!xe.has(pe)&&!fe.has(pe)&&!ve(Ce)&&Ie.filter(function(Oe){return!ve(Oe.node)}).forEach(function(Oe){xe.delete(Oe.key)})})}fe=new Set;for(var ae=new Set,re=ke;re>=0;re-=1){var le=Se.get(re)||new Set;le.forEach(function(ue){var pe=ue.parent,Ce=ue.node;if(!(ve(Ce)||!ue.parent||ae.has(ue.parent.key))){if(ve(ue.parent.node)){ae.add(pe.key);return}var Pe=!0,Ie=!1;(pe.children||[]).filter(function(Oe){return!ve(Oe.node)}).forEach(function(Oe){var Ae=Oe.key,je=xe.has(Ae);Pe&&!je&&(Pe=!1),!Ie&&(je||fe.has(Ae))&&(Ie=!0)}),Pe||xe.delete(pe.key),Ie&&fe.add(pe.key),ae.add(pe.key)}})}return{checkedKeys:Array.from(xe),halfCheckedKeys:Array.from(oe(fe,xe))}}function ce(be,Le,Se,ke){var ve=[],xe;ke?xe=ke:xe=Ue;var fe=new Set(be.filter(function(re){var le=!!(0,Pt.Z)(Se,re);return le||ve.push(re),le})),z=new Map,ee=0;Object.keys(Se).forEach(function(re){var le=Se[re],ue=le.level,pe=z.get(ue);pe||(pe=new Set,z.set(ue,pe)),pe.add(le),ee=Math.max(ee,ue)}),(0,tt.ZP)(!ve.length,"Tree missing follow keys: ".concat(ve.slice(0,100).map(function(re){return"'".concat(re,"'")}).join(", ")));var ae;return Le===!0?ae=Fe(fe,z,ee,xe):ae=me(fe,Le.halfCheckedKeys,z,ee,xe),ae}},67841:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return tt}});function tt(Pt,oe){return Pt[oe]}},71430:function(Gn,vn,Ke){"use strict";Ke.d(vn,{F:function(){return ue},H8:function(){return le},I8:function(){return re},km:function(){return ve},oH:function(){return ee},w$:function(){return xe},zn:function(){return z}});var tt=Ke(80665),Pt=Ke(26390),oe=Ke(57259),Ue=Ke(19149),Fe=Ke(38298),me=Ke(64002),ce=Ke(51395),be=Ke(67841),Le=["children"];function Se(pe,Ce){return"".concat(pe,"-").concat(Ce)}function ke(pe){return pe&&pe.type&&pe.type.isTreeNode}function ve(pe,Ce){return pe!=null?pe:Ce}function xe(pe){var Ce=pe||{},Pe=Ce.title,Ie=Ce._title,Oe=Ce.key,Ae=Ce.children,je=Pe||"title";return{title:je,_title:Ie||[je],key:Oe||"key",children:Ae||"children"}}function fe(pe,Ce){var Pe=new Map;function Ie(Oe){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Oe||[]).forEach(function(je){var Be=je[Ce.key],_e=je[Ce.children];warning(Be!=null,"Tree node must have a certain key: [".concat(Ae).concat(Be,"]"));var qe=String(Be);warning(!Pe.has(qe)||Be===null||Be===void 0,"Same 'key' exist in the Tree: ".concat(qe)),Pe.set(qe,!0),Ie(_e,"".concat(Ae).concat(qe," > "))})}Ie(pe)}function z(pe){function Ce(Pe){var Ie=(0,Fe.Z)(Pe);return Ie.map(function(Oe){if(!ke(Oe))return(0,ce.ZP)(!Oe,"Tree/TreeNode can only accept TreeNode as children."),null;var Ae=Oe.key,je=Oe.props,Be=je.children,_e=(0,Ue.Z)(je,Le),qe=(0,oe.Z)({key:Ae},_e),ze=Ce(Be);return ze.length&&(qe.children=ze),qe}).filter(function(Oe){return Oe})}return Ce(pe)}function ee(pe,Ce,Pe){var Ie=xe(Pe),Oe=Ie._title,Ae=Ie.key,je=Ie.children,Be=new Set(Ce===!0?[]:Ce),_e=[];function qe(ze){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ze.map(function(et,lt){for(var dt=Se(Ye?Ye.pos:"0",lt),vt=ve(et[Ae],dt),Je,ot=0;ot<Oe.length;ot+=1){var ft=Oe[ot];if(et[ft]!==void 0){Je=et[ft];break}}var xt=(0,oe.Z)((0,oe.Z)({},(0,me.Z)(et,[].concat((0,Pt.Z)(Oe),[Ae,je]))),{},{title:Je,key:vt,parent:Ye,pos:dt,children:null,data:et,isStart:[].concat((0,Pt.Z)(Ye?Ye.isStart:[]),[lt===0]),isEnd:[].concat((0,Pt.Z)(Ye?Ye.isEnd:[]),[lt===ze.length-1])});return _e.push(xt),Ce===!0||Be.has(vt)?xt.children=qe(et[je]||[],xt):xt.children=[],xt})}return qe(pe),_e}function ae(pe,Ce,Pe){var Ie={};(0,tt.Z)(Pe)==="object"?Ie=Pe:Ie={externalGetKey:Pe},Ie=Ie||{};var Oe=Ie,Ae=Oe.childrenPropName,je=Oe.externalGetKey,Be=Oe.fieldNames,_e=xe(Be),qe=_e.key,ze=_e.children,Ye=Ae||ze,et;je?typeof je=="string"?et=function(vt){return vt[je]}:typeof je=="function"&&(et=function(vt){return je(vt)}):et=function(vt,Je){return ve(vt[qe],Je)};function lt(dt,vt,Je,ot){var ft=dt?dt[Ye]:pe,xt=dt?Se(Je.pos,vt):"0",yt=dt?[].concat((0,Pt.Z)(ot),[dt]):[];if(dt){var pt=et(dt,xt),gt={node:dt,index:vt,pos:xt,key:pt,parentPos:Je.node?Je.pos:null,level:Je.level+1,nodes:yt};Ce(gt)}ft&&ft.forEach(function(mt,Mt){lt(mt,Mt,{node:dt,pos:xt,level:Je?Je.level+1:-1},yt)})}lt(null)}function re(pe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pe=Ce.initWrapper,Ie=Ce.processEntity,Oe=Ce.onProcessFinished,Ae=Ce.externalGetKey,je=Ce.childrenPropName,Be=Ce.fieldNames,_e=arguments.length>2?arguments[2]:void 0,qe=Ae||_e,ze={},Ye={},et={posEntities:ze,keyEntities:Ye};return Pe&&(et=Pe(et)||et),ae(pe,function(lt){var dt=lt.node,vt=lt.index,Je=lt.pos,ot=lt.key,ft=lt.parentPos,xt=lt.level,yt=lt.nodes,pt={node:dt,nodes:yt,index:vt,key:ot,pos:Je,level:xt},gt=ve(ot,Je);ze[Je]=pt,Ye[gt]=pt,pt.parent=ze[ft],pt.parent&&(pt.parent.children=pt.parent.children||[],pt.parent.children.push(pt)),Ie&&Ie(pt,et)},{externalGetKey:qe,childrenPropName:je,fieldNames:Be}),Oe&&Oe(et),et}function le(pe,Ce){var Pe=Ce.expandedKeys,Ie=Ce.selectedKeys,Oe=Ce.loadedKeys,Ae=Ce.loadingKeys,je=Ce.checkedKeys,Be=Ce.halfCheckedKeys,_e=Ce.dragOverNodeKey,qe=Ce.dropPosition,ze=Ce.keyEntities,Ye=(0,be.Z)(ze,pe),et={eventKey:pe,expanded:Pe.indexOf(pe)!==-1,selected:Ie.indexOf(pe)!==-1,loaded:Oe.indexOf(pe)!==-1,loading:Ae.indexOf(pe)!==-1,checked:je.indexOf(pe)!==-1,halfChecked:Be.indexOf(pe)!==-1,pos:String(Ye?Ye.pos:""),dragOver:_e===pe&&qe===0,dragOverGapTop:_e===pe&&qe===-1,dragOverGapBottom:_e===pe&&qe===1};return et}function ue(pe){var Ce=pe.data,Pe=pe.expanded,Ie=pe.selected,Oe=pe.checked,Ae=pe.loaded,je=pe.loading,Be=pe.halfChecked,_e=pe.dragOver,qe=pe.dragOverGapTop,ze=pe.dragOverGapBottom,Ye=pe.pos,et=pe.active,lt=pe.eventKey,dt=(0,oe.Z)((0,oe.Z)({},Ce),{},{expanded:Pe,selected:Ie,checked:Oe,loaded:Ae,loading:je,halfChecked:Be,dragOver:_e,dragOverGapTop:qe,dragOverGapBottom:ze,pos:Ye,active:et,key:lt});return"props"in dt||Object.defineProperty(dt,"props",{get:function(){return(0,ce.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),pe}}),dt}},8178:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return Pt}});var tt=Ke(4676);function Pt(oe,Ue,Fe,me){var ce=tt.unstable_batchedUpdates?function(Le){tt.unstable_batchedUpdates(Fe,Le)}:Fe;return oe!=null&&oe.addEventListener&&oe.addEventListener(Ue,ce,me),{remove:function(){oe!=null&&oe.removeEventListener&&oe.removeEventListener(Ue,ce,me)}}}},21783:function(Gn,vn,Ke){"use strict";Ke.d(vn,{g1:function(){return ke},os:function(){return xe}});var tt=/margin|padding|width|height|max|min|offset/,Pt={left:!0,top:!0},oe={cssFloat:1,styleFloat:1,float:1};function Ue(fe){return fe.nodeType===1?fe.ownerDocument.defaultView.getComputedStyle(fe,null):{}}function Fe(fe,z,ee){if(z=z.toLowerCase(),ee==="auto"){if(z==="height")return fe.offsetHeight;if(z==="width")return fe.offsetWidth}return z in Pt||(Pt[z]=tt.test(z)),Pt[z]?parseFloat(ee)||0:ee}function me(fe,z){var ee=arguments.length,ae=Ue(fe);return z=oe[z]?"cssFloat"in fe.style?"cssFloat":"styleFloat":z,ee===1?ae:Fe(fe,z,ae[z]||fe.style[z])}function ce(fe,z,ee){var ae=arguments.length;if(z=oe[z]?"cssFloat"in fe.style?"cssFloat":"styleFloat":z,ae===3)return typeof ee=="number"&&tt.test(z)&&(ee="".concat(ee,"px")),fe.style[z]=ee,ee;for(var re in z)z.hasOwnProperty(re)&&ce(fe,re,z[re]);return Ue(fe)}function be(fe){return fe===document.body?document.documentElement.clientWidth:fe.offsetWidth}function Le(fe){return fe===document.body?window.innerHeight||document.documentElement.clientHeight:fe.offsetHeight}function Se(){var fe=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),z=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:fe,height:z}}function ke(){var fe=document.documentElement.clientWidth,z=window.innerHeight||document.documentElement.clientHeight;return{width:fe,height:z}}function ve(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function xe(fe){var z=fe.getBoundingClientRect(),ee=document.documentElement;return{left:z.left+(window.pageXOffset||ee.scrollLeft)-(ee.clientLeft||document.body.clientLeft||0),top:z.top+(window.pageYOffset||ee.scrollTop)-(ee.clientTop||document.body.clientTop||0)}}},24387:function(Gn,vn,Ke){"use strict";Ke.d(vn,{G:function(){return Ue}});var tt=Ke(87746),Pt=function(me){if((0,tt.Z)()&&window.document.documentElement){var ce=Array.isArray(me)?me:[me],be=window.document.documentElement;return ce.some(function(Le){return Le in be.style})}return!1},oe=function(me,ce){if(!Pt(me))return!1;var be=document.createElement("div"),Le=be.style[me];return be.style[me]=ce,be.style[me]!==Le};function Ue(Fe,me){return!Array.isArray(Fe)&&me!==void 0?oe(Fe,me):Pt(Fe)}},50030:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return nt}});var tt=Ke(5891),Pt=Ke(80665),oe=Ke(57259),Ue=Ke(80962),Fe=Ke(29043),me=Ke(19149),ce=Ke(92310),be=Ke.n(ce),Le=Ke(29301),Se=Ke(80764),ke=Ke(28800),ve=Ke(59301),xe=Ke(4676),fe=ve.forwardRef(function(we,Te){var Ve=we.height,Ze=we.offsetY,Ee=we.offsetX,Ge=we.children,He=we.prefixCls,We=we.onInnerResize,Xe=we.innerProps,ct=we.rtl,Et=we.extra,ht={},It={display:"flex",flexDirection:"column"};return Ze!==void 0&&(ht={height:Ve,position:"relative",overflow:"hidden"},It=(0,oe.Z)((0,oe.Z)({},It),{},(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({transform:"translateY(".concat(Ze,"px)")},ct?"marginRight":"marginLeft",-Ee),"position","absolute"),"left",0),"right",0),"top",0))),ve.createElement("div",{style:ht},ve.createElement(Le.Z,{onResize:function($t){var Wt=$t.offsetHeight;Wt&&We&&We()}},ve.createElement("div",(0,tt.Z)({style:It,className:be()((0,Ue.Z)({},"".concat(He,"-holder-inner"),He)),ref:Te},Xe),Ge,Et)))});fe.displayName="Filler";var z=fe;function ee(we){var Te=we.children,Ve=we.setRef,Ze=ve.useCallback(function(Ee){Ve(Ee)},[]);return ve.cloneElement(Te,{ref:Ze})}function ae(we,Te,Ve,Ze,Ee,Ge,He,We){var Xe=We.getKey;return we.slice(Te,Ve+1).map(function(ct,Et){var ht=Te+Et,It=He(ct,ht,{style:{width:Ze},offsetX:Ee}),qt=Xe(ct);return ve.createElement(ee,{key:qt,setRef:function(Wt){return Ge(ct,Wt)}},It)})}function re(we,Te,Ve,Ze){var Ee=Ve-we,Ge=Te-Ve,He=Math.min(Ee,Ge)*2;if(Ze<=He){var We=Math.floor(Ze/2);return Ze%2?Ve+We+1:Ve-We}return Ee>Ge?Ve-(Ze-Ge):Ve+(Ze-Ee)}function le(we,Te,Ve){var Ze=we.length,Ee=Te.length,Ge,He;if(Ze===0&&Ee===0)return null;Ze<Ee?(Ge=we,He=Te):(Ge=Te,He=we);var We={__EMPTY_ITEM__:!0};function Xe($t){return $t!==void 0?Ve($t):We}for(var ct=null,Et=Math.abs(Ze-Ee)!==1,ht=0;ht<He.length;ht+=1){var It=Xe(Ge[ht]),qt=Xe(He[ht]);if(It!==qt){ct=ht,Et=Et||It!==Xe(He[ht+1]);break}}return ct===null?null:{index:ct,multiple:Et}}function ue(we,Te,Ve){var Ze=ve.useState(we),Ee=(0,Fe.Z)(Ze,2),Ge=Ee[0],He=Ee[1],We=ve.useState(null),Xe=(0,Fe.Z)(We,2),ct=Xe[0],Et=Xe[1];return ve.useEffect(function(){var ht=le(Ge||[],we||[],Te);(ht==null?void 0:ht.index)!==void 0&&(Ve==null||Ve(ht.index),Et(we[ht.index])),He(we)},[we]),[ct]}var pe=Ke(23073),Ce=(typeof navigator=="undefined"?"undefined":(0,Pt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Pe=Ce,Ie=function(we,Te,Ve,Ze){var Ee=(0,ve.useRef)(!1),Ge=(0,ve.useRef)(null);function He(){clearTimeout(Ge.current),Ee.current=!0,Ge.current=setTimeout(function(){Ee.current=!1},50)}var We=(0,ve.useRef)({top:we,bottom:Te,left:Ve,right:Ze});return We.current.top=we,We.current.bottom=Te,We.current.left=Ve,We.current.right=Ze,function(Xe,ct){var Et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ht=Xe?ct<0&&We.current.left||ct>0&&We.current.right:ct<0&&We.current.top||ct>0&&We.current.bottom;return Et&&ht?(clearTimeout(Ge.current),Ee.current=!1):(!ht||Ee.current)&&He(),!Ee.current&&ht}};function Oe(we,Te,Ve,Ze,Ee,Ge,He){var We=(0,ve.useRef)(0),Xe=(0,ve.useRef)(null),ct=(0,ve.useRef)(null),Et=(0,ve.useRef)(!1),ht=Ie(Te,Ve,Ze,Ee);function It(kt,Xt){if(pe.Z.cancel(Xe.current),!ht(!1,Xt)){var tn=kt;if(!tn._virtualHandled)tn._virtualHandled=!0;else return;We.current+=Xt,ct.current=Xt,Pe||tn.preventDefault(),Xe.current=(0,pe.Z)(function(){var dn=Et.current?10:1;He(We.current*dn,!1),We.current=0})}}function qt(kt,Xt){He(Xt,!0),Pe||kt.preventDefault()}var $t=(0,ve.useRef)(null),Wt=(0,ve.useRef)(null);function Ut(kt){if(we){pe.Z.cancel(Wt.current),Wt.current=(0,pe.Z)(function(){$t.current=null},2);var Xt=kt.deltaX,tn=kt.deltaY,dn=kt.shiftKey,Mn=Xt,Rn=tn;($t.current==="sx"||!$t.current&&dn&&tn&&!Xt)&&(Mn=tn,Rn=0,$t.current="sx");var ir=Math.abs(Mn),qn=Math.abs(Rn);$t.current===null&&($t.current=Ge&&ir>qn?"x":"y"),$t.current==="y"?It(kt,Rn):qt(kt,Mn)}}function ln(kt){we&&(Et.current=kt.detail===ct.current)}return[Ut,ln]}function Ae(we,Te,Ve,Ze){var Ee=ve.useMemo(function(){return[new Map,[]]},[we,Ve.id,Ze]),Ge=(0,Fe.Z)(Ee,2),He=Ge[0],We=Ge[1],Xe=function(Et){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Et,It=He.get(Et),qt=He.get(ht);if(It===void 0||qt===void 0)for(var $t=we.length,Wt=We.length;Wt<$t;Wt+=1){var Ut,ln=we[Wt],kt=Te(ln);He.set(kt,Wt);var Xt=(Ut=Ve.get(kt))!==null&&Ut!==void 0?Ut:Ze;if(We[Wt]=(We[Wt-1]||0)+Xt,kt===Et&&(It=Wt),kt===ht&&(qt=Wt),It!==void 0&&qt!==void 0)break}return{top:We[It-1]||0,bottom:We[qt]}};return Xe}var je=Ke(85899),Be=Ke(79545),_e=Ke(68550),qe=function(){function we(){(0,Be.Z)(this,we),(0,Ue.Z)(this,"maps",void 0),(0,Ue.Z)(this,"id",0),(0,Ue.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,_e.Z)(we,[{key:"set",value:function(Ve,Ze){this.maps[Ve]=Ze,this.id+=1,this.diffKeys.add(Ve)}},{key:"get",value:function(Ve){return this.maps[Ve]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),we}(),ze=qe;function Ye(we){var Te=parseFloat(we);return isNaN(Te)?0:Te}function et(we,Te,Ve){var Ze=ve.useState(0),Ee=(0,Fe.Z)(Ze,2),Ge=Ee[0],He=Ee[1],We=(0,ve.useRef)(new Map),Xe=(0,ve.useRef)(new ze),ct=(0,ve.useRef)(0);function Et(){ct.current+=1}function ht(){var qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Et();var $t=function(){var ln=!1;We.current.forEach(function(kt,Xt){if(kt&&kt.offsetParent){var tn=(0,je.ZP)(kt),dn=tn.offsetHeight,Mn=getComputedStyle(tn),Rn=Mn.marginTop,ir=Mn.marginBottom,qn=Ye(Rn),Cr=Ye(ir),er=dn+qn+Cr;Xe.current.get(Xt)!==er&&(Xe.current.set(Xt,er),ln=!0)}}),ln&&He(function(kt){return kt+1})};if(qt)$t();else{ct.current+=1;var Wt=ct.current;Promise.resolve().then(function(){Wt===ct.current&&$t()})}}function It(qt,$t){var Wt=we(qt),Ut=We.current.get(Wt);$t?(We.current.set(Wt,$t),ht()):We.current.delete(Wt),!Ut!=!$t&&($t?Te==null||Te(qt):Ve==null||Ve(qt))}return(0,ve.useEffect)(function(){return Et},[]),[It,ht,Xe.current,Ge]}var lt=14/15;function dt(we,Te,Ve){var Ze=(0,ve.useRef)(!1),Ee=(0,ve.useRef)(0),Ge=(0,ve.useRef)(0),He=(0,ve.useRef)(null),We=(0,ve.useRef)(null),Xe,ct=function(qt){if(Ze.current){var $t=Math.ceil(qt.touches[0].pageX),Wt=Math.ceil(qt.touches[0].pageY),Ut=Ee.current-$t,ln=Ge.current-Wt,kt=Math.abs(Ut)>Math.abs(ln);kt?Ee.current=$t:Ge.current=Wt;var Xt=Ve(kt,kt?Ut:ln,!1,qt);Xt&&qt.preventDefault(),clearInterval(We.current),Xt&&(We.current=setInterval(function(){kt?Ut*=lt:ln*=lt;var tn=Math.floor(kt?Ut:ln);(!Ve(kt,tn,!0)||Math.abs(tn)<=.1)&&clearInterval(We.current)},16))}},Et=function(){Ze.current=!1,Xe()},ht=function(qt){Xe(),qt.touches.length===1&&!Ze.current&&(Ze.current=!0,Ee.current=Math.ceil(qt.touches[0].pageX),Ge.current=Math.ceil(qt.touches[0].pageY),He.current=qt.target,He.current.addEventListener("touchmove",ct,{passive:!1}),He.current.addEventListener("touchend",Et,{passive:!0}))};Xe=function(){He.current&&(He.current.removeEventListener("touchmove",ct),He.current.removeEventListener("touchend",Et))},(0,ke.Z)(function(){return we&&Te.current.addEventListener("touchstart",ht,{passive:!0}),function(){var It;(It=Te.current)===null||It===void 0||It.removeEventListener("touchstart",ht),Xe(),clearInterval(We.current)}},[we])}function vt(we){return Math.floor(Math.pow(we,.5))}function Je(we,Te){var Ve="touches"in we?we.touches[0]:we;return Ve[Te?"pageX":"pageY"]-window[Te?"scrollX":"scrollY"]}function ot(we,Te,Ve){ve.useEffect(function(){var Ze=Te.current;if(we&&Ze){var Ee=!1,Ge,He,We=function(){pe.Z.cancel(Ge)},Xe=function It(){We(),Ge=(0,pe.Z)(function(){Ve(He),It()})},ct=function(qt){var $t=qt;$t._virtualHandled||($t._virtualHandled=!0,Ee=!0)},Et=function(){Ee=!1,We()},ht=function(qt){if(Ee){var $t=Je(qt,!1),Wt=Ze.getBoundingClientRect(),Ut=Wt.top,ln=Wt.bottom;if($t<=Ut){var kt=Ut-$t;He=-vt(kt),Xe()}else if($t>=ln){var Xt=$t-ln;He=vt(Xt),Xe()}else We()}};return Ze.addEventListener("mousedown",ct),Ze.ownerDocument.addEventListener("mouseup",Et),Ze.ownerDocument.addEventListener("mousemove",ht),function(){Ze.removeEventListener("mousedown",ct),Ze.ownerDocument.removeEventListener("mouseup",Et),Ze.ownerDocument.removeEventListener("mousemove",ht),We()}}},[we])}var ft=10;function xt(we,Te,Ve,Ze,Ee,Ge,He,We){var Xe=ve.useRef(),ct=ve.useState(null),Et=(0,Fe.Z)(ct,2),ht=Et[0],It=Et[1];return(0,ke.Z)(function(){if(ht&&ht.times<ft){if(!we.current){It(function(it){return(0,oe.Z)({},it)});return}Ge();var qt=ht.targetAlign,$t=ht.originAlign,Wt=ht.index,Ut=ht.offset,ln=we.current.clientHeight,kt=!1,Xt=qt,tn=null;if(ln){for(var dn=qt||$t,Mn=0,Rn=0,ir=0,qn=Math.min(Te.length-1,Wt),Cr=0;Cr<=qn;Cr+=1){var er=Ee(Te[Cr]);Rn=Mn;var Fr=Ve.get(er);ir=Rn+(Fr===void 0?Ze:Fr),Mn=ir}for(var jr=dn==="top"?Ut:ln-Ut,fi=qn;fi>=0;fi-=1){var Si=Ee(Te[fi]),tr=Ve.get(Si);if(tr===void 0){kt=!0;break}if(jr-=tr,jr<=0)break}switch(dn){case"top":tn=Rn-Ut;break;case"bottom":tn=ir-ln+Ut;break;default:{var gr=we.current.scrollTop,Qn=gr+ln;Rn<gr?Xt="top":ir>Qn&&(Xt="bottom")}}tn!==null&&He(tn),tn!==ht.lastTop&&(kt=!0)}kt&&It((0,oe.Z)((0,oe.Z)({},ht),{},{times:ht.times+1,targetAlign:Xt,lastTop:tn}))}},[ht,we.current]),function(qt){if(qt==null){We();return}if(pe.Z.cancel(Xe.current),typeof qt=="number")He(qt);else if(qt&&(0,Pt.Z)(qt)==="object"){var $t,Wt=qt.align;"index"in qt?$t=qt.index:$t=Te.findIndex(function(kt){return Ee(kt)===qt.key});var Ut=qt.offset,ln=Ut===void 0?0:Ut;It({times:0,index:$t,offset:ln,originAlign:Wt})}}}var yt=ve.forwardRef(function(we,Te){var Ve=we.prefixCls,Ze=we.rtl,Ee=we.scrollOffset,Ge=we.scrollRange,He=we.onStartMove,We=we.onStopMove,Xe=we.onScroll,ct=we.horizontal,Et=we.spinSize,ht=we.containerSize,It=we.style,qt=we.thumbStyle,$t=we.showScrollBar,Wt=ve.useState(!1),Ut=(0,Fe.Z)(Wt,2),ln=Ut[0],kt=Ut[1],Xt=ve.useState(null),tn=(0,Fe.Z)(Xt,2),dn=tn[0],Mn=tn[1],Rn=ve.useState(null),ir=(0,Fe.Z)(Rn,2),qn=ir[0],Cr=ir[1],er=!Ze,Fr=ve.useRef(),jr=ve.useRef(),fi=ve.useState($t),Si=(0,Fe.Z)(fi,2),tr=Si[0],gr=Si[1],Qn=ve.useRef(),it=function(){$t===!0||$t===!1||(clearTimeout(Qn.current),gr(!0),Qn.current=setTimeout(function(){gr(!1)},3e3))},Ur=Ge-ht||0,Rr=ht-Et||0,di=ve.useMemo(function(){if(Ee===0||Ur===0)return 0;var Pn=Ee/Ur;return Pn*Rr},[Ee,Ur,Rr]),Vr=function(Cn){Cn.stopPropagation(),Cn.preventDefault()},Br=ve.useRef({top:di,dragging:ln,pageY:dn,startTop:qn});Br.current={top:di,dragging:ln,pageY:dn,startTop:qn};var Xr=function(Cn){kt(!0),Mn(Je(Cn,ct)),Cr(Br.current.top),He(),Cn.stopPropagation(),Cn.preventDefault()};ve.useEffect(function(){var Pn=function(pn){pn.preventDefault()},Cn=Fr.current,Kt=jr.current;return Cn.addEventListener("touchstart",Pn,{passive:!1}),Kt.addEventListener("touchstart",Xr,{passive:!1}),function(){Cn.removeEventListener("touchstart",Pn),Kt.removeEventListener("touchstart",Xr)}},[]);var hr=ve.useRef();hr.current=Ur;var un=ve.useRef();un.current=Rr,ve.useEffect(function(){if(ln){var Pn,Cn=function(pn){var yn=Br.current,Jn=yn.dragging,bn=yn.pageY,Zt=yn.startTop;pe.Z.cancel(Pn);var jn=Fr.current.getBoundingClientRect(),Fn=ht/(ct?jn.width:jn.height);if(Jn){var ar=(Je(pn,ct)-bn)*Fn,nn=Zt;!er&&ct?nn-=ar:nn+=ar;var On=hr.current,an=un.current,mn=an?nn/an:0,Ln=Math.ceil(mn*On);Ln=Math.max(Ln,0),Ln=Math.min(Ln,On),Pn=(0,pe.Z)(function(){Xe(Ln,ct)})}},Kt=function(){kt(!1),We()};return window.addEventListener("mousemove",Cn,{passive:!0}),window.addEventListener("touchmove",Cn,{passive:!0}),window.addEventListener("mouseup",Kt,{passive:!0}),window.addEventListener("touchend",Kt,{passive:!0}),function(){window.removeEventListener("mousemove",Cn),window.removeEventListener("touchmove",Cn),window.removeEventListener("mouseup",Kt),window.removeEventListener("touchend",Kt),pe.Z.cancel(Pn)}}},[ln]),ve.useEffect(function(){return it(),function(){clearTimeout(Qn.current)}},[Ee]),ve.useImperativeHandle(Te,function(){return{delayHidden:it}});var on="".concat(Ve,"-scrollbar"),Jt={position:"absolute",visibility:tr?null:"hidden"},jt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return ct?(Jt.height=8,Jt.left=0,Jt.right=0,Jt.bottom=0,jt.height="100%",jt.width=Et,er?jt.left=di:jt.right=di):(Jt.width=8,Jt.top=0,Jt.bottom=0,er?Jt.right=0:Jt.left=0,jt.width="100%",jt.height=Et,jt.top=di),ve.createElement("div",{ref:Fr,className:be()(on,(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},"".concat(on,"-horizontal"),ct),"".concat(on,"-vertical"),!ct),"".concat(on,"-visible"),tr)),style:(0,oe.Z)((0,oe.Z)({},Jt),It),onMouseDown:Vr,onMouseMove:it},ve.createElement("div",{ref:jr,className:be()("".concat(on,"-thumb"),(0,Ue.Z)({},"".concat(on,"-thumb-moving"),ln)),style:(0,oe.Z)((0,oe.Z)({},jt),qt),onMouseDown:Xr}))}),pt=yt,gt=20;function mt(){var we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Ve=we/Te*we;return isNaN(Ve)&&(Ve=0),Ve=Math.max(Ve,gt),Math.floor(Ve)}var Mt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Ct=[],zt={overflowY:"auto",overflowAnchor:"none"};function St(we,Te){var Ve=we.prefixCls,Ze=Ve===void 0?"rc-virtual-list":Ve,Ee=we.className,Ge=we.height,He=we.itemHeight,We=we.fullHeight,Xe=We===void 0?!0:We,ct=we.style,Et=we.data,ht=we.children,It=we.itemKey,qt=we.virtual,$t=we.direction,Wt=we.scrollWidth,Ut=we.component,ln=Ut===void 0?"div":Ut,kt=we.onScroll,Xt=we.onVirtualScroll,tn=we.onVisibleChange,dn=we.innerProps,Mn=we.extraRender,Rn=we.styles,ir=we.showScrollBar,qn=ir===void 0?"optional":ir,Cr=(0,me.Z)(we,Mt),er=ve.useCallback(function(xi){return typeof It=="function"?It(xi):xi==null?void 0:xi[It]},[It]),Fr=et(er,null,null),jr=(0,Fe.Z)(Fr,4),fi=jr[0],Si=jr[1],tr=jr[2],gr=jr[3],Qn=!!(qt!==!1&&Ge&&He),it=ve.useMemo(function(){return Object.values(tr.maps).reduce(function(xi,ci){return xi+ci},0)},[tr.id,tr.maps]),Ur=Qn&&Et&&(Math.max(He*Et.length,it)>Ge||!!Wt),Rr=$t==="rtl",di=be()(Ze,(0,Ue.Z)({},"".concat(Ze,"-rtl"),Rr),Ee),Vr=Et||Ct,Br=(0,ve.useRef)(),Xr=(0,ve.useRef)(),hr=(0,ve.useRef)(),un=(0,ve.useState)(0),on=(0,Fe.Z)(un,2),Jt=on[0],jt=on[1],Pn=(0,ve.useState)(0),Cn=(0,Fe.Z)(Pn,2),Kt=Cn[0],Dt=Cn[1],pn=(0,ve.useState)(!1),yn=(0,Fe.Z)(pn,2),Jn=yn[0],bn=yn[1],Zt=function(){bn(!0)},jn=function(){bn(!1)},Fn={getKey:er};function ar(xi){jt(function(ci){var ii;typeof xi=="function"?ii=xi(ci):ii=xi;var Ji=gi(ii);return Br.current.scrollTop=Ji,Ji})}var nn=(0,ve.useRef)({start:0,end:Vr.length}),On=(0,ve.useRef)(),an=ue(Vr,er),mn=(0,Fe.Z)(an,1),Ln=mn[0];On.current=Ln;var xn=ve.useMemo(function(){if(!Qn)return{scrollHeight:void 0,start:0,end:Vr.length-1,offset:void 0};if(!Ur){var xi;return{scrollHeight:((xi=Xr.current)===null||xi===void 0?void 0:xi.offsetHeight)||0,start:0,end:Vr.length-1,offset:void 0}}for(var ci=0,ii,Ji,Or,Ir=Vr.length,ai=0;ai<Ir;ai+=1){var Xn=Vr[ai],no=er(Xn),po=tr.get(no),Vo=ci+(po===void 0?He:po);Vo>=Jt&&ii===void 0&&(ii=ai,Ji=ci),Vo>Jt+Ge&&Or===void 0&&(Or=ai),ci=Vo}return ii===void 0&&(ii=0,Ji=0,Or=Math.ceil(Ge/He)),Or===void 0&&(Or=Vr.length-1),Or=Math.min(Or+1,Vr.length-1),{scrollHeight:ci,start:ii,end:Or,offset:Ji}},[Ur,Qn,Jt,Vr,gr,Ge]),In=xn.scrollHeight,gn=xn.start,Nn=xn.end,kn=xn.offset;nn.current.start=gn,nn.current.end=Nn,ve.useLayoutEffect(function(){var xi=tr.getRecord();if(xi.size===1){var ci=Array.from(xi)[0],ii=er(Vr[gn]);if(ii===ci){var Ji=tr.get(ci),Or=Ji-He;ar(function(Ir){return Ir+Or})}}tr.resetRecord()},[In]);var En=ve.useState({width:0,height:Ge}),$n=(0,Fe.Z)(En,2),mr=$n[0],Hr=$n[1],Lr=function(ci){Hr({width:ci.offsetWidth,height:ci.offsetHeight})},en=(0,ve.useRef)(),ur=(0,ve.useRef)(),Mr=ve.useMemo(function(){return mt(mr.width,Wt)},[mr.width,Wt]),pr=ve.useMemo(function(){return mt(mr.height,In)},[mr.height,In]),Ar=In-Ge,Zr=(0,ve.useRef)(Ar);Zr.current=Ar;function gi(xi){var ci=xi;return Number.isNaN(Zr.current)||(ci=Math.min(ci,Zr.current)),ci=Math.max(ci,0),ci}var _r=Jt<=0,vr=Jt>=Ar,Qr=Kt<=0,An=Kt>=Wt,ki=Ie(_r,vr,Qr,An),Dn=function(){return{x:Rr?-Kt:Kt,y:Jt}},ui=(0,ve.useRef)(Dn()),fo=(0,Se.useEvent)(function(xi){if(Xt){var ci=(0,oe.Z)((0,oe.Z)({},Dn()),xi);(ui.current.x!==ci.x||ui.current.y!==ci.y)&&(Xt(ci),ui.current=ci)}});function Mi(xi,ci){var ii=xi;ci?((0,xe.flushSync)(function(){Dt(ii)}),fo()):ar(ii)}function Zo(xi){var ci=xi.currentTarget.scrollTop;ci!==Jt&&ar(ci),kt==null||kt(xi),fo()}var co=function(ci){var ii=ci,Ji=Wt?Wt-mr.width:0;return ii=Math.max(ii,0),ii=Math.min(ii,Ji),ii},$r=(0,Se.useEvent)(function(xi,ci){ci?((0,xe.flushSync)(function(){Dt(function(ii){var Ji=ii+(Rr?-xi:xi);return co(Ji)})}),fo()):ar(function(ii){var Ji=ii+xi;return Ji})}),Gr=Oe(Qn,_r,vr,Qr,An,!!Wt,$r),Ni=(0,Fe.Z)(Gr,2),Wi=Ni[0],dr=Ni[1];dt(Qn,Br,function(xi,ci,ii,Ji){var Or=Ji;return ki(xi,ci,ii)?!1:!Or||!Or._virtualHandled?(Or&&(Or._virtualHandled=!0),Wi({preventDefault:function(){},deltaX:xi?ci:0,deltaY:xi?0:ci}),!0):!1}),ot(Ur,Br,function(xi){ar(function(ci){return ci+xi})}),(0,ke.Z)(function(){function xi(ii){var Ji=_r&&ii.detail<0,Or=vr&&ii.detail>0;Qn&&!Ji&&!Or&&ii.preventDefault()}var ci=Br.current;return ci.addEventListener("wheel",Wi,{passive:!1}),ci.addEventListener("DOMMouseScroll",dr,{passive:!0}),ci.addEventListener("MozMousePixelScroll",xi,{passive:!1}),function(){ci.removeEventListener("wheel",Wi),ci.removeEventListener("DOMMouseScroll",dr),ci.removeEventListener("MozMousePixelScroll",xi)}},[Qn,_r,vr]),(0,ke.Z)(function(){if(Wt){var xi=co(Kt);Dt(xi),fo({x:xi})}},[mr.width,Wt]);var Lt=function(){var ci,ii;(ci=en.current)===null||ci===void 0||ci.delayHidden(),(ii=ur.current)===null||ii===void 0||ii.delayHidden()},Pi=xt(Br,Vr,tr,He,er,function(){return Si(!0)},ar,Lt);ve.useImperativeHandle(Te,function(){return{nativeElement:hr.current,getScrollInfo:Dn,scrollTo:function(ci){function ii(Ji){return Ji&&(0,Pt.Z)(Ji)==="object"&&("left"in Ji||"top"in Ji)}ii(ci)?(ci.left!==void 0&&Dt(co(ci.left)),Pi(ci.top)):Pi(ci)}}}),(0,ke.Z)(function(){if(tn){var xi=Vr.slice(gn,Nn+1);tn(xi,Vr)}},[gn,Nn,Vr]);var Mo=Ae(Vr,er,tr,He),Oi=Mn==null?void 0:Mn({start:gn,end:Nn,virtual:Ur,offsetX:Kt,offsetY:kn,rtl:Rr,getSize:Mo}),wo=ae(Vr,gn,Nn,Wt,Kt,fi,ht,Fn),Lo=null;Ge&&(Lo=(0,oe.Z)((0,Ue.Z)({},Xe?"height":"maxHeight",Ge),zt),Qn&&(Lo.overflowY="hidden",Wt&&(Lo.overflowX="hidden"),Jn&&(Lo.pointerEvents="none")));var ko={};return Rr&&(ko.dir="rtl"),ve.createElement("div",(0,tt.Z)({ref:hr,style:(0,oe.Z)((0,oe.Z)({},ct),{},{position:"relative"}),className:di},ko,Cr),ve.createElement(Le.Z,{onResize:Lr},ve.createElement(ln,{className:"".concat(Ze,"-holder"),style:Lo,ref:Br,onScroll:Zo,onMouseEnter:Lt},ve.createElement(z,{prefixCls:Ze,height:In,offsetX:Kt,offsetY:kn,scrollWidth:Wt,onInnerResize:Si,ref:Xr,innerProps:dn,rtl:Rr,extra:Oi},wo))),Ur&&In>Ge&&ve.createElement(pt,{ref:en,prefixCls:Ze,scrollOffset:Jt,scrollRange:In,rtl:Rr,onScroll:Mi,onStartMove:Zt,onStopMove:jn,spinSize:pr,containerSize:mr.height,style:Rn==null?void 0:Rn.verticalScrollBar,thumbStyle:Rn==null?void 0:Rn.verticalScrollBarThumb,showScrollBar:qn}),Ur&&Wt>mr.width&&ve.createElement(pt,{ref:ur,prefixCls:Ze,scrollOffset:Kt,scrollRange:Wt,rtl:Rr,onScroll:Mi,onStartMove:Zt,onStopMove:jn,spinSize:Mr,containerSize:mr.width,horizontal:!0,style:Rn==null?void 0:Rn.horizontalScrollBar,thumbStyle:Rn==null?void 0:Rn.horizontalScrollBarThumb,showScrollBar:qn}))}var bt=ve.forwardRef(St);bt.displayName="List";var at=bt,nt=at},93314:function(Gn){"use strict";Gn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},96908:function(Gn){"use strict";Gn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3gPQR5+E1qsPDdXl5G9YjUdipIreGpzGFUOfpb4zVXQA2ZnW7op1paSiH30qWlIqdVWlFGz6Al1ipmqkXH0wnD0ym8bOUt0BZGdZuivXk9IH/ajJaK4Uasr3UJizUQX/Fb2WOZ7LtfniosefHEDG38bdo4bUvuijJqG5XFQU5VOSv22/3hr8NTObWzqjIQ4gO8PK3aWO3v3RR57gHR13blpHQ121FZTTM7N5Od5NcQAZbwt3N/mDjvDu8jQ11rHj6/XoskevqKxXMuOPfZHyeDbJAWQ8rdsdZct2zYjj0VJS2bu7gLLiXdZRMiszmx/Hs1kOIONp3e4qO60/+rBx6O5WdmzeRHOTz8lO0pg2fhkr4tU0B5Dxsmx3lytTd99B1FZVUZC31dqanMzxTNDmsz9gGcumOoCMpTV7kixXEvrwCV4HZ1vuZlqamqytu2VCNn+NR3MdQMbDqj1Epj5wBFqfgVSU7qWkWB3CENKgEhibme39jCklBpCysf/H3aohrY1w64CYNqrLCJOziRJg1hN+qqtjJklJQx88xrudmJuzBY+cVveBcmlmNr/qmODQpRIHyPuKlVYtjXBL/1i3K7HyDh4Gp94IU2+Ee0+A+pgPJJ3WPn3QEWgpvSkpKaaiosJabxsuJk7IYksslXEAGUtrmrIW5sHAkerb7UO6NSBJ6wcDhnvXkFu354HlDK8GKzOzOS+WJnQAGUtrmrIW5atXCHoCIDXwDDwSlyuJvIICGhran7OIdRjIAaQDyIgW0PsNRkvtR2l5OaXlAcuPmIaBuh4gp1wP/QYrI338ODRUBRpM0+Cc36p0OVT6nwd9PIcdAydcqr7nroL8NXDi5TBmKoyepPgL16n0dS+3dzgGjoaTjY0If7n+Wow+GdK/p1Jr9sC+Ihg1SX0X3Xob6+K3F0FLg0r/egUUbWovSRy8SdNh5PEw4jho2Ae71sOuDbDhVaWvP1nbWLIZvvo3TLwQvjtDvdQlaf+eB2Uxeuu1V2/oP4yGhnryCn3etqmWS+PmjGUsiYhsGwxdD5C/WwsjJirV7xkX3KjyPvZSY+poqoXbBvqaetzF8HPjDMAbc2HIWDjlp8FNsfldePIaH+iTU2FxIRxkyHvgu5D3afCyM5dDprF8emuBN4jM6TPDm/zZG+HTf/l4xpwG1z/nXaMFpYIv4fHpUGVEJEwmaxu/eBFyP4Br/t5exMPnwZb3bUDADouGPmiU9+3FnLxC3BZvW0rHMgzUswEpI5O8Q9LaDAVroHgzDE2H0SdB6kGqJyryYdFJ0GicbLnsfjjLOGn1yT/ghRmBPSajmgBXLg+Qwwd3j4WzboXTDV4J95jkPZxghH2e+xl89ozKEVDdlKVu8RAq/lqNikm91Eg++GiVXlsGD52tRr1ggCz+BgaPAXk/20oxBSTo/YagJfdiV8lequuMEd9SnwYxCQP1bECKwerK4ZELQUYbk2RbbNZbMOQYlbJyMSy/Wz3LdDjvG/XcWAN3Hg6t7XYp4IxZ8CNjmSCj7NJp7cEQyamRH8m8zT7H54WZ8MkTPhlyO4ZM+xcvUGkb3oDHLw8OSDP1m3fgw0ehtlSBWUb2ysL2eh3It7T+iMddVV1LUVnQMFZMwkA9H5CPXQqb3gzsChlVBBSyHm2uh7ljFHiFbn4Pjj1DPT/1U5Bp0Uq/XQ1HnKxSnrgC1r8aHSAvnAfn3aXKfPYsPHN9cKiYywIJrC+a5Ft/WqfsSDIOBITWsnJjRr/DaG1pIbewJKjUWISBejYgZTqeOzZ0l9zyPhxzusp/7BLY9JZ6FifjhhfUc85/YckPfDKsI6iMRnNGq3t+rBRphJyzBuQgrNBD34etHwTXcfLVcN3TKu/d++H136lnKyDlx3TXkcGdv1iB0ZTT7zDv0/aiMppaWoNKP9AwUM8G5Fdvwt8MjzuY+ab/Bc40dr+yfw2rDEdRRgMBlXSArAFl9KwyzgVaR7f3HoDX5gRKjgTIh6rV2lZow+uBSwJTojhX489R32QUltHYH5A7P4P7T4s19ILLk2k7JY3SqhpK99WFqvOAwkA9G5Af/R1emhW6s865HS5ZpPJXLYXsW328Fy+EH9yhvi+/B1YafH/YCoceqdLnZUBpu6NZKj0cICVgLvnRkoSCFk8OBOSXy+DJq6OV1jH+5F6Q1p/G5mZ2lAQJxxlSDyQMFHtATpgGR56iVNvyHmz7KLDxstcrXqpQUx3cdoiPJ5ZhnzUvwNPXhjb+tLth2lyV/86f4I3f+3jF8Zmfq+6SLNsB96TDUVPgNx8qHmnXg2cFlx0OkDIyPrhPrV2FJNbqe8MvtK4S3go2Zcv6Vta5nUGicp9B3vuBcooraXMHfxHxQMJAsQfkRQvg3DuVeazeq9Vgo06EOz9XKXu3wvwMX651fbXgeCgxPF5reQlgLzSCvuHikOJpSiwxFF3zBEy5TuU+exN8aqzXTP5fvgkZxvrxz2fC5CvhtJ+p3KevgzXPRw9IKWHd6w41yoYDmH8csrMAKTql9vWGqoqr6qisaw6pZUfDQLEH5Hd+Atc+qRRdmw3/vCpQaStPzn9gybk+nl+8BhMvUN+XXgCb3wksf+1T8J1rVHo4QMoux7xxwcMfElwXUJt7zg+cDnmr29clux+/MDxoGW0zzlVBc9lNmTMy9Nov0hpy1goY/31Vl3/Ix6rB8ZfACT9UKRJe+vw59ZxIQMq0nZJGbUMzBRVhL7XoUBgo9oCUoPMdxu6GBKQXTIByy4VaKWnwm4/VVpnQf5fAy7/2dcP0B+FMY90XbMo9fCLM+UJNpZEAKflfZqndGH8SZ0acGiEJSC82wjhWPokH3pvnA62ZJ/G+rJsDZZop1nWmePni7VvpuIvg56+oFNlynJ8JzX5OgswCd63zbUH+5Xuw/ePEA1KWGvIOt9vNlr21eDyhz3p2JAwUe0CKyWavhHRjfVVXoUAni38x8ik/geHGFC33yMgIZu2wcWfDr972dZ/slnz+PNTuhaNPhUvuVd6vSeFGSPGQBbjrXoH3/gxl22BIOpz0I593LXIevQi+ttRpBc/5c+ECI2hupt8rMcGvQgPSGk6SsFHO+2rPXLxyk2a8DrLeFirdrtaHEryXy0ZlmTD5Kt9uzTcrVXDfpESOkKKD7G3rOruqmqhuCv9qjcvF+RlZhDBuoAnjA0iJ1ckoaR4wCNV1794HrxsBYivPze/CsWcGLyUgWz5XAVMoHCAFiEInXhZcloBkxQKQvehQJFP6wh2+Lb78L+C+KaH5JUeWE7Ks8KdZaeqqZaFDRsCMN3z79qEk7t4IMjo21XQdQLpSvP8QoKaxlcJ9odeRorCmsSVjHBPtvhQWH0CKJtKRVz3mO4BgNXhFgQrHyC8/GMmhUNlTPvWG9rnVJarcphX2DleIByrOxxVL1Mhsxv5EqkyVWbNh4/Lw4JLc2e/4TvbI3raM2pFo6k1wxkwYPNa3z2wFpJSXeOf5v1d751bdJE/WqfJDkeWBf+A90SOkTNtJvdA9bWwpa8ET4RWNaMJA8QOk2WF9DlEHGmS6FhDszVX7rXao76EwdJy6yF2OjJXLieUIFKqzpPMlHCWjdsFadWTMDglQFhVAnwFqi/HOEYHrPTtywvFIBx96FAzPVODbk6PW3XbCQQdad0fLiz11D7urW9nXHP4eqmjCQPEHZEcb3NFysR49JMxz5SNKm9VPgZzYcQjE4ZOzKy1u8qtt3Jmv8fCEZcyOZDoHkJEsNHcjDBuvuO6bCvlG/DRSuW9Dvly74tHZUumOOG3LUWo7L4U5gAwHHHGsxMESkvOKC40DEd8GsEXRxqI6D1VNka+P1ODtzGzOD7t66XGX3sdyypaguATHhbJvg1UPR9FN3x7WxjbYsc/ezSqRwkA9b4QclqE8aiEJeH/5UseQITs5F81X/+tQSPa6g73f0zHpPaqUhMa3VrppDRMkNxscKQzU8wDZo7q6+zSmtFGntN6GcwOECwM5gOw+fd6lNW31QG6lADLytTHhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},57177:function(Gn){"use strict";Gn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAcc9EALoNRpCaqt3rh4QIkDvH/jxV/zuZZjrVy8uRzvSzDdrx3HxWnnEnz1eevhOf/79HpNdrAs6wrQr9VvtiMc+/kc0HSan9Nrq8Uzt9hquuZjv8kPev26r8x16X5VPYDHDYT7Vy/L8vo94d7P8u5mcV+w+1U34GEZ7a+5Tg/vV31tbrmu36ff23JcB9VdBo9a5v2rekq14/1wN30GNXGzctPKKgf7eExVKUGBpJsSEkgWYPMHXEuH0sHlB5iW8jrAtE6sd9AW8GidVD9mR/fvxDrAzJ3Yp/ObAGL3srC1XweJnf0awHUQWgGJ52i3P+D9OyOP/QHSAjYT8Lwd3gRGH3Bp5dza34D7LUDsD04vmPzuN9cZGkSAF3xm4JttNoFWdasNlRVNta4SV21l6YHakvyPGurrNivA12kZ2B1TdLSisvAA1QrF8hbpAUsP8EWVkAwkdgMSugHxiUB8EpDcC+g1AOjeG+BciSBWPXA3NaA8Pxel+7LRXF+bCwXpShxeTX0V33ZED0tAdcRW+X+2iaN3j35Ar/7iX/e+XnCpbg9cZfkozctBrauci/9tioIlKSpeUTLg7iguk4DqKC0h7bD2QPJBQP/hUHsNhsIVv+qBq7QI+7O2w93USGDtUoEFaavxoqJ4x7Z2FQmodnW/rDxsD3Ba2PcwqL0PhaLEobmxAXnZmaiuKPOqUBRsSlBx06gM7AlbZxQKSkBFwalSZRQ9kJAEDD4GSD7Yyz6WFu5HQV4uVI+Ho1W1ouCe1NV4OooWBFUtAdVenpf1ts0DfQ6F2mcoOMurq6nCnp2Z8DAMwNEKWJEKTG+PtZUEVNuaVd7dnh5I6gF1wFFQEpJQW+1CTtYueBgeEPLuwGRcNWQVamJpogRULL0t63LeA/GJUAeNhBKXgOpqF3Kzs6Ey3iVGqs29gQnDMlDnfMXWGiWgYuVpWU/0PBCfBHXQ0VCUeLgqK7B3b67I4BDyZloKrlTmQ6AsyiIBFWUHS/Ux8kBCMtT+w70MYGlJMfILCloqVoDH0jIwMxaWSEDFwsuyjth4IKk71D7DGKzCnj05qK0zZnoKMDUtA69F2xAJqGh7WOqPrQeYvtSjL+rr65C1JxeqMfUrTkpAyrGvoCSaBklARdO7UnfsPaAAat/DocTFo7C4FMWlIvBLUYD0tAz8KppGSUBF07tSd/t4ILE71N5DoHrcyMrJQ0NjY4sd8QompazGumgZJgEVLc9Kve3rgZ79gW49UVVdg9wDhWZbMtNSMEaZDxEFdlgkoBx2qFTXQTygxHnz/gAPdu3NR2Njk9mwmWMy8Fg0LJWAioZXpU7DA/0OB479hTguyQZ2/Sdm3lF79IWS2B2llVXILylvqVcBuLAamZbh/euotA+geg0E/ponHqSpDrizj6MP1WGU8WM671eq7fhVweTFwIQ/Cpe8PRfY8NfYuue4y4BbNbb6y1eA534Tu/rjEqEeNAAejxs7cgvg4VfGmijA8rQM3Oa0Me0HqKUHxLM01gEzD3b6udpXX+9DgNNvBs64GVh0PFDj+Isw/Oe7fAlw3t2i/NoHgPVLwr/XiZLtCShGpHr29zJ++aWVKHX5pPU1Iw5jx6RjuxOP2QLUsPaUcLJG6uII1ZUBtTAb6McAI4B7BktAtdcIRf/zM/vkg9HY3IydeQxBGbMFBVifloELnezecoRy0pu6rsU5QJ/DJKDogXYeoWiCp2c/7mWF7MJy1Nb7kBNwmkaXgJKAioYHDJ0dAFBqt55Q4ruhyFWDooqArzkcpdE7HqBOuxE4aKBokE9WALUGO9PSStxc4Px7xWFzI/DhI0YDDjoGOP5ycbxjE5CzBRh/JTDiDGD4CaL83m/E+W9e8yUM+g0HTtIC6f56/bvd8JOAURp75SoAKvYDh58gStG27tq68L3FQGOtOP/TOmD/j76aOP09YSowbBww9DigtgLY9y2w7zvguzeEvf5ifsb8bcAPbwNjLwF+Pg3oPQTgubfnAcW7ASfXUAOOBH52PTB0nKiHn6UXZwFFu4DPVwEFFssRK0BRz7gpwn/0U+7XQM6XwFfpYrsxpyUhEUjqhdqGJmQXVgRoj1NwR+pqLHOi2o4HqD99DQwdK55t7mjRKfyF++4t1xIf66uAu/oZJcwNuGYOMHgkcKoNs7TtfWDltQZoOd9eshfoqel76OdA9mfWfp6+FkjTpt/vLhA79Jw1PXibrLoZ+OwFo8yIM4EbXwT6MF5iIblfASumAuUaI6oX8e+kOz4Crn3GV8HjFwLbP3AOUJfMBybO9m7eYCnuJmDjQ4L4MIu/rR8+Bty2zvCxuezuT4AVVwHVxU70bR8dao8+XsY1c38F3Ca2j4WcpNG7NqA4MiT1AJoagNwtwIFtwJBRwPATvVF0r5TmAItPBOoqxfEVDwLnapn+n/4DeHlaYONyVCHw4hPErqoPjATOvRM4Syvr3RVWE2/jaQvhF38HfP4vcYEd7ZZ0sWsu5cBPYlTiW58j6cCjxfmqYuDRCWLU0cXcSQ9sBQaOEPvcmcVJQF08F7joz4b2sr3iRcOX2eHjxT9dVl4HfPWqta0cnRmX4r58WZ8CRbsD24Mvj8UnOE7kqN16eT/t2FdWjcrawFHfKRq9awOKzVpdAjxxCcC3vS79jwBmvCs2+6CQStbfrJxOzdsqzte5gFmHAU31vp317BnAL7VpJke55ZN8r4ciJQjyedsM4uLl6cCnzxo6uDcdp42XLRDnvlsDrLjSupPqZ7duAD5+EqgqEmBkh2fHb+uUjy+eJXliI0rK6/f6TrF5ji+TK5aK65wCzh1lbyvb48nJQM4XRpkBRwHT3gIOGS3Obfw78OYsX5+29YgvnLgklNc0YH+FNgX31ekIjd71AfXU5cCP7wQ2B9/q7NScwjTUAHNGCPBR7tgIHHu2+D8DkQxImuXezcARJ4kzz14FfPuG7/VQgLpkHnDh/eIerj3+daN1d9GnlQwM862tr7/MI1QoHW0FFNdLE+8ToQ6uFTlFtpJFe4C+Q8WVmb2NdaO/rS/cCHyxyro95m4Ve9ozNsn24MvBKeHW10nd0dTsxo5C663TnaDRuzagOJ2bM9K+SWZ+ABxzlrj+1GTgx3fF/0kS3PSy+H/mv4FlFxg6zCMYG3z28MCFdChAzd4CDDte6Hz0PGDnR9Y2nvxr4IbnxbX3HwTe+pP4v7mT8mVw/5HW5A3LthVQ4XboO94Hjj1HlF403hr8ZfsEULQ9HwJUz1gHpJwnTj89RZAtTgpHW9WD3cU1qG+y/iK+rTR61wbUD+8AT2uMn1XDTH0YOEfLPsn4I7BJI3q43zZBcdAgsUZiJyjfJzSYRxcuwt+cHag5FKAerRRrO8p3bwVOKXWNJEdSzhdHHAU5GvoDas/nwINn2nc7JwHF2NrxUwCydP2PFEQMiRzulcdjfV1Ke2iXv61b14vpt52Y169v3Ad88LCTcBJ2KvEoqmpAUbUFeypqaxON3rUB9Z9ngFdn2DfK+fcAzHWjbFoOZNxplL1sIXDBfeJ47VxgvVbuLztFh6LMSwWKdgbqDwYodkpej1RIpS85ObCTfrUaWPnr6AKKDNlVy4DxUwURE0rsABWqPZhzOEXLNfz4KSD99lA1RXbd+1NCiahrdCOrzH4jpLbQ6M4Daswk4MhTxYNu32idXcxcN7JklPpq4K6+hmOcpM23vAw8f7290yc9AEyaI65v+BuwxsRkkbiYv0PM6fWF9lGnAXd/LMoza/qRc611BwMUR6ZHKgz6mbE2uymQWTsZNaspX6iE07aOUInJwO0bgKNPM9qL8bHCXUBVoRhdmxuAibOMaawdoL54EXjht/btYR791y0E3pkfGWBClSbjH0c21IPM4no0e6yTlttCozsPqEsXCOdSzOyZ+WFJs87SWJ7CncD8VOOqeX2xYByQrzFu5vsZgF2oxaeCxaHIdDGWZCfXPgucdoO4uuoW4DNtvaKX/8M7QKq2fvr7OcDJVwNn/k5cff4GYMtLkQOKd5hz/exGuWCdI5Lsg7YCimzj5EXCmrzvBYXP4LO/zPrcCGzbASrYS4j6rvuHCBxT7MiLUKAJdZ3Teag44GpCWZ39j3a0lkZ3HlCnXAdcv1I81tcZwD+vCXxEc5nMD4FlE40yv38TGHuxOF5+MbBtQ+D91z8HnKKxTcEAxSyDeaMFfewvDA4TlHrO3UNnAdmbfUsx++D3GoPH0S51oghIskPNHma/9gm1hjIvvv0pc7MF4yaLNQuF9Dzf8JRYAop0NmcdlGeuBL5fE+hL/qbT0gJjOmgHKLbHn48CXD5f0Ap9bA/67eDB4njp6SKbxWnRfjmzqr4ZuZVBszJaRaM7DygGTe/TsgsYUF0wBigx/SACpxB3fyJSbSj/Xga8pn2vw+OpjwDnaOseqynbYWOB2V+KqRglGKB4neksVlQvyQiSEhQGVJdoNLi5ARkPWpRtgE6/xnhP+h32TW1eZ5FlJNtoluMuBW59XZxhytL8NKCh2rcMR+H7vzFSmB7+BcBMAkosAWWegvPlyJekv5hBx2t2gOK1/64EXro1UMeEu4ApfxPnmYa0VJti2nu59Vfi4r27y24vaYYnyLdqraHRnQcUH/P29cAobX1RXSpAw8U7O8mp1wGHalM8bu7OEcTc4UZPAG57z3AWsxW+eEnM148+XUw/yL7pEgxQZOgIvG9eF8HC4l3A4FHAib802D3qefJS4CdTneamumgOcLFfOs0ixoR+sG9QMx1P2j3zA5EzSFZQF3MnZMYA10cMPvOzbU4zT77GyJbwZ8daCyjq58sjHPlhrfDJb1aKNqMU7gBemgZk/VdkeHCtfPliY82s6w0GKJYhkULSgdN5Zq4wTKGzrbzOGQtnLtES9gmPB/uqPKhsCL6hbFwcLkpNh03nCDQwOoBirIajlJ4gaueY95cCb2kBTnMZc0zD/16CZO0cY14fDFAEEmX8FdYWsJOvWwAwF89OOCVcmGWkCIXz9uR0lNNSf5mRLH6rlsIg6LQ1Rt6iXf1ct3B0qncZJVoLqEg6qM5sWrUlM0hIruiM386PBdj09aUdoLZtFOSGTq8HtK1bZKywX0RVvL/cBlejir2u4D9+qCjYnjoaY8Pd1CU6gKIz2BGvecpIIDU7qDRX0Nl881oJf7WOMYnTb/K9Wpkv7vtxXXjJsWTASB6Q8uVbVo/9UCunWqRlv18buunIcumZ5czt46gZSs64BTh7OjBwpJFnZwYU7+cCmTlyzB0028ZrXKcR6Jxe+mdgxxJQtOWIU4CrHzdYPP3Z2Y7fvi5GV+b7MXmWYgcopi0xiM2g+aARvh7kfhP0LUf0GAk5vu2l7qDTPpoSCY0ePUDpTunRVwzrnO6xE/NNFm5KCXcBHTJaLFT5yQWdHkrsOhs7L6co+ucCTKMJR9jRF+cCjMUwK2HW0MD1Tjh6gpVh+hPz2Q5NE+ApyBTrznDo9LbWHe79tHFIigACaXJOH/VUrXB1mMuxTbne1j+nqSltjZY235NX5UFFiGlfJDR69AHV5keOUEEkb+9wVHMac/UTouTm5wBmjEvpMh6oblKRUxnGb14reHzMaoSMNEtAheoac74HDkkRpZae4ZslHepeeb3De4DL6O1load9/JQ1nE1dJKCCNTmTPUmQUPi90kItobXDdxNpYCQe2F/tQXl96J+PUoD30jJwUdDZe7vsehTJ00Za1skpH4O6DO5SMu4CNj0eqTWyfCfwQF0zkFUR3qf3oWj0rjdCHZJqxE0YczF/PRpJ4zJyf+l8b3ayV5jrZ7W/RSQ6ZdkO6QGyfTvL3Giyye0zGx2KRu96gOqQTSaN6ugeKKpTUVQTBjkRgkaXgOroLS3ti4kH+L3hjjICKvS22cFodAmomDSXrKQzeGBPpQc1Nl/yBthvQ6NLQHWGlpY2xsQDFQ0q8qrCm/bZ0egSUDFpKllJZ/AAOYnM8GJS3sexotEloDpDS0sbY+aBAzUelNWFjknpBvnT6BJQMWsqWVFn8EC9G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},81378:function(Gn){"use strict";Gn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJycg0GrNz01Whs6UJhegtLsCmi7tI0GYC8H7osYTPhuO2Z3D9a19gB4sO6Mm8flFSKBd4QcyuFS+MbKIfOWMM6v69KjIq8WhVlFaKpvAQeuFsCr/gh45wmsbXHzsPrcvAfAfV6yn18FjgN8YmUInKiAd4TMJObUlNQj42wWutq7SNtXA9zrIVC88nts7Bgsq+AB8GDZiUEyDrm/BAFj5PBLUAASniNnpeSgvLCSjZADl8dBev8ubD41GIbsAfBg2IVBOAaSnUNnK6GM5DlyQ5UKmSlZ6GjvJBiT5epdGRSP7MRGzbUcvgfA13L1h0DfPtFyBE9VMKuMVqNH2rl0NNapBG78vQ98b9+B2xuu1VQ8AL5WKz+E+pV6cQiaqoAyXAp9tx5pyZfQUNdoBDEKAG5VEhJzrsWUPAC+Fqs+RPsMnOgF3xg5dBod0i9eRmM9D2IAFYB03m5sKRnoqXkAPNArPsT7CxingE+UFDqdHpfSMtHYYJIecn2hnL8DG+sGcooeAA/kav9M+gpIkEMZJYdBq0PqxXS0NDcLMvEFKRTzB1Kx8wD4ZwKqgZ6G/2g5vCPlaGttR+rFZMaRiSSQvLILW58YqPF4ADxQK/1z64cDs05IlByqqiqRX5gvKHV6gLspCYknB2LKHgAPxCr/TPuQ+XAImOQFzsDh0pVLUDcJ5jWUSaGcuBMbW9099WsOYDKYU8Qbi5zqshnZ6e41uGrtSxScU3NQhErR1UBhae4hstkaBiiWzDtSykSJri4NLmYmQ6s1dfz6bmx7xD0z7Gn1mgN4bX48CyapP9eBI/NLXZ5v3JYAzHlnOGvnyMJSqNO7TG36xMjYe41KB22r+GGR+nC48aNIVrb4780o2+OYkYTOVWLRnijk/JcKee+qoVHzMqE5zXlvOGLW+0MRIsXBGUVouuweJ9bys7HwjpJBldaJk2vcH/brP9aLRb1V11aisLzAKEpwWimks3Zic4bLm2qngUED4K5GHWpOttuda+U3bSj83ya7ZeLvCcD1f+HBd3hOMVQXeQDL/DhsVI1l71MerUXOm/zjzhYRV1lfmsC+Sn28FtmviZcV6t/wUSRGbQ5g/575RRWKPuE1c3Ma8+sgXPcmf7gynqvH5d3OO7DkARIowigzwDEtPxcLryApmrK7cGqtYwB31evQ3Wx94Bz3xJcgOThwrBd0Wj1Ssi6gW8sfTA44swuJ8zje9ewWGjQAdmZ2OW+rkPIwRfeJ09UAsH+CHGuuxLNOzj9Yjfz37R8axTAp1hWPBnmsOuu02BtXCL3Ges8IhOvLRkPmI0FjSie+ud55u//YB4Iw+w0e/Febkh+qQe47apea9Y2VQeYrQXlNGcpqeubFQfKrJGz9wKXG7VQeNADuqNKi6FNrrmU+9rqfOlDxtf3HudMAfkuFmPV+iN0QgMyXG6BK6xE1gqYpsDI5jnX9071VKHYwrklPhWDa88NY+csvNiDj2XrRJZ/7fgRG3xfIvv8qrgAdFc4Jq4MdwHQoCcQkA6fmXIBOz8v4HNAog2zcc9gsviguoNutAKZHsdRHYnd4y76LgU+UHKr0TvxwFx+y54iIu7WX9Ww8SwGS8/mp8YkBmPNuBHv/7fwSHph6A0jBshQhVqbGIWiKAgUfqnFue42p22HzvHHzyZHs/+83VKB8r/ihoRQjkuMp6IVShvYlFGLyjlCEzVXanIZXiJS5Y4laizSij+78/2lisrRA8kAJCz53RKO2BLL+ic5tr0btaftiGZXrrNGhu6n/IoQwJt+RMrbOJTVFqG4030vJX3dj632Oxt6f790K4CWHohF5s29/xmW3DoH98Oyex9TY3wRh9mvij1f15S4cWVBiBWCBW2vb9fhqZIFpEyNv9sGSQzFsDCdWlqHqqDgIiIsv+DyKlS39/xac3lSJpd9EI+Im1+Z9+YUGZPyHbaYVMlOB0DneNtdo5J3+GL7Ih31HcraYtYPmXPSx/SdeXzeORAifETJ0dnYivTgFBoMgRpEMLF24G5tP97VNR+WHJIBL97TgtBm37i+AJV4c1hbEsywEc8XOHJRHl5Si7rTtBASZLwfi4n7xXmydT60rR8XBNkx/IQwhM3s4cMgsJVOqCDT1Z5xLZij6W7MowMxFFkcbLPZ9R7UWX8XwFoOrSd4jOUilMuRWZkHdZq78cpdliJ5xtZNFBwTAxAW+u7nMap1uOhbDTEo1p9qR8oh95Ywe9YJp68fESpT8oyc9K+x6JUas8GPtB09TIGoV/55Eg45qHTprtSj8qMmmFWLKs6GY8scwNOdqcGBSEas3KjEAN3xotGRcV9xLPjafBJnFEv4tyPTRsZtKUfu9NUBJTApf6NOrD1dAYw7gikOt0Hc7r+SHTFcys6W7AOwVLIFXoBQ16iqU1BdaTvOJ3dj2iitzt6w7IADuqNHiq2jr0357xWgow2UoP9CK8/9eDZ8YOXxjZPAZaXyNkcN7uBRHF5dh7gcRGH1vIHQaA/ZE5ovKjk4rcUYzmt9oOW7L5i0Ox28tQ/Xxdkz+YyimPhvGPvsyPA8albV8GLXaF4u+iu61nqIAPhGD8Pk+aM7R4MBk/pC4QuYA3juqAJo+yK/XvRUOkpPdBWB6qpHuo9F0I73sgsU0uTYZFOShc93gb2x5wAD89YQiDLteyUBKDgVSZGI3+bOUb0e0L6EAEx8PRfQaP6gyOnFytbhts68Apr5vOT0SYXO9Uba3BT9sqMSNn0QiblMAOuu12BNpffDIbLYqLY4dPnMSA/CKlFgET1UyRdVcdnc0b7HvB7MIQWP2jiJlk8OVqgy0a6wU4H27sW1df+d+zTjwiRXlTF60R6TFd1Rq0VbSjbYyLdpLu9FW2s2UoxG3+qK1RIumzC67GnN/AEwmqmlJw5D3ngppO+pBjgCSYet+bGfc35IW7olih4mIQK4M44EsBuC1hfHswDYkd+LECuv2zNunC0wcORXMAaxR060nzsNB6ith9mp3cWAaiVewFBQnUaEqRVVzudXgOEjWJGHrAedHLV5ywDjw/rGFWF86Gu2lWrSV8cCM3xbIjPoElB+3VjHw0gbaIsHlXPyPZvyUWCU6I0sAtxV3Y/QvApH332pRTxx56TgJZwLOBtUYyP0kKPhrE87dX92rL6k3hzvrEtiTgwBZ+HGTybsmBuCN6jHMyO8M0eElU5w9MgfwF2F5fTKBCXZodwKY3MoE4rauVmTX2vQkF4dCOfFqpOcPGIBtycArLsQieLoS3a16ZL/WaFOWkyo4hN3gjejVPMdLe7oOWa+YUlms9tkcwAR2Uuh0HXrsH1folCuZYgjWF4/m+9pRh6w/Wfe1+EAUgiYp8M0NJezJILiubQGYAmvu7hjnDHZZmeY8DQ5MtC8nmwOY5Gq6b81Z8o6UMYuIOwFM3gvv4TLGjDJqkqHVWcd8SICXdmHbU86OW6zcNQWwI/OX5aAJ6IdnFqO1yPZNR8RJJz8dhomPhfSqShz/4NQipwAcscwHSw/zNuDv76hA+X5rJwYFDJFtmQKFzA+MLQCbx1VUHmlD9bE2m3sx/qFg5tBRZ3bh0PRipzlwfwHgVgADkAdL2F1zZc1FqG/v/RQzjrmbg9e0JGy60t85UD23AniZUfsmj9P+sdZchTRWAgxxMb943jtli7Tt5HnrRsnnLWg4T/cS9KaEXwZi5EZ/pulLjB45KkHyYe7bauS8pWIXdDgTzDPrtXCM+00w62BPTD46q+2HPToCcNQqXyzay1srLM1/5rNYkRyL4GlKNKZ24pu59mMkzDnwoZnF0DQ5H5o546VhzH3ubgBLlRLI/Tk0dzQjX51pc185cCeTkLhk0AL4ttxR8BvlxdyZx5bwygu5Q8l1KRDJpxTk0pKnYU4Aoti7/EEu1/Zyba/YB3Kn2nJ5Lvh8BAtTtKRvbyxBwwUe8M5Go60rjudd2xmdODzLcbCNIwBPfT4Mk5/iXbv2QihXpsUxsaTuTAeOLrRvZTIHcOmXLcy06CyRJYgcL+4GMF1XJQ+RsvvWLjcmQ0fXadogCbh7diHxY2fHb1nOrRz4rtYxTNkp+byZhQ7OejUc4Yt9cHBKEVryeDFAUM7MvWurMuIQOEGB6hNtOH4Lr8WS6eq23HhUHm5F+tP1vcSIcb8NwqQdoaDNNHQD437Lc1BnwinZ3b7G8xS+0BvLvuNjILLfaETqY44TbB0BeOmRaEQs8WXOhs8CckUDzVdfHoWAcV6oOtYGstjYo8FuRhPGToyJ4lRKW4rQ2NUTa2I+N7o8UAq/cTuxvl/hcG4DMGUd3FHNx9ReebWRKV7ktiVtPPcdFZIf4j1vzgJ4WlIYJj0RCl0nKWRFzGIhELl0dZ383bt9MaORy3j6i8NwfHk5yFohgI3abS3U4OCMYuja7XM3ewCmw3Fn3RjQfWP15ztwZJ44Z70tLx5+cXKTLdpZAP90TxW0rc4H4ox9MAgRS33dzoFp/BTYQ0p4i6YZha1Z9qb03m5s+3V/uLDbAEw3uaxM4e2+KY/VIucNFWb+aRjGPxzCrA57YwuY2coZAFMg9205o9j9tln/2Yi0p8Q5oxiAzZUpciuTB45kZqLkR2qgvtSFZcd47isQZVc4cnHbA/DIDf6Y/7cRrDlH1hMyMZKFoOj/mnDmvt5KD3FmWk+BYtb5IXYjHzx/9pdVIB3BWRqzPYgF+5B+cP6BHq6ozuhinsKrSSRGyPwl7B7izJZU6ETynDhAL4X0hp3Ycr6v/bsNwObKy+m7K9njnUxUxIVJO039Qy2yX1c5BeDrP4xAfGIgU1b2jym06doVJi4GYOK0ltYJqlN9vA2Xkhow+9VwZtKjCKqa4+0smozeH1taJhrMQ/XtAfjmUyMx7EY+auzriYUmscnWJt1Zn8BiCLLfVCH10d5xIRMeDcaMl8L7urd9Kn/xyVpc+bPjzJM+NUpc2FsCCQeUdRRA1S3OeDjg4lQor9uIjc5rpO60Qlz39nCM+RUf6GKuTC3aH4WoFX4sFpZEgbV5fE6cmAx8OanBJJemP1uHzBfFbcCWgBJkYP8xcqzJ4uMdiAiYFBif+VIjU/JINhfk5rz31YzDr8kZxTxsZJc9NKNYNFlTDMAhsxRYfpZ/AjnjQt7UOZYd7LRn6pD1cu85DmUAc3L6SQgJ2rXNKOiwK0ZQbu9Du7Dtzb4cErdwYDLe316eAJKDyQa7L77HsxS9zg8Lv4hC7Q/tOL25EreejrULYJKdKZWGLBDkzeuLTGquxJFiSMmHJZ+1IOvlBjRl8Y9LYTz0XrAXU8KneQaEvYMjBmDzWGjhCSS2MaSg3lHJ6wskEhR+ZB2nS8qQJUUs8wVF01Ecx8Wn6pD9qu3DPeU53hJCQVXkkcx/X42uut6MTswD2hcwiZUlzxz9NkduZxq6DeJiCgeu2RsY/zTsuFotOnELgEes9MXifbzt0zLFhsBNFgaSOYmckYFJGfIf44XmbMcy2vTdYSzwh+jgtCITUClIvTmvmylrAo1Y7osFX45glhLiyidXlZuC16nPVem8ZYBk9q8nFNq0CdsCsLmVwBnuO/EPIZj+Ap+SRFkkDeesbd3CmAkMI1b4ghwfw+bxMjwRJcSeWF1u/aTggDlvDwc5X8htT0Q28eK/tzD7OMm+7ibBNl+tKUO9zn7WDQd8loRtm5wdk1sALERz0SBI9qOYh/GP8KYtSxKi0djPTxnjWsnBwXEcA5Wt5Ehq48y91UyuJgpf5I15n4xgSiEBjoiSK/dEFYgGukTe4ouFe3rAe+GBGuT/pXfyprkcbysugvqxBDB9tvRIDBMHaPxkEqv+js/oGLbAGzNfCYeuXQ9dFz9fUlDDjNkVFAdB4ZZkUbEkGi/FKUet9mNxGgK1FGhw8ck6u2lPVJZMWgRicvpQZJwJ+KfaWYZ2OeUaOq8LOosvVo7iTCgxuVuvQW53msO6UnC3PI/Eow4LuksGnvnncIz/XTDqz3bgyIJSZqqypUA5M0CxMj9urWTiABFpuhvqE/iFMpKjDGaSUZedGMnuM7jwYA3yP7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(Gn,vn,Ke){"use strict";Ke.d(vn,{Z:function(){return be}});const tt=Le=>typeof Le=="object"&&Le!=null&&Le.nodeType===1,Pt=(Le,Se)=>(!Se||Le!=="hidden")&&Le!=="visible"&&Le!=="clip",oe=(Le,Se)=>{if(Le.clientHeight<Le.scrollHeight||Le.clientWidth<Le.scrollWidth){const ke=getComputedStyle(Le,null);return Pt(ke.overflowY,Se)||Pt(ke.overflowX,Se)||(ve=>{const xe=(fe=>{if(!fe.ownerDocument||!fe.ownerDocument.defaultView)return null;try{return fe.ownerDocument.defaultView.frameElement}catch(z){return null}})(ve);return!!xe&&(xe.clientHeight<ve.scrollHeight||xe.clientWidth<ve.scrollWidth)})(Le)}return!1},Ue=(Le,Se,ke,ve,xe,fe,z,ee)=>fe<Le&&z>Se||fe>Le&&z<Se?0:fe<=Le&&ee<=ke||z>=Se&&ee>=ke?fe-Le-ve:z>Se&&ee<ke||fe<Le&&ee>ke?z-Se+xe:0,Fe=Le=>{const Se=Le.parentElement;return Se==null?Le.getRootNode().host||null:Se},me=(Le,Se)=>{var ke,ve,xe,fe;if(typeof document=="undefined")return[];const{scrollMode:z,block:ee,inline:ae,boundary:re,skipOverflowHiddenElements:le}=Se,ue=typeof re=="function"?re:yt=>yt!==re;if(!tt(Le))throw new TypeError("Invalid target");const pe=document.scrollingElement||document.documentElement,Ce=[];let Pe=Le;for(;tt(Pe)&&ue(Pe);){if(Pe=Fe(Pe),Pe===pe){Ce.push(Pe);break}Pe!=null&&Pe===document.body&&oe(Pe)&&!oe(document.documentElement)||Pe!=null&&oe(Pe,le)&&Ce.push(Pe)}const Ie=(ve=(ke=window.visualViewport)==null?void 0:ke.width)!=null?ve:innerWidth,Oe=(fe=(xe=window.visualViewport)==null?void 0:xe.height)!=null?fe:innerHeight,{scrollX:Ae,scrollY:je}=window,{height:Be,width:_e,top:qe,right:ze,bottom:Ye,left:et}=Le.getBoundingClientRect(),{top:lt,right:dt,bottom:vt,left:Je}=(yt=>{const pt=window.getComputedStyle(yt);return{top:parseFloat(pt.scrollMarginTop)||0,right:parseFloat(pt.scrollMarginRight)||0,bottom:parseFloat(pt.scrollMarginBottom)||0,left:parseFloat(pt.scrollMarginLeft)||0}})(Le);let ot=ee==="start"||ee==="nearest"?qe-lt:ee==="end"?Ye+vt:qe+Be/2-lt+vt,ft=ae==="center"?et+_e/2-Je+dt:ae==="end"?ze+dt:et-Je;const xt=[];for(let yt=0;yt<Ce.length;yt++){const pt=Ce[yt],{height:gt,width:mt,top:Mt,right:Ct,bottom:zt,left:St}=pt.getBoundingClientRect();if(z==="if-needed"&&qe>=0&&et>=0&&Ye<=Oe&&ze<=Ie&&(pt===pe&&!oe(pt)||qe>=Mt&&Ye<=zt&&et>=St&&ze<=Ct))return xt;const bt=getComputedStyle(pt),at=parseInt(bt.borderLeftWidth,10),nt=parseInt(bt.borderTopWidth,10),we=parseInt(bt.borderRightWidth,10),Te=parseInt(bt.borderBottomWidth,10);let Ve=0,Ze=0;const Ee="offsetWidth"in pt?pt.offsetWidth-pt.clientWidth-at-we:0,Ge="offsetHeight"in pt?pt.offsetHeight-pt.clientHeight-nt-Te:0,He="offsetWidth"in pt?pt.offsetWidth===0?0:mt/pt.offsetWidth:0,We="offsetHeight"in pt?pt.offsetHeight===0?0:gt/pt.offsetHeight:0;if(pe===pt)Ve=ee==="start"?ot:ee==="end"?ot-Oe:ee==="nearest"?Ue(je,je+Oe,Oe,nt,Te,je+ot,je+ot+Be,Be):ot-Oe/2,Ze=ae==="start"?ft:ae==="center"?ft-Ie/2:ae==="end"?ft-Ie:Ue(Ae,Ae+Ie,Ie,at,we,Ae+ft,Ae+ft+_e,_e),Ve=Math.max(0,Ve+je),Ze=Math.max(0,Ze+Ae);else{Ve=ee==="start"?ot-Mt-nt:ee==="end"?ot-zt+Te+Ge:ee==="nearest"?Ue(Mt,zt,gt,nt,Te+Ge,ot,ot+Be,Be):ot-(Mt+gt/2)+Ge/2,Ze=ae==="start"?ft-St-at:ae==="center"?ft-(St+mt/2)+Ee/2:ae==="end"?ft-Ct+we+Ee:Ue(St,Ct,mt,at,we+Ee,ft,ft+_e,_e);const{scrollLeft:Xe,scrollTop:ct}=pt;Ve=We===0?0:Math.max(0,Math.min(ct+Ve/We,pt.scrollHeight-gt/We+Ge)),Ze=He===0?0:Math.max(0,Math.min(Xe+Ze/He,pt.scrollWidth-mt/He+Ee)),ot+=ct-Ve,ft+=Xe-Ze}xt.push({el:pt,top:Ve,left:Ze})}return xt},ce=Le=>Le===!1?{block:"end",inline:"nearest"}:(Se=>Se===Object(Se)&&Object.keys(Se).length!==0)(Le)?Le:{block:"start",inline:"nearest"};function be(Le,Se){if(!Le.isConnected||!(xe=>{let fe=xe;for(;fe&&fe.parentNode;){if(fe.parentNode===document)return!0;fe=fe.parentNode instanceof ShadowRoot?fe.parentNode.host:fe.parentNode}return!1})(Le))return;const ke=(xe=>{const fe=window.getComputedStyle(xe);return{top:parseFloat(fe.scrollMarginTop)||0,right:parseFloat(fe.scrollMarginRight)||0,bottom:parseFloat(fe.scrollMarginBottom)||0,left:parseFloat(fe.scrollMarginLeft)||0}})(Le);if((xe=>typeof xe=="object"&&typeof xe.behavior=="function")(Se))return Se.behavior(me(Le,Se));const ve=typeof Se=="boolean"||Se==null?void 0:Se.behavior;for(const{el:xe,top:fe,left:z}of me(Le,ce(Se))){const ee=fe-ke.top+ke.bottom,ae=z-ke.left+ke.right;xe.scroll({top:ee,left:ae,behavior:ve})}}}}]);
|